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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
327,800 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/cli/src/flux0_cli/main.py | flux0_cli.main.Flux0CLIContext | from flux0_client import Flux0Client
class Flux0CLIContext:
"""Typed context object for Click CLI."""
def __init__(self) -> None:
self.client: Flux0Client = Flux0Client() |
class Flux0CLIContext:
'''Typed context object for Click CLI.'''
def __init__(self) -> None:
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.33 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 5 | 1 | 3 | 3 | 1 | 1 | 3 | 3 | 1 | 1 | 0 | 0 | 1 |
327,801 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/agents.py | flux0_core.agents.Agent | from typing import List, NewType, Optional, Sequence, TypedDict
from dataclasses import dataclass
from datetime import datetime
@dataclass(frozen=True)
class Agent:
id: AgentId
type: AgentType
name: str
description: Optional[str]
created_at: datetime | @dataclass(frozen=True)
class Agent:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 0 | 0 | 0 |
327,802 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/agents.py | flux0_core.agents.AgentStore | from abc import ABC, abstractmethod
from typing import List, NewType, Optional, Sequence, TypedDict
from datetime import datetime
class AgentStore(ABC):
@abstractmethod
async def create_agent(self, name: str, type: AgentType, description: Optional[str]=None, created_at: Optional[datetime]=None) -> Agent:
... |
class AgentStore(ABC):
@abstractmethod
async def create_agent(self, name: str, type: AgentType, description: Optional[str]=None, created_at: Optional[datetime]=None) -> Agent:
pass
@abstractmethod
async def list_agents(self, offset: int=0, limit: int=10, projection: Optional[List[str]]=None) -> Se... | 11 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 6 | 2 | 1 | 5 | 0 | 5 | 25 | 36 | 4 | 32 | 32 | 5 | 0 | 11 | 6 | 5 | 1 | 4 | 0 | 5 |
327,803 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/agents.py | flux0_core.agents.AgentUpdateParams | from typing import List, NewType, Optional, Sequence, TypedDict
class AgentUpdateParams(TypedDict, total=False):
name: str
description: Optional[str] |
class AgentUpdateParams(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
327,804 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/async_utils.py | flux0_core.async_utils.RWLock | from contextlib import asynccontextmanager
from typing import AsyncContextManager, AsyncIterator
import aiorwlock
class RWLock:
def __init__(self) -> None:
"""
Initializes a new instance of the ReaderWriterLock class.
The constructor creates an underlying `aiorwlock.RWLock` instance and
... |
class RWLock:
def __init__(self) -> None:
'''
Initializes a new instance of the ReaderWriterLock class.
The constructor creates an underlying `aiorwlock.RWLock` instance and
sets up the reader and writer locks.
'''
pass
@property
def reader_lock(self) -> Asy... | 10 | 3 | 13 | 2 | 4 | 6 | 1 | 1.53 | 0 | 0 | 0 | 0 | 3 | 2 | 3 | 3 | 62 | 14 | 19 | 13 | 9 | 29 | 15 | 9 | 9 | 1 | 0 | 1 | 5 |
327,805 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/background_tasks_service.py | flux0_core.background_tasks_service.BackgroundTaskService | from flux0_core.logging import Logger
import traceback
from typing import Any, Coroutine, Dict, Optional, Self, TypeAlias
import asyncio
class BackgroundTaskService:
"""A service for managing background tasks."""
def __init__(self, logger: Logger) -> None:
self._logger: Logger = logger
self._l... |
class BackgroundTaskService:
'''A service for managing background tasks.'''
def __init__(self, logger: Logger) -> None:
pass
async def __aenter__(self) -> Self:
pass
async def __aexit__(self, exc_type: Optional[type[BaseException]], exc_value: Optional[BaseException], tb: Optional[An... | 11 | 7 | 12 | 0 | 9 | 2 | 3 | 0.26 | 0 | 8 | 1 | 0 | 10 | 6 | 10 | 10 | 127 | 11 | 93 | 31 | 77 | 24 | 79 | 25 | 68 | 5 | 0 | 4 | 25 |
327,806 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/contextual_correlator.py | flux0_core.contextual_correlator.ContextualCorrelator | import contextvars
from flux0_core.ids import gen_id
from contextlib import contextmanager
from typing import Iterator
class ContextualCorrelator:
def __init__(self, delimiter: str='::', default: str='<main>') -> None:
self._instance_id: str = gen_id()
self._scopes: contextvars.ContextVar[str] = c... |
class ContextualCorrelator:
def __init__(self, delimiter: str='::', default: str='<main>') -> None:
pass
@contextmanager
def scope(self, scope_id: str) -> Iterator[None]:
'''
Enter a new correlation scope.
Each new scope is appended to the current one using the delimiter.
... | 6 | 2 | 9 | 0 | 6 | 3 | 2 | 0.43 | 0 | 1 | 0 | 0 | 3 | 4 | 3 | 3 | 33 | 3 | 21 | 14 | 15 | 9 | 16 | 12 | 12 | 2 | 0 | 1 | 5 |
327,807 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/logging.py | flux0_core.logging.ContextualLogger | import structlog
import asyncio
from flux0_core.contextual_correlator import ContextualCorrelator
import time
import contextvars
from structlog.types import EventDict
from structlog.typing import Processor
from flux0_core.ids import gen_id
from typing import Any, Dict, Iterator, Optional, override
import logging
from c... |
class ContextualLogger(Logger):
'''
A structured logger with support for correlation and scopes.
Correlation links related logs across systems that are part of the same context (e.g., HTTP Request), while scope provides finer-grained tracking within a process."
What is Corrleation?
Correlation refe... | 17 | 5 | 9 | 0 | 7 | 2 | 2 | 0.94 | 1 | 5 | 2 | 1 | 11 | 5 | 11 | 39 | 177 | 22 | 80 | 34 | 57 | 75 | 54 | 24 | 41 | 3 | 5 | 1 | 18 |
327,808 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/logging.py | flux0_core.logging.LogLevel | import logging
from enum import IntEnum, auto
class LogLevel(IntEnum):
DEBUG = auto()
INFO = auto()
WARNING = auto()
ERROR = auto()
CRITICAL = auto()
def logging_level(self) -> int:
return {LogLevel.DEBUG: logging.DEBUG, LogLevel.INFO: logging.INFO, LogLevel.WARNING: logging.WARNING, L... |
class LogLevel(IntEnum):
def logging_level(self) -> int:
pass | 2 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 56 | 15 | 1 | 14 | 7 | 12 | 0 | 8 | 7 | 6 | 1 | 3 | 0 | 1 |
327,809 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/logging.py | flux0_core.logging.Logger | from contextlib import contextmanager
from abc import ABC, abstractmethod
from typing import Any, Dict, Iterator, Optional, override
class Logger(ABC):
"""
Logging interface for structured logs with support for scopes and operation measurement.
"""
@abstractmethod
def set_level(self, level: LogLev... |
class Logger(ABC):
'''
Logging interface for structured logs with support for scopes and operation measurement.
'''
@abstractmethod
def set_level(self, level: LogLevel) -> None:
'''Set the logging level.'''
pass
@abstractmethod
def debug(self, message: str, *args: Any, **kwa... | 19 | 4 | 3 | 0 | 1 | 1 | 1 | 0.55 | 1 | 3 | 1 | 1 | 8 | 0 | 8 | 28 | 42 | 8 | 22 | 17 | 8 | 12 | 17 | 9 | 8 | 1 | 4 | 0 | 8 |
327,810 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/logging.py | flux0_core.logging.StdoutLogger | import logging
from flux0_core.contextual_correlator import ContextualCorrelator
import structlog
class StdoutLogger(ContextualLogger):
def __init__(self, correlator: ContextualCorrelator, log_level: LogLevel=LogLevel.DEBUG, logger_id: str | None=None, json: bool=True) -> None:
super().__init__(correlator... |
class StdoutLogger(ContextualLogger):
def __init__(self, correlator: ContextualCorrelator, log_level: LogLevel=LogLevel.DEBUG, logger_id: str | None=None, json: bool=True) -> None:
pass | 2 | 0 | 14 | 0 | 14 | 0 | 2 | 0 | 1 | 6 | 2 | 0 | 1 | 0 | 1 | 40 | 15 | 0 | 15 | 8 | 7 | 0 | 4 | 2 | 2 | 2 | 6 | 0 | 2 |
327,811 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/recordings.py | flux0_core.recordings.RecordedChunkPayload | from flux0_core.sessions import EventId, EventSource, EventType, MessageEventData, SessionId, StatusEventData, ToolEventData
from flux0_stream.types import JsonPatchOperation
from flux0_core.types import JSONSerializable
from typing import Literal, Mapping, NewType, Optional, Sequence, Tuple, TypedDict, Union
class Re... |
class RecordedChunkPayload(TypedDict):
'''Captured JSON Patch 'chunk' as sent to the client.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 1 | 6 | 1 | 5 | 1 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
327,812 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/recordings.py | flux0_core.recordings.RecordedEmittedPayload | from flux0_core.types import JSONSerializable
from flux0_core.sessions import EventId, EventSource, EventType, MessageEventData, SessionId, StatusEventData, ToolEventData
from typing import Literal, Mapping, NewType, Optional, Sequence, Tuple, TypedDict, Union
class RecordedEmittedPayload(TypedDict):
"""Captured n... |
class RecordedEmittedPayload(TypedDict):
'''Captured non-chunk event (status/message/tool/custom) as sent to the client.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.43 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 1 | 7 | 1 | 6 | 3 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
327,813 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/recordings.py | flux0_core.recordings.RecordedEvent | from datetime import datetime
from dataclasses import dataclass
@dataclass(frozen=True)
class RecordedEvent:
"""
One persisted event from a recorded stream.
Invariants:
• Unique (recording_id, offset)
• Header frame: kind == "header" and offset == 0 (exactly one per recording)
• All othe... | @dataclass(frozen=True)
class RecordedEvent:
'''
One persisted event from a recorded stream.
Invariants:
• Unique (recording_id, offset)
• Header frame: kind == "header" and offset == 0 (exactly one per recording)
• All other frames: offset >= 1
• created_at is the backend arrival ti... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 17 | 2 | 7 | 1 | 6 | 14 | 7 | 1 | 6 | 0 | 0 | 0 | 0 |
327,814 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/recordings.py | flux0_core.recordings.RecordedHeaderPayload | from flux0_core.sessions import EventId, EventSource, EventType, MessageEventData, SessionId, StatusEventData, ToolEventData
from typing import Literal, Mapping, NewType, Optional, Sequence, Tuple, TypedDict, Union
class RecordedHeaderPayload(TypedDict):
"""
Sentinel header frame for a recording.
Exactly o... |
class RecordedHeaderPayload(TypedDict):
'''
Sentinel header frame for a recording.
Exactly one per recording at offset == 0.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 1 | 2 | 1 | 1 | 4 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
327,815 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/recordings.py | flux0_core.recordings.RecordingStore | from flux0_core.sessions import EventId, EventSource, EventType, MessageEventData, SessionId, StatusEventData, ToolEventData
from abc import ABC, abstractmethod
from typing import Literal, Mapping, NewType, Optional, Sequence, Tuple, TypedDict, Union
from datetime import datetime
class RecordingStore(ABC):
"""
... |
class RecordingStore(ABC):
'''
Minimal store interface for recording + interactive replay.
Storage model:
- Single normalized collection/table of RecordedEvent documents.
- Exactly one header per recording at offset == 0.
- All stream frames have offset >= 1.
- Offsets are assigned ... | 15 | 8 | 16 | 2 | 6 | 8 | 1 | 1.48 | 1 | 5 | 3 | 1 | 7 | 0 | 7 | 27 | 146 | 22 | 50 | 49 | 1 | 74 | 9 | 8 | 1 | 1 | 4 | 0 | 7 |
327,816 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.ContentPart | from flux0_core.types import JSONSerializable
from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
class ContentPart(TypedDict):
type: Literal['content']
content: JSONSerializable |
class ContentPart(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
327,817 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.ControlOptions | from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
class ControlOptions(TypedDict, total=False):
mode: SessionMode |
class ControlOptions(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
327,818 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.Event | from dataclasses import dataclass
from flux0_core.types import JSONSerializable
from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
from datetime import datetime
@dataclass(frozen=True)
class Event:
id: EventId
source: EventSource
type: EventType... | @dataclass(frozen=True)
class Event:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 1 | 9 | 0 | 10 | 1 | 9 | 0 | 0 | 0 | 0 |
327,819 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.MessageEventData | from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
class MessageEventData(TypedDict):
type: Literal['message']
participant: Participant
flagged: NotRequired[bool]
tags: NotRequired[list[str]]
parts: List[Union[ContentPart, ReasoningPart,... |
class MessageEventData(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
327,820 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.Participant | from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
from flux0_core.users import UserId
from flux0_core.agents import AgentId
class Participant(TypedDict):
id: NotRequired[AgentId | UserId | None]
name: str |
class Participant(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
327,821 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.ReasoningPart | from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
from flux0_core.types import JSONSerializable
class ReasoningPart(TypedDict):
type: Literal['reasoning']
reasoning: JSONSerializable |
class ReasoningPart(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
327,822 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.Session | from dataclasses import dataclass
from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
from flux0_core.users import UserId
from flux0_core.agents import AgentId
from datetime import datetime
from flux0_core.types import JSONSerializable
@dataclass(frozen=True... | @dataclass(frozen=True)
class Session:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0 | 9 | 1 | 8 | 0 | 9 | 1 | 8 | 0 | 0 | 0 | 0 |
327,823 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.SessionStore | from flux0_core.types import JSONSerializable
from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
from flux0_core.agents import AgentId
from datetime import datetime
from flux0_core.users import UserId
from abc import ABC, abstractmethod
class SessionStore(A... |
class SessionStore(ABC):
@abstractmethod
async def create_session(self, user_id: UserId, agent_id: AgentId, id: Optional[SessionId]=None, mode: Optional[SessionMode]=None, title: Optional[str]=None, metadata: Optional[Mapping[str, JSONSerializable]]=None, created_at: Optional[datetime]=None) -> Session:
p... | 19 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 10 | 6 | 1 | 9 | 0 | 9 | 29 | 74 | 8 | 66 | 66 | 9 | 0 | 19 | 10 | 9 | 1 | 4 | 0 | 9 |
327,824 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.SessionUpdateParams | from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
from flux0_core.agents import AgentId
from flux0_core.types import JSONSerializable
from flux0_core.users import UserId
class SessionUpdateParams(TypedDict, total=False):
user_id: UserId
agent_id: A... |
class SessionUpdateParams(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
327,825 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.StatusEventData | from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
from flux0_core.types import JSONSerializable
class StatusEventData(TypedDict):
type: Literal['status']
acknowledged_offset: NotRequired[int]
status: SessionStatus
data: NotRequired[JSONSeri... |
class StatusEventData(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
327,826 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.ToolCall | from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
from flux0_core.types import JSONSerializable
class ToolCall(TypedDict):
tool_call_id: str
tool_name: str
args: Mapping[str, JSONSerializable]
result: NotRequired[ToolResult]
error: NotR... |
class ToolCall(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.83 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 5 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
327,827 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.ToolCallPart | from flux0_core.types import JSONSerializable
from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
class ToolCallPart(TypedDict):
type: ToolCallPartType
tool_call_id: str
tool_name: str
args: JSONSerializable |
class ToolCallPart(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 1 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
327,828 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.ToolEventData | from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
class ToolEventData(TypedDict):
type: ToolCallResultType
tool_calls: list[ToolCall] |
class ToolEventData(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
327,829 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/sessions.py | flux0_core.sessions.ToolResult | from flux0_core.types import JSONSerializable
from typing import List, Literal, Mapping, NewType, NotRequired, Optional, Sequence, TypeAlias, TypedDict, Union
class ToolResult(TypedDict):
data: JSONSerializable
metadata: Mapping[str, JSONSerializable]
control: ControlOptions |
class ToolResult(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,830 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/users.py | flux0_core.users.User | from dataclasses import dataclass
from typing import NewType, Optional, TypedDict
from datetime import datetime
@dataclass(frozen=True)
class User:
id: UserId
sub: str
name: str
email: Optional[str]
created_at: datetime | @dataclass(frozen=True)
class User:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 0 | 0 | 0 |
327,831 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/users.py | flux0_core.users.UserStore | from abc import ABC, abstractmethod
from datetime import datetime
from typing import NewType, Optional, TypedDict
class UserStore(ABC):
@abstractmethod
async def create_user(self, sub: str, name: str, email: Optional[str]=None, created_at: Optional[datetime]=None) -> User:
...
@abstractmethod
... |
class UserStore(ABC):
@abstractmethod
async def create_user(self, sub: str, name: str, email: Optional[str]=None, created_at: Optional[datetime]=None) -> User:
pass
@abstractmethod
async def read_user(self, user_id: UserId) -> Optional[User]:
pass
@abstractmethod
async def read_user_by... | 9 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 4 | 2 | 1 | 4 | 0 | 4 | 24 | 28 | 3 | 25 | 25 | 4 | 0 | 9 | 5 | 4 | 1 | 4 | 0 | 4 |
327,832 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/users.py | flux0_core.users.UserUpdateParams | from typing import NewType, Optional, TypedDict
class UserUpdateParams(TypedDict, total=False):
name: str |
class UserUpdateParams(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
327,833 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/api.py | flux0_nanodb.api.DocumentCollection | from typing import Generic, List, Mapping, Optional, Sequence, Tuple, Type
from flux0_nanodb.projection import Projection
from flux0_nanodb.types import DeleteResult, InsertOneResult, JSONPatchOperation, SortingOrder, TDocument, UpdateOneResult
from flux0_nanodb.query import QueryFilter
from abc import ABC, abstractmet... |
class DocumentCollection(ABC, Generic[TDocument]):
@abstractmethod
async def find(self, filters: Optional[QueryFilter], projection: Optional[Mapping[str, Projection]]=None, limit: Optional[int]=None, offset: Optional[int]=None, sort: Optional[Sequence[Tuple[str, SortingOrder]]]=None) -> Sequence[TDocument]:
... | 9 | 4 | 11 | 1 | 4 | 6 | 1 | 1.09 | 2 | 8 | 5 | 3 | 4 | 0 | 4 | 26 | 53 | 7 | 22 | 18 | 4 | 24 | 9 | 5 | 4 | 1 | 4 | 0 | 4 |
327,834 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/api.py | flux0_nanodb.api.DocumentDatabase | from abc import ABC, abstractmethod
from flux0_nanodb.types import DeleteResult, InsertOneResult, JSONPatchOperation, SortingOrder, TDocument, UpdateOneResult
from typing import Generic, List, Mapping, Optional, Sequence, Tuple, Type
class DocumentDatabase(ABC):
@abstractmethod
async def create_collection(sel... |
class DocumentDatabase(ABC):
@abstractmethod
async def create_collection(self, name: str, schema: Type[TDocument]) -> DocumentCollection[TDocument]:
'''
Create a new collection with the given name and document schema.
'''
pass
@abstractmethod
async def get_collection(self, name... | 7 | 3 | 6 | 0 | 3 | 3 | 1 | 0.64 | 1 | 2 | 1 | 3 | 3 | 0 | 3 | 23 | 25 | 2 | 14 | 11 | 3 | 9 | 7 | 4 | 3 | 1 | 4 | 0 | 3 |
327,835 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/json.py | flux0_nanodb.json.JsonDocumentCollection | from flux0_nanodb.api import DocumentCollection, DocumentDatabase
from pathlib import Path
from flux0_nanodb.query import QueryFilter, matches_query
from flux0_nanodb.projection import Projection, apply_projection
from typing import Any, List, Mapping, Optional, Protocol, Sequence, Tuple, Type, cast
import jsonpatch
im... |
class JsonDocumentCollection(DocumentCollection[TDocument]):
def __init__(self, name: str, schema: Type[TDocument], data_dir: Path) -> None:
pass
def _load_documents(self) -> List[TDocument]:
'''Load documents from the JSON file.'''
pass
def _save_documents(self, documents: List[... | 8 | 2 | 19 | 2 | 15 | 2 | 4 | 0.14 | 1 | 16 | 7 | 0 | 7 | 5 | 7 | 33 | 142 | 22 | 106 | 39 | 89 | 15 | 85 | 27 | 77 | 9 | 5 | 4 | 26 |
327,836 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/json.py | flux0_nanodb.json.JsonDocumentDatabase | from flux0_core.async_utils import RWLock
from pathlib import Path
from flux0_nanodb.api import DocumentCollection, DocumentDatabase
from flux0_nanodb.types import DeleteResult, DocumentID, InsertOneResult, JSONPatchOperation, SortingOrder, TDocument, UpdateOneResult
from typing import Any, List, Mapping, Optional, Pro... |
class JsonDocumentDatabase(DocumentDatabase):
def __init__(self, data_dir: str='./data') -> None:
'''
Initialize the JSON document database.
Args:
data_dir: Directory where JSON files will be stored. Defaults to "./data"
'''
pass
async def create_collection... | 5 | 1 | 16 | 2 | 11 | 3 | 3 | 0.3 | 1 | 8 | 3 | 0 | 4 | 3 | 4 | 27 | 67 | 11 | 43 | 16 | 34 | 13 | 34 | 12 | 29 | 4 | 5 | 2 | 10 |
327,837 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/memory.py | flux0_nanodb.memory.Comparable | from typing import Any, List, Mapping, Optional, Protocol, Sequence, Tuple, Type, cast
class Comparable(Protocol):
def __lt__(self, other: Any) -> bool:
... |
class Comparable(Protocol):
def __lt__(self, other: Any) -> bool:
pass | 2 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 25 | 2 | 0 | 2 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
327,838 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/memory.py | flux0_nanodb.memory.MemoryDocumentCollection | import jsonpatch
from flux0_nanodb.types import DeleteResult, DocumentID, InsertOneResult, JSONPatchOperation, SortingOrder, TDocument, UpdateOneResult
from flux0_core.async_utils import RWLock
from flux0_nanodb.api import DocumentCollection, DocumentDatabase
from flux0_nanodb.common import convert_patch, validate_is_t... |
class MemoryDocumentCollection(DocumentCollection[TDocument]):
def __init__(self, name: str, schema: Type[TDocument]) -> None:
pass
async def find(self, filters: Optional[QueryFilter]=None, projection: Optional[Mapping[str, Projection]]=None, limit: Optional[int]=None, offset: Optional[int]=None, sor... | 6 | 0 | 19 | 1 | 17 | 2 | 4 | 0.12 | 1 | 14 | 7 | 0 | 5 | 4 | 5 | 31 | 102 | 9 | 84 | 29 | 69 | 10 | 63 | 19 | 57 | 9 | 5 | 4 | 22 |
327,839 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/memory.py | flux0_nanodb.memory.MemoryDocumentDatabase | from flux0_nanodb.api import DocumentCollection, DocumentDatabase
from flux0_nanodb.types import DeleteResult, DocumentID, InsertOneResult, JSONPatchOperation, SortingOrder, TDocument, UpdateOneResult
from typing import Any, List, Mapping, Optional, Protocol, Sequence, Tuple, Type, cast
class MemoryDocumentDatabase(Do... |
class MemoryDocumentDatabase(DocumentDatabase):
def __init__(self) -> None:
pass
async def create_collection(self, name: str, schema: Type[TDocument]) -> DocumentCollection[TDocument]:
pass
async def get_collection(self, name: str, schema: Type[TDocument]) -> DocumentCollection[TDocument... | 5 | 0 | 6 | 0 | 6 | 1 | 2 | 0.09 | 1 | 6 | 2 | 0 | 4 | 1 | 4 | 27 | 28 | 3 | 23 | 12 | 14 | 2 | 18 | 8 | 13 | 2 | 5 | 1 | 7 |
327,840 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/mongodb.py | flux0_nanodb.mongodb.MongoDocumentCollection | from flux0_nanodb.api import DocumentCollection, DocumentDatabase
from flux0_nanodb.query import And, Comparison, Or, QueryFilter
import uuid
import jsonpatch
from flux0_nanodb.types import DeleteResult, DocumentID, DocumentVersion, InsertOneResult, JSONPatchOperation, SortingOrder, TDocument, UpdateOneResult
from typi... |
class MongoDocumentCollection(DocumentCollection[TDocument]):
'''MongoDB implementation of DocumentCollection using PyMongo async API.'''
def __init__(self, collection: Collection[Any], schema: Type[TDocument], ascending_const: Any, descending_const: Any, duplicate_key_error: Any):
pass
def _conv... | 11 | 10 | 24 | 3 | 18 | 4 | 5 | 0.2 | 1 | 14 | 8 | 0 | 10 | 5 | 10 | 36 | 252 | 36 | 180 | 66 | 151 | 36 | 122 | 47 | 111 | 12 | 5 | 2 | 47 |
327,841 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/mongodb.py | flux0_nanodb.mongodb.MongoDocumentDatabase | from flux0_nanodb.types import DeleteResult, DocumentID, DocumentVersion, InsertOneResult, JSONPatchOperation, SortingOrder, TDocument, UpdateOneResult
from typing import TYPE_CHECKING, Any, Dict, List, Mapping, Optional, Sequence, Tuple, Type, cast
from flux0_nanodb.api import DocumentCollection, DocumentDatabase
cla... |
class MongoDocumentDatabase(DocumentDatabase):
'''MongoDB implementation of DocumentDatabase using PyMongo async API.'''
def __init__(self, client: AsyncMongoClient[Any], database_name: str):
pass
async def create_collection(self, name: str, schema: Type[TDocument]) -> DocumentCollection[TDocumen... | 5 | 4 | 9 | 1 | 6 | 2 | 1 | 0.31 | 1 | 5 | 2 | 0 | 4 | 5 | 4 | 27 | 40 | 6 | 26 | 15 | 17 | 8 | 16 | 11 | 11 | 2 | 5 | 1 | 5 |
327,842 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/projection.py | flux0_nanodb.projection.Projection | from enum import Enum
class Projection(Enum):
INCLUDE = 1
EXCLUDE = 0 |
class Projection(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
327,843 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/query.py | flux0_nanodb.query.And | from dataclasses import dataclass
from typing import Any, List, Literal, Mapping, Union
@dataclass(frozen=True)
class And:
"""
A logical 'AND' of a list of query expressions.
"""
expressions: List[QueryFilter] | @dataclass(frozen=True)
class And:
'''
A logical 'AND' of a list of query expressions.
'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
327,844 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/query.py | flux0_nanodb.query.Comparison | from typing import Any, List, Literal, Mapping, Union
from dataclasses import dataclass
@dataclass(frozen=True)
class Comparison:
"""
Represents a filter that compares a path to a literal value.
For the "$in" operator, `value` should be a list of literal values.
"""
path: str
op: Operator
v... | @dataclass(frozen=True)
class Comparison:
'''
Represents a filter that compares a path to a literal value.
For the "$in" operator, `value` should be a list of literal values.
'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 1 | 4 | 1 | 3 | 4 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
327,845 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/query.py | flux0_nanodb.query.Or | from dataclasses import dataclass
from typing import Any, List, Literal, Mapping, Union
@dataclass(frozen=True)
class Or:
"""
A logical 'OR' of a list of query expressions.
"""
expressions: List[QueryFilter] | @dataclass(frozen=True)
class Or:
'''
A logical 'OR' of a list of query expressions.
'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
327,846 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.AddOp | from typing import Any, Generic, Literal, NewType, Optional, TypedDict, TypeVar, Union
class AddOp(TypedDict):
op: Literal['add']
path: str
value: Any |
class AddOp(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,847 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.BaseDocument | from typing import Any, Generic, Literal, NewType, Optional, TypedDict, TypeVar, Union
class BaseDocument(TypedDict, total=False):
id: DocumentID
version: DocumentVersion |
class BaseDocument(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
327,848 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.CopyOp | from typing import Any, Generic, Literal, NewType, Optional, TypedDict, TypeVar, Union
class CopyOp(TypedDict):
op: Literal['copy']
from_: str
path: str |
class CopyOp(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,849 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.DeleteResult | from dataclasses import dataclass
from typing import Any, Generic, Literal, NewType, Optional, TypedDict, TypeVar, Union
@dataclass(frozen=True)
class DeleteResult(Generic[TDocument]):
acknowledged: bool
deleted_count: int
deleted_document: Optional[TDocument] | @dataclass(frozen=True)
class DeleteResult(Generic[TDocument]):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,850 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.InsertOneResult | from dataclasses import dataclass
@dataclass(frozen=True)
class InsertOneResult:
acknowledged: bool
inserted_id: DocumentID | @dataclass(frozen=True)
class InsertOneResult:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
327,851 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.MoveOp | from typing import Any, Generic, Literal, NewType, Optional, TypedDict, TypeVar, Union
class MoveOp(TypedDict):
op: Literal['move']
from_: str
path: str |
class MoveOp(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 1 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,852 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.RemoveOp | from typing import Any, Generic, Literal, NewType, Optional, TypedDict, TypeVar, Union
class RemoveOp(TypedDict):
op: Literal['remove']
path: str |
class RemoveOp(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
327,853 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.ReplaceOp | from typing import Any, Generic, Literal, NewType, Optional, TypedDict, TypeVar, Union
class ReplaceOp(TypedDict):
op: Literal['replace']
path: str
value: Any |
class ReplaceOp(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,854 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.SortingOrder | from enum import Enum
class SortingOrder(Enum):
ASC = True
DESC = False |
class SortingOrder(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
327,855 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.TestOp | from typing import Any, Generic, Literal, NewType, Optional, TypedDict, TypeVar, Union
class TestOp(TypedDict):
op: Literal['test']
path: str
value: Any |
class TestOp(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,856 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/nanodb/src/flux0_nanodb/types.py | flux0_nanodb.types.UpdateOneResult | from typing import Any, Generic, Literal, NewType, Optional, TypedDict, TypeVar, Union
from dataclasses import dataclass
@dataclass(frozen=True)
class UpdateOneResult:
acknowledged: bool
matched_count: int
modified_count: int
upserted_id: Optional[DocumentID] | @dataclass(frozen=True)
class UpdateOneResult:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 0 | 0 | 0 |
327,857 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/server/src/flux0_server/app.py | flux0_server.app.SPAStaticFiles | import os
from fastapi import APIRouter, FastAPI, Request, Response, status
from typing import Any, Awaitable, Callable
from fastapi.staticfiles import StaticFiles
class SPAStaticFiles(StaticFiles):
async def get_response(self, path: str, scope: Any) -> Response:
assert isinstance(self.directory, str), 'S... |
class SPAStaticFiles(StaticFiles):
async def get_response(self, path: str, scope: Any) -> Response:
pass | 2 | 0 | 11 | 3 | 6 | 2 | 2 | 0.29 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 12 | 3 | 7 | 3 | 5 | 2 | 7 | 3 | 5 | 2 | 1 | 1 | 2 |
327,858 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/server/src/flux0_server/container_factory.py | flux0_server.container_factory.ContainerAgentRunnerFactory | from flux0_core.agent_runners.api import AgentRunner, AgentRunnerFactory
from typing import override
from lagom import Container
from flux0_core.agents import AgentType
class ContainerAgentRunnerFactory(AgentRunnerFactory):
def __init__(self, container: Container) -> None:
self.container = container
... |
class ContainerAgentRunnerFactory(AgentRunnerFactory):
def __init__(self, container: Container) -> None:
pass
@override
def create_runner(self, agent_type: AgentType) -> AgentRunner:
pass
@override
def runner_exists(self, agent_type: AgentType) -> bool:
pass | 6 | 0 | 5 | 0 | 5 | 0 | 3 | 0 | 1 | 3 | 1 | 0 | 3 | 1 | 3 | 25 | 21 | 2 | 19 | 9 | 13 | 0 | 17 | 7 | 13 | 4 | 5 | 2 | 9 |
327,859 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/server/src/flux0_server/main.py | flux0_server.main.StartupError | class StartupError(Exception):
def __init__(self, message: str) -> None:
super().__init__(message) | class StartupError(Exception):
def __init__(self, message: str) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 11 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
327,860 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/server/src/flux0_server/replay_agent/replay_agent.py | flux0_server.replay_agent.replay_agent.ReplayAgentRunner | from flux0_core.agent_runners.context import Context
from flux0_core.recordings import RecordedChunkPayload, RecordedEmittedPayload, RecordedEvent, RecordingId
import uuid
from flux0_core.agent_runners.api import AgentRunner, Deps, agent_runner
from flux0_stream.types import ChunkEvent
from flux0_core.sessions import E... | @agent_runner('replay')
class ReplayAgentRunner(AgentRunner):
'''
Replays recorded frames for a session turn:
• Finds the next user-anchored turn after session.metadata.replay.last_streamed_offset
• Streams [start, end) as live events via the EventEmitter
• Paces by recorded created_at deltas ... | 3 | 1 | 116 | 15 | 87 | 16 | 11 | 0.26 | 1 | 11 | 8 | 0 | 1 | 0 | 1 | 22 | 125 | 16 | 88 | 22 | 86 | 23 | 50 | 22 | 48 | 11 | 5 | 3 | 11 |
327,861 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/server/src/flux0_server/replay_agent/replay_agent.py | flux0_server.replay_agent.replay_agent.ReplayMeta | from typing import AsyncIterator, Optional, Required, Sequence, Tuple, TypedDict, cast
from flux0_core.recordings import RecordedChunkPayload, RecordedEmittedPayload, RecordedEvent, RecordingId
class ReplayMeta(TypedDict, total=False):
recording_id: Required[RecordingId]
pacing: Required[float]
last_stream... |
class ReplayMeta(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,862 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/server/src/flux0_server/settings.py | flux0_server.settings.EnvType | import enum
class EnvType(enum.Enum):
PRODUCTION = 'production'
DEVELOPMENT = 'development' |
class EnvType(enum.Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
327,863 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/server/src/flux0_server/settings.py | flux0_server.settings.ParsedStoreConfig | from typing import List, Optional, Union
from pydantic import BaseModel, Field, field_validator, model_validator
from flux0_core.storage.types import NanoDBStorageType, StorageType
class ParsedStoreConfig(BaseModel):
type: StorageType
mode: Optional[NanoDBStorageType]
uri: Optional[str] = None
database... |
class ParsedStoreConfig(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 0 | 6 | 3 | 5 | 3 | 6 | 3 | 5 | 0 | 5 | 0 | 0 |
327,864 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/server/src/flux0_server/settings.py | flux0_server.settings.Settings | from flux0_api.auth import AuthType
from flux0_core.logging import LogLevel
from pydantic_settings import BaseSettings, SettingsConfigDict
from typing import List, Optional, Union
from pydantic import BaseModel, Field, field_validator, model_validator
class Settings(BaseSettings):
model_config = SettingsConfigDict... |
class Settings(BaseSettings):
@field_validator('modules', mode='before')
@classmethod
def decode_modules(cls, v: Union[str, List[str]]) -> List[str]:
pass
@model_validator(mode='after')
def populate_db_config(self) -> 'Settings':
pass | 6 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 3 | 2 | 0 | 1 | 1 | 2 | 2 | 22 | 2 | 20 | 13 | 14 | 0 | 15 | 11 | 12 | 2 | 1 | 1 | 3 |
327,865 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/frameworks/langchain.py | flux0_stream.frameworks.langchain.RunContext | from typing import AsyncIterator, Dict, Optional, cast
class RunContext:
def __init__(self, last_known_event_offset: int) -> None:
self.data: Dict[str, Dict[str, bool]] = {}
self.last_known_event_offset = last_known_event_offset
def set_typing_emitted(self, event_id: str, emitted: bool) -> No... |
class RunContext:
def __init__(self, last_known_event_offset: int) -> None:
pass
def set_typing_emitted(self, event_id: str, emitted: bool) -> None:
'''Set the typing_emitted status for a given event_id.'''
pass
def get_typing_emitted(self, event_id: str) -> bool:
'''Retr... | 6 | 4 | 4 | 0 | 3 | 1 | 1 | 0.33 | 0 | 3 | 0 | 0 | 5 | 2 | 5 | 5 | 23 | 4 | 15 | 8 | 9 | 5 | 15 | 8 | 9 | 2 | 0 | 1 | 6 |
327,866 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/types.py | flux0_stream.types.AddOperation | from flux0_core.types import JSONSerializable
from typing import Literal, Mapping, Optional, TypedDict, Union
class AddOperation(TypedDict):
op: Literal['add']
path: str
value: JSONSerializable |
class AddOperation(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,867 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/types.py | flux0_stream.types.ChunkEvent | from abc import ABC
from dataclasses import dataclass, field
from typing import Literal, Mapping, Optional, TypedDict, Union
import time
from flux0_core.types import JSONSerializable
from flux0_core.sessions import EventId, EventSource, EventType, MessageEventData, StatusEventData, ToolEventData
@dataclass(frozen=True... | @dataclass(frozen=True)
class ChunkEvent(ABC):
'''Represents an incremental update using JSON Patch operations.
Attributes:
correlation_id (str): Unique identifier for the event stream.
event_id (str): Unique identifier for the event.
chunk_id (int): The sequence number of the chunk.
... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 17 | 2 | 7 | 3 | 6 | 8 | 7 | 3 | 6 | 0 | 4 | 0 | 0 |
327,868 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/types.py | flux0_stream.types.EmittedEvent | from dataclasses import dataclass, field
from typing import Literal, Mapping, Optional, TypedDict, Union
from flux0_core.sessions import EventId, EventSource, EventType, MessageEventData, StatusEventData, ToolEventData
from flux0_core.types import JSONSerializable
import time
@dataclass(frozen=True)
class EmittedEvent... | null | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 8 | 3 | 7 | 10 | 8 | 3 | 7 | 0 | 0 | 0 | 0 |
327,869 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/types.py | flux0_stream.types.ReplaceOperation | from flux0_core.types import JSONSerializable
from typing import Literal, Mapping, Optional, TypedDict, Union
class ReplaceOperation(TypedDict):
op: Literal['replace']
path: str
value: JSONSerializable |
class ReplaceOperation(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
327,870 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/examples/langchain_simple/agent.py | langchain_simple.agent.LangChainAgentRunner | from flux0_stream.frameworks.langchain import RunContext, filter_and_map_events, handle_event
from flux0_core.agent_runners.context import Context
from flux0_core.sessions import StatusEventData
from langchain_core.messages import HumanMessage, SystemMessage
from flux0_core.agent_runners.api import AgentRunner, Deps, a... | @agent_runner('langchain_simple')
class LangChainAgentRunner(AgentRunner):
async def run(self, context: Context, deps: Deps) -> bool:
pass | 3 | 0 | 47 | 4 | 39 | 4 | 4 | 0.1 | 1 | 7 | 4 | 0 | 1 | 0 | 1 | 22 | 48 | 4 | 40 | 9 | 38 | 4 | 19 | 9 | 17 | 4 | 5 | 2 | 4 |
327,871 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/examples/langgraph_weather/weather_agent.py | langgraph_weather.weather_agent.WeatherAgentRunner | from flux0_core.sessions import StatusEventData
from flux0_core.agent_runners.api import AgentRunner, Deps, agent_runner
from examples.utils.utils import read_user_input
from flux0_core.agent_runners.context import Context
from flux0_stream.frameworks.langchain import RunContext, filter_and_map_events, handle_event
fro... | @agent_runner('langgraph_weather')
class WeatherAgentRunner(AgentRunner):
async def run(self, context: Context, deps: Deps) -> bool:
pass | 3 | 0 | 52 | 4 | 45 | 3 | 5 | 0.07 | 1 | 8 | 4 | 0 | 1 | 0 | 1 | 22 | 53 | 4 | 46 | 8 | 44 | 3 | 21 | 8 | 19 | 5 | 5 | 2 | 5 |
327,872 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/store/memory.py | memory.DocInProgress | from typing import Dict, List, MutableMapping, Optional, Self, TypedDict, Union, cast
from flux0_core.types import JSONSerializable
class DocInProgress(TypedDict, total=False):
metadata: MutableMapping[str, JSONSerializable]
content: JSONSerializable |
class DocInProgress(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
327,873 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/emitter/memory.py | memory.InMemoryEventEmitterFactory | from flux0_core.sessions import EventId, SessionId, StatusEventData
from flux0_stream.emitter.api import EventEmitter, FinalSubscriber, ProcessedSubscriber
from flux0_core.agents import AgentId
class InMemoryEventEmitterFactory:
def __init__(self, event_emitter: EventEmitter) -> None:
self._event_emitter ... |
class InMemoryEventEmitterFactory:
def __init__(self, event_emitter: EventEmitter) -> None:
pass
async def create_event_emitter(self, emitting_agent_id: AgentId, session_id: SessionId) -> EventEmitter:
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0.11 | 0 | 1 | 1 | 0 | 2 | 1 | 2 | 2 | 11 | 1 | 9 | 8 | 2 | 1 | 5 | 4 | 2 | 1 | 0 | 0 | 2 |
327,874 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/emitter/memory.py | memory.MemoryEventEmitter | from flux0_stream.emitter.api import EventEmitter, FinalSubscriber, ProcessedSubscriber
from flux0_stream.types import ChunkEvent, EmittedEvent
from flux0_stream.store.api import EventStore
import asyncio
from typing import Dict, List, Optional, Self, Union
from flux0_core.sessions import EventId, SessionId, StatusEven... |
class MemoryEventEmitter(EventEmitter):
'''
In-memory implementation of EventEmitter using asyncio.Queue.
- Uses a **single** `asyncio.Queue[QueueMessage]` for processing both event chunks and status updates.
- Handles **event finalization** when receiving a status event with `"ready"` or `"completed"`... | 14 | 14 | 11 | 1 | 8 | 2 | 3 | 0.36 | 1 | 12 | 6 | 0 | 13 | 6 | 13 | 39 | 167 | 28 | 105 | 37 | 82 | 38 | 79 | 26 | 65 | 9 | 5 | 3 | 37 |
327,875 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/store/memory.py | memory.MemoryEventStore | import copy
from flux0_stream.store.api import EventStore
from flux0_stream.patches import ensure_structure_for_patch
from jsonpatch import JsonPatch, apply_patch
from typing import Dict, List, MutableMapping, Optional, Self, TypedDict, Union, cast
import json
from flux0_core.agents import AgentId
from flux0_core.types... |
class MemoryEventStore(EventStore):
'''
In-memory implementation of EventStore.
- Applies JSON patches incrementally.
- Handles out-of-order chunk arrivals using sequence numbers.
- Finalization is instant, as the document is always up-to-date.
'''
def __init__(self) -> None:
pass
... | 7 | 5 | 40 | 2 | 32 | 7 | 5 | 0.23 | 1 | 18 | 11 | 0 | 6 | 4 | 6 | 28 | 254 | 20 | 195 | 51 | 181 | 45 | 102 | 44 | 95 | 18 | 5 | 4 | 32 |
327,876 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/stream/src/flux0_stream/emitter/memory.py | memory.QueueMessage | from flux0_core.sessions import EventId, SessionId, StatusEventData
from flux0_stream.types import ChunkEvent, EmittedEvent
from typing import Dict, List, Optional, Self, Union
from dataclasses import dataclass
@dataclass
class QueueMessage:
"""Represents a message in the event queue, distinguishing between event ... | @dataclass
class QueueMessage:
'''Represents a message in the event queue, distinguishing between event chunks and status events.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 4 | 1 | 3 | 1 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
327,877 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/scripts/psr/custom_parser/monorepo_parser.py | monorepo_parser.ConventionalCommitMonorepoParser | from semantic_release.commit_parser._base import CommitParser, ParserOptions
from semantic_release.commit_parser.angular import LONG_TYPE_NAMES
from fnmatch import fnmatch
from semantic_release.errors import InvalidParserOptions
import os
from semantic_release.commit_parser.token import ParsedCommit, ParsedMessageResul... |
class ConventionalCommitMonorepoParser(CommitParser[ParseResult, ConventionalMonorepoParserOptions]):
''''''
def __init__(self, options: ConventionalMonorepoParserOptions | None=None) -> None:
pass
@staticmethod
def get_default_options() -> ConventionalMonorepoParserOptions:
pass
... | 7 | 2 | 49 | 5 | 38 | 8 | 6 | 0.21 | 1 | 10 | 1 | 0 | 4 | 5 | 5 | 5 | 260 | 29 | 194 | 44 | 183 | 40 | 71 | 34 | 65 | 13 | 1 | 5 | 29 |
327,878 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/scripts/psr/custom_parser/monorepo_parser.py | monorepo_parser.ConventionalMonorepoParserOptions | from pydantic import Field, field_validator
from typing_extensions import Annotated
from semantic_release.commit_parser._base import CommitParser, ParserOptions
from pathlib import Path
from typing import TYPE_CHECKING, Any, Iterable, Tuple
from semantic_release.enums import LevelBump
from itertools import zip_longest
... | @dataclass
class ConventionalMonorepoParserOptions(ParserOptions):
'''Options dataclass for ConventionalCommitMonorepoParser.'''
@field_validator('path_filters', mode='before')
@classmethod
def convert_strs_to_paths(cls, value: Any) -> Tuple[Path]:
pass
@field_validator('path_filters', mode=... | 13 | 3 | 10 | 1 | 7 | 3 | 2 | 0.53 | 1 | 8 | 0 | 0 | 3 | 1 | 5 | 5 | 102 | 18 | 55 | 20 | 43 | 29 | 24 | 16 | 18 | 4 | 1 | 2 | 9 |
327,879 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/nanodb_memory.py | nanodb_memory.AgentDocumentStore | from flux0_nanodb import projection
from typing import DefaultDict, List, Mapping, Optional, Required, Self, Sequence, TypedDict, Union, override
from flux0_nanodb.types import DocumentID, DocumentVersion, JSONPatchOperation, SortingOrder
from flux0_core.ids import gen_id
from datetime import datetime, timezone
from fl... |
class AgentDocumentStore(AgentStore):
def __init__(self, db: DocumentDatabase):
pass
async def __aenter__(self) -> Self:
pass
async def __aexit__(self, exc_type: Optional[type[BaseException]], exc_value: Optional[BaseException], exec_tb: Optional[object]) -> None:
pass
def _... | 16 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 13 | 6 | 0 | 10 | 2 | 10 | 35 | 99 | 10 | 89 | 54 | 41 | 0 | 33 | 17 | 22 | 3 | 5 | 1 | 13 |
327,880 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/nanodb_memory.py | nanodb_memory.RecordingDocumentStore | from flux0_core.sessions import ConsumerId, Event, EventId, EventSource, EventType, MessageEventData, Session, SessionId, SessionMode, SessionStore, SessionUpdateParams, StatusEventData, ToolEventData
from flux0_core.recordings import RecordedChunkPayload, RecordedEmittedPayload, RecordedEvent, RecordedEventId, Recorde... |
class RecordingDocumentStore(RecordingStore):
def __init__(self, db: DocumentDatabase):
pass
async def __aenter__(self) -> Self:
pass
async def __aexit__(self, exc_type: Optional[type[BaseException]], exc_value: Optional[BaseException], exec_tb: Optional[object]) -> None:
pass
... | 22 | 2 | 15 | 0 | 13 | 1 | 2 | 0.11 | 1 | 18 | 11 | 0 | 14 | 3 | 14 | 41 | 235 | 18 | 197 | 82 | 136 | 22 | 64 | 36 | 49 | 3 | 5 | 1 | 21 |
327,881 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/nanodb_memory.py | nanodb_memory.SessionDocumentStore | from flux0_core.sessions import ConsumerId, Event, EventId, EventSource, EventType, MessageEventData, Session, SessionId, SessionMode, SessionStore, SessionUpdateParams, StatusEventData, ToolEventData
from fastapi import HTTPException
from typing import DefaultDict, List, Mapping, Optional, Required, Self, Sequence, Ty... |
class SessionDocumentStore(SessionStore):
def __init__(self, db: DocumentDatabase):
pass
async def __aenter__(self) -> Self:
pass
async def __aexit__(self, exc_type: Optional[type[BaseException]], exc_value: Optional[BaseException], exec_tb: Optional[object]) -> None:
pass
d... | 26 | 0 | 15 | 1 | 14 | 0 | 2 | 0.02 | 1 | 21 | 12 | 0 | 16 | 3 | 16 | 45 | 274 | 31 | 239 | 115 | 148 | 4 | 89 | 41 | 72 | 7 | 5 | 2 | 31 |
327,882 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/nanodb_memory.py | nanodb_memory.UserDocumentStore | from typing import DefaultDict, List, Mapping, Optional, Required, Self, Sequence, TypedDict, Union, override
from flux0_nanodb.types import DocumentID, DocumentVersion, JSONPatchOperation, SortingOrder
from flux0_core.ids import gen_id
from datetime import datetime, timezone
from flux0_core.users import User, UserId, ... |
class UserDocumentStore(UserStore):
def __init__(self, db: DocumentDatabase):
pass
async def __aenter__(self) -> Self:
pass
async def __aexit__(self, exc_type: Optional[type[BaseException]], exc_value: Optional[BaseException], exec_tb: Optional[object]) -> None:
pass
def _se... | 14 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 11 | 6 | 0 | 9 | 2 | 9 | 33 | 86 | 9 | 77 | 47 | 36 | 0 | 27 | 16 | 17 | 2 | 5 | 0 | 11 |
327,883 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/nanodb_memory.py | nanodb_memory._AgentDocument | from flux0_core.agents import Agent, AgentId, AgentStore, AgentType, AgentUpdateParams
from flux0_nanodb.types import DocumentID, DocumentVersion, JSONPatchOperation, SortingOrder
from datetime import datetime, timezone
from typing import DefaultDict, List, Mapping, Optional, Required, Self, Sequence, TypedDict, Union,... |
class _AgentDocument(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
327,884 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/nanodb_memory.py | nanodb_memory._EventDocument | from flux0_core.sessions import ConsumerId, Event, EventId, EventSource, EventType, MessageEventData, Session, SessionId, SessionMode, SessionStore, SessionUpdateParams, StatusEventData, ToolEventData
from typing import DefaultDict, List, Mapping, Optional, Required, Self, Sequence, TypedDict, Union, override
from flux... | @dataclass(frozen=True)
class _EventDocument(TypedDict, total=False):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 0 | 12 | 1 | 11 | 0 | 12 | 1 | 11 | 0 | 1 | 0 | 0 |
327,885 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/nanodb_memory.py | nanodb_memory._RecordedEventDocument | from flux0_core.recordings import RecordedChunkPayload, RecordedEmittedPayload, RecordedEvent, RecordedEventId, RecordedEventKind, RecordedEventPayload, RecordedHeaderPayload, RecordingId, RecordingStore, TurnRange
from typing import DefaultDict, List, Mapping, Optional, Required, Self, Sequence, TypedDict, Union, over... | @dataclass(frozen=True)
class _RecordedEventDocument(TypedDict, total=False):
pass | 2 | 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 |
327,886 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/nanodb_memory.py | nanodb_memory._SessionDocument | from flux0_core.sessions import ConsumerId, Event, EventId, EventSource, EventType, MessageEventData, Session, SessionId, SessionMode, SessionStore, SessionUpdateParams, StatusEventData, ToolEventData
from flux0_core.types import JSONSerializable
from typing import DefaultDict, List, Mapping, Optional, Required, Self, ... |
class _SessionDocument(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 1 | 9 | 0 | 10 | 1 | 9 | 0 | 1 | 0 | 0 |
327,887 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/nanodb_memory.py | nanodb_memory._UserDocument | from flux0_nanodb.types import DocumentID, DocumentVersion, JSONPatchOperation, SortingOrder
from typing import DefaultDict, List, Mapping, Optional, Required, Self, Sequence, TypedDict, Union, override
from datetime import datetime, timezone
class _UserDocument(TypedDict, total=False):
id: DocumentID
version:... |
class _UserDocument(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
327,888 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/examples/openai_simple/agent.py | openai_simple.agent.OpenAIChatAgentRunner | import uuid
from flux0_core.agent_runners.api import AgentRunner, Deps, agent_runner
from flux0_core.sessions import EventId, MessageEventData, StatusEventData
from typing import cast
from openai.types.chat import ChatCompletionSystemMessageParam, ChatCompletionUserMessageParam
from openai import AsyncOpenAI
import tim... | @agent_runner('openai_simple')
class OpenAIChatAgentRunner(AgentRunner):
def __init__(self) -> None:
pass
async def run(self, context: Context, deps: Deps) -> bool:
pass | 4 | 0 | 46 | 5 | 40 | 2 | 4 | 0.05 | 1 | 11 | 5 | 0 | 2 | 1 | 2 | 23 | 94 | 11 | 80 | 18 | 77 | 4 | 36 | 17 | 33 | 7 | 5 | 3 | 8 |
327,889 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/cli/src/flux0_cli/utils/output.py | output.OutputFormatter | from typing import Optional, Sequence, Union
from rich.table import Table
from rich.console import Console
import json
from jsonpath_ng import parse
import click
from pydantic import BaseModel
class OutputFormatter:
@staticmethod
def format(data: Union[BaseModel, Sequence[BaseModel]], output_format: str='tabl... |
class OutputFormatter:
@staticmethod
def format(data: Union[BaseModel, Sequence[BaseModel]], output_format: str='table', jsonpath_expr: Optional[str]=None) -> str:
'''
Format one or more Pydantic models using the specified output format.
'''
pass | 3 | 1 | 48 | 6 | 38 | 8 | 12 | 0.2 | 0 | 5 | 0 | 0 | 0 | 0 | 1 | 1 | 50 | 6 | 40 | 16 | 33 | 8 | 26 | 11 | 24 | 12 | 0 | 2 | 12 |
327,890 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/examples/static/static_agent.py | static.static_agent.StaticAgentRunner | import asyncio
from flux0_stream.types import ChunkEvent
from flux0_core.sessions import EventId, StatusEventData
import uuid
from examples.utils.utils import read_user_input, send_processing_event
import time
from flux0_core.agent_runners.context import Context
from flux0_core.agent_runners.api import AgentRunner, Dep... | @agent_runner('static_agent')
class StaticAgentRunner(AgentRunner):
async def run(self, context: Context, deps: Deps) -> bool:
pass | 3 | 0 | 133 | 11 | 107 | 16 | 3 | 0.15 | 1 | 6 | 4 | 0 | 1 | 0 | 1 | 22 | 134 | 11 | 108 | 8 | 106 | 16 | 30 | 8 | 28 | 3 | 5 | 1 | 3 |
327,891 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/types.py | types.NanoDBStorageType | from enum import Enum
class NanoDBStorageType(Enum):
MEMORY = 'nanodb_memory'
JSON = 'nanodb_json' |
class NanoDBStorageType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
327,892 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/packages/core/src/flux0_core/storage/types.py | types.StorageType | from enum import Enum
class StorageType(Enum):
NANODB = 'nanodb'
MONGODB = 'mongodb' |
class StorageType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
327,893 | flux0-ai/flux0 | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/flux0-ai_flux0/scripts/utils.py | utils.Package | from dataclasses import dataclass
from pathlib import Path
from typing import Callable, List, NoReturn, Optional
import subprocess
import sys
@dataclass(frozen=True)
class Package:
name: str
path: Path
def run_command(self, command: str, env: Optional[dict[str, str]]=None) -> int:
"""
Exec... | @dataclass(frozen=True)
class Package:
def run_command(self, command: str, env: Optional[dict[str, str]]=None) -> int:
'''
Execute a shell command in the package's directory.
Returns the exit code.
'''
pass | 3 | 1 | 19 | 0 | 15 | 4 | 3 | 0.22 | 0 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 23 | 1 | 18 | 3 | 16 | 4 | 11 | 3 | 9 | 3 | 0 | 1 | 3 |
327,894 | Euro-BioImaging/EuBI-Bridge | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Euro-BioImaging_EuBI-Bridge/eubi_bridge/base/data_manager.py | Euro-BioImaging_EuBI-Bridge.eubi_bridge.base.data_manager.ArrayManager | from dask import array as da
import os
from eubi_bridge.utils.convenience import sensitive_glob, is_zarr_group, is_zarr_array, take_filepaths, autocompute_chunk_shape
from pathlib import Path
from typing import Union
from eubi_bridge.ngff.defaults import unit_map, scale_map, default_axes
import zarr
import zarr
import ... |
class ArrayManager:
def __init__(self, path: Union[str, Path]=None, series: int=None, metadata_reader='bfio', **kwargs):
pass
def fill_default_meta(self):
pass
def get_pixel_size_basemap(self, t=1, z=1, y=1, x=1, **kwargs):
pass
def get_unit_basemap(self, t='second', z='micr... | 26 | 1 | 16 | 1 | 14 | 1 | 3 | 0.06 | 0 | 14 | 3 | 0 | 21 | 17 | 21 | 21 | 366 | 41 | 312 | 120 | 246 | 18 | 197 | 76 | 174 | 8 | 0 | 3 | 72 |
327,895 | Euro-BioImaging/EuBI-Bridge | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Euro-BioImaging_EuBI-Bridge/eubi_bridge/base/data_manager.py | Euro-BioImaging_EuBI-Bridge.eubi_bridge.base.data_manager.BatchManager | class BatchManager:
def __init__(self, managers):
self.managers = managers
def _collect_scaledict(self, **kwargs):
"""
Retrieves pixel sizes for image dimensions.
Args:
**kwargs: Pixel sizes for time, channel, z, y, and x dimensions.
Returns:
l... | class BatchManager:
def __init__(self, managers):
pass
def _collect_scaledict(self, **kwargs):
'''
Retrieves pixel sizes for image dimensions.
Args:
**kwargs: Pixel sizes for time, channel, z, y, and x dimensions.
Returns:
list: Pixel sizes.
... | 11 | 3 | 9 | 1 | 6 | 2 | 2 | 0.37 | 0 | 2 | 0 | 0 | 10 | 1 | 10 | 10 | 98 | 15 | 62 | 47 | 42 | 23 | 48 | 38 | 37 | 3 | 0 | 2 | 16 |
327,896 | Euro-BioImaging/EuBI-Bridge | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Euro-BioImaging_EuBI-Bridge/eubi_bridge/base/data_manager.py | Euro-BioImaging_EuBI-Bridge.eubi_bridge.base.data_manager.ChannelIterator | class ChannelIterator:
"""
Iterator for generating and managing channel colors.
This class provides a way to iterate through a sequence of channel colors,
generating new colors in a visually distinct sequence when needed.
"""
DEFAULT_COLORS = ['FF0000', '00FF00', '0000FF', 'FF00FF', '00FFFF', '... | class ChannelIterator:
'''
Iterator for generating and managing channel colors.
This class provides a way to iterate through a sequence of channel colors,
generating new colors in a visually distinct sequence when needed.
'''
def __init__(self, num_channels=0):
'''
Initialize th... | 9 | 8 | 10 | 1 | 7 | 3 | 2 | 0.52 | 0 | 3 | 0 | 0 | 6 | 2 | 7 | 7 | 96 | 13 | 60 | 22 | 51 | 31 | 45 | 21 | 37 | 6 | 0 | 2 | 17 |
327,897 | Euro-BioImaging/EuBI-Bridge | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Euro-BioImaging_EuBI-Bridge/eubi_bridge/base/data_manager.py | Euro-BioImaging_EuBI-Bridge.eubi_bridge.base.data_manager.NGFFImageMeta | from eubi_bridge.utils.convenience import sensitive_glob, is_zarr_group, is_zarr_array, take_filepaths, autocompute_chunk_shape
from eubi_bridge.ngff.multiscales import Pyramid
class NGFFImageMeta:
def __init__(self, path):
if is_zarr_group(path):
self.pyr = Pyramid().from_ngff(path)
... |
class NGFFImageMeta:
def __init__(self, path):
pass
def get_axes(self):
pass
def get_scales(self):
pass
def get_scaledict(self):
pass
def get_units(self):
pass
def get_unitdict(self):
pass
def get_channels(self):
pass | 8 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 2 | 1 | 0 | 7 | 3 | 7 | 7 | 31 | 6 | 25 | 14 | 15 | 0 | 22 | 12 | 14 | 2 | 0 | 1 | 9 |
327,898 | Euro-BioImaging/EuBI-Bridge | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Euro-BioImaging_EuBI-Bridge/eubi_bridge/base/data_manager.py | Euro-BioImaging_EuBI-Bridge.eubi_bridge.base.data_manager.PFFImageMeta | from eubi_bridge.base.readers import read_metadata_via_bioio_bioformats, read_metadata_via_extension, read_metadata_via_bfio
from ome_types.model import OME, Image, Pixels, Channel
class PFFImageMeta:
essential_omexml_fields = {'physical_size_x', 'physical_size_x_unit', 'physical_size_y', 'physical_size_y_unit', '... |
class PFFImageMeta:
def __init__(self, path, series, meta_reader='bioio'):
pass
def get_axes(self):
pass
def get_scaledict(self):
pass
def get_scales(self):
pass
def get_unitdict(self):
pass
def get_units(self):
pass
def get_channels(se... | 8 | 0 | 11 | 0 | 11 | 1 | 3 | 0.07 | 0 | 4 | 1 | 0 | 7 | 3 | 7 | 7 | 93 | 6 | 82 | 29 | 69 | 6 | 55 | 25 | 46 | 7 | 0 | 3 | 18 |
327,899 | Euro-BioImaging/EuBI-Bridge | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Euro-BioImaging_EuBI-Bridge/eubi_bridge/base/scale.py | Euro-BioImaging_EuBI-Bridge.eubi_bridge.base.scale.DownscaleManager | import dataclasses
import numpy as np
@dataclasses.dataclass
class DownscaleManager:
base_shape: (list, tuple)
scale_factor: (list, tuple)
n_layers: (list, tuple)
scale: (list, tuple) = None
def __post_init__(self):
ndim = len(self.base_shape)
assert len(self.scale_factor) == ndim
... | @dataclasses.dataclass
class DownscaleManager:
def __post_init__(self):
pass
@property
def _scale_ids(self):
pass
@property
def _theoretical_scale_factors(self):
pass
@property
def output_shapes(self):
pass
@property
def scale_factors(self):
p... | 13 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 6 | 31 | 6 | 25 | 15 | 13 | 0 | 20 | 10 | 13 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.