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
1import numpy as np2import pytest3 4import pandas as pd5import pandas._testing as tm6from pandas.api.extensions import ExtensionArray7from pandas.core.internals.blocks import EABackedBlock8 9 10class BaseConstructorsTests:11 def test_from_sequence_from_cls(self, data):12 result = type(data)._from_sequence(data, dtype=data.dtype)13 tm.assert_extension_array_equal(result, data)14 15 data = data[:0]16 result = type(data)._from_sequence(data, dtype=data.dtype)17 tm.assert_extension_array_equal(result, data)18 19 def test_array_from_scalars(self, data):20 scalars = [data[0], data[1], data[2]]21 result = data._from_sequence(scalars)22 assert isinstance(result, type(data))23 24 def test_series_constructor(self, data):25 result = pd.Series(data, copy=False)26 assert result.dtype == data.dtype27 assert len(result) == len(data)28 if hasattr(res