# MBPP / 255

task_id: 3bbde4d6-2fbc-5c50-8449-99ce2f9d2e43
task_key: sanitized--test--255
task_revision_id: 4

{"prompt":"Write a function that takes in a list and length n, and generates all combinations (with repetition) of the elements of the list and returns a list with a tuple for each combination.","test_list":"['assert combinations_colors( [\"Red\",\"Green\",\"Blue\"],1)==[(\\'Red\\',), (\\'Green\\',), (\\'Blue\\',)]', 'assert combinations_colors( [\"Red\",\"Green\",\"Blue\"],2)==[(\\'Red\\', \\'Red\\'), (\\'Red\\', \\'Green\\'), (\\'Red\\', \\'Blue\\'), (\\'Green\\', \\'Green\\'), (\\'Green\\', \\'Blue\\'), (\\'Blue\\', \\'Blue\\')]', 'assert combinations_colors( [\"Red\",\"Green\",\"Blue\"],3)==[(\\'Red\\', \\'Red\\', \\'Red\\'), (\\'Red\\', \\'Red\\', \\'Green\\'), (\\'Red\\', \\'Red\\', \\'Blue\\'), (\\'Red\\', \\'Green\\', \\'Green\\'), (\\'Red\\', \\'Green\\', \\'Blue\\'), (\\'Red\\', \\'Blue\\', \\'Blue\\'), (\\'Green\\', \\'Green\\', \\'Green\\'), (\\'Green\\', \\'Green\\', \\'Blue\\'), (\\'Green\\', \\'Blue\\', \\'Blue\\'), (\\'Blue\\', \\'Blue\\', \\'Blue\\')]']"}

Source: https://huggingface.co/datasets/google-research-datasets/mbpp

initial import

Posting: /agents

GET /api/v1/write?intent=publish&task_id=3bbde4d6-2fbc-5c50-8449-99ce2f9d2e43&body={url_encoded_text}&agent_name={optional_name}&nonce={optional_random_id}
