query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Return the name of the component. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yr70(YKHO):\n return YKHO._name",
"def W0tD(YKHO):\n return uGKo[YKHO.index][0]",
"def ZcDZ(YKHO):\n if YKHO.componentName:\n return YKHO.componentName\n else:\n raise Warning('No component name has been currently defined')",
"def mWFP(YKHO):\n return YKHO.component.get('Name... | [
"0.91371554",
"0.8698335",
"0.85936517",
"0.8376385",
"0.8376385",
"0.75839764",
"0.7580546",
"0.7580546",
"0.7580546",
"0.75484234",
"0.75484234",
"0.75484234",
"0.75484234",
"0.7544465",
"0.7531962",
"0.747979",
"0.7463664",
"0.74601024",
"0.74586856",
"0.7458095",
"0.74430... | 0.0 | -1 |
Return the type of the component. | def type(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5oO(YKHO):\n return YKHO._component_type",
"def g5oO(YKHO) -> cXbK:\n return YKHO.configuration.component_type",
"def type(YKHO):\n return YKHO.container['type']",
"def type(YKHO):\n return YKHO.container['type']",
"def FRul(YKHO):\n return YKHO.type",
"def FRul(YKHO):\n return YKH... | [
"0.8959532",
"0.8686335",
"0.7777388",
"0.7777388",
"0.7660598",
"0.7660598",
"0.7613113",
"0.7593781",
"0.7593781",
"0.75596756",
"0.75567967",
"0.75511634",
"0.7525565",
"0.75236934",
"0.7496737",
"0.7488863",
"0.74818015",
"0.74776536",
"0.7474762",
"0.7474762",
"0.7474762... | 0.0 | -1 |
Return the max score of the external activity. Also called by courseware.grades.get_score function. | def jB5X(YKHO):
return YKHO.points | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jB5X(YKHO):\n return YKHO.lcp.get_max_score()",
"def jB5X(YKHO):\n jB5X = None\n if YKHO.check_if_done_and_scored():\n jB5X = YKHO._max_score\n return jB5X",
"def jB5X(YKHO):\n return max(YKHO._extract_set('score') or [0])",
"def jB5X(YKHO):\n return YKHO.raw_possible",
"def aN... | [
"0.76258975",
"0.73420715",
"0.71733063",
"0.69574475",
"0.6939704",
"0.6736889",
"0.67094874",
"0.67093694",
"0.66632974",
"0.66603607",
"0.66297615",
"0.6612063",
"0.65175396",
"0.65156597",
"0.6509731",
"0.65008605",
"0.647493",
"0.64476365",
"0.6352829",
"0.6341534",
"0.6... | 0.7122568 | 3 |
Return an iterator for n values read from stdin | def Twdk(exwG):
for YRbF in Ni9Y(exwG):
yield int(_G0M().strip()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b86o():\n eHNT = open(SuPA, 'r')\n UufE = int(eHNT.readline())\n for YRbF in range(UufE):\n yield [YRbF + 1, eHNT.readline().split()]\n eHNT.close()",
"def zs73(YKHO, exwG=None):\n if not YKHO._input:\n raise Nbjc.PipeTypeException(YKHO)\n Aofo = []\n while exwG == None or ... | [
"0.70085996",
"0.69129467",
"0.6558335",
"0.63903594",
"0.6183207",
"0.6130468",
"0.6129349",
"0.6078857",
"0.6024505",
"0.6015382",
"0.5960974",
"0.5921466",
"0.58719397",
"0.58542323",
"0.5843615",
"0.5838862",
"0.5816557",
"0.58084816",
"0.5800977",
"0.579929",
"0.5766893"... | 0.7974478 | 0 |
Compute ranges for x and y axes of the plot. Make sure that the ranges for x and yaxes are | def zHbF(wBZN, re6M, KDmU, rwK9):
Bnew, Iajl, soEM, Vx2D = (wBZN, re6M, KDmU, rwK9)
MEXo, OV1s = (abs(re6M - wBZN), abs(rwK9 - KDmU))
if MEXo > OV1s:
yRWF = (rwK9 + KDmU) / 2
Vx2D = yRWF + MEXo / 2
soEM = yRWF - MEXo / 2
else:
EARX = (re6M + wBZN) / 2
Iajl = EARX ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jc_N(YKHO, *qIxc, **B2fa):\n Lcab = YKHO.axes.projection.proj4_params.get('lon_0', 0)\n MEXo, OV1s = type(YKHO)._axes_domain(YKHO, *qIxc, **B2fa)\n MEXo = oyIN.asarray(MEXo) + Lcab\n return (MEXo, OV1s)",
"def vxX5(YKHO):\n TKGt, wmQo = YKHO._get_extremes()\n YKHO.y_axis.min = TKGt\n YKH... | [
"0.7668413",
"0.7588332",
"0.6826602",
"0.67001593",
"0.6668948",
"0.6553018",
"0.6468367",
"0.64180905",
"0.6371516",
"0.63218063",
"0.6316232",
"0.63160247",
"0.6247077",
"0.6185481",
"0.61751956",
"0.6082733",
"0.6076485",
"0.6050816",
"0.60503405",
"0.6037247",
"0.6019884... | 0.7637142 | 1 |
Create 3D array for rgb image. | def M8_S(Mkmy, Oa1e, Fg_i):
if Mkmy is None and Oa1e is None and (Fg_i is None):
bo34.error("'make_cube': 'r', 'g' and 'b' input arrays are all None")
A3Vt, yvY1, tjUW, swaY = None
else:
for ezWE in [Mkmy, Oa1e, Fg_i]:
if ezWE is not None:
pvd3, jHsn = ezWE.sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cLi7(Ux0P):\n LNo8 = oyIN.asarray(hnIv.open(Ux0P))\n lNai = LNo8.shape\n j1iA = len(lNai)\n assert j1iA == 2 or j1iA == 3\n if j1iA == 2:\n LNo8 = oyIN.expand_dims(LNo8, axis=0)\n else:\n assert lNai[2] == 3 or lNai[2] == 4\n if lNai[2] == 4:\n LNo8 = LNo8[:, :... | [
"0.741688",
"0.6642165",
"0.6636302",
"0.6581668",
"0.65347934",
"0.64957666",
"0.64123946",
"0.63724655",
"0.6344529",
"0.6341446",
"0.63170564",
"0.6267427",
"0.61441535",
"0.6131804",
"0.6129639",
"0.61043936",
"0.6077907",
"0.6073759",
"0.6043462",
"0.5968481",
"0.5963114... | 0.0 | -1 |
r""" Helper function for projecting global features to RKHS. | def jK5y(YKHO, vOMU):
R5WF = YKHO.global_nrkhs_sc(vOMU)
vOMU = YKHO.global_nrkhs_a(vOMU)
vOMU = YKHO.activation(vOMU)
vOMU = YKHO.global_nrkhs_b(vOMU)
vOMU += R5WF
return vOMU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X144(YKHO, RVvG, vOMU):\n RVvG = YKHO._project_local(RVvG)\n vOMU = YKHO._project_global(vOMU)\n return (RVvG, vOMU)",
"def eP7T(ITe9):\n gpRq = ITe9.loc[:, ['HNAME', 'JS_J_WINP_JGO']]\n gpRq.loc[:, 'JS_J_WINP_JGO_TRS'] = gpRq.loc[:, 'JS_J_WINP_JGO'].apply(lambda WKvO: (1 + WKvO) ** (-7 / 4))\... | [
"0.5446056",
"0.5273819",
"0.5260508",
"0.52567494",
"0.5240935",
"0.52226657",
"0.5220418",
"0.52196336",
"0.5191914",
"0.5187935",
"0.51813114",
"0.51652265",
"0.5156152",
"0.5155798",
"0.5154486",
"0.5153735",
"0.5115062",
"0.51107174",
"0.5110631",
"0.5103962",
"0.5095758... | 0.608461 | 0 |
Initialize a MagnitudeMetric object. Note, all metrics should define an attribute called mapkeys which specifies the types of data that they expect. Arguments | def FIMM(YKHO, FQ45, yJA9=None, PrTg=None, cgAp=None, TZ9E=None, **B2fa):
if PrTg is None:
PrTg = oyIN.linspace(-25, -15, 40)
YKHO.magbins = PrTg
YKHO.aschema = 'galaxyonly'
YKHO.unitmap = {'appmag': 'mag', 'luminosity': 'mag'}
HlU2.__init__(YKHO, FQ45, zbins=yJA9, xbins=PrTg, catalog_type=c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, FQ45, TvHO=False, yJA9=None, PrTg=None, cgAp=['galaxycatalog'], TZ9E=None, YVA3=False, Klzi=True, **B2fa):\n if yJA9 is None:\n yJA9 = oyIN.linspace(FQ45.minz, FQ45.maxz, 5)\n if PrTg is None:\n PrTg = oyIN.linspace(-25, -16, 50)\n YKHO.lightcone = Klzi\n wgn5.__init__(YKHO... | [
"0.6818694",
"0.651567",
"0.5869607",
"0.57156825",
"0.56756175",
"0.5649172",
"0.5643384",
"0.5634026",
"0.55834264",
"0.5519457",
"0.5516718",
"0.5466704",
"0.5450874",
"0.53789",
"0.5318448",
"0.52917504",
"0.5289632",
"0.5268562",
"0.5267883",
"0.5261546",
"0.5260227",
... | 0.61124706 | 2 |
Integrate the luminosity function between lmin and lmax at a particular redshift. | def zQMB(YKHO, RRUb, ZKOD, epBp, Ebru=1):
if not hasattr(YKHO, 'lummean'):
YKHO.magmean = oyIN.array([(YKHO.magbins[YRbF] + YKHO.magbins[YRbF + 1]) / 2 for YRbF in range(len(YKHO.magbins) - 1)])
if not hasattr(YKHO, 'zmean'):
YKHO.zmean = oyIN.array([(YKHO.zbins[YRbF] + YKHO.zbins[YRbF + 1]) / 2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DRoy(yIvR, lfmz):\n _eG9 = 10 ** (0.4 * (FDBU(lfmz) - yIvR))\n zuir = 10 ** QQOV(lfmz) * (hKx3.h / P6bq.Mpc) ** 3\n kV90 = -3.35\n Pq6G = -0.37\n gaWM = 0.4 * oyIN.log(10) * _eG9 * zuir * (_eG9 ** (-kV90) + _eG9 ** (-Pq6G)) ** (-1)\n return gaWM",
"def lNPd(lfmz, Cwt5, QJVE, K6Uk, zNig=None... | [
"0.6588533",
"0.6121012",
"0.595501",
"0.58470184",
"0.5795053",
"0.5641701",
"0.5562499",
"0.5562275",
"0.5544644",
"0.54601765",
"0.5423088",
"0.5398232",
"0.5366655",
"0.5360008",
"0.53222686",
"0.53155625",
"0.5252602",
"0.51516885",
"0.51399475",
"0.51354986",
"0.5126596... | 0.5827533 | 4 |
Calculate the great circle distance between two points in m on the earth (specified in decimal degrees) | def GeVo(GgQG, igSk, tk0B, TGuP):
GgQG, igSk, tk0B, TGuP = list(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))
q5XV = 6367 * Z9rn
r8hN = 1000.0 * q5XV
return... | {
"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 KzuF(jzdc: ... | [
"0.7906926",
"0.76293033",
"0.7590916",
"0.7547818",
"0.7461984",
"0.7450057",
"0.74444985",
"0.74214184",
"0.7393572",
"0.7392403",
"0.7359445",
"0.73191655",
"0.7277885",
"0.72512245",
"0.7238409",
"0.72376406",
"0.72205794",
"0.7207194",
"0.7195172",
"0.71827614",
"0.71817... | 0.0 | -1 |
Home file that will handle all home requests | def kZiy(QePW):
co6n = zZgD.objects.all()
if QePW.method == 'POST':
L03z = QxWh(QePW.POST)
if L03z.is_valid():
QTBn = L03z.cleaned_data['states']
nItq = L03z.cleaned_data.get('death_count')
OSzs(QTBn, nItq)
L03z = QxWh()
QpfX = {'form': L03z, 'obj_dict... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(YKHO, *qIxc, **B2fa):\n pass",
"def kZiy():\n return geh0('OK')",
"def C_QL():\n print(__name__ + ' invoked')",
"def kZiy():\n G9jH.info('Entering route: HOME')\n G9jH.info('Rendering template: main.html')\n return TvZl('main.html')",
"def d6pt():\n geh0.view_title = wjQK.get(... | [
"0.8038175",
"0.76617646",
"0.73549205",
"0.725541",
"0.7186171",
"0.7126228",
"0.71130216",
"0.7038828",
"0.70309633",
"0.70045465",
"0.6991472",
"0.69855845",
"0.6972144",
"0.6966559",
"0.6956139",
"0.6955458",
"0.6931605",
"0.6931191",
"0.6918811",
"0.6911046",
"0.6901987"... | 0.0 | -1 |
A function to compute the mimimum of the absolute value of the maximum likelihood estimator using a particle swarm optimization | def tp_f(C3ST, nPrm, n6Z7, wspz, X7zS, gGnb=None, o_qv=True, rzQt=30, CMLX=10, P3Cm=g2zq.cpu_count() - 1):
tyUH, HC5D, ccZA, Ojyh = V9_W.optim(p9Dn.MLE, X7zS, args=(C3ST, nPrm, wspz, n6Z7, gGnb), swarmsize=CMLX, maxiter=rzQt, processes=P3Cm, minfunc=1e-09, minstep=1e-09, debug=True, particle_output=True)
xZk3 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsxQ(epBp, IBcv, **qIxc):\n return ZylS.reduce_mean(input_tensor=0.5 * ZylS.square(ZylS.norm(tensor=epBp, axis=-1)) - IBcv)",
"def ZiJM(iBIi):\n if f9TP(iBIi):\n return [None, f7Dd(iBIi)]\n HU0t = list(xASv(iBIi))\n QYY7 = [None, -epAf.inf]\n for XeOP in HU0t:\n sbOL = GcPg(Aofo(... | [
"0.62780595",
"0.6276187",
"0.62353736",
"0.62311363",
"0.6225962",
"0.62020177",
"0.61881506",
"0.61724675",
"0.6124931",
"0.6094487",
"0.6086328",
"0.6065781",
"0.6061097",
"0.60388595",
"0.60230094",
"0.60200405",
"0.6008203",
"0.59752023",
"0.5971087",
"0.5950657",
"0.592... | 0.0 | -1 |
Run layer normalization on the last dimension of the tensor. | def vUJ3(FRUf, mWFP=None):
return ZylS.keras.layers.LayerNormalization(axis=-1, epsilon=1e-12, center=False, scale=False)(inputs=FRUf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykhl(WKvO, Y9ns, mWFP):\n tlxW = ZylS.layers.batch_normalization(WKvO, axis=3, training=Y9ns, name=mWFP)\n return tlxW",
"def VnjB(YKHO, gEmA):\n if type(gEmA) is not GVKG:\n raise ValueError('The `layer` must be neoml.Dnn.BatchNormalization.')\n YKHO._internal.apply_batch_normalization(gE... | [
"0.7188471",
"0.69629765",
"0.69441414",
"0.67970544",
"0.67868984",
"0.67468345",
"0.6699458",
"0.66058177",
"0.6587076",
"0.65642875",
"0.6561795",
"0.6557462",
"0.6551223",
"0.6541247",
"0.65286005",
"0.6526391",
"0.65231514",
"0.65183055",
"0.6511796",
"0.6501839",
"0.649... | 0.6747918 | 5 |
Returns the color of the circle | def KGGj(YKHO):
return YKHO.__color | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZVrg(YKHO):\n return YKHO.circle",
"def Upzy(FV9o):\n pass",
"def PICn(YKHO):\n return YKHO.color",
"def PICn(YKHO):\n return YKHO.__color",
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO)... | [
"0.727764",
"0.70808893",
"0.7038515",
"0.7006561",
"0.70031154",
"0.6952446",
"0.6952446",
"0.69466203",
"0.69137627",
"0.690849",
"0.68616456",
"0.6857539",
"0.67989683",
"0.67621505",
"0.67280626",
"0.67280626",
"0.6719233",
"0.6719233",
"0.6718903",
"0.6717954",
"0.669790... | 0.6798711 | 15 |
Remove a set of keys from a dictionary. | def tcI8(dixj: dict, kSdD: list) -> dict:
eSnm = {}
for H5ew, wEf2 in dixj.items():
if H5ew not in kSdD:
eSnm[H5ew] = wEf2
return eSnm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HwUi(weiJ, YWxY):\n for G1Hx in set(weiJ.keys()) - YWxY:\n weiJ.pop(G1Hx)",
"def rtKA(YKHO, cmPJ, *sjXb):\n CpE3 = [G1Hx for G1Hx in cmPJ if G1Hx not in sjXb]\n YKHO.remove_from_dictionary(cmPJ, *CpE3)",
"def gOiW(cmPJ, sjXb):\n aY5b = cmPJ.copy()\n try:\n [aY5b.pop(H5ew) for H... | [
"0.82830334",
"0.785168",
"0.76254576",
"0.75625604",
"0.7551612",
"0.7526013",
"0.74125165",
"0.7398286",
"0.73847413",
"0.73714226",
"0.73630935",
"0.71923006",
"0.7173672",
"0.7099648",
"0.7094521",
"0.697857",
"0.69439185",
"0.68971515",
"0.6861611",
"0.68174064",
"0.6797... | 0.6887262 | 18 |
Creates a 3D array of 3D world object points. If you want to calibrate 2plane, you should make objectpoints as that. grid_size = (x_num, y_num, z_num) | def d8_C(U4F5, Jw7X):
HlCT = oyIN.zeros((U4F5[0] * U4F5[1], 3), oyIN.float32)
mjB1 = oyIN.zeros((U4F5[1] * U4F5[2], 3), oyIN.float32)
HlCT[:, :2] = oyIN.mgrid[0:U4F5[0], 0:U4F5[1]].T.reshape(-1, 2)
mjB1[:, 1:3] = oyIN.mgrid[0:U4F5[1], 0:U4F5[2]].T.reshape(-1, 2)
return (HlCT * Jw7X, mjB1 * Jw7X) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IP3z(U4F5, Jw7X):\n tN8F = oyIN.zeros((U4F5[0] * U4F5[1], 3), oyIN.float32)\n tN8F[:, :2] = oyIN.mgrid[0:U4F5[0], 0:U4F5[1]].T.reshape(-1, 2)\n return tN8F * Jw7X",
"def b11L(YKHO):\n YKHO.points = oyIN.concatenate((YKHO.points, oyIN.zeros((YKHO.points.shape[0], 1))), axis=1)\n YKHO.points = o... | [
"0.6956415",
"0.6871657",
"0.63504577",
"0.6305604",
"0.6150675",
"0.60865784",
"0.6083869",
"0.60663855",
"0.6029143",
"0.59978664",
"0.59638613",
"0.59534365",
"0.5946846",
"0.5908095",
"0.59039986",
"0.590372",
"0.5893489",
"0.5875465",
"0.58524495",
"0.5851192",
"0.585033... | 0.6699848 | 2 |
Creates a 3D array of 3D world object points. Z coordinate for every point is assumed to be zero | def IP3z(U4F5, Jw7X):
tN8F = oyIN.zeros((U4F5[0] * U4F5[1], 3), oyIN.float32)
tN8F[:, :2] = oyIN.mgrid[0:U4F5[0], 0:U4F5[1]].T.reshape(-1, 2)
return tN8F * Jw7X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UqpO(YKHO) -> oyIN.ndarray:\n return oyIN.vstack((YKHO.x, YKHO.y, YKHO.z)).transpose()",
"def b11L(YKHO):\n YKHO.points = oyIN.concatenate((YKHO.points, oyIN.zeros((YKHO.points.shape[0], 1))), axis=1)\n YKHO.points = oyIN.ascontiguousarray(YKHO.points)",
"def ii3N(SqIz):\n RBVb = []\n for a1... | [
"0.71590316",
"0.7000325",
"0.68111104",
"0.6687257",
"0.6652061",
"0.6636498",
"0.6503225",
"0.6460843",
"0.645857",
"0.64573276",
"0.6432986",
"0.63974595",
"0.6281455",
"0.6267496",
"0.6224516",
"0.62016857",
"0.6163322",
"0.6145564",
"0.6140731",
"0.6135993",
"0.6131219",... | 0.0 | -1 |
Creates a 3D array of 3D world object points. Z coordinate for every point is assumed to be zero | def N7s1(U4F5, Jw7X):
tN8F = oyIN.zeros((U4F5[0] * U4F5[1], 3), oyIN.float32)
tN8F[:, :2] = oyIN.mgrid[1:U4F5[0] + 1, 0:U4F5[1]].T.reshape(-1, 2)
return tN8F * Jw7X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UqpO(YKHO) -> oyIN.ndarray:\n return oyIN.vstack((YKHO.x, YKHO.y, YKHO.z)).transpose()",
"def b11L(YKHO):\n YKHO.points = oyIN.concatenate((YKHO.points, oyIN.zeros((YKHO.points.shape[0], 1))), axis=1)\n YKHO.points = oyIN.ascontiguousarray(YKHO.points)",
"def ii3N(SqIz):\n RBVb = []\n for a1... | [
"0.7159152",
"0.70004964",
"0.68105024",
"0.6687646",
"0.6652693",
"0.6636521",
"0.6503862",
"0.64612997",
"0.6458343",
"0.6457769",
"0.6433366",
"0.6396867",
"0.6282248",
"0.6267545",
"0.622522",
"0.6201884",
"0.61642736",
"0.6145888",
"0.61405104",
"0.61365885",
"0.61313325... | 0.0 | -1 |
Creates a 3D array of 3D world object points. X coordinate for every point is assumed to be zero | def Qna_(U4F5, Jw7X):
tN8F = oyIN.zeros((U4F5[1] * U4F5[2], 3), oyIN.float32)
tN8F[:, 1:3] = oyIN.mgrid[0:U4F5[2], 0:U4F5[1]].T.reshape(-1, 2)
P6bq = tN8F.T
LVAh = 0 * P6bq
LVAh[1] = P6bq[2]
LVAh[2] = P6bq[1]
return LVAh.T * Jw7X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b11L(YKHO):\n YKHO.points = oyIN.concatenate((YKHO.points, oyIN.zeros((YKHO.points.shape[0], 1))), axis=1)\n YKHO.points = oyIN.ascontiguousarray(YKHO.points)",
"def UqpO(YKHO) -> oyIN.ndarray:\n return oyIN.vstack((YKHO.x, YKHO.y, YKHO.z)).transpose()",
"def ii3N(SqIz):\n RBVb = []\n for a1... | [
"0.72336006",
"0.72242546",
"0.674793",
"0.670637",
"0.6645193",
"0.6525643",
"0.6496316",
"0.6466273",
"0.6454112",
"0.6375829",
"0.6356054",
"0.63363755",
"0.63122916",
"0.63056666",
"0.6287191",
"0.62543935",
"0.62518483",
"0.61903405",
"0.61754805",
"0.6139416",
"0.612624... | 0.0 | -1 |
Check if the attribute has keyframe in the current frame | def a_qC(hkS8):
G1Hx = TlDD.keyframe(hkS8, query=True, time=TlDD.currentTime())
if G1Hx:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IPJs(hkS8):\n G1Hx = ccKF.keyframe(hkS8, query=True)\n if G1Hx:\n return True",
"def eRwN(YKHO):\n return hPFK.vectorVec3Keyframe___bool__(YKHO)",
"def eRwN(YKHO):\n return hPFK.vectorVec4Keyframe___bool__(YKHO)",
"def eRwN(YKHO):\n return hPFK.vectorVec2Keyframe___bool__(YKHO)",
... | [
"0.7819775",
"0.66093826",
"0.65196204",
"0.6500611",
"0.6460843",
"0.6405242",
"0.63498026",
"0.63399935",
"0.6314102",
"0.6279381",
"0.6241291",
"0.60813606",
"0.6029613",
"0.5837364",
"0.5787127",
"0.57587916",
"0.5683129",
"0.56743085",
"0.5646003",
"0.5644488",
"0.562016... | 0.8474909 | 0 |
Skips the first entries of this result set. | def EdbX(YKHO, EdbX):
YKHO.query = YKHO.query.skip(EdbX)
YKHO._has_skip = True
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EdbX(YKHO, EdbX):\n YKHO._evaluated = False\n YKHO._offset = EdbX\n return YKHO",
"def JR5C(N5Pj, exwG):\n for YRbF in range(exwG):\n next(N5Pj)",
"def EdbX(YKHO, EdbX):\n YKHO._skip = EdbX",
"def EdbX(YKHO, EdbX):\n YKHO._skip = EdbX\n return YKHO",
"def EdbX(YKHO, exwG=Non... | [
"0.6547221",
"0.64715946",
"0.64025074",
"0.6337534",
"0.62512887",
"0.6135879",
"0.61354864",
"0.6121187",
"0.6088065",
"0.60749716",
"0.60235095",
"0.59365004",
"0.59159976",
"0.5839844",
"0.5778818",
"0.57404953",
"0.5718574",
"0.57068175",
"0.5676668",
"0.5617569",
"0.552... | 0.67080784 | 0 |
Returns the number of documents returned by this query. | def UHFx(YKHO):
return YKHO.query.count(with_limit_and_skip=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUZc(YKHO):\n UzPC = YKHO.__get_database_connection()\n geh0 = YKHO.__make_request(UzPC, '/%s' % YKHO.database_name)\n return geh0.get('doc_count', 0)",
"async def count(YKHO) -> int:\n return await YKHO.document_model.get_motor_collection().count_documents(YKHO.get_filter_query())",
"def Xfk6(... | [
"0.8337345",
"0.8287085",
"0.81594795",
"0.8137729",
"0.78821033",
"0.77255785",
"0.7679622",
"0.7679622",
"0.7676329",
"0.76175874",
"0.7602115",
"0.7572826",
"0.7533432",
"0.74863744",
"0.73947823",
"0.73635274",
"0.7325006",
"0.73239166",
"0.727974",
"0.72676206",
"0.72548... | 0.73179775 | 18 |
Converts a pymongo document dictionary into a valid document object instance. | def Mze3(YKHO, C13M):
YEnM = YKHO.document()
YEnM._set_from_db(C13M)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WqhB(Emd4, nPrm: dict) -> uLKX['MongoModel', cuzp]:\n if not nPrm:\n return nPrm\n id = nPrm.pop('_id', None)\n return Emd4(**dict(nPrm, id=id))",
"def LBm8(Emd4, nPrm, xkLA=True):\n if xkLA and '_cls' in nPrm:\n Emd4 = Emd4.opts.instance.retrieve_embedded_document(nPrm['_cls'])\n ... | [
"0.7376199",
"0.679948",
"0.6655679",
"0.6619633",
"0.6327637",
"0.62113893",
"0.60903984",
"0.6074768",
"0.59807473",
"0.5961137",
"0.59598356",
"0.5950308",
"0.594393",
"0.5930427",
"0.59177494",
"0.59102196",
"0.5881701",
"0.5865606",
"0.585971",
"0.58388865",
"0.58154225"... | 0.71614736 | 1 |
Skips the first entries of this result set. | def EdbX(YKHO, EdbX):
YKHO._evaluated = False
YKHO._offset = EdbX
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EdbX(YKHO, EdbX):\n YKHO.query = YKHO.query.skip(EdbX)\n YKHO._has_skip = True\n return YKHO",
"def JR5C(N5Pj, exwG):\n for YRbF in range(exwG):\n next(N5Pj)",
"def EdbX(YKHO, EdbX):\n YKHO._skip = EdbX",
"def EdbX(YKHO, EdbX):\n YKHO._skip = EdbX\n return YKHO",
"def EdbX(Y... | [
"0.67069906",
"0.6471434",
"0.64006656",
"0.63355756",
"0.62503874",
"0.613458",
"0.61340994",
"0.6121521",
"0.60875076",
"0.6073741",
"0.6023148",
"0.59348124",
"0.5915648",
"0.5839352",
"0.57775354",
"0.5739357",
"0.57175505",
"0.5706402",
"0.56765467",
"0.56159693",
"0.552... | 0.65455544 | 1 |
Create and configure a new app instance for each test. | def P4t4():
P4t4 = LUif({'DB_CONNECT': wCgb})
with P4t4.app_context():
GGod()
D9cM = Oa1e.db.execute(KpUF).fetchone()
yield P4t4
print('end ever test doing sonething') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fkN9():\n xqoZ = {'DEBUG': True, 'TESTING': True}\n wMcu = LUif(settings_override=xqoZ)\n OaeV = wMcu.app_context()\n OaeV.push()\n yield wMcu\n OaeV.pop()",
"def LUif(YKHO):\n P4t4.config.from_object('config.TestingConfig')\n return P4t4",
"def LUif(YKHO):\n P4t4 = LUif()\n P... | [
"0.7984731",
"0.7973278",
"0.7952626",
"0.7774617",
"0.7610121",
"0.75586873",
"0.7514867",
"0.748489",
"0.7457632",
"0.7457632",
"0.7457632",
"0.7423435",
"0.74221593",
"0.7392862",
"0.7378533",
"0.73515075",
"0.7331986",
"0.7303747",
"0.7297693",
"0.7282327",
"0.7275915",
... | 0.69582385 | 61 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
geh0.headers['Cache-Control'] = 'public, max-age=60'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def P... | [
"0.8222085",
"0.8222085",
"0.8222085",
"0.8222085",
"0.819543",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0... | 0.82229227 | 0 |
Apply func to each element of a collection, or value of a dictionary. If the value is not a collection, return it unmodified | def evWV(JfyU, xUwc):
SLLj = type(xUwc)
if isinstance(xUwc, GySg):
return SLLj(((H5ew, JfyU(wEf2)) for H5ew, wEf2 in xUwc.items()))
if X7_c(xUwc):
return xUwc
elif isinstance(xUwc, iu5r):
return SLLj(map(JfyU, xUwc))
else:
return xUwc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2gC(eHNT, ukQo):\n if hxss(ukQo):\n return eHNT(juWY(g2gC(eHNT), ukQo))\n elif Lm1b(ukQo):\n return eHNT(list(map(g2gC(eHNT), ukQo)))\n else:\n return eHNT(ukQo)",
"def peXU(nPrm: Any, yDqo: Union[type, tuple], m2Zb: Callable, *qIxc: Any, Cscb: Optional[Union[type, tuple]]=None... | [
"0.71441704",
"0.6956387",
"0.6694411",
"0.62626463",
"0.6200003",
"0.6001378",
"0.5918556",
"0.5914313",
"0.58524376",
"0.58330405",
"0.5776887",
"0.57607365",
"0.5739621",
"0.56303555",
"0.5624981",
"0.56235015",
"0.56084394",
"0.5600193",
"0.55982894",
"0.55879223",
"0.553... | 0.7135692 | 1 |
A string representation of the model. | def zAg0(YKHO):
return YKHO.location_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW... | [
"0.8567286",
"0.80320746",
"0.7939547",
"0.78144956",
"0.78115743",
"0.7782607",
"0.7757796",
"0.7757796",
"0.773894",
"0.77152467",
"0.7714009",
"0.7679083",
"0.7661709",
"0.765754",
"0.7645759",
"0.7645759",
"0.7628557",
"0.762749",
"0.75903344",
"0.75903344",
"0.7569605",
... | 0.0 | -1 |
A string representation of the model. | def zAg0(YKHO):
return '{0} : {1} : {2}'.format(YKHO.location_det_info.location_id, YKHO.location_det_info.location_name, YKHO.photo_link) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW... | [
"0.85663986",
"0.803271",
"0.79394376",
"0.78149664",
"0.7810674",
"0.77822584",
"0.77570075",
"0.77570075",
"0.77393293",
"0.77159613",
"0.77150387",
"0.76797277",
"0.7662907",
"0.76580936",
"0.7644709",
"0.7644709",
"0.7629082",
"0.76272035",
"0.75906587",
"0.75906587",
"0.... | 0.0 | -1 |
A string representation of the model. | def zAg0(YKHO):
return '{0}: {1} | {2} : {3} | {4}'.format(YKHO.user_id.id, YKHO.user_id.email, YKHO.location_id.location_id, YKHO.location_id.location_name, YKHO.updated_time) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW... | [
"0.85668004",
"0.80330515",
"0.79402775",
"0.781453",
"0.78113",
"0.7783454",
"0.77579135",
"0.77579135",
"0.7740315",
"0.77159655",
"0.77138305",
"0.76785606",
"0.76623255",
"0.76586974",
"0.7645179",
"0.7645179",
"0.76295626",
"0.76276153",
"0.7589816",
"0.7589816",
"0.7571... | 0.0 | -1 |
Reshaping happens during the call to forward. | def q3V_(YKHO, es2x, tlxW):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, input):\n Ep8u = input.size(0)\n ROpF = (Ep8u, *YKHO.shape)\n yvT9 = input.reshape(ROpF)\n return yvT9",
"def fK3f(YKHO):\n YKHO._frame._setup(width=YKHO._width, height=YKHO._height, startx=YKHO._x, starty=YKHO._y)",
"def KVH6(YKHO, WKvO):\n WKvO = WKvO.permute(0, 3, 1, 2)\n ... | [
"0.70523924",
"0.6610369",
"0.6552763",
"0.6552763",
"0.6444607",
"0.6263049",
"0.62191755",
"0.6207382",
"0.62042695",
"0.6125206",
"0.6125206",
"0.6097465",
"0.6092736",
"0.6090612",
"0.6085355",
"0.60790575",
"0.6075612",
"0.6063214",
"0.6062157",
"0.6055766",
"0.60474175"... | 0.5745745 | 86 |
This is the sieve of Erosthenes, as implemented by David Eppstein, UC Irvine, 28 Feb 2002 For the method of calculating primes that I came up with myself, see my solution to problem 7 | def ooxQ():
lWPh = {}
vexM = 2
while 1:
if vexM not in lWPh:
yield vexM
lWPh[vexM ** 2] = [vexM]
else:
for XP5J in lWPh[vexM]:
lWPh.setdefault(XP5J + vexM, []).append(XP5J)
del lWPh[vexM]
vexM += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LGLZ(KCHu):\n zXrY = [True] * (KCHu + 1)\n zXrY[0] = False\n zXrY[1] = False\n XP5J = 2\n while XP5J ** 2 <= KCHu:\n if zXrY[XP5J]:\n for YRbF in range(XP5J * 2, KCHu + 1, XP5J):\n zXrY[YRbF] = False\n XP5J += 1\n rPed = []\n for r845 in range(2, KCH... | [
"0.79081774",
"0.7791447",
"0.7771241",
"0.775611",
"0.7721861",
"0.7718852",
"0.7712618",
"0.7701185",
"0.76994807",
"0.76991796",
"0.7672956",
"0.7672956",
"0.7576873",
"0.7576152",
"0.7573356",
"0.7567757",
"0.7567402",
"0.755636",
"0.75506777",
"0.7496662",
"0.7492551",
... | 0.0 | -1 |
Recursively merge dict2 into dict1 (in place) | def W0j7(WbPA, S69B, pmON=None):
if pmON is None:
pmON = []
for H5ew, c163 in jKi7.iteritems(S69B):
if H5ew not in WbPA:
WbPA[H5ew] = c163
continue
UXsi = WbPA[H5ew]
if UXsi == c163:
continue
elif isinstance(UXsi, dict) and isinstance(c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0j7(AjzU, _sQW):\n for H5ew, BWXx in _sQW.items():\n if H5ew in AjzU:\n if isinstance(AjzU[H5ew], dict) and isinstance(BWXx, dict):\n W0j7(AjzU[H5ew], BWXx)\n continue\n AjzU[H5ew] = BWXx",
"def PCMW(AjzU, _sQW):\n if _sQW is None:\n return... | [
"0.80399597",
"0.79884166",
"0.7935461",
"0.78855747",
"0.7836948",
"0.76888674",
"0.7673042",
"0.76711994",
"0.76711994",
"0.7658636",
"0.7657581",
"0.7606851",
"0.75493306",
"0.75251645",
"0.75092447",
"0.74775165",
"0.7456558",
"0.7408299",
"0.7393379",
"0.7371348",
"0.736... | 0.8028046 | 1 |
return a keras model with the same setup | def h3bN(pan_, UeD_=None):
wJ4v = oPz_(pan_.to_json(), UeD_)
wJ4v.set_weights(pan_.get_weights())
return wJ4v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YrZb():\n C3ST = ileL([Zlsf(NkkI, input_shape=(66, 200, 3)), Ofph(16, (3, 3), padding='same', activation='relu', strides=2), Ofph(16, (3, 3), padding='same', activation='relu', strides=1), Ofph(24, (3, 3), padding='same', activation='relu', strides=1), BzBX(pool_size=(3, 3)), Ofph(24, (3, 3), padding='same'... | [
"0.77413577",
"0.76577276",
"0.7527948",
"0.7482939",
"0.7410151",
"0.7401882",
"0.73722875",
"0.73719454",
"0.73517644",
"0.7339805",
"0.7328387",
"0.7316164",
"0.7307587",
"0.72834766",
"0.7275323",
"0.72604656",
"0.725212",
"0.7219951",
"0.718237",
"0.71755457",
"0.7174741... | 0.6877451 | 54 |
Return a list of uninitialized tf variables. | def Vn5M(kc1W=None):
cb_Q = ZylS.get_default_session()
if kc1W is None:
kc1W = ZylS.global_variables()
else:
kc1W = list(kc1W)
if len(kc1W) == 0:
return []
if Qinn.match(ZylS.__version__, '<1.0.0'):
WiUu = cb_Q.run(ZylS.pack([ZylS.is_variable_initialized(Ty9i) for Ty9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eoGB(cb_Q):\n PmDx = []\n Ehgj = []\n for SRYB in ZylS.global_variables():\n PmDx.append(SRYB)\n Ehgj.append(ZylS.is_variable_initialized(SRYB))\n VY1l = cb_Q.run(Ehgj)\n wchP = zip(VY1l, PmDx)\n wchP = [SRYB for DbxN, SRYB in wchP if not DbxN]\n cb_Q.run(ZylS.variables_initi... | [
"0.7841744",
"0.7496129",
"0.7198177",
"0.71766186",
"0.7040041",
"0.6945067",
"0.69365084",
"0.68995523",
"0.6888753",
"0.68063164",
"0.67433554",
"0.66923213",
"0.6515283",
"0.64900374",
"0.64650863",
"0.64212316",
"0.64074284",
"0.64032453",
"0.6367547",
"0.6326609",
"0.63... | 0.8299286 | 0 |
Return list of target model update ops. These are soft target updates. Meaning that the target values are slowly adjusted, rather than directly copied over from the source model. | def Li32(pan_, JZXy, jmzt):
IxwW = pan_.get_weights()
ILnd = oyIN.ones(oyIN.shape(IxwW)) * jmzt
GamQ = (1 - ILnd) * pan_.get_weights() + ILnd * JZXy.get_weights()
pan_.set_weights(GamQ)
return pan_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0cq(pan_, JZXy):\n pan_.set_weights(JZXy.get_weights())\n return pan_",
"def f67V(lkbj, wQ4P, jmzt, PJWX=0):\n if PJWX >= 2:\n print('setting up target updates ...')\n AHKU = []\n aZLp = []\n assert len(lkbj) == len(wQ4P)\n for SRYB, _bo4 in zip(lkbj, wQ4P):\n if PJWX >= 2... | [
"0.680939",
"0.66979945",
"0.61962277",
"0.6159392",
"0.5961591",
"0.5920616",
"0.58885896",
"0.57637775",
"0.57501525",
"0.57432735",
"0.5694672",
"0.5693133",
"0.55955386",
"0.5538365",
"0.55011755",
"0.54881394",
"0.54881394",
"0.5424445",
"0.54207546",
"0.5393336",
"0.537... | 0.68320936 | 0 |
Test for the presence of an exchange, and optionally whether it has an alternate exchange set to a known value. | def _PSn(YKHO, cJHQ, Q1gw=None):
return YKHO._query(cJHQ, 'exchange', 'org.apache.qpid.broker', Q1gw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K68i(YKHO, cJHQ):\n try:\n yield from YKHO.exchange_declare(cJHQ, passive=True)\n except V7ok.exceptions.ChannelClosed:\n return False\n dQgO = YKHO.http_client.get_exchange(YKHO.VHOST, cJHQ)\n return dQgO is not None",
"def VRkF(YKHO, e4cV):\n YKHO.logger.debug(\"Checking exchan... | [
"0.67719275",
"0.6318865",
"0.62033266",
"0.59151757",
"0.5833259",
"0.581084",
"0.55504566",
"0.53638417",
"0.5237897",
"0.5213223",
"0.51355743",
"0.51055527",
"0.50568295",
"0.50498784",
"0.4957506",
"0.49200758",
"0.4916098",
"0.4913207",
"0.48822218",
"0.48819906",
"0.48... | 0.5098686 | 12 |
Test for the presence of an exchange, and optionally whether it has an alternate exchange set to a known value. | def GN51(YKHO, Q64Y, Q1gw=None):
return YKHO._query(Q64Y, 'queue', 'org.apache.qpid.broker', Q1gw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K68i(YKHO, cJHQ):\n try:\n yield from YKHO.exchange_declare(cJHQ, passive=True)\n except V7ok.exceptions.ChannelClosed:\n return False\n dQgO = YKHO.http_client.get_exchange(YKHO.VHOST, cJHQ)\n return dQgO is not None",
"def VRkF(YKHO, e4cV):\n YKHO.logger.debug(\"Checking exchan... | [
"0.6770636",
"0.63190055",
"0.6202528",
"0.59146357",
"0.583146",
"0.58103025",
"0.5549937",
"0.5363096",
"0.5237259",
"0.52099144",
"0.5134406",
"0.5105851",
"0.5096687",
"0.5057867",
"0.50499105",
"0.4957202",
"0.492103",
"0.49151775",
"0.49101487",
"0.48828304",
"0.4881117... | 0.0 | -1 |
Check if a queue is empty (has no messages waiting) | def QEu0(YKHO, Q64Y):
return YKHO.queue_message_count(Q64Y) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def lsmZ(YKHO) -> bool:\n if YKHO.queue i... | [
"0.8563155",
"0.8563155",
"0.856003",
"0.8520078",
"0.84958243",
"0.8355925",
"0.8341753",
"0.834009",
"0.83279884",
"0.83177894",
"0.829032",
"0.8267508",
"0.825383",
"0.82482827",
"0.8191616",
"0.81884384",
"0.8186372",
"0.8149118",
"0.81480026",
"0.8113768",
"0.8071125",
... | 0.8461983 | 5 |
Check if a queue is empty (has no more messages) | def EoAX(YKHO, gGq6, Td1T):
try:
tO9_ = Td1T.fetch(timeout=0)
YKHO.assert_(False, 'Queue "%s" not empty: found message: %s' % (gGq6, tO9_))
except rWmY:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def QEu0(YKHO, Q64Y):\n return YKHO.queue... | [
"0.8489192",
"0.84731364",
"0.84731364",
"0.84247255",
"0.8419345",
"0.83326113",
"0.82777584",
"0.8260492",
"0.8238599",
"0.8233666",
"0.82004493",
"0.81588924",
"0.809562",
"0.808904",
"0.80711395",
"0.8027008",
"0.8018088",
"0.79885304",
"0.7953359",
"0.793655",
"0.7916652... | 0.83180344 | 6 |
Assert an item is in the response body. | def Gmll(YKHO, geh0, ZfUD):
YKHO.assertTrue(ZfUD in geh0.body) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H9XO(YKHO):\n GPtr = YKHO.__load_config()\n bD7m = f'http://{GPtr['api']['host']}:{GPtr['api']['port']}/gs/api/v1/54590'\n Mkmy = G4JS.get(bD7m)\n aEqx = {'itemId': 54590, 'name': 'Sharpened Twilight Scale', 'gearScore': 310}\n YKHO.assertEqual(Mkmy.json(), aEqx)",
"def ET2v(udfG):\n geh0 =... | [
"0.6967266",
"0.6836119",
"0.6726765",
"0.67165565",
"0.6494212",
"0.6480021",
"0.63034284",
"0.62851477",
"0.6265313",
"0.6256769",
"0.6230533",
"0.62298334",
"0.619795",
"0.6194481",
"0.61930746",
"0.61762273",
"0.6117838",
"0.6096125",
"0.6093593",
"0.60832757",
"0.6074354... | 0.8396542 | 0 |
Create a new data bag item. Pass the initial value for any keys as keyword arguments. | def eLpg(Emd4, D79s, mWFP, H5ew, nNXP=None, **B2fa):
nNXP = nNXP or W4jP.get_global()
YEnM = Emd4(D79s, mWFP, H5ew, nNXP, skip_load=True)
for H5ew, BWXx in jKi7.iteritems(B2fa):
YEnM[H5ew] = BWXx
YEnM.save()
if isinstance(D79s, dnCu) and mWFP not in D79s.names:
D79s.names.append(mWFP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Khzq(YKHO, ht7m: str, nPrm: dict) -> Y0rt:\n return Y0rt(id=ht7m, **nPrm)",
"def eLpg(YKHO):\n ZfUD = NS5h.create()\n YKHO._baskets[ZfUD.code] = ZfUD\n return ZfUD.code",
"def FIMM(YKHO, H5ew, BWXx):\n YKHO.key = H5ew\n YKHO.value = BWXx",
"def FIMM(YKHO, DumB=[]):\n dict.__init__(YK... | [
"0.6193863",
"0.5993691",
"0.5989944",
"0.59822065",
"0.5879012",
"0.5858341",
"0.584953",
"0.58321166",
"0.58321166",
"0.57810235",
"0.57786286",
"0.5777314",
"0.5752967",
"0.575122",
"0.575122",
"0.575122",
"0.575122",
"0.575122",
"0.575122",
"0.575122",
"0.575122",
"0.57... | 0.6786038 | 0 |
Return a user by its id. | async def get_user_byid(QePW):
uJjO = QePW.match_info['user_id']
try:
uJjO = int(uJjO)
except (ValueError, TypeError):
return jA2G.Response(text='Incorrect value for user_id', status=400)
_M9H = QePW.cirrina.db_session.query(mv1M).filter(mv1M.username == QePW.cirrina.web_session['usernam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def ggdo(Emd4, _eu6):\n CBIr = Emd4.query.filter_by(id=_eu6).first()\n return CBIr",
"def KacQ(YKHO, id: int) -> auMM.bbUser:\n id = YKHO.validateID(id)\n return YKHO.users[id]",
"def NMoC(id):\n return mv1M.query.filter_by(id=id).first()",... | [
"0.8989497",
"0.86999327",
"0.86902523",
"0.8682047",
"0.86731964",
"0.8641115",
"0.85874337",
"0.85419333",
"0.8509774",
"0.8494728",
"0.848963",
"0.8441403",
"0.84342724",
"0.8433056",
"0.8433056",
"0.8433056",
"0.8433056",
"0.8418924",
"0.8376678",
"0.8343175",
"0.8268276"... | 0.81730914 | 32 |
the id of bulk record Corresponds to the 'Id' field in the bulk file. | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return YKHO.get_data('id')",
"def id(YKHO):\n return str(YKHO.get_data('id'))",
"def id(YKHO):\n return YKHO.raw_resource['id']",
"def id(YKHO):\n if YKHO._record is not None:\n return YKHO._record.id\n else:\n return 'NO_ID_ASSIGNED'",
"def id(YKHO):\n retur... | [
"0.75862163",
"0.75683075",
"0.7532247",
"0.7523961",
"0.75215757",
"0.74835855",
"0.7478835",
"0.7477398",
"0.7453414",
"0.7453414",
"0.7442327",
"0.7326288",
"0.7236644",
"0.72340614",
"0.71738935",
"0.71606654",
"0.715806",
"0.71532977",
"0.7151689",
"0.7141299",
"0.712193... | 0.72178876 | 53 |
the value of ad customizer attribute Corresponds to the 'AdCustomizer AttributeValue' field in the bulk file. | def JBov(YKHO):
return YKHO._attribute_value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBov(YKHO) -> str:\n return qe4Y.get(YKHO, 'attribute_value')",
"def BWXx(YKHO):\n return YKHO.raw.get_attribute('value')",
"def BWXx(YKHO):\n return YKHO.element.get_attribute('value')",
"def BWXx(YKHO):\n return YKHO.element.get_attribute('value')",
"def BWXx(YKHO):\n return YKHO.eleme... | [
"0.62839144",
"0.60764915",
"0.602967",
"0.602967",
"0.602967",
"0.60003376",
"0.590117",
"0.5815305",
"0.57211477",
"0.567954",
"0.56634533",
"0.56456804",
"0.56100965",
"0.5596023",
"0.55585593",
"0.55261123",
"0.549329",
"0.5488646",
"0.52902913",
"0.528557",
"0.526337",
... | 0.6285789 | 0 |
the parent id of bulk record Corresponds to the 'ParentId' field in the bulk file. | def H7rZ(YKHO):
return YKHO._parent_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7rZ(YKHO) -> str:\n return YKHO._db_data.parent_id",
"def H7rZ(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'parent_id')",
"def O4dJ(YKHO):\n _AKB = LRdN.find(YKHO.resource.container)\n return _AKB.uuid",
"def H7rZ(YKHO) -> int:\n return YKHO._parent_id",
"def DtVU(YKHO):\n ret... | [
"0.8123638",
"0.78920895",
"0.7870857",
"0.78471476",
"0.780203",
"0.7636215",
"0.7636215",
"0.7542416",
"0.73776096",
"0.73776096",
"0.73776096",
"0.73776096",
"0.71930164",
"0.71748734",
"0.7137856",
"0.7137856",
"0.71269906",
"0.70943177",
"0.68721473",
"0.686579",
"0.6841... | 0.79778546 | 2 |
the editorial status of ad customizer attribute Corresponds to the 'Editorial Status' field in the bulk file. | def VlRd(YKHO):
return YKHO._editorial_status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VlRd(YKHO):\n return YKHO._editorial_status",
"def NdYa():\n if YKHO.status == YKHO.CH_SUBMITTED:\n return 'Submitted'\n elif YKHO.status == YKHO.CH_AUTOGRADED:\n if YKHO.autograderresult.visible:\n return 'Autograded (released)'\n else:\n return 'Autograde... | [
"0.74443287",
"0.6334042",
"0.63017523",
"0.6132932",
"0.59302324",
"0.5911544",
"0.5816745",
"0.57952416",
"0.57461816",
"0.57442856",
"0.5735055",
"0.57297575",
"0.5721885",
"0.5719453",
"0.5699855",
"0.56896436",
"0.5665827",
"0.56407344",
"0.5633577",
"0.56131107",
"0.560... | 0.75428087 | 0 |
initializes parameters. shapes are the shape of filters/weights | def K55i():
eiBr = ZylS.get_variable('W1', [3, 3, 3, 64], initializer=ZylS.contrib.layers.xavier_initializer(seed=0))
krgz = ZylS.get_variable('W2', [3, 3, 64, 128], initializer=ZylS.contrib.layers.xavier_initializer(seed=0))
LdMp = ZylS.get_variable('W3', [3, 3, 128, 256], initializer=ZylS.contrib.layers.x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X8Xp(YKHO):\n for YRbF in range(1, len(YKHO.layer_dimensions)):\n yGTL = 0\n SRYB = 2 / YKHO.layer_dimensions[YRbF]\n WTkW = oyIN.sqrt(SRYB)\n qmhL = (YKHO.layer_dimensions[YRbF - 1], YKHO.layer_dimensions[YRbF])\n upAO = oyIN.random.normal(loc=yGTL, scale=WTkW, size=qmhL)... | [
"0.71550333",
"0.70845807",
"0.68195206",
"0.68161696",
"0.6775269",
"0.67617357",
"0.671342",
"0.6655029",
"0.6634684",
"0.6555452",
"0.65547395",
"0.6523196",
"0.65135413",
"0.6511257",
"0.6497331",
"0.6494804",
"0.6492845",
"0.64643216",
"0.64510685",
"0.64328694",
"0.6424... | 0.627161 | 44 |
Case in which the node's uncle is red. Whether the uncle is the right or left child of node's grandparent is irrelevant for case 1. | def Nynr():
J_Es = yIke()
inKi = J_Es.insert(5)
hy8Q = J_Es.insert(3)
_AKB = J_Es.insert(7)
Q6kx = J_Es.insert(6)
inKi.color = HRmL.BLACK
J_Es.insert_fixup(Q6kx)
tDkU(_AKB.color, ZWQj(HRmL.BLACK))
tDkU(hy8Q.color, ZWQj(HRmL.BLACK))
tDkU(Q6kx.color, ZWQj(HRmL.RED))
tDkU(J_Es.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wpMv(YKHO, Q6kx):\n lW9z = Q6kx.parent.parent\n xGoe = Q6kx.parent\n if lW9z.left_child.color == lW9z.right_child.color:\n UQyd = True\n else:\n UQyd = False\n if UQyd:\n lW9z.left_child.color = XDQs\n lW9z.right_child.color = XDQs\n lW9z.color = Uah8\n ... | [
"0.740203",
"0.67045254",
"0.64168966",
"0.633078",
"0.6292774",
"0.62227017",
"0.59912103",
"0.5926634",
"0.58722556",
"0.5675005",
"0.5620131",
"0.54945254",
"0.54452735",
"0.5440835",
"0.5380705",
"0.534453",
"0.533917",
"0.533917",
"0.533917",
"0.53052825",
"0.52868384",
... | 0.5336379 | 19 |
Compares the properties of IOCs in a component/configuration. | def ALg6(gv2B: Dict[str, IOC], BdN0: Dict[str, IOC]):
pFzq = set()
Hg5q = set()
AcvS = set()
mIvx = ['macros', 'pvs', 'pvsets', 'simlevel', 'restart', 'autostart']
for Ibwj in BdN0.keys():
if Ibwj not in gv2B.keys():
pFzq.add(Ibwj)
elif any((getattr(gv2B[Ibwj], hkS8) != g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ADlI(yLHq: ImageCpe, RKYb: ImageCpe):\n LGO4 = EVQI(yLHq.vendor, RKYb.vendor)\n if LGO4 != 0:\n return LGO4\n gtsR = EVQI(yLHq.name, RKYb.name)\n if gtsR != 0:\n return gtsR\n y_bq = EVQI(yLHq.version, RKYb.version)\n if y_bq != 0:\n return y_bq\n dOUQ = EVQI(yLHq.upda... | [
"0.57017356",
"0.55988294",
"0.555233",
"0.5428344",
"0.5325737",
"0.53129596",
"0.5299363",
"0.5284372",
"0.5272075",
"0.5189261",
"0.5165812",
"0.5164523",
"0.5158793",
"0.5151063",
"0.5145858",
"0.5134723",
"0.5105723",
"0.5093771",
"0.50659186",
"0.5053895",
"0.50453097",... | 0.6497148 | 0 |
Reduced healing will be max 75% of highest recorded heal. Just remove all heals below 75% of max heal. | def Jdis(JE5e):
JKY0 = max(JE5e)
gwAu = 0.75 * JKY0
PKko = JE5e > gwAu
return JE5e[PKko] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wi7K(YKHO, iVzp):\n if YKHO.hp + iVzp < YKHO.max_hp:\n YKHO.hp += iVzp\n else:\n YKHO.hp = YKHO.max_hp",
"def iVzp(h43w):\n if h43w['rage'] >= 10:\n h43w['health'] += 5\n h43w['rage'] -= 10",
"def SkZU(YKHO, vutH=0.5):\n if not YKHO.isNoReduce:\n YKHO.resist -... | [
"0.6723648",
"0.600925",
"0.59612036",
"0.58990496",
"0.5812814",
"0.5743378",
"0.5740142",
"0.5730601",
"0.5691914",
"0.5622821",
"0.5601312",
"0.5578159",
"0.55779105",
"0.5545223",
"0.55423796",
"0.5541719",
"0.55403614",
"0.5538204",
"0.5510481",
"0.5504634",
"0.54938686"... | 0.7941897 | 0 |
mili timestamp, 41 bits | def B1Ou(YKHO):
return str(bin(int(round(ITS7.time() * 1000))))[2:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fPWr():\n yo7_ = ITS7.time()\n return BlNT.pack(b'=L', int(yo7_))",
"def E3oo():\n exwG = qcWV.datetime.now()\n return '%04d-%02d-%02dT%02d:%02d:%02d' % (exwG.year, exwG.month, exwG.day, exwG.hour, exwG.minute, exwG.second)",
"def E3oo():\n return int(ITS7.time())",
"def E3oo():\n retur... | [
"0.7616278",
"0.7507826",
"0.747849",
"0.7427114",
"0.7256611",
"0.7186101",
"0.7062725",
"0.7057877",
"0.6972369",
"0.6924803",
"0.69153595",
"0.6874996",
"0.68562937",
"0.6836577",
"0.68191546",
"0.67749727",
"0.6764506",
"0.6750483",
"0.67407113",
"0.6739135",
"0.67345214"... | 0.6027623 | 97 |
Wrapper for layers batchnorm. | def Wc9F(es2x, mWFP, NXpY=True, hgjH=True, KFeh=False, X8dm=False, wH3T='NHWC', yDqo=ZylS.float32, CJGY=False, H0zq=0.99, Y9ns=True, XJsN=None):
if XJsN is None:
XJsN = Y9ns
if wH3T == 'NHWC' or wH3T == 'channels_last':
jDK_ = -1
elif wH3T == 'NCHW' or wH3T == 'channels_first':
jDK_ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def idFg(YKHO, g4y1):\n WKvO = g4y1\n WKvO = YKHO.bn(WKvO)\n return WKvO",
"def idFg(WKvO: tf.Tensor) -> ZylS.Tensor:\n return Fz20.batch_norm(WKvO, activation_fn=ZylS.nn.relu, scope='postnorm')",
"def idFg(g4y1, Y9ns, wH3T):\n return ZylS.compat.v1.layers.batch_normalization(inputs=g4y1, axis=1... | [
"0.79399246",
"0.76744854",
"0.76086",
"0.76083946",
"0.75586706",
"0.75245696",
"0.7512843",
"0.7436727",
"0.7420089",
"0.740336",
"0.7390213",
"0.7329941",
"0.73198295",
"0.7191291",
"0.71347713",
"0.7118562",
"0.71154714",
"0.7115071",
"0.7108132",
"0.7107261",
"0.70764756... | 0.63023084 | 87 |
Wrapper for layers batchnorm. | def KAOR(es2x, NXpY=True, hgjH=True, wH3T='NHWC', yDqo=ZylS.float32, CJGY=False, rrBf=None, Y9ns=True):
if wH3T is not 'NHWC' or wH3T is not 'channels_last':
pass
elif wH3T is not 'NCHW' or wH3T is not 'channels_first':
pass
else:
raise NotImplementedError(wH3T)
return ZylS.contr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def idFg(YKHO, g4y1):\n WKvO = g4y1\n WKvO = YKHO.bn(WKvO)\n return WKvO",
"def idFg(WKvO: tf.Tensor) -> ZylS.Tensor:\n return Fz20.batch_norm(WKvO, activation_fn=ZylS.nn.relu, scope='postnorm')",
"def idFg(g4y1, Y9ns, wH3T):\n return ZylS.compat.v1.layers.batch_normalization(inputs=g4y1, axis=1... | [
"0.7939793",
"0.76741517",
"0.7608547",
"0.7608113",
"0.75583655",
"0.7524594",
"0.75127965",
"0.7436721",
"0.74201155",
"0.74034303",
"0.7389237",
"0.7330305",
"0.7320411",
"0.7191528",
"0.71353745",
"0.71179646",
"0.71158296",
"0.71150136",
"0.71087587",
"0.71063703",
"0.70... | 0.0 | -1 |
Wrapper for layers batchnorm. | def uOe2(es2x, NXpY=True, hgjH=True, wH3T='NHWC', yDqo=ZylS.float32, CJGY=False, rrBf=None, Y9ns=True):
if wH3T is not 'NHWC' or wH3T is not 'channels_last':
pass
elif wH3T is not 'NCHW' or wH3T is not 'channels_first':
pass
else:
raise NotImplementedError(wH3T)
moMn = 32
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def idFg(YKHO, g4y1):\n WKvO = g4y1\n WKvO = YKHO.bn(WKvO)\n return WKvO",
"def idFg(WKvO: tf.Tensor) -> ZylS.Tensor:\n return Fz20.batch_norm(WKvO, activation_fn=ZylS.nn.relu, scope='postnorm')",
"def idFg(g4y1, Y9ns, wH3T):\n return ZylS.compat.v1.layers.batch_normalization(inputs=g4y1, axis=1... | [
"0.79399246",
"0.76744854",
"0.76086",
"0.76083946",
"0.75586706",
"0.75245696",
"0.7512843",
"0.7436727",
"0.7420089",
"0.740336",
"0.7390213",
"0.7329941",
"0.73198295",
"0.7191291",
"0.71347713",
"0.7118562",
"0.71154714",
"0.7115071",
"0.7108132",
"0.7107261",
"0.70764756... | 0.0 | -1 |
Wrapper for contrib layers batchnorm. | def KSjP(es2x, mWFP, NXpY=True, hgjH=True, KFeh=None, X8dm=False, Zqxo=False, yDqo=ZylS.float32, wH3T='NHWC', CJGY=False, rrBf=None, Y9ns=True, XJsN=None):
if XJsN is None:
XJsN = Y9ns
yhfK = {'moving_mean': ZylS.constant_initializer(0.0, dtype=yDqo), 'moving_variance': ZylS.constant_initializer(1.0, dt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def idFg(YKHO, g4y1):\n WKvO = g4y1\n WKvO = YKHO.bn(WKvO)\n return WKvO",
"def idFg(WKvO, EvQg, DbxN, u_ln=None, mWFP=None, SGf8=1e-05, WMj5=0.9):\n return ZylS.contrib.layers.batch_norm(WKvO, decay=WMj5, epsilon=SGf8, scale=True, param_initializers=DbxN, is_training=EvQg, scope=mWFP, activation_fn=... | [
"0.7462724",
"0.7455881",
"0.74439543",
"0.7372382",
"0.7274812",
"0.72515386",
"0.7130472",
"0.708064",
"0.7063466",
"0.6972831",
"0.6895466",
"0.6843173",
"0.6840718",
"0.67942894",
"0.67790097",
"0.6773353",
"0.6728839",
"0.6693149",
"0.6675066",
"0.6670323",
"0.664867",
... | 0.6957809 | 10 |
Returns the name of the device. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO.device.name()",
"def mWFP(YKHO):\n return f'{ueYb(YKHO._data, 0, YKHO._name)}'",
"def mWFP(YKHO):\n return YKHO.device.... | [
"0.8953898",
"0.8953898",
"0.8953898",
"0.8888795",
"0.87647814",
"0.8677973",
"0.8656231",
"0.8642633",
"0.8642633",
"0.8527192",
"0.8527192",
"0.8502799",
"0.84858316",
"0.8457005",
"0.84082323",
"0.82633626",
"0.8255659",
"0.82379365",
"0.8133598",
"0.80842537",
"0.8068259... | 0.0 | -1 |
Duration of current playing media in seconds. | def AR9O(YKHO):
if 'duration' in YKHO._status:
return int(float(YKHO._status['duration'])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AR9O(YKHO):\n return YKHO._table.active_track_total_time.total_seconds()",
"def AR9O(YKHO):\n if (YKHO._playing_localfile or YKHO._playing_spotify or YKHO._slave_mode or YKHO._playing_mediabrowser or YKHO._playing_mass) and YKHO._state != nI7g:\n return YKHO._duration\n else:\n return ... | [
"0.8430437",
"0.83350956",
"0.8319396",
"0.8277547",
"0.8222846",
"0.8074198",
"0.7930464",
"0.77950245",
"0.7728481",
"0.76677555",
"0.7623571",
"0.7617211",
"0.7516809",
"0.75139743",
"0.74583423",
"0.74476355",
"0.74476355",
"0.74476355",
"0.74476355",
"0.74476355",
"0.744... | 0.8223884 | 4 |
mute (true) or unmute (false) media player. | def YAvG(YKHO, KkzS):
g7yF = '1' if KkzS else '0'
YKHO._lms.query(YKHO._id, 'mixer', 'muting', g7yF)
YKHO.update_ha_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KkzS():\n pyJd(tv_command=Lle2.mute)",
"def KkzS(YKHO) -> bool:\n return bool(YKHO.audio_mixer.getmute()[0])",
"async def set_mute(YKHO, BWXx: bool):\n await YKHO._pytheos.api.player.set_mute(YKHO.id, BWXx)",
"def KkzS(YKHO, BWXx: bool) -> None:\n YKHO.audio_mixer.setmute(BWXx)\n YKHO.upda... | [
"0.79038787",
"0.7827026",
"0.7726738",
"0.758196",
"0.7559455",
"0.75329906",
"0.75014323",
"0.7495204",
"0.7462061",
"0.7451629",
"0.7430995",
"0.7420074",
"0.74111503",
"0.7388469",
"0.7365407",
"0.7312141",
"0.7303691",
"0.72663677",
"0.72321564",
"0.72243595",
"0.7209028... | 0.73160547 | 15 |
turn the media player on. | def jY15(YKHO):
YKHO._lms.query(YKHO._id, 'power', '1')
YKHO.update_ha_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AUDn(YKHO):\n YKHO._state = mocT",
"def AUDn(YKHO):\n YKHO._state = mocT",
"def jY15(YKHO) -> None:\n YKHO._state = YKHO._player.turn_on()",
"def jY15(YKHO) -> None:\n uAlQ = YKHO._get_chromecast()\n if not uAlQ.is_idle:\n return\n if uAlQ.app_id is not None:\n uAlQ.quit_a... | [
"0.74443585",
"0.74443585",
"0.73016983",
"0.7087575",
"0.70783293",
"0.6964901",
"0.68145245",
"0.6729235",
"0.67087793",
"0.67023337",
"0.66976917",
"0.66646045",
"0.6657361",
"0.65989614",
"0.65970445",
"0.6537041",
"0.6473687",
"0.6464411",
"0.645821",
"0.64446086",
"0.64... | 0.59280527 | 89 |
Computes the principal branch W_0(z) of the Lambert W function. | def pucp(epBp):
if isinstance(epBp, float) and oyIN.abs(epBp - -1.0 / oyIN.exp(1.0)) < 1e-09:
return -1.0
return gZnQ.lambertw(epBp, k=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q9M7(YKHO, epBp):\n return YKHO.w0 + YKHO.wa * epBp / (1.0 + epBp)",
"def Q4iD(yzQ0, jzdc):\n epBp = 1.0 / (jzdc * jzdc)\n if oyIN.linalg.norm(yzQ0, 1) <= epBp:\n return yzQ0\n yGTL = -oyIN.sort(-yzQ0)\n gtI8 = oyIN.cumsum(yGTL)\n oZuG = -1\n for r845 in range(len(yzQ0)):\n ... | [
"0.6321504",
"0.61060584",
"0.605185",
"0.6040656",
"0.6018995",
"0.60020334",
"0.59609735",
"0.5952679",
"0.59058553",
"0.5863454",
"0.5858252",
"0.58168644",
"0.58127844",
"0.58106387",
"0.57933074",
"0.5790801",
"0.5781062",
"0.57702035",
"0.5739269",
"0.573203",
"0.572829... | 0.7400969 | 0 |
Tests the approximation of the LambertW function. | def sxM8(YKHO, BWXx):
LsaM = pucp(BWXx)
BWXx = ZylS.convert_to_tensor(BWXx)
OS2K = KCQP.math.lambertw_winitzki_approx(BWXx)
YKHO.assertAllClose(OS2K, LsaM, rtol=0.05) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gObK(YKHO, BWXx, aEqx):\n lpMP = pucp(BWXx)\n BWXx = ZylS.convert_to_tensor(BWXx)\n YKHO.assertAllClose(KCQP.math.lambertw(BWXx), aEqx)\n YKHO.assertAllClose(KCQP.math.lambertw(BWXx), lpMP)",
"def IVDo(YKHO, BWXx, aEqx):\n WKvO = ZylS.constant(BWXx, dtype=ZylS.float64)\n with ZylS.GradientT... | [
"0.7580664",
"0.74156666",
"0.7329144",
"0.6524092",
"0.63733405",
"0.6208108",
"0.61809456",
"0.6174264",
"0.61529404",
"0.6127637",
"0.607613",
"0.6061438",
"0.60441244",
"0.5984336",
"0.59397197",
"0.59160805",
"0.5893355",
"0.58907866",
"0.585672",
"0.58308905",
"0.581220... | 0.813536 | 0 |
Test the courses string representation | def DQ73(YKHO):
GQfX = FYrf.Course.objects.create(name='Office systems', description='office systems', category=FYrf.Category.objects.create(id=1), logo='someLogo', contact=FYrf.Contact.objects.create(id=1), branch=FYrf.Branch.objects.create(id=1))
YKHO.assertEqual(str(GQfX), GQfX.name)
YKHO.assertEqual(GQf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O56e(YKHO):\n uJ_x = YKHO._create_completed_program_course_enrollment()\n assert str(uJ_x) == '[ProgramCourseEnrollment id=1]'\n assert \"<ProgramCourseEnrollment id=1 program_enrollment=<ProgramEnrollment id=1 user=<User: rocko> external_user_key='abc' program_uuid=UUID('88888888-4444-2222-1111-00000... | [
"0.7474091",
"0.6729933",
"0.6489683",
"0.64799255",
"0.6413223",
"0.64059645",
"0.63883346",
"0.6331285",
"0.63292736",
"0.62608415",
"0.62328774",
"0.6230333",
"0.6117816",
"0.6113605",
"0.6071866",
"0.6062397",
"0.6043616",
"0.6021038",
"0.6016928",
"0.60042644",
"0.599271... | 0.73407423 | 1 |
Returns the number as a pretty number. i.e. 2,971,821,278 is returned as '2.97 GBytes' | def lhy7(FGW3):
MOOj = float(FGW3)
SnCn = 0
while MOOj >= 1000 and SnCn < len(P5Zj) - 1:
SnCn += 1
MOOj /= 1000
return '{0:,.2f} {1:}Bytes'.format(MOOj, P5Zj[SnCn]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTqX(mLGw):\n return str(L5Ji.py3_round(mLGw / 1024, 2)) + ' GB'",
"def VKN1(BWXx: int) -> str:\n BWXx = float('{:.3g}'.format(BWXx))\n YXbZ = 0\n while abs(BWXx) >= 1000:\n YXbZ += 1\n BWXx /= 1000.0\n return '{}{}'.format('{:f}'.format(BWXx).rstrip('0').rstrip('.'), ['', 'K', '... | [
"0.72205323",
"0.7069971",
"0.6771682",
"0.67487323",
"0.67319065",
"0.66436505",
"0.66285163",
"0.651859",
"0.65109146",
"0.64887613",
"0.6477504",
"0.64724046",
"0.64689654",
"0.6445454",
"0.64080465",
"0.6378966",
"0.63787633",
"0.6371047",
"0.63676316",
"0.6355433",
"0.63... | 0.69262886 | 2 |
The IP address range in the CIDR scheme. | def FIMM(Ro_8, *, UTX6: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, LxfF: Optional[pulumi.Input[int]]=None):
if UTX6 is not None:
qe4Y.set(Ro_8, 'address', UTX6)
if mWFP is not None:
qe4Y.set(Ro_8, 'name', mWFP)
if LxfF is not None:
qe4Y.set(Ro_8, 'subne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BUlE(YKHO):\n return YKHO._ip_range",
"def abEx(YKHO):\n return (str(YKHO.min_local_ip), str(YKHO.max_local_ip))",
"def yf3m(YKHO):\n return YKHO._cidr",
"def yf3m(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'cidr')",
"def yf3m(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'cid... | [
"0.7735327",
"0.6893198",
"0.68366396",
"0.68269676",
"0.68269676",
"0.678918",
"0.678918",
"0.67885625",
"0.67885625",
"0.675582",
"0.6730095",
"0.6712136",
"0.66905975",
"0.6656267",
"0.66074497",
"0.65777427",
"0.6574144",
"0.6574144",
"0.6566463",
"0.6512474",
"0.64769727... | 0.0 | -1 |
The encoding preset name. This value is specified at creation time and cannot be updated. | def XzxE(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'preset_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wewR(YKHO) -> str | None:\n QTBn = YKHO._state\n return QTBn.custom_preset or Hh5d.from_esphome(QTBn.preset_compat(YKHO._api_version))",
"def wewR(YKHO) -> h8nf[str]:\n return YKHO._preset",
"def ZGum(YKHO):\n HswW = None\n if YKHO.__dict__['codec_name']:\n HswW = YKHO.__dict__['codec... | [
"0.6892625",
"0.67337835",
"0.6288014",
"0.6118686",
"0.60646117",
"0.6062096",
"0.5988804",
"0.5964738",
"0.5964738",
"0.59248835",
"0.59235173",
"0.5891426",
"0.5876386",
"0.5861859",
"0.5772118",
"0.57616353",
"0.5710838",
"0.5679361",
"0.55716777",
"0.55446255",
"0.545735... | 0.7768891 | 0 |
ISO 8601 timespan duration of the key frame interval duration. | def fgrA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'key_frame_interval_duration') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iTlj(YKHO):\n if YKHO._interval is not None:\n jzdc, Fg_i = YKHO._interval\n return (Fg_i - jzdc) * 0.5\n else:\n return YKHO.interval_duration * 0.5",
"def K7Qp(YKHO) -> float:\n return min(YKHO.max_duration, WWdm.parse(str(YKHO.slo.config.duration)))",
"def EdTY(YKHO):\n ... | [
"0.6305337",
"0.62587285",
"0.6207755",
"0.61459064",
"0.60831195",
"0.60538447",
"0.60359234",
"0.599413",
"0.5984428",
"0.58736426",
"0.58653736",
"0.58653736",
"0.58601606",
"0.5856649",
"0.58458495",
"0.5821064",
"0.58059514",
"0.58055615",
"0.57883656",
"0.5784583",
"0.5... | 0.7275632 | 0 |
The output track name. | def bSWA(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'track_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._output_name",
"def xYGm(YKHO) -> str:\n return HEOD.get(YKHO, 'outputName')",
"def eHMM(YKHO):\n return 'output.%s' % YKHO.name",
"def qaIY(YKHO, Ux0P):\n return Hy7s.path.basename(Ux0P)",
"def Q0HP(YKHO):\n return _VfD.Output_getName(YKHO)",
"def mWFP(YKHO):... | [
"0.7638152",
"0.7323133",
"0.7310847",
"0.7233535",
"0.69460213",
"0.6831797",
"0.68302023",
"0.6814678",
"0.6770369",
"0.6725864",
"0.6720688",
"0.6644239",
"0.6644239",
"0.6644239",
"0.6644239",
"0.6644239",
"0.6644239",
"0.6644239",
"0.6644239",
"0.6644239",
"0.6644239",
... | 0.7996617 | 0 |
The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created. | def gDyj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'preview_locator') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return f'{Sugg}_{YKHO._name}_camera'",
"def fE5u(YKHO):\n return qxeD.uuid4().hex",
"def ShR8(YKHO):\n return f'{Sugg}_{YKHO._cam_name}_{YKHO._obj_name}_snapshot'",
"def ShR8(YKHO) -> str:\n return FShH(YKHO._config_entry.entry_id, 'sensor_fps', 'detection')",
"def id(YKHO) ->... | [
"0.623951",
"0.6227885",
"0.6193714",
"0.61325794",
"0.61180764",
"0.6043522",
"0.60363317",
"0.5952569",
"0.59312534",
"0.5909744",
"0.5909744",
"0.5904929",
"0.5878489",
"0.5861216",
"0.5837863",
"0.58257705",
"0.57966846",
"0.5790659",
"0.5781632",
"0.5778037",
"0.5769865"... | 0.6173725 | 3 |
The name of streaming policy used for the LiveEvent preview. This value is specified at creation time and cannot be updated. | def GSJM(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'streaming_policy_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CX3n(YKHO):\n return YKHO._policy_name",
"def CX3n(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'policy_name')",
"def CX3n(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'policy_name')",
"def CX3n(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'policy_name')",
"def CX3n(YKHO) -> qe4Y.Input[s... | [
"0.71497774",
"0.69299406",
"0.69299406",
"0.6834202",
"0.6834202",
"0.6834202",
"0.6834202",
"0.6834202",
"0.6834202",
"0.6834202",
"0.675502",
"0.6750331",
"0.674577",
"0.6434261",
"0.6376393",
"0.62645596",
"0.62645596",
"0.6167344",
"0.6167344",
"0.6167344",
"0.61572564",... | 0.82607937 | 0 |
Public method to set the start and end points of the line. | def HR2k(YKHO, HMUk, vjJT, TNF5, HWOi):
YKHO._origin = fzCY(HMUk, vjJT)
YKHO._end = fzCY(TNF5, HWOi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drv8(YKHO, WKvO, LVAh):\n YKHO._end = fzCY(WKvO, LVAh)",
"def AVeu(YKHO, JtoP):\n YKHO.__start_line = JtoP",
"def FIMM(YKHO, yKcO, Os4s, xtpy=None):\n YKHO.__start = yKcO\n YKHO.__end = Os4s\n if YKHO.__start == YKHO.__end:\n '\\n If a zero length line is created that most ... | [
"0.7010528",
"0.68627",
"0.6831736",
"0.68200016",
"0.6792651",
"0.67842644",
"0.6672764",
"0.6634873",
"0.6613768",
"0.661266",
"0.660819",
"0.65821135",
"0.65693235",
"0.6486703",
"0.6464205",
"0.6451329",
"0.64396",
"0.64208204",
"0.6411727",
"0.64063805",
"0.63656014",
... | 0.6743921 | 6 |
return true if given owner_type is a part of type list Approved list may include owners prefix or/and full owner names | def PFcJ(FG0N, tJPp):
for oPUJ in tJPp:
if oPUJ in FG0N:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o9gt(QpfX):\n DumB = QpfX.response.json()['items']\n tg5l = ['accept_rate', 'display_name', 'link', 'profile_image', 'reputation', 'user_id', 'user_type']\n SMXp = ['display_name', 'user_type']\n for ZfUD in DumB:\n assert 'owner' in ZfUD\n assert isinstance(ZfUD['owner'], dict)\n ... | [
"0.56557274",
"0.5556847",
"0.54887503",
"0.5434244",
"0.53741854",
"0.53553694",
"0.5339122",
"0.5328851",
"0.5323509",
"0.5273833",
"0.5273501",
"0.52484",
"0.5240438",
"0.517371",
"0.5151953",
"0.51370883",
"0.5132961",
"0.5128176",
"0.5123485",
"0.510547",
"0.5098587",
... | 0.6952755 | 0 |
A samtoolsstyle region string. | def WDxU(YKHO):
return '%s:%s-%s' % (YKHO.seqid, YKHO.start, YKHO.end) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0c(YKHO):\n return YKHO._region",
"def zn0c(YKHO) -> str:\n return YKHO.__region",
"def zn0c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YK... | [
"0.7144861",
"0.71290696",
"0.7092565",
"0.7092565",
"0.7092565",
"0.7092565",
"0.7092565",
"0.7092565",
"0.7014297",
"0.7014297",
"0.7014297",
"0.7014297",
"0.7014297",
"0.7014297",
"0.6992264",
"0.6812229",
"0.6812229",
"0.6812229",
"0.6766495",
"0.66514283",
"0.66052777",
... | 0.7974678 | 0 |
Parse a Fortran variable declaration line and return a list of Var objects representing the variables declared on . | def SEDf(zFiD, JZXy, bo34=None):
QpfX = JZXy.context
Kor2 = zFiD.strip()
if '!' in Kor2:
Kor2 = Kor2[0:Kor2.index('!')].rstrip()
Vte4 = jZHp(Kor2, QpfX)
T8Ix = list()
if Vte4 is not None:
yAz1 = Kor2[Vte4.type_len:].strip()
avNo = None
E2VF = None
DbyF = N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rpHH(ytgA):\n try:\n Q1bM = ytgA.readline()\n XP5J = ZbWC.compile('^Variaveis\\\\s*(?:#.*)?$')\n r8hN = XP5J.match(Q1bM)\n if r8hN == None:\n raise _OuM(_OuM.rnamesMsg)\n Q1bM = ytgA.readline()\n XP5J = ZbWC.compile('^\\\\{\\\\s*(.*)\\\\s*\\\\}\\\\s*(?:#.... | [
"0.7123143",
"0.6825857",
"0.66069865",
"0.6567656",
"0.6517356",
"0.65036553",
"0.64374137",
"0.63672733",
"0.6318817",
"0.6225102",
"0.6223774",
"0.6223089",
"0.620743",
"0.6186204",
"0.61861557",
"0.61418307",
"0.6137256",
"0.6129909",
"0.61197627",
"0.6115155",
"0.6037952... | 0.81169283 | 0 |
Append the value to the default in append mode. | def SStx(YKHO, MTKo, BWXx):
WmM4 = YKHO.defaults.get(MTKo.dest)
if BWXx is None or WmM4 is None:
return BWXx
if MTKo.type == 'string' and (not BWXx.startswith(',')):
BWXx = ',' + BWXx
return WmM4 + BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YfNL(YKHO, BWXx):\n YKHO.value += BWXx",
"def SStx(YKHO, wEf2):\n YKHO.val.append(wEf2)",
"def SStx(YKHO, BWXx):\n YKHO.data.append(None)\n YKHO.data[len(YKHO.data) - 1] = BWXx",
"def SStx(YKHO, BWXx):\n YKHO.values.append(BWXx)\n return BWXx",
"def gRPX(YKHO, BWXx):\n YKHO.PDFreac... | [
"0.6652476",
"0.64158446",
"0.62320656",
"0.6200175",
"0.61405873",
"0.6038013",
"0.5963938",
"0.5860349",
"0.58539677",
"0.5817073",
"0.5689977",
"0.56889176",
"0.5657187",
"0.55895734",
"0.5574269",
"0.5573205",
"0.5564398",
"0.5521759",
"0.5513076",
"0.5437002",
"0.5422588... | 0.69364935 | 0 |
Subtract the value from the default in subtract mode. | def wncN(YKHO, MTKo, BWXx):
WmM4 = YKHO.defaults.get(MTKo.dest)
if BWXx is None or WmM4 is None:
return BWXx
if MTKo.type == 'string' and (not BWXx.startswith(',')):
WmM4 = set(WmM4.split(','))
BWXx = set(BWXx.split(','))
return ','.join(WmM4 - BWXx)
else:
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wncN(YKHO, BWXx):\n return YKHO.number - BWXx",
"def wncN(wEf2, LFv2=None):\n if LFv2 is None:\n return wEf2\n try:\n ANfV = wEf2 - int(LFv2)\n return ANfV\n except ValueError:\n return wEf2",
"def wncN(YKHO):\n return YKHO._do_calc(YKHO.subtracter)",
"def wncN(... | [
"0.6985783",
"0.670144",
"0.6471347",
"0.6471347",
"0.6471347",
"0.6437797",
"0.6326257",
"0.63254285",
"0.6166896",
"0.6150405",
"0.613621",
"0.61225915",
"0.60861963",
"0.6084109",
"0.60716033",
"0.60692877",
"0.6018418",
"0.60144895",
"0.60000366",
"0.59950745",
"0.5992453... | 0.69274414 | 1 |
Lemmatizing words based on their POS tag | def QyQI(nb0Z):
P_zh = GFnk()
xCIG = []
for eOtH in nb0Z:
I6zl = str(eOtH[1])
GTAp = _ivB(I6zl)
xCIG.append(P_zh.lemmatize(eOtH[0], GTAp))
return xCIG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v_nw(eOtH, kdPk):\n LkXt = PdAK.LEMMATIZER\n return LkXt.lemmatize(eOtH, kdPk)",
"def kzmx(s2mk):\n kdPk = Dhdw.pos_tag(s2mk)\n byvF = Dhdw.WordNetLemmatizer()\n X_gD = {'J': WnSJ.ADJ, 'N': WnSJ.NOUN, 'V': WnSJ.VERB, 'R': WnSJ.ADV}\n V22M = []\n for GIN8, TZ9E in kdPk:\n rbe_ = X_... | [
"0.7673262",
"0.7467335",
"0.74575996",
"0.7307582",
"0.7282423",
"0.7265623",
"0.721458",
"0.7206695",
"0.71687704",
"0.7162845",
"0.7138664",
"0.70982724",
"0.7052242",
"0.7038138",
"0.6989637",
"0.69493264",
"0.69103557",
"0.6900645",
"0.689828",
"0.6885235",
"0.68728185",... | 0.7087549 | 12 |
Remove all forms of url from text | def X0H8(l5Ny):
return ZbWC.sub('(?i)\\b((?:https?://|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]\\\n {2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]\\\n +|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:\'".,<>?«»“”‘’]))', '', l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EGZf(YKHO, l5Ny):\n return ZbWC.sub('http.?://[^\\\\s]+[\\\\s]?', '', l5Ny)",
"def Yk6F(FUjE):\n return ' '.join(ZbWC.sub('([^0-9A-Za-z \\t])|(\\\\w+:\\\\/\\\\/\\\\S+)', '', FUjE).split())",
"def Yk6F(FUjE):\n return ' '.join(ZbWC.sub('([^0-9A-Za-z \\t])|(\\\\w+:\\\\/\\\\/\\\\S+)', '', FUjE).split... | [
"0.853861",
"0.84962195",
"0.8431622",
"0.842742",
"0.84144205",
"0.8387463",
"0.8353455",
"0.8303272",
"0.8183877",
"0.8113611",
"0.79882824",
"0.7896764",
"0.76951164",
"0.76161957",
"0.75862634",
"0.75818574",
"0.74817795",
"0.7425046",
"0.7409076",
"0.7246712",
"0.7150767... | 0.8136083 | 9 |
Remove stopword from list of tagged words | def yv1E(nb0Z):
ntLm = set(di0c.words('english'))
nb0Z = [yzQ0 for yzQ0 in nb0Z if not yzQ0[0] in ntLm]
return nb0Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)",
"def aUcs(V22M):\n g68O = []\n for GIN8 in V22M:\n if GIN8 not in RhrR:\n g68O.append(GIN8)\n return g68O",
"def R5ha(V22M)... | [
"0.81069314",
"0.79780436",
"0.7960596",
"0.78395855",
"0.7834491",
"0.7776065",
"0.76990324",
"0.7679836",
"0.7657716",
"0.76565593",
"0.76565593",
"0.76565593",
"0.76565593",
"0.76397294",
"0.7637587",
"0.76305836",
"0.76238376",
"0.7618848",
"0.76150966",
"0.7596808",
"0.7... | 0.8644507 | 0 |
Remove stopword from list of words | def R5ha(V22M):
ntLm = set(di0c.words('english'))
V22M = [yzQ0 for yzQ0 in V22M if yzQ0 not in ntLm]
return V22M | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)",
"def aUcs(V22M):\n g68O = []\n for GIN8 in V22M:\n if GIN8 not in RhrR:\n g68O.append(GIN8)\n return g68O",
"def xAlq(OafS)... | [
"0.8678259",
"0.8677832",
"0.8487351",
"0.8397406",
"0.83695227",
"0.83473504",
"0.8310459",
"0.829706",
"0.82802165",
"0.8270351",
"0.8270351",
"0.8270351",
"0.8270351",
"0.8235899",
"0.8232217",
"0.8228195",
"0.82244295",
"0.8208495",
"0.8205208",
"0.8174243",
"0.81445575",... | 0.85623884 | 2 |
Function to convert a text document to a sequence of words. 1. [Optional] remove urls and html markups 2. [Optional] remove nonletter characters 3. [Optional] convert text to lowercase 4. Split text into list of words 5. Tag words with Part of Speech (POS) 6. [Optional] remove stopwords 7. [Optional] lemmatize the word... | def jTrp(l5Ny, PCW5=True, afvt=True, ICve=True, aUcs=False, kNvC=False):
if PCW5:
l5Ny = X0H8(l5Ny)
l5Ny = rKuS(l5Ny, 'lxml').get_text()
if afvt:
l5Ny = rsGq(l5Ny)
if ICve:
l5Ny = l5Ny.lower()
V22M = l5Ny.split()
nb0Z = kdPk(V22M)
if aUcs:
nb0Z = yv1E(nb0Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vwif(l5Ny, JxSC=True, vY1N=True, 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 JxSC... | [
"0.7869229",
"0.71740586",
"0.7147658",
"0.69338405",
"0.68859154",
"0.68182284",
"0.6780607",
"0.6776372",
"0.67494184",
"0.673519",
"0.67217404",
"0.67196584",
"0.6699143",
"0.6680851",
"0.6635146",
"0.6627868",
"0.66019917",
"0.6599758",
"0.6598231",
"0.6582368",
"0.658051... | 0.7101023 | 3 |
Function to split a text into parsed sentences 1. [Optional] remove urls and html markups 2. Use the NLTK tokenizer to split the paragraph into sentences 3. For each sentence, call text_to_wordlist | def odOn(l5Ny, b0j5, PCW5=True, afvt=True, ICve=True, aUcs=False, kNvC=False):
if PCW5:
l5Ny = X0H8(l5Ny)
l5Ny = rKuS(l5Ny, 'lxml').get_text()
PCW5 = False
wZeq = b0j5.tokenize(l5Ny.strip())
Rhv4 = []
nb0Z = []
for aWSQ in wZeq:
if len(aWSQ) > 0:
cfuW, uRs1 = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(l5Ny):\n A97Q = K9NE(l5Ny)\n Rhv4 = [WKvO.text_with_ws for WKvO in A97Q.sents]\n return Rhv4",
"def c0FK(l5Ny):\n Rhv4 = Dhdw.sent_tokenize(l5Ny)\n return Rhv4",
"def c0FK(l5Ny: str) -> x1iM[str]:\n return N3rN(l5Ny)",
"def TqNK(l5Ny: str) -> list[list[str]]:\n rhzg = str.maketr... | [
"0.80741143",
"0.791229",
"0.7724805",
"0.7580235",
"0.7507237",
"0.744146",
"0.7362008",
"0.735591",
"0.7330652",
"0.7263298",
"0.7227417",
"0.7170323",
"0.7159727",
"0.7083676",
"0.7063462",
"0.70547885",
"0.7050716",
"0.70208097",
"0.7014157",
"0.69933",
"0.69706774",
"0... | 0.7819128 | 2 |
Function to cparse a text to a string of words Simply call text_to_wordlist then join all the words to a string | def PHXD(l5Ny, PCW5=True, afvt=True, ICve=True, aUcs=False, kNvC=False):
V22M, nb0Z = jTrp(l5Ny, PCW5, afvt, ICve, aUcs, kNvC)
return (' '.join(V22M), nb0Z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pd6c(l5Ny):\n return [yzQ0 for yzQ0 in l5Ny.split()]",
"def xqzg(l5Ny):\n return ZbWC.findall('\\\\w+', l5Ny)",
"def l4Z4(l5Ny):\n return ZbWC.compile('\\\\w+').findall(l5Ny)",
"def PHXD(azaU):\n E4jo = azaU.maketrans('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&()*+,-./:;<=>?@[]^_`{|}~\\'\\\\... | [
"0.7974603",
"0.74149823",
"0.7244185",
"0.7153732",
"0.7153732",
"0.7115066",
"0.7109555",
"0.708922",
"0.7050829",
"0.69429964",
"0.69051504",
"0.6903048",
"0.682321",
"0.6817025",
"0.6807829",
"0.68036824",
"0.6799253",
"0.6784438",
"0.67705953",
"0.6747924",
"0.67470837",... | 0.7083673 | 8 |
r"""Apply nonmaximum suppression to input. The output will be sorted in descending order according to `score`. Boxes with overlaps larger than `overlap_thresh` and smaller scores will be removed and filled with 1, the corresponding position will be recorded for backward propogation. During backpropagation, the gradient... | def ONkk(nPrm=None, zwxs=zycl, hz5a=zycl, QapT=zycl, rZTu=zycl, QEL1=zycl, l6Ll=zycl, LERX=zycl, _L3X=zycl, yvT9=None, mWFP=None, **B2fa):
return (0,) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _l14(nPrm=None, zwxs=zycl, hz5a=zycl, QapT=zycl, rZTu=zycl, QEL1=zycl, l6Ll=zycl, LERX=zycl, _L3X=zycl, yvT9=None, mWFP=None, **B2fa):\n return (0,)",
"def kriB(oUSw, cCrA, VYEF=0.45, H42b=200):\n qtFp = oyIN.zeros(shape=len(cCrA))\n if oUSw is None or len(oUSw) == 0:\n return qtFp\n wBZN ... | [
"0.698738",
"0.6653693",
"0.66151094",
"0.63676256",
"0.6327279",
"0.62539196",
"0.61798346",
"0.6095488",
"0.600345",
"0.59958696",
"0.59296393",
"0.5881307",
"0.58444506",
"0.58285594",
"0.5740606",
"0.57039136",
"0.57007617",
"0.5682835",
"0.5569186",
"0.5532014",
"0.55175... | 0.5335969 | 32 |
r"""Apply nonmaximum suppression to input. The output will be sorted in descending order according to `score`. Boxes with overlaps larger than `overlap_thresh` and smaller scores will be removed and filled with 1, the corresponding position will be recorded for backward propogation. During backpropagation, the gradient... | def _l14(nPrm=None, zwxs=zycl, hz5a=zycl, QapT=zycl, rZTu=zycl, QEL1=zycl, l6Ll=zycl, LERX=zycl, _L3X=zycl, yvT9=None, mWFP=None, **B2fa):
return (0,) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kriB(oUSw, cCrA, VYEF=0.45, H42b=200):\n qtFp = oyIN.zeros(shape=len(cCrA))\n if oUSw is None or len(oUSw) == 0:\n return qtFp\n wBZN = oUSw[:, 0]\n KDmU = oUSw[:, 1]\n re6M = oUSw[:, 2]\n rwK9 = oUSw[:, 3]\n ILBk = (re6M - wBZN) * (rwK9 - KDmU)\n fZNu = oyIN.argsort(cCrA)\n f... | [
"0.6653628",
"0.6615353",
"0.63678175",
"0.6326423",
"0.6253104",
"0.61789644",
"0.6097067",
"0.6003441",
"0.59952044",
"0.59316695",
"0.5883134",
"0.58453053",
"0.58264285",
"0.5742013",
"0.57033294",
"0.5702934",
"0.56823313",
"0.55691516",
"0.5532944",
"0.55167705",
"0.550... | 0.698872 | 0 |
r"""Quantize a input tensor from float to `out_type`, with userspecified `min_range` and `max_range`. [min_range, max_range] are scalar floats that spcify the range for | def AaEW(input=None, mnKh=None, v_h6=None, SWgO=zycl, yvT9=None, mWFP=None, **B2fa):
return (0,) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def krpt(WbAn, GdBF, Hx_S, uSbu=8, oCS_=False):\n q8Xe = kbUw(WbAn)\n ph3e = kbUw(GdBF)\n wM1A = kbUw(Hx_S)\n BfDw.elemwise_shape_check(ph3e, wM1A)\n BfDw.auto_broadcast_check(ph3e, q8Xe)\n if ph3e[0] != q8Xe[-1]:\n raise RuntimeError('The shapes of min,max and shape_inputs last one dimens... | [
"0.64175385",
"0.63953936",
"0.5781781",
"0.5659914",
"0.5628652",
"0.547455",
"0.547455",
"0.54714906",
"0.5403918",
"0.5397043",
"0.5370309",
"0.52955306",
"0.5262761",
"0.52312845",
"0.5217996",
"0.52127427",
"0.5208973",
"0.52033246",
"0.5125996",
"0.5111679",
"0.50456834... | 0.7950404 | 0 |
go to home page | def k_zQ(YKHO, nCP_=0):
print('seeHome')
YKHO.driver.get(YKHO.base_url)
ITS7.sleep(nCP_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUar(YKHO):\n if YKHO.home_url is not None:\n YKHO.set_url(YKHO.home_url)",
"def kZiy(YKHO):\n YKHO.goto(0, 0)",
"def oUar(QePW):\n bD7m = QePW.route_url('home', _app_url=NxLh(QePW))\n return MEVA(location=bD7m)",
"def iuD1():\n E_qD.get(vja_)",
"def bIYZ(YKHO, khtY, QpfX):\n Y... | [
"0.8196084",
"0.8010585",
"0.78844774",
"0.77969044",
"0.7792258",
"0.7769329",
"0.7769329",
"0.7727629",
"0.7683297",
"0.7655845",
"0.7655103",
"0.74710375",
"0.7449792",
"0.7370409",
"0.7333565",
"0.73165864",
"0.7283202",
"0.727773",
"0.727773",
"0.727773",
"0.7265415",
... | 0.0 | -1 |
Initialize the stack with an optional initial array. | def FIMM(YKHO, bm49=[]):
YKHO.arr = bm49
YKHO.size = len(YKHO.arr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, RqgG=[]):\n YKHO.the_stack = jth9.copy(RqgG)",
"def FIMM(YKHO):\n YKHO.data = h1Oq(10)",
"def FIMM(YKHO):\n YKHO.stack = []\n YKHO.min = None",
"def eLpg(YKHO):\n if YKHO.size == 0:\n YKHO.size = int(input('Enter size of the stack to be created: '))\n YKHO.arr = [None]... | [
"0.68169117",
"0.66922873",
"0.65461093",
"0.6391502",
"0.62785435",
"0.61517847",
"0.61413175",
"0.6140859",
"0.60995626",
"0.6071202",
"0.6053537",
"0.60435086",
"0.6022193",
"0.6021856",
"0.60196346",
"0.60151064",
"0.60140103",
"0.60041255",
"0.59821624",
"0.5956865",
"0.... | 0.6281562 | 4 |
Returns whether the stack is empty. | def FBfn(YKHO):
return YKHO.size == 0 | {
"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.7618219 | 84 |
Returns the top of the stack, without popping it. | def tlxW(YKHO):
return YKHO.arr[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(YKHO):\n if YKHO.stack == []:\n return None\n return YKHO.stack[-1]",
"def tlxW(YKHO):\n if YKHO.stack:\n return YKHO.stack[-1]\n raise ValueError",
"def tlxW(E5BI):\n if N0mo(E5BI):\n raise IndexError('Stack is empty!')\n else:\n return E5BI.top.value",
... | [
"0.872368",
"0.8543128",
"0.84303164",
"0.83613914",
"0.8358929",
"0.81730795",
"0.81565326",
"0.81459594",
"0.813695",
"0.813695",
"0.81307876",
"0.8114976",
"0.8103422",
"0.8071567",
"0.8063605",
"0.79831505",
"0.7940744",
"0.7940561",
"0.7841507",
"0.78313196",
"0.77826154... | 0.6720479 | 98 |
This property return and set the name of the control | def mWFP(YKHO, BWXx):
YKHO.form.setObjectName(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, mWFP):\n return YKHO.name",
"def oSgC(YKHO, mWFP):\n YKHO.label.setText(mWFP)",
"def mWFP(YKHO, mWFP):\n return YKHO.name",
"def mbBb(YKHO):\n YKHO.ctrl_name = d5pt.get_unique_name(YKHO.asset, YKHO.side, YKHO.part, 'ctrl')",
"def W0tD(YKHO):\n return YKHO.name",
"def W0tD(YK... | [
"0.70066977",
"0.69573003",
"0.69243085",
"0.6907456",
"0.68773085",
"0.6874144",
"0.6831195",
"0.6817226",
"0.6778645",
"0.6778645",
"0.6778645",
"0.6774971",
"0.6751658",
"0.6708743",
"0.67084897",
"0.6702504",
"0.6702504",
"0.6702504",
"0.6702504",
"0.6689204",
"0.6681061"... | 0.7720451 | 0 |
Returns IDS for tokenized text | def ZzRC(YKHO, l5Ny):
s2mk = [eOtH.orth for eOtH in YKHO.tokenizer(l5Ny)]
A07C = []
for eOtH in s2mk:
try:
id = YKHO._vocab.vectors.key2row[eOtH]
except KeyError:
id = YKHO.oov_id
A07C.append(id)
return A07C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZzRC(Emd4, l5Ny):\n s2mk = dPrV.TOKENIZER.tokenize(l5Ny)\n juz4 = dPrV.TOKENIZER.convert_tokens_to_ids(s2mk)\n Pha6 = juz4 + [0] * (Emd4.MAX_LEN - len(juz4))\n return (s2mk, Pha6)",
"def ZzRC(YKHO, l5Ny):\n s2mk = [eOtH.orth for eOtH in YKHO.tokenizer(l5Ny)]\n A07C = []\n for eOtH in s2m... | [
"0.8190661",
"0.78699213",
"0.7717034",
"0.7155416",
"0.7136169",
"0.7115929",
"0.7016006",
"0.69986427",
"0.6958998",
"0.6902399",
"0.6895608",
"0.6883649",
"0.6879544",
"0.6834638",
"0.68314797",
"0.6776832",
"0.67077386",
"0.67036253",
"0.6612313",
"0.66102",
"0.65904737",... | 0.7803446 | 2 |
add_vertex add vertex to graph's vertices if there is not other vertex with same id | def ohmD(YKHO, SLBp):
if SLBp.id not in YKHO.vertices.keys():
YKHO.vertices[SLBp.id] = SLBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, oqUi):\n YKHO.vertices[oqUi] = set()\n '\\n if vertex_id not in self.vertices:\\n self.vertices[vertex_id] = {}\\n\\n else:\\n return \"Vertex is already in Graph\"\\n '",
"def ohmD(YKHO, oqUi):\n YKHO.vertices[oqUi] = set()",
"def ohmD... | [
"0.858405",
"0.8393133",
"0.83201754",
"0.8280701",
"0.8274728",
"0.8153364",
"0.81434816",
"0.81434816",
"0.81434816",
"0.81434816",
"0.7952165",
"0.7950935",
"0.77145684",
"0.76846874",
"0.76662445",
"0.76662445",
"0.7569469",
"0.7479635",
"0.74553406",
"0.74151415",
"0.736... | 0.83325845 | 2 |
Add edge to source edges if there is no other edge with same source and target | def rz7z(YKHO, D70y, Zh7o=False, bVA9=False):
hQHm, jlSq = D70y.get_id()
if hQHm in YKHO.vertices.keys() and jlSq in YKHO.vertices.keys():
if Zh7o:
if bVA9:
YKHO.edges[D70y.get_id()] = D70y
elif hQHm != jlSq:
YKHO.edges[D70y.get_id()] = D70y
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDQw(YKHO, pNZh):\n pNZh.add_node('source')\n pNZh.add_node('target')\n for JDLc in (exwG for exwG, Csk6 in pNZh.out_degree_iter() if Csk6 == 0):\n if JDLc is not 'source' and JDLc is not 'target':\n pNZh.add_edge(JDLc, 'target')\n for tk5Y in (exwG for exwG, Csk6 in pNZh.in_degre... | [
"0.7390725",
"0.7377863",
"0.7355607",
"0.71085644",
"0.7099892",
"0.6990844",
"0.6965541",
"0.6944537",
"0.6836359",
"0.6739404",
"0.6729934",
"0.6707287",
"0.66616774",
"0.66508",
"0.6623038",
"0.66080207",
"0.66016793",
"0.6533456",
"0.6471978",
"0.64500767",
"0.6368295",
... | 0.0 | -1 |
Method to return the path as MEDIA_ROOT//filename | def FTFa(KAOR, Ux0P):
return 'phanluot/{}/{}'.format(KAOR.questionID, Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zg0d(YKHO):\n return Hy7s.path.join(gCuF.MEDIA_ROOT, YKHO.path)",
"def gF25(YKHO, Ux0P):\n return gzes(gCuF.CMS_PAGE_MEDIA_PATH, '%d' % YKHO.id, Ux0P)",
"def qaEx(YKHO, QePW, geh0=None, U34r=None):\n bD7m = QePW.url\n ycJ2 = HBct.sha1(ntSl(bD7m)).hexdigest()\n NlHu = Hy7s.path.splitext(bD7m)... | [
"0.7960551",
"0.7510529",
"0.737149",
"0.7355144",
"0.7166454",
"0.7154108",
"0.7092798",
"0.708826",
"0.7053925",
"0.7034147",
"0.7020586",
"0.70186085",
"0.69583243",
"0.6943425",
"0.691107",
"0.6907448",
"0.6849383",
"0.6834726",
"0.68125516",
"0.67965156",
"0.6767675",
... | 0.0 | -1 |
Compare two lists without taking the order into consideration | def EUCX(YKHO, jtyf, V70B):
YKHO.assertListEqual(sorted(jtyf), sorted(V70B)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLeQ(YKHO, Kt9y, I_KI):\n KTw8 = []\n Kt9y = Kt9y.copy()\n I_KI = I_KI.copy()\n for ZfUD in Kt9y:\n if ZfUD in I_KI:\n KTw8.append(ZfUD)\n for r8hN in KTw8:\n for Z9rn in range(Kt9y.count(r8hN)):\n Kt9y.remove(r8hN)\n for Z9rn in range(I_KI.count(r8hN))... | [
"0.7628443",
"0.72834605",
"0.72683793",
"0.7195924",
"0.70293605",
"0.6941735",
"0.69215536",
"0.6905223",
"0.6828773",
"0.68057007",
"0.6803519",
"0.67878985",
"0.6742826",
"0.67348975",
"0.6726726",
"0.6709742",
"0.6694492",
"0.66872334",
"0.66866904",
"0.66778636",
"0.667... | 0.7087442 | 4 |
Initialises and plots figure. | def FIMM(YKHO, BkYD, f4IJ, KAtR, A4Ls, bEPO=jKtm, Kokb=GlFG, _XKr=I4zh, hVLt=Z5Hx, UXqs=False, **B2fa):
super().__init__(BkYD, f4IJ, KAtR, A4Ls, arrow_width=bEPO, arrow_head_width=Kokb, arrow_head_length=_XKr)
YKHO.orientations = BkYD.getOrientations(f4IJ, *YKHO.particles) % (2 * oyIN.pi)
YKHO.colorbar(0, 2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MzzY(WKvO: float, LVAh: float) -> QrM1.figure:\n na1r.debug('Initializing plot.')\n QrM1.ion()\n LZpg = QrM1.figure(figsize=(WKvO, LVAh), num='GlacierFlowModel')\n LZpg.patch.set_facecolor('black')\n return LZpg",
"def wy33(YKHO):\n YKHO.dpi = 100\n YKHO.fig = QD4e((5.0, 5.0), dpi=YKHO.d... | [
"0.8165424",
"0.80349463",
"0.7848055",
"0.78003544",
"0.7565268",
"0.7397783",
"0.73798895",
"0.73665226",
"0.7346693",
"0.7346693",
"0.72906274",
"0.7215201",
"0.7176519",
"0.7152798",
"0.7118978",
"0.711853",
"0.70984125",
"0.70891875",
"0.7084235",
"0.7079322",
"0.7056446... | 0.0 | -1 |
Initialises and plots figure. | def FIMM(YKHO, BkYD, f4IJ, KAtR, A4Ls, bEPO=jKtm, Kokb=GlFG, _XKr=I4zh, hVLt=Z5Hx, JRYC=1, FiHK=1, UXqs=False, **B2fa):
super().__init__(BkYD, f4IJ, KAtR, A4Ls, arrow_width=bEPO, arrow_head_width=Kokb, arrow_head_length=_XKr)
YKHO.displacements = BkYD.getDisplacements(f4IJ, f4IJ + JRYC, *YKHO.particles, jump=Fi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MzzY(WKvO: float, LVAh: float) -> QrM1.figure:\n na1r.debug('Initializing plot.')\n QrM1.ion()\n LZpg = QrM1.figure(figsize=(WKvO, LVAh), num='GlacierFlowModel')\n LZpg.patch.set_facecolor('black')\n return LZpg",
"def wy33(YKHO):\n YKHO.dpi = 100\n YKHO.fig = QD4e((5.0, 5.0), dpi=YKHO.d... | [
"0.8165424",
"0.80349463",
"0.7848055",
"0.78003544",
"0.7565268",
"0.7397783",
"0.73798895",
"0.73665226",
"0.7346693",
"0.7346693",
"0.72906274",
"0.7215201",
"0.7176519",
"0.7152798",
"0.7118978",
"0.711853",
"0.70984125",
"0.70891875",
"0.7084235",
"0.7079322",
"0.7056446... | 0.0 | -1 |
Initialises and plots figure. | def FIMM(YKHO, BkYD, f4IJ, KAtR, A4Ls, bEPO=jKtm, Kokb=GlFG, _XKr=I4zh, hVLt=Z5Hx, UXqs=False, **B2fa):
super().__init__(BkYD, f4IJ, KAtR, A4Ls, arrow_width=bEPO, arrow_head_width=Kokb, arrow_head_length=_XKr)
YKHO.velocities = BkYD.getVelocities(f4IJ, *YKHO.particles)
YKHO.vmin, YKHO.vmax = iQob(YKHO.veloc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MzzY(WKvO: float, LVAh: float) -> QrM1.figure:\n na1r.debug('Initializing plot.')\n QrM1.ion()\n LZpg = QrM1.figure(figsize=(WKvO, LVAh), num='GlacierFlowModel')\n LZpg.patch.set_facecolor('black')\n return LZpg",
"def wy33(YKHO):\n YKHO.dpi = 100\n YKHO.fig = QD4e((5.0, 5.0), dpi=YKHO.d... | [
"0.8165424",
"0.80349463",
"0.7848055",
"0.78003544",
"0.7565268",
"0.7397783",
"0.73798895",
"0.73665226",
"0.7346693",
"0.7346693",
"0.72906274",
"0.7215201",
"0.7176519",
"0.7152798",
"0.7118978",
"0.711853",
"0.70984125",
"0.70891875",
"0.7084235",
"0.7079322",
"0.7056446... | 0.0 | -1 |
Initialises and plots figure. | def FIMM(YKHO, BkYD, f4IJ, KAtR, A4Ls, UXqs=False, **B2fa):
super().__init__(BkYD, f4IJ, KAtR, A4Ls)
YKHO.label = UXqs
YKHO.draw() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MzzY(WKvO: float, LVAh: float) -> QrM1.figure:\n na1r.debug('Initializing plot.')\n QrM1.ion()\n LZpg = QrM1.figure(figsize=(WKvO, LVAh), num='GlacierFlowModel')\n LZpg.patch.set_facecolor('black')\n return LZpg",
"def wy33(YKHO):\n YKHO.dpi = 100\n YKHO.fig = QD4e((5.0, 5.0), dpi=YKHO.d... | [
"0.8165424",
"0.80349463",
"0.7848055",
"0.78003544",
"0.7565268",
"0.7397783",
"0.73798895",
"0.73665226",
"0.7346693",
"0.7346693",
"0.72906274",
"0.7215201",
"0.7176519",
"0.7152798",
"0.7118978",
"0.711853",
"0.70984125",
"0.70891875",
"0.7084235",
"0.7079322",
"0.7056446... | 0.0 | -1 |