code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TestAnnotationSet(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testAnnotationSet(self): <NEW_LINE> <INDENT> pass
AnnotationSet unit test stubs
62598fcfa05bb46b3848ac87
class ReverseHandler(tornado.web.RequestHandler): <NEW_LINE> <INDENT> def get(self, input): <NEW_LINE> <INDENT> self.write(input[::-1])
docstring for ReverseHandler
62598fcf656771135c489a8c
class TipWxCallbackHandler(BaseHandler): <NEW_LINE> <INDENT> async def post(self): <NEW_LINE> <INDENT> jsonObj = parseWeixin(self.request.body.decode('utf-8'),['result_code','return_code','time_end','out_trade_no']) <NEW_LINE> print(jsonObj) <NEW_LINE> print('wxpay/wx_callback') <NEW_LINE> if jsonObj['return_code']=='S...
@api {post} /v1.0/tip/wxpay/wx_callback 微信支付腾讯回调 @apiGroup order @apiVersion 1.0.0 @apiDescription 微信支付回调 @apiPermission user
62598fcf3617ad0b5ee06564
class AsyncSerial(serial.Serial): <NEW_LINE> <INDENT> async def read(self, n=None) -> bytes: <NEW_LINE> <INDENT> take_all = n is None <NEW_LINE> if take_all: n = 1 <NEW_LINE> while self.in_waiting < n: <NEW_LINE> <INDENT> await asyncio.sleep(0.05) <NEW_LINE> <DEDENT> if take_all: n = self.in_waiting <NEW_LINE> return s...
Simple wrapper of Serial, that provides an async api
62598fcfad47b63b2c5a7c77
class Variable(): <NEW_LINE> <INDENT> def __init__(self, name="", value=0, type="numeric"): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._value = value <NEW_LINE> self._type = type <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._name <NEW_LINE> <DEDENT> @name.setter <N...
Clase base para los diferentes tipos de variables que puede soportar un Objeto
62598fcfd8ef3951e32c806a
class Sge(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.template_path = os.path.dirname(os.path.abspath(__file__)) <NEW_LINE> self.template_environment = Environment( autoescape=False, loader=FileSystemLoader(os.path.join(self.template_path, 'templates')), trim_blocks=False) <NEW_LINE> <DEDE...
NAME Sge -- A SGE class for parallel job submission SYNOPSIS hpc = Sge() DESCRIPTION The Sun Grid Engine (SGE) can be used to run parallel jobs across numerous nodes and cores across a network. The Sge module provides APIs and wrappers for handling routine tasks that are typically performed on th...
62598fcfa05bb46b3848ac89
class ShootSearch(object): <NEW_LINE> <INDENT> MAX_STEP = 120 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.strat = ShootExpe() <NEW_LINE> team1 = SoccerTeam("test") <NEW_LINE> team1.add("Expe",RandomStrategy()) <NEW_LINE> team2 = SoccerTeam("test2") <NEW_LINE> team2.add("Nothing",GardienStrategy()) <NEW_LINE...
nombre d'iterations maximales jusqu'a l'arret d'un round discr_step : pas de discretisation du parametre nb_essais : nombre d'essais par parametre
62598fcfa219f33f346c6c23
class ShellyBlock(RestoreEntity): <NEW_LINE> <INDENT> def __init__(self, block, instance, prefix=""): <NEW_LINE> <INDENT> conf = instance.conf <NEW_LINE> id_prefix = conf.get(CONF_OBJECT_ID_PREFIX) <NEW_LINE> self._unique_id = slugify(id_prefix + "_" + block.type + "_" + block.id + prefix) <NEW_LINE> self.entity_id = "...
Base class for Shelly entities
62598fcf5fdd1c0f98e5e3aa
class CTD_ANON_14 (pyxb.binding.basis.complexTypeDefinition): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = None <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('/tmp/tmpHOdu...
Complex type [anonymous] with content type ELEMENT_ONLY
62598fcf4527f215b58ea2ec
class sitetree_childrenNode(template.Node): <NEW_LINE> <INDENT> def __init__(self, tree_item, navigation_type, use_template): <NEW_LINE> <INDENT> self.use_template = use_template <NEW_LINE> self.tree_item = tree_item <NEW_LINE> self.navigation_type = navigation_type <NEW_LINE> <DEDENT> def render(self, context): <NEW_L...
Renders tree items under specified parent site tree item.
62598fcf091ae35668705049
class Position(models.Model): <NEW_LINE> <INDENT> name: 'models.CharField[str, str]' = models.CharField( 'Должность', max_length=50, ) <NEW_LINE> department: 'models.ForeignKey[Department, str]' = models.ForeignKey( to=Department, verbose_name='Отдел', on_delete=models.DO_NOTHING, blank=True, null=True, ) <NEW_LINE> de...
`Должность` сотрудника.
62598fcf71ff763f4b5e7ba0
class RelLink(object): <NEW_LINE> <INDENT> def __init__(self, rel=None, href=None): <NEW_LINE> <INDENT> self.swagger_types = { 'rel': 'str', 'href': 'str' } <NEW_LINE> self.attribute_map = { 'rel': 'rel', 'href': 'href' } <NEW_LINE> self._rel = rel <NEW_LINE> self._href = href <NEW_LINE> <DEDENT> @property <NEW_LINE> d...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fcf97e22403b383b327
class ExtendedReadWritableBag(Bag, _ExtendedReadWritableMixin): <NEW_LINE> <INDENT> def __init__(self, bagpath): <NEW_LINE> <INDENT> super(ExtendedReadWritableBag, self).__init__(bagpath) <NEW_LINE> self._extend(bagpath) <NEW_LINE> <DEDENT> def _extend(self, bagdir): <NEW_LINE> <INDENT> _ExtendedReadWritableMixin.__ini...
A Bag with an extended interface.
62598fcf4527f215b58ea2ee
class MRI10yr06mo01da_normal(ChrisApp): <NEW_LINE> <INDENT> AUTHORS = 'FNNDSC (dev@babyMRI.org)' <NEW_LINE> SELFPATH = os.path.dirname(os.path.abspath(__file__)) <NEW_LINE> SELFEXEC = os.path.basename(__file__) <NEW_LINE> EXECSHELL = 'python3' <NEW_LINE> TITLE...
This application simply copies from embedded data a reference normal anonymized MRI of a subject aged 10 years, 06 months, 01 days..
62598fcfbe7bc26dc9252069
class AlphaDivDisplayModule(SampleToolDisplayModule): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def required_tool_results(): <NEW_LINE> <INDENT> return [AlphaDiversityResultModule] <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def name(cls): <NEW_LINE> <INDENT> return MODULE_NAME <NEW_LINE> <DEDENT> @classmethod <NEW_...
Alpha Diversity display module.
62598fcf9f28863672818a8d
class PathMapping(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Path = None <NEW_LINE> self.Environment = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Path = params.get("Path") <NEW_LINE> self.Environment = params.get("Environment")
Custom domain name path mapping.
62598fcf60cbc95b0636475e
class DcvValidator(Validator): <NEW_LINE> <INDENT> def _validate(self, instance_type, dcv_enabled, allowed_ips, port, os, architecture: str): <NEW_LINE> <INDENT> if dcv_enabled: <NEW_LINE> <INDENT> allowed_oses = get_supported_dcv_os(architecture) <NEW_LINE> if os not in allowed_oses: <NEW_LINE> <INDENT> self._add_fail...
DCV parameters validators. Validate instance type, architecture and os when DCV is enabled.
62598fcf71ff763f4b5e7ba4
class Hermes(object): <NEW_LINE> <INDENT> backend = None <NEW_LINE> mangler = None <NEW_LINE> cachedClass = None <NEW_LINE> ttl = 3600 <NEW_LINE> def __init__(self, backendClass = AbstractBackend, manglerClass = Mangler, cachedClass = Cached, **kwargs): <NEW_LINE> <INDENT> self.ttl = kwargs.pop('ttl', self.ttl) <NEW_LI...
Cache facade. Usage: import hermes.backend.redis cache = hermes.Hermes(hermes.backend.redis.Backend, ttl = 600, host = 'localhost', db = 1) @cache def foo(a, b): return a * b class Example: @cache(tags = ('math', 'power'), ttl = 1200) def bar(self, a, b): return a ** b @cache(tags = ('math', 'avg'), ...
62598fcfdc8b845886d539e0
class ServerCommand(_SimpleCommand): <NEW_LINE> <INDENT> NAME = "SERVER"
Sent by the server on new connection and includes the server_name. Format:: SERVER <server_name>
62598fcf97e22403b383b32b
class Extension(object): <NEW_LINE> <INDENT> dist_name = None <NEW_LINE> ext_name = None <NEW_LINE> version = None <NEW_LINE> def get_default_config(self): <NEW_LINE> <INDENT> raise NotImplementedError( 'Add at least a config section with "enabled = true"') <NEW_LINE> <DEDENT> def get_config_schema(self): <NEW_LINE> <I...
Base class for Mopidy extensions
62598fcf5fdd1c0f98e5e3b0
class UndoLine: <NEW_LINE> <INDENT> def Activated(self): <NEW_LINE> <INDENT> if (FreeCAD.activeDraftCommand != None): <NEW_LINE> <INDENT> if (FreeCAD.activeDraftCommand.featureName == "Line"): <NEW_LINE> <INDENT> FreeCAD.activeDraftCommand.undolast() <NEW_LINE> <DEDENT> <DEDENT> <DEDENT> def GetResources(self): <NEW_LI...
a FreeCAD command to undo last drawn segment of a line
62598fcf5fcc89381b26635e
class Status(colander.SequenceSchema): <NEW_LINE> <INDENT> status = colander.SchemaNode(colander.String(), validator=colander.OneOf(list(UpdateStatus.values())))
A SequenceSchema to validate a list of Update status objects.
62598fcffbf16365ca7944e0
class GCMove(Move): <NEW_LINE> <INDENT> parse_mover = staticmethod(None) <NEW_LINE> print_mover = staticmethod(None) <NEW_LINE> def __init__(self, pfreq, rmin, movers): <NEW_LINE> <INDENT> self.pfreq = pfreq <NEW_LINE> self.rmin = rmin <NEW_LINE> self.movers = movers <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <I...
Grand Canonical insertions have an extra minimum insertion distance parameter cf standard MCMove types
62598fcf099cdd3c636755f1
class EnhancedProgressBar(ProgressBar): <NEW_LINE> <INDENT> def render_progress(self): <NEW_LINE> <INDENT> if not self.is_hidden: <NEW_LINE> <INDENT> return super(EnhancedProgressBar, self).render_progress()
Enhanced progressbar ensuring that nothing is displayed when the bar is hidden.
62598fcfbe7bc26dc925206b
class UKPostcodeField(RegexField): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(UKPostcodeField, self).__init__(r'^(GIR 0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HIK-Y][0-9](|[0-9]|[ABEHMNPRVWXY]))|[0-9][A-HJKSTUW]) [0-9][ABD-HJLNP-UW-Z]{2})$', max_length=None, min_length=None, error_message=...
A form field that validates its input is a UK postcode. The regular expression used is sourced from the schema for British Standard BS7666 address types: http://www.govtalk.gov.uk/gdsc/schemas/bs7666-v2-0.xsd
62598fcfadb09d7d5dc0a99f
class IamRoleInvalidArgumentsError(Exception): <NEW_LINE> <INDENT> pass
Invalid arguments were used to create a role or trust policy.
62598fcf0fa83653e46f530c
class ServiceOrchestrator(object): <NEW_LINE> <INDENT> def __init__(self, token, tenant): <NEW_LINE> <INDENT> self.provision_event = threading.Event() <NEW_LINE> self.destroy_event = threading.Event() <NEW_LINE> self.so_e = SOE(token=token, tenant=tenant, ready_event=self.provision_event, destroy_event=self.destroy_eve...
Sample SO.
62598fcf97e22403b383b32d
class PositionwiseFeedForward(nn.Module): <NEW_LINE> <INDENT> def __init__(self, size, hidden_size, dropout=0.1): <NEW_LINE> <INDENT> super(PositionwiseFeedForward, self).__init__() <NEW_LINE> self.w_1 = onmt.modules.BottleLinear(size, hidden_size) <NEW_LINE> self.w_2 = onmt.modules.BottleLinear(hidden_size, size) <NEW...
A two-layer Feed-Forward-Network.
62598fcfcc40096d6161a3ea
class ResourceManager: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.fonts = {} <NEW_LINE> self.tiles = {} <NEW_LINE> self.init_tiles("res/imgs/tile_resources.png") <NEW_LINE> self.finishedLoading = True <NEW_LINE> <DEDENT> def init_tiles(self, fn): <NEW_LINE> <INDENT> self.tilesMap = pygame.image.lo...
The resource man(ager). Tracks all the resources and provides references to them for all the other classes to use (and draw). Must be initialized and linked at the start of the program.
62598fcf4c3428357761a6e4
class cmd_domain_pwdsettings_pso_show(Command): <NEW_LINE> <INDENT> synopsis = "%prog <psoname> [options]" <NEW_LINE> takes_optiongroups = { "sambaopts": options.SambaOptions, "versionopts": options.VersionOptions, "credopts": options.CredentialsOptions, } <NEW_LINE> takes_options = [ Option("-H", "--URL", help="LDB UR...
Display a Password Settings Object's details.
62598fcf7cff6e4e811b5e4e
class StopCond(Protocol): <NEW_LINE> <INDENT> def __call__(self, *, iterations: int, objectives: th.Tensor) -> th.Tensor: ...
A callable protocol that determines whether to stop optimization or not.
62598fcf50812a4eaa620df7
class Field(ElemWise): <NEW_LINE> <INDENT> __slots__ = '_hash', '_child', '_name' <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> if re.match('^\w+$', self._name): <NEW_LINE> <INDENT> return '%s.%s' % (self._child, self._name) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return "%s['%s']" % (self._child, self._name)...
A single field from an expression Get a single field from an expression with record-type schema. Collapses that record. We store the name of the field in the ``_name`` attribute. SELECT a FROM table >>> points = symbol('points', '5 * 3 * {x: int32, y: int32}') >>> points.x.dshape dshape("5 * 3 * int32")
62598fcfbe7bc26dc925206c
@OFPInstruction.register_instruction_type([ofproto_v1_3.OFPIT_GOTO_TABLE]) <NEW_LINE> class OFPInstructionGotoTable(StringifyMixin): <NEW_LINE> <INDENT> def __init__(self, table_id, type_=None, len_=None): <NEW_LINE> <INDENT> super(OFPInstructionGotoTable, self).__init__() <NEW_LINE> self.type = ofproto_v1_3.OFPIT_GOTO...
Goto table instruction This instruction indicates the next table in the processing pipeline. ================ ====================================================== Attribute Description ================ ====================================================== table_id Next table ================ =======...
62598fcf956e5f7376df5891
class Context: <NEW_LINE> <INDENT> def __init__(self, logger=logger, obj=None): <NEW_LINE> <INDENT> self.logger = logger <NEW_LINE> self.exceptions = [] <NEW_LINE> self.obj = obj
will be passed to all `coroutine`s in the pipeline `Context` object is a common object shared by all coroutines in the pipeline. attributes: + `exceptions` is a list which remains empty until an exception occurs within a `task` and is handled by the module. Then `exception` contains each exception caught by the ...
62598fcf3617ad0b5ee06570
class LcarsTabLeft(LcarsWidget): <NEW_LINE> <INDENT> def __init__(self, colour, pos, handler = None, rectSize = None): <NEW_LINE> <INDENT> if rectSize == None: <NEW_LINE> <INDENT> image = pygame.image.load("assets/tab.png").convert() <NEW_LINE> size = (image.get_rect().width, image.get_rect().height) <NEW_LINE> <DEDENT...
Left-hand Tab widget (like radio button) (21x16) - implemented in PiCorder v0.1
62598fcfcc40096d6161a3eb
class S3QuestionTypeOptionOtherWidget(S3QuestionTypeOptionWidget): <NEW_LINE> <INDENT> def __init__(self, question_id = None ): <NEW_LINE> <INDENT> T = current.T <NEW_LINE> S3QuestionTypeOptionWidget.__init__(self, question_id) <NEW_LINE> self.typeDescription = T("Option Other") <NEW_LINE> <DEDENT> def getList(self): <...
Option Question Type widget with a final other option attached provides a widget for the survey module that will manage simple yes no questions. Available metadata for this class: Help message: A message to help with completing the question Length: The number of options #: A number one for each optio...
62598fcf7cff6e4e811b5e50
class BlogMigrationView(BrowserView): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> self.has_blog_entries = len(self.blog_entries()) > 0 <NEW_LINE> return self.render() <NEW_LINE> <DEDENT> def render(self): <NEW_LINE> <INDENT> return self.index() <NEW_LINE> <DEDENT> def blog_entries(self): <NEW_LINE> <IND...
Migrate blog content Move blog entries to folderish blog posting content types and transfer the associated images to the folder content
62598fcf283ffb24f3cf3cae
class game_engine(): <NEW_LINE> <INDENT> def game_is_over(self): <NEW_LINE> <INDENT> return False
game_engine class will contain any game logic or attributes to drive the flow of the game and its rules
62598fcf377c676e912f6f8d
class RewriteIO(io.RawIOBase): <NEW_LINE> <INDENT> def __init__(self, src, dest, buf=None): <NEW_LINE> <INDENT> io.RawIOBase.__init__(self) <NEW_LINE> self._src = src <NEW_LINE> self._dest = dest <NEW_LINE> if not buf: <NEW_LINE> <INDENT> buf = [] <NEW_LINE> <DEDENT> self._buf = buf <NEW_LINE> <DEDENT> def readinto(sel...
Raw I/O implementation for stream sockets. It provides the raw I/O interface on top of a socket object. Backported from python 3.
62598fcfab23a570cc2d4f82
class ContentTypeGb2312Middleware(object): <NEW_LINE> <INDENT> def process_response(self, request, response, spider): <NEW_LINE> <INDENT> response.headers['Content-Type'] = 'text/html; charset=gb2312' <NEW_LINE> return response
处理不规范的页面(优先级降低至580之后才能生效) 原因: 默认配置的 DOWNLOADER_MIDDLEWARES 包含 MetaRefreshMiddleware 当请求页面存在如 Content-Location 类似的 header 时, 会触发重定向请求 指定 Content-Type 为 gb2312
62598fcfa219f33f346c6c2f
@instancedoc <NEW_LINE> class ExpectElement(InterfaceElement): <NEW_LINE> <INDENT> def __init__(self, parent, value, is_name=False, name=None): <NEW_LINE> <INDENT> RingElement.__init__(self, parent) <NEW_LINE> self._create = value <NEW_LINE> if parent is None: return <NEW_LINE> if isinstance(value, string_types) and pa...
Expect element.
62598fcffbf16365ca7944e6
class VolumeGroupPost(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'str', 'name': 'str', 'destroyed': 'bool', 'qos': 'Qos', 'priority_adjustment': 'PriorityAdjustment', 'space': 'Space', 'time_remaining': 'int', 'volume_count': 'int' } <NEW_LINE> attribute_map = { 'id': 'id', 'name': 'name', 'destroyed': 'destr...
Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition.
62598fcf71ff763f4b5e7bac
class POWER_SEQUENCER_OT_preview_to_selection(bpy.types.Operator): <NEW_LINE> <INDENT> doc = { "name": doc_name(__qualname__), "demo": "https://i.imgur.com/EV1sUrn.gif", "description": doc_description(__doc__), "shortcuts": [ ({"type": "P", "value": "PRESS", "ctrl": True, "alt": True}, {}, "Preview To Selection") ], "k...
*brief* Sets the timeline preview range to match the selection Sets the scene frame start to the earliest frame start of selected sequences and the scene frame end to the last frame of selected sequences. Uses all sequences in the current context if no sequences are selected.
62598fcf7cff6e4e811b5e52
class MyYandex(Yandex): <NEW_LINE> <INDENT> params = { 'webvisor': True, 'clickmap': True, 'track_links': True, 'accurate_bounce': True, 'no_index': False, 'track_hash': False, 'xml': False, 'user_params': False, }
Модифицированный класс управления счётчиком. Подключаем некоторые плюшки из тех, что умеет счётчик.
62598fcf3d592f4c4edbb2df
class DatabaseLibrary(ConnectionManager, Query, Assertion): <NEW_LINE> <INDENT> ROBOT_LIBRARY_SCOPE = 'GLOBAL'
Database Library contains utilities meant for Robot Framework's usage. This can allow you to query your database after an action has been made to verify the results. This is `compatible*` with any Database API Specification 2.0 module. References: + Database API Specification 2.0 - http://www.python.org/dev/peps...
62598fcf50812a4eaa620df9
class Test_arrayexpress_files(unittest.TestCase): <NEW_LINE> <INDENT> def test_new_accessions_1(self): <NEW_LINE> <INDENT> ref_acc = ['E-GEOD-42314', 'E-GEOD-51468', 'E-GEOD-55234', 'E-GEOD-50778', 'E-GEOD-30583'] <NEW_LINE> test_acc = new_accessions() <NEW_LINE> self.assertEqual(ref_acc, test_acc) <NEW_LINE> <DEDENT> ...
Test the functions from the arrayexpress_files script.
62598fcfbe7bc26dc925206e
class Meta: <NEW_LINE> <INDENT> model = Ticket <NEW_LINE> fields = ( "original", ) <NEW_LINE> widgets = { "original": Select(attrs={ "class": "form-control select2", }), }
TicketDuplicationForm Meta class
62598fcfec188e330fdf8cc1
class IntersectionVolume(VolumeCombination): <NEW_LINE> <INDENT> def __init__(self, volume1, volume2): <NEW_LINE> <INDENT> super(IntersectionVolume, self).__init__( volume1=volume1, volume2=volume2, fnc=lambda a, b: a and b, str_fnc='{0} and {1}' )
"And" combination (intersection) of two volumes.
62598fcfd8ef3951e32c8071
class SetQuota(command.Command): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.SetQuota') <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(SetQuota, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'project', metavar='<project/class>', help='Set quotas for this projec...
Set quotas for project or class
62598fcf5fcc89381b266362
class PageManager(PublisherManager): <NEW_LINE> <INDENT> def get_query_set(self): <NEW_LINE> <INDENT> return PageQuerySet(self.model) <NEW_LINE> <DEDENT> def on_site(self, site=None): <NEW_LINE> <INDENT> return self.get_query_set().on_site(site) <NEW_LINE> <DEDENT> def root(self): <NEW_LINE> <INDENT> return self.get_qu...
Use draft() and public() methods for accessing the corresponding instances.
62598fcf4c3428357761a6ea
class Muscle(Element): <NEW_LINE> <INDENT> def __init__( self, ): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._attribute_names = []
All muscle attributes are available here except: name, class, joint, jointinparent, site, tendon, slidersite, cranksite.
62598fcf091ae35668705057
class BaseCaptchaTextInput(MultiWidget): <NEW_LINE> <INDENT> def __init__(self, attrs=None): <NEW_LINE> <INDENT> widgets = ( HiddenInput(attrs), TextInput(attrs), ) <NEW_LINE> super(BaseCaptchaTextInput, self).__init__(widgets, attrs) <NEW_LINE> <DEDENT> def decompress(self, value): <NEW_LINE> <INDENT> if value: <NEW_L...
Base class for Captcha widgets
62598fcfbf627c535bcb18d9
class Solution: <NEW_LINE> <INDENT> def middleNode(self, head): <NEW_LINE> <INDENT> fast, slow = head, head <NEW_LINE> while fast: <NEW_LINE> <INDENT> fast = fast.next <NEW_LINE> if not fast: <NEW_LINE> <INDENT> break <NEW_LINE> <DEDENT> fast = fast.next <NEW_LINE> if not fast: <NEW_LINE> <INDENT> break <NEW_LINE> <DED...
@param head: the head of linked list. @return: a middle node of the linked list
62598fcfbe7bc26dc925206f
class DjangoTestCase(FreshenTestCase, TestCase): <NEW_LINE> <INDENT> def __init__(self, step_runner, step_registry, feature, scenario, feature_suite): <NEW_LINE> <INDENT> FreshenTestCase.__init__(self, step_runner, step_registry, feature, scenario, feature_suite) <NEW_LINE> TestCase.__init__(self, scenario.name) <NEW_L...
Support Django tests.
62598fcfadb09d7d5dc0a9a7
class Command(BaseCommand): <NEW_LINE> <INDENT> help = 'Trains the database used by the chat bot' <NEW_LINE> can_import_settings = True <NEW_LINE> def handle(self, *args, **options): <NEW_LINE> <INDENT> from chatterbot import ChatBot <NEW_LINE> from chatterbot.ext.django_chatterbot import settings <NEW_LINE> from chatt...
A Django management command for calling a chat bot's training method.
62598fcfec188e330fdf8cc3
class NewPost(BlogHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> if self.user: <NEW_LINE> <INDENT> self.render("newpost.html") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.redirect("/login") <NEW_LINE> <DEDENT> <DEDENT> def post(self): <NEW_LINE> <INDENT> if not self.user: <NEW_LINE> <INDENT> se...
renders the new post page
62598fcfa219f33f346c6c33
class Solution: <NEW_LINE> <INDENT> def lengthOfLongestSubstring(self, s: str) -> int: <NEW_LINE> <INDENT> res = 0 <NEW_LINE> pos = {} <NEW_LINE> pre = -1 <NEW_LINE> for i, v in enumerate(s): <NEW_LINE> <INDENT> pre = max(pre, pos[v] if v in pos else -1) <NEW_LINE> res = max(res, i - pre) <NEW_LINE> pos[v] = i <NEW_LIN...
parameters ---------- res: (best) result (so far) pos: position where character appeared last pre: prehead (one step before head) of current substring
62598fcf091ae35668705059
class IsAdmin(MyBaseHandler): <NEW_LINE> <INDENT> @token_required() <NEW_LINE> @my_async_jsonp <NEW_LINE> async def get(self): <NEW_LINE> <INDENT> user = self.get_current_session_user() <NEW_LINE> grp_rel = await UserGrpRel.objects.get(user=user) <NEW_LINE> if grp_rel is None: <NEW_LINE> <INDENT> res = dict( result=Fal...
是否是管理员
62598fcfff9c53063f51aa7a
class DataScope(Serializable): <NEW_LINE> <INDENT> def __init__(self, query=None, **kwargs): <NEW_LINE> <INDENT> self._query = None <NEW_LINE> self.query = query <NEW_LINE> <DEDENT> @property <NEW_LINE> def query(self): <NEW_LINE> <INDENT> return self._query <NEW_LINE> <DEDENT> @query.setter <NEW_LINE> def query(self, ...
Query to against data.
62598fcf283ffb24f3cf3cb4
class BaseClassProperties(type): <NEW_LINE> <INDENT> @wraps(type.__init__) <NEW_LINE> def __init__(cls, *args, **kwargs): <NEW_LINE> <INDENT> from weakref import WeakSet <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> cls._instances = WeakSet() <NEW_LINE> <DEDENT> @property <NEW_LINE> def instances(cls): <NEW_L...
Create a metaclass which has an instances property
62598fcf60cbc95b0636476c
class SSHHandler: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def connect(self, remote): <NEW_LINE> <INDENT> result_successful, result_message = True, '' <NEW_LINE> for host, username, password in [conn for conn in CONNECTION_LIST]: <NEW_LINE> <INDENT> if host == remote: <NEW_LI...
Handle SSH connections and remote command executions.
62598fcf9f28863672818a94
class RPC_Server(rpc_common.RPCShellCommon): <NEW_LINE> <INDENT> NAME = 'Generic RPC Service' <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> rpc_common.RPCShellCommon.__init__(self, *args, **kwargs) <NEW_LINE> self.get_credentials() <NEW_LINE> self.get_connection() <NEW_LINE> self.get_channel() <NE...
RPC Server object to be extended by RPC servers.
62598fcfab23a570cc2d4f85
class AccountViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> lookup_field = 'username' <NEW_LINE> queryset = Account.objects.all() <NEW_LINE> serializer_class = AccountSerializer <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> user = self.request.user <NEW_LINE> return Account.objects.filter(id=user.id) <NEW...
Primary controller for all REST actions on our Account model (i.e. out primary user model) Automatically provides GET/POST/PUT/DELETE, though we override POST and PUT with custom behavior.
62598fcffbf16365ca7944ec
class ResetMixin(object): <NEW_LINE> <INDENT> def reset(self): <NEW_LINE> <INDENT> instdict = self.__dict__ <NEW_LINE> classdict = self.__class__.__dict__ <NEW_LINE> for mname, mval in classdict.items(): <NEW_LINE> <INDENT> if mname in instdict and isinstance(mval, OneTimeProperty): <NEW_LINE> <INDENT> delattr(self, mn...
A Mixin class to add a .reset() method to users of OneTimeProperty. By default, auto attributes once computed, become static. If they happen to depend on other parts of an object and those parts change, their values may now be invalid. This class offers a .reset() method that users can call *explicitly* when they kn...
62598fcf091ae3566870505b
class ThrottlingMiddleware(BaseMiddleware): <NEW_LINE> <INDENT> def __init__(self, limit=DEFAULT_RATE_LIMIT, key_prefix='antiflood_'): <NEW_LINE> <INDENT> self.rate_limit = limit <NEW_LINE> self.prefix = key_prefix <NEW_LINE> super(ThrottlingMiddleware, self).__init__() <NEW_LINE> <DEDENT> async def on_process_message(...
Simple middleware
62598fcfbf627c535bcb18dd
class Polynomial(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.terms = {} <NEW_LINE> <DEDENT> def add_term(self, term): <NEW_LINE> <INDENT> key = term.as_tuple() <NEW_LINE> if key in self.terms: <NEW_LINE> <INDENT> self.terms[key].koeff += term.koeff <NEW_LINE> <DEDENT> else: <NEW_LINE> <IND...
Реализует выражение вида 3x^2y+5zy^3
62598fcf8a349b6b43686671
class FileStorageSettings(Settings): <NEW_LINE> <INDENT> _IMPL_TYPE: ClassVar[str] = "implementation" <NEW_LINE> _KEY: ClassVar[str] = "file_storage" <NEW_LINE> @property <NEW_LINE> def impl_type(self) -> ImplementationType: <NEW_LINE> <INDENT> return self._impl_type <NEW_LINE> <DEDENT> @impl_type.setter <NEW_LINE> def...
specialized file storage settings class
62598fcf50812a4eaa620dfc
class EditProfileAdminForm(FlaskForm): <NEW_LINE> <INDENT> email = StringField('Email', validators=[DataRequired(), Length(1, 64), Email()]) <NEW_LINE> username = StringField('Username', validators=[DataRequired(), Length(1, 64), Regexp('^[A-Za-z][A-Za-z0-9_.]*$', 0, 'Usernames must have only letters, ' 'numbers, dots ...
管理员编辑用户资料的表单
62598fcf7cff6e4e811b5e58
class ISEOFieldsMarker(Interface): <NEW_LINE> <INDENT> pass
Marker interface that will be provided by instances using the ISeoFields behavior.
62598fcf5fdd1c0f98e5e3be
class MinimaxAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> def MinMax(gameState , depth , AgentIndex ): <NEW_LINE> <INDENT> if gameState.isWin() or gameState.isLose() or depth==0: <NEW_LINE> <INDENT> return self.evaluationFunction(gameState) <NEW_LINE> <DEDENT> if...
Your minimax agent (question 2)
62598fcf5fcc89381b266365
class allow_http(object): <NEW_LINE> <INDENT> def __init__(self, *methods): <NEW_LINE> <INDENT> self.methods = methods <NEW_LINE> <DEDENT> def __call__(self, func): <NEW_LINE> <INDENT> def inner(request, *args, **kwargs): <NEW_LINE> <INDENT> if request.method not in self.methods: <NEW_LINE> <INDENT> return HttpResponse...
use like @allow_http("GET", "POST") def my_view_handler(request, ...): ...
62598fcf4c3428357761a6f0
class SQLType: <NEW_LINE> <INDENT> TYPE_MAP = { int: "INTEGER", float: "REAL", str: "TEXT", } <NEW_LINE> def __init__(self, type_constructor, *, sql_type=None, not_null=False): <NEW_LINE> <INDENT> self.type_constructor = type_constructor <NEW_LINE> self._sql_type = ( sql_type if sql_type is not None else SQLType.TYPE_M...
Base class for custom sqlite schema types.
62598fcf3d592f4c4edbb2e7
class FTPService(IngestService): <NEW_LINE> <INDENT> DATE_FORMAT = '%Y%m%d%H%M%S' <NEW_LINE> FILE_SUFFIX = '.xml' <NEW_LINE> def config_from_url(self, url): <NEW_LINE> <INDENT> url_parts = urlparse(url) <NEW_LINE> return { 'username': url_parts.username, 'password': url_parts.password, 'host': url_parts.hostname, 'path...
FTP Ingest Service.
62598fcf3346ee7daa337860
class Function(): <NEW_LINE> <INDENT> def __init__(self, ret_val, function, body, doxygen=None, static=False, explicit=False, virtual=False, split=True): <NEW_LINE> <INDENT> self.ret_val = ret_val <NEW_LINE> self.function = function <NEW_LINE> self.body = body <NEW_LINE> self.doxygen = doxygen <NEW_LINE> self.static = ...
A C++ Function
62598fcf656771135c489aa4
class NipapAuthError(NipapError): <NEW_LINE> <INDENT> pass
General NIPAP AAA error
62598fcfd8ef3951e32c8075
class tm_get_ppg_usage_result: <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRUCT, 'success', (tm_ppg_usage_t, tm_ppg_usage_t.thrift_spec), None, ), (1, TType.STRUCT, 'ouch', (InvalidTmOperation, InvalidTmOperation.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, success=None, ouch=None,): <NEW_LINE> <INDENT> s...
Attributes: - success - ouch
62598fcfad47b63b2c5a7c8e
class VirtualMachineIdentity(Model): <NEW_LINE> <INDENT> _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'principal_id': {'key': 'principalId', 'type': 'str'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, 'type': {'key': 'type', 'type': 'ResourceI...
Identity for the virtual machine. Variables are only populated by the server, and will be ignored when sending a request. :ivar principal_id: The principal id of virtual machine identity. :vartype principal_id: str :ivar tenant_id: The tenant id associated with the virtual machine. :vartype tenant_id: str :param type...
62598fcf4c3428357761a6f2
class Reddit(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.posts = TTLOrderedDict(default_ttl=TTL) <NEW_LINE> self.notifications = [] <NEW_LINE> self.logger = Logger() <NEW_LINE> <DEDENT> def fetch_latest_posts(self): <NEW_LINE> <INDENT> self.notifications = [] <NEW_LINE> self.logger.log.inf...
Class to define reddit instance
62598fcf091ae3566870505f
class Day03Tests(unittest.TestCase): <NEW_LINE> <INDENT> def test_solve_part_one_solves_the_puzzle_correctly(self): <NEW_LINE> <INDENT> data = [ "#1 @ 1,3: 4x4", "#2 @ 3,1: 4x4", "#3 @ 5,5: 2x2", ] <NEW_LINE> day = Day03(data) <NEW_LINE> self.assertEqual(day.solve_part_one(), 4) <NEW_LINE> <DEDENT> def test_solve_part_...
Tests for `Day03`.
62598fcf71ff763f4b5e7bb6
class itkImageCVF22(itkImageBase2): <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") <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> ImageDimension = _itk...
Proxy of C++ itkImageCVF22 class
62598fcf3d592f4c4edbb2e9
class EvalMetric(object): <NEW_LINE> <INDENT> def __init__(self, name, output_names=None, label_names=None, **kwargs): <NEW_LINE> <INDENT> super(EvalMetric, self).__init__() <NEW_LINE> self.name = str(name) <NEW_LINE> self.output_names = output_names <NEW_LINE> self.label_names = label_names <NEW_LINE> self._has_global...
Base class for all evaluation metrics. Parameters: ---------- name : str Name of this metric instance for display. output_names : list of str, or None, default None Name of predictions that should be used when updating with update_dict. By default include all predictions. label_names : list of str, or None...
62598fcfd8ef3951e32c8076
class ListAddable(ListArgs): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def add(self, list_or_not): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.extend(list_or_not) <NEW_LINE> <DEDENT> except TypeError: <NEW_LINE> <INDENT> self.append(list_or_not) <NEW_LINE> <DEDENT> return self <NEW_LINE> <DEDENT> def radd(sel...
list addable (add(+) = extend or append)
62598fcffbf16365ca7944f2
class DynamicCollectionAdapter(object): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return iter(self.data) <NEW_LINE> <DEDENT> def _reset_empty(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __len__(self): <NEW_L...
simplified CollectionAdapter for internal API consistency
62598fcf4527f215b58ea304
class PrivateTagsApiTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.user = get_user_model().objects.create_user( 'test@londonappdev.com', 'password' ) <NEW_LINE> self.client = APIClient() <NEW_LINE> self.client.force_authenticate(self.user) <NEW_LINE> <DEDENT> def test_retrieve_tags(self)...
Test the authorized user tags API
62598fcf50812a4eaa620dff
class GetInputMock(mock.Mock): <NEW_LINE> <INDENT> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> if args: <NEW_LINE> <INDENT> print(args[0], end='') <NEW_LINE> <DEDENT> return_value = super().__call__(*args, **kwargs) <NEW_LINE> print(return_value) <NEW_LINE> return return_value
A mock get_input object. This object is meant to mock the :func:`plugins.utils.get_input` function. On top of returning the value you want it to return, it also prints the first argument it was called with followed by the return value. As can be seen in the example below, this replicates the printing behavior of the :...
62598fcf60cbc95b06364774
class PublicRecipeApiTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = APIClient() <NEW_LINE> <DEDENT> def test_auth_required(self): <NEW_LINE> <INDENT> res = self.client.get(RECIPES_URL) <NEW_LINE> self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)
Test unauthotenticated recipe API access
62598fcfec188e330fdf8ccd
class JSONResponseError(BotoServerError): <NEW_LINE> <INDENT> def __init__(self, status, reason, body=None, *args): <NEW_LINE> <INDENT> self.status = status <NEW_LINE> self.reason = reason <NEW_LINE> self.body = body <NEW_LINE> if self.body: <NEW_LINE> <INDENT> self.error_message = self.body.get('message', None) <NEW_L...
This exception expects the fully parsed and decoded JSON response body to be passed as the body parameter. :ivar status: The HTTP status code. :ivar reason: The HTTP reason message. :ivar body: The Python dict that represents the decoded JSON response body. :ivar error_message: The full description of the AWS erro...
62598fcfa219f33f346c6c3d
class CustomFeaturedEntry(FeaturedEntry): <NEW_LINE> <INDENT> featured_short_title = models.CharField( _('short name'), max_length=50, blank=True, null=True, help_text=_('short title for featured entry.')) <NEW_LINE> featured_short_comment = models.CharField( _('short comment'), max_length=150, blank=True, null=True, h...
Abstract model class to mark entries as featured.
62598fcf4527f215b58ea306
class ContactForm(ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Contact <NEW_LINE> widgets = { 'description': Textarea(attrs={'cols': 23, 'rows': 3}), } <NEW_LINE> <DEDENT> def __init__(self, user, *args, **kwargs): <NEW_LINE> <INDENT> super(ContactForm, self).__init__(*args, **kwargs) <NEW_LI...
Contact ModelForm
62598fcf099cdd3c636755fb
@internationalizeDocstring <NEW_LINE> class Sudo(callbacks.Plugin): <NEW_LINE> <INDENT> def __init__(self, irc): <NEW_LINE> <INDENT> callbacks.Plugin.__init__(self, irc) <NEW_LINE> self.db = SudoDB() <NEW_LINE> self._path = os.path.join(conf.supybot.directories.data(), 'sudo.db') <NEW_LINE> if not world.testing and os....
Plugin that allows to run commands as someone else
62598fcf4a966d76dd5ef310
class MemberConfiguration(AWSProperty): <NEW_LINE> <INDENT> props: PropsDictType = { "Description": (str, False), "MemberFrameworkConfiguration": (MemberFrameworkConfiguration, False), "Name": (str, True), }
`MemberConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-memberconfiguration.html>`__
62598fcfbe7bc26dc9252075
class InitiativeInChat(BasePermission): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> chat = request.data['chat'] <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> return get_object_or_404(Chat, id=chat) in request.user.chats.all(...
Может ли загружать документы в ту команду
62598fcf283ffb24f3cf3cbf
class UserProfileSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = models.UserProfile <NEW_LINE> fields = ('id', 'email', 'name', 'password') <NEW_LINE> extra_kwargs = {'password': {'write_only': True}} <NEW_LINE> <DEDENT> def create(self, validate_data): <NEW_LINE> <I...
A Serializer for our user profile objects
62598fcf60cbc95b06364776
class Square(): <NEW_LINE> <INDENT> def __init__(self, size=0, position=(0, 0)): <NEW_LINE> <INDENT> self.size = size <NEW_LINE> self.position = position <NEW_LINE> <DEDENT> ''' Calculates the area ''' <NEW_LINE> def area(self): <NEW_LINE> <INDENT> return self.__size * self.__size <NEW_LINE> <DEDENT> @property <NEW_LIN...
Square class
62598fcf9f28863672818a99
class ADPAPIConnection(object): <NEW_LINE> <INDENT> connection = {'status': 'availabe', 'type': 'unknown', 'token': '', 'expires': '', 'sessionState': ''} <NEW_LINE> connectionConfiguration = None <NEW_LINE> userAgent = 'adp-userinfo-python/' + __version__ <NEW_LINE> def isConnectedIndicator(self): <NEW_LINE> <INDENT> ...
Base class for maintaining ADP connection status and information Instance Variables: connection: dictionary storing the connection status and access-token information connectionConfiguration: instance of the ConnectionConfiguration class that was used to instantiate the connection
62598fcf7b180e01f3e4926c
class EchoHandler(WebSocketHandler): <NEW_LINE> <INDENT> @gen.coroutine <NEW_LINE> def on_message(self, message): <NEW_LINE> <INDENT> message = json.loads(message) <NEW_LINE> delay = message.get('delay', 0) <NEW_LINE> if delay: <NEW_LINE> <INDENT> yield gen.sleep(delay) <NEW_LINE> <DEDENT> self.write_message(message)
EchoHandler is a WebSocketHandler
62598fcffbf16365ca7944f6
class RandomPhoneNumberProvider(PhoneNumberProvider): <NEW_LINE> <INDENT> def getValue(self): <NEW_LINE> <INDENT> return ''.join(str(random.randint(0, 9)) for _ in range(10))
Data provider that returns a random phone number.
62598fcf7cff6e4e811b5e62
class IndexView(HomeAssistantView): <NEW_LINE> <INDENT> url = '/' <NEW_LINE> name = 'frontend:index' <NEW_LINE> requires_auth = False <NEW_LINE> def __init__(self, repo_path, js_option): <NEW_LINE> <INDENT> self.repo_path = repo_path <NEW_LINE> self.js_option = js_option <NEW_LINE> self._template_cache = {} <NEW_LINE> ...
Serve the frontend.
62598fcf099cdd3c636755fc
class Campaign(StatableModel): <NEW_LINE> <INDENT> title = StringField(required=True) <NEW_LINE> deliveries = ListField(ReferenceField(Delivery)) <NEW_LINE> templates = ListField(ReferenceField(Template)) <NEW_LINE> currency = StringField(default=Currency.USD[0], choices=Currency.choices) <NEW_LINE> payout = FloatField...
Mongo Engine Model for campaigns
62598fd09f28863672818a9a
class Message(object): <NEW_LINE> <INDENT> _regex = r':((?P<USERNAME>[^!]+)!)?(?P<HOSTNAME>\S+)\s+(?P<ACTION>\S+)\s+:?(?P<CHANNEL>\S+)\s*(?:(?::|[+-]+)(?P<MESSAGE>.*))?' <NEW_LINE> def __init__(self, username=None, hostname=None, action=None, channel=None, msg=None): <NEW_LINE> <INDENT> self.raw_msg = "" <NEW_LINE> sel...
A standard IRC message object that will store the message details. Class attribute: `_regex`: keeps track of how to parse each message. Attributes: `raw_msg`: Given raw message `username`: Parsed out username `hostname`: Parsed out hostname `action`: Parsed out action `channel`: Parsed out cha...
62598fd0d8ef3951e32c8079