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,700 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/runtime/op_reg/base.py | wave_lang.runtime.op_reg.base.IntArg | from typing import Any, Callable, Optional, Sequence, Type, Union, cast
from torch import Tensor
class IntArg:
__slots__ = ['ir_arity', 'spec_value', 'v']
maybe_tensor_value: Optional[Tensor] = None
is_list: bool = False
def __init__(self, v: int):
self.v = v
self.spec_value: Optional[... |
class IntArg:
def __init__(self, v: int):
pass
def __repr__(self):
pass
def generate_meta(self) -> int:
pass
@property
def spec_key(self) -> str:
'''Generates a key that will be the same for all specializations.'''
pass
@property
def mlir_type_asm(... | 8 | 1 | 3 | 0 | 2 | 1 | 1 | 0.32 | 0 | 3 | 0 | 0 | 5 | 3 | 5 | 5 | 35 | 6 | 22 | 14 | 14 | 7 | 16 | 12 | 10 | 1 | 0 | 0 | 5 |
327,701 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/runtime/op_reg/base.py | wave_lang.runtime.op_reg.base.KernelBuilder | from wave_lang.support.ir_imports import Block, Context, FunctionType, IndexType, InsertionPoint, IntegerAttr, IrType, Location, StringAttr, SymbolTable, Value, arith_d, builtin_d, func_d
from typing import Any, Callable, Optional, Sequence, Type, Union, cast
from abc import ABC, abstractmethod
class KernelBuilder(ABC... |
class KernelBuilder(ABC):
'''Support class for building a kernel.'''
def __init__(self, ksel: KernelSelection, arg_bindings: list[Union[Value, list[Value]]], *, ip: InsertionPoint, module_body: Block, symbol_table: SymbolTable):
pass
def arg_value(self, index: int) -> Union[list[Value], Value]:
... | 6 | 4 | 10 | 0 | 8 | 2 | 1 | 0.21 | 1 | 5 | 1 | 2 | 4 | 7 | 4 | 24 | 45 | 5 | 33 | 23 | 19 | 7 | 20 | 13 | 15 | 2 | 4 | 1 | 5 |
327,702 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/runtime/op_reg/base.py | wave_lang.runtime.op_reg.base.KernelSelection | from typing import Any, Callable, Optional, Sequence, Type, Union, cast
from abc import ABC, abstractmethod
import torch
from torch import Tensor
import textwrap
class KernelSelection(ABC):
"""Represents a selected kernel based on a concrete signature.
The `CustomOp.select` method must yield an instance of th... |
class KernelSelection(ABC):
'''Represents a selected kernel based on a concrete signature.
The `CustomOp.select` method must yield an instance of this, and
it will be done for every invocation. At this point, the kernel
has not yet been generated, but we have selected a generation
strategy based on... | 28 | 13 | 9 | 1 | 5 | 3 | 1 | 0.69 | 1 | 11 | 2 | 2 | 16 | 5 | 16 | 36 | 191 | 32 | 94 | 42 | 66 | 65 | 57 | 30 | 40 | 4 | 4 | 1 | 23 |
327,703 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/runtime/op_reg/base.py | wave_lang.runtime.op_reg.base.TensorArg | from torch import Tensor
from wave_lang.support.conversions import TORCH_DTYPE_TO_IREE_TYPE_ASM
class TensorArg:
__slots__ = ['t', 'spec_dims', 'maybe_tensor_value']
ir_arity: int = 1
is_list: bool = False
def __init__(self, t: Tensor):
self.t = t
self.spec_dims = len(t.shape) * [_None... |
class TensorArg:
def __init__(self, t: Tensor):
pass
def specialize_all_dims(self):
'''Marks all dimensions as specialized.'''
pass
def specialize_dims(self, *indices: int):
'''Specializes individual dimensions.
`i` can have negative indexing.
'''
... | 10 | 3 | 7 | 0 | 5 | 1 | 2 | 0.22 | 0 | 4 | 0 | 0 | 7 | 3 | 7 | 7 | 64 | 9 | 45 | 24 | 35 | 10 | 32 | 21 | 24 | 4 | 0 | 1 | 12 |
327,704 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/runtime/op_reg/base.py | wave_lang.runtime.op_reg.base.TensorListArg | from torch import Tensor
from typing import Any, Callable, Optional, Sequence, Type, Union, cast
from wave_lang.support.conversions import TORCH_DTYPE_TO_IREE_TYPE_ASM
class TensorListArg:
__slots__ = ['ts', 'spec_dims', 'ir_arity', 'maybe_tensor_value']
is_list: bool = True
def __init__(self, ts: list[Te... |
class TensorListArg:
def __init__(self, ts: list[Tensor]):
pass
def __repr__(self):
pass
def generate_meta(self) -> list[Tensor]:
pass
@property
def spec_key(self) -> str:
'''Generates a key that will be the same for all specializations.'''
pass
@prope... | 8 | 1 | 9 | 0 | 8 | 1 | 2 | 0.15 | 0 | 5 | 0 | 0 | 5 | 4 | 5 | 5 | 60 | 6 | 48 | 22 | 40 | 7 | 30 | 19 | 24 | 5 | 0 | 2 | 11 |
327,705 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/runtime/op_reg/impl_helper.py | wave_lang.runtime.op_reg.impl_helper.JinjaTemplateLoader | from wave_lang.support.ir_imports import FlatSymbolRefAttr, FunctionType, MLIRError, Operation, StringAttr, TypeAttr, Value
from .base import KernelBuilder
class JinjaTemplateLoader(TemplateLoader):
"""Template loader based on jinja templates.
Usage:
_templates = JinjaTemplateLoader(__name__)
By de... |
class JinjaTemplateLoader(TemplateLoader):
'''Template loader based on jinja templates.
Usage:
_templates = JinjaTemplateLoader(__name__)
By default, this will resolve a template like "foo" from templates/foo.mlir
in the package directory.
'''
def __init__(self, package_name: str, packag... | 3 | 1 | 10 | 0 | 10 | 0 | 2 | 0.3 | 1 | 2 | 1 | 0 | 2 | 2 | 2 | 25 | 30 | 4 | 20 | 15 | 10 | 6 | 12 | 8 | 8 | 2 | 5 | 1 | 3 |
327,706 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/runtime/op_reg/impl_helper.py | wave_lang.runtime.op_reg.impl_helper.StrFormatTemplateLoader | from wave_lang.support.ir_imports import FlatSymbolRefAttr, FunctionType, MLIRError, Operation, StringAttr, TypeAttr, Value
from .base import KernelBuilder
class StrFormatTemplateLoader(TemplateLoader):
"""Template loader that uses str.format.
Usage:
_templates = StrFromatTemplateLoader(__name__)
B... |
class StrFormatTemplateLoader(TemplateLoader):
'''Template loader that uses str.format.
Usage:
_templates = StrFromatTemplateLoader(__name__)
By default, this will resolve a template like "foo" from templates/foo.mlir
in the package directory.
'''
def __init__(self, package_name: str, pa... | 3 | 1 | 10 | 1 | 10 | 0 | 1 | 0.3 | 1 | 2 | 1 | 0 | 2 | 3 | 2 | 25 | 31 | 5 | 20 | 15 | 10 | 6 | 10 | 9 | 6 | 1 | 5 | 0 | 2 |
327,707 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/runtime/op_reg/impl_helper.py | wave_lang.runtime.op_reg.impl_helper.TemplateLoader | from abc import ABC, abstractmethod
import textwrap
from .base import KernelBuilder
from wave_lang.support.logging import runtime_logger as logger
from wave_lang.transforms.merger import Merger
from wave_lang.support.ir_imports import FlatSymbolRefAttr, FunctionType, MLIRError, Operation, StringAttr, TypeAttr, Value
im... |
class TemplateLoader(ABC):
'''Base class for templates that can be loaded by name.'''
@abstractmethod
def load_template(self, kb: KernelBuilder, name: str, **kwargs) -> Operation:
'''Loads a template by name and kwargs, returning the module operation.'''
pass
def _parse_module_asm(self... | 5 | 3 | 14 | 0 | 12 | 2 | 2 | 0.15 | 1 | 6 | 2 | 2 | 3 | 0 | 3 | 23 | 49 | 4 | 39 | 17 | 28 | 6 | 22 | 9 | 18 | 3 | 4 | 1 | 6 |
327,708 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/support/conversions.py | wave_lang.support.conversions.UnknownDTypeError | class UnknownDTypeError(ValueError):
def __init__(self, dtype):
self.dtype = dtype
super().__init__(f'Unable to map torch dtype {dtype} to Turbine') | class UnknownDTypeError(ValueError):
def __init__(self, dtype):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 12 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
327,709 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/support/debugging.py | wave_lang.support.debugging.DebugFlags | import re
import logging
import sys
from dataclasses import dataclass
import os
from typing import Callable, Optional
@dataclass
class DebugFlags:
log_level: int = logging.WARNING
asserts: bool = False
runtime_trace_dir: Optional[str] = None
def set(self, part: str):
m = re.match(SETTING_PART_... | @dataclass
class DebugFlags:
def set(self, part: str):
pass
@staticmethod
def parse(settings: str) -> 'DebugFlags':
pass
@staticmethod
def parse_from_env() -> 'DebugFlags':
pass | 7 | 0 | 17 | 0 | 16 | 0 | 5 | 0.02 | 0 | 2 | 0 | 0 | 1 | 0 | 3 | 3 | 59 | 4 | 55 | 22 | 48 | 1 | 47 | 20 | 42 | 8 | 0 | 3 | 15 |
327,710 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/support/logging.py | wave_lang.support.logging.DefaultFormatter | import logging
class DefaultFormatter(logging.Formatter):
def __init__(self):
super().__init__('%(levelname)s %(asctime)s [%(filename)s:%(lineno)d] %(message)s', '%m-%d %H:%M:%S') |
class DefaultFormatter(logging.Formatter):
def __init__(self):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 8 | 6 | 0 | 6 | 2 | 4 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
327,711 | iree-org/wave | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/iree-org_wave/wave_lang/tools/interpreter.py | wave_lang.tools.interpreter.Interpreter | import numpy as np
import re
from typing import Callable
from wave_lang.support.ir_imports import Context, F16Type, F32Type, IndexType, IntegerAttr, IntegerType, Module, Operation, Value, VectorType, amdgpu_d, arith_d, builtin_d, flow_d, func_d, gpu_d, llvm_d, memref_d, scf_d, stream_d, vector_d
import torch
class Int... |
class Interpreter:
'''
Python interpreter for MLIR.
Uses torch for tensor operations.
'''
def __init__(self, workgroup_ids: list[int], thread_ids: list[int]) -> None:
pass
def get_dtype(self, dtype):
pass
def callback(self, op: Operation) -> None:
pass
def wa... | 8 | 1 | 46 | 1 | 44 | 2 | 12 | 0.05 | 0 | 11 | 0 | 0 | 5 | 4 | 6 | 6 | 289 | 10 | 267 | 60 | 229 | 13 | 191 | 57 | 183 | 54 | 0 | 4 | 70 |
327,712 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/scripts/benchmark.py | benchmark.BenchmarkDataset | from enum import Enum
class BenchmarkDataset(Enum):
MATH500 = 'math500'
AIME_2024 = 'aime-2024' |
class BenchmarkDataset(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,713 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/scripts/benchmark.py | benchmark.ScalingAlgorithm | from enum import Enum
class ScalingAlgorithm(Enum):
SELF_CONSISTENCY = 'self-consistency'
BEAM_SEARCH = 'beam-search'
PARTICLE_FILTERING = 'particle-filtering' |
class ScalingAlgorithm(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
327,714 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/__init__.py | its_hub.algorithms.MetropolisHastings | from its_hub.lms import StepGeneration
from its_hub.base import AbstractLanguageModel, AbstractOutcomeRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
class MetropolisHastings(AbstractScalingAlgorithm):
def __init__(self, step_generation: StepGeneration, orm: AbstractOutcomeRewardModel):
self.... |
class MetropolisHastings(AbstractScalingAlgorithm):
def __init__(self, step_generation: StepGeneration, orm: AbstractOutcomeRewardModel):
pass
def infer(self, lm: AbstractLanguageModel, prompt: str, budget: int, show_progress: bool=False, return_response_only: bool=True) -> str | MetropolisHastingsRe... | 3 | 0 | 8 | 0 | 7 | 1 | 1 | 0.07 | 1 | 8 | 4 | 0 | 2 | 2 | 2 | 23 | 17 | 1 | 15 | 14 | 3 | 1 | 6 | 5 | 3 | 1 | 5 | 0 | 2 |
327,715 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/__init__.py | its_hub.algorithms.MetropolisHastingsResult | from its_hub.base import AbstractLanguageModel, AbstractOutcomeRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
class MetropolisHastingsResult(AbstractScalingResult):
pass |
class MetropolisHastingsResult(AbstractScalingResult):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 21 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
327,716 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/beam_search.py | its_hub.algorithms.beam_search.BeamSearch | import numpy as np
from its_hub.base import AbstractLanguageModel, AbstractProcessRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
from its_hub.lms import StepGeneration
class BeamSearch(AbstractScalingAlgorithm):
def __init__(self, sg: StepGeneration, prm: AbstractProcessRewardModel, beam_width: int)... |
class BeamSearch(AbstractScalingAlgorithm):
def __init__(self, sg: StepGeneration, prm: AbstractProcessRewardModel, beam_width: int):
pass
def _search_one_level(self, lm: AbstractLanguageModel, candidates: list[Path], prompt: str, batched: bool=False) -> list[Path]:
pass
def infer(self, ... | 4 | 0 | 42 | 7 | 33 | 3 | 6 | 0.08 | 1 | 11 | 5 | 0 | 3 | 3 | 3 | 24 | 129 | 22 | 99 | 39 | 78 | 8 | 63 | 21 | 59 | 12 | 5 | 3 | 18 |
327,717 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/beam_search.py | its_hub.algorithms.beam_search.BeamSearchResult | from pydantic.dataclasses import dataclass
from its_hub.base import AbstractLanguageModel, AbstractProcessRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
@dataclass
class BeamSearchResult(AbstractScalingResult):
responses: list[str]
scores: list[float]
selected_index: int
steps_used: list[... | @dataclass
class BeamSearchResult(AbstractScalingResult):
@property
def the_one(self) -> str:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 22 | 9 | 1 | 8 | 3 | 5 | 0 | 7 | 2 | 5 | 1 | 5 | 0 | 1 |
327,718 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/beam_search.py | its_hub.algorithms.beam_search.Path | from pydantic.dataclasses import dataclass
import copy
@dataclass
class Path:
steps: list[str]
is_stopped: bool
score: float
def deepcopy(self):
return Path(steps=copy.deepcopy(self.steps), is_stopped=self.is_stopped, score=self.score) | @dataclass
class Path:
def deepcopy(self):
pass | 3 | 0 | 7 | 0 | 6 | 1 | 1 | 0.1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 12 | 1 | 10 | 2 | 8 | 1 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
327,719 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/bon.py | its_hub.algorithms.bon.BestOfN | from its_hub.base import AbstractLanguageModel, AbstractOutcomeRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
from its_hub.types import ChatMessage
class BestOfN(AbstractScalingAlgorithm):
def __init__(self, orm: AbstractOutcomeRewardModel):
self.orm = orm
def infer(self, lm: AbstractLa... |
class BestOfN(AbstractScalingAlgorithm):
def __init__(self, orm: AbstractOutcomeRewardModel):
pass
def infer(self, lm: AbstractLanguageModel, prompt: str, budget: int, return_response_only: bool=True) -> str | BestOfNResult:
pass | 3 | 0 | 18 | 2 | 13 | 3 | 3 | 0.22 | 1 | 8 | 4 | 0 | 2 | 1 | 2 | 23 | 37 | 4 | 27 | 17 | 18 | 6 | 14 | 10 | 11 | 4 | 5 | 2 | 5 |
327,720 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/bon.py | its_hub.algorithms.bon.BestOfNResult | from pydantic.dataclasses import dataclass
from its_hub.base import AbstractLanguageModel, AbstractOutcomeRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
@dataclass
class BestOfNResult(AbstractScalingResult):
responses: list[str]
scores: list[float]
selected_index: int
@property
def t... | @dataclass
class BestOfNResult(AbstractScalingResult):
@property
def the_one(self) -> str:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 22 | 8 | 1 | 7 | 3 | 4 | 0 | 6 | 2 | 4 | 1 | 5 | 0 | 1 |
327,721 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/particle_gibbs.py | its_hub.algorithms.particle_gibbs.Particle | from pydantic.dataclasses import dataclass
import copy
@dataclass
class Particle:
steps: list[str]
is_stopped: bool
partial_log_weights: list[float]
@property
def log_weight(self) -> float:
"""Return the most recent log weight."""
if self.partial_log_weights:
return sel... | @dataclass
class Particle:
@property
def log_weight(self) -> float:
'''Return the most recent log weight.'''
pass
def deepcopy(self):
pass | 5 | 1 | 6 | 0 | 5 | 1 | 2 | 0.2 | 0 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 19 | 2 | 15 | 4 | 11 | 3 | 10 | 3 | 7 | 2 | 0 | 1 | 3 |
327,722 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/particle_gibbs.py | its_hub.algorithms.particle_gibbs.ParticleFiltering | from its_hub.base import AbstractLanguageModel, AbstractProcessRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
from its_hub.lms import StepGeneration
class ParticleFiltering(ParticleGibbs):
"""
Particle filtering being a special case of particle Gibbs with num_iterations=1
"""
def __init_... |
class ParticleFiltering(ParticleGibbs):
'''
Particle filtering being a special case of particle Gibbs with num_iterations=1
'''
def __init__(self, sg: StepGeneration, prm: AbstractProcessRewardModel, selection_method: str | SelectionMethod=SelectionMethod.ARGMAX):
pass
def infer(self, lm:... | 3 | 1 | 18 | 2 | 16 | 1 | 2 | 0.16 | 1 | 9 | 5 | 0 | 2 | 0 | 2 | 26 | 42 | 5 | 32 | 16 | 18 | 5 | 9 | 5 | 6 | 2 | 6 | 1 | 3 |
327,723 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/particle_gibbs.py | its_hub.algorithms.particle_gibbs.ParticleFilteringResult | from pydantic.dataclasses import dataclass
from its_hub.base import AbstractLanguageModel, AbstractProcessRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
@dataclass
class ParticleFilteringResult(AbstractScalingResult):
responses: list[str]
log_weights_lst: list[float]
selected_index: int
s... | @dataclass
class ParticleFilteringResult(AbstractScalingResult):
@property
def the_one(self) -> str:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 22 | 9 | 1 | 8 | 3 | 5 | 0 | 7 | 2 | 5 | 1 | 5 | 0 | 1 |
327,724 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/particle_gibbs.py | its_hub.algorithms.particle_gibbs.ParticleGibbs | from its_hub.base import AbstractLanguageModel, AbstractProcessRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
from its_hub.lms import StepGeneration
import numpy as np
import random
class ParticleGibbs(AbstractScalingAlgorithm):
"""
Particle-based Monte Carlo methods for inference time scaling.
... |
class ParticleGibbs(AbstractScalingAlgorithm):
'''
Particle-based Monte Carlo methods for inference time scaling.
It supports the following variants:
- Particle Filtering (PF): num_iterations = 1
- Particle Gibbs (PG): num_iterations > 1
- PG with ancestor sampling (PGAS): num_iterations > 1 an... | 4 | 1 | 65 | 11 | 48 | 7 | 8 | 0.19 | 1 | 13 | 6 | 1 | 3 | 6 | 3 | 24 | 205 | 35 | 144 | 54 | 119 | 28 | 94 | 35 | 89 | 12 | 5 | 4 | 25 |
327,725 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/particle_gibbs.py | its_hub.algorithms.particle_gibbs.ParticleGibbsResult | from pydantic.dataclasses import dataclass
from its_hub.base import AbstractLanguageModel, AbstractProcessRewardModel, AbstractScalingAlgorithm, AbstractScalingResult
@dataclass
class ParticleGibbsResult(AbstractScalingResult):
responses_lst: list[list[str]]
log_weights_lst: list[list[float]]
ref_indices_l... | @dataclass
class ParticleGibbsResult(AbstractScalingResult):
@property
def the_one(self) -> str:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 22 | 10 | 1 | 9 | 3 | 6 | 0 | 8 | 2 | 6 | 1 | 5 | 0 | 1 |
327,726 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/particle_gibbs.py | its_hub.algorithms.particle_gibbs.SelectionMethod | from enum import Enum
class SelectionMethod(Enum):
SAMPLE = 'sample'
ARGMAX = 'argmax' |
class SelectionMethod(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,727 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/planning_wrapper.py | its_hub.algorithms.planning_wrapper.ApproachPromptTemplate | class ApproachPromptTemplate:
"""Template for generating approach-specific prompts."""
APPROACH_TEMPLATE = 'Using the {approach} method from your plan, solve this problem step by step:\n\nProblem: {problem}\n\nApproach to use: {approach}\n\nPlease solve the problem following this specific approach and show your... | class ApproachPromptTemplate:
'''Template for generating approach-specific prompts.'''
@classmethod
def create_approach_prompt(cls, problem: str, approach: str) -> str:
'''Create an approach-specific prompt.'''
pass | 3 | 2 | 3 | 0 | 2 | 1 | 1 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 15 | 5 | 8 | 4 | 5 | 2 | 4 | 3 | 2 | 1 | 0 | 0 | 1 |
327,728 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/planning_wrapper.py | its_hub.algorithms.planning_wrapper.PlanParser | import re
class PlanParser:
"""Parser to extract approaches from planning output."""
@staticmethod
def extract_approaches(plan: str) -> list[str]:
"""Extract approaches from the planning output."""
approaches = []
approach_pattern = 'APPROACH\\s+(\\d+):\\s*([^\\n]+(?:\\n(?!APPROACH... |
class PlanParser:
'''Parser to extract approaches from planning output.'''
@staticmethod
def extract_approaches(plan: str) -> list[str]:
'''Extract approaches from the planning output.'''
pass | 3 | 2 | 34 | 5 | 23 | 7 | 7 | 0.32 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 38 | 6 | 25 | 11 | 22 | 8 | 20 | 10 | 18 | 7 | 0 | 4 | 7 |
327,729 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/planning_wrapper.py | its_hub.algorithms.planning_wrapper.PlanningPromptTemplate | class PlanningPromptTemplate:
"""Template for generating planning prompts."""
PLANNING_TEMPLATE = 'Before solving this problem, I want you to first create a plan with different approaches to explore. This will help generate diverse solution strategies.\n\nProblem: {problem}\n\nPlease provide a plan with 3 disti... | class PlanningPromptTemplate:
'''Template for generating planning prompts.'''
@classmethod
def create_planning_prompt(cls, problem: str) -> str:
'''Create a planning prompt for the given problem.'''
pass | 3 | 2 | 3 | 0 | 2 | 1 | 1 | 0.18 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 19 | 6 | 11 | 4 | 8 | 2 | 4 | 3 | 2 | 1 | 0 | 0 | 1 |
327,730 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/planning_wrapper.py | its_hub.algorithms.planning_wrapper.PlanningWrappedResult | from dataclasses import dataclass
from its_hub.base import AbstractLanguageModel, AbstractScalingAlgorithm, AbstractScalingResult
@dataclass
class PlanningWrappedResult(AbstractScalingResult):
"""Result object for Planning-Enhanced algorithms."""
plan: str
approaches: list[str]
approach_results: dict[s... | @dataclass
class PlanningWrappedResult(AbstractScalingResult):
'''Result object for Planning-Enhanced algorithms.'''
@property
def the_one(self) -> str:
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.09 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 22 | 14 | 2 | 11 | 3 | 8 | 1 | 10 | 2 | 8 | 1 | 5 | 0 | 1 |
327,731 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/planning_wrapper.py | its_hub.algorithms.planning_wrapper.PlanningWrapper | from its_hub.types import ChatMessage
from its_hub.base import AbstractLanguageModel, AbstractScalingAlgorithm, AbstractScalingResult
class PlanningWrapper(AbstractScalingAlgorithm):
"""
Planning Wrapper that can enhance any ITS algorithm with a planning phase.
This wrapper adds a planning step before run... |
class PlanningWrapper(AbstractScalingAlgorithm):
'''
Planning Wrapper that can enhance any ITS algorithm with a planning phase.
This wrapper adds a planning step before running the base algorithm, where:
1. Model generates a plan with distinct approaches/hypotheses
2. Budget is divided equally acro... | 5 | 5 | 42 | 6 | 26 | 11 | 6 | 0.49 | 1 | 15 | 7 | 0 | 4 | 2 | 4 | 25 | 180 | 29 | 103 | 43 | 90 | 50 | 67 | 35 | 62 | 11 | 5 | 3 | 25 |
327,732 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/self_consistency.py | its_hub.algorithms.self_consistency.SelfConsistency | from its_hub.base import AbstractLanguageModel, AbstractScalingAlgorithm, AbstractScalingResult
from collections.abc import Callable
from its_hub.types import ChatMessage
class SelfConsistency(AbstractScalingAlgorithm):
def __init__(self, consistency_space_projection_func: Callable):
self.consistency_spac... |
class SelfConsistency(AbstractScalingAlgorithm):
def __init__(self, consistency_space_projection_func: Callable):
pass
def infer(self, lm: AbstractLanguageModel, prompt: str, budget: int, return_response_only: bool=True) -> str | SelfConsistencyResult:
pass | 3 | 0 | 16 | 2 | 12 | 2 | 2 | 0.16 | 1 | 8 | 3 | 0 | 2 | 1 | 2 | 23 | 33 | 4 | 25 | 15 | 16 | 4 | 9 | 8 | 6 | 2 | 5 | 0 | 3 |
327,733 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/algorithms/self_consistency.py | its_hub.algorithms.self_consistency.SelfConsistencyResult | from its_hub.base import AbstractLanguageModel, AbstractScalingAlgorithm, AbstractScalingResult
from collections import Counter
from pydantic.dataclasses import dataclass
@dataclass
class SelfConsistencyResult(AbstractScalingResult):
responses: list[str]
response_counts: Counter[str]
selected_index: int
... | @dataclass
class SelfConsistencyResult(AbstractScalingResult):
@property
def the_one(self) -> str:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 22 | 8 | 1 | 7 | 3 | 4 | 0 | 6 | 2 | 4 | 1 | 5 | 0 | 1 |
327,734 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/base.py | its_hub.base.AbstractLanguageModel | from abc import ABC, abstractmethod
from .types import ChatMessage
class AbstractLanguageModel(ABC):
"""abstract base class for (autoregressive) language models"""
@abstractmethod
def generate(self, messages: list[ChatMessage] | list[list[ChatMessage]], stop: str | None=None) -> str | list[str]:
"... |
class AbstractLanguageModel(ABC):
'''abstract base class for (autoregressive) language models'''
@abstractmethod
def generate(self, messages: list[ChatMessage] | list[list[ChatMessage]], stop: str | None=None) -> str | list[str]:
'''
generate a response from the model
Args:
... | 5 | 3 | 14 | 2 | 4 | 8 | 1 | 1.45 | 1 | 4 | 1 | 8 | 2 | 0 | 2 | 22 | 33 | 6 | 11 | 9 | 2 | 16 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
327,735 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/base.py | its_hub.base.AbstractOutcomeRewardModel | from abc import ABC, abstractmethod
class AbstractOutcomeRewardModel(ABC):
"""abstract base class for outcome reward models"""
@abstractmethod
def score(self, prompt: str, response: str) -> float:
"""the score for a given prompt and response"""
pass |
class AbstractOutcomeRewardModel(ABC):
'''abstract base class for outcome reward models'''
@abstractmethod
def score(self, prompt: str, response: str) -> float:
'''the score for a given prompt and response'''
pass | 3 | 2 | 3 | 0 | 2 | 1 | 1 | 0.5 | 1 | 2 | 0 | 3 | 1 | 0 | 1 | 21 | 7 | 1 | 4 | 3 | 1 | 2 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
327,736 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/base.py | its_hub.base.AbstractProcessRewardModel | from abc import ABC, abstractmethod
class AbstractProcessRewardModel(ABC):
"""abstract base class for process reward models"""
@abstractmethod
def score(self, prompt: str, steps: list[str]) -> list[float]:
"""the score for a given prompt and steps"""
pass |
class AbstractProcessRewardModel(ABC):
'''abstract base class for process reward models'''
@abstractmethod
def score(self, prompt: str, steps: list[str]) -> list[float]:
'''the score for a given prompt and steps'''
pass | 3 | 2 | 3 | 0 | 2 | 1 | 1 | 0.5 | 1 | 3 | 0 | 3 | 1 | 0 | 1 | 21 | 7 | 1 | 4 | 3 | 1 | 2 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
327,737 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/base.py | its_hub.base.AbstractScalingAlgorithm | from abc import ABC, abstractmethod
class AbstractScalingAlgorithm(ABC):
"""abstract base class for inference-time scaling algorithms"""
@abstractmethod
def infer(self, lm: AbstractLanguageModel, prompt: str, budget: int, return_response_only: bool=True) -> str | AbstractScalingResult:
"""
... |
class AbstractScalingAlgorithm(ABC):
'''abstract base class for inference-time scaling algorithms'''
@abstractmethod
def infer(self, lm: AbstractLanguageModel, prompt: str, budget: int, return_response_only: bool=True) -> str | AbstractScalingResult:
'''
run inference with the given languag... | 3 | 2 | 20 | 2 | 8 | 10 | 1 | 1.1 | 1 | 5 | 2 | 6 | 1 | 0 | 1 | 21 | 24 | 3 | 10 | 9 | 1 | 11 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
327,738 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/base.py | its_hub.base.AbstractScalingResult | from abc import ABC, abstractmethod
class AbstractScalingResult(ABC):
"""abstract base class for scaling result"""
@property
@abstractmethod
def the_one(self) -> str:
"""the selected response"""
pass |
class AbstractScalingResult(ABC):
'''abstract base class for scaling result'''
@property
@abstractmethod
def the_one(self) -> str:
'''the selected response'''
pass | 4 | 2 | 3 | 0 | 2 | 1 | 1 | 0.4 | 1 | 1 | 0 | 7 | 1 | 0 | 1 | 21 | 8 | 1 | 5 | 3 | 1 | 2 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
327,739 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/error_handling.py | its_hub.error_handling.APIConnectionError | class APIConnectionError(APIError):
"""Network/connection issues - retryable."""
pass | class APIConnectionError(APIError):
'''Network/connection issues - retryable.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
327,740 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/error_handling.py | its_hub.error_handling.APIError | from typing import Any
class APIError(Exception):
"""Base class for API-related errors."""
def __init__(self, message: str, status_code: int | None=None, error_details: dict[str, Any] | None=None):
self.message = message
self.status_code = status_code
self.error_details = error_details... |
class APIError(Exception):
'''Base class for API-related errors.'''
def __init__(self, message: str, status_code: int | None=None, error_details: dict[str, Any] | None=None):
pass | 2 | 1 | 10 | 0 | 10 | 0 | 1 | 0.09 | 1 | 5 | 0 | 6 | 1 | 3 | 1 | 11 | 13 | 1 | 11 | 10 | 4 | 1 | 6 | 5 | 4 | 1 | 3 | 0 | 1 |
327,741 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/error_handling.py | its_hub.error_handling.AuthenticationError | class AuthenticationError(APIError):
"""Authentication failed - not retryable."""
pass | class AuthenticationError(APIError):
'''Authentication failed - not retryable.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
327,742 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/error_handling.py | its_hub.error_handling.BadRequestError | class BadRequestError(APIError):
"""Bad request (invalid parameters) - not retryable."""
pass | class BadRequestError(APIError):
'''Bad request (invalid parameters) - not retryable.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
327,743 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/error_handling.py | its_hub.error_handling.ContextLengthError | class ContextLengthError(APIError):
"""Context length exceeded - not retryable."""
pass | class ContextLengthError(APIError):
'''Context length exceeded - not retryable.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
327,744 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/error_handling.py | its_hub.error_handling.InternalServerError | class InternalServerError(APIError):
"""Server error - retryable."""
pass | class InternalServerError(APIError):
'''Server error - retryable.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
327,745 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/error_handling.py | its_hub.error_handling.RateLimitError | class RateLimitError(APIError):
"""Rate limit exceeded - retryable."""
pass | class RateLimitError(APIError):
'''Rate limit exceeded - retryable.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
327,746 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/integration/iaas.py | its_hub.integration.iaas.ChatCompletionChoice | from pydantic import BaseModel, Field, field_validator
from its_hub.types import ChatMessage
class ChatCompletionChoice(BaseModel):
"""Single completion choice."""
index: int = Field(..., description='Choice index')
message: ChatMessage = Field(..., description='Generated message')
finish_reason: str =... |
class ChatCompletionChoice(BaseModel):
'''Single completion choice.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 1 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
327,747 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/integration/iaas.py | its_hub.integration.iaas.ChatCompletionRequest | from its_hub.types import ChatMessage
from pydantic import BaseModel, Field, field_validator
class ChatCompletionRequest(BaseModel):
"""Chat completion request with inference-time scaling support."""
model: str = Field(..., description='Model identifier')
messages: list[ChatMessage] = Field(..., descriptio... |
class ChatCompletionRequest(BaseModel):
'''Chat completion request with inference-time scaling support.'''
@field_validator('messages')
@classmethod
def validate_messages(cls, v):
'''Validate message format and constraints.'''
pass | 4 | 2 | 11 | 0 | 10 | 1 | 5 | 0.09 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 83 | 27 | 2 | 23 | 9 | 19 | 2 | 17 | 8 | 15 | 5 | 5 | 1 | 5 |
327,748 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/integration/iaas.py | its_hub.integration.iaas.ChatCompletionResponse | from pydantic import BaseModel, Field, field_validator
class ChatCompletionResponse(BaseModel):
"""Chat completion response."""
id: str = Field(..., description='Unique response identifier')
object: str = Field('chat.completion', description='Object type')
created: int = Field(..., description='Creatio... |
class ChatCompletionResponse(BaseModel):
'''Chat completion response.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 9 | 1 | 7 | 6 | 6 | 1 | 7 | 6 | 6 | 0 | 5 | 0 | 0 |
327,749 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/integration/iaas.py | its_hub.integration.iaas.ChatCompletionUsage | from pydantic import BaseModel, Field, field_validator
class ChatCompletionUsage(BaseModel):
"""Token usage information."""
prompt_tokens: int = Field(..., description='Tokens in prompt')
completion_tokens: int = Field(..., description='Generated tokens')
total_tokens: int = Field(..., description='Tot... |
class ChatCompletionUsage(BaseModel):
'''Token usage information.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 1 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
327,750 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/integration/iaas.py | its_hub.integration.iaas.ConfigRequest | from pydantic import BaseModel, Field, field_validator
class ConfigRequest(BaseModel):
"""Configuration request for setting up the IaaS service."""
endpoint: str = Field(..., description='Language model endpoint URL')
api_key: str = Field(..., description='API key for the language model')
model: str = ... |
class ConfigRequest(BaseModel):
'''Configuration request for setting up the IaaS service.'''
@field_validator('alg')
@classmethod
def validate_algorithm(cls, v):
'''Validate that the algorithm is supported.'''
pass | 4 | 2 | 8 | 0 | 7 | 1 | 2 | 0.1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 83 | 25 | 2 | 21 | 13 | 17 | 2 | 15 | 12 | 13 | 2 | 5 | 1 | 2 |
327,751 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/integration/reward_hub.py | its_hub.integration.reward_hub.LocalVllmProcessRewardModel | from reward_hub.base import AggregationMethod
from its_hub.base import AbstractProcessRewardModel
class LocalVllmProcessRewardModel(AbstractProcessRewardModel):
def __init__(self, model_name: str, device: str, aggregation_method: AggregationMethod):
from reward_hub.vllm.reward import VllmProcessRewardMode... |
class LocalVllmProcessRewardModel(AbstractProcessRewardModel):
def __init__(self, model_name: str, device: str, aggregation_method: AggregationMethod):
pass
def score(self, prompt: str, response_or_responses: str | list[str]) -> float:
pass | 3 | 0 | 12 | 1 | 12 | 0 | 2 | 0 | 1 | 3 | 0 | 0 | 2 | 2 | 2 | 23 | 26 | 2 | 24 | 11 | 18 | 0 | 12 | 9 | 8 | 3 | 5 | 1 | 4 |
327,752 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/lms.py | its_hub.lms.LocalVLLMLanguageModel | from .base import AbstractLanguageModel
class LocalVLLMLanguageModel(AbstractLanguageModel):
pass |
class LocalVLLMLanguageModel(AbstractLanguageModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
327,753 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/lms.py | its_hub.lms.OpenAICompatibleLanguageModel | from .types import ChatMessage
import asyncio
import aiohttp
from .error_handling import RETRYABLE_ERRORS, APIError, enhanced_on_backoff, format_non_retryable_error, parse_api_error, should_retry
import backoff
import requests
import logging
from .base import AbstractLanguageModel
class OpenAICompatibleLanguageModel(A... |
class OpenAICompatibleLanguageModel(AbstractLanguageModel):
def __init__(self, endpoint: str, api_key: str, model_name: str, system_prompt: str | None=None, is_async: bool=False, stop: str | None=None, max_tokens: int | None=None, temperature: float | None=None, max_tries: int=8, max_concurrency: int=-1, replace_... | 14 | 0 | 31 | 2 | 28 | 1 | 4 | 0.07 | 1 | 13 | 2 | 0 | 6 | 12 | 6 | 28 | 256 | 24 | 218 | 94 | 157 | 15 | 104 | 40 | 93 | 11 | 5 | 4 | 36 |
327,754 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/lms.py | its_hub.lms.StepGeneration | from .types import ChatMessage
from .base import AbstractLanguageModel
import logging
class StepGeneration:
def __init__(self, max_steps: int, step_token: str | list[str] | None=None, stop_token: str | None=None, temperature: float=0.8, include_stop_str_in_output: bool=False, temperature_switch: tuple[float, str,... |
class StepGeneration:
def __init__(self, max_steps: int, step_token: str | list[str] | None=None, stop_token: str | None=None, temperature: float=0.8, include_stop_str_in_output: bool=False, temperature_switch: tuple[float, str, str] | None=None, tokens_per_step: int | None=None):
pass
def _post_proc... | 5 | 0 | 39 | 1 | 37 | 1 | 6 | 0.03 | 0 | 10 | 2 | 0 | 4 | 7 | 4 | 4 | 160 | 8 | 150 | 45 | 127 | 5 | 74 | 27 | 69 | 8 | 0 | 4 | 24 |
327,755 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/lms.py | its_hub.lms.TransformersLanguageModel | from .base import AbstractLanguageModel
class TransformersLanguageModel(AbstractLanguageModel):
pass |
class TransformersLanguageModel(AbstractLanguageModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
327,756 | Red-Hat-AI-Innovation-Team/its_hub | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Red-Hat-AI-Innovation-Team_its_hub/its_hub/types.py | its_hub.types.ChatMessage | from typing import Literal
from pydantic.dataclasses import dataclass
@dataclass
class ChatMessage:
"""A chat message with role and content."""
role: Literal['system', 'user', 'assistant']
content: str | @dataclass
class ChatMessage:
'''A chat message with role and content.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
327,757 | 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/agent_runners/api.py | api.AgentRunner | from abc import ABC, abstractmethod
from flux0_core.agent_runners.context import Context
class AgentRunner(ABC):
@abstractmethod
async def run(self, context: Context, deps: Deps) -> bool:
... |
class AgentRunner(ABC):
@abstractmethod
async def run(self, context: Context, deps: Deps) -> bool:
pass | 3 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 3 | 2 | 9 | 1 | 0 | 1 | 21 | 3 | 0 | 3 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
327,758 | 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/agent_runners/api.py | api.AgentRunnerFactory | from abc import ABC, abstractmethod
from flux0_core.agents import Agent, AgentId, AgentStore, AgentType
class AgentRunnerFactory(ABC):
@abstractmethod
def create_runner(self, agent_type: AgentType) -> AgentRunner:
...
@abstractmethod
def runner_exists(self, agent_type: AgentType) -> bool:
... |
class AgentRunnerFactory(ABC):
@abstractmethod
def create_runner(self, agent_type: AgentType) -> AgentRunner:
pass
@abstractmethod
def runner_exists(self, agent_type: AgentType) -> bool:
pass | 5 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 2 | 1 | 2 | 2 | 0 | 2 | 22 | 6 | 1 | 5 | 5 | 2 | 0 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
327,759 | 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/agent_runners/api.py | api.Deps | from flux0_core.sessions import Event, Session, SessionId, SessionStore
from typing import Callable, Optional, Sequence, Type, TypeVar
from flux0_core.contextual_correlator import ContextualCorrelator
from flux0_core.logging import Logger
from flux0_stream.emitter.api import EventEmitter
from flux0_core.agents import A... |
class Deps:
def __init__(self, correlator: ContextualCorrelator, logger: Logger, event_emitter: EventEmitter, agent_store: AgentStore, session_store: SessionStore, recording_store: RecordingStore) -> None:
pass
async def read_session(self, session_id: SessionId) -> Optional[Session]:
pass
... | 5 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 9 | 9 | 0 | 4 | 6 | 4 | 4 | 25 | 3 | 22 | 19 | 9 | 0 | 14 | 11 | 9 | 1 | 0 | 0 | 4 |
327,760 | 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/api.py | api.EventEmitter | from abc import ABC, abstractmethod
from flux0_stream.types import ChunkEvent, EmittedEvent
from flux0_core.sessions import EventId, StatusEventData
from typing import Awaitable, Callable, Optional
class EventEmitter(ABC):
"""ABC for event emissions."""
@abstractmethod
async def enqueue_status_event(self,... |
class EventEmitter(ABC):
'''ABC for event emissions.'''
@abstractmethod
async def enqueue_status_event(self, correlation_id: str, data: StatusEventData, event_id: Optional[EventId]=None) -> None:
'''Enqueues a status event for a specific execution (correlation_id).'''
pass
@abstractmethod
a... | 13 | 7 | 4 | 0 | 3 | 1 | 1 | 0.29 | 1 | 3 | 2 | 1 | 6 | 0 | 6 | 26 | 37 | 6 | 24 | 18 | 6 | 7 | 13 | 7 | 6 | 1 | 4 | 0 | 6 |
327,761 | 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/api.py | api.EventStore | from flux0_stream.types import ChunkEvent, EmittedEvent
from flux0_core.sessions import EventId
from typing import Optional
from abc import ABC, abstractmethod
class EventStore(ABC):
"""ABC for event storage and retrieval."""
@abstractmethod
async def add_chunk(self, chunk: ChunkEvent) -> None:
..... |
class EventStore(ABC):
'''ABC for event storage and retrieval.'''
@abstractmethod
async def add_chunk(self, chunk: ChunkEvent) -> None:
pass
@abstractmethod
async def finalize_event(self, correlation_id: str, event_id: EventId) -> Optional[EmittedEvent]:
pass | 5 | 1 | 2 | 0 | 2 | 0 | 1 | 0.14 | 1 | 3 | 2 | 1 | 2 | 0 | 2 | 22 | 10 | 2 | 7 | 7 | 2 | 1 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
327,762 | 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/agent_runners/context.py | context.Context | from flux0_core.sessions import Event, SessionId
from flux0_core.agents import AgentId
from dataclasses import dataclass
@dataclass(frozen=True)
class Context:
session_id: SessionId
agent_id: AgentId | @dataclass(frozen=True)
class Context:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
327,763 | 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/agent_runners/context.py | context.InteractionState | from dataclasses import dataclass
from typing import Sequence
from flux0_core.sessions import Event, SessionId
@dataclass(frozen=True)
class InteractionState:
last_known_event_offset: int
history: Sequence[Event] | @dataclass(frozen=True)
class InteractionState:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
327,764 | 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/api/src/flux0_api/auth.py | flux0_api.auth.AuthHandler | from fastapi import Depends, Request
from abc import ABC, abstractmethod
from flux0_core.users import User, UserStore
class AuthHandler(ABC):
@abstractmethod
async def __call__(self, request: Request) -> User:
"""Auth handler that returns a user object or raises an HTTPException.""" |
class AuthHandler(ABC):
@abstractmethod
async def __call__(self, request: Request) -> User:
'''Auth handler that returns a user object or raises an HTTPException.'''
pass | 3 | 1 | 2 | 0 | 1 | 1 | 1 | 0.33 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 21 | 4 | 0 | 3 | 3 | 0 | 1 | 2 | 2 | 0 | 1 | 4 | 0 | 1 |
327,765 | 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/api/src/flux0_api/auth.py | flux0_api.auth.AuthType | from enum import Enum
class AuthType(Enum):
NOOP = 'noop' |
class AuthType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
327,766 | 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/api/src/flux0_api/auth.py | flux0_api.auth.NoopAuthHandler | from flux0_core.users import User, UserStore
from fastapi import Depends, Request
class NoopAuthHandler(AuthHandler):
_default_sub = NOOP_AUTH_HANDLER_DEFAULT_SUB
user_store: UserStore
def __init__(self, user_store: UserStore):
self.user_store = user_store
async def __call__(self, request: Re... |
class NoopAuthHandler(AuthHandler):
def __init__(self, user_store: UserStore):
pass
async def __call__(self, request: Request) -> User:
'''No-op auth handler that always returns an anonymous user.'''
pass | 3 | 1 | 7 | 1 | 5 | 1 | 2 | 0.08 | 1 | 2 | 2 | 0 | 2 | 0 | 2 | 23 | 18 | 4 | 13 | 6 | 10 | 1 | 11 | 6 | 8 | 2 | 5 | 1 | 3 |
327,767 | 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/api/src/flux0_api/common.py | flux0_api.common.DefaultBaseEnum | from pydantic_core import CoreSchema
from enum import Enum
from pydantic import BaseModel, ConfigDict, Field, GetJsonSchemaHandler
from pydantic.json_schema import JsonSchemaValue
class DefaultBaseEnum(Enum):
def __str__(self) -> str:
name = self.__class__.__name__
return name.removesuffix('DTO')
... |
class DefaultBaseEnum(Enum):
def __str__(self) -> str:
pass
@classmethod
def __get_pydantic_json_schema__(cls, core_schema: CoreSchema, handler: GetJsonSchemaHandler) -> JsonSchemaValue:
pass | 4 | 0 | 5 | 0 | 5 | 1 | 1 | 0.18 | 1 | 2 | 0 | 2 | 1 | 0 | 2 | 51 | 12 | 1 | 11 | 8 | 5 | 2 | 8 | 5 | 5 | 1 | 4 | 0 | 2 |
327,768 | 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/api/src/flux0_api/common.py | flux0_api.common.DefaultBaseModel | from pydantic import BaseModel, ConfigDict, Field, GetJsonSchemaHandler
class DefaultBaseModel(BaseModel):
"""
Base class for all flux0 Pydantic models.
"""
model_config = DEFAULT_MODEL_CONFIG |
class DefaultBaseModel(BaseModel):
'''
Base class for all flux0 Pydantic models.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 24 | 0 | 0 | 0 | 82 | 6 | 1 | 2 | 2 | 1 | 3 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
327,769 | 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/api/src/flux0_api/session_service.py | flux0_api.session_service.SessionService | import asyncio
from flux0_core.types import JSONSerializable
from flux0_core.agents import Agent, AgentStore
from datetime import datetime, timezone
from flux0_core.background_tasks_service import BackgroundTaskService
from flux0_core.ids import gen_id
from flux0_core.contextual_correlator import ContextualCorrelator
f... |
class SessionService:
def __init__(self, contextual_correlator: ContextualCorrelator, logger: Logger, agent_store: AgentStore, session_store: SessionStore, recording_store: RecordingStore, background_task_service: BackgroundTaskService, agent_runner_factory: AgentRunnerFactory, event_emitter: EventEmitter):
... | 8 | 0 | 19 | 1 | 17 | 1 | 2 | 0.03 | 0 | 20 | 16 | 0 | 7 | 8 | 7 | 7 | 139 | 14 | 121 | 58 | 74 | 4 | 39 | 19 | 31 | 3 | 0 | 3 | 11 |
327,770 | 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/api/src/flux0_api/types_agents.py | flux0_api.types_agents.AgentCreationParamsDTO | from typing import Annotated, Optional, Sequence, TypeAlias
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseModel, ExampleJson
class AgentCreationParamsDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_schema_extra'] = {'example': agent_creation_params_example}
... |
class AgentCreationParamsDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 13 | 2 | 8 | 3 | 7 | 3 | 6 | 3 | 5 | 0 | 6 | 0 | 0 |
327,771 | 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/api/src/flux0_api/types_agents.py | flux0_api.types_agents.AgentDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseModel, ExampleJson
from typing import Annotated, Optional, Sequence, TypeAlias
class AgentDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_schema_extra'] = {'example': agent_example}
'\n An agent is a speci... |
class AgentDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 15 | 2 | 10 | 3 | 9 | 3 | 8 | 3 | 7 | 0 | 6 | 0 | 0 |
327,772 | 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/api/src/flux0_api/types_agents.py | flux0_api.types_agents.AgentsDTO | from typing import Annotated, Optional, Sequence, TypeAlias
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseModel, ExampleJson
class AgentsDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_schema_extra'] = {'example': {'data': [agent_example]}}
'\n List o... |
class AgentsDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 1 | 8 | 2 | 7 | 3 | 4 | 2 | 3 | 0 | 6 | 0 | 0 |
327,773 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.ChunkEventDTO | import time
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
from flux0_api.types_patch import JsonPatchOperationDTO
from dataclasses import field
from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
class Chunk... |
class ChunkEventDTO(DefaultBaseModel, json_schema_extra={'example':
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 0 | 10 | 5 | 6 | 2 | 7 | 2 | 6 | 0 | 6 | 0 | 0 |
327,774 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.ChunkEventStream | from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class ChunkEventStream(DefaultBaseModel):
event: Literal['chunk']
data: ChunkEventDTO |
class ChunkEventStream(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.67 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 5 | 0 | 3 | 1 | 2 | 2 | 3 | 1 | 2 | 0 | 6 | 0 | 0 |
327,775 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.ContentPartDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
class ContentPartDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json... |
class ContentPartDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.43 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 2 | 7 | 2 | 6 | 3 | 5 | 2 | 4 | 0 | 6 | 0 | 0 |
327,776 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.ControlOptions | from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class ControlOptions(DefaultBaseModel):
mode: Literal['auto', 'manual'] |
class ControlOptions(DefaultBaseModel):
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 | 6 | 0 | 0 |
327,777 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.EmittedEventDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
from pydantic import Field, RootModel
from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
class EmittedEventDTO(DefaultBaseModel, json_schema_extra={'examples': ... |
class EmittedEventDTO(DefaultBaseModel, json_schema_extra={'examples':
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 15 | 0 | 13 | 6 | 9 | 2 | 7 | 3 | 6 | 0 | 6 | 0 | 0 |
327,778 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.EmittedEventStream | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
class EmittedEventStream(DefaultBaseModel):
id: EventIdPath
event: Literal['status']
data: Emitte... |
class EmittedEventStream(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 5 | 0 | 4 | 1 | 3 | 1 | 4 | 1 | 3 | 0 | 6 | 0 | 0 |
327,779 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.EventCreationParamsDTO | from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class EventCreationParamsDTO(DefaultBaseModel, json_schema_extra={'example': event_creation_params_example}):... |
class EventCreationParamsDTO(DefaultBaseModel, json_schema_extra={'example':
'''Parameters for creating a new event within a session.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 9 | 1 | 7 | 5 | 3 | 1 | 4 | 2 | 3 | 0 | 6 | 0 | 0 |
327,780 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.EventDTO | from pydantic import Field, RootModel
from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class EventDTO(DefaultBaseModel, json_schema_extra={'example': event_ex... |
class EventDTO(DefaultBaseModel, json_schema_extra={'example':
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 16 | 0 | 16 | 6 | 12 | 0 | 10 | 3 | 9 | 0 | 6 | 0 | 0 |
327,781 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.EventSourceDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class EventSourceDTO(DefaultBaseEnum):
"""
Source of the event within a session.
Identifies who or what generated the event.
"""
USER = 'user'
AI_AGENT = 'ai_agent'
SYSTEM... |
class EventSourceDTO(DefaultBaseEnum):
'''
Source of the event within a session.
Identifies who or what generated the event.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 51 | 10 | 2 | 4 | 4 | 3 | 4 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
327,782 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.EventTypeDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class EventTypeDTO(DefaultBaseEnum):
"""
Type of event that occurred within a session.
Represents different types of interactions that can occur within a conversation.
"""
MESSAGE... |
class EventTypeDTO(DefaultBaseEnum):
'''
Type of event that occurred within a session.
Represents different types of interactions that can occur within a conversation.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 51 | 11 | 2 | 5 | 5 | 4 | 4 | 5 | 5 | 4 | 0 | 5 | 0 | 0 |
327,783 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.EventsDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
class EventsDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_sche... |
class EventsDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 1 | 8 | 2 | 7 | 3 | 4 | 2 | 3 | 0 | 6 | 0 | 0 |
327,784 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.MessageEventDataDTO | from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class MessageEventDataDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config[... |
class MessageEventDataDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 15 | 2 | 10 | 5 | 9 | 3 | 8 | 5 | 7 | 0 | 6 | 0 | 0 |
327,785 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.ReasoningPartDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
class ReasoningPartDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['js... |
class ReasoningPartDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.43 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 2 | 7 | 2 | 6 | 3 | 5 | 2 | 4 | 0 | 6 | 0 | 0 |
327,786 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.SessionStream | from pydantic import Field, RootModel
from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
class SessionStream(RootModel[Union[ChunkEventStream, EmittedEventStream]]):
root: Union[ChunkEventStream, EmittedEventStream] = Field(..., discriminator='event') |
class SessionStream(RootModel[Union[ChunkEventStream, EmittedEventStream]]):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 92 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
327,787 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.StatusEventDataDTO | from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class StatusEventDataDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['... |
class StatusEventDataDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 17 | 1 | 13 | 4 | 12 | 3 | 7 | 4 | 6 | 0 | 6 | 0 | 0 |
327,788 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.StatusEventDataStatusField | from enum import Enum
class StatusEventDataStatusField(Enum):
"""
Status of the event.
"""
ACKNOWLEDGE = 'acknowledged'
CANCELLED = 'cancelled'
PROCESSING = 'processing'
READY = 'ready'
TYPING = 'typing'
ERROR = 'error'
COMPLETED = 'completed' |
class StatusEventDataStatusField(Enum):
'''
Status of the event.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 12 | 1 | 8 | 8 | 7 | 3 | 8 | 8 | 7 | 0 | 4 | 0 | 0 |
327,789 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.ToolCallDTO | from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class ToolCallDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_sc... |
class ToolCallDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 15 | 2 | 10 | 4 | 9 | 3 | 8 | 4 | 7 | 0 | 6 | 0 | 0 |
327,790 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.ToolEventDataDTO | from flux0_core.sessions import EventId, ToolCallPartType, ToolCallResultType
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class ToolEventDataDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_schema_ext... |
class ToolEventDataDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.43 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 11 | 1 | 7 | 2 | 6 | 3 | 5 | 2 | 4 | 0 | 6 | 0 | 0 |
327,791 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.ToolPartDTO | from flux0_core.sessions import EventId, ToolCallPartType, ToolCallResultType
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class ToolPartDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_schema_extra'] ... |
class ToolPartDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 19 | 2 | 14 | 2 | 13 | 4 | 7 | 2 | 6 | 0 | 6 | 0 | 0 |
327,792 | 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/api/src/flux0_api/types_events.py | flux0_api.types_events.ToolResultDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseEnum, DefaultBaseModel, ExampleJson, JSONSerializableDTO
from typing import Annotated, List, Literal, Mapping, Optional, Sequence, TypeAlias, Union
class ToolResultDTO(DefaultBaseModel):
data: JSONSerializableDTO
metadata: Mapping[str, JSONSerializa... |
class ToolResultDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 6 | 0 | 0 |
327,793 | 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/api/src/flux0_api/types_patch.py | flux0_api.types_patch.JsonPatchOperationDTO | from flux0_api.common import DefaultBaseModel, JSONSerializableDTO
class JsonPatchOperationDTO(DefaultBaseModel, json_schema_extra={'example': {'op': 'add', 'path': '/a/b', 'value': 1}}):
op: PatchOpOpField
path: PatchOpPathField
value: JSONSerializableDTO |
class JsonPatchOperationDTO(DefaultBaseModel, json_schema_extra={'example':
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 13 | 0 | 13 | 10 | 3 | 0 | 4 | 1 | 3 | 0 | 6 | 0 | 0 |
327,794 | 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/api/src/flux0_api/types_session.py | flux0_api.types_session.ConsumptionOffsetsDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseModel, ExampleJson, JSONSerializableDTO
from typing import Annotated, Literal, Mapping, Optional, Sequence, TypeAlias
class ConsumptionOffsetsDTO(DefaultBaseModel, json_schema_extra={'example': consumption_offsets_example}):
"""Tracks the state of messa... |
class ConsumptionOffsetsDTO(DefaultBaseModel, json_schema_extra={'example':
'''Tracks the state of message consumption.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 7 | 1 | 5 | 5 | 1 | 1 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
327,795 | 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/api/src/flux0_api/types_session.py | flux0_api.types_session.Moderation | from enum import Enum
class Moderation(Enum):
"""Content moderation settings."""
NONE = 'none' |
class Moderation(Enum):
'''Content moderation settings.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 5 | 1 | 2 | 2 | 1 | 2 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
327,796 | 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/api/src/flux0_api/types_session.py | flux0_api.types_session.SessionCreationParamsDTO | from typing import Annotated, Literal, Mapping, Optional, Sequence, TypeAlias
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class SessionCreationParamsDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_schema_extra'] = {'... |
class SessionCreationParamsDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 13 | 0 | 10 | 5 | 9 | 3 | 8 | 5 | 7 | 0 | 6 | 0 | 0 |
327,797 | 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/api/src/flux0_api/types_session.py | flux0_api.types_session.SessionDTO | from typing import Annotated, Literal, Mapping, Optional, Sequence, TypeAlias
from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseModel, ExampleJson, JSONSerializableDTO
class SessionDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_schema_extra'] = {'example': sess... |
class SessionDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 18 | 2 | 13 | 4 | 12 | 3 | 11 | 4 | 10 | 0 | 6 | 0 | 0 |
327,798 | 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/api/src/flux0_api/types_session.py | flux0_api.types_session.SessionsDTO | from flux0_api.common import DEFAULT_MODEL_CONFIG, DefaultBaseModel, ExampleJson, JSONSerializableDTO
from typing import Annotated, Literal, Mapping, Optional, Sequence, TypeAlias
class SessionsDTO(DefaultBaseModel):
model_config = DEFAULT_MODEL_CONFIG.copy()
model_config['json_schema_extra'] = {'example': {'d... |
class SessionsDTO(DefaultBaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 8 | 1 | 4 | 2 | 3 | 3 | 4 | 2 | 3 | 0 | 6 | 0 | 0 |
327,799 | 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.CLIGroup | import click
from typing import Any, Callable, TypeVar, Union, overload
class CLIGroup(click.Group):
@overload
def command(self, __func: Callable[..., Any]) -> click.Command:
...
@overload
def command(self, *args: Any, **kwargs: Any) -> Callable[[Callable[..., Any]], click.Command]:
.... |
class CLIGroup(click.Group):
@overload
def command(self, __func: Callable[..., Any]) -> click.Command:
pass
@overload
def command(self, __func: Callable[..., Any]) -> click.Command:
pass
def command(self, __func: Callable[..., Any]) -> click.Command:
pass
def decor... | 7 | 0 | 7 | 1 | 5 | 1 | 1 | 0.16 | 0 | 2 | 0 | 0 | 3 | 0 | 3 | 3 | 26 | 4 | 19 | 13 | 10 | 3 | 14 | 7 | 9 | 2 | 0 | 1 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.