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 |
|---|---|---|---|---|---|---|
A function to prepare input features for training. Function takes formatted version of the features set(without labels and a feature file containing labels. Uses num_time_steps and num_features to generate a sequence for input to the LSTM model for training Returns segments and encoded labels (from the activity column)... | def gxRj(fpEA, BW33):
jUGl = 64
YPaw = 6
PXIy = []
Crrw = []
for YRbF in range(0, len(fpEA) - jUGl, YPaw):
KQWz = [fpEA[WfCS].values[YRbF:YRbF + jUGl] for WfCS in fpEA.columns]
UXqs = eQSh.mode(BW33['activity'][YRbF:YRbF + jUGl])[0][0]
PXIy.append(KQWz)
Crrw.append(UX... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lpbp(_73Q, EKkb, G8d9, b0j5):\n ecF5 = {UXqs: YRbF for YRbF, UXqs in enumerate(EKkb)}\n bySB = []\n for ttfM, PU1l in enumerate(_73Q):\n EKkb = PU1l.label.split(' ')\n s2mk = []\n Crrw = []\n for YRbF, GIN8 in enumerate(PU1l.text_a.split(' ')):\n YS_q = b0j5.toke... | [
"0.642258",
"0.6218882",
"0.61765397",
"0.61225486",
"0.61212564",
"0.6071692",
"0.5952996",
"0.5933982",
"0.5924404",
"0.5917281",
"0.5895744",
"0.5895229",
"0.5886554",
"0.5874698",
"0.58411723",
"0.5816617",
"0.5810758",
"0.58042693",
"0.58028215",
"0.5798988",
"0.57898873... | 0.6165128 | 3 |
Return a list of ycoordinates to use for plotting the tree. | def xKOr(YKHO):
return YKHO._list_link_to_parents(col_name='y') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GjbM(YKHO):\n return YKHO._list_link_to_tips(col_name='y')",
"def vNbQ(YKHO):\n return YKHO._y_points",
"def WQ3j(YKHO):\n return YKHO._locations[1]",
"def PUr8(YKHO):\n return YKHO.edges[1]",
"def bmPF(YKHO):\n return YKHO.y0 + oyIN.arange(YKHO.ny) * YKHO.dy",
"def LVAh(YKHO):\n re... | [
"0.7928994",
"0.67593557",
"0.6532272",
"0.6527265",
"0.6500697",
"0.6445729",
"0.64396954",
"0.635136",
"0.6332046",
"0.6317009",
"0.63104063",
"0.63104063",
"0.6295133",
"0.6242105",
"0.6229711",
"0.6220149",
"0.6193215",
"0.6193215",
"0.61913604",
"0.61854917",
"0.6175124"... | 0.80894214 | 0 |
Add a points layer to the layers list. | def JDH3(YKHO, nPrm=None, *, C9U5=None, l5Ny=None, o61b='o', zNig=10, L8yx=1, nBP2='black', qniw=None, tEe5='viridis', WgE8=None, eNzL='white', nm2G=None, wpz4='viridis', FZP3=None, PYQi=False, mWFP=None, yIVm=None, NXpY=None, hBUG=None, BCp6=1, YE4U='translucent', oWb2=True) -> fhcK.Points:
if nPrm is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JDH3(YKHO, LTIa):\n pass",
"def nrAN(YKHO, LTIa):\n YKHO.points = LTIa",
"def W6ey(YKHO, wdYk, R7Na=True, OfK8='#ff0000', zNig=3, mWFP='<point_layer>'):\n id = YKHO.addLayer(YKHO.drawPointsLayer, wdYk, R7Na, OfK8, zNig, name=mWFP)\n return id",
"def nrAN(YKHO, LTIa):\n YKHO.points.extend(L... | [
"0.7288185",
"0.7023347",
"0.70131505",
"0.69831395",
"0.6618713",
"0.6581822",
"0.65749407",
"0.65553796",
"0.64928746",
"0.64077336",
"0.62529796",
"0.62468636",
"0.62338465",
"0.62084013",
"0.6202363",
"0.61893904",
"0.61647415",
"0.61637753",
"0.6128609",
"0.6099204",
"0.... | 0.6377388 | 10 |
The list of installed device classes. | def KndY(YKHO):
return list(YKHO._classes_generator()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YfpN(YKHO):\n return list(YKHO._device_types)",
"def N29W(YKHO):\n return [WKvO for WKvO in YKHO.devices.keys()]",
"def KndY(YKHO):\n if YKHO.classname:\n return [YKHO.classname]\n return []",
"def ylai(YKHO):\n return YKHO._classes",
"def ylai(YKHO):\n return",
"def KndY(YKH... | [
"0.69825745",
"0.68640214",
"0.6712539",
"0.65622866",
"0.65499496",
"0.65027493",
"0.6489424",
"0.6489375",
"0.648079",
"0.64679676",
"0.64626825",
"0.64520633",
"0.6342538",
"0.63038015",
"0.6281411",
"0.6274871",
"0.6257163",
"0.6255949",
"0.6238514",
"0.6169164",
"0.61636... | 0.6352337 | 12 |
The name of the device class | def mWFP(YKHO):
return YKHO._get_device_class_name() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO) -> str | None:\n return YKHO._get_sensor_type()[2]",
"def rM2U(YKHO):\n return YKHO.sensor_type['class']",
"def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')",
"def rM2U(YKHO):\n return YKHO._device_class",
"def ... | [
"0.8340306",
"0.81362057",
"0.79554015",
"0.79148746",
"0.7908673",
"0.78958863",
"0.78958863",
"0.78958863",
"0.7814847",
"0.7813284",
"0.7813284",
"0.7813284",
"0.7813284",
"0.7813284",
"0.77894497",
"0.778694",
"0.778694",
"0.7779215",
"0.7779215",
"0.77773464",
"0.7713451... | 0.9185981 | 0 |
The set of devices of the current class. | def YfpN(YKHO):
return YKHO.enumerate_devices() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YfpN(YKHO):\n return YKHO.__devices",
"def YfpN(YKHO):\n return YKHO._devices",
"def YfpN(YKHO):\n return YKHO._devices",
"def YfpN(YKHO):\n return YKHO._devices",
"def YfpN(YKHO):\n return YKHO._devices",
"def wPX8(YKHO):\n Gsp7 = set()\n return Gsp7",
"def N29W(YKHO):\n re... | [
"0.79903066",
"0.7987605",
"0.7987605",
"0.7987605",
"0.7987605",
"0.79554206",
"0.7773249",
"0.76525307",
"0.75988096",
"0.7569989",
"0.74304664",
"0.7372484",
"0.72990334",
"0.7293757",
"0.72474724",
"0.7199695",
"0.7168249",
"0.7138762",
"0.71188986",
"0.711076",
"0.709896... | 0.78748673 | 6 |
ARIMA on Weighted Moving Average | def tPmd(AVpI, Gaon, mWFP):
tzRK = Gaon['params']['wma_window']
tKQu = wf7J.WMA(AVpI['close'], tzRK).to_numpy()[:, None]
Gaon['data'] = o8EM(tKQu, Gaon['params']['arima_window'], mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCKv(nPrm, yBPc=100):\n KnxT = oyIN.ones(yBPc) / yBPc\n return oyIN.convolve(nPrm, KnxT, 'valid')",
"def Cc_D(hkxX, KnxT=20):\n return hkxX.rolling(KnxT, center=False).mean()",
"def ZCKv(nPrm, UqYS):\n qqgr = 0\n Z5_B = []\n for YRbF in range(len(nPrm)):\n qqgr = qqgr * UqYS + (1 -... | [
"0.64332235",
"0.6424645",
"0.63507843",
"0.6347649",
"0.6299912",
"0.62887293",
"0.6282216",
"0.62765396",
"0.62661624",
"0.6247317",
"0.6218867",
"0.62028676",
"0.60628086",
"0.6054383",
"0.60532147",
"0.60226184",
"0.60096055",
"0.59677744",
"0.5944391",
"0.5920132",
"0.59... | 0.61765444 | 12 |
Test that strava api call returns token that matches expected format and is not expired. | def uCmR():
s2mk = thS1()
assert s2mk['token_type'] == 'Bearer'
assert s2mk['access_token'] is not None
assert s2mk['expires_at'] is not None
assert s2mk['expires_in'] is not None
assert s2mk['refresh_token'] is not None
assert 'token_type' in s2mk
assert 'access_token' in s2mk
asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sptu(YKHO):\n GPtr.set(xsrf_token_key='abcdef')\n Wt9E = BfDw.XsrfTool()\n eOtH = Wt9E.generate_token(12345, 'test_action')\n BfDw.set_utcnow_for_test(nByX.TEST_NOW + qcWV.timedelta(hours=4, minutes=1))\n YKHO.assertFalse(Wt9E.verify_token(eOtH, 12345, 'test_action'))",
"def pUOZ(dnG5):\n b... | [
"0.7254361",
"0.71928334",
"0.71925396",
"0.7190626",
"0.71510196",
"0.7123881",
"0.70840096",
"0.70428467",
"0.70105773",
"0.6960285",
"0.693164",
"0.69182277",
"0.69151807",
"0.69047624",
"0.68823147",
"0.68401384",
"0.68108004",
"0.68065697",
"0.6799951",
"0.67830026",
"0.... | 0.7278672 | 0 |
Returns True if root access has been enabled on this database instance, and false otherwise. | def ctre(YKHO):
return YKHO.client.get(YKHO.path + '/root')['rootEnabled'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZncZ(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'has_root_access')",
"def vgnu():\n return bool(JALd.IsUserAnAdmin())",
"def lWNe(YKHO):\n return YKHO._smb_root_accessible",
"def Z7_w(YKHO):\n return YKHO._nfs_root_accessible",
"def mPwf(YKHO):\n j8eK = '/instances/%s/root'... | [
"0.8259805",
"0.7298647",
"0.72350883",
"0.7006684",
"0.6966008",
"0.6958805",
"0.6910536",
"0.6738823",
"0.672531",
"0.6723514",
"0.67126113",
"0.66492987",
"0.6633869",
"0.655224",
"0.655224",
"0.652371",
"0.6423022",
"0.6423022",
"0.6347106",
"0.63373667",
"0.6323379",
"... | 0.71701086 | 3 |
run to the ball if it is to the bottom from player's position | def rsNF(W061, ulFX, RbmL):
def cr5u(W061, ulFX, RbmL):
""" environment fits constraints """
if W061['ball'][1] > RbmL and abs(W061['ball'][0] - ulFX) < 0.01:
return True
return False
def AMEM(W061, ulFX, RbmL):
""" get action of this memory pattern """
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K_ab(YKHO):\n while not YKHO.__game_is_over():\n YKHO.__ball.move(YKHO.__dx, YKHO.__dy)\n YKHO.__handle_wall_collision()\n if YKHO.__num_lives == 0:\n YKHO.__game_over_picture()\n break\n elif YKHO.__bricks_total == 0:\n YKHO.__game_over_picture('... | [
"0.72083324",
"0.69922",
"0.68681103",
"0.6814682",
"0.68132",
"0.67223394",
"0.66324455",
"0.6627672",
"0.6598392",
"0.65531284",
"0.65530306",
"0.6543335",
"0.6543335",
"0.65364003",
"0.6512855",
"0.6499431",
"0.64736015",
"0.64710075",
"0.64623606",
"0.6428106",
"0.641857"... | 0.6616856 | 8 |
run to the ball if it is to the bottom left from player's position | def kztB(W061, ulFX, RbmL):
def cr5u(W061, ulFX, RbmL):
""" environment fits constraints """
if W061['ball'][0] < ulFX and W061['ball'][1] > RbmL:
return True
return False
def AMEM(W061, ulFX, RbmL):
""" get action of this memory pattern """
return eax5.Bott... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gevY(YKHO):\n YKHO.canvas.move(YKHO.ball, YKHO.x_speed * YKHO.speed, YKHO.y_speed * YKHO.speed)\n EJp_, Wip_, Qv2E, riHt = YKHO.canvas.coords(YKHO.ball)\n if EJp_ <= 0 or Qv2E >= 400:\n YKHO.x_speed = -YKHO.x_speed\n if Wip_ <= 0 or riHt >= 400:\n YKHO.y_speed = -YKHO.y_speed",
"def... | [
"0.71721065",
"0.71283865",
"0.67518795",
"0.67485005",
"0.6705833",
"0.66433764",
"0.66344875",
"0.66251993",
"0.66136396",
"0.65892315",
"0.65353155",
"0.644359",
"0.6437585",
"0.64371544",
"0.6433396",
"0.643116",
"0.641724",
"0.64159906",
"0.6404897",
"0.6388909",
"0.6384... | 0.67839164 | 2 |
run to the ball if it is to the bottom right from player's position | def EpE7(W061, ulFX, RbmL):
def cr5u(W061, ulFX, RbmL):
""" environment fits constraints """
if W061['ball'][0] > ulFX and W061['ball'][1] > RbmL:
return True
return False
def AMEM(W061, ulFX, RbmL):
""" get action of this memory pattern """
return eax5.Bott... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gevY(YKHO):\n YKHO.canvas.move(YKHO.ball, YKHO.x_speed * YKHO.speed, YKHO.y_speed * YKHO.speed)\n EJp_, Wip_, Qv2E, riHt = YKHO.canvas.coords(YKHO.ball)\n if EJp_ <= 0 or Qv2E >= 400:\n YKHO.x_speed = -YKHO.x_speed\n if Wip_ <= 0 or riHt >= 400:\n YKHO.y_speed = -YKHO.y_speed",
"def... | [
"0.6983191",
"0.6973917",
"0.6759838",
"0.6714118",
"0.668266",
"0.6668169",
"0.66586035",
"0.66424376",
"0.6636509",
"0.66255134",
"0.65903693",
"0.6538866",
"0.6521628",
"0.65212196",
"0.65024984",
"0.646723",
"0.6415262",
"0.640247",
"0.6399464",
"0.6384403",
"0.6368772",
... | 0.67749137 | 2 |
run to the ball if it is to the right from player's position | def kjpq(W061, ulFX, RbmL):
def cr5u(W061, ulFX, RbmL):
""" environment fits constraints """
if W061['ball'][0] > ulFX and abs(W061['ball'][1] - RbmL) < 0.01:
return True
return False
def AMEM(W061, ulFX, RbmL):
""" get action of this memory pattern """
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bjjd(YKHO):\n if YKHO.rect.right < i1q_:\n YKHO.rect.right += YKHO.speed",
"def bjjd(YKHO):\n YKHO.rect.x += 5\n if YKHO.rect.x >= 580:\n YKHO.rect.x = 580",
"def KFRb(YKHO) -> None:\n YKHO._routes[YKHO._current_route_key]['RIGHT'] += 1\n R8mN = YKHO._player.x + YKHO.MOVE_INC\n... | [
"0.7143745",
"0.70929444",
"0.70887804",
"0.68167496",
"0.6755817",
"0.666772",
"0.6657931",
"0.6640654",
"0.6634686",
"0.6629268",
"0.6627521",
"0.6591458",
"0.65906996",
"0.655483",
"0.6534924",
"0.65091413",
"0.6490543",
"0.64902323",
"0.64838254",
"0.64741504",
"0.6473427... | 0.6666116 | 6 |
run to the ball if it is to the top right from player's position | def oWxU(W061, ulFX, RbmL):
def cr5u(W061, ulFX, RbmL):
""" environment fits constraints """
if W061['ball'][0] > ulFX and W061['ball'][1] < RbmL:
return True
return False
def AMEM(W061, ulFX, RbmL):
""" get action of this memory pattern """
return eax5.TopR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gevY(YKHO):\n YKHO.canvas.move(YKHO.ball, YKHO.x_speed * YKHO.speed, YKHO.y_speed * YKHO.speed)\n EJp_, Wip_, Qv2E, riHt = YKHO.canvas.coords(YKHO.ball)\n if EJp_ <= 0 or Qv2E >= 400:\n YKHO.x_speed = -YKHO.x_speed\n if Wip_ <= 0 or riHt >= 400:\n YKHO.y_speed = -YKHO.y_speed",
"def... | [
"0.6846344",
"0.6760717",
"0.67123604",
"0.6699229",
"0.6644585",
"0.66358966",
"0.6632727",
"0.6616267",
"0.65979105",
"0.65961057",
"0.65760654",
"0.6562567",
"0.64902973",
"0.64709157",
"0.6426536",
"0.64076626",
"0.6368969",
"0.63622034",
"0.6352662",
"0.6333112",
"0.6319... | 0.65169597 | 12 |
Return which token type won ('X' or 'O') or None if no one has won yet. | def RGM7(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EJL0(YKHO):\n if YKHO.currStringToProcess in NXxq:\n return yZ9_\n elif YKHO.currStringToProcess in JgMM:\n return jefT\n elif YKHO.currStringToProcess.isdigit():\n return hWL1\n elif YKHO.currStringToProcess[0] == '\"':\n return fPcK\n elif YKHO.currStringToProcess[0... | [
"0.6712261",
"0.639354",
"0.639354",
"0.638774",
"0.6379658",
"0.6262658",
"0.60917306",
"0.5871876",
"0.5793148",
"0.5793148",
"0.57479024",
"0.5739574",
"0.5725336",
"0.5677667",
"0.5645393",
"0.55922073",
"0.55611694",
"0.5544923",
"0.5538656",
"0.553314",
"0.551161",
"0... | 0.0 | -1 |
Converts the input value of meters into miles. | def QAKp(l1UJ):
JYmd = l1UJ / 1609.344
return JYmd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brid(q5XV):\n return q5XV * 0.621371",
"def kkZL(ssQ2: float) -> float:\n ssQ2 = float(ssQ2)\n JYmd = float(float(ssQ2) * 0.621371)\n return round(JYmd, 2)",
"def SYkS(YKHO) -> None:\n l1UJ = 5000\n AcYW = 'meters'\n YKHO.assertEqual('3.11', f'{WI6P(AcYW, l1UJ):.2f}')\n l1UJ = 0\n ... | [
"0.7894793",
"0.7732351",
"0.75956684",
"0.7350536",
"0.7139891",
"0.7057429",
"0.7055383",
"0.70397633",
"0.6952373",
"0.6857919",
"0.68411344",
"0.6735596",
"0.6708009",
"0.6642029",
"0.6635606",
"0.6609784",
"0.6604",
"0.6603629",
"0.6602266",
"0.6579583",
"0.64558864",
... | 0.8390878 | 0 |
Get the "code" collection from the wgapl database. | def zM6d():
x0hE = BFCm()
hiI0 = x0hE['wgapl']
Wxnj = hiI0['code']
return Wxnj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zM6d(YKHO):\n eHpk = NCls.create_engine('postgresql+psycopg2://vxttrrwzkdeaol:367054ad01122101b1b5d9ee099e03253d212ec914e330378952dec6c67e5174@ec2-79-125-126-205.eu-west-1.compute.amazonaws.com/d82qavso2hgauu')\n UzPC = eHpk.connect()\n yIVm = NCls.MetaData()\n xIJH = NCls.Table('hola_bottable', yI... | [
"0.66804135",
"0.64768034",
"0.6157037",
"0.60691345",
"0.60558945",
"0.59080875",
"0.5802554",
"0.57120275",
"0.56858927",
"0.56710243",
"0.5653338",
"0.56491065",
"0.5596788",
"0.5545779",
"0.5545779",
"0.5545779",
"0.5545779",
"0.5459935",
"0.5454457",
"0.5452583",
"0.5449... | 0.75370306 | 0 |
Calculate the yaw error with [pi, pi] bounds. Error is with respect to current orientation. | def XwKn(otgi, jNO4):
jr3J = otgi - jNO4
if jr3J < -oyIN.pi:
jr3J += 2 * oyIN.pi
elif jr3J > oyIN.pi:
jr3J -= 2 * oyIN.pi
return jr3J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BhOM(YKHO):\n YKHO._normalise()\n xTkQ = oyIN.arctan2(2 * (YKHO.q[0] * YKHO.q[3] - YKHO.q[1] * YKHO.q[2]), 1 - 2 * (YKHO.q[2] ** 2 + YKHO.q[3] ** 2))\n H2HG = oyIN.arcsin(2 * (YKHO.q[0] * YKHO.q[2] + YKHO.q[3] * YKHO.q[1]))\n rKSe = oyIN.arctan2(2 * (YKHO.q[0] * YKHO.q[1] - YKHO.q[2] * YKHO.q[3]), ... | [
"0.6940108",
"0.6823165",
"0.67930984",
"0.6538853",
"0.6517106",
"0.63758546",
"0.63129425",
"0.6144478",
"0.61151516",
"0.6064305",
"0.6022627",
"0.5962774",
"0.59259814",
"0.5878198",
"0.585353",
"0.58436507",
"0.5830251",
"0.5786376",
"0.5663258",
"0.557847",
"0.553147",
... | 0.80633265 | 0 |
Convert any arraylike type to a numpy array. | def FFFa(pmON):
if isinstance(pmON, GkAb):
KRZF = Tk6u(pmON)[:, 0]
elif isinstance(pmON, _Bzj):
KRZF = xsPp(pmON)[:, 0]
elif isinstance(pmON, (list, oyIN.ndarray)):
KRZF = oyIN.array(pmON)
else:
raise ValueError('Invalid type for `path` argument. Must be an array-like typ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LzLs(nPrm):\n L_oh()\n if nPrm is None:\n raise ValueError('Cannot convert None data.')\n return None\n if not isinstance(nPrm, (gyIm, qHOR, hxoQ, oM6q, tTFA)):\n nPrm = oyIN.asarray(nPrm)\n if not oyIN.iterable(nPrm):\n nPrm = oyIN.atleast_1d(nPrm)\n return nPrm",
... | [
"0.7732808",
"0.75745517",
"0.7344965",
"0.7262086",
"0.72511667",
"0.722614",
"0.71071833",
"0.7104881",
"0.7104881",
"0.7082079",
"0.69020075",
"0.69014776",
"0.6863287",
"0.6646329",
"0.6621843",
"0.66197765",
"0.6613701",
"0.6599244",
"0.65807515",
"0.65746725",
"0.657380... | 0.6109258 | 52 |
Convert any pointlike type to a numpy array. | def Fg7L(AU8u):
if isinstance(AU8u, (_jOl, R6v2)):
ckZU = oyIN.array([AU8u.point.x, AU8u.point.y, AU8u.point.z])
elif isinstance(AU8u, (list, oyIN.ndarray)):
ckZU = oyIN.array(AU8u)
else:
raise ValueError('Invalid type for `point` argument. Must be a point-like type.')
return ckZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M3Ox(AU8u: dlib.point):\n return oyIN.array([AU8u.x, AU8u.y])",
"def sEd0(AU8u: dict):\n return oyIN.array([AU8u['x'], AU8u['y']])",
"def lpbj(Emd4, nPrm):\n if isinstance(nPrm, oyIN.ndarray):\n return nPrm\n ezWE = oyIN.array(nPrm, dtype=oyIN.float)\n if len(ezWE.shape) == 1:\n ... | [
"0.7753892",
"0.71920747",
"0.6945653",
"0.6923151",
"0.6800607",
"0.66360366",
"0.66360366",
"0.6525286",
"0.64289665",
"0.63544416",
"0.63276964",
"0.630443",
"0.6300504",
"0.6280665",
"0.6271747",
"0.6254666",
"0.6253987",
"0.62291676",
"0.6225183",
"0.6224312",
"0.6223142... | 0.7894871 | 0 |
Returns a function creating env_name_, possibly a parallel one. | def tatU(bKkn):
if bPTU == 1:
return _0ef(bKkn)
else:
return zY2I.ParallelPyEnvironment([lambda: _0ef(bKkn)] * bPTU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return Ynut(YKHO.tool_name, YKHO._python, YKHO._requirements, YKHO._tagged_env_vars)",
"def i2I_(f4S_='(', pfzt=')'):\n KFiq = fR_9.__xonsh_env__.get('VIRTUAL_ENV', '')\n if len(KFiq) == 0 and fsgT.ON_ANACONDA:\n KFiq = fR_9.__xonsh_env__.get('CONDA_DEFAULT_ENV', '')\n i2I_ =... | [
"0.6451079",
"0.6439208",
"0.6378215",
"0.6270262",
"0.62300277",
"0.619584",
"0.6169621",
"0.60829926",
"0.60193765",
"0.59372264",
"0.5903769",
"0.58852375",
"0.5872347",
"0.58489674",
"0.58021665",
"0.57335496",
"0.57278764",
"0.5714343",
"0.5674723",
"0.56699646",
"0.5626... | 0.71322733 | 0 |
Convert env to tf if needed. | def el47(sEAN):
if isinstance(sEAN, SOyg.PyEnvironment):
z54C = z5pc.TFPyEnvironment(sEAN)
kSGy = sEAN
else:
z54C = sEAN
kSGy = None
return (z54C, kSGy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rRWD() -> None:\n Os6m()\n keK5()",
"def ORiH():\n\n def wBIE(H5ew, BWXx):\n if BWXx is None:\n if H5ew in Hy7s.environ:\n del Hy7s.environ[H5ew]\n else:\n Hy7s.environ[H5ew] = BWXx\n wBIE('TF_XLA_FLAGS', Lj5j)\n wBIE('TF_FORCE_GPU_ALLOW_GROWT... | [
"0.5762713",
"0.5740193",
"0.55034167",
"0.54357666",
"0.5403401",
"0.51857567",
"0.5179025",
"0.5178907",
"0.51584667",
"0.51563305",
"0.50849205",
"0.50706965",
"0.50654966",
"0.5040908",
"0.49639165",
"0.495522",
"0.49333233",
"0.4897317",
"0.48752028",
"0.4844067",
"0.482... | 0.6284359 | 0 |
Outputs a HRR vector given a FOF term | def vZh_(YKHO, OXAZ):
if isinstance(OXAZ, RELP):
return YKHO.var(OXAZ.name)
elif isinstance(OXAZ, g2y1):
return YKHO.const(OXAZ.name)
elif isinstance(OXAZ, Dy5h):
return YKHO.dist(OXAZ.name)
elif isinstance(OXAZ, w1P1):
return YKHO.func(OXAZ.funcname, tuple((YKHO.fold_ter... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m9ZL(YKHO, eHNT):\n wW3z = eHNT * 2 * oyIN.pi\n FfZ5 = oyIN.cumsum(wW3z)\n return oyIN.exp(1j * FfZ5)",
"def eyOQ(nPrm, NKcE):\n mcUg = 0\n if NKcE['type'] == 'lbp':\n JPVb = aOrM.generateKernel2()\n w2xj = aOrM.lbp2oneslice(nPrm, JPVb)\n mcUg, Pyrc = aOrM.features(w2xj)\n... | [
"0.5883223",
"0.5703672",
"0.57033074",
"0.56326604",
"0.5595182",
"0.5591195",
"0.55410326",
"0.55322146",
"0.55252945",
"0.5522001",
"0.54942816",
"0.54916763",
"0.5482575",
"0.5389359",
"0.5385037",
"0.53610754",
"0.53528696",
"0.5346154",
"0.5344521",
"0.5340045",
"0.5335... | 0.0 | -1 |
Outputs a HRR vector given a FOF term | def vZh_(YKHO, Kiqo, OXAZ):
if isinstance(OXAZ, RELP):
return YKHO.var(Kiqo, OXAZ.name)
elif isinstance(OXAZ, g2y1):
return YKHO.const(Kiqo, OXAZ.name)
elif isinstance(OXAZ, Dy5h):
return YKHO.dist(Kiqo, OXAZ.name)
elif isinstance(OXAZ, w1P1):
return YKHO.func(Kiqo, OXAZ.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m9ZL(YKHO, eHNT):\n wW3z = eHNT * 2 * oyIN.pi\n FfZ5 = oyIN.cumsum(wW3z)\n return oyIN.exp(1j * FfZ5)",
"def eyOQ(nPrm, NKcE):\n mcUg = 0\n if NKcE['type'] == 'lbp':\n JPVb = aOrM.generateKernel2()\n w2xj = aOrM.lbp2oneslice(nPrm, JPVb)\n mcUg, Pyrc = aOrM.features(w2xj)\n... | [
"0.5880947",
"0.5704128",
"0.57013804",
"0.56279474",
"0.55921984",
"0.5590232",
"0.5538681",
"0.55299693",
"0.5523403",
"0.552075",
"0.549251",
"0.5488094",
"0.5485578",
"0.5386424",
"0.5386153",
"0.5359749",
"0.5351463",
"0.5344545",
"0.5343119",
"0.5338326",
"0.5332708",
... | 0.0 | -1 |
Hide the bottom action bar | def cab5(YKHO):
YKHO.remove_widget(YKHO.bottom_action_bar) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7BE(YKHO):\n YKHO.add_widget(YKHO.bottom_action_bar)",
"def Afoa(YKHO):\n YKHO.top.withdraw()",
"def JQ9n(YKHO):\n return False",
"def Afoa(YKHO):\n YKHO.root.iconify()",
"def fg_2():\n pass",
"def Afoa(YKHO):\n if YKHO.visible:\n oWrg = (YKHO.hwnd, 0)\n Rjw1(t13N, oW... | [
"0.7178586",
"0.69137925",
"0.67086565",
"0.65837944",
"0.6528224",
"0.64973104",
"0.6453573",
"0.6392218",
"0.6388695",
"0.6342648",
"0.6307397",
"0.63020915",
"0.6275977",
"0.6257325",
"0.62182426",
"0.61882097",
"0.60461926",
"0.602763",
"0.60223484",
"0.5996325",
"0.59839... | 0.8816797 | 0 |
Returns the hidden state of the agent for the start of an episode. | def W9gz(YKHO):
W9gz = None
return W9gz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0\n print('Agent Start Episode #' + str(YKHO.episodesSoFar + 1))",
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0",
"def SiRx(YKHO):\n while not YKHO... | [
"0.63696027",
"0.60781133",
"0.58969474",
"0.57763773",
"0.56816185",
"0.56607085",
"0.56607085",
"0.56607085",
"0.5647302",
"0.56286514",
"0.55857605",
"0.5562711",
"0.5553647",
"0.5517117",
"0.54545885",
"0.54510707",
"0.54510707",
"0.5436602",
"0.543472",
"0.54115236",
"0.... | 0.0 | -1 |
Returns the hidden state of the agent for the start of an episode. | def W9gz(YKHO):
return YKHO.agent.initial_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0\n print('Agent Start Episode #' + str(YKHO.episodesSoFar + 1))",
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0",
"def SiRx(YKHO):\n while not YKHO... | [
"0.63696027",
"0.60781133",
"0.58969474",
"0.57763773",
"0.56816185",
"0.5647302",
"0.56286514",
"0.55857605",
"0.5562711",
"0.5553647",
"0.5517117",
"0.54545885",
"0.54510707",
"0.54510707",
"0.5436602",
"0.543472",
"0.54115236",
"0.5395311",
"0.53882617",
"0.53676295",
"0.5... | 0.56607085 | 6 |
Returns the hidden state of the agent for the start of an episode. | def W9gz(YKHO):
return YKHO.agent.initial_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0\n print('Agent Start Episode #' + str(YKHO.episodesSoFar + 1))",
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0",
"def SiRx(YKHO):\n while not YKHO... | [
"0.6368146",
"0.6077211",
"0.58965087",
"0.5778984",
"0.5679836",
"0.56448895",
"0.56293267",
"0.558369",
"0.55615884",
"0.5556065",
"0.55199885",
"0.54533905",
"0.5451514",
"0.5451514",
"0.54390013",
"0.5435608",
"0.5410603",
"0.53967285",
"0.53886265",
"0.5365539",
"0.53610... | 0.56612504 | 5 |
Returns the hidden state of the agent for the start of an episode. | def W9gz(YKHO):
return YKHO.agent.initial_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0\n print('Agent Start Episode #' + str(YKHO.episodesSoFar + 1))",
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0",
"def SiRx(YKHO):\n while not YKHO... | [
"0.6368146",
"0.6077211",
"0.58965087",
"0.5778984",
"0.5679836",
"0.56448895",
"0.56293267",
"0.558369",
"0.55615884",
"0.5556065",
"0.55199885",
"0.54533905",
"0.5451514",
"0.5451514",
"0.54390013",
"0.5435608",
"0.5410603",
"0.53967285",
"0.53886265",
"0.5365539",
"0.53610... | 0.56612504 | 7 |
Returns the hidden state of the agent for the start of an episode. | def W9gz(YKHO):
return YKHO._agent.initial_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0\n print('Agent Start Episode #' + str(YKHO.episodesSoFar + 1))",
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0",
"def SiRx(YKHO):\n while not YKHO... | [
"0.6368146",
"0.6077211",
"0.58965087",
"0.5778984",
"0.5679836",
"0.56612504",
"0.56612504",
"0.56612504",
"0.56448895",
"0.558369",
"0.55615884",
"0.5556065",
"0.55199885",
"0.54533905",
"0.5451514",
"0.5451514",
"0.54390013",
"0.5435608",
"0.5410603",
"0.53967285",
"0.5388... | 0.56293267 | 9 |
Forward propagation function, which will return the discrimination value. | def KVH6(YKHO, input):
return YKHO.main(input).view(-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s8SV(YKHO):\n pass",
"def NbB8(YKHO, g4y1, UXqs):\n Er_e = oyIN.dot(g4y1, YKHO.input_W)\n Er_e = oyIN.add(Er_e, YKHO.input_B)\n Er_e = oyIN.maximum(0, Er_e)\n THTV = oyIN.dot(Er_e, YKHO.hidden_W)\n THTV = oyIN.add(THTV, YKHO.hidden_B)\n rvas = oyIN.exp(THTV)\n THTV = rvas / oyIN.sum(r... | [
"0.63028413",
"0.6194315",
"0.60869277",
"0.60277456",
"0.6002301",
"0.5988439",
"0.5967674",
"0.59603673",
"0.5935663",
"0.59321153",
"0.59321153",
"0.59223187",
"0.5901809",
"0.5900911",
"0.58897394",
"0.5883273",
"0.58526605",
"0.5850585",
"0.58340967",
"0.58207715",
"0.58... | 0.6098401 | 2 |
Compare the settings between FOOOF and/or FOOOFGroup objects. | def Cuqq(yv6U):
for QyVM, rjPX in enumerate(yv6U[:-1]):
if asJJ(rjPX) != asJJ(yv6U[QyVM + 1]):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mTIQ(YKHO, gCuF, kV2B):\n mzlV = kV2B.keys()\n if 'children' in mzlV:\n mzlV.remove('children')\n if len(gCuF) != len(mzlV):\n return True\n else:\n k4hq = gCuF.keys()\n for H5ew in mzlV:\n if H5ew not in k4hq or kV2B[H5ew] != gCuF[H5ew]:\n retu... | [
"0.6285345",
"0.62570083",
"0.6219147",
"0.59589237",
"0.5861523",
"0.58054423",
"0.57463837",
"0.5701998",
"0.5678465",
"0.5666813",
"0.5628498",
"0.5512121",
"0.5510255",
"0.54830295",
"0.54772437",
"0.5429576",
"0.54196936",
"0.53972894",
"0.53792423",
"0.5327615",
"0.5315... | 0.5777655 | 6 |
The set of arguments for constructing a Zone resource. | def FIMM(Ro_8, *, azoT: Optional[pulumi.Input[Mapping[str, Any]]]=None, JBZA: Optional[pulumi.Input[str]]=None, Mw1e: Optional[pulumi.Input[bool]]=None, D3lj: Optional[pulumi.Input[str]]=None, QquE: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, mWFP: Optional[pulumi.Input[str]]=None, ekCf: Optional[pulumi.I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: ZoneArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: Optional[ZoneArgs]=None, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: ZoneRecordArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ... | [
"0.7354836",
"0.71310985",
"0.6832822",
"0.64455605",
"0.64455605",
"0.63004786",
"0.61414325",
"0.6081677",
"0.6061686",
"0.5874698",
"0.58457977",
"0.58440346",
"0.57786363",
"0.5751368",
"0.5665804",
"0.56486547",
"0.5626863",
"0.56024945",
"0.55568105",
"0.5540788",
"0.55... | 0.0 | -1 |
The name of the zone. Note the `.` at the end of the name. Changing this creates a new DNS zone. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FDFD(YKHO):\n return YKHO._zone_name",
"def mWFP(YKHO):\n return f'{YKHO.zone_name} {YKHO.zone_variable}'",
"def mWFP(YKHO) -> str | None:\n if YKHO.zone.GroupName is not None:\n return YKHO.zone.GroupName\n return YKHO.zone.Name",
"def DspG(YKHO):\n lhKE = kpgd('test.example.com')\... | [
"0.79185253",
"0.73358494",
"0.7100498",
"0.6901773",
"0.68621045",
"0.6787704",
"0.6787704",
"0.67836624",
"0.6747171",
"0.6641983",
"0.66054785",
"0.64107364",
"0.6370102",
"0.6334574",
"0.62936705",
"0.62936705",
"0.62936705",
"0.62936705",
"0.62936705",
"0.6293508",
"0.62... | 0.0 | -1 |
The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the `region` argument of the provider is used. Changing this creates a new DNS zone. | def zn0c(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'region') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oMHX(YKHO):\n return YKHO.creds.get('region_name')",
"def zn0c(YKHO):\n if YKHO._region is None:\n LeuP = YKHO.expand_name('region')\n KwDD = gQfM.kv().get(LeuP)\n if KwDD:\n YKHO._region = KwDD\n else:\n qv1X = YKHO._imdv2_request(YKHO._az_url)\n ... | [
"0.62205136",
"0.60363674",
"0.60109836",
"0.60105574",
"0.59450287",
"0.5911524",
"0.5910951",
"0.58544093",
"0.58544093",
"0.5844533",
"0.5765771",
"0.57569623",
"0.57569623",
"0.57569623",
"0.57569623",
"0.5756079",
"0.5756079",
"0.5756079",
"0.5756079",
"0.5756079",
"0.57... | 0.53589296 | 64 |
The time to live (TTL) of the zone. | def h9HD(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'ttl') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eNhm(YKHO):\n return YKHO.TTL",
"def h9HD(YKHO):\n return YKHO._ttl",
"def h9HD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'ttl')",
"def h9HD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'ttl')",
"def h9HD(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'ttl')",
"def h... | [
"0.76726836",
"0.7618513",
"0.7414751",
"0.7414751",
"0.7414215",
"0.72934455",
"0.7222423",
"0.7184263",
"0.7184263",
"0.7184263",
"0.71549344",
"0.70806086",
"0.6582839",
"0.6481969",
"0.64170986",
"0.6350648",
"0.6346011",
"0.6341109",
"0.63091165",
"0.6297782",
"0.626431"... | 0.73184997 | 5 |
Map of additional options. Changing this creates a new zone. | def jaei(YKHO) -> h8nf[qe4Y.Input[GySg[str, ImMB]]]:
return qe4Y.get(YKHO, 'value_specs') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EVLG(YKHO, xAU6):\n gqr5 = super(ZYZg, YKHO)._advanced_backup_options(xAU6)\n if 'create_backup_copy_immediately' in xAU6:\n gqr5['dataOpt'] = {'createBackupCopyImmediately': xAU6.get('create_backup_copy_immediately', False), 'backupCopyType': xAU6.get('backup_copy_type', 'USING_STORAGE_POLICY_RUL... | [
"0.6151809",
"0.586394",
"0.5851889",
"0.58477145",
"0.5626888",
"0.5582726",
"0.55434835",
"0.55264103",
"0.55166453",
"0.55092126",
"0.5495251",
"0.54862493",
"0.5476434",
"0.54744154",
"0.54471105",
"0.5427879",
"0.5413489",
"0.54104024",
"0.5386581",
"0.53772056",
"0.5367... | 0.0 | -1 |
The name of the zone. Note the `.` at the end of the name. Changing this creates a new DNS zone. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FDFD(YKHO):\n return YKHO._zone_name",
"def mWFP(YKHO):\n return f'{YKHO.zone_name} {YKHO.zone_variable}'",
"def mWFP(YKHO) -> str | None:\n if YKHO.zone.GroupName is not None:\n return YKHO.zone.GroupName\n return YKHO.zone.Name",
"def DspG(YKHO):\n lhKE = kpgd('test.example.com')\... | [
"0.79185253",
"0.73358494",
"0.7100498",
"0.6901773",
"0.68621045",
"0.6787704",
"0.6787704",
"0.67836624",
"0.6747171",
"0.6641983",
"0.66054785",
"0.64107364",
"0.6370102",
"0.6334574",
"0.62936705",
"0.62936705",
"0.62936705",
"0.62936705",
"0.62936705",
"0.6293508",
"0.62... | 0.0 | -1 |
The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the `region` argument of the provider is used. Changing this creates a new DNS zone. | def zn0c(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'region') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oMHX(YKHO):\n return YKHO.creds.get('region_name')",
"def zn0c(YKHO):\n if YKHO._region is None:\n LeuP = YKHO.expand_name('region')\n KwDD = gQfM.kv().get(LeuP)\n if KwDD:\n YKHO._region = KwDD\n else:\n qv1X = YKHO._imdv2_request(YKHO._az_url)\n ... | [
"0.62205136",
"0.60363674",
"0.60109836",
"0.60105574",
"0.59450287",
"0.5911524",
"0.5910951",
"0.58544093",
"0.58544093",
"0.5844533",
"0.5765771",
"0.57569623",
"0.57569623",
"0.57569623",
"0.57569623",
"0.5756079",
"0.5756079",
"0.5756079",
"0.5756079",
"0.5756079",
"0.57... | 0.53589296 | 63 |
The time to live (TTL) of the zone. | def h9HD(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'ttl') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eNhm(YKHO):\n return YKHO.TTL",
"def h9HD(YKHO):\n return YKHO._ttl",
"def h9HD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'ttl')",
"def h9HD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'ttl')",
"def h9HD(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'ttl')",
"def h... | [
"0.76726836",
"0.7618513",
"0.7414751",
"0.7414751",
"0.7414215",
"0.72934455",
"0.7222423",
"0.7184263",
"0.7184263",
"0.7184263",
"0.71549344",
"0.70806086",
"0.6582839",
"0.6481969",
"0.64170986",
"0.6350648",
"0.6346011",
"0.6341109",
"0.63091165",
"0.6297782",
"0.626431"... | 0.73184997 | 6 |
Map of additional options. Changing this creates a new zone. | def jaei(YKHO) -> h8nf[qe4Y.Input[GySg[str, ImMB]]]:
return qe4Y.get(YKHO, 'value_specs') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EVLG(YKHO, xAU6):\n gqr5 = super(ZYZg, YKHO)._advanced_backup_options(xAU6)\n if 'create_backup_copy_immediately' in xAU6:\n gqr5['dataOpt'] = {'createBackupCopyImmediately': xAU6.get('create_backup_copy_immediately', False), 'backupCopyType': xAU6.get('backup_copy_type', 'USING_STORAGE_POLICY_RUL... | [
"0.6151809",
"0.586394",
"0.5851889",
"0.58477145",
"0.5626888",
"0.5582726",
"0.55434835",
"0.55264103",
"0.55166453",
"0.55092126",
"0.5495251",
"0.54862493",
"0.5476434",
"0.54744154",
"0.54471105",
"0.5427879",
"0.5413489",
"0.54104024",
"0.5386581",
"0.53772056",
"0.5367... | 0.0 | -1 |
The name of the zone. Note the `.` at the end of the name. Changing this creates a new DNS zone. | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FDFD(YKHO):\n return YKHO._zone_name",
"def mWFP(YKHO):\n return f'{YKHO.zone_name} {YKHO.zone_variable}'",
"def mWFP(YKHO) -> str | None:\n if YKHO.zone.GroupName is not None:\n return YKHO.zone.GroupName\n return YKHO.zone.Name",
"def DspG(YKHO):\n lhKE = kpgd('test.example.com')\... | [
"0.7919491",
"0.7335921",
"0.7100041",
"0.69018096",
"0.6863055",
"0.67889935",
"0.67889935",
"0.67839086",
"0.67486227",
"0.66409785",
"0.66049653",
"0.6410763",
"0.6368964",
"0.6335311",
"0.62952393",
"0.62952393",
"0.62952393",
"0.62952393",
"0.62952393",
"0.629213",
"0.62... | 0.0 | -1 |
The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the `region` argument of the provider is used. Changing this creates a new DNS zone. | def zn0c(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'region') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oMHX(YKHO):\n return YKHO.creds.get('region_name')",
"def zn0c(YKHO):\n if YKHO._region is None:\n LeuP = YKHO.expand_name('region')\n KwDD = gQfM.kv().get(LeuP)\n if KwDD:\n YKHO._region = KwDD\n else:\n qv1X = YKHO._imdv2_request(YKHO._az_url)\n ... | [
"0.6222279",
"0.60386515",
"0.60126317",
"0.6011403",
"0.59458005",
"0.5913209",
"0.5912251",
"0.58563",
"0.58563",
"0.5845269",
"0.5766678",
"0.5758316",
"0.5758316",
"0.5758316",
"0.5758316",
"0.5757539",
"0.5757539",
"0.5757539",
"0.5757539",
"0.5757539",
"0.5757539",
"0... | 0.5387341 | 48 |
The time to live (TTL) of the zone. | def h9HD(YKHO) -> qe4Y.Output[int]:
return qe4Y.get(YKHO, 'ttl') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eNhm(YKHO):\n return YKHO.TTL",
"def h9HD(YKHO):\n return YKHO._ttl",
"def h9HD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'ttl')",
"def h9HD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'ttl')",
"def h9HD(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'ttl')",
"... | [
"0.7675314",
"0.76201206",
"0.74162287",
"0.74162287",
"0.73199576",
"0.73199576",
"0.7294184",
"0.7223286",
"0.71858215",
"0.71858215",
"0.71858215",
"0.7156965",
"0.7078912",
"0.6582468",
"0.6480969",
"0.6417167",
"0.6352593",
"0.6346034",
"0.6340161",
"0.63076234",
"0.6296... | 0.7415691 | 4 |
Map of additional options. Changing this creates a new zone. | def jaei(YKHO) -> qe4Y.Output[h8nf[GySg[str, ImMB]]]:
return qe4Y.get(YKHO, 'value_specs') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EVLG(YKHO, xAU6):\n gqr5 = super(ZYZg, YKHO)._advanced_backup_options(xAU6)\n if 'create_backup_copy_immediately' in xAU6:\n gqr5['dataOpt'] = {'createBackupCopyImmediately': xAU6.get('create_backup_copy_immediately', False), 'backupCopyType': xAU6.get('backup_copy_type', 'USING_STORAGE_POLICY_RUL... | [
"0.6152994",
"0.58628565",
"0.5854946",
"0.58501226",
"0.5629163",
"0.55849373",
"0.55459726",
"0.55248135",
"0.5519135",
"0.55085",
"0.549766",
"0.5488457",
"0.5477245",
"0.5476642",
"0.5446236",
"0.5430043",
"0.5415678",
"0.54109263",
"0.53858376",
"0.537953",
"0.5366784",
... | 0.0 | -1 |
ForwardingEventProcessor init method to configure event dispatching. | def FIMM(YKHO, Dg_R: type[EventDispatcher] | CustomEventDispatcher, bo34: Optional[_logging.Logger]=None, efnv: Optional[_notification_center.NotificationCenter]=None):
YKHO.event_dispatcher = Dg_R or Z7en
YKHO.logger = KWKZ.adapt_logger(bo34 or KWKZ.NoOpLogger())
YKHO.notification_center = efnv or AH8q.Not... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, GPtr):\n B90g.__init__(YKHO, 'command_ingest', GPtr)\n YKHO.general_queue = gGq6()\n YKHO.processes = {'dispatch': Zlqb(target=YLnl(YKHO.dispatch), name='command_ingest_dispatch', parent_logger=YKHO.logger)}",
"def FIMM(YKHO, gy9r, jS7t):\n super(mCMs, YKHO).__init__()\n YKHO._event... | [
"0.6087346",
"0.6079905",
"0.60619843",
"0.6043378",
"0.59631497",
"0.58923537",
"0.5833621",
"0.5802229",
"0.5749943",
"0.57423335",
"0.57318085",
"0.5714144",
"0.57129973",
"0.565824",
"0.5626025",
"0.56184834",
"0.5613952",
"0.5612725",
"0.5580789",
"0.5579447",
"0.557161"... | 0.0 | -1 |
Gets the the attachments for this mail id. Attachments are encoded as base64 strings | def EoKe(Glu4):
CS4K = DO84.get_attachments(int(Glu4))
return oGir(response=qQXR.dumps(CS4K), status=200, mimetype='application/json') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OGLp(YKHO, GBG3):\n return YKHO._get_request({}, eYA3.GET_EXPENSE_ATTACHMENTS.format(GBG3))",
"def CS4K(YKHO):\n return YKHO.properties.get('attachments', NTZX(YKHO.context, oudJ('attachments', YKHO.resource_path)))",
"def CS4K(YKHO):\n return YKHO._attachments",
"def L960(zVa7, QTiD, gS47, D3DI... | [
"0.7303763",
"0.7001863",
"0.69319844",
"0.68076575",
"0.6689498",
"0.66124815",
"0.6527049",
"0.6423898",
"0.6351594",
"0.6339437",
"0.63129747",
"0.62911206",
"0.6289755",
"0.6266073",
"0.62369907",
"0.61195576",
"0.61109143",
"0.59968996",
"0.59269166",
"0.5782034",
"0.575... | 0.6365804 | 8 |
Test buildArn with folder's default value. | def cnTC(YKHO):
aEqx = 'arn:aws:s3:::my_bucket/*'
n5sN = aWFT.buildArn('my_bucket')
assert aEqx == n5sN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nb28(YKHO):\n aEqx = 'arn:aws:s3:::my_bucket/some/folder/*'\n n5sN = aWFT.buildArn('my_bucket', 'some/folder')\n assert aEqx == n5sN",
"def YnTC(YKHO):\n aEqx = 'arn:aws:s3:::my_bucket/some/folder/*'\n n5sN = aWFT.buildArn('my_bucket', '/some/folder/')\n assert aEqx == n5sN",
"def O0oJ(b3... | [
"0.61303943",
"0.5871019",
"0.56616133",
"0.5610533",
"0.55085605",
"0.5381504",
"0.53418183",
"0.53278697",
"0.53275937",
"0.5322827",
"0.51880187",
"0.5173635",
"0.5127995",
"0.5125553",
"0.5084351",
"0.5059805",
"0.5057678",
"0.5053722",
"0.50286114",
"0.5010562",
"0.49670... | 0.6925288 | 0 |
Computes lambda_star based on strong duality, so it is only valid if Slater's condition holds, which is not the case when the monotone region is a ray. We have proved this method only when w is outside the monotone region, so that w_star > w, and Slater's condition holds. | def dkD9(yzQ0: np.ndarray, ABhW: np.ndarray, Z72f: np.ndarray, gmFS: np.ndarray) -> oyIN.ndarray:
assert not juZF._is_w_inside_artificial_monotone_region(yzQ0, gmFS)
L7NV = Z72f.T @ (ABhW - yzQ0) / -(gmFS.T @ yzQ0)
B5Cx = L7NV.item()
return B5Cx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jpnd(yzQ0: np.ndarray, Z72f: np.ndarray, gmFS: np.ndarray) -> float:\n assert not juZF._is_w_inside_artificial_monotone_region(yzQ0, gmFS)\n Ylbp = lUs1(c=gmFS.T @ yzQ0, A_ub=gmFS, b_ub=Z72f, bounds=(None, None), method='simplex')\n B5Cx = Ylbp.x[:, None]\n return B5Cx[0]",
"def k3Yf(yzQ0: np.nda... | [
"0.5998582",
"0.59840924",
"0.5886466",
"0.5653077",
"0.56184566",
"0.5615842",
"0.5615842",
"0.5615842",
"0.5615842",
"0.56120753",
"0.55871964",
"0.55815357",
"0.5576036",
"0.5524816",
"0.5510785",
"0.54428834",
"0.5396225",
"0.535542",
"0.5335983",
"0.53229827",
"0.5317194... | 0.7729669 | 0 |
Apply a translation to each triangle's points. | def mgCV(EmSm, p5E2=(0, 0, 0)):
slhu(EmSm)
for YRbF in range(len(EmSm)):
for r845 in range(len(EmSm[YRbF])):
for G1Hx in range(len(p5E2)):
EmSm[YRbF][r845][G1Hx] = float(EmSm[YRbF][r845][G1Hx]) + float(p5E2[G1Hx]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hBUG(YKHO, yKIT):\n Z9rn = YKHO.c - YKHO.a * yKIT[0] - YKHO.b * yKIT[1]\n YKHO.c = Z9rn\n YKHO.pointN = YKHO.pointN + yKIT\n YKHO.point1 = YKHO.point1 + yKIT\n YKHO.points += yKIT",
"def hBUG(YKHO, yKIT):\n YKHO.points = YKHO.points + yKIT",
"def y_o0(YKHO, WKvO, LVAh, epBp) -> None:\n ... | [
"0.71644294",
"0.7132165",
"0.6817164",
"0.6786846",
"0.65986246",
"0.65604275",
"0.63246864",
"0.6288278",
"0.62030655",
"0.6190187",
"0.6180045",
"0.61446774",
"0.6142105",
"0.61025214",
"0.60383296",
"0.6013204",
"0.59801215",
"0.59801215",
"0.59768236",
"0.5942992",
"0.59... | 0.8022898 | 0 |
Returns complete system information of the specified system by uid | def MWGs(YKHO, PObu):
bo34.debug('Call to getSystemByUid - uid: {}'.format(PObu))
try:
geh0 = YKHO.httpHandler.sendHttpRequest(hnN2 + '?uuid=' + PObu)
except dTAH.HTTPError as e:
bo34.debug(wVCK.format_exc())
if tTpl.code == 404:
TBsA = tTpl.read()
bo34.debug(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O0wy(YKHO, WTZD):\n pmON = f'{YKHO.BIKE_ENDPOINT}system/{WTZD}/{YKHO.secret_key}'\n geh0 = G4JS.get(pmON).json()\n YKHO.check_api_key(geh0)\n return geh0",
"async def get_system_info(YKHO) -> cuzp[str, ImMB]:\n assert YKHO._client is not None\n return await YKHO._client.invoke_method('syste... | [
"0.6628133",
"0.6589558",
"0.65379214",
"0.6382721",
"0.6331559",
"0.6136596",
"0.6128842",
"0.61010176",
"0.6094242",
"0.6077139",
"0.6000191",
"0.59823173",
"0.5972837",
"0.59549963",
"0.59534127",
"0.5888255",
"0.58729494",
"0.58512706",
"0.58305013",
"0.582857",
"0.582793... | 0.75533336 | 0 |
Returns complete system information of the specified system by name Currently in TMS v2 a separate lookup is needed for the UID to get all information about a system | def HUg7(YKHO, csmH):
bo34.debug('Call to getSystemByName - systemName: {}'.format(csmH))
try:
geh0 = YKHO.httpHandler.sendHttpRequest(hnN2 + '?' + uRlK.urlencode({'name': csmH}))
except dTAH.HTTPError as e:
bo34.debug(wVCK.format_exc())
if tTpl.code == 404:
TBsA = tTpl.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O0wy(YKHO, WTZD):\n pmON = f'{YKHO.BIKE_ENDPOINT}system/{WTZD}/{YKHO.secret_key}'\n geh0 = G4JS.get(pmON).json()\n YKHO.check_api_key(geh0)\n return geh0",
"def Nysb(YKHO):\n jGRS, MOPg, Oz1B = YKHO._rest_get('/rest/v1/Systems/1')\n if jGRS < 300:\n cCim = YKHO._get_type(Oz1B)\n ... | [
"0.73650676",
"0.70473665",
"0.70217276",
"0.6993924",
"0.6965106",
"0.685575",
"0.68375355",
"0.6791844",
"0.674208",
"0.6742061",
"0.66896063",
"0.6677925",
"0.65222424",
"0.6461877",
"0.6459104",
"0.6397138",
"0.63589567",
"0.63273704",
"0.6242176",
"0.62328124",
"0.621195... | 0.7436737 | 0 |
Test ConvTranspose modules return expected default output shapes. | def J_WA(YKHO, GhuM, _0fC, RndV, dvgN, oLRV):
if len(GhuM) == 1:
yR_P = NXYx.Conv1DTranspose
elif len(GhuM) == 2:
yR_P = NXYx.Conv2DTranspose
elif len(GhuM) == 3:
yR_P = NXYx.Conv3DTranspose
Ep8u = [1]
xMux = [1]
g4y1 = ZylS.zeros(shape=Ep8u + GhuM + xMux, dtype=ZylS.floa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XNqH(YKHO, e5sz, c1Rj):\n oLRV = ZylS.TensorShape((4, 5))\n NQOc = NXYx.Conv2DTranspose(output_channels=5, output_shape=oLRV if c1Rj else None, kernel_shape=3, padding=NXYx.VALID, stride=1, name='conv2_transpose', use_bias=e5sz, data_format=yIp6.DATA_FORMAT_NCHW)\n I7zk = NQOc.transpose()\n YKHO.as... | [
"0.76976144",
"0.74256164",
"0.73078",
"0.7295563",
"0.71732086",
"0.70990336",
"0.6973474",
"0.6954109",
"0.68891066",
"0.6852711",
"0.6850671",
"0.6718783",
"0.6697674",
"0.66804165",
"0.66372734",
"0.6624984",
"0.65725124",
"0.65636563",
"0.65030444",
"0.6442761",
"0.64122... | 0.7231622 | 4 |
Check that custom_getter option works. | def Fswy(YKHO, yR_P, ji9M, Xpve):
def Cpxp(gJdh, *qIxc, **B2fa):
return ZylS.stop_gradient(gJdh(*qIxc, **B2fa))
g4y1 = ZylS.placeholder(ZylS.float32, (10,) * (ji9M + 2))
IM7D = yR_P(**Xpve)
pfRd = IM7D(g4y1)
QDZs = yR_P(custom_getter=Cpxp, **Xpve)
kPp7 = QDZs(g4y1)
sUC8 = len(IM7D.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xX9O(YKHO):\n return YKHO._is_getter",
"def JySO(YKHO):\n JfyU = lambda: 'getter'\n U5bT = v72p().getter(JfyU)\n YKHO.assertIsInstance(U5bT, v72p)\n YKHO.assertEqual(U5bT.fget, JfyU)",
"def _yYG(YKHO, gJdh, **B2fa):\n for y7GR in (z1Rg for z1Rg in YKHO.get_options() if z1Rg.dest not in B2... | [
"0.64644825",
"0.6188419",
"0.59624517",
"0.59098136",
"0.5795015",
"0.57920235",
"0.5781793",
"0.5767074",
"0.57141",
"0.5706302",
"0.5674423",
"0.55428624",
"0.5487217",
"0.5472061",
"0.5433995",
"0.54109555",
"0.5394838",
"0.539153",
"0.5379516",
"0.53756106",
"0.53731453"... | 0.5532378 | 12 |
Errors are thrown for invalid strides. | def IMuO(YKHO, e5sz):
NXYx.Conv2D(output_channels=10, kernel_shape=3, stride=1, name='conv1', use_bias=e5sz)
NXYx.Conv2D(output_channels=10, kernel_shape=3, stride=[1, 1], name='conv1', use_bias=e5sz)
NXYx.Conv2D(output_channels=10, kernel_shape=3, stride=[1, 1, 1, 1], name='conv1', use_bias=e5sz)
with ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMuO(YKHO, e5sz):\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=1, use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=[1], use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_s... | [
"0.6946206",
"0.69117963",
"0.6891777",
"0.67954826",
"0.6713288",
"0.6406536",
"0.63709587",
"0.58808225",
"0.585726",
"0.58539647",
"0.58204424",
"0.5808992",
"0.57003635",
"0.5625724",
"0.55856574",
"0.5568732",
"0.5522062",
"0.54916006",
"0.5466188",
"0.54643273",
"0.5458... | 0.6682431 | 5 |
Tests if output shapes are valid. | def QtXK(YKHO, e5sz):
g4y1 = ZylS.placeholder(ZylS.float32, shape=YKHO.in_shape)
j2cC = NXYx.Conv2DTranspose(name='conv2d_1', output_channels=YKHO.out_channels, output_shape=YKHO.out_shape, kernel_shape=YKHO.kernel_shape, padding=YKHO.padding, stride=1, use_bias=e5sz)
o4Jx = j2cC(g4y1)
YKHO.assertTrue(o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(YKHO) -> bool:\n try:\n YKHO.shape\n return True\n except ValueError:\n return False",
"def Fuw0(gOGe, KDwe):\n return True",
"def xQvf(C3ST):\n assert C3ST.r == Mkmy\n assert C3ST.m == r8hN\n assert C3ST.c_.shape == (Mkmy,)\n assert C3ST.A_.shape == (Mkmy, Mk... | [
"0.70775557",
"0.70467687",
"0.6996906",
"0.69412076",
"0.68884826",
"0.68154806",
"0.673054",
"0.6710598",
"0.66996604",
"0.6671283",
"0.6653107",
"0.6619467",
"0.6614694",
"0.6550892",
"0.6476432",
"0.64648855",
"0.6459457",
"0.6456372",
"0.63903147",
"0.636188",
"0.6349985... | 0.0 | -1 |
Errors are thrown for invalid strides. | def IMuO(YKHO, e5sz):
NXYx.Conv1D(output_channels=10, kernel_shape=3, stride=1, name='conv1', use_bias=e5sz)
XObx = 'Invalid stride'
with YKHO.assertRaisesRegexp(NXYx.IncompatibleShapeError, XObx):
NXYx.Conv1D(output_channels=10, kernel_shape=3, stride=[1, 1], name='conv1')
with YKHO.assertRaise... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMuO(YKHO, e5sz):\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=1, use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=[1], use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_s... | [
"0.6946206",
"0.69117963",
"0.6891777",
"0.6713288",
"0.6682431",
"0.6406536",
"0.63709587",
"0.58808225",
"0.585726",
"0.58539647",
"0.58204424",
"0.5808992",
"0.57003635",
"0.5625724",
"0.55856574",
"0.5568732",
"0.5522062",
"0.54916006",
"0.5466188",
"0.54643273",
"0.54584... | 0.67954826 | 3 |
Errors are thrown for invalid strides. | def IMuO(YKHO, tYiq, dvgN, e5sz, ETfU, pfA5, c1Rj):
NXYx.Conv1DTranspose(output_channels=tYiq, output_shape=pfA5 if c1Rj else None, kernel_shape=3, padding=dvgN, stride=1, name='conv1', use_bias=e5sz)
XObx = 'must be either a positive integer or an iterable of positive integers of size 1'
with YKHO.assertRa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMuO(YKHO, e5sz):\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=1, use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=[1], use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_s... | [
"0.6946206",
"0.69117963",
"0.6891777",
"0.67954826",
"0.6682431",
"0.6406536",
"0.63709587",
"0.58808225",
"0.585726",
"0.58539647",
"0.58204424",
"0.5808992",
"0.57003635",
"0.5625724",
"0.55856574",
"0.5568732",
"0.5522062",
"0.54916006",
"0.5466188",
"0.54643273",
"0.5458... | 0.6713288 | 4 |
Test that the number of output and input channels are equal. | def FB9x(YKHO, e5sz):
ApQ8 = tuKI.randint(1, 32)
g4y1 = ZylS.placeholder(ZylS.float32, shape=[1, 10, 10, ApQ8])
j2cC = NXYx.InPlaneConv2D(kernel_shape=3, use_bias=e5sz)
XObx = 'Variables in in_plane_conv2d not instantiated yet'
with YKHO.assertRaisesRegexp(NXYx.NotConnectedError, XObx):
bGrB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brXj(pf9y, a6Jb, UJgg):\n VZhH = QF3_((3, a6Jb), lambda WKvO: 1)\n hlel = VZhH(pf9y)\n wnIm = pf9y.axes + UJgg\n assert hlel.axes.is_equal_set(wnIm), 'Output axes are not input axes + channel axis:{} != {} + {}'.format(hlel.axes, pf9y.axes, UJgg)",
"def OrGr(YKHO):\n OrGr = 2\n YKHO.encoder... | [
"0.664674",
"0.66323465",
"0.62907904",
"0.6225441",
"0.6186593",
"0.6177469",
"0.61383563",
"0.61258215",
"0.6115799",
"0.60866636",
"0.60537875",
"0.60298043",
"0.6022985",
"0.6013691",
"0.6011908",
"0.600336",
"0.59967935",
"0.59686774",
"0.59686774",
"0.59571606",
"0.5956... | 0.7567504 | 0 |
Test that the generated shapes are correct when input shape not known. | def Agr2(YKHO, e5sz):
g4y1 = ZylS.placeholder(ZylS.float32, shape=[None, None, None, YKHO.in_channels], name='inputs')
j2cC = NXYx.DepthwiseConv2D(channel_multiplier=YKHO.channel_multiplier, kernel_shape=YKHO.kernel_shape, padding=NXYx.SAME, stride=1, use_bias=e5sz)
hlel = j2cC(g4y1)
with YKHO.test_sess... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXDf(YKHO):\n raise DuvM.SkipTest('Failing after fixing Poly unsoundness #4878')\n with YKHO.assertRaisesRegex(TypeError, ZbWC.escape('add got incompatible shapes for broadcasting: (v,), (4,)')):\n YKHO.CheckShapePolymorphism(lambda WKvO, LVAh: WKvO + LVAh, input_signature=[ZylS.TensorSpec([None])... | [
"0.747374",
"0.7306262",
"0.7246578",
"0.71046007",
"0.7103459",
"0.7069459",
"0.7061438",
"0.70431477",
"0.70415485",
"0.70191",
"0.70083374",
"0.69907653",
"0.6967768",
"0.69449884",
"0.693447",
"0.68732506",
"0.6869797",
"0.68370634",
"0.6822366",
"0.6821249",
"0.680451",
... | 0.6316665 | 66 |
Test that errors are thrown for invalid kernel shapes. | def DLDg(YKHO, e5sz):
NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=[3, 4])
NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3)
tf1m = 'Invalid kernel shape: x is \\[3], must be either a positive integer or an iterable of positive integers of size 2'
with YKHO.assertRaisesRegexp(NXYx.In... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DLDg(YKHO):\n NXYx.Conv3D(output_channels=10, kernel_shape=[3, 4, 5], name='conv1')\n NXYx.Conv3D(output_channels=10, kernel_shape=3, name='conv1')\n with YKHO.assertRaisesRegexp(NXYx.Error, 'Invalid kernel shape.*'):\n NXYx.Conv3D(output_channels=10, kernel_shape=[3, 3], name='conv1')\n ... | [
"0.78873444",
"0.7609064",
"0.7360609",
"0.7042799",
"0.690837",
"0.6873189",
"0.67869174",
"0.6778277",
"0.67750585",
"0.67590505",
"0.6743831",
"0.6742346",
"0.66965526",
"0.6679077",
"0.66599214",
"0.6624427",
"0.6584516",
"0.6572337",
"0.6564328",
"0.65145725",
"0.6510687... | 0.66158754 | 16 |
Test that errors are thrown for invalid strides. | def IMuO(YKHO, e5sz):
NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3, stride=1, use_bias=e5sz)
NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3, stride=[1] * 2, use_bias=e5sz)
NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3, stride=[1] * 4, use_bias=e5sz)
tf1m = 'Invalid st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMuO(YKHO, e5sz):\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=1, use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=[1], use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_s... | [
"0.7381683",
"0.7375827",
"0.7318227",
"0.72526807",
"0.7220994",
"0.70877385",
"0.7032898",
"0.6694438",
"0.6598829",
"0.65220535",
"0.6504271",
"0.65038604",
"0.63419694",
"0.63377136",
"0.6329866",
"0.6325649",
"0.63096607",
"0.63058794",
"0.6295499",
"0.6289325",
"0.62835... | 0.74363095 | 0 |
Test that the generated shapes are correct when input shape not known. | def Agr2(YKHO, e5sz):
g4y1 = ZylS.placeholder(ZylS.float32, shape=[None, None, None, YKHO.in_channels], name='inputs')
j2cC = NXYx.SeparableConv2D(output_channels=YKHO.out_channels_dw, channel_multiplier=1, kernel_shape=YKHO.kernel_shape, padding=NXYx.SAME, use_bias=e5sz)
hlel = j2cC(g4y1)
with YKHO.tes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXDf(YKHO):\n raise DuvM.SkipTest('Failing after fixing Poly unsoundness #4878')\n with YKHO.assertRaisesRegex(TypeError, ZbWC.escape('add got incompatible shapes for broadcasting: (v,), (4,)')):\n YKHO.CheckShapePolymorphism(lambda WKvO, LVAh: WKvO + LVAh, input_signature=[ZylS.TensorSpec([None])... | [
"0.7474064",
"0.7305676",
"0.72460955",
"0.71042717",
"0.71038413",
"0.70690924",
"0.7060619",
"0.7044316",
"0.7040668",
"0.7020431",
"0.7009904",
"0.69902724",
"0.69690907",
"0.6945844",
"0.6933642",
"0.6872379",
"0.6870526",
"0.68379015",
"0.68217283",
"0.6821536",
"0.68054... | 0.6429384 | 51 |
Test that errors are thrown for invalid kernel shapes. | def DLDg(YKHO, e5sz):
NXYx.SeparableConv2D(output_channels=1, channel_multiplier=2, kernel_shape=[3, 4], name='conv1', use_bias=e5sz)
NXYx.SeparableConv2D(output_channels=1, channel_multiplier=1, kernel_shape=3, name='conv1')
tf1m = 'Invalid kernel shape: x is \\[3], must be either a positive integer or an ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DLDg(YKHO):\n NXYx.Conv3D(output_channels=10, kernel_shape=[3, 4, 5], name='conv1')\n NXYx.Conv3D(output_channels=10, kernel_shape=3, name='conv1')\n with YKHO.assertRaisesRegexp(NXYx.Error, 'Invalid kernel shape.*'):\n NXYx.Conv3D(output_channels=10, kernel_shape=[3, 3], name='conv1')\n ... | [
"0.78873444",
"0.7609064",
"0.7360609",
"0.7042799",
"0.690837",
"0.6873189",
"0.6778277",
"0.67750585",
"0.67590505",
"0.6743831",
"0.6742346",
"0.66965526",
"0.6679077",
"0.66599214",
"0.6624427",
"0.66158754",
"0.6584516",
"0.6572337",
"0.6564328",
"0.65145725",
"0.6510687... | 0.67869174 | 6 |
Test that errors are thrown for invalid strides. | def IMuO(YKHO, e5sz):
NXYx.SeparableConv2D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=1, use_bias=e5sz)
NXYx.SeparableConv2D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=[1, 1], use_bias=e5sz)
NXYx.SeparableConv2D(output_channels=1, channel_multiplier=3, kernel_shape=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMuO(YKHO, e5sz):\n NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3, stride=1, use_bias=e5sz)\n NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3, stride=[1] * 2, use_bias=e5sz)\n NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3, stride=[1] * 4, use_bias=e5sz)\n tf1m = 'I... | [
"0.74363095",
"0.7381683",
"0.7318227",
"0.72526807",
"0.7220994",
"0.70877385",
"0.7032898",
"0.6694438",
"0.6598829",
"0.65220535",
"0.6504271",
"0.65038604",
"0.63419694",
"0.63377136",
"0.6329866",
"0.6325649",
"0.63096607",
"0.63058794",
"0.6295499",
"0.6289325",
"0.6283... | 0.7375827 | 2 |
Test that the generated shapes are correct when input shape not known. | def Agr2(YKHO, e5sz):
g4y1 = ZylS.placeholder(ZylS.float32, shape=[None, None, YKHO.in_channels], name='inputs')
j2cC = NXYx.SeparableConv1D(output_channels=YKHO.out_channels_dw, channel_multiplier=1, kernel_shape=YKHO.kernel_shape, padding=NXYx.SAME, use_bias=e5sz)
hlel = j2cC(g4y1)
with YKHO.test_sess... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXDf(YKHO):\n raise DuvM.SkipTest('Failing after fixing Poly unsoundness #4878')\n with YKHO.assertRaisesRegex(TypeError, ZbWC.escape('add got incompatible shapes for broadcasting: (v,), (4,)')):\n YKHO.CheckShapePolymorphism(lambda WKvO, LVAh: WKvO + LVAh, input_signature=[ZylS.TensorSpec([None])... | [
"0.7474064",
"0.7305676",
"0.72460955",
"0.71042717",
"0.71038413",
"0.70690924",
"0.7060619",
"0.7044316",
"0.7040668",
"0.7020431",
"0.7009904",
"0.69902724",
"0.69690907",
"0.6945844",
"0.6933642",
"0.6872379",
"0.6870526",
"0.68379015",
"0.68217283",
"0.6821536",
"0.68054... | 0.6489998 | 40 |
Test that errors are thrown for invalid kernel shapes. | def DLDg(YKHO, e5sz):
NXYx.SeparableConv1D(output_channels=1, channel_multiplier=2, kernel_shape=[3], name='conv1', use_bias=e5sz)
NXYx.SeparableConv1D(output_channels=1, channel_multiplier=1, kernel_shape=3, name='conv1')
tf1m = 'Invalid kernel shape: x is \\[3, 3\\], must be either a positive integer or a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DLDg(YKHO):\n NXYx.Conv3D(output_channels=10, kernel_shape=[3, 4, 5], name='conv1')\n NXYx.Conv3D(output_channels=10, kernel_shape=3, name='conv1')\n with YKHO.assertRaisesRegexp(NXYx.Error, 'Invalid kernel shape.*'):\n NXYx.Conv3D(output_channels=10, kernel_shape=[3, 3], name='conv1')\n ... | [
"0.78873444",
"0.7609064",
"0.7360609",
"0.7042799",
"0.690837",
"0.6873189",
"0.67869174",
"0.6778277",
"0.67750585",
"0.67590505",
"0.6743831",
"0.6742346",
"0.6679077",
"0.66599214",
"0.6624427",
"0.66158754",
"0.6584516",
"0.6572337",
"0.6564328",
"0.65145725",
"0.6510687... | 0.66965526 | 12 |
Test that errors are thrown for invalid strides. | def IMuO(YKHO, e5sz):
NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=1, use_bias=e5sz)
NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=[1], use_bias=e5sz)
NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMuO(YKHO, e5sz):\n NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3, stride=1, use_bias=e5sz)\n NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3, stride=[1] * 2, use_bias=e5sz)\n NXYx.DepthwiseConv2D(channel_multiplier=1, kernel_shape=3, stride=[1] * 4, use_bias=e5sz)\n tf1m = 'I... | [
"0.74363095",
"0.7375827",
"0.7318227",
"0.72526807",
"0.7220994",
"0.70877385",
"0.7032898",
"0.6694438",
"0.6598829",
"0.65220535",
"0.6504271",
"0.65038604",
"0.63419694",
"0.63377136",
"0.6329866",
"0.6325649",
"0.63096607",
"0.63058794",
"0.6295499",
"0.6289325",
"0.6283... | 0.7381683 | 1 |
Errors are thrown for invalid strides. | def IMuO(YKHO):
NXYx.Conv3D(output_channels=10, kernel_shape=3, stride=1, name='conv1')
NXYx.Conv3D(output_channels=10, kernel_shape=3, stride=[1, 1, 1], name='conv1')
NXYx.Conv3D(output_channels=10, kernel_shape=3, stride=[1, 1, 1, 1, 1], name='conv1')
with YKHO.assertRaisesRegexp(NXYx.Error, 'Invalid ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMuO(YKHO, e5sz):\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=1, use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_shape=3, stride=[1], use_bias=e5sz)\n NXYx.SeparableConv1D(output_channels=1, channel_multiplier=3, kernel_s... | [
"0.6946206",
"0.69117963",
"0.6891777",
"0.67954826",
"0.6713288",
"0.6682431",
"0.63709587",
"0.58808225",
"0.585726",
"0.58539647",
"0.58204424",
"0.5808992",
"0.57003635",
"0.5625724",
"0.55856574",
"0.5568732",
"0.5522062",
"0.54916006",
"0.5466188",
"0.54643273",
"0.5458... | 0.6406536 | 6 |
Tests if output shapes are valid. | def QtXK(YKHO, e5sz):
g4y1 = ZylS.placeholder(ZylS.float32, shape=YKHO.in_shape)
j2cC = NXYx.Conv3DTranspose(name='conv3d_1', output_channels=YKHO.out_channels, output_shape=YKHO.out_shape, kernel_shape=YKHO.kernel_shape, padding=YKHO.padding, stride=1, use_bias=e5sz)
o4Jx = j2cC(g4y1)
YKHO.assertTrue(o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(YKHO) -> bool:\n try:\n YKHO.shape\n return True\n except ValueError:\n return False",
"def Fuw0(gOGe, KDwe):\n return True",
"def xQvf(C3ST):\n assert C3ST.r == Mkmy\n assert C3ST.m == r8hN\n assert C3ST.c_.shape == (Mkmy,)\n assert C3ST.A_.shape == (Mkmy, Mk... | [
"0.70775557",
"0.70467687",
"0.6996906",
"0.69412076",
"0.68884826",
"0.68154806",
"0.673054",
"0.6710598",
"0.66996604",
"0.6671283",
"0.6653107",
"0.6619467",
"0.6614694",
"0.6550892",
"0.6476432",
"0.64648855",
"0.6459457",
"0.6456372",
"0.63903147",
"0.636188",
"0.6349985... | 0.0 | -1 |
Tests if output shapes are valid when not specified. | def I39x(YKHO, e5sz):
g4y1 = ZylS.zeros(shape=[3, 5, 5, 5, 2], dtype=ZylS.float32)
j2cC = NXYx.Conv3DTranspose(name='conv3d_1', output_channels=10, output_shape=None, kernel_shape=5, padding=NXYx.SAME, stride=2, use_bias=e5sz)
o4Jx = j2cC(g4y1)
YKHO.assertTrue(o4Jx.get_shape().is_compatible_with((3, 10,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mxS5(hlel: Tensor, Pha6: Tensor) -> None:\n lHmx, tsWk = Pha6.shape[:2]\n MgGh = len(hlel.shape) != 3 or hlel.shape[0] != lHmx or hlel.shape[1] != tsWk\n if MgGh:\n raise ValueError(f'The model output must be `Tensor` of a shape `[batch_size, seq_len, model_dim]` i.e. [{lHmx}, {tsWk}. , `model_... | [
"0.6936147",
"0.6820229",
"0.67594224",
"0.67512584",
"0.66750455",
"0.66330785",
"0.66114026",
"0.6585036",
"0.6539576",
"0.651291",
"0.65008324",
"0.6485075",
"0.6484304",
"0.6352659",
"0.62949973",
"0.62377226",
"0.62211466",
"0.62101907",
"0.6187085",
"0.6183755",
"0.6170... | 0.5603256 | 99 |
Does the `gpg_exists` method return `True` if an executable exists? | def f_VM(YKHO):
YKHO.assertTrue(YKHO.mikla.gpg_exists('ls')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q4iH(N3HV):\n try:\n Yn3K.check_output(f'which {N3HV}', shell=True)\n return True\n except Yn3K.CalledProcessError:\n return False",
"def uEwC(mWFP):\n for pmON in Hy7s.environ['PATH'].split(Hy7s.path.pathsep):\n if pmON and Hy7s.path.exists(Hy7s.path.join(pmON, mWFP)):\n... | [
"0.7030403",
"0.6777927",
"0.6752885",
"0.67500794",
"0.67288655",
"0.67107606",
"0.6676961",
"0.65190625",
"0.6507877",
"0.6464538",
"0.64614016",
"0.6459744",
"0.6372963",
"0.6358733",
"0.6352219",
"0.63188595",
"0.6317301",
"0.6305219",
"0.63042307",
"0.6302163",
"0.629887... | 0.7583465 | 0 |
Does the `gpg_exists` method return `False` if an executable does not exist? | def sEGr(YKHO):
YKHO.assertFalse(YKHO.mikla.gpg_exists('the-amber-room')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f_VM(YKHO):\n YKHO.assertTrue(YKHO.mikla.gpg_exists('ls'))",
"def Q4iH(N3HV):\n try:\n Yn3K.check_output(f'which {N3HV}', shell=True)\n return True\n except Yn3K.CalledProcessError:\n return False",
"def UuKn():\n for D2As in ['gpg2', 'gpg']:\n cPbD = QWPD(D2As)\n ... | [
"0.7638094",
"0.6912175",
"0.6780876",
"0.6716209",
"0.65813255",
"0.65088755",
"0.6411832",
"0.6361488",
"0.6329714",
"0.62900454",
"0.6245905",
"0.6234499",
"0.6233429",
"0.6215781",
"0.62155896",
"0.61991334",
"0.6187949",
"0.61727655",
"0.61713296",
"0.6134203",
"0.612251... | 0.7319261 | 1 |
Returns a list of existing tables that were affected by the fixer | def RZYK(YKHO):
tUBc = {}
for hcss in YKHO.ingestible_db_conf_repo.get_ingestible_dbs():
GRKL = hcss.target_db_name
OGUm = hcss.db_type
YKHO.logger.info('Fixing consistency for DB Type: %s, Target DB: %s' % (OGUm, GRKL))
YKHO.prepare_database(GRKL)
tjch = jCT5(GRKL, OGUm)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xU0C(YKHO):\n if YKHO.table is None:\n raise cu1t('Target table has not been set.')\n return ['{}_wt'.format(YKHO.table), '{}_log'.format(YKHO.table), '{}_e1'.format(YKHO.table), '{}_e2'.format(YKHO.table)]",
"def SwKF(YKHO):\n return YKHO.dbNames",
"def wxxK(YKHO):\n try:\n for v... | [
"0.6457245",
"0.6424677",
"0.6362183",
"0.6348534",
"0.62072384",
"0.62035435",
"0.62010133",
"0.6188855",
"0.6100579",
"0.6087688",
"0.6062063",
"0.60454524",
"0.590614",
"0.58467525",
"0.5834066",
"0.58268905",
"0.57733846",
"0.5759719",
"0.57479054",
"0.5745992",
"0.574278... | 0.65083075 | 0 |
Get the tiered price for the specified product and quantity. If it's a product variation, we check the parent too | def Xtne(YKHO, EcuX, Lx3t, Sgcx=ZjSO('1')):
lGdg = Lx3t.tieredprices.exclude(expires__isnull=False, expires__lt=qcWV.date.today()).filter(quantity__lte=Sgcx, pricingtier=EcuX)
if lGdg.count() > 0:
return lGdg.order_by('-quantity')[0]
if 'ProductVariation' in Lx3t.get_subtypes():
Lwzy = Lx3t.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_Zi(YKHO, cTRz: int) -> None:\n return YKHO.price_per_unit * cTRz",
"def _M0N(YKHO):\n YKHO.assertEqual('%.2f' % YKHO.p1.get_price_net(YKHO.request), '1.00')\n YKHO.assertEqual('%.2f' % YKHO.v1.get_price_net(YKHO.request), '1.00')\n YKHO.v1.active_price = True\n YKHO.v1.save()\n YKHO.asser... | [
"0.6363095",
"0.628717",
"0.6219108",
"0.61894006",
"0.596654",
"0.5897446",
"0.5892052",
"0.5887688",
"0.5854619",
"0.58472514",
"0.5765326",
"0.57305706",
"0.57241076",
"0.56614685",
"0.5659923",
"0.5640697",
"0.56107175",
"0.56066424",
"0.5524213",
"0.5515812",
"0.55145085... | 0.77360284 | 0 |
Get the current price as modified by all listeners. | def nhHy(YKHO):
xrkC = _8l_(YKHO)
WOZF.satchmo_price_query.send(YKHO, adjustment=xrkC, slug=YKHO.product.slug, discountable=YKHO.product.is_discountable)
return xrkC.final_price() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\n return YKHO._price",
"def NXNA(YKHO):\n return YKHO.price",
"def hI0L(YKHO):\n return YKHO.price_",
"def h... | [
"0.7942438",
"0.7873461",
"0.7873461",
"0.7873461",
"0.77878314",
"0.77763563",
"0.76093155",
"0.75149006",
"0.75149006",
"0.74750245",
"0.74351263",
"0.74298775",
"0.7282144",
"0.7254739",
"0.70319283",
"0.6977709",
"0.6962556",
"0.69540745",
"0.6911767",
"0.6904843",
"0.686... | 0.6917383 | 18 |
A PyTorch Dataset for loading Coco and CocoStuff annotations and converting them to scene graphs on the fly. | def FIMM(YKHO, Kp4Y, e4xG, kZCJ, N0ky=(64, 64), blK2=16, eMZt=True, uxrk=None, oFI9=0.01, jTUi=1, _YJS=8, cbmO=False, axjT=None):
super(x3i3, YKHO).__init__()
YKHO.image_dir = Kp4Y
YKHO.mask_size = blK2
YKHO.max_samples = uxrk
YKHO.normalize_images = eMZt
YKHO.set_image_size(N0ky)
YKHO.vocab... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RJrO():\n oxOY = gRy7()\n toLs = ['__background__', 'person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck', 'boat', 'traffic light', 'fire hydrant', 'stop sign', 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe', 'backpa... | [
"0.69323593",
"0.6685328",
"0.6539027",
"0.6506792",
"0.645301",
"0.6449488",
"0.6390492",
"0.6368818",
"0.6361761",
"0.63201165",
"0.63115907",
"0.6282667",
"0.62633115",
"0.62528783",
"0.6242691",
"0.6220108",
"0.61104697",
"0.6061314",
"0.5960883",
"0.5876139",
"0.5867194"... | 0.5239029 | 85 |
Returns the default collector settings | def yDgW(YKHO):
GPtr = super(p3vb, YKHO).get_default_config()
GPtr.update({'path': 'waste'})
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDgW(YKHO):\n GPtr = super(leyK, YKHO).get_default_config()\n GPtr.update({'enabled': 'True', 'fs': ',', 'timeout': 300})\n return GPtr",
"def qimH():\n return {}",
"def yDgW(YKHO):\n GPtr = super(iwOa, YKHO).get_default_config()\n GPtr.update({'url': lMln, 'path': 'dropwizard'})\n ret... | [
"0.70514023",
"0.7008024",
"0.69490683",
"0.6713433",
"0.65743333",
"0.65309024",
"0.6521635",
"0.6515402",
"0.6466526",
"0.6447688",
"0.6397818",
"0.6380512",
"0.63683224",
"0.6357208",
"0.63517016",
"0.6331759",
"0.63120294",
"0.62353724",
"0.6231899",
"0.62074906",
"0.6201... | 0.641337 | 10 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
if x0eS != 'all':
X_bn = ['january', 'february', 'march', 'april', 'may'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.77491575 | 48 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
hFPs = jQ3Z['month'].value_counts().idxmax()
FU_V = q18p[hFPs - 1].title()
print(FU_V + ' is the most common month.')
fI26 = jQ3Z['day_of_week'].value_counts().idxmax()
print(fI26, ' is the most ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583... | 0.7387662 | 46 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
bTuL = jQ3Z['Start Station'].value_counts().idxmax()
print(bTuL, ' is most commonly used start station.')
Nj0t = jQ3Z['End Station'].value_counts().idxmax()
print(Nj0t, ' is most commonly used end s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.69246376 | 82 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = jQ3Z['Trip Duration'].sum()
print(bJiw, ' is the total travel time.')
XVYG = jQ3Z['Trip Duration'].mean()
print('{:.2f} is the mean travel time.'.format(XVYG))
print('\nThis took %s seconds.' % (ITS7.time() -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.7796756 | 48 |
r""" Returns the unique elements of the input tensor. | def wBqQ(input, sorted=True, jcN9=False, DHOZ=False, yDqo=_uqo.int):
if not jcN9 and (not DHOZ):
return _uqo._C.unique(input, sorted, dtype=yDqo)
else:
return _uqo._C.unique(input, sorted, return_inverse=jcN9, return_counts=DHOZ, dtype=yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kcwm(WKvO):\n try:\n jbXL = WKvO.flatten()\n if jbXL.size == 0:\n return jbXL\n jbXL.sort()\n or8S = MPiJ(([True], jbXL[1:] != jbXL[:-1]))\n return jbXL[or8S]\n except AttributeError:\n DumB = list(set(WKvO))\n DumB.sort()\n return MF4b(D... | [
"0.70321065",
"0.6876299",
"0.68101525",
"0.65971196",
"0.6447664",
"0.6408536",
"0.6407627",
"0.6402337",
"0.6345468",
"0.6266848",
"0.62202865",
"0.6127053",
"0.6114195",
"0.61141056",
"0.6111312",
"0.61053115",
"0.6069881",
"0.6031665",
"0.6027739",
"0.59937423",
"0.596469... | 0.6147356 | 11 |
Test that SALGenerics.xml defines the expected set of generic topics. | def R6bu() -> None:
h5Ou = IFfo()
Hiy8 = kvSI('none', 'generic_topics')
if Hiy8:
trZe.skip(f'{Hiy8}: {h5Ou.name}')
with open(str(h5Ou), 'r', encoding='utf-8') as eHNT:
J_Es = cGyw.parse(eHNT)
tk5Y = J_Es.getroot()
emLW = 'SALGeneric_'
Gxdd = len(emLW)
AdpB = set()
HWi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ibKC(rac8: pathlib.Path, siwH: str, rlUa: str) -> None:\n if rlUa == 'Telemetry':\n pass\n else:\n M5Ph = 'SAL' + rlUa.rstrip('s')\n Hiy8 = kvSI(siwH, rlUa)\n if Hiy8:\n trZe.skip(f'{Hiy8}: {rac8.name}')\n with open(str(rac8), 'r', encoding='utf-8') as eHNT:\... | [
"0.7116352",
"0.6682334",
"0.6400323",
"0.6252207",
"0.6087275",
"0.6015074",
"0.6013223",
"0.5904566",
"0.57877874",
"0.5760492",
"0.569128",
"0.5643429",
"0.5636966",
"0.5568564",
"0.5563466",
"0.55594784",
"0.5552239",
"0.55276155",
"0.5500545",
"0.5481077",
"0.5453787",
... | 0.84279233 | 0 |
Update the given comboBox | def JHe9(Upkg, DumB, XkN1='True'):
if XkN1:
Upkg.blockSignals(True)
else:
pass
if not DumB:
DumB = ['None']
J6uY = Upkg.currentText()
Upkg.clear()
Upkg.addItems(DumB)
if J6uY in DumB:
arZp(Upkg, J6uY)
else:
Upkg.setCurrentIndex(0)
for YRbF, ZfU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OoXI(YKHO, y4fz):\n raise NotImplementedError",
"def Dg92(YKHO):\n qeZI = YKHO.ui.comboBoxAction.currentText().lower()\n YKHO.parameters['action'] = qeZI\n YKHO.changed.emit()",
"def mzch(YKHO):\n d6pt = YKHO._model.currentIndex()\n FcDu = YKHO._model.data(d6pt, uaAZ.UserRole + 4)\n QX... | [
"0.6899384",
"0.686422",
"0.6811405",
"0.67945963",
"0.67711675",
"0.67524314",
"0.6749332",
"0.65180737",
"0.64715",
"0.6388051",
"0.6365394",
"0.6249386",
"0.6186808",
"0.6160146",
"0.6093576",
"0.6067558",
"0.6023498",
"0.6001118",
"0.59906507",
"0.59624237",
"0.5953897",
... | 0.7086308 | 0 |
Produce languagespecific date representation. | def sbQu(YKHO, _c1T):
jbn3 = zyep()
TCZ_, iTbi = _c1T.accept(jbn3)
TCZ_ = vIwR.Template(YKHO.tr(TCZ_))
YSA3 = {}
for H5ew, wEf2 in iTbi.items():
if isinstance(wEf2, lCeM):
YSA3[H5ew] = YKHO._tr_cal_date(wEf2)
else:
YSA3[H5ew] = wEf2
return TCZ_.substitute(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g7yF(OaeV, _c1T, format='long'):\n DuqQ = rDcu(OaeV['LANG'])\n if _c1T:\n return pbww(_c1T, locale=DuqQ, format=format)\n else:\n return ''",
"def H2lb(YKHO):\n Ot4E, XMyW = YKHO.setup_datetime()\n qn2E = XMyW.astimezone(Ot4E)\n return qn2E.strftime('%d-%m-%Y')",
"def FEw0(Y... | [
"0.61531264",
"0.61133605",
"0.6112571",
"0.60366064",
"0.5910946",
"0.5909375",
"0.5898708",
"0.58553475",
"0.5848724",
"0.5848724",
"0.5846263",
"0.5845879",
"0.580606",
"0.5805439",
"0.5768328",
"0.57455415",
"0.57403564",
"0.5734783",
"0.5724341",
"0.5680319",
"0.5636849"... | 0.6429855 | 0 |
Returns translation of a month name. For a given GEDCOM month name return translated month name. | def eXO9(YKHO, x0eS):
if x0eS is not None:
x0eS = YKHO.tr('MONTH.' + x0eS.upper())
return x0eS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WRVp(YKHO, x0eS):\n XMq6 = [GIN8 for GIN8 in YKHO.months if GIN8.istitle()]\n Pd0P = int(x0eS) - 1\n return XMq6[Pd0P]",
"def yZ3l(YKHO, x0eS):\n return YKHO.month_names[x0eS.month - 1]",
"def yZ3l(TMqc):\n NCqB.setlocale(NCqB.LC_TIME, 'et-EE')\n return GRk0.month_name[TMqc]",
"def yZ3l... | [
"0.7420913",
"0.7374648",
"0.73278564",
"0.72874063",
"0.72810477",
"0.7172358",
"0.7106204",
"0.6751799",
"0.6750053",
"0.6593021",
"0.6485294",
"0.6474721",
"0.6395206",
"0.6246248",
"0.61867464",
"0.6159261",
"0.609756",
"0.6079453",
"0.60544723",
"0.6043487",
"0.60133487"... | 0.7748758 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
QrM1.imshow(Bcwd, interp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.819363",
"0.8094859",
"0.8028102",
"0.8018164",
"0.799278",
"0.79902315",
"0.7979656",
"0.7974647",
"0.79595697",
"0.7956129",
"0.7936602",
"0.79336774",
"0.7933392",
"0.79303294",
"0.79252326",
"0.7923459",
"0.79230803",
"0.79221183",
"0.79218185",
"0.7921176",
"0.7916744... | 0.78127986 | 100 |
Serialize a date/time value into an ISO8601 text representation adjusted (if needed) to UTC timezone. | def HCH5(JRYC):
if JRYC.tzinfo:
JRYC = JRYC.astimezone(wyKz).replace(tzinfo=None)
return JRYC.isoformat() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JuIU(wEf2):\n return Weve(wEf2)",
"def D1gm(BWXx: Union[datetime.datetime, datetime.time]) -> str:\n RI88 = BWXx.isoformat()\n if BWXx.tzinfo is None:\n RI88 += 'Z'\n else:\n RI88 = ZbWC.sub('[+-]00:00$', 'Z', RI88)\n return RI88",
"def MBAl(wEf2):\n return wEf2.isoformat()"... | [
"0.75783527",
"0.7445774",
"0.7327243",
"0.7323873",
"0.7222513",
"0.7213059",
"0.7203276",
"0.7202411",
"0.7156058",
"0.71076936",
"0.709304",
"0.7047264",
"0.7027501",
"0.69711757",
"0.6877027",
"0.68557733",
"0.6692634",
"0.66862136",
"0.66354734",
"0.6536075",
"0.64390963... | 0.7416143 | 2 |
Check if list is list or a CSV string. In case of string, create a list. | def D6Qu(YKHO, MVVZ):
if MVVZ == None:
return []
import types
ArHY = isinstance(MVVZ, types.StringTypes)
S7ID = isinstance(MVVZ, list)
assert ArHY or S7ID, 'You should provide a list of files as list or as CVS string!'
if S7ID:
return MVVZ
if ArHY:
import re
T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rqV3(sltq):\n if type(sltq) == str:\n return [sltq]\n else:\n return sltq.tolist()",
"def j5rG(d7pR):\n return isinstance(d7pR, g760.Sequence) and (not sd4x(d7pR))",
"def j5rG(ZfUD):\n return isinstance(ZfUD, list)",
"def Lm1b(YKHO, KCHu):\n return isinstance(KCHu, type(list(... | [
"0.7061733",
"0.7050197",
"0.6987805",
"0.69605166",
"0.689558",
"0.68587095",
"0.68108124",
"0.6809189",
"0.67672557",
"0.66692865",
"0.66393006",
"0.66272616",
"0.66255385",
"0.6541521",
"0.6526167",
"0.6524329",
"0.6472686",
"0.6454661",
"0.64219445",
"0.641768",
"0.640564... | 0.0 | -1 |
Get one item from cfg dictionary. If the item is nested, then use "." to set the path to the item. | def ZfUD(YKHO, zDRZ):
YKHO.log.info('Not implemented yet... Sorry!')
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rF6r(dLQw, ZfUD):\n TJVp = ZfUD.split('.')\n yE55 = dLQw\n for D2yC in TJVp:\n yE55 = yE55[D2yC]\n return yE55",
"def OP2O(YKHO, ZfUD):\n return YKHO._config[ZfUD]",
"def kTCt(YKHO, H5ew):\n return YKHO.config[H5ew] if H5ew in YKHO.config.keys() else None",
"def rF6r(GPtr, XLMv, ... | [
"0.767233",
"0.69134456",
"0.6912901",
"0.6631167",
"0.65893537",
"0.64392567",
"0.612385",
"0.5953196",
"0.5926586",
"0.58816564",
"0.5819377",
"0.5806405",
"0.57977265",
"0.5790318",
"0.5749713",
"0.570999",
"0.5680949",
"0.5659986",
"0.56548715",
"0.5633158",
"0.5627092",
... | 0.0 | -1 |
Asynchronously send a PATCH request to the Twitch API with the user's authentication. The scopes required for a given Twitch API request must have been registered for with `TwitchLogin.RegisterMod(mod)`, with the `mod` object having the relevant `TwitchLogin.TwitchScope` object in its `TwitchScopes` property. The user ... | def laML(GkAb: str, FD5x: Any=None, QyXt: Any=None, *, xSpp: Callable[[int, Dict[str, Any]], None]) -> None:
VNUm('PATCH', GkAb, FD5x, QyXt, Callback=xSpp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def patch(bD7m, cuiw=None, **B2fa):\n NKcE = 'PATCH'\n _hkX = await N0q9(NKcE, bD7m, session=cuiw, **B2fa)\n return _hkX",
"def l_lP(YKHO, QePW, _sei=None):\n VZ6T = QePW.data.get('is_stop_requested', False)\n if VZ6T:\n iXC1 = YKHO.get_object()\n if QePW.user != iXC1.user and ... | [
"0.53972507",
"0.5281161",
"0.52241457",
"0.5180269",
"0.51552546",
"0.5094652",
"0.49817306",
"0.4965396",
"0.4951894",
"0.49072388",
"0.49016032",
"0.4883695",
"0.4872769",
"0.4844847",
"0.4844847",
"0.4844847",
"0.4844847",
"0.4844847",
"0.4844847",
"0.4844847",
"0.4844847... | 0.49233624 | 9 |
Returns the uplink settings for your MX network. | def mYyi(YKHO, fK06: str):
yIVm = {'tags': ['Uplink settings'], 'operation': 'getNetworkUplinkSettings'}
Eorv = f'/networks/{fK06}/uplinkSettings'
return YKHO._session.get(yIVm, Eorv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gUSR(YKHO):\n return YKHO.inspection['NetworkSettings']",
"def zqvp(YKHO):\n return YKHO.m_connection.akamai_ips",
"def Fb8A(YKHO):\n return YKHO.attrs.get('NetworkSettings', {}).get('Ports', {})",
"def InYB(YKHO):\n M4N3 = YKHO.device()\n if M4N3:\n return M4N3.getManageIp()\n r... | [
"0.58161306",
"0.51639074",
"0.51633143",
"0.51286435",
"0.5054297",
"0.5023034",
"0.5008097",
"0.49733463",
"0.49202013",
"0.4920022",
"0.49150968",
"0.4886921",
"0.48844305",
"0.48785248",
"0.48699006",
"0.48679027",
"0.48553163",
"0.4810464",
"0.48043612",
"0.47876775",
"0... | 0.612511 | 0 |
Check if a node with the name top_C_001_CTRL exist. | def GfdN(YKHO):
if TlDD.objExists('top_C_001_CTRL'):
YKHO.status = 'OK'
else:
YKHO.status = 'ERROR'
YKHO.addError('No node with the name top_C_001_CTRL')
YKHO.errorMessage = 'No top Controler' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VjDw(YKHO):\n return YKHO.oid is not None",
"def Ierk(YKHO, exwG):\n return exwG in YKHO.node_dict",
"def Akpm(YKHO, Q6kx):\n if not Q6kx or not Q6kx.key:\n raise IndexError(\"Node doesn't exist!\")",
"def isVy(YKHO, hXpG):\n return YKHO.getComponentByLongName(hXpG) != None",
"def US... | [
"0.5932263",
"0.5902607",
"0.5733696",
"0.57212734",
"0.56526434",
"0.5621299",
"0.5572999",
"0.5558627",
"0.5558627",
"0.55556417",
"0.55387175",
"0.5525269",
"0.55163336",
"0.5483244",
"0.5483244",
"0.5477957",
"0.5425302",
"0.5420195",
"0.54100865",
"0.5401311",
"0.5385778... | 0.80126154 | 0 |
Check if the name of the parent of the asset node match with the naming convention. | def GfdN(YKHO):
IVDf = list()
N3HV = ZbWC.compile('^[A-Z]{4}[0-9]{2}_C_[0-9]{3}_G[A-Z]{3}$')
aO9F = ZbWC.compile('^[A-Z]{4}[0-9]{2}_C_[0-9]{3}_G[A-Z]{2}$')
for zqPE in TlDD.ls(type='gAsset'):
CXDR = zqPE.getParent().nodeName(stripNamespace=True)
if not N3HV.match(CXDR):
if no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kgXq(YEnM, dx2i):\n if YEnM.parent is None:\n return False\n if YEnM.parent.name is None:\n return False\n elif YEnM.parent.name == dx2i:\n return True\n else:\n return kgXq(YEnM.parent, dx2i)",
"def QT00(YKHO, mWFP: str) -> bool:\n return mWFP in YKHO",
"def XdZv... | [
"0.6530085",
"0.65255064",
"0.6508738",
"0.6490767",
"0.6333319",
"0.62200254",
"0.6060303",
"0.60277796",
"0.6008233",
"0.6005832",
"0.6003955",
"0.593273",
"0.589719",
"0.58755153",
"0.58633924",
"0.5859596",
"0.58096474",
"0.57927936",
"0.5749615",
"0.5744222",
"0.5742705"... | 0.0 | -1 |
Check if the namespaces are legal. | def GfdN(YKHO):
kMcG = list()
oFpk = ZbWC.compile('^[A-Z]{4}[0-9]{2}_[0-9]{3}$')
UIRD = ZbWC.compile('^SH[0-9]{4}_[0-9]{3}$')
for Dl0U in TlDD.namespaceInfo(listOnlyNamespaces=True, internal=False, recurse=True):
for _63S in Dl0U.split(':'):
if not oFpk.match(_63S) and (not UIRD.matc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfdN(YKHO):\n kMcG = list()\n N3HV = ZbWC.compile('^[A-Z]{4}[0-9]{2}_[0-9]{3}:$')\n for pBQ0 in TlDD.ls(type='gAsset'):\n if pBQ0.isReferenced() and (not N3HV.match(pBQ0.namespace())):\n kMcG.append(pBQ0)\n if not kMcG:\n YKHO.status = 'OK'\n else:\n YKHO.status =... | [
"0.7497519",
"0.7126947",
"0.65850127",
"0.6554628",
"0.655144",
"0.6361884",
"0.6348672",
"0.6336307",
"0.63176185",
"0.6308767",
"0.61710936",
"0.61086893",
"0.6087368",
"0.6029946",
"0.60256046",
"0.5975307",
"0.5941907",
"0.5937787",
"0.5937092",
"0.5903786",
"0.58948714"... | 0.76849836 | 0 |
Returns the unit price for the move | def FayU(YKHO):
YKHO.ensure_one()
if YKHO.subcontract_line_id and YKHO.product_id.id == YKHO.subcontract_line_id.product_id.id:
zFiD = YKHO.subcontract_line_id
T4Wy = zFiD.order_id
FpYa = zFiD.price_unit
if zFiD.taxes_id:
FpYa = zFiD.taxes_id.with_context(round=False)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LAFe(YKHO, KBgZ, PObu, BZN_, QpfX=None):\n return BZN_.cost or BZN_.price_unit or BZN_.product_id.standard_price",
"def FayU(YKHO):\n YKHO.ensure_one()\n if YKHO.purchase_line_id and YKHO.product_id.id == YKHO.purchase_line_id.product_id.id:\n vLxw = YKHO.env['decimal.precision'].precision_ge... | [
"0.8033934",
"0.794004",
"0.701637",
"0.6741477",
"0.6717255",
"0.6713961",
"0.6713961",
"0.66986066",
"0.66445947",
"0.64631796",
"0.6445394",
"0.6403125",
"0.63941884",
"0.6365873",
"0.63428265",
"0.63428265",
"0.63428265",
"0.6324418",
"0.6314691",
"0.6286195",
"0.6263461"... | 0.7457025 | 2 |
Convert object label to Training label for objectness loss | def yCFY(nvWN, zNig, B1Wx=0.5, dgIT=oyIN.array([0.0, -50.0, -4.5]), NXpY=4, WKvO=(0, 90), LVAh=(-50, 50), epBp=(-4.5, 5.5)):
NVcq = oyIN.logical_and(nvWN[:, 0] < WKvO[1], nvWN[:, 0] >= WKvO[0])
OnSs = oyIN.logical_and(nvWN[:, 1] < LVAh[1], nvWN[:, 1] >= LVAh[0])
Z3kR = oyIN.logical_and(nvWN[:, 2] < epBp[1],... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X6jt(YKHO, RqhP):\n return YKHO.coco_labels_inverse[RqhP]",
"def X6jt(YKHO, RqhP):\n return YKHO.coco_labels_inverse[RqhP]",
"def Hlfn(nvEb):\n EevU = {'0': 'neutral', '1': 'calm', '2': 'happy', '3': 'sad', '4': 'angry', '5': 'fearful', '6': 'disgust', '7': 'surprised'}\n for H5ew, BWXx in EevU... | [
"0.62724924",
"0.62434286",
"0.62132126",
"0.6201874",
"0.6195789",
"0.6153648",
"0.615067",
"0.6133608",
"0.6133375",
"0.60148764",
"0.59861636",
"0.5978544",
"0.59243834",
"0.5890846",
"0.5884813",
"0.5822075",
"0.5794943",
"0.5783297",
"0.57597214",
"0.575959",
"0.57465214... | 0.0 | -1 |
Returns the link type to use. This will simply return the given link_type unless one or both of the components is the SpecialMixerComponent, which can only do horizontal or matched_track_only. | def X2ic(g7S7, bbJt, mSc9):
ZEmM = isinstance(g7S7, UoBm) or isinstance(bbJt, UoBm)
if ZEmM and mSc9 is not gMjP.horizontal:
mSc9 = gMjP.matched_track_only
return mSc9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye0R(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'schema_item_type_link')",
"def lzGO(YKHO):\n return tuKI.choice(YKHO.LINKAGE_TYPE)",
"def uhLY(YKHO, mSc9):\n return (QZnA for QZnA in YKHO.links if QZnA.get('type', '') == mSc9)",
"def eL1J(YKHO):\n raise NotImplementedError()",
"def goOu(Y... | [
"0.5603517",
"0.55006784",
"0.53137785",
"0.52385145",
"0.51456344",
"0.51456344",
"0.505354",
"0.5008521",
"0.4930851",
"0.4930851",
"0.49079278",
"0.48910624",
"0.48759028",
"0.48514178",
"0.4844459",
"0.4826265",
"0.47952557",
"0.47923282",
"0.47908473",
"0.47568673",
"0.4... | 0.8483192 | 0 |
tensorflow models take inputs in the form of dictionary, so lets initialize the weights and biases as given below. | def XkMX(WbAn):
ovOi = {'weights': ZylS.Variable(ZylS.random_normal([784, EICx])), 'biases': ZylS.Variable(ZylS.random_normal([EICx]))}
fWrR = {'weights': ZylS.Variable(ZylS.random_normal([EICx, Pfqm])), 'biases': ZylS.Variable(ZylS.random_normal([Pfqm]))}
ueDa = {'weights': ZylS.Variable(ZylS.random_normal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilRF(YKHO):\n YKHO.product_embeddings = ZylS.get_variable(name='product_embeddings', shape=[50000, 300], dtype=ZylS.float32)\n YKHO.aisle_embeddings = ZylS.get_variable(name='aisle_embeddings', shape=[250, 50], dtype=ZylS.float32)\n YKHO.department_embeddings = ZylS.get_variable(name='department_embed... | [
"0.71508247",
"0.69941616",
"0.69117284",
"0.6856355",
"0.6852571",
"0.68191075",
"0.6812003",
"0.6794182",
"0.66336554",
"0.6599237",
"0.65786254",
"0.6572007",
"0.6555084",
"0.65550345",
"0.65287083",
"0.6478359",
"0.64674765",
"0.64668727",
"0.6450922",
"0.64502835",
"0.64... | 0.0 | -1 |