sample_id stringlengths 21 196 | text stringlengths 105 936k | metadata dict | category stringclasses 6
values |
|---|---|---|---|
ArchiveBox/ArchiveBox:archivebox/ldap/auth.py | """
LDAP authentication backend for ArchiveBox.
This module extends django-auth-ldap to support the LDAP_CREATE_SUPERUSER flag.
"""
__package__ = "archivebox.ldap"
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from django.contrib.auth.models import User
from django_auth_ldap.backend import LDAPBackend ... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/ldap/auth.py",
"license": "MIT License",
"lines": 37,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ArchiveBox/ArchiveBox:archivebox/tests/test_auth_ldap.py | """
LDAP authentication tests for ArchiveBox.
Tests LDAP configuration, validation, and integration with Django.
Per CLAUDE.md: NO MOCKS, NO SKIPS - all tests use real code paths.
"""
import os
import sys
import tempfile
import unittest
from pathlib import Path
class TestLDAPConfig(unittest.TestCase):
"""Test L... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_auth_ldap.py",
"license": "MIT License",
"lines": 170,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_cli_run_binary_worker.py | """
Tests for BinaryWorker processing Binary queue.
Tests cover:
- BinaryWorker is spawned by Orchestrator when Binary queue has work
- Binary hooks (on_Binary__*) actually run and install binaries
- Binary status transitions from QUEUED -> INSTALLED
- BinaryWorker exits after idle timeout
"""
import json
import sqli... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_cli_run_binary_worker.py",
"license": "MIT License",
"lines": 206,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_worker_config_propagation.py | """
Integration test for config propagation through worker hierarchy.
Tests that config is properly merged and passed through:
Parent CLI/Orchestrator
βββ CrawlWorker subprocess (via Process.env)
βββ SnapshotWorker subprocess (via Process.env)
βββ Hook subprocess (via Process.env)
Config p... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_worker_config_propagation.py",
"license": "MIT License",
"lines": 895,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/misc/progress_layout.py | """
Rich Layout-based live progress display for ArchiveBox orchestrator.
Shows a comprehensive dashboard with:
- Top: Crawl queue status (full width)
- Middle: Crawl queue tree with hook outputs
- Bottom: Running process logs (dynamic panels)
"""
__package__ = 'archivebox.misc'
from datetime import datetime, timezon... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/misc/progress_layout.py",
"license": "MIT License",
"lines": 765,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/plugins/chrome/tests/test_chrome_test_helpers.py | """
Tests for chrome_test_helpers.py functions.
These tests verify the Python helper functions used across Chrome plugin tests.
"""
import os
import pytest
import tempfile
from pathlib import Path
from archivebox.plugins.chrome.tests.chrome_test_helpers import (
get_test_env,
get_machine_type,
get_lib_di... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/chrome/tests/test_chrome_test_helpers.py",
"license": "MIT License",
"lines": 205,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/accessibility/tests/test_accessibility.py | """
Tests for the accessibility plugin.
Tests the real accessibility hook with an actual URL to verify
accessibility tree and page outline extraction.
"""
import json
import shutil
import subprocess
import sys
import tempfile
from pathlib import Path
import pytest
from django.test import TestCase
# Import chrome te... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/accessibility/tests/test_accessibility.py",
"license": "MIT License",
"lines": 154,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/consolelog/tests/test_consolelog.py | """
Tests for the consolelog plugin.
Tests the real consolelog hook with an actual URL to verify
console output capture.
"""
import json
import shutil
import subprocess
import sys
import tempfile
import time
from pathlib import Path
from django.test import TestCase
# Import chrome test helpers
sys.path.insert(0, st... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/consolelog/tests/test_consolelog.py",
"license": "MIT License",
"lines": 104,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/custom/tests/test_custom_provider.py | """
Tests for the custom binary provider plugin.
Tests the custom bash binary installer with safe commands.
"""
import json
import os
import subprocess
import sys
import tempfile
from pathlib import Path
import pytest
from django.test import TestCase
# Get the path to the custom provider hook
PLUGIN_DIR = Path(__f... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/custom/tests/test_custom_provider.py",
"license": "MIT License",
"lines": 123,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/env/tests/test_env_provider.py | """
Tests for the env binary provider plugin.
Tests the real env provider hook with actual system binaries.
"""
import json
import os
import subprocess
import sys
import tempfile
from pathlib import Path
import pytest
from django.test import TestCase
# Get the path to the env provider hook
PLUGIN_DIR = Path(__file... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/env/tests/test_env_provider.py",
"license": "MIT License",
"lines": 131,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/parse_dom_outlinks/tests/test_parse_dom_outlinks.py | """
Tests for the parse_dom_outlinks plugin.
Tests the real DOM outlinks hook with an actual URL to verify
link extraction and categorization.
"""
import json
import shutil
import subprocess
import sys
import tempfile
from pathlib import Path
import pytest
from django.test import TestCase
# Import chrome test helpe... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/parse_dom_outlinks/tests/test_parse_dom_outlinks.py",
"license": "MIT License",
"lines": 91,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/responses/tests/test_responses.py | """
Tests for the responses plugin.
Tests the real responses hook with an actual URL to verify
network response capture.
"""
import json
import shutil
import subprocess
import sys
import tempfile
import time
from pathlib import Path
from django.test import TestCase
# Import chrome test helpers
sys.path.insert(0, st... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/responses/tests/test_responses.py",
"license": "MIT License",
"lines": 104,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/staticfile/tests/test_staticfile.py | """
Tests for the staticfile plugin.
Tests the real staticfile hook with actual URLs to verify
static file detection and download.
"""
import json
import shutil
import subprocess
import sys
import tempfile
import time
from pathlib import Path
import pytest
from django.test import TestCase
# Import chrome test helpe... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/staticfile/tests/test_staticfile.py",
"license": "MIT License",
"lines": 98,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_persona.py | #!/usr/bin/env python3
"""
archivebox persona <action> [args...] [--filters]
Manage Persona records (browser profiles for archiving).
Actions:
create - Create Personas
list - List Personas as JSONL (with optional filters)
update - Update Personas from stdin JSONL
delete - Delete Personas from s... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_persona.py",
"license": "MIT License",
"lines": 539,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/machine/tests/test_machine_models.py | """
Unit tests for machine module models: Machine, NetworkInterface, Binary, Process.
Tests cover:
1. Machine model creation and current() method
2. NetworkInterface model and network detection
3. Binary model lifecycle and state machine
4. Process model lifecycle, hierarchy, and state machine
5. JSONL serialization/d... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/machine/tests/test_machine_models.py",
"license": "MIT License",
"lines": 466,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/apt/tests/test_apt_provider.py | """
Tests for the apt binary provider plugin.
Tests cover:
1. Hook script execution
2. apt package availability detection
3. JSONL output format
"""
import json
import os
import shutil
import subprocess
import sys
import tempfile
from pathlib import Path
import pytest
from django.test import TestCase
# Get the pat... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/apt/tests/test_apt_provider.py",
"license": "MIT License",
"lines": 126,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/npm/tests/test_npm_provider.py | """
Tests for the npm binary provider plugin.
Tests cover:
1. Hook script execution
2. npm package installation
3. PATH and NODE_MODULES_DIR updates
4. JSONL output format
"""
import json
import os
import shutil
import subprocess
import sys
import tempfile
from pathlib import Path
import pytest
from django.test impo... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/npm/tests/test_npm_provider.py",
"license": "MIT License",
"lines": 117,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/pip/tests/test_pip_provider.py | """
Tests for the pip binary provider plugin.
Tests cover:
1. Hook script execution
2. pip package detection
3. Virtual environment handling
4. JSONL output format
"""
import json
import os
import subprocess
import sys
import tempfile
from pathlib import Path
from unittest.mock import patch, MagicMock
import pytest
... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/pip/tests/test_pip_provider.py",
"license": "MIT License",
"lines": 162,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/redirects/tests/test_redirects.py | """
Tests for the redirects plugin.
Tests the real redirects hook with actual URLs to verify
redirect chain capture.
"""
import json
import shutil
import subprocess
import sys
import tempfile
import time
from pathlib import Path
import pytest
from django.test import TestCase
# Import chrome test helpers
sys.path.in... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/redirects/tests/test_redirects.py",
"license": "MIT License",
"lines": 121,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/search_backend_ripgrep/tests/test_ripgrep_search.py | """
Tests for the ripgrep search backend.
Tests cover:
1. Search with ripgrep binary
2. Snapshot ID extraction from file paths
3. Timeout handling
4. Error handling
5. Environment variable configuration
"""
import os
import shutil
import subprocess
import tempfile
from pathlib import Path
from unittest.mock import pa... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/search_backend_ripgrep/tests/test_ripgrep_search.py",
"license": "MIT License",
"lines": 243,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/search_backend_sqlite/tests/test_sqlite_search.py | """
Tests for the SQLite FTS5 search backend.
Tests cover:
1. Search index creation
2. Indexing snapshots
3. Search queries with real test data
4. Flush operations
5. Edge cases (empty index, special characters)
"""
import os
import sqlite3
import tempfile
from pathlib import Path
from unittest.mock import patch
imp... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/search_backend_sqlite/tests/test_sqlite_search.py",
"license": "MIT License",
"lines": 288,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/seo/tests/test_seo.py | """
Tests for the SEO plugin.
Tests the real SEO hook with an actual URL to verify
meta tag extraction.
"""
import json
import subprocess
import sys
import tempfile
import shutil
from pathlib import Path
from django.test import TestCase
# Import chrome test helpers
sys.path.insert(0, str(Path(__file__).parent.paren... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/seo/tests/test_seo.py",
"license": "MIT License",
"lines": 103,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/ssl/tests/test_ssl.py | """
Tests for the SSL plugin.
Tests the real SSL hook with an actual HTTPS URL to verify
certificate information extraction.
"""
import json
import shutil
import subprocess
import sys
import tempfile
import time
from pathlib import Path
from django.test import TestCase
# Import chrome test helpers
sys.path.insert(0... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/ssl/tests/test_ssl.py",
"license": "MIT License",
"lines": 120,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/workers/tests/test_orchestrator.py | """
Unit tests for the Orchestrator and Worker classes.
Tests cover:
1. Orchestrator lifecycle (startup, shutdown)
2. Queue polling and worker spawning
3. Idle detection and exit logic
4. Worker registration and management
5. Process model methods (replacing old pid_utils)
"""
import os
import tempfile
import time
fr... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/workers/tests/test_orchestrator.py",
"license": "MIT License",
"lines": 377,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_admin_views.py | """
Tests for admin snapshot views and search functionality.
Tests cover:
- Admin snapshot list view
- Admin grid view
- Search functionality (both admin and public)
- Snapshot progress statistics
"""
import pytest
from django.test import TestCase, Client, override_settings
from django.urls import reverse
from django... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_admin_views.py",
"license": "MIT License",
"lines": 203,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_archiveresult.py | #!/usr/bin/env python3
"""
archivebox archiveresult <action> [args...] [--filters]
Manage ArchiveResult records (plugin extraction results).
Actions:
create - Create ArchiveResults for Snapshots (queue extractions)
list - List ArchiveResults as JSONL (with optional filters)
update - Update ArchiveRe... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_archiveresult.py",
"license": "MIT License",
"lines": 297,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_binary.py | #!/usr/bin/env python3
"""
archivebox binary <action> [args...] [--filters]
Manage Binary records (detected executables like chrome, wget, etc.).
Actions:
create - Create/register a Binary
list - List Binaries as JSONL (with optional filters)
update - Update Binaries from stdin JSONL
delete - D... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_binary.py",
"license": "MIT License",
"lines": 219,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_machine.py | #!/usr/bin/env python3
"""
archivebox machine <action> [--filters]
Manage Machine records (system-managed, mostly read-only).
Machine records track the host machines where ArchiveBox runs.
They are created automatically by the system and are primarily for debugging.
Actions:
list - List Machines as JSONL (wi... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_machine.py",
"license": "MIT License",
"lines": 73,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_process.py | #!/usr/bin/env python3
"""
archivebox process <action> [--filters]
Manage Process records (system-managed, mostly read-only).
Process records track executions of binaries during extraction.
They are created automatically by the system and are primarily for debugging.
Actions:
list - List Processes as JSONL (... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_process.py",
"license": "MIT License",
"lines": 79,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_run.py | #!/usr/bin/env python3
"""
archivebox run [--daemon] [--crawl-id=...] [--snapshot-id=...]
Unified command for processing queued work.
Modes:
- With stdin JSONL: Process piped records, exit when complete
- Without stdin (TTY): Run orchestrator in foreground until killed
- --crawl-id: Run orchestrator for ... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_run.py",
"license": "MIT License",
"lines": 261,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_tag.py | #!/usr/bin/env python3
"""
archivebox tag <action> [args...] [--filters]
Manage Tag records.
Actions:
create - Create Tags
list - List Tags as JSONL (with optional filters)
update - Update Tags from stdin JSONL
delete - Delete Tags from stdin JSONL
Examples:
# Create
archivebox tag cre... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_tag.py",
"license": "MIT License",
"lines": 219,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/cli/cli_utils.py | """
Shared CLI utilities for ArchiveBox commands.
This module contains common utilities used across multiple CLI commands,
extracted to avoid code duplication.
"""
__package__ = 'archivebox.cli'
from typing import Optional
def apply_filters(queryset, filter_kwargs: dict, limit: Optional[int] = None):
"""
A... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/cli_utils.py",
"license": "MIT License",
"lines": 35,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
ArchiveBox/ArchiveBox:archivebox/plugins/chrome/tests/chrome_test_helpers.py | """
Shared Chrome test helpers for plugin integration tests.
This module provides common utilities for Chrome-based plugin tests, reducing
duplication across test files. Functions delegate to chrome_utils.js (the single
source of truth) with Python fallbacks.
Function names match the JS equivalents in snake_case:
... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/chrome/tests/chrome_test_helpers.py",
"license": "MIT License",
"lines": 813,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/twocaptcha/tests/test_twocaptcha.py | """
Integration tests for twocaptcha plugin
Run with: TWOCAPTCHA_API_KEY=your_key pytest archivebox/plugins/twocaptcha/tests/ -xvs
NOTE: Chrome 137+ removed --load-extension support, so these tests MUST use Chromium.
"""
import json
import os
import signal
import subprocess
import tempfile
import time
from pathlib i... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/twocaptcha/tests/test_twocaptcha.py",
"license": "MIT License",
"lines": 276,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_cli_archiveresult.py | """
Tests for archivebox archiveresult CLI command.
Tests cover:
- archiveresult create (from Snapshot JSONL, with --plugin, pass-through)
- archiveresult list (with filters)
- archiveresult update
- archiveresult delete
"""
import json
import pytest
from archivebox.tests.conftest import (
run_archivebox_cmd,
... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_cli_archiveresult.py",
"license": "MIT License",
"lines": 211,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_cli_crawl.py | """
Tests for archivebox crawl CLI command.
Tests cover:
- crawl create (with URLs, from stdin, pass-through)
- crawl list (with filters)
- crawl update
- crawl delete
"""
import json
import pytest
from archivebox.tests.conftest import (
run_archivebox_cmd,
parse_jsonl_output,
assert_jsonl_contains_type,... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_cli_crawl.py",
"license": "MIT License",
"lines": 205,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_cli_run.py | """
Tests for archivebox run CLI command.
Tests cover:
- run with stdin JSONL (Crawl, Snapshot, ArchiveResult)
- create-or-update behavior (records with/without id)
- pass-through output (for chaining)
"""
import json
import pytest
from archivebox.tests.conftest import (
run_archivebox_cmd,
parse_jsonl_outpu... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_cli_run.py",
"license": "MIT License",
"lines": 198,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_cli_snapshot.py | """
Tests for archivebox snapshot CLI command.
Tests cover:
- snapshot create (from URLs, from Crawl JSONL, pass-through)
- snapshot list (with filters)
- snapshot update
- snapshot delete
"""
import json
import pytest
from archivebox.tests.conftest import (
run_archivebox_cmd,
parse_jsonl_output,
assert... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_cli_snapshot.py",
"license": "MIT License",
"lines": 212,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/forumdl/forum-dl-wrapper.py | #!/usr/bin/env python3
"""
Wrapper for forum-dl that applies Pydantic v2 compatibility patches.
This wrapper fixes forum-dl 0.3.0's incompatibility with Pydantic v2 by monkey-patching
the JsonlWriter class to use model_dump_json() instead of the deprecated json(models_as_dict=False).
"""
import sys
# Apply Pydantic ... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/forumdl/forum-dl-wrapper.py",
"license": "MIT License",
"lines": 24,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ArchiveBox/ArchiveBox:archivebox/plugins/modalcloser/tests/test_modalcloser.py | """
Integration tests for modalcloser plugin
Tests verify:
1. Hook script exists
2. Dependencies installed via chrome validation hooks
3. Verify deps with abx-pkg
4. MODALCLOSER_ENABLED=False skips without JSONL
5. Fails gracefully when no chrome session exists
6. Background script runs and handles SIGTERM correctly
7... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/modalcloser/tests/test_modalcloser.py",
"license": "MIT License",
"lines": 367,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/infiniscroll/tests/test_infiniscroll.py | """
Integration tests for infiniscroll plugin
Tests verify:
1. Hook script exists
2. Dependencies installed via chrome validation hooks
3. Verify deps with abx-pkg
4. INFINISCROLL_ENABLED=False skips without JSONL
5. Fails gracefully when no chrome session exists
6. Full integration test: scrolls page and outputs stat... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/infiniscroll/tests/test_infiniscroll.py",
"license": "MIT License",
"lines": 196,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/core/templatetags/config_tags.py | """Template tags for accessing config values in templates."""
from django import template
from archivebox.config.configset import get_config as _get_config
register = template.Library()
@register.simple_tag
def get_config(key: str) -> any:
"""
Get a config value by key.
Usage: {% get_config "ARCHIVEDO... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/core/templatetags/config_tags.py",
"license": "MIT License",
"lines": 14,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ArchiveBox/ArchiveBox:archivebox/plugins/chrome/tests/test_chrome.py | """
Integration tests for chrome plugin
Tests verify:
1. Chromium install via @puppeteer/browsers
2. Verify deps with abx-pkg
3. Chrome hooks exist
4. Chromium launches at crawl level
5. Tab creation at snapshot level
6. Tab navigation works
7. Tab cleanup on SIGTERM
8. Chromium cleanup on crawl end
NOTE: We use Chro... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/chrome/tests/test_chrome.py",
"license": "MIT License",
"lines": 602,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_hooks.py | #!/usr/bin/env python3
"""
Unit tests for the ArchiveBox hook architecture.
Tests hook discovery, execution, JSONL parsing, background hook detection,
binary lookup, and install hook XYZ_BINARY env var handling.
Run with:
sudo -u testuser bash -c 'source .venv/bin/activate && python -m pytest archivebox/tests/tes... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_hooks.py",
"license": "MIT License",
"lines": 389,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_migrations_04_to_09.py | #!/usr/bin/env python3
"""
Migration tests from 0.4.x to 0.9.x.
0.4.x was the first Django-powered version with a simpler schema:
- No Tag model (tags stored as comma-separated string in Snapshot)
- No ArchiveResult model (results stored in JSON files)
"""
import shutil
import sqlite3
import tempfile
import unittest
... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_migrations_04_to_09.py",
"license": "MIT License",
"lines": 139,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_migrations_07_to_09.py | #!/usr/bin/env python3
"""
Migration tests from 0.7.x to 0.9.x.
0.7.x schema includes:
- Tag model with ManyToMany to Snapshot
- ArchiveResult model with ForeignKey to Snapshot
- AutoField primary keys
"""
import shutil
import sqlite3
import tempfile
import unittest
from pathlib import Path
from .test_migrations_hel... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_migrations_07_to_09.py",
"license": "MIT License",
"lines": 288,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_migrations_08_to_09.py | #!/usr/bin/env python3
"""
Migration tests from 0.8.x to 0.9.x.
0.8.x introduced:
- Crawl model for grouping URLs
- Seed model (removed in 0.9.x)
- UUID primary keys for Snapshot
- Status fields for state machine
- New fields like depth, retry_at, etc.
"""
import json
import shutil
import sqlite3
import subprocess
im... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_migrations_08_to_09.py",
"license": "MIT License",
"lines": 563,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_migrations_fresh.py | #!/usr/bin/env python3
"""
Fresh install tests for ArchiveBox.
Tests that fresh installations work correctly with the current schema.
"""
import shutil
import sqlite3
import tempfile
import unittest
from pathlib import Path
from .test_migrations_helpers import run_archivebox
class TestFreshInstall(unittest.TestCas... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_migrations_fresh.py",
"license": "MIT License",
"lines": 215,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/tests/test_migrations_helpers.py | #!/usr/bin/env python3
"""
Helper functions and schema definitions for migration tests.
This module provides:
- Schema definitions for each major ArchiveBox version (0.4.x, 0.7.x, 0.8.x)
- Data seeding functions to populate test databases
- Helper functions to run archivebox commands and verify results
"""
import os
... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/tests/test_migrations_helpers.py",
"license": "MIT License",
"lines": 1047,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/uuid_compat.py | """UUID7 compatibility layer for Python 3.13+
Python 3.14+ has native uuid7 support. For Python 3.13, we use uuid_extensions.
IMPORTANT: We also monkey-patch uuid.uuid7 for backward compatibility with
migrations that were auto-generated on Python 3.14+ systems.
"""
import sys
import uuid
import functools
if sys.ver... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/uuid_compat.py",
"license": "MIT License",
"lines": 30,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ArchiveBox/ArchiveBox:archivebox/plugins/forumdl/tests/test_forumdl.py | """
Integration tests for forumdl plugin
Tests verify:
pass
1. Hook script exists
2. Dependencies installed via validation hooks
3. Verify deps with abx-pkg
4. Forum extraction works on forum URLs
5. JSONL output is correct
6. Config options work
7. Handles non-forum URLs gracefully
"""
import json
import os
impo... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/forumdl/tests/test_forumdl.py",
"license": "MIT License",
"lines": 259,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/gallerydl/tests/test_gallerydl.py | """
Integration tests for gallerydl plugin
Tests verify:
pass
1. Hook script exists
2. Dependencies installed via validation hooks
3. Verify deps with abx-pkg
4. Gallery extraction works on gallery URLs
5. JSONL output is correct
6. Config options work
7. Handles non-gallery URLs gracefully
"""
import json
import... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/gallerydl/tests/test_gallerydl.py",
"license": "MIT License",
"lines": 148,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/papersdl/tests/test_papersdl.py | """
Integration tests for papersdl plugin
Tests verify:
1. Hook script exists
2. Dependencies installed via validation hooks
3. Verify deps with abx-pkg
4. Paper extraction works on paper URLs
5. JSONL output is correct
6. Config options work
7. Handles non-paper URLs gracefully
"""
import json
import subprocess
impo... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/papersdl/tests/test_papersdl.py",
"license": "MIT License",
"lines": 151,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/parse_rss_urls/tests/test_parse_rss_urls_comprehensive.py | #!/usr/bin/env python3
"""Comprehensive tests for parse_rss_urls extractor covering various RSS/Atom variants."""
import json
import subprocess
import sys
from pathlib import Path
import pytest
PLUGIN_DIR = Path(__file__).parent.parent
SCRIPT_PATH = next(PLUGIN_DIR.glob('on_Snapshot__*_parse_rss_urls.*'), None)
cl... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/parse_rss_urls/tests/test_parse_rss_urls_comprehensive.py",
"license": "MIT License",
"lines": 869,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_mcp.py | #!/usr/bin/env python3
"""
archivebox mcp
Start the Model Context Protocol (MCP) server in stdio mode.
Exposes all ArchiveBox CLI commands as MCP tools for AI agents.
"""
__package__ = 'archivebox.cli'
__command__ = 'archivebox mcp'
import rich_click as click
from archivebox.misc.util import docstring, enforce_type... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_mcp.py",
"license": "MIT License",
"lines": 34,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
ArchiveBox/ArchiveBox:archivebox/mcp/apps.py | __package__ = 'archivebox.mcp'
from django.apps import AppConfig
class MCPConfig(AppConfig):
name = 'mcp'
verbose_name = 'Model Context Protocol Server'
default_auto_field = 'django.db.models.BigAutoField'
| {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/mcp/apps.py",
"license": "MIT License",
"lines": 6,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ArchiveBox/ArchiveBox:archivebox/mcp/server.py | __package__ = 'archivebox.mcp'
"""
Model Context Protocol (MCP) server implementation for ArchiveBox.
Dynamically exposes all ArchiveBox CLI commands as MCP tools by introspecting
Click command metadata. Handles JSON-RPC 2.0 requests over stdio transport.
"""
import sys
import json
import traceback
from typing impor... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/mcp/server.py",
"license": "MIT License",
"lines": 321,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/plugins/search_backend_ripgrep/tests/test_ripgrep_detection.py | #!/usr/bin/env python3
"""
Tests for ripgrep binary detection and archivebox install functionality.
Guards against regressions in:
pass
1. Machine.config overrides not being used in version command
2. Ripgrep hook not resolving binary names via shutil.which()
3. SEARCH_BACKEND_ENGINE not being passed to hook envir... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/search_backend_ripgrep/tests/test_ripgrep_detection.py",
"license": "MIT License",
"lines": 195,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/api/v1_machine.py | __package__ = 'archivebox.api'
from uuid import UUID
from typing import List, Optional
from datetime import datetime
from ninja import Router, Schema, FilterSchema, Field, Query
from ninja.pagination import paginate
from archivebox.api.v1_core import CustomPagination
router = Router(tags=['Machine and Dependencies... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/api/v1_machine.py",
"license": "MIT License",
"lines": 115,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ArchiveBox/ArchiveBox:archivebox/plugins/dom/tests/test_dom.py | """
Integration tests for dom plugin
Tests verify:
1. Hook script exists
2. Dependencies installed via chrome validation hooks
3. Verify deps with abx-pkg
4. DOM extraction works on https://example.com
5. JSONL output is correct
6. Filesystem output contains actual page content
7. Config options work
"""
import json
... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/dom/tests/test_dom.py",
"license": "MIT License",
"lines": 146,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/git/tests/test_git.py | """
Integration tests for git plugin
Tests verify:
pass
1. Validate hook checks for git binary
2. Verify deps with abx-pkg
3. Standalone git extractor execution
"""
import json
import shutil
import subprocess
import sys
import tempfile
import time
from pathlib import Path
import pytest
PLUGIN_DIR = Path(__file__... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/git/tests/test_git.py",
"license": "MIT License",
"lines": 104,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/htmltotext/tests/test_htmltotext.py | """
Integration tests for htmltotext plugin
Tests verify standalone htmltotext extractor execution.
"""
import json
import subprocess
import sys
import tempfile
from pathlib import Path
import pytest
PLUGIN_DIR = Path(__file__).parent.parent
HTMLTOTEXT_HOOK = next(PLUGIN_DIR.glob('on_Snapshot__*_htmltotext.*'), None... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/htmltotext/tests/test_htmltotext.py",
"license": "MIT License",
"lines": 70,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/mercury/tests/test_mercury.py | """
Integration tests for mercury plugin
Tests verify:
1. Hook script exists
2. Dependencies installed via validation hooks
3. Verify deps with abx-pkg
4. Mercury extraction works on https://example.com
5. JSONL output is correct
6. Filesystem output contains extracted content
7. Config options work
"""
import json
i... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/mercury/tests/test_mercury.py",
"license": "MIT License",
"lines": 133,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/pdf/tests/test_pdf.py | """
Integration tests for pdf plugin
Tests verify:
pass
1. Hook script exists
2. Dependencies installed via chrome validation hooks
3. Verify deps with abx-pkg
4. PDF extraction works on https://example.com
5. JSONL output is correct
6. Filesystem output is valid PDF file
7. Config options work
"""
import json
im... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/pdf/tests/test_pdf.py",
"license": "MIT License",
"lines": 151,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/screenshot/tests/test_screenshot.py | """
Integration tests for screenshot plugin
Tests verify:
1. Hook script exists
2. Dependencies installed via chrome validation hooks
3. Verify deps with abx-pkg
4. Screenshot extraction works on https://example.com
5. JSONL output is correct
6. Filesystem output is valid PNG image
7. Config options work
"""
import j... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/screenshot/tests/test_screenshot.py",
"license": "MIT License",
"lines": 360,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_crawl.py | #!/usr/bin/env python3
"""
archivebox crawl <action> [args...] [--filters]
Manage Crawl records.
Actions:
create - Create Crawl jobs from URLs
list - List Crawls as JSONL (with optional filters)
update - Update Crawls from stdin JSONL
delete - Delete Crawls from stdin JSONL
Examples:
# Cre... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_crawl.py",
"license": "MIT License",
"lines": 288,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/cli/archivebox_snapshot.py | #!/usr/bin/env python3
"""
archivebox snapshot <action> [args...] [--filters]
Manage Snapshot records.
Actions:
create - Create Snapshots from URLs or Crawl JSONL
list - List Snapshots as JSONL (with optional filters)
update - Update Snapshots from stdin JSONL
delete - Delete Snapshots from std... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/archivebox_snapshot.py",
"license": "MIT License",
"lines": 308,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/cli/tests_piping.py | #!/usr/bin/env python3
"""
Tests for CLI piping workflow: crawl | snapshot | archiveresult | run
This module tests the JSONL-based piping between CLI commands as described in:
https://github.com/ArchiveBox/ArchiveBox/issues/1363
Workflows tested:
archivebox crawl create URL -> Crawl JSONL
archivebox sn... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/cli/tests_piping.py",
"license": "MIT License",
"lines": 810,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/config/configset.py | """
Simplified config system for ArchiveBox.
This replaces the complex abx_spec_config/base_configset.py with a simpler
approach that still supports environment variables, config files, and
per-object overrides.
"""
__package__ = "archivebox.config"
import os
import json
from pathlib import Path
from typing import A... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/config/configset.py",
"license": "MIT License",
"lines": 326,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/hooks.py | """
Hook discovery and execution system for ArchiveBox plugins.
Hooks are standalone scripts that run as separate processes and communicate
with ArchiveBox via CLI arguments and stdout JSON output. This keeps the plugin
system simple and language-agnostic.
Directory structure:
archivebox/plugins/<plugin_name>/on_... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/hooks.py",
"license": "MIT License",
"lines": 1009,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/misc/db.py | """
Database utility functions for ArchiveBox.
"""
__package__ = 'archivebox.misc'
from io import StringIO
from pathlib import Path
from typing import List, Tuple
from archivebox.config import DATA_DIR
from archivebox.misc.util import enforce_types
@enforce_types
def list_migrations(out_dir: Path = DATA_DIR) -> Li... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/misc/db.py",
"license": "MIT License",
"lines": 39,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ArchiveBox/ArchiveBox:archivebox/misc/folders.py | """
Folder utilities for ArchiveBox.
Note: This file only contains legacy cleanup utilities.
The DB is the single source of truth - use Snapshot.objects queries for all status checks.
"""
__package__ = 'archivebox.misc'
import os
import json
import shutil
from pathlib import Path
from typing import Tuple, List
from... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/misc/folders.py",
"license": "MIT License",
"lines": 43,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ArchiveBox/ArchiveBox:archivebox/misc/jsonl.py | """
JSONL (JSON Lines) utilities for ArchiveBox.
Provides functions for reading, writing, and processing typed JSONL records.
All CLI commands that accept stdin can read both plain URLs and typed JSONL.
CLI Pipeline:
archivebox crawl URL -> {"type": "Crawl", "id": "...", "urls": "...", ...}
archivebox snap... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/misc/jsonl.py",
"license": "MIT License",
"lines": 119,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/misc/legacy.py | """
Legacy archive import utilities.
These functions are used to import data from old ArchiveBox archive formats
(JSON indexes, archive directory structures) into the new database.
This is separate from the hooks-based parser system which handles importing
new URLs from bookmark files, RSS feeds, etc.
"""
__package_... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/misc/legacy.py",
"license": "MIT License",
"lines": 86,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/plugins/favicon/tests/test_favicon.py | """
Integration tests for favicon plugin
Tests verify:
1. Plugin script exists
2. requests library is available
3. Favicon extraction works for real example.com
4. Output file is actual image data
5. Tries multiple favicon URLs
6. Falls back to Google's favicon service
7. Config options work (TIMEOUT, USER_AGENT)
8. H... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/favicon/tests/test_favicon.py",
"license": "MIT License",
"lines": 232,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/headers/tests/test_headers.py | """
Integration tests for headers plugin
Tests verify:
pass
1. Plugin script exists and is executable
2. Node.js is available
3. Headers extraction works for real example.com
4. Output JSON contains actual HTTP headers
5. Config options work (TIMEOUT, USER_AGENT)
"""
import json
import shutil
import subprocess
im... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/headers/tests/test_headers.py",
"license": "MIT License",
"lines": 322,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/istilldontcareaboutcookies/tests/test_istilldontcareaboutcookies.py | """
Unit tests for istilldontcareaboutcookies plugin
Tests invoke the plugin hook as an external process and verify outputs/side effects.
"""
import json
import os
import signal
import subprocess
import tempfile
import time
from pathlib import Path
import pytest
from archivebox.plugins.chrome.tests.chrome_test_help... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/istilldontcareaboutcookies/tests/test_istilldontcareaboutcookies.py",
"license": "MIT License",
"lines": 520,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template... | test |
ArchiveBox/ArchiveBox:archivebox/plugins/parse_html_urls/tests/test_parse_html_urls.py | #!/usr/bin/env python3
"""Unit tests for parse_html_urls extractor."""
import json
import subprocess
import sys
from pathlib import Path
import pytest
PLUGIN_DIR = Path(__file__).parent.parent
SCRIPT_PATH = next(PLUGIN_DIR.glob('on_Snapshot__*_parse_html_urls.*'), None)
class TestParseHtmlUrls:
"""Test the par... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/parse_html_urls/tests/test_parse_html_urls.py",
"license": "MIT License",
"lines": 206,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/parse_jsonl_urls/tests/test_parse_jsonl_urls.py | #!/usr/bin/env python3
"""Unit tests for parse_jsonl_urls extractor."""
import json
import subprocess
import sys
from pathlib import Path
import pytest
PLUGIN_DIR = Path(__file__).parent.parent
SCRIPT_PATH = next(PLUGIN_DIR.glob('on_Snapshot__*_parse_jsonl_urls.*'), None)
class TestParseJsonlUrls:
"""Test the ... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/parse_jsonl_urls/tests/test_parse_jsonl_urls.py",
"license": "MIT License",
"lines": 228,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/parse_netscape_urls/tests/test_parse_netscape_urls.py | #!/usr/bin/env python3
"""Unit tests for parse_netscape_urls extractor."""
import json
import subprocess
import sys
from pathlib import Path
import pytest
PLUGIN_DIR = Path(__file__).parent.parent
SCRIPT_PATH = next(PLUGIN_DIR.glob('on_Snapshot__*_parse_netscape_urls.*'), None)
class TestParseNetscapeUrls:
"""... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/parse_netscape_urls/tests/test_parse_netscape_urls.py",
"license": "MIT License",
"lines": 174,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/parse_rss_urls/tests/test_parse_rss_urls.py | #!/usr/bin/env python3
"""Unit tests for parse_rss_urls extractor."""
import json
import subprocess
import sys
from pathlib import Path
import pytest
PLUGIN_DIR = Path(__file__).parent.parent
SCRIPT_PATH = next(PLUGIN_DIR.glob('on_Snapshot__*_parse_rss_urls.*'), None)
class TestParseRssUrls:
"""Test the parse_... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/parse_rss_urls/tests/test_parse_rss_urls.py",
"license": "MIT License",
"lines": 181,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/parse_txt_urls/tests/test_parse_txt_urls.py | #!/usr/bin/env python3
"""Unit tests for parse_txt_urls extractor."""
import json
import subprocess
import sys
from pathlib import Path
import pytest
PLUGIN_DIR = Path(__file__).parent.parent
SCRIPT_PATH = next(PLUGIN_DIR.glob('on_Snapshot__*_parse_txt_urls.*'), None)
class TestParseTxtUrls:
"""Test the parse_... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/parse_txt_urls/tests/test_parse_txt_urls.py",
"license": "MIT License",
"lines": 156,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/readability/tests/test_readability.py | """
Integration tests for readability plugin
Tests verify:
1. Validate hook checks for readability-extractor binary
2. Verify deps with abx-pkg
3. Plugin reports missing dependency correctly
4. Extraction works against real example.com content
"""
import json
import shutil
import subprocess
import sys
import tempfile... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/readability/tests/test_readability.py",
"license": "MIT License",
"lines": 174,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/search_backend_ripgrep/search.py | """
Ripgrep search backend - searches files directly without indexing.
This backend doesn't maintain an index - it searches archived files directly
using ripgrep (rg). This is simpler but slower for large archives.
Environment variables:
RIPGREP_BINARY: Path to ripgrep binary (default: rg)
RIPGREP_ARGS: Defau... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/search_backend_ripgrep/search.py",
"license": "MIT License",
"lines": 93,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/plugins/search_backend_sonic/on_Snapshot__91_index_sonic.py | #!/usr/bin/env python3
"""
Sonic search backend - indexes snapshot content in Sonic server.
This hook runs after all extractors and indexes text content in Sonic.
Only runs if SEARCH_BACKEND_ENGINE=sonic.
Usage: on_Snapshot__91_index_sonic.py --url=<url> --snapshot-id=<uuid>
Environment variables:
SEARCH_BACKEND... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/search_backend_sonic/on_Snapshot__91_index_sonic.py",
"license": "MIT License",
"lines": 152,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/plugins/search_backend_sonic/search.py | """
Sonic search backend - search and flush operations.
This module provides the search interface for the Sonic backend.
"""
import os
from typing import List, Iterable
def get_sonic_config() -> dict:
"""Get Sonic connection configuration."""
return {
'host': os.environ.get('SEARCH_BACKEND_HOST_NAME... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/search_backend_sonic/search.py",
"license": "MIT License",
"lines": 38,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/plugins/search_backend_sqlite/on_Snapshot__90_index_sqlite.py | #!/usr/bin/env python3
"""
SQLite FTS5 search backend - indexes snapshot content for full-text search.
This hook runs after all extractors and indexes text content in SQLite FTS5.
Only runs if SEARCH_BACKEND_ENGINE=sqlite.
Usage: on_Snapshot__90_index_sqlite.py --url=<url> --snapshot-id=<uuid>
Environment variables:... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/search_backend_sqlite/on_Snapshot__90_index_sqlite.py",
"license": "MIT License",
"lines": 144,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/plugins/search_backend_sqlite/search.py | """
SQLite FTS5 search backend - search and flush operations.
This module provides the search interface for the SQLite FTS backend.
Environment variables:
SQLITEFTS_DB: Database filename (default: search.sqlite3)
FTS_SEPARATE_DATABASE: Use separate database file (default: true)
FTS_TOKENIZERS: FTS5 tokeni... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/search_backend_sqlite/search.py",
"license": "MIT License",
"lines": 55,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ArchiveBox/ArchiveBox:archivebox/plugins/singlefile/tests/test_singlefile.py | """
Integration tests for singlefile plugin
Tests verify:
1. Hook scripts exist with correct naming
2. CLI-based singlefile extraction works
3. Dependencies available via abx-pkg
4. Output contains valid HTML
5. Connects to Chrome session via CDP when available
6. Works with extensions loaded (ublock, etc.)
"""
impor... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/singlefile/tests/test_singlefile.py",
"license": "MIT License",
"lines": 250,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/title/tests/test_title.py | """
Integration tests for title plugin
Tests verify:
1. Plugin script exists
2. Node.js is available
3. Title extraction works for real example.com
4. Output file contains actual page title
5. Handles various title sources (<title>, og:title, twitter:title)
6. Config options work (TITLE_TIMEOUT)
"""
import json
impor... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/title/tests/test_title.py",
"license": "MIT License",
"lines": 218,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/ublock/tests/test_ublock.py | """
Unit tests for ublock plugin
Tests invoke the plugin hook as an external process and verify outputs/side effects.
"""
import json
import os
import subprocess
import tempfile
from pathlib import Path
import pytest
from archivebox.plugins.chrome.tests.chrome_test_helpers import (
setup_test_env,
get_test_... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/ublock/tests/test_ublock.py",
"license": "MIT License",
"lines": 593,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ArchiveBox/ArchiveBox:archivebox/plugins/wget/tests/test_wget.py | """
Integration tests for wget plugin
Tests verify:
pass
1. Validate hook checks for wget binary
2. Verify deps with abx-pkg
3. Config options work (WGET_ENABLED, WGET_SAVE_WARC, etc.)
4. Extraction works against real example.com
5. Output files contain actual page content
6. Skip cases work (WGET_ENABLED=False, s... | {
"repo_id": "ArchiveBox/ArchiveBox",
"file_path": "archivebox/plugins/wget/tests/test_wget.py",
"license": "MIT License",
"lines": 344,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
Cinnamon/kotaemon:libs/kotaemon/kotaemon/agents/tools/mcp.py | """MCP Tool for kotaemon agents.
Bridges the MCP SDK's tool schema with kotaemon's BaseTool abstraction
so MCP tools can be seamlessly used by ReAct/ReWOO agents.
This module contains:
- MCPTool: BaseTool wrapper for individual MCP server tools
- Tool discovery/creation functions for building MCPTool instances... | {
"repo_id": "Cinnamon/kotaemon",
"file_path": "libs/kotaemon/kotaemon/agents/tools/mcp.py",
"license": "Apache License 2.0",
"lines": 312,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
Cinnamon/kotaemon:libs/kotaemon/tests/test_mcp_manager.py | """Tests for ktem.mcp.manager module.
Uses an in-memory SQLite engine to test MCPManager CRUD operations
without depending on the application's database.
"""
import pytest
from sqlalchemy import JSON, Column, String, create_engine
from sqlalchemy.orm import DeclarativeBase, Session
# ----------------------... | {
"repo_id": "Cinnamon/kotaemon",
"file_path": "libs/kotaemon/tests/test_mcp_manager.py",
"license": "Apache License 2.0",
"lines": 144,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
Cinnamon/kotaemon:libs/kotaemon/tests/test_mcp_tools.py | """Tests for kotaemon.agents.tools.mcp module.
Covers config parsing, JSON Schema -> Pydantic model building,
tool formatting, and MCPTool construction (without real MCP servers).
"""
from types import SimpleNamespace
from unittest.mock import patch
import pytest
from kotaemon.agents.tools.mcp import (
... | {
"repo_id": "Cinnamon/kotaemon",
"file_path": "libs/kotaemon/tests/test_mcp_tools.py",
"license": "Apache License 2.0",
"lines": 252,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
Cinnamon/kotaemon:libs/ktem/ktem/mcp/db.py | from ktem.db.engine import engine
from sqlalchemy import JSON, Column, String
from sqlalchemy import inspect as sa_inspect
from sqlalchemy.orm import DeclarativeBase
class Base(DeclarativeBase):
pass
class BaseMCPTable(Base):
"""Base table to store MCP server configurations"""
__abstract__... | {
"repo_id": "Cinnamon/kotaemon",
"file_path": "libs/ktem/ktem/mcp/db.py",
"license": "Apache License 2.0",
"lines": 20,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
Cinnamon/kotaemon:libs/ktem/ktem/mcp/manager.py | """Manager for MCP server configurations.
Provides CRUD operations on the MCPTable.
All tool building/discovery logic lives in kotaemon.agents.tools.mcp.
"""
import logging
from sqlalchemy import select
from sqlalchemy.orm import Session
from .db import MCPTable, engine
logger = logging.getLogger(__na... | {
"repo_id": "Cinnamon/kotaemon",
"file_path": "libs/ktem/ktem/mcp/manager.py",
"license": "Apache License 2.0",
"lines": 70,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
Cinnamon/kotaemon:libs/ktem/ktem/mcp/ui.py | import json
import logging
import gradio as gr
import pandas as pd
from ktem.app import BasePage
from kotaemon.agents.tools.mcp import discover_tools_info, format_tool_list
from .manager import mcp_manager
logger = logging.getLogger(__name__)
TOOLS_DEFAULT = "# Available Tools\n\nSelect or add an MCP ... | {
"repo_id": "Cinnamon/kotaemon",
"file_path": "libs/ktem/ktem/mcp/ui.py",
"license": "Apache License 2.0",
"lines": 301,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
Comfy-Org/ComfyUI:comfy/text_encoders/longcat_image.py | import re
import numbers
import torch
from comfy import sd1_clip
from comfy.text_encoders.qwen_image import Qwen25_7BVLITokenizer, Qwen25_7BVLIModel
import logging
logger = logging.getLogger(__name__)
QUOTE_PAIRS = [("'", "'"), ('"', '"'), ("\u2018", "\u2019"), ("\u201c", "\u201d")]
QUOTE_PATTERN = "|".join(
[
... | {
"repo_id": "Comfy-Org/ComfyUI",
"file_path": "comfy/text_encoders/longcat_image.py",
"license": "GNU General Public License v3.0",
"lines": 153,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
Comfy-Org/ComfyUI:tests-unit/comfy_test/model_detection_test.py | import torch
from comfy.model_detection import detect_unet_config, model_config_from_unet_config
import comfy.supported_models
def _make_longcat_comfyui_sd():
"""Minimal ComfyUI-format state dict for pre-converted LongCat-Image weights."""
sd = {}
H = 32 # Reduce hidden state dimension to reduce memory ... | {
"repo_id": "Comfy-Org/ComfyUI",
"file_path": "tests-unit/comfy_test/model_detection_test.py",
"license": "GNU General Public License v3.0",
"lines": 89,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.