code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class CommandSendConfirmationStatus(Enum): <NEW_LINE> <INDENT> REJECTED = 0 <NEW_LINE> ACCEPTED = 1 | Enum class for status of command send confirmation. | 625990003cc13d1c6d4661c5 |
class TestCompareXLSXFiles(ExcelComparisonTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.set_filename('chart_font03.xlsx') <NEW_LINE> <DEDENT> def test_create_file(self): <NEW_LINE> <INDENT> workbook = Workbook(self.got_filename) <NEW_LINE> worksheet = workbook.add_worksheet() <NEW_LINE> chart = w... | Test file created by XlsxWriter against a file created by Excel. | 62599000627d3e7fe0e07919 |
class SyncServer(ServerBase): <NEW_LINE> <INDENT> def _map_method_to_handler(self, name, method): <NEW_LINE> <INDENT> return self._execute_call | A server that executes every RPC synchronously, which means that the server will not return a response to the client
until the request completes.
Although it's very simple, for most implementations you probably want to use :py:class:`Server` instead since with
this server the client can't tell if the server is stuck o... | 625990003cc13d1c6d4661c9 |
class Rotator: <NEW_LINE> <INDENT> def __init__(self, apps:List[App], duration:int, pauseLength:int): <NEW_LINE> <INDENT> self.apps = apps <NEW_LINE> self.duration = duration <NEW_LINE> self.pauseLength = pauseLength <NEW_LINE> self.paused = True <NEW_LINE> self.pausedUntil = time_ns() + pauseLength <NEW_LINE> self.ani... | Rotator rotates apps vertically on the screen | 625990000a366e3fb87dd472 |
class TestBirthdayChocolate(unittest.TestCase): <NEW_LINE> <INDENT> def test_hackerrank_sample1(self): <NEW_LINE> <INDENT> result = birthday_chocolate([1, 2, 1, 3, 2], 3, 2) <NEW_LINE> self.assertEquals(result, 2) <NEW_LINE> <DEDENT> def test_hackerrank_sample2(self): <NEW_LINE> <INDENT> result = birthday_chocolate([1,... | Validate number of segments that can be provided
| 6259900115fb5d323ce7f7c6 |
class ContainerServiceSshConfiguration(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'public_keys': {'required': True}, } <NEW_LINE> _attribute_map = { 'public_keys': {'key': 'publicKeys', 'type': '[ContainerServiceSshPublicKey]'}, } <NEW_LINE> def __init__( self, *, public_keys: List["ContainerServi... | SSH configuration for Linux-based VMs running on Azure.
All required parameters must be populated in order to send to Azure.
:ivar public_keys: Required. The list of SSH public keys used to authenticate with Linux-based
VMs. Only expect one key specified.
:vartype public_keys:
list[~azure.mgmt.containerservice.v202... | 6259900115fb5d323ce7f7ca |
class CronException(Exception): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> Exception.__init__(self) <NEW_LINE> self.value = value <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return repr(self.value) | cron exception | 62599001462c4b4f79dbc48f |
class Fping(extensions.ExtensionDescriptor): <NEW_LINE> <INDENT> name = "Fping" <NEW_LINE> alias = "os-fping" <NEW_LINE> namespace = "http://docs.openstack.org/compute/ext/fping/api/v1.1" <NEW_LINE> updated = "2012-07-06T00:00:00Z" <NEW_LINE> def get_resources(self): <NEW_LINE> <INDENT> res = extensions.ResourceExtensi... | Fping Management Extension. | 62599001627d3e7fe0e07927 |
class _CDC_DescriptorSubTypes: <NEW_LINE> <INDENT> HEADER_FUNCTIONAL = 0 <NEW_LINE> CALL_MANAGMENT = 1 <NEW_LINE> ABSTRACT_CONTROL_MANAGEMENT = 2 <NEW_LINE> DIRECT_LINE_MANAGEMENT = 3 <NEW_LINE> TELEPHONE_RINGER = 4 <NEW_LINE> TELEPHONE_CALL = 5 <NEW_LINE> UNION_FUNCTIONAL = 6 <NEW_LINE> COUNTRY_SELECTION = 7 <NEW_LINE... | Descriptor sub types [usbcdc11.pdf table 25] | 625990013cc13d1c6d4661d7 |
class CommonInvalidParam7(IndyError): <NEW_LINE> <INDENT> pass | Caller passed invalid value as param 7 (null, invalid json and etc..) | 62599001462c4b4f79dbc493 |
class Health_Indicator(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=100, unique=True) <NEW_LINE> important = models.BooleanField( default=False, verbose_name='Show on overview', help_text='Display a chart for this indicator on the overview page for a state or county' ) <NEW_LINE> slug = models.... | Represents some health metric that we want to store data sets for,
e.g. obesity, mortality, education, etc. | 6259900115fb5d323ce7f7d2 |
class MITCampus(Campus): <NEW_LINE> <INDENT> def __init__(self, center_loc, tent_loc = Location(0,0)): <NEW_LINE> <INDENT> Campus.__init__(self, center_loc) <NEW_LINE> self.tents=[] <NEW_LINE> self.add_tent(tent_loc) <NEW_LINE> <DEDENT> def add_tent(self, new_tent_loc): <NEW_LINE> <INDENT> for l in self.tents: <NEW_LIN... | A MITCampus is a Campus that contains tents | 625990013cc13d1c6d4661df |
class DateRange: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.I64, 'dateFrom', None, None, ), (2, TType.I64, 'dateTo', None, None, ), ) <NEW_LINE> def __init__(self, dateFrom=None, dateTo=None,): <NEW_LINE> <INDENT> self.dateFrom = dateFrom <NEW_LINE> self.dateTo = dateTo <NEW_LINE> <DEDENT> def read(self, iprot... | DTO
Attributes:
- dateFrom
- dateTo | 62599001627d3e7fe0e07937 |
class Business(): <NEW_LINE> <INDENT> def __init__(self, busId, userId, busName, busLocation, busCategory, busDescription): <NEW_LINE> <INDENT> self.busId=busId <NEW_LINE> self.userId=userId <NEW_LINE> self.busName = busName <NEW_LINE> self.busLocation=busLocation <NEW_LINE> self.busCategory=busCategory <NEW_LINE> self... | class that handles bussiness logic ie. create business,view own businesses,view all businesses,
delete a business and update business the functions in this class include
createBusiness, checkBusinessExists, updateBusiness, deleteBusiness, getOwnBusinesses, getAllBusinesses | 6259900115fb5d323ce7f7e0 |
class ModelTests(TestCase): <NEW_LINE> <INDENT> def test_create_user_with_email_successful(self): <NEW_LINE> <INDENT> email = 'test@gmail.com' <NEW_LINE> password = 'Testpass1234' <NEW_LINE> user = get_user_model().objects.create_user( email=email, password=password ) <NEW_LINE> self.assertEqual(user.email, email) <NEW... | docstring for ModelTests. | 625990013cc13d1c6d4661eb |
class OrthoArrayAdapter(_ArrayAdapter): <NEW_LINE> <INDENT> def _apply_keys(self): <NEW_LINE> <INDENT> array = self._concrete.__getitem__(self._keys) <NEW_LINE> return array | Exposes a "concrete" data source which supports orthogonal indexing
as a :class:`biggus.Array`.
Orthogonal indexing treats multiple iterable index keys as
independent (which is also the behaviour of a :class:`biggus.Array`).
For example::
>>> ortho_concrete.shape
(100, 200, 300)
>> ortho_concrete[(0, 3, ... | 625990023cc13d1c6d4661ed |
class ProductListAdmin(views.MethodView): <NEW_LINE> <INDENT> template = 'panel/product_list.html' <NEW_LINE> @login_required <NEW_LINE> @panel_permission.require(401) <NEW_LINE> def get(self): <NEW_LINE> <INDENT> products = ProductModel.query.order_by(ProductModel.id).all() <NEW_LINE> return render_template(self.templ... | `get`: 查询产品列表 | 62599002462c4b4f79dbc4a9 |
class Pawn: <NEW_LINE> <INDENT> def pawn(self): <NEW_LINE> <INDENT> pdxy = self.cursor - self.select <NEW_LINE> flag = 1 if self.isRed else -1 <NEW_LINE> if abs(pdxy.x) + abs(pdxy.y) != 1 or flag * pdxy.y < 0: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> st, sp = (0, 4) if self.isRed else (5, 9) <NEW_LINE> if a... | 兵卒类 | 625990023cc13d1c6d4661ef |
class Engine: <NEW_LINE> <INDENT> bots = [] <NEW_LINE> def __init__(self, arg): <NEW_LINE> <INDENT> self.arg = arg <NEW_LINE> <DEDENT> def start_bot(self, bot): <NEW_LINE> <INDENT> self.bots.append(bot) <NEW_LINE> <DEDENT> def stop_bot(self, bot): <NEW_LINE> <INDENT> self.bots.bot.stop() | docstring for particular_bot | 62599002627d3e7fe0e07947 |
class NoForceFoundError(Exception): <NEW_LINE> <INDENT> pass | Error raised when no forces matching the given criteria are found. | 62599002627d3e7fe0e07949 |
@pytest.mark.release <NEW_LINE> class TestSqlAlchemyStoreMysqlDb(TestSqlAlchemyStoreSqlite): <NEW_LINE> <INDENT> DEFAULT_MYSQL_PORT = 3306 <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> os.environ[MLFLOW_SQLALCHEMYSTORE_POOL_SIZE] = "2" <NEW_LINE> os.environ[MLFLOW_SQLALCHEMYSTORE_MAX_OVERFLOW] = "1" <NEW_LINE> db_use... | Run tests against a MySQL database | 625990020a366e3fb87dd4a1 |
class BlockInit(Expr): <NEW_LINE> <INDENT> def __init__(self, body: [Expr]): <NEW_LINE> <INDENT> self.body = body | Initializer Block Expression | 62599002462c4b4f79dbc4b5 |
class SensAnalysisDelegate(QtGui.QItemDelegate): <NEW_LINE> <INDENT> def __init__(self, parent, windowObject): <NEW_LINE> <INDENT> QtGui.QItemDelegate.__init__(self, parent) <NEW_LINE> self.parent = parent <NEW_LINE> <DEDENT> def createEditor(self, parent, option, index): <NEW_LINE> <INDENT> if index.column() <=1: <NEW... | This class is responsible of controlling the user interaction with a QTableView.(saTab.saList in this case) | 62599002627d3e7fe0e07950 |
class ReferenceSource: <NEW_LINE> <INDENT> def __init__(self, commit): <NEW_LINE> <INDENT> self.src_dir = tempfile.mkdtemp() <NEW_LINE> print("Cloning git repo to a separate work directory...") <NEW_LINE> subprocess.check_output(['git', 'clone', os.getcwd(), '.'], cwd=self.src_dir) <NEW_LINE> print("Checkout '%s' to bu... | Reference source against which original configs should be parsed. | 625990020a366e3fb87dd4a5 |
class CodeStatTest(TestCase): <NEW_LINE> <INDENT> def test_code_stat_returns_proper_values(self): <NEW_LINE> <INDENT> known_values = ( ( (source, code, 100, 50), (200, 200, 200, 2, 2, 2, 100, 50), ), ) <NEW_LINE> for args, result in known_values: <NEW_LINE> <INDENT> self.assertEqual(code_stat(*args), result) | Testing code_stat_test function. | 625990023cc13d1c6d466200 |
class Card(object): <NEW_LINE> <INDENT> rank_offset = 1 <NEW_LINE> rank_two = 2 - rank_offset <NEW_LINE> rank_eight = 8 - rank_offset <NEW_LINE> rank_jack = 11 - rank_offset <NEW_LINE> rank_queen = 12 - rank_offset <NEW_LINE> @staticmethod <NEW_LINE> def make_deck_index(rank, suit): <NEW_LINE> <INDENT> suit_placement =... | A playing card. | 625990023cc13d1c6d466203 |
class ProxOp(ProximalOperatorBaseClass): <NEW_LINE> <INDENT> @wraps(func) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.args = args <NEW_LINE> self.kwargs = kwargs <NEW_LINE> <DEDENT> def __call__(self, x, rho=1.0): <NEW_LINE> <INDENT> return func(x, rho, *self.args, **self.kwargs) | Proximal operator base class | 625990023cc13d1c6d466204 |
@dataclass <NEW_LINE> class ReadInt(Function): <NEW_LINE> <INDENT> src = Inputs.path( description='Path to a input text file.', path='input_path' ) <NEW_LINE> @command <NEW_LINE> def read_integer(self): <NEW_LINE> <INDENT> return 'echo parsing text information to an integer...' <NEW_LINE> <DEDENT> data = Outputs.int( d... | Read content of a text file as an integer. | 6259900215fb5d323ce7f7fe |
class Vector2D: <NEW_LINE> <INDENT> def __init__(self, x=0, y=0): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> if hasattr(x, "__getitem__"): <NEW_LINE> <INDENT> x, y = x <NEW_LINE> self._v = [float(x), float(y)] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._v = [float(x), float(y)] <NEW_LINE> <... | Class utilitity for Vector objects operations | 625990020a366e3fb87dd4af |
class DBStore(Store): <NEW_LINE> <INDENT> def __init__(self, db, table_name): <NEW_LINE> <INDENT> self.db = db <NEW_LINE> self.table = table_name <NEW_LINE> <DEDENT> def __contains__(self, key): <NEW_LINE> <INDENT> data = self.db.select(self.table, where='session_id=$key', vars=locals()) <NEW_LINE> return bool(list(dat... | Store for saving a session in database.
Needs a table with the following columns:
session_id CHAR(128) UNIQUE NOT NULL,
atime DATATIME NOT NULL DEFAULT current_timestamp,
data TEXT | 62599002d164cc6175821a3b |
class OutputData(): <NEW_LINE> <INDENT> def __init__(self,size=1): <NEW_LINE> <INDENT> self.dictionary={"one":1} <NEW_LINE> self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) <NEW_LINE> self.size=size <NEW_LINE> <DEDENT> def test_1(self): <NEW_LINE> <INDENT> sys.stderr.write("x"*self.size) <NEW_LINE> <DEDEN... | Compare speed of writing data to a remote UDP listener using 2 different methods:
* Write to stdout/stderr and pipe to remote listener using netcat
* Write directly to the remote listener
Start in another shell a listening UDP server which writes data to /dev/null:
$ nc -klu localhost 10000 > /dev/nul... | 625990023cc13d1c6d46620a |
class RolesTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.course = Location('i4x://edX/toy/course/2012_Fall') <NEW_LINE> self.anonymous_user = AnonymousUserFactory() <NEW_LINE> self.student = UserFactory() <NEW_LINE> self.global_staff = UserFactory(is_staff=True) <NEW_LINE> self.cours... | Tests of student.roles | 6259900315fb5d323ce7f808 |
class RecoveryData(FailureData): <NEW_LINE> <INDENT> event = 'Recovery' | Holds recovery event data | 625990030a366e3fb87dd4b9 |
@endpoint("openapi/ref/v1/exchanges/") <NEW_LINE> class ExchangeList(ReferenceData): <NEW_LINE> <INDENT> @dyndoc_insert(responses) <NEW_LINE> def __init__(self, params=None): <NEW_LINE> <INDENT> super(ExchangeList, self).__init__() <NEW_LINE> self.params = params | Retrieve a list of exchanges with detailed information about each.
The response also contains links to other relevant data, such as their
trade statuses. | 62599003462c4b4f79dbc4d1 |
class TextFile(object): <NEW_LINE> <INDENT> UTF8_MARKER = chr(239) + chr(187) + chr(191) <NEW_LINE> _UTF8_MARKER_LEN = len(UTF8_MARKER) <NEW_LINE> UTF16_MARKER = chr(255) + chr(254) <NEW_LINE> _UTF16_MARKER_LEN = len(UTF16_MARKER) <NEW_LINE> def __init__(self, file_name, mode='r', encoding=None): <NEW_LINE> <INDENT> se... | Handle opening text files with different encodings. | 62599003462c4b4f79dbc4d5 |
class GovernmentAPI(API): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(GovernmentAPI, self).__init__() <NEW_LINE> self.base_url = 'http://usaspending.gov' <NEW_LINE> self.output_format = 'xml' <NEW_LINE> self.required_params = None <NEW_LINE> self.keywords = keywords <NEW_LINE> self._detail_args = ... | Generalized Python wrapper for the USA Spending API. Resolves keyword
replacement and connecting with the API. | 62599003d164cc6175821a4b |
class User(ObjCD): <NEW_LINE> <INDENT> def update(self): <NEW_LINE> <INDENT> return self.client.update_user(self) <NEW_LINE> <DEDENT> def create(self): <NEW_LINE> <INDENT> return self.client.update_user(self) | Encapsulates an app user | 6259900315fb5d323ce7f812 |
class Competition(models.Model): <NEW_LINE> <INDENT> competition_id = models.AutoField(primary_key=True) <NEW_LINE> competition_sender_id = models.ForeignKey(User, on_delete=models.CASCADE,) <NEW_LINE> competition_poster = models.ImageField(upload_to='competition_img', verbose_name='大赛海报') <NEW_LINE> competition_title ... | 大赛 | 6259900315fb5d323ce7f816 |
class NotAuthorized(BlazarClientException): <NEW_LINE> <INDENT> code = 401 <NEW_LINE> message = _("Not authorized request.") | HTTP 401 - Not authorized.
User have no enough rights to perform action. | 62599003462c4b4f79dbc4db |
class SynoDSMSecurityBinarySensor(SynologyDSMBaseEntity, BinarySensorEntity): <NEW_LINE> <INDENT> @property <NEW_LINE> def is_on(self) -> bool: <NEW_LINE> <INDENT> return getattr(self._api.security, self.entity_type) != "safe" <NEW_LINE> <DEDENT> @property <NEW_LINE> def available(self) -> bool: <NEW_LINE> <INDENT> ret... | Representation a Synology Security binary sensor. | 62599003627d3e7fe0e07974 |
class ResourceNotFoundError(Exception): <NEW_LINE> <INDENT> pass | Raised when a resoruce is not found in the application | 625990030a366e3fb87dd4c9 |
class LocationMixin(XBlock): <NEW_LINE> <INDENT> @property <NEW_LINE> def block_id(self): <NEW_LINE> <INDENT> if hasattr(self, 'location'): <NEW_LINE> <INDENT> return self.location.block_id <NEW_LINE> <DEDENT> return 'block_id' <NEW_LINE> <DEDENT> @property <NEW_LINE> def course_key(self): <NEW_LINE> <INDENT> if hasatt... | Provides utility methods to access XBlock's `location`.
Some runtimes, e.g. workbench, don't provide location, hence stubs. | 625990033cc13d1c6d466220 |
class RegexHandler(object): <NEW_LINE> <INDENT> def __init__(self, pat): <NEW_LINE> <INDENT> self.debugInfo = pat <NEW_LINE> self.pat = re.compile(pat) <NEW_LINE> <DEDENT> def handle(self, parent, css, attr): <NEW_LINE> <INDENT> value = "" <NEW_LINE> try: <NEW_LINE> <INDENT> value = Extractor.getValue(parent, css, attr... | 对CSS Selector处理后的数据进行正则处理 | 62599003627d3e7fe0e07976 |
class WebserverProcess(testprocess.Process): <NEW_LINE> <INDENT> new_request = pyqtSignal(Request) <NEW_LINE> Request = Request <NEW_LINE> ExpectedRequest = ExpectedRequest <NEW_LINE> KEYS = ['verb', 'path'] <NEW_LINE> def __init__(self, request, script, parent=None): <NEW_LINE> <INDENT> super().__init__(request, paren... | Abstraction over a running Flask server process.
Reads the log from its stdout and parses it.
Signals:
new_request: Emitted when there's a new request received. | 6259900315fb5d323ce7f81c |
class SimConfig(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=128, unique=True) <NEW_LINE> datafile = models.FilePathField(path='spyke/data/simulations/') <NEW_LINE> created = models.DateTimeField(auto_now_add=True) <NEW_LINE> edited = models.DateTimeField(auto_now=True) <NEW_LINE> def set_dataf... | Save simulation config as JSON | 625990030a366e3fb87dd4cf |
class Wall(NonActor): <NEW_LINE> <INDENT> mark = 'W' <NEW_LINE> type_name = 'Wall' <NEW_LINE> obstacle = True <NEW_LINE> max_hp = 5 <NEW_LINE> def attack_result(self, damage): <NEW_LINE> <INDENT> return EventResult(damage, -1, 1, 1) | Designed to be impassable obstacle, at least as,long as actor can not break it. | 625990030a366e3fb87dd4d1 |
class UserTreeDataView(APIView): <NEW_LINE> <INDENT> authentication_classes = (TokenAuthentication, ) <NEW_LINE> def post(self, request): <NEW_LINE> <INDENT> tree_id = request.data.get('id', '1-1') <NEW_LINE> if str(tree_id).strip() == "": <NEW_LINE> <INDENT> tree_id = '1-1' <NEW_LINE> <DEDENT> person_flag = request.da... | 获取组织树数据 | 62599003d164cc6175821a5e |
class _PresubmitResult(object): <NEW_LINE> <INDENT> fatal = False <NEW_LINE> should_prompt = False <NEW_LINE> def __init__(self, message): <NEW_LINE> <INDENT> self._message = message <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return self.fatal == other.fatal and self.should_prompt == other.should_... | Base class for result objects. | 625990040a366e3fb87dd4d9 |
class Singleton(object): <NEW_LINE> <INDENT> def __init__(self, decorated): <NEW_LINE> <INDENT> self._decorated = decorated <NEW_LINE> <DEDENT> def Instance(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self._instance <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> self._instance = self._dec... | A non-thread-safe helper class to ease implementing singletons.
This should be used as a decorator -- not a metaclass -- to the
class that should be a singleton.
The decorated class can define one __init__ function that
takes only the "self" argument. Other than that, there are
no restrictions that apply to the decora... | 6259900415fb5d323ce7f82d |
class FriendGroupManager(SingleDeleteManager): <NEW_LINE> <INDENT> def for_user(self, user): <NEW_LINE> <INDENT> return self.filter(user=user) | Manager des groupes d'amis | 6259900415fb5d323ce7f82f |
class DeDupDatabase: <NEW_LINE> <INDENT> def __init__(self, create = True): <NEW_LINE> <INDENT> self.connection = sqlite3.connect("dedup.db") <NEW_LINE> self.connection.isolation_level = None <NEW_LINE> self.cursor = self.connection.cursor() <NEW_LINE> self.resetStatement = "DROP TABLE if exists dups" <NEW_LINE> self.c... | This class provides the dedup database and makes getting data into it easy. | 62599004462c4b4f79dbc4f4 |
class _CustomSTE(Function): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def forward(ctx, input_forward: torch.Tensor, input_backward: torch.Tensor) -> torch.Tensor: <NEW_LINE> <INDENT> ctx.shape = input_backward.shape <NEW_LINE> return input_forward <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def backward(ctx, grad_i... | An efficient alternatives for
>>> input_forward.requires_grad is False
>>> input_backward.requires_grad is True
>>> input_forward + (input_backward - input_backward.detach()) | 625990043cc13d1c6d466238 |
class matrix(convolution): <NEW_LINE> <INDENT> def __init__(self, convolution_array, vectorize): <NEW_LINE> <INDENT> super(matrix, self).__init__(vectorize) <NEW_LINE> self.__convolution_array__ = convolution_array <NEW_LINE> <DEDENT> def convolve( self, image ) : <NEW_LINE> <INDENT> fun = getattr(kernels, self.fun(ima... | Convolution generale avec une taille de stencil quelconque. Permet de definir tous les stencils que l'on souhaite ! | 625990040a366e3fb87dd4e3 |
class Cisco(SwitchCommon): <NEW_LINE> <INDENT> def __init__(self, host=None, userid=None, password=None, mode=None, outfile=None): <NEW_LINE> <INDENT> self.mode = mode <NEW_LINE> self.host = host <NEW_LINE> if self.mode == 'active': <NEW_LINE> <INDENT> self.userid = userid <NEW_LINE> self.password = password <NEW_LINE>... | Class for configuring and retrieving information for a Cisco
Nexus switches running NX-OS. This class developed on Cisco 5020.
Cisco IOS switches may work or may need some methods overridden.
This class can be instantiated in 'active' mode, in which case the
switch will be configured or in 'passive' mode in which case... | 6259900415fb5d323ce7f835 |
class ImageMismatchError(BaseError): <NEW_LINE> <INDENT> pass | Raises error when pulled image is different from expected image | 625990043cc13d1c6d46623c |
class UUID(object): <NEW_LINE> <INDENT> def __init__(self, string = '00000000-0000-0000-0000-000000000000', bytes = None, offset = 0): <NEW_LINE> <INDENT> if bytes != None: <NEW_LINE> <INDENT> self.unpack_from_bytes(bytes, offset) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.uuid = uuid.UUID(string) <NEW_LINE> <D... | represents a uuid as, well, a uuid
inbound LLUUID data from packets is already UUID(), they are
already the same 'datatype' | 6259900415fb5d323ce7f83b |
class DatModelShared(QAbstractTableModel): <NEW_LINE> <INDENT> def __init__(self, dat_file, *args, **kwargs): <NEW_LINE> <INDENT> QAbstractTableModel.__init__(self, *args, **kwargs) <NEW_LINE> if not isinstance(dat_file, DatFile): <NEW_LINE> <INDENT> raise TypeError('datfile must be a DatFile instance') <NEW_LINE> <DED... | TODO: master should be a DatFrame... but circular dependencies | 62599004627d3e7fe0e0799a |
class InputWidget(QtWidgets.QWidget): <NEW_LINE> <INDENT> def __init__(self, specification, scales, parent=None): <NEW_LINE> <INDENT> super().__init__(parent) <NEW_LINE> self.specification = specification <NEW_LINE> self.scales = scales <NEW_LINE> <DEDENT> def loadCut(self, cut): <NEW_LINE> <INDENT> raise NotImplemente... | Abstract input widget.
>>> widget.loadCut(cut)
>>> widget.updateCut(cut) | 625990043cc13d1c6d466246 |
class Connection(MongoClient): <NEW_LINE> <INDENT> def __init__(self, host=None, port=None, max_pool_size=10, network_timeout=None, document_class=dict, tz_aware=False, _connect=True, **kwargs): <NEW_LINE> <INDENT> if network_timeout is not None: <NEW_LINE> <INDENT> if (not isinstance(network_timeout, (int, float)) or ... | Connection to MongoDB.
| 62599004bf627c535bcb1fb1 |
class Factor(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(Factor, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> @property <NEW_LINE> def logp(self): <NEW_LINE> <INDENT> return self.model.fn(self.logpt) <NEW_LINE> <DEDENT> @property <NEW_LINE> def logp_elemwise(self):... | Common functionality for objects with a log probability density
associated with them. | 625990050a366e3fb87dd4f7 |
class pairDouble(object): <NEW_LINE> <INDENT> thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def __init__(self, *args): <NEW_LINE> <INDENT> _piranha.pairDouble_swiginit(self, _piranha.new_pairDouble(*args)) <NEW_LINE> <DEDENT... | Proxy of C++ std::pair< double,double > class. | 62599005462c4b4f79dbc50e |
class QGridLeaf(RhythmTreeMixin, TreeNode): <NEW_LINE> <INDENT> __slots__ = ( '_duration', '_is_divisible', '_offset', '_offsets_are_current', '_q_event_proxies', ) <NEW_LINE> def __init__( self, preprolated_duration=1, q_event_proxies=None, is_divisible=True): <NEW_LINE> <INDENT> from abjad.tools import quantizationto... | A leaf in a ``QGrid`` structure.
::
>>> leaf = quantizationtools.QGridLeaf()
::
>>> leaf
QGridLeaf(
preprolated_duration=Duration(1, 1),
is_divisible=True
)
Used internally by ``QGrid``. | 6259900515fb5d323ce7f84a |
class Addressable(object): <NEW_LINE> <INDENT> def discoReceived(self, user, what, node=None): <NEW_LINE> <INDENT> if 'info' == what: <NEW_LINE> <INDENT> ids = [{'category': 'hierarchy', 'type': 'leaf'}] <NEW_LINE> return {'ids': ids, 'features': [NS_DISCO_INFO]} <NEW_LINE> <DEDENT> <DEDENT> def iqReceived(self, cnx, i... | An addressable object | 62599005bf627c535bcb1fb8 |
class HDF5DatasetSliceHandler(_HDF5HandlerBase): <NEW_LINE> <INDENT> def __init__(self, filename, key, frame_per_point=1): <NEW_LINE> <INDENT> self._fpp = frame_per_point <NEW_LINE> self._filename = filename <NEW_LINE> self._key = key <NEW_LINE> self._file = None <NEW_LINE> self._dataset = None <NEW_LINE> self.open() <... | Handler for data stored in one Dataset of an HDF5 file.
Parameters
----------
filename : string
path to HDF5 file
key : string
key of the single HDF5 Dataset used by this Handler
frame_per_point : integer, optional
number of frames to return as one datum, default 1 | 62599005627d3e7fe0e079aa |
class QLearn: <NEW_LINE> <INDENT> def __init__(self, action_space, alpha=0.1, gamma=0.9, epsilon=0.1): <NEW_LINE> <INDENT> self.q = {} <NEW_LINE> self.alpha = alpha <NEW_LINE> self.gamma = gamma <NEW_LINE> self.actions = action_space <NEW_LINE> self.epsilon = epsilon <NEW_LINE> <DEDENT> def get_utility(self, state, act... | Q-learning:
Q(s, a) += alpha * (reward(s,a) + gamma * max(Q(s', a') - Q(s,a))
* alpha is the learning rate.
* gamma is the value of the future reward.
It use the best next choice of utility in later state to update the former state. | 6259900515fb5d323ce7f851 |
class Alien(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen): <NEW_LINE> <INDENT> super(Alien, self).__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.ai_settings = ai_settings <NEW_LINE> self.image = pygame.image.load('example_5/images/alien.bmp') <NEW_LINE> self.rect = self.image.get_rect... | 外星人基本设置 | 625990053cc13d1c6d46625d |
class SignatureEnvelopeDocumentResponse: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swaggerTypes = { 'result': 'SignatureEnvelopeDocumentResult', 'status': 'str', 'error_message': 'str', 'composedOn': 'long' } <NEW_LINE> self.result = None <NEW_LINE> self.status = None <NEW_LINE> self.error_messag... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62599005d164cc6175821a8f |
class vector_insert_s(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def ma... | source of short's that gets its data from a vector
Constructor Specific Documentation:
Make vector insert block.
Args:
data : vector of data to insert
periodicity : number of samples between when to send
offset : initial item offset of first insert | 625990050a366e3fb87dd507 |
class Movie(): <NEW_LINE> <INDENT> VALID_RATINGS = ["G", "PG", "PG-13", "R"] <NEW_LINE> def __init__(self, movie_title, movie_storyline, poster_image,trailer_youtube): <NEW_LINE> <INDENT> self.title = movie_title <NEW_LINE> self.storyline = movie_storyline <NEW_LINE> self.poster_image_url = poster_image <NEW_LINE> self... | This class provides a way to store movie realted information | 62599005462c4b4f79dbc51c |
class ButtonBar(QToolBar): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> super().__init__(parent) <NEW_LINE> self.slots = {} <NEW_LINE> self.setMovable(False) <NEW_LINE> self.setIconSize(QSize(64, 64)) <NEW_LINE> self.setToolButtonStyle(3) <NEW_LINE> self.setContextMenuPolicy(Qt.PreventContextMenu... | Represents the bar of buttons across the top of the editor and defines
their behaviour. | 62599005bf627c535bcb1fc3 |
class MyStatusBar(wx.StatusBar): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> super(MyStatusBar, self).__init__(parent, 1) <NEW_LINE> self.SetFieldsCount(1) <NEW_LINE> self.text_box = wx.StaticText(self, -1, ' hello') <NEW_LINE> if platform == 'win32': <NEW_LINE> <INDENT> field_rect = self.GetFie... | Class for custom status bar to color background on errors. | 62599005627d3e7fe0e079b4 |
class RelatedSuggestion(yahoo.search._Search): <NEW_LINE> <INDENT> NAME = "relatedSuggestion" <NEW_LINE> SERVICE = "WebSearchService" <NEW_LINE> _RESULT_FACTORY = yahoo.search.dom.web.RelatedSuggestion <NEW_LINE> def _init_valid_params(self): <NEW_LINE> <INDENT> self._valid_params.update({ "query" : (types.StringTypes,... | RelatedSuggestion - perform a Yahoo Web Related Suggestions search
This class implements the Web Search Related Suggestion web service
APIs. The only allowed parameters are:
query - The query to get related searches from
results - The number of results to return (1-50)
output - The forma... | 625990050a366e3fb87dd509 |
@implementer(sasl_mechanisms.ISASLMechanism) <NEW_LINE> class DummySASLMechanism(object): <NEW_LINE> <INDENT> challenge = None <NEW_LINE> name = "DUMMY" <NEW_LINE> def __init__(self, initialResponse): <NEW_LINE> <INDENT> self.initialResponse = initialResponse <NEW_LINE> <DEDENT> def getInitialResponse(self): <NEW_LINE>... | Dummy SASL mechanism.
This just returns the initialResponse passed on creation, stores any
challenges and replies with an empty response.
@ivar challenge: Last received challenge.
@type challenge: C{unicode}.
@ivar initialResponse: Initial response to be returned when requested
via C{getInitial... | 6259900515fb5d323ce7f85b |
class PositionalList(_DoublyLinkedBase): <NEW_LINE> <INDENT> class Position: <NEW_LINE> <INDENT> def __init__(self, container, node): <NEW_LINE> <INDENT> self._container = container <NEW_LINE> self._node = node <NEW_LINE> <DEDENT> def element(self): <NEW_LINE> <INDENT> return self._node._element <NEW_LINE> <DEDENT> def... | A sequential container of elements allowing positonal access | 6259900521a7993f00c66a96 |
class AbstractSubstringGenerator(DefaultNameMixin): <NEW_LINE> <INDENT> def generateSubstring(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def getJsonableObject(self): <NEW_LINE> <INDENT> raise NotImplementedError() | Generates a substring, usually for embedding in a background sequence. | 62599005bf627c535bcb1fc9 |
class QueryGeneralStatResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.GeneralStat = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("GeneralStat") is not None: <NEW_LINE> <INDENT> self.GeneralStat = Gen... | QueryGeneralStat返回参数结构体
| 625990050a366e3fb87dd50f |
class ProgramRuleBase(Rule): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.init_libs(kwargs) <NEW_LINE> self.init_var(kwargs, 'ldflags') <NEW_LINE> if mswin: <NEW_LINE> <INDENT> targs = process_nodes(kwargs['targets']) <NEW_LINE> for n in range(len(targs)): <NEW_LINE> <INDENT> if not targs[... | Standard rule for linking mutiple object files and libs into a program. | 625990050a366e3fb87dd511 |
class SpellTotems(Structure): <NEW_LINE> <INDENT> fields = Skeleton( IDField(), ForeignKey("required_tool_category_1", "TotemCategory"), ForeignKey("required_tool_category_2", "TotemCategory"), ForeignKey("required_tool_1", "Item"), ForeignKey("required_tool_2", "Item"), ) | SpellTotems.dbc
Split off Spell.dbc in 4.0.0.12232 | 62599005627d3e7fe0e079bc |
class SuggestTagAdminField(forms.fields.Field): <NEW_LINE> <INDENT> def __init__(self, db_field, *args, **kwargs): <NEW_LINE> <INDENT> self.rel = db_field.rel <NEW_LINE> self.object_category = kwargs.get('category', None) <NEW_LINE> self.widget = SuggestMultipleTagAdminWidget(db_field, **kwargs) <NEW_LINE> super(Sugges... | uses multitag text field | 625990053cc13d1c6d46626b |
class TankUserPermissionsError(Exception): <NEW_LINE> <INDENT> pass | Exception to raise if the current user does not have
sufficient permissions to setup a project. | 62599005462c4b4f79dbc52a |
class FlotillaUnit(object): <NEW_LINE> <INDENT> def __init__(self, name, unit_file, environment={}, rev_hash=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.unit_file = unit_file <NEW_LINE> self.environment = environment or {} <NEW_LINE> self.rev_hash = rev_hash <NEW_LINE> <DEDENT> def __str__(self): <NEW_L... | Systemd unit file and configuration (environment variables). | 625990050a366e3fb87dd515 |
class MVNormal(MVElliptical): <NEW_LINE> <INDENT> __name__ == 'Multivariate Normal Distribution' <NEW_LINE> def rvs(self, size=1): <NEW_LINE> <INDENT> return np.random.multivariate_normal(self.mean, self.sigma, size=size) <NEW_LINE> <DEDENT> def logpdf(self, x): <NEW_LINE> <INDENT> x = np.asarray(x) <NEW_LINE> x_whiten... | Class for Multivariate Normal Distribution
uses Cholesky decomposition of covariance matrix for the transformation
of the data | 62599005d164cc6175821a9f |
class PhysicsObject(Particle): <NEW_LINE> <INDENT> def __init__(self, physObj): <NEW_LINE> <INDENT> self.physObj = physObj <NEW_LINE> super(PhysicsObject, self).__init__() <NEW_LINE> <DEDENT> def __copy__(self): <NEW_LINE> <INDENT> physObj = copy.deepcopy( self.physObj ) <NEW_LINE> newone = type(self)(physObj) <NEW_LIN... | Extends the cmg::PhysicsObject functionalities. | 625990060a366e3fb87dd517 |
class MySQLSHA256PasswordAuthPlugin(BaseAuthPlugin): <NEW_LINE> <INDENT> requires_ssl = True <NEW_LINE> plugin_name = 'sha256_password' <NEW_LINE> def prepare_password(self): <NEW_LINE> <INDENT> if not self._password: <NEW_LINE> <INDENT> return b'\x00' <NEW_LINE> <DEDENT> password = self._password <NEW_LINE> if PY2: <N... | Class implementing the MySQL SHA256 authentication plugin
Note that encrypting using RSA is not supported since the Python
Standard Library does not provide this OpenSSL functionality. | 62599006627d3e7fe0e079c2 |
@python_2_unicode_compatible <NEW_LINE> class ActionItem(models.Model): <NEW_LINE> <INDENT> SEVERITY_WISHLIST = 0 <NEW_LINE> SEVERITY_LOW = 1 <NEW_LINE> SEVERITY_NORMAL = 2 <NEW_LINE> SEVERITY_HIGH = 3 <NEW_LINE> SEVERITY_CRITICAL = 4 <NEW_LINE> SEVERITIES = ( (SEVERITY_WISHLIST, 'wishlist'), (SEVERITY_LOW, 'low'), (SE... | Model for entries of the "action needed" panel. | 625990063cc13d1c6d466271 |
class TarBadPathError(Exception): <NEW_LINE> <INDENT> def __init__(self, root, offensive_path, *args, **kwargs): <NEW_LINE> <INDENT> self.root = root <NEW_LINE> self.offensive_path = offensive_path <NEW_LINE> Exception.__init__(self, *args, **kwargs) | Raised when a root directory does not contain all file paths. | 62599006462c4b4f79dbc52e |
class TestInterWikiMapBackend: <NEW_LINE> <INDENT> def test_load_file(self): <NEW_LINE> <INDENT> tmpdir = tempfile.mkdtemp() <NEW_LINE> with pytest.raises(IOError): <NEW_LINE> <INDENT> InterWikiMap.from_file(os.path.join(tmpdir, 'void')) <NEW_LINE> <DEDENT> testfile = os.path.join(tmpdir, 'foo.iwm') <NEW_LINE> with ope... | tests for interwiki map | 62599006627d3e7fe0e079c4 |
class IpAddressRings: <NEW_LINE> <INDENT> def __init__(self, get_response): <NEW_LINE> <INDENT> self.get_response = get_response <NEW_LINE> <DEDENT> def __call__(self, request): <NEW_LINE> <INDENT> real_ip_header = 'HTTP_X_REAL_IP' <NEW_LINE> forwarded_for_header = 'HTTP_X_FORWARDED_FOR' <NEW_LINE> remote_addr = 'REMOT... | Set the network_ring attribute on the request object based on the IP from
which the request was made | 62599006462c4b4f79dbc532 |
class ConstantExpression(AbstractVariableExpression): <NEW_LINE> <INDENT> def _get_type(self): return self.variable.type <NEW_LINE> def _set_type(self, other_type=ANY_TYPE, signature=None): <NEW_LINE> <INDENT> assert isinstance(other_type, Type) <NEW_LINE> if signature is None: <NEW_LINE> <INDENT> signature = defaultdi... | This class represents variables that do not take the form of a single
character followed by zero or more digits. | 62599006bf627c535bcb1fd9 |
class PresentationSetForm(forms.ModelForm): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self.fields['Assessors'].label_from_instance = self.user_label_from_instance <NEW_LINE> self.fields['Assessors'].queryset = get_grouptype('2').user_set.al... | A set of presentations. A set is a number of presentations in the same room for one track. | 625990060a366e3fb87dd51d |
class baseuser_add(LDAPCreate): <NEW_LINE> <INDENT> def pre_common_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options): <NEW_LINE> <INDENT> assert isinstance(dn, DN) <NEW_LINE> set_krbcanonicalname(entry_attrs) <NEW_LINE> check_fips_auth_opts(fips_mode=self.api.env.fips_mode, **options) <NEW_LINE> self.... | Prototype command plugin to be implemented by real plugin | 62599006627d3e7fe0e079c8 |
class WebSystrayView(WebDialog): <NEW_LINE> <INDENT> def __init__(self, application, icon): <NEW_LINE> <INDENT> super(WebSystrayView, self).__init__(application, "systray.html", api=WebSystrayApi(application, self)) <NEW_LINE> self._icon = icon <NEW_LINE> self._view.setFocusProxy(self) <NEW_LINE> self.resize(300, 370) ... | classdocs | 625990060a366e3fb87dd525 |
class Oper(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.b_key = "oper" <NEW_LINE> self.DeviceProxy = "" <NEW_LINE> self.total_sessions = "" <NEW_LINE> self.cache_list = [] <NEW_LINE> self.state = "" <NEW_LINE> self.session_list = [] <NEW_LINE> ... | This class does not support CRUD Operations please use parent.
:param total_sessions: {"type": "number", "format": "number"}
:param cache_list: {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"cache-ttl": {"type": "number", "format": "number"}, "additional-r... | 62599006d164cc6175821ab1 |
class Solution: <NEW_LINE> <INDENT> def subsetsWithDup(self, nums): <NEW_LINE> <INDENT> if nums == None: <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> nums.sort() <NEW_LINE> subset = [] <NEW_LINE> results = [] <NEW_LINE> self.dfs(nums, subset, results, 0) <NEW_LINE> return results <NEW_LINE> <DEDENT> def dfs(self, ... | @param nums: A set of numbers.
@return: A list of lists. All valid subsets. | 62599006bf627c535bcb1fea |
class TaskFactory(object): <NEW_LINE> <INDENT> _task_registry = [] <NEW_LINE> def __init__(self, basename): <NEW_LINE> <INDENT> self.basename = basename <NEW_LINE> self.clean = True <NEW_LINE> TaskFactory._task_registry.append(self) <NEW_LINE> <DEDENT> def as_task_dict(self): <NEW_LINE> <INDENT> if getattr(self, "skipp... | Base class for task factory objects. Derived classes must follow this
example:
>>> class MyTask(TaskFactory):
... def __init__(self, input, output):
... # Initialize base class
... TaskFactory.__init__(self, "my basename")
...
... # Define mandatory members
... self.file_de... | 6259900615fb5d323ce7f87f |
class extended_response_code(enum.IntEnum): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_param(cls, obj): <NEW_LINE> <INDENT> return int(obj) <NEW_LINE> <DEDENT> EXTENDED_RESPONSE_OK = 0 <NEW_LINE> EXTENDED_RESPONSE_INVALID_COMMAND = -1 <NEW_LINE> EXTENDED_RESPONSE_INVALID_STATE = -2 <NEW_LINE> EXTENDED_RESP... | A ctypes-compatible IntEnum superclass. | 625990060a366e3fb87dd52f |
class LEDlogic(object): <NEW_LINE> <INDENT> def __init__(self, Bit2Pin, Bit1Pin, Bit0Pin): <NEW_LINE> <INDENT> self.Bit0Pin = Bit0Pin <NEW_LINE> self.Bit1Pin = Bit1Pin <NEW_LINE> self.Bit2Pin = Bit2Pin <NEW_LINE> self.LEDpins = [Bit2Pin, Bit1Pin, Bit0Pin] <NEW_LINE> self.LastCall = None <NEW_LINE> self.Logging = True <... | docstring for LEDlogic.
Binary format: [Bit2, Bit1, Bit0] | 625990063cc13d1c6d466287 |
class NSNitroNserrRltSelectorInuse(NSNitroGslbErrors): <NEW_LINE> <INDENT> pass | Nitro error code 1944
The selector is being referenced by one or more limit
identifiers | 62599006462c4b4f79dbc546 |
class MGOrderStatus: <NEW_LINE> <INDENT> CREATED = "CREATED" <NEW_LINE> PROCESSING = "PROCESSING" <NEW_LINE> APPROVED = "APPROVED" <NEW_LINE> DECLINED = "DECLINED" <NEW_LINE> FILTERED = "FILTERED" <NEW_LINE> PENDING = "PENDING" <NEW_LINE> UNKNOWN = "UNKNOWN" <NEW_LINE> ERROR = "ERROR" | Definition of all the possible statuses of an order.
See https://mg-docs.zotapay.com/payout/1.0/#common-resources | 62599006627d3e7fe0e079dc |
class TimeJD(TimeFormat): <NEW_LINE> <INDENT> name = 'jd' <NEW_LINE> def set_jds(self, val1, val2): <NEW_LINE> <INDENT> self._check_scale(self._scale) <NEW_LINE> self.jd1, self.jd2 = day_frac(val1, val2) <NEW_LINE> <DEDENT> @property <NEW_LINE> def value(self): <NEW_LINE> <INDENT> return self.jd1 + self.jd2 | Julian Date time format | 6259900615fb5d323ce7f883 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.