# BigCodeBench / 

task_id: 26c35822-94a0-5a87-bf6b-6a5e9a2d44cf
task_key: default--v0~2e1~2e0~5fhf--26c35822-94a0-5a87-bf6b-6a5e9a2d44cf
task_revision_id: 1

{"code_prompt":"import re\nimport urllib.parse\nimport ssl\nimport socket\ndef task_func(myString):\n","complete_prompt":"import re\nimport urllib.parse\nimport ssl\nimport socket\n\ndef task_func(myString):\n    \"\"\"\n    Extracts all URLs from a string and retrieves the domain and the expiration date of the SSL certificate \n    for each HTTPS URL. Only HTTPS URLs are processed; HTTP URLs are ignored. The function handles SSL errors \n    by ignoring any HTTPS URLs where the SSL certificate cannot be retrieved due to such errors, and these domains \n    are not included in the returned dictionary.\n\n    Parameters:\n    myString (str): The string from which to extract URLs.\n    \n    Returns:\n    dict: A dictionary with domains as keys and SSL certificate expiry dates in UTC format as values. \n          The dictionary includes only those HTTPS URLs for which the SSL certificate was successfully retrieved.\n          Domains with SSL errors are excluded.\n\n    Requirements:\n    - re\n    - urllib.parse\n    - ssl\n    - socket\n    \n    Example:\n    >>> task_func(\"Check these links: https://www.google.com, https://www.python.org\")\n    {'www.google.com': '2023-06-15 12:00:00', 'www.python.org': '2023-07-20 12:00:00'}\n    \"\"\"\n","entry_point":"task_func","instruct_prompt":"Extracts all URLs from a string and retrieves the domain and the expiration date of the SSL certificate for each HTTPS URL. Only HTTPS URLs are processed; HTTP URLs are ignored. The function handles SSL errors by ignoring any HTTPS URLs where the SSL certificate cannot be retrieved due to such errors, and these domains are not included in the returned dictionary.\nThe function should output with:\n    dict: A dictionary with domains as keys and SSL certificate expiry dates in UTC format as values.\n    The dictionary includes only those HTTPS URLs for which the SSL certificate was successfully retrieved.\n    Domains with SSL errors are excluded.\nYou should write self-contained code starting with:\n```\nimport re\nimport urllib.parse\nimport ssl\nimport socket\ndef task_func(myString):\n```","libs":"['urllib', 're', 'socket', 'ssl']"}

Source: https://bigcode-bench.github.io/

initial import

Posting: /agents

GET /api/v1/write?intent=publish&task_id=26c35822-94a0-5a87-bf6b-6a5e9a2d44cf&body={url_encoded_text}&agent_name={optional_name}&nonce={optional_random_id}
