file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
pkg/util/tui/update.go
Go
package tui import ( "time" "github.com/charmbracelet/bubbles/key" "github.com/charmbracelet/bubbles/spinner" "github.com/charmbracelet/bubbles/viewport" tea "github.com/charmbracelet/bubbletea" ) // Update handles messages and updates the model func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { var ( ...
yaacov/kubectl-mtv
11
A kubectl plugin that helps users of Forklift migrate virtualization workloads from oVirt, VMware, OpenStack, and OVA files to KubeVirt on Kubernetes.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/util/tui/view.go
Go
package tui import ( "fmt" "strings" "time" "github.com/charmbracelet/lipgloss" ) // Styles for the TUI var ( // Status bar styles statusBarStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("230")). Background(lipgloss.Color("63")). Padding(0, 1) statusBarErrorStyle = lipgloss.NewStyle(). F...
yaacov/kubectl-mtv
11
A kubectl plugin that helps users of Forklift migrate virtualization workloads from oVirt, VMware, OpenStack, and OVA files to KubeVirt on Kubernetes.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/util/watch/helper.go
Go
package watch import ( "fmt" "time" ) // WrapWithWatch wraps a list function with optional watch mode // If watchMode is true, it validates output format and enables watching // Otherwise, it just calls the list function once func WrapWithWatch(watchMode bool, outputFormat string, listFunc RenderFunc, interval time...
yaacov/kubectl-mtv
11
A kubectl plugin that helps users of Forklift migrate virtualization workloads from oVirt, VMware, OpenStack, and OVA files to KubeVirt on Kubernetes.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/util/watch/watch.go
Go
package watch import ( "fmt" "io" "os" "strings" "time" "github.com/yaacov/kubectl-mtv/pkg/util/tui" ) // DefaultInterval is the default watch interval for all watch operations const DefaultInterval = 5 * time.Second // RenderFunc is a function that renders output and returns an error if any type RenderFunc f...
yaacov/kubectl-mtv
11
A kubectl plugin that helps users of Forklift migrate virtualization workloads from oVirt, VMware, OpenStack, and OVA files to KubeVirt on Kubernetes.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/version/version.go
Go
// Package version provides version information for kubectl-mtv package version // ClientVersion is the version of kubectl-mtv client, set via ldflags during build var ClientVersion = "unknown"
yaacov/kubectl-mtv
11
A kubectl plugin that helps users of Forklift migrate virtualization workloads from oVirt, VMware, OpenStack, and OVA files to KubeVirt on Kubernetes.
Go
yaacov
Yaacov Zamir
Red Hat
scripts/dump-mcp-tools.py
Python
#!/usr/bin/env python3 """ Dump the tools/list MCP response verbatim from a running MCP server. Supports: - Stdio mode: spawn the server as subprocess, communicate via stdin/stdout - SSE mode: connect to an already-running HTTP SSE server Usage: # Stdio - spawn kubectl-mtv MCP server ./dump-mcp-tools.py --std...
yaacov/kubectl-mtv
11
A kubectl plugin that helps users of Forklift migrate virtualization workloads from oVirt, VMware, OpenStack, and OVA files to KubeVirt on Kubernetes.
Go
yaacov
Yaacov Zamir
Red Hat
scripts/verify-defaults.sh
Shell
#!/bin/bash # verify-defaults.sh # Compares kubectl-mtv settings defaults against forklift operator defaults # # Usage: # ./scripts/verify-defaults.sh [FORKLIFT_PATH] # # Environment: # FORKLIFT_PATH - Path to forklift repository (default: ../../kubev2v/forklift) set -e # Colors for output RED='\033[0;31m' GREEN=...
yaacov/kubectl-mtv
11
A kubectl plugin that helps users of Forklift migrate virtualization workloads from oVirt, VMware, OpenStack, and OVA files to KubeVirt on Kubernetes.
Go
yaacov
Yaacov Zamir
Red Hat
cmd/kubectl-mtv-mcp/cli.go
Go
package cmd import ( "context" "flag" "fmt" "log" "net/http" "os" "strings" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/yaacov/kubectl-mtv-mcp/pkg/mtvmcp" ) // Version is set via linker flags during build var Version = "dev" func Execute() error { version := flag.Bool("version", false, "Print...
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
cmd/kubectl-mtv-mcp/server.go
Go
package cmd import ( "context" "fmt" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/yaacov/kubectl-mtv-mcp/pkg/mtvmcp/discovery" "github.com/yaacov/kubectl-mtv-mcp/pkg/mtvmcp/tools" ) // CreateServer creates the MCP server with dynamically discovered tools. // Discovery happens at startup using kubect...
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
main.go
Go
package main import ( "log" cmd "github.com/yaacov/kubectl-mtv-mcp/cmd/kubectl-mtv-mcp" ) func main() { if err := cmd.Execute(); err != nil { log.Fatal(err) } }
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/mtvmcp/common.go
Go
package mtvmcp import ( "bytes" "context" "encoding/json" "fmt" "os/exec" "time" shellquote "github.com/kballard/go-shellquote" ) // contextKey is a custom type for context keys to avoid collisions type contextKey string const ( // kubeconfigTokenKey is the context key for Kubernetes token kubeconfigTokenK...
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/mtvmcp/discovery/registry.go
Go
package discovery import ( "context" "encoding/json" "fmt" "os/exec" "sort" "strings" "time" ) // Registry holds discovered kubectl-mtv commands organized by read/write access. type Registry struct { // ReadOnly contains commands that don't modify cluster state ReadOnly map[string]*Command // ReadWrite con...
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/mtvmcp/discovery/registry_test.go
Go
package discovery import ( "testing" ) func TestCommand_PathKey(t *testing.T) { tests := []struct { name string cmd Command expected string }{ { name: "single level path", cmd: Command{ Path: []string{"get"}, }, expected: "get", }, { name: "two level path", cmd: Command{ ...
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/mtvmcp/discovery/types.go
Go
// Package discovery provides dynamic command discovery from kubectl-mtv help output. package discovery import "strings" // HelpSchema matches kubectl-mtv help --machine output type HelpSchema struct { Version string `json:"version"` CLIVersion string `json:"cli_version"` Name string `json:"na...
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/mtvmcp/tools/kubectl.go
Go
package tools import ( "context" "fmt" "strconv" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/yaacov/kubectl-mtv-mcp/pkg/mtvmcp" ) // KubectlDebugInput represents the input for the kubectl_debug tool. type KubectlDebugInput struct { // Action is the kubectl action to perform: "logs" or "get" Actio...
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/mtvmcp/tools/mtv_read.go
Go
package tools import ( "context" "fmt" "strings" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/yaacov/kubectl-mtv-mcp/pkg/mtvmcp" "github.com/yaacov/kubectl-mtv-mcp/pkg/mtvmcp/discovery" ) // MTVReadInput represents the input for the mtv_read tool. type MTVReadInput struct { // Command is the kubec...
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
pkg/mtvmcp/tools/mtv_write.go
Go
package tools import ( "context" "fmt" "strings" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/yaacov/kubectl-mtv-mcp/pkg/mtvmcp" "github.com/yaacov/kubectl-mtv-mcp/pkg/mtvmcp/discovery" ) // MTVWriteInput represents the input for the mtv_write tool. type MTVWriteInput struct { // Command is the ku...
yaacov/kubectl-mtv-mcp
1
Model Context Protocol (MCP) servers that provide AI assistants with tools to interact with Migration Toolkit for Virtualization (MTV) through kubectl-mtv commands.
Go
yaacov
Yaacov Zamir
Red Hat
main.py
Python
import argparse from fastapi import FastAPI, HTTPException from fastapi.staticfiles import StaticFiles from fastapi.responses import HTMLResponse from pydantic import BaseModel from typing import Optional, Union, List import uvicorn import torch import os from pathlib import Path import time # Constants # Choose the m...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
src/get_device.py
Python
import torch def get_device(): """ Determine the best available device for PyTorch operations. Returns: str: Device string, one of: - "cuda" if NVIDIA CUDA GPU is available - "xpu" if Intel IPU is available - "hip" if AMD ROCm is available - "mps" i...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
src/load_and_split.py
Python
import requests import os import tempfile from urllib.parse import urlparse import mimetypes import re try: import magic except ImportError: magic = None from langchain_community.document_loaders import ( TextLoader, BSHTMLLoader, PyPDFLoader, UnstructuredWordDocumentLoader, ) from langchain.te...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
src/local_model_client.py
Python
import torch from src.prompt_utils import extract_rag_answer # new import class LocalModelClient: """Client for interacting with local pyTorch models.""" def __init__(self, model, tokenizer=None, model_name=None, device=None): """Initialize the local model client. Args: model: T...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
src/maas_client.py
Python
import requests from src.prompt_utils import extract_rag_answer class MaasClient: """Client for interacting with Model-As-A-Service APIs.""" def __init__(self, api_url=None, api_key=None, model_name=None): """Initialize the MAAS client. Args: api_url (str): The API endpoint URL ...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
src/milvus_setup.py
Python
from pymilvus import MilvusClient def get_milvus_client(uri="./rag_milvus.db"): """Create and return a Milvus client instance. Args: uri (str, optional): URI for the Milvus database connection. Defaults to "./rag_milvus.db". Returns: MilvusClient: A configured Milvus client i...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
src/model_setup.py
Python
from transformers import AutoModelForCausalLM, AutoTokenizer from sentence_transformers import SentenceTransformer from src.maas_client import MaasClient from src.local_model_client import LocalModelClient def get_llm_model( model_path="ibm-granite/granite-3.1-2b-instruct", device=None, llm_api_url=None, ...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
src/prompt_utils.py
Python
PROMPT_TEMPLATE = """ Use the following pieces of information enclosed in [context] tags to provide an answer to the question enclosed in [question] tags. The context is divided into numbered snippets from different documentation sources. If some snippets are not relevant to the question, ignore the irrelev...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
src/query_logging.py
Python
import sqlite3 import json def setup_sqlite_db(db_path): """Set up SQLite database for query logging.""" conn = sqlite3.connect(db_path) cursor = conn.cursor() # Create table for storing queries and responses cursor.execute( """ CREATE TABLE IF NOT EXISTS query_logs ( id INTEG...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
src/vector_store.py
Python
""" Text Embedding and Vector Database Management Module This module provides functionality for converting text to embeddings and managing these embeddings in a Milvus vector database. Functions: emb_text: Convert text to vector embeddings embed_data: Create embeddings for a collection of texts create_mil...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
static/index.html
HTML
<!DOCTYPE html> <html> <head> <title>DocuChat AI</title> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet"> <!-- Add Font Awesome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <!-...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
utils/ask_cli.py
Python
#!/usr/bin/env python3 """ Minimal CLI for an /ask HTTPS API. Usage: python ask_cli.py --url https://api.example.com/ask """ import argparse import json from urllib.request import Request, urlopen from urllib.error import URLError, HTTPError def ask(endpoint: str, text: str) -> str: """Send { "text": <text> }...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
utils/crawler.py
Python
import argparse import re import requests from bs4 import BeautifulSoup from typing import List, Set from urllib.parse import urljoin, urlparse def extract_domain(url: str) -> str: """Extract the domain from a URL.""" return urlparse(url).netloc def is_http_url(url: str) -> bool: """Check if a URL uses ...
yaacov/rag-chat-interface
7
A self-hosted, privacy-focused RAG (Retrieval-Augmented Generation) interface for intelligent document interaction. Turn any document into a knowledge base you can chat with.
Python
yaacov
Yaacov Zamir
Red Hat
bin/__init__.py
Python
"""YMCA command-line tools."""
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/chat_app.py
Python
#!/usr/bin/env python3 """ Interactive Chat Application - Chat with tools, memory, and planning. Features: - Conversational AI with memory - Tool calling - Multi-step planning - Memory integration """ import argparse import logging import sys from pathlib import Path # Add parent directory to path to import ymca pac...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/converter/__init__.py
Python
""" Model Converter Package - Download and convert Hugging Face models to GGUF format. """ from .downloader import ModelDownloader from .llama_cpp import LlamaCppConverter from .cli import parse_args, setup_logging __all__ = ['ModelDownloader', 'LlamaCppConverter', 'parse_args', 'setup_logging']
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/converter/cli.py
Python
""" CLI - Command-line interface for the model converter. """ import argparse import logging # Default model: IBM Granite 4.0 Hybrid Small DEFAULT_MODEL = "ibm-granite/granite-4.0-h-small" def setup_logging(verbose: bool = False): """Setup logging configuration. Args: verbose: Enable verbose (D...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/converter/downloader.py
Python
""" Model Downloader - Download models from Hugging Face Hub. """ import logging from pathlib import Path from typing import Optional from huggingface_hub import snapshot_download logger = logging.getLogger(__name__) class ModelDownloader: """Handle model downloading from Hugging Face.""" def __init__...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/converter/llama_cpp.py
Python
""" Llama.cpp Integration - Convert models to GGUF format using llama.cpp. """ import logging import shutil import subprocess import sys from pathlib import Path from typing import Optional logger = logging.getLogger(__name__) class LlamaCppConverter: """Handle GGUF conversion using llama.cpp.""" def _...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/memory_cli.py
Python
#!/usr/bin/env python3 """ Memory Tool CLI - Command-line interface for memory management. Commands: store - Store text in memory retrieve - Search and retrieve memories clear - Clear all memories stats - Show memory statistics load-docs - Load markdown documents from directory list - Lis...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/model_converter.py
Python
#!/usr/bin/env python3 """ Model Converter - Download and convert Hugging Face models to GGUF format. This is the main entry point for the model converter tool. """ import sys import logging try: from bin.converter import ModelDownloader, LlamaCppConverter, parse_args, setup_logging except ImportError as e: ...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/static/index.html
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>YMCA Chat - AI Assistant</title> <link rel="stylesheet" href="/static/style.css"> <!-- Markdown rendering library --> <script src="https://cdn.jsdelivr.net...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/static/script.js
JavaScript
// API Configuration const API_BASE_URL = window.location.origin; // DOM Elements const chatContainer = document.getElementById('chat-container'); const userInput = document.getElementById('user-input'); const sendBtn = document.getElementById('send-btn'); const clearBtn = document.getElementById('clear-btn'); const s...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/static/style.css
CSS
/* Reset and base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #3b82f6; --primary-hover: #2563eb; --secondary-color: #6b7280; --danger-color: #ef4444; --danger-hover: #dc2626; --success-color: #10b981; --bg-dark: #1f2937; --bg-darke...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
bin/web_app.py
Python
#!/usr/bin/env python3 """ Web Chat Application - API server with static web interface. Provides REST endpoints for chat interactions with tools, memory, and planning. """ import argparse import logging import sys from pathlib import Path from typing import Optional from contextlib import asynccontextmanager from f...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/__init__.py
Python
""" YMCA - Your Memory & Chat Assistant A framework for building conversational AI with memory and tool capabilities. """ __version__ = "0.1.0" # Expose main modules for convenient imports from ymca.core.model_handler import ModelHandler from ymca.tools.memory.tool import MemoryTool from ymca.chat.api import ChatAPI...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/chat/__init__.py
Python
""" Chat components - Advanced conversational AI with tools and planning. """ from .message import Message from .tool import Tool from .history import ConversationHistory from .api import ChatAPI from .tool_parser import parse_xml_tool_calls, has_incomplete_tool_call __all__ = [ 'Message', 'Tool', 'Conve...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/chat/api.py
Python
""" Chat API - Main conversational interface. Advanced chat API with conversation memory, tools, and planning. """ import logging from typing import Dict, List, Callable, Optional from .tool import Tool from .history import ConversationHistory from .chat_engine import ChatEngine from .tool_selector import ToolSelect...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/chat/chat_engine.py
Python
""" Chat Engine - Core chat loop and LLM interaction logic. Handles the iterative tool-calling loop, message preparation, and interaction with the LLM. """ import json import logging from typing import Dict, List, Optional, Callable from .tool_parser import parse_xml_tool_calls, has_incomplete_tool_call logger = l...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/chat/history.py
Python
""" Conversation history management with sliding window. """ from typing import List, Dict, Optional from .message import Message class ConversationHistory: """Manages conversation history with a sliding window.""" def __init__(self, max_messages: int = 20): """ Initialize conversation h...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/chat/message.py
Python
""" Message representation for chat conversations. """ from dataclasses import dataclass, field from datetime import datetime from typing import Optional, List, Dict @dataclass class Message: """A single message in the conversation.""" role: str # 'system', 'user', 'assistant', 'tool' content: Optional[...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/chat/tool.py
Python
""" Tool representation and management for function calling. """ from dataclasses import dataclass from typing import Callable, Dict @dataclass class Tool: """A tool that the chat API can use.""" name: str description: str function: Callable parameters: Dict def to_llm_format(self) -> Di...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/chat/tool_parser.py
Python
""" Tool Call Parser - Parse tool calls from various LLM formats. Supports: - OpenAI format (native from llama-cpp-python) - Granite XML format """ import json import logging import re from typing import List, Dict logger = logging.getLogger(__name__) def parse_xml_tool_calls(content: str) -> List[Dict]: """ ...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/chat/tool_selector.py
Python
"""Tool selector using semantic search to find relevant tools.""" import json import logging from pathlib import Path from typing import List, Dict, Set, TYPE_CHECKING, Optional import numpy as np if TYPE_CHECKING: from .tool import Tool logger = logging.getLogger(__name__) class ToolSelector: """ Sel...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/core/__init__.py
Python
""" Core components - Model handling and LLM interface. """ from .model_handler import ModelHandler from .answer_refiner import AnswerRefiner __all__ = ['ModelHandler', 'AnswerRefiner']
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/core/answer_refiner.py
Python
""" Answer Refiner - Post-process LLM responses for clarity and accuracy. This module provides functionality to refine raw LLM responses by: - Improving clarity and formatting - Prioritizing practical examples - Ensuring answers directly address the original question """ import logging from typing import Optional lo...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/core/model_handler.py
Python
""" Model Handler - Manages LLM for question generation and other tasks. """ from pathlib import Path from typing import List, Optional import logging import gc import time from llama_cpp import Llama from .question_parser import parse_questions_from_text from .answer_refiner import AnswerRefiner logger = logging.ge...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/core/question_parser.py
Python
""" Statement Parser - Utilities for parsing and cleaning LLM-generated semantic summaries. Parses declarative statements from LLM output. """ from typing import List import logging import re logger = logging.getLogger(__name__) def parse_questions_from_text(text: str, expected_count: int = 3) -> List[str]: ""...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/core/ui.py
Python
""" UI utilities for terminal-based interactions. """ import sys import threading import time from rich.console import Console from rich.markdown import Markdown from rich.panel import Panel from rich.text import Text # Global console instance for consistent rendering console = Console() def print_user_input(text: ...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/__init__.py
Python
""" Tools for the main application. """ from .memory.tool import MemoryTool from .mcp.client import MCPClient __all__ = ['MemoryTool', 'MCPClient']
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/mcp/__init__.py
Python
"""MCP (Model Context Protocol) client for tool integration.""" from .client import MCPClient __all__ = ['MCPClient']
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/mcp/client.py
Python
"""MCP client for connecting to MCP servers and using their tools.""" import json import logging import subprocess from typing import Dict, List, Optional, Any from pathlib import Path logger = logging.getLogger(__name__) class MCPClient: """ Client for connecting to MCP (Model Context Protocol) servers. ...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/memory/__init__.py
Python
""" Memory Tool Package - RAG-based memory system with ChromaDB. Main Components: - MemoryTool: Main interface for storing and retrieving memories - ChunkStorage: File-based storage for text chunks (one file per chunk) - VectorStore: ChromaDB-based vector storage for embeddings - TextChunker: Text chunking with overla...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/memory/chunker.py
Python
"""Text chunking utilities with markdown awareness.""" import re from typing import List class TextChunker: """Handles text chunking with overlap and markdown structure awareness.""" def __init__(self, chunk_size: int = 4000, overlap: int = 400): """ Initialize chunker. ...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/memory/embedder.py
Python
"""Embedding generation using sentence transformers.""" import logging from typing import List, Optional from pathlib import Path import numpy as np from sentence_transformers import SentenceTransformer import torch logger = logging.getLogger(__name__) class Embedder: """Handles text embedding generation with G...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/memory/retriever.py
Python
"""Memory retrieval logic.""" import logging import time from typing import List, Dict, Optional import numpy as np from .storage import ChunkStorage from .vector_store import VectorStore from .embedder import Embedder logger = logging.getLogger(__name__) class MemoryRetriever: """Handles memory search and ret...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/memory/storage.py
Python
"""File-based storage for text chunks.""" import json import hashlib import logging from pathlib import Path from typing import Dict, Optional logger = logging.getLogger(__name__) class ChunkStorage: """Stores text chunks as individual files.""" def __init__(self, storage_dir: Path): """ ...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/memory/tool.py
Python
"""Main MemoryTool class.""" import logging import time from pathlib import Path from typing import List, Dict from .chunker import TextChunker from .embedder import Embedder from .storage import ChunkStorage from .vector_store import VectorStore from .retriever import MemoryRetriever logger = logging.getLogger(__na...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
ymca/tools/memory/vector_store.py
Python
"""ChromaDB vector store for embeddings.""" import logging import chromadb from chromadb.config import Settings from pathlib import Path from typing import List, Dict, Tuple import numpy as np logger = logging.getLogger(__name__) class VectorStore: """Manages embeddings using ChromaDB.""" def __init__(...
yaacov/ymca
1
YMCA combines the power of small language models (SML) with the flexibility of MCP servers, all while maintaining a small footprint through quantized models. The framework uses llama.cpp and includes built-in memory capabilities, allowing the agent to maintain context across conversations using semantic search and vect...
Python
yaacov
Yaacov Zamir
Red Hat
index.html
HTML
<!DOCTYPE html> <html lang="en"><head> <script src="index_files/libs/clipboard/clipboard.min.js"></script> <script src="index_files/libs/quarto-html/tabby.min.js"></script> <script src="index_files/libs/quarto-html/popper.min.js"></script> <script src="index_files/libs/quarto-html/tippy.umd.min.js"></script> <link href...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/clipboard/clipboard.min.js
JavaScript
/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n=...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/quarto-html/light-border.css
CSS
.tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,8,16,.15);color:#333;box-shadow:0 4px 14px -2px rgba(0,8,16,.08)}.tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light-border]>.tippy-arrow:after,.tippy-box[da...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/quarto-html/popper.min.js
JavaScript
/** * @popperjs/core v2.11.4 - MIT License */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return w...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/quarto-html/quarto-html.min.css
CSS
/*# sourceMappingURL=0a6b880beb84f9b6f36107a76f82c5b1.css.map */
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/quarto-html/quarto-syntax-highlighting.css
CSS
/* quarto syntax highlight colors */ :root { --quarto-hl-ot-color: #003B4F; --quarto-hl-at-color: #657422; --quarto-hl-ss-color: #20794D; --quarto-hl-an-color: #5E5E5E; --quarto-hl-fu-color: #4758AB; --quarto-hl-st-color: #20794D; --quarto-hl-cf-color: #003B4F; --quarto-hl-op-color: #5E5E5E; --quarto-...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/quarto-html/tabby.min.js
JavaScript
(function (root, factory) { if (typeof define === "function" && define.amd) { define([], function () { return factory(root); }); } else if (typeof exports === "object") { module.exports = factory(root); } else { root.Tabby = factory(root); } })( typeof global !== "undefined" ? global...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/quarto-html/tippy.css
CSS
.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placeme...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/quarto-html/tippy.umd.min.js
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e=e||self).tippy=t(e.Popper)}(this,(function(e){"use strict";var t={passive:!0,capture:!0},n=function(){return document.body};function r(e,t...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/highlight/highlight.esm.js
JavaScript
function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/highlight/highlight.js
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealHighlight=t()}(this,(function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterat...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/highlight/monokai.css
CSS
/* Monokai style - ported by Luigi Maselli - http://grigio.org */ .hljs { display: block; overflow-x: auto; padding: 0.5em; background: #272822; color: #ddd; } .hljs-tag, .hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-strong, .hljs-name { color: #f92672; } .hljs-code { color: #66d9ef; } .hljs...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/highlight/plugin.js
JavaScript
import hljs from 'highlight.js'; /* highlightjs-line-numbers.js 2.8.0 | (C) 2018 Yauheni Pakala | MIT License | github.com/wcoder/highlightjs-line-numbers.js */ !function(r,o){"use strict";var e,i="hljs-ln",l="hljs-ln-line",h="hljs-ln-code",s="hljs-ln-numbers",c="hljs-ln-n",m="data-line-number",a=/\r\n|\r|\n/g;functio...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/highlight/zenburn.css
CSS
/* Zenburn style from voldmar.ru (c) Vladimir Epifanov <voldmar@voldmar.ru> based on dark.css by Ivan Sagalaev */ .hljs { display: block; overflow-x: auto; padding: 0.5em; background: #3f3f3f; color: #dcdcdc; } .hljs-keyword, .hljs-selector-tag, .hljs-tag { color: #e3ceab; } .hljs-template-tag { colo...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/markdown/markdown.esm.js
JavaScript
function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}func...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/markdown/markdown.js
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealMarkdown=t()}(this,(function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Objec...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/markdown/plugin.js
JavaScript
/*! * The reveal.js markdown plugin. Handles parsing of * markdown inside of presentations as well as loading * of external markdown documents. */ import { marked } from 'marked'; const DEFAULT_SLIDE_SEPARATOR = '\r?\n---\r?\n', DEFAULT_NOTES_SEPARATOR = 'notes?:', DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/math/katex.js
JavaScript
/** * A plugin which enables rendering of math equations inside * of reveal.js slides. Essentially a thin wrapper for KaTeX. * * @author Hakim El Hattab * @author Gerhard Burger */ export const KaTeX = () => { let deck; let defaultOptions = { version: 'latest', delimiters: [ {left: '$$', right: '$$', di...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/math/math.esm.js
JavaScript
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==type...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/math/math.js
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RevealMath=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"un...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/math/mathjax2.js
JavaScript
/** * A plugin which enables rendering of math equations inside * of reveal.js slides. Essentially a thin wrapper for MathJax. * * @author Hakim El Hattab */ export const MathJax2 = () => { // The reveal.js instance this plugin is attached to let deck; let defaultOptions = { messageStyle: 'none', tex2jax:...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/math/mathjax3.js
JavaScript
/** * A plugin which enables rendering of math equations inside * of reveal.js slides. Essentially a thin wrapper for MathJax 3 * * @author Hakim El Hattab * @author Gerhard Burger */ export const MathJax3 = () => { // The reveal.js instance this plugin is attached to let deck; let defaultOptions = ...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/math/plugin.js
JavaScript
import {KaTeX} from "./katex"; import {MathJax2} from "./mathjax2"; import {MathJax3} from "./mathjax3"; const defaultTypesetter = MathJax2; /*! * This plugin is a wrapper for the MathJax2, * MathJax3 and KaTeX typesetter plugins. */ export default Plugin = Object.assign( defaultTypesetter(), { KaTeX, MathJax2, ...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/notes/notes.esm.js
JavaScript
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==type...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/notes/notes.js
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RevealNotes=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"u...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/notes/plugin.js
JavaScript
import speakerViewHTML from './speaker-view.html'; import { marked } from 'marked'; /** * Handles opening of and synchronization with the reveal.js * notes window. * * Handshake process: * 1. This window posts 'connect' to notes window * - Includes URL of presentation to show * 2. Notes window responds with...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/notes/speaker-view.html
HTML
<!-- NOTE: You need to build the notes plugin after making changes to this file. --> <html lang="en"> <head> <meta charset="utf-8"> <title>reveal.js - Speaker View</title> <style> body { font-family: Helvetica; font-size: 18px; } #current-slide, #upcoming-slide, #speaker-controls { ...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/pdf-export/pdfexport.js
JavaScript
var PdfExport = ( function( _Reveal ){ var Reveal = _Reveal; var setStylesheet = null; var installAltKeyBindings = null; function getRevealJsPath(){ var regex = /\b[^/]+\/reveal.css$/i; var script = Array.from( document.querySelectorAll( 'link' ) ).find( function( e ){ return e.attributes.href && e.attribu...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.css
CSS
.reveal div.sourceCode pre code.has-line-highlights > span:not(.highlight-line) { opacity: 0.4; } .reveal pre.numberSource { padding-left: 0; } .reveal pre.numberSource code > span { left: -2.1em; } pre.numberSource code > span > a:first-child::before { left: -0.7em; } .reveal pre > code:not(:first-...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.js
JavaScript
window.QuartoLineHighlight = function () { function isPrintView() { return /print-pdf/gi.test(window.location.search); } const delimiters = { step: "|", line: ",", lineRange: "-", }; const regex = new RegExp( "^[\\d" + Object.values(delimiters).join("") + "]+$" ); function handleLin...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/quarto-support/footer.css
CSS
.reveal .slide-logo { display: block; position: fixed; bottom: 0; right: 12px; max-height: 2.2rem; height: 100%; width: auto; z-index: 2; } .reveal .footer { display: block; position: fixed; bottom: 18px; width: 100%; margin: 0 auto; text-align: center; font-size: 18px; z-index: 2; } ....
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/quarto-support/support.js
JavaScript
// catch all plugin for various quarto features window.QuartoSupport = function () { function isPrintView() { return /print-pdf/gi.test(window.location.search); } // implement controlsAudo function controlsAuto(deck) { const config = deck.getConfig(); if (config.controlsAuto === true) { const...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/all.css
CSS
/*! * Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ .fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-var...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/brands.css
CSS
/*! * Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ @font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;src:url(../webfonts/fa-brands-400.eot);src:url(../webfon...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci