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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15,700 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/engine_pb2_grpc.py | pulumi.runtime.proto.engine_pb2_grpc.Engine | from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import grpc
from . import engine_pb2 as pulumi_dot_engine__pb2
class Engine(object):
"""Engine is an auxiliary service offered to language and resource provider plugins. Its main purpose today is
to serve as a common logging endpoint, ... |
class Engine(object):
'''Engine is an auxiliary service offered to language and resource provider plugins. Its main purpose today is
to serve as a common logging endpoint, but it also serves as a state storage mechanism for language hosts
that can't store their own global state.
'''
@staticmethod
... | 9 | 1 | 15 | 0 | 15 | 0 | 1 | 0.06 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 4 | 73 | 4 | 65 | 45 | 20 | 4 | 9 | 5 | 4 | 1 | 1 | 0 | 4 |
15,701 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/engine_pb2_grpc.py | pulumi.runtime.proto.engine_pb2_grpc.EngineServicer | import grpc
class EngineServicer(object):
"""Engine is an auxiliary service offered to language and resource provider plugins. Its main purpose today is
to serve as a common logging endpoint, but it also serves as a state storage mechanism for language hosts
that can't store their own global state.
"""... |
class EngineServicer(object):
'''Engine is an auxiliary service offered to language and resource provider plugins. Its main purpose today is
to serve as a common logging endpoint, but it also serves as a state storage mechanism for language hosts
that can't store their own global state.
'''
def Lo... | 5 | 5 | 7 | 0 | 4 | 3 | 1 | 0.82 | 1 | 1 | 0 | 0 | 4 | 0 | 4 | 4 | 35 | 4 | 17 | 5 | 12 | 14 | 17 | 5 | 12 | 1 | 1 | 0 | 4 |
15,702 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/engine_pb2_grpc.py | pulumi.runtime.proto.engine_pb2_grpc.EngineStub | from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from . import engine_pb2 as pulumi_dot_engine__pb2
class EngineStub(object):
"""Engine is an auxiliary service offered to language and resource provider plugins. Its main purpose today is
to serve as a common logging endpoint, but it a... |
class EngineStub(object):
'''Engine is an auxiliary service offered to language and resource provider plugins. Its main purpose today is
to serve as a common logging endpoint, but it also serves as a state storage mechanism for language hosts
that can't store their own global state.
'''
def __init... | 2 | 2 | 26 | 1 | 21 | 4 | 1 | 0.36 | 1 | 0 | 0 | 0 | 1 | 4 | 1 | 1 | 32 | 2 | 22 | 6 | 20 | 8 | 6 | 6 | 4 | 1 | 1 | 0 | 1 |
15,703 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/language_pb2_grpc.py | pulumi.runtime.proto.language_pb2_grpc.LanguageRuntime | from . import language_pb2 as pulumi_dot_language__pb2
import grpc
from . import plugin_pb2 as pulumi_dot_plugin__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
class LanguageRuntime(object):
"""The LanguageRuntime service defines a standard interface for [language hosts/runtimes](... |
class LanguageRuntime(object):
'''The LanguageRuntime service defines a standard interface for [language hosts/runtimes](languages). At a high level, a
language runtime provides the ability to execute programs, install and query dependencies, and generate code for a
specific language.
'''
@staticme... | 33 | 1 | 15 | 0 | 15 | 0 | 1 | 0.02 | 1 | 0 | 0 | 0 | 0 | 0 | 14 | 14 | 243 | 14 | 225 | 155 | 70 | 4 | 29 | 15 | 14 | 1 | 1 | 0 | 14 |
15,704 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/language_pb2_grpc.py | pulumi.runtime.proto.language_pb2_grpc.LanguageRuntimeServicer | import grpc
class LanguageRuntimeServicer(object):
"""The LanguageRuntime service defines a standard interface for [language hosts/runtimes](languages). At a high level, a
language runtime provides the ability to execute programs, install and query dependencies, and generate code for a
specific language.
... |
class LanguageRuntimeServicer(object):
'''The LanguageRuntime service defines a standard interface for [language hosts/runtimes](languages). At a high level, a
language runtime provides the ability to execute programs, install and query dependencies, and generate code for a
specific language.
'''
... | 17 | 17 | 9 | 0 | 4 | 5 | 1 | 1.28 | 1 | 1 | 0 | 1 | 14 | 0 | 14 | 14 | 145 | 15 | 57 | 15 | 42 | 73 | 57 | 15 | 42 | 1 | 1 | 0 | 14 |
15,705 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/language_pb2_grpc.py | pulumi.runtime.proto.language_pb2_grpc.LanguageRuntimeStub | from . import plugin_pb2 as pulumi_dot_plugin__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from . import language_pb2 as pulumi_dot_language__pb2
class LanguageRuntimeStub(object):
"""The LanguageRuntime service defines a standard interface for [language hosts/runtimes](language... |
class LanguageRuntimeStub(object):
'''The LanguageRuntime service defines a standard interface for [language hosts/runtimes](languages). At a high level, a
language runtime provides the ability to execute programs, install and query dependencies, and generate code for a
specific language.
'''
def ... | 2 | 2 | 76 | 1 | 71 | 4 | 1 | 0.11 | 1 | 0 | 0 | 0 | 1 | 14 | 1 | 1 | 82 | 2 | 72 | 16 | 70 | 8 | 16 | 16 | 14 | 1 | 1 | 0 | 1 |
15,706 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/provider_pb2_grpc.py | pulumi.runtime.proto.provider_pb2_grpc.ResourceProvider | from . import plugin_pb2 as pulumi_dot_plugin__pb2
from . import provider_pb2 as pulumi_dot_provider__pb2
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
class ResourceProvider(object):
"""The ResourceProvider service defines a standard interface for [resource providers](pro... |
class ResourceProvider(object):
'''The ResourceProvider service defines a standard interface for [resource providers](providers). A resource provider
manages a set of configuration, resources, functions and so on in a single package, and offers methods such as CRUD
operations on resources and invocations o... | 41 | 1 | 15 | 0 | 15 | 0 | 1 | 0.01 | 1 | 0 | 0 | 0 | 0 | 0 | 21 | 21 | 363 | 21 | 337 | 232 | 105 | 5 | 43 | 22 | 21 | 1 | 1 | 0 | 21 |
15,707 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/provider_pb2_grpc.py | pulumi.runtime.proto.provider_pb2_grpc.ResourceProviderServicer | import grpc
class ResourceProviderServicer(object):
"""The ResourceProvider service defines a standard interface for [resource providers](providers). A resource provider
manages a set of configuration, resources, functions and so on in a single package, and offers methods such as CRUD
operations on resourc... |
class ResourceProviderServicer(object):
'''The ResourceProvider service defines a standard interface for [resource providers](providers). A resource provider
manages a set of configuration, resources, functions and so on in a single package, and offers methods such as CRUD
operations on resources and invoc... | 21 | 21 | 12 | 1 | 4 | 7 | 1 | 1.86 | 1 | 1 | 0 | 2 | 21 | 0 | 21 | 21 | 282 | 39 | 85 | 22 | 63 | 158 | 85 | 22 | 63 | 1 | 1 | 0 | 21 |
15,708 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/provider_pb2_grpc.py | pulumi.runtime.proto.provider_pb2_grpc.ResourceProviderStub | from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from . import provider_pb2 as pulumi_dot_provider__pb2
from . import plugin_pb2 as pulumi_dot_plugin__pb2
class ResourceProviderStub(object):
"""The ResourceProvider service defines a standard interface for [resource providers](providers).... |
class ResourceProviderStub(object):
'''The ResourceProvider service defines a standard interface for [resource providers](providers). A resource provider
manages a set of configuration, resources, functions and so on in a single package, and offers methods such as CRUD
operations on resources and invocatio... | 2 | 2 | 111 | 1 | 106 | 4 | 1 | 0.08 | 1 | 0 | 0 | 0 | 1 | 21 | 1 | 1 | 118 | 2 | 107 | 23 | 105 | 9 | 23 | 23 | 21 | 1 | 1 | 0 | 1 |
15,709 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/resource_pb2_grpc.py | pulumi.runtime.proto.resource_pb2_grpc.ResourceMonitor | from . import callback_pb2 as pulumi_dot_callback__pb2
from . import provider_pb2 as pulumi_dot_provider__pb2
from . import resource_pb2 as pulumi_dot_resource__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import grpc
class ResourceMonitor(object):
"""ResourceMonitor is the inter... |
class ResourceMonitor(object):
'''ResourceMonitor is the interface a source uses to talk back to the planning monitor orchestrating the execution.
'''
@staticmethod
def SupportsFeature(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_f... | 23 | 1 | 15 | 0 | 15 | 0 | 1 | 0.01 | 1 | 0 | 0 | 0 | 0 | 0 | 10 | 10 | 173 | 10 | 161 | 111 | 50 | 2 | 21 | 11 | 10 | 1 | 1 | 0 | 10 |
15,710 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/resource_pb2_grpc.py | pulumi.runtime.proto.resource_pb2_grpc.ResourceMonitorServicer | import grpc
class ResourceMonitorServicer(object):
"""ResourceMonitor is the interface a source uses to talk back to the planning monitor orchestrating the execution.
"""
def SupportsFeature(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set... |
class ResourceMonitorServicer(object):
'''ResourceMonitor is the interface a source uses to talk back to the planning monitor orchestrating the execution.
'''
def SupportsFeature(self, request, context):
'''Missing associated documentation comment in .proto file.'''
pass
def Invoke(se... | 12 | 12 | 5 | 0 | 4 | 1 | 1 | 0.39 | 1 | 1 | 0 | 0 | 10 | 0 | 10 | 10 | 67 | 10 | 41 | 11 | 30 | 16 | 41 | 11 | 30 | 1 | 1 | 0 | 10 |
15,711 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/proto/resource_pb2_grpc.py | pulumi.runtime.proto.resource_pb2_grpc.ResourceMonitorStub | from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from . import provider_pb2 as pulumi_dot_provider__pb2
from . import resource_pb2 as pulumi_dot_resource__pb2
from . import callback_pb2 as pulumi_dot_callback__pb2
class ResourceMonitorStub(object):
"""ResourceMonitor is the interface a s... |
class ResourceMonitorStub(object):
'''ResourceMonitor is the interface a source uses to talk back to the planning monitor orchestrating the execution.
'''
def __init__(self, channel):
'''Constructor.
Args:
channel: A grpc.Channel.
'''
pass | 2 | 2 | 56 | 1 | 51 | 4 | 1 | 0.12 | 1 | 0 | 0 | 0 | 1 | 10 | 1 | 1 | 60 | 2 | 52 | 12 | 50 | 6 | 12 | 12 | 10 | 1 | 1 | 0 | 1 |
15,712 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/resource.py | pulumi.runtime.resource.PropertyDependencies | class PropertyDependencies:
urns: list[str]
def __init__(self, urns: list[str]):
self.urns = urns | class PropertyDependencies:
def __init__(self, urns: list[str]):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 0 | 0 | 1 |
15,713 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/resource.py | pulumi.runtime.resource.RegisterResponse | from .. import urn as urn_util
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, Union
from google.protobuf import struct_pb2
from ..runtime.proto import alias_pb2, resource_pb2, source_pb2, callback_pb2
class RegisterResponse:
urn: str
id: Optional[str]
object: struct_pb2.Struct
p... |
class RegisterResponse:
def __init__(self, urn: str, id: Optional[str], object: struct_pb2.Struct, propertyDependencies: Optional[dict[str, PropertyDependencies]], result: Optional[resource_pb2.Result.ValueType]):
pass | 2 | 0 | 13 | 0 | 13 | 0 | 1 | 0 | 0 | 2 | 1 | 0 | 1 | 2 | 1 | 1 | 20 | 1 | 19 | 11 | 10 | 0 | 12 | 4 | 10 | 1 | 0 | 0 | 1 |
15,714 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/resource.py | pulumi.runtime.resource.ResourceResolverOperations | from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, Union
from google.protobuf import struct_pb2
from ..runtime.proto import alias_pb2, resource_pb2, source_pb2, callback_pb2
class ResourceResolverOperations(NamedTuple):
"""
The set of properties resulting from a successful call to prepare_r... |
class ResourceResolverOperations(NamedTuple):
'''
The set of properties resulting from a successful call to prepare_resource.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 51 | 9 | 10 | 1 | 9 | 32 | 10 | 1 | 9 | 0 | 1 | 0 | 0 |
15,715 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/rpc.py | pulumi.runtime.rpc.ResourceModule | from semver import Version
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Any, Callable, Optional, Union, cast, get_args, get_origin
class ResourceModule(ABC):
@abstractmethod
def version(self) -> Optional[Version]:
pass
@abstractmethod
def construct(self, name: str, ty... |
class ResourceModule(ABC):
@abstractmethod
def version(self) -> Optional[Version]:
pass
@abstractmethod
def construct(self, name: str, typ: str, urn: str) -> 'Resource':
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 123 | 2 | 0 | 2 | 22 | 8 | 1 | 7 | 5 | 2 | 0 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
15,716 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/rpc.py | pulumi.runtime.rpc.ResourcePackage | from abc import ABC, abstractmethod
from semver import Version
from typing import TYPE_CHECKING, Any, Callable, Optional, Union, cast, get_args, get_origin
class ResourcePackage(ABC):
@abstractmethod
def version(self) -> Optional[Version]:
pass
@abstractmethod
def construct_provider(self, nam... |
class ResourcePackage(ABC):
@abstractmethod
def version(self) -> Optional[Version]:
pass
@abstractmethod
def construct_provider(self, name: str, typ: str, urn: str) -> 'ProviderResource':
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 113 | 2 | 0 | 2 | 22 | 8 | 1 | 7 | 5 | 2 | 0 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
15,717 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/rpc.py | pulumi.runtime.rpc._Path | from typing import TYPE_CHECKING, Any, Callable, Optional, Union, cast, get_args, get_origin
class _Path:
"""Internal helper for `translate_output_properties` error reporting,
essentially an immutable linked list of prop names with an
additional context resource name slot.
"""
prop: str
resour... |
class _Path:
'''Internal helper for `translate_output_properties` error reporting,
essentially an immutable linked list of prop names with an
additional context resource name slot.
'''
def __init__(self, prop: str, parent: Optional['_Path']=None, resource: Optional[str]=None) -> None:
pass... | 4 | 1 | 17 | 4 | 13 | 0 | 3 | 0.13 | 0 | 1 | 0 | 0 | 1 | 0 | 2 | 2 | 46 | 11 | 31 | 13 | 22 | 4 | 25 | 7 | 22 | 5 | 0 | 1 | 6 |
15,718 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/rpc_manager.py | pulumi.runtime.rpc_manager.RPCManager | from collections.abc import Awaitable
from .. import log
import traceback
from typing import Any, Callable, Optional, TypeVar
import sys
import asyncio
class RPCManager:
"""
RPCManager is responsible for keeping track of RPCs that are dispatched
throughout the course of a Pulumi program. It records excepti... |
class RPCManager:
'''
RPCManager is responsible for keeping track of RPCs that are dispatched
throughout the course of a Pulumi program. It records exceptions that occur
when performing RPC calls and keeps track of whether or not there are any
outstanding RPCs.
'''
def __init__(self):
... | 5 | 3 | 15 | 2 | 11 | 3 | 2 | 0.9 | 0 | 2 | 0 | 0 | 3 | 0 | 3 | 3 | 67 | 11 | 30 | 11 | 23 | 27 | 28 | 8 | 23 | 3 | 0 | 2 | 6 |
15,719 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/settings.py | pulumi.runtime.settings.Settings | from .._utils import contextproperty
from typing import TYPE_CHECKING, Any, NoReturn, Optional, Union
import grpc
import asyncio
from ..runtime.proto import engine_pb2_grpc, resource_pb2, resource_pb2_grpc
from ._callbacks import _CallbackServicer
from collections import deque
from .rpc_manager import RPCManager
import... |
class Settings:
'''
A bag of properties for configuring the Pulumi Python language runtime.
'''
def __init__(self, project: Optional[str], stack: Optional[str], monitor: Optional[Union[str, Any]]=None, engine: Optional[Union[str, Any]]=None, parallel: Optional[int]=None, dry_run: Optional[bool]=None, ... | 31 | 1 | 4 | 0 | 4 | 0 | 1 | 0.12 | 0 | 9 | 4 | 1 | 15 | 0 | 15 | 15 | 99 | 19 | 74 | 39 | 47 | 9 | 53 | 16 | 37 | 6 | 0 | 2 | 20 |
15,720 | pulumi/pulumi | sdk/python/lib/pulumi/runtime/stack.py | pulumi.runtime.stack.Stack | from inspect import isawaitable
from ..resource import ComponentResource, Resource, ResourceTransformation, ResourceTransform
from .settings import SETTINGS, _get_callbacks, _get_rpc_manager, _load_monitor_feature_support, _shutdown_callbacks, _sync_monitor_supports_transforms, _sync_monitor_supports_invoke_transforms,... |
class Stack(ComponentResource):
'''
A synthetic stack component that automatically parents resources as the program runs.
'''
def __init__(self, func: Callable[[], Optional[Awaitable[None]]]) -> None:
pass
def output(self, name: str, value: Any):
'''
Export a stack output ... | 3 | 2 | 14 | 2 | 8 | 5 | 2 | 0.82 | 1 | 4 | 0 | 0 | 2 | 0 | 2 | 10 | 37 | 6 | 17 | 5 | 14 | 14 | 16 | 5 | 13 | 3 | 2 | 2 | 4 |
15,721 | pulumi/pulumi | sdk/python/lib/pulumi/stack_reference.py | pulumi.stack_reference.StackReference | from .output import Output, Input
from typing import Optional, Any
from asyncio import ensure_future
from .resource import CustomResource, ResourceOptions
class StackReference(CustomResource):
"""
Manages a reference to a Pulumi stack. The referenced stack's outputs are available via its "outputs" property or
... |
class StackReference(CustomResource):
'''
Manages a reference to a Pulumi stack. The referenced stack's outputs are available via its "outputs" property or
the "output" method.
'''
def __init__(self, name: str, stack_name: Optional[str]=None, opts: Optional[ResourceOptions]=None) -> None:
... | 7 | 6 | 17 | 2 | 9 | 6 | 2 | 0.91 | 1 | 7 | 3 | 0 | 6 | 0 | 6 | 14 | 126 | 23 | 55 | 21 | 43 | 50 | 34 | 16 | 27 | 3 | 2 | 1 | 12 |
15,722 | pulumi/pulumi | sdk/python/lib/pulumi/stack_reference.py | pulumi.stack_reference.StackReferenceOutputDetails | from typing import Optional, Any
class StackReferenceOutputDetails:
"""
Records the output of a StackReference.
At most one of the value and secret_value fields will be set.
"""
value: Optional[Any]
'\n Output value returned by the StackReference.\n None if the value is a secret or if it ... |
class StackReferenceOutputDetails:
'''
Records the output of a StackReference.
At most one of the value and secret_value fields will be set.
'''
def __init__(self, value: Optional[Any]=None, secret_value: Optional[Any]=None) -> None:
'''
:param Optional[Any] value:
Non-... | 2 | 2 | 13 | 0 | 7 | 6 | 1 | 1.8 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 31 | 3 | 10 | 6 | 4 | 18 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
15,723 | pulumi/pulumi | tests/integration/transforms/python/simple/random_.py | random_.Component | from typing import Optional
import pulumi
class Component(pulumi.ComponentResource):
def __init__(self, resource_name: str, length: pulumi.Input[int], opts: Optional[pulumi.ResourceOptions]=None):
props = {'length': length, 'childId': None}
super().__init__('testprovider:index:Component', resource... |
class Component(pulumi.ComponentResource):
def __init__(self, resource_name: str, length: pulumi.Input[int], opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.getter
def length(self) -> pulumi.Output[int]:
pass
@property
@pulumi.getter
def child_id(self) ... | 8 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 3 | 0 | 3 | 11 | 20 | 2 | 18 | 10 | 7 | 0 | 8 | 5 | 4 | 1 | 2 | 0 | 3 |
15,724 | pulumi/pulumi | tests/integration/transforms/python/simple/random_.py | random_.Provider | import pulumi
from typing import Optional
class Provider(pulumi.ProviderResource):
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None):
super(Provider, __self__).__init__('testprovider', resource_name, None, opts) |
class Provider(pulumi.ProviderResource):
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 10 | 9 | 0 | 9 | 4 | 5 | 0 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
15,725 | pulumi/pulumi | tests/integration/deleted_with/python/random_.py | random_.Random | import pulumi
from typing import Optional
class Random(pulumi.CustomResource):
def __init__(self, resource_name: str, length: pulumi.Input[int], opts: Optional[pulumi.ResourceOptions]=None):
props = {'length': length, 'result': None}
super().__init__('testprovider:index:Random', resource_name, pro... |
class Random(pulumi.CustomResource):
def __init__(self, resource_name: str, length: pulumi.Input[int], opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.getter
def length(self) -> pulumi.Output[int]:
pass
@property
@pulumi.getter
def result(self) -> pulum... | 8 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 3 | 0 | 3 | 11 | 20 | 2 | 18 | 10 | 7 | 0 | 8 | 5 | 4 | 1 | 2 | 0 | 3 |
15,726 | pulumi/pulumi | tests/integration/transformations/python/simple/random_.py | random_.Random | import pulumi
from typing import Optional
class Random(pulumi.CustomResource):
def __init__(self, resource_name: str, length: pulumi.Input[int], prefix: Optional[pulumi.Input[str]]=None, opts: Optional[pulumi.ResourceOptions]=None):
props = {'length': length, 'result': None, 'prefix': prefix}
supe... |
class Random(pulumi.CustomResource):
def __init__(self, resource_name: str, length: pulumi.Input[int], prefix: Optional[pulumi.Input[str]]=None, opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.getter
def length(self) -> pulumi.Output[int]:
pass
@property
@p... | 8 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 3 | 0 | 3 | 11 | 22 | 2 | 20 | 11 | 8 | 0 | 8 | 5 | 4 | 1 | 2 | 0 | 3 |
15,727 | pulumi/pulumi | tests/integration/transforms/python/simple/random_.py | random_.Random | from typing import Optional
import pulumi
class Random(pulumi.CustomResource):
def __init__(self, resource_name: str, length: pulumi.Input[int], prefix: Optional[pulumi.Input[str]]=None, opts: Optional[pulumi.ResourceOptions]=None):
props = {'length': length, 'result': None, 'prefix': prefix}
supe... |
class Random(pulumi.CustomResource):
def __init__(self, resource_name: str, length: pulumi.Input[int], prefix: Optional[pulumi.Input[str]]=None, opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.getter
def length(self) -> pulumi.Output[int]:
pass
@property
@p... | 9 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 4 | 0 | 4 | 12 | 25 | 3 | 22 | 12 | 9 | 0 | 10 | 6 | 5 | 1 | 2 | 0 | 4 |
15,728 | pulumi/pulumi | tests/integration/construct_component_unknown/python/resource.py | resource.MyDynamicProvider | import pulumi.dynamic as dynamic
from typing import Any, Optional
class MyDynamicProvider(dynamic.ResourceProvider):
def create(self, props: Any) -> dynamic.CreateResult:
global _ID
_ID = _ID + 1
return dynamic.CreateResult(id_=str(_ID)) |
class MyDynamicProvider(dynamic.ResourceProvider):
def create(self, props: Any) -> dynamic.CreateResult:
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 9 | 5 | 0 | 5 | 3 | 2 | 0 | 5 | 3 | 2 | 1 | 1 | 0 | 1 |
15,729 | pulumi/pulumi | tests/integration/construct_component_unknown/python/resource.py | resource.Resource | import pulumi.dynamic as dynamic
from typing import Any, Optional
import pulumi
class Resource(dynamic.Resource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
super().__init__(MyDynamicProvider(), name, {}, opts) |
class Resource(dynamic.Resource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 1 | 0 | 1 | 11 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
15,730 | pulumi/pulumi | pkg/codegen/python/utilities.py | utilities.Module | import pulumi
import pulumi.runtime
class Module(pulumi.runtime.ResourceModule):
def __init__(self, mod_info):
super().__init__()
self.mod_info = mod_info
def version(self):
return _version
def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
class_name ... |
class Module(pulumi.runtime.ResourceModule):
def __init__(self, mod_info):
pass
def version(self):
pass
def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
pass | 4 | 0 | 4 | 1 | 4 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 3 | 1 | 3 | 25 | 16 | 4 | 12 | 7 | 8 | 0 | 12 | 7 | 8 | 2 | 5 | 1 | 4 |
15,731 | pulumi/pulumi | pkg/codegen/python/utilities.py | utilities.Package | import pulumi
import pulumi.runtime
class Package(pulumi.runtime.ResourcePackage):
def __init__(self, pkg_info):
super().__init__()
self.pkg_info = pkg_info
def version(self):
return _version
def construct_provider(self, name: str, typ: str, urn: str) -> pulumi.ProviderResource:
... |
class Package(pulumi.runtime.ResourcePackage):
def __init__(self, pkg_info):
pass
def version(self):
pass
def construct_provider(self, name: str, typ: str, urn: str) -> pulumi.ProviderResource:
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 3 | 1 | 3 | 25 | 13 | 2 | 11 | 6 | 7 | 0 | 11 | 6 | 7 | 2 | 5 | 1 | 4 |
15,732 | Delgan/loguru | tests/exceptions/source/diagnose/attributes.py | attributes.Obj | class Obj:
@property
def forbidden(self):
raise RuntimeError | class Obj:
@property
def forbidden(self):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
15,733 | Delgan/loguru | tests/exceptions/source/others/broken_but_decorated_repr.py | broken_but_decorated_repr.Bar | from loguru import logger
class Bar:
def __repr__(self):
with logger.catch(reraise=True):
raise ValueError('Something went wrong (Bar)') |
class Bar:
def __repr__(self):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 4 | 0 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 0 | 1 | 1 |
15,734 | Delgan/loguru | tests/exceptions/source/others/broken_but_decorated_repr.py | broken_but_decorated_repr.Foo | from loguru import logger
class Foo:
@logger.catch(reraise=True)
def __repr__(self):
raise ValueError('Something went wrong (Foo)') |
class Foo:
@logger.catch(reraise=True)
def __repr__(self):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
15,735 | Delgan/loguru | tests/exceptions/source/others/exception_in_property.py | exception_in_property.A | from loguru import logger
class A:
@property
def value(self):
try:
1 / 0
except:
logger.opt(exception=True).debug('test')
return None
else:
return 'Never' |
class A:
@property
def value(self):
pass | 3 | 0 | 8 | 0 | 8 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 0 | 10 | 3 | 7 | 0 | 9 | 2 | 7 | 2 | 0 | 1 | 2 |
15,736 | Delgan/loguru | loguru/_better_exceptions.py | loguru._better_exceptions.ExceptionFormatter | import sys
import traceback
import keyword
import re
import linecache
import inspect
import os
import sysconfig
import tokenize
class ExceptionFormatter:
_default_theme = frozenset({'introduction': '\x1b[33m\x1b[1m{}\x1b[0m', 'cause': '\x1b[1m{}\x1b[0m', 'context': '\x1b[1m{}\x1b[0m', 'dirname': '\x1b[32m{}\x1b[0m... |
class ExceptionFormatter:
def __init__(self, colorize=False, backtrace=False, diagnose=True, theme=None, style=None, max_length=128, encoding='ascii', hidden_frames_filename=None, prefix=''):
pass
@staticmethod
def _get_lib_dirs():
pass
@staticmethod
def _indent(text, count, *, pre... | 20 | 0 | 25 | 3 | 21 | 1 | 6 | 0.03 | 0 | 16 | 1 | 0 | 12 | 13 | 14 | 14 | 448 | 73 | 364 | 116 | 331 | 12 | 291 | 101 | 273 | 30 | 0 | 5 | 97 |
15,737 | Delgan/loguru | loguru/_better_exceptions.py | loguru._better_exceptions.SyntaxHighlighter | import io
import keyword
import builtins
import sys
import tokenize
class SyntaxHighlighter:
_default_style = frozenset({'comment': '\x1b[30m\x1b[1m{}\x1b[0m', 'keyword': '\x1b[35m\x1b[1m{}\x1b[0m', 'builtin': '\x1b[1m{}\x1b[0m', 'string': '\x1b[36m{}\x1b[0m', 'number': '\x1b[34m\x1b[1m{}\x1b[0m', 'operator': '\x1... |
class SyntaxHighlighter:
def __init__(self, style=None):
pass
def highlight(self, source):
pass
@staticmethod
def tokenize(source):
pass | 5 | 0 | 20 | 3 | 16 | 1 | 6 | 0.04 | 0 | 1 | 0 | 0 | 2 | 1 | 3 | 3 | 92 | 14 | 75 | 18 | 70 | 3 | 49 | 17 | 45 | 14 | 0 | 3 | 17 |
15,738 | Delgan/loguru | loguru/_colorizer.py | loguru._colorizer.AnsiParser | import re
class AnsiParser:
_style = ansi_escape({'b': Style.BOLD, 'd': Style.DIM, 'n': Style.NORMAL, 'h': Style.HIDE, 'i': Style.ITALIC, 'l': Style.BLINK, 's': Style.STRIKE, 'u': Style.UNDERLINE, 'v': Style.REVERSE, 'bold': Style.BOLD, 'dim': Style.DIM, 'normal': Style.NORMAL, 'hide': Style.HIDE, 'italic': Style.... |
class AnsiParser:
def __init__(self):
pass
@staticmethod
def strip(tokens):
pass
@staticmethod
def colorize(tokens, ansi_level):
pass
@staticmethod
def wrap(tokens, *, ansi_level, color_tokens):
pass
def feed(self, text, *, raw=False):
pass
... | 12 | 0 | 17 | 3 | 14 | 0 | 5 | 0.01 | 0 | 5 | 1 | 0 | 5 | 3 | 8 | 8 | 248 | 33 | 213 | 44 | 201 | 3 | 111 | 41 | 102 | 13 | 0 | 4 | 41 |
15,739 | Delgan/loguru | loguru/_colorizer.py | loguru._colorizer.Back | class Back:
BLACK = 40
RED = 41
GREEN = 42
YELLOW = 43
BLUE = 44
MAGENTA = 45
CYAN = 46
WHITE = 47
RESET = 49
LIGHTBLACK_EX = 100
LIGHTRED_EX = 101
LIGHTGREEN_EX = 102
LIGHTYELLOW_EX = 103
LIGHTBLUE_EX = 104
LIGHTMAGENTA_EX = 105
LIGHTCYAN_EX = 106
LIG... | class Back:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 1 | 18 | 18 | 17 | 0 | 18 | 18 | 17 | 0 | 0 | 0 | 0 |
15,740 | Delgan/loguru | loguru/_colorizer.py | loguru._colorizer.ColoredFormat | class ColoredFormat:
def __init__(self, tokens, messages_color_tokens):
self._tokens = tokens
self._messages_color_tokens = messages_color_tokens
def strip(self):
return AnsiParser.strip(self._tokens)
def colorize(self, ansi_level):
return AnsiParser.colorize(self._tokens,... | class ColoredFormat:
def __init__(self, tokens, messages_color_tokens):
pass
def strip(self):
pass
def colorize(self, ansi_level):
pass
def make_coloring_message(self, message, *, ansi_level, colored_message):
pass | 5 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 2 | 2 | 0 | 4 | 2 | 4 | 4 | 25 | 3 | 22 | 9 | 17 | 0 | 13 | 9 | 8 | 2 | 0 | 0 | 5 |
15,741 | Delgan/loguru | loguru/_colorizer.py | loguru._colorizer.ColoredMessage | class ColoredMessage:
def __init__(self, tokens):
self.tokens = tokens
self.stripped = AnsiParser.strip(tokens)
def colorize(self, ansi_level):
return AnsiParser.colorize(self.tokens, ansi_level) | class ColoredMessage:
def __init__(self, tokens):
pass
def colorize(self, ansi_level):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 2 | 2 | 2 | 2 | 7 | 1 | 6 | 5 | 3 | 0 | 6 | 5 | 3 | 1 | 0 | 0 | 2 |
15,742 | Delgan/loguru | loguru/_colorizer.py | loguru._colorizer.ColoringMessage | class ColoringMessage(str):
__fields__ = ('_messages',)
def __format__(self, spec):
return next(self._messages).__format__(spec) | class ColoringMessage(str):
def __format__(self, spec):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 67 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,743 | Delgan/loguru | loguru/_colorizer.py | loguru._colorizer.Colorizer | from string import Formatter
class Colorizer:
@staticmethod
def prepare_format(string):
tokens, messages_color_tokens = Colorizer._parse_without_formatting(string)
return ColoredFormat(tokens, messages_color_tokens)
@staticmethod
def prepare_message(string, args=(), kwargs={}):
... |
class Colorizer:
@staticmethod
def prepare_format(string):
pass
@staticmethod
def prepare_message(string, args=(), kwargs={}):
pass
@staticmethod
def prepare_simple_message(string):
pass
@staticmethod
def ansify(text):
pass
@staticmethod
def _par... | 13 | 0 | 18 | 3 | 15 | 0 | 4 | 0.02 | 0 | 6 | 3 | 0 | 0 | 0 | 6 | 6 | 118 | 22 | 95 | 34 | 80 | 2 | 68 | 26 | 61 | 9 | 0 | 4 | 22 |
15,744 | Delgan/loguru | loguru/_colorizer.py | loguru._colorizer.Fore | class Fore:
BLACK = 30
RED = 31
GREEN = 32
YELLOW = 33
BLUE = 34
MAGENTA = 35
CYAN = 36
WHITE = 37
RESET = 39
LIGHTBLACK_EX = 90
LIGHTRED_EX = 91
LIGHTGREEN_EX = 92
LIGHTYELLOW_EX = 93
LIGHTBLUE_EX = 94
LIGHTMAGENTA_EX = 95
LIGHTCYAN_EX = 96
LIGHTWHITE... | class Fore:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 1 | 18 | 18 | 17 | 0 | 18 | 18 | 17 | 0 | 0 | 0 | 0 |
15,745 | Delgan/loguru | loguru/_colorizer.py | loguru._colorizer.Style | class Style:
RESET_ALL = 0
BOLD = 1
DIM = 2
ITALIC = 3
UNDERLINE = 4
BLINK = 5
REVERSE = 7
HIDE = 8
STRIKE = 9
NORMAL = 22 | class Style:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 11 | 11 | 10 | 0 | 11 | 11 | 10 | 0 | 0 | 0 | 0 |
15,746 | Delgan/loguru | loguru/_colorizer.py | loguru._colorizer.TokenType | class TokenType:
TEXT = 1
ANSI = 2
LEVEL = 3
CLOSING = 4 | class TokenType:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 0 | 0 | 0 |
15,747 | Delgan/loguru | loguru/_datetime.py | loguru._datetime.datetime | from datetime import datetime as datetime_
class datetime(datetime_):
def __format__(self, fmt):
return _compile_format(fmt)(self) |
class datetime(datetime_):
def __format__(self, fmt):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.33 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 78 | 3 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,748 | Delgan/loguru | loguru/_error_interceptor.py | loguru._error_interceptor.ErrorInterceptor | import traceback
import sys
class ErrorInterceptor:
def __init__(self, should_catch, handler_id):
self._should_catch = should_catch
self._handler_id = handler_id
def should_catch(self):
return self._should_catch
def print(self, record=None, *, exception=None):
if not sys.... |
class ErrorInterceptor:
def __init__(self, should_catch, handler_id):
pass
def should_catch(self):
pass
def print(self, record=None, *, exception=None):
pass | 4 | 0 | 9 | 1 | 8 | 0 | 2 | 0.04 | 0 | 4 | 0 | 0 | 3 | 2 | 3 | 3 | 30 | 4 | 26 | 8 | 22 | 1 | 24 | 8 | 20 | 5 | 0 | 2 | 7 |
15,749 | Delgan/loguru | loguru/_file_sink.py | loguru._file_sink.Compression | import os
from ._ctime_functions import get_ctime, set_ctime
import shutil
class Compression:
@staticmethod
def add_compress(path_in, path_out, opener, **kwargs):
with opener(path_out, **kwargs) as f_comp:
f_comp.add(path_in, os.path.basename(path_in))
@staticmethod
def write_comp... |
class Compression:
@staticmethod
def add_compress(path_in, path_out, opener, **kwargs):
pass
@staticmethod
def write_compress(path_in, path_out, opener, **kwargs):
pass
@staticmethod
def copy_compress(path_in, path_out, opener, **kwargs):
pass
@staticmethod
def ... | 9 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 4 | 28 | 4 | 24 | 17 | 15 | 0 | 20 | 9 | 15 | 2 | 0 | 2 | 5 |
15,750 | Delgan/loguru | loguru/_file_sink.py | loguru._file_sink.FileDateFormatter | from ._datetime import aware_now
import datetime
class FileDateFormatter:
def __init__(self, datetime=None):
self.datetime = datetime or aware_now()
def __format__(self, spec):
if not spec:
spec = '%Y-%m-%d_%H-%M-%S_%f'
return self.datetime.__format__(spec) |
class FileDateFormatter:
def __init__(self, datetime=None):
pass
def __format__(self, spec):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 2 | 2 | 8 | 1 | 7 | 4 | 4 | 0 | 7 | 4 | 4 | 2 | 0 | 1 | 3 |
15,751 | Delgan/loguru | loguru/_file_sink.py | loguru._file_sink.FileSink | import numbers
from ._ctime_functions import get_ctime, set_ctime
import os
from functools import partial
from . import _string_parsers as string_parsers
import glob
from stat import ST_DEV, ST_INO
import string
import decimal
import datetime
class FileSink:
def __init__(self, path, *, rotation=None, retention=No... |
class FileSink:
def __init__(self, path, *, rotation=None, retention=None, compression=None, delay=False, watch=False, mode='a', buffering=1, encoding='utf8', **kwargs):
pass
def write(self, message):
pass
def stop(self):
pass
def tasks_to_complete(self):
pass
d... | 19 | 0 | 19 | 3 | 16 | 0 | 5 | 0.01 | 0 | 23 | 6 | 0 | 10 | 12 | 14 | 14 | 279 | 50 | 227 | 83 | 183 | 2 | 181 | 65 | 154 | 15 | 0 | 3 | 63 |
15,752 | Delgan/loguru | loguru/_file_sink.py | loguru._file_sink.Retention | import datetime
import os
class Retention:
@staticmethod
def retention_count(logs, number):
def key_log(log):
return (-os.stat(log).st_mtime, log)
for log in sorted(logs, key=key_log)[number:]:
os.remove(log)
@staticmethod
def retention_age(logs, seconds):
... |
class Retention:
@staticmethod
def retention_count(logs, number):
pass
def key_log(log):
pass
@staticmethod
def retention_age(logs, seconds):
pass | 6 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 2 | 15 | 2 | 13 | 9 | 7 | 0 | 11 | 7 | 7 | 3 | 0 | 2 | 6 |
15,753 | Delgan/loguru | loguru/_file_sink.py | loguru._file_sink.Rotation | from ._ctime_functions import get_ctime, set_ctime
import os
import datetime
class Rotation:
@staticmethod
def forward_day(t):
return t + datetime.timedelta(days=1)
@staticmethod
def forward_weekday(t, weekday):
while True:
t += datetime.timedelta(days=1)
if t.... |
class Rotation:
@staticmethod
def forward_day(t):
pass
@staticmethod
def forward_weekday(t, weekday):
pass
@staticmethod
def forward_interval(t, interval):
pass
@staticmethod
def rotation_size(message, file, size_limit):
pass
class RotationTime:
... | 15 | 0 | 8 | 1 | 7 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 | 4 | 75 | 15 | 60 | 26 | 45 | 0 | 48 | 22 | 37 | 9 | 0 | 3 | 18 |
15,754 | Delgan/loguru | loguru/_handler.py | loguru._handler.Handler | import multiprocessing
import threading
import os
from contextlib import contextmanager
import json
from threading import Thread
from ._locks_machinery import create_handler_lock
class Handler:
def __init__(self, *, sink, name, levelno, formatter, is_formatter_dynamic, filter_, colorize, serialize, enqueue, multi... |
class Handler:
def __init__(self, *, sink, name, levelno, formatter, is_formatter_dynamic, filter_, colorize, serialize, enqueue, multiprocessing_context, error_interceptor, exception_formatter, id_, levels_ansi_codes):
pass
def __repr__(self):
pass
@contextmanager
def _protected_lock... | 17 | 1 | 23 | 2 | 21 | 0 | 4 | 0.01 | 0 | 7 | 1 | 0 | 12 | 26 | 13 | 13 | 311 | 36 | 272 | 80 | 238 | 4 | 196 | 60 | 182 | 19 | 0 | 3 | 56 |
15,755 | Delgan/loguru | loguru/_handler.py | loguru._handler.Message | class Message(str):
__slots__ = ('record',) | class Message(str):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 66 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 2 | 0 | 0 |
15,756 | Delgan/loguru | loguru/_logger.py | loguru._logger.Core | from ._colorizer import Colorizer, try_formatting
from ._locks_machinery import create_logger_lock
from . import _asyncio_loop, _colorama, _defaults, _filters
import threading
class Core:
def __init__(self):
levels = [Level('TRACE', _defaults.LOGURU_TRACE_NO, _defaults.LOGURU_TRACE_COLOR, _defaults.LOGURU... |
class Core:
def __init__(self):
pass
def __getstate__(self):
pass
def __setstate__(self, state):
pass | 4 | 0 | 27 | 2 | 24 | 1 | 1 | 0.04 | 0 | 3 | 1 | 0 | 3 | 13 | 3 | 3 | 83 | 7 | 73 | 19 | 69 | 3 | 25 | 19 | 21 | 1 | 0 | 0 | 3 |
15,757 | Delgan/loguru | loguru/_logger.py | loguru._logger.Logger | from ._better_exceptions import ExceptionFormatter
from threading import current_thread
import logging
import sys
from ._error_interceptor import ErrorInterceptor
from inspect import isclass, iscoroutinefunction, isgeneratorfunction
from ._recattrs import RecordException, RecordFile, RecordLevel, RecordProcess, RecordT... | null | 57 | 26 | 48 | 7 | 18 | 24 | 4 | 1.48 | 0 | 35 | 16 | 0 | 27 | 2 | 29 | 29 | 1,929 | 301 | 662 | 179 | 575 | 979 | 452 | 133 | 408 | 41 | 0 | 5 | 164 |
15,758 | Delgan/loguru | loguru/_recattrs.py | loguru._recattrs.RecordException | from collections import namedtuple
import pickle
class RecordException(namedtuple('RecordException', ('type', 'value', 'traceback'))):
"""A class representing an exception record with type, value and traceback.
Attributes
----------
type
The exception type
value
The exception value... |
class RecordException(namedtuple('RecordException', ('type', 'value', 'traceback'))):
'''A class representing an exception record with type, value and traceback.
Attributes
----------
type
The exception type
value
The exception value
traceback
The exception traceback
... | 5 | 4 | 8 | 0 | 5 | 3 | 2 | 0.5 | 1 | 1 | 0 | 0 | 2 | 0 | 3 | 8 | 31 | 2 | 20 | 9 | 13 | 10 | 17 | 6 | 13 | 2 | 1 | 1 | 5 |
15,759 | Delgan/loguru | loguru/_recattrs.py | loguru._recattrs.RecordFile | class RecordFile:
"""A class representing a file record with name and path.
Attributes
----------
name : str
The name of the file
path : str
The path to the file
"""
__slots__ = ('name', 'path')
def __init__(self, name, path):
"""Initialize a RecordFile instance... | class RecordFile:
'''A class representing a file record with name and path.
Attributes
----------
name : str
The name of the file
path : str
The path to the file
'''
def __init__(self, name, path):
'''Initialize a RecordFile instance.
Parameters
-----... | 4 | 4 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 2 | 3 | 3 | 12 | 3 | 9 | 7 | 5 | 0 | 9 | 7 | 5 | 1 | 0 | 0 | 3 |
15,760 | Delgan/loguru | loguru/_recattrs.py | loguru._recattrs.RecordLevel | class RecordLevel:
"""A class representing the logging level record with name, number and icon.
Attributes
----------
icon : str
The icon representing the log level
name : str
The name of the log level
no : int
The numeric value of the log level
"""
__slots__ = (... | class RecordLevel:
'''A class representing the logging level record with name, number and icon.
Attributes
----------
icon : str
The icon representing the log level
name : str
The name of the log level
no : int
The numeric value of the log level
'''
def __init__(... | 4 | 4 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 3 | 3 | 3 | 13 | 3 | 10 | 8 | 6 | 0 | 10 | 8 | 6 | 1 | 0 | 0 | 3 |
15,761 | Delgan/loguru | loguru/_recattrs.py | loguru._recattrs.RecordProcess | class RecordProcess:
"""A class representing a process record with ID and name.
Attributes
----------
id : int
The process ID
name : str
The process name
"""
__slots__ = ('id', 'name')
def __init__(self, id_, name):
"""Initialize a RecordProcess instance.
... | class RecordProcess:
'''A class representing a process record with ID and name.
Attributes
----------
id : int
The process ID
name : str
The process name
'''
def __init__(self, id_, name):
'''Initialize a RecordProcess instance.
Parameters
----------
... | 4 | 4 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 2 | 3 | 3 | 12 | 3 | 9 | 7 | 5 | 0 | 9 | 7 | 5 | 1 | 0 | 0 | 3 |
15,762 | Delgan/loguru | loguru/_recattrs.py | loguru._recattrs.RecordThread | class RecordThread:
"""A class representing a thread record with ID and name.
Attributes
----------
id : int
The thread ID
name : str
The thread name
"""
__slots__ = ('id', 'name')
def __init__(self, id_, name):
"""Initialize a RecordThread instance.
Pa... | class RecordThread:
'''A class representing a thread record with ID and name.
Attributes
----------
id : int
The thread ID
name : str
The thread name
'''
def __init__(self, id_, name):
'''Initialize a RecordThread instance.
Parameters
----------
... | 4 | 4 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 2 | 3 | 3 | 12 | 3 | 9 | 7 | 5 | 0 | 9 | 7 | 5 | 1 | 0 | 0 | 3 |
15,763 | Delgan/loguru | loguru/_simple_sinks.py | loguru._simple_sinks.AsyncSink | from ._asyncio_loop import get_running_loop, get_task_loop
import weakref
class AsyncSink:
"""A sink that handles asynchronous logging operations.
Parameters
----------
function
The async function to execute.
loop
The event loop to use.
error_interceptor
An interceptor ... |
class AsyncSink:
'''A sink that handles asynchronous logging operations.
Parameters
----------
function
The async function to execute.
loop
The event loop to use.
error_interceptor
An interceptor for handling errors.
'''
def __init__(self, function, loop, error_... | 9 | 5 | 7 | 0 | 6 | 1 | 2 | 0.15 | 0 | 3 | 0 | 0 | 7 | 4 | 7 | 7 | 55 | 9 | 41 | 19 | 32 | 6 | 41 | 19 | 32 | 3 | 0 | 1 | 14 |
15,764 | Delgan/loguru | loguru/_simple_sinks.py | loguru._simple_sinks.CallableSink | class CallableSink:
"""A sink that executes a callable function for each log message.
Parameters
----------
function
The function to call for each message.
"""
def __init__(self, function):
self._function = function
def write(self, message):
"""Write a message by c... | class CallableSink:
'''A sink that executes a callable function for each log message.
Parameters
----------
function
The function to call for each message.
'''
def __init__(self, function):
pass
def write(self, message):
'''Write a message by calling the function.
... | 5 | 4 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 4 | 4 | 12 | 3 | 9 | 6 | 4 | 0 | 9 | 6 | 4 | 1 | 0 | 0 | 4 |
15,765 | Delgan/loguru | loguru/_simple_sinks.py | loguru._simple_sinks.StandardSink | import logging
class StandardSink:
"""A sink that writes log messages using the standard logging module.
Parameters
----------
handler
A logging handler instance.
"""
def __init__(self, handler):
self._handler = handler
def write(self, message):
"""Write a message... |
class StandardSink:
'''A sink that writes log messages using the standard logging module.
Parameters
----------
handler
A logging handler instance.
'''
def __init__(self, handler):
pass
def write(self, message):
'''Write a message using the standard logging handler... | 5 | 4 | 8 | 1 | 6 | 1 | 2 | 0.19 | 0 | 1 | 0 | 0 | 4 | 1 | 4 | 4 | 36 | 5 | 26 | 9 | 21 | 5 | 16 | 9 | 11 | 3 | 0 | 1 | 6 |
15,766 | Delgan/loguru | loguru/_simple_sinks.py | loguru._simple_sinks.StreamSink | import inspect
class StreamSink:
"""A sink that writes log messages to a stream object.
Parameters
----------
stream
A stream object that supports write operations.
"""
def __init__(self, stream):
self._stream = stream
self._flushable = callable(getattr(stream, 'flush'... |
class StreamSink:
'''A sink that writes log messages to a stream object.
Parameters
----------
stream
A stream object that supports write operations.
'''
def __init__(self, stream):
pass
def write(self, message):
'''Write a message to the stream.
Parameters... | 5 | 4 | 4 | 0 | 4 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 4 | 4 | 4 | 4 | 20 | 3 | 17 | 9 | 12 | 0 | 17 | 9 | 12 | 2 | 0 | 1 | 7 |
15,767 | Delgan/loguru | loguru/_string_parsers.py | loguru._string_parsers.Frequencies | import datetime
class Frequencies:
"""Provide static methods to compute the next occurrence of various time frequencies.
Includes hourly, daily, weekly, monthly, and yearly frequencies
based on a given datetime object.
"""
@staticmethod
def hourly(t: datetime.datetime) -> datetime.datetime:
... |
class Frequencies:
'''Provide static methods to compute the next occurrence of various time frequencies.
Includes hourly, daily, weekly, monthly, and yearly frequencies
based on a given datetime object.
'''
@staticmethod
def hourly(t: datetime.datetime) -> datetime.datetime:
'''Compute ... | 11 | 6 | 4 | 0 | 4 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 | 5 | 28 | 4 | 24 | 16 | 13 | 0 | 18 | 11 | 12 | 2 | 0 | 1 | 6 |
15,768 | Delgan/loguru | tests/exceptions/source/diagnose/multilines_repr.py | multilines_repr.A | class A:
def __repr__(self):
return '[[1, 2, 3]\n [4, 5, 6]\n [7, 8, 9]]' | class A:
def __repr__(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
15,769 | Delgan/loguru | tests/exceptions/source/diagnose/parenthesis.py | parenthesis.XYZ | class XYZ:
pass | class XYZ:
pass | 1 | 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 |
15,770 | Delgan/loguru | tests/exceptions/source/diagnose/unprintable_object.py | unprintable_object.Object | class Object:
def __repr__(self):
raise RuntimeError('No way!') | class Object:
def __repr__(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
15,771 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/application/application.py | gooey.gui.application.application.RGooey | from json import JSONDecodeError
from rewx.core import Component, Ref
from rewx import wsx
from gooey.gui.state import initial_state, ProgressEvent, TimingEvent
from rewx import components as c
from gooey import Events
import sys
from gooey.gui.components import modals
from gooey.gui.processor import ProcessController
... |
class RGooey(Component):
'''
Main Application container for Gooey.
State Management
----------------
Pending further refactor, state is tracked in two places:
1. On this instance (React style)
2. In the WX Form Elements themselves[0]
As needed, these two states are merged to form the `F... | 29 | 8 | 10 | 0 | 8 | 1 | 2 | 0.23 | 1 | 17 | 12 | 0 | 24 | 9 | 24 | 24 | 321 | 57 | 215 | 50 | 186 | 49 | 145 | 48 | 116 | 4 | 1 | 2 | 51 |
15,772 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/application/components.py | gooey.gui.application.components.HeaderProps | from typing_extensions import TypedDict
class HeaderProps(TypedDict):
background_color: str
title: str
show_title: bool
subtitle: str
show_subtitle: bool |
class HeaderProps(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
15,773 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/application/components.py | gooey.gui.application.components.RFooter | import wx
from rewx import wsx, mount, update
from gooey.gui.pubsub import pub
from gooey.gui.state import present_time
from gooey.gui.lang.i18n import _
from rewx.core import Component, Ref
from rewx import components as c
class RFooter(Component):
def __init__(self, props):
super().__init__(props)
... |
class RFooter(Component):
def __init__(self, props):
pass
def component_did_mount(self):
'''
We have to manually wire up LEFT_DOWN handlers
for every component due to wx limitations.
See: mouse.py docs for background.
'''
pass
def handle(self, btn)... | 6 | 1 | 9 | 0 | 8 | 1 | 1 | 0.12 | 1 | 1 | 0 | 0 | 4 | 1 | 4 | 4 | 49 | 3 | 41 | 8 | 35 | 5 | 13 | 8 | 7 | 1 | 1 | 0 | 5 |
15,774 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/application/components.py | gooey.gui.application.components.RHeader | import wx
from rewx import wsx, mount, update
from rewx.core import Component, Ref
from rewx import components as c
class RHeader(Component):
def __init__(self, props):
super().__init__(props)
self.parentRef = Ref()
def component_did_mount(self):
attach_notifier(self.parentRef.instanc... |
class RHeader(Component):
def __init__(self, props):
pass
def component_did_mount(self):
pass
def render(self):
pass | 4 | 0 | 11 | 0 | 11 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 3 | 1 | 3 | 3 | 37 | 2 | 35 | 6 | 31 | 0 | 11 | 6 | 7 | 2 | 1 | 1 | 4 |
15,775 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/application/components.py | gooey.gui.application.components.RNavbar | from rewx.core import Component, Ref
from rewx import wsx, mount, update
class RNavbar(Component):
def __init__(self, props):
super().__init__(props)
def render(self):
return wsx() |
class RNavbar(Component):
def __init__(self, props):
pass
def render(self):
pass | 3 | 0 | 3 | 1 | 3 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 14 | 2 | 6 | 3 | 3 | 6 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
15,776 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/application/components.py | gooey.gui.application.components.TitleText | from rewx import components as c
from rewx import wsx, mount, update
from rewx.core import Component, Ref
import wx
from gooey.gui.three_to_four import Constants
class TitleText(Component):
def __init__(self, props):
super().__init__(props)
self.ref = Ref()
def component_did_mount(self):
... |
class TitleText(Component):
def __init__(self, props):
pass
def component_did_mount(self):
pass
def render(self):
pass | 4 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 3 | 1 | 3 | 3 | 18 | 2 | 16 | 7 | 12 | 0 | 10 | 7 | 6 | 1 | 1 | 0 | 3 |
15,777 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/config.py | gooey.gui.components.config.ConfigPage | from gooey.gui.components.util.wrapped_static_text import AutoWrappedStaticText
from gooey.gui.lang.i18n import _
from typing import Mapping, List
from wx.lib.scrolledpanel import ScrolledPanel
from gooey.gui.components.mouse import notifyMouseEvent
import wx
from gooey.util.functional import getin, flatmap, indexuniqu... |
class ConfigPage(ScrolledPanel):
def __init__(self, parent, rawWidgets, buildSpec, *args, **kwargs):
pass
def getName(self, group):
'''
retrieve the group name from the group object while accounting for
legacy fixed-name manual translation requirements.
'''
pas... | 22 | 4 | 9 | 1 | 7 | 1 | 2 | 0.17 | 1 | 5 | 1 | 1 | 21 | 4 | 21 | 21 | 231 | 48 | 156 | 66 | 133 | 27 | 143 | 66 | 120 | 11 | 1 | 3 | 50 |
15,778 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/config.py | gooey.gui.components.config.TabbedConfigPage | from gooey.gui.lang.i18n import _
import wx
class TabbedConfigPage(ConfigPage):
"""
Splits top-level groups across tabs
"""
def layoutComponent(self):
self.notebook = wx.Notebook(self, style=wx.BK_DEFAULT)
panels = [wx.Panel(self.notebook) for _ in self.rawWidgets['contents']]
... |
class TabbedConfigPage(ConfigPage):
'''
Splits top-level groups across tabs
'''
def layoutComponent(self):
pass
def snapToErrorTab(self):
pass | 3 | 1 | 11 | 2 | 8 | 1 | 2 | 0.24 | 1 | 1 | 0 | 0 | 2 | 1 | 2 | 23 | 28 | 7 | 17 | 8 | 14 | 4 | 17 | 8 | 14 | 2 | 2 | 1 | 3 |
15,779 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/console.py | gooey.gui.components.console.Console | import wx
import webbrowser
from .widgets.basictextconsole import BasicTextConsole
from gooey.gui.lang.i18n import _
class Console(wx.Panel):
"""
Textbox console/terminal displayed during the client program's execution.
"""
self_managed = True
def __init__(self, parent, buildSpec, **kwargs):
... |
class Console(wx.Panel):
'''
Textbox console/terminal displayed during the client program's execution.
'''
def __init__(self, parent, buildSpec, **kwargs):
pass
def evtUrl(self, event):
pass
def getFontStyle(self):
'''
Force wx.Modern style to support legacy
... | 10 | 6 | 8 | 1 | 6 | 2 | 1 | 0.36 | 1 | 2 | 2 | 0 | 9 | 4 | 9 | 9 | 94 | 19 | 56 | 18 | 45 | 20 | 42 | 18 | 31 | 2 | 1 | 1 | 13 |
15,780 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/dialogs.py | gooey.gui.components.dialogs.HtmlDialog | import wx
import wx.html2
from rewx import wsx, render
class HtmlDialog(wx.Dialog):
"""
A MessageDialog where the central contents are an HTML window
customizable by the user.
"""
def __init__(self, *args, **kwargs):
caption = kwargs.pop('caption', '')
html = kwargs.pop('html', '')... |
class HtmlDialog(wx.Dialog):
'''
A MessageDialog where the central contents are an HTML window
customizable by the user.
'''
def __init__(self, *args, **kwargs):
pass | 2 | 1 | 18 | 3 | 12 | 3 | 1 | 0.54 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 23 | 3 | 13 | 6 | 11 | 7 | 13 | 6 | 11 | 1 | 1 | 0 | 1 |
15,781 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/filtering/prefix_filter.py | gooey.gui.components.filtering.prefix_filter.OperatorType | class OperatorType:
AND = 'AND'
OR = 'OR' | class OperatorType:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
15,782 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/filtering/prefix_filter.py | gooey.gui.components.filtering.prefix_filter.PrefixSearch | import pygtrie as trie
from functools import reduce
import re
class PrefixSearch(object):
"""
A trie backed index for quickly finding substrings
in a list of options.
"""
def __init__(self, choices, options={}, *args, **kwargs):
self.choices = sorted(filter(None, choices))
self.opt... |
class PrefixSearch(object):
'''
A trie backed index for quickly finding substrings
in a list of options.
'''
def __init__(self, choices, options={}, *args, **kwargs):
pass
def updateChoices(self, choices):
pass
def findMatches(self, token):
pass
def tokenizeI... | 9 | 3 | 7 | 0 | 5 | 2 | 2 | 0.39 | 1 | 6 | 1 | 0 | 8 | 3 | 8 | 8 | 68 | 11 | 41 | 20 | 32 | 16 | 38 | 20 | 29 | 4 | 1 | 3 | 16 |
15,783 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/filtering/prefix_filter.py | gooey.gui.components.filtering.prefix_filter.PrefixTokenizers | class PrefixTokenizers:
ENTIRE_PHRASE = '::gooey/tokenization/entire-phrase'
WORDS = '\\s'
@classmethod
def REGEX(cls, expression):
return expression | class PrefixTokenizers:
@classmethod
def REGEX(cls, expression):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 10 | 1 | 6 | 5 | 3 | 3 | 5 | 4 | 3 | 1 | 0 | 0 | 1 |
15,784 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/filtering/prefix_filter.py | gooey.gui.components.filtering.prefix_filter.SearchOptions | class SearchOptions:
def __init__(self, choice_tokenizer=PrefixTokenizers.ENTIRE_PHRASE, input_tokenizer=PrefixTokenizers.ENTIRE_PHRASE, ignore_case=True, operator='AND', index_suffix=False, **kwargs):
self.choice_tokenizer = choice_tokenizer
self.input_tokenizer = input_tokenizer
self.igno... | class SearchOptions:
def __init__(self, choice_tokenizer=PrefixTokenizers.ENTIRE_PHRASE, input_tokenizer=PrefixTokenizers.ENTIRE_PHRASE, ignore_case=True, operator='AND', index_suffix=False, **kwargs):
pass | 2 | 0 | 12 | 0 | 12 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 5 | 1 | 1 | 13 | 0 | 13 | 13 | 5 | 0 | 7 | 7 | 5 | 1 | 0 | 0 | 1 |
15,785 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/footer.py | gooey.gui.components.footer.Footer | import wx
import sys
from gooey.gui.pubsub import pub
from gooey.gui.components.mouse import notifyMouseEvent
from gooey.gui.lang.i18n import _
from gooey.gui import events
class Footer(wx.Panel):
"""
Footer section used on the configuration
screen of the application
"""
def __init__(self, parent,... |
class Footer(wx.Panel):
'''
Footer section used on the configuration
screen of the application
'''
def __init__(self, parent, buildSpec, **kwargs):
pass
def updateTimeRemaining(self, *args, **kwargs):
pass
def updateProgressBar(self, *args, **kwargs):
'''
... | 10 | 2 | 15 | 2 | 12 | 1 | 2 | 0.16 | 1 | 1 | 0 | 0 | 9 | 11 | 9 | 9 | 151 | 29 | 105 | 30 | 95 | 17 | 92 | 30 | 82 | 6 | 1 | 4 | 22 |
15,786 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/header.py | gooey.gui.components.header.FrameHeader | from gooey.gui import imageutil, image_repository
import wx
from gooey.gui.components.mouse import notifyMouseEvent
from gooey.gui.util import wx_util
class FrameHeader(wx.Panel):
def __init__(self, parent, buildSpec, **kwargs):
wx.Panel.__init__(self, parent, **kwargs)
self.SetDoubleBuffered(True... |
class FrameHeader(wx.Panel):
def __init__(self, parent, buildSpec, **kwargs):
pass
def setTitle(self, title):
pass
def setSubtitle(self, subtitle):
pass
def setImage(self, image):
pass
def layoutComponent(self):
pass
def _load_image(self, imgPath, t... | 9 | 1 | 11 | 1 | 10 | 1 | 2 | 0.05 | 1 | 0 | 0 | 0 | 8 | 8 | 8 | 8 | 104 | 21 | 79 | 27 | 70 | 4 | 70 | 27 | 61 | 3 | 1 | 1 | 12 |
15,787 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/menubar.py | gooey.gui.components.menubar.MenuBar | from gooey.gui.components.dialogs import HtmlDialog
import webbrowser
from functools import partial
from gooey.gui import three_to_four
import wx
class MenuBar(wx.MenuBar):
"""
Wx.MenuBar handles converting the users list of Menu Groups into
concrete wx.Menu instances.
"""
def __init__(self, build... |
class MenuBar(wx.MenuBar):
'''
Wx.MenuBar handles converting the users list of Menu Groups into
concrete wx.Menu instances.
'''
def __init__(self, buildSpec, *args, **kwargs):
pass
def makeMenuItems(self, menuGroups):
'''
Assign the menu groups list to wx.Menu instance... | 8 | 6 | 9 | 0 | 6 | 2 | 2 | 0.49 | 1 | 3 | 1 | 0 | 7 | 1 | 7 | 7 | 78 | 14 | 43 | 18 | 35 | 21 | 29 | 18 | 21 | 3 | 1 | 2 | 11 |
15,788 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/options/validators.py | gooey.gui.components.options.validators.SuperBool | class SuperBool(object):
"""
A boolean which keeps with it the rationale
for when it is false.
"""
def __init__(self, value, rationale):
self.value = value
self.rationale = rationale
def __bool__(self):
return self.value
__nonzero__ = __bool__
def __str__(self)... | class SuperBool(object):
'''
A boolean which keeps with it the rationale
for when it is false.
'''
def __init__(self, value, rationale):
pass
def __bool__(self):
pass
def __str__(self):
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.44 | 1 | 1 | 0 | 0 | 3 | 2 | 3 | 3 | 16 | 3 | 9 | 7 | 5 | 4 | 9 | 7 | 5 | 1 | 1 | 0 | 3 |
15,789 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/sidebar.py | gooey.gui.components.sidebar.Sidebar | from gooey.gui.util import wx_util
import wx
class Sidebar(wx.Panel):
"""
Sidebar handles the show/hide logic so that it mirrors the functionality
of the wx.Notebook class (which wants to control everything)
"""
def __init__(self, parent, buildSpec, configPanels, *args, **kwargs):
super(Si... |
class Sidebar(wx.Panel):
'''
Sidebar handles the show/hide logic so that it mirrors the functionality
of the wx.Notebook class (which wants to control everything)
'''
def __init__(self, parent, buildSpec, configPanels, *args, **kwargs):
pass
def getSelectedGroup(self):
'''... | 7 | 4 | 11 | 1 | 8 | 1 | 2 | 0.2 | 1 | 3 | 0 | 0 | 6 | 8 | 6 | 6 | 78 | 17 | 51 | 20 | 44 | 10 | 51 | 20 | 44 | 4 | 1 | 1 | 10 |
15,790 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/tabbar.py | gooey.gui.components.tabbar.Tabbar | import wx
class Tabbar(wx.Panel):
def __init__(self, parent, buildSpec, configPanels, *args, **kwargs):
super(Tabbar, self).__init__(parent, *args, **kwargs)
self._parent = parent
self.notebook = wx.Notebook(self, style=wx.BK_DEFAULT)
self.buildSpec = buildSpec
self.configP... |
class Tabbar(wx.Panel):
def __init__(self, parent, buildSpec, configPanels, *args, **kwargs):
pass
def layoutComponent(self):
pass
def getSelectedGroup(self):
pass
def getActiveConfig(self):
pass
def show(self, b):
pass | 6 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 5 | 5 | 5 | 5 | 30 | 6 | 24 | 13 | 18 | 0 | 24 | 13 | 18 | 2 | 1 | 1 | 6 |
15,791 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/util/wrapped_static_text.py | gooey.gui.components.util.wrapped_static_text.AutoWrappedStaticText | from wx.lib.wordwrap import wordwrap
import wx
class AutoWrappedStaticText(wx.StaticText):
"""
Copy/pasta of wx.lib.agw.infobar.AutoWrapStaticText with 3 modifications:
1. Extends wx.StaticText rather than GenStaticText
2. Does not set the fore/background colors to sys defaults
3. take... |
class AutoWrappedStaticText(wx.StaticText):
'''
Copy/pasta of wx.lib.agw.infobar.AutoWrapStaticText with 3 modifications:
1. Extends wx.StaticText rather than GenStaticText
2. Does not set the fore/background colors to sys defaults
3. takes an optional `target` parameter for sizing info... | 5 | 4 | 16 | 4 | 6 | 6 | 2 | 1.62 | 1 | 1 | 0 | 0 | 4 | 3 | 4 | 4 | 92 | 24 | 26 | 10 | 21 | 42 | 25 | 10 | 20 | 2 | 1 | 1 | 7 |
15,792 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/widgets/CheckBox.py | gooey.gui.components.widgets.CheckBox.BlockCheckbox | from gooey.gui.lang.i18n import _
import wx
from gooey.gui.util import wx_util
class BlockCheckbox(CheckBox):
"""
A block style layout which places the help text in the normal
location rather than inline next to the checkbox. A replacement label
called `block_label` is shown next to the checkbox contro... |
class BlockCheckbox(CheckBox):
'''
A block style layout which places the help text in the normal
location rather than inline next to the checkbox. A replacement label
called `block_label` is shown next to the checkbox control.
+-----------------+
|label |
|help_tex... | 2 | 1 | 33 | 7 | 26 | 0 | 3 | 0.44 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 37 | 49 | 10 | 27 | 5 | 25 | 12 | 25 | 5 | 23 | 3 | 4 | 1 | 3 |
15,793 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/widgets/CheckBox.py | gooey.gui.components.widgets.CheckBox.CheckBox | import wx
from gooey.gui.components.widgets.bases import TextContainer
from gooey.python_bindings import types as t
from gooey.gui.util import wx_util
from gooey.gui import formatters
class CheckBox(TextContainer):
widget_class = wx.CheckBox
def arrange(self, *args, **kwargs):
wx_util.make_bold(self.l... |
class CheckBox(TextContainer):
def arrange(self, *args, **kwargs):
pass
def setValue(self, value):
pass
def getWidgetValue(self):
pass
def formatOutput(self, metatdata, value):
pass
def hideInput(self):
pass
def getUiState(self) -> t.FormField:
... | 8 | 0 | 7 | 0 | 7 | 0 | 1 | 0.04 | 1 | 1 | 1 | 1 | 7 | 1 | 7 | 36 | 65 | 15 | 50 | 13 | 42 | 2 | 41 | 12 | 33 | 3 | 3 | 1 | 9 |
15,794 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/widgets/bases.py | gooey.gui.components.widgets.bases.BaseChooser | from gooey.python_bindings import types as t
from gooey.gui import formatters, events
import wx
class BaseChooser(TextContainer):
""" Base Class for the Chooser widget types """
def setValue(self, value):
self.widget.setValue(value)
def setPlaceholder(self, value):
self.widget.SetHint(val... |
class BaseChooser(TextContainer):
''' Base Class for the Chooser widget types '''
def setValue(self, value):
pass
def setPlaceholder(self, value):
pass
def getWidgetValue(self):
pass
def formatOutput(self, metatdata, value):
pass
def getUiState(self) -> t.Fo... | 6 | 1 | 4 | 0 | 4 | 0 | 1 | 0.1 | 1 | 1 | 1 | 8 | 5 | 1 | 5 | 34 | 26 | 5 | 20 | 8 | 14 | 2 | 12 | 7 | 6 | 1 | 3 | 0 | 5 |
15,795 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/widgets/bases.py | gooey.gui.components.widgets.bases.BaseWidget | import wx
from typing import Optional, Callable, Any, Type, Union
class BaseWidget(wx.Panel):
widget_class: Any
def arrange(self, label, text):
raise NotImplementedError
def getWidget(self, parent: wx.Window, **options):
return self.widget_class(parent, **options)
def connectSignal(s... |
class BaseWidget(wx.Panel):
def arrange(self, label, text):
pass
def getWidget(self, parent: wx.Window, **options):
pass
def connectSignal(self):
pass
def getSublayout(self, *args, **kwargs):
pass
def setValue(self, value):
pass
def setPlaceholder(s... | 10 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 2 | 9 | 0 | 9 | 9 | 29 | 9 | 20 | 10 | 10 | 0 | 20 | 10 | 10 | 1 | 1 | 0 | 9 |
15,796 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/widgets/bases.py | gooey.gui.components.widgets.bases.TextContainer | from gooey.python_bindings import types as t
from gooey.gui.util import wx_util
from gooey.gui.components.mouse import notifyMouseEvent
import re
from typing import Optional, Callable, Any, Type, Union
from gooey.python_bindings.types import FormField
from gooey.gui.components.util.wrapped_static_text import AutoWrappe... |
class TextContainer(BaseWidget):
def __init__(self, parent, widgetInfo, *args, **kwargs):
pass
def onComponentInitialized(self):
pass
def bindMouseEvents(self):
'''
Send any LEFT DOWN mouse events to interested
listeners via pubsub. see: gooey.gui.mouse for backgr... | 21 | 1 | 8 | 1 | 7 | 1 | 2 | 0.24 | 1 | 7 | 3 | 9 | 20 | 10 | 20 | 29 | 194 | 33 | 133 | 40 | 112 | 32 | 108 | 40 | 87 | 5 | 2 | 1 | 33 |
15,797 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/widgets/basictextconsole.py | gooey.gui.components.widgets.basictextconsole.BasicTextConsole | import wx
class BasicTextConsole(wx.TextCtrl):
def __init__(self, parent):
super(BasicTextConsole, self).__init__(parent, -1, '', style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_RICH | wx.TE_AUTO_URL) |
class BasicTextConsole(wx.TextCtrl):
def __init__(self, parent):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
15,798 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/widgets/checkbox.py | gooey.gui.components.widgets.checkbox.BlockCheckbox | import wx
from gooey.gui.util import wx_util
from gooey.gui.lang.i18n import _
class BlockCheckbox(CheckBox):
"""
A block style layout which places the help text in the normal
location rather than inline next to the checkbox. A replacement label
called `block_label` is shown next to the checkbox contro... |
class BlockCheckbox(CheckBox):
'''
A block style layout which places the help text in the normal
location rather than inline next to the checkbox. A replacement label
called `block_label` is shown next to the checkbox control.
+-----------------+
|label |
|help_tex... | 2 | 1 | 33 | 7 | 26 | 0 | 3 | 0.44 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 37 | 49 | 10 | 27 | 5 | 25 | 12 | 25 | 5 | 23 | 3 | 4 | 1 | 3 |
15,799 | chriskiehl/Gooey | chriskiehl_Gooey/gooey/gui/components/widgets/checkbox.py | gooey.gui.components.widgets.checkbox.CheckBox | from gooey.gui.components.widgets.bases import TextContainer
import wx
from gooey.gui.util import wx_util
from gooey.python_bindings import types as t
from gooey.gui import formatters
class CheckBox(TextContainer):
widget_class = wx.CheckBox
def arrange(self, *args, **kwargs):
wx_util.make_bold(self.l... |
class CheckBox(TextContainer):
def arrange(self, *args, **kwargs):
pass
def setValue(self, value):
pass
def getWidgetValue(self):
pass
def formatOutput(self, metatdata, value):
pass
def hideInput(self):
pass
def getUiState(self) -> t.FormField:
... | 8 | 0 | 7 | 0 | 7 | 0 | 1 | 0.04 | 1 | 1 | 1 | 1 | 7 | 1 | 7 | 36 | 65 | 15 | 50 | 13 | 42 | 2 | 41 | 12 | 33 | 3 | 3 | 1 | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.