🔍 Code Extractor

Search Components

Full-Text: Fast keyword matching | Semantic: AI-powered understanding of intent (finds similar concepts)

Search Results for "math"

Found 33 matching component(s)

  • class ScriptExecutor

    A sandboxed Python script executor that safely runs user-provided Python code with timeout controls, security restrictions, and isolated execution environments for data analysis tasks.

    File: /tf/active/vicechatdev/vice_ai/script_executor.py

    sandbox script-execution security code-validation data-analysis
  • function clean_for_json_v1

    Recursively traverses nested data structures (dicts, lists) and replaces NaN and Infinity float values with None to ensure JSON serialization compatibility.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    json serialization data-cleaning nan-handling infinity-handling
  • class Config

    Configuration class that manages application-wide settings, directory structures, API keys, and operational parameters for a statistical analysis application.

    File: /tf/active/vicechatdev/vice_ai/smartstat_config.py

    configuration settings flask api-keys directory-management
  • class StatisticalAgent

    LLM-powered statistical analysis agent

    File: /tf/active/vicechatdev/vice_ai/statistical_agent.py

    class statisticalagent
  • function clean_for_json_v14

    Recursively sanitizes Python objects to make them JSON-serializable by converting NumPy types to native Python types and handling NaN/Inf values.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/42b81361-ba7e-4d79-9598-3090af68384b/analysis_2.py

    json serialization numpy data-conversion type-conversion
  • function clean_for_json_v4

    Recursively traverses nested data structures (dicts, lists, arrays) and converts NaN and Inf float values to None for safe JSON serialization, while also converting NumPy types to native Python types.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/7372154d-807e-4723-a769-4668761944b5/analysis_2.py

    json serialization data-cleaning numpy nan-handling
  • function clean_for_json_v11

    Recursively sanitizes Python objects (dicts, lists, floats) to make them JSON-serializable by replacing NaN and infinity float values with None.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/f5da873e-41e6-4f34-b3e4-f7443d4d213b/analysis_4.py

    json serialization data-cleaning nan-handling infinity-handling
  • function clean_for_json_v5

    Recursively traverses nested data structures (dictionaries, lists) and sanitizes numeric values by converting NaN and Inf to None, and normalizing NumPy numeric types to native Python types for JSON serialization.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/e4e8cb00-c17d-4282-aa80-5af67f32952f/analysis_1.py

    data-cleaning json-serialization numpy data-preprocessing nan-handling
  • function clean_for_json_v1

    Recursively sanitizes nested data structures (dictionaries, lists, tuples) by converting NaN and Inf values to None and normalizing NumPy types to native Python types for JSON serialization.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/e4e8cb00-c17d-4282-aa80-5af67f32952f/project_1/analysis.py

    json serialization data-cleaning numpy nan-handling
  • function clean_for_json_v9

    Recursively sanitizes Python objects (dicts, lists, floats) to ensure they are JSON-serializable by converting NaN and infinity values to None and ensuring all dictionary keys are strings.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/c385e1f5-fbf6-4832-8fd4-78ef8b72fc53/project_2/analysis.py

    json serialization data-cleaning sanitization nan-handling
  • function clean_for_json_v10

    Recursively converts Python objects containing NumPy and Pandas data types into JSON-serializable native Python types.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/c385e1f5-fbf6-4832-8fd4-78ef8b72fc53/project_1/analysis.py

    json serialization data-conversion numpy pandas
  • function clean_for_json_v13

    Recursively sanitizes Python objects to make them JSON-serializable by converting NumPy types to native Python types and handling NaN/Inf values.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/d48d7789-9627-4e96-9f48-f90b687cd07d/analysis_1.py

    json serialization numpy data-cleaning type-conversion
  • function clean_for_json_v3

    Recursively converts Python objects (including NumPy and Pandas types) into JSON-serializable formats by handling special numeric types, NaN/Inf values, and nested data structures.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/f0a78968-1d2b-4fbe-a0c6-a372da2ce2a4/project_1/analysis.py

    json serialization data-conversion numpy pandas
  • function clean_for_json_v6

    Recursively traverses nested data structures (dicts, lists) and sanitizes floating-point values by replacing NaN and Inf with None, while also converting NumPy numeric types to native Python types.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/d1e252f5-950c-4ad7-b425-86b4b02c3c62/analysis_4.py

    json serialization data-cleaning numpy nan-handling
  • function clean_for_json_v7

    Recursively traverses and sanitizes data structures (dicts, lists, numpy types) to ensure JSON serialization compatibility by converting numpy types to native Python types and handling NaN/Inf values.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/d1e252f5-950c-4ad7-b425-86b4b02c3c62/analysis_1.py

    json serialization data-cleaning numpy pandas
  • function clean_for_json_v8

    Recursively traverses and converts a nested data structure (dicts, lists, numpy types, pandas NaN) into JSON-serializable Python primitives.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/d1e252f5-950c-4ad7-b425-86b4b02c3c62/analysis_5.py

    json serialization data-cleaning numpy pandas
  • function clean_for_json_v2

    Recursively traverses nested data structures (dicts, lists) and sanitizes numeric values by converting NaN and Inf to None, and numpy types to native Python types for JSON serialization.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/e9b7c942-87b5-4a6f-865e-e7a0d62fb0a1/analysis_2.py

    json serialization data-cleaning numpy nan-handling
  • function clean_for_json_v15

    Recursively sanitizes Python objects to make them JSON-serializable by converting NumPy types to native Python types and handling NaN/Inf float values.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/290a39ea-3ae0-4301-8e2f-9d5c3bf80e6e/analysis_3.py

    json serialization data-cleaning numpy type-conversion
  • function clean_for_json_v12

    Recursively sanitizes Python objects to make them JSON-serializable by converting non-serializable types (NumPy types, pandas objects, tuples, NaN/Inf values) into JSON-compatible formats.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/290a39ea-3ae0-4301-8e2f-9d5c3bf80e6e/project_3/analysis.py

    json serialization data-cleaning numpy pandas
  • function clean_for_json

    Recursively traverses and sanitizes Python data structures (dicts, lists, tuples, numpy arrays) to ensure all values are JSON-serializable by converting numpy types, handling NaN/Inf values, and normalizing data types.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/f0b81d95-24d9-418a-8d9f-1b241684e64c/project_1/analysis.py

    json serialization data-cleaning numpy pandas
  • class ScriptExecutor_v1

    A sandboxed Python script executor that safely runs user-provided Python code with timeout controls, security restrictions, and isolated execution environments for data analysis tasks.

    File: /tf/active/vicechatdev/full_smartstat/script_executor.py

    sandbox security script-execution code-execution timeout
  • class Config_v1

    Configuration class that centralizes all application settings including Flask configuration, directory paths, API keys, LLM model settings, and statistical analysis parameters.

    File: /tf/active/vicechatdev/full_smartstat/config.py

    configuration settings flask llm openai
  • class Zebra_Label

    Used to build a ZPL2 label and send a print commandline to a specified printer on a specified server. Notes ----- all dimensions are given in millimeters and automatically converted to printer dot units. Parameters ---------- height : int height of the label in mm. width : int width of the label in mm. dpmm : int dots per millimeter, 8.0 for 203 dpi, 12 for 300 dpi. server : str The server on which to print. queue : str The printer to print on. Attributes ---------- height : int height of the label in mm. width : int width of the label in mm. dpmm : int dots per millimeter, 8.0 for 203 dpi, 12 for 300 dpi. server : str The server on which to print. queue : str The printer to print on. code : str ZPL code string, each function adds to this and this is what is eventually send to the printer. graph : py2neo.Graph The connection to the database

    File: /tf/active/vicechatdev/resources/printers.py

    class zebra_label
  • class PDF

    A custom PDF generation class that extends FPDF to create formatted PDF documents with titles, text, horizontal rules, and tables from pandas DataFrames.

    File: /tf/active/vicechatdev/resources/reports.py

    pdf-generation reporting data-visualization fpdf pandas
  • class CompactResponseFormatter

    A formatter class that converts verbose LLM responses into compact, symbol-rich text optimized for e-ink displays by using Unicode symbols, mathematical notation, and abbreviated formatting.

    File: /tf/active/vicechatdev/e-ink-llm/compact_formatter.py

    formatting text-processing e-ink display-optimization compact-notation
  • class LLMHandler

    Handles OpenAI LLM interactions with optimized prompts for analyzing handwritten and drawn content, providing comprehensive responses with optional hybrid graphics integration.

    File: /tf/active/vicechatdev/e-ink-llm/llm_handler.py

    openai llm gpt-4 image-analysis handwriting-recognition
  • function create_math_problem

    Generates a PNG image file containing a sample algebra math problem with workspace lines for solving.

    File: /tf/active/vicechatdev/e-ink-llm/demo.py

    image-generation PIL Pillow math-problem education
  • function run_demo

    Orchestrates a complete demonstration of an E-Ink LLM Assistant by creating three sample handwritten content files (question, instruction diagram, math problem) and processing each through an AI pipeline.

    File: /tf/active/vicechatdev/e-ink-llm/demo.py

    async demo e-ink llm handwriting
  • function run_tests

    Asynchronous test suite function that creates test images with various text prompts, processes them through an E-Ink LLM processor, and reports usage statistics and results.

    File: /tf/active/vicechatdev/e-ink-llm/test.py

    testing async e-ink llm openai
  • class HybridPromptEnhancer

    A utility class that enhances LLM prompts by adding instructions and formatting guidelines to encourage hybrid text+graphics responses with embedded graphic placeholders.

    File: /tf/active/vicechatdev/e-ink-llm/hybrid_response_handler.py

    prompt-engineering llm graphics hybrid-output text-enhancement
  • function test_session_manager

    A comprehensive test function that validates the SessionManager class functionality including conversation creation, exchange tracking, filename generation, and context retrieval.

    File: /tf/active/vicechatdev/e-ink-llm/test_improvements.py

    testing session-management database conversation-tracking unit-test
  • function demo_improvement_comparison

    A demonstration function that displays a before-and-after comparison of response formatting improvements, showing the evolution from verbose to compact, symbol-rich formatting optimized for e-ink displays.

    File: /tf/active/vicechatdev/e-ink-llm/test_improvements.py

    demonstration comparison formatting e-ink console-output
  • class IllustrationGenerator

    A class that generates educational illustrations and technical drawings for mathematical and scientific concepts using matplotlib and programmatic rendering.

    File: /tf/active/vicechatdev/e-ink-llm/graphics_generator.py

    illustration educational graphics matplotlib visualization

Search Examples