Datasets:
id list | project string | origin_file list | test_list list | prob_info list | type list | node list | language string | toolfunc_count int64 | func_count int64 | pytest_info dict |
|---|---|---|---|---|---|---|---|---|---|---|
[
"cloudnetpy.cloudnetpy.utils.cumsumr",
"cloudnetpy.cloudnetpy.categorize.atmos_utils.calc_adiabatic_lwc"
] | cloudnetpy | [
"cloudnetpy/utils.py",
"cloudnetpy/categorize/atmos_utils.py"
] | [
"tests/unit/test_atmos_utils.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 1151,
"func_start_lineno": 532,
"func_end_lineno": 549,
"func_code": "def cumsumr(array: np.ndarray, axis: int = 0) -> np.ndarray:\n \"\"\"Finds cumulative sum that resets on 0.\n\n Args:\n array: Input array.\n axis: Axis where ... | [
"function_empty"
] | [
"cloudnetpy.utils.cumsumr",
"cloudnetpy.categorize.atmos_utils.calc_adiabatic_lwc"
] | Python | 2 | 2 | {
"total_num": 5,
"base_passed_num": 4
} |
[
"cloudnetpy.cloudnetpy.utils.binvec",
"cloudnetpy.cloudnetpy.utils.rebin_1d",
"cloudnetpy.cloudnetpy.utils.rebin_2d",
"cloudnetpy.cloudnetpy.cloudnetarray.CloudnetArray::rebin_data"
] | cloudnetpy | [
"cloudnetpy/utils.py",
"cloudnetpy/utils.py",
"cloudnetpy/utils.py",
"cloudnetpy/cloudnetarray.py"
] | [
"tests/unit/test_categorize.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 1151,
"func_start_lineno": 124,
"func_end_lineno": 140,
"func_code": "def binvec(x: np.ndarray | list) -> np.ndarray:\n \"\"\"Converts 1-D center points to bins with even spacing.\n\n Args:\n x: 1-D array of N real values.\n\n Return... | [
"function_empty"
] | [
"cloudnetpy.utils.binvec",
"cloudnetpy.utils.rebin_1d",
"cloudnetpy.utils.rebin_2d",
"cloudnetpy.cloudnetarray.CloudnetArray.rebin_data"
] | Python | 4 | 4 | {
"total_num": 4,
"base_passed_num": 0
} |
[
"cloudnetpy.cloudnetpy.utils.binvec",
"cloudnetpy.cloudnetpy.utils.rebin_2d",
"cloudnetpy.cloudnetpy.cloudnetarray.CloudnetArray::rebin_data"
] | cloudnetpy | [
"cloudnetpy/utils.py",
"cloudnetpy/utils.py",
"cloudnetpy/cloudnetarray.py"
] | [
"tests/unit/test_cloudnetarray.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 1151,
"func_start_lineno": 124,
"func_end_lineno": 140,
"func_code": "def binvec(x: np.ndarray | list) -> np.ndarray:\n \"\"\"Converts 1-D center points to bins with even spacing.\n\n Args:\n x: 1-D array of N real values.\n\n Return... | [
"function_empty"
] | [
"cloudnetpy.utils.binvec",
"cloudnetpy.utils.rebin_2d",
"cloudnetpy.cloudnetarray.CloudnetArray.rebin_data"
] | Python | 3 | 3 | {
"total_num": 17,
"base_passed_num": 15
} |
[
"cloudnetpy.cloudnetpy.concat_lib._Concat::_write_initial_data",
"cloudnetpy.cloudnetpy.concat_lib._Concat::concat_data"
] | cloudnetpy | [
"cloudnetpy/concat_lib.py",
"cloudnetpy/concat_lib.py"
] | [
"tests/unit/test_concat_lib.py",
"tests/unit/test_copernicus.py",
"tests/unit/test_galileo.py",
"tests/unit/test_mira.py"
] | [
{
"class_start_lineno": 122,
"class_end_lineno": 253,
"func_start_lineno": 173,
"func_end_lineno": 202,
"func_code": " def _write_initial_data(self, variables: list | None, ignore: list | None) -> None:\n for key in self.first_file.variables:\n if (\n variable... | [
"Development"
] | [
"cloudnetpy.concat_lib._Concat._write_initial_data",
"cloudnetpy.concat_lib._Concat.concat_data"
] | Python | 0 | 2 | {
"total_num": 71,
"base_passed_num": 32
} |
[
"cloudnetpy.cloudnetpy.datasource.DataSource::getvar",
"cloudnetpy.cloudnetpy.datasource.DataSource::_init_time"
] | cloudnetpy | [
"cloudnetpy/datasource.py",
"cloudnetpy/datasource.py"
] | [
"tests/unit/test_datasource.py"
] | [
{
"class_start_lineno": 16,
"class_end_lineno": 236,
"func_start_lineno": 60,
"func_end_lineno": 80,
"func_code": " def getvar(self, *args) -> np.ndarray:\n \"\"\"Returns data array from the source file variables.\n\n Returns just the data (and no attributes) from the original\n... | [
"function_empty",
"Development"
] | [
"cloudnetpy.datasource.DataSource.getvar",
"cloudnetpy.datasource.DataSource._init_time"
] | Python | 1 | 2 | {
"total_num": 9,
"base_passed_num": 6
} |
[
"cloudnetpy.cloudnetpy.instruments.disdrometer.parsivel._read_fmi",
"cloudnetpy.cloudnetpy.instruments.disdrometer.parsivel.parsivel2nc"
] | cloudnetpy | [
"cloudnetpy/instruments/disdrometer/parsivel.py",
"cloudnetpy/instruments/disdrometer/parsivel.py"
] | [
"tests/unit/test_disdrometer.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 713,
"func_start_lineno": 618,
"func_end_lineno": 657,
"func_code": "def _read_fmi(content: str):\n r\"\"\"Read format used by Finnish Meteorological Institute and University of\n Helsinki.\n\n Format consists of sequence of the following:\... | [
"function_empty"
] | [
"cloudnetpy.instruments.disdrometer.parsivel._read_fmi",
"cloudnetpy.instruments.disdrometer.parsivel.parsivel2nc"
] | Python | 2 | 2 | {
"total_num": 54,
"base_passed_num": 0
} |
[
"cloudnetpy.cloudnetpy.utils.l2norm_weighted",
"cloudnetpy.cloudnetpy.products.drizzle_error._calc_error"
] | cloudnetpy | [
"cloudnetpy/utils.py",
"cloudnetpy/products/drizzle_error.py"
] | [
"tests/unit/test_drizzle.py",
"tests/unit/test_drizzle_error.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 1151,
"func_start_lineno": 504,
"func_end_lineno": 529,
"func_code": "def l2norm_weighted(\n values: tuple,\n overall_scale: float,\n term_weights: tuple,\n) -> ma.MaskedArray:\n \"\"\"Calculates scaled and weighted Euclidean distance.\n... | [
"function_empty",
"Development"
] | [
"cloudnetpy.utils.l2norm_weighted",
"cloudnetpy.products.drizzle_error._calc_error"
] | Python | 1 | 2 | {
"total_num": 103,
"base_passed_num": 70
} |
[
"cloudnetpy.cloudnetpy.categorize.droplet.interpolate_lwp",
"cloudnetpy.cloudnetpy.categorize.droplet.find_liquid"
] | cloudnetpy | [
"cloudnetpy/categorize/droplet.py",
"cloudnetpy/categorize/droplet.py"
] | [
"tests/unit/test_droplet.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 245,
"func_start_lineno": 225,
"func_end_lineno": 238,
"func_code": "def interpolate_lwp(obs: ClassData) -> np.ndarray:\n \"\"\"Linear interpolation of liquid water path to fill masked values.\n\n Args:\n obs: The :class:`ClassData` ins... | [
"function_empty",
"Development"
] | [
"cloudnetpy.categorize.droplet.interpolate_lwp",
"cloudnetpy.categorize.droplet.find_liquid"
] | Python | 1 | 2 | {
"total_num": 18,
"base_passed_num": 15
} |
[
"cloudnetpy.cloudnetpy.categorize.atmos_utils.fill_clouds_with_lwc_dz",
"cloudnetpy.cloudnetpy.products.lwc.Lwc::_init_lwc_adiabatic",
"cloudnetpy.cloudnetpy.categorize.atmos_utils.calc_saturation_vapor_pressure",
"cloudnetpy.cloudnetpy.categorize.atmos_utils.calc_mixing_ratio",
"cloudnetpy.cloudnetpy.categ... | cloudnetpy | [
"cloudnetpy/categorize/atmos_utils.py",
"cloudnetpy/products/lwc.py",
"cloudnetpy/products/lwc.py",
"cloudnetpy/categorize/atmos_utils.py",
"cloudnetpy/categorize/atmos_utils.py",
"cloudnetpy/categorize/atmos_utils.py"
] | [
"tests/unit/test_lwc.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 357,
"func_start_lineno": 154,
"func_end_lineno": 172,
"func_code": "def fill_clouds_with_lwc_dz(\n temperature: np.ndarray, pressure: np.ndarray, is_liquid: np.ndarray\n) -> np.ndarray:\n \"\"\"Fills liquid clouds with lwc change rate at the ... | [
"function_empty",
"Development"
] | [
"cloudnetpy.categorize.atmos_utils.fill_clouds_with_lwc_dz",
"cloudnetpy.products.lwc.Lwc._init_lwc_adiabatic",
"cloudnetpy.products.lwc.Lwc.__init__",
"cloudnetpy.categorize.atmos_utils.calc_saturation_vapor_pressure",
"cloudnetpy.categorize.atmos_utils.calc_mixing_ratio",
"cloudnetpy.categorize.atmos_ut... | Python | 3 | 5 | {
"total_num": 37,
"base_passed_num": 0
} |
[
"cloudnetpy.cloudnetpy.utils.rebin_1d",
"cloudnetpy.cloudnetpy.cloudnetarray.CloudnetArray::rebin_data",
"cloudnetpy.cloudnetpy.utils.binvec"
] | cloudnetpy | [
"cloudnetpy/utils.py",
"cloudnetpy/cloudnetarray.py",
"cloudnetpy/categorize/mwr.py",
"cloudnetpy/utils.py"
] | [
"tests/unit/test_mwr.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 1151,
"func_start_lineno": 195,
"func_end_lineno": 231,
"func_code": "def rebin_1d(\n x_in: np.ndarray,\n array: np.ndarray | ma.MaskedArray,\n x_new: np.ndarray,\n statistic: str = \"mean\",\n *,\n mask_zeros: bool = True,\n) -> m... | [
"function_empty"
] | [
"cloudnetpy.utils.rebin_1d",
"cloudnetpy.cloudnetarray.CloudnetArray.rebin_data",
"cloudnetpy.categorize.mwr.Mwr.rebin_to_grid",
"cloudnetpy.utils.binvec"
] | Python | 3 | 3 | {
"total_num": 4,
"base_passed_num": 3
} |
[
"cloudnetpy.cloudnetpy.utils.append_data",
"cloudnetpy.cloudnetpy.instruments.radiometrics.RadiometricsCombined::__init__"
] | cloudnetpy | [
"cloudnetpy/utils.py",
"cloudnetpy/instruments/radiometrics.py"
] | [
"tests/unit/test_radiometrics.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 1151,
"func_start_lineno": 911,
"func_end_lineno": 925,
"func_code": "def append_data(data_in: dict, key: str, array: np.ndarray) -> dict:\n \"\"\"Appends data to a dictionary field (creates the field if not yet present).\n\n Args:\n da... | [
"function_empty",
"Development"
] | [
"cloudnetpy.utils.append_data",
"cloudnetpy.instruments.radiometrics.RadiometricsCombined.__init__"
] | Python | 1 | 2 | {
"total_num": 17,
"base_passed_num": 0
} |
[
"cloudnetpy.cloudnetpy.utils.binvec",
"cloudnetpy.cloudnetpy.utils.rebin_2d",
"cloudnetpy.cloudnetpy.utils.rebin_1d"
] | cloudnetpy | [
"cloudnetpy/utils.py",
"cloudnetpy/utils.py",
"cloudnetpy/utils.py"
] | [
"tests/unit/test_utils.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 1151,
"func_start_lineno": 124,
"func_end_lineno": 140,
"func_code": "def binvec(x: np.ndarray | list) -> np.ndarray:\n \"\"\"Converts 1-D center points to bins with even spacing.\n\n Args:\n x: 1-D array of N real values.\n\n Return... | [
"function_empty"
] | [
"cloudnetpy.utils.binvec",
"cloudnetpy.utils.rebin_2d",
"cloudnetpy.utils.rebin_1d"
] | Python | 3 | 3 | {
"total_num": 160,
"base_passed_num": 151
} |
[
"d3rlpy.d3rlpy.models.encoders.DefaultEncoderFactory::create",
"d3rlpy.d3rlpy.models.builders.create_discrete_q_function"
] | d3rlpy | [
"d3rlpy/models/encoders.py",
"d3rlpy/models/builders.py"
] | [
"tests_copy/envs/test_wrappers.py",
"tests_copy/models/test_builders.py"
] | [
{
"class_start_lineno": 209,
"class_end_lineno": 265,
"func_start_lineno": 224,
"func_end_lineno": 238,
"func_code": " def create(self, observation_shape: Shape) -> Encoder:\n factory: Union[PixelEncoderFactory, VectorEncoderFactory]\n if len(observation_shape) == 3:\n ... | [
"Development"
] | [
"d3rlpy.models.encoders.DefaultEncoderFactory.create",
"d3rlpy.models.builders.create_discrete_q_function"
] | Python | 0 | 2 | {
"total_num": 42,
"base_passed_num": 15
} |
[
"d3rlpy.d3rlpy.dataset.transition_pickers.BasicTransitionPicker::__call__",
"d3rlpy.d3rlpy.metrics.evaluators.make_batches",
"d3rlpy.d3rlpy.metrics.evaluators.TDErrorEvaluator::__call__",
"d3rlpy.d3rlpy.models.encoders.DefaultEncoderFactory::create",
"d3rlpy.d3rlpy.models.builders.create_discrete_q_function... | d3rlpy | [
"d3rlpy/dataset/transition_pickers.py",
"d3rlpy/metrics/evaluators.py",
"d3rlpy/metrics/evaluators.py",
"d3rlpy/models/encoders.py",
"d3rlpy/models/builders.py"
] | [
"tests_copy/metrics/test_evaluators.py"
] | [
{
"class_start_lineno": 43,
"class_end_lineno": 72,
"func_start_lineno": 49,
"func_end_lineno": 72,
"func_code": " def __call__(self, episode: EpisodeBase, index: int) -> Transition:\n _validate_index(episode, index)\n\n observation = retrieve_observation(episode.observations, i... | [
"Development"
] | [
"d3rlpy.dataset.transition_pickers.BasicTransitionPicker.__call__",
"d3rlpy.metrics.evaluators.make_batches",
"d3rlpy.metrics.evaluators.TDErrorEvaluator.__call__",
"d3rlpy.models.encoders.DefaultEncoderFactory.create",
"d3rlpy.models.builders.create_discrete_q_function"
] | Python | 0 | 5 | {
"total_num": 19,
"base_passed_num": 0
} |
[
"d3rlpy.d3rlpy.models.torch.q_functions.ensemble_q_function._gather_quantiles_by_indices",
"d3rlpy.d3rlpy.models.torch.q_functions.ensemble_q_function._reduce_quantile_ensemble",
"d3rlpy.d3rlpy.models.torch.q_functions.mean_q_function.DiscreteMeanQFunctionForwarder::compute_error",
"d3rlpy.d3rlpy.models.torch... | d3rlpy | [
"d3rlpy/models/torch/q_functions/ensemble_q_function.py",
"d3rlpy/models/torch/q_functions/ensemble_q_function.py",
"d3rlpy/models/torch/q_functions/mean_q_function.py",
"d3rlpy/models/torch/q_functions/iqn_q_function.py",
"d3rlpy/models/torch/q_functions/ensemble_q_function.py",
"d3rlpy/models/torch/q_fu... | [
"tests_copy/models/torch/q_functions/test_ensemble_q_function.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 367,
"func_start_lineno": 35,
"func_end_lineno": 52,
"func_code": "def _gather_quantiles_by_indices(\n y: torch.Tensor, indices: torch.Tensor\n) -> torch.Tensor:\n # TODO: implement this in general case\n if y.dim() == 3:\n # (N, bat... | [
"Development"
] | [
"d3rlpy.models.torch.q_functions.ensemble_q_function._gather_quantiles_by_indices",
"d3rlpy.models.torch.q_functions.ensemble_q_function._reduce_quantile_ensemble",
"d3rlpy.models.torch.q_functions.mean_q_function.DiscreteMeanQFunctionForwarder.compute_error",
"d3rlpy.models.torch.q_functions.iqn_q_function.D... | Python | 0 | 5 | {
"total_num": 30,
"base_passed_num": 4
} |
[
"d3rlpy.d3rlpy.models.torch.q_functions.iqn_q_function.DiscreteIQNQFunction::forward",
"d3rlpy.d3rlpy.models.torch.q_functions.iqn_q_function.DiscreteIQNQFunctionForwarder::compute_error"
] | d3rlpy | [
"d3rlpy/models/torch/q_functions/iqn_q_function.py",
"d3rlpy/models/torch/q_functions/base.py",
"d3rlpy/models/torch/q_functions/iqn_q_function.py"
] | [
"tests_copy/models/torch/q_functions/test_iqn_q_function.py"
] | [
{
"class_start_lineno": 65,
"class_end_lineno": 119,
"func_start_lineno": 92,
"func_end_lineno": 115,
"func_code": " def forward(self, x: TorchObservation) -> QFunctionOutput:\n h = self._encoder(x)\n\n if self.training:\n n_quantiles = self._n_quantiles\n else... | [
"Development"
] | [
"d3rlpy.models.torch.q_functions.iqn_q_function.DiscreteIQNQFunction.forward",
"d3rlpy.models.torch.q_functions.base.DiscreteIQNQFunction.__call__",
"d3rlpy.models.torch.q_functions.iqn_q_function.DiscreteIQNQFunctionForwarder.compute_error"
] | Python | 0 | 2 | {
"total_num": 8,
"base_passed_num": 4
} |
[
"datachain.src.datachain.lib.convert.python_to_sql.python_to_sql",
"datachain.src.datachain.lib.signal_schema.SignalSchema::get_column_type",
"datachain.src.datachain.lib.dc.DataChain::mutate",
"datachain.src.datachain.lib.signal_schema.SignalSchema::mutate"
] | datachain | [
"datachain/lib/convert/python_to_sql.py",
"datachain/func/func.py",
"datachain/lib/signal_schema.py",
"datachain/func/func.py",
"datachain/lib/dc.py",
"datachain/lib/signal_schema.py"
] | [
"tests/unit/test_func.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 117,
"func_start_lineno": 37,
"func_end_lineno": 82,
"func_code": "def python_to_sql(typ): # noqa: PLR0911\n if inspect.isclass(typ):\n if issubclass(typ, SQLType):\n return typ\n if issubclass(typ, Enum):\n r... | [
"function_empty",
"Development"
] | [
"datachain.lib.convert.python_to_sql.python_to_sql",
"datachain.func.func.Func.get_column",
"datachain.lib.signal_schema.SignalSchema.get_column_type",
"datachain.func.func.get_db_col_type",
"datachain.lib.dc.DataChain.mutate",
"datachain.lib.signal_schema.SignalSchema.mutate"
] | Python | 1 | 4 | {
"total_num": 94,
"base_passed_num": 39
} |
[
"datachain.src.datachain.query.session.Session::_cleanup_temp_datasets",
"datachain.src.datachain.query.session.Session::__exit__"
] | datachain | [
"datachain/query/session.py",
"datachain/query/session.py"
] | [
"tests/unit/test_listing.py",
"tests/unit/test_session.py"
] | [
{
"class_start_lineno": 19,
"class_end_lineno": 195,
"func_start_lineno": 103,
"func_end_lineno": 110,
"func_code": " def _cleanup_temp_datasets(self) -> None:\n prefix = self.get_temp_prefix()\n try:\n for dataset in list(self.catalog.metastore.list_datasets_by_prefi... | [
"Development"
] | [
"datachain.query.session.Session._cleanup_temp_datasets",
"datachain.query.session.Session.__exit__"
] | Python | 0 | 2 | {
"total_num": 24,
"base_passed_num": 7
} |
[
"datachain.src.datachain.lib.signal_schema.SignalSchema::_get_flat_tree",
"datachain.src.datachain.lib.convert.python_to_sql.python_to_sql",
"datachain.src.datachain.lib.signal_schema.SignalSchema::db_signals",
"datachain.src.datachain.query.session.Session::_cleanup_temp_datasets",
"datachain.src.datachain... | datachain | [
"datachain/lib/signal_schema.py",
"datachain/lib/signal_schema.py",
"datachain/lib/convert/python_to_sql.py",
"datachain/lib/signal_schema.py",
"datachain/query/session.py",
"datachain/query/session.py"
] | [
"tests/unit/lib/test_arrow.py"
] | [
{
"class_start_lineno": 135,
"class_end_lineno": 751,
"func_start_lineno": 630,
"func_end_lineno": 639,
"func_code": " def _get_flat_tree(\n self, tree: dict, prefix: list[str], depth: int\n ) -> Iterator[tuple[list[str], DataType, bool, int]]:\n for name, (type_, substree) i... | [
"function_empty",
"Development"
] | [
"datachain.lib.signal_schema.SignalSchema._get_flat_tree",
"datachain.lib.signal_schema.SignalSchema.get_flat_tree",
"datachain.lib.convert.python_to_sql.python_to_sql",
"datachain.lib.signal_schema.SignalSchema.db_signals",
"datachain.query.session.Session._cleanup_temp_datasets",
"datachain.query.sessio... | Python | 1 | 5 | {
"total_num": 32,
"base_passed_num": 31
} |
[
"datachain.src.datachain.lib.image.convert_image",
"datachain.src.datachain.lib.image.convert_images"
] | datachain | [
"datachain/lib/image.py",
"datachain/lib/image.py"
] | [
"tests/unit/lib/test_clip.py",
"tests/unit/lib/test_image.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 81,
"func_start_lineno": 7,
"func_end_lineno": 46,
"func_code": "def convert_image(\n img: Image.Image,\n mode: str = \"RGB\",\n size: Optional[tuple[int, int]] = None,\n transform: Optional[Callable] = None,\n encoder: Optional[Calla... | [
"function_empty"
] | [
"datachain.lib.image.convert_image",
"datachain.lib.image.convert_images"
] | Python | 2 | 2 | {
"total_num": 41,
"base_passed_num": 13
} |
[
"datachain.src.datachain.lib.file.File::get_destination_path",
"datachain.src.datachain.lib.file.File::export",
"datachain.src.datachain.lib.file.File::ensure_cached",
"datachain.src.datachain.lib.file.File::_symlink_to"
] | datachain | [
"datachain/lib/file.py",
"datachain/lib/file.py",
"datachain/lib/file.py",
"datachain/lib/file.py"
] | [
"tests/unit/lib/test_file.py"
] | [
{
"class_start_lineno": 125,
"class_end_lineno": 468,
"func_start_lineno": 396,
"func_end_lineno": 414,
"func_code": " def get_destination_path(self, output: str, placement: ExportPlacement) -> str:\n \"\"\"\n Returns full destination path of a file for exporting to some output\... | [
"function_empty",
"Development"
] | [
"datachain.lib.file.File.get_destination_path",
"datachain.lib.file.File.export",
"datachain.lib.file.File.ensure_cached",
"datachain.lib.file.File._symlink_to"
] | Python | 1 | 4 | {
"total_num": 33,
"base_passed_num": 14
} |
[
"datachain.src.datachain.query.session.Session::_cleanup_temp_datasets",
"datachain.src.datachain.query.session.Session::__exit__",
"datachain.src.datachain.lib.signal_schema.SignalSchema::_get_flat_tree",
"datachain.src.datachain.lib.convert.python_to_sql.python_to_sql",
"datachain.src.datachain.lib.signal... | datachain | [
"datachain/query/session.py",
"datachain/query/session.py",
"datachain/lib/signal_schema.py",
"datachain/lib/signal_schema.py",
"datachain/lib/convert/python_to_sql.py",
"datachain/lib/signal_schema.py"
] | [
"tests/unit/lib/test_signal_schema.py"
] | [
{
"class_start_lineno": 19,
"class_end_lineno": 195,
"func_start_lineno": 103,
"func_end_lineno": 110,
"func_code": " def _cleanup_temp_datasets(self) -> None:\n prefix = self.get_temp_prefix()\n try:\n for dataset in list(self.catalog.metastore.list_datasets_by_prefi... | [
"function_empty",
"Development"
] | [
"datachain.query.session.Session._cleanup_temp_datasets",
"datachain.query.session.Session.__exit__",
"datachain.lib.signal_schema.SignalSchema._get_flat_tree",
"datachain.lib.signal_schema.SignalSchema.get_flat_tree",
"datachain.lib.convert.python_to_sql.python_to_sql",
"datachain.lib.signal_schema.Signa... | Python | 1 | 5 | {
"total_num": 58,
"base_passed_num": 36
} |
[
"datachain.src.datachain.lib.webdataset.Builder::add",
"datachain.src.datachain.lib.webdataset.get_tar_groups"
] | datachain | [
"datachain/lib/webdataset.py",
"datachain/lib/webdataset.py"
] | [
"tests/unit/lib/test_webdataset.py"
] | [
{
"class_start_lineno": 104,
"class_end_lineno": 194,
"func_start_lineno": 134,
"func_end_lineno": 171,
"func_code": " def add(self, file: tarfile.TarInfo):\n fstream = File(path=file.name)\n ext = fstream.get_file_ext()\n stem = fstream.get_file_stem()\n\n if self... | [
"Development"
] | [
"datachain.lib.webdataset.Builder.add",
"datachain.lib.webdataset.get_tar_groups"
] | Python | 0 | 2 | {
"total_num": 7,
"base_passed_num": 0
} |
[
"datachain.src.datachain.func.conditional.case",
"datachain.src.datachain.func.conditional.ifelse"
] | datachain | [
"datachain/func/conditional.py",
"datachain/func/conditional.py"
] | [
"tests/unit/sql/test_conditional.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 270,
"func_start_lineno": 93,
"func_end_lineno": 158,
"func_code": "def case(\n *args: tuple[Union[ColumnElement, Func, bool], CaseT], else_: Optional[CaseT] = None\n) -> Func:\n \"\"\"\n Returns the case function that produces case express... | [
"function_empty",
"Development"
] | [
"datachain.func.conditional.case",
"datachain.func.conditional.ifelse"
] | Python | 1 | 2 | {
"total_num": 34,
"base_passed_num": 2
} |
[
"haystack.haystack.components.builders.prompt_builder.PromptBuilder::_validate_variables",
"haystack.haystack.components.builders.prompt_builder.PromptBuilder::run",
"haystack.haystack.core.type_utils._strict_types_are_compatible",
"haystack.haystack.core.type_utils._types_are_compatible"
] | haystack | [
"haystack/components/builders/prompt_builder.py",
"haystack/components/builders/prompt_builder.py",
"haystack/core/type_utils.py",
"haystack/core/type_utils.py"
] | [
"test/components/builders/test_prompt_builder.py"
] | [
{
"class_start_lineno": 17,
"class_end_lineno": 266,
"func_start_lineno": 247,
"func_end_lineno": 266,
"func_code": " def _validate_variables(self, provided_variables: Set[str]):\n \"\"\"\n Checks if all the required template variables are provided.\n\n :param provided_va... | [
"function_empty"
] | [
"haystack.components.builders.prompt_builder.PromptBuilder._validate_variables",
"haystack.components.builders.prompt_builder.PromptBuilder.run",
"haystack.core.type_utils._strict_types_are_compatible",
"haystack.core.type_utils._types_are_compatible"
] | Python | 4 | 4 | {
"total_num": 29,
"base_passed_num": 7
} |
[
"haystack.haystack.core.type_utils._strict_types_are_compatible",
"haystack.haystack.core.type_utils._types_are_compatible",
"haystack.haystack.document_stores.in_memory.document_store.InMemoryDocumentStore::to_dict",
"haystack.haystack.components.retrievers.in_memory.bm25_retriever.InMemoryBM25Retriever::to_... | haystack | [
"haystack/core/type_utils.py",
"haystack/core/type_utils.py",
"haystack/document_stores/in_memory/document_store.py",
"haystack/components/retrievers/in_memory/bm25_retriever.py",
"haystack/core/serialization.py"
] | [
"test/components/classifiers/test_zero_shot_document_classifier.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 105,
"func_start_lineno": 29,
"func_end_lineno": 76,
"func_code": "def _strict_types_are_compatible(sender, receiver): # pylint: disable=too-many-return-statements\n \"\"\"\n Checks whether the sender type is equal to or a subtype of the rece... | [
"function_empty",
"Development"
] | [
"haystack.core.type_utils._strict_types_are_compatible",
"haystack.core.type_utils._types_are_compatible",
"haystack.document_stores.in_memory.document_store.InMemoryDocumentStore.to_dict",
"haystack.components.retrievers.in_memory.bm25_retriever.InMemoryBM25Retriever.to_dict",
"haystack.core.serialization.... | Python | 4 | 5 | {
"total_num": 10,
"base_passed_num": 9
} |
[
"haystack.haystack.core.serialization.default_to_dict",
"haystack.haystack.core.serialization.component_to_dict"
] | haystack | [
"haystack/core/serialization.py",
"haystack/components/connectors/openapi_service.py",
"haystack/core/serialization.py"
] | [
"test/components/connectors/test_openapi_service.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 264,
"func_start_lineno": 172,
"func_end_lineno": 210,
"func_code": "def default_to_dict(obj: Any, **init_parameters) -> Dict[str, Any]:\n \"\"\"\n Utility function to serialize an object to a dictionary.\n\n This is mostly necessary for co... | [
"function_empty",
"Development"
] | [
"haystack.core.serialization.default_to_dict",
"haystack.components.connectors.openapi_service.OpenAPIServiceConnector.to_dict",
"haystack.core.serialization.component_to_dict"
] | Python | 1 | 2 | {
"total_num": 12,
"base_passed_num": 10
} |
[
"haystack.haystack.core.serialization.default_to_dict",
"haystack.haystack.components.converters.json.JSONConverter::to_dict",
"haystack.haystack.components.converters.utils.normalize_metadata",
"haystack.haystack.components.converters.json.JSONConverter::run"
] | haystack | [
"haystack/core/serialization.py",
"haystack/components/converters/json.py",
"haystack/components/converters/utils.py",
"haystack/components/converters/json.py"
] | [
"test/components/converters/test_json.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 264,
"func_start_lineno": 172,
"func_end_lineno": 210,
"func_code": "def default_to_dict(obj: Any, **init_parameters) -> Dict[str, Any]:\n \"\"\"\n Utility function to serialize an object to a dictionary.\n\n This is mostly necessary for co... | [
"function_empty",
"Development"
] | [
"haystack.core.serialization.default_to_dict",
"haystack.components.converters.json.JSONConverter.to_dict",
"haystack.components.converters.utils.normalize_metadata",
"haystack.components.converters.json.JSONConverter.run"
] | Python | 3 | 4 | {
"total_num": 19,
"base_passed_num": 5
} |
[
"haystack.haystack.components.converters.openapi_functions.OpenAPIServiceToFunctions::_parse_openapi_spec",
"haystack.haystack.components.converters.openapi_functions.OpenAPIServiceToFunctions::run",
"haystack.haystack.components.converters.openapi_functions.OpenAPIServiceToFunctions::_parse_property_attributes... | haystack | [
"haystack/components/converters/openapi_functions.py",
"haystack/components/converters/openapi_functions.py",
"haystack/components/converters/openapi_functions.py",
"haystack/components/converters/openapi_functions.py",
"haystack/components/converters/openapi_functions.py"
] | [
"test/components/converters/test_openapi_functions.py"
] | [
{
"class_start_lineno": 23,
"class_end_lineno": 257,
"func_start_lineno": 232,
"func_end_lineno": 257,
"func_code": " def _parse_openapi_spec(self, content: str) -> Dict[str, Any]:\n \"\"\"\n Parses OpenAPI specification content, supporting both JSON and YAML formats.\n\n ... | [
"function_empty",
"Development"
] | [
"haystack.components.converters.openapi_functions.OpenAPIServiceToFunctions._parse_openapi_spec",
"haystack.components.converters.openapi_functions.OpenAPIServiceToFunctions.run",
"haystack.components.converters.openapi_functions.OpenAPIServiceToFunctions._parse_property_attributes",
"haystack.components.conv... | Python | 3 | 5 | {
"total_num": 8,
"base_passed_num": 0
} |
[
"haystack.haystack.utils.callable_serialization.serialize_callable",
"haystack.haystack.components.converters.output_adapter.OutputAdapter::to_dict",
"haystack.haystack.utils.type_serialization.thread_safe_import",
"haystack.haystack.utils.callable_serialization.deserialize_callable"
] | haystack | [
"haystack/utils/callable_serialization.py",
"haystack/components/converters/output_adapter.py",
"haystack/utils/type_serialization.py",
"haystack/utils/callable_serialization.py"
] | [
"test/components/converters/test_output_adapter.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 80,
"func_start_lineno": 12,
"func_end_lineno": 42,
"func_code": "def serialize_callable(callable_handle: Callable) -> str:\n \"\"\"\n Serializes a callable to its full path.\n\n :param callable_handle: The callable to serialize\n :retur... | [
"function_empty",
"Development"
] | [
"haystack.utils.callable_serialization.serialize_callable",
"haystack.components.converters.output_adapter.OutputAdapter.to_dict",
"haystack.utils.type_serialization.thread_safe_import",
"haystack.utils.callable_serialization.deserialize_callable"
] | Python | 3 | 4 | {
"total_num": 14,
"base_passed_num": 9
} |
[
"haystack.haystack.utils.callable_serialization.serialize_callable",
"haystack.haystack.components.embedders.azure_document_embedder.AzureOpenAIDocumentEmbedder::to_dict",
"haystack.haystack.utils.type_serialization.thread_safe_import",
"haystack.haystack.utils.callable_serialization.deserialize_callable"
] | haystack | [
"haystack/utils/callable_serialization.py",
"haystack/components/embedders/azure_document_embedder.py",
"haystack/utils/type_serialization.py",
"haystack/utils/callable_serialization.py"
] | [
"test/components/embedders/test_azure_document_embedder.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 80,
"func_start_lineno": 12,
"func_end_lineno": 42,
"func_code": "def serialize_callable(callable_handle: Callable) -> str:\n \"\"\"\n Serializes a callable to its full path.\n\n :param callable_handle: The callable to serialize\n :retur... | [
"function_empty",
"Development"
] | [
"haystack.utils.callable_serialization.serialize_callable",
"haystack.components.embedders.azure_document_embedder.AzureOpenAIDocumentEmbedder.to_dict",
"haystack.utils.type_serialization.thread_safe_import",
"haystack.utils.callable_serialization.deserialize_callable"
] | Python | 3 | 4 | {
"total_num": 6,
"base_passed_num": 3
} |
[
"haystack.haystack.utils.callable_serialization.serialize_callable",
"haystack.haystack.components.embedders.azure_text_embedder.AzureOpenAITextEmbedder::to_dict",
"haystack.haystack.utils.type_serialization.thread_safe_import",
"haystack.haystack.utils.callable_serialization.deserialize_callable"
] | haystack | [
"haystack/utils/callable_serialization.py",
"haystack/components/embedders/azure_text_embedder.py",
"haystack/utils/type_serialization.py",
"haystack/utils/callable_serialization.py"
] | [
"test/components/embedders/test_azure_text_embedder.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 80,
"func_start_lineno": 12,
"func_end_lineno": 42,
"func_code": "def serialize_callable(callable_handle: Callable) -> str:\n \"\"\"\n Serializes a callable to its full path.\n\n :param callable_handle: The callable to serialize\n :retur... | [
"function_empty",
"Development"
] | [
"haystack.utils.callable_serialization.serialize_callable",
"haystack.components.embedders.azure_text_embedder.AzureOpenAITextEmbedder.to_dict",
"haystack.utils.type_serialization.thread_safe_import",
"haystack.utils.callable_serialization.deserialize_callable"
] | Python | 3 | 4 | {
"total_num": 5,
"base_passed_num": 2
} |
[
"haystack.haystack.components.embedders.hugging_face_api_document_embedder.HuggingFaceAPIDocumentEmbedder::_embed_batch",
"haystack.haystack.components.embedders.hugging_face_api_document_embedder.HuggingFaceAPIDocumentEmbedder::run"
] | haystack | [
"haystack/components/embedders/hugging_face_api_document_embedder.py",
"haystack/components/embedders/hugging_face_api_document_embedder.py"
] | [
"test/components/embedders/test_hugging_face_api_document_embedder.py"
] | [
{
"class_start_lineno": 24,
"class_end_lineno": 298,
"func_start_lineno": 236,
"func_end_lineno": 271,
"func_code": " def _embed_batch(self, texts_to_embed: List[str], batch_size: int) -> List[List[float]]:\n \"\"\"\n Embed a list of texts in batches.\n \"\"\"\n tr... | [
"function_empty",
"Development"
] | [
"haystack.components.embedders.hugging_face_api_document_embedder.HuggingFaceAPIDocumentEmbedder._embed_batch",
"haystack.components.embedders.hugging_face_api_document_embedder.HuggingFaceAPIDocumentEmbedder.run"
] | Python | 1 | 2 | {
"total_num": 17,
"base_passed_num": 12
} |
[
"haystack.haystack.components.embedders.openai_document_embedder.OpenAIDocumentEmbedder::_prepare_texts_to_embed",
"haystack.haystack.components.embedders.openai_document_embedder.OpenAIDocumentEmbedder::_embed_batch",
"haystack.haystack.components.embedders.openai_document_embedder.OpenAIDocumentEmbedder::run"... | haystack | [
"haystack/components/embedders/openai_document_embedder.py",
"haystack/components/embedders/openai_document_embedder.py",
"haystack/components/embedders/openai_document_embedder.py"
] | [
"test/components/embedders/test_openai_document_embedder.py"
] | [
{
"class_start_lineno": 19,
"class_end_lineno": 245,
"func_start_lineno": 164,
"func_end_lineno": 181,
"func_code": " def _prepare_texts_to_embed(self, documents: List[Document]) -> Dict[str, str]:\n \"\"\"\n Prepare the texts to embed by concatenating the Document text with the... | [
"function_empty",
"Development"
] | [
"haystack.components.embedders.openai_document_embedder.OpenAIDocumentEmbedder._prepare_texts_to_embed",
"haystack.components.embedders.openai_document_embedder.OpenAIDocumentEmbedder._embed_batch",
"haystack.components.embedders.openai_document_embedder.OpenAIDocumentEmbedder.run"
] | Python | 2 | 3 | {
"total_num": 11,
"base_passed_num": 4
} |
[
"haystack.haystack.utils.device.ComponentDevice::to_dict",
"haystack.haystack.components.embedders.sentence_transformers_document_embedder.SentenceTransformersDocumentEmbedder::to_dict"
] | haystack | [
"haystack/utils/device.py",
"haystack/components/embedders/sentence_transformers_document_embedder.py"
] | [
"test/components/embedders/test_sentence_transformers_document_embedder.py"
] | [
{
"class_start_lineno": 240,
"class_end_lineno": 480,
"func_start_lineno": 450,
"func_end_lineno": 463,
"func_code": " def to_dict(self) -> Dict[str, Any]:\n \"\"\"\n Convert the component device representation to a JSON-serializable dictionary.\n\n :returns:\n ... | [
"function_empty"
] | [
"haystack.utils.device.ComponentDevice.to_dict",
"haystack.components.embedders.sentence_transformers_document_embedder.SentenceTransformersDocumentEmbedder.to_dict"
] | Python | 2 | 2 | {
"total_num": 18,
"base_passed_num": 15
} |
[
"haystack.haystack.utils.device.ComponentDevice::to_dict",
"haystack.haystack.components.embedders.sentence_transformers_text_embedder.SentenceTransformersTextEmbedder::to_dict",
"haystack.haystack.utils.device.ComponentDevice::to_torch_str",
"haystack.haystack.components.embedders.sentence_transformers_text_... | haystack | [
"haystack/utils/device.py",
"haystack/components/embedders/sentence_transformers_text_embedder.py",
"haystack/utils/device.py",
"haystack/components/embedders/sentence_transformers_text_embedder.py"
] | [
"test/components/embedders/test_sentence_transformers_text_embedder.py"
] | [
{
"class_start_lineno": 240,
"class_end_lineno": 480,
"func_start_lineno": 450,
"func_end_lineno": 463,
"func_code": " def to_dict(self) -> Dict[str, Any]:\n \"\"\"\n Convert the component device representation to a JSON-serializable dictionary.\n\n :returns:\n ... | [
"function_empty",
"Development"
] | [
"haystack.utils.device.ComponentDevice.to_dict",
"haystack.components.embedders.sentence_transformers_text_embedder.SentenceTransformersTextEmbedder.to_dict",
"haystack.utils.device.ComponentDevice.to_torch_str",
"haystack.components.embedders.sentence_transformers_text_embedder.SentenceTransformersTextEmbedd... | Python | 3 | 4 | {
"total_num": 19,
"base_passed_num": 8
} |
[
"haystack.haystack.utils.type_serialization.serialize_type",
"haystack.haystack.components.evaluators.llm_evaluator.LLMEvaluator::to_dict",
"haystack.haystack.core.serialization.component_to_dict",
"haystack.haystack.utils.type_serialization.deserialize_type",
"haystack.haystack.core.serialization.component... | haystack | [
"haystack/utils/type_serialization.py",
"haystack/components/evaluators/llm_evaluator.py",
"haystack/core/serialization.py",
"haystack/utils/type_serialization.py",
"haystack/core/serialization.py"
] | [
"test/components/evaluators/test_llm_evaluator.py"
] | [
{
"class_start_lineno": 1,
"class_end_lineno": 170,
"func_start_lineno": 19,
"func_end_lineno": 52,
"func_code": "def serialize_type(target: Any) -> str:\n \"\"\"\n Serializes a type or an instance to its string representation, including the module name.\n\n This function handles types,... | [
"function_empty",
"Development"
] | [
"haystack.utils.type_serialization.serialize_type",
"haystack.components.evaluators.llm_evaluator.LLMEvaluator.to_dict",
"haystack.core.serialization.component_to_dict",
"haystack.utils.type_serialization.deserialize_type",
"haystack.core.serialization.component_from_dict"
] | Python | 2 | 5 | {
"total_num": 17,
"base_passed_num": 12
} |
[
"haystack.haystack.utils.device.ComponentDevice::to_dict",
"haystack.haystack.components.evaluators.sas_evaluator.SASEvaluator::to_dict"
] | haystack | [
"haystack/utils/device.py",
"haystack/components/evaluators/sas_evaluator.py"
] | [
"test/components/evaluators/test_sas_evaluator.py"
] | [
{
"class_start_lineno": 240,
"class_end_lineno": 480,
"func_start_lineno": 450,
"func_end_lineno": 463,
"func_code": " def to_dict(self) -> Dict[str, Any]:\n \"\"\"\n Convert the component device representation to a JSON-serializable dictionary.\n\n :returns:\n ... | [
"function_empty"
] | [
"haystack.utils.device.ComponentDevice.to_dict",
"haystack.components.evaluators.sas_evaluator.SASEvaluator.to_dict"
] | Python | 2 | 2 | {
"total_num": 12,
"base_passed_num": 11
} |
[
"haystack.haystack.components.generators.chat.openai.OpenAIChatGenerator::to_dict",
"haystack.haystack.components.extractors.llm_metadata_extractor.LLMMetadataExtractor::to_dict",
"haystack.haystack.components.builders.prompt_builder.PromptBuilder::_validate_variables",
"haystack.haystack.components.builders.... | haystack | [
"haystack/components/generators/chat/openai.py",
"haystack/components/extractors/llm_metadata_extractor.py",
"haystack/components/builders/prompt_builder.py",
"haystack/components/builders/prompt_builder.py",
"haystack/components/extractors/llm_metadata_extractor.py"
] | [
"test/components/extractors/test_llm_metadata_extractor.py"
] | [
{
"class_start_lineno": 32,
"class_end_lineno": 571,
"func_start_lineno": 170,
"func_end_lineno": 190,
"func_code": " def to_dict(self) -> Dict[str, Any]:\n \"\"\"\n Serialize this component to a dictionary.\n\n :returns:\n The serialized component as a diction... | [
"function_empty",
"Development"
] | [
"haystack.components.generators.chat.openai.OpenAIChatGenerator.to_dict",
"haystack.components.extractors.llm_metadata_extractor.LLMMetadataExtractor.to_dict",
"haystack.components.builders.prompt_builder.PromptBuilder._validate_variables",
"haystack.components.builders.prompt_builder.PromptBuilder.run",
"h... | Python | 4 | 5 | {
"total_num": 13,
"base_passed_num": 9
} |
[
"haystack.haystack.components.extractors.named_entity_extractor.NamedEntityExtractor::to_dict",
"haystack.haystack.core.serialization.component_to_dict"
] | haystack | [
"haystack/components/extractors/named_entity_extractor.py",
"haystack/core/serialization.py"
] | [
"test/components/extractors/test_named_entity_extractor.py"
] | [
{
"class_start_lineno": 78,
"class_end_lineno": 275,
"func_start_lineno": 212,
"func_end_lineno": 232,
"func_code": " def to_dict(self) -> Dict[str, Any]:\n \"\"\"\n Serializes the component to a dictionary.\n\n :returns:\n Dictionary with serialized data.\n ... | [
"function_empty",
"Development"
] | [
"haystack.components.extractors.named_entity_extractor.NamedEntityExtractor.to_dict",
"haystack.core.serialization.component_to_dict"
] | Python | 1 | 2 | {
"total_num": 7,
"base_passed_num": 2
} |
End of preview. Expand
in Data Studio
Multi Testcases for CoreCodeBench
File Explanation
CoreCodeBench_Multi.jsonlMulti test cases for CoreCodeBench.CoreCodeBench_Difficult.jsonlMore difficult version for CoreCodeBench multi test cases .
Key Explanation
| Key | Meaning/Description |
|---|---|
| id | A list of unique identifiers for the functions to be completed, typically in the format module.path.Class::function. |
| project | The name of the project this data is associated with. |
| origin_file | A list of file paths indicating where each function or method is defined in the source code. |
| test_list | A list of file paths for test scripts that are related to or used for testing the functions/methods. |
| prob_info | A list of dictionaries, each containing detailed information about a function or method, such as its starting and ending line numbers, and the actual code (func_code). Each dictionary includes: class_start_lineno/class_end_lineno: Line numbers where the class begins and ends. func_start_lineno/func_end_lineno: Line numbers where the function begins and ends. func_code: The source code of the function as a string. |
| type | A list indicating the type or category of the functions/methods (e.g., "function_empty"). |
| node | A list of fully qualified names (with module and class) for each function/method. |
| language | The programming language used. |
| toolfunc_count | The number of tool-related functions in the data. |
| func_count | The total number of atomic functions in the data. |
| pytest_info | A dictionary with information about pytest test results: total_num is the total number of unit tests, while base_passed_num is the number of base tests that passed. |
- Downloads last month
- 33