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
Test removing a config entry.
async def test_setup_and_remove_config_entry(ajET: HomeAssistant, pnyF: Platform) -> None: nqEK = D4AW.async_get(ajET) wbgH = Jaru(data={}, domain=Sugg, options={LoMa: 'switch.test', YqP4: pnyF}, title='ABC') wbgH.add_to_hass(ajET) assert await ajET.config_entries.async_setup(wbgH.entry_id) await aj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_unload_config_entry(ajET: HomeAssistant, bFCs: AiohttpClientMocker) -> None:\n bTKY = await OSs1(ajET, bFCs)\n assert ajET.data[Sugg]\n await ajET.config_entries.async_unload(bTKY.entry_id)\n await ajET.async_block_till_done()\n assert not ajET.data.get(Sugg)", "async def test_unloa...
[ "0.6794943", "0.67607576", "0.6741416", "0.66078603", "0.6600545", "0.6585527", "0.6517025", "0.64718556", "0.6432699", "0.6423662", "0.6422932", "0.63950044", "0.63535124", "0.6318535", "0.63124114", "0.62889904", "0.628844", "0.6277168", "0.6267392", "0.62319726", "0.622030...
0.60206574
33
Test removing a config entry restores assistant expose settings.
async def test_restore_expose_settings(ajET: HomeAssistant, pnyF: Platform) -> None: await C3TX(ajET, 'homeassistant', {}) nqEK = D4AW.async_get(ajET) pRgi = nqEK.async_get_or_create('switch', 'test', 'unique', original_name='ABC') wbgH = Jaru(data={}, domain=Sugg, options={LoMa: pRgi.id, YqP4: pnyF}, t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_unload_config_entry(ajET: HomeAssistant, bFCs: AiohttpClientMocker) -> None:\n bTKY = await OSs1(ajET, bFCs)\n assert ajET.data[Sugg]\n await ajET.config_entries.async_unload(bTKY.entry_id)\n await ajET.async_block_till_done()\n assert not ajET.data.get(Sugg)", "async def test_unloa...
[ "0.71226645", "0.6908797", "0.6855264", "0.6637656", "0.6562663", "0.6540723", "0.648373", "0.6463226", "0.64506954", "0.64284444", "0.63742214", "0.6373202", "0.6333878", "0.63282835", "0.6264061", "0.62605166", "0.6242518", "0.62409437", "0.624044", "0.6238645", "0.6230249"...
0.0
-1
Returns the pixel width of the image for the current test dimensions.
def WFN2(YKHO): return YKHO.expected_tile_width * yviY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V8C_(YKHO):\n TVTK = oyIN.size(YKHO.img, 0)\n return TVTK", "def TVTK(YKHO) -> int:\n return YKHO._image_data.width", "def xiCJ(YKHO):\n return YKHO._image.width()", "def xiCJ(YKHO):\n return gmYn(YKHO.image.width)", "def nph1(YKHO):\n return YKHO.size", "def nph1(YKHO):\n return...
[ "0.8090083", "0.8090057", "0.8073078", "0.7651389", "0.7412325", "0.7412325", "0.7344347", "0.73064363", "0.72439915", "0.7169658", "0.7138261", "0.71101564", "0.7085659", "0.707055", "0.70686865", "0.70643705", "0.7061719", "0.70256", "0.7020718", "0.7015426", "0.70134586", ...
0.7578232
4
Return a text/plain HttpResponse with content "pinned" or "not pinned".
def Zqn5(): Aofo = 'pinned' if Ntr0() else 'not pinned' return igJ6(Aofo, content_type='text/plain')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdCG(*qIxc, **B2fa):\n return igJ6()", "def jGRS(QePW):\n return igJ6('Hi, I am healty!')", "def eox6(YKHO, OaeV):\n return 'Keep trying. You are almost there.'", "def WEzA(QePW):\n return o2Vr.objects.select_related('project').filter(pinned=True, user=QePW.user).exclude(folder='trash')", ...
[ "0.5446802", "0.54019904", "0.5344352", "0.52621114", "0.525818", "0.52391475", "0.51942843", "0.51916856", "0.5173171", "0.51656467", "0.51618356", "0.51245207", "0.50807655", "0.50224704", "0.50194836", "0.5010902", "0.49873188", "0.49803162", "0.4970237", "0.49619696", "0....
0.8694406
0
Parses a package.json manifest file.
def Lb40(EZMt): with open(EZMt, 'r') as eHNT: nPrm = eHNT.read() if nPrm: return qQXR.loads(nPrm) else: return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eq2A(YKHO):\n with open(Hy7s.path.join(YKHO._crx_dir, 'manifest.json')) as Kz8N:\n return qQXR.load(Kz8N)", "def Lb40(Rci7):\n Tuqy = 'r'\n with open(Rci7, Tuqy) as Kz8N:\n return hWFo(Kz8N.read())", "def Lb40(qHrt):\n Kz8N = {}\n for zFiD in qHrt.split('\\n'):\n eODQ = ...
[ "0.7180901", "0.689963", "0.68955094", "0.6789212", "0.6763122", "0.6508273", "0.64473075", "0.64258265", "0.6346553", "0.6274756", "0.6266436", "0.62427926", "0.6213141", "0.6211603", "0.62106264", "0.61133146", "0.6078295", "0.6078295", "0.6051729", "0.6027925", "0.5962825"...
0.7607986
0
Pause the specified instance.
def zXYK(YKHO, KAOR): try: Xzzh = YKHO._find_container_by_name(KAOR['name']).get('id') if not YKHO.docker.pause_container(Xzzh): raise AJ5d.NovaException except Exception as e: tO9_ = bGrB('Cannot pause container: {0}') raise AJ5d.NovaException(tO9_.format(tTpl), inst...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXYK(YKHO, KAOR):\n YKHO.power_off(KAOR)", "def zXYK(YKHO, KAOR, db6b):\n pass", "def zXYK(YKHO, Ltpw):\n zeTD = Ltpw['<instance>']\n zeTD = YKHO.activate(zeTD)\n Ch0F = KhDw(YKHO.vmx, user=YKHO.user, password=YKHO.password)\n if Ch0F.pause() is None:\n NvkK(yOvc.red('Not paused', ...
[ "0.7846346", "0.7688921", "0.7469233", "0.73539656", "0.70026976", "0.6733456", "0.6724526", "0.66634697", "0.66456866", "0.66079676", "0.66079676", "0.6529071", "0.65127313", "0.65127313", "0.6469562", "0.6466887", "0.64643747", "0.64550567", "0.6448383", "0.64472795", "0.64...
0.7138054
4
There're better ways to generate unique colors, but this isn't awful.
def ZsXr(XsLU): return QrM1.cm.bwr(XsLU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZsXr():\n return QrM1.cm.gist_ncar(oyIN.random.random())", "def AOYf(exwG=1):\n if exwG == 1:\n Z9rn = 'xkcd:red'\n elif exwG == 2:\n Z9rn = 'xkcd:green'\n elif exwG == 3:\n Z9rn = 'xkcd:yellow'\n elif exwG == 4:\n Z9rn = 'xkcd:blue'\n elif exwG == 5:\n Z9...
[ "0.7695123", "0.75671566", "0.75583816", "0.7357631", "0.7342208", "0.72853166", "0.72480094", "0.71011716", "0.7098262", "0.70767504", "0.7062771", "0.70538425", "0.70175236", "0.7003569", "0.68944114", "0.6891342", "0.6822742", "0.6812799", "0.6809275", "0.6775157", "0.6725...
0.69415236
14
A test to check conversion between path to namespace for InnerEye and external namespaces
def TJUh(pr6M: bool, PvF5: OutputFolderForTests) -> None: if pr6M: YMBJ = 'logs' nySC = PvF5.root_dir / YMBJ assert JIOA(YMBJ, root=PvF5.root_dir) == nySC else: from Tests.ML import test_data assert JIOA(test_data.__name__, root=gxnf().parent) == U8Wt()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8v5(YKHO):\n pass", "def FhT3(YKHO):\n pass", "def uJUV(YKHO):\n pass", "def vvQf(pr6M: bool, PvF5: OutputFolderForTests) -> None:\n if pr6M:\n YMBJ = 'logs'\n nySC = PvF5.root_dir / YMBJ\n assert DtTQ(path=nySC, root=PvF5.root_dir) == YMBJ\n else:\n from Tests...
[ "0.73029065", "0.6965997", "0.6900048", "0.68341947", "0.67262053", "0.6407285", "0.63938856", "0.63662964", "0.6257283", "0.61628664", "0.61357117", "0.60621345", "0.60217685", "0.6020565", "0.59647584", "0.58429635", "0.58099943", "0.57819664", "0.575428", "0.5750365", "0.5...
0.6388923
7
A test to check conversion between namespace to path for InnerEye and external namespaces
def vvQf(pr6M: bool, PvF5: OutputFolderForTests) -> None: if pr6M: YMBJ = 'logs' nySC = PvF5.root_dir / YMBJ assert DtTQ(path=nySC, root=PvF5.root_dir) == YMBJ else: from Tests.ML import test_data from InnerEye.Common.fixed_paths_for_tests import full_ml_test_data_path ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8v5(YKHO):\n pass", "def FhT3(YKHO):\n pass", "def TJUh(pr6M: bool, PvF5: OutputFolderForTests) -> None:\n if pr6M:\n YMBJ = 'logs'\n nySC = PvF5.root_dir / YMBJ\n assert JIOA(YMBJ, root=PvF5.root_dir) == nySC\n else:\n from Tests.ML import test_data\n assert...
[ "0.73165166", "0.6915954", "0.6753333", "0.67226464", "0.6679871", "0.6459391", "0.641153", "0.6366573", "0.6270574", "0.61011595", "0.60762215", "0.60427475", "0.6017366", "0.5910802", "0.58862346", "0.5809101", "0.57427335", "0.5739951", "0.57314265", "0.57177037", "0.57061...
0.6943418
1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues): if not leAC: if NkkI: leAC = 'Normalized confusion matrix' else: leAC = 'Confusion matrix, without normalization' LZpg, aNZO = QrM1.subplots() Xn71 = aNZO.imshow(Bcwd, interpolation='nearest', cmap=iMGt)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81940335", "0.8095006", "0.80290395", "0.8019189", "0.7993875", "0.7991161", "0.79809004", "0.7975263", "0.7961412", "0.7956938", "0.7937461", "0.7934524", "0.7934342", "0.7931134", "0.7926225", "0.79244965", "0.792367", "0.79231006", "0.7922885", "0.792215", "0.7917699", ...
0.0
-1
Shuffle two (numpy) arrays while keeping values at the same indices consistent between the two arrays.
def vnEM(SInm: np.ndarray, Zo7t: np.ndarray): qnba = list(zip(SInm, Zo7t)) tuKI.shuffle(qnba) eWgR, X9Zn = list(zip(*qnba)) return (oyIN.array(eWgR), oyIN.array(X9Zn))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXka(tc1I, F0Ud):\n for p6S0 in range(0, len(tc1I) - 1):\n r845 = tuKI.randint(p6S0 + 1, len(tc1I) - 1)\n b3SJ(p6S0, r845, tc1I, F0Ud)", "def emCC(WKvO, LVAh):\n QyVM = oyIN.arange(LVAh.shape[0])\n oyIN.random.shuffle(QyVM)\n return (WKvO[:, QyVM, :], LVAh[QyVM])", "def GIoL(jzdc,...
[ "0.76986414", "0.75944936", "0.7552783", "0.73425084", "0.7003211", "0.6981852", "0.69262284", "0.69198114", "0.6874657", "0.6783941", "0.6783941", "0.6783941", "0.67834735", "0.67456245", "0.67006373", "0.66353536", "0.6576977", "0.65682966", "0.6488185", "0.6398037", "0.639...
0.7891924
0
determine if its own bottom edge is lower than {item_or_group}'s bottom edge
def zJ9D(YKHO, oKqL): if isinstance(oKqL, kLxY): ZfUD = oKqL return YKHO.bottom > ZfUD.bottom elif isinstance(oKqL, mJa2): tsL9 = oKqL return YKHO.bottom > tsL9.bottom else: raise TypeError('item_or_group must be instance of Item or ItemGroup.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OLll(YKHO, oKqL):\n return not YKHO.is_bottom_edge_below(oKqL)", "def wLOC(uOe2: pygame.sprite.Group, es2x: int):\n for Jqc7 in uOe2:\n if Jqc7.rect.bottom == es2x:\n return True\n return False", "def hGQF(YKHO, cXyw):\n if len(YKHO._dims) == 1:\n return True\n retur...
[ "0.8367411", "0.6601129", "0.6381611", "0.6213488", "0.6155999", "0.6150277", "0.6072957", "0.6011137", "0.5915268", "0.58969814", "0.58455807", "0.5840544", "0.57969046", "0.5791927", "0.5779468", "0.57299614", "0.5660132", "0.5645648", "0.563967", "0.5624196", "0.5619945", ...
0.7922941
1
determine if its own bottom edge is higher than {item_or_group}'s bottom edge
def OLll(YKHO, oKqL): return not YKHO.is_bottom_edge_below(oKqL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJ9D(YKHO, oKqL):\n if isinstance(oKqL, kLxY):\n ZfUD = oKqL\n return YKHO.bottom > ZfUD.bottom\n elif isinstance(oKqL, mJa2):\n tsL9 = oKqL\n return YKHO.bottom > tsL9.bottom\n else:\n raise TypeError('item_or_group must be instance of Item or ItemGroup.')", "def ...
[ "0.8312248", "0.67943615", "0.67004293", "0.6466782", "0.6365225", "0.62959373", "0.60863155", "0.6085255", "0.6067151", "0.6014576", "0.5995667", "0.58887464", "0.58841914", "0.5846384", "0.5845368", "0.58413243", "0.5760431", "0.5660495", "0.56547433", "0.5645941", "0.55345...
0.8409423
0
determine if its own bottom edge is within than {item_or_group}'s bottom edge and top edge
def FjAm(YKHO, oKqL): if isinstance(oKqL, mJa2): return not YKHO.is_bottom_edge_below(oKqL) and YKHO.is_bottom_edge_below_top_foot(oKqL) else: raise TypeError('item_or_group must be instance of ItemGroup.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OLll(YKHO, oKqL):\n return not YKHO.is_bottom_edge_below(oKqL)", "def zJ9D(YKHO, oKqL):\n if isinstance(oKqL, kLxY):\n ZfUD = oKqL\n return YKHO.bottom > ZfUD.bottom\n elif isinstance(oKqL, mJa2):\n tsL9 = oKqL\n return YKHO.bottom > tsL9.bottom\n else:\n raise ...
[ "0.80232906", "0.7723987", "0.6707917", "0.6390316", "0.6296792", "0.62473303", "0.615441", "0.61110735", "0.60845906", "0.6065328", "0.60120636", "0.5985478", "0.594437", "0.5871533", "0.58092225", "0.57769895", "0.5773324", "0.572963", "0.5676477", "0.56643605", "0.566321",...
0.6200156
6
String for representing the Model object.
def zAg0(YKHO): return YKHO.name + ' - ' + str(YKHO.date_of_contact) + ' - ' + str(YKHO.specialty)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.8236334", "0.7989569", "0.7848069", "0.7846481", "0.77509546", "0.7624108", "0.7624108", "0.7623108", "0.7623108", "0.75479686", "0.75224715", "0.7470156", "0.74694866", "0.7446042", "0.7446042", "0.7430364", "0.7427066", "0.73897326", "0.7349858", "0.7340906", "0.7322887"...
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return YKHO.name + ' - ' + YKHO.procedure_name + ' - ' + str(YKHO.date_of_contact)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.8237102", "0.79895926", "0.78485906", "0.7846189", "0.77511", "0.76247364", "0.76247364", "0.7622933", "0.7622933", "0.7547188", "0.75233495", "0.74708194", "0.7470042", "0.74472684", "0.74472684", "0.7431884", "0.74270374", "0.73904866", "0.7351086", "0.7342717", "0.73235...
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return YKHO.specialty
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.82368803", "0.79901737", "0.7849152", "0.78468513", "0.77520275", "0.7625378", "0.7625378", "0.76225406", "0.76225406", "0.75483394", "0.7522958", "0.7470355", "0.7469358", "0.7447144", "0.7447144", "0.74314755", "0.7427648", "0.7389925", "0.7351721", "0.73424315", "0.7322...
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return str(YKHO.pk) + ' - ' + YKHO.procedure_class
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.8236244", "0.7990606", "0.78480387", "0.7846219", "0.77502006", "0.7623238", "0.7623238", "0.7620921", "0.7620921", "0.7546437", "0.75244987", "0.7472402", "0.7470912", "0.7448822", "0.7448822", "0.7432068", "0.7427943", "0.73915136", "0.73503023", "0.7343569", "0.7324108"...
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return f'{YKHO.location}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.8236334", "0.7989569", "0.7848069", "0.7846481", "0.77509546", "0.7624108", "0.7624108", "0.7623108", "0.7623108", "0.75479686", "0.75224715", "0.7470156", "0.74694866", "0.7446042", "0.7446042", "0.7430364", "0.7427066", "0.73897326", "0.7349858", "0.7340906", "0.7322887"...
0.0
-1
Sets the id of this KeyDerivationInstance.
def id(YKHO, id): if id is None: raise ValueError('Invalid value for `id`, must not be `None`') YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n if id is not None and (not isinstance(id, int)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: int', None, None)\n YKHO.__id = id\n YKHO.__key_modified['id'] = 1", "def ...
[ "0.7509662", "0.7361725", "0.73109734", "0.71761066", "0.716533", "0.7128722", "0.7110745", "0.7107104", "0.71040905", "0.7098716", "0.70985717", "0.70784897", "0.70784897", "0.70784897", "0.70784897", "0.70784897", "0.7078088", "0.7054215", "0.7054215", "0.7054215", "0.70461...
0.0
-1
Sets the service_ids of this KeyDerivationInstance.
def WkbK(YKHO, WkbK): if WkbK is None: raise ValueError('Invalid value for `service_ids`, must not be `None`') YKHO._service_ids = WkbK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WkbK(YKHO, WkbK):\n YKHO._service_ids = WkbK", "def B373(YKHO, B373):\n YKHO._services = B373", "def B373(YKHO, B373):\n YKHO._services = B373", "def A07C(YKHO, A07C):\n YKHO._ids = A07C", "def uoOr(YKHO, hLeU):\n T5nD = [zVa7 for zVa7 in YKHO if zVa7 not in hLeU]\n for liCf in T5nD:\...
[ "0.8166759", "0.6859378", "0.6859378", "0.57768804", "0.5719516", "0.55878645", "0.5536941", "0.5459062", "0.54398865", "0.53966534", "0.5395017", "0.53295904", "0.5324174", "0.5228824", "0.5222563", "0.5189729", "0.51248205", "0.5121617", "0.5110716", "0.51074433", "0.507656...
0.7109271
1
Sets the version of this KeyDerivationInstance.
def DpZH(YKHO, DpZH): if DpZH is None: raise ValueError('Invalid value for `version`, must not be `None`') YKHO._version = DpZH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DpZH(YKHO, DpZH):\n YKHO._version = DpZH", "def DpZH(YKHO, DpZH: str):\n YKHO._version = DpZH", "def DpZH(YKHO, DpZH: str):\n YKHO._version = DpZH", "def DpZH(YKHO, DpZH):\n YKHO._version = DpZH", "def DpZH(YKHO, DpZH):\n YKHO._version = DpZH", "def DpZH(YKHO, DpZH: int):\n YKHO._ve...
[ "0.71815616", "0.7169777", "0.7169777", "0.71428466", "0.71428466", "0.71407634", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", "0.71001387", ...
0.66523635
30
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, QwTr): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80891633", "0.80891633", "0.8055254", "0.7983334", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8457167", "0.8393036", "0.81455255", "0.8139734", "0.81333447", "0.8094964", "0.8093362", "0.8093362", "0.8093362", "0.80863476", "0.80863476", "0.8077286", "0.8077286", "0.806682" ]
0.0
-1
Set up the EnsembleSampler of the emcee.
def Sqxv(YKHO, ymA8, **B2fa): YKHO.nwalkers = ymA8 YKHO.__sampler = 'EnsembleSampler' if YKHO.lnlikeType == 'gcs': kvmL = (YKHO.x, YKHO.y, YKHO.xerr, YKHO.yerr, YKHO.pRanges) elxD = {'flag': YKHO.flag, 'fix_m': YKHO.fix_slope, 'fix_b': YKHO.fix_intercept} else: kvmL = (YKHO.x, YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.sampler = {'name': 'samplername', 'backend_name': '', 'backend_header': '', 'backend_prefix': '', 'backend_suffix': '', 'backend_footer': '', 'ncores': 2, 'threads_per_core': 1, 'omp_enabled': True, 'papi_enabled': True, 'papi_counters_max': 2, 'papi_counters_avail': ('C1', 'C2', 'C3'), '...
[ "0.67693484", "0.6195275", "0.61627173", "0.60521036", "0.5903268", "0.5883507", "0.58497375", "0.5835446", "0.5819078", "0.5778005", "0.5714813", "0.57051784", "0.5703039", "0.56904703", "0.56869334", "0.5671283", "0.56460005", "0.5630085", "0.56248015", "0.5595351", "0.5565...
0.6606227
1
Update the information stored concerning a specific prefix.
def QdZT(YKHO, y0cW, jYLz, BWXx): FBSC = YKHO.peers.get(jYLz, None) if FBSC is None: FBSC = YKHO.peers[jYLz] = jYLz Q6kx = YKHO.radix.add(y0cW) Q6kx.data[FBSC] = BWXx return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IIlB(YKHO, y0cW: str, seET: Operator):\n Vb75: h8nf[uS0y] = YKHO.lookup(y0cW)\n if Vb75:\n CkaT = Vb75.price_for_prefix(y0cW)\n if CkaT:\n if seET.has_better_price_for_prefix(y0cW, CkaT):\n YKHO.add_prefix(prefix=y0cW, operator=seET)\n else:\n YKHO.add_pr...
[ "0.7243679", "0.70026356", "0.70026344", "0.6948627", "0.69161", "0.69161", "0.6898115", "0.68590176", "0.6710644", "0.66757613", "0.660613", "0.65959245", "0.65296745", "0.63046926", "0.6160213", "0.6154241", "0.6148926", "0.612614", "0.6099805", "0.6034504", "0.6033006", ...
0.5604809
39
Name of the attachment
def gAZd(YKHO): if YKHO.__attachment_name is not None: return YKHO.__attachment_name if YKHO.__attachment_name_property: return getattr(YKHO, YKHO.__attachment_name_property, '') else: try: gAZd = getattr(YKHO, 'subject') except AttributeError: gAZd = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._filename", "def W0tD(YKHO):\n return YKHO._file.name", "def W0tD(YKHO):\n return YKHO.file_name", "def gIsw(YKHO):\n return YKHO.__file_name", "def gIsw(YKHO):\n return YKHO._file_name", "def gIsw(YKHO):\n return YKHO._file_name", "def gIsw(YKHO):\n r...
[ "0.7697845", "0.76398706", "0.75814885", "0.7384647", "0.7347543", "0.7347543", "0.7347543", "0.7347543", "0.7347543", "0.72732687", "0.72732687", "0.72565854", "0.724476", "0.7242976", "0.7223506", "0.7210613", "0.7190505", "0.71667844", "0.7098693", "0.6940856", "0.692581",...
0.81711423
0
Returns the size of this attachment
def szAg(YKHO): return YKHO.size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8e4(YKHO):\n return YKHO._size", "def R8e4(YKHO):\n return YKHO.__size", "def jiw9(YKHO):\n return YKHO._size", "def jiw9(YKHO):\n return YKHO._size", "def mfF2(YKHO):\n return YKHO.context.getObjSize(YKHO.context)", "def jiw9(YKHO):\n return YKHO.size", "def jiw9(YKHO):\n ret...
[ "0.80585337", "0.8017296", "0.80141336", "0.80141336", "0.8004944", "0.7998625", "0.7998625", "0.7998625", "0.7973392", "0.796913", "0.7957654", "0.79560673", "0.79524714", "0.79428864", "0.7924541", "0.7924541", "0.7878226", "0.7874525", "0.7872566", "0.78691196", "0.7784387...
0.0
-1
Compute masked entropy for a position in the sequences
def esbg(CtXk, z1dg, ojCT): rClg = [Q6uT[ojCT] for Q6uT in CtXk] Ne2D = mBkc(rClg) kcsN = ['-', 'N'] XW6K = sum([Ne2D[P8oC] for P8oC in Ne2D if P8oC not in kcsN]) C7Ls = 0 xmEZ = 0 for P8oC in Ne2D: if P8oC in kcsN: xmEZ += Ne2D[P8oC] continue V6IE = N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ewnP(YKHO, dQgj):\n pass", "def dvdj(YKHO, dQgj):\n pass", "def oqGu(WKvO):\n WyJz = oyIN.nonzero(WKvO)[0]\n return -oyIN.sum(WKvO[WyJz] * oyIN.log2(WKvO[WyJz]))", "def oqGu(LNo8, pFGk, yvT9=None, ZHfW=None, bCqL=False, a8Wt=False):\n return HWHB(cGim.entropy, cWyf.entropy, LNo8, pFGk, out...
[ "0.70269614", "0.6864408", "0.6633201", "0.65077466", "0.6431512", "0.6406239", "0.63890517", "0.63039684", "0.6269086", "0.62388676", "0.6200157", "0.6187284", "0.6105708", "0.60649717", "0.60404694", "0.60330796", "0.60251886", "0.60128623", "0.60012263", "0.599101", "0.598...
0.7283822
0
Adds additional query parameters to a URL while preserving existing ones. The URL will be normalized according to the OAuth specification with the exception that the URL fragment is preserved.
def ThHS(bD7m, aasu, Bp1A=None): ht58, RYr6, pmON, NArs, xDcj, vBtp = tckg(bD7m) Csk6 = BXi_(xDcj, aasu) umWR = J8OK(Csk6, allow_func=Bp1A) return Hfci((ht58, RYr6, pmON, NArs, umWR, vBtp))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hxvq(puIl, **B2fa):\n ht58, RYr6, pmON, R7S5, vBtp = NoPH(puIl)\n o2VW = _Ibt(R7S5)\n if B2fa is not None:\n for H5ew, BWXx in B2fa.items():\n o2VW[H5ew] = [BWXx]\n G7Vf = QIYp(o2VW, doseq=True)\n IBRk = izOI((ht58, RYr6, pmON, G7Vf, vBtp))\n return IBRk", "def Hxvq(puIl, ...
[ "0.81322277", "0.81322277", "0.7697985", "0.74217576", "0.74037313", "0.7225958", "0.7088054", "0.7003053", "0.678398", "0.67807525", "0.6750052", "0.6741299", "0.6726893", "0.6655746", "0.6655746", "0.66181564", "0.65065897", "0.6493678", "0.6435593", "0.6376228", "0.6375366...
0.74030685
5
Appends query params to any existing query string in the URL and returns a properly formatted URL. URL fragments are preserved.
def bvWt(bD7m, o2VW): if not o2VW: return bD7m ht58, RYr6, pmON, NArs, xDcj, vBtp = tckg(bD7m) xDcj = xDcj + '&' if xDcj else xDcj R7S5 = xDcj + J8OK(zNU4(o2VW)) return Hfci((ht58, RYr6, pmON, NArs, R7S5, vBtp))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hxvq(puIl, **B2fa):\n ht58, RYr6, pmON, R7S5, vBtp = NoPH(puIl)\n o2VW = _Ibt(R7S5)\n if B2fa is not None:\n for H5ew, BWXx in B2fa.items():\n o2VW[H5ew] = [BWXx]\n G7Vf = QIYp(o2VW, doseq=True)\n IBRk = izOI((ht58, RYr6, pmON, G7Vf, vBtp))\n return IBRk", "def Hxvq(puIl, ...
[ "0.81549567", "0.81549567", "0.7707903", "0.761501", "0.7487683", "0.7482286", "0.7348673", "0.7198075", "0.71472", "0.71472", "0.71208537", "0.7081905", "0.707324", "0.7036059", "0.7025032", "0.69859105", "0.6948436", "0.6826538", "0.6749152", "0.6728942", "0.66652775", "0...
0.8076933
2
Appends additional query parameters to a query string. The additional query parameters appear after the initial query string.
def vq8G(*o2VW): BDwY = [] for TuAq in o2VW: umWR = J8OK(zNU4(TuAq)) if umWR: BDwY.append(umWR) return '&'.join(BDwY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hxvq(puIl, **B2fa):\n ht58, RYr6, pmON, R7S5, vBtp = NoPH(puIl)\n o2VW = _Ibt(R7S5)\n if B2fa is not None:\n for H5ew, BWXx in B2fa.items():\n o2VW[H5ew] = [BWXx]\n G7Vf = QIYp(o2VW, doseq=True)\n IBRk = izOI((ht58, RYr6, pmON, G7Vf, vBtp))\n return IBRk", "def Hxvq(puIl, ...
[ "0.7972452", "0.7972452", "0.76173997", "0.71207464", "0.708434", "0.6994136", "0.6894514", "0.68572116", "0.68572116", "0.6857165", "0.6819232", "0.6753768", "0.6700751", "0.6586015", "0.6504417", "0.6501435", "0.6488579", "0.64446956", "0.64316726", "0.6397329", "0.63870513...
0.79330975
2
Return a custom 404 error.
def RQdI(P1dF): return 'Bummer, there is nothing at this URL.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return c1Bu(404)", "def RQdI(P1dF):\n return '404 Error'", "def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)", "def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)", "def m7kB(XObx):\n return Ox78(code='404', details=XObx, parm1=QePW.path)", "def RQdI...
[ "0.8116449", "0.80424213", "0.7737413", "0.7717836", "0.7688941", "0.76715463", "0.7611543", "0.7602619", "0.7570821", "0.7553308", "0.7546265", "0.75196016", "0.74747616", "0.7457757", "0.74563175", "0.7455935", "0.7449881", "0.7442611", "0.74283564", "0.74061334", "0.738941...
0.7740178
2
r""" Return num_tokens tokens that have the highest probability for a given token
def Jpkp(YKHO, Cj7G=5): return (YKHO.sorted_probs[:Cj7G], YKHO.sorted_indices[:Cj7G])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xsQQ(YKHO, eOtH, mqIV=None):\n if not mqIV:\n assert YKHO.n == 1\n mqIV = tuple()\n yht1 = YKHO.count(tuple(mqIV) + (eOtH,))\n ezKE = YKHO.count(tuple(mqIV))\n return (yht1 + 1) / (float(ezKE) + YKHO.V())", "def Cj7G(YKHO, d6pt):\n return max(YKHO.d1.num_tokens(d6pt), YKHO.d2.num...
[ "0.65624195", "0.6506481", "0.6409731", "0.63341427", "0.62845147", "0.6278294", "0.62720203", "0.62008363", "0.6197267", "0.61947036", "0.618999", "0.6155716", "0.61184216", "0.60942173", "0.60871065", "0.606312", "0.60536104", "0.6039921", "0.60361195", "0.5967945", "0.5948...
0.6555723
1
Compute length of rupture (km). For EdgeRupture, we compute the length as the length of the top edge projected to the surface.
def pCBL(YKHO): k_Cy = YKHO._toplons LD1b = YKHO._toplats pG0V = YKHO._group_index moMn = oyIN.unique(pG0V) SMR4 = len(moMn) THuu = 0 for YRbF in range(SMR4): SB5n = oyIN.where(moMn[YRbF] == pG0V)[0] L5tv = len(SB5n) - 1 for r845 in range(L5tv): QyVM = SB5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCBL(YKHO):\n return YKHO.geometry.length", "def RV39(YKHO):\n return abs(YKHO.radius * YKHO.angle)", "def qx2R(YKHO):\n if YKHO.edge_length_l is not None:\n return YKHO.edge_length_l\n else:\n YKHO.edge_length_l = 2 * YKHO.radius * epAf.sin(epAf.pi / YKHO.vert_count)\n ret...
[ "0.64138377", "0.6371502", "0.6361713", "0.6359372", "0.6292256", "0.6232948", "0.617673", "0.6171692", "0.6152697", "0.6150844", "0.6129092", "0.60557646", "0.603729", "0.60209924", "0.60047835", "0.5941919", "0.59414583", "0.59180874", "0.5902702", "0.5872497", "0.5871046",...
0.6412288
1
Compute average rupture width in km. For EdgeRupture, we compute this as the rupture area divided by teh rupture length.
def xiCJ(YKHO): f0tD = YKHO.getArea() u54L = YKHO.getLength() return f0tD / u54L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VSa5(YKHO):\n RV39 = len(YKHO.pixel_list)\n if not RV39:\n return 0\n elif RV39 < 5:\n _QwM = 0\n for YRbF in range(RV39):\n _QwM += YKHO.pixel_list[YRbF].radius\n return _QwM / RV39\n else:\n _QwM = 0\n for YRbF in range(5):\n _QwM +=...
[ "0.6624762", "0.65968335", "0.65738505", "0.6547333", "0.64843774", "0.6439279", "0.64153314", "0.6219351", "0.6213662", "0.6213351", "0.6193978", "0.6106133", "0.608973", "0.60745883", "0.60640675", "0.60470635", "0.6012936", "0.59919083", "0.59919083", "0.59919083", "0.5979...
0.7063443
0
Compute the rupture area. For EdgeRupture, we compute this by grouping the traces into "quadrilaterals" for which the verticies may not be coplanar. We then break up the quadrilaterals into triangles for which we can compute area.
def drdQ(YKHO): pG0V = YKHO._group_index moMn = oyIN.unique(pG0V) SMR4 = len(moMn) f0tD = 0 for YRbF in range(SMR4): SB5n = oyIN.where(moMn[YRbF] == pG0V)[0] L5tv = len(SB5n) - 1 for r845 in range(L5tv): QyVM = SB5n[r845] y4fz = dJpL(YKHO._toplats[QyVM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drdQ(YKHO):\n vZBV = 0.0\n for gmTb in YKHO._quadrilaterals:\n yzQ0 = DWao(gmTb)\n vC9B = zqpF(gmTb)\n vZBV = vZBV + yzQ0 * vC9B\n return vZBV", "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def F3YD(mawX):\n mawX = oyIN.array(mawX)\n k0lF = mawX[...
[ "0.7013552", "0.68570894", "0.6799231", "0.6769213", "0.6753739", "0.65391105", "0.65222216", "0.6455655", "0.6383921", "0.6287806", "0.6272543", "0.62584573", "0.6199514", "0.6170186", "0.61609316", "0.6155303", "0.61455363", "0.61228013", "0.6122473", "0.6095361", "0.609447...
0.5679689
79
Representative dip for this rupture. Note that dip can vary along the rupture.
def xIEn(YKHO): return YKHO._dip
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xIEn(YKHO):\n pljt = 0.0\n for gmTb in YKHO._quadrilaterals:\n ywwl = zJle(gmTb)\n cAlv = WiII(gmTb)\n pljt = pljt + oyIN.degrees(oyIN.arccos(lNLu.dot(ywwl, cAlv)))\n VXlR = pljt / len(YKHO._quadrilaterals)\n return VXlR", "def xIEn(YKHO):\n return W5Z4", "def xIEn(YKHO)...
[ "0.7617527", "0.7015266", "0.68828595", "0.60466355", "0.5933084", "0.58175373", "0.5804979", "0.5777768", "0.5777768", "0.5777768", "0.574449", "0.5713865", "0.56749266", "0.5604726", "0.55940163", "0.5577946", "0.5557142", "0.5515827", "0.5498956", "0.54768693", "0.5442315"...
0.77606183
0
Return a list of segment group indexes.
def vGi5(YKHO): return jth9.deepcopy(YKHO._group_index)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fSV7(YKHO) -> h8nf[x1iM[float]]:\n return qe4Y.get(YKHO, 'group_indexes')", "def fSV7(YKHO) -> h8nf[x1iM[float]]:\n return qe4Y.get(YKHO, 'group_indexes')", "def fSV7(YKHO) -> h8nf[x1iM[float]]:\n return qe4Y.get(YKHO, 'group_indexes')", "def l6qL(YKHO) -> x1iM[int]:\n ...", "def DzXR(YKHO)...
[ "0.7649554", "0.7649554", "0.7649554", "0.6590446", "0.6556585", "0.63233477", "0.6090118", "0.6073933", "0.60477996", "0.6004251", "0.5978857", "0.59540415", "0.5948172", "0.5935903", "0.59121877", "0.59044003", "0.5897838", "0.5877048", "0.58745444", "0.5870968", "0.5851569...
0.60656494
8
Class method for constructing a QuadRupture from arrays of longitude latitude, and depth. The arrays should start on the top and move in the strike direction, then down to the bottom and move back (without closing) followed by a nan.
def sDxk(Emd4, FDPT, QnmL, rb7a, hLRM, aC0l=''): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sscl(YKHO):\n YKHO._lon = oyIN.array(YKHO._lon)\n YKHO._lat = oyIN.array(YKHO._lat)\n YKHO._depth = oyIN.array(YKHO._depth)\n F0LP = oyIN.where(oyIN.isnan(YKHO._lon))[0]\n VJ23 = len(F0LP)\n if len(YKHO._lon) != len(YKHO._lat) != len(YKHO._depth):\n raise IndexError('Length of input lo...
[ "0.6234956", "0.5870408", "0.5581966", "0.55158466", "0.5465272", "0.54137504", "0.5395955", "0.5265526", "0.521684", "0.51630944", "0.51617074", "0.51607037", "0.5122908", "0.51187325", "0.5112348", "0.50894845", "0.5088815", "0.5083854", "0.5019792", "0.50077057", "0.498970...
0.49321148
23
Compute area of rupture.
def drdQ(YKHO): vZBV = 0.0 for gmTb in YKHO._quadrilaterals: yzQ0 = DWao(gmTb) vC9B = zqpF(gmTb) vZBV = vZBV + yzQ0 * vC9B return vZBV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjC2(YKHO):\n return XTiz.prod([Mkmy[1] - Mkmy[0] for Mkmy in YKHO.range_])", "def f0tD(YKHO) -> float:\n raise NotImplementedError", "def tjC2(YKHO):\n f0tD = 0\n for YRbF in YKHO.residues:\n f0tD += YRbF.solvent_acc_area\n return f0tD", "def f0tD(YKHO):\n return 0.5 * oyIN.abs(...
[ "0.7949629", "0.7576201", "0.74550194", "0.7412263", "0.7390755", "0.7303413", "0.7257002", "0.7186071", "0.7157383", "0.7139753", "0.7099595", "0.7095079", "0.705244", "0.7023055", "0.69719845", "0.69620824", "0.6955189", "0.6953933", "0.6946397", "0.6946397", "0.6928151", ...
0.7117331
10
Create a QuadRupture instance from a set of vertices that define the top of the rupture, and an array of widths/dips. Each rupture quadrilaterial is defined by specifying the latitude, longitude, and depth of the two vertices on the top edges, which must have the dame depths. The other verticies are then constructed fr...
def Y5IY(Emd4, X8Uq, o14E, T6In, O0Sc, j7aV, _SEp, cPRS, hLRM, DxXP=None, tTLi=None, aC0l=''): if len(X8Uq) == len(o14E) == len(T6In) == len(O0Sc) == len(j7aV) == len(cPRS) == len(_SEp): pass else: raise YQTy('Number of xp0,yp0,xp1,yp1,zp,widths,dips points must be equal.') if DxXP is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sscl(YKHO):\n YKHO._lon = oyIN.array(YKHO._lon)\n YKHO._lat = oyIN.array(YKHO._lat)\n YKHO._depth = oyIN.array(YKHO._depth)\n F0LP = oyIN.where(oyIN.isnan(YKHO._lon))[0]\n VJ23 = len(F0LP)\n if len(YKHO._lon) != len(YKHO._lat) != len(YKHO._depth):\n raise IndexError('Length of input lo...
[ "0.5803847", "0.5600614", "0.534415", "0.5322971", "0.53100234", "0.530041", "0.524864", "0.5220212", "0.51713824", "0.5157542", "0.51333773", "0.51098377", "0.51026887", "0.50921524", "0.5065189", "0.49655724", "0.49467236", "0.49325755", "0.49294132", "0.48882174", "0.48634...
0.4399244
92
Create internal list of N quadrilaterals. Reverses quad if dip direction is incorrect.
def sscl(YKHO): YKHO._lon = oyIN.array(YKHO._lon) YKHO._lat = oyIN.array(YKHO._lat) YKHO._depth = oyIN.array(YKHO._depth) F0LP = oyIN.where(oyIN.isnan(YKHO._lon))[0] VJ23 = len(F0LP) if len(YKHO._lon) != len(YKHO._lat) != len(YKHO._depth): raise IndexError('Length of input lon, lat, dept...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SDjS(YKHO):\n pass", "def SDjS(YKHO):\n Xmft = oyIN.unique(YKHO._group_index)\n mecR = len(Xmft)\n zOYc = []\n for YRbF in range(mecR):\n QyVM = oyIN.where(YKHO._group_index == Xmft[YRbF])[0]\n pjBH = len(QyVM) - 1\n for r845 in range(pjBH):\n MlT5 = PvyL(YKHO._...
[ "0.6426125", "0.64216346", "0.6285212", "0.62718266", "0.60343295", "0.5950274", "0.5667338", "0.56576777", "0.5653566", "0.56501204", "0.5648209", "0.561839", "0.5604851", "0.5555668", "0.55422294", "0.5538652", "0.54485786", "0.54257244", "0.54197216", "0.5405007", "0.53973...
0.64734024
0
Return a list of segment group indexes.
def vGi5(YKHO): return jth9.deepcopy(YKHO._group_index)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fSV7(YKHO) -> h8nf[x1iM[float]]:\n return qe4Y.get(YKHO, 'group_indexes')", "def fSV7(YKHO) -> h8nf[x1iM[float]]:\n return qe4Y.get(YKHO, 'group_indexes')", "def fSV7(YKHO) -> h8nf[x1iM[float]]:\n return qe4Y.get(YKHO, 'group_indexes')", "def l6qL(YKHO) -> x1iM[int]:\n ...", "def DzXR(YKHO)...
[ "0.7649334", "0.7649334", "0.7649334", "0.65905434", "0.6556632", "0.63231343", "0.6090134", "0.60737765", "0.60477185", "0.6004068", "0.5978902", "0.59539485", "0.59481966", "0.59357756", "0.5912173", "0.5904235", "0.58977395", "0.58770025", "0.58746374", "0.58709896", "0.58...
0.6065495
9
Compute the components of a unit slip vector.
def COqq(DxXP, VXlR, Wdsg): DxXP = oyIN.radians(DxXP) VXlR = oyIN.radians(VXlR) Wdsg = oyIN.radians(Wdsg) o0ZM = oyIN.sin(Wdsg) * oyIN.cos(VXlR) * oyIN.cos(DxXP) + oyIN.cos(Wdsg) * oyIN.sin(DxXP) BhJz = oyIN.sin(Wdsg) * oyIN.cos(VXlR) * oyIN.sin(DxXP) + oyIN.cos(Wdsg) * oyIN.cos(DxXP) Rv0k = oyI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ih1v(P6bq, Ty9i):\n WKvO = s2vS(P6bq, Ty9i) / INaL(Ty9i)\n return HvgP(Ty9i, WKvO)", "def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def aHVb(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def PXGI(iArr: np.array) -> oyIN.array:\n return oyIN.array([*iArr]) / oyIN.sqrt((iArr *...
[ "0.7101245", "0.6650332", "0.6628364", "0.65481466", "0.65072", "0.64970964", "0.6468489", "0.6465301", "0.6465301", "0.6465301", "0.6442099", "0.64355296", "0.642071", "0.6392865", "0.63770634", "0.63770634", "0.63770634", "0.63770634", "0.63770634", "0.63770634", "0.6377063...
0.5675425
74
Compute the unit normal vector for a quadrilateral in ECEF coordinates.
def zJle(vexM): MlT5, Wqlh, bskW, bxM2 = vexM y4fz = lNLu.fromPoint(MlT5) EBgd = lNLu.fromPoint(Wqlh) Lq8X = lNLu.fromPoint(bxM2) hQHm = EBgd - y4fz jlSq = Lq8X - y4fz imdf = lNLu.cross(jlSq, hQHm).norm() return imdf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0b2(YKHO):\n Z9rn, KCHu = (oyIN.cos(YKHO.eangles), oyIN.sin(YKHO.eangles))\n Mkmy = oyIN.array([[Z9rn, -KCHu], [KCHu, Z9rn]])\n P6bq = oyIN.array([1, 0])\n return oyIN.dot(Mkmy, P6bq)", "def eH0X(vexM):\n MlT5, Wqlh, bskW, bxM2 = vexM\n y4fz = lNLu.fromPoint(MlT5)\n EBgd = lNLu.fromPoin...
[ "0.6373712", "0.6277061", "0.6265934", "0.626547", "0.620199", "0.61762315", "0.59915715", "0.5976844", "0.5942278", "0.5892512", "0.58643585", "0.58362436", "0.5817145", "0.57800645", "0.5771206", "0.57570195", "0.57390314", "0.57093453", "0.56973886", "0.56887335", "0.56652...
0.732289
0
Compute the vertical unit vector for a quadrilateral in ECEF coordinates.
def WiII(vexM): MlT5, Wqlh, bskW, bxM2 = vexM nENV = jth9.deepcopy(MlT5) nENV.depth = nENV.depth - 1.0 y4fz = lNLu.fromPoint(MlT5) EBgd = lNLu.fromPoint(nENV) hQHm = (EBgd - y4fz).norm() return hQHm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xixU(vexM):\n MlT5, Wqlh, bskW, bxM2 = vexM\n y4fz = lNLu.fromPoint(MlT5)\n EBgd = lNLu.fromPoint(Wqlh)\n BBTL = EBgd - y4fz\n zYE3 = zJle(vexM)\n emNh = lNLu.cross(BBTL, zYE3).norm()\n return emNh", "def eH0X(vexM):\n MlT5, Wqlh, bskW, bxM2 = vexM\n y4fz = lNLu.fromPoint(MlT5)\n ...
[ "0.6518399", "0.6430079", "0.59680825", "0.5838643", "0.5774217", "0.57682586", "0.5742409", "0.57137823", "0.5679971", "0.5671822", "0.5651268", "0.5639558", "0.5635968", "0.56325215", "0.5598869", "0.55685306", "0.553252", "0.54953593", "0.54532224", "0.5435116", "0.5433409...
0.754239
0
Calculate the distance^2 from the origin to a segment defined by two vectors
def NNjF(y4fz, EBgd): pImw = oyIN.zeros_like(EBgd[:, 0]) NWWV = (y4fz[:, 0] == EBgd[:, 0]) & (y4fz[:, 1] == EBgd[:, 1]) & (y4fz[:, 2] == EBgd[:, 2]) pImw[NWWV] = oyIN.sqrt(y4fz[NWWV, 0] ** 2 + y4fz[NWWV, 1] ** 2 + y4fz[NWWV, 2] ** 2) Ty9i = EBgd - y4fz dg7v = -1 * oyIN.sum(y4fz * Ty9i, axis=1) s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pImw(hQHm: vect2d, jlSq: vect2d) -> float:\n Csk6 = ((jlSq.x - hQHm.x) ** 2 + (jlSq.y - hQHm.y) ** 2) ** 0.5\n return Csk6", "def Q1Zj(YKHO, lSjb, v8Fa):\n return PZyS(sum([(float(hQHm) - float(jlSq)) ** 2 for hQHm, jlSq in zip(lSjb, v8Fa)]))", "def GPmg(hQHm, jlSq):\n return ((hQHm[0] - jlSq[0...
[ "0.76526505", "0.74865806", "0.7423698", "0.73689497", "0.7205784", "0.71581054", "0.7135231", "0.71073353", "0.7055259", "0.70442456", "0.7030081", "0.70101863", "0.69712126", "0.696673", "0.6965842", "0.69552", "0.69378436", "0.69204396", "0.69099534", "0.6899135", "0.68986...
0.7392863
3
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(YKHO, Bcwd, KndY, NkkI=False, iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] leAC = 'Normalized confusion matrix' else: leAC = 'Confusion matrix' YKHO.plt_num += 1 QrM1.figure(YKHO.plt_num, figsize=(7.5, 6)) QrM1.imshow(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81940335", "0.8095006", "0.80290395", "0.8019189", "0.7993875", "0.7991161", "0.79809004", "0.7975263", "0.7961412", "0.7956938", "0.7937461", "0.7934524", "0.7934342", "0.7931134", "0.7926225", "0.79244965", "0.792367", "0.79231006", "0.7922885", "0.792215", "0.7917699", ...
0.0
-1
Sets Selenium options and returns driver
def aUci(YKHO): YKHO.chrome_options.add_argument('user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36') if YKHO.headless: YKHO.chrome_options.add_argument('headless') E_qD = cSpz.Chrome(YKHO.chromedriver_path + '/chrome...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def liSX():\n return cSpz.Chrome()", "def FIMM(YKHO, VBaM: str=None, WGBa: int=3, xAU6: List[str]=None):\n if not VBaM:\n E_qD = cSpz.Firefox\n DVsV = dORs()\n else:\n E_qD = cSpz.Chrome\n DVsV = nXHX()\n if xAU6:\n for MTKo in xAU6:\n DVsV.add_argument(M...
[ "0.8057054", "0.708947", "0.69968826", "0.6911238", "0.69095063", "0.68970937", "0.6814126", "0.67816955", "0.6770387", "0.6672688", "0.66312623", "0.66301274", "0.66073716", "0.65865606", "0.6582146", "0.6569406", "0.65414834", "0.6523243", "0.65005714", "0.6442095", "0.6439...
0.6938842
3
Generate the headers required for using the token as an auth.
def jzN9(eOtH=None): if not eOtH: return None Ol8d = '{token}:Ignored'.format(token=eOtH) MOPg = {'Authorization': 'Basic {code}'.format(code=WR89.b64encode(Ol8d))} return MOPg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_hp(YKHO):\n return {'Authorization': 'JWT {}'.format(YKHO.token)}", "def E_hp():\n MOPg = {'Authorization': 'Token {}'.format(gNTt())}\n return MOPg", "def miuk(YKHO):\n if YKHO.token_str:\n return {'Authorization': 'Bearer {}'.format(YKHO.token_str)}\n else:\n return {}", ...
[ "0.8091391", "0.8062149", "0.804831", "0.8005494", "0.79917735", "0.7826117", "0.78182995", "0.77772725", "0.773813", "0.7694959", "0.7689246", "0.7612669", "0.755713", "0.7540428", "0.7509418", "0.7506742", "0.74680114", "0.7446962", "0.7445161", "0.743165", "0.7427711", "...
0.7134794
36
Assert the the response is an OK. Extra fields can be expected in the `extras` parameter.
def zFhy(YKHO, geh0, **qVE2): aEqx = {'status': 'OK'} if qVE2: aEqx.update(qVE2) YKHO.assertStatusCode(geh0, 200) YKHO.assertJson(geh0, aEqx) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L1WG(geh0):\n assert geh0['result'] == 'OK'", "def HwpL(YKHO, geh0, **qVE2):\n aEqx = {'status': 'OK'}\n if qVE2:\n aEqx.update(qVE2)\n YKHO.assertStatus(geh0, 200)\n YKHO.assertJSON(geh0, aEqx)\n return", "def rStG(YKHO, geh0):\n YKHO.assertEqual(geh0.status_code, 200)", "def...
[ "0.8296555", "0.8127737", "0.78719413", "0.7775044", "0.7658192", "0.7588231", "0.75510305", "0.7550003", "0.75312257", "0.7314572", "0.7205102", "0.7108372", "0.70734847", "0.7006003", "0.7000779", "0.69692844", "0.6950052", "0.6825439", "0.681572", "0.6810266", "0.6793165",...
0.8230501
1
Assert that the response is an error. Extra fields returned in the JSON can be expected in the `extras` parameter.
def EFeS(YKHO, geh0, jGRS, Ol8d, **qVE2): aEqx = {'status': 'ERROR', 'message': Ol8d} if qVE2: aEqx.update(qVE2) YKHO.assertStatusCode(geh0, jGRS) YKHO.assertJson(geh0, aEqx) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LWPg(geh0, tO9_: Optional[str]=None) -> None:\n assert geh0.status_code == 200\n assert not geh0.json['success']\n if tO9_:\n assert tO9_ in geh0.json['error']", "def Dpzs(YKHO, geh0, jCCv):\n assert 'error' in geh0\n assert len(geh0) == 1\n P1dF = geh0['error']\n assert 'code' in...
[ "0.779303", "0.7741365", "0.7584659", "0.7528866", "0.7159448", "0.71301717", "0.7120402", "0.70875424", "0.70858455", "0.7065084", "0.70433134", "0.70217675", "0.69692373", "0.69486886", "0.69292754", "0.6886598", "0.6877572", "0.6828764", "0.68070066", "0.6804364", "0.67979...
0.8422305
0
Send a PUT request to the URL.
def NpNj(YKHO, bD7m, nPrm, eOtH=None): return YKHO.app.put(bD7m, data=qQXR.dumps(nPrm), headers=jzN9(eOtH), content_type='application/json')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NpNj(YKHO, bD7m, TBsA, MOPg={}):\n return YKHO.request(bD7m, 'PUT', TBsA, MOPg)", "def _ycG(YKHO, bD7m, **B2fa):\n return YKHO._call('PUT', bD7m, B2fa)", "def NpNj(bD7m, GUxD=bbws, nPrm=None, **B2fa):\n return QePW('put', bD7m, to_error=GUxD, data=nPrm, **B2fa)", "def NpNj(bD7m, nPrm=None, **B2f...
[ "0.83192074", "0.8288409", "0.8159255", "0.81300706", "0.7931903", "0.7921917", "0.7916441", "0.7915346", "0.7908504", "0.78794545", "0.7711567", "0.7711194", "0.7668916", "0.7533713", "0.7490836", "0.7451101", "0.73925275", "0.72986305", "0.72695446", "0.72669786", "0.725458...
0.71287555
24
Send a GET request to the URL. There is no data to be send.
def NMoC(YKHO, bD7m, eOtH=None): return YKHO.app.get(bD7m, headers=jzN9(eOtH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wp7P(YKHO):\n YKHO.http_method = 'GET'\n YKHO.response()", "def Wp7P(YKHO):\n YKHO._send_handler_response('GET')", "def Wp7P(YKHO):\n YKHO._try_to_process_request(YKHO._handle_get_request)", "def qDmp(YKHO, Ms2Z, xDcj=None):\n _hkX = G4JS.get(YKHO.base_url + Ms2Z, params=xDcj)\n return ...
[ "0.77420527", "0.77094686", "0.7393626", "0.7372147", "0.73245174", "0.7322977", "0.7279094", "0.72747684", "0.72692585", "0.72555494", "0.71882886", "0.7172191", "0.7145851", "0.7055571", "0.70314294", "0.7028103", "0.7025007", "0.69873273", "0.6925966", "0.69149184", "0.689...
0.0
-1
The set of arguments for constructing a ClusterAgentToken resource.
def FIMM(Ro_8, *, ILdH: pulumi.Input[int], bNKA: pulumi.Input[str], JBZA: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None): qe4Y.set(Ro_8, 'agent_id', ILdH) qe4Y.set(Ro_8, 'project', bNKA) if JBZA is not None: qe4Y.set(Ro_8, 'description', JBZA) if mWFP is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: ClusterAgentTokenArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, ILdH: Optional[pulumi.Input[int]]=None, aJ2e: Optional[pulumi.Input[str]]=None, IA3p: Optional[pulumi.Input[int]...
[ "0.7123412", "0.6074739", "0.54533434", "0.5437853", "0.539873", "0.5126117", "0.50890976", "0.5071293", "0.5059594", "0.50391245", "0.5038286", "0.50301427", "0.5018265", "0.5017211", "0.5017211", "0.5017211", "0.50164014", "0.4995681", "0.49886116", "0.4978059", "0.49468428...
0.0
-1
The ID of the agent.
def ILdH(YKHO) -> qe4Y.Input[int]: return qe4Y.get(YKHO, 'agent_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ILdH(YKHO):\n return YKHO._agent_id", "def ILdH(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'agent_id')", "def Z3cr(YKHO):\n return YKHO.agentID", "def ILdH(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'agent_id')", "def mLJR(YKHO):\n yWBt.__idCounter__ += 1\n return...
[ "0.8720701", "0.8608742", "0.83940953", "0.81804967", "0.77296793", "0.73145324", "0.73134726", "0.72479194", "0.7237987", "0.723608", "0.71908015", "0.7102319", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146...
0.8595378
2
The Name of the agent.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JE4m(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_agent_name')", "def HN6R(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'job_agent_name')", "def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_agent_name')", "def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n r...
[ "0.78339463", "0.75301194", "0.7490555", "0.7490555", "0.74010587", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", ...
0.0
-1
The ID of the agent.
def ILdH(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'agent_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ILdH(YKHO):\n return YKHO._agent_id", "def ILdH(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'agent_id')", "def ILdH(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'agent_id')", "def Z3cr(YKHO):\n return YKHO.agentID", "def mLJR(YKHO):\n yWBt.__idCounter__ += 1\n return yWBt....
[ "0.8720701", "0.8608742", "0.8595378", "0.83940953", "0.77296793", "0.73145324", "0.73134726", "0.72479194", "0.7237987", "0.723608", "0.71908015", "0.7102319", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146"...
0.81804967
4
The ISO8601 datetime when the agent was created.
def aJ2e(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'created_at')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qL1h(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date_time')", "def _c1T(YKHO):\n return cJ1g(YKHO.created)", "def JjkJ(YKHO) -> qcWV:\n return YKHO._date_created", "def nsgh(YKHO):\n return YKHO.get_attr('date_created')", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time...
[ "0.78082407", "0.77266705", "0.7683405", "0.76564795", "0.7579632", "0.7579632", "0.7579632", "0.75597674", "0.75597674", "0.755122", "0.755122", "0.755122", "0.753003", "0.74929994", "0.7490399", "0.74360967", "0.74360967", "0.74360967", "0.7433252", "0.7433252", "0.7433252"...
0.0
-1
The ID of the user who created the agent.
def IA3p(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'created_by_user_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ad9r(YKHO):\n return YKHO.id_user", "def IA3p(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'created_by_user_id')", "def unpH(YKHO):\n return YKHO.user_id", "def uJjO(YKHO):\n return YKHO.status.user['id']", "def uJjO(YKHO) -> str:\n return YKHO._user_id", "def uJjO(YKHO) -> str:\...
[ "0.7638431", "0.75843173", "0.7528844", "0.7520064", "0.74972904", "0.74972904", "0.7490891", "0.7482224", "0.74562764", "0.74562764", "0.7432956", "0.7432956", "0.7432956", "0.7432956", "0.7432956", "0.7397565", "0.7390052", "0.7390052", "0.7390052", "0.73788756", "0.7327726...
0.76406336
0
The ISO8601 datetime when the token was last used.
def I5h0(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'last_used_at')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oCEZ(YKHO):\n return YKHO.__token_expiry_date", "def ItX3(YKHO):\n return qcWV.datetime.utcnow()", "def E3oo(YKHO) -> qcWV:\n return YKHO._timestamp", "def qcWV(YKHO):\n return YKHO._datetime", "def E3oo(YKHO):\n return YKHO.__timestamp", "def QT9s(YKHO) -> str:\n return qe4Y.get(YK...
[ "0.76950127", "0.73088133", "0.7157943", "0.70777804", "0.70218694", "0.69645715", "0.69645715", "0.69645715", "0.6955441", "0.6955441", "0.6955441", "0.6955441", "0.6955441", "0.6955441", "0.6955441", "0.6935181", "0.6915821", "0.69136053", "0.69136053", "0.69136053", "0.690...
0.0
-1
The Name of the agent.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JE4m(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_agent_name')", "def HN6R(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'job_agent_name')", "def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_agent_name')", "def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n r...
[ "0.78339463", "0.75301194", "0.7490555", "0.7490555", "0.74010587", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", ...
0.0
-1
The status of the token. Valid values are `active`, `revoked`.
def jGRS(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OAW2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'auth_status')", "def jGRS(YKHO):\n return YKHO.get(YKHO._names['status'])", "def jGRS(YKHO):\n return YKHO._data['status']", "def jGRS(YKHO):\n return O6qs[YKHO.fields['status']]", "def VLTN(YKHO):\n return YKHO.status", "def VLT...
[ "0.7031284", "0.6989282", "0.6973444", "0.6900319", "0.6879644", "0.6879644", "0.6879644", "0.6879554", "0.67883444", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.6...
0.0
-1
The secret token for the agent. The `token` is not available in imported resources.
def eOtH(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'token')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eOtH():\n return Hy7s.environ.get('TOKEN', None)", "def Yexg(YKHO) -> str:\n if wr0B:\n return Hy7s.environ['HASSIO_TOKEN']\n return YKHO._token", "def HcCX():\n eOtH = AxXv(SmRV)\n if eOtH == None:\n raise SystemExit('No token found. Use env variable %s' % SmRV)\n return eO...
[ "0.7648019", "0.7171449", "0.6983897", "0.69376534", "0.69183296", "0.69183296", "0.69183296", "0.68213236", "0.6653326", "0.66345036", "0.6579541", "0.6536636", "0.64807683", "0.64256006", "0.6393913", "0.6385044", "0.63803583", "0.63743347", "0.63743347", "0.63743347", "0.6...
0.6102924
50
The ID of the token.
def oFhs(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'token_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oFhs(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'token_id')", "def Ilxn(YKHO) -> str:\n return YKHO.current_token", "def Rh6J(YKHO):\n return f'{YKHO.document_title}_{YKHO.index}'", "def FGnY(YKHO) -> str:\n return YKHO.token_id.hex()", "def id(YKHO, s2mk):\n if len(s2mk) != 1:\n...
[ "0.86078334", "0.8088483", "0.7809443", "0.775026", "0.75488836", "0.75207514", "0.7356456", "0.727146", "0.727146", "0.727146", "0.7270929", "0.7269105", "0.7263741", "0.7260225", "0.7201723", "0.7189615", "0.71678805", "0.7160857", "0.7155969", "0.71258813", "0.71140665", ...
0.82888305
1
Get an existing ClusterAgentToken resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, ILdH: Optional[pulumi.Input[int]]=None, aJ2e: Optional[pulumi.Input[str]]=None, IA3p: Optional[pulumi.Input[int]]=None, JBZA: Optional[pulumi.Input[str]]=None, I5h0: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, OYTW: Optional[pulumi.Input[str]]=None, hMqs: Optional[pulumi.Input[str]]=None, I33c: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, ZHaX: Optional[pulumi.Input[str]]=None, O2mZ: Optional[pulumi.Input...
[ "0.5729356", "0.5240354", "0.4993941", "0.49915427", "0.48459008", "0.47981727", "0.47868702", "0.47089988", "0.4699771", "0.4669539", "0.4664007", "0.46348143", "0.46191856", "0.45810008", "0.45749027", "0.4571029", "0.45167115", "0.44843623", "0.44670457", "0.44451842", "0....
0.71814287
0
The ID of the agent.
def ILdH(YKHO) -> qe4Y.Output[int]: return qe4Y.get(YKHO, 'agent_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ILdH(YKHO):\n return YKHO._agent_id", "def ILdH(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'agent_id')", "def Z3cr(YKHO):\n return YKHO.agentID", "def ILdH(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'agent_id')", "def mLJR(YKHO):\n yWBt.__idCounter__ += 1\n return ...
[ "0.8720701", "0.8595378", "0.83940953", "0.81804967", "0.77296793", "0.73145324", "0.73134726", "0.72479194", "0.7237987", "0.723608", "0.71908015", "0.7102319", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146", "0.7062146...
0.8608742
1
The ISO8601 datetime when the agent was created.
def aJ2e(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'created_at')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qL1h(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date_time')", "def _c1T(YKHO):\n return cJ1g(YKHO.created)", "def JjkJ(YKHO) -> qcWV:\n return YKHO._date_created", "def nsgh(YKHO):\n return YKHO.get_attr('date_created')", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time...
[ "0.78082407", "0.77266705", "0.7683405", "0.76564795", "0.7579632", "0.7579632", "0.7579632", "0.75597674", "0.75597674", "0.755122", "0.755122", "0.755122", "0.753003", "0.74929994", "0.7490399", "0.74360967", "0.74360967", "0.74360967", "0.7433252", "0.7433252", "0.7433252"...
0.7078203
82
The ID of the user who created the agent.
def IA3p(YKHO) -> qe4Y.Output[int]: return qe4Y.get(YKHO, 'created_by_user_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IA3p(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'created_by_user_id')", "def Ad9r(YKHO):\n return YKHO.id_user", "def unpH(YKHO):\n return YKHO.user_id", "def uJjO(YKHO):\n return YKHO.status.user['id']", "def uJjO(YKHO) -> str:\n return YKHO._user_id", "def uJjO(YKHO) -> ...
[ "0.76406336", "0.7638431", "0.7528844", "0.7520064", "0.74972904", "0.74972904", "0.7490891", "0.7482224", "0.74562764", "0.74562764", "0.7432956", "0.7432956", "0.7432956", "0.7432956", "0.7432956", "0.7397565", "0.7390052", "0.7390052", "0.7390052", "0.73788756", "0.7327726...
0.75843173
2
The ISO8601 datetime when the token was last used.
def I5h0(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'last_used_at')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oCEZ(YKHO):\n return YKHO.__token_expiry_date", "def ItX3(YKHO):\n return qcWV.datetime.utcnow()", "def E3oo(YKHO) -> qcWV:\n return YKHO._timestamp", "def qcWV(YKHO):\n return YKHO._datetime", "def E3oo(YKHO):\n return YKHO.__timestamp", "def QT9s(YKHO) -> str:\n return qe4Y.get(YK...
[ "0.76950127", "0.73088133", "0.7157943", "0.70777804", "0.70218694", "0.69645715", "0.69645715", "0.69645715", "0.6955441", "0.6955441", "0.6955441", "0.6955441", "0.6955441", "0.6955441", "0.6955441", "0.6935181", "0.6915821", "0.69136053", "0.69136053", "0.69136053", "0.690...
0.0
-1
The Name of the agent.
def mWFP(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JE4m(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_agent_name')", "def HN6R(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'job_agent_name')", "def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_agent_name')", "def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n r...
[ "0.78339463", "0.75301194", "0.7490555", "0.7490555", "0.74010587", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", "0.7379259", ...
0.0
-1
The status of the token. Valid values are `active`, `revoked`.
def jGRS(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OAW2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'auth_status')", "def jGRS(YKHO):\n return YKHO.get(YKHO._names['status'])", "def jGRS(YKHO):\n return YKHO._data['status']", "def jGRS(YKHO):\n return O6qs[YKHO.fields['status']]", "def VLTN(YKHO):\n return YKHO.status", "def VLT...
[ "0.7031284", "0.6989282", "0.6973444", "0.6900319", "0.6879644", "0.6879644", "0.6879644", "0.6879554", "0.67883444", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.67843896", "0.6...
0.0
-1
The secret token for the agent. The `token` is not available in imported resources.
def eOtH(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'token')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eOtH():\n return Hy7s.environ.get('TOKEN', None)", "def Yexg(YKHO) -> str:\n if wr0B:\n return Hy7s.environ['HASSIO_TOKEN']\n return YKHO._token", "def HcCX():\n eOtH = AxXv(SmRV)\n if eOtH == None:\n raise SystemExit('No token found. Use env variable %s' % SmRV)\n return eO...
[ "0.7648019", "0.7171449", "0.6983897", "0.69376534", "0.69183296", "0.69183296", "0.69183296", "0.68213236", "0.6653326", "0.66345036", "0.6579541", "0.6536636", "0.64807683", "0.64256006", "0.6385044", "0.63803583", "0.63743347", "0.63743347", "0.63743347", "0.63204384", "0....
0.6393913
14
The ID of the token.
def oFhs(YKHO) -> qe4Y.Output[int]: return qe4Y.get(YKHO, 'token_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oFhs(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'token_id')", "def Ilxn(YKHO) -> str:\n return YKHO.current_token", "def Rh6J(YKHO):\n return f'{YKHO.document_title}_{YKHO.index}'", "def FGnY(YKHO) -> str:\n return YKHO.token_id.hex()", "def id(YKHO, s2mk):\n if len(s2mk) !=...
[ "0.82888305", "0.8088483", "0.7809443", "0.775026", "0.75488836", "0.75207514", "0.7356456", "0.727146", "0.727146", "0.727146", "0.7270929", "0.7269105", "0.7263741", "0.7260225", "0.7201723", "0.7189615", "0.71678805", "0.7160857", "0.7155969", "0.71258813", "0.71140665", ...
0.86078334
0
Returns the next valid date given a datetime.date object.
def __4e(_c1T): lO87, x0eS, CjKC = (_c1T.year, _c1T.month, _c1T.day) try: CjKC += 1 return qcWV.date(lO87, x0eS, CjKC) except ValueError: try: x0eS += 1 CjKC = 1 return qcWV.date(lO87, x0eS, CjKC) except ValueError: try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Scik(_c1T):\n return _c1T + qcWV.timedelta(days=1)", "def Scik(_c1T):\n return _c1T + qcWV.timedelta(days=1)", "def zdyA(nPrm, _c1T):\n sjkL = None\n while sjkL is None:\n try:\n bGrB = nPrm.loc[_c1T]\n sjkL = _c1T\n except KeyError:\n _c1T = r3Pm(...
[ "0.78486747", "0.78486747", "0.7615841", "0.694042", "0.671127", "0.6605883", "0.65694004", "0.6512969", "0.6512533", "0.6448639", "0.6387723", "0.6386412", "0.6384641", "0.6356952", "0.6345007", "0.6292043", "0.6283096", "0.62576383", "0.6245417", "0.6240974", "0.623508", ...
0.65591383
7
Override default getattr to return tracked attribute.
def JgjC(YKHO, ZfUD): if ZfUD.startswith('_'): return super(DNh1, YKHO).__getattr__(ZfUD) if ZfUD == 'o': return c_X8(YKHO._anon) else: O3XB = YKHO._objects.get(ZfUD, None) if O3XB is None: O3XB = YKHO._aliases.get(ZfUD, None) if O3XB is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JgjC(YKHO, hkS8):\n return YKHO.get(hkS8)", "def JgjC(YKHO, hkS8):\n return getattr(YKHO.obj, hkS8)", "def JgjC(YKHO, hkS8):\n return getattr(YKHO.obj, hkS8)", "def JgjC(YKHO, mWFP: str) -> ImMB:\n return YKHO.__getattribute__(mWFP)", "def NMoC(YKHO, AniK):\n return getattr(YKHO, AniK)",...
[ "0.7684176", "0.73574626", "0.73574626", "0.71724224", "0.7144134", "0.7143065", "0.7102811", "0.70685124", "0.7052267", "0.7050965", "0.7042985", "0.7042985", "0.7042985", "0.7042985", "0.7042985", "0.7042985", "0.7042985", "0.7042985", "0.70120555", "0.7006711", "0.70016825...
0.62623334
93
Override default setattr to sync tracking of slicer.
def PCU8(YKHO, H5ew, BWXx): if H5ew.startswith('_'): return super(DNh1, YKHO).__setattr__(H5ew, BWXx) MRdk = YKHO._objects.get(H5ew, None) PeDA = YKHO._aliases.get(H5ew, None) if getattr(YKHO, H5ew, None) is not None and H5ew != 'o': if not isinstance(BWXx, QyEc): if MRdk: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PCU8(YKHO, hkS8, BWXx):\n super().__setattr__(hkS8, BWXx)", "def PCU8(YKHO, *qIxc, **B2fa):\n pass", "def PCU8(YKHO, *qIxc, **B2fa):\n pass", "def PCU8(YKHO, *qIxc, **B2fa):\n pass", "def PCU8(YKHO, *qIxc, **B2fa):\n pass", "def PCU8(YKHO, *qIxc, **B2fa):\n pass", "def PCU8(YKHO, ...
[ "0.6426999", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "0.6182711", "...
0.61814886
61
Override default repr for human readability.
def wHJl(YKHO): zXzD = YKHO.__dict__ CG54 = {} for H5ew, BWXx in zXzD.items(): if not H5ew.startswith('_'): CG54[H5ew] = BWXx return f'{YKHO.__class__.__name__}({str(CG54)})'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAeI(YKHO):\n return ''", "def repr(YKHO):\n raise l8Sf('Unimplemented repr()')", "def wHJl(YKHO):\n return f'<{type(YKHO).__name__} {YKHO.__dict__}>'", "def aRbh(YKHO):\n return repr(YKHO.label())", "def kovq(YKHO) -> str:\n return ''", "def zAg0(YKHO):\n return repr(YKHO)", "def...
[ "0.7940475", "0.76482254", "0.7644189", "0.7599362", "0.7593376", "0.7589166", "0.7574318", "0.7574318", "0.75735915", "0.74729484", "0.746941", "0.7391284", "0.7391284", "0.7391284", "0.7391284", "0.7382557", "0.7378745", "0.73776764", "0.73640203", "0.73519033", "0.7345789"...
0.0
-1
Add extra Q for user list queryset
def Wnkl(Emd4, G8qv): Emd4._extra_query.append(G8qv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, *qIxc, **B2fa):\n umWR = super().get_queryset(*qIxc, **B2fa).filter(user=YKHO.request.user)\n return umWR", "def k66M(YKHO):\n SR0I = super(_p1v.ModelViewSet, YKHO).get_queryset().order_by('first_name')\n if YKHO.request.GET.get('q', None):\n return SR0I.filter(username__icontai...
[ "0.68715924", "0.6788188", "0.66180813", "0.66014534", "0.65773475", "0.6528261", "0.65206707", "0.6518756", "0.6466846", "0.6454059", "0.6451597", "0.644785", "0.6385647", "0.6349942", "0.6347449", "0.6340275", "0.6340275", "0.6340275", "0.6335473", "0.6320915", "0.6317904",...
0.0
-1
An adaptive learning rate optimizer
def N8Uz(tspZ, _2q5, vtNT, WKvO, LVAh, sSN_): xfv6 = [e89i.shared(XP5J.get_value() * UbCs(0.0), name='%s_grad' % G1Hx) for G1Hx, XP5J in _2q5.iteritems()] tGl7 = [e89i.shared(XP5J.get_value() * UbCs(0.0), name='%s_rup2' % G1Hx) for G1Hx, XP5J in _2q5.iteritems()] PlM0 = [e89i.shared(XP5J.get_value() * UbCs(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do):\n for uOe2 in K0do.param_groups:\n if 'step' not in uOe2:\n uOe2['step'] = 0\n uOe2['step'] += 1\n uOe2['lr'] = qIxc.lr / (1 + uOe2['step'] * qIxc.lr_decay)", "def e_63(K0do):\n for uOe2 in K0do.param_groups:\n if 'step' not in uOe2:\n uOe2[...
[ "0.7576067", "0.7522943", "0.7405154", "0.7300586", "0.7292182", "0.7284016", "0.7246172", "0.72219795", "0.72171766", "0.71947455", "0.71901083", "0.71776354", "0.7175784", "0.7175784", "0.7175784", "0.7174171", "0.717094", "0.71655536", "0.71610427", "0.71595126", "0.715858...
0.0
-1
Convert decoded JSON to a ClientData object. Take the object decoded from the JSON and if it corresponds to ClientData objects, convert it to a ClientData object.
def WSr7(YKHO, Csk6): if isinstance(Csk6, dict) and 'clientId' in Csk6: o1Kh = OlWU(**Csk6) return o1Kh elif YKHO._other_object_hook is not None: return YKHO._other_object_hook(Csk6) else: return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BPsS(YKHO, nPrm: bytes):\n return qQXR.loads(nPrm.decode('utf-8'))", "def Ocrw(nPrm):\n if isinstance(nPrm, bytes):\n nPrm = nPrm.decode('utf-8')\n return qQXR.loads(nPrm)", "def P8XT(FbHv):\n return qQXR.loads(FbHv.decode())", "def pktP(Emd4, nPrm):\n try:\n return _1kr(nPrm...
[ "0.65471876", "0.6504613", "0.64651257", "0.645426", "0.6378964", "0.6175173", "0.61399347", "0.6085762", "0.607858", "0.6064476", "0.6034679", "0.60334545", "0.6027644", "0.5978138", "0.59381735", "0.5936755", "0.59308106", "0.5926971", "0.59009254", "0.5885581", "0.58525854...
0.7351155
0
Constructor for ClientData object. Used by ClientDataDecoder, a JSONDecoder.
def FIMM(YKHO, **lcZy): YKHO._isoFmt = '%Y%m%dT%H%M%S%z' YKHO._init_client_id(lcZy) YKHO._init_shared_secret(lcZy) YKHO._init_counter_from_time(lcZy) YKHO._init_last_count(lcZy) YKHO._init_last_count_update_time(lcZy) YKHO._init_period(lcZy) YKHO._init_password_length(lcZy) YKHO._ini...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def igRu(YKHO, nPrm):\n pass", "def FIMM(YKHO, x0hE=None):\n YKHO._client = x0hE", "def FIMM(YKHO, nPrm):\n YKHO.data = nPrm\n return", "def FIMM(YKHO, x0hE):\n YKHO._client = x0hE", "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE", "def FIMM(YKHO, x0hE, mWFP):\n if not isinstance(x0hE, ...
[ "0.6422746", "0.6390529", "0.63650286", "0.6287494", "0.62591165", "0.6249365", "0.6191964", "0.618473", "0.6179052", "0.6158204", "0.6158204", "0.6158204", "0.61580455", "0.6119559", "0.6112144", "0.6112144", "0.6112144", "0.6112144", "0.6058809", "0.6056181", "0.60296744", ...
0.57924926
40
Whether this object is equal to the other.
def xa14(YKHO, Elif): if type(YKHO) != type(Elif): return False KDMZ = vars(YKHO) jH6V = vars(Elif) for Ty9i in vars(YKHO): if KDMZ[Ty9i] != jH6V[Ty9i]: print('unequal property {0}\n'.format(Ty9i)) if Ty9i.endswith('last_count_update_time'): print(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__class__):\n return YKHO.__dict__ == Elif.__dict__\n return False", "def xa14(YKHO, Elif):\n ...
[ "0.867391", "0.867391", "0.85389054", "0.8401829", "0.8389734", "0.8389734", "0.8358202", "0.8312268", "0.8312268", "0.82864183", "0.8281654", "0.82786906", "0.82786906", "0.8276752", "0.82594275", "0.82587564", "0.8248307", "0.8210511", "0.8210511", "0.8210511", "0.8210511",...
0.0
-1
Whether this object is not equal to the other.
def Vdqg(YKHO, Elif): if type(YKHO) != type(Elif): return True KDMZ = vars(YKHO) jH6V = vars(Elif) for Ty9i in vars(YKHO): if KDMZ[Ty9i] != jH6V[Ty9i]: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\...
[ "0.8941533", "0.87022775", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167", "0.86881167",...
0.0
-1
Canonical string representation of this object.
def wHJl(YKHO): Aofo = [] Aofo.append("ClientData(client_id='{0}',".format(YKHO.__client_id)) Aofo.append("shared_secret='{0}',".format(YKHO.__shared_secret)) Aofo.append("last_count_update_time='{0}')".format(YKHO.__last_count_update_time)) return ' '.join(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO):\n return YKHO.__str__()", "def Napc(YKHO):\n return str(YKHO)", "def CZBi(YKHO):\n return YKHO.__repr__()", "def Napc(YKHO):\n return str(YKHO)", "def zAg0(YKHO):\n return str(YKHO.serialize())", "def zAg0(YKHO) -> str:\n return YKHO.encode()", "def zAg0(YKHO):\n re...
[ "0.7634768", "0.76202106", "0.7586968", "0.7519495", "0.7494388", "0.74759656", "0.7447208", "0.7422603", "0.740179", "0.7383906", "0.73731464", "0.73479104", "0.73324186", "0.731711", "0.731711", "0.731711", "0.72959983", "0.72874147", "0.72874147", "0.72874147", "0.72874147...
0.0
-1
Store ClientData objects into encrypted file. Store the list of ClientData objects as a JSON document in a file encrypted with the passphrase.
def xkzz(YKHO, VqRE, GSHD, NJpP=None): import struct cVwz = qQXR.dumps(GSHD, sort_keys=True, indent=4, separators=(',', ': '), cls=YIUn) WBPg = b''.join([struct.pack('!I', YKHO.__magic_number), struct.pack('!I', YKHO.__file_version), struct.pack('!I', YKHO.__key_stretches), struct.pack('!I', YKHO.__magic_nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVOF(YKHO):\n WPdU = {'file_version': 1}\n z4Ml = []\n WPdU['data'] = z4Ml\n for bxkL, hl9o in YKHO._data.items():\n N8Ym = dict(bxkL)\n ZZmV = qQXR.loads(hl9o.to_json())\n z4Ml.append({'key': N8Ym, 'credential': ZZmV})\n YKHO._locked_json_write(WPdU)", "def xkzz(YKHO):\n ...
[ "0.6999334", "0.63331616", "0.63203996", "0.6197662", "0.61815417", "0.6113151", "0.60673785", "0.5794931", "0.5777157", "0.5735691", "0.57253367", "0.56854194", "0.56848943", "0.5683715", "0.56807464", "0.56693393", "0.5633521", "0.5616779", "0.5616678", "0.5586651", "0.5569...
0.8028827
0
Return True if the tile (m, n) has been cleaned. Assumes that (m, n) represents a valid tile inside the room.
def I7c5(YKHO, r8hN, exwG): return YKHO.tiles[exwG][r8hN] == True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I7c5(YKHO, r8hN, exwG):\n if (r8hN, exwG) in YKHO.clean_tiles:\n return True\n return False", "def I7c5(YKHO, r8hN, exwG):\n if YKHO.tiles[DhiK(r8hN, exwG)] == 'clean':\n return True\n else:\n return False", "def I7c5(YKHO, r8hN, exwG):\n if (r8hN, exwG) in YKHO.CleanBlo...
[ "0.88597345", "0.85988295", "0.85317594", "0.85142916", "0.84697247", "0.846929", "0.71480703", "0.6396753", "0.63434696", "0.6323528", "0.62693465", "0.625582", "0.624673", "0.62339276", "0.6221796", "0.6211104", "0.61941254", "0.6129271", "0.6124708", "0.61234796", "0.60972...
0.88561296
1
Return the total number of tiles in the room.
def xrV0(YKHO): return YKHO.w * YKHO.h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xrV0(YKHO):\n return YKHO.height * YKHO.width", "def xrV0(YKHO):\n return len(list(Lx3t(list(range(YKHO.width + 1))[1:], list(range(YKHO.height + 1))[1:])))", "def xrV0(YKHO):\n return YKHO.width * YKHO.height", "def PS2n(YKHO):\n return YKHO.num_row_tiles * YKHO.num_col_tiles", "def xrV0(Y...
[ "0.8205867", "0.81903553", "0.81504375", "0.8046322", "0.8039323", "0.7871275", "0.78123623", "0.7472709", "0.7407938", "0.7151273", "0.7067083", "0.6982381", "0.69224", "0.6857802", "0.6832814", "0.6813225", "0.67038375", "0.66893554", "0.66816777", "0.6676057", "0.66583914"...
0.79811716
5
Return a random position inside the room.
def kxG1(YKHO): return DhiK(tuKI.random() * YKHO.w, tuKI.random() * YKHO.h)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kxG1(YKHO):\n WKvO = tuKI.randint(0, YKHO.width - 1)\n LVAh = tuKI.randint(0, YKHO.height - 1)\n return DhiK(WKvO, LVAh)", "def kxG1(YKHO):\n return DhiK(tuKI.uniform(0, YKHO.width), tuKI.uniform(0, YKHO.height))", "def lPP6(YKHO):\n return (tuKI.randrange(0, YKHO.maze.width), tuKI.randrange...
[ "0.8408874", "0.8339333", "0.8331419", "0.83306754", "0.8253471", "0.8129327", "0.79893064", "0.7975111", "0.79634804", "0.78944933", "0.76948863", "0.74812585", "0.74559724", "0.73774105", "0.73208076", "0.730955", "0.7219106", "0.7115554", "0.7098047", "0.70740753", "0.7016...
0.84095305
0
Return True if pos is inside the room.
def sfPQ(YKHO, oeNL): if oeNL.getX() >= 0 and oeNL.getX() < YKHO.w: if oeNL.getY() >= 0 and oeNL.getY() < YKHO.h: return True return False return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sfPQ(YKHO, oeNL):\n X3hi = oeNL.getX()\n ZDfp = oeNL.getY()\n if X3hi >= 0 and X3hi < YKHO.width and (ZDfp >= 0) and (ZDfp < YKHO.height):\n return True\n return False", "def sfPQ(YKHO, oeNL):\n if oeNL.getX() >= 0.0 and oeNL.getX() < float(YKHO.width):\n if oeNL.getY() >= 0.0 an...
[ "0.85856265", "0.8501791", "0.8394953", "0.8270461", "0.81534183", "0.79472804", "0.7664707", "0.75780624", "0.7245776", "0.7134537", "0.70549065", "0.7034335", "0.6900973", "0.6892583", "0.6865422", "0.6829012", "0.6828001", "0.6822237", "0.68087435", "0.68055147", "0.679743...
0.85830444
1
returns absolute path to archive file
def yHgm(B2KD, gwXL, gJmB='jpg'): zlqQ, Ux0P = BpwU(B2KD) return gwXL + '/' + zlqQ + '/' + Ux0P + '.' + gJmB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q9qR(YKHO):\n return Hy7s.path.join(YKHO.destination_directory, YKHO.__archive_name__)", "def SQ_B(orwa, X7c_):\n return Hy7s.path.join(X7c_, Hy7s.path.basename(orwa))", "def ZTYM(YKHO):\n if YKHO._mode == 'zip':\n return YKHO._rootExportPath + '.zip'\n return ''", "def jmDm(YKHO, dixj...
[ "0.8228015", "0.7616653", "0.757709", "0.74785423", "0.7088997", "0.6817138", "0.67750716", "0.6671779", "0.6665287", "0.6606364", "0.6548457", "0.6540361", "0.65281206", "0.65281206", "0.65260977", "0.65006596", "0.64912564", "0.6480579", "0.6474086", "0.6454516", "0.6430595...
0.6911957
5
Convert data to standard ascii characters.
def RFLX(YKHO, nPrm): return nPrm.decode('ISO-8859-1')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xre1(YKHO):\n if type(YKHO.data) is not list:\n return -1\n yvT9 = str()\n for U6D_ in YKHO.data:\n yvT9 += chr(int(U6D_))\n return yvT9", "def jd6m(YKHO, nPrm):\n print('_string_data:')\n gzo9 = []\n for YRbF in nPrm[::2]:\n gzo9.append(chr(YRbF))\n print(gzo9)",...
[ "0.7197761", "0.68423116", "0.68288904", "0.6794233", "0.67692846", "0.6685742", "0.6560976", "0.6391082", "0.63756526", "0.6294149", "0.6287743", "0.6281194", "0.6278725", "0.62426907", "0.6227459", "0.61793", "0.617161", "0.61366737", "0.6102505", "0.6090761", "0.60786945",...
0.5391506
85
numerically stable log_softmax implementation that prevents overflow
def asmm(WKvO): jDK_ = len(WKvO.get_shape()) - 1 r8hN = ZylS.reduce_max(WKvO, jDK_, keep_dims=True) return WKvO - r8hN - ZylS.log(ZylS.reduce_sum(ZylS.exp(WKvO - r8hN), jDK_, keep_dims=True))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YH__(WKvO):\n OuhA = WKvO - oyIN.max(WKvO)\n nwEM = oyIN.exp(OuhA)\n return nwEM / oyIN.sum(nwEM)", "def h_oU(input, tpio, LpaZ=False):\n return o8DQ.apply('LogSoftmax', input.device, [input], outputs=[input if LpaZ else None], axis=tpio)", "def h_oU(WKvO: jnp.DeviceArray, *, jDK_: int=0) -> oL...
[ "0.77298", "0.77168965", "0.77082556", "0.76411545", "0.76040596", "0.7375868", "0.7335469", "0.7334381", "0.7319122", "0.7316114", "0.7291785", "0.72785354", "0.72421026", "0.7237872", "0.7236452", "0.7203207", "0.7203207", "0.7200916", "0.719867", "0.7190057", "0.71697676",...
0.7343657
6
We split the words so we can analyze them seperately
def C0vU(l5Ny): TZ9E = l5Ny.split() '\n We take the beginning of the text since the\n author name will likely be there\n ' TZ9E = TZ9E[:100] taDc = [] VdJ4 = 0 "\n We go through each word until we find the first instance\n of the word 'by' or 'author', which should mean the author...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tFpc(YKHO):\n YKHO._words = []\n l5Ny = YKHO._text.replace(\"'m \", ' am ')\n l5Ny = l5Ny.replace(\"'d \", ' would ')\n l5Ny = l5Ny.replace(\"'ll \", ' will ')\n l5Ny = l5Ny.replace(\"'ve \", ' have ')\n l5Ny = l5Ny.replace(\"'re \", ' are ')\n l5Ny = l5Ny.replace(\"can't \", 'can not ')\n...
[ "0.74844486", "0.7355455", "0.7257714", "0.7257714", "0.72485566", "0.70969605", "0.70969605", "0.7084676", "0.708436", "0.708436", "0.708436", "0.708436", "0.708436", "0.7069055", "0.70544416", "0.70502704", "0.6975336", "0.69170445", "0.68933433", "0.6893294", "0.6865692", ...
0.0
-1
Compute the size needed by a homogeneous BoxLayout. In a homogeneous box, the size allocated to the children is the same for all. The algorithm looks at all the children and finds the size of the biggest one. This size is used for all the children. This method is generic in the sense that it doesn't know whether the Bo...
def lzow(YKHO, afYC): nrso = YKHO.PRIMARY_LENGTH F0oA = YKHO.SECONDARY_LENGTH E0wO = DEza(0, 0) try: for aUGN in afYC: E0wO |= aUGN.requested_size except AttributeError as ex: qIxc = list(aTqo.args) qIxc[0] += ', did you forget to request the size of the child?' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhy6(YKHO):\n\n def YgYZ(tpio):\n zNig = (YKHO.element_space[tpio] - 1) // YKHO.box_space[tpio] + 1\n zNig += 2 * YKHO.ghost_space[tpio]\n while zNig % LDHv.BOX_ALIGNMENTS[tpio]:\n zNig += 1\n return zNig\n return mxSo([YgYZ(tpio) for tpio in range(YKHO.dimensions)]...
[ "0.66977483", "0.6370156", "0.6296549", "0.62391824", "0.61786366", "0.5886009", "0.5824547", "0.58231586", "0.58202034", "0.57819533", "0.5761914", "0.5759858", "0.57494634", "0.57494634", "0.5701179", "0.560091", "0.5596764", "0.5589172", "0.5572187", "0.5556853", "0.552199...
0.60242397
5
Compute the size needed by a heterogeneous BoxLayout. In a heterogeneous box, the size requested is just enough to hold the children with their requested size. The algorithm looks through all the children, summing their width or height (depends on the direction of the box), and taking the max of their height or width i...
def n0pi(YKHO, afYC): nrso = YKHO.PRIMARY_LENGTH F0oA = YKHO.SECONDARY_LENGTH Q0gs = KV5o = 0 for aUGN in afYC: f1I4 = aUGN.requested_size Q0gs += getattr(f1I4, nrso) YQeL = getattr(f1I4, F0oA) if YQeL > KV5o: KV5o = YQeL kLcu = len(afYC) Q0gs += (kLcu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhy6(YKHO):\n\n def YgYZ(tpio):\n zNig = (YKHO.element_space[tpio] - 1) // YKHO.box_space[tpio] + 1\n zNig += 2 * YKHO.ghost_space[tpio]\n while zNig % LDHv.BOX_ALIGNMENTS[tpio]:\n zNig += 1\n return zNig\n return mxSo([YgYZ(tpio) for tpio in range(YKHO.dimensions)]...
[ "0.67952865", "0.62145597", "0.6214305", "0.6127589", "0.6067746", "0.5848009", "0.58155066", "0.57733303", "0.57298225", "0.568806", "0.568806", "0.56697273", "0.5612735", "0.55830956", "0.5576738", "0.55723006", "0.55685544", "0.55630285", "0.5552761", "0.55480534", "0.5541...
0.6069013
4
Check if queue is empty
def A4KR(YKHO): YKHO.logger.debug('Check if queue job is empty') A4KR = YKHO.queue.empty() YKHO.logger.debug('Queue job is empty ?: %s' % A4KR) return A4KR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def lsmZ(YKHO):\n return YKHO.queue == []...
[ "0.8924103", "0.88415533", "0.88415533", "0.8801944", "0.87844974", "0.87179065", "0.87071383", "0.8638672", "0.8625907", "0.8614518", "0.85417366", "0.8499197", "0.8484975", "0.84700626", "0.8439533", "0.84354514", "0.8434577", "0.8399098", "0.83621544", "0.83621544", "0.825...
0.8143622
28
Return the condition list from its index
def qJRP(YKHO, or8S): return YKHO._conds[or8S]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDpu(YKHO, Q3Ge):\n jbXL = bNxF(YKHO.index, label_size=YKHO._label_size, check_arr=False)\n if Q3Ge == 0:\n return [HRJ_[0] for HRJ_ in jbXL if len(HRJ_) == 1]\n else:\n return [HRJ_[0] for HRJ_ in jbXL if len(HRJ_) > 1]", "def EacV(YKHO, oVM8):\n if YKHO.isEmpty():\n return ...
[ "0.63874984", "0.58443344", "0.5766281", "0.57433796", "0.5672717", "0.56280476", "0.56280476", "0.56280476", "0.5627868", "0.56104404", "0.55799097", "0.55588", "0.55019385", "0.5497234", "0.5486861", "0.544971", "0.54467297", "0.5436731", "0.53251415", "0.5252113", "0.52408...
0.6061257
2
Return the condition list from its index
def qJRP(YKHO, or8S): return YKHO._conds[or8S]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDpu(YKHO, Q3Ge):\n jbXL = bNxF(YKHO.index, label_size=YKHO._label_size, check_arr=False)\n if Q3Ge == 0:\n return [HRJ_[0] for HRJ_ in jbXL if len(HRJ_) == 1]\n else:\n return [HRJ_[0] for HRJ_ in jbXL if len(HRJ_) > 1]", "def EacV(YKHO, oVM8):\n if YKHO.isEmpty():\n return ...
[ "0.63874984", "0.58443344", "0.5766281", "0.57433796", "0.5672717", "0.56280476", "0.56280476", "0.56280476", "0.5627868", "0.56104404", "0.55799097", "0.55588", "0.55019385", "0.5497234", "0.5486861", "0.544971", "0.54467297", "0.5436731", "0.53251415", "0.5252113", "0.52408...
0.6061257
1