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
13,000
SeleniumHQ/selenium
py/selenium/webdriver/common/keys.py
selenium.webdriver.common.keys.Keys
class Keys: """Set of special key codes for input actions. Primarily intended for keyboard usage, but also applied in other contexts such as Action Chains and IME interactions. """ NULL = '\ue000' CANCEL = '\ue001' HELP = '\ue002' BACKSPACE = '\ue003' BACK_SPACE = BACKSPACE TAB ...
class Keys: '''Set of special key codes for input actions. Primarily intended for keyboard usage, but also applied in other contexts such as Action Chains and IME interactions. ''' pass
1
1
0
0
0
0
0
0.06
0
0
0
0
0
0
0
0
71
4
66
66
65
4
66
66
65
0
0
0
0
13,001
SeleniumHQ/selenium
py/selenium/webdriver/common/log.py
selenium.webdriver.common.log.Log
import pkgutil from collections.abc import AsyncGenerator from selenium.webdriver.common.by import By import json from typing import Any, Optional from contextlib import asynccontextmanager class Log: """This class allows access to logging APIs that use the new WebDriver Bidi protocol. This class is not t...
class Log: '''This class allows access to logging APIs that use the new WebDriver Bidi protocol. This class is not to be used directly and should be used from the webdriver base classes. ''' def __init__(self, driver, bidi_session) -> None: pass @asynccontextmanager async d...
8
4
25
4
14
8
2
0.61
0
7
2
0
4
5
4
4
115
20
59
29
50
36
54
23
48
2
0
1
7
13,002
SeleniumHQ/selenium
py/selenium/webdriver/common/options.py
selenium.webdriver.common.options.ArgOptions
import warnings class ArgOptions(BaseOptions): BINARY_LOCATION_ERROR = 'Binary Location Must be a String' FEDCM_CAPABILITY = 'fedcm:accounts' def __init__(self) -> None: super().__init__() self._arguments: list[str] = [] @property def arguments(self): """:Returns: A list o...
class ArgOptions(BaseOptions): def __init__(self) -> None: pass @property def arguments(self): ''':Returns: A list of arguments needed for the browser.''' pass def add_argument(self, argument: str) -> None: '''Adds an argument to the list. :Args: - Set...
9
3
6
0
4
1
1
0.28
1
3
0
6
6
1
6
33
45
8
29
12
20
8
19
10
12
2
4
1
7
13,003
SeleniumHQ/selenium
py/selenium/webdriver/common/options.py
selenium.webdriver.common.options.BaseOptions
from typing import Optional from abc import ABCMeta, abstractmethod class BaseOptions(metaclass=ABCMeta): """Base class for individual browser options.""" browser_version = _BaseOptionsDescriptor('browserVersion') 'Gets and Sets the version of the browser.\n\n Usage:\n ------\n - Get\n - `s...
class BaseOptions(metaclass=ABCMeta): '''Base class for individual browser options.''' def __init__(self) -> None: pass @property def capabilities(self): pass def set_capability(self, name, value) -> None: '''Sets a capability.''' pass def enable_mobile(self, ...
12
6
5
0
4
1
1
5.07
1
4
1
1
7
4
7
27
339
60
46
32
29
233
37
24
29
4
3
1
10
13,004
SeleniumHQ/selenium
py/selenium/webdriver/common/options.py
selenium.webdriver.common.options.PageLoadStrategy
from enum import Enum class PageLoadStrategy(str, Enum): """Enum of possible page load strategies. Selenium support following strategies: * normal (default) - waits for all resources to download * eager - DOM access is ready, but other resources like images may still be loading * none ...
class PageLoadStrategy(str, Enum): '''Enum of possible page load strategies. Selenium support following strategies: * normal (default) - waits for all resources to download * eager - DOM access is ready, but other resources like images may still be loading * none - does not block `WebDr...
1
1
0
0
0
0
0
1.75
2
0
0
0
0
0
0
115
14
3
4
4
3
7
4
4
3
0
4
0
0
13,005
SeleniumHQ/selenium
py/selenium/webdriver/common/options.py
selenium.webdriver.common.options._BaseOptionsDescriptor
class _BaseOptionsDescriptor: def __init__(self, name): self.name = name def __get__(self, obj, cls): if self.name == 'enableBidi': value = obj._caps.get('webSocketUrl') return value is True or isinstance(value, str) if self.name == 'webSocketUrl': v...
class _BaseOptionsDescriptor: def __init__(self, name): pass def __get__(self, obj, cls): pass def __set__(self, obj, value): pass
4
0
6
0
6
1
3
0.11
0
1
0
0
3
1
3
3
22
2
18
6
14
2
17
6
13
5
0
1
8
13,006
SeleniumHQ/selenium
py/selenium/webdriver/common/options.py
selenium.webdriver.common.options._PageLoadStrategyDescriptor
class _PageLoadStrategyDescriptor: """Determines the point at which a navigation command is returned: https://w3c.github.io/webdriver/#dfn-table-of-page-load-strategies. :param strategy: the strategy corresponding to a document readiness state """ def __init__(self, name): self.name = name...
class _PageLoadStrategyDescriptor: '''Determines the point at which a navigation command is returned: https://w3c.github.io/webdriver/#dfn-table-of-page-load-strategies. :param strategy: the strategy corresponding to a document readiness state ''' def __init__(self, name): pass def __g...
4
1
3
0
3
0
1
0.4
0
1
0
0
3
1
3
3
18
4
10
5
6
4
9
5
5
2
0
1
4
13,007
SeleniumHQ/selenium
py/selenium/webdriver/common/options.py
selenium.webdriver.common.options._ProxyDescriptor
from selenium.webdriver.common.proxy import Proxy from selenium.common.exceptions import InvalidArgumentException class _ProxyDescriptor: """:Returns: Proxy if set, otherwise None.""" def __init__(self, name): self.name = name def __get__(self, obj, cls): return obj._proxy def __set_...
class _ProxyDescriptor: ''':Returns: Proxy if set, otherwise None.''' def __init__(self, name): pass def __get__(self, obj, cls): pass def __set__(self, obj, value): pass
4
1
3
0
3
0
1
0.1
0
2
2
0
3
1
3
3
14
3
10
5
6
1
10
5
6
2
0
1
4
13,008
SeleniumHQ/selenium
py/selenium/webdriver/common/options.py
selenium.webdriver.common.options._TimeoutsDescriptor
class _TimeoutsDescriptor: """How long the driver should wait for actions to complete before: returning an error https://w3c.github.io/webdriver/#timeouts: :param timeouts: values in milliseconds for implicit wait, page load and script timeout :returns: Values for implicit timeout, pageLoad timeout an...
class _TimeoutsDescriptor: '''How long the driver should wait for actions to complete before: returning an error https://w3c.github.io/webdriver/#timeouts: :param timeouts: values in milliseconds for implicit wait, page load and script timeout :returns: Values for implicit timeout, pageLoad timeout and ...
4
1
3
0
3
0
1
0.5
0
1
0
0
3
1
3
3
20
5
10
5
6
5
9
5
5
2
0
1
4
13,009
SeleniumHQ/selenium
py/selenium/webdriver/common/options.py
selenium.webdriver.common.options._UnHandledPromptBehaviorDescriptor
class _UnHandledPromptBehaviorDescriptor: """How the driver should respond when an alert is present and the: command sent is not handling the alert: https://w3c.github.io/webdriver/#dfn-table-of-page-load-strategies: :param behavior: behavior to use when an alert is encountered :returns: Values fo...
class _UnHandledPromptBehaviorDescriptor: '''How the driver should respond when an alert is present and the: command sent is not handling the alert: https://w3c.github.io/webdriver/#dfn-table-of-page-load-strategies: :param behavior: behavior to use when an alert is encountered :returns: Values for ...
4
1
4
0
4
0
1
0.46
0
1
0
0
3
1
3
3
24
5
13
5
9
6
9
5
5
2
0
1
4
13,010
SeleniumHQ/selenium
py/selenium/webdriver/common/print_page_options.py
selenium.webdriver.common.print_page_options.PrintOptions
class PrintOptions: page_height = _PageSettingsDescriptor('height') 'Gets and Sets page_height:\n\n Usage\n -----\n - Get\n - `self.page_height`\n - Set\n - `self.page_height` = `value`\n\n Parameters:\n -----------\n `value`: `float`\n\n Returns:\n --------\n - Get\n...
class PrintOptions: def __init__(self) -> None: pass def to_dict(self) -> _PrintOpts: ''':Returns: A hash of print options configured.''' pass def set_page_size(self, page_size: dict) -> None: '''Sets the page size to predefined or custom dimensions. Parameters: ...
5
3
9
1
5
3
2
5.69
0
8
3
0
4
3
4
4
286
50
36
23
31
205
33
23
28
3
0
1
6
13,011
SeleniumHQ/selenium
py/selenium/webdriver/common/print_page_options.py
selenium.webdriver.common.print_page_options._MarginSettingsDescriptor
from typing import TYPE_CHECKING, Optional class _MarginSettingsDescriptor: """Descriptor which validates below attributes. - top - bottom - left - right """ def __init__(self, name): self.name = name def __get__(self, obj, cls) -> Optional[float]: return obj._margin....
class _MarginSettingsDescriptor: '''Descriptor which validates below attributes. - top - bottom - left - right ''' def __init__(self, name): pass def __get__(self, obj, cls) -> Optional[float]: pass def __set__(self, obj, value) -> None: pass
4
1
3
0
3
0
1
0.67
0
1
0
0
3
1
3
3
19
4
9
5
5
6
9
5
5
1
0
0
3
13,012
SeleniumHQ/selenium
py/selenium/webdriver/common/print_page_options.py
selenium.webdriver.common.print_page_options._PageOrientationDescriptor
from typing import TYPE_CHECKING, Optional class _PageOrientationDescriptor: """PageOrientation descriptor which validates orientation of page.""" ORIENTATION_VALUES = ['portrait', 'landscape'] def __init__(self, name): self.name = name def __get__(self, obj, cls) -> Optional[Orientation]: ...
class _PageOrientationDescriptor: '''PageOrientation descriptor which validates orientation of page.''' def __init__(self, name): pass def __get__(self, obj, cls) -> Optional[Orientation]: pass def __set__(self, obj, value) -> None: pass
4
1
3
0
3
0
1
0.1
0
1
0
0
3
1
3
3
15
4
10
6
6
1
10
6
6
2
0
1
4
13,013
SeleniumHQ/selenium
py/selenium/webdriver/common/print_page_options.py
selenium.webdriver.common.print_page_options._PageSettingsDescriptor
from typing import TYPE_CHECKING, Optional class _PageSettingsDescriptor: """Descriptor which validates `height` and 'width' of page.""" def __init__(self, name): self.name = name def __get__(self, obj, cls) -> Optional[float]: return obj._page.get(self.name, None) def __set__(self, ...
class _PageSettingsDescriptor: '''Descriptor which validates `height` and 'width' of page.''' def __init__(self, name): pass def __get__(self, obj, cls) -> Optional[float]: pass def __set__(self, obj, value) -> None: pass
4
1
3
0
3
0
1
0.11
0
1
0
0
3
1
3
3
13
3
9
5
5
1
9
5
5
1
0
0
3
13,014
SeleniumHQ/selenium
py/selenium/webdriver/common/print_page_options.py
selenium.webdriver.common.print_page_options._ScaleDescriptor
from typing import TYPE_CHECKING, Optional class _ScaleDescriptor: """Scale descriptor which validates scale.""" def __init__(self, name): self.name = name def __get__(self, obj, cls) -> Optional[float]: return obj._print_options.get(self.name) def __set__(self, obj, value) -> None: ...
class _ScaleDescriptor: '''Scale descriptor which validates scale.''' def __init__(self, name): pass def __get__(self, obj, cls) -> Optional[float]: pass def __set__(self, obj, value) -> None: pass
4
1
3
0
3
0
1
0.1
0
2
0
0
3
1
3
3
14
3
10
5
6
1
10
5
6
2
0
1
4
13,015
SeleniumHQ/selenium
py/selenium/webdriver/common/print_page_options.py
selenium.webdriver.common.print_page_options._ValidateBackGround
class _ValidateBackGround(_ValidateTypeDescriptor): """Expected type of background attribute.""" def __init__(self, name): super().__init__(name, bool)
class _ValidateBackGround(_ValidateTypeDescriptor): '''Expected type of background attribute.''' def __init__(self, name): pass
2
1
2
0
2
0
1
0.33
1
2
0
0
1
0
1
4
5
1
3
2
1
1
3
2
1
1
1
0
1
13,016
SeleniumHQ/selenium
py/selenium/webdriver/common/print_page_options.py
selenium.webdriver.common.print_page_options._ValidatePageRanges
class _ValidatePageRanges(_ValidateTypeDescriptor): """Expected type of page ranges attribute.""" def __init__(self, name): super().__init__(name, list)
class _ValidatePageRanges(_ValidateTypeDescriptor): '''Expected type of page ranges attribute.''' def __init__(self, name): pass
2
1
2
0
2
0
1
0.33
1
2
0
0
1
0
1
4
5
1
3
2
1
1
3
2
1
1
1
0
1
13,017
SeleniumHQ/selenium
py/selenium/webdriver/common/print_page_options.py
selenium.webdriver.common.print_page_options._ValidateShrinkToFit
class _ValidateShrinkToFit(_ValidateTypeDescriptor): """Expected type of shrink to fit attribute.""" def __init__(self, name): super().__init__(name, bool)
class _ValidateShrinkToFit(_ValidateTypeDescriptor): '''Expected type of shrink to fit attribute.''' def __init__(self, name): pass
2
1
2
0
2
0
1
0.33
1
2
0
0
1
0
1
4
5
1
3
2
1
1
3
2
1
1
1
0
1
13,018
SeleniumHQ/selenium
py/selenium/webdriver/common/print_page_options.py
selenium.webdriver.common.print_page_options._ValidateTypeDescriptor
class _ValidateTypeDescriptor: """Base Class Descriptor which validates type of any subclass attribute.""" def __init__(self, name, expected_type: type): self.name = name self.expected_type = expected_type def __get__(self, obj, cls): return obj._print_options.get(self.name, None) ...
class _ValidateTypeDescriptor: '''Base Class Descriptor which validates type of any subclass attribute.''' def __init__(self, name, expected_type: type): pass def __get__(self, obj, cls): pass def __set__(self, obj, value) -> None: pass
4
1
3
0
3
0
1
0.1
0
1
0
3
3
2
3
3
14
3
10
6
6
1
10
6
6
2
0
1
4
13,019
SeleniumHQ/selenium
py/selenium/webdriver/common/proxy.py
selenium.webdriver.common.proxy.Proxy
import warnings class Proxy: """Proxy contains information about proxy type and necessary proxy settings.""" proxyType = ProxyType.UNSPECIFIED autodetect = False ftpProxy = '' httpProxy = '' noProxy = '' proxyAutoconfigUrl = '' sslProxy = '' socksProxy = '' socksUsername = '...
class Proxy: '''Proxy contains information about proxy type and necessary proxy settings.''' def __init__(self, raw=None): '''Creates a new Proxy. :Args: - raw: raw proxy data. If None, default class values are used. ''' pass @property def proxy_type(self):...
9
5
13
0
11
2
4
1.58
0
2
1
0
5
0
5
5
237
38
77
33
69
122
62
31
56
13
0
2
20
13,020
SeleniumHQ/selenium
py/selenium/webdriver/common/proxy.py
selenium.webdriver.common.proxy.ProxyType
class ProxyType: """Set of possible types of proxy. Each proxy type has 2 properties: 'ff_value' is value of Firefox profile preference, 'string' is id of proxy type. """ DIRECT = ProxyTypeFactory.make(0, 'DIRECT') MANUAL = ProxyTypeFactory.make(1, 'MANUAL') PAC = ProxyTypeFactory.make(2, '...
class ProxyType: '''Set of possible types of proxy. Each proxy type has 2 properties: 'ff_value' is value of Firefox profile preference, 'string' is id of proxy type. ''' @classmethod def load(cls, value): pass
3
1
9
0
9
0
4
0.61
0
3
0
0
0
0
1
1
25
3
18
12
15
11
17
11
15
4
0
2
4
13,021
SeleniumHQ/selenium
py/selenium/webdriver/common/proxy.py
selenium.webdriver.common.proxy.ProxyTypeFactory
class ProxyTypeFactory: """Factory for proxy types.""" @staticmethod def make(ff_value, string): return {'ff_value': ff_value, 'string': string}
class ProxyTypeFactory: '''Factory for proxy types.''' @staticmethod def make(ff_value, string): pass
3
1
2
0
2
0
1
0.25
0
0
0
0
0
0
1
1
6
1
4
3
1
1
3
2
1
1
0
0
1
13,022
SeleniumHQ/selenium
py/selenium/webdriver/common/proxy.py
selenium.webdriver.common.proxy._ProxyTypeDescriptor
import warnings class _ProxyTypeDescriptor: def __init__(self, name, p_type): self.name = name self.p_type = p_type def __get__(self, obj, cls): return getattr(obj, self.name) def __set__(self, obj, value): if self.name == 'autodetect' and (not isinstance(value, bool)): ...
class _ProxyTypeDescriptor: def __init__(self, name, p_type): pass def __get__(self, obj, cls): pass def __set__(self, obj, value): pass
4
0
4
0
4
0
1
0
0
2
0
0
3
2
3
3
14
2
12
6
8
0
12
6
8
2
0
1
4
13,023
SeleniumHQ/selenium
py/selenium/webdriver/common/selenium_manager.py
selenium.webdriver.common.selenium_manager.SeleniumManager
from pathlib import Path import sysconfig import os import logging from selenium.common import WebDriverException import json import sys import platform import subprocess from typing import Optional class SeleniumManager: """Wrapper for getting information from the Selenium Manager binaries. This implementati...
class SeleniumManager: '''Wrapper for getting information from the Selenium Manager binaries. This implementation is still in beta, and may change. ''' def binary_paths(self, args: list) -> dict: '''Determines the locations of the requested assets. :Args: - args: the commands ...
8
4
24
4
17
4
5
0.24
0
5
1
0
1
0
4
4
108
21
70
23
62
17
54
18
49
8
0
2
19
13,024
SeleniumHQ/selenium
py/selenium/webdriver/common/service.py
selenium.webdriver.common.service.Service
from typing import IO, Any, Optional, Union, cast from collections.abc import Mapping from selenium.types import SubprocessStdAlias from time import sleep from urllib import request import sys from urllib.error import URLError from selenium.webdriver.common import utils from abc import ABC, abstractmethod import os fro...
class Service(ABC): '''The abstract base class for all service objects. Services typically launch a child program in a new process as an interim process to communicate with a browser. :param executable: install path of the executable. :param port: Port for the service to run on, defaults to 0 wher...
19
10
13
1
10
2
3
0.29
1
17
1
6
14
8
14
34
208
24
146
44
119
42
105
31
90
6
4
3
41
13,025
SeleniumHQ/selenium
py/selenium/webdriver/common/timeouts.py
selenium.webdriver.common.timeouts.Timeouts
class Timeouts: def __init__(self, implicit_wait: float=0, page_load: float=0, script: float=0) -> None: """Create a new Timeouts object. This implements https://w3c.github.io/webdriver/#timeouts. :Args: - implicit_wait - Either an int or a float. Set how many seconds...
class Timeouts: def __init__(self, implicit_wait: float=0, page_load: float=0, script: float=0) -> None: '''Create a new Timeouts object. This implements https://w3c.github.io/webdriver/#timeouts. :Args: - implicit_wait - Either an int or a float. Set how many seconds t...
4
1
11
1
6
4
2
2.43
0
4
1
0
3
3
3
3
90
18
21
11
17
51
21
11
17
4
0
1
7
13,026
SeleniumHQ/selenium
py/selenium/webdriver/common/timeouts.py
selenium.webdriver.common.timeouts._TimeoutsDescriptor
class _TimeoutsDescriptor: """Get or set the value of the attributes listed below. _implicit_wait _page_load _script This does not set the value on the remote end. """ def __init__(self, name): self.name = name def __get__(self, obj, cls) -> float: return getattr(obj, self.na...
class _TimeoutsDescriptor: '''Get or set the value of the attributes listed below. _implicit_wait _page_load _script This does not set the value on the remote end. ''' def __init__(self, name): pass def __get__(self, obj, cls) -> float: pass def __set__(self, obj, value) -...
4
1
2
0
2
0
1
0.5
0
1
0
0
3
1
3
3
17
5
8
6
4
4
8
6
4
1
0
0
3
13,027
SeleniumHQ/selenium
py/selenium/webdriver/common/virtual_authenticator.py
selenium.webdriver.common.virtual_authenticator.Credential
from base64 import urlsafe_b64decode, urlsafe_b64encode from typing import Any, Optional, Union class Credential: def __init__(self, credential_id: bytes, is_resident_credential: bool, rp_id: str, user_handle: Optional[bytes], private_key: bytes, sign_count: int): """Constructor. A credential stored in a ...
class Credential: def __init__(self, credential_id: bytes, is_resident_credential: bool, rp_id: str, user_handle: Optional[bytes], private_key: bytes, sign_count: int): '''Constructor. A credential stored in a virtual authenticator. https://w3c.github.io/webauthn/#credential-parameters. :A...
22
3
8
1
5
2
1
0.43
0
5
0
0
9
6
12
12
115
19
67
45
35
29
41
26
28
2
0
1
15
13,028
SeleniumHQ/selenium
py/selenium/webdriver/common/virtual_authenticator.py
selenium.webdriver.common.virtual_authenticator.Protocol
from enum import Enum class Protocol(str, Enum): """Protocol to communicate with the authenticator.""" CTAP2 = 'ctap2' U2F = 'ctap1/u2f'
class Protocol(str, Enum): '''Protocol to communicate with the authenticator.''' pass
1
1
0
0
0
0
0
0.33
2
0
0
0
0
0
0
115
5
1
3
3
2
1
3
3
2
0
4
0
0
13,029
SeleniumHQ/selenium
py/selenium/webdriver/common/virtual_authenticator.py
selenium.webdriver.common.virtual_authenticator.Transport
from enum import Enum class Transport(str, Enum): """Transport method to communicate with the authenticator.""" BLE = 'ble' USB = 'usb' NFC = 'nfc' INTERNAL = 'internal'
class Transport(str, Enum): '''Transport method to communicate with the authenticator.''' pass
1
1
0
0
0
0
0
0.2
2
0
0
0
0
0
0
115
7
1
5
5
4
1
5
5
4
0
4
0
0
13,030
SeleniumHQ/selenium
py/selenium/webdriver/common/virtual_authenticator.py
selenium.webdriver.common.virtual_authenticator.VirtualAuthenticatorOptions
from typing import Any, Optional, Union class VirtualAuthenticatorOptions: Protocol = Protocol Transport = Transport def __init__(self, protocol: str=Protocol.CTAP2, transport: str=Transport.USB, has_resident_key: bool=False, has_user_verification: bool=False, is_user_consenting: bool=True, is_user_verifi...
class VirtualAuthenticatorOptions: def __init__(self, protocol: str=Protocol.CTAP2, transport: str=Transport.USB, has_resident_key: bool=False, has_user_verification: bool=False, is_user_consenting: bool=True, is_user_verified: bool=False) -> None: '''Constructor. Initialize VirtualAuthenticatorOp...
3
1
15
1
12
2
1
0.19
0
2
0
0
2
6
2
2
36
4
27
19
16
5
12
11
9
1
0
0
2
13,031
SeleniumHQ/selenium
py/selenium/webdriver/common/window.py
selenium.webdriver.common.window.WindowTypes
class WindowTypes: """Set of supported window types.""" TAB = 'tab' WINDOW = 'window'
class WindowTypes: '''Set of supported window types.''' pass
1
1
0
0
0
0
0
0.33
0
0
0
0
0
0
0
0
5
1
3
3
2
1
3
3
2
0
0
0
0
13,032
SeleniumHQ/selenium
py/selenium/webdriver/edge/options.py
selenium.webdriver.edge.options.Options
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.chromium.options import ChromiumOptions class Options(ChromiumOptions): KEY = 'ms:edgeOptions' def __init__(self) -> None: super().__init__() self._use_webview = False @property def ...
class Options(ChromiumOptions): def __init__(self) -> None: pass @property def use_webview(self) -> bool: pass @use_webview.setter def use_webview(self) -> bool: pass def to_capabilities(self) -> dict: '''Creates a capabilities with all the options that have be...
9
1
3
0
3
0
1
0.11
1
4
1
0
5
1
5
50
27
6
19
12
10
2
16
9
10
2
6
1
6
13,033
SeleniumHQ/selenium
py/selenium/webdriver/edge/remote_connection.py
selenium.webdriver.edge.remote_connection.EdgeRemoteConnection
from selenium.webdriver import DesiredCapabilities from selenium.webdriver.remote.client_config import ClientConfig from selenium.webdriver.chromium.remote_connection import ChromiumRemoteConnection from typing import Optional class EdgeRemoteConnection(ChromiumRemoteConnection): browser_name = DesiredCapabilities...
class EdgeRemoteConnection(ChromiumRemoteConnection): def __init__(self, remote_server_addr: str, keep_alive: bool=True, ignore_proxy: Optional[bool]=False, client_config: Optional[ClientConfig]=None) -> None: pass
2
0
15
0
15
0
1
0
1
4
1
0
1
0
1
19
18
1
17
9
9
0
4
3
2
1
2
0
1
13,034
SeleniumHQ/selenium
py/selenium/webdriver/edge/service.py
selenium.webdriver.edge.service.Service
from selenium.types import SubprocessStdAlias from selenium.webdriver.chromium import service from collections.abc import Mapping, Sequence from typing import Optional class Service(service.ChromiumService): """A Service class that is responsible for the starting and stopping of `msedgedriver`. :param exe...
class Service(service.ChromiumService): '''A Service class that is responsible for the starting and stopping of `msedgedriver`. :param executable_path: install path of the msedgedriver executable, defaults to `msedgedriver`. :param port: Port for the service to run on, defaults to 0 where the operating...
6
1
22
1
21
0
1
0.41
1
3
0
0
1
1
1
37
34
3
22
12
11
9
5
3
3
1
6
0
1
13,035
SeleniumHQ/selenium
py/selenium/webdriver/edge/webdriver.py
selenium.webdriver.edge.webdriver.WebDriver
from selenium.webdriver.edge.options import Options from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from typing import Optional from selenium.webdriver.chromium.webdriver import ChromiumDriver from selenium.webdriver.edge.service import Service class WebDriver(ChromiumDriver): """Con...
class WebDriver(ChromiumDriver): '''Controls the MSEdgeDriver and allows you to drive the browser.''' def __init__(self, options: Optional[Options]=None, service: Optional[Service]=None, keep_alive: bool=True) -> None: '''Creates a new instance of the edge driver. Starts the service and then c...
2
2
24
2
15
7
3
0.5
1
5
3
0
1
0
1
122
27
3
16
7
9
8
5
2
3
3
6
0
3
13,036
SeleniumHQ/selenium
py/selenium/webdriver/firefox/firefox_binary.py
selenium.webdriver.firefox.firefox_binary.FirefoxBinary
from selenium.webdriver.common import utils from typing_extensions import deprecated from selenium.common.exceptions import WebDriverException from subprocess import DEVNULL, STDOUT, Popen import time import os import sys @deprecated('Use binary_location property in Firefox Options to set location') class FirefoxBinar...
@deprecated('Use binary_location property in Firefox Options to set location') class FirefoxBinary: def __init__(self, firefox_path=None, log_file=None): '''Creates a new instance of Firefox binary. :Args: - firefox_path - Path to the Firefox executable. By default, it will be detected fro...
14
6
15
1
12
2
3
0.18
0
5
1
0
12
7
12
12
199
25
149
48
129
27
121
48
101
8
0
3
39
13,037
SeleniumHQ/selenium
py/selenium/webdriver/firefox/firefox_profile.py
selenium.webdriver.firefox.firefox_profile.AddonFormatError
from typing_extensions import deprecated @deprecated('Addons must be added after starting the session') class AddonFormatError(Exception): """Exception for not well-formed add-on manifest files."""
@deprecated('Addons must be added after starting the session') class AddonFormatError(Exception): '''Exception for not well-formed add-on manifest files.''' pass
2
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
13,038
SeleniumHQ/selenium
py/selenium/webdriver/firefox/firefox_profile.py
selenium.webdriver.firefox.firefox_profile.FirefoxProfile
from selenium.common.exceptions import WebDriverException import os import shutil import json import warnings from typing_extensions import deprecated from io import BytesIO from xml.dom import minidom import copy import tempfile import re import zipfile import sys import base64 class FirefoxProfile: DEFAULT_PREFE...
class FirefoxProfile: def __init__(self, profile_directory=None): '''Initialises a new instance of a Firefox Profile. :args: - profile_directory: Directory of profile that you want to use. If a directory is passed in it will be cloned and the cloned directory will be...
36
12
16
1
12
3
4
0.23
0
12
2
0
15
3
15
15
286
40
203
80
167
46
170
61
151
16
0
4
63
13,039
SeleniumHQ/selenium
py/selenium/webdriver/firefox/options.py
selenium.webdriver.firefox.options.Log
class Log: def __init__(self) -> None: self.level = None def to_capabilities(self) -> dict: if self.level: return {'log': {'level': self.level}} return {}
class Log: def __init__(self) -> None: pass def to_capabilities(self) -> dict: pass
3
0
3
0
3
0
2
0
0
1
0
0
2
1
2
2
8
1
7
4
4
0
7
4
4
2
0
1
3
13,040
SeleniumHQ/selenium
py/selenium/webdriver/firefox/options.py
selenium.webdriver.firefox.options.Options
from selenium.webdriver.common.options import ArgOptions from selenium.webdriver.firefox.firefox_profile import FirefoxProfile from typing import Any, Optional, Union from selenium.webdriver.firefox.firefox_binary import FirefoxBinary from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from t...
class Options(ArgOptions): def __init__(self) -> None: pass @property @deprecated('use binary_location instead') def binary(self) -> FirefoxBinary: '''Returns the FirefoxBinary instance.''' pass @binary.setter @deprecated('use binary_location instead') def binary(se...
23
9
6
0
4
1
2
0.28
1
11
4
0
12
4
12
45
97
16
64
30
39
18
52
20
39
7
5
1
21
13,041
SeleniumHQ/selenium
py/selenium/webdriver/firefox/remote_connection.py
selenium.webdriver.firefox.remote_connection.FirefoxRemoteConnection
from selenium.webdriver.remote.client_config import ClientConfig from selenium.webdriver.remote.remote_connection import RemoteConnection from typing import Optional from selenium.webdriver.common.desired_capabilities import DesiredCapabilities class FirefoxRemoteConnection(RemoteConnection): browser_name = Desire...
class FirefoxRemoteConnection(RemoteConnection): def __init__(self, remote_server_addr: str, keep_alive: bool=True, ignore_proxy: Optional[bool]=False, client_config: Optional[ClientConfig]=None) -> None: pass
2
0
20
1
19
0
1
0
1
4
1
0
1
0
1
17
23
2
21
9
13
0
10
3
8
1
1
0
1
13,042
SeleniumHQ/selenium
py/selenium/webdriver/firefox/service.py
selenium.webdriver.firefox.service.Service
from collections.abc import Mapping, Sequence from typing import Optional from selenium.types import SubprocessStdAlias from selenium.webdriver.common import service, utils class Service(service.Service): """A Service class that is responsible for the starting and stopping of `geckodriver`. :param executa...
class Service(service.Service): '''A Service class that is responsible for the starting and stopping of `geckodriver`. :param executable_path: install path of the geckodriver executable, defaults to `geckodriver`. :param port: Port for the service to run on, defaults to 0 where the operating system wil...
7
1
14
1
13
1
2
0.38
1
3
0
0
2
1
2
36
41
5
26
13
14
10
10
4
7
2
5
1
3
13,043
SeleniumHQ/selenium
py/selenium/webdriver/firefox/webdriver.py
selenium.webdriver.firefox.webdriver.WebDriver
from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver import os import warnings from selenium.webdriver.firefox.service import Service import base64 from typing import Optional from selenium.webdriver.common.driver_finder import DriverFinder from selenium.webdriver.firefox.options import Options ...
class WebDriver(RemoteWebDriver): '''Controls the GeckoDriver and allows you to drive the browser.''' def __init__(self, options: Optional[Options]=None, service: Optional[Service]=None, keep_alive: bool=True) -> None: '''Creates a new instance of the Firefox driver. Starts the service and the...
14
10
18
3
8
7
2
0.81
1
12
4
0
10
2
10
117
191
39
84
35
67
68
67
26
56
5
5
4
20
13,044
SeleniumHQ/selenium
py/selenium/webdriver/ie/options.py
selenium.webdriver.ie.options.ElementScrollBehavior
from enum import Enum class ElementScrollBehavior(Enum): TOP = 0 BOTTOM = 1
class ElementScrollBehavior(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
3
0
3
3
2
0
3
3
2
0
4
0
0
13,045
SeleniumHQ/selenium
py/selenium/webdriver/ie/options.py
selenium.webdriver.ie.options.Options
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from typing import Any from enum import Enum from selenium.webdriver.common.options import ArgOptions class Options(ArgOptions): KEY = 'se:ieOptions' SWITCHES = 'ie.browserCommandLineSwitches' BROWSER_ATTACH_TIMEOUT = 'browserAt...
class Options(ArgOptions): def __init__(self) -> None: pass @property def options(self) -> dict: ''':Returns: A dictionary of browser options.''' pass @property def additional_options(self) -> dict: ''':Returns: The additional options.''' pass def add_a...
10
4
6
1
4
1
2
3.11
1
5
1
0
6
2
6
39
321
62
63
51
53
196
60
48
53
4
5
1
9
13,046
SeleniumHQ/selenium
py/selenium/webdriver/ie/options.py
selenium.webdriver.ie.options._IeOptionsDescriptor
class _IeOptionsDescriptor: """_IeOptionsDescriptor is an implementation of Descriptor Protocol: : Any look-up or assignment to the below attributes in `Options` class will be intercepted by `__get__` and `__set__` method respectively. - `browser_attach_timeout` - `element_scroll_behavior` - `...
class _IeOptionsDescriptor: '''_IeOptionsDescriptor is an implementation of Descriptor Protocol: : Any look-up or assignment to the below attributes in `Options` class will be intercepted by `__get__` and `__set__` method respectively. - `browser_attach_timeout` - `element_scroll_behavior` - `en...
4
1
5
0
5
0
2
2.07
0
2
1
0
3
2
3
3
54
8
15
6
11
31
12
6
8
3
0
1
5
13,047
SeleniumHQ/selenium
py/selenium/webdriver/ie/service.py
selenium.webdriver.ie.service.Service
from selenium.webdriver.common import service from typing import Optional from collections.abc import Sequence from selenium.types import SubprocessStdAlias class Service(service.Service): """Object that manages the starting and stopping of the IEDriver.""" def __init__(self, executable_path: Optional[str]=No...
class Service(service.Service): '''Object that manages the starting and stopping of the IEDriver.''' def __init__(self, executable_path: Optional[str]=None, port: int=0, host: Optional[str]=None, service_args: Optional[Sequence[str]]=None, log_level: Optional[str]=None, log_output: Optional[SubprocessStdAlias...
7
2
20
2
13
5
2
0.41
1
3
0
0
2
1
2
36
43
5
27
14
14
11
11
4
8
3
5
1
4
13,048
SeleniumHQ/selenium
py/selenium/webdriver/ie/webdriver.py
selenium.webdriver.ie.webdriver.WebDriver
from selenium.webdriver.ie.service import Service from selenium.webdriver.remote.remote_connection import RemoteConnection from selenium.webdriver.remote.client_config import ClientConfig from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver from selenium.webdriver.ie.options import Options from ...
class WebDriver(RemoteWebDriver): '''Controls the IEServerDriver and allows you to drive Internet Explorer.''' def __init__(self, options: Optional[Options]=None, service: Optional[Service]=None, keep_alive: bool=True) -> None: '''Creates a new instance of the Ie driver. Starts the service...
5
3
22
4
14
5
3
0.38
1
8
5
0
2
2
2
109
49
9
29
12
21
11
20
7
17
4
5
1
6
13,049
SeleniumHQ/selenium
py/selenium/webdriver/remote/bidi_connection.py
selenium.webdriver.remote.bidi_connection.BidiConnection
class BidiConnection: def __init__(self, session, cdp, devtools_import) -> None: self.session = session self.cdp = cdp self.devtools = devtools_import
class BidiConnection: def __init__(self, session, cdp, devtools_import) -> None: pass
2
0
4
0
4
0
1
0
0
0
0
0
1
3
1
1
5
0
5
5
3
0
5
5
3
1
0
0
1
13,050
SeleniumHQ/selenium
py/selenium/webdriver/remote/client_config.py
selenium.webdriver.remote.client_config.AuthType
from enum import Enum class AuthType(Enum): BASIC = 'Basic' BEARER = 'Bearer' X_API_KEY = 'X-API-Key'
class AuthType(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
4
0
4
4
3
0
4
4
3
0
4
0
0
13,051
SeleniumHQ/selenium
py/selenium/webdriver/remote/client_config.py
selenium.webdriver.remote.client_config.ClientConfig
from urllib import parse import socket from typing import Optional import os from selenium.webdriver.common.proxy import Proxy, ProxyType import base64 import certifi class ClientConfig: remote_server_addr = _ClientConfigDescriptor('_remote_server_addr') 'Gets and Sets Remote Server.' keep_alive = _ClientC...
class ClientConfig: def __init__(self, remote_server_addr: str, keep_alive: Optional[bool]=True, proxy: Optional[Proxy]=Proxy(raw={'proxyType': ProxyType.SYSTEM}), ignore_certificates: pass def reset_timeout(self) -> None: '''Resets the timeout to the default value of socket.''' pass ...
5
3
21
1
19
1
6
0.21
0
9
3
0
4
1
4
4
116
6
91
41
71
19
61
26
56
12
0
4
22
13,052
SeleniumHQ/selenium
py/selenium/webdriver/remote/client_config.py
selenium.webdriver.remote.client_config._ClientConfigDescriptor
class _ClientConfigDescriptor: def __init__(self, name): self.name = name def __get__(self, obj, cls): return obj.__dict__[self.name] def __set__(self, obj, value) -> None: obj.__dict__[self.name] = value
class _ClientConfigDescriptor: def __init__(self, name): pass def __get__(self, obj, cls): pass def __set__(self, obj, value) -> None: pass
4
0
2
0
2
0
1
0
0
0
0
0
3
1
3
3
9
2
7
5
3
0
7
5
3
1
0
0
3
13,053
SeleniumHQ/selenium
py/selenium/webdriver/remote/command.py
selenium.webdriver.remote.command.Command
class Command: """Defines constants for the standard WebDriver commands. While these constants have no meaning in and of themselves, they are used to marshal commands through a service that implements WebDriver's remote wire protocol: https://w3c.github.io/webdriver/ """ NEW_SESSION: s...
class Command: '''Defines constants for the standard WebDriver commands. While these constants have no meaning in and of themselves, they are used to marshal commands through a service that implements WebDriver's remote wire protocol: https://w3c.github.io/webdriver/ ''' pass
1
1
0
0
0
0
0
0.15
0
0
0
0
0
0
0
0
116
11
91
91
90
14
91
91
90
0
0
0
0
13,054
SeleniumHQ/selenium
py/selenium/webdriver/remote/errorhandler.py
selenium.webdriver.remote.errorhandler.ErrorCode
class ErrorCode: """Error codes defined in the WebDriver wire protocol.""" SUCCESS = 0 NO_SUCH_ELEMENT = [7, 'no such element'] NO_SUCH_FRAME = [8, 'no such frame'] NO_SUCH_SHADOW_ROOT = ['no such shadow root'] UNKNOWN_COMMAND = [9, 'unknown command'] STALE_ELEMENT_REFERENCE = [10, 'stale el...
class ErrorCode: '''Error codes defined in the WebDriver wire protocol.''' pass
1
1
0
0
0
0
0
0.05
0
0
0
0
0
0
0
0
44
3
39
39
38
2
39
39
38
0
0
0
0
13,055
SeleniumHQ/selenium
py/selenium/webdriver/remote/errorhandler.py
selenium.webdriver.remote.errorhandler.ErrorHandler
import json from typing import Any from selenium.common.exceptions import DetachedShadowRootException, ElementClickInterceptedException, ElementNotInteractableException, ElementNotSelectableException, ElementNotVisibleException, ImeActivationFailedException, ImeNotAvailableException, InsecureCertificateException, Inval...
class ErrorHandler: '''Handles errors returned by the WebDriver server.''' def check_response(self, response: dict[str, Any]) -> None: '''Checks that a JSON response from the WebDriver does not have an error. :Args: - response - The JSON response from the WebDriver server as a...
2
2
89
7
75
9
23
0.13
0
10
4
0
1
0
1
1
92
8
76
20
73
10
73
20
70
23
0
5
23
13,056
SeleniumHQ/selenium
py/selenium/webdriver/remote/errorhandler.py
selenium.webdriver.remote.errorhandler.ExceptionMapping
from selenium.common.exceptions import DetachedShadowRootException, ElementClickInterceptedException, ElementNotInteractableException, ElementNotSelectableException, ElementNotVisibleException, ImeActivationFailedException, ImeNotAvailableException, InsecureCertificateException, InvalidArgumentException, InvalidCookieD...
class ExceptionMapping: ''' :Maps each errorcode in ErrorCode object to corresponding exception Please refer to https://www.w3.org/TR/webdriver2/#errors for w3c specification ''' pass
1
1
0
0
0
0
0
0.12
0
0
0
0
0
0
0
0
39
1
34
34
33
4
34
34
33
0
0
0
0
13,057
SeleniumHQ/selenium
py/selenium/webdriver/remote/fedcm.py
selenium.webdriver.remote.fedcm.FedCM
from selenium.webdriver.remote.command import Command from typing import Optional class FedCM: def __init__(self, driver) -> None: self._driver = driver @property def title(self) -> str: """Gets the title of the dialog.""" return self._driver.execute(Command.GET_FEDCM_TITLE)['valu...
class FedCM: def __init__(self, driver) -> None: pass @property def title(self) -> str: '''Gets the title of the dialog.''' pass @property def subtitle(self) -> Optional[str]: '''Gets the subtitle of the dialog.''' pass @property def dialog_type(self...
16
10
3
0
2
1
1
0.37
0
4
1
0
11
1
11
11
47
10
27
17
11
10
23
13
11
1
0
0
11
13,058
SeleniumHQ/selenium
py/selenium/webdriver/remote/file_detector.py
selenium.webdriver.remote.file_detector.FileDetector
from selenium.types import AnyKey from abc import ABCMeta, abstractmethod from typing import Optional class FileDetector(metaclass=ABCMeta): """Used for identifying whether a sequence of chars represents the path to a file.""" @abstractmethod def is_local_file(self, *keys: AnyKey) -> Optional[str]: ...
class FileDetector(metaclass=ABCMeta): '''Used for identifying whether a sequence of chars represents the path to a file.''' @abstractmethod def is_local_file(self, *keys: AnyKey) -> Optional[str]: pass
3
1
2
0
2
0
1
0.5
1
2
0
2
1
0
1
21
7
1
4
3
1
2
3
2
1
1
3
0
1
13,059
SeleniumHQ/selenium
py/selenium/webdriver/remote/file_detector.py
selenium.webdriver.remote.file_detector.LocalFileDetector
from typing import Optional from selenium.webdriver.common.utils import keys_to_typing from contextlib import suppress from selenium.types import AnyKey from pathlib import Path class LocalFileDetector(FileDetector): """Detects files on the local disk.""" def is_local_file(self, *keys: AnyKey) -> Optional[str...
class LocalFileDetector(FileDetector): '''Detects files on the local disk.''' def is_local_file(self, *keys: AnyKey) -> Optional[str]: pass
2
1
7
1
6
0
2
0.14
1
4
0
0
1
0
1
22
10
2
7
3
5
1
7
3
5
2
4
2
2
13,060
SeleniumHQ/selenium
py/selenium/webdriver/remote/file_detector.py
selenium.webdriver.remote.file_detector.UselessFileDetector
from typing import Optional from selenium.types import AnyKey class UselessFileDetector(FileDetector): """A file detector that never finds anything.""" def is_local_file(self, *keys: AnyKey) -> Optional[str]: return None
class UselessFileDetector(FileDetector): '''A file detector that never finds anything.''' def is_local_file(self, *keys: AnyKey) -> Optional[str]: pass
2
1
2
0
2
0
1
0.33
1
1
0
0
1
0
1
22
5
1
3
2
1
1
3
2
1
1
4
0
1
13,061
SeleniumHQ/selenium
py/selenium/webdriver/remote/locator_converter.py
selenium.webdriver.remote.locator_converter.LocatorConverter
from selenium.webdriver.common.by import By from selenium.common.exceptions import InvalidSelectorException class LocatorConverter: def convert(self, by, value): if by == By.ID: return (By.CSS_SELECTOR, f'[id="{value}"]') elif by == By.CLASS_NAME: if value and any((char.iss...
class LocatorConverter: def convert(self, by, value): pass
2
0
9
0
8
1
4
0.11
0
0
0
1
1
0
1
1
10
0
9
2
7
1
7
2
5
4
0
1
4
13,062
SeleniumHQ/selenium
py/selenium/webdriver/remote/mobile.py
selenium.webdriver.remote.mobile.Mobile
from selenium.webdriver.remote.command import Command class Mobile: ConnectionType = _ConnectionType ALL_NETWORK = ConnectionType(6) WIFI_NETWORK = ConnectionType(2) DATA_NETWORK = ConnectionType(4) AIRPLANE_MODE = ConnectionType(1) def __init__(self, driver): import weakref se...
class Mobile: def __init__(self, driver): pass @property def network_connection(self): pass def set_network_connection(self, network): '''Set the network connection for the remote device. Example of setting airplane mode:: driver.mobile.set_network_connecti...
11
4
5
1
3
1
1
0.25
0
1
1
0
6
1
6
6
44
9
28
19
16
7
20
15
12
2
0
0
7
13,063
SeleniumHQ/selenium
py/selenium/webdriver/remote/mobile.py
selenium.webdriver.remote.mobile._ConnectionType
class _ConnectionType: def __init__(self, mask): self.mask = mask @property def airplane_mode(self): return self.mask % 2 == 1 @property def wifi(self): return self.mask / 2 % 2 == 1 @property def data(self): return self.mask / 4 > 0
class _ConnectionType: def __init__(self, mask): pass @property def airplane_mode(self): pass @property def wifi(self): pass @property def data(self): pass
8
0
2
0
2
0
1
0
0
0
0
0
4
1
4
4
15
3
12
9
4
0
9
6
4
1
0
0
4
13,064
SeleniumHQ/selenium
py/selenium/webdriver/remote/remote_connection.py
selenium.webdriver.remote.remote_connection.RemoteConnection
from base64 import b64encode from urllib.parse import unquote, urlparse import urllib3 from selenium.webdriver.remote.client_config import ClientConfig import sys from selenium import __version__ import warnings from selenium.webdriver.remote.errorhandler import ErrorCode from urllib import parse from selenium.webdrive...
class RemoteConnection: '''A connection with the Remote WebDriver server. Communicates with the server using the WebDriver wire protocol: https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol ''' @property def client_config(self): pass @classmethod def get_timeout(cls): ...
25
13
19
2
13
3
3
0.25
0
12
2
3
10
4
16
16
349
54
237
72
202
59
159
57
138
13
0
4
49
13,065
SeleniumHQ/selenium
py/selenium/webdriver/remote/script_key.py
selenium.webdriver.remote.script_key.ScriptKey
import uuid class ScriptKey: def __init__(self, id=None): self._id = id or uuid.uuid4() @property def id(self): return self._id def __eq__(self, other): return self._id == other def __repr__(self) -> str: return f'ScriptKey(id={self.id})'
class ScriptKey: def __init__(self, id=None): pass @property def id(self): pass def __eq__(self, other): pass def __repr__(self) -> str: pass
6
0
2
0
2
0
1
0
0
1
0
0
4
1
4
4
13
3
10
7
4
0
9
6
4
1
0
0
4
13,066
SeleniumHQ/selenium
py/selenium/webdriver/remote/shadowroot.py
selenium.webdriver.remote.shadowroot.ShadowRoot
from hashlib import md5 as md5_hash from selenium.webdriver.remote.command import Command from selenium.webdriver.common.by import By from selenium.common.exceptions import InvalidSelectorException class ShadowRoot: def __init__(self, session, id_) -> None: self.session = session self._id = id_ ...
class ShadowRoot: def __init__(self, session, id_) -> None: pass def __eq__(self, other_shadowroot) -> bool: pass def __hash__(self) -> int: pass def __repr__(self) -> str: pass @property def id(self) -> str: pass def find_element(self, by: str=B...
10
3
14
1
5
7
2
1.38
0
6
2
0
7
2
7
7
110
17
39
10
31
54
33
10
25
4
0
1
14
13,067
SeleniumHQ/selenium
py/selenium/webdriver/remote/switch_to.py
selenium.webdriver.remote.switch_to.SwitchTo
from selenium.webdriver.common.alert import Alert from selenium.webdriver.common.by import By from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.remote.command import Command from typing import Optional, Union from selenium.common.exceptions import NoSuchElementException, NoSuchFrameExc...
class SwitchTo: def __init__(self, driver) -> None: pass @property def active_element(self) -> WebElement: '''Returns the element with focus, or BODY if nothing has focus. :Usage: :: element = driver.switch_to.active_element ''' pass ...
13
7
11
2
5
5
2
1.04
0
9
7
0
9
1
9
9
122
28
46
23
32
48
44
20
32
4
0
3
16
13,068
SeleniumHQ/selenium
py/selenium/webdriver/remote/webdriver.py
selenium.webdriver.remote.webdriver.BaseWebDriver
from abc import ABCMeta class BaseWebDriver(metaclass=ABCMeta): """Abstract Base Class for all Webdriver subtypes. ABC's allow custom implementations of Webdriver to be registered so that isinstance type checks will succeed. """
class BaseWebDriver(metaclass=ABCMeta): '''Abstract Base Class for all Webdriver subtypes. ABC's allow custom implementations of Webdriver to be registered so that isinstance type checks will succeed. ''' pass
1
1
0
0
0
0
0
4
1
0
0
1
0
0
0
20
6
1
1
1
0
4
1
1
0
0
3
0
0
13,069
SeleniumHQ/selenium
py/selenium/webdriver/remote/webdriver.py
selenium.webdriver.remote.webdriver.WebDriver
from selenium.webdriver.remote.bidi_connection import BidiConnection import pkgutil from selenium.webdriver.remote.command import Command from contextlib import asynccontextmanager, contextmanager import base64 from selenium.webdriver.common.options import ArgOptions, BaseOptions from selenium.webdriver.remote.webeleme...
class WebDriver(BaseWebDriver): '''Controls a browser by sending commands to a remote server. This server is expected to be running the WebDriver wire protocol as defined at https://www.selenium.dev/documentation/legacy/json_wire_protocol/. Attributes: ----------- session_id - String ID of the ...
133
82
14
2
5
7
2
1.34
1
49
31
6
87
14
87
107
1,360
253
473
211
333
634
403
162
306
6
4
3
147
13,070
SeleniumHQ/selenium
py/selenium/webdriver/remote/webelement.py
selenium.webdriver.remote.webelement.BaseWebElement
from abc import ABCMeta class BaseWebElement(metaclass=ABCMeta): """Abstract Base Class for WebElement. ABC's will allow custom types to be registered as a WebElement to pass type checks. """ pass
class BaseWebElement(metaclass=ABCMeta): '''Abstract Base Class for WebElement. ABC's will allow custom types to be registered as a WebElement to pass type checks. ''' pass
1
1
0
0
0
0
0
2
1
0
0
1
0
0
0
20
8
2
2
1
1
4
2
1
1
0
3
0
0
13,071
SeleniumHQ/selenium
py/selenium/webdriver/remote/webelement.py
selenium.webdriver.remote.webelement.WebElement
from io import BytesIO from selenium.webdriver.remote.command import Command import zipfile from selenium.webdriver.remote.shadowroot import ShadowRoot from base64 import b64decode, encodebytes import warnings from selenium.webdriver.common.utils import keys_to_typing from selenium.common.exceptions import JavascriptEx...
class WebElement(BaseWebElement): '''Represents a DOM element. Generally, all interesting operations that interact with a document will be performed through this interface. All method calls will do a freshness check to ensure that the element reference is still valid. This essentially determines w...
50
29
16
2
4
9
1
1.93
1
16
5
1
34
2
34
54
589
102
166
67
118
321
124
51
89
6
4
3
49
13,072
SeleniumHQ/selenium
py/selenium/webdriver/remote/websocket_connection.py
selenium.webdriver.remote.websocket_connection.WebSocketConnection
import json from websocket import WebSocketApp from selenium.common import WebDriverException from time import sleep from threading import Thread from ssl import CERT_NONE class WebSocketConnection: _response_wait_timeout = 30 _response_wait_interval = 0.1 _max_log_message_size = 9999 def __init__(sel...
class WebSocketConnection: def __init__(self, url): pass def close(self): pass def execute(self, command): pass def add_callback(self, event, callback): pass def _callback(params): pass def remove_callback(self, event, callback_id): ...
16
0
8
1
7
0
2
0
0
3
0
0
10
8
10
10
119
26
93
42
77
0
90
41
74
4
0
3
28
13,073
SeleniumHQ/selenium
py/selenium/webdriver/safari/options.py
selenium.webdriver.safari.options.Options
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.common.options import ArgOptions class Options(ArgOptions): AUTOMATIC_INSPECTION = 'safari:automaticInspection' AUTOMATIC_PROFILING = 'safari:automaticProfiling' SAFARI_TECH_PREVIEW = 'Safari Technology P...
class Options(ArgOptions): @property def default_capabilities(self) -> dict[str, str]: pass
3
0
2
0
2
0
1
3.5
1
2
1
0
1
0
1
34
53
8
10
9
7
35
9
8
7
1
5
0
1
13,074
SeleniumHQ/selenium
py/selenium/webdriver/safari/options.py
selenium.webdriver.safari.options._SafariOptionsDescriptor
class _SafariOptionsDescriptor: """_SafariOptionsDescriptor is an implementation of Descriptor protocol: : Any look-up or assignment to the below attributes in `Options` class will be intercepted by `__get__` and `__set__` method respectively. - `automatic_inspection` - `automatic_profiling` -...
class _SafariOptionsDescriptor: '''_SafariOptionsDescriptor is an implementation of Descriptor protocol: : Any look-up or assignment to the below attributes in `Options` class will be intercepted by `__get__` and `__set__` method respectively. - `automatic_inspection` - `automatic_profiling` - `...
4
1
5
0
5
0
2
1.13
0
1
0
0
3
2
3
3
38
6
15
6
11
17
14
6
10
4
0
1
7
13,075
SeleniumHQ/selenium
py/selenium/webdriver/safari/permissions.py
selenium.webdriver.safari.permissions.Permission
class Permission: """Set of supported permissions.""" GET_USER_MEDIA = 'getUserMedia'
class Permission: '''Set of supported permissions.''' pass
1
1
0
0
0
0
0
0.5
0
0
0
0
0
0
0
0
4
1
2
2
1
1
2
2
1
0
0
0
0
13,076
SeleniumHQ/selenium
py/selenium/webdriver/safari/remote_connection.py
selenium.webdriver.safari.remote_connection.SafariRemoteConnection
from selenium.webdriver.remote.remote_connection import RemoteConnection from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from typing import Optional from selenium.webdriver.remote.client_config import ClientConfig class SafariRemoteConnection(RemoteConnection): browser_name = Desired...
class SafariRemoteConnection(RemoteConnection): def __init__(self, remote_server_addr: str, keep_alive: bool=True, ignore_proxy: Optional[bool]=False, client_config: Optional[ClientConfig]=None) -> None: pass
2
0
18
1
17
0
1
0
1
4
1
0
1
0
1
17
21
2
19
9
11
0
8
3
6
1
1
0
1
13,077
SeleniumHQ/selenium
py/selenium/webdriver/safari/service.py
selenium.webdriver.safari.service.Service
from typing import Optional from selenium.webdriver.common import service from collections.abc import Mapping, Sequence class Service(service.Service): """A Service class that is responsible for the starting and stopping of `safaridriver` This is only supported on MAC OSX. :param executable_path: install...
class Service(service.Service): '''A Service class that is responsible for the starting and stopping of `safaridriver` This is only supported on MAC OSX. :param executable_path: install path of the safaridriver executable, defaults to `/usr/bin/safaridriver`. :param port: Port for the service to run o...
13
2
7
0
7
0
1
0.27
1
5
0
0
5
2
5
39
55
8
37
21
18
10
18
8
12
2
5
1
7
13,078
SeleniumHQ/selenium
py/selenium/webdriver/safari/webdriver.py
selenium.webdriver.safari.webdriver.WebDriver
from selenium.webdriver.common.driver_finder import DriverFinder from typing import Optional from selenium.webdriver.safari.options import Options from selenium.webdriver.safari.service import Service from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver from selenium.webdriver.safari.remote_conn...
class WebDriver(RemoteWebDriver): '''Controls the SafariDriver and allows you to drive the browser.''' def __init__(self, keep_alive=True, options: Optional[Options]=None, service: Optional[Service]=None) -> None: '''Creates a new Safari driver instance and launches or finds a running safaridr...
8
3
14
2
10
2
3
0.32
1
8
5
0
5
2
5
112
82
16
50
18
39
16
40
13
34
5
5
2
15
13,079
SeleniumHQ/selenium
py/selenium/webdriver/support/abstract_event_listener.py
selenium.webdriver.support.abstract_event_listener.AbstractEventListener
class AbstractEventListener: """Event listener must subclass and implement this fully or partially.""" def before_navigate_to(self, url: str, driver) -> None: pass def after_navigate_to(self, url: str, driver) -> None: pass def before_navigate_back(self, driver) -> None: pass ...
class AbstractEventListener: '''Event listener must subclass and implement this fully or partially.''' def before_navigate_to(self, url: str, driver) -> None: pass def after_navigate_to(self, url: str, driver) -> None: pass def before_navigate_back(self, driver) -> None: pass ...
20
1
2
0
2
0
1
0.03
0
1
0
6
19
0
19
19
59
19
39
20
19
1
39
20
19
1
0
0
19
13,080
SeleniumHQ/selenium
py/selenium/webdriver/support/color.py
selenium.webdriver.support.color.Color
from collections.abc import Sequence from typing import TYPE_CHECKING, Any from re import Match class Color: """Color conversion support class. Example: :: from selenium.webdriver.support.color import Color print(Color.from_string("#00ff33").rgba) print(Color.from_string("rgb(1,...
class Color: '''Color conversion support class. Example: :: from selenium.webdriver.support.color import Color print(Color.from_string("#00ff33").rgba) print(Color.from_string("rgb(1, 255, 3)").hex) print(Color.from_string("blue").rgba) ''' @classmethod def from_...
23
1
8
1
7
0
2
0.1
0
9
1
1
9
4
11
11
127
26
93
38
69
9
86
32
68
9
0
1
34
13,081
SeleniumHQ/selenium
py/selenium/webdriver/support/event_firing_webdriver.py
selenium.webdriver.support.event_firing_webdriver.EventFiringWebDriver
from selenium.common.exceptions import WebDriverException from selenium.webdriver.support.abstract_event_listener import AbstractEventListener from typing import Any from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.common.by im...
class EventFiringWebDriver: '''A wrapper around an arbitrary WebDriver instance which supports firing events.''' def __init__(self, driver: WebDriver, event_listener: AbstractEventListener) -> None: '''Creates a new instance of the EventFiringWebDriver. :Args: - driver : A WebDriv...
19
3
6
0
5
1
2
0.28
0
12
6
0
16
2
16
16
120
23
76
30
57
21
74
25
56
4
0
2
29
13,082
SeleniumHQ/selenium
py/selenium/webdriver/support/event_firing_webdriver.py
selenium.webdriver.support.event_firing_webdriver.EventFiringWebElement
from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.common.by import By class EventFiringWebElement: """A wrapper around WebElement instance which supports firing events.""" def __init__(self, webelement: WebElement, ef_driver: EventFiringWebDriver) -> None: """Creates ...
class EventFiringWebElement: '''A wrapper around WebElement instance which supports firing events.''' def __init__(self, webelement: WebElement, ef_driver: EventFiringWebDriver) -> None: '''Creates a new instance of the EventFiringWebElement.''' pass @property def wrapped_element(self)...
13
3
5
0
5
0
2
0.08
0
5
3
0
10
4
10
10
66
11
51
24
38
4
49
19
37
3
0
2
17
13,083
SeleniumHQ/selenium
py/selenium/webdriver/support/relative_locator.py
selenium.webdriver.support.relative_locator.RelativeBy
from selenium.webdriver.remote.webelement import WebElement from typing import NoReturn, Optional, Union, overload from selenium.webdriver.common.by import By, ByType from selenium.common.exceptions import WebDriverException class RelativeBy: """Gives the opportunity to find elements based on their relative locati...
class RelativeBy: '''Gives the opportunity to find elements based on their relative location on the page from a root element. It is recommended that you use the helper function to create it. Example: -------- >>> lowest = driver.find_element(By.ID, "below") >>> elements = driver.find_elemen...
48
12
8
1
3
4
1
1.34
0
4
2
0
29
2
29
29
289
67
95
51
65
127
90
33
60
3
0
1
39
13,084
SeleniumHQ/selenium
py/selenium/webdriver/support/select.py
selenium.webdriver.support.select.Select
from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementException, UnexpectedTagNameException class Select: def __init__(self, webelement: WebElement) -> None: """Constructor. A check is made that the given...
class Select: def __init__(self, webelement: WebElement) -> None: '''Constructor. A check is made that the given element is, indeed, a SELECT tag. If it is not, then an UnexpectedTagNameException is thrown. :Args: - webelement - SELECT element to wrap Example: ...
20
11
13
1
8
4
3
0.46
0
7
4
0
15
2
15
15
218
36
125
52
106
57
121
49
105
9
0
4
51
13,085
SeleniumHQ/selenium
py/selenium/webdriver/support/wait.py
selenium.webdriver.support.wait.WebDriverWait
from selenium.common.exceptions import NoSuchElementException, TimeoutException import time from selenium.types import WaitExcTypes from typing import Callable, Generic, Literal, Optional, TypeVar, Union class WebDriverWait(Generic[D]): def __init__(self, driver: D, timeout: float, poll_frequency: float=POLL_FREQ...
class WebDriverWait(Generic[D]): def __init__(self, driver: D, timeout: float, poll_frequency: float=POLL_FREQUENCY, ignored_exceptions: Optional[WaitExcTypes]=None): '''Constructor, takes a WebDriver instance and timeout in seconds. Attributes: ----------- driver - Ins...
5
3
38
5
13
21
4
1.61
1
7
1
0
4
4
4
6
155
23
51
23
40
82
45
16
40
5
1
3
15
13,086
SeleniumHQ/selenium
py/selenium/webdriver/webkitgtk/options.py
selenium.webdriver.webkitgtk.options.Options
from selenium.webdriver.common.options import ArgOptions from selenium.webdriver.common.desired_capabilities import DesiredCapabilities class Options(ArgOptions): KEY = 'webkitgtk:browserOptions' def __init__(self) -> None: super().__init__() self._binary_location = '' self._overlay_sc...
class Options(ArgOptions): def __init__(self) -> None: pass @property def binary_location(self) -> str: ''':Returns: The location of the browser binary otherwise an empty string.''' pass @binary_location.setter def binary_location(self) -> str: '''Allows you...
13
5
6
1
3
2
1
0.42
1
3
1
0
7
2
7
40
56
12
31
18
18
13
26
13
18
3
5
1
9
13,087
SeleniumHQ/selenium
py/selenium/webdriver/webkitgtk/service.py
selenium.webdriver.webkitgtk.service.Service
import warnings from selenium.webdriver.common import service from collections.abc import Mapping, Sequence from typing import Optional class Service(service.Service): """A Service class that is responsible for the starting and stopping of `WebKitWebDriver`. :param executable_path: install path of the Web...
null
7
1
12
0
12
0
2
0.32
1
4
0
0
2
1
2
36
36
3
25
13
13
8
10
4
7
3
5
1
4
13,088
SeleniumHQ/selenium
py/selenium/webdriver/webkitgtk/webdriver.py
selenium.webdriver.webkitgtk.webdriver.WebDriver
import http.client as http_client from selenium.webdriver.common.driver_finder import DriverFinder from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver from selenium.webdriver.webkitgtk.service import Service from selenium.webdriver.webkitgtk.options import Options from typing import Optional c...
class WebDriver(RemoteWebDriver): '''Controls the WebKitGTKDriver and allows you to drive the browser.''' def __init__(self, options=None, service: Optional[Service]=None): '''Creates a new instance of the WebKitGTK driver. Starts the service and then creates new instance of WebKitGTK Driver. ...
5
3
15
2
9
4
3
0.47
1
5
3
0
2
2
2
109
34
6
19
9
12
9
14
5
11
3
5
1
5
13,089
SeleniumHQ/selenium
py/selenium/webdriver/wpewebkit/options.py
selenium.webdriver.wpewebkit.options.Options
from selenium.webdriver.common.options import ArgOptions from selenium.webdriver.common.desired_capabilities import DesiredCapabilities class Options(ArgOptions): KEY = 'wpe:browserOptions' def __init__(self) -> None: super().__init__() self._binary_location = '' @property def binary_...
class Options(ArgOptions): def __init__(self) -> None: pass @property def binary_location(self) -> str: '''Returns the location of the browser binary otherwise an empty string.''' pass @binary_location.setter def binary_location(self) -> str: '''Allows you t...
9
3
6
1
4
2
2
0.32
1
4
1
0
5
1
5
38
42
9
25
13
16
8
22
10
16
3
5
1
8
13,090
SeleniumHQ/selenium
py/selenium/webdriver/wpewebkit/service.py
selenium.webdriver.wpewebkit.service.Service
from selenium.webdriver.common import service from typing import Optional from collections.abc import Mapping, Sequence class Service(service.Service): """A Service class that is responsible for the starting and stopping of `WPEWebDriver`. :param executable_path: install path of the WPEWebDriver executabl...
null
7
1
10
0
10
0
1
0.4
1
3
0
0
2
1
2
36
31
3
20
12
9
8
6
4
3
1
5
0
2
13,091
SeleniumHQ/selenium
py/selenium/webdriver/wpewebkit/webdriver.py
selenium.webdriver.wpewebkit.webdriver.WebDriver
from typing import Optional from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver from selenium.webdriver.wpewebkit.options import Options from selenium.webdriver.wpewebkit.service import Service import http.client as http_client from selenium.webdriver.common.driver_finder import DriverFinder c...
class WebDriver(RemoteWebDriver): '''Controls the WPEWebKitDriver and allows you to drive the browser.''' def __init__(self, options=None, service: Optional[Service]=None): '''Creates a new instance of the WPEWebKit driver. Starts the service and then creates new instance of WPEWebKit Driver. ...
5
3
15
2
9
4
3
0.47
1
5
3
0
2
2
2
109
34
6
19
9
12
9
14
5
11
3
5
1
5
13,092
SeleniumHQ/selenium
scripts/update_copyright.py
update_copyright.Copyright
import os class Copyright: NOTICE = 'Licensed to the Software Freedom Conservancy (SFC) under one\nor more contributor license agreements. See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership. The SFC licenses this file\nto you under the Apache License, Versio...
class Copyright: def __init__(self, comment_characters='//', prefix=None): pass def update(self, files): pass def valid_copyright_notice_line(self, line, index, file): pass def copyright_notice(self, file): pass def copyright_notice_lines(self, file): pa...
10
0
6
0
5
0
2
0
0
1
0
0
8
2
8
8
70
12
58
24
48
0
40
21
31
6
0
3
15
13,093
explosion/spaCy
explosion_spaCy/website/setup/jinja_to_js.py
jinja_to_js.ExtendsException
class ExtendsException(Exception): """ Raised when an {% extends %} is encountered. At this point the parent template is loaded and all blocks defined in the current template passed to it. """ pass
class ExtendsException(Exception): ''' Raised when an {% extends %} is encountered. At this point the parent template is loaded and all blocks defined in the current template passed to it. ''' pass
1
1
0
0
0
0
0
2
1
0
0
0
0
0
0
10
7
1
2
1
1
4
2
1
1
0
3
0
0
13,094
explosion/spaCy
explosion_spaCy/website/setup/jinja_to_js.py
jinja_to_js.JinjaToJS
import json import os from os import path import re from jinja2 import Environment, FileSystemLoader, nodes import contextlib from io import StringIO class JinjaToJS(object): def __init__(self, template_root, template_name, js_module_format=None, runtime_path='jinja-to-js', include_prefix='', include_ext='', chil...
class JinjaToJS(object): def __init__(self, template_root, template_name, js_module_format=None, runtime_path='jinja-to-js', include_prefix='', include_ext='', child_blocks=None, dependencies=None, custom_filters=None): ''' Args: template_root (str): The path to where templates should ...
83
17
13
2
9
2
2
0.26
1
8
1
0
76
19
76
76
1,070
201
692
186
598
177
615
145
536
10
1
4
169
13,095
explosion/spaCy
explosion_spaCy/setup.py
setup.build_ext_options
class build_ext_options: def build_options(self): for e in self.extensions: e.extra_compile_args += COMPILE_OPTIONS.get(self.compiler.compiler_type, COMPILE_OPTIONS['other']) for e in self.extensions: e.extra_link_args += LINK_OPTIONS.get(self.compiler.compiler_type, LINK_OP...
class build_ext_options: def build_options(self): pass
2
0
9
0
9
0
3
0
0
0
0
1
1
0
1
1
10
0
10
3
8
0
6
3
4
3
0
1
3
13,096
explosion/spaCy
explosion_spaCy/setup.py
setup.build_ext_subclass
from setuptools.command.build_ext import build_ext import os class build_ext_subclass(build_ext, build_ext_options): def build_extensions(self): if self.parallel is None and os.environ.get('SPACY_NUM_BUILD_JOBS') is not None: self.parallel = int(os.environ.get('SPACY_NUM_BUILD_JOBS')) ...
class build_ext_subclass(build_ext, build_ext_options): def build_extensions(self): pass
2
0
5
0
5
0
2
0
2
1
0
0
1
1
1
71
6
0
6
3
4
0
6
3
4
2
3
1
2
13,097
explosion/spaCy
explosion_spaCy/spacy/cli/benchmark_speed.py
spacy.cli.benchmark_speed.Quartiles
import numpy class Quartiles: """Calculate the q1, q2, q3 quartiles and the inter-quartile range (iqr) of a sample.""" q1: float q2: float q3: float iqr: float def __init__(self, sample: numpy.ndarray) -> None: self.q1 = numpy.quantile(sample, 0.25) self.q2 = numpy.quantile...
class Quartiles: '''Calculate the q1, q2, q3 quartiles and the inter-quartile range (iqr) of a sample.''' def __init__(self, sample: numpy.ndarray) -> None: pass
2
1
5
0
5
0
1
0.2
0
0
0
0
1
0
1
1
14
2
10
2
8
2
10
2
8
1
0
0
1
13,098
explosion/spaCy
explosion_spaCy/spacy/cli/convert.py
spacy.cli.convert.FileTypes
from enum import Enum class FileTypes(str, Enum): json = 'json' spacy = 'spacy'
class FileTypes(str, Enum): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
115
3
0
3
3
2
0
3
3
2
0
4
0
0
13,099
explosion/spaCy
explosion_spaCy/spacy/cli/init_config.py
spacy.cli.init_config.InitValues
from ..util import SimpleFrozenList class InitValues: """ Default values for initialization. Dedicated class to allow synchronized default values for init_config_cli() and init_config(), i.e. initialization calls via CLI respectively Python. """ lang = 'en' pipeline = SimpleFrozenList(['tagger'...
class InitValues: ''' Default values for initialization. Dedicated class to allow synchronized default values for init_config_cli() and init_config(), i.e. initialization calls via CLI respectively Python. ''' pass
1
1
0
0
0
0
0
0.57
0
0
0
0
0
0
0
0
12
1
7
7
6
4
7
7
6
0
0
0
0