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
12,600
ccxt/ccxt
python/ccxt/static_dependencies/starknet/serialization/data_serializers/uint_serializer.py
ccxt.static_dependencies.starknet.serialization.data_serializers.uint_serializer.UintSerializer
from dataclasses import dataclass from .._context import Context, DeserializationContext, SerializationContext from typing import Generator, TypedDict, Union from .cairo_data_serializer import CairoDataSerializer from ...cairo.felt import uint256_range_check @dataclass class UintSerializer(CairoDataSerializer[Union[in...
@dataclass class UintSerializer(CairoDataSerializer[Union[int, Uint256Dict], int]): ''' Serializer of uint. In Cairo there are few uints (u8, ..., u128 and u256). u256 is represented by structure {low: u128, high: u128}. Can serialize an int and dict. Deserializes data to an int. Examples: ...
9
2
11
1
9
1
2
0.43
1
7
4
0
3
0
5
32
80
13
47
16
33
20
35
8
29
2
5
2
8
12,601
ccxt/ccxt
python/ccxt/static_dependencies/starknet/serialization/errors.py
ccxt.static_dependencies.starknet.serialization.errors.CairoSerializerException
class CairoSerializerException(Exception): """Exception thrown by CairoSerializer."""
class CairoSerializerException(Exception): '''Exception thrown by CairoSerializer.''' pass
1
1
0
0
0
0
0
1
1
0
0
2
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
12,602
ccxt/ccxt
python/ccxt/static_dependencies/starknet/serialization/errors.py
ccxt.static_dependencies.starknet.serialization.errors.InvalidTypeException
class InvalidTypeException(CairoSerializerException, TypeError): """Exception thrown when invalid type was provided."""
class InvalidTypeException(CairoSerializerException, TypeError): '''Exception thrown when invalid type was provided.''' pass
1
1
0
0
0
0
0
1
2
0
0
0
0
0
0
11
2
0
1
1
0
1
1
1
0
0
4
0
0
12,603
ccxt/ccxt
python/ccxt/static_dependencies/starknet/serialization/errors.py
ccxt.static_dependencies.starknet.serialization.errors.InvalidValueException
class InvalidValueException(CairoSerializerException, ValueError): """Exception thrown when invalid value was provided."""
class InvalidValueException(CairoSerializerException, ValueError): '''Exception thrown when invalid value was provided.''' pass
1
1
0
0
0
0
0
1
2
0
0
0
0
0
0
11
2
0
1
1
0
1
1
1
0
0
4
0
0
12,604
ccxt/ccxt
python/ccxt/static_dependencies/starknet/serialization/function_serialization_adapter.py
ccxt.static_dependencies.starknet.serialization.function_serialization_adapter.FunctionSerializationAdapter
from ..cairo.felt import CairoData from dataclasses import dataclass, field from .tuple_dataclass import TupleDataclass from typing import Dict, List, Set, Tuple from .errors import InvalidTypeException from .data_serializers.payload_serializer import PayloadSerializer @dataclass class FunctionSerializationAdapter: ...
@dataclass class FunctionSerializationAdapter: ''' Class serializing ``*args`` and ``**kwargs`` by adapting them to function inputs. ''' def __post_init__(self): pass def serialize(self, *args, **kwargs) -> CairoData: ''' Method using args and kwargs to match members and se...
11
4
9
1
6
2
2
0.41
0
8
2
1
5
0
7
7
80
16
46
18
36
19
34
16
26
3
0
2
12
12,605
ccxt/ccxt
python/ccxt/static_dependencies/starknet/serialization/function_serialization_adapter.py
ccxt.static_dependencies.starknet.serialization.function_serialization_adapter.FunctionSerializationAdapterV1
from .data_serializers.output_serializer import OutputSerializer from typing import Dict, List, Set, Tuple from dataclasses import dataclass, field @dataclass class FunctionSerializationAdapterV1(FunctionSerializationAdapter): outputs_deserializer: OutputSerializer def deserialize(self, data: List[int]) -> Tu...
@dataclass class FunctionSerializationAdapterV1(FunctionSerializationAdapter): def deserialize(self, data: List[int]) -> Tuple: ''' Deserializes data into TupleDataclass containing python representations. :return: cairo data. ''' pass
3
1
7
1
2
4
1
1
1
1
0
0
1
0
1
8
10
2
4
2
2
4
4
2
2
1
1
0
1
12,606
ccxt/ccxt
python/ccxt/static_dependencies/starknet/serialization/tuple_dataclass.py
ccxt.static_dependencies.starknet.serialization.tuple_dataclass.TupleDataclass
from dataclasses import dataclass, fields, make_dataclass from typing import Dict, Optional, Tuple @dataclass(frozen=True, eq=False) class TupleDataclass: """ Dataclass that behaves like a tuple at the same time. Used when data has defined order and names. For instance in case of named tuples or function r...
@dataclass(frozen=True, eq=False) class TupleDataclass: ''' Dataclass that behaves like a tuple at the same time. Used when data has defined order and names. For instance in case of named tuples or function responses. ''' def __getattr__(self, item): pass def __getitem__(self, item: in...
11
3
4
0
3
1
1
0.57
0
5
0
0
7
0
8
8
52
8
28
12
18
16
21
11
12
2
0
1
9
12,607
ccxt/ccxt
python/ccxt/static_dependencies/starknet/utils/typed_data.py
ccxt.static_dependencies.starknet.utils.typed_data.Parameter
from dataclasses import dataclass @dataclass(frozen=True) class Parameter: """ Dataclass representing a Parameter object """ name: str type: str
@dataclass(frozen=True) class Parameter: ''' Dataclass representing a Parameter object ''' pass
2
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
7
1
3
1
2
3
3
1
2
0
0
0
0
12,608
ccxt/ccxt
python/ccxt/static_dependencies/starknet/utils/typed_data.py
ccxt.static_dependencies.starknet.utils.typed_data.ParameterSchema
from ...marshmallow import Schema, fields, post_load class ParameterSchema(Schema): name = fields.String(data_key='name', required=True) type = fields.String(data_key='type', required=True) @post_load def make_dataclass(self, data, **kwargs) -> Parameter: return Parameter(**data)
class ParameterSchema(Schema): @post_load def make_dataclass(self, data, **kwargs) -> Parameter: pass
3
0
2
0
2
0
1
0
1
1
1
0
1
0
1
1
7
1
6
5
3
0
5
4
3
1
1
0
1
12,609
ccxt/ccxt
python/ccxt/static_dependencies/starknet/utils/typed_data.py
ccxt.static_dependencies.starknet.utils.typed_data.TypedData
from typing import Dict, List, Union, cast from ..hash.utils import compute_hash_on_elements from ..hash.selector import get_selector_from_name from ..models.typed_data import StarkNetDomainDict, TypedDataDict from ..cairo.felt import encode_shortstring from dataclasses import dataclass @dataclass(frozen=True) class T...
@dataclass(frozen=True) class TypedData: ''' Dataclass representing a TypedData object ''' @staticmethod def from_dict(data: TypedDataDict) -> 'TypedData': ''' Create TypedData dataclass from dictionary. :param data: TypedData dictionary. :return: TypedData datacl...
14
5
9
1
6
2
2
0.44
0
8
2
0
8
0
9
9
112
24
61
23
48
27
51
22
39
4
0
2
18
12,610
ccxt/ccxt
python/ccxt/static_dependencies/starknet/utils/typed_data.py
ccxt.static_dependencies.starknet.utils.typed_data.TypedDataSchema
from ...marshmallow import Schema, fields, post_load class TypedDataSchema(Schema): types = fields.Dict(data_key='types', keys=fields.Str(), values=fields.List(fields.Nested(ParameterSchema()))) primary_type = fields.String(data_key='primaryType', required=True) domain = fields.Dict(data_key='domain', requ...
class TypedDataSchema(Schema): @post_load def make_dataclass(self, data, **kwargs) -> TypedData: pass
3
0
2
0
2
0
1
0
1
1
1
0
1
0
1
1
13
1
12
7
9
0
7
6
5
1
1
0
1
12,611
ccxt/ccxt
python/ccxt/static_dependencies/starkware/crypto/signature.py
ccxt.static_dependencies.starkware.crypto.signature.InvalidPublicKeyError
class InvalidPublicKeyError(Exception): def __init__(self): super().__init__('Given x coordinate does not represent any point on the elliptic curve.')
class InvalidPublicKeyError(Exception): def __init__(self): pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
11
3
0
3
2
1
0
3
2
1
1
3
0
1
12,612
ccxt/ccxt
python/ccxt/static_dependencies/sympy/external/pythonmpq.py
ccxt.static_dependencies.sympy.external.pythonmpq.PythonMPQ
from math import gcd import operator from decimal import Decimal from typing import Tuple as tTuple, Type from fractions import Fraction class PythonMPQ: """Rational number implementation that is intended to be compatible with gmpy2's mpq. Also slightly faster than fractions.Fraction. PythonMPQ shoul...
class PythonMPQ: '''Rational number implementation that is intended to be compatible with gmpy2's mpq. Also slightly faster than fractions.Fraction. PythonMPQ should be treated as immutable although no effort is made to prevent mutation (since that might slow down calculations). ''' def __...
31
29
9
0
7
2
2
0.32
0
11
0
0
26
0
28
28
289
39
190
78
159
60
167
76
138
7
0
2
59
12,613
ccxt/ccxt
python/ccxt/static_dependencies/toolz/functoolz.py
ccxt.static_dependencies.toolz.functoolz.Compose
from types import MethodType import inspect from operator import attrgetter, not_ class Compose(object): """ A composition of functions See Also: compose """ __slots__ = ('first', 'funcs') def __init__(self, funcs): funcs = tuple(reversed(funcs)) self.first = funcs[0] ...
class Compose(object): ''' A composition of functions See Also: compose ''' def __init__(self, funcs): pass def __call__(self, *args, **kwargs): pass def __getstate__(self): pass def __setstate__(self, state): pass @instanceproperty(classval=_...
17
2
5
0
4
1
2
0.23
1
4
0
0
12
2
12
12
85
16
56
26
39
13
47
23
33
2
1
1
20
12,614
ccxt/ccxt
python/ccxt/static_dependencies/toolz/functoolz.py
ccxt.static_dependencies.toolz.functoolz.InstanceProperty
class InstanceProperty(property): """ Like @property, but returns ``classval`` when used as a class attribute Should not be used directly. Use ``instanceproperty`` instead. """ def __init__(self, fget=None, fset=None, fdel=None, doc=None, classval=None): self.classval = classval prope...
class InstanceProperty(property): ''' Like @property, but returns ``classval`` when used as a class attribute Should not be used directly. Use ``instanceproperty`` instead. ''' def __init__(self, fget=None, fset=None, fdel=None, doc=None, classval=None): pass def __get__(self, obj, type=N...
4
1
4
0
4
0
1
0.25
1
0
0
0
3
1
3
11
18
3
12
7
7
3
11
6
7
2
2
1
4
12,615
ccxt/ccxt
python/ccxt/static_dependencies/toolz/functoolz.py
ccxt.static_dependencies.toolz.functoolz.curry
from .utils import no_default from functools import reduce, partial import inspect from . import _signatures as _sigs from importlib import import_module class curry(object): """ Curry a callable function Enables partial application of arguments through calling a function with an incomplete set of argumen...
class curry(object): ''' Curry a callable function Enables partial application of arguments through calling a function with an incomplete set of arguments. >>> def mul(x, y): ... return x * y >>> mul = curry(mul) >>> double = mul(2) >>> double(10) 20 Also supports keyword ar...
23
1
9
0
8
1
3
0.19
1
8
0
0
17
7
17
17
208
31
149
54
126
29
126
48
108
11
1
3
47
12,616
ccxt/ccxt
python/ccxt/static_dependencies/toolz/functoolz.py
ccxt.static_dependencies.toolz.functoolz.excepts
from operator import attrgetter, not_ class excepts(object): """A wrapper around a function to catch exceptions and dispatch to a handler. This is like a functional try/except block, in the same way that ifexprs are functional if/else blocks. Examples -------- >>> excepting = excepts( ...
class excepts(object): '''A wrapper around a function to catch exceptions and dispatch to a handler. This is like a functional try/except block, in the same way that ifexprs are functional if/else blocks. Examples -------- >>> excepting = excepts( ... ValueError, ... lambda ...
7
1
12
1
11
0
2
0.5
1
5
0
0
4
3
4
4
83
11
48
16
40
24
29
13
23
3
1
2
9
12,617
ccxt/ccxt
python/ccxt/static_dependencies/toolz/functoolz.py
ccxt.static_dependencies.toolz.functoolz.juxt
class juxt(object): """ Creates a function that calls several functions with the same arguments Takes several functions and returns a function that applies its arguments to each of those functions then returns a tuple of the results. Name comes from juxtaposition: the fact of two things being seen or ...
class juxt(object): ''' Creates a function that calls several functions with the same arguments Takes several functions and returns a function that applies its arguments to each of those functions then returns a tuple of the results. Name comes from juxtaposition: the fact of two things being seen or pl...
5
1
3
0
3
0
1
1
1
1
0
0
4
1
4
4
31
7
12
7
7
12
12
7
7
2
1
1
5
12,618
ccxt/ccxt
python/ccxt/timex.py
ccxt.timex.timex
from ccxt.abstract.timex import ImplicitAPI from ccxt.base.errors import ArgumentsRequired from ccxt.base.errors import RateLimitExceeded from ccxt.base.errors import NotSupported from ccxt.base.errors import PermissionDenied from ccxt.base.errors import InsufficientFunds from ccxt.base.errors import BadRequest from ty...
class timex(Exchange, ImplicitAPI): def describe(self) -> Any: pass def fetch_time(self, params={}) -> Int: ''' fetches the current integer timestamp in milliseconds from the exchange server :param dict [params]: extra parameters specific to the exchange API endpoint :...
36
20
47
1
26
22
2
0.84
2
27
20
0
35
0
35
634
1,698
73
923
215
887
772
371
215
335
5
2
3
76
12,619
ccxt/ccxt
python/ccxt/tokocrypto.py
ccxt.tokocrypto.tokocrypto
from ccxt.base.errors import NotSupported from ccxt.base.errors import OrderNotFillable from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction from ccxt.base.errors import OrderImmediatelyFillable i...
class tokocrypto(Exchange, ImplicitAPI): def describe(self) -> Any: pass def nonce(self): pass def fetch_time(self, params={}) -> Int: ''' https://www.tokocrypto.com/apidocs/#check-server-time fetches the current integer timestamp in milliseconds from the exchange...
36
20
70
1
42
34
5
0.81
2
37
29
0
35
0
35
634
2,488
75
1,479
240
1,443
1,199
558
239
522
27
2
4
158
12,620
ccxt/ccxt
python/ccxt/upbit.py
ccxt.upbit.upbit
from ccxt.base.errors import InvalidOrder from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, OrderBooks, Trade, TradingFeeInterface, TradingFees, Transaction from typing import List from ccxt.base.errors import Ba...
class upbit(Exchange, ImplicitAPI): def describe(self) -> Any: pass def fetch_currency(self, code: str, params={}): pass def fetch_currency_by_id(self, id: str, params={}): pass def fetch_market(self, symbol: str, params={}): pass def fetch_market_by_id(self, id...
45
25
48
1
25
22
3
0.9
2
25
18
0
41
0
41
640
2,016
87
1,025
231
983
922
474
231
432
11
2
4
107
12,621
ccxt/ccxt
python/ccxt/wavesexchange.py
ccxt.wavesexchange.wavesexchange
import json from ccxt.base.errors import BadSymbol from ccxt.base.errors import InsufficientFunds from ccxt.base.errors import ExchangeNotAvailable from typing import List from ccxt.abstract.wavesexchange import ImplicitAPI from ccxt.base.errors import BadRequest from ccxt.base.errors import DuplicateOrderId from ccxt....
class wavesexchange(Exchange, ImplicitAPI): def describe(self) -> Any: pass def set_sandbox_mode(self, enabled): pass def get_fees_for_asset(self, symbol: str, side, amount, price, params={}): pass def custom_calculate_fee(self, symbol: str, type, side, amount, price, takerO...
50
18
51
0
32
19
3
0.59
2
28
19
0
49
0
49
648
2,572
69
1,586
422
1,536
940
769
421
719
16
2
4
160
12,622
ccxt/ccxt
python/ccxt/whitebit.py
ccxt.whitebit.whitebit
from ccxt.base.precise import Precise from ccxt.base.decimal_to_precision import TICK_SIZE from ccxt.base.errors import ExchangeNotAvailable from ccxt.base.errors import DDoSProtection from ccxt.base.errors import NotSupported from ccxt.base.errors import OrderNotFound from ccxt.base.errors import InvalidOrder from ccx...
class whitebit(Exchange, ImplicitAPI): def describe(self) -> Any: pass def fetch_markets(self, params={}) -> List[Market]: ''' retrieves data on all markets for whitebit https://docs.whitebit.com/public/http-v4/#market-info :param dict [params]: extra parameters specif...
68
43
49
1
26
23
3
0.87
2
32
23
0
52
0
52
651
2,626
117
1,366
344
1,313
1,184
669
344
616
14
2
4
151
12,623
ccxt/ccxt
python/ccxt/woo.py
ccxt.woo.woo
from ccxt.base.types import Account, Any, Balances, Bool, Conversion, Currencies, Currency, DepositAddress, Int, LedgerEntry, Leverage, MarginModification, Market, MarketType, Num, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transac...
class woo(Exchange, ImplicitAPI): def describe(self) -> Any: pass def fetch_status(self, params={}): ''' the latest known information on the availability of the exchange API https://developer.woox.io/api-reference/endpoint/public_data/systemInfo :param dict [params]: e...
87
52
43
1
23
19
3
0.82
2
32
23
0
82
0
82
681
3,583
180
1,895
504
1,812
1,558
987
504
904
30
2
4
236
12,624
ccxt/ccxt
python/ccxt/woofipro.py
ccxt.woofipro.woofipro
from ccxt.base.errors import BadRequest from ccxt.base.errors import RateLimitExceeded from ccxt.abstract.woofipro import ImplicitAPI from ccxt.base.errors import ArgumentsRequired from ccxt.base.errors import NetworkError from ccxt.base.exchange import Exchange from ccxt.base.errors import AuthenticationError from ccx...
class woofipro(Exchange, ImplicitAPI): def describe(self) -> Any: pass def set_sandbox_mode(self, enable: bool): pass def fetch_status(self, params={}): ''' the latest known information on the availability of the exchange API https://orderly.network/docs/build-on-...
65
36
43
1
25
17
3
0.71
2
28
19
0
62
0
62
661
2,707
130
1,533
395
1,470
1,083
734
395
671
18
2
5
166
12,625
ccxt/ccxt
python/ccxt/xt.py
ccxt.xt.xt
from ccxt.base.decimal_to_precision import TICK_SIZE from ccxt.base.errors import RequestTimeout from ccxt.base.errors import OnMaintenance from ccxt.base.errors import RateLimitExceeded from ccxt.base.types import Any, Currencies, Currency, DepositAddress, Int, LedgerEntry, LeverageTier, LeverageTiers, MarginModificat...
class xt(Exchange, ImplicitAPI): def describe(self) -> Any: pass def nonce(self): pass def fetch_time(self, params={}) -> Int: ''' fetches the current integer timestamp in milliseconds from the xt server https://doc.xt.com/#market1serverInfo :param dict pa...
71
40
68
1
34
35
4
1.02
2
28
22
0
68
0
68
667
4,717
144
2,334
469
2,265
2,383
1,066
469
997
23
2
5
290
12,626
ccxt/ccxt
python/ccxt/yobit.py
ccxt.yobit.yobit
from ccxt.base.exchange import Exchange from typing import List from ccxt.base.errors import OrderNotFound from ccxt.base.errors import RateLimitExceeded from ccxt.base.types import Any, Balances, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, OrderBooks, Trade,...
class yobit(Exchange, ImplicitAPI): def describe(self) -> Any: pass def parse_balance(self, response) -> Balances: pass def fetch_balance(self, params={}) -> Balances: ''' https://yobit.net/en/api query for balance and get the amount of funds available for trading...
26
16
54
1
36
18
3
0.52
2
25
18
0
25
0
25
624
1,382
57
891
173
865
462
326
173
300
9
2
3
73
12,627
ccxt/ccxt
python/ccxt/zaif.py
ccxt.zaif.zaif
from ccxt.base.errors import ExchangeError from ccxt.base.errors import BadRequest from typing import List from ccxt.abstract.zaif import ImplicitAPI import hashlib from ccxt.base.precise import Precise from ccxt.base.types import Any, Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, T...
class zaif(Exchange, ImplicitAPI): def describe(self) -> Any: pass def fetch_markets(self, params={}) -> List[Market]: ''' https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id12 retrieves data on all markets for zaif :param dict [params]: extra paramete...
21
10
38
1
26
13
2
0.5
2
16
9
0
20
0
20
619
785
40
514
91
493
259
168
91
147
5
2
3
41
12,628
ccxt/ccxt
python/ccxt/zonda.py
ccxt.zonda.zonda
from ccxt.base.errors import RateLimitExceeded from ccxt.abstract.zonda import ImplicitAPI import hashlib from ccxt.base.errors import AccountSuspended from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Ticker...
class zonda(Exchange, ImplicitAPI): def describe(self) -> Any: pass def fetch_markets(self, params={}) -> List[Market]: ''' https://docs.zondacrypto.exchange/reference/ticker-1 retrieves data on all markets for zonda :param dict [params]: extra parameters specific to t...
33
16
59
1
31
28
3
0.91
2
31
23
0
32
0
32
631
1,916
64
987
187
954
895
344
187
311
9
2
3
80
12,629
ccxt/ccxt
examples/py/cli.py
cli.Argv
class Argv(object): table = False verbose = False sandbox = False testnet = False test = False nonce = None exchange_id = '' debug = False cors = False method = None symbol = None spot = False swap = False future = False signIn = False args = [] no_key...
class Argv(object): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
19
1
18
18
17
0
18
18
17
0
1
0
0
12,630
ccxt/ccxt
examples/py/fetch-all-okex-ohclv.py
fetch-all-okex-ohclv.my_okex
import ccxt class my_okex(ohlcv, ccxt.okex): pass
class my_okex(ohlcv, ccxt.okex): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
600
2
0
2
1
1
0
2
1
1
0
3
0
0
12,631
ccxt/ccxt
examples/py/fetch-all-okex-ohclv.py
fetch-all-okex-ohclv.ohlcv
from ccxt.base.exchange import Exchange class ohlcv(Exchange): def fetch_all_ohlcvs(self, symbol, timeframe, max_retries=3): print('Loading', self.id, 'markets...') self.load_markets() print('Loaded', self.id, 'markets.') limit = 100 earliest_timestamp = self.milliseconds()...
class ohlcv(Exchange): def fetch_all_ohlcvs(self, symbol, timeframe, max_retries=3): pass
2
0
42
0
41
1
7
0.02
1
1
0
1
1
0
1
600
43
0
42
14
40
1
40
14
38
7
2
3
7
12,632
ccxt/ccxt
examples/ccxt.pro/py/intercept-original-ohlcv-updates.py
intercept-original-ohlcv-updates.MyBinance
import ccxt.pro class MyBinance(ccxt.pro.binance): def handle_ohlcv(self, client, message): print('intercepted', message) return super(MyBinance, self).handle_ohlcv(client, message)
class MyBinance(ccxt.pro.binance): def handle_ohlcv(self, client, message): pass
2
0
4
0
3
1
1
0.25
1
1
0
0
1
0
1
1,115
5
0
4
2
2
1
4
2
2
1
5
0
1
12,633
ccxt/ccxt
examples/ccxt.pro/py/on-connected-user-hook.py
on-connected-user-hook.MyBinance
from asyncio import run, ensure_future import ccxt.pro class MyBinance(ccxt.pro.binance): def on_connected(self, client, message=None): print('Connected to', client.url) ensure_future(create_order(self))
class MyBinance(ccxt.pro.binance): def on_connected(self, client, message=None): pass
2
0
3
0
3
0
1
0
1
0
0
0
1
0
1
1,115
4
0
4
2
2
0
4
2
2
1
5
0
1
12,634
ccxt/ccxt
examples/py/sample-local-proxy-server-with-cors.py
sample-local-proxy-server-with-cors.CORSHTTPRequestHandler
import http.server as httpserver class CORSHTTPRequestHandler(httpserver.SimpleHTTPRequestHandler): def send_head(self): """Common code for GET and HEAD commands. This sends the response code and MIME headers. Return value is either a file object (which has to be copied to the outp...
class CORSHTTPRequestHandler(httpserver.SimpleHTTPRequestHandler): def send_head(self): '''Common code for GET and HEAD commands. This sends the response code and MIME headers. Return value is either a file object (which has to be copied to the outputfile by the caller unless the c...
2
1
41
0
30
11
5
0.35
1
1
0
0
1
0
1
32
42
0
31
7
29
11
31
7
29
5
4
3
5
12,635
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/parser.py
v0.parser.AbiParser
from ....marshmallow import EXCLUDE from ...cairo.data_types import CairoType, StructType from collections import OrderedDict, defaultdict from .model import Abi from .schemas import ContractAbiEntrySchema from typing import DefaultDict, Dict, List, Optional, cast from .shape import CONSTRUCTOR_ENTRY, EVENT_ENTRY, FUNC...
class AbiParser: ''' Utility class for parsing abi into a dataclass. ''' def __init__(self, abi_list: List[Dict]): ''' Abi parser constructor. Ensures that abi satisfies the abi schema. :param abi_list: Contract's ABI as a list of dictionaries. ''' pass ...
13
3
17
1
13
3
2
0.23
0
18
12
0
7
0
9
9
172
23
122
37
105
28
63
29
53
5
0
2
22
12,636
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/schemas.py
v0.schemas.ConstructorAbiEntrySchema
from .shape import CONSTRUCTOR_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, L1_HANDLER_ENTRY, STRUCT_ENTRY from ....marshmallow import Schema, fields class ConstructorAbiEntrySchema(FunctionBaseSchema): type = fields.Constant(CONSTRUCTOR_ENTRY, data_key='type', required=True)
class ConstructorAbiEntrySchema(FunctionBaseSchema): 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
2
0
0
12,637
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/schemas.py
v0.schemas.ContractAbiEntrySchema
from ....marshmallow_oneofschema import OneOfSchema from .shape import CONSTRUCTOR_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, L1_HANDLER_ENTRY, STRUCT_ENTRY class ContractAbiEntrySchema(OneOfSchema): type_field_remove = False type_schemas = {FUNCTION_ENTRY: FunctionAbiEntrySchema, L1_HANDLER_ENTRY: L1HandlerAbiEntryS...
class ContractAbiEntrySchema(OneOfSchema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
7
9
0
9
3
8
0
3
3
2
0
2
0
0
12,638
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/schemas.py
v0.schemas.EventAbiEntrySchema
from ....marshmallow import Schema, fields from .shape import CONSTRUCTOR_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, L1_HANDLER_ENTRY, STRUCT_ENTRY class EventAbiEntrySchema(Schema): type = fields.Constant(EVENT_ENTRY, data_key='type', required=True) name = fields.String(data_key='name', required=True) keys = fie...
class EventAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
9
0
9
5
8
0
5
5
4
0
1
0
0
12,639
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/schemas.py
v0.schemas.FunctionAbiEntrySchema
from .shape import CONSTRUCTOR_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, L1_HANDLER_ENTRY, STRUCT_ENTRY from ....marshmallow import Schema, fields class FunctionAbiEntrySchema(FunctionBaseSchema): type = fields.Constant(FUNCTION_ENTRY, data_key='type', required=True)
class FunctionAbiEntrySchema(FunctionBaseSchema): 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
2
0
0
12,640
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/schemas.py
v0.schemas.FunctionBaseSchema
from ....marshmallow import Schema, fields class FunctionBaseSchema(Schema): name = fields.String(data_key='name', required=True) inputs = fields.List(fields.Nested(TypedParameterSchema()), data_key='inputs', required=True) outputs = fields.List(fields.Nested(TypedParameterSchema()), data_key='outputs', re...
class FunctionBaseSchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
3
0
0
0
0
8
0
8
4
7
0
4
4
3
0
1
0
0
12,641
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/schemas.py
v0.schemas.L1HandlerAbiEntrySchema
from .shape import CONSTRUCTOR_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, L1_HANDLER_ENTRY, STRUCT_ENTRY from ....marshmallow import Schema, fields class L1HandlerAbiEntrySchema(FunctionBaseSchema): type = fields.Constant(L1_HANDLER_ENTRY, data_key='type', required=True)
class L1HandlerAbiEntrySchema(FunctionBaseSchema): 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
2
0
0
12,642
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/schemas.py
v0.schemas.StructAbiEntrySchema
from ....marshmallow import Schema, fields from .shape import CONSTRUCTOR_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, L1_HANDLER_ENTRY, STRUCT_ENTRY class StructAbiEntrySchema(Schema): type = fields.Constant(STRUCT_ENTRY, data_key='type', required=True) name = fields.String(data_key='name', required=True) size = f...
class StructAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
0
7
5
6
0
5
5
4
0
1
0
0
12,643
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/schemas.py
v0.schemas.StructMemberSchema
from ....marshmallow import Schema, fields class StructMemberSchema(TypedParameterSchema): offset = fields.Integer(data_key='offset', required=False)
class StructMemberSchema(TypedParameterSchema): 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
2
0
0
12,644
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/schemas.py
v0.schemas.TypedParameterSchema
from ....marshmallow import Schema, fields class TypedParameterSchema(Schema): name = fields.String(data_key='name', required=True) type = fields.String(data_key='type', required=True)
class TypedParameterSchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
3
0
3
3
2
0
3
3
2
0
1
0
0
12,645
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/shape.py
v0.shape.ConstructorDict
from typing import List, Literal, Union class ConstructorDict(FunctionBaseDict): type: Literal['constructor']
class ConstructorDict(FunctionBaseDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
2
0
0
12,646
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/shape.py
v0.shape.EventDict
from typing import List, Literal, Union class EventDict(TypedDict): name: str type: Literal['event'] data: List[TypedMemberDict] keys: List[TypedMemberDict]
class EventDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
12,647
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/shape.py
v0.shape.FunctionBaseDict
from typing import List, Literal, Union class FunctionBaseDict(TypedDict): name: str inputs: List[TypedMemberDict] outputs: List[TypedMemberDict] stateMutability: NotRequired[Literal['view']]
class FunctionBaseDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
3
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
12,648
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/shape.py
v0.shape.FunctionDict
from typing import List, Literal, Union class FunctionDict(FunctionBaseDict): type: Literal['function']
class FunctionDict(FunctionBaseDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
2
0
0
12,649
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/shape.py
v0.shape.L1HandlerDict
from typing import List, Literal, Union class L1HandlerDict(FunctionBaseDict): type: Literal['l1_handler']
class L1HandlerDict(FunctionBaseDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
2
0
0
12,650
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/shape.py
v0.shape.StructDict
from typing import List, Literal, Union class StructDict(TypedDict): type: Literal['struct'] name: str size: int members: List[StructMemberDict]
class StructDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
12,651
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/shape.py
v0.shape.StructMemberDict
class StructMemberDict(TypedMemberDict): offset: NotRequired[int]
class StructMemberDict(TypedMemberDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
2
0
0
12,652
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v0/shape.py
v0.shape.TypedMemberDict
class TypedMemberDict(TypedDict): name: str type: str
class TypedMemberDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
12,653
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v1/parser.py
v1.parser.AbiParser
from pathlib import Path import os import json from ...cairo.v1.type_parser import TypeParser from .schemas import ContractAbiEntrySchema from ....marshmallow import EXCLUDE from .shape import ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, STRUCT_ENTRY, EventDict, FunctionDict, TypedParameterDict from .model import Abi from ...
class AbiParser: ''' Utility class for parsing abi into a dataclass. ''' def __init__(self, abi_list: List[Dict]): ''' Abi parser constructor. Ensures that abi satisfies the abi schema. :param abi_list: Contract's ABI as a list of dictionaries. ''' pass ...
13
3
17
2
13
3
2
0.24
0
19
12
0
7
0
9
9
176
24
123
41
104
29
65
31
55
5
0
2
18
12,654
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v1/parser_transformer.py
v1.parser_transformer.ParserTransformer
from ....lark import Token, Transformer from ...cairo.data_types import ArrayType, BoolType, CairoType, FeltType, OptionType, TupleType, TypeIdentifier, UintType, UnitType from typing import Any, List, Optional class ParserTransformer(Transformer): """ Transforms the lark tree into CairoTypes. """ def...
class ParserTransformer(Transformer): ''' Transforms the lark tree into CairoTypes. ''' def __init__(self, type_identifiers: Optional[dict]=None) -> None: pass def __default__(self, data: str, children, meta): pass def type(self, value: List[Optional[CairoType]]) -> Optional[...
16
14
5
0
2
3
1
1.26
1
16
10
0
15
1
15
48
103
17
38
18
22
48
38
18
22
2
5
1
17
12,655
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v1/schemas.py
v1.schemas.ContractAbiEntrySchema
from ....marshmallow_oneofschema import OneOfSchema from .shape import ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, STRUCT_ENTRY class ContractAbiEntrySchema(OneOfSchema): type_field_remove = False type_schemas = {FUNCTION_ENTRY: FunctionAbiEntrySchema, EVENT_ENTRY: EventAbiEntrySchema, STRUCT_ENTRY: StructAbiEntr...
class ContractAbiEntrySchema(OneOfSchema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
7
8
0
8
3
7
0
3
3
2
0
2
0
0
12,656
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v1/schemas.py
v1.schemas.EnumAbiEntrySchema
from .shape import ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, STRUCT_ENTRY from ....marshmallow import Schema, fields class EnumAbiEntrySchema(Schema): type = fields.Constant(ENUM_ENTRY, data_key='type', required=True) name = fields.String(data_key='name', required=True) variants = fields.List(fields.Nested(...
class EnumAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
4
5
0
4
4
3
0
1
0
0
12,657
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v1/schemas.py
v1.schemas.EventAbiEntrySchema
from .shape import ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, STRUCT_ENTRY from ....marshmallow import Schema, fields class EventAbiEntrySchema(Schema): type = fields.Constant(EVENT_ENTRY, data_key='type', required=True) name = fields.String(data_key='name', required=True) inputs = fields.List(fields.Nested(...
class EventAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
4
5
0
4
4
3
0
1
0
0
12,658
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v1/schemas.py
v1.schemas.FunctionAbiEntrySchema
from ....marshmallow import Schema, fields from .shape import ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, STRUCT_ENTRY class FunctionAbiEntrySchema(FunctionBaseSchema): type = fields.Constant(FUNCTION_ENTRY, data_key='type', required=True)
class FunctionAbiEntrySchema(FunctionBaseSchema): 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
2
0
0
12,659
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v1/schemas.py
v1.schemas.StructAbiEntrySchema
from .shape import ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, STRUCT_ENTRY from ....marshmallow import Schema, fields class StructAbiEntrySchema(Schema): type = fields.Constant(STRUCT_ENTRY, data_key='type', required=True) name = fields.String(data_key='name', required=True) members = fields.List(fields.Nest...
class StructAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
4
5
0
4
4
3
0
1
0
0
12,660
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v1/shape.py
v1.shape.EventDict
from typing import List, Literal, Optional, TypedDict, Union class EventDict(TypedDict): name: str type: Literal['event'] inputs: List[TypedParameterDict]
class EventDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
12,661
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/parser.py
v2.parser.AbiParser
from ....marshmallow import EXCLUDE from .schemas import ContractAbiEntrySchema from collections import OrderedDict, defaultdict from ...cairo.data_types import CairoType, EnumType, EventType, StructType from ...cairo.v2.type_parser import TypeParser from typing import DefaultDict, Dict, List, Optional, Tuple, TypeVar,...
class AbiParser: ''' Utility class for parsing abi into a dataclass. ''' def __init__(self, abi_list: List[Dict]): ''' Abi parser constructor. Ensures that abi satisfies the abi schema. :param abi_list: Contract's ABI as a list of dictionaries. ''' pass ...
17
3
18
1
14
2
2
0.16
0
23
17
0
9
0
12
12
242
31
183
52
160
29
83
41
70
5
0
2
24
12,662
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/parser.py
v2.parser.AbiParsingError
class AbiParsingError(ValueError): """ Error raised when something wrong goes during abi parsing. """
class AbiParsingError(ValueError): ''' Error raised when something wrong goes during abi parsing. ''' pass
1
1
0
0
0
0
0
3
1
0
0
0
0
0
0
11
4
0
1
1
0
3
1
1
0
0
4
0
0
12,663
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/parser_transformer.py
v2.parser_transformer.ParserTransformer
from typing import Any, List, Optional from ...cairo.data_types import ArrayType, BoolType, CairoType, FeltType, OptionType, TupleType, TypeIdentifier, UintType, UnitType from ....lark import Token, Transformer class ParserTransformer(Transformer): """ Transforms the lark tree into CairoTypes. """ def...
class ParserTransformer(Transformer): ''' Transforms the lark tree into CairoTypes. ''' def __init__(self, type_identifiers: Optional[dict]=None) -> None: pass def __default__(self, data: str, children, meta): pass def type(self, value: List[Optional[CairoType]]) -> Optional[...
18
15
5
0
2
3
1
1.21
1
16
10
0
17
1
17
50
112
19
42
20
24
51
42
20
24
2
5
1
19
12,664
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.ConstructorAbiEntrySchema
from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY from ....marshmallow import Schema, fields class ConstructorAbiEntrySchema(Schema): type = fields.Constant(CONSTRUCTOR_ENTRY, data_key='type', required=...
class ConstructorAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
4
5
0
4
4
3
0
1
0
0
12,665
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.ContractAbiEntrySchema
from ....marshmallow_oneofschema import OneOfSchema from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY class ContractAbiEntrySchema(OneOfSchema): type_field_remove = False type_schemas = {FUNCTION_EN...
class ContractAbiEntrySchema(OneOfSchema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
7
12
0
12
3
11
0
3
3
2
0
2
0
0
12,666
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.EnumAbiEntrySchema
from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY from ....marshmallow import Schema, fields class EnumAbiEntrySchema(Schema): type = fields.Constant(ENUM_ENTRY, data_key='type', required=True) name...
class EnumAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
4
5
0
4
4
3
0
1
0
0
12,667
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.EventAbiEntrySchema
from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY from ....marshmallow_oneofschema import OneOfSchema class EventAbiEntrySchema(OneOfSchema): type_field = 'kind' type_field_remove = False type_s...
class EventAbiEntrySchema(OneOfSchema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
7
7
0
7
4
6
0
4
4
3
0
2
0
0
12,668
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.EventEnumAbiEntrySchema
from ....marshmallow import Schema, fields from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY class EventEnumAbiEntrySchema(Schema): type = fields.Constant(EVENT_ENTRY, data_key='type', required=True) ...
class EventEnumAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
0
7
5
6
0
5
5
4
0
1
0
0
12,669
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.EventEnumVariantSchema
from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY from ....marshmallow import Schema, fields class EventEnumVariantSchema(TypedParameterSchema): kind = fields.Constant(NESTED_KIND, data_key='kind', requ...
class EventEnumVariantSchema(TypedParameterSchema): 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
3
0
0
12,670
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.EventStructAbiEntrySchema
from ....marshmallow import Schema, fields from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY class EventStructAbiEntrySchema(Schema): type = fields.Constant(EVENT_ENTRY, data_key='type', required=True) ...
class EventStructAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
0
7
5
6
0
5
5
4
0
1
0
0
12,671
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.EventStructMemberSchema
from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY from ....marshmallow import Schema, fields class EventStructMemberSchema(TypedParameterSchema): kind = fields.Constant(DATA_KIND, data_key='kind', requi...
class EventStructMemberSchema(TypedParameterSchema): 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
3
0
0
12,672
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.FunctionAbiEntrySchema
from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY from ....marshmallow import Schema, fields class FunctionAbiEntrySchema(FunctionBaseSchema): type = fields.Constant(FUNCTION_ENTRY, data_key='type', req...
class FunctionAbiEntrySchema(FunctionBaseSchema): 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
2
0
0
12,673
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.FunctionBaseSchema
from ....marshmallow import Schema, fields class FunctionBaseSchema(Schema): name = fields.String(data_key='name', required=True) inputs = fields.List(fields.Nested(TypedParameterSchema()), data_key='inputs', required=True) outputs = fields.List(fields.Nested(TypeSchema()), data_key='outputs', required=Tru...
class FunctionBaseSchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
2
0
0
0
0
9
0
9
5
8
0
5
5
4
0
1
0
0
12,674
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.ImplAbiEntrySchema
from ....marshmallow import Schema, fields from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY class ImplAbiEntrySchema(Schema): type = fields.Constant(IMPL_ENTRY, data_key='type', required=True) name...
class ImplAbiEntrySchema(Schema): 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
12,675
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.InterfaceAbiEntrySchema
from ....marshmallow import Schema, fields from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY class InterfaceAbiEntrySchema(Schema): type = fields.Constant(INTERFACE_ENTRY, data_key='type', required=True...
class InterfaceAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0.13
1
0
0
0
0
0
0
0
9
1
8
4
7
1
4
4
3
0
1
0
0
12,676
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.L1HandlerAbiEntrySchema
from ....marshmallow import Schema, fields from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY class L1HandlerAbiEntrySchema(FunctionBaseSchema): type = fields.Constant(L1_HANDLER_ENTRY, data_key='type', ...
class L1HandlerAbiEntrySchema(FunctionBaseSchema): 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
2
0
0
12,677
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.StructAbiEntrySchema
from ....marshmallow import Schema, fields from .shape import CONSTRUCTOR_ENTRY, DATA_KIND, ENUM_ENTRY, EVENT_ENTRY, FUNCTION_ENTRY, IMPL_ENTRY, INTERFACE_ENTRY, L1_HANDLER_ENTRY, NESTED_KIND, STRUCT_ENTRY class StructAbiEntrySchema(Schema): type = fields.Constant(STRUCT_ENTRY, data_key='type', required=True) ...
class StructAbiEntrySchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
4
5
0
4
4
3
0
1
0
0
12,678
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.TypeSchema
from ....marshmallow import Schema, fields class TypeSchema(Schema): type = fields.String(data_key='type', required=True)
class TypeSchema(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
2
0
2
2
1
0
2
2
1
0
1
0
0
12,679
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/schemas.py
v2.schemas.TypedParameterSchema
from ....marshmallow import Schema, fields class TypedParameterSchema(TypeSchema): name = fields.String(data_key='name', required=True)
class TypedParameterSchema(TypeSchema): pass
1
0
0
0
0
0
0
0
1
0
0
2
0
0
0
0
2
0
2
2
1
0
2
2
1
0
2
0
0
12,680
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.ConstructorDict
from typing import List, Literal, Optional, TypedDict, Union class ConstructorDict(TypedDict): type: Literal['constructor'] name: str inputs: List[TypedParameterDict]
class ConstructorDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
12,681
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.EnumDict
from typing import List, Literal, Optional, TypedDict, Union class EnumDict(TypedDict): type: Literal['enum'] name: str variants: List[TypedParameterDict]
class EnumDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
12,682
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.EventBaseDict
from typing import List, Literal, Optional, TypedDict, Union class EventBaseDict(TypedDict): type: Literal['event'] name: str
class EventBaseDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
2
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
12,683
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.EventEnumDict
from typing import List, Literal, Optional, TypedDict, Union class EventEnumDict(EventBaseDict): kind: Literal['enum'] variants: List[EventEnumVariantDict]
class EventEnumDict(EventBaseDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
2
0
0
12,684
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.EventEnumVariantDict
from typing import List, Literal, Optional, TypedDict, Union class EventEnumVariantDict(TypedParameterDict): kind: Literal['nested']
class EventEnumVariantDict(TypedParameterDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
3
0
0
12,685
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.EventStructDict
from typing import List, Literal, Optional, TypedDict, Union class EventStructDict(EventBaseDict): kind: Literal['struct'] members: List[EventStructMemberDict]
class EventStructDict(EventBaseDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
2
0
0
12,686
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.EventStructMemberDict
from typing import List, Literal, Optional, TypedDict, Union class EventStructMemberDict(TypedParameterDict): kind: Literal['data']
class EventStructMemberDict(TypedParameterDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
3
0
0
12,687
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.FunctionBaseDict
from typing import List, Literal, Optional, TypedDict, Union class FunctionBaseDict(TypedDict): name: str inputs: List[TypedParameterDict] outputs: List[TypeDict] state_mutability: Optional[Literal['external', 'view']]
class FunctionBaseDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
2
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
12,688
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.FunctionDict
from typing import List, Literal, Optional, TypedDict, Union class FunctionDict(FunctionBaseDict): type: Literal['function']
class FunctionDict(FunctionBaseDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
2
0
0
12,689
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.ImplDict
from typing import List, Literal, Optional, TypedDict, Union class ImplDict(TypedDict): type: Literal['impl'] name: str interface_name: str
class ImplDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
12,690
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.InterfaceDict
from typing import List, Literal, Optional, TypedDict, Union class InterfaceDict(TypedDict): type: Literal['interface'] name: str items: List[FunctionDict]
class InterfaceDict(TypedDict): pass
1
0
0
0
0
0
0
0.25
1
0
0
0
0
0
0
0
4
0
4
1
3
1
4
1
3
0
1
0
0
12,691
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.L1HandlerDict
from typing import List, Literal, Optional, TypedDict, Union class L1HandlerDict(FunctionBaseDict): type: Literal['l1_handler']
class L1HandlerDict(FunctionBaseDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
2
0
0
12,692
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.StructDict
from typing import List, Literal, Optional, TypedDict, Union class StructDict(TypedDict): type: Literal['struct'] name: str members: List[TypedParameterDict]
class StructDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
12,693
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.TypeDict
from typing import List, Literal, Optional, TypedDict, Union class TypeDict(TypedDict): type: str
class TypeDict(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
12,694
ccxt/ccxt
python/ccxt/static_dependencies/starknet/abi/v2/shape.py
v2.shape.TypedParameterDict
class TypedParameterDict(TypeDict): name: str
class TypedParameterDict(TypeDict): pass
1
0
0
0
0
0
0
0
1
0
0
2
0
0
0
0
2
0
2
1
1
0
2
1
1
0
2
0
0
12,695
ccxt/ccxt
examples/ccxt.pro/py/watch-custom-exchange-specific-streams.py
watch-custom-exchange-specific-streams.MyBinance
import ccxt.pro class MyBinance(ccxt.pro.binance): def handle_mini_ticker(self, client, message): market_id = self.safe_string_lower(message, 's') message_hash = market_id + '@miniTicker' client.resolve(message, message_hash) def handle_message(self, client, message): handlers...
class MyBinance(ccxt.pro.binance): def handle_mini_ticker(self, client, message): pass def handle_message(self, client, message): pass
3
0
8
0
7
1
2
0.07
1
1
0
0
2
0
2
1,116
18
2
15
8
12
1
12
8
9
2
5
1
3
12,696
fxsjy/jieba
fxsjy_jieba/jieba/__init__.py
jieba.Tokenizer
from math import log from . import finalseg from hashlib import md5 import threading import time import marshal import tempfile class Tokenizer(object): def __init__(self, dictionary=DEFAULT_DICT): self.lock = threading.RLock() if dictionary == DEFAULT_DICT: self.dictionary = dictionar...
class Tokenizer(object): def __init__(self, dictionary=DEFAULT_DICT): pass def __repr__(self): pass @staticmethod def gen_pfdict(f): pass def initialize(self, dictionary=None): pass def check_initialized(self): pass def calc(self, sentence, DAG, ...
26
7
18
1
15
2
5
0.15
1
10
0
0
23
8
24
24
463
39
370
120
343
54
338
117
312
15
1
6
120
12,697
fxsjy/jieba
fxsjy_jieba/jieba/analyse/analyzer.py
jieba.analyse.analyzer.ChineseTokenizer
import jieba from whoosh.analysis import Tokenizer, Token class ChineseTokenizer(Tokenizer): def __call__(self, text, **kargs): words = jieba.tokenize(text, mode='search') token = Token() for w, start_pos, stop_pos in words: if not accepted_chars.match(w) and len(w) <= 1: ...
class ChineseTokenizer(Tokenizer): def __call__(self, text, **kargs): pass
2
0
11
0
11
0
3
0
1
0
0
0
1
0
1
1
13
1
12
5
10
0
12
5
10
3
1
2
3
12,698
fxsjy/jieba
fxsjy_jieba/jieba/analyse/textrank.py
jieba.analyse.textrank.TextRank
import jieba.posseg from operator import itemgetter from .tfidf import KeywordExtractor from collections import defaultdict class TextRank(KeywordExtractor): def __init__(self): self.tokenizer = self.postokenizer = jieba.posseg.dt self.stop_words = self.STOP_WORDS.copy() self.pos_filt = fr...
class TextRank(KeywordExtractor): def __init__(self): pass def pairfilter(self, wp): pass def textrank(self, sentence, topK=20, withWeight=False, allowPOS=('ns', 'n', 'vn', 'v'), withFlag=False): ''' Extract keywords from sentence using TextRank algorithm. Paramet...
4
1
16
1
12
4
4
0.3
1
6
1
0
3
5
3
5
54
6
37
17
33
11
33
17
29
10
2
4
12
12,699
fxsjy/jieba
fxsjy_jieba/jieba/analyse/textrank.py
jieba.analyse.textrank.UndirectWeightedGraph
from collections import defaultdict import sys class UndirectWeightedGraph: d = 0.85 def __init__(self): self.graph = defaultdict(list) def addEdge(self, start, end, weight): self.graph[start].append((start, end, weight)) self.graph[end].append((end, start, weight)) def rank(...
class UndirectWeightedGraph: def __init__(self): pass def addEdge(self, start, end, weight): pass def rank(self): pass
4
0
12
2
9
1
4
0.13
0
2
0
0
3
1
3
3
42
9
30
15
26
4
30
15
26
9
0
3
11