MCPcopy Create free account

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

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

Method__init__
(self, new_answer="Rewritten", **kwargs)
tests/pipelines/test_sub_pipeline.py:115
Method__init__
(self, order_id, **kwargs)
tests/pipelines/test_sub_pipeline.py:242
Method__init__
(self)
tests/models/test_base_api.py:272
Method__iter__
Initialize iteration.
datastudio/datasets/data_loader.py:368
Method__len__
Return the number of batches.
datastudio/datasets/data_loader.py:364
Method__next__
(self)
datastudio/datasets/data_loader.py:374
Method__repr__
(self)
datastudio/utils/registry.py:82
Method__setattr__
Set attribute as dictionary item.
datastudio/utils/config.py:73
Method_add_decision
Add filter decision based on parsed response. Args: result: Result to add decision to. qa_idx: QA pair index
datastudio/operators/mllm/filter.py:50
Method_add_decision
Add rewrite decision based on parsed response. Args: result: Result to add decision to. qa_idx: QA pair inde
datastudio/operators/mllm/rewriter.py:62
Method_build_openai_headers
Build HTTP headers for OpenAI-compatible API request. Args: api_key: API key for authorization. If empty, no Authorization header
datastudio/models/base.py:315
Method_build_requests
Build requests with only QA pairs needing rewrite.
datastudio/operators/mllm/rewriter.py:120
Method_check_shard
(shard_id_and_items)
datastudio/utils/database.py:328
Method_decode_one
Decode PNG bytes to PIL Image.
datastudio/datasets/data_loader.py:293
Method_get_resized
Get resized image, caching by (path, size) to avoid redundant work.
datastudio/datasets/data_loader.py:331
Method_log_text_to_wandb
Log text message to wandb.
datastudio/utils/logging.py:220
Method_open_read_env
Open a temporary env with readahead=True for batch reading.
datastudio/utils/database.py:381
Method_ramp_up_semaphore
()
datastudio/models/openai_api.py:441
Method_read_shard
(shard_id_and_items)
datastudio/utils/database.py:398
Method_register_module
(module: Type)
datastudio/utils/registry.py:49
Method_run
()
datastudio/models/openai_api.py:549
Function_worker_fn
Worker function executed in each forked subprocess. Reads its message slice from the inherited ``_SHARED_MESSAGES`` global (zero-copy via COW
datastudio/models/mp_openai_api.py:51
Methodalways_false
(question, answer)
tests/operators/test_mllm.py:615
Methodalways_true
(question, answer)
tests/operators/test_mllm.py:606
Functionapi
Create a testable API instance.
tests/models/test_base_api.py:37
Functionapi
Create an OpenAIAPI instance with test defaults.
tests/models/test_openai_api.py:30
Functionapi_return_dict
Create an OpenAIAPI instance with return_dict=True.
tests/models/test_openai_api.py:59
Functionapi_with_port
Create an OpenAIAPI instance using api_base + port pattern.
tests/models/test_openai_api.py:45
Functionassert_json_equal
Assert two JSON-serializable objects are equal.
tests/conftest.py:260
Methodbase_kwargs
Base kwargs for creating SelectiveMLLMRewriter.
tests/operators/test_mllm.py:592
Methodbuilder_custom
Create builder with custom settings.
tests/operators/test_mllm.py:50
Methodbuilder_default
Create builder with default settings.
tests/operators/test_mllm.py:45
Methodcheck
Not used - item-level filter.
datastudio/operators/filters/image_size.py:99
Methodcheck
Check for repetitive patterns in a QA pair.
datastudio/operators/filters/text_repeat.py:45
Methodcheck
Not used - item-level filter.
datastudio/operators/filters/image_aspect_ratio.py:62
Methodcheck
Not used - item-level filter.
datastudio/operators/filters/image_ext.py:77
Methodcheck
Not used - this filter operates at item level.
datastudio/operators/filters/conv_length.py:78
Methodchecker
Create ProcessedChecker instance.
tests/datasets/test_saver_components.py:171
Functionclean_registry
Provide a clean registry for testing.
tests/conftest.py:211
Methodclear_cover_key
(a)
datastudio/utils/config.py:209
Methodclose_all_instances
Close all manager instances.
datastudio/utils/database.py:457
Methodclose_shard
Close a specific shard to release memory. Args: shard_id: Shard ID to close.
datastudio/utils/database.py:432
Methodcollector
Create collector for testing.
tests/utils/test_statistics.py:228
Methodcollector
Create collector for testing.
tests/utils/test_statistics.py:249
Methodcollector
Create collector for testing.
tests/utils/test_statistics.py:286
Methodcollector_with_data
Create collector with recorded data.
tests/utils/test_statistics.py:322
Methodcollector_with_data
Create collector with recorded data.
tests/utils/test_statistics.py:351
Methodconversations
Get the conversations list.
datastudio/operators/core/data_item.py:56
Functioncreate_mock_file_content
Helper to create mock file content.
tests/conftest.py:255
Methodcustom_fn
(question, answer)
tests/operators/test_mllm.py:322
Methoddata
Access the underlying data dict.
datastudio/operators/core/data_item.py:51
Functiondata_item
Create a DataItem instance for testing.
tests/conftest.py:180
Methoddata_item
Create DataItem for testing.
tests/operators/test_result.py:210
Functiondata_item_multi_turn
Create a multi-turn DataItem for testing.
tests/conftest.py:196
Functiondata_item_with_image
Create a DataItem with image for testing.
tests/conftest.py:188
Methodencode_task
(item)
datastudio/models/base.py:468
Methodexecution_time
(self)
datastudio/utils/statistics.py:85
Methodextensions
Return supported file extensions. Returns: list: ['.json']
datastudio/datasets/formatters/json_formatter.py:18
Methodextensions
Return supported file extensions. Returns: list: ['.jsonl']
datastudio/datasets/formatters/jsonl_formatter.py:20
Methodextensions
(cls)
tests/datasets/test_formatters.py:341
Methodfilter_check_all
Create filter checking all fields.
tests/operators/test_filters.py:307
Methodfilter_check_all
Create filter checking all fields.
tests/operators/test_filters.py:435
Methodfilter_custom
Create filter with custom settings.
tests/operators/test_filters.py:39
Methodfilter_custom
Create filter with custom settings.
tests/operators/test_filters.py:106
Methodfilter_default
Create filter with default settings.
tests/operators/test_filters.py:34
Methodfilter_default
Create filter with default settings.
tests/operators/test_filters.py:101
Methodfilter_default
Create filter with default settings.
tests/operators/test_filters.py:177
Methodfilter_default
Create filter with default settings.
tests/operators/test_filters.py:234
Methodfilter_default
Create filter with default settings.
tests/operators/test_filters.py:302
Methodfilter_default
Create filter with default settings.
tests/operators/test_filters.py:375
Methodfilter_default
Create filter with default settings.
tests/operators/test_filters.py:430
Methodfilter_instance
Create MLLMFilter instance.
tests/operators/test_mllm.py:162
Methodfilter_instance
Create MLLMFilter instance for testing.
tests/operators/test_mllm.py:427
Methodfrom_dict
Create standard config from dictionary. Args: data: Raw configuration dictionary with 'datasets' key. Returns:
datastudio/datasets/config/config.py:94
Methodgenerate
Generate responses using fork-based multiprocessing. Args: messages: List of input messages. **kwargs: Additional gen
datastudio/models/mp_openai_api.py:245
Methodgenerate_inner
Sync version for single request (BaseAPI compatibility). Delegates to a temporary OpenAIAPI instance. Args: inputs: Prep
datastudio/models/mp_openai_api.py:309
Methodgenerate_inner
(self, inputs, **kwargs)
tests/models/test_base_api.py:276
Methodget_instance
Get or create ShardedLMDBManager singleton. Args: cache_dir: Cache directory path. num_shards: Number of shards.
datastudio/utils/database.py:149
Methodhas_filter
Whether any QA pair is marked for filtering.
datastudio/operators/core/result.py:87
Methodhas_image
Whether this item has an image.
datastudio/operators/core/data_item.py:78
Methodhas_rewrite
Whether any QA pair has rewrite changes.
datastudio/operators/core/result.py:92
Methodimage
Get the image (PIL Image or None).
datastudio/operators/core/data_item.py:73
Methodis_completed
Check if this dataloader has been fully processed.
datastudio/datasets/data_loader.py:400
Methodis_rejected
Whether this item is marked as rejected.
datastudio/operators/core/data_item.py:83
Methoditem
Create DataItem for testing.
tests/operators/test_data_item.py:112
Methoditem
Create multi-turn DataItem for testing.
tests/operators/test_data_item.py:169
Methoditem
Create DataItem for testing.
tests/operators/test_data_item.py:206
Methoditem
Create DataItem for testing.
tests/operators/test_data_item.py:249
Methoditem
Create DataItem for testing.
tests/operators/test_data_item.py:283
Methodjson_format
Create JsonFormat instance.
tests/datasets/test_formatters.py:80
Methodjsonl_format
Create JsonlFormat instance.
tests/datasets/test_formatters.py:181
Methodkept_count
(self)
datastudio/utils/statistics.py:67
Methodload
Load data from JSON file. Args: file_path: Path to JSON file. Returns: list: Data as list of dicts (single o
datastudio/datasets/formatters/json_formatter.py:26
Methodload
Load data from file. Args: file_path: Path to data file. add_source_file: Whether to add 'file_path' field to each it
datastudio/datasets/formatters/__init__.py:66
Methodload
Load data from JSONL file. Args: file_path: Path to JSONL file. Returns: list: List of data dictionaries.
datastudio/datasets/formatters/jsonl_formatter.py:28
Methodload
(self, file_path)
tests/datasets/test_formatters.py:344
Functionload_and_encode_image
Load image from disk and encode to bytes (no LMDB access).
datastudio/utils/database.py:489
Functionload_and_resize_image
Read image from disk and resize. Args: img_path: Image path (must be an absolute path). resize_size: Max edge size for resizing.
datastudio/utils/vision.py:128
Methodloader
Create a loader with mocked FormatRegistry for method testing.
tests/datasets/test_data_loader.py:446
Methodloader_with_checkpoint
Create loader with checkpoint manager.
tests/datasets/test_data_loader.py:182
← previousnext →301–400 of 1,367, ranked by callers