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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
325,600 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/auth.py | hcli.lib.api.auth.AuthUser | from pydantic import BaseModel
class AuthUser(BaseModel):
"""Authentication user information."""
email: str |
class AuthUser(BaseModel):
'''Authentication user information.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
325,601 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/common.py | hcli.lib.api.common.APIClient | import os
from hcli.lib.constants.auth import CredentialType
from urllib.parse import urlparse
import httpx
from hcli import __version__
from typing import Any
from hcli.lib.console import console
from pathlib import Path
from hcli.env import ENV
from hcli.lib.auth import get_auth_service
from rich.progress import Down... |
class APIClient:
'''HTTP client with automatic authentication header injection.'''
def __init__(self):
pass
async def __aenter__(self):
pass
async def __aexit__(self, exc_type, exc_val, exc_tb):
pass
def _get_headers(self, auth: bool=True) -> dict[str, str]:
'''G... | 12 | 8 | 18 | 2 | 14 | 1 | 3 | 0.11 | 0 | 18 | 7 | 0 | 10 | 2 | 10 | 10 | 202 | 33 | 153 | 57 | 132 | 17 | 108 | 44 | 94 | 10 | 0 | 5 | 35 |
325,602 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/common.py | hcli.lib.api.common.APIError | import httpx
class APIError(Exception):
"""Base API exception with HTTP context."""
def __init__(self, message: str, status_code: int | None=None, response: httpx.Response | None=None):
super().__init__(message)
self.status_code = status_code
self.response = response |
class APIError(Exception):
'''Base API exception with HTTP context.'''
def __init__(self, message: str, status_code: int | None=None, response: httpx.Response | None=None):
pass | 2 | 1 | 4 | 0 | 4 | 0 | 1 | 0.2 | 1 | 3 | 0 | 3 | 1 | 2 | 1 | 11 | 7 | 1 | 5 | 4 | 3 | 1 | 5 | 4 | 3 | 1 | 3 | 0 | 1 |
325,603 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/common.py | hcli.lib.api.common.AuthenticationError | class AuthenticationError(APIError):
"""401/403 authentication failures."""
pass | class AuthenticationError(APIError):
'''401/403 authentication failures.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
325,604 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/common.py | hcli.lib.api.common.NotFoundError | class NotFoundError(APIError):
"""404 resource not found."""
pass | class NotFoundError(APIError):
'''404 resource not found.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
325,605 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/common.py | hcli.lib.api.common.NotLoggedInError | class NotLoggedInError(Exception):
"""Raised when authentication is required but user is not logged in."""
pass | class NotLoggedInError(Exception):
'''Raised when authentication is required but user is not logged in.'''
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 |
325,606 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/common.py | hcli.lib.api.common.ProgressAsyncStream | from httpx import AsyncByteStream
class ProgressAsyncStream(AsyncByteStream):
def __init__(self, file_path, progress_bar, task_id, chunk_size=64 * 1024):
self.file_path = file_path
self.progress_bar = progress_bar
self.task_id = task_id
self.chunk_size = chunk_size
self.fil... |
class ProgressAsyncStream(AsyncByteStream):
def __init__(self, file_path, progress_bar, task_id, chunk_size=64 * 1024):
pass
async def __aenter__(self):
pass
async def __aexit__(self, exc_type, exc, tb):
pass
async def aiter_bytes(self):
pass | 5 | 0 | 6 | 0 | 5 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 4 | 5 | 4 | 6 | 26 | 4 | 22 | 11 | 17 | 0 | 22 | 11 | 17 | 4 | 1 | 2 | 8 |
325,607 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/common.py | hcli.lib.api.common.RateLimitError | class RateLimitError(APIError):
"""429 rate limit exceeded."""
pass | class RateLimitError(APIError):
'''429 rate limit exceeded.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
325,608 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/customer.py | hcli.lib.api.customer.Customer | from pydantic import BaseModel
class Customer(BaseModel):
id: int | None = None
email: str | None = None
notes: str | None = None
company: str | None = None
country: str | None = None
last_name: str | None = None
created_at: str | None = None
first_name: str | None = None
updated_at... |
class Customer(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 21 | 0 | 21 | 20 | 20 | 0 | 21 | 20 | 20 | 0 | 5 | 0 | 0 |
325,609 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/customer.py | hcli.lib.api.customer.CustomerAPI | from .common import get_api_client
class CustomerAPI:
"""Customer API client."""
async def get_customers(self) -> list[Customer]:
"""Get all customers."""
client = await get_api_client()
data = await client.get_json('/api/customers')
return [Customer(**item) for item in data] |
class CustomerAPI:
'''Customer API client.'''
async def get_customers(self) -> list[Customer]:
'''Get all customers.'''
pass | 2 | 2 | 5 | 0 | 4 | 1 | 1 | 0.4 | 0 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 8 | 1 | 5 | 4 | 3 | 2 | 5 | 4 | 3 | 1 | 0 | 0 | 1 |
325,610 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/index.py | hcli.lib.api.index.API | from .common import get_api_client
from .keys import keys
from .auth import auth
from .customer import customer
from .license import license
class API:
"""Main API class that provides access to all API modules."""
def __init__(self):
self.auth = auth
self.license = license
self.custome... |
class API:
'''Main API class that provides access to all API modules.'''
def __init__(self):
pass
async def download_file(self, *args, **kwargs):
'''Convenience method to download files.'''
pass | 3 | 2 | 5 | 0 | 4 | 1 | 1 | 0.22 | 0 | 0 | 0 | 0 | 2 | 4 | 2 | 2 | 13 | 2 | 9 | 8 | 6 | 2 | 9 | 8 | 6 | 1 | 0 | 0 | 2 |
325,611 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/keys.py | hcli.lib.api.keys.ApiKey | from pydantic import BaseModel
class ApiKey(BaseModel):
"""API key information."""
name: str
created_at: str
last_used_at: str | None
request_count: int |
class ApiKey(BaseModel):
'''API key information.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 7 | 1 | 5 | 1 | 4 | 1 | 5 | 1 | 4 | 0 | 5 | 0 | 0 |
325,612 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/keys.py | hcli.lib.api.keys.ApiKeyToken | from pydantic import BaseModel
class ApiKeyToken(BaseModel):
"""API key token response."""
key: str |
class ApiKeyToken(BaseModel):
'''API key token response.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
325,613 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/keys.py | hcli.lib.api.keys.KeysAPI | from .common import get_api_client
class KeysAPI:
"""API Keys management client."""
async def get_keys(self) -> list[ApiKey]:
"""Get all API keys for the current user."""
client = await get_api_client()
data = await client.get_json('/api/keys')
return [ApiKey(**item) for item i... |
class KeysAPI:
'''API Keys management client.'''
async def get_keys(self) -> list[ApiKey]:
'''Get all API keys for the current user.'''
pass
async def create_key(self, name: str) -> str:
'''Create a new API key.'''
pass
async def revoke_key(self, name: str) -> None:
'''Revoke an ... | 4 | 4 | 5 | 0 | 4 | 1 | 1 | 0.31 | 0 | 4 | 2 | 0 | 3 | 0 | 3 | 3 | 20 | 3 | 13 | 10 | 9 | 4 | 13 | 10 | 9 | 1 | 0 | 0 | 3 |
325,614 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/license.py | hcli.lib.api.license.Addon | from pydantic import BaseModel
class Addon(BaseModel):
"""License addon information."""
id: int | None = None
pubhash: str | None = None
license_key: str | None = None
seats: int | None = None
password: str | None = None
start_date: str | None = None
end_date: str | None = None
prod... |
class Addon(BaseModel):
'''License addon information.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.07 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 16 | 1 | 14 | 13 | 13 | 1 | 14 | 13 | 13 | 0 | 5 | 0 | 0 |
325,615 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/license.py | hcli.lib.api.license.Edition | from pydantic import BaseModel
class Edition(BaseModel):
"""Edition information."""
id: int | None = None
tags: list[str] | None = None
plan_id: str | None = None
max_items: int | None = None
plan_name: str | None = None
edition_id: str | None = None
edition_name: str | None = None
... |
class Edition(BaseModel):
'''Edition information.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 1 | 10 | 9 | 9 | 1 | 10 | 9 | 9 | 0 | 5 | 0 | 0 |
325,616 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/license.py | hcli.lib.api.license.License | from pydantic import BaseModel
class License(BaseModel):
"""License information."""
id: int | None = None
pubhash: str | None = None
plan_id: str | None = None
license_key: str | None = None
start_date: str | None = None
end_date: str | None = None
license_type: str | None = None
se... |
class License(BaseModel):
'''License information.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 29 | 1 | 27 | 26 | 26 | 1 | 27 | 26 | 26 | 0 | 5 | 0 | 0 |
325,617 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/license.py | hcli.lib.api.license.LicenseAPI | from .common import get_api_client
class LicenseAPI:
"""License API client."""
async def get_licenses(self, customer_id: str) -> list[License]:
"""Get licenses for a customer."""
try:
client = await get_api_client()
data = await client.get_json(f'/api/licenses/{customer... |
class LicenseAPI:
'''License API client.'''
async def get_licenses(self, customer_id: str) -> list[License]:
'''Get licenses for a customer.'''
pass
async def download_license(self, customer_id: str, license_id: str, asset_type: str, target_dir: str='./') -> str | None:
'''Download a license ... | 3 | 3 | 13 | 2 | 10 | 2 | 2 | 0.2 | 0 | 5 | 2 | 0 | 2 | 0 | 2 | 2 | 30 | 6 | 20 | 12 | 15 | 4 | 18 | 9 | 15 | 2 | 0 | 1 | 4 |
325,618 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/license.py | hcli.lib.api.license.PagedResponse | from pydantic import BaseModel
class PagedResponse(BaseModel):
"""Paged response wrapper."""
items: list[License]
total: int |
class PagedResponse(BaseModel):
'''Paged response wrapper.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 5 | 1 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 5 | 0 | 0 |
325,619 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/license.py | hcli.lib.api.license.Product | from pydantic import BaseModel
class Product(BaseModel):
"""Product information."""
id: int
code: str
name: str
family: str | None = None
catalog: str
edition: str | None = None
platform: str | None = None
ui_label: str | None = None
base_code: str | None = None
update_code:... |
class Product(BaseModel):
'''Product information.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 15 | 1 | 13 | 8 | 12 | 1 | 13 | 8 | 12 | 0 | 5 | 0 | 0 |
325,620 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/auth/__init__.py | hcli.lib.auth.AuthService | from threading import Thread
import webbrowser
import asyncio
import json
from hcli.env import ENV, OAUTH_REDIRECT_URL, OAUTH_SERVER_PORT
from http.server import BaseHTTPRequestHandler, HTTPServer
from typing import Any
from hcli.lib.config import config_store
from hcli.lib.constants.auth import CONFIG_CREDENTIALS, Cre... |
class AuthService:
'''Singleton authentication service handling multiple credentials.'''
def __init__(self):
pass
class SyncSupportedStorage:
def get_item(self, key: str) -> str | None:
pass
def set_item(self, key: str, value: str) -> None:
... | 40 | 30 | 15 | 2 | 11 | 2 | 3 | 0.24 | 0 | 15 | 6 | 0 | 29 | 8 | 30 | 30 | 535 | 97 | 358 | 94 | 313 | 85 | 331 | 89 | 289 | 10 | 0 | 4 | 111 |
325,621 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/commands/__init__.py | hcli.lib.commands.AuthCommand | from hcli.lib.constants.auth import CredentialType
import rich_click as click
from hcli.lib.auth import get_auth_service
import sys
from hcli.lib.console import console
class AuthCommand(BaseCommand):
"""Command class that requires authentication."""
def __init__(self, *args, auth_type: str | None=None, **kwa... |
class AuthCommand(BaseCommand):
'''Command class that requires authentication.'''
def __init__(self, *args, auth_type: str | None=None, **kwargs):
pass
def invoke(self, ctx: click.Context):
'''Override invoke to check authentication before execution.'''
pass | 3 | 2 | 33 | 4 | 25 | 5 | 7 | 0.2 | 1 | 3 | 1 | 0 | 2 | 1 | 2 | 3 | 69 | 9 | 50 | 11 | 47 | 10 | 41 | 11 | 38 | 13 | 2 | 3 | 14 |
325,622 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/commands/__init__.py | hcli.lib.commands.BaseCommand | import rich_click as click
class BaseCommand(click.RichCommand):
"""Base command class with optional authentication."""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) |
class BaseCommand(click.RichCommand):
'''Base command class with optional authentication.'''
def __init__(self, *args, **kwargs):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.33 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 5 | 1 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
325,623 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/config/__init__.py | hcli.lib.config.ConfigStore | from pathlib import Path
import json
from hcli.env import ENV
from typing import Any, TypeVar
from platformdirs import user_config_dir
class ConfigStore:
"""Cross-platform configuration storage for hcli."""
def __init__(self):
self._config_dir = Path(user_config_dir('hcli', 'hex-rays'))
self._... |
class ConfigStore:
'''Cross-platform configuration storage for hcli.'''
def __init__(self):
pass
def _load_config(self) -> None:
'''Load configuration from disk.'''
pass
def _save_config(self):
'''Save configuration to disk.'''
pass
def _migrate_config(se... | 11 | 10 | 5 | 0 | 4 | 1 | 1 | 0.24 | 0 | 8 | 1 | 0 | 10 | 3 | 10 | 10 | 61 | 10 | 41 | 17 | 30 | 10 | 40 | 15 | 29 | 3 | 0 | 3 | 14 |
325,624 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/constants/auth.py | hcli.lib.constants.auth.CredentialType | class CredentialType:
"""Authentication type constants."""
INTERACTIVE = 'interactive'
KEY = 'key'
VALID_TYPES = [INTERACTIVE, KEY] | class CredentialType:
'''Authentication type constants.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 2 | 4 | 4 | 3 | 2 | 4 | 4 | 3 | 0 | 0 | 0 | 0 |
325,625 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/constants/auth.py | hcli.lib.constants.auth.Credentials | from datetime import datetime
from pydantic import BaseModel
class Credentials(BaseModel):
"""Authentication source data model."""
name: str
type: str
email: str
created_at: str
last_used: str
token: str | None = None
@classmethod
def create_credentials(cls, name: str, credential_t... |
class Credentials(BaseModel):
'''Authentication source data model.'''
@classmethod
def create_credentials(cls, name: str, credential_type: str, token: str, email: str | None=None) -> 'Credentials':
'''Create a new API key credentials.'''
pass
@property
def label(self) -> str:
... | 6 | 4 | 5 | 1 | 4 | 1 | 2 | 0.4 | 1 | 3 | 1 | 0 | 2 | 0 | 3 | 85 | 32 | 7 | 20 | 8 | 14 | 8 | 17 | 6 | 13 | 3 | 5 | 1 | 5 |
325,626 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/constants/auth.py | hcli.lib.constants.auth.CredentialsConfig | from pydantic import BaseModel
class CredentialsConfig(BaseModel):
"""Complete credentials configuration."""
default: str | None = None
credentials: dict[str, Credentials] = {}
def add_credentials(self, source: Credentials) -> None:
"""Add an credentials."""
self.credentials[source.nam... |
class CredentialsConfig(BaseModel):
'''Complete credentials configuration.'''
def add_credentials(self, source: Credentials) -> None:
'''Add an credentials.'''
pass
def remove_credentials(self, name: str) -> bool:
'''Remove an credentials. Returns True if removed.'''
pass
... | 6 | 6 | 6 | 0 | 5 | 1 | 3 | 0.25 | 1 | 3 | 1 | 0 | 5 | 0 | 5 | 87 | 41 | 6 | 28 | 9 | 22 | 7 | 28 | 9 | 22 | 4 | 5 | 2 | 13 |
325,627 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/ida/__init__.py | hcli.lib.ida.DownloadResource | import os
from typing import NamedTuple
class DownloadResource(NamedTuple):
"""IDA download resource information."""
id: str
name: str
description: str
category: str
version: str
os: str
arch: str |
class DownloadResource(NamedTuple):
'''IDA download resource information.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 1 | 8 | 1 | 7 | 1 | 8 | 1 | 7 | 0 | 1 | 0 | 0 |
325,628 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/ida/__init__.py | hcli.lib.ida.IDAConfigJson | from pydantic import AliasPath, BaseModel, Field
from pathlib import Path
class IDAConfigJson(BaseModel):
"""IDA configuration $IDAUSR/ida-config.json"""
installation_directory: Path = Field(validation_alias=AliasPath('Paths', 'ida-install-dir'), min_length=1) |
class IDAConfigJson(BaseModel):
'''IDA configuration $IDAUSR/ida-config.json'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 5 | 1 | 2 | 2 | 1 | 2 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
325,629 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/ida/__init__.py | hcli.lib.ida.IdaVersion | from dataclasses import dataclass
import re
from functools import total_ordering
@dataclass
@total_ordering
class IdaVersion:
product: str
major: int
minor: int
suffix: str | None = None
@classmethod
def from_installer_filename(cls, filename: str):
"""Parse IDA installer filename to ex... | @dataclass
@total_ordering
class IdaVersion:
@classmethod
def from_installer_filename(cls, filename: str):
'''Parse IDA installer filename to extract version information.
Args:
filename: IDA installer filename (e.g., 'ida-pro_92_x64linux.run')
Raises:
ValueError:... | 7 | 1 | 17 | 2 | 13 | 4 | 3 | 0.25 | 0 | 3 | 0 | 0 | 2 | 0 | 3 | 3 | 60 | 9 | 44 | 16 | 39 | 11 | 28 | 15 | 24 | 5 | 0 | 2 | 9 |
325,630 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/ida/python.py | hcli.lib.ida.python.CantInstallPackagesError | class CantInstallPackagesError(ValueError):
... | class CantInstallPackagesError(ValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 1 | 0 | 1 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
325,631 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/update/release.py | hcli.lib.update.release.AuthSession | class AuthSession:
header: dict[str, str] = dict()
@classmethod
def init(cls, repo: GitHubRepo):
if cls.header or not repo.token:
return
cls.header = dict(Authorization=f'Bearer {repo.token}') | class AuthSession:
@classmethod
def init(cls, repo: GitHubRepo):
pass | 3 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 1 | 1 | 8 | 1 | 7 | 4 | 4 | 0 | 6 | 3 | 4 | 2 | 0 | 1 | 2 |
325,632 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/update/release.py | hcli.lib.update.release.GitHubRepo | from urllib.parse import urlparse
import dataclasses
@dataclasses.dataclass
class GitHubRepo:
user: str
repo: str
token: str = ''
@classmethod
def from_url(cls, url: str, token: str='') -> 'GitHubRepo':
"""
Create a GitHubRepo from a URL like:
- https://github.com/user/repo... | @dataclasses.dataclass
class GitHubRepo:
@classmethod
def from_url(cls, url: str, token: str='') -> 'GitHubRepo':
'''
Create a GitHubRepo from a URL like:
- https://github.com/user/repo
- git@github.com:user/repo.git
'''
pass | 4 | 1 | 25 | 3 | 13 | 10 | 4 | 0.56 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 31 | 4 | 18 | 7 | 15 | 10 | 16 | 6 | 14 | 4 | 0 | 1 | 4 |
325,633 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/update/release.py | hcli.lib.update.release.ReleaseAsset | import dataclasses
@dataclasses.dataclass
class ReleaseAsset:
asset_id: int
name: str
size: int
@property
def is_valid(self):
return not (self.name is None or not self.name.strip(' ') or self.asset_id is None or (self.asset_id <= 0) or (self.size is None) or (self.size <= 0)) | @dataclasses.dataclass
class ReleaseAsset:
@property
def is_valid(self):
pass | 4 | 0 | 9 | 0 | 9 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 15 | 1 | 14 | 3 | 11 | 0 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
325,634 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/update/version.py | hcli.lib.update.version.BackgroundUpdateChecker | from pathlib import Path
import threading
from semantic_version import SimpleSpec
import json
from hcli.env import ENV
from hcli import __version__
from hcli.lib.update.release import GitHubRepo, get_compatible_version
from packaging.version import Version, parse
from platformdirs import user_cache_dir
from datetime im... |
class BackgroundUpdateChecker:
'''Manages background checking for CLI updates.'''
def __init__(self, check_interval_hours: int=24, cache_enabled: bool=True):
'''Initialize the background update checker.
Args:
cache_dir: Directory to store cache files (defaults to user cache dir)
... | 10 | 10 | 15 | 2 | 10 | 3 | 3 | 0.29 | 0 | 13 | 2 | 0 | 9 | 8 | 9 | 9 | 144 | 28 | 91 | 32 | 81 | 26 | 81 | 29 | 71 | 5 | 0 | 2 | 24 |
325,635 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/util/crc32.py | hcli.lib.util.crc32.Crc32Stream | class Crc32Stream:
"""CRC32 stream processing class for incremental calculation."""
def __init__(self):
self._poly = 3988292384
self._crc = 0
self._bytes = [0] * 256
self.reset()
def reset(self) -> None:
"""Reset the state of the CRC32 stream."""
self._crc =... | class Crc32Stream:
'''CRC32 stream processing class for incremental calculation.'''
def __init__(self):
pass
def reset(self) -> None:
'''Reset the state of the CRC32 stream.'''
pass
def append(self, data: bytes | str) -> str:
'''
Append new data to the CRC32 st... | 6 | 4 | 10 | 2 | 6 | 2 | 2 | 0.37 | 0 | 3 | 0 | 0 | 4 | 3 | 4 | 4 | 47 | 10 | 27 | 14 | 21 | 10 | 25 | 13 | 20 | 4 | 0 | 3 | 9 |
325,636 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/util/output.py | hcli.lib.util.output.OutputFormat | from enum import Enum
class OutputFormat(Enum):
"""Output format enumeration."""
JSON = 'json'
TEXT = 'text' |
class OutputFormat(Enum):
'''Output format enumeration.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 5 | 1 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
325,637 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/main.py | hcli.main.MainGroup | from hcli.env import ENV
from hcli.lib.console import console
import rich_click as click
class MainGroup(click.RichGroup):
"""Custom Rich Click Group with global exception handling."""
def main(self, *args, **kwargs):
"""Override main to add global exception handling."""
try:
retur... |
class MainGroup(click.RichGroup):
'''Custom Rich Click Group with global exception handling.'''
def main(self, *args, **kwargs):
'''Override main to add global exception handling.'''
pass | 2 | 2 | 27 | 3 | 21 | 3 | 8 | 0.18 | 1 | 8 | 5 | 0 | 1 | 0 | 1 | 1 | 30 | 4 | 22 | 5 | 18 | 4 | 17 | 4 | 13 | 8 | 1 | 3 | 8 |
325,638 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/arelle/report_info.py | mireport.arelle.report_info.ArelleReportProcessor | from arelle.CntlrCmdLine import RuntimeOptions
from mireport.filesupport import FilelikeAndFileName
from io import BytesIO
from importlib.metadata import PackageNotFoundError, metadata, version
from arelle.api.Session import Session
from arelle.logging.handlers.LogToXmlHandler import LogToXmlHandler
from mireport.arell... |
class ArelleReportProcessor:
'''Wrapper around the Arelle Session() API for the various validations and plugins wanted.'''
def __init__(self, *, taxonomyPackages: Optional[list[Path]]=None, workOffline: bool=True):
pass
def _run(self, reportPackage: FilelikeAndFileName, options: RuntimeOptions, r... | 13 | 1 | 29 | 1 | 22 | 6 | 3 | 0.29 | 0 | 14 | 5 | 0 | 5 | 2 | 8 | 8 | 256 | 13 | 189 | 64 | 162 | 54 | 94 | 40 | 84 | 6 | 0 | 4 | 24 |
325,639 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/arelle/support.py | mireport.arelle.support.ArelleObjectJSONEncoder | import json
from arelle.ModelValue import QName
from typing import Any, MutableMapping, NamedTuple, Optional, Self
class ArelleObjectJSONEncoder(json.JSONEncoder):
def default(self, o: Any) -> Any:
if isinstance(o, QName):
return str(o)
return super().default(o)
@staticmethod
... |
class ArelleObjectJSONEncoder(json.JSONEncoder):
def default(self, o: Any) -> Any:
pass
@staticmethod
def tidyKeys(obj: Any) -> Any:
'''default(obj) only works on objects not keys so use this method to
preprocess your JSON payload and convert QName keys to str keys.'''
pass | 4 | 1 | 10 | 0 | 9 | 2 | 4 | 0.16 | 1 | 5 | 0 | 0 | 1 | 0 | 2 | 6 | 23 | 1 | 19 | 9 | 15 | 3 | 17 | 8 | 14 | 6 | 2 | 3 | 8 |
325,640 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/arelle/support.py | mireport.arelle.support.ArelleProcessingResult | import logging
from mireport.conversionresults import Message, MessageType, Severity
from arelle.logging.handlers.LogToXmlHandler import LogToXmlHandler
import json
from mireport.filesupport import FilelikeAndFileName
from typing import Any, MutableMapping, NamedTuple, Optional, Self
class ArelleProcessingResult:
... |
class ArelleProcessingResult:
'''Holds the results of processing an XBRL file with Arelle.'''
def __init__(self, jsonMessages: str, textLogLines: list[str]):
pass
def __importArelleMessages(self, json_str: str) -> None:
pass
@classmethod
def fromLogToXmlHandler(cls, logHandler: Lo... | 13 | 1 | 9 | 0 | 8 | 0 | 2 | 0.04 | 0 | 8 | 5 | 0 | 6 | 4 | 7 | 7 | 82 | 11 | 68 | 28 | 54 | 3 | 42 | 24 | 33 | 6 | 0 | 2 | 14 |
325,641 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/arelle/support.py | mireport.arelle.support.ArelleRelatedException | from mireport.exceptions import MIReportException
class ArelleRelatedException(MIReportException):
"""Exception to wrap any exception that come from calling in to Arelle."""
pass |
class ArelleRelatedException(MIReportException):
'''Exception to wrap any exception that come from calling in to Arelle.'''
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 | 4 | 0 | 0 |
325,642 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/arelle/support.py | mireport.arelle.support.ArelleVersionHolder | from dataclasses import dataclass
@dataclass
class ArelleVersionHolder:
arelle: VersionInformationTuple
ixbrlViewer: VersionInformationTuple
def __str__(self) -> str:
return f'{self.arelle!s}, with {self.ixbrlViewer!s}' | @dataclass
class ArelleVersionHolder:
def __str__(self) -> str:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 6 | 1 | 5 | 2 | 3 | 0 | 5 | 2 | 3 | 1 | 0 | 0 | 1 |
325,643 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/arelle/support.py | mireport.arelle.support.VersionInformationTuple | from typing import Any, MutableMapping, NamedTuple, Optional, Self
class VersionInformationTuple(NamedTuple):
name: str
version: str
def __str__(self) -> str:
return f'{self.name} (version {self.version})' |
class VersionInformationTuple(NamedTuple):
def __str__(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 6 | 1 | 5 | 2 | 3 | 0 | 5 | 2 | 3 | 1 | 1 | 0 | 1 |
325,644 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/arelle/taxonomy_info.py | mireport.arelle.taxonomy_info.TaxonomyInfoExtractor | from arelle.ModelXbrl import ModelXbrl
from arelle.ModelRelationshipSet import ModelRelationshipSet
from mireport.arelle.support import ArelleObjectJSONEncoder, ArelleProcessingResult, ArelleRelatedException
from arelle.RuntimeOptions import RuntimeOptions
from collections import defaultdict
from arelle.Cntlr import Cn... |
class TaxonomyInfoExtractor:
def __init__(self, cntlr: Cntlr, options: RuntimeOptions, modelXbrl: ModelXbrl):
pass
def extract(self) -> None:
pass
def walkDefinitionChildren(self, parent_concept: ModelConcept, relSet: ModelRelationshipSet, rows: list[tuple[int, QName, bool | None]], inde... | 15 | 2 | 25 | 1 | 22 | 1 | 4 | 0.06 | 0 | 9 | 2 | 0 | 14 | 4 | 14 | 14 | 357 | 24 | 315 | 101 | 271 | 18 | 173 | 71 | 157 | 10 | 0 | 7 | 58 |
325,645 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/arelle/taxonomy_info.py | mireport.arelle.taxonomy_info.TaxonomyInfoPluginData | from arelle.utils.PluginData import PluginData
class TaxonomyInfoPluginData(PluginData):
Taxonomy: dict = dict()
UTR: dict = dict() |
class TaxonomyInfoPluginData(PluginData):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
325,646 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/arelle/taxonomy_info.py | mireport.arelle.taxonomy_info.UTRInfoExtractor | from mireport.arelle.support import ArelleObjectJSONEncoder, ArelleProcessingResult, ArelleRelatedException
from arelle.ValidateUtr import UtrEntry
from arelle.Cntlr import Cntlr
from arelle.ModelXbrl import ModelXbrl
class UTRInfoExtractor:
def __init__(self, cntlr: Cntlr, modelXbrl: ModelXbrl, pData: TaxonomyIn... |
class UTRInfoExtractor:
def __init__(self, cntlr: Cntlr, modelXbrl: ModelXbrl, pData: TaxonomyInfoPluginData):
pass
def extract(self) -> None:
pass
def getUTRForJSON(self) -> list[dict]:
'''Get the UTR entries from the modelXbrl.'''
pass | 4 | 1 | 18 | 0 | 17 | 1 | 2 | 0.04 | 0 | 5 | 2 | 0 | 3 | 4 | 3 | 3 | 57 | 2 | 53 | 20 | 47 | 2 | 23 | 15 | 19 | 4 | 0 | 3 | 7 |
325,647 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/conversionresults.py | mireport.conversionresults.ConversionResults | from typing import Optional, Self, Type
class ConversionResults:
def __init__(self, conversionId: str, messages: list[Message], cellsQueried: int, cellsPopulated: int, conversionSuccessful: bool) -> None:
self.conversionId = conversionId
self.messages: list[Message] = messages
self.cellsQu... |
class ConversionResults:
def __init__(self, conversionId: str, messages: list[Message], cellsQueried: int, cellsPopulated: int, conversionSuccessful: bool) -> None:
pass
@classmethod
def fromDict(cls, stuff: dict) -> Self:
pass
def toDict(self) -> dict:
pass
def __len__(s... | 22 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 9 | 3 | 1 | 13 | 5 | 14 | 14 | 95 | 13 | 82 | 45 | 48 | 0 | 42 | 26 | 27 | 2 | 0 | 1 | 15 |
325,648 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/conversionresults.py | mireport.conversionresults.ConversionResultsBuilder | import uuid
from collections.abc import Iterable
from mireport.taxonomy import Concept
from mireport.xml import QName
from typing import Optional, Self, Type
class ConversionResultsBuilder(ConversionResults):
def __init__(self, conversionId: Optional[str]=None, consoleOutput: bool=False) -> None:
if conve... |
class ConversionResultsBuilder(ConversionResults):
def __init__(self, conversionId: Optional[str]=None, consoleOutput: bool=False) -> None:
pass
def addCellQueries(self, delta: Iterable[tuple[str, int, int]]) -> None:
pass
def addCellsWithData(self, delta: Iterable[tuple[str, int, int]])... | 14 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 13 | 6 | 0 | 10 | 5 | 10 | 24 | 75 | 9 | 66 | 30 | 42 | 0 | 32 | 17 | 21 | 2 | 1 | 1 | 12 |
325,649 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/conversionresults.py | mireport.conversionresults.Message | from typing import Optional, Self, Type
class Message:
def __init__(self, messageText: str, severity: Severity, messageType: MessageType, conceptQName: Optional[str]=None, excelReference: Optional[str]=None):
self.messageText: str = messageText
self.severity: Severity = severity
self.messa... |
class Message:
def __init__(self, messageText: str, severity: Severity, messageType: MessageType, conceptQName: Optional[str]=None, excelReference: Optional[str]=None):
pass
def __str__(self) -> str:
pass
@classmethod
def fromDict(cls, stuff: dict) -> Self:
pass
def toDic... | 6 | 0 | 10 | 0 | 10 | 0 | 2 | 0 | 0 | 4 | 2 | 0 | 3 | 5 | 4 | 4 | 45 | 4 | 41 | 25 | 28 | 0 | 25 | 17 | 20 | 3 | 0 | 1 | 6 |
325,650 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/conversionresults.py | mireport.conversionresults.MessageType | from enum import StrEnum
from functools import cache, lru_cache
from typing import Optional, Self, Type
class MessageType(StrEnum):
DevInfo = 'Dev Info'
ExcelParsing = 'Excel Parsing'
Conversion = 'Conversion'
XbrlValidation = 'XBRL Validation'
Progress = 'Progress Status'
@classmethod
def... |
class MessageType(StrEnum):
@classmethod
def all(cls) -> set[Self]:
pass
@classmethod
def allExcept(cls, *mtypes: Self) -> set[Self]:
pass
@classmethod
@lru_cache(1)
def maxValueWidth(cls) -> int:
pass | 8 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 3 | 71 | 21 | 3 | 18 | 13 | 10 | 0 | 14 | 10 | 10 | 1 | 3 | 0 | 3 |
325,651 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/conversionresults.py | mireport.conversionresults.ProcessingContext | from mireport.exceptions import EarlyAbortException
from typing import Optional, Self, Type
from time import perf_counter_ns
from mireport.stringutil import format_time_ns
from types import TracebackType
class ProcessingContext:
def __init__(self, resultsBuilder: ConversionResultsBuilder, name: str) -> None:
... |
class ProcessingContext:
def __init__(self, resultsBuilder: ConversionResultsBuilder, name: str) -> None:
pass
def __enter__(self) -> Self:
pass
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType]) -> bool:
... | 7 | 0 | 11 | 0 | 10 | 0 | 2 | 0.02 | 0 | 8 | 4 | 0 | 6 | 7 | 6 | 6 | 70 | 7 | 62 | 24 | 48 | 1 | 42 | 17 | 35 | 3 | 0 | 1 | 11 |
325,652 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/conversionresults.py | mireport.conversionresults.Severity | from functools import cache, lru_cache
from typing import Optional, Self, Type
from enum import StrEnum
class Severity(StrEnum):
ERROR = 'Error'
WARNING = 'Warning'
INFO = 'Info'
@classmethod
def all(cls) -> set[Self]:
return set(cls.__members__.values())
@classmethod
@lru_cache(1... |
class Severity(StrEnum):
@classmethod
def all(cls) -> set[Self]:
pass
@classmethod
@lru_cache(1)
def maxValueWidth(cls) -> int:
pass
@classmethod
@cache
def fromLogLevelString(cls, level: str) -> Self:
pass | 9 | 0 | 3 | 0 | 3 | 0 | 1 | 0.06 | 1 | 2 | 0 | 0 | 0 | 0 | 3 | 71 | 22 | 3 | 18 | 12 | 9 | 1 | 13 | 8 | 9 | 2 | 3 | 1 | 4 |
325,653 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/excelprocessor.py | mireport.excelprocessor.CellAndXBRLMetadataHolder | from typing import BinaryIO, Callable, NamedTuple, Optional, Self
from mireport.taxonomy import VSME_ENTRY_POINT, Concept, QName, Taxonomy, getTaxonomy, listTaxonomies
from dataclasses import dataclass
@dataclass(slots=True, eq=True, frozen=True)
class CellAndXBRLMetadataHolder(CellRangeMetadata):
concept: Concept... | @dataclass(slots=True, eq=True, frozen=True)
class CellAndXBRLMetadataHolder(CellRangeMetadata):
@classmethod
def fromCellRangeMetadata(cls, holder: CellRangeMetadata, concept: Concept) -> Self:
'''
Create a CellAndXBRLMetadataHolder instance from a CellRangeMetadataHolder and a Concept.
... | 4 | 1 | 17 | 1 | 10 | 6 | 1 | 0.46 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 21 | 2 | 13 | 3 | 10 | 6 | 4 | 2 | 2 | 1 | 1 | 0 | 1 |
325,654 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/excelprocessor.py | mireport.excelprocessor.CellRangeMetadata | from openpyxl.workbook.defined_name import DefinedName
from openpyxl.worksheet.cell_range import CellRange
from dataclasses import dataclass
from openpyxl.worksheet.worksheet import Worksheet
@dataclass(slots=True, eq=True, frozen=True)
class CellRangeMetadata:
definedName: DefinedName
worksheet: Worksheet
... | @dataclass(slots=True, eq=True, frozen=True)
class CellRangeMetadata:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 0 | 0 | 0 |
325,655 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/excelprocessor.py | mireport.excelprocessor.ComplexUnit | from typing import BinaryIO, Callable, NamedTuple, Optional, Self
from mireport.taxonomy import VSME_ENTRY_POINT, Concept, QName, Taxonomy, getTaxonomy, listTaxonomies
class ComplexUnit(NamedTuple):
numerator: list[QName]
denominator: list[QName] |
class ComplexUnit(NamedTuple):
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 |
325,656 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/excelprocessor.py | mireport.excelprocessor.ExcelProcessor | from itertools import combinations
from mireport.conversionresults import ConversionResultsBuilder, MessageType, Severity
from mireport.xbrlreport import FactBuilder, InlineReport, _FactValue
from datetime import date, datetime
from babel import Locale
from mireport.exceptions import EarlyAbortException, InlineReportEx... |
class ExcelProcessor:
def __init__(self, excelPathOrFileLike: Path | BinaryIO, results: ConversionResultsBuilder, defaults: dict, /, outputLocale: Optional[Locale]=None):
pass
@property
def taxonomy(self) -> Taxonomy:
pass
@property
def unusedNames(self) -> list[str]:
pass
... | 34 | 4 | 50 | 3 | 45 | 2 | 7 | 0.04 | 0 | 35 | 14 | 0 | 31 | 17 | 31 | 31 | 1,573 | 115 | 1,401 | 289 | 1,304 | 58 | 683 | 213 | 646 | 35 | 0 | 8 | 228 |
325,657 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/excelprocessor.py | mireport.excelprocessor.TableXBRLContents | from typing import BinaryIO, Callable, NamedTuple, Optional, Self
class TableXBRLContents(NamedTuple):
primaryItems: list[CellAndXBRLMetadataHolder]
explicitDimensions: list[CellAndXBRLMetadataHolder]
typedDimensions: list[CellAndXBRLMetadataHolder]
units: list[CellAndXBRLMetadataHolder] |
class TableXBRLContents(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
325,658 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/excelutil.py | mireport.excelutil.CellRangeDimensions | from typing import BinaryIO, Iterator, Literal, NamedTuple, Optional, TypeAlias, Union, overload
class CellRangeDimensions(NamedTuple):
width: int
height: int
cellsAccessed: set[tuple[str, int, int]]
cellsPopulated: set[tuple[str, int, int]]
@property
def countAccessed(self) -> int:
re... |
class CellRangeDimensions(NamedTuple):
@property
def countAccessed(self) -> int:
pass
@property
def countPopulated(self) -> int:
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 13 | 2 | 11 | 5 | 6 | 0 | 9 | 3 | 6 | 1 | 1 | 0 | 2 |
325,659 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.AmbiguousComponentException | class AmbiguousComponentException(TaxonomyException):
"""Exception raised when a label or unqualified concept name is used to refer to a concept and it matches more than one concept (it is ambiguous)."""
pass | class AmbiguousComponentException(TaxonomyException):
'''Exception raised when a label or unqualified concept name is used to refer to a concept and it matches more than one concept (it is ambiguous).'''
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 | 5 | 0 | 0 |
325,660 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.BrokenNamespacePrefixException | class BrokenNamespacePrefixException(MIReportException):
"""Exception raised when a prefix is bound to more than one namespace."""
pass | class BrokenNamespacePrefixException(MIReportException):
'''Exception raised when a prefix is bound to more than one namespace.'''
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 | 4 | 0 | 0 |
325,661 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.BrokenQNameException | class BrokenQNameException(MIReportException):
"""Exception raised when a QName is malformed."""
pass | class BrokenQNameException(MIReportException):
'''Exception raised when a QName is malformed.'''
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 | 4 | 0 | 0 |
325,662 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.EarlyAbortException | class EarlyAbortException(MIReportException):
"""Exception raised when a required field is missing in the report."""
pass | class EarlyAbortException(MIReportException):
'''Exception raised when a required field is missing in the report.'''
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 | 4 | 0 | 0 |
325,663 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.InlineReportException | class InlineReportException(MIReportException):
"""All Inline XBRL Report related exceptions"""
pass | class InlineReportException(MIReportException):
'''All Inline XBRL Report related exceptions'''
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 | 4 | 0 | 0 |
325,664 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.MIReportException | class MIReportException(Exception):
"""Base class for any XBRL related exceptions. Not expected to be raised directly."""
pass | class MIReportException(Exception):
'''Base class for any XBRL related exceptions. Not expected to be raised directly.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 8 | 0 | 0 | 0 | 10 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
325,665 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.OpenPyXlRelatedException | class OpenPyXlRelatedException(MIReportException):
"""Exception raised when dealing with an issue in OpenPyXL"""
pass | class OpenPyXlRelatedException(MIReportException):
'''Exception raised when dealing with an issue in OpenPyXL'''
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 | 4 | 0 | 0 |
325,666 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.TaxonomyException | class TaxonomyException(MIReportException):
"""All taxonomy related exceptions"""
pass | class TaxonomyException(MIReportException):
'''All taxonomy related exceptions'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 10 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
325,667 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.UnitException | class UnitException(MIReportException):
"""Exception raised when a unit is not found in the UTR."""
pass | class UnitException(MIReportException):
'''Exception raised when a unit is not found in the UTR.'''
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 | 4 | 0 | 0 |
325,668 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/exceptions.py | mireport.exceptions.UnknownTaxonomyException | class UnknownTaxonomyException(TaxonomyException):
"""Exception raised when a taxonomy entry point is unknown."""
pass | class UnknownTaxonomyException(TaxonomyException):
'''Exception raised when a taxonomy entry point is unknown.'''
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 | 5 | 0 | 0 |
325,669 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/filesupport.py | mireport.filesupport.FilelikeAndFileName | from io import BytesIO
from pathlib import Path
from mireport.stringutil import format_bytes
from typing import NamedTuple, Optional
class FilelikeAndFileName(NamedTuple):
fileContent: bytes
filename: str
def fileLike(self) -> BytesIO:
return BytesIO(self.fileContent)
def __str__(self) -> str... |
class FilelikeAndFileName(NamedTuple):
def fileLike(self) -> BytesIO:
pass
def __str__(self) -> str:
pass
def saveToFilepath(self, path: Path) -> None:
'''Saves the file content to the specified path.'''
pass
def saveToDirectory(self, directory: Path) -> None:
... | 5 | 2 | 8 | 1 | 6 | 1 | 2 | 0.15 | 1 | 3 | 0 | 1 | 4 | 0 | 4 | 4 | 39 | 8 | 27 | 7 | 22 | 4 | 25 | 6 | 20 | 3 | 1 | 1 | 8 |
325,670 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/filesupport.py | mireport.filesupport.ImageFileLikeAndFileName | from typing import NamedTuple, Optional
from PIL import Image
from io import BytesIO
from PIL.Image import Resampling
import base64
class ImageFileLikeAndFileName(FilelikeAndFileName):
def as_data_url(self, max_width: Optional[int]=None, max_height: Optional[int]=None) -> str:
"""
Resize and conve... |
class ImageFileLikeAndFileName(FilelikeAndFileName):
def as_data_url(self, max_width: Optional[int]=None, max_height: Optional[int]=None) -> str:
'''
Resize and convert a logo image to a base64 data URL suitable for XHTML embedding.
Always outputs PNG for maximum compatibility.
:pa... | 2 | 1 | 31 | 5 | 16 | 11 | 3 | 0.65 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 5 | 32 | 5 | 17 | 13 | 11 | 11 | 13 | 8 | 11 | 3 | 2 | 1 | 3 |
325,671 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/taxonomy.py | mireport.taxonomy.BaseSet | from typing import Any, NamedTuple, Optional, overload
class BaseSet(NamedTuple):
roleUri: str
hyperCubes: frozenset[Concept] |
class BaseSet(NamedTuple):
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 |
325,672 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/taxonomy.py | mireport.taxonomy.Concept | from mireport.exceptions import AmbiguousComponentException, TaxonomyException, UnknownTaxonomyException
from typing import Any, NamedTuple, Optional, overload
from functools import cache, cached_property
import re
from mireport.xml import ENUM2_NS, NCNAME_RE, QNAME_RE, XBRLI_NS, QName, QNameMaker, getBootsrapQNameMake... |
class Concept:
'''
Represents a concept in an XBRL taxonomy.
'''
def __init__(self, qnameMaker: QNameMaker, s_qname: str, details: dict):
pass
def __repr__(self) -> str:
pass
def __str__(self) -> str:
pass
def __lt__(self, other: object) -> bool:
pass
... | 49 | 3 | 9 | 1 | 8 | 0 | 2 | 0.05 | 0 | 12 | 5 | 0 | 30 | 15 | 30 | 30 | 333 | 52 | 268 | 125 | 188 | 14 | 160 | 69 | 128 | 17 | 0 | 5 | 68 |
325,673 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/taxonomy.py | mireport.taxonomy.DimensionContainerType | from enum import Enum, StrEnum, auto
class DimensionContainerType(StrEnum):
Segment = 'segment'
Scenario = 'scenario' |
class DimensionContainerType(StrEnum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 68 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 3 | 0 | 0 |
325,674 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/taxonomy.py | mireport.taxonomy.PeriodType | from enum import Enum, StrEnum, auto
class PeriodType(StrEnum):
Duration = 'duration'
Instant = 'instant' |
class PeriodType(StrEnum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 68 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 3 | 0 | 0 |
325,675 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/taxonomy.py | mireport.taxonomy.PresentationGroup | from typing import Any, NamedTuple, Optional, overload
class PresentationGroup(NamedTuple):
roleUri: str
label: str
relationships: list[Relationship]
style: PresentationStyle |
class PresentationGroup(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
325,676 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/taxonomy.py | mireport.taxonomy.PresentationStyle | from enum import Enum, StrEnum, auto
class PresentationStyle(Enum):
"""The style of a particular presentation group (ELR)."""
Empty = auto()
'Empty means there are\n no reportable concepts in the group.\n '
List = auto()
'List means there are no dimensionally\n qualified concepts in the gr... |
class PresentationStyle(Enum):
'''The style of a particular presentation group (ELR).'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 20 | 4 | 5 | 5 | 4 | 11 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
325,677 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/taxonomy.py | mireport.taxonomy.Relationship | from typing import Any, NamedTuple, Optional, overload
class Relationship(NamedTuple):
roleUri: str
depth: int
concept: Concept
preferredLabel: Optional[str] = None
def getLabel(self, lang: str='en', removeSuffix: bool=True) -> Optional[str]:
"""Get the label for this relationship's concep... |
class Relationship(NamedTuple):
def getLabel(self, lang: str='en', removeSuffix: bool=True) -> Optional[str]:
'''Get the label for this relationship's concept.'''
pass | 2 | 1 | 7 | 0 | 6 | 1 | 2 | 0.09 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 13 | 1 | 11 | 3 | 9 | 1 | 9 | 3 | 7 | 2 | 1 | 1 | 2 |
325,678 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/taxonomy.py | mireport.taxonomy.Taxonomy | from mireport.stringutil import unicodeDashNormalization
from typing import Any, NamedTuple, Optional, overload
from mireport.xml import ENUM2_NS, NCNAME_RE, QNAME_RE, XBRLI_NS, QName, QNameMaker, getBootsrapQNameMaker
from functools import cache, cached_property
from collections import defaultdict
from mireport.utr im... |
class Taxonomy:
def __init__(self, concepts: dict[str, Concept], entryPoint: str, presentation: dict[str, dict[str, Any]], dimensions: dict[str, dict], qnameMaker: QNameMaker, utr: UTR) -> None:
pass
def getConcept(self, qname: QName | str) -> Concept:
pass
def getConceptForName(self, na... | 36 | 6 | 14 | 1 | 13 | 1 | 3 | 0.04 | 0 | 17 | 9 | 0 | 24 | 18 | 24 | 24 | 382 | 42 | 328 | 138 | 263 | 12 | 211 | 105 | 181 | 16 | 0 | 4 | 71 |
325,679 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/utr.py | mireport.utr.UTR | from collections import defaultdict
from mireport.xml import ISO4217_NS, XBRLI_NS, QName, QNameMaker
from typing import Optional, Self
from functools import cache
from mireport.exceptions import UnitException
class UTR:
def __init__(self, unitToNamespaces: dict[str, list[str]], dataTypeToUnit: dict[str | QName, l... |
class UTR:
def __init__(self, unitToNamespaces: dict[str, list[str]], dataTypeToUnit: dict[str | QName, list[str]], unitQNamesToEntries: dict[QName, dict[str, str]], qnameMaker: QNameMaker) -> None:
pass
@classmethod
def fromDict(cls, utr: dict, *, qnameMaker: QNameMaker) -> Self:
'''Load ... | 14 | 3 | 12 | 0 | 11 | 1 | 3 | 0.07 | 0 | 8 | 3 | 0 | 7 | 4 | 8 | 8 | 108 | 10 | 92 | 44 | 72 | 6 | 62 | 31 | 53 | 5 | 0 | 3 | 20 |
325,680 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.CoreDimensionNames | from enum import Enum, StrEnum, auto
from mireport.taxonomy import Concept, PresentationGroup, PresentationStyle, QName, Relationship, Taxonomy
class CoreDimensionNames(StrEnum):
Concept = 'concept'
Entity = 'entity'
Period = 'period'
Unit = 'unit'
Language = 'language' |
class CoreDimensionNames(StrEnum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 68 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 3 | 0 | 0 |
325,681 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.DurationPeriodHolder | from dataclasses import dataclass
from datetime import date, datetime, timezone
@dataclass(slots=True, frozen=True, eq=True)
class DurationPeriodHolder(PeriodHolder):
start: datetime | date
end: datetime | date | @dataclass(slots=True, frozen=True, eq=True)
class DurationPeriodHolder(PeriodHolder):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 5 | 0 | 0 |
325,682 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.Fact | from mireport.localise import decimal_symbol, localise_and_format_number
from unicodedata import name as unicode_name
from mireport.taxonomy import Concept, PresentationGroup, PresentationStyle, QName, Relationship, Taxonomy
from typing import NamedTuple, Optional, Self, cast
from mireport.stringutil import unicodeSpac... |
class Fact:
'''
Represents a fact in an XBRL instance document.
'''
def __init__(self, concept: Concept, value: _FactValue, report: 'InlineReport', aspects: dict[str | QName, str | QName] | None=None):
pass
def __repr__(self) -> str:
pass
def __lt__(self, other: 'Fact') -> bo... | 20 | 3 | 12 | 0 | 11 | 1 | 3 | 0.07 | 0 | 19 | 6 | 0 | 15 | 4 | 15 | 15 | 196 | 19 | 166 | 64 | 136 | 12 | 122 | 49 | 105 | 6 | 0 | 3 | 44 |
325,683 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.FactBuilder | from collections.abc import Collection
from unicodedata import name as unicode_name
from mireport.taxonomy import Concept, PresentationGroup, PresentationStyle, QName, Relationship, Taxonomy
from typing import NamedTuple, Optional, Self, cast
from xml.sax.saxutils import escape as xml_escape
from mireport.exceptions im... |
class FactBuilder:
'''
Represents a builder for Fact objects: an easy way to build and add facts to an InlineReport.
'''
def __init__(self, report: 'InlineReport'):
pass
def __repr__(self) -> str:
pass
def setExplicitDimension(self, explicitDimension: Concept, explicitDimensi... | 27 | 4 | 13 | 0 | 12 | 1 | 3 | 0.06 | 0 | 15 | 6 | 0 | 24 | 5 | 24 | 24 | 341 | 33 | 290 | 82 | 247 | 18 | 197 | 62 | 171 | 10 | 0 | 3 | 77 |
325,684 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.InlineReport | from unicodedata import name as unicode_name
from io import BytesIO
from babel import Locale
from mireport.localise import decimal_symbol, localise_and_format_number
from mireport.taxonomy import Concept, PresentationGroup, PresentationStyle, QName, Relationship, Taxonomy
from typing import NamedTuple, Optional, Self, ... |
class InlineReport:
def __init__(self, taxonomy: Taxonomy, outputLocale: Optional[Locale]=None):
pass
def setReportTitle(self, title: str) -> None:
pass
def setReportSubtitle(self, subtitle: str) -> None:
pass
@property
def taxonomy(self) -> Taxonomy:
pass
@pr... | 34 | 3 | 9 | 0 | 9 | 0 | 2 | 0.05 | 0 | 25 | 12 | 0 | 27 | 12 | 27 | 27 | 280 | 32 | 237 | 87 | 195 | 11 | 147 | 77 | 116 | 4 | 0 | 2 | 46 |
325,685 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.InstantPeriodHolder | from datetime import date, datetime, timezone
from dataclasses import dataclass
@dataclass(slots=True, frozen=True, eq=True)
class InstantPeriodHolder(PeriodHolder):
instant: datetime | date | @dataclass(slots=True, frozen=True, eq=True)
class InstantPeriodHolder(PeriodHolder):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
325,686 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.PeriodHolder | from abc import ABC
class PeriodHolder(ABC):
@property
def isInstant(self) -> bool:
"""
Returns True if this period holder is an InstantPeriodHolder.
"""
return isinstance(self, InstantPeriodHolder)
@property
def isDuration(self) -> bool:
"""
Returns Tr... |
class PeriodHolder(ABC):
@property
def isInstant(self) -> bool:
'''
Returns True if this period holder is an InstantPeriodHolder.
'''
pass
@property
def isDuration(self) -> bool:
'''
Returns True if this period holder is a DurationPeriodHolder.
'... | 5 | 2 | 5 | 0 | 2 | 3 | 1 | 0.86 | 1 | 3 | 2 | 2 | 2 | 0 | 2 | 22 | 14 | 1 | 7 | 5 | 2 | 6 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
325,687 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.ReportLayoutOrganiser | from itertools import count
from collections import defaultdict
from mireport.exceptions import InlineReportException
from typing import NamedTuple, Optional, Self, cast
from mireport.taxonomy import Concept, PresentationGroup, PresentationStyle, QName, Relationship, Taxonomy
class ReportLayoutOrganiser:
def __in... |
class ReportLayoutOrganiser:
def __init__(self, taxonomy: Taxonomy, report: InlineReport):
pass
def organise(self) -> list['ReportSection']:
pass
def checkAllFactsUsed(self) -> None:
'''
Checks that all facts in the report have been used in the report sections.
Ra... | 10 | 1 | 45 | 2 | 41 | 1 | 10 | 0.03 | 0 | 21 | 11 | 0 | 9 | 5 | 9 | 9 | 411 | 27 | 373 | 103 | 363 | 12 | 274 | 103 | 264 | 47 | 0 | 8 | 94 |
325,688 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.ReportSection | from mireport.taxonomy import Concept, PresentationGroup, PresentationStyle, QName, Relationship, Taxonomy
from dataclasses import dataclass
@dataclass(slots=True, frozen=True, eq=True)
class ReportSection:
relationshipToFact: dict[Relationship, list[Fact]]
presentation: PresentationGroup
@property
de... | @dataclass(slots=True, frozen=True, eq=True)
class ReportSection:
@property
def title(self) -> str:
pass
@property
def style(self) -> PresentationStyle:
pass
@property
def hasFacts(self) -> bool:
pass
@property
def tabular(self) -> bool:
pass | 10 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 3 | 1 | 1 | 4 | 0 | 4 | 4 | 21 | 4 | 17 | 9 | 8 | 0 | 13 | 5 | 8 | 2 | 0 | 1 | 5 |
325,689 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.Symbol | from typing import NamedTuple, Optional, Self, cast
from unicodedata import name as unicode_name
class Symbol(NamedTuple):
symbol: str
name: str |
class Symbol(NamedTuple):
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 |
325,690 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.TableHeadingCell | from mireport.taxonomy import Concept, PresentationGroup, PresentationStyle, QName, Relationship, Taxonomy
from typing import NamedTuple, Optional, Self, cast
class TableHeadingCell(NamedTuple):
value: _TableHeadingValue
colspan: int = 0
rowspan: int = 0
numeric: bool = False
@property
def isD... |
class TableHeadingCell(NamedTuple):
@property
def isDuration(self) -> bool:
pass
@property
def isInstant(self) -> bool:
pass
@property
def isPeriod(self) -> bool:
pass
@property
def isConcept(self) -> bool:
pass | 9 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 3 | 0 | 4 | 0 | 4 | 4 | 21 | 4 | 17 | 12 | 8 | 0 | 13 | 8 | 8 | 1 | 1 | 0 | 4 |
325,691 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.TableStyle | from enum import Enum, StrEnum, auto
class TableStyle(Enum):
SingleTypedDimensionColumn = auto()
SingleExplicitDimensionColumn = auto()
SingleExplicitDimensionRow = auto()
Other = auto() |
class TableStyle(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
325,692 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xbrlreport.py | mireport.xbrlreport.TabularReportSection | from typing import NamedTuple, Optional, Self, cast
from mireport.taxonomy import Concept, PresentationGroup, PresentationStyle, QName, Relationship, Taxonomy
from dataclasses import dataclass
@dataclass(slots=True, frozen=True, eq=True)
class TabularReportSection(ReportSection):
tableStyle: TableStyle
dataCol... | @dataclass(slots=True, frozen=True, eq=True)
class TabularReportSection(ReportSection):
@property
def tabular(self) -> bool:
pass
@property
def rowHeadingsHaveTitle(self) -> bool:
pass
def columnHasUnit(self, colnum: int) -> bool:
pass
@property
def hasFacts(self) -... | 9 | 0 | 5 | 0 | 5 | 0 | 3 | 0 | 1 | 3 | 0 | 0 | 4 | 0 | 4 | 8 | 39 | 4 | 35 | 15 | 27 | 0 | 32 | 12 | 27 | 4 | 1 | 3 | 10 |
325,693 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xml.py | mireport.xml.NamespaceManager | from mireport.exceptions import BrokenNamespacePrefixException, BrokenQNameException
import sys
import itertools
class NamespaceManager:
"""Prefix and namespace are stored in sys.intern() form as they appear lots and are checked lots in XBRL.
intern() means we can use identiy checking ("is") rather than equali... |
class NamespaceManager:
'''Prefix and namespace are stored in sys.intern() form as they appear lots and are checked lots in XBRL.
intern() means we can use identiy checking ("is") rather than equality checking ("==") providing both sides have been intern()d'''
def __init__(self) -> None:
pass
... | 8 | 2 | 8 | 0 | 7 | 1 | 2 | 0.14 | 0 | 7 | 2 | 0 | 7 | 2 | 7 | 7 | 65 | 7 | 51 | 13 | 43 | 7 | 35 | 11 | 27 | 4 | 0 | 2 | 14 |
325,694 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xml.py | mireport.xml.QName | from typing import Any, NamedTuple
import sys
class QName:
__slots__ = ('localName', 'namespace', 'prefix')
def __init__(self, q: _QNameTuple):
self.namespace = sys.intern(q.namespace)
self.prefix = sys.intern(q.prefix)
self.localName = q.localName
def __key(self) -> tuple[str, st... |
class QName:
def __init__(self, q: _QNameTuple):
pass
def __key(self) -> tuple[str, str, str]:
pass
def __sortKey(self) -> tuple[str, str, str]:
pass
def __hash__(self) -> int:
pass
def __eq__(self, other: Any) -> bool:
pass
def __lt__(self, other: ... | 9 | 0 | 4 | 0 | 3 | 0 | 1 | 0.07 | 0 | 7 | 1 | 0 | 8 | 3 | 8 | 8 | 39 | 8 | 29 | 16 | 17 | 2 | 26 | 13 | 17 | 3 | 0 | 1 | 11 |
325,695 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xml.py | mireport.xml.QNameMaker | from mireport.exceptions import BrokenNamespacePrefixException, BrokenQNameException
class QNameMaker:
def __init__(self, nsManager: NamespaceManager):
self.nsManager = nsManager
def _getAndValidateParts(self, /, qname: str) -> _QNameTuple:
if not (qname and len((parts := qname.split(':', 1))... |
class QNameMaker:
def __init__(self, nsManager: NamespaceManager):
pass
def _getAndValidateParts(self, /, qname: str) -> _QNameTuple:
pass
def _partsValidator(self, /, q: _QNameTuple) -> None:
pass
def isValidQName(self, /, qname: str) -> bool:
pass
def fromStri... | 8 | 0 | 6 | 0 | 6 | 0 | 2 | 0 | 0 | 7 | 4 | 0 | 7 | 1 | 7 | 7 | 49 | 7 | 42 | 17 | 34 | 0 | 36 | 15 | 28 | 3 | 0 | 1 | 12 |
325,696 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xml.py | mireport.xml._NSPrefixTuple | from typing import Any, NamedTuple
class _NSPrefixTuple(NamedTuple):
prefix: str
namespace: str |
class _NSPrefixTuple(NamedTuple):
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 |
325,697 | EFRAG-EU/Digital-Template-to-XBRL-Converter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/EFRAG-EU_Digital-Template-to-XBRL-Converter/src/mireport/xml.py | mireport.xml._QNameTuple | from typing import Any, NamedTuple
class _QNameTuple(NamedTuple):
prefix: str
localName: str
namespace: str |
class _QNameTuple(NamedTuple):
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 |
325,698 | HenriquesLab/rxiv-maker | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HenriquesLab_rxiv-maker/src/rxiv_maker/core/cache/advanced_cache.py | cache.advanced_cache.AdvancedCache | import json
import gzip
from typing import Any, Callable, Dict, Optional, Tuple
import time
from .cache_utils import get_cache_dir
import pickle
import hashlib
from pathlib import Path
class AdvancedCache:
"""Multi-level cache with memory and disk storage."""
def __init__(self, name: str, max_memory_items: in... |
class AdvancedCache:
'''Multi-level cache with memory and disk storage.'''
def __init__(self, name: str, max_memory_items: int=1000, max_disk_size_mb: int=100, compression: bool=True, ttl_hours: int=24, cache_dir: Optional[Path]=None):
'''Initialize advanced cache.
Args:
name: Cach... | 16 | 16 | 19 | 3 | 12 | 4 | 3 | 0.32 | 0 | 9 | 0 | 0 | 15 | 9 | 15 | 15 | 306 | 62 | 185 | 67 | 162 | 60 | 163 | 53 | 147 | 9 | 0 | 5 | 48 |
325,699 | HenriquesLab/rxiv-maker | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HenriquesLab_rxiv-maker/src/rxiv_maker/core/cache/bibliography_cache.py | cache.bibliography_cache.BibliographyCache | from typing import Any, Dict, List, Optional, Set, Tuple
import time
from pathlib import Path
from .cache_utils import find_manuscript_directory, get_adaptive_cache_dir, get_cache_strategy
import hashlib
import json
from .advanced_cache import AdvancedCache, cached_function
class BibliographyCache:
"""Advanced cac... |
class BibliographyCache:
'''Advanced caching system for bibliography processing operations.'''
def __init__(self, manuscript_name: Optional[str]=None):
'''Initialize bibliography cache.
Args:
manuscript_name: Optional manuscript name for scoped caching (for backward compatibility)
... | 18 | 18 | 20 | 3 | 12 | 6 | 2 | 0.49 | 0 | 7 | 1 | 0 | 16 | 4 | 16 | 16 | 340 | 68 | 185 | 65 | 154 | 91 | 105 | 50 | 88 | 5 | 0 | 3 | 29 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.