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
Return the state attributes.
def R1i3(YKHO): QTBn = {'car': YKHO._licenseplate, 'vin': YKHO._vin, 'retrievalstatus': YKHO._get_car_value(YKHO._feature_name, YKHO._object_name, 'retrievalstatus', 'error')} if YKHO._extended_attributes is not None: for tqKV in YKHO._extended_attributes: wYht = YKHO._get_car_value(YKHO._fe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def upgy(YKHO)...
[ "0.8953404", "0.8953404", "0.85239846", "0.8366765", "0.8366765", "0.8363429", "0.83362615", "0.8334551", "0.8310377", "0.8292682", "0.8289349", "0.8289349", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.828...
0.0
-1
Return the source type, eg gps or router, of the device.
def zEt5(YKHO): return MqPP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zEt5(YKHO):\n return Z4Pi", "def zEt5(YKHO):\n return Z4Pi", "def zEt5(YKHO) -> n_JI:\n return n_JI.ROUTER", "def zEt5(YKHO) -> n_JI:\n return n_JI.ROUTER", "def zEt5(YKHO) -> n_JI:\n return n_JI.ROUTER", "def zEt5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'source_type')", "def ...
[ "0.77605873", "0.77605873", "0.77508706", "0.77508706", "0.77508706", "0.7447897", "0.72797686", "0.7174375", "0.66187227", "0.6579098", "0.6433391", "0.6370096", "0.6225061", "0.6219921", "0.6186551", "0.6182296", "0.6179175", "0.61742234", "0.6170249", "0.6155701", "0.60870...
0.79875
0
Add callback after being added to hass. Show latest data after startup.
async def async_added_to_hass(YKHO): YKHO._car.add_update_listener(YKHO.update_callback)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_added_to_hass(YKHO) -> None:\n YKHO._nobo.register_callback(YKHO._after_update)", "async def async_added_to_hass(YKHO):\n YKHO.async_on_remove(YKHO.coordinator.async_add_listener(YKHO.refresh))", "async def async_added_to_hass(YKHO):\n YKHO._device.register_update_callback(YKHO.async_s...
[ "0.7340083", "0.69040155", "0.69033784", "0.6899683", "0.6860939", "0.68131804", "0.6775254", "0.6775254", "0.6775254", "0.6775254", "0.6775254", "0.6775254", "0.6775254", "0.6735405", "0.6722569", "0.6722569", "0.67116475", "0.67116475", "0.67116475", "0.66903096", "0.666392...
0.685852
5
Called when the user specifies an intent for this skill
def E97p(McO3, cuiw): print('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId']) E2VF = McO3['intent'] q8Qy = McO3['intent']['name'] if q8Qy == 'WhensNextTrainIntent': return Yb9i(E2VF, cuiw) elif q8Qy == 'SetFavoriteStationIntent': return jhia(E2VF, cuiw)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r...
[ "0.7143966", "0.6956116", "0.6949057", "0.6905333", "0.68928874", "0.6754843", "0.6722764", "0.6720773", "0.67161995", "0.6699252", "0.6691263", "0.6670276", "0.6645522", "0.6642719", "0.6638686", "0.6607724", "0.6594981", "0.6575682", "0.6570076", "0.65620786", "0.65609014",...
0.67641324
5
Get all stop punctuation used in this class of stop punctuation
def oAE2(YKHO): return YKHO.stop_puncs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lx6Y(YKHO):\n return YKHO.stop_words", "def Rack(YKHO, rrSk: str):\n jj1J = ZbWC.compile('[][{},;:()/~\"_|]+')\n s0Yt = ZbWC.compile('[.!?]+')\n rrSk = jj1J.sub('', rrSk)\n rrSk = s0Yt.sub(' ' + YKHO.TOKENS.END.value, rrSk)\n return rrSk", "def TUDJ(YKHO):\n V22M = set([])\n for eOt...
[ "0.684052", "0.667542", "0.66231024", "0.66037446", "0.659891", "0.6473453", "0.64463365", "0.6432911", "0.6394395", "0.637684", "0.6276296", "0.6273752", "0.62510675", "0.62479705", "0.6238775", "0.6201514", "0.61965156", "0.61964554", "0.6164514", "0.6151479", "0.6146209", ...
0.833109
0
Get all stop words used in this class of stop words
def lx6Y(YKHO): return YKHO.stop_words
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HZSL():\n hw4L = Rw8l.get_stop_words('ru')\n hw4L.update(Rw8l.get_stop_words('en'))\n piy_ = set(di0c.words(['russian', 'english']))\n hw4L.update(piy_)\n return hw4L", "def hwHU():\n return tyNe('es') + tyNe('ca') + tyNe('en')", "def tyNe(YKHO):\n YKHO._normalize_params()\n return ...
[ "0.8093854", "0.78768367", "0.78760695", "0.78554696", "0.7578836", "0.7563865", "0.73921835", "0.7325552", "0.73217547", "0.715307", "0.7133158", "0.70772356", "0.70650655", "0.70640326", "0.70194495", "0.70113796", "0.7004892", "0.69739324", "0.69673854", "0.69637734", "0.6...
0.82241994
0
Get words from a document without punctuation
def QmeH(YKHO, l5Ny): KV1M = YKHO.removePunctuation(l5Ny) return [GIN8 for GIN8 in KV1M.split() if len(GIN8) >= 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(C13M):\n Iras = [GIN8.lower() for GIN8 in Dhdw.word_tokenize(C13M) if GIN8.isalpha()]\n Iras = [GIN8.lower() for GIN8 in Iras]\n dsP0 = []\n for GIN8 in Iras:\n if GIN8 not in vIwR.punctuation and GIN8 not in Dhdw.corpus.stopwords.words('english'):\n dsP0.append(GIN8.lower())...
[ "0.76766855", "0.75308853", "0.74917233", "0.7454243", "0.7444085", "0.7404468", "0.7294159", "0.72471005", "0.72227544", "0.71744657", "0.71365345", "0.7087682", "0.70763695", "0.70624864", "0.70473707", "0.7029324", "0.69357014", "0.69320077", "0.68929595", "0.6884471", "0....
0.722238
9
Remove all stop words from an input list of tokens
def AQLE(YKHO, l5Ny=None, BA9O=True, z5la=False): if type(l5Ny) == type(str()): l5Ny = l5Ny.split() Qgvx = l5Ny spH1 = list() if BA9O: Qgvx = sorted(Qgvx) SStx = spH1.append LSh8 = str.lower for GIN8 in Qgvx: if LSh8(GIN8) not in YKHO.stop_words: if z5la =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g8pp(a1Ws, s2mk):\n return [a1PO for a1PO in s2mk if len(a1PO) > 2 and (not a1PO in a1Ws)]", "def aUcs(s2mk):\n hwHU = set(di0c.words('english'))\n s2mk = [yzQ0 for yzQ0 in s2mk if yzQ0 not in hwHU]\n return s2mk", "def aUcs(s2mk):\n return [a1PO for a1PO in s2mk if a1PO not in di0c.words('e...
[ "0.8499447", "0.8482062", "0.84252465", "0.8311352", "0.82476795", "0.8216373", "0.8173665", "0.8090284", "0.80678034", "0.8034584", "0.8006046", "0.79127717", "0.7869113", "0.7864783", "0.7794858", "0.77646935", "0.7731033", "0.769411", "0.76495224", "0.7648677", "0.7647411"...
0.0
-1
Remove all stop words from this object's self.textFile variable
def ceXP(YKHO, BA9O=True, z5la=False): YKHO.textFile = YKHO.removeStopWords(text=YKHO.textFile, sort=BA9O, lc=z5la)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)", "def g8pp(YKHO):\n YKHO.word_list = [GIN8 for GIN8 in YKHO.word_list if len(GIN8) > 1 and GIN8 not in jMRN]\n YKHO.word_list.sort()", "def bF94(...
[ "0.80025023", "0.7839317", "0.74233615", "0.7389611", "0.7353432", "0.7337223", "0.7294318", "0.7162079", "0.7141305", "0.707594", "0.70356864", "0.7024306", "0.70218664", "0.701126", "0.7008017", "0.7004135", "0.6960223", "0.695508", "0.693407", "0.69335514", "0.69017506", ...
0.8026418
0
Set this object's self.textFile variable as tokens
def blJF(YKHO): YKHO.removeOwnPunctuation() YKHO.removeOwnStopWords()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nUeQ):\n YKHO.__in_file = nUeQ\n YKHO.__token = ''\n YKHO.__tokens = []\n YKHO.__lines = nUeQ.readlines()\n YKHO.__lines = ''.join(YKHO.__lines)\n YKHO.__i = 0\n YKHO.build_tokens()", "def FIMM(YKHO):\n YKHO.tokens = []", "def FIMM(YKHO, eHNT):\n YKHO.index = -1\n Y...
[ "0.735276", "0.6873943", "0.6785897", "0.6730606", "0.65872747", "0.6507122", "0.6462297", "0.642814", "0.6401638", "0.6377558", "0.6279851", "0.62458277", "0.6206124", "0.6183115", "0.61154896", "0.604024", "0.598688", "0.5925711", "0.5903878", "0.59033924", "0.58993965", ...
0.61445516
14
Get region id from name. Return region id.
def D_cJ(aGvo): M5Bl = None CWh6 = gow0('region') if CWh6.get('status') == 200: r2BE = CWh6.get('result') for zn0c in r2BE: if r2BE[zn0c].get('name') == aGvo: M5Bl = r2BE[zn0c].get('DCID') return M5Bl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKJq(mWFP=None):\n LYIX = QhVs(A97Q).OfClass(g9Wi)\n for L5Sl in LYIX:\n Osd8 = cFlk.Name.GetValue(L5Sl)\n if not mWFP or mWFP.lower() == Osd8.lower():\n return L5Sl.Id\n else:\n print('Color not specified or not found.')\n return L5Sl.Id", "def HXLq(YKHO, mWFP...
[ "0.77587116", "0.74429554", "0.7296377", "0.7071384", "0.7040642", "0.6867872", "0.6622731", "0.6620584", "0.65269184", "0.6414258", "0.640979", "0.63308334", "0.6328945", "0.6309165", "0.62769306", "0.62553096", "0.62429833", "0.6171465", "0.6171465", "0.6171465", "0.6171465...
0.81001997
0
This function calculates and returns the recall
def AOzf(o3Uj, yLaY): return RXOj(o3Uj, yLaY)[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(YKHO):\n hG7h, B7g1 = (len(YKHO.__true_positives), len(YKHO.__false_negatives))\n return float(hG7h) / (hG7h + B7g1)", "def AOzf(Y8eF, aMgO):\n HRJ_ = wXuO(Y8eF, aMgO)\n FYKK = Rw7j(Y8eF, aMgO)\n AOzf = HRJ_ / (HRJ_ + FYKK)\n return AOzf", "def AOzf(Y8eF, aMgO):\n COti = CdMZ.sum(...
[ "0.7383049", "0.730809", "0.729481", "0.72714585", "0.7260718", "0.7165436", "0.71549386", "0.71150184", "0.7025544", "0.7015815", "0.700435", "0.7002185", "0.69589734", "0.69589734", "0.69589734", "0.69589734", "0.69589734", "0.69589734", "0.6954294", "0.69351184", "0.693112...
0.6986173
12
Dynamically pads the batch_data with pad_id
def H5wB(YKHO, J1hN, Rdw3=0): jfO1 = 1000 rDpN = 1000 yWrT = min(jfO1, max(J1hN['passage_length'])) + 1 Xevg = min(rDpN, max(J1hN['question_length'])) J1hN['passage_token_ids'] = [(A07C + [Rdw3] * (yWrT - len(A07C)))[:yWrT] for A07C in J1hN['passage_token_ids']] J1hN['question_token_ids'] = [(A0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H5wB(YKHO, J1hN, Rdw3):\n yWrT = min(YKHO.max_p_len, max(J1hN['passage_length']))\n Xevg = min(YKHO.max_q_len, max(J1hN['question_length']))\n J1hN['passage_token_ids'] = [(A07C + [Rdw3] * (yWrT - len(A07C)))[:yWrT] for A07C in J1hN['passage_token_ids']]\n J1hN['question_token_ids'] = [(A07C + [Rdw...
[ "0.8182761", "0.7264285", "0.69672924", "0.6958365", "0.69562846", "0.6821268", "0.6815583", "0.68085265", "0.6800871", "0.6762125", "0.67257625", "0.6699586", "0.66755253", "0.66576433", "0.66129065", "0.66090053", "0.6607526", "0.65554667", "0.6524988", "0.6473104", "0.6432...
0.827876
0
Return a valid SlackPost instance.
def k2dN(): return F4R0(channel='#tester', subject='[Messages] Integration Test', body='Conducting Integration Testing', profile='integration_tester', attachments='https://imgs.xkcd.com/comics/python.png', save=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m0i0(YKHO):\n try:\n if YKHO.glob_data['SlackNotifications'].lower() == 'yes':\n if 'Slack' in YKHO.glob_data:\n NtEF = YKHO.data['Slack']['username']\n HDMa = YKHO.glob_data['Slack']['channelname']\n eOtH = YKHO.data['Slack']['token']\n ...
[ "0.6011416", "0.5855455", "0.56733084", "0.5478176", "0.54717803", "0.54194516", "0.5380445", "0.53385615", "0.53385615", "0.53059053", "0.5303496", "0.5302607", "0.52967435", "0.52209324", "0.51671124", "0.51521766", "0.5147713", "0.51128584", "0.5095342", "0.50887173", "0.5...
0.6284581
0
Return the vertices of the cube at position x, y, z with size 2n.
def n1bS(WKvO, LVAh, epBp, exwG): return [WKvO - exwG, LVAh + exwG, epBp - exwG, WKvO - exwG, LVAh + exwG, epBp + exwG, WKvO + exwG, LVAh + exwG, epBp + exwG, WKvO + exwG, LVAh + exwG, epBp - exwG, WKvO - exwG, LVAh - exwG, epBp - exwG, WKvO + exwG, LVAh - exwG, epBp - exwG, WKvO + exwG, LVAh - exwG, epBp + exwG, W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n1bS(WKvO, LVAh, epBp, jHsn, pvd3=None, WyJz=None):\n if pvd3 == None:\n pvd3 = jHsn\n if WyJz == None:\n WyJz = jHsn\n return [WKvO - jHsn, LVAh + pvd3, epBp - WyJz, WKvO - jHsn, LVAh + pvd3, epBp + WyJz, WKvO + jHsn, LVAh + pvd3, epBp + WyJz, WKvO + jHsn, LVAh + pvd3, epBp - WyJz, WKvO...
[ "0.84028685", "0.83493423", "0.7549717", "0.7102708", "0.66024923", "0.6499729", "0.6417182", "0.640172", "0.6398933", "0.6339799", "0.62435925", "0.6203052", "0.61983263", "0.61178654", "0.609611", "0.6069485", "0.60654193", "0.60633194", "0.6010405", "0.59747946", "0.592083...
0.8873902
0
Return a list of the texture squares for the top, bottom and side.
def jOtm(tlxW, es2x, HEZd): tlxW = fBZJ(*tlxW) es2x = fBZJ(*es2x) HEZd = fBZJ(*HEZd) Aofo = [] Aofo.extend(tlxW) Aofo.extend(es2x) Aofo.extend(HEZd * 4) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jOtm(tlxW, es2x, HEZd):\n tlxW = fBZJ(*tlxW)\n es2x = fBZJ(*es2x)\n HEZd = fBZJ(*HEZd)\n Aofo = []\n Aofo.extend(tlxW)\n Aofo.extend(es2x)\n Aofo.extend(HEZd * 4)\n return Aofo", "def jOtm(tlxW, es2x, exwG, tTpl, KCHu, yzQ0):\n tlxW = fBZJ(*tlxW)\n es2x = fBZJ(*es2x)\n exwG =...
[ "0.70120525", "0.6371634", "0.6313774", "0.6256759", "0.60697514", "0.5951464", "0.59414285", "0.5878671", "0.5872278", "0.5813781", "0.5796909", "0.5705748", "0.56036305", "0.5517446", "0.55131584", "0.5504185", "0.5500049", "0.5448204", "0.54349416", "0.5433738", "0.5430835...
0.70498157
0
Returns False is given `position` is surrounded on all 6 sides by blocks, True otherwise.
def xs73(YKHO, dQgj): WKvO, LVAh, epBp = dQgj for Jw7X, eUWA, aUJK in oUjU: if (WKvO + Jw7X, LVAh + eUWA, epBp + aUJK) not in YKHO.world: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wWWB(YKHO, dQgj: typing.Tuple[float, float, float]) -> bool:\n raise NotImplementedError", "def yp8Z(YKHO, dQgj):\n return dQgj[0] >= 0 and dQgj[0] < YKHO.config.arena_size[0] and (dQgj[1] >= 0) and (dQgj[1] < YKHO.config.arena_size[1]) and (YKHO.arena[dQgj[0]][dQgj[1]] != CTtz.TAIL)", "def EDs6(oeNL...
[ "0.69926906", "0.6889749", "0.68881494", "0.67686224", "0.66627455", "0.66438025", "0.6613632", "0.66117513", "0.6605935", "0.65963286", "0.65781456", "0.65298533", "0.65219575", "0.6520474", "0.6519436", "0.64179677", "0.63673455", "0.6355879", "0.63327813", "0.6274499", "0....
0.5940875
66
Set the seed to be used in any random generator. This is used to produce deterministic results.
def e3of(yokr): if yokr < 0 or yokr > oCrt: raise ValueError('Seed given is not within the required range.') viqz.set_seed(yokr) tuKI.seed(yokr) XTiz.random.seed(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e3of(Emd4, yokr: Any) -> None:\n Emd4.rand = RHmZ(yokr)", "def e3of(YKHO, yokr):\n YKHO.seed = yokr", "def e3of(YKHO, yokr: int):\n YKHO.__sim.seed(yokr)", "def e3of(YKHO, yokr):\n if yokr is None:\n qmLP.warn('Initializing player with seed from Axelrod module random number generator. ...
[ "0.8740031", "0.8623177", "0.84769076", "0.8417357", "0.8407203", "0.83106583", "0.8295091", "0.8291422", "0.8220655", "0.8220655", "0.82017386", "0.8173769", "0.80774575", "0.8050675", "0.80346555", "0.8030958", "0.80176276", "0.7978097", "0.79660374", "0.79660374", "0.79660...
0.8110245
12
Set the number of rows to be prefetched.
def suxR(zNig): if zNig <= 0 or zNig > iSsD: raise ValueError('Prefetch size given is not within the required range.') viqz.set_op_connector_size(zNig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MzW8(YKHO, A6_I):\n YKHO.set_value_into_input_field(YKHO.number_of_rows_inputbox_locator, A6_I, True)\n global bulk_add_number_of_rows\n zEPQ = int(A6_I)", "def f_GN(YKHO, HN6s):\n if isinstance(HN6s, float):\n HN6s = int(HN6s)\n if YKHO.__nrows != HN6s:\n YKHO.__nrows = HN6s\n ...
[ "0.724699", "0.6561477", "0.6327407", "0.6303449", "0.6276396", "0.62215525", "0.5988416", "0.5829691", "0.58258796", "0.5786469", "0.5779063", "0.577826", "0.57663196", "0.5724117", "0.57075924", "0.5683502", "0.56829995", "0.5659796", "0.56374216", "0.5602634", "0.5568251",...
0.5970832
7
String representation of the configurations.
def zAg0(): return str(viqz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n cKY_ = 'Configurations\\n'\n cKY_ += CgYo.pformat(YKHO.__dict__)\n return cKY_", "def wHJl(YKHO) -> str:\n return qQXR.dumps(YKHO._config)", "def str(YKHO):\n oXYM = ['{0} name={1}'.format(YKHO.layer_type, YKHO.name)]\n for H5ew, BWXx in sorted(YKHO.config.items()):\n ...
[ "0.8874748", "0.7922019", "0.78686243", "0.78509504", "0.7707175", "0.7680234", "0.7630873", "0.74890924", "0.7291009", "0.72622997", "0.72423315", "0.7201013", "0.7201013", "0.71941936", "0.7009992", "0.69965124", "0.697192", "0.69648975", "0.690328", "0.68702286", "0.684470...
0.7552578
7
Retorna la fecha actual con formato dd/mm/aaaa
def uuYm(): kuLp = qcWV.datetime.now() kbzV = kuLp.strftime('%d-%m-%Y') return kbzV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zVlw():\n zVlw = qcWV.now()\n return str(zVlw.day) + '-' + str(zVlw.month) + '-' + str(zVlw.year)", "def slWZ():\n wzkt = qcWV.now()\n _c1T = wzkt.strftime('%Y%m%d')\n return _c1T", "def slWZ():\n JRYC = qcWV.now()\n return JRYC.strftime('%Y-%m-%d')", "def slWZ(W6LD):\n rg4j = qcW...
[ "0.6891505", "0.68336314", "0.68064207", "0.6623234", "0.65912867", "0.6443757", "0.6409538", "0.6406994", "0.6343931", "0.63324094", "0.62401867", "0.6239749", "0.62216514", "0.6208393", "0.6200284", "0.61968094", "0.61918324", "0.61877596", "0.61845905", "0.61774606", "0.61...
0.80906063
0
Parse name from spreadsheet row.
def xdtS(YKHO, rdlD): return rdlD[d3C6.NAME]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xdtS(YKHO, ZfUD):\n return ZfUD.css('td[headers=Name]::text').extract_first().strip()", "def xdtS(YKHO, VmPb, zQjo):\n l4uS = zQjo.find('a').attrs['href']\n eHMM = zQjo.text.strip()\n mWFP, *leAC = eHMM.split(',')\n XVAW, *cntZ = mWFP.split(' ')\n hbFX = l4uS[l4uS.find('PAD_') + 4:l4uS.rfin...
[ "0.672798", "0.6511314", "0.62355113", "0.61684275", "0.6085273", "0.5913917", "0.57449985", "0.5655619", "0.5546215", "0.55339247", "0.5533067", "0.5479771", "0.54746014", "0.54731613", "0.5422033", "0.5413562", "0.53394103", "0.5333415", "0.53251433", "0.5310582", "0.530711...
0.85307986
0
Estimate the end time to be 3 hours after the start time.
def AAl1(YKHO, rdlD): EKFi = YKHO._parse_start_datetime(rdlD) return {'date': EKFi.date(), 'time': (EKFi + fCoM(hours=3)).time(), 'note': 'estimated 3 hours after start time'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7pn(YKHO) -> float:\n ...", "def Os4s(YKHO):\n Wave = YKHO.length // 60\n O66n = YKHO.length % 60\n return ITS7(YKHO.start.hour + Wave, YKHO.start.minute + O66n)", "def U4J1(YKHO):\n return YKHO.start_time + fCoM(hours=YKHO.duration)", "def C7pn(YKHO):\n pass", "def WbTE(YKHO):\n ...
[ "0.72502553", "0.70148486", "0.6911672", "0.6837226", "0.655786", "0.64924175", "0.6459668", "0.6370092", "0.6343086", "0.6278563", "0.62670326", "0.62351763", "0.6207576", "0.61992085", "0.61595386", "0.61366415", "0.6117847", "0.6117847", "0.6117847", "0.6117847", "0.611784...
0.56782466
55
The MAC address of the BMC for this machine.
def EGVt(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'bmc_mac_address')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXjy(YKHO) -> str:\n return YKHO._device.mac", "def HXjy(YKHO):\n return YKHO._mac_address", "def B1Iq(YKHO):\n Uu_n = qxeD.UUID(int=qxeD.getnode()).hex[-12:]\n return Uu_n", "def lM3N(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('MacAddress')\n return YKHO._MacAddress", "def P...
[ "0.8457592", "0.82929313", "0.79365367", "0.7892616", "0.7882977", "0.7793298", "0.7793298", "0.76207066", "0.7616299", "0.7578909", "0.7575946", "0.7519012", "0.7502452", "0.749309", "0.74787015", "0.74102753", "0.74098873", "0.7355", "0.7342288", "0.73314035", "0.72764796",...
0.85031694
0
The MAC address associated with the PXE NIC card.
def datD(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'boot_mac_address')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXjy(YKHO) -> str:\n return YKHO._device.mac", "def HXjy(YKHO):\n return YKHO._mac_address", "def KBOU(YKHO):\n return gTEQ('PrlSrvCfgNet_GetMacAddress', YKHO.handle)", "def QfE5(YKHO):\n try:\n return YKHO.p_fields.f128\n except:\n return None", "def KBOU():\n _C8X = 'e...
[ "0.772973", "0.75816125", "0.7543943", "0.75403297", "0.747024", "0.74660796", "0.745361", "0.7416282", "0.7295916", "0.7283541", "0.72512907", "0.72501826", "0.7163856", "0.7148189", "0.7148189", "0.7110401", "0.707853", "0.69873273", "0.69330335", "0.68943465", "0.68943465"...
0.6257435
47
The serial number of the machine. Hardware suppliers may use an alternate value. For example, service tag.
def OIdI(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'serial_number')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BxVF(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_serial_number')", "def BxVF(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_serial_number')", "def OIdI(YKHO) -> str:\n return qe4Y.get(YKHO, 'serial_number')", "def ANpc(YKHO) -> str:\n return YKHO._get_string(wLjv.Prop_SerialNumber_String)", ...
[ "0.8421275", "0.8421275", "0.83592486", "0.8165125", "0.81580627", "0.81527644", "0.81327915", "0.81152004", "0.80942684", "0.7967733", "0.795271", "0.79252744", "0.7786174", "0.77640927", "0.7744729", "0.76735437", "0.7621449", "0.76163775", "0.7610738", "0.7518703", "0.7503...
0.789162
12
The subnet blocks in CIDR format for Kubernetes service external IPs to be advertised over BGP.
def wJYJ(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'service_external_prefixes')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QG2B(YKHO):\n D8Ke = xOIh.IPNetwork(addr=YKHO.subnet)\n Npkd = list(D8Ke.subnet(prefixlen=24))\n paQT = [str(VWZy) for VWZy in Npkd]\n return paQT", "def Kvj_(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['CidrBlockArgs']]]]:\n return qe4Y.get(YKHO, 'cidr_blocks')", "def Npkd(YKHO) -> bdIy[str]:\...
[ "0.6813238", "0.6800243", "0.6670716", "0.6484499", "0.6473761", "0.6473761", "0.6438559", "0.63951766", "0.63820213", "0.63820213", "0.6289542", "0.61285216", "0.6084707", "0.6063184", "0.60339576", "0.60083693", "0.5991745", "0.59664595", "0.5941497", "0.59284204", "0.59284...
0.0
-1
The subnet in CIDR format for which properties should be advertised.
def zcs5(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'subnet_prefix')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VWZy(YKHO) -> qe4Y.Output[h8nf['outputs.ResourceIdResponse']]:\n return qe4Y.get(YKHO, 'subnet')", "def VWZy(YKHO) -> h8nf[qe4Y.Input['ResourceIdArgs']]:\n return qe4Y.get(YKHO, 'subnet')", "def pyfM(YKHO) -> str:\n return qe4Y.get(YKHO, 'subnet_id')", "def QG2B(YKHO):\n D8Ke = xOIh.IPNetwork...
[ "0.7193618", "0.71922874", "0.7139986", "0.710055", "0.7078851", "0.7040386", "0.69792634", "0.69792634", "0.6978669", "0.69737524", "0.6874952", "0.6874952", "0.6829208", "0.6826255", "0.6823278", "0.67958224", "0.67958224", "0.6731015", "0.669703", "0.6647207", "0.663888", ...
0.6293041
34
The name of the VM SKU supplied during creation.
def jxQJ(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'vm_sku_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxQJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vm_sku_name')", "def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')", "def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')", "def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')", "def mDSP(YKHO) -> h8nf[qe4Y.Input[str]]:\n ...
[ "0.84254736", "0.8000554", "0.8000554", "0.8000554", "0.78773034", "0.78773034", "0.77781934", "0.75745046", "0.7542663", "0.7183704", "0.70743084", "0.70743084", "0.6912299", "0.68096715", "0.67432064", "0.6685927", "0.6682888", "0.6655091", "0.6599893", "0.6578086", "0.6543...
0.83534116
1
The selection of how this agent pool is utilized, either as a system pool or a user pool. System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node.
def Tuqy(YKHO) -> qe4Y.Input[uLKX[str, 'AgentPoolMode']]: return qe4Y.get(YKHO, 'mode')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TmQL(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'agent_pool')", "def dBuj(YKHO):\n return YKHO._properties.get('pool')", "def ibpi():\n return 'tank'", "def Fdeb(cuiw, hNbN):\n ZGn0 = ''\n if 'resource_pool' in hNbN.keys():\n ZGn0 = YWtq(hNbN['resource_pool'], cuiw)\n ...
[ "0.6892237", "0.65215933", "0.6334302", "0.61887264", "0.61769044", "0.6153188", "0.5990394", "0.5899859", "0.5808034", "0.5804726", "0.5785459", "0.57705665", "0.5708198", "0.56814474", "0.56528896", "0.5573221", "0.557223", "0.55532515", "0.5504209", "0.5443783", "0.5434208...
0.57841986
11
The name that will be used for the agent pool resource representing this agent pool.
def mWFP(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.__name", "def mWFP(YKHO):\n return YKHO.__name", "def mWFP(YKHO):\n return YKHO.__name", "def mWFP(YKHO):\n return YKHO.__name", "def mWFP(YKHO):\n return YKHO.__name", "def mWFP(YKHO):\n return YKHO.__name", "def mWFP(YKHO):\n return YKHO.__name", "...
[ "0.6891934", "0.6891934", "0.6891934", "0.6891934", "0.6891934", "0.6891934", "0.6891934", "0.6891934", "0.6891934", "0.6891934", "0.6865796", "0.68622625", "0.68622625", "0.68622625", "0.68622625", "0.68622625", "0.68622625", "0.68622625", "0.68622625", "0.68622625", "0.6862...
0.0
-1
The labels applied to the nodes in this agent pool.
def Crrw(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['KubernetesLabelArgs']]]]: return qe4Y.get(YKHO, 'labels')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cLbY(YKHO) -> uLKX[cuzp[str, str], None]:\n return YKHO.agentpool_context.get_nodepool_labels()", "def Crrw(YKHO):\n return YKHO._labels", "def Crrw(YKHO):\n return YKHO._labels", "def Crrw(YKHO):\n return YKHO._labels", "def Crrw(YKHO):\n return YKHO._labels", "def Crrw(YKHO):\n re...
[ "0.8260448", "0.7904689", "0.7904689", "0.7904689", "0.7904689", "0.7904689", "0.7904689", "0.77586967", "0.7735358", "0.7688879", "0.76294655", "0.76175183", "0.76175183", "0.76175183", "0.76175183", "0.7585114", "0.7505268", "0.74692374", "0.7455826", "0.7437136", "0.742468...
0.0
-1
The name used to identify this IP address pool for association with a BGP advertisement.
def mWFP(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO) -> str:\n return f'{YKHO._inst} NAT {YKHO._data['name']}'", "def mWFP(YKHO) -> 'Literal[\"Dynamic Reverse Address Resolution Protocol\", \"Inverse Address Resolution Protocol\", \"Reverse Address Resolution Protocol\", \"Address Resolution Protocol\"]':\n return YKHO._name", "def vUcP(YKHO...
[ "0.69689435", "0.68676615", "0.68554515", "0.67863065", "0.6728472", "0.659753", "0.64363146", "0.64331865", "0.642312", "0.63811857", "0.6357789", "0.632989", "0.63281476", "0.6319333", "0.6319333", "0.6311855", "0.62854135", "0.62768", "0.627653", "0.6248352", "0.6234019", ...
0.0
-1
The indicator to determine if automatic allocation from the pool should occur.
def KdJ2(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'BfdEnabled']]]: return qe4Y.get(YKHO, 'auto_assign')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KDI4(YKHO) -> bool:\n if hasattr(YKHO.at_options, 'allocate'):\n return YKHO.at_options.allocate == 1\n return False", "def tlii(YKHO):\n return False", "def R8kh(YKHO):\n if YKHO.filename() == '$OrphanFiles':\n return False\n return m1YZ(YKHO.tag('alloc')) or m1YZ(YKHO.tag('AL...
[ "0.7250048", "0.7152055", "0.66272557", "0.62390596", "0.618714", "0.61171997", "0.605229", "0.5924391", "0.59182316", "0.58985585", "0.5846799", "0.58236396", "0.5783592", "0.57726204", "0.57266325", "0.5687973", "0.5644704", "0.56237984", "0.5601355", "0.55906373", "0.55576...
0.0
-1
The value of the label or taint.
def BWXx(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'value')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LXG0(YKHO):\n if YKHO.data is None:\n return YKHO._original_value\n elif YKHO.get_label:\n return YKHO.get_label(YKHO.data)\n else:\n return QMSQ(YKHO.data)", "def BWXx(YKHO):\n return YKHO.node_value", "def BWXx(YKHO):\n return YKHO.get_data('value')", "def BWXx(YKHO)...
[ "0.725969", "0.6888748", "0.68829596", "0.67987293", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.6749187", "0.669954", "0.6686476", "0.6636792", "...
0.6509296
39
The location of the managed resource group. If not specified, the location of the parent resource is chosen.
def Rci7(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vBTQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group')", "def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group')", "def vBTQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group')", "def vBTQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'r...
[ "0.6459492", "0.6447463", "0.6239318", "0.6239318", "0.6005518", "0.5939726", "0.59260505", "0.59244", "0.5907997", "0.58390915", "0.58381367", "0.58381367", "0.58381367", "0.58381367", "0.58381367", "0.58381367", "0.58381367", "0.58381367", "0.5832762", "0.58003604", "0.5787...
0.0
-1
The name for the managed resource group. If not specified, the unique name is automatically generated.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def iKNZ(YKHO):\n return YKHO.instance_metadata.resource_group_name", "def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group_name')",...
[ "0.801652", "0.7866061", "0.76779586", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.76652044", "0.7650235", "0.7650235", "...
0.0
-1
The indicator of whether this is the default gateway. Only one of the attached networks (including the CloudServicesNetwork attachment) for a single machine may be specified as True.
def YKgL(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'DefaultGateway']]]: return qe4Y.get(YKHO, 'default_gateway')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HFa8(YKHO):\n return YKHO.mycam.devicemgmt.GetNetworkDefaultGateway()", "def Rr2J(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'host_network')", "def Rr2J(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'host_network')", "def eoCS(YKHO) -> bool:\n return qe4Y.get(YKHO, 'i...
[ "0.744197", "0.6640637", "0.6640637", "0.6558221", "0.6552503", "0.65128446", "0.6439725", "0.6419751", "0.63902265", "0.63709843", "0.6362668", "0.6353113", "0.6353113", "0.6353113", "0.6353113", "0.6353113", "0.63522243", "0.63522243", "0.6338229", "0.63246226", "0.62987757...
0.70065653
1
The CIDR notation IP ranges from which to assign pod IPs. One IPv4 CIDR is expected for singlestack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dualstack networking.
def xLtS(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'pod_cidrs')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iO7M(YKHO):\n LU8G = '1.2.3.0/29'\n YKHO.assertEqual(XN37.IPRange_to_CIDR('1.2.3.1', '1.2.3.6'), LU8G)", "def ZSea(YKHO):\n YKHO.assertEqual(XN37.IPRange_to_valid_CIDR('192.168.0.1', '192.168.0.1'), '192.168.0.1/32')", "def Kvj_(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['CidrBlockArgs']]]]:\n re...
[ "0.69213134", "0.6509432", "0.6485055", "0.6416659", "0.6383427", "0.6275349", "0.6215008", "0.61691546", "0.61691546", "0.6165547", "0.6165547", "0.6151937", "0.6151937", "0.6140444", "0.6137141", "0.6085426", "0.6034255", "0.6034255", "0.6029523", "0.6029523", "0.60244954",...
0.56541383
37
The CIDR notation IP ranges from which to assign service IPs. One IPv4 CIDR is expected for singlestack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dualstack networking.
def PG1V(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'service_cidrs')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iO7M(YKHO):\n LU8G = '1.2.3.0/29'\n YKHO.assertEqual(XN37.IPRange_to_CIDR('1.2.3.1', '1.2.3.6'), LU8G)", "def ZSea(YKHO):\n YKHO.assertEqual(XN37.IPRange_to_valid_CIDR('192.168.0.1', '192.168.0.1'), '192.168.0.1/32')", "def ayDk():\n c0Li = set()\n kNiI = vJxz()\n assert kNiI[1] == Sa_m.c...
[ "0.69322884", "0.6638506", "0.6506547", "0.63804156", "0.63671964", "0.6335973", "0.63259876", "0.6235901", "0.6220739", "0.61475664", "0.61475664", "0.6137279", "0.61196166", "0.61196166", "0.61068225", "0.61068225", "0.61068225", "0.60944986", "0.60944986", "0.6073921", "0....
0.53434247
84
The zone name used for this rack when created. Availability zones are used for workload placement.
def TUUx(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'availability_zone')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDFD(YKHO):\n return YKHO._zone_name", "def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')", "def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')", "def lhKE(YKHO) -> str:\n return YKHO._zone", "def TUUx(YKHO) -> str:\n return qe4Y.get(YKHO, 'availability_zone')", "def mWFP(YKHO...
[ "0.86514175", "0.7965059", "0.7965059", "0.7855363", "0.7630797", "0.75792885", "0.7411996", "0.74062717", "0.74062717", "0.74062717", "0.74062717", "0.74062717", "0.72066957", "0.7152893", "0.7061124", "0.70403683", "0.699829", "0.699829", "0.699829", "0.699829", "0.69966376...
0.67006844
25
The name used to identify this BGP peer for association with a BGP advertisement.
def mWFP(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO) -> str:\n return f'{YKHO._inst} NAT {YKHO._data['name']}'", "def sS_K(YKHO):\n return YKHO.socket_.getpeername()", "def mWFP(YKHO) -> str:\n return YKHO.proto.name", "def mWFP(YKHO):\n return '{} {}'.format(YKHO._device, YKHO._endpoint)", "def mWFP(YKHO):\n if YKHO._connection...
[ "0.70923233", "0.6996719", "0.69076204", "0.6845482", "0.68229395", "0.681331", "0.68045986", "0.67628646", "0.6761718", "0.6685379", "0.66760343", "0.66760343", "0.6657124", "0.6657124", "0.6657124", "0.6657124", "0.66568035", "0.66568035", "0.66568035", "0.66568035", "0.665...
0.0
-1
The requested BGP hold time value. This field uses ISO 8601 duration format, for example P1H.
def vfY6(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'hold_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AmNc(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'tunnel1_bgp_holdtime')", "def AmNc(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'tunnel1_bgp_holdtime')", "def Uol3(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'tunnel2_bgp_holdtime')", "def Uol3(YKHO) -> qe4Y.Output...
[ "0.7190525", "0.7165648", "0.6916809", "0.68365437", "0.60471535", "0.60471535", "0.60471535", "0.60471535", "0.60471535", "0.60471535", "0.5965024", "0.5961759", "0.59294677", "0.591647", "0.5907321", "0.5887086", "0.58652437", "0.5847005", "0.5846035", "0.58188975", "0.5812...
0.71254236
2
The autonomous system number used for the local end of the BGP session.
def sbu_(YKHO) -> h8nf[qe4Y.Input[float]]: return qe4Y.get(YKHO, 'my_asn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AoGC(YKHO):\n return Oz1B.SystemManagement(YKHO.client).get_system_id()", "def vCmE(YKHO) -> str:\n return YKHO._global_location_number", "def AoGC(YKHO):\n return YKHO.machine_config_file_value('DEFAULT.SID').strip('\"')", "def rnNN(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_num')", "de...
[ "0.6939995", "0.6800212", "0.6699619", "0.65231264", "0.65085757", "0.6452595", "0.6396762", "0.6343809", "0.6335389", "0.62596464", "0.6259106", "0.6225217", "0.6223208", "0.618804", "0.618804", "0.61858654", "0.61456835", "0.61274064", "0.61189073", "0.6106089", "0.6094671"...
0.0
-1
The serial number of the appliance.
def OIdI(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'serial_number')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OIdI(YKHO) -> str:\n return qe4Y.get(YKHO, 'serial_number')", "def OIdI(YKHO):\n return YKHO._serialno", "def OIdI(YKHO) -> str:\n return YKHO._serial_number", "def BxVF(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_serial_number')", "def BxVF(YKHO) -> str:\n return qe4Y.get(YKHO, 'devic...
[ "0.8364284", "0.82803714", "0.8252093", "0.8173306", "0.8173306", "0.8136962", "0.8123653", "0.8107577", "0.8106978", "0.8081181", "0.80658644", "0.7998559", "0.785562", "0.7841261", "0.7619393", "0.7583822", "0.7581711", "0.7581417", "0.74501884", "0.7421167", "0.741003", ...
0.74642634
19
Given two sparse vectors |a| and |b|, each represented as collections.defaultdict(float), return their dot product. You might find it useful to use sum() and a list comprehension. This function will be useful later for linear classifiers.
def uIxP(jzdc, Fg_i): bf9h = jzdc if len(jzdc) > len(Fg_i) else Fg_i return sum((jzdc[H5ew] * Fg_i[H5ew] for H5ew in bf9h))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BJ1H(jzdc, Fg_i):\n YAq3 = 0\n for G1Hx in Fg_i.keys():\n YAq3 += jzdc[G1Hx] * Fg_i[G1Hx]\n return YAq3", "def HovL(P1gU, yZ9o):\n iajq = {}\n for ZokF, Z6H0 in P1gU.items():\n for FhTw, nUaF in yZ9o.items():\n if ZokF == FhTw and ZokF not in iajq:\n iaj...
[ "0.79897726", "0.7936029", "0.78619874", "0.78544265", "0.7696974", "0.75309443", "0.7497966", "0.74440336", "0.7281937", "0.72047687", "0.71740055", "0.715717", "0.7147989", "0.7137717", "0.71276456", "0.71042067", "0.7037299", "0.69855773", "0.6981858", "0.69553447", "0.693...
0.83940524
0
Given two sparse vectors |v1| and |v2|, perform v1 += scale v2. This function will be useful later for linear classifiers.
def PdqR(jzdc, NXpY, Fg_i): bf9h = jzdc if len(jzdc) > len(Fg_i) else Fg_i for H5ew in bf9h: jzdc[H5ew] += NXpY * Fg_i[H5ew]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdqR(hQHm, NXpY, jlSq):\n for d6pt in jlSq:\n hQHm[d6pt] += jlSq[d6pt] * NXpY", "def PdqR(hQHm, NXpY, jlSq):\n for G1Hx in jlSq.keys():\n hQHm[G1Hx] += NXpY * jlSq[G1Hx]\n return hQHm", "def PdqR(hQHm, NXpY, jlSq):\n for sCA4 in jlSq:\n hQHm[sCA4] += NXpY * jlSq[sCA4]\n ...
[ "0.8318007", "0.8040623", "0.80171686", "0.7116045", "0.68097806", "0.64905167", "0.6356559", "0.6250385", "0.61549056", "0.61451995", "0.59310114", "0.5929396", "0.59202933", "0.58751816", "0.5873797", "0.5777656", "0.57702166", "0.5708213", "0.5627215", "0.56062645", "0.560...
0.726585
3
Splits the string |text| by whitespace and returns the set of words that occur exactly once. You might find it useful to use collections.defaultdict(int).
def HhX6(l5Ny): return {yzQ0 for yzQ0 in l5Ny.split() if l5Ny.count(yzQ0) == 1}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HhX6(l5Ny):\n ewCu = g760.Counter(l5Ny.split(' '))\n return set((H5ew for H5ew in ewCu if ewCu[H5ew] == 1))", "def t7hl(l5Ny):\n V22M = {}\n l5Ny = ' '.join(l5Ny.split())\n for GIN8 in l5Ny.split(' '):\n if GIN8 in V22M:\n V22M[GIN8] += 1\n else:\n V22M[GIN8...
[ "0.8278977", "0.69614375", "0.68882203", "0.6812349", "0.679617", "0.6742889", "0.6727086", "0.6712202", "0.6699072", "0.66925263", "0.66868424", "0.6673909", "0.6670333", "0.66697", "0.66584605", "0.6615145", "0.66092306", "0.6587535", "0.65564215", "0.6549852", "0.6549759",...
0.81265616
1
Destroy the driver session. This function is called everytime a driver instance is destroyed This is a good place to close any open sessions, finish writing to log files
def HySU(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x9p9(YKHO):\n YKHO.driver.close()", "def duMC():\n if nS8u:\n RKD7.msg_debug('[{driver}] dispose'.format(driver=nS8u.get_name()))\n nS8u.dispose()", "def fFx9(YKHO):\n YKHO.session.close()", "def WoCN(YKHO):\n YKHO.session.close()", "def HySU(YKHO):\n\n async def close_sess...
[ "0.7169286", "0.70526034", "0.68742615", "0.6821676", "0.6750532", "0.6714746", "0.6690324", "0.6690324", "0.6690324", "0.66829705", "0.6568068", "0.6536267", "0.6533049", "0.6510136", "0.6429853", "0.64173555", "0.64154327", "0.6413506", "0.64073646", "0.6392621", "0.6375012...
0.0
-1
Gets the schedule_type of this OneOffSchedule.
def zwpN(YKHO): return YKHO._schedule_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zwpN(YKHO, zwpN):\n BbPm = ['one_off']\n if zwpN not in BbPm:\n raise ValueError('Invalid value for `schedule_type` ({0}), must be one of {1}'.format(zwpN, BbPm))\n YKHO._schedule_type = zwpN", "def zwpN(YKHO, zwpN):\n YKHO._schedule_type = zwpN", "def zwpN(YKHO, zwpN):\n YKHO._schedu...
[ "0.7260141", "0.6596978", "0.6596978", "0.6293652", "0.62636197", "0.62636197", "0.62465614", "0.6226899", "0.618448", "0.618448", "0.6148312", "0.6140172", "0.6110091", "0.6082713", "0.60616225", "0.6059399", "0.6037836", "0.602941", "0.59962916", "0.59962916", "0.59962916",...
0.86846936
0
Gets the datetime of this OneOffSchedule.
def qcWV(YKHO): return YKHO._datetime
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dT5f(YKHO) -> oH5k:\n return YKHO._event_date_time", "def qcWV(YKHO):\n ITS7 = YKHO.time()\n if ITS7 is None or ITS7 < 0 or ITS7 >= 24:\n ITS7 = 0\n try:\n Csk6 = qcWV(YKHO.year(), YKHO.month(), YKHO.day()) + fCoM(hours=ITS7)\n return Csk6\n except:\n return", "as...
[ "0.7098529", "0.6969873", "0.69363016", "0.6924966", "0.68183374", "0.67878836", "0.6724136", "0.6648011", "0.664179", "0.6597222", "0.65893817", "0.6551962", "0.64952725", "0.6487474", "0.6454161", "0.6356609", "0.6318833", "0.63096976", "0.6304221", "0.6301678", "0.6299658"...
0.6442802
15
Parses an Order object from a dict.
def jG8h(Emd4, chwN: dict): chwN = chwN.get('order') or chwN iQG7 = Q0Ie(chwN.get('underlying-symbol')) or Q0Ie(chwN.get('symbol')) iQG7.order_id = chwN.get('id') iQG7.ticker = chwN.get('underlying-symbol') iQG7.price = ZjSO(chwN.get('price', 0)) iQG7.fill_price = ZjSO('0') YaLB = chwN.get('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, hzQh):\n YKHO.order_ref = hzQh['order_ref']\n YKHO.error_status_code = hzQh.get('error_status_code', None)\n YKHO.error_reason = hzQh.get('error_reason', None)\n YKHO.status = hzQh.get('status')\n YKHO.created = TsP8.parse_isotime(hzQh['created'])\n if hzQh.get('updated') is not No...
[ "0.6243378", "0.62318933", "0.612554", "0.5924327", "0.5870051", "0.5830886", "0.566187", "0.566058", "0.5648474", "0.56413156", "0.5634562", "0.56046015", "0.56017107", "0.55989605", "0.55989605", "0.55989605", "0.55989605", "0.55989605", "0.55989605", "0.55989605", "0.55989...
0.7010817
0
returns the value of the workspace config file key
def eNbn(YKHO, type, WmM4=False): if WmM4: return YKHO.workspace['defaultconfig'].get(type.lower(), '1') else: return YKHO.workspace['config'].get(type.lower(), '1')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(YKHO):\n return jYL9().config.config[YKHO.key]", "def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)", "def egFI(YKHO, H5ew):\n return YKHO.config[H5ew]", "def Nu1S(YKHO):\n return YKHO[ByCR]", "def tgzD(YKHO, H5ew):\n return getattr(YKHO.args, 'conf.{}'.format(H5ew))", "def tgz...
[ "0.71295583", "0.7006758", "0.6915561", "0.6899579", "0.6882351", "0.6881114", "0.6864473", "0.6769067", "0.6727689", "0.67199653", "0.66504306", "0.66496414", "0.66153854", "0.6596235", "0.65934736", "0.6584219", "0.6567552", "0.64775604", "0.64714843", "0.646878", "0.645208...
0.64319813
21
Generate a random string of fixed length
def TJC9(FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.8680464", "0.8573714", "0.85486245", "0.85297275", "0.85209286", "0.84331024", "0.8432044", "0.84157014", "0.84120053", "0.8389201", "0.8345882", "0.8343962", "0.83406156", "0.83348686", "0.83240855", "0.82986933", "0.82911193", "0.8281826", "0.82818025", "0.82811046", "0....
0.7761017
96
RegistrationImagePullSpec represents the desired image configuration of registration agent.
def FFEm(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'registration_image_pull_spec')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d28x(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'work_image_pull_spec')", "def XyC0(YKHO):\n if not YKHO.spec.get('image'):\n try:\n YKHO.spec['image'] = YKHO._get_image_from_artifact()\n except (AttributeError, KeyError) as err:\n raise LookupError(f'Co...
[ "0.6318446", "0.54857177", "0.52429855", "0.5099131", "0.50834256", "0.50218844", "0.4953229", "0.4949375", "0.4799141", "0.47875062", "0.47818193", "0.47730651", "0.47730651", "0.47680163", "0.47552583", "0.47301877", "0.4715091", "0.4711834", "0.46983433", "0.46658581", "0....
0.8002439
0
Status represents the current status of Klusterlet agent.
def FIMM(Ro_8, *, iPqd: Optional[pulumi.Input[Sequence[pulumi.Input['KlusterletStatusConditionsArgs']]]]=None, rx1V: Optional[pulumi.Input[Sequence[pulumi.Input['KlusterletStatusGenerationsArgs']]]]=None, Jpb9: Optional[pulumi.Input[int]]=None, Mv1z: Optional[pulumi.Input[Sequence[pulumi.Input['KlusterletStatusRelatedR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n return pIqh[YKHO._get_property_(YKHO.STATUS).upper()]", "def VLTN(YKHO):\n return DwjM(started_at=YKHO.started_at, version=YKHO.version)", "def jGRS(YKHO):\n return O6qs[YKHO.fields['status']]", "def jGRS(YKHO) -> EloR:\n return YKHO._status", "def jGRS(YKHO):\n return YKHO...
[ "0.7328856", "0.7316085", "0.7275613", "0.7219902", "0.7214967", "0.71590734", "0.7158682", "0.7115309", "0.7115309", "0.71080256", "0.71064615", "0.71036196", "0.71036196", "0.71036196", "0.71036196", "0.71036196", "0.71036196", "0.71036196", "0.71036196", "0.71036196", "0.7...
0.0
-1
lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
def Q1wy(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'last_transition_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1wy(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'last_transition_time')", "def jSYJ(YKHO) -> laHg.Optional[lTJ4.core.Duration]:\n return YKHO._values.get('transition_after')", "def Uizo(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_state_time')", "def jSYJ(YKHO) -> lTJ4.core.Duration:...
[ "0.70149565", "0.5981621", "0.5935536", "0.5904527", "0.58912814", "0.5792327", "0.5686002", "0.56083184", "0.55555457", "0.55385876", "0.55342925", "0.55137813", "0.54497457", "0.5429167", "0.5319993", "0.5315681", "0.53137445", "0.5277426", "0.52419823", "0.5234218", "0.519...
0.69102573
1
Computes distance matrix between elements of X and Y, using metric. Returns 2D array distance, where distance[i, j] = metric(X[i], Y[j]).
def yfx6(EcVT, fuBA, AcYW): Ayfi = oyIN.zeros((len(EcVT), len(fuBA))) for YRbF in range(len(EcVT)): for r845 in range(len(fuBA)): r8hN = AcYW(EcVT[YRbF], fuBA[r845]) if oyIN.isnan(r8hN): NI4b.set_trace() Ayfi[YRbF, r845] = r8hN return Ayfi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OZyv(lULz, ChBB, AcYW='euclidean'):\n assert isinstance(lULz, ht2j.Tensor)\n assert isinstance(ChBB, ht2j.Tensor)\n assert lULz.dim() == 2, 'Expected 2-D tensor, but got {}-D'.format(lULz.dim())\n assert ChBB.dim() == 2, 'Expected 2-D tensor, but got {}-D'.format(ChBB.dim())\n assert lULz.size(1...
[ "0.69461244", "0.69033325", "0.6775763", "0.6745622", "0.66243005", "0.6493876", "0.6477413", "0.6387066", "0.624647", "0.62444335", "0.6234725", "0.6234043", "0.62154067", "0.6178447", "0.6163099", "0.61206436", "0.61085975", "0.60905504", "0.6081324", "0.6065764", "0.605593...
0.80443424
0
Computes square of arc length metric (the geodesic) between points Y1 and Y2 on Grassmann manifold. Refer to [1] section 6.4.
def mEHU(OJuM, Fh7c): assert OJuM.shape == Fh7c.shape KCHu = Zxt2.linalg.svdvals(OJuM.transpose() @ Fh7c) KCHu[oyIN.isclose(KCHu, 1)] = 1 KCHu[oyIN.isclose(KCHu, -1)] = -1 q7In = oyIN.arccos(KCHu) return (q7In ** 2).sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gu_p(OJuM, Fh7c):\n _kx1, bGrB = oLG2.linalg.qr(OJuM)\n dQGw, bGrB = oLG2.linalg.qr(Fh7c)\n bGrB, WTkW, bGrB = oLG2.linalg.svd(_kx1.T @ dQGw)\n WTkW = oLG2.round(WTkW, decimals=6)\n return oLG2.linalg.norm(oLG2.arccos(WTkW))", "def sjJA(o4D3, si3g, ajwV, skBL):\n Ayfi = oyIN.sqrt((ajwV - o4...
[ "0.6776398", "0.6689561", "0.6462521", "0.6340689", "0.6311694", "0.62765586", "0.6196412", "0.6194886", "0.61760753", "0.61616045", "0.6159071", "0.6117396", "0.6077475", "0.6072009", "0.6069676", "0.60164106", "0.60024905", "0.6002284", "0.6002283", "0.60002023", "0.5997894...
0.7563943
0
Adds an edge from x to y.
def F1KG(YKHO, WKvO, LVAh): YKHO._dictOut[WKvO].append(LVAh) YKHO._dictIn[LVAh].append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F1KG(YKHO, WKvO, LVAh):\n YKHO._dictOut[WKvO].append(LVAh)\n YKHO._dictIn[LVAh].append(WKvO)", "def F1KG(YKHO, WKvO, LVAh):\n YKHO._dict[WKvO].append(LVAh)", "def F1KG(YKHO, WKvO, LVAh):\n YKHO._matr[WKvO][LVAh] = True", "def F1KG(YKHO, WKvO, LVAh):\n YKHO.matr[WKvO][LVAh] = True\n YKHO...
[ "0.8612095", "0.8502274", "0.79762065", "0.76878595", "0.76740915", "0.7508194", "0.7498055", "0.745225", "0.7385579", "0.7355833", "0.734631", "0.7339625", "0.7334341", "0.7323005", "0.728338", "0.72663236", "0.72342396", "0.72261655", "0.7208663", "0.71908885", "0.71426624"...
0.8675201
0
Initialize the Mask class Mask.data will be generated as per the original_array_shape, and custom_data (if provided)
def FIMM(YKHO, D47W, Plza, vQkc=lambda WKvO: WKvO, bWOC=None): YKHO.shape = D47W YKHO.func_true = Plza YKHO.func_false = vQkc YKHO.data = YKHO.init_data() if not bWOC is None: YKHO.set_data(bWOC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, gGnb, ROpF):\n YKHO.samples = gGnb\n YKHO.shape = ROpF\n YKHO._mask = ICSA(YKHO.samples, YKHO.shape)", "def FIMM(YKHO, ezWE, *qIxc, **c_sp):\n YKHO.set_array(ezWE, **c_sp)\n if c_sp.get('exclude', None) == 'largest':\n YKHO.exclude_largest()", "def FIMM(YKHO, *qIxc, **B2fa)...
[ "0.6785546", "0.6511113", "0.6455427", "0.6340733", "0.63406205", "0.63138807", "0.6095937", "0.60900503", "0.60002846", "0.5940314", "0.5911983", "0.5887431", "0.5842693", "0.5777551", "0.575434", "0.5754104", "0.5722479", "0.5689268", "0.5662555", "0.5660422", "0.5656624", ...
0.79263777
0
Called with a list of inputs from the model, returns (state, reward, terminal).
def eVJO(YKHO, uBiB): YKHO.state = {'heat_cost': uBiB[0], 'set_temp': uBiB[1], 'room_temp': uBiB[2], 'room_temp_change': uBiB[3], 'outside_temp': uBiB[4], 'outside_temp_change': uBiB[5]} MtRo = epAf.fabs(YKHO.state['set_temp'] - YKHO.state['room_temp']) k7Ol = pow(MtRo, 0.4) xLMz = k7Ol / 1.32 YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tRiF():\n g4y1 = ZylS.placeholder(ZylS.int32, shape=[None, None], name='input')\n x6A0 = ZylS.placeholder(ZylS.int32, shape=[None, None], name='targets')\n fqnS = ZylS.placeholder(ZylS.float32, name='learning_rate')\n sMyr = ZylS.placeholder(ZylS.float32, name='keep_prob')\n rYZW = ZylS.placehol...
[ "0.6193667", "0.6178104", "0.6064196", "0.6002623", "0.59728706", "0.5850324", "0.58187944", "0.5806909", "0.58028775", "0.5789478", "0.5779858", "0.577571", "0.5727892", "0.5727207", "0.56806105", "0.5603766", "0.55893844", "0.5573486", "0.5563018", "0.55627656", "0.5546897"...
0.6711488
0
Called with a dictionary of actions from the brain, returns an ordered list of outputs for the simulation model.
def hXJZ(YKHO, u_ln): OFuV = [] if u_ln is not None: YKHO.action = u_ln OFuV = [u_ln['heater_on']] return OFuV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xASv(YKHO):\n return oyIN.array([r8hN['actions'] for r8hN in YKHO.model_outs], dtype=oyIN.int32)", "def hlel(YKHO):\n DBcx = []\n for YRbF in YKHO.actions:\n DBcx.append(YRbF.output())\n return {'delay': YKHO.delay, 'actions': DBcx}", "def YPaw(YKHO, xASv):\n assert len(xASv) == len(Y...
[ "0.6593974", "0.6293566", "0.6111177", "0.600559", "0.600056", "0.5958693", "0.5910888", "0.5870965", "0.5848498", "0.5848498", "0.58112115", "0.5771501", "0.5762106", "0.5755059", "0.5751727", "0.5731879", "0.5714606", "0.5714606", "0.56925684", "0.5670099", "0.56687963", ...
0.5620848
26
swipes the grid up, doing all the necessary additions uses swipeBase
def s_mV(YKHO): YKHO.grid = YKHO.swipeBase()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roYL(YKHO):\n YKHO.swipe_sub(WAce[0])", "def Hiaj(YKHO):\n z2tq = rApN(oyIN.rot90(oyIN.rot90(YKHO.grid)))\n YKHO.grid = oyIN.rot90(oyIN.rot90(z2tq.swipeBase()))", "def zsem(YKHO):\n YKHO.mainGrid.moveUp()", "def roYL(YKHO):\n YKHO.driver.swipe(start_x=YKHO.x_cord, start_y=YKHO.start_y, end...
[ "0.78050476", "0.7796098", "0.7674124", "0.72863257", "0.7126566", "0.70800215", "0.70436424", "0.6945877", "0.66380847", "0.6577486", "0.6572682", "0.64261186", "0.6415143", "0.6410049", "0.63407093", "0.63305897", "0.62838095", "0.6237828", "0.6189507", "0.6181719", "0.6150...
0.9074098
0
Tests whether the index page can be accessed
def QJXU(YKHO): geh0 = YKHO.client.get(gxEw('index')) YKHO.assertEquals(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gdpv(Mkmy):\n Z9JV = rKuS(Mkmy.text, 'lxml')\n sdCG = Z9JV.find('h1')\n if sdCG != None and sdCG.string != None and ('Index of ' in sdCG.string):\n return \"Shows 'Index Of' page ✘\"\n else:\n return 'Displays properly ✓'", "def riSZ(YKHO, d6pt):\n qv1X = G4JS.head(TDhU(YKHO.base...
[ "0.68998194", "0.689753", "0.68859845", "0.6789309", "0.66911316", "0.6663339", "0.66396004", "0.6616655", "0.66040295", "0.6595182", "0.6570997", "0.65204287", "0.64947116", "0.6445904", "0.6444932", "0.6444824", "0.6411991", "0.63396895", "0.6333266", "0.6318787", "0.630055...
0.61971635
23
Returns the image resizer config from a model config.
def sgut(dyeT): P7zl = dyeT.WhichOneof('model') dHps = getattr(dyeT, P7zl) if hasattr(dHps, 'image_resizer'): return getattr(dHps, 'image_resizer') else: raise ValueError('{} has no image_reszier_config'.format(P7zl))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kb6Q(xUE2: mmcv.Config, xkjI: Sequence[Union[str, np.ndarray]], GhuM: Optional[Sequence[int]]=None):\n _Fei = xUE2.deepcopy()\n if isinstance(xkjI[0], str):\n if _Fei.data.test.pipeline[0]['type'] != 'LoadImageFromFile':\n _Fei.data.test.pipeline.insert(0, dict(type='LoadImageFromFile')...
[ "0.60294944", "0.594613", "0.5925681", "0.57445836", "0.5612447", "0.5579079", "0.5547045", "0.5475008", "0.5456308", "0.5419105", "0.54103", "0.5399768", "0.53898", "0.5361926", "0.53441256", "0.5341895", "0.5334842", "0.53155756", "0.52866197", "0.5278676", "0.5272199", "...
0.8050628
0
Returns context feature length from a given config.
def _Fal(dyeT): P7zl = dyeT.WhichOneof('model') dHps = getattr(dyeT, P7zl) if hasattr(dHps, 'context_config'): return dHps.context_config.context_feature_length
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MdJW(dyeT):\n P7zl = dyeT.WhichOneof('model')\n dHps = getattr(dyeT, P7zl)\n if hasattr(dHps, 'context_config'):\n return dHps.context_config.max_num_context_features", "def EIUd(YKHO):\n return YKHO.context_length", "def Zf6Y(N5qa):\n assert N5qa\n o8Kj = ['bytes_list', 'float_lis...
[ "0.6964804", "0.66571206", "0.6149475", "0.6123576", "0.6027014", "0.5959131", "0.59561056", "0.5899251", "0.58841527", "0.58509576", "0.5828792", "0.5776238", "0.57703346", "0.57114846", "0.57095", "0.56946087", "0.5666238", "0.5610539", "0.5604237", "0.5601883", "0.5588737"...
0.8101928
0
Set `fine_tune_checkpoint_type` using `from_detection_checkpoint`. `train_config.from_detection_checkpoint` field is deprecated. For backward compatibility, this function sets `train_config.fine_tune_checkpoint_type` based on `train_config.from_detection_checkpoint`.
def NFtP(ynwe): if not ynwe.fine_tune_checkpoint_type: if ynwe.from_detection_checkpoint: ynwe.fine_tune_checkpoint_type = 'detection' else: ynwe.fine_tune_checkpoint_type = 'classification'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pgo2(X7OI, GbxD):\n b32v = TY_G(X7OI)\n b32v['train_config'].fine_tune_checkpoint = ''\n b32v['train_config'].load_all_detection_checkpoint_vars = False\n k1oc = VxUA(b32v)\n with ZylS.gfile.Open(GbxD, 'wb') as eHNT:\n eHNT.write(C5Bg.MessageToString(k1oc))", "def mU5Q(YKHO, mS7Q='detec...
[ "0.5988169", "0.591557", "0.5634792", "0.52783686", "0.51746285", "0.5104157", "0.50546634", "0.5048067", "0.50222886", "0.49668902", "0.4918989", "0.49108595", "0.48470035", "0.4846288", "0.48412624", "0.4808448", "0.47779784", "0.47637227", "0.4740438", "0.47097805", "0.467...
0.87784946
0
Returns the learning rate type for training.
def tibb(GmcC): return GmcC.learning_rate.WhichOneof('learning_rate')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AxUY(YKHO, b0Ix):\n try:\n return jtbG[b0Ix]\n except KeyError:\n raise ValueError('learning rate %s is not supported. ' % b0Ix)", "def NkTt():\n return 1e-05", "def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr", "def NkTt(tttX):\n ma4o = tttX.initial_lr\n...
[ "0.8056266", "0.72972107", "0.7276959", "0.7065693", "0.7058839", "0.694395", "0.69130206", "0.68767875", "0.68767875", "0.6702439", "0.66374516", "0.6574738", "0.65732837", "0.6513989", "0.649564", "0.6482941", "0.6319623", "0.63023674", "0.629083", "0.61754227", "0.61754227...
0.8020855
1
Updates `configs` to reflect the new initial learning rate. This function updates the initial learning rate. For learning rate schedules, all other defined learning rates in the pipeline config are scaled to maintain their same ratio with the initial learning rate. The configs dictionary is updated in place, and hence ...
def L4GT(b32v, b0Ix): ulZ5 = twDt(b32v['train_config']) if ulZ5 == 'rms_prop_optimizer': GmcC = b32v['train_config'].optimizer.rms_prop_optimizer elif ulZ5 == 'momentum_optimizer': GmcC = b32v['train_config'].optimizer.momentum_optimizer elif ulZ5 == 'adam_optimizer': GmcC = b32v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO) -> None:\n K0do = list(YKHO.optimizers.values())[0]\n ABvy = K0do.param_groups[0]['lr']\n for mWFP, IesV in YKHO.schedulers.items():\n if mWFP == 'generator' and YKHO.opt.generator_scheduler_name == 'plateau':\n IesV.step(YKHO.metric)\n elif mWFP == 'discriminator' ...
[ "0.6816427", "0.6799031", "0.664777", "0.6629371", "0.6605509", "0.6550398", "0.64980674", "0.649182", "0.64881283", "0.64878196", "0.64878196", "0.6451124", "0.6420417", "0.63502395", "0.63321024", "0.6326059", "0.6323389", "0.6253907", "0.62462264", "0.62373996", "0.6233594...
0.80349046
0
Updates `configs` to reflect the new momentum value. Momentum is only supported for RMSPropOptimizer and MomentumOptimizer. For any other optimizer, no changes take place. The configs dictionary is updated in place, and hence not returned.
def IKfT(b32v, H0zq): ulZ5 = twDt(b32v['train_config']) if ulZ5 == 'rms_prop_optimizer': GmcC = b32v['train_config'].optimizer.rms_prop_optimizer elif ulZ5 == 'momentum_optimizer': GmcC = b32v['train_config'].optimizer.momentum_optimizer else: raise TypeError('Optimizer type must...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xziT(YKHO, NArs, vtNT, b0Ix=0.001, r8hN=0.9, EjHI=True):\n Vhxs = []\n tspZ = b0Ix * (1 - r8hN)\n for xqoZ, Ro40 in zip(NArs, vtNT):\n zNig = xqoZ.eval().shape\n Ty9i = e89i.shared(value=oyIN.zeros(zNig, aaiq), name='v_0')\n jZ6p = r8hN * Ty9i - tspZ * Ro40\n Vhxs.append((T...
[ "0.6578104", "0.6225441", "0.6114929", "0.6101765", "0.5954882", "0.57930183", "0.579052", "0.5682142", "0.5632357", "0.55270505", "0.5457266", "0.54440874", "0.54411983", "0.5434013", "0.54293686", "0.54259527", "0.5425167", "0.5412457", "0.5396711", "0.537815", "0.53602463"...
0.80600595
0
Updates the alpha value for a sigmoid focal loss. The configs dictionary is updated in place, and hence not returned.
def dp4f(b32v, Cwt5): Z_TN = PZZf(b32v['model']) F_3j = Z_TN.WhichOneof('classification_loss') if F_3j != 'weighted_sigmoid_focal': raise TypeError('Classification loss must be `weighted_sigmoid_focal`.') Z_TN.weighted_sigmoid_focal.alpha = Cwt5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJgB(C3ST):\n jzdc = C3ST.params.alpha_prior[0]\n Fg_i = C3ST.params.alpha_prior[1]\n g99O = C3ST.params.alpha\n yWWc = C3ST.feat_alloc_dist.log_p(C3ST.params)\n hjGX = Zxt2.stats.gamma.rvs(jzdc, scale=1 / Fg_i)\n C3ST.params.alpha = hjGX\n J8QN = C3ST.feat_alloc_dist.log_p(C3ST.params)\n ...
[ "0.6529631", "0.61519325", "0.6029736", "0.60168636", "0.59633136", "0.59588414", "0.5887104", "0.5808794", "0.5799448", "0.5719935", "0.56112444", "0.559655", "0.5546288", "0.55332357", "0.55277425", "0.55191064", "0.5507267", "0.54913545", "0.5480239", "0.547167", "0.546444...
0.7999063
0
Updates the mask type for both train and eval input readers. The configs dictionary is updated in place, and hence not returned.
def JJ4I(b32v, mZyh): b32v['train_input_config'].mask_type = mZyh weuS(b32v, 'mask_type', mZyh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmrP(YKHO, oGem):\n YKHO.masks = oGem", "def kopU(YKHO, ZHfW):\n qfWR = YKHO.general_mask\n l0Pg = qfWR | ZHfW\n YKHO.mask = l0Pg\n YKHO.weights, YKHO.weights_k_idx = YKHO.compute_weights()\n return", "def pPNN(YKHO, __n6):\n jCk5 = YKHO.masker or __n6.masker\n kWt4 = jCk5.mask_img ...
[ "0.5966109", "0.58070683", "0.5470127", "0.5455038", "0.53965545", "0.53135103", "0.52476937", "0.5243227", "0.5196084", "0.5152018", "0.51418567", "0.51083547", "0.5096416", "0.5093743", "0.5085546", "0.5029471", "0.50210595", "0.49997312", "0.49247557", "0.49134535", "0.486...
0.83371735
0
Returns True if both Lagrangemultiplier equations are satisfied, otherwise False. Assumes that the SVM has support vectors assigned, and that all training points have alpha values assigned.
def oow1(gqM8): Ou9e = 0 voFY = [0] * len(gqM8.training_points[0]) for AU8u in gqM8.training_points: Ou9e += AU8u.classification * AU8u.alpha voFY = JsGA(voFY, ywW_(AU8u.classification * AU8u.alpha, AU8u)) return Ou9e is 0 and voFY[0] == gqM8.w[0] and (voFY[1] == gqM8.w[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGVO(YKHO):\n RgFN = (YKHO.mean_v > 0) & (YKHO.kappa_y > 0) & (YKHO.eta_y > 0)\n Kz6I = (YKHO.kappa_s > 0) & (YKHO.eta_s > 0)\n return RgFN & Kz6I & YKHO.feller()", "def hPUO(YKHO):\n aMhn = -0.5 * oyIN.dot(YKHO.beta, YKHO.beta) + oyIN.sum(YKHO.alpha)\n HtrV = 0.5 * oyIN.dot(YKHO.beta, YKHO.be...
[ "0.59937245", "0.593901", "0.5932015", "0.5779008", "0.5715306", "0.5698764", "0.56018597", "0.5597762", "0.5557452", "0.5547293", "0.5547293", "0.538162", "0.5339759", "0.5329457", "0.5315115", "0.52876365", "0.52803653", "0.5273876", "0.5243224", "0.52388996", "0.5229508", ...
0.6750873
0
Turn the name of the months to digit and replace '' for '/'
def Qbx1(uvWR): uvWR = str(uvWR) JiwQ = {'Jan': '01', 'Feb': '02', 'Mar': '03', 'Apr': '04', 'May': '05', 'Jun': '06', 'Jul': '07', 'Aug': '08', 'Sep': '09', 'Oct': '10', 'Nov': '11', 'Dec': '12'} uvWR = uvWR.strip() for H5ew, BWXx in JiwQ.items(): if H5ew in uvWR: uvWR = uvWR.replac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gC1g(UzPC):\n x6Q1(connection=UzPC, regexp='^[0-9]{1}/[0-9]{1,2}/[0-9]{4}$', new_value=\"CONCAT('0', cav.attribute_value)\")", "def cwGe(x0eS):\n qXEg = 'janvfévrmarsavr-mai-juinjuilaoûtseptoct-nov-déc-'\n UVnF = ZbWC.search(x0eS.lower(), qXEg.lower())\n if UVnF:\n dBdQ = (UVnF.start() + 4...
[ "0.6841", "0.6613696", "0.6563913", "0.65165746", "0.648298", "0.6474837", "0.6448772", "0.6387334", "0.6309783", "0.6239595", "0.61963564", "0.61556846", "0.61148554", "0.6109956", "0.6084492", "0.60648817", "0.60528", "0.6032835", "0.6021555", "0.60186285", "0.5991653", "...
0.5465322
48
Return the last four digits for the value taken if this value have 4 or more characters
def vU4U(uvWR): if len(uvWR) >= 4: return uvWR[-4:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MkhY(YKHO):\n ZHfW = '*' * (len(YKHO.account_number) - 4)\n return '{0}{1}'.format(ZHfW, YKHO.account_number[-4:])", "def MkhY(YKHO):\n ZHfW = '*' * (len(YKHO.card_number) - 4)\n return '{0}{1}'.format(ZHfW, YKHO.card_number[-4:])", "def iDyv(Q6uT):\n Q6uT = Q6uT[4:-4:2]\n return Q6uT", ...
[ "0.6630878", "0.6569092", "0.644805", "0.6381354", "0.6300672", "0.61117744", "0.60528576", "0.60273254", "0.5840331", "0.58130133", "0.58119303", "0.57729733", "0.57670254", "0.5761941", "0.5757561", "0.566354", "0.56413174", "0.5640264", "0.5597648", "0.5550996", "0.5537658...
0.0
-1
Return the value of the state (computed in __init__).
def UnfG(YKHO, QTBn): return YKHO.values[QTBn]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO, QTBn):\n raise NotImplementedError", "def BWXx(YKHO, QTBn):\n raise NotImplementedError", "def BWXx(YKHO, QTBn):\n raise NotImplementedError", "def UnfG(YKHO, QTBn):\n gnPz.raiseNotDefined()", "def UnfG(YKHO, QTBn):\n gnPz.raiseNotDefined()", "def BWXx(YKHO, QTBn):\n retu...
[ "0.83014333", "0.83014333", "0.826012", "0.8086146", "0.8086146", "0.79581815", "0.79296756", "0.78013283", "0.77367806", "0.77336967", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", ...
0.77333474
17
Recursively find subclasses of this metric. If ``include_parents`` is passed as ``True``, intermediate child classes that also have subclasses will be included. Otherwise, only classes without subclasses will be included to ensure that they are final implementations and are ready to be run on data.
def TPXT(Emd4, hxOS=False): Hh7E = dict() for aUGN in Emd4.__subclasses__(): k2sj = aUGN.get_subclasses(hxOS) Hh7E.update(k2sj) if hxOS or not k2sj: Hh7E[aUGN.__name__] = aUGN return Hh7E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sXxB(_AKB: type, cPQ9=False) -> a1PO.List[type]:\n YRbF: int = 0\n tYwp = _AKB.__subclasses__()\n while YRbF < len(tYwp):\n bplY = tYwp[YRbF].__subclasses__()\n for finE in bplY:\n if not finE in tYwp:\n tYwp.append(finE)\n YRbF += 1\n if cPQ9:\n ...
[ "0.60111946", "0.57195556", "0.5662616", "0.5614895", "0.54931945", "0.5479527", "0.5474378", "0.54728144", "0.5468871", "0.5458959", "0.5399118", "0.5377722", "0.5320709", "0.52882415", "0.52501714", "0.52459615", "0.524344", "0.5206847", "0.516989", "0.5165813", "0.5157036"...
0.6880257
0
Assemble a uri based on a base, any number of path segments, and query string parameters.
def j8eK(P8oC, *pmON, **xDcj): if P8oC and P8oC.endswith('/'): P8oC = P8oC[:-1] RI88 = [P8oC] pmON = '/'.join([''] + [_bVT(KCHu.strip('/')) for KCHu in pmON if KCHu is not None]) if pmON: RI88.append(pmON) NArs = [] for mWFP, BWXx in xDcj.items(): if type(BWXx) in (list, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S7hn(YKHO, poAq, NArs):\n if not NArs:\n return poAq\n else:\n F2ks = '?'\n for xqoZ in NArs:\n F2ks = F2ks + xqoZ + '&'\n F2ks = F2ks[:-1]\n j8eK = poAq + F2ks\n return j8eK", "def jNi7(P8oC: str, *PXIy, **xDcj) -> str:\n WDst = KVWQ(P8oC).geturl...
[ "0.81732285", "0.7680201", "0.6879778", "0.68686986", "0.6698369", "0.6584601", "0.64705807", "0.6420034", "0.6362892", "0.6343003", "0.63139135", "0.6288215", "0.6276257", "0.6271385", "0.6254617", "0.622278", "0.620622", "0.61182255", "0.60942173", "0.60766655", "0.6068355"...
0.75137776
2
Creates CSVs from the data for later use with pandas dataframes
def A5ou(Ux0P: str, MOPg: [str], nPrm: int, l5Ny: bool=False): pmON = Nq1b.TEST_DIR if not vtfo(pmON): okOq(pmON) with open(pmON + Ux0P + '.csv', 'w', newline='') as eHNT: q9mE = m6_J.writer(eHNT, delimiter=',', quoting=m6_J.QUOTE_NONE) q9mE.writerow(MOPg) q9mE.writerow(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _FRv(YKHO):\n try:\n rLdf.DataFrame(YKHO.data, columns=YKHO.header).to_csv(Hy7s.path.join(YKHO.file_path, YKHO.file_name), index=False)\n YKHO.successful_run = True\n except:\n raise", "def UlWi(nPrm: Tuple[DataFrame, str]) -> None:\n jQ3Z, cRRG = nPrm\n jQ3Z.to_csv(cRRG, ind...
[ "0.7477253", "0.69239384", "0.69205415", "0.6915719", "0.6792945", "0.67929024", "0.6778213", "0.67704344", "0.67091477", "0.66807485", "0.66199106", "0.6589445", "0.6556856", "0.65491366", "0.65468234", "0.6542499", "0.65200347", "0.6513843", "0.6510483", "0.65063345", "0.64...
0.0
-1
Mostly equivalent to `tf.layers.batch_normalization`, but different in
def SwZx(g4y1, jDK_=None, Y9ns=None, H0zq=0.9, _hZ2=1e-05, hgjH=True, NXpY=True, DNUD=ZylS.zeros_initializer(), rJNR=ZylS.ones_initializer(), GPaM=None, XjQn=False): ROpF = g4y1.get_shape().as_list() kvqa = len(ROpF) assert jDK_ is not None OaeV = fxxD() if Y9ns is None: Y9ns = OaeV.is_train...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def idFg(g4y1, Y9ns, wH3T):\n return ZylS.compat.v1.layers.batch_normalization(inputs=g4y1, axis=1 if wH3T == 'channels_first' else 3, momentum=ddHF, epsilon=UCFg, center=True, scale=True, training=Y9ns, fused=True)", "def idFg(g4y1, Y9ns, wH3T):\n return ZylS.layers.batch_normalization(inputs=g4y1, axis=1...
[ "0.8122588", "0.8099415", "0.774626", "0.7725665", "0.76168764", "0.76080966", "0.75199896", "0.7475892", "0.73734915", "0.71194327", "0.7071137", "0.7012755", "0.6990438", "0.69761354", "0.69450647", "0.6938304", "0.6926858", "0.68831134", "0.6876203", "0.68547195", "0.68137...
0.6702433
27
Loads and sets OS environment variables from a local config file. This should only be called when locally developing, running tests, or setting remote SSM key/values. In production or CI all variables must be set in the OS environment or SSM and not loaded from a file.
def xEwA(Emd4, Ux0P, EtM5=None): zKTY = Emd4.open_local(Ux0P, stage=EtM5, for_env=True) for H5ew, BWXx in zKTY.items(): if BWXx is None: print('Environment variable: {0} has no value and will not be set.'.format(H5ew)) else: if isinstance(BWXx, bool): BWXx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f3RG():\n GikI = Fm8B.load_yaml(Hy7s.getenv('system_file', './system.yaml'))\n for H5ew in GikI:\n if H5ew in Hy7s.environ:\n GikI[H5ew] = Hy7s.getenv(H5ew)\n Fm8B.environment = GikI", "def LNY_(YKHO, EcTx=None, XLMv='default'):\n if EcTx:\n wvEv = kwpV.SafeConfigParser()...
[ "0.75161177", "0.6871498", "0.67835367", "0.666238", "0.6621201", "0.6416681", "0.64125293", "0.6361786", "0.62763596", "0.62480634", "0.62101126", "0.61866766", "0.6155675", "0.6153451", "0.6143233", "0.6044381", "0.60281247", "0.60082656", "0.5997749", "0.5995804", "0.59856...
0.6911676
1
Yields values in the form of 6n 1 and 6n + 1 until m
def NrUa(r8hN): if r8hN <= 2: return () if r8hN > 2: yield 2 if r8hN > 3: yield 3 for exwG in UHFx(1): WKvO = 6 * exwG - 1 LVAh = WKvO + 2 if WKvO < r8hN: yield WKvO else: break if LVAh < r8hN: yield LVAh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uOgj(exwG, r8hN):\n kk8n = int(epAf.ceil(1.0 * exwG / r8hN))\n for YRbF in range(kk8n):\n if (YRbF + 1) * r8hN > exwG:\n yield (YRbF, YRbF * r8hN, exwG)\n else:\n yield (YRbF, YRbF * r8hN, (YRbF + 1) * r8hN)", "def E823(exwG, r8hN):\n return [YRbF for YRbF in rang...
[ "0.7102037", "0.6725873", "0.66359276", "0.6604757", "0.6492092", "0.6469066", "0.64281946", "0.64185464", "0.64104176", "0.6374721", "0.6343013", "0.6330315", "0.6306338", "0.6288488", "0.6277879", "0.6273048", "0.61868757", "0.6164543", "0.6140324", "0.6134796", "0.6130589"...
0.7822665
0
This function will return a random datetime between two datetime objects.
def qzrO(yKcO, Os4s): RA_F = Os4s - yKcO lFaR = RA_F.days * 24 * 60 * 60 + RA_F.seconds ij4K = qukk(lFaR) return yKcO + fCoM(seconds=ij4K)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzrO(yKcO, Os4s):\n return yKcO + qcWV.timedelta(seconds=tuKI.randint(0, int((Os4s - yKcO).total_seconds())))", "def qzrO(yKcO, Os4s):\n RA_F = Os4s - yKcO\n lFaR = RA_F.days * 24 * 60 * 60 + RA_F.seconds\n ij4K = qukk(lFaR)\n return yKcO + fCoM(seconds=ij4K)", "def qzrO(yKcO, Os4s):\n RA...
[ "0.77918494", "0.75647223", "0.7562488", "0.754578", "0.75309545", "0.7405053", "0.7334951", "0.7235134", "0.7207752", "0.7169905", "0.6945745", "0.6864313", "0.67521274", "0.66044766", "0.6574501", "0.6525121", "0.6248982", "0.6201766", "0.6185233", "0.6137791", "0.60238856"...
0.7509593
9
Turn off the light.
async def async_turn_off(YKHO, **B2fa: Any) -> None: YKHO._device.light_on = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)", "def fnTm(YKHO):\n YKHO._light = 'OFF'", "def fnTm(YKHO):\n YKHO._light = 'OFF'", "def V8X5(YKHO):\n YKHO.turnOff()", "def Z_rv(YKHO, **B2fa):\n YKHO._light.set_color(0, 0, 0, 0)", "def Z_rv(YKHO, **B2fa: Any) -> None:\n YKHO._light.turn...
[ "0.9052932", "0.88391656", "0.8812152", "0.8755596", "0.87526155", "0.87362814", "0.8640198", "0.8629958", "0.8588046", "0.8578178", "0.8392005", "0.8388165", "0.8384779", "0.8298985", "0.8174446", "0.81200165", "0.8115888", "0.8092821", "0.8077324", "0.8018149", "0.79744524"...
0.83275425
13
Sets the reference_id of this DestinyHistoricalStatsActivity.
def OSJW(YKHO, OSJW): YKHO._reference_id = OSJW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jS4s(YKHO, OSJW):\n YKHO.reference_id = OSJW", "def ggGq(YKHO, *qIxc):\n return _VfD.ReferenceGlyph_setReferenceId(YKHO, *qIxc)", "def XIp1(YKHO, XIp1):\n YKHO._back_reference_schedule_id = XIp1", "def ggGq(YKHO, *qIxc):\n return _VfD.GeneralGlyph_setReferenceId(YKHO, *qIxc)", "def FTHf(YKH...
[ "0.6767242", "0.59480655", "0.5735632", "0.5572401", "0.5511492", "0.54443395", "0.54443395", "0.5355432", "0.52677155", "0.524701", "0.5236441", "0.5173001", "0.5121862", "0.5097602", "0.5095242", "0.5091717", "0.5085687", "0.5064169", "0.5064169", "0.5058637", "0.50510806",...
0.66640913
1
Sets the director_activity_hash of this DestinyHistoricalStatsActivity.
def r7Re(YKHO, r7Re): YKHO._director_activity_hash = r7Re
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lxX3(YKHO, lxX3):\n YKHO.logger.debug(\"In 'family_history' setter.\")\n YKHO._family_history = lxX3", "def rxHD(YKHO, rxHD):\n if rxHD is None:\n raise ValueError('Invalid value for `activity`, must not be `None`')\n YKHO._activity = rxHD", "def iNHP(YKHO, rxHD: Optional[ba.Activity]) -...
[ "0.5090065", "0.47781125", "0.4712268", "0.4687122", "0.4598562", "0.45637232", "0.45304593", "0.44935468", "0.44873667", "0.44500193", "0.444469", "0.4411477", "0.4340902", "0.42628583", "0.42392772", "0.42381778", "0.41884795", "0.4177731", "0.41641453", "0.41578785", "0.41...
0.83169967
0
Sets the instance_id of this DestinyHistoricalStatsActivity.
def o_gm(YKHO, o_gm): YKHO._instance_id = o_gm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOnp(YKHO, wOnp):\n YKHO._instance_identifier = wOnp", "def rpk7(YKHO, rpk7):\n YKHO._inst_id = rpk7", "def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR", "def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR", "def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR", "def WQJg(YKHO, KAOR):\n YKHO.instan...
[ "0.56492835", "0.5269083", "0.5161322", "0.5161322", "0.5161322", "0.5161322", "0.5161322", "0.5070406", "0.49877417", "0.49748638", "0.49360183", "0.4833145", "0.4821692", "0.47997922", "0.46660542", "0.46174517", "0.45736745", "0.45531002", "0.45029664", "0.44929352", "0.44...
0.66670316
0
Sets the membership_type of this DestinyHistoricalStatsActivity.
def MrYh(YKHO, MrYh): YKHO._membership_type = MrYh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zo7h(YKHO, Di2G, s_YF, PzUA):\n return YKHO.session.get_any('{base}{request_url}'.format(base=YKHO.servers[0], request_url=f'/Destiny2/{PzUA}/Account/{s_YF}/Character/{Di2G}/Stats/AggregateActivityStats/'))", "def zwpN(YKHO, zwpN):\n YKHO._schedule_type = zwpN", "def zwpN(YKHO, zwpN):\n YKHO._sche...
[ "0.5204672", "0.51588494", "0.51588494", "0.5042666", "0.49787784", "0.49787784", "0.49787784", "0.49787784", "0.49776423", "0.49776423", "0.4955811", "0.4941051", "0.48580316", "0.4844216", "0.4833119", "0.4833119", "0.4810788", "0.4781123", "0.47748965", "0.47434545", "0.47...
0.7605956
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, qkNV): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8457167", "0.8393036", "0.81455255", "0.8139734", "0.81333447", "0.8094964", "0.8093362", "0.8093362", "0.8093362", "0.80863476", "0.80863476", "0.8077286", "0.8077286", "0.806682" ]
0.0
-1
Gets information about a user access token issued by an app. See
def Ycmi(YKHO, eOtH, B7c0, n_Kh): qIxc = {'input_token': eOtH, 'access_token': '{0}|{1}'.format(B7c0, n_Kh)} return YKHO.request(YKHO.version + '/' + 'debug_token', args=qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cm3_():\n NArs = {'client_id': Z33s.facebook_app_id, 'client_secret': Z33s.facebook_app_secret, 'grant_type': 'client_credentials'}\n geh0 = T_2m(nyzt, NArs)\n eBiB = GrLd(geh0)\n if eBiB:\n Oh3u = eBiB.get('access_token')\n if Oh3u:\n eOtH = Oh3u[0]\n return eOt...
[ "0.7109115", "0.6923357", "0.67929345", "0.67442", "0.67276645", "0.6709723", "0.6675666", "0.6630756", "0.66193485", "0.6544326", "0.6527994", "0.65124136", "0.65063065", "0.65063065", "0.64997435", "0.64986104", "0.6487435", "0.6460451", "0.6441855", "0.6415378", "0.6389104...
0.0
-1
Greet when users are added to the conversation. Note that all channels do not send the conversation update activity. If you find that this bot works in the emulator, but does not in another channel the reason is most likely that the channel does not send this activity.
async def on_members_added_activity(YKHO, priF: [ChannelAccount], VAws: TurnContext): for mS46 in priF: if mS46.id != VAws.activity.recipient.id: Amyp = j8_G.list([]) gPn2 = mS46.name Ol8d = nmsT(type=ZG4O.message, attachments=[YKHO.__send_welcome_card(gPn2)]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F2nY(QdZT, QpfX):\n CBIr = QdZT.effective_user\n DVsZ = QdZT.effective_chat.id\n RKD7.info('ADD %s, %s, %s, %s', CBIr.username, CBIr.full_name, DVsZ, CBIr.language_code)\n QpfX.bot.send_message(chat_id=DVsZ, text=Z9rn.MSG_PHONE_QUERY, reply_markup=DMzw([[G1Hx.contact_keyboard]], one_time_keyboard=T...
[ "0.7068359", "0.70057225", "0.6858996", "0.6780166", "0.6748209", "0.66113174", "0.6536421", "0.63773024", "0.63518006", "0.63496226", "0.63485485", "0.6345151", "0.6332404", "0.63291174", "0.6293361", "0.6293361", "0.62612873", "0.6258905", "0.62540674", "0.62385076", "0.622...
0.6365125
8
custom nickname validation filtering special characters
def jgbH(YKHO, dP7V): for hcXw in dP7V: if not hcXw.isdigit() and (not hcXw.isalpha()): raise IyFz.ValidationError('Nickname contains characters that are not numbers nor letters.') return dP7V
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lKfQ(YKHO):\n nPrm = YKHO.cleaned_data['username']\n if '@' in nPrm or '|' in nPrm or ' ' in nPrm or ('+' in nPrm):\n raise H6V6.ValidationError(bGrB(u'Usernames should not have special characters.'))\n try:\n CBIr = mv1M.objects.get(username__exact=YKHO.cleaned_data['username'])\n ex...
[ "0.682574", "0.6810178", "0.6807157", "0.67931455", "0.67838424", "0.67394036", "0.66985106", "0.6654083", "0.6616751", "0.6597314", "0.65899456", "0.64442915", "0.6393189", "0.6384678", "0.637351", "0.63680464", "0.63429", "0.63187486", "0.62818134", "0.6255969", "0.62552875...
0.8190695
0
compute L2 regularization decay.
def UAk7(P1Hs, mVUw=0.01): XcU5 = pcdM(roles=[nrmK])(P1Hs.variables) qBEU = mVUw * KtDG(XcU5) return qBEU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QSId(YKHO):\n return YKHO.l2 * oyIN.linalg.norm(YKHO.weights) ** 2", "def UAk7(XcU5, jLje):\n N77f = jLje * oyIN.sum(XcU5 * XcU5)\n Ro40 = 2 * jLje * XcU5\n return (N77f, Ro40)", "def eVRK(IOR6, KxxS, Xsfr, VmU3):\n KxxS = ZylS.nn.l2_normalize(KxxS, axis=0)\n Ro40 = VmU3 * ZylS.matmul(Zyl...
[ "0.75687766", "0.7110183", "0.6971778", "0.69565564", "0.6902947", "0.67512697", "0.6749969", "0.67392", "0.66892654", "0.6673921", "0.6673921", "0.6673921", "0.6651605", "0.66264707", "0.6619406", "0.660533", "0.66044235", "0.65670925", "0.65476966", "0.6532875", "0.64752054...
0.7810511
0
Respond with 405 Method Not Allowed.
def l0LZ(YKHO): KeWr = 'Method Not Allowed: {0}'.format(YKHO.request.method) return YKHO.create_response(405, KeWr, body={'error': KeWr})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GJv1():\n return b'HTTP/1.1 405 Method Not Allowed\\r\\n'", "def ZWaQ(qv1X, _hkX, P1dF, NArs):\n _hkX.status = aazL.HTTP_405\n _hkX.media = {'code': '405_METHOD_NOT_ALLOWED', 'message': 'Cannot perform ' + qv1X.method + ' on ' + qv1X.url}", "def _tIS():\n raise CnSx.HTTPError(405, 'Method Not A...
[ "0.83900875", "0.8102103", "0.8071466", "0.80632424", "0.7989058", "0.7957838", "0.7888732", "0.7799156", "0.77594185", "0.77030754", "0.7607001", "0.7525692", "0.7383925", "0.73224944", "0.7273863", "0.72528845", "0.7232358", "0.7149705", "0.7125795", "0.7089108", "0.7074891...
0.8552914
0
Administrate milestones. Opens an exhibit that offers the actions below depending on milestone status and user permissions.
def RqJC(QePW): if '{' not in uRlK.always_safe: z8FY = uRlK.always_safe uRlK.always_safe = z8FY + '{}' else: z8FY = None Mkmy = SGJU('shipping/milestones.html', {'login_form_needs_reload': True, 'request': QePW}, context_instance=K1Ja(QePW)) if z8FY is not None: uRlK.alwa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dF4O(YKHO):\n pass", "def RqJC(YKHO, RqJC):\n YKHO._milestones = RqJC", "def e5IM(YKHO, umyN, Ol8d=None):\n nPrm = {}\n nPrm['milestone_id'] = umyN\n if Ol8d:\n nPrm['message'] = Ol8d\n bD7m = 'fp/milestones/{0}/activate'.format(umyN)\n return YKHO.put(bD7m, nPrm)", "def RqJC(...
[ "0.5807756", "0.57310784", "0.56521845", "0.5455653", "0.5404848", "0.54007477", "0.5341982", "0.53202605", "0.5302014", "0.5295567", "0.52950144", "0.5195792", "0.5193202", "0.51330274", "0.5054295", "0.50267977", "0.50211793", "0.5010185", "0.5008982", "0.5002668", "0.49952...
0.5024902
16
Test case for get_date_column_index when column name has left trailing spaces with 'Date'.
def SyKB(YKHO, ZEDl): crOM = ZEDl.get_date_column_index() assert crOM == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gju7(YKHO, KkoA):\n crOM = KkoA.get_date_column_index()\n assert crOM == -1", "def rzeb(YKHO, Fz9B):\n crOM = Fz9B.get_date_column_index()\n assert crOM == 0", "def t5o2(YKHO, PuqO):\n crOM = PuqO.get_date_column_index()\n assert crOM == 0", "def pBbi(YKHO, XJVP):\n crOM = XJVP.get_d...
[ "0.75694805", "0.7358514", "0.68965787", "0.66902137", "0.6328059", "0.5860152", "0.5799068", "0.55833864", "0.55761003", "0.5528023", "0.5514959", "0.5509535", "0.54912984", "0.5465113", "0.5438442", "0.5398486", "0.5382389", "0.5346944", "0.53391993", "0.5332686", "0.531077...
0.7268026
2
Test case for get_date_column_index when column name has right trailing spaces with 'Date'.
def rzeb(YKHO, Fz9B): crOM = Fz9B.get_date_column_index() assert crOM == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gju7(YKHO, KkoA):\n crOM = KkoA.get_date_column_index()\n assert crOM == -1", "def SyKB(YKHO, ZEDl):\n crOM = ZEDl.get_date_column_index()\n assert crOM == 0", "def t5o2(YKHO, PuqO):\n crOM = PuqO.get_date_column_index()\n assert crOM == 0", "def pBbi(YKHO, XJVP):\n crOM = XJVP.get_d...
[ "0.766277", "0.7309769", "0.70677525", "0.6765125", "0.6446464", "0.59008723", "0.5877868", "0.56655824", "0.5591033", "0.5585865", "0.5554894", "0.55152684", "0.5482945", "0.5455146", "0.5417881", "0.54144686", "0.54094386", "0.5406611", "0.5381959", "0.535449", "0.5326574",...
0.7462475
1
Test case for get_date_column_index when column name has left and right trailing spaces with 'Date'.
def t5o2(YKHO, PuqO): crOM = PuqO.get_date_column_index() assert crOM == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rzeb(YKHO, Fz9B):\n crOM = Fz9B.get_date_column_index()\n assert crOM == 0", "def SyKB(YKHO, ZEDl):\n crOM = ZEDl.get_date_column_index()\n assert crOM == 0", "def gju7(YKHO, KkoA):\n crOM = KkoA.get_date_column_index()\n assert crOM == -1", "def pBbi(YKHO, XJVP):\n crOM = XJVP.get_d...
[ "0.75458163", "0.74885297", "0.73222536", "0.659821", "0.6234132", "0.57225263", "0.5620066", "0.54223055", "0.5416918", "0.5414933", "0.537645", "0.53192395", "0.5310726", "0.52563626", "0.52513456", "0.52411544", "0.5214661", "0.517968", "0.5142795", "0.5139926", "0.5114689...
0.71300393
3