MCPcopy Create free account

hub / github.com/Open-Bee/DataStudio / functions

Functions1,367 in github.com/Open-Bee/DataStudio

Functiontemp_dir
Create a temporary directory for tests.
tests/conftest.py:90
Functiontemp_json_file
Create a temporary JSON file with sample data.
tests/conftest.py:98
Functiontemp_jsonl_file
Create a temporary JSONL file with sample data.
tests/conftest.py:107
Functiontemp_yaml_file
Create a temporary YAML config file.
tests/conftest.py:117
Methodtest_100_images_returns_392
Test large image count returns 392.
tests/datasets/test_data_loader.py:494
Methodtest_10_images_returns_672
Test 10 images returns 672.
tests/datasets/test_data_loader.py:478
Methodtest_11_images_returns_448
Test 11 images returns 448.
tests/datasets/test_data_loader.py:482
Methodtest_15_images_returns_448
Test 15 images returns 448.
tests/datasets/test_data_loader.py:486
Methodtest_16_images_returns_392
Test 16+ images returns 392.
tests/datasets/test_data_loader.py:490
Methodtest_1_image_returns_resize_image_size
Test 1 image returns the configured resize_image_size.
tests/datasets/test_data_loader.py:458
Methodtest_2_images_returns_resize_image_size
Test 2 images returns the configured resize_image_size.
tests/datasets/test_data_loader.py:462
Methodtest_3_images_returns_1024
Test 3 images returns 1024.
tests/datasets/test_data_loader.py:466
Methodtest_5_images_returns_1024
Test 5 images returns 1024.
tests/datasets/test_data_loader.py:470
Methodtest_6_images_returns_672
Test 6 images returns 672.
tests/datasets/test_data_loader.py:474
Methodtest_absolute_path_stays_absolute
Test that an absolute file_path is not modified.
tests/datasets/test_data_loader.py:433
Methodtest_add_decision_answer
Test _add_decision adds answer rewrite.
tests/operators/test_mllm.py:284
Methodtest_add_decision_keep
Test _add_decision adds keep decision (rejected=False).
tests/operators/test_mllm.py:225
Methodtest_add_decision_reject
Test _add_decision adds rejection.
tests/operators/test_mllm.py:215
Methodtest_add_file
Test adding file to generator.
tests/datasets/test_saver_components.py:130
Methodtest_add_filter_kept
Test add_filter for kept item.
tests/operators/test_result.py:142
Methodtest_add_filter_multiple
Test adding multiple filter decisions.
tests/operators/test_result.py:149
Methodtest_add_filter_record
Test add_filter_record adds record.
tests/operators/test_data_item.py:298
Methodtest_add_filter_rejected
Test add_filter for rejection.
tests/operators/test_result.py:135
Methodtest_add_full_filter_record
Test add_full_filter_record for full item rejection.
tests/operators/test_data_item.py:311
Methodtest_add_keep_record
Test add_keep_record adds record.
tests/operators/test_data_item.py:303
Methodtest_add_rejected_file
Test adding rejected file.
tests/datasets/test_saver_components.py:135
Methodtest_add_rewrite
Test add_rewrite.
tests/operators/test_result.py:156
Methodtest_add_rewrite_multiple
Test adding multiple rewrite decisions.
tests/operators/test_result.py:172
Methodtest_add_rewrite_record
Test add_rewrite_record adds record.
tests/operators/test_data_item.py:307
Methodtest_add_rewrite_with_question
Test add_rewrite with new question.
tests/operators/test_result.py:163
Methodtest_adjust_batch_size_disabled
Test batch size remains unchanged when adjustment disabled.
tests/datasets/test_data_loader.py:277
Methodtest_adjust_batch_size_enabled
Test batch size adjustment when enabled.
tests/datasets/test_data_loader.py:253
Methodtest_all_items_rejected
Test when all items are rejected.
tests/pipelines/test_sub_pipeline.py:274
Methodtest_allowed_types_default
Test default allowed types.
tests/models/test_base_api.py:74
Methodtest_apply_multiple_rewrites
Test applying multiple rewrites to multi-turn.
tests/operators/test_result.py:289
Methodtest_apply_partial_rejection
Test applying partial rejection to multi-turn.
tests/operators/test_result.py:275
Methodtest_apply_resize_image_pil
Test apply_resize_image_pil.
tests/utils/test_other_utils.py:346
Methodtest_apply_resize_image_pil_larger_than_max
Test apply_resize_image_pil with image larger than max_size.
tests/utils/test_other_utils.py:655
Methodtest_apply_resize_image_pil_none_input
Test apply_resize_image_pil with None input raises AttributeError.
tests/utils/test_other_utils.py:682
Methodtest_apply_resize_image_pil_smaller_than_max
Test apply_resize_image_pil with image already smaller than max_size.
tests/utils/test_other_utils.py:642
Methodtest_apply_resize_image_pil_square_image
Test apply_resize_image_pil with square image.
tests/utils/test_other_utils.py:670
Methodtest_apply_to_filter_keep
Test apply_to with filter keep.
tests/operators/test_result.py:232
Methodtest_apply_to_filter_rejection
Test apply_to with filter rejection.
tests/operators/test_result.py:222
Methodtest_apply_to_global_rejection
Test apply_to with global rejection (qa_idx=-1).
tests/operators/test_result.py:254
Methodtest_apply_to_no_changes
Test apply_to with no decisions.
tests/operators/test_result.py:214
Methodtest_apply_to_rewrite
Test apply_to with rewrite.
tests/operators/test_result.py:241
Methodtest_attribute_get
Test getting attribute.
tests/utils/test_config.py:256
Methodtest_attribute_none_for_missing
Test missing attribute returns None.
tests/utils/test_config.py:271
Methodtest_attribute_set
Test setting attribute.
tests/utils/test_config.py:265
Methodtest_auto_complete_sets_completed_flag_in_progress
Test that auto-completed progress dict has completed=True.
tests/utils/test_checkpoint.py:372
Methodtest_base_format_is_abstract
Test that BaseFormat cannot be instantiated directly.
tests/datasets/test_formatters.py:29
Methodtest_base_format_requires_extensions
Test that subclass must implement extensions property.
tests/datasets/test_formatters.py:34
Methodtest_base_format_requires_load
Test that subclass must implement load method.
tests/datasets/test_formatters.py:47
Methodtest_base_format_requires_save
Test that subclass must implement save method.
tests/datasets/test_formatters.py:61
Methodtest_basic_payload
(self, api)
tests/models/test_openai_api.py:160
Methodtest_batch_round_trip
(self)
tests/datasets/test_schema_converter.py:242
Methodtest_batch_size_larger_than_data
Test when batch size is larger than data size.
tests/datasets/test_data_loader.py:341
Methodtest_batch_size_one
Test with batch size of 1.
tests/datasets/test_data_loader.py:353
Methodtest_both_new_values_none
Test rewrite with both new_question and new_answer None.
tests/operators/test_result.py:330
Methodtest_build_file_creates_directory
Test build_file creates directory.
tests/utils/test_other_utils.py:24
Methodtest_build_file_returns_path
Test build_file returns valid path.
tests/utils/test_other_utils.py:43
Methodtest_build_file_with_nested_dir
Test build_file with nested directory.
tests/utils/test_other_utils.py:34
Methodtest_build_from_cfg_missing_type_key_raises_error
Test build_from_cfg with missing 'type' key raises error.
tests/utils/test_registry.py:355
Methodtest_build_from_cfg_none_config_returns_none
Test build_from_cfg with None config returns None.
tests/utils/test_registry.py:350
Methodtest_build_from_cfg_passes_extra_kwargs_to_constructor
Test build_from_cfg passes extra kwargs to constructor.
tests/utils/test_registry.py:369
Methodtest_build_from_cfg_unregistered_type_raises_keyerror
Test build_from_cfg with unregistered type raises KeyError.
tests/utils/test_registry.py:361
Methodtest_build_from_cfg_valid_config_and_registry
Test build_from_cfg with valid config and registry.
tests/utils/test_registry.py:341
Methodtest_build_from_dict_config
Test building from dict config.
tests/utils/test_registry.py:172
Methodtest_build_from_string_config
Test building from string config (type name only).
tests/utils/test_registry.py:182
Methodtest_build_missing_type
Test building without type field raises error.
tests/utils/test_registry.py:204
Methodtest_build_none_config
Test building with None config.
tests/utils/test_registry.py:199
Methodtest_build_nonexistent_type
Test building nonexistent type raises error.
tests/utils/test_registry.py:211
Methodtest_build_passes_loader_options
Test that loader options are passed correctly.
tests/datasets/test_builder.py:125
Methodtest_build_request
Test build_request creates request dict.
tests/operators/test_mllm.py:82
Methodtest_build_request_copy_img
Test build_request with copy_img=True.
tests/operators/test_mllm.py:93
Methodtest_build_request_with_image
Test build_request includes image.
tests/operators/test_mllm.py:87
Methodtest_build_requests
Test build_requests creates list of requests.
tests/operators/test_mllm.py:98
Methodtest_build_requests_batch_qa
Test build_requests with batch_qa=True.
tests/operators/test_mllm.py:104
Methodtest_build_requests_selective
Test build_requests_selective.
tests/operators/test_mllm.py:109
Methodtest_build_with_checkpoint
Test building dataloaders with checkpoint support.
tests/datasets/test_builder.py:94
Methodtest_build_with_empty_file_list
Test building with empty file list.
tests/datasets/test_builder.py:151
Methodtest_build_with_extra_kwargs
Test building with extra kwargs.
tests/utils/test_registry.py:190
Methodtest_build_with_file_list
Test building dataloaders from file list.
tests/datasets/test_builder.py:73
Methodtest_build_with_invalid_config
Test building with invalid config raises error.
tests/datasets/test_builder.py:117
Methodtest_build_with_none_dataset
Test building with None dataset returns None.
tests/datasets/test_builder.py:198
Methodtest_build_with_single_file
Test building dataloaders from single file.
tests/datasets/test_builder.py:53
Methodtest_build_with_yaml_config
Test building dataloaders from YAML config.
tests/datasets/test_builder.py:22
Methodtest_build_without_logger
Test building without logger.
tests/datasets/test_builder.py:167
Methodtest_build_without_work_dir
Test building without work_dir disables checkpoint.
tests/datasets/test_builder.py:183
Methodtest_builds_filter_operator
Test that filter operators are built correctly.
tests/pipelines/test_pipeline.py:125
Methodtest_builds_multiple_operators
Test building multiple operators.
tests/pipelines/test_pipeline.py:139
Methodtest_calculate_qa_statistics
Test calculate_qa_statistics.
tests/utils/test_other_utils.py:239
Methodtest_calculate_qa_statistics_empty_datas
Test calculate_qa_statistics with empty data list.
tests/utils/test_other_utils.py:629
Methodtest_calculate_qa_statistics_with_various_batch_sizes
Test calculate_qa_statistics with various batch sizes.
tests/utils/test_other_utils.py:589
Methodtest_call_accumulates_data
Test that __call__ accumulates data.
tests/datasets/test_data_saver.py:76
Methodtest_call_basic
Test basic pipeline call.
tests/pipelines/test_pipeline.py:90
Methodtest_call_basic
Test basic pipeline execution.
tests/pipelines/test_sub_pipeline.py:161
Methodtest_call_empty_data
Test pipeline call with empty data.
tests/pipelines/test_pipeline.py:103
Methodtest_call_empty_data
Test pipeline with empty data.
tests/pipelines/test_sub_pipeline.py:171
Methodtest_call_multiple_operators
Test pipeline with multiple operators.
tests/pipelines/test_sub_pipeline.py:179
← previousnext →501–600 of 1,367, ranked by callers