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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
323,200 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/backup_restore.py | bedrock_server_manager.web.routers.backup_restore.RestoreActionPayload | from typing import Dict, Any, List, Optional
from pydantic import BaseModel, Field
class RestoreActionPayload(BaseModel):
"""Request model for triggering a restore action."""
restore_type: str = Field(..., description="Type of restore: 'world', 'properties', 'allowlist', 'permissions', or 'all'.")
backup_f... |
class RestoreActionPayload(BaseModel):
'''Request model for triggering a restore action.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 11 | 1 | 9 | 3 | 8 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
323,201 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/backup_restore.py | bedrock_server_manager.web.routers.backup_restore.RestoreTypePayload | from pydantic import BaseModel, Field
class RestoreTypePayload(BaseModel):
"""Request model for specifying the type of restore operation."""
restore_type: str = Field(..., description="The type of restore to perform (e.g., 'world', 'properties').") |
class RestoreTypePayload(BaseModel):
'''Request model for specifying the type of restore operation.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 1 | 4 | 2 | 3 | 1 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
323,202 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/content.py | bedrock_server_manager.web.routers.content.ContentListResponse | from ..schemas import ActionResponse, BaseApiResponse, User
from typing import Dict, Any, List, Optional
from typing import Dict, Any, List, Optional
class ContentListResponse(BaseApiResponse):
files: Optional[List[str]] = None |
class ContentListResponse(BaseApiResponse):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 0 | 2 | 2 | 1 | 2 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
323,203 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/content.py | bedrock_server_manager.web.routers.content.FileNamePayload | from pydantic import BaseModel, Field
class FileNamePayload(BaseModel):
filename: str |
class FileNamePayload(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 |
323,204 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/plugin.py | bedrock_server_manager.web.routers.plugin.PluginApiResponse | from ..schemas import BaseApiResponse, User
from typing import Dict, Any, List, Optional
from pydantic import BaseModel, Field
class PluginApiResponse(BaseApiResponse):
"""Generic API response model for plugin operations."""
data: Optional[Any] = Field(default=None, description='Optional data payload, structur... |
class PluginApiResponse(BaseApiResponse):
'''Generic API response model for plugin operations.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 9 | 1 | 5 | 2 | 4 | 3 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
323,205 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/plugin.py | bedrock_server_manager.web.routers.plugin.PluginStatusSetPayload | from pydantic import BaseModel, Field
class PluginStatusSetPayload(BaseModel):
"""Request model for setting a plugin's enabled status."""
enabled: bool = Field(..., description='Set to true to enable the plugin, false to disable.') |
class PluginStatusSetPayload(BaseModel):
'''Request model for setting a plugin's enabled status.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 1 | 4 | 2 | 3 | 1 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
323,206 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/plugin.py | bedrock_server_manager.web.routers.plugin.TriggerEventPayload | from pydantic import BaseModel, Field
from typing import Dict, Any, List, Optional
class TriggerEventPayload(BaseModel):
"""Request model for triggering a custom plugin event."""
event_name: str = Field(..., min_length=1, description="The namespaced name of the event to trigger (e.g., 'myplugin:myevent').")
... |
class TriggerEventPayload(BaseModel):
'''Request model for triggering a custom plugin event.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 11 | 1 | 9 | 3 | 8 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
323,207 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/register.py | bedrock_server_manager.web.routers.register.GenerateTokenRequest | from pydantic import BaseModel
class GenerateTokenRequest(BaseModel):
role: str |
class GenerateTokenRequest(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 |
323,208 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/register.py | bedrock_server_manager.web.routers.register.RegisterUserRequest | from pydantic import BaseModel
class RegisterUserRequest(BaseModel):
username: str
password: str |
class RegisterUserRequest(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 |
323,209 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_actions.py | bedrock_server_manager.web.routers.server_actions.CommandPayload | from pydantic import BaseModel, Field
class CommandPayload(BaseModel):
"""Request model for sending a command to a server."""
command: str = Field(..., min_length=1, description='The command to send to the server.') |
class CommandPayload(BaseModel):
'''Request model for sending a command to a server.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 1 | 4 | 2 | 3 | 1 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
323,210 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_install_config.py | bedrock_server_manager.web.routers.server_install_config.AllowlistAddPayload | from typing import Dict, Any, List, Optional
from pydantic import BaseModel, Field
class AllowlistAddPayload(BaseModel):
"""Request model for adding players to the allowlist."""
players: List[str] = Field(..., description='List of player gamertags to add.')
ignoresPlayerLimit: bool = Field(default=False, d... |
class AllowlistAddPayload(BaseModel):
'''Request model for adding players to the allowlist.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 7 | 1 | 5 | 3 | 4 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
323,211 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_install_config.py | bedrock_server_manager.web.routers.server_install_config.AllowlistPlayer | from pydantic import BaseModel, Field
class AllowlistPlayer(BaseModel):
"""Represents a player entry for the allowlist."""
name: str = Field(..., description="Player's gamertag.")
ignoresPlayerLimit: bool = Field(default=False, description="Whether this player ignores the server's player limit.") |
class AllowlistPlayer(BaseModel):
'''Represents a player entry for the allowlist.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 8 | 1 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
323,212 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_install_config.py | bedrock_server_manager.web.routers.server_install_config.AllowlistRemovePayload | from pydantic import BaseModel, Field
from typing import Dict, Any, List, Optional
class AllowlistRemovePayload(BaseModel):
"""Request model for removing players from the allowlist."""
players: List[str] = Field(..., description='List of player gamertags to remove.') |
class AllowlistRemovePayload(BaseModel):
'''Request model for removing players from the allowlist.'''
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 | 5 | 0 | 0 |
323,213 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_install_config.py | bedrock_server_manager.web.routers.server_install_config.InstallServerPayload | from typing import Dict, Any, List, Optional
from pydantic import BaseModel, Field
class InstallServerPayload(BaseModel):
"""Request model for installing a new server."""
server_name: str = Field(..., min_length=1, max_length=50, description='Name for the new server.')
server_version: str = Field(default='... |
class InstallServerPayload(BaseModel):
'''Request model for installing a new server.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 18 | 1 | 16 | 5 | 15 | 1 | 5 | 5 | 4 | 0 | 5 | 0 | 0 |
323,214 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_install_config.py | bedrock_server_manager.web.routers.server_install_config.InstallServerResponse | from fastapi import APIRouter, Request, Depends, HTTPException, status, Body, Path
from pydantic import BaseModel, Field
from typing import Dict, Any, List, Optional
class InstallServerResponse(BaseModel):
"""Response model for server installation requests."""
status: str = Field(..., description="Status of th... |
class InstallServerResponse(BaseModel):
'''Response model for server installation requests.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 18 | 1 | 16 | 6 | 15 | 1 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
323,215 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_install_config.py | bedrock_server_manager.web.routers.server_install_config.PermissionsSetPayload | from pydantic import BaseModel, Field
from typing import Dict, Any, List, Optional
class PermissionsSetPayload(BaseModel):
"""Request model for setting multiple player permissions."""
permissions: List[PlayerPermissionItem] = Field(..., description='List of player permission entries.') |
class PermissionsSetPayload(BaseModel):
'''Request model for setting multiple player permissions.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 1 | 4 | 2 | 3 | 1 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
323,216 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_install_config.py | bedrock_server_manager.web.routers.server_install_config.PlayerPermissionItem | from pydantic import BaseModel, Field
class PlayerPermissionItem(BaseModel):
"""Represents a single player's permission data sent from the client."""
xuid: str
name: str
permission_level: str |
class PlayerPermissionItem(BaseModel):
'''Represents a single player's permission data sent from the client.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 1 | 4 | 1 | 3 | 1 | 4 | 1 | 3 | 0 | 5 | 0 | 0 |
323,217 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_install_config.py | bedrock_server_manager.web.routers.server_install_config.PropertiesPayload | from pydantic import BaseModel, Field
from typing import Dict, Any, List, Optional
class PropertiesPayload(BaseModel):
"""Request model for updating server.properties."""
properties: Dict[str, Any] = Field(..., description='Dictionary of properties to set.') |
class PropertiesPayload(BaseModel):
'''Request model for updating server.properties.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 1 | 4 | 2 | 3 | 1 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
323,218 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/server_install_config.py | bedrock_server_manager.web.routers.server_install_config.ServiceUpdatePayload | from typing import Dict, Any, List, Optional
from pydantic import BaseModel, Field
class ServiceUpdatePayload(BaseModel):
"""Request model for updating server-specific service settings."""
autoupdate: Optional[bool] = Field(default=None, description='Enable/disable automatic updates for the server.')
autos... |
class ServiceUpdatePayload(BaseModel):
'''Request model for updating server-specific service settings.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 9 | 1 | 7 | 3 | 6 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
323,219 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/settings.py | bedrock_server_manager.web.routers.settings.SettingItem | from pydantic import BaseModel, Field
from typing import Dict, Any, Optional
class SettingItem(BaseModel):
"""Request model for a single setting key-value pair."""
key: str = Field(..., description="The dot-notation key of the setting (e.g., 'web.port').")
value: Any = Field(..., description='The new value... |
class SettingItem(BaseModel):
'''Request model for a single setting key-value pair.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 7 | 1 | 5 | 3 | 4 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
323,220 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/settings.py | bedrock_server_manager.web.routers.settings.SettingsResponse | from pydantic import BaseModel, Field
from ...api import settings as settings_api
from ..schemas import BaseApiResponse, User
from typing import Dict, Any, Optional
class SettingsResponse(BaseApiResponse):
"""Response model for settings operations."""
settings: Optional[Dict[str, Any]] = Field(default=None, de... |
class SettingsResponse(BaseApiResponse):
'''Response model for settings operations.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.43 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 11 | 1 | 7 | 3 | 6 | 3 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
323,221 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/setup.py | bedrock_server_manager.web.routers.setup.CreateFirstUserRequest | from pydantic import BaseModel
class CreateFirstUserRequest(BaseModel):
username: str
password: str |
class CreateFirstUserRequest(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 |
323,222 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/users.py | bedrock_server_manager.web.routers.users.CreateUserRequest | from pydantic import BaseModel
class CreateUserRequest(BaseModel):
username: str
password: str
role: str |
class CreateUserRequest(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 |
323,223 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/routers/users.py | bedrock_server_manager.web.routers.users.UpdateUserRoleRequest | from pydantic import BaseModel
class UpdateUserRoleRequest(BaseModel):
role: str |
class UpdateUserRoleRequest(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 |
323,224 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/schemas.py | bedrock_server_manager.web.schemas.ActionResponse | from pydantic import BaseModel
from typing import Optional, Any, List, Dict
class ActionResponse(BaseModel):
status: str = 'success'
message: str
details: Optional[Any] = None
task_id: Optional[str] = None |
class ActionResponse(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 |
323,225 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/schemas.py | bedrock_server_manager.web.schemas.BaseApiResponse | from pydantic import BaseModel
from typing import Optional, Any, List, Dict
class BaseApiResponse(BaseModel):
status: str
message: Optional[str] = None |
class BaseApiResponse(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 | 0 | 0 | 0 | 82 | 3 | 0 | 3 | 2 | 2 | 0 | 3 | 2 | 2 | 0 | 5 | 0 | 0 |
323,226 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/schemas.py | bedrock_server_manager.web.schemas.User | from pydantic import BaseModel
class User(BaseModel):
id: int
username: str
identity_type: str
role: str
is_active: bool
theme: str = 'default' |
class User(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 7 | 0 | 7 | 2 | 6 | 0 | 7 | 2 | 6 | 0 | 5 | 0 | 0 |
323,227 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/web/tasks.py | bedrock_server_manager.web.tasks.TaskManager | from typing import Dict, Any, Optional, Callable
import uuid
from concurrent.futures import ThreadPoolExecutor, Future
class TaskManager:
"""Manages background tasks using a thread pool."""
def __init__(self, max_workers: Optional[int]=None):
"""Initializes the TaskManager and the thread pool executor... |
class TaskManager:
'''Manages background tasks using a thread pool.'''
def __init__(self, max_workers: Optional[int]=None):
'''Initializes the TaskManager and the thread pool executor.'''
pass
def _update_task(self, task_id: str, status: str, message: str, result: Optional[Any]=None):
... | 7 | 7 | 13 | 1 | 8 | 4 | 2 | 0.48 | 0 | 6 | 0 | 0 | 6 | 4 | 6 | 6 | 88 | 14 | 50 | 17 | 41 | 24 | 37 | 14 | 30 | 3 | 0 | 2 | 11 |
323,228 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/db/database.py | db.database.Database | from ..config.const import package_name
from ..config import bcm_config
from sqlalchemy.orm import sessionmaker, Session
from sqlalchemy import create_engine
from contextlib import contextmanager
class Database:
def __init__(self, db_url: str=None):
self.db_url = db_url
self.engine = None
... |
class Database:
def __init__(self, db_url: str=None):
pass
def get_database_url(self):
'''Gets the database url from config.'''
pass
def initialize(self):
'''Initializes the database engine and session.'''
pass
def _ensure_tables_created(self):
'''
... | 8 | 5 | 11 | 1 | 8 | 1 | 2 | 0.15 | 0 | 2 | 0 | 0 | 6 | 4 | 6 | 6 | 71 | 11 | 52 | 17 | 44 | 8 | 41 | 16 | 34 | 3 | 0 | 2 | 14 |
323,229 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/plugins/event_sender_plugin/__init__.py | event_sender_plugin.EventSenderPlugin | from bedrock_server_manager import PluginBase
import click
from fastapi import APIRouter, Request, Depends
from typing import Dict, Any
import json
from pathlib import Path
from bedrock_server_manager.web import get_admin_user
class EventSenderPlugin(PluginBase):
version = '1.1.1'
def on_load(self):
s... |
class EventSenderPlugin(PluginBase):
def on_load(self):
pass
def _define_routes(self):
pass
@self.router.get('/event-sender/page', name='Event Sender Page', summary='Custom Event Sender', tags=['plugin-ui'])
async def get_event_sender_page(request: Request, current_user: Dict[... | 10 | 2 | 15 | 1 | 14 | 2 | 2 | 0.12 | 1 | 7 | 0 | 0 | 7 | 1 | 7 | 73 | 122 | 15 | 101 | 27 | 83 | 12 | 59 | 17 | 50 | 8 | 5 | 3 | 16 |
323,230 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/db/models.py | models.AuditLog | from datetime import datetime, timezone
from sqlalchemy import Column, Integer, String, JSON, ForeignKey, DateTime, Boolean
from sqlalchemy.orm import relationship
from .database import Base
class AuditLog(Base):
__tablename__ = 'audit_logs'
id = Column(Integer, primary_key=True, index=True)
timestamp = Co... |
class AuditLog(Base):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 8 | 7 | 7 | 0 | 8 | 7 | 7 | 0 | 1 | 0 | 0 |
323,231 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/db/models.py | models.Player | from .database import Base
from sqlalchemy import Column, Integer, String, JSON, ForeignKey, DateTime, Boolean
class Player(Base):
__tablename__ = 'players'
id = Column(Integer, primary_key=True, index=True)
player_name = Column(String(80), unique=True, index=True)
xuid = Column(String(20), unique=True... |
class Player(Base):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 5 | 4 | 4 | 0 | 5 | 4 | 4 | 0 | 1 | 0 | 0 |
323,232 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/db/models.py | models.Plugin | from .database import Base
from sqlalchemy import Column, Integer, String, JSON, ForeignKey, DateTime, Boolean
class Plugin(Base):
__tablename__ = 'plugins'
id = Column(Integer, primary_key=True, index=True)
plugin_name = Column(String(255), unique=True, index=True)
config = Column(JSON) |
class Plugin(Base):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 5 | 4 | 4 | 0 | 5 | 4 | 4 | 0 | 1 | 0 | 0 |
323,233 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/db/models.py | models.RegistrationToken | from .database import Base
from sqlalchemy import Column, Integer, String, JSON, ForeignKey, DateTime, Boolean
class RegistrationToken(Base):
__tablename__ = 'registration_tokens'
id = Column(Integer, primary_key=True, index=True)
token = Column(String(255), unique=True, index=True)
role = Column(Strin... |
class RegistrationToken(Base):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 1 | 6 | 5 | 5 | 0 | 6 | 5 | 5 | 0 | 1 | 0 | 0 |
323,234 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/db/models.py | models.Server | from .database import Base
from sqlalchemy.orm import relationship
from sqlalchemy import Column, Integer, String, JSON, ForeignKey, DateTime, Boolean
class Server(Base):
__tablename__ = 'servers'
id = Column(Integer, primary_key=True, index=True)
server_name = Column(String(255), unique=True, index=True)
... |
class Server(Base):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 2 | 6 | 5 | 5 | 0 | 6 | 5 | 5 | 0 | 1 | 0 | 0 |
323,235 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/db/models.py | models.Setting | from sqlalchemy import Column, Integer, String, JSON, ForeignKey, DateTime, Boolean
from .database import Base
from sqlalchemy.orm import relationship
class Setting(Base):
__tablename__ = 'settings'
id = Column(Integer, primary_key=True, index=True)
key = Column(String(255), index=True)
value = Column(... |
class Setting(Base):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 2 | 7 | 6 | 6 | 0 | 7 | 6 | 6 | 0 | 1 | 0 | 0 |
323,236 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/src/bedrock_server_manager/db/models.py | models.User | from .database import Base
from sqlalchemy import Column, Integer, String, JSON, ForeignKey, DateTime, Boolean
from datetime import datetime, timezone
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True, index=True)
username = Column(String(80), unique=True, index=True)
hash... |
class User(Base):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 1 | 15 | 10 | 14 | 0 | 11 | 10 | 10 | 0 | 1 | 0 | 0 |
323,237 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/plugins/ping_plugin.py | ping_plugin.PingPlugin | from bedrock_server_manager import PluginBase
import time
class PingPlugin(PluginBase):
"""
A plugin that demonstrates how to send custom events to other plugins.
It sends a 'pingplugin:ping' event after a server successfully starts.
"""
version = '1.1.0'
def on_load(self):
"""
... |
class PingPlugin(PluginBase):
'''
A plugin that demonstrates how to send custom events to other plugins.
It sends a 'pingplugin:ping' event after a server successfully starts.
'''
def on_load(self):
'''
Called by the PluginManager when this plugin is loaded.
'''
pas... | 4 | 4 | 22 | 2 | 11 | 9 | 1 | 0.86 | 1 | 0 | 0 | 0 | 3 | 0 | 3 | 69 | 75 | 11 | 36 | 8 | 32 | 31 | 16 | 8 | 12 | 2 | 5 | 1 | 4 |
323,238 | DMedina559/bedrock-server-manager | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/DMedina559_bedrock-server-manager/plugins/pong_plugin.py | pong_plugin.PongPlugin | from bedrock_server_manager import PluginBase
class PongPlugin(PluginBase):
"""
A plugin that demonstrates how to listen for and handle custom events
sent by other plugins. It specifically listens for 'pingplugin:ping'.
"""
version = '1.1.0'
def on_load(self):
"""
Called by the... |
class PongPlugin(PluginBase):
'''
A plugin that demonstrates how to listen for and handle custom events
sent by other plugins. It specifically listens for 'pingplugin:ping'.
'''
def on_load(self):
'''
Called by the PluginManager when this plugin is loaded.
This method is th... | 4 | 4 | 23 | 3 | 9 | 12 | 2 | 1.41 | 1 | 0 | 0 | 0 | 3 | 0 | 3 | 69 | 81 | 14 | 29 | 10 | 25 | 41 | 20 | 10 | 16 | 3 | 5 | 1 | 5 |
323,239 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/LatexMathClient.py | sympy_client.LatexMathClient.LatexMathClient | import websockets
from .command_handlers.CommandHandler import CommandHandler
import jsonpickle
import traceback
class LatexMathClient:
def __init__(self):
self.handlers: dict[str, CommandHandler] = {}
self.connection = None
async def connect(self, port: int):
self.connection = await ... |
class LatexMathClient:
def __init__(self):
pass
async def connect(self, port: int):
pass
def register_handler(self, handler_key: str, handler_factory: CommandHandler):
pass
async def send(self, handler_key: str, message: dict):
pass
async def run_message_loop(se... | 6 | 0 | 5 | 0 | 5 | 0 | 2 | 0.15 | 0 | 5 | 1 | 0 | 5 | 2 | 5 | 5 | 36 | 6 | 26 | 13 | 20 | 4 | 25 | 12 | 19 | 5 | 0 | 3 | 9 |
323,240 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/LmatEnvironment.py | sympy_client.LmatEnvironment.FunctionDef | from typing import TypedDict
class FunctionDef(TypedDict):
args: list[str]
expr: str |
class FunctionDef(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
323,241 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/LmatEnvironment.py | sympy_client.LmatEnvironment.LmatEnvironment | from typing import TypedDict
class LmatEnvironment(TypedDict):
symbols: dict[str, list[str]]
variables: dict[str, str]
functions: dict[str, FunctionDef]
unit_system: str
domain: str |
class LmatEnvironment(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 2 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
323,242 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/ApartHandler.py | sympy_client.command_handlers.ApartHandler.ApartHandler | from .EvalHandlerBase import EvalHandlerBase, EvaluateMessage
from typing import Any, override
from sympy_client.grammar.SympyParser import SympyParser
class ApartHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
super().__init__(parser)
@override
def evaluate(self, sympy_expr: E... |
class ApartHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
pass
@override
def evaluate(self, sympy_expr: Expr, _message: EvaluateMessage) -> Expr:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 26 | 7 | 1 | 6 | 4 | 2 | 0 | 5 | 3 | 2 | 1 | 6 | 0 | 2 |
323,243 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/CommandHandler.py | sympy_client.command_handlers.CommandHandler.CommandHandler | from abc import ABC, abstractmethod
from typing import Any, override
class CommandHandler(ABC):
@abstractmethod
def handle(self, message: Any) -> CommandResult:
pass |
class CommandHandler(ABC):
@abstractmethod
def handle(self, message: Any) -> CommandResult:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 4 | 1 | 0 | 1 | 21 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
323,244 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/CommandHandler.py | sympy_client.command_handlers.CommandHandler.CommandResult | from abc import ABC, abstractmethod
class CommandResult(ABC):
@abstractmethod
def getPayload(self) -> dict:
pass
@staticmethod
def result(result, metadata: dict=None, status: str='success') -> dict:
return dict(result=result, metadata=metadata or {}, status=status) |
class CommandResult(ABC):
@abstractmethod
def getPayload(self) -> dict:
pass
@staticmethod
def result(result, metadata: dict=None, status: str='success') -> dict:
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0.14 | 1 | 2 | 0 | 6 | 1 | 0 | 2 | 22 | 10 | 2 | 7 | 5 | 2 | 1 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
323,245 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/CommandHandler.py | sympy_client.command_handlers.CommandHandler.ErrorResult | from typing import Any, override
class ErrorResult(CommandResult):
def __init__(self, err_msg: str):
super().__init__()
self.err_msg = err_msg
@override
def getPayload(self) -> dict:
return CommandResult.result(dict(message=self.err_msg), status='error') |
class ErrorResult(CommandResult):
def __init__(self, err_msg: str):
pass
@override
def getPayload(self) -> dict:
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 2 | 1 | 2 | 24 | 9 | 2 | 7 | 5 | 3 | 0 | 6 | 4 | 3 | 1 | 5 | 0 | 2 |
323,246 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/ConvertSympyHandler.py | sympy_client.command_handlers.ConvertSympyHandler.ConvertSympyHandler | from sympy_client.grammar.SympyParser import SympyParser
from sympy_client.grammar.LmatEnvDefStore import LmatEnvDefStore
from typing import TypedDict, override
from .CommandHandler import CommandHandler, CommandResult
class ConvertSympyHandler(CommandHandler):
def __init__(self, parser: SympyParser):
sup... |
class ConvertSympyHandler(CommandHandler):
def __init__(self, parser: SympyParser):
pass
@override
def handle(self, message: ConvertSympyModeMessage):
pass | 4 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 5 | 4 | 0 | 2 | 1 | 2 | 23 | 10 | 1 | 9 | 5 | 5 | 0 | 6 | 4 | 3 | 1 | 5 | 0 | 2 |
323,247 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/ConvertSympyHandler.py | sympy_client.command_handlers.ConvertSympyHandler.ConvertSympyModeMessage | from typing import TypedDict, override
from sympy_client.LmatEnvironment import LmatEnvironment
class ConvertSympyModeMessage(TypedDict):
expression: str
environment: LmatEnvironment |
class ConvertSympyModeMessage(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
323,248 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/ConvertSympyHandler.py | sympy_client.command_handlers.ConvertSympyHandler.ConvertSympyResult | from typing import TypedDict, override
from .CommandHandler import CommandHandler, CommandResult
class ConvertSympyResult(CommandResult):
def __init__(self, sympy_expr):
super().__init__()
self.sympy_expr = sympy_expr
@override
def getPayload(self) -> dict:
return CommandResult.re... |
class ConvertSympyResult(CommandResult):
def __init__(self, sympy_expr):
pass
@override
def getPayload(self) -> dict:
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 2 | 1 | 2 | 24 | 9 | 2 | 7 | 5 | 3 | 0 | 6 | 4 | 3 | 1 | 5 | 0 | 2 |
323,249 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/EvalHandler.py | sympy_client.command_handlers.EvalHandler.EvalHandler | from sympy_client.grammar.SympyParser import SympyParser
from .EvalHandlerBase import EvalHandlerBase, EvaluateMessage
from typing import override
class EvalHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
super().__init__(parser)
@override
def evaluate(self, sympy_expr: Expr, _... |
class EvalHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
pass
@override
def evaluate(self, sympy_expr: Expr, _message: EvaluateMessage) -> Expr:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 26 | 7 | 1 | 6 | 4 | 2 | 0 | 5 | 3 | 2 | 1 | 6 | 0 | 2 |
323,250 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/EvalHandlerBase.py | sympy_client.command_handlers.EvalHandlerBase.EvalHandlerBase | from sympy.core.operations import AssocOp, LatticeOp
from sympy.core.relational import Relational
from abc import ABC, abstractmethod
import sympy_client.UnitsUtils as UnitsUtils
from sympy_client.grammar.SympyParser import SympyParser
from sympy_client.grammar.SystemOfExpr import SystemOfExpr
from sympy_client.grammar... |
class EvalHandlerBase(CommandHandler, ABC):
def __init__(self, parser: SympyParser):
pass
@abstractmethod
def evaluate(self, sympy_expr: Expr, message: EvaluateMessage) -> Expr:
pass
@override
def handle(self, message: EvaluateMessage) -> EvalResult:
pass | 6 | 0 | 11 | 2 | 8 | 1 | 3 | 0.15 | 2 | 6 | 5 | 6 | 3 | 1 | 3 | 24 | 40 | 9 | 27 | 11 | 21 | 4 | 23 | 9 | 19 | 6 | 5 | 2 | 8 |
323,251 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/EvalHandlerBase.py | sympy_client.command_handlers.EvalHandlerBase.EvalResult | from typing import TypedDict, override
from abc import ABC, abstractmethod
from sympy_client.LmatLatexPrinter import lmat_latex
from .CommandHandler import CommandHandler, CommandResult
class EvalResult(CommandResult, ABC):
def __init__(self, sympy_expr: Expr, expr_lines: list[int] | None):
super().__init... |
class EvalResult(CommandResult, ABC):
def __init__(self, sympy_expr: Expr, expr_lines: list[int] | None):
pass
@override
def getPayload(self):
pass | 4 | 0 | 7 | 1 | 6 | 0 | 2 | 0 | 2 | 4 | 0 | 0 | 2 | 2 | 2 | 24 | 17 | 3 | 14 | 7 | 10 | 0 | 10 | 6 | 7 | 3 | 5 | 1 | 4 |
323,252 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/EvalHandlerBase.py | sympy_client.command_handlers.EvalHandlerBase.EvaluateMessage | from sympy_client.LmatEnvironment import LmatEnvironment
from typing import TypedDict, override
class EvaluateMessage(TypedDict):
expression: str
environment: LmatEnvironment |
class EvaluateMessage(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
323,253 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/EvalfHandler.py | sympy_client.command_handlers.EvalfHandler.EvalfHandler | from typing import Any, override
from .EvalHandlerBase import EvalHandlerBase, EvaluateMessage
from sympy_client.grammar.SympyParser import SympyParser
class EvalfHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
super().__init__(parser)
@override
def evaluate(self, sympy_expr: E... |
class EvalfHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
pass
@override
def evaluate(self, sympy_expr: Expr, _message: EvaluateMessage) -> Expr:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 26 | 7 | 1 | 6 | 4 | 2 | 0 | 5 | 3 | 2 | 1 | 6 | 0 | 2 |
323,254 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/ExpandHandler.py | sympy_client.command_handlers.ExpandHandler.ExpandHandler | from sympy_client.grammar.SympyParser import SympyParser
from .EvalHandlerBase import EvalHandlerBase, EvaluateMessage
from typing import Any, override
class ExpandHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
super().__init__(parser)
@override
def evaluate(self, sympy_expr: ... |
class ExpandHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
pass
@override
def evaluate(self, sympy_expr: Expr, _message: EvaluateMessage) -> Expr:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 26 | 7 | 1 | 6 | 4 | 2 | 0 | 5 | 3 | 2 | 1 | 6 | 0 | 2 |
323,255 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/FactorHandler.py | sympy_client.command_handlers.FactorHandler.FactorHandler | from typing import Any, override
from sympy_client.grammar.SympyParser import SympyParser
from .EvalHandlerBase import EvalHandlerBase, EvaluateMessage
class FactorHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
super().__init__(parser)
@override
def evaluate(self, sympy_expr: ... |
class FactorHandler(EvalHandlerBase):
def __init__(self, parser: SympyParser):
pass
@override
def evaluate(self, sympy_expr: Expr, _message: EvaluateMessage) -> Expr:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 26 | 7 | 1 | 6 | 4 | 2 | 0 | 5 | 3 | 2 | 1 | 6 | 0 | 2 |
323,256 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/SolveHandler.py | sympy_client.command_handlers.SolveHandler.MultivariateResult | from typing import Any, TypedDict, override
from sympy_client.LmatLatexPrinter import lmat_latex
class MultivariateResult(CommandResult):
def __init__(self, symbols, equation_count: int):
super().__init__()
self.symbols = symbols
self.equation_count = equation_count
@override
def ... |
class MultivariateResult(CommandResult):
def __init__(self, symbols, equation_count: int):
pass
@override
def getPayload(self) -> dict:
pass | 4 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 2 | 2 | 2 | 24 | 16 | 4 | 12 | 7 | 8 | 0 | 8 | 6 | 5 | 1 | 5 | 0 | 2 |
323,257 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/SolveHandler.py | sympy_client.command_handlers.SolveHandler.SolveHandler | from sympy.solvers.solveset import NonlinearError
from sympy_client.grammar.LmatEnvDefStore import LmatEnvDefStore
from sympy_client.grammar.SystemOfExpr import SystemOfExpr
from sympy_client import UnitsUtils
from typing import Any, TypedDict, override
from sympy_client.grammar.SympyParser import SympyParser
class So... |
class SolveHandler(CommandHandler):
def __init__(self, parser: SympyParser):
pass
@override
def handle(self, message: SolveModeMessage) -> SolveResult | MultivariateResult | ErrorResult:
pass | 4 | 0 | 39 | 9 | 27 | 4 | 8 | 0.15 | 1 | 11 | 7 | 0 | 2 | 1 | 2 | 23 | 82 | 20 | 55 | 13 | 51 | 8 | 42 | 12 | 39 | 15 | 5 | 3 | 16 |
323,258 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/SolveHandler.py | sympy_client.command_handlers.SolveHandler.SolveModeMessage | from typing import Any, TypedDict, override
from sympy_client.LmatEnvironment import LmatEnvironment
class SolveModeMessage(TypedDict):
expression: str
symbol: str | None
environment: LmatEnvironment |
class SolveModeMessage(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 |
323,259 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/command_handlers/SolveHandler.py | sympy_client.command_handlers.SolveHandler.SolveResult | from sympy_client.LmatLatexPrinter import lmat_latex
from typing import Any, TypedDict, override
class SolveResult(CommandResult):
MAX_RELATIONAL_FINITE_SOLUTIONS = 5
def __init__(self, solution: Any, symbols: list[Any]):
super().__init__()
self.solution = solution
self.symbols = symbo... |
class SolveResult(CommandResult):
def __init__(self, solution: Any, symbols: list[Any]):
pass
@override
def getPayload(self) -> dict:
pass | 4 | 0 | 9 | 1 | 8 | 0 | 2 | 0.11 | 1 | 5 | 0 | 0 | 2 | 2 | 2 | 24 | 27 | 6 | 19 | 9 | 15 | 2 | 14 | 8 | 11 | 3 | 5 | 1 | 4 |
323,260 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/ggb_plot/GeogebraCli.py | sympy_client.ggb_plot.GeogebraCli.GeogebraCli | import os
import subprocess
class GeogebraCli:
def __init__(self, ggb_install_dir):
self._ggb_install_dir = ggb_install_dir
invalid_ggb_install_Err = RuntimeError(f'"{ggb_install_dir}" is not a valid geogebra installation directory.')
try:
result = self._run_ggb(['--v'])
... |
class GeogebraCli:
def __init__(self, ggb_install_dir):
pass
def open_ggb_file(self, file_name: str):
pass
def export_ggb_file(self, file_name: str, output_name: str, dpi: int=600):
pass
def _run_ggb(self, args):
pass | 5 | 0 | 9 | 1 | 8 | 0 | 2 | 0 | 0 | 5 | 0 | 0 | 4 | 1 | 4 | 4 | 38 | 7 | 31 | 10 | 26 | 0 | 17 | 9 | 12 | 3 | 0 | 1 | 6 |
323,261 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/ggb_plot/GeogebraPlot.py | sympy_client.ggb_plot.GeogebraPlot.GeogebraPlot | from sympy.core.relational import Relational
from xml.etree import ElementTree
import zipfile
from typing import Iterable
from xml.etree.ElementTree import Element
from .GeogebraPrinter import print_geogebra
class GeogebraPlot:
AXIS_SYMBOLS = symbols('x y z')
def __init__(self, ggb_template_file, function_sto... |
class GeogebraPlot:
def __init__(self, ggb_template_file, function_store: FunctionStore):
pass
def plot_function(self, name: str, args: Iterable[Symbol], expr: Expr, visible: bool=True) -> tuple[Element, tuple[Element]]:
pass
def plot_relation(self, sympy_relation: Relational) -> Element... | 9 | 0 | 18 | 4 | 13 | 1 | 1 | 0.1 | 0 | 8 | 0 | 0 | 8 | 5 | 8 | 8 | 158 | 39 | 108 | 25 | 99 | 11 | 55 | 24 | 46 | 2 | 0 | 1 | 11 |
323,262 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/LatexParser.py | sympy_client.grammar.LatexParser.LatexParser | from lark import Lark, LarkError, Token, UnexpectedInput
import os
from .transformers.LatexTransformer import LatexTransformer
from .SympyParser import DefinitionStore, SympyParser
class LatexParser(SympyParser):
def __init__(self, grammar_file: str=None):
if grammar_file is None:
grammar_file... |
class LatexParser(SympyParser):
def __init__(self, grammar_file: str=None):
pass
def parse(self, latex_str: str, definitions_store: DefinitionStore):
pass | 3 | 0 | 17 | 3 | 14 | 0 | 2 | 0.03 | 1 | 4 | 3 | 0 | 2 | 1 | 2 | 23 | 39 | 9 | 29 | 10 | 26 | 1 | 16 | 9 | 13 | 2 | 5 | 1 | 4 |
323,263 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/LatexParser.py | sympy_client.grammar.LatexParser.LexerScope | from typing import Callable, Iterator
from lark.lexer import TerminalDef
import re as regex
from lark import Lark, LarkError, Token, UnexpectedInput
class LexerScope:
def __init__(self, scope_pairs: list[tuple[regex.Pattern, regex.Pattern | Callable[[regex.Match[str]], regex.Pattern]]]=[], replace_tokens: dict[st... |
class LexerScope:
def __init__(self, scope_pairs: list[tuple[regex.Pattern, regex.Pattern | Callable[[regex.Match[str]], regex.Pattern]]]=[], replace_tokens: dict[str, str | list[TerminalDef]]={}):
pass
def token_handler(self, token_stream: Iterator[Token], _scope_start_token: Token) -> Iterator[Toke... | 3 | 0 | 12 | 1 | 10 | 1 | 3 | 0.1 | 0 | 4 | 0 | 3 | 2 | 2 | 2 | 2 | 25 | 2 | 21 | 10 | 15 | 2 | 17 | 7 | 14 | 5 | 0 | 4 | 6 |
323,264 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/LatexParser.py | sympy_client.grammar.LatexParser.MatrixScope | import re as regex
from typing import Callable, Iterator
from lark import Lark, LarkError, Token, UnexpectedInput
class MatrixScope(LexerScope):
def token_handler(self, token_stream: Iterator[Token], scope_start_token: Token) -> Iterator[Token]:
ignore_regex = '(\\\\left\\s*.|\\\\right\\s*.|\\s)'
... |
class MatrixScope(LexerScope):
def token_handler(self, token_stream: Iterator[Token], scope_start_token: Token) -> Iterator[Token]:
pass | 2 | 0 | 8 | 0 | 8 | 0 | 3 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 3 | 9 | 0 | 9 | 6 | 7 | 0 | 9 | 6 | 7 | 3 | 1 | 2 | 3 |
323,265 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/LatexParser.py | sympy_client.grammar.LatexParser.MultiArgScope | from lark import Lark, LarkError, Token, UnexpectedInput
from typing import Callable, Iterator
class MultiArgScope(LexerScope):
def __init__(self, arg_count: int, *args, **kwargs):
super().__init__(*args, **kwargs)
self.arg_count = arg_count
def token_handler(self, token_stream: Iterator[Toke... |
class MultiArgScope(LexerScope):
def __init__(self, arg_count: int, *args, **kwargs):
pass
def token_handler(self, token_stream: Iterator[Token], scope_start_token: Token) -> Iterator[Token]:
pass | 3 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 3 | 0 | 0 | 2 | 1 | 2 | 4 | 11 | 1 | 10 | 5 | 7 | 0 | 10 | 5 | 7 | 2 | 1 | 1 | 3 |
323,266 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/LatexParser.py | sympy_client.grammar.LatexParser.PartialDiffScope | from lark import Lark, LarkError, Token, UnexpectedInput
class PartialDiffScope(LexerScope):
def token_handler(self, token_stream, _scope_start_token):
for token in super().token_handler(token_stream, _scope_start_token):
yield token
if token.type == '_R_BRACE':
bre... |
class PartialDiffScope(LexerScope):
def token_handler(self, token_stream, _scope_start_token):
pass | 2 | 0 | 12 | 2 | 10 | 0 | 4 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 3 | 13 | 2 | 11 | 4 | 9 | 0 | 10 | 4 | 8 | 4 | 1 | 2 | 4 |
323,267 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/LatexParser.py | sympy_client.grammar.LatexParser.ScopePostLexer | import re as regex
from lark.lark import PostLex
from lark import Lark, LarkError, Token, UnexpectedInput
from typing import Callable, Iterator
class ScopePostLexer(PostLex):
def initialize_scopes(self, parser: Lark):
self.scopes = [LexerScope(scope_pairs=[('_L_ANGLE', '_R_ANGLE')], replace_tokens={'_L_BA... |
class ScopePostLexer(PostLex):
def initialize_scopes(self, parser: Lark):
pass
def process(self, stream: Iterator[Token]) -> Iterator[Token]:
pass
def _process_scope(self, stream, scope: LexerScope, scope_begin_token: Token | None, scope_end_terminal: str | None):
pass | 4 | 0 | 34 | 1 | 29 | 4 | 3 | 0.16 | 1 | 5 | 4 | 0 | 3 | 1 | 3 | 3 | 107 | 5 | 89 | 10 | 85 | 14 | 20 | 10 | 16 | 7 | 1 | 4 | 9 |
323,268 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/LmatEnvDefStore.py | sympy_client.grammar.LmatEnvDefStore.LmantEnvFuncDefStore | from sympy import Expr, Function, Symbol
from sympy_client.grammar.SympyParser import DefinitionStore, FunctionDefinition, SympyParser
class LmantEnvFuncDefStore(DefinitionStore):
def __init__(self, args: dict[Symbol, Expr], definitions_store: DefinitionStore):
super().__init__()
self._definitions... |
class LmantEnvFuncDefStore(DefinitionStore):
def __init__(self, args: dict[Symbol, Expr], definitions_store: DefinitionStore):
pass
def get_function_definition(self, function):
pass
def deserialize_function(self, serialized_function):
pass
def get_symbol_definition(self, sym... | 6 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 5 | 2 | 5 | 29 | 18 | 5 | 13 | 8 | 7 | 0 | 13 | 8 | 7 | 1 | 5 | 0 | 5 |
323,269 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/LmatEnvDefStore.py | sympy_client.grammar.LmatEnvDefStore.LmatEnvDefStore | from copy import copy
from sympy import Expr, Function, Symbol
from sympy_client.LmatEnvironment import LmatEnvironment
from sympy_client.grammar.SympyParser import DefinitionStore, FunctionDefinition, SympyParser
class LmatEnvDefStore(DefinitionStore):
def __init__(self, parser: SympyParser, environment: LmatEnv... |
class LmatEnvDefStore(DefinitionStore):
def __init__(self, parser: SympyParser, environment: LmatEnvironment):
pass
def get_function_definition(self, function: Function) -> FunctionDefinition | None:
pass
def deserialize_function(self, serialized_function: str) -> Function:
pass
... | 8 | 0 | 10 | 2 | 7 | 0 | 2 | 0.08 | 1 | 8 | 4 | 0 | 7 | 6 | 7 | 31 | 82 | 25 | 53 | 23 | 45 | 4 | 43 | 23 | 35 | 3 | 5 | 2 | 13 |
323,270 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/LmatEnvDefStore.py | sympy_client.grammar.LmatEnvDefStore.LmatEnvFunctionDefinition | from sympy import Expr, Function, Symbol
from sympy_client.grammar.SympyParser import DefinitionStore, FunctionDefinition, SympyParser
from typing import Iterable
class LmatEnvFunctionDefinition(FunctionDefinition):
def __init__(self, definition_store: DefinitionStore, parser: SympyParser, args: Iterable[Symbol],... |
class LmatEnvFunctionDefinition(FunctionDefinition):
def __init__(self, definition_store: DefinitionStore, parser: SympyParser, args: Iterable[Symbol], latex_expr: str):
pass
def call(self, *args) -> Expr:
pass
def get_body(self):
pass
@property
def args(self) -> tuple[Ex... | 8 | 0 | 4 | 1 | 4 | 0 | 1 | 0 | 1 | 7 | 3 | 0 | 5 | 4 | 5 | 29 | 28 | 7 | 21 | 15 | 13 | 0 | 19 | 13 | 13 | 1 | 5 | 0 | 5 |
323,271 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/SympyParser.py | sympy_client.grammar.SympyParser.DefinitionStore | from sympy import Function, Symbol, Expr
from sympy import Expr
from abc import ABC, abstractmethod
class DefinitionStore(ABC):
@abstractmethod
def get_function_definition(self, function: Function) -> FunctionDefinition | None:
pass
def deserialize_function(self, serialized_function: str) -> Func... |
class DefinitionStore(ABC):
@abstractmethod
def get_function_definition(self, function: Function) -> FunctionDefinition | None:
pass
def deserialize_function(self, serialized_function: str) -> Function:
pass
@abstractmethod
def get_symbol_definition(self, symbol: Symbol) -> Expr |... | 7 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 2 | 4 | 0 | 4 | 24 | 14 | 3 | 11 | 7 | 4 | 0 | 9 | 5 | 4 | 1 | 4 | 0 | 4 |
323,272 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/SympyParser.py | sympy_client.grammar.SympyParser.FunctionDefinition | from sympy import Function, Symbol, Expr
from sympy import Expr
from abc import ABC, abstractmethod
class FunctionDefinition(ABC):
@abstractmethod
def call(self, *args: Expr) -> Expr:
pass
@abstractmethod
def get_body(self) -> Expr:
pass
@property
@abstractmethod
def args... |
class FunctionDefinition(ABC):
@abstractmethod
def call(self, *args: Expr) -> Expr:
pass
@abstractmethod
def get_body(self) -> Expr:
pass
@property
@abstractmethod
def args(self) -> tuple[Expr]:
pass
@property
@abstractmethod
def serialized_body(self) ->... | 11 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 4 | 0 | 4 | 24 | 18 | 3 | 15 | 9 | 4 | 0 | 9 | 5 | 4 | 1 | 4 | 0 | 4 |
323,273 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/SympyParser.py | sympy_client.grammar.SympyParser.SympyParser | from abc import ABC, abstractmethod
from sympy import Expr
from sympy import Function, Symbol, Expr
class SympyParser(ABC):
@abstractmethod
def parse(self, serialized: str, definitions_store: DefinitionStore) -> Expr:
pass |
class SympyParser(ABC):
@abstractmethod
def parse(self, serialized: str, definitions_store: DefinitionStore) -> Expr:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 1 | 1 | 0 | 1 | 21 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
323,274 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/SystemOfExpr.py | sympy_client.grammar.SystemOfExpr.SystemOfExpr | from lark.tree import Meta
from typing import Callable, Any
class SystemOfExpr:
def __init__(self, expressions: list[tuple[Any, Meta]]):
self.__expressions: list[Any] = [e[0] for e in expressions]
self.__location_data: list[Meta] = [e[1] for e in expressions]
def __len__(self):
return... |
class SystemOfExpr:
def __init__(self, expressions: list[tuple[Any, Meta]]):
pass
def __len__(self):
pass
def extend(self, expressions: list[tuple[Any, Meta]]):
pass
def change_expr(self, expression_index: int, change_func: Callable[[Any], Any]):
pass
def get_ex... | 9 | 0 | 2 | 0 | 2 | 0 | 1 | 0.33 | 0 | 5 | 0 | 0 | 8 | 2 | 8 | 8 | 31 | 7 | 18 | 11 | 9 | 6 | 18 | 11 | 9 | 1 | 0 | 0 | 8 |
323,275 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/transformers/ConstantsTransformer.py | sympy_client.grammar.transformers.ConstantsTransformer.ConstantsTransformer | from lark import Transformer, v_args
@v_args(inline=True)
class ConstantsTransformer(Transformer):
def CONST_PI(self, _) -> Expr:
return pi
def CONST_EULER(self, _) -> Expr:
return E
def CONST_IMAGINARY(self, _) -> Expr:
return I
def CONST_INFINITY(self, _) -> Expr:
... | @v_args(inline=True)
class ConstantsTransformer(Transformer):
def CONST_PI(self, _) -> Expr:
pass
def CONST_EULER(self, _) -> Expr:
pass
def CONST_IMAGINARY(self, _) -> Expr:
pass
def CONST_INFINITY(self, _) -> Expr:
pass | 6 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 4 | 0 | 4 | 4 | 12 | 3 | 9 | 5 | 4 | 0 | 9 | 5 | 4 | 1 | 1 | 0 | 4 |
323,276 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/transformers/FunctionsTransformer.py | sympy_client.grammar.transformers.FunctionsTransformer.FunctionsTransformer | from typing import Iterator
import sympy
from sympy_client.grammar.SympyParser import DefinitionStore
from sympy.tensor.array import derive_by_array
from lark import Token, Transformer, v_args
from sympy.core.function import AppliedUndef
@v_args(inline=True)
class FunctionsTransformer(Transformer):
def __init__(s... | @v_args(inline=True)
class FunctionsTransformer(Transformer):
def __init__(self, definitions_store: DefinitionStore):
pass
def trig_function(self, func_token: Token, exponent: Expr | None, arg: Expr) -> Expr:
pass
def frac(self, numerator: Expr, denominator: Expr) -> Expr:
pass
... | 60 | 0 | 4 | 0 | 3 | 0 | 1 | 0.08 | 1 | 6 | 1 | 1 | 57 | 1 | 57 | 57 | 296 | 93 | 188 | 78 | 129 | 15 | 180 | 77 | 122 | 5 | 1 | 2 | 84 |
323,277 | zarstensen/obsidian-latex-math | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/zarstensen_obsidian-latex-math/sympy-client/sympy_client/grammar/transformers/LatexTransformer.py | sympy_client.grammar.transformers.LatexTransformer.LatexTransformer | from .FunctionsTransformer import FunctionsTransformer
import itertools
from enum import Enum
from sympy_client.grammar.SympyParser import DefinitionStore
from sympy_client.grammar.SystemOfExpr import SystemOfExpr
from typing import Iterator
from sympy import Expr
from sympy.core.numbers import Float, Integer
from lark... |
class LatexTransformer(ConstantsTransformer, FunctionsTransformer):
class Delim(Enum):
def __init__(self, definitions_store: DefinitionStore):
pass
@v_args(inline=True)
def NUMERIC_DIGIT(self, digit: Token):
pass
@v_args(inline=True)
def NUMERIC_NUMBER(self, number: Token):
... | 41 | 0 | 8 | 1 | 6 | 1 | 2 | 0.1 | 2 | 11 | 3 | 0 | 22 | 1 | 22 | 83 | 239 | 56 | 168 | 69 | 121 | 17 | 127 | 52 | 100 | 7 | 2 | 3 | 53 |
323,278 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/scripts/models_meta.py | models_meta.Model | from typing import TypedDict
class Model(TypedDict):
id: str
name: str
created: int
description: str
context_length: int
architecture: ModelArchitecture
pricing: ModelPricing
top_provider: ModelProvider
per_request_limits: dict | None |
class Model(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 1 | 9 | 0 | 10 | 1 | 9 | 0 | 1 | 0 | 0 |
323,279 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/scripts/models_meta.py | models_meta.ModelArchitecture | from typing import TypedDict
class ModelArchitecture(TypedDict):
modality: str
input_modalities: list[str]
output_modalities: list[str]
tokenizer: str
instruct_type: str | None |
class ModelArchitecture(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
323,280 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/scripts/models_meta.py | models_meta.ModelPricing | from typing import TypedDict
class ModelPricing(TypedDict):
prompt: str
completion: str
request: str
image: str
web_search: str
internal_reasoning: str |
class ModelPricing(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
323,281 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/scripts/models_meta.py | models_meta.ModelProvider | from typing import TypedDict
class ModelProvider(TypedDict):
context_length: int
max_completion_tokens: int | None
is_moderated: bool |
class ModelProvider(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 |
323,282 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/balance.py | routstr.balance.TopupRequest | from pydantic import BaseModel
class TopupRequest(BaseModel):
cashu_token: str |
class TopupRequest(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 |
323,283 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/core/admin.py | routstr.core.admin.WithdrawRequest | from pydantic import BaseModel
class WithdrawRequest(BaseModel):
amount: int
mint_url: str | None = None
unit: str = 'sat' |
class WithdrawRequest(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 |
323,284 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/core/db.py | routstr.core.db.ApiKey | from sqlmodel import Field, SQLModel, func, select
class ApiKey(SQLModel, table=True):
__tablename__ = 'api_keys'
hashed_key: str = Field(primary_key=True)
balance: int = Field(default=0, description='Balance in millisatoshis (msats)')
reserved_balance: int = Field(default=0, description='Reserved bala... |
class ApiKey(SQLModel, table=True):
@property
def total_balance(self) -> int:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0.03 | 2 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 32 | 2 | 30 | 13 | 27 | 1 | 13 | 12 | 11 | 1 | 1 | 0 | 1 |
323,285 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/core/logging.py | routstr.core.logging.DailyRotatingFileHandler | from typing import Any
from datetime import datetime
import logging.config
import logging.handlers
import os
class DailyRotatingFileHandler(logging.handlers.TimedRotatingFileHandler):
"""Custom TimedRotatingFileHandler that creates date-based filenames."""
def __init__(self, filename: str, **kwargs: Any) -> N... |
class DailyRotatingFileHandler(logging.handlers.TimedRotatingFileHandler):
'''Custom TimedRotatingFileHandler that creates date-based filenames.'''
def __init__(self, filename: str, **kwargs: Any) -> None:
'''Initialize with a base filename pattern.'''
pass
def doRollover(self) -> None:
... | 4 | 4 | 14 | 3 | 10 | 2 | 4 | 0.19 | 1 | 5 | 0 | 0 | 3 | 5 | 3 | 42 | 48 | 11 | 31 | 17 | 27 | 6 | 31 | 17 | 27 | 7 | 7 | 4 | 11 |
323,286 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/core/logging.py | routstr.core.logging.RequestIdFilter | import logging.handlers
import logging.config
class RequestIdFilter(logging.Filter):
"""Filter to add request ID to all log records."""
def filter(self, record: logging.LogRecord) -> bool:
"""Add request ID to the log record if available."""
try:
from .middleware import request_id_... |
class RequestIdFilter(logging.Filter):
'''Filter to add request ID to all log records.'''
def filter(self, record: logging.LogRecord) -> bool:
'''Add request ID to the log record if available.'''
pass | 2 | 2 | 12 | 1 | 8 | 3 | 3 | 0.44 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 3 | 15 | 2 | 9 | 4 | 6 | 4 | 9 | 4 | 6 | 3 | 2 | 1 | 3 |
323,287 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/core/logging.py | routstr.core.logging.SecurityFilter | import logging.config
import logging.handlers
import re
class SecurityFilter(logging.Filter):
"""Filter to remove sensitive information from logs."""
SENSITIVE_KEYS = {'authorization', 'x-cashu', 'bearer', 'token', 'key', 'secret', 'password', 'cashu_token', 'bearer_key', 'api_key', 'nsec', 'upstream_api_key',... |
class SecurityFilter(logging.Filter):
'''Filter to remove sensitive information from logs.'''
def filter(self, record: logging.LogRecord) -> bool:
'''Filter out sensitive information from log records.'''
pass | 2 | 2 | 26 | 5 | 20 | 5 | 5 | 0.17 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 3 | 45 | 7 | 36 | 7 | 34 | 6 | 15 | 7 | 13 | 5 | 2 | 4 | 5 |
323,288 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/core/logging.py | routstr.core.logging.VersionFilter | import logging.handlers
import logging.config
class VersionFilter(logging.Filter):
"""Filter to add package version to all log records."""
def __init__(self) -> None:
super().__init__()
self.version = get_package_version()
def filter(self, record: logging.LogRecord) -> bool:
"""Ad... |
class VersionFilter(logging.Filter):
'''Filter to add package version to all log records.'''
def __init__(self) -> None:
pass
def filter(self, record: logging.LogRecord) -> bool:
'''Add version information to the log record.'''
pass | 3 | 2 | 4 | 0 | 3 | 1 | 1 | 0.29 | 1 | 3 | 0 | 0 | 2 | 1 | 2 | 4 | 11 | 2 | 7 | 4 | 4 | 2 | 7 | 4 | 4 | 1 | 2 | 0 | 2 |
323,289 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/core/middleware.py | routstr.core.middleware.LoggingMiddleware | import time
from typing import Callable
from fastapi import Request, Response
from starlette.middleware.base import BaseHTTPMiddleware
import uuid
class LoggingMiddleware(BaseHTTPMiddleware):
"""Middleware to log detailed request and response information."""
async def dispatch(self, request: Request, call_nex... |
class LoggingMiddleware(BaseHTTPMiddleware):
'''Middleware to log detailed request and response information.'''
async def dispatch(self, request: Request, call_next: Callable) -> Response:
pass | 2 | 1 | 104 | 12 | 78 | 15 | 9 | 0.2 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 107 | 13 | 79 | 10 | 77 | 16 | 31 | 9 | 29 | 9 | 1 | 3 | 9 |
323,290 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/payment/cost_caculation.py | routstr.payment.cost_caculation.CostData | from pydantic.v1 import BaseModel
class CostData(BaseModel):
base_msats: int
input_msats: int
output_msats: int
total_msats: int |
class CostData(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 50 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 5 | 0 | 0 |
323,291 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/payment/cost_caculation.py | routstr.payment.cost_caculation.CostDataError | from pydantic.v1 import BaseModel
class CostDataError(BaseModel):
message: str
code: str |
class CostDataError(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 5 | 0 | 0 |
323,292 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/payment/cost_caculation.py | routstr.payment.cost_caculation.MaxCostData | class MaxCostData(CostData):
pass | class MaxCostData(CostData):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 6 | 0 | 0 |
323,293 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/payment/lnurl.py | routstr.payment.lnurl.LNURLData | from typing import TypedDict
class LNURLData(TypedDict):
"""LNURL payRequest data."""
callback_url: str
min_sendable: int
max_sendable: int |
class LNURLData(TypedDict):
'''LNURL payRequest data.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 4 | 1 | 3 | 3 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
323,294 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/payment/lnurl.py | routstr.payment.lnurl.LNURLError | class LNURLError(Exception):
"""LNURL related errors.""" | class LNURLError(Exception):
'''LNURL related errors.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
323,295 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/payment/models.py | routstr.payment.models.Architecture | from pydantic.v1 import BaseModel
class Architecture(BaseModel):
modality: str
input_modalities: list[str]
output_modalities: list[str]
tokenizer: str
instruct_type: str | None |
class Architecture(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 5 | 0 | 0 |
323,296 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/payment/models.py | routstr.payment.models.Model | from pydantic.v1 import BaseModel
class Model(BaseModel):
id: str
name: str
created: int
description: str
context_length: int
architecture: Architecture
pricing: Pricing
sats_pricing: Pricing | None = None
per_request_limits: dict | None = None
top_provider: TopProvider | None =... |
class Model(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 11 | 0 | 11 | 4 | 10 | 0 | 11 | 4 | 10 | 0 | 5 | 0 | 0 |
323,297 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/payment/models.py | routstr.payment.models.Pricing | from pydantic.v1 import BaseModel
class Pricing(BaseModel):
prompt: float
completion: float
request: float
image: float
web_search: float
internal_reasoning: float
max_cost: float = 0.0 |
class Pricing(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 8 | 0 | 8 | 2 | 7 | 1 | 8 | 2 | 7 | 0 | 5 | 0 | 0 |
323,298 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/payment/models.py | routstr.payment.models.TopProvider | from pydantic.v1 import BaseModel
class TopProvider(BaseModel):
context_length: int | None = None
max_completion_tokens: int | None = None
is_moderated: bool | None = None |
class TopProvider(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
323,299 | Routstr/proxy | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Routstr_proxy/routstr/wallet.py | routstr.wallet.BalanceDetail | from typing import TypedDict
class BalanceDetail(TypedDict, total=False):
mint_url: str
unit: str
wallet_balance: int
user_balance: int
owner_balance: int
error: str |
class BalanceDetail(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.