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
328,200
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/context.py
dingent.core.context.AppContext
from .analytics_manager import AnalyticsManager from .plugin_manager import PluginManager from dingent.core.market_service import MarketService from .resource_manager import ResourceManager from .config_manager import ConfigManager from .utils import find_project_root from .log_manager import LogManager from .assistant...
class AppContext: '''A container for all manager instances to handle dependency injection.''' def __init__(self, project_root: Path | None=None): pass async def close(self): '''Close all managers that require cleanup.''' pass
3
2
13
2
11
1
2
0.14
0
10
9
0
2
10
2
2
30
5
22
14
19
3
18
14
15
2
0
1
3
328,201
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/llm_manager.py
dingent.core.llm_manager.LLMManager
from pydantic import SecretStr from dingent.core.log_manager import LogManager from langchain.chat_models.base import BaseChatModel from langchain_litellm import ChatLiteLLM from typing import Any class LLMManager: """ A class to manage and maintain instances of large language models (LLMs). This class res...
class LLMManager: ''' A class to manage and maintain instances of large language models (LLMs). This class responsibles for creating and caching LLM instances based on configuration, ensuring efficient resource utilization, and providing a unified access point for the application. ''' def __in...
4
2
11
1
8
2
2
0.42
0
7
1
0
3
2
3
3
41
7
24
12
20
10
24
12
20
5
0
1
7
328,202
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/log_manager.py
dingent.core.log_manager.LogEntry
from typing import Any from dataclasses import asdict, dataclass from datetime import datetime @dataclass class LogEntry: """Structured log entry for dashboard display.""" timestamp: datetime level: str message: str module: str function: str context: dict[str, Any] | None = None correla...
@dataclass class LogEntry: '''Structured log entry for dashboard display.''' def to_dict(self) -> dict[str, Any]: '''Convert log entry to dictionary.''' pass
3
2
5
0
4
1
1
0.17
0
3
0
0
1
0
1
1
16
2
12
5
10
2
12
5
10
1
0
0
1
328,203
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/log_manager.py
dingent.core.log_manager.LogManager
from typing import Any import threading from loguru import logger from collections import deque class LogManager: """ Enhanced logging manager that captures structured logs for dashboard display. Features: - In-memory log storage with configurable retention - Structured logging with context and co...
class LogManager: ''' Enhanced logging manager that captures structured logs for dashboard display. Features: - In-memory log storage with configurable retention - Structured logging with context and correlation IDs - Thread-safe operations - Dashboard integration ready ''' def __i...
9
8
16
2
10
4
2
0.54
0
7
1
0
7
3
7
7
130
24
69
24
60
37
55
23
46
5
0
1
17
328,204
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/market_service.py
dingent.core.market_service.MarketItem
from pydantic import BaseModel, model_validator from typing import Any class MarketItem(BaseModel): id: str name: str description: str | None = None version: str | None = None author: str | None = None category: MarketItemCategory tags: list[str] = [] license: str | None = None read...
class MarketItem(BaseModel): @model_validator(mode='before') @classmethod def _normalize_name_field(cls, data: Any) -> Any: pass
4
0
7
1
6
0
3
0
1
2
0
0
0
0
1
83
27
2
25
17
21
0
23
16
21
3
5
2
3
328,205
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/market_service.py
dingent.core.market_service.MarketItemCategory
from enum import Enum class MarketItemCategory(str, Enum): """Enumeration for different categories of items in the Dingent Hub.""" PLUGIN = 'plugin' ASSISTANT = 'assistant' WORKFLOW = 'workflow' ALL = 'all' def __str__(self) -> str: """Return the string value of the enum member.""" ...
class MarketItemCategory(str, Enum): '''Enumeration for different categories of items in the Dingent Hub.''' def __str__(self) -> str: '''Return the string value of the enum member.''' pass
2
2
3
0
2
1
1
0.29
2
0
0
0
1
0
1
116
11
2
7
6
5
2
7
6
5
1
4
0
1
328,206
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/market_service.py
dingent.core.market_service.MarketMetadata
from pydantic import BaseModel, model_validator class MarketMetadata(BaseModel): version: str updated_at: str categories: dict[str, int]
class MarketMetadata(BaseModel): 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
5
0
0
328,207
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/market_service.py
dingent.core.market_service.MarketService
import toml from typing import Any from packaging.version import InvalidVersion, Version import os import asyncio import httpx from dingent.core.log_manager import LogManager from pathlib import Path from async_lru import alru_cache import json class MarketService: """Service for interacting with the dingent-marke...
class MarketService: '''Service for interacting with the dingent-market repository.''' def __init__(self, project_root: Path, log_manager: LogManager): pass async def close(self): '''Close the HTTP session.''' pass async def _fetch_url_as_text(self, url: str) -> str | None: ...
20
16
16
1
13
2
3
0.14
0
15
4
0
16
3
16
16
281
35
218
96
183
31
162
66
145
7
0
4
47
328,208
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/plugin_manager.py
dingent.core.plugin_manager.PluginInstance
from fastmcp.tools import Tool from collections.abc import Callable from pydantic import BaseModel, Field, PrivateAttr, SecretStr, ValidationError, create_model from .types import ConfigItemDetail, ExecutionModel, PluginBase, PluginConfigSchema, PluginUserConfig, ToolResult from typing import Any, Literal from fastmcp....
class PluginInstance: def __init__(self, name: str, mcp_client: Client, mcp: FastMCP, status: Literal['active', 'inactive', 'error'], manifest: 'PluginManifest', config: dict[str, Any] | None=None, transport=None): pass @classmethod async def from_config(cls, manifest: 'PluginManifest', user_confi...
9
0
23
2
21
0
4
0
0
10
2
0
5
0
6
6
152
15
137
50
113
0
91
32
84
13
0
2
22
328,209
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/plugin_manager.py
dingent.core.plugin_manager.PluginManager
from pathlib import Path from .types import ConfigItemDetail, ExecutionModel, PluginBase, PluginConfigSchema, PluginUserConfig, ToolResult from .resource_manager import ResourceManager import shutil from dingent.core.log_manager import LogManager class PluginManager: plugins: dict[str, PluginManifest] = {} de...
class PluginManager: def __init__(self, plugin_dir: Path, resource_manager: ResourceManager, log_manager: LogManager): pass def _scan_and_register_plugins(self): pass def list_plugins(self) -> dict[str, PluginManifest]: pass async def create_instance(self, instance_settings:...
9
1
8
0
7
1
2
0.13
0
10
5
0
8
3
8
8
74
11
56
21
47
7
51
20
42
6
0
2
16
328,210
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/plugin_manager.py
dingent.core.plugin_manager.PluginManifest
import toml from fastmcp.server.middleware import Middleware, MiddlewareContext from .types import ConfigItemDetail, ExecutionModel, PluginBase, PluginConfigSchema, PluginUserConfig, ToolResult from pydantic import BaseModel, Field, PrivateAttr, SecretStr, ValidationError, create_model from pathlib import Path from col...
class PluginManifest(PluginBase): @classmethod def from_toml(cls, toml_path: Path) -> 'PluginManifest': pass @property def path(self) -> Path: pass async def create_instance(self, user_config: PluginUserConfig, log_method: Callable, middleware: Middleware | None=None) -> 'PluginIn...
6
0
13
1
12
0
2
0
1
7
2
0
2
0
3
86
52
7
45
26
34
0
33
19
29
3
6
1
7
328,211
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/plugin_manager.py
dingent.core.plugin_manager.ResourceMiddleware
import json from fastmcp.server.middleware import Middleware, MiddlewareContext from typing import Any, Literal from mcp.types import TextContent from .types import ConfigItemDetail, ExecutionModel, PluginBase, PluginConfigSchema, PluginUserConfig, ToolResult from collections.abc import Callable from fastmcp.tools.tool...
class ResourceMiddleware(Middleware): ''' 拦截工具调用结果,标准化为 ToolResult,并存储,仅向模型暴露最小必要文本。 ''' def __init__(self, resource_manager: ResourceManager, log_method: Callable): pass async def on_call_tool(self, context: MiddlewareContext, call_next): pass
3
1
30
5
21
4
4
0.26
1
6
1
0
2
2
2
2
65
12
42
13
39
11
33
12
30
7
1
3
8
328,212
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/resource_manager.py
dingent.core.resource_manager.ResourceManager
import pickle from pathlib import Path from .types import ToolResult import uuid from dingent.core.log_manager import LogManager import sqlite3 class ResourceManager: """ 使用 SQLite 存储 ToolResult(工具完整输出)的持久化资源管理器。 当达到最大容量时,会根据时间戳移除最旧的资源 (FIFO)。 """ def __init__(self, log_manager: LogManager, store_...
class ResourceManager: ''' 使用 SQLite 存储 ToolResult(工具完整输出)的持久化资源管理器。 当达到最大容量时,会根据时间戳移除最旧的资源 (FIFO)。 ''' def __init__(self, log_manager: LogManager, store_path: str | Path, max_size: int=100): pass def _initialize_db(self): '''Create the resources table if it doesn't exist.''' ...
10
8
11
1
8
2
2
0.29
0
6
2
0
9
4
9
9
114
17
76
24
66
22
55
24
45
3
0
3
14
328,213
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/secret_manager.py
dingent.core.secret_manager.SecretManager
import keyring.errors import keyring from cryptography.fernet import Fernet from pathlib import Path import json class SecretManager: """ 一个健壮的密钥管理器,自动处理 keyring 的可用性。 如果 keyring 可用,则使用它。 如果 keyring 不可用(例如在 WSL/Docker 中),则回退到一个本地加密文件。 """ def __init__(self, project_root: Path): self._k...
class SecretManager: ''' 一个健壮的密钥管理器,自动处理 keyring 的可用性。 如果 keyring 可用,则使用它。 如果 keyring 不可用(例如在 WSL/Docker 中),则回退到一个本地加密文件。 ''' def __init__(self, project_root: Path): pass def _check_keyring_availability(self) -> bool: '''在启动时检查 keyring 后端是否可用。''' pass def _ini...
8
7
10
1
8
2
2
0.29
0
7
0
0
7
3
7
7
84
13
56
22
48
16
54
21
46
4
0
2
14
328,214
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/settings.py
dingent.core.settings.AppSettings
import tomlkit from loguru import logger from .types import AssistantBase, PluginUserConfig, Workflow from pydantic import BaseModel, ConfigDict, Field, SecretStr class AppSettings(BaseModel): model_config = ConfigDict(env_prefix='DINGENT_', populate_by_name=True, extra='ignore') assistants: list[AssistantSett...
class AppSettings(BaseModel): def save(self): pass
2
0
14
0
14
0
3
0
1
1
1
0
1
0
1
83
23
1
22
12
20
0
21
12
19
3
5
1
3
328,215
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/settings.py
dingent.core.settings.AssistantSettings
from .types import AssistantBase, PluginUserConfig, Workflow import uuid from pydantic import BaseModel, ConfigDict, Field, SecretStr class AssistantSettings(AssistantBase): id: str = Field(default_factory=lambda: str(uuid.uuid4()), description='Unique identifier for the assistant.') plugins: list[PluginUserCo...
class AssistantSettings(AssistantBase): pass
1
0
0
0
0
0
0
0
1
1
0
0
0
0
0
83
3
0
3
2
2
0
3
2
2
0
6
0
0
328,216
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/settings.py
dingent.core.settings.LLMSettings
from pydantic import BaseModel, ConfigDict, Field, SecretStr class LLMSettings(BaseModel): model: str = Field('gpt-4.1', description='LLM model name.') provider: str | None = Field(None, description='Provider name.') base_url: str | None = Field(None, description='Base URL.') api_key: SecretStr | None ...
class LLMSettings(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
5
0
5
5
4
0
5
5
4
0
5
0
0
328,217
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/settings.py
dingent.core.settings.TomlConfigSettingsSource
from typing import Any from pydantic.fields import FieldInfo from loguru import logger import tomlkit from pathlib import Path from pydantic_settings import BaseSettings, PydanticBaseSettingsSource from .utils import find_project_root class TomlConfigSettingsSource(PydanticBaseSettingsSource): def __init__(self, ...
class TomlConfigSettingsSource(PydanticBaseSettingsSource): def __init__(self, settings_cls: type[BaseSettings]): pass def get_field_value(self, field: FieldInfo, field_name: str) -> tuple[Any, str, bool]: pass def __call__(self) -> dict[str, Any]: pass
4
0
6
0
6
0
2
0
1
9
0
0
3
2
3
3
22
2
20
8
16
0
19
8
15
2
1
1
6
328,218
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.AssistantBase
from typing import Any, Literal, TypeVar from pydantic import BaseModel, Field, FilePath, model_validator class AssistantBase(BaseModel): id: str = Field(..., description='The unique and permanent ID for the assistant.') name: str = Field(..., description='The display name of the assistant.') description: ...
class AssistantBase(BaseModel): @model_validator(mode='before') @classmethod def _normalize_and_generate_id(cls, data: Any) -> Any: pass
4
0
15
3
8
4
4
0.24
1
2
0
3
0
0
1
83
25
4
17
8
13
4
15
7
13
4
5
2
4
328,219
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.AssistantCreate
class AssistantCreate(AssistantBase): pass
class AssistantCreate(AssistantBase): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
83
2
0
2
1
1
0
2
1
1
0
6
0
0
328,220
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.AssistantUpdate
from pydantic import BaseModel, Field, FilePath, model_validator class AssistantUpdate(BaseModel): name: str | None = None description: str | None = None plugins: list[PluginUserConfig] | None = None version: str | float | None = None spec_version: str | float | None = None enabled: bool | None...
class AssistantUpdate(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
82
7
0
7
7
6
0
7
7
6
0
5
0
0
328,221
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.ConfigItemDetail
from typing import Any, Literal, TypeVar from pydantic import BaseModel, Field, FilePath, model_validator class ConfigItemDetail(PluginConfigSchema): """Represents a single configuration item with its schema and value.""" value: Any | None = Field(None, description='用户设置的当前值')
class ConfigItemDetail(PluginConfigSchema): '''Represents a single configuration item with its schema and value.''' pass
1
1
0
0
0
0
0
0.5
1
0
0
0
0
0
0
82
4
1
2
2
1
1
2
2
1
0
6
0
0
328,222
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.ExecutionModel
from pydantic import BaseModel, Field, FilePath, model_validator from typing import Any, Literal, TypeVar class ExecutionModel(BaseModel): mode: Literal['local', 'remote'] = Field(..., description="运行模式: 'local' 或 'remote'") url: str | None = None script_path: str | None = Field(None, description='插件管理器需要运...
class ExecutionModel(BaseModel): @model_validator(mode='after') def check_exclusive_execution_mode(self) -> 'ExecutionModel': pass
3
0
2
0
2
0
1
0
1
0
0
0
1
0
1
83
9
1
8
7
5
0
7
6
5
1
5
0
1
328,223
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.MarkdownPayload
from typing import Any, Literal, TypeVar class MarkdownPayload(ToolDisplayPayloadBase): type: Literal['markdown'] = 'markdown' content: str
class MarkdownPayload(ToolDisplayPayloadBase): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
3
0
3
2
2
0
3
2
2
0
6
0
0
328,224
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.PluginBase
from typing import Any, Literal, TypeVar from pydantic import BaseModel, Field, FilePath, model_validator class PluginBase(BaseModel): id: str = Field(..., description='插件的唯一永久ID') name: str = Field(..., description='插件的显示名称') description: str = Field(..., description='插件描述') version: str | float = Fie...
class PluginBase(BaseModel): @model_validator(mode='before') @classmethod def _normalize_and_generate_id(cls, data: Any) -> Any: pass
4
0
15
3
8
4
4
0.33
1
2
0
1
0
0
1
83
26
6
15
7
11
5
13
6
11
4
5
2
4
328,225
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.PluginConfigSchema
from pydantic import BaseModel, Field, FilePath, model_validator from typing import Any, Literal, TypeVar class PluginConfigSchema(BaseModel): name: str = Field(..., description='配置项的名称 (环境变量名)') type: Literal['string', 'float', 'integer', 'bool'] = Field(..., description="配置项的期望类型 (e.g., 'string', 'number')")...
class PluginConfigSchema(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
82
7
0
7
7
6
0
7
7
6
0
5
0
0
328,226
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.PluginUserConfig
from pydantic import BaseModel, Field, FilePath, model_validator class PluginUserConfig(BaseModel): plugin_id: str tools_default_enabled: bool = True enabled: bool = True tools: list[ToolOverrideConfig] | None = None config: dict | None = None
class PluginUserConfig(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
82
6
0
6
5
5
0
6
5
5
0
5
0
0
328,227
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.TablePayload
from typing import Any, Literal, TypeVar class TablePayload(ToolDisplayPayloadBase): type: Literal['table'] = 'table' columns: list[str] rows: list[dict] title: str = ''
class TablePayload(ToolDisplayPayloadBase): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
5
0
5
3
4
0
5
3
4
0
6
0
0
328,228
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.ToolConfigModel
from pydantic import BaseModel, Field, FilePath, model_validator class ToolConfigModel(BaseModel): schema_path: FilePath = Field(..., description='指向一个包含用户配置Pydantic类的Python文件')
class ToolConfigModel(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
2
0
2
2
1
0
2
2
1
0
5
0
0
328,229
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.ToolDisplayPayloadBase
from pydantic import BaseModel, Field, FilePath, model_validator class ToolDisplayPayloadBase(BaseModel): """前端展示用的 Payload 基类""" type: str
class ToolDisplayPayloadBase(BaseModel): '''前端展示用的 Payload 基类''' pass
1
1
0
0
0
0
0
0.5
1
0
0
2
0
0
0
82
4
1
2
1
1
1
2
1
1
0
5
0
0
328,230
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.ToolOverrideConfig
from pydantic import BaseModel, Field, FilePath, model_validator class ToolOverrideConfig(BaseModel): name: str enabled: bool = True description: str | None = None
class ToolOverrideConfig(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
4
0
4
3
3
0
4
3
3
0
5
0
0
328,231
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.ToolResult
from pydantic import BaseModel, Field, FilePath, model_validator from typing import Any, Literal, TypeVar class ToolResult(BaseModel): """ 标准化后的工具输出。 model_text: (必填)给模型使用的精简文本(总结 / 提炼 / 结构说明) display: (选填)前端富展示用的 payload 数组 data: (选填)结构化原始数据(前端/工作流/自动化二次使用) metadata: ...
class ToolResult(BaseModel): ''' 标准化后的工具输出。 model_text: (必填)给模型使用的精简文本(总结 / 提炼 / 结构说明) display: (选填)前端富展示用的 payload 数组 data: (选填)结构化原始数据(前端/工作流/自动化二次使用) metadata: (选填)附加元信息(执行耗时、来源、版本等) version: 协议/结构版本,方便将来升级 ''' @classmethod def from_any(...
3
2
66
6
50
10
16
0.32
1
6
2
0
0
0
1
83
84
9
57
17
54
18
40
15
38
16
5
4
16
328,232
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.Workflow
from pydantic import BaseModel, Field, FilePath, model_validator class Workflow(WorkflowBase): nodes: list[WorkflowNode] = Field(default_factory=list, description='Workflow nodes') edges: list[WorkflowEdge] = Field(default_factory=list, description='Workflow edges') created_at: str | None = Field(None, des...
class Workflow(WorkflowBase): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
83
5
0
5
5
4
0
5
5
4
0
6
0
0
328,233
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.WorkflowBase
from pydantic import BaseModel, Field, FilePath, model_validator from typing import Any, Literal, TypeVar class WorkflowBase(BaseModel): id: str = Field(..., description='The unique and permanent ID for the workflow') name: str = Field(..., description='The display name for the workflow') description: str ...
class WorkflowBase(BaseModel): @model_validator(mode='before') @classmethod def _normalize_and_generate_id(cls, data: Any) -> Any: pass
4
0
17
3
8
6
4
0.43
1
2
0
2
0
0
1
83
24
4
14
6
10
6
12
5
10
4
5
2
4
328,234
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.WorkflowCreate
class WorkflowCreate(WorkflowBase): pass
class WorkflowCreate(WorkflowBase): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
83
2
0
2
1
1
0
2
1
1
0
6
0
0
328,235
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.WorkflowEdge
from pydantic import BaseModel, Field, FilePath, model_validator class WorkflowEdge(BaseModel): id: str = Field(..., description='Unique edge identifier') source: str = Field(..., description='Source node ID') target: str = Field(..., description='Target node ID') sourceHandle: str | None = Field(None,...
class WorkflowEdge(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
8
0
8
7
7
0
8
7
7
0
5
0
0
328,236
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.WorkflowEdgeData
from pydantic import BaseModel, Field, FilePath, model_validator from typing import Any, Literal, TypeVar class WorkflowEdgeData(BaseModel): mode: Literal['single', 'bidirectional'] = Field('single', description='Edge mode')
class WorkflowEdgeData(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
2
0
2
2
1
0
2
2
1
0
5
0
0
328,237
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.WorkflowNode
from pydantic import BaseModel, Field, FilePath, model_validator from typing import Any, Literal, TypeVar class WorkflowNode(BaseModel): id: str = Field(..., description='Unique node identifier') type: Literal['assistant'] = Field('assistant', description='Node type') position: dict[str, float] = Field(......
class WorkflowNode(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
5
0
5
4
4
0
5
4
4
0
5
0
0
328,238
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.WorkflowNodeData
from pydantic import BaseModel, Field, FilePath, model_validator class WorkflowNodeData(BaseModel): assistantId: str = Field(..., description='Assistant ID referenced by this node') assistantName: str = Field(..., description='Assistant name for display') description: str | None = Field(None, description='...
class WorkflowNodeData(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
5
0
5
5
4
0
5
5
4
0
5
0
0
328,239
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/types.py
dingent.core.types.WorkflowUpdate
from pydantic import BaseModel, Field, FilePath, model_validator class WorkflowUpdate(BaseModel): name: str | None = None description: str | None = None nodes: list[WorkflowNode] | None = None edges: list[WorkflowEdge] | None = None
class WorkflowUpdate(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
5
0
5
5
4
0
5
5
4
0
5
0
0
328,240
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/core/workflow_manager.py
dingent.core.workflow_manager.WorkflowManager
from pydantic import ValidationError from datetime import UTC, datetime from dingent.core.config_manager import ConfigManager from dingent.core.settings import AppSettings from dingent.core.log_manager import LogManager from pathlib import Path import json from threading import RLock from dingent.core.types import Work...
class WorkflowManager: ''' Manages workflow persistence (CRUD) + active workflow selection + (optional) runtime assistant instantiation. Responsibilities: - Load all workflow JSON definitions from config/workflows - CRUD operations on workflows - Track / persist current active workflow id...
31
7
15
1
12
2
3
0.26
0
18
8
0
29
8
29
29
500
71
341
127
288
90
291
93
261
10
0
5
94
328,241
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/engine/graph.py
dingent.engine.graph.ConfigSchema
from typing import Annotated, Any, TypedDict class ConfigSchema(TypedDict): model_provider: str model_name: str default_route: str
class ConfigSchema(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
328,242
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/engine/graph.py
dingent.engine.graph.MainState
from langgraph_swarm import SwarmState from copilotkit import CopilotKitState class MainState(CopilotKitState, SwarmState): artifact_ids: list[str]
class MainState(CopilotKitState, SwarmState): 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
328,243
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/engine/graph_manager.py
dingent.engine.graph_manager.GraphCacheEntry
from langgraph.graph.state import CompiledStateGraph from contextlib import AsyncExitStack from dataclasses import dataclass @dataclass class GraphCacheEntry: workflow_id: str graph: CompiledStateGraph stack: AsyncExitStack checkpointer: object default_active_agent: str | None dirty: bool = Fal...
@dataclass class GraphCacheEntry: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
9
0
9
4
8
0
9
4
8
0
0
0
0
328,244
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/engine/graph_manager.py
dingent.engine.graph_manager.GraphManager
from langgraph.graph import END, START, StateGraph from collections.abc import Awaitable, Callable from pathlib import Path import asyncio from langgraph.checkpoint.memory import InMemorySaver from langgraph.graph.state import CompiledStateGraph from contextlib import AsyncExitStack from langgraph_swarm import create_s...
class GraphManager: ''' 多 workflow 图缓存管理: - 按 workflow_id 缓存编译后的 LangGraph - 懒加载与按需重建 - 配置/Workflow 事件触发 dirty 标记 ''' def __init__(self, app_context: AppContext): ''' Initializes the GraphManager with an explicit AppContext. ''' pass def _checkpoi...
18
3
13
1
12
1
3
0.12
0
11
2
0
15
7
15
15
248
33
194
60
176
24
159
56
141
12
0
3
44
328,245
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/engine/simple_react_agent.py
dingent.engine.simple_react_agent.SimpleAgentState
from langchain_core.messages import AIMessage, BaseMessage, SystemMessage, ToolMessage import operator from typing import Annotated, Any, TypedDict class SimpleAgentState(TypedDict, total=False): messages: Annotated[list[BaseMessage], operator.add] iteration: int artifact_ids: list[str] = []
class SimpleAgentState(TypedDict, total=False): pass
1
0
0
0
0
0
0
0.25
2
0
0
0
0
0
0
0
4
0
4
2
3
1
4
2
3
0
1
0
0
328,246
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.AddPluginRequest
from typing import Any from pydantic import BaseModel, Field class AddPluginRequest(BaseModel): plugin_id: str config: dict[str, Any] | None = None enabled: bool = True tools_default_enabled: bool = True
class AddPluginRequest(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
5
0
5
4
4
0
5
4
4
0
5
0
0
328,247
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.AppAdminDetail
from typing import Any from pydantic import BaseModel, Field class AppAdminDetail(BaseModel): current_workflow: str | None = None workflows: list[dict[str, str]] = Field(default_factory=list) llm: dict[str, Any]
class AppAdminDetail(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
4
0
4
3
3
0
4
3
3
0
5
0
0
328,248
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.AssistantAdminDetail
from dingent.core.types import AssistantBase, AssistantCreate, AssistantUpdate, ConfigItemDetail, PluginUserConfig from pydantic import BaseModel, Field class AssistantAdminDetail(AssistantBase): id: str status: str = Field(..., description='运行状态 (active/inactive/error)') plugins: list[PluginAdminDetail]
class AssistantAdminDetail(AssistantBase): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
83
4
0
4
2
3
0
4
2
3
0
6
0
0
328,249
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.AssistantCreateRequest
from dingent.core.types import AssistantBase, AssistantCreate, AssistantUpdate, ConfigItemDetail, PluginUserConfig class AssistantCreateRequest(AssistantCreate): pass
class AssistantCreateRequest(AssistantCreate): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
83
2
0
2
1
1
0
2
1
1
0
7
0
0
328,250
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.AssistantUpdateRequest
from dingent.core.types import AssistantBase, AssistantCreate, AssistantUpdate, ConfigItemDetail, PluginUserConfig class AssistantUpdateRequest(AssistantUpdate): pass
class AssistantUpdateRequest(AssistantUpdate): 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
328,251
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.AssistantsBulkReplaceRequest
from dingent.core.types import AssistantBase, AssistantCreate, AssistantUpdate, ConfigItemDetail, PluginUserConfig from pydantic import BaseModel, Field class AssistantsBulkReplaceRequest(BaseModel): assistants: list[AssistantCreate | AssistantUpdate | dict]
class AssistantsBulkReplaceRequest(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
2
0
2
1
1
0
2
1
1
0
5
0
0
328,252
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.MarketDownloadRequest
from pydantic import BaseModel, Field class MarketDownloadRequest(BaseModel): item_id: str category: str
class MarketDownloadRequest(BaseModel): pass
1
0
0
0
0
0
0
0.33
1
0
0
0
0
0
0
82
3
0
3
1
2
1
3
1
2
0
5
0
0
328,253
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.MarketDownloadResponse
from pydantic import BaseModel, Field class MarketDownloadResponse(BaseModel): success: bool message: str installed_path: str | None = None
class MarketDownloadResponse(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
4
0
4
2
3
0
4
2
3
0
5
0
0
328,254
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.PluginAdminDetail
from dingent.core.types import AssistantBase, AssistantCreate, AssistantUpdate, ConfigItemDetail, PluginUserConfig from pydantic import BaseModel, Field class PluginAdminDetail(PluginUserConfig): name: str = Field(..., description='插件名称') tools: list[ToolAdminDetail] = Field(default_factory=list, description='...
class PluginAdminDetail(PluginUserConfig): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
5
0
5
5
4
0
5
5
4
0
6
0
0
328,255
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.ReplacePluginsRequest
from pydantic import BaseModel, Field from dingent.core.types import AssistantBase, AssistantCreate, AssistantUpdate, ConfigItemDetail, PluginUserConfig class ReplacePluginsRequest(BaseModel): plugins: list[PluginUserConfig]
class ReplacePluginsRequest(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
2
0
2
1
1
0
2
1
1
0
5
0
0
328,256
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.SetActiveWorkflowRequest
from pydantic import BaseModel, Field class SetActiveWorkflowRequest(BaseModel): workflow_id: str
class SetActiveWorkflowRequest(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
2
0
2
1
1
0
2
1
1
0
5
0
0
328,257
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.ToolAdminDetail
from pydantic import BaseModel, Field class ToolAdminDetail(BaseModel): name: str description: str enabled: bool
class ToolAdminDetail(BaseModel): 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
5
0
0
328,258
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/src/dingent/server/api/schemas.py
dingent.server.api.schemas.UpdatePluginConfigRequest
from pydantic import BaseModel, Field from typing import Any class UpdatePluginConfigRequest(BaseModel): config: dict[str, Any] | None = None enabled: bool | None = None tools_default_enabled: bool | None = None tools: list[str] | None = None
class UpdatePluginConfigRequest(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
5
0
5
5
4
0
5
5
4
0
5
0
0
328,259
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/database.py
text2sql.database.DBManager
from loguru import logger from pathlib import Path from .settings import DatabaseSettings class DBManager: """ A class to manage and maintain all database instances. It creates and caches database connection instances on demand based on the configuration file. """ def __init__(self, db_configs: li...
class DBManager: ''' A class to manage and maintain all database instances. It creates and caches database connection instances on demand based on the configuration file. ''' def __init__(self, db_configs: list[DatabaseSettings]): ''' Initializes the database manager with a list of...
4
3
13
1
9
2
2
0.38
0
8
2
0
3
2
3
3
46
6
29
11
25
11
28
10
24
5
0
2
7
328,260
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/database.py
text2sql.database.Database
import pandas as pd from sqlmodel import Session, SQLModel, create_engine, text from loguru import logger from sqlalchemy import inspect as table_inspect from sqlalchemy.engine.url import make_url class Database: def __init__(self, uri: str, name: str, schemas_path: str | None=None, dialect: str | None=None, **kw...
class Database: def __init__(self, uri: str, name: str, schemas_path: str | None=None, dialect: str | None=None, **kwargs): pass @property def tables(self) -> list[type[SQLModel]]: pass def run(self, query: str): pass def _get_tables(self, schemas_path) -> list[type[SQLMo...
10
0
11
1
10
0
3
0.03
0
7
0
0
7
6
7
7
83
10
72
35
62
2
70
32
61
5
0
2
21
328,261
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/graph.py
text2sql.graph.Text2SqlAgent
from langchain_core.prompts import ChatPromptTemplate from langgraph.graph import END, StateGraph from langchain_community.utilities import SQLDatabase from typing import Any, Literal, cast from langchain_core.runnables import RunnableConfig from langchain.chat_models.base import BaseChatModel from .handlers.base impor...
class Text2SqlAgent: '''An agent that converts natural language to SQL queries and executes them.''' def __init__(self, llm: BaseChatModel, db: Database, sql_result_handler: Handler, vectorstore=None): pass def _build_graph(self): '''Builds the LangGraph agent.''' pass def _s...
8
7
22
3
18
2
3
0.1
0
13
5
0
7
6
7
7
164
27
126
63
108
12
97
52
89
7
0
3
23
328,262
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/handlers/base.py
text2sql.handlers.base.DBRequest
from pydantic import BaseModel, Field from typing import Any class DBRequest(BaseModel): """A structured, validated request object for the handler chain.""" data: dict[str, Any] = Field(default_factory=dict) metadata: dict[str, Any] = Field(default_factory=dict)
class DBRequest(BaseModel): '''A structured, validated request object for the handler chain.''' pass
1
1
0
0
0
0
0
0.33
1
0
0
0
0
0
0
82
5
1
3
3
2
1
3
3
2
0
5
0
0
328,263
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/handlers/base.py
text2sql.handlers.base.Handler
from abc import ABC, abstractmethod class Handler(ABC): """ Abstract base handler with a helper for chain construction. """ def __init__(self, **kwargs): self._next_handler: Handler | None = None def set_next(self, handler: Handler) -> Handler: self._next_handler = handler ...
null
8
2
5
0
4
0
2
0.22
1
3
1
3
4
1
5
25
34
6
23
12
15
5
21
10
15
3
4
1
8
328,264
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/handlers/handler_builder.py
text2sql.handlers.handler_builder.ChainFactory
from ..database import Database from . import result_handler from .base import Handler class ChainFactory: def __init__(self): pass def build_result_chain(self, db: Database) -> Handler: """Builds the result processing chain for a given database.""" sql_run_handler = result_handler.Re...
class ChainFactory: def __init__(self): pass def build_result_chain(self, db: Database) -> Handler: '''Builds the result processing chain for a given database.''' pass
3
1
10
2
7
1
1
0.07
0
5
5
0
2
0
2
2
21
5
15
9
10
1
9
7
6
1
0
0
2
328,265
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/handlers/result_handler.py
text2sql.handlers.result_handler.ContextBuilder
from .base import DBRequest, Handler import pandas as pd class ContextBuilder(Handler): def __init__(self, db, max_length: int=5): super().__init__() self.max_length = max_length self.summarizer = db.summarizer async def ahandle(self, request: DBRequest): result = request.data...
class ContextBuilder(Handler): def __init__(self, db, max_length: int=5): pass async def ahandle(self, request: DBRequest): pass
3
0
12
0
12
0
3
0
1
6
1
0
2
2
2
27
26
1
25
9
22
0
21
9
18
5
5
2
6
328,266
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/handlers/result_handler.py
text2sql.handlers.result_handler.ResultGetHandler
from .base import DBRequest, Handler from ..database import Database class ResultGetHandler(Handler): def __init__(self, db): super().__init__() self.db: Database = db async def ahandle(self, request): query = request.data['query'] raw_result = self.db.run(query) reque...
class ResultGetHandler(Handler): def __init__(self, db): pass async def ahandle(self, request): pass
3
0
6
1
5
0
1
0
1
2
1
0
2
1
2
27
14
3
11
6
8
0
11
6
8
1
5
0
2
328,267
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/handlers/result_handler.py
text2sql.handlers.result_handler.ResultStructureHandler
from .base import DBRequest, Handler from ..types_ import Group import pandas as pd class ResultStructureHandler(Handler): def __init__(self): pass async def ahandle(self, request: DBRequest): source_df: pd.DataFrame = request.data['result'] grouping_schema: list[Group] | None = reque...
class ResultStructureHandler(Handler): def __init__(self): pass async def ahandle(self, request: DBRequest): pass
3
0
19
4
11
4
3
0.35
1
3
2
0
2
0
2
27
40
9
23
11
20
8
23
11
20
4
5
2
5
328,268
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/settings.py
text2sql.settings.DatabaseSettings
import os from pydantic import BaseModel, model_validator class DatabaseSettings(BaseModel): name: str uri: str = '' uri_env: str = '' schemas_file: str | None = None type: str | None = None @model_validator(mode='after') def determine_type_from_uri(self) -> 'DatabaseSettings': """...
class DatabaseSettings(BaseModel): @model_validator(mode='after') def determine_type_from_uri(self) -> 'DatabaseSettings': ''' Runs after all fields are populated to ensure `uri` is available. ''' pass
3
1
23
3
17
3
7
0.17
1
1
0
0
1
0
1
83
32
4
24
8
21
4
20
7
18
7
5
2
7
328,269
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/settings.py
text2sql.settings.Settings
from pydantic_settings import BaseSettings, SettingsConfigDict from typing import Any class Settings(BaseSettings): model_config = SettingsConfigDict(env_nested_delimiter='__') database: DatabaseSettings llm: dict[str, str | Any]
class Settings(BaseSettings): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
1
6
2
5
0
4
2
3
0
1
0
0
328,270
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/tool.py
text2sql.tool.Text2SqlTool
from .graph import Text2SqlAgent from typing import Annotated from .database import Database from .settings import Settings from pydantic import Field from langchain.chat_models import init_chat_model from .handlers.handler_builder import ChainFactory class Text2SqlTool: """A tool that uses the Text2SqlAgent to an...
class Text2SqlTool: '''A tool that uses the Text2SqlAgent to answer questions from a database.''' def __init__(self, settings: Settings, **kwargs): pass async def tool_run(self, question: Annotated[str, Field(description="sub question of user's original question")]) -> dict: '''Use the to...
3
2
12
1
11
1
1
0.08
0
8
4
0
2
0
2
2
30
4
24
15
14
2
13
8
10
1
0
0
2
328,271
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/types_.py
text2sql.types_.Group
from pydantic import BaseModel, Field class Group(BaseModel): primary_entity_name: str columns: list[str]
class Group(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
3
0
3
1
2
0
3
1
2
0
5
0
0
328,272
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/types_.py
text2sql.types_.SQLQueryResultPresenter
from pydantic import BaseModel, Field class SQLQueryResultPresenter(BaseModel): """ Generates an SQL query and structures its results into a few, intuitive groups for presentation. """ sql_query: str = Field(description="The SQL query that answers the user's question. All calculated or aggregated colum...
class SQLQueryResultPresenter(BaseModel): ''' Generates an SQL query and structures its results into a few, intuitive groups for presentation. ''' pass
1
1
0
0
0
0
0
0.38
1
0
0
0
0
0
0
82
13
2
8
3
7
3
3
3
2
0
5
0
0
328,273
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/basic/{{ cookiecutter.project_slug }}/plugins/text2sql/types_.py
text2sql.types_.SQLState
from langgraph.graph.message import MessagesState class SQLState(MessagesState): """ Represents the state of the SQL generation graph. Attributes: sql_result: A list to store the results of the SQL query. """ sql_result: list[dict] result_grouping: list[Group] | None
class SQLState(MessagesState): ''' Represents the state of the SQL generation graph. Attributes: sql_result: A list to store the results of the SQL query. ''' pass
1
1
0
0
0
0
0
1.67
1
0
0
0
0
0
0
0
10
2
3
1
2
5
3
1
2
0
1
0
0
328,274
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/plugins/{{ cookiecutter.project_slug }}/settings.py
{{ cookiecutter.project_slug }}.settings.Settings
from dingent.engine.plugins import ToolBaseSettings class Settings(ToolBaseSettings): greeterName: str
class Settings(ToolBaseSettings): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
328,275
saya-ashen/Dingent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/saya-ashen_Dingent/templates/plugins/{{ cookiecutter.project_slug }}/tool.py
{{ cookiecutter.project_slug }}.tool.Greeter
from dingent.engine.plugins import BaseTool from .settings import Settings from typing import Annotated from pydantic import Field from dingent.engine.plugins.types import TablePayload, ToolOutput class Greeter(BaseTool): """A tool that uses the Text2SqlAgent to answer questions from a database.""" def __init...
class Greeter(BaseTool): '''A tool that uses the Text2SqlAgent to answer questions from a database.''' def __init__(self, config: Settings, **kwargs): pass async def tool_run(self, target: Annotated[str, Field(description='Say hello to this person.')]) -> dict: '''Use the tool.''' ...
3
2
8
0
8
1
1
0.13
1
5
1
0
2
0
2
2
20
2
16
11
6
2
7
4
4
1
1
0
2
328,276
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/benchmarks/benchmarks.py
benchmarks.benchmarks.DielectricPlanarBenchmark
from tests.data import DIPOLE_GRO, DIPOLE_ITP import MDAnalysis as mda from maicos import DielectricPlanar class DielectricPlanarBenchmark: """Benchmark the DielectricPlanar class.""" def setup(self): """Setup the analysis objects.""" self.dipole1 = mda.Universe(DIPOLE_ITP, DIPOLE_GRO, topolog...
class DielectricPlanarBenchmark: '''Benchmark the DielectricPlanar class.''' def setup(self): '''Setup the analysis objects.''' pass def time_single_dielectric_planar(self): '''Benchmark of a complete run over a single frame.''' pass
3
3
4
0
3
1
1
0.43
0
0
0
0
2
2
2
2
12
2
7
5
4
3
7
5
4
1
0
0
2
328,277
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/developer/check_changelog.py
check_changelog.ChangelogError
class ChangelogError(Exception): """Changelog error.""" pass
class ChangelogError(Exception): '''Changelog error.''' pass
1
1
0
0
0
0
0
0.5
1
0
0
0
0
0
0
10
4
1
2
1
1
1
2
1
1
0
3
0
0
328,278
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/_version.py
maicos._version.VersioneerConfig
class VersioneerConfig: """Container for Versioneer configuration parameters.""" VCS: str style: str tag_prefix: str parentdir_prefix: str versionfile_source: str verbose: bool
class VersioneerConfig: '''Container for Versioneer configuration parameters.''' pass
1
1
0
0
0
0
0
0.14
0
0
0
0
0
0
0
0
9
1
7
1
6
1
7
1
6
0
0
0
0
328,279
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/base.py
maicos.core.base.AnalysisBase
from datetime import datetime import numpy as np from MDAnalysis.analysis.base import Results import numbers from ..lib.math import center_cluster, new_mean, new_variance from tqdm.contrib.logging import logging_redirect_tqdm import MDAnalysis as mda import MDAnalysis.analysis.base from ..lib.util import atomgroup_head...
@render_docs class AnalysisBase(_Runner, MDAnalysis.analysis.base.AnalysisBase): '''Base class derived from MDAnalysis for defining multi-frame analysis. The class is designed as a template for creating multi-frame analyses. This class will automatically take care of setting up the trajectory reader for ite...
16
11
28
3
21
5
4
0.9
2
14
0
24
11
20
11
12
498
71
231
69
197
207
127
46
115
12
1
3
42
328,280
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/base.py
maicos.core.base.AnalysisCollection
from ..lib.util import atomgroup_header, correlation_analysis, get_center, get_cli_input, get_module_input_str, maicos_banner, render_docs import warnings from typing_extensions import Self class AnalysisCollection(_Runner): """Running a collection of analysis classes on the same single trajectory. .. warning...
class AnalysisCollection(_Runner): '''Running a collection of analysis classes on the same single trajectory. .. warning:: ``AnalysisCollection`` is still experimental. You should not use it for anything important. An analyses with ``AnalysisCollection`` can lead to a speedup compared to ru...
5
3
18
1
15
2
3
0.98
1
6
1
0
3
1
3
4
117
22
48
16
35
47
16
7
12
4
1
2
8
328,281
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/base.py
maicos.core.base.ProfileBase
import MDAnalysis as mda from ..lib.util import atomgroup_header, correlation_analysis, get_center, get_cli_input, get_module_input_str, maicos_banner, render_docs import numpy as np from collections.abc import Callable from MDAnalysis.analysis.base import Results import logging @render_docs class ProfileBase: """...
@render_docs class ProfileBase: '''Base class for computing profiles. Parameters ---------- ${ATOMGROUP_PARAMETER} ${PROFILE_CLASS_PARAMETERS} ${PROFILE_CLASS_PARAMETERS_PRIVATE} Attributes ---------- ${PROFILE_CLASS_ATTRIBUTES} ''' def __init__(self, atomgroup: mda.AtomGrou...
9
3
19
3
14
4
2
0.4
0
8
1
3
6
9
6
6
136
24
85
34
66
34
48
22
41
4
0
2
13
328,282
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/base.py
maicos.core.base._Runner
from mdacli.logger import setup_logging from MDAnalysis.lib.log import ProgressBar from ..lib.util import atomgroup_header, correlation_analysis, get_center, get_cli_input, get_module_input_str, maicos_banner, render_docs from typing_extensions import Self from tempfile import NamedTemporaryFile import logging class _...
class _Runner: '''Private Runner class that provides a common ``run`` method. Class is used inside ``AnalysisBase`` as well as in ``AnalysisCollection`` ''' def _run(self, analysis_instances: tuple['AnalysisBase', ...], start: int | None=None, stop: int | None=None, step: int | None=None, frames: int ...
2
1
63
12
50
3
9
0.12
0
6
0
2
1
1
1
1
69
14
51
17
40
6
26
8
24
9
0
2
9
328,283
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/cylinder.py
maicos.core.cylinder.CylinderBase
import numpy as np from .planar import PlanarBase import logging from ..lib.util import render_docs import MDAnalysis as mda from ..lib.math import transform_cylinder @render_docs class CylinderBase(PlanarBase): """Analysis class providing options and attributes for a cylinder system. Provide the results attr...
@render_docs class CylinderBase(PlanarBase): '''Analysis class providing options and attributes for a cylinder system. Provide the results attribute `r`. Parameters ---------- ${ATOMGROUP_PARAMETER} ${CYLINDER_CLASS_PARAMETERS} ${WRAP_COMPOUND_PARAMETER} Attributes ---------- ${C...
7
5
17
1
14
1
2
0.47
1
6
0
6
5
6
5
23
122
16
72
29
51
34
36
13
30
3
3
1
9
328,284
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/cylinder.py
maicos.core.cylinder.ProfileCylinderBase
import numpy as np from .base import ProfileBase import logging import MDAnalysis as mda from ..lib.util import render_docs from ..lib.math import transform_cylinder from collections.abc import Callable @render_docs class ProfileCylinderBase(CylinderBase, ProfileBase): """Base class for computing radial profiles i...
@render_docs class ProfileCylinderBase(CylinderBase, ProfileBase): '''Base class for computing radial profiles in a cylindrical geometry. ${CORRELATION_INFO_RADIAL} Parameters ---------- ${PROFILE_CYLINDER_CLASS_PARAMETERS} ${PROFILE_CLASS_PARAMETERS_PRIVATE} Attributes ---------- ${...
7
1
16
1
15
1
1
0.22
2
6
0
6
5
6
5
34
101
12
74
32
46
16
19
7
13
1
4
0
5
328,285
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/planar.py
maicos.core.planar.PlanarBase
from ..lib.util import render_docs import MDAnalysis as mda from .base import AnalysisBase, ProfileBase import numpy as np @render_docs class PlanarBase(AnalysisBase): """Analysis class providing options and attributes for a planar system. Parameters ---------- ${ATOMGROUP_PARAMETER} ${PLANAR_CLAS...
@render_docs class PlanarBase(AnalysisBase): '''Analysis class providing options and attributes for a planar system. Parameters ---------- ${ATOMGROUP_PARAMETER} ${PLANAR_CLASS_PARAMETERS} ${WRAP_COMPOUND_PARAMETER} Attributes ---------- ${PLANAR_CLASS_ATTRIBUTES} zmin : float ...
9
6
14
1
11
2
2
0.67
1
6
0
7
6
7
6
18
127
15
67
29
46
45
37
15
30
3
2
1
10
328,286
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/planar.py
maicos.core.planar.ProfilePlanarBase
import logging from ..lib.math import symmetrize from collections.abc import Callable import MDAnalysis as mda from ..lib.util import render_docs from .base import AnalysisBase, ProfileBase import numpy as np @render_docs class ProfilePlanarBase(PlanarBase, ProfileBase): """Base class for computing profiles in a c...
@render_docs class ProfilePlanarBase(PlanarBase, ProfileBase): '''Base class for computing profiles in a cartesian geometry. ${CORRELATION_INFO_RADIAL} Parameters ---------- ${PROFILE_PLANAR_CLASS_PARAMETERS} ${PROFILE_CLASS_PARAMETERS_PRIVATE} Attributes ---------- ${PROFILE_PLANAR_...
7
1
18
2
15
1
2
0.21
2
7
0
8
5
6
5
29
108
18
75
33
47
16
29
9
23
3
3
2
8
328,287
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/sphere.py
maicos.core.sphere.ProfileSphereBase
import MDAnalysis as mda import numpy as np import logging from collections.abc import Callable from .base import ProfileBase from ..lib.math import transform_sphere from ..lib.util import render_docs @render_docs class ProfileSphereBase(SphereBase, ProfileBase): """Base class for computing radial profiles in a sp...
@render_docs class ProfileSphereBase(SphereBase, ProfileBase): '''Base class for computing radial profiles in a spherical geometry. ${CORRELATION_INFO_RADIAL} Parameters ---------- ${PROFILE_SPHERE_CLASS_PARAMETERS} ${PROFILE_CLASS_PARAMETERS_PRIVATE} Attributes ---------- ${PROFILE_...
7
1
14
1
13
1
1
0.22
2
6
0
4
5
4
5
28
89
12
64
28
39
14
19
7
13
1
3
0
5
328,288
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/core/sphere.py
maicos.core.sphere.SphereBase
from ..lib.util import render_docs import logging import numpy as np from .planar import AnalysisBase import MDAnalysis as mda from ..lib.math import transform_sphere @render_docs class SphereBase(AnalysisBase): """Analysis class providing options and attributes for a spherical system. Provide the results att...
@render_docs class SphereBase(AnalysisBase): '''Analysis class providing options and attributes for a spherical system. Provide the results attribute `r`. Parameters ---------- ${ATOMGROUP_PARAMETER} ${SPHERE_CLASS_PARAMETERS} ${WRAP_COMPOUND_PARAMETER} Attributes ---------- ${SP...
7
5
15
1
13
1
2
0.55
1
6
0
4
5
6
5
17
114
15
64
26
46
35
35
14
29
3
2
1
9
328,289
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/lib/tables.py
maicos.lib.tables.CMParameter
import numpy as np from dataclasses import dataclass @dataclass class CMParameter: """Cromer-Mann X-ray scattering factor parameters.""" a: np.ndarray b: np.ndarray c: float
@dataclass class CMParameter: '''Cromer-Mann X-ray scattering factor parameters.''' 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
328,290
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/lib/util.py
maicos.lib.util.Unit_vector
from typing import Protocol import MDAnalysis as mda import numpy as np class Unit_vector(Protocol): """Protocol class for unit vector methods type hints.""" def __call__(self, atomgroup: mda.AtomGroup, grouping: str) -> np.ndarray: """Call for type hints.""" ...
class Unit_vector(Protocol): '''Protocol class for unit vector methods type hints.''' def __call__(self, atomgroup: mda.AtomGroup, grouping: str) -> np.ndarray: '''Call for type hints.''' pass
2
2
3
0
2
1
1
0.67
1
1
0
0
1
0
1
25
6
1
3
2
1
2
3
2
1
1
5
0
1
328,291
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/modules/DensityCylinder.py
maicos.modules.DensityCylinder.DensityCylinder
from ..lib.weights import density_weights import MDAnalysis as mda import logging from ..core import ProfileCylinderBase from ..lib.util import render_docs @render_docs class DensityCylinder(ProfileCylinderBase): """Cylindrical partial density profiles. ${DENSITY_CYLINDER_DESCRIPTION} ${CORRELATION_INFO_...
@render_docs class DensityCylinder(ProfileCylinderBase): '''Cylindrical partial density profiles. ${DENSITY_CYLINDER_DESCRIPTION} ${CORRELATION_INFO_RADIAL} Parameters ---------- ${ATOMGROUP_PARAMETER} ${DENS_PARAMETER} ${PROFILE_CYLINDER_CLASS_PARAMETERS} ${OUTPUT_PARAMETER} Att...
4
1
22
0
22
0
1
0.3
1
5
0
0
2
1
2
36
64
7
44
22
23
13
7
4
4
1
5
0
2
328,292
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/modules/DensityPlanar.py
maicos.modules.DensityPlanar.DensityPlanar
from ..lib.util import render_docs import MDAnalysis as mda import logging from ..lib.weights import density_weights from ..core import ProfilePlanarBase @render_docs class DensityPlanar(ProfilePlanarBase): """Cartesian partial density profiles. ${DENSITY_PLANAR_DESCRIPTION} ${CORRELATION_INFO_PLANAR} ...
@render_docs class DensityPlanar(ProfilePlanarBase): '''Cartesian partial density profiles. ${DENSITY_PLANAR_DESCRIPTION} ${CORRELATION_INFO_PLANAR} Parameters ---------- ${ATOMGROUP_PARAMETER} ${DENS_PARAMETER} ${PROFILE_PLANAR_CLASS_PARAMETERS} ${OUTPUT_PARAMETER} Attributes ...
4
1
21
0
21
0
1
0.42
1
5
0
0
2
1
2
31
69
8
43
21
23
18
7
4
4
1
4
0
2
328,293
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/modules/DensitySphere.py
maicos.modules.DensitySphere.DensitySphere
import MDAnalysis as mda from ..core import ProfileSphereBase from ..lib.util import render_docs import logging from ..lib.weights import density_weights @render_docs class DensitySphere(ProfileSphereBase): """Spherical partial density profiles. ${DENSITY_SPHERE_DESCRIPTION} ${CORRELATION_INFO_RADIAL} ...
@render_docs class DensitySphere(ProfileSphereBase): '''Spherical partial density profiles. ${DENSITY_SPHERE_DESCRIPTION} ${CORRELATION_INFO_RADIAL} Parameters ---------- ${ATOMGROUP_PARAMETER} ${DENS_PARAMETER} ${PROFILE_SPHERE_CLASS_PARAMETERS} ${OUTPUT_PARAMETER} Attributes ...
4
1
19
0
19
0
1
0.34
1
5
0
0
2
1
2
30
58
7
38
19
20
13
7
4
4
1
4
0
2
328,294
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/modules/DielectricCylinder.py
maicos.modules.DielectricCylinder.DielectricCylinder
import numpy as np import scipy.constants import logging from ..core import CylinderBase import MDAnalysis as mda from ..lib.util import charge_neutral, citation_reminder, get_compound, render_docs @render_docs @charge_neutral(filter='error') class DielectricCylinder(CylinderBase): """Cylindrical dielectric profil...
@render_docs @charge_neutral(filter='error') class DielectricCylinder(CylinderBase): '''Cylindrical dielectric profiles. Computes the axial :math:`\varepsilon_z(r)` and inverse radial :math:`\varepsilon_r^{-1}(r)` components of the cylindrical dielectric tensor :math:`\varepsilon`. The components are bi...
9
2
39
5
29
5
1
0.45
1
5
0
0
5
8
5
28
248
38
145
52
120
65
66
33
60
2
4
1
7
328,295
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/modules/DielectricPlanar.py
maicos.modules.DielectricPlanar.DielectricPlanar
from ..core import PlanarBase from ..lib.math import symmetrize import logging import numpy as np from ..lib.util import charge_neutral, citation_reminder, get_compound, render_docs import scipy.constants import MDAnalysis as mda @render_docs @charge_neutral(filter='error') class DielectricPlanar(PlanarBase): """P...
@render_docs @charge_neutral(filter='error') class DielectricPlanar(PlanarBase): '''Planar dielectric profiles. Computes the parallel :math:`\varepsilon_\parallel(z)` and inverse perpendicular (:math:`\varepsilon_\perp^{-1}(r)`) components of the planar dielectric tensor :math:`\varepsilon`. The compone...
9
2
56
9
43
5
2
0.37
1
6
0
0
5
10
5
23
350
56
215
61
191
79
116
43
110
3
3
1
9
328,296
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/modules/DielectricSpectrum.py
maicos.modules.DielectricSpectrum.DielectricSpectrum
from ..lib.util import bin, charge_neutral, citation_reminder, get_compound, render_docs import MDAnalysis as mda import numpy as np import scipy.constants import logging from ..core import AnalysisBase from ..lib.math import FT, iFT from pathlib import Path @render_docs @charge_neutral(filter='error') class Dielectri...
@render_docs @charge_neutral(filter='error') class DielectricSpectrum(AnalysisBase): '''Linear dielectric spectrum. This module, given a molecular dynamics trajectory, produces a `.txt` file containing the complex dielectric function as a function of the (linear, not radial - i.e., :math:`\nu` or :math:...
9
2
43
6
33
4
3
0.35
1
8
0
0
5
14
5
17
266
40
167
47
145
59
87
29
81
7
2
2
13
328,297
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/modules/DielectricSphere.py
maicos.modules.DielectricSphere.DielectricSphere
from ..lib.util import charge_neutral, citation_reminder, get_compound, render_docs import MDAnalysis as mda from ..core import SphereBase import logging import scipy.constants import numpy as np @render_docs @charge_neutral(filter='error') class DielectricSphere(SphereBase): """Spherical dielectric profiles. ...
@render_docs @charge_neutral(filter='error') class DielectricSphere(SphereBase): '''Spherical dielectric profiles. Computes the inverse radial :math:`\varepsilon_r^{-1}(r)` component of the spherical dielectric tensor :math:`\varepsilon`. The center of the sphere is either located at the center of the s...
9
2
23
3
18
3
1
0.43
1
5
0
0
5
7
5
22
157
28
90
35
70
39
39
21
33
2
3
1
6
328,298
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/modules/DipoleAngle.py
maicos.modules.DipoleAngle.DipoleAngle
from ..lib.util import get_compound, render_docs, unit_vectors_planar from ..lib.weights import diporder_weights import logging import MDAnalysis as mda import numpy as np from ..core import AnalysisBase @render_docs class DipoleAngle(AnalysisBase): """Angle timeseries of dipole moments with respect to an axis. ...
@render_docs class DipoleAngle(AnalysisBase): '''Angle timeseries of dipole moments with respect to an axis. The analysis can be applied to study the orientational dynamics of water molecules during an excitation pulse. For more details read :footcite:t:`elgabartyEnergyTransferHydrogen2020`. Paramet...
9
2
13
1
12
0
1
0.33
1
5
0
0
5
11
5
17
106
13
70
33
51
23
32
20
25
1
2
0
6
328,299
maicos-devel/maicos
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/maicos-devel_maicos/src/maicos/modules/DiporderCylinder.py
maicos.modules.DiporderCylinder.DiporderCylinder
from ..lib.weights import diporder_weights import MDAnalysis as mda from ..core import ProfileCylinderBase import logging from ..lib.util import render_docs, unit_vectors_cylinder @render_docs class DiporderCylinder(ProfileCylinderBase): """Cylindrical dipolar order parameters. ${DIPORDER_DESCRIPTION} ${...
@render_docs class DiporderCylinder(ProfileCylinderBase): '''Cylindrical dipolar order parameters. ${DIPORDER_DESCRIPTION} ${CORRELATION_INFO_RADIAL} Parameters ---------- ${ATOMGROUP_PARAMETER} ${ORDER_PARAMETER_PARAMETER} ${PDIM_RADIAL_PARAMETER} ${PROFILE_CYLINDER_CLASS_PARAMETERS...
5
1
22
1
21
0
1
0.25
1
5
0
0
2
0
2
36
79
9
56
24
33
14
9
5
5
2
5
0
4