diff --git "a/statement_prediction_dataset.jsonl" "b/statement_prediction_dataset.jsonl" --- "a/statement_prediction_dataset.jsonl" +++ "b/statement_prediction_dataset.jsonl" @@ -403,3 +403,143 @@ {"Programming Language": "Python", "Statement Type": "API", "Source Code": "def validate_categorical(search_space):\n # error = \"Expected a dict with mandatory key 'values' (list) and optional key 'probabilities' (list)\"\n search_space = search_space.copy()\n\n if type(search_space) != dict:\n raise ValueError\n if \"values\" not in search_space.keys() or type(search_space['values']) != list:\n raise ValueError\n if \"probabilities\" in search_space.keys() and (\n type(search_space['probabilities']) != list or\n len(search_space['probabilities']) != len(search_space['values'])):\n raise ValueError\n\n # Test that proba sum to 1 but we are lazy and we try directly\n if \"probabilities\" in search_space.keys():\n np.random.choice(range(len(search_space[\"probabilities\"])),\n p=search_space[\"probabilities\"])\n\n if \"probabilities\" not in search_space.keys():\n number_of_values = len(search_space[\"values\"])\n search_space[\"probabilities\"] = list(np.ones(number_of_values) / number_of_values)\n\n return search_space\n\nvalidate_categorical(search_space={'values': [0, 0.6283185307179586, 0.7853981633974483, 1.0471975511965976, 1.5707963267948966, 3.141592653589793]})", "Selected Statement": "search_space[\"probabilities\"] = list(np.ones(number_of_values) / number_of_values)", "Function Input": {"search_space": "{'values': [0, 0.6283185307179586, 0.7853981633974483, 1.0471975511965976, 1.5707963267948966, 3.141592653589793]}"}, "Variable Values Before Statement": {"number_of_values": "6"}, "Value After Statement Execution": "{'values': [0, 0.6283185307179586, 0.7853981633974483, 1.0471975511965976, 1.5707963267948966, 3.141592653589793], 'probabilities': [0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666]}", "Variable States During Runtime": {"search_space": [[1, "{'values': [0, 0.6283185307179586, 0.7853981633974483, 1.0471975511965976, 1.5707963267948966, 3.141592653589793]}"], [21.0, "{'values': [0, 0.6283185307179586, 0.7853981633974483, 1.0471975511965976, 1.5707963267948966, 3.141592653589793], 'probabilities': [0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666]}"]], "number_of_values": [[20.0, "6"]]}, "Program Information": "Project Name: Dreem-Organization+benderopt", "idx": 403} {"Programming Language": "Python", "Statement Type": "API", "Source Code": "def __missing__(self, b):\n # Handle a cache miss, store encoded string in cache and return.\n if b in _TILDE_ENCODING_SAFE:\n res = chr(b)\n elif b == _space:\n res = \"+\"\n else:\n res = \"~{:02X}\".format(b)\n self[b] = res\n return res\n\n__missing__(self={}, b=102)", "Selected Statement": "res = chr(b)", "Function Input": {"self": "{}", "b": "102"}, "Variable Values Before Statement": {"b": "102"}, "Value After Statement Execution": "'f'", "Variable States During Runtime": {"self": [[1, "{}"], [9.0, "{102: 'f'}"]], "b": [[1, "102"]], "res": [[4.0, "'f'"]], "self[102]": [[9.0, "'f'"]]}, "Program Information": "Project Name: simonw+datasette", "idx": 404} {"Programming Language": "Python", "Statement Type": "API", "Source Code": "def to_css_class(s):\n \"\"\"\n Given a string (e.g. a table name) returns a valid unique CSS class.\n For simple cases, just returns the string again. If the string is not a\n valid CSS class (we disallow - and _ prefixes even though they are valid\n as they may be confused with browser prefixes) we strip invalid characters\n and add a 6 char md5 sum suffix, to make sure two tables with identical\n names after stripping characters don't end up with the same CSS class.\n \"\"\"\n if css_class_re.match(s):\n return s\n md5_suffix = hashlib.md5(s.encode(\"utf8\")).hexdigest()[:6]\n # Strip leading _, -\n s = s.lstrip(\"_\").lstrip(\"-\")\n # Replace any whitespace with hyphens\n s = \"-\".join(s.split())\n # Remove any remaining invalid characters\n s = css_invalid_chars_re.sub(\"\", s)\n # Attach the md5 suffix\n bits = [b for b in (s, md5_suffix) if b]\n return \"-\".join(bits)\n\nto_css_class(s='table/with/slashes.csv')", "Selected Statement": "s = css_invalid_chars_re.sub(\"\", s)", "Function Input": {"s": "'table/with/slashes.csv'"}, "Variable Values Before Statement": {"s": "'table/with/slashes.csv'"}, "Value After Statement Execution": "'tablewithslashescsv'", "Variable States During Runtime": {"s": [[1, "'table/with/slashes.csv'"], [18.0, "'tablewithslashescsv'"]], "md5_suffix": [[12.0, "'fa7563'"]], "bits": [[20.0, "['tablewithslashescsv', 'fa7563']"]]}, "Program Information": "Project Name: simonw+datasette", "idx": 405} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def client_factory(client_name, **kwargs):\n \"\"\"Return a client for an external data set\"\"\"\n # set up\n dir_name = os.path.dirname(os.path.abspath(__file__))\n error_msg = 'No client found for name %s' % client_name\n client_key = client_name.upper()\n\n # find client\n try:\n client_vals = BALANCING_AUTHORITIES[client_key]\n module_name = client_vals['module']\n\n class_name = client_vals['class']\n except KeyError:\n raise ValueError(error_msg)\n\n # find module\n try:\n fp, pathname, description = imp.find_module(module_name, [dir_name])\n except ImportError:\n raise ValueError(error_msg)\n\n # load\n try:\n mod = imp.load_module(module_name, fp, pathname, description)\n finally:\n # Since we may exit via an exception, close fp explicitly.\n if fp:\n fp.close()\n\n # instantiate class\n try:\n client_inst = getattr(mod, class_name)(**kwargs)\n except AttributeError:\n raise ValueError(error_msg)\n\n # set name\n client_inst.NAME = client_name\n\n return client_inst\n\nclient_factory(client_name='MISO', kwargs={})", "Selected Statement": "error_msg = 'No client found for name %s' % client_name", "Function Input": {"client_name": "'MISO'", "kwargs": "{}"}, "Variable Values Before Statement": {"client_name": "'MISO'"}, "Value After Statement Execution": "'No client found for name MISO'", "Variable States During Runtime": {"client_name": [[1, "'MISO'"]], "kwargs": [[1, "{}"]], "dir_name": [[4.0, "'/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/WattTime+pyiso/WattTime+pyiso/pyiso'"]], "error_msg": [[5.0, "'No client found for name MISO'"]], "client_key": [[6.0, "'MISO'"]], "client_vals": [[10.0, "{'module': 'miso', 'class': 'MISOClient'}"]], "module_name": [[11.0, "'miso'"]], "class_name": [[13.0, "'MISOClient'"]], "fp": [[19.0, "<_io.TextIOWrapper name='/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/WattTime+pyiso/WattTime+pyiso/pyiso/miso.py' mode='r' encoding='utf-8'>"]], "pathname": [[19.0, "'/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/WattTime+pyiso/WattTime+pyiso/pyiso/miso.py'"]], "description": [[19.0, "('.py', 'r', 1)"]]}, "Program Information": "Project Name: WattTime+pyiso", "idx": 406} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def get_generation(ba_name, **kwargs):\n # get data\n c = client_factory(ba_name)\n data = c.get_generation(**kwargs)\n \n # log\n if len(data) == 0:\n msg = '%s: No generation data at %s with args %s' % (ba_name, datetime.utcnow().isoformat(),\n kwargs)\n logger.warn(msg)\n \n # return\n return data\n\nget_generation(ba_name='CAISO', kwargs={'latest': True})", "Selected Statement": "msg = '%s: No generation data at %s with args %s' % (ba_name, datetime.utcnow().isoformat(),", "Function Input": {"ba_name": "'CAISO'", "kwargs": "{'latest': True}"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "\"CAISO: No generation data at 2024-04-03T22:46:21.338362 with args {'latest': True}\"", "Variable States During Runtime": {"ba_name": [[1, "'CAISO'"]], "kwargs": [[1, "{'latest': True}"]], "c": [[3.0, "{options={}, NAME='CAISO'}"], [4.0, "{options={'data': 'gen', 'latest': True, 'yesterday': False, 'start_at': False, 'end_at': False, 'sliceable': False, 'forecast': False, 'market': 'RT5M', 'freq': '10m'}, NAME='CAISO', session=}"]], "data": [[4.0, "[]"]], "msg": [[8.0, "\"CAISO: No generation data at 2024-04-03T22:46:21.338362 with args {'latest': True}\""]]}, "Program Information": "Project Name: WattTime+pyiso", "idx": 407} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def get_load(ba_name, **kwargs):\n # get data\n c = client_factory(ba_name)\n data = c.get_load(**kwargs)\n \n # log\n if len(data) == 0:\n msg = '%s: No load data at %s with args %s' % (ba_name, datetime.utcnow().isoformat(),\n kwargs)\n logger.warn(msg)\n \n # return\n return data\n\nget_load(ba_name='PJM', kwargs={'latest': True})", "Selected Statement": "msg = '%s: No load data at %s with args %s' % (ba_name, datetime.utcnow().isoformat(),", "Function Input": {"ba_name": "'PJM'", "kwargs": "{'latest': True}"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "\"PJM: No load data at 2024-04-03T22:47:45.327834 with args {'latest': True}\"", "Variable States During Runtime": {"ba_name": [[1, "'PJM'"]], "kwargs": [[1, "{'latest': True}"]], "c": [[3.0, "{options={}, NAME='PJM'}"], [4.0, "{options={'data': 'load', 'latest': True, 'start_at': None, 'end_at': None, 'forecast': False, 'sliceable': False}, NAME='PJM', session=}"]], "data": [[4.0, "[]"]], "msg": [[8.0, "\"PJM: No load data at 2024-04-03T22:47:45.327834 with args {'latest': True}\""]]}, "Program Information": "Project Name: WattTime+pyiso", "idx": 408} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def xldate_as_tuple(xldate, datemode):\n if datemode not in (0, 1):\n raise XLDateBadDatemode(datemode)\n if xldate == 0.00:\n return (0, 0, 0, 0, 0, 0)\n if xldate < 0.00:\n raise XLDateNegative(xldate)\n xldays = int(xldate)\n frac = xldate - xldays\n seconds = int(round(frac * 86400.0))\n assert 0 <= seconds <= 86400\n if seconds == 86400:\n hour = minute = second = 0\n xldays += 1\n else:\n # second = seconds % 60; minutes = seconds // 60\n minutes, second = divmod(seconds, 60)\n # minute = minutes % 60; hour = minutes // 60\n hour, minute = divmod(minutes, 60)\n if xldays >= _XLDAYS_TOO_LARGE[datemode]:\n raise XLDateTooLarge(xldate)\n\n if xldays == 0:\n return (0, 0, 0, hour, minute, second)\n\n if xldays < 61 and datemode == 0:\n raise XLDateAmbiguous(xldate)\n\n jdn = xldays + _JDN_delta[datemode]\n yreg = (ifd(ifd(jdn * 4 + 274277, 146097) * 3, 4) + jdn + 1363) * 4 + 3\n mp = ifd(yreg % 1461, 4) * 535 + 333\n d = ifd(mp % 16384, 535) + 1\n # mp /= 16384\n mp >>= 14\n if mp >= 10:\n return (ifd(yreg, 1461) - 4715, mp - 9, d, hour, minute, second)\n else:\n return (ifd(yreg, 1461) - 4716, mp + 3, d, hour, minute, second)\n\nxldate_as_tuple(xldate=2741.0, datemode=0)", "Selected Statement": "frac = xldate - xldays", "Function Input": {"xldate": "2741.0", "datemode": "0"}, "Variable Values Before Statement": {"xldate": "2741.0", "xldays": "2741"}, "Value After Statement Execution": "0.0", "Variable States During Runtime": {"xldate": [[1, "2741.0"]], "datemode": [[1, "0"]], "xldays": [[8.0, "2741"]], "frac": [[9.0, "0.0"]], "seconds": [[10.0, "0"]], "second": [[17.0, "0"]], "minutes": [[17.0, "0"]], "hour": [[19.0, "0"]], "minute": [[19.0, "0"]], "jdn": [[29.0, "2417760"]], "yreg": [[30.0, "9676699"]], "mp": [[31.0, "66673"], [34.0, "4"]], "d": [[32.0, "3"]]}, "Program Information": "Project Name: djerbic+xlrd-ignore-writeaccess-corruption", "idx": 409} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def xldate_from_date_tuple(date_tuple, datemode):\n \"\"\"Create an excel date from a tuple of (year, month, day)\"\"\"\n year, month, day = date_tuple\n\n if datemode not in (0, 1):\n raise XLDateBadDatemode(datemode)\n\n if year == 0 and month == 0 and day == 0:\n return 0.00\n\n if not (1900 <= year <= 9999):\n raise XLDateBadTuple(\"Invalid year: %r\" % ((year, month, day),))\n if not (1 <= month <= 12):\n raise XLDateBadTuple(\"Invalid month: %r\" % ((year, month, day),))\n if day < 1 \\\n or (day > _days_in_month[month] and not(day == 29 and month == 2 and _leap(year))):\n raise XLDateBadTuple(\"Invalid day: %r\" % ((year, month, day),))\n\n Yp = year + 4716\n M = month\n if M <= 2:\n Yp = Yp - 1\n Mp = M + 9\n else:\n Mp = M - 3\n jdn = ifd(1461 * Yp, 4) + ifd(979 * Mp + 16, 32) + \\\n day - 1364 - ifd(ifd(Yp + 184, 100) * 3, 4)\n xldays = jdn - _JDN_delta[datemode]\n if xldays <= 0:\n raise XLDateBadTuple(\"Invalid (year, month, day): %r\" % ((year, month, day),))\n if xldays < 61 and datemode == 0:\n raise XLDateAmbiguous(\"Before 1900-03-01: %r\" % ((year, month, day),))\n return float(xldays)\n\nxldate_from_date_tuple(date_tuple=(1907, 7, 3), datemode=0)", "Selected Statement": "Yp = year + 4716", "Function Input": {"date_tuple": "(1907, 7, 3)", "datemode": "0"}, "Variable Values Before Statement": {"year": "1907"}, "Value After Statement Execution": "6623", "Variable States During Runtime": {"date_tuple": [[1, "(1907, 7, 3)"]], "datemode": [[1, "0"]], "year": [[3.0, "1907"]], "month": [[3.0, "7"]], "day": [[3.0, "3"]], "Yp": [[19.0, "6623"]], "M": [[20.0, "7"]], "Mp": [[25.0, "4"]], "jdn": [[26.0, "2417760"]], "xldays": [[28.0, "2741"]]}, "Program Information": "Project Name: djerbic+xlrd-ignore-writeaccess-corruption", "idx": 410} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _add_notice_to_docstring(doc, no_doc_str, notice):\n \"\"\"Adds a deprecation notice to a docstring.\"\"\"\n if not doc:\n lines = [no_doc_str]\n\n else:\n lines = _normalize_docstring(doc).splitlines()\n\n notice = [''] + notice\n\n if len(lines) > 1:\n # Make sure that we keep our distance from the main body\n if lines[1].strip():\n notice.append('')\n\n lines[1:1] = notice\n else:\n lines += notice\n\n return '\\n'.join(lines)\n\n_add_notice_to_docstring(doc=None, no_doc_str='DEPRECATED FUNCTION', notice=['\\n .. warning::\\n **THIS FUNCTION IS DEPRECATED:** It will be removed after after 2018-09-30.\\n *Instructions for updating:* This API is deprecated. Please use as `tl.logging.warning`.\\n '])", "Selected Statement": "notice = [''] + notice", "Function Input": {"doc": "None", "no_doc_str": "'DEPRECATED FUNCTION'", "notice": "['\\n .. warning::\\n **THIS FUNCTION IS DEPRECATED:** It will be removed after after 2018-09-30.\\n *Instructions for updating:* This API is deprecated. Please use as `tl.logging.warning`.\\n ']"}, "Variable Values Before Statement": {"notice": "['\\n .. warning::\\n **THIS FUNCTION IS DEPRECATED:** It will be removed after after 2018-09-30.\\n *Instructions for updating:* This API is deprecated. Please use as `tl.logging.warning`.\\n ']"}, "Value After Statement Execution": "['', '\\n .. warning::\\n **THIS FUNCTION IS DEPRECATED:** It will be removed after after 2018-09-30.\\n *Instructions for updating:* This API is deprecated. Please use as `tl.logging.warning`.\\n ']", "Variable States During Runtime": {"doc": [[1, "None"]], "no_doc_str": [[1, "'DEPRECATED FUNCTION'"]], "notice": [[1, "['\\n .. warning::\\n **THIS FUNCTION IS DEPRECATED:** It will be removed after after 2018-09-30.\\n *Instructions for updating:* This API is deprecated. Please use as `tl.logging.warning`.\\n ']"], [9.0, "['', '\\n .. warning::\\n **THIS FUNCTION IS DEPRECATED:** It will be removed after after 2018-09-30.\\n *Instructions for updating:* This API is deprecated. Please use as `tl.logging.warning`.\\n ']"]], "lines": [[4.0, "['DEPRECATED FUNCTION']"], [18.0, "['DEPRECATED FUNCTION', '', '\\n .. warning::\\n **THIS FUNCTION IS DEPRECATED:** It will be removed after after 2018-09-30.\\n *Instructions for updating:* This API is deprecated. Please use as `tl.logging.warning`.\\n ']"]]}, "Program Information": "Project Name: tensorlayer+TensorLayer", "idx": 411} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def calculate_r_wheels(tyre_dimensions):\n \"\"\"\n Calculates the radius of the wheels [m] from the tyre dimensions.\n\n :param tyre_dimensions:\n Tyre dimensions.\n\n .. note:: The fields are : use, nominal_section_width, aspect_ratio,\n carcass, diameter, load_index, speed_rating, and additional_marks.\n :type tyre_dimensions: dict\n\n :return:\n Radius of the wheels [m].\n :rtype: float\n \"\"\"\n if 'diameter' in tyre_dimensions:\n if tyre_dimensions['code'] == 'pax':\n return tyre_dimensions['diameter'] / 2000 # Diameter is in mm.\n return tyre_dimensions['diameter'] * 0.0254 # Diameter is in inches.\n a = tyre_dimensions['aspect_ratio'] / 100 # Aspect ratio is Height/Width.\n w = tyre_dimensions['nominal_section_width']\n if tyre_dimensions.get('code', 'iso') == 'iso':\n w /= 1000 # Width is in mm.\n else:\n w *= 0.0254 # Width is in inches.\n\n dr = tyre_dimensions['rim_diameter'] * 0.0254 # Rim is in inches.\n return a * w + dr / 2\n\ncalculate_r_wheels(tyre_dimensions={'code': 'iso', 'carcass': 'R', 'nominal_section_width': 265.0, 'use': 'LT', 'load_range': 'D', 'rim_diameter': 15.0, 'aspect_ratio': 75.0})", "Selected Statement": "a = tyre_dimensions['aspect_ratio'] / 100 # Aspect ratio is Height/Width.", "Function Input": {"tyre_dimensions": "{'code': 'iso', 'carcass': 'R', 'nominal_section_width': 265.0, 'use': 'LT', 'load_range': 'D', 'rim_diameter': 15.0, 'aspect_ratio': 75.0}"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "0.75", "Variable States During Runtime": {"tyre_dimensions": [[1, "{'code': 'iso', 'carcass': 'R', 'nominal_section_width': 265.0, 'use': 'LT', 'load_range': 'D', 'rim_diameter': 15.0, 'aspect_ratio': 75.0}"]], "a": [[20.0, "0.75"]], "w": [[21.0, "265.0"], [23.0, "0.265"]], "dr": [[27.0, "0.381"]]}, "Program Information": "Project Name: JRCSTU+co2mpas-ta", "idx": 412} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def create_dummy_class(klass, dependency, message=\"\"):\n \"\"\"\n When a dependency of a class is not available, create a dummy class which throws ImportError\n when used.\n\n Args:\n klass (str): name of the class.\n dependency (str): name of the dependency.\n message: extra message to print\n Returns:\n class: a class object\n \"\"\"\n err = \"Cannot import '{}', therefore '{}' is not available.\".format(dependency, klass)\n if message:\n err = err + \" \" + message\n\n class _DummyMetaClass(type):\n # throw error on class attribute access\n def __getattr__(_, __): # noqa: B902\n raise ImportError(err)\n\n class _Dummy(object, metaclass=_DummyMetaClass):\n # throw error on constructor\n def __init__(self, *args, **kwargs):\n raise ImportError(err)\n\n return _Dummy\n\ncreate_dummy_class(klass='DeformConv', dependency='detectron2._C', message='detectron2 is not compiled successfully, please build following the instructions!')", "Selected Statement": "err = err + \" \" + message", "Function Input": {"klass": "'DeformConv'", "dependency": "'detectron2._C'", "message": "'detectron2 is not compiled successfully, please build following the instructions!'"}, "Variable Values Before Statement": {"message": "'detectron2 is not compiled successfully, please build following the instructions!'"}, "Value After Statement Execution": "\"Cannot import 'detectron2._C', therefore 'DeformConv' is not available. detectron2 is not compiled successfully, please build following the instructions!\"", "Variable States During Runtime": {"klass": [[1, "'DeformConv'"]], "dependency": [[1, "'detectron2._C'"]], "message": [[1, "'detectron2 is not compiled successfully, please build following the instructions!'"]], "err": [[13.0, "\"Cannot import 'detectron2._C', therefore 'DeformConv' is not available.\""], [15.0, "\"Cannot import 'detectron2._C', therefore 'DeformConv' is not available. detectron2 is not compiled successfully, please build following the instructions!\""]], "_DummyMetaClass": [[17.0, "._DummyMetaClass'>"]], "_Dummy": [[22.0, "._Dummy'>"]]}, "Program Information": "Project Name: facebookresearch+detectron2", "idx": 413} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def create_dummy_func(func, dependency, message=\"\"):\n \"\"\"\n When a dependency of a function is not available, create a dummy function which throws\n ImportError when used.\n\n Args:\n func (str): name of the function.\n dependency (str or list[str]): name(s) of the dependency.\n message: extra message to print\n Returns:\n function: a function object\n \"\"\"\n err = \"Cannot import '{}', therefore '{}' is not available.\".format(dependency, func)\n if message:\n err = err + \" \" + message\n\n if isinstance(dependency, (list, tuple)):\n dependency = \",\".join(dependency)\n\n def _dummy(*args, **kwargs):\n raise ImportError(err)\n\n return _dummy\n\ncreate_dummy_func(func='deform_conv', dependency='detectron2._C', message='detectron2 is not compiled successfully, please build following the instructions!')", "Selected Statement": "err = err + \" \" + message", "Function Input": {"func": "'deform_conv'", "dependency": "'detectron2._C'", "message": "'detectron2 is not compiled successfully, please build following the instructions!'"}, "Variable Values Before Statement": {"message": "'detectron2 is not compiled successfully, please build following the instructions!'"}, "Value After Statement Execution": "\"Cannot import 'detectron2._C', therefore 'deform_conv' is not available. detectron2 is not compiled successfully, please build following the instructions!\"", "Variable States During Runtime": {"func": [[1, "'deform_conv'"]], "dependency": [[1, "'detectron2._C'"]], "message": [[1, "'detectron2 is not compiled successfully, please build following the instructions!'"]], "err": [[13.0, "\"Cannot import 'detectron2._C', therefore 'deform_conv' is not available.\""], [15.0, "\"Cannot import 'detectron2._C', therefore 'deform_conv' is not available. detectron2 is not compiled successfully, please build following the instructions!\""]], "_dummy": [[20.0, "._dummy at 0x7f3337cdfd30>"]]}, "Program Information": "Project Name: facebookresearch+detectron2", "idx": 414} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def format_pair(prefix, arg, value):\n if arg is _arg_source_missing:\n arg_lines = []\n value_prefix = prefix\n else:\n arg_lines = indented_lines(prefix, arg)\n value_prefix = arg_lines[-1] + ': '\n\n looksLikeAString = value[0] + value[-1] in [\"''\", '\"\"']\n if looksLikeAString: # Align the start of multiline strings.\n value = prefixLinesAfterFirst(' ', value)\n\n value_lines = indented_lines(value_prefix, value)\n lines = arg_lines[:-1] + value_lines\n return '\\n'.join(lines)\n\nformat_pair(prefix=' ', arg='multilineStr', value=\"'line1\\nline2'\")", "Selected Statement": "value_prefix = arg_lines[-1] + ': '", "Function Input": {"prefix": "' '", "arg": "'multilineStr'", "value": "\"'line1\\nline2'\""}, "Variable Values Before Statement": {}, "Value After Statement Execution": "' multilineStr: '", "Variable States During Runtime": {"prefix": [[1, "' '"]], "arg": [[1, "'multilineStr'"]], "value": [[1, "\"'line1\\nline2'\""], [11.0, "\"'line1\\n line2'\""]], "arg_lines": [[6.0, "[' multilineStr']"]], "value_prefix": [[7.0, "' multilineStr: '"]], "looksLikeAString": [[9.0, "True"]], "value_lines": [[13.0, "[\" multilineStr: 'line1\", \" line2'\"]"]], "lines": [[14.0, "[\" multilineStr: 'line1\", \" line2'\"]"]]}, "Program Information": "Project Name: gruns+icecream", "idx": 415} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def prefixLinesAfterFirst(prefix, s):\n lines = s.splitlines(True)\n\n for i in range(1, len(lines)):\n lines[i] = prefix + lines[i]\n\n return ''.join(lines)\n\nprefixLinesAfterFirst(prefix=' ', s=\"'line1\\nline2'\")", "Selected Statement": "lines[i] = prefix + lines[i]", "Function Input": {"prefix": "' '", "s": "\"'line1\\nline2'\""}, "Variable Values Before Statement": {"prefix": "' '"}, "Value After Statement Execution": "[\"'line1\\n\", \" line2'\"]", "Variable States During Runtime": {"prefix": [[1, "' '"]], "s": [[1, "\"'line1\\nline2'\""]], "lines": [[2.0, "[\"'line1\\n\", \"line2'\"]"], [5.0, "[\"'line1\\n\", \" line2'\"]"]], "i": [[4.0, "1"]]}, "Program Information": "Project Name: gruns+icecream", "idx": 416} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _sort(a, aux, lo, hi):\n if lo >= hi:\n return\n\n if hi - lo + 1 < MergeSort.CUTOFF:\n InsertionSort.sort(a, lo, hi)\n return\n\n mid = lo + (hi - lo) // 2\n MergeSort._sort(a, aux, lo, mid)\n MergeSort._sort(a, aux, mid + 1, hi)\n MergeSort._merge(a, aux, lo, mid, hi)\n\n_sort(a=[4, 2, 1, 23, 4, 5, 6, 7, 8, 9, 20, 11, 13, 34, 66], aux=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], lo=0, hi=7)", "Selected Statement": "mid = lo + (hi - lo) // 2", "Function Input": {"a": "[4, 2, 1, 23, 4, 5, 6, 7, 8, 9, 20, 11, 13, 34, 66]", "aux": "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]", "lo": "0", "hi": "7"}, "Variable Values Before Statement": {"lo": "0"}, "Value After Statement Execution": "3", "Variable States During Runtime": {"a": [[1, "[4, 2, 1, 23, 4, 5, 6, 7, 8, 9, 20, 11, 13, 34, 66]"], [10.0, "[1, 2, 4, 23, 4, 5, 6, 7, 8, 9, 20, 11, 13, 34, 66]"], [11.0, "[1, 2, 4, 4, 5, 6, 7, 23, 8, 9, 20, 11, 13, 34, 66]"]], "aux": [[1, "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"], [12.0, "[1, 2, 4, 4, 5, 6, 7, 23, 0, 0, 0, 0, 0, 0, 0]"]], "lo": [[1, "0"]], "hi": [[1, "7"]], "mid": [[9.0, "3"]]}, "Program Information": "Project Name: chen0040+pyalgs", "idx": 417} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _merge(a, aux, lo, mid, hi):\n i = lo\n j = mid + 1\n\n for k in range(lo, hi + 1):\n aux[k] = a[k]\n\n for k in range(lo, hi + 1):\n if i > mid:\n a[k] = aux[j]\n j += 1\n elif j > hi:\n a[k] = aux[i]\n i += 1\n elif util.less(aux[i], aux[j]):\n a[k] = aux[i]\n i += 1\n else:\n a[k] = aux[j]\n j += 1\n\n_merge(a=[1, 2, 4, 4, 5, 6, 7, 23, 8, 9, 20, 11, 13, 34, 66], aux=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], lo=0, mid=3, hi=7)", "Selected Statement": "j = mid + 1", "Function Input": {"a": "[1, 2, 4, 4, 5, 6, 7, 23, 8, 9, 20, 11, 13, 34, 66]", "aux": "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]", "lo": "0", "mid": "3", "hi": "7"}, "Variable Values Before Statement": {"mid": "3"}, "Value After Statement Execution": "4", "Variable States During Runtime": {"a": [[1, "[1, 2, 4, 4, 5, 6, 7, 23, 8, 9, 20, 11, 13, 34, 66]"]], "aux": [[1, "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"], [6.0, "[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"], [6.0, "[1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"], [6.0, "[1, 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"], [6.0, "[1, 2, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"], [6.0, "[1, 2, 4, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"], [6.0, "[1, 2, 4, 4, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0]"], [6.0, "[1, 2, 4, 4, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0]"], [6.0, "[1, 2, 4, 4, 5, 6, 7, 23, 0, 0, 0, 0, 0, 0, 0]"]], "lo": [[1, "0"]], "mid": [[1, "3"]], "hi": [[1, "7"]], "i": [[2.0, "0"], [17.0, "1"], [17.0, "2"], [17.0, "3"], [17.0, "4"]], "j": [[3.0, "4"], [11.0, "5"], [11.0, "6"], [11.0, "7"], [11.0, "8"]], "k": [[5.0, "0"], [5.0, "1"], [5.0, "2"], [5.0, "3"], [5.0, "4"], [5.0, "5"], [5.0, "6"], [5.0, "7"], [8.0, "0"], [8.0, "1"], [8.0, "2"], [8.0, "3"], [8.0, "4"], [8.0, "5"], [8.0, "6"], [8.0, "7"]]}, "Program Information": "Project Name: chen0040+pyalgs", "idx": 418} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def version_compare(self, other):\n \"Compares version of the form [epoch:]upstream-version[-debian-revision]\" \\\n + \" according to Debian package version number format.\"\n\n # compare epoch\n diff = self.epoch - other.epoch\n if diff != 0:\n return diff\n\n # compare upstream version and debian revision\n for slf, othr in (self.upstream_version, other.upstream_version), (self.revision, other.revision):\n i = 0\n while len(slf) > 0 or len(othr) > 0:\n decimal = (i % 2 == 1) \n slf_part, slf = self._get_part(slf, decimal=decimal)\n othr_part, othr = self._get_part(othr, decimal=decimal)\n diff = self._compare_parts(slf_part, othr_part, decimal=decimal)\n if diff != 0:\n return diff\n i += 1\n\n # versions are equal\n return 0\n\nversion_compare(self=2.2.0~rc5, other=2.2.0~rc5, self.epoch=0, self.revision='0', self.revision_allowed_chars=('.', '+', '~'), self.upstream_version='2.2.0~rc5', self.upstream_version_allowed_chars=('.', '+', '~', '-', ':'), self.version='2.2.0~rc5')", "Selected Statement": "diff = self.epoch - other.epoch", "Function Input": {"self": "2.2.0~rc5", "other": "2.2.0~rc5", "self.epoch": "0", "self.revision": "'0'", "self.revision_allowed_chars": "('.', '+', '~')", "self.upstream_version": "'2.2.0~rc5'", "self.upstream_version_allowed_chars": "('.', '+', '~', '-', ':')", "self.version": "'2.2.0~rc5'"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "0", "Variable States During Runtime": {"self": [[1, "2.2.0~rc5"]], "other": [[1, "2.2.0~rc5"]], "self.epoch": [[1, "0"]], "self.revision": [[1, "'0'"]], "self.revision_allowed_chars": [[1, "('.', '+', '~')"]], "self.upstream_version": [[1, "'2.2.0~rc5'"]], "self.upstream_version_allowed_chars": [[1, "('.', '+', '~', '-', ':')"]], "self.version": [[1, "'2.2.0~rc5'"]], "diff": [[6.0, "0"]], "slf": [[11.0, "'2.2.0~rc5'"], [15.0, "'.2.0~rc5'"], [15.0, "'2.0~rc5'"], [15.0, "'.0~rc5'"], [15.0, "'0~rc5'"], [15.0, "'~rc5'"], [15.0, "'5'"], [15.0, "''"], [11.0, "'0'"], [15.0, "''"]], "othr": [[11.0, "'2.2.0~rc5'"], [16.0, "'.2.0~rc5'"], [16.0, "'2.0~rc5'"], [16.0, "'.0~rc5'"], [16.0, "'0~rc5'"], [16.0, "'~rc5'"], [16.0, "'5'"], [16.0, "''"], [11.0, "'0'"], [16.0, "''"]], "i": [[12.0, "0"], [20.0, "1"], [20.0, "2"], [20.0, "3"], [20.0, "4"], [20.0, "5"], [20.0, "6"], [20.0, "7"], [20.0, "8"], [12.0, "0"], [20.0, "1"], [20.0, "2"]], "decimal": [[14.0, "False"], [14.0, "True"], [14.0, "False"], [14.0, "True"], [14.0, "False"], [14.0, "True"], [14.0, "False"], [14.0, "True"], [14.0, "False"], [14.0, "True"]], "slf_part": [[15.0, "''"], [15.0, "'2'"], [15.0, "'.'"], [15.0, "'2'"], [15.0, "'.'"], [15.0, "'0'"], [15.0, "'~rc'"], [15.0, "'5'"], [15.0, "''"], [15.0, "'0'"]], "othr_part": [[16.0, "''"], [16.0, "'2'"], [16.0, "'.'"], [16.0, "'2'"], [16.0, "'.'"], [16.0, "'0'"], [16.0, "'~rc'"], [16.0, "'5'"], [16.0, "''"], [16.0, "'0'"]]}, "Program Information": "Project Name: cyril-s+aptly-ctl", "idx": 419} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _setHeaderBaseData(array, coeff_name, hao, long_name) -> None:\n if not isinstance(array, (np.ndarray, np.float32, np.int32,np.float64)):\n print(type(array))\n raise HeaderArrayObj.UnsupportedArrayType(\"'array' must be of numpy.ndarray type.\")\n\n # Defaults handling\n if coeff_name is None:\n coeff_name = \" \" * 12\n if long_name is None:\n long_name = coeff_name\n if len(coeff_name) < 12:\n coeff_name = coeff_name.ljust(12)\n if len(long_name) < 70:\n long_name = long_name.ljust(70)\n hao.array = array\n hao.coeff_name = coeff_name\n hao.long_name = long_name\n\n_setHeaderBaseData(array=array(['at 2/03/2018 4:22:38 PM '], dtype=' 12 :\n raise ValueError(\"setName is restricted to 12 Characters\")\n if long_name is None: long_name=\"\"\n if isinstance(long_name, str):\n long_name=\"Set \"+setName.strip()+\" \"+long_name.strip()\n else:\n raise TypeError(\"LongName must be string\")\n\n if isinstance(setElements,(list,np.ndarray)):\n if not all([isinstance(el,str) for el in setElements]):\n raise TypeError(\"All Set Elements must be of type str\")\n if not all([len(el)<=12 for el in setElements]):\n raise ValueError(\"Set Elelement strings must be 12 characters at most\")\n\n if isinstance(setElements,list):\n array=np.array(setElements)\n setElDict={setName:setElements}\n elif isinstance(setElements,np.ndarray):\n array=setElements\n setElDict = {setName: setElements.tolist()}\n else:\n raise TypeError(\"SetElemenets must be list of str or np array of strings\")\n\n\n return HeaderArrayObj.HeaderArrayFromData(array=array, long_name=long_name, sets=[setName], setElDict=setElDict)\n\nSetHeaderFromData(setName='sect', setElements=array(['s1 ', 's2 '], dtype=' None:\n (x0, y0, x1, y1) = bbox\n self.x0 = x0\n self.y0 = y0\n self.x1 = x1\n self.y1 = y1\n self.width = x1 - x0\n self.height = y1 - y0\n self.bbox = bbox\n\nset_bbox(self=REPR FAILED, bbox=[0, 100, 0, 100])", "Selected Statement": "self.width = x1 - x0", "Function Input": {"self": "REPR FAILED", "bbox": "[0, 100, 0, 100]"}, "Variable Values Before Statement": {"x1": "0", "x0": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"self": [[1, "REPR FAILED"], [9.0, ""]], "bbox": [[1, "[0, 100, 0, 100]"]], "x0": [[2.0, "0"]], "y0": [[2.0, "100"]], "x1": [[2.0, "0"]], "y1": [[2.0, "100"]], "self.x0": [[3.0, "0"]], "self.y0": [[4.0, "100"]], "self.x1": [[5.0, "0"]], "self.y1": [[6.0, "100"]], "self.width": [[7.0, "0"]], "self.height": [[8.0, "0"]], "self.bbox": [[9.0, "[0, 100, 0, 100]"]]}, "Program Information": "Project Name: pdfminer+pdfminer.six", "idx": 422} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def calibrated_fps(calibrate):\n \"\"\"Calibration of the dynamic frames per second engine.\n\n I've started with the equation y = log10(x + m) * k + n, where:\n y is the desired fps, m and n are horizontal and vertical translation,\n k is a calibration factor, computed from some user input c (see readme for details).\n\n Considering minfps and maxfps as given constants, I came to:\n fps = log10(x + 1) * k + minfps, which must be equal to maxfps for x = c,\n so the factor k = (maxfps - minfps) / log10(c + 1), and\n fps = log10(x + 1) * (maxfps - minfps) / log10(c + 1) + minfps\n\n Neat! ;)\n\n Args:\n calibrate (float): user provided\n\n Returns:\n a callable to calculate the fps\n\n \"\"\"\n min_fps, max_fps = 2., 60.\n calibrate = max(1e-6, calibrate)\n adjust_log_curve = 100. / min(calibrate, 100.) # adjust the curve for small numbers\n factor = (max_fps - min_fps) / math.log10((calibrate * adjust_log_curve) + 1.)\n\n def fps(rate):\n if rate <= 0:\n return 10. # bootstrap speed\n if rate < calibrate:\n return math.log10((rate * adjust_log_curve) + 1.) * factor + min_fps\n return max_fps\n\n return fps\n\ncalibrated_fps(calibrate=-5.0)", "Selected Statement": "adjust_log_curve = 100. / min(calibrate, 100.) # adjust the curve for small numbers", "Function Input": {"calibrate": "-5.0"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "100000000.0", "Variable States During Runtime": {"calibrate": [[1, "-5.0"], [23.0, "1e-06"]], "max_fps": [[22.0, "60.0"]], "min_fps": [[22.0, "2.0"]], "adjust_log_curve": [[24.0, "100000000.0"]], "factor": [[25.0, "28.93747517671773"]], "fps": [[27.0, ".fps at 0x7f355669f1f0>"]]}, "Program Information": "Project Name: rsalmei+alive-progress", "idx": 423} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def getblockimpl(lines, first, last, pilcrow):\n max = len(lines) - 1\n first -= 1\n last -= 1\n i = first\n while i < max and not hastext(lines[i]):\n if i >= last and istoplevel(lines[i + 1]):\n return None, None, '# Nothing to send.' + pilcrow + eol\n i += 1\n while last < max and not istoplevel(lines[last + 1]):\n last += 1\n while first < last and not hastext(lines[first]):\n first += 1\n while first and not istoplevel(lines[first]):\n first -= 1\n lines[last] # Check for out of range.\n return first, last, eol.join(l for l in lines[first:last + 1] if hastext(l)) + pilcrow + eol\n\ngetblockimpl(lines=['', 'hello', 'function with', ' indented block', 'class with', '', ' block after blank', ' \\tand its own indented block', '\\t', ' and back again after a wrong blank', '', 'something else', '\\t', ' \\t', 'last'], first=10, last=11, pilcrow='')", "Selected Statement": "max = len(lines) - 1", "Function Input": {"lines": "['', 'hello', 'function with', ' indented block', 'class with', '', ' block after blank', ' \\tand its own indented block', '\\t', ' and back again after a wrong blank', '', 'something else', '\\t', ' \\t', 'last']", "first": "10", "last": "11", "pilcrow": "''"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "14", "Variable States During Runtime": {"lines": [[1, "['', 'hello', 'function with', ' indented block', 'class with', '', ' block after blank', ' \\tand its own indented block', '\\t', ' and back again after a wrong blank', '', 'something else', '\\t', ' \\t', 'last']"]], "first": [[1, "10"], [3.0, "9"], [15.0, "8"], [15.0, "7"], [15.0, "6"], [15.0, "5"], [15.0, "4"]], "last": [[1, "11"], [4.0, "10"]], "pilcrow": [[1, "''"]], "max": [[2.0, "14"]], "i": [[5.0, "9"]]}, "Program Information": "Project Name: combatopera+Concern", "idx": 424} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _from_timetuple(self, t):\n self.days_from_epoch = calendar.timegm(t) // Date.DAY\n\n_from_timetuple(self=Date(0), t=time.struct_time(tm_year=2024, tm_mon=4, tm_mday=3, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=2, tm_yday=94, tm_isdst=-1))", "Selected Statement": "self.days_from_epoch = calendar.timegm(t) // Date.DAY", "Function Input": {"self": "Date(0)", "t": "time.struct_time(tm_year=2024, tm_mon=4, tm_mday=3, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=2, tm_yday=94, tm_isdst=-1)"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "19816", "Variable States During Runtime": {"self": [[1, "Date(0)"], [2.0, "Date(19816)"]], "t": [[1, "time.struct_time(tm_year=2024, tm_mon=4, tm_mday=3, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=2, tm_yday=94, tm_isdst=-1)"]], "self.days_from_epoch": [[2.0, "19816"]]}, "Program Information": "Project Name: ArunTejCh+python-driver", "idx": 425} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _insert(self, key, value):\n flat_key = self._serialize_key(key)\n i = self._index.get(flat_key, -1)\n if i >= 0:\n self._items[i] = (key, value)\n else:\n self._items.append((key, value))\n self._index[flat_key] = len(self._items) - 1\n\n_insert(self=OrderedMapSerializedKey([]), key='\u307fbob', value=199)", "Selected Statement": "self._index[flat_key] = len(self._items) - 1", "Function Input": {"self": "OrderedMapSerializedKey([])", "key": "'\u307fbob'", "value": "199"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "199", "Variable States During Runtime": {"self": [[1, "OrderedMapSerializedKey([])"], [7.0, "OrderedMapSerializedKey([('\u307fbob', 199)])"]], "key": [[1, "'\u307fbob'"]], "value": [[1, "199"]], "flat_key": [[2.0, "b'\\xe3\\x81\\xbfbob'"]], "i": [[3.0, "-1"]], "self['\u307fbob']": [[8.0, "199"]]}, "Program Information": "Project Name: ArunTejCh+python-driver", "idx": 426} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def stringified_dict_contains_value(key, value, str_dict):\n \"\"\"Checks if dict in for of string like \"{'test': 5}\" contains\n key/value pair. This works faster, then creating actual dict\n from string since this operation is called for each task in case\n of kwargs search.\"\"\"\n if not str_dict:\n return False\n value = str(value)\n try:\n # + 3 for key right quote, one for colon and one for space\n key_index = str_dict.index(key) + len(key) + 3\n except ValueError:\n return False\n try:\n comma_index = str_dict.index(',', key_index)\n except ValueError:\n # last value in dict\n comma_index = str_dict.index('}', key_index)\n return str(value) == str_dict[key_index:comma_index].strip('\"\\'')\n\nstringified_dict_contains_value(key='test', value=5, str_dict=\"{'test': 5}\")", "Selected Statement": "key_index = str_dict.index(key) + len(key) + 3", "Function Input": {"key": "'test'", "value": "5", "str_dict": "\"{'test': 5}\""}, "Variable Values Before Statement": {}, "Value After Statement Execution": "9", "Variable States During Runtime": {"key": [[1, "'test'"]], "value": [[1, "5"], [8.0, "'5'"]], "str_dict": [[1, "\"{'test': 5}\""]], "key_index": [[11.0, "9"]], "comma_index": [[18.0, "10"]]}, "Program Information": "Project Name: mher+flower", "idx": 427} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def merge_args_into_config(args, config_params):\n final_args = copy.deepcopy(config_params)\n config_keys = config_params.keys()\n for key, value in args.items():\n if key in config_keys:\n if any([isinstance(value, t) for t in [str, bool, float, int]]):\n # Overwrites config value with args value.\n final_args[key] = value\n elif isinstance(value, list):\n # Appends args values to config values.\n final_args[key] = value + config_params[key]\n elif isinstance(value, dict):\n # Updates config params with args params.\n final_args[key].update(**value)\n else:\n final_args[key] = value\n return final_args\n\nmerge_args_into_config(args={'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': False, 'pdf_im_resolution': 500, 'images_allowlist': {'path1/': 1000}, 'commands_to_delete': ['\\\\todo1'], 'use_external_tikz': 'foo/bar/tikz'}, config_params={'input_folder': 'foo_/bar_', 'resize_images': True, 'im_size': 1000, 'compress_pdf': True, 'pdf_im_resolution': 1000, 'images_allowlist': {'path2/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'})", "Selected Statement": "final_args[key] = value + config_params[key]", "Function Input": {"args": "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': False, 'pdf_im_resolution': 500, 'images_allowlist': {'path1/': 1000}, 'commands_to_delete': ['\\\\todo1'], 'use_external_tikz': 'foo/bar/tikz'}", "config_params": "{'input_folder': 'foo_/bar_', 'resize_images': True, 'im_size': 1000, 'compress_pdf': True, 'pdf_im_resolution': 1000, 'images_allowlist': {'path2/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"}, "Variable Values Before Statement": {"value": "'foo/bar/tikz'"}, "Value After Statement Execution": "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': False, 'pdf_im_resolution': 500, 'images_allowlist': {'path2/': 1000, 'path1/': 1000}, 'commands_to_delete': ['\\\\todo1', '\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}", "Variable States During Runtime": {"args": [[1, "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': False, 'pdf_im_resolution': 500, 'images_allowlist': {'path1/': 1000}, 'commands_to_delete': ['\\\\todo1'], 'use_external_tikz': 'foo/bar/tikz'}"]], "config_params": [[1, "{'input_folder': 'foo_/bar_', 'resize_images': True, 'im_size': 1000, 'compress_pdf': True, 'pdf_im_resolution': 1000, 'images_allowlist': {'path2/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"]], "final_args": [[2.0, "{'input_folder': 'foo_/bar_', 'resize_images': True, 'im_size': 1000, 'compress_pdf': True, 'pdf_im_resolution': 1000, 'images_allowlist': {'path2/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"], [8.0, "{'input_folder': 'foo/bar', 'resize_images': True, 'im_size': 1000, 'compress_pdf': True, 'pdf_im_resolution': 1000, 'images_allowlist': {'path2/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"], [8.0, "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 1000, 'compress_pdf': True, 'pdf_im_resolution': 1000, 'images_allowlist': {'path2/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"], [8.0, "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': True, 'pdf_im_resolution': 1000, 'images_allowlist': {'path2/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"], [8.0, "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': False, 'pdf_im_resolution': 1000, 'images_allowlist': {'path2/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"], [8.0, "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': False, 'pdf_im_resolution': 500, 'images_allowlist': {'path2/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"], [14.0, "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': False, 'pdf_im_resolution': 500, 'images_allowlist': {'path2/': 1000, 'path1/': 1000}, 'commands_to_delete': ['\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"], [11.0, "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': False, 'pdf_im_resolution': 500, 'images_allowlist': {'path2/': 1000, 'path1/': 1000}, 'commands_to_delete': ['\\\\todo1', '\\\\todo2'], 'use_external_tikz': 'foo_/bar_/tikz_'}"], [8.0, "{'input_folder': 'foo/bar', 'resize_images': False, 'im_size': 500, 'compress_pdf': False, 'pdf_im_resolution': 500, 'images_allowlist': {'path2/': 1000, 'path1/': 1000}, 'commands_to_delete': ['\\\\todo1', '\\\\todo2'], 'use_external_tikz': 'foo/bar/tikz'}"]], "config_keys": [[3.0, "dict_keys(['input_folder', 'resize_images', 'im_size', 'compress_pdf', 'pdf_im_resolution', 'images_allowlist', 'commands_to_delete', 'use_external_tikz'])"]], "key": [[4.0, "'input_folder'"], [4.0, "'resize_images'"], [4.0, "'im_size'"], [4.0, "'compress_pdf'"], [4.0, "'pdf_im_resolution'"], [4.0, "'images_allowlist'"], [4.0, "'commands_to_delete'"], [4.0, "'use_external_tikz'"]], "value": [[4.0, "'foo/bar'"], [4.0, "False"], [4.0, "500"], [4.0, "False"], [4.0, "500"], [4.0, "{'path1/': 1000}"], [4.0, "['\\\\todo1']"], [4.0, "'foo/bar/tikz'"]]}, "Program Information": "Project Name: google-research+arxiv-latex-cleaner", "idx": 428} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _remove_command(text, command, keep_text=False):\n \"\"\"Removes '\\\\command{*}' from the string 'text'.\n\n Regex `base_pattern` used to match balanced parentheses taken from:\n https://stackoverflow.com/questions/546433/regular-expression-to-match-balanced-parentheses/35271017#35271017\n \"\"\"\n base_pattern = r'\\\\' + command + r'\\{((?:[^{}]+|\\{(?1)\\})*)\\}'\n # Loops in case of nested commands that need to retain text, e.g.,\n # \\red{hello \\red{world}}.\n while True:\n all_substitutions = []\n has_match = False\n for match in regex.finditer(base_pattern, text):\n # In case there are only spaces or nothing up to the following newline,\n # adds a percent, not to alter the newlines.\n has_match = True\n new_substring = (\n ''\n if not keep_text\n else text[match.span()[0] + len(command) + 2 : match.span()[1] - 1]\n )\n if match.span()[1] < len(text):\n next_newline = text[match.span()[1] :].find('\\n')\n if next_newline != -1:\n text_until_newline = text[\n match.span()[1] : match.span()[1] + next_newline\n ]\n if (\n not text_until_newline or text_until_newline.isspace()\n ) and not keep_text:\n new_substring = '%'\n all_substitutions.append(\n (match.span()[0], match.span()[1], new_substring)\n )\n\n for start, end, new_substring in reversed(all_substitutions):\n text = text[:start] + new_substring + text[end:]\n\n if not keep_text or not has_match:\n break\n\n return text\n\n_remove_command(text='A\\\\todo{B\\nC}D\\nE\\n\\\\end{document}', command='todo', keep_text=False)", "Selected Statement": "base_pattern = r'\\\\' + command + r'\\{((?:[^{}]+|\\{(?1)\\})*)\\}'", "Function Input": {"text": "'A\\\\todo{B\\nC}D\\nE\\n\\\\end{document}'", "command": "'todo'", "keep_text": "False"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "'\\\\\\\\todo\\\\{((?:[^{}]+|\\\\{(?1)\\\\})*)\\\\}'", "Variable States During Runtime": {"text": [[1, "'A\\\\todo{B\\nC}D\\nE\\n\\\\end{document}'"], [37.0, "'AD\\nE\\n\\\\end{document}'"]], "command": [[1, "'todo'"]], "keep_text": [[1, "False"]], "base_pattern": [[7.0, "'\\\\\\\\todo\\\\{((?:[^{}]+|\\\\{(?1)\\\\})*)\\\\}'"]], "all_substitutions": [[11.0, "[]"], [32.0, "[(1, 11, '')]"]], "has_match": [[12.0, "False"], [16.0, "True"]], "match": [[13.0, ""]], "new_substring": [[17.0, "''"]], "next_newline": [[23.0, "1"]], "text_until_newline": [[25.0, "'D'"]], "start": [[36.0, "1"]], "end": [[36.0, "11"]]}, "Program Information": "Project Name: google-research+arxiv-latex-cleaner", "idx": 429} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _search_reference(filename, contents, strict=False):\n \"\"\"Returns a match object if filename is referenced in contents, and None otherwise.\n\n If not strict mode, path prefix and extension are optional.\n \"\"\"\n if strict:\n # regex pattern for strict=True for path/to/img.ext:\n # \\{[\\s%]*path/to/img\\.ext[\\s%]*\\}\n filename_regex = filename.replace('.', r'\\.')\n else:\n filename_path = Path(filename)\n\n # make extension optional\n root, extension = filename_path.stem, filename_path.suffix\n basename_regex = '{}({})?'.format(\n regex.escape(root), regex.escape(extension)\n )\n\n # iterate through parent fragments to make path prefix optional\n path_prefix_regex = ''\n for fragment in reversed(filename_path.parents):\n if fragment.name == '.':\n continue\n fragment = regex.escape(fragment.name)\n path_prefix_regex = '({}{}{})?'.format(\n path_prefix_regex, fragment, os.sep\n )\n\n # Regex pattern for strict=True for path/to/img.ext:\n # \\{[\\s%]*()?()?[\\s%]*\\}\n filename_regex = path_prefix_regex + basename_regex\n\n # Some files 'path/to/file' are referenced in tex as './path/to/file' thus\n # adds prefix for relative paths starting with './' or '.\\' to regex search.\n filename_regex = r'(.' + os.sep + r')?' + filename_regex\n\n # Pads with braces and optional whitespace/comment characters.\n patn = r'\\{{[\\s%]*{}[\\s%]*\\}}'.format(filename_regex)\n # Picture references in LaTeX are allowed to be in different cases.\n return regex.search(patn, contents, regex.IGNORECASE)\n\n_search_reference(filename='to/img.ext', contents='{img.ext}', strict=False)", "Selected Statement": "filename_regex = path_prefix_regex + basename_regex", "Function Input": {"filename": "'to/img.ext'", "contents": "'{img.ext}'", "strict": "False"}, "Variable Values Before Statement": {"path_prefix_regex": "'((/)?to/)?'", "basename_regex": "'img(\\\\.ext)?'"}, "Value After Statement Execution": "'((/)?to/)?img(\\\\.ext)?'", "Variable States During Runtime": {"filename": [[1, "'to/img.ext'"]], "contents": [[1, "'{img.ext}'"]], "strict": [[1, "False"]], "filename_path": [[11.0, "PosixPath('to/img.ext')"]], "root": [[14.0, "'img'"]], "extension": [[14.0, "'.ext'"]], "basename_regex": [[15.0, "'img(\\\\.ext)?'"]], "path_prefix_regex": [[20.0, "''"], [25.0, "'(/)?'"], [25.0, "'((/)?to/)?'"]], "fragment": [[21.0, "PosixPath('.')"], [24.0, "''"], [21.0, "PosixPath('to')"], [24.0, "'to'"]], "filename_regex": [[31.0, "'((/)?to/)?img(\\\\.ext)?'"], [35.0, "'(./)?((/)?to/)?img(\\\\.ext)?'"]], "patn": [[38.0, "'\\\\{[\\\\s%]*(./)?((/)?to/)?img(\\\\.ext)?[\\\\s%]*\\\\}'"]]}, "Program Information": "Project Name: google-research+arxiv-latex-cleaner", "idx": 430} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def apply_changes(file_path: str, changes: List, confirm: bool = False):\n \"\"\"\n Pass changes as loaded json (list of dicts)\n \"\"\"\n with open(file_path) as f:\n original_file_lines = f.readlines()\n\n # Filter out explanation elements\n operation_changes = [change for change in changes if \"operation\" in change]\n explanations = [\n change[\"explanation\"] for change in changes if \"explanation\" in change\n ]\n\n # Sort the changes in reverse line order\n operation_changes.sort(key=lambda x: x[\"line\"], reverse=True)\n\n file_lines = original_file_lines.copy()\n for change in operation_changes:\n operation = change[\"operation\"]\n line = change[\"line\"]\n content = change[\"content\"]\n\n if operation == \"Replace\":\n file_lines[line - 1] = content + \"\\n\"\n elif operation == \"Delete\":\n del file_lines[line - 1]\n elif operation == \"InsertAfter\":\n file_lines.insert(line, content + \"\\n\")\n\n # Print explanations\n cprint(\"Explanations:\", \"blue\")\n for explanation in explanations:\n cprint(f\"- {explanation}\", \"blue\")\n\n # Display changes diff\n print(\"\\nChanges to be made:\")\n diff = difflib.unified_diff(original_file_lines, file_lines, lineterm=\"\")\n for line in diff:\n if line.startswith(\"+\"):\n cprint(line, \"green\", end=\"\")\n elif line.startswith(\"-\"):\n cprint(line, \"red\", end=\"\")\n else:\n print(line, end=\"\")\n\n if confirm:\n # check if user wants to apply changes or exit\n confirmation = input(\"Do you want to apply these changes? (y/n): \")\n if confirmation.lower() != \"y\":\n print(\"Changes not applied\")\n sys.exit(0)\n\n with open(file_path, \"w\") as f:\n f.writelines(file_lines)\n print(\"Changes applied.\")\n\napply_changes(file_path='/tmp/tmp6qrrn_j9', changes=[{'operation': 'Replace', 'line': 2, 'content': 'new second line'}], confirm=False)", "Selected Statement": "file_lines[line - 1] = content + \"\\n\"", "Function Input": {"file_path": "'/tmp/tmp6qrrn_j9'", "changes": "[{'operation': 'Replace', 'line': 2, 'content': 'new second line'}]", "confirm": "False"}, "Variable Values Before Statement": {"content": "'new second line'"}, "Value After Statement Execution": "['first line\\n', 'new second line\\n', 'third line']", "Variable States During Runtime": {"file_path": [[1, "'/tmp/tmp6qrrn_j9'"]], "changes": [[1, "[{'operation': 'Replace', 'line': 2, 'content': 'new second line'}]"]], "confirm": [[1, "False"]], "f": [[5.0, "<_io.TextIOWrapper name='/tmp/tmp6qrrn_j9' mode='r' encoding='UTF-8'>"], [53.0, "<_io.TextIOWrapper name='/tmp/tmp6qrrn_j9' mode='w' encoding='UTF-8'>"]], "original_file_lines": [[6.0, "['first line\\n', 'second line\\n', 'third line']"]], "operation_changes": [[9.0, "[{'operation': 'Replace', 'line': 2, 'content': 'new second line'}]"]], "explanations": [[10.0, "[]"]], "file_lines": [[17.0, "['first line\\n', 'second line\\n', 'third line']"], [24.0, "['first line\\n', 'new second line\\n', 'third line']"]], "change": [[18.0, "{'operation': 'Replace', 'line': 2, 'content': 'new second line'}"]], "operation": [[19.0, "'Replace'"]], "line": [[20.0, "2"], [38.0, "'--- '"], [38.0, "'+++ '"], [38.0, "'@@ -1,3 +1,3 @@'"], [38.0, "' first line\\n'"], [38.0, "'-second line\\n'"], [38.0, "'+new second line\\n'"], [38.0, "' third line'"]], "content": [[21.0, "'new second line'"]], "diff": [[37.0, ""]]}, "Program Information": "Project Name: biobootloader+wolverine", "idx": 431} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def generate(resource_types=()):\n resource_defs = {}\n definitions = {\n 'resources': resource_defs,\n 'string_dict': {\n \"type\": \"object\",\n \"patternProperties\": {\n \"\": {\"type\": \"string\"},\n },\n },\n 'basic_dict': {\n \"type\": \"object\",\n \"patternProperties\": {\n \"\": {\n 'oneOf': [\n {\"type\": \"string\"},\n {\"type\": \"boolean\"},\n {\"type\": \"number\"},\n ],\n }\n },\n },\n 'iam-statement': {\n 'additionalProperties': False,\n 'type': 'object',\n 'properties': {\n 'Sid': {'type': 'string'},\n 'Effect': {'type': 'string', 'enum': ['Allow', 'Deny']},\n 'Principal': {'anyOf': [\n {'type': 'string'},\n {'type': 'object'}, {'type': 'array'}]},\n 'NotPrincipal': {'anyOf': [{'type': 'object'}, {'type': 'array'}]},\n 'Action': {'anyOf': [{'type': 'string'}, {'type': 'array'}]},\n 'NotAction': {'anyOf': [{'type': 'string'}, {'type': 'array'}]},\n 'Resource': {'anyOf': [{'type': 'string'}, {'type': 'array'}]},\n 'NotResource': {'anyOf': [{'type': 'string'}, {'type': 'array'}]},\n 'Condition': {'type': 'object'}\n },\n 'required': ['Sid', 'Effect'],\n 'oneOf': [\n {'required': ['Principal', 'Action', 'Resource']},\n {'required': ['NotPrincipal', 'Action', 'Resource']},\n {'required': ['Principal', 'NotAction', 'Resource']},\n {'required': ['NotPrincipal', 'NotAction', 'Resource']},\n {'required': ['Principal', 'Action', 'NotResource']},\n {'required': ['NotPrincipal', 'Action', 'NotResource']},\n {'required': ['Principal', 'NotAction', 'NotResource']},\n {'required': ['NotPrincipal', 'NotAction', 'NotResource']}\n ]\n },\n 'actions': {},\n 'filters': {\n 'value': ValueFilter.schema,\n 'event': EventFilter.schema,\n 'age': AgeFilter.schema,\n 'reduce': ReduceFilter.schema,\n # Shortcut form of value filter as k=v\n 'valuekv': {\n 'type': 'object',\n 'additionalProperties': {'oneOf': [{'type': 'number'}, {'type': 'null'},\n {'type': 'array', 'maxItems': 0}, {'type': 'string'}, {'type': 'boolean'}]},\n 'minProperties': 1,\n 'maxProperties': 1},\n },\n 'filters_common': {\n 'list_item_attrs': _get_attr_schema(),\n 'comparison_operators': {\n 'enum': list(OPERATORS.keys())},\n 'value_types': {'enum': VALUE_TYPES},\n 'value_from': ValuesFrom.schema,\n 'value': {'oneOf': [\n {'type': 'array'},\n {'type': 'string'},\n {'type': 'boolean'},\n {'type': 'number'},\n {'type': 'null'}]},\n },\n 'policy': {\n 'type': 'object',\n 'required': ['name', 'resource'],\n 'additionalProperties': False,\n 'properties': {\n 'name': {\n 'type': 'string',\n 'pattern': \"^[A-z][A-z0-9]*(-[A-z0-9]+)*$\"},\n 'conditions': {\n 'type': 'array',\n 'items': {'anyOf': [\n {'type': 'object', 'additionalProperties': False,\n 'properties': {'or': {\n '$ref': '#/definitions/policy/properties/conditions'}}},\n {'type': 'object', 'additionalProperties': False,\n 'properties': {'not': {\n '$ref': '#/definitions/policy/properties/conditions'}}},\n {'type': 'object', 'additionalProperties': False,\n 'properties': {'and': {\n '$ref': '#/definitions/policy/properties/conditions'}}},\n {'$ref': '#/definitions/filters/value'},\n {'$ref': '#/definitions/filters/event'},\n {'$ref': '#/definitions/filters/valuekv'}]}},\n # these should be deprecated for conditions\n 'region': {'type': 'string'},\n 'tz': {'type': 'string'},\n 'start': {'format': 'date-time'},\n 'end': {'format': 'date-time'},\n 'resource': {'oneOf': [\n {'type': 'string'},\n {'type': 'array', 'items': {'type': 'string'}}]},\n 'max-resources': {'anyOf': [\n {'type': 'integer', 'minimum': 1},\n {'$ref': '#/definitions/max-resources-properties'}\n ]},\n 'max-resources-percent': {'type': 'number', 'minimum': 0, 'maximum': 100},\n 'comment': {'type': 'string'},\n 'comments': {'type': 'string'},\n 'description': {'type': 'string'},\n 'tags': {'type': 'array', 'items': {'type': 'string'}},\n 'metadata': {'type': 'object'},\n 'mode': {'$ref': '#/definitions/policy-mode'},\n 'source': {'enum': list(sources.keys())},\n 'actions': {\n 'type': 'array',\n },\n 'filters': {\n 'type': 'array'\n },\n #\n # TODO: source queries should really move under\n # source. This was initially used for describe sources\n # to expose server side query mechanisms, however its\n # important to note it also prevents resource cache\n # utilization between policies that have different\n # queries.\n 'query': {\n 'type': 'array', 'items': {'type': 'object'}}\n\n },\n },\n 'policy-mode': {\n 'anyOf': [e.schema for _, e in execution.items()],\n },\n 'max-resources-properties': {\n 'type': 'object',\n 'additionalProperties': False,\n 'properties': {\n 'amount': {\"type\": 'integer', 'minimum': 1},\n 'op': {'enum': ['or', 'and']},\n 'percent': {'type': 'number', 'minimum': 0, 'maximum': 100}\n }\n }\n }\n\n resource_refs = []\n for cloud_name, cloud_type in sorted(clouds.items()):\n for type_name, resource_type in sorted(cloud_type.resources.items()):\n r_type_name = \"%s.%s\" % (cloud_name, type_name)\n if resource_types and r_type_name not in resource_types:\n if not resource_type.type_aliases:\n continue\n elif not {\"%s.%s\" % (cloud_name, ralias) for ralias\n in resource_type.type_aliases}.intersection(\n resource_types):\n continue\n\n aliases = []\n if resource_type.type_aliases:\n aliases.extend([\"%s.%s\" % (cloud_name, a) for a in resource_type.type_aliases])\n # aws gets legacy aliases with no cloud prefix\n if cloud_name == 'aws':\n aliases.extend(resource_type.type_aliases)\n\n # aws gets additional alias for default name\n if cloud_name == 'aws':\n aliases.append(type_name)\n\n resource_refs.append(\n process_resource(\n r_type_name,\n resource_type,\n resource_defs,\n aliases,\n definitions,\n cloud_name\n ))\n\n schema = {\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n 'id': 'http://schema.cloudcustodian.io/v0/custodian.json',\n 'definitions': definitions,\n 'type': 'object',\n 'required': ['policies'],\n 'additionalProperties': False,\n 'properties': {\n 'vars': {'type': 'object'},\n 'policies': {\n 'type': 'array',\n 'additionalItems': False,\n 'items': {'anyOf': resource_refs}\n }\n }\n }\n\n # allow empty policies with lazy load\n if not resource_refs:\n schema['properties']['policies']['items'] = {'type': 'object'}\n return schema\n\ngenerate(resource_types=())", "Selected Statement": "r_type_name = \"%s.%s\" % (cloud_name, type_name)", "Function Input": {"resource_types": "()"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "'gcp.region'", "Variable States During Runtime": {"resource_types": [[1, "()"]], "resource_defs": [[2.0, "{}"], [177.0, "{'gcp.region': {'actions': {}, 'filters': {}, 'policy': {'allOf': [{'$ref': '#/definitions/policy'}, {'properties': {'resource': {'enum': ['gcp.region']}, 'filters': {'type': 'array', 'items': {'anyOf': [{'enum': []}, {'type': 'object', 'additionalProperties': False, 'properties': {'or': {'$ref': '#/definitions/resources/gcp.region/policy/allOf/1/properties/filters'}}}, {'type': 'object', 'additionalProperties': False, 'properties': {'and': {'$ref': '#/definitions/resources/gcp.region/policy/allOf/1/properties/filters'}}}, {'type': 'object', 'additionalProperties': False, 'properties': {'not': {'$ref': '#/definitions/resources/gcp.region/policy/allOf/1/properties/filters'}}}]}}, 'actions': {'type': 'array', 'items': {'anyOf': [{'enum': []}]}}}}]}}}"]], "definitions": [[3.0, "{'resources': {}, 'string_dict': {'type': 'object', 'patternProperties': {'': {'type': 'string'}}}, 'basic_dict': {'type': 'object', 'patternProperties': {'': {'oneOf': [{'type': 'string'}, {'type': 'boolean'}, {'type': 'number'}]}}}, 'iam-statement': {'additionalProperties': False, 'type': 'object', 'properties': {'Sid': {'type': 'string'}, 'Effect': {'type': 'string', 'enum': ['Allow', 'Deny']}, 'Principal': {'anyOf': [{'type': 'string'}, {'type': 'object'}, {'type': 'array'}]}, 'NotPrincipal': {'anyOf': [{'type': 'object'}, {'type': 'array'}]}, 'Action': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'NotAction': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'Resource': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'NotResource': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'Condition': {'type': 'object'}}, 'required': ['Sid', 'Effect'], 'oneOf': [{'required': ['Principal', 'Action', 'Resource']}, {'required': ['NotPrincipal', 'Action', 'Resource']}, {'required': ['Principal', 'NotAction', 'Resource']}, {'required': ['NotPrincipal', 'NotAction', 'Resource']}, {'required': ['Principal', 'Action', 'NotResource']}, {'required': ['NotPrincipal', 'Action', 'NotResource']}, {'required': ['Principal', 'NotAction', 'NotResource']}, {'required': ['NotPrincipal', 'NotAction', 'NotResource']}]}, 'actions': {}, 'filters': {'value': {'type': 'object', 'additionalProperties': False, 'required': ['type'], 'properties': {'type': {'enum': ['value']}, 'key': {'type': 'string'}, 'value_type': {'$ref': '#/definitions/filters_common/value_types'}, 'default': {'type': 'object'}, 'value_regex': {'type': 'string'}, 'value_from': {'$ref': '#/definitions/filters_common/value_from'}, 'value': {'$ref': '#/definitions/filters_common/value'}, 'op': {'$ref': '#/definitions/filters_common/comparison_operators'}, 'value_path': {'type': 'string'}}}, 'event': {'type': 'object', 'additionalProperties': False, 'required': ['type'], 'properties': {'type': {'enum': ['event']}, 'key': {'type': 'string'}, 'value_type': {'$ref': '#/definitions/filters_common/value_types'}, 'default': {'type': 'object'}, 'value_regex': {'type': 'string'}, 'value_from': {'$ref': '#/definitions/filters_common/value_from'}, 'value': {'$ref': '#/definitions/filters_common/value'}, 'op': {'$ref': '#/definitions/filters_common/comparison_operators'}, 'value_path': {'type': 'string'}}}, 'age': None, 'reduce': {'type': 'object', 'additionalProperties': False, 'required': ['type'], 'properties': {'type': {'enum': ['reduce']}, 'group-by': {'oneOf': [{'type': 'string'}, {'type': 'object', 'key': {'type': 'string'}, 'value_type': {'enum': ['string', 'number', 'date']}, 'value_regex': 'string'}]}, 'sort-by': {'oneOf': [{'type': 'string'}, {'type': 'object', 'key': {'type': 'string'}, 'value_type': {'enum': ['string', 'number', 'date']}, 'value_regex': 'string'}]}, 'order': {'enum': ['asc', 'desc', 'reverse', 'randomize']}, 'null-order': {'enum': ['first', 'last']}, 'limit': {'type': 'number', 'minimum': 0}, 'limit-percent': {'type': 'number', 'minimum': 0, 'maximum': 100}, 'discard': {'type': 'number', 'minimum': 0}, 'discard-percent': {'type': 'number', 'minimum': 0, 'maximum': 100}}}, 'valuekv': {'type': 'object', 'additionalProperties': {'oneOf': [{'type': 'number'}, {'type': 'null'}, {'type': 'array', 'maxItems': 0}, {'type': 'string'}, {'type': 'boolean'}]}, 'minProperties': 1, 'maxProperties': 1}}, 'filters_common': {'list_item_attrs': {'items': {'anyOf': [{'$ref': '#/definitions/filters/value'}, {'$ref': '#/definitions/filters/valuekv'}, {'additional_properties': False, 'properties': {'and': {'type': 'array', 'items': {'anyOf': [{'$ref': '#/definitions/filters/value'}, {'$ref': '#/definitions/filters/valuekv'}]}}}, 'type': 'object'}, {'additional_properties': False, 'properties': {'or': {'type': 'array', 'items': {'anyOf': [{'$ref': '#/definitions/filters/value'}, {'$ref': '#/definitions/filters/valuekv'}]}}}, 'type': 'object'}, {'additional_properties': False, 'properties': {'not': {'type': 'array', 'items': {'anyOf': [{'$ref': '#/definitions/filters/value...onalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['asg-instance-state']}, 'events': {'type': 'array', 'items': {'enum': ['launch-success', 'launch-failure', 'terminate-success', 'terminate-failure']}}}, 'required': ['type']}, {'type': 'object', 'additionalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['guard-duty']}}, 'required': ['type']}, {'type': 'object', 'additionalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['config-poll-rule']}, 'schedule': {'enum': ['One_Hour', 'Three_Hours', 'Six_Hours', 'Twelve_Hours', 'TwentyFour_Hours']}, 'ignore-support-check': {'type': 'boolean'}}, 'required': ['type']}, {'type': 'object', 'additionalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['config-rule']}}, 'required': ['type']}]}, 'max-resources-properties': {'type': 'object', 'additionalProperties': False, 'properties': {'amount': {'type': 'integer', 'minimum': 1}, 'op': {'enum': ['or', 'and']}, 'percent': {'type': 'number', 'minimum': 0, 'maximum': 100}}}}"], [177.0, "{'resources': {'gcp.region': {'actions': {}, 'filters': {}, 'policy': {'allOf': [{'$ref': '#/definitions/policy'}, {'properties': {'resource': {'enum': ['gcp.region']}, 'filters': {'type': 'array', 'items': {'anyOf': [{'enum': []}, {'type': 'object', 'additionalProperties': False, 'properties': {'or': {'$ref': '#/definitions/resources/gcp.region/policy/allOf/1/properties/filters'}}}, {'type': 'object', 'additionalProperties': False, 'properties': {'and': {'$ref': '#/definitions/resources/gcp.region/policy/allOf/1/properties/filters'}}}, {'type': 'object', 'additionalProperties': False, 'properties': {'not': {'$ref': '#/definitions/resources/gcp.region/policy/allOf/1/properties/filters'}}}]}}, 'actions': {'type': 'array', 'items': {'anyOf': [{'enum': []}]}}}}]}}}, 'string_dict': {'type': 'object', 'patternProperties': {'': {'type': 'string'}}}, 'basic_dict': {'type': 'object', 'patternProperties': {'': {'oneOf': [{'type': 'string'}, {'type': 'boolean'}, {'type': 'number'}]}}}, 'iam-statement': {'additionalProperties': False, 'type': 'object', 'properties': {'Sid': {'type': 'string'}, 'Effect': {'type': 'string', 'enum': ['Allow', 'Deny']}, 'Principal': {'anyOf': [{'type': 'string'}, {'type': 'object'}, {'type': 'array'}]}, 'NotPrincipal': {'anyOf': [{'type': 'object'}, {'type': 'array'}]}, 'Action': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'NotAction': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'Resource': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'NotResource': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'Condition': {'type': 'object'}}, 'required': ['Sid', 'Effect'], 'oneOf': [{'required': ['Principal', 'Action', 'Resource']}, {'required': ['NotPrincipal', 'Action', 'Resource']}, {'required': ['Principal', 'NotAction', 'Resource']}, {'required': ['NotPrincipal', 'NotAction', 'Resource']}, {'required': ['Principal', 'Action', 'NotResource']}, {'required': ['NotPrincipal', 'Action', 'NotResource']}, {'required': ['Principal', 'NotAction', 'NotResource']}, {'required': ['NotPrincipal', 'NotAction', 'NotResource']}]}, 'actions': {}, 'filters': {'value': {'type': 'object', 'additionalProperties': False, 'required': ['type'], 'properties': {'type': {'enum': ['value']}, 'key': {'type': 'string'}, 'value_type': {'$ref': '#/definitions/filters_common/value_types'}, 'default': {'type': 'object'}, 'value_regex': {'type': 'string'}, 'value_from': {'$ref': '#/definitions/filters_common/value_from'}, 'value': {'$ref': '#/definitions/filters_common/value'}, 'op': {'$ref': '#/definitions/filters_common/comparison_operators'}, 'value_path': {'type': 'string'}}}, 'event': {'type': 'object', 'additionalProperties': False, 'required': ['type'], 'properties': {'type': {'enum': ['event']}, 'key': {'type': 'string'}, 'value_type': {'$ref': '#/definitions/filters_common/value_types'}, 'default': {'type': 'object'}, 'value_regex': {'type': 'string'}, 'value_from': {'$ref': '#/definitions/filters_common/value_from'}, 'value': {'$ref': '#/definitions/filters_common/value'}, 'op': {'$ref': '#/definitions/filters_common/comparison_operators'}, 'value_path': {'type': 'string'}}}, 'age': None, 'reduce': {'type': 'object', 'additionalProperties': False, 'required': ['type'], 'properties': {'type': {'enum': ['reduce']}, 'group-by': {'oneOf': [{'type': 'string'}, {'type': 'object', 'key': {'type': 'string'}, 'value_type': {'enum': ['string', 'number', 'date']}, 'value_regex': 'string'}]}, 'sort-by': {'oneOf': [{'type': 'string'}, {'type': 'object', 'key': {'type': 'string'}, 'value_type': {'enum': ['string', 'number', 'date']}, 'value_regex': 'string'}]}, 'order': {'enum': ['asc', 'desc', 'reverse', 'randomize']}, 'null-order': {'enum': ['first', 'last']}, 'limit': {'type': 'number', 'minimum': 0}, 'limit-percent': {'type': 'number', 'minimum': 0, 'maximum': 100}, 'discard': {'type': 'number', 'minimum': 0}, 'discard-percent': {'type': 'number', 'minimum': 0, 'maximum': 100}}}, 'valuekv': {'type': 'object', 'additionalProperties': {'oneOf': [{'type': 'number'}, {'type': 'null'}, {'type': 'array', 'maxItems': 0}, {...onalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['asg-instance-state']}, 'events': {'type': 'array', 'items': {'enum': ['launch-success', 'launch-failure', 'terminate-success', 'terminate-failure']}}}, 'required': ['type']}, {'type': 'object', 'additionalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['guard-duty']}}, 'required': ['type']}, {'type': 'object', 'additionalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['config-poll-rule']}, 'schedule': {'enum': ['One_Hour', 'Three_Hours', 'Six_Hours', 'Twelve_Hours', 'TwentyFour_Hours']}, 'ignore-support-check': {'type': 'boolean'}}, 'required': ['type']}, {'type': 'object', 'additionalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['config-rule']}}, 'required': ['type']}]}, 'max-resources-properties': {'type': 'object', 'additionalProperties': False, 'properties': {'amount': {'type': 'integer', 'minimum': 1}, 'op': {'enum': ['or', 'and']}, 'percent': {'type': 'number', 'minimum': 0, 'maximum': 100}}}}"]], "resource_refs": [[153.0, "[]"], [176.0, "[{'$ref': '#/definitions/resources/gcp.region/policy'}]"]], "cloud_type": [[154.0, ""], [154.0, ""]], "cloud_name": [[154.0, "'aws'"], [154.0, "'gcp'"]], "type_name": [[155.0, "'region'"]], "resource_type": [[155.0, ""]], "r_type_name": [[156.0, "'gcp.region'"]], "aliases": [[165.0, "[]"]], "schema": [[186.0, "{'$schema': 'http://json-schema.org/draft-07/schema#', 'id': 'http://schema.cloudcustodian.io/v0/custodian.json', 'definitions': {'resources': {'gcp.region': {'actions': {}, 'filters': {}, 'policy': {'allOf': [{'$ref': '#/definitions/policy'}, {'properties': {'resource': {'enum': ['gcp.region']}, 'filters': {'type': 'array', 'items': {'anyOf': [{'enum': []}, {'type': 'object', 'additionalProperties': False, 'properties': {'or': {'$ref': '#/definitions/resources/gcp.region/policy/allOf/1/properties/filters'}}}, {'type': 'object', 'additionalProperties': False, 'properties': {'and': {'$ref': '#/definitions/resources/gcp.region/policy/allOf/1/properties/filters'}}}, {'type': 'object', 'additionalProperties': False, 'properties': {'not': {'$ref': '#/definitions/resources/gcp.region/policy/allOf/1/properties/filters'}}}]}}, 'actions': {'type': 'array', 'items': {'anyOf': [{'enum': []}]}}}}]}}}, 'string_dict': {'type': 'object', 'patternProperties': {'': {'type': 'string'}}}, 'basic_dict': {'type': 'object', 'patternProperties': {'': {'oneOf': [{'type': 'string'}, {'type': 'boolean'}, {'type': 'number'}]}}}, 'iam-statement': {'additionalProperties': False, 'type': 'object', 'properties': {'Sid': {'type': 'string'}, 'Effect': {'type': 'string', 'enum': ['Allow', 'Deny']}, 'Principal': {'anyOf': [{'type': 'string'}, {'type': 'object'}, {'type': 'array'}]}, 'NotPrincipal': {'anyOf': [{'type': 'object'}, {'type': 'array'}]}, 'Action': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'NotAction': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'Resource': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'NotResource': {'anyOf': [{'type': 'string'}, {'type': 'array'}]}, 'Condition': {'type': 'object'}}, 'required': ['Sid', 'Effect'], 'oneOf': [{'required': ['Principal', 'Action', 'Resource']}, {'required': ['NotPrincipal', 'Action', 'Resource']}, {'required': ['Principal', 'NotAction', 'Resource']}, {'required': ['NotPrincipal', 'NotAction', 'Resource']}, {'required': ['Principal', 'Action', 'NotResource']}, {'required': ['NotPrincipal', 'Action', 'NotResource']}, {'required': ['Principal', 'NotAction', 'NotResource']}, {'required': ['NotPrincipal', 'NotAction', 'NotResource']}]}, 'actions': {}, 'filters': {'value': {'type': 'object', 'additionalProperties': False, 'required': ['type'], 'properties': {'type': {'enum': ['value']}, 'key': {'type': 'string'}, 'value_type': {'$ref': '#/definitions/filters_common/value_types'}, 'default': {'type': 'object'}, 'value_regex': {'type': 'string'}, 'value_from': {'$ref': '#/definitions/filters_common/value_from'}, 'value': {'$ref': '#/definitions/filters_common/value'}, 'op': {'$ref': '#/definitions/filters_common/comparison_operators'}, 'value_path': {'type': 'string'}}}, 'event': {'type': 'object', 'additionalProperties': False, 'required': ['type'], 'properties': {'type': {'enum': ['event']}, 'key': {'type': 'string'}, 'value_type': {'$ref': '#/definitions/filters_common/value_types'}, 'default': {'type': 'object'}, 'value_regex': {'type': 'string'}, 'value_from': {'$ref': '#/definitions/filters_common/value_from'}, 'value': {'$ref': '#/definitions/filters_common/value'}, 'op': {'$ref': '#/definitions/filters_common/comparison_operators'}, 'value_path': {'type': 'string'}}}, 'age': None, 'reduce': {'type': 'object', 'additionalProperties': False, 'required': ['type'], 'properties': {'type': {'enum': ['reduce']}, 'group-by': {'oneOf': [{'type': 'string'}, {'type': 'object', 'key': {'type': 'string'}, 'value_type': {'enum': ['string', 'number', 'date']}, 'value_regex': 'string'}]}, 'sort-by': {'oneOf': [{'type': 'string'}, {'type': 'object', 'key': {'type': 'string'}, 'value_type': {'enum': ['string', 'number', 'date']}, 'value_regex': 'string'}]}, 'order': {'enum': ['asc', 'desc', 'reverse', 'randomize']}, 'null-order': {'enum': ['first', 'last']}, 'limit': {'type': 'number', 'minimum': 0}, 'limit-percent': {'type': 'number', 'minimum': 0, 'maximum': 100}, 'discard': {'type': 'number', 'minimum': 0}, 'discard-percent': {'type': 'number', 'minimum': 0, 'maximum': 100}}}, 'valuekv'...ype': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['asg-instance-state']}, 'events': {'type': 'array', 'items': {'enum': ['launch-success', 'launch-failure', 'terminate-success', 'terminate-failure']}}}, 'required': ['type']}, {'type': 'object', 'additionalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['guard-duty']}}, 'required': ['type']}, {'type': 'object', 'additionalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['config-poll-rule']}, 'schedule': {'enum': ['One_Hour', 'Three_Hours', 'Six_Hours', 'Twelve_Hours', 'TwentyFour_Hours']}, 'ignore-support-check': {'type': 'boolean'}}, 'required': ['type']}, {'type': 'object', 'additionalProperties': False, 'properties': {'execution-options': {'type': 'object'}, 'function-prefix': {'type': 'string'}, 'member-role': {'type': 'string'}, 'packages': {'type': 'array', 'items': {'type': 'string'}}, 'layers': {'type': 'array', 'items': {'type': 'string'}}, 'concurrency': {'type': 'integer'}, 'runtime': {'enum': ['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']}, 'role': {'type': 'string'}, 'handler': {'type': 'string'}, 'pattern': {'type': 'object', 'minProperties': 1}, 'timeout': {'type': 'number'}, 'memory': {'type': 'number'}, 'environment': {'type': 'object'}, 'tags': {'type': 'object'}, 'dead_letter_config': {'type': 'object'}, 'kms_key_arn': {'type': 'string'}, 'tracing_config': {'type': 'object'}, 'security_groups': {'type': 'array'}, 'subnets': {'type': 'array'}, 'type': {'enum': ['config-rule']}}, 'required': ['type']}]}, 'max-resources-properties': {'type': 'object', 'additionalProperties': False, 'properties': {'amount': {'type': 'integer', 'minimum': 1}, 'op': {'enum': ['or', 'and']}, 'percent': {'type': 'number', 'minimum': 0, 'maximum': 100}}}}, 'type': 'object', 'required': ['policies'], 'additionalProperties': False, 'properties': {'vars': {'type': 'object'}, 'policies': {'type': 'array', 'additionalItems': False, 'items': {'anyOf': [{'$ref': '#/definitions/resources/gcp.region/policy'}]}}}}"]]}, "Program Information": "Project Name: cloud-custodian+cloud-custodian", "idx": 432} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def parse_single_layout(layout_str):\n \"\"\"Parse a single layout from a string\n\n See parse_layout for details about valid layout strings.\n \"\"\"\n # width of the layout (x-axis)\n width = None\n # list of layout rows\n rows = []\n start = False\n for i, line in enumerate(layout_str.splitlines()):\n row = line.strip()\n if not row:\n # always ignore empty lines\n continue\n # a layout is always started by a full row of walls\n if not start:\n if row.count('#') != len(row):\n raise ValueError(f\"Layout must be enclosed by walls (line: {i})!\")\n else:\n # start the layout parsing\n start = True\n # set width of layout\n width = len(row)\n # check that width is even\n if width % 2:\n raise ValueError(f\"Layout width must be even (found {width})!\")\n rows.append(row)\n continue\n # Here we are within the layout\n # every row must have the same length\n if len(row) != width:\n raise ValueError(f\"Layout rows have differing widths (line: {i})!\")\n # rows are always enclosed by walls\n if row[0] != '#' or row[-1] != '#':\n raise ValueError(f\"Layout must be enclosed by walls (line:{i})!\")\n # append current row to the list of rows\n rows.append(row)\n # detect closing row and ignore whatever follows\n if row.count('#') == len(row):\n start = False\n break\n\n if start:\n # layout has not been closed!\n raise ValueError(f\"Layout must be enclosed by walls (line:{i})!\")\n\n # height of the layout (y-axis)\n height = len(rows)\n walls = []\n food = []\n # bot positions (we assume 4 bots)\n bots = [None]*4\n\n # iterate through the grid of characters\n for y, row in enumerate(rows):\n for x, char in enumerate(row):\n coord = (x, y)\n # assign the char to the corresponding list\n if char == '#':\n # wall\n walls.append(coord)\n elif char == '.':\n # food\n food.append(coord)\n elif char == ' ':\n # empty\n continue\n else:\n # bot\n try:\n # we expect an 0<=index<=3\n bot_idx = int(char)\n if bot_idx >= len(bots):\n # reuse the except below\n raise ValueError\n except ValueError:\n raise ValueError(f\"Unknown character {char} in maze!\")\n bots[bot_idx] = coord\n walls.sort()\n food.sort()\n return {'walls':walls, 'food':food, 'bots':bots}\n\nparse_single_layout(layout_str='##################\\n#. ... .##. 3#\\n# # # . .### #1#\\n# # ##. . #\\n# . .## # #\\n#0# ###. . # # #\\n#2 .##. ... .#\\n##################')", "Selected Statement": "bots = [None]*4", "Function Input": {"layout_str": "'##################\\n#. ... .##. 3#\\n# # # . .### #1#\\n# # ##. . #\\n# . .## # #\\n#0# ###. . # # #\\n#2 .##. ... .#\\n##################'"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "[None, None, None, None]", "Variable States During Runtime": {"layout_str": [[1, "'##################\\n#. ... .##. 3#\\n# # # . .### #1#\\n# # ##. . #\\n# . .## # #\\n#0# ###. . # # #\\n#2 .##. ... .#\\n##################'"]], "width": [[7.0, "None"], [24.0, "18"]], "rows": [[9.0, "[]"], [28.0, "['##################']"], [38.0, "['##################', '#. ... .##. 3#']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #', '#0# ###. . # # #']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #', '#0# ###. . # # #', '#2 .##. ... .#']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #', '#0# ###. . # # #', '#2 .##. ... .#', '##################']"]], "start": [[10.0, "False"], [22.0, "True"], [41.0, "False"]], "i": [[11.0, "0"], [11.0, "1"], [11.0, "2"], [11.0, "3"], [11.0, "4"], [11.0, "5"], [11.0, "6"], [11.0, "7"]], "line": [[11.0, "'##################'"], [11.0, "'#. ... .##. 3#'"], [11.0, "'# # # . .### #1#'"], [11.0, "'# # ##. . #'"], [11.0, "'# . .## # #'"], [11.0, "'#0# ###. . # # #'"], [11.0, "'#2 .##. ... .#'"], [11.0, "'##################'"]], "row": [[12.0, "'##################'"], [12.0, "'#. ... .##. 3#'"], [12.0, "'# # # . .### #1#'"], [12.0, "'# # ##. . #'"], [12.0, "'# . .## # #'"], [12.0, "'#0# ###. . # # #'"], [12.0, "'#2 .##. ... .#'"], [12.0, "'##################'"], [56.0, "'#. ... .##. 3#'"], [56.0, "'# # # . .### #1#'"], [56.0, "'# # ##. . #'"], [56.0, "'# . .## # #'"], [56.0, "'#0# ###. . # # #'"], [56.0, "'#2 .##. ... .#'"], [56.0, "'##################'"]], "height": [[49.0, "8"]], "walls": [[50.0, "[]"], [62.0, "[(0, 0)]"], [62.0, "[(0, 0), (1, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7), (14, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7), (14, 7), (15, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7), (14, 7), (15, 7), (16, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7), (14, 7), (15, 7), (16, 7), (17, 7)]"], [80.0, "[(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (1, 0), (1, 7), (2, 0), (2, 2), (2, 3), (2, 5), (2, 7), (3, 0), (3, 7), (4, 0), (4, 2), (4, 3), (4, 5), (4, 7), (5, 0), (5, 3), (5, 5), (5, 7), (6, 0), (6, 5), (6, 7), (7, 0), (7, 7), (8, 0), (8, 1), (8, 6), (8, 7), (9, 0), (9, 1), (9, 6), (9, 7), (10, 0), (10, 7), (11, 0), (11, 2), (11, 7), (12, 0), (12, 2), (12, 4), (12, 7), (13, 0), (13, 2), (13, 4), (13, 5), (13, 7), (14, 0), (14, 7), (15, 0), (15, 2), (15, 4), (15, 5), (15, 7), (16, 0), (16, 7), (17, 0), (17, 1), (17, 2), (17, 3), (17, 4), (17, 5), (17, 6), (17, 7)]"]], "food": [[51.0, "[]"], [65.0, "[(1, 1)]"], [65.0, "[(1, 1), (3, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6), (12, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6), (12, 6), (13, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6), (12, 6), (13, 6), (14, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6), (12, 6), (13, 6), (14, 6), (16, 6)]"], [81.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (6, 3), (7, 1), (7, 2), (7, 4), (7, 5), (7, 6), (10, 1), (10, 2), (10, 3), (10, 5), (10, 6), (11, 4), (12, 6), (13, 6), (14, 6), (16, 6)]"]], "bots": [[53.0, "[None, None, None, None]"], [79.0, "[None, None, None, (16, 1)]"], [79.0, "[None, (16, 2), None, (16, 1)]"], [79.0, "[(1, 5), (16, 2), None, (16, 1)]"], [79.0, "[(1, 5), (16, 2), (1, 6), (16, 1)]"]], "y": [[56.0, "0"], [56.0, "1"], [56.0, "2"], [56.0, "3"], [56.0, "4"], [56.0, "5"], [56.0, "6"], [56.0, "7"]], "x": [[57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"]], "char": [[57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'3'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'1'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'0'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'2'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"]], "coord": [[58.0, "(0, 0)"], [58.0, "(1, 0)"], [58.0, "(2, 0)"], [58.0, "(3, 0)"], [58.0, "(4, 0)"], [58.0, "(5, 0)"], [58.0, "(6, 0)"], [58.0, "(7, 0)"], [58.0, "(8, 0)"], [58.0, "(9, 0)"], [58.0, "(10, 0)"], [58.0, "(11, 0)"], [58.0, "(12, 0)"], [58.0, "(13, 0)"], [58.0, "(14, 0)"], [58.0, "(15, 0)"], [58.0, "(16, 0)"], [58.0, "(17, 0)"], [58.0, "(0, 1)"], [58.0, "(1, 1)"], [58.0, "(2, 1)"], [58.0, "(3, 1)"], [58.0, "(4, 1)"], [58.0, "(5, 1)"], [58.0, "(6, 1)"], [58.0, "(7, 1)"], [58.0, "(8, 1)"], [58.0, "(9, 1)"], [58.0, "(10, 1)"], [58.0, "(11, 1)"], [58.0, "(12, 1)"], [58.0, "(13, 1)"], [58.0, "(14, 1)"], [58.0, "(15, 1)"], [58.0, "(16, 1)"], [58.0, "(17, 1)"], [58.0, "(0, 2)"], [58.0, "(1, 2)"], [58.0, "(2, 2)"], [58.0, "(3, 2)"], [58.0, "(4, 2)"], [58.0, "(5, 2)"], [58.0, "(6, 2)"], [58.0, "(7, 2)"], [58.0, "(8, 2)"], [58.0, "(9, 2)"], [58.0, "(10, 2)"], [58.0, "(11, 2)"], [58.0, "(12, 2)"], [58.0, "(13, 2)"], [58.0, "(14, 2)"], [58.0, "(15, 2)"], [58.0, "(16, 2)"], [58.0, "(17, 2)"], [58.0, "(0, 3)"], [58.0, "(1, 3)"], [58.0, "(2, 3)"], [58.0, "(3, 3)"], [58.0, "(4, 3)"], [58.0, "(5, 3)"], [58.0, "(6, 3)"], [58.0, "(7, 3)"], [58.0, "(8, 3)"], [58.0, "(9, 3)"], [58.0, "(10, 3)"], [58.0, "(11, 3)"], [58.0, "(12, 3)"], [58.0, "(13, 3)"], [58.0, "(14, 3)"], [58.0, "(15, 3)"], [58.0, "(16, 3)"], [58.0, "(17, 3)"], [58.0, "(0, 4)"], [58.0, "(1, 4)"], [58.0, "(2, 4)"], [58.0, "(3, 4)"], [58.0, "(4, 4)"], [58.0, "(5, 4)"], [58.0, "(6, 4)"], [58.0, "(7, 4)"], [58.0, "(8, 4)"], [58.0, "(9, 4)"], [58.0, "(10, 4)"], [58.0, "(11, 4)"], [58.0, "(12, 4)"], [58.0, "(13, 4)"], [58.0, "(14, 4)"], [58.0, "(15, 4)"], [58.0, "(16, 4)"], [58.0, "(17, 4)"], [58.0, "(0, 5)"], [58.0, "(1, 5)"], [58.0, "(2, 5)"], [58.0, "(3, 5)"], [58.0, "(4, 5)"], [58.0, "(5, 5)"], [58.0, "(6, 5)"], [58.0, "(7, 5)"], [58.0, "(8, 5)"], [58.0, "(9, 5)"], [58.0, "(10, 5)"], [58.0, "(11, 5)"], [58.0, "(12, 5)"], [58.0, "(13, 5)"], [58.0, "(14, 5)"], [58.0, "(15, 5)"], [58.0, "(16, 5)"], [58.0, "(17, 5)"], [58.0, "(0, 6)"], [58.0, "(1, 6)"], [58.0, "(2, 6)"], [58.0, "(3, 6)"], [58.0, "(4, 6)"], [58.0, "(5, 6)"], [58.0, "(6, 6)"], [58.0, "(7, 6)"], [58.0, "(8, 6)"], [58.0, "(9, 6)"], [58.0, "(10, 6)"], [58.0, "(11, 6)"], [58.0, "(12, 6)"], [58.0, "(13, 6)"], [58.0, "(14, 6)"], [58.0, "(15, 6)"], [58.0, "(16, 6)"], [58.0, "(17, 6)"], [58.0, "(0, 7)"], [58.0, "(1, 7)"], [58.0, "(2, 7)"], [58.0, "(3, 7)"], [58.0, "(4, 7)"], [58.0, "(5, 7)"], [58.0, "(6, 7)"], [58.0, "(7, 7)"], [58.0, "(8, 7)"], [58.0, "(9, 7)"], [58.0, "(10, 7)"], [58.0, "(11, 7)"], [58.0, "(12, 7)"], [58.0, "(13, 7)"], [58.0, "(14, 7)"], [58.0, "(15, 7)"], [58.0, "(16, 7)"], [58.0, "(17, 7)"]], "bot_idx": [[73.0, "3"], [73.0, "1"], [73.0, "0"], [73.0, "2"]]}, "Program Information": "Project Name: ASPP+pelita", "idx": 433} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def initial_positions(walls):\n \"\"\"Calculate initial positions.\n\n Given the list of walls, returns the free positions that are closest to the\n bottom left and top right corner. The algorithm starts searching from\n (1, height-2) and (width-2, 1) respectively and uses the Manhattan distance\n for judging what is closest. On equal distances, a smaller distance in the\n x value is preferred.\n \"\"\"\n width = max(walls)[0] + 1\n height = max(walls)[1] + 1\n\n left_start = (1, height - 2)\n left = []\n right_start = (width - 2, 1)\n right = []\n\n dist = 0\n while len(left) < 2:\n # iterate through all possible x distances (inclusive)\n for x_dist in range(dist + 1):\n y_dist = dist - x_dist\n pos = (left_start[0] + x_dist, left_start[1] - y_dist)\n # if both coordinates are out of bounds, we stop\n if not (0 <= pos[0] < width) and not (0 <= pos[1] < height):\n raise ValueError(\"Not enough free initial positions.\")\n # if one coordinate is out of bounds, we just continue\n if not (0 <= pos[0] < width) or not (0 <= pos[1] < height):\n continue\n # check if the new value is free\n if pos not in walls:\n left.append(pos)\n\n if len(left) == 2:\n break\n\n dist += 1\n\n dist = 0\n while len(right) < 2:\n # iterate through all possible x distances (inclusive)\n for x_dist in range(dist + 1):\n y_dist = dist - x_dist\n pos = (right_start[0] - x_dist, right_start[1] + y_dist)\n # if both coordinates are out of bounds, we stop\n if not (0 <= pos[0] < width) and not (0 <= pos[1] < height):\n raise ValueError(\"Not enough free initial positions.\")\n # if one coordinate is out of bounds, we just continue\n if not (0 <= pos[0] < width) or not (0 <= pos[1] < height):\n continue\n # check if the new value is free\n if pos not in walls:\n right.append(pos)\n\n if len(right) == 2:\n break\n\n dist += 1\n\n # lower indices start further away\n left.reverse()\n right.reverse()\n return [left[0], right[0], left[1], right[1]]\n\ninitial_positions(walls=[(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 3), (2, 0), (2, 1), (2, 3), (3, 0), (3, 1), (3, 3), (4, 0), (4, 1), (4, 3), (5, 0), (5, 3), (6, 0), (6, 3), (7, 0), (7, 1), (7, 2), (7, 3)])", "Selected Statement": "width = max(walls)[0] + 1", "Function Input": {"walls": "[(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 3), (2, 0), (2, 1), (2, 3), (3, 0), (3, 1), (3, 3), (4, 0), (4, 1), (4, 3), (5, 0), (5, 3), (6, 0), (6, 3), (7, 0), (7, 1), (7, 2), (7, 3)]"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "8", "Variable States During Runtime": {"walls": [[1, "[(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 3), (2, 0), (2, 1), (2, 3), (3, 0), (3, 1), (3, 3), (4, 0), (4, 1), (4, 3), (5, 0), (5, 3), (6, 0), (6, 3), (7, 0), (7, 1), (7, 2), (7, 3)]"]], "width": [[10.0, "8"]], "height": [[11.0, "4"]], "left_start": [[13.0, "(1, 2)"]], "left": [[14.0, "[]"], [32.0, "[(1, 2)]"], [32.0, "[(1, 2), (1, 1)]"], [61.0, "[(1, 1), (1, 2)]"]], "right_start": [[15.0, "(6, 1)"]], "right": [[16.0, "[]"], [53.0, "[(6, 1)]"], [53.0, "[(6, 1), (6, 2)]"], [62.0, "[(6, 2), (6, 1)]"]], "dist": [[18.0, "0"], [37.0, "1"], [37.0, "2"], [39.0, "0"], [58.0, "1"], [58.0, "2"]], "x_dist": [[21.0, "0"]], "y_dist": [[22.0, "0"], [22.0, "1"], [43.0, "0"], [43.0, "1"]], "pos": [[23.0, "(1, 2)"], [23.0, "(1, 1)"], [44.0, "(6, 1)"], [44.0, "(6, 2)"]]}, "Program Information": "Project Name: ASPP+pelita", "idx": 434} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def digit_version(version_str: str, length: int = 4):\n \"\"\"Convert a version string into a tuple of integers.\n\n This method is usually used for comparing two versions. For pre-release\n versions: alpha < beta < rc.\n\n Args:\n version_str (str): The version string.\n length (int): The maximum number of version levels. Default: 4.\n\n Returns:\n tuple[int]: The version info in digits (integers).\n \"\"\"\n assert 'parrots' not in version_str\n version = parse(version_str)\n assert version.release, f'failed to parse version {version_str}'\n release = list(version.release)\n release = release[:length]\n if len(release) < length:\n release = release + [0] * (length - len(release))\n if version.is_prerelease:\n mapping = {'a': -3, 'b': -2, 'rc': -1}\n val = -4\n # version.pre can be None\n if version.pre:\n if version.pre[0] not in mapping:\n warnings.warn(f'unknown prerelease version {version.pre[0]}, '\n 'version checking may go wrong')\n else:\n val = mapping[version.pre[0]]\n release.extend([val, version.pre[-1]])\n else:\n release.extend([val, 0])\n\n elif version.is_postrelease:\n release.extend([1, version.post])\n else:\n release.extend([0, 0])\n return tuple(release)\n\ndigit_version(version_str='2.2.2+cu121', length=4)", "Selected Statement": "release = release + [0] * (length - len(release))", "Function Input": {"version_str": "'2.2.2+cu121'", "length": "4"}, "Variable Values Before Statement": {"release": "[2, 2, 2]"}, "Value After Statement Execution": "[2, 2, 2, 0]", "Variable States During Runtime": {"version_str": [[1, "'2.2.2+cu121'"]], "length": [[1, "4"]], "version": [[15.0, ""]], "release": [[17.0, "[2, 2, 2]"], [20.0, "[2, 2, 2, 0]"], [38.0, "[2, 2, 2, 0, 0, 0]"]]}, "Program Information": "Project Name: Mikubill+sd-webui-controlnet", "idx": 435} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def SeparateFlagArgs(args: list):\n \"\"\"Splits a list of args into those for Flags and those for Fire.\n\n If an isolated '--' arg is not present in the arg list, then all of the args\n are for Fire. If there is an isolated '--', then the args after the final '--'\n are flag args, and the rest of the args are fire args.\n\n Args:\n args: The list of arguments received by the Fire command.\n Returns:\n A tuple with the Fire args (a list), followed by the Flag args (a list).\n \"\"\"\n if len(args) > 0 and (args[-1] == '-h' or args[-1] == '--help') and '--' not in args:\n args.pop()\n args.append('--')\n args.append('-h')\n\n if '--' in args:\n separator_index = len(args) - 1 - args[::-1].index('--') # index of last --\n flag_args = args[separator_index + 1:]\n args = args[:separator_index]\n return args, flag_args\n\n return args, []\n\nSeparateFlagArgs(args=['a', 'b', '--'])", "Selected Statement": "separator_index = len(args) - 1 - args[::-1].index('--') # index of last --", "Function Input": {"args": "['a', 'b', '--']"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "2", "Variable States During Runtime": {"args": [[1, "['a', 'b', '--']"], [21.0, "['a', 'b']"]], "separator_index": [[19.0, "2"]], "flag_args": [[20.0, "[]"]]}, "Program Information": "Project Name: d3rp+clima", "idx": 436} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _ParseFn(args):\n \"\"\"Parses the list of `args` into (varargs, kwargs), remaining_args.\"\"\"\n kwargs, remaining_kwargs, remaining_args = _ParseKeywordArgs(\n args, all_args, fn_spec.varkw)\n\n # Note: _ParseArgs modifies kwargs.\n parsed_args, kwargs, remaining_args, capacity = _ParseArgs(\n fn_spec.args, fn_spec.defaults, num_required_args, kwargs,\n remaining_args, metadata)\n\n if fn_spec.varargs or fn_spec.varkw:\n # If we're allowed *varargs or **kwargs, there's always capacity.\n capacity = True\n\n extra_kw = set(kwargs) - set(fn_spec.kwonlyargs)\n if fn_spec.varkw is None and extra_kw:\n raise FireError('Unexpected kwargs present:', extra_kw)\n\n missing_kwonly = set(required_kwonly) - set(kwargs)\n if missing_kwonly:\n raise FireError('Missing required flags:', missing_kwonly)\n\n # If we accept *varargs, then use all remaining arguments for *varargs.\n if fn_spec.varargs is not None:\n varargs, remaining_args = remaining_args, []\n else:\n varargs = []\n\n for index, value in enumerate(varargs):\n varargs[index] = _ParseValue(value, None, None, metadata)\n\n varargs = parsed_args + varargs\n remaining_args += remaining_kwargs\n\n consumed_args = args[:len(args) - len(remaining_args)]\n return (varargs, kwargs), consumed_args, remaining_args, capacity\n\n_ParseFn(args=['x'], all_args=[], fn_spec={args=[], varargs=None, varkw='cli_args', defaults=(), kwonlyargs=[], kwonlydefaults={}, annotations={}}, metadata={'ACCEPTS_POSITIONAL_ARGS': False}, num_required_args=0, required_kwonly=set())", "Selected Statement": "extra_kw = set(kwargs) - set(fn_spec.kwonlyargs)", "Function Input": {"args": "['x']", "all_args": "[]", "fn_spec": "{args=[], varargs=None, varkw='cli_args', defaults=(), kwonlyargs=[], kwonlydefaults={}, annotations={}}", "metadata": "{'ACCEPTS_POSITIONAL_ARGS': False}", "num_required_args": "0", "required_kwonly": "set()"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "set()", "Variable States During Runtime": {"args": [[1, "['x']"]], "all_args": [[1, "[]"]], "fn_spec": [[1, "{args=[], varargs=None, varkw='cli_args', defaults=(), kwonlyargs=[], kwonlydefaults={}, annotations={}}"]], "metadata": [[1, "{'ACCEPTS_POSITIONAL_ARGS': False}"]], "num_required_args": [[1, "0"]], "required_kwonly": [[1, "set()"]], "kwargs": [[3.0, "{}"]], "remaining_kwargs": [[3.0, "[]"]], "remaining_args": [[3.0, "['x']"]], "parsed_args": [[7.0, "[]"]], "capacity": [[7.0, "False"], [13.0, "True"]], "extra_kw": [[15.0, "set()"]], "missing_kwonly": [[19.0, "set()"]], "varargs": [[27.0, "[]"]], "consumed_args": [[35.0, "[]"]]}, "Program Information": "Project Name: d3rp+clima", "idx": 437} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def find_original_update_blocks(content, fence=DEFAULT_FENCE):\n # make sure we end with a newline, otherwise the regex will miss <', ''))", "Selected Statement": "content = content + \"\\n\"", "Function Input": {"content": "'ok'", "fence": "('', '')"}, "Variable Values Before Statement": {"content": "'ok'"}, "Value After Statement Execution": "'ok\\n'", "Variable States During Runtime": {"content": [[1, "'ok'"], [4.0, "'ok\\n'"]], "fence": [[1, "('', '')"]], "pieces": [[6.0, "['ok\\n']"], [16.0, "[]"]], "processed": [[9.0, "[]"], [23.0, "['ok\\n']"]], "current_filename": [[13.0, "None"]], "cur": [[16.0, "'ok\\n'"]]}, "Program Information": "Project Name: paul-gauthier+aider", "idx": 438} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def perfect_replace(whole_lines, part_lines, replace_lines):\n part_tup = tuple(part_lines)\n part_len = len(part_lines)\n\n for i in range(len(whole_lines) - part_len + 1):\n whole_tup = tuple(whole_lines[i : i + part_len])\n if part_tup == whole_tup:\n res = whole_lines[:i] + replace_lines + whole_lines[i + part_len :]\n return \"\".join(res)\n\nperfect_replace(whole_lines=['two\\n'], part_lines=['two\\n'], replace_lines=['three\\n'])", "Selected Statement": "res = whole_lines[:i] + replace_lines + whole_lines[i + part_len :]", "Function Input": {"whole_lines": "['two\\n']", "part_lines": "['two\\n']", "replace_lines": "['three\\n']"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "['three\\n']", "Variable States During Runtime": {"whole_lines": [[1, "['two\\n']"]], "part_lines": [[1, "['two\\n']"]], "replace_lines": [[1, "['three\\n']"]], "part_tup": [[2.0, "('two\\n',)"]], "part_len": [[3.0, "1"]], "i": [[5.0, "0"]], "whole_tup": [[6.0, "('two\\n',)"]], "res": [[8.0, "['three\\n']"]]}, "Program Information": "Project Name: paul-gauthier+aider", "idx": 439} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def replace_part_with_missing_leading_whitespace(whole_lines, part_lines, replace_lines):\n # GPT often messes up leading whitespace.\n # It usually does it uniformly across the ORIG and UPD blocks.\n # Either omitting all leading whitespace, or including only some of it.\n\n # Outdent everything in part_lines and replace_lines by the max fixed amount possible\n leading = [len(p) - len(p.lstrip()) for p in part_lines if p.strip()] + [\n len(p) - len(p.lstrip()) for p in replace_lines if p.strip()\n ]\n\n if leading and min(leading):\n num_leading = min(leading)\n part_lines = [p[num_leading:] if p.strip() else p for p in part_lines]\n replace_lines = [p[num_leading:] if p.strip() else p for p in replace_lines]\n\n # can we find an exact match not including the leading whitespace\n num_part_lines = len(part_lines)\n\n for i in range(len(whole_lines) - num_part_lines + 1):\n add_leading = match_but_for_leading_whitespace(\n whole_lines[i : i + num_part_lines], part_lines\n )\n\n if add_leading is None:\n continue\n\n replace_lines = [add_leading + rline if rline.strip() else rline for rline in replace_lines]\n whole_lines = whole_lines[:i] + replace_lines + whole_lines[i + num_part_lines :]\n return \"\".join(whole_lines)\n\n return None\n\nreplace_part_with_missing_leading_whitespace(whole_lines=[' line1\\n', ' line2\\n', ' line3\\n'], part_lines=[' line1\\n', ' line2\\n'], replace_lines=[' new_line1\\n', ' new_line2\\n'])", "Selected Statement": "leading = [len(p) - len(p.lstrip()) for p in part_lines if p.strip()] + [", "Function Input": {"whole_lines": "[' line1\\n', ' line2\\n', ' line3\\n']", "part_lines": "[' line1\\n', ' line2\\n']", "replace_lines": "[' new_line1\\n', ' new_line2\\n']"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "[1, 1, 1, 5]", "Variable States During Runtime": {"whole_lines": [[1, "[' line1\\n', ' line2\\n', ' line3\\n']"], [28.0, "[' new_line1\\n', ' new_line2\\n', ' line3\\n']"]], "part_lines": [[1, "[' line1\\n', ' line2\\n']"], [13.0, "['line1\\n', 'line2\\n']"]], "replace_lines": [[1, "[' new_line1\\n', ' new_line2\\n']"], [14.0, "['new_line1\\n', ' new_line2\\n']"], [27.0, "[' new_line1\\n', ' new_line2\\n']"]], "leading": [[7.0, "[1, 1, 1, 5]"]], "num_leading": [[12.0, "1"]], "num_part_lines": [[17.0, "2"]], "i": [[19.0, "0"]], "add_leading": [[20.0, "' '"]]}, "Program Information": "Project Name: paul-gauthier+aider", "idx": 440} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def check_gitignore(git_root, io, ask=True):\n if not git_root:\n return\n\n try:\n repo = git.Repo(git_root)\n if repo.ignored(\".aider\"):\n return\n except git.exc.InvalidGitRepositoryError:\n pass\n\n pat = \".aider*\"\n\n gitignore_file = Path(git_root) / \".gitignore\"\n if gitignore_file.exists():\n content = io.read_text(gitignore_file)\n if content is None:\n return\n if pat in content.splitlines():\n return\n else:\n content = \"\"\n\n if ask and not io.confirm_ask(f\"Add {pat} to .gitignore (recommended)?\"):\n return\n\n if content and not content.endswith(\"\\n\"):\n content += \"\\n\"\n content += pat + \"\\n\"\n io.write_text(gitignore_file, content)\n\n io.tool_output(f\"Added {pat} to .gitignore\")\n\ncheck_gitignore(git_root=PosixPath('/tmp/tmpcr1f5en7'), io={user_input_color=None, tool_output_color=None, tool_error_color=None, input=None, output=None, pretty=False, yes=True, input_history_file=None, chat_history_file=None, encoding='utf-8', dry_run=False, console=}, ask=True)", "Selected Statement": "gitignore_file = Path(git_root) / \".gitignore\"", "Function Input": {"git_root": "PosixPath('/tmp/tmpcr1f5en7')", "io": "{user_input_color=None, tool_output_color=None, tool_error_color=None, input=None, output=None, pretty=False, yes=True, input_history_file=None, chat_history_file=None, encoding='utf-8', dry_run=False, console=}", "ask": "True"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "PosixPath('/tmp/tmpcr1f5en7/.gitignore')", "Variable States During Runtime": {"git_root": [[1, "PosixPath('/tmp/tmpcr1f5en7')"]], "io": [[1, "{user_input_color=None, tool_output_color=None, tool_error_color=None, input=None, output=None, pretty=False, yes=True, input_history_file=None, chat_history_file=None, encoding='utf-8', dry_run=False, console=}"], [24.0, "{user_input_color=None, tool_output_color=None, tool_error_color=None, input=None, output=None, pretty=False, yes=True, input_history_file=None, chat_history_file=None, encoding='utf-8', dry_run=False, console=, num_user_asks=1}"]], "ask": [[1, "True"]], "repo": [[6.0, ""]], "pat": [[12.0, "'.aider*'"]], "gitignore_file": [[14.0, "PosixPath('/tmp/tmpcr1f5en7/.gitignore')"]], "content": [[22.0, "''"], [29.0, "'.aider*\\n'"]]}, "Program Information": "Project Name: paul-gauthier+aider", "idx": 441} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _tranmat(a, b):\n \"\"\"\n Get the coefficents for the affine-linear function f(x)=Ax+s.\n\n Which fullfills that A is a rotation-matrix,\n f(a) = [0,0] and f(b) = [|b-a|,0].\n \"\"\"\n A = np.zeros((2, 2))\n A[0, 0] = b[0] - a[0]\n A[1, 1] = b[0] - a[0]\n A[1, 0] = -(b[1] - a[1])\n A[0, 1] = +(b[1] - a[1])\n A /= _dist(a, b)\n s = -np.dot(A, a)\n return A, s\n\n_tranmat(a=array([0., 0.]), b=array([3., 0.]))", "Selected Statement": "A[0, 0] = b[0] - a[0]", "Function Input": {"a": "array([0., 0.])", "b": "array([3., 0.])"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "array([[3., 0.], [0., 0.]])", "Variable States During Runtime": {"a": [[1, "array([0., 0.])"]], "b": [[1, "array([3., 0.])"]], "A": [[8.0, "array([[0., 0.], [0., 0.]])"], [9.0, "array([[3., 0.], [0., 0.]])"], [10.0, "array([[3., 0.], [0., 3.]])"], [11.0, "array([[ 3., 0.], [-0., 3.]])"], [13.0, "array([[ 1., 0.], [-0., 1.]])"]], "s": [[14.0, "array([-0., -0.])"]]}, "Program Information": "Project Name: GeoStat-Framework+welltestpy", "idx": 442} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _yvalue(b, a, c):\n \"\"\"\n Get the two possible y-values for the upper point of a triangle.\n\n where c is the length of the down side starting in the origin and\n lying on the x-axes, a is the distance of the unknown point to the origen\n and b is the distance of the unknown point to the righter given point\n \"\"\"\n # ckeck flatness to eliminate numerical errors when the triangle is flat\n if a + b <= c or a + c <= b or b + c <= a:\n return 0.0, -0.0\n\n res = 2 * ((a * b) ** 2 + (a * c) ** 2 + (b * c) ** 2)\n res -= a ** 4 + b ** 4 + c ** 4\n # in case of numerical errors set res to 0 (hope you check validty before)\n res = max(res, 0.0)\n res = np.sqrt(res)\n res /= 2 * c\n return res, -res\n\n_yvalue(b=4.0, a=2.0, c=3.0)", "Selected Statement": "res = 2 * ((a * b) ** 2 + (a * c) ** 2 + (b * c) ** 2)", "Function Input": {"b": "4.0", "a": "2.0", "c": "3.0"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "488.0", "Variable States During Runtime": {"b": [[1, "4.0"]], "a": [[1, "2.0"]], "c": [[1, "3.0"]], "res": [[13.0, "488.0"], [14.0, "135.0"], [17.0, "11.61895003862225"], [18.0, "1.9364916731037083"]]}, "Program Information": "Project Name: GeoStat-Framework+welltestpy", "idx": 443} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _test_grad_nd(n, ndim):\n coords = [np.arange(n)] * ndim\n xc = np.meshgrid(*coords, indexing=\"ij\")\n\n # u = sum_i(xc[i]**2)\n u = reduce(lambda x,y: x+y**2, xc, 0.0)\n ucopy = np.copy(u)\n\n # check the gradient values\n slices = tuple([slice(1,-1,None)] * ndim)\n for i in range(ndim):\n assert grad(u, axis=i) == pytest.approx(2*xc[i][slices])\n\n # check if u is unchanged\n assert np.all(u == ucopy)\n\n_test_grad_nd(n=92, ndim=1)", "Selected Statement": "coords = [np.arange(n)] * ndim", "Function Input": {"n": "92", "ndim": "1"}, "Variable Values Before Statement": {"ndim": "1"}, "Value After Statement Execution": "[array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91])]", "Variable States During Runtime": {"n": [[1, "92"]], "ndim": [[1, "1"]], "coords": [[2.0, "[array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91])]"]], "xc": [[3.0, "[array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91])]"]], "u": [[6.0, "array([0.000e+00, 1.000e+00, 4.000e+00, 9.000e+00, 1.600e+01, 2.500e+01, 3.600e+01, 4.900e+01, 6.400e+01, 8.100e+01, 1.000e+02, 1.210e+02, 1.440e+02, 1.690e+02, 1.960e+02, 2.250e+02, 2.560e+02, 2.890e+02, 3.240e+02, 3.610e+02, 4.000e+02, 4.410e+02, 4.840e+02, 5.290e+02, 5.760e+02, 6.250e+02, 6.760e+02, 7.290e+02, 7.840e+02, 8.410e+02, 9.000e+02, 9.610e+02, 1.024e+03, 1.089e+03, 1.156e+03, 1.225e+03, 1.296e+03, 1.369e+03, 1.444e+03, 1.521e+03, 1.600e+03, 1.681e+03, 1.764e+03, 1.849e+03, 1.936e+03, 2.025e+03, 2.116e+03, 2.209e+03, 2.304e+03, 2.401e+03, 2.500e+03, 2.601e+03, 2.704e+03, 2.809e+03, 2.916e+03, 3.025e+03, 3.136e+03, 3.249e+03, 3.364e+03, 3.481e+03, 3.600e+03, 3.721e+03, 3.844e+03, 3.969e+03, 4.096e+03, 4.225e+03, 4.356e+03, 4.489e+03, 4.624e+03, 4.761e+03, 4.900e+03, 5.041e+03, 5.184e+03, 5.329e+03, 5.476e+03, 5.625e+03, 5.776e+03, 5.929e+03, 6.084e+03, 6.241e+03, 6.400e+03, 6.561e+03, 6.724e+03, 6.889e+03, 7.056e+03, 7.225e+03, 7.396e+03, 7.569e+03, 7.744e+03, 7.921e+03, 8.100e+03, 8.281e+03])"]], "ucopy": [[7.0, "array([0.000e+00, 1.000e+00, 4.000e+00, 9.000e+00, 1.600e+01, 2.500e+01, 3.600e+01, 4.900e+01, 6.400e+01, 8.100e+01, 1.000e+02, 1.210e+02, 1.440e+02, 1.690e+02, 1.960e+02, 2.250e+02, 2.560e+02, 2.890e+02, 3.240e+02, 3.610e+02, 4.000e+02, 4.410e+02, 4.840e+02, 5.290e+02, 5.760e+02, 6.250e+02, 6.760e+02, 7.290e+02, 7.840e+02, 8.410e+02, 9.000e+02, 9.610e+02, 1.024e+03, 1.089e+03, 1.156e+03, 1.225e+03, 1.296e+03, 1.369e+03, 1.444e+03, 1.521e+03, 1.600e+03, 1.681e+03, 1.764e+03, 1.849e+03, 1.936e+03, 2.025e+03, 2.116e+03, 2.209e+03, 2.304e+03, 2.401e+03, 2.500e+03, 2.601e+03, 2.704e+03, 2.809e+03, 2.916e+03, 3.025e+03, 3.136e+03, 3.249e+03, 3.364e+03, 3.481e+03, 3.600e+03, 3.721e+03, 3.844e+03, 3.969e+03, 4.096e+03, 4.225e+03, 4.356e+03, 4.489e+03, 4.624e+03, 4.761e+03, 4.900e+03, 5.041e+03, 5.184e+03, 5.329e+03, 5.476e+03, 5.625e+03, 5.776e+03, 5.929e+03, 6.084e+03, 6.241e+03, 6.400e+03, 6.561e+03, 6.724e+03, 6.889e+03, 7.056e+03, 7.225e+03, 7.396e+03, 7.569e+03, 7.744e+03, 7.921e+03, 8.100e+03, 8.281e+03])"]], "slices": [[10.0, "(slice(1, -1, None),)"]], "i": [[11.0, "0"]], "@py_assert3": [[12.0, "None"]], "@py_assert7": [[12.0, "None"]], "@py_assert9": [[12.0, "None"]], "@py_assert11": [[12.0, "None"]], "@py_assert13": [[12.0, "None"]], "@py_assert14": [[12.0, "None"]], "@py_assert5": [[12.0, "None"]], "@py_assert1": [[15.0, "None"]], "@py_assert4": [[15.0, "None"]], "@py_assert8": [[15.0, "None"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 444} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def get_idx(ndim, axis=None, axis_idx=None):\n s = [midx] * ndim\n if axis is not None:\n if hasattr(axis, \"__iter__\"):\n for ax, axidx in zip(axis, axis_idx):\n s[ax] = axidx\n else:\n s[axis] = axis_idx\n return tuple(s)\n\nget_idx(ndim=1, axis=0, axis_idx=slice(None, -2, None))", "Selected Statement": "s = [midx] * ndim", "Function Input": {"ndim": "1", "axis": "0", "axis_idx": "slice(None, -2, None)"}, "Variable Values Before Statement": {"ndim": "1"}, "Value After Statement Execution": "[slice(1, -1, None)]", "Variable States During Runtime": {"ndim": [[1, "1"]], "axis": [[1, "0"]], "axis_idx": [[1, "slice(None, -2, None)"]], "s": [[2.0, "[slice(1, -1, None)]"], [8.0, "[slice(None, -2, None)]"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 445} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _test_grad2_nd(n, ndim):\n coords = [np.arange(n)] * ndim\n xc = np.meshgrid(*coords, indexing=\"ij\")\n\n # u = sum_i(xc[i]**2)\n u = reduce(lambda x,y: x+y**2, xc, 0.0)\n ucopy = np.copy(u)\n\n # check the gradient values\n gu = np.zeros(tuple([n-2]*ndim))\n gu2 = gu + 2.0\n for i in range(ndim):\n for j in range(ndim):\n if i == j:\n assert grad2(u, axes=(i,j)) == pytest.approx(gu2)\n else:\n assert grad2(u, axes=(i,j)) == pytest.approx(gu)\n\n # check if u is unchanged\n assert np.all(u == ucopy)\n\n_test_grad2_nd(n=32, ndim=1)", "Selected Statement": "coords = [np.arange(n)] * ndim", "Function Input": {"n": "32", "ndim": "1"}, "Variable Values Before Statement": {"ndim": "1"}, "Value After Statement Execution": "[array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])]", "Variable States During Runtime": {"n": [[1, "32"]], "ndim": [[1, "1"]], "coords": [[2.0, "[array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])]"]], "xc": [[3.0, "[array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])]"]], "u": [[6.0, "array([ 0., 1., 4., 9., 16., 25., 36., 49., 64., 81., 100., 121., 144., 169., 196., 225., 256., 289., 324., 361., 400., 441., 484., 529., 576., 625., 676., 729., 784., 841., 900., 961.])"]], "ucopy": [[7.0, "array([ 0., 1., 4., 9., 16., 25., 36., 49., 64., 81., 100., 121., 144., 169., 196., 225., 256., 289., 324., 361., 400., 441., 484., 529., 576., 625., 676., 729., 784., 841., 900., 961.])"]], "gu": [[10.0, "array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])"]], "gu2": [[11.0, "array([2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.])"]], "i": [[12.0, "0"]], "j": [[13.0, "0"]], "@py_assert2": [[15.0, "None"]], "@py_assert4": [[15.0, "None"]], "@py_assert8": [[15.0, "None"]], "@py_assert11": [[15.0, "None"]], "@py_assert6": [[15.0, "None"]], "@py_assert1": [[20.0, "None"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 446} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def det_hess(u):\n \"\"\"\n Get the determinant of the Hessian matrix of `u`.\n\n Parameters\n ----------\n * `u` : numpy.ndarray\n The ndarray input with shape (n0+2, n1+2, ..., nd1+2).\n\n Returns\n -------\n * numpy.ndarray\n The ndarray of the second grad of `u` with shape (n0, n1, ..., nd1).\n \"\"\"\n ndim = np.ndim(u)\n inshape = np.asarray(u.shape)\n outshape = list(inshape - 2)\n\n # obtain the second gradient per each pairs of axes\n hess_unarranged = np.zeros([ndim, ndim] + outshape)\n for i in range(ndim):\n for j in range(i,ndim):\n grad2_val = grad2(u, (i,j))\n hess_unarranged[i,j] = grad2_val\n hess_unarranged[j,i] = grad2_val\n\n # rearrange hessian to have shape: outshape + [ndim, ndim]\n perm_idx = list(range(2,ndim+2)) + list(range(2))\n hess = np.transpose(hess_unarranged, perm_idx)\n\n # calculate and return the determinant\n return np.linalg.det(hess)\n\ndet_hess(u=array([ 0., 1., 4., 9., 16., 25., 36., 49., 64., 81., 100., 121., 144., 169., 196., 225., 256., 289., 324., 361., 400., 441., 484., 529., 576., 625., 676., 729., 784., 841., 900., 961.]))", "Selected Statement": "perm_idx = list(range(2,ndim+2)) + list(range(2))", "Function Input": {"u": "array([ 0., 1., 4., 9., 16., 25., 36., 49., 64., 81., 100., 121., 144., 169., 196., 225., 256., 289., 324., 361., 400., 441., 484., 529., 576., 625., 676., 729., 784., 841., 900., 961.])"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "[2, 0, 1]", "Variable States During Runtime": {"u": [[1, "array([ 0., 1., 4., 9., 16., 25., 36., 49., 64., 81., 100., 121., 144., 169., 196., 225., 256., 289., 324., 361., 400., 441., 484., 529., 576., 625., 676., 729., 784., 841., 900., 961.])"]], "ndim": [[15.0, "1"]], "inshape": [[16.0, "array([32])"]], "outshape": [[17.0, "[30]"]], "hess_unarranged": [[20.0, "array([[[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]])"], [24.0, "array([[[2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.]]])"]], "i": [[21.0, "0"]], "j": [[22.0, "0"]], "grad2_val": [[23.0, "array([2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.])"]], "perm_idx": [[28.0, "[2, 0, 1]"]], "hess": [[29.0, "array([[[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]], [[2.]]])"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 447} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def forward(source, phi):\n \"\"\"\n Obtain the target density distribution given the source distribution and\n the mapping potential, phi.\n The mapping from source coordinate, $x$, to the target coordinate, $y$, is\n given by:\n\n $$\n y = x + \\nabla phi(x).\n $$\n\n The coordinate in i-th dimension is given by `np.arange(source.shape[i])`.\n\n Parameters\n ----------\n * `source` : numpy.ndarray\n The source density distribution in n-dimensional array.\n * `phi` : numpy.ndarray\n The mapping potential given above. It must have the same shape as\n `source`.\n\n Returns\n -------\n * numpy.ndarray\n The target density distribution in n-dimensional array.\n \"\"\"\n # convert to np.ndarray\n source = np.asarray(source)\n phi = np.asarray(phi)\n # check the shapes of inputs\n if source.shape != phi.shape:\n raise ValueError(\"The source and phi must have the same shape.\")\n\n # calculate the total potential so that $y = \\nabla u(x)$\n u0, u, phi_pad = _get_full_potential(phi)\n ndim = np.ndim(phi)\n\n # calculate the determinant of the hessian\n det_hess_s = det_hess(u)\n\n # get the displacement in (n x D) format\n x = np.array([grad(u0, axis=i) for i in range(ndim)]).reshape((ndim,-1)).T\n y = np.array([grad(u , axis=i) for i in range(ndim)]).reshape((ndim,-1)).T\n\n # interpolate the values\n interp = lambda s: griddata(y, s.flatten(), x, \"linear\").reshape(s.shape)\n target_s = source / det_hess_s\n target = interp(target_s)\n\n # fill nan values with zeros\n target[np.isnan(target)] = 0.0\n return target\n\nforward(source=array([3.72665317e-06, 6.14389891e-06, 1.00262383e-05, 1.61957424e-05, 2.58959932e-05, 4.09857759e-05, 6.42099934e-05, 9.95728564e-05, 1.52843925e-04, 2.32233182e-04, 3.49276399e-04, 5.19975743e-04, 7.66241736e-04, 1.11767979e-03, 1.61375600e-03, 2.30636063e-03, 3.26276232e-03, 4.56890930e-03, 6.33298575e-03, 8.68907130e-03, 1.18006814e-02, 1.58638899e-02, 2.11096565e-02, 2.78049116e-02, 3.62518979e-02, 4.67852390e-02, 5.97662260e-02, 7.55738747e-02, 9.45924385e-02, 1.17195255e-01, 1.43725065e-01, 1.74471250e-01, 2.09644807e-01, 2.49352209e-01, 2.93569685e-01, 3.42119690e-01, 3.94651546e-01, 4.50628259e-01, 5.09321387e-01, 5.69815527e-01, 6.31023482e-01, 6.91712523e-01, 7.50541364e-01, 8.06106646e-01, 8.56996891e-01, 9.01851159e-01, 9.39419053e-01, 9.68618450e-01, 9.88587205e-01, 9.98725433e-01, 9.98725433e-01, 9.88587205e-01, 9.68618450e-01, 9.39419053e-01, 9.01851159e-01, 8.56996891e-01, 8.06106646e-01, 7.50541364e-01, 6.91712523e-01, 6.31023482e-01, 5.69815527e-01, 5.09321387e-01, 4.50628259e-01, 3.94651546e-01, 3.42119690e-01, 2.93569685e-01, 2.49352209e-01, 2.09644807e-01, 1.74471250e-01, 1.43725065e-01, 1.17195255e-01, 9.45924385e-02, 7.55738747e-02, 5.97662260e-02, 4.67852390e-02, 3.62518979e-02, 2.78049116e-02, 2.11096565e-02, 1.58638899e-02, 1.18006814e-02, 8.68907130e-03, 6.33298575e-03, 4.56890930e-03, 3.26276232e-03, 2.30636063e-03, 1.61375600e-03, 1.11767979e-03, 7.66241736e-04, 5.19975743e-04, 3.49276399e-04, 2.32233182e-04, 1.52843925e-04, 9.95728564e-05, 6.42099934e-05, 4.09857759e-05, 2.58959932e-05, 1.61957424e-05, 1.00262383e-05, 6.14389891e-06, 3.72665317e-06]), phi=array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]))", "Selected Statement": "target_s = source / det_hess_s", "Function Input": {"source": "array([3.72665317e-06, 6.14389891e-06, 1.00262383e-05, 1.61957424e-05, 2.58959932e-05, 4.09857759e-05, 6.42099934e-05, 9.95728564e-05, 1.52843925e-04, 2.32233182e-04, 3.49276399e-04, 5.19975743e-04, 7.66241736e-04, 1.11767979e-03, 1.61375600e-03, 2.30636063e-03, 3.26276232e-03, 4.56890930e-03, 6.33298575e-03, 8.68907130e-03, 1.18006814e-02, 1.58638899e-02, 2.11096565e-02, 2.78049116e-02, 3.62518979e-02, 4.67852390e-02, 5.97662260e-02, 7.55738747e-02, 9.45924385e-02, 1.17195255e-01, 1.43725065e-01, 1.74471250e-01, 2.09644807e-01, 2.49352209e-01, 2.93569685e-01, 3.42119690e-01, 3.94651546e-01, 4.50628259e-01, 5.09321387e-01, 5.69815527e-01, 6.31023482e-01, 6.91712523e-01, 7.50541364e-01, 8.06106646e-01, 8.56996891e-01, 9.01851159e-01, 9.39419053e-01, 9.68618450e-01, 9.88587205e-01, 9.98725433e-01, 9.98725433e-01, 9.88587205e-01, 9.68618450e-01, 9.39419053e-01, 9.01851159e-01, 8.56996891e-01, 8.06106646e-01, 7.50541364e-01, 6.91712523e-01, 6.31023482e-01, 5.69815527e-01, 5.09321387e-01, 4.50628259e-01, 3.94651546e-01, 3.42119690e-01, 2.93569685e-01, 2.49352209e-01, 2.09644807e-01, 1.74471250e-01, 1.43725065e-01, 1.17195255e-01, 9.45924385e-02, 7.55738747e-02, 5.97662260e-02, 4.67852390e-02, 3.62518979e-02, 2.78049116e-02, 2.11096565e-02, 1.58638899e-02, 1.18006814e-02, 8.68907130e-03, 6.33298575e-03, 4.56890930e-03, 3.26276232e-03, 2.30636063e-03, 1.61375600e-03, 1.11767979e-03, 7.66241736e-04, 5.19975743e-04, 3.49276399e-04, 2.32233182e-04, 1.52843925e-04, 9.95728564e-05, 6.42099934e-05, 4.09857759e-05, 2.58959932e-05, 1.61957424e-05, 1.00262383e-05, 6.14389891e-06, 3.72665317e-06])", "phi": "array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])"}, "Variable Values Before Statement": {"source": "array([3.72665317e-06, 6.14389891e-06, 1.00262383e-05, 1.61957424e-05, 2.58959932e-05, 4.09857759e-05, 6.42099934e-05, 9.95728564e-05, 1.52843925e-04, 2.32233182e-04, 3.49276399e-04, 5.19975743e-04, 7.66241736e-04, 1.11767979e-03, 1.61375600e-03, 2.30636063e-03, 3.26276232e-03, 4.56890930e-03, 6.33298575e-03, 8.68907130e-03, 1.18006814e-02, 1.58638899e-02, 2.11096565e-02, 2.78049116e-02, 3.62518979e-02, 4.67852390e-02, 5.97662260e-02, 7.55738747e-02, 9.45924385e-02, 1.17195255e-01, 1.43725065e-01, 1.74471250e-01, 2.09644807e-01, 2.49352209e-01, 2.93569685e-01, 3.42119690e-01, 3.94651546e-01, 4.50628259e-01, 5.09321387e-01, 5.69815527e-01, 6.31023482e-01, 6.91712523e-01, 7.50541364e-01, 8.06106646e-01, 8.56996891e-01, 9.01851159e-01, 9.39419053e-01, 9.68618450e-01, 9.88587205e-01, 9.98725433e-01, 9.98725433e-01, 9.88587205e-01, 9.68618450e-01, 9.39419053e-01, 9.01851159e-01, 8.56996891e-01, 8.06106646e-01, 7.50541364e-01, 6.91712523e-01, 6.31023482e-01, 5.69815527e-01, 5.09321387e-01, 4.50628259e-01, 3.94651546e-01, 3.42119690e-01, 2.93569685e-01, 2.49352209e-01, 2.09644807e-01, 1.74471250e-01, 1.43725065e-01, 1.17195255e-01, 9.45924385e-02, 7.55738747e-02, 5.97662260e-02, 4.67852390e-02, 3.62518979e-02, 2.78049116e-02, 2.11096565e-02, 1.58638899e-02, 1.18006814e-02, 8.68907130e-03, 6.33298575e-03, 4.56890930e-03, 3.26276232e-03, 2.30636063e-03, 1.61375600e-03, 1.11767979e-03, 7.66241736e-04, 5.19975743e-04, 3.49276399e-04, 2.32233182e-04, 1.52843925e-04, 9.95728564e-05, 6.42099934e-05, 4.09857759e-05, 2.58959932e-05, 1.61957424e-05, 1.00262383e-05, 6.14389891e-06, 3.72665317e-06])", "det_hess_s": "array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])"}, "Value After Statement Execution": "array([3.72665317e-06, 6.14389891e-06, 1.00262383e-05, 1.61957424e-05, 2.58959932e-05, 4.09857759e-05, 6.42099934e-05, 9.95728564e-05, 1.52843925e-04, 2.32233182e-04, 3.49276399e-04, 5.19975743e-04, 7.66241736e-04, 1.11767979e-03, 1.61375600e-03, 2.30636063e-03, 3.26276232e-03, 4.56890930e-03, 6.33298575e-03, 8.68907130e-03, 1.18006814e-02, 1.58638899e-02, 2.11096565e-02, 2.78049116e-02, 3.62518979e-02, 4.67852390e-02, 5.97662260e-02, 7.55738747e-02, 9.45924385e-02, 1.17195255e-01, 1.43725065e-01, 1.74471250e-01, 2.09644807e-01, 2.49352209e-01, 2.93569685e-01, 3.42119690e-01, 3.94651546e-01, 4.50628259e-01, 5.09321387e-01, 5.69815527e-01, 6.31023482e-01, 6.91712523e-01, 7.50541364e-01, 8.06106646e-01, 8.56996891e-01, 9.01851159e-01, 9.39419053e-01, 9.68618450e-01, 9.88587205e-01, 9.98725433e-01, 9.98725433e-01, 9.88587205e-01, 9.68618450e-01, 9.39419053e-01, 9.01851159e-01, 8.56996891e-01, 8.06106646e-01, 7.50541364e-01, 6.91712523e-01, 6.31023482e-01, 5.69815527e-01, 5.09321387e-01, 4.50628259e-01, 3.94651546e-01, 3.42119690e-01, 2.93569685e-01, 2.49352209e-01, 2.09644807e-01, 1.74471250e-01, 1.43725065e-01, 1.17195255e-01, 9.45924385e-02, 7.55738747e-02, 5.97662260e-02, 4.67852390e-02, 3.62518979e-02, 2.78049116e-02, 2.11096565e-02, 1.58638899e-02, 1.18006814e-02, 8.68907130e-03, 6.33298575e-03, 4.56890930e-03, 3.26276232e-03, 2.30636063e-03, 1.61375600e-03, 1.11767979e-03, 7.66241736e-04, 5.19975743e-04, 3.49276399e-04, 2.32233182e-04, 1.52843925e-04, 9.95728564e-05, 6.42099934e-05, 4.09857759e-05, 2.58959932e-05, 1.61957424e-05, 1.00262383e-05, 6.14389891e-06, 3.72665317e-06])", "Variable States During Runtime": {"source": [[1, "array([3.72665317e-06, 6.14389891e-06, 1.00262383e-05, 1.61957424e-05, 2.58959932e-05, 4.09857759e-05, 6.42099934e-05, 9.95728564e-05, 1.52843925e-04, 2.32233182e-04, 3.49276399e-04, 5.19975743e-04, 7.66241736e-04, 1.11767979e-03, 1.61375600e-03, 2.30636063e-03, 3.26276232e-03, 4.56890930e-03, 6.33298575e-03, 8.68907130e-03, 1.18006814e-02, 1.58638899e-02, 2.11096565e-02, 2.78049116e-02, 3.62518979e-02, 4.67852390e-02, 5.97662260e-02, 7.55738747e-02, 9.45924385e-02, 1.17195255e-01, 1.43725065e-01, 1.74471250e-01, 2.09644807e-01, 2.49352209e-01, 2.93569685e-01, 3.42119690e-01, 3.94651546e-01, 4.50628259e-01, 5.09321387e-01, 5.69815527e-01, 6.31023482e-01, 6.91712523e-01, 7.50541364e-01, 8.06106646e-01, 8.56996891e-01, 9.01851159e-01, 9.39419053e-01, 9.68618450e-01, 9.88587205e-01, 9.98725433e-01, 9.98725433e-01, 9.88587205e-01, 9.68618450e-01, 9.39419053e-01, 9.01851159e-01, 8.56996891e-01, 8.06106646e-01, 7.50541364e-01, 6.91712523e-01, 6.31023482e-01, 5.69815527e-01, 5.09321387e-01, 4.50628259e-01, 3.94651546e-01, 3.42119690e-01, 2.93569685e-01, 2.49352209e-01, 2.09644807e-01, 1.74471250e-01, 1.43725065e-01, 1.17195255e-01, 9.45924385e-02, 7.55738747e-02, 5.97662260e-02, 4.67852390e-02, 3.62518979e-02, 2.78049116e-02, 2.11096565e-02, 1.58638899e-02, 1.18006814e-02, 8.68907130e-03, 6.33298575e-03, 4.56890930e-03, 3.26276232e-03, 2.30636063e-03, 1.61375600e-03, 1.11767979e-03, 7.66241736e-04, 5.19975743e-04, 3.49276399e-04, 2.32233182e-04, 1.52843925e-04, 9.95728564e-05, 6.42099934e-05, 4.09857759e-05, 2.58959932e-05, 1.61957424e-05, 1.00262383e-05, 6.14389891e-06, 3.72665317e-06])"]], "phi": [[1, "array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])"]], "phi_pad": [[35.0, "array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])"]], "u": [[35.0, "array([0.0000e+00, 5.0000e-01, 2.0000e+00, 4.5000e+00, 8.0000e+00, 1.2500e+01, 1.8000e+01, 2.4500e+01, 3.2000e+01, 4.0500e+01, 5.0000e+01, 6.0500e+01, 7.2000e+01, 8.4500e+01, 9.8000e+01, 1.1250e+02, 1.2800e+02, 1.4450e+02, 1.6200e+02, 1.8050e+02, 2.0000e+02, 2.2050e+02, 2.4200e+02, 2.6450e+02, 2.8800e+02, 3.1250e+02, 3.3800e+02, 3.6450e+02, 3.9200e+02, 4.2050e+02, 4.5000e+02, 4.8050e+02, 5.1200e+02, 5.4450e+02, 5.7800e+02, 6.1250e+02, 6.4800e+02, 6.8450e+02, 7.2200e+02, 7.6050e+02, 8.0000e+02, 8.4050e+02, 8.8200e+02, 9.2450e+02, 9.6800e+02, 1.0125e+03, 1.0580e+03, 1.1045e+03, 1.1520e+03, 1.2005e+03, 1.2500e+03, 1.3005e+03, 1.3520e+03, 1.4045e+03, 1.4580e+03, 1.5125e+03, 1.5680e+03, 1.6245e+03, 1.6820e+03, 1.7405e+03, 1.8000e+03, 1.8605e+03, 1.9220e+03, 1.9845e+03, 2.0480e+03, 2.1125e+03, 2.1780e+03, 2.2445e+03, 2.3120e+03, 2.3805e+03, 2.4500e+03, 2.5205e+03, 2.5920e+03, 2.6645e+03, 2.7380e+03, 2.8125e+03, 2.8880e+03, 2.9645e+03, 3.0420e+03, 3.1205e+03, 3.2000e+03, 3.2805e+03, 3.3620e+03, 3.4445e+03, 3.5280e+03, 3.6125e+03, 3.6980e+03, 3.7845e+03, 3.8720e+03, 3.9605e+03, 4.0500e+03, 4.1405e+03, 4.2320e+03, 4.3245e+03, 4.4180e+03, 4.5125e+03, 4.6080e+03, 4.7045e+03, 4.8020e+03, 4.9005e+03, 5.0000e+03, 5.1005e+03])"]], "u0": [[35.0, "array([0.0000e+00, 5.0000e-01, 2.0000e+00, 4.5000e+00, 8.0000e+00, 1.2500e+01, 1.8000e+01, 2.4500e+01, 3.2000e+01, 4.0500e+01, 5.0000e+01, 6.0500e+01, 7.2000e+01, 8.4500e+01, 9.8000e+01, 1.1250e+02, 1.2800e+02, 1.4450e+02, 1.6200e+02, 1.8050e+02, 2.0000e+02, 2.2050e+02, 2.4200e+02, 2.6450e+02, 2.8800e+02, 3.1250e+02, 3.3800e+02, 3.6450e+02, 3.9200e+02, 4.2050e+02, 4.5000e+02, 4.8050e+02, 5.1200e+02, 5.4450e+02, 5.7800e+02, 6.1250e+02, 6.4800e+02, 6.8450e+02, 7.2200e+02, 7.6050e+02, 8.0000e+02, 8.4050e+02, 8.8200e+02, 9.2450e+02, 9.6800e+02, 1.0125e+03, 1.0580e+03, 1.1045e+03, 1.1520e+03, 1.2005e+03, 1.2500e+03, 1.3005e+03, 1.3520e+03, 1.4045e+03, 1.4580e+03, 1.5125e+03, 1.5680e+03, 1.6245e+03, 1.6820e+03, 1.7405e+03, 1.8000e+03, 1.8605e+03, 1.9220e+03, 1.9845e+03, 2.0480e+03, 2.1125e+03, 2.1780e+03, 2.2445e+03, 2.3120e+03, 2.3805e+03, 2.4500e+03, 2.5205e+03, 2.5920e+03, 2.6645e+03, 2.7380e+03, 2.8125e+03, 2.8880e+03, 2.9645e+03, 3.0420e+03, 3.1205e+03, 3.2000e+03, 3.2805e+03, 3.3620e+03, 3.4445e+03, 3.5280e+03, 3.6125e+03, 3.6980e+03, 3.7845e+03, 3.8720e+03, 3.9605e+03, 4.0500e+03, 4.1405e+03, 4.2320e+03, 4.3245e+03, 4.4180e+03, 4.5125e+03, 4.6080e+03, 4.7045e+03, 4.8020e+03, 4.9005e+03, 5.0000e+03, 5.1005e+03])"]], "ndim": [[36.0, "1"]], "det_hess_s": [[39.0, "array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])"]], "x": [[42.0, "array([[ 1.], [ 2.], [ 3.], [ 4.], [ 5.], [ 6.], [ 7.], [ 8.], [ 9.], [ 10.], [ 11.], [ 12.], [ 13.], [ 14.], [ 15.], [ 16.], [ 17.], [ 18.], [ 19.], [ 20.], [ 21.], [ 22.], [ 23.], [ 24.], [ 25.], [ 26.], [ 27.], [ 28.], [ 29.], [ 30.], [ 31.], [ 32.], [ 33.], [ 34.], [ 35.], [ 36.], [ 37.], [ 38.], [ 39.], [ 40.], [ 41.], [ 42.], [ 43.], [ 44.], [ 45.], [ 46.], [ 47.], [ 48.], [ 49.], [ 50.], [ 51.], [ 52.], [ 53.], [ 54.], [ 55.], [ 56.], [ 57.], [ 58.], [ 59.], [ 60.], [ 61.], [ 62.], [ 63.], [ 64.], [ 65.], [ 66.], [ 67.], [ 68.], [ 69.], [ 70.], [ 71.], [ 72.], [ 73.], [ 74.], [ 75.], [ 76.], [ 77.], [ 78.], [ 79.], [ 80.], [ 81.], [ 82.], [ 83.], [ 84.], [ 85.], [ 86.], [ 87.], [ 88.], [ 89.], [ 90.], [ 91.], [ 92.], [ 93.], [ 94.], [ 95.], [ 96.], [ 97.], [ 98.], [ 99.], [100.]])"]], "y": [[43.0, "array([[ 1.], [ 2.], [ 3.], [ 4.], [ 5.], [ 6.], [ 7.], [ 8.], [ 9.], [ 10.], [ 11.], [ 12.], [ 13.], [ 14.], [ 15.], [ 16.], [ 17.], [ 18.], [ 19.], [ 20.], [ 21.], [ 22.], [ 23.], [ 24.], [ 25.], [ 26.], [ 27.], [ 28.], [ 29.], [ 30.], [ 31.], [ 32.], [ 33.], [ 34.], [ 35.], [ 36.], [ 37.], [ 38.], [ 39.], [ 40.], [ 41.], [ 42.], [ 43.], [ 44.], [ 45.], [ 46.], [ 47.], [ 48.], [ 49.], [ 50.], [ 51.], [ 52.], [ 53.], [ 54.], [ 55.], [ 56.], [ 57.], [ 58.], [ 59.], [ 60.], [ 61.], [ 62.], [ 63.], [ 64.], [ 65.], [ 66.], [ 67.], [ 68.], [ 69.], [ 70.], [ 71.], [ 72.], [ 73.], [ 74.], [ 75.], [ 76.], [ 77.], [ 78.], [ 79.], [ 80.], [ 81.], [ 82.], [ 83.], [ 84.], [ 85.], [ 86.], [ 87.], [ 88.], [ 89.], [ 90.], [ 91.], [ 92.], [ 93.], [ 94.], [ 95.], [ 96.], [ 97.], [ 98.], [ 99.], [100.]])"]], "interp": [[46.0, ". at 0x7fab7f2e3700>"]], "target_s": [[47.0, "array([3.72665317e-06, 6.14389891e-06, 1.00262383e-05, 1.61957424e-05, 2.58959932e-05, 4.09857759e-05, 6.42099934e-05, 9.95728564e-05, 1.52843925e-04, 2.32233182e-04, 3.49276399e-04, 5.19975743e-04, 7.66241736e-04, 1.11767979e-03, 1.61375600e-03, 2.30636063e-03, 3.26276232e-03, 4.56890930e-03, 6.33298575e-03, 8.68907130e-03, 1.18006814e-02, 1.58638899e-02, 2.11096565e-02, 2.78049116e-02, 3.62518979e-02, 4.67852390e-02, 5.97662260e-02, 7.55738747e-02, 9.45924385e-02, 1.17195255e-01, 1.43725065e-01, 1.74471250e-01, 2.09644807e-01, 2.49352209e-01, 2.93569685e-01, 3.42119690e-01, 3.94651546e-01, 4.50628259e-01, 5.09321387e-01, 5.69815527e-01, 6.31023482e-01, 6.91712523e-01, 7.50541364e-01, 8.06106646e-01, 8.56996891e-01, 9.01851159e-01, 9.39419053e-01, 9.68618450e-01, 9.88587205e-01, 9.98725433e-01, 9.98725433e-01, 9.88587205e-01, 9.68618450e-01, 9.39419053e-01, 9.01851159e-01, 8.56996891e-01, 8.06106646e-01, 7.50541364e-01, 6.91712523e-01, 6.31023482e-01, 5.69815527e-01, 5.09321387e-01, 4.50628259e-01, 3.94651546e-01, 3.42119690e-01, 2.93569685e-01, 2.49352209e-01, 2.09644807e-01, 1.74471250e-01, 1.43725065e-01, 1.17195255e-01, 9.45924385e-02, 7.55738747e-02, 5.97662260e-02, 4.67852390e-02, 3.62518979e-02, 2.78049116e-02, 2.11096565e-02, 1.58638899e-02, 1.18006814e-02, 8.68907130e-03, 6.33298575e-03, 4.56890930e-03, 3.26276232e-03, 2.30636063e-03, 1.61375600e-03, 1.11767979e-03, 7.66241736e-04, 5.19975743e-04, 3.49276399e-04, 2.32233182e-04, 1.52843925e-04, 9.95728564e-05, 6.42099934e-05, 4.09857759e-05, 2.58959932e-05, 1.61957424e-05, 1.00262383e-05, 6.14389891e-06, 3.72665317e-06])"]], "target": [[48.0, "array([3.72665317e-06, 6.14389891e-06, 1.00262383e-05, 1.61957424e-05, 2.58959932e-05, 4.09857759e-05, 6.42099934e-05, 9.95728564e-05, 1.52843925e-04, 2.32233182e-04, 3.49276399e-04, 5.19975743e-04, 7.66241736e-04, 1.11767979e-03, 1.61375600e-03, 2.30636063e-03, 3.26276232e-03, 4.56890930e-03, 6.33298575e-03, 8.68907130e-03, 1.18006814e-02, 1.58638899e-02, 2.11096565e-02, 2.78049116e-02, 3.62518979e-02, 4.67852390e-02, 5.97662260e-02, 7.55738747e-02, 9.45924385e-02, 1.17195255e-01, 1.43725065e-01, 1.74471250e-01, 2.09644807e-01, 2.49352209e-01, 2.93569685e-01, 3.42119690e-01, 3.94651546e-01, 4.50628259e-01, 5.09321387e-01, 5.69815527e-01, 6.31023482e-01, 6.91712523e-01, 7.50541364e-01, 8.06106646e-01, 8.56996891e-01, 9.01851159e-01, 9.39419053e-01, 9.68618450e-01, 9.88587205e-01, 9.98725433e-01, 9.98725433e-01, 9.88587205e-01, 9.68618450e-01, 9.39419053e-01, 9.01851159e-01, 8.56996891e-01, 8.06106646e-01, 7.50541364e-01, 6.91712523e-01, 6.31023482e-01, 5.69815527e-01, 5.09321387e-01, 4.50628259e-01, 3.94651546e-01, 3.42119690e-01, 2.93569685e-01, 2.49352209e-01, 2.09644807e-01, 1.74471250e-01, 1.43725065e-01, 1.17195255e-01, 9.45924385e-02, 7.55738747e-02, 5.97662260e-02, 4.67852390e-02, 3.62518979e-02, 2.78049116e-02, 2.11096565e-02, 1.58638899e-02, 1.18006814e-02, 8.68907130e-03, 6.33298575e-03, 4.56890930e-03, 3.26276232e-03, 2.30636063e-03, 1.61375600e-03, 1.11767979e-03, 7.66241736e-04, 5.19975743e-04, 3.49276399e-04, 2.32233182e-04, 1.52843925e-04, 9.95728564e-05, 6.42099934e-05, 4.09857759e-05, 2.58959932e-05, 1.61957424e-05, 1.00262383e-05, 6.14389891e-06, 3.72665317e-06])"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 448} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _get_default_expanded_coordinate(shape, ndim):\n x_coords = []\n for i in range(ndim):\n idx = [None] * ndim\n idx[i] = slice(None, None, None)\n x_coords.append(np.arange(shape[i])[tuple(idx)])\n return x_coords\n\n_get_default_expanded_coordinate(shape=array([102]), ndim=1)", "Selected Statement": "idx = [None] * ndim", "Function Input": {"shape": "array([102])", "ndim": "1"}, "Variable Values Before Statement": {"ndim": "1"}, "Value After Statement Execution": "[None]", "Variable States During Runtime": {"shape": [[1, "array([102])"]], "ndim": [[1, "1"]], "x_coords": [[2.0, "[]"], [6.0, "[array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101])]"]], "i": [[3.0, "0"]], "idx": [[4.0, "[None]"], [5.0, "[slice(None, None, None)]"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 449} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _pad_conserve_grads(phi):\n # pad by conserving the edge gradients\n ndim = np.ndim(phi)\n pw = [1, 1]\n pp = np.pad(phi, [tuple(pw)]*ndim, mode=\"constant\")\n for dim in range(ndim):\n # get the indices first\n idx_pad0_l = _get_idx(ndim, dim, slice(pw[0], pw[0]+1, None))\n idx_pad0_r = _get_idx(ndim, dim, slice(pw[0]+1, pw[0]+2, None))\n idx_pad0 = _get_idx(ndim, dim, slice(pw[0], pw[0]+1, None))\n idx_pad0_fill = _get_idx(ndim, dim, slice(None, pw[0], None))\n idx_pad1_l = _get_idx(ndim, dim, slice(-pw[1]-2, -pw[1]-1, None))\n idx_pad1_r = _get_idx(ndim, dim, slice(-pw[1]-1, -pw[1], None))\n idx_pad1 = _get_idx(ndim, dim, slice(-pw[1]-1, -pw[1], None))\n idx_pad1_fill = _get_idx(ndim, dim, slice(-pw[1], None, None))\n\n # now get the padded values\n grad0 = pp[idx_pad0_r] - pp[idx_pad0_l] # (n0, ..., ndim=1, ..., nd1)\n grad1 = pp[idx_pad1_r] - pp[idx_pad1_l]\n pad_arange0 = np.arange(-pw[0],0) # (1, ..., ndim=pw[i], ..., 1)\n pad_arange1 = np.arange(1,pw[0]+1)\n pad0 = pad_arange0 * grad0 + pp[idx_pad0] # (n0,...,ndim=pw[i],...,nd1)\n pad1 = pad_arange1 * grad1 + pp[idx_pad1]\n pp[idx_pad0_fill] = pad0\n pp[idx_pad1_fill] = pad1\n\n return pp\n\n_pad_conserve_grads(phi=array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]))", "Selected Statement": "grad0 = pp[idx_pad0_r] - pp[idx_pad0_l] # (n0, ..., ndim=1, ..., nd1)", "Function Input": {"phi": "array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "array([0.])", "Variable States During Runtime": {"phi": [[1, "array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])"]], "ndim": [[3.0, "1"]], "pw": [[4.0, "[1, 1]"]], "pp": [[5.0, "array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])"]], "dim": [[6.0, "0"]], "idx_pad0_l": [[8.0, "(slice(1, 2, None),)"]], "idx_pad0_r": [[9.0, "(slice(2, 3, None),)"]], "idx_pad0": [[10.0, "(slice(1, 2, None),)"]], "idx_pad0_fill": [[11.0, "(slice(None, 1, None),)"]], "idx_pad1_l": [[12.0, "(slice(-3, -2, None),)"]], "idx_pad1_r": [[13.0, "(slice(-2, -1, None),)"]], "idx_pad1": [[14.0, "(slice(-2, -1, None),)"]], "idx_pad1_fill": [[15.0, "(slice(-1, None, None),)"]], "grad0": [[18.0, "array([0.])"]], "grad1": [[19.0, "array([0.])"]], "pad_arange0": [[20.0, "array([-1])"]], "pad_arange1": [[21.0, "array([1])"]], "pad0": [[22.0, "array([0.])"]], "pad1": [[23.0, "array([0.])"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 450} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _get_idx(ndim, dim, s, defidx=None):\n defidx = slice(None, None, None) if defidx is None else defidx\n idx = [defidx] * ndim\n idx[dim] = s\n return tuple(idx)\n\n_get_idx(ndim=1, dim=0, s=slice(1, 2, None), defidx=None)", "Selected Statement": "idx = [defidx] * ndim", "Function Input": {"ndim": "1", "dim": "0", "s": "slice(1, 2, None)", "defidx": "None"}, "Variable Values Before Statement": {"ndim": "1"}, "Value After Statement Execution": "[slice(None, None, None)]", "Variable States During Runtime": {"ndim": [[1, "1"]], "dim": [[1, "0"]], "s": [[1, "slice(1, 2, None)"]], "defidx": [[1, "None"], [2.0, "slice(None, None, None)"]], "idx": [[3.0, "[slice(None, None, None)]"], [4.0, "[slice(1, 2, None)]"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 451} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _test_forward_nd_slanted_pot(n, ndim, abs=None):\n x = np.arange(n) - n / 2.0\n xs = np.meshgrid(*([x]*ndim), indexing=\"ij\")\n xs_sq = reduce(lambda x,y:x+y*y, xs, 0.0)\n\n # phi is slanted on the first dimension, so the target will be shifted\n # source on the first dimension by A\n A = n / 6.0\n sigma = (n/30.)\n source = np.exp(-xs_sq / (2*sigma**2))\n source_copy = np.copy(source)\n phi = xs[0] * A\n target = sb.forward(source, phi)\n\n xs2 = np.copy(xs)\n xs2[0] -= A\n xs2_sq = reduce(lambda x,y:x+y*y, xs2, 0.0)\n target_calc = np.exp(-xs2_sq / (2*sigma**2))\n\n # accurate within 2.5*(1/n)*100%\n abs = 2.5/n if abs is None else abs\n assert target == pytest.approx(target_calc, abs=abs)\n\n # check the dimension of target\n assert np.ndim(target) == ndim\n\n # make sure the source is not changed\n assert np.all(source == source_copy)\n\n_test_forward_nd_slanted_pot(n=100, ndim=1, abs=None)", "Selected Statement": "x = np.arange(n) - n / 2.0", "Function Input": {"n": "100", "ndim": "1", "abs": "None"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "array([-50., -49., -48., -47., -46., -45., -44., -43., -42., -41., -40., -39., -38., -37., -36., -35., -34., -33., -32., -31., -30., -29., -28., -27., -26., -25., -24., -23., -22., -21., -20., -19., -18., -17., -16., -15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49.])", "Variable States During Runtime": {"n": [[1, "100"]], "ndim": [[1, "1"]], "abs": [[1, "None"], [21.0, "0.025"]], "x": [[2.0, "array([-50., -49., -48., -47., -46., -45., -44., -43., -42., -41., -40., -39., -38., -37., -36., -35., -34., -33., -32., -31., -30., -29., -28., -27., -26., -25., -24., -23., -22., -21., -20., -19., -18., -17., -16., -15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49.])"]], "xs": [[3.0, "[array([-50., -49., -48., -47., -46., -45., -44., -43., -42., -41., -40., -39., -38., -37., -36., -35., -34., -33., -32., -31., -30., -29., -28., -27., -26., -25., -24., -23., -22., -21., -20., -19., -18., -17., -16., -15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49.])]"]], "xs_sq": [[4.0, "array([2.500e+03, 2.401e+03, 2.304e+03, 2.209e+03, 2.116e+03, 2.025e+03, 1.936e+03, 1.849e+03, 1.764e+03, 1.681e+03, 1.600e+03, 1.521e+03, 1.444e+03, 1.369e+03, 1.296e+03, 1.225e+03, 1.156e+03, 1.089e+03, 1.024e+03, 9.610e+02, 9.000e+02, 8.410e+02, 7.840e+02, 7.290e+02, 6.760e+02, 6.250e+02, 5.760e+02, 5.290e+02, 4.840e+02, 4.410e+02, 4.000e+02, 3.610e+02, 3.240e+02, 2.890e+02, 2.560e+02, 2.250e+02, 1.960e+02, 1.690e+02, 1.440e+02, 1.210e+02, 1.000e+02, 8.100e+01, 6.400e+01, 4.900e+01, 3.600e+01, 2.500e+01, 1.600e+01, 9.000e+00, 4.000e+00, 1.000e+00, 0.000e+00, 1.000e+00, 4.000e+00, 9.000e+00, 1.600e+01, 2.500e+01, 3.600e+01, 4.900e+01, 6.400e+01, 8.100e+01, 1.000e+02, 1.210e+02, 1.440e+02, 1.690e+02, 1.960e+02, 2.250e+02, 2.560e+02, 2.890e+02, 3.240e+02, 3.610e+02, 4.000e+02, 4.410e+02, 4.840e+02, 5.290e+02, 5.760e+02, 6.250e+02, 6.760e+02, 7.290e+02, 7.840e+02, 8.410e+02, 9.000e+02, 9.610e+02, 1.024e+03, 1.089e+03, 1.156e+03, 1.225e+03, 1.296e+03, 1.369e+03, 1.444e+03, 1.521e+03, 1.600e+03, 1.681e+03, 1.764e+03, 1.849e+03, 1.936e+03, 2.025e+03, 2.116e+03, 2.209e+03, 2.304e+03, 2.401e+03])"]], "A": [[8.0, "16.666666666666668"]], "sigma": [[9.0, "3.3333333333333335"]], "source": [[10.0, "array([1.38634329e-49, 1.19303368e-47, 9.38313827e-46, 6.74461286e-44, 4.43077231e-42, 2.66020642e-40, 1.45970379e-38, 7.32027899e-37, 3.35508886e-35, 1.40538048e-33, 5.38018616e-32, 1.88240985e-30, 6.01928028e-29, 1.75909155e-27, 4.69835486e-26, 1.14687658e-24, 2.55859208e-23, 5.21673666e-22, 9.72098502e-21, 1.65552266e-19, 2.57675711e-18, 3.66543340e-17, 4.76530474e-16, 5.66199552e-15, 6.14839641e-14, 6.10193668e-13, 5.53461007e-12, 4.58796249e-11, 3.47589128e-10, 2.40672244e-09, 1.52299797e-08, 8.80817920e-08, 4.65571572e-07, 2.24905597e-06, 9.92950431e-06, 4.00652974e-05, 1.47748360e-04, 4.97955422e-04, 1.53381068e-03, 4.31784001e-03, 1.11089965e-02, 2.61214099e-02, 5.61347628e-02, 1.10250525e-01, 1.97898699e-01, 3.24652467e-01, 4.86752256e-01, 6.66976811e-01, 8.35270211e-01, 9.55997482e-01, 1.00000000e+00, 9.55997482e-01, 8.35270211e-01, 6.66976811e-01, 4.86752256e-01, 3.24652467e-01, 1.97898699e-01, 1.10250525e-01, 5.61347628e-02, 2.61214099e-02, 1.11089965e-02, 4.31784001e-03, 1.53381068e-03, 4.97955422e-04, 1.47748360e-04, 4.00652974e-05, 9.92950431e-06, 2.24905597e-06, 4.65571572e-07, 8.80817920e-08, 1.52299797e-08, 2.40672244e-09, 3.47589128e-10, 4.58796249e-11, 5.53461007e-12, 6.10193668e-13, 6.14839641e-14, 5.66199552e-15, 4.76530474e-16, 3.66543340e-17, 2.57675711e-18, 1.65552266e-19, 9.72098502e-21, 5.21673666e-22, 2.55859208e-23, 1.14687658e-24, 4.69835486e-26, 1.75909155e-27, 6.01928028e-29, 1.88240985e-30, 5.38018616e-32, 1.40538048e-33, 3.35508886e-35, 7.32027899e-37, 1.45970379e-38, 2.66020642e-40, 4.43077231e-42, 6.74461286e-44, 9.38313827e-46, 1.19303368e-47])"]], "source_copy": [[11.0, "array([1.38634329e-49, 1.19303368e-47, 9.38313827e-46, 6.74461286e-44, 4.43077231e-42, 2.66020642e-40, 1.45970379e-38, 7.32027899e-37, 3.35508886e-35, 1.40538048e-33, 5.38018616e-32, 1.88240985e-30, 6.01928028e-29, 1.75909155e-27, 4.69835486e-26, 1.14687658e-24, 2.55859208e-23, 5.21673666e-22, 9.72098502e-21, 1.65552266e-19, 2.57675711e-18, 3.66543340e-17, 4.76530474e-16, 5.66199552e-15, 6.14839641e-14, 6.10193668e-13, 5.53461007e-12, 4.58796249e-11, 3.47589128e-10, 2.40672244e-09, 1.52299797e-08, 8.80817920e-08, 4.65571572e-07, 2.24905597e-06, 9.92950431e-06, 4.00652974e-05, 1.47748360e-04, 4.97955422e-04, 1.53381068e-03, 4.31784001e-03, 1.11089965e-02, 2.61214099e-02, 5.61347628e-02, 1.10250525e-01, 1.97898699e-01, 3.24652467e-01, 4.86752256e-01, 6.66976811e-01, 8.35270211e-01, 9.55997482e-01, 1.00000000e+00, 9.55997482e-01, 8.35270211e-01, 6.66976811e-01, 4.86752256e-01, 3.24652467e-01, 1.97898699e-01, 1.10250525e-01, 5.61347628e-02, 2.61214099e-02, 1.11089965e-02, 4.31784001e-03, 1.53381068e-03, 4.97955422e-04, 1.47748360e-04, 4.00652974e-05, 9.92950431e-06, 2.24905597e-06, 4.65571572e-07, 8.80817920e-08, 1.52299797e-08, 2.40672244e-09, 3.47589128e-10, 4.58796249e-11, 5.53461007e-12, 6.10193668e-13, 6.14839641e-14, 5.66199552e-15, 4.76530474e-16, 3.66543340e-17, 2.57675711e-18, 1.65552266e-19, 9.72098502e-21, 5.21673666e-22, 2.55859208e-23, 1.14687658e-24, 4.69835486e-26, 1.75909155e-27, 6.01928028e-29, 1.88240985e-30, 5.38018616e-32, 1.40538048e-33, 3.35508886e-35, 7.32027899e-37, 1.45970379e-38, 2.66020642e-40, 4.43077231e-42, 6.74461286e-44, 9.38313827e-46, 1.19303368e-47])"]], "phi": [[12.0, "array([-833.33333333, -816.66666667, -800. , -783.33333333, -766.66666667, -750. , -733.33333333, -716.66666667, -700. , -683.33333333, -666.66666667, -650. , -633.33333333, -616.66666667, -600. , -583.33333333, -566.66666667, -550. , -533.33333333, -516.66666667, -500. , -483.33333333, -466.66666667, -450. , -433.33333333, -416.66666667, -400. , -383.33333333, -366.66666667, -350. , -333.33333333, -316.66666667, -300. , -283.33333333, -266.66666667, -250. , -233.33333333, -216.66666667, -200. , -183.33333333, -166.66666667, -150. , -133.33333333, -116.66666667, -100. , -83.33333333, -66.66666667, -50. , -33.33333333, -16.66666667, 0. , 16.66666667, 33.33333333, 50. , 66.66666667, 83.33333333, 100. , 116.66666667, 133.33333333, 150. , 166.66666667, 183.33333333, 200. , 216.66666667, 233.33333333, 250. , 266.66666667, 283.33333333, 300. , 316.66666667, 333.33333333, 350. , 366.66666667, 383.33333333, 400. , 416.66666667, 433.33333333, 450. , 466.66666667, 483.33333333, 500. , 516.66666667, 533.33333333, 550. , 566.66666667, 583.33333333, 600. , 616.66666667, 633.33333333, 650. , 666.66666667, 683.33333333, 700. , 716.66666667, 733.33333333, 750. , 766.66666667, 783.33333333, 800. , 816.66666667])"]], "target": [[13.0, "array([0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 4.06920181e-48, 3.20724834e-46, 2.31075854e-44, 1.52188819e-42, 9.16273954e-41, 5.04302641e-39, 2.53740658e-37, 1.16716481e-35, 4.90827418e-34, 1.88708742e-32, 6.63337857e-31, 2.13192075e-29, 6.26492385e-28, 1.68339106e-26, 4.13614560e-25, 9.29322466e-24, 1.90948503e-22, 3.58811078e-21, 6.16647454e-20, 9.69287214e-19, 1.39359494e-17, 1.83279714e-16, 2.20501882e-15, 2.42693184e-14, 2.44387199e-13, 2.25166580e-12, 1.89829483e-11, 1.46449459e-10, 1.03396690e-09, 6.68114154e-09, 3.95139172e-08, 2.13911719e-07, 1.06006637e-06, 4.80920541e-06, 1.99747687e-05, 7.59596517e-05, 2.64484047e-04, 8.43240507e-04, 2.46182046e-03, 6.58155885e-03, 1.61131343e-02, 3.61258608e-02, 7.41733503e-02, 1.39466583e-01, 2.40149955e-01, 3.78685730e-01, 5.46827108e-01, 7.23074611e-01, 8.75512635e-01, 9.70664988e-01, 9.85332494e-01, 9.15755058e-01, 7.79172411e-01, 6.06901959e-01, 4.32718993e-01, 2.82401211e-01, 1.68682641e-01, 9.22119378e-02, 4.61303118e-02, 2.11172721e-02, 8.84527769e-03, 3.38983023e-03, 1.18852559e-03, 3.81219734e-04, 1.11854006e-04, 3.00200330e-05, 7.36935486e-06, 1.65456117e-06, 3.39741645e-07, 6.37978546e-08, 1.09555606e-08, 1.72034467e-09, 2.47019294e-10, 3.24312866e-11, 3.89313794e-12, 4.27290433e-13, 4.28766413e-14, 3.93350717e-15, 3.29905094e-16, 2.52951417e-17, 1.77302216e-18, 1.13608506e-19, 6.65454790e-21])"]], "xs2": [[15.0, "array([[-50., -49., -48., -47., -46., -45., -44., -43., -42., -41., -40., -39., -38., -37., -36., -35., -34., -33., -32., -31., -30., -29., -28., -27., -26., -25., -24., -23., -22., -21., -20., -19., -18., -17., -16., -15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49.]])"], [16.0, "array([[-66.66666667, -65.66666667, -64.66666667, -63.66666667, -62.66666667, -61.66666667, -60.66666667, -59.66666667, -58.66666667, -57.66666667, -56.66666667, -55.66666667, -54.66666667, -53.66666667, -52.66666667, -51.66666667, -50.66666667, -49.66666667, -48.66666667, -47.66666667, -46.66666667, -45.66666667, -44.66666667, -43.66666667, -42.66666667, -41.66666667, -40.66666667, -39.66666667, -38.66666667, -37.66666667, -36.66666667, -35.66666667, -34.66666667, -33.66666667, -32.66666667, -31.66666667, -30.66666667, -29.66666667, -28.66666667, -27.66666667, -26.66666667, -25.66666667, -24.66666667, -23.66666667, -22.66666667, -21.66666667, -20.66666667, -19.66666667, -18.66666667, -17.66666667, -16.66666667, -15.66666667, -14.66666667, -13.66666667, -12.66666667, -11.66666667, -10.66666667, -9.66666667, -8.66666667, -7.66666667, -6.66666667, -5.66666667, -4.66666667, -3.66666667, -2.66666667, -1.66666667, -0.66666667, 0.33333333, 1.33333333, 2.33333333, 3.33333333, 4.33333333, 5.33333333, 6.33333333, 7.33333333, 8.33333333, 9.33333333, 10.33333333, 11.33333333, 12.33333333, 13.33333333, 14.33333333, 15.33333333, 16.33333333, 17.33333333, 18.33333333, 19.33333333, 20.33333333, 21.33333333, 22.33333333, 23.33333333, 24.33333333, 25.33333333, 26.33333333, 27.33333333, 28.33333333, 29.33333333, 30.33333333, 31.33333333, 32.33333333]])"]], "xs2_sq": [[17.0, "array([4.44444444e+03, 4.31211111e+03, 4.18177778e+03, 4.05344444e+03, 3.92711111e+03, 3.80277778e+03, 3.68044444e+03, 3.56011111e+03, 3.44177778e+03, 3.32544444e+03, 3.21111111e+03, 3.09877778e+03, 2.98844444e+03, 2.88011111e+03, 2.77377778e+03, 2.66944444e+03, 2.56711111e+03, 2.46677778e+03, 2.36844444e+03, 2.27211111e+03, 2.17777778e+03, 2.08544444e+03, 1.99511111e+03, 1.90677778e+03, 1.82044444e+03, 1.73611111e+03, 1.65377778e+03, 1.57344444e+03, 1.49511111e+03, 1.41877778e+03, 1.34444444e+03, 1.27211111e+03, 1.20177778e+03, 1.13344444e+03, 1.06711111e+03, 1.00277778e+03, 9.40444444e+02, 8.80111111e+02, 8.21777778e+02, 7.65444444e+02, 7.11111111e+02, 6.58777778e+02, 6.08444444e+02, 5.60111111e+02, 5.13777778e+02, 4.69444444e+02, 4.27111111e+02, 3.86777778e+02, 3.48444444e+02, 3.12111111e+02, 2.77777778e+02, 2.45444444e+02, 2.15111111e+02, 1.86777778e+02, 1.60444444e+02, 1.36111111e+02, 1.13777778e+02, 9.34444444e+01, 7.51111111e+01, 5.87777778e+01, 4.44444444e+01, 3.21111111e+01, 2.17777778e+01, 1.34444444e+01, 7.11111111e+00, 2.77777778e+00, 4.44444444e-01, 1.11111111e-01, 1.77777778e+00, 5.44444444e+00, 1.11111111e+01, 1.87777778e+01, 2.84444444e+01, 4.01111111e+01, 5.37777778e+01, 6.94444444e+01, 8.71111111e+01, 1.06777778e+02, 1.28444444e+02, 1.52111111e+02, 1.77777778e+02, 2.05444444e+02, 2.35111111e+02, 2.66777778e+02, 3.00444444e+02, 3.36111111e+02, 3.73777778e+02, 4.13444444e+02, 4.55111111e+02, 4.98777778e+02, 5.44444444e+02, 5.92111111e+02, 6.41777778e+02, 6.93444444e+02, 7.47111111e+02, 8.02777778e+02, 8.60444444e+02, 9.20111111e+02, 9.81777778e+02, 1.04544444e+03])"]], "target_calc": [[18.0, "array([1.38389653e-87, 5.33736937e-85, 1.88132746e-82, 6.06059172e-80, 1.78434636e-77, 4.80127724e-75, 1.18072268e-72, 2.65370429e-70, 5.45093048e-68, 1.02329831e-65, 1.75568810e-63, 2.75299848e-61, 3.94528221e-59, 5.16729996e-57, 6.18532849e-55, 6.76667568e-53, 6.76552418e-51, 6.18217132e-49, 5.16290482e-47, 3.94058498e-45, 2.74878501e-43, 1.75240444e-41, 1.02103685e-39, 5.43703314e-38, 2.64603779e-36, 1.17691094e-34, 4.78414856e-33, 1.77737558e-31, 6.03486081e-30, 1.87270255e-28, 5.31109225e-27, 1.37661464e-25, 3.26102718e-24, 7.06008534e-23, 1.39694394e-21, 2.52616378e-20, 4.17501006e-19, 6.30618989e-18, 8.70542662e-17, 1.09831413e-15, 1.26641655e-14, 1.33456608e-13, 1.28533723e-12, 1.13137762e-11, 9.10147076e-11, 6.69158609e-10, 4.49634946e-09, 2.76124246e-08, 1.54975314e-07, 7.94939362e-07, 3.72665317e-06, 1.59667839e-05, 6.25215038e-05, 2.23745794e-04, 7.31802419e-04, 2.18749112e-03, 5.97602290e-03, 1.49207861e-02, 3.40474547e-02, 7.10053537e-02, 1.35335283e-01, 2.35746077e-01, 3.75311099e-01, 5.46074427e-01, 7.26149037e-01, 8.82496903e-01, 9.80198673e-01, 9.95012479e-01, 9.23116346e-01, 7.82704538e-01, 6.06530660e-01, 4.29557358e-01, 2.78037300e-01, 1.64474457e-01, 8.89216175e-02, 4.39369336e-02, 1.98410947e-02, 8.18870101e-03, 3.08871541e-03, 1.06476624e-03, 3.35462628e-04, 9.65934137e-05, 2.54193465e-05, 6.11356797e-06, 1.34381228e-06, 2.69957850e-07, 4.95640532e-08, 8.31670246e-09, 1.27540763e-09, 1.78755887e-10, 2.28973485e-11, 2.68054764e-12, 2.86797501e-13, 2.80440474e-14, 2.50622189e-15, 2.04697171e-16, 1.52797997e-17, 1.04240618e-18, 6.49934797e-20, 3.70353198e-21])"]], "@py_assert3": [[22.0, "None"]], "@py_assert7": [[22.0, "None"]], "@py_assert1": [[22.0, "None"]], "@py_assert4": [[25.0, "None"]], "@py_assert6": [[25.0, "None"]], "@py_assert8": [[28.0, "None"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 452} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _test_forward_nd_quad_pot(n, ndim, abs=None):\n x = np.arange(n) - n / 2.0\n xs = np.meshgrid(*([x]*ndim), indexing=\"ij\")\n xs_sq = reduce(lambda x,y:x+y*y, xs, 0.0)\n\n # phi is quadratic on all dimension, so the target will be scaled\n # source on all dimension by (1+B)\n B = 1.0\n scale = 1 + B\n sigma = (n/30.)\n source = np.exp(-xs_sq / (2*sigma**2))\n source_copy = np.copy(source)\n phi = 0.5*B*xs_sq\n target = sb.forward(source, phi)\n\n target_calc = (scale**-ndim)*np.exp(-xs_sq / (2*(sigma*scale)**2))\n\n # accurate within 2.5*(1/n)*100%\n abs = 2.5/n if abs is None else abs\n assert target == pytest.approx(target_calc, abs=abs)\n\n # check the dimension of target\n assert np.ndim(target) == ndim\n\n # make sure the source is not changed\n assert np.all(source == source_copy)\n\n_test_forward_nd_quad_pot(n=100, ndim=1, abs=None)", "Selected Statement": "x = np.arange(n) - n / 2.0", "Function Input": {"n": "100", "ndim": "1", "abs": "None"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "array([-50., -49., -48., -47., -46., -45., -44., -43., -42., -41., -40., -39., -38., -37., -36., -35., -34., -33., -32., -31., -30., -29., -28., -27., -26., -25., -24., -23., -22., -21., -20., -19., -18., -17., -16., -15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49.])", "Variable States During Runtime": {"n": [[1, "100"]], "ndim": [[1, "1"]], "abs": [[1, "None"], [19.0, "0.025"]], "x": [[2.0, "array([-50., -49., -48., -47., -46., -45., -44., -43., -42., -41., -40., -39., -38., -37., -36., -35., -34., -33., -32., -31., -30., -29., -28., -27., -26., -25., -24., -23., -22., -21., -20., -19., -18., -17., -16., -15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49.])"]], "xs": [[3.0, "[array([-50., -49., -48., -47., -46., -45., -44., -43., -42., -41., -40., -39., -38., -37., -36., -35., -34., -33., -32., -31., -30., -29., -28., -27., -26., -25., -24., -23., -22., -21., -20., -19., -18., -17., -16., -15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49.])]"]], "xs_sq": [[4.0, "array([2.500e+03, 2.401e+03, 2.304e+03, 2.209e+03, 2.116e+03, 2.025e+03, 1.936e+03, 1.849e+03, 1.764e+03, 1.681e+03, 1.600e+03, 1.521e+03, 1.444e+03, 1.369e+03, 1.296e+03, 1.225e+03, 1.156e+03, 1.089e+03, 1.024e+03, 9.610e+02, 9.000e+02, 8.410e+02, 7.840e+02, 7.290e+02, 6.760e+02, 6.250e+02, 5.760e+02, 5.290e+02, 4.840e+02, 4.410e+02, 4.000e+02, 3.610e+02, 3.240e+02, 2.890e+02, 2.560e+02, 2.250e+02, 1.960e+02, 1.690e+02, 1.440e+02, 1.210e+02, 1.000e+02, 8.100e+01, 6.400e+01, 4.900e+01, 3.600e+01, 2.500e+01, 1.600e+01, 9.000e+00, 4.000e+00, 1.000e+00, 0.000e+00, 1.000e+00, 4.000e+00, 9.000e+00, 1.600e+01, 2.500e+01, 3.600e+01, 4.900e+01, 6.400e+01, 8.100e+01, 1.000e+02, 1.210e+02, 1.440e+02, 1.690e+02, 1.960e+02, 2.250e+02, 2.560e+02, 2.890e+02, 3.240e+02, 3.610e+02, 4.000e+02, 4.410e+02, 4.840e+02, 5.290e+02, 5.760e+02, 6.250e+02, 6.760e+02, 7.290e+02, 7.840e+02, 8.410e+02, 9.000e+02, 9.610e+02, 1.024e+03, 1.089e+03, 1.156e+03, 1.225e+03, 1.296e+03, 1.369e+03, 1.444e+03, 1.521e+03, 1.600e+03, 1.681e+03, 1.764e+03, 1.849e+03, 1.936e+03, 2.025e+03, 2.116e+03, 2.209e+03, 2.304e+03, 2.401e+03])"]], "B": [[8.0, "1.0"]], "scale": [[9.0, "2.0"]], "sigma": [[10.0, "3.3333333333333335"]], "source": [[11.0, "array([1.38634329e-49, 1.19303368e-47, 9.38313827e-46, 6.74461286e-44, 4.43077231e-42, 2.66020642e-40, 1.45970379e-38, 7.32027899e-37, 3.35508886e-35, 1.40538048e-33, 5.38018616e-32, 1.88240985e-30, 6.01928028e-29, 1.75909155e-27, 4.69835486e-26, 1.14687658e-24, 2.55859208e-23, 5.21673666e-22, 9.72098502e-21, 1.65552266e-19, 2.57675711e-18, 3.66543340e-17, 4.76530474e-16, 5.66199552e-15, 6.14839641e-14, 6.10193668e-13, 5.53461007e-12, 4.58796249e-11, 3.47589128e-10, 2.40672244e-09, 1.52299797e-08, 8.80817920e-08, 4.65571572e-07, 2.24905597e-06, 9.92950431e-06, 4.00652974e-05, 1.47748360e-04, 4.97955422e-04, 1.53381068e-03, 4.31784001e-03, 1.11089965e-02, 2.61214099e-02, 5.61347628e-02, 1.10250525e-01, 1.97898699e-01, 3.24652467e-01, 4.86752256e-01, 6.66976811e-01, 8.35270211e-01, 9.55997482e-01, 1.00000000e+00, 9.55997482e-01, 8.35270211e-01, 6.66976811e-01, 4.86752256e-01, 3.24652467e-01, 1.97898699e-01, 1.10250525e-01, 5.61347628e-02, 2.61214099e-02, 1.11089965e-02, 4.31784001e-03, 1.53381068e-03, 4.97955422e-04, 1.47748360e-04, 4.00652974e-05, 9.92950431e-06, 2.24905597e-06, 4.65571572e-07, 8.80817920e-08, 1.52299797e-08, 2.40672244e-09, 3.47589128e-10, 4.58796249e-11, 5.53461007e-12, 6.10193668e-13, 6.14839641e-14, 5.66199552e-15, 4.76530474e-16, 3.66543340e-17, 2.57675711e-18, 1.65552266e-19, 9.72098502e-21, 5.21673666e-22, 2.55859208e-23, 1.14687658e-24, 4.69835486e-26, 1.75909155e-27, 6.01928028e-29, 1.88240985e-30, 5.38018616e-32, 1.40538048e-33, 3.35508886e-35, 7.32027899e-37, 1.45970379e-38, 2.66020642e-40, 4.43077231e-42, 6.74461286e-44, 9.38313827e-46, 1.19303368e-47])"]], "source_copy": [[12.0, "array([1.38634329e-49, 1.19303368e-47, 9.38313827e-46, 6.74461286e-44, 4.43077231e-42, 2.66020642e-40, 1.45970379e-38, 7.32027899e-37, 3.35508886e-35, 1.40538048e-33, 5.38018616e-32, 1.88240985e-30, 6.01928028e-29, 1.75909155e-27, 4.69835486e-26, 1.14687658e-24, 2.55859208e-23, 5.21673666e-22, 9.72098502e-21, 1.65552266e-19, 2.57675711e-18, 3.66543340e-17, 4.76530474e-16, 5.66199552e-15, 6.14839641e-14, 6.10193668e-13, 5.53461007e-12, 4.58796249e-11, 3.47589128e-10, 2.40672244e-09, 1.52299797e-08, 8.80817920e-08, 4.65571572e-07, 2.24905597e-06, 9.92950431e-06, 4.00652974e-05, 1.47748360e-04, 4.97955422e-04, 1.53381068e-03, 4.31784001e-03, 1.11089965e-02, 2.61214099e-02, 5.61347628e-02, 1.10250525e-01, 1.97898699e-01, 3.24652467e-01, 4.86752256e-01, 6.66976811e-01, 8.35270211e-01, 9.55997482e-01, 1.00000000e+00, 9.55997482e-01, 8.35270211e-01, 6.66976811e-01, 4.86752256e-01, 3.24652467e-01, 1.97898699e-01, 1.10250525e-01, 5.61347628e-02, 2.61214099e-02, 1.11089965e-02, 4.31784001e-03, 1.53381068e-03, 4.97955422e-04, 1.47748360e-04, 4.00652974e-05, 9.92950431e-06, 2.24905597e-06, 4.65571572e-07, 8.80817920e-08, 1.52299797e-08, 2.40672244e-09, 3.47589128e-10, 4.58796249e-11, 5.53461007e-12, 6.10193668e-13, 6.14839641e-14, 5.66199552e-15, 4.76530474e-16, 3.66543340e-17, 2.57675711e-18, 1.65552266e-19, 9.72098502e-21, 5.21673666e-22, 2.55859208e-23, 1.14687658e-24, 4.69835486e-26, 1.75909155e-27, 6.01928028e-29, 1.88240985e-30, 5.38018616e-32, 1.40538048e-33, 3.35508886e-35, 7.32027899e-37, 1.45970379e-38, 2.66020642e-40, 4.43077231e-42, 6.74461286e-44, 9.38313827e-46, 1.19303368e-47])"]], "phi": [[13.0, "array([1.2500e+03, 1.2005e+03, 1.1520e+03, 1.1045e+03, 1.0580e+03, 1.0125e+03, 9.6800e+02, 9.2450e+02, 8.8200e+02, 8.4050e+02, 8.0000e+02, 7.6050e+02, 7.2200e+02, 6.8450e+02, 6.4800e+02, 6.1250e+02, 5.7800e+02, 5.4450e+02, 5.1200e+02, 4.8050e+02, 4.5000e+02, 4.2050e+02, 3.9200e+02, 3.6450e+02, 3.3800e+02, 3.1250e+02, 2.8800e+02, 2.6450e+02, 2.4200e+02, 2.2050e+02, 2.0000e+02, 1.8050e+02, 1.6200e+02, 1.4450e+02, 1.2800e+02, 1.1250e+02, 9.8000e+01, 8.4500e+01, 7.2000e+01, 6.0500e+01, 5.0000e+01, 4.0500e+01, 3.2000e+01, 2.4500e+01, 1.8000e+01, 1.2500e+01, 8.0000e+00, 4.5000e+00, 2.0000e+00, 5.0000e-01, 0.0000e+00, 5.0000e-01, 2.0000e+00, 4.5000e+00, 8.0000e+00, 1.2500e+01, 1.8000e+01, 2.4500e+01, 3.2000e+01, 4.0500e+01, 5.0000e+01, 6.0500e+01, 7.2000e+01, 8.4500e+01, 9.8000e+01, 1.1250e+02, 1.2800e+02, 1.4450e+02, 1.6200e+02, 1.8050e+02, 2.0000e+02, 2.2050e+02, 2.4200e+02, 2.6450e+02, 2.8800e+02, 3.1250e+02, 3.3800e+02, 3.6450e+02, 3.9200e+02, 4.2050e+02, 4.5000e+02, 4.8050e+02, 5.1200e+02, 5.4450e+02, 5.7800e+02, 6.1250e+02, 6.4800e+02, 6.8450e+02, 7.2200e+02, 7.6050e+02, 8.0000e+02, 8.4050e+02, 8.8200e+02, 9.2450e+02, 9.6800e+02, 1.0125e+03, 1.0580e+03, 1.1045e+03, 1.1520e+03, 1.2005e+03])"]], "target": [[14.0, "array([3.05096834e-13, 1.53620093e-12, 2.76730504e-12, 1.28535587e-11, 2.29398124e-11, 9.83671882e-11, 1.73794564e-10, 6.88577891e-10, 1.20336122e-09, 4.40917555e-09, 7.61498987e-09, 2.58279429e-08, 4.40408960e-08, 1.38413341e-07, 2.32785786e-07, 6.78656885e-07, 1.12452798e-06, 3.04464007e-06, 4.96475215e-06, 1.24987004e-05, 2.00326487e-05, 4.69534144e-05, 7.38741801e-05, 1.61425945e-04, 2.48977711e-04, 5.07941525e-04, 7.66905340e-04, 1.46291267e-03, 2.15892000e-03, 3.85670914e-03, 5.55449827e-03, 9.30760160e-03, 1.30607049e-02, 2.05640432e-02, 2.80673814e-02, 4.15963220e-02, 5.51252627e-02, 7.70373061e-02, 9.89493495e-02, 1.30637792e-01, 1.62326234e-01, 2.02851181e-01, 2.43376128e-01, 2.88432267e-01, 3.33488405e-01, 3.75561756e-01, 4.17635106e-01, 4.47816923e-01, 4.77998741e-01, 4.88999370e-01, 5.00000000e-01, 4.88999370e-01, 4.77998741e-01, 4.47816923e-01, 4.17635106e-01, 3.75561756e-01, 3.33488405e-01, 2.88432267e-01, 2.43376128e-01, 2.02851181e-01, 1.62326234e-01, 1.30637792e-01, 9.89493495e-02, 7.70373061e-02, 5.51252627e-02, 4.15963220e-02, 2.80673814e-02, 2.05640432e-02, 1.30607049e-02, 9.30760160e-03, 5.55449827e-03, 3.85670914e-03, 2.15892000e-03, 1.46291267e-03, 7.66905340e-04, 5.07941525e-04, 2.48977711e-04, 1.61425945e-04, 7.38741801e-05, 4.69534144e-05, 2.00326487e-05, 1.24987004e-05, 4.96475215e-06, 3.04464007e-06, 1.12452798e-06, 6.78656885e-07, 2.32785786e-07, 1.38413341e-07, 4.40408960e-08, 2.58279429e-08, 7.61498987e-09, 4.40917555e-09, 1.20336122e-09, 6.88577891e-10, 1.73794564e-10, 9.83671882e-11, 2.29398124e-11, 1.28535587e-11, 2.76730504e-12, 1.53620093e-12])"]], "target_calc": [[16.0, "array([3.05096834e-13, 9.29251306e-13, 2.76730504e-12, 8.05766599e-12, 2.29398124e-11, 6.38555777e-11, 1.73794564e-10, 4.62489538e-10, 1.20336122e-09, 3.06138876e-09, 7.61498987e-09, 1.85203228e-08, 4.40408960e-08, 1.02398151e-07, 2.32785786e-07, 5.17427106e-07, 1.12452798e-06, 2.38956987e-06, 4.96475215e-06, 1.00856475e-05, 2.00326487e-05, 3.89046343e-05, 7.38741801e-05, 1.37155234e-04, 2.48977711e-04, 4.41913153e-04, 7.66905340e-04, 1.30129263e-03, 2.15892000e-03, 3.50208357e-03, 5.55449827e-03, 8.61373566e-03, 1.30607049e-02, 1.93628852e-02, 2.80673814e-02, 3.97797544e-02, 5.51252627e-02, 7.46908876e-02, 9.89493495e-02, 1.28170076e-01, 1.62326234e-01, 2.01010692e-01, 2.43376128e-01, 2.88114537e-01, 3.33488405e-01, 3.77419801e-01, 4.17635106e-01, 4.51853539e-01, 4.77998741e-01, 4.94406522e-01, 5.00000000e-01, 4.94406522e-01, 4.77998741e-01, 4.51853539e-01, 4.17635106e-01, 3.77419801e-01, 3.33488405e-01, 2.88114537e-01, 2.43376128e-01, 2.01010692e-01, 1.62326234e-01, 1.28170076e-01, 9.89493495e-02, 7.46908876e-02, 5.51252627e-02, 3.97797544e-02, 2.80673814e-02, 1.93628852e-02, 1.30607049e-02, 8.61373566e-03, 5.55449827e-03, 3.50208357e-03, 2.15892000e-03, 1.30129263e-03, 7.66905340e-04, 4.41913153e-04, 2.48977711e-04, 1.37155234e-04, 7.38741801e-05, 3.89046343e-05, 2.00326487e-05, 1.00856475e-05, 4.96475215e-06, 2.38956987e-06, 1.12452798e-06, 5.17427106e-07, 2.32785786e-07, 1.02398151e-07, 4.40408960e-08, 1.85203228e-08, 7.61498987e-09, 3.06138876e-09, 1.20336122e-09, 4.62489538e-10, 1.73794564e-10, 6.38555777e-11, 2.29398124e-11, 8.05766599e-12, 2.76730504e-12, 9.29251306e-13])"]], "@py_assert3": [[20.0, "None"]], "@py_assert7": [[20.0, "None"]], "@py_assert1": [[20.0, "None"]], "@py_assert4": [[23.0, "None"]], "@py_assert6": [[23.0, "None"]], "@py_assert8": [[26.0, "None"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 453} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def parse_access_method(access_method: str):\n num_workers = 0\n scheduler = \"threaded\"\n download = access_method.startswith(\"download\")\n local = access_method.startswith(\"local\")\n if download or local:\n split = access_method.split(\":\")\n if len(split) == 1:\n split.extend((\"threaded\", \"0\"))\n elif len(split) == 2:\n split.append(\"threaded\" if split[1].isnumeric() else \"0\")\n elif len(split) >= 3:\n num_integers = sum(1 for i in split if i.isnumeric())\n if num_integers != 1 or len(split) > 3:\n raise ValueError(\n \"Invalid access_method format. Expected format is one of the following: {download, download:scheduler, download:num_workers, download:scheduler:num_workers, download:num_workers:scheduler}\"\n )\n\n access_method = \"download\" if download else \"local\"\n num_worker_index = 1 if split[1].isnumeric() else 2\n scheduler_index = 3 - num_worker_index\n num_workers = int(split[num_worker_index])\n scheduler = split[scheduler_index]\n return access_method, num_workers, scheduler\n\nparse_access_method(access_method='download')", "Selected Statement": "scheduler_index = 3 - num_worker_index", "Function Input": {"access_method": "'download'"}, "Variable Values Before Statement": {"num_worker_index": "2"}, "Value After Statement Execution": "1", "Variable States During Runtime": {"access_method": [[1, "'download'"]], "num_workers": [[2.0, "0"]], "scheduler": [[3.0, "'threaded'"]], "download": [[4.0, "True"]], "local": [[5.0, "False"]], "split": [[7.0, "['download']"], [9.0, "['download', 'threaded', '0']"]], "num_worker_index": [[20.0, "2"]], "scheduler_index": [[21.0, "1"]]}, "Program Information": "Project Name: activeloopai+deeplake", "idx": 454} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def serialize_chunkids(version: str, arr: np.ndarray) -> memoryview:\n \"\"\"Serializes chunk ID encoders into a single byte stream. This is how the encoders will be written to the storage provider.\n\n Args:\n version: (str) Version of deeplake library.\n arr: (np.ndarray) Encoded chunk ids from a `ChunkIdEncoder` instance.\n\n Returns:\n Serialized chunk ids as memoryview.\n \"\"\"\n len_version = len(version)\n write_dtype = version_compare(version, \"2.7.6\") >= 0\n flatbuff = bytearray(1 + int(write_dtype) + len_version + arr.nbytes)\n\n # Write version\n len_version = len(version)\n flatbuff[0] = len_version\n flatbuff[1 : 1 + len_version] = version.encode(\"ascii\")\n offset = 1 + len_version\n\n # write encoder dtype\n if write_dtype:\n dtype = arr.dtype\n num_bytes = int(dtype.itemsize)\n flatbuff[offset] = num_bytes\n offset += 1\n\n # Write ids\n flatbuff[offset : offset + arr.nbytes] = arr.tobytes()\n offset += arr.nbytes\n return memoryview(flatbuff)\n\nserialize_chunkids(version='3.8.18', arr=array([], shape=(0, 2), dtype=uint64))", "Selected Statement": "offset = 1 + len_version", "Function Input": {"version": "'3.8.18'", "arr": "array([], shape=(0, 2), dtype=uint64)"}, "Variable Values Before Statement": {"len_version": "6"}, "Value After Statement Execution": "7", "Variable States During Runtime": {"version": [[1, "'3.8.18'"]], "arr": [[1, "array([], shape=(0, 2), dtype=uint64)"]], "len_version": [[11.0, "6"]], "write_dtype": [[12.0, "True"]], "flatbuff": [[13.0, "bytearray(b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00')"], [17.0, "bytearray(b'\\x06\\x00\\x00\\x00\\x00\\x00\\x00\\x00')"], [18.0, "bytearray(b'\\x063.8.18\\x00')"], [25.0, "bytearray(b'\\x063.8.18\\x08')"]], "offset": [[19.0, "7"], [26.0, "8"]], "dtype": [[23.0, "dtype('uint64')"]], "num_bytes": [[24.0, "8"]]}, "Program Information": "Project Name: activeloopai+deeplake", "idx": 455} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def rolling_mean_by_h(x, h, w, name):\n \"\"\"Compute a rolling mean of x, after first aggregating by h.\n\n Right-aligned. Computes a single mean for each unique value of h. Each\n mean is over at least w samples.\n\n Parameters\n ----------\n x: Array.\n h: Array of horizon for each value in x.\n w: Integer window size (number of elements).\n name: Name for metric in result dataframe\n\n Returns\n -------\n Dataframe with columns horizon and name, the rolling mean of x.\n \"\"\"\n # Aggregate over h\n df = pd.DataFrame({'x': x, 'h': h})\n df2 = (\n df.groupby('h').agg(['sum', 'count']).reset_index().sort_values('h')\n )\n xs = df2['x']['sum'].values\n ns = df2['x']['count'].values\n hs = df2.h.values\n\n trailing_i = len(df2) - 1\n x_sum = 0\n n_sum = 0\n # We don't know output size but it is bounded by len(df2)\n res_x = np.empty(len(df2))\n\n # Start from the right and work backwards\n for i in range(len(df2) - 1, -1, -1):\n x_sum += xs[i]\n n_sum += ns[i]\n while n_sum >= w:\n # Include points from the previous horizon. All of them if still\n # less than w, otherwise weight the mean by the difference\n excess_n = n_sum - w\n excess_x = excess_n * xs[i] / ns[i]\n res_x[trailing_i] = (x_sum - excess_x)/ w\n x_sum -= xs[trailing_i]\n n_sum -= ns[trailing_i]\n trailing_i -= 1\n\n res_h = hs[(trailing_i + 1):]\n res_x = res_x[(trailing_i + 1):]\n\n return pd.DataFrame({'horizon': res_h, name: res_x})\n\nrolling_mean_by_h(x=array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), h=array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), w=1, name='x')", "Selected Statement": "trailing_i = len(df2) - 1", "Function Input": {"x": "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])", "h": "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])", "w": "1", "name": "'x'"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "9", "Variable States During Runtime": {"x": [[1, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "h": [[1, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "w": [[1, "1"]], "name": [[1, "'x'"]], "df": [[19.0, " x h0 0 01 1 12 2 23 3 34 4 45 5 56 6 67 7 78 8 89 9 9"]], "df2": [[20.0, " h x sum count0 0 0 11 1 1 12 2 2 13 3 3 14 4 4 15 5 5 16 6 6 17 7 7 18 8 8 19 9 9 1"]], "xs": [[23.0, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "ns": [[24.0, "array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1])"]], "hs": [[25.0, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "trailing_i": [[27.0, "9"], [45.0, "8"], [45.0, "7"], [45.0, "6"], [45.0, "5"], [45.0, "4"], [45.0, "3"], [45.0, "2"], [45.0, "1"], [45.0, "0"], [45.0, "-1"]], "x_sum": [[28.0, "0"], [35.0, "9"], [43.0, "0"], [35.0, "8"], [43.0, "0"], [35.0, "7"], [43.0, "0"], [35.0, "6"], [43.0, "0"], [35.0, "5"], [43.0, "0"], [35.0, "4"], [43.0, "0"], [35.0, "3"], [43.0, "0"], [35.0, "2"], [43.0, "0"], [35.0, "1"], [43.0, "0"]], "n_sum": [[29.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"]], "res_x": [[31.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 3.0e-323, 3.5e-323, 4.0e-323, 4.4e-323])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 3.0e-323, 3.5e-323, 4.0e-323, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 3.0e-323, 3.5e-323, 8.0e+000, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 3.0e-323, 7.0e+000, 8.0e+000, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 6.0e+000, 7.0e+000, 8.0e+000, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 5.0e+000, 6.0e+000, 7.0e+000, 8.0e+000, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 4.0e+000, 5.0e+000, 6.0e+000, 7.0e+000, 8.0e+000, 9.0e+000])"], [42.0, "array([0.e+000, 5.e-324, 1.e-323, 3.e+000, 4.e+000, 5.e+000, 6.e+000, 7.e+000, 8.e+000, 9.e+000])"], [42.0, "array([0.e+000, 5.e-324, 2.e+000, 3.e+000, 4.e+000, 5.e+000, 6.e+000, 7.e+000, 8.e+000, 9.e+000])"], [42.0, "array([0., 1., 2., 3., 4., 5., 6., 7., 8., 9.])"]], "i": [[34.0, "9"], [34.0, "8"], [34.0, "7"], [34.0, "6"], [34.0, "5"], [34.0, "4"], [34.0, "3"], [34.0, "2"], [34.0, "1"], [34.0, "0"]], "excess_n": [[40.0, "0"]], "excess_x": [[41.0, "0.0"]], "res_h": [[47.0, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]]}, "Program Information": "Project Name: facebook+prophet", "idx": 456} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def rolling_median_by_h(x, h, w, name):\n \"\"\"Compute a rolling median of x, after first aggregating by h.\n\n Right-aligned. Computes a single median for each unique value of h. Each\n median is over at least w samples.\n\n For each h where there are fewer than w samples, we take samples from the previous h,\n moving backwards. (In other words, we ~ assume that the x's are shuffled within each h.)\n\n Parameters\n ----------\n x: Array.\n h: Array of horizon for each value in x.\n w: Integer window size (number of elements).\n name: Name for metric in result dataframe\n\n Returns\n -------\n Dataframe with columns horizon and name, the rolling median of x.\n \"\"\"\n # Aggregate over h\n df = pd.DataFrame({'x': x, 'h': h})\n grouped = df.groupby('h')\n df2 = grouped.size().reset_index().sort_values('h')\n hs = df2['h']\n\n res_h = []\n res_x = []\n # Start from the right and work backwards\n i = len(hs) - 1\n while i >= 0:\n h_i = hs[i]\n xs = grouped.get_group(h_i).x.tolist()\n\n # wrap in array so this works if h is pandas Series with custom index or numpy array\n next_idx_to_add = np.array(h == h_i).argmax() - 1\n while (len(xs) < w) and (next_idx_to_add >= 0):\n # Include points from the previous horizon. All of them if still\n # less than w, otherwise just enough to get to w.\n xs.append(x[next_idx_to_add])\n next_idx_to_add -= 1\n if len(xs) < w:\n # Ran out of points before getting enough.\n break\n res_h.append(hs[i])\n res_x.append(np.median(xs))\n i -= 1\n res_h.reverse()\n res_x.reverse()\n return pd.DataFrame({'horizon': res_h, name: res_x})\n\nrolling_median_by_h(x=array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), h=array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), w=1, name='x')", "Selected Statement": "i = len(hs) - 1", "Function Input": {"x": "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])", "h": "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])", "w": "1", "name": "'x'"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "9", "Variable States During Runtime": {"x": [[1, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "h": [[1, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "w": [[1, "1"]], "name": [[1, "'x'"]], "df": [[22.0, " x h0 0 01 1 12 2 23 3 34 4 45 5 56 6 67 7 78 8 89 9 9"]], "grouped": [[23.0, ""]], "df2": [[24.0, " h 00 0 11 1 12 2 13 3 14 4 15 5 16 6 17 7 18 8 19 9 1"]], "hs": [[25.0, "0 01 12 23 34 45 56 67 78 89 9Name: h, dtype: int64"]], "res_h": [[27.0, "[]"], [45.0, "[9]"], [45.0, "[9, 8]"], [45.0, "[9, 8, 7]"], [45.0, "[9, 8, 7, 6]"], [45.0, "[9, 8, 7, 6, 5]"], [45.0, "[9, 8, 7, 6, 5, 4]"], [45.0, "[9, 8, 7, 6, 5, 4, 3]"], [45.0, "[9, 8, 7, 6, 5, 4, 3, 2]"], [45.0, "[9, 8, 7, 6, 5, 4, 3, 2, 1]"], [45.0, "[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]"], [48.0, "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]"]], "res_x": [[28.0, "[]"], [46.0, "[9.0]"], [46.0, "[9.0, 8.0]"], [46.0, "[9.0, 8.0, 7.0]"], [46.0, "[9.0, 8.0, 7.0, 6.0]"], [46.0, "[9.0, 8.0, 7.0, 6.0, 5.0]"], [46.0, "[9.0, 8.0, 7.0, 6.0, 5.0, 4.0]"], [46.0, "[9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0]"], [46.0, "[9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0]"], [46.0, "[9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0]"], [46.0, "[9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, 0.0]"], [49.0, "[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]"]], "i": [[30.0, "9"], [47.0, "8"], [47.0, "7"], [47.0, "6"], [47.0, "5"], [47.0, "4"], [47.0, "3"], [47.0, "2"], [47.0, "1"], [47.0, "0"], [47.0, "-1"]], "h_i": [[32.0, "9"], [32.0, "8"], [32.0, "7"], [32.0, "6"], [32.0, "5"], [32.0, "4"], [32.0, "3"], [32.0, "2"], [32.0, "1"], [32.0, "0"]], "xs": [[33.0, "[9]"], [33.0, "[8]"], [33.0, "[7]"], [33.0, "[6]"], [33.0, "[5]"], [33.0, "[4]"], [33.0, "[3]"], [33.0, "[2]"], [33.0, "[1]"], [33.0, "[0]"]], "next_idx_to_add": [[36.0, "8"], [36.0, "7"], [36.0, "6"], [36.0, "5"], [36.0, "4"], [36.0, "3"], [36.0, "2"], [36.0, "1"], [36.0, "0"], [36.0, "-1"]]}, "Program Information": "Project Name: facebook+prophet", "idx": 457} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def glob_absolute_paths(file: Union[str, Path]) -> List[Path]:\n path = Path(file)\n if not path.is_absolute():\n path = base / path\n return sorted(path.parent.glob(path.name), key=lambda p: p.stem)\n\nglob_absolute_paths(file='aggrid.js', base=PosixPath('/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/zauberzeug+nicegui/zauberzeug+nicegui/nicegui/elements'))", "Selected Statement": "path = base / path", "Function Input": {"file": "'aggrid.js'", "base": "PosixPath('/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/zauberzeug+nicegui/zauberzeug+nicegui/nicegui/elements')"}, "Variable Values Before Statement": {"base": "PosixPath('/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/zauberzeug+nicegui/zauberzeug+nicegui/nicegui/elements')", "path": "PosixPath('aggrid.js')"}, "Value After Statement Execution": "PosixPath('/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/zauberzeug+nicegui/zauberzeug+nicegui/nicegui/elements/aggrid.js')", "Variable States During Runtime": {"file": [[1, "'aggrid.js'"]], "base": [[1, "PosixPath('/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/zauberzeug+nicegui/zauberzeug+nicegui/nicegui/elements')"]], "path": [[2.0, "PosixPath('aggrid.js')"], [4.0, "PosixPath('/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/zauberzeug+nicegui/zauberzeug+nicegui/nicegui/elements/aggrid.js')"]]}, "Program Information": "Project Name: zauberzeug+nicegui", "idx": 458} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def ios_screenshot(args: list = None) -> None:\n \"\"\"\n Take an iOS screenshot.\n\n :param args:\n :return:\n \"\"\"\n\n if len(args) <= 0:\n click.secho('Usage: ios ui screenshot ', bold=True)\n return\n\n destination = args[0]\n\n if not destination.endswith('.png'):\n destination = destination + '.png'\n\n api = state_connection.get_api()\n png = api.ios_ui_screenshot()\n\n with open(destination, 'wb') as f:\n f.write(png)\n\n click.secho('Screenshot saved to: {0}'.format(destination), fg='green')\n\nios_screenshot(args=['foo'])", "Selected Statement": "destination = destination + '.png'", "Function Input": {"args": "['foo']"}, "Variable Values Before Statement": {"destination": "'foo'"}, "Value After Statement Execution": "'foo.png'", "Variable States During Runtime": {"args": [[1, "['foo']"]], "destination": [[13.0, "'foo'"], [16.0, "'foo.png'"]], "api": [[18.0, ""]], "png": [[19.0, "b'\\x00'"]], "f": [[21.0, ""]]}, "Program Information": "Project Name: sensepost+objection", "idx": 459} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def aes(text, key):\n pad = 16 - len(text) % 16\n text = text + bytearray([pad] * pad)\n encryptor = AES.new(key, 2, b\"0102030405060708\")\n ciphertext = encryptor.encrypt(text)\n return base64.b64encode(ciphertext)\n\naes(text=b'{\"ids\": [347230, 496619464, 405998841, 28012031], \"br\": 320000, \"csrf_token\": \"\"}', key=b'0CoJUm6Qyw8W8jud')", "Selected Statement": "pad = 16 - len(text) % 16", "Function Input": {"text": "b'{\"ids\": [347230, 496619464, 405998841, 28012031], \"br\": 320000, \"csrf_token\": \"\"}'", "key": "b'0CoJUm6Qyw8W8jud'"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "15", "Variable States During Runtime": {"text": [[1, "b'{\"ids\": [347230, 496619464, 405998841, 28012031], \"br\": 320000, \"csrf_token\": \"\"}'"], [3.0, "b'{\"ids\": [347230, 496619464, 405998841, 28012031], \"br\": 320000, \"csrf_token\": \"\"}\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f\\x0f'"]], "key": [[1, "b'0CoJUm6Qyw8W8jud'"]], "pad": [[2.0, "15"]], "encryptor": [[4.0, "{_state=, block_size=16, iv=b'0102030405060708', IV=b'0102030405060708', _next=[>, >]}"], [5.0, "{_state=, block_size=16, iv=b'0102030405060708', IV=b'0102030405060708', _next=[>]}"]], "ciphertext": [[5.0, "b'}8(\\n\\x91;\\xe9\\xca\\x03\\x0b+\\xc3\\xb6\\xb5\\xef\\xc2\\x06\\x0e\\xae?i\\xd3\\x1d\\xd2b\\x9d\\x1c\\xea\\x80\\xf9v\\x1c\\xac{\\x06\\xa2YS*\\xfd\\xbc\\xf6*\\x8fZS\\x12\\xec\\xe8yZ\\x06\\x19d\\x96\\xb6E`\\x11G\\x01V\\xcf\\xa7\\xcf\\xbd\\x90{VxT\\xe3\\x1c\\xc4!\\x96,p3\\xffK\\xc7g\\x17\\xfc\\x0c\\x11\\xdf\\\\\\xff\\xa8\\x84,\\x85j\\x12'"]]}, "Program Information": "Project Name: darknessomi+musicbox", "idx": 460} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def test_generate(monkeypatch, generated, stop_tokens, expected):\n import chat.base as chat\n import generate.base as generate\n\n input_idx = torch.tensor([5, 3])\n max_returned_tokens = len(input_idx) + 8\n model = MagicMock()\n model.config.block_size = 100\n model.max_seq_length = 100\n it = iter(generated)\n\n def multinomial(*_, **__):\n out = next(it)\n return torch.tensor([out])\n\n monkeypatch.setattr(generate, \"multinomial_num_samples_1\", multinomial)\n actual = chat.generate(model, input_idx, max_returned_tokens, stop_tokens=stop_tokens)\n actual = list(actual)\n\n assert len(actual) == len(expected)\n if not actual:\n assert actual == expected\n else:\n for t in actual:\n assert t.dtype == torch.long\n assert torch.cat(actual).tolist() == expected\n\ntest_generate(monkeypatch={_setattr=[], _setitem=[], _cwd=None, _savesyspath=None}, generated=repeat(1), stop_tokens=(), expected=[1, 1, 1, 1, 1, 1, 1, 1])", "Selected Statement": "max_returned_tokens = len(input_idx) + 8", "Function Input": {"monkeypatch": "{_setattr=[], _setitem=[], _cwd=None, _savesyspath=None}", "generated": "repeat(1)", "stop_tokens": "()", "expected": "[1, 1, 1, 1, 1, 1, 1, 1]"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "10", "Variable States During Runtime": {"monkeypatch": [[1, "{_setattr=[], _setitem=[], _cwd=None, _savesyspath=None}"], [16.0, "{_setattr=[(, 'multinomial_num_samples_1', )], _setitem=[], _cwd=None, _savesyspath=None}"]], "generated": [[1, "repeat(1)"]], "stop_tokens": [[1, "()"]], "expected": [[1, "[1, 1, 1, 1, 1, 1, 1, 1]"]], "chat": [[2.0, ""]], "generate": [[3.0, ""]], "input_idx": [[5.0, "tensor([5, 3])"]], "max_returned_tokens": [[6.0, "10"]], "model": [[7.0, ""]], "it": [[10.0, "repeat(1)"]], "multinomial": [[12.0, ".multinomial at 0x7f7fd0f7e430>"]], "actual": [[17.0, ""], [18.0, "[tensor([1]), tensor([1]), tensor([1]), tensor([1]), tensor([1]), tensor([1]), tensor([1]), tensor([1])]"]], "@py_assert2": [[20.0, "None"]], "@py_assert7": [[20.0, "None"]], "@py_assert4": [[20.0, "None"]], "t": [[24.0, "tensor([1])"]], "@py_assert1": [[25.0, "None"]], "@py_assert5": [[25.0, "None"]], "@py_assert3": [[25.0, "None"]], "@py_assert6": [[26.0, "None"]], "@py_assert8": [[26.0, "None"]], "@py_assert10": [[26.0, "None"]]}, "Program Information": "Project Name: Lightning-AI+lit-gpt", "idx": 461} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def rowcol_to_a1(row, col):\n \"\"\"Translates a row and column cell address to A1 notation.\n\n :param row: The row of the cell to be converted.\n Rows start at index 1.\n :type row: int, str\n\n :param col: The column of the cell to be converted.\n Columns start at index 1.\n :type row: int, str\n\n :returns: a string containing the cell's coordinates in A1 notation.\n\n Example:\n\n >>> rowcol_to_a1(1, 1)\n A1\n\n \"\"\"\n row = int(row)\n col = int(col)\n\n if row < 1 or col < 1:\n raise IncorrectCellLabel(\"({}, {})\".format(row, col))\n\n div = col\n column_label = \"\"\n\n while div:\n (div, mod) = divmod(div, 26)\n if mod == 0:\n mod = 26\n div -= 1\n column_label = chr(mod + MAGIC_NUMBER) + column_label\n\n label = \"{}{}\".format(column_label, row)\n\n return label\n\nrowcol_to_a1(row=4, col=4)", "Selected Statement": "column_label = chr(mod + MAGIC_NUMBER) + column_label", "Function Input": {"row": "4", "col": "4"}, "Variable Values Before Statement": {"column_label": "''"}, "Value After Statement Execution": "'D'", "Variable States During Runtime": {"row": [[1, "4"]], "col": [[1, "4"]], "div": [[26.0, "4"], [30.0, "0"]], "column_label": [[27.0, "''"], [34.0, "'D'"]], "mod": [[30.0, "4"]], "label": [[36.0, "'D4'"]]}, "Program Information": "Project Name: burnash+gspread", "idx": 462} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def fill_gaps(L, rows=None, cols=None, padding_value=\"\"):\n \"\"\"Fill gaps in a list of lists.\n e.g.,::\n\n >>> L = [\n ... [1, 2, 3],\n ... ]\n >>> fill_gaps(L, 2, 4)\n [\n [1, 2, 3, \"\"],\n [\"\", \"\", \"\", \"\"]\n ]\n\n :param L: List of lists to fill gaps in.\n :param rows: Number of rows to fill.\n :param cols: Number of columns to fill.\n :param padding_value: Default value to fill gaps with.\n\n :type L: list[list[T]]\n :type rows: int\n :type cols: int\n :type padding_value: T\n\n :return: List of lists with gaps filled.\n :rtype: list[list[T]]:\n \"\"\"\n try:\n max_cols = max(len(row) for row in L) if cols is None else cols\n max_rows = len(L) if rows is None else rows\n\n pad_rows = max_rows - len(L)\n\n if pad_rows:\n L = L + ([[]] * pad_rows)\n\n return [rightpad(row, max_cols, padding_value=padding_value) for row in L]\n except ValueError:\n return []\n\nfill_gaps(L=[['', 'Dummy']], rows=None, cols=None, padding_value='')", "Selected Statement": "pad_rows = max_rows - len(L)", "Function Input": {"L": "[['', 'Dummy']]", "rows": "None", "cols": "None", "padding_value": "''"}, "Variable Values Before Statement": {"max_rows": "1"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"L": [[1, "[['', 'Dummy']]"]], "rows": [[1, "None"]], "cols": [[1, "None"]], "padding_value": [[1, "''"]], "max_cols": [[28.0, "2"]], "max_rows": [[29.0, "1"]], "pad_rows": [[31.0, "0"]]}, "Program Information": "Project Name: burnash+gspread", "idx": 463} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def render_pep440_feature(pieces):\n \"\"\"Build up version string, used within \"feature\" branch of repository.\n\n Our goal: MERGE-POINT.post.devN+gHEX.BRANCH-NAME.M[.dirty]\n +) MERGE-POINT = Most recent common ancestor for `develop` and `master`\n *) Does not yet handle branch from `release-*`\n +) N = DISTANCE from the MERGE-POINT of `develop` and `master`\n +) M = DISTANCE from the MERGE-POINT of \"feature\" and `develop`\n\n Exceptions:\n 1: no tags. 0.post.devDISTANCE+gHEX[.dirty]\n \"\"\"\n if pieces[\"closest-tag\"] and pieces[\"develop\"]:\n rendered = pieces[\"closest-tag\"]\n distance_to_develop = pieces[\"distance-to-develop\"]\n distance_to_merge = pieces[\"distance-to-master\"]\n distance_merge_to_tag = (pieces[\"distance\"] - distance_to_merge)\n distance_dev_to_merge = (distance_to_merge - distance_to_develop)\n if (distance_merge_to_tag > 0):\n rendered += \".%d\" % distance_merge_to_tag\n rendered += \".post.dev%d\" % distance_dev_to_merge\n rendered += plus_or_dot(pieces)\n rendered += \"g%s\" % pieces[\"short\"]\n rendered += \".%s\" % pieces[\"branch\"]\n rendered += \".%d\" % distance_to_develop\n else:\n # exception #1\n rendered = \"0.post.dev%d\" % (pieces[\"distance\"] - 1)\n rendered += plus_or_dot(pieces)\n rendered += \"g%s\" % pieces[\"short\"]\n if pieces[\"dirty\"]:\n rendered += \".dirty\"\n return rendered\n\nrender_pep440_feature(pieces={'long': 'e60d005d389cb31b6e99f937e35adbe3fccb7aaf', 'short': 'e60d005', 'error': None, 'dirty': False, 'closest-tag': '0.8', 'distance': 3, 'branch': 'HEAD', 'distance-to-master': 0, 'develop': None, 'distance-to-develop': None, 'date': '2018-05-05T22:17:58-0700', 'authors': ['Padraic Shafer']})", "Selected Statement": "rendered = \"0.post.dev%d\" % (pieces[\"distance\"] - 1)", "Function Input": {"pieces": "{'long': 'e60d005d389cb31b6e99f937e35adbe3fccb7aaf', 'short': 'e60d005', 'error': None, 'dirty': False, 'closest-tag': '0.8', 'distance': 3, 'branch': 'HEAD', 'distance-to-master': 0, 'develop': None, 'distance-to-develop': None, 'date': '2018-05-05T22:17:58-0700', 'authors': ['Padraic Shafer']}"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "'0.post.dev2'", "Variable States During Runtime": {"pieces": [[1, "{'long': 'e60d005d389cb31b6e99f937e35adbe3fccb7aaf', 'short': 'e60d005', 'error': None, 'dirty': False, 'closest-tag': '0.8', 'distance': 3, 'branch': 'HEAD', 'distance-to-master': 0, 'develop': None, 'distance-to-develop': None, 'date': '2018-05-05T22:17:58-0700', 'authors': ['Padraic Shafer']}"]], "rendered": [[28.0, "'0.post.dev2'"], [29.0, "'0.post.dev2+'"], [30.0, "'0.post.dev2+ge60d005'"]]}, "Program Information": "Project Name: berkeleylab+als.milo", "idx": 464} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def compute_loc(idx, shape):\n loc = [0] * len(shape)\n for i in range(len(shape)):\n prod = int(np.prod(shape[i + 1:]))\n loc[i] = idx // prod\n idx = idx % prod\n return tuple(loc)\n\ncompute_loc(idx=0, shape=(2, 4))", "Selected Statement": "loc = [0] * len(shape)", "Function Input": {"idx": "0", "shape": "(2, 4)"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "[0, 0]", "Variable States During Runtime": {"idx": [[1, "0"]], "shape": [[1, "(2, 4)"]], "loc": [[2.0, "[0, 0]"]], "i": [[3.0, "0"], [3.0, "1"]], "prod": [[4.0, "4"], [4.0, "1"]]}, "Program Information": "Project Name: Cjkkkk+Pyflow", "idx": 465} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def __build_func(verb, args, kwargs={}):\n params = ['self']\n params += ['%s' % stringcase.snakecase(k) for k in args]\n params += ['%s=%s' % (stringcase.snakecase(k), v) for k, v in kwargs.items()]\n largs = list(args) + list(kwargs.keys())\n return eval(\n 'lambda %s: self._%s(%s)' % (\n ','.join(params), verb, ','.join(['%s=%s' % (k, stringcase.snakecase(k)) for k in largs])\n )\n )\n\n__build_func(verb='get', args=[], kwargs={})", "Selected Statement": "largs = list(args) + list(kwargs.keys())", "Function Input": {"verb": "'get'", "args": "[]", "kwargs": "{}"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "[]", "Variable States During Runtime": {"verb": [[1, "'get'"]], "args": [[1, "[]"]], "kwargs": [[1, "{}"]], "params": [[2.0, "['self']"]], "largs": [[5.0, "[]"]]}, "Program Information": "Project Name: alisaifee+pyutrack", "idx": 466} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def bits2octets(data, order):\n z1 = bits2int(data, bit_length(order))\n z2 = z1 - order\n\n if z2 < 0:\n z2 = z1\n\n return number_to_string_crop(z2, order)\n\nbits2octets(data=b'\\xa7?\\xcf3\\x96@\\x92\\x92\\x07(\\x1f\\xb8\\xe08\\x88H\\x06\\xe2\\xeb\\x08@\\xf2$V\\x94\\xdb\\xba\\x1d\\\\\\xc8\\x9ee', order=115792089237316195423570985008687907852837564279074904382605163141518161494337)", "Selected Statement": "z2 = z1 - order", "Function Input": {"data": "b'\\xa7?\\xcf3\\x96@\\x92\\x92\\x07(\\x1f\\xb8\\xe08\\x88H\\x06\\xe2\\xeb\\x08@\\xf2$V\\x94\\xdb\\xba\\x1d\\\\\\xc8\\x9ee'", "order": "115792089237316195423570985008687907852837564279074904382605163141518161494337"}, "Variable Values Before Statement": {"z1": "75648987130760998095283026105289635390775519882394219481699348731002280779365", "order": "115792089237316195423570985008687907852837564279074904382605163141518161494337"}, "Value After Statement Execution": "-40143102106555197328287958903398272462062044396680684900905814410515880714972", "Variable States During Runtime": {"data": [[1, "b'\\xa7?\\xcf3\\x96@\\x92\\x92\\x07(\\x1f\\xb8\\xe08\\x88H\\x06\\xe2\\xeb\\x08@\\xf2$V\\x94\\xdb\\xba\\x1d\\\\\\xc8\\x9ee'"]], "order": [[1, "115792089237316195423570985008687907852837564279074904382605163141518161494337"]], "z1": [[2.0, "75648987130760998095283026105289635390775519882394219481699348731002280779365"]], "z2": [[3.0, "-40143102106555197328287958903398272462062044396680684900905814410515880714972"], [6.0, "75648987130760998095283026105289635390775519882394219481699348731002280779365"]]}, "Program Information": "Project Name: ccxt+ccxt", "idx": 467} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def __str__(self):\n self.reduce()\n sign = '-' if self.integer < 0 else ''\n integer_array = list(str(abs(self.integer)).rjust(self.decimals, '0'))\n index = len(integer_array) - self.decimals\n if index == 0:\n item = '0.'\n elif self.decimals < 0:\n item = '0' * (-self.decimals)\n elif self.decimals == 0:\n item = ''\n else:\n item = '.'\n integer_array.insert(index, item)\n return sign + ''.join(integer_array)\n\n__str__(self=Precise(1393.938), self.base=10, self.decimals=3, self.integer=1393938)", "Selected Statement": "index = len(integer_array) - self.decimals", "Function Input": {"self": "Precise(1393.938)", "self.base": "10", "self.decimals": "3", "self.integer": "1393938"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "4", "Variable States During Runtime": {"self": [[1, "Precise(1393.938)"]], "self.base": [[1, "10"]], "self.decimals": [[1, "3"]], "self.integer": [[1, "1393938"]], "sign": [[3.0, "''"]], "integer_array": [[4.0, "['1', '3', '9', '3', '9', '3', '8']"], [14.0, "['1', '3', '9', '3', '.', '9', '3', '8']"]], "index": [[5.0, "4"]], "item": [[13.0, "'.'"]]}, "Program Information": "Project Name: ccxt+ccxt", "idx": 468} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def div(self, other, precision=18):\n distance = precision - self.decimals + other.decimals\n if distance == 0:\n numerator = self.integer\n elif distance < 0:\n exponent = self.base ** -distance\n numerator = self.integer // exponent\n else:\n exponent = self.base ** distance\n numerator = self.integer * exponent\n result, mod = divmod(numerator, other.integer)\n # python floors negative numbers down instead of truncating\n # if mod is zero it will be floored to itself so we do not add one\n result = result + 1 if result < 0 and mod else result\n return Precise(result, precision)\n\ndiv(self=Precise(0.00000002), other=Precise(69696900000), precision=1, self.base=10, self.decimals=8, self.integer=2)", "Selected Statement": "distance = precision - self.decimals + other.decimals", "Function Input": {"self": "Precise(0.00000002)", "other": "Precise(69696900000)", "precision": "1", "self.base": "10", "self.decimals": "8", "self.integer": "2"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "-12", "Variable States During Runtime": {"self": [[1, "Precise(0.00000002)"]], "other": [[1, "Precise(69696900000)"]], "precision": [[1, "1"]], "self.base": [[1, "10"]], "self.decimals": [[1, "8"]], "self.integer": [[1, "2"]], "distance": [[2.0, "-12"]], "exponent": [[6.0, "1000000000000"]], "numerator": [[7.0, "0"]], "result": [[11.0, "0"]], "mod": [[11.0, "0"]]}, "Program Information": "Project Name: ccxt+ccxt", "idx": 469} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _get_channels(self, mode, width_mult):\n if mode == \"small\":\n channels = [16, 16, 24, 48, 576]\n else:\n channels = [16, 24, 40, 112, 960]\n channels = [\n 3,\n ] + [_make_divisible(x * width_mult) for x in channels]\n return tuple(channels)\n\n_get_channels(self=MobileNetV3Encoder(), mode='large', width_mult=0.75, self._backward_hooks=OrderedDict(), self._backward_pre_hooks=OrderedDict(), self._buffers=OrderedDict(), self._depth=3, self._forward_hooks=OrderedDict(), self._forward_hooks_always_called=OrderedDict(), self._forward_hooks_with_kwargs=OrderedDict(), self._forward_pre_hooks=OrderedDict(), self._forward_pre_hooks_with_kwargs=OrderedDict(), self._is_full_backward_hook=None, self._load_state_dict_post_hooks=OrderedDict(), self._load_state_dict_pre_hooks=OrderedDict(), self._mode='large', self._modules=OrderedDict(), self._non_persistent_buffers_set=set(), self._parameters=OrderedDict(), self._state_dict_hooks=OrderedDict(), self._state_dict_pre_hooks=OrderedDict(), self.training=True)", "Selected Statement": "channels = [", "Function Input": {"self": "MobileNetV3Encoder()", "mode": "'large'", "width_mult": "0.75", "self._backward_hooks": "OrderedDict()", "self._backward_pre_hooks": "OrderedDict()", "self._buffers": "OrderedDict()", "self._depth": "3", "self._forward_hooks": "OrderedDict()", "self._forward_hooks_always_called": "OrderedDict()", "self._forward_hooks_with_kwargs": "OrderedDict()", "self._forward_pre_hooks": "OrderedDict()", "self._forward_pre_hooks_with_kwargs": "OrderedDict()", "self._is_full_backward_hook": "None", "self._load_state_dict_post_hooks": "OrderedDict()", "self._load_state_dict_pre_hooks": "OrderedDict()", "self._mode": "'large'", "self._modules": "OrderedDict()", "self._non_persistent_buffers_set": "set()", "self._parameters": "OrderedDict()", "self._state_dict_hooks": "OrderedDict()", "self._state_dict_pre_hooks": "OrderedDict()", "self.training": "True"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "[3, 16, 24, 32, 88, 720]", "Variable States During Runtime": {"self": [[1, "MobileNetV3Encoder()"]], "mode": [[1, "'large'"]], "width_mult": [[1, "0.75"]], "self._backward_hooks": [[1, "OrderedDict()"]], "self._backward_pre_hooks": [[1, "OrderedDict()"]], "self._buffers": [[1, "OrderedDict()"]], "self._depth": [[1, "3"]], "self._forward_hooks": [[1, "OrderedDict()"]], "self._forward_hooks_always_called": [[1, "OrderedDict()"]], "self._forward_hooks_with_kwargs": [[1, "OrderedDict()"]], "self._forward_pre_hooks": [[1, "OrderedDict()"]], "self._forward_pre_hooks_with_kwargs": [[1, "OrderedDict()"]], "self._is_full_backward_hook": [[1, "None"]], "self._load_state_dict_post_hooks": [[1, "OrderedDict()"]], "self._load_state_dict_pre_hooks": [[1, "OrderedDict()"]], "self._mode": [[1, "'large'"]], "self._modules": [[1, "OrderedDict()"]], "self._non_persistent_buffers_set": [[1, "set()"]], "self._parameters": [[1, "OrderedDict()"]], "self._state_dict_hooks": [[1, "OrderedDict()"]], "self._state_dict_pre_hooks": [[1, "OrderedDict()"]], "self.training": [[1, "True"]], "channels": [[5.0, "[16, 24, 40, 112, 960]"], [6.0, "[3, 16, 24, 32, 88, 720]"]]}, "Program Information": "Project Name: qubvel+segmentation_models.pytorch", "idx": 470} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _make_stage(self, planes: int, num_blocks: int, num_se_blocks: int) -> nn.Sequential:\n \"\"\"Build a stage of MobileOne model.\n\n :param planes: Number of output channels.\n :param num_blocks: Number of blocks in this stage.\n :param num_se_blocks: Number of SE blocks in this stage.\n :return: A stage of MobileOne model.\n \"\"\"\n # Get strides for all layers\n strides = [2] + [1] * (num_blocks - 1)\n blocks = []\n for ix, stride in enumerate(strides):\n use_se = False\n if num_se_blocks > num_blocks:\n raise ValueError(\"Number of SE blocks cannot \" \"exceed number of layers.\")\n if ix >= (num_blocks - num_se_blocks):\n use_se = True\n\n # Depthwise conv\n blocks.append(\n MobileOneBlock(\n in_channels=self.in_planes,\n out_channels=self.in_planes,\n kernel_size=3,\n stride=stride,\n padding=1,\n groups=self.in_planes,\n inference_mode=self.inference_mode,\n use_se=use_se,\n num_conv_branches=self.num_conv_branches,\n )\n )\n # Pointwise conv\n blocks.append(\n MobileOneBlock(\n in_channels=self.in_planes,\n out_channels=planes,\n kernel_size=1,\n stride=1,\n padding=0,\n groups=1,\n inference_mode=self.inference_mode,\n use_se=use_se,\n num_conv_branches=self.num_conv_branches,\n )\n )\n self.in_planes = planes\n self.cur_layer_idx += 1\n return nn.Sequential(*blocks)\n\n_make_stage(self=MobileOne( (stage0): MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0): Sequential( (conv): Conv2d(3, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(3, 48, kernel_size=(1, 1), stride=(2, 2), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) )), planes=48, num_blocks=2, num_se_blocks=0, self._backward_hooks=OrderedDict(), self._backward_pre_hooks=OrderedDict(), self._buffers=OrderedDict(), self._depth=3, self._forward_hooks=OrderedDict(), self._forward_hooks_always_called=OrderedDict(), self._forward_hooks_with_kwargs=OrderedDict(), self._forward_pre_hooks=OrderedDict(), self._forward_pre_hooks_with_kwargs=OrderedDict(), self._in_channels=3, self._is_full_backward_hook=None, self._load_state_dict_post_hooks=OrderedDict(), self._load_state_dict_pre_hooks=OrderedDict(), self._modules=OrderedDict([('stage0', MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0): Sequential( (conv): Conv2d(3, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(3, 48, kernel_size=(1, 1), stride=(2, 2), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) )))]), self._non_persistent_buffers_set=set(), self._out_channels=(3, 48, 48, 128, 256, 1024), self._parameters=OrderedDict(), self._state_dict_hooks=OrderedDict(), self._state_dict_pre_hooks=OrderedDict(), self.cur_layer_idx=1, self.in_planes=48, self.inference_mode=False, self.num_conv_branches=4, self.training=True, self.use_se=False)", "Selected Statement": "strides = [2] + [1] * (num_blocks - 1)", "Function Input": {"self": "MobileOne( (stage0): MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0): Sequential( (conv): Conv2d(3, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(3, 48, kernel_size=(1, 1), stride=(2, 2), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ))", "planes": "48", "num_blocks": "2", "num_se_blocks": "0", "self._backward_hooks": "OrderedDict()", "self._backward_pre_hooks": "OrderedDict()", "self._buffers": "OrderedDict()", "self._depth": "3", "self._forward_hooks": "OrderedDict()", "self._forward_hooks_always_called": "OrderedDict()", "self._forward_hooks_with_kwargs": "OrderedDict()", "self._forward_pre_hooks": "OrderedDict()", "self._forward_pre_hooks_with_kwargs": "OrderedDict()", "self._in_channels": "3", "self._is_full_backward_hook": "None", "self._load_state_dict_post_hooks": "OrderedDict()", "self._load_state_dict_pre_hooks": "OrderedDict()", "self._modules": "OrderedDict([('stage0', MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0): Sequential( (conv): Conv2d(3, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(3, 48, kernel_size=(1, 1), stride=(2, 2), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) )))])", "self._non_persistent_buffers_set": "set()", "self._out_channels": "(3, 48, 48, 128, 256, 1024)", "self._parameters": "OrderedDict()", "self._state_dict_hooks": "OrderedDict()", "self._state_dict_pre_hooks": "OrderedDict()", "self.cur_layer_idx": "1", "self.in_planes": "48", "self.inference_mode": "False", "self.num_conv_branches": "4", "self.training": "True", "self.use_se": "False"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "[2, 1]", "Variable States During Runtime": {"self": [[1, "MobileOne( (stage0): MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0): Sequential( (conv): Conv2d(3, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(3, 48, kernel_size=(1, 1), stride=(2, 2), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ))"]], "planes": [[1, "48"]], "num_blocks": [[1, "2"]], "num_se_blocks": [[1, "0"]], "self._backward_hooks": [[1, "OrderedDict()"]], "self._backward_pre_hooks": [[1, "OrderedDict()"]], "self._buffers": [[1, "OrderedDict()"]], "self._depth": [[1, "3"]], "self._forward_hooks": [[1, "OrderedDict()"]], "self._forward_hooks_always_called": [[1, "OrderedDict()"]], "self._forward_hooks_with_kwargs": [[1, "OrderedDict()"]], "self._forward_pre_hooks": [[1, "OrderedDict()"]], "self._forward_pre_hooks_with_kwargs": [[1, "OrderedDict()"]], "self._in_channels": [[1, "3"]], "self._is_full_backward_hook": [[1, "None"]], "self._load_state_dict_post_hooks": [[1, "OrderedDict()"]], "self._load_state_dict_pre_hooks": [[1, "OrderedDict()"]], "self._modules": [[1, "OrderedDict([('stage0', MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0): Sequential( (conv): Conv2d(3, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(3, 48, kernel_size=(1, 1), stride=(2, 2), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) )))])"]], "self._non_persistent_buffers_set": [[1, "set()"]], "self._out_channels": [[1, "(3, 48, 48, 128, 256, 1024)"]], "self._parameters": [[1, "OrderedDict()"]], "self._state_dict_hooks": [[1, "OrderedDict()"]], "self._state_dict_pre_hooks": [[1, "OrderedDict()"]], "self.cur_layer_idx": [[1, "1"], [48.0, "2"], [48.0, "3"]], "self.in_planes": [[1, "48"]], "self.inference_mode": [[1, "False"]], "self.num_conv_branches": [[1, "4"]], "self.training": [[1, "True"]], "self.use_se": [[1, "False"]], "strides": [[10.0, "[2, 1]"]], "blocks": [[11.0, "[]"], [20.0, "[MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(2, 2), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ))]"], [34.0, "[MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(2, 2), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) )), MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_skip): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ))]"], [20.0, "[MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(2, 2), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) )), MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_skip): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) )), MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_skip): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(1, 1), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ))]"], [34.0, "[MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(2, 2), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) )), MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_skip): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) )), MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_skip): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ) (rbr_scale): Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(1, 1), groups=48, bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) )), MobileOneBlock( (se): Identity() (activation): ReLU() (rbr_skip): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) (rbr_conv): ModuleList( (0-3): 4 x Sequential( (conv): Conv2d(48, 48, kernel_size=(1, 1), stride=(1, 1), bias=False) (bn): BatchNorm2d(48, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) ) ))]"]], "ix": [[12.0, "0"], [12.0, "1"]], "stride": [[12.0, "2"], [12.0, "1"]], "use_se": [[13.0, "False"]]}, "Program Information": "Project Name: qubvel+segmentation_models.pytorch", "idx": 471} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _to_str(size, suffixes, base):\n # type: (SupportsInt, Iterable[Text], int) -> Text\n try:\n size = int(size)\n except ValueError:\n raise TypeError(\"filesize requires a numeric value, not {!r}\".format(size))\n if size == 1:\n return \"1 byte\"\n elif size < base:\n return \"{:,} bytes\".format(size)\n\n for i, suffix in enumerate(suffixes, 2):\n unit = base ** i\n if size < unit:\n break\n return \"{:,.1f} {}\".format((base * size / unit), suffix)\n\n_to_str(size=1024, suffixes=('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'), base=1024)", "Selected Statement": "unit = base ** i", "Function Input": {"size": "1024", "suffixes": "('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB')", "base": "1024"}, "Variable Values Before Statement": {"base": "1024", "i": "2"}, "Value After Statement Execution": "1048576", "Variable States During Runtime": {"size": [[1, "1024"]], "suffixes": [[1, "('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB')"]], "base": [[1, "1024"]], "i": [[12.0, "2"]], "suffix": [[12.0, "'KiB'"]], "unit": [[13.0, "1048576"]]}, "Program Information": "Project Name: PyFilesystem+pyfilesystem2", "idx": 472} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def _insert(self, key, value):\n flat_key = self._serialize_key(key)\n i = self._index.get(flat_key, -1)\n if i >= 0:\n self._items[i] = (key, value)\n else:\n self._items.append((key, value))\n self._index[flat_key] = len(self._items) - 1\n\n_insert(self=OrderedMapSerializedKey([]), key='\u307fbob', value=199)", "Selected Statement": "self._index[flat_key] = len(self._items) - 1", "Function Input": {"self": "OrderedMapSerializedKey([])", "key": "'\u307fbob'", "value": "199"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "199", "Variable States During Runtime": {"self": [[1, "OrderedMapSerializedKey([])"], [7.0, "OrderedMapSerializedKey([('\u307fbob', 199)])"]], "key": [[1, "'\u307fbob'"]], "value": [[1, "199"]], "flat_key": [[2.0, "b'\\xe3\\x81\\xbfbob'"]], "i": [[3.0, "-1"]], "self['\u307fbob']": [[8.0, "199"]]}, "Program Information": "Project Name: YugaByte+cassandra-python-driver", "idx": 473} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def quat_from_axis_angle(axis, angle):\n axis_ = np.array(axis, dtype=np.float64)\n half_angle = angle * 0.5\n ret = np.empty(4)\n ret[0] = math.cos(half_angle)\n ret[1:4] = math.sin(half_angle) * axis_\n return ret\n\nquat_from_axis_angle(axis=[1.0, 0.0, 0.0], angle=6.1086523819801535)", "Selected Statement": "half_angle = angle * 0.5", "Function Input": {"axis": "[1.0, 0.0, 0.0]", "angle": "6.1086523819801535"}, "Variable Values Before Statement": {"angle": "6.1086523819801535"}, "Value After Statement Execution": "3.0543261909900767", "Variable States During Runtime": {"axis": [[1, "[1.0, 0.0, 0.0]"]], "angle": [[1, "6.1086523819801535"]], "axis_": [[2.0, "array([1., 0., 0.])"]], "half_angle": [[3.0, "3.0543261909900767"]], "ret": [[4.0, "array([4.65265954e-310, 0.00000000e+000, 1.58101007e-322, 6.90572610e-310])"], [5.0, "array([-9.96194698e-001, 0.00000000e+000, 1.58101007e-322, 6.90572610e-310])"], [6.0, "array([-0.9961947 , 0.08715574, 0. , 0. ])"]]}, "Program Information": "Project Name: Hasenpfote+fpq", "idx": 474} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def base64url_decode(input: Union[bytes, str]) -> bytes:\n input_bytes = force_bytes(input)\n\n rem = len(input_bytes) % 4\n\n if rem > 0:\n input_bytes += b\"=\" * (4 - rem)\n\n return base64.urlsafe_b64decode(input_bytes)\n\nbase64url_decode(input='hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg')", "Selected Statement": "rem = len(input_bytes) % 4", "Function Input": {"input": "'hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg'"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "3", "Variable States During Runtime": {"input": [[1, "'hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg'"]], "input_bytes": [[2.0, "b'hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg'"], [7.0, "b'hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg='"]], "rem": [[4.0, "3"]]}, "Program Information": "Project Name: jpadilla+pyjwt", "idx": 475} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def generate_samples_loguniform(low, high, step, base, size=1):\n \"\"\"Generate sample for (discrete)uniform density.\"\"\"\n\n samples = base ** (random.uniform(low=logb(low, base), high=logb(high, base), size=size))\n if step:\n samples = step * np.floor(samples / step)\n return samples\n\ngenerate_samples_loguniform(low=5.8884365535558836e-08, high=2.6977394324449206e-07, step=None, base=10, size=100000)", "Selected Statement": "samples = base ** (random.uniform(low=logb(low, base), high=logb(high, base), size=size))", "Function Input": {"low": "5.8884365535558836e-08", "high": "2.6977394324449206e-07", "step": "None", "base": "10", "size": "100000"}, "Variable Values Before Statement": {"base": "10"}, "Value After Statement Execution": "array([8.36400364e-08, 2.64090744e-07, 2.64351674e-07, ..., 6.02217873e-08, 1.13953435e-07, 8.52185827e-08])", "Variable States During Runtime": {"low": [[1, "5.8884365535558836e-08"]], "high": [[1, "2.6977394324449206e-07"]], "step": [[1, "None"]], "base": [[1, "10"]], "size": [[1, "100000"]], "samples": [[4.0, "array([8.36400364e-08, 2.64090744e-07, 2.64351674e-07, ..., 6.02217873e-08, 1.13953435e-07, 8.52185827e-08])"]]}, "Program Information": "Project Name: Dreem-Organization+benderopt", "idx": 476} +{"Programming Language": "Python", "Statement Type": "Arithmetic Assignment", "Source Code": "def parzen_estimator_build_posterior_parameter(parameter, observations):\n \"\"\"TPE algorith transform a prior parameter into a posterior parameters using observations\n to build posterior.\n \"\"\"\n posterior_parameter = None\n parameter_values = [observation.sample[parameter.name] for observation in observations]\n search_space = parameter.search_space\n if parameter.category == \"categorical\":\n \"\"\" TODO Compare mean (current implem) vs hyperopt approach.\"\"\"\n prior_probabilities = np.array(search_space[\"probabilities\"])\n posterior_probabilities = prior_probabilities\n if len(parameter_values) != 0:\n observed_probabilities = np.array([parameter_values.count(value)\n for value in search_space[\"values\"]])\n observed_probabilities = observed_probabilities / np.sum(observed_probabilities)\n posterior_probabilities += observed_probabilities\n posterior_probabilities /= sum(posterior_probabilities)\n\n # Build param\n posterior_parameter = Parameter.from_dict(\n {\n \"name\": parameter.name,\n \"category\": \"categorical\",\n \"search_space\": {\n \"values\": search_space[\"values\"],\n \"probabilities\": list(posterior_probabilities),\n }\n }\n )\n\n if parameter.category in (\"uniform\", \"normal\", \"loguniform\", \"lognormal\"):\n if parameter.category in (\"uniform\", \"loguniform\"):\n prior_mu = 0.5 * (search_space[\"high\"] + search_space[\"low\"])\n prior_sigma = (search_space[\"high\"] - search_space[\"low\"])\n elif parameter.category in (\"normal\", \"lognormal\"):\n prior_mu = search_space[\"mu\"]\n prior_sigma = search_space[\"sigma\"]\n\n # Mus\n mus = np.sort(parameter_values + [prior_mu])\n\n # Sigmas\n # Trick to get for each mu the greater distance from left and right neighbor\n # when low and high are not defined we use inf to get the only available distance\n # (right neighbor for sigmas[0] and left for sigmas[-1])\n tmp = np.concatenate(\n (\n [search_space.get(\"low\", np.inf)],\n mus,\n [search_space.get(\"high\", -np.inf)],\n )\n )\n sigmas = np.maximum(tmp[1:-1] - tmp[0:-2], tmp[2:] - tmp[1:-1])\n\n # Use formulas from hyperopt to clip sigmas\n sigma_max_value = prior_sigma\n sigma_min_value = prior_sigma / min(100.0, (1.0 + len(mus)))\n sigmas = np.clip(sigmas, sigma_min_value, sigma_max_value)\n\n # Fix prior sigma with correct value\n sigmas[np.where(mus == prior_mu)[0]] = prior_sigma\n\n posterior_parameter = Parameter.from_dict(\n {\n \"name\": parameter.name,\n \"category\": \"mixture\",\n \"search_space\": {\n \"parameters\": [\n {\n \"category\": \"normal\",\n \"search_space\": {\n \"mu\": mu.tolist(),\n \"sigma\": sigma.tolist(),\n \"low\": search_space[\"low\"],\n \"high\": search_space[\"high\"],\n \"step\": search_space.get(\"step\", None)\n }\n } if parameter.category[:3] != \"log\" else\n {\n \"category\": \"lognormal\",\n \"search_space\": {\n \"mu\": mu.tolist(),\n \"sigma\": sigma.tolist(),\n \"low\": search_space[\"low\"],\n \"high\": search_space[\"high\"],\n \"step\": search_space[\"step\"],\n \"base\": search_space[\"base\"],\n }\n } for mu, sigma in zip(mus, sigmas)\n ],\n \"weights\": [1 / len(mus) for _ in range(len(mus))]\n }\n }\n )\n\n return posterior_parameter\n\nparzen_estimator_build_posterior_parameter(parameter=x, observations=[])", "Selected Statement": "prior_mu = 0.5 * (search_space[\"high\"] + search_space[\"low\"])", "Function Input": {"parameter": "x", "observations": "[]"}, "Variable Values Before Statement": {}, "Value After Statement Execution": "1.5707963267948966", "Variable States During Runtime": {"parameter": [[1, "x"]], "observations": [[1, "[]"]], "posterior_parameter": [[5.0, "None"], [63.0, "x"]], "parameter_values": [[6.0, "[]"]], "search_space": [[7.0, "{'low': 0, 'high': 3.141592653589793, 'step': None}"]], "prior_mu": [[33.0, "1.5707963267948966"]], "prior_sigma": [[34.0, "3.141592653589793"]], "mus": [[40.0, "array([1.57079633])"]], "tmp": [[46.0, "array([0. , 1.57079633, 3.14159265])"]], "sigmas": [[53.0, "array([1.57079633])"], [61.0, "array([3.14159265])"]], "sigma_max_value": [[56.0, "3.141592653589793"]], "sigma_min_value": [[57.0, "1.5707963267948966"]]}, "Program Information": "Project Name: Dreem-Organization+benderopt", "idx": 477} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def parse_route_template(template):\n rbuilder = [\"^\"]\n fbuilder = []\n position = 0\n schema = {}\n\n for match in template_var_re_finditer(template):\n param_name = match.group(\"name\")\n param_type = match.group(\"type\") or \"id\"\n # TODO: Handle KeyError, maybe we want to use a custom error here.\n param_formatchar, param_re, param_schema = _schema_map[param_type]\n schema[param_name] = param_schema\n\n rbuilder.append(re.escape(template[position:match.start()]))\n rbuilder.append(param_re.format(param_name))\n\n fbuilder.append(template[position:match.start()])\n fbuilder.append(\"{\")\n fbuilder.append(param_name)\n fbuilder.append(\":\")\n fbuilder.append(param_formatchar)\n fbuilder.append(\"}\")\n\n position = match.end()\n\n rbuilder.append(re.escape(template[position:]))\n rbuilder.append(\"$\")\n fbuilder.append(template[position:])\n\n return (valid.Schema(schema),\n re.compile(\"\".join(rbuilder)),\n u\"\".join(fbuilder).format)\n\nparse_route_template(template='get/{variable}')", "Selected Statement": "position = 0", "Function Input": {"template": "'get/{variable}'"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"template": [[1, "'get/{variable}'"]], "rbuilder": [[2.0, "['^']"], [14.0, "['^', 'get/']"], [15.0, "['^', 'get/', '(?P[_a-zA-Z][_\\\\w]*)']"], [26.0, "['^', 'get/', '(?P[_a-zA-Z][_\\\\w]*)', '']"], [27.0, "['^', 'get/', '(?P[_a-zA-Z][_\\\\w]*)', '', '$']"]], "fbuilder": [[3.0, "[]"], [17.0, "['get/']"], [18.0, "['get/', '{']"], [19.0, "['get/', '{', 'variable']"], [20.0, "['get/', '{', 'variable', ':']"], [21.0, "['get/', '{', 'variable', ':', 's']"], [22.0, "['get/', '{', 'variable', ':', 's', '}']"], [28.0, "['get/', '{', 'variable', ':', 's', '}', '']"]], "position": [[4.0, "0"], [24.0, "14"]], "schema": [[5.0, "{}"], [12.0, "{'variable': And(, )}"]], "match": [[7.0, ""]], "param_name": [[8.0, "'variable'"]], "param_type": [[9.0, "'id'"]], "param_formatchar": [[11.0, "'s'"]], "param_re": [[11.0, "'(?P<{}>[_a-zA-Z][_\\\\w]*)'"]], "param_schema": [[11.0, "And(, )"]]}, "Program Information": "Project Name: aperezdc+omni", "idx": 478} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def kilometers(meters=0, miles=0, feet=0, nautical=0):\n \"\"\"\n Convert distance to kilometers.\n \"\"\"\n ret = 0.\n if meters:\n ret += meters / 1000.\n if feet:\n ret += feet / ft(1.)\n if nautical:\n ret += nautical / nm(1.)\n ret += miles * 1.609344\n return ret\n\nkilometers(meters=0, miles=0, feet=0, nautical=0)", "Selected Statement": "ret = 0.", "Function Input": {"meters": "0", "miles": "0", "feet": "0", "nautical": "0"}, "Variable Values Before Statement": {"Constant": "0."}, "Value After Statement Execution": "0.", "Variable States During Runtime": {"meters": [[1, "0"]], "miles": [[1, "0"]], "feet": [[1, "0"]], "nautical": [[1, "0"]], "ret": [[5.0, "0.0"]]}, "Program Information": "Project Name: geopy+geopy", "idx": 479} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def feet(kilometers=0, meters=0, miles=0, nautical=0):\n \"\"\"\n Convert distance to feet.\n \"\"\"\n ret = 0.\n if nautical:\n kilometers += nautical / nm(1.)\n if meters:\n kilometers += meters / 1000.\n if kilometers:\n miles += mi(kilometers=kilometers)\n ret += miles * 5280\n return ret\n\nfeet(kilometers=1.0, meters=0, miles=0, nautical=0)", "Selected Statement": "ret = 0.", "Function Input": {"kilometers": "1.0", "meters": "0", "miles": "0", "nautical": "0"}, "Variable Values Before Statement": {"Constant": "0."}, "Value After Statement Execution": "0.", "Variable States During Runtime": {"kilometers": [[1, "1.0"]], "meters": [[1, "0"]], "miles": [[1, "0"], [11.0, "0.621371192237334"]], "nautical": [[1, "0"]], "ret": [[5.0, "0.0"], [12.0, "3280.839895013123"]]}, "Program Information": "Project Name: geopy+geopy", "idx": 480} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def nautical(kilometers=0, meters=0, miles=0, feet=0):\n \"\"\"\n Convert distance to nautical miles.\n \"\"\"\n ret = 0.\n if feet:\n kilometers += feet / ft(1.)\n if miles:\n kilometers += km(miles=miles)\n if meters:\n kilometers += meters / 1000.\n ret += kilometers / 1.852\n return ret\n\nnautical(kilometers=1.0, meters=0, miles=0, feet=0)", "Selected Statement": "ret = 0.", "Function Input": {"kilometers": "1.0", "meters": "0", "miles": "0", "feet": "0"}, "Variable Values Before Statement": {"Constant": "0."}, "Value After Statement Execution": "0.", "Variable States During Runtime": {"kilometers": [[1, "1.0"]], "meters": [[1, "0"]], "miles": [[1, "0"]], "feet": [[1, "0"]], "ret": [[5.0, "0.0"], [12.0, "0.5399568034557235"]]}, "Program Information": "Project Name: geopy+geopy", "idx": 481} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def format_decimal(self, altitude=None):\n \"\"\"\n Format decimal degrees with altitude::\n\n >>> p = Point(41.5, -81.0, 12.3)\n >>> p.format_decimal()\n '41.5, -81.0, 12.3km'\n >>> p = Point(41.5, 0, 0)\n >>> p.format_decimal()\n '41.5, 0.0'\n\n :param bool altitude: Whether to include ``altitude`` value.\n By default it is automatically included if it is non-zero.\n \"\"\"\n coordinates = [str(self.latitude), str(self.longitude)]\n\n if altitude is None:\n altitude = bool(self.altitude)\n if altitude:\n if not isinstance(altitude, str):\n altitude = 'km'\n coordinates.append(self.format_altitude(altitude))\n\n return \", \".join(coordinates)\n\nformat_decimal(self=Point(41.5, 81.0, 2.5), altitude=None, self.altitude=2.5, self.latitude=41.5, self.longitude=81.0)", "Selected Statement": "altitude = 'km'", "Function Input": {"self": "Point(41.5, 81.0, 2.5)", "altitude": "None", "self.altitude": "2.5", "self.latitude": "41.5", "self.longitude": "81.0"}, "Variable Values Before Statement": {"Constant": "'km'"}, "Value After Statement Execution": "'km'", "Variable States During Runtime": {"self": [[1, "Point(41.5, 81.0, 2.5)"]], "altitude": [[1, "None"], [18.0, "True"], [21.0, "'km'"]], "self.altitude": [[1, "2.5"]], "self.latitude": [[1, "41.5"]], "self.longitude": [[1, "81.0"]], "coordinates": [[15.0, "['41.5', '81.0']"], [22.0, "['41.5', '81.0', '2.5km']"]]}, "Program Information": "Project Name: geopy+geopy", "idx": 482} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def test_speech_extraction(sample_rate, start_seconds):\n parser = GenericSubtitleParser(start_seconds=start_seconds)\n extractor = SubtitleSpeechTransformer(\n sample_rate=sample_rate, start_seconds=start_seconds\n )\n pipe = make_pipeline(parser, extractor)\n bitstring = pipe.fit_transform(BytesIO(fake_srt)).astype(bool)\n bitstring_shifted_left = np.append(bitstring[1:], [False])\n bitstring_shifted_right = np.append([False], bitstring[:-1])\n bitstring_cumsum = np.cumsum(bitstring)\n consec_ones_end_pos = np.nonzero(\n bitstring_cumsum\n * (bitstring ^ bitstring_shifted_left)\n * (bitstring_cumsum != np.cumsum(bitstring_shifted_right))\n )[0]\n prev = 0\n for pos, sub in zip(consec_ones_end_pos, parser.subs_):\n start = int(round(sub.start.total_seconds() * sample_rate))\n duration = sub.end.total_seconds() - sub.start.total_seconds()\n stop = start + int(round(duration * sample_rate))\n assert bitstring_cumsum[pos] - prev == stop - start\n prev = bitstring_cumsum[pos]\n\ntest_speech_extraction(sample_rate=10, start_seconds=0)", "Selected Statement": "prev = 0", "Function Input": {"sample_rate": "10", "start_seconds": "0"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"sample_rate": [[1, "10"]], "start_seconds": [[1, "0"]], "parser": [[2.0, "{subs_=None, sub_format='srt', encoding='infer', caching=False, fit_fname=None, detected_encoding_=None, max_subtitle_seconds=None, start_seconds=0, _skip_ssa_info=False, _strict=False}"], [7.0, "{subs_=, sub_format='srt', encoding='infer', caching=False, fit_fname=<_io.BytesIO object at 0x7fb014da3310>, detected_encoding_='ASCII', max_subtitle_seconds=None, start_seconds=0, _skip_ssa_info=False, _strict=False}"]], "extractor": [[3.0, "{sample_rate=10, start_seconds=0, framerate_ratio=1.0, subtitle_speech_results_=None, max_time_=None}"], [7.0, "{sample_rate=10, start_seconds=0, framerate_ratio=1.0, subtitle_speech_results_=array([0., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 0., 0., 0., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 0., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 0.]), max_time_=6.062, start_frame_=2, end_frame_=60}"]], "pipe": [[6.0, "{steps=[('genericsubtitleparser', ), ('subtitlespeechtransformer', )], verbose=False}"]], "bitstring": [[7.0, "array([False, False, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, False, False, False, False, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, False, False, True, True, True, True, True, True, True, True, True, True, True, True, True, True, False])"]], "bitstring_shifted_left": [[8.0, "array([False, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, False, False, False, False, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, False, False, True, True, True, True, True, True, True, True, True, True, True, True, True, True, False, False])"]], "bitstring_shifted_right": [[9.0, "array([False, False, False, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, False, False, False, False, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, False, False, True, True, True, True, True, True, True, True, True, True, True, True, True, True])"]], "bitstring_cumsum": [[10.0, "array([ 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 22, 22, 22, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 39, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 53])"]], "consec_ones_end_pos": [[11.0, "array([23, 44, 60])"]], "prev": [[16.0, "0"], [22.0, "22"], [22.0, "39"], [22.0, "53"]], "pos": [[17.0, "23"], [17.0, "44"], [17.0, "60"]], "sub": [[17.0, "{start=datetime.timedelta(microseconds=178000), end=datetime.timedelta(seconds=2, microseconds=416000), inner=Subtitle(index=1, start=datetime.timedelta(microseconds=178000), end=datetime.timedelta(seconds=2, microseconds=416000), content='Previously on \"Your favorite TV show...\"', proprietary='')}"], [17.0, "{start=datetime.timedelta(seconds=2, microseconds=828000), end=datetime.timedelta(seconds=4, microseconds=549000), inner=Subtitle(index=2, start=datetime.timedelta(seconds=2, microseconds=828000), end=datetime.timedelta(seconds=4, microseconds=549000), content='Oh hi, Mark.', proprietary='')}"], [17.0, "{start=datetime.timedelta(seconds=4, microseconds=653000), end=datetime.timedelta(seconds=6, microseconds=62000), inner=Subtitle(index=3, start=datetime.timedelta(seconds=4, microseconds=653000), end=datetime.timedelta(seconds=6, microseconds=62000), content='You are tearing me apart, Lisa!', proprietary='')}"]], "start": [[18.0, "2"], [18.0, "28"], [18.0, "47"]], "duration": [[19.0, "2.238"], [19.0, "1.7210000000000005"], [19.0, "1.4090000000000007"]], "stop": [[20.0, "24"], [20.0, "45"], [20.0, "61"]], "@py_assert0": [[21.0, "None"]], "@py_assert3": [[21.0, "None"]], "@py_assert7": [[21.0, "None"]], "@py_assert4": [[21.0, "None"]]}, "Program Information": "Project Name: smacke+ffsubsync", "idx": 483} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def add_active_line_prints(code):\n \"\"\"\n Add print statements indicating line numbers to a python string.\n \"\"\"\n # Replace newlines and comments with pass statements, so the line numbers are accurate (ast will remove them otherwise)\n code_lines = code.split(\"\\n\")\n in_multiline_string = False\n for i in range(len(code_lines)):\n line = code_lines[i]\n if '\"\"\"' in line or \"'''\" in line:\n in_multiline_string = not in_multiline_string\n if not in_multiline_string and (line.strip().startswith(\"#\") or line == \"\"):\n whitespace = len(line) - len(line.lstrip(\" \"))\n code_lines[i] = \" \" * whitespace + \"pass\"\n processed_code = \"\\n\".join(code_lines)\n try:\n tree = ast.parse(processed_code)\n except:\n # If you can't parse the processed version, try the unprocessed version before giving up\n tree = ast.parse(code)\n transformer = AddLinePrints()\n new_tree = transformer.visit(tree)\n return ast.unparse(new_tree)\n\nadd_active_line_prints(code=\"import matplotlib\\n matplotlib.use('Agg')\")", "Selected Statement": "in_multiline_string = False", "Function Input": {"code": "\"import matplotlib\\n matplotlib.use('Agg')\""}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"code": [[1, "\"import matplotlib\\n matplotlib.use('Agg')\""]], "code_lines": [[6.0, "['import matplotlib', \" matplotlib.use('Agg')\"]"]], "in_multiline_string": [[7.0, "False"]], "i": [[8.0, "0"], [8.0, "1"]], "line": [[9.0, "'import matplotlib'"], [9.0, "\" matplotlib.use('Agg')\""]], "processed_code": [[15.0, "\"import matplotlib\\n matplotlib.use('Agg')\""]]}, "Program Information": "Project Name: KillianLucas+open-interpreter", "idx": 484} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def fixed_litellm_completions(**params):\n \"\"\"\n Just uses a dummy API key, since we use litellm without an API key sometimes.\n Hopefully they will fix this!\n \"\"\"\n\n # Run completion\n first_error = None\n try:\n yield from litellm.completion(**params)\n except Exception as e:\n # Store the first error\n first_error = e\n # LiteLLM can fail if there's no API key,\n # even though some models (like local ones) don't require it.\n\n if \"api key\" in str(first_error).lower() and \"api_key\" not in params:\n print(\n \"LiteLLM requires an API key. Please set a dummy API key to prevent this message. (e.g `interpreter --api_key x` or `interpreter.llm.api_key = 'x'`)\"\n )\n\n # So, let's try one more time with a dummy API key:\n params[\"api_key\"] = \"x\"\n\n try:\n yield from litellm.completion(**params)\n except:\n # If the second attempt also fails, raise the first error\n raise first_error\n\nfixed_litellm_completions(params={'model': 'gpt-3.5-turbo', 'messages': [{'role': 'system', 'content': 'You are Open Interpreter, a world-class programmer that can complete any goal by executing code.\\nFirst, write a plan. **Always recap the plan between each code block** (you have extreme short-term memory loss, so you need to recap the plan between each message block to retain it).\\nWhen you execute code, it will be executed **on the user\\'s machine**. The user has given you **full and complete permission** to execute any code necessary to complete the task. Execute the code.\\nIf you want to send data between programming languages, save the data to a txt or json.\\nYou can access the internet. Run **any code** to achieve the goal, and if at first you don\\'t succeed, try again and again.\\nYou can install new packages.\\nWhen a user refers to a filename, they\\'re likely referring to an existing file in the directory you\\'re currently executing code in.\\nWrite messages to the user in Markdown.\\nIn general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, for *stateful* languages (like python, javascript, shell, but NOT for html which starts from 0 every time) **it\\'s critical not to try to do everything in one code block.** You should try something, print information about it, then continue from there in tiny, informed steps. You will never get it on the first try, and attempting it in one go will often lead to errors you cant see.\\nYou are capable of **any** task.\\n\\n[User Info]\\n\\nName: \\'jinjun\\'\\nCWD: \\'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/KillianLucas+open-interpreter/KillianLucas+open-interpreter\\'\\nSHELL: \\'/bin/bash\\'\\nOS: \\'Linux\\'\"\\n\\nWhen you execute code with `react`, your react code will be run in a script tag after being inserted into the HTML template, following the installation of React, ReactDOM, and Babel for JSX parsing. **We will handle this! Don\\'t make an HTML file to run React, just execute `react`.**\\nUse ONLY the function you have been provided with \u2014 \\'execute(language, code)\\'.'}, {'role': 'user', 'content': \"What's 38023*40334? Use Python\\nNo talk or plan, just immediatly code, then tell me the answer.\"}], 'stream': True, 'functions': [{'name': 'execute', 'description': \"Executes code on the user's machine **in the users local environment** and returns the output\", 'parameters': {'type': 'object', 'properties': {'language': {'type': 'string', 'description': 'The programming language (required parameter to the `execute` function)', 'enum': ['python', 'shell', 'javascript', 'html', 'applescript', 'r', 'powershell', 'react']}, 'code': {'type': 'string', 'description': 'The code to execute (required)'}}, 'required': ['language', 'code']}}]})", "Selected Statement": "params[\"api_key\"] = \"x\"", "Function Input": {"params": "{'model': 'gpt-3.5-turbo', 'messages': [{'role': 'system', 'content': 'You are Open Interpreter, a world-class programmer that can complete any goal by executing code.\\nFirst, write a plan. **Always recap the plan between each code block** (you have extreme short-term memory loss, so you need to recap the plan between each message block to retain it).\\nWhen you execute code, it will be executed **on the user\\'s machine**. The user has given you **full and complete permission** to execute any code necessary to complete the task. Execute the code.\\nIf you want to send data between programming languages, save the data to a txt or json.\\nYou can access the internet. Run **any code** to achieve the goal, and if at first you don\\'t succeed, try again and again.\\nYou can install new packages.\\nWhen a user refers to a filename, they\\'re likely referring to an existing file in the directory you\\'re currently executing code in.\\nWrite messages to the user in Markdown.\\nIn general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, for *stateful* languages (like python, javascript, shell, but NOT for html which starts from 0 every time) **it\\'s critical not to try to do everything in one code block.** You should try something, print information about it, then continue from there in tiny, informed steps. You will never get it on the first try, and attempting it in one go will often lead to errors you cant see.\\nYou are capable of **any** task.\\n\\n[User Info]\\n\\nName: \\'jinjun\\'\\nCWD: \\'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/KillianLucas+open-interpreter/KillianLucas+open-interpreter\\'\\nSHELL: \\'/bin/bash\\'\\nOS: \\'Linux\\'\"\\n\\nWhen you execute code with `react`, your react code will be run in a script tag after being inserted into the HTML template, following the installation of React, ReactDOM, and Babel for JSX parsing. **We will handle this! Don\\'t make an HTML file to run React, just execute `react`.**\\nUse ONLY the function you have been provided with \u2014 \\'execute(language, code)\\'.'}, {'role': 'user', 'content': \"What's 38023*40334? Use Python\\nNo talk or plan, just immediatly code, then tell me the answer.\"}], 'stream': True, 'functions': [{'name': 'execute', 'description': \"Executes code on the user's machine **in the users local environment** and returns the output\", 'parameters': {'type': 'object', 'properties': {'language': {'type': 'string', 'description': 'The programming language (required parameter to the `execute` function)', 'enum': ['python', 'shell', 'javascript', 'html', 'applescript', 'r', 'powershell', 'react']}, 'code': {'type': 'string', 'description': 'The code to execute (required)'}}, 'required': ['language', 'code']}}]}"}, "Variable Values Before Statement": {"Constant": "\"x\""}, "Value After Statement Execution": "\"x\"", "Variable States During Runtime": {"params": [[1, "{'model': 'gpt-3.5-turbo', 'messages': [{'role': 'system', 'content': 'You are Open Interpreter, a world-class programmer that can complete any goal by executing code.\\nFirst, write a plan. **Always recap the plan between each code block** (you have extreme short-term memory loss, so you need to recap the plan between each message block to retain it).\\nWhen you execute code, it will be executed **on the user\\'s machine**. The user has given you **full and complete permission** to execute any code necessary to complete the task. Execute the code.\\nIf you want to send data between programming languages, save the data to a txt or json.\\nYou can access the internet. Run **any code** to achieve the goal, and if at first you don\\'t succeed, try again and again.\\nYou can install new packages.\\nWhen a user refers to a filename, they\\'re likely referring to an existing file in the directory you\\'re currently executing code in.\\nWrite messages to the user in Markdown.\\nIn general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, for *stateful* languages (like python, javascript, shell, but NOT for html which starts from 0 every time) **it\\'s critical not to try to do everything in one code block.** You should try something, print information about it, then continue from there in tiny, informed steps. You will never get it on the first try, and attempting it in one go will often lead to errors you cant see.\\nYou are capable of **any** task.\\n\\n[User Info]\\n\\nName: \\'jinjun\\'\\nCWD: \\'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/KillianLucas+open-interpreter/KillianLucas+open-interpreter\\'\\nSHELL: \\'/bin/bash\\'\\nOS: \\'Linux\\'\"\\n\\nWhen you execute code with `react`, your react code will be run in a script tag after being inserted into the HTML template, following the installation of React, ReactDOM, and Babel for JSX parsing. **We will handle this! Don\\'t make an HTML file to run React, just execute `react`.**\\nUse ONLY the function you have been provided with \u2014 \\'execute(language, code)\\'.'}, {'role': 'user', 'content': \"What's 38023*40334? Use Python\\nNo talk or plan, just immediatly code, then tell me the answer.\"}], 'stream': True, 'functions': [{'name': 'execute', 'description': \"Executes code on the user's machine **in the users local environment** and returns the output\", 'parameters': {'type': 'object', 'properties': {'language': {'type': 'string', 'description': 'The programming language (required parameter to the `execute` function)', 'enum': ['python', 'shell', 'javascript', 'html', 'applescript', 'r', 'powershell', 'react']}, 'code': {'type': 'string', 'description': 'The code to execute (required)'}}, 'required': ['language', 'code']}}]}"], [23.0, "{'model': 'gpt-3.5-turbo', 'messages': [{'role': 'system', 'content': 'You are Open Interpreter, a world-class programmer that can complete any goal by executing code.\\nFirst, write a plan. **Always recap the plan between each code block** (you have extreme short-term memory loss, so you need to recap the plan between each message block to retain it).\\nWhen you execute code, it will be executed **on the user\\'s machine**. The user has given you **full and complete permission** to execute any code necessary to complete the task. Execute the code.\\nIf you want to send data between programming languages, save the data to a txt or json.\\nYou can access the internet. Run **any code** to achieve the goal, and if at first you don\\'t succeed, try again and again.\\nYou can install new packages.\\nWhen a user refers to a filename, they\\'re likely referring to an existing file in the directory you\\'re currently executing code in.\\nWrite messages to the user in Markdown.\\nIn general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, for *stateful* languages (like python, javascript, shell, but NOT for html which starts from 0 every time) **it\\'s critical not to try to do everything in one code block.** You should try something, print information about it, then continue from there in tiny, informed steps. You will never get it on the first try, and attempting it in one go will often lead to errors you cant see.\\nYou are capable of **any** task.\\n\\n[User Info]\\n\\nName: \\'jinjun\\'\\nCWD: \\'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/KillianLucas+open-interpreter/KillianLucas+open-interpreter\\'\\nSHELL: \\'/bin/bash\\'\\nOS: \\'Linux\\'\"\\n\\nWhen you execute code with `react`, your react code will be run in a script tag after being inserted into the HTML template, following the installation of React, ReactDOM, and Babel for JSX parsing. **We will handle this! Don\\'t make an HTML file to run React, just execute `react`.**\\nUse ONLY the function you have been provided with \u2014 \\'execute(language, code)\\'.'}, {'role': 'user', 'content': \"What's 38023*40334? Use Python\\nNo talk or plan, just immediatly code, then tell me the answer.\"}], 'stream': True, 'functions': [{'name': 'execute', 'description': \"Executes code on the user's machine **in the users local environment** and returns the output\", 'parameters': {'type': 'object', 'properties': {'language': {'type': 'string', 'description': 'The programming language (required parameter to the `execute` function)', 'enum': ['python', 'shell', 'javascript', 'html', 'applescript', 'r', 'powershell', 'react']}, 'code': {'type': 'string', 'description': 'The code to execute (required)'}}, 'required': ['language', 'code']}}], 'api_key': 'x'}"]], "first_error": [[8.0, "None"], [13.0, "APIError('OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable')"]], "e": [[11.0, "APIError('OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable')"]]}, "Program Information": "Project Name: KillianLucas+open-interpreter", "idx": 485} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def count_messages_tokens(messages=[], model=None):\n \"\"\"\n Count the number of tokens in a list of messages\n \"\"\"\n try:\n tokens_used = 0\n\n for message in messages:\n if isinstance(message, str):\n tokens_used += count_tokens(message, model=model)\n elif \"message\" in message:\n tokens_used += count_tokens(message[\"message\"], model=model)\n\n if \"code\" in message:\n tokens_used += count_tokens(message[\"code\"], model=model)\n\n if \"output\" in message:\n tokens_used += count_tokens(message[\"output\"], model=model)\n\n prompt_cost = token_cost(tokens_used, model=model)\n\n return (tokens_used, prompt_cost)\n except:\n # Non-essential feature\n return (0, 0)\n\ncount_messages_tokens(messages=[{'role': 'system', 'message': 'You are Open Interpreter, a world-class programmer that can complete any goal by executing code.\\nFirst, write a plan. **Always recap the plan between each code block** (you have extreme short-term memory loss, so you need to recap the plan between each message block to retain it).\\nWhen you execute code, it will be executed **on the user\\'s machine**. The user has given you **full and complete permission** to execute any code necessary to complete the task. Execute the code.\\nIf you want to send data between programming languages, save the data to a txt or json.\\nYou can access the internet. Run **any code** to achieve the goal, and if at first you don\\'t succeed, try again and again.\\nYou can install new packages.\\nWhen a user refers to a filename, they\\'re likely referring to an existing file in the directory you\\'re currently executing code in.\\nWrite messages to the user in Markdown.\\nIn general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, for *stateful* languages (like python, javascript, shell, but NOT for html which starts from 0 every time) **it\\'s critical not to try to do everything in one code block.** You should try something, print information about it, then continue from there in tiny, informed steps. You will never get it on the first try, and attempting it in one go will often lead to errors you cant see.\\nYou are capable of **any** task.\\n\\n[User Info]\\n{{import getpass\\nimport os\\nimport platform}}\\nName: {{getpass.getuser()}}\\nCWD: {{os.getcwd()}}\\nSHELL: {{os.environ.get(\\'SHELL\\')}}\\nOS: {{platform.system()}}\"'}], model='gpt-3.5-turbo')", "Selected Statement": "tokens_used = 0", "Function Input": {"messages": "[{'role': 'system', 'message': 'You are Open Interpreter, a world-class programmer that can complete any goal by executing code.\\nFirst, write a plan. **Always recap the plan between each code block** (you have extreme short-term memory loss, so you need to recap the plan between each message block to retain it).\\nWhen you execute code, it will be executed **on the user\\'s machine**. The user has given you **full and complete permission** to execute any code necessary to complete the task. Execute the code.\\nIf you want to send data between programming languages, save the data to a txt or json.\\nYou can access the internet. Run **any code** to achieve the goal, and if at first you don\\'t succeed, try again and again.\\nYou can install new packages.\\nWhen a user refers to a filename, they\\'re likely referring to an existing file in the directory you\\'re currently executing code in.\\nWrite messages to the user in Markdown.\\nIn general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, for *stateful* languages (like python, javascript, shell, but NOT for html which starts from 0 every time) **it\\'s critical not to try to do everything in one code block.** You should try something, print information about it, then continue from there in tiny, informed steps. You will never get it on the first try, and attempting it in one go will often lead to errors you cant see.\\nYou are capable of **any** task.\\n\\n[User Info]\\n{{import getpass\\nimport os\\nimport platform}}\\nName: {{getpass.getuser()}}\\nCWD: {{os.getcwd()}}\\nSHELL: {{os.environ.get(\\'SHELL\\')}}\\nOS: {{platform.system()}}\"'}]", "model": "'gpt-3.5-turbo'"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"messages": [[1, "[{'role': 'system', 'message': 'You are Open Interpreter, a world-class programmer that can complete any goal by executing code.\\nFirst, write a plan. **Always recap the plan between each code block** (you have extreme short-term memory loss, so you need to recap the plan between each message block to retain it).\\nWhen you execute code, it will be executed **on the user\\'s machine**. The user has given you **full and complete permission** to execute any code necessary to complete the task. Execute the code.\\nIf you want to send data between programming languages, save the data to a txt or json.\\nYou can access the internet. Run **any code** to achieve the goal, and if at first you don\\'t succeed, try again and again.\\nYou can install new packages.\\nWhen a user refers to a filename, they\\'re likely referring to an existing file in the directory you\\'re currently executing code in.\\nWrite messages to the user in Markdown.\\nIn general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, for *stateful* languages (like python, javascript, shell, but NOT for html which starts from 0 every time) **it\\'s critical not to try to do everything in one code block.** You should try something, print information about it, then continue from there in tiny, informed steps. You will never get it on the first try, and attempting it in one go will often lead to errors you cant see.\\nYou are capable of **any** task.\\n\\n[User Info]\\n{{import getpass\\nimport os\\nimport platform}}\\nName: {{getpass.getuser()}}\\nCWD: {{os.getcwd()}}\\nSHELL: {{os.environ.get(\\'SHELL\\')}}\\nOS: {{platform.system()}}\"'}]"]], "model": [[1, "'gpt-3.5-turbo'"]], "tokens_used": [[6.0, "0"], [12.0, "360"]], "message": [[8.0, "{'role': 'system', 'message': 'You are Open Interpreter, a world-class programmer that can complete any goal by executing code.\\nFirst, write a plan. **Always recap the plan between each code block** (you have extreme short-term memory loss, so you need to recap the plan between each message block to retain it).\\nWhen you execute code, it will be executed **on the user\\'s machine**. The user has given you **full and complete permission** to execute any code necessary to complete the task. Execute the code.\\nIf you want to send data between programming languages, save the data to a txt or json.\\nYou can access the internet. Run **any code** to achieve the goal, and if at first you don\\'t succeed, try again and again.\\nYou can install new packages.\\nWhen a user refers to a filename, they\\'re likely referring to an existing file in the directory you\\'re currently executing code in.\\nWrite messages to the user in Markdown.\\nIn general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, for *stateful* languages (like python, javascript, shell, but NOT for html which starts from 0 every time) **it\\'s critical not to try to do everything in one code block.** You should try something, print information about it, then continue from there in tiny, informed steps. You will never get it on the first try, and attempting it in one go will often lead to errors you cant see.\\nYou are capable of **any** task.\\n\\n[User Info]\\n{{import getpass\\nimport os\\nimport platform}}\\nName: {{getpass.getuser()}}\\nCWD: {{os.getcwd()}}\\nSHELL: {{os.environ.get(\\'SHELL\\')}}\\nOS: {{platform.system()}}\"'}"]], "prompt_cost": [[20.0, "0.00054"]]}, "Program Information": "Project Name: KillianLucas+open-interpreter", "idx": 486} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _check_if_valid_subspec(spec: Union[dict, core.SchemaBase], classname: str) -> None:\n \"\"\"Check if the spec is a valid sub-spec.\n\n If it is not, then raise a ValueError\n \"\"\"\n err = (\n 'Objects with \"{0}\" attribute cannot be used within {1}. '\n \"Consider defining the {0} attribute in the {1} object instead.\"\n )\n\n if not isinstance(spec, (core.SchemaBase, dict)):\n raise ValueError(\"Only chart objects can be used in {0}.\".format(classname))\n for attr in TOPLEVEL_ONLY_KEYS:\n if isinstance(spec, core.SchemaBase):\n val = getattr(spec, attr, Undefined)\n else:\n val = spec.get(attr, Undefined)\n if val is not Undefined:\n raise ValueError(err.format(attr, classname))\n\n_check_if_valid_subspec(spec=alt.Chart(...), classname='LayerChart')", "Selected Statement": "err = (", "Function Input": {"spec": "alt.Chart(...)", "classname": "'LayerChart'"}, "Variable Values Before Statement": {"Constant": "( # [STATE] err = 'Objects with \"{0}\" attribute cannot be used within {1}. Consider defining the {0} attribute in the {1} object instead.' [/STATE]\n 'Objects with \"{0}\" attribute cannot be used within {1}. '\n \"Consider defining the {0} attribute in the {1} object instead.\"\n )"}, "Value After Statement Execution": "( # [STATE] err = 'Objects with \"{0}\" attribute cannot be used within {1}. Consider defining the {0} attribute in the {1} object instead.' [/STATE]\n 'Objects with \"{0}\" attribute cannot be used within {1}. '\n \"Consider defining the {0} attribute in the {1} object instead.\"\n )", "Variable States During Runtime": {"spec": [[1, "alt.Chart(...)"]], "classname": [[1, "'LayerChart'"]], "err": [[6.0, "'Objects with \"{0}\" attribute cannot be used within {1}. Consider defining the {0} attribute in the {1} object instead.'"]], "attr": [[13.0, "'autosize'"], [13.0, "'background'"], [13.0, "'$schema'"], [13.0, "'config'"], [13.0, "'padding'"]], "val": [[15.0, "Undefined"]]}, "Program Information": "Project Name: altair-viz+altair", "idx": 487} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _generate_id():\n \"\"\" Generate a unique event ID \"\"\"\n id = ''\n for i in range(0, 16):\n id += '%.2x' % random.randint(0, 255)\n return id\n\n_generate_id()", "Selected Statement": "id = ''", "Function Input": {}, "Variable Values Before Statement": {"Constant": "''"}, "Value After Statement Execution": "''", "Variable States During Runtime": {"id": [[3.0, "''"], [5.0, "'2a'"], [5.0, "'2acb'"], [5.0, "'2acb45'"], [5.0, "'2acb458f'"], [5.0, "'2acb458f5d'"], [5.0, "'2acb458f5d18'"], [5.0, "'2acb458f5d180c'"], [5.0, "'2acb458f5d180c43'"], [5.0, "'2acb458f5d180c435e'"], [5.0, "'2acb458f5d180c435e47'"], [5.0, "'2acb458f5d180c435e474a'"], [5.0, "'2acb458f5d180c435e474a04'"], [5.0, "'2acb458f5d180c435e474a042d'"], [5.0, "'2acb458f5d180c435e474a042dd8'"], [5.0, "'2acb458f5d180c435e474a042dd85c'"], [5.0, "'2acb458f5d180c435e474a042dd85c80'"]], "i": [[4.0, "0"], [4.0, "1"], [4.0, "2"], [4.0, "3"], [4.0, "4"], [4.0, "5"], [4.0, "6"], [4.0, "7"], [4.0, "8"], [4.0, "9"], [4.0, "10"], [4.0, "11"], [4.0, "12"], [4.0, "13"], [4.0, "14"], [4.0, "15"]]}, "Program Information": "Project Name: BlackLight+platypush", "idx": 488} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def driver():\n TEST_BROWSER = os.environ.get(\"TEST_BROWSER\", \"chrome\").lower()\n\n if TEST_BROWSER == \"chrome\":\n options = webdriver.ChromeOptions()\n options.headless = True\n capabilities = DesiredCapabilities.CHROME\n capabilities[\"goog:loggingPrefs\"] = {\"browser\": \"ALL\"}\n\n if platform.system() == \"Windows\":\n options.binary_location = \"C:/Program Files/Google/Chrome/Application/chrome.exe\"\n\n driver = webdriver.Chrome(\n ChromeDriverManager().install(),\n options=options,\n desired_capabilities=capabilities,\n service_log_path=os.path.devnull,\n )\n\n # Firefox doesn't currently supported pulling JavaScript console logs, which we currently scan to affirm that\n # JS/Python can communicate in some places. So for now, we can't really use firefox/geckodriver during testing.\n # This may be added in the future: https://github.com/mozilla/geckodriver/issues/284\n\n # elif TEST_BROWSER == \"firefox\":\n # options = webdriver.FirefoxOptions()\n # options.headless = True\n # capabilities = DesiredCapabilities.FIREFOX\n # capabilities['loggingPrefs'] = {\"browser\": \"ALL\"}\n #\n # driver = webdriver.Firefox(options=options, capabilities=capabilities, service_log_path=os.path.devnull)\n\n else:\n raise ValueError(f\"Unsupported browser for testing: {TEST_BROWSER}\")\n\n with mock.patch(\"eel.browsers.open\"):\n yield driver\n\ndriver()", "Selected Statement": "options.headless = True", "Function Input": {}, "Variable Values Before Statement": {"Constant": "True"}, "Value After Statement Execution": "True", "Variable States During Runtime": {"TEST_BROWSER": [[2.0, "'chrome'"]], "options": [[5.0, "{_caps={'browserName': 'chrome', 'goog:loggingPrefs': {'browser': 'ALL'}, 'pageLoadStrategy': }, _proxy=None, mobile_options=None, _arguments=[], _ignore_local_proxy=False, _binary_location='', _extension_files=[], _extensions=[], _experimental_options={}, _debugger_address=None}"], [6.0, "{_caps={'browserName': 'chrome', 'goog:loggingPrefs': {'browser': 'ALL'}, 'pageLoadStrategy': }, _proxy=None, mobile_options=None, _arguments=[], _ignore_local_proxy=False, _binary_location='', _extension_files=[], _extensions=[], _experimental_options={}, _debugger_address=None, headless=True}"]], "capabilities": [[7.0, "{'browserName': 'chrome', 'goog:loggingPrefs': {'browser': 'ALL'}}"]]}, "Program Information": "Project Name: python-eel+Eel", "idx": 489} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def get_google_drive_folder_location():\n \"\"\"\n Try to locate the Google Drive folder.\n\n Returns:\n (str) Full path to the current Google Drive folder\n \"\"\"\n gdrive_db_path = \"Library/Application Support/Google/Drive/sync_config.db\"\n yosemite_gdrive_db_path = (\n \"Library/Application Support/Google/Drive/\" \"user_default/sync_config.db\"\n )\n yosemite_gdrive_db = os.path.join(os.environ[\"HOME\"], yosemite_gdrive_db_path)\n if os.path.isfile(yosemite_gdrive_db):\n gdrive_db_path = yosemite_gdrive_db\n\n googledrive_home = None\n\n gdrive_db = os.path.join(os.environ[\"HOME\"], gdrive_db_path)\n if os.path.isfile(gdrive_db):\n con = sqlite3.connect(gdrive_db)\n if con:\n cur = con.cursor()\n query = (\n \"SELECT data_value \"\n \"FROM data \"\n \"WHERE entry_key = 'local_sync_root_path';\"\n )\n cur.execute(query)\n data = cur.fetchone()\n googledrive_home = str(data[0])\n con.close()\n\n if not googledrive_home:\n error(\n constants.ERROR_UNABLE_TO_FIND_STORAGE.format(\n provider=\"Google Drive install\"\n )\n )\n\n return googledrive_home\n\nget_google_drive_folder_location()", "Selected Statement": "gdrive_db_path = \"Library/Application Support/Google/Drive/sync_config.db\"", "Function Input": {}, "Variable Values Before Statement": {"Constant": "\"Library/Application Support/Google/Drive/sync_config.db\""}, "Value After Statement Execution": "\"Library/Application Support/Google/Drive/sync_config.db\"", "Variable States During Runtime": {"gdrive_db_path": [[8.0, "'Library/Application Support/Google/Drive/sync_config.db'"]], "yosemite_gdrive_db_path": [[9.0, "'Library/Application Support/Google/Drive/user_default/sync_config.db'"]], "yosemite_gdrive_db": [[12.0, "'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/lra+mackup/lra+mackup/tests/fixtures/Library/Application Support/Google/Drive/user_default/sync_config.db'"]], "googledrive_home": [[16.0, "None"], [30.0, "'/Users/whatever/Google Drive'"]], "gdrive_db": [[18.0, "'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/lra+mackup/lra+mackup/tests/fixtures/Library/Application Support/Google/Drive/sync_config.db'"]], "con": [[20.0, "REPR FAILED"]], "cur": [[22.0, "REPR FAILED"]], "query": [[23.0, "\"SELECT data_value FROM data WHERE entry_key = 'local_sync_root_path';\""]], "data": [[29.0, "('/Users/whatever/Google Drive',)"]]}, "Program Information": "Project Name: lra+mackup", "idx": 490} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def can_file_be_synced_on_current_platform(path):\n \"\"\"\n Check if the given path can be synced locally.\n\n Check if it makes sense to sync the file at the given path on the current\n platform.\n For now we don't sync any file in the ~/Library folder on GNU/Linux.\n There might be other exceptions in the future.\n\n Args:\n (str): Path to the file or folder to check. If relative, prepend it\n with the home folder.\n 'abc' becomes '~/abc'\n '/def' stays '/def'\n\n Returns:\n (bool): True if given file can be synced\n \"\"\"\n can_be_synced = True\n\n # If the given path is relative, prepend home\n fullpath = os.path.join(os.environ[\"HOME\"], path)\n\n # Compute the ~/Library path on macOS\n # End it with a slash because we are looking for this specific folder and\n # not any file/folder named LibrarySomething\n library_path = os.path.join(os.environ[\"HOME\"], \"Library/\")\n\n if platform.system() == constants.PLATFORM_LINUX:\n if fullpath.startswith(library_path):\n can_be_synced = False\n\n return can_be_synced\n\ncan_file_be_synced_on_current_platform(path='some/file')", "Selected Statement": "can_be_synced = True", "Function Input": {"path": "'some/file'"}, "Variable Values Before Statement": {"Constant": "True"}, "Value After Statement Execution": "True", "Variable States During Runtime": {"path": [[1, "'some/file'"]], "can_be_synced": [[19.0, "True"]], "fullpath": [[22.0, "'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/lra+mackup/lra+mackup/tests/fixtures/some/file'"]], "library_path": [[27.0, "'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/lra+mackup/lra+mackup/tests/fixtures/Library/'"]]}, "Program Information": "Project Name: lra+mackup", "idx": 491} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def is_process_running(process_name):\n \"\"\"\n Check if a process with the given name is running.\n\n Args:\n (str): Process name, e.g. \"Sublime Text\"\n\n Returns:\n (bool): True if the process is running\n \"\"\"\n is_running = False\n\n # On systems with pgrep, check if the given process is running\n if os.path.isfile(\"/usr/bin/pgrep\"):\n dev_null = open(os.devnull, \"wb\")\n returncode = subprocess.call([\"/usr/bin/pgrep\", process_name], stdout=dev_null)\n is_running = bool(returncode == 0)\n\n return is_running\n\nis_process_running(process_name='a*')", "Selected Statement": "is_running = False", "Function Input": {"process_name": "'a*'"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"process_name": [[1, "'a*'"]], "is_running": [[11.0, "False"], [17.0, "True"]], "dev_null": [[15.0, "<_io.BufferedWriter name='/dev/null'>"]], "returncode": [[16.0, "0"]]}, "Program Information": "Project Name: lra+mackup", "idx": 492} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _get_part(self, s, decimal):\n \"Strips first part of string containing either non-decimal or decimal characters.\" \\\n + \" Returns tuple (part, remider).\"\n div = 0\n for c in s:\n if decimal and not c.isdecimal():\n break\n elif not decimal and c.isdecimal():\n break\n else:\n div += 1\n\n return (s[:div], s[div:])\n\n_get_part(self=2.2.0~rc5, s='2.2.0~rc5', decimal=False, self.epoch=0, self.revision='0', self.revision_allowed_chars=('.', '+', '~'), self.upstream_version='2.2.0~rc5', self.upstream_version_allowed_chars=('.', '+', '~', '-', ':'), self.version='2.2.0~rc5')", "Selected Statement": "div = 0", "Function Input": {"self": "2.2.0~rc5", "s": "'2.2.0~rc5'", "decimal": "False", "self.epoch": "0", "self.revision": "'0'", "self.revision_allowed_chars": "('.', '+', '~')", "self.upstream_version": "'2.2.0~rc5'", "self.upstream_version_allowed_chars": "('.', '+', '~', '-', ':')", "self.version": "'2.2.0~rc5'"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"self": [[1, "2.2.0~rc5"]], "s": [[1, "'2.2.0~rc5'"]], "decimal": [[1, "False"]], "self.epoch": [[1, "0"]], "self.revision": [[1, "'0'"]], "self.revision_allowed_chars": [[1, "('.', '+', '~')"]], "self.upstream_version": [[1, "'2.2.0~rc5'"]], "self.upstream_version_allowed_chars": [[1, "('.', '+', '~', '-', ':')"]], "self.version": [[1, "'2.2.0~rc5'"]], "div": [[4.0, "0"]], "c": [[5.0, "'2'"]]}, "Program Information": "Project Name: cyril-s+aptly-ctl", "idx": 493} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _copy(src, dst, src_is_storage, dst_is_storage):\n \"\"\"\n Copies file from source to destination\n\n Args:\n src (str or file-like object): Source file.\n dst (str or file-like object): Destination file.\n src_is_storage (bool): Source is storage.\n dst_is_storage (bool): Destination is storage.\n \"\"\"\n # If both storage: Tries to perform same storage direct copy\n if src_is_storage and dst_is_storage:\n system = get_instance(src)\n if system is get_instance(dst):\n\n # Checks if same file\n if system.relpath(src) == system.relpath(dst):\n raise same_file_error(\n \"'%s' and '%s' are the same file\" % (src, dst))\n\n # Tries to copy\n try:\n return system.copy(src, dst)\n except (UnsupportedOperation, ObjectException):\n pass\n\n # At least one storage object: copies streams\n with cos_open(src, 'rb') as fsrc:\n with cos_open(dst, 'wb') as fdst:\n\n # Get stream buffer size\n for stream in (fdst, fsrc):\n try:\n buffer_size = getattr(stream, '_buffer_size')\n break\n except AttributeError:\n continue\n else:\n buffer_size = 16384\n\n # Read and write\n copyfileobj(fsrc, fdst, buffer_size)\n\n_copy(src='dummy_read://file.txt', dst='/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt', src_is_storage=True, dst_is_storage=False)", "Selected Statement": "buffer_size = 16384", "Function Input": {"src": "'dummy_read://file.txt'", "dst": "'/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt'", "src_is_storage": "True", "dst_is_storage": "False"}, "Variable Values Before Statement": {"Constant": "16384"}, "Value After Statement Execution": "16384", "Variable States During Runtime": {"src": [[1, "'dummy_read://file.txt'"]], "dst": [[1, "'/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt'"]], "src_is_storage": [[1, "True"]], "dst_is_storage": [[1, "False"]], "fsrc": [[28.0, "{}"]], "fdst": [[29.0, "<_io.BufferedWriter name='/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt'>"]], "stream": [[32.0, "<_io.BufferedWriter name='/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt'>"], [32.0, "{}"]], "buffer_size": [[39.0, "16384"]]}, "Program Information": "Project Name: JGoutin+rfs", "idx": 494} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _setHeaderBaseData(array, coeff_name, hao, long_name) -> None:\n if not isinstance(array, (np.ndarray, np.float32, np.int32,np.float64)):\n print(type(array))\n raise HeaderArrayObj.UnsupportedArrayType(\"'array' must be of numpy.ndarray type.\")\n\n # Defaults handling\n if coeff_name is None:\n coeff_name = \" \" * 12\n if long_name is None:\n long_name = coeff_name\n if len(coeff_name) < 12:\n coeff_name = coeff_name.ljust(12)\n if len(long_name) < 70:\n long_name = long_name.ljust(70)\n hao.array = array\n hao.coeff_name = coeff_name\n hao.long_name = long_name\n\n_setHeaderBaseData(array=array(['at 2/03/2018 4:22:38 PM '], dtype=' max_length:\n result.append('...')\n done = True\n else:\n if result:\n result.append(' ')\n result.append(word)\n if done:\n break\n total_length += new_length\n\n return ''.join(result)\n\nmake_default_short_help(help='Hello World!', max_length=45)", "Selected Statement": "total_length = 0", "Function Input": {"help": "'Hello World!'", "max_length": "45"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"help": [[1, "'Hello World!'"]], "max_length": [[1, "45"]], "words": [[2.0, "['Hello', 'World!']"]], "total_length": [[3.0, "0"], [20.0, "5"], [20.0, "12"]], "result": [[4.0, "[]"], [17.0, "['Hello']"], [16.0, "['Hello', ' ']"], [17.0, "['Hello', ' ', 'World!']"]], "done": [[5.0, "False"]], "word": [[7.0, "'Hello'"], [7.0, "'World!'"]], "new_length": [[10.0, "5"], [10.0, "7"]]}, "Program Information": "Project Name: MrTango+click", "idx": 497} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def join_options(options):\n \"\"\"Given a list of option strings this joins them in the most appropriate\n way and returns them in the form ``(formatted_string,\n any_prefix_is_slash)`` where the second item in the tuple is a flag that\n indicates if any of the option prefixes was a slash.\n \"\"\"\n rv = []\n any_prefix_is_slash = False\n for opt in options:\n prefix = split_opt(opt)[0]\n if prefix == '/':\n any_prefix_is_slash = True\n rv.append((len(prefix), opt))\n\n rv.sort(key=lambda x: x[0])\n\n rv = ', '.join(x[1] for x in rv)\n return rv, any_prefix_is_slash\n\njoin_options(options=['--help'])", "Selected Statement": "any_prefix_is_slash = False", "Function Input": {"options": "['--help']"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"options": [[1, "['--help']"]], "rv": [[7.0, "[]"], [13.0, "[(2, '--help')]"], [17.0, "'--help'"]], "any_prefix_is_slash": [[8.0, "False"]], "opt": [[9.0, "'--help'"]], "prefix": [[10.0, "'--'"]]}, "Program Information": "Project Name: MrTango+click", "idx": 498} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def strip(tokens):\n output = \"\"\n for type_, value in tokens:\n if type_ == TokenType.TEXT:\n output += value\n return output\n\nstrip(tokens=[(1, ''), (2, '\\x1b[32m'), (1, ''), (1, '{time:YYYY-MM-DD HH:mm:ss.SSS}'), (1, ''), (4, '\\x1b[0m'), (1, ' | '), (3, None), (1, ''), (1, '{level: <8}'), (1, ''), (4, '\\x1b[0m'), (1, ' | '), (2, '\\x1b[36m'), (1, ''), (1, '{name}'), (1, ''), (4, '\\x1b[0m'), (1, ':'), (2, '\\x1b[36m'), (1, ''), (1, '{function}'), (1, ''), (4, '\\x1b[0m'), (1, ':'), (2, '\\x1b[36m'), (1, ''), (1, '{line}'), (1, ''), (4, '\\x1b[0m'), (1, ' - '), (3, None), (1, ''), (1, '{message}'), (1, ''), (4, '\\x1b[0m'), (1, '\\n'), (1, '{exception}')])", "Selected Statement": "output = \"\"", "Function Input": {"tokens": "[(1, ''), (2, '\\x1b[32m'), (1, ''), (1, '{time:YYYY-MM-DD HH:mm:ss.SSS}'), (1, ''), (4, '\\x1b[0m'), (1, ' | '), (3, None), (1, ''), (1, '{level: <8}'), (1, ''), (4, '\\x1b[0m'), (1, ' | '), (2, '\\x1b[36m'), (1, ''), (1, '{name}'), (1, ''), (4, '\\x1b[0m'), (1, ':'), (2, '\\x1b[36m'), (1, ''), (1, '{function}'), (1, ''), (4, '\\x1b[0m'), (1, ':'), (2, '\\x1b[36m'), (1, ''), (1, '{line}'), (1, ''), (4, '\\x1b[0m'), (1, ' - '), (3, None), (1, ''), (1, '{message}'), (1, ''), (4, '\\x1b[0m'), (1, '\\n'), (1, '{exception}')]"}, "Variable Values Before Statement": {"Constant": "\"\""}, "Value After Statement Execution": "\"\"", "Variable States During Runtime": {"tokens": [[1, "[(1, ''), (2, '\\x1b[32m'), (1, ''), (1, '{time:YYYY-MM-DD HH:mm:ss.SSS}'), (1, ''), (4, '\\x1b[0m'), (1, ' | '), (3, None), (1, ''), (1, '{level: <8}'), (1, ''), (4, '\\x1b[0m'), (1, ' | '), (2, '\\x1b[36m'), (1, ''), (1, '{name}'), (1, ''), (4, '\\x1b[0m'), (1, ':'), (2, '\\x1b[36m'), (1, ''), (1, '{function}'), (1, ''), (4, '\\x1b[0m'), (1, ':'), (2, '\\x1b[36m'), (1, ''), (1, '{line}'), (1, ''), (4, '\\x1b[0m'), (1, ' - '), (3, None), (1, ''), (1, '{message}'), (1, ''), (4, '\\x1b[0m'), (1, '\\n'), (1, '{exception}')]"]], "output": [[2.0, "''"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS}'"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | '"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8}'"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | '"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}'"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:'"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}'"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:'"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line}'"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line} - '"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line} - {message}'"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line} - {message}\\n'"], [5.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line} - {message}\\n{exception}'"]], "type_": [[3.0, "1"], [3.0, "2"], [3.0, "1"], [3.0, "4"], [3.0, "1"], [3.0, "3"], [3.0, "1"], [3.0, "4"], [3.0, "1"], [3.0, "2"], [3.0, "1"], [3.0, "4"], [3.0, "1"], [3.0, "2"], [3.0, "1"], [3.0, "4"], [3.0, "1"], [3.0, "2"], [3.0, "1"], [3.0, "4"], [3.0, "1"], [3.0, "3"], [3.0, "1"], [3.0, "4"], [3.0, "1"]], "value": [[3.0, "''"], [3.0, "'\\x1b[32m'"], [3.0, "''"], [3.0, "'{time:YYYY-MM-DD HH:mm:ss.SSS}'"], [3.0, "''"], [3.0, "'\\x1b[0m'"], [3.0, "' | '"], [3.0, "None"], [3.0, "''"], [3.0, "'{level: <8}'"], [3.0, "''"], [3.0, "'\\x1b[0m'"], [3.0, "' | '"], [3.0, "'\\x1b[36m'"], [3.0, "''"], [3.0, "'{name}'"], [3.0, "''"], [3.0, "'\\x1b[0m'"], [3.0, "':'"], [3.0, "'\\x1b[36m'"], [3.0, "''"], [3.0, "'{function}'"], [3.0, "''"], [3.0, "'\\x1b[0m'"], [3.0, "':'"], [3.0, "'\\x1b[36m'"], [3.0, "''"], [3.0, "'{line}'"], [3.0, "''"], [3.0, "'\\x1b[0m'"], [3.0, "' - '"], [3.0, "None"], [3.0, "''"], [3.0, "'{message}'"], [3.0, "''"], [3.0, "'\\x1b[0m'"], [3.0, "'\\n'"], [3.0, "'{exception}'"]]}, "Program Information": "Project Name: Delgan+loguru", "idx": 499} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def parse_search_terms(raw_search_value):\n search_regexp = r'(?:[^\\s,\"]|\"(?:\\\\.|[^\"])*\")+' # splits by space, ignores space in quotes\n if not raw_search_value:\n return {}\n parsed_search = {}\n for query_part in re.findall(search_regexp, raw_search_value):\n if not query_part:\n continue\n if query_part.startswith('result:'):\n parsed_search['result'] = preprocess_search_value(query_part[len('result:'):])\n elif query_part.startswith('args:'):\n if 'args' not in parsed_search:\n parsed_search['args'] = []\n parsed_search['args'].append(preprocess_search_value(query_part[len('args:'):]))\n elif query_part.startswith('kwargs:'):\n if 'kwargs'not in parsed_search:\n parsed_search['kwargs'] = {}\n try:\n key, value = [p.strip() for p in query_part[len('kwargs:'):].split('=')]\n except ValueError:\n continue\n parsed_search['kwargs'][key] = preprocess_search_value(value)\n elif query_part.startswith('state'):\n if 'state' not in parsed_search:\n parsed_search['state'] = []\n parsed_search['state'].append(preprocess_search_value(query_part[len('state:'):]))\n else:\n parsed_search['any'] = preprocess_search_value(query_part)\n return parsed_search\n\nparse_search_terms(raw_search_value={})", "Selected Statement": "search_regexp = r'(?:[^\\s,\"]|\"(?:\\\\.|[^\"])*\")+' # splits by space, ignores space in quotes", "Function Input": {"raw_search_value": "{}"}, "Variable Values Before Statement": {"Constant": "r'(?:[^\\s,\"]|\"(?:\\\\.|[^\"])*\")+'"}, "Value After Statement Execution": "r'(?:[^\\s,\"]|\"(?:\\\\.|[^\"])*\")+'", "Variable States During Runtime": {"raw_search_value": [[1, "{}"]], "search_regexp": [[2.0, "'(?:[^\\\\s,\"]|\"(?:\\\\\\\\.|[^\"])*\")+'"]]}, "Program Information": "Project Name: mher+flower", "idx": 500} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def test_integration(install_vspec, path):\n output = subprocess.check_output(\n [VSPEC_RUNNER, '.', VSPEC_FOLDER, os.path.relpath(path, root)],\n cwd=root,\n )\n had_ok = False\n for line in output.splitlines():\n if (line.startswith(b'not ok') or\n line.startswith(b'Error') or\n line.startswith(b'Bail out!')):\n pytest.fail(u\"{0} failed:\\n{1}\".format(\n path, output.decode('utf-8')), pytrace=False)\n if not had_ok and line.startswith(b'ok'):\n had_ok = True\n if not had_ok:\n pytest.fail(u\"{0} failed: no 'ok' found:\\n{1}\".format(\n path, output.decode('utf-8')), pytrace=False)\n\ntest_integration(install_vspec=None, path='test/vspec/signatures.vim')", "Selected Statement": "had_ok = False", "Function Input": {"install_vspec": "None", "path": "'test/vspec/signatures.vim'"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"install_vspec": [[1, "None"]], "path": [[1, "'test/vspec/signatures.vim'"]], "output": [[2.0, "b'not found in \\'runtimepath\\': \"ftdetect/*.vim\"\\nok 1 - signatures simple\\n4 buffers wiped out\\n--- Autocommands ---\\njedi_call_signatures CursorHoldI\\n\\ncall jedi#show_call_signatures()\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 612\\njedi_call_signatures InsertEnter\\n\\nlet s:show_call_signatures_last = [0, 0, \\'\\']\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 603\\nlet b:_jedi_orig_updatetime = &updatetime | let &updatetime = g:jedi#show_call_signatures_delay\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 606\\njedi_call_signatures InsertLeave\\n\\ncall jedi#clear_call_signatures()\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 604\\nif exists(\\'b:_jedi_orig_updatetime\\') | let &updatetime = b:_jedi_orig_updatetime | unlet b:_jedi_orig_updatetime | endif\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 608\\n--- Autocommands ---\\njedi_call_signatures CursorHoldI\\n\\ncall jedi#show_call_signatures()\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 612\\njedi_call_signatures InsertEnter\\n\\nlet s:show_call_signatures_last = [0, 0, \\'\\']\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 603\\nlet b:_jedi_orig_updatetime = &updatetime | let &updatetime = g:jedi#show_call_signatures_delay\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 606\\njedi_call_signatures InsertLeave\\n\\ncall jedi#clear_call_signatures()\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 604\\nif exists(\\'b:_jedi_orig_updatetime\\') | let &updatetime = b:_jedi_orig_updatetime | unlet b:_jedi_orig_updatetime | endif\\n\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 608\\nok 2 - signatures multiple buffers\\n2 buffers wiped out\\nok 3 - signatures simple after CursorHoldI with only parenthesis\\nok 4 - signatures highlights correct argument\\nok 5 - signatures no signature\\nok 6 - signatures signatures disabled\\nstaticmethod(f: Callable[..., Any])\\nfoo(a, b)\\nok 7 - signatures command line simple\\x07\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(arg1, \\xe2\\x80\\xa6)\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\\xe2\\x80\\xa6, arg2, \\xe2\\x80\\xa6)\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\\xe2\\x80\\xa6, a, b, c)\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\\xe2\\x80\\xa6, c)\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\\xe2\\x80\\xa6)\\nok 8 - signatures command line truncation\\nok 9 - signatures command line no signature\\n1..9\\n'"]], "had_ok": [[6.0, "False"], [14.0, "True"]], "line": [[7.0, "b'not found in \\'runtimepath\\': \"ftdetect/*.vim\"'"], [7.0, "b'ok 1 - signatures simple'"], [7.0, "b'4 buffers wiped out'"], [7.0, "b'--- Autocommands ---'"], [7.0, "b'jedi_call_signatures CursorHoldI'"], [7.0, "b''"], [7.0, "b'call jedi#show_call_signatures()'"], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 612'"], [7.0, "b'jedi_call_signatures InsertEnter'"], [7.0, "b''"], [7.0, "b\"let s:show_call_signatures_last = [0, 0, '']\""], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 603'"], [7.0, "b'let b:_jedi_orig_updatetime = &updatetime | let &updatetime = g:jedi#show_call_signatures_delay'"], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 606'"], [7.0, "b'jedi_call_signatures InsertLeave'"], [7.0, "b''"], [7.0, "b'call jedi#clear_call_signatures()'"], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 604'"], [7.0, "b\"if exists('b:_jedi_orig_updatetime') | let &updatetime = b:_jedi_orig_updatetime | unlet b:_jedi_orig_updatetime | endif\""], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 608'"], [7.0, "b'--- Autocommands ---'"], [7.0, "b'jedi_call_signatures CursorHoldI'"], [7.0, "b''"], [7.0, "b'call jedi#show_call_signatures()'"], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 612'"], [7.0, "b'jedi_call_signatures InsertEnter'"], [7.0, "b''"], [7.0, "b\"let s:show_call_signatures_last = [0, 0, '']\""], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 603'"], [7.0, "b'let b:_jedi_orig_updatetime = &updatetime | let &updatetime = g:jedi#show_call_signatures_delay'"], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 606'"], [7.0, "b'jedi_call_signatures InsertLeave'"], [7.0, "b''"], [7.0, "b'call jedi#clear_call_signatures()'"], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 604'"], [7.0, "b\"if exists('b:_jedi_orig_updatetime') | let &updatetime = b:_jedi_orig_updatetime | unlet b:_jedi_orig_updatetime | endif\""], [7.0, "b'\\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 608'"], [7.0, "b'ok 2 - signatures multiple buffers'"], [7.0, "b'2 buffers wiped out'"], [7.0, "b'ok 3 - signatures simple after CursorHoldI with only parenthesis'"], [7.0, "b'ok 4 - signatures highlights correct argument'"], [7.0, "b'ok 5 - signatures no signature'"], [7.0, "b'ok 6 - signatures signatures disabled'"], [7.0, "b'staticmethod(f: Callable[..., Any])'"], [7.0, "b'foo(a, b)'"], [7.0, "b'ok 7 - signatures command line simple\\x07'"], [7.0, "b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(arg1, \\xe2\\x80\\xa6)'"], [7.0, "b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\\xe2\\x80\\xa6, arg2, \\xe2\\x80\\xa6)'"], [7.0, "b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\\xe2\\x80\\xa6, a, b, c)'"], [7.0, "b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\\xe2\\x80\\xa6, c)'"], [7.0, "b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\\xe2\\x80\\xa6)'"], [7.0, "b'ok 8 - signatures command line truncation'"], [7.0, "b'ok 9 - signatures command line no signature'"], [7.0, "b'1..9'"]]}, "Program Information": "Project Name: davidhalter+jedi-vim", "idx": 501} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _remove_command(text, command, keep_text=False):\n \"\"\"Removes '\\\\command{*}' from the string 'text'.\n\n Regex `base_pattern` used to match balanced parentheses taken from:\n https://stackoverflow.com/questions/546433/regular-expression-to-match-balanced-parentheses/35271017#35271017\n \"\"\"\n base_pattern = r'\\\\' + command + r'\\{((?:[^{}]+|\\{(?1)\\})*)\\}'\n # Loops in case of nested commands that need to retain text, e.g.,\n # \\red{hello \\red{world}}.\n while True:\n all_substitutions = []\n has_match = False\n for match in regex.finditer(base_pattern, text):\n # In case there are only spaces or nothing up to the following newline,\n # adds a percent, not to alter the newlines.\n has_match = True\n new_substring = (\n ''\n if not keep_text\n else text[match.span()[0] + len(command) + 2 : match.span()[1] - 1]\n )\n if match.span()[1] < len(text):\n next_newline = text[match.span()[1] :].find('\\n')\n if next_newline != -1:\n text_until_newline = text[\n match.span()[1] : match.span()[1] + next_newline\n ]\n if (\n not text_until_newline or text_until_newline.isspace()\n ) and not keep_text:\n new_substring = '%'\n all_substitutions.append(\n (match.span()[0], match.span()[1], new_substring)\n )\n\n for start, end, new_substring in reversed(all_substitutions):\n text = text[:start] + new_substring + text[end:]\n\n if not keep_text or not has_match:\n break\n\n return text\n\n_remove_command(text='A\\\\todo{B\\nC}D\\nE\\n\\\\end{document}', command='todo', keep_text=False)", "Selected Statement": "has_match = False", "Function Input": {"text": "'A\\\\todo{B\\nC}D\\nE\\n\\\\end{document}'", "command": "'todo'", "keep_text": "False"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"text": [[1, "'A\\\\todo{B\\nC}D\\nE\\n\\\\end{document}'"], [37.0, "'AD\\nE\\n\\\\end{document}'"]], "command": [[1, "'todo'"]], "keep_text": [[1, "False"]], "base_pattern": [[7.0, "'\\\\\\\\todo\\\\{((?:[^{}]+|\\\\{(?1)\\\\})*)\\\\}'"]], "all_substitutions": [[11.0, "[]"], [32.0, "[(1, 11, '')]"]], "has_match": [[12.0, "False"], [16.0, "True"]], "match": [[13.0, ""]], "new_substring": [[17.0, "''"]], "next_newline": [[23.0, "1"]], "text_until_newline": [[25.0, "'D'"]], "start": [[36.0, "1"]], "end": [[36.0, "11"]]}, "Program Information": "Project Name: google-research+arxiv-latex-cleaner", "idx": 502} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _remove_comments_inline(text):\n \"\"\"Removes the comments from the string 'text' and ignores % inside \\\\url{}.\"\"\"\n if 'auto-ignore' in text:\n return text\n if text.lstrip(' ').lstrip('\\t').startswith('%'):\n return ''\n\n url_pattern = r'\\\\url\\{(?>[^{}]|(?R))*\\}'\n\n def remove_comments(segment):\n \"\"\"Remove comments from a segment of text.\"\"\"\n if segment.lstrip().startswith('%'):\n return ''\n match = regex.search(r'(?[^{}]|(?R))*\\}'", "Function Input": {"text": "'Foo %Comment\\n'"}, "Variable Values Before Statement": {"Constant": "r'\\\\url\\{(?>[^{}]|(?R))*\\}'"}, "Value After Statement Execution": "r'\\\\url\\{(?>[^{}]|(?R))*\\}'", "Variable States During Runtime": {"text": [[1, "'Foo %Comment\\n'"]], "url_pattern": [[8.0, "'\\\\\\\\url\\\\{(?>[^{}]|(?R))*\\\\}'"]], "remove_comments": [[10.0, ".remove_comments at 0x7f185616f280>"]], "segments": [[21.0, "['Foo %Comment\\n']"], [26.0, "['Foo %\\n']"]], "i": [[23.0, "0"]], "final_text": [[28.0, "'Foo %\\n'"]]}, "Program Information": "Project Name: google-research+arxiv-latex-cleaner", "idx": 503} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _remove_iffalse_block(text):\n \"\"\"Removes possibly nested r'\\iffalse*\\fi' blocks from 'text'.\"\"\"\n p = regex.compile(r'\\\\if\\s*(\\w+)|\\\\fi(?!\\w)')\n level = -1\n positions_to_delete = []\n start, end = 0, 0\n for m in p.finditer(text):\n if (\n m.group().replace(' ', '') == r'\\iffalse'\n or m.group().replace(' ', '') == r'\\if0'\n ) and level == -1:\n level += 1\n start = m.start()\n elif m.group().startswith(r'\\if') and level >= 0:\n level += 1\n elif m.group() == r'\\fi' and level >= 0:\n if level == 0:\n end = m.end()\n positions_to_delete.append((start, end))\n level -= 1\n else:\n pass\n\n for start, end in reversed(positions_to_delete):\n if end < len(text) and text[end].isspace():\n end_to_del = end + 1\n else:\n end_to_del = end\n text = text[:start] + text[end_to_del:]\n\n return text\n\n_remove_iffalse_block(text='\\\\newcommand\\\\figref[1]{Figure~\\\\ref{fig:\\\\#1}}')", "Selected Statement": "level = -1", "Function Input": {"text": "'\\\\newcommand\\\\figref[1]{Figure~\\\\ref{fig:\\\\#1}}'"}, "Variable Values Before Statement": {"Constant": "-1"}, "Value After Statement Execution": "-1", "Variable States During Runtime": {"text": [[1, "'\\\\newcommand\\\\figref[1]{Figure~\\\\ref{fig:\\\\#1}}'"]], "p": [[3.0, "regex.Regex('\\\\\\\\if\\\\s*(\\\\w+)|\\\\\\\\fi(?!\\\\w)', flags=regex.V0)"]], "level": [[4.0, "-1"]], "positions_to_delete": [[5.0, "[]"]], "start": [[6.0, "0"]], "end": [[6.0, "0"]]}, "Program Information": "Project Name: google-research+arxiv-latex-cleaner", "idx": 504} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _search_reference(filename, contents, strict=False):\n \"\"\"Returns a match object if filename is referenced in contents, and None otherwise.\n\n If not strict mode, path prefix and extension are optional.\n \"\"\"\n if strict:\n # regex pattern for strict=True for path/to/img.ext:\n # \\{[\\s%]*path/to/img\\.ext[\\s%]*\\}\n filename_regex = filename.replace('.', r'\\.')\n else:\n filename_path = Path(filename)\n\n # make extension optional\n root, extension = filename_path.stem, filename_path.suffix\n basename_regex = '{}({})?'.format(\n regex.escape(root), regex.escape(extension)\n )\n\n # iterate through parent fragments to make path prefix optional\n path_prefix_regex = ''\n for fragment in reversed(filename_path.parents):\n if fragment.name == '.':\n continue\n fragment = regex.escape(fragment.name)\n path_prefix_regex = '({}{}{})?'.format(\n path_prefix_regex, fragment, os.sep\n )\n\n # Regex pattern for strict=True for path/to/img.ext:\n # \\{[\\s%]*()?()?[\\s%]*\\}\n filename_regex = path_prefix_regex + basename_regex\n\n # Some files 'path/to/file' are referenced in tex as './path/to/file' thus\n # adds prefix for relative paths starting with './' or '.\\' to regex search.\n filename_regex = r'(.' + os.sep + r')?' + filename_regex\n\n # Pads with braces and optional whitespace/comment characters.\n patn = r'\\{{[\\s%]*{}[\\s%]*\\}}'.format(filename_regex)\n # Picture references in LaTeX are allowed to be in different cases.\n return regex.search(patn, contents, regex.IGNORECASE)\n\n_search_reference(filename='to/img.ext', contents='{img.ext}', strict=False)", "Selected Statement": "path_prefix_regex = ''", "Function Input": {"filename": "'to/img.ext'", "contents": "'{img.ext}'", "strict": "False"}, "Variable Values Before Statement": {"Constant": "''"}, "Value After Statement Execution": "''", "Variable States During Runtime": {"filename": [[1, "'to/img.ext'"]], "contents": [[1, "'{img.ext}'"]], "strict": [[1, "False"]], "filename_path": [[11.0, "PosixPath('to/img.ext')"]], "root": [[14.0, "'img'"]], "extension": [[14.0, "'.ext'"]], "basename_regex": [[15.0, "'img(\\\\.ext)?'"]], "path_prefix_regex": [[20.0, "''"], [25.0, "'(/)?'"], [25.0, "'((/)?to/)?'"]], "fragment": [[21.0, "PosixPath('.')"], [24.0, "''"], [21.0, "PosixPath('to')"], [24.0, "'to'"]], "filename_regex": [[31.0, "'((/)?to/)?img(\\\\.ext)?'"], [35.0, "'(./)?((/)?to/)?img(\\\\.ext)?'"]], "patn": [[38.0, "'\\\\{[\\\\s%]*(./)?((/)?to/)?img(\\\\.ext)?[\\\\s%]*\\\\}'"]]}, "Program Information": "Project Name: google-research+arxiv-latex-cleaner", "idx": 505} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def parse_layout(layout_str):\n \"\"\"Parse a layout string\n\n Return a dict\n {'walls': list_of_wall_coordinates,\n 'food' : list_of_food_coordinates,\n 'bot' : list_of_4_bot_coordinate}\n\n A layout string is composed of wall characters '#', food characters '.', and\n bot characters '0', '1', '2', and '3'.\n\n Valid layouts must be enclosed by walls and be of rectangular shape. Example:\n\n ########\n #0 . #\n #2 1#\n # . 3#\n ########\n\n\n If items are overlapping, several layout strings can be concateneted:\n ########\n #0 . #\n # 1#\n # . 3#\n ########\n ########\n #2 . #\n # 1#\n # . 3#\n ########\n\n In this case, bot '0' and bot '2' are on top of each other at position (1,1)\n \"\"\"\n layout_list = []\n start = False\n for i, line in enumerate(layout_str.splitlines()):\n row = line.strip()\n if not row:\n # ignore emptylines\n continue\n if not start:\n # start a new layout\n # check that row is a valid opening string\n if row.count('#') != len(row):\n raise ValueError(f\"Layout does not start with a row of walls (line: {i})!\")\n current_layout = [row]\n start = True\n continue\n # we are in the middle of a layout, just append to the current\n # layout unless we detect the closing string\n current_layout.append(row)\n if row.count('#') == len(row):\n # this is a closing string\n # append the layout to tha layout list\n layout_list.append('\\n'.join(current_layout))\n start = False\n\n if start:\n # the last layout has not been closed, complain here!\n raise ValueError(f\"Layout does not end with a row of walls (line: {i})!\")\n\n # initialize walls, food and bots from the first layout\n out = parse_single_layout(layout_list.pop(0))\n for layout in layout_list:\n items = parse_layout(layout)\n # walls should always be the same\n if items['walls'] != out['walls']:\n raise ValueError('Walls are not equal in all layouts!')\n # add the food, removing duplicates\n out['food'] = list(set(out['food'] + items['food']))\n # add the bots\n for bot_idx, bot_pos in enumerate(items['bots']):\n if bot_pos:\n # this bot position is not None, overwrite whatever we had before\n out['bots'][bot_idx] = bot_pos\n\n return out\n\nparse_layout(layout_str='\\n ##################\\n #. ... .##. 3#\\n # # # . .### #1#\\n # # ##. . #\\n # . .## # #\\n #0# ###. . # # #\\n #2 .##. ... .#\\n ################## ')", "Selected Statement": "start = False", "Function Input": {"layout_str": "'\\n ##################\\n #. ... .##. 3#\\n # # # . .### #1#\\n # # ##. . #\\n # . .## # #\\n #0# ###. . # # #\\n #2 .##. ... .#\\n ################## '"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"layout_str": [[1, "'\\n ##################\\n #. ... .##. 3#\\n # # # . .### #1#\\n # # ##. . #\\n # . .## # #\\n #0# ###. . # # #\\n #2 .##. ... .#\\n ################## '"]], "layout_list": [[35.0, "[]"], [56.0, "['##################\\n#. ... .##. 3#\\n# # # . .### #1#\\n# # ##. . #\\n# . .## # #\\n#0# ###. . # # #\\n#2 .##. ... .#\\n##################']"], [64.0, "[]"]], "start": [[36.0, "False"], [48.0, "True"], [57.0, "False"]], "i": [[37.0, "0"], [37.0, "1"], [37.0, "2"], [37.0, "3"], [37.0, "4"], [37.0, "5"], [37.0, "6"], [37.0, "7"], [37.0, "8"]], "line": [[37.0, "''"], [37.0, "' ##################'"], [37.0, "' #. ... .##. 3#'"], [37.0, "' # # # . .### #1#'"], [37.0, "' # # ##. . #'"], [37.0, "' # . .## # #'"], [37.0, "' #0# ###. . # # #'"], [37.0, "' #2 .##. ... .#'"], [37.0, "' ################## '"]], "row": [[38.0, "''"], [38.0, "'##################'"], [38.0, "'#. ... .##. 3#'"], [38.0, "'# # # . .### #1#'"], [38.0, "'# # ##. . #'"], [38.0, "'# . .## # #'"], [38.0, "'#0# ###. . # # #'"], [38.0, "'#2 .##. ... .#'"], [38.0, "'##################'"]], "current_layout": [[47.0, "['##################']"], [52.0, "['##################', '#. ... .##. 3#']"], [52.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#']"], [52.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #']"], [52.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #']"], [52.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #', '#0# ###. . # # #']"], [52.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #', '#0# ###. . # # #', '#2 .##. ... .#']"], [52.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #', '#0# ###. . # # #', '#2 .##. ... .#', '##################']"]], "out": [[64.0, "{'walls': [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (1, 0), (1, 7), (2, 0), (2, 2), (2, 3), (2, 5), (2, 7), (3, 0), (3, 7), (4, 0), (4, 2), (4, 3), (4, 5), (4, 7), (5, 0), (5, 3), (5, 5), (5, 7), (6, 0), (6, 5), (6, 7), (7, 0), (7, 7), (8, 0), (8, 1), (8, 6), (8, 7), (9, 0), (9, 1), (9, 6), (9, 7), (10, 0), (10, 7), (11, 0), (11, 2), (11, 7), (12, 0), (12, 2), (12, 4), (12, 7), (13, 0), (13, 2), (13, 4), (13, 5), (13, 7), (14, 0), (14, 7), (15, 0), (15, 2), (15, 4), (15, 5), (15, 7), (16, 0), (16, 7), (17, 0), (17, 1), (17, 2), (17, 3), (17, 4), (17, 5), (17, 6), (17, 7)], 'food': [(1, 1), (3, 1), (4, 1), (5, 1), (6, 3), (7, 1), (7, 2), (7, 4), (7, 5), (7, 6), (10, 1), (10, 2), (10, 3), (10, 5), (10, 6), (11, 4), (12, 6), (13, 6), (14, 6), (16, 6)], 'bots': [(1, 5), (16, 2), (1, 6), (16, 1)]}"]]}, "Program Information": "Project Name: ASPP+pelita", "idx": 506} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def parse_single_layout(layout_str):\n \"\"\"Parse a single layout from a string\n\n See parse_layout for details about valid layout strings.\n \"\"\"\n # width of the layout (x-axis)\n width = None\n # list of layout rows\n rows = []\n start = False\n for i, line in enumerate(layout_str.splitlines()):\n row = line.strip()\n if not row:\n # always ignore empty lines\n continue\n # a layout is always started by a full row of walls\n if not start:\n if row.count('#') != len(row):\n raise ValueError(f\"Layout must be enclosed by walls (line: {i})!\")\n else:\n # start the layout parsing\n start = True\n # set width of layout\n width = len(row)\n # check that width is even\n if width % 2:\n raise ValueError(f\"Layout width must be even (found {width})!\")\n rows.append(row)\n continue\n # Here we are within the layout\n # every row must have the same length\n if len(row) != width:\n raise ValueError(f\"Layout rows have differing widths (line: {i})!\")\n # rows are always enclosed by walls\n if row[0] != '#' or row[-1] != '#':\n raise ValueError(f\"Layout must be enclosed by walls (line:{i})!\")\n # append current row to the list of rows\n rows.append(row)\n # detect closing row and ignore whatever follows\n if row.count('#') == len(row):\n start = False\n break\n\n if start:\n # layout has not been closed!\n raise ValueError(f\"Layout must be enclosed by walls (line:{i})!\")\n\n # height of the layout (y-axis)\n height = len(rows)\n walls = []\n food = []\n # bot positions (we assume 4 bots)\n bots = [None]*4\n\n # iterate through the grid of characters\n for y, row in enumerate(rows):\n for x, char in enumerate(row):\n coord = (x, y)\n # assign the char to the corresponding list\n if char == '#':\n # wall\n walls.append(coord)\n elif char == '.':\n # food\n food.append(coord)\n elif char == ' ':\n # empty\n continue\n else:\n # bot\n try:\n # we expect an 0<=index<=3\n bot_idx = int(char)\n if bot_idx >= len(bots):\n # reuse the except below\n raise ValueError\n except ValueError:\n raise ValueError(f\"Unknown character {char} in maze!\")\n bots[bot_idx] = coord\n walls.sort()\n food.sort()\n return {'walls':walls, 'food':food, 'bots':bots}\n\nparse_single_layout(layout_str='##################\\n#. ... .##. 3#\\n# # # . .### #1#\\n# # ##. . #\\n# . .## # #\\n#0# ###. . # # #\\n#2 .##. ... .#\\n##################')", "Selected Statement": "start = False", "Function Input": {"layout_str": "'##################\\n#. ... .##. 3#\\n# # # . .### #1#\\n# # ##. . #\\n# . .## # #\\n#0# ###. . # # #\\n#2 .##. ... .#\\n##################'"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"layout_str": [[1, "'##################\\n#. ... .##. 3#\\n# # # . .### #1#\\n# # ##. . #\\n# . .## # #\\n#0# ###. . # # #\\n#2 .##. ... .#\\n##################'"]], "width": [[7.0, "None"], [24.0, "18"]], "rows": [[9.0, "[]"], [28.0, "['##################']"], [38.0, "['##################', '#. ... .##. 3#']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #', '#0# ###. . # # #']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #', '#0# ###. . # # #', '#2 .##. ... .#']"], [38.0, "['##################', '#. ... .##. 3#', '# # # . .### #1#', '# # ##. . #', '# . .## # #', '#0# ###. . # # #', '#2 .##. ... .#', '##################']"]], "start": [[10.0, "False"], [22.0, "True"], [41.0, "False"]], "i": [[11.0, "0"], [11.0, "1"], [11.0, "2"], [11.0, "3"], [11.0, "4"], [11.0, "5"], [11.0, "6"], [11.0, "7"]], "line": [[11.0, "'##################'"], [11.0, "'#. ... .##. 3#'"], [11.0, "'# # # . .### #1#'"], [11.0, "'# # ##. . #'"], [11.0, "'# . .## # #'"], [11.0, "'#0# ###. . # # #'"], [11.0, "'#2 .##. ... .#'"], [11.0, "'##################'"]], "row": [[12.0, "'##################'"], [12.0, "'#. ... .##. 3#'"], [12.0, "'# # # . .### #1#'"], [12.0, "'# # ##. . #'"], [12.0, "'# . .## # #'"], [12.0, "'#0# ###. . # # #'"], [12.0, "'#2 .##. ... .#'"], [12.0, "'##################'"], [56.0, "'#. ... .##. 3#'"], [56.0, "'# # # . .### #1#'"], [56.0, "'# # ##. . #'"], [56.0, "'# . .## # #'"], [56.0, "'#0# ###. . # # #'"], [56.0, "'#2 .##. ... .#'"], [56.0, "'##################'"]], "height": [[49.0, "8"]], "walls": [[50.0, "[]"], [62.0, "[(0, 0)]"], [62.0, "[(0, 0), (1, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7), (14, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7), (14, 7), (15, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7), (14, 7), (15, 7), (16, 7)]"], [62.0, "[(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (16, 0), (17, 0), (0, 1), (8, 1), (9, 1), (17, 1), (0, 2), (2, 2), (4, 2), (11, 2), (12, 2), (13, 2), (15, 2), (17, 2), (0, 3), (2, 3), (4, 3), (5, 3), (17, 3), (0, 4), (12, 4), (13, 4), (15, 4), (17, 4), (0, 5), (2, 5), (4, 5), (5, 5), (6, 5), (13, 5), (15, 5), (17, 5), (0, 6), (8, 6), (9, 6), (17, 6), (0, 7), (1, 7), (2, 7), (3, 7), (4, 7), (5, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7), (14, 7), (15, 7), (16, 7), (17, 7)]"], [80.0, "[(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (1, 0), (1, 7), (2, 0), (2, 2), (2, 3), (2, 5), (2, 7), (3, 0), (3, 7), (4, 0), (4, 2), (4, 3), (4, 5), (4, 7), (5, 0), (5, 3), (5, 5), (5, 7), (6, 0), (6, 5), (6, 7), (7, 0), (7, 7), (8, 0), (8, 1), (8, 6), (8, 7), (9, 0), (9, 1), (9, 6), (9, 7), (10, 0), (10, 7), (11, 0), (11, 2), (11, 7), (12, 0), (12, 2), (12, 4), (12, 7), (13, 0), (13, 2), (13, 4), (13, 5), (13, 7), (14, 0), (14, 7), (15, 0), (15, 2), (15, 4), (15, 5), (15, 7), (16, 0), (16, 7), (17, 0), (17, 1), (17, 2), (17, 3), (17, 4), (17, 5), (17, 6), (17, 7)]"]], "food": [[51.0, "[]"], [65.0, "[(1, 1)]"], [65.0, "[(1, 1), (3, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6), (12, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6), (12, 6), (13, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6), (12, 6), (13, 6), (14, 6)]"], [65.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (7, 1), (10, 1), (7, 2), (10, 2), (6, 3), (10, 3), (7, 4), (11, 4), (7, 5), (10, 5), (7, 6), (10, 6), (12, 6), (13, 6), (14, 6), (16, 6)]"], [81.0, "[(1, 1), (3, 1), (4, 1), (5, 1), (6, 3), (7, 1), (7, 2), (7, 4), (7, 5), (7, 6), (10, 1), (10, 2), (10, 3), (10, 5), (10, 6), (11, 4), (12, 6), (13, 6), (14, 6), (16, 6)]"]], "bots": [[53.0, "[None, None, None, None]"], [79.0, "[None, None, None, (16, 1)]"], [79.0, "[None, (16, 2), None, (16, 1)]"], [79.0, "[(1, 5), (16, 2), None, (16, 1)]"], [79.0, "[(1, 5), (16, 2), (1, 6), (16, 1)]"]], "y": [[56.0, "0"], [56.0, "1"], [56.0, "2"], [56.0, "3"], [56.0, "4"], [56.0, "5"], [56.0, "6"], [56.0, "7"]], "x": [[57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"], [57.0, "0"], [57.0, "1"], [57.0, "2"], [57.0, "3"], [57.0, "4"], [57.0, "5"], [57.0, "6"], [57.0, "7"], [57.0, "8"], [57.0, "9"], [57.0, "10"], [57.0, "11"], [57.0, "12"], [57.0, "13"], [57.0, "14"], [57.0, "15"], [57.0, "16"], [57.0, "17"]], "char": [[57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'3'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'1'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'0'"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "' '"], [57.0, "'#'"], [57.0, "'2'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "' '"], [57.0, "'.'"], [57.0, "'#'"]], "coord": [[58.0, "(0, 0)"], [58.0, "(1, 0)"], [58.0, "(2, 0)"], [58.0, "(3, 0)"], [58.0, "(4, 0)"], [58.0, "(5, 0)"], [58.0, "(6, 0)"], [58.0, "(7, 0)"], [58.0, "(8, 0)"], [58.0, "(9, 0)"], [58.0, "(10, 0)"], [58.0, "(11, 0)"], [58.0, "(12, 0)"], [58.0, "(13, 0)"], [58.0, "(14, 0)"], [58.0, "(15, 0)"], [58.0, "(16, 0)"], [58.0, "(17, 0)"], [58.0, "(0, 1)"], [58.0, "(1, 1)"], [58.0, "(2, 1)"], [58.0, "(3, 1)"], [58.0, "(4, 1)"], [58.0, "(5, 1)"], [58.0, "(6, 1)"], [58.0, "(7, 1)"], [58.0, "(8, 1)"], [58.0, "(9, 1)"], [58.0, "(10, 1)"], [58.0, "(11, 1)"], [58.0, "(12, 1)"], [58.0, "(13, 1)"], [58.0, "(14, 1)"], [58.0, "(15, 1)"], [58.0, "(16, 1)"], [58.0, "(17, 1)"], [58.0, "(0, 2)"], [58.0, "(1, 2)"], [58.0, "(2, 2)"], [58.0, "(3, 2)"], [58.0, "(4, 2)"], [58.0, "(5, 2)"], [58.0, "(6, 2)"], [58.0, "(7, 2)"], [58.0, "(8, 2)"], [58.0, "(9, 2)"], [58.0, "(10, 2)"], [58.0, "(11, 2)"], [58.0, "(12, 2)"], [58.0, "(13, 2)"], [58.0, "(14, 2)"], [58.0, "(15, 2)"], [58.0, "(16, 2)"], [58.0, "(17, 2)"], [58.0, "(0, 3)"], [58.0, "(1, 3)"], [58.0, "(2, 3)"], [58.0, "(3, 3)"], [58.0, "(4, 3)"], [58.0, "(5, 3)"], [58.0, "(6, 3)"], [58.0, "(7, 3)"], [58.0, "(8, 3)"], [58.0, "(9, 3)"], [58.0, "(10, 3)"], [58.0, "(11, 3)"], [58.0, "(12, 3)"], [58.0, "(13, 3)"], [58.0, "(14, 3)"], [58.0, "(15, 3)"], [58.0, "(16, 3)"], [58.0, "(17, 3)"], [58.0, "(0, 4)"], [58.0, "(1, 4)"], [58.0, "(2, 4)"], [58.0, "(3, 4)"], [58.0, "(4, 4)"], [58.0, "(5, 4)"], [58.0, "(6, 4)"], [58.0, "(7, 4)"], [58.0, "(8, 4)"], [58.0, "(9, 4)"], [58.0, "(10, 4)"], [58.0, "(11, 4)"], [58.0, "(12, 4)"], [58.0, "(13, 4)"], [58.0, "(14, 4)"], [58.0, "(15, 4)"], [58.0, "(16, 4)"], [58.0, "(17, 4)"], [58.0, "(0, 5)"], [58.0, "(1, 5)"], [58.0, "(2, 5)"], [58.0, "(3, 5)"], [58.0, "(4, 5)"], [58.0, "(5, 5)"], [58.0, "(6, 5)"], [58.0, "(7, 5)"], [58.0, "(8, 5)"], [58.0, "(9, 5)"], [58.0, "(10, 5)"], [58.0, "(11, 5)"], [58.0, "(12, 5)"], [58.0, "(13, 5)"], [58.0, "(14, 5)"], [58.0, "(15, 5)"], [58.0, "(16, 5)"], [58.0, "(17, 5)"], [58.0, "(0, 6)"], [58.0, "(1, 6)"], [58.0, "(2, 6)"], [58.0, "(3, 6)"], [58.0, "(4, 6)"], [58.0, "(5, 6)"], [58.0, "(6, 6)"], [58.0, "(7, 6)"], [58.0, "(8, 6)"], [58.0, "(9, 6)"], [58.0, "(10, 6)"], [58.0, "(11, 6)"], [58.0, "(12, 6)"], [58.0, "(13, 6)"], [58.0, "(14, 6)"], [58.0, "(15, 6)"], [58.0, "(16, 6)"], [58.0, "(17, 6)"], [58.0, "(0, 7)"], [58.0, "(1, 7)"], [58.0, "(2, 7)"], [58.0, "(3, 7)"], [58.0, "(4, 7)"], [58.0, "(5, 7)"], [58.0, "(6, 7)"], [58.0, "(7, 7)"], [58.0, "(8, 7)"], [58.0, "(9, 7)"], [58.0, "(10, 7)"], [58.0, "(11, 7)"], [58.0, "(12, 7)"], [58.0, "(13, 7)"], [58.0, "(14, 7)"], [58.0, "(15, 7)"], [58.0, "(16, 7)"], [58.0, "(17, 7)"]], "bot_idx": [[73.0, "3"], [73.0, "1"], [73.0, "0"], [73.0, "2"]]}, "Program Information": "Project Name: ASPP+pelita", "idx": 507} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def initial_positions(walls):\n \"\"\"Calculate initial positions.\n\n Given the list of walls, returns the free positions that are closest to the\n bottom left and top right corner. The algorithm starts searching from\n (1, height-2) and (width-2, 1) respectively and uses the Manhattan distance\n for judging what is closest. On equal distances, a smaller distance in the\n x value is preferred.\n \"\"\"\n width = max(walls)[0] + 1\n height = max(walls)[1] + 1\n\n left_start = (1, height - 2)\n left = []\n right_start = (width - 2, 1)\n right = []\n\n dist = 0\n while len(left) < 2:\n # iterate through all possible x distances (inclusive)\n for x_dist in range(dist + 1):\n y_dist = dist - x_dist\n pos = (left_start[0] + x_dist, left_start[1] - y_dist)\n # if both coordinates are out of bounds, we stop\n if not (0 <= pos[0] < width) and not (0 <= pos[1] < height):\n raise ValueError(\"Not enough free initial positions.\")\n # if one coordinate is out of bounds, we just continue\n if not (0 <= pos[0] < width) or not (0 <= pos[1] < height):\n continue\n # check if the new value is free\n if pos not in walls:\n left.append(pos)\n\n if len(left) == 2:\n break\n\n dist += 1\n\n dist = 0\n while len(right) < 2:\n # iterate through all possible x distances (inclusive)\n for x_dist in range(dist + 1):\n y_dist = dist - x_dist\n pos = (right_start[0] - x_dist, right_start[1] + y_dist)\n # if both coordinates are out of bounds, we stop\n if not (0 <= pos[0] < width) and not (0 <= pos[1] < height):\n raise ValueError(\"Not enough free initial positions.\")\n # if one coordinate is out of bounds, we just continue\n if not (0 <= pos[0] < width) or not (0 <= pos[1] < height):\n continue\n # check if the new value is free\n if pos not in walls:\n right.append(pos)\n\n if len(right) == 2:\n break\n\n dist += 1\n\n # lower indices start further away\n left.reverse()\n right.reverse()\n return [left[0], right[0], left[1], right[1]]\n\ninitial_positions(walls=[(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 3), (2, 0), (2, 1), (2, 3), (3, 0), (3, 1), (3, 3), (4, 0), (4, 1), (4, 3), (5, 0), (5, 3), (6, 0), (6, 3), (7, 0), (7, 1), (7, 2), (7, 3)])", "Selected Statement": "dist = 0", "Function Input": {"walls": "[(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 3), (2, 0), (2, 1), (2, 3), (3, 0), (3, 1), (3, 3), (4, 0), (4, 1), (4, 3), (5, 0), (5, 3), (6, 0), (6, 3), (7, 0), (7, 1), (7, 2), (7, 3)]"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"walls": [[1, "[(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 3), (2, 0), (2, 1), (2, 3), (3, 0), (3, 1), (3, 3), (4, 0), (4, 1), (4, 3), (5, 0), (5, 3), (6, 0), (6, 3), (7, 0), (7, 1), (7, 2), (7, 3)]"]], "width": [[10.0, "8"]], "height": [[11.0, "4"]], "left_start": [[13.0, "(1, 2)"]], "left": [[14.0, "[]"], [32.0, "[(1, 2)]"], [32.0, "[(1, 2), (1, 1)]"], [61.0, "[(1, 1), (1, 2)]"]], "right_start": [[15.0, "(6, 1)"]], "right": [[16.0, "[]"], [53.0, "[(6, 1)]"], [53.0, "[(6, 1), (6, 2)]"], [62.0, "[(6, 2), (6, 1)]"]], "dist": [[18.0, "0"], [37.0, "1"], [37.0, "2"], [39.0, "0"], [58.0, "1"], [58.0, "2"]], "x_dist": [[21.0, "0"]], "y_dist": [[22.0, "0"], [22.0, "1"], [43.0, "0"], [43.0, "1"]], "pos": [[23.0, "(1, 2)"], [23.0, "(1, 1)"], [44.0, "(6, 1)"], [44.0, "(6, 2)"]]}, "Program Information": "Project Name: ASPP+pelita", "idx": 508} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def get_air_quality(city):\n \"\"\"\n \u901a\u8fc7\u57ce\u5e02\u540d\u83b7\u53d6\u7a7a\u6c14\u8d28\u91cf\n \u5b98\u7f51\uff1ahttp://aqicn.org/here/\n token \u7533\u8bf7\u5730\u5740\uff1ahttp://aqicn.org/data-platform/token/#/\n :param city: \u57ce\u5e02\n :return:\n \"\"\"\n\n if not city or not city.strip():\n return\n print('\u83b7\u53d6 {} \u7684\u7a7a\u6c14\u8d28\u91cf...'.format(city))\n try:\n\n url = 'http://api.waqi.info/feed/{city}/?token={token}'.format(city=city, token=AQICN_TOKEN)\n resp = requests.get(url)\n if resp.status_code == 200:\n # print(resp.text)\n content_dict = resp.json()\n if content_dict.get('status') == 'ok':\n data_dict = content_dict['data']\n aqi = data_dict['aqi']\n air_status = '\u4e25\u91cd\u6c61\u67d3'\n for key in sorted(AIR_STATUS_DICT):\n if key >= aqi:\n air_status = AIR_STATUS_DICT[key]\n break\n aqi_info = '{city} PM2.5\uff1a{aqi} {air_status}'.format(city=city, aqi=aqi, air_status=air_status)\n # print(aqi_info)\n return aqi_info\n else:\n print('\u83b7\u53d6\u7a7a\u6c14\u8d28\u91cf\u5931\u8d25:{}'.format(content_dict['data']))\n return None\n print('\u83b7\u53d6\u7a7a\u6c14\u8d28\u91cf\u5931\u8d25\u3002')\n except Exception as exception:\n print(str(exception))\n return None\n\nget_air_quality(city='\u6842\u6797')", "Selected Statement": "air_status = '\u4e25\u91cd\u6c61\u67d3'", "Function Input": {"city": "'\u6842\u6797'"}, "Variable Values Before Statement": {"Constant": "'\u4e25\u91cd\u6c61\u67d3'"}, "Value After Statement Execution": "'\u4e25\u91cd\u6c61\u67d3'", "Variable States During Runtime": {"city": [[1, "'\u6842\u6797'"]], "url": [[15.0, "'http://api.waqi.info/feed/\u6842\u6797/?token=6382db85ef321ae81f316486de0b5b8aa6c84f62'"]], "resp": [[16.0, ""]], "content_dict": [[19.0, "{'status': 'ok', 'data': {'aqi': 50, 'idx': 1552, 'attributions': [{'url': 'http://sthjt.gxzf.gov.cn/', 'name': 'Guangxi Zhuang Autonomous Region Environmental Protection Agency (\u5e7f\u897f\u58ee\u65cf\u81ea\u6cbb\u533a\u73af\u5883\u4fdd\u62a4\u5385)'}, {'url': 'https://waqi.info/', 'name': 'World Air Quality Index Project'}], 'city': {'geo': [25.273566, 110.290195], 'name': 'Guilin (\u6842\u6797)', 'url': 'https://aqicn.org/city/guilin', 'location': ''}, 'dominentpol': 'pm25', 'iaqi': {'co': {'v': 9.1}, 'h': {'v': 77}, 'no2': {'v': 4.6}, 'p': {'v': 1012}, 'pm10': {'v': 20}, 'pm25': {'v': 50}, 'so2': {'v': 4.1}, 't': {'v': 18}, 'w': {'v': 4.6}}, 'time': {'s': '2024-04-04 19:00:00', 'tz': '+08:00', 'v': 1712257200, 'iso': '2024-04-04T19:00:00+08:00'}, 'forecast': {'daily': {'o3': [{'avg': 7, 'day': '2024-04-02', 'max': 22, 'min': 4}, {'avg': 3, 'day': '2024-04-03', 'max': 8, 'min': 2}, {'avg': 6, 'day': '2024-04-04', 'max': 12, 'min': 2}, {'avg': 3, 'day': '2024-04-05', 'max': 5, 'min': 1}, {'avg': 6, 'day': '2024-04-06', 'max': 7, 'min': 5}, {'avg': 8, 'day': '2024-04-07', 'max': 13, 'min': 5}, {'avg': 15, 'day': '2024-04-08', 'max': 23, 'min': 10}, {'avg': 15, 'day': '2024-04-09', 'max': 17, 'min': 14}], 'pm10': [{'avg': 47, 'day': '2024-04-02', 'max': 58, 'min': 32}, {'avg': 56, 'day': '2024-04-03', 'max': 83, 'min': 46}, {'avg': 45, 'day': '2024-04-04', 'max': 46, 'min': 41}, {'avg': 29, 'day': '2024-04-05', 'max': 38, 'min': 24}, {'avg': 22, 'day': '2024-04-06', 'max': 28, 'min': 19}, {'avg': 24, 'day': '2024-04-07', 'max': 28, 'min': 19}, {'avg': 22, 'day': '2024-04-08', 'max': 28, 'min': 19}, {'avg': 30, 'day': '2024-04-09', 'max': 38, 'min': 28}, {'avg': 44, 'day': '2024-04-10', 'max': 46, 'min': 28}], 'pm25': [{'avg': 140, 'day': '2024-04-02', 'max': 158, 'min': 98}, {'avg': 153, 'day': '2024-04-03', 'max': 185, 'min': 138}, {'avg': 136, 'day': '2024-04-04', 'max': 138, 'min': 123}, {'avg': 90, 'day': '2024-04-05', 'max': 115, 'min': 70}, {'avg': 72, 'day': '2024-04-06', 'max': 89, 'min': 68}, {'avg': 80, 'day': '2024-04-07', 'max': 89, 'min': 68}, {'avg': 74, 'day': '2024-04-08', 'max': 88, 'min': 68}, {'avg': 89, 'day': '2024-04-09', 'max': 89, 'min': 89}, {'avg': 119, 'day': '2024-04-10', 'max': 138, 'min': 89}], 'uvi': [{'avg': 0, 'day': '2022-10-15', 'max': 0, 'min': 0}, {'avg': 1, 'day': '2022-10-16', 'max': 7, 'min': 0}, {'avg': 1, 'day': '2022-10-17', 'max': 8, 'min': 0}, {'avg': 1, 'day': '2022-10-18', 'max': 8, 'min': 0}, {'avg': 1, 'day': '2022-10-19', 'max': 8, 'min': 0}, {'avg': 1, 'day': '2022-10-20', 'max': 5, 'min': 0}]}}, 'debug': {'sync': '2024-04-04T20:26:23+09:00'}}}"]], "data_dict": [[21.0, "{'aqi': 50, 'idx': 1552, 'attributions': [{'url': 'http://sthjt.gxzf.gov.cn/', 'name': 'Guangxi Zhuang Autonomous Region Environmental Protection Agency (\u5e7f\u897f\u58ee\u65cf\u81ea\u6cbb\u533a\u73af\u5883\u4fdd\u62a4\u5385)'}, {'url': 'https://waqi.info/', 'name': 'World Air Quality Index Project'}], 'city': {'geo': [25.273566, 110.290195], 'name': 'Guilin (\u6842\u6797)', 'url': 'https://aqicn.org/city/guilin', 'location': ''}, 'dominentpol': 'pm25', 'iaqi': {'co': {'v': 9.1}, 'h': {'v': 77}, 'no2': {'v': 4.6}, 'p': {'v': 1012}, 'pm10': {'v': 20}, 'pm25': {'v': 50}, 'so2': {'v': 4.1}, 't': {'v': 18}, 'w': {'v': 4.6}}, 'time': {'s': '2024-04-04 19:00:00', 'tz': '+08:00', 'v': 1712257200, 'iso': '2024-04-04T19:00:00+08:00'}, 'forecast': {'daily': {'o3': [{'avg': 7, 'day': '2024-04-02', 'max': 22, 'min': 4}, {'avg': 3, 'day': '2024-04-03', 'max': 8, 'min': 2}, {'avg': 6, 'day': '2024-04-04', 'max': 12, 'min': 2}, {'avg': 3, 'day': '2024-04-05', 'max': 5, 'min': 1}, {'avg': 6, 'day': '2024-04-06', 'max': 7, 'min': 5}, {'avg': 8, 'day': '2024-04-07', 'max': 13, 'min': 5}, {'avg': 15, 'day': '2024-04-08', 'max': 23, 'min': 10}, {'avg': 15, 'day': '2024-04-09', 'max': 17, 'min': 14}], 'pm10': [{'avg': 47, 'day': '2024-04-02', 'max': 58, 'min': 32}, {'avg': 56, 'day': '2024-04-03', 'max': 83, 'min': 46}, {'avg': 45, 'day': '2024-04-04', 'max': 46, 'min': 41}, {'avg': 29, 'day': '2024-04-05', 'max': 38, 'min': 24}, {'avg': 22, 'day': '2024-04-06', 'max': 28, 'min': 19}, {'avg': 24, 'day': '2024-04-07', 'max': 28, 'min': 19}, {'avg': 22, 'day': '2024-04-08', 'max': 28, 'min': 19}, {'avg': 30, 'day': '2024-04-09', 'max': 38, 'min': 28}, {'avg': 44, 'day': '2024-04-10', 'max': 46, 'min': 28}], 'pm25': [{'avg': 140, 'day': '2024-04-02', 'max': 158, 'min': 98}, {'avg': 153, 'day': '2024-04-03', 'max': 185, 'min': 138}, {'avg': 136, 'day': '2024-04-04', 'max': 138, 'min': 123}, {'avg': 90, 'day': '2024-04-05', 'max': 115, 'min': 70}, {'avg': 72, 'day': '2024-04-06', 'max': 89, 'min': 68}, {'avg': 80, 'day': '2024-04-07', 'max': 89, 'min': 68}, {'avg': 74, 'day': '2024-04-08', 'max': 88, 'min': 68}, {'avg': 89, 'day': '2024-04-09', 'max': 89, 'min': 89}, {'avg': 119, 'day': '2024-04-10', 'max': 138, 'min': 89}], 'uvi': [{'avg': 0, 'day': '2022-10-15', 'max': 0, 'min': 0}, {'avg': 1, 'day': '2022-10-16', 'max': 7, 'min': 0}, {'avg': 1, 'day': '2022-10-17', 'max': 8, 'min': 0}, {'avg': 1, 'day': '2022-10-18', 'max': 8, 'min': 0}, {'avg': 1, 'day': '2022-10-19', 'max': 8, 'min': 0}, {'avg': 1, 'day': '2022-10-20', 'max': 5, 'min': 0}]}}, 'debug': {'sync': '2024-04-04T20:26:23+09:00'}}"]], "aqi": [[22.0, "50"]], "air_status": [[23.0, "'\u4e25\u91cd\u6c61\u67d3'"], [26.0, "'\u4f18'"]], "key": [[24.0, "50"]], "aqi_info": [[28.0, "'\u6842\u6797 PM2.5\uff1a50 \u4f18'"]]}, "Program Information": "Project Name: sfyc23+EverydayWechat", "idx": 509} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def attr_map(parsed_params):\n \"\"\"Mapping for the schema's fields (parameters)\"\"\"\n mapped_attrs = {}\n for param_type, def_desc in parsed_params.items():\n if ':' in param_type:\n param, _type = param_type.split(':', 1)\n _type = _type.strip()\n else:\n param = param_type\n _type = None\n\n # TODO: this won't handle # in strings ...\n if '#' in def_desc:\n default, description = def_desc.split('#', 1)\n default = default.strip()\n description = description.strip()\n else:\n default = def_desc.strip()\n description = ''\n\n mapped_attrs.update(\n {\n param: {\n 'type': _type,\n 'default': default,\n 'description': description,\n }\n }\n )\n return mapped_attrs\n\nattr_map(parsed_params=OrderedDict([('bar: int', '0')]))", "Selected Statement": "description = ''", "Function Input": {"parsed_params": "OrderedDict([('bar: int', '0')])"}, "Variable Values Before Statement": {"Constant": "''"}, "Value After Statement Execution": "''", "Variable States During Runtime": {"parsed_params": [[1, "OrderedDict([('bar: int', '0')])"]], "mapped_attrs": [[3.0, "{}"], [21.0, "{'bar': {'type': 'int', 'default': '0', 'description': ''}}"]], "param_type": [[4.0, "'bar: int'"]], "def_desc": [[4.0, "'0'"]], "param": [[6.0, "'bar'"]], "_type": [[6.0, "' int'"], [7.0, "'int'"]], "default": [[18.0, "'0'"]], "description": [[19.0, "''"]]}, "Program Information": "Project Name: d3rp+clima", "idx": 510} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _ParseFn(args):\n \"\"\"Parses the list of `args` into (varargs, kwargs), remaining_args.\"\"\"\n kwargs, remaining_kwargs, remaining_args = _ParseKeywordArgs(\n args, all_args, fn_spec.varkw)\n\n # Note: _ParseArgs modifies kwargs.\n parsed_args, kwargs, remaining_args, capacity = _ParseArgs(\n fn_spec.args, fn_spec.defaults, num_required_args, kwargs,\n remaining_args, metadata)\n\n if fn_spec.varargs or fn_spec.varkw:\n # If we're allowed *varargs or **kwargs, there's always capacity.\n capacity = True\n\n extra_kw = set(kwargs) - set(fn_spec.kwonlyargs)\n if fn_spec.varkw is None and extra_kw:\n raise FireError('Unexpected kwargs present:', extra_kw)\n\n missing_kwonly = set(required_kwonly) - set(kwargs)\n if missing_kwonly:\n raise FireError('Missing required flags:', missing_kwonly)\n\n # If we accept *varargs, then use all remaining arguments for *varargs.\n if fn_spec.varargs is not None:\n varargs, remaining_args = remaining_args, []\n else:\n varargs = []\n\n for index, value in enumerate(varargs):\n varargs[index] = _ParseValue(value, None, None, metadata)\n\n varargs = parsed_args + varargs\n remaining_args += remaining_kwargs\n\n consumed_args = args[:len(args) - len(remaining_args)]\n return (varargs, kwargs), consumed_args, remaining_args, capacity\n\n_ParseFn(args=['x'], all_args=[], fn_spec={args=[], varargs=None, varkw='cli_args', defaults=(), kwonlyargs=[], kwonlydefaults={}, annotations={}}, metadata={'ACCEPTS_POSITIONAL_ARGS': False}, num_required_args=0, required_kwonly=set())", "Selected Statement": "capacity = True", "Function Input": {"args": "['x']", "all_args": "[]", "fn_spec": "{args=[], varargs=None, varkw='cli_args', defaults=(), kwonlyargs=[], kwonlydefaults={}, annotations={}}", "metadata": "{'ACCEPTS_POSITIONAL_ARGS': False}", "num_required_args": "0", "required_kwonly": "set()"}, "Variable Values Before Statement": {"Constant": "True"}, "Value After Statement Execution": "True", "Variable States During Runtime": {"args": [[1, "['x']"]], "all_args": [[1, "[]"]], "fn_spec": [[1, "{args=[], varargs=None, varkw='cli_args', defaults=(), kwonlyargs=[], kwonlydefaults={}, annotations={}}"]], "metadata": [[1, "{'ACCEPTS_POSITIONAL_ARGS': False}"]], "num_required_args": [[1, "0"]], "required_kwonly": [[1, "set()"]], "kwargs": [[3.0, "{}"]], "remaining_kwargs": [[3.0, "[]"]], "remaining_args": [[3.0, "['x']"]], "parsed_args": [[7.0, "[]"]], "capacity": [[7.0, "False"], [13.0, "True"]], "extra_kw": [[15.0, "set()"]], "missing_kwonly": [[19.0, "set()"]], "varargs": [[27.0, "[]"]], "consumed_args": [[35.0, "[]"]]}, "Program Information": "Project Name: d3rp+clima", "idx": 511} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def insert_roles():\n roles = {\n 'User': [Permission.FOLLOW, Permission.COMMENT, Permission.WRITE],\n 'Moderator': [Permission.FOLLOW, Permission.COMMENT,\n Permission.WRITE, Permission.MODERATE],\n 'Administrator': [Permission.FOLLOW, Permission.COMMENT,\n Permission.WRITE, Permission.MODERATE,\n Permission.ADMIN],\n }\n default_role = 'User'\n for r in roles:\n role = Role.query.filter_by(name=r).first()\n if role is None:\n role = Role(name=r)\n role.reset_permissions()\n for perm in roles[r]:\n role.add_permission(perm)\n role.default = (role.name == default_role)\n db.session.add(role)\n db.session.commit()\n\ninsert_roles()", "Selected Statement": "default_role = 'User'", "Function Input": {}, "Variable Values Before Statement": {"Constant": "'User'"}, "Value After Statement Execution": "'User'", "Variable States During Runtime": {"roles": [[2.0, "{'User': [1, 2, 4], 'Moderator': [1, 2, 4, 8], 'Administrator': [1, 2, 4, 8, 16]}"]], "default_role": [[10.0, "'User'"]], "r": [[11.0, "'User'"], [11.0, "'Moderator'"], [11.0, "'Administrator'"]], "role": [[12.0, "None"], [14.0, ""], [12.0, "None"], [14.0, ""], [12.0, "None"], [14.0, ""]], "perm": [[16.0, "1"], [16.0, "2"], [16.0, "4"], [16.0, "1"], [16.0, "2"], [16.0, "4"], [16.0, "8"], [16.0, "1"], [16.0, "2"], [16.0, "4"], [16.0, "8"], [16.0, "16"]]}, "Program Information": "Project Name: miguelgrinberg+flasky", "idx": 512} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def unauthorized(message):\n response = jsonify({'error': 'unauthorized', 'message': message})\n response.status_code = 401\n return response\n\nunauthorized(message='Invalid credentials')", "Selected Statement": "response.status_code = 401", "Function Input": {"message": "'Invalid credentials'"}, "Variable Values Before Statement": {"Constant": "401"}, "Value After Statement Execution": "401", "Variable States During Runtime": {"message": [[1, "'Invalid credentials'"]], "response": [[2.0, ""], [3.0, ""]]}, "Program Information": "Project Name: miguelgrinberg+flasky", "idx": 513} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def check_gitignore(git_root, io, ask=True):\n if not git_root:\n return\n\n try:\n repo = git.Repo(git_root)\n if repo.ignored(\".aider\"):\n return\n except git.exc.InvalidGitRepositoryError:\n pass\n\n pat = \".aider*\"\n\n gitignore_file = Path(git_root) / \".gitignore\"\n if gitignore_file.exists():\n content = io.read_text(gitignore_file)\n if content is None:\n return\n if pat in content.splitlines():\n return\n else:\n content = \"\"\n\n if ask and not io.confirm_ask(f\"Add {pat} to .gitignore (recommended)?\"):\n return\n\n if content and not content.endswith(\"\\n\"):\n content += \"\\n\"\n content += pat + \"\\n\"\n io.write_text(gitignore_file, content)\n\n io.tool_output(f\"Added {pat} to .gitignore\")\n\ncheck_gitignore(git_root=PosixPath('/tmp/tmpcr1f5en7'), io={user_input_color=None, tool_output_color=None, tool_error_color=None, input=None, output=None, pretty=False, yes=True, input_history_file=None, chat_history_file=None, encoding='utf-8', dry_run=False, console=}, ask=True)", "Selected Statement": "pat = \".aider*\"", "Function Input": {"git_root": "PosixPath('/tmp/tmpcr1f5en7')", "io": "{user_input_color=None, tool_output_color=None, tool_error_color=None, input=None, output=None, pretty=False, yes=True, input_history_file=None, chat_history_file=None, encoding='utf-8', dry_run=False, console=}", "ask": "True"}, "Variable Values Before Statement": {"Constant": "\".aider*\""}, "Value After Statement Execution": "\".aider*\"", "Variable States During Runtime": {"git_root": [[1, "PosixPath('/tmp/tmpcr1f5en7')"]], "io": [[1, "{user_input_color=None, tool_output_color=None, tool_error_color=None, input=None, output=None, pretty=False, yes=True, input_history_file=None, chat_history_file=None, encoding='utf-8', dry_run=False, console=}"], [24.0, "{user_input_color=None, tool_output_color=None, tool_error_color=None, input=None, output=None, pretty=False, yes=True, input_history_file=None, chat_history_file=None, encoding='utf-8', dry_run=False, console=, num_user_asks=1}"]], "ask": [[1, "True"]], "repo": [[6.0, ""]], "pat": [[12.0, "'.aider*'"]], "gitignore_file": [[14.0, "PosixPath('/tmp/tmpcr1f5en7/.gitignore')"]], "content": [[22.0, "''"], [29.0, "'.aider*\\n'"]]}, "Program Information": "Project Name: paul-gauthier+aider", "idx": 514} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def find_diffs(content):\n # We can always fence with triple-quotes, because all the udiff content\n # is prefixed with +/-/space.\n\n if not content.endswith(\"\\n\"):\n content = content + \"\\n\"\n\n lines = content.splitlines(keepends=True)\n line_num = 0\n edits = []\n while line_num < len(lines):\n while line_num < len(lines):\n line = lines[line_num]\n if line.startswith(\"```diff\"):\n line_num, these_edits = process_fenced_block(lines, line_num + 1)\n edits += these_edits\n break\n line_num += 1\n\n # For now, just take 1!\n # edits = edits[:1]\n\n return edits\n\nfind_diffs(content='\\nSome text...\\n\\n```diff\\n--- /dev/null\\n+++ file.txt\\n@@ ... @@\\n-Original\\n+Modified\\n```\\n')", "Selected Statement": "line_num = 0", "Function Input": {"content": "'\\nSome text...\\n\\n```diff\\n--- /dev/null\\n+++ file.txt\\n@@ ... @@\\n-Original\\n+Modified\\n```\\n'"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"content": [[1, "'\\nSome text...\\n\\n```diff\\n--- /dev/null\\n+++ file.txt\\n@@ ... @@\\n-Original\\n+Modified\\n```\\n'"]], "lines": [[8.0, "['\\n', 'Some text...\\n', '\\n', '```diff\\n', '--- /dev/null\\n', '+++ file.txt\\n', '@@ ... @@\\n', '-Original\\n', '+Modified\\n', '```\\n']"]], "line_num": [[9.0, "0"], [18.0, "1"], [18.0, "2"], [18.0, "3"], [15.0, "10"]], "edits": [[10.0, "[]"], [16.0, "[('file.txt', ['-Original\\n', '+Modified\\n'])]"]], "line": [[13.0, "'\\n'"], [13.0, "'Some text...\\n'"], [13.0, "'\\n'"], [13.0, "'```diff\\n'"]], "these_edits": [[15.0, "[('file.txt', ['-Original\\n', '+Modified\\n'])]"]]}, "Program Information": "Project Name: paul-gauthier+aider", "idx": 515} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def process_fenced_block(lines, start_line_num):\n for line_num in range(start_line_num, len(lines)):\n line = lines[line_num]\n if line.startswith(\"```\"):\n break\n\n block = lines[start_line_num:line_num]\n block.append(\"@@ @@\")\n\n if block[0].startswith(\"--- \") and block[1].startswith(\"+++ \"):\n # Extract the file path, considering that it might contain spaces\n fname = block[1][4:].strip()\n block = block[2:]\n else:\n fname = None\n\n edits = []\n\n keeper = False\n hunk = []\n op = \" \"\n for line in block:\n hunk.append(line)\n if len(line) < 2:\n continue\n\n if line.startswith(\"+++ \") and hunk[-2].startswith(\"--- \"):\n if hunk[-3] == \"\\n\":\n hunk = hunk[:-3]\n else:\n hunk = hunk[:-2]\n\n edits.append((fname, hunk))\n hunk = []\n keeper = False\n\n fname = line[4:].strip()\n continue\n\n op = line[0]\n if op in \"-+\":\n keeper = True\n continue\n if op != \"@\":\n continue\n if not keeper:\n hunk = []\n continue\n\n hunk = hunk[:-1]\n edits.append((fname, hunk))\n hunk = []\n keeper = False\n\n return line_num + 1, edits\n\nprocess_fenced_block(lines=['\\n', 'Some text...\\n', '\\n', '```diff\\n', '--- /dev/null\\n', '+++ file.txt\\n', '@@ ... @@\\n', '-Original\\n', '+Modified\\n', '```\\n'], start_line_num=4)", "Selected Statement": "keeper = False", "Function Input": {"lines": "['\\n', 'Some text...\\n', '\\n', '```diff\\n', '--- /dev/null\\n', '+++ file.txt\\n', '@@ ... @@\\n', '-Original\\n', '+Modified\\n', '```\\n']", "start_line_num": "4"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"lines": [[1, "['\\n', 'Some text...\\n', '\\n', '```diff\\n', '--- /dev/null\\n', '+++ file.txt\\n', '@@ ... @@\\n', '-Original\\n', '+Modified\\n', '```\\n']"]], "start_line_num": [[1, "4"]], "line_num": [[2.0, "4"], [2.0, "5"], [2.0, "6"], [2.0, "7"], [2.0, "8"], [2.0, "9"]], "line": [[3.0, "'--- /dev/null\\n'"], [3.0, "'+++ file.txt\\n'"], [3.0, "'@@ ... @@\\n'"], [3.0, "'-Original\\n'"], [3.0, "'+Modified\\n'"], [3.0, "'```\\n'"], [22.0, "'@@ ... @@\\n'"], [22.0, "'-Original\\n'"], [22.0, "'+Modified\\n'"], [22.0, "'@@ @@'"]], "block": [[7.0, "['--- /dev/null\\n', '+++ file.txt\\n', '@@ ... @@\\n', '-Original\\n', '+Modified\\n']"], [8.0, "['--- /dev/null\\n', '+++ file.txt\\n', '@@ ... @@\\n', '-Original\\n', '+Modified\\n', '@@ @@']"], [13.0, "['@@ ... @@\\n', '-Original\\n', '+Modified\\n', '@@ @@']"]], "fname": [[12.0, "'file.txt'"]], "edits": [[17.0, "[]"], [51.0, "[('file.txt', ['-Original\\n', '+Modified\\n'])]"]], "keeper": [[19.0, "False"], [42.0, "True"], [53.0, "False"]], "hunk": [[20.0, "[]"], [23.0, "['@@ ... @@\\n']"], [47.0, "[]"], [23.0, "['-Original\\n']"], [23.0, "['-Original\\n', '+Modified\\n']"], [23.0, "['-Original\\n', '+Modified\\n', '@@ @@']"], [50.0, "['-Original\\n', '+Modified\\n']"], [52.0, "[]"]], "op": [[21.0, "' '"], [40.0, "'@'"], [40.0, "'-'"], [40.0, "'+'"], [40.0, "'@'"]]}, "Program Information": "Project Name: paul-gauthier+aider", "idx": 516} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _addpoints(sol, distances, prec):\n \"\"\"\n Try for each point to add it to a given solution-approach.\n\n gives all possibilties and a status about the solution:\n state = 0: possibilities found\n state = 1: no possibilities\n state = 2: solution-approach has a contradiction with a point\n \"\"\"\n res = []\n\n posfound = False\n\n # generate all missing points in the solution approach\n pleft = []\n for n, m in enumerate(sol):\n if np.ndim(m) == 0:\n pleft.append(n)\n\n # try each point to add to the given solution-approach\n for i in pleft:\n ires, state = _addpoint(sol, i, distances, prec)\n\n # if a point is addable, add new solution-approach to the result\n if state == 0:\n posfound = True\n for j in ires:\n res.append(dcopy(j))\n # if one point gives a contradiction, return empty result and state 2\n elif state == 2:\n return [], 2\n\n # if no point is addable, return empty result and state 1\n if posfound:\n return res, 0\n\n return res, 1\n\n_addpoints(sol=[array([0., 0.]), array([3., 0.]), 0, 0], distances=array([[ 0., 3., 4., 1.], [ 3., 0., 2., 3.], [ 4., 2., 0., -1.], [ 1., 3., -1., 0.]]), prec=0.1)", "Selected Statement": "posfound = False", "Function Input": {"sol": "[array([0., 0.]), array([3., 0.]), 0, 0]", "distances": "array([[ 0., 3., 4., 1.], [ 3., 0., 2., 3.], [ 4., 2., 0., -1.], [ 1., 3., -1., 0.]])", "prec": "0.1"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"sol": [[1, "[array([0., 0.]), array([3., 0.]), 0, 0]"]], "distances": [[1, "array([[ 0., 3., 4., 1.], [ 3., 0., 2., 3.], [ 4., 2., 0., -1.], [ 1., 3., -1., 0.]])"]], "prec": [[1, "0.1"]], "res": [[10.0, "[]"], [28.0, "[[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), 0]]"], [28.0, "[[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), 0], [array([0., 0.]), array([3., 0.]), array([ 3.5 , -1.93649167]), 0]]"], [28.0, "[[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), 0], [array([0., 0.]), array([3., 0.]), array([ 3.5 , -1.93649167]), 0], [array([0., 0.]), array([3., 0.]), 0, array([0.16666667, 0.9860133 ])]]"], [28.0, "[[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), 0], [array([0., 0.]), array([3., 0.]), array([ 3.5 , -1.93649167]), 0], [array([0., 0.]), array([3., 0.]), 0, array([0.16666667, 0.9860133 ])], [array([0., 0.]), array([3., 0.]), 0, array([ 0.16666667, -0.9860133 ])]]"]], "posfound": [[12.0, "False"], [26.0, "True"]], "pleft": [[15.0, "[]"], [18.0, "[2]"], [18.0, "[2, 3]"]], "n": [[16.0, "0"], [16.0, "1"], [16.0, "2"], [16.0, "3"]], "m": [[16.0, "array([0., 0.])"], [16.0, "array([3., 0.])"], [16.0, "0"]], "i": [[21.0, "2"], [21.0, "3"]], "ires": [[22.0, "[[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), 0], [array([0., 0.]), array([3., 0.]), array([ 3.5 , -1.93649167]), 0]]"], [22.0, "[[array([0., 0.]), array([3., 0.]), 0, array([0.16666667, 0.9860133 ])], [array([0., 0.]), array([3., 0.]), 0, array([ 0.16666667, -0.9860133 ])]]"]], "state": [[22.0, "0"]], "j": [[27.0, "[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), 0]"], [27.0, "[array([0., 0.]), array([3., 0.]), array([ 3.5 , -1.93649167]), 0]"], [27.0, "[array([0., 0.]), array([3., 0.]), 0, array([0.16666667, 0.9860133 ])]"], [27.0, "[array([0., 0.]), array([3., 0.]), 0, array([ 0.16666667, -0.9860133 ])]"]]}, "Program Information": "Project Name: GeoStat-Framework+welltestpy", "idx": 517} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _pntcoord(sol, i, n, m, distances, prec):\n \"\"\"\n Generate coordinates for point i in constellation to points m and n.\n\n Check if these coordinates are valid with all other points in the solution.\n \"\"\"\n tmppnt = []\n\n state = 1\n\n pntscount = len(sol)\n\n # if no distances known, return empty result and the unknown-state\n if distances[i, n] < -0.5 or distances[i, m] < -0.5:\n return tmppnt, state\n\n # if the Triangle inequality is not fullfilled give a contradiction\n if distances[i, n] + distances[i, m] < _dist(sol[n], sol[m]):\n state = 2\n return tmppnt, state\n\n # generate the affine rotation to bring the points in the right place\n g = _affinef(*_invtranmat(*_tranmat(sol[n], sol[m])))\n\n # generate the coordinates\n x = _xvalue(distances[i, n], distances[i, m], _dist(sol[n], sol[m]))\n y1, y2 = _yvalue(distances[i, n], distances[i, m], _dist(sol[n], sol[m]))\n\n # generate the possible positons\n pos1 = g(np.array([x, y1]))\n pos2 = g(np.array([x, y2]))\n\n valid1 = True\n valid2 = True\n\n # check if the possible positions are valid\n for k in range(pntscount):\n if np.ndim(sol[k]) != 0 and distances[i, k] > -0.5:\n valid1 &= abs(_dist(sol[k], pos1) - distances[i, k]) < prec\n valid2 &= abs(_dist(sol[k], pos2) - distances[i, k]) < prec\n\n # if any position is valid, add it to the result\n if valid1 or valid2:\n state = 0\n same = abs(y1 - y2) < prec / 4.0\n if valid1:\n tmppnt.append(dcopy(pos1))\n if valid2 and not same:\n tmppnt.append(dcopy(pos2))\n # if the positions are not valid, give a contradiction\n else:\n state = 2\n\n return tmppnt, state\n\n_pntcoord(sol=[array([0., 0.]), array([3., 0.]), 0, 0], i=2, n=0, m=1, distances=array([[ 0., 3., 4., 1.], [ 3., 0., 2., 3.], [ 4., 2., 0., -1.], [ 1., 3., -1., 0.]]), prec=0.1)", "Selected Statement": "state = 1", "Function Input": {"sol": "[array([0., 0.]), array([3., 0.]), 0, 0]", "i": "2", "n": "0", "m": "1", "distances": "array([[ 0., 3., 4., 1.], [ 3., 0., 2., 3.], [ 4., 2., 0., -1.], [ 1., 3., -1., 0.]])", "prec": "0.1"}, "Variable Values Before Statement": {"Constant": "1"}, "Value After Statement Execution": "1", "Variable States During Runtime": {"sol": [[1, "[array([0., 0.]), array([3., 0.]), 0, 0]"]], "i": [[1, "2"]], "n": [[1, "0"]], "m": [[1, "1"]], "distances": [[1, "array([[ 0., 3., 4., 1.], [ 3., 0., 2., 3.], [ 4., 2., 0., -1.], [ 1., 3., -1., 0.]])"]], "prec": [[1, "0.1"]], "tmppnt": [[7.0, "[]"], [47.0, "[array([3.5 , 1.93649167])]"], [49.0, "[array([3.5 , 1.93649167]), array([ 3.5 , -1.93649167])]"]], "state": [[9.0, "1"], [44.0, "0"]], "pntscount": [[11.0, "4"]], "g": [[23.0, ".func at 0x7f9d2f5dc9d0>"]], "x": [[26.0, "3.5"]], "y1": [[27.0, "1.9364916731037083"]], "y2": [[27.0, "-1.9364916731037083"]], "pos1": [[30.0, "array([3.5 , 1.93649167])"]], "pos2": [[31.0, "array([ 3.5 , -1.93649167])"]], "valid1": [[33.0, "True"]], "valid2": [[34.0, "True"]], "k": [[37.0, "0"], [37.0, "1"], [37.0, "2"], [37.0, "3"]], "same": [[45.0, "False"]]}, "Program Information": "Project Name: GeoStat-Framework+welltestpy", "idx": 518} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _solequal(sol1, sol2, prec):\n \"\"\"\n Compare two different solutions with a given precicion.\n\n Return True if they equal.\n \"\"\"\n res = True\n\n for sol_1, sol_2 in zip(sol1, sol2):\n if np.ndim(sol_1) != 0 and np.ndim(sol_2) != 0:\n res &= _dist(sol_1, sol_2) < prec\n elif np.ndim(sol_1) != 0 and np.ndim(sol_2) == 0:\n return False\n elif np.ndim(sol_1) == 0 and np.ndim(sol_2) != 0:\n return False\n\n return res\n\n_solequal(sol1=[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), array([ 0.16666667, -0.9860133 ])], sol2=[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), array([0.16666667, 0.9860133 ])], prec=0.1)", "Selected Statement": "res = True", "Function Input": {"sol1": "[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), array([ 0.16666667, -0.9860133 ])]", "sol2": "[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), array([0.16666667, 0.9860133 ])]", "prec": "0.1"}, "Variable Values Before Statement": {"Constant": "True"}, "Value After Statement Execution": "True", "Variable States During Runtime": {"sol1": [[1, "[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), array([ 0.16666667, -0.9860133 ])]"]], "sol2": [[1, "[array([0., 0.]), array([3., 0.]), array([3.5 , 1.93649167]), array([0.16666667, 0.9860133 ])]"]], "prec": [[1, "0.1"]], "res": [[7.0, "True"], [11.0, "False"]], "sol_1": [[9.0, "array([0., 0.])"], [9.0, "array([3., 0.])"], [9.0, "array([3.5 , 1.93649167])"], [9.0, "array([ 0.16666667, -0.9860133 ])"]], "sol_2": [[9.0, "array([0., 0.])"], [9.0, "array([3., 0.])"], [9.0, "array([3.5 , 1.93649167])"], [9.0, "array([0.16666667, 0.9860133 ])"]]}, "Program Information": "Project Name: GeoStat-Framework+welltestpy", "idx": 519} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _test_forward_nd_quad_pot(n, ndim, abs=None):\n x = np.arange(n) - n / 2.0\n xs = np.meshgrid(*([x]*ndim), indexing=\"ij\")\n xs_sq = reduce(lambda x,y:x+y*y, xs, 0.0)\n\n # phi is quadratic on all dimension, so the target will be scaled\n # source on all dimension by (1+B)\n B = 1.0\n scale = 1 + B\n sigma = (n/30.)\n source = np.exp(-xs_sq / (2*sigma**2))\n source_copy = np.copy(source)\n phi = 0.5*B*xs_sq\n target = sb.forward(source, phi)\n\n target_calc = (scale**-ndim)*np.exp(-xs_sq / (2*(sigma*scale)**2))\n\n # accurate within 2.5*(1/n)*100%\n abs = 2.5/n if abs is None else abs\n assert target == pytest.approx(target_calc, abs=abs)\n\n # check the dimension of target\n assert np.ndim(target) == ndim\n\n # make sure the source is not changed\n assert np.all(source == source_copy)\n\n_test_forward_nd_quad_pot(n=100, ndim=1, abs=None)", "Selected Statement": "B = 1.0", "Function Input": {"n": "100", "ndim": "1", "abs": "None"}, "Variable Values Before Statement": {"Constant": "1.0"}, "Value After Statement Execution": "1.0", "Variable States During Runtime": {"n": [[1, "100"]], "ndim": [[1, "1"]], "abs": [[1, "None"], [19.0, "0.025"]], "x": [[2.0, "array([-50., -49., -48., -47., -46., -45., -44., -43., -42., -41., -40., -39., -38., -37., -36., -35., -34., -33., -32., -31., -30., -29., -28., -27., -26., -25., -24., -23., -22., -21., -20., -19., -18., -17., -16., -15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49.])"]], "xs": [[3.0, "[array([-50., -49., -48., -47., -46., -45., -44., -43., -42., -41., -40., -39., -38., -37., -36., -35., -34., -33., -32., -31., -30., -29., -28., -27., -26., -25., -24., -23., -22., -21., -20., -19., -18., -17., -16., -15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49.])]"]], "xs_sq": [[4.0, "array([2.500e+03, 2.401e+03, 2.304e+03, 2.209e+03, 2.116e+03, 2.025e+03, 1.936e+03, 1.849e+03, 1.764e+03, 1.681e+03, 1.600e+03, 1.521e+03, 1.444e+03, 1.369e+03, 1.296e+03, 1.225e+03, 1.156e+03, 1.089e+03, 1.024e+03, 9.610e+02, 9.000e+02, 8.410e+02, 7.840e+02, 7.290e+02, 6.760e+02, 6.250e+02, 5.760e+02, 5.290e+02, 4.840e+02, 4.410e+02, 4.000e+02, 3.610e+02, 3.240e+02, 2.890e+02, 2.560e+02, 2.250e+02, 1.960e+02, 1.690e+02, 1.440e+02, 1.210e+02, 1.000e+02, 8.100e+01, 6.400e+01, 4.900e+01, 3.600e+01, 2.500e+01, 1.600e+01, 9.000e+00, 4.000e+00, 1.000e+00, 0.000e+00, 1.000e+00, 4.000e+00, 9.000e+00, 1.600e+01, 2.500e+01, 3.600e+01, 4.900e+01, 6.400e+01, 8.100e+01, 1.000e+02, 1.210e+02, 1.440e+02, 1.690e+02, 1.960e+02, 2.250e+02, 2.560e+02, 2.890e+02, 3.240e+02, 3.610e+02, 4.000e+02, 4.410e+02, 4.840e+02, 5.290e+02, 5.760e+02, 6.250e+02, 6.760e+02, 7.290e+02, 7.840e+02, 8.410e+02, 9.000e+02, 9.610e+02, 1.024e+03, 1.089e+03, 1.156e+03, 1.225e+03, 1.296e+03, 1.369e+03, 1.444e+03, 1.521e+03, 1.600e+03, 1.681e+03, 1.764e+03, 1.849e+03, 1.936e+03, 2.025e+03, 2.116e+03, 2.209e+03, 2.304e+03, 2.401e+03])"]], "B": [[8.0, "1.0"]], "scale": [[9.0, "2.0"]], "sigma": [[10.0, "3.3333333333333335"]], "source": [[11.0, "array([1.38634329e-49, 1.19303368e-47, 9.38313827e-46, 6.74461286e-44, 4.43077231e-42, 2.66020642e-40, 1.45970379e-38, 7.32027899e-37, 3.35508886e-35, 1.40538048e-33, 5.38018616e-32, 1.88240985e-30, 6.01928028e-29, 1.75909155e-27, 4.69835486e-26, 1.14687658e-24, 2.55859208e-23, 5.21673666e-22, 9.72098502e-21, 1.65552266e-19, 2.57675711e-18, 3.66543340e-17, 4.76530474e-16, 5.66199552e-15, 6.14839641e-14, 6.10193668e-13, 5.53461007e-12, 4.58796249e-11, 3.47589128e-10, 2.40672244e-09, 1.52299797e-08, 8.80817920e-08, 4.65571572e-07, 2.24905597e-06, 9.92950431e-06, 4.00652974e-05, 1.47748360e-04, 4.97955422e-04, 1.53381068e-03, 4.31784001e-03, 1.11089965e-02, 2.61214099e-02, 5.61347628e-02, 1.10250525e-01, 1.97898699e-01, 3.24652467e-01, 4.86752256e-01, 6.66976811e-01, 8.35270211e-01, 9.55997482e-01, 1.00000000e+00, 9.55997482e-01, 8.35270211e-01, 6.66976811e-01, 4.86752256e-01, 3.24652467e-01, 1.97898699e-01, 1.10250525e-01, 5.61347628e-02, 2.61214099e-02, 1.11089965e-02, 4.31784001e-03, 1.53381068e-03, 4.97955422e-04, 1.47748360e-04, 4.00652974e-05, 9.92950431e-06, 2.24905597e-06, 4.65571572e-07, 8.80817920e-08, 1.52299797e-08, 2.40672244e-09, 3.47589128e-10, 4.58796249e-11, 5.53461007e-12, 6.10193668e-13, 6.14839641e-14, 5.66199552e-15, 4.76530474e-16, 3.66543340e-17, 2.57675711e-18, 1.65552266e-19, 9.72098502e-21, 5.21673666e-22, 2.55859208e-23, 1.14687658e-24, 4.69835486e-26, 1.75909155e-27, 6.01928028e-29, 1.88240985e-30, 5.38018616e-32, 1.40538048e-33, 3.35508886e-35, 7.32027899e-37, 1.45970379e-38, 2.66020642e-40, 4.43077231e-42, 6.74461286e-44, 9.38313827e-46, 1.19303368e-47])"]], "source_copy": [[12.0, "array([1.38634329e-49, 1.19303368e-47, 9.38313827e-46, 6.74461286e-44, 4.43077231e-42, 2.66020642e-40, 1.45970379e-38, 7.32027899e-37, 3.35508886e-35, 1.40538048e-33, 5.38018616e-32, 1.88240985e-30, 6.01928028e-29, 1.75909155e-27, 4.69835486e-26, 1.14687658e-24, 2.55859208e-23, 5.21673666e-22, 9.72098502e-21, 1.65552266e-19, 2.57675711e-18, 3.66543340e-17, 4.76530474e-16, 5.66199552e-15, 6.14839641e-14, 6.10193668e-13, 5.53461007e-12, 4.58796249e-11, 3.47589128e-10, 2.40672244e-09, 1.52299797e-08, 8.80817920e-08, 4.65571572e-07, 2.24905597e-06, 9.92950431e-06, 4.00652974e-05, 1.47748360e-04, 4.97955422e-04, 1.53381068e-03, 4.31784001e-03, 1.11089965e-02, 2.61214099e-02, 5.61347628e-02, 1.10250525e-01, 1.97898699e-01, 3.24652467e-01, 4.86752256e-01, 6.66976811e-01, 8.35270211e-01, 9.55997482e-01, 1.00000000e+00, 9.55997482e-01, 8.35270211e-01, 6.66976811e-01, 4.86752256e-01, 3.24652467e-01, 1.97898699e-01, 1.10250525e-01, 5.61347628e-02, 2.61214099e-02, 1.11089965e-02, 4.31784001e-03, 1.53381068e-03, 4.97955422e-04, 1.47748360e-04, 4.00652974e-05, 9.92950431e-06, 2.24905597e-06, 4.65571572e-07, 8.80817920e-08, 1.52299797e-08, 2.40672244e-09, 3.47589128e-10, 4.58796249e-11, 5.53461007e-12, 6.10193668e-13, 6.14839641e-14, 5.66199552e-15, 4.76530474e-16, 3.66543340e-17, 2.57675711e-18, 1.65552266e-19, 9.72098502e-21, 5.21673666e-22, 2.55859208e-23, 1.14687658e-24, 4.69835486e-26, 1.75909155e-27, 6.01928028e-29, 1.88240985e-30, 5.38018616e-32, 1.40538048e-33, 3.35508886e-35, 7.32027899e-37, 1.45970379e-38, 2.66020642e-40, 4.43077231e-42, 6.74461286e-44, 9.38313827e-46, 1.19303368e-47])"]], "phi": [[13.0, "array([1.2500e+03, 1.2005e+03, 1.1520e+03, 1.1045e+03, 1.0580e+03, 1.0125e+03, 9.6800e+02, 9.2450e+02, 8.8200e+02, 8.4050e+02, 8.0000e+02, 7.6050e+02, 7.2200e+02, 6.8450e+02, 6.4800e+02, 6.1250e+02, 5.7800e+02, 5.4450e+02, 5.1200e+02, 4.8050e+02, 4.5000e+02, 4.2050e+02, 3.9200e+02, 3.6450e+02, 3.3800e+02, 3.1250e+02, 2.8800e+02, 2.6450e+02, 2.4200e+02, 2.2050e+02, 2.0000e+02, 1.8050e+02, 1.6200e+02, 1.4450e+02, 1.2800e+02, 1.1250e+02, 9.8000e+01, 8.4500e+01, 7.2000e+01, 6.0500e+01, 5.0000e+01, 4.0500e+01, 3.2000e+01, 2.4500e+01, 1.8000e+01, 1.2500e+01, 8.0000e+00, 4.5000e+00, 2.0000e+00, 5.0000e-01, 0.0000e+00, 5.0000e-01, 2.0000e+00, 4.5000e+00, 8.0000e+00, 1.2500e+01, 1.8000e+01, 2.4500e+01, 3.2000e+01, 4.0500e+01, 5.0000e+01, 6.0500e+01, 7.2000e+01, 8.4500e+01, 9.8000e+01, 1.1250e+02, 1.2800e+02, 1.4450e+02, 1.6200e+02, 1.8050e+02, 2.0000e+02, 2.2050e+02, 2.4200e+02, 2.6450e+02, 2.8800e+02, 3.1250e+02, 3.3800e+02, 3.6450e+02, 3.9200e+02, 4.2050e+02, 4.5000e+02, 4.8050e+02, 5.1200e+02, 5.4450e+02, 5.7800e+02, 6.1250e+02, 6.4800e+02, 6.8450e+02, 7.2200e+02, 7.6050e+02, 8.0000e+02, 8.4050e+02, 8.8200e+02, 9.2450e+02, 9.6800e+02, 1.0125e+03, 1.0580e+03, 1.1045e+03, 1.1520e+03, 1.2005e+03])"]], "target": [[14.0, "array([3.05096834e-13, 1.53620093e-12, 2.76730504e-12, 1.28535587e-11, 2.29398124e-11, 9.83671882e-11, 1.73794564e-10, 6.88577891e-10, 1.20336122e-09, 4.40917555e-09, 7.61498987e-09, 2.58279429e-08, 4.40408960e-08, 1.38413341e-07, 2.32785786e-07, 6.78656885e-07, 1.12452798e-06, 3.04464007e-06, 4.96475215e-06, 1.24987004e-05, 2.00326487e-05, 4.69534144e-05, 7.38741801e-05, 1.61425945e-04, 2.48977711e-04, 5.07941525e-04, 7.66905340e-04, 1.46291267e-03, 2.15892000e-03, 3.85670914e-03, 5.55449827e-03, 9.30760160e-03, 1.30607049e-02, 2.05640432e-02, 2.80673814e-02, 4.15963220e-02, 5.51252627e-02, 7.70373061e-02, 9.89493495e-02, 1.30637792e-01, 1.62326234e-01, 2.02851181e-01, 2.43376128e-01, 2.88432267e-01, 3.33488405e-01, 3.75561756e-01, 4.17635106e-01, 4.47816923e-01, 4.77998741e-01, 4.88999370e-01, 5.00000000e-01, 4.88999370e-01, 4.77998741e-01, 4.47816923e-01, 4.17635106e-01, 3.75561756e-01, 3.33488405e-01, 2.88432267e-01, 2.43376128e-01, 2.02851181e-01, 1.62326234e-01, 1.30637792e-01, 9.89493495e-02, 7.70373061e-02, 5.51252627e-02, 4.15963220e-02, 2.80673814e-02, 2.05640432e-02, 1.30607049e-02, 9.30760160e-03, 5.55449827e-03, 3.85670914e-03, 2.15892000e-03, 1.46291267e-03, 7.66905340e-04, 5.07941525e-04, 2.48977711e-04, 1.61425945e-04, 7.38741801e-05, 4.69534144e-05, 2.00326487e-05, 1.24987004e-05, 4.96475215e-06, 3.04464007e-06, 1.12452798e-06, 6.78656885e-07, 2.32785786e-07, 1.38413341e-07, 4.40408960e-08, 2.58279429e-08, 7.61498987e-09, 4.40917555e-09, 1.20336122e-09, 6.88577891e-10, 1.73794564e-10, 9.83671882e-11, 2.29398124e-11, 1.28535587e-11, 2.76730504e-12, 1.53620093e-12])"]], "target_calc": [[16.0, "array([3.05096834e-13, 9.29251306e-13, 2.76730504e-12, 8.05766599e-12, 2.29398124e-11, 6.38555777e-11, 1.73794564e-10, 4.62489538e-10, 1.20336122e-09, 3.06138876e-09, 7.61498987e-09, 1.85203228e-08, 4.40408960e-08, 1.02398151e-07, 2.32785786e-07, 5.17427106e-07, 1.12452798e-06, 2.38956987e-06, 4.96475215e-06, 1.00856475e-05, 2.00326487e-05, 3.89046343e-05, 7.38741801e-05, 1.37155234e-04, 2.48977711e-04, 4.41913153e-04, 7.66905340e-04, 1.30129263e-03, 2.15892000e-03, 3.50208357e-03, 5.55449827e-03, 8.61373566e-03, 1.30607049e-02, 1.93628852e-02, 2.80673814e-02, 3.97797544e-02, 5.51252627e-02, 7.46908876e-02, 9.89493495e-02, 1.28170076e-01, 1.62326234e-01, 2.01010692e-01, 2.43376128e-01, 2.88114537e-01, 3.33488405e-01, 3.77419801e-01, 4.17635106e-01, 4.51853539e-01, 4.77998741e-01, 4.94406522e-01, 5.00000000e-01, 4.94406522e-01, 4.77998741e-01, 4.51853539e-01, 4.17635106e-01, 3.77419801e-01, 3.33488405e-01, 2.88114537e-01, 2.43376128e-01, 2.01010692e-01, 1.62326234e-01, 1.28170076e-01, 9.89493495e-02, 7.46908876e-02, 5.51252627e-02, 3.97797544e-02, 2.80673814e-02, 1.93628852e-02, 1.30607049e-02, 8.61373566e-03, 5.55449827e-03, 3.50208357e-03, 2.15892000e-03, 1.30129263e-03, 7.66905340e-04, 4.41913153e-04, 2.48977711e-04, 1.37155234e-04, 7.38741801e-05, 3.89046343e-05, 2.00326487e-05, 1.00856475e-05, 4.96475215e-06, 2.38956987e-06, 1.12452798e-06, 5.17427106e-07, 2.32785786e-07, 1.02398151e-07, 4.40408960e-08, 1.85203228e-08, 7.61498987e-09, 3.06138876e-09, 1.20336122e-09, 4.62489538e-10, 1.73794564e-10, 6.38555777e-11, 2.29398124e-11, 8.05766599e-12, 2.76730504e-12, 9.29251306e-13])"]], "@py_assert3": [[20.0, "None"]], "@py_assert7": [[20.0, "None"]], "@py_assert1": [[20.0, "None"]], "@py_assert4": [[23.0, "None"]], "@py_assert6": [[23.0, "None"]], "@py_assert8": [[26.0, "None"]]}, "Program Information": "Project Name: OxfordHED+sunbear", "idx": 520} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def parse_access_method(access_method: str):\n num_workers = 0\n scheduler = \"threaded\"\n download = access_method.startswith(\"download\")\n local = access_method.startswith(\"local\")\n if download or local:\n split = access_method.split(\":\")\n if len(split) == 1:\n split.extend((\"threaded\", \"0\"))\n elif len(split) == 2:\n split.append(\"threaded\" if split[1].isnumeric() else \"0\")\n elif len(split) >= 3:\n num_integers = sum(1 for i in split if i.isnumeric())\n if num_integers != 1 or len(split) > 3:\n raise ValueError(\n \"Invalid access_method format. Expected format is one of the following: {download, download:scheduler, download:num_workers, download:scheduler:num_workers, download:num_workers:scheduler}\"\n )\n\n access_method = \"download\" if download else \"local\"\n num_worker_index = 1 if split[1].isnumeric() else 2\n scheduler_index = 3 - num_worker_index\n num_workers = int(split[num_worker_index])\n scheduler = split[scheduler_index]\n return access_method, num_workers, scheduler\n\nparse_access_method(access_method='download')", "Selected Statement": "num_workers = 0", "Function Input": {"access_method": "'download'"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"access_method": [[1, "'download'"]], "num_workers": [[2.0, "0"]], "scheduler": [[3.0, "'threaded'"]], "download": [[4.0, "True"]], "local": [[5.0, "False"]], "split": [[7.0, "['download']"], [9.0, "['download', 'threaded', '0']"]], "num_worker_index": [[20.0, "2"]], "scheduler_index": [[21.0, "1"]]}, "Program Information": "Project Name: activeloopai+deeplake", "idx": 521} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def get_word_set_total_score(board, word_set, num_move_locations):\n total_score = 0\n word_score = 0\n\n for word_location_set in word_set:\n word_score = 0\n word_multiplier = 1\n\n for location in word_location_set:\n square = board.board_square_dict[location]\n word_multiplier *= square.word_multiplier\n word_score += square.tile.point_value * square.letter_multiplier\n\n word_score *= word_multiplier\n total_score += word_score\n\n if num_move_locations == config.PLAYER_RACK_SIZE:\n total_score += config.BINGO_SCORE\n\n return total_score\n\nget_word_set_total_score(board= abcdefghijklmno1 _______________2 _______________3 _______________4 _______________5 _______________6 _______________7 _______________8 _______BAKER___9 _______________10_______________11_______________12_______________13_______________14_______________15_______________, word_set={frozenset(), frozenset({('h', 8), ('j', 8), ('l', 8), ('i', 8), ('k', 8)})}, num_move_locations=5)", "Selected Statement": "total_score = 0", "Function Input": {"board": " abcdefghijklmno1 _______________2 _______________3 _______________4 _______________5 _______________6 _______________7 _______________8 _______BAKER___9 _______________10_______________11_______________12_______________13_______________14_______________15_______________", "word_set": "{frozenset(), frozenset({('h', 8), ('j', 8), ('l', 8), ('i', 8), ('k', 8)})}", "num_move_locations": "5"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"board": [[1, " abcdefghijklmno1 _______________2 _______________3 _______________4 _______________5 _______________6 _______________7 _______________8 _______BAKER___9 _______________10_______________11_______________12_______________13_______________14_______________15_______________"]], "word_set": [[1, "{frozenset(), frozenset({('h', 8), ('j', 8), ('l', 8), ('i', 8), ('k', 8)})}"]], "num_move_locations": [[1, "5"]], "total_score": [[2.0, "0"], [15.0, "24"]], "word_score": [[3.0, "0"], [12.0, "3"], [12.0, "8"], [12.0, "10"], [12.0, "11"], [12.0, "12"], [14.0, "24"]], "word_location_set": [[5.0, "frozenset()"], [5.0, "frozenset({('h', 8), ('j', 8), ('l', 8), ('i', 8), ('k', 8)})"]], "word_multiplier": [[7.0, "1"], [11.0, "2"]], "location": [[9.0, "('h', 8)"], [9.0, "('j', 8)"], [9.0, "('l', 8)"], [9.0, "('i', 8)"], [9.0, "('k', 8)"]], "square": [[10.0, "B"], [10.0, "K"], [10.0, "R"], [10.0, "A"], [10.0, "E"]]}, "Program Information": "Project Name: benjamincrom+scrabble", "idx": 522} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def rolling_mean_by_h(x, h, w, name):\n \"\"\"Compute a rolling mean of x, after first aggregating by h.\n\n Right-aligned. Computes a single mean for each unique value of h. Each\n mean is over at least w samples.\n\n Parameters\n ----------\n x: Array.\n h: Array of horizon for each value in x.\n w: Integer window size (number of elements).\n name: Name for metric in result dataframe\n\n Returns\n -------\n Dataframe with columns horizon and name, the rolling mean of x.\n \"\"\"\n # Aggregate over h\n df = pd.DataFrame({'x': x, 'h': h})\n df2 = (\n df.groupby('h').agg(['sum', 'count']).reset_index().sort_values('h')\n )\n xs = df2['x']['sum'].values\n ns = df2['x']['count'].values\n hs = df2.h.values\n\n trailing_i = len(df2) - 1\n x_sum = 0\n n_sum = 0\n # We don't know output size but it is bounded by len(df2)\n res_x = np.empty(len(df2))\n\n # Start from the right and work backwards\n for i in range(len(df2) - 1, -1, -1):\n x_sum += xs[i]\n n_sum += ns[i]\n while n_sum >= w:\n # Include points from the previous horizon. All of them if still\n # less than w, otherwise weight the mean by the difference\n excess_n = n_sum - w\n excess_x = excess_n * xs[i] / ns[i]\n res_x[trailing_i] = (x_sum - excess_x)/ w\n x_sum -= xs[trailing_i]\n n_sum -= ns[trailing_i]\n trailing_i -= 1\n\n res_h = hs[(trailing_i + 1):]\n res_x = res_x[(trailing_i + 1):]\n\n return pd.DataFrame({'horizon': res_h, name: res_x})\n\nrolling_mean_by_h(x=array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), h=array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), w=1, name='x')", "Selected Statement": "x_sum = 0", "Function Input": {"x": "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])", "h": "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])", "w": "1", "name": "'x'"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"x": [[1, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "h": [[1, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "w": [[1, "1"]], "name": [[1, "'x'"]], "df": [[19.0, " x h0 0 01 1 12 2 23 3 34 4 45 5 56 6 67 7 78 8 89 9 9"]], "df2": [[20.0, " h x sum count0 0 0 11 1 1 12 2 2 13 3 3 14 4 4 15 5 5 16 6 6 17 7 7 18 8 8 19 9 9 1"]], "xs": [[23.0, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "ns": [[24.0, "array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1])"]], "hs": [[25.0, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]], "trailing_i": [[27.0, "9"], [45.0, "8"], [45.0, "7"], [45.0, "6"], [45.0, "5"], [45.0, "4"], [45.0, "3"], [45.0, "2"], [45.0, "1"], [45.0, "0"], [45.0, "-1"]], "x_sum": [[28.0, "0"], [35.0, "9"], [43.0, "0"], [35.0, "8"], [43.0, "0"], [35.0, "7"], [43.0, "0"], [35.0, "6"], [43.0, "0"], [35.0, "5"], [43.0, "0"], [35.0, "4"], [43.0, "0"], [35.0, "3"], [43.0, "0"], [35.0, "2"], [43.0, "0"], [35.0, "1"], [43.0, "0"]], "n_sum": [[29.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"], [36.0, "1"], [44.0, "0"]], "res_x": [[31.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 3.0e-323, 3.5e-323, 4.0e-323, 4.4e-323])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 3.0e-323, 3.5e-323, 4.0e-323, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 3.0e-323, 3.5e-323, 8.0e+000, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 3.0e-323, 7.0e+000, 8.0e+000, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 2.5e-323, 6.0e+000, 7.0e+000, 8.0e+000, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 2.0e-323, 5.0e+000, 6.0e+000, 7.0e+000, 8.0e+000, 9.0e+000])"], [42.0, "array([0.0e+000, 4.9e-324, 9.9e-324, 1.5e-323, 4.0e+000, 5.0e+000, 6.0e+000, 7.0e+000, 8.0e+000, 9.0e+000])"], [42.0, "array([0.e+000, 5.e-324, 1.e-323, 3.e+000, 4.e+000, 5.e+000, 6.e+000, 7.e+000, 8.e+000, 9.e+000])"], [42.0, "array([0.e+000, 5.e-324, 2.e+000, 3.e+000, 4.e+000, 5.e+000, 6.e+000, 7.e+000, 8.e+000, 9.e+000])"], [42.0, "array([0., 1., 2., 3., 4., 5., 6., 7., 8., 9.])"]], "i": [[34.0, "9"], [34.0, "8"], [34.0, "7"], [34.0, "6"], [34.0, "5"], [34.0, "4"], [34.0, "3"], [34.0, "2"], [34.0, "1"], [34.0, "0"]], "excess_n": [[40.0, "0"]], "excess_x": [[41.0, "0.0"]], "res_h": [[47.0, "array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"]]}, "Program Information": "Project Name: facebook+prophet", "idx": 523} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def requires_crt(reason=None):\n if reason is None:\n reason = \"Test requires awscrt to be installed\"\n\n def decorator(func):\n return unittest.skipIf(not HAS_CRT, reason)(func)\n\n return decorator\n\nrequires_crt(reason=None)", "Selected Statement": "reason = \"Test requires awscrt to be installed\"", "Function Input": {"reason": "None"}, "Variable Values Before Statement": {"Constant": "\"Test requires awscrt to be installed\""}, "Value After Statement Execution": "\"Test requires awscrt to be installed\"", "Variable States During Runtime": {"reason": [[1, "None"], [3.0, "'Test requires awscrt to be installed'"]], "decorator": [[5.0, ".decorator at 0x7fbbe4f994c0>"]]}, "Program Information": "Project Name: boto+boto3", "idx": 524} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _check(self) -> None:\n \"\"\"Check the syntax of the expression.\n\n :raises ValueError:\n If the expression is incomplete. This error is aimed at debugging\n the expression so it is very verbose.\n \"\"\"\n stack_size = 0\n for i, token_ in enumerate(self._tokens):\n stack_size -= token_.pops\n if stack_size < 0:\n raise ValueError(\n self._format_syntax_error(\n f\"'{token_}' takes {token_.pops} argument(s) but the stack\"\n f\" will only have {stack_size + token_.pops} element(s)\",\n i,\n )\n )\n stack_size += token_.puts\n if stack_size == 0:\n raise ValueError(\n self._format_syntax_error(\"expression does not produce a result\")\n )\n if stack_size > 1:\n raise ValueError(\n self._format_syntax_error(\n f\"expression produces too many results ({stack_size}), \"\n \"expected 1\"\n )\n )\n\n_check(self=CompleteExpression([Literal(1)]), self[0]=Literal(1))", "Selected Statement": "stack_size = 0", "Function Input": {"self": "CompleteExpression([Literal(1)])", "self[0]": "Literal(1)"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"self": [[1, "CompleteExpression([Literal(1)])"]], "self[0]": [[1, "Literal(1)"]], "stack_size": [[8.0, "0"], [19.0, "1"]], "i": [[9.0, "0"]], "token_": [[9.0, "Literal(1)"]]}, "Program Information": "Project Name: ccarocean+pyrads", "idx": 525} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _simulate(self) -> Tuple[int, int]:\n \"\"\"Simulate the expression to determine inputs and outputs.\n\n :return:\n A tuple of the number of inputs the expression takes and the number\n of outputs from the expression.\n \"\"\"\n inputs = 0\n outputs = 0\n for token_ in self._tokens:\n outputs -= token_.pops\n inputs = max(inputs, -outputs)\n outputs += token_.puts\n return inputs, outputs + inputs\n\n_simulate(self=Expression([Literal(1)]), self[0]=Literal(1))", "Selected Statement": "inputs = 0", "Function Input": {"self": "Expression([Literal(1)])", "self[0]": "Literal(1)"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"self": [[1, "Expression([Literal(1)])"]], "self[0]": [[1, "Literal(1)"]], "inputs": [[8.0, "0"]], "outputs": [[9.0, "0"], [13.0, "1"]], "token_": [[10.0, "Literal(1)"]]}, "Program Information": "Project Name: ccarocean+pyrads", "idx": 526} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def run_train_test(monkeypatch, overwrite_values: dict):\n max_train_iters = 32\n checkpoint_args = {\"train_iters\": max_train_iters}\n overwrite_values = checkpoint_args\n input_args = [\"train.py\", \"tests/config/test_setup.yml\"]\n deepspeed_main_args = simulate_deepy_env(monkeypatch, input_args)\n\n # Train model, whilst patching collect_loss_for_unit_test to track model loss at each step\n loss_per_iteration = []\n with patch(\n \"megatron.training.collect_loss_for_unit_test\",\n side_effect=lambda x: loss_per_iteration.append(x),\n ):\n train.main(input_args=deepspeed_main_args, overwrite_values=overwrite_values)\n assert (\n len(loss_per_iteration) == max_train_iters\n ), \"patching should have collected loss values from each train step\"\n\n # loss should have decreased by now (otherwise increasing the max_steps parameter could have the testcase pass)\n assert min(loss_per_iteration) < loss_per_iteration[0], (\n \"training loss should improve within \" + str(max_train_iters) + \" steps\"\n )\n\nrun_train_test(monkeypatch={_setattr=[], _setitem=[], _cwd=None, _savesyspath=None}, overwrite_values={'pos_emb': 'rpe'})", "Selected Statement": "max_train_iters = 32", "Function Input": {"monkeypatch": "{_setattr=[], _setitem=[], _cwd=None, _savesyspath=None}", "overwrite_values": "{'pos_emb': 'rpe'}"}, "Variable Values Before Statement": {"Constant": "32"}, "Value After Statement Execution": "32", "Variable States During Runtime": {"monkeypatch": [[1, "{_setattr=[], _setitem=[], _cwd=None, _savesyspath=None}"], [6.0, "{_setattr=[], _setitem=[(environ({'SHELL': '/bin/bash', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 'USER_ZDOTDIR': '/home/jinjun', 'COLORTERM': 'truecolor', 'LESS': '-R', 'TERM_PROGRAM_VERSION': '3.2a', 'GVM_VERSION': '1.0.22', 'CONDA_EXE': '/local/rcs/jinjun/miniforge3/bin/conda', '_CE_M': '', 'TMUX': '/tmp/tmux-19200/default,59951,3', 'PKG_CONFIG_PATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib/pkgconfig:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib/pkgconfig:', '_P9K_TTY': '/dev/pts/7', 'GVM_PATH_BACKUP': '/home/jinjun/.gvm/bin:/local/rcs/jinjun/miniforge3/envs/mal/bin:/local/rcs/jinjun/miniforge3/condabin:/home/jinjun/.gdrive-downloader:/local/arise/jinjun/miniforge3/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/bin:/home/jinjun/.gvm/gos/go1.19.1/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/bin:/home/jinjun/.gvm/bin:/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/jinjun/.local/bin:/home/jinjun/.local/bin:/home/jinjun/.local/bin', 'P9K_TTY': 'old', 'LC_FIG_SET_PARENT': '4c022497-5122-4b80-b325-c89bab32302a', 'PWD': '/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/EleutherAI+gpt-neox/EleutherAI+gpt-neox', 'LOGNAME': 'jinjun', 'XDG_SESSION_TYPE': 'tty', 'CONDA_PREFIX': '/local/rcs/jinjun/miniforge3/envs/EleutherAI+gpt-neox', 'VSCODE_GIT_ASKPASS_NODE': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/node', 'MOTD_SHOWN': 'pam', 'VSCODE_INJECTION': '1', 'GVM_OVERLAY_PREFIX': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay', 'HOME': '/home/jinjun', 'LANG': 'en_US.UTF-8', 'DYLD_LIBRARY_PATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'gvm_pkgset_name': 'global', 'SSL_CERT_DIR': '/usr/lib/ssl/certs', 'CONDA_PROMPT_MODIFIER': '(EleutherAI+gpt-neox) ', 'GIT_ASKPASS': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/extensions/git/dist/askpass.sh', 'GVM_ROOT': '/home/jinjun/.gvm', 'SSH_CONNECTION': '127.0.0.1 55664 127.0.0.1 22', 'GOROOT': '/home/jinjun/.gvm/gos/go1.19.1', 'NVM_DIR': '/local/rcs/jinjun/.nvm', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '', 'XDG_SESSION_CLASS': 'user', 'PYTHONPATH': ':/local/rcs/jinjun/code/pytrace-collector:/local/rcs/jinjun/code/pytrace-collector:/local/rcs/jinjun/code/pytrace-collector:/local/rcs/jinjun/code/pytrace-collector/logs/self_...*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'gvm_pkgset_name': 'global', 'SSL_CERT_DIR': '/usr/lib/ssl/certs', 'CONDA_PROMPT_MODIFIER': '(EleutherAI+gpt-neox) ', 'GIT_ASKPASS': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/extensions/git/dist/askpass.sh', 'GVM_ROOT': '/home/jinjun/.gvm', 'SSH_CONNECTION': '127.0.0.1 55664 127.0.0.1 22', 'GOROOT': '/home/jinjun/.gvm/gos/go1.19.1', 'NVM_DIR': '/local/rcs/jinjun/.nvm', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '', 'XDG_SESSION_CLASS': 'user', 'PYTHONPATH': ':/local/rcs/jinjun/code/pytrace-collector:/local/rcs/jinjun/code/pytrace-collector:/local/rcs/jinjun/code/pytrace-collector:/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/EleutherAI+gpt-neox/EleutherAI+gpt-neox', 'TERM': 'screen', 'ZSH': '/home/jinjun/.oh-my-zsh', '_CE_CONDA': '', 'VSCODE_NONCE': 'd0bc7031-48a3-4719-8bb5-ef236ddd0016', 'ZDOTDIR': '/home/jinjun', 'USER': 'jinjun', 'TMUX_PANE': '%5', 'VSCODE_GIT_IPC_HANDLE': '/run/user/19200/vscode-git-13d67c6199.sock', 'CONDA_SHLVL': '3', 'SHLVL': '3', 'PAGER': 'less', '_P9K_SSH_TTY': '/dev/pts/7', 'XDG_SESSION_ID': '43', 'CONDA_PYTHON_EXE': '/local/rcs/jinjun/miniforge3/bin/python', 'LD_LIBRARY_PATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib', 'XDG_RUNTIME_DIR': '/run/user/19200', 'SSL_CERT_FILE': '/usr/lib/ssl/certs/ca-certificates.crt', 'SSH_CLIENT': '127.0.0.1 46946 22', 'CONDA_DEFAULT_ENV': 'EleutherAI+gpt-neox', 'P9K_SSH': '1', 'LC_ALL': 'en_US.UTF-8', 'VSCODE_GIT_ASKPASS_MAIN': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/extensions/git/dist/askpass-main.js', 'XDG_DATA_DIRS': '/usr/local/share:/usr/share:/var/lib/snapd/desktop', 'BROWSER': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/bin/helpers/browser.sh', 'PATH': '/home/jinjun/.gdrive-downloader:/local/arise/jinjun/miniforge3/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/bin:/home/jinjun/.gvm/gos/go1.19.1/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/bin:/home/jinjun/.gvm/bin:/local/rcs/jinjun/miniforge3/envs/EleutherAI+gpt-neox/bin:/local/rcs/jinjun/miniforge3/condabin:/home/jinjun/.gdrive-downloader:/local/arise/jinjun/miniforge3/bin:/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/jinjun/.local/bin:/home/jinjun/.local/bin', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/19200/bus', 'gvm_go_name': 'go1.19.1', 'CONDA_PREFIX_1': '/local/rcs/jinjun/miniforge3', 'CONDA_PREFIX_2': '/local/rcs/jinjun/miniforge3/envs/mal', 'OLDPWD': '/local/rcs/jinjun/code/pytrace-collector', 'GOPATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global', 'TERM_PROGRAM': 'tmux', 'VSCODE_IPC_HOOK_CLI': '/run/user/19200/vscode-ipc-518d6355-acaf-4714-a359-be3fe9f21e09.sock', '_': '/local/rcs/jinjun/miniforge3/envs/EleutherAI+gpt-neox/bin/python', 'TORCH_CUDA_ARCH_LIST': '', 'KMP_DUPLICATE_LIB_OK': 'True', 'KMP_INIT_AT_FORK': 'FALSE', 'CUDA_MODULE_LOADING': 'LAZY', 'PYTEST_CURRENT_TEST': 'tests/model/test_model_train.py::test_model_training_options[pos_emb-rpe] (call)', 'WORLD_SIZE': '1', 'RANK': '0'}), 'RANK', )], _cwd=None, _savesyspath=None}"]], "overwrite_values": [[1, "{'pos_emb': 'rpe'}"], [4.0, "{'train_iters': 32}"], [14.0, "{'train_iters': 32, 'train_batch_size': 4, 'train_micro_batch_size_per_gpu': 4, 'zero_optimization': {'stage': 0, 'allgather_partitions': True, 'reduce_scatter': True, 'allgather_bucket_size': 500000000, 'overlap_comm': False, 'reduce_bucket_size': 500000000, 'contiguous_gradients': False}}"]], "max_train_iters": [[2.0, "32"]], "checkpoint_args": [[3.0, "{'train_iters': 32}"], [14.0, "{'train_iters': 32, 'train_batch_size': 4, 'train_micro_batch_size_per_gpu': 4, 'zero_optimization': {'stage': 0, 'allgather_partitions': True, 'reduce_scatter': True, 'allgather_bucket_size': 500000000, 'overlap_comm': False, 'reduce_bucket_size': 500000000, 'contiguous_gradients': False}}"]], "input_args": [[5.0, "['train.py', 'tests/config/test_setup.yml']"]], "deepspeed_main_args": [[6.0, "['--hostfile', 'None', '--include', 'localhost:1', 'train.py', '--deepspeed_config', 'eyJ0cmFpbl9iYXRjaF9zaXplIjogNCwgInRyYWluX21pY3JvX2JhdGNoX3NpemVfcGVyX2dwdSI6IDQsICJvcHRpbWl6ZXIiOiB7InR5cGUiOiAic20zIiwgInBhcmFtcyI6IHt9fSwgImZwMTYiOiB7InR5cGUiOiAiZnAxNiIsICJlbmFibGVkIjogdHJ1ZX0sICJ6ZXJvX29wdGltaXphdGlvbiI6IHsic3RhZ2UiOiAwLCAiYWxsZ2F0aGVyX3BhcnRpdGlvbnMiOiB0cnVlLCAicmVkdWNlX3NjYXR0ZXIiOiB0cnVlLCAiYWxsZ2F0aGVyX2J1Y2tldF9zaXplIjogNTAwMDAwMDAwLCAib3ZlcmxhcF9jb21tIjogZmFsc2UsICJyZWR1Y2VfYnVja2V0X3NpemUiOiA1MDAwMDAwMDAsICJjb250aWd1b3VzX2dyYWRpZW50cyI6IGZhbHNlfSwgIndhbGxfY2xvY2tfYnJlYWtkb3duIjogdHJ1ZSwgImNvbW1zX2xvZ2dlciI6IHsiZW5hYmxlZCI6IHRydWUsICJ2ZXJib3NlIjogdHJ1ZSwgInByb2ZfYWxsIjogdHJ1ZSwgImRlYnVnIjogZmFsc2V9fQ==', '--megatron_config', 'eyJob3N0ZmlsZSI6ICJOb25lIiwgImluY2x1ZGUiOiAibG9jYWxob3N0OjEiLCAidHJhaW5fYmF0Y2hfc2l6ZSI6IDQsICJ0cmFpbl9taWNyb19iYXRjaF9zaXplX3Blcl9ncHUiOiA0LCAib3B0aW1pemVyIjogeyJ0eXBlIjogInNtMyIsICJwYXJhbXMiOiB7fX0sICJmcDE2IjogeyJ0eXBlIjogImZwMTYiLCAiZW5hYmxlZCI6IHRydWV9LCAiemVyb19vcHRpbWl6YXRpb24iOiB7InN0YWdlIjogMCwgImFsbGdhdGhlcl9wYXJ0aXRpb25zIjogdHJ1ZSwgInJlZHVjZV9zY2F0dGVyIjogdHJ1ZSwgImFsbGdhdGhlcl9idWNrZXRfc2l6ZSI6IDUwMDAwMDAwMCwgIm92ZXJsYXBfY29tbSI6IGZhbHNlLCAicmVkdWNlX2J1Y2tldF9zaXplIjogNTAwMDAwMDAwLCAiY29udGlndW91c19ncmFkaWVudHMiOiBmYWxzZX0sICJ3YWxsX2Nsb2NrX2JyZWFrZG93biI6IHRydWUsICJkZWVwc3BlZWRfZXh0cmFfYXJncyI6IHsiY29tbXNfbG9nZ2VyIjogeyJlbmFibGVkIjogdHJ1ZSwgInZlcmJvc2UiOiB0cnVlLCAicHJvZl9hbGwiOiB0cnVlLCAiZGVidWciOiBmYWxzZX19LCAicHJlY2lzaW9uIjogImZwMTYiLCAibnVtX2xheWVycyI6IDIsICJoaWRkZW5fc2l6ZSI6IDgsICJudW1fYXR0ZW50aW9uX2hlYWRzIjogNCwgInNlcV9sZW5ndGgiOiAxMDI0LCAibWF4X3Bvc2l0aW9uX2VtYmVkZGluZ3MiOiAxMDI0LCAicG9zX2VtYiI6ICJyb3RhcnkiLCAibm9fd2VpZ2h0X3R5aW5nIjogdHJ1ZSwgImF0dGVudGlvbl9jb25maWciOiBbImdsb2JhbCIsICJnbG9iYWwiXSwgInNwYXJzaXR5X2NvbmZpZyI6IHt9LCAiaW5pdF9tZXRob2QiOiAic21hbGxfaW5pdCIsICJvdXRwdXRfbGF5ZXJfaW5pdF9tZXRob2QiOiAid2FuZ19pbml0IiwgImxyX2RlY2F5X3N0eWxlIjogImNvc2luZSIsICJscl9kZWNheV9pdGVycyI6IDIwLCAib3B0aW1pemVyX3R5cGUiOiAic20zIiwgInplcm9fc3RhZ2UiOiAwLCAiemVyb19yZWR1Y2Vfc2NhdHRlciI6IHRydWUsICJ6ZXJvX2NvbnRpZ3VvdXNfZ3JhZGllbnRzIjogZmFsc2UsICJ6ZXJvX3JlZHVjZV9idWNrZXRfc2l6ZSI6IDUwMDAwMDAwMCwgInplcm9fYWxsZ2F0aGVyX2J1Y2tldF9zaXplIjogNTAwMDAwMDAwLCAibHIiOiAwLjAwMSwgImRhdGFfcGF0aCI6ICJkYXRhL2Vud2lrOC9lbndpazhfdGV4dF9kb2N1bWVudCIsICJkYXRhX2ltcGwiOiAibW1hcCIsICJjb25maWdfZmlsZXMiOiB7InRlc3Rfc2V0dXAueW1sIjogIiMgMTlNIHBhcmFtZXRlciBtb2RlbCwgJiBsb2NhbCBzZXR1cCB3aXRoIHNvbWUgYWRkaXRpb25hbCBzaW1wbGlmaWNhdGlvbnNcbntcbiAgIyBTZXR0aW5ncyB0byBtYWtlIHRoZSB0ZXN0IHNldHVwIGFzIGxpZ2h0d2VpZ2h0IGFzIHBvc3NpYmxlXG4gIFwiZGF0YV9wYXRoXCI6IFwiZGF0YS9lbndpazgvZW53aWs4X3RleHRfZG9jdW1lbnRcIixcbiAgXCJ2b2NhYl9maWxlXCI6IFwiZGF0YS9ncHQyLXZvY2FiLmpzb25cIixcbiAgXCJtZXJnZV9maWxlXCI6IFwiZGF0YS9ncHQyLW1lcmdlcy50eHRcIixcbiAgXCJscl9kZWNheV9pdGVyc1wiOiAyMCxcbiAgXCJ0cmFpbl9pdGVyc1wiOiAyMCxcbiAgXCJob3N0ZmlsZVwiOiBcIk5vbmVcIixcbiAgXCJpbmNsdWRlXCI6IFwibG9jYWxob3N0OjFcIixcbiAgXCJ1c2Vfd2FuZGJcIjogRmFsc2UsXG5cbiAgIyBTZXR0aW5ncyBjb3BpZWQgZnJvbSAxOU0gcGFyYW1ldGVyIGNvbmZpZyAoc29tZSBtb2RpZmljYXRpb25zIGFib3ZlLCBtZWFuaW5nIHdlIGNhbid0IHVzZSBjb25maWdzLzE5TS55bWwgZGlyZWN0bHkpXG4gIFwicGlwZV9wYXJhbGxlbF9zaXplXCI6IDEsXG4gIFwibW9kZWxfcGFyYWxsZWxfc2l6ZVwiOiAxLFxuXG4gICMgbW9kZWwgc2V0dGluZ3NcbiAgXCJudW1fbGF5ZXJzXCI6IDIsXG4gIFwiaGlkZGVuX3NpemVcIjogOCxcbiAgXCJudW1fYXR0ZW50aW9uX2hlYWRzXCI6IDQsXG4gIFwic2VxX2xlbmd0aFwiOiAxMDI0LFxuICBcIm1heF9wb3NpdGlvbl9lbWJlZGRpbmdzXCI6IDEwMjQsXG4gIFwicG9zX2VtYlwiOiBcInJvdGFyeVwiLFxuICBcIm5vX3dlaWdodF90eWluZ1wiOiB0cnVlLFxuICBcImdwdF9qX3Jlc2lkdWFsXCI6IGZhbHNlLFxuICBcIm91dHB1dF9sYXllcl9wYXJhbGxlbGlzbVwiOiBcImNvbHVtblwiLFxuXG4gIFwic2NhbGVkX3VwcGVyX3RyaWFuZ19tYXNrZWRfc29mdG1heF9mdXNpb25cIjogZmFsc2UsXG4gIFwiYmlhc19nZWx1X2Z1c2lvblwiOiBmYWxzZSxcbiAgXCJyb3BlX2Z1c2lvblwiOiBmYWxzZSxcblxuICAjIE9wdGltaXplclxuICBcIm9wdGltaXplclwiOiB7XG4gICAgXCJ0eXBlXCI6IFwic20zXCIsXG4gICAgXCJwYXJhbXNcIjoge30sXG4gIH0sXG5cbiAgIyBwcmVjaXNpb25cbiAgXCJwcmVjaXNpb25cIjogXCJmcDE2XCIsXG5cbiAgIyBpbml0IG1ldGhvZHNcbiAgXCJpbml0X21ldGhvZFwiOiBcInNtYWxsX2luaXRcIixcbiAgXCJvdXRwdXRfbGF5ZXJfaW5pdF9tZXRob2RcIjogXCJ3YW5nX2luaXRcIixcblxuICBcInRyYWluX21pY3JvX2JhdGNoX3NpemVfcGVyX2dwdVwiOiA0LFxuICBcImdhc1wiOiAxLFxuICBcImRhdGFfaW1wbFwiOiBcIm1tYXBcIixcbiAgXCJudW1fd29ya2Vyc1wiOiAxLFxuXG4gICMgYWN0aXZhdGlvbiBjaGVja3BvaW50aW5nXG4gIFwiY2hlY2twb2ludF9hY3RpdmF0aW9uc1wiOiB0cnVlLFxuICBcImNoZWNrcG9pbnRfbnVtX2xheWVyc1wiOiAxLFxuICBcInBhcnRpdGlvbl9hY3RpdmF0aW9uc1wiOiB0cnVlLFxuICBcInN5bmNocm9uaXplX2VhY2hfbGF5ZXJcIjogdHJ1ZSxcblxuICAjIHJlZ3VsYXJpemF0aW9uXG4gIFwiZ3JhZGllbnRfY2xpcHBpbmdcIjogMS4wLFxuICBcIndlaWdodF9kZWNheVwiOiAwLjEsXG4gIFwiaGlkZGVuX2Ryb3BvdXRcIjogMCxcbiAgXCJhdHRlbnRpb25fZHJvcG91dFwiOiAwLFxuXG4gIFwiZGlzdHJpYnV0ZWRfYmFja2VuZFwiOiBcIm5jY2xcIixcbiAgXCJscl9kZWNheV9zdHlsZVwiOiBcImNvc2luZVwiLFxuICBcIndhcm11cFwiOiAwLjAxLFxuICBcImNoZWNrcG9pbnRfZmFjdG9yXCI6IDEwMDAsXG4gIFwiZXZhbF9pbnRlcnZhbFwiOiAxMDAwMDAsXG4gIFwiZXZhbF9pdGVyc1wiOiAxMCxcblxuICBcImxvZ19pbnRlcnZhbFwiOiAxMCxcbiAgXCJzdGVwc19wZXJfcHJpbnRcIjogMTAsXG4gIFwid2FsbF9jbG9ja19icmVha2Rvd25cIjogdHJ1ZSxcblxuICAjIGFkZGl0aW9uYWwgZGVlcHNwZWVkIGFyZ3Mgbm90IHNwZWNpZmllZCBhYm92ZVxuICBcImRlZXBzcGVlZF9leHRyYV9hcmdzXCI6IHtcbiAgICBcImNvbW1zX2xvZ2dlclwiOiB7XG4gICAgICAgIFwiZW5hYmxlZFwiOiB0cnVlLFxuICAgICAgICBcInZlcmJvc2VcIjogdHJ1ZSxcbiAgICAgICAgXCJwcm9mX2FsbFwiOiB0cnVlLFxuICAgICAgICBcImRlYnVnXCI6IGZhbHNlXG4gICAgfSxcbiAgfVxufVxuIn0sICJjaGVja3BvaW50X2ZhY3RvciI6IDEwMDAsICJiYXRjaF9zaXplIjogNCwgInRyYWluX2l0ZXJzIjogMjAsICJldmFsX2l0ZXJzIjogMTAsICJldmFsX2ludGVydmFsIjogMTAwMDAwLCAidm9jYWJfZmlsZSI6ICJkYXRhL2dwdDItdm9jYWIuanNvbiIsICJtZXJnZV9maWxlIjogImRhdGEvZ3B0Mi1tZXJnZXMudHh0IiwgIm51bV93b3JrZXJzIjogMSwgImNoZWNrcG9pbnRfYWN0aXZhdGlvbnMiOiB0cnVlLCAic3luY2hyb25pemVfZWFjaF9sYXllciI6IHRydWUsICJwYXJ0aXRpb25fYWN0aXZhdGlvbnMiOiB0cnVlLCAiZ2FzIjogMSwgImR5bmFtaWNfbG9zc19zY2FsZSI6IHRydWUsICJwaXBlX3BhcmFsbGVsX3NpemUiOiAxLCAid29ybGRfc2l6ZSI6IDEsICJpc19waXBlX3BhcmFsbGVsIjogdHJ1ZSwgInVzZV93YW5kYiI6IGZhbHNlLCAibG9nX2ludGVydmFsIjogMTAsICJ0ZXh0X2dlbl90eXBlIjogInVuY29uZGl0aW9uYWwiLCAibG9jYWxfcmFuayI6IDAsICJyYW5rIjogMCwgInVzZXJfc2NyaXB0IjogInRyYWluLnB5IiwgInNhdmVfaXRlcnMiOiBbXSwgImdsb2JhbF9udW1fZ3B1cyI6IDF9']"]], "loss_per_iteration": [[9.0, "[]"]]}, "Program Information": "Project Name: EleutherAI+gpt-neox", "idx": 527} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def get_args(input_args=None):\n parser = argparse.ArgumentParser()\n group = parser.add_argument_group(title=\"input data\")\n group.add_argument(\n \"--input\",\n type=str,\n required=True,\n help=\"Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated \"\n \"list\",\n )\n group.add_argument(\n \"--jsonl-keys\",\n nargs=\"+\",\n default=[\"text\"],\n help=\"space separate listed of keys to extract from jsonl. Defa\",\n )\n group.add_argument(\n \"--num-docs\",\n default=None,\n help=\"Optional: Number of documents in the input data (if known) for an accurate progress bar.\",\n type=int,\n )\n group = parser.add_argument_group(title=\"tokenizer\")\n group.add_argument(\n \"--tokenizer-type\",\n type=str,\n required=True,\n choices=[\n \"HFGPT2Tokenizer\",\n \"HFTokenizer\",\n \"GPT2BPETokenizer\",\n \"CharLevelTokenizer\",\n \"TiktokenTokenizer\",\n \"SPMTokenizer\",\n ],\n help=\"What type of tokenizer to use.\",\n )\n group.add_argument(\n \"--vocab-file\", type=str, default=None, help=\"Path to the vocab file\"\n )\n group.add_argument(\n \"--merge-file\",\n type=str,\n default=None,\n help=\"Path to the BPE merge file (if necessary).\",\n )\n group.add_argument(\n \"--append-eod\",\n action=\"store_true\",\n help=\"Append an token to the end of a document.\",\n )\n group.add_argument(\"--ftfy\", action=\"store_true\", help=\"Use ftfy to clean text\")\n group = parser.add_argument_group(title=\"output data\")\n group.add_argument(\n \"--output-prefix\",\n type=str,\n required=True,\n help=\"Path to binary output file without suffix\",\n )\n group.add_argument(\n \"--dataset-impl\",\n type=str,\n default=\"mmap\",\n choices=[\"lazy\", \"cached\", \"mmap\"],\n help=\"Dataset implementation to use. Default: mmap\",\n )\n\n group = parser.add_argument_group(title=\"runtime\")\n group.add_argument(\n \"--workers\", type=int, default=1, help=\"Number of worker processes to launch\"\n )\n group.add_argument(\n \"--log-interval\",\n type=int,\n default=100,\n help=\"Interval between progress updates\",\n )\n args = parser.parse_args(input_args)\n args.keep_empty = False\n\n # some default/dummy values for the tokenizer\n args.rank = 0\n args.make_vocab_size_divisible_by = 128\n args.model_parallel_size = 1\n\n return args\n\nget_args(input_args=['--input', './tests/data/enwik8_first100.txt', '--output-prefix', './tests/data/enwik8_first100', '--vocab', 'gpt2', '--tokenizer-type', 'HFGPT2Tokenizer', '--merge-file', './data/gpt2-merges.txt', '--append-eod'])", "Selected Statement": "args.keep_empty = False", "Function Input": {"input_args": "['--input', './tests/data/enwik8_first100.txt', '--output-prefix', './tests/data/enwik8_first100', '--vocab', 'gpt2', '--tokenizer-type', 'HFGPT2Tokenizer', '--merge-file', './data/gpt2-merges.txt', '--append-eod']"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"input_args": [[1, "['--input', './tests/data/enwik8_first100.txt', '--output-prefix', './tests/data/enwik8_first100', '--vocab', 'gpt2', '--tokenizer-type', 'HFGPT2Tokenizer', '--merge-file', './data/gpt2-merges.txt', '--append-eod']"]], "parser": [[2.0, "ArgumentParser(prog='__main__.py', usage=None, description=None, formatter_class=, conflict_handler='error', add_help=True)"]], "group": [[3.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='input data', _group_actions=[]}"], [4.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='input data', _group_actions=[_StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None)]}"], [11.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='input data', _group_actions=[_StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None)]}"], [17.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='input data', _group_actions=[_StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None)]}"], [23.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='tokenizer', _group_actions=[]}"], [24.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='tokenizer', _group_actions=[_StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None)]}"], [38.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='tokenizer', _group_actions=[_StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None)]}"], [41.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), '--merge-file': _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='tokenizer', _group_actions=[_StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None)]}"], [47.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), '--merge-file': _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), '--append-eod': _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='tokenizer', _group_actions=[_StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None)]}"], [52.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), '--merge-file': _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), '--append-eod': _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), '--ftfy': _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='tokenizer', _group_actions=[_StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None)]}"], [53.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), '--merge-file': _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), '--append-eod': _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), '--ftfy': _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='output data', _group_actions=[]}"], [54.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), '--merge-file': _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), '--append-eod': _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), '--ftfy': _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), '--output-prefix': _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='output data', _group_actions=[_StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None)]}"], [60.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None), _StoreAction(option_strings=['--dataset-impl'], dest='dataset_impl', nargs=None, const=None, default='mmap', type=, choices=['lazy', 'cached', 'mmap'], required=False, help='Dataset implementation to use. Default: mmap', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), '--merge-file': _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), '--append-eod': _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), '--ftfy': _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), '--output-prefix': _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None), '--dataset-impl': _StoreAction(option_strings=['--dataset-impl'], dest='dataset_impl', nargs=None, const=None, default='mmap', type=, choices=['lazy', 'cached', 'mmap'], required=False, help='Dataset implementation to use. Default: mmap', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='output data', _group_actions=[_StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None), _StoreAction(option_strings=['--dataset-impl'], dest='dataset_impl', nargs=None, const=None, default='mmap', type=, choices=['lazy', 'cached', 'mmap'], required=False, help='Dataset implementation to use. Default: mmap', metavar=None)]}"], [68.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None), _StoreAction(option_strings=['--dataset-impl'], dest='dataset_impl', nargs=None, const=None, default='mmap', type=, choices=['lazy', 'cached', 'mmap'], required=False, help='Dataset implementation to use. Default: mmap', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), '--merge-file': _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), '--append-eod': _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), '--ftfy': _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), '--output-prefix': _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None), '--dataset-impl': _StoreAction(option_strings=['--dataset-impl'], dest='dataset_impl', nargs=None, const=None, default='mmap', type=, choices=['lazy', 'cached', 'mmap'], required=False, help='Dataset implementation to use. Default: mmap', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='runtime', _group_actions=[]}"], [69.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None), _StoreAction(option_strings=['--dataset-impl'], dest='dataset_impl', nargs=None, const=None, default='mmap', type=, choices=['lazy', 'cached', 'mmap'], required=False, help='Dataset implementation to use. Default: mmap', metavar=None), _StoreAction(option_strings=['--workers'], dest='workers', nargs=None, const=None, default=1, type=, choices=None, required=False, help='Number of worker processes to launch', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), '--merge-file': _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), '--append-eod': _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), '--ftfy': _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), '--output-prefix': _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None), '--dataset-impl': _StoreAction(option_strings=['--dataset-impl'], dest='dataset_impl', nargs=None, const=None, default='mmap', type=, choices=['lazy', 'cached', 'mmap'], required=False, help='Dataset implementation to use. Default: mmap', metavar=None), '--workers': _StoreAction(option_strings=['--workers'], dest='workers', nargs=None, const=None, default=1, type=, choices=None, required=False, help='Number of worker processes to launch', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='runtime', _group_actions=[_StoreAction(option_strings=['--workers'], dest='workers', nargs=None, const=None, default=1, type=, choices=None, required=False, help='Number of worker processes to launch', metavar=None)]}"], [72.0, "{description=None, argument_default=None, prefix_chars='-', conflict_handler='error', _registries={'action': {None: , 'store': , 'store_const': , 'store_true': , 'store_false': , 'append': , 'append_const': , 'count': , 'help': , 'version': , 'parsers': , 'extend': }, 'type': {None: .identity at 0x7f1a9c171d30>}}, _actions=[_HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None), _StoreAction(option_strings=['--dataset-impl'], dest='dataset_impl', nargs=None, const=None, default='mmap', type=, choices=['lazy', 'cached', 'mmap'], required=False, help='Dataset implementation to use. Default: mmap', metavar=None), _StoreAction(option_strings=['--workers'], dest='workers', nargs=None, const=None, default=1, type=, choices=None, required=False, help='Number of worker processes to launch', metavar=None), _StoreAction(option_strings=['--log-interval'], dest='log_interval', nargs=None, const=None, default=100, type=, choices=None, required=False, help='Interval between progress updates', metavar=None)], _option_string_actions={'-h': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--help': _HelpAction(option_strings=['-h', '--help'], dest='help', nargs=0, const=None, default='==SUPPRESS==', type=None, choices=None, required=False, help='show this help message and exit', metavar=None), '--input': _StoreAction(option_strings=['--input'], dest='input', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to input jsonl files or lmd archive(s) - if using multiple archives, put them in a comma separated list', metavar=None), '--jsonl-keys': _StoreAction(option_strings=['--jsonl-keys'], dest='jsonl_keys', nargs='+', const=None, default=['text'], type=None, choices=None, required=False, help='space separate listed of keys to extract from jsonl. Defa', metavar=None), '--num-docs': _StoreAction(option_strings=['--num-docs'], dest='num_docs', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Optional: Number of documents in the input data (if known) for an accurate progress bar.', metavar=None), '--tokenizer-type': _StoreAction(option_strings=['--tokenizer-type'], dest='tokenizer_type', nargs=None, const=None, default=None, type=, choices=['HFGPT2Tokenizer', 'HFTokenizer', 'GPT2BPETokenizer', 'CharLevelTokenizer', 'TiktokenTokenizer', 'SPMTokenizer'], required=True, help='What type of tokenizer to use.', metavar=None), '--vocab-file': _StoreAction(option_strings=['--vocab-file'], dest='vocab_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the vocab file', metavar=None), '--merge-file': _StoreAction(option_strings=['--merge-file'], dest='merge_file', nargs=None, const=None, default=None, type=, choices=None, required=False, help='Path to the BPE merge file (if necessary).', metavar=None), '--append-eod': _StoreTrueAction(option_strings=['--append-eod'], dest='append_eod', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Append an token to the end of a document.', metavar=None), '--ftfy': _StoreTrueAction(option_strings=['--ftfy'], dest='ftfy', nargs=0, const=True, default=False, type=None, choices=None, required=False, help='Use ftfy to clean text', metavar=None), '--output-prefix': _StoreAction(option_strings=['--output-prefix'], dest='output_prefix', nargs=None, const=None, default=None, type=, choices=None, required=True, help='Path to binary output file without suffix', metavar=None), '--dataset-impl': _StoreAction(option_strings=['--dataset-impl'], dest='dataset_impl', nargs=None, const=None, default='mmap', type=, choices=['lazy', 'cached', 'mmap'], required=False, help='Dataset implementation to use. Default: mmap', metavar=None), '--workers': _StoreAction(option_strings=['--workers'], dest='workers', nargs=None, const=None, default=1, type=, choices=None, required=False, help='Number of worker processes to launch', metavar=None), '--log-interval': _StoreAction(option_strings=['--log-interval'], dest='log_interval', nargs=None, const=None, default=100, type=, choices=None, required=False, help='Interval between progress updates', metavar=None)}, _action_groups=[], _mutually_exclusive_groups=[], _defaults={}, _negative_number_matcher=re.compile('^-\\\\d+$|^-\\\\d*\\\\.\\\\d+$'), _has_negative_number_optionals=[], title='runtime', _group_actions=[_StoreAction(option_strings=['--workers'], dest='workers', nargs=None, const=None, default=1, type=, choices=None, required=False, help='Number of worker processes to launch', metavar=None), _StoreAction(option_strings=['--log-interval'], dest='log_interval', nargs=None, const=None, default=100, type=, choices=None, required=False, help='Interval between progress updates', metavar=None)]}"]], "args": [[78.0, "Namespace(input='./tests/data/enwik8_first100.txt', jsonl_keys=['text'], num_docs=None, tokenizer_type='HFGPT2Tokenizer', vocab_file='gpt2', merge_file='./data/gpt2-merges.txt', append_eod=True, ftfy=False, output_prefix='./tests/data/enwik8_first100', dataset_impl='mmap', workers=1, log_interval=100)"], [79.0, "Namespace(input='./tests/data/enwik8_first100.txt', jsonl_keys=['text'], num_docs=None, tokenizer_type='HFGPT2Tokenizer', vocab_file='gpt2', merge_file='./data/gpt2-merges.txt', append_eod=True, ftfy=False, output_prefix='./tests/data/enwik8_first100', dataset_impl='mmap', workers=1, log_interval=100, keep_empty=False)"], [82.0, "Namespace(input='./tests/data/enwik8_first100.txt', jsonl_keys=['text'], num_docs=None, tokenizer_type='HFGPT2Tokenizer', vocab_file='gpt2', merge_file='./data/gpt2-merges.txt', append_eod=True, ftfy=False, output_prefix='./tests/data/enwik8_first100', dataset_impl='mmap', workers=1, log_interval=100, keep_empty=False, rank=0)"], [83.0, "Namespace(input='./tests/data/enwik8_first100.txt', jsonl_keys=['text'], num_docs=None, tokenizer_type='HFGPT2Tokenizer', vocab_file='gpt2', merge_file='./data/gpt2-merges.txt', append_eod=True, ftfy=False, output_prefix='./tests/data/enwik8_first100', dataset_impl='mmap', workers=1, log_interval=100, keep_empty=False, rank=0, make_vocab_size_divisible_by=128)"], [84.0, "Namespace(input='./tests/data/enwik8_first100.txt', jsonl_keys=['text'], num_docs=None, tokenizer_type='HFGPT2Tokenizer', vocab_file='gpt2', merge_file='./data/gpt2-merges.txt', append_eod=True, ftfy=False, output_prefix='./tests/data/enwik8_first100', dataset_impl='mmap', workers=1, log_interval=100, keep_empty=False, rank=0, make_vocab_size_divisible_by=128, model_parallel_size=1)"]]}, "Program Information": "Project Name: EleutherAI+gpt-neox", "idx": 528} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def gen_search_gzh_url(keyword, page=1):\n \"\"\"\u62fc\u63a5\u641c\u7d22 \u516c\u4f17\u53f7 URL\n\n Parameters\n ----------\n keyword : str or unicode\n \u641c\u7d22\u6587\u5b57\n page : int, optional\n \u9875\u6570 the default is 1\n\n Returns\n -------\n str\n search_gzh_url\n \"\"\"\n assert isinstance(page, int) and page > 0\n\n qs_dict = OrderedDict()\n qs_dict['type'] = _search_type_gzh\n qs_dict['page'] = page\n qs_dict['ie'] = 'utf8'\n qs_dict['query'] = keyword\n\n return 'http://weixin.sogou.com/weixin?{}'.format(urlencode(qs_dict))\n\ngen_search_gzh_url(keyword='\u9ad8\u8003', page=1)", "Selected Statement": "qs_dict['ie'] = 'utf8'", "Function Input": {"keyword": "'\u9ad8\u8003'", "page": "1"}, "Variable Values Before Statement": {"Constant": "'utf8'"}, "Value After Statement Execution": "'utf8'", "Variable States During Runtime": {"keyword": [[1, "'\u9ad8\u8003'"]], "page": [[1, "1"]], "qs_dict": [[18.0, "OrderedDict()"], [19.0, "OrderedDict([('type', 1)])"], [20.0, "OrderedDict([('type', 1), ('page', 1)])"], [21.0, "OrderedDict([('type', 1), ('page', 1), ('ie', 'utf8')])"], [22.0, "OrderedDict([('type', 1), ('page', 1), ('ie', 'utf8'), ('query', '\u9ad8\u8003')])"]]}, "Program Information": "Project Name: chyroc+WechatSogou", "idx": 529} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def check_just_one_not_none(*value_refname):\n nones=0\n for a_tuple in value_refname:\n if a_tuple[0] is not None:\n nones += 1\n if nones != 1:\n raise ValueError(error_message_for_non_compatible_references([a_tuple[1] for a_tuple in value_refname]))\n\ncheck_just_one_not_none(value_refname=((None, 'graph_file_input'), (None, 'graph_list_of_files_input'), ('\\n@prefix : .\\n@prefix xsd: .\\n\\n:Marie a :person ;\\n\\t:likes :Justine ;\\n\\t:likes :Antoine ;\\n\\t:likes :football ;\\n\\t:name \"Marie\" ;\\n\\t:age \"30\"^^xsd:int .\\n\\n:Justine a :person ;\\n :likes :Marie ;\\n :likes :basketball ;\\n :name \"Justine\" .\\n\\n:Antoine a :person ;\\n\\t:likes :Marie ;\\n\\t:likes :Justine ;\\n\\t:name \"Antoine\" ;\\n\\t:age \"32\"^^xsd:int .\\n', 'raw_graph'), (None, 'url_input'), (None, 'list_of_url_input'), (None, 'url_endpoint')))", "Selected Statement": "nones=0", "Function Input": {"value_refname": "((None, 'graph_file_input'), (None, 'graph_list_of_files_input'), ('\\n@prefix : .\\n@prefix xsd: .\\n\\n:Marie a :person ;\\n\\t:likes :Justine ;\\n\\t:likes :Antoine ;\\n\\t:likes :football ;\\n\\t:name \"Marie\" ;\\n\\t:age \"30\"^^xsd:int .\\n\\n:Justine a :person ;\\n :likes :Marie ;\\n :likes :basketball ;\\n :name \"Justine\" .\\n\\n:Antoine a :person ;\\n\\t:likes :Marie ;\\n\\t:likes :Justine ;\\n\\t:name \"Antoine\" ;\\n\\t:age \"32\"^^xsd:int .\\n', 'raw_graph'), (None, 'url_input'), (None, 'list_of_url_input'), (None, 'url_endpoint'))"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"value_refname": [[1, "((None, 'graph_file_input'), (None, 'graph_list_of_files_input'), ('\\n@prefix : .\\n@prefix xsd: .\\n\\n:Marie a :person ;\\n\\t:likes :Justine ;\\n\\t:likes :Antoine ;\\n\\t:likes :football ;\\n\\t:name \"Marie\" ;\\n\\t:age \"30\"^^xsd:int .\\n\\n:Justine a :person ;\\n :likes :Marie ;\\n :likes :basketball ;\\n :name \"Justine\" .\\n\\n:Antoine a :person ;\\n\\t:likes :Marie ;\\n\\t:likes :Justine ;\\n\\t:name \"Antoine\" ;\\n\\t:age \"32\"^^xsd:int .\\n', 'raw_graph'), (None, 'url_input'), (None, 'list_of_url_input'), (None, 'url_endpoint'))"]], "nones": [[2.0, "0"], [5.0, "1"]], "a_tuple": [[3.0, "(None, 'graph_file_input')"], [3.0, "(None, 'graph_list_of_files_input')"], [3.0, "('\\n@prefix : .\\n@prefix xsd: .\\n\\n:Marie a :person ;\\n\\t:likes :Justine ;\\n\\t:likes :Antoine ;\\n\\t:likes :football ;\\n\\t:name \"Marie\" ;\\n\\t:age \"30\"^^xsd:int .\\n\\n:Justine a :person ;\\n :likes :Marie ;\\n :likes :basketball ;\\n :name \"Justine\" .\\n\\n:Antoine a :person ;\\n\\t:likes :Marie ;\\n\\t:likes :Justine ;\\n\\t:name \"Antoine\" ;\\n\\t:age \"32\"^^xsd:int .\\n', 'raw_graph')"], [3.0, "(None, 'url_input')"], [3.0, "(None, 'list_of_url_input')"], [3.0, "(None, 'url_endpoint')"]]}, "Program Information": "Project Name: DaniFdezAlvarez+shexerp3", "idx": 530} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def check_one_or_zero_not_none(*value_refname):\n nones=0\n for a_tuple in value_refname:\n if a_tuple[0] is not None:\n nones += 1\n if nones > 1:\n raise ValueError(error_message_for_non_compatible_references(\n list_of_ref_names=[a_tuple[1] for a_tuple in value_refname],\n one_mandatory=False))\n\ncheck_one_or_zero_not_none(value_refname=((None, 'namespaces_dict'), (None, 'namespaces_dict_file')))", "Selected Statement": "nones=0", "Function Input": {"value_refname": "((None, 'namespaces_dict'), (None, 'namespaces_dict_file'))"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"value_refname": [[1, "((None, 'namespaces_dict'), (None, 'namespaces_dict_file'))"]], "nones": [[2.0, "0"]], "a_tuple": [[3.0, "(None, 'namespaces_dict')"], [3.0, "(None, 'namespaces_dict_file')"]]}, "Program Information": "Project Name: DaniFdezAlvarez+shexerp3", "idx": 531} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def cd(args: list) -> None:\n \"\"\"\n Change the current working directory of the device.\n\n While this method does not actually change any directories,\n it simply updates the value in the file_manager_state property\n that keeps record of the current directory.\n\n Before changing directories though, some checks are performed\n on the device to at least ensure that the destination directory\n exists.\n\n :param args:\n :return:\n \"\"\"\n\n if len(args) <= 0:\n click.secho('Usage: cd ', bold=True)\n return\n\n path = args[0]\n current_dir = pwd()\n\n # nothing to do\n if path == '.':\n return\n\n # moving one directory back\n if path == '..':\n\n split_path = os.path.split(current_dir)\n\n # nothing to do if we are already at root\n if len(split_path) == 1:\n return\n\n new_path = ''.join(split_path[:-1])\n click.secho(new_path, fg='green', bold=True)\n\n file_manager_state.cwd = new_path\n\n return\n\n # if we got an absolute path, check if the path\n # actually exists, and then cd to it if we can\n if os.path.isabs(path):\n\n # assume the path does not exist by default\n does_exist = False\n\n # check for existence based on the runtime\n if device_state.platform == Ios:\n does_exist = _path_exists_ios(path)\n\n if device_state.platform == Android:\n does_exist = _path_exists_android(path)\n\n # if we checked with the device that the path exists\n # and it did, update the state manager, otherwise\n # show an error that the path may be invalid\n if does_exist:\n click.secho(path, fg='green', bold=True)\n\n file_manager_state.cwd = path\n return\n\n else:\n click.secho('Invalid path: `{0}`'.format(path), fg='red')\n\n # directory is not absolute, tack it on at the end and\n # see if its legit.\n else:\n\n proposed_path = device_state.platform.path_separator.join([current_dir, path])\n\n # assume the proposed_path does not exist by default\n does_exist = False\n\n # check for existence based on the runtime\n if device_state.platform == Ios:\n does_exist = _path_exists_ios(proposed_path)\n\n if device_state.platform == Android:\n does_exist = _path_exists_android(proposed_path)\n\n # if we checked with the device that the path exists\n # and it did, update the state manager, otherwise\n # show an error that the path may be invalid\n if does_exist:\n click.secho(proposed_path, fg='green', bold=True)\n\n file_manager_state.cwd = proposed_path\n return\n\n else:\n click.secho('Invalid path: `{0}`'.format(proposed_path), fg='red')\n\ncd(args=['/foo/bar/baz'])", "Selected Statement": "does_exist = False", "Function Input": {"args": "['/foo/bar/baz']"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"args": [[1, "['/foo/bar/baz']"]], "path": [[21.0, "'/foo/bar/baz'"]], "current_dir": [[22.0, "'/foo'"]], "does_exist": [[49.0, "False"], [56.0, "True"]]}, "Program Information": "Project Name: sensepost+objection", "idx": 532} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def dump_all(args: list) -> None:\n \"\"\"\n Dump memory from the currently injected process.\n Loosely based on:\n https://github.com/Nightbringer21/fridump\n\n :param args:\n :return:\n \"\"\"\n\n if len(clean_argument_flags(args)) <= 0:\n click.secho('Usage: memory dump all ', bold=True)\n return\n\n # the destination file to write the dump to\n destination = args[0]\n\n # Check for file override\n if os.path.exists(destination):\n click.secho('Destination file {dest} already exists'.format(dest=destination), fg='yellow', bold=True)\n if not click.confirm('Continue, appending to the file?'):\n return\n\n # access type used when enumerating ranges\n access = 'rw-'\n\n api = state_connection.get_api()\n ranges = api.memory_list_ranges(access)\n\n total_size = sum([x['size'] for x in ranges])\n click.secho('Will dump {0} {1} images, totalling {2}'.format(\n len(ranges), access, sizeof_fmt(total_size)), fg='green', dim=True)\n\n with click.progressbar(ranges) as bar:\n for image in bar:\n dump = bytearray()\n bar.label = 'Dumping {0} from base: {1}'.format(sizeof_fmt(image['size']), hex(int(image['base'], 16)))\n\n # catch and exception thrown while dumping.\n # this could for a few reasons like if the protection\n # changes or the range is reallocated\n try:\n # grab the (size) bytes starting at the (base_address) in chunks of BLOCK_SIZE\n chunks = _get_chunks(int(image['base'], 16), int(image['size']), BLOCK_SIZE)\n for chunk in chunks:\n dump.extend(bytearray(api.memory_dump(chunk[0], chunk[1])))\n\n except Exception as e:\n continue\n\n # append the results to the destination file\n with open(destination, 'ab') as f:\n f.write(dump)\n\n click.secho('Memory dumped to file: {0}'.format(destination), fg='green')\n\ndump_all(args=['/foo'])", "Selected Statement": "access = 'rw-'", "Function Input": {"args": "['/foo']"}, "Variable Values Before Statement": {"Constant": "'rw-'"}, "Value After Statement Execution": "'rw-'", "Variable States During Runtime": {"args": [[1, "['/foo']"]], "destination": [[16.0, "'/foo'"]], "access": [[25.0, "'rw-'"]], "api": [[27.0, ""]], "ranges": [[28.0, "[{'size': 100, 'base': '0x7fff90800000'}]"]], "total_size": [[30.0, "100"]], "bar": [[34.0, "{fill_char='#', empty_char='-', bar_template='%(label)s [%(bar)s] %(info)s', info_sep=' ', show_eta=True, show_percent=None, show_pos=False, item_show_func=None, label='', file=<_io.StringIO object at 0x7f5e07a3a3a0>, color=None, update_min_steps=1, _completed_intervals=0, width=36, autowidth=False, iter=, length=1, pos=0, avg=[], start=1712231192.5557132, last_eta=1712231192.5557132, eta_known=False, finished=False, max_width=None, entered=True, current_item=None, is_hidden=True, _last_line=''}"], [37.0, "{fill_char='#', empty_char='-', bar_template='%(label)s [%(bar)s] %(info)s', info_sep=' ', show_eta=True, show_percent=None, show_pos=False, item_show_func=None, label='Dumping 100.0 B from base: 0x7fff90800000', file=<_io.StringIO object at 0x7f5e07a3a3a0>, color=None, update_min_steps=1, _completed_intervals=0, width=36, autowidth=False, iter=, length=1, pos=0, avg=[], start=1712231192.5557132, last_eta=1712231192.5557132, eta_known=False, finished=False, max_width=None, entered=True, current_item=None, is_hidden=True, _last_line=''}"]], "image": [[35.0, "{'size': 100, 'base': '0x7fff90800000'}"]], "dump": [[36.0, "bytearray(b'')"], [46.0, "bytearray(b'\\x00')"]], "chunks": [[44.0, "[(140735617695744, 100)]"]], "chunk": [[45.0, "(140735617695744, 100)"]], "f": [[52.0, ""]]}, "Program Information": "Project Name: sensepost+objection", "idx": 533} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def num_parameters(module: nn.Module, requires_grad: Optional[bool] = None) -> int:\n total = 0\n for p in module.parameters():\n if requires_grad is None or p.requires_grad == requires_grad:\n if hasattr(p, \"quant_state\"):\n # bitsandbytes 4bit layer support\n total += math.prod(p.quant_state[1])\n else:\n total += p.numel()\n return total\n\nnum_parameters(module=GPT( (lm_head): Linear(in_features=8, out_features=8, bias=False) (transformer): ModuleDict( (wte): Embedding(8, 8) (h): ModuleList( (0-1): 2 x Block( (norm_1): LayerNorm((8,), eps=1e-05, elementwise_affine=True) (attn): CausalSelfAttention( (attn): Linear(in_features=8, out_features=24, bias=True) (proj): Linear(in_features=8, out_features=8, bias=True) (adapter_wte): Embedding(10, 8) ) (norm_2): LayerNorm((8,), eps=1e-05, elementwise_affine=True) (mlp): GptNeoxMLP( (fc): Linear(in_features=8, out_features=32, bias=True) (proj): Linear(in_features=32, out_features=8, bias=True) ) ) ) (ln_f): LayerNorm((8,), eps=1e-05, elementwise_affine=True) )), requires_grad=True)", "Selected Statement": "total = 0", "Function Input": {"module": "GPT( (lm_head): Linear(in_features=8, out_features=8, bias=False) (transformer): ModuleDict( (wte): Embedding(8, 8) (h): ModuleList( (0-1): 2 x Block( (norm_1): LayerNorm((8,), eps=1e-05, elementwise_affine=True) (attn): CausalSelfAttention( (attn): Linear(in_features=8, out_features=24, bias=True) (proj): Linear(in_features=8, out_features=8, bias=True) (adapter_wte): Embedding(10, 8) ) (norm_2): LayerNorm((8,), eps=1e-05, elementwise_affine=True) (mlp): GptNeoxMLP( (fc): Linear(in_features=8, out_features=32, bias=True) (proj): Linear(in_features=32, out_features=8, bias=True) ) ) ) (ln_f): LayerNorm((8,), eps=1e-05, elementwise_affine=True) ))", "requires_grad": "True"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"module": [[1, "GPT( (lm_head): Linear(in_features=8, out_features=8, bias=False) (transformer): ModuleDict( (wte): Embedding(8, 8) (h): ModuleList( (0-1): 2 x Block( (norm_1): LayerNorm((8,), eps=1e-05, elementwise_affine=True) (attn): CausalSelfAttention( (attn): Linear(in_features=8, out_features=24, bias=True) (proj): Linear(in_features=8, out_features=8, bias=True) (adapter_wte): Embedding(10, 8) ) (norm_2): LayerNorm((8,), eps=1e-05, elementwise_affine=True) (mlp): GptNeoxMLP( (fc): Linear(in_features=8, out_features=32, bias=True) (proj): Linear(in_features=32, out_features=8, bias=True) ) ) ) (ln_f): LayerNorm((8,), eps=1e-05, elementwise_affine=True) ))"]], "requires_grad": [[1, "True"]], "total": [[2.0, "0"], [9.0, "4"], [9.0, "84"], [9.0, "88"], [9.0, "168"]], "p": [[3.0, "Parameter containing:tensor([[ 2.5051e-01, 7.4097e-02, 2.7177e-01, -5.9998e-02, 8.6356e-02, -1.3355e-01, 1.0265e-01, -2.0430e-01], [ 1.4669e-01, 7.2689e-03, -3.2900e-01, 1.0448e-01, 3.4156e-01, 2.7166e-01, 2.9204e-04, 2.8477e-01], [ 1.3237e-01, -3.6001e-02, -1.9379e-01, -3.1665e-01, -1.9673e-02, 1.4157e-01, -1.6257e-01, -5.8137e-02], [-3.2136e-01, 2.8897e-01, -1.4786e-01, -9.7668e-02, -9.4666e-02, 7.1392e-02, 3.3215e-02, 6.9191e-02], [-7.4534e-02, 9.6344e-02, -1.4053e-01, 2.9236e-01, -2.3084e-01, 4.0563e-02, -1.0258e-01, 5.0443e-02], [ 2.3882e-02, -2.4875e-01, 1.6451e-01, 2.4647e-01, -1.9841e-01, -2.1787e-01, 4.3476e-02, 1.9028e-01], [ 2.8256e-01, -3.3064e-01, -2.7154e-01, -3.1312e-02, 1.0199e-01, 2.0320e-01, 2.8572e-01, -3.3013e-01], [-2.5533e-01, 3.0206e-01, 2.6309e-01, -1.9970e-01, -8.5685e-02, -3.3387e-01, -1.4620e-01, 3.2047e-01]], device='cuda:0')"], [3.0, "Parameter containing:tensor([[-0.1873, -1.6913, 1.5322, -0.2604, 0.4374, -0.5390, 0.9018, -1.3492], [-1.4882, -0.2612, 0.2189, -2.1828, 0.2255, 0.0258, 0.5657, -0.1797], [-0.3868, 1.8613, 1.2576, 1.1665, -1.1363, 1.3796, 0.1255, -0.7521], [ 0.6191, -0.9324, 0.2700, -0.7107, -1.0066, 1.0416, -3.4774, -0.1996], [-1.7366, -0.0246, 0.6478, -1.6823, 0.1165, -0.1131, 0.4057, 1.6760], [-0.7652, -0.2967, -1.4861, -1.5751, 0.7827, -1.4315, 1.1021, 0.5113], [ 0.7950, -1.5534, -0.1290, 0.8270, -0.6565, -1.5686, -0.7948, -0.1648], [-0.6128, -0.9582, -1.6231, -0.1747, -0.1636, -0.4679, -0.8446, 1.3419]], device='cuda:0')"], [3.0, "Parameter containing:tensor([1., 1., 1., 1., 1., 1., 1., 1.], device='cuda:0')"], [3.0, "Parameter containing:tensor([0., 0., 0., 0., 0., 0., 0., 0.], device='cuda:0')"], [3.0, "Parameter containing:tensor([[[[0.], [0.], [0.], [0.]]]], device='cuda:0', requires_grad=True)"], [3.0, "Parameter containing:tensor([[ 0.0889, -0.3279, 0.2429, 0.3349, -0.2547, 0.1056, 0.0371, 0.0550], [-0.3137, 0.1619, 0.0387, 0.0756, -0.0591, -0.1266, 0.0611, 0.3441], [-0.1166, 0.2823, -0.3208, 0.0186, -0.1165, -0.2267, -0.0338, 0.2221], [-0.3125, 0.1147, 0.2699, -0.2272, -0.0160, -0.1895, 0.0019, -0.0198], [-0.2552, 0.1120, -0.0457, 0.0870, -0.1699, -0.1785, -0.3484, 0.0587], [-0.0898, -0.0517, 0.3024, 0.1719, 0.3463, -0.2257, -0.0244, 0.1555], [-0.1015, -0.0824, 0.3325, 0.2130, -0.0858, -0.0207, -0.2525, -0.0335], [ 0.3278, -0.3148, -0.2676, 0.0028, 0.1150, -0.1644, -0.0803, 0.0623], [-0.1135, 0.0017, 0.2326, -0.3266, 0.1867, -0.1497, -0.1363, 0.1261], [-0.2058, -0.1160, 0.3138, 0.3512, -0.1568, 0.0579, 0.0548, -0.1624], [ 0.3081, -0.2280, -0.0806, 0.2820, 0.0546, -0.2091, -0.1894, 0.2444], [ 0.0360, 0.2564, 0.1636, 0.0356, -0.0698, -0.1037, 0.0326, -0.2676], [ 0.1189, -0.0244, -0.2023, 0.2153, -0.2056, -0.1485, -0.3513, -0.1187], [-0.2108, -0.0278, 0.3477, -0.1904, -0.0801, 0.0428, -0.3516, -0.3473], [ 0.1788, 0.0423, 0.0529, -0.1381, -0.3178, -0.1098, 0.3002, 0.1866], [-0.2771, 0.2207, -0.0026, 0.2869, -0.1001, 0.1216, -0.3239, -0.2597], [-0.1869, 0.0867, -0.2462, 0.1342, 0.2113, 0.0029, -0.0490, -0.0770], [ 0.3244, -0.1292, -0.1739, -0.1651, -0.1083, -0.0072, 0.1775, -0.3086], [ 0.1697, 0.2032, -0.0511, 0.2873, 0.0381, -0.2395, -0.1862, -0.1513], [ 0.1337, -0.1641, -0.0019, -0.2364, 0.1892, 0.2240, 0.0864, 0.0927], [-0.2440, -0.2606, -0.0284, 0.3234, -0.0603, -0.1891, 0.1467, -0.1607], [-0.3067, 0.1486, 0.1116, 0.0019, -0.2838, 0.2787, -0.1030, -0.1641], [ 0.1315, 0.2802, -0.1638, -0.1215, 0.1974, 0.2127, 0.1907, 0.2682], [-0.2875, -0.2310, -0.0783, 0.1118, 0.3227, 0.0332, 0.1439, 0.1362]], device='cuda:0')"], [3.0, "Parameter containing:tensor([-0.0483, 0.1167, -0.1721, 0.0502, 0.0559, -0.1433, -0.1171, -0.2256, 0.0282, 0.2646, -0.1805, 0.3409, -0.2160, -0.1443, 0.0172, 0.3150, -0.2517, 0.2375, -0.1676, 0.1738, -0.2091, -0.0480, -0.1426, -0.1139], device='cuda:0')"], [3.0, "Parameter containing:tensor([[-0.1029, -0.0955, -0.0887, 0.2959, 0.1897, 0.0878, -0.1921, -0.2629], [-0.2350, 0.0745, 0.0712, 0.1219, 0.3308, 0.0990, -0.3520, 0.0619], [ 0.2752, -0.3393, -0.0875, 0.1873, 0.0478, 0.0844, 0.2223, -0.3004], [ 0.0932, 0.1875, -0.2115, -0.1469, -0.0138, 0.3032, 0.0168, 0.0173], [ 0.2179, -0.2037, -0.1758, 0.2727, -0.0537, -0.3480, -0.2911, 0.1600], [ 0.0678, 0.0497, -0.1150, -0.1721, 0.2346, -0.3202, -0.1367, -0.2492], [-0.2869, -0.1534, 0.1284, -0.1534, -0.0133, 0.1076, -0.3000, -0.1015], [-0.0978, -0.2756, 0.2477, -0.2701, 0.2655, -0.1373, 0.3460, -0.3477]], device='cuda:0')"], [3.0, "Parameter containing:tensor([ 0.0784, 0.1758, -0.0545, -0.1572, -0.2092, -0.1891, -0.3255, -0.1430], device='cuda:0')"], [3.0, "Parameter containing:tensor([[ 1.7841, 0.7119, -0.2547, -0.1439, 0.3325, -1.1003, -0.8118, 0.7950], [ 0.8451, 0.6136, -0.4437, -0.5741, 0.8692, 0.7644, 0.3517, -0.5187], [ 0.1640, 0.7780, -1.4086, -1.6044, 2.2455, -0.3546, 0.6550, 1.1929], [-0.6591, 0.3522, 0.9287, 0.5068, 0.1667, 0.0170, 0.2055, -0.6080], [ 0.7926, 1.4860, -0.6619, 0.0146, 1.3542, -1.1758, -0.2057, 0.3901], [-0.3752, -1.3377, -0.0463, 0.2028, -0.4402, 1.7848, -0.1331, -0.2884], [-0.3826, -0.1052, 0.4611, -0.9059, -2.0166, 0.2997, 1.2361, -0.4174], [-2.1430, -0.8734, 0.5893, 0.2488, -0.2177, 0.6726, 1.1039, 1.0060], [ 0.5812, -0.8599, -0.3468, -0.1275, -0.4766, -0.1236, 0.8605, 1.0199], [ 0.9441, 0.3637, -1.8332, 0.1539, 0.7132, 0.0950, 0.8609, -0.9934]], device='cuda:0', requires_grad=True)"], [3.0, "Parameter containing:tensor([1., 1., 1., 1., 1., 1., 1., 1.], device='cuda:0')"], [3.0, "Parameter containing:tensor([0., 0., 0., 0., 0., 0., 0., 0.], device='cuda:0')"], [3.0, "Parameter containing:tensor([[ 6.5893e-02, 2.1358e-02, 1.4805e-01, -2.8966e-01, -9.9211e-02, -4.0558e-02, -1.8081e-01, -1.7177e-01], [ 1.0934e-01, -1.5795e-02, -2.1638e-01, -2.0584e-01, -2.4286e-01, -1.9081e-01, 2.9576e-01, -1.6553e-01], [-3.4252e-02, 6.3052e-04, 8.0188e-02, -1.1135e-01, -3.0725e-01, 2.4029e-01, 5.6000e-02, 1.8650e-01], [-1.5190e-01, -2.3332e-01, -1.5083e-01, -8.7328e-04, 1.0818e-01, 2.6141e-01, 3.3466e-01, 6.6952e-02], [-9.4581e-02, 2.2194e-02, 6.9640e-02, -1.8661e-01, 1.0973e-01, -7.1523e-02, 1.0354e-01, 2.3308e-01], [-3.3942e-01, 3.4300e-01, -3.4288e-01, -9.3225e-02, 3.4878e-01, -2.8878e-01, 2.5149e-01, -9.0007e-03], [-1.6085e-01, 3.5229e-01, 1.6255e-01, 3.3887e-02, -7.4003e-02, -3.3468e-01, 2.3890e-01, -2.3619e-01], [ 7.8607e-02, -2.8461e-01, 5.0856e-02, 8.1235e-02, 1.0375e-01, -3.0794e-01, -6.7361e-02, 3.3582e-01], [ 4.5722e-02, -1.1111e-02, -1.7835e-01, 1.1545e-01, 6.1457e-02, -9.7693e-02, 1.0451e-02, 9.6269e-02], [ 1.8339e-01, 4.3673e-02, 4.5492e-03, -1.3804e-01, -3.1340e-01, 2.9526e-01, 2.3653e-01, 2.7255e-01], [ 8.2121e-02, -1.4972e-01, -2.2425e-01, 3.7039e-02, -2.2301e-01, -1.5539e-01, -5.0423e-02, 2.3112e-01], [-7.5777e-02, -2.9300e-01, -2.1856e-01, 6.8585e-02, -3.2383e-01, 2.3423e-02, -2.2967e-01, -6.8076e-02], [ 4.8495e-02, -2.5661e-01, 2.1968e-01, 3.3006e-01, 3.2420e-01, 3.0799e-01, 6.8646e-03, -1.5422e-02], [ 2.1354e-01, 2.3493e-01, -1.5334e-01, -3.2478e-01, 1.2354e-01, 1.9622e-01, 1.3425e-01, 4.7188e-02], [ 2.9492e-01, -6.1003e-02, -3.3010e-01, -2.0462e-01, 1.7078e-04, -8.6789e-03, -4.8258e-02, 1.4198e-01], [-6.6475e-02, -1.8329e-01, -1.8995e-02, 1.3849e-01, -6.0820e-03, 2.8869e-01, 2.6644e-01, 8.7311e-03], [ 2.7676e-01, -8.9596e-02, -1.2223e-01, -6.2885e-02, -3.0729e-01, -2.0378e-01, -2.6045e-01, 3.4084e-01], [ 5.7260e-02, -1.7303e-02, -1.3779e-01, -3.2510e-01, 2.3286e-01, -1.5465e-01, 2.8172e-01, 8.2384e-02], [ 2.1787e-01, -1.9439e-01, 2.8290e-01, -9.9440e-02, 7.4783e-03, -1.4567e-02, 1.0209e-02, 2.4470e-01], [ 5.9790e-02, 2.4915e-02, 2.7909e-01, 1.0035e-02, -9.5062e-02, 1.5389e-01, 1.5549e-01, -7.9868e-02], [-3.4455e-01, 1.3742e-01, -8.2051e-02, -2.4700e-01, 1.1334e-01, -2.1086e-02, -3.1369e-01, -3.3946e-01], [-1.9585e-01, -2.9069e-01, 2.4966e-01, -2.0562e-01, 7.9724e-02, 2.5096e-01, -3.3514e-01, -1.1402e-01], [-4.5188e-02, -2.8768e-01, 5.2162e-02, 2.8394e-01, 3.3272e-01, -1.6050e-01, -2.3109e-01, -2.6183e-01], [-2.7715e-01, -2.8243e-01, 1.6490e-01, -1.6387e-01, -1.5267e-01, -3.0654e-01, -2.8063e-01, -3.3728e-01], [ 3.2159e-01, -2.4516e-01, -3.2917e-01, 7.4709e-02, -2.4596e-01, -2.8767e-01, -1.2852e-01, -2.3774e-01], [ 3.2401e-01, 2.0746e-01, -1.3909e-01, -2.0924e-01, 1.7289e-01, 3.8450e-02, 7.6429e-02, 2.8703e-01], [ 1.3821e-01, -1.8876e-01, -2.6919e-01, 4.1932e-02, -8.8940e-02, 7.4909e-02, 2.9936e-01, -2.3437e-01], [-2.2846e-01, -2.4945e-01, 1.4291e-01, -2.2226e-01, 1.0372e-01, -1.4193e-01, -1.3718e-01, -1.2027e-01], [-1.6028e-01, 6.6377e-02, -9.3952e-03, -4.8865e-02, -2.1320e-01, 2.8190e-01, -2.0719e-01, -2.0863e-01], [-2.7065e-01, 1.8744e-01, 1.2356e-01, 3.2627e-01, 2.4614e-01, 2.2572e-01, -3.4430e-01, -2.1322e-01], [-1.4362e-01, -2.2222e-01, -8.3469e-02, 2.3390e-02, -9.5809e-02, -2.0266e-01, 9.1512e-02, -3.3260e-01], [-2.3665e-01, -8.1854e-02, -7.1756e-02, -2.0481e-01, 1.4672e-01, -6.3378e-03, 1.8597e-01, 3.4100e-01]], device='cuda:0')"], [3.0, "Parameter containing:tensor([-0.0693, 0.2328, -0.3503, -0.0378, 0.1455, 0.0200, -0.2220, 0.2883, -0.2709, 0.3166, 0.1389, 0.2205, -0.2029, -0.0817, -0.2797, 0.0571, -0.1136, 0.2654, -0.2372, -0.1622, -0.1799, -0.1930, -0.2183, 0.1699, 0.3248, -0.2964, 0.1801, -0.0725, -0.2218, 0.2408, 0.3513, 0.3329], device='cuda:0')"], [3.0, "Parameter containing:tensor([[ 0.1464, -0.1129, -0.1095, 0.0893, -0.0108, 0.0392, -0.1013, 0.1532, -0.0124, -0.0246, -0.0638, 0.0769, -0.0466, 0.1481, -0.1124, -0.1066, 0.1097, -0.0430, 0.1103, 0.0872, -0.0830, -0.1511, 0.0976, -0.1090, -0.1143, 0.0950, 0.0169, 0.1524, 0.1067, 0.0817, -0.1558, -0.1167], [ 0.0678, -0.0146, -0.0236, -0.0889, 0.0744, 0.1361, 0.1742, 0.0300, 0.1640, -0.0186, -0.0069, 0.0699, -0.0886, -0.0880, -0.0809, -0.1162, 0.0180, -0.0298, -0.0644, -0.0384, 0.1001, 0.0490, -0.0310, 0.0793, 0.1296, -0.0868, 0.1352, -0.1328, 0.0058, -0.0982, -0.0983, 0.0562], [-0.0575, -0.1710, 0.0355, 0.0555, 0.1724, 0.1425, -0.1615, 0.0378, 0.0080, 0.0751, 0.0394, 0.0116, 0.1137, 0.0739, 0.1725, -0.1086, -0.0499, -0.0003, 0.0761, 0.1660, 0.1478, 0.1040, 0.1278, -0.1004, 0.0874, 0.0074, -0.1071, -0.0941, 0.0095, 0.0029, -0.0933, 0.0892], [ 0.1076, 0.1318, -0.0689, -0.1594, -0.1509, 0.1761, 0.0723, -0.1281, -0.1371, 0.1327, -0.0402, 0.0059, -0.0757, 0.1747, -0.0517, 0.1047, 0.0622, 0.0326, 0.0693, -0.0956, 0.0566, 0.0313, 0.0325, 0.0752, 0.0816, 0.0069, 0.0740, 0.0214, -0.0984, -0.1176, -0.0274, -0.0270], [ 0.0759, -0.1526, -0.0286, 0.0397, 0.1753, -0.1487, 0.0796, 0.1656, 0.1386, 0.0964, 0.0936, 0.0950, 0.0939, 0.0756, -0.1343, -0.0172, 0.0196, 0.1410, 0.0824, 0.0994, -0.1293, -0.1566, -0.0153, -0.0324, 0.0465, 0.0688, 0.0656, 0.1234, 0.0673, -0.0274, 0.0552, -0.0089], [ 0.0893, -0.0488, -0.1571, 0.1645, 0.0521, 0.0308, 0.1059, 0.0814, -0.0626, 0.0728, -0.0717, -0.0808, -0.1219, 0.1207, 0.1472, 0.0665, 0.0720, -0.1299, -0.1581, -0.0593, -0.0114, -0.1422, 0.1361, -0.0292, -0.1632, 0.0262, 0.0508, 0.0982, -0.1500, -0.0014, 0.1566, 0.0981], [ 0.0735, -0.0155, -0.1155, 0.1348, -0.0813, 0.0454, -0.0755, 0.0277, -0.0910, 0.1395, 0.0935, -0.1120, -0.0277, -0.0918, -0.0529, 0.0062, -0.1562, 0.1040, -0.1699, -0.1419, -0.1301, -0.1144, -0.0618, -0.0108, -0.0460, 0.0686, -0.1263, -0.0370, 0.1667, 0.1585, 0.1256, -0.0375], [-0.0112, 0.0668, -0.1109, 0.0616, -0.0958, -0.0099, -0.0839, 0.0191, -0.0971, -0.1085, 0.1118, -0.0774, -0.0070, 0.0122, 0.0954, -0.1193, 0.0114, -0.1147, -0.0314, 0.1747, 0.0346, -0.0840, 0.0391, -0.0541, -0.1091, -0.0645, 0.0696, -0.1561, 0.1208, -0.0191, -0.1513, -0.1428]], device='cuda:0')"], [3.0, "Parameter containing:tensor([-0.0323, -0.1023, 0.0092, -0.0543, 0.0628, 0.1554, 0.1386, 0.1144], device='cuda:0')"], [3.0, "Parameter containing:tensor([1., 1., 1., 1., 1., 1., 1., 1.], device='cuda:0')"], [3.0, "Parameter containing:tensor([0., 0., 0., 0., 0., 0., 0., 0.], device='cuda:0')"], [3.0, "Parameter containing:tensor([[[[0.], [0.], [0.], [0.]]]], device='cuda:0', requires_grad=True)"], [3.0, "Parameter containing:tensor([[ 0.3404, -0.0784, -0.2037, 0.2218, -0.0007, 0.1675, 0.1265, -0.2665], [ 0.1137, -0.2400, -0.1582, 0.0319, 0.0463, -0.0668, -0.1449, -0.0193], [-0.1495, 0.1699, -0.0677, 0.0785, -0.1401, -0.3277, -0.0493, 0.2157], [-0.2634, -0.3281, 0.3506, -0.3214, 0.1807, 0.3403, -0.3308, -0.3356], [ 0.1668, 0.1837, 0.1467, -0.0405, 0.2801, -0.0171, -0.0484, 0.0961], [ 0.2353, -0.0604, -0.0708, -0.2719, 0.2399, 0.2501, 0.0848, 0.3235], [ 0.3000, 0.2217, -0.1636, -0.2605, 0.1227, -0.2346, -0.2952, 0.0467], [-0.1680, -0.3223, 0.0317, 0.2811, -0.1306, 0.2391, -0.0291, 0.3324], [-0.1472, -0.2807, -0.0162, 0.1179, -0.0733, -0.1747, -0.3524, -0.1365], [-0.1992, -0.0492, -0.3342, 0.0430, 0.0751, 0.0572, -0.3215, -0.1702], [ 0.1430, 0.1289, -0.1294, 0.0013, -0.2896, 0.3294, -0.1515, 0.0263], [-0.1950, 0.1204, 0.1324, 0.3293, -0.3097, 0.0476, 0.0084, 0.0343], [ 0.1137, -0.2344, -0.1993, -0.0210, -0.2179, 0.0066, -0.3235, -0.1004], [-0.3300, -0.3260, 0.2415, -0.3090, 0.0729, -0.1025, 0.2328, 0.0191], [ 0.2150, -0.3134, 0.0762, -0.1156, -0.1841, -0.0109, 0.1217, 0.1615], [-0.2518, -0.0740, -0.3067, 0.1081, 0.3030, 0.3289, -0.3526, 0.2631], [ 0.0603, -0.1945, 0.3530, 0.0670, 0.3311, 0.1793, -0.3446, 0.3345], [ 0.2503, 0.2751, -0.2760, 0.0078, 0.2025, -0.0548, 0.1079, -0.1133], [-0.1582, -0.2716, -0.1800, -0.3301, -0.2902, -0.1650, -0.3153, 0.2391], [ 0.0342, -0.1090, -0.2687, -0.0358, 0.0786, -0.1517, 0.1254, 0.0957], [ 0.2575, 0.1834, -0.0470, -0.0204, -0.2808, -0.0673, -0.0558, 0.0008], [ 0.1258, -0.2072, 0.0555, -0.2077, 0.1351, -0.0566, 0.3471, 0.1228], [ 0.3349, -0.1774, -0.0522, 0.2082, -0.0324, 0.2381, 0.2848, 0.1482], [-0.0430, 0.0106, 0.3237, -0.0044, 0.2087, -0.2612, 0.0164, 0.0838]], device='cuda:0')"], [3.0, "Parameter containing:tensor([-0.0530, -0.0763, -0.0028, 0.1085, -0.3189, -0.1606, -0.1181, -0.1334, 0.2640, -0.1576, -0.2550, 0.0455, -0.0787, 0.0398, 0.1590, -0.1556, 0.0225, -0.0938, -0.2418, 0.0467, 0.0833, -0.1870, 0.3066, -0.3505], device='cuda:0')"], [3.0, "Parameter containing:tensor([[-0.0839, 0.0659, 0.2793, 0.1647, -0.0542, 0.2126, 0.1493, -0.0943], [ 0.1107, 0.3330, -0.1780, -0.3524, -0.0611, -0.2709, 0.1982, -0.0123], [ 0.0282, -0.3372, -0.2035, 0.0192, 0.0389, 0.3252, 0.1040, -0.2365], [ 0.2659, 0.0564, 0.1125, -0.1685, -0.1637, 0.0264, 0.0199, 0.2551], [ 0.3084, 0.1416, 0.0470, 0.2403, -0.0901, -0.3014, -0.3301, -0.1559], [ 0.3133, 0.3529, -0.3407, -0.0382, -0.0358, -0.1787, -0.0387, -0.1373], [-0.1918, 0.0755, 0.3417, 0.1268, -0.3168, -0.0384, 0.2844, -0.1642], [-0.2773, 0.2255, 0.1545, -0.3410, -0.2755, 0.2318, -0.3153, 0.2691]], device='cuda:0')"], [3.0, "Parameter containing:tensor([ 0.2181, 0.2350, -0.2638, 0.2656, -0.1387, 0.3444, 0.0198, -0.1788], device='cuda:0')"], [3.0, "Parameter containing:tensor([[ 1.1537, 1.4106, 1.5544, -1.0306, -1.3801, 0.2603, -0.6515, 1.5445], [-0.1275, -0.6874, -0.6158, -0.8035, -0.0088, -1.2591, 0.3704, 1.4032], [-1.0058, 0.0532, 0.4710, 1.2358, 0.1716, -0.8462, 0.8084, -1.2172], [ 1.7788, 0.7106, -1.3180, -2.5337, -0.5739, -1.1140, 1.0843, 0.3369], [ 0.3764, -1.4538, 1.3136, -0.0065, 0.3045, -1.1442, -0.2558, 1.2981], [ 0.0188, -0.3169, -1.2457, 1.2154, 0.2243, 1.8292, -2.1265, -1.7702], [-0.4025, 0.5508, -1.0771, 0.8800, -0.4297, 0.6837, -1.3463, -0.7835], [-0.0045, 1.1033, -1.2160, -0.4731, 0.8819, 0.0372, 0.7367, 0.3115], [-0.5226, 0.3311, -0.0913, 0.7536, 1.3422, -0.2453, -0.9801, 0.5688], [-0.2757, 1.6502, 0.6107, 1.4373, -0.5155, 0.7005, -1.1838, 0.8372]], device='cuda:0', requires_grad=True)"], [3.0, "Parameter containing:tensor([1., 1., 1., 1., 1., 1., 1., 1.], device='cuda:0')"], [3.0, "Parameter containing:tensor([0., 0., 0., 0., 0., 0., 0., 0.], device='cuda:0')"], [3.0, "Parameter containing:tensor([[-1.3732e-01, -2.3332e-01, -1.6029e-01, -3.3240e-01, -4.2077e-02, -8.1405e-02, -2.2076e-01, 5.6473e-02], [-6.9899e-02, 7.1788e-02, 2.3753e-02, 6.6103e-02, -3.4360e-01, 2.1811e-01, -2.5904e-01, -3.1350e-01], [-1.0057e-01, 2.1701e-01, -4.4901e-02, 2.4451e-02, 2.3035e-01, -2.5810e-01, 1.2159e-01, -1.6353e-01], [ 3.3067e-02, -2.4335e-01, 2.1367e-01, -2.7855e-01, -9.4848e-02, -2.1932e-01, 2.0793e-01, -8.0509e-02], [ 1.2841e-01, -7.9310e-02, -3.3849e-01, -1.0480e-01, 2.1637e-01, 5.6048e-02, 9.2525e-02, -3.5254e-01], [ 2.7111e-01, -2.2776e-01, 3.1415e-01, 6.6136e-02, 3.3047e-01, -2.1541e-02, -2.3139e-01, 2.8371e-01], [ 3.3119e-01, -2.2968e-01, -1.3497e-01, 1.0050e-01, -9.7787e-02, 1.0685e-01, -1.5194e-01, 3.0975e-02], [ 1.8377e-01, -2.4812e-01, 1.7400e-02, -1.9171e-01, -3.4704e-01, -2.3089e-01, -2.8404e-01, -2.6585e-01], [-4.0592e-02, 3.2437e-01, -6.2993e-02, 7.5329e-02, 2.7870e-01, 2.7401e-01, 2.7759e-01, -2.3725e-01], [-2.6910e-01, -2.8936e-01, -1.3322e-01, 3.1138e-01, 1.9009e-01, 3.0851e-01, 3.4273e-01, -3.6591e-02], [ 9.4119e-02, -9.1043e-02, -4.0021e-02, 1.9836e-01, 3.0940e-04, -1.8952e-01, 1.1122e-01, 1.8951e-01], [-3.2792e-01, 3.2173e-01, 2.2076e-01, -2.3394e-01, 2.2487e-01, -1.2898e-01, -8.4961e-02, -1.5538e-01], [ 2.0375e-01, -4.0108e-02, -1.0112e-01, 2.7968e-02, -2.8452e-02, -3.0800e-01, -2.7689e-01, -7.3817e-02], [ 1.3027e-01, 9.0503e-02, 2.8481e-01, -3.0312e-01, -3.1633e-01, 2.6214e-01, 1.8745e-01, -2.6924e-01], [ 1.3722e-01, -1.1742e-01, 2.4721e-02, -2.7830e-01, 3.3598e-01, -3.3192e-01, -1.7417e-01, 2.3394e-01], [-2.3660e-01, -1.7402e-01, -3.2918e-01, -2.9007e-01, -2.7806e-02, 2.9714e-01, 1.3426e-01, -7.9150e-02], [ 1.7340e-01, 2.1998e-01, -6.6770e-02, 5.8768e-02, 1.8551e-02, -3.3554e-02, -2.8439e-01, -9.2082e-02], [ 8.6543e-02, -1.3679e-01, 1.9206e-01, 3.4259e-01, -2.4001e-01, 2.4259e-01, 1.1591e-01, -2.5047e-03], [-2.3748e-01, -1.3318e-01, -1.2024e-01, -8.3167e-02, -1.7073e-01, -1.0206e-01, -3.1937e-01, -2.0122e-01], [-2.1916e-02, 2.5703e-01, 7.3084e-02, -6.3421e-02, 1.5156e-01, -7.8713e-02, 3.3370e-01, 7.9817e-02], [-3.5000e-01, 1.4815e-01, -2.9351e-01, -1.9803e-01, -3.5240e-01, 1.7256e-01, -3.2106e-02, 2.3932e-01], [-2.9592e-01, 3.0265e-01, 1.3891e-01, 3.2459e-01, 3.0302e-01, 2.8832e-02, -3.5200e-02, -3.0984e-02], [ 2.8873e-01, 2.4445e-01, -5.7766e-02, 2.9249e-01, -3.0069e-01, -7.8974e-02, 3.3308e-01, -1.8910e-01], [ 1.9461e-01, -2.2685e-01, 1.0647e-01, -3.4326e-01, -2.9526e-01, 2.4968e-01, -2.4847e-01, -3.5818e-03], [-2.2206e-01, -2.2976e-01, -1.1552e-01, -5.3808e-02, -8.3601e-02, 2.0537e-01, -3.4641e-01, 1.4962e-01], [ 3.3328e-01, -3.3841e-01, 2.2180e-01, -1.7589e-01, 8.9045e-02, -2.8206e-01, 3.3939e-01, -1.4631e-01], [ 2.6775e-01, 2.0620e-01, -3.2241e-01, -1.0405e-01, -1.8671e-01, -2.1127e-01, 9.8313e-03, 6.5414e-02], [-1.7894e-01, -2.7265e-01, -1.5433e-01, -1.4552e-01, 2.6358e-01, -9.3848e-02, 1.3530e-02, -1.0751e-02], [-1.4177e-01, 2.8125e-01, -3.0068e-01, -2.9215e-01, -2.7913e-02, 2.7730e-01, 2.1517e-01, -3.4198e-01], [ 2.7883e-01, -1.2303e-01, -1.3842e-01, 1.9788e-01, -2.4735e-01, 7.9309e-02, -1.7941e-02, -2.5372e-01], [-3.1383e-01, 1.6512e-01, -6.6150e-03, -3.2212e-01, -1.6698e-01, -2.5484e-01, -1.3594e-01, 1.1862e-01], [ 2.0073e-01, -1.3519e-01, 1.3472e-01, 2.8381e-01, 3.0003e-01, 1.5058e-01, -2.9155e-01, -1.5276e-01]], device='cuda:0')"], [3.0, "Parameter containing:tensor([ 0.0230, 0.2693, -0.1822, 0.1215, 0.0237, 0.0995, 0.3511, -0.0494, -0.1502, 0.1793, 0.2525, -0.0892, -0.2716, -0.1036, -0.1978, -0.0045, -0.0400, 0.2644, 0.1202, -0.2093, -0.1216, -0.0320, -0.2973, 0.3021, 0.1840, -0.1094, 0.3364, -0.2633, 0.2542, 0.0856, 0.1225, 0.2950], device='cuda:0')"], [3.0, "Parameter containing:tensor([[ 3.2091e-02, -1.0682e-01, -1.3673e-01, -6.4852e-02, -1.5851e-01, -1.4597e-02, -3.4998e-02, -1.7307e-02, -3.1298e-02, 1.3823e-01, 8.6090e-02, 1.6641e-02, -5.0713e-02, 9.0618e-02, 1.2002e-01, 1.0725e-01, -1.2712e-01, -1.4069e-01, 4.4547e-02, 1.4398e-01, 2.2691e-02, -1.6055e-01, -1.0734e-01, 1.2551e-01, -9.9248e-02, -1.3766e-01, 2.7332e-02, 6.6128e-02, 1.4520e-01, -6.3990e-02, -8.8924e-02, 1.6574e-01], [-8.5860e-02, 1.6455e-01, 5.5703e-03, -7.5762e-03, -5.8784e-02, 8.7587e-02, 1.7518e-01, -1.2245e-01, -1.6567e-01, 1.5311e-01, 1.3423e-01, 1.5241e-01, 1.6841e-01, 1.1972e-01, -4.9093e-02, -4.3115e-02, 4.8810e-02, -1.3533e-01, 4.2802e-02, -9.4440e-02, 6.5721e-02, -1.2723e-01, 2.0516e-02, 1.1529e-01, -6.3554e-02, 3.7811e-02, -7.6571e-02, -4.0653e-02, -3.6779e-03, -1.3432e-01, -7.0104e-02, -1.6757e-01], [ 3.1871e-02, 9.5419e-02, 2.4403e-02, -7.4098e-02, 3.5393e-02, -1.2427e-01, 8.2556e-02, -4.0956e-02, 1.1842e-01, -2.6363e-02, -1.5294e-01, -1.2758e-01, 4.8718e-02, -1.7604e-01, 7.0715e-02, -1.4409e-01, 4.9713e-02, 1.0302e-01, 1.6939e-01, 5.8464e-02, -1.2441e-01, -6.2853e-02, 4.0320e-02, -1.2951e-01, -6.3597e-02, 7.8169e-02, -1.1068e-01, -1.4177e-01, 1.1039e-01, -1.4397e-02, -1.0798e-01, 1.2992e-01], [-6.8907e-02, 6.8767e-02, 1.2048e-01, -9.3299e-02, -9.3412e-02, 1.4834e-01, 1.3076e-01, 8.3786e-02, 5.0215e-02, 7.6105e-02, 9.1665e-02, -1.7451e-01, 1.7482e-01, 4.2569e-02, -1.7710e-02, -5.2226e-02, 4.1657e-03, -8.9350e-02, -1.6638e-01, -3.4854e-02, 1.1221e-01, 5.0713e-02, 1.4936e-01, 9.5436e-02, -1.8535e-02, -1.5881e-01, -1.4284e-01, 5.2121e-02, 1.5759e-02, -1.0651e-01, -1.1450e-01, -3.8950e-02], [ 6.4010e-02, 4.1832e-02, -1.7165e-02, 1.5794e-02, -1.3269e-01, 7.4074e-02, -1.3031e-01, 8.5265e-02, -6.7803e-02, -1.9770e-03, -5.1846e-02, -1.1780e-01, 7.4514e-04, 4.0716e-02, -1.4831e-01, 1.6150e-01, 1.7425e-01, 7.8152e-02, 1.5945e-01, 2.6147e-02, -2.3951e-02, 1.2115e-01, 3.7625e-02, -6.1239e-02, -1.2143e-01, -1.0947e-01, 7.2787e-02, 1.4134e-01, 7.7765e-02, 1.1258e-01, -3.1872e-02, 2.5150e-02], [-7.7370e-02, 1.5542e-01, -1.4555e-01, -1.2390e-01, -1.1911e-01, -2.1942e-02, 1.5837e-01, -1.5696e-01, 5.3065e-02, -3.7610e-02, 1.2573e-02, 3.9276e-02, -1.0505e-01, -1.0437e-01, -1.3930e-01, 9.3889e-02, -5.2252e-02, -1.0276e-02, -9.2492e-02, 1.0355e-01, -1.5270e-01, 1.1641e-01, -5.1292e-02, -5.1706e-02, -1.7213e-01, 1.2448e-01, 4.8178e-03, 6.7001e-02, -1.3091e-01, -1.3727e-01, 1.0331e-01, -5.4297e-02], [-9.6762e-02, -8.1677e-02, -1.3128e-01, 7.4091e-02, -1.2999e-01, 5.5845e-05, 6.3019e-02, 1.5693e-01, 2.6206e-02, 1.4452e-01, 1.5972e-01, -1.1917e-01, 1.7290e-01, 1.6383e-01, -1.6653e-01, 1.5148e-01, -5.6980e-02, -2.2292e-02, -9.6283e-03, -7.7248e-02, 6.7019e-02, -9.5227e-02, -1.3011e-01, 1.2579e-01, 2.6667e-02, 7.3271e-02, 2.2565e-02, 1.1339e-01, 7.8180e-02, 1.0898e-01, 7.3876e-02, 1.3928e-01], [ 4.6086e-02, -1.7529e-01, -1.6908e-01, -4.2175e-02, 1.4678e-01, -4.8583e-02, 2.5431e-02, -9.0840e-02, 6.5542e-02, -1.2747e-01, 1.0576e-01, -1.2599e-01, 1.0223e-02, -1.5799e-01, 9.4894e-02, -1.7279e-01, 1.7128e-01, 7.1158e-02, -1.6636e-01, 3.0011e-02, -3.8756e-02, -6.6649e-02, -1.0032e-01, -9.6605e-02, -1.0353e-01, -4.9014e-02, 3.7320e-02, -6.4673e-02, -1.6552e-01, 1.3066e-01, -2.5382e-02, -4.8320e-02]], device='cuda:0')"], [3.0, "Parameter containing:tensor([-0.0858, -0.1672, -0.0081, -0.1258, 0.1006, 0.0445, 0.0299, 0.0104], device='cuda:0')"], [3.0, "Parameter containing:tensor([1., 1., 1., 1., 1., 1., 1., 1.], device='cuda:0')"], [3.0, "Parameter containing:tensor([0., 0., 0., 0., 0., 0., 0., 0.], device='cuda:0')"]]}, "Program Information": "Project Name: Lightning-AI+lit-gpt", "idx": 534} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def layer_template(layer_name: str, idx: int) -> Tuple[str, int]:\n split = layer_name.split(\".\")\n number = int(split[idx])\n split[idx] = \"{}\"\n from_name = \".\".join(split)\n return from_name, number\n\nlayer_template(layer_name='model.layers.0.self_attn.q_proj.weight', idx=2)", "Selected Statement": "split[idx] = \"{}\"", "Function Input": {"layer_name": "'model.layers.0.self_attn.q_proj.weight'", "idx": "2"}, "Variable Values Before Statement": {"Constant": "\"{}\""}, "Value After Statement Execution": "\"{}\"", "Variable States During Runtime": {"layer_name": [[1, "'model.layers.0.self_attn.q_proj.weight'"]], "idx": [[1, "2"]], "split": [[2.0, "['model', 'layers', '0', 'self_attn', 'q_proj', 'weight']"], [4.0, "['model', 'layers', '{}', 'self_attn', 'q_proj', 'weight']"]], "number": [[3.0, "0"]], "from_name": [[5.0, "'model.layers.{}.self_attn.q_proj.weight'"]]}, "Program Information": "Project Name: Lightning-AI+lit-gpt", "idx": 535} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def rowcol_to_a1(row, col):\n \"\"\"Translates a row and column cell address to A1 notation.\n\n :param row: The row of the cell to be converted.\n Rows start at index 1.\n :type row: int, str\n\n :param col: The column of the cell to be converted.\n Columns start at index 1.\n :type row: int, str\n\n :returns: a string containing the cell's coordinates in A1 notation.\n\n Example:\n\n >>> rowcol_to_a1(1, 1)\n A1\n\n \"\"\"\n row = int(row)\n col = int(col)\n\n if row < 1 or col < 1:\n raise IncorrectCellLabel(\"({}, {})\".format(row, col))\n\n div = col\n column_label = \"\"\n\n while div:\n (div, mod) = divmod(div, 26)\n if mod == 0:\n mod = 26\n div -= 1\n column_label = chr(mod + MAGIC_NUMBER) + column_label\n\n label = \"{}{}\".format(column_label, row)\n\n return label\n\nrowcol_to_a1(row=4, col=4)", "Selected Statement": "column_label = \"\"", "Function Input": {"row": "4", "col": "4"}, "Variable Values Before Statement": {"Constant": "\"\""}, "Value After Statement Execution": "\"\"", "Variable States During Runtime": {"row": [[1, "4"]], "col": [[1, "4"]], "div": [[26.0, "4"], [30.0, "0"]], "column_label": [[27.0, "''"], [34.0, "'D'"]], "mod": [[30.0, "4"]], "label": [[36.0, "'D4'"]]}, "Program Information": "Project Name: burnash+gspread", "idx": 536} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def a1_to_rowcol(label):\n \"\"\"Translates a cell's address in A1 notation to a tuple of integers.\n\n :param str label: A cell label in A1 notation, e.g. 'B1'.\n Letter case is ignored.\n :returns: a tuple containing `row` and `column` numbers. Both indexed\n from 1 (one).\n :rtype: tuple\n\n Example:\n\n >>> a1_to_rowcol('A1')\n (1, 1)\n\n \"\"\"\n m = CELL_ADDR_RE.match(label)\n if m:\n column_label = m.group(1).upper()\n row = int(m.group(2))\n\n col = 0\n for i, c in enumerate(reversed(column_label)):\n col += (ord(c) - MAGIC_NUMBER) * (26**i)\n else:\n raise IncorrectCellLabel(label)\n\n return (row, col)\n\na1_to_rowcol(label='B1')", "Selected Statement": "col = 0", "Function Input": {"label": "'B1'"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"label": [[1, "'B1'"]], "m": [[16.0, ""]], "column_label": [[18.0, "'B'"]], "row": [[19.0, "1"]], "col": [[21.0, "0"], [23.0, "2"]], "i": [[22.0, "0"]], "c": [[22.0, "'B'"]]}, "Program Information": "Project Name: burnash+gspread", "idx": 537} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def _a1_to_rowcol_unbounded(label):\n \"\"\"Translates a cell's address in A1 notation to a tuple of integers.\n\n Same as `a1_to_rowcol()` but allows for missing row or column part\n (e.g. \"A\" for the first column)\n\n :returns: a tuple containing `row` and `column` numbers. Both indexed\n from 1 (one).\n :rtype: tuple\n\n Example:\n\n >>> _a1_to_rowcol_unbounded('A1')\n (1, 1)\n\n >>> _a1_to_rowcol_unbounded('A')\n (inf, 1)\n\n >>> _a1_to_rowcol_unbounded('1')\n (1, inf)\n\n >>> _a1_to_rowcol_unbounded('ABC123')\n (123, 731)\n\n >>> _a1_to_rowcol_unbounded('ABC')\n (inf, 731)\n\n >>> _a1_to_rowcol_unbounded('123')\n (123, inf)\n\n >>> _a1_to_rowcol_unbounded('1A')\n Traceback (most recent call last):\n ...\n gspread.exceptions.IncorrectCellLabel: 1A\n\n >>> _a1_to_rowcol_unbounded('')\n (inf, inf)\n\n \"\"\"\n m = A1_ADDR_ROW_COL_RE.match(label)\n if m:\n column_label, row = m.groups()\n\n if column_label:\n col = 0\n for i, c in enumerate(reversed(column_label.upper())):\n col += (ord(c) - MAGIC_NUMBER) * (26**i)\n else:\n col = inf\n\n if row:\n row = int(row)\n else:\n row = inf\n else:\n raise IncorrectCellLabel(label)\n\n return (row, col)\n\n_a1_to_rowcol_unbounded(label='A1')", "Selected Statement": "col = 0", "Function Input": {"label": "'A1'"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"label": [[1, "'A1'"]], "m": [[40.0, ""]], "column_label": [[42.0, "'A'"]], "row": [[42.0, "'1'"], [52.0, "1"]], "col": [[45.0, "0"], [47.0, "1"]], "i": [[46.0, "0"]], "c": [[46.0, "'A'"]]}, "Program Information": "Project Name: burnash+gspread", "idx": 538} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def get_config():\n \"\"\"Create, populate and return the VersioneerConfig() object.\"\"\"\n # these strings are filled in when 'setup.py versioneer' creates\n # _version.py\n cfg = VersioneerConfig()\n cfg.VCS = \"git\"\n # cfg.style = \"pep440-micro\"\n # cfg.style = \"pep440-develop\"\n cfg.style = \"pep440-auto\"\n cfg.tag_prefix = \"\"\n cfg.parentdir_prefix = \"\"\n cfg.versionfile_source = \"milo/_version.py\"\n cfg.verbose = False\n return cfg\n\nget_config()", "Selected Statement": "cfg.VCS = \"git\"", "Function Input": {}, "Variable Values Before Statement": {"Constant": "\"git\""}, "Value After Statement Execution": "\"git\"", "Variable States During Runtime": {"cfg": [[5.0, "{}"], [6.0, "{VCS='git'}"], [9.0, "{VCS='git', style='pep440-auto'}"], [10.0, "{VCS='git', style='pep440-auto', tag_prefix=''}"], [11.0, "{VCS='git', style='pep440-auto', tag_prefix='', parentdir_prefix=''}"], [12.0, "{VCS='git', style='pep440-auto', tag_prefix='', parentdir_prefix='', versionfile_source='milo/_version.py'}"], [13.0, "{VCS='git', style='pep440-auto', tag_prefix='', parentdir_prefix='', versionfile_source='milo/_version.py', verbose=False}"]]}, "Program Information": "Project Name: berkeleylab+als.milo", "idx": 539} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def leftmost_bit(x):\n assert x > 0\n result = 1\n while result <= x:\n result = 2 * result\n return result // 2\n\nleftmost_bit(x=35418756707884953894268771885010418872764936485960643117951731578891074948686)", "Selected Statement": "result = 1", "Function Input": {"x": "35418756707884953894268771885010418872764936485960643117951731578891074948686"}, "Variable Values Before Statement": {"Constant": "1"}, "Value After Statement Execution": "1", "Variable States During Runtime": {"x": [[1, "35418756707884953894268771885010418872764936485960643117951731578891074948686"]], "result": [[3.0, "1"], [5.0, "2"], [5.0, "4"], [5.0, "8"], [5.0, "16"], [5.0, "32"], [5.0, "64"], [5.0, "128"], [5.0, "256"], [5.0, "512"], [5.0, "1024"], [5.0, "2048"], [5.0, "4096"], [5.0, "8192"], [5.0, "16384"], [5.0, "32768"], [5.0, "65536"], [5.0, "131072"], [5.0, "262144"], [5.0, "524288"], [5.0, "1048576"], [5.0, "2097152"], [5.0, "4194304"], [5.0, "8388608"], [5.0, "16777216"], [5.0, "33554432"], [5.0, "67108864"], [5.0, "134217728"], [5.0, "268435456"], [5.0, "536870912"], [5.0, "1073741824"], [5.0, "2147483648"], [5.0, "4294967296"], [5.0, "8589934592"], [5.0, "17179869184"], [5.0, "34359738368"], [5.0, "68719476736"], [5.0, "137438953472"], [5.0, "274877906944"], [5.0, "549755813888"], [5.0, "1099511627776"], [5.0, "2199023255552"], [5.0, "4398046511104"], [5.0, "8796093022208"], [5.0, "17592186044416"], [5.0, "35184372088832"], [5.0, "70368744177664"], [5.0, "140737488355328"], [5.0, "281474976710656"], [5.0, "562949953421312"], [5.0, "1125899906842624"], [5.0, "2251799813685248"], [5.0, "4503599627370496"], [5.0, "9007199254740992"], [5.0, "18014398509481984"], [5.0, "36028797018963968"], [5.0, "72057594037927936"], [5.0, "144115188075855872"], [5.0, "288230376151711744"], [5.0, "576460752303423488"], [5.0, "1152921504606846976"], [5.0, "2305843009213693952"], [5.0, "4611686018427387904"], [5.0, "9223372036854775808"], [5.0, "18446744073709551616"], [5.0, "36893488147419103232"], [5.0, "73786976294838206464"], [5.0, "147573952589676412928"], [5.0, "295147905179352825856"], [5.0, "590295810358705651712"], [5.0, "1180591620717411303424"], [5.0, "2361183241434822606848"], [5.0, "4722366482869645213696"], [5.0, "9444732965739290427392"], [5.0, "18889465931478580854784"], [5.0, "37778931862957161709568"], [5.0, "75557863725914323419136"], [5.0, "151115727451828646838272"], [5.0, "302231454903657293676544"], [5.0, "604462909807314587353088"], [5.0, "1208925819614629174706176"], [5.0, "2417851639229258349412352"], [5.0, "4835703278458516698824704"], [5.0, "9671406556917033397649408"], [5.0, "19342813113834066795298816"], [5.0, "38685626227668133590597632"], [5.0, "77371252455336267181195264"], [5.0, "154742504910672534362390528"], [5.0, "309485009821345068724781056"], [5.0, "618970019642690137449562112"], [5.0, "1237940039285380274899124224"], [5.0, "2475880078570760549798248448"], [5.0, "4951760157141521099596496896"], [5.0, "9903520314283042199192993792"], [5.0, "19807040628566084398385987584"], [5.0, "39614081257132168796771975168"], [5.0, "79228162514264337593543950336"], [5.0, "158456325028528675187087900672"], [5.0, "316912650057057350374175801344"], [5.0, "633825300114114700748351602688"], [5.0, "1267650600228229401496703205376"], [5.0, "2535301200456458802993406410752"], [5.0, "5070602400912917605986812821504"], [5.0, "10141204801825835211973625643008"], [5.0, "20282409603651670423947251286016"], [5.0, "40564819207303340847894502572032"], [5.0, "81129638414606681695789005144064"], [5.0, "162259276829213363391578010288128"], [5.0, "324518553658426726783156020576256"], [5.0, "649037107316853453566312041152512"], [5.0, "1298074214633706907132624082305024"], [5.0, "2596148429267413814265248164610048"], [5.0, "5192296858534827628530496329220096"], [5.0, "10384593717069655257060992658440192"], [5.0, "20769187434139310514121985316880384"], [5.0, "41538374868278621028243970633760768"], [5.0, "83076749736557242056487941267521536"], [5.0, "166153499473114484112975882535043072"], [5.0, "332306998946228968225951765070086144"], [5.0, "664613997892457936451903530140172288"], [5.0, "1329227995784915872903807060280344576"], [5.0, "2658455991569831745807614120560689152"], [5.0, "5316911983139663491615228241121378304"], [5.0, "10633823966279326983230456482242756608"], [5.0, "21267647932558653966460912964485513216"], [5.0, "42535295865117307932921825928971026432"], [5.0, "85070591730234615865843651857942052864"], [5.0, "170141183460469231731687303715884105728"], [5.0, "340282366920938463463374607431768211456"], [5.0, "680564733841876926926749214863536422912"], [5.0, "1361129467683753853853498429727072845824"], [5.0, "2722258935367507707706996859454145691648"], [5.0, "5444517870735015415413993718908291383296"], [5.0, "10889035741470030830827987437816582766592"], [5.0, "21778071482940061661655974875633165533184"], [5.0, "43556142965880123323311949751266331066368"], [5.0, "87112285931760246646623899502532662132736"], [5.0, "174224571863520493293247799005065324265472"], [5.0, "348449143727040986586495598010130648530944"], [5.0, "696898287454081973172991196020261297061888"], [5.0, "1393796574908163946345982392040522594123776"], [5.0, "2787593149816327892691964784081045188247552"], [5.0, "5575186299632655785383929568162090376495104"], [5.0, "11150372599265311570767859136324180752990208"], [5.0, "22300745198530623141535718272648361505980416"], [5.0, "44601490397061246283071436545296723011960832"], [5.0, "89202980794122492566142873090593446023921664"], [5.0, "178405961588244985132285746181186892047843328"], [5.0, "356811923176489970264571492362373784095686656"], [5.0, "713623846352979940529142984724747568191373312"], [5.0, "1427247692705959881058285969449495136382746624"], [5.0, "2854495385411919762116571938898990272765493248"], [5.0, "5708990770823839524233143877797980545530986496"], [5.0, "11417981541647679048466287755595961091061972992"], [5.0, "22835963083295358096932575511191922182123945984"], [5.0, "45671926166590716193865151022383844364247891968"], [5.0, "91343852333181432387730302044767688728495783936"], [5.0, "182687704666362864775460604089535377456991567872"], [5.0, "365375409332725729550921208179070754913983135744"], [5.0, "730750818665451459101842416358141509827966271488"], [5.0, "1461501637330902918203684832716283019655932542976"], [5.0, "2923003274661805836407369665432566039311865085952"], [5.0, "5846006549323611672814739330865132078623730171904"], [5.0, "11692013098647223345629478661730264157247460343808"], [5.0, "23384026197294446691258957323460528314494920687616"], [5.0, "46768052394588893382517914646921056628989841375232"], [5.0, "93536104789177786765035829293842113257979682750464"], [5.0, "187072209578355573530071658587684226515959365500928"], [5.0, "374144419156711147060143317175368453031918731001856"], [5.0, "748288838313422294120286634350736906063837462003712"], [5.0, "1496577676626844588240573268701473812127674924007424"], [5.0, "2993155353253689176481146537402947624255349848014848"], [5.0, "5986310706507378352962293074805895248510699696029696"], [5.0, "11972621413014756705924586149611790497021399392059392"], [5.0, "23945242826029513411849172299223580994042798784118784"], [5.0, "47890485652059026823698344598447161988085597568237568"], [5.0, "95780971304118053647396689196894323976171195136475136"], [5.0, "191561942608236107294793378393788647952342390272950272"], [5.0, "383123885216472214589586756787577295904684780545900544"], [5.0, "766247770432944429179173513575154591809369561091801088"], [5.0, "1532495540865888858358347027150309183618739122183602176"], [5.0, "3064991081731777716716694054300618367237478244367204352"], [5.0, "6129982163463555433433388108601236734474956488734408704"], [5.0, "12259964326927110866866776217202473468949912977468817408"], [5.0, "24519928653854221733733552434404946937899825954937634816"], [5.0, "49039857307708443467467104868809893875799651909875269632"], [5.0, "98079714615416886934934209737619787751599303819750539264"], [5.0, "196159429230833773869868419475239575503198607639501078528"], [5.0, "392318858461667547739736838950479151006397215279002157056"], [5.0, "784637716923335095479473677900958302012794430558004314112"], [5.0, "1569275433846670190958947355801916604025588861116008628224"], [5.0, "3138550867693340381917894711603833208051177722232017256448"], [5.0, "6277101735386680763835789423207666416102355444464034512896"], [5.0, "12554203470773361527671578846415332832204710888928069025792"], [5.0, "25108406941546723055343157692830665664409421777856138051584"], [5.0, "50216813883093446110686315385661331328818843555712276103168"], [5.0, "100433627766186892221372630771322662657637687111424552206336"], [5.0, "200867255532373784442745261542645325315275374222849104412672"], [5.0, "401734511064747568885490523085290650630550748445698208825344"], [5.0, "803469022129495137770981046170581301261101496891396417650688"], [5.0, "1606938044258990275541962092341162602522202993782792835301376"], [5.0, "3213876088517980551083924184682325205044405987565585670602752"], [5.0, "6427752177035961102167848369364650410088811975131171341205504"], [5.0, "12855504354071922204335696738729300820177623950262342682411008"], [5.0, "25711008708143844408671393477458601640355247900524685364822016"], [5.0, "51422017416287688817342786954917203280710495801049370729644032"], [5.0, "102844034832575377634685573909834406561420991602098741459288064"], [5.0, "205688069665150755269371147819668813122841983204197482918576128"], [5.0, "411376139330301510538742295639337626245683966408394965837152256"], [5.0, "822752278660603021077484591278675252491367932816789931674304512"], [5.0, "1645504557321206042154969182557350504982735865633579863348609024"], [5.0, "3291009114642412084309938365114701009965471731267159726697218048"], [5.0, "6582018229284824168619876730229402019930943462534319453394436096"], [5.0, "13164036458569648337239753460458804039861886925068638906788872192"], [5.0, "26328072917139296674479506920917608079723773850137277813577744384"], [5.0, "52656145834278593348959013841835216159447547700274555627155488768"], [5.0, "105312291668557186697918027683670432318895095400549111254310977536"], [5.0, "210624583337114373395836055367340864637790190801098222508621955072"], [5.0, "421249166674228746791672110734681729275580381602196445017243910144"], [5.0, "842498333348457493583344221469363458551160763204392890034487820288"], [5.0, "1684996666696914987166688442938726917102321526408785780068975640576"], [5.0, "3369993333393829974333376885877453834204643052817571560137951281152"], [5.0, "6739986666787659948666753771754907668409286105635143120275902562304"], [5.0, "13479973333575319897333507543509815336818572211270286240551805124608"], [5.0, "26959946667150639794667015087019630673637144422540572481103610249216"], [5.0, "53919893334301279589334030174039261347274288845081144962207220498432"], [5.0, "107839786668602559178668060348078522694548577690162289924414440996864"], [5.0, "215679573337205118357336120696157045389097155380324579848828881993728"], [5.0, "431359146674410236714672241392314090778194310760649159697657763987456"], [5.0, "862718293348820473429344482784628181556388621521298319395315527974912"], [5.0, "1725436586697640946858688965569256363112777243042596638790631055949824"], [5.0, "3450873173395281893717377931138512726225554486085193277581262111899648"], [5.0, "6901746346790563787434755862277025452451108972170386555162524223799296"], [5.0, "13803492693581127574869511724554050904902217944340773110325048447598592"], [5.0, "27606985387162255149739023449108101809804435888681546220650096895197184"], [5.0, "55213970774324510299478046898216203619608871777363092441300193790394368"], [5.0, "110427941548649020598956093796432407239217743554726184882600387580788736"], [5.0, "220855883097298041197912187592864814478435487109452369765200775161577472"], [5.0, "441711766194596082395824375185729628956870974218904739530401550323154944"], [5.0, "883423532389192164791648750371459257913741948437809479060803100646309888"], [5.0, "1766847064778384329583297500742918515827483896875618958121606201292619776"], [5.0, "3533694129556768659166595001485837031654967793751237916243212402585239552"], [5.0, "7067388259113537318333190002971674063309935587502475832486424805170479104"], [5.0, "14134776518227074636666380005943348126619871175004951664972849610340958208"], [5.0, "28269553036454149273332760011886696253239742350009903329945699220681916416"], [5.0, "56539106072908298546665520023773392506479484700019806659891398441363832832"], [5.0, "113078212145816597093331040047546785012958969400039613319782796882727665664"], [5.0, "226156424291633194186662080095093570025917938800079226639565593765455331328"], [5.0, "452312848583266388373324160190187140051835877600158453279131187530910662656"], [5.0, "904625697166532776746648320380374280103671755200316906558262375061821325312"], [5.0, "1809251394333065553493296640760748560207343510400633813116524750123642650624"], [5.0, "3618502788666131106986593281521497120414687020801267626233049500247285301248"], [5.0, "7237005577332262213973186563042994240829374041602535252466099000494570602496"], [5.0, "14474011154664524427946373126085988481658748083205070504932198000989141204992"], [5.0, "28948022309329048855892746252171976963317496166410141009864396001978282409984"], [5.0, "57896044618658097711785492504343953926634992332820282019728792003956564819968"]]}, "Program Information": "Project Name: ccxt+ccxt", "idx": 540} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def requires_crt(reason=None):\n if reason is None:\n reason = \"Test requires awscrt to be installed\"\n\n def decorator(func):\n return unittest.skipIf(not HAS_CRT, reason)(func)\n\n return decorator\n\nrequires_crt(reason=None)", "Selected Statement": "reason = \"Test requires awscrt to be installed\"", "Function Input": {"reason": "None"}, "Variable Values Before Statement": {"Constant": "\"Test requires awscrt to be installed\""}, "Value After Statement Execution": "\"Test requires awscrt to be installed\"", "Variable States During Runtime": {"reason": [[1, "None"], [3.0, "'Test requires awscrt to be installed'"]], "decorator": [[5.0, ".decorator at 0x7f51d80bc0d0>"]]}, "Program Information": "Project Name: aws+aws-cli", "idx": 541} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def bytes_from_int(val: int) -> bytes:\n remaining = val\n byte_length = 0\n\n while remaining != 0:\n remaining >>= 8\n byte_length += 1\n\n return val.to_bytes(byte_length, \"big\", signed=False)\n\nbytes_from_int(val=0)", "Selected Statement": "byte_length = 0", "Function Input": {"val": "0"}, "Variable Values Before Statement": {"Constant": "0"}, "Value After Statement Execution": "0", "Variable States During Runtime": {"val": [[1, "0"]], "remaining": [[2.0, "0"]], "byte_length": [[3.0, "0"]]}, "Program Information": "Project Name: jpadilla+pyjwt", "idx": 542} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def get_targets_from_csv(csv_filename):\n '''Returns list of Target objects parsed from CSV file.'''\n targets = []\n import csv\n with open(csv_filename, 'r') as csvopen:\n lines = []\n for line in csvopen:\n line = line.replace('\\0', '')\n lines.append(line)\n csv_reader = csv.reader(lines,\n delimiter=',',\n quoting=csv.QUOTE_ALL,\n skipinitialspace=True,\n escapechar='\\\\')\n\n hit_clients = False\n for row in csv_reader:\n # Each 'row' is a list of fields for a target/client\n\n if len(row) == 0: continue\n\n if row[0].strip() == 'BSSID':\n # This is the 'header' for the list of Targets\n hit_clients = False\n continue\n\n elif row[0].strip() == 'Station MAC':\n # This is the 'header' for the list of Clients\n hit_clients = True\n continue\n\n if hit_clients:\n # The current row corresponds to a 'Client' (computer)\n try:\n client = Client(row)\n except (IndexError, ValueError) as e:\n # Skip if we can't parse the client row\n continue\n\n if 'not associated' in client.bssid:\n # Ignore unassociated clients\n continue\n\n # Add this client to the appropriate Target\n for t in targets:\n if t.bssid == client.bssid:\n t.clients.append(client)\n break\n\n else:\n # The current row corresponds to a 'Target' (router)\n try:\n target = Target(row)\n targets.append(target)\n except Exception:\n continue\n\n return targets\n\nget_targets_from_csv(csv_filename='/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/derv82+wifite2/derv82+wifite2/tests/files/airodump-weird-ssids.csv')", "Selected Statement": "hit_clients = False", "Function Input": {"csv_filename": "'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/derv82+wifite2/derv82+wifite2/tests/files/airodump-weird-ssids.csv'"}, "Variable Values Before Statement": {"Constant": "False"}, "Value After Statement Execution": "False", "Variable States During Runtime": {"csv_filename": [[1, "'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/derv82+wifite2/derv82+wifite2/tests/files/airodump-weird-ssids.csv'"]], "targets": [[3.0, "[]"], [54.0, "[]"], [54.0, "[, ]"], [54.0, "[, , ]"], [54.0, "[, , , ]"], [54.0, "[, , , , ]"]], "csv": [[4.0, ""]], "csvopen": [[5.0, "<_io.TextIOWrapper name='/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/derv82+wifite2/derv82+wifite2/tests/files/airodump-weird-ssids.csv' mode='r' encoding='UTF-8'>"]], "lines": [[6.0, "[]"], [9.0, "['\\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:22:45, 2018-04-06 18:22:46, 10, 54, WPA2, CCMP,PSK, -29, 15, 0, 0. 0. 0. 0, 30, \"\\\\\"quote\\\\\" comma\\\\, trailing space \", \\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:22:45, 2018-04-06 18:22:46, 10, 54, WPA2, CCMP,PSK, -29, 15, 0, 0. 0. 0. 0, 30, \"\\\\\"quote\\\\\" comma\\\\, trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:50:11, 2018-04-06 18:50:17, 10, 54, WPA2, CCMP,PSK, -20, 43, 0, 0. 0. 0. 0, 19, \\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00, \\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:22:45, 2018-04-06 18:22:46, 10, 54, WPA2, CCMP,PSK, -29, 15, 0, 0. 0. 0. 0, 30, \"\\\\\"quote\\\\\" comma\\\\, trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:50:11, 2018-04-06 18:50:17, 10, 54, WPA2, CCMP,PSK, -20, 43, 0, 0. 0. 0. 0, 19, \\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00, \\n', '\\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:22:45, 2018-04-06 18:22:46, 10, 54, WPA2, CCMP,PSK, -29, 15, 0, 0. 0. 0. 0, 30, \"\\\\\"quote\\\\\" comma\\\\, trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:50:11, 2018-04-06 18:50:17, 10, 54, WPA2, CCMP,PSK, -20, 43, 0, 0. 0. 0. 0, 19, \\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00, \\n', '\\n', '\\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:22:45, 2018-04-06 18:22:46, 10, 54, WPA2, CCMP,PSK, -29, 15, 0, 0. 0. 0. 0, 30, \"\\\\\"quote\\\\\" comma\\\\, trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:50:11, 2018-04-06 18:50:17, 10, 54, WPA2, CCMP,PSK, -20, 43, 0, 0. 0. 0. 0, 19, \\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00, \\n', '\\n', '\\n', '\\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:22:45, 2018-04-06 18:22:46, 10, 54, WPA2, CCMP,PSK, -29, 15, 0, 0. 0. 0. 0, 30, \"\\\\\"quote\\\\\" comma\\\\, trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:50:11, 2018-04-06 18:50:17, 10, 54, WPA2, CCMP,PSK, -20, 43, 0, 0. 0. 0. 0, 19, \\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00, \\n', '\\n', '\\n', '\\n', '\\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:22:45, 2018-04-06 18:22:46, 10, 54, WPA2, CCMP,PSK, -29, 15, 0, 0. 0. 0. 0, 30, \"\\\\\"quote\\\\\" comma\\\\, trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:50:11, 2018-04-06 18:50:17, 10, 54, WPA2, CCMP,PSK, -20, 43, 0, 0. 0. 0. 0, 19, \\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00, \\n', '\\n', '\\n', '\\n', '\\n', 'Station MAC, First time seen, Last time seen, Power, # packets, BSSID, Probed ESSIDs\\n']"], [9.0, "['\\n', 'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:22:45, 2018-04-06 18:22:46, 10, 54, WPA2, CCMP,PSK, -29, 15, 0, 0. 0. 0. 0, 30, \"\\\\\"quote\\\\\" comma\\\\, trailing space \", \\n', 'AA:BB:CC:DD:EE:FF, 2018-04-06 18:50:11, 2018-04-06 18:50:17, 10, 54, WPA2, CCMP,PSK, -20, 43, 0, 0. 0. 0. 0, 19, \\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00, \\n', '\\n', '\\n', '\\n', '\\n', 'Station MAC, First time seen, Last time seen, Power, # packets, BSSID, Probed ESSIDs\\n', '\\n']"]], "line": [[7.0, "'\\n'"], [7.0, "'BSSID, First time seen, Last time seen, channel, Speed, Privacy, Cipher, Authentication, Power, # beacons, # IV, LAN IP, ID-length, ESSID, Key\\n'"], [7.0, "'AA:BB:CC:DD:EE:FF, 2018-04-06 18:21:23, 2018-04-06 18:21:24, 10, 54, WPA2, CCMP,PSK, -34, 5, 0, 0. 0. 0. 0, 24, Comma\\\\, no trailing space, \\n'"], [7.0, "'AA:BB:CC:DD:EE:FF, 2018-04-06 18:19:17, 2018-04-06 18:19:19, 10, 54, WPA2, CCMP,PSK, -35, 18, 0, 0. 0. 0. 0, 20, \\\\\"Quoted ESSID\\\\, Comma\\\\, no trailing spaces. \\\\\", \\n'"], [7.0, "'AA:BB:CC:DD:EE:FF, 2018-04-06 18:35:29, 2018-04-06 18:35:30, 10, 54, WPA2, CCMP,PSK, -31, 12, 0, 0. 0. 0. 0, 22, \"Comma\\\\, Trailing space \", \\n'"], [7.0, "'AA:BB:CC:DD:EE:FF, 2018-04-06 18:22:45, 2018-04-06 18:22:46, 10, 54, WPA2, CCMP,PSK, -29, 15, 0, 0. 0. 0. 0, 30, \"\\\\\"quote\\\\\" comma\\\\, trailing space \", \\n'"], [7.0, "'AA:BB:CC:DD:EE:FF, 2018-04-06 18:50:11, 2018-04-06 18:50:17, 10, 54, WPA2, CCMP,PSK, -20, 43, 0, 0. 0. 0. 0, 19, \\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00, \\n'"], [7.0, "'\\n'"], [7.0, "'Station MAC, First time seen, Last time seen, Power, # packets, BSSID, Probed ESSIDs\\n'"], [7.0, "'\\n'"]], "csv_reader": [[10.0, "REPR FAILED"]], "hit_clients": [[16.0, "False"], [29.0, "True"]], "row": [[17.0, "[]"], [17.0, "['BSSID', 'First time seen', 'Last time seen', 'channel', 'Speed', 'Privacy', 'Cipher', 'Authentication', 'Power', '# beacons', '# IV', 'LAN IP', 'ID-length', 'ESSID', 'Key']"], [17.0, "['AA:BB:CC:DD:EE:FF', '2018-04-06 18:21:23', '2018-04-06 18:21:24', '10', '54', 'WPA2', 'CCMP', 'PSK', '-34', '5', '0', '0. 0. 0. 0', '24', 'Comma, no trailing space', '']"], [17.0, "['AA:BB:CC:DD:EE:FF', '2018-04-06 18:19:17', '2018-04-06 18:19:19', '10', '54', 'WPA2', 'CCMP', 'PSK', '-35', '18', '0', '0. 0. 0. 0', '20', '\"Quoted ESSID, Comma, no trailing spaces. \"', '']"], [17.0, "['AA:BB:CC:DD:EE:FF', '2018-04-06 18:35:29', '2018-04-06 18:35:30', '10', '54', 'WPA2', 'CCMP', 'PSK', '-31', '12', '0', '0. 0. 0. 0', '22', 'Comma, Trailing space ', '']"], [17.0, "['AA:BB:CC:DD:EE:FF', '2018-04-06 18:22:45', '2018-04-06 18:22:46', '10', '54', 'WPA2', 'CCMP', 'PSK', '-29', '15', '0', '0. 0. 0. 0', '30', '\"quote\" comma, trailing space ', '']"], [17.0, "['AA:BB:CC:DD:EE:FF', '2018-04-06 18:50:11', '2018-04-06 18:50:17', '10', '54', 'WPA2', 'CCMP', 'PSK', '-20', '43', '0', '0. 0. 0. 0', '19', 'x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00', '']"], [17.0, "[]"], [17.0, "['Station MAC', 'First time seen', 'Last time seen', 'Power', '# packets', 'BSSID', 'Probed ESSIDs']"], [17.0, "[]"]], "target": [[53.0, "{bssid='AA:BB:CC:DD:EE:FF', channel='10', encryption='WPA', power=66, beacons=5, ivs=0, essid_known=True, essid_len=24, essid='Comma, no trailing space', wps=3, decloaked=False, clients=[]}"], [53.0, "{bssid='AA:BB:CC:DD:EE:FF', channel='10', encryption='WPA', power=65, beacons=18, ivs=0, essid_known=True, essid_len=20, essid='\"Quoted ESSID, Comma, no trailing spaces. \"', wps=3, decloaked=False, clients=[]}"], [53.0, "{bssid='AA:BB:CC:DD:EE:FF', channel='10', encryption='WPA', power=69, beacons=12, ivs=0, essid_known=True, essid_len=22, essid='Comma, Trailing space ', wps=3, decloaked=False, clients=[]}"], [53.0, "{bssid='AA:BB:CC:DD:EE:FF', channel='10', encryption='WPA', power=71, beacons=15, ivs=0, essid_known=True, essid_len=30, essid='\"quote\" comma, trailing space ', wps=3, decloaked=False, clients=[]}"], [53.0, "{bssid='AA:BB:CC:DD:EE:FF', channel='10', encryption='WPA', power=80, beacons=43, ivs=0, essid_known=False, essid_len=19, essid=None, wps=3, decloaked=False, clients=[]}"]]}, "Program Information": "Project Name: derv82+wifite2", "idx": 543} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def test_multithreading_lock(execution_number): # type: ignore[misc]\n \"\"\"Reruns test multiple times since error is random and\n depends on CPU and can lead to false positive result.\n\n \"\"\"\n n_threads = 10\n n_requests = 30\n with responses.RequestsMock() as m:\n for j in range(n_threads):\n for i in range(n_requests):\n m.add(url=f\"http://example.com/example{i}\", method=\"GET\")\n\n def fun():\n for req in range(n_requests):\n requests.get(f\"http://example.com/example{req}\")\n\n threads = [\n threading.Thread(name=f\"example{i}\", target=fun) for i in range(n_threads)\n ]\n for thread in threads:\n thread.start()\n for thread in threads:\n thread.join()\n\ntest_multithreading_lock(execution_number=0)", "Selected Statement": "n_threads = 10", "Function Input": {"execution_number": "0"}, "Variable Values Before Statement": {"Constant": "10"}, "Value After Statement Execution": "10", "Variable States During Runtime": {"execution_number": [[1, "0"]], "n_threads": [[6.0, "10"]], "n_requests": [[7.0, "30"]], "m": [[8.0, "{_calls=, _registry=, passthru_prefixes=(), assert_all_requests_are_fired=True, response_callback=None, target='requests.adapters.HTTPAdapter.send', _patcher=, _thread_lock=}"], [21.0, "{_calls=, _registry=, passthru_prefixes=(), assert_all_requests_are_fired=True, response_callback=None, target='requests.adapters.HTTPAdapter.send', _patcher=, _thread_lock=}"], [21.0, "{_calls=, _registry=, passthru_prefixes=(), assert_all_requests_are_fired=True, response_callback=None, target='requests.adapters.HTTPAdapter.send', _patcher=, _thread_lock=}"], [21.0, "{_calls=, _registry=, passthru_prefixes=(), assert_all_requests_are_fired=True, response_callback=None, target='requests.adapters.HTTPAdapter.send', _patcher=, _thread_lock=}"], [21.0, "{_calls=, _registry=, passthru_prefixes=(), assert_all_requests_are_fired=True, response_callback=None, target='requests.adapters.HTTPAdapter.send', _patcher=, _thread_lock=}"], [21.0, "{_calls=, _registry=, passthru_prefixes=(), assert_all_requests_are_fired=True, response_callback=None, target='requests.adapters.HTTPAdapter.send', _patcher=, _thread_lock=}"], [23.0, "{_calls=, _registry=, passthru_prefixes=(), assert_all_requests_are_fired=True, response_callback=None, target='requests.adapters.HTTPAdapter.send', _patcher=, _thread_lock=}"], [22.0, "{_calls=, _registry=, passthru_prefixes=(), assert_all_requests_are_fired=True, response_callback=None, target='requests.adapters.HTTPAdapter.send', _patcher=None, _thread_lock=}"]], "j": [[9.0, "0"], [9.0, "1"], [9.0, "2"], [9.0, "3"], [9.0, "4"], [9.0, "5"], [9.0, "6"], [9.0, "7"], [9.0, "8"], [9.0, "9"]], "i": [[10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"], [10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"], [10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"], [10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"], [10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"], [10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"], [10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"], [10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"], [10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"], [10.0, "0"], [10.0, "1"], [10.0, "2"], [10.0, "3"], [10.0, "4"], [10.0, "5"], [10.0, "6"], [10.0, "7"], [10.0, "8"], [10.0, "9"], [10.0, "10"], [10.0, "11"], [10.0, "12"], [10.0, "13"], [10.0, "14"], [10.0, "15"], [10.0, "16"], [10.0, "17"], [10.0, "18"], [10.0, "19"], [10.0, "20"], [10.0, "21"], [10.0, "22"], [10.0, "23"], [10.0, "24"], [10.0, "25"], [10.0, "26"], [10.0, "27"], [10.0, "28"], [10.0, "29"]], "fun": [[13.0, ".fun at 0x7f683d0139d0>"]], "threads": [[17.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [21.0, "[, , , , , , , , , ]"], [23.0, "[, , , , , , , , , ]"], [23.0, "[, , , , , , , , , ]"], [23.0, "[, , , , , , , , , ]"]], "thread": [[20.0, ""], [21.0, ""], [20.0, ""], [21.0, ""], [20.0, ""], [21.0, ""], [20.0, ""], [21.0, ""], [20.0, ""], [21.0, ""], [20.0, ""], [21.0, ""], [20.0, ""], [21.0, ""], [20.0, ""], [21.0, ""], [20.0, ""], [21.0, ""], [20.0, ""], [21.0, ""], [22.0, ""], [23.0, ""], [22.0, ""], [22.0, ""], [22.0, ""], [22.0, ""], [22.0, ""], [22.0, ""], [22.0, ""], [22.0, ""], [23.0, ""], [22.0, ""], [23.0, ""]]}, "Program Information": "Project Name: getsentry+responses", "idx": 544} +{"Programming Language": "Python", "Statement Type": "Constant Assignment", "Source Code": "def patch_terminal_size(monkeypatch):\n term_width = '250'\n term_height = '60'\n monkeypatch.setitem(os.environ, 'COLUMNS', term_width)\n monkeypatch.setitem(os.environ, 'LINES', term_height)\n\npatch_terminal_size(monkeypatch={_setattr=[], _setitem=[], _cwd=None, _savesyspath=None})", "Selected Statement": "term_width = '250'", "Function Input": {"monkeypatch": "{_setattr=[], _setitem=[], _cwd=None, _savesyspath=None}"}, "Variable Values Before Statement": {"Constant": "'250'"}, "Value After Statement Execution": "'250'", "Variable States During Runtime": {"monkeypatch": [[1, "{_setattr=[], _setitem=[], _cwd=None, _savesyspath=None}"], [4.0, "{_setattr=[], _setitem=[(environ({'SHELL': '/bin/bash', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 'USER_ZDOTDIR': '/home/jinjun', 'COLORTERM': 'truecolor', 'LESS': '-R', 'TERM_PROGRAM_VERSION': '3.2a', 'GVM_VERSION': '1.0.22', 'CONDA_EXE': '/local/rcs/jinjun/miniforge3/bin/conda', '_CE_M': '', 'TMUX': '/tmp/tmux-19200/default,59951,3', 'PKG_CONFIG_PATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib/pkgconfig:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib/pkgconfig:', '_P9K_TTY': '/dev/pts/20', 'GVM_PATH_BACKUP': '/home/jinjun/.gvm/bin:/local/rcs/jinjun/miniforge3/envs/mal/bin:/local/rcs/jinjun/miniforge3/condabin:/home/jinjun/.gdrive-downloader:/local/arise/jinjun/miniforge3/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/bin:/home/jinjun/.gvm/gos/go1.19.1/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/bin:/home/jinjun/.gvm/bin:/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/jinjun/.local/bin:/home/jinjun/.local/bin:/home/jinjun/.local/bin', 'P9K_TTY': 'old', 'LC_FIG_SET_PARENT': '4c022497-5122-4b80-b325-c89bab32302a', 'PWD': '/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/AmmsA+Githeat/AmmsA+Githeat', 'LOGNAME': 'jinjun', 'XDG_SESSION_TYPE': 'tty', 'CONDA_PREFIX': '/local/rcs/jinjun/miniforge3/envs/AmmsA+Githeat', 'VSCODE_GIT_ASKPASS_NODE': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/node', 'MOTD_SHOWN': 'pam', 'VSCODE_INJECTION': '1', 'GVM_OVERLAY_PREFIX': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay', 'HOME': '/home/jinjun', 'LANG': 'en_US.UTF-8', 'DYLD_LIBRARY_PATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'gvm_pkgset_name': 'global', 'SSL_CERT_DIR': '/usr/lib/ssl/certs', 'CONDA_PROMPT_MODIFIER': '(AmmsA+Githeat) ', 'GIT_ASKPASS': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/extensions/git/dist/askpass.sh', 'GVM_ROOT': '/home/jinjun/.gvm', 'SSH_CONNECTION': '127.0.0.1 39996 127.0.0.1 22', 'GOROOT': '/home/jinjun/.gvm/gos/go1.19.1', 'NVM_DIR': '/local/rcs/jinjun/.nvm', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '', 'XDG_SESSION_CLASS': 'user', 'PYTHONPATH': ':/local/rcs/jinjun/code/pytrace-collector:/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/AmmsA+Githeat/AmmsA+Githeat', 'TERM': 'screen', 'ZSH': '/home/jinjun/.oh-my-zsh', '_CE_CONDA': '', 'VSCODE_NONCE': 'd0bc7031-48a3-4719-8bb5-ef236ddd0016', 'ZDOTDIR': '/home/jinjun', 'USER': 'jinjun', 'TMUX_PANE': '%3', 'VSCODE_GIT_IPC_HANDLE': '/run/user/19200/vscode-git-13d67c6199.sock', 'CONDA_SHLVL': '3', 'SHLVL': '3', 'PAGER': 'less', '_P9K_SSH_TTY': '/dev/pts/20', 'XDG_SESSION_ID': '43', 'CONDA_PYTHON_EXE': '/local/rcs/jinjun/miniforge3/bin/python', 'LD_LIBRARY_PATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib', 'XDG_RUNTIME_DIR': '/run/user/19200', 'SSL_CERT_FILE': '/usr/lib/ssl/certs/ca-certificates.crt', 'SSH_CLIENT': '127.0.0.1 46946 22', 'CONDA_DEFAULT_ENV': 'AmmsA+Githeat', 'P9K_SSH': '1', 'LC_ALL': 'en_US.UTF-8', 'VSCODE_GIT_ASKPASS_MAIN': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/extensions/git/dist/askpass-main.js', 'XDG_DATA_DIRS': '/usr/local/share:/usr/share:/var/lib/snapd/desktop', 'BROWSER': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/bin/helpers/browser.sh', 'PATH': '/home/jinjun/.gdrive-downloader:/local/arise/jinjun/miniforge3/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/bin:/home/jinjun/.gvm/gos/go1.19.1/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/bin:/home/jinjun/.gvm/bin:/local/rcs/jinjun/miniforge3/envs/AmmsA+Githeat/bin:/local/rcs/jinjun/miniforge3/condabin:/home/jinjun/.gdrive-downloader:/local/arise/jinjun/miniforge3/bin:/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/jinjun/.local/bin:/home/jinjun/.local/bin', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/19200/bus', 'gvm_go_name': 'go1.19.1', 'CONDA_PREFIX_1': '/local/rcs/jinjun/miniforge3', 'CONDA_PREFIX_2': '/local/rcs/jinjun/miniforge3/envs/mal', 'OLDPWD': '/local/rcs/jinjun/code/pytrace-collector', 'GOPATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global', 'TERM_PROGRAM': 'tmux', 'VSCODE_IPC_HOOK_CLI': '/run/user/19200/vscode-ipc-518d6355-acaf-4714-a359-be3fe9f21e09.sock', '_': '/local/rcs/jinjun/miniforge3/envs/AmmsA+Githeat/bin/python', 'PYTEST_CURRENT_TEST': 'test/test_interactive.py::test_print_left_header (setup)', 'COLUMNS': '250'}), 'COLUMNS', )], _cwd=None, _savesyspath=None}"], [5.0, "{_setattr=[], _setitem=[(environ({'SHELL': '/bin/bash', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 'USER_ZDOTDIR': '/home/jinjun', 'COLORTERM': 'truecolor', 'LESS': '-R', 'TERM_PROGRAM_VERSION': '3.2a', 'GVM_VERSION': '1.0.22', 'CONDA_EXE': '/local/rcs/jinjun/miniforge3/bin/conda', '_CE_M': '', 'TMUX': '/tmp/tmux-19200/default,59951,3', 'PKG_CONFIG_PATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib/pkgconfig:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib/pkgconfig:', '_P9K_TTY': '/dev/pts/20', 'GVM_PATH_BACKUP': '/home/jinjun/.gvm/bin:/local/rcs/jinjun/miniforge3/envs/mal/bin:/local/rcs/jinjun/miniforge3/condabin:/home/jinjun/.gdrive-downloader:/local/arise/jinjun/miniforge3/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/bin:/home/jinjun/.gvm/gos/go1.19.1/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/bin:/home/jinjun/.gvm/bin:/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/jinjun/.local/bin:/home/jinjun/.local/bin:/home/jinjun/.local/bin', 'P9K_TTY': 'old', 'LC_FIG_SET_PARENT': '4c022497-5122-4b80-b325-c89bab32302a', 'PWD': '/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/AmmsA+Githeat/AmmsA+Githeat', 'LOGNAME': 'jinjun', 'XDG_SESSION_TYPE': 'tty', 'CONDA_PREFIX': '/local/rcs/jinjun/miniforge3/envs/AmmsA+Githeat', 'VSCODE_GIT_ASKPASS_NODE': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/node', 'MOTD_SHOWN': 'pam', 'VSCODE_INJECTION': '1', 'GVM_OVERLAY_PREFIX': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay', 'HOME': '/home/jinjun', 'LANG': 'en_US.UTF-8', 'DYLD_LIBRARY_PATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'gvm_pkgset_name': 'global', 'SSL_CERT_DIR': '/usr/lib/ssl/certs', 'CONDA_PROMPT_MODIFIER': '(AmmsA+Githeat) ', 'GIT_ASKPASS': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/extensions/git/dist/askpass.sh', 'GVM_ROOT': '/home/jinjun/.gvm', 'SSH_CONNECTION': '127.0.0.1 39996 127.0.0.1 22', 'GOROOT': '/home/jinjun/.gvm/gos/go1.19.1', 'NVM_DIR': '/local/rcs/jinjun/.nvm', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '', 'XDG_SESSION_CLASS': 'user', 'PYTHONPATH': ':/local/rcs/jinjun/code/pytrace-collector:/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/AmmsA+Githeat/AmmsA+Githeat', 'TERM': 'screen', 'ZSH': '/home/jinjun/.oh-my-zsh', '_CE_CONDA': '', 'V...deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'gvm_pkgset_name': 'global', 'SSL_CERT_DIR': '/usr/lib/ssl/certs', 'CONDA_PROMPT_MODIFIER': '(AmmsA+Githeat) ', 'GIT_ASKPASS': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/extensions/git/dist/askpass.sh', 'GVM_ROOT': '/home/jinjun/.gvm', 'SSH_CONNECTION': '127.0.0.1 39996 127.0.0.1 22', 'GOROOT': '/home/jinjun/.gvm/gos/go1.19.1', 'NVM_DIR': '/local/rcs/jinjun/.nvm', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '', 'XDG_SESSION_CLASS': 'user', 'PYTHONPATH': ':/local/rcs/jinjun/code/pytrace-collector:/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/AmmsA+Githeat/AmmsA+Githeat', 'TERM': 'screen', 'ZSH': '/home/jinjun/.oh-my-zsh', '_CE_CONDA': '', 'VSCODE_NONCE': 'd0bc7031-48a3-4719-8bb5-ef236ddd0016', 'ZDOTDIR': '/home/jinjun', 'USER': 'jinjun', 'TMUX_PANE': '%3', 'VSCODE_GIT_IPC_HANDLE': '/run/user/19200/vscode-git-13d67c6199.sock', 'CONDA_SHLVL': '3', 'SHLVL': '3', 'PAGER': 'less', '_P9K_SSH_TTY': '/dev/pts/20', 'XDG_SESSION_ID': '43', 'CONDA_PYTHON_EXE': '/local/rcs/jinjun/miniforge3/bin/python', 'LD_LIBRARY_PATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/lib', 'XDG_RUNTIME_DIR': '/run/user/19200', 'SSL_CERT_FILE': '/usr/lib/ssl/certs/ca-certificates.crt', 'SSH_CLIENT': '127.0.0.1 46946 22', 'CONDA_DEFAULT_ENV': 'AmmsA+Githeat', 'P9K_SSH': '1', 'LC_ALL': 'en_US.UTF-8', 'VSCODE_GIT_ASKPASS_MAIN': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/extensions/git/dist/askpass-main.js', 'XDG_DATA_DIRS': '/usr/local/share:/usr/share:/var/lib/snapd/desktop', 'BROWSER': '/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/bin/helpers/browser.sh', 'PATH': '/home/jinjun/.gdrive-downloader:/local/arise/jinjun/miniforge3/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/bin:/home/jinjun/.gvm/gos/go1.19.1/bin:/home/jinjun/.gvm/pkgsets/go1.19.1/global/overlay/bin:/home/jinjun/.gvm/bin:/local/rcs/jinjun/miniforge3/envs/AmmsA+Githeat/bin:/local/rcs/jinjun/miniforge3/condabin:/home/jinjun/.gdrive-downloader:/local/arise/jinjun/miniforge3/bin:/home/jinjun/.vscode-server/cli/servers/Stable-31c37ee8f63491495ac49e43b8544550fbae4533/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/jinjun/.local/bin:/home/jinjun/.local/bin', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/19200/bus', 'gvm_go_name': 'go1.19.1', 'CONDA_PREFIX_1': '/local/rcs/jinjun/miniforge3', 'CONDA_PREFIX_2': '/local/rcs/jinjun/miniforge3/envs/mal', 'OLDPWD': '/local/rcs/jinjun/code/pytrace-collector', 'GOPATH': '/home/jinjun/.gvm/pkgsets/go1.19.1/global', 'TERM_PROGRAM': 'tmux', 'VSCODE_IPC_HOOK_CLI': '/run/user/19200/vscode-ipc-518d6355-acaf-4714-a359-be3fe9f21e09.sock', '_': '/local/rcs/jinjun/miniforge3/envs/AmmsA+Githeat/bin/python', 'PYTEST_CURRENT_TEST': 'test/test_interactive.py::test_print_left_header (setup)', 'COLUMNS': '250', 'LINES': '60'}), 'LINES', )], _cwd=None, _savesyspath=None}"]], "term_width": [[2.0, "'250'"]], "term_height": [[3.0, "'60'"]]}, "Program Information": "Project Name: AmmsA+Githeat", "idx": 545}