query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns an orderingbased comparison based on the lowest ranges in self and other. | def JWbp(YKHO, Elif: Union[Range, 'RangeSet']) -> bool:
if isinstance(Elif, Ly3T):
for tMr7, Xk5U in zip(YKHO._ranges, Elif._ranges):
if tMr7 != Xk5U:
return tMr7 < Xk5U
return len(YKHO._ranges) < len(Elif._ranges)
elif isinstance(Elif, AVsp):
return len(YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWbp(YKHO, Elif):\n LceK = sorted(list([YKHO.start, YKHO.end]))\n Nec0 = sorted(list([Elif.start, Elif.end]))\n if LceK[0] < Nec0[0]:\n return True\n if LceK[0] > Nec0[0]:\n return False\n return LceK[1] < Nec0[1]",
"def JWbp(YKHO, Elif):\n return YKHO.lessThan(Elif)",
"def ... | [
"0.7419558",
"0.7342583",
"0.7259461",
"0.7241694",
"0.7185314",
"0.71790123",
"0.71580267",
"0.71046925",
"0.7080562",
"0.7080562",
"0.6959919",
"0.6952354",
"0.6951935",
"0.6939004",
"0.69284225",
"0.69275683",
"0.6914123",
"0.6914123",
"0.6914123",
"0.69134474",
"0.6898817... | 0.72682035 | 2 |
Returns an orderingbased comparison based on the lowest ranges in self and other. | def jmxi(YKHO, Elif: Union[Range, 'RangeSet']) -> bool:
if isinstance(Elif, Ly3T):
for tMr7, Xk5U in zip(YKHO._ranges, Elif._ranges):
if tMr7 != Xk5U:
return tMr7 > Xk5U
return len(YKHO._ranges) > len(Elif._ranges)
elif isinstance(Elif, AVsp):
return len(YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWbp(YKHO, Elif):\n LceK = sorted(list([YKHO.start, YKHO.end]))\n Nec0 = sorted(list([Elif.start, Elif.end]))\n if LceK[0] < Nec0[0]:\n return True\n if LceK[0] > Nec0[0]:\n return False\n return LceK[1] < Nec0[1]",
"def JWbp(YKHO, Elif):\n return YKHO.lessThan(Elif)",
"def ... | [
"0.74187577",
"0.7342267",
"0.72674024",
"0.72598916",
"0.724179",
"0.71842355",
"0.717877",
"0.715763",
"0.7105539",
"0.7081123",
"0.7081123",
"0.6959257",
"0.6953113",
"0.6950966",
"0.69386107",
"0.692847",
"0.69270027",
"0.6914053",
"0.6914053",
"0.6914053",
"0.6913656",
... | 0.64287704 | 90 |
Generates random nonb64 strings and uses them to pad out and find the edge of the block. A randomly bad choice from random_nonb64_string seems like it could cause us to end up offbyone with the padding choice, which would ruin everything. Also, you sometimes need more that 16 bytes of padding. That doesn't make sense t... | def jtgF(d6AQ, RJBq=1):
hVLt = None
gUPs = N0eD(d6AQ)
for YRbF in range(32):
e4Gj = IuJS(YRbF)
B3f2 = N0eD(d6AQ + e4Gj)
if B3f2 != gUPs:
hVLt = e4Gj[:-RJBq]
break
return hVLt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IuJS(u54L):\n return ''.join(tuKI.choices('!@#$%^&*(){}[]', k=u54L))",
"def btYu(YKHO):\n dQTi = {'value': b'any carnal pleasure.', 'unpadded': 'YW55IGNhcm5hbCBwbGVhc3VyZS4', 'padded': 'YW55IGNhcm5hbCBwbGVhc3VyZS4='}\n wY1Q = {'value': b'any carnal pleasure', 'unpadded': 'YW55IGNhcm5hbCBwbGVhc3VyZQ'... | [
"0.697762",
"0.66139895",
"0.6466291",
"0.64583266",
"0.642274",
"0.6381755",
"0.6379614",
"0.63580304",
"0.6342148",
"0.6303672",
"0.6252454",
"0.62333643",
"0.6223145",
"0.6193858",
"0.61544305",
"0.6119875",
"0.61167663",
"0.6109567",
"0.60979974",
"0.6085062",
"0.60379523... | 0.69040596 | 1 |
Filter dictionary by list of keys. | def Nfq7(G1Hx: list, WmM4=None) -> YrBT[[dict], list]:
return lambda Csk6: list(map(lambda H5ew: Csk6.get(H5ew, WmM4), G1Hx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZEs(nITe, ZVgY):\n return dict(((H5ew, BWXx) for H5ew, BWXx in list(nITe.items()) if H5ew in ZVgY))",
"def N5s3(YKHO, sjXb):\n return list(filter(lambda ZfUD: ZfUD.keyword in set(sjXb), YKHO._metadata))",
"def JB75(oxOY, sjXb):\n bo34.info('For each element in the dataset, keeping only values wit... | [
"0.79166913",
"0.7502612",
"0.7451757",
"0.74441606",
"0.7368218",
"0.7142144",
"0.71179414",
"0.7048592",
"0.70165336",
"0.6968983",
"0.69485337",
"0.69450563",
"0.6944551",
"0.67850477",
"0.67178875",
"0.6640975",
"0.66340286",
"0.6629156",
"0.66277295",
"0.6623528",
"0.659... | 0.0 | -1 |
Get a collection by name. | def JgjC(YKHO, mWFP):
return YKHO.connection(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dVja(NCls, mWFP):\n if NCls.hasCollection(mWFP) is False:\n return NCls.createCollection(name=mWFP)\n return NCls[mWFP]",
"def rySi(mWFP, d6pt=-1):\n ZWCE = [WKvO.name for WKvO in kZw_.data.collections if D5ZM(WKvO.name) == mWFP]\n ZWCE = sorted(ZWCE, key=acwi)\n if len(ZWCE) == 0:\n ... | [
"0.81788105",
"0.81535053",
"0.81280386",
"0.78840953",
"0.7745918",
"0.7368756",
"0.73111546",
"0.73034626",
"0.72124255",
"0.709937",
"0.69820714",
"0.69651765",
"0.69204956",
"0.6914286",
"0.6892912",
"0.6851764",
"0.68334126",
"0.68222404",
"0.67533505",
"0.67154354",
"0.... | 0.0 | -1 |
Get a collection by name. | def OP2O(YKHO, mWFP):
return YKHO.connection(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dVja(NCls, mWFP):\n if NCls.hasCollection(mWFP) is False:\n return NCls.createCollection(name=mWFP)\n return NCls[mWFP]",
"def rySi(mWFP, d6pt=-1):\n ZWCE = [WKvO.name for WKvO in kZw_.data.collections if D5ZM(WKvO.name) == mWFP]\n ZWCE = sorted(ZWCE, key=acwi)\n if len(ZWCE) == 0:\n ... | [
"0.8178405",
"0.81548",
"0.81291497",
"0.7881524",
"0.7745879",
"0.7368146",
"0.7312133",
"0.73031545",
"0.721587",
"0.7100588",
"0.6983242",
"0.6967196",
"0.69183886",
"0.6917959",
"0.6894968",
"0.68523294",
"0.68340635",
"0.68266743",
"0.6750368",
"0.6718811",
"0.66682875",... | 0.0 | -1 |
Returns the `mu` individuals with the best fitness. | def ttlh(CHNM, QpfX, yGTL):
noZV = list(sorted(list(CHNM), reverse=True))
return (noZV[0:yGTL], QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mft4(YKHO):\n return max(YKHO._population, key=GMHI('fitness'))",
"def fH6U(YKHO):\n return YKHO.population.best_individual()",
"def Aofo(YKHO):\n return min(YKHO.population, key=lambda DM04: DM04.get_fitness())",
"def qy8K(YKHO):\n return YKHO._best_indv",
"def OmFP(YKHO) -> a4Hw:\n if ... | [
"0.7258625",
"0.6694387",
"0.6558553",
"0.65318686",
"0.65063673",
"0.63095033",
"0.6217844",
"0.62157667",
"0.61482364",
"0.612846",
"0.60963285",
"0.6075736",
"0.60661054",
"0.6044516",
"0.6002239",
"0.5984116",
"0.59467465",
"0.5898371",
"0.589647",
"0.5889918",
"0.5887586... | 0.0 | -1 |
helper method to check if the Enum value is in the Enum list | def tWmy(Emd4, BWXx):
return any((BWXx == ZfUD.value for ZfUD in Emd4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LYqH(R3cB, BWXx):\n SGVO = False\n for nPrm in R3cB:\n if nPrm == BWXx:\n SGVO = True\n break\n if SGVO:\n return BWXx\n else:\n kgfm('Value must be from enum ' + R3cB + ' Value has been set to N/A')\n return 'na'",
"def kxT9(XJAX, CXGd):\n try... | [
"0.70782113",
"0.6914558",
"0.688306",
"0.6830364",
"0.6826706",
"0.66907597",
"0.6459624",
"0.6402355",
"0.6344923",
"0.62812465",
"0.62628573",
"0.6240514",
"0.6223471",
"0.62017554",
"0.6094199",
"0.6092766",
"0.6089436",
"0.6082577",
"0.60801667",
"0.60704124",
"0.6060374... | 0.6045899 | 22 |
Returns the distance between two given coordiantes in km. | def UVU1(mAYH, pks6):
igSk, GgQG = mAYH
TGuP, tk0B = pks6
A3Vt = 6373.0
igSk = Y_1E(igSk)
GgQG = Y_1E(GgQG)
TGuP = Y_1E(TGuP)
tk0B = Y_1E(tk0B)
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2
Z9rn = 2 * vwZf(PZy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Sbn(mAYH, pks6):\n return CgaZ(mAYH, pks6).meters",
"def NDTY(igSk, GgQG, TGuP, tk0B):\n GgQG, igSk, tk0B, TGuP = map(epAf.radians, [GgQG, igSk, tk0B, TGuP])\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = epAf.sin(n_9K / 2) ** 2 + epAf.cos(igSk) * epAf.cos(TGuP) * epAf.sin(H91H / 2) ** 2\... | [
"0.8480402",
"0.8124066",
"0.8030394",
"0.7978429",
"0.79563284",
"0.79554677",
"0.7954737",
"0.7897618",
"0.78547597",
"0.7823781",
"0.7805646",
"0.780014",
"0.77902836",
"0.7775937",
"0.77694565",
"0.7762306",
"0.772791",
"0.77062",
"0.76612633",
"0.764371",
"0.7594318",
... | 0.0 | -1 |
Remove and return the top of the stack | def BEuN(YKHO):
if YKHO.head is None:
raise Exception('The stack is current empty')
sdCG = YKHO.head
YKHO.head = sdCG.nextNode
return sdCG.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(YKHO):\n if YKHO.stack == []:\n return None\n return YKHO.stack[-1]",
"def BEuN(YKHO):\n if not YKHO.isEmpty():\n YKHO.top -= 1\n return YKHO.stack.pop()\n else:\n raise Exception('Stack Underflow')",
"def BEuN(E5BI):\n ZfUD = tlxW(E5BI)\n E5BI.top = E5BI.... | [
"0.8055237",
"0.78639",
"0.7846407",
"0.78160703",
"0.77795833",
"0.774891",
"0.7746663",
"0.7730984",
"0.77100956",
"0.76688004",
"0.7646289",
"0.7604892",
"0.7602567",
"0.759944",
"0.758485",
"0.75845474",
"0.7572365",
"0.7540485",
"0.753697",
"0.7510452",
"0.75002843",
"... | 0.6929215 | 78 |
Calculate area as difference between two spherical caps | def ILBk(YKHO):
B7Vw = oyIN.cos(YKHO.polar_corners[:-1, :-1]) - oyIN.cos(YKHO.polar_corners[:-1, 1:])
FcLC = YKHO.azimuthal_corners[1:, 1:] - YKHO.azimuthal_corners[:-1, 1:]
return B7Vw * FcLC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO) -> float:\n return B4Ha(YKHO.b.position - YKHO.a.position, YKHO.c.position - YKHO.a.position).length() / 2.0",
"def IP8_(jzdc, Fg_i):\n return jzdc * Fg_i",
"def yd8O(YKHO):\n \"\"\"Косое произведение векторов\n A = (x2-x1; y2-y1; z2-z1)\n B = (x3-x1; y3-y1; z3-z1)\n ... | [
"0.64475954",
"0.6234301",
"0.609809",
"0.60165006",
"0.5998743",
"0.59651685",
"0.58605313",
"0.5847465",
"0.5842869",
"0.58076495",
"0.58034956",
"0.5786157",
"0.5753773",
"0.5709111",
"0.56674504",
"0.5655739",
"0.56498665",
"0.56473356",
"0.5641945",
"0.56389964",
"0.5626... | 0.56568617 | 15 |
Calculate each facet's projected visible area divided by its total area. Obscured facets have zero projected visible area. | def u_eZ(YKHO, yPaZ):
FsVr = oyIN.sum(yPaZ ** 2) ** 0.5
qkmR = oyIN.sum(yPaZ / FsVr * YKHO.unit_normals(), axis=-1)
return oyIN.where(qkmR > 0, qkmR, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())",
"def f0tD(YKHO) -> eQHC.NDArray[oyIN.float_]:\n return oyIN.sum(YKHO.faces.area)",
"def f0tD(YKHO) -> eQHC.NDArray[oyIN.float_]:\n LTIa = YKHO._normalized_projection()\n jzdc = sum((nUPH(LTIa[..., [0, YRbF, YRbF + 1], :]) for YRbF in ... | [
"0.66036034",
"0.6322443",
"0.5999395",
"0.5892217",
"0.5873274",
"0.58564943",
"0.58222467",
"0.5812301",
"0.57333946",
"0.57251066",
"0.5719016",
"0.5714865",
"0.5699785",
"0.569267",
"0.5679387",
"0.56638473",
"0.5659154",
"0.5607853",
"0.55549854",
"0.5547627",
"0.5542137... | 0.6349578 | 1 |
Get a keras model for self driving | def YrZb(VWvw=0.25):
C3ST = ileL()
C3ST.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0.5, input_shape=(160, 320, 3)))
C3ST.add(Ym4f(cropping=((70, 25), (0, 0))))
C3ST.add(Ofph(24, 5, 5, subsample=(2, 2), activation='relu'))
C3ST.add(Ofph(36, 5, 5, subsample=(2, 2), activation='relu'))
C3ST.add(Ofph(48, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3ST(YKHO):\n YRbF = YKHO.keras.Input(YKHO.s)\n return bdPE.Model(inputs=[YRbF], outputs=YKHO.call(YRbF))",
"def YrZb():\n FvGu = CrWt(warmup_steps=3000, phase_step=25000, max_lr=RYHy)\n K0do = ZylS.keras.optimizers.Adam(learning_rate=FvGu, beta_1=0.9, beta_2=0.98, epsilon=1e-09)\n C3ST = YWjc... | [
"0.7602193",
"0.74073905",
"0.7263948",
"0.72520405",
"0.72511643",
"0.7080395",
"0.70644933",
"0.7051996",
"0.7036189",
"0.6999062",
"0.69140404",
"0.68632644",
"0.6835499",
"0.68279606",
"0.6817431",
"0.67866457",
"0.6766478",
"0.67352796",
"0.67341435",
"0.6725837",
"0.668... | 0.6742859 | 17 |
returns a dictionary of the number of each character in given string | def thJw(KCHu):
Csk6 = dict()
for Z9rn in KCHu:
Csk6[Z9rn] = 1 + Csk6.get(Z9rn, 0)
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bd0X(vIwR):\n BWz1 = {}\n for hcXw in iter(vIwR):\n BWz1[hcXw] = 1 if not hcXw in BWz1.keys() else BWz1[hcXw] + 1\n return BWz1",
"def jKv6(KCHu: str) -> dict:\n On0l = {}\n for Z9rn in KCHu:\n if Z9rn in On0l:\n On0l[Z9rn] += 1\n else:\n On0l[Z9rn] =... | [
"0.88129765",
"0.8728361",
"0.848237",
"0.7866813",
"0.7430138",
"0.73922616",
"0.7292377",
"0.72465414",
"0.7194462",
"0.71261334",
"0.70986706",
"0.70407724",
"0.69946",
"0.6918164",
"0.6881948",
"0.686667",
"0.68311346",
"0.678107",
"0.6768525",
"0.6765421",
"0.6709649",
... | 0.58809227 | 100 |
function takes a list as a parameter and returns True if there is any object that appears more than once in the list. | def xscp(DumB):
DumB = list()
DumB.sort()
for YRbF in range(len(DumB) - 1):
if DumB[YRbF] == DumB[YRbF + 1]:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xscp(list):\n for YRbF in list:\n if list.count(YRbF) > 1:\n return True\n else:\n return False",
"def nnjY(yv6U):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return len(set(yv6U)) != len(yv6U)",
"def xscp(vC9B):\n return len(set(vC9B)) < len(vC9B)",
"def xscp(y... | [
"0.8356981",
"0.78153104",
"0.78064686",
"0.7804727",
"0.77091527",
"0.7703053",
"0.73921263",
"0.7391209",
"0.73732364",
"0.71622396",
"0.7151505",
"0.7140099",
"0.7073233",
"0.68805426",
"0.68352044",
"0.6829664",
"0.6809763",
"0.67949265",
"0.67942727",
"0.67751294",
"0.67... | 0.7244058 | 9 |
get the relative part of a file name | def t_yv(jNha, pGQh, eHNT):
vBWh = Hy7s.path.join(pGQh, eHNT)
if not jNha:
return vBWh
if not vBWh.startswith(jNha):
print('ERROR - bad path for root', vBWh)
return None
vBWh = vBWh[len(jNha):]
if vBWh.startswith('/'):
return vBWh[1:]
return vBWh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rB7B(Ux0P, IBYl=None):\n if IBYl is None:\n IBYl = Hy7s.getcwd()\n if not IBYl.endswith(Hy7s.path.sep):\n IBYl += Hy7s.path.sep\n Ux0P = Hy7s.path.normpath(Hy7s.path.abspath(Ux0P))\n if Ux0P.startswith(IBYl):\n return Ux0P[len(IBYl):]\n else:\n return Ux0P",
"def d5... | [
"0.77508247",
"0.7650104",
"0.76407677",
"0.73681045",
"0.73411417",
"0.7298228",
"0.72676605",
"0.7263605",
"0.72431535",
"0.7241038",
"0.72329915",
"0.7219528",
"0.7213912",
"0.720237",
"0.7172762",
"0.7138965",
"0.71329033",
"0.71205574",
"0.7119385",
"0.71153474",
"0.7114... | 0.0 | -1 |
Method checks that a user's password follows specific criteria such as at least one uppercase character, one lowercase, one number and one spceial character. Password should also be atleast six characters long. | def tg18(YKHO):
if not ZbWC.match('[A-Za-z0-9@#]', YKHO.password):
return 'Oops!, invalid password'
elif len(YKHO.password) < 6:
return 'Password should be at least six characters long'
return 'Valid password!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpdD(jTXt):\n wEf2 = True\n if len(jTXt) < 8:\n wEf2 = False\n return wEf2\n if not any((hcXw.isdigit() for hcXw in jTXt)):\n wEf2 = False\n return wEf2\n if not any((hcXw.isupper() for hcXw in jTXt)):\n wEf2 = False\n return wEf2\n if not any((hcXw.islo... | [
"0.79485446",
"0.7837788",
"0.7835347",
"0.78181136",
"0.78085726",
"0.7779497",
"0.77667016",
"0.7624198",
"0.7602153",
"0.75298136",
"0.7520804",
"0.7500461",
"0.7494316",
"0.7437111",
"0.7371643",
"0.7322012",
"0.7311963",
"0.7310951",
"0.73028916",
"0.7295427",
"0.7295263... | 0.79412055 | 1 |
Set this widget as invalidated | def sk_R(YKHO):
YKHO.set_property('image', YKHO.__errorimg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kELS(YKHO):\n YKHO._valid = False",
"def kELS(YKHO):\n YKHO.valid = False",
"def kELS(YKHO):\n YKHO.invalidate_rect(YKHO.viewed_rect())",
"def kELS(YKHO):\n YKHO.set_viewport(YKHO.x, YKHO.y, YKHO.w, YKHO.h, True)",
"def kELS(YKHO):\n assert YKHO._parent\n YKHO._parent.child_invalidate... | [
"0.7593571",
"0.75661063",
"0.7277339",
"0.6970411",
"0.68401927",
"0.6762689",
"0.6561643",
"0.6507955",
"0.6317077",
"0.62412494",
"0.61127305",
"0.59732246",
"0.58780116",
"0.58077824",
"0.5774363",
"0.57401264",
"0.5731592",
"0.5679216",
"0.55228114",
"0.54466474",
"0.542... | 0.6746798 | 6 |
Renders the barcode and writes it to the file like object `fp`. | def Lsrz(YKHO, ytgA, xAU6=None, l5Ny=None):
hlel = YKHO.render(xAU6, l5Ny)
YKHO.writer.write(hlel, ytgA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxjC(YKHO, ytgA):\n ytgA.write(YKHO.text)",
"async def handle(Emd4, pB3N: bytearray):\n bo34.debug('Rendering graphics')\n try:\n ezWE = BlNT.unpack(f'<{len(pB3N)}B', pB3N)[6:66]\n VXjJ = hnIv.frombytes(data=bytes(ezWE), size=(len(ezWE) * 8, 1), mode='1')\n DVQL = BlNT.unpack('<... | [
"0.61595565",
"0.6143571",
"0.59233695",
"0.57847923",
"0.5589125",
"0.55841464",
"0.5484185",
"0.5474442",
"0.54609454",
"0.5382703",
"0.5382462",
"0.53682333",
"0.53422505",
"0.5308852",
"0.52317905",
"0.5228739",
"0.5212052",
"0.52024317",
"0.51969445",
"0.51915586",
"0.51... | 0.64254045 | 0 |
Load config from yml/yaml file. | def LgIG(qaEx):
bGrB, YBcr = Hy7s.path.splitext(qaEx)
assert YBcr in ['.yml', '.yaml'], 'only support yaml files for now'
GPtr = eJb6.load(open(qaEx, 'rb'), Loader=eJb6.Loader)
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9B0(Emd4, nUeQ=None):\n if nUeQ is None:\n nUeQ = f'{Elhn.base_path}cfg.yml'\n try:\n with open(nUeQ, 'r') as eHNT:\n GPtr = eJb6.load(eHNT, Loader=eJb6.FullLoader)\n _Fei.__dict__ = GPtr\n return _Fei\n except FileNotFoundError:\n print(\"Config file doe... | [
"0.8171059",
"0.8076701",
"0.8056154",
"0.7955563",
"0.79520464",
"0.7918401",
"0.79007226",
"0.78934366",
"0.7892787",
"0.7880029",
"0.7879076",
"0.7866957",
"0.78608185",
"0.7795735",
"0.77768874",
"0.7771925",
"0.7710141",
"0.7692372",
"0.76506853",
"0.76146287",
"0.760613... | 0.7916458 | 6 |
Log error and exit when set use_gpu=true in paddlepaddle cpu version. | def nlJD(IHts, hX5b=False, ochm=False, w_95=False):
XObx = 'Config {} cannot be set as true while your paddle is not compiled with {} ! \nPlease try: \n\t1. Install paddlepaddle to run model on {} \n\t2. Set {} as false in config file to run model on CPU'
try:
if IHts and hX5b:
print('use_xp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FT5c():\n try:\n EpYW = ZylS.config.experimental.list_physical_devices('GPU')\n for wqL3 in EpYW:\n ZylS.config.experimental.set_memory_growth(wqL3, True)\n except Exception as e:\n print(tTpl)",
"def U42s(bGrB: None, t7WF: bool=False) -> None:\n eKo_ = ZylS.config.li... | [
"0.6030626",
"0.56272054",
"0.5495042",
"0.54887277",
"0.54819566",
"0.5446715",
"0.5444931",
"0.5444666",
"0.5442727",
"0.54349977",
"0.5404745",
"0.5403589",
"0.53750515",
"0.5369692",
"0.5368978",
"0.53249216",
"0.53130484",
"0.53113705",
"0.53113705",
"0.53080493",
"0.530... | 0.6605659 | 0 |
renders the index page template | def d6pt():
return list() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt(YKHO):\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return... | [
"0.86780834",
"0.86672497",
"0.86589026",
"0.8596844",
"0.8596844",
"0.8576117",
"0.8576117",
"0.8576117",
"0.8534208",
"0.85176384",
"0.85176384",
"0.85143596",
"0.8486178",
"0.8483066",
"0.8446178",
"0.84431356",
"0.8437712",
"0.8400412",
"0.8388795",
"0.8388795",
"0.838879... | 0.0 | -1 |
Authorization property. Returns bool True if there is an authorized session. False if no authentication. | def P3Bs(YKHO) -> bool:
if 'access_token' in cuiw:
if cuiw.get('access_token') is not None:
if 'user' in cuiw:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oAWu(YKHO):\n return YKHO.authorization is not None",
"def em58(YKHO):\n return YKHO._authorization",
"def rts1(YKHO):\n return bool(Vu5X())",
"def gxGj():\n return True",
"def rts1(YKHO):\n return bool(YKHO._authenticated)",
"def rts1(YKHO):\n return YKHO.authenticated",
"def rts... | [
"0.79943323",
"0.73050845",
"0.7169229",
"0.7161055",
"0.7154509",
"0.7149075",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7094416",
"0.7076434",
"0.7007058",
... | 0.76709175 | 1 |
View for home page. | def d6pt(YKHO) -> Z8IP:
return TvZl('index.jinja2') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'home.html')",
"def kZiy(QePW):\n return SGJU('home.html', {}, K1Ja(QePW))",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now... | [
"0.84998274",
"0.8357836",
"0.8333323",
"0.82733816",
"0.8241409",
"0.82058656",
"0.8176338",
"0.8169344",
"0.81677043",
"0.81508076",
"0.81365496",
"0.8130035",
"0.8121874",
"0.81208825",
"0.81032896",
"0.81032896",
"0.81032896",
"0.81032896",
"0.81032896",
"0.81032896",
"0.... | 0.0 | -1 |
Logout view for authenticated users. | def erK4(YKHO) -> uLKX[vKnz, Z8IP]:
if YKHO.is_authorized:
cuiw.clear()
Dwep('Successfully logged out.')
return TvZl('index.jinja2')
Dwep('You must login before logging out.')
return vKnz(nKyW('login')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def erK4(QePW):\n Jpbe.logout(QePW)\n return SGJU('auth/logout.html', {}, context_instance=K1Ja(QePW))",
"def erK4(YKHO):\n if 'user' in cuiw:\n del cuiw['user']\n cuiw.save()\n return _1tc('logout.html')",
"def erK4(YKHO):\n cuiw.delete()\n return _1tc('login.html')",
"def AX... | [
"0.83471423",
"0.82361776",
"0.8230418",
"0.8218052",
"0.81781286",
"0.8152129",
"0.81178445",
"0.80940205",
"0.80595577",
"0.80526656",
"0.801767",
"0.8005667",
"0.79834765",
"0.79808897",
"0.7973572",
"0.79714566",
"0.796274",
"0.7962378",
"0.7961954",
"0.79616106",
"0.7956... | 0.0 | -1 |
conv2d returns a 2d convolution layer with full stride. | def b_zE(WKvO, XcU5):
return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DYf_():\n VXjJ = oyIN.array([[0.3, 0.5, 0.7, 0.9], [0.1, 0.3, 0.5, 0.7], [0.9, 0.7, 0.5, 0.3]])\n rPXJ = oyIN.array([[1, 0], [1, 0]])\n rPXJ = oyIN.flipud(oyIN.fliplr(rPXJ))\n return cxpp(VXjJ, rPXJ, mode='valid')",
"def gZ8A(WKvO, XcU5):\n return ZylS.nn.conv2d(input=WKvO, filter=XcU5, stride... | [
"0.763011",
"0.7626646",
"0.75784826",
"0.7463977",
"0.74572504",
"0.74572504",
"0.738611",
"0.73377377",
"0.73304254",
"0.7329959",
"0.731406",
"0.73021233",
"0.7296823",
"0.72701716",
"0.72465515",
"0.72311795",
"0.7208086",
"0.71958727",
"0.71894747",
"0.718813",
"0.715269... | 0.74255186 | 8 |
weight_variable generates a weight variable of a given shape. | def E9N2(ROpF):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.get_variable('weight', initializer=RqgG, regularizer=ZylS.nn.l2_loss)",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF)\n return ZylS.Variable(RqgG)",
"def JJi2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev... | [
"0.82676315",
"0.82352746",
"0.8158468",
"0.8156685",
"0.8139645",
"0.8139645",
"0.8139645",
"0.81377345",
"0.8120728",
"0.8065089",
"0.7982192",
"0.7978342",
"0.79574174",
"0.7919707",
"0.7776776",
"0.75521666",
"0.7532865",
"0.7504245",
"0.7303858",
"0.72897357",
"0.7204414... | 0.8134496 | 11 |
Return whether the project is frozen | def nL47():
return hasattr(HwRy, 'frozen') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aQFj():\n return hasattr(HwRy, 'frozen')",
"def nCRM():\n return hasattr(HwRy, 'frozen') and HwRy.frozen",
"def UjqH():\n if getattr(HwRy, 'frozen', False):\n return True\n rKZV = Hy7s.path.dirname(HwRy.argv[0])\n try:\n Hy7s.chdir(rKZV)\n except OSError:\n pass\n ... | [
"0.78078586",
"0.7634663",
"0.71416634",
"0.65451753",
"0.61488885",
"0.61222196",
"0.6061244",
"0.60501176",
"0.6012911",
"0.60122603",
"0.5994024",
"0.5969857",
"0.59257096",
"0.58281845",
"0.5824171",
"0.5821328",
"0.5810301",
"0.5793159",
"0.5779809",
"0.5757663",
"0.5756... | 0.8677583 | 0 |
Get Django project directory | def WdOO():
if nL47():
return Hy7s.path.dirname(HwRy.executable)
else:
return Hy7s.path.dirname(xAKo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHA8():\n return NW1j(sQK_)",
"def TdjZ():\n return GkAb(gCuF.PROJECT_DIR)",
"def zHh0(YKHO):\n Emaa, RJsz = YKHO._FindKeyFiles()\n if Emaa is None:\n return None\n else:\n return Hy7s.path.dirname(Emaa)",
"def TdjZ():\n pmON = GkAb(xAKo).parent.parent\n I7OS = pmON.par... | [
"0.8984897",
"0.8700699",
"0.8123626",
"0.7800561",
"0.73934877",
"0.7343072",
"0.72928584",
"0.7282272",
"0.72678226",
"0.7219971",
"0.7183149",
"0.71668786",
"0.71668786",
"0.71656454",
"0.7068137",
"0.70033467",
"0.70033467",
"0.70033467",
"0.70033467",
"0.69782645",
"0.69... | 0.0 | -1 |
Check if the user has access to the required method. | def SdQn(NKcE):
@xBlr.wraps(NKcE)
def h3Xc(*qIxc, **B2fa):
"""Check if the request is valid."""
geh0 = {'meta': {'status': B2fa.pop('status', True), 'verbose': B2fa.pop('verbose', 'OK')}, 'content': None}
if not geh0['meta']['status']:
CnSx.response.headers['Content-Type'] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RqVl(YKHO, NKcE, CBIr, **YSA3):\n if YKHO.auth_required and (not (CBIr and CBIr.authenticated and CBIr.active)):\n return False\n if isinstance(NKcE, lJwP.string_types):\n try:\n NKcE = jxi9.RST.HTTP_Method.Table[NKcE]\n except KeyError:\n raise YKHO.Status.Meth... | [
"0.76295257",
"0.73392624",
"0.73343",
"0.7326424",
"0.731631",
"0.72764957",
"0.7256667",
"0.7253566",
"0.7237147",
"0.7236626",
"0.71806896",
"0.7168283",
"0.7168283",
"0.7168283",
"0.7137698",
"0.7112184",
"0.7087511",
"0.70257586",
"0.69784284",
"0.69379395",
"0.6901241",... | 0.0 | -1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, dngC):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80891633",
"0.80891633",
"0.8055254",
"0.7983334",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"... | 0.80920255 | 6 |
Standard form derivative vector dy/dt = f | def PMj3(a1PO, LVAh, ut5U):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(YKHO, WKvO, P6bq, a1PO=0):\n LVAh = WKvO[0]\n eUWA = WKvO[1]\n lXfK = -LVAh + YKHO.mu * eUWA * (1 - LVAh ** 2)\n Jw7X = oyIN.zeros(YKHO.n)\n Jw7X[0] = eUWA\n Jw7X[1] = lXfK\n return Jw7X",
"def LyOx(WKvO):\n return VVyp(MC1R, WKvO, dx=1e-06)",
"def LyOx(WKvO):\n return VVyp(... | [
"0.74118215",
"0.70713615",
"0.70713615",
"0.70241827",
"0.69959396",
"0.69624066",
"0.6928697",
"0.6922399",
"0.69155115",
"0.6914952",
"0.6887787",
"0.6883815",
"0.6871876",
"0.6833979",
"0.6830187",
"0.680934",
"0.68087226",
"0.6802347",
"0.6789764",
"0.6783344",
"0.676567... | 0.0 | -1 |
Extracts a dataframe from a csv file path. | def gAIt(YKHO, qaEx):
jQ3Z = rLdf.read_csv(qaEx, sep=';')
jQ3Z.rename(columns={'Get': 'Currency'}, inplace=True)
jQ3Z = jQ3Z[jQ3Z['Pay'] == 'Chaos Orb']
jQ3Z = jQ3Z[['League', 'Date', 'Currency', 'Value']]
jQ3Z['Date'] = rLdf.to_datetime(jQ3Z['Date'])
jQ3Z['Date'] = jQ3Z['Date'] - jQ3Z.loc[0]['D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LvsP(YKHO, pmON=None):\n jQ3Z = rLdf.read_csv(pmON)\n return jQ3Z",
"def yLtf(pmON):\n jQ3Z = rLdf.read_csv(pmON)\n return jQ3Z",
"def HND1(Jmpp):\n jQ3Z = rLdf.read_csv(Jmpp)\n return jQ3Z",
"def UlWi(Jmpp):\n jQ3Z = rLdf.read_csv(Jmpp)\n return jQ3Z",
"def Hyyu(pmON):\n if ... | [
"0.78663635",
"0.78641117",
"0.7813696",
"0.77866244",
"0.77561927",
"0.7724274",
"0.76668996",
"0.7625887",
"0.7583813",
"0.75792885",
"0.75658774",
"0.74681246",
"0.7372635",
"0.732907",
"0.7319864",
"0.7311244",
"0.73067987",
"0.73067987",
"0.724225",
"0.7203717",
"0.72022... | 0.0 | -1 |
A plotly scatter plot of each currency over the days since the league started. The currency plotted can be adjusted in the dropdown menu. Leagues can be toggled on the right hand legend. | def aemi(YKHO, jQ3Z=None, JNWF=None, eiOs=None):
if not jQ3Z:
jQ3Z = YKHO.df
if not JNWF:
JNWF = YKHO.league_names
if not eiOs:
eiOs = YKHO.latest_currency
jQ3Z = jQ3Z.fillna(0)
LZpg = iEax.Figure()
for GHy7 in JNWF:
LZpg.add_traces(iEax.Scatter(x=jQ3Z.index, y=jQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wR4G(jQ3Z):\n HfwA = []\n for ITJB in jQ3Z['property_type'].unique():\n LmYr = jQ3Z[jQ3Z['property_type'] == ITJB]\n HfwA.append(iEax.Scatter(x=LmYr['year'], y=LmYr['price_paid'], mode='markers', marker=dict(size=35, opacity=0.2, line=dict(width=1, color='darkSlateGrey')), name=ITJB, connec... | [
"0.6387258",
"0.62562644",
"0.62561905",
"0.62450075",
"0.62242776",
"0.6089371",
"0.60658604",
"0.6047351",
"0.5986556",
"0.5863006",
"0.58064127",
"0.5792166",
"0.5779784",
"0.57734954",
"0.5734864",
"0.57324374",
"0.57186824",
"0.5690769",
"0.56768566",
"0.5672327",
"0.565... | 0.7011267 | 0 |
Calculate the sigmoid for a given node net value. This will be the output of the node. | def yvT9(Hrw9, l70R, oug5):
return 1 / (1 + epAf.exp(-1 * Zxma(Hrw9, l70R, oug5))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(BWXx):\n return 1.0 / (1.0 + epAf.exp(-BWXx))",
"def m1Hg(FGW3):\n return 1 / (1 + epAf.exp(-FGW3))",
"def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))",
"def m1Hg(nPrm):\n return sfxH.sigmoid(nPrm)",
"def m1Hg(WKvO):\n return 1.0 / (1.0 + epAf.exp(-(WKvO - 0.5) * 12.0))",
"def ... | [
"0.81489015",
"0.7878923",
"0.76249677",
"0.76079345",
"0.75991523",
"0.75726384",
"0.75661886",
"0.75589615",
"0.75589615",
"0.75559783",
"0.7545747",
"0.7545747",
"0.75425965",
"0.7540478",
"0.753102",
"0.7512009",
"0.75046784",
"0.7502625",
"0.74917054",
"0.74635553",
"0.7... | 0.0 | -1 |
Use the cross entropy_cost function to calculate test accuracy C (W, B) = 1/n > FOR EACH OUTPUT NODE (Y1 Y1 ln(OutputOut) (1 Y1) ln(1 OutputOut) | def QVjL(F40f, BcGD):
wjRY = 0
for auXa in range(len(BcGD)):
for VoVl in range(len(F40f)):
wjRY += BcGD[auXa][VoVl] - BcGD[auXa][VoVl] * oyIN.log(F40f[VoVl]) - (1 - BcGD[auXa][VoVl]) * oyIN.log(1 - F40f[VoVl])
wjRY = 1 / wjRY
return wjRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cV77(YKHO, hlel, WlfR):\n return -oyIN.sum(oyIN.log(oyIN.clip(hlel, a_min=1e-12, a_max=1.0))[oyIN.arange(WlfR.shape[0]), WlfR[:, 1]])",
"def sSN_(YKHO, hlel, Crrw, _mSQ):\n return ZylS.multiply(0.5 * ZylS.square(hlel - Crrw), _mSQ)",
"def UM2M(YKHO, EcVT, LVAh):\n paGB = oyIN.shape(EcVT)[0]\n e... | [
"0.7147914",
"0.6966971",
"0.69210225",
"0.6916416",
"0.6836677",
"0.67583424",
"0.675516",
"0.6698158",
"0.66814685",
"0.66542345",
"0.6639745",
"0.6603652",
"0.6529844",
"0.65057",
"0.6492452",
"0.64892566",
"0.6467188",
"0.64471984",
"0.64458996",
"0.64451957",
"0.64447767... | 0.8175276 | 0 |
Takes in two lists of the same length and returns y sorted by the indexing of x sorted. | def W6Uz(LVAh, WKvO):
fUYa = oyIN.sort(WKvO)
p6S0 = oyIN.argsort(WKvO)
bEXe = oyIN.ones(len(LVAh))
for YRbF in range(len(LVAh)):
r845 = p6S0[YRbF]
bEXe[YRbF] = LVAh[r845]
return bEXe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fymA(EcVT, fuBA):\n Kt_s = sorted(zip(EcVT, fuBA), key=lambda WKvO: WKvO[0])\n EcVT = oyIN.array([WKvO for WKvO, bGrB in Kt_s])\n fuBA = oyIN.array([LVAh for bGrB, LVAh in Kt_s])\n return (EcVT, fuBA)",
"def gMQm(WKvO, LVAh):\n if WKvO[1] == LVAh[1]:\n return 1 if WKvO[0] > LVAh[0] else... | [
"0.7483256",
"0.678364",
"0.6698966",
"0.6548078",
"0.6394822",
"0.63507754",
"0.625978",
"0.6214054",
"0.6206101",
"0.6170923",
"0.6061609",
"0.6040528",
"0.5972946",
"0.5954422",
"0.5928571",
"0.59281534",
"0.5903124",
"0.58640814",
"0.58632004",
"0.5854776",
"0.5853001",
... | 0.7911107 | 0 |
Initialises a Mock Video Manager. | def FIMM(YKHO, f6W2: cv2.VideoCapture):
YKHO.video = f6W2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.mod = Tknz(FM6F(), xK1W(), r1mR({'data': YKHO.sample_xml, 'sourceUrl': YKHO.sample_sourceurl}), Wnge(None, None, None, None))",
"def FCbF(YKHO):\n super(J5Ry, YKHO).setUp()\n YKHO.video = gqRj(YKHO.browser)\n YKHO.tab_nav = WV1A(YKHO.browser)\n YKHO.course_nav = Pw9d(YKHO.br... | [
"0.67581904",
"0.64824015",
"0.6355656",
"0.6274247",
"0.6224967",
"0.61923236",
"0.61902136",
"0.6128465",
"0.5996813",
"0.5994989",
"0.5896244",
"0.58381426",
"0.56957865",
"0.5675073",
"0.56449157",
"0.5631838",
"0.5573484",
"0.5557005",
"0.55542034",
"0.5549029",
"0.55483... | 0.53804874 | 32 |
Reshape a stack of images into an NxN (2D) grid. | def pc0Y(E5BI):
exwG = int(oyIN.sqrt(E5BI.shape[0]))
if exwG ** 2 < E5BI.shape[0]:
exwG += 1
NRgP = oyIN.zeros((exwG ** 2, E5BI.shape[1], E5BI.shape[2]))
NRgP[:E5BI.shape[0]] = E5BI
Cs6h = NRgP.reshape(exwG, exwG, NRgP.shape[1], NRgP.shape[2])
Cs6h = Cs6h.swapaxes(1, 2)
Cs6h = Cs6h.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PfH2(d4Jv):\n assert len(d4Jv.shape) == 4\n CL5K = [d4Jv[YRbF, :, :, :] for YRbF in range(d4Jv.shape[0])]\n NPlM = oyIN.concatenate(CL5K, axis=1)\n return NPlM",
"def aln0(Yw_3, aUKP, hVLt=2):\n H2v2, TVTK = Yw_3[0].shape[:2]\n olTx = int(oyIN.ceil(len(Yw_3) / aUKP))\n i6Hb = Yw_3[0].sha... | [
"0.70496476",
"0.68358976",
"0.6607711",
"0.66076595",
"0.656279",
"0.653498",
"0.65072936",
"0.6501133",
"0.64888084",
"0.6467831",
"0.64456403",
"0.64403653",
"0.62870204",
"0.6142395",
"0.6101684",
"0.6070413",
"0.6047843",
"0.6047843",
"0.60325116",
"0.59984607",
"0.59723... | 0.7001085 | 1 |
Gets the end cycle | def A_2I(YKHO):
return YKHO.end_cycle | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q0ht(YKHO):\n return YKHO._end",
"def A_2I(YKHO):\n return YKHO.__end",
"def A_2I(YKHO):\n return YKHO._end",
"def brro(YKHO) -> Swre:\n ...",
"def Os4s(YKHO):\n return YKHO.end_",
"def Os4s(YKHO):\n return YKHO._end",
"def n2fR(YKHO):\n return YKHO._cycle",
"def Os4s(YKHO):\... | [
"0.7403909",
"0.7326128",
"0.72374856",
"0.70053214",
"0.6911226",
"0.6892626",
"0.6870236",
"0.6864447",
"0.68596363",
"0.68445116",
"0.68358475",
"0.68358475",
"0.68358475",
"0.68298787",
"0.6634621",
"0.66159403",
"0.65776396",
"0.65713555",
"0.6504512",
"0.646576",
"0.646... | 0.88050103 | 0 |
Fetches all the Alert Policies identified by the filter passed as filter parameter. The desired return type can be specified by the format parameter, the supported formats are "dict", "json" and None which returns python dictionary, stringified JSON and protobuf respectively. | def Ewv4(YKHO, ekCf: str=mifp, GUy1: str | None=None, UU6M: str | None=None, DeLa: str | None=None, bNfU: int | None=None, ZFzw: Retry | _MethodDefault=TccD, vYBr: float | None=None, yIVm: Sequence[tuple[str, str]]=()) -> ImMB:
x0hE = YKHO._get_policy_client()
zlWS = x0hE.list_alert_policies(request={'name': f'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pgWK(YKHO, **B2fa):\n HhGF = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds']\n HhGF.append('callback')\n NArs = locals()\n for H5ew, wEf2 in BVGD(NArs['kwargs']):\n if H5ew not in HhGF:\n raise TypeError(\"Got an unexpected keyword ar... | [
"0.5876873",
"0.5760106",
"0.56708795",
"0.55930024",
"0.545748",
"0.54561687",
"0.54528487",
"0.5424432",
"0.54059166",
"0.5388893",
"0.53849196",
"0.53104997",
"0.5272721",
"0.51980495",
"0.5186063",
"0.5153899",
"0.51417834",
"0.5108986",
"0.5097155",
"0.5069024",
"0.50689... | 0.7392986 | 0 |
Validates that username exists. | def X4c1(YKHO):
YKHO.assertEqual(YKHO.user.username, 'daron') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z3WL(YKHO, NtEF):\n CBIr = mv1M.query.filter_by(username=NtEF.data).first()\n if CBIr:\n raise sUXu('That username already exists. Please choose another username.')",
"def Z3WL(YKHO, NvFm):\n if mv1M.get_by_username(NvFm.data):\n raise sUXu('This username is already taken.')",
"def Z... | [
"0.82671064",
"0.8243311",
"0.8148156",
"0.81465757",
"0.8130147",
"0.8118754",
"0.8054453",
"0.80069405",
"0.79885566",
"0.7970082",
"0.7969505",
"0.7964778",
"0.786958",
"0.78461826",
"0.78461826",
"0.78245294",
"0.78217024",
"0.78082705",
"0.7804575",
"0.7798418",
"0.76926... | 0.0 | -1 |
Checks a filename to see if the image can be loaded. | def xap3(YKHO, Ux0P):
P1dF = None
q5sG = None
Yb80 = Hy7s.path.expanduser(Hy7s.path.expandvars(Ux0P))
if not Hy7s.path.isabs(Yb80):
try:
if kMuH():
XP5J = YKHO.get_designer_window()
if XP5J is not None:
SUao = XP5J.absoluteDir().abs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TfuZ(Ux0P):\n return DVFM(Ux0P, UcD8)",
"def BMU5(Ux0P):\n qaEx = Hy7s.path.join(P4t4.config['UPLOAD_FOLDER'], Ux0P)\n return Hy7s.path.isfile(qaEx)",
"def KKq3(Ux0P):\n if not '.' in Ux0P:\n return False\n YBcr = Ux0P.rsplit('.', 1)[1]\n if YBcr.lower() in E3oP:\n return Tr... | [
"0.7709825",
"0.7623971",
"0.75272745",
"0.7511718",
"0.7342195",
"0.73200023",
"0.72929937",
"0.7260038",
"0.7240933",
"0.72077227",
"0.7171105",
"0.7066555",
"0.7054715",
"0.69787014",
"0.69657904",
"0.6960555",
"0.6955605",
"0.6929177",
"0.6845409",
"0.68088657",
"0.680815... | 0.7275409 | 7 |
Unescape a string that was the output of escape() | def XaR8(hgEO):
DH6c = '^x not followed by a valid 2-digit hex number'
cXkO = 0
vC9B = len(hgEO)
YRbF = 0
hlel = []
while YRbF < vC9B:
Z9rn = hgEO[YRbF]
if Z9rn in v4Sr:
raise Wn9c.errorhandler.StringUnspecial_characterException(hgEO, 'unprintable character', cXkO, YR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XaR8(input):\n hlel = _1Sn.cleaner_escape.unescape(input)\n return hlel",
"def T3BP(l5Ny):\n\n def uLl5(r8hN):\n if len(r8hN.group(1)) & 1:\n return r8hN.group(1) + 'x0' + r8hN.group(2)\n return r8hN.group(0)\n Aofo = RFdV.sub(uLl5, l5Ny)\n return Aofo.encode('utf-8').... | [
"0.7918344",
"0.7471021",
"0.73850304",
"0.73104185",
"0.7240245",
"0.7235035",
"0.7090391",
"0.70686185",
"0.7002204",
"0.6999091",
"0.6954795",
"0.69344044",
"0.6854047",
"0.6841928",
"0.6805756",
"0.67990834",
"0.6787888",
"0.67567325",
"0.6747645",
"0.6729851",
"0.6720272... | 0.6141516 | 45 |
Splits line into tokens based on whitespace separation. It takes into account spaces that are special_characterd. Returns a list of unspecial_characterd tokens. May raise StringUnspecial_characterException if any token is not a valid special_characterd string. just_one_token is used by unspecial_character(); in that ca... | def wr3U(fWcO, PwQ1=True, MBOF=True, E5oB=False):
DH6c = '^x not followed by a valid 2-digit hex number'
YZEk = False
dcfm = False
zSMv = -1
cXkO = 0
vC9B = len(fWcO)
YRbF = 0
hlel = []
s2mk = []
gSWe = True
try:
while YRbF < vC9B:
yATB = False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y4Oq(YKHO, zFiD: str, mXDZ='\\\\W'):\n zFiD = ZbWC.sub('[.,;:]', ' ', zFiD)\n return ZbWC.split(mXDZ, zFiD.lower())",
"def ns_z(zFiD):\n KpBT = False\n eOtH = ''\n cXkO = 0\n for YRbF, hcXw in enumerate(zFiD):\n if hcXw == ' ':\n if len(eOtH) > 0:\n yield (c... | [
"0.65751344",
"0.65457356",
"0.6431441",
"0.6304925",
"0.6288682",
"0.6238891",
"0.62264663",
"0.6199222",
"0.61954075",
"0.6182821",
"0.6182821",
"0.6182821",
"0.6182674",
"0.612956",
"0.6125016",
"0.61085933",
"0.608585",
"0.608585",
"0.608585",
"0.608006",
"0.6059871",
"... | 0.55252534 | 50 |
Constructs a ResNet50 model. | def uwZX(mL4f=False, **B2fa):
C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST",
"def uwZX(**B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n return C3ST",
"def uwZX(m... | [
"0.7557751",
"0.75548905",
"0.74557495",
"0.7386862",
"0.7386862",
"0.73601955",
"0.7355623",
"0.724254",
"0.724254",
"0.7191571",
"0.7158499",
"0.7101107",
"0.70165247",
"0.69687796",
"0.68687624",
"0.6822836",
"0.6801022",
"0.67330164",
"0.6718147",
"0.67159295",
"0.657444"... | 0.74759895 | 3 |
Returns minimum item in the priority queue. | def min(YKHO):
return tuple(YKHO.__heap[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CTDF(YKHO):\n if YKHO.is_empty():\n raise rWmY('Priority queue is empty')\n wuLw = YKHO._data.first()\n ZAda = YKHO._data.after(wuLw)\n while ZAda is not None:\n if ZAda.element() < wuLw.element():\n wuLw = ZAda\n ZAda = YKHO._data.after(ZAda)\n return wuLw",
"d... | [
"0.86740386",
"0.84535",
"0.8113418",
"0.80409086",
"0.80255353",
"0.80082375",
"0.80082375",
"0.79475576",
"0.79256207",
"0.78295034",
"0.77828515",
"0.77618265",
"0.7739976",
"0.76487297",
"0.7520621",
"0.7504462",
"0.7502975",
"0.74707234",
"0.7452476",
"0.7439667",
"0.742... | 0.734252 | 24 |
Check if given string is a valid UUIDv4. | def A49Z(FNHb):
try:
qxeD = S7kj(FNHb, version=4)
except Exception:
return False
return qxeD.hex == FNHb.replace('-', '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oab2(hUOr):\n try:\n S7kj(hUOr, version=4)\n except (ValueError, TypeError):\n return False\n return True",
"def Flfh(hUOr):\n try:\n S7kj(hUOr, version=4)\n return True\n except:\n return False",
"def Nm33(h_Bp):\n return isinstance(h_Bp, str) and h4nb.... | [
"0.87398326",
"0.85870236",
"0.81463665",
"0.7984388",
"0.7666422",
"0.759155",
"0.75294316",
"0.71619904",
"0.7143167",
"0.7100845",
"0.7063074",
"0.6839967",
"0.6839967",
"0.6802052",
"0.6735238",
"0.6700896",
"0.6663512",
"0.6634178",
"0.6434822",
"0.6335212",
"0.6323491",... | 0.8171491 | 2 |
Get the distance to another location. | def Ayfi(YKHO, Elif: 'Location') -> float:
return GeVo(YKHO.latitude, YKHO.longitude, Elif.latitude, Elif.longitude) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s7yO(YKHO, Rci7):\n return d8UF.getDistance((YKHO.latitude, YKHO.longitude), Rci7)",
"def XnYi(YKHO, Elif):\n if not isinstance(Elif, PvyL):\n return\n return epAf.sqrt((YKHO.longitude - Elif.getLongitude()) ** 2 + (YKHO.latitude - Elif.getLatitude()) ** 2)",
"async def distance(YKHO):\n ... | [
"0.81514907",
"0.7548553",
"0.7502511",
"0.7436494",
"0.7385018",
"0.737072",
"0.73502165",
"0.73502165",
"0.730601",
"0.7298372",
"0.72970104",
"0.7259561",
"0.725062",
"0.72413445",
"0.7224825",
"0.72099304",
"0.7201812",
"0.7201086",
"0.7133554",
"0.712062",
"0.7106387",
... | 0.7781438 | 1 |
Compare equality of two locations. | def xa14(YKHO, Elif):
if not isinstance(Elif, _JMH):
return False
return YKHO.latitude == Elif.latitude and YKHO.longitude == Elif.longitude | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kJTp(YKHO, Elif):\n if not isinstance(Elif, PvyL):\n return False\n return YKHO.longitude == Elif.getLongitude() and YKHO.latitude == Elif.getLatitude()",
"def xa14(YKHO, Elif):\n if not issubclass(Elif.__class__, _JMH):\n return False\n Toy4 = [YKHO.i1 == Elif.i1, YKHO.i2 == Elif.i... | [
"0.74703836",
"0.7385801",
"0.73534316",
"0.72939944",
"0.7277119",
"0.7277119",
"0.7259102",
"0.7210955",
"0.714857",
"0.70364016",
"0.70108616",
"0.699542",
"0.6977389",
"0.69659674",
"0.69055283",
"0.6857506",
"0.6834876",
"0.67926157",
"0.67019963",
"0.6655954",
"0.663355... | 0.79569364 | 0 |
Get the string representation of the data model. | def zAg0(YKHO):
return 'Location(latitude={},longitude={})'.format(YKHO.latitude, YKHO.longitude) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.get_data())",
"def zAg0(YKHO):\n return YKHO.data.__str__()",
"def zAg0(YKHO):\n return YKHO.data.__str__()",
"def zAg0(YKHO):\n return str(YKHO.__data)",
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return str... | [
"0.78670263",
"0.78238934",
"0.78238934",
"0.7795347",
"0.7696795",
"0.7647701",
"0.7636353",
"0.75964624",
"0.7523055",
"0.7523055",
"0.7523055",
"0.7523055",
"0.7523055",
"0.7497484",
"0.7490004",
"0.7438348",
"0.7415895",
"0.74009764",
"0.7376508",
"0.7370196",
"0.7367113"... | 0.0 | -1 |
Compare with another object. | def xa14(YKHO, Elif):
return isinstance(Elif, URbA) and YKHO.name == Elif.name and (YKHO.type == Elif.type) and (YKHO.is_required == Elif.is_required) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))",
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(F5TF[YKHO.index], BPWI[YKHO.index])",
"def Aicm(YKHO, M8mL):\n if YKHO.compare(M8mL):\n return True\n else:\n return False",
"def xa14(YKHO, Eli... | [
"0.7622521",
"0.7611617",
"0.73632354",
"0.7318063",
"0.7318063",
"0.7318063",
"0.73024005",
"0.73024005",
"0.72151613",
"0.72151613",
"0.7194491",
"0.7158325",
"0.7151781",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614"... | 0.0 | -1 |
Get the string representation of the data model. | def zAg0(YKHO):
return 'Attribute(name={},type={},is_required={})'.format(YKHO.name, YKHO.type, YKHO.is_required) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.get_data())",
"def zAg0(YKHO):\n return YKHO.data.__str__()",
"def zAg0(YKHO):\n return YKHO.data.__str__()",
"def zAg0(YKHO):\n return str(YKHO.__data)",
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return str... | [
"0.78670263",
"0.78238934",
"0.78238934",
"0.7795347",
"0.7696795",
"0.7647701",
"0.7636353",
"0.75964624",
"0.7523055",
"0.7523055",
"0.7523055",
"0.7523055",
"0.7523055",
"0.7497484",
"0.7490004",
"0.7438348",
"0.7415895",
"0.74009764",
"0.7376508",
"0.7370196",
"0.7367113"... | 0.0 | -1 |
Initialize a data model. | def FIMM(YKHO, mWFP: str, azoT: List[Attribute], JBZA: str=''):
YKHO.name: str = mWFP
YKHO.attributes = sorted(azoT, key=lambda WKvO: WKvO.name)
YKHO._check_validity()
YKHO.attributes_by_name = {jzdc.name: jzdc for jzdc in YKHO.attributes}
YKHO.description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gv23(YKHO):\n pass",
"def fPO8(YKHO):\n pass",
"def uIcm(YKHO, C3ST):\n pass",
"def uIcm(YKHO) -> None:\n YKHO.model = tyeH(YKHO.path)",
"def uIcm(YKHO):\n na1r.info('Initializing Model.')\n YKHO.model = YKHO.convert(df=YKHO.training_df)\n if YKHO.bootstraps is not None:\n n... | [
"0.78117484",
"0.77257127",
"0.74677324",
"0.7367671",
"0.7334545",
"0.7249947",
"0.6913848",
"0.6889905",
"0.688308",
"0.68612355",
"0.68562347",
"0.6837921",
"0.67881936",
"0.6691892",
"0.66770154",
"0.66770154",
"0.66620165",
"0.6610961",
"0.65961677",
"0.6584727",
"0.6573... | 0.0 | -1 |
Compare with another object. | def xa14(YKHO, Elif) -> bool:
return isinstance(Elif, lmOc) and YKHO.name == Elif.name and (YKHO.attributes == Elif.attributes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))",
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(F5TF[YKHO.index], BPWI[YKHO.index])",
"def Aicm(YKHO, M8mL):\n if YKHO.compare(M8mL):\n return True\n else:\n return False",
"def xa14(YKHO, Eli... | [
"0.762473",
"0.7613882",
"0.7363944",
"0.73189265",
"0.73189265",
"0.73189265",
"0.7303699",
"0.7303699",
"0.7216503",
"0.7216503",
"0.719504",
"0.71596247",
"0.7152792",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.7147... | 0.0 | -1 |
Get the string representation of the data model. | def zAg0(YKHO):
return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.get_data())",
"def zAg0(YKHO):\n return YKHO.data.__str__()",
"def zAg0(YKHO):\n return YKHO.data.__str__()",
"def zAg0(YKHO):\n return str(YKHO.__data)",
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return str... | [
"0.7866514",
"0.7823241",
"0.7823241",
"0.77946645",
"0.7696293",
"0.7647018",
"0.7595808",
"0.7522376",
"0.7522376",
"0.7522376",
"0.7522376",
"0.7522376",
"0.7497396",
"0.74896693",
"0.7437749",
"0.741557",
"0.74006313",
"0.7376172",
"0.737004",
"0.7366758",
"0.7366758",
... | 0.7636113 | 6 |
Compare with another object. | def xa14(YKHO, Elif) -> bool:
return isinstance(Elif, AHoS) and YKHO.values == Elif.values and (YKHO.data_model == Elif.data_model) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))",
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(F5TF[YKHO.index], BPWI[YKHO.index])",
"def Aicm(YKHO, M8mL):\n if YKHO.compare(M8mL):\n return True\n else:\n return False",
"def xa14(YKHO, Eli... | [
"0.762473",
"0.7613882",
"0.7363944",
"0.73189265",
"0.73189265",
"0.73189265",
"0.7303699",
"0.7303699",
"0.7216503",
"0.7216503",
"0.719504",
"0.71596247",
"0.7152792",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.7147... | 0.0 | -1 |
Get the string representation of the description. | def zAg0(YKHO):
return 'Description(values={},data_model={})'.format(YKHO._values, YKHO.data_model) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YTwW(YKHO):\n return str(YKHO.description)",
"def t5do(YKHO) -> str:\n pass",
"def jteg(YKHO):\n return YKHO.__description",
"def jteg(YKHO):\n return YKHO.__description",
"def zAg0(YKHO) -> str:\n return YKHO.description",
"def t5do(YKHO):\n return YKHO.__description",
"def zAg0(... | [
"0.853982",
"0.80969375",
"0.8089973",
"0.8089973",
"0.80799115",
"0.80754954",
"0.80711687",
"0.8064773",
"0.8064773",
"0.8055473",
"0.8055473",
"0.8055473",
"0.8055473",
"0.8055473",
"0.8055473",
"0.8055473",
"0.8055473",
"0.8055473",
"0.8055473",
"0.8055473",
"0.8055473",
... | 0.0 | -1 |
Check equality with another object. | def xa14(YKHO, Elif):
return isinstance(Elif, D2MH) and YKHO.value == Elif.value and (YKHO.type == Elif.type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n ... | [
"0.8016821",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.797776",
"0.7977... | 0.0 | -1 |
Get the string representation of the constraint type. | def zAg0(YKHO):
return 'ConstraintType(value={},type={})'.format(YKHO.value, YKHO.type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'Constraint(attribute_name={},constraint_type={})'.format(YKHO.attribute_name, YKHO.constraint_type)",
"def if2j(YKHO):\n return XDS4.string_dict[YKHO._field.type]",
"def zAg0(YKHO):\n if YKHO.default_kind:\n return YKHO.typestr\n elif ejKb(YKHO.typestr):\n re... | [
"0.7772626",
"0.7285393",
"0.71453077",
"0.71277934",
"0.68731374",
"0.68572843",
"0.6818982",
"0.6707029",
"0.6586058",
"0.6547385",
"0.64320374",
"0.64298046",
"0.640156",
"0.63922817",
"0.63814765",
"0.63478595",
"0.63478595",
"0.633397",
"0.63294846",
"0.6326131",
"0.6303... | 0.8202708 | 0 |
Compare with another object. | def xa14(YKHO, Elif):
return isinstance(Elif, keVH) and YKHO.constraints == Elif.constraints | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))",
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(F5TF[YKHO.index], BPWI[YKHO.index])",
"def Aicm(YKHO, M8mL):\n if YKHO.compare(M8mL):\n return True\n else:\n return False",
"def xa14(YKHO, Eli... | [
"0.762473",
"0.7613882",
"0.7363944",
"0.73189265",
"0.73189265",
"0.73189265",
"0.7303699",
"0.7303699",
"0.7216503",
"0.7216503",
"0.719504",
"0.71596247",
"0.7152792",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.7147... | 0.0 | -1 |
Compare with another object. | def xa14(YKHO, Elif):
return isinstance(Elif, XHtG) and YKHO.constraints == Elif.constraints | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))",
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(F5TF[YKHO.index], BPWI[YKHO.index])",
"def Aicm(YKHO, M8mL):\n if YKHO.compare(M8mL):\n return True\n else:\n return False",
"def xa14(YKHO, Eli... | [
"0.7622521",
"0.7611617",
"0.73632354",
"0.7318063",
"0.7318063",
"0.7318063",
"0.73024005",
"0.73024005",
"0.72151613",
"0.72151613",
"0.7194491",
"0.7158325",
"0.7151781",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614"... | 0.0 | -1 |
Check if a value satisfies the 'Not' constraint expression. | def GfdN(YKHO, JBZA: Description) -> bool:
return not YKHO.constraint.check(JBZA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JhT2(YKHO, BWXx):\n G7cG = YKHO.copy()\n G7cG.setOp(_aLO.Op.IsNot)\n G7cG.setValue(BWXx)\n return G7cG",
"def sjaT(YKHO):\n WKvO = a1PO.Not(a1PO.Exactly('x'))\n YKHO.assertEqual(MltH(WKvO), I1iR(\"\\n def _G_not_1():\\n _G_exactly_2,... | [
"0.70533",
"0.68487155",
"0.6804992",
"0.672575",
"0.6589403",
"0.65883005",
"0.6557127",
"0.646203",
"0.64563364",
"0.63983697",
"0.63981545",
"0.63245136",
"0.6233073",
"0.623266",
"0.6215068",
"0.61562663",
"0.6122397",
"0.61201733",
"0.60960263",
"0.60931945",
"0.6089722"... | 0.0 | -1 |
Compare with another object. | def xa14(YKHO, Elif):
return isinstance(Elif, Oc_p) and YKHO.constraint == Elif.constraint | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))",
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(F5TF[YKHO.index], BPWI[YKHO.index])",
"def Aicm(YKHO, M8mL):\n if YKHO.compare(M8mL):\n return True\n else:\n return False",
"def xa14(YKHO, Eli... | [
"0.7622521",
"0.7611617",
"0.73632354",
"0.7318063",
"0.7318063",
"0.7318063",
"0.73024005",
"0.73024005",
"0.72151613",
"0.72151613",
"0.7194491",
"0.7158325",
"0.7151781",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614"... | 0.0 | -1 |
Compare with another object. | def xa14(YKHO, Elif):
return isinstance(Elif, _Ikr) and YKHO.attribute_name == Elif.attribute_name and (YKHO.constraint_type == Elif.constraint_type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))",
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(F5TF[YKHO.index], BPWI[YKHO.index])",
"def Aicm(YKHO, M8mL):\n if YKHO.compare(M8mL):\n return True\n else:\n return False",
"def xa14(YKHO, Eli... | [
"0.762473",
"0.7613882",
"0.7363944",
"0.73189265",
"0.73189265",
"0.73189265",
"0.7303699",
"0.7303699",
"0.7216503",
"0.7216503",
"0.719504",
"0.71596247",
"0.7152792",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.71477723",
"0.7147... | 0.0 | -1 |
Compare with another object. | def xa14(YKHO, Elif):
return isinstance(Elif, _aLO) and YKHO.constraints == Elif.constraints and (YKHO.model == Elif.model) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))",
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(F5TF[YKHO.index], BPWI[YKHO.index])",
"def Aicm(YKHO, M8mL):\n if YKHO.compare(M8mL):\n return True\n else:\n return False",
"def xa14(YKHO, Eli... | [
"0.7622521",
"0.7611617",
"0.73632354",
"0.7318063",
"0.7318063",
"0.7318063",
"0.73024005",
"0.73024005",
"0.72151613",
"0.72151613",
"0.7194491",
"0.7158325",
"0.7151781",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614",
"0.7146614"... | 0.0 | -1 |
Compute the Haversine distance between two locations (i.e. two pairs of latitude and longitude). | def GeVo(igSk: float, GgQG: float, TGuP: float, tk0B: float) -> float:
igSk, GgQG, TGuP, tk0B = map(Y_1E, [igSk, GgQG, TGuP, tk0B])
A3Vt = 6372.8
n_9K = TGuP - igSk
H91H = tk0B - GgQG
hXKD = YUNn(n_9K * 0.5) * YUNn(n_9K * 0.5)
lS1y = YUNn(H91H * 0.5) * YUNn(H91H * 0.5)
ll74 = P099(PZyS(hXKD ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GeVo(igSk, iT5T, TGuP, JSDM):\n igSk, iT5T, TGuP, JSDM = map(oyIN.radians, (igSk, iT5T, TGuP, JSDM))\n O6Vz = 6371\n QnmL = TGuP - igSk\n jz6R = JSDM - iT5T\n Csk6 = oyIN.sin(QnmL * 0.5) ** 2 + oyIN.cos(igSk) * oyIN.cos(TGuP) * oyIN.sin(jz6R * 0.5) ** 2\n MKlR = 2 * O6Vz * oyIN.arcsin(oyIN.sq... | [
"0.8146508",
"0.8100512",
"0.8097305",
"0.8048732",
"0.8044846",
"0.8033437",
"0.8031035",
"0.8025624",
"0.80176544",
"0.8015659",
"0.8014263",
"0.7983932",
"0.7980405",
"0.79779375",
"0.79752904",
"0.79730225",
"0.7970945",
"0.7966814",
"0.7956059",
"0.79516965",
"0.7948369"... | 0.8175937 | 0 |
Cast pandas serias to object dtype | def ZzC_(iVRZ, nPrm):
nPrm[iVRZ] = nPrm[iVRZ].astype('object') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLv1(YKHO) -> dict:\n Ylbp = {}\n for _x49 in YKHO.data_features:\n Ylbp[_x49.key] = F5vI.typecast(_x49.dtype)\n return Ylbp",
"def ZEwO(LMLK, gCuF):\n LMLK = LMLK.astype(gCuF['dtype'])\n return LMLK",
"def DSj2(YEnM: ndarray, qe77: dtype) -> gyIm:\n if YEnM.dtype != qe77:\n ... | [
"0.67604613",
"0.66118413",
"0.6585065",
"0.6539583",
"0.651566",
"0.6361538",
"0.6337701",
"0.6325281",
"0.62805223",
"0.6229707",
"0.62263525",
"0.6192798",
"0.61620414",
"0.6127977",
"0.60819775",
"0.607594",
"0.60554945",
"0.6034704",
"0.6016026",
"0.60135555",
"0.6009149... | 0.71351796 | 0 |
Returns lists of length batch_size. This can be used on any iterator, for example to batch up SeqRecord objects from Bio.SeqIO.parse(...), or to batch Alignment objects from Bio.AlignIO.parse(...), or simply lines from a file handle. This is a generator function, and it returns lists of the entries from the supplied it... | def se9W(oHE7, Ep8u):
bTKY = True
while bTKY:
Wc9F = []
while len(Wc9F) < Ep8u:
try:
bTKY = next(oHE7)
except StopIteration:
bTKY = None
if bTKY is None:
break
Wc9F.append(bTKY)
if Wc9F:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def se9W(oHE7, Ep8u):\n bTKY = True\n while bTKY:\n Wc9F = []\n while len(Wc9F) < Ep8u:\n try:\n bTKY = oHE7.__next__()\n except StopIteration:\n bTKY = None\n if bTKY is None:\n break\n Wc9F.append(bTKY)\n... | [
"0.74656767",
"0.741042",
"0.67104495",
"0.6694396",
"0.6676272",
"0.65970767",
"0.65255404",
"0.64785194",
"0.64456886",
"0.64217335",
"0.6420939",
"0.63311505",
"0.62625164",
"0.61932045",
"0.61634254",
"0.6144504",
"0.60994714",
"0.60760325",
"0.60626173",
"0.60367805",
"0... | 0.7452743 | 1 |
Replace URLs found in a text string with nothing (i.e. it will remove the URL from the string). | def Yk6F(FUjE):
return ' '.join(ZbWC.sub('([^0-9A-Za-z \t])|(\\w+:\\/\\/\\S+)', '', FUjE).split()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EGZf(l5Ny):\n pass",
"def EGZf(l5Ny):\n l5Ny = ZbWC.sub('(?P<url>https?://[^\\\\s]+)', '', l5Ny)\n return l5Ny",
"def EGZf(YKHO, l5Ny):\n return ZbWC.sub('http.?://[^\\\\s]+[\\\\s]?', '', l5Ny)",
"def o5jW(YKHO, l5Ny: str) -> str:\n mXDZ = 'http\\\\S+'\n return ZbWC.sub(mXDZ, ' ', str(l... | [
"0.8423916",
"0.837523",
"0.8313864",
"0.81369895",
"0.8087599",
"0.80584395",
"0.79589206",
"0.7952136",
"0.7834915",
"0.7704356",
"0.7645957",
"0.754977",
"0.7403431",
"0.7275754",
"0.7173083",
"0.71523416",
"0.71231145",
"0.7064132",
"0.7056617",
"0.68920684",
"0.68545234"... | 0.73466885 | 13 |
Returns contents of a file. >>> read_file('spanish_inquisition.txt') 'NObody expects the Spanish Inquisition!\n' | def Nwr9(Ux0P):
with open(Ux0P) as ytgA:
return ytgA.read() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nwr9(nUeQ):\n eHNT = open(nUeQ, 'r', encoding='utf8')\n return eHNT.read()",
"def Nwr9(nUeQ):\n with open(nUeQ, 'r') as hOYR:\n return hOYR.read()",
"def Nwr9(qaEx, Tuqy='r', tZ2K='utf-8'):\n with T_Uj.open(qaEx, Tuqy, encoding=tZ2K) as ytgA:\n return ytgA.read().strip()",
"def ... | [
"0.78285474",
"0.7735541",
"0.77233595",
"0.76412165",
"0.76401764",
"0.7573681",
"0.7557909",
"0.7532503",
"0.7512904",
"0.75125605",
"0.7429794",
"0.74264497",
"0.7421324",
"0.73868465",
"0.73715705",
"0.7338624",
"0.7337632",
"0.73204243",
"0.7313148",
"0.73110574",
"0.729... | 0.72079176 | 32 |
Returns ISO timestamp of curretn tiem and date. | def E3oo():
return qcWV.datetime.now().strftime('%Y-%m-%d-T%H-%M-%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jv5M(YKHO, a1PO=None):\n if a1PO is None:\n a1PO = ITS7.time()\n jmHs = ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime(a1PO))\n return jmHs",
"def E3oo():\n return qcWV.now().strftime('%Y%m%dT%H%M%S')",
"def E3oo():\n exwG = qcWV.datetime.now()\n return '%04d-%02d-%02dT%02d:%02d... | [
"0.7021018",
"0.69629145",
"0.67915964",
"0.67721856",
"0.6649219",
"0.6624449",
"0.6624449",
"0.65787166",
"0.65740335",
"0.65738976",
"0.6565639",
"0.6465547",
"0.6445199",
"0.64336854",
"0.6433541",
"0.64203507",
"0.64095753",
"0.63976413",
"0.6396514",
"0.63837993",
"0.63... | 0.6699698 | 4 |
Restore internal mapping from saved JSON file | def eEAd(YKHO, IERV='./mapping.json'):
try:
Gcbu = open(IERV, 'r')
AvyM = qQXR.load(Gcbu)
if 'Sharing' in AvyM.keys():
YKHO.share_levels = AvyM['Sharing']
if 'Type' in AvyM.keys():
YKHO.type_map = AvyM['Type']
if 'Extra-Tag' in AvyM.keys():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KOYc(YKHO):\n with open(YKHO.mappings_path, 'rb') as eHNT:\n AvyM = rIin.load(eHNT)\n YKHO.id_to_char = AvyM['id_to_char']\n YKHO.id_to_radical = AvyM['id_to_radical']\n YKHO.id_to_tag = AvyM['id_to_tag']",
"def AyO6(YKHO):\n eJh7 = zrIe.create(count=5, text='happy')\n UtCB = eJh7.ge... | [
"0.6554897",
"0.6516311",
"0.62667114",
"0.6243241",
"0.61880374",
"0.6142793",
"0.60828453",
"0.60188895",
"0.59766734",
"0.5945837",
"0.59371763",
"0.58870447",
"0.58859056",
"0.58836526",
"0.58787686",
"0.5859276",
"0.58388174",
"0.58361346",
"0.5828212",
"0.5815395",
"0.5... | 0.5251691 | 91 |
Fills in the values attribute with range of values in terms of floats. | def HfiF(YKHO, yKcO: float, JCyR: float, YPaw: float=1.0) -> None:
YKHO.values = []
assert YPaw != 0.0
while abs(yKcO) < abs(JCyR):
YKHO.values.append(yKcO)
yKcO += YPaw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, hkxX: list[float]):\n YKHO.values = hkxX",
"def range(YKHO, BWXx):\n YKHO.value_range = tuple([float(WKvO) for WKvO in BWXx.split(':')])",
"def QMxT(YKHO, hkxX):\n if hkxX is not None:\n YKHO.scale_min, YKHO.scale_max = hkxX\n if YKHO.scale_min is None:\n YKHO.s... | [
"0.6902379",
"0.67592275",
"0.67156196",
"0.6626498",
"0.652612",
"0.652612",
"0.652612",
"0.652612",
"0.6452978",
"0.636052",
"0.63506335",
"0.62599176",
"0.62409896",
"0.62345445",
"0.61869794",
"0.6116266",
"0.61118054",
"0.6107342",
"0.6028831",
"0.600489",
"0.5990786",
... | 0.64394945 | 9 |
Tests that the image helper can convert PIL image to a byte array. | def pVgt(YKHO):
with hnIv.open(YKHO.subject) as Xn71:
LNo8 = Xn71.convert('RGB')
J83E = eYUw.to_byte_array(LNo8)
YKHO.assertGreater(len(J83E), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _OAC(YKHO):\n with open(YKHO.subject, 'rb') as eHNT:\n hGN5 = eHNT.read()\n LNo8 = eYUw.get_image(hGN5)\n YKHO.assertEqual(LNo8.size, (800, 450))\n sm9V = eYUw.to_byte_array(LNo8)\n LNo8 = eYUw.get_image(sm9V)\n YKHO.assertEqual(LNo8.size, (800, 450))",
"def vARI():\n from .script... | [
"0.75684774",
"0.67727536",
"0.66932726",
"0.646276",
"0.640594",
"0.6395613",
"0.63800246",
"0.6243918",
"0.62386787",
"0.6222449",
"0.62130994",
"0.6212887",
"0.61353153",
"0.611385",
"0.6072642",
"0.6052421",
"0.60406977",
"0.5982475",
"0.5966007",
"0.59441936",
"0.5929215... | 0.80644786 | 0 |
Tests that the helper's got image can be converted to a byte array that can be converted back to an image with same format. | def _OAC(YKHO):
with open(YKHO.subject, 'rb') as eHNT:
hGN5 = eHNT.read()
LNo8 = eYUw.get_image(hGN5)
YKHO.assertEqual(LNo8.size, (800, 450))
sm9V = eYUw.to_byte_array(LNo8)
LNo8 = eYUw.get_image(sm9V)
YKHO.assertEqual(LNo8.size, (800, 450)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pVgt(YKHO):\n with hnIv.open(YKHO.subject) as Xn71:\n LNo8 = Xn71.convert('RGB')\n J83E = eYUw.to_byte_array(LNo8)\n YKHO.assertGreater(len(J83E), 0)",
"def vARI():\n from .scripts.initializedb import get_picture_binary\n import os\n p_9N = os.path.abspath(os.path.dirname(xAKo))\n ... | [
"0.7975017",
"0.664871",
"0.6512237",
"0.6454277",
"0.62589556",
"0.62543744",
"0.62543744",
"0.62492985",
"0.62044793",
"0.61822695",
"0.6143906",
"0.61311436",
"0.61189926",
"0.6116207",
"0.6039462",
"0.59819657",
"0.5952059",
"0.5934923",
"0.59209025",
"0.5873931",
"0.5860... | 0.79083186 | 1 |
Sets the subnets of this CloudEndureRegion. | def Npkd(YKHO, Npkd):
YKHO._subnets = Npkd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ResourceIdArgs']]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Output[h8... | [
"0.6601207",
"0.651726",
"0.6426912",
"0.6417616",
"0.6305755",
"0.60576695",
"0.60576695",
"0.58017683",
"0.5759776",
"0.5611484",
"0.5570924",
"0.55240524",
"0.55008876",
"0.54991823",
"0.54599845",
"0.5417684",
"0.5330233",
"0.52798384",
"0.5270199",
"0.52492684",
"0.52372... | 0.8078121 | 0 |
Sets the placement_groups of this CloudEndureRegion. | def tqgZ(YKHO, tqgZ):
YKHO._placement_groups = tqgZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def moMn(YKHO, moMn):\n YKHO._groups = moMn",
"def moMn(YKHO, moMn):\n YKHO._groups = moMn",
"def moMn(YKHO, moMn):\n YKHO._groups = moMn",
"def moMn(YKHO, moMn):\n YKHO._groups = moMn",
"def moMn(YKHO, moMn):\n YKHO._groups = moMn",
"def Ndlf(YKHO, moMn):\n YKHO.groups = moMn[:]",
"d... | [
"0.6582488",
"0.6582488",
"0.6582488",
"0.6582488",
"0.6579127",
"0.6094563",
"0.58491284",
"0.57543033",
"0.56573033",
"0.5643829",
"0.557751",
"0.55425394",
"0.5540488",
"0.5436502",
"0.5380101",
"0.5377386",
"0.5281767",
"0.527716",
"0.5252314",
"0.5222774",
"0.508556",
... | 0.8624749 | 0 |
Sets the cloud of this CloudEndureRegion. | def tH0x(YKHO, tH0x):
YKHO._cloud = tH0x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phH8(YKHO, phH8):\n YKHO._cloud_name = phH8",
"def RZX2(YKHO, RZX2):\n YKHO._cloud_platform = RZX2",
"def cve4(YKHO, cve4):\n YKHO._cloud_port = cve4",
"def bisK(YKHO, bisK):\n YKHO._cloud_storage_files = bisK",
"def Fuh0(YKHO, dQgj):\n zn0c = YKHO.cloud_region_selector(dQgj)\n YKHO.r... | [
"0.63797104",
"0.63497365",
"0.61855185",
"0.5613878",
"0.5328697",
"0.5093455",
"0.49731243",
"0.48364145",
"0.4828867",
"0.4828867",
"0.4828867",
"0.48083326",
"0.47707668",
"0.4698903",
"0.4651919",
"0.46509022",
"0.46473148",
"0.4634034",
"0.46236116",
"0.45651832",
"0.45... | 0.78580654 | 0 |
Sets the max_cpus_per_machine of this CloudEndureRegion. | def LIzN(YKHO, LIzN):
YKHO._max_cpus_per_machine = LIzN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uSOF(YKHO, uSOF):\n YKHO._max_cores_per_machine_cpu = uSOF",
"def MnAp(YKHO, MnAp):\n YKHO._max_mb_ram_per_machine = MnAp",
"def qDRL(YKHO, tgHA):\n gTEQ('PrlVmCfg_SetCpuLimit', YKHO.handle, tgHA)",
"def HtKx(YKHO, dMgr):\n YKHO.max_eval_concurrency = dMgr",
"def PH89(YKHO, PH89):\n YKHO... | [
"0.8146369",
"0.6632792",
"0.6448295",
"0.5938631",
"0.5932721",
"0.5900896",
"0.5847298",
"0.5802317",
"0.5797136",
"0.57552695",
"0.5752049",
"0.57163286",
"0.5701542",
"0.5683943",
"0.56803375",
"0.56765974",
"0.5672258",
"0.56681335",
"0.5665264",
"0.5662981",
"0.5659991"... | 0.8857602 | 0 |
Sets the name of this CloudEndureRegion. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP)... | [
"0.7338266",
"0.7296276",
"0.7296276",
"0.7296276",
"0.7296276",
"0.7296276",
"0.7253398",
"0.7253398",
"0.7242845",
"0.7241984",
"0.72217464",
"0.7195213",
"0.7190788",
"0.71830165",
"0.71816975",
"0.7094559",
"0.7094559",
"0.70401806",
"0.7021263",
"0.70063967",
"0.70063967... | 0.68695986 | 89 |
Sets the id of this CloudEndureRegion. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M5Bl(YKHO, M5Bl: str):\n YKHO._region_id = M5Bl",
"def M5Bl(YKHO, M5Bl):\n YKHO._region_id = M5Bl",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.... | [
"0.740834",
"0.72225213",
"0.70603174",
"0.7048572",
"0.69873774",
"0.68762517",
"0.6845341",
"0.6796173",
"0.67482746",
"0.6694591",
"0.6694591",
"0.6694591",
"0.6694591",
"0.6694591",
"0.6657391",
"0.6633931",
"0.6633931",
"0.6633931"
] | 0.6623999 | 85 |
Sets the max_cores_per_machine_cpu of this CloudEndureRegion. | def uSOF(YKHO, uSOF):
YKHO._max_cores_per_machine_cpu = uSOF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LIzN(YKHO, LIzN):\n YKHO._max_cpus_per_machine = LIzN",
"def qDRL(YKHO, tgHA):\n gTEQ('PrlVmCfg_SetCpuLimit', YKHO.handle, tgHA)",
"def MUY4(YKHO, NAlt):\n YKHO.cores = NAlt\n return",
"def VBUz(YKHO, VBUz):\n YKHO._cores_per_node = VBUz",
"def rXG9(YKHO, VsVO):\n gTEQ('PrlVmCfg_SetCp... | [
"0.808749",
"0.6841824",
"0.6711843",
"0.6333083",
"0.60015947",
"0.59466875",
"0.5842922",
"0.5821356",
"0.5768645",
"0.576299",
"0.575716",
"0.5725852",
"0.5723611",
"0.56926966",
"0.5594216",
"0.5521066",
"0.55001587",
"0.5474118",
"0.5473368",
"0.53704816",
"0.53615856",
... | 0.89634717 | 0 |
Sets the dedicated_hosts of this CloudEndureRegion. | def NhbE(YKHO, NhbE):
YKHO._dedicated_hosts = NhbE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Of0F(YKHO, Of0F):\n YKHO._hosts = Of0F",
"def yWtJ(YKHO, Of0F):\n YKHO._hosts = Of0F\n YKHO._collect_hosts_d = True",
"def Spfm(YKHO, Spfm):\n YKHO._hosts_some = Spfm",
"def cCu1(YKHO, rn9l=False):\n YKHO.conf['hosts'] = set()\n c77T, Iwl6 = YKHO._sift_patterns(YKHO.conf.get('hosts_list... | [
"0.70226884",
"0.6377096",
"0.6374231",
"0.6111645",
"0.6057798",
"0.5926802",
"0.5862724",
"0.585993",
"0.5825704",
"0.5605924",
"0.5528892",
"0.55059433",
"0.5498187",
"0.54011524",
"0.5387167",
"0.5309814",
"0.52846456",
"0.5221184",
"0.51668555",
"0.51419914",
"0.5130819"... | 0.8664203 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, kPqw):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.8455985",
"0.83913255",
"0.81440157",
"0.8140831",
"0.8132328",
"0.80937284",
"0.809181",
"0.809181",
"0.809181",
"0.808509",
"0.808509",
"0.8076134",
"0.8076134",
"0.8065528"
] | 0.0 | -1 |
Formats the given url so it any leading characters are displaced | def CgGi(YKHO, bD7m):
mXDZ = '(imdb\\.com\\/title\\/(.*/))'
pzVU = ZbWC.findall(mXDZ, bD7m)
pzVU = pzVU[0]
IBRk = pzVU[0]
IBRk = 'https://www.' + IBRk
a9E8 = pzVU[1].replace('/', '')
return IBRk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HKD1(bD7m):\n if not (bD7m.startswith('//') or bD7m.startswith('http')):\n bD7m = 'http://' + bD7m\n return bD7m",
"def HKD1(bD7m):\n pbIN = bD7m.split('://', 1)[-1]\n return '[{0}]({1})'.format(pbIN, bD7m)",
"def HKD1(bD7m: str) -> str:\n return TDhU(bD7m.replace('https://app', 'http... | [
"0.82604444",
"0.8078957",
"0.77885175",
"0.769441",
"0.7356258",
"0.73036456",
"0.72861105",
"0.726491",
"0.7264385",
"0.7141512",
"0.7031554",
"0.701557",
"0.69755876",
"0.6967986",
"0.69096154",
"0.68556064",
"0.6816078",
"0.67975533",
"0.6774955",
"0.67591643",
"0.6747995... | 0.72597337 | 9 |
Method to close a database connection | def ngVb(UzPC):
try:
if UzPC:
UzPC.close()
print('{} \t Se cerró la conexión a la base de datos con éxito'.format(qcWV.now()))
except (Exception, ehoX.Error) as error:
print('{} \t Error en el método close_connection'.format(qcWV.now()))
print('Ocurrió un error ce... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yZlT(Emd4):\n NCls.close()",
"def ngVb(AJ5d):\n NCls = p9bx()\n if NCls is not None:\n NCls.close()",
"def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None",
"def yZlT(YKHO, N5CR):\n YKHO.connections[N5CR].close()\n del YKHO.connecti... | [
"0.8584509",
"0.8369829",
"0.8315697",
"0.8140779",
"0.81274027",
"0.80836815",
"0.8073903",
"0.80669165",
"0.80594736",
"0.793517",
"0.78819567",
"0.78679955",
"0.78678393",
"0.7836354",
"0.7822358",
"0.7788146",
"0.7713863",
"0.7710573",
"0.7708043",
"0.7698723",
"0.7687592... | 0.0 | -1 |
Request for a list of available taxonomy categories. Returns List of available taxonomy categories. Raises | def LQuW(YKHO) -> list:
d6Zf = {'user-key': YKHO.user_key.key}
w2IS = f'{PtXs.API_HOST}{PtXs.API_SNAPSHOTS_TAXONOMY_BASEPATH}'
geh0 = qv1X.api_send_request(method='GET', endpoint_url=w2IS, headers=d6Zf)
if geh0.status_code == 200:
return [bTKY['attributes']['name'] for bTKY in geh0.json()['data'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQuW(YKHO):\n Qi1G = TDhU(YKHO.base_url, YKHO.API_CATEGORIES)\n return G4JS.get(Qi1G)",
"def LQuW():\n try:\n Aofo = {'success': True, 'categories': LH1I()}\n return pz3A(Aofo)\n except Exception as exp:\n eTsH(kLQb.code)",
"def LH1I():\n return pz3A({'success': True, 'c... | [
"0.7292924",
"0.6967509",
"0.67693406",
"0.67591196",
"0.66614026",
"0.6650035",
"0.660793",
"0.6532544",
"0.65089375",
"0.6495288",
"0.6481721",
"0.6448819",
"0.64479774",
"0.64477885",
"0.64409995",
"0.6430734",
"0.6415239",
"0.63934165",
"0.63934076",
"0.638821",
"0.638268... | 0.67147255 | 4 |
Request for a list of available taxonomy categories. Returns List of available taxonomy categories. Raises | def DOXX(YKHO) -> list:
d6Zf = {'user-key': YKHO.user_key.key}
w2IS = f'{PtXs.API_HOST}{PtXs.API_SNAPSHOTS_COMPANY_IDENTIFIERS_BASEPATH}'
geh0 = qv1X.api_send_request(method='GET', endpoint_url=w2IS, headers=d6Zf)
if geh0.status_code == 200:
return geh0.json()['data']['attributes']
raise Run... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQuW(YKHO):\n Qi1G = TDhU(YKHO.base_url, YKHO.API_CATEGORIES)\n return G4JS.get(Qi1G)",
"def LQuW():\n try:\n Aofo = {'success': True, 'categories': LH1I()}\n return pz3A(Aofo)\n except Exception as exp:\n eTsH(kLQb.code)",
"def LH1I():\n return pz3A({'success': True, 'c... | [
"0.7292419",
"0.69674313",
"0.67695254",
"0.6758102",
"0.67141956",
"0.66597676",
"0.66498804",
"0.66072285",
"0.6533348",
"0.6509215",
"0.6495109",
"0.64814836",
"0.64487183",
"0.64482975",
"0.6445991",
"0.6439872",
"0.64305216",
"0.64146996",
"0.63939273",
"0.6392816",
"0.6... | 0.0 | -1 |
Get the configuration of this robot. | def UERn(ZZ4V, f4IJ):
vxSG = VCit(ZZ4V)
hkS8 = 'ikSolution'
EtQn = []
for YRbF in range(3):
d6pt = YRbF + 1
_E_6 = '{}.{}{}'.format(vxSG, hkS8, d6pt)
wOGa = PrrZ(_E_6, f4IJ)
EtQn.append(wOGa)
return EtQn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YKHO):\n return YKHO.config",
"def GPtr(YKHO):\n if YKHO.__config is None:\n YKHO.__config = YKHO._get_config(YKHO.bot)\n return YKHO.__config",
"def GPtr(YKHO):\n return YKHO[OtOl]",
"def zoFt(YKHO):\n return YKHO.config",
"def eMhT(YKHO) -> dict:\n return YKHO.config",
... | [
"0.83200496",
"0.82543",
"0.8147049",
"0.81125456",
"0.8091864",
"0.7991595",
"0.7978447",
"0.7978447",
"0.79539555",
"0.7949045",
"0.79484713",
"0.79484713",
"0.79484713",
"0.78768295",
"0.7864503",
"0.7840981",
"0.7840981",
"0.78198487",
"0.78002524",
"0.77953583",
"0.77690... | 0.0 | -1 |
Creates a file dialog box that allows the user to select a directory to save program files. | def BOV0(mlBN, Vd0F, ZYn8, qxVH, *qIxc):
SPqu = ZYn8(Vd0F)
AGPF = TlDD.fileDialog2(fileMode=2, dialogStyle=2, startingDirectory=SPqu)
if not AGPF:
return
TlDD.textField(mlBN, edit=True, text=AGPF[0])
if qxVH:
qxVH(Vd0F, AGPF[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MB0I(YKHO):\n Ux0P = IB0w.QFileDialog.getExistingDirectory(YKHO, 'Select directory', TWH2.QDir.homePath())\n YKHO.dir_line.setText(Ux0P)",
"def N89N(Ol8d, DwPX, _Cnz=0, kwFm=Hy7s.getcwd(), SqqQ=''):\n _Cnz = _Cnz | lnPd.SAVE | lnPd.CHANGE_DIR\n return BkHq(Ol8d, DwPX, _Cnz, kwFm, SqqQ)",
"def P... | [
"0.74099964",
"0.7345407",
"0.72636163",
"0.70807993",
"0.70807993",
"0.7009018",
"0.6988619",
"0.6981659",
"0.6970907",
"0.6938663",
"0.69312894",
"0.69312894",
"0.69312894",
"0.69312894",
"0.6925773",
"0.69153225",
"0.69046813",
"0.68966717",
"0.68730664",
"0.6872555",
"0.6... | 0.0 | -1 |
Set translation and rotation of robot base in world space (square controller) in channel box to zero, 0. | def hZEG(*qIxc):
sT2H = LvLd()
if not sT2H:
TlDD.warning('Nothing Selected; Select a valid robot')
return
try:
for fQxG in sT2H:
fuzl = wfqK(h6er, fQxG)
TlDD.setAttr(fuzl + '.translate', 0, 0, 0)
TlDD.setAttr(fuzl + '.rotate', 0, 0, 0)
except:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d_YE(YKHO):\n YKHO.robot.set_joint([0, 0, 0, 0, 0])\n YKHO.robot.save_config()",
"def ntC3(*qIxc):\n sT2H = LvLd()\n if not sT2H:\n TlDD.warning('Nothing Selected; Select a valid robot')\n return\n try:\n for fQxG in sT2H:\n HtgC = u0y9(fQxG)\n TlDD.s... | [
"0.6703744",
"0.6197838",
"0.60408753",
"0.6006291",
"0.59761643",
"0.5902005",
"0.58105636",
"0.5797147",
"0.5770428",
"0.5769966",
"0.5718906",
"0.5688573",
"0.5670503",
"0.56196076",
"0.5570057",
"0.55502933",
"0.55210406",
"0.55116105",
"0.54934156",
"0.5441978",
"0.54365... | 0.74064714 | 0 |
Set translation and rotation of robot base in local space (circular controller) in channel box to zero, 0. | def ntC3(*qIxc):
sT2H = LvLd()
if not sT2H:
TlDD.warning('Nothing Selected; Select a valid robot')
return
try:
for fQxG in sT2H:
HtgC = u0y9(fQxG)
TlDD.setAttr(HtgC + '.translate', 0, 0, 0)
TlDD.setAttr(HtgC + '.rotate', 0, 0, 0)
except:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hZEG(*qIxc):\n sT2H = LvLd()\n if not sT2H:\n TlDD.warning('Nothing Selected; Select a valid robot')\n return\n try:\n for fQxG in sT2H:\n fuzl = wfqK(h6er, fQxG)\n TlDD.setAttr(fuzl + '.translate', 0, 0, 0)\n TlDD.setAttr(fuzl + '.rotate', 0, 0, 0... | [
"0.68120915",
"0.66573197",
"0.63149035",
"0.6064744",
"0.60209364",
"0.592717",
"0.5866602",
"0.5769385",
"0.576865",
"0.56959367",
"0.56553197",
"0.56465787",
"0.5643025",
"0.5596358",
"0.5595492",
"0.5559126",
"0.55441326",
"0.55319196",
"0.5529447",
"0.55152404",
"0.54935... | 0.6777294 | 1 |
Gets the current axis position limits and updates UI with those values. | def LVYq(fQxG=None):
if not fQxG:
sT2H = LvLd()
if not sT2H:
raise kYrq('Nothing Selected; Select a valid robot')
return
if len(sT2H) > 1:
kYrq('Too many selections: Select a single robot')
return
fQxG = sT2H[0]
vxSG = VCit(fQxG)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VeGS(YKHO):\n if YKHO.pos_x > YKHO.max_x:\n YKHO.max_x = YKHO.pos_x\n if YKHO.pos_y > YKHO.max_y:\n YKHO.max_y = YKHO.pos_y\n if YKHO.pos_x < YKHO.min_x:\n YKHO.min_x = YKHO.pos_x\n if YKHO.pos_y < YKHO.min_y:\n YKHO.min_y = YKHO.pos_y",
"def QTns(YKHO):\n if len(YK... | [
"0.7109207",
"0.69640595",
"0.67974305",
"0.6790372",
"0.6540431",
"0.63663936",
"0.6342089",
"0.6176701",
"0.61733216",
"0.61061203",
"0.6102649",
"0.60832137",
"0.6078987",
"0.60743797",
"0.60540676",
"0.60022306",
"0.598839",
"0.5976953",
"0.59768814",
"0.5974315",
"0.5951... | 0.599552 | 16 |
Gets the current jerk limits and updates UI with those values. | def pybn(fQxG):
return hFRA(fQxG, 'Jerk') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5uu(YKHO):\n return YKHO._limits",
"def QTns(YKHO):\n if len(YKHO) == 0:\n YKHO.limits = oyIN.array([[0.0, 0.0], [0.0, 0.0]])\n else:\n wBZN, re6M = (YKHO.buf[YKHO.rear][0], YKHO.buf[YKHO.front][0])\n KDmU, rwK9 = YKHO.slmm.get_minmax()\n YKHO.limits = oyIN.array([[wBZN,... | [
"0.58975816",
"0.5847952",
"0.583106",
"0.5811838",
"0.5590838",
"0.5566813",
"0.5472094",
"0.5456995",
"0.5413246",
"0.5411612",
"0.5376125",
"0.53678626",
"0.5329208",
"0.5328781",
"0.53062344",
"0.5298036",
"0.529801",
"0.5291226",
"0.52837986",
"0.5264566",
"0.5260908",
... | 0.63602877 | 0 |
Get the control mode of Inverse Kinematics or Forward Kinematics in the Mimic UI. | def wco2(*qIxc):
if not TlDD.window('mimic_win', exists=True):
return None
Pgh8 = TlDD.tabLayout('switcher_tab_layout', query=True, selectTabIndex=True)
if Pgh8 == 1:
return 'ik'
elif Pgh8 == 2:
return 'fk'
else:
TlDD.warning('Error getting IK/FK tabs status')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OVaE(YKHO):\n geh0 = YKHO.get(J1jo, 'GetCurrentEQMode')\n return geh0",
"def Xelj(YKHO):\n if YKHO.proximity.check_press():\n YKHO.cycle_mode()\n return YKHO.mode",
"def yQBk(YKHO):\n if YKHO.vimiv.library.treeview.is_focus():\n return '<b>-- LIBRARY --</b>'\n elif YKHO.vimi... | [
"0.5908778",
"0.5843041",
"0.5826631",
"0.580691",
"0.5749603",
"0.5733551",
"0.5707717",
"0.5700722",
"0.5672634",
"0.564353",
"0.5635786",
"0.5622795",
"0.5613513",
"0.5603332",
"0.5598407",
"0.5587633",
"0.5584845",
"0.5562646",
"0.5552864",
"0.555252",
"0.5546326",
"0.5... | 0.0 | -1 |
Plot the images and the matching keypoints. | def U0xK(q4BL, BEO7, fj4T, Bqa8, mWFP='p1', NKcE='greedy'):
QFiH, hW2O = q4BL.shape[:2]
ZSe6, qL4m = BEO7.shape[:2]
XmRU = oyIN.zeros((max(QFiH, ZSe6), hW2O + qL4m, 3), dtype='uint8')
XmRU[0:QFiH, 0:hW2O] = q4BL
XmRU[0:ZSe6, hW2O:] = BEO7
for SKEy, DVlr in zip(fj4T, Bqa8):
DVlr = DVlr + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CAPh(kauQ, _6FD, _YGI, kEH0, kyIY=''):\n JI1i = QrM1.figure(figsize=(10, 5))\n hh7H = QrM1.subplot(1, 2, 1)\n fTVC = QrM1.subplot(1, 2, 2)\n kauQ = XC5k.drawKeypoints(kauQ, _6FD, None)\n _YGI = XC5k.drawKeypoints(_YGI, kEH0, None)\n hh7H.imshow(kauQ)\n fTVC.imshow(_YGI)\n for QHil, u2tI... | [
"0.7567048",
"0.74431515",
"0.7196125",
"0.68250936",
"0.6809644",
"0.6759546",
"0.6554277",
"0.6538392",
"0.65300184",
"0.65259916",
"0.6523263",
"0.6501853",
"0.6433932",
"0.6376684",
"0.637564",
"0.63579607",
"0.6346513",
"0.6306306",
"0.6273557",
"0.62457085",
"0.6241184"... | 0.7474701 | 1 |
Creates the set of probabilities for the first quadrant. The other three quadrants are copies of this. | def tTnc():
XtHs = [[1 for WKvO in range(yeOn)] for LVAh in range(yeOn)]
for jzdc in range(int(yeOn / 2)):
for Fg_i in range(jzdc, int(yeOn / 2)):
print(jzdc, Fg_i)
GOzt = [[1 if WKvO == jzdc and LVAh == Fg_i else 0 for WKvO in range(yeOn)] for LVAh in range(yeOn)]
fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DEG7(YKHO):\n if hasattr(YKHO, 'corr'):\n bSmD = YKHO.corr\n else:\n bSmD = None\n YKHO.quadrature = t9Mw(parameters=YKHO.parameters, basis=YKHO.basis, points=YKHO.inputs, mesh=YKHO.mesh, corr=bSmD)\n wyWP, EyS0 = YKHO.quadrature.get_points_and_weights()\n if YKHO.subsampling_algor... | [
"0.5961016",
"0.58012664",
"0.57640105",
"0.56292635",
"0.53925997",
"0.5370593",
"0.5367571",
"0.53162426",
"0.53018135",
"0.5242785",
"0.52410793",
"0.5222286",
"0.5174538",
"0.51670957",
"0.51043785",
"0.5088906",
"0.50844294",
"0.5076748",
"0.50747144",
"0.50733787",
"0.5... | 0.0 | -1 |