🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function test_mixed_mode_dry_run

    Asynchronous test function that validates mixed mode initialization by testing reMarkable Cloud authentication and OneDrive configuration without processing any files.

    File: /tf/active/vicechatdev/e-ink-llm/test_mixed_mode.py | Lines: 121-174

    testing async integration-test dry-run remarkable-cloud
  • function test_onedrive_auth

    Asynchronous function that tests OneDrive authentication by loading configuration from a JSON file and attempting to obtain an access token.

    File: /tf/active/vicechatdev/e-ink-llm/test_mixed_mode.py | Lines: 89-119

    authentication onedrive async testing cloud-storage
  • function test_remarkable_discovery

    Asynchronous test function that verifies reMarkable cloud folder discovery functionality by initializing a RemarkableCloudWatcher and attempting to locate the 'gpt_out' folder.

    File: /tf/active/vicechatdev/e-ink-llm/test_mixed_mode.py | Lines: 61-87

    testing async remarkable cloud-storage folder-discovery
  • function test_remarkable_auth

    Asynchronous function that tests authentication and API connectivity with the reMarkable Cloud service, verifying credentials and basic API access.

    File: /tf/active/vicechatdev/e-ink-llm/test_mixed_mode.py | Lines: 38-59

    authentication testing remarkable-cloud api-testing async
  • class HybridPDFGenerator

    A class that generates hybrid PDF documents combining formatted text content with embedded graphics, optimized for e-ink displays.

    File: /tf/active/vicechatdev/e-ink-llm/hybrid_pdf_generator.py | Lines: 86-461

    pdf-generation document-creation reportlab hybrid-content graphics-embedding
  • class HybridSessionDocTemplate

    A custom ReportLab document template class that extends BaseDocTemplate to create PDF documents with session information footers, specifically designed for hybrid text and graphics responses.

    File: /tf/active/vicechatdev/e-ink-llm/hybrid_pdf_generator.py | Lines: 29-84

    pdf-generation reportlab document-template session-tracking footer
  • 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 | Lines: 118-153

    async demo e-ink llm handwriting
  • 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 | Lines: 85-116

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

    Generates a sample instructional diagram image showing step-by-step coffee making instructions with text, lines, shapes, and an arrow pointing to a coffee maker illustration.

    File: /tf/active/vicechatdev/e-ink-llm/demo.py | Lines: 48-83

    image-generation PIL Pillow diagram instructions
  • function create_handwritten_question

    Generates a synthetic handwritten-style question image about photosynthesis with formatted text and decorative elements, saved as a PNG file.

    File: /tf/active/vicechatdev/e-ink-llm/demo.py | Lines: 17-46

    image-generation demo testing PIL Pillow
  • 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 | Lines: 8-426

    openai llm gpt-4 image-analysis handwriting-recognition
  • class MultiPageLLMHandler

    Handles LLM processing for multi-page documents with context awareness, automatically selecting optimal analysis strategies based on document size.

    File: /tf/active/vicechatdev/e-ink-llm/multi_page_llm_handler.py | Lines: 25-356

    llm multi-page document-analysis context-aware async
  • class MultiPageAnalysisResult

    A dataclass that encapsulates the complete results of analyzing a multi-page document, including individual page analyses, document summary, combined response, and processing statistics.

    File: /tf/active/vicechatdev/e-ink-llm/multi_page_llm_handler.py | Lines: 18-23

    dataclass document-analysis multi-page result-container pdf-processing
  • class PDFGenerator

    A class that generates PDF documents optimized for e-ink displays, converting LLM responses and images into formatted, high-contrast PDFs with custom styling.

    File: /tf/active/vicechatdev/e-ink-llm/pdf_generator.py | Lines: 69-430

    pdf-generation e-ink document-formatting reportlab image-processing
  • class PDFGenerator_v1

    PDF document generation for reports and controlled documents This class provides methods to generate PDF documents from scratch, including audit reports, document covers, and certificate pages.

    File: /tf/active/vicechatdev/CDocs/utils/pdf_utils.py | Lines: 613-1156

    class pdfgenerator
  • class SessionDocTemplate

    A custom ReportLab document template that extends BaseDocTemplate to add session information (conversation ID and exchange number) in the footer of each page.

    File: /tf/active/vicechatdev/e-ink-llm/pdf_generator.py | Lines: 18-67

    pdf-generation reportlab document-template footer session-tracking
  • class RemarkableFileWatcher

    A unified file watcher class that monitors a reMarkable Cloud folder for new files, supporting both REST API and rmcl client implementations with automatic client type detection.

    File: /tf/active/vicechatdev/e-ink-llm/remarkable_cloud.py | Lines: 461-592

    file-watcher remarkable cloud-sync polling async
  • class RemarkableCloudManager

    Unified manager for reMarkable Cloud operations that uses REST API as primary method with rmcl library as fallback, handling authentication, file operations, and folder management.

    File: /tf/active/vicechatdev/e-ink-llm/remarkable_cloud.py | Lines: 69-458

    remarkable cloud-storage e-ink document-management async
  • class TextRewriter

    AI-powered text rewriting engine that processes documents based on detected annotations (strikethrough, highlight, markup) and generates improved versions using structured LLM prompts.

    File: /tf/active/vicechatdev/e-ink-llm/text_rewriter.py | Lines: 12-283

    text-rewriting document-processing annotation-analysis llm ai-editing
  • 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 | Lines: 22-437

    formatting text-processing e-ink display-optimization compact-notation