@@ -53,7 +53,7 @@ def map_ds(sample):
5353 sample ['complete_prompt' ] = "import nltk\n nltk.download('stopwords')\n " + sample ['complete_prompt' ]
5454 sample ['instruct_prompt' ] = sample ['instruct_prompt' ].replace (
5555 "\n You should write self-contained code starting with:\n ```\n " ,
56- "\n You should write self-contained code starting with:\n ```\n "
56+ "\n You should write self-contained code starting with:\n ```\n import nltk \n nltk.download('stopwords') \ n "
5757 )
5858
5959 if sample ["task_id" ] in ["BigCodeBench/635" ]:
@@ -68,16 +68,16 @@ def map_ds(sample):
6868 )
6969
7070 sample ['instruct_prompt' ] = sample ['instruct_prompt' ].replace (
71- "# Importing the required libraries " ,
72- "# Importing the required libraries \n import nltk\n nltk.download('stopwords')\n "
71+ "\n You should write self-contained code starting with: \n ``` \n " ,
72+ "\n You should write self-contained code starting with: \n ``` \n import nltk\n nltk.download('stopwords')\n "
7373 )
7474
7575 if sample ["task_id" ] in ["BigCodeBench/849" ]:
7676 sample ['code_prompt' ] = "import nltk\n nltk.download('stopwords')\n " + sample ['code_prompt' ]
7777 sample ['complete_prompt' ] = "import nltk\n nltk.download('stopwords')\n " + sample ['complete_prompt' ]
7878 sample ['instruct_prompt' ] = sample ['instruct_prompt' ].replace (
7979 "\n You should write self-contained code starting with:\n ```\n " ,
80- "\n You should write self-contained code starting with:\n ```\n "
80+ "\n You should write self-contained code starting with:\n ```\n import nltk \n nltk.download('stopwords') \ n "
8181 )
8282
8383 if sample ["task_id" ] in ["BigCodeBench/940" ]:
0 commit comments