query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Get Guassian Blurred image.
def lYjW(YKHO, d6hw, Ot1W, WTkW): NMPo = XC5k.GaussianBlur(d6hw, Ot1W, WTkW) return NMPo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UWj5(LNo8):\n return XC5k.GaussianBlur(LNo8, (7, 7), 0)", "def NBjn(YKHO):\n YKHO.output_image = jbYn.GaussianBlur(YKHO.input_image, (7, 7), 0)\n return YKHO.output_image", "def BKdC(HPR0):\n VXjJ = oyIN.array(HPR0)\n kX19 = 1.5\n BqFm = XC5k.GaussianBlur(VXjJ, (11, 11), kX19)\n return...
[ "0.67379725", "0.6453411", "0.6384918", "0.638463", "0.6369016", "0.63306564", "0.6323981", "0.62652594", "0.6174803", "0.6127377", "0.60797215", "0.60621375", "0.6060138", "0.597405", "0.597405", "0.59653515", "0.59157306", "0.59091026", "0.59063816", "0.589384", "0.5880857"...
0.5439365
68
A list of instances of subclasses of cls. Instantiate wit kw and return just the classes with instantiate=False.
def Hh7E(Emd4, NN4v=True, **YSA3): q5D7 = Emd4.__subclasses__() PNOv = q5D7 + list(eNCK.from_iterable([Z9rn.__subclasses__() for Z9rn in q5D7])) for Z9rn in PNOv: assert isinstance(Z9rn.priority, int), 'type(%s . priority) = %s != int' % (repr(Z9rn), type(Z9rn.priority.name)) vvSS = sorted(PNOv,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lbzt(Emd4, znBS=False):\n bUWH = list(Emd4._instances)\n if znBS:\n for Melv in Emd4.__subclasses__():\n bUWH += Melv.get_instances(recursive=znBS)\n return list(set(bUWH))", "def wm34():\n return _gwm.get_instance_classes()", "def XHFW(Emd4):\n cB3J = list(kJjn)\n retur...
[ "0.6871181", "0.6545837", "0.6439868", "0.64320594", "0.6269298", "0.62508297", "0.62404335", "0.6205164", "0.6191548", "0.6186573", "0.61813664", "0.61344796", "0.61166656", "0.60832006", "0.605793", "0.604673", "0.6029998", "0.6024881", "0.6023906", "0.6020955", "0.6018505"...
0.7896501
0
Removes the current image pixmap from the scene if it exists.
def F17Z(YKHO): if YKHO.hasImage(): YKHO.scene.removeItem(YKHO._pixmapHandle) YKHO._pixmapHandle = None YKHO.zoom = -1 YKHO.scene.clear()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F17Z(YKHO):\n if YKHO.hasImage():\n YKHO.scene.removeItem(YKHO._image)\n YKHO._image = None", "def O3s2(YKHO):\n del YKHO.scene, YKHO.imgPixmapItem", "def X8gu(YKHO):\n YKHO.scene.clear()\n YKHO.image.fill(uaAZ.color0)", "def gnM3(YKHO):\n if YKHO.sceneItems:\n YKHO.sc...
[ "0.77999365", "0.7713607", "0.67679715", "0.67405856", "0.65732646", "0.6544404", "0.64183676", "0.6315416", "0.61870706", "0.61847377", "0.6176843", "0.6176843", "0.6145498", "0.61438185", "0.6076787", "0.60349584", "0.6034085", "0.59172475", "0.59157044", "0.5911925", "0.58...
0.7913454
0
Returns the scene's current image pixmap as a QPixmap, or else None if no image exists.
def _gO8(YKHO): if YKHO.hasImage(): return YKHO._pixmapHandle.pixmap() return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _gO8(YKHO):\n if YKHO.hasImage():\n return YKHO._image.pixmap()\n return None", "def LNo8(YKHO):\n if YKHO.hasImage():\n return YKHO._pixmapHandle.pixmap().toImage()\n return None", "def LNo8(YKHO):\n if YKHO.hasImage():\n return YKHO._image.pixmap().toImage()\n retur...
[ "0.79953897", "0.75290245", "0.74141395", "0.67934173", "0.6428947", "0.61595285", "0.6098856", "0.58280176", "0.5742987", "0.5732158", "0.5682366", "0.56738436", "0.5643078", "0.56390196", "0.5633685", "0.5633685", "0.5633685", "0.56182927", "0.5591214", "0.5585604", "0.5509...
0.7835423
1
Returns the scene's current image pixmap as a QImage, or else None if no image exists.
def LNo8(YKHO): if YKHO.hasImage(): return YKHO._pixmapHandle.pixmap().toImage() return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _gO8(YKHO):\n if YKHO.hasImage():\n return YKHO._image.pixmap()\n return None", "def LNo8(YKHO):\n if YKHO.hasImage():\n return YKHO._image.pixmap().toImage()\n return None", "def _gO8(YKHO):\n if YKHO.hasImage():\n return YKHO._pixmapHandle.pixmap()\n return None", ...
[ "0.7534999", "0.7408088", "0.73241574", "0.63724405", "0.6303458", "0.6048924", "0.591101", "0.5856372", "0.5803947", "0.5762845", "0.57427037", "0.5711618", "0.5697316", "0.56774807", "0.56774807", "0.56774807", "0.5677109", "0.56465185", "0.56242377", "0.55867916", "0.55746...
0.7390021
2
Push notebooks into Databricks from a local git repo.
def _jXH(d4y1, xtX7, PJWX): ZEd5, zLTL = nfxS(xtX7) HUs2 = qmut(d4y1) def Q5yx(): HUs2.import_workspace_dir(ZEd5, zLTL, True, False, verbose=PJWX) if not PJWX: with sev1(msg='Pushing to {}'.format(zLTL), width=10, fill_char='o', interval=0.25): Q5yx() else: Q5yx(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH():\n jehQ = tgM5.current_branch().name\n cbwj.run('git push -u origin {}'.format(jehQ))", "def BEem():\n print('This will commit and push the git repo')\n yo7_ = qcWV.datetime.today()\n pOv4(['git', 'add', '.'])\n pOv4(['git', 'commit', '-m', 'Updated notes. {:%Y-%m-%d %H:%M:%S}'.forma...
[ "0.6482049", "0.62962586", "0.62225837", "0.59839976", "0.58946466", "0.5846567", "0.5827437", "0.5812541", "0.577135", "0.5769634", "0.5716181", "0.5708902", "0.5670819", "0.559688", "0.55952805", "0.5565112", "0.55613923", "0.5537981", "0.54978377", "0.5491885", "0.54419285...
0.5091466
53
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(seEd, YKHO).__init__(*qIxc, **c_sp) if YKHO.hlive is None: YKHO.hlive = 0 if YKHO.hstate is None: YKHO.hstate = 0 if YKHO.hfinished is None: YKHO.hfinished = 0 if YKHO.pressure is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.7794351", "0.7719884", "0.7719884", "0.7686347", "0.76253426", "0.7562994", "0.74395365", "0.7416649", "0.73515975", "0.730761", "0.7279932", "0.72373426", "0.72264934", "0.7223775", "0.7223775", "0.72189564", "0.72111243", "0.72111243", "0.72111243", "0.72111243", "0.7211...
0.0
-1
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8): jvSB = YKHO.root for YRbF in GIN8: if jvSB.hash_map.get(YRbF) is None: return False jvSB = jvSB.hash_map.get(YRbF) if jvSB.num != 0: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False", "def Gtm1(ZO...
[ "0.838632", "0.8150416", "0.8123471", "0.7856802", "0.7830664", "0.77935004", "0.7792806", "0.77642965", "0.7753436", "0.7747724", "0.7711298", "0.76816714", "0.7677101", "0.7664614", "0.76506114", "0.76338875", "0.7628353", "0.76114196", "0.7577657", "0.75695884", "0.756079"...
0.7460392
31
Reformat MM/DD/YYYY string into YYYYMMDD string.
def Zntt(k3xj): _c1T = k3xj.split('/') return f'{_c1T[2]}-{_c1T[0]}-{_c1T[1]}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zntt(k3xj):\n x0eS, CjKC, lO87 = k3xj.split('/')\n return f'{lO87}-{x0eS}-{CjKC}'", "def kqOZ(CpsS):\n oYbL = CpsS.split('/')[-1]\n QSz5 = qcWV.strptime(oYbL, '%Y-%m-%d')\n return QSz5.strftime('%B %-d, %Y')", "def gQSG(YKHO, _c1T):\n if 'dummy' in _c1T:\n return '1970_01_01'\n ...
[ "0.7590982", "0.7325246", "0.72608", "0.70451754", "0.7040852", "0.69901127", "0.6932962", "0.6908399", "0.6899866", "0.68803024", "0.68683696", "0.6860244", "0.6844194", "0.68404895", "0.68115014", "0.6746559", "0.67172223", "0.67162967", "0.6706186", "0.67007065", "0.669680...
0.76452065
0
Reformat MM/DD/YYYY string into YYYYMMDD string.
def Zntt(k3xj): x0eS, CjKC, lO87 = k3xj.split('/') return f'{lO87}-{x0eS}-{CjKC}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zntt(k3xj):\n _c1T = k3xj.split('/')\n return f'{_c1T[2]}-{_c1T[0]}-{_c1T[1]}'", "def kqOZ(CpsS):\n oYbL = CpsS.split('/')[-1]\n QSz5 = qcWV.strptime(oYbL, '%Y-%m-%d')\n return QSz5.strftime('%B %-d, %Y')", "def gQSG(YKHO, _c1T):\n if 'dummy' in _c1T:\n return '1970_01_01'\n EAy...
[ "0.76450646", "0.73248696", "0.72614366", "0.70452774", "0.70411724", "0.69885546", "0.693275", "0.6907699", "0.68995225", "0.6881078", "0.6868027", "0.6860654", "0.68446493", "0.68401796", "0.68116033", "0.67460465", "0.6716601", "0.67160594", "0.67066586", "0.6700637", "0.6...
0.7590522
1
Creates Rooms in a Facility
def R3aL(YKHO, kmJ1, DFSo): if kmJ1 not in ('living_space', 'office'): raise ValueError('Invalid Room Type') for XIAj in DFSo: if kmJ1 == 'living_space': LMjj = AYaO(XIAj) elif kmJ1 == 'office': LMjj = MVZX(XIAj) LMjj.save(YKHO.db)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kY8R(YKHO, mWFP, cM24):\n if cM24 == 'O':\n if not mWFP in YKHO.all_rooms.keys():\n koYj = MVZX(mWFP)\n YKHO.offices[mWFP] = {'room': koYj, 'occupants': []}\n return 'Room created succesfully'\n else:\n return 'Room could not be created: Room exists!...
[ "0.7346681", "0.67147386", "0.6503128", "0.6485863", "0.6440803", "0.64260656", "0.6399095", "0.63743764", "0.635276", "0.6288383", "0.62576246", "0.6251781", "0.6199282", "0.6173405", "0.6163636", "0.6119259", "0.60186136", "0.5997501", "0.5995277", "0.5994179", "0.5977011",...
0.66858554
2
Add staff members to a Facility Once a staff member is added, they can be allocated a Room
def cDw_(YKHO, LAeX): for mWFP in LAeX: TpzV = CGhv(mWFP) TpzV.save(YKHO.db)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BfpQ(YKHO, NCls: Session, *, abiq: Room, CBIr: User) -> uHxD:\n DgAC = [WKvO for WKvO in abiq.members]\n DgAC.append(CBIr)\n return YKHO.update(db=NCls, db_obj=abiq, obj_in={'members': DgAC})", "def VD1W(YKHO):\n for YRbF in range(YKHO.grid.width):\n for r845 in range(YKHO.grid.height):\n ...
[ "0.66502416", "0.6341285", "0.6153963", "0.6037399", "0.5982103", "0.5913478", "0.57790923", "0.5708787", "0.57075113", "0.56588984", "0.56571347", "0.56462836", "0.5634728", "0.56229407", "0.5579242", "0.5573031", "0.55612683", "0.5516594", "0.54945344", "0.54789644", "0.544...
0.6355061
1
Return True if this Room has an available slot or False otherwise.
def ECm1(YKHO): return len(YKHO.occupants) < YKHO.capacity
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yWbd(YKHO) -> bool:\n return YKHO._is_available", "def yWbd(YKHO) -> bool:\n return YKHO._available", "def yWbd(YKHO) -> bool:\n return YKHO._available", "def yWbd(YKHO) -> bool:\n return YKHO._available", "def yWbd(YKHO) -> bool:\n return YKHO._available", "def yWbd(YKHO) -> bool:\n ...
[ "0.7295", "0.7266367", "0.7266367", "0.7266367", "0.7266367", "0.7266367", "0.71675116", "0.7160094", "0.7128381", "0.71216375", "0.7119812", "0.7049077", "0.6970711", "0.6970711", "0.6965429", "0.6927405", "0.69237584", "0.68763614", "0.68529737", "0.68144107", "0.68144107",...
0.0
-1
The Amazon Resource Name (ARN) of the component.
def _rTd(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'component_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def h...
[ "0.7191064", "0.7191064", "0.7191064", "0.7191064", "0.7191064", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "...
0.80252075
0
Use to override the device's volume size.
def yu8V(YKHO) -> h8nf[int]: return qe4Y.get(YKHO, 'volume_size')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCeF(YKHO, akib, XqwL):\n Fzfk = YKHO._get_spdk_volume_name(akib.name)\n NArs = {'name': Fzfk, 'size': XqwL * rYO3.Gi}\n YKHO._rpc_call('bdev_lvol_resize', NArs)", "def akib(YKHO, Ty9i: int) -> None:\n if Ty9i > ntNV:\n YKHO._volume = C8Gv\n elif Ty9i < fahY:\n YKHO._volume = fah...
[ "0.68184817", "0.6804653", "0.65552616", "0.65534765", "0.65534765", "0.65534765", "0.64906114", "0.64079595", "0.6380204", "0.6361022", "0.63458496", "0.63329816", "0.6247221", "0.6241781", "0.6234759", "0.62252325", "0.620123", "0.6125119", "0.6099092", "0.603824", "0.60080...
0.68020546
2
The device to which these mappings apply.
def yxaP(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'device_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def begE(YKHO):\n return next(YKHO.parameters()).device", "def begE(YKHO):\n return next(YKHO.parameters()).device", "def begE(YKHO):\n return next(YKHO.parameters()).device", "def begE(YKHO):\n return next(YKHO.parameters()).device", "def begE(YKHO):\n return next(YKHO.parameters()).device"...
[ "0.77708614", "0.77708614", "0.77708614", "0.77708614", "0.77708614", "0.7310554", "0.73008883", "0.7296386", "0.72774124", "0.7209638", "0.7097146", "0.6969169", "0.69496566", "0.6889768", "0.6840716", "0.677567", "0.6770793", "0.6706605", "0.66874987", "0.6666736", "0.66484...
0.0
-1
The name of the AMI distribution configuration.
def mWFP(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._config_name", "def mWFP(YKHO):\n return YKHO._config.get(BiEj)", "def mWFP(YKHO):\n return YKHO.config['name']", "def mWFP(YKHO) -> str:\n mWFP = YKHO._config['name']\n assert isinstance(mWFP, str)\n return mWFP", "def Ks8p(YKHO):\n pass", "def mWFP(YKH...
[ "0.71826684", "0.6885989", "0.68765247", "0.66551936", "0.6581755", "0.65440035", "0.65440035", "0.65398103", "0.6502259", "0.6475259", "0.6434749", "0.63589317", "0.6350924", "0.6278417", "0.6241691", "0.6233668", "0.622561", "0.6100214", "0.6078985", "0.606762", "0.60621", ...
0.0
-1
The description of the container distribution configuration.
def JBZA(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'description')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBZA(YKHO) -> w4ot:\n return YKHO._description", "def JBZA(YKHO):\n return YKHO.settings['description']", "def gyI3(YKHO, mWFP):\n return YKHO.configs[mWFP][1]", "def JBZA(YKHO):\n return YKHO._domain.description", "def KUG7(YKHO):\n return '\\n'.join(['This diagnostic determines if the ...
[ "0.70169866", "0.66577846", "0.6566839", "0.6484453", "0.64492756", "0.63934475", "0.63934475", "0.63934475", "0.63934475", "0.63934475", "0.63934475", "0.63934475", "0.63934475", "0.63934475", "0.63934475", "0.63934475", "0.63934475", "0.6391682", "0.63873327", "0.63645357", ...
0.0
-1
The owner account ID for the fastlaunch enabled Windows AMI.
def Z31E(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'account_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k4C1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'owner_account_id')", "def gPmJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'owner_id')", "def k4C1(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'owner_account_id')", "def gPmJ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'owner_id')...
[ "0.79870206", "0.77915555", "0.761949", "0.7477551", "0.7381904", "0.71631205", "0.7094557", "0.7044732", "0.696285", "0.68757355", "0.68757355", "0.6729074", "0.66746116", "0.66407484", "0.66112775", "0.6593305", "0.6593273", "0.65680665", "0.656655", "0.654042", "0.6498285"...
0.5883037
94
The name of the launch template to use for faster launching for a Windows AMI.
def CCMb(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'launch_template_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CCMb(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'launch_template_name')", "def CCMb(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'launch_template_name')", "def X9NR(YjNK):\n bo34.info(f'Describing launch template for {YjNK}...')\n geh0 = oa7L.describe_launch_templates(L...
[ "0.76607496", "0.75907534", "0.6500886", "0.64402634", "0.64280105", "0.6420781", "0.63896555", "0.63896555", "0.6228604", "0.6207431", "0.62057006", "0.6137971", "0.61320853", "0.5956605", "0.5936516", "0.5917477", "0.5913817", "0.5869647", "0.5863787", "0.58053887", "0.5804...
0.7785544
0
The version of the launch template to use for faster launching for a Windows AMI.
def yP7M(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'launch_template_version')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CCMb(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'launch_template_name')", "def jU9x(DEXX):\n return {'LaunchTemplateId': mBdb[DEXX], 'Version': '$Default'}", "def Q4DZ(YKHO) -> h8nf['outputs.DistributionConfigurationFastLaunchLaunchTemplateSpecification']:\n return qe4Y.get(YKHO, 'launch_template...
[ "0.6512453", "0.6506118", "0.64709836", "0.64611137", "0.6301759", "0.6232857", "0.6199135", "0.61922336", "0.61188525", "0.60105467", "0.5981961", "0.5975101", "0.5975101", "0.59683067", "0.59683067", "0.59683067", "0.5916981", "0.58882636", "0.5873578", "0.5873578", "0.5873...
0.78969115
0
The ARN for an Amazon Web Services Organization that you want to share your AMI with.
def Oltu(YKHO) -> h8nf[bdIy[str]]: return qe4Y.get(YKHO, 'organization_arns')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GyV3(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organization_arn')", "def GyV3(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organization_arn')", "def GyV3(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organization_arn')", "def hMqs(YKHO) -> str:\n return ...
[ "0.6491133", "0.64370763", "0.64370763", "0.61768895", "0.61768895", "0.61768895", "0.61768895", "0.61768895", "0.608161", "0.608161", "0.608161", "0.608161", "0.608161", "0.608161", "0.608161", "0.608161", "0.608161", "0.608161", "0.608161", "0.608161", "0.608161", "0.6081...
0.57118946
61
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with.
def qsRr(YKHO) -> h8nf[bdIy[str]]: return qe4Y.get(YKHO, 'organizational_unit_arns')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GyV3(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organization_arn')", "def cDt5(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')", "def GyV3(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organization_arn')", "def GyV3(YKHO) -> h8nf[qe4Y...
[ "0.6514189", "0.64210725", "0.63826585", "0.63826585", "0.6313867", "0.6313867", "0.604869", "0.604869", "0.604869", "0.604869", "0.604869", "0.60316145", "0.5997899", "0.5997899", "0.5997899", "0.5997899", "0.5997899", "0.5997899", "0.5997899", "0.5997899", "0.5997899", "0...
0.57041615
44
The name of the group.
def MjaU(YKHO) -> h8nf[bdIy[str]]: return qe4Y.get(YKHO, 'user_groups')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def IXKo(YKHO):\n return YKHO._group_name", "def XZ_F(YKHO):\n return YKHO.groupname", "def mWFP(YKHO):\n return f'{YKHO._group.friendly_name} {VCI3}'", "def IXKo(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'group_n...
[ "0.9249819", "0.9016461", "0.8926357", "0.86287326", "0.8597322", "0.8539834", "0.8430861", "0.8430861", "0.8359449", "0.8329936", "0.8194932", "0.8194932", "0.80562013", "0.8042796", "0.8042796", "0.7985607", "0.79016817", "0.79016817", "0.7889013", "0.78830576", "0.7882004"...
0.0
-1
The AWS account ID.
def wjS6(YKHO) -> h8nf[bdIy[str]]: return qe4Y.get(YKHO, 'user_ids')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y...
[ "0.8054578", "0.8054578", "0.8054578", "0.8054578", "0.8054578", "0.8054578", "0.8054578", "0.8054578", "0.7759753", "0.77339196", "0.77339196", "0.77339196", "0.7692508", "0.76870245", "0.763928", "0.763928", "0.7575482", "0.75298274", "0.7520777", "0.75130975", "0.75069237"...
0.0
-1
The account ID that this configuration applies to.
def Z31E(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'account_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO):\n return YKHO.config.account_id", "def Z31E(YKHO):\n return YKHO._account_id", "def Z31E(YKHO) -> str:\n return YKHO._account_id", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO)...
[ "0.9474707", "0.8826064", "0.8809587", "0.8801157", "0.8801157", "0.8801157", "0.8801157", "0.8801157", "0.8801157", "0.8801157", "0.8801157", "0.8777217", "0.85403967", "0.84571755", "0.84571755", "0.84571755", "0.8387263", "0.8340455", "0.8328375", "0.82334095", "0.82334095...
0.8491654
17
Contains settings for the SSM agent on your build instance.
def MZvb(YKHO) -> h8nf['outputs.ImageRecipeSystemsManagerAgent']: return qe4Y.get(YKHO, 'systems_manager_agent')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCuF(YKHO):\n if YKHO._settings is not None:\n return YKHO._settings\n gCuF = YKHO.binaries['KeeAgent.settings'].content\n YKHO._settings = xbif.fromstring(gCuF)\n return YKHO._settings", "def asJJ(YKHO):\n return {'game_name': YKHO.game_name, 'n_epochs': YKHO.n_epochs, 'n_episodes': YK...
[ "0.6548634", "0.64419276", "0.5923232", "0.5742373", "0.5680411", "0.56509167", "0.55676943", "0.55676943", "0.5517533", "0.55012864", "0.5489477", "0.5477533", "0.5476079", "0.546783", "0.54672176", "0.5436635", "0.5424833", "0.53971535", "0.5386839", "0.5366283", "0.5366283...
0.0
-1
The Amazon Resource Name (ARN) of the component.
def _rTd(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'component_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def h...
[ "0.7191064", "0.7191064", "0.7191064", "0.7191064", "0.7191064", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "0.70031494", "...
0.80252075
1
Use to override the device's volume size.
def yu8V(YKHO) -> h8nf[int]: return qe4Y.get(YKHO, 'volume_size')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCeF(YKHO, akib, XqwL):\n Fzfk = YKHO._get_spdk_volume_name(akib.name)\n NArs = {'name': Fzfk, 'size': XqwL * rYO3.Gi}\n YKHO._rpc_call('bdev_lvol_resize', NArs)", "def akib(YKHO, Ty9i: int) -> None:\n if Ty9i > ntNV:\n YKHO._volume = C8Gv\n elif Ty9i < fahY:\n YKHO._volume = fah...
[ "0.68184817", "0.6804653", "0.65552616", "0.65534765", "0.65534765", "0.65534765", "0.64906114", "0.64079595", "0.6380204", "0.6361022", "0.63458496", "0.63329816", "0.6247221", "0.6241781", "0.6234759", "0.62252325", "0.620123", "0.6125119", "0.6099092", "0.603824", "0.60080...
0.68020546
3
The device to which these mappings apply.
def yxaP(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'device_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def begE(YKHO):\n return next(YKHO.parameters()).device", "def begE(YKHO):\n return next(YKHO.parameters()).device", "def begE(YKHO):\n return next(YKHO.parameters()).device", "def begE(YKHO):\n return next(YKHO.parameters()).device", "def begE(YKHO):\n return next(YKHO.parameters()).device"...
[ "0.7771324", "0.7771324", "0.7771324", "0.7771324", "0.7771324", "0.7310379", "0.7300264", "0.72962564", "0.7277042", "0.72101164", "0.7097666", "0.696802", "0.6949819", "0.68880427", "0.6841364", "0.67772", "0.6768175", "0.67065585", "0.6687681", "0.66658443", "0.6648081", ...
0.0
-1
Contains settings for the SSM agent on your build instance.
def FIMM(Ro_8, *, em1Q: Optional[bool]=None): if em1Q is not None: qe4Y.set(Ro_8, 'uninstall_after_build', em1Q)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCuF(YKHO):\n if YKHO._settings is not None:\n return YKHO._settings\n gCuF = YKHO.binaries['KeeAgent.settings'].content\n YKHO._settings = xbif.fromstring(gCuF)\n return YKHO._settings", "def asJJ(YKHO):\n return {'game_name': YKHO.game_name, 'n_epochs': YKHO.n_epochs, 'n_episodes': YK...
[ "0.654885", "0.64432317", "0.59246373", "0.57439", "0.5680014", "0.56521434", "0.5569286", "0.5569286", "0.55196846", "0.55026966", "0.549086", "0.5478354", "0.5476615", "0.5469427", "0.54692465", "0.5437534", "0.5426405", "0.53963906", "0.5387106", "0.5367907", "0.5367907", ...
0.0
-1
Controls whether the SSM agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false.
def em1Q(YKHO) -> h8nf[bool]: return qe4Y.get(YKHO, 'uninstall_after_build')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EeG1(YKHO):\n YKHO.model.grid.remove_agent(YKHO)\n YKHO.model.schedule.remove(YKHO)\n if YKHO.agent_type == 'zombie':\n YKHO.model.infected -= 1\n elif YKHO.agent_type == 'human':\n YKHO.model.susceptible -= 1\n del YKHO", "def geSi(YKHO):\n with o1Kh(YKHO._get_cwd()):\n ...
[ "0.54542243", "0.517813", "0.505942", "0.5006941", "0.49519476", "0.49481696", "0.493447", "0.4934245", "0.4934245", "0.49324697", "0.48917982", "0.48220247", "0.47406355", "0.46717295", "0.46419892", "0.46239337", "0.46203905", "0.46091574", "0.45765468", "0.45710993", "0.45...
0.5522736
0
Hide the Editor frame
def yPSv(YKHO): YKHO.frame.Hide()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Afoa(YKHO):\n YKHO.frame.Show(False)", "def Afoa(YKHO):\n YKHO.frame.grid_forget()\n YKHO.visible = False", "def Afoa(YKHO):\n YKHO.stop_repl()\n YKHO.visible = False\n YKHO.withdraw()", "def Afoa(YKHO):\n YKHO.visible = False", "def Afoa(YKHO):\n YKHO.window.run_command('hide_p...
[ "0.8230112", "0.78343356", "0.76082706", "0.75906724", "0.7560318", "0.749467", "0.7476999", "0.74718237", "0.7314781", "0.7129418", "0.71185094", "0.7091876", "0.70750076", "0.70323706", "0.69532067", "0.6922021", "0.691673", "0.6901858", "0.68986416", "0.68986416", "0.68901...
0.93959975
0
Convert text line to dataframe.
def yRdj(l5Wp): Txl5 = [] J2us = [zFiD.split(u',') for zFiD in l5Wp] J2us = [rLdf.np.nan if eOtH in (u'\\N', 'NULL') else eOtH for eOtH in J2us] jQ3Z = rLdf.DataFrame(J2us, columns=Txl5) jQ3Z = jQ3Z.convert_objects(convert_numeric=True) jQ3Z.set_index('msisdn', inplace=True) print('-----', j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Edqb(l5Ny):\n S06t = [YRbF.strip() for YRbF in l5Ny.splitlines() if YRbF.strip() != '']\n TDnD = {}\n AAHb = S06t[0].strip().split()\n V_s1 = S06t[1].strip()\n for ZfUD in S06t[2:]:\n d6pt, *wl6z = ZfUD.split()\n wl6z = [float(YRbF) for YRbF in wl6z]\n TDnD[d6pt] = wl6z\n ...
[ "0.752172", "0.68173903", "0.6759135", "0.63702023", "0.6357456", "0.63191575", "0.62339556", "0.61799276", "0.6121947", "0.60799277", "0.6054078", "0.5966659", "0.59273255", "0.59195846", "0.5917633", "0.5856612", "0.5832698", "0.5824041", "0.58087665", "0.57946724", "0.5788...
0.7698173
0
by default, forward input to cost and subtree, and take output from the subtree
def SqHK(YKHO, eVVj): LOks = YKHO._children['subtree'].children sSN_ = YKHO._children['cost'].children eVVj.forward_input_to(LOks.name) eVVj.forward_input_to(sSN_.name) eVVj.take_output_from(LOks.name, to_key='subtree_output') eVVj.remove_dependency(sSN_.name, YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, input=None):\n if input is not None and YKHO.result is None:\n YKHO.result = YKHO.node(input)\n elif YKHO.result is None:\n raise ValueError('There must be some input or a previously calculated result')\n return YKHO.result.view(*YKHO.G.d_out)", "def KVH6(YKHO, input):\n ...
[ "0.6293857", "0.6018126", "0.6018126", "0.5983648", "0.5983648", "0.5983648", "0.59182084", "0.5917874", "0.59096485", "0.58576286", "0.58372796", "0.5809666", "0.57992524", "0.577773", "0.5733227", "0.5709803", "0.5696223", "0.5680157", "0.56793106", "0.5677487", "0.5671001"...
0.60384303
1
Returns the offset in seconds to GMT from a specific timezone (tz) at a specific time (t). NB! The _tzoffset result is the same same sign as the time zone, i.e. GMT+2 has a 7200 second offset. This is the opposite sign of time.timezone which (confusingly) is 7200 for GMT+2.
def SED2(yl4j, a1PO): try: return gY8B[yl4j].info(a1PO)[0] except Exception: if ZWzL(yl4j) is not None: return int(yl4j[0:3]) * 3600 + int(yl4j[0] + yl4j[3:5]) * 60 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nJdo() -> float:\n import time\n import datetime\n OeQj = time.time()\n UJxm = (datetime.datetime.fromtimestamp(OeQj) - datetime.datetime.utcfromtimestamp(OeQj)).total_seconds()\n return UJxm", "def PduB(YKHO):\n return SED2(YKHO._tz, YKHO._t)", "def CHDc(rIAI):\n return NLrD.get(rIAI,...
[ "0.74398166", "0.7062385", "0.6961967", "0.6942179", "0.6833366", "0.6768012", "0.67202467", "0.6718529", "0.6715143", "0.6622376", "0.65156436", "0.6492002", "0.6430788", "0.6341408", "0.62024295", "0.61872435", "0.6065287", "0.60378027", "0.60180354", "0.6009388", "0.598049...
0.8368048
0
Takes an offset, such as from _tzoffset(), and returns an rfc822 compliant zone specification. Please note that the result of _tzoffset() is the negative of what time.localzone and time.altzone is.
def omL5(C6wh): return '%+03d%02d' % divmod(C6wh // 60, 60)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLQ8(_hcX: str, gwzY: str=None) -> PduB:\n\n def t01U(l5Ny, tX49):\n for y0cW in tX49:\n if l5Ny.startswith(y0cW):\n l5Ny = l5Ny[len(y0cW):]\n return l5Ny\n _hcX = t01U(_hcX, ['GMT', 'UTC']).strip()\n pSDG = -1 if _hcX.startswith('-') else 1\n _hcX = _hcX.lst...
[ "0.6927584", "0.68985486", "0.6886012", "0.6314385", "0.6304599", "0.6231638", "0.62225014", "0.6150216", "0.6012236", "0.5900019", "0.58197796", "0.5769525", "0.5753338", "0.5732382", "0.5672894", "0.5657108", "0.56386375", "0.55873233", "0.5576582", "0.55571926", "0.5555352...
0.58378744
10
Takes an offset, such as from _tzoffset(), and returns an ISO 8601 compliant zone specification. Please note that the result of _tzoffset() is the negative of what time.localzone and time.altzone is.
def Ja1h(C6wh): return '%+03d:%02d' % divmod(C6wh // 60, 60)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bqzo(vgXP):\n if isinstance(vgXP, fCoM):\n vgXP = vgXP.total_seconds() // 60\n Zihr = '-' if vgXP < 0 else '+'\n nQIw = '%02d%02d' % divmod(abs(vgXP), 60)\n mWFP = Zihr + nQIw\n return rIAI(fCoM(minutes=vgXP), mWFP)", "def Bqzo(vgXP):\n if isinstance(vgXP, fCoM):\n vgXP = vgXP...
[ "0.66648674", "0.6617603", "0.6598453", "0.6555272", "0.6091387", "0.6035639", "0.6020284", "0.59815", "0.593755", "0.5852733", "0.5837383", "0.58018744", "0.5772172", "0.57200205", "0.57058865", "0.5699742", "0.5685528", "0.5666741", "0.5643046", "0.56414855", "0.56214434", ...
0.5724988
13
Return a new datetime object. A DateTime object always maintains its value as an absolute UTC time, and is represented in the context of some timezone based on the arguments used to create the object. A DateTime object's methods return values based on the timezone context. Note that in all cases the local machine timez...
def Y8nX(YKHO, *qIxc, **YSA3): Bjmr = YSA3.get('datefmt', Ult4()) Csk6 = a1PO = KCHu = None _P6x = len(qIxc) EF5S = None if _P6x == 10: wx6A, ohcp, eUWA, gqtN, hgl7, Sa_m, yl4j, a1PO, Csk6, KCHu = qIxc elif _P6x == 11: wx6A, ohcp, eUWA, gqtN, hgl7, Sa_m, yl4j, a1PO, Csk6, KCHu, D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FnGM(*qIxc):\n Csk6 = LtOa(*qIxc)\n if gCuF.USE_TZ:\n Csk6 = rIAI.make_aware(Csk6, rIAI.utc)\n return Csk6", "def JRYC(*qIxc, **B2fa):\n if 'tz' in B2fa:\n TYhG = B2fa.pop('tz')\n else:\n TYhG = B2fa.pop('tzinfo', None)\n iEMb = B2fa.pop('offset_s', None)\n Y6_f = B2...
[ "0.68761533", "0.6549881", "0.64921165", "0.6474643", "0.6409026", "0.6265559", "0.6256599", "0.6248402", "0.62375325", "0.6101833", "0.60786086", "0.6074848", "0.6063171", "0.605014", "0.60465616", "0.6044126", "0.60254955", "0.59829426", "0.59803814", "0.5968523", "0.593397...
0.0
-1
Return the date/time as a floatingpoint number in UTC, in the format used by the Python time module. Note that it is possible to create date/time values with DateTime that have no meaningful value to the time module.
def sKhq(YKHO): return YKHO._micros / 1000000.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JFuH(YKHO):\n if YKHO.date_stamp == '0':\n return '0'\n else:\n if '.' in YKHO.date_stamp:\n a1PO = qcWV.datetime.strptime(YKHO.date_stamp, '%Y%m%d%H%M%S.%f')\n else:\n a1PO = qcWV.datetime.strptime(YKHO.date_stamp, '%Y%m%d%H%M%S')\n RocC = qcWV.timedelta...
[ "0.7104952", "0.6783953", "0.6672905", "0.66581106", "0.6434604", "0.6318582", "0.6313438", "0.6269746", "0.62245", "0.6185268", "0.6175883", "0.61740094", "0.6121154", "0.6120147", "0.6072429", "0.6036648", "0.60229796", "0.5926571", "0.5921829", "0.5915268", "0.5889356", ...
0.0
-1
Return a DateTime with the value as the current object, represented in the indicated timezone.
def XJ_F(YKHO, epBp): a1PO, yl4j = (YKHO._t, gY8B._zmap[epBp.lower()]) O4Av = YKHO.micros() TXj5 = False try: wx6A, ohcp, eUWA, gqtN, hgl7, Sa_m = AqQd(a1PO + SED2(yl4j, a1PO))[:6] Sa_m = YKHO._second return YKHO.__class__(wx6A, ohcp, eUWA, gqtN, hgl7, Sa_m, yl4j, a1PO, YKHO._d, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzkt(Emd4, yl4j=None):\n return qcWV()", "def EUP2(YKHO, yl4j=None):\n return EUP2(tz=yl4j, default_tz=YKHO.default_tz)", "def wzkt(YKHO):\n if 'timezone' in YKHO._data:\n return FXGE.utc.localize(qcWV.datetime.utcnow()).astimezone(FXGE.timezone(YKHO._data['timezone']))\n else:\n ...
[ "0.7314753", "0.70316035", "0.6999923", "0.6996556", "0.68479586", "0.67914337", "0.67773145", "0.6744868", "0.6740367", "0.66061556", "0.65979177", "0.65448684", "0.65281063", "0.6521261", "0.64880246", "0.64704764", "0.64424086", "0.64108", "0.63647777", "0.63529146", "0.63...
0.5539054
91
Return true if this object represents a date/time that falls within the current month, in the context of this object's timezone representation.
def rpEc(YKHO): a1PO = ITS7() FAjd = AqQd(a1PO + SED2(YKHO._tz, a1PO)) return FAjd[0] == YKHO._year and FAjd[1] == YKHO._month
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bj_D(YKHO):\n a1PO = ITS7()\n FAjd = AqQd(a1PO + SED2(YKHO._tz, a1PO))\n return FAjd[0] == YKHO._year and FAjd[1] == YKHO._month and (FAjd[2] == YKHO._day)", "def uvu3(yo7_):\n if isinstance(yo7_, qcWV):\n if yo7_.day == 1:\n return True\n return False\n else:\n ...
[ "0.6662267", "0.66487384", "0.6518789", "0.6433111", "0.62040526", "0.615508", "0.6087373", "0.6054832", "0.5993255", "0.5969998", "0.5947868", "0.5923783", "0.5904356", "0.58151025", "0.57498646", "0.5699135", "0.56832695", "0.5680588", "0.56746984", "0.5670092", "0.5668495"...
0.8414254
0
Return true if this object represents a date/time that falls within the current day, in the context of this object's timezone representation.
def Bj_D(YKHO): a1PO = ITS7() FAjd = AqQd(a1PO + SED2(YKHO._tz, a1PO)) return FAjd[0] == YKHO._year and FAjd[1] == YKHO._month and (FAjd[2] == YKHO._day)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gutY(YKHO):\n a1PO = ITS7()\n FAjd = AqQd(a1PO + SED2(YKHO._tz, a1PO))\n return FAjd[0] == YKHO._year and FAjd[1] == YKHO._month and (FAjd[2] == YKHO._day) and (FAjd[3] == YKHO._hour)", "def f0wK(YKHO, JRYC: datetime.datetime) -> bool:\n if YKHO is SVZk.DAILY:\n return True\n CjKC = JRY...
[ "0.705215", "0.67152447", "0.6633701", "0.6603249", "0.65439093", "0.64475363", "0.64147735", "0.63191307", "0.62806517", "0.62730324", "0.6235183", "0.62341785", "0.6231661", "0.6212905", "0.62096846", "0.6176303", "0.61473113", "0.6136239", "0.612664", "0.6125106", "0.61236...
0.82420146
0
Return true if this object represents a date/time that falls within the current hour, in the context of this object's timezone representation.
def gutY(YKHO): a1PO = ITS7() FAjd = AqQd(a1PO + SED2(YKHO._tz, a1PO)) return FAjd[0] == YKHO._year and FAjd[1] == YKHO._month and (FAjd[2] == YKHO._day) and (FAjd[3] == YKHO._hour)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tU1B(YKHO, uNbF):\n return uNbF >= YKHO.constants.HOME_HOUR_START / YKHO.constants.DURATION_MAX", "def lGSu(YKHO):\n if YKHO._meta is not None:\n if 'timezone' in YKHO.meta:\n return True\n return False", "def zOG8(YKHO):\n return isinstance(YKHO._start, qcWV.datetime)", "de...
[ "0.6866786", "0.68480355", "0.66172326", "0.65653026", "0.65132487", "0.6489922", "0.62828946", "0.62811536", "0.628075", "0.62296736", "0.6182676", "0.61325806", "0.6111242", "0.6110154", "0.60923934", "0.609238", "0.6053397", "0.60390365", "0.6015585", "0.6002123", "0.59996...
0.83877736
0
Return a new DateTime object that represents the earliest possible time (in whole seconds) that still falls within the current object's day, in the object's timezone context.
def XhVP(YKHO): return YKHO.__class__(YKHO._year, YKHO._month, YKHO._day, 0, 0, 0, YKHO._tz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKcO(YKHO):\n if YKHO.start_time is None:\n ITS7 = qcWV.time(hour=19, tzinfo=KgZk)\n else:\n ITS7 = YKHO.start_time.replace(tzinfo=KgZk)\n return qcWV.datetime.combine(YKHO.date, ITS7)", "def kpEh():\n return qcWV.combine(qcWV.today(), ITS7.min)", "def wzkt(Emd4):\n return cJ1g...
[ "0.6422922", "0.6374857", "0.62946504", "0.62443125", "0.61853343", "0.6055116", "0.60182786", "0.60182786", "0.6007353", "0.5965622", "0.59552246", "0.5939701", "0.588648", "0.5886107", "0.5886107", "0.587014", "0.58688027", "0.5825176", "0.5812672", "0.5789939", "0.57752943...
0.7126084
0
Return a new DateTime object that represents the latest possible time (in whole seconds) that still falls within the current object's day, in the object's timezone context.
def z_0p(YKHO): return YKHO.__class__(YKHO._year, YKHO._month, YKHO._day, 23, 59, 59, YKHO._tz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzkt(Emd4):\n return cJ1g(*ITS7.localtime())", "async def get_now(YKHO) -> JRYC.datetime:\n wzkt = await YKHO.AD.sched.get_now()\n return wzkt.astimezone(YKHO.AD.tz)", "def wzkt(Emd4, yl4j=None):\n return qcWV()", "def EUP2(YKHO, yl4j=None):\n return EUP2(tz=yl4j, default_tz=YKHO.default_t...
[ "0.64946395", "0.64916605", "0.62016237", "0.61521375", "0.61336374", "0.6120772", "0.60995674", "0.6079213", "0.6050465", "0.60364693", "0.6006962", "0.59771186", "0.59534717", "0.5929396", "0.5908056", "0.5883468", "0.58737075", "0.58254325", "0.58051264", "0.57893664", "0....
0.6675551
0
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the Python time module. Returns true if the object represents a date/time greater than the specified DateTime or time module style time. Revised to give more correct results through comparison of long in...
def OyvB(YKHO, a1PO): if a1PO is None: return True if isinstance(a1PO, (float, int)): return YKHO._micros > Swre(a1PO * 1000000) else: return YKHO._micros > a1PO._micros
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif):\n return YKHO.to_seconds() > Elif.to_seconds()", "def jmxi(YKHO, Elif):\n return YKHO.to_seconds() > Elif.to_seconds()", "def Aicm(YKHO, Elif):\n if not isinstance(Elif, qcWV):\n SnBA = (type(Elif), qcWV)\n raise TypeError('Type mismatch: %s not instance of %s' % Sn...
[ "0.7010872", "0.7010872", "0.6873049", "0.67912716", "0.6762701", "0.65923715", "0.6503718", "0.6409109", "0.6323036", "0.6254817", "0.6229409", "0.62274665", "0.6158104", "0.6154421", "0.6074431", "0.60247546", "0.59869546", "0.595357", "0.5949988", "0.59094894", "0.58673847...
0.68673104
3
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the Python time module. Returns true if the object represents a date/time greater than or equal to the specified DateTime or time module style time. Revised to give more correct results through compariso...
def p9aC(YKHO, a1PO): if a1PO is None: return True if isinstance(a1PO, (float, int)): return YKHO._micros >= Swre(a1PO * 1000000) else: return YKHO._micros >= a1PO._micros
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, a1PO):\n if not isinstance(a1PO, cJ1g):\n return False\n return (YKHO._micros, YKHO._tz) == (a1PO._micros, a1PO._tz)", "def Aicm(YKHO, Elif):\n if not isinstance(Elif, qcWV):\n SnBA = (type(Elif), qcWV)\n raise TypeError('Type mismatch: %s not instance of %s' % SnBA)\...
[ "0.7061997", "0.69694746", "0.6886846", "0.6886846", "0.66619426", "0.65881145", "0.6561923", "0.6546217", "0.64894325", "0.6458336", "0.6361093", "0.62078923", "0.61832625", "0.61650395", "0.60501915", "0.59519696", "0.59218264", "0.5891299", "0.58857924", "0.586534", "0.585...
0.670183
4
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the Python time module. Returns true if the object represents a date/time equal to the specified DateTime or time module style time. Revised to give more correct results through comparison of long intege...
def YFco(YKHO, a1PO): if a1PO is None: return False if isinstance(a1PO, (float, int)): return YKHO._micros == Swre(a1PO * 1000000) else: return YKHO._micros == a1PO._micros
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, a1PO):\n if not isinstance(a1PO, cJ1g):\n return False\n return (YKHO._micros, YKHO._tz) == (a1PO._micros, a1PO._tz)", "def Aicm(YKHO, Elif):\n if not isinstance(Elif, qcWV):\n SnBA = (type(Elif), qcWV)\n raise TypeError('Type mismatch: %s not instance of %s' % SnBA)\...
[ "0.74075615", "0.69543904", "0.67876285", "0.6473543", "0.63729185", "0.63729185", "0.6355418", "0.6289537", "0.6206174", "0.6205984", "0.6181677", "0.60360885", "0.6016017", "0.60047495", "0.5991009", "0.59349024", "0.59239626", "0.59175575", "0.59171367", "0.5879019", "0.58...
0.67172575
3
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the Python time module. Returns true if the object represents a date/time not equal to the specified DateTime or time module style time. Revised to give more correct results through comparison of long in...
def iS6P(YKHO, a1PO): return not YKHO.equalTo(a1PO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, a1PO):\n if not isinstance(a1PO, cJ1g):\n return False\n return (YKHO._micros, YKHO._tz) == (a1PO._micros, a1PO._tz)", "def Aicm(YKHO, Elif):\n if not isinstance(Elif, qcWV):\n SnBA = (type(Elif), qcWV)\n raise TypeError('Type mismatch: %s not instance of %s' % SnBA)\...
[ "0.7316267", "0.69819915", "0.67882985", "0.657248", "0.6523489", "0.63893676", "0.63893676", "0.622479", "0.62172186", "0.6186166", "0.61330175", "0.611747", "0.6093826", "0.6074597", "0.60602456", "0.6027862", "0.6003813", "0.5904772", "0.5897975", "0.5890052", "0.58710015"...
0.0
-1
Compare this DateTime object to another DateTime object. Return True if their internal state is the same. Two objects representing the same time in different timezones are regared as unequal. Use the equalTo method if you are only interested in them referring to the same moment in time.
def xa14(YKHO, a1PO): if not isinstance(a1PO, cJ1g): return False return (YKHO._micros, YKHO._tz) == (a1PO._micros, a1PO._tz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xii9(MJm0, bdHc):\n if isinstance(MJm0 and bdHc, (qcWV, type(None))):\n return (MJm0 == bdHc if all((str(bGrB.time()) != '00:00:00' for bGrB in [MJm0, bdHc])) else MJm0.date() == bdHc.date()) if MJm0 and bdHc else MJm0 == bdHc\n else:\n mKke.attrs_values_types_error(self_attr=MJm0, other_at...
[ "0.71827286", "0.7085723", "0.7085715", "0.7014832", "0.6942006", "0.6761986", "0.6698628", "0.6665077", "0.6618728", "0.6562935", "0.6561812", "0.65552956", "0.6498031", "0.64860404", "0.6480493", "0.6464075", "0.6451856", "0.63861215", "0.6385311", "0.63629574", "0.63552946...
0.82303816
0
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the Python time module. Returns true if the object represents a date/time less than the specified DateTime or time module style time. Revised to give more correct results through comparison of long integ...
def caxO(YKHO, a1PO): if a1PO is None: return False if isinstance(a1PO, (float, int)): return YKHO._micros < Swre(a1PO * 1000000) else: return YKHO._micros < a1PO._micros
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aicm(YKHO, Elif):\n if not isinstance(Elif, qcWV):\n SnBA = (type(Elif), qcWV)\n raise TypeError('Type mismatch: %s not instance of %s' % SnBA)\n return YKHO._cmp(YKHO._days, Elif._days) or YKHO._cmp(YKHO.seconds, Elif.seconds) or YKHO._cmp(YKHO.nanosecond, Elif.nanosecond)", "def jmxi(YK...
[ "0.7109928", "0.6764142", "0.6764142", "0.6672138", "0.66532487", "0.6596538", "0.6579246", "0.65784633", "0.6400461", "0.61673385", "0.6140804", "0.61321425", "0.6105782", "0.6088082", "0.605102", "0.5959152", "0.59129643", "0.58819234", "0.5869536", "0.585081", "0.5846645",...
0.67896366
1
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the Python time module. Returns true if the object represents a date/time less than or equal to the specified DateTime or time module style time. Revised to give more correct results through comparison o...
def sQFk(YKHO, a1PO): if a1PO is None: return False if isinstance(a1PO, (float, int)): return YKHO._micros <= Swre(a1PO * 1000000) else: return YKHO._micros <= a1PO._micros
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aicm(YKHO, Elif):\n if not isinstance(Elif, qcWV):\n SnBA = (type(Elif), qcWV)\n raise TypeError('Type mismatch: %s not instance of %s' % SnBA)\n return YKHO._cmp(YKHO._days, Elif._days) or YKHO._cmp(YKHO.seconds, Elif.seconds) or YKHO._cmp(YKHO.nanosecond, Elif.nanosecond)", "def xa14(YK...
[ "0.7132898", "0.68890226", "0.67965525", "0.67965525", "0.6735365", "0.6615772", "0.6611088", "0.66091555", "0.64684826", "0.6321959", "0.6294536", "0.62891334", "0.62388724", "0.61790293", "0.61707807", "0.61294353", "0.59575844", "0.5893718", "0.5806883", "0.5784637", "0.57...
0.66659397
5
Return the day of the year, in context of the timezone representation of the object.
def Iw0z(YKHO): Csk6 = int(YKHO._d + SED2(YKHO._tz, YKHO._t) / 86400.0) return int(Csk6 + vEP9 - dhHf(YKHO._year, 1, 0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RG0A(YKHO):\n return int(YKHO.date.strftime('%j'))", "def RG0A(_c1T=qcWV.datetime.now()):\n return _c1T.strftime(\"Its the %j day of %Y'th year.\")", "def Babz(YKHO) -> tTFA:\n qmLP.warn('`dayofyear` will return int32 index instead of int 64 index in 4.0.0.', FutureWarning)\n return tTFA(YKHO.t...
[ "0.8118851", "0.745819", "0.69404024", "0.6739889", "0.6683761", "0.6596866", "0.6568651", "0.656759", "0.64721876", "0.6465625", "0.6444715", "0.6385025", "0.63791275", "0.6372839", "0.6366738", "0.6366738", "0.63545626", "0.6334317", "0.6313267", "0.6245467", "0.62150574", ...
0.7713782
1
Return the timezone in which the object is represented.
def rIAI(YKHO): return YKHO._tz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIAI(YKHO) -> str:\n return YKHO._tz", "def rIAI():\n return ITS7.timezone", "def rIAI(YKHO):\n return YKHO._timezone", "def rIAI(YKHO):\n return YKHO._timezone", "def rIAI(YKHO):\n return YKHO._timezone", "def Vsdc(YKHO) -> str:\n return YKHO.AD.time_zone", "def Vsdc():\n retu...
[ "0.8220309", "0.81725204", "0.81574833", "0.81574833", "0.81574833", "0.81416744", "0.7949578", "0.79456395", "0.79272133", "0.7913764", "0.7906484", "0.78125167", "0.78043795", "0.76769066", "0.7551673", "0.7537004", "0.74641114", "0.7435267", "0.7422425", "0.72778606", "0.7...
0.8405555
0
Return the timezone offset for the objects timezone.
def PduB(YKHO): return SED2(YKHO._tz, YKHO._t)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKsq(YKHO, rIAI):\n raise NotImplementedError", "def CHDc(rIAI):\n return NLrD.get(rIAI, {'offset': 0})['offset']", "def YfmJ(YKHO) -> float:\n return YKHO.AD.tz.utcoffset(YKHO.datetime()).total_seconds() / 60", "def depI():\n rIAI = T3H1()\n pbSB = rIAI.utcoffset(qcWV.datetime.now()).tota...
[ "0.8115398", "0.8084765", "0.795837", "0.75896317", "0.7437852", "0.7223107", "0.7127522", "0.70258474", "0.699047", "0.6928254", "0.6919783", "0.69000185", "0.69000185", "0.69000185", "0.68485147", "0.6808744", "0.6785393", "0.6761063", "0.67139226", "0.67102146", "0.6702036...
0.82540286
0
Return the month of the object as an integer.
def x0eS(YKHO): return YKHO._month
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0eS(YKHO) -> int:\n return YKHO.arxiv_id.month", "def x0eS(YKHO) -> int:\n if YKHO.is_old_style:\n return int(YKHO.split('/', 1)[1][2:4])\n return int(YKHO[2:4])", "def x0eS(YKHO):\n return 0", "def x0eS(YKHO):\n return 0", "def x0eS(YKHO):\n return YKHO.__month", "def cpvk(...
[ "0.80295527", "0.80130506", "0.76479876", "0.76479876", "0.76445997", "0.75239444", "0.750398", "0.7449703", "0.7403727", "0.73710954", "0.7322865", "0.7201305", "0.71723", "0.70507526", "0.70115465", "0.7011525", "0.6987259", "0.6929041", "0.6859936", "0.68597853", "0.685435...
0.7559438
6
Return the full month name.
def Pd0P(YKHO): return YKHO._fmon
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XMq6(YKHO):\n return YKHO.strftime('%B')", "def yZ3l(RYlZ):\n return lvCE[RYlZ - 1].title()", "def yZ3l(YKHO, x0eS):\n return YKHO.month_names[x0eS.month - 1]", "def eXO9(YKHO, x0eS):\n if x0eS is not None:\n x0eS = YKHO.tr('MONTH.' + x0eS.upper())\n return x0eS", "def LPP1(ZR0n):...
[ "0.8575512", "0.83716327", "0.83389586", "0.8238305", "0.8230225", "0.81229097", "0.7794224", "0.7768879", "0.77261245", "0.76191294", "0.75272906", "0.7523165", "0.74153686", "0.739087", "0.7284282", "0.721602", "0.7213561", "0.7155259", "0.7119781", "0.7090696", "0.6957875"...
0.68175364
23
Return the abbreviated month name.
def _8h2(YKHO): return YKHO._amon
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZ3l(_c1T, b1Ep):\n if b1Ep == uwaB.str_abbreviated:\n return _c1T.strftime('%b')\n elif b1Ep == uwaB.str_full:\n return _c1T.strftime('%B')\n else:\n YXxD = wkye('abbreviated_or_full', [uwaB.str_abbreviated, uwaB.str_full])\n raise ValueError(YXxD)", "def XMq6(YKHO):\n ...
[ "0.8390816", "0.8168631", "0.7891294", "0.77244174", "0.76587903", "0.7622981", "0.7541841", "0.7468351", "0.7316828", "0.7254273", "0.72239524", "0.71780705", "0.71714354", "0.7164874", "0.7104584", "0.7064434", "0.68456453", "0.67228585", "0.6674572", "0.6560327", "0.645789...
0.6132179
29
Return the abbreviated (with period) month name.
def JKII(YKHO): return YKHO._pmon
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZ3l(_c1T, b1Ep):\n if b1Ep == uwaB.str_abbreviated:\n return _c1T.strftime('%b')\n elif b1Ep == uwaB.str_full:\n return _c1T.strftime('%B')\n else:\n YXxD = wkye('abbreviated_or_full', [uwaB.str_abbreviated, uwaB.str_full])\n raise ValueError(YXxD)", "def XMq6(YKHO):\n ...
[ "0.8252416", "0.7983792", "0.79146296", "0.77985543", "0.77841014", "0.7652134", "0.76242405", "0.7577165", "0.7347374", "0.7343357", "0.73194426", "0.7284705", "0.7255145", "0.72380114", "0.72066957", "0.69427377", "0.68890977", "0.6647317", "0.6612862", "0.6603222", "0.6575...
0.6322185
25
Return the 12hour clock representation of the hour.
def rkd_(YKHO): return YKHO._pmhour
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ROt1(YKHO):\n return '%s:00:00' % YKHO.timestamp[:13]", "def JhJa(v1VR):\n if v1VR == 0:\n nRaM = '12am'\n elif v1VR == 12:\n nRaM = '12pm'\n elif v1VR > 12:\n nRaM = str(v1VR - 12) + 'pm'\n else:\n nRaM = str(v1VR) + 'am'\n return nRaM", "def q1Wl(O66n):\n ...
[ "0.7500053", "0.7410466", "0.7278863", "0.7108045", "0.70093334", "0.69480115", "0.66335976", "0.6534283", "0.6491415", "0.6364388", "0.63271576", "0.63213336", "0.6313354", "0.6284957", "0.627208", "0.6234081", "0.61735487", "0.61735487", "0.61406684", "0.6122422", "0.605614...
0.7956415
0
Return the 24hour clock representation of the hour.
def Wc5k(YKHO): return YKHO._hour
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ROt1(YKHO):\n return '%s:00:00' % YKHO.timestamp[:13]", "def zNc3(Wave: float) -> str:\n return (JRYC.datetime(2001, 1, 2) + JRYC.timedelta(hours=Wave)).time().isoformat()", "def rkd_(YKHO):\n return YKHO._pmhour", "def JeXA(YKHO):\n ROt1 = None\n aV5c = YKHO.__read_register(xTB6)\n if ...
[ "0.76360065", "0.73559564", "0.69572026", "0.6950066", "0.6831114", "0.67670083", "0.67569953", "0.66353345", "0.66280746", "0.66280746", "0.6608543", "0.650902", "0.64828527", "0.6430704", "0.6422662", "0.641182", "0.63975024", "0.63842463", "0.6302358", "0.62911856", "0.627...
0.7796278
0
Return the appropriate time modifier (am or pm).
def aynw(YKHO): return YKHO._pm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7L9(YKHO):\n wzkt = qcWV.datetime.now()\n ROt1 = 12 if wzkt.hour % 12 == 0 else wzkt.hour % 12\n pjEG = 'AM' if wzkt.hour < 12 else 'PM'\n return '%d:%02d %s' % (ROt1, wzkt.minute, pjEG)", "def FxBd():\n Oxrr = {'M': ['7:00', '9:30'], 'A': ['16:00', '19:30']}\n return Oxrr", "def FsgH(YK...
[ "0.7136491", "0.6235085", "0.6215828", "0.6097539", "0.6091346", "0.6036924", "0.6020356", "0.60093856", "0.59944487", "0.5971673", "0.58741796", "0.58529407", "0.5851693", "0.5851693", "0.58168614", "0.5808225", "0.5771384", "0.5757634", "0.5751961", "0.5744717", "0.57269007...
0.0
-1
Return the 24hour clock representation of the hour.
def ROt1(YKHO): return YKHO._hour
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wc5k(YKHO):\n return YKHO._hour", "def ROt1(YKHO):\n return '%s:00:00' % YKHO.timestamp[:13]", "def zNc3(Wave: float) -> str:\n return (JRYC.datetime(2001, 1, 2) + JRYC.timedelta(hours=Wave)).time().isoformat()", "def rkd_(YKHO):\n return YKHO._pmhour", "def JeXA(YKHO):\n ROt1 = None\n ...
[ "0.7796278", "0.76360065", "0.73559564", "0.69572026", "0.6950066", "0.67670083", "0.67569953", "0.66353345", "0.66280746", "0.66280746", "0.6608543", "0.650902", "0.64828527", "0.6430704", "0.6422662", "0.641182", "0.63975024", "0.63842463", "0.6302358", "0.62911856", "0.627...
0.6831114
5
The Python datetime module introduces the idea of distinguishing between timezone aware and timezone naive datetime values. For lossless conversion to and from datetime.datetime we record this information using True / False. DateTime makes no distinction, if we don't have any information we return None here.
def _fqu(YKHO): try: return YKHO._timezone_naive except AttributeError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LIKU(BWXx):\n return BWXx.utcoffset() is not None", "def Hjpa():\n Aues = qcWV.datetime.utcnow()\n assert Aues.tzinfo is None\n assert Aues == qcWV.datetime(1970, 1, 1, 4)", "def Aybl(BWXx: datetime) -> bool:\n return BWXx.utcoffset() is not None", "def Aybl(BWXx):\n return BWXx.tzinfo ...
[ "0.73367536", "0.702421", "0.69106853", "0.67724824", "0.6729957", "0.6693972", "0.6657824", "0.66287076", "0.64598334", "0.6433873", "0.63924426", "0.6386802", "0.6368418", "0.6357086", "0.63273984", "0.6273165", "0.621882", "0.62174845", "0.6216492", "0.6129552", "0.611153"...
0.6618191
8
Format the date/time using the current timezone representation.
def F803(YKHO, format): WKvO = iNf4(YKHO._year, YKHO._month, YKHO._day, YKHO._hour, YKHO._minute, YKHO._second) Zifp = YKHO._calcTimezoneName(WKvO, 0) qaAe = SED2(Zifp, YKHO._t) - SED2(YKHO._tz, YKHO._t) HaXD = YKHO + qaAe / 86400.0 fa_w = int((HaXD._second - HaXD._nearsec) * 1000000) d9N7 = Fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def format(YKHO, format=None, yl4j=None, NCqB=Oe8G):\n return wvEv.format_datetime(YKHO, format, tz=yl4j, locale=NCqB)", "def ApjM(format='%Y-%m-%d %H:%M:%S.%f %z'):\n return qcWV.utcnow().replace(tzinfo=FXGE.utc).strftime(format)", "def Wq7q(YKHO, JRYC):\n if RlMg == '':\n return ITS7.strftime...
[ "0.7022353", "0.66235274", "0.6564061", "0.6281122", "0.6258079", "0.61674297", "0.6163886", "0.61490476", "0.6139578", "0.6128967", "0.61225677", "0.6098477", "0.6088605", "0.6075624", "0.6064814", "0.60594434", "0.60473263", "0.6008204", "0.6003585", "0.5998012", "0.5935703...
0.0
-1
Return the time string for an object not showing seconds.
def E3u0(YKHO): return '%2.2d:%2.2d' % (YKHO._hour, YKHO._minute)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jput(YEnM):\n if not YEnM:\n return False\n return YEnM.strftime(EKRL)", "def m7L9(YKHO):\n return ''", "def ITS7(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('time'))", "def qO0_(BWXx):\n if BWXx == jQ4c.CLOCK_TIME_NONE:\n return '--:--:--.---'\n NmYP = BWXx...
[ "0.72784823", "0.70134664", "0.69467926", "0.69301224", "0.69143933", "0.69127566", "0.68922037", "0.68790454", "0.68388647", "0.67393476", "0.6731548", "0.6722671", "0.6684562", "0.66178733", "0.65718204", "0.65694183", "0.6555445", "0.6553985", "0.65532374", "0.65379506", "...
0.0
-1
Return the time string for an object not showing seconds.
def ipRG(YKHO): return '%2.2d:%2.2d %s' % (YKHO._pmhour, YKHO._minute, YKHO._pm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jput(YEnM):\n if not YEnM:\n return False\n return YEnM.strftime(EKRL)", "def m7L9(YKHO):\n return ''", "def ITS7(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('time'))", "def qO0_(BWXx):\n if BWXx == jQ4c.CLOCK_TIME_NONE:\n return '--:--:--.---'\n NmYP = BWXx...
[ "0.7276715", "0.7015263", "0.69472355", "0.6932595", "0.691648", "0.69140035", "0.68975997", "0.6882529", "0.6839711", "0.6740057", "0.67308426", "0.67234486", "0.6687528", "0.66202307", "0.6575566", "0.65687466", "0.6556502", "0.65561944", "0.6555991", "0.65391815", "0.65362...
0.0
-1
Return the time string for the object.
def dxMu(YKHO): return '%2.2d:%2.2d:%06.3f' % (YKHO._hour, YKHO._minute, YKHO._second)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ITS7(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('time'))", "def scnb(YKHO):\n return f'{YKHO.year} {YKHO.month:02} {YKHO.start_day:02} {YKHO.start_hour:02} 00 {YKHO.get_duration():6}'", "def m7L9(YKHO):\n return ''", "def m7L9() -> str:\n return F803('%H:%M:%S')", "def Px7F(...
[ "0.81459254", "0.7911665", "0.78546524", "0.7848065", "0.7763673", "0.77608407", "0.7760569", "0.7648544", "0.7637771", "0.7630699", "0.757431", "0.75485456", "0.7502937", "0.74751306", "0.74745095", "0.7457451", "0.7432823", "0.74319446", "0.738877", "0.724358", "0.72125375"...
0.0
-1
Return the time string for the object.
def o4Th(YKHO): return '%2.2d:%2.2d:%06.3f %s' % (YKHO._pmhour, YKHO._minute, YKHO._second, YKHO._pm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ITS7(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('time'))", "def scnb(YKHO):\n return f'{YKHO.year} {YKHO.month:02} {YKHO.start_day:02} {YKHO.start_hour:02} 00 {YKHO.get_duration():6}'", "def m7L9(YKHO):\n return ''", "def m7L9() -> str:\n return F803('%H:%M:%S')", "def Px7F(...
[ "0.814566", "0.79118824", "0.78540576", "0.7849004", "0.7763867", "0.7761772", "0.7760395", "0.7649249", "0.763689", "0.7629953", "0.75744057", "0.7549466", "0.75023174", "0.7473992", "0.7473019", "0.7458499", "0.7434401", "0.7431502", "0.73893756", "0.724324", "0.7212408", ...
0.0
-1
Return month as a 2 digit string.
def cpvk(YKHO): return '%02d' % YKHO._month
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XMq6(YKHO):\n return YKHO.strftime('%B')", "def kpxX(Emd4, lO87: typing.Union[int, str], x0eS: typing.Union[int, str]) -> str:\n _fR_: str\n if isinstance(lO87, int):\n _fR_ = str(lO87)\n else:\n _fR_ = lO87\n dG5d: str\n if isinstance(x0eS, int):\n dG5d = str(x0eS)\n ...
[ "0.76541597", "0.76141465", "0.74202126", "0.73357284", "0.72388566", "0.71808374", "0.71740407", "0.7143689", "0.71284944", "0.711813", "0.7089262", "0.69924146", "0.69642", "0.6926073", "0.69012344", "0.68908286", "0.68850577", "0.6838241", "0.6795324", "0.6773195", "0.6769...
0.80739707
0
Return day as a 2 digit string.
def I1iR(YKHO): return '%02d' % YKHO._day
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbOh(CjKC):\n return str(CjKC) if CjKC >= 10 else '0' + str(CjKC)", "def tbOh(CjKC):\n return str(CjKC) if CjKC >= 10 else '0' + str(CjKC)", "def tbOh(CjKC):\n return str(CjKC) if CjKC >= 10 else '0' + str(CjKC)", "def CjKC(JRYC: datetime.datetime) -> str:\n CjKC: str = JRYC.strftime('%A')\n ...
[ "0.8262863", "0.8262863", "0.8262863", "0.76570076", "0.72256327", "0.7037711", "0.7026473", "0.7025394", "0.69890344", "0.69530845", "0.69017965", "0.67641664", "0.6661215", "0.66382563", "0.6588777", "0.65552384", "0.653488", "0.653488", "0.650543", "0.6498834", "0.647837",...
0.76779515
3
Return the date in RFC 822 format.
def W1R5(YKHO): PduB = omL5(SED2(YKHO._tz, YKHO._t)) return '%s, %2.2d %s %d %2.2d:%2.2d:%2.2d %s' % (YKHO._aday, YKHO._day, YKHO._amon, YKHO._year, YKHO._hour, YKHO._minute, YKHO._nearsec, PduB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pbww(YKHO, nPrm):\n if YKHO.datetime_formatting == 'rfc-2822':\n return pbww(nPrm)\n return nPrm.isoformat()", "def qgZJ(_c1T):\n if not _c1T:\n return ''\n _c1T = _c1T + qcWV.timedelta(seconds=-ITS7.timezone)\n if ITS7.daylight:\n _c1T += qcWV.timedelta(seconds=ITS7.altzo...
[ "0.739641", "0.7242609", "0.6836366", "0.6759257", "0.66857404", "0.64279026", "0.64248437", "0.6360331", "0.6323312", "0.6266395", "0.6250262", "0.6235384", "0.6186583", "0.6147521", "0.61394966", "0.61369145", "0.6085036", "0.6083033", "0.60578233", "0.60312426", "0.6023813...
0.5762338
45
Return the object in ISO standard format.
def PCz5(YKHO): return '%.4d-%.2d-%.2d %.2d:%.2d:%.2d' % (YKHO._year, YKHO._month, YKHO._day, YKHO._hour, YKHO._minute, YKHO._second)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aIUD(YKHO) -> str:\n return YKHO.isoformat()", "def A4Zb(YKHO):\n return ''", "def zAg0(YKHO):\n return YKHO.isoformat(sep=' ')", "def sayk(YKHO) -> str:\n return YKHO.isoformat()", "def jOZ2(YEnM):\n if hasattr(YEnM, 'isoformat'):\n return YEnM.isoformat()\n else:\n rai...
[ "0.7484331", "0.74281967", "0.73340505", "0.7290921", "0.7036024", "0.694165", "0.68375236", "0.6823892", "0.6749814", "0.6728786", "0.66877955", "0.66518193", "0.6645622", "0.663551", "0.6621834", "0.6501976", "0.6364008", "0.63534164", "0.6335463", "0.63161755", "0.63131934...
0.6825204
7
Return the object in the format used in the HTML4.0 specification, one of the standard forms in ISO8601.
def s48U(YKHO): wQoI = YKHO.toZone('UTC') return '%0.4d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2dZ' % (wQoI._year, wQoI._month, wQoI._day, wQoI._hour, wQoI._minute, wQoI._second)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AJqZ(YKHO):\n if YKHO.timezoneNaive():\n return '%0.4d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2d' % (YKHO._year, YKHO._month, YKHO._day, YKHO._hour, YKHO._minute, YKHO._second)\n PduB = Ja1h(SED2(YKHO._tz, YKHO._t))\n return '%0.4d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2d%s' % (YKHO._year, YKHO._month, YKHO._day, YKH...
[ "0.7421363", "0.7273152", "0.7188766", "0.6927814", "0.67410344", "0.6674254", "0.66669995", "0.6632951", "0.66047144", "0.6575497", "0.6539288", "0.6507121", "0.64760214", "0.6435863", "0.6332522", "0.63307995", "0.63106585", "0.62997305", "0.6266479", "0.624583", "0.6232179...
0.7264101
2
Return a standard library datetime.datetime
def yllb(YKHO): TXj5 = YKHO.timezoneNaive() if TXj5: TYhG = None else: TYhG = gY8B[YKHO._tz].tzinfo CsFy = int(YKHO._second) foC1 = YKHO.micros() % 1000000 JRYC = qcWV(YKHO._year, YKHO._month, YKHO._day, YKHO._hour, YKHO._minute, CsFy, foC1, TYhG) return JRYC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slWZ():\n return qcWV(2000, 1, 1, 0, 0, 0, EU50 + 1)", "def qcWV(ZpyY=None):\n if ZpyY is None:\n return gd1d.DateTime(ITS7.gmtime())\n else:\n return gd1d.DateTime(ITS7.gmtime(ZpyY))", "def qcWV(YKHO):\n return qcWV.datetime(YKHO.year, YKHO.month, YKHO.day, YKHO.hour, YKHO.min, Y...
[ "0.7020698", "0.699768", "0.67883617", "0.673259", "0.67171603", "0.66509205", "0.662728", "0.6618832", "0.6613371", "0.66110367", "0.6596779", "0.65641475", "0.65421116", "0.65396744", "0.65213436", "0.6494132", "0.64753246", "0.64578867", "0.64082116", "0.63944596", "0.6370...
0.69126666
2
Convert the time to UTC and return a timezone naive datetime object
def XFBR(YKHO): h5YN = YKHO.toZone('UTC') CsFy = int(h5YN._second) foC1 = h5YN.micros() % 1000000 JRYC = qcWV(h5YN._year, h5YN._month, h5YN._day, h5YN._hour, h5YN._minute, CsFy, foC1) return JRYC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jm53(i8WE: datetime) -> qcWV:\n if i8WE.tzinfo is None:\n return qcWV(*i8WE.timetuple()[:6], tzinfo=BRdn)\n elif str(i8WE.tzinfo) != str(BRdn):\n return i8WE.astimezone(BRdn)\n return i8WE", "def VnpX(ppPa: datetime.datetime) -> qcWV.datetime:\n UZor = qcWV.timezone(qcWV.timedelta(s...
[ "0.7500589", "0.74305254", "0.73125994", "0.73125994", "0.72220695", "0.72220695", "0.72220695", "0.71179086", "0.7094749", "0.70471466", "0.6974847", "0.6931955", "0.6916906", "0.68520564", "0.6844777", "0.67881066", "0.6785604", "0.6749597", "0.67385894", "0.67226666", "0.6...
0.66065377
27
Either a DateTime or a number may be subtracted from a DateTime, however, a DateTime may not be subtracted from a number.
def qjfR(YKHO, Elif): if hasattr(Elif, '_d'): return (YKHO.micros() - Elif.micros()) / 86400000000.0 else: return YKHO.__add__(-Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qjfR(YKHO, Elif):\n if not isinstance(Elif, YKHO.__class__) and isinstance(Elif, qcWV):\n Elif = YKHO.fromdatetime(Elif)\n Aofo = super(YKHO.__class__, YKHO).__sub__(Elif)\n if isinstance(Aofo, qcWV):\n return YKHO.fromdatetime(Aofo)\n elif isinstance(Aofo, fCoM):\n return uGwy...
[ "0.67136145", "0.6514166", "0.6508847", "0.6499777", "0.6200779", "0.61754376", "0.6119978", "0.6088935", "0.6073483", "0.6073483", "0.607009", "0.60513943", "0.59848726", "0.5920464", "0.5916416", "0.58969706", "0.58969706", "0.5892407", "0.58912075", "0.58893615", "0.587674...
0.5583508
46
Convert a DateTime to a string that looks like a Python expression.
def wHJl(YKHO): return "{}('{}')".format(YKHO.__class__.__name__, str(YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsX7(YKHO):\n Aofo = u'{}({}'.format(YKHO.function.lower(), YKHO.metric_name)\n if YKHO.dimensions_str:\n Aofo += u'{{{}}}'.format(YKHO.dimensions_str)\n if YKHO.deterministic:\n Aofo += u', deterministic'\n if YKHO.period:\n Aofo += u', {}'.format(str(YKHO.period))\n Aofo +...
[ "0.5786874", "0.5763769", "0.57178944", "0.57045174", "0.57045174", "0.5686805", "0.5683455", "0.5676961", "0.5671849", "0.55069315", "0.54229575", "0.54123354", "0.5399925", "0.5399925", "0.5381179", "0.5373444", "0.5295424", "0.52926", "0.5289287", "0.5282674", "0.5270381",...
0.0
-1
Convert a DateTime to a string.
def zAg0(YKHO): LVAh, r8hN, Csk6 = (YKHO._year, YKHO._month, YKHO._day) MKlR, hgl7, KCHu, a1PO = (YKHO._hour, YKHO._minute, YKHO._second, YKHO._tz) if KCHu == int(KCHu): return '%4.4d/%2.2d/%2.2d %2.2d:%2.2d:%2.2d %s' % (LVAh, r8hN, Csk6, MKlR, hgl7, KCHu, a1PO) else: return '%4.4d/%2.2d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def hLAQ(YEnM):\n return YEnM.strftime('%Y-%m-%d %H:%M:%S')", "def hLAQ(ppPa):\n return ppPa.strftime('%Y-%m-%dT%H:%M:%S.%fZ')", "d...
[ "0.79117006", "0.79117006", "0.7815086", "0.7733769", "0.77086914", "0.769606", "0.7597226", "0.75921404", "0.7480809", "0.7448039", "0.74377024", "0.7397062", "0.73960614", "0.7366059", "0.72787464", "0.7277611", "0.7222145", "0.7211117", "0.7147815", "0.71156037", "0.709971...
0.58804137
95
converts string to unicode
def GpaL(vIwR): try: return QMSQ(vIwR, 'utf-8') except: pass try: return QMSQ(vIwR, 'iso-8859-1') except: pass return QMSQ(vIwR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def brQJ(vIwR):\n if isinstance(vIwR, str):\n return vIwR.decode('utf-8')\n else:\n return QMSQ(vIwR)", "def brQJ(YKHO, fRyv):\n if not isinstance(fRyv, QMSQ):\n try:\n fRyv = QMSQ(fRyv)\n except:\n try:\n fRyv = fRyv.decode('utf-8')\n ...
[ "0.8196139", "0.81463116", "0.8035327", "0.78704506", "0.7859127", "0.78492993", "0.7844166", "0.7776731", "0.7739471", "0.77283645", "0.7726108", "0.77184784", "0.7629644", "0.7608919", "0.7550884", "0.7543503", "0.7537567", "0.75191796", "0.75191796", "0.7469073", "0.745741...
0.7893894
3
returns lines with given colors
def yOvc(YKHO, qfpW, Nqlg): return [YKHO.__color(qfpW) + GpaL(zFiD) + YKHO.__reset() for zFiD in Nqlg]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LuRs(iMGt, i6Hb):\n iMGt = getattr(QrM1.cm, iMGt)\n JCyR = 0.8 * 255\n fnpP = [iMGt(int(YRbF)) for YRbF in oyIN.linspace(0, JCyR, i6Hb)]\n return fnpP", "def fRt4(Nqlg):\n MTCs = ZbWC.compile('\\\\#\\\\w+')\n return [MTCs.search(zFiD).group(0) for zFiD in Nqlg if MTCs.search(zFiD)]", "def...
[ "0.73459536", "0.7320949", "0.6898308", "0.6682935", "0.66028374", "0.6513473", "0.6413022", "0.6172733", "0.61353636", "0.61230916", "0.6101369", "0.609297", "0.6041533", "0.5933413", "0.59072274", "0.5899032", "0.5895735", "0.58484507", "0.58216065", "0.5782854", "0.5774434...
0.70109653
2
Initialize the _data attribute.
def vPDf(YKHO, YEnM): for fvDH in YKHO._category_aux: VE5B = fvDH.split(' ', 1) if len(VE5B) > 1: H5ew = VE5B[1].replace(' ', '') SUNP = VE5B[0].lower() Kn3E = (H5ew, SUNP) if SUNP != 'min' and SUNP != 'max': Kn3E = (fvDH.replace(' ', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qqxd(YKHO, nPrm):\n assert type(nPrm) is dict, 'dict expected: %r' % type(nPrm)\n assert len(nPrm) is 1, 'size of dict should be 1: %r' % len(nPrm)\n YKHO._name = nPrm.keys()[0]\n YKHO._data = oyIN.asarray(nPrm[YKHO._name])\n YKHO._set = True", "def FIMM(YKHO, nPrm=None):\n YKHO.data = nPrm...
[ "0.8103289", "0.7943673", "0.7901121", "0.7817221", "0.7817221", "0.7817221", "0.7817221", "0.77703625", "0.7699275", "0.7651114", "0.7613723", "0.75978", "0.74878275", "0.74426097", "0.74426097", "0.74426097", "0.74426097", "0.74426097", "0.74426097", "0.7421886", "0.7420932...
0.0
-1
Add all sites to the lattice.
def M4eI(YKHO): for YRbF in range(YKHO.shape[0]): for r845 in range(YKHO.shape[1]): for G1Hx in range(YKHO.shape[2]): for KCHu, qpDA in enumerate(YKHO.cell.sites): RIr2 = jth9.deepcopy(qpDA) ZMlM = YKHO.cell.a1 * YRbF + YKHO.cell.a2 * r845 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZFkc(YKHO, qpDA):\n if qpDA.label == None:\n qpDA.label = DphP[str(YKHO.Nsites)]\n if qpDA.color == None:\n qpDA.color = qNs0[str(YKHO.Nsites)]\n YKHO.sites.append(qpDA)\n YKHO.Nsites += 1", "def nJYo(YKHO, *qIxc):\n tux7 = czvP.lattice(*qIxc)\n YKHO.lattices.append()\n YKH...
[ "0.6309895", "0.6275667", "0.6090934", "0.6054217", "0.5896788", "0.58301216", "0.57959175", "0.543359", "0.5431688", "0.5389579", "0.5339891", "0.533849", "0.52933353", "0.5290242", "0.5213425", "0.5212648", "0.5191459", "0.51701784", "0.51521915", "0.5148904", "0.51416284",...
0.60979295
2
Given a file path to an h5 file assumed to house a tensor, load that tensor into memory and return a pointer.
def B_59(qaEx): aF0O = g5R2.File(qaEx, 'r') SzJA = list(aF0O.keys())[0] nPrm = list(aF0O[SzJA]) nPrm = nPrm[0:] nPrm = oyIN.stack(nPrm, axis=0) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBws(IznC, pmON='/data'):\n ytgA = bHSU(IznC)\n Q9hq = ytgA.get_node(pmON)\n vb7U = Q9hq.read()\n ytgA.close()\n return vb7U", "def qdsW(pmON: str, NArs: Optional[Params]) -> idx7.Tensor:\n pmON = zqrL(pmON, NArs)\n RRlC = SC2F(f'{pmON}/*')\n return idx7.stack([idx7.tensor(idx7.load(e...
[ "0.74386346", "0.7088237", "0.6420383", "0.6390996", "0.6390996", "0.6390679", "0.62577385", "0.61808825", "0.6088781", "0.60585237", "0.6040434", "0.6010217", "0.59895724", "0.59883887", "0.5960219", "0.5953363", "0.5927101", "0.59157044", "0.5912356", "0.59054774", "0.58810...
0.63854605
7
r"""Lists the indexes that match the specified filters. Datastore uses an. eventually consistent query to fetch the list of indexes and may occasionally return stale results.
def x1iM(YKHO, QePW, jMd6=None): GPtr = YKHO.GetMethodConfig('List') return YKHO._RunMethod(GPtr, QePW, global_params=jMd6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIf5(YKHO):\n return Vt7D(YKHO.headers, YKHO.read_hosts, 'GET', '/1/indexes/', YKHO.timeout)", "def bS0K(YKHO):\n bS0K = YKHO.execute(YKHO.commands.get_indexes(YKHO.name))\n return [tTFA(*SjLr) for SjLr in bS0K]", "def nIf5(YKHO) -> YrBT[[slBm.ListIndexesRequest], ld92[slBm.ListIndexesResponse]]:\...
[ "0.7166928", "0.6984735", "0.69812423", "0.6901423", "0.68977517", "0.6677398", "0.65527475", "0.6521577", "0.6449868", "0.64187646", "0.6399197", "0.62890285", "0.621794", "0.6211446", "0.618454", "0.59924066", "0.59858257", "0.5958255", "0.59540445", "0.59331757", "0.590530...
0.0
-1
Get color of plots from colormap. the color of plots should be change by the flag "color=next(color)"
def fRt4(zgfS): qwmW = 1.0 / (zgfS + 1.0) lz7s = 1.0 hCaZ = zgfS + 1 W8dc = oyIN.linspace(qwmW, lz7s, hCaZ) qfpW = iter(QrM1.cm.hot(W8dc)) return qfpW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ni5_(YKHO):\n YKHO.usedcc = [zFiD.get_c() for zFiD in YKHO.axes.lines]\n for Z9rn in YKHO.cc:\n if Z9rn not in YKHO.usedcc:\n return Z9rn\n YRbF = len(YKHO.axes.lines)\n c6rc = len(YKHO.cc)\n YRbF = YRbF % c6rc\n return YKHO.cc[YRbF]", "def YI3L(YKHO):\n return Jw9H.ev_...
[ "0.66673964", "0.66340584", "0.6528371", "0.64897525", "0.64897525", "0.6401957", "0.63796616", "0.63752025", "0.6363454", "0.6329437", "0.63135356", "0.6285648", "0.6285648", "0.62472534", "0.62011373", "0.61796063", "0.61766917", "0.6171971", "0.61602545", "0.6136812", "0.6...
0.0
-1
Return the gradient magnitude of the image using Sobel operator
def ixVO(Emd4, LNo8): d7Eb = True if len(LNo8.shape) > 2 else False cwXX = XC5k.Sobel(LNo8, XC5k.CV_64F, 1, 0, ksize=3) LcQ_ = XC5k.Sobel(LNo8, XC5k.CV_64F, 0, 1, ksize=3) if d7Eb: cwXX = oyIN.max(cwXX, axis=2) LcQ_ = oyIN.max(LcQ_, axis=2) vegE = oyIN.sqrt(cwXX ** 2 + LcQ_ ** 2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vz2l(foZr):\n assert foZr.ndim == 2\n eUWA = H9dw(foZr, axis=0)\n Jw7X = H9dw(foZr, axis=1)\n return oyIN.hypot(Jw7X, eUWA)", "def Ixeq(efhx):\n tyTg = [[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]]\n Cs4S = [[1, 2, 1], [0, 0, 0], [-1, -2, -1]]\n return pxDE(efhx, tyTg, Cs4S)", "def VYvU(LNo8):\...
[ "0.7129523", "0.6630078", "0.65913546", "0.6577655", "0.65460044", "0.64911395", "0.6387012", "0.62743694", "0.62161976", "0.619595", "0.6084272", "0.5973833", "0.5926217", "0.58606005", "0.5850043", "0.5811828", "0.57850057", "0.5765125", "0.57628167", "0.57622105", "0.57440...
0.614504
10
Validate the blockchain, returns False if invalid previous hash is found Hash each block and compare to the next block's prev_hash, stopping at the last block.
def EDTt(YKHO): PT0P = len(YKHO.chain) pbT6 = None if PT0P == 1: return 'Add blocks and then validate chain.' for WKvO in range(0, PT0P, 1): if WKvO < PT0P - 1: hash = YKHO.hash(YKHO.chain[WKvO]) xIeG = YKHO.chain[WKvO + 1]['prev_hash'] if hash == '0' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eKr0(YKHO):\n for YRbF in range(1, len(YKHO.blocks)):\n AwID = YKHO.blocks[YRbF - 1]\n nZhx = YKHO.blocks[YRbF]\n if nZhx.header['prevBlockH'] != Wi_y(AwID):\n return False\n return True", "def Xs3P(YKHO, eNCK):\n pZbc = eNCK[0]\n HFkI = 1\n while HFkI < len(eNC...
[ "0.7822906", "0.7528738", "0.7517534", "0.75117224", "0.7434074", "0.7354781", "0.73291004", "0.7302187", "0.72495735", "0.71486074", "0.7133101", "0.7103134", "0.7083091", "0.70758075", "0.70735294", "0.705067", "0.69841945", "0.6946074", "0.68062276", "0.6752413", "0.67239"...
0.77432895
1
Remove a group, if defaultGroupName parameter is specified, users belonging to group will be added to defaultGroup
def B8Nn(YKHO, uOe2, z_K2=''): return YKHO.pm_getUserManager().removeGroup(YKHO._unbox(uOe2), YKHO._unbox(z_K2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rOFc(u0KH):\n cQ68.deleteGroup(u0KH)", "def B8Nn(YKHO, *qIxc):\n return _VfD.GroupsModelPlugin_removeGroup(YKHO, *qIxc)", "def xsZs():\n _eu6 = QePW.form['_id']\n nPrm, Wxnj, Ol8d = XPxY.remove_group(_eu6)\n return ACQn(nPrm, Wxnj, Ol8d)", "def y0XA(YKHO, IXKo):\n NArs = {'GroupName': I...
[ "0.758469", "0.72813445", "0.72337186", "0.7206924", "0.7107637", "0.7060166", "0.7005081", "0.6991681", "0.6966071", "0.69198585", "0.6779706", "0.67582583", "0.6740737", "0.66829383", "0.66750973", "0.66625386", "0.6646494", "0.66366994", "0.6573747", "0.65600723", "0.65352...
0.85222006
0
Returns all the Attachments on this page
def k_Ca(YKHO, B2Dn): return tuple((b9cN.AttachmentProxy(nosv) for nosv in YKHO.pm_getSpaceManager().listAttachments(YKHO._unbox(B2Dn))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CS4K(YKHO):\n if 'attachments' in YKHO._prop_dict:\n return hecO(YKHO._prop_dict['attachments'])\n else:\n return None", "def CS4K(YKHO):\n return YKHO._attachments", "def CS4K(YKHO):\n return uwaZ(YKHO)", "def CS4K(YKHO):\n return YKHO.properties.get('attachments', NTZX(YKHO...
[ "0.772384", "0.76337385", "0.74775815", "0.71543306", "0.7011809", "0.69646555", "0.6808242", "0.6755822", "0.6719818", "0.65991324", "0.6590045", "0.64529496", "0.6447507", "0.6377839", "0.63595575", "0.6294113", "0.62877893", "0.6274989", "0.61571807", "0.6006687", "0.58928...
0.6914736
6
Get the height of the board.
def VAHQ(YKHO): return YKHO._grid_height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v2(YKHO):\n return YKHO.board.shape[0]", "def bAiv(YKHO):\n return YKHO.height", "def bAiv(YKHO):\n return YKHO.height", "def bAiv(YKHO):\n return YKHO._height", "def VAHQ(YKHO):\n return YKHO._height", "def VAHQ(YKHO):\n return YKHO._height", "def xglF(YKHO):\n return YKHO._...
[ "0.85063905", "0.78268176", "0.78268176", "0.77902925", "0.77875626", "0.77875626", "0.77665955", "0.77665955", "0.77665955", "0.77665955", "0.7765325", "0.7761614", "0.7758976", "0.7755297", "0.77416444", "0.77371883", "0.77204704", "0.7695517", "0.7692841", "0.7692841", "0....
0.76299065
26
Compute distance of point from origin
def tjUp(AU8u): Ayfi = epAf.sqrt(AU8u[0] ** 2 + AU8u[1] ** 2) return Ayfi < 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5", "def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5", "def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5", "def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5", "def JpbV(YKHO):\n return (YKHO.x ** 2 + ...
[ "0.8592622", "0.8592622", "0.8592622", "0.8592622", "0.8592622", "0.8592622", "0.8592622", "0.8589194", "0.8426623", "0.8299649", "0.82555103", "0.8100407", "0.7637371", "0.75797254", "0.7438227", "0.7361935", "0.7350827", "0.7340323", "0.7242112", "0.7234952", "0.72301054", ...
0.0
-1
Open a window in the configured web browser
def XAYO(bD7m): bo34.debug('about to open url "{url}" in browser "{browser}"'.format(url=bD7m, browser=zE7m)) SYsl = HywK.get(zE7m) SYsl.open(bD7m, new=1 if dqdv else 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r46S(bD7m):\n import webbrowser\n webbrowser.open_new(bD7m)", "def iYoP(bD7m):\n HywK.open_new(bD7m)", "def open(bD7m):\n HywK.open(bD7m)", "def QM3s(YKHO):\n HywK.open(YKHO.url)", "def oTNk(bD7m):\n HywK.open(bD7m)", "def rTkt(bD7m: str):\n fGmS(wMpc + [bD7m], stdout=n7fV, stder...
[ "0.8304287", "0.82636064", "0.8236007", "0.8208047", "0.779236", "0.77756613", "0.7633263", "0.76270103", "0.7626843", "0.7561175", "0.7540367", "0.75382036", "0.750282", "0.74430615", "0.74001026", "0.73759526", "0.7350961", "0.7321711", "0.7318665", "0.726032", "0.725884", ...
0.8214391
3
Accepts an iterable of iterables and returns a flattened generator.
def PWgb(fotz): for ZfUD in fotz: if hasattr(ZfUD, '__iter__') and (not isinstance(ZfUD, str)): for YRbF in PWgb(ZfUD): yield YRbF else: yield ZfUD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rpuD(ix7N):\n for ZfUD in ix7N:\n if GfZ5(ZfUD):\n yield from rpuD(ZfUD)\n else:\n yield ZfUD", "def PWgb(OxJJ):\n for NcIh in OxJJ:\n for U6D_ in NcIh:\n yield U6D_", "def PWgb(OxJJ):\n return WhY1.chain.from_iterable(OxJJ)", "def O_Ln(OxJJ)...
[ "0.81040424", "0.80731213", "0.77567875", "0.75990325", "0.7535667", "0.7438778", "0.7310459", "0.72419536", "0.72322446", "0.7186526", "0.71714306", "0.7150428", "0.710171", "0.70805573", "0.70625925", "0.704042", "0.703847", "0.69895977", "0.6967132", "0.696174", "0.6882046...
0.6934915
20
Returns a 2D or 3D tensorflow sequence mask depending on the argument 'expand'
def rWMo(Fbjb, Mkmy, lHli=True): wzH_ = ZylS.reduce_max(Fbjb) wzH_ = N8Pk(wzH_, ZylS.convert_to_tensor(Mkmy)) if lHli: return ZylS.expand_dims(ZylS.sequence_mask(Fbjb, maxlen=wzH_, dtype=ZylS.float32), axis=-1) return ZylS.sequence_mask(Fbjb, maxlen=wzH_, dtype=ZylS.float32)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v0v7(ZHfW: torch.Tensor, yDqo: torch.dtype, _SUv: Optional[int]=None):\n K_dq, oe5C = ZHfW.size()\n _SUv = _SUv if _SUv is not None else oe5C\n XK0W = ZHfW[:, None, None, :].expand(K_dq, 1, _SUv, oe5C).to(yDqo)\n cdJb = 1.0 - XK0W\n return cdJb.masked_fill(cdJb.to(ht2j.bool), ht2j.finfo(yDqo).mi...
[ "0.61623263", "0.6123722", "0.604792", "0.5906779", "0.58720964", "0.5829154", "0.5808877", "0.57319707", "0.5713542", "0.56259024", "0.5621295", "0.5596571", "0.5527759", "0.55162674", "0.5507142", "0.54506266", "0.5442038", "0.5422795", "0.5405426", "0.53883827", "0.537968"...
0.62781715
0
Computes a masked SigmoidCrossEntropy with logits
def tFVW(x6A0, o4Jx, HGS3, QjBU, ZHfW=None): if ZHfW is None: ZHfW = rWMo(HGS3, QjBU.outputs_per_step, False) with ZylS.control_dependencies([ZylS.assert_equal(ZylS.shape(x6A0), ZylS.shape(ZHfW))]): N8L0 = ZylS.nn.weighted_cross_entropy_with_logits(targets=x6A0, logits=o4Jx, pos_weight=QjBU.cros...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tFVW(KeL5, Crrw, ZHfW):\n Crrw = ZylS.cast(Crrw, dtype=ZylS.float32)\n N77f = ZylS.nn.sigmoid_cross_entropy_with_logits(logits=KeL5, labels=Crrw)\n N77f = ZylS.reduce_mean(N77f, axis=1)\n ZHfW = ZylS.cast(ZHfW, dtype=ZylS.float32)\n ZHfW /= ZylS.reduce_mean(ZHfW)\n N77f *= ZHfW\n return Zy...
[ "0.7653099", "0.73728734", "0.732673", "0.7305595", "0.7050474", "0.7024927", "0.6944452", "0.6899821", "0.6899821", "0.6899821", "0.688765", "0.6860611", "0.6832313", "0.68242794", "0.6760238", "0.67297477", "0.66642165", "0.6660755", "0.6624909", "0.656646", "0.64539164", ...
0.65404004
20
If provided 'pk' is "me" then return the current user.
def GKJL(YKHO, QePW, _sei=None): if _sei == 'me': return oGir(hq_r(QePW.user, context={'request': QePW}).data) return super(_wf5, YKHO).retrieve(QePW, _sei)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RuJL():\n return c5ow.get()", "def c5ow(YKHO, **B2fa):\n return YKHO.me(**B2fa)", "def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n return YKHO.auth.store.user_model.get_by_id(fnHH['user_id'])", "def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['...
[ "0.74767625", "0.7396965", "0.72208893", "0.7129037", "0.7039044", "0.6958749", "0.6942254", "0.68535507", "0.68535507", "0.6849746", "0.68440413", "0.6815235", "0.6811996", "0.6811996", "0.6811996", "0.6811996", "0.6811996", "0.6742769", "0.67423195", "0.6727416", "0.6719681...
0.67216855
20
Selects the face contour depending on the reletive position of the head
def P4Gg(YKHO, iXlf, shtX, a5fv, aQ_q, tYYP, yDqo=ht2j.float32): Ep8u = iXlf.shape[0] nz8K = ht2j.index_select(shtX.view(Ep8u, -1, 3), 1, tYYP) xQHI = bA5s(nz8K.view(-1, 3), dtype=yDqo).view(Ep8u, -1, 3, 3) WK9n = ht2j.eye(3, device=iXlf.device, dtype=yDqo).unsqueeze_(dim=0).expand(Ep8u, -1, -1) for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o9um(nPrm):\n sdCG = UuNZ(nPrm)\n CWXo = nPrm['position_data']['face_landmarks'][nPrm['i']]\n S6mZ = nPrm['position_data']['face_box'][nPrm['i']]\n if S6mZ is not None:\n for XP5J in CWXo:\n XC5k.circle(sdCG, XP5J, 3, (255, 0, 0))\n else:\n for XP5J in CWXo:\n ...
[ "0.6052296", "0.5932075", "0.58097047", "0.5795803", "0.5767945", "0.5749584", "0.5693097", "0.5686195", "0.56440824", "0.5623782", "0.5606021", "0.56010693", "0.5561627", "0.55550903", "0.5541423", "0.5538159", "0.5506437", "0.550113", "0.54518956", "0.54376554", "0.54372215...
0.0
-1
Return a ConfusionMatrix with the tags from ``gold`` as the reference values, with the predictions from ``tag_sents`` as the predicted values. >>> from nltk.tag import PerceptronTagger >>> from nltk.corpus import treebank >>> tagger = PerceptronTagger()
def wArC(YKHO, T4t1): return YKHO._confusion_cached(tuple((tuple(_dZy) for _dZy in T4t1)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RW_t(YKHO, T4t1):\n h4mH = YKHO.tag_sents((EVUY(_dZy) for _dZy in T4t1))\n BUJl = [eOtH for sJrW, eOtH in eNCK.from_iterable(T4t1)]\n yyUL = [eOtH for sJrW, eOtH in eNCK.from_iterable(h4mH)]\n return DNZx(BUJl, yyUL)", "def A3YK(YKHO, Y8eF, aMgO):\n import tensorflow as ZylS\n import pandas...
[ "0.6705044", "0.6106656", "0.5749428", "0.56271595", "0.55416024", "0.5485092", "0.53537416", "0.5342051", "0.5337895", "0.5322043", "0.51936746", "0.5165712", "0.51370734", "0.5132021", "0.5130306", "0.5099205", "0.50683236", "0.5064493", "0.5054829", "0.5042956", "0.5036374...
0.59878755
2