{"columns":[{"name":"task_id","type":"int32"},{"name":"mbpp_task_id","type":"int32"},{"name":"description","type":"string"},{"name":"cot","type":"string"},{"name":"imports","type":"string"},{"name":"function_head","type":"string"},{"name":"function_body","type":"string"}],"n_rows":5,"rows_kept":5,"cut":false,"text_format":"parquet-jsonl-2026-10-02","bounds":{"document_bytes":16777216,"package_text_limit_bytes":33554432,"package_text_slack_bytes":1024,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096,"vector_min":64,"vector_head_fixed":16,"vector_head_variable":64,"kv_value_chars":1048576,"nesting_max":64,"binary_text":true},"cells_cut":0,"cells_bad_utf8":0,"cells_raw":0,"cells_binary":0,"cells_binary_text":0,"cells_vector":0,"n_row_groups":1,"reader":"pyarrow 23.0.1, python 3.13","created_by":"parquet-cpp-arrow version 11.0.0","schema":{"fields":[{"name":"task_id","type":"int32","nullable":true,"metadata":null,"children":null},{"name":"mbpp_task_id","type":"int32","nullable":true,"metadata":null,"children":null},{"name":"description","type":"string","nullable":true,"metadata":null,"children":null},{"name":"cot","type":"string","nullable":true,"metadata":null,"children":null},{"name":"imports","type":"string","nullable":true,"metadata":null,"children":null},{"name":"function_head","type":"string","nullable":true,"metadata":null,"children":null},{"name":"function_body","type":"string","nullable":true,"metadata":null,"children":null}],"parquet":"required group field_id=-1 schema {\n  optional int32 field_id=-1 task_id;\n  optional int32 field_id=-1 mbpp_task_id;\n  optional binary field_id=-1 description (String);\n  optional binary field_id=-1 cot (String);\n  optional binary field_id=-1 imports (String);\n  optional binary field_id=-1 function_head (String);\n  optional binary field_id=-1 function_body (String);\n}\n"},"kv_metadata":[["ARROW:schema",{"$cut":{"chars":1176,"head":""}}],["huggingface","{\"info\": {\"features\": {\"task_id\": {\"dtype\": \"int32\", \"_type\": \"Value\"}, \"mbpp_task_id\": {\"dtype\": \"int32\", \"_type\": \"Value\"}, \"description\": {\"dtype\": \"string\", \"_type\": \"Value\"}, \"cot\": {\"dtype\": \"string\", \"_type\": \"Value\"}, \"imports\": {\"dtype\": \"string\", \"_type\": \"Value\"}, \"function_head\": {\"dtype\": \"string\", \"_type\": \"Value\"}, \"function_body\": {\"dtype\": \"string\", \"_type\": \"Value\"}}}}"]]}
[16,760,"Write a Python function to check whether a list of numbers contains only one distinct element or not.","Given is a list of numbers l. The check whether a list of numbers contains only one element or not can be realized using a set, since no repetitions are allowed in a set. Insert the elements of the list into the set. If there is only one element, the length of the set should be 1. In this case return True else False.","","def unique_element(l):\n","    s = set(l)\n    return len(s) == 1"]
[17,744,"Write a Python function to check if the given tuple has any none value or not.","Given a tuple t. To check if the given tuple has any none value or not can be implemented by using the functions any(), map() and lambda. The map() function iterates over each element of the given tuple and returns an iterable of the results after applying the lambda function to each item of the given tuple. The lambda function checks if an item is None. The any() function returns True if any of the elements of the returned map results are True else it returns False.","","def check_none(test_tup):\n","  res = any(map(lambda ele: ele is None, test_tup))\n  return res"]
[18,772,"Write a Python function to remove all the words with k length in the given string.","Given a string s and the length k. To remove k length words in the given string s can be realized using a list comprehension and the functions split(), join() and len(). The split() function splits a string into a list of strings after breaking the given string by the specified separator. If is not provided then any white space is a separator. Iterate over the splits with a list comprehension and omit all elements whose length differs from k, i.e. len(ele) != k. Then use the join() function to concatenate the elements of length k separated by the space character. The joined elements of length k are returned as a string.","","def remove_length(s, k):\n","  temp = s.split()\n  res = [ele for ele in temp if len(ele) != k]\n  res = ' '.join(res)\n  return (res)"]
[19,775,"Write a Python function to check whether every odd index contains odd numbers of a given list.","Given a list of integer numbers. To check whether every even index contains an even number and every odd index contains odd number of the input list num can be implemented using a generator expression and the modulo operator. Iterate over the indexes of the list and compare whether the index and the value stored under the index is an even or odd number. If each even index has an even value and each odd index has an odd value then return True otherwise False. Use the all() function for this. The all() function returns True if all items in an iterable are true, otherwise it returns False. If the iterable object is empty, the all() function also returns True.","","def odd_position(nums):\n","  return all(nums[i]%2==i%2 for i in range(len(nums)))"]
[20,597,"Write a Python function to find kth element from the given two sorted arrays.","Given two sorted lists of size m and n respectively and a value k. Finding the k-th element from the given two lists of integers can be realized by using a technique based on while-loops to merge two lists. From the merged (and sorted) list the element from the k-th position can be easily determined.","","def find_kth(arr1, arr2, k):\n","  m = len(arr1)\n  n = len(arr2)\n  sorted1 = [0] * (m + n)\n  i = 0\n  j = 0\n  d = 0\n  while (i < m and j < n):\n    if (arr1[i] < arr2[j]):\n      sorted1[d] = arr1[i]\n      i += 1\n    else:\n      sorted1[d] = arr2[j]\n      j += 1\n    d += 1\n  while (i < m):\n    sorted1[d] = arr1[i]\n    d += 1\n    i += 1\n  while (j < n):\n    sorted1[d] = arr2[j]\n    d += 1\n    j += 1\n  return sorted1[k - 1]"]