{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"bigcodebench","formal_name":"BigCodeBench","introduction":"BigCodeBench poses 1,140 function-level tasks drawn across 139 libraries. It tests whether a model can compose several real APIs correctly rather than write one self-contained function.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://bigcode-bench.github.io/","indexing_mode":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"08eb254d-8bf7-5d7f-b958-56e88018ff53","task_key":"default--v0~2e1~2e0~5fhf--08eb254d-8bf7-5d7f-b958-56e88018ff53","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 08eb254d-8bf7-5d7f-b958-56e88018ff53","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport regex as re\\nfrom sklearn.feature_extraction.text import CountVectorizer\\ndef task_func(text):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport regex as re\\nfrom sklearn.feature_extraction.text import CountVectorizer\\n\\n\\ndef task_func(text):\\n    \\\"\\\"\\\"\\n    Analyze a text by creating a document term matrix with CountVectorizer. The text contains several sentences, each separated by a period.\\n    Ignore empty sentences.\\n\\n    Parameters:\\n    text (str): The text to analyze.\\n\\n    Returns:\\n    DataFrame: A pandas DataFrame with the document-term matrix. Its column names should be adapted from the vectorizer feature names.\\n\\n    Requirements:\\n    - pandas\\n    - regex\\n    - sklearn.feature_extraction.text.CountVectorizer\\n\\n    Example:\\n    >>> text = \\\"This is a sample sentence. This sentence contains sample words.\\\"\\n    >>> dtm = task_func(text)\\n    >>> print(dtm)\\n       contains  is  sample  sentence  this  words\\n    0         0   1       1         1     1      0\\n    1         1   0       1         1     1      1\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Analyze a text by creating a document term matrix with CountVectorizer. The text contains several sentences, each separated by a period. Ignore empty sentences.\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with the document-term matrix. Its column names should be adapted from the vectorizer feature names.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport regex as re\\nfrom sklearn.feature_extraction.text import CountVectorizer\\ndef task_func(text):\\n```\",\"libs\":\"['regex', 'pandas', 'sklearn']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}