id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
326,200 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/exceptions.py | artifacts.exceptions.ValidationError | class ValidationError(ArtifactsError):
"""
Raised for invalid input parameters, format, state, or path traversal attempts.
This is a critical security exception - it often indicates malicious input
or programming errors that could lead to security vulnerabilities.
""" | class ValidationError(ArtifactsError):
'''
Raised for invalid input parameters, format, state, or path traversal attempts.
This is a critical security exception - it often indicates malicious input
or programming errors that could lead to security vulnerabilities.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 1 | 1 | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
326,201 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/factory.py | artifacts.factory.ArtifactsConfig | from pathlib import Path
import logging
from pydantic import BaseModel, Field
class ArtifactsConfig(BaseModel):
"""
Configuration for the Artifacts Service.
Uses Pydantic for validation and environment variable support.
"""
workspace_root: Path = Field(default=Path('./.khive/workspace'), descripti... |
class ArtifactsConfig(BaseModel):
'''
Configuration for the Artifacts Service.
Uses Pydantic for validation and environment variable support.
'''
def model_post_init(self, __context):
'''Post-initialization validation and setup.'''
pass | 2 | 2 | 8 | 1 | 4 | 3 | 2 | 0.26 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 83 | 42 | 8 | 27 | 7 | 25 | 7 | 10 | 7 | 8 | 2 | 5 | 1 | 2 |
326,202 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/handlers/handoff_coordinator.py | artifacts.handlers.handoff_coordinator.AgentSpec | from dataclasses import dataclass, field
@dataclass
class AgentSpec:
"""Specification for an agent to be spawned"""
role: str
domain: str
priority: float
dependencies: list[str] = field(default_factory=list)
spawn_command: str = ''
session_id: str = ''
phase: str = ''
context: str =... | @dataclass
class AgentSpec:
'''Specification for an agent to be spawned'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 1 | 9 | 6 | 8 | 1 | 9 | 6 | 8 | 0 | 0 | 0 | 0 |
326,203 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/handlers/handoff_coordinator.py | artifacts.handlers.handoff_coordinator.ExecutionNode | from dataclasses import dataclass, field
@dataclass
class ExecutionNode:
"""Represents an agent execution node in the dependency graph"""
agent_spec: AgentSpec
status: str = 'pending'
start_time: datetime | None = None
completion_time: datetime | None = None
artifacts: list[str] = field(default... | @dataclass
class ExecutionNode:
'''Represents an agent execution node in the dependency graph'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 1 | 8 | 7 | 7 | 2 | 8 | 7 | 7 | 0 | 0 | 0 | 0 |
326,204 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/handlers/handoff_coordinator.py | artifacts.handlers.handoff_coordinator.HandoffCoordinator | from khive.core import TimePolicy
import asyncio
import json
from collections import defaultdict, deque
class HandoffCoordinator:
"""
Coordinates parallel agent execution with dependency resolution.
Features:
- Topological scheduling of agents based on dependencies
- Parallel fan-out execution for... |
class HandoffCoordinator:
'''
Coordinates parallel agent execution with dependency resolution.
Features:
- Topological scheduling of agents based on dependencies
- Parallel fan-out execution for independent agents
- Artifact management and handoff tracking
- Quality gate enforcement
- T... | 23 | 23 | 23 | 4 | 14 | 6 | 3 | 0.45 | 0 | 15 | 3 | 0 | 22 | 15 | 22 | 22 | 530 | 102 | 301 | 94 | 276 | 134 | 210 | 87 | 187 | 9 | 0 | 5 | 67 |
326,205 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/handlers/timeout_manager.py | artifacts.handlers.timeout_manager.TimeoutConfig | from dataclasses import dataclass
from typing import TYPE_CHECKING, Any
@dataclass
class TimeoutConfig:
"""Configuration for timeout handling."""
agent_execution_timeout: float = 300.0
phase_completion_timeout: float = 1800.0
total_orchestration_timeout: float = 3600.0
response_timeout: float = 60.... | @dataclass
class TimeoutConfig:
'''Configuration for timeout handling.'''
def to_dict(self) -> dict[str, Any]:
'''Convert to dictionary for serialization.'''
pass | 3 | 2 | 14 | 0 | 13 | 1 | 1 | 0.54 | 0 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 35 | 5 | 24 | 12 | 22 | 13 | 13 | 12 | 11 | 1 | 0 | 0 | 1 |
326,206 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/handlers/timeout_manager.py | artifacts.handlers.timeout_manager.TimeoutManager | from khive.core import TimePolicy
import json
import asyncio
import aiofiles
from typing import TYPE_CHECKING, Any
from pathlib import Path
class TimeoutManager:
"""
Manages timeout operations for agent execution and orchestration.
Provides configurable timeout handling, retry logic, and performance track... |
class TimeoutManager:
'''
Manages timeout operations for agent execution and orchestration.
Provides configurable timeout handling, retry logic, and performance tracking
for Phase 1 handoff optimizations.
'''
def __init__(self, config: TimeoutConfig | None=None, session_id: str | None=None):
... | 14 | 14 | 21 | 3 | 15 | 3 | 3 | 0.25 | 0 | 17 | 5 | 0 | 13 | 7 | 13 | 13 | 290 | 49 | 194 | 62 | 162 | 48 | 121 | 41 | 107 | 9 | 0 | 4 | 36 |
326,207 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/handlers/timeout_manager.py | artifacts.handlers.timeout_manager.TimeoutResult | from dataclasses import dataclass
from khive.core import TimePolicy
from typing import TYPE_CHECKING, Any
@dataclass
class TimeoutResult:
"""Result of a timeout operation."""
operation_id: str
timeout_type: TimeoutType
status: TimeoutStatus
start_time: datetime
end_time: datetime | None = None
... | @dataclass
class TimeoutResult:
'''Result of a timeout operation.'''
def mark_completed(self) -> None:
'''Mark operation as completed.'''
pass
def mark_timed_out(self, error: str) -> None:
'''Mark operation as timed out.'''
pass
def mark_error(self, error: str) -> None... | 6 | 5 | 7 | 0 | 6 | 1 | 1 | 0.15 | 0 | 5 | 2 | 0 | 4 | 0 | 4 | 4 | 44 | 5 | 34 | 9 | 29 | 5 | 25 | 9 | 20 | 2 | 0 | 0 | 5 |
326,208 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/handlers/timeout_manager.py | artifacts.handlers.timeout_manager.TimeoutStatus | from enum import Enum
class TimeoutStatus(str, Enum):
"""Status of timeout operations."""
PENDING = 'pending'
IN_PROGRESS = 'in_progress'
COMPLETED = 'completed'
TIMED_OUT = 'timed_out'
CANCELLED = 'cancelled'
ERROR = 'error' |
class TimeoutStatus(str, Enum):
'''Status of timeout operations.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 9 | 1 | 7 | 7 | 6 | 1 | 7 | 7 | 6 | 0 | 4 | 0 | 0 |
326,209 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/handlers/timeout_manager.py | artifacts.handlers.timeout_manager.TimeoutType | from enum import Enum
class TimeoutType(str, Enum):
"""Types of timeouts in the system."""
AGENT_EXECUTION = 'agent_execution'
PHASE_COMPLETION = 'phase_completion'
TOTAL_ORCHESTRATION = 'total_orchestration'
RESPONSE_TIMEOUT = 'response_timeout'
HANDOFF_TIMEOUT = 'handoff_timeout' |
class TimeoutType(str, Enum):
'''Types of timeouts in the system.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 8 | 1 | 6 | 6 | 5 | 1 | 6 | 6 | 5 | 0 | 4 | 0 | 0 |
326,210 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/locks.py | artifacts.locks.LockManager | import asyncio
from .exceptions import ConcurrencyError
from collections import defaultdict, deque
from contextlib import asynccontextmanager
from collections.abc import AsyncIterator
class LockManager:
"""
Manages asynchronous locks keyed by resource identifiers.
Provides synchronization across concurren... |
class LockManager:
'''
Manages asynchronous locks keyed by resource identifiers.
Provides synchronization across concurrent requests within a single service instance.
Uses asyncio.Lock for efficient coordination without blocking the event loop.
Note: This implementation is for single-process coordi... | 7 | 6 | 25 | 4 | 11 | 10 | 3 | 1.04 | 0 | 7 | 1 | 0 | 5 | 3 | 5 | 5 | 144 | 28 | 57 | 18 | 48 | 59 | 41 | 15 | 35 | 8 | 0 | 3 | 13 |
326,211 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/models.py | artifacts.models.ArtifactRegistry | from typing import Any
from datetime import datetime, timezone
from pydantic import BaseModel, Field
class ArtifactRegistry(BaseModel):
"""Session-level artifact registry for tracking all documents."""
session_id: str
created_at: datetime
task_description: str | None = None
artifacts: list[Artifact... |
class ArtifactRegistry(BaseModel):
'''Session-level artifact registry for tracking all documents.'''
@classmethod
def create_new(cls, session_id: str, task_description: str | None=None) -> 'ArtifactRegistry':
'''Create a new artifact registry for a session.'''
pass
def add_artifact(sel... | 6 | 5 | 11 | 0 | 10 | 1 | 2 | 0.13 | 1 | 7 | 1 | 0 | 3 | 0 | 4 | 86 | 57 | 5 | 47 | 23 | 29 | 6 | 18 | 10 | 13 | 3 | 5 | 2 | 6 |
326,212 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/models.py | artifacts.models.ArtifactRegistryEntry | from typing import Any
from pydantic import BaseModel, Field
from datetime import datetime, timezone
class ArtifactRegistryEntry(BaseModel):
"""Represents an entry in the artifact registry."""
id: str
type: str
name: str
description: str | None = None
file_path: str
status: str = 'active'
... |
class ArtifactRegistryEntry(BaseModel):
'''Represents an entry in the artifact registry.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.73 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 13 | 1 | 11 | 6 | 10 | 8 | 11 | 6 | 10 | 0 | 5 | 0 | 0 |
326,213 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/models.py | artifacts.models.Author | from pydantic import BaseModel, Field
class Author(BaseModel):
"""Represents an author/contributor to a document."""
id: str = Field(..., min_length=1, description='Unique identifier for the author')
role: str = Field(..., min_length=1, description="Role of the author (e.g., 'PlannerAgent', 'Researcher', '... |
class Author(BaseModel):
'''Represents an author/contributor to a document.'''
@classmethod
def system(cls) -> 'Author':
'''System author for automated operations.'''
pass | 3 | 2 | 3 | 0 | 2 | 1 | 1 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 83 | 14 | 2 | 10 | 4 | 7 | 2 | 5 | 3 | 3 | 1 | 5 | 0 | 1 |
326,214 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/models.py | artifacts.models.ContributionMetadata | from datetime import datetime, timezone
from pydantic import BaseModel, Field
class ContributionMetadata(BaseModel):
"""Metadata about a contribution to a document."""
author: Author
timestamp: datetime
content_length: int = Field(..., ge=0, description='Length of the content contribution (must be non-... |
class ContributionMetadata(BaseModel):
'''Metadata about a contribution to a document.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 10 | 1 | 8 | 2 | 7 | 1 | 4 | 2 | 3 | 0 | 5 | 0 | 0 |
326,215 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/models.py | artifacts.models.Document | from pydantic import BaseModel, Field
from datetime import datetime, timezone
class Document(BaseModel):
"""
Represents an artifact managed by the service.
Documents are stored as JSON files containing both content and metadata.
This enables rich querying and version tracking without complex storage.
... |
class Document(BaseModel):
'''
Represents an artifact managed by the service.
Documents are stored as JSON files containing both content and metadata.
This enables rich querying and version tracking without complex storage.
'''
@classmethod
def create_new(cls, session_id: str, name: str, do... | 4 | 3 | 20 | 2 | 16 | 2 | 1 | 0.2 | 1 | 6 | 3 | 0 | 1 | 0 | 2 | 84 | 62 | 8 | 45 | 22 | 34 | 9 | 21 | 14 | 18 | 1 | 5 | 0 | 2 |
326,216 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/models.py | artifacts.models.DocumentType | from enum import Enum
class DocumentType(str, Enum):
"""Type of document in the artifacts system."""
DELIVERABLE = 'deliverable'
SCRATCHPAD = 'scratchpad' |
class DocumentType(str, Enum):
'''Type of document in the artifacts system.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 5 | 1 | 3 | 3 | 2 | 3 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
326,217 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/models.py | artifacts.models.Session | import uuid
from pathlib import Path
from pydantic import BaseModel, Field
import re
from datetime import datetime, timezone
class Session(BaseModel):
"""Represents a development session workspace."""
id: str
workspace_path: Path
created_at: datetime
status: SessionStatus
@classmethod
def ... |
class Session(BaseModel):
'''Represents a development session workspace.'''
@classmethod
def create_new(cls, session_id: str | None, workspace_root: Path) -> 'Session':
'''Factory method to create a new session.'''
pass
def get_document_type_path(self, doc_type: DocumentType) -> Path:
... | 4 | 3 | 11 | 2 | 8 | 2 | 2 | 0.19 | 1 | 7 | 3 | 0 | 1 | 0 | 2 | 84 | 32 | 7 | 21 | 6 | 16 | 4 | 15 | 5 | 11 | 3 | 5 | 1 | 4 |
326,218 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/models.py | artifacts.models.SessionStatus | from enum import Enum
class SessionStatus(str, Enum):
"""Status of a development session."""
ACTIVE = 'ACTIVE'
ARCHIVED = 'ARCHIVED' |
class SessionStatus(str, Enum):
'''Status of a development session.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 5 | 1 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
326,219 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/service.py | artifacts.service.ArtifactsService | from typing import Any
from .exceptions import DocumentAlreadyExists, DocumentNotFound
from .models import ArtifactRegistry, Author, Document, DocumentType, Session
from .sessions import SessionManager
from .storage import IStorageRepository
from .locks import LockManager
from pathlib import Path
import json
class Art... |
class ArtifactsService:
'''
Central facade for the Artifacts Service.
This is the main entry point for all document and session operations.
It coordinates between storage, session management, locking, and templates.
The service ensures:
- Atomic operations for document updates
- Proper conc... | 20 | 20 | 24 | 3 | 12 | 9 | 2 | 0.81 | 0 | 18 | 10 | 0 | 18 | 3 | 18 | 18 | 477 | 81 | 219 | 86 | 158 | 178 | 119 | 41 | 100 | 4 | 0 | 2 | 28 |
326,220 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/sessions.py | artifacts.sessions.SessionManager | from typing import Any
import json
from pathlib import Path
import re
import aiofiles
from .exceptions import SessionAlreadyExists, SessionNotFound, StorageError, ValidationError
from .models import DocumentType, Session, SessionStatus
from datetime import datetime, timezone
class SessionManager:
"""
Manages t... |
class SessionManager:
'''
Manages the lifecycle and security of development sessions.
Responsibilities:
- Session creation and validation
- Secure path resolution (prevents path traversal attacks)
- Directory structure management
- Session metadata persistence
'''
def __init__(self... | 16 | 16 | 27 | 4 | 11 | 11 | 3 | 1.05 | 0 | 15 | 7 | 0 | 9 | 1 | 9 | 9 | 263 | 51 | 104 | 28 | 91 | 109 | 77 | 22 | 66 | 5 | 0 | 3 | 26 |
326,221 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/storage.py | artifacts.storage.FileSystemStorageRepository | from datetime import datetime
import uuid
from .exceptions import DocumentNotFound, StorageError
import asyncio
import os
import aiofiles
from .models import Author, ContributionMetadata, Document, DocumentType
import yaml
class FileSystemStorageRepository(IStorageRepository):
"""
File system implementation of... |
class FileSystemStorageRepository(IStorageRepository):
'''
File system implementation of the storage repository.
Documents are stored as markdown files with YAML front matter to preserve metadata.
Uses atomic write-to-temp-and-rename for consistency.
'''
def __init__(self, session_manager: Ses... | 10 | 9 | 25 | 3 | 14 | 8 | 3 | 0.58 | 1 | 16 | 7 | 0 | 8 | 1 | 8 | 35 | 242 | 38 | 129 | 44 | 111 | 75 | 82 | 30 | 72 | 5 | 6 | 3 | 23 |
326,222 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/artifacts/storage.py | artifacts.storage.IStorageRepository | from .models import Author, ContributionMetadata, Document, DocumentType
from typing import TYPE_CHECKING, Protocol
class IStorageRepository(Protocol):
"""
Defines the contract for persistent storage.
Focuses on atomic operations for individual documents.
"""
async def save(self, document: Documen... |
class IStorageRepository(Protocol):
'''
Defines the contract for persistent storage.
Focuses on atomic operations for individual documents.
'''
async def save(self, document: Document) -> None:
'''
Persists the document. This operation MUST be atomic (all-or-nothing).
If th... | 4 | 4 | 7 | 0 | 3 | 3 | 1 | 1.27 | 1 | 4 | 2 | 1 | 3 | 0 | 3 | 27 | 28 | 3 | 11 | 8 | 3 | 14 | 7 | 4 | 3 | 1 | 5 | 0 | 3 |
326,223 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/frontend/realtime_server.py | claude.frontend.realtime_server.HookEventWebSocketServer | import asyncio
from khive.services.claude.hooks import HookEvent, HookEventBroadcaster
from khive.core import TimePolicy
import json
import websockets
import signal
class HookEventWebSocketServer:
"""WebSocket server for real-time hook event broadcasting."""
def __init__(self, host: str='localhost', port: int... |
class HookEventWebSocketServer:
'''WebSocket server for real-time hook event broadcasting.'''
def __init__(self, host: str='localhost', port: int=8767):
pass
async def register_client(self, websocket: websockets.WebSocketServerProtocol):
'''Register a new WebSocket client.'''
pass... | 11 | 10 | 28 | 3 | 20 | 4 | 3 | 0.18 | 0 | 9 | 3 | 0 | 9 | 5 | 9 | 9 | 274 | 40 | 199 | 46 | 184 | 36 | 111 | 36 | 100 | 7 | 0 | 3 | 33 |
326,224 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/frontend/streamlit_dashboard.py | claude.frontend.streamlit_dashboard.ClaudeCodeObservabilityDashboard | from khive import __version__
import streamlit as st
from collections import Counter, defaultdict
import pandas as pd
import plotly.graph_objects as go
import time
from khive.services.claude.hooks import HookEvent
from khive.daemon.client import get_daemon_client
from typing import Any
import datetime as dt
from khive.... |
class ClaudeCodeObservabilityDashboard:
'''Streamlit dashboard for Claude Code hook observability.'''
def __init__(self):
pass
async def load_events_from_db(self, force_refresh: bool=False) -> list[dict[str, Any]]:
'''Load hook events from SQLite database with caching.'''
pass
... | 20 | 18 | 91 | 10 | 75 | 12 | 9 | 0.15 | 0 | 21 | 3 | 0 | 16 | 9 | 16 | 16 | 1,724 | 198 | 1,395 | 251 | 1,360 | 216 | 622 | 238 | 593 | 28 | 0 | 6 | 177 |
326,225 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/hooks/coordination.py | claude.hooks.coordination.CoordinationRegistry | import time
from typing import Any
class CoordinationRegistry:
"""
Real coordination that actually helps LLM agents.
No fake features - just what works.
"""
def __init__(self):
self.active_agents: dict[str, AgentWork] = {}
self.file_locks: dict[tuple[int, int] | str, FileEdit] = {}... |
class CoordinationRegistry:
'''
Real coordination that actually helps LLM agents.
No fake features - just what works.
'''
def __init__(self):
pass
def register_agent_work(self, agent_id: str, task: str, files: list[str]=None) -> dict[str, Any]:
'''
Register what an age... | 13 | 12 | 26 | 3 | 19 | 4 | 4 | 0.2 | 0 | 13 | 3 | 0 | 24 | 14 | 24 | 24 | 651 | 106 | 463 | 130 | 421 | 91 | 261 | 115 | 233 | 12 | 0 | 4 | 102 |
326,226 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/hooks/coordination_metrics.py | claude.hooks.coordination_metrics.CoordinationMetrics | from dataclasses import dataclass, field
@dataclass
class CoordinationMetrics:
"""Metrics for measuring coordination effectiveness."""
total_tasks_submitted: int = 0
duplicate_tasks_detected: int = 0
duplicate_tasks_merged: int = 0
deduplication_time_saved: float = 0.0
contexts_shared: int = 0
... | @dataclass
class CoordinationMetrics:
'''Metrics for measuring coordination effectiveness.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.46 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 54 | 9 | 35 | 35 | 34 | 16 | 35 | 35 | 34 | 0 | 0 | 0 | 0 |
326,227 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/hooks/coordination_metrics.py | claude.hooks.coordination_metrics.MetricsCollector | from typing import Any
from datetime import datetime
class MetricsCollector:
"""Collects and analyzes coordination metrics."""
def __init__(self):
self.metrics = CoordinationMetrics()
self.event_log: list[dict[str, Any]] = []
self.start_time = datetime.now()
def log_event(self, ev... |
class MetricsCollector:
'''Collects and analyzes coordination metrics.'''
def __init__(self):
pass
def log_event(self, event_type: str, data: dict[str, Any]):
'''Log a coordination event for analysis.'''
pass
def calculate_effectiveness_score(self) -> dict[str, Any]:
... | 6 | 5 | 40 | 5 | 33 | 3 | 5 | 0.09 | 0 | 6 | 1 | 0 | 5 | 3 | 5 | 5 | 207 | 28 | 166 | 31 | 160 | 15 | 66 | 31 | 60 | 9 | 0 | 1 | 25 |
326,228 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/hooks/hook_event.py | claude.hooks.hook_event.HookEvent | from lionagi.protocols.types import Node
from pydantic import field_validator
from typing import Any, ClassVar
from khive.utils import SQLITE_DSN, EventBroadcaster, get_logger
class HookEvent(Node):
"""Event generated by Claude Code hooks."""
content: HookEventContent
_initialized: ClassVar[bool] = False
... |
class HookEvent(Node):
'''Event generated by Claude Code hooks.'''
@field_validator('content', mode='before')
def _validate_event_type(cls, value) -> dict:
pass
async def save(self):
pass
@classmethod
async def _execute_raw_sql_query(cls, sql: str, params: dict=None) -> list[Ho... | 16 | 7 | 25 | 3 | 18 | 4 | 3 | 0.24 | 1 | 10 | 1 | 0 | 2 | 0 | 8 | 8 | 224 | 33 | 154 | 54 | 127 | 37 | 82 | 38 | 70 | 6 | 1 | 3 | 22 |
326,229 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/hooks/hook_event.py | claude.hooks.hook_event.HookEventBroadcaster | from khive.utils import SQLITE_DSN, EventBroadcaster, get_logger
from typing import Any, ClassVar
class HookEventBroadcaster(EventBroadcaster):
_event_type: ClassVar[type] = HookEvent |
class HookEventBroadcaster(EventBroadcaster):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
326,230 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/hooks/hook_event.py | claude.hooks.hook_event.HookEventContent | from typing import Any, ClassVar
from typing_extensions import TypedDict
class HookEventContent(TypedDict, total=False):
event_type: str
tool_name: str
command: str | None
output: str | None
session_id: str | None
file_paths: list[str]
metadata: dict[str, Any] |
class HookEventContent(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 1 | 7 | 0 | 8 | 1 | 7 | 0 | 1 | 0 | 0 |
326,231 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/hooks/semantic_dedup.py | claude.hooks.semantic_dedup.SemanticDeduplicator | from typing import Dict, List, Optional, Tuple, Set
import hashlib
import time
import numpy as np
from collections import defaultdict, deque
class SemanticDeduplicator:
"""Semantic task deduplication using lightweight embeddings with O(1) duplicate detection."""
def __init__(self, similarity_threshold: float=... |
class SemanticDeduplicator:
'''Semantic task deduplication using lightweight embeddings with O(1) duplicate detection.'''
def __init__(self, similarity_threshold: float=0.85):
'''
Initialize semantic deduplicator with performance optimizations.
Args:
similarity_threshold: M... | 15 | 15 | 37 | 5 | 24 | 8 | 5 | 0.32 | 0 | 10 | 1 | 0 | 8 | 3 | 8 | 8 | 306 | 51 | 194 | 64 | 181 | 62 | 108 | 59 | 99 | 9 | 0 | 3 | 37 |
326,232 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/claude/hooks/semantic_dedup.py | claude.hooks.semantic_dedup.TaskEmbedding | from dataclasses import dataclass
@dataclass
class TaskEmbedding:
"""Represents a task with its semantic embedding."""
task_id: str
description: str
embedding: list[float]
metadata: dict | @dataclass
class TaskEmbedding:
'''Represents a task with its semantic embedding.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 1 | 5 | 1 | 4 | 1 | 5 | 1 | 4 | 0 | 0 | 0 | 0 |
326,233 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/composition/agent_composer.py | composition.agent_composer.AgentComposer | from typing import Any
from pathlib import Path
import threading
import sys
from .parts import AgentCompositionRequest
import json
import yaml
class AgentComposer:
"""Compose agent persona from role + domain specifications"""
_file_lock = threading.Lock()
def __init__(self, base_path: str | None=None):
... |
class AgentComposer:
'''Compose agent persona from role + domain specifications'''
def __init__(self, base_path: str | None=None):
pass
def load_yaml(self, file_path: Path) -> dict[str, Any]:
'''Load YAML file safely with validation'''
pass
def load_agent_role(self, role: str... | 20 | 19 | 42 | 6 | 30 | 7 | 6 | 0.25 | 0 | 12 | 1 | 0 | 19 | 6 | 19 | 19 | 831 | 137 | 571 | 130 | 541 | 144 | 358 | 117 | 334 | 22 | 0 | 5 | 116 |
326,234 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/composition/composer_service.py | composition.composer_service.ComposerService | import asyncio
from .agent_composer import AgentComposer
from khive.prompts import ALL_AGENT_ROLES
from pathlib import Path
from .parts import ComposerRequest, ComposerResponse, DomainExpertise
import shutil
class ComposerService:
"""
Agent Composition Service.
Wraps the AgentComposer to provide intellige... |
class ComposerService:
'''
Agent Composition Service.
Wraps the AgentComposer to provide intelligent agent composition
from role + domain specifications.
'''
def __init__(self):
'''Initialize the composer service.'''
pass
async def _get_composer(self) -> AgentComposer:
... | 6 | 6 | 35 | 4 | 24 | 6 | 5 | 0.3 | 0 | 8 | 4 | 0 | 5 | 2 | 5 | 5 | 186 | 27 | 123 | 29 | 115 | 37 | 63 | 27 | 55 | 10 | 0 | 6 | 25 |
326,235 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/composition/parts.py | composition.parts.AgentCompositionRequest | from pydantic import BaseModel, ConfigDict, Field, field_validator
class AgentCompositionRequest(BaseModel):
"""Validated input for agent composition"""
model_config = ConfigDict(extra='forbid')
role: str = Field(min_length=1, max_length=100, description='Agent role name')
domains: str | None = Field(N... |
class AgentCompositionRequest(BaseModel):
'''Validated input for agent composition'''
@field_validator('role')
def validate_role(cls, v):
pass | 3 | 1 | 7 | 0 | 6 | 1 | 3 | 0.14 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 19 | 3 | 14 | 7 | 11 | 2 | 11 | 6 | 9 | 3 | 5 | 1 | 3 |
326,236 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/composition/parts.py | composition.parts.AgentSpec | from dataclasses import dataclass
@dataclass
class AgentSpec:
"""Immutable agent specification (Pydantic-style contract)"""
name: str
role: str
domain: str
temperature: float
system_prompt: str
tools: list[str] = None
def __post_init__(self):
if self.tools is None:
... | @dataclass
class AgentSpec:
'''Immutable agent specification (Pydantic-style contract)'''
def __post_init__(self):
pass | 3 | 1 | 3 | 0 | 3 | 0 | 2 | 0.1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 13 | 2 | 10 | 3 | 8 | 1 | 10 | 3 | 8 | 2 | 0 | 1 | 2 |
326,237 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/composition/parts.py | composition.parts.ComposerRequest | from khive.security.secure_models import SecureComposerRequestMixin
from pydantic import BaseModel, ConfigDict, Field, field_validator
from khive.prompts import AgentRole
class ComposerRequest(SecureComposerRequestMixin, BaseModel):
"""Request to the composer service - NOW WITH SECURITY VALIDATION"""
role: Age... |
class ComposerRequest(SecureComposerRequestMixin, BaseModel):
'''Request to the composer service - NOW WITH SECURITY VALIDATION'''
@field_validator('role', mode='before')
@classmethod
def normalize_role(cls, v):
'''Normalize role to lowercase for case-insensitive input.'''
pass | 4 | 2 | 0 | 0 | 0 | 0 | 0 | 0.25 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 85 | 6 | 1 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
326,238 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/composition/parts.py | composition.parts.ComposerResponse | from pydantic import BaseModel, ConfigDict, Field, field_validator
class ComposerResponse(BaseModel):
"""Response from the composer service."""
model_config = ConfigDict(extra='allow')
success: bool = Field(..., description='Whether composition succeeded')
summary: str = Field(..., min_length=1, descri... |
class ComposerResponse(BaseModel):
'''Response from the composer service.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.03 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 38 | 6 | 31 | 13 | 30 | 1 | 13 | 13 | 12 | 0 | 5 | 0 | 0 |
326,239 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/composition/parts.py | composition.parts.DomainExpertise | from pydantic import BaseModel, ConfigDict, Field, field_validator
class DomainExpertise(BaseModel):
"""Domain expertise information."""
domain_id: str = Field(..., min_length=1, description='Domain identifier (must be non-empty)')
knowledge_patterns: dict = Field(default_factory=dict, description='Knowled... |
class DomainExpertise(BaseModel):
'''Domain expertise information.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 18 | 1 | 16 | 6 | 15 | 1 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
326,240 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/_types.py | khive._types.BaseModel | from pydantic import ConfigDict
class BaseModel(_LionHashableModel):
model_config = ConfigDict(arbitrary_types_allowed=True, extra='forbid', use_enum_values=True, populate_by_name=True) |
class BaseModel(_LionHashableModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 17 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 2 | 6 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
326,241 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/base.py | khive.cli.base.BaseCLICommand | import sys
import argparse
from abc import ABC, abstractmethod
import inspect
from pathlib import Path
import asyncio
from typing import Any, TypeVar
from khive.utils import BaseConfig, die, get_project_root, info_msg, load_toml_config, print_json_result, validate_directory
class BaseCLICommand(ABC):
"""
Abstr... |
class BaseCLICommand(ABC):
'''
Abstract base class for khive CLI commands.
Provides common functionality:
- Argument parsing with standard options
- Configuration loading
- Error handling and exit code management
- JSON output formatting
- Dry-run support
'''
def __init__(self,... | 19 | 10 | 19 | 2 | 13 | 4 | 2 | 0.36 | 1 | 19 | 3 | 3 | 10 | 4 | 10 | 30 | 239 | 38 | 149 | 44 | 125 | 54 | 105 | 38 | 84 | 6 | 4 | 6 | 30 |
326,242 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/base.py | khive.cli.base.CLICommandFactory | class CLICommandFactory:
"""Factory for creating and registering CLI commands."""
_commands: dict[str, type[BaseCLICommand]] = {}
@classmethod
def register(cls, name: str, command_class: type[BaseCLICommand]) -> None:
"""Register a command class with a name."""
cls._commands[name] = com... | class CLICommandFactory:
'''Factory for creating and registering CLI commands.'''
@classmethod
def register(cls, name: str, command_class: type[BaseCLICommand]) -> None:
'''Register a command class with a name.'''
pass
@classmethod
def create(cls, name: str, *args, **kwargs) -> BaseC... | 7 | 4 | 4 | 0 | 3 | 1 | 1 | 0.31 | 0 | 5 | 1 | 0 | 0 | 0 | 3 | 3 | 21 | 4 | 13 | 8 | 6 | 4 | 10 | 5 | 6 | 2 | 0 | 1 | 4 |
326,243 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/base.py | khive.cli.base.CLIResult | from dataclasses import dataclass
from typing import Any, TypeVar
@dataclass
class CLIResult:
"""Standard result structure for CLI commands."""
status: str
message: str
data: dict[str, Any] | None = None
exit_code: int = 0
def is_success(self) -> bool:
"""Check if the result represents... | @dataclass
class CLIResult:
'''Standard result structure for CLI commands.'''
def is_success(self) -> bool:
'''Check if the result represents success.'''
pass
def to_dict(self) -> dict[str, Any]:
'''Convert result to dictionary for JSON output.'''
pass | 4 | 3 | 6 | 0 | 5 | 1 | 2 | 0.27 | 0 | 4 | 0 | 0 | 2 | 0 | 2 | 2 | 21 | 3 | 15 | 6 | 12 | 4 | 12 | 6 | 9 | 2 | 0 | 1 | 3 |
326,244 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/base.py | khive.cli.base.CommandWorkflow | from typing import Any, TypeVar
class CommandWorkflow:
"""Manages a sequence of steps for complex commands."""
def __init__(self, name: str):
self.name = name
self.steps: list[WorkflowStep] = []
self.current_step = 0
def add_step(self, step: WorkflowStep) -> None:
"""Add a... |
class CommandWorkflow:
'''Manages a sequence of steps for complex commands.'''
def __init__(self, name: str):
pass
def add_step(self, step: WorkflowStep) -> None:
'''Add a step to the workflow.'''
pass
def execute_step(self, step_index: int, executor: callable) -> bool:
... | 6 | 5 | 15 | 2 | 9 | 3 | 2 | 0.39 | 0 | 9 | 1 | 0 | 5 | 3 | 5 | 5 | 80 | 16 | 46 | 15 | 39 | 18 | 30 | 12 | 23 | 5 | 0 | 3 | 9 |
326,245 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/base.py | khive.cli.base.ConfigurableCLICommand | from typing import Any, TypeVar
from abc import ABC, abstractmethod
from pathlib import Path
class ConfigurableCLICommand(BaseCLICommand):
"""
Base class for commands that use TOML configuration files.
Provides standardized configuration loading and merging.
"""
@property
@abstractmethod
... |
class ConfigurableCLICommand(BaseCLICommand):
'''
Base class for commands that use TOML configuration files.
Provides standardized configuration loading and merging.
'''
@property
@abstractmethod
def config_filename(self) -> str:
'''Return the name of the configuration file (e.g., '... | 8 | 4 | 4 | 0 | 3 | 1 | 1 | 0.62 | 1 | 4 | 0 | 2 | 3 | 0 | 3 | 33 | 26 | 5 | 13 | 9 | 5 | 8 | 9 | 7 | 5 | 1 | 5 | 0 | 3 |
326,246 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/base.py | khive.cli.base.FileBasedCLICommand | import argparse
class FileBasedCLICommand(BaseCLICommand):
"""
Base class for commands that work with specific files or file patterns.
Adds common file-related arguments and validation.
"""
def _add_file_arguments(self, parser: argparse.ArgumentParser) -> None:
"""Add common file-related ... |
class FileBasedCLICommand(BaseCLICommand):
'''
Base class for commands that work with specific files or file patterns.
Adds common file-related arguments and validation.
'''
def _add_file_arguments(self, parser: argparse.ArgumentParser) -> None:
'''Add common file-related arguments.'''
... | 2 | 2 | 7 | 0 | 6 | 1 | 1 | 0.71 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 31 | 14 | 2 | 7 | 2 | 5 | 5 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
326,247 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/base.py | khive.cli.base.GitBasedCLICommand | import argparse
from pathlib import Path
from khive.utils import BaseConfig, die, get_project_root, info_msg, load_toml_config, print_json_result, validate_directory
class GitBasedCLICommand(ConfigurableCLICommand):
"""
Base class for commands that work with Git repositories.
Adds Git-specific validation ... |
class GitBasedCLICommand(ConfigurableCLICommand):
'''
Base class for commands that work with Git repositories.
Adds Git-specific validation and helper methods.
'''
def _validate_args(self, args: argparse.Namespace) -> None:
'''Validate that we're in a Git repository.'''
pass
d... | 3 | 3 | 14 | 3 | 9 | 2 | 3 | 0.42 | 1 | 4 | 0 | 0 | 2 | 0 | 2 | 35 | 36 | 9 | 19 | 6 | 15 | 8 | 15 | 6 | 11 | 3 | 6 | 1 | 5 |
326,248 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/base.py | khive.cli.base.WorkflowStep | class WorkflowStep:
"""Represents a single step in a command workflow."""
def __init__(self, name: str, description: str, required: bool=True):
self.name = name
self.description = description
self.required = required
self.completed = False
self.error: str | None = None | class WorkflowStep:
'''Represents a single step in a command workflow.'''
def __init__(self, name: str, description: str, required: bool=True):
pass | 2 | 1 | 6 | 0 | 6 | 0 | 1 | 0.14 | 0 | 2 | 0 | 0 | 1 | 5 | 1 | 1 | 9 | 1 | 7 | 7 | 5 | 1 | 7 | 7 | 5 | 1 | 0 | 0 | 1 |
326,249 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/khive_clean.py | khive.cli.khive_clean.CleanConfig | from pathlib import Path
from dataclasses import dataclass, field
@dataclass
class CleanConfig:
project_root: Path
protected_branch_patterns: list[str] = field(default_factory=lambda: ['release/*', 'develop'])
default_remote: str = 'origin'
strict_pull_on_default: bool = False
all_merged_default_ba... | @dataclass
class CleanConfig:
@property
def khive_config_dir(self) -> Path:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0.14 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 17 | 2 | 14 | 10 | 11 | 2 | 11 | 9 | 9 | 1 | 0 | 0 | 1 |
326,250 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/khive_commit.py | khive.cli.khive_commit.CommitConfig | from pathlib import Path
import re
from dataclasses import dataclass, field
@dataclass
class CommitConfig:
project_root: Path
default_push: bool = True
allow_empty_commits: bool = False
conventional_commit_types: list[str] = field(default_factory=lambda: ['feat', 'fix', 'build', 'chore', 'ci', 'docs', ... | @dataclass
class CommitConfig:
@property
def khive_config_dir(self) -> Path:
pass
@property
def conventional_commit_regex(self) -> re.Pattern:
pass | 6 | 0 | 5 | 0 | 4 | 1 | 2 | 0.14 | 0 | 2 | 0 | 0 | 2 | 0 | 2 | 2 | 43 | 3 | 37 | 16 | 32 | 5 | 19 | 14 | 16 | 2 | 0 | 1 | 3 |
326,251 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/khive_mcp.py | khive.cli.khive_mcp.MCPCommand | from typing import Any
import shutil
from fastmcp.client import Client
import argparse
from contextlib import asynccontextmanager
from fastmcp.client.transports import PythonStdioTransport, SSETransport, StdioTransport, StreamableHttpTransport
import asyncio
import json
from .base import BaseCLICommand, CLIResult, cli_... | @cli_command('mcp')
class MCPCommand(BaseCLICommand):
'''Manage MCP servers using FastMCP.'''
def __init__(self):
pass
def _check_fastmcp(self):
'''Check if FastMCP is installed.'''
pass
def _add_arguments(self, parser: argparse.ArgumentParser) -> None:
'''Add MCP-spec... | 28 | 25 | 42 | 5 | 32 | 6 | 7 | 0.18 | 1 | 25 | 3 | 0 | 25 | 2 | 25 | 55 | 1,088 | 143 | 803 | 142 | 757 | 148 | 495 | 113 | 460 | 19 | 5 | 8 | 171 |
326,252 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/khive_mcp.py | khive.cli.khive_mcp.MCPConfig | from dataclasses import dataclass, field
from pathlib import Path
from khive.utils import BaseConfig, die, error_msg, info_msg, log_msg, warn_msg
@dataclass
class MCPConfig(BaseConfig):
"""Configuration for MCP command."""
servers: dict[str, MCPServerConfig] = field(default_factory=dict)
@property
def... | @dataclass
class MCPConfig(BaseConfig):
'''Configuration for MCP command.'''
@property
def mcps_config_file(self) -> Path:
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.2 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 3 | 8 | 2 | 5 | 4 | 2 | 1 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
326,253 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/khive_mcp.py | khive.cli.khive_mcp.MCPServerConfig | from dataclasses import dataclass, field
@dataclass
class MCPServerConfig:
"""Configuration for an MCP server."""
name: str
command: str
args: list[str] = field(default_factory=list)
env: dict[str, str] = field(default_factory=dict)
always_allow: list[str] = field(default_factory=list)
disa... | @dataclass
class MCPServerConfig:
'''Configuration for an MCP server.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 1 | 12 | 10 | 11 | 4 | 12 | 10 | 11 | 0 | 0 | 0 | 0 |
326,254 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/khive_mcp.py | khive.cli.khive_mcp.StdioTransportFixed | import platform
import os
from fastmcp.client.transports import PythonStdioTransport, SSETransport, StdioTransport, StreamableHttpTransport
import asyncio
class StdioTransportFixed(StdioTransport):
"""Fixed StdioTransport that handles buffering properly."""
def __init__(self, command: str, args: list[str] | N... |
class StdioTransportFixed(StdioTransport):
'''Fixed StdioTransport that handles buffering properly.'''
def __init__(self, command: str, args: list[str] | None=None, env: dict[str, str] | None=None, buffer_size: int=65536):
pass
async def start(self):
'''Start the subprocess with proper bu... | 3 | 2 | 27 | 3 | 21 | 5 | 2 | 0.24 | 1 | 6 | 0 | 0 | 2 | 8 | 2 | 2 | 57 | 7 | 42 | 20 | 32 | 10 | 18 | 12 | 14 | 2 | 1 | 1 | 3 |
326,255 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/khive_new_doc.py | khive.cli.khive_new_doc.NewDocCommand | from khive.utils import ensure_directory, safe_write_file
import json
import argparse
from datetime import datetime
from pathlib import Path
from khive.cli.base import CLIResult, ConfigurableCLICommand, cli_command
@cli_command('new-doc')
class NewDocCommand(ConfigurableCLICommand):
"""Create documents from templa... | @cli_command('new-doc')
class NewDocCommand(ConfigurableCLICommand):
'''Create documents from templates - simple and explicit.'''
def _create_config(self, args: argparse.Namespace) -> NewDocConfig:
'''Create configuration from arguments.'''
pass
def _add_arguments(self, parser: argparse.Ar... | 9 | 8 | 50 | 6 | 38 | 6 | 7 | 0.15 | 1 | 31 | 8 | 0 | 24 | 0 | 24 | 57 | 1,222 | 173 | 915 | 218 | 840 | 139 | 499 | 167 | 469 | 33 | 6 | 7 | 157 |
326,256 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/khive_new_doc.py | khive.cli.khive_new_doc.NewDocConfig | from pathlib import Path
from dataclasses import dataclass
@dataclass
class NewDocConfig:
"""Configuration for new-doc command."""
project_root: Path = Path.cwd()
templates_dir: Path = None
def __post_init__(self):
if self.templates_dir is None:
import khive
khive_path ... | @dataclass
class NewDocConfig:
'''Configuration for new-doc command.'''
def __post_init__(self):
pass | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0.21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 18 | 2 | 14 | 8 | 13 | 3 | 8 | 8 | 7 | 0 | 1 | 0 | 0 |
326,257 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/cli/khive_pr.py | khive.cli.khive_pr.PRConfig | from pathlib import Path
from dataclasses import dataclass, field
@dataclass
class PRConfig:
project_root: Path
default_base_branch: str = 'main'
default_to_draft: bool = False
default_reviewers: list[str] = field(default_factory=list)
default_assignees: list[str] = field(default_factory=list)
... | @dataclass
class PRConfig:
@property
def khive_config_dir(self) -> Path:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0.07 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 18 | 2 | 15 | 13 | 12 | 1 | 14 | 12 | 12 | 1 | 0 | 0 | 1 |
326,258 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/core/time_policy.py | khive.core.time_policy.TimePolicy | import datetime
class TimePolicy:
"""Centralized timezone policy for consistent temporal behavior"""
UTC = datetime.timezone.utc
LOCAL = datetime.datetime.now().astimezone().tzinfo
@classmethod
def now_utc(cls) -> datetime.datetime:
"""Get current time in UTC for internal operations
... |
class TimePolicy:
'''Centralized timezone policy for consistent temporal behavior'''
@classmethod
def now_utc(cls) -> datetime.datetime:
'''Get current time in UTC for internal operations
Use for: logging, session management, internal timestamps
Replaces: datetime.now() -> datetime.... | 17 | 9 | 9 | 1 | 3 | 5 | 1 | 1.15 | 0 | 4 | 0 | 0 | 0 | 0 | 8 | 8 | 92 | 20 | 34 | 20 | 17 | 39 | 26 | 12 | 17 | 2 | 0 | 1 | 11 |
326,259 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/daemon/client.py | khive.daemon.client.KhiveDaemonClient | import httpx
import asyncio
from concurrent.futures import ThreadPoolExecutor
import time
from typing import Any, Optional
import os
class KhiveDaemonClient:
"""High-performance client for communicating with khive daemon with async optimizations."""
def __init__(self, base_url: str=DAEMON_URL, enable_async: b... |
class KhiveDaemonClient:
'''High-performance client for communicating with khive daemon with async optimizations.'''
def __init__(self, base_url: str=DAEMON_URL, enable_async: bool=False):
pass
def __enter__(self):
pass
def __exit__(self, *args):
pass
async def __aenter_... | 38 | 33 | 11 | 0 | 10 | 1 | 3 | 0.1 | 0 | 6 | 0 | 0 | 14 | 2 | 14 | 14 | 164 | 14 | 136 | 37 | 121 | 14 | 114 | 28 | 99 | 5 | 0 | 1 | 35 |
326,260 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/daemon/server.py | khive.daemon.server.CoordinateCompleteRequest | from pydantic import BaseModel
class CoordinateCompleteRequest(BaseModel):
task_id: str
agent_id: str
output: str
artifacts: list[str] = [] |
class CoordinateCompleteRequest(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 0 | 4 | 2 | 3 | 0 | 4 | 2 | 3 | 0 | 5 | 0 | 0 |
326,261 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/daemon/server.py | khive.daemon.server.InsightsRequest | from pydantic import BaseModel
class InsightsRequest(BaseModel):
task_description: str
agent_id: str |
class InsightsRequest(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
326,262 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/prompts/complexity_heuristics.py | khive.prompts.complexity_heuristics.Request | class Request:
"""Request model for complexity assessment."""
def __init__(self, text: str):
self.text = text.lower()
self.original = text | class Request:
'''Request model for complexity assessment.'''
def __init__(self, text: str):
pass | 2 | 1 | 3 | 0 | 3 | 1 | 1 | 0.5 | 0 | 1 | 0 | 0 | 1 | 2 | 1 | 1 | 6 | 1 | 4 | 4 | 2 | 2 | 4 | 4 | 2 | 1 | 0 | 0 | 1 |
326,263 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/security/error_handler.py | khive.security.error_handler.SecureErrorHandler | class SecureErrorHandler:
"""Context manager for secure error handling"""
def __init__(self, operation_context: str):
self.context = operation_context
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
if exc_val:
safe_message = sanitiz... | class SecureErrorHandler:
'''Context manager for secure error handling'''
def __init__(self, operation_context: str):
pass
def __enter__(self):
pass
def __exit__(self, exc_type, exc_val, exc_tb):
pass | 4 | 1 | 4 | 0 | 3 | 1 | 1 | 0.3 | 0 | 2 | 0 | 0 | 3 | 1 | 3 | 3 | 16 | 3 | 10 | 6 | 6 | 3 | 10 | 6 | 6 | 2 | 0 | 1 | 4 |
326,264 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/security/secure_models.py | khive.security.secure_models.SecureAgentRequestMixin | from pydantic import field_validator
from .validation import validate_context_security, validate_domains_security, validate_role_security
class SecureAgentRequestMixin:
"""Security validation mixin for AgentRequest"""
@field_validator('instruct', mode='before')
def validate_instruct_secure(cls, v):
... |
class SecureAgentRequestMixin:
'''Security validation mixin for AgentRequest'''
@field_validator('instruct', mode='before')
def validate_instruct_secure(cls, v):
pass | 3 | 1 | 31 | 4 | 22 | 5 | 9 | 0.25 | 0 | 4 | 0 | 1 | 1 | 0 | 1 | 1 | 35 | 5 | 24 | 5 | 21 | 6 | 20 | 4 | 18 | 9 | 0 | 2 | 9 |
326,265 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/security/secure_models.py | khive.security.secure_models.SecureComposerRequestMixin | from pydantic import field_validator
from .validation import validate_context_security, validate_domains_security, validate_role_security
class SecureComposerRequestMixin:
"""Security validation mixin for ComposerRequest"""
@field_validator('role', mode='before')
def validate_role_secure(cls, v):
... |
class SecureComposerRequestMixin:
'''Security validation mixin for ComposerRequest'''
@field_validator('role', mode='before')
def validate_role_secure(cls, v):
pass
@field_validator('domains', mode='before')
def validate_domains_secure(cls, v):
pass
@field_validator('context', m... | 7 | 1 | 4 | 0 | 4 | 0 | 2 | 0.06 | 0 | 1 | 0 | 1 | 3 | 0 | 3 | 3 | 20 | 3 | 16 | 7 | 9 | 1 | 13 | 4 | 9 | 2 | 0 | 1 | 6 |
326,266 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/security/validation.py | khive.security.validation.SecurityValidationError | class SecurityValidationError(Exception):
"""Security validation failure - sanitized error messages""" | class SecurityValidationError(Exception):
'''Security validation failure - sanitized error messages'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
326,267 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/toolkits/base/settings.py | khive.toolkits.base.settings.BaseKhiveSettings | from typing import Any, ClassVar
from pydantic import SecretStr
from pydantic_settings import BaseSettings, SettingsConfigDict
class BaseKhiveSettings(BaseSettings):
model_config = SettingsConfigDict(env_file=('.env', '.env.local', '.secrets.env'), env_file_encoding='utf-8', case_sensitive=False, extra='ignore', c... |
class BaseKhiveSettings(BaseSettings):
def get_secret(self, key_name: str) -> str:
'''Get the secret value for a given key name.'''
pass | 2 | 1 | 12 | 2 | 9 | 1 | 4 | 0.11 | 1 | 4 | 0 | 1 | 1 | 0 | 1 | 1 | 24 | 4 | 18 | 5 | 16 | 2 | 12 | 5 | 10 | 4 | 1 | 1 | 4 |
326,268 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/toolkits/cc/settings.py | khive.toolkits.cc.settings.CCSettings | from khive.toolkits.base.settings import BaseKhiveSettings
from pydantic import field_validator
from pydantic_settings import SettingsConfigDict
class CCSettings(BaseKhiveSettings):
"""Configuration settings for Claude Code flows."""
model_config = SettingsConfigDict(env_file=('.env', '.env.local', '.secrets.e... |
class CCSettings(BaseKhiveSettings):
'''Configuration settings for Claude Code flows.'''
@field_validator('ORCHESTRATOR_VERBOSE', 'ORCHESTRATOR_AUTO_FINISH', 'ORCHESTRATOR_SKIP_PERMISSIONS', 'TASK_VERBOSE', 'TASK_AUTO_FINISH', 'TASK_SKIP_PERMISSIONS', mode='before')
def parse_bool(cls, value):
'''P... | 3 | 2 | 5 | 0 | 4 | 1 | 2 | 0.18 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 2 | 45 | 6 | 33 | 23 | 22 | 6 | 17 | 14 | 15 | 2 | 2 | 1 | 2 |
326,269 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/utils.py | khive.utils.BaseConfig | from typing import TYPE_CHECKING, Any, ClassVar, TypeVar
from pathlib import Path
from dataclasses import dataclass, field
@dataclass
class BaseConfig:
"""Base configuration class with common CLI options."""
project_root: Path
json_output: bool = False
dry_run: bool = False
verbose: bool = False
... | @dataclass
class BaseConfig:
'''Base configuration class with common CLI options.'''
@property
def khive_config_dir(self) -> Path:
'''Path to the .khive configuration directory.'''
pass
def update_from_cli_args(self, args: Any) -> None:
'''Update configuration from CLI arguments... | 5 | 3 | 8 | 1 | 6 | 2 | 3 | 0.24 | 0 | 2 | 0 | 2 | 2 | 0 | 2 | 2 | 25 | 4 | 17 | 8 | 12 | 4 | 16 | 7 | 12 | 4 | 0 | 1 | 5 |
326,270 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/utils.py | khive.utils.CommandResult | from dataclasses import dataclass, field
@dataclass
class CommandResult:
"""Result of a command execution."""
command: list[str]
exit_code: int
stdout: str
stderr: str
success: bool
duration: float = 0.0 | @dataclass
class CommandResult:
'''Result of a command execution.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 1 | 7 | 2 | 6 | 1 | 7 | 2 | 6 | 0 | 0 | 0 | 0 |
326,271 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/utils.py | khive.utils.EventBroadcaster | from typing import TYPE_CHECKING, Any, ClassVar, TypeVar
import asyncio
class EventBroadcaster:
"""Real-time event broadcasting system for hook events."""
_instance: ClassVar[EventBroadcaster | None] = None
_subscribers: ClassVar[list[Callable[[Any], None]]] = []
_async_subscribers: ClassVar[list[Calla... |
class EventBroadcaster:
'''Real-time event broadcasting system for hook events.'''
def __new__(cls):
pass
@classmethod
def subscribe(cls, callback: Callable[[Any], None]) -> None:
'''Subscribe to hook events with sync callback.'''
pass
@classmethod
def subscribe_async(c... | 12 | 6 | 7 | 0 | 5 | 1 | 3 | 0.2 | 0 | 5 | 0 | 1 | 1 | 0 | 6 | 6 | 57 | 8 | 41 | 17 | 29 | 8 | 35 | 11 | 28 | 6 | 0 | 3 | 16 |
326,272 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/utils.py | khive.utils.StackConfig | from dataclasses import dataclass, field
@dataclass
class StackConfig:
"""Configuration for stack-based operations (legacy compatibility)."""
name: str
cmd: str
check_cmd: str
include: list[str] = field(default_factory=list)
exclude: list[str] = field(default_factory=list)
enabled: bool = T... | @dataclass
class StackConfig:
'''Configuration for stack-based operations (legacy compatibility).'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 1 | 7 | 4 | 6 | 1 | 7 | 4 | 6 | 0 | 0 | 0 | 0 |
326,273 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/atomic/analyze_issue_requirements.py | orchestration.atomic.analyze_issue_requirements.RequirementsAnalysis | from .base import CONFIDENCE_PROMPT, QUALITY_PROMPT
from pydantic import BaseModel, Field
class RequirementsAnalysis(BaseModel):
context_analysis: str = Field(description='\n What is the complete context of this request? Analyze the issue systematically:\n - What problem is being solved and for whom?... |
class RequirementsAnalysis(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 58 | 6 | 47 | 6 | 46 | 5 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
326,274 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/atomic/base.py | orchestration.atomic.base.AtomicMetaPrompt | from typing import Protocol
class AtomicMetaPrompt(Protocol):
"""Protocol defining the atomic meta-prompting pattern"""
context_analysis: str
'Context Analysis - Understanding inputs and scope'
systematic_breakdown: str
'Systematic Breakdown - Methodical decomposition'
critical_assessment: str
... |
class AtomicMetaPrompt(Protocol):
'''Protocol defining the atomic meta-prompting pattern'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 24 | 17 | 5 | 6 | 1 | 5 | 6 | 6 | 1 | 5 | 0 | 5 | 0 | 0 |
326,275 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/atomic/generate_documentation.py | orchestration.atomic.generate_documentation.DocumentationPackage | from pydantic import BaseModel, Field
from .base import CONFIDENCE_PROMPT, QUALITY_PROMPT
class DocumentationPackage(BaseModel):
"""AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done fir... |
class DocumentationPackage(BaseModel):
'''AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done first
- DO NOT submit the deliverable if the work is not done
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 65 | 8 | 47 | 6 | 46 | 10 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
326,276 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/atomic/identify_integration_points.py | orchestration.atomic.identify_integration_points.IntegrationStrategy | from .base import CONFIDENCE_PROMPT, QUALITY_PROMPT
from pydantic import BaseModel, Field
class IntegrationStrategy(BaseModel):
"""AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done firs... |
class IntegrationStrategy(BaseModel):
'''AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done first
- DO NOT submit the deliverable if the work is not done
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 65 | 8 | 47 | 6 | 46 | 10 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
326,277 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/atomic/implement_feature_increment.py | orchestration.atomic.implement_feature_increment.FeatureImplementation | from pydantic import BaseModel, Field
from .base import CONFIDENCE_PROMPT, QUALITY_PROMPT
class FeatureImplementation(BaseModel):
"""AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done fi... |
class FeatureImplementation(BaseModel):
'''AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done first
- DO NOT submit the deliverable if the work is not done
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 65 | 8 | 47 | 6 | 46 | 10 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
326,278 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/atomic/synthesize_work.py | orchestration.atomic.synthesize_work.WorkSynthesis | from .base import CONFIDENCE_PROMPT, QUALITY_PROMPT
from pydantic import BaseModel, Field
class WorkSynthesis(BaseModel):
"""AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done first
... |
class WorkSynthesis(BaseModel):
'''AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done first
- DO NOT submit the deliverable if the work is not done
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 68 | 8 | 50 | 6 | 49 | 10 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
326,279 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/atomic/understand_code_context.py | orchestration.atomic.understand_code_context.CodeContextAnalysis | from .base import CONFIDENCE_PROMPT, QUALITY_PROMPT
from pydantic import BaseModel, Field
class CodeContextAnalysis(BaseModel):
"""AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done firs... |
class CodeContextAnalysis(BaseModel):
'''AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done first
- DO NOT submit the deliverable if the work is not done
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 68 | 8 | 50 | 6 | 49 | 10 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
326,280 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/atomic/validate_requirement_satisfaction.py | orchestration.atomic.validate_requirement_satisfaction.RequirementValidation | from .base import CONFIDENCE_PROMPT, QUALITY_PROMPT
from pydantic import BaseModel, Field
class RequirementValidation(BaseModel):
"""AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done fi... |
class RequirementValidation(BaseModel):
'''AFTER, doing your other regular requirements. Present the a deliverable in the
following format
- DO NOT only submit the deliverable, the actual work must need to be done first
- DO NOT submit the deliverable if the work is not done
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 65 | 8 | 47 | 6 | 46 | 10 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
326,281 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/issue_parser.py | orchestration.issue_parser.IssueMarkdownParser | import yaml
from pathlib import Path
import re
from .parts import FanoutConfig, FanoutPatterns, IssuePlan, RefinementConfig
class IssueMarkdownParser:
"""Parser for markdown-based issue definitions"""
def __init__(self, issues_dir: Path):
self.issues_dir = Path(issues_dir)
def parse_file(self, fi... |
class IssueMarkdownParser:
'''Parser for markdown-based issue definitions'''
def __init__(self, issues_dir: Path):
pass
def parse_file(self, file_path: Path) -> ParsedIssue:
'''Parse a single markdown issue file'''
pass
def _parse_markdown_sections(self, content: str) -> dict... | 7 | 6 | 23 | 2 | 18 | 3 | 2 | 0.19 | 0 | 10 | 5 | 0 | 6 | 1 | 6 | 6 | 144 | 20 | 108 | 28 | 101 | 21 | 46 | 27 | 39 | 3 | 0 | 2 | 14 |
326,282 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/issue_parser.py | orchestration.issue_parser.ParsedIssue | from dataclasses import dataclass
@dataclass
class ParsedIssue:
"""Parsed issue data from markdown"""
issue_num: int
flow_name: str
pattern: str
project_phase: str
is_critical_path: bool
is_experimental: bool
blocks_issues: list[int]
enables_issues: list[int]
dependencies: list[... | @dataclass
class ParsedIssue:
'''Parsed issue data from markdown'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 29 | 3 | 22 | 7 | 21 | 4 | 22 | 7 | 21 | 0 | 0 | 0 | 0 |
326,283 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/issue_runner.py | orchestration.issue_runner.IssueRunner | from .workflows.factory import get_orc_session
from lionagi import Builder, ln
from .parts import IssuePlan
from .issue_parser import load_all_issues
from pathlib import Path
class IssueRunner:
def __init__(self, issue_dir: str | Path, delay_before_start: float=0.0, max_concurrent: int=3, throttle_period: float=1... |
class IssueRunner:
def __init__(self, issue_dir: str | Path, delay_before_start: float=0.0, max_concurrent: int=3, throttle_period: float=10):
pass
def get_issue_plan(self, issue_num: str | int, /) -> IssuePlan:
'''Get the issue plan by issue number.'''
pass
def get_dep_on(self, ... | 7 | 3 | 9 | 0 | 8 | 1 | 2 | 0.06 | 0 | 8 | 1 | 0 | 6 | 6 | 6 | 6 | 60 | 7 | 50 | 25 | 37 | 3 | 30 | 19 | 23 | 2 | 0 | 1 | 10 |
326,284 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/orchestrator.py | orchestration.orchestrator.LionOrchestrator | import json
from lionagi.fields import Instruct
from .parts import AgentRequest, ComposerRequest, FanoutResponse, FanoutWithGatedRefinementResponse, GateOptions, OrchestrationPlan
from khive.services.composition import composer_service
from pathlib import Path
from khive.toolkits.cc.create_cc import create_orchestrator... |
class LionOrchestrator:
def __init__(self, flow_name: str):
pass
async def initialize(self, model: str | None=None, system: str | None=None):
pass
@property
def orc_branch(self):
pass
async def create_cc_branch(self, compose_request: ComposerRequest, agent_suffix: str='',... | 20 | 8 | 42 | 5 | 32 | 5 | 4 | 0.15 | 0 | 21 | 7 | 0 | 11 | 3 | 14 | 14 | 643 | 86 | 484 | 176 | 407 | 73 | 219 | 116 | 196 | 14 | 0 | 4 | 61 |
326,285 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.AgentRequest | from lionagi.fields import Instruct
from khive._types import BaseModel
from khive.security.secure_models import SecureAgentRequestMixin
from khive.services.composition.parts import AgentRole, ComposerRequest
class AgentRequest(SecureAgentRequestMixin, BaseModel):
instruct: Instruct
compose_request: ComposerReq... |
class AgentRequest(SecureAgentRequestMixin, BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 5 | 0 | 4 | 2 | 3 | 1 | 4 | 2 | 3 | 0 | 2 | 0 | 0 |
326,286 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.BaseGate | from pydantic import Field, field_validator, model_validator
from khive._types import BaseModel
class BaseGate(BaseModel):
"""Base quality gate with pass/fail and reasoning"""
threshold_met: bool = Field(description="Does the work meet the requirements appropriate for THIS issue's scope and current project pha... |
class BaseGate(BaseModel):
'''Base quality gate with pass/fail and reasoning'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 1 | 8 | 3 | 7 | 1 | 3 | 3 | 2 | 0 | 2 | 0 | 0 |
326,287 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.ComplexityAssessment | from khive._types import BaseModel
from pydantic import Field, field_validator, model_validator
class ComplexityAssessment(BaseModel):
"""Complexity assessment with overall score and explanation."""
overall_complexity_score: float = Field(ge=0.0, le=1.0, description='Overall complexity score (0.0=trivial, 0.3=... |
class ComplexityAssessment(BaseModel):
'''Complexity assessment with overall score and explanation.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 1 | 12 | 4 | 11 | 1 | 4 | 4 | 3 | 0 | 2 | 0 | 0 |
326,288 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.FanoutConfig | from khive._types import BaseModel
class FanoutConfig(BaseModel):
initial_desc: str
'Description for initial phase'
synth_instruction: str
'Instruction for synthesis phase to generate deliverables'
planning_instruction: str
'Instruction for planning phase to guide agent actions'
context: st... |
class FanoutConfig(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 3 | 5 | 2 | 4 | 4 | 5 | 2 | 4 | 0 | 2 | 0 | 0 |
326,289 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.FanoutPatterns | from lionagi.utils import Enum, create_path
class FanoutPatterns(str, Enum):
"""Enumeration for orchestration patterns used in issues"""
__slots__ = ()
FANOUT = 'fanout'
W_REFINEMENT = 'fanout_with_gated_refinement'
COMPOSITE = 'composite' |
class FanoutPatterns(str, Enum):
'''Enumeration for orchestration patterns used in issues'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 66 | 8 | 2 | 5 | 5 | 4 | 1 | 5 | 5 | 4 | 0 | 2 | 0 | 0 |
326,290 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.FanoutResponse | from typing import TYPE_CHECKING, Any, ClassVar, Literal
from khive._types import BaseModel
from pydantic import Field, field_validator, model_validator
class FanoutResponse(BaseModel):
synth_node: Any | None = Field(None, exclude=True)
'The synthesis node from the orchestration graph, if applicable'
synth... |
class FanoutResponse(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 12 | 3 | 5 | 5 | 4 | 4 | 5 | 5 | 4 | 0 | 2 | 0 | 0 |
326,291 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.FanoutWithGatedRefinementResponse | from typing import TYPE_CHECKING, Any, ClassVar, Literal
from pydantic import Field, field_validator, model_validator
class FanoutWithGatedRefinementResponse(FanoutResponse):
final_gate: Any | None = Field(None, exclude=True)
'The final gate node from the orchestration graph, if applicable'
qa_branch: Any ... |
class FanoutWithGatedRefinementResponse(FanoutResponse):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 3 | 5 | 5 | 4 | 4 | 5 | 5 | 4 | 0 | 3 | 0 | 0 |
326,292 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.GateComponent | from pydantic import Field, field_validator, model_validator
from khive._types import BaseModel
class GateComponent(BaseModel):
is_acceptable: bool
'Does this component meet requirements appropriate for the current context and phase?'
problems: list[str] = Field(default_factory=list)
'List specific pro... |
class GateComponent(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.67 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 3 | 2 | 2 | 2 | 3 | 2 | 2 | 0 | 2 | 0 | 0 |
326,293 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.Issue | from lionagi.protocols.types import Node
from lionagi.utils import Enum, create_path
import json
from typing import TYPE_CHECKING, Any, ClassVar, Literal
import aiofiles
class Issue(Node):
_table_name: ClassVar[str] = 'issues'
content: IssueContent
@staticmethod
def create_file_path(issue_num: IssueNu... |
class Issue(Node):
@staticmethod
def create_file_path(issue_num: IssueNum, exists_ok: bool=True) -> Path:
pass
@staticmethod
def issue_exists(issue_num: IssueNum) -> bool:
'''Check if an issue with the given number exists in the file'''
pass
@classmethod
async def get(c... | 12 | 1 | 8 | 0 | 7 | 0 | 2 | 0.04 | 1 | 6 | 3 | 0 | 2 | 0 | 6 | 6 | 60 | 8 | 50 | 20 | 37 | 2 | 34 | 14 | 26 | 2 | 1 | 2 | 10 |
326,294 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.IssueContent | from khive._types import BaseModel
from typing import TYPE_CHECKING, Any, ClassVar, Literal
class IssueContent(BaseModel):
issue_num: IssueNum
'GitHub issue number or string identifier'
issue_plan: IssuePlan
'The orchestration plan for this issue'
issue_result: IssueResult
'The result of execut... |
class IssueContent(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.64 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 25 | 7 | 11 | 6 | 10 | 7 | 9 | 6 | 8 | 0 | 2 | 0 | 0 |
326,295 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.IssueExecution | from khive._types import BaseModel
class IssueExecution(BaseModel):
success: bool
result: FanoutResponse | FanoutWithGatedRefinementResponse
is_redo: bool = False |
class IssueExecution(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 2 | 3 | 0 | 4 | 2 | 3 | 0 | 2 | 0 | 0 |
326,296 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.IssuePlan | from typing import TYPE_CHECKING, Any, ClassVar, Literal
from pydantic import Field, field_validator, model_validator
from khive._types import BaseModel
class IssuePlan(BaseModel):
issue_num: IssueNum
'github issue number'
flow_name: str
'The name of the flow to execute for this issue'
system: str
... |
class IssuePlan(BaseModel):
@model_validator(mode='after')
def validate_conditional_refinement(self):
pass | 3 | 0 | 12 | 1 | 11 | 0 | 4 | 0.52 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 59 | 15 | 29 | 12 | 26 | 15 | 21 | 11 | 19 | 4 | 2 | 2 | 4 |
326,297 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.IssueResult | from khive._types import BaseModel
from pydantic import Field, field_validator, model_validator
class IssueResult(BaseModel):
issue_num: IssueNum
executions: list[IssueExecution] = Field(default_factory=list)
success: bool = False
@field_validator('issue_num', mode='before')
def validate_issue_num... |
class IssueResult(BaseModel):
@field_validator('issue_num', mode='before')
def validate_issue_num(cls, v: str | int) -> str:
pass | 3 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 1 | 9 | 5 | 6 | 0 | 8 | 4 | 6 | 2 | 2 | 1 | 2 |
326,298 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.OrchestrationPlan | from khive._types import BaseModel
from typing import TYPE_CHECKING, Any, ClassVar, Literal
class OrchestrationPlan(BaseModel):
"""Plan for orchestrating agent tasks. Each plan is meant for either concurrent
or sequential execution, default is concurrent for efficiency. Remember to instruct agents
to actua... |
class OrchestrationPlan(BaseModel):
'''Plan for orchestrating agent tasks. Each plan is meant for either concurrent
or sequential execution, default is concurrent for efficiency. Remember to instruct agents
to actually do work, not just analyze. Every agent must produce at least one markdown
deliverabl... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 3 | 4 | 2 | 3 | 8 | 4 | 2 | 3 | 0 | 2 | 0 | 0 |
326,299 | khive-ai/khive.d | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/khive-ai_khive.d/src/khive/services/orchestration/parts.py | orchestration.parts.RefinementConfig | from khive._types import BaseModel
from khive.services.composition.parts import AgentRole, ComposerRequest
from typing import TYPE_CHECKING, Any, ClassVar, Literal
class RefinementConfig(BaseModel):
refinement_desc: str
'Description for refinement phase if quality insufficient'
critic_domain: str = 'softwa... |
class RefinementConfig(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 4 | 6 | 4 | 5 | 6 | 6 | 4 | 5 | 0 | 2 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.