🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function isnumeric

    Determines whether a given value can be converted to a numeric type (int or float), excluding strings and boolean types.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 805-812

    validation type-checking numeric data-validation type-conversion
  • function isscalar

    Checks if a value is a scalar type, None, or a datetime-related type.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 798-802

    validation type-checking scalar datetime numpy
  • class sanitize_identifier_fn

    A parameterized function class that sanitizes strings (group/label values) to make them safe for use as Python attribute names in AttrTree structures by converting special characters to their unicode names and applying transformations.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 586-789

    sanitization identifier unicode string-processing attribute-names
  • function capitalize_unicode_name

    Transforms Unicode character name strings by removing the word 'capital' and capitalizing the following word, converting strings like 'capital delta' to 'Delta'.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 573-583

    string-manipulation text-processing unicode identifier-sanitization character-names
  • function get_method_owner

    Extracts and returns the instance object that owns a given bound method, handling both regular methods and partial functions.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 564-570

    introspection method bound-method partial reflection
  • function bytes_to_unicode

    Converts a bytes object to a Unicode string using UTF-8 encoding, or returns the input unchanged if it's not a bytes object.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 555-561

    encoding decoding utf-8 unicode bytes
  • function process_ellipses

    Expands an Ellipsis (...) in a __getitem__ key by replacing it with the appropriate number of empty slices (slice(None)) to match the dimensions of an object.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 523-552

    indexing ellipsis slicing multi-dimensional data-structures
  • function callable_name

    Extracts and returns a meaningful string name from various types of callable objects including functions, methods, classes, generators, and partial functions.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 498-520

    callable introspection reflection name-extraction utility
  • function validate_dynamic_argspec

    Validates that a callback function has an appropriate signature to work with DynamicMap by checking its arguments against key dimensions (kdims) and stream parameters.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 428-495

    validation signature-checking callback-validation argument-inspection dynamic-mapping
  • function argspec

    Extracts and normalizes function argument specifications from various callable types, removing implicit 'self' or 'cls' parameters from methods.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 391-425

    introspection reflection function-analysis argument-specification callable
  • function tree_attribute

    A predicate function that determines if an identifier string represents a custom attribute in AttrTrees by checking if it starts with a capitalized character or underscore.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 376-389

    predicate validation naming-convention attribute-filtering introspection
  • function deephash

    Computes a hash value for any Python object by serializing it to JSON using a custom HashableJSON encoder and returning the hash of the resulting string.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 365-373

    hashing serialization json object-comparison caching
  • class periodic

    A threading class that executes a callback function periodically at specified intervals, with optional count limits and timeout controls.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 294-361

    threading periodic-execution scheduling timer callback
  • function deprecated_opts_signature

    A utility function that analyzes arguments and keyword arguments to determine if the new or deprecated .opts method signature is being used, returning flags and processed options accordingly.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 261-291

    deprecation signature-migration options-processing backward-compatibility argument-parsing
  • function merge_options_to_dict

    Merges a collection of Option objects or partial option dictionaries into a single unified dictionary by iterating through the collection and combining their key-value pairs.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 245-258

    configuration options merge dictionary data-consolidation
  • function merge_option_dicts

    Performs a deep merge of two nested dictionaries where the top-level values are themselves dictionaries, preserving values from both dictionaries at the nested level.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 220-242

    dictionary merge deep-merge configuration options
  • class HashableJSON

    A JSON encoder extension that generates hashable string representations for a wide variety of Python objects, including those not normally JSON-serializable like sets, numpy arrays, and pandas DataFrames.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 151-217

    json hashing serialization memoization caching
  • function _int_to_bytes

    Converts a signed integer to its little-endian byte representation, automatically determining the minimum number of bytes needed based on the integer's bit length.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 146-148

    serialization bytes integer-conversion little-endian binary
  • class Config_v4

    A configuration class that manages global HoloViews behavior settings, including deprecation warnings, default colormaps, and rendering parameters.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 96-141

    configuration settings global-state holoviews parameterized
  • class VersionError

    Custom exception class raised when there is a library version mismatch, extending Python's built-in Exception class.

    File: /tf/active/vicechatdev/patches/util.py | Lines: 88-93

    exception error-handling version-control compatibility validation