Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Open-Bee/DataStudio
/ functions
Functions
1,367 in github.com/Open-Bee/DataStudio
⨍
Functions
1,367
◇
Types & classes
308
↳
Endpoints
27
Function
temp_dir
Create a temporary directory for tests.
tests/conftest.py:90
Function
temp_json_file
Create a temporary JSON file with sample data.
tests/conftest.py:98
Function
temp_jsonl_file
Create a temporary JSONL file with sample data.
tests/conftest.py:107
Function
temp_yaml_file
Create a temporary YAML config file.
tests/conftest.py:117
Method
test_100_images_returns_392
Test large image count returns 392.
tests/datasets/test_data_loader.py:494
Method
test_10_images_returns_672
Test 10 images returns 672.
tests/datasets/test_data_loader.py:478
Method
test_11_images_returns_448
Test 11 images returns 448.
tests/datasets/test_data_loader.py:482
Method
test_15_images_returns_448
Test 15 images returns 448.
tests/datasets/test_data_loader.py:486
Method
test_16_images_returns_392
Test 16+ images returns 392.
tests/datasets/test_data_loader.py:490
Method
test_1_image_returns_resize_image_size
Test 1 image returns the configured resize_image_size.
tests/datasets/test_data_loader.py:458
Method
test_2_images_returns_resize_image_size
Test 2 images returns the configured resize_image_size.
tests/datasets/test_data_loader.py:462
Method
test_3_images_returns_1024
Test 3 images returns 1024.
tests/datasets/test_data_loader.py:466
Method
test_5_images_returns_1024
Test 5 images returns 1024.
tests/datasets/test_data_loader.py:470
Method
test_6_images_returns_672
Test 6 images returns 672.
tests/datasets/test_data_loader.py:474
Method
test_absolute_path_stays_absolute
Test that an absolute file_path is not modified.
tests/datasets/test_data_loader.py:433
Method
test_add_decision_answer
Test _add_decision adds answer rewrite.
tests/operators/test_mllm.py:284
Method
test_add_decision_keep
Test _add_decision adds keep decision (rejected=False).
tests/operators/test_mllm.py:225
Method
test_add_decision_reject
Test _add_decision adds rejection.
tests/operators/test_mllm.py:215
Method
test_add_file
Test adding file to generator.
tests/datasets/test_saver_components.py:130
Method
test_add_filter_kept
Test add_filter for kept item.
tests/operators/test_result.py:142
Method
test_add_filter_multiple
Test adding multiple filter decisions.
tests/operators/test_result.py:149
Method
test_add_filter_record
Test add_filter_record adds record.
tests/operators/test_data_item.py:298
Method
test_add_filter_rejected
Test add_filter for rejection.
tests/operators/test_result.py:135
Method
test_add_full_filter_record
Test add_full_filter_record for full item rejection.
tests/operators/test_data_item.py:311
Method
test_add_keep_record
Test add_keep_record adds record.
tests/operators/test_data_item.py:303
Method
test_add_rejected_file
Test adding rejected file.
tests/datasets/test_saver_components.py:135
Method
test_add_rewrite
Test add_rewrite.
tests/operators/test_result.py:156
Method
test_add_rewrite_multiple
Test adding multiple rewrite decisions.
tests/operators/test_result.py:172
Method
test_add_rewrite_record
Test add_rewrite_record adds record.
tests/operators/test_data_item.py:307
Method
test_add_rewrite_with_question
Test add_rewrite with new question.
tests/operators/test_result.py:163
Method
test_adjust_batch_size_disabled
Test batch size remains unchanged when adjustment disabled.
tests/datasets/test_data_loader.py:277
Method
test_adjust_batch_size_enabled
Test batch size adjustment when enabled.
tests/datasets/test_data_loader.py:253
Method
test_all_items_rejected
Test when all items are rejected.
tests/pipelines/test_sub_pipeline.py:274
Method
test_allowed_types_default
Test default allowed types.
tests/models/test_base_api.py:74
Method
test_apply_multiple_rewrites
Test applying multiple rewrites to multi-turn.
tests/operators/test_result.py:289
Method
test_apply_partial_rejection
Test applying partial rejection to multi-turn.
tests/operators/test_result.py:275
Method
test_apply_resize_image_pil
Test apply_resize_image_pil.
tests/utils/test_other_utils.py:346
Method
test_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
Method
test_apply_resize_image_pil_none_input
Test apply_resize_image_pil with None input raises AttributeError.
tests/utils/test_other_utils.py:682
Method
test_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
Method
test_apply_resize_image_pil_square_image
Test apply_resize_image_pil with square image.
tests/utils/test_other_utils.py:670
Method
test_apply_to_filter_keep
Test apply_to with filter keep.
tests/operators/test_result.py:232
Method
test_apply_to_filter_rejection
Test apply_to with filter rejection.
tests/operators/test_result.py:222
Method
test_apply_to_global_rejection
Test apply_to with global rejection (qa_idx=-1).
tests/operators/test_result.py:254
Method
test_apply_to_no_changes
Test apply_to with no decisions.
tests/operators/test_result.py:214
Method
test_apply_to_rewrite
Test apply_to with rewrite.
tests/operators/test_result.py:241
Method
test_attribute_get
Test getting attribute.
tests/utils/test_config.py:256
Method
test_attribute_none_for_missing
Test missing attribute returns None.
tests/utils/test_config.py:271
Method
test_attribute_set
Test setting attribute.
tests/utils/test_config.py:265
Method
test_auto_complete_sets_completed_flag_in_progress
Test that auto-completed progress dict has completed=True.
tests/utils/test_checkpoint.py:372
Method
test_base_format_is_abstract
Test that BaseFormat cannot be instantiated directly.
tests/datasets/test_formatters.py:29
Method
test_base_format_requires_extensions
Test that subclass must implement extensions property.
tests/datasets/test_formatters.py:34
Method
test_base_format_requires_load
Test that subclass must implement load method.
tests/datasets/test_formatters.py:47
Method
test_base_format_requires_save
Test that subclass must implement save method.
tests/datasets/test_formatters.py:61
Method
test_basic_payload
(self, api)
tests/models/test_openai_api.py:160
Method
test_batch_round_trip
(self)
tests/datasets/test_schema_converter.py:242
Method
test_batch_size_larger_than_data
Test when batch size is larger than data size.
tests/datasets/test_data_loader.py:341
Method
test_batch_size_one
Test with batch size of 1.
tests/datasets/test_data_loader.py:353
Method
test_both_new_values_none
Test rewrite with both new_question and new_answer None.
tests/operators/test_result.py:330
Method
test_build_file_creates_directory
Test build_file creates directory.
tests/utils/test_other_utils.py:24
Method
test_build_file_returns_path
Test build_file returns valid path.
tests/utils/test_other_utils.py:43
Method
test_build_file_with_nested_dir
Test build_file with nested directory.
tests/utils/test_other_utils.py:34
Method
test_build_from_cfg_missing_type_key_raises_error
Test build_from_cfg with missing 'type' key raises error.
tests/utils/test_registry.py:355
Method
test_build_from_cfg_none_config_returns_none
Test build_from_cfg with None config returns None.
tests/utils/test_registry.py:350
Method
test_build_from_cfg_passes_extra_kwargs_to_constructor
Test build_from_cfg passes extra kwargs to constructor.
tests/utils/test_registry.py:369
Method
test_build_from_cfg_unregistered_type_raises_keyerror
Test build_from_cfg with unregistered type raises KeyError.
tests/utils/test_registry.py:361
Method
test_build_from_cfg_valid_config_and_registry
Test build_from_cfg with valid config and registry.
tests/utils/test_registry.py:341
Method
test_build_from_dict_config
Test building from dict config.
tests/utils/test_registry.py:172
Method
test_build_from_string_config
Test building from string config (type name only).
tests/utils/test_registry.py:182
Method
test_build_missing_type
Test building without type field raises error.
tests/utils/test_registry.py:204
Method
test_build_none_config
Test building with None config.
tests/utils/test_registry.py:199
Method
test_build_nonexistent_type
Test building nonexistent type raises error.
tests/utils/test_registry.py:211
Method
test_build_passes_loader_options
Test that loader options are passed correctly.
tests/datasets/test_builder.py:125
Method
test_build_request
Test build_request creates request dict.
tests/operators/test_mllm.py:82
Method
test_build_request_copy_img
Test build_request with copy_img=True.
tests/operators/test_mllm.py:93
Method
test_build_request_with_image
Test build_request includes image.
tests/operators/test_mllm.py:87
Method
test_build_requests
Test build_requests creates list of requests.
tests/operators/test_mllm.py:98
Method
test_build_requests_batch_qa
Test build_requests with batch_qa=True.
tests/operators/test_mllm.py:104
Method
test_build_requests_selective
Test build_requests_selective.
tests/operators/test_mllm.py:109
Method
test_build_with_checkpoint
Test building dataloaders with checkpoint support.
tests/datasets/test_builder.py:94
Method
test_build_with_empty_file_list
Test building with empty file list.
tests/datasets/test_builder.py:151
Method
test_build_with_extra_kwargs
Test building with extra kwargs.
tests/utils/test_registry.py:190
Method
test_build_with_file_list
Test building dataloaders from file list.
tests/datasets/test_builder.py:73
Method
test_build_with_invalid_config
Test building with invalid config raises error.
tests/datasets/test_builder.py:117
Method
test_build_with_none_dataset
Test building with None dataset returns None.
tests/datasets/test_builder.py:198
Method
test_build_with_single_file
Test building dataloaders from single file.
tests/datasets/test_builder.py:53
Method
test_build_with_yaml_config
Test building dataloaders from YAML config.
tests/datasets/test_builder.py:22
Method
test_build_without_logger
Test building without logger.
tests/datasets/test_builder.py:167
Method
test_build_without_work_dir
Test building without work_dir disables checkpoint.
tests/datasets/test_builder.py:183
Method
test_builds_filter_operator
Test that filter operators are built correctly.
tests/pipelines/test_pipeline.py:125
Method
test_builds_multiple_operators
Test building multiple operators.
tests/pipelines/test_pipeline.py:139
Method
test_calculate_qa_statistics
Test calculate_qa_statistics.
tests/utils/test_other_utils.py:239
Method
test_calculate_qa_statistics_empty_datas
Test calculate_qa_statistics with empty data list.
tests/utils/test_other_utils.py:629
Method
test_calculate_qa_statistics_with_various_batch_sizes
Test calculate_qa_statistics with various batch sizes.
tests/utils/test_other_utils.py:589
Method
test_call_accumulates_data
Test that __call__ accumulates data.
tests/datasets/test_data_saver.py:76
Method
test_call_basic
Test basic pipeline call.
tests/pipelines/test_pipeline.py:90
Method
test_call_basic
Test basic pipeline execution.
tests/pipelines/test_sub_pipeline.py:161
Method
test_call_empty_data
Test pipeline call with empty data.
tests/pipelines/test_pipeline.py:103
Method
test_call_empty_data
Test pipeline with empty data.
tests/pipelines/test_sub_pipeline.py:171
Method
test_call_multiple_operators
Test pipeline with multiple operators.
tests/pipelines/test_sub_pipeline.py:179
← previous
next →
501–600 of 1,367, ranked by callers