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
30,800
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.BaseFTSModel
from peewee import Entity class BaseFTSModel(VirtualModel): @classmethod def clean_options(cls, options): content = options.get('content') prefix = options.get('prefix') tokenize = options.get('tokenize') if isinstance(content, basestring) and content == '': options...
class BaseFTSModel(VirtualModel): @classmethod def clean_options(cls, options): pass
3
0
24
4
16
4
6
0.22
1
5
2
2
0
0
1
49
26
4
18
6
15
4
15
5
13
6
3
2
6
30,801
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.DocIDField
class DocIDField(RowIDField): column_name = name = required_name = 'docid'
class DocIDField(RowIDField): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
45
2
0
2
2
1
0
2
2
1
0
7
0
0
30,802
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.FTS5Model
from peewee import EnclosedNodeList from peewee import Entity from peewee import sqlite3 from peewee import NodeList from peewee import VirtualField class FTS5Model(BaseFTSModel): """ Requires SQLite >= 3.9.0. Table options: content: table name of external content, or empty string for "contentless" ...
class FTS5Model(BaseFTSModel): ''' Requires SQLite >= 3.9.0. Table options: content: table name of external content, or empty string for "contentless" content_rowid: column name of external content primary key prefix: integer(s). Ex: '2' or '2 3 4' tokenize: porter, unicode61, ascii. Ex: 'p...
43
6
9
1
7
1
2
0.31
1
14
10
3
0
0
20
69
281
47
178
75
133
56
124
53
101
7
4
3
48
30,803
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.FTSModel
class FTSModel(BaseFTSModel): """ VirtualModel class for creating tables that use either the FTS3 or FTS4 search extensions. Peewee automatically determines which version of the FTS extension is supported and will use FTS4 if possible. """ docid = DocIDField() class Meta: extension_...
class FTSModel(BaseFTSModel): ''' VirtualModel class for creating tables that use either the FTS3 or FTS4 search extensions. Peewee automatically determines which version of the FTS extension is supported and will use FTS4 if possible. ''' class Meta: @classmethod def _fts_cmd(cls, cmd...
34
6
6
0
5
1
1
0.14
1
2
1
7
0
0
16
65
141
19
107
53
68
15
56
32
38
6
4
2
21
30,804
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.JSONBField
from peewee import Node class JSONBField(JSONField): field_type = 'JSONB' Path = JSONBPath def db_value(self, value): if value is not None: if not isinstance(value, Node): value = fn.jsonb(self._json_dumps(value)) return value def json(self): re...
class JSONBField(JSONField): def db_value(self, value): pass def json(self): pass def extract(self, *paths): pass def remove(self, *paths): pass
5
0
4
0
4
0
2
0
1
1
1
0
4
0
4
67
21
4
17
7
12
0
17
7
12
3
7
2
7
30,805
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.JSONBPath
class JSONBPath(JSONPath): def append(self, value, as_json=None): if as_json or isinstance(value, (list, dict)): value = fn.jsonb(self._field._json_dumps(value)) return fn.jsonb_set(self._field, self['#'].path, value) def _json_operation(self, func, value, as_json=None): if...
class JSONBPath(JSONPath): def append(self, value, as_json=None): pass def _json_operation(self, func, value, as_json=None): pass def insert(self, value, as_json=None): pass def set(self, value, as_json=None): pass def replace(self, value, as_json=None): ...
9
0
3
0
3
0
1
0.05
1
2
0
0
8
0
8
51
29
7
22
9
13
1
21
9
12
2
4
1
11
30,806
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.JSONField
from peewee import Expression import json from peewee import Node from peewee import OP class JSONField(TextField): field_type = 'JSON' unpack = False Path = JSONPath def __init__(self, json_dumps=None, json_loads=None, **kwargs): self._json_dumps = json_dumps or json.dumps self._json_...
class JSONField(TextField): def __init__(self, json_dumps=None, json_loads=None, **kwargs): pass def python_value(self, value): pass def db_value(self, value): pass def _e(op): pass def inner(self, rhs): pass def __getitem__(self, item):...
20
1
4
0
3
1
1
0.2
1
7
2
1
18
2
18
63
94
17
64
33
44
13
64
33
44
3
6
2
26
30,807
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.JSONPath
from peewee import ColumnBase class JSONPath(ColumnBase): def __init__(self, field, path=None): super(JSONPath, self).__init__() self._field = field self._path = path or () @property def path(self): return Value('$%s' % ''.join(self._path)) def __getitem__(self, idx):...
class JSONPath(ColumnBase): def __init__(self, field, path=None): pass @property def path(self): pass def __getitem__(self, idx): pass def append(self, value, as_json=None): pass def _json_operation(self, func, value, as_json=None): pass def inse...
17
0
3
0
3
0
1
0.05
1
6
1
1
15
2
15
43
57
14
43
20
26
2
40
19
24
2
3
1
19
30,808
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.LSMTable
from peewee import Expression class LSMTable(VirtualModel): class Meta: extension_module = 'lsm1' filename = None @classmethod def clean_options(cls, options): filename = cls._meta.filename if not filename: raise ValueError('LSM1 extension requires that you spe...
class LSMTable(VirtualModel): class Meta: @classmethod def clean_options(cls, options): pass @classmethod def load_extension(cls, path='lsm.so'): pass @staticmethod def slice_to_expr(key, idx): pass @staticmethod def _apply_lookup_to_query(query, key, looku...
16
0
12
1
11
0
4
0.01
1
10
5
3
0
0
7
55
101
11
89
27
73
1
61
20
52
9
3
2
28
30,809
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.RowIDField
class RowIDField(AutoField): auto_increment = True column_name = name = required_name = 'rowid' def bind(self, model, name, *args): if name != self.required_name: raise ValueError('%s must be named "%s".' % (type(self), self.required_name)) super(RowIDField, self).bind(model, na...
class RowIDField(AutoField): def bind(self, model, name, *args): pass
2
0
5
0
5
0
2
0
1
3
0
1
1
0
1
45
9
1
8
4
6
0
7
4
5
2
6
1
2
30,810
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.SearchField
class SearchField(Field): def __init__(self, unindexed=False, column_name=None, **k): if k: raise ValueError('SearchField does not accept these keyword arguments: %s.' % sorted(k)) super(SearchField, self).__init__(unindexed=unindexed, column_name=column_name, null=True) def match(...
class SearchField(Field): def __init__(self, unindexed=False, column_name=None, **k): pass def match(self, term): pass @property def fts_column_index(self): pass def highlight(self, left, right): pass def snippet(self, left, right, over_length='...', max_token...
7
0
5
0
5
0
2
0
1
2
0
0
5
1
5
47
29
4
25
11
18
0
20
10
14
2
4
1
8
30,811
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.SqliteExtDatabase
class SqliteExtDatabase(SqliteDatabase): def __init__(self, database, c_extensions=None, rank_functions=True, hash_functions=False, regexp_function=False, bloomfilter=False, json_contains=False, *args, **kwargs): super(SqliteExtDatabase, self).__init__(database, *args, **kwargs) self._row_factory =...
class SqliteExtDatabase(SqliteDatabase): def __init__(self, database, c_extensions=None, rank_functions=True, hash_functions=False, regexp_function=False, bloomfilter=False, json_contains=False, *args, **kwargs): pass def _add_conn_hooks(self, conn): pass def row_factory(self, fn): ...
4
0
13
1
13
0
4
0.03
1
3
1
5
3
2
3
115
43
4
39
9
33
1
33
7
29
10
4
2
13
30,812
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.TDecimalField
class TDecimalField(DecimalField): field_type = 'TEXT' def get_modifiers(self): pass
class TDecimalField(DecimalField): def get_modifiers(self): pass
2
0
1
0
1
0
1
0
1
0
0
0
1
0
1
47
3
0
3
3
2
0
4
3
2
1
5
0
1
30,813
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.VirtualModel
class VirtualModel(Model): class Meta: arguments = None extension_module = None prefix_arguments = None primary_key = False schema_manager_class = VirtualTableSchemaManager @classmethod def clean_options(cls, options): return options
class VirtualModel(Model): class Meta: @classmethod def clean_options(cls, options): pass
4
0
2
0
2
0
1
0
1
0
0
4
0
0
1
48
11
1
10
9
6
0
9
8
6
1
2
0
1
30,814
coleifer/peewee
coleifer_peewee/playhouse/sqlite_ext.py
playhouse.sqlite_ext.VirtualTableSchemaManager
from peewee import Node from peewee import NodeList from peewee import merge_dict from peewee import EnclosedNodeList from peewee import Entity class VirtualTableSchemaManager(SchemaManager): def _create_virtual_table(self, safe=True, **options): options = self.model.clean_options(merge_dict(self.model._m...
class VirtualTableSchemaManager(SchemaManager): def _create_virtual_table(self, safe=True, **options): pass def _create_table(self, safe=True, **options): pass
3
0
24
4
18
3
6
0.14
1
7
6
0
2
0
2
33
50
9
36
9
33
5
32
9
29
9
2
2
11
30,815
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf._datetime_heap_agg
class _datetime_heap_agg(_heap_agg): def process(self, value): return format_date_time_sqlite(value)
class _datetime_heap_agg(_heap_agg): def process(self, value): pass
2
0
2
0
2
0
1
0
1
0
0
2
1
0
1
4
3
0
3
2
1
0
3
2
1
1
2
0
1
30,816
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf._heap_agg
import heapq class _heap_agg(object): def __init__(self): self.heap = [] self.ct = 0 def process(self, value): return value def step(self, value): self.ct += 1 heapq.heappush(self.heap, self.process(value))
class _heap_agg(object): def __init__(self): pass def process(self, value): pass def step(self, value): pass
4
0
3
0
3
0
1
0
1
0
0
3
3
2
3
3
11
2
9
6
5
0
9
6
5
1
1
0
3
30,817
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf._range
@aggregate(MATH) class _range(object): name = 'range' def __init__(self): self._min = self._max = None def step(self, value): if self._min is None or value < self._min: self._min = value if self._max is None or value > self._max: self._max = value def f...
@aggregate(MATH) class _range(object): def __init__(self): pass def step(self, value): pass def finalize(self): pass
5
0
4
0
4
0
2
0
1
0
0
0
3
2
3
3
16
3
13
6
9
0
13
6
9
3
1
1
6
30,818
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf.avgrange
import heapq @aggregate(MATH) class avgrange(_heap_agg): def finalize(self): if self.ct == 0: return elif self.ct == 1: return 0 total = ct = 0 prev = None while self.heap: if total == 0: if prev is None: ...
@aggregate(MATH) class avgrange(_heap_agg): def finalize(self): pass
3
0
21
3
18
0
6
0
1
1
0
0
1
0
1
4
22
3
19
6
17
0
18
6
16
6
2
3
6
30,819
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf.avgtdiff
import heapq @aggregate(DATE) class avgtdiff(_datetime_heap_agg): def finalize(self): if self.ct < 1: return elif self.ct == 1: return 0 total = ct = 0 dtp = None while self.heap: if total == 0: if dtp is None: ...
@aggregate(DATE) class avgtdiff(_datetime_heap_agg): def finalize(self): pass
3
0
21
3
18
0
6
0
1
1
0
0
1
0
1
5
22
3
19
6
17
0
18
6
16
6
3
3
6
30,820
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf.duration
@aggregate(DATE) class duration(object): def __init__(self): self._min = self._max = None def step(self, value): dt = format_date_time_sqlite(value) if self._min is None or dt < self._min: self._min = dt if self._max is None or dt > self._max: self._max ...
@aggregate(DATE) class duration(object): def __init__(self): pass def step(self, value): pass def finalize(self): pass
5
0
4
0
4
0
2
0
1
0
0
0
3
2
3
3
16
2
14
7
10
0
14
7
10
3
1
1
6
30,821
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf.minrange
import heapq @aggregate(MATH) class minrange(_heap_agg): def finalize(self): if self.ct == 0: return elif self.ct == 1: return 0 prev = min_diff = None while self.heap: if min_diff is None: if prev is None: pre...
@aggregate(MATH) class minrange(_heap_agg): def finalize(self): pass
3
0
19
2
17
0
7
0
1
0
0
0
1
0
1
4
20
2
18
5
16
0
17
5
15
7
2
3
7
30,822
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf.mintdiff
import heapq @aggregate(DATE) class mintdiff(_datetime_heap_agg): def finalize(self): dtp = min_diff = None while self.heap: if min_diff is None: if dtp is None: dtp = heapq.heappop(self.heap) continue dt = heapq.heapp...
@aggregate(DATE) class mintdiff(_datetime_heap_agg): def finalize(self): pass
3
0
14
0
14
0
6
0
1
0
0
0
1
0
1
5
15
0
15
5
13
0
15
5
13
6
3
3
6
30,823
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf.mode
@aggregate(MATH) class mode(object): if Counter: def __init__(self): self.items = Counter() def step(self, *args): self.items.update(args) def finalize(self): if self.items: return self.items.most_common(1)[0][0] else: def _...
@aggregate(MATH) class mode(object): def __init__(self): pass def step(self, *args): pass def finalize(self): pass def __init__(self): pass def step(self, *args): pass def finalize(self)...
8
0
2
0
2
0
1
0
1
2
0
0
6
1
6
6
21
4
17
8
10
0
16
8
9
2
1
1
8
30,824
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf.stddev
import math @aggregate(MATH) class stddev(object): def __init__(self): self.n = 0 self.values = [] def step(self, v): self.n += 1 self.values.append(v) def finalize(self): if self.n <= 1: return 0 mean = sum(self.values) / self.n return...
@aggregate(MATH) class stddev(object): def __init__(self): pass def step(self, v): pass def finalize(self): pass
5
0
4
0
4
0
1
0
1
0
0
0
3
2
3
3
12
0
12
7
8
0
12
7
8
2
1
1
4
30,825
coleifer/peewee
coleifer_peewee/playhouse/sqlite_udf.py
playhouse.sqlite_udf.synchronized_dict
import threading class synchronized_dict(dict): def __init__(self, *args, **kwargs): super(synchronized_dict, self).__init__(*args, **kwargs) self._lock = threading.Lock() def __getitem__(self, key): with self._lock: return super(synchronized_dict, self).__getitem__(key) ...
class synchronized_dict(dict): def __init__(self, *args, **kwargs): pass def __getitem__(self, key): pass def __setitem__(self, key, value): pass def __delitem__(self, key): pass
5
0
3
0
3
0
1
0
1
1
0
0
4
1
4
31
16
3
13
6
8
0
13
6
8
1
2
1
4
30,826
coleifer/peewee
coleifer_peewee/playhouse/sqliteq.py
playhouse.sqliteq.AsyncCursor
class AsyncCursor(object): __slots__ = ('sql', 'params', 'timeout', '_event', '_cursor', '_exc', '_idx', '_rows', '_ready') def __init__(self, event, sql, params, timeout): self._event = event self.sql = sql self.params = params self.timeout = timeout self._cursor = self...
class AsyncCursor(object): def __init__(self, event, sql, params, timeout): pass def set_result(self, cursor, exc=None): pass def _wait(self, timeout=None): pass def __iter__(self): pass def next(self): pass @property def lastrowid(self): ...
15
0
5
0
5
0
2
0.02
1
4
1
0
11
9
11
11
76
11
65
24
50
1
61
21
49
4
1
1
23
30,827
coleifer/peewee
coleifer_peewee/playhouse/sqliteq.py
playhouse.sqliteq.GreenletHelper
class GreenletHelper(ThreadHelper): __slots__ = () def event(self): return GEvent() def queue(self, max_size=None): max_size = max_size if max_size is not None else self.queue_max_size return GQueue(maxsize=max_size or 0) def thread(self, fn, *args, **kwargs): def wra...
class GreenletHelper(ThreadHelper): def event(self): pass def queue(self, max_size=None): pass def thread(self, fn, *args, **kwargs): pass def wrap(*a, **k): pass
5
0
3
0
3
0
1
0
1
0
0
0
3
0
3
7
14
3
11
6
7
0
12
6
7
2
2
0
5
30,828
coleifer/peewee
coleifer_peewee/playhouse/sqliteq.py
playhouse.sqliteq.ResultTimeout
class ResultTimeout(Exception): pass
class ResultTimeout(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,829
coleifer/peewee
coleifer_peewee/playhouse/sqliteq.py
playhouse.sqliteq.ShutdownException
class ShutdownException(Exception): pass
class ShutdownException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,830
coleifer/peewee
coleifer_peewee/playhouse/sqliteq.py
playhouse.sqliteq.SqliteQueueDatabase
from threading import Lock from playhouse.sqlite_ext import SqliteExtDatabase from peewee import __deprecated__ class SqliteQueueDatabase(SqliteExtDatabase): WAL_MODE_ERROR_MESSAGE = 'SQLite must be configured to use the WAL journal mode when using this feature. WAL mode allows one or more readers to continue read...
class SqliteQueueDatabase(SqliteExtDatabase): def __init__(self, database, use_gevent=False, autostart=True, queue_max_size=None, results_timeout=None, *args, **kwargs): pass def get_thread_impl(self, use_gevent): pass def _validate_journal_mode(self, pragmas=None): pass def...
14
0
9
1
7
1
2
0.11
1
9
5
0
12
8
12
127
134
30
94
32
79
10
84
31
70
5
5
3
28
30,831
coleifer/peewee
coleifer_peewee/playhouse/sqliteq.py
playhouse.sqliteq.ThreadHelper
from threading import Thread from threading import Event class ThreadHelper(object): __slots__ = ('queue_max_size',) def __init__(self, queue_max_size=None): self.queue_max_size = queue_max_size def event(self): return Event() def queue(self, max_size=None): max_size = max_si...
class ThreadHelper(object): def __init__(self, queue_max_size=None): pass def event(self): pass def queue(self, max_size=None): pass def thread(self, fn, *args, **kwargs): pass
5
0
3
0
3
0
1
0
1
3
0
1
4
1
4
4
16
4
12
8
8
0
13
8
8
2
1
0
5
30,832
coleifer/peewee
coleifer_peewee/playhouse/sqliteq.py
playhouse.sqliteq.Writer
class Writer(object): __slots__ = ('database', 'queue') def __init__(self, database, queue): self.database = database self.queue = queue def run(self): conn = self.database.connection() try: while True: try: if conn is None: ...
class Writer(object): def __init__(self, database, queue): pass def run(self): pass def wait_unpause(self): pass def loop(self, conn): pass def execute(self, obj): pass
6
0
12
0
12
0
4
0.03
1
3
2
0
5
2
5
5
69
5
64
15
58
2
55
14
49
6
1
5
18
30,833
coleifer/peewee
coleifer_peewee/playhouse/sqliteq.py
playhouse.sqliteq.WriterPaused
class WriterPaused(Exception): pass
class WriterPaused(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,834
coleifer/peewee
coleifer_peewee/examples/reddit_ranking.py
reddit_ranking.Post
class Post(Base): content = TextField() timestamp = TimestampField() ups = IntegerField(default=0) downs = IntegerField(default=0)
class Post(Base): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
47
5
0
5
5
4
0
5
5
4
0
3
0
0
30,835
coleifer/peewee
coleifer_peewee/examples/analytics/reports.py
reports.Report
from app import Account, PageView class Report(object): def __init__(self, account_id=DEFAULT_ACCOUNT_ID): self.account = Account.get(Account.id == account_id) self.date_range = None def get_query(self): query = PageView.select().where(PageView.account == self.account) if self...
class Report(object): def __init__(self, account_id=DEFAULT_ACCOUNT_ID): pass def get_query(self): pass def top_pages_by_time_period(self, interval='day'): ''' Get a breakdown of top pages per interval, i.e. day url count 2014-01-01 /blog/ 11...
12
6
10
0
7
2
1
0.33
1
3
3
0
11
2
11
11
117
11
81
22
69
27
36
22
24
2
1
1
13
30,836
coleifer/peewee
coleifer_peewee/setup.py
setup.BuildFailure
class BuildFailure(Exception): pass
class BuildFailure(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
1
0
1
1
1
0
2
1
1
0
3
0
0
30,837
coleifer/peewee
coleifer_peewee/setup.py
setup._PeeweeBuildExt
class _PeeweeBuildExt(build_ext): def run(self): try: build_ext.run(self) except DistutilsPlatformError: raise BuildFailure() def build_extension(self, ext): try: build_ext.build_extension(self, ext) except (CCompilerError, DistutilsExecError...
class _PeeweeBuildExt(build_ext): def run(self): pass def build_extension(self, ext): pass
3
0
5
0
5
0
2
0
1
4
1
0
2
0
2
50
12
1
11
3
8
0
11
3
8
2
2
1
4
30,838
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/tour_examples/bootstrap_google_tour.py
bootstrap_google_tour.MyTourClass
from seleniumbase import BaseCase class MyTourClass(BaseCase): def test_google_tour(self): if not self.undetectable: self.get_new_driver(undetectable=True) self.open('https://google.com/ncr') self.wait_for_element('[title="Search"]') self.hide_elements('iframe') ...
class MyTourClass(BaseCase): def test_google_tour(self): pass
2
0
82
7
75
12
3
0.16
1
0
0
0
1
0
1
629
83
7
76
2
74
12
43
2
41
3
3
1
3
30,839
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/tour_examples/bootstrap_xkcd_tour.py
bootstrap_xkcd_tour.MyTestClass
from seleniumbase import BaseCase class MyTestClass(BaseCase): def test_bootstrap_tour(self): self.open('https://xkcd.com/1117/') self.assert_element('img[alt="My Sky"]') self.create_bootstrap_tour() self.add_tour_step('Welcome to XKCD!') self.add_tour_step('This is the XKC...
class MyTestClass(BaseCase): def test_bootstrap_tour(self): pass
2
0
15
0
15
3
1
0.19
1
0
0
0
1
0
1
629
16
0
16
2
14
3
16
2
14
1
3
0
1
30,840
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/chart_maker/chart_presentation.py
chart_presentation.ChartMakerPresentation
from seleniumbase import BaseCase class ChartMakerPresentation(BaseCase): def test_chart_maker_presentation(self): self.create_presentation(theme='sky', transition='zoom') self.create_pie_chart(title='Automated Tests') self.add_data_point('Passed', 7, color='#95d96f') self.add_data...
class ChartMakerPresentation(BaseCase): def test_chart_maker_presentation(self): pass
2
0
32
5
27
3
1
0.11
1
0
0
0
1
0
1
629
33
5
28
2
26
3
28
2
26
1
3
0
1
30,841
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/presenter/core_presentation.py
core_presentation.PresentationWithChart
from seleniumbase import BaseCase class PresentationWithChart(BaseCase): def test_seleniumbase_chart(self): self.create_presentation(theme='league', transition='slide') self.create_pie_chart(title='The 4 core areas of SeleniumBase:') self.add_data_point('Basic API (test methods)', 1) ...
class PresentationWithChart(BaseCase): def test_seleniumbase_chart(self): pass
2
0
91
1
90
3
1
0.03
1
0
0
0
1
0
1
629
92
1
91
2
89
3
15
2
13
1
3
0
1
30,842
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/dialog_boxes/dialog_box_tour.py
dialog_box_tour.DialogBoxTests
from seleniumbase import BaseCase class DialogBoxTests(BaseCase): def test_dialog_boxes(self): self.open('https://xkcd.com/1920/') self.assert_element('img[alt="Emoji Sports"]') self.highlight('#comic img') skip_button = ['SKIP', 'red'] buttons = ['Fencing', 'Football', 'Me...
class DialogBoxTests(BaseCase): def test_dialog_boxes(self): pass
2
0
118
8
110
6
13
0.05
1
0
0
0
1
0
1
629
119
8
111
13
109
6
103
13
101
13
3
3
13
30,843
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/tour_examples/driverjs_maps_tour.py
driverjs_maps_tour.MyTestClass
from seleniumbase import BaseCase class MyTestClass(BaseCase): def test_create_tour(self): self.open('https://www.google.com/maps/@42.3591234,-71.0915634,15z') self.wait_for_element('#searchboxinput', timeout=20) self.wait_for_element('#minimap', timeout=20) self.wait_for_element('...
class MyTestClass(BaseCase): def test_create_tour(self): pass
2
0
58
1
55
12
3
0.21
1
0
0
0
1
0
1
629
59
1
56
2
54
12
23
2
21
3
3
1
3
30,844
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/presenter/edge_presentation.py
edge_presentation.EdgePresentationClass
from seleniumbase import BaseCase class EdgePresentationClass(BaseCase): def test_presentation(self): if not self.browser == 'edge': self.driver.quit() self.get_new_driver(browser='edge') self.demo_mode = False self.maximize_window() self.create_presentation...
class EdgePresentationClass(BaseCase): def test_presentation(self): pass
2
0
708
13
695
105
6
0.15
1
0
0
0
1
1
1
629
709
13
696
5
694
105
281
5
279
6
3
1
6
30,845
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/boilerplates/page_objects.py
examples.boilerplates.page_objects.CheckoutPage
class CheckoutPage(object): remove_from_cart = 'button.remove' buy_now = '#buy-now' shop_more = '#shop-more'
class CheckoutPage(object): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
4
0
4
4
3
2
4
4
3
0
1
0
0
30,846
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/boilerplates/page_objects.py
examples.boilerplates.page_objects.HomePage
class HomePage(object): see_items_button = 'button.items'
class HomePage(object): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
1
0
0
30,847
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/boilerplates/page_objects.py
examples.boilerplates.page_objects.Page
class Page(object): html = 'html' ok_button = '#ok' cancel_button = '#cancel' see_items_button = 'button.items'
class Page(object): pass
1
0
0
0
0
0
0
0.4
1
0
0
0
0
0
0
0
5
0
5
5
4
2
5
5
4
0
1
0
0
30,848
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/boilerplates/page_objects.py
examples.boilerplates.page_objects.ShoppingPage
class ShoppingPage(object): buyable_item = 'img[alt="Item"]' add_to_cart = 'button.add' go_to_checkout = '#checkout'
class ShoppingPage(object): pass
1
0
0
0
0
0
0
0.25
1
0
0
0
0
0
0
0
4
0
4
4
3
1
4
4
3
0
1
0
0
30,849
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/boilerplates/samples/file_parsing/parse_files.py
examples.boilerplates.samples.file_parsing.parse_files.ParseTests
class ParseTests(ParseTestCase): def test_get_login_credentials(self): print('\nExample 1 of getting login info from parsing a config file:') print('') username, password = self.get_login_credentials('admin') print('Getting Admin User login data:') print('Username: %s' % use...
class ParseTests(ParseTestCase): def test_get_login_credentials(self): pass
2
0
14
1
13
0
1
0
1
0
0
0
1
0
1
631
15
1
14
4
12
0
14
4
12
1
4
0
1
30,850
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/boilerplates/samples/google_objects.py
examples.boilerplates.samples.google_objects.HomePage
class HomePage(object): dialog_box = '[role="dialog"] div' search_box = '[title="Search"]' search_button = 'input[value="Google Search"]' feeling_lucky_button = 'input[value="I\'m Feeling Lucky"]'
class HomePage(object): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
5
4
0
5
5
4
0
1
0
0
30,851
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/boilerplates/samples/google_objects.py
examples.boilerplates.samples.google_objects.ResultsPage
class ResultsPage(object): search_results = 'div#center_col'
class ResultsPage(object): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
2
0
2
2
1
1
2
2
1
0
1
0
0
30,852
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/hack_the_planet.py
examples.hack_the_planet.HackTests
from seleniumbase import BaseCase class HackTests(BaseCase): def test_all_your_base_are_belong_to_us(self): self.set_window_size(1250, 740) ayb = 'ALL YOUR BASE' abtu = 'ARE BELONG TO US' aybabtu = '%s %s' % (ayb, abtu) sb_banner_logo = '//seleniumbase.github.io/cdn/img/sb_...
class HackTests(BaseCase): def test_all_your_base_are_belong_to_us(self): pass
2
0
336
22
314
74
16
0.23
1
1
0
0
1
0
1
629
337
22
315
10
313
74
312
10
310
16
3
2
16
30,853
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/migration/raw_selenium/flaky_messy_raw.py
examples.migration.raw_selenium.flaky_messy_raw.FlakyMessyRawSelenium
from selenium.webdriver.chrome.service import Service import sys from selenium.webdriver.common.by import By from unittest import TestCase from selenium import webdriver class FlakyMessyRawSelenium(TestCase): def setUp(self): self.driver = None options = webdriver.ChromeOptions() options.a...
class FlakyMessyRawSelenium(TestCase): def setUp(self): pass def tearDown(self): pass def is_element_visible(self, selector, by='css selector'): pass def test_add_item_to_cart(self): pass
5
0
14
0
14
2
3
0.14
1
1
0
0
4
1
4
76
59
3
56
12
51
8
51
12
46
4
2
3
10
30,854
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/migration/raw_selenium/long_messy_raw.py
examples.migration.raw_selenium.long_messy_raw.LongMessyRawSelenium
from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.chrome.service import Service from unittest import TestCase import sys from selenium import webdriver from selenium.webdriver.common.by import By class LongMessyRawSelenium(T...
class LongMessyRawSelenium(TestCase): def setUp(self): pass def tearDown(self): pass def test_add_item_to_cart(self): pass
4
0
26
0
26
3
2
0.1
1
1
0
0
3
1
3
75
81
2
79
10
75
8
48
10
44
4
2
3
7
30,855
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/migration/raw_selenium/messy_raw.py
examples.migration.raw_selenium.messy_raw.MessyRawSelenium
from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.chrome.service import Service from selenium.webdriver.support import expected_conditions as EC import sys from unittest import TestCase from selenium import webdriver class MessyRawSelenium(TestCase): def setUp(self): self.dri...
class MessyRawSelenium(TestCase): def setUp(self): pass def tearDown(self): pass def wait_for_element_visible(self, selector, by='css selector', timeout=10): pass def wait_for_element_clickable(self, selector, by='css selector', timeout=10): pass def wait_for_el...
7
0
11
0
11
1
2
0.11
1
1
0
0
6
1
6
78
70
5
65
18
52
7
48
12
41
4
2
3
10
30,856
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/migration/raw_selenium/refined_raw.py
examples.migration.raw_selenium.refined_raw.RefinedRawSelenium
from unittest import TestCase from selenium.webdriver.support import expected_conditions as EC import sys from selenium.webdriver.support.ui import WebDriverWait from selenium import webdriver from selenium.webdriver.chrome.service import Service class RefinedRawSelenium(TestCase): def setUp(self): self.d...
class RefinedRawSelenium(TestCase): def setUp(self): pass def tearDown(self): pass def wait_for_element_visible(self, selector, by='css selector', timeout=10): pass def wait_for_element_clickable(self, selector, by='css selector', timeout=10): pass def wait_for_...
14
0
8
0
8
1
2
0.07
1
1
0
0
13
1
13
85
112
12
100
30
78
7
71
22
57
4
2
3
21
30,857
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/migration/raw_selenium/simple_sbase.py
examples.migration.raw_selenium.simple_sbase.CleanSeleniumBase
from seleniumbase import BaseCase class CleanSeleniumBase(BaseCase): def test_add_item_to_cart(self): self.open('https://www.saucedemo.com') self.type('#user-name', 'standard_user') self.type('#password', 'secret_sauce\n') self.assert_element('div.inventory_list') self.asse...
class CleanSeleniumBase(BaseCase): def test_add_item_to_cart(self): pass
2
0
15
0
15
7
1
0.44
1
0
0
0
1
0
1
629
16
0
16
2
14
7
16
2
14
1
3
0
1
30,858
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/old_wordle_script.py
examples.old_wordle_script.WordleTests
from seleniumbase import BaseCase import ast import random from seleniumbase import version_tuple import requests class WordleTests(BaseCase): word_list = [] def initialize_word_list(self): txt_file = 'https://seleniumbase.github.io/cdn/txt/wordle_words.txt' word_string = requests.get(txt_file...
class WordleTests(BaseCase): def initialize_word_list(self): pass def modify_word_list(self, word, letter_status): pass def skip_if_incorrect_env(self): pass def test_wordle(self): pass
5
0
26
0
26
1
7
0.02
1
2
0
0
4
0
4
632
112
6
106
34
101
2
99
34
94
16
3
5
27
30,859
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/uc_cdp_events.py
examples.uc_cdp_events.CDPTests
from seleniumbase import BaseCase from rich.pretty import pprint class CDPTests(BaseCase): def add_cdp_listener(self): self.driver.add_cdp_listener('Network.requestWillBeSentExtraInfo', lambda data: pprint(data)) def click_turnstile_and_verify(sb): sb.uc_gui_handle_captcha() sb.assert...
class CDPTests(BaseCase): def add_cdp_listener(self): pass def click_turnstile_and_verify(sb): pass def test_display_cdp_events(self): pass
4
0
7
0
6
1
1
0.2
1
0
0
0
3
0
3
631
24
2
20
5
16
4
17
5
13
2
3
1
4
30,860
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/upgrade_chromedriver.py
examples.upgrade_chromedriver.TestUpgradeChromedriver
import subprocess class TestUpgradeChromedriver: def basic_run(self, testdir): testdir.makepyfile('\n from seleniumbase import BaseCase\n class MyTestCase(BaseCase):\n def test_passing(self):\n pass\n ') return testdir def upg...
class TestUpgradeChromedriver: def basic_run(self, testdir): pass def upgrade_chromedriver(self, testdir): pass def print_versions_of_chromedriver_and_chrome(self, testdir): pass def test_upgrade_chromedriver(self, testdir): pass
5
0
21
0
20
1
1
0.05
0
1
0
0
4
0
4
4
88
3
82
7
77
4
23
7
18
2
0
1
5
30,861
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/presenter/fundamentals.py
fundamentals.MyTestClass
from seleniumbase import BaseCase class MyTestClass(BaseCase): def test_presentation(self): self.create_presentation(theme='serif', transition='fade') self.add_slide('<h2>Python Selenium:</h2>\n<h3>Fundamentals to Frameworks</h3><h3>(with SeleniumBase)</h3>\n<br /><hr /><br />\n<h3>Presented by <b...
class MyTestClass(BaseCase): def test_presentation(self): pass
2
0
411
1
410
51
1
0.12
1
0
0
0
1
0
1
629
412
1
411
2
409
51
34
2
32
1
3
0
1
30,862
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/tour_examples/google_tour.py
google_tour.MyTourClass
from seleniumbase import BaseCase class MyTourClass(BaseCase): def test_google_tour(self): if not self.undetectable: self.get_new_driver(undetectable=True) self.open('https://google.com/ncr') self.wait_for_element('[title="Search"]') self.hide_elements('iframe') ...
class MyTourClass(BaseCase): def test_google_tour(self): pass
2
0
90
7
75
20
3
0.26
1
0
0
0
1
0
1
629
91
7
76
2
74
20
43
2
41
3
3
1
3
30,863
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/presenter/hacking_with_cdp.py
hacking_with_cdp.UCPresentationClass
from seleniumbase import BaseCase class UCPresentationClass(BaseCase): def test_hacking_with_cdp(self): self.open('data:,') self.set_window_position(4, 40) self._output_file_saves = False self.create_presentation(theme='serif', transition='none') self.add_slide('<h2>Press S...
class UCPresentationClass(BaseCase): def test_hacking_with_cdp(self): pass
2
0
140
0
140
0
1
0
1
0
0
0
1
1
1
629
141
0
141
3
139
0
29
3
27
1
3
0
1
30,864
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/tour_examples/hopscotch_google_tour.py
hopscotch_google_tour.MyTourClass
from seleniumbase import BaseCase class MyTourClass(BaseCase): def test_google_tour(self): if not self.undetectable: self.get_new_driver(undetectable=True) self.open('https://google.com/ncr') self.wait_for_element('[title="Search"]') self.hide_elements('iframe') ...
class MyTourClass(BaseCase): def test_google_tour(self): pass
2
0
82
7
75
12
3
0.16
1
0
0
0
1
0
1
629
83
7
76
2
74
12
43
2
41
3
3
1
3
30,865
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/tour_examples/introjs_google_tour.py
introjs_google_tour.MyTourClass
from seleniumbase import BaseCase class MyTourClass(BaseCase): def test_google_tour(self): if not self.undetectable: self.get_new_driver(undetectable=True) self.open('https://google.com/ncr') self.wait_for_element('[title="Search"]') self.hide_elements('iframe') ...
class MyTourClass(BaseCase): def test_google_tour(self): pass
2
0
83
7
76
13
3
0.17
1
0
0
0
1
0
1
629
84
7
77
2
75
13
44
2
42
3
3
1
3
30,866
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/tour_examples/maps_introjs_tour.py
maps_introjs_tour.MyTourClass
from seleniumbase import BaseCase class MyTourClass(BaseCase): def test_google_maps_tour(self): self.open('https://www.google.com/maps/@42.3591234,-71.0915634,15z') self.wait_for_element('#searchboxinput', timeout=20) self.wait_for_element('#minimap', timeout=20) self.wait_for_elem...
class MyTourClass(BaseCase): def test_google_maps_tour(self): pass
2
0
59
1
58
8
3
0.14
1
0
0
0
1
0
1
629
60
1
59
2
57
8
23
2
21
3
3
1
3
30,867
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/chart_maker/my_chart.py
my_chart.MyChartMakerClass
from seleniumbase import BaseCase class MyChartMakerClass(BaseCase): def test_chart_maker(self): self.create_presentation() self.create_pie_chart(title='Automated Tests') self.add_data_point('Passed', 7, color='#95d96f') self.add_data_point('Untested', 2, color='#eaeaea') s...
class MyChartMakerClass(BaseCase): def test_chart_maker(self): pass
2
0
8
0
8
3
1
0.33
1
0
0
0
1
0
1
629
9
0
9
2
7
3
9
2
7
1
3
0
1
30,868
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/presenter/my_presentation.py
my_presentation.MyPresenterClass
from seleniumbase import BaseCase class MyPresenterClass(BaseCase): def test_presenter(self): self.create_presentation(theme='serif', transition='none') self.add_slide('<h1>Welcome</h1><br />\n<h3>Press the <b>Right Arrow</b></h3>') self.add_slide('<h3>SeleniumBase Presenter</h3><br />\n<i...
class MyPresenterClass(BaseCase): def test_presenter(self): pass
2
0
133
0
133
0
1
0
1
0
0
0
1
0
1
629
134
0
134
2
132
0
16
2
14
1
3
0
1
30,869
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/tour_examples/octocat_tour.py
octocat_tour.MyTourClass
from seleniumbase import BaseCase class MyTourClass(BaseCase): def test_octocat_tour(self): self.maximize_window() self.open('https://seleniumbase.io/error_page/') self.wait_for_element('#parallax_octocat') self.create_tour(theme='bootstrap') self.add_tour_step('Welcome to ...
class MyTourClass(BaseCase): def test_octocat_tour(self): pass
2
0
18
0
18
6
1
0.32
1
0
0
0
1
0
1
629
19
0
19
2
17
6
17
2
15
1
3
0
1
30,870
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/chart_maker/pie_charts.py
pie_charts.PieCharts
from seleniumbase import BaseCase class PieCharts(BaseCase): def test_pie_charts(self): self.create_presentation(theme='serif', transition='convex') self.create_pie_chart(labels=False) self.add_data_point('Meringue Cream', 3, color='#f1eeea') self.add_data_point('Lemon Filling', 3,...
class PieCharts(BaseCase): def test_pie_charts(self): pass
2
0
40
6
34
21
1
0.6
1
0
0
0
1
0
1
629
41
6
35
2
33
21
35
2
33
1
3
0
1
30,871
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/examples/presenter/py_virtual_envs.py
py_virtual_envs.PythonVirtualEnvs
from seleniumbase import BaseCase class PythonVirtualEnvs(BaseCase): def test_py_virtual_envs(self): self.create_presentation(theme='serif', transition='slide') self.add_slide('<h2>Python Virtual Environments:</h2><br />\n<h2>What, Why, and How</h2><hr /><br />\n<h3>Presented by <b>Michael Mintz</...
class PythonVirtualEnvs(BaseCase): def test_py_virtual_envs(self): pass
2
0
189
1
188
24
1
0.13
1
0
0
0
1
0
1
629
190
1
189
2
187
24
21
2
19
1
3
0
1
30,872
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.ElementNotVisibleException
class ElementNotVisibleException(InvalidElementStateException): """Thrown when an element is present in the DOM, but not visible."""
class ElementNotVisibleException(InvalidElementStateException): '''Thrown when an element is present in the DOM, but not visible.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
12
2
0
1
1
0
1
1
1
0
0
5
0
0
30,873
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.InvalidElementStateException
class InvalidElementStateException(WebDriverException): """Thrown when a command could not be completed because the element is in an invalid state."""
class InvalidElementStateException(WebDriverException): '''Thrown when a command could not be completed because the element is in an invalid state.''' pass
1
1
0
0
0
0
0
2
1
0
0
1
0
0
0
12
3
0
1
1
0
2
1
1
0
0
4
0
0
30,874
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.InvalidSwitchToTargetException
class InvalidSwitchToTargetException(WebDriverException): """Thrown when frame or window target to be switched doesn't exist."""
class InvalidSwitchToTargetException(WebDriverException): '''Thrown when frame or window target to be switched doesn't exist.''' pass
1
1
0
0
0
0
0
1
1
0
0
2
0
0
0
12
2
0
1
1
0
1
1
1
0
0
4
0
0
30,875
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.LinkTextNotFoundException
class LinkTextNotFoundException(Exception): pass
class LinkTextNotFoundException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,876
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NoAlertPresentException
class NoAlertPresentException(WebDriverException): """Thrown when switching to no presented alert."""
class NoAlertPresentException(WebDriverException): '''Thrown when switching to no presented alert.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
12
2
0
1
1
0
1
1
1
0
0
4
0
0
30,877
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NoSuchAttributeException
class NoSuchAttributeException(WebDriverException): """Thrown when the attribute of element could not be found."""
class NoSuchAttributeException(WebDriverException): '''Thrown when the attribute of element could not be found.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
12
2
0
1
1
0
1
1
1
0
0
4
0
0
30,878
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NoSuchElementException
class NoSuchElementException(WebDriverException): """Thrown when element could not be found."""
class NoSuchElementException(WebDriverException): '''Thrown when element could not be found.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
12
2
0
1
1
0
1
1
1
0
0
4
0
0
30,879
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NoSuchFileException
class NoSuchFileException(Exception): pass
class NoSuchFileException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,880
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NoSuchFrameException
class NoSuchFrameException(InvalidSwitchToTargetException): """Thrown when frame target to be switched doesn't exist."""
class NoSuchFrameException(InvalidSwitchToTargetException): '''Thrown when frame target to be switched doesn't exist.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
12
2
0
1
1
0
1
1
1
0
0
5
0
0
30,881
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NoSuchOptionException
class NoSuchOptionException(Exception): pass
class NoSuchOptionException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,882
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NoSuchWindowException
class NoSuchWindowException(InvalidSwitchToTargetException): """Thrown when window target to be switched doesn't exist."""
class NoSuchWindowException(InvalidSwitchToTargetException): '''Thrown when window target to be switched doesn't exist.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
12
2
0
1
1
0
1
1
1
0
0
5
0
0
30,883
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NotConnectedException
class NotConnectedException(Exception): pass
class NotConnectedException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,884
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NotUsingChromeException
class NotUsingChromeException(Exception): pass
class NotUsingChromeException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,885
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.NotUsingChromiumException
class NotUsingChromiumException(Exception): pass
class NotUsingChromiumException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,886
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.OutOfScopeException
class OutOfScopeException(Exception): pass
class OutOfScopeException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,887
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.ProxyConnectionException
class ProxyConnectionException(Exception): pass
class ProxyConnectionException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,888
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.TextNotVisibleException
class TextNotVisibleException(Exception): pass
class TextNotVisibleException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,889
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.TimeLimitExceededException
class TimeLimitExceededException(Exception): pass
class TimeLimitExceededException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,890
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.VisualException
class VisualException(Exception): pass
class VisualException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
30,891
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/common/exceptions.py
seleniumbase.common.exceptions.WebDriverException
class WebDriverException(Exception): """Base webdriver exception.""" def __init__(self, msg=None, screen=None, stacktrace=None): super().__init__() self.msg = msg self.screen = screen self.stacktrace = stacktrace def __str__(self): exception_msg = 'Message: %s\n' % ...
class WebDriverException(Exception): '''Base webdriver exception.''' def __init__(self, msg=None, screen=None, stacktrace=None): pass def __str__(self): pass
3
1
7
0
7
0
2
0.07
1
1
0
5
2
3
2
12
17
2
14
8
11
1
14
8
11
3
3
1
4
30,892
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/core/application_manager.py
seleniumbase.core.application_manager.ApplicationManager
import time class ApplicationManager: """Generating application strings for the Testcase Database.""" @classmethod def generate_application_string(cls, test): """Generate a string based on some of the given information that's pulled from the test object: app_env, start_time.""" app...
class ApplicationManager: '''Generating application strings for the Testcase Database.''' @classmethod def generate_application_string(cls, test): '''Generate a string based on some of the given information that's pulled from the test object: app_env, start_time.''' pass
3
2
13
3
8
2
3
0.3
0
1
0
0
0
0
1
1
17
4
10
5
7
3
8
4
6
3
0
1
3
30,893
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/core/colored_traceback.py
seleniumbase.core.colored_traceback.Colorizer
import sys class Colorizer(object): def __init__(self, style, debug=False): self.style = style self.debug = debug def colorize_traceback(self, type, value, tb): import traceback import pygments.lexers tb_text = ''.join(traceback.format_exception(type, value, tb)) ...
class Colorizer(object): def __init__(self, style, debug=False): pass def colorize_traceback(self, type, value, tb): pass @property def formatter(self): pass @property def stream(self): pass
7
0
10
1
9
0
3
0
1
2
0
0
4
2
4
4
44
5
39
22
27
0
35
19
25
7
1
2
11
30,894
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/core/detect_b_ver.py
seleniumbase.core.detect_b_ver.ChromeType
class ChromeType(object): GOOGLE = 'google-chrome' MSEDGE = 'edge'
class ChromeType(object): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
3
2
0
3
3
2
0
1
0
0
30,895
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/core/detect_b_ver.py
seleniumbase.core.detect_b_ver.File
import re class File(object): def __init__(self, stream): self.content = stream.content self.__stream = stream self.__temp_name = 'driver' @property def filename(self): try: filename = re.findall('filename=(.+)', self.__stream.headers['content-disposition'])[0]...
class File(object): def __init__(self, stream): pass @property def filename(self): pass
4
0
9
1
8
0
3
0
1
2
0
0
2
3
2
2
21
3
18
8
14
0
15
7
12
4
1
1
5
30,896
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/core/detect_b_ver.py
seleniumbase.core.detect_b_ver.OSType
class OSType(object): LINUX = 'linux' MAC = 'mac' WIN = 'win'
class OSType(object): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
4
3
0
4
4
3
0
1
0
0
30,897
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/core/mysql.py
seleniumbase.core.mysql.DatabaseManager
class DatabaseManager: """This class wraps MySQL database methods for easy use.""" def __init__(self, database_env='test', conf_creds=None): """Create a connection to the MySQL DB.""" import fasteners import sys import time from seleniumbase import config as sb_config ...
class DatabaseManager: '''This class wraps MySQL database methods for easy use.''' def __init__(self, database_env='test', conf_creds=None): '''Create a connection to the MySQL DB.''' pass def query_fetch_all(self, query, values): '''Execute db query, get all the values, and close ...
6
5
18
0
17
2
4
0.12
0
2
1
0
5
2
5
5
98
6
84
33
66
10
74
33
56
14
0
4
18
30,898
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/core/s3_manager.py
seleniumbase.core.s3_manager.S3LoggingBucket
class S3LoggingBucket(object): """A class for uploading log files from tests to Amazon S3. Those files can then be shared easily.""" from seleniumbase.config import settings def __init__(self, log_bucket=settings.S3_LOG_BUCKET, bucket_url=settings.S3_BUCKET_URL, selenium_access_key=settings.S3_SELENIUM...
class S3LoggingBucket(object): '''A class for uploading log files from tests to Amazon S3. Those files can then be shared easily.''' def __init__(self, log_bucket=settings.S3_LOG_BUCKET, bucket_url=settings.S3_BUCKET_URL, selenium_access_key=settings.S3_SELENIUM_ACCESS_KEY, selenium_secret_key=settings...
7
6
14
0
12
2
2
0.15
1
5
1
0
6
3
6
6
91
8
72
36
48
11
46
28
30
4
1
2
11
30,899
seleniumbase/SeleniumBase
seleniumbase_SeleniumBase/seleniumbase/core/sb_cdp.py
seleniumbase.core.sb_cdp.CDPMethods
import sys from seleniumbase.fixtures import constants import re from seleniumbase.config import settings from seleniumbase.undetected.cdp_driver import cdp_util import os from seleniumbase import config as sb_config from seleniumbase.fixtures import shared_utils import fasteners from contextlib import suppress from se...
class CDPMethods: def __init__(self, loop, page, driver): pass def _swap_driver(self, driver): pass def __slow_mode_pause_if_set(self): pass def __add_light_pause(self): pass def __convert_to_css_if_xpath(self, selector): pass def __add_sync_methods...
207
49
11
0
10
0
2
0.04
0
12
4
0
166
3
166
166
1,946
166
1,722
432
1,534
73
1,308
426
1,126
11
0
6
379