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 |
|---|---|---|---|---|---|---|
Constructs an operator from an array of diagonals. | def sskq(ivq9, gQVb=None, Htse=None, ROpF=None, *, yDqo=None):
yDqo = yDqo or gCuF.core['default_dtype'] or BdPz.Dia
gQVb = [0] if gQVb is None else gQVb
nPrm = BdPz.diag[yDqo](ivq9, gQVb, ROpF)
return lNmN(nPrm, dims=Htse, type='oper', copy=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jHkb(YKHO, AzT8, f0v8):\n tpio = f0v8.truncated_dim\n d6pt = range(tpio)\n NuUb = oyIN.zeros((tpio, tpio), dtype=oyIN.float_)\n NuUb[d6pt, d6pt] = AzT8\n return YKHO.identity_wrap(NuUb, f0v8)",
"def sGWe(Csk6, QpfX=bfNw):\n exwG = len(Csk6)\n o4sw = VNqG(exwG, exwG, QpfX)\n SWVT(o4sw,... | [
"0.65071154",
"0.59069145",
"0.586862",
"0.5804937",
"0.5654129",
"0.5586014",
"0.5576276",
"0.5488109",
"0.5435257",
"0.54153854",
"0.5408845",
"0.5353578",
"0.53513896",
"0.5340385",
"0.5330635",
"0.5296116",
"0.5284892",
"0.52455354",
"0.5238309",
"0.52167505",
"0.52073",
... | 0.59381104 | 1 |
Determines whether this position is on the board | def ufIw(YKHO, oeNL: np.ndarray) -> bool:
if 0 > oeNL[0] or oeNL[0] >= P5Bq:
return False
if 0 > oeNL[1] or oeNL[1] >= P5Bq:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GKu2(YKHO, oeNL):\n YRbF, r845 = oeNL\n return 0 <= YRbF < jRFz and 0 <= r845 < yXc0",
"def SSUM(WKvO: int, LVAh: int) -> bool:\n return WKvO >= 0 and WKvO < FNt1 and (LVAh < K9Rh)",
"def GKu2(YKHO):\n if -1 < YKHO._rank < 8 and -1 < YKHO._file < 8:\n return True\n return False",
"d... | [
"0.81498706",
"0.78732497",
"0.7755435",
"0.7717559",
"0.75796986",
"0.75289285",
"0.7458956",
"0.745256",
"0.73967874",
"0.7356471",
"0.71337366",
"0.7132117",
"0.71007866",
"0.70901364",
"0.7058172",
"0.704911",
"0.7046944",
"0.7008636",
"0.699687",
"0.69832903",
"0.6973063... | 0.8019457 | 1 |
Return the execution price if an order open a position. It depend of the direction of the order and the market bid/ofr prices. If position is long, then returns the market ofr price. If position is short, then returns the market bid price. | def kZyt(YKHO, XSoh):
if XSoh > 0:
return YKHO._market_ofr
elif XSoh < 0:
return YKHO._market_bid
else:
return YKHO._market_ofr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dahh(YKHO):\n if YKHO.price is not None:\n return YKHO.price\n else:\n bo34.info('floating price')\n YKHO.get_orderbook()\n bo34.info(YKHO.orderbook_snapshot)\n pass",
"def vvwh(YKHO, XSoh):\n if XSoh > 0:\n return YKHO._market_bid\n elif XSoh < 0:\n r... | [
"0.64150524",
"0.62830645",
"0.6098872",
"0.6017437",
"0.5974247",
"0.5765821",
"0.57276094",
"0.57276094",
"0.56938624",
"0.5669108",
"0.56382257",
"0.563431",
"0.5617114",
"0.56142503",
"0.5610393",
"0.55896497",
"0.55893433",
"0.55827796",
"0.55815804",
"0.55397147",
"0.55... | 0.7290426 | 0 |
Return the execution price if an order/position is closing. It depend of the direction of the order and the market bid/ofr prices. If position is long, then returns the market bid price. If position is short, then returns the market ofr price. | def vvwh(YKHO, XSoh):
if XSoh > 0:
return YKHO._market_bid
elif XSoh < 0:
return YKHO._market_ofr
else:
return YKHO._market_bid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZyt(YKHO, XSoh):\n if XSoh > 0:\n return YKHO._market_ofr\n elif XSoh < 0:\n return YKHO._market_bid\n else:\n return YKHO._market_ofr",
"def qLPg(YKHO, o61b):\n jQ3Z = YKHO.get_option_positions(symbol=o61b)\n if jQ3Z.shape[0] == 0:\n return True\n kLQb = sorted... | [
"0.72555554",
"0.68134475",
"0.60038996",
"0.5954429",
"0.5954429",
"0.5941992",
"0.58907574",
"0.5777061",
"0.57573104",
"0.57491124",
"0.573018",
"0.5716566",
"0.5684228",
"0.5632406",
"0.56132317",
"0.5594526",
"0.5580105",
"0.5559574",
"0.55466336",
"0.5522094",
"0.551983... | 0.7269363 | 0 |
Format the price according to the precision. | def ObCi(YKHO, hI0L):
rhd_ = YKHO._price_limits[3] or 8
m78D = YKHO._price_limits[2] or 1e-08
return G34s(round(hI0L / m78D) * m78D, rhd_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _kBO(YKHO, hI0L):\n rhd_ = YKHO._price_limits[3] or 8\n m78D = YKHO._price_limits[2] or 1e-08\n xOQV = G34s(round(hI0L / m78D) * m78D, rhd_)\n rOG2 = '{:0.0{}f}'.format(xOQV, rhd_)\n if '.' in rOG2:\n rOG2 = rOG2.rstrip('0').rstrip('.')\n return rOG2",
"def Rb0i(Z5kt: Decimal, rhd_: ... | [
"0.83805925",
"0.7948184",
"0.70812726",
"0.6851744",
"0.67090076",
"0.66487193",
"0.6485122",
"0.643207",
"0.6341096",
"0.6275892",
"0.6265527",
"0.62199074",
"0.614903",
"0.611961",
"0.60881114",
"0.60480404",
"0.6036738",
"0.6033766",
"0.59782916",
"0.59467477",
"0.5945127... | 0.69948137 | 3 |
Format the price according to the precision. | def _kBO(YKHO, hI0L):
rhd_ = YKHO._price_limits[3] or 8
m78D = YKHO._price_limits[2] or 1e-08
xOQV = G34s(round(hI0L / m78D) * m78D, rhd_)
rOG2 = '{:0.0{}f}'.format(xOQV, rhd_)
if '.' in rOG2:
rOG2 = rOG2.rstrip('0').rstrip('.')
return rOG2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rb0i(Z5kt: Decimal, rhd_: int=bUZ2) -> str:\n return '{:0.0{}f}'.format(Z5kt, rhd_)",
"def LMHg(YKHO):\n hI0L = '{0:03d}'.format(YKHO.price)\n return hI0L[:-2] + '.' + hI0L[-2:]",
"def ObCi(YKHO, hI0L):\n rhd_ = YKHO._price_limits[3] or 8\n m78D = YKHO._price_limits[2] or 1e-08\n return G... | [
"0.7948184",
"0.70812726",
"0.69948137",
"0.6851744",
"0.67090076",
"0.66487193",
"0.6485122",
"0.643207",
"0.6341096",
"0.6275892",
"0.6265527",
"0.62199074",
"0.614903",
"0.611961",
"0.60881114",
"0.60480404",
"0.6036738",
"0.6033766",
"0.59782916",
"0.59467477",
"0.5945127... | 0.83805925 | 0 |
From quantity return the floor tradable quantity according to min, max and rounded to step size. To make a precise value for trade use format_value from this returned value. quantity float Quantity to adjust min_is_zero boolean Default True. If quantity is lesser than min returns 0 else return min size. | def R02Z(YKHO, cTRz, W3cv=True):
if YKHO.min_size > 0.0 and cTRz < YKHO.min_size:
if W3cv:
return 0.0
return YKHO.min_size
if YKHO.max_size > 0.0 and cTRz > YKHO.max_size:
return YKHO.max_size
if YKHO.step_size > 0:
rhd_ = YKHO._size_limits[3]
return max(r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iNt(YKHO) -> float:\n if YKHO._type == 'power':\n return 1.0\n elif YKHO._type == 'setpoint':\n return YKHO._product.get_data_config_json()['_value_setpoint_min']\n elif YKHO._type == 'fan1':\n ZDXo = 1\n return YKHO._product.get_data_config_json()['_value_fan_limits'][(ZD... | [
"0.6206918",
"0.60330063",
"0.585838",
"0.58567363",
"0.57672155",
"0.57672155",
"0.5741646",
"0.55550754",
"0.54496026",
"0.54421544",
"0.54421544",
"0.5430682",
"0.54051363",
"0.5398593",
"0.5387698",
"0.5387698",
"0.5345768",
"0.5345768",
"0.5345768",
"0.5333195",
"0.53317... | 0.73941565 | 0 |
Writes the information of all tracks in the playlist[s] to a text file in csv kind of format This includins the name, artist, and spotify URL. Each is delimited by a comma. | def TE6v(e8PT, tKA0):
JouE = []
with open(e8PT, 'w+', encoding='utf-8', newline='') as ZQUr:
YRbF = 0
WJI9 = m6_J.writer(ZQUr, delimiter=';')
for LeHk in tKA0['urls']:
for A6b2 in LeHk['songs']:
YLCT = A6b2['track_url']
bSWA = A6b2['name']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CgzE(NvAR):\n CS8v = [id for id in Ddor(f'playlist_{NvAR}.json') if id is not None]\n HqKa = []\n for YRbF in range(0, len(CS8v), 50):\n GwBM = H4yH.tracks(CS8v[YRbF:YRbF + 50])['tracks']\n for A6b2 in GwBM:\n if A6b2:\n HqKa.append({'id': A6b2['id'], 'name': A6... | [
"0.65468687",
"0.6247322",
"0.6229117",
"0.6228196",
"0.61741185",
"0.60902107",
"0.6026559",
"0.59733105",
"0.5912996",
"0.5889268",
"0.58746123",
"0.5803826",
"0.5777052",
"0.5744444",
"0.56849664",
"0.5644501",
"0.56269264",
"0.5625296",
"0.56203276",
"0.5596947",
"0.55895... | 0.665103 | 0 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return uw5A / uw5A.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"de... | [
"0.7796294",
"0.7760558",
"0.7759004",
"0.77567077",
"0.76577055",
"0.76577055",
"0.76577055",
"0.76577055",
"0.7585655",
"0.743143",
"0.7407772",
"0.73941606",
"0.7358175",
"0.73174125",
"0.72689486",
"0.72623265",
"0.72614294",
"0.7256868",
"0.723019",
"0.7214918",
"0.72017... | 0.70900273 | 55 |
Getter message for the error message property | def Ol8d(YKHO):
return YKHO.__message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jv0C(YKHO):\n return YKHO.error_message.get_error_message()",
"def jv0C(YKHO):\n return YKHO.err_message",
"def sAJr(YKHO):\n return YKHO._message",
"def rhwM(YKHO) -> str:\n return YKHO._error_message",
"def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_message')",
"def rhwM(YKHO)... | [
"0.84507716",
"0.8272372",
"0.82341063",
"0.8156294",
"0.81057173",
"0.81057173",
"0.81057173",
"0.80858296",
"0.8050317",
"0.79771084",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.79377925",
"0.79222834",
"0.78714764",
"0.787... | 0.69084185 | 56 |
Getter message for the error message property | def Ol8d(YKHO):
return YKHO.__message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jv0C(YKHO):\n return YKHO.error_message.get_error_message()",
"def jv0C(YKHO):\n return YKHO.err_message",
"def sAJr(YKHO):\n return YKHO._message",
"def rhwM(YKHO) -> str:\n return YKHO._error_message",
"def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_message')",
"def rhwM(YKHO)... | [
"0.84507716",
"0.8272372",
"0.82341063",
"0.8156294",
"0.81057173",
"0.81057173",
"0.81057173",
"0.80858296",
"0.8050317",
"0.79771084",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.79377925",
"0.79222834",
"0.78714764",
"0.787... | 0.69084185 | 58 |
Getter message for the error message property | def Ol8d(YKHO):
return YKHO.__message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jv0C(YKHO):\n return YKHO.error_message.get_error_message()",
"def jv0C(YKHO):\n return YKHO.err_message",
"def sAJr(YKHO):\n return YKHO._message",
"def rhwM(YKHO) -> str:\n return YKHO._error_message",
"def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_message')",
"def rhwM(YKHO)... | [
"0.84515",
"0.82730705",
"0.8234179",
"0.8156736",
"0.8106271",
"0.8106271",
"0.8106271",
"0.8086509",
"0.8050979",
"0.79771173",
"0.7972601",
"0.7972601",
"0.7972601",
"0.7972601",
"0.7972601",
"0.7972601",
"0.7972601",
"0.7938373",
"0.79227245",
"0.78722125",
"0.78722125",
... | 0.69069344 | 57 |
Getter message for the error message property | def Ol8d(YKHO):
return YKHO.__message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jv0C(YKHO):\n return YKHO.error_message.get_error_message()",
"def jv0C(YKHO):\n return YKHO.err_message",
"def sAJr(YKHO):\n return YKHO._message",
"def rhwM(YKHO) -> str:\n return YKHO._error_message",
"def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_message')",
"def rhwM(YKHO)... | [
"0.84507716",
"0.8272372",
"0.82341063",
"0.8156294",
"0.81057173",
"0.81057173",
"0.81057173",
"0.80858296",
"0.8050317",
"0.79771084",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.79377925",
"0.79222834",
"0.78714764",
"0.787... | 0.69084185 | 59 |
Getter message for the error message property | def Ol8d(YKHO):
return YKHO.__message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jv0C(YKHO):\n return YKHO.error_message.get_error_message()",
"def jv0C(YKHO):\n return YKHO.err_message",
"def sAJr(YKHO):\n return YKHO._message",
"def rhwM(YKHO) -> str:\n return YKHO._error_message",
"def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_message')",
"def rhwM(YKHO)... | [
"0.84507716",
"0.8272372",
"0.82341063",
"0.8156294",
"0.81057173",
"0.81057173",
"0.81057173",
"0.80858296",
"0.8050317",
"0.79771084",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.79377925",
"0.79222834",
"0.78714764",
"0.787... | 0.69084185 | 60 |
Getter message for the error message property | def Ol8d(YKHO):
return YKHO.__message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jv0C(YKHO):\n return YKHO.error_message.get_error_message()",
"def jv0C(YKHO):\n return YKHO.err_message",
"def sAJr(YKHO):\n return YKHO._message",
"def rhwM(YKHO) -> str:\n return YKHO._error_message",
"def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_message')",
"def rhwM(YKHO)... | [
"0.84507716",
"0.8272372",
"0.82341063",
"0.8156294",
"0.81057173",
"0.81057173",
"0.81057173",
"0.80858296",
"0.8050317",
"0.79771084",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.7971884",
"0.79377925",
"0.79222834",
"0.78714764",
"0.787... | 0.69084185 | 61 |
Get the maximums of the box. | def I05E(YKHO):
return YKHO._maxs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I05E(YKHO):\n return YKHO.intervals[:, 1]",
"def R5kO(YKHO):\n R5kO = list()\n for JfyU, oeNL, H2v2, TVTK in zip(YKHO.peaks_function, YKHO.peaks_position, YKHO.peaks_height, YKHO.peaks_width):\n wEf2 = JfyU(oeNL, oeNL, H2v2, TVTK)\n if wEf2 >= YKHO.__call__(oeNL, count=False)[0]:\n ... | [
"0.727284",
"0.7030874",
"0.693986",
"0.69067794",
"0.6878829",
"0.68736434",
"0.6868502",
"0.68478525",
"0.6806683",
"0.6784204",
"0.67625403",
"0.6754861",
"0.67235214",
"0.67173207",
"0.6717256",
"0.66883105",
"0.66697544",
"0.6655225",
"0.66526324",
"0.6638028",
"0.661769... | 0.7920239 | 0 |
Calculates the upperright (k, k) submatrix of the (k + 3, k + 3) shaped L matrix. | def pq3l(EcVT, fuBA):
SGf8 = 1e-09
Hu0o = ht2j.pow(EcVT[:, :, None, :] - fuBA[:, None, :, :], 2).sum(-1)
nMvt = Hu0o * ht2j.log(Hu0o + SGf8)
return nMvt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oooq(k0lF):\n exwG, bGrB = k0lF.shape\n V6IE = oyIN.eye(exwG, exwG, dtype=k0lF.dtype)\n aPd6 = oyIN.eye(exwG, exwG, dtype=k0lF.dtype)\n KkY2 = oyIN.copy(k0lF)\n for G1Hx in range(exwG - 1):\n YRbF = oyIN.argmax(oyIN.abs(KkY2[G1Hx:, G1Hx])) + G1Hx\n KkY2[[G1Hx, YRbF], G1Hx:] = KkY2[... | [
"0.62292093",
"0.62259126",
"0.58949107",
"0.5821799",
"0.5802326",
"0.55839527",
"0.5574345",
"0.5528231",
"0.5525469",
"0.5523643",
"0.54820645",
"0.5480811",
"0.5453957",
"0.54290855",
"0.5385439",
"0.5380995",
"0.5372382",
"0.5355528",
"0.53281003",
"0.5317574",
"0.531520... | 0.0 | -1 |
Returns whether the stack is empty. | def lsmZ(YKHO):
if len(YKHO.List_store) == 0:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_stack) == 0",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO) -> bool:\n return len(YKHO.stack) == 0",
"def A4KR(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(Y... | [
"0.9207258",
"0.91276956",
"0.90185934",
"0.9000551",
"0.89481044",
"0.89481044",
"0.8914844",
"0.8904091",
"0.8881541",
"0.88791907",
"0.8867761",
"0.87955654",
"0.8768181",
"0.8748518",
"0.87393755",
"0.8728073",
"0.8719241",
"0.87090814",
"0.87090814",
"0.85431594",
"0.850... | 0.0 | -1 |
Return the total number of bonds in a given molecule. | def z5vo(YKHO):
return YKHO.GetNumberOfBonds() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cjke(YKHO):\n exwG = 0\n for W0I0 in YKHO.iter_bonds():\n exwG += 1\n return exwG",
"def cjke(YKHO):\n exwG = 0\n for W0I0 in YKHO.iter_bonds():\n exwG += 1\n return exwG",
"def SsF6(N9D1: Mol) -> int:\n oT4r = XPMK('*-&!@*')\n SsF6 = N9D1.GetNumBonds() - len(N9D1.GetS... | [
"0.80025625",
"0.80025625",
"0.66126955",
"0.6533329",
"0.6530094",
"0.6212478",
"0.6210571",
"0.6202222",
"0.6122616",
"0.60915023",
"0.6087865",
"0.6072382",
"0.6042857",
"0.6033683",
"0.6027071",
"0.6027071",
"0.5946125",
"0.5936661",
"0.5904915",
"0.5904915",
"0.59033066"... | 0.7891599 | 2 |
Get the atomic number of an atom for a specified index. Returns the atomic number of the atom present at index atom_index. | def NEz0(asBq, ft9X):
return asBq.GetAtomAtomicNumber(ft9X) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ML_Q(asBq, ft9X):\n return asBq.GetAtomPosition(ft9X)",
"def d6pt(YKHO, WhQ6):\n return YKHO.atom_list.index(WhQ6)",
"def NMoC(YKHO, d6pt: int) -> int:\n Q6kx = YKHO.get_node(d6pt)\n if Q6kx:\n return Q6kx.val\n else:\n return -1",
"def ylLt(asBq, ft9X, U04h):\n asBq.SetAt... | [
"0.68005484",
"0.60752213",
"0.59588075",
"0.5871908",
"0.5819159",
"0.57988024",
"0.55818534",
"0.55516666",
"0.5425327",
"0.54243624",
"0.5349884",
"0.5335964",
"0.5299057",
"0.5220479",
"0.5187373",
"0.5121672",
"0.50906634",
"0.50878614",
"0.5075936",
"0.50756437",
"0.505... | 0.8606187 | 0 |
Set the atomic number of an atom for a specified index. Assign atomic_num as the atomic number of the atom present at atom_index. | def ylLt(asBq, ft9X, U04h):
asBq.SetAtomAtomicNumber(ft9X, U04h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NEz0(asBq, ft9X):\n return asBq.GetAtomAtomicNumber(ft9X)",
"def MumM(asBq, ft9X, m2os, bmPF, Hci7):\n asBq.SetAtomPosition(ft9X, m2os, bmPF, Hci7)",
"def hzw9(YKHO, tdBu, WhQ6):\n WhQ6.set_id(tdBu)\n if tdBu >= YKHO._next_locant:\n YKHO._next_locant = tdBu + 1\n YKHO._atom_index[tdBu... | [
"0.6560087",
"0.6199398",
"0.5951252",
"0.58578175",
"0.5596008",
"0.55953026",
"0.5589196",
"0.553421",
"0.5525989",
"0.55205667",
"0.5504498",
"0.54476297",
"0.5439793",
"0.5423999",
"0.54001343",
"0.53582937",
"0.5349304",
"0.5333335",
"0.5326711",
"0.52993786",
"0.5289031... | 0.8712859 | 0 |
Get the order of bond for a specified index. Returns the order of bond (whether it's a single/double/triple bond) present at bond_index. | def lkWZ(asBq, _BTe):
return asBq.GetBondOrder(_BTe) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lkWZ(VXTj):\n if VXTj == 'single':\n return 1\n elif VXTj == 'aromatic':\n return 1.5\n elif VXTj == 'double':\n return 2\n elif VXTj == 'triple':\n return 3\n else:\n raise ValueError(f'Unexpected bond type: {VXTj.upper()}')",
"def okHs(asBq, _BTe, qERn):\n ... | [
"0.6752312",
"0.63966566",
"0.57815874",
"0.5262618",
"0.5093663",
"0.50919545",
"0.5012569",
"0.50036746",
"0.49367315",
"0.48917815",
"0.46992457",
"0.46574548",
"0.46573806",
"0.46078455",
"0.45987606",
"0.4591198",
"0.45611867",
"0.44986278",
"0.44406894",
"0.4431078",
"0... | 0.85749006 | 0 |
Set the bond order of a bond for a specified index. Assign bond_order (whether it's a single/double/triple bond) to the bond present at the bond_index. | def okHs(asBq, _BTe, qERn):
return asBq.SetBondOrder(_BTe, qERn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lkWZ(asBq, _BTe):\n return asBq.GetBondOrder(_BTe)",
"def Ow65(asBq, x2_1, s0vy, qERn=1):\n asBq.AppendBond(x2_1, s0vy, qERn)",
"def q09K(YKHO, T4Wy):\n YKHO.order = T4Wy",
"def q09K(YKHO, T4Wy):\n YKHO.order = T4Wy",
"def NrIP(YKHO, d6pt=None):\n if d6pt is None:\n d6pt = getattr... | [
"0.6456186",
"0.56341326",
"0.55784166",
"0.55784166",
"0.5533212",
"0.55101186",
"0.54243904",
"0.53122276",
"0.5237427",
"0.5230102",
"0.5230102",
"0.5230102",
"0.5217105",
"0.52066356",
"0.5180444",
"0.5153465",
"0.5142009",
"0.51258487",
"0.51060444",
"0.5096011",
"0.5086... | 0.85224 | 0 |
Create an actor for ball and stick molecular representation. | def Gffg(asBq, CRwB='discrete', k5Xk=0.3, CJot=0.1, cc8i=True):
if asBq.total_num_bonds == 0:
raise ValueError('No bonding data available for the molecule! Ball and stick model cannot be made!')
CRwB = CRwB.lower()
w78j = jKRF()
w78j.SetInputData(asBq)
w78j.SetRenderAtoms(True)
w78j.SetR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ehDb():\n return Zrzj()",
"def rSvt(YAg3: vtkLabeledDataMapper) -> iwtH:\n ehDb = iwtH()\n ehDb.SetMapper(YAg3)\n return ehDb",
"def mHEx():\n DeuS.append(WBxB())\n nHMa(DeuS)",
"def JJhj(YKHO, bdxJ):\n ehDb = {}\n if bdxJ > 0:\n cyhx = oyIN.copy(YKHO.walls)\n ifCF =... | [
"0.6521576",
"0.6408675",
"0.6302898",
"0.6125257",
"0.60556537",
"0.5993816",
"0.59129834",
"0.58806634",
"0.58585757",
"0.5801043",
"0.5771813",
"0.576336",
"0.5716615",
"0.5686013",
"0.5625455",
"0.5612588",
"0.5543517",
"0.5501177",
"0.5501139",
"0.5485162",
"0.54721844",... | 0.5976301 | 6 |
Humanreadable short title for this Daemon instance. | def Upwb(YKHO):
return '{id}@{hn}'.format(id=YKHO.model.identity, hn=YKHO.model.hostname) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_xb(YKHO):\n if hasattr(YKHO, 'title'):\n return YKHO.title\n else:\n return ''",
"def leAC(YKHO):\n return YKHO.run_command('title')[0]",
"def leAC(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'title')",
"def leAC(YKHO):\n return YKHO.__title",
"def leAC(YKHO):\n ... | [
"0.7855064",
"0.7478442",
"0.73336846",
"0.732346",
"0.732346",
"0.732346",
"0.7310889",
"0.73041844",
"0.7287646",
"0.7287646",
"0.7287646",
"0.72835344",
"0.72835344",
"0.72835344",
"0.72835344",
"0.72835344",
"0.72835344",
"0.72835344",
"0.7278651",
"0.7165633",
"0.7147154... | 0.7489472 | 1 |
Rotates the point around the X axis by the given angle in degrees. | def k8vV(YKHO, YylR):
Wskb = YylR * epAf.pi / 180
ey4b = epAf.cos(Wskb)
vdar = epAf.sin(Wskb)
LVAh = YKHO.y * ey4b - YKHO.z * vdar
epBp = YKHO.y * vdar + YKHO.z * ey4b
return M1rV(YKHO.x, LVAh, epBp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rdJT(YKHO, YylR):\n YylR *= oyIN.pi / 180\n return YKHO.transform(oyIN.matrix([[1, 0, 0], [0, oyIN.cos(YylR), -oyIN.sin(YylR)], [0, oyIN.sin(YylR), oyIN.cos(YylR)]]))",
"def rdJT(YKHO, YylR: float):\n YKHO.vertices = list(PVS4.x_rotate(YylR).transform_vertices(YKHO.vertices))\n return YKHO",
"d... | [
"0.794659",
"0.7539638",
"0.73145586",
"0.71019506",
"0.709467",
"0.70256436",
"0.6984359",
"0.694846",
"0.69418216",
"0.6880606",
"0.68804455",
"0.6836407",
"0.67816424",
"0.67309594",
"0.66042733",
"0.65942734",
"0.65035325",
"0.64926547",
"0.6485459",
"0.64773697",
"0.6475... | 0.6460902 | 25 |
The negative signs are to represent a max heap using min heap | def Bpam(YKHO, mLGw: int) -> None:
if len(YKHO.min_heap) == len(YKHO.max_heap):
jGbP(YKHO.max_heap, -goM1(YKHO.min_heap, -mLGw))
else:
jGbP(YKHO.min_heap, -goM1(YKHO.max_heap, mLGw)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yryI(YKHO):\n for oeNL in range(YKHO.size // 2, 0, -1):\n YKHO.min_heapify(oeNL)",
"def X6SM(gGCN):\n for r845 in range(gGCN.len // 2, -1, -1):\n oRZo(gGCN, r845)",
"def X6SM(jzdc):\n for YRbF in range(epAf.floor((len(jzdc) - 1) / 2), -1, -1):\n oRZo(jzdc, YRbF)",
"def FIMM(... | [
"0.775092",
"0.7528531",
"0.75228065",
"0.7384742",
"0.72893196",
"0.7205864",
"0.70503825",
"0.70503825",
"0.69889665",
"0.6974715",
"0.69675845",
"0.6956956",
"0.6956593",
"0.6955806",
"0.69353676",
"0.6908895",
"0.69062996",
"0.690229",
"0.68809444",
"0.6872392",
"0.684086... | 0.618285 | 84 |
Utility function to split a list into a list of lists of size chunk_size | def Dywm(bCES, ztRo=100):
G9jH.debug(f'Splitting list of {len(bCES)} length, chunk size = {ztRo}')
WgRK = []
for YRbF in range(0, len(bCES), ztRo):
WgRK.append(bCES[YRbF:YRbF + ztRo])
G9jH.debug(f'List has been split into {len(WgRK)} lists. Total num of elements in split lists is {sum([len(YRbF)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O2Hj(bCES: List, ym_X: int=20) -> x1iM[x1iM]:\n eHxA: x1iM[x1iM] = []\n for YRbF in range(0, len(bCES), ym_X):\n eHxA.append(bCES[YRbF:YRbF + ym_X])\n return eHxA",
"def hXED(list, ztRo):\n for YRbF in range(0, len(list), ztRo):\n yield list[YRbF:YRbF + ztRo]",
"def _Qd3(a7r8, ztR... | [
"0.8550787",
"0.8521343",
"0.8501392",
"0.85000056",
"0.84749764",
"0.8366589",
"0.8246785",
"0.8217724",
"0.80815494",
"0.79625213",
"0.79560506",
"0.7927173",
"0.7881198",
"0.78379625",
"0.78200275",
"0.7817737",
"0.78015924",
"0.7789853",
"0.7757746",
"0.77572495",
"0.7701... | 0.85844827 | 0 |
Test linear Activation function | def LGNR(YKHO):
YKHO.assertEqual([0.5, 0.6], fmAV.Linear().output([0.5, 0.6]))
YKHO.assertEqual([1, 1], list(fmAV.Linear().derivative(oyIN.array([0.5, 0.6])))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTYa(YKHO):\n YKHO.assertEqual([0, 0.5], list(fmAV.Relu().output(oyIN.array([-0.5, 0.5]))))\n YKHO.assertEqual([0, 1], list(fmAV.Relu().derivative(oyIN.array([-0.5, 0.5]))))",
"def IXFA(YKHO):\n Aofo = siRN.activ(YKHO, 12)\n YKHO.assertEqual(0.9999938558253978, Aofo)",
"def v9B7(WKvO):\n jzd... | [
"0.7714273",
"0.7520323",
"0.7393367",
"0.7270706",
"0.7141478",
"0.7122633",
"0.7084347",
"0.7030661",
"0.70254207",
"0.6983885",
"0.69341344",
"0.6896828",
"0.68939906",
"0.6830876",
"0.68034536",
"0.6740119",
"0.67200714",
"0.66562957",
"0.66394305",
"0.6619526",
"0.659814... | 0.8070748 | 0 |
Test Sigmoid Activation function | def _4Ie(YKHO):
YKHO.assertEqual([0.5, 0.5], list(fmAV.Sigmoid().output(oyIN.array([0, 0]))))
YKHO.assertEqual([0.25, 0.25], list(fmAV.Sigmoid().derivative(oyIN.array([0, 0])))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8d8(YKHO):\n MxcS = 1\n Aofo = YDYE.soft_sigmoid(MxcS)\n YKHO.assertEqual(Aofo, 0.6963549298238342)",
"def IXFA(YKHO):\n Aofo = siRN.activ(YKHO, 12)\n YKHO.assertEqual(0.9999938558253978, Aofo)",
"def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))",
"def MWmY(YKHO):\n hYvg = 'Sigm... | [
"0.86405325",
"0.8547377",
"0.8101663",
"0.7992341",
"0.7894172",
"0.7856627",
"0.78477913",
"0.78192943",
"0.7805054",
"0.7805054",
"0.77882427",
"0.77882427",
"0.77882427",
"0.77882427",
"0.77882427",
"0.77882427",
"0.77768815",
"0.7769157",
"0.7767805",
"0.7761993",
"0.776... | 0.8803924 | 0 |
Test Relu Activation function | def gTYa(YKHO):
YKHO.assertEqual([0, 0.5], list(fmAV.Relu().output(oyIN.array([-0.5, 0.5]))))
YKHO.assertEqual([0, 1], list(fmAV.Relu().derivative(oyIN.array([-0.5, 0.5])))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rg5v(YKHO):\n hYvg = 'ReLU'\n qIxc = {}\n YDYE = siRH.create(hYvg, **qIxc)\n YKHO.assertEqual(YDYE._get_name(), hYvg)\n WKvO = ht2j.ones(10) * -1\n LVAh = YDYE(WKvO)\n YKHO.assertEqual(len(ht2j.nonzero(LVAh, as_tuple=False)), 0)",
"def Gr0H(YKHO):\n YKHO.assertEqual([-0.005, 0.5], lis... | [
"0.7655277",
"0.7547752",
"0.74729645",
"0.6927675",
"0.69085747",
"0.68051904",
"0.6734226",
"0.66706294",
"0.6579837",
"0.6566238",
"0.64818835",
"0.64459395",
"0.64139664",
"0.63688",
"0.63349473",
"0.63275087",
"0.63229686",
"0.63110685",
"0.63066477",
"0.629632",
"0.6295... | 0.85658056 | 0 |
Test Leaky Relu Activation function | def Gr0H(YKHO):
YKHO.assertEqual([-0.005, 0.5], list(fmAV.LeakyRelu(0.01).output(oyIN.array([-0.5, 0.5]))))
YKHO.assertEqual([0.01, 1], list(fmAV.LeakyRelu(0.01).derivative(oyIN.array([-0.5, 0.5])))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XlLM(YKHO):\n hYvg = 'LeakyReLU'\n qIxc = {}\n YDYE = siRH.create(hYvg, **qIxc)\n YKHO.assertEqual(YDYE._get_name(), hYvg)",
"def gTYa(YKHO):\n YKHO.assertEqual([0, 0.5], list(fmAV.Relu().output(oyIN.array([-0.5, 0.5]))))\n YKHO.assertEqual([0, 1], list(fmAV.Relu().derivative(oyIN.array([-0... | [
"0.7895562",
"0.7778071",
"0.7409891",
"0.664251",
"0.6625259",
"0.660916",
"0.6572951",
"0.6503279",
"0.6494961",
"0.646147",
"0.63875353",
"0.6384317",
"0.6374039",
"0.63020295",
"0.62956446",
"0.6192345",
"0.61737454",
"0.61713505",
"0.61553013",
"0.61240476",
"0.61184704"... | 0.8239878 | 0 |
A function to strip punctuation, strip stopwords, casefold, lemmatize, And part pf speech tag words for clean data for modeling | def iU74(A97Q):
yK2S = di0c.words('english')
cQ8x = M9Fq('([a-zA-Z]+(?:’[a-z]+)?)')
A97Q = cQ8x.tokenize(A97Q)
A97Q = [GIN8.lower() for GIN8 in A97Q]
A97Q = [GIN8 for GIN8 in A97Q if GIN8 not in yK2S]
A97Q = kdPk(A97Q)
A97Q = [(GIN8[0], _ivB(GIN8[1])) for GIN8 in A97Q]
LkXt = GFnk()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gK8W(l5Ny, JxSC=True, vY1N=False, uPUq=True, iKsa=True, cKm3=True, IuUc=True, DVW7=True, nv2g=True, f9OB=True, hwHU=True):\n \"\"\"preprocess text with default option set to true for all steps\"\"\"\n if DVW7 == True:\n l5Ny = aAsi(l5Ny)\n if uPUq == True:\n l5Ny = V5lt(l5Ny)\n if JxS... | [
"0.7346214",
"0.7204978",
"0.7085485",
"0.70339763",
"0.70253",
"0.6995439",
"0.69350874",
"0.6869514",
"0.68610775",
"0.6824548",
"0.67725897",
"0.670217",
"0.66989547",
"0.6681447",
"0.6665155",
"0.66587085",
"0.66543514",
"0.6634308",
"0.66300875",
"0.660763",
"0.6602324",... | 0.6848987 | 9 |
create confusion matrix plots | def m7gS(C3ST, hFJe, v173):
LZpg, aNZO = QrM1.subplots()
LZpg.suptitle(str(C3ST))
LwSz(C3ST, hFJe, v173, ax=aNZO, cmap='plasma') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()",
"def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(t... | [
"0.8067573",
"0.79644215",
"0.7915834",
"0.7814926",
"0.7726184",
"0.7716197",
"0.7713153",
"0.76880276",
"0.7685792",
"0.76844615",
"0.76674414",
"0.76344496",
"0.7630151",
"0.76161575",
"0.7613531",
"0.75990355",
"0.75956106",
"0.7595505",
"0.7595505",
"0.758967",
"0.758813... | 0.0 | -1 |
This method returns the top most item in the stack | def T7C_(YKHO):
if YKHO._count == 0:
raise IndexError('Stack is empty')
return YKHO._items[YKHO._count - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(YKHO):\n try:\n if YKHO.size() > 0:\n return YKHO.items[len(YKHO.items) - 1]\n else:\n raise IndexError('Cannot get top item, stack is empty.')\n except IndexError as err:\n print(XObx)\n raise",
"def tlxW(YKHO):\n if YKHO.is_empty():\n r... | [
"0.88591945",
"0.8830027",
"0.8646745",
"0.84458494",
"0.84156674",
"0.8412785",
"0.83922064",
"0.83777547",
"0.8350138",
"0.833888",
"0.8332611",
"0.8302345",
"0.8214753",
"0.8189639",
"0.81250155",
"0.8117171",
"0.8010013",
"0.8010013",
"0.79524904",
"0.7930449",
"0.7930018... | 0.77378124 | 34 |
Find the full path for a disk. Given a string representing a device, check if it exists as a direct path, a path under /dev/mapper, or a path under /dev | def sDP6(KCHu: str) -> str:
d9Tk = [KCHu, f'/dev/mapper/{KCHu}', f'/dev/{KCHu}']
for tIhY in d9Tk:
if Hy7s.path.exists(tIhY):
return tIhY
raise FileNotFoundError(f'Could not find device with name {KCHu}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U0wz(begE):\n for VTg3, j6_k in sq_8():\n if begE == VTg3:\n return j6_k\n return ''",
"def E0XI(begE):\n if begE in RZvt():\n j7fj, Am0U, wDAu = atlV(begE)\n return j7fj\n pmON = '/media/'\n UXqs = bzNK(begE)\n if not UXqs:\n if not Hy7s.path.exists(p... | [
"0.7483137",
"0.73629546",
"0.72565264",
"0.72163814",
"0.7058402",
"0.6899361",
"0.67327946",
"0.66899985",
"0.6687576",
"0.66871053",
"0.6631361",
"0.65779763",
"0.65466255",
"0.65073526",
"0.647599",
"0.64646614",
"0.6394581",
"0.63265395",
"0.630106",
"0.6215711",
"0.6201... | 0.7969486 | 0 |
Returns a copy of current view | def bpfS(YKHO):
return XC5k.resize(YKHO._view, (0, 0), fx=YKHO._view_scale, fy=YKHO._view_scale) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NjKx(YKHO):\n return YKHO.view",
"def Rv6M(YKHO):\n return YKHO._view",
"def hbTk(YKHO):\n return YKHO.model.GetView()",
"def tTee(YKHO):\n tTee = YKHO.empty_like()\n tTee.sects = YKHO.sects.copy()\n return tTee",
"def FzJk(YKHO):\n return YKHO.__class__(YKHO.baseurl, YKHO.template... | [
"0.66439146",
"0.6624419",
"0.64911115",
"0.6452521",
"0.64088285",
"0.6372151",
"0.6372151",
"0.6372151",
"0.6372151",
"0.6366766",
"0.63644767",
"0.63301134",
"0.63113374",
"0.6287963",
"0.6287235",
"0.6287235",
"0.62713134",
"0.626538",
"0.62635106",
"0.62635106",
"0.62635... | 0.0 | -1 |
expands `~` as well as variable names, defaults to $XDG_DATA_HOME | def Mnlo(pmON):
if pmON is None:
pmON = gzes(Y6f8.BaseDirectory.xdg_data_home, 'khal', 'khal.db')
return hIOi(Irua(pmON)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ItBp():\n return Hy7s.path.expanduser('~')",
"def aG1h():\n return Hy7s.path.expanduser('~')",
"def TjTF():\n from os.path import expanduser\n kZiy = expanduser('~')\n return kZiy",
"def CBIr(pmON=None):\n if pmON:\n return '%s/%s' % (hIOi('~'), pmON)\n else:\n return h... | [
"0.7333964",
"0.7147041",
"0.69678324",
"0.6536542",
"0.64811414",
"0.6430729",
"0.63934326",
"0.6371726",
"0.6330711",
"0.62962",
"0.628675",
"0.624678",
"0.62388694",
"0.61947423",
"0.6110296",
"0.607845",
"0.6070522",
"0.6070522",
"0.6032753",
"0.60076874",
"0.60032356",
... | 0.4999493 | 98 |
returns a list of paths, expanded using glob | def qlSH(pmON):
DumB = SC2F.glob(pmON)
return DumB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lHli(YKHO, BTLB):\n qgjr = []\n for pmON in BTLB:\n if SC2F.has_magic(pmON):\n oHE7 = SC2F.iglob(pmON)\n qgjr.extend(oHE7)\n else:\n qgjr.append(pmON)\n return qgjr",
"def GHAV(xAKo, LUIn):\n return SC2F.glob(t_yv(xAKo, LUIn))",
"def SgGF(xAKo, jlh... | [
"0.80809927",
"0.80169445",
"0.79923224",
"0.76249576",
"0.7616704",
"0.7475759",
"0.7417678",
"0.73933303",
"0.73432904",
"0.73126924",
"0.7272393",
"0.7264",
"0.72035486",
"0.7201689",
"0.7188408",
"0.7139433",
"0.70919096",
"0.70829743",
"0.7022732",
"0.6999642",
"0.696267... | 0.0 | -1 |
Returns color [r,g,b] LOT for formation numbers. | def PE9b(qIvT, R_Ie, l4Dj):
MiBK = {}
YRbF = 0
for gAeH in oyIN.arange(len(R_Ie)):
for exwG in oyIN.arange(len(qIvT)):
MiBK[YRbF] = l4Dj[qIvT[exwG]][R_Ie[gAeH]]
YRbF += 1
return MiBK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_bX(YKHO, Mkmy, Oa1e, Fg_i):\n return '#%02x%02x%02x' % (Mkmy, Oa1e, Fg_i)",
"def qfpW(YKHO):\n return 3092790",
"def mvpM(YKHO, Mkmy, Oa1e, Fg_i):\n R0zR = (Mkmy, Oa1e, Fg_i)\n return R0zR",
"def o_bX(YKHO):\n return '#%02X%02X%02X' % (YKHO.r, YKHO.g, YKHO.b)",
"def loZF(mLGw: int):\n ... | [
"0.7155649",
"0.71068186",
"0.7083868",
"0.7003396",
"0.69344044",
"0.6920773",
"0.69116217",
"0.6908243",
"0.6878598",
"0.6809199",
"0.6809199",
"0.6809199",
"0.67736554",
"0.6763048",
"0.6725893",
"0.6724445",
"0.67235076",
"0.67182016",
"0.6701258",
"0.66290164",
"0.662613... | 0.0 | -1 |
Base is the base point distribution this instance will wrap. Translation is applied before rotation. If rotation or translation are None, than that operation will not be applied. Both operations are relative to the origin, and other base point distributions natively generate around the origin, so this class should tran... | def FIMM(YKHO, P8oC, DWJ0=None, y_o0=None, NXpY=None):
YKHO._base = P8oC
YKHO.rotation = DWJ0
YKHO.translation = y_o0
YKHO.scale = NXpY
YKHO._base.post_update_handles.append(YKHO._apply_transformation) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SZFh(YKHO) -> I0t_:\n SZFh = I0t_.translation(*YKHO.origin) * I0t_.rotation(YKHO.rotation) * I0t_.scale(*YKHO.res)\n return SZFh",
"def N0Pp(YKHO, ydZk: float=0, OhBR: float=0, dnz0: float=0, hgjH: Onion[Iterable[Onion[float, int]], Point3D]=None) -> 'Component':\n SZFh = YKHO._local_transform\n ... | [
"0.60170627",
"0.58316773",
"0.58278024",
"0.5778792",
"0.5743731",
"0.564146",
"0.5619725",
"0.55909586",
"0.5408869",
"0.5383326",
"0.535607",
"0.5309864",
"0.53030276",
"0.5287092",
"0.5279286",
"0.5275025",
"0.52742124",
"0.5266339",
"0.5245706",
"0.5209969",
"0.52069813"... | 0.703418 | 0 |
Flatten a point cloud sampled from any arbitrary distribution into a uniform one. This function computes the cumulative distribution function of an arbitrary distribution and then applies the cdf to the input distribution to flatten it into a uniform one. This is the inverse operation compared to what ArbitraryDistribu... | def x8ib(WKvO, LVAh, byzr):
wBZN, re6M, y2M8 = byzr[0]
KDmU, rwK9, z7TV = byzr[1]
WKvO = oyIN.clip(WKvO, wBZN, re6M)
LVAh = oyIN.clip(LVAh, KDmU, rwK9)
InLe, bGrB, bGrB = oyIN.histogram2d(WKvO, LVAh, bins=(y2M8, z7TV), range=((wBZN, re6M), (KDmU, rwK9)))
InLe = oyIN.transpose(InLe)
InLe = oy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TLky(WKvO: torch.Tensor) -> ht2j.Tensor:\n return ht2j.distributions.Normal(0, 1.0).cdf(WKvO)",
"def XA7A(epBp):\n from math import exp\n kYGz = +0.31938153\n ftz7 = -0.356563782\n _2fo = +1.781477937\n BZh4 = -1.821255978\n CH56 = +1.330274429\n XP5J = +0.2316419\n Z9rn = +0.39894... | [
"0.5586892",
"0.5563694",
"0.54852474",
"0.543941",
"0.5413336",
"0.537273",
"0.53583604",
"0.53518397",
"0.5246547",
"0.5208789",
"0.5204593",
"0.51924646",
"0.5175445",
"0.5164667",
"0.5160543",
"0.5147375",
"0.51423824",
"0.5114984",
"0.5080699",
"0.50799197",
"0.50594187"... | 0.5230309 | 9 |
Get the index of the first matching column. | def rkdG(YKHO, ZLJ_):
for YRbF in range(len(ZLJ_)):
if YKHO.match(ZLJ_[YRbF]):
return YRbF
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BOes(tyNF, fvDH):\n return tyNF[0].index(fvDH)",
"def Vn7Z(YKHO, iVRZ):\n return YKHO.columns.index(iVRZ)",
"def M0DV(YKHO, WBPg):\n for YRbF in range(0, len(YKHO.data)):\n if YKHO.data[YRbF][0] == WBPg:\n return YRbF\n return None",
"def f1pu(YKHO, vt_q):\n return YKHO.c... | [
"0.76492685",
"0.763803",
"0.7461113",
"0.7168229",
"0.71643466",
"0.7158796",
"0.7142186",
"0.6967918",
"0.6895111",
"0.68891233",
"0.68192405",
"0.6818686",
"0.68023604",
"0.6779614",
"0.6743045",
"0.67320335",
"0.66572577",
"0.66330564",
"0.6577666",
"0.65124077",
"0.64886... | 0.7967314 | 0 |
Test if a column matches any of the patterns in a list. | def LU8G(iVRZ, b6H_):
for mXDZ in b6H_:
if mXDZ.match(iVRZ):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LMgx(HWdY, mXDZ):\n Aofo = False\n for rdlD in HWdY:\n if any((mXDZ in KCHu for KCHu in rdlD)):\n Aofo = True\n return Aofo",
"def jlYA(fvDH, v_nO):\n QOe9 = oyIN.array([WpW5 in v_nO for WpW5 in fvDH])\n return QOe9",
"def Yzs1(eD8c, iVRZ):\n for BWXx in iVRZ:\n i... | [
"0.6556683",
"0.64302546",
"0.63067436",
"0.6258623",
"0.6187614",
"0.6126113",
"0.6111609",
"0.6071658",
"0.6025094",
"0.6011538",
"0.5879156",
"0.58788866",
"0.5873742",
"0.5815781",
"0.5814044",
"0.58079004",
"0.57674956",
"0.5740474",
"0.57298553",
"0.5728475",
"0.5724627... | 0.88387614 | 0 |
Get the iterator over the rows. | def Vs4Q(YKHO):
raise gHeH('child class must implement __iter__() method') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return iter(YKHO.__rows)",
"def Vs4Q(YKHO):\n for rdlD in YKHO.rows:\n yield rdlD",
"def Vs4Q(YKHO):\n return iter(YKHO.rows)",
"def HlQP(YKHO):\n return (YKHO.Row(*aKqR) for aKqR in DMWo(*YKHO.columns))",
"def bDy6():\n return ED7W.Iterator()",
"def L5Y_(YKHO):\n ... | [
"0.85183847",
"0.83765113",
"0.83707154",
"0.79104555",
"0.73708725",
"0.731996",
"0.7302216",
"0.72275394",
"0.72252095",
"0.72252095",
"0.7140404",
"0.714005",
"0.71241605",
"0.71231925",
"0.71168184",
"0.7109036",
"0.70676625",
"0.70500535",
"0.6974074",
"0.6972438",
"0.69... | 0.0 | -1 |
Get all values for the dataset at once, in an array of arrays. This method can be highly inefficient for large datasets. | def hkxX(YKHO):
return [rdlD.values for rdlD in YKHO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkxX(YKHO):\n ezWE = YKHO.view(oyIN.ndarray).copy()\n return ezWE",
"def yLtf():\n nPrm = [oyIN.array([32.0, 595.0]), oyIN.array([30.0, 599.0]), oyIN.array([18.0, 622.0]), oyIN.array([51.0, 606.0]), oyIN.array([38.0, 578.0])]\n return nPrm",
"def Ueki(YKHO, *qIxc):\n T5my = [[] for bGrB in r... | [
"0.69703174",
"0.69307035",
"0.6879977",
"0.6855093",
"0.68078256",
"0.6745971",
"0.66884196",
"0.66602236",
"0.6642484",
"0.64727646",
"0.6455229",
"0.64072067",
"0.6395013",
"0.6383382",
"0.6383382",
"0.63684094",
"0.63331574",
"0.6270158",
"0.6256057",
"0.62505716",
"0.624... | 0.6390509 | 13 |
Get a list of indices that match the tag patterns provided | def tzve(YKHO, D4K0, ZLJ_):
b6H_ = IPDI.parse_list(D4K0)
_0VL = []
for YRbF, iVRZ in enumerate(ZLJ_):
for mXDZ in b6H_:
if mXDZ.match(iVRZ):
_0VL.push(YRbF)
return _0VL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kluN(dJ1p: List[str]) -> x1iM[int]:\n return [QyVM for QyVM, TZ9E in enumerate(dJ1p) if 'V' in TZ9E]",
"def tzve(D4K0, ZLJ_):\n D4K0 = IPDI.parse_list(D4K0)\n ZLJ_ = [OciN.parse(iVRZ) for iVRZ in ZLJ_]\n _0VL = []\n for YRbF, iVRZ in enumerate(ZLJ_):\n for mXDZ in D4K0:\n if ... | [
"0.722843",
"0.70798177",
"0.67879546",
"0.6785787",
"0.64592427",
"0.644368",
"0.64284664",
"0.6339925",
"0.63329494",
"0.62984705",
"0.6296195",
"0.62435573",
"0.6155397",
"0.6134906",
"0.6133075",
"0.6068198",
"0.60586774",
"0.6057099",
"0.6045007",
"0.6029159",
"0.6029058... | 0.6859146 | 2 |
Expand lists by repeating rows. By default, applies to every column with a +list attribute, and uses "|" as the separator. | def eS_D(YKHO, b6H_=None, g8rx='|', vbqU=False, l633=[]):
import hxl.filters
return Dlwd.filters.ExpandListsFilter(YKHO, patterns=b6H_, separator=g8rx, correlate=vbqU, queries=l633) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u5eK(rdlD: Sequence[Union[str, Sequence[Union[str, Sequence[str]]]]]) -> x1iM[x1iM[str]]:\n NqgE = []\n for LihS in rdlD:\n if isinstance(LihS, list):\n NqgE.append(LihS)\n else:\n NqgE.append([LihS])\n XS2Y = [list(YRbF) for YRbF in igF0(*NqgE, fillvalue='')]\n ... | [
"0.6498559",
"0.63500637",
"0.6195757",
"0.6087575",
"0.6031837",
"0.5988283",
"0.59425014",
"0.58630353",
"0.5849503",
"0.5724522",
"0.5655385",
"0.5640293",
"0.56312585",
"0.55733323",
"0.55643886",
"0.5484327",
"0.5473916",
"0.5464347",
"0.5459419",
"0.54296577",
"0.539647... | 0.6714359 | 0 |
Test for comparison with another object. For equality, only the hashtag and attributes have to be the same. | def xa14(YKHO, Elif):
try:
return YKHO.tag == Elif.tag and YKHO.attributes == Elif.attributes
except:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return Y... | [
"0.7577895",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"0.7509241",
"... | 0.76670873 | 0 |
Return the row as a Python dict. The keys will be HXL hashtags and attributes, normalised per HXL 1.1. If two or more columns have the same hashtags and attributes, only the first will be included. | def cmPJ(YKHO):
nPrm = {}
for YRbF, fvDH in enumerate(YKHO.columns):
H5ew = fvDH.get_display_tag(sort_attributes=True)
if H5ew and (not H5ew in nPrm) and (YRbF < len(YKHO.values)):
nPrm[H5ew] = YKHO.values[YRbF]
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IilC(YKHO):\n if YKHO.attrTable:\n Pfb2 = YKHO.attrTable[:]\n else:\n Pfb2 = []\n GwkD = {}\n for rdlD in Pfb2:\n GwkD[rdlD['tracking_id']] = rdlD\n return GwkD",
"def _fYl(YKHO) -> cuzp[str, ImMB]:\n return {cphL: VmPb.value for cphL, VmPb in YKHO.column_title_to_cell.... | [
"0.667913",
"0.6461216",
"0.636688",
"0.61484194",
"0.6051544",
"0.60468364",
"0.6014249",
"0.59909004",
"0.5900011",
"0.587809",
"0.5850842",
"0.58400846",
"0.5833326",
"0.58227205",
"0.5815393",
"0.5813333",
"0.5813333",
"0.5806374",
"0.57443744",
"0.5698505",
"0.5687542",
... | 0.62785184 | 3 |
Get a list of column indices that match the tag patterns provided | def tzve(D4K0, ZLJ_):
D4K0 = IPDI.parse_list(D4K0)
ZLJ_ = [OciN.parse(iVRZ) for iVRZ in ZLJ_]
_0VL = []
for YRbF, iVRZ in enumerate(ZLJ_):
for mXDZ in D4K0:
if mXDZ.match(iVRZ):
_0VL.append(YRbF)
return _0VL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tzve(YKHO, D4K0, ZLJ_):\n b6H_ = IPDI.parse_list(D4K0)\n _0VL = []\n for YRbF, iVRZ in enumerate(ZLJ_):\n for mXDZ in b6H_:\n if mXDZ.match(iVRZ):\n _0VL.push(YRbF)\n return _0VL",
"def kluN(dJ1p: List[str]) -> x1iM[int]:\n return [QyVM for QyVM, TZ9E in enumer... | [
"0.8450538",
"0.68007433",
"0.6378853",
"0.6313471",
"0.6256628",
"0.6146388",
"0.6097416",
"0.6093199",
"0.6028557",
"0.58799136",
"0.58190155",
"0.58045346",
"0.5803244",
"0.58020294",
"0.57893914",
"0.577954",
"0.5727999",
"0.5719707",
"0.56921905",
"0.5690233",
"0.5660097... | 0.8508822 | 0 |
Test expected result if pin request fails. | async def test_pin_request_fails(ajET: HomeAssistant) -> None:
_uqo = KQxB.EcobeeFlowHandler()
_uqo.hass = ajET
_uqo.hass.data[Cnbr] = {}
with Po4F('homeassistant.components.ecobee.config_flow.Ecobee') as inRY:
inRY = inRY.return_value
inRY.request_pin.return_value = False
Aofo =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z_IP(YKHO):\n YKHO.contact.pin = '1234'\n YKHO.contact.save()\n tO9_ = YKHO._send(YKHO.reg_conn, '4444')\n YKHO.assertEqual(len(tO9_.responses), 1)\n YKHO.assertEqual(tO9_.responses[0].text, YKHO.app.incorrect_pin)",
"def z_IP(YKHO):\n YKHO.contact.pin = '1234'\n YKHO.contact.save()\n ... | [
"0.7238182",
"0.7238182",
"0.6808269",
"0.65973055",
"0.6587121",
"0.65418226",
"0.65418226",
"0.6459002",
"0.6278712",
"0.6229318",
"0.6164026",
"0.6147369",
"0.61314195",
"0.6115511",
"0.6095732",
"0.6053475",
"0.5977893",
"0.59505725",
"0.5940151",
"0.5931674",
"0.59220797... | 0.6819293 | 2 |
Insert size bytes of empty space starting at offset. fobj must be an open file object, open rb+ or equivalent. | def l7mT(YKHO, Vu7S, zNig, vgXP, TyFG=2 ** 16):
if zNig < 0 or vgXP < 0:
raise ValueError
Vu7S.seek(0, 2)
JAMD = Vu7S.tell()
Hepi = JAMD - vgXP
if Hepi < 0:
raise ValueError
YKHO.resize_file(Vu7S, zNig, TyFG)
YKHO.mmap_move(Vu7S, vgXP + zNig, vgXP, Hepi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7mT(Vu7S, zNig, vgXP, TyFG=2 ** 16):\n if zNig < 0 or vgXP < 0:\n raise ValueError\n Vu7S.seek(0, 2)\n JAMD = Vu7S.tell()\n Hepi = JAMD - vgXP\n if Hepi < 0:\n raise ValueError\n wDWJ(Vu7S, zNig, TyFG)\n if clzx is not None:\n try:\n UoHC(Vu7S, vgXP + zNig,... | [
"0.7231294",
"0.65476257",
"0.62179416",
"0.61566144",
"0.6153236",
"0.61397356",
"0.5710457",
"0.5598464",
"0.54636663",
"0.5437528",
"0.5435916",
"0.5384069",
"0.5366884",
"0.52552164",
"0.52528274",
"0.51998854",
"0.50527495",
"0.5052372",
"0.50284874",
"0.5019198",
"0.501... | 0.7137758 | 1 |
Apply default keyword arguments. Named keywords may have been left blank. This function applies the default values so that every argument is defined. | def deQB(JfyU, qIxc, B2fa):
wEsz = aadv(JfyU)
ImYH = wEsz.bind(*qIxc, **B2fa)
for xqoZ in wEsz.parameters.values():
if xqoZ.name not in ImYH.arguments:
ImYH.arguments[xqoZ.name] = xqoZ.default
qIxc = [ImYH.arguments[H5ew] for H5ew in wEsz.parameters.keys()]
return (qIxc, {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k52p(AoRK, **wfYb):\n for H5ew in wfYb:\n if H5ew not in AoRK:\n AoRK[H5ew] = wfYb[H5ew]",
"def muwo(YKHO, **B2fa):\n for YRbF in B2fa:\n YKHO._.setdefault(YRbF, B2fa[YRbF])\n return YKHO",
"def KDYH(muwo):\n\n def h3Xc(JfyU):\n\n @zaGL(JfyU)\n def Ki7w(*q... | [
"0.7157559",
"0.6939161",
"0.6750786",
"0.67469263",
"0.6548224",
"0.65029705",
"0.6500061",
"0.6484644",
"0.6483329",
"0.6312059",
"0.6284324",
"0.62505805",
"0.6176438",
"0.6124212",
"0.6105467",
"0.60948884",
"0.6071097",
"0.6017015",
"0.6013532",
"0.6008589",
"0.5998938",... | 0.73297 | 0 |
Get last and first name to account | def Hs6d(YKHO) -> av29:
mVd6 = YKHO.read_file(YKHO.db_name)
c9ua = str(mVd6.at[tuKI.randint(0, len(mVd6)), 'first name'])
zp3f = str(mVd6.at[tuKI.randint(0, len(mVd6)), 'last name'])
return av29(first_name=c9ua, last_name=zp3f) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name",
"def Sve3(YKHO, AIu6):\n YbpV, EZxl = YKHO.clean_user_names(AIu6)\n if YbpV is None and EZxl is None:\n YbpV, EZxl = YKHO.extract_name_from_email(AIu6)\n return (YbpV, EZxl)",
"def NYl4(YEnM):\n return '%s %s' % (YEnM.first... | [
"0.7471454",
"0.7463361",
"0.7412814",
"0.7382013",
"0.7360934",
"0.73516333",
"0.731855",
"0.7296664",
"0.7286074",
"0.7278677",
"0.7275519",
"0.71862173",
"0.7173238",
"0.7161276",
"0.71598756",
"0.7132737",
"0.7084635",
"0.7082379",
"0.705671",
"0.70546055",
"0.70372665",
... | 0.6905941 | 64 |
Small room, entrance on the right. Start on the right. there is only one way to move. West | def IAZ9(YKHO):
Tz44 = '\n ----------- level z=0 :\n ####\n # #\n ####\n -----------\n '
QTBn, xASv = YKHO.get_brain_decisions(Tz44, entrance_point=PvyL(2, 1, 0), my_position=PvyL(2, 1, 0))
tDkU(xASv).is_length(1)
XeOP = xASv.pop()
t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bjjd():\n return P3wg.move_right()",
"def ba6f(YKHO, d7pR):\n Vd6W('west')",
"def bjjd(YKHO):\n YKHO.rect.x += 5\n if YKHO.rect.x >= 580:\n YKHO.rect.x = 580",
"def _tIi(YKHO):\n YKHO.move(1, 0)",
"def WaKS(YKHO):\n YKHO.rect.centerx += 9",
"def bjjd(YKHO):\n YKHO.left += ... | [
"0.69074565",
"0.6707441",
"0.6700669",
"0.65906274",
"0.6517882",
"0.6511123",
"0.64477795",
"0.6438553",
"0.6398159",
"0.6331219",
"0.6263788",
"0.6221958",
"0.62212956",
"0.62189686",
"0.62181914",
"0.6202515",
"0.6151981",
"0.6139172",
"0.61316055",
"0.61278355",
"0.61240... | 0.5729758 | 76 |
If we have a 2x2 room, and move 4 times, we should have explored all cells in that room. | def sKRE(YKHO):
Tz44 = '\n ----------- level z=0 :\n ####\n # #\n # #\n ####\n -----------\n '
JRrw = 3
BKCn = YKHO.explore_dungeon(Tz44, JRrw)
tDkU(BKCn).contains(PvyL(2, 2, 0))
tDkU(BKCn).contains(PvyL(1, 2, 0))
tDk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ysMt(Cs6h, YDwv, Gmep):\n P5uO = [[0] * (YDwv + 1) for YRbF in range(Gmep + 1)]\n for YRbF in range(Gmep):\n for r845 in range(YDwv):\n K3QL = Cs6h[YRbF - 1][r845 - 1]\n CN9P = Cs6h[YRbF - 1][r845]\n HPKV = Cs6h[YRbF - 1][r845 + 1]\n LFlW = Cs6h[YRbF][r8... | [
"0.6954404",
"0.68770915",
"0.6841134",
"0.66528326",
"0.65932626",
"0.65704787",
"0.65634567",
"0.65545404",
"0.6523662",
"0.6518593",
"0.6467627",
"0.6435853",
"0.64085436",
"0.6394247",
"0.63736755",
"0.632975",
"0.62972695",
"0.62925726",
"0.628977",
"0.6282857",
"0.62820... | 0.59530675 | 81 |
If we have a 2x2 room, and move 4 times, we should have explored all cells in that room. | def hX4C(YKHO):
Tz44 = '\n ----------- level z=0 : top of dungeon:\n ####\n # >#\n # #\n ####\n ----------- level z=1: one level down:\n ####\n # <#\n # #\n ####\n -----------\n '
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ysMt(Cs6h, YDwv, Gmep):\n P5uO = [[0] * (YDwv + 1) for YRbF in range(Gmep + 1)]\n for YRbF in range(Gmep):\n for r845 in range(YDwv):\n K3QL = Cs6h[YRbF - 1][r845 - 1]\n CN9P = Cs6h[YRbF - 1][r845]\n HPKV = Cs6h[YRbF - 1][r845 + 1]\n LFlW = Cs6h[YRbF][r8... | [
"0.6953217",
"0.6877604",
"0.6839772",
"0.6650935",
"0.65931404",
"0.6569237",
"0.656364",
"0.6554506",
"0.6523684",
"0.6517954",
"0.64675003",
"0.64363325",
"0.64075065",
"0.6394344",
"0.6371403",
"0.6329564",
"0.62962735",
"0.62928414",
"0.62886894",
"0.62831414",
"0.628171... | 0.0 | -1 |
Returns all AssignmentGroupobjects where given ``user`` is examiners. | def qFG0(Emd4, CBIr):
return Emd4._meta.model.published_where_is_examiner(CBIr).annotate(latest_delivery_id=VYxc('deadlines__deliveries__id'), latest_deadline_id=VYxc('deadlines__id'), latest_deadline_deadline=VYxc('deadlines__deadline'), number_of_deliveries=kbH2('deadlines__deliveries')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N2L1(Emd4, XnWo):\n return Sy9q.objects.filter(Emd4.q_is_candidate(XnWo))",
"def N2L1(Emd4, XnWo):\n return Sy9q.objects.filter(Emd4.q_is_candidate(XnWo))",
"def MuQn(Zgw8):\n from .assignment_group import AssignmentGroup\n return AssignmentGroup.published_where_is_examiner(Zgw8).exists()",
"... | [
"0.6680107",
"0.6680107",
"0.6601722",
"0.5985014",
"0.5895106",
"0.5723876",
"0.5671283",
"0.56352174",
"0.5606133",
"0.54998434",
"0.548901",
"0.5453988",
"0.54371005",
"0.539448",
"0.5378403",
"0.5348604",
"0.5330244",
"0.5326632",
"0.53208107",
"0.5308824",
"0.52896863",
... | 0.53026545 | 20 |
Check if the given ``user`` can save changes to the given ``obj``, and raise ``PermissionDenied`` if not. | def TREE(Emd4, CBIr, YEnM):
if not FYrf.AssignmentGroup.published_where_is_examiner(CBIr).filter(id=YEnM.deadline.assignment_group.id):
raise wPvU()
Emd4.write_authorize_examinercommon(CBIr, YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TREE(Emd4, CBIr, YEnM):\n if not Emd4._meta.model.published_where_is_examiner(CBIr).filter(id=YEnM.id):\n raise wPvU()\n if YEnM.id == None:\n raise wPvU()",
"def Bb4E(YKHO, CBIr):\n if YKHO.get_permission_level(CBIr) < YKHO.OWNER_PERMISSION:\n raise wPvU\n return True",
"d... | [
"0.80460095",
"0.7331845",
"0.73247457",
"0.7313981",
"0.71476823",
"0.7121872",
"0.7120705",
"0.7111636",
"0.7099004",
"0.7099004",
"0.7097043",
"0.7094021",
"0.7084154",
"0.7075858",
"0.70698863",
"0.7062223",
"0.70343024",
"0.70189697",
"0.6971448",
"0.6971448",
"0.6969559... | 0.6682683 | 42 |
Checks if the given ``user`` is an examiner in the given Deadline ``obj``, and raises ``PermissionDenied`` if not. | def TREE(Emd4, CBIr, YEnM):
if not YEnM.assignment_group.is_examiner(CBIr):
raise wPvU() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y6FT(Emd4, CBIr, YEnM):\n if not Emd4._meta.model.published_where_is_examiner(CBIr).filter(id=YEnM.id):\n raise wPvU()",
"def MuQn(Zgw8):\n from .assignment_group import AssignmentGroup\n return AssignmentGroup.published_where_is_examiner(Zgw8).exists()",
"def TREE(Emd4, CBIr, YEnM):\n i... | [
"0.7419948",
"0.7282177",
"0.7230976",
"0.6886869",
"0.6881749",
"0.6846234",
"0.6786418",
"0.65925",
"0.6566509",
"0.6433327",
"0.63982606",
"0.634496",
"0.63200617",
"0.6306755",
"0.630458",
"0.6300359",
"0.6272099",
"0.6253552",
"0.62470776",
"0.61801106",
"0.61793435",
... | 0.69465214 | 3 |
Look up user by ID. | def ccBJ(YKHO, uJjO):
return YKHO.users.get(str(uJjO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def JuUv(YKHO, id):\n for CBIr in YKHO.users:\n if CBIr['id'] == id:\n return CBIr",
"def TKWP(id):\n pass",
"def idb7(YKHO, uJjO):\n Pe9W = \"SELECT * FROM Users WHERE id='%s'\" % uJjO\n Ylbp = YKHO.execute(Pe9W)\n l_Oj =... | [
"0.8311971",
"0.8272055",
"0.8252262",
"0.8172156",
"0.8027348",
"0.795923",
"0.7918431",
"0.7918431",
"0.7918431",
"0.7918431",
"0.78946453",
"0.78774357",
"0.78547454",
"0.7845801",
"0.7844495",
"0.7792024",
"0.77398497",
"0.77389365",
"0.7727113",
"0.7723424",
"0.7709543",... | 0.8121034 | 4 |
Turn GPU on or off. If True, GPU is on, if false, GPU is off. Needs to be called prior keras or tensorflow is first imported. | def AQSP(QTBn):
import tensorflow as ZylS
from keras import backend as nMvt
qHW5()
bsoW = 1
_UMv = 1
MT5D = 0
if QTBn:
MT5D = 1
GPtr = ZylS.ConfigProto(intra_op_parallelism_threads=bsoW, inter_op_parallelism_threads=bsoW, allow_soft_placement=True, device_count={'CPU': _UMv, 'GPU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wsLZ(I1mm=True):\n W1VK = ZylS.config.list_physical_devices('GPU')\n aBNk = ZylS.config.list_physical_devices('CPU')\n lGNu = f'Tensorflow has already been initialized, {tq_1.currentframe().f_code.co_name}() needs to be called before any Tensorflow operation, as a result this function will have no eff... | [
"0.678071",
"0.66911536",
"0.65576345",
"0.65004677",
"0.6472776",
"0.64415026",
"0.64332193",
"0.63630724",
"0.6361377",
"0.6300233",
"0.62992704",
"0.62445164",
"0.62319046",
"0.62304604",
"0.6211725",
"0.61443216",
"0.61369693",
"0.61317796",
"0.610577",
"0.60991895",
"0.6... | 0.7342647 | 0 |
GETs from an authenticated Kalshi HTTP endpoint. Returns the response body. Raises an HttpError on non2XX results. | def NMoC(YKHO, pmON: str, NArs: Dict[str, Any]={}) -> ImMB:
YKHO.rate_limit()
geh0 = G4JS.get(YKHO.host + pmON, headers=YKHO.request_headers(), params=NArs)
YKHO.raise_if_bad_response(geh0)
return geh0.json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jxrn(YKHO):\n try:\n Mkmy = YKHO.session.get(YKHO.url)\n except G4JS.exceptions.SSLError as e:\n raise Exception('SSL Error\\n Error: {}\\n URL: {}'.format(tTpl.message[0], YKHO.url))\n except G4JS.exceptions.ConnectionError:\n raise Exception('Unable to connect to the Ofgem s... | [
"0.7147728",
"0.69012445",
"0.6869457",
"0.6774202",
"0.67394537",
"0.6731725",
"0.66233486",
"0.6530998",
"0.65273",
"0.6498613",
"0.6414514",
"0.63925815",
"0.63232964",
"0.631775",
"0.6309301",
"0.6309301",
"0.6309301",
"0.6303749",
"0.62985116",
"0.6298011",
"0.62934947",... | 0.0 | -1 |
Get a running node object that matches a name. | def SCWz(YKHO, AwDt):
Ziit = YKHO._driver.list_nodes()
Q6kx = [YRbF for YRbF in Ziit if YRbF.name == AwDt and YRbF.state != 'terminated']
return len(Q6kx) > 0 and Q6kx or None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QA9g(YKHO, mWFP):\n for Q6kx in YKHO.nodes:\n if Q6kx.name == mWFP:\n return Q6kx\n return None",
"def PdUc(YKHO, mWFP):\n zrIJ = YKHO._get_domain_for_name(name=mWFP)\n Q6kx = YKHO._to_node(domain=zrIJ)\n return Q6kx",
"def IyQV(YKHO, mWFP):\n return YKHO._node_reg[mWFP]... | [
"0.7296409",
"0.7270308",
"0.7046818",
"0.70248455",
"0.6911657",
"0.69031686",
"0.6708162",
"0.6676499",
"0.66447914",
"0.66289806",
"0.66235286",
"0.65597135",
"0.6498036",
"0.6485404",
"0.64539295",
"0.64460385",
"0.63747174",
"0.6322791",
"0.6280549",
"0.6227114",
"0.6227... | 0.7119902 | 2 |
Stop the monitor thread. | def Flsc(cT4E):
vzeF.info('Stopping threads for Docker monitor')
for a1PO in RcgH.values():
a1PO.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X4bw(YKHO):\n YKHO._logger.info('Stopping monitor...')\n if YKHO.monitor_lc:\n YKHO.monitor_lc.cancel()\n if YKHO.monitor_process:\n YKHO.monitor_process.terminate()\n Hy7s.system('pkill -f listenblock')",
"def JCyR(YKHO):\n if YKHO.monitor_lc:\n YKHO.monitor_lc.cancel... | [
"0.80320716",
"0.7971689",
"0.79214144",
"0.7916955",
"0.78480417",
"0.7749154",
"0.7709552",
"0.7681981",
"0.7632703",
"0.76182944",
"0.7616441",
"0.7562319",
"0.7502068",
"0.7459798",
"0.74423534",
"0.73142034",
"0.7310694",
"0.7203108",
"0.71779794",
"0.71779794",
"0.71528... | 0.71430033 | 21 |
Return the state attributes. | def R1i3(YKHO):
return YKHO._attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO)... | [
"0.8953404",
"0.8953404",
"0.85239846",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.8273077",
"0.82236886",
"0.8223562",
"0.8205066",
"0.8184393",
"0.81659013",
"0.8102565",
"0.8064994",
"0.8064994",... | 0.82871646 | 17 |
Return the state attributes. | def R1i3(YKHO):
return YKHO._attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO)... | [
"0.8953404",
"0.8953404",
"0.85239846",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.8273077",
"0.82236886",
"0.8223562",
"0.8205066",
"0.8184393",
"0.81659013",
"0.8102565",
"0.8064994",
"0.8064994",... | 0.82871646 | 16 |
Properly format a floating point number according to the fontobene specifications. | def eY98(mLGw):
SalD = round(float(mLGw), 2)
U6Kr = '{:g}'.format(SalD)
if U6Kr.startswith('-0.'):
U6Kr = '-' + U6Kr[2:]
elif U6Kr.startswith('0.'):
U6Kr = U6Kr[1:]
return U6Kr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X1YB(YKHO):\n ...",
"def P7v4(YnnA):\n c5zP = '{0:.2g}'.format(YnnA)\n if 'e' in c5zP:\n P8oC, w520 = c5zP.split('e')\n return '${0} \\\\times 10^{{{1}}}$'.format(P8oC, int(w520))\n else:\n return c5zP",
"def _Xei(eHNT):\n if eHNT == 0.0:\n BWXx = 0.0\n w52... | [
"0.7765871",
"0.70918447",
"0.7056674",
"0.70554984",
"0.69597924",
"0.69415927",
"0.68992734",
"0.68992734",
"0.6888198",
"0.66928124",
"0.6680294",
"0.66729677",
"0.665795",
"0.66113573",
"0.66048175",
"0.6595526",
"0.65911746",
"0.6588093",
"0.65765834",
"0.6562481",
"0.65... | 0.6184891 | 48 |
Plot custom confusion matrix chart. | def gDrg(jQ3Z, leAC=''):
JZXy = jQ3Z.copy()
JZXy = JZXy.reset_index()
JZXy = rLdf.melt(JZXy, id_vars='index', value_vars=jQ3Z.columns)
JZXy.columns = ['m1', 'm2', 'value']
P8oC = Zc6P.Chart(JZXy).encode(Zc6P.X('m1:O', title='New Model'), Zc6P.Y('m2:O', title='Baseline Model')).properties(width=500, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()",
"def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(t... | [
"0.79490983",
"0.7829431",
"0.7794925",
"0.7749858",
"0.7742887",
"0.76699764",
"0.7664901",
"0.766141",
"0.76476663",
"0.7641274",
"0.76193213",
"0.7607578",
"0.7598432",
"0.7597083",
"0.7588289",
"0.7574436",
"0.7569805",
"0.7568525",
"0.7560449",
"0.7552828",
"0.7551474",
... | 0.0 | -1 |
Get a list of tokens. | def NMoC(YKHO, KUnM=None, fNWj=None, BA9O=None):
KUnM = KUnM or {}
if not mfZd('manage_others_tokens'):
KUnM['_user_fk'] = c5ow.id
vg0C = hxqq()
Aofo = vg0C.list(FYrf.Token, filters=KUnM, pagination=fNWj, sort=BA9O)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thS1(YKHO) -> x1iM[str]:\n return YKHO.tokens",
"def s2mk(YKHO):\n return YKHO._tokens",
"def sxVV(YKHO):\n list = []\n for YRbF in range(YKHO.startIdx, YKHO.endIdx + 1):\n eOtH = YKHO.sentence[YRbF]\n list.append(eOtH)\n return list",
"def CJYp(l5Ny):\n return l5Ny.split(... | [
"0.84577584",
"0.8271703",
"0.8186385",
"0.78194696",
"0.7753249",
"0.77504075",
"0.7655102",
"0.7651295",
"0.7651295",
"0.7651295",
"0.75834113",
"0.7564851",
"0.7508029",
"0.74478513",
"0.7391352",
"0.7338311",
"0.72981405",
"0.7290869",
"0.72548044",
"0.72461283",
"0.72420... | 0.0 | -1 |
Create a new token. | def m8z6(YKHO):
_9GG()
oAZn = w_wi({'description': {'type': str, 'optional': True}, 'expiration_date': {'optional': True}})
ad72 = oAZn.get('expiration_date')
if ad72:
ad72 = cRIO(ad72, timezone='UTC')
return c5ow.create_auth_token(oAZn.get('description'), ad72) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sm7M(YKHO, oFhs, nPrm):\n raise AJ5d.NotImplemented()",
"async def create_token(YKHO, *qIxc, **B2fa) -> NhFP:\n eOtH = await super().create_token(*qIxc, **B2fa)\n return eOtH",
"def sm7M(YKHO, LmAn=None, oFhs=None, som_=None, e5kH=None, _ZaP=False, AN7o=None, qQNS=None, mM1N=None, LHDp=False, h9HD... | [
"0.8130268",
"0.76122075",
"0.76098174",
"0.7525182",
"0.74004394",
"0.7391528",
"0.7294902",
"0.7212832",
"0.7195884",
"0.7148666",
"0.709604",
"0.709604",
"0.709604",
"0.70908123",
"0.70557845",
"0.7037195",
"0.7037195",
"0.7037195",
"0.7037195",
"0.7037195",
"0.7037195",
... | 0.6181684 | 73 |
min || alpha v ||^2, subject to \sum{alpha}=1, alpha >= 0 | def CJZI(Ty9i):
exwG = len(Ty9i)
P6bq = Ty9i - oyIN.ones((exwG, exwG)) @ Ty9i / exwG + oyIN.ones(exwG) / exwG
kseF = RnmS(P6bq)
B5Cx = kseF - P6bq + oyIN.clip(P6bq - kseF, 0, None)
return P6bq + B5Cx - kseF * oyIN.ones(exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PDPP():\n Cwt5 = -0.01\n return Cwt5",
"def v69V(YKHO):\n XSvb = 0\n for Cwt5 in range(0, 180, 4):\n Mkmy = YKHO.solver(Cwt5)[0]\n if Mkmy[-1] > 1.1 * YKHO.Rs:\n break\n if Cwt5 - 4 > 0:\n XSvb = Cwt5 - 4\n YRbF = 1\n while XSvb == 0 or round(XSvb * YKHO.i... | [
"0.6842892",
"0.67928666",
"0.6652993",
"0.6382272",
"0.6352336",
"0.630119",
"0.61689425",
"0.61330134",
"0.60706925",
"0.60369635",
"0.599193",
"0.59544617",
"0.59247285",
"0.5892145",
"0.5888041",
"0.5843474",
"0.57803637",
"0.57722086",
"0.57616067",
"0.5746921",
"0.57273... | 0.0 | -1 |
Initialize the model, with model structure and hyperparameters | def FIMM(YKHO, LudG: int=80, ROaS: int=5, rmVk: int=2, M5RX: int=64, igb0: Optional[int]=None):
YKHO.n_timesteps = LudG
YKHO.n_features = ROaS
YKHO.random_seed = igb0
YKHO.model = YKHO._define_model(rmVk, M5RX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gv23(YKHO):\n pass",
"def fPO8(YKHO):\n pass",
"def DbxN(YKHO):\n g4y1 = YKHO.inputs()\n o4Jx = YKHO.outputs(g4y1)\n YKHO.model = ZylS.keras.Model(inputs=g4y1, outputs=o4Jx)\n YKHO.model.compile(optimizer=YKHO.optimizer() or YKHO.config.get('optimizer'), loss=YKHO.loss() or None, metrics=... | [
"0.7531575",
"0.74101233",
"0.7406556",
"0.7397189",
"0.73969567",
"0.73910505",
"0.73630476",
"0.73531634",
"0.73347515",
"0.7290576",
"0.7287418",
"0.72146523",
"0.72038335",
"0.71342087",
"0.711464",
"0.71036726",
"0.7083342",
"0.7061206",
"0.7053081",
"0.7040719",
"0.7039... | 0.0 | -1 |
A transformation that batches ragged elements into `tf.RaggedTensor`s. This transformation combines multiple consecutive elements of the input dataset into a single element. Like `tf.data.Dataset.batch`, the components of the resulting element will have an additional outer dimension, which will be `batch_size` (or `N %... | def RAhp(Ep8u, hmxC=False, KMjn=m1c7.int64):
def ghCI(__n6):
return __n6.ragged_batch(Ep8u, hmxC, KMjn)
return ghCI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _M9P(QZcN: Union[tf.RaggedTensor, tf.Tensor], yDqo=ZylS.dtypes.int64):\n if isinstance(QZcN, ZylS.RaggedTensor):\n QZcN = QZcN.with_row_splits_dtype(yDqo)\n SH97 = l10p(QZcN.flat_values, dtype=yDqo)\n return QZcN.with_flat_values(SH97)\n else:\n cuB2 = QZcN.shape\n asse... | [
"0.6661254",
"0.64618015",
"0.6296781",
"0.6296781",
"0.6260107",
"0.62228405",
"0.61794186",
"0.61794186",
"0.6146636",
"0.6065816",
"0.6054104",
"0.5873956",
"0.58456135",
"0.5817782",
"0.57895577",
"0.5777174",
"0.5739818",
"0.57111835",
"0.5708858",
"0.56962407",
"0.56340... | 0.75228924 | 0 |
A transformation that batches ragged elements into `tf.sparse.SparseTensor`s. Like `Dataset.padded_batch()`, this transformation combines multiple consecutive elements of the dataset, which might have different shapes, into a single element. The resulting element has three components (`indices`, `values`, and `dense_sh... | def m3ME(Ep8u, pnYb):
def ghCI(__n6):
return __n6.sparse_batch(Ep8u, pnYb)
return ghCI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RAhp(Ep8u, hmxC=False, KMjn=m1c7.int64):\n\n def ghCI(__n6):\n return __n6.ragged_batch(Ep8u, hmxC, KMjn)\n return ghCI",
"def f5aG(Wc9F, dPUj, BL0z, moH6):\n Wc9F = BA8A(Wc9F, moH6)\n\n def eHNT(WKvO):\n if moH6 > 1:\n WKvO = ZylS.reshape(WKvO, ZylS.concat([[-1], WKvO.sh... | [
"0.6834973",
"0.61885273",
"0.6133805",
"0.6133805",
"0.6118299",
"0.609185",
"0.60514516",
"0.60200197",
"0.6011961",
"0.59403723",
"0.58763945",
"0.58763945",
"0.5868475",
"0.58559144",
"0.58559144",
"0.5840113",
"0.5762089",
"0.57282156",
"0.57074594",
"0.5684968",
"0.5633... | 0.6893238 | 0 |
Fused implementation of `map` and `batch`. Maps `map_func` across `batch_size` consecutive elements of this dataset and then combines them into a batch. Functionally, it is equivalent to `map` followed by `batch`. This API is temporary and deprecated since input pipeline optimization now fuses consecutive `map` and `ba... | def jH7D(yD90, Ep8u, DqqO=None, hmxC=False, LWyt=None):
if DqqO is None and LWyt is None:
LWyt = Ep8u
elif DqqO is not None and LWyt is None:
LWyt = Ep8u * DqqO
elif DqqO is not None and LWyt is not None:
raise ValueError(f'`map_and_batch` allows only one of `num_parallel_batches` an... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCI8(yD90, Ep8u, DqqO=None, hmxC=False, LWyt=None):\n if DqqO is None and LWyt is None:\n LWyt = Ep8u\n elif DqqO is not None and LWyt is None:\n LWyt = Ep8u * DqqO\n elif DqqO is not None and LWyt is not None:\n raise ValueError(f'`map_and_batch_with_legacy_function` allows only ... | [
"0.76548666",
"0.6428743",
"0.6423285",
"0.6402761",
"0.63997674",
"0.6349475",
"0.62774205",
"0.61956775",
"0.6052903",
"0.60277444",
"0.60201555",
"0.60139006",
"0.5994452",
"0.5905943",
"0.5887998",
"0.58798826",
"0.5879108",
"0.5877131",
"0.5850125",
"0.5827735",
"0.58240... | 0.8207381 | 0 |
See `Dataset.dense_to_sparse_batch()` for more details. | def FIMM(YKHO, QqE3, Ep8u, pnYb):
if not isinstance(cl2Z.get_legacy_output_types(QqE3), m1c7.DType):
raise TypeError(f'`dense_to_sparse_batch` requires an input dataset whose elements have a single component, but the given dataset has the following component types: {cl2Z.get_legacy_output_types(QqE3)}.')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m3ME(Ep8u, pnYb):\n\n def ghCI(__n6):\n return __n6.sparse_batch(Ep8u, pnYb)\n return ghCI",
"def V_Kw(UXqs, I7JW):\n _0VL = []\n T6S7 = []\n for YRbF, or8S in enumerate(I7JW):\n for r845, Z9rn in enumerate(UXqs[or8S]):\n _0VL.append([YRbF, r845])\n T6S7.app... | [
"0.75668025",
"0.71717817",
"0.6723861",
"0.6514351",
"0.64329255",
"0.6388908",
"0.63793164",
"0.6338439",
"0.6331802",
"0.62845683",
"0.622844",
"0.61825955",
"0.61223274",
"0.61171454",
"0.6115206",
"0.61047125",
"0.6086186",
"0.6085435",
"0.6060007",
"0.60404956",
"0.6029... | 0.66519076 | 3 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) | def GeVo(GgQG, igSk, tk0B, TGuP):
GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2
Z9rn = 2 * P099(PZyS(jzdc))
Mkmy = 6371
return Z9rn * Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.8145869",
"0.7864717",
"0.7633036",
"0.7605665",
"0.7596642",
"0.75959784",
"0.75934994",
"0.75714386",
"0.7563202",
"0.7555913",
"0.75290483",
"0.7516102",
"0.749458",
"0.74664295",
"0.7451783",
"0.74342626",
"0.73920393",
"0.73578167",
"0.73480356",
"0.7330858",
"0.73286... | 0.0 | -1 |
One subnet at the beginning | def pBhw(YKHO):
YKHO._test_find_next_subnet(network='10.0.0.0/16', subnets=['10.0.0.0/24'], requests=[24], expected=['10.0.1.0/24']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yrCg(YKHO):\n if len(YKHO.subnet_list) == 0:\n VWZy = '192.168.1.0/24'\n YKHO.subnet_list.append(VWZy)\n return VWZy\n else:\n VWZy = YKHO.subnet_list[::-1][0]\n D8Ke = SwOd.IPv4Network(VWZy)[0]\n KCHu = SwOd.IPv4Address(D8Ke) + 256\n return '{}{}'.format(... | [
"0.71165836",
"0.66601914",
"0.64572406",
"0.6366779",
"0.63357073",
"0.6259079",
"0.6258229",
"0.6247981",
"0.6151443",
"0.60790884",
"0.6072729",
"0.6019281",
"0.60101473",
"0.59626585",
"0.5954719",
"0.5937508",
"0.5937093",
"0.5928644",
"0.5845021",
"0.5820546",
"0.579881... | 0.74252737 | 0 |
One subnet at the beginning, looking for two different sized subnet | def U1wS(YKHO):
YKHO._test_find_next_subnet(network='10.0.0.0/16', subnets=['10.0.0.0/25'], requests=[24, 25], expected=['10.0.0.128/24', '10.0.1.128/25']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pBhw(YKHO):\n YKHO._test_find_next_subnet(network='10.0.0.0/16', subnets=['10.0.0.0/24'], requests=[24], expected=['10.0.1.0/24'])",
"def B8Vk(YKHO):\n YKHO._test_find_next_subnet(network='10.0.0.0/16', subnets=['10.0.0.0/24', '10.0.1.0/24'], requests=[24], expected=['10.0.2.0/24'])",
"def u8Sb(YKHO)... | [
"0.7538247",
"0.73625815",
"0.7177689",
"0.71560794",
"0.6935244",
"0.6655643",
"0.65563667",
"0.65182245",
"0.64209414",
"0.62785256",
"0.62730163",
"0.6266421",
"0.6262748",
"0.6239045",
"0.6215448",
"0.61699384",
"0.6120432",
"0.61109394",
"0.6056152",
"0.6044382",
"0.5991... | 0.7156927 | 3 |
Existing subnets not supplied in size order | def u8Sb(YKHO):
YKHO._test_find_next_subnet(network='172.31.0.0/16', subnets=['172.31.48.0/20', '172.31.0.0/20', '172.31.16.0/20', '172.31.32.0/20'], requests=[24], expected=['172.31.64.0/24']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VryS(YKHO):\n pass",
"def Npkd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def U1wS(YKHO):\n YKHO._test_find_next_subnet(network='10.0.0.0/16', subnets=['10.0.0.0/25'], requests=[24, 25], expected=['10.0.0.128/24', '10.0.1.128/25'])",
"def Npkd(YKHO) -... | [
"0.66782284",
"0.64517105",
"0.64064467",
"0.638809",
"0.6342284",
"0.6285332",
"0.6250416",
"0.6155536",
"0.61246914",
"0.610507",
"0.6053245",
"0.6053245",
"0.6043815",
"0.60015607",
"0.5980955",
"0.5958874",
"0.5935136",
"0.59185946",
"0.58392125",
"0.5823053",
"0.5816172"... | 0.6691406 | 0 |
A subnet should fit in the gap | def Wv4s(YKHO):
YKHO._test_find_next_subnet(network='192.168.1.0/24', subnets=['192.168.1.0/26', '192.168.1.128/25'], requests=[26], expected=['192.168.1.64/26']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AllS(YKHO):\n pass",
"def _cZo(YKHO):\n YKHO._test_find_next_subnet(network='10.0.0.0/24', subnets=['10.0.0.64/25'], requests=[25], expected=None)",
"def kp0c(jzdc, Fg_i) -> bool:\n if jzdc.network_address != Fg_i.network_address:\n return False\n return jzdc.prefixlen >= Fg_i.prefixlen"... | [
"0.6699309",
"0.64955693",
"0.6487309",
"0.6442857",
"0.6409484",
"0.6409399",
"0.6350243",
"0.63301444",
"0.63093126",
"0.6287745",
"0.6236005",
"0.62186134",
"0.62154156",
"0.6165762",
"0.61649626",
"0.61604047",
"0.60707283",
"0.6000076",
"0.5965292",
"0.5961993",
"0.59607... | 0.6001611 | 17 |
Subnet in the middle but not enough space either side | def _cZo(YKHO):
YKHO._test_find_next_subnet(network='10.0.0.0/24', subnets=['10.0.0.64/25'], requests=[25], expected=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AllS(YKHO):\n pass",
"def yrCg(YKHO):\n if len(YKHO.subnet_list) == 0:\n VWZy = '192.168.1.0/24'\n YKHO.subnet_list.append(VWZy)\n return VWZy\n else:\n VWZy = YKHO.subnet_list[::-1][0]\n D8Ke = SwOd.IPv4Network(VWZy)[0]\n KCHu = SwOd.IPv4Address(D8Ke) + 256... | [
"0.6247384",
"0.6204876",
"0.61068046",
"0.59659135",
"0.59385407",
"0.5929295",
"0.5882542",
"0.5862027",
"0.57188314",
"0.5716374",
"0.5709984",
"0.57096505",
"0.57076216",
"0.57051164",
"0.56669706",
"0.56602937",
"0.5627736",
"0.5626858",
"0.5625432",
"0.5602344",
"0.5602... | 0.57557136 | 8 |
_makeTimestampString_ Working from an integer timestamp, generate the datestamp fragment of the LFN. This uses gmtime as a convention so that all LFNs get the same timestamp based on the request, rather than the local time zone interpretation. Why GMT? Because Im British dammit! God Save The Queen! | def sHfK(E3oo):
aFIV = ITS7.gmtime(E3oo)
lO87 = aFIV[0]
x0eS = aFIV[1]
CjKC = aFIV[2]
return '%s/%s/%s' % (lO87, x0eS, CjKC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IJ8b():\n return F803('%Y%m%dT%H%M%S')",
"def yF_0(E3oo=ITS7(), gqke='%Y-%m-%d %H:%M:%S'):\n return F803(gqke, FdZ9(E3oo))",
"def Uv4C(rhd_=0):\n a1PO = ITS7.localtime()\n Csk6 = ITS7.time() % 1\n FKXa = str(a1PO.tm_year)\n DJYW = str(100 + a1PO.tm_mon)[-2:]\n OWwh = str(100 + a1PO.tm_... | [
"0.76370513",
"0.73009616",
"0.7081951",
"0.69541764",
"0.69241107",
"0.6917818",
"0.68791175",
"0.68621045",
"0.68540907",
"0.68434155",
"0.67958134",
"0.6760723",
"0.6723764",
"0.67221105",
"0.6712855",
"0.6669665",
"0.66366076",
"0.66261506",
"0.6620966",
"0.65650505",
"0.... | 0.7427034 | 1 |
Duration of the movie in a format suitable for display | def GHFB(YKHO):
WbTE = YKHO.duration
return '%dmn' % WbTE if WbTE < 60 else '%dh%dmn' % (WbTE / 60, WbTE % 60) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbTE():\n JRmW, WbTE = Jd2p()\n return WbTE",
"def WbTE(YKHO) -> str:\n return qe4Y.get(YKHO, 'duration')",
"def S4Q6(YKHO):\n return YKHO.duration_poster or YKHO.duration",
"def WbTE(YKHO):\n pass",
"def WbTE(YKHO):\n pass",
"def ONFB(YKHO):\n try:\n YzQK = YKHO.im.info['... | [
"0.777296",
"0.73180413",
"0.72933984",
"0.72733545",
"0.72733545",
"0.7265492",
"0.72241926",
"0.7103312",
"0.6974093",
"0.6921495",
"0.6918213",
"0.69139063",
"0.686397",
"0.68635404",
"0.6862099",
"0.683791",
"0.6825466",
"0.6825466",
"0.6822558",
"0.68109745",
"0.68066347... | 0.7358666 | 1 |
Gets the list of episodes of this series | def hFDr(YKHO):
return [CcuX for CcuX in j2k1.objects.filter(series=YKHO)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KULu(YKHO):\n KULu = []\n for dy_H in YKHO.series:\n KULu.extend(dy_H.episodes)\n return KULu",
"def KULu(YKHO):\n KULu = []\n for qqDt in YKHO.seasons:\n KULu.extend(qqDt.episodes)\n return KULu",
"def KULu(YKHO):\n if YKHO._episode_cache_ver == YKHO._db._version:\n ... | [
"0.900455",
"0.86826456",
"0.7879995",
"0.76952314",
"0.7262344",
"0.7236335",
"0.7069578",
"0.7059861",
"0.6732954",
"0.6684449",
"0.6548593",
"0.65139747",
"0.65077364",
"0.63407654",
"0.63366663",
"0.62658024",
"0.61716634",
"0.6146226",
"0.613938",
"0.61305416",
"0.612999... | 0.84750897 | 2 |
This is the forward pass through the network given an input state. The implementation of this function is different per network type. | def aOQR(YKHO, WKvO, mWFP):
raise NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, input, QpfX, QTBn):\n raise NotImplementedError",
"def KVH6(YKHO, QTBn):\n WKvO = vuvg.relu(YKHO.fc1(QTBn))\n WKvO = vuvg.relu(YKHO.fc2(WKvO))\n WKvO = vuvg.relu(YKHO.fc3(WKvO))\n return YKHO.fc4(WKvO)",
"def KVH6(YKHO, QTBn):\n WKvO = YKHO.fc(QTBn)\n return WKvO",
"def KV... | [
"0.7623267",
"0.7611611",
"0.7601058",
"0.7395795",
"0.7395795",
"0.7395795",
"0.73288393",
"0.73234826",
"0.7288737",
"0.72876287",
"0.7281217",
"0.7281217",
"0.7281217",
"0.71893907",
"0.71602887",
"0.71571887",
"0.71571887",
"0.71551085",
"0.7147878",
"0.71423274",
"0.7120... | 0.0 | -1 |
Load network weights for action and target networks and load these into separate networks. | def tyeH(YKHO, pmON, lNH3, rrbq=-1):
with YKHO.graph.as_default():
print('Loading networks...')
bPTx = Hy7s.path.join(Hy7s.environ['APPROXIMATOR_HOME'], pmON, 'network-' + str(rrbq))
YKHO.saver = ZylS.train.Saver(max_to_keep=lNH3 + 1)
try:
YKHO.saver.restore(YKHO.sess, bP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuEk(YKHO):\n G9jH.debug('Transfer Weight!')\n YKHO.network.save_weights(YKHO._save_path)\n YKHO.target_network.load_weights(YKHO._save_path)",
"def tCsY(YKHO, gHPA, OFk2):\n A6pH = gHPA + 'p_{}.ckpt'\n S0Lx = gHPA + 'D_{}.ckpt'\n MWwb = gHPA + 'U_{}.ckpt'\n YKHO.net_p.load_weights(A6pH.... | [
"0.7635478",
"0.7308514",
"0.71815646",
"0.70369345",
"0.68551004",
"0.6842774",
"0.68085575",
"0.6736255",
"0.65765566",
"0.6500852",
"0.6411397",
"0.6406008",
"0.6398009",
"0.6391791",
"0.63624716",
"0.634854",
"0.6312793",
"0.6274902",
"0.6267881",
"0.6214352",
"0.6204818"... | 0.0 | -1 |
The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, ... | [
"0.7225191",
"0.6934854",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6766738",
"0.6766738",
"0.6766738",
"0.6766738",
"... | 0.69719994 | 27 |
The connection string for the endpoint. This attribute can only be specified and is mandatory when `authentication_type` is `keyBased`. | def YtR6(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'connection_string') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YtR6(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'connection_string')",
"def YtR6(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_string')",
"def YtR6(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_string')",
"def LPUP(YKHO) -> str:\n return qe4Y.ge... | [
"0.6831183",
"0.67943907",
"0.67943907",
"0.67290044",
"0.6614292",
"0.62720186",
"0.62165016",
"0.61846125",
"0.6167701",
"0.61267036",
"0.61200696",
"0.6093978",
"0.60520095",
"0.59966856",
"0.59911984",
"0.59555745",
"0.58865017",
"0.5835899",
"0.58283526",
"0.5786386",
"0... | 0.7113709 | 1 |
Name of the Service Bus Queue. This attribute can only be specified and is mandatory when `authentication_type` is `identityBased`. | def s_QP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'entity_path') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q64Y(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'queue_name')",
"def Q64Y(T5Za):\n return D6AN[int(bool(T5Za))]",
"def L0lo(YKHO):\n return YKHO._graph_executor.get_queue_name()",
"def vd4F(YKHO) -> h8nf[qe4Y.Input['QueueScaleRuleArgs']]:\n return qe4Y.get(YKHO, 'azure_queue')",
... | [
"0.7466725",
"0.671094",
"0.6577484",
"0.63740057",
"0.6332695",
"0.62789017",
"0.62789017",
"0.62197745",
"0.60960996",
"0.60942674",
"0.60921144",
"0.60221577",
"0.599301",
"0.59002167",
"0.5882262",
"0.5803494",
"0.5775603",
"0.5775603",
"0.5734532",
"0.5714602",
"0.571460... | 0.0 | -1 |
ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint. | def tOvq(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'identity_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uJjO(YKHO) -> str:\n return YKHO._user_id",
"def uJjO(YKHO) -> str:\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n ... | [
"0.69907063",
"0.69907063",
"0.6939324",
"0.6939324",
"0.6939324",
"0.6939324",
"0.6939324",
"0.6875801",
"0.6858073",
"0.67586154",
"0.6744285",
"0.67085814",
"0.6691733",
"0.66626483",
"0.66626483",
"0.6647796",
"0.6630985",
"0.6576022",
"0.6576022",
"0.6553367",
"0.6541990... | 0.0 | -1 |
The connection string for the endpoint. This attribute can only be specified and is mandatory when `authentication_type` is `keyBased`. | def YtR6(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'connection_string') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YtR6(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'connection_string')",
"def YtR6(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_string')",
"def YtR6(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_string')",
"def LPUP(YKHO) -> str:\n return qe4Y.ge... | [
"0.6829344",
"0.6792421",
"0.6792421",
"0.6728195",
"0.66137034",
"0.6269684",
"0.6215213",
"0.61831534",
"0.61664534",
"0.6125673",
"0.61185646",
"0.6092346",
"0.6050753",
"0.5995907",
"0.598987",
"0.5954883",
"0.5885103",
"0.5835318",
"0.58273876",
"0.5784639",
"0.57816035"... | 0.7112801 | 2 |
Name of the Service Bus Queue. This attribute can only be specified and is mandatory when `authentication_type` is `identityBased`. | def s_QP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'entity_path') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q64Y(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'queue_name')",
"def Q64Y(T5Za):\n return D6AN[int(bool(T5Za))]",
"def L0lo(YKHO):\n return YKHO._graph_executor.get_queue_name()",
"def vd4F(YKHO) -> h8nf[qe4Y.Input['QueueScaleRuleArgs']]:\n return qe4Y.get(YKHO, 'azure_queue')",
... | [
"0.7466943",
"0.6710663",
"0.6577805",
"0.63742113",
"0.63342834",
"0.62797886",
"0.62797886",
"0.62196535",
"0.60971326",
"0.6094619",
"0.6092706",
"0.6023015",
"0.59932894",
"0.5900316",
"0.58835906",
"0.5805791",
"0.57764655",
"0.57764655",
"0.57333386",
"0.57134634",
"0.5... | 0.0 | -1 |
ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint. | def tOvq(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'identity_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uJjO(YKHO) -> str:\n return YKHO._user_id",
"def uJjO(YKHO) -> str:\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n ... | [
"0.6991596",
"0.6991596",
"0.69403976",
"0.69403976",
"0.69403976",
"0.69403976",
"0.69403976",
"0.6876316",
"0.6860254",
"0.67595714",
"0.67455626",
"0.67094463",
"0.6693101",
"0.6663939",
"0.6663939",
"0.66494966",
"0.663175",
"0.6576561",
"0.6576561",
"0.65554374",
"0.6542... | 0.0 | -1 |
The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created. | def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(Y... | [
"0.72246414",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
"0.6970831",
... | 0.68744767 | 54 |
The connection string for the endpoint. This attribute can only be specified and is mandatory when `authentication_type` is `keyBased`. | def YtR6(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'connection_string') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YtR6(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'connection_string')",
"def YtR6(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'connection_string')",
"def YtR6(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'connection_string')",
"def YtR6(YKHO) -> h8nf[qe4Y.Input... | [
"0.7113709",
"0.7113709",
"0.7113709",
"0.7113709",
"0.67943907",
"0.67943907",
"0.67290044",
"0.6614292",
"0.62720186",
"0.62165016",
"0.61846125",
"0.6167701",
"0.61267036",
"0.61200696",
"0.6093978",
"0.60520095",
"0.59966856",
"0.59911984",
"0.59555745",
"0.58865017",
"0.... | 0.6831183 | 4 |
Name of the Service Bus Queue. This attribute can only be specified and is mandatory when `authentication_type` is `identityBased`. | def s_QP(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'entity_path') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q64Y(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'queue_name')",
"def Q64Y(T5Za):\n return D6AN[int(bool(T5Za))]",
"def L0lo(YKHO):\n return YKHO._graph_executor.get_queue_name()",
"def vd4F(YKHO) -> h8nf[qe4Y.Input['QueueScaleRuleArgs']]:\n return qe4Y.get(YKHO, 'azure_queue')",
... | [
"0.7466725",
"0.671094",
"0.6577484",
"0.63740057",
"0.6332695",
"0.62789017",
"0.62789017",
"0.62197745",
"0.60960996",
"0.60942674",
"0.60921144",
"0.60221577",
"0.599301",
"0.59002167",
"0.5882262",
"0.5803494",
"0.5775603",
"0.5775603",
"0.5734532",
"0.5714602",
"0.571460... | 0.0 | -1 |
ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint. | def tOvq(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'identity_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uJjO(YKHO) -> str:\n return YKHO._user_id",
"def uJjO(YKHO) -> str:\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n ... | [
"0.69907063",
"0.69907063",
"0.6939324",
"0.6939324",
"0.6939324",
"0.6939324",
"0.6939324",
"0.6875801",
"0.6858073",
"0.67586154",
"0.6744285",
"0.67085814",
"0.6691733",
"0.66626483",
"0.66626483",
"0.6647796",
"0.6630985",
"0.6576022",
"0.6576022",
"0.6553367",
"0.6541990... | 0.0 | -1 |