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,900 | 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/utils/performance.py | rxiv_maker.utils.performance.PerformanceTracker | import json
from pathlib import Path
import time
from typing import Any
from ..__version__ import __version__
class PerformanceTracker:
"""Track and compare performance metrics across rxiv-maker versions."""
def __init__(self, cache_dir: Path | None=None):
"""Initialize performance tracker.
A... |
class PerformanceTracker:
'''Track and compare performance metrics across rxiv-maker versions.'''
def __init__(self, cache_dir: Path | None=None):
'''Initialize performance tracker.
Args:
cache_dir: Directory for storing performance baselines
'''
pass
def _load... | 11 | 11 | 19 | 3 | 10 | 5 | 3 | 0.51 | 0 | 8 | 0 | 0 | 10 | 6 | 10 | 10 | 198 | 42 | 104 | 35 | 93 | 53 | 75 | 31 | 64 | 5 | 0 | 3 | 26 |
325,901 | 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/utils/platform.py | rxiv_maker.utils.platform.PlatformDetector | import subprocess
from pathlib import Path
import os
import sys
import platform
import shutil
class PlatformDetector:
"""Detect and manage platform-specific operations."""
def __init__(self):
"""Initialize platform detector."""
self._platform = self._detect_platform()
self._python_cmd ... |
class PlatformDetector:
'''Detect and manage platform-specific operations.'''
def __init__(self):
'''Initialize platform detector.'''
pass
def _detect_platform(self) -> str:
'''Detect the current platform.'''
pass
def get_platform_normalized(self) -> str:
'''G... | 31 | 29 | 11 | 1 | 8 | 2 | 3 | 0.26 | 0 | 10 | 0 | 0 | 28 | 2 | 28 | 28 | 332 | 51 | 225 | 67 | 189 | 58 | 185 | 58 | 151 | 7 | 0 | 4 | 73 |
325,902 | 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/utils/retry.py | rxiv_maker.utils.retry.NonRetryableError | class NonRetryableError(Exception):
"""Exception that indicates an operation should not be retried."""
pass | class NonRetryableError(Exception):
'''Exception that indicates an operation should not be retried.'''
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,903 | 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/utils/retry.py | rxiv_maker.utils.retry.RetryStrategy | from enum import Enum
class RetryStrategy(Enum):
"""Different retry strategies for various failure types."""
EXPONENTIAL_BACKOFF = 'exponential_backoff'
LINEAR_BACKOFF = 'linear_backoff'
FIXED_DELAY = 'fixed_delay'
FIBONACCI = 'fibonacci' |
class RetryStrategy(Enum):
'''Different retry strategies for various failure types.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 7 | 1 | 5 | 5 | 4 | 1 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
325,904 | 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/utils/retry.py | rxiv_maker.utils.retry.RetryableError | class RetryableError(Exception):
"""Exception that indicates an operation can be safely retried."""
pass | class RetryableError(Exception):
'''Exception that indicates an operation can be safely retried.'''
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,905 | 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/utils/retry.py | rxiv_maker.utils.retry.RetryableSession | import requests
from typing import Any, Callable, Optional, Type, Union
class RetryableSession:
"""Requests session with built-in retry logic."""
def __init__(self, max_attempts: int=3, strategy: RetryStrategy=RetryStrategy.EXPONENTIAL_BACKOFF, base_delay: float=1.0, max_delay: float=60.0, jitter: bool=True, ... |
class RetryableSession:
'''Requests session with built-in retry logic.'''
def __init__(self, max_attempts: int=3, strategy: RetryStrategy=RetryStrategy.EXPONENTIAL_BACKOFF, base_delay: float=1.0, max_delay: float=60.0, jitter: bool=True, timeout: int=30, user_agent: str='rxiv-maker/1.0 (https://github.com/hen... | 10 | 8 | 9 | 1 | 6 | 2 | 1 | 0.41 | 0 | 10 | 1 | 0 | 7 | 7 | 7 | 7 | 76 | 11 | 46 | 35 | 20 | 19 | 29 | 18 | 20 | 2 | 0 | 1 | 9 |
325,906 | 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/utils/update_checker.py | rxiv_maker.utils.update_checker.UpdateChecker | from rxiv_maker.utils.unicode_safe import get_safe_icon, safe_print
import threading
from pathlib import Path
import os
import json
from ..core.cache.cache_utils import get_cache_dir, migrate_cache_file
from datetime import datetime, timedelta
from urllib.request import urlopen
from urllib.error import HTTPError, URLEr... |
class UpdateChecker:
'''Handles version checking and update notifications.'''
def __init__(self, package_name: str='rxiv-maker', current_version: str | None=None):
'''Initialize the update checker.
Args:
package_name: Name of the package on PyPI
current_version: Current... | 15 | 14 | 16 | 3 | 9 | 4 | 3 | 0.47 | 0 | 17 | 0 | 0 | 13 | 6 | 13 | 13 | 235 | 48 | 129 | 44 | 112 | 60 | 115 | 41 | 98 | 7 | 0 | 3 | 38 |
325,907 | 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/validators/base_validator.py | rxiv_maker.validators.base_validator.ValidationError | import os
from dataclasses import dataclass
@dataclass
class ValidationError:
"""Represents a single validation issue."""
level: ValidationLevel
message: str
file_path: str | None = None
line_number: int | None = None
column: int | None = None
context: str | None = None
suggestion: str ... | @dataclass
class ValidationError:
'''Represents a single validation issue.'''
def __str__(self) -> str:
'''Format validation error for display.'''
pass | 3 | 2 | 30 | 7 | 17 | 6 | 6 | 0.27 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 42 | 9 | 26 | 11 | 24 | 7 | 26 | 11 | 24 | 6 | 0 | 3 | 6 |
325,908 | 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/validators/base_validator.py | rxiv_maker.validators.base_validator.ValidationLevel | from enum import Enum
class ValidationLevel(Enum):
"""Validation result severity levels."""
ERROR = 'error'
WARNING = 'warning'
INFO = 'info'
SUCCESS = 'success' |
class ValidationLevel(Enum):
'''Validation result severity levels.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 7 | 1 | 5 | 5 | 4 | 5 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
325,909 | 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/validators/base_validator.py | rxiv_maker.validators.base_validator.ValidationResult | from typing import Any
from dataclasses import dataclass
@dataclass
class ValidationResult:
"""Results from a validation operation."""
validator_name: str
errors: list[ValidationError]
metadata: dict[str, Any]
@property
def has_errors(self) -> bool:
"""Check if there are any error-leve... | @dataclass
class ValidationResult:
'''Results from a validation operation.'''
@property
def has_errors(self) -> bool:
'''Check if there are any error-level issues.'''
pass
@property
def has_warnings(self) -> bool:
'''Check if there are any warning-level issues.'''
pas... | 11 | 6 | 3 | 0 | 2 | 1 | 1 | 0.33 | 0 | 5 | 2 | 0 | 5 | 0 | 5 | 5 | 30 | 6 | 18 | 12 | 8 | 6 | 14 | 6 | 8 | 1 | 0 | 0 | 5 |
325,910 | 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/validators/doi/api_clients.py | rxiv_maker.validators.doi.api_clients.BaseDOIClient | from abc import ABC, abstractmethod
from typing import Any
import requests
import time
class BaseDOIClient(ABC):
"""Base class for DOI API clients."""
def __init__(self, timeout: int=10, max_retries: int=3):
self.timeout = timeout
self.max_retries = max_retries
if RetryableSession is n... |
class BaseDOIClient(ABC):
'''Base class for DOI API clients.'''
def __init__(self, timeout: int=10, max_retries: int=3):
pass
def _make_request(self, url: str, headers: dict[str, str] | None=None) -> dict[str, Any] | None:
'''Make HTTP request with retry logic.'''
pass
@abstra... | 5 | 3 | 16 | 0 | 14 | 2 | 3 | 0.16 | 1 | 10 | 2 | 6 | 3 | 4 | 3 | 23 | 53 | 4 | 43 | 12 | 38 | 7 | 32 | 10 | 28 | 6 | 4 | 4 | 9 |
325,911 | 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/validators/doi/api_clients.py | rxiv_maker.validators.doi.api_clients.CrossRefClient | from crossref_commons.retrieval import get_publication_as_json
from typing import Any
class CrossRefClient(BaseDOIClient):
"""Client for CrossRef API."""
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
"""Fetch metadata from CrossRef API."""
try:
data = get_publication... |
class CrossRefClient(BaseDOIClient):
'''Client for CrossRef API.'''
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
'''Fetch metadata from CrossRef API.'''
pass | 2 | 2 | 38 | 3 | 29 | 6 | 8 | 0.23 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 24 | 41 | 4 | 30 | 8 | 28 | 7 | 28 | 7 | 26 | 8 | 5 | 4 | 8 |
325,912 | 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/validators/doi/api_clients.py | rxiv_maker.validators.doi.api_clients.DOIResolver | from typing import Any
class DOIResolver:
"""Comprehensive DOI resolver with fallback API support.
This resolver attempts to fetch DOI metadata from multiple sources in sequence:
CrossRef -> DataCite -> OpenAlex -> Semantic Scholar -> Handle System -> JOSS
"""
def __init__(self, cache=None, timeo... |
class DOIResolver:
'''Comprehensive DOI resolver with fallback API support.
This resolver attempts to fetch DOI metadata from multiple sources in sequence:
CrossRef -> DataCite -> OpenAlex -> Semantic Scholar -> Handle System -> JOSS
'''
def __init__(self, cache=None, timeout: int=10, max_retries:... | 4 | 4 | 27 | 3 | 18 | 7 | 4 | 0.44 | 0 | 12 | 6 | 0 | 3 | 9 | 3 | 3 | 90 | 12 | 54 | 29 | 39 | 24 | 31 | 17 | 27 | 7 | 0 | 3 | 13 |
325,913 | 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/validators/doi/api_clients.py | rxiv_maker.validators.doi.api_clients.DataCiteClient | from typing import Any
class DataCiteClient(BaseDOIClient):
"""Client for DataCite API."""
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
"""Fetch metadata from DataCite API."""
try:
url = f'https://api.datacite.org/dois/{doi}'
headers = {'Accept': 'applic... |
class DataCiteClient(BaseDOIClient):
'''Client for DataCite API.'''
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
'''Fetch metadata from DataCite API.'''
pass
def normalize_metadata(self, attributes: dict[str, Any]) -> dict[str, Any]:
'''Normalize DataCite metadata ... | 3 | 3 | 25 | 5 | 17 | 4 | 6 | 0.23 | 1 | 4 | 0 | 0 | 2 | 0 | 2 | 25 | 54 | 11 | 35 | 15 | 32 | 8 | 34 | 14 | 31 | 8 | 5 | 2 | 11 |
325,914 | 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/validators/doi/api_clients.py | rxiv_maker.validators.doi.api_clients.HandleSystemClient | from typing import Any
class HandleSystemClient(BaseDOIClient):
"""Client for Handle System direct resolution - the underlying DOI infrastructure."""
def __init__(self, timeout: int=15, max_retries: int=3):
super().__init__(timeout=timeout, max_retries=max_retries)
def fetch_metadata(self, doi: s... |
class HandleSystemClient(BaseDOIClient):
'''Client for Handle System direct resolution - the underlying DOI infrastructure.'''
def __init__(self, timeout: int=15, max_retries: int=3):
pass
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
'''Fetch basic resolution metadata from... | 5 | 4 | 12 | 2 | 8 | 2 | 3 | 0.3 | 1 | 7 | 0 | 0 | 4 | 0 | 4 | 27 | 55 | 12 | 33 | 16 | 28 | 10 | 33 | 15 | 28 | 5 | 5 | 3 | 10 |
325,915 | 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/validators/doi/api_clients.py | rxiv_maker.validators.doi.api_clients.JOSSClient | from typing import Any
class JOSSClient(BaseDOIClient):
"""Client for JOSS (Journal of Open Source Software) API."""
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
"""Fetch metadata from JOSS API."""
try:
paper_id = self._extract_joss_paper_id(doi)
if not ... |
class JOSSClient(BaseDOIClient):
'''Client for JOSS (Journal of Open Source Software) API.'''
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
'''Fetch metadata from JOSS API.'''
pass
def _extract_joss_paper_id(self, doi: str) -> str | None:
'''Extract JOSS paper ID fr... | 4 | 4 | 19 | 3 | 13 | 4 | 4 | 0.31 | 1 | 6 | 0 | 0 | 3 | 0 | 3 | 26 | 62 | 11 | 39 | 17 | 35 | 12 | 39 | 16 | 35 | 6 | 5 | 2 | 11 |
325,916 | 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/validators/doi/api_clients.py | rxiv_maker.validators.doi.api_clients.OpenAlexClient | from typing import Any
class OpenAlexClient(BaseDOIClient):
"""Client for OpenAlex API - comprehensive academic database."""
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
"""Fetch metadata from OpenAlex API."""
try:
clean_doi = doi.replace('doi:', '')
url... |
class OpenAlexClient(BaseDOIClient):
'''Client for OpenAlex API - comprehensive academic database.'''
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
'''Fetch metadata from OpenAlex API.'''
pass
def normalize_metadata(self, openalex_data: dict[str, Any]) -> dict[str, Any]:
... | 3 | 3 | 33 | 5 | 23 | 5 | 6 | 0.23 | 1 | 4 | 0 | 0 | 2 | 0 | 2 | 25 | 70 | 12 | 47 | 23 | 44 | 11 | 46 | 22 | 43 | 9 | 5 | 3 | 12 |
325,917 | 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/validators/doi/api_clients.py | rxiv_maker.validators.doi.api_clients.SemanticScholarClient | from typing import Any
import time
import requests
class SemanticScholarClient(BaseDOIClient):
"""Client for Semantic Scholar API - AI-powered research database."""
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
"""Fetch metadata from Semantic Scholar API."""
try:
cle... |
class SemanticScholarClient(BaseDOIClient):
'''Client for Semantic Scholar API - AI-powered research database.'''
def fetch_metadata(self, doi: str) -> dict[str, Any] | None:
'''Fetch metadata from Semantic Scholar API.'''
pass
def normalize_metadata(self, ss_data: dict[str, Any]) -> dict... | 3 | 3 | 49 | 6 | 36 | 8 | 10 | 0.22 | 1 | 6 | 0 | 0 | 2 | 0 | 2 | 25 | 101 | 13 | 73 | 23 | 70 | 16 | 67 | 22 | 64 | 11 | 5 | 6 | 20 |
325,918 | 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/validators/doi/metadata_comparator.py | rxiv_maker.validators.doi.metadata_comparator.MetadataComparator | from typing import Any
from difflib import SequenceMatcher
class MetadataComparator:
"""Utility class for comparing metadata between bibliography and external sources."""
def __init__(self, similarity_threshold: float=0.8):
self.similarity_threshold = similarity_threshold
def compare_metadata(sel... |
class MetadataComparator:
'''Utility class for comparing metadata between bibliography and external sources.'''
def __init__(self, similarity_threshold: float=0.8):
pass
def compare_metadata(self, bib_entry: dict[str, Any], external_metadata: dict[str, Any], source: str='external') -> list[str]:
... | 12 | 11 | 22 | 4 | 14 | 5 | 4 | 0.32 | 0 | 10 | 0 | 0 | 11 | 1 | 11 | 11 | 252 | 53 | 159 | 57 | 142 | 51 | 131 | 55 | 116 | 10 | 0 | 3 | 45 |
325,919 | 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/validators/latex_error_parser.py | rxiv_maker.validators.latex_error_parser.LaTeXError | from dataclasses import dataclass
@dataclass
class LaTeXError:
"""Represents a LaTeX compilation error."""
error_type: str
message: str
file_path: str | None = None
line_number: int | None = None
context: str | None = None
raw_error: str | None = None | @dataclass
class LaTeXError:
'''Represents a LaTeX compilation error.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 1 | 7 | 5 | 6 | 1 | 7 | 5 | 6 | 0 | 0 | 0 | 0 |
325,920 | 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/validators/latex_error_parser.py | rxiv_maker.validators.latex_error_parser.LaTeXErrorParser | import os
import re
from typing import Any
from .base_validator import BaseValidator, ValidationLevel, ValidationResult
class LaTeXErrorParser(BaseValidator):
"""Parser for LaTeX compilation errors from log files."""
ERROR_PATTERNS = {'Undefined control sequence': {'type': 'undefined_command', 'message': 'Unkn... |
class LaTeXErrorParser(BaseValidator):
'''Parser for LaTeX compilation errors from log files.'''
def __init__(self, manuscript_path: str, log_file_path: str | None=None):
'''Initialize LaTeX error parser.
Args:
manuscript_path: Path to manuscript directory
log_file_path... | 10 | 10 | 24 | 3 | 18 | 3 | 4 | 0.14 | 1 | 12 | 3 | 0 | 9 | 2 | 9 | 34 | 298 | 40 | 227 | 54 | 216 | 32 | 101 | 54 | 90 | 7 | 5 | 4 | 39 |
325,921 | 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/security/scanner.py | scanner.SecurityScanner | import re
from rxiv_maker.core.cache.advanced_cache import AdvancedCache
import subprocess
import hashlib
from urllib.parse import urlparse
from typing import Any, Dict, List, Optional, Tuple
import logging
from pathlib import Path
class SecurityScanner:
"""Comprehensive security scanner for Rxiv-Maker."""
de... |
class SecurityScanner:
'''Comprehensive security scanner for Rxiv-Maker.'''
def __init__(self, cache_enabled: bool=True):
'''Initialize security scanner.
Args:
cache_enabled: Whether to cache scan results
'''
pass
def scan_dependencies(self, requirements_file: ... | 21 | 21 | 36 | 5 | 26 | 5 | 5 | 0.2 | 0 | 14 | 1 | 0 | 20 | 3 | 20 | 20 | 732 | 118 | 519 | 116 | 494 | 106 | 283 | 104 | 260 | 12 | 0 | 4 | 102 |
325,922 | 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/session_optimizer.py | session_optimizer.SessionOptimizer | from typing import Any, Dict, Optional
class SessionOptimizer:
"""Optimizes session key usage for better container reuse."""
LEGACY_SESSION_MAPPING: Dict[str, SessionType] = {'validation': SessionType.GENERAL, 'pdf_validation': SessionType.GENERAL, 'python_execution': SessionType.GENERAL, 'mermaid_generation':... |
class SessionOptimizer:
'''Optimizes session key usage for better container reuse.'''
@classmethod
def get_optimized_session_key(cls, original_key: Optional[str]) -> str:
'''Get optimized session key for better container reuse.
Args:
original_key: Original session key (can be No... | 11 | 6 | 18 | 3 | 8 | 7 | 2 | 0.78 | 0 | 6 | 1 | 0 | 0 | 0 | 5 | 5 | 124 | 24 | 59 | 21 | 48 | 46 | 32 | 15 | 26 | 3 | 0 | 1 | 9 |
325,923 | 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/session_optimizer.py | session_optimizer.SessionType | from enum import Enum
class SessionType(Enum):
"""Optimized session types for container reuse."""
GENERAL = 'general'
HEAVY_COMPUTE = 'heavy_compute'
DOCUMENT = 'document' |
class SessionType(Enum):
'''Optimized session types for container reuse.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 11 | 3 | 4 | 4 | 3 | 4 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
325,924 | HenriquesLab/rxiv-maker | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HenriquesLab_rxiv-maker/scripts/maintainer/update-package-templates.py | update-package-templates.TemplateUpdater | from pathlib import Path
import subprocess
import requests
import hashlib
import shutil
import tempfile
class TemplateUpdater:
"""Updates package manager files from templates."""
def __init__(self, repo_root: Path, dry_run: bool=False):
self.repo_root = repo_root
self.dry_run = dry_run
... |
class TemplateUpdater:
'''Updates package manager files from templates.'''
def __init__(self, repo_root: Path, dry_run: bool=False):
pass
def __enter__(self):
pass
def __exit__(self, exc_type, exc_val, exc_tb):
pass
def download_and_hash(self, url: str, retries: int=3) -... | 7 | 4 | 24 | 4 | 18 | 2 | 4 | 0.12 | 0 | 11 | 0 | 0 | 6 | 3 | 6 | 6 | 152 | 28 | 111 | 35 | 103 | 13 | 95 | 33 | 87 | 14 | 0 | 3 | 26 |
325,925 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.AkaInfo | from pydantic import BaseModel, field_validator
from typing import Optional, List, Dict, Tuple, Union
class AkaInfo(BaseModel):
title: str
country_code: str
country_name: str
language_code: Optional[str] = None
language_name: Optional[str] = None
@classmethod
def from_data(self, title, cou... |
class AkaInfo(BaseModel):
@classmethod
def from_data(self, title, country_code, country_name, language_code=None, language_name=None):
pass
def __str__(self):
pass
def __repr__(self):
pass | 5 | 0 | 6 | 0 | 5 | 1 | 2 | 0.09 | 1 | 0 | 0 | 0 | 2 | 0 | 3 | 85 | 28 | 3 | 23 | 7 | 18 | 2 | 16 | 6 | 12 | 3 | 5 | 1 | 5 |
325,926 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.BulkedEpisode | from typing import Optional, List, Dict, Tuple, Union
from pydantic import BaseModel, field_validator
from imdbinfo.transformers import _release_date
class BulkedEpisode(BaseModel):
id: str
imdbId: str
imdb_id: str
title: str
plot: str
image_url: Optional[str] = None
rating: Optional[float]... |
class BulkedEpisode(BaseModel):
@classmethod
def from_bulked_episode_data(cls, data: dict) -> 'BulkedEpisode':
'''
Create an EpisodeData instance from bulked episode data dictionary.
This is used when fetching episodes in bulk from a series.
'''
pass
def __str__(se... | 4 | 1 | 11 | 0 | 9 | 2 | 1 | 0.18 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 84 | 39 | 2 | 33 | 12 | 29 | 6 | 18 | 11 | 15 | 1 | 5 | 0 | 2 |
325,927 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.CastMember | from typing import Optional, List, Dict, Tuple, Union
class CastMember(Person):
"""Cast member model for cast members in a movie.
This model extends the Person model to include additional information specific to cast members.
It includes the characters they played in the movie and their picture URL.
""... |
class CastMember(Person):
'''Cast member model for cast members in a movie.
This model extends the Person model to include additional information specific to cast members.
It includes the characters they played in the movie and their picture URL.
'''
@classmethod
def from_cast(cls, data: dict):... | 4 | 1 | 8 | 0 | 8 | 1 | 1 | 0.33 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 89 | 28 | 3 | 21 | 7 | 17 | 7 | 8 | 6 | 5 | 1 | 6 | 0 | 2 |
325,928 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.InfoEpisode | from pydantic import BaseModel, field_validator
from typing import Optional, List, Dict, Tuple, Union
class InfoEpisode(BaseModel):
season_n: Optional[int] = None
episode_n: Optional[int] = None
series_imdbId: Optional[str] = None
series_title: Optional[str] = None
series_title_localized: Optional[... |
class InfoEpisode(BaseModel):
def __str__(self):
pass | 2 | 0 | 5 | 0 | 4 | 1 | 3 | 0.1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 83 | 12 | 1 | 10 | 9 | 8 | 1 | 10 | 9 | 8 | 3 | 5 | 0 | 3 |
325,929 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.InfoSeries | from typing import Optional, List, Dict, Tuple, Union
from pydantic import BaseModel, field_validator
class InfoSeries(BaseModel):
display_years: List[str] = []
display_seasons: List[str] = []
@field_validator('display_years', mode='before')
def filter_years(cls, value):
if value is None:
... |
class InfoSeries(BaseModel):
@field_validator('display_years', mode='before')
def filter_years(cls, value):
pass
def __str__(self):
pass | 4 | 0 | 4 | 0 | 4 | 0 | 3 | 0.17 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 84 | 14 | 2 | 12 | 6 | 8 | 2 | 9 | 5 | 6 | 3 | 5 | 1 | 5 |
325,930 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.MovieBriefInfo | from typing import Optional, List, Dict, Tuple, Union
from pydantic import BaseModel, field_validator
class MovieBriefInfo(SeriesMixin, BaseModel):
"""
MovieBriefInfo model for search results and cast members.
This model is used to represent a movie in search results and cast members.
It contains basic... |
class MovieBriefInfo(SeriesMixin, BaseModel):
'''
MovieBriefInfo model for search results and cast members.
This model is used to represent a movie in search results and cast members.
It contains basic information about a movie such as title, id, imdb_id, imdbId, url, cover_url, year and kind.
It c... | 5 | 1 | 12 | 0 | 12 | 0 | 2 | 0.27 | 2 | 2 | 0 | 0 | 0 | 0 | 2 | 86 | 47 | 3 | 37 | 10 | 32 | 10 | 15 | 8 | 12 | 2 | 5 | 0 | 3 |
325,931 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.MovieDetail | from typing import Optional, List, Dict, Tuple, Union
from pydantic import BaseModel, field_validator
class MovieDetail(SeriesMixin, BaseModel):
"""MovieDetail model for detailed information about a movie.
This model contains all the information about a movie such as title, id, imdb_id, imdbId, url, cover_url,... |
class MovieDetail(SeriesMixin, BaseModel):
'''MovieDetail model for detailed information about a movie.
This model contains all the information about a movie such as title, id, imdb_id, imdbId, url, cover_url, plot, release_date, languages, certificates, directors, stars,
year, duration, country_codes, rat... | 4 | 1 | 3 | 0 | 3 | 0 | 2 | 0.2 | 2 | 0 | 0 | 2 | 2 | 0 | 2 | 86 | 59 | 3 | 49 | 41 | 45 | 10 | 48 | 40 | 45 | 2 | 5 | 1 | 3 |
325,932 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.Person | from typing import Optional, List, Dict, Tuple, Union
from pydantic import BaseModel, field_validator
class Person(BaseModel):
"""person model for directors, cast and search results.
This model is used to represent a person in the IMDb database.
It can be used for directors, cast members and search results... |
class Person(BaseModel):
'''person model for directors, cast and search results.
This model is used to represent a person in the IMDb database.
It can be used for directors, cast members and search results.
It contains the basic information about a person such as name, id, imdb_id, imdbId, url and job.... | 10 | 1 | 8 | 0 | 8 | 1 | 1 | 0.24 | 1 | 2 | 0 | 1 | 1 | 0 | 5 | 87 | 60 | 6 | 49 | 11 | 39 | 12 | 17 | 7 | 11 | 1 | 5 | 0 | 5 |
325,933 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.PersonDetail | from typing import Optional, List, Dict, Tuple, Union
from pydantic import BaseModel, field_validator
class PersonDetail(BaseModel):
"""
PersonDetail model for detailed information about a person.
This model contains all the information about a person such as id, imdb_id, imdbId, name, url, knownfor, image... |
class PersonDetail(BaseModel):
'''
PersonDetail model for detailed information about a person.
This model contains all the information about a person such as id, imdb_id, imdbId, name, url, knownfor, image_url, bio, height, primary_profession,
birth_date, birth_place, death_date, death_place, jobs, cre... | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.38 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 83 | 29 | 3 | 21 | 15 | 19 | 8 | 21 | 15 | 19 | 1 | 5 | 0 | 1 |
325,934 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.SearchResult | from typing import Optional, List, Dict, Tuple, Union
from pydantic import BaseModel, field_validator
class SearchResult(BaseModel):
"""
SearchResult model for search results.
This model contains the results of a search query, including a list of titles and names.
It is used to represent the results of... |
class SearchResult(BaseModel):
'''
SearchResult model for search results.
This model contains the results of a search query, including a list of titles and names.
It is used to represent the results of a search query for movies and people.
It includes a list of MovieBriefInfo objects for titles and... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 10 | 1 | 3 | 3 | 2 | 6 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
325,935 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.SeasonEpisode | from imdbinfo.transformers import _release_date
from typing import Optional, List, Dict, Tuple, Union
from pydantic import BaseModel, field_validator
class SeasonEpisode(BaseModel):
id: str
imdbId: str
imdb_id: str
title: str
season: int
episode: int
plot: str
image_url: Optional[str] =... |
class SeasonEpisode(BaseModel):
@classmethod
def from_episode_data(cls, data: dict) -> 'SeasonEpisode':
'''
Create a SeasonEpisode instance from episode data dictionary.
'''
pass
def __str__(self):
pass | 4 | 1 | 11 | 0 | 9 | 2 | 1 | 0.12 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 84 | 38 | 2 | 33 | 10 | 29 | 4 | 18 | 9 | 15 | 1 | 5 | 0 | 2 |
325,936 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.SeasonEpisodesList | from pydantic import BaseModel, field_validator
from typing import Optional, List, Dict, Tuple, Union
class SeasonEpisodesList(BaseModel):
"""
EpisodesList model for a list of episodes.
This model contains a list of EpisodeInfo objects representing the episodes of a series.
It can be used to represent ... |
class SeasonEpisodesList(BaseModel):
'''
EpisodesList model for a list of episodes.
This model contains a list of EpisodeInfo objects representing the episodes of a series.
It can be used to represent the episodes of a series in a specific season.
'''
@property
def count(self) -> int:
... | 6 | 2 | 3 | 0 | 2 | 1 | 1 | 0.71 | 1 | 1 | 0 | 0 | 4 | 0 | 4 | 86 | 36 | 5 | 21 | 11 | 15 | 15 | 16 | 10 | 11 | 1 | 5 | 0 | 4 |
325,937 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.SeriesMixin | class SeriesMixin:
def is_series(self) -> bool:
"""
Check if this movie title is a series, the main title of a series.
If True, it means that this is a series, not a movie, not an episode, but the main reference for the series itself, and series details can be found in the self.info_series ... | class SeriesMixin:
def is_series(self) -> bool:
'''
Check if this movie title is a series, the main title of a series.
If True, it means that this is a series, not a movie, not an episode, but the main reference for the series itself, and series details can be found in the self.info_series ... | 3 | 2 | 6 | 0 | 2 | 4 | 1 | 1.6 | 0 | 1 | 0 | 3 | 2 | 0 | 2 | 2 | 14 | 1 | 5 | 3 | 2 | 8 | 5 | 3 | 2 | 1 | 0 | 0 | 2 |
325,938 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.TvEpisodeDetail | from typing import Optional, List, Dict, Tuple, Union
class TvEpisodeDetail(MovieDetail):
info_episode: Optional[InfoEpisode] = None |
class TvEpisodeDetail(MovieDetail):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 2 | 0 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
325,939 | tveronesi/imdbinfo | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/tveronesi_imdbinfo/imdbinfo/models.py | imdbinfo.models.TvSeriesDetail | from typing import Optional, List, Dict, Tuple, Union
class TvSeriesDetail(MovieDetail):
info_series: Optional[InfoSeries] = None |
class TvSeriesDetail(MovieDetail):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 4 | 0 | 4 | 2 | 3 | 1 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
325,940 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/Dremio.py | dremio.Dremio.Dremio | from ._mixins import BaseClass, _MixinCatalog, _MixinSQL, _MixinQuery, _MixinDataset, _MixinTable, _MixinFolder, _MixinFlight, _MixinReflection, _MixinUser, _MixinRole
import logging
from dremio.models.flight_config import FlightConfigDict
class Dremio(_MixinRole, _MixinUser, _MixinTable, _MixinQuery, _MixinFlight, _M... |
class Dremio(_MixinRole, _MixinUser, _MixinTable, _MixinQuery, _MixinFlight, _MixinFolder, _MixinDataset, _MixinReflection, _MixinSQL, _MixinCatalog, BaseClass):
'''This class is the main class of the Dremio connector. [learn more](https://github.com/continental/pydremio/blob/master/docs/DREMIO_METHODS.md)'''
... | 3 | 2 | 71 | 6 | 43 | 26 | 10 | 0.47 | 11 | 5 | 1 | 0 | 0 | 0 | 1 | 76 | 87 | 7 | 57 | 33 | 28 | 27 | 32 | 5 | 28 | 10 | 7 | 1 | 10 |
325,941 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_catalog.py | dremio._mixins._catalog._MixinCatalog | from ..utils.converter import to_dict
import copy
from . import BaseClass
import requests
class _MixinCatalog(BaseClass):
def get_catalog_by_id(self, id: Union[UUID, str]) -> CatalogObject:
"""Get the catalog by id.
Parameters:
id: catalog uuid.
Returns:
CatalogObject... |
class _MixinCatalog(BaseClass):
def get_catalog_by_id(self, id: Union[UUID, str]) -> CatalogObject:
'''Get the catalog by id.
Parameters:
id: catalog uuid.
Returns:
CatalogObject: The catalog.
'''
pass
def get_catalog_by_path(self, path: Union[list[... | 8 | 7 | 13 | 1 | 8 | 4 | 2 | 0.55 | 1 | 5 | 0 | 8 | 7 | 1 | 7 | 7 | 98 | 15 | 56 | 27 | 42 | 31 | 50 | 21 | 42 | 3 | 1 | 1 | 14 |
325,942 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_dataset.py | dremio._mixins._dataset._MixinDataset | from ..utils.converter import to_dict, path_to_list, path_to_dotted
from ._catalog import _MixinCatalog
from ._sql import _MixinSQL
from . import BaseClass
import requests
import logging
from ._reflection import _MixinReflection
class _MixinDataset(_MixinReflection, _MixinSQL, _MixinCatalog, BaseClass):
def get_d... |
class _MixinDataset(_MixinReflection, _MixinSQL, _MixinCatalog, BaseClass):
def get_dataset(self, path: Union[list[str], str, None]=None, *, id: Union[UUID, str, None]=None) -> Dataset:
'''Get the dataset. [learn more](https://github.com/continental/pydremio/blob/master/docs/DATASET.md)
Could rai... | 16 | 15 | 19 | 1 | 13 | 5 | 3 | 0.39 | 4 | 8 | 0 | 6 | 15 | 0 | 15 | 40 | 308 | 32 | 200 | 93 | 149 | 78 | 141 | 57 | 125 | 7 | 3 | 3 | 39 |
325,943 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_flight.py | dremio._mixins._flight.Flight | from pyarrow.flight import FlightClient, FlightStreamReader, FlightCallOptions, FlightDescriptor, FlightUnavailableError, FlightInfo
class Flight:
"""Namespace: Collection of methods related to arrow flight."""
def __init__(self, mixin: _MixinFlight):
self.query = mixin._flight_query
self.quer... |
class Flight:
'''Namespace: Collection of methods related to arrow flight.'''
def __init__(self, mixin: _MixinFlight):
pass
@property
def client(self) -> FlightClient:
'''Shortcut for get_client() with default config
Returns:
FlightClient: [pyarrow.flight.FlightClie... | 6 | 3 | 6 | 0 | 4 | 2 | 1 | 0.38 | 0 | 1 | 1 | 0 | 3 | 8 | 3 | 3 | 26 | 4 | 16 | 14 | 10 | 6 | 14 | 12 | 10 | 1 | 0 | 0 | 3 |
325,944 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_flight.py | dremio._mixins._flight._MixinFlight | import copy
from ._dataset import _MixinDataset
from pyarrow.flight import FlightClient, FlightStreamReader, FlightCallOptions, FlightDescriptor, FlightUnavailableError, FlightInfo
from . import BaseClass
import pyarrow
import logging
class _MixinFlight(_MixinDataset, BaseClass):
@property
def flight_url(self... |
class _MixinFlight(_MixinDataset, BaseClass):
@property
def flight_url(self):
pass
def _flight_client(self, flight_config: Optional[FlightConfig]=None) -> FlightClient:
'''Get the pre-configured pyarrow.flight.FlightClient with optional configuration.
Args:
flight_conf... | 11 | 6 | 22 | 2 | 15 | 6 | 2 | 0.39 | 2 | 4 | 1 | 4 | 8 | 1 | 8 | 48 | 185 | 22 | 119 | 43 | 83 | 46 | 55 | 14 | 46 | 6 | 4 | 2 | 18 |
325,945 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_folder.py | dremio._mixins._folder._MixinFolder | from ..models.utils import cast
from ..utils.decorators import experimental
from ..models import Folder, NewFolder, Dataset, DremioError
from uuid import UUID
from . import BaseClass
from ._dataset import _MixinDataset
from ..utils.converter import path_to_list, path_to_dotted
from ._catalog import _MixinCatalog
import... |
class _MixinFolder(_MixinDataset, _MixinCatalog, BaseClass):
def get_folder(self, path: Union[list[str], str, None]=None, *, id: Union[UUID, str, None]=None) -> Folder:
'''Get the folder. [learn more](https://github.com/continental/pydremio/blob/master/docs/FOLDER.md)
Could raise a DremioError if... | 14 | 8 | 47 | 2 | 37 | 8 | 7 | 0.23 | 3 | 13 | 3 | 2 | 9 | 0 | 9 | 49 | 432 | 29 | 339 | 93 | 282 | 77 | 179 | 41 | 169 | 23 | 4 | 6 | 61 |
325,946 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_query.py | dremio._mixins._query._MixinQuery | from ._dataset import _MixinDataset
from ._sql import _MixinSQL
from ._flight import _MixinFlight
import pyarrow as pa
import logging
from typing import overload
from . import BaseClass
class _MixinQuery(_MixinFlight, _MixinDataset, _MixinSQL, BaseClass):
"""This is a abstraction of arrow flight and sql for easer ... |
class _MixinQuery(_MixinFlight, _MixinDataset, _MixinSQL, BaseClass):
'''This is a abstraction of arrow flight and sql for easer usability.'''
@overload
def query(self, sql_request: Union[str, SQLRequest], method: Literal['arrow']='arrow') -> JobResult:
'''Query Dremio data with SQL.
Args:
... | 6 | 3 | 25 | 2 | 16 | 7 | 2 | 0.42 | 4 | 4 | 0 | 3 | 3 | 0 | 3 | 51 | 82 | 8 | 52 | 29 | 26 | 22 | 16 | 6 | 12 | 5 | 5 | 2 | 7 |
325,947 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_reflection.py | dremio._mixins._reflection._MixinReflection | import requests
from ._catalog import _MixinCatalog
from typing import Any
from time import sleep
import logging
from . import BaseClass
from ..utils.converter import to_dict
class _MixinReflection(_MixinCatalog, BaseClass):
def get_reflections(self) -> list[Reflection]:
"""Get all reflections.
R... |
class _MixinReflection(_MixinCatalog, BaseClass):
def get_reflections(self) -> list[Reflection]:
'''Get all reflections.
Returns:
list[Reflection]: reflections.
'''
pass
def get_reflections(self) -> list[Reflection]:
'''Get one reflection.
Parameters:... | 7 | 4 | 21 | 1 | 16 | 4 | 3 | 0.26 | 2 | 6 | 0 | 3 | 6 | 1 | 6 | 13 | 135 | 14 | 96 | 30 | 85 | 25 | 69 | 26 | 62 | 12 | 2 | 5 | 19 |
325,948 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_role.py | dremio._mixins._role._MixinRole | from ..utils.converter import clear_at
from . import BaseClass
import requests
from ._catalog import _MixinCatalog
from typing import Any
class _MixinRole(_MixinCatalog, BaseClass):
def get_role(self, id: Union[UUID, str]) -> Role:
"""Get the role.
Parameters:
id: role uuid.
Re... |
class _MixinRole(_MixinCatalog, BaseClass):
def get_role(self, id: Union[UUID, str]) -> Role:
'''Get the role.
Parameters:
id: role uuid.
Returns:
Role: role object.
'''
pass
def get_role_by_name(self, name: str) -> Role:
'''Get the role by ... | 5 | 4 | 17 | 2 | 8 | 7 | 2 | 0.79 | 2 | 5 | 0 | 2 | 4 | 1 | 4 | 11 | 71 | 12 | 33 | 19 | 23 | 26 | 28 | 14 | 23 | 3 | 2 | 1 | 7 |
325,949 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_sql.py | dremio._mixins._sql.HTTP | class HTTP:
"""Namespace: Collection of methods related to data fetching via http."""
def __init__(self, mixin: _MixinSQL):
self.query = mixin._http_query_result
self.start_job = mixin._http_start_job
self.query_dataset = mixin._http_dataset_result | class HTTP:
'''Namespace: Collection of methods related to data fetching via http.'''
def __init__(self, mixin: _MixinSQL):
pass | 2 | 1 | 4 | 0 | 4 | 0 | 1 | 0.2 | 0 | 1 | 1 | 0 | 1 | 3 | 1 | 1 | 7 | 1 | 5 | 5 | 3 | 1 | 5 | 5 | 3 | 1 | 0 | 0 | 1 |
325,950 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_sql.py | dremio._mixins._sql._MixinSQL | from time import sleep
from typing import overload
from ..models.jobs import SQLType
from ..utils.multithreading import ThreadWithReturnValue as Thread
import requests
from ._catalog import _MixinCatalog
from ..utils.converter import to_dict, path_to_dotted
from . import BaseClass
class _MixinSQL(_MixinCatalog, BaseCl... |
class _MixinSQL(_MixinCatalog, BaseClass):
def _http_query(self, sql_request: Union[str, SQLRequest]) -> UUID:
'''Execute SQL query on Dremio.
Please use `Dremio.start_job(...)` if you simply run a sql query.
This Method is for low level implementation.
Args:
sql_reques... | 16 | 11 | 23 | 2 | 14 | 8 | 3 | 0.54 | 2 | 12 | 2 | 5 | 12 | 1 | 12 | 19 | 289 | 34 | 166 | 85 | 110 | 90 | 102 | 41 | 89 | 6 | 2 | 2 | 30 |
325,951 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/_mixins/_user.py | dremio._mixins._user._MixinUser | from typing import Any
import requests
from ..utils.converter import clear_at
from . import BaseClass
from dataclasses import asdict
from ._catalog import _MixinCatalog
class _MixinUser(_MixinCatalog, BaseClass):
def get_users(self) -> list[User]:
"""Get the users.
Returns:
list[User]: ... |
class _MixinUser(_MixinCatalog, BaseClass):
def get_users(self) -> list[User]:
'''Get the users.
Returns:
list[User]: The users.
'''
pass
def get_users(self) -> list[User]:
'''Get the user.
Parameters:
id: user uuid.
Returns:
... | 7 | 6 | 14 | 2 | 6 | 6 | 1 | 1.03 | 2 | 5 | 0 | 2 | 6 | 1 | 6 | 13 | 88 | 17 | 35 | 21 | 28 | 36 | 35 | 21 | 28 | 2 | 2 | 1 | 7 |
325,952 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/dremio.py | dremio.dremio.Dremio | import logging
from dremio.models.flight_config import FlightConfigDict
from ._mixins import BaseClass, _MixinCatalog, _MixinSQL, _MixinQuery, _MixinDataset, _MixinTable, _MixinFolder, _MixinFlight, _MixinReflection, _MixinUser, _MixinRole
class Dremio(_MixinRole, _MixinUser, _MixinTable, _MixinQuery, _MixinFlight, _M... |
class Dremio(_MixinRole, _MixinUser, _MixinTable, _MixinQuery, _MixinFlight, _MixinFolder, _MixinDataset, _MixinReflection, _MixinSQL, _MixinCatalog, BaseClass):
'''This class is the main class of the Dremio connector. [learn more](https://github.com/continental/pydremio/blob/master/docs/DREMIO_METHODS.md)'''
... | 3 | 2 | 71 | 6 | 43 | 26 | 10 | 0.47 | 11 | 5 | 1 | 0 | 0 | 0 | 1 | 76 | 87 | 7 | 57 | 33 | 28 | 27 | 32 | 5 | 28 | 10 | 7 | 1 | 10 |
325,953 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/exceptions.py | dremio.exceptions.AuthError | class AuthError(Exception):
pass | class AuthError(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
325,954 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/exceptions.py | dremio.exceptions.DremioConnectorError | from dataclasses import dataclass
from typing import Optional, Any
@dataclass
class DremioConnectorError(Exception):
errorMessage: str
moreInfo: Optional[str] = None
def __post_init__(self):
super().__init__(f'{self.errorMessage}') | @dataclass
class DremioConnectorError(Exception):
def __post_init__(self):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 11 | 6 | 1 | 5 | 3 | 3 | 0 | 5 | 3 | 3 | 1 | 3 | 0 | 1 |
325,955 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/exceptions.py | dremio.exceptions.DremioError | from dataclasses import dataclass
from typing import Optional, Any
@dataclass
class DremioError(Exception):
errorMessage: str
moreInfo: Optional[str] = None
status_code: Optional[int] = None
context: Optional[Any] = None
code: Optional[Any] = None
details: Optional[Any] = None
stackTrace: O... | @dataclass
class DremioError(Exception):
def __post_init__(self):
pass
@staticmethod
def dict_factory(x):
pass | 5 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 12 | 16 | 2 | 14 | 11 | 10 | 0 | 13 | 10 | 10 | 1 | 3 | 0 | 2 |
325,956 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/Folder.py | dremio.models.Folder.Folder | from dremio.utils.decorators import experimental
from dataclasses import dataclass
from ..exceptions import DremioConnectorError
from ..utils.converter import path_to_dotted
from typing import Optional, Literal, Union
from .accesscontrol import Owner, AccessControlList, Privilege
from uuid import UUID
from typing_exten... | @dataclass
class Folder(DremioAccessible, DremioObject):
def __iter__(self):
pass
def __next__(self):
pass
def __getitem__(self, key: Union[int, slice]) -> list[CatalogElement]:
pass
def __str__(self) -> str:
pass
def __repr__(self) -> str:
pass
@prop... | 15 | 5 | 10 | 0 | 8 | 2 | 2 | 0.2 | 2 | 11 | 2 | 0 | 11 | 0 | 11 | 17 | 132 | 16 | 97 | 34 | 70 | 19 | 58 | 18 | 46 | 4 | 2 | 1 | 23 |
325,957 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/accesscontrol.py | dremio.models.accesscontrol.AccessControl | from dataclasses import dataclass
from uuid import UUID
@dataclass
class AccessControl:
id: UUID
permissions: list[Privilege] | @dataclass
class AccessControl:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
325,958 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/accesscontrol.py | dremio.models.accesscontrol.AccessControlList | from typing import Literal, Optional
from uuid import UUID
from dataclasses import dataclass
@dataclass
class AccessControlList:
users: Optional[list[AccessControl]] = None
roles: Optional[list[AccessControl]] = None
def __post_init__(self):
if self.users is None:
self.users = []
... | @dataclass
class AccessControlList:
def __post_init__(self):
pass
def set_access_for_user(self, user_id: UUID, privileges: list[Privilege]):
pass
def add_access_for_user(self, user_id: UUID, privileges: list[Privilege]):
pass
def remove_access_for_user(self, user_id: UUID):
... | 9 | 0 | 7 | 0 | 7 | 0 | 4 | 0 | 0 | 3 | 1 | 0 | 7 | 0 | 7 | 7 | 61 | 7 | 54 | 16 | 46 | 0 | 54 | 16 | 46 | 4 | 0 | 2 | 27 |
325,959 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/accesscontrol.py | dremio.models.accesscontrol.CurrentUser | from dataclasses import dataclass
@dataclass
class CurrentUser:
token: str
userName: str
firstName: str
lastName: str
expires: int
email: str
userId: str
admin: bool
clusterId: str
clusterCreatedAt: int
version: str
permissions: Permissions
userCreatedAt: int | @dataclass
class CurrentUser:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0 | 14 | 1 | 13 | 0 | 14 | 1 | 13 | 0 | 0 | 0 | 0 |
325,960 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/accesscontrol.py | dremio.models.accesscontrol.Owner | from dataclasses import dataclass
from uuid import UUID
@dataclass
class Owner:
ownerId: UUID
ownerType: str | @dataclass
class Owner:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
325,961 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/accesscontrol.py | dremio.models.accesscontrol.Permissions | from dataclasses import dataclass
@dataclass
class Permissions:
canUploadProfiles: bool
canDownloadProfiles: bool
canEmailForSupport: bool
canChatForSupport: bool
canViewAllJobs: bool
canCreateUser: bool
canCreateRole: bool
canCreateSource: bool
canUploadFile: bool
canManageNode... | @dataclass
class Permissions:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 0 | 15 | 1 | 14 | 0 | 15 | 1 | 14 | 0 | 0 | 0 | 0 |
325,962 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/accesscontrol.py | dremio.models.accesscontrol.Role | from dataclasses import dataclass
from typing import Literal, Optional
from uuid import UUID
@dataclass
class Role:
id: UUID
name: str
type: Literal['INTERNAL', 'EXTERNAL', 'SYSTEM']
roles: Optional[list[dict[str, str]]] = None
memberCount: Optional[int] = None
description: Optional[str] = None | @dataclass
class Role:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 4 | 6 | 0 | 7 | 4 | 6 | 0 | 0 | 0 | 0 |
325,963 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/accesscontrol.py | dremio.models.accesscontrol.User | from typing import Literal, Optional
from uuid import UUID
from dataclasses import dataclass
@dataclass
class User:
id: UUID
name: str
firstName: str
lastName: str
email: str
tag: str
active: bool
type: Optional[Literal['EnterpriseUser', 'User']] = None
roles: Optional[list[Role]] =... | @dataclass
class User:
@staticmethod
def dict_factory(x):
pass | 4 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 16 | 1 | 15 | 7 | 12 | 0 | 14 | 6 | 12 | 2 | 0 | 0 | 2 |
325,964 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/backup.py | dremio.models.backup.Backup | from typing import Any, Literal, Optional, Union
from .accesscontrol import Role, User
import json
from ..utils.converter import clear_at, to_dict
from .. import dremio
from dataclasses import dataclass
@dataclass
class Backup:
tree: dict[str, Any]
users: list[User]
roles: list[Role]
dependencies: dict... | @dataclass
class Backup:
@staticmethod
def load(file_path: str) -> 'Backup':
pass
def __init__(self, tree: dict[str, Any]={}, users: list[User]=[], roles: list[Role]=[], dependencies: dict[str, Dependency]={}, *, data: Union[dict, Any]=None):
pass
def _backup_from_dict(self, data: dic... | 10 | 0 | 12 | 0 | 11 | 0 | 3 | 0.03 | 0 | 10 | 3 | 0 | 6 | 0 | 7 | 7 | 99 | 10 | 86 | 25 | 67 | 3 | 68 | 12 | 60 | 8 | 0 | 4 | 23 |
325,965 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/backup.py | dremio.models.backup.Dependency | from dataclasses import dataclass
import json
from ..utils.converter import clear_at, to_dict
@dataclass
class Dependency:
needed_by: list[str]
resource: dict
def as_dict(self) -> dict:
return to_dict(self)
def json(self) -> str:
return json.dumps(self.as_dict(), indent=2) | @dataclass
class Dependency:
def as_dict(self) -> dict:
pass
def json(self) -> str:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0.29 | 0 | 2 | 0 | 0 | 2 | 0 | 2 | 2 | 9 | 2 | 7 | 3 | 4 | 2 | 7 | 3 | 4 | 1 | 0 | 0 | 2 |
325,966 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/backup.py | dremio.models.backup.Failed | from dataclasses import dataclass
@dataclass
class Failed:
reason: ReasonToFail
data: RestoreReportObject | @dataclass
class Failed:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
325,967 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/backup.py | dremio.models.backup.RestoreReport | from typing import Any, Literal, Optional, Union
from ..utils.converter import clear_at, to_dict
from .accesscontrol import Role, User
import json
from dataclasses import dataclass
@dataclass
class RestoreReport:
missing_dependencies: dict[str, list[str]]
successful: list[RestoreReportObject]
already_exist... | @dataclass
class RestoreReport:
def __init__(self):
pass
def add_missing_dependency(self, node_path: str, dependency_path: str):
pass
def add_successful(self, path: list[str], new_id: str, old_id: str='', old_path: Union[list[str], None]=None):
pass
def add_already_exists(sel... | 10 | 0 | 6 | 0 | 6 | 0 | 1 | 0.02 | 0 | 6 | 2 | 0 | 8 | 0 | 8 | 8 | 61 | 8 | 53 | 28 | 30 | 1 | 35 | 13 | 26 | 2 | 0 | 2 | 10 |
325,968 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/backup.py | dremio.models.backup.RestoreReportObject | from dataclasses import dataclass
from typing import Any, Literal, Optional, Union
@dataclass
class RestoreReportObject:
path: list[str]
old_id: str
new_id: str
old_path: Optional[list[str]] = None | @dataclass
class RestoreReportObject:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 2 | 4 | 0 | 5 | 2 | 4 | 0 | 0 | 0 | 0 |
325,969 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/custom_objects.py | dremio.models.custom_objects.CatalogElement | from typing import Optional, Any, Literal, NewType, Union
from uuid import UUID
from datetime import datetime
from dataclasses import dataclass, field
@dataclass
class CatalogElement:
id: UUID
path: list[str]
type: Literal['CONTAINER', 'DATASET']
tag: Optional[str] = None
createdAt: Optional[dateti... | @dataclass
class CatalogElement:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 5 | 9 | 1 | 8 | 5 | 7 | 0 | 0 | 0 | 0 |
325,970 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/custom_objects.py | dremio.models.custom_objects.DatasetFormat | from typing import Optional, Any, Literal, NewType, Union
from dataclasses import dataclass, field
@dataclass
class DatasetFormat:
type: Literal['Text', 'JSON', 'Parquet', 'Excel', 'XLS', 'Delta', 'Iceberg']
fieldDelimiter: Optional[str] = None
lineDelimiter: Optional[str] = None
quote: Optional[str] =... | @dataclass
class DatasetFormat:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 11 | 10 | 10 | 0 | 11 | 10 | 10 | 0 | 0 | 0 | 0 |
325,971 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/custom_objects.py | dremio.models.custom_objects.DremioQuery | from typing import Optional, Any, Literal, NewType, Union
from dataclasses import dataclass, field
@dataclass
class DremioQuery:
from_condition: str
select_condition: str
limit: int
offset: int
sort_order: Literal['asc', 'desc']
where_condition: Optional[Filters]
jobId: Optional[str]
so... | @dataclass
class DremioQuery:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0 | 9 | 1 | 8 | 0 | 9 | 1 | 8 | 0 | 0 | 0 | 0 |
325,972 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/custom_objects.py | dremio.models.custom_objects.Filter | from dataclasses import dataclass, field
from typing import Optional, Any, Literal, NewType, Union
@dataclass
class Filter:
condition: Literal['LIKE', '=', 'IN']
field: str
value: str
negation: Optional[bool] | @dataclass
class Filter:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 0 | 0 | 0 |
325,973 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/custom_objects.py | dremio.models.custom_objects.Filters | from dataclasses import dataclass, field
from typing import Optional, Any, Literal, NewType, Union
@dataclass
class Filters:
multiple: bool
filters: list[Filter]
operator: Optional[Literal['AND', 'OR']] | @dataclass
class Filters:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
325,974 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dataset.py | dremio.models.dataset.Columns | class Columns:
__fields: list[Field]
def __init__(self, fields: list[Field]):
self.__fields = fields
def __getattr__(self, name: str) -> str:
for f in self.__fields:
if f.name == name:
return f.name
raise AttributeError(f'{name} is not an attribute of Fi... | class Columns:
def __init__(self, fields: list[Field]):
pass
def __getattr__(self, name: str) -> str:
pass
def __getitem__(self, key: str) -> Field:
pass
def __str__(self) -> str:
pass | 5 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 0 | 5 | 1 | 0 | 4 | 0 | 4 | 4 | 20 | 4 | 16 | 7 | 11 | 0 | 16 | 7 | 11 | 3 | 0 | 2 | 8 |
325,975 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dataset.py | dremio.models.dataset.Dataset | import polars as pl
from ..exceptions import DremioConnectorError
from .accesscontrol import Owner, AccessControlList
from time import sleep
import pandas as pd
from datetime import datetime
from dataclasses import InitVar, dataclass, field
from .dremio_utils import Wiki
from ..utils.converter import path_to_dotted
fro... | @dataclass
class Dataset(DremioAccessible, DremioObject):
'''The Dremio dataset object is a representation of a dataset in Dremio and contains all needed meta data.
To use the data behind this dataset run it with `.run()`.
It's necessary to commit the dataset after changing any values.
```python
dat... | 27 | 17 | 12 | 1 | 9 | 3 | 2 | 0.43 | 2 | 14 | 8 | 0 | 21 | 1 | 21 | 27 | 333 | 41 | 205 | 62 | 165 | 89 | 124 | 41 | 102 | 9 | 2 | 3 | 46 |
325,976 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dataset.py | dremio.models.dataset.Field | from dataclasses import InitVar, dataclass, field
@dataclass
class Field:
name: str
type: TypeClass
def __str__(self) -> str:
return f'{self.name} ({self.type.name})' | @dataclass
class Field:
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,977 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dataset.py | dremio.models.dataset.TypeClass | from dataclasses import InitVar, dataclass, field
from typing import Any, Iterable, Optional, Literal, Type, Union, List, cast
@dataclass
class TypeClass:
name: str
precision: Optional[int] = None
scale: Optional[int] = None | @dataclass
class TypeClass:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 3 | 3 | 0 | 4 | 3 | 3 | 0 | 0 | 0 | 0 |
325,978 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_objects.py | dremio.models.dremio_objects.Function | from dataclasses import dataclass, field
from typing import Optional, Literal, Union
from datetime import datetime
from uuid import UUID
@dataclass
class Function:
id: UUID
path: list[str]
tag: str
type: Literal['CONTAINER']
createdAt: datetime | @dataclass
class Function:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 0 | 0 | 0 |
325,979 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_objects.py | dremio.models.dremio_objects.Home | from .custom_objects import CatalogElement
from dataclasses import dataclass, field
from typing import Optional, Literal, Union
from uuid import UUID
@dataclass
class Home:
entityType: Literal['home']
id: UUID
name: str
tag: str
children: Optional[list[CatalogElement]] = None | @dataclass
class Home:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 2 | 5 | 0 | 6 | 2 | 5 | 0 | 0 | 0 | 0 |
325,980 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_objects.py | dremio.models.dremio_objects.Source | from dataclasses import dataclass, field
from .dremio_utils import Config, MetadataPolicy
from typing import Optional, Literal, Union
from datetime import datetime
from .custom_objects import CatalogElement
from .accesscontrol import Owner, AccessControlList, Privilege
from uuid import UUID
@dataclass
class Source:
... | @dataclass
class Source:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 0 | 20 | 7 | 19 | 0 | 20 | 7 | 19 | 0 | 0 | 0 | 0 |
325,981 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_objects.py | dremio.models.dremio_objects.Space | from .custom_objects import CatalogElement
from uuid import UUID
from dataclasses import dataclass, field
from datetime import datetime
from typing import Optional, Literal, Union
from .accesscontrol import Owner, AccessControlList, Privilege
@dataclass
class Space:
entityType: Literal['space']
id: UUID
na... | @dataclass
class Space:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 5 | 9 | 0 | 10 | 5 | 9 | 0 | 0 | 0 | 0 |
325,982 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_utils.py | dremio.models.dremio_utils.Config | from dataclasses import dataclass, field
@dataclass
class Config:
accessKey: str
secure: bool
externalBucketlist: list[str]
rootPath: str
enableAsync: bool
compatibilityMode: bool
isCachingEnabled: bool
maxCacheSpacePct: int
requesterPays: bool
enableFileStatusCheck: bool
de... | @dataclass
class Config:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0 | 14 | 1 | 13 | 0 | 14 | 1 | 13 | 0 | 0 | 0 | 0 |
325,983 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_utils.py | dremio.models.dremio_utils.DatasetAccelerationRefreshPolicy | from dataclasses import dataclass, field
from typing import Optional, Any, Literal, Union
@dataclass
class DatasetAccelerationRefreshPolicy:
refreshPeriodMs: int
gracePeriodMs: int
method: Literal['FULL', 'INCREMENTAL']
accelerationNeverExpire: bool
accelerationNeverRefresh: bool
refreshField: ... | @dataclass
class DatasetAccelerationRefreshPolicy:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 2 | 6 | 0 | 7 | 2 | 6 | 0 | 0 | 0 | 0 |
325,984 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_utils.py | dremio.models.dremio_utils.File | from uuid import UUID
from typing import Optional, Any, Literal, Union
from dataclasses import dataclass, field
@dataclass
class File:
entityType: Literal['file']
id: UUID
path: list[str] | @dataclass
class File:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
325,985 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_utils.py | dremio.models.dremio_utils.JobId | from uuid import UUID
from dataclasses import dataclass, field
@dataclass
class JobId:
id: UUID | @dataclass
class JobId:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
325,986 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_utils.py | dremio.models.dremio_utils.MetadataPolicy | from dataclasses import dataclass, field
from typing import Optional, Any, Literal, Union
@dataclass
class MetadataPolicy:
authTTLMs: int
namesRefreshMs: int
datasetRefreshAfterMs: int
datasetExpireAfterMs: int
datasetUpdateMode: Literal['PREFETCH', 'PREFETCH_QUERIED', 'INLINE']
deleteUnavailab... | @dataclass
class MetadataPolicy:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 1 | 7 | 0 | 8 | 1 | 7 | 0 | 0 | 0 | 0 |
325,987 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_utils.py | dremio.models.dremio_utils.State | from dataclasses import dataclass, field
from typing import Optional, Any, Literal, Union
@dataclass
class State:
status: Literal['good', 'bad', 'warn']
suggestedUserAction: str
messages: Optional[list[StatusMessage]] = None | @dataclass
class State:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 2 | 3 | 0 | 4 | 2 | 3 | 0 | 0 | 0 | 0 |
325,988 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_utils.py | dremio.models.dremio_utils.StatusMessage | from typing import Optional, Any, Literal, Union
from dataclasses import dataclass, field
@dataclass
class StatusMessage:
level = Literal['INFO', 'WARN', 'ERROR']
message: str | @dataclass
class StatusMessage:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 2 | 2 | 0 | 3 | 2 | 2 | 0 | 0 | 0 | 0 |
325,989 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_utils.py | dremio.models.dremio_utils.Tags | from dataclasses import dataclass, field
from typing import Optional, Any, Literal, Union
@dataclass
class Tags:
tags: list[str]
version: Union[str, int] | @dataclass
class Tags:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
325,990 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/dremio_utils.py | dremio.models.dremio_utils.Wiki | from uuid import UUID
from typing import Optional, Any, Literal, Union
from dataclasses import dataclass, field
@dataclass
class Wiki:
text: str
version: int = 0
_dataset_id: Union[UUID, None] = None
_dremio: Any = None
def __str__(self) -> str:
return self.text
def __repr__(self) -> ... | @dataclass
class Wiki:
def __str__(self) -> str:
pass
def __repr__(self) -> str:
pass
def commit(self) -> 'Wiki':
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 3 | 3 | 14 | 3 | 11 | 7 | 7 | 0 | 11 | 7 | 7 | 1 | 0 | 0 | 3 |
325,991 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/flight_config.py | dremio.models.flight_config.FlightConfig | from dataclasses import asdict, dataclass, field
import certifi
from typing import Any, Literal, Optional, TypedDict, overload
from ..utils.parser import cut_scheme
@dataclass
class FlightConfig:
"""This config is to configure arrow flight queries to Dremio.
Properties:
port (int): Port of the grpc endp... | @dataclass
class FlightConfig:
'''This config is to configure arrow flight queries to Dremio.
Properties:
port (int): Port of the grpc endpoint of Dremio. Default: 32010.
tls (bool): Enable to use TLS. If `https` set as protocol for dremio, it is it is likely enabled.
disable_certificate_verif... | 14 | 1 | 5 | 0 | 5 | 0 | 2 | 0.22 | 0 | 7 | 0 | 0 | 7 | 0 | 7 | 7 | 69 | 9 | 49 | 30 | 32 | 11 | 34 | 18 | 26 | 3 | 0 | 1 | 11 |
325,992 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/flight_config.py | dremio.models.flight_config.FlightConfigDict | from typing import Any, Literal, Optional, TypedDict, overload
class FlightConfigDict(TypedDict, total=False):
port: int
tls: bool
disable_certificate_verification: bool
allow_autoconfig: bool
path_to_certs: str
engine: str
headers: dict[str, Any] |
class FlightConfigDict(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 1 | 7 | 0 | 8 | 1 | 7 | 0 | 1 | 0 | 0 |
325,993 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/folder.py | dremio.models.folder.Folder | from dataclasses import dataclass
from dremio.utils.decorators import experimental
from .accesscontrol import Owner, AccessControlList, Privilege
from .baseclasses import DremioAccessible, DremioObject
from ..utils.converter import path_to_dotted
from ..exceptions import DremioConnectorError
from typing import Optional... | @dataclass
class Folder(DremioAccessible, DremioObject):
def __iter__(self):
pass
def __next__(self):
pass
def __getitem__(self, key: Union[int, slice]) -> list[CatalogElement]:
pass
def __str__(self) -> str:
pass
def __repr__(self) -> str:
pass
@prop... | 15 | 5 | 10 | 0 | 8 | 2 | 2 | 0.2 | 2 | 11 | 2 | 0 | 11 | 0 | 11 | 17 | 132 | 16 | 97 | 34 | 70 | 19 | 58 | 18 | 46 | 4 | 2 | 1 | 23 |
325,994 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/inputs.py | dremio.models.inputs.NewDataset | from .custom_objects import AccessControlList
from ..utils.converter import path_to_list
from typing import Optional, Any, Literal
from dataclasses import dataclass
@dataclass
class NewDataset:
path: list[str]
type: Literal['PHYSICAL_DATASET', 'VIRTUAL_DATASET']
sql: str
id: Optional[str] = None
ac... | @dataclass
class NewDataset:
def __post_init__(self):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 1 | 9 | 4 | 7 | 0 | 9 | 4 | 7 | 1 | 0 | 0 | 1 |
325,995 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/inputs.py | dremio.models.inputs.NewFolder | from ..utils.converter import path_to_list
from dataclasses import dataclass
from typing import Optional, Any, Literal
from .custom_objects import AccessControlList
@dataclass
class NewFolder:
path: list[str]
accessControlList: Optional[AccessControlList] = None
entityType: Literal['folder'] = 'folder'
... | @dataclass
class NewFolder:
def __post_init__(self):
pass | 3 | 0 | 4 | 0 | 3 | 1 | 2 | 0.14 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 9 | 1 | 7 | 4 | 5 | 1 | 7 | 4 | 5 | 2 | 0 | 1 | 2 |
325,996 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/inputs.py | dremio.models.inputs.NewSource | from .dremio_utils import MetadataPolicy
from typing import Optional, Any, Literal
from dataclasses import dataclass
@dataclass
class NewSource:
type: str
name: str
tag: Optional[str]
config: Optional[dict[str, Any]]
metadataPolicy: Optional[MetadataPolicy]
accelerationGracePeriodMs: Optional[i... | @dataclass
class NewSource:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 0 | 13 | 8 | 12 | 0 | 13 | 8 | 12 | 0 | 0 | 0 | 0 |
325,997 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/inputs.py | dremio.models.inputs.NewSpace | from typing import Optional, Any, Literal
from dataclasses import dataclass
from .custom_objects import AccessControlList
@dataclass
class NewSpace:
name: str
accessControlList: Optional[AccessControlList] = None
entityType: Literal['space'] = 'space' | @dataclass
class NewSpace:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 3 | 3 | 0 | 4 | 3 | 3 | 0 | 0 | 0 | 0 |
325,998 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/inputs.py | dremio.models.inputs.SQLRequest | from dataclasses import dataclass
from typing import Optional, Any, Literal
@dataclass
class SQLRequest:
sql: str
context: Optional[list[str]] = None | @dataclass
class SQLRequest:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 2 | 2 | 0 | 3 | 2 | 2 | 0 | 0 | 0 | 0 |
325,999 | continental/pydremio | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/continental_pydremio/src/dremio/models/jobs.py | dremio.models.jobs.Acceleration | from dataclasses import dataclass
@dataclass
class Acceleration:
reflectionRelationships: list[ReflectionRelationship] | @dataclass
class Acceleration:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.