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
Returns the number of nodes that match the specified xpath, eg. "//table" would give the number of tables. 'xpath' is the xpath expression to evaluate. do NOT wrap this expression in a 'count()' function; we will do that for you.
def rTQP(YKHO, laNn): return YKHO.get_number('getXpathCount', [laNn])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BHcy(YKHO, laNn):\n UHFx = len(YKHO.apu._element_find('xpath=' + laNn, False, False))\n return str(UHFx)", "def MqAu(YKHO, E_qD):\n xMJb = YKHO.loc_it(E_qD)\n return len(xMJb.find_elements_by_xpath('.//*'))", "def Kytq(Emd4, pNZh):\n vexM = 'MATCH (n:{0}) RETURN COUNT(n) AS count'.format(Emd...
[ "0.81695265", "0.606112", "0.6046134", "0.5859099", "0.58520216", "0.5717359", "0.56943303", "0.5680026", "0.5676944", "0.5644453", "0.56310344", "0.5628597", "0.5622789", "0.5615737", "0.5596826", "0.5540973", "0.553751", "0.5522833", "0.55013716", "0.54838306", "0.545212", ...
0.8367585
0
Gets the title of the current page.
def Upwb(YKHO): return YKHO.get_string('getTitle', [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Upwb(YKHO):\n return YKHO.get_page_title()", "def fyvm(YKHO):\n return YKHO._page_title", "def Upwb(YKHO):\n fyvm = YKHO.driver.title\n return fyvm", "def fyvm(YKHO):\n return YKHO.driver.title", "def Upwb(YKHO):\n YKHO.page_readiness_wait()\n try:\n return YKHO.driver.title...
[ "0.89540976", "0.86674213", "0.8386749", "0.83281124", "0.8104604", "0.8044881", "0.8044881", "0.8044881", "0.8032271", "0.80248475", "0.80248475", "0.80188584", "0.7986891", "0.79763055", "0.79763055", "0.79763055", "0.79763055", "0.79763055", "0.79763055", "0.79763055", "0....
0.7772041
83
Gets the (whitespacetrimmed) value of an input field (or anything else with a value parameter). For checkbox/radio elements, the value will be "on" or "off" depending on whether the element is checked or not. 'locator' is an element locator
def Zmkp(YKHO, uG8F): return YKHO.get_string('getValue', [uG8F])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, uG8F):\n return YKHO.apu.get_element_attribute(uG8F, 'value')", "def OJGh(YKHO):\n return YKHO.text_field_web_element.get_attribute('value')", "def aQHs(YKHO):\n if YKHO.disabled:\n return None\n if not YKHO.is_text_type and YKHO.element.value == YKHO.element._default:\n ...
[ "0.61688626", "0.5832683", "0.5813042", "0.54793584", "0.54740626", "0.54740626", "0.54393256", "0.54230225", "0.54203105", "0.53806484", "0.53806484", "0.53806484", "0.53806484", "0.53806484", "0.53806484", "0.53806484", "0.53806484", "0.53806484", "0.53806484", "0.53806484", ...
0.55711496
4
Returns the specified expression. This is useful because of JavaScript preprocessing. It is used to generate commands like assertExpression and waitForExpression. 'expression' is the value to return
def yGUq(YKHO, lsX7): return YKHO.get_string('getExpression', [lsX7])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7La(YKHO, lsX7):\n return eval(lsX7)", "def lsX7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'expression')", "def lsX7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'expression')", "def lsX7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'expression')", "def lsX7(YKHO) -> qe4Y...
[ "0.7521643", "0.71937126", "0.71937126", "0.71937126", "0.71937126", "0.71937126", "0.71937126", "0.71937126", "0.71937126", "0.7108661", "0.7107446", "0.71067196", "0.703072", "0.7001232", "0.7001232", "0.7001232", "0.69934165", "0.69934165", "0.69934165", "0.69934165", "0.6...
0.81869864
1
Returns the number of nodes that match the specified xpath, eg. "//table" would give the number of tables. 'xpath' is the xpath expression to evaluate. do NOT wrap this expression in a 'count()' function; we will do that for you.
def rTQP(YKHO, laNn): return YKHO.get_number('getXpathCount', [laNn])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BHcy(YKHO, laNn):\n UHFx = len(YKHO.apu._element_find('xpath=' + laNn, False, False))\n return str(UHFx)", "def MqAu(YKHO, E_qD):\n xMJb = YKHO.loc_it(E_qD)\n return len(xMJb.find_elements_by_xpath('.//*'))", "def Kytq(Emd4, pNZh):\n vexM = 'MATCH (n:{0}) RETURN COUNT(n) AS count'.format(Emd...
[ "0.81695265", "0.606112", "0.6046134", "0.5859099", "0.58520216", "0.5717359", "0.56943303", "0.5680026", "0.5676944", "0.5644453", "0.56310344", "0.5628597", "0.5622789", "0.5615737", "0.5596826", "0.5540973", "0.553751", "0.5522833", "0.55013716", "0.54838306", "0.545212", ...
0.8367585
1
(EndDevice, int) > (None) Store the used device nonce to avoid repeated use of the same value and prevent replay attacks.
def YpZN(YKHO, qsCi): A1Vd = BfDw.bytes_to_text(qsCi) aNPK = YKHO.get_used_devnoce_hex_list() if A1Vd in aNPK: raise Zhcg.DuplicatedNonce() if len(aNPK) > 3: aNPK = aNPK[1:] aNPK.append(A1Vd) YKHO.used_otaa_devnonces_hex = ','.join(aNPK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mpgn(YKHO):\n return str(int(1000 * ITS7.time()))", "def bEAa(YKHO):\n return str(ITS7.time() * 1000000)", "def Z6dR():\n return str(int(round(ITS7.time() * 1000)))", "def _2ZF(YKHO):\n YKHO._auto_nonce = bEAa = YKHO._auto_nonce + 1\n return bEAa.__format__('0>16x')", "def LecC():\n r...
[ "0.61313945", "0.61149305", "0.5996189", "0.5991732", "0.59132355", "0.58676445", "0.58676445", "0.5867558", "0.5802828", "0.567847", "0.56656176", "0.56569386", "0.56253177", "0.55619967", "0.5546712", "0.55061513", "0.5500593", "0.546218", "0.54511374", "0.5447871", "0.5396...
0.5806305
8
returns a new thresholdGeoDataFrame with a shifted geometry polygons.
def ug1W(YKHO, hksT, iGz4=None, PR7i=None, Fw8z='ThresholdPolygon'): U5bT = YKHO.copy() U5bT[Fw8z] = YKHO._shiftPolygons(loc=hksT, meteorological_angle=iGz4, mathematical_angle=PR7i, geometry=Fw8z) U5bT = U5bT.set_geometry(Fw8z) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y0a1(jQ3Z):\n jQ3Z['grnd-ry'] = jQ3Z['right-y'] - jQ3Z['nose-y']\n jQ3Z['grnd-rx'] = jQ3Z['right-x'] - jQ3Z['nose-x']\n jQ3Z['grnd-ly'] = jQ3Z['left-y'] - jQ3Z['nose-y']\n jQ3Z['grnd-lx'] = jQ3Z['left-x'] - jQ3Z['nose-x']", "def lRGa(oBhE, ZTBD=1.5):\n ehzD = []\n for YRbF in PRqg(range(len...
[ "0.58288753", "0.5669387", "0.5577934", "0.54684377", "0.54513127", "0.5396902", "0.5387918", "0.53863853", "0.5384284", "0.533547", "0.5295902", "0.5284759", "0.525163", "0.52516276", "0.52376163", "0.5227914", "0.5183265", "0.5180403", "0.51579785", "0.5124534", "0.5106991"...
0.50243425
31
Find a square that forms a bracket with `square` for `player` in the given `direction`. Returns None if no such square exists.
def DF0L(Fyji, oyg0, iBIi, XSoh): gTqN = Fyji + XSoh if iBIi[gTqN] == oyg0: return None RUgX = xzj7(oyg0) while iBIi[gTqN] == RUgX: gTqN += XSoh return None if iBIi[gTqN] in (xzHM, KAvf) else gTqN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L4Qu(YKHO, iBIi, oyg0, Fyji, XSoh):\n GfdN = False\n while iBIi[Fyji + XSoh] == YKHO.opponent(oyg0):\n Fyji += XSoh\n GfdN = True\n if iBIi[Fyji + XSoh] == KAvf and GfdN:\n return Fyji + XSoh\n return None", "def husF(YKHO, Fyji: Square) -> h8nf[q8RS]:\n for mrj1 in YKHO.p...
[ "0.7435616", "0.646496", "0.61051667", "0.5970795", "0.59579957", "0.5891032", "0.58770347", "0.58302146", "0.57987416", "0.56007755", "0.5520515", "0.55167955", "0.54689753", "0.54028374", "0.5384183", "0.53677636", "0.53640604", "0.5362572", "0.53534454", "0.53368384", "0.5...
0.76398003
0
Returns starting state of the board.
def W9gz(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO._start_state", "def Ee93():\n exwG = ahzX(mF_7, 5)\n r...
[ "0.88089895", "0.88089895", "0.88089895", "0.88089895", "0.88089895", "0.74338734", "0.74220616", "0.73280495", "0.72895044", "0.7281317", "0.7281317", "0.72770363", "0.7247598", "0.7224691", "0.7224691", "0.7224691", "0.7224691", "0.7224691", "0.7224691", "0.7224691", "0.722...
0.0
-1
Returns set of all possible actions (i, j) available on the board.
def xASv(iBIi): yTej = set() for YRbF in range(3): for r845 in range(3): if iBIi[YRbF][r845] == KAvf: yTej.add((YRbF, r845)) return yTej
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xASv(iBIi):\n Ylbp = set()\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == KAvf:\n Ylbp.add((YRbF, r845))\n return Ylbp", "def xASv(YKHO):\n hksT = YKHO.locs[YKHO.player()]\n if hksT is None:\n return YKHO.libe...
[ "0.80767983", "0.7936772", "0.79166996", "0.7910787", "0.787184", "0.7765809", "0.7750145", "0.77453434", "0.7738074", "0.7729991", "0.7729062", "0.7707909", "0.76993734", "0.7684902", "0.7675485", "0.76683944", "0.7663891", "0.7652397", "0.7640172", "0.7632908", "0.76311696"...
0.74891555
35
Returns the winner of the game, if there is one.
def bHVe(iBIi): for YRbF in range(3): if iBIi[YRbF][0] == iBIi[YRbF][1] == iBIi[YRbF][2] == 'X': return 'X' if iBIi[YRbF][0] == iBIi[YRbF][1] == iBIi[YRbF][2] == 'O': return 'O' for r845 in range(3): if iBIi[0][r845] == iBIi[1][r845] == iBIi[2][r845] == 'X': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHVe(YKHO):\n if YKHO.done():\n return YKHO._winner\n else:\n return None", "def ND5o(YKHO):\n return YKHO.win_conditions()[0]", "def bHVe(YKHO):\n return YKHO.board.winner()", "def bHVe(YKHO):\n J2w6 = Bu_I.compute_winner_index(YKHO.result, YKHO.game)\n if J2w6 is False:\...
[ "0.84201545", "0.8357224", "0.8287156", "0.8198129", "0.8198129", "0.81681716", "0.8121104", "0.8058183", "0.79694533", "0.7951787", "0.7908961", "0.78944266", "0.7893119", "0.7887846", "0.7862604", "0.7850654", "0.78501695", "0.7831248", "0.7811274", "0.7769089", "0.7764623"...
0.0
-1
Returns 1 if X has won the game, 1 if O has won, 0 otherwise.
def f7Dd(iBIi): X4S1 = bHVe(iBIi) if X4S1 == 'X': return 1 elif X4S1 == 'O': return -1 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHs1(YKHO):\n return YKHO.winner() == YKHO.X_VAL", "def oyg0(iBIi):\n bHVe(iBIi)\n c8fa = 0\n Jszs = 0\n for YRbF in range(3):\n for r845 in range(3):\n if iBIi[YRbF][r845] == LTX_:\n Jszs += 1\n elif iBIi[YRbF][r845] == EcVT:\n c8fa +...
[ "0.7744177", "0.7667195", "0.76287097", "0.76250243", "0.74557847", "0.74446917", "0.7344388", "0.7339105", "0.7311056", "0.73073196", "0.7283038", "0.7277159", "0.72454315", "0.72352767", "0.7208377", "0.71831656", "0.71808225", "0.71768236", "0.71766835", "0.716819", "0.715...
0.0
-1
Sets the active of this ConversationEngagement.
def WZHJ(YKHO, WZHJ): YKHO._active = WZHJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j6OK(YKHO, WZHJ):\n YKHO._active = WZHJ", "def eLjN(YKHO, WZHJ):\n YKHO.active = WZHJ", "def eLjN(YKHO, WZHJ):\n YKHO.active = WZHJ", "def WZHJ(YKHO, WZHJ):\n if WZHJ is None:\n raise ValueError('Invalid value for `active`, must not be `None`')\n YKHO._active = WZHJ", "def WZHJ(YK...
[ "0.7807504", "0.7745237", "0.7745237", "0.7719324", "0.7662793", "0.7654664", "0.7537065", "0.7518616", "0.7453994", "0.7381585", "0.73555654", "0.7352452", "0.7330624", "0.7219533", "0.71641415", "0.7128122", "0.7128122", "0.71218556", "0.71018386", "0.70966876", "0.7028874"...
0.77200985
3
Sets the conversation_engagement_oid of this ConversationEngagement.
def X457(YKHO, X457): YKHO._conversation_engagement_oid = X457
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ajlF(YKHO, ajlF):\n if ajlF is None:\n raise ValueError('Invalid value for `engagement`, must not be `None`')\n YKHO._engagement = ajlF", "def q8Kg(YKHO, q8Kg):\n YKHO._engagement_name = q8Kg", "def aNdy(YKHO, aNdy):\n YKHO._conversation_id = aNdy", "def QOVk(YKHO, QOVk):\n YKHO._co...
[ "0.6081514", "0.57955396", "0.5676843", "0.5645101", "0.55482936", "0.55075175", "0.5119771", "0.5119771", "0.5076168", "0.5076168", "0.49524122", "0.4857338", "0.4857338", "0.48235893", "0.48141128", "0.47826055", "0.47668767", "0.4720536", "0.46608907", "0.4631231", "0.4631...
0.88518846
0
Sets the customer_greeting of this ConversationEngagement.
def AoPj(YKHO, AoPj): YKHO._customer_greeting = AoPj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wsdd(YKHO, wsdd):\n YKHO._customer_gender = wsdd", "def QIQc(YKHO, m3Nh):\n YKHO.current_customer = m3Nh", "def CtKK(YKHO, CtKK):\n YKHO._customer_name = CtKK", "def m3Nh(YKHO, m3Nh):\n YKHO._customer = m3Nh", "def m3Nh(YKHO, m3Nh):\n YKHO._customer = m3Nh", "def m3Nh(YKHO, m3Nh):\n ...
[ "0.64263666", "0.634891", "0.61131114", "0.6086092", "0.60651857", "0.60651857", "0.60651857", "0.6045613", "0.5857167", "0.58210707", "0.5813809", "0.58105576", "0.5806367", "0.5753718", "0.56124526", "0.55748725", "0.55370563", "0.55370563", "0.5494234", "0.5411364", "0.541...
0.875974
0
Sets the customer_initiated of this ConversationEngagement.
def qjiv(YKHO, qjiv): YKHO._customer_initiated = qjiv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QIQc(YKHO, m3Nh):\n YKHO.current_customer = m3Nh", "def m3Nh(YKHO, m3Nh):\n if YKHO._configuration.client_side_validation and m3Nh is None:\n raise ValueError('Invalid value for `customer`, must not be `None`')\n YKHO._customer = m3Nh", "def m3Nh(YKHO, m3Nh):\n YKHO._customer = m3Nh", ...
[ "0.6529359", "0.617586", "0.60863733", "0.6084644", "0.6084644", "0.6084644", "0.60803074", "0.5610879", "0.5610851", "0.55196714", "0.55029094", "0.5466698", "0.54628634", "0.5454329", "0.5454329", "0.5409687", "0.53794944", "0.5375806", "0.5370624", "0.53463924", "0.5345135...
0.87879163
0
Sets the department_oids of this ConversationEngagement.
def mLfm(YKHO, mLfm): YKHO._department_oids = mLfm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOVk(YKHO, QOVk):\n YKHO._conversation_department_oid = QOVk", "def X5CZ(YKHO, X5CZ):\n YKHO._department = X5CZ", "def lNHy(YKHO, lNHy):\n YKHO._department_id = lNHy", "def zXXO(YKHO, zXXO):\n YKHO._departmentid = zXXO", "def n_Gu(YKHO, H5ew, lNHy, nPrm):\n qIxc = [NkkI(lNHy), NkkI(nPrm)...
[ "0.70585006", "0.6991769", "0.6469303", "0.6412196", "0.6377447", "0.6321956", "0.6128514", "0.5949947", "0.57741916", "0.56081516", "0.543972", "0.52849746", "0.52395487", "0.5210925", "0.51725405", "0.50930643", "0.5087503", "0.50214976", "0.49959123", "0.4943857", "0.49366...
0.8341926
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Instantiate a connection to the InfluxDB.
def Wbpt(oWHT, yxaP, nPrm): x0hE = KmTz(oWHT['db_host'], oWHT['db_port'], oWHT['db_user'], oWHT['db_password'], oWHT['db_dbname']) vHj7 = vHj7 = qcWV.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ') GgSi = [{'measurement': yxaP, 'tags': {}, 'time': vHj7, 'fields': nPrm}] print('Write points: {0}'.format(GgSi))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.user = 'root'\n YKHO.password = 'root'\n YKHO.dbname = 'virturian'\n YKHO.host = 'localhost'\n YKHO.port = 8086\n YKHO.client = KmTz(YKHO.host, YKHO.port, YKHO.user, YKHO.password, YKHO.dbname)", "def FIMM(YKHO, N5z6=eN_a, bIwZ=kt_c, tyNF=Bwxs, CBIr=a7vN, KaGP=mWhC):\n ...
[ "0.8151536", "0.7685086", "0.76757735", "0.7642619", "0.76309884", "0.76279336", "0.7482373", "0.7394928", "0.73131806", "0.7214909", "0.718254", "0.6955175", "0.66792864", "0.66477954", "0.65986806", "0.64202315", "0.63923585", "0.6356014", "0.63417155", "0.6314463", "0.6252...
0.0
-1
Computes the connectivity of output elements, given a Jacobian sparsity.
def q6I8(o_OR: ssparse.spmatrix) -> nuz0.spmatrix: assert o_OR.ndim == 2 return (o_OR @ o_OR.T).astype(bool)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v8WM(o4Jx, g4y1, zgmU=True):\n LFEP = o4Jx.new_zeros(o4Jx.size() + g4y1.size()).view((-1,) + g4y1.size())\n for YRbF, yvT9 in enumerate(o4Jx.reshape(-1)):\n Fr3f = ht2j.autograd.grad(yvT9, g4y1, retain_graph=True, create_graph=zgmU, allow_unused=True)[0]\n if Fr3f is None:\n cont...
[ "0.6773647", "0.64742756", "0.6188872", "0.61574423", "0.6081554", "0.60491234", "0.60196996", "0.59710383", "0.59336984", "0.59096014", "0.58912814", "0.58711743", "0.58495784", "0.58250916", "0.57680583", "0.57577765", "0.5753207", "0.5753207", "0.5751021", "0.5748791", "0....
0.66044927
1
Computes the connectivity of input elements, given a Jacobian sparsity.
def x_Zy(o_OR: ssparse.spmatrix) -> nuz0.spmatrix: assert o_OR.ndim == 2 return (o_OR.T @ o_OR).astype(bool)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IL0n(fyP7: np.ndarray) -> float:\n eQUr = fyP7.copy()\n if (eQUr != eQUr.T).any():\n eQUr[eQUr != eQUr.T] = True\n tjON = oyIN.diag(eQUr.sum(axis=1))\n foq8 = tjON - eQUr\n q33i = oyIN.linalg.eigvalsh(foq8)\n IL0n = oyIN.sort(q33i)[1] / len(q33i)\n return oyIN.maximum(IL0n, 0.0)", ...
[ "0.6851038", "0.62590575", "0.61145276", "0.606512", "0.6064247", "0.60243666", "0.600517", "0.59691286", "0.5938246", "0.59259456", "0.5895918", "0.5889128", "0.58883363", "0.5857336", "0.58570224", "0.58284307", "0.5826324", "0.57954496", "0.5787123", "0.5782263", "0.575683...
0.62004036
2
Invenio base application factory. If the instance folder does not exists, it will be created.
def zL8W(Eub1, CMqF=None, YXON=None, aiJG='/static', MynF='templates', V9AZ=True, mSqg=None, ZjZF=L2w0): QfOk() P4t4 = ZjZF(Eub1, instance_path=CMqF, instance_relative_config=V9AZ, static_folder=YXON, static_url_path=aiJG, template_folder=MynF, root_path=mSqg) try: if CMqF and (not Hy7s.path.exists(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(CMqF):\n\n def z_uJ(**GPtr):\n IUJq = L2w0(__name__, instance_path=CMqF)\n IUJq.config.update(GPtr)\n QDlu(IUJq)\n HdUp(IUJq)\n jz57(IUJq)\n AgZu(IUJq)\n return IUJq\n return z_uJ", "def LUif(YKHO):\n raise NotImplementedError", "def LUif(YKHO)...
[ "0.7344246", "0.7136428", "0.7136428", "0.70012873", "0.69576454", "0.69046557", "0.69000936", "0.68776345", "0.68077433", "0.6757319", "0.6734643", "0.67081153", "0.67080665", "0.67080665", "0.66955066", "0.6687735", "0.6674948", "0.66646874", "0.6663178", "0.6635929", "0.66...
0.7157122
1
Given the Calibrated Airspeed, this function provides the Equivalent Airspeed. Calibrated airspeed (CAS) is the speed shown by a conventional airspeed indicator after correction for instrument error and position error.
def Esz5(EKAO, XP5J, oZuG): E_AB = GWQs(EKAO, XP5J, oZuG) CcWc = Jz8J(E_AB, oZuG) return CcWc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iE49(YKHO):\n return YKHO.velocity * oyIN.sqrt(YKHO.atmosphere.density() / ONcO(altitude=0, method='isa').density())", "def hDbl(YKHO):\n return oyIN.sqrt(2 * (YKHO.total_pressure() - YKHO.atmosphere.pressure()) / ONcO(altitude=0, method='isa').density())", "def HYHk(YKHO, hkJ6):\n hkJ6.laser_off(...
[ "0.6413083", "0.62388843", "0.5904792", "0.5788415", "0.57715356", "0.5725044", "0.5570442", "0.5558743", "0.5558303", "0.554135", "0.55077064", "0.549822", "0.54259884", "0.5421555", "0.5419524", "0.5376131", "0.5363768", "0.5362081", "0.5337197", "0.53309345", "0.5329246", ...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416775", "0.8510436", "0.7853881", "0.7744098", "0.77114", "0.7697539", "0.7659996", "0.7637475", "0.76213473", "0.76074654", "0.7606779", "0.7606779", "0.7606779", "0.7598864", "0.7585116", "0.7582008", "0.75707483", "0.7567779", "0.7538827", "0.7538827", "0.7527744", ...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393829", "0.83557564", "0.8296152", "0.8133522", "0.81153053", "0.8100911", "0.8100133", "0.8098902", "0.8098902", "0.80937666", "0.80937666", "0.80937666", "0.80937666", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8067774", "0.80598664", "0.805856...
0.8044964
65
Extract features from images.
def PSlE(YKHO, xkjI: torch.Tensor) -> AzJI[ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor]: DYuh = YKHO.encoder.in_channels kauQ = xkjI[:, :DYuh, ...] _YGI = xkjI[:, DYuh:, ...] wyFd = YKHO.encoder(kauQ) fcb7 = YKHO.encoder(_YGI) HvtQ = YKHO.context(kauQ) WPoz, HvtQ = ht2j.split(HvtQ, [Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def carQ(YKHO, xkjI):\n xkjI = YKHO.__build_image_data(xkjI)\n bySB = YKHO.model.predict(xkjI)\n return bySB", "def PSlE(YKHO, xkjI):\n return YKHO.student.extract_feat(xkjI)", "def PSlE(YKHO, xkjI):\n return YKHO.model_t.extract_feat(xkjI)", "def q2CL(YKHO, xkjI, dsE5=False):\n LyKa = []\n...
[ "0.8190258", "0.8161821", "0.8118311", "0.79927695", "0.78420246", "0.77831715", "0.7770461", "0.7768913", "0.7747594", "0.77360094", "0.7722988", "0.7695102", "0.7680862", "0.76705796", "0.76602435", "0.7641872", "0.76346314", "0.762112", "0.75670666", "0.7545018", "0.753529...
0.6879533
82
Return a move that minimizes the possible loss for a player, use recursion.
def PZCD(BH3N: Any) -> ImMB: QTBn = BH3N.current_state vBHN = [rpfH(BH3N, QTBn.make_move(Z9rn)) * -1 for Z9rn in QTBn.get_possible_moves()] eyqE = max(vBHN) AwTC = vBHN.index(eyqE) return BH3N.current_state.get_possible_moves()[AwTC]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR1K(BH3N, oyg0, rb7a, MKlR, oLdq):\n P6Dd, BWXx = TSY7(BH3N, None, oyg0, rb7a, MKlR, oLdq)\n return P6Dd", "def SR1K(iBIi, oyg0, qi10):\n if oyg0 == GLcw:\n BZN_ = Z3Lv(iBIi, oyg0, qi10)[1]\n if oyg0 == a1hi:\n BZN_ = X2iB(iBIi, oyg0, qi10)[1]\n return BZN_", "def SR1K(YKHO, B...
[ "0.7428351", "0.7370329", "0.73534113", "0.72359365", "0.7208007", "0.71848404", "0.71785545", "0.71344376", "0.7123005", "0.70668346", "0.70589954", "0.70568764", "0.7023418", "0.6996637", "0.6996165", "0.6989555", "0.6986354", "0.698083", "0.69732064", "0.6971346", "0.69613...
0.0
-1
A helper function for minimax_iterative_strategy. Help to update the score of self by it's children's score.
def HIEt(zMrE: IterativeMinimax, MwUF: List[IterativeMinimax]) -> None: vBHN = [] for aUGN in zMrE.children: for ZfUD in MwUF: if aUGN == ZfUD: vBHN.append(ZfUD.score) zMrE.score = max([cCrA * -1 for cCrA in vBHN])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uDtt(YKHO):\n if len(YKHO.children) == 0:\n YKHO.value = YKHO.raw_value\n return\n BWXx = None\n for BZN_, aUGN in YKHO.children.items():\n aUGN.minimax_evaluate()\n if BWXx is None:\n BWXx = aUGN.value\n if YKHO.player_point_of_view == aUGN.state.player_t...
[ "0.6852893", "0.65512925", "0.6506054", "0.643411", "0.63010854", "0.6298807", "0.6278139", "0.6268417", "0.62039894", "0.62039894", "0.61759925", "0.6160795", "0.61581063", "0.614141", "0.6104231", "0.60730785", "0.606882", "0.60549027", "0.60105085", "0.6003122", "0.5992897...
0.6407814
4
Get the path to the user config file.
def k_Pq(): return Hy7s.path.join(Y6f8.get_config_dir(), 'config.py')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mn2V(YKHO):\n return YKHO._config_parser.user_config_path", "def k_Pq() -> str:\n Mn2V = x23_.user_config_dir(rWGQ)\n Mn2V = '{}.toml'.format(Mn2V)\n return Mn2V", "def S673(YKHO):\n return Hy7s.path.expanduser(YKHO.options.config_file)", "def eKPZ(YKHO):\n tzAq = YKHO.USER_CONFIG_DIR\n...
[ "0.884762", "0.8658174", "0.8604625", "0.83815306", "0.8341901", "0.8305475", "0.82856363", "0.8111619", "0.8111619", "0.79308677", "0.79070115", "0.7868637", "0.78261614", "0.7797292", "0.77706176", "0.77627236", "0.77296513", "0.7694065", "0.76856714", "0.7661741", "0.76353...
0.8703989
1
Test getting a single category by ID that should exist.
def WXaF(YKHO): geh0 = YKHO.client.get('/categories/1') GtGV = qQXR.loads(geh0.content) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) YKHO.assertEqual(GtGV['id'], 1) YKHO.assertEqual(GtGV['name'], 'Strategy')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HsIy(YKHO, x0hE, JawI):\n geh0 = x0hE.get(f'{_RsZ}/categories/2')\n Ol8d = 'Category not found'\n assert geh0.status_code == 404\n assert geh0.json['status'] == 'error'\n assert geh0.json['message'] == Ol8d", "def afSB(YKHO):\n Ylbp = YKHO.client().get('/category/1', headers={'x-access-toke...
[ "0.7683297", "0.7637061", "0.754968", "0.75215036", "0.73622394", "0.73118126", "0.72716624", "0.72175115", "0.7173599", "0.7139758", "0.71092594", "0.7055118", "0.70410734", "0.7040762", "0.7021368", "0.70148164", "0.7006079", "0.6980321", "0.6978934", "0.6966339", "0.695738...
0.7856575
0
Test getting a single category by ID that should not exist.
def aCKl(YKHO): geh0 = YKHO.client.get('/categories/69') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HsIy(YKHO, x0hE, JawI):\n geh0 = x0hE.get(f'{_RsZ}/categories/2')\n Ol8d = 'Category not found'\n assert geh0.status_code == 404\n assert geh0.json['status'] == 'error'\n assert geh0.json['message'] == Ol8d", "def A24o(YKHO):\n Ylbp = YKHO.client().get('/category/4', headers={'x-access-toke...
[ "0.8157012", "0.79921603", "0.76133776", "0.7350616", "0.7269249", "0.7257298", "0.7245293", "0.72387594", "0.7132701", "0.70389867", "0.6971735", "0.69356954", "0.69054806", "0.6879994", "0.68648326", "0.68278867", "0.6810844", "0.6796835", "0.6765221", "0.6756769", "0.67256...
0.7863643
2
Test getting all categories.
def Sqip(YKHO): geh0 = YKHO.client.get('/categories') GtGV = qQXR.loads(geh0.content) YKHO.assertEqual(len(GtGV), 1) YKHO.assertEqual(GtGV[0]['id'], 1) YKHO.assertEqual(GtGV[0]['name'], 'Strategy') Ghho = qZuN(name='Action') Ghho.save() geh0 = YKHO.client.get('/categories') GtGV = qQ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _562(YKHO):\n pass", "def U0Rf(YKHO):\n _P6x = list(YoF0.allcategories(total=10))\n YKHO.assertTrue(len(_P6x) <= 10)\n YKHO.assertTrue(all((isinstance(ACia, RAnV.Category) for ACia in _P6x)))\n for ACia in YoF0.allcategories(total=5, start='Abc'):\n YKHO.assertType(ACia, RAnV.Category)\...
[ "0.841153", "0.83647555", "0.82821375", "0.811725", "0.80965745", "0.79884446", "0.7971294", "0.7648745", "0.7646743", "0.76409036", "0.7634998", "0.7588408", "0.7477912", "0.7470246", "0.7438986", "0.73997754", "0.7382866", "0.7379456", "0.7351608", "0.7350995", "0.7343311",...
0.8032975
5
Returns the current stream's virtual position (where the stream would be if it had been running contiguously and self.empty() is not called)
def WeOw(YKHO): return YKHO._position + super().tell()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKWF(YKHO):\n YKHO.position_index = YKHO.file_obj.tell()\n return YKHO.position_index", "def MZFS(YKHO):\n return YKHO.v", "def Iuzb(YKHO):\n YKHO.pos = YKHO.f.tell()\n return YKHO.pos", "def oeNL(YKHO):\n return YKHO._scanner.pos", "def WeOw(YKHO):\n return YKHO.current_position",...
[ "0.73811424", "0.73529375", "0.7313923", "0.72429574", "0.7199146", "0.7199146", "0.71820366", "0.7163348", "0.71570873", "0.7139919", "0.71376103", "0.7119344", "0.71016777", "0.7098603", "0.7098603", "0.70937824", "0.7078929", "0.7077935", "0.7073388", "0.7071483", "0.70711...
0.66165024
100
Returns the upload destination path (including filename) for a student submission
def b5wG(KAOR, Ux0P): pmON = '{course_id}/student-uploads/{assignment_id}/{username}-{assignment_name}{extension}'.format(course_id=KAOR.assignment.course.edx_id, assignment_id=KAOR.assignment.edx_id, username=KAOR.student.username, assignment_name=KAOR.assignment.name, extension=Hy7s.path.splitext(Ux0P)[1]) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSzP(KAOR, Ux0P):\n return Hy7s.path.join('submissions/competition_{cid}/problem_{pid}/user_{uid}/{filename}'.format(cid=KAOR.participant.competition.id, pid=KAOR.problem.id, uid=KAOR.participant.id, filename=Ux0P))", "def F9IW(KAOR, Ux0P):\n pmON = '{course_id}/grader-uploads/{assignment_id}/{username...
[ "0.68070424", "0.67682517", "0.665438", "0.6592724", "0.65439224", "0.65078664", "0.6453883", "0.6417952", "0.6405084", "0.6365775", "0.6363909", "0.63499755", "0.63206005", "0.6320398", "0.6290265", "0.62877584", "0.62771535", "0.62634146", "0.62394553", "0.622046", "0.62181...
0.7321872
0
Returns the upload destination path (including filename) for a grader submission
def F9IW(KAOR, Ux0P): pmON = '{course_id}/grader-uploads/{assignment_id}/{username}-{assignment_name}{extension}'.format(course_id=KAOR.assignment.course.edx_id, assignment_id=KAOR.assignment.edx_id, username=KAOR.student.username, assignment_name=KAOR.assignment.name, extension=Hy7s.path.splitext(Ux0P)[1]) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXZ0(YKHO):\n return YKHO._service.get_endpoint_upload_destination()['path']", "def aSzP(KAOR, Ux0P):\n return Hy7s.path.join('submissions/competition_{cid}/problem_{pid}/user_{uid}/{filename}'.format(cid=KAOR.participant.competition.id, pid=KAOR.problem.id, uid=KAOR.participant.id, filename=Ux0P))", ...
[ "0.67330503", "0.6577711", "0.6438529", "0.64292896", "0.63880104", "0.63140756", "0.6307957", "0.62787396", "0.62768054", "0.6273909", "0.6257358", "0.625533", "0.62378526", "0.62370044", "0.623446", "0.622988", "0.62180877", "0.62030196", "0.6194312", "0.6179069", "0.613759...
0.6891635
0
["10C AH"] > [("0", "C"), ("A", "H"),]
def Napc(oMjv): _yFy = [] for RZ8t in oMjv: KYnp = [] for dxhl in RZ8t.split(): KYnp.append((dxhl[-2], dxhl[-1])) _yFy.append(KYnp) return _yFy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OR17(KCHu):\n Zn2L = lambda KCHu: int(KCHu) if KCHu.isdigit() else KCHu.lower()\n return tuple((Zn2L(str) for str in ZbWC.split('(\\\\d+)', KCHu)))", "def xKdE(YKHO, yv6U):\n MvK3 = ZbWC.compile('[0-9]+|[^0-9]+')\n return [(1, int(Z9rn)) if Z9rn.isdigit() else (0, Z9rn.lower()) for Z9rn in MvK3.f...
[ "0.6219245", "0.6056596", "0.58775353", "0.58775353", "0.57981473", "0.57842857", "0.57697386", "0.5709719", "0.5695063", "0.56909263", "0.5636507", "0.5624409", "0.5624362", "0.5603518", "0.5601389", "0.5566519", "0.5548657", "0.55139196", "0.551182", "0.5496702", "0.5487744...
0.0
-1
[("0", "C"), ("A", "H"),] > ["10C AH"]
def n5rA(RZ8t): return ' '.join([''.join(['10' if Mkmy == '0' else Mkmy, KCHu]) for Mkmy, KCHu in RZ8t])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXQ5(p7X6):\n MYkY, _bw_ = p7X6.split(',')\n return [(int(MYkY), 'A'), (int(_bw_), 'B')]", "def vxz3(Z9rn):\n return [Z9rn[0], -Z9rn[1]]", "def QAFh(Nli8):\n BnKh = [[], [], []]\n ri3Q = [0, 0, 0]\n for koW1 in sorted(Nli8.keys()):\n O8zI = Nli8[koW1]\n if len(O8zI) != 1:\n ...
[ "0.6535912", "0.6020378", "0.59333014", "0.5896332", "0.5850854", "0.58072513", "0.5784059", "0.5763494", "0.5758477", "0.57331693", "0.57096404", "0.5701087", "0.56944025", "0.5689401", "0.5669683", "0.5656302", "0.5655704", "0.56274444", "0.56228465", "0.56172633", "0.56067...
0.5351632
52
Check whether the API key grants access to a view.
def qHTF(YKHO, QePW, tTee): eOtH = QePW.META.get(rLF8, '') if not eOtH or not E4Up: return False rJDA = QGEN.objects.filter(token=eOtH, revoked=False).first() if rJDA is None: return False iLHg = GM9u(eOtH, E4Up) MuxK = iLHg == rJDA.hashed_token return MuxK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHTF(YKHO, QePW, tTee):\n IrIQ = QePW.META.get('HTTP_X_PARSE_REST_API_KEY')\n return IrIQ == gCuF.API_KEY_SECRET", "def h0E7(YKHO, cb2A):\n raise NotImplementedError()", "def qHTF(YKHO, QePW, tTee):\n return QePW['payload'].get('id') == tTee.object_id", "def h8ch(YKHO, QePW, YEnM=None):\n ...
[ "0.79608697", "0.7807792", "0.73978084", "0.715062", "0.7140591", "0.7140591", "0.7140591", "0.7140591", "0.7140591", "0.71325713", "0.7109688", "0.7109688", "0.7093826", "0.70779127", "0.70669127", "0.702319", "0.70219845", "0.7008782", "0.6990186", "0.6983693", "0.6979385",...
0.7733265
2
Returns potential energy of the state. Should be used as loss in forward pass.
def TdMr(YKHO): if YKHO.state is None: YKHO._set_up_env() return YKHO.state.getPotentialEnergy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYvU(YKHO):\n tTpl = 0\n for YRbF in range(len(YKHO.state)):\n tTpl += YKHO.distance_matrix[YKHO.state[YRbF - 1]][YKHO.state[YRbF]]\n return tTpl", "def VYvU(YKHO):\n return -YKHO.experiment.get_mutual_information(YKHO.state)", "def KRna(YKHO):\n tux7 = YKHO.state_to_lattice()\n VY...
[ "0.8020649", "0.77904564", "0.77822447", "0.7577625", "0.74705154", "0.74596745", "0.74575", "0.74276567", "0.7423225", "0.7398982", "0.7398982", "0.7381243", "0.7375854", "0.7369128", "0.7316857", "0.7304412", "0.7297375", "0.7291444", "0.72724855", "0.7255595", "0.7255595",...
0.79783905
1
Sets the is_moderator_less of this Room.
def aEVy(YKHO, aEVy): YKHO._is_moderator_less = aEVy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQes(YKHO, EQes):\n YKHO._moderator_less = EQes", "def sTQF(YKHO, sTQF):\n YKHO._is_moderator = sTQF", "def sTQF(YKHO):\n return False", "def sTQF(YKHO):\n return YKHO.is_admin", "def sTQF(YKHO):\n return YKHO.role == YKHO.PermissionChoice.MODERATOR", "def p5rQ(YKHO):\n return YKHO....
[ "0.8515686", "0.64788806", "0.5604006", "0.544401", "0.52696574", "0.51650536", "0.5157808", "0.5095903", "0.50312823", "0.49506438", "0.49314532", "0.48842475", "0.48760366", "0.48436096", "0.48070955", "0.47950038", "0.4789358", "0.47854272", "0.47801843", "0.47743568", "0....
0.85656416
0
Sets the participant_passcode of this Room.
def GARD(YKHO, GARD): YKHO._participant_passcode = GARD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlPe(YKHO, UlPe):\n YKHO._moderator_passcode = UlPe", "def xGo7(YKHO, Wxnj):\n YKHO.code_hash = vT87(Wxnj)", "def fxzN(YKHO, fxzN):\n YKHO._participant_guid = fxzN", "def zAlC(YKHO, zAlC):\n YKHO._participant = zAlC", "def zAlC(YKHO, zAlC):\n YKHO._participant = zAlC", "def jTXt(YKHO, ...
[ "0.68882036", "0.58215815", "0.54601175", "0.5336861", "0.5336861", "0.5237726", "0.51978135", "0.5197722", "0.5197722", "0.5197282", "0.5128526", "0.5113026", "0.5113026", "0.5097031", "0.5093966", "0.50774455", "0.50664175", "0.5048853", "0.5046926", "0.50350994", "0.503376...
0.8607023
0
Sets the idle_timeout of this Room.
def m1k0(YKHO, m1k0): YKHO._idle_timeout = m1k0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XGnX(hctS):\n OywA(hctS)", "def ZH2Q(YKHO, ZH2Q):\n YKHO._idle_time_expiration = ZH2Q", "def NkyD(Emd4):\n if Emd4.connection_check_interval < Emd4.idle_timeout:\n Emd4.connection_check_interval = Emd4.idle_timeout", "def m1k0(YKHO, BWXx):\n if BWXx < 0:\n raise ValueError('Time...
[ "0.74793833", "0.70937556", "0.70815116", "0.6938078", "0.67482007", "0.6454548", "0.64448726", "0.6439962", "0.6433084", "0.6433084", "0.6433084", "0.64018923", "0.6376624", "0.6291527", "0.6291527", "0.6291527", "0.6288469", "0.6288469", "0.6254182", "0.621517", "0.62044436...
0.86141425
0
Sets the moderator_passcode of this Room.
def UlPe(YKHO, UlPe): YKHO._moderator_passcode = UlPe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GARD(YKHO, GARD):\n YKHO._participant_passcode = GARD", "def xGo7(YKHO, Wxnj):\n YKHO.code_hash = vT87(Wxnj)", "def G3s8(YKHO, tvqc):\n beBk = ceT1(YKHO.drawer, YKHO.drawer.phrases.titles.password)\n if QwHj.OK == beBk.ShowModal():\n R6Hp = HBct.sha1(beBk.GetValue().encode('utf-8'))\n ...
[ "0.64541906", "0.5740468", "0.5627733", "0.55758494", "0.55679303", "0.55679303", "0.55189", "0.5515623", "0.54922754", "0.54879045", "0.547144", "0.54567415", "0.5412358", "0.5397984", "0.5319617", "0.52748585", "0.5274653", "0.52718854", "0.52425253", "0.5241636", "0.523278...
0.86592674
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416775", "0.8510436", "0.7853881", "0.7744098", "0.77114", "0.7697539", "0.7659996", "0.7637475", "0.76213473", "0.76074654", "0.7606779", "0.7606779", "0.7606779", "0.7598864", "0.7585116", "0.7582008", "0.75707483", "0.7567779", "0.7538827", "0.7538827", "0.7527744", ...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393829", "0.83557564", "0.8296152", "0.8133522", "0.81153053", "0.8100911", "0.8100133", "0.8098902", "0.8098902", "0.80937666", "0.80937666", "0.80937666", "0.80937666", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8067774", "0.80598664", "0.805856...
0.0
-1
Returns a generator that returns OD pair chunks based on the cell ids
def ez6L(ym_X=200): for hLRM in GPtr.CELLS: for U2Ur in eHxA(GPtr.CELLS, ym_X): yield ([hLRM], U2Ur)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TlAj(YKHO, Vbx2, v4rA, pvd3, jHsn):\n ym_X = YKHO._chunksize\n GTOg = Vbx2 // ym_X[0]\n aKRH = lO1m(float(Vbx2 + pvd3) / ym_X[0])\n BFJj = v4rA // ym_X[1]\n Wnwu = lO1m(float(v4rA + jHsn) / ym_X[1])\n R6XS = int(lO1m(float(YKHO.size[1]) / float(ym_X[1])))\n YRbF = GTOg\n while YRbF < aK...
[ "0.6389211", "0.6287274", "0.6127485", "0.606666", "0.6034587", "0.59581685", "0.59503645", "0.59219074", "0.58789814", "0.58753914", "0.58710295", "0.5845137", "0.5808333", "0.5767106", "0.5712824", "0.5712824", "0.56910145", "0.5665972", "0.56626886", "0.5660902", "0.566016...
0.69104654
0
Generate a list of decayed epsilon values for exploring agent
def NzV0(lpha=10, WMj5=0.9): S7dm = vlUL.steps_per_episode * vlUL.num_episodes i36l = vlUL.epsilon Fe3v = int(S7dm / lpha) YPqY = [(Fe3v, i36l * WMj5 ** YRbF) for YRbF in range(1, lpha)] YPqY = YPqY[::-1] return YPqY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W1PW(U5mh, X4Zg, d3gB):\n bS3A = U5mh[0]\n NIZu = U5mh[1]\n ET_e = []\n for YRbF in range(d3gB):\n ET_e.append(max([bS3A, NIZu]))\n bS3A *= X4Zg\n return ET_e", "def RL0R(YKHO):\n YKHO.epsilon = oyIN.max([YKHO.epsilon * YKHO.epsilon_decay, YKHO.epsilon_min])", "def rJuR(YKHO...
[ "0.7527868", "0.75105476", "0.7439888", "0.73433715", "0.7214245", "0.7214245", "0.71914935", "0.71412903", "0.71325207", "0.6989828", "0.6948354", "0.68961614", "0.68421805", "0.6832743", "0.6796382", "0.6758558", "0.6757189", "0.67205757", "0.66853195", "0.66109264", "0.660...
0.676586
15
Test case for companies_company_id_connections_connection_id_data_commerce_payments_get
def dKkp(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bi6q(YKHO):\n pass", "def IRRD(YKHO):\n pass", "def SU1N(YKHO):\n pass", "def dX1n(YKHO):\n pass", "def BjUg(YKHO):\n pass", "def AqK9(YKHO):\n pass", "def FXOL(YKHO):\n pass", "def kkO8(YKHO):\n pass", "def tlrk(YKHO):\n pass", "def zYK1(YKHO):\n pass", "def f...
[ "0.9014614", "0.8157573", "0.8077049", "0.7778856", "0.77065295", "0.64782333", "0.64370495", "0.64180344", "0.6349533", "0.6295551", "0.62308943", "0.62116", "0.6142483", "0.6066625", "0.6045321", "0.59950674", "0.59472346", "0.5944529", "0.5841945", "0.5813281", "0.5812251"...
0.9512386
0
Test case for companies_company_id_connections_connection_id_data_commerce_payments_payment_id_get
def bi6q(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dKkp(YKHO):\n pass", "def dX1n(YKHO):\n pass", "def BjUg(YKHO):\n pass", "def IRRD(YKHO):\n pass", "def SU1N(YKHO):\n pass", "def X557(YKHO):\n pass", "def DY4F(YKHO):\n pass", "def wNyL(YKHO):\n pass", "def h9Rf(YKHO):\n pass", "def Zxrd(YKHO):\n pass", "def x...
[ "0.89899945", "0.7814777", "0.7783608", "0.7558176", "0.73481023", "0.66308355", "0.6429912", "0.64063823", "0.6385059", "0.63707304", "0.63052565", "0.61382085", "0.611429", "0.6109798", "0.60921526", "0.60908806", "0.60589445", "0.6042509", "0.6027861", "0.6007805", "0.5978...
0.95345026
0
Returns True if point lies on the fracture.
def zoKR(YKHO, XP5J): kidU = XP5J[0] me_t = XP5J[1] tDEK = XP5J[2] sh7x = YKHO.center[0] l1Tv = YKHO.center[1] cDFU = YKHO.center[2] jzdc = YKHO.a Fg_i = YKHO.b RyxC = (kidU - sh7x) * oyIN.cos(q7In) RyxC += (me_t - l1Tv) * oyIN.sin(q7In) RyxC = RyxC ** 2 RyxC /= jzdc ** 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def elyp(YKHO):\n if YKHO.point != 0:\n return True\n return False", "def xc3U(YKHO, AU8u) -> bool:\n if isinstance(AU8u, PvyL):\n J1b4 = (AU8u.x - YKHO.p.x) / YKHO.v.x\n CYjz = (AU8u.y - YKHO.p.y) / YKHO.v.y\n bpa0 = (AU8u.z - YKHO.p.z) / YKHO.v.z\n return J1b4 == CYj...
[ "0.75998294", "0.7377639", "0.7241916", "0.7144377", "0.7137799", "0.7127588", "0.7094526", "0.7045352", "0.69779277", "0.697628", "0.6906755", "0.69034946", "0.6899463", "0.68529356", "0.68306714", "0.6797448", "0.67971355", "0.67920095", "0.67865396", "0.67825156", "0.67715...
0.69397
10
Returns True if point lies on the fracture.
def Xo3K(YKHO, XP5J): A3Vt = YKHO.build_rotation_matrix() q7In = oyIN.pi / 2.0 - YKHO.azimuth rVnq = YKHO.dip eQ7R = oyIN.linalg.solve(A3Vt, XP5J - YKHO.center) o670 = oyIN.array([[oyIN.cos(q7In), oyIN.sin(q7In)], [-oyIN.sin(q7In), oyIN.cos(q7In)]]) if abs(eQ7R[2]) < 1e-08: eQ7R = oyIN.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def elyp(YKHO):\n if YKHO.point != 0:\n return True\n return False", "def xc3U(YKHO, AU8u) -> bool:\n if isinstance(AU8u, PvyL):\n J1b4 = (AU8u.x - YKHO.p.x) / YKHO.v.x\n CYjz = (AU8u.y - YKHO.p.y) / YKHO.v.y\n bpa0 = (AU8u.z - YKHO.p.z) / YKHO.v.z\n return J1b4 == CYj...
[ "0.7597847", "0.73759365", "0.72410744", "0.71427053", "0.7135802", "0.71265554", "0.7093003", "0.7043578", "0.6976103", "0.6974386", "0.6938603", "0.6906223", "0.69034874", "0.6897808", "0.68517196", "0.68291634", "0.67972726", "0.6796982", "0.6790723", "0.67848015", "0.6782...
0.6387947
66
compute Mean Average Precision for recomendations
def PmwE(uN02, aV_D, ywwl): UtkU = 0.0 for kMLo in range(uN02.shape[1]): fgFv = aV_D[QFR5 == kMLo] SoDq = len(fgFv) if SoDq == 0: ywwl -= 1 continue mnsK = uN02[:, kMLo] t16z, r4kf, NV58 = (0.0, 0.0, 0.0) for zuTv in mnsK: if zu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zaD5(H0q3):\n return oyIN.mean([uSAa(Mkmy) for Mkmy in H0q3])", "def uSAa(u5Ef, yLaY):\n VqfF = 0\n p24E = [LihS in yLaY for LihS in u5Ef]\n for G1Hx in range(1, len(u5Ef) + 1):\n Mkmy, XP5J = ugVp(u5Ef, G1Hx, yLaY)\n VqfF += XP5J * int(p24E[G1Hx - 1])\n return VqfF / len(yLaY)",...
[ "0.78806704", "0.77966064", "0.7697267", "0.7492497", "0.7449249", "0.7393049", "0.738261", "0.73721176", "0.7303333", "0.72717726", "0.72471845", "0.72045267", "0.71978754", "0.7126386", "0.710949", "0.70983016", "0.70661414", "0.7064105", "0.7016934", "0.7016492", "0.700660...
0.0
-1
Converts a string containing a value to its numerical representation
def Zmkp(UX5e): qykt = UX5e UX5e = UX5e.upper() HJne = ['$', '%', ',', ' '] for KCHu in HJne: UX5e = UX5e.replace(KCHu, '') mf_s = {'K': 1000, 'M': 1000000, 'B': 1000000000, 'T': 1000000000000} pSDG = 1 for r8hN in mf_s: if UX5e.endswith(r8hN): pSDG = mf_s[r8hN] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vynC(KCHu):\n return float(KCHu)", "def XCb3(KCHu):\n KCHu = KCHu.rstrip(',')\n try:\n return int(KCHu)\n except ValueError:\n try:\n return float(KCHu)\n except ValueError:\n return KCHu", "def QK7R(YKHO, BWXx):\n return float(BWXx)", "def YA9v(K...
[ "0.76688766", "0.7595746", "0.75507444", "0.751822", "0.7516795", "0.74897945", "0.74429846", "0.7374119", "0.7320015", "0.73063314", "0.73004836", "0.729071", "0.72469735", "0.7243223", "0.7242393", "0.72399837", "0.72275376", "0.71787524", "0.71784705", "0.7177538", "0.7169...
0.69439036
42
Sets the alert_key of this GlobalAlert.
def w0oa(YKHO, w0oa): YKHO._alert_key = w0oa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DpQO(YKHO, DpQO):\n YKHO._alert_level = DpQO", "def Xy6s(YKHO, Xy6s):\n YKHO._game_key = Xy6s", "def GxAL(YKHO, H5ew):\n YKHO.key = H5ew", "def btSg(YKHO, btSg):\n YKHO._alert_type = btSg", "def btSg(YKHO, btSg):\n YKHO._alert_type = btSg", "def H5ew(YKHO, H5ew):\n YKHO._key = H5ew"...
[ "0.60817194", "0.6046082", "0.5868955", "0.5853678", "0.5853678", "0.5742702", "0.5742702", "0.5742702", "0.5742702", "0.5742702", "0.5733491", "0.5733491", "0.5733491", "0.5661511", "0.5658363", "0.5571999", "0.5506966", "0.550304", "0.55020535", "0.54841954", "0.54624397", ...
0.85910803
0
Sets the alert_link of this GlobalAlert.
def dqly(YKHO, dqly): YKHO._alert_link = dqly
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B_Oa(YKHO, u9KI):\n YKHO.link = u9KI", "def WLtJ(YKHO, QZnA):\n YKHO.__link = QZnA", "def QZnA(YKHO, QZnA):\n YKHO._link = QZnA", "def QZnA(YKHO, QZnA):\n YKHO._link = QZnA", "def QZnA(YKHO, QZnA):\n YKHO._link = QZnA", "def QZnA(YKHO, QZnA):\n YKHO._link = QZnA", "def QZnA(YKHO, ...
[ "0.64793384", "0.6341698", "0.62418526", "0.62418526", "0.62418526", "0.62418526", "0.62418526", "0.62418526", "0.62418526", "0.61084133", "0.6018694", "0.5947477", "0.5841409", "0.5841409", "0.5841409", "0.5841409", "0.5841409", "0.5841409", "0.5841409", "0.5841409", "0.5841...
0.8594415
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416155", "0.8510352", "0.78545547", "0.77443707", "0.77117187", "0.7697595", "0.76603293", "0.7638324", "0.76217484", "0.7607743", "0.7607743", "0.7607743", "0.76074046", "0.75997984", "0.7585864", "0.7583017", "0.75715595", "0.75687325", "0.7539626", "0.7539626", "0.752...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Sets the training related configuration.
def Y9ns(YKHO, *, K5wW: Optional[bool]=knnN, lYm6: Optional[float]=knnN, dalb: Optional[float]=knnN, KMvS: Optional[float]=knnN, xldJ: Optional[int]=knnN, tInB: Optional[int]=knnN, J6Ry: Optional[Union[int, str]]=knnN, ehae: Optional[int]=knnN, tG77: Optional[float]=knnN, L7Sp: Optional[int]=knnN, Rcb5: Optional[int]=k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9ns(YKHO):\n YKHO.config.is_train = True", "def f1KO(YKHO):\n bo34.debug('Setting training data')\n YKHO.training_opts['training_size'] = YKHO.state.training_size\n YKHO.training_opts['no_logs'] = YKHO.state.current_session['no_logs']\n YKHO.training_opts['mask_type'] = YKHO.config.get('mask_...
[ "0.798613", "0.7305626", "0.7302299", "0.7032241", "0.6968127", "0.6873732", "0.6873732", "0.6795634", "0.67922515", "0.6779549", "0.675452", "0.6739213", "0.66467386", "0.66445035", "0.66444117", "0.6642343", "0.6580774", "0.65583825", "0.65557885", "0.6533732", "0.6529764",...
0.0
-1
Updates all RolloutWorkers that require updating. Updates only if NUM_TRAINING_STEP_CALLS_SINCE_LAST_SYNCH_WORKER_WEIGHTS has been reached and the worker has sent samples in this iteration. Also only updates those policies, whose IDs are given via `policies` (if None, update all policies).
def mQCK(YKHO, f1Ga: Set[int], bttw: Optional[List[PolicyID]]=None): YKHO._counters[nVLG] += 1 if YKHO._counters[nVLG] >= YKHO.config.broadcast_interval and f1Ga: YKHO._counters[nVLG] = 0 YKHO._counters[sZRT] += 1 _mSQ = YKHO.learner_group.get_weights(bttw) if YKHO.config.num_rol...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fdG5(YKHO, f1Ga: Set[int], bttw: Optional[List[PolicyID]]=None) -> None:\n D7oM = YKHO.workers.local_worker()\n if YKHO.config.policy_states_are_swappable:\n D7oM.lock()\n ckoU = {'timestep': YKHO._counters[GuYf], 'num_grad_updates_per_policy': {Ii1o: D7oM.policy_map[Ii1o].num_grad_updates for ...
[ "0.763922", "0.5981313", "0.561979", "0.55828065", "0.5569013", "0.5513913", "0.54471713", "0.5446706", "0.54425126", "0.54391676", "0.5354195", "0.5339488", "0.53288335", "0.5309184", "0.53077835", "0.53046745", "0.5298087", "0.5281215", "0.5278028", "0.5272559", "0.52621853...
0.7442458
1
Updates all RolloutWorkers that require updating. Updates only if NUM_TRAINING_STEP_CALLS_SINCE_LAST_SYNCH_WORKER_WEIGHTS has been reached and the worker has sent samples in this iteration. Also only updates those policies, whose IDs are given via `policies` (if None, update all policies).
def fdG5(YKHO, f1Ga: Set[int], bttw: Optional[List[PolicyID]]=None) -> None: D7oM = YKHO.workers.local_worker() if YKHO.config.policy_states_are_swappable: D7oM.lock() ckoU = {'timestep': YKHO._counters[GuYf], 'num_grad_updates_per_policy': {Ii1o: D7oM.policy_map[Ii1o].num_grad_updates for Ii1o in b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQCK(YKHO, f1Ga: Set[int], bttw: Optional[List[PolicyID]]=None):\n YKHO._counters[nVLG] += 1\n if YKHO._counters[nVLG] >= YKHO.config.broadcast_interval and f1Ga:\n YKHO._counters[nVLG] = 0\n YKHO._counters[sZRT] += 1\n _mSQ = YKHO.learner_group.get_weights(bttw)\n if YKHO.con...
[ "0.7441627", "0.59794617", "0.5620703", "0.55811995", "0.55685174", "0.55148345", "0.5445673", "0.5445068", "0.5444769", "0.5437259", "0.53531814", "0.5337976", "0.53271425", "0.5310144", "0.53096074", "0.5305246", "0.52977616", "0.52821666", "0.5278801", "0.5270619", "0.5260...
0.76386744
0
Returns the kwargs to `LearnerGroup.additional_update()`. Should be overridden by subclasses to specify wanted/needed kwargs for their own implementation of `Learner.additional_update_for_module()`.
def swb7(YKHO, y0vk: dict) -> dict: return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L5dy(YKHO):\n return YKHO.extra_update_params", "def AVIb(YKHO, **B2fa):\n YKHO.kwargs.update(**B2fa)", "def ge0l(YKHO):\n return YKHO._params.get('kwargs', {})", "def evVq(YKHO):\n return {}", "def IovU(YKHO) -> cuzp[str, cuzp[str, ImMB]]:\n return YKHO._additional_params", "def OSmj(...
[ "0.6930168", "0.6316308", "0.6204028", "0.6146477", "0.6124755", "0.60218894", "0.5913899", "0.59031093", "0.5778296", "0.57249093", "0.56776845", "0.5639462", "0.5632946", "0.5628985", "0.5618925", "0.5585794", "0.55787045", "0.556009", "0.5544893", "0.5542062", "0.5542062",...
0.71324486
0
Create a new instance of the Publisher class, passing in the parameters used to connect to RabbitMQ. It established connection and created corresponding channel with defined exchange.
def FIMM(YKHO, l7pK, dQgO, **B2fa): YKHO._connection = None YKHO._channel = None YKHO._messages = {} YKHO._message_number = 0 YKHO._channel_closing = False YKHO._connection_closing = False YKHO._LOGGER = G9jH.getLogger(__name__) YKHO._url = l7pK YKHO.exchange = dQgO YKHO.parse_in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R929():\n global channel\n SGPK = wSW3.URLParameters(SuHT.get('AMQP', 'url'))\n UzPC = wSW3.BlockingConnection(SGPK)\n YwkQ = UzPC.channel()", "def FIMM(YKHO, l7pK=None, cJHQ=None, nkXs=None, dpfw=False):\n YKHO._connection = None\n YKHO._channel = None\n YKHO._message_number = 0\n YK...
[ "0.7518925", "0.748087", "0.7081873", "0.7081873", "0.7066075", "0.69262755", "0.6860158", "0.6779003", "0.67248017", "0.6681848", "0.66327435", "0.6618873", "0.65917206", "0.6583961", "0.657289", "0.652261", "0.65165013", "0.6483745", "0.6481978", "0.6456779", "0.64149666", ...
0.71127295
2
This method resets message dictionary and message counter. Since message counter restarts from server side each time channel or connection is restarted, we need to restart counter from client side as well.
def niqe(YKHO): YKHO._messages = {} YKHO._message_number = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def odqW(YKHO):\n YKHO.message_counter = 0", "async def counter_reset(YKHO, OaeV):\n YKHO.gconf = YKHO.config.guild(OaeV.guild)\n await YKHO.gconf.Word_count.set(0)\n await OaeV.send('Counter reset to 0!')", "def SiRx(YKHO):\n if YKHO.closed:\n return\n for tO9_ in niqe():\n YKH...
[ "0.76553756", "0.677761", "0.6500362", "0.6427434", "0.6316108", "0.62539256", "0.62377983", "0.6195428", "0.6168094", "0.6141713", "0.60716814", "0.6052273", "0.5980762", "0.5955423", "0.59441966", "0.5941663", "0.5915833", "0.5880194", "0.58698136", "0.5843896", "0.5831221"...
0.7619098
1
This method tells pika to call the on_channel_closed method if RabbitMQ unexpectedly closes the channel.
def mnNJ(YKHO): YKHO._LOGGER.info('Adding channel close callback') YKHO._channel.add_on_close_callback(YKHO.on_channel_closed)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vSpi(YKHO, YwkQ, lo9Y):\n YKHO.LOGGER.warning('Channel %i was closed: %s', YwkQ, lo9Y)\n YKHO._connection.close()", "def vSpi(YKHO, YwkQ, lo9Y):\n S0MI.warning('Channel {CHANNEL} was closed: {REASON}'.format(CHANNEL=YwkQ, REASON=lo9Y))\n YKHO.close_connection()", "def CL_s(YKHO, YwkQ, yXxo, Sd8...
[ "0.79287827", "0.78939307", "0.78711367", "0.7820515", "0.7585362", "0.75851166", "0.7568095", "0.75329405", "0.7509153", "0.7499561", "0.73382735", "0.73321396", "0.7293731", "0.72924536", "0.72563326", "0.71787286", "0.71539223", "0.71476454", "0.70893264", "0.70074236", "0...
0.7014827
19
Only creates the driver if not present and returns it.
def aDzh(YKHO): if hasattr(gCuF, 'CRAWLABLE_PHANTOMJS_DEDICATED_MODE') and gCuF.CRAWLABLE_PHANTOMJS_DEDICATED_MODE: if not YKHO._web_driver: YKHO._web_driver = cdxT(port=getattr(gCuF, 'CRAWLABLE_PHANTOMJS_DEDICATED_PORT', 8910)) elif not L_5X(YKHO._web_driver.service.port): r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aDzh():\n return E_qD", "def aDzh(YKHO):\n if M5w6.__driver is None:\n YKHO.start_driver()\n return M5w6.__driver", "def OMWp(mWFP, Fv2L):\n Csk6 = E_qD.DriverManager('gnocchi.storage', mWFP).driver\n return Csk6(Fv2L)", "def OMWp(Emd4, mWFP):\n return aDzh(mWFP)", "def aDzh(YK...
[ "0.7277589", "0.67349756", "0.6722591", "0.6708681", "0.6649051", "0.662102", "0.6607616", "0.65752584", "0.64793676", "0.64739025", "0.6466349", "0.64499176", "0.6402683", "0.63737345", "0.63402295", "0.6295017", "0.6259205", "0.6226569", "0.6187491", "0.6176524", "0.6149056...
0.5827542
40
Checks if user is mod and outputs permission if not
async def checkMod(OaeV): if not OaeV.author.is_mod: await OaeV.send("You don't have permission to use that command!") return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHsb(YKHO, QePW):\n return QePW.user.is_superuser", "def spO2(YKHO, tKz9):\n return YKHO.is_superuser", "def C15f():\n\n def lgNN(OaeV):\n return wQcs.check_any(wQcs.is_owner(), wQcs.has_role(feS8))\n return wQcs.check(lgNN)", "def awnO(YKHO, hHsW):\n if hHsW.is_superuser:\n ...
[ "0.723045", "0.7038432", "0.6935609", "0.6906916", "0.6883575", "0.686255", "0.67305624", "0.67115575", "0.6684692", "0.6640456", "0.6627553", "0.6623676", "0.6620195", "0.6590285", "0.6571116", "0.65507734", "0.65168375", "0.6515423", "0.6505057", "0.65027666", "0.64929414",...
0.73327774
0
Check whether this fulfillment meets all validation criteria. This will validate the subfulfillments and verify that there are enough subfulfillments to meet the threshold.
def xzCw(YKHO, Ol8d=None, **B2fa): fdOv = [Z9rn for Z9rn in YKHO.subconditions if Z9rn['type'] == Rkc_] if len(fdOv) < YKHO.threshold: raise sUXu('Threshold not met') if len(fdOv) > YKHO.threshold: raise sUXu('Fulfillment is not minimal') return all((Jyz9['body'].validate(message=Ol8d) f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JnjI(YKHO):\n raTX = True\n for Mzf9 in YKHO.pars():\n raTX &= YKHO.check(Mzf9, 'within_limits', verbose=True)\n return raTX", "def GfdN(YKHO):\n for qoqK in YKHO.limits:\n qoqK.check()", "def xzCw(YKHO) -> None:\n YKHO.require_valid_stats_id(YKHO.stats_id)\n YKHO.ticket.val...
[ "0.64305836", "0.6317917", "0.62869173", "0.62383074", "0.6202243", "0.61846614", "0.61050385", "0.60967845", "0.6090329", "0.6061543", "0.6055604", "0.60264903", "0.5961878", "0.59316003", "0.59179956", "0.59179956", "0.58401185", "0.5822289", "0.58125824", "0.5803448", "0.5...
0.7620758
0
Checks whether the entered start date is not in the past tense.
def iBYf(bfVa): rg4j = qcWV.now().date() print(rg4j) if bfVa.lease_start_date >= rg4j: print('Введена дата коректна') return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Frh_(YKHO):\n if YKHO.startDate() > YKHO.endDate():\n return False\n return True", "def nSCA(YKHO):\n if YKHO.date_to and YKHO.date_from and (YKHO.date_to < YKHO.date_from):\n raise Warning(bGrB('Ending Date cannot be set before Beginning Date.'))", "def iW3S(YKHO, Jyyj):\n if Jyy...
[ "0.7110176", "0.7070225", "0.689886", "0.686291", "0.6789036", "0.67377543", "0.6698383", "0.6677584", "0.665984", "0.6621438", "0.66096276", "0.66087145", "0.65994763", "0.6586388", "0.6585757", "0.6574065", "0.65703976", "0.65407974", "0.65356743", "0.64743793", "0.64692247...
0.63422316
29
Takes in any number of iterables and zips them together. Returns a generator that outputs a series of lists, each containing the nth items of each iterable. >>> z = zip([1, 2, 3], [4, 5, 6], [7, 8])
def zip(*ix7N): """*** YOUR CODE HERE ***"""
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MAfb(*IrPK):\n IrPK = map(iter, IrPK)\n while 1:\n yield tuple([WKvO.next() for WKvO in IrPK])", "def K9ZB(*ix7N):\n S7dm = [iter(WhY1) for WhY1 in ix7N]\n while True:\n wEf2 = tuple(dzoo(S7dm))\n if wEf2:\n yield wEf2\n else:\n break", "def cGP...
[ "0.76777554", "0.6916781", "0.6879427", "0.6850221", "0.6842252", "0.68184686", "0.6701854", "0.66520905", "0.66374797", "0.65853167", "0.65675366", "0.65383464", "0.65153474", "0.6507839", "0.6494288", "0.644565", "0.6444793", "0.64136946", "0.6408485", "0.64076406", "0.6402...
0.6630297
9
Anderberg coefficient for nominal or ordinal data.
def n2gI(eJh7, QOe9, eHdN=0, type='Set'): eJh7, QOe9, tZeD, Ywqg = qk7K(eJh7, QOe9, eHdN, type) return tZeD / (tZeD + 2 * (eJh7 + QOe9))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DP8s(YKHO):\n return YKHO.we * oyIN.sqrt(2 * YKHO.mu / YKHO.De) * oyIN.pi * Z9rn * 100", "def dOOm(YKHO):\n return DP_B.bic(YKHO.llf, YKHO.nobs, YKHO.df_model + 1)", "def zZRI(YKHO, *qIxc, **B2fa):\n pass", "def jh8f(LVAh):\n O4CP = 0.9\n gYi7 = oyIN.sqrt(0.2)\n ondo = 0.5 * Zxt2.stats....
[ "0.57979745", "0.56339025", "0.55906546", "0.5572487", "0.5551056", "0.55301815", "0.5483204", "0.5471199", "0.5464159", "0.5442091", "0.5434596", "0.5415606", "0.53946054", "0.53896946", "0.53685033", "0.53584814", "0.53571725", "0.53459775", "0.533452", "0.53274184", "0.529...
0.0
-1
Hamann coefficient for nominal or ordinal data.
def cPz0(eJh7, QOe9, eHdN=0, type='Set'): eJh7, QOe9, tZeD, Ywqg = qk7K(eJh7, QOe9, eHdN, type) M6pt = tZeD + Ywqg - (QOe9 + eJh7) return M6pt / (eJh7 + QOe9 + tZeD + Ywqg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a3mU(YKHO):\n return YKHO.mean", "def ksQC(N9D1):\n EqBn = [WKvO.GetBeginAtom().GetDegree() * WKvO.GetEndAtom().GetDegree() for WKvO in N9D1.GetBonds()]\n while 0 in EqBn:\n EqBn.remove(0)\n EqBn = XTiz.array(EqBn, 'd')\n Ylbp = XTiz.mean(XTiz.sqrt(1.0 / EqBn))\n return Ylbp", "def...
[ "0.63373977", "0.5850263", "0.5811805", "0.566596", "0.56566054", "0.5629672", "0.56040055", "0.55860436", "0.5580379", "0.55368686", "0.552194", "0.55164313", "0.55011296", "0.5493796", "0.5452259", "0.5425316", "0.53997296", "0.5378669", "0.5371102", "0.53675485", "0.536406...
0.51937324
43
Fossum coefficient for nominal or ordinal data.
def ssVt(eJh7, QOe9, eHdN=0, type='Set'): eJh7, QOe9, tZeD, Ywqg = qk7K(eJh7, QOe9, eHdN, type) M6pt = eJh7 + QOe9 + tZeD + Ywqg M6pt = M6pt * (tZeD - 0.5) ** 2 return M6pt / ((tZeD + QOe9) * (tZeD + eJh7))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzER(YKHO, WKvO):\n return YKHO.sum(WKvO) / YKHO.total", "def cEUk(j9GT):\n yZlm = oyIN.mean(j9GT)\n if yZlm == 0:\n return oyIN.nan\n return oyIN.var(j9GT) / yZlm", "def UH90(YKHO, WKvO):\n return 1 - YKHO.cdf(WKvO)", "def DzVe(YKHO):\n pass", "def YzER(YKHO, WKvO):\n YKHO....
[ "0.6058469", "0.6004424", "0.59525293", "0.5928061", "0.59105253", "0.5887765", "0.58750135", "0.5867009", "0.5825354", "0.5778686", "0.5777954", "0.5774468", "0.5756112", "0.5734259", "0.5719949", "0.57038134", "0.5697468", "0.56905246", "0.5680619", "0.56776345", "0.5665760...
0.5334157
60
Yule Q coefficient (also known as First Yule coefficient) for nominal or ordinal data.
def qUYT(eJh7, QOe9, eHdN=0, type='Set'): eJh7, QOe9, tZeD, Ywqg = qk7K(eJh7, QOe9, eHdN, type) M6pt = tZeD * Ywqg - QOe9 * eJh7 UUZ1 = tZeD * Ywqg + QOe9 * eJh7 return M6pt / UUZ1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PMVZ(YKHO):\n return YKHO.arr[2]", "def kY7X(YKHO):\n return YKHO.y << YKHO.y_unit", "def wWCZ(YKHO):\n return oyIN.dot(oyIN.ones(YKHO.nbeads, float), o1QA(YKHO.q)) / float(YKHO.nbeads)", "def p1kx(vexM, LVAh):\n raise NotImplementedError", "def FKzx(YKHO):\n return YKHO.fitnesses.qd_sco...
[ "0.6850293", "0.6269833", "0.60752475", "0.6030669", "0.59960216", "0.59518045", "0.59243625", "0.5903206", "0.5903206", "0.58510834", "0.58510834", "0.58510834", "0.5836209", "0.5824894", "0.5797407", "0.5787605", "0.577783", "0.5745373", "0.57321537", "0.5725303", "0.570019...
0.5294405
80
Tulloss coefficient for nominal or ordinal data.
def J_3z(eJh7, QOe9, eHdN=0, type='Set'): eJh7, QOe9, tZeD, Ywqg = qk7K(eJh7, QOe9, eHdN, type) KkY2 = (min(QOe9, eJh7) + tZeD) / (max(QOe9, eJh7) + tZeD) KkY2 = epAf.log10(1 + KkY2) / epAf.log10(2) o4sw = epAf.log10(2 + min(QOe9, eJh7) / (tZeD + 1)) o4sw = 1 / (o4sw / epAf.log10(2)) ** 0.5 A3Vt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZaX_(YKHO, a1PO):\n YKHO.o_.subtract(a1PO, target=YKHO.c_)\n return YKHO.c_.sum()", "def vAyk(YKHO, Kt_s):\n bGrB, Kt_s = YKHO._expand_treatments(None, Kt_s)\n QyVM = YYRx(Kt_s).item() - 1\n assert QyVM >= 0, 'No model was fitted for the control'\n return YKHO.fitted_models_final[QyVM].coef...
[ "0.617381", "0.6074783", "0.605811", "0.59537286", "0.5952322", "0.5901798", "0.57571137", "0.57571137", "0.5723436", "0.5688909", "0.5686645", "0.5645506", "0.5635458", "0.5628966", "0.5613674", "0.5606632", "0.55710375", "0.5564633", "0.5537423", "0.55367523", "0.5529786", ...
0.59139085
5
test to share a missing article on facebook
def ZAz_(YKHO): eOtH = YKHO.signup_user_one() YKHO.create_article(YKHO.create_article_data, eOtH) geh0 = YKHO.client.get(gxEw('articles:share_facebook', kwargs={'slug': 'a-newer-story'}), format='json', HTTP_AUTHORIZATION='token {}'.format(eOtH)) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tmjs(YKHO):\n IHZF = YKHO.return_article_slug()\n Ylbp = YKHO.client.post('/api/articles/{}/share/facebook/'.format(IHZF))\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED, 'Response status should be 201 CREATED')\n YKHO.assertIn('facebook_link', qQXR.loads(Ylbp.content)['article'])", "...
[ "0.82452327", "0.78586143", "0.75151646", "0.72009087", "0.71484256", "0.6867609", "0.685614", "0.6823126", "0.68078053", "0.6737109", "0.65973777", "0.65652955", "0.65621567", "0.6543199", "0.654189", "0.6506872", "0.64839226", "0.64024746", "0.6372994", "0.6319897", "0.6228...
0.84825337
0
test to share a missing article on email
def kYdK(YKHO): eOtH = YKHO.signup_user_one() geh0 = YKHO.client.get(YKHO.share_mail_url, format='json', HTTP_AUTHORIZATION='token {}'.format(eOtH)) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND) YKHO.assertEqual(geh0.data['errors']['message'][0], 'Article not found.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IszA(YKHO):\n eOtH = YKHO.signup_user_one()\n YKHO.create_article(YKHO.create_article_data, eOtH)\n geh0 = YKHO.client.get(gxEw('articles:share_email', kwargs={'slug': 'a-new-story'}), format='json', HTTP_AUTHORIZATION='token {}'.format(eOtH))\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_...
[ "0.7947881", "0.74595433", "0.74016243", "0.70824254", "0.7053576", "0.69166327", "0.681478", "0.6712723", "0.65811884", "0.65356135", "0.64765894", "0.6474876", "0.637453", "0.63526034", "0.6327726", "0.6318241", "0.6292688", "0.6266136", "0.6248213", "0.6240363", "0.6206713...
0.8267926
0
Return a list of pairs, [[(words, tags],[(words,tags)], every pair is a sentence
def Nr0p(_JNu, FGhF, Q0rM=True): Aofo = [] try: with open(_JNu, 'rb') as eHNT: for zFiD in eHNT: yAmx = zFiD if FGhF: yAmx = Xnme.sub(Z6U9, yAmx) yAmx = gzbJ.sub(Z6U9, yAmx) V22M = [] dJ1p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nkLw(yAmx: List[List[str]]) -> x1iM[cuzp[str, str]]:\n\n def tYrr(q2Xo):\n return {'text': q2Xo[0], 'tag': q2Xo[1][2:].replace('.', '_')}\n dJ1p = []\n VdJ4 = {}\n zrLh = 'O'\n for q2Xo in yAmx:\n if q2Xo[1] == 'O':\n zrLh = 'O'\n continue\n else:\n ...
[ "0.72076017", "0.69820553", "0.69640756", "0.6664909", "0.66272193", "0.66145015", "0.6609112", "0.66024005", "0.6563757", "0.65362346", "0.65270704", "0.65182924", "0.6502707", "0.649914", "0.6485642", "0.64399165", "0.6411529", "0.6399641", "0.6366906", "0.6366906", "0.6343...
0.0
-1
search for the fisrt node with 'data' matching the 'key' return the node or None if not found takes O(n) time
def neBz(YKHO, H5ew): DpUl = YKHO.head while DpUl and DpUl.data != H5ew: DpUl = DpUl.next return DpUl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neBz(YKHO, H5ew):\n Iuo4 = YKHO.head\n while Iuo4 != None:\n if Iuo4 == H5ew:\n return Iuo4.data\n Iuo4 = Iuo4.next\n return None", "def TgwQ(YKHO, H5ew):\n jvSB = YKHO.head\n while jvSB:\n if jvSB.data == H5ew:\n return jvSB\n else:\n ...
[ "0.8435067", "0.8191231", "0.81112427", "0.81090146", "0.79973036", "0.78733796", "0.78188884", "0.76351196", "0.7589929", "0.7573695", "0.7413176", "0.73909366", "0.73712766", "0.7371165", "0.7343787", "0.73201257", "0.7273405", "0.7255881", "0.723417", "0.7232948", "0.72070...
0.75373864
10
Compute ndc projection matrix, from view space to ndc. Matrix form of `ndc_rays` above.
def R4Sj(exwG, eHNT, Mkmy, a1PO): if eHNT == oyIN.inf: return oyIN.array([[exwG / Mkmy, 0, 0, 0], [0, exwG / a1PO, 0, 0], [0, 0, -1, -2 * exwG], [0, 0, -1, 0]]) return oyIN.array([[exwG / Mkmy, 0, 0, 0], [0, exwG / a1PO, 0, 0], [0, 0, -(eHNT + exwG) / (eHNT - exwG), -2 * eHNT * exwG / (eHNT - exwG)], [0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXTh(E3D9, o33B):\n WpIo = o33B.dot(oyIN.linalg.inv(E3D9.T))\n return WpIo", "def VxMA(C7Ls, XcU5, qvah, iaZ7, rb7a):\n wzhC, JM4n = enCC(C7Ls, XcU5, qvah, iaZ7)\n wzhC, JM4n = (ht2j.Tensor(wzhC), ht2j.Tensor(JM4n))\n wzhC, JM4n = YfCX(C7Ls, XcU5, qvah, 1.0, wzhC, JM4n)\n xwzk = wzhC + JM4n...
[ "0.59246486", "0.5903886", "0.5759037", "0.57579386", "0.5705284", "0.570086", "0.56567746", "0.56135994", "0.55865365", "0.55522513", "0.5526808", "0.5501222", "0.5500517", "0.5487693", "0.5483813", "0.54814553", "0.5445988", "0.54442316", "0.5409282", "0.5409008", "0.537702...
0.0
-1
Get mapping from all camera 1 pixels to all camera 2 pixels. To get points in ndc for camera2, use `camera_to_ndc(M, pts2_cam)`. This is not needed for the below functionality.
def Bma4(rb7a, B61u, _vry, C7Ls, XcU5, qvah, Qh4y=1.0, Dfjx=oyIN.inf): E3D9 = R4Sj(Qh4y, Dfjx, XcU5 / (2.0 * qvah), C7Ls / (2.0 * qvah)) y5bX = IMA9(rb7a, B61u, C7Ls, XcU5, qvah, Qh4y, Dfjx) Vjhr = l94n(y5bX, _vry, C7Ls, XcU5, qvah, Qh4y) return Vjhr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iuqa(B61u, _vry, ORN8):\n lTRy = oyIN.vstack([B61u, oyIN.array([0, 0, 0, 1])])\n LNu0 = oyIN.vstack([_vry, oyIN.array([0, 0, 0, 1])])\n Xbp2 = lTRy.dot(oyIN.linalg.inv(LNu0))\n hMFx = oyIN.sum(ORN8[..., oyIN.newaxis, :] * Xbp2, -1)\n hMFx = iIQl(hMFx)\n return hMFx", "def E43s(YKHO):\n r...
[ "0.7096495", "0.63780546", "0.6250042", "0.61966515", "0.602316", "0.5783497", "0.577739", "0.576606", "0.57532424", "0.5697862", "0.5686927", "0.56700337", "0.56675756", "0.56519765", "0.56319183", "0.56319183", "0.5621524", "0.5556786", "0.5542931", "0.5542513", "0.552703",...
0.7273789
0
Figure out age from dob
def ZJe_(YKHO): if YKHO.pk: return (JRYC.date.today() - YKHO.dob).days // 365 else: return '-'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(i_8Y):\n IQ5G = Es1w(i_8Y)\n KSG9 = LgWF.get() - IQ5G\n return pBSp(KSG9.days / 365.25)", "def PQNy(i_8Y):\n rg4j = qcWV.datetime.now()\n return rg4j.year - i_8Y.year", "def N_N1(i_8Y):\n wzkt = qcWV.now()\n i_8Y = qcWV.strptime(i_8Y, '%Y-%m-%d')\n ZJe_ = (wzkt - i_8Y).days\n ...
[ "0.8582002", "0.8556345", "0.8329361", "0.8300811", "0.78450626", "0.782076", "0.7798276", "0.77699536", "0.7768412", "0.77301985", "0.7716243", "0.77122194", "0.7696931", "0.7648106", "0.76358575", "0.7625803", "0.75758624", "0.75758624", "0.75683534", "0.7568349", "0.755280...
0.799465
4
Get the dataset that has mixed labels so that we can train
def dD7q(SIqS, OSvI): __n6 = oyIN.concatenate((SIqS, OSvI)) oyIN.random.shuffle(__n6) print('Dataset shape:', __n6.shape) return __n6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tre3(xvBa=('english', 'russian', 'hindi'), xSYT=False, wG_v=True):\n SOqg = oRi_(dict)\n for rQow in xvBa:\n r6VR = rQow[:2]\n SOqg[rQow]['language_code'] = r6VR\n JHrj = {'vocab': f'{GxDO}vocab_all_{r6VR}.pt', 'monolingual_train': f'{GxDO}df_wiki_monolingual_train_{fq2t}_{r6VR}.pt',...
[ "0.6433529", "0.6414674", "0.6316207", "0.6191397", "0.6180052", "0.6140123", "0.6135616", "0.61192745", "0.6110797", "0.6067207", "0.60534084", "0.6019208", "0.6010675", "0.60011727", "0.5985766", "0.59819", "0.5977231", "0.59577274", "0.59557426", "0.5950913", "0.5945404", ...
0.0
-1
Get the dataset that has mixed labels so that we can train
def eis1(__n6): return __n6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tre3(xvBa=('english', 'russian', 'hindi'), xSYT=False, wG_v=True):\n SOqg = oRi_(dict)\n for rQow in xvBa:\n r6VR = rQow[:2]\n SOqg[rQow]['language_code'] = r6VR\n JHrj = {'vocab': f'{GxDO}vocab_all_{r6VR}.pt', 'monolingual_train': f'{GxDO}df_wiki_monolingual_train_{fq2t}_{r6VR}.pt',...
[ "0.6433529", "0.6414674", "0.6316207", "0.6191397", "0.6180052", "0.6140123", "0.6135616", "0.61192745", "0.6110797", "0.6067207", "0.60534084", "0.6019208", "0.6010675", "0.60011727", "0.5985766", "0.59819", "0.5977231", "0.59577274", "0.59557426", "0.5950913", "0.5945404", ...
0.57995474
46
Create self.placeholders. Notes _____ Placeholders input data in tf1.
def IOnb(YKHO) -> l1oh: print('Defining placeholders') YKHO.placeholders = {'batch': ZylS.compat.v1.placeholder(ZylS.int32, name='batch'), 'batch_edge_type_idx': ZylS.compat.v1.placeholder(ZylS.int32, shape=(), name='batch_edge_type_idx'), 'batch_row_edge_type': ZylS.compat.v1.placeholder(ZylS.int32, shape=(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5nL(YKHO):\n YKHO.input = ZylS.placeholder(ZylS.int32, [None, YKHO.mx_len], name='input')\n YKHO.input_lengths = ZylS.placeholder(ZylS.int32, [None], name='input_lens')\n YKHO.y = ZylS.placeholder(ZylS.float32, [None], name='labels')", "def MPjK(YKHO):\n YKHO.input_placeholder = ZylS.placeholder...
[ "0.8428897", "0.82082677", "0.8199915", "0.81997293", "0.8196642", "0.8188385", "0.814789", "0.8118329", "0.80786586", "0.8054398", "0.8044635", "0.80068076", "0.79862934", "0.79840195", "0.79707325", "0.7968308", "0.7961675", "0.79444015", "0.79444015", "0.7883201", "0.78821...
0.7985748
13
Calculate metrics (AUROC, AUPRC, AP)
def xHA4(YKHO, cb_Q: tf.compat.v1.Session, IgOF: Dict[Tuple[int, int], List[np.array]], xtCw: Dict[Tuple[int, int], List[np.array]], _nJc: Tuple[int, int, int]): YKHO.feed_dict.update({YKHO.placeholders['dropout']: 0}) YKHO.feed_dict.update({YKHO.placeholders['batch_edge_type_idx']: YKHO.minibatch.edge_type2idx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oknw(n5sN, nvEb):\n print('=============== Data Statistics: ====================')\n print('Accuracy = ', vjyh(n5sN, nvEb))\n print('Precision = ', rhd_(n5sN, nvEb))\n print('Recall = ', AOzf(n5sN, nvEb))\n print('F1 score = ', fOqE(n5sN, nvEb))", "def bRL8(LCkP, WDHD):\n OS6F, Wbxj, bGrB =...
[ "0.7104186", "0.70559824", "0.6866612", "0.68063855", "0.67246896", "0.6608031", "0.6594493", "0.657699", "0.65489745", "0.65079504", "0.65011114", "0.64948046", "0.64752835", "0.64752835", "0.64604306", "0.64576626", "0.6447386", "0.6447386", "0.6447386", "0.6447386", "0.644...
0.0
-1
Construct an instance from a ``DMSG`` portion of received message. Any remaining message data after the relevant ``DMSG`` is returned along with the instance.
def cmYW(Emd4, JbyC: Flags, QlTo: bytes) -> AzJI['Display', bytes]: if len(QlTo) < 4: raise PYZ0('Invalid dmsg length', QlTo) JZs_ = BlNT.unpack('<2H', QlTo[:4]) QlTo = QlTo[4:] CKog = JZs_[1] YSA3 = dict(index=JZs_[0], rh_tally=rksn(CKog & 3), txt_tally=rksn(CKog >> 2 & 3), lh_tally=rksn(CK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yONA(Emd4, tO9_):\n return Emd4(BlNT.unpack('>I', tO9_[:4])[0], tO9_[4], BlNT.unpack('>I', tO9_[5:9])[0])", "def yONA(Emd4, tO9_):\n return Emd4(BlNT.unpack('>I', tO9_[:4])[0], tO9_[4])", "def yONA(Emd4, tO9_):\n return Emd4(BlNT.unpack('>I', tO9_[:4])[0], tO9_[4], tO9_[5:])", "def yONA(Emd4, tO...
[ "0.72760993", "0.7263132", "0.72475517", "0.7013434", "0.69286376", "0.6895556", "0.6676019", "0.6649497", "0.6473882", "0.6473882", "0.6452505", "0.6452505", "0.63754785", "0.620092", "0.61880535", "0.61853456", "0.608563", "0.60578525", "0.6044017", "0.60323006", "0.6020006...
0.68413496
6
Change this function to return just the new ray.
def XMlP(YKHO, z1Rg): """ Returns a list of intersections with a Ray or Point.""" if isinstance(z1Rg, PvyL): if z1Rg in YKHO: return z1Rg else: print('POINT') return None if isinstance(z1Rg, m1mO): if z1Rg in YKHO: return z1Rg i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def APf7(YKHO, WKvO: float, LVAh: float, spHt: Ray) -> None:\n ...", "def k008(YKHO, spHt):\n GLTo = spHt + YKHO.totalRays // 2\n GLTo %= YKHO.totalRays\n return GLTo", "def kJpS(YKHO):\n Cawp = []\n if 'leaflight' in YKHO.source:\n for kjp6 in o7DN.inorder_r(YKHO.root, nodes=[], leaf=...
[ "0.7135287", "0.6753388", "0.6753229", "0.65733165", "0.6495605", "0.63203347", "0.6275496", "0.6260124", "0.6242505", "0.62125593", "0.61455345", "0.6133133", "0.60986894", "0.6089781", "0.6074912", "0.6031343", "0.60196745", "0.5974163", "0.5973077", "0.59484875", "0.589493...
0.0
-1
Converts tokenized input to ids, masks and segments for transformer (including bert)
def G8SR(zCsx, b0j5, Kmcr): def icu4(zCsx, oTNM, u54L): g4y1 = b0j5.encode_plus(str(zCsx), add_special_tokens=True, max_length=u54L, truncation_strategy=oTNM) Pha6 = g4y1['input_ids'] _mW4 = [1] * len(Pha6) qM6u = g4y1['token_type_ids'] WAcC = u54L - len(Pha6) B2yl =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aaag(b0j5, PU1l, G8d9=256):\n if isinstance(PU1l, xr9L):\n Pha6 = [0] * G8d9\n qV0r = [0] * G8d9\n Uszf = [0] * G8d9\n return (Pha6, qV0r, Uszf)\n D56S = PU1l.text_a\n if len(D56S) > G8d9 - 2:\n D56S = D56S[0:G8d9 - 2]\n sWQ5 = []\n s2mk = []\n Uszf = []\n ...
[ "0.6957497", "0.69091094", "0.6875054", "0.67333585", "0.6683271", "0.6583066", "0.65828025", "0.65718824", "0.6500704", "0.6410062", "0.63910437", "0.6324682", "0.6295016", "0.62936014", "0.6271489", "0.625758", "0.61885774", "0.6177499", "0.61346453", "0.60896903", "0.60762...
0.6808156
3
Retrieves the component that is computed last in the graph, usually the final estimator.
def Ggts(YKHO): if len(YKHO.compute_order) == 0: raise ValueError('Cannot get last component from edgeless graph') yQ7t = YKHO.compute_order[-1] return YKHO.get_component(yQ7t)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YKeD(YKHO):\n return qG0X.ComponentDefinition_getLastComponent(YKHO)", "def viaW(YKHO) -> 'CommonGraphApi':\n return YKHO.getSubgraph(YKHO.getLargestComponentNodes())", "def sp3Q(YKHO):\n return YKHO.state.element", "def XVAW(YKHO):\n return YKHO.y[-1]", "def FrVQ(YKHO):\n return YKHO.__...
[ "0.7336616", "0.6908554", "0.66947806", "0.66179544", "0.6524847", "0.6504059", "0.6504059", "0.63799167", "0.63509005", "0.63314456", "0.63308126", "0.6311899", "0.62982404", "0.6222494", "0.62138754", "0.6181808", "0.6176574", "0.6176574", "0.61641675", "0.61523247", "0.615...
0.85455334
0
Add node with data to end of list.
def g5gD(YKHO, nPrm): Esd_ = o7DN(nPrm) if YKHO.head is None: YKHO.head = Esd_ if YKHO.tail is not None: YKHO.tail.next = Esd_ YKHO.tail = Esd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K_Q6(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.insert_beginning(nPrm)\n return\n YKHO.last_node.next_node = o7DN(nPrm, None)\n AMSv = YKHO.last_node.next_node", "def SStx(YKHO, nPrm):\n if not YKHO.head:\n YKHO.head = Msxl(data=nPrm)\n DpUl = YKHO.head\n while DpUl.ne...
[ "0.84281105", "0.8301581", "0.8265699", "0.8253247", "0.82426465", "0.82426465", "0.82426465", "0.82018924", "0.8175368", "0.8165685", "0.8165324", "0.8137236", "0.81290764", "0.8092434", "0.809194", "0.80750006", "0.8062934", "0.80483025", "0.8004372", "0.80006105", "0.79984...
0.77427226
33
Computes the hamming distance between two kmers p and q
def oOxl(XP5J, vexM): assert len(XP5J) == len(vexM) G1Hx = len(XP5J) adjW = 0 for YRbF in range(G1Hx): if XP5J[YRbF] != vexM[YRbF]: adjW += 1 else: continue E_DB = adjW return E_DB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_DB(YKHO, XP5J: str, vexM: str) -> int:\n yk4i = 0\n for mM0K, H7g6 in zip(XP5J, vexM):\n if mM0K != H7g6:\n yk4i += 1\n return yk4i", "def oOxl(XP5J, vexM):\n if len(XP5J) != len(vexM):\n return -1\n pImw = 0\n for cntZ, CsFy in zip(XP5J, vexM):\n if cntZ !...
[ "0.78291243", "0.72461784", "0.7181119", "0.70272493", "0.68533415", "0.68180424", "0.67533237", "0.67379", "0.6700727", "0.66492224", "0.6634053", "0.65951955", "0.65748304", "0.6557578", "0.6538674", "0.6528112", "0.6521339", "0.6513517", "0.6513312", "0.6493483", "0.648702...
0.711793
3
normalizes an unactivated output of a neural network using batch normalization
def idFg(Nk6w, KMvS, UqYS, _hZ2): s7Ng = UqYS XQeD = KMvS T_YC = _hZ2 kCPo = Nk6w.mean(0) ihqD = Nk6w.std(0) jqnR = Nk6w.std(0) ** 2 ZQIA = (Nk6w - kCPo) / (jqnR + T_YC) ** 0.5 OBa3 = XQeD * ZQIA + s7Ng return OBa3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLFL(cgBF: np.ndarray) -> oyIN.ndarray:\n return cgBF.astype('float32') / 255.0", "def zYio(Wc9F):\n JBMS = Wc9F.new_tensor([0.485, 0.456, 0.406]).view(-1, 1, 1)\n M1Jx = Wc9F.new_tensor([0.229, 0.224, 0.225]).view(-1, 1, 1)\n Wc9F = Wc9F.div_(255.0)\n return (Wc9F - JBMS) / M1Jx", "def JjKn...
[ "0.73383605", "0.7331231", "0.7283046", "0.72148997", "0.71479064", "0.7101132", "0.71009797", "0.7095221", "0.7094724", "0.70268786", "0.7025377", "0.70250446", "0.70229477", "0.70229477", "0.70213675", "0.69890547", "0.69841635", "0.69777745", "0.6952365", "0.6926828", "0.6...
0.0
-1
Return the max number of workers configured.
def gon_() -> h8nf[int]: GPtr = PSrQ() wEf2 = GPtr.config.get('max-workers') if wEf2 is None: return None try: return int(wEf2) except ValueError as err: raise ValueError(f'Max workers should be an integer or left unset. Current value: {wEf2}') from XObx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bjrR(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'maximum_number_of_workers')", "def bjrR(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'maximum_number_of_workers')", "def T52V(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'max_worker_count')", "def jfwf(YKHO) -> str:\n r...
[ "0.87920237", "0.8725062", "0.86604214", "0.835314", "0.8298026", "0.8028224", "0.8028224", "0.7991427", "0.78533316", "0.78533316", "0.77421415", "0.7689187", "0.7619342", "0.7572469", "0.7519487", "0.74702203", "0.74322814", "0.74276596", "0.74276596", "0.74276596", "0.7419...
0.852378
3
Scales, crops, and normalizes a PIL image for a PyTorch model, returns an Numpy array
def Hmm2(LNo8): Ylkb = 256 HLKd = 224 Xn71 = hnIv.open(LNo8) Xn71 = Xn71.resize((Ylkb, Ylkb)) LFlW = (Ylkb - HLKd) * 0.5 _tIi = LFlW + HLKd CN9P = (Ylkb - HLKd) * 0.5 LSh8 = CN9P + HLKd Xn71 = Xn71.crop((LFlW, CN9P, _tIi, LSh8)) Xn71 = oyIN.array(Xn71) / 255 JBMS = oyIN.array...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAhN(KAOR):\n daQb = Ymkf.Compose([Ymkf.ToTensor(), Ymkf.Normalize((0.1307,), (0.3081,))])\n J83E = WR89.b64decode(KAOR['image']['b64'])\n LNo8 = hnIv.open(xDSY.BytesIO(J83E))\n vhpA = daQb(LNo8).numpy()\n print(vhpA.shape)\n return vhpA", "def okCT(YKHO, LNo8):\n if not isinstance(LNo8,...
[ "0.70408374", "0.70154387", "0.7010913", "0.692126", "0.6912859", "0.6905566", "0.6858184", "0.68564993", "0.6846518", "0.68229955", "0.677873", "0.6763409", "0.6706673", "0.6648095", "0.66267085", "0.66071826", "0.6573775", "0.65496767", "0.6539227", "0.6535215", "0.652776",...
0.0
-1
View function for home page of site.
def d6pt(QePW): z3Eu = dl5x.objects.all().count() Ep5Y = dfSM.objects.all().count() M58r = dfSM.objects.filter(status__exact='a').count() nM65 = o763.objects.count() i_7h = zOPr.objects.count() EDeV = dl5x.objects.filter(title__icontains='the').count() RTwz = QePW.session.get('num_visits', 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy():\n ...
[ "0.8521749", "0.8379698", "0.83538586", "0.83415264", "0.83415264", "0.8317958", "0.83062094", "0.8299444", "0.8296642", "0.82641256", "0.8225699", "0.82174337", "0.82070804", "0.8190046", "0.8190046", "0.8182404", "0.8176699", "0.81766313", "0.8147485", "0.8134822", "0.81348...
0.0
-1
Renders the home page.
def kZiy(): return TvZl('index.html', title='Home Page', year=qcWV.now().year)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.83046836", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279...
0.80608845
75
Renders the contact page.
def Mxk0(): return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='Your contact page.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.8118483", "0.8117153", "0.8067011", "0.80406195", "0.8032139", "0.80279577", "0.80256563", "0.80241436", "0.80055...
0.81830716
12
Renders the contact page.
def lmOc(): return TvZl('DataModel.html', title='This is my Data Model page about movies,budget and popoularity', year=qcWV.now().year, message='In this page we will check if the amount of budget affects the popularity of the film')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.8...
0.0
-1
Change ``num'' to given base
def GTKc(mLGw, P8oC): DwRD = [] rJrZ = mLGw while oyIN.any(rJrZ): VlDb = rJrZ % P8oC rJrZ = rJrZ // P8oC DwRD.append(VlDb) return oyIN.array(DwRD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uGJL(mLGw, LDUZ):\n bp7k = '0123456789ABCDEF'\n if mLGw % LDUZ == mLGw:\n return bp7k[mLGw]\n else:\n return uGJL(mLGw // LDUZ, LDUZ) + bp7k[mLGw % LDUZ]", "def uGJL(P8oC, mLGw):\n G1ca = S9Ut()\n hlel = ''\n BHGE = '0123456789ABCDEF'\n while mLGw > 0:\n K0A_ = mLGw ...
[ "0.81653017", "0.8012277", "0.7940987", "0.7878469", "0.78514355", "0.7836093", "0.77883065", "0.77718526", "0.7636874", "0.75759953", "0.7574597", "0.75631857", "0.7528895", "0.7387208", "0.73850965", "0.7380901", "0.73609316", "0.7338254", "0.73033553", "0.73033553", "0.730...
0.6843188
45