23ws-LLMcoder/LLMcoder-GitHub-Python-Mix-Direct
Dataset Card for LLMcoder-GitHub-Python-Mix-Direct Python target autocomplete suggestions in the format of conversations for OpenAI's fine-tuning. Dataset Details Dataset Description Curated by: [More Information Needed] Funded by [optional]: [More Information Needed] Shared by [optional]: [More Information Needed] Language(s) (NLP): [More Information Needed] License: [More Information Needed] Dataset Sources [optional] The data… See the full description on the dataset page: https://huggingface.co/datasets/23ws-LLMcoder/LLMcoder-GitHub-Python-Mix-Direct.
0216
1sult, expected)2 3 4@pytest.mark.parametrize(5 "header, expected_data",6 [7 (8 0,9 {10 "Title": [np.nan, "A", 1, 2, 3],11 "Unnamed: 1": [np.nan, "B", 4, 5, 6],12 "Unnamed: 2": [np.nan, "C", 7, 8, 9],13 },14 ),15 (2, {"A": [1, 2, 3], "B": [4, 5, 6], "C": [7, 8, 9]}),16 ],17)18@pytest.mark.parametrize(19 "filename", ["dimension_missing", "dimension_small", "dimension_large"]20)21# When read_only is None, use read_excel instead of a workbook22@pytest.mark.parametrize("read_only", [True, False, None])23def test_read_with_bad_dimension(24 datapath, ext, header, expected_data, filename, read_only25):26 # GH 38956, 39001 - no/incorrect dimension information27 path = datapath("io", "data", "excel", f"{filename}{ext}")28 if read_only is None:29 result = pd.read_excel(path, header=header)30 else:31 with contextlib.closing(32 openpyxl.load_workbook(path, read_only=read_only)33 ) as wb:34 result = pd.read_excel(wb, engine="openpyxl", header=header)35 expected = DataFrame(expected_data)36 tm.assert_frame_equal(result, expected)37 38 39def test_append_mode_file(ext):40 # GH 3957641 df = DataFrame()42 43 with tm.ensure_clean(ext) as f:44 df.to_excel(f, engine="openpyxl")45 46 with ExcelWriter(47 f, mode="a", engine="openpyxl", if_sheet_exists="new"48 ) as writer:49 df.to_excel(writer)50 51 # make sure that zip files are not concatenated by making sure that52 # "docProps/app.xml" only occurs twice in the file53 data = Path(f).read_bytes()54 first = data.find(b"docProps/app.xml")55 second = data.find(b"docProps/app.xml", first + 1)56 third = data.find(b"docProps/app.xml", second + 1)57 assert second != -1 and third == -158 59 60# When read_only is None, use read_excel instead of a workbook61@pytest.mark.parametrize("read_only", [True, False, None])62def test_read_wi