query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns bias tensor if layer is trainable. Returns None for nontrainable layers. | def NfqM(YKHO) -> h8nf[AzJI[oyIN.array, oyIN.array]]:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rC2j(YKHO):\n return YKHO.get_tensor_value('linear_regression/bias:0')",
"def rC2j(YKHO):\n return YKHO.get_tensor_value('logistic_regression/bias:0')",
"def oug5(YKHO):\n if YKHO.parameters.bias is not None:\n return ZylS.Variable(YKHO.parameters.bias, name='weights', dtype=ZylS.float32)\n... | [
"0.6743699",
"0.67292887",
"0.67144495",
"0.65729976",
"0.6381994",
"0.62985444",
"0.6270941",
"0.6174164",
"0.61645216",
"0.6143102",
"0.61294854",
"0.6095944",
"0.6095944",
"0.60460067",
"0.60101885",
"0.5990703",
"0.59123796",
"0.5869693",
"0.58600456",
"0.58589125",
"0.58... | 0.0 | -1 |
Computes l2 loss of input x and output y. | def AqjS(WKvO, LVAh):
YRqq = ZylS.reduce_mean((LVAh - WKvO) ** 2, [1, 2, 3, 4])
LJvU = YRqq
return LJvU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LJvU(WKvO: float, LVAh: float) -> float:\n return (WKvO - LVAh) ** 2",
"def LJvU(amiz, LVAh):\n return ZylS.reduce_sum(ZylS.pow(amiz - LVAh, 2), axis=-1) / 2",
"def Noe5():\n\n def eHNT(Xdzc, x6A0, _mSQ):\n N8OZ.assert_same_shape(Xdzc, x6A0)\n N8OZ.assert_same_shape(Xdzc, _mSQ)\n ... | [
"0.86109376",
"0.81510204",
"0.81402934",
"0.79370165",
"0.7786159",
"0.7709963",
"0.76282054",
"0.7507127",
"0.7493136",
"0.7433214",
"0.74229544",
"0.739885",
"0.73518515",
"0.72692806",
"0.72011393",
"0.71941394",
"0.7172869",
"0.71562123",
"0.71329105",
"0.71264535",
"0.7... | 0.8437039 | 1 |
Init function for WUApi class, creates an instance of WUApi | def FIMM(YKHO, rJDA, AkG0='CA/San_Francisco', NKRf='https://api.wunderground.com/api/', rQow='EN', F7w6=True):
YKHO.api_key = rJDA
YKHO.language = rQow
YKHO.bestforecast_enable = F7w6
YKHO.api_base = NKRf
YKHO.build_base_url()
if not YKHO.bestforecast_enable:
x6G_ = '/bestfct:0'
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO) -> None:\n YKHO.api = fyIx()",
"def FIMM(YKHO, **B2fa):\n rJDA = None\n QDug = None\n if 'api_key' in B2fa:\n rJDA = B2fa['api_key']\n if 'secret_key' in B2fa:\n QDug = B2fa['secret_key']\n YKHO.__api_key = rJDA\n YKHO.__secret_key = QDug\n YKHO.websocket_requ... | [
"0.72402614",
"0.69769907",
"0.68503517",
"0.65986896",
"0.6570943",
"0.6537438",
"0.6534774",
"0.64783686",
"0.64631605",
"0.6425284",
"0.6419385",
"0.6419385",
"0.6419385",
"0.63998",
"0.6398332",
"0.63869804",
"0.63869804",
"0.63842595",
"0.63821256",
"0.63765764",
"0.6364... | 0.60523534 | 58 |
Calculates the mean number of snaps for x trials of halfsnap | def R9T1(WKvO):
beOw = [fen_() for YRbF in range(WKvO)]
return oyIN.mean(beOw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgoM(ywwl, WKvO):\n beOw = [wu2O(ywwl) for YRbF in range(WKvO)]\n return oyIN.mean(beOw)",
"def llx_(WKvO):\n beOw = [KYxg() for YRbF in range(WKvO)]\n return oyIN.mean(beOw)",
"def GuyF(epBp):\n WKvO = 1\n while tgoM(WKvO, epBp) != 52:\n tgoM(WKvO, epBp)\n WKvO += 1\n re... | [
"0.77012897",
"0.7468576",
"0.686187",
"0.6295719",
"0.6114159",
"0.5943946",
"0.59051573",
"0.58751273",
"0.585177",
"0.58442277",
"0.5832234",
"0.5825644",
"0.5814749",
"0.5812529",
"0.5791751",
"0.5777981",
"0.5777981",
"0.5769901",
"0.5769443",
"0.57624006",
"0.5748543",
... | 0.8108456 | 0 |
Calculates the mean number of snaps for x trials of doublesnap | def llx_(WKvO):
beOw = [KYxg() for YRbF in range(WKvO)]
return oyIN.mean(beOw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgoM(ywwl, WKvO):\n beOw = [wu2O(ywwl) for YRbF in range(WKvO)]\n return oyIN.mean(beOw)",
"def R9T1(WKvO):\n beOw = [fen_() for YRbF in range(WKvO)]\n return oyIN.mean(beOw)",
"def NtME(V6IE):\n bEwC = []\n for WKvO in range(V6IE):\n if KYxg() > 0:\n bEwC.append('Snap')... | [
"0.7005704",
"0.67495716",
"0.6294366",
"0.62075007",
"0.6098098",
"0.60049427",
"0.59719056",
"0.59302324",
"0.5899987",
"0.58918905",
"0.5871376",
"0.58570874",
"0.5824926",
"0.5791231",
"0.57852066",
"0.5783207",
"0.57748306",
"0.5761691",
"0.5761691",
"0.5727732",
"0.5707... | 0.80922264 | 0 |
Return centroid of all nodes of component | def e6ux(YKHO):
return list(oyIN.mean([(Q6kx.cx, Q6kx.cy) for Q6kx in YKHO.nodes], axis=0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yHxN(YKHO):\n YKHO.message('Generating centroids')\n return oyIN.divide(oyIN.sum(YKHO.element_coordinates(), axis=1), 3.0)",
"def e6ux(UksD):\n if hasattr(UksD, 'get_model'):\n C3ST = UksD.get_model()\n hLRM = UksD.bbox.origin\n else:\n C3ST = UksD\n hLRM = 0\n _0VL... | [
"0.8072644",
"0.79431164",
"0.7848029",
"0.78185993",
"0.7726682",
"0.7650083",
"0.7638821",
"0.7541588",
"0.75196016",
"0.7516805",
"0.7496862",
"0.746483",
"0.7444337",
"0.74301887",
"0.7418395",
"0.74121344",
"0.74036",
"0.7399076",
"0.7399076",
"0.7390593",
"0.73793006",
... | 0.8628553 | 0 |
Wraps a C data accessor in a python function. If a ptrclass is provided, the result will be converted to by the class' from_pointer method. | def lvd0(B4t8, tWLc, V6yG=None):
if V6yG:
def QWcs(YKHO):
YKHO.check_destroyed()
U5bT = B4t8(ojiJ(YKHO.soul))
return V6yG.from_pointer(U5bT)
else:
def QWcs(YKHO):
YKHO.check_destroyed()
return B4t8(ojiJ(YKHO.soul))
return QWcs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bRqh(JfyU, Emd4):\n JfyU.restype = ojiJ\n\n def us1T(YKHO, *qIxc):\n return Emd4.from_pointer(JfyU(*qIxc))\n return us1T",
"def FnPw(B4t8, T79R, V6yG=None):\n if V6yG:\n\n def cDoA(YKHO, d7pR):\n B4t8(YKHO.soul, d7pR.soul)\n else:\n\n def cDoA(YKHO, d7pR):\n ... | [
"0.6335849",
"0.61553",
"0.6110401",
"0.6110401",
"0.5980107",
"0.54492795",
"0.5415345",
"0.5386538",
"0.53512263",
"0.5330151",
"0.5277033",
"0.52693224",
"0.5257955",
"0.52485424",
"0.5238681",
"0.5237561",
"0.52353",
"0.5226264",
"0.5222026",
"0.52169204",
"0.51875705",
... | 0.7792284 | 0 |
Verify that a user with a similar email address does not exist yet | def YBiq(YKHO):
try:
CBIr = mv1M.objects.get(email__iexact=YKHO.cleaned_data['email'])
except mv1M.DoesNotExist:
return YKHO.cleaned_data['email']
raise H6V6.ValidationError(bGrB('A user with the specified email address already exists. Please try another one.')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V7zm(D3lj):\n if not TQW7.get_user(D3lj):\n raise sUXu(Eair('USER_DOES_NOT_EXIST')[0])",
"def hOOe(D3lj):\n if not mv1M.objects.filter(email=D3lj).exists():\n raise sUXu(f'No user with email {D3lj}')",
"def NaK1(YKHO):\n CBIr = mv1M.objects.order_by('-id')[:1].get()\n Ylbp = YKHO.... | [
"0.77316445",
"0.765841",
"0.76418924",
"0.7635295",
"0.7600506",
"0.7559303",
"0.7500663",
"0.7452609",
"0.7418952",
"0.741844",
"0.7402138",
"0.7375003",
"0.7326139",
"0.7293599",
"0.728084",
"0.72591704",
"0.7256885",
"0.72561663",
"0.72509724",
"0.72175825",
"0.72175825",... | 0.7114846 | 41 |
Verify that a user with a similar username does not exist yet | def lKfQ(YKHO):
try:
CBIr = mv1M.objects.get(username__iexact=YKHO.cleaned_data['username'])
except mv1M.DoesNotExist:
return YKHO.cleaned_data['username']
raise H6V6.ValidationError(bGrB('The username already exists. Please try another one.')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jjss(NtEF):\n Gvth(NtEF)\n try:\n mv1M.objects.get(username=NtEF)\n raise sUXu('Username {} is already used. Please select another one'.format(NtEF))\n except mv1M.DoesNotExist:\n pass",
"def NGBy(YKHO):\n CBIr = mv1M.objects.order_by('-id')[:1].get()\n Ylbp = YKHO.client.... | [
"0.7644451",
"0.7643877",
"0.7492373",
"0.7432394",
"0.7424568",
"0.7400049",
"0.7372561",
"0.735939",
"0.73338175",
"0.7332661",
"0.7321866",
"0.73149496",
"0.7291351",
"0.72620416",
"0.72351515",
"0.7230932",
"0.72260934",
"0.7212657",
"0.7199439",
"0.7193769",
"0.71895874"... | 0.0 | -1 |
normalises the weight. The normalisation factor will be calculated in the particlefilter based after a weight has been assigned to each particle | def GRqe(YKHO, PwL7):
YKHO.weight = YKHO.weight / float(PwL7)
YKHO.weight2 = YKHO.weight2 / float(PwL7)
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8nR(YKHO):\n V3oS = sum([il4J.w for il4J in YKHO.particle_cloud]) * 1.0\n for il4J in YKHO.particle_cloud:\n il4J.w /= V3oS",
"def FWlN(YKHO):\n exwG = sum(YKHO.weights_curr)\n for YRbF in range(YKHO.nparticles):\n YKHO.weights_curr[YRbF] /= float(exwG)",
"def FWlN(YKHO):\n ex... | [
"0.8074926",
"0.8060125",
"0.8060125",
"0.77195853",
"0.7622723",
"0.75629175",
"0.7522816",
"0.74170524",
"0.7373287",
"0.7083132",
"0.70442045",
"0.6995285",
"0.6975105",
"0.69634885",
"0.688474",
"0.67687684",
"0.6741224",
"0.6715371",
"0.6705236",
"0.6684021",
"0.6673775"... | 0.7055757 | 10 |
Converts binary string to numpy array | def wTLQ(KCHu):
if not ZbWC.fullmatch('(0|1)*', KCHu):
raise ValueError('Input must be in binary.')
return oyIN.array([int(Csk6) for Csk6 in KCHu], dtype=oyIN.uint) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qSim(vIwR):\n nPrm = xDSY.BytesIO(vIwR)\n nPrm.seek(0)\n return QONf(nPrm)",
"def x8I_(ftCw):\n return oyIN.fromstring(ftCw, dtype='<i2')",
"def wTLQ(vIwR):\n ezWE = oyIN.fromstring(vIwR, sep='\\n', dtype='int')\n return ezWE",
"def SG67(vIwR, UOVU):\n assert oyIN.all(vIwR == _w06.bi... | [
"0.8751429",
"0.821099",
"0.7564154",
"0.7452689",
"0.74509686",
"0.73283213",
"0.72983044",
"0.7229197",
"0.722277",
"0.71650374",
"0.7082826",
"0.70771235",
"0.7045676",
"0.7025954",
"0.7011562",
"0.70112145",
"0.6972397",
"0.6947543",
"0.6896432",
"0.687103",
"0.6853342",
... | 0.81499696 | 2 |
Run the method designated as the performer | def JE1Y(YKHO, BWXx: Optional[Any]=None) -> ImMB:
wq97 = getattr(YKHO, Si4S)
if Dao_:
wq97(BWXx)
else:
wq97()
return YKHO.returns | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kG53(YKHO):\n raise NotImplementedError('doRun function not implemented')",
"def JE1Y(YKHO):\n pass",
"def JE1Y(YKHO) -> None:\n raise NotImplementedError()",
"def JE1Y(YKHO) -> None:\n raise NotImplementedError()",
"def JE1Y(YKHO):\n ...",
"def JE1Y(YKHO) -> None:\n pass",
"def i... | [
"0.7431345",
"0.7427852",
"0.73633933",
"0.73633933",
"0.7333363",
"0.7331403",
"0.7281205",
"0.7270833",
"0.7266559",
"0.726065",
"0.7244562",
"0.7207729",
"0.7194081",
"0.7179057",
"0.71558416",
"0.7117061",
"0.7103156",
"0.7081918",
"0.7081918",
"0.7081918",
"0.7081918",
... | 0.0 | -1 |
Turns pandas Series/Dataframe into a numpy array, and leaves numpy arrays intact. | def _xy5(n6GD):
if isinstance(n6GD, (rLdf.DataFrame, rLdf.Series)):
return n6GD.values
else:
return n6GD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SwZi(jQ3Z):\n EcVT = jQ3Z.values.astype(oyIN.float64)\n EcVT = EcVT.reshape(1, -1)\n assert EcVT.shape == (1, 12), f\"Day's data is not in correct shape - expected: (1, 12), actual: {EcVT.shape}\"\n return EcVT",
"def iXkI(YKHO):\n EcVT = YKHO.copy()\n return (EcVT.values, lambda ezWE: rLdf... | [
"0.7983461",
"0.7873238",
"0.78455794",
"0.738453",
"0.72745275",
"0.7259418",
"0.71358037",
"0.7124509",
"0.70845366",
"0.6984255",
"0.6971123",
"0.69257665",
"0.69213027",
"0.68848115",
"0.6712483",
"0.66575295",
"0.6623969",
"0.6588729",
"0.65863657",
"0.6569315",
"0.64539... | 0.0 | -1 |
Get the user that uses this service. Retrieve data from Resource's authentication | def DjFc(YKHO) -> mv1M:
if YKHO._auth_user:
return YKHO._auth_user
raise UZEH() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO):\n return YKHO.client.User.User_get().result()",
"def TKWP(YKHO):\n geh0 = YKHO._make_request('GET', '/user')\n return geh0.entity",
"def CBIr(YKHO):\n return YKHO._auth_user",
"def TKWP():\n CBIr = xvEc().get_authenticated_user()\n return CBIr",
"def TKWP(YKHO):\n retur... | [
"0.8267143",
"0.8218102",
"0.8041888",
"0.79605937",
"0.79547274",
"0.79547274",
"0.79547274",
"0.7922943",
"0.7921807",
"0.7919242",
"0.7919242",
"0.78931266",
"0.78698766",
"0.7847562",
"0.78382075",
"0.78327066",
"0.7807798",
"0.78051114",
"0.7785628",
"0.77783734",
"0.773... | 0.7586629 | 38 |
Local file system path for a cache file containing n ZeMA samples The result does not guarantee, that the file at the specified location exists, but can be used to check for existence or creation. | def hOKl(YKHO, NkkI: bool) -> GkAb:
assert YKHO.samples_slice.stop is not None
xHU6 = YKHO.samples_slice.start
cDK5 = YKHO.samples_slice.stop - xHU6 if YKHO.samples_slice.start is not None else YKHO.samples_slice.stop
return GkAb(BO_G('pooch').joinpath(f'{str(cDK5)}_samples{('_starting_from_' + str(xHU6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eR0P(YKHO):\n return YKHO.get_cache_directory() + '/' + YKHO.get_local_filename()",
"def fEVd(YKHO) -> GkAb:\n return YKHO._get_cache_dir() / YKHO._create_file_name()",
"def J877(YKHO, IznC):\n Eorv = gzes(tk5Y, SIMp, IznC)\n if not vtfo(Eorv):\n y5Cv = YKHO.remote_dir + IznC\n uR... | [
"0.6972613",
"0.6952202",
"0.6794997",
"0.6734635",
"0.66516393",
"0.6610629",
"0.6552012",
"0.6508961",
"0.640891",
"0.63483036",
"0.63483036",
"0.6347728",
"0.62673104",
"0.62637836",
"0.62515295",
"0.6248551",
"0.6225943",
"0.61801964",
"0.6135953",
"0.6121872",
"0.6116426... | 0.6466004 | 8 |
Performs a batch normalization followed by a ReLU. | def e32L(g4y1, LT6S):
g4y1 = ZylS.layers.batch_normalization(inputs=g4y1, axis=1, momentum=ddHF, epsilon=UCFg, center=True, scale=True, training=LT6S, fused=True)
g4y1 = ZylS.nn.relu(g4y1)
return g4y1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vWKW(YKHO, input, Tuqy):\n H0zq = YKHO.momentum\n if Tuqy == 'train':\n Nc6L = oyIN.mean(input)\n QrBZ = oyIN.var(input)\n YKHO.running_mean = H0zq * YKHO.running_mean + (1 - H0zq) * Nc6L\n YKHO.running_var = H0zq * YKHO.running_var + (1 - H0zq) * QrBZ\n mbJQ = input - ... | [
"0.69561195",
"0.68267304",
"0.674973",
"0.6724042",
"0.6697324",
"0.6680035",
"0.6658945",
"0.6568303",
"0.6565555",
"0.6555847",
"0.65463996",
"0.65262914",
"0.6521953",
"0.6521595",
"0.65019596",
"0.6480877",
"0.64801097",
"0.64795494",
"0.6460631",
"0.64497024",
"0.64486"... | 0.6598223 | 7 |
Strided 2D convolution with explicit padding. | def EzRm(g4y1, KUnM, Ot1W, FEri, l7uB=False, dvgN=True):
CuWM = ZylS.layers.conv2d_transpose if l7uB else ZylS.layers.conv2d
if dvgN:
g4y1 = hucQ(g4y1, Ot1W)
g4y1 = CuWM(inputs=g4y1, filters=KUnM, kernel_size=Ot1W, strides=FEri, padding='VALID' if dvgN else 'SAME', use_bias=False, kernel_initializer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xl1a(FCPk, Ot1W, _0fC, ivFb=1, dvgN=0, TWfd=0):\n return epAf.floor((FCPk + 2 * dvgN - ivFb * (Ot1W - 1) - 1) / _0fC) + 1",
"def iTtX(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='VALID', name='convolution')",
"def xC4s(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, X... | [
"0.7355424",
"0.73396486",
"0.73038566",
"0.7289577",
"0.7229475",
"0.7209308",
"0.71844846",
"0.7096817",
"0.7039749",
"0.70375925",
"0.7036603",
"0.7031906",
"0.7012138",
"0.700571",
"0.69770306",
"0.69762814",
"0.69762814",
"0.69762814",
"0.69762814",
"0.69762814",
"0.6976... | 0.0 | -1 |
Define a Gaussian kernel | def VU7a(aOex, WTkW):
eeYG = MOYU = (aOex - 1) / 2
WKvO, LVAh = oyIN.mgrid[-eeYG:eeYG + 1, -MOYU:MOYU + 1]
yvY1 = oyIN.exp(-0.5 * (WKvO ** 2 + LVAh ** 2) / WTkW ** 2)
return yvY1 / yvY1.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))",
"def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))",
"def VU7a(WKvO, LVAh, WTkW=5.0):\n return oyIN.exp(-aJJu.norm(WKvO - LVAh) ** 2 / (2 * WTkW ** 2))",
"def VU7a(Emd4, WKvO, epBp, WTkW):\n retu... | [
"0.82592034",
"0.8047334",
"0.78190887",
"0.771654",
"0.76431555",
"0.75935286",
"0.7547109",
"0.75386065",
"0.75297594",
"0.75181913",
"0.7506612",
"0.74949574",
"0.7370971",
"0.7362601",
"0.73595655",
"0.7359308",
"0.73562634",
"0.7341218",
"0.73277223",
"0.7302034",
"0.729... | 0.6860382 | 73 |
Downsampling an image by a factor of 2 | def R_qy(WKvO, aOex=5, WTkW=1.4):
k5v1 = VU7a(aOex, WTkW)
WKvO = b_zE(WKvO, k5v1, boundary='symm', mode='same')
return WKvO[::2, ::2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def myXy(VXjJ, aM8h):\n oTDq = VXjJ[::aM8h, ::aM8h].copy()\n return oTDq",
"def UfYa(Xn71: np.array, A3Vt: int) -> oyIN.array:\n BJd9 = XC5k.resize(Xn71, (int(Xn71.shape[1] / A3Vt), int(Xn71.shape[0] / A3Vt)), interpolation=XC5k.INTER_CUBIC)\n return BJd9",
"def myXy(VXjJ, aOex=(5, 5), WTkW=1.4):\n... | [
"0.76724905",
"0.74597704",
"0.7459214",
"0.7365577",
"0.7277488",
"0.7095783",
"0.708129",
"0.6947723",
"0.69341266",
"0.6881603",
"0.68647027",
"0.6818433",
"0.6801494",
"0.67458266",
"0.6682828",
"0.66659474",
"0.66492724",
"0.65918547",
"0.65905386",
"0.65164596",
"0.6505... | 0.6861787 | 11 |
Return the latest state by comparing the cursor value in the latest record with the stream's most recent state object and returning an updated state object. | def uf1E(YKHO, WdDz: MutableMapping[str, Any], q5y7: Mapping[str, Any]) -> GySg[str, ImMB]:
ekCf = q5y7.get('project_id')
cXCO = q5y7.get(YKHO.cursor_field)
DghZ = WdDz.get(str(ekCf))
if DghZ:
DghZ = DghZ.get(YKHO.cursor_field)
auyz = DghZ or cXCO
bQ6z = max(t_XE.parse(auyz), t_XE.parse(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uf1E(YKHO, WdDz: MutableMapping[str, Any], q5y7: Mapping[str, Any]):\n ft8x = cXCO = q5y7.get(YKHO.cursor_field)\n hWRL = q5y7['repository']\n if WdDz.get(hWRL, {}).get(YKHO.cursor_field):\n ft8x = max(cXCO, WdDz[hWRL][YKHO.cursor_field])\n WdDz[hWRL] = {YKHO.cursor_field: ft8x}\n return ... | [
"0.82191944",
"0.8117657",
"0.77670956",
"0.77295136",
"0.77295136",
"0.77295136",
"0.77295136",
"0.7518363",
"0.73886585",
"0.7326654",
"0.6074677",
"0.5886098",
"0.5884076",
"0.5857012",
"0.579591",
"0.5795486",
"0.57441294",
"0.57413",
"0.5670948",
"0.56691855",
"0.5637511... | 0.7978267 | 2 |
Return a function that is a linear model of f(x) = Y. | def tB9b(YKHO, IYVV, DwtL):
Fg_i, r8hN = YKHO.regression_1d_params(IYVV, DwtL)
return lambda WKvO: r8hN * WKvO + Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m2Zb(YKHO, g4y1):\n return vuvg.linear(g4y1, YKHO.weight, YKHO.bias)",
"def Abux(EcVT, LVAh):\n CzjA = oyIN.linalg.inv(EcVT.T @ EcVT)\n Kv7L = EcVT.T @ LVAh\n UqYS = CzjA @ Kv7L\n return UqYS",
"def IcyY(WKvO, LVAh):\n return WKvO + LVAh / 2.0",
"def z8o0(jzdc=1.0, Fg_i=0.0):\n retur... | [
"0.72367156",
"0.7124479",
"0.7032444",
"0.69676155",
"0.69409436",
"0.6883953",
"0.6883953",
"0.68484676",
"0.6840565",
"0.6801543",
"0.6797471",
"0.6790683",
"0.6760107",
"0.674653",
"0.6737297",
"0.6724839",
"0.66753036",
"0.66714096",
"0.66227007",
"0.66181546",
"0.659541... | 0.6316592 | 46 |
Calulate the R^2 statistic of estimate of output y from f . | def lHKk(YKHO, gj73, UrZQ):
return 1 - YKHO.RSS(gj73, UrZQ) / YKHO.TSS(gj73) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def whQk(eHNT, LVAh):\n lBmP = sum((LVAh - eHNT) ** 2)\n xXKZ = sum((LVAh - oyIN.mean(LVAh)) ** 2)\n return 1 - lBmP / xXKZ",
"def BTtg(LVAh, eHNT):\n if not oyIN.all(LVAh.shape == eHNT.shape):\n raise Exception('Y and F must be the same size')\n jbXL = oyIN.logical_not(oyIN.logical_or(oyIN... | [
"0.77238774",
"0.7466769",
"0.7266156",
"0.7063587",
"0.6904376",
"0.6894997",
"0.6875912",
"0.6875912",
"0.669286",
"0.669165",
"0.6632648",
"0.66201556",
"0.65837574",
"0.6583685",
"0.6551817",
"0.6550365",
"0.6531306",
"0.6519238",
"0.6519238",
"0.6519238",
"0.65185547",
... | 0.6545623 | 16 |
Helper to form contour plot of a function over a 2D domain. | def m7iG(eHNT, QWO9, ZP9R, vxCY, BEPT, exwG=20, **B2fa):
ILcH = (ZP9R - QWO9) / exwG
WH50 = (BEPT - vxCY) / exwG
MEXo = oyIN.arange(QWO9, ZP9R, ILcH)
OV1s = oyIN.arange(vxCY, BEPT, WH50)
EcVT, fuBA = oyIN.meshgrid(MEXo, OV1s)
Nk6w = [[eHNT(WKvO, LVAh) for WKvO in MEXo] for LVAh in OV1s]
LZpg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_FJ(leAC, jU9V, JfyU, VoLU, IICq):\n QrM1.figure(leAC)\n QrM1.title(leAC)\n QrM1.xlabel(VoLU)\n QrM1.ylabel(IICq)\n EcVT, fuBA = oyIN.meshgrid(jU9V[0], jU9V[1])\n b61f = JfyU(EcVT, fuBA, 1, '2dContour')\n QrM1.contour(EcVT, fuBA, b61f, 50, cmap='hot')\n QrM1.colorbar()\n return",
... | [
"0.7326754",
"0.7183425",
"0.70969796",
"0.7084026",
"0.7081147",
"0.7034841",
"0.70305926",
"0.6893342",
"0.6836719",
"0.6766773",
"0.66344213",
"0.6605636",
"0.6604291",
"0.6590161",
"0.6577191",
"0.6573628",
"0.65479386",
"0.65240115",
"0.6486886",
"0.6458666",
"0.64524025... | 0.72529036 | 1 |
Helper to form colormap of a function over a 2D domain. | def nCgp(eHNT, QWO9, ZP9R, vxCY, BEPT, exwG=20, **B2fa):
ILcH = (ZP9R - QWO9) / exwG
WH50 = (BEPT - vxCY) / exwG
MEXo = oyIN.arange(QWO9, ZP9R, ILcH)
OV1s = oyIN.arange(vxCY, BEPT, WH50)
EcVT, fuBA = oyIN.meshgrid(MEXo, OV1s)
Nk6w = [[eHNT(WKvO, LVAh) for WKvO in MEXo] for LVAh in OV1s]
LZpg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZqJ4(nCHX, ryKj, exwG=256):\n iMGt = oyIN.zeros([exwG, 3])\n for YRbF in range(3):\n iMGt[:, YRbF] = oyIN.linspace(nCHX[YRbF], ryKj[YRbF], exwG)\n return iMGt",
"def h8Pq(m2Zb, iMGt):\n pXRx = iMGt._segmentdata\n RLvi = lambda WKvO: (m2Zb(WKvO[0]), WKvO[1], WKvO[2])\n for H5ew in ('r... | [
"0.6645",
"0.6598655",
"0.64477366",
"0.6332612",
"0.6289051",
"0.6242628",
"0.6231342",
"0.6218242",
"0.6218242",
"0.6181058",
"0.60829043",
"0.6064273",
"0.6052067",
"0.6042909",
"0.6037209",
"0.6010803",
"0.6009024",
"0.6003205",
"0.5987162",
"0.59789586",
"0.59462893",
... | 0.0 | -1 |
Make PCPC weight mat w/ weight increasing w/ proxim. | def siyp(dSH5, TGnF, XP5J):
FWCW = XP5J['N_PC']
Jw7X = oyIN.tile(dSH5[None, :], (FWCW, 1)) - oyIN.tile(dSH5[:, None], (1, FWCW))
eUWA = oyIN.tile(TGnF[None, :], (FWCW, 1)) - oyIN.tile(TGnF[:, None], (1, FWCW))
Csk6 = oyIN.sqrt(Jw7X ** 2 + eUWA ** 2)
return PpCA(Csk6, XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aKaw(XP5J=None):\n pdhd = oyIN.eye(len(XP5J))\n return pdhd * (XP5J * (1 - XP5J))",
"def B8xN(YKHO):\n mLim = YKHO.proto\n epBp = YKHO.z\n B8xN = oyIN.zeros((epBp * len(mLim), epBp * len(mLim[0])), dtype=int)\n rdlD, fvDH = oyIN.nonzero(mLim != -1)\n for r845 in range(len(rdlD)):\n ... | [
"0.6517945",
"0.6467829",
"0.6357478",
"0.63037443",
"0.6110142",
"0.58131486",
"0.5762404",
"0.5736353",
"0.5733423",
"0.5688796",
"0.56712586",
"0.56703407",
"0.5670252",
"0.56506354",
"0.5624841",
"0.5624744",
"0.5574938",
"0.5563243",
"0.5545354",
"0.5543453",
"0.55427927... | 0.65246266 | 0 |
Check if a cluster is nested within another cluster that has already been added to the tree | def BnSS(kIeT, HsL5, eEku):
_AKB = None
for Q6kx in eEku:
if HsL5.issubset(kIeT[Q6kx]) and (_AKB == None or len(kIeT[Q6kx]) < len(kIeT[_AKB])):
_AKB = Q6kx
return _AKB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loae(hKn5):\n return len(hKn5) == 1",
"def loae(hKn5):\n return len(hKn5) == 1",
"def Rjxv(r7jQ, CHTE):\n TK2h = True\n xGx_ = {Q6kx.signature: Q6kx for Q6kx in r7jQ.child}\n for Z9rn in CHTE.child:\n if Z9rn.signature in xGx_:\n TK2h = TK2h and Rjxv(xGx_[Z9rn.signature], Z... | [
"0.6623912",
"0.65985423",
"0.65457946",
"0.63789034",
"0.6298065",
"0.6298065",
"0.6192867",
"0.61365986",
"0.6063303",
"0.6057977",
"0.6052653",
"0.60243857",
"0.6019179",
"0.6010609",
"0.59771246",
"0.5962232",
"0.59393555",
"0.5922759",
"0.5916884",
"0.58771133",
"0.58612... | 0.68899137 | 0 |
String for representing the Model object. | def zAg0(YKHO):
return f'{YKHO.name}, {YKHO.identifier}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return f'{YKHO.name}, {YKHO.identifier}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
String for representing the Plan object. | def zAg0(YKHO):
return f'{YKHO.title}, id:{YKHO.id}, автор: {YKHO.author}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vwqL(YKHO):\n return ''.join(['Plant id:', YKHO.id.hex, ', v:', str(YKHO.version), ', name:', YKHO.name, ', locale:', YKHO.locale, ', description:', YKHO.description])",
"def zAg0(YKHO):\n vIwR = YKHO.name + ': \\nType: ' + YKHO.type + '\\nCategory: ' + YKHO.cat + '\\nBase Power: ' + ' ' + YKHO.bp\n ... | [
"0.7333973",
"0.7084259",
"0.70291543",
"0.6964093",
"0.69605196",
"0.6950856",
"0.6930224",
"0.69284886",
"0.6897077",
"0.6871626",
"0.68621874",
"0.68386954",
"0.68315613",
"0.6801379",
"0.68002534",
"0.6788276",
"0.67777145",
"0.67772925",
"0.6769754",
"0.67339426",
"0.672... | 0.0 | -1 |
Returns the url to access a detail record for this Plan. | def hlzF(YKHO):
return gxEw('plan-detail', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iLuo(YKHO):\n raise NotImplementedError('Please define a detail_url fixture')",
"def IxeK(YKHO):\n return gxEw(YKHO._meta.db_table + '-detail', args=[YKHO.pk])",
"def bD7m(YKHO):\n bD7m = dDl6 + UtR2['detailed_notes'].format(version=vp8q, investor_id=YKHO._investor_id)\n return bD7m",
"def TH... | [
"0.712994",
"0.7101808",
"0.70475066",
"0.6755344",
"0.6645071",
"0.65617675",
"0.6517946",
"0.64572525",
"0.638177",
"0.63690114",
"0.63656086",
"0.6355115",
"0.63475525",
"0.6339302",
"0.63223886",
"0.6287226",
"0.6211827",
"0.6188317",
"0.6157635",
"0.61234635",
"0.6122837... | 0.6929841 | 3 |
String for representing the Model object. | def zAg0(YKHO):
return f'{YKHO.name}, {YKHO.roof_material}, {YKHO.wall_material_type_0}, {YKHO.socle_material_type}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return f'{YKHO.material_type}, {YKHO.material_id}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
Starting from fromNode, searches for queried key. If key found, returns the Node with that key. | def TgwQ(YKHO, H5ew, S0U2, xBQY=False):
while S0U2 is not None:
if S0U2.key == H5ew:
if xBQY:
return (False, False)
else:
return S0U2
elif S0U2.key < H5ew:
next = S0U2.get_right_ptr(YKHO.level)
if next is None or next.ke... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(YKHO, H5ew):\n THkp = Q6kx = YKHO\n while Q6kx is not None:\n if Q6kx.key == H5ew:\n return Q6kx\n THkp, Q6kx = (Q6kx, Q6kx.child(H5ew))\n return THkp",
"def yKxK(YKHO, H5ew):\n Q6kx = YKHO.root\n while Q6kx:\n if Q6kx.key == H5ew:\n return Q6kx\... | [
"0.80658305",
"0.8010916",
"0.79246706",
"0.77876514",
"0.77756673",
"0.77624536",
"0.7744218",
"0.76867086",
"0.7680555",
"0.7650336",
"0.7618893",
"0.76131886",
"0.75533265",
"0.75299734",
"0.7489999",
"0.7489999",
"0.74756515",
"0.733847",
"0.72874224",
"0.7262215",
"0.723... | 0.71337676 | 28 |
Return all digits of N that are not DIGIT, for DIGIT less than 10. >>> remove(231, 3) 21 >>> remove(240132, 2) 4013 | def kSdD(exwG, Ko6S):
cRrN, BHGE = (0, 0)
while exwG != 0:
exwG, XVAW = (exwG // 10, exwG % 10)
if XVAW != Ko6S:
cRrN = cRrN / 10 + XVAW
BHGE = BHGE + 1
return round(cRrN * 10 ** (BHGE - 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y_At(exwG, Ko6S):\n cRrN, BHGE = (0, 0)\n while exwG != 0:\n exwG, XVAW = (exwG // 10, exwG % 10)\n if XVAW != Ko6S:\n cRrN += XVAW * pow(10, BHGE)\n BHGE += 1\n return cRrN",
"def y_At(exwG, Ko6S):\n cRrN, BHGE = (0, 0)\n while exwG != 0:\n exwG, XVA... | [
"0.7349345",
"0.7338288",
"0.73347795",
"0.642181",
"0.63629675",
"0.5982418",
"0.5903982",
"0.58849674",
"0.5877238",
"0.5860962",
"0.5851361",
"0.58451575",
"0.5827105",
"0.57678235",
"0.5763811",
"0.5761998",
"0.5749089",
"0.57338756",
"0.5723165",
"0.57211643",
"0.5669015... | 0.76021653 | 0 |
Return all digits of N that are not DIGIT, for DIGIT less than 10. >>> remove2(231, 3) 21 >>> remove2(240132, 2) 4013 | def y_At(exwG, Ko6S):
cRrN, BHGE = (0, 0)
while exwG != 0:
exwG, XVAW = (exwG // 10, exwG % 10)
if XVAW != Ko6S:
cRrN = cRrN + XVAW * 10 ** BHGE
BHGE = BHGE + 1
return cRrN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y_At(exwG, Ko6S):\n cRrN, BHGE = (0, 0)\n while exwG != 0:\n exwG, XVAW = (exwG // 10, exwG % 10)\n if XVAW != Ko6S:\n cRrN += XVAW * pow(10, BHGE)\n BHGE += 1\n return cRrN",
"def kSdD(exwG, Ko6S):\n cRrN, BHGE = (0, 0)\n while exwG != 0:\n exwG, XVA... | [
"0.7712013",
"0.7192447",
"0.7100687",
"0.60503006",
"0.5787763",
"0.57165325",
"0.5587635",
"0.5539495",
"0.5497446",
"0.5493925",
"0.54886186",
"0.5470744",
"0.54674286",
"0.5465696",
"0.54418963",
"0.5428446",
"0.5426359",
"0.53927904",
"0.53685623",
"0.5362438",
"0.534487... | 0.76338136 | 1 |
If the form is valid, save the associated model. | def lwXz(YKHO, L03z):
hRvM = gzes(gCuF.BASE_DIR, 'templates')
jAr0 = gzes(gCuF.BASE_DIR, 'static')
YKHO.object = L03z.save()
Hy7s.mkdir(hRvM + '/' + YKHO.object.username)
Hy7s.mkdir(jAr0 + '/' + YKHO.object.username)
return super(wn7H, YKHO).form_valid(L03z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def deVW(YKHO, L03z):\n L03z.save()",
"def lwXz(YKHO, L03z):\n L03z.save()\n return super().form_valid(L03z)",
"def lwXz(YKHO, L03z):\n YKHO.object = L03z.save(YKHO.request.user)\n return Yd7Q(YKHO.get_success_url(), status=303)",
"def lwXz(YKHO, L03z):\n YKHO.object = L03z.save(YKHO.reques... | [
"0.7786421",
"0.7445933",
"0.7416595",
"0.7416595",
"0.7391896",
"0.7391896",
"0.7391896",
"0.7391896",
"0.71387583",
"0.7123397",
"0.7104942",
"0.7073247",
"0.7056793",
"0.7056793",
"0.705132",
"0.70319355",
"0.702643",
"0.7008229",
"0.7001526",
"0.6998036",
"0.69720834",
... | 0.0 | -1 |
Return a pytd.Parameter for a args argument. | def HSE3(mWFP: str, ICn2: pytd.Type) -> ZOfv.Parameter:
if ICn2 is None:
AZQs = ZOfv.NamedType('tuple')
else:
AZQs = ZOfv.GenericType(ZOfv.NamedType('tuple'), (ICn2,))
return ZOfv.Parameter(mWFP, AZQs, False, True, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XDS4(*qIxc):\n return Hx2v.BRepBlend_BlendTool_Parameter(*qIxc)",
"def k78t(YKHO, id, WmM4) -> jZ4I.arg:\n yYca = KrvK(id.id)\n if yYca in YKHO.state.built_ins:\n del YKHO.state.built_ins[YKHO.state.built_ins.index(yYca)]\n YKHO.state.variables.append(yYca)\n return jZ4I.arg(arg=yYca, a... | [
"0.6504143",
"0.6221481",
"0.6126861",
"0.6059456",
"0.6052035",
"0.6033336",
"0.59872884",
"0.59766454",
"0.59327006",
"0.5897914",
"0.58269894",
"0.5765916",
"0.5723195",
"0.57205886",
"0.5720009",
"0.57165307",
"0.5695649",
"0.5685119",
"0.56696177",
"0.565599",
"0.5648215... | 0.56868106 | 17 |
Return a pytd.Parameter for a kwargs argument. | def GVDK(mWFP: str, ICn2: pytd.Type) -> ZOfv.Parameter:
if ICn2 is None:
AZQs = ZOfv.NamedType('dict')
else:
AZQs = ZOfv.GenericType(ZOfv.NamedType('dict'), (ZOfv.NamedType('str'), ICn2))
return ZOfv.Parameter(mWFP, AZQs, False, True, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k78t(**B2fa):\n return B2fa",
"def bmb7(YKHO) -> ZOfv.Parameter:\n if YKHO.default is not None:\n WJ2U = YKHO.default\n if YKHO.type is None and WJ2U != ZOfv.NamedType('NoneType'):\n YKHO.type = WJ2U\n if YKHO.type is None:\n YKHO.type = ZOfv.AnythingType()\n CYSX ... | [
"0.80359036",
"0.6718107",
"0.6332736",
"0.62996495",
"0.62197995",
"0.609366",
"0.6033138",
"0.60257465",
"0.59762496",
"0.5961617",
"0.5925031",
"0.5882264",
"0.5868356",
"0.58659464",
"0.58658606",
"0.5847521",
"0.5836527",
"0.5832926",
"0.5825658",
"0.5822035",
"0.5785596... | 0.59962225 | 8 |
Parse a signature as a property getter, setter, or deleter. Checks that the decorator name matches one of {, .getter, .setter, .deleter} and that the corresponding signature is valid. | def wbWx(mWFP: str, mrMx: str, aadv: pytd.Signature) -> bool:
SCNJ = UAIJ(mWFP)
return mrMx in SCNJ and SCNJ[mrMx].arity == len(aadv.params) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gzUA(d6pt, aadv):\n NKcE = {'doc': '', 'index': d6pt, 'name': 'method{}'.format(d6pt), 'parameters': [], 'return': {'doc': ''}}\n NKcE['return']['fmt'], SGPK = aadv.split(':')\n NKcE['return']['typename'] = cCRh(NKcE['return']['fmt'])\n for YRbF, kN9s in enumerate(SGPK.split()):\n NKcE['para... | [
"0.5931514",
"0.5859101",
"0.5805071",
"0.5709817",
"0.56955075",
"0.5436168",
"0.54137933",
"0.534066",
"0.5294343",
"0.5215489",
"0.5208673",
"0.51889825",
"0.5171227",
"0.51415735",
"0.5120722",
"0.5047857",
"0.50046456",
"0.49243",
"0.4916308",
"0.48870003",
"0.48770997",... | 0.6093398 | 0 |
Convert the surface x value to a real world x value real x = surface x + start of surface | def KvRp(YKHO, WKvO):
return YKHO.x_start + WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gwTM(YKHO, WKvO):\n return WKvO - YKHO.x_start",
"def aEi0(WKvO: Union[float, int]) -> float:\n pass",
"def J1mO(YKHO):\n return -YUNn(Y_1E(YKHO._dipdir)) * Uyfy(Y_1E(YKHO._dipangle))",
"def h6wl(YKHO, WKvO):\n assert oyIN.all(WKvO >= YKHO.xmin)\n assert oyIN.all(WKvO <= YKHO.xmax)\n re... | [
"0.82019323",
"0.64204675",
"0.6265347",
"0.6263771",
"0.6241462",
"0.62035173",
"0.6156242",
"0.6151298",
"0.61436677",
"0.61358047",
"0.6098653",
"0.6073875",
"0.6069586",
"0.60226655",
"0.6006634",
"0.59872895",
"0.59724003",
"0.593863",
"0.5935774",
"0.5932687",
"0.592348... | 0.7363918 | 1 |
Obtains the Access Token from the Authorization Header. | def bIrX():
Jpbe = QePW.headers.get('Authorization', None)
if not Jpbe:
raise yHM3('authorization header is expected', 401)
SQ3m = Jpbe.split()
if SQ3m[0].lower() != 'bearer':
raise yHM3('authorization header must start with Bearer', 401)
elif len(SQ3m) == 1:
raise yHM3('toke... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def to2L(YKHO):\n dWDt = '%s:%s' % (YKHO.consumer_key, YKHO.consumer_secret)\n TlzB = WR89.b64encode(dWDt.encode('ascii'))\n QePW = VNUm(ogCv)\n QePW.add_header('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8')\n QePW.add_header('Authorization', 'Basic %s' % TlzB.decode('utf-8'))\n ... | [
"0.76205105",
"0.75136435",
"0.7504205",
"0.7411804",
"0.74109733",
"0.74007815",
"0.73775893",
"0.7373481",
"0.7343958",
"0.7343958",
"0.7343958",
"0.7339684",
"0.7339684",
"0.7319594",
"0.7300907",
"0.7290487",
"0.7290066",
"0.72802484",
"0.72648984",
"0.722099",
"0.7219498... | 0.74662924 | 3 |
This is called before each test. If you want to add more for your tests, Run `super().setUp() in your custom setUp() to obtain these. | def FCbF(YKHO) -> None:
kLeO = False
try:
YKHO.test_manager = nFZp()
kLeO = YKHO.test_manager.initialized
except Exception as e:
S0MI.exception(tTpl)
YKHO.assertTrue(kLeO, 'Test Manager setUp failed')
YKHO.jira = YKHO.test_manager.jira_admin
YKHO.jira_normal = YKHO.test_m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n super(HrO1, YKHO).setUp()",
"def FCbF(YKHO):\n super(HrO1, YKHO).setUp()",
"def FCbF(YKHO):\n super(HrO1, YKHO).setUp()",
"def FCbF(YKHO):\n DuvM.TestCase.setUp(YKHO)",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO) -> None:\n return super().setUp()",
"def FCbF(YKHO):\n ... | [
"0.8596208",
"0.8596208",
"0.8596208",
"0.8528563",
"0.85185117",
"0.85117286",
"0.84960437",
"0.84960437",
"0.84960437",
"0.84960437",
"0.84960437",
"0.84960437",
"0.84960437",
"0.84789634",
"0.8469332",
"0.84652156",
"0.84652156",
"0.84652156",
"0.84652156",
"0.84652156",
"... | 0.0 | -1 |
When we want to test the __init__ method of the jira.client.JIRA we don't need any external calls to get the fields. We don't need the features of a MagicMock, hence we don't use it here. | def IhHo(Ehsq):
Ehsq.setattr(TilI, 'fields', lambda *qIxc, **B2fa: []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO._jira_service = GoK1()",
"def FIMM(YKHO, *qIxc, **B2fa):\n YKHO.mock_generate_presigned_url: h8nf[str] = None\n YKHO.mock_list_objects_v2_lookup: dict = {}",
"def FIMM(YKHO, yPpE=Hy7s.environ.get('CI_JIRA_TYPE', 'Server')):\n YKHO.__dict__ = YKHO.__shared_state\n if not YK... | [
"0.6821842",
"0.67745346",
"0.66938925",
"0.66021323",
"0.65507627",
"0.6446061",
"0.63756126",
"0.62945443",
"0.62945443",
"0.62945443",
"0.6273672",
"0.62708664",
"0.62146133",
"0.6170817",
"0.6162551",
"0.60895956",
"0.6086202",
"0.60543746",
"0.6051877",
"0.60492843",
"0.... | 0.0 | -1 |
Plots a histogram of a given column If a Pandas Series is provided with the correlation values, it will be displayed in the title. | def f52L(nPrm, iVRZ, Pyrc=50, dNGY=None):
QrM1.figure(figsize=(12, 8))
nPrm[iVRZ].hist(bins=Pyrc)
if not dNGY is None:
BWXx = dNGY[iVRZ]
iVRZ = iVRZ + f' - {round(BWXx, 2)}'
QrM1.title(f'Distribution of {iVRZ}', fontsize=18)
QrM1.grid(False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FHey(Kiac, z0q4):\n Kiac[z0q4].hist(bins=20)\n QrM1.title('Histogram ' + z0q4)\n QrM1.show()",
"def yKTU(Kiac, z0q4):\n hkxX = rLdf.Series(Kiac[z0q4])\n Csk6 = rLdf.DataFrame({z0q4: hkxX})\n Csk6.apply(rLdf.value_counts).plot(kind='bar', subplots=True)\n QrM1.show()",
"def thJw(jQ3Z, z... | [
"0.7479431",
"0.7436839",
"0.7417593",
"0.7305975",
"0.7117947",
"0.6868064",
"0.68380946",
"0.68165255",
"0.68095374",
"0.6660218",
"0.664368",
"0.6637386",
"0.663674",
"0.66344094",
"0.66021824",
"0.6520128",
"0.6450774",
"0.6444252",
"0.6411971",
"0.6359968",
"0.63556755",... | 0.81019765 | 0 |
Initialize the class for finding concepts for datasets in multiple columns. | def FIMM(YKHO, BDYS, xM2q):
YKHO.concept_columns = hVYA.find_concept_columns(BDYS, xM2q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, __n6, n7FC=[]):\n YKHO.dataset = __n6\n YKHO.nominal_cat_columns = n7FC\n YKHO.cat_custom_nominals = []\n YKHO.remaining_cat_columns = []\n YKHO.df_etl = rLdf.DataFrame()",
"def FIMM(YKHO, WfCS=HpcE):\n YKHO.cols = WfCS",
"def FIMM(YKHO, RvYX=None):\n YKHO.concepts = RvYX",
... | [
"0.67331403",
"0.64105743",
"0.63851106",
"0.63851106",
"0.6363881",
"0.6227574",
"0.62199897",
"0.62199897",
"0.6168237",
"0.6113507",
"0.61102533",
"0.6094812",
"0.6069439",
"0.6063963",
"0.60632116",
"0.6049774",
"0.6024137",
"0.6024137",
"0.6011498",
"0.59987605",
"0.5983... | 0.7136749 | 0 |
Given camera intrinsic matrix calculate image plane coordinates of a real 3d point | def DId_(UqpO, t2_1, e12V=None, s0un=None, *, Kt_s=None) -> oyIN.ndarray:
UqpO = oyIN.r_[UqpO[:3], 1]
if Kt_s is None:
if e12V is None:
e12V = oyIN.eye(3)
if s0un is None:
s0un = oyIN.zeros(3)
Kt_s = oyIN.column_stack([e12V, s0un])
NFIp = t2_1 @ Kt_s @ UqpO
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eiqs(YKHO, jRFF):\n AOlJ = YKHO.config['camera_info']['focal_length_x']\n stDt = YKHO.config['camera_info']['focal_length_y']\n P6bq = int(-(AOlJ / jRFF.x) * jRFF.y)\n Ty9i = int(-(stDt / jRFF.x) * jRFF.z)\n return (P6bq, Ty9i)",
"def bNKA(xloK, e5FN):\n \"\"\"we use the same camera intrins... | [
"0.7210709",
"0.70942837",
"0.7047818",
"0.69961494",
"0.6809573",
"0.6736532",
"0.6722008",
"0.6671702",
"0.6636921",
"0.663169",
"0.6587555",
"0.654548",
"0.6538029",
"0.6489306",
"0.64284223",
"0.641274",
"0.64067507",
"0.6399518",
"0.6346184",
"0.6345562",
"0.6325554",
... | 0.0 | -1 |
Horizontal coordinate of principal point | def nFdY(YKHO) -> float:
assert YKHO.mtx is not None, 'intrinsic matrix is not assigned'
return YKHO.mtx[0, 2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def llhD(YKHO):\n return YKHO.__principal_point",
"def FS1V(YKHO) -> float:\n return (YKHO.left + YKHO.right) / 2",
"def FF3a(YKHO):\n return (YKHO.D - YKHO.determinant()) / YKHO.C",
"def aFnI(LTIa):\n WKvO = oyIN.array([XP5J[0] for XP5J in LTIa])\n H4fn = WKvO.mean()\n LVAh = oyIN.array([X... | [
"0.7536397",
"0.70685124",
"0.696587",
"0.6833968",
"0.66889983",
"0.66786265",
"0.66271484",
"0.657041",
"0.6547759",
"0.6536007",
"0.65183854",
"0.65183854",
"0.6507989",
"0.6475355",
"0.64448106",
"0.64140165",
"0.63953304",
"0.63674104",
"0.6326647",
"0.63147664",
"0.6302... | 0.0 | -1 |
conv2d returns a 2d convolution layer with full stride. | def gZ8A(YKHO, WKvO, XcU5):
return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_zE(YKHO, rb7a, M6vu, _0fC, hVLt=SU7A, YDYE=kZdx, FJYT=IRWS):\n return YKHO.add(yHwh(rb7a, M6vu, _0fC, hVLt, YDYE, FJYT))",
"def adXX(K8MZ, *qIxc, **B2fa):\n B2fa['use_bias'] = K8MZ.use_bias\n B2fa['kernel_regularizer'] = K8MZ.l2_regularizer\n return yHwh(*qIxc, **B2fa)",
"def b_zE(YKHO, *qIxc... | [
"0.7762944",
"0.7729757",
"0.7693895",
"0.7693895",
"0.762935",
"0.755952",
"0.75423235",
"0.75253934",
"0.74996185",
"0.7497662",
"0.7479321",
"0.7478032",
"0.7471439",
"0.7465642",
"0.7455609",
"0.74510777",
"0.74352723",
"0.74352723",
"0.74352723",
"0.74352723",
"0.7435272... | 0.7578933 | 5 |
weight_variable generates a weight variable of a given shape. | def LCSv(YKHO, ROpF):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
with ZylS.name_scope('reg'):
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n return ZylS.get_variable(name='weight', shape=ROpF, initializer=ZylS.truncated_normal_initializer(stddev=0.1))",
"def E9N2(ROpF):\n return ZylS.get_variable('weights', ROpF, initializer=ZylS.contrib.layers.xavier_initializer())",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, ... | [
"0.8430733",
"0.8416174",
"0.8408999",
"0.8343361",
"0.82988006",
"0.82945484",
"0.828571",
"0.827499",
"0.82513815",
"0.81629854",
"0.8158656",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
... | 0.79452163 | 51 |
bias_variable generates a bias variable of a given shape. | def KMH9(YKHO, ROpF):
RqgG = ZylS.constant(0.1, shape=ROpF)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG, name='bias')",
"def Y7ph(ROpF):\n with ZylS.name_scope('biases'):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n Es0b = ZylS.Variable(RqgG)\n return Es0b",
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, s... | [
"0.8450208",
"0.843371",
"0.84225553",
"0.8418631",
"0.83956254",
"0.8339686",
"0.8330452",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.8325915",
"0.8306395",
"0.8306395",
"0.83... | 0.81290865 | 43 |
include a new city into a state | def armT(accd):
lY0q = S8SU.get('City', accd)
if lY0q is None:
eTsH(404)
if not QePW.get_json():
return (pz3A({'error': 'Not a JSON'}), 400)
qv1X = QePW.get_json()
fbgZ = ['id', 'state_id', 'created_at', 'updated_at']
for G1Hx, Ty9i in qv1X.items():
if G1Hx not in fbgZ:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vZup(j5sA, QnmL, FDPT):\n geh0 = KuOe(j5sA, QnmL, FDPT)\n if geh0:\n k8wH.echo(f'{j5sA.upper()} has been added to list of cities')\n else:\n k8wH.echo(\"Run the 'init' command first\")",
"def cZft(ZuB6):\n nPrm = QePW.get_json()\n if nPrm is None:\n EQjl = {'error': 'Not a... | [
"0.7226517",
"0.70444065",
"0.69013995",
"0.6805381",
"0.67295945",
"0.6666436",
"0.6565631",
"0.6513703",
"0.6476767",
"0.6452856",
"0.6444562",
"0.6425355",
"0.6408585",
"0.63975394",
"0.6397142",
"0.6395858",
"0.6394196",
"0.6388321",
"0.63840914",
"0.63821876",
"0.6373954... | 0.64366764 | 11 |
Returns DataFrame with photometry from observations organized. This DataFrame should be able to be read back in to reconstruct the observation. | def xpSY(YKHO):
jQ3Z = rLdf.DataFrame()
mWFP = []
Ebru = []
B1Wx = []
FOSW = []
WzXq = []
s2Ni = []
Xugt = []
Qth0 = []
for z1Rg in YKHO._observations:
for KCHu in z1Rg.sources:
mWFP.append(z1Rg.name)
Ebru.append(z1Rg.band)
B1Wx.append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h2an(ytgA, JN9H=LEl6):\n dgdR = Y9T4(ytgA)\n I1kC = oyIN.arange(0, len(dgdR), 7)\n uX8I = [dgdR[or8S] for or8S in I1kC]\n return rLdf.DataFrame(uX8I, columns=JN9H)",
"def RJPt(qTzW: pd.DataFrame, Q5J1: str='keplerian') -> rLdf.DataFrame:\n dc4k = qTzW['orbit_name'].values\n EFnh = ub9J(qTzW... | [
"0.6069631",
"0.5931772",
"0.58882666",
"0.5835662",
"0.57938194",
"0.5791518",
"0.5763553",
"0.575593",
"0.5661773",
"0.5614531",
"0.5601746",
"0.5551589",
"0.5547005",
"0.55054283",
"0.5466715",
"0.53664374",
"0.5365893",
"0.53633684",
"0.534541",
"0.5314678",
"0.5309661",
... | 0.5507156 | 13 |
Returns a metadata dictionary for the commissioned devices. | def d9U6(tvqc, QpfX):
ry2m = tvqc['requestContext']
if ry2m['authorizer']['claims']['email_verified']:
D3lj = ry2m['authorizer']['claims']['email'].lower()
else:
return geh0(400, 'Email not verified.')
H0Hu = iVGz.resource('dynamodb', region_name='us-east-2')
tyNF = H0Hu.Table('CANLo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWuV(YKHO):\n return {'identifiers': {(Sugg, YKHO._mac_address)}, 'name': YKHO._device_name, 'manufacturer': YhHo, PlJk: eLt7}",
"def GWuV(YKHO):\n return {'identifiers': {(Sugg, YKHO._id)}, 'name': YKHO._device_name, 'manufacturer': YhHo, 'model': _vtG[YKHO._model]}",
"def GWuV(YKHO):\n return {'... | [
"0.7044622",
"0.7025504",
"0.69517154",
"0.69069576",
"0.6891868",
"0.6879238",
"0.6879238",
"0.6870025",
"0.68606985",
"0.6841488",
"0.68377215",
"0.6834115",
"0.67666984",
"0.67666984",
"0.6764403",
"0.67455417",
"0.67313266",
"0.67231005",
"0.6713628",
"0.66908884",
"0.667... | 0.0 | -1 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.63939756 | 41 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.63939756 | 40 |
Get the WiFi Aware capabilities from the specified device. The capabilities are a dictionary keyed by aware_const.CAP_ keys. | def YMAB(LLmd):
return qQXR.loads(LLmd.adb.shell('cmd wifiaware state_mgr get_capabilities')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VuGW(YKHO, PsjQ):\n PsjQ['wires'] = 1\n M4N3 = B2Ja.device(**PsjQ)\n Fd1k = M4N3.__class__.capabilities()\n assert isinstance(Fd1k, dict)",
"def Vvb0() -> dict:\n LYWX: dict = tCDn()\n t4XU: dict = aZYk()\n en9E: dict = {}\n en9E.update(LYWX)\n en9E['automationName'] = 'UiAutomator... | [
"0.5967694",
"0.5888344",
"0.5637922",
"0.55223954",
"0.5409772",
"0.54065394",
"0.53999317",
"0.5344846",
"0.5340563",
"0.53033453",
"0.52861047",
"0.5279408",
"0.52533925",
"0.5249681",
"0.5248137",
"0.52271193",
"0.52089685",
"0.52070487",
"0.51972026",
"0.51972026",
"0.51... | 0.68628514 | 0 |
The ID of the gateway. | def iczE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'gateway_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iczE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'gateway_id')",
"def iczE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'gateway_id')",
"def iczE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'gateway_id')",
"def An1a(YKHO):\n raise NotImplementedError",
"def iczE(YKHO) ->... | [
"0.89110786",
"0.89110786",
"0.89110786",
"0.8581594",
"0.847077",
"0.81234276",
"0.7751731",
"0.77217525",
"0.75156295",
"0.7250403",
"0.72332513",
"0.72332513",
"0.72332513",
"0.72332513",
"0.72332513",
"0.72332513",
"0.7184363",
"0.71692514",
"0.70278335",
"0.70269084",
"0... | 0.8690055 | 3 |
The route table association ID. | def eOeN(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'association_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tuX9(YKHO) -> str:\n return qe4Y.get(YKHO, 'association_transit_gateway_route_table_id')",
"def Fknb(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'route_table_id')",
"def Fknb(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'route_table_id')",
"def Fknb(YKHO) -> qe4Y.Input[str]:\n return qe... | [
"0.7678121",
"0.7349425",
"0.7284882",
"0.71922463",
"0.6934239",
"0.68523496",
"0.66903615",
"0.66696376",
"0.66504306",
"0.66504306",
"0.66258943",
"0.66183",
"0.6507435",
"0.64899856",
"0.64801764",
"0.64496917",
"0.6439157",
"0.6380119",
"0.6380119",
"0.63735855",
"0.6372... | 0.6834989 | 6 |
The ID of the gateway. | def iczE(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'gateway_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iczE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'gateway_id')",
"def iczE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'gateway_id')",
"def iczE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'gateway_id')",
"def An1a(YKHO):\n raise NotImplementedError",
"def iczE(YKHO) -> h8... | [
"0.8690055",
"0.8690055",
"0.8690055",
"0.8581594",
"0.847077",
"0.81234276",
"0.7751731",
"0.77217525",
"0.75156295",
"0.7250403",
"0.72332513",
"0.72332513",
"0.72332513",
"0.72332513",
"0.72332513",
"0.72332513",
"0.7184363",
"0.71692514",
"0.70278335",
"0.70269084",
"0.69... | 0.89110786 | 1 |
Test login for valid user | def UHFF(YKHO):
YKHO.credentials = {'username': 'testuser', 'password': 'secretpwd'}
Wqvn.objects.create_user(**YKHO.credentials)
geh0 = YKHO.client.post(gxEw('login'), YKHO.credentials, follow=True)
YKHO.assertEqual(geh0.status_code, 200)
YKHO.assertTrue(geh0.context['user'].is_authenticated) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hBsi(YKHO):\n pass",
"def xEDx(YKHO):\n dsbO = mv1M.login('tester1', 'password')\n YKHO.assertTrue(dsbO)\n YKHO.assertEqual(dsbO.username, 'tester1')",
"def hjC8(YKHO):\n jvSB = ''.join(tuKI.choices(vIwR.printable, k=12))\n while len(mv1M.objects.filter(email=jvSB)) > 0:\n jvSB = '... | [
"0.8322912",
"0.8304151",
"0.8172455",
"0.8171982",
"0.80792665",
"0.8026065",
"0.8024723",
"0.8004012",
"0.7983647",
"0.7975053",
"0.7962593",
"0.7947415",
"0.7942342",
"0.79389715",
"0.7931073",
"0.79162014",
"0.7910154",
"0.79024893",
"0.7893791",
"0.7892203",
"0.7887929",... | 0.0 | -1 |
! Function for posting an answer which is part of the request body this function extracts the answer details from the request body, then creates a new entry in the answer table with the corresponding details. It also creates a notification for a user whose question has been provided an answer and increase the field num... | def DOmG(QePW):
ZMzz = v6_r(data=QePW.data)
if ZMzz.is_valid():
TK2h = ZMzz.validated_data
vC92 = TK2h['user']
bAls = TK2h['question']
Td1T = bAls.user
ANfV = X4qQ(user=vC92, username=vC92.name, userdepartment=vC92.department, userbio=vC92.bio, userdegree=vC92.degree, use... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QgmR(JVBp):\n Xg_g = Zul5()\n WbAn = QePW.get_json(force=True)\n if 'answer' not in WbAn.keys():\n return uend.custom_response(400, 'Bad Request', \"Request must contain 'answer' data\")\n ANfV = WbAn['answer'].strip()\n if len(ANfV) == 0:\n return uend.custom_response(400, 'Bad Re... | [
"0.7270187",
"0.69506955",
"0.6918983",
"0.68984884",
"0.6806304",
"0.67854035",
"0.65957326",
"0.65738183",
"0.6550947",
"0.64978933",
"0.64840496",
"0.6401308",
"0.63984627",
"0.63708913",
"0.6366505",
"0.63418984",
"0.63372236",
"0.63320524",
"0.6277796",
"0.6228475",
"0.6... | 0.74658585 | 0 |
! Function to add a vote to some answer takes a vote object as part of the request body, extracts the vote object and creates a new entry in the vote table. Also, updates the total votes for the answer and the total votes for the user who gave the answer. Also creates a new notification for the user who gave the answer... | def v4tp(QePW):
ZMzz = xNPo(data=QePW.data)
if ZMzz.is_valid():
ZMzz.save()
Wyiq = ZMzz.validated_data
ANfV = Wyiq['answer']
Td1T = ANfV.user
vC92 = Wyiq['user']
bAls = ANfV.question
GUEx = Wyiq['upvote_downvote']
if GUEx:
ANfV.votes = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QgmR(JVBp):\n Xg_g = Zul5()\n WbAn = QePW.get_json(force=True)\n if 'answer' not in WbAn.keys():\n return uend.custom_response(400, 'Bad Request', \"Request must contain 'answer' data\")\n ANfV = WbAn['answer'].strip()\n if len(ANfV) == 0:\n return uend.custom_response(400, 'Bad Re... | [
"0.70282423",
"0.68223417",
"0.6743317",
"0.6687935",
"0.6644664",
"0.6623267",
"0.65760225",
"0.6557779",
"0.6338976",
"0.62908494",
"0.6258942",
"0.6191841",
"0.6084817",
"0.6070781",
"0.60479945",
"0.6027675",
"0.6009092",
"0.5994712",
"0.5993082",
"0.59825045",
"0.5971905... | 0.7140759 | 0 |
Solar Azimuth Angle, Cell to Sun. in degrees. | def xpVp(YKHO):
SnCn = 0.01
return oyIN.multiply(YKHO.extractByName('Solar_Azimuth (16-bit integer)'), SnCn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0YY(YKHO):\n YKHO.solarZAngle = 90 - YKHO.root['SUN_ELEVATION']\n YKHO.solarAAngle = YKHO.root['SUN_AZIMUTH']",
"def wmRf(Lf8S, ZXBn, Qfcr, icE8):\n hPuM = SBiV(Lf8S, ZXBn, Qfcr, icE8)\n nRi1 = oyIN.rad2deg(oyIN.arccos(hPuM))\n try:\n nRi1.name = 'aoi'\n except AttributeError:\n ... | [
"0.670302",
"0.64734524",
"0.6421817",
"0.6348897",
"0.6211689",
"0.6164279",
"0.61285",
"0.61272204",
"0.6106037",
"0.6085178",
"0.6009376",
"0.5956761",
"0.59384006",
"0.59327143",
"0.58805084",
"0.5834234",
"0.5834092",
"0.5823503",
"0.58110064",
"0.5789666",
"0.5726066",
... | 0.5915649 | 14 |
Return a numpy array for the 'Land or Water Path' from bit 7,6. | def mxFg(YKHO):
I4Ka = YKHO.extractByName('Cloud_Mask_QA (8-bit integer)')
YB8B = oyIN.unpackbits(I4Ka)
YB8B = YB8B.reshape(YB8B.size / 8, 8).reshape(YKHO.size1k[0], YKHO.size1k[1], 8)
YTkA = YB8B[:, :, 0:2]
YTkA = oyIN.squeeze(oyIN.packbits(YTkA, axis=-1), axis=(2,))
return YTkA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qw7D(YKHO):\n Aofo = oyIN.zeros((3, YKHO.X, YKHO.Y), dtype=float)\n for WKvO, LVAh in YKHO.path:\n Aofo[0, WKvO, LVAh] = 1\n ajyE, ZF3t = YKHO.head\n Aofo[1, ajyE, ZF3t] = 1\n TeVK, VkCh = YKHO.food\n Aofo[2, TeVK, VkCh] = 1\n return Aofo",
"def trnP(YKHO):\n P8oC = oyIN.array(... | [
"0.5840888",
"0.5532868",
"0.5491814",
"0.5472258",
"0.5458914",
"0.54438436",
"0.5432192",
"0.541956",
"0.53463393",
"0.5337628",
"0.5310269",
"0.52994823",
"0.5292133",
"0.5193408",
"0.51831096",
"0.51787615",
"0.5141415",
"0.5121279",
"0.5091849",
"0.50849646",
"0.50805384... | 0.4944654 | 33 |
Performs a random spatial shift of a Numpy image tensor. Arguments | def _0rL(WKvO, l7U9, J1f6, KObo=1, Jdue=2, UJgg=0, v0ak='nearest', c4yI=0.0):
MKlR, yzQ0 = (WKvO.shape[KObo], WKvO.shape[Jdue])
UShr = oyIN.random.uniform(-J1f6, J1f6) * MKlR
Yrvv = oyIN.random.uniform(-l7U9, l7U9) * yzQ0
sDby = oyIN.array([[1, 0, UShr], [0, 1, Yrvv], [0, 0, 1]])
xIkP = sDby
WKv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m2VA(YKHO, LNo8):\n UShr = oyIN.random.uniform(-YKHO.shift_range[0], YKHO.shift_range[0])\n Yrvv = oyIN.random.uniform(-YKHO.shift_range[1], YKHO.shift_range[1])\n sDby = oyIN.array([[1, 0, UShr], [0, 1, Yrvv], [0, 0, 1]])\n cFTJ = sDby\n LNo8 = YKHO.__apply_transform(LNo8, cFTJ)\n return LNo... | [
"0.7458934",
"0.6913783",
"0.64252216",
"0.63183457",
"0.6275694",
"0.622344",
"0.6215305",
"0.6189954",
"0.6157816",
"0.6154517",
"0.60692036",
"0.6062234",
"0.6061865",
"0.602769",
"0.60200816",
"0.5973772",
"0.59493536",
"0.59395236",
"0.5893054",
"0.5867615",
"0.57867193"... | 0.6030272 | 13 |
Dump a GeoJSONlike `dict` to a polygon WKB string. | def fZbM(YEnM, x2Dk, e5kH):
jNOo = YEnM['coordinates']
SLBp = jNOo[0][0]
P9o9 = len(SLBp)
i4ic, FsFX, Ph3p = WeNA('Polygon', P9o9, x2Dk, e5kH)
i4ic += BlNT.pack('%sl' % Ph3p, len(jNOo))
for wDuC in jNOo:
i4ic += BlNT.pack('%sl' % Ph3p, len(wDuC))
for SLBp in wDuC:
i4i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fZbM(YEnM, x2Dk, e5kH):\n jNOo = YEnM['coordinates']\n SLBp = jNOo[0][0]\n P9o9 = len(SLBp)\n i4ic, FsFX, Ph3p = WeNA('Polygon', P9o9, x2Dk, e5kH)\n i4ic += BlNT.pack('%sl' % Ph3p, len(jNOo))\n for wDuC in jNOo:\n i4ic += BlNT.pack('%sl' % Ph3p, len(wDuC))\n for SLBp in wDuC:\n ... | [
"0.7516431",
"0.72093433",
"0.7045443",
"0.665707",
"0.6464493",
"0.63721824",
"0.6284668",
"0.62399846",
"0.62314963",
"0.61897945",
"0.6099647",
"0.60847086",
"0.60270876",
"0.60142237",
"0.59845215",
"0.5973596",
"0.5967388",
"0.5948839",
"0.5936757",
"0.5911291",
"0.59090... | 0.74997675 | 1 |
Dump a GeoJSONlike `dict` to a multipolygon WKB string. | def iGGq(YEnM, x2Dk, e5kH):
jNOo = YEnM['coordinates']
SLBp = jNOo[0][0][0]
P9o9 = len(SLBp)
i4ic, FsFX, Ph3p = WeNA('MultiPolygon', P9o9, x2Dk, e5kH)
TEEB = gIkS[qJFY.get(P9o9)]['Polygon']
if x2Dk:
TEEB = K6tb + TEEB
else:
TEEB = k4XQ + TEEB[::-1]
i4ic += BlNT.pack('%sl'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iGGq(YEnM, x2Dk, e5kH):\n jNOo = [YEnM['rings']]\n SLBp = jNOo[0][0][0]\n P9o9 = len(SLBp)\n i4ic, FsFX, Ph3p = WeNA('MultiPolygon', P9o9, x2Dk, e5kH)\n TEEB = gIkS[qJFY.get(P9o9)]['Polygon']\n if x2Dk:\n TEEB = K6tb + TEEB\n else:\n TEEB = k4XQ + TEEB[::-1]\n i4ic += BlNT... | [
"0.7117604",
"0.6837046",
"0.63944",
"0.63737786",
"0.6289251",
"0.6146649",
"0.60026234",
"0.5939009",
"0.58964837",
"0.5893889",
"0.5869025",
"0.5866549",
"0.583601",
"0.58341527",
"0.5824722",
"0.5723416",
"0.57217777",
"0.57089037",
"0.56933427",
"0.5676398",
"0.5616744",... | 0.71684515 | 0 |
Push element x to the back of queue. | def _jXH(YKHO, WKvO):
YKHO.myq.append(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)",
"def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()",
"def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)... | [
"0.8627964",
"0.847768",
"0.8414127",
"0.827978",
"0.8259876",
"0.82024014",
"0.81944746",
"0.81445456",
"0.81445456",
"0.81041193",
"0.81004506",
"0.80947775",
"0.805236",
"0.805236",
"0.8037114",
"0.8033887",
"0.79936236",
"0.79584146",
"0.7948628",
"0.7944436",
"0.7899758"... | 0.77901447 | 26 |
Removes the element from in front of queue and returns that element. | def BEuN(YKHO):
return YKHO.myq.pop(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None",
"def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()",
"def BEuN(YKHO):\n if len(... | [
"0.85555553",
"0.8329695",
"0.81405824",
"0.80353034",
"0.791703",
"0.78865194",
"0.7882125",
"0.7802728",
"0.77982587",
"0.7746587",
"0.7715509",
"0.77124494",
"0.7696993",
"0.76691186",
"0.76638514",
"0.7662351",
"0.76441866",
"0.7642656",
"0.76400787",
"0.7635912",
"0.7620... | 0.0 | -1 |
Get the front element. | def T7C_(YKHO):
return YKHO.myq[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnzS(YKHO):\n return YKHO.frontelem.elem",
"def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]",
"def TA6u(YKHO):\n return YKHO.storage[0]",
"def VnzS(YKHO):\n return YKHO.head",
"def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]",
"def qnv... | [
"0.87835056",
"0.83788836",
"0.82574433",
"0.80897844",
"0.8012526",
"0.7981897",
"0.786668",
"0.783555",
"0.7815892",
"0.77942365",
"0.7735508",
"0.769147",
"0.76801795",
"0.76465446",
"0.7630563",
"0.75877416",
"0.7572392",
"0.75053453",
"0.74844474",
"0.74813557",
"0.74660... | 0.0 | -1 |
Return the average deviation from the median. | def BdJK(YKHO, nPrm, BjRM):
exwG = nPrm.size
V3BG = oyIN.sum(oyIN.absolute(nPrm - BjRM) / exwG)
return V3BG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kyK9(YKHO):\n YWTL = YKHO.soup.select('li.interval')\n Olfn = YKHO.get_mi_per_px()\n eFr6, V1Pv = YKHO.get_annual_distances(YWTL, Olfn)\n return (oyIN.median(eFr6[V1Pv:]), oyIN.std(eFr6[V1Pv:]))",
"def DAvx(YKHO):\n return YKHO.median_absolute_deviation(YKHO.error)",
"def BjRM(YKHO):\n Oz... | [
"0.77716756",
"0.73895603",
"0.7321508",
"0.7303728",
"0.7275513",
"0.724558",
"0.7231499",
"0.7229184",
"0.72106695",
"0.71712923",
"0.7169399",
"0.7154934",
"0.7108244",
"0.7095864",
"0.7083718",
"0.7046896",
"0.7042429",
"0.70407414",
"0.70124984",
"0.70123893",
"0.7008230... | 0.8546976 | 0 |
Draw human skeleton on img_disp inplace. | def JmFt(YKHO, mHgz, tKkL):
mHgz = Yxqj.draw_humans(mHgz, tKkL, imgcopy=False)
if eZG1:
XC5k.putText(mHgz, 'fps = {:.1f}'.format(1.0 / (ITS7.time() - YKHO._prev_t)), (10, 50), XC5k.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 255), 1)
YKHO._prev_t = ITS7.time() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Abni(mHgz, Mgzt, tKkL, Kw05, n5Gu, qTV5):\n Mkmy, Z9rn = mHgz.shape[0:2]\n c_bC = int(1.0 * Z9rn * (oCQ9 / Mkmy))\n mHgz = XC5k.resize(mHgz, dsize=(c_bC, oCQ9))\n n5Gu.draw(mHgz, tKkL)\n '\\n # Draw bounding box and label of each person\\n if len(dict_id2skeleton):\\n for id, label ... | [
"0.67551374",
"0.64896214",
"0.6411433",
"0.6279035",
"0.6214615",
"0.618693",
"0.61708707",
"0.6102122",
"0.6101344",
"0.60743153",
"0.6035737",
"0.6032772",
"0.6030858",
"0.5988021",
"0.59770185",
"0.5973362",
"0.5966134",
"0.5943283",
"0.5943283",
"0.59278804",
"0.5915056"... | 0.64669776 | 2 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew):
d6pt = H5ew % YKHO.capacity
Q6kx = YKHO.hashMap[d6pt]
while Q6kx:
if Q6kx.key == H5ew:
return Q6kx.val
Q6kx = Q6kx.next
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap:\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n return YKHO.hash_map.get(H5ew, -1)",
"def NMoC(YKHO, H5ew: int) -> int:\n or8S = YKHO.hashf(H5ew)\n DpUl = YKHO.map[or8S]\n while D... | [
"0.7847906",
"0.7573212",
"0.75311625",
"0.7468432",
"0.74597526",
"0.7427548",
"0.74009144",
"0.73951495",
"0.7341652",
"0.7307585",
"0.7252175",
"0.7242039",
"0.7225773",
"0.71834993",
"0.7172031",
"0.71694845",
"0.7141172",
"0.7086278",
"0.70378774",
"0.69592535",
"0.68344... | 0.64892024 | 33 |
Recursively merges two yaml produced data structures, a more specific input (`specific`) and defaults (`default`). | def nSnN(_Qyh, WmM4):
if isinstance(_Qyh, dict) and isinstance(WmM4, dict):
for G1Hx, Ty9i in WmM4.iteritems():
if G1Hx not in _Qyh:
_Qyh[G1Hx] = Ty9i
else:
_Qyh[G1Hx] = nSnN(_Qyh[G1Hx], Ty9i)
return _Qyh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jyo0(wOGa, muwo):\n GhpT = [int, float, exCv, str, QMSQ]\n rm6b = [list, dict]\n\n def vGZu(jzdc, Fg_i, pmON=None):\n \"\"\"merges b into a\"\"\"\n if pmON is None:\n pmON = []\n for H5ew in Fg_i:\n if H5ew in jzdc:\n if isinstance(jzdc[H5ew], ... | [
"0.70470583",
"0.6738242",
"0.672447",
"0.6562648",
"0.6542875",
"0.6531298",
"0.64976335",
"0.64013994",
"0.6319656",
"0.62845314",
"0.62790823",
"0.6275767",
"0.6226835",
"0.61703295",
"0.6161679",
"0.6129222",
"0.6116592",
"0.6093188",
"0.6084537",
"0.60756683",
"0.6061976... | 0.73503673 | 0 |
Computes the forward pass for a layer of rectified linear units (ReLUs). | def wN5Y(YKHO, EcVT):
YKHO.X = EcVT
YKHO.X[YKHO.X <= 0] = 0
return YKHO.X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO = ht2j.from_numpy(WKvO).type(ht2j.FloatTensor).unsqueeze(0)\n WKvO = ht2j.autograd.Variable(WKvO)\n WKvO = vuvg.relu(YKHO.l1(WKvO))\n WKvO = YKHO.l2(WKvO)\n return WKvO",
"def KVH6(YKHO, WKvO: Tensor) -> llWB:\n return StA9.reglu(WKvO)",
"def drfk(YKHO):\n\n de... | [
"0.6679781",
"0.66286653",
"0.6547163",
"0.6460596",
"0.64428824",
"0.64364123",
"0.63979214",
"0.6371656",
"0.6319996",
"0.63163096",
"0.6305067",
"0.6300998",
"0.62817127",
"0.62416285",
"0.62340057",
"0.6208523",
"0.6186704",
"0.61818707",
"0.6181222",
"0.61805546",
"0.618... | 0.59722906 | 39 |
Respond appropriately if any aliens have reached an edge. | def YSO3(tJm0, SaI9):
for oeTy in SaI9.sprites():
if oeTy.check_edges():
kS1e(tJm0, SaI9)
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break",
"def DjwX(dlM1, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(dlM1, SaI9)\n break",
"def YSO3(SaI9, tJm0):\n for oeTy... | [
"0.69842577",
"0.69295585",
"0.6900242",
"0.6862109",
"0.6806027",
"0.6752803",
"0.6739069",
"0.666424",
"0.6662539",
"0.664193",
"0.6635844",
"0.6624163",
"0.6624163",
"0.6609223",
"0.6609223",
"0.66077405",
"0.6571335",
"0.6571335",
"0.6571335",
"0.6571335",
"0.6561972",
... | 0.6709314 | 9 |
Drop the entire fleet, and change the fleet's direction. | def kS1e(tJm0, SaI9):
for oeTy in SaI9.sprites():
oeTy.rect.y += tJm0.fleet_drop_speed
tJm0.fleet_direction *= -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ez7i(YKHO):\n for oeTy in YKHO.__aliens.sprites():\n oeTy.rect.y += oeTy.getDropSpeed()\n YKHO.__settings.set_fleet_direction(YKHO.__settings.get_fleet_direction() * -1)",
"def e4Wr(YKHO):\n for kEC0 in YKHO.planes.sprites():\n kEC0.rect.y += YKHO.settings.fleetDropSpeed\n YKHO.sett... | [
"0.7510046",
"0.73015875",
"0.70691884",
"0.70430076",
"0.69638866",
"0.68668634",
"0.68668634",
"0.68668634",
"0.6809226",
"0.6661415",
"0.6613058",
"0.6577845",
"0.6577845",
"0.6577845",
"0.6549812",
"0.65331244",
"0.6525481",
"0.64874405",
"0.6484682",
"0.6461236",
"0.6458... | 0.64754486 | 20 |
Return list of local addresses. | def wYMF(YKHO):
return list(YKHO.ip_local.keys()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUu6():\n Mnxw = []\n for jEa8 in bT5T.interfaces():\n for mLim in [bT5T.AF_INET, bT5T.AF_INET6]:\n Mnxw += [(mLim, YRbF['addr']) for YRbF in bT5T.ifaddresses(jEa8).setdefault(mLim, [])]\n return Mnxw",
"def wYMF() -> x1iM[str]:\n aaGI = []\n for wohN in bT5T.interfaces():\n ... | [
"0.7924884",
"0.7833339",
"0.7374377",
"0.7300477",
"0.7188395",
"0.7185443",
"0.71661544",
"0.7061863",
"0.7039246",
"0.6981584",
"0.69657034",
"0.6963058",
"0.688065",
"0.6879627",
"0.6865491",
"0.6861133",
"0.6861133",
"0.6861133",
"0.6861133",
"0.6835173",
"0.68244475",
... | 0.76149696 | 2 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Return the current temperature. | def CMHP(YKHO):
return YKHO._h.d[YKHO.index].CurrentTemperature | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CMHP(YKHO):\n return YKHO._current_temp",
"def CMHP(YKHO):\n return YKHO._cur_temp",
"def CMHP(YKHO):\n return YKHO._cur_temp",
"def CMHP(YKHO):\n return YKHO._temperature",
"def CMHP(YKHO) -> float:\n return YKHO.device['sensors']['temperature']",
"def CMHP(YKHO):\n return YKHO._cu... | [
"0.88459253",
"0.8834011",
"0.8834011",
"0.8827252",
"0.88014287",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8781482",
"0.87779963",
"0.877693",
"0.87618834",
"0.875637",
"0.87354743",
"0.8715311",
... | 0.8586484 | 38 |
Calls the super class constructor | def FIMM(YKHO):
_HVP.__init__(YKHO)
YKHO.prompt = '>>> '
YKHO.my_name = 'unknown'
YKHO.controller = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n super().__init__(*qIxc, **B2fa)",
"def l_xx(YKHO):\n raise NotImplementedError(bGrB('subclasses must implement construct()!'))",
"def FIMM(YKHO, *qIxc, **B2fa):\n pass",
"def FIMM(YKHO, *qIxc, **B2fa):\n super().__init__(YKHO, *qIxc, **B2fa)",
"def FIMM(YKHO, *q... | [
"0.76435864",
"0.7638405",
"0.75990874",
"0.75912434",
"0.7564291",
"0.7564291",
"0.7536448",
"0.75328356",
"0.75218457",
"0.7496525",
"0.7496406",
"0.74867994",
"0.7481533",
"0.7459799",
"0.74589753",
"0.74475557",
"0.74475557",
"0.74475557",
"0.74475557",
"0.74475557",
"0.7... | 0.0 | -1 |
Get a list of ngram tuples representing a list of tokens | def MvVN(s2mk, sawX, nVS2):
gOBC = []
for YRbF in range(sawX, nVS2 + 1):
gOBC.extend(list(pCSA(s2mk, YRbF)))
return gOBC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pCSA(s2mk, T4Wy):\n for YRbF in range(len(s2mk) - T4Wy + 1):\n yield tuple(s2mk[YRbF:YRbF + T4Wy])",
"def HyjZ(s2mk: List[str], exwG: Union[int, Tuple[int]]) -> iu5r[AzJI[str]]:\n exwG = range(exwG + 1) if isinstance(exwG, int) else exwG\n return eNCK(*(zip(*[s2mk[YRbF:] for YRbF in range(xVV... | [
"0.81108236",
"0.7858278",
"0.7802391",
"0.7772603",
"0.74927485",
"0.73219573",
"0.7268528",
"0.72532415",
"0.7247932",
"0.71918726",
"0.7124492",
"0.7086897",
"0.7065333",
"0.7061451",
"0.7003603",
"0.6945828",
"0.6945643",
"0.69261926",
"0.6891078",
"0.6887795",
"0.6850486... | 0.65217066 | 62 |
return a list of ngrams for a passage, where sentence boundaries are respected | def cyq4(lnDN, sawX=3, nVS2=10, Rt_s=False, cKm3=False, *qIxc, **B2fa):
Rhv4 = N3rN(lnDN)
HyjZ = []
for yAmx in Rhv4:
DJGF = dFss(yAmx)
if Rt_s:
DJGF = [GIN8 for GIN8 in DJGF if GIN8 not in vIwR.punctuation]
if cKm3:
DJGF = [GIN8.lower() for GIN8 in DJGF]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RisN(_dZy, exwG=2, X7zS=False, CZBi=False):\n pCSA = []\n V22M = _dZy.split()\n if exwG == 1:\n return V22M\n if X7zS:\n V22M = ['<start>'] + V22M + ['<end>']\n ywwl = len(V22M)\n for YRbF in range(exwG - 1, ywwl):\n u8Mh = V22M[YRbF - exwG + 1:YRbF + 1]\n if CZBi:... | [
"0.71723497",
"0.7057793",
"0.7023324",
"0.7015315",
"0.7015315",
"0.70106435",
"0.7009142",
"0.69888425",
"0.6966646",
"0.69626516",
"0.69525117",
"0.694825",
"0.6928749",
"0.6928383",
"0.6921684",
"0.69171435",
"0.6906253",
"0.6900548",
"0.6879177",
"0.6872599",
"0.6864522"... | 0.7270569 | 0 |
Function takes in a sequence, start and end point to sort the elements of the sequence between and including start and end. Start and end are required for algorithm, but will default to entire sequence if no start and end indices are passed. Initiate 'pivot' at start (first element by default or at the index passed to ... | def vdyO(Q6uT, nEeK=0, ekgN='whole'):
UXdh = 0
K88L = 0
pKvt = [YRbF for YRbF in Q6uT]
UXdh += 1
YY7L, wEf2, UXdh, K88L = IleQ(Q6uT, UXdh, K88L, pKvt)
UXdh += 2
K88L += 2
if YY7L == True and wEf2 != None:
print('For input: %s' % str(pKvt))
print(' Assignments: %d' % UXd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lguw(Q6uT, yKcO, Os4s):\n if Os4s - yKcO >= 2:\n jPVB = zLGb(Q6uT, yKcO, Os4s)\n LEev, Xyq7 = C1vd(Q6uT, yKcO, Os4s, Q6uT[jPVB])\n lguw(Q6uT, yKcO, LEev)\n lguw(Q6uT, Xyq7, Os4s)",
"def BA9O(YKHO, yKcO, Os4s):\n if yKcO >= Os4s:\n return\n ewCu = yKcO\n csQL = Y... | [
"0.7469999",
"0.7038398",
"0.69871444",
"0.6963599",
"0.6944085",
"0.6892982",
"0.67857605",
"0.67268646",
"0.67122954",
"0.66666365",
"0.6666556",
"0.66433567",
"0.66328996",
"0.6608228",
"0.6564463",
"0.65214694",
"0.6515305",
"0.6498793",
"0.6466307",
"0.6447595",
"0.64331... | 0.6279809 | 26 |
Create profile for newely created user | def euOS(vC92, **B2fa):
if B2fa['created']:
CBIr = B2fa['instance']
z39Z = SYRW(user=CBIr)
z39Z.start_work = qcWV.date.today()
CBIr.is_active = False
CBIr.save()
z39Z.save()
from activation.models import ActivationKey
ibDM = ActivationKey.objects.creat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n SYRW.objects.create(user=KAOR)",
"def euOS(YKHO):\n zR3h = BFpK.objects.create(user=YKHO, biography='')",
"def sxXS(vC92, **B2fa):\n z39Z = BFpK(user=B2fa['user'])\n z39Z.save()",
"def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n S... | [
"0.8307331",
"0.8285756",
"0.8202292",
"0.8148825",
"0.81465715",
"0.81132144",
"0.81132144",
"0.81132144",
"0.81132144",
"0.80867183",
"0.8033128",
"0.80190337",
"0.8010059",
"0.79984885",
"0.7994599",
"0.7988198",
"0.7976542",
"0.79591674",
"0.79498214",
"0.7949481",
"0.794... | 0.7569848 | 51 |
Returns a URLlike label for this database. | def W0tD(YKHO):
return '%s:%s' % (YKHO.get_ssh_userhost_string(), YKHO.db_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXqs(YKHO, efKw):\n return YKHO.uri_format(efKw)",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
... | [
"0.726014",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0.6931513",
"0... | 0.0 | -1 |
sample from truncated normal, trunctated to range [L,R] NOTE this takes STD DEV (not variance!) use L=0, R=100 to prettygood approximate [0,+inf) | def d5px(JBMS, ifkm, aPd6, A3Vt):
assert A3Vt >= aPd6
aPd6, A3Vt = (rVnq((aPd6 - JBMS) / ifkm), rVnq((A3Vt - JBMS) / ifkm))
Mkmy = oyIN.random.random() * (A3Vt - aPd6) + aPd6
return JBMS + ifkm * VKvl(Mkmy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AYdw(LSh8, CN9P, yGTL, BFge):\n if rLdf.isnull(yGTL):\n yGTL = oyIN.mean([LSh8, CN9P])\n else:\n yGTL = float(yGTL)\n if rLdf.isnull(BFge):\n BFge = 1\n else:\n BFge = float(BFge)\n WTkW = (CN9P - LSh8) / 2 / BFge\n EcVT = eQSh.truncnorm((LSh8 - yGTL) / WTkW, (CN9P... | [
"0.7359962",
"0.6989394",
"0.6902249",
"0.68675244",
"0.6825065",
"0.6822063",
"0.67020816",
"0.66160154",
"0.6576474",
"0.65525013",
"0.65523463",
"0.6513371",
"0.6489175",
"0.6478365",
"0.6444975",
"0.64236593",
"0.6419544",
"0.6387849",
"0.6378542",
"0.63538575",
"0.630787... | 0.759954 | 0 |
Error out if Cluster Admin username is used with Vserver, or Vserver admin used with out vserver being set | def mLpq(YKHO, QjDy):
if YKHO.vserver:
try:
S6LG.ems_log_event('na_ontap_zapi' + str(QjDy), YKHO.server)
except S6LG.zapi.NaApiError as error:
pass
else:
YKHO.asup_log_for_cserver('na_ontap_zapi: ' + str(QjDy)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKn5(OaeV):\n if OaeV.invoked_subcommand is not None:\n try:\n _VGw(OaeV)\n if not OaeV.obj['profiles'].get('vdc_in_use') or not OaeV.obj['profiles'].get('vdc_href'):\n raise Exception('select a virtual datacenter')\n except Exception as e:\n wIb... | [
"0.5993982",
"0.5736567",
"0.56748986",
"0.562459",
"0.5608185",
"0.54900926",
"0.54631054",
"0.54425263",
"0.5428435",
"0.54171085",
"0.54136205",
"0.5404358",
"0.54013216",
"0.53995883",
"0.53649884",
"0.5349688",
"0.5346128",
"0.5326396",
"0.53100115",
"0.52798164",
"0.523... | 0.0 | -1 |
calculate distance between 2 lat/lon points. Haversine Formula. | def Dhrl(igSk, GgQG, TGuP, tk0B, A3Vt=6371.0):
igSk = oyIN.deg2rad(igSk)
GgQG = oyIN.deg2rad(GgQG)
TGuP = oyIN.deg2rad(TGuP)
tk0B = oyIN.deg2rad(tk0B)
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = oyIN.sin(n_9K / 2.0) ** 2 + oyIN.cos(igSk) * oyIN.cos(TGuP) * oyIN.sin(H91H / 2.0) ** 2
Z9rn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vQK9(YKHO, PNCc, igSk, v7YJ, TGuP):\n PNCc, igSk, v7YJ, TGuP = map(Y_1E, [PNCc, igSk, v7YJ, TGuP])\n fOkK = v7YJ - PNCc\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(fOkK / 2) ** 2\n Z9rn = 2 * P099(PZyS(jzdc))\n Mkmy = 6371\n return 1000 * Z9rn * Mkmy"... | [
"0.84359056",
"0.84109986",
"0.83989143",
"0.8357655",
"0.8354269",
"0.8290245",
"0.8272201",
"0.8264871",
"0.8264871",
"0.8254932",
"0.82421327",
"0.8239187",
"0.8237335",
"0.82176036",
"0.82073855",
"0.8200377",
"0.8159513",
"0.81110024",
"0.8103683",
"0.81029356",
"0.80994... | 0.0 | -1 |
Get a string representing the state Returns | def zAg0(YKHO):
KCHu = ''
Cs6h = YKHO.get_state_grid()
for YRbF in range(YKHO.N):
for r845 in range(YKHO.N):
KCHu += '%5s' % Cs6h[YRbF][r845]
KCHu += '\n'
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.state)",
"def QTBn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'state')",
"def QTBn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'state')",
"def QTBn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'state')",
"def QTBn(YKHO) -> qe4Y.Output[str]:... | [
"0.75410116",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.7494404",
"0.747936",
"... | 0.0 | -1 |
Converts list of words to a list with list containing indices | def gu5b(YKHO, V22M, vhpA=False, M1PE=False, HNas=False):
bJeO = []
for GIN8 in V22M:
iQmq = [YKHO.char_to_index(hcXw) for hcXw in GIN8]
if M1PE:
iQmq = [YKHO.char_to_index(YKHO.START_CHAR)] + iQmq
if HNas:
iQmq.append(YKHO.char_to_index(YKHO.STOP_CHAR))
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def txtC(YKHO, V22M):\n return [YKHO.get_index(GIN8) for GIN8 in V22M]",
"def jbxy(z_aV: str) -> x1iM[int]:\n return [aDc2.get(GIN8, 2) for GIN8 in z_aV.split()]",
"def bwmB(YKHO, Eab6):\n if type(Eab6[0]) == list:\n return [[YKHO[yzQ0] for yzQ0 in _dZy] for _dZy in Eab6]\n else:\n re... | [
"0.85693145",
"0.7752171",
"0.7505859",
"0.7447738",
"0.74290967",
"0.74056643",
"0.74056643",
"0.73886925",
"0.73483974",
"0.72827303",
"0.7251924",
"0.72227955",
"0.71967083",
"0.71686286",
"0.71610904",
"0.70946217",
"0.70178425",
"0.700943",
"0.6999602",
"0.6984118",
"0.6... | 0.7271527 | 10 |
Converts list of tags to a list of lists containing indices | def sWAW(YKHO, dJ1p):
bJeO = [[YKHO.tag_to_index(lP4k) for lP4k in TZ9E.split(';')] for TZ9E in dJ1p]
return bJeO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHca(YKHO, dJ1p):\n _0VL = []\n for TZ9E in dJ1p:\n if not TZ9E in YKHO.tag_map:\n YKHO.tag_map[TZ9E] = len(YKHO.tag_map) + 1\n _0VL.append(YKHO.tag_map[TZ9E])\n return _0VL",
"def U5TV(YKHO, eWPy):\n DNs0 = oyIN.zeros(len(eWPy), dtype=oyIN.int64)\n for YRbF in range(0... | [
"0.7881033",
"0.78808427",
"0.7473883",
"0.7307387",
"0.7277142",
"0.71205944",
"0.68667114",
"0.6777431",
"0.67482114",
"0.6746536",
"0.6701946",
"0.6662079",
"0.6551242",
"0.65492666",
"0.65492666",
"0.6498304",
"0.649648",
"0.64859754",
"0.6415594",
"0.64071083",
"0.638867... | 0.8408023 | 0 |
Compute the total amounts of the SO. | def fteH(YKHO):
for T4Wy in YKHO:
J09w = UIH0 = 0.0
for zFiD in T4Wy.order_line:
J09w += zFiD.price_subtotal
UIH0 += zFiD.price_tax
T4Wy.update({'amount_untaxed': J09w, 'amount_tax': UIH0, 'amount_total': J09w + UIH0}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tng5(YKHO):\n Z5kt = 0\n for ZfUD in YKHO.items:\n Z5kt += ZfUD.price\n return Z5kt",
"def tng5(YKHO) -> int:\n yv6U = []\n for YRbF in YKHO.items:\n yv6U.append(float(YRbF.price))\n if str(sum(yv6U))[-1] == '0':\n return int(sum(yv6U))\n return sum(yv6U)",
"def ne... | [
"0.7350085",
"0.7137283",
"0.70653087",
"0.70404696",
"0.70354736",
"0.69938314",
"0.6954457",
"0.6938327",
"0.69243234",
"0.6919311",
"0.69118667",
"0.6893577",
"0.68883884",
"0.68769187",
"0.68734235",
"0.68713826",
"0.6862162",
"0.6856614",
"0.6843213",
"0.6839348",
"0.683... | 0.0 | -1 |
Reads a dictionary representation of the model and turns it into a python object model. | def jG8h(ix6T: dict, Emd4, l09i=False, kO4L=True, lH3y=None):
KAOR = Emd4()
xoNH = [eHNT for eHNT in set(dir(KAOR)) if wOed.__is_param_field(eHNT, Emd4)]
e4jp = set()
wNuc = set()
if ix6T and isinstance(ix6T, dict):
for H5ew, wEf2 in list(ix6T.items()):
if l09i and H5ew == '_id':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'Model':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def jG8h(Emd4, qHj0) -> 'Model':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def jG8h(YKHO, C3ST):\n raise NotImplementedError",
"def cKSn(BJY9):\n if BJY9['rdm']:\n DiHt = TVsU(BJY9['rdm'])\n if BJY9['ty... | [
"0.7534767",
"0.7534767",
"0.7190638",
"0.7060913",
"0.68857574",
"0.6875674",
"0.68685853",
"0.6836743",
"0.6763584",
"0.6746126",
"0.6723243",
"0.67139715",
"0.6664831",
"0.6664831",
"0.6664831",
"0.6664831",
"0.6664831",
"0.6664831",
"0.6664831",
"0.6664831",
"0.6664831",
... | 0.0 | -1 |
Converts a list of dict structures to a list of Model instances. It is mainly used from the Model.from_dict method. | def FHs4(VdMF, ltd2, l09i=False, lH3y=None):
CIH_ = []
if VdMF and (not isinstance(VdMF, list)):
CIH_.append(VdMF)
elif VdMF:
for ZfUD in VdMF:
if ltd2 and issubclass(ltd2, wOed):
CIH_.append(wOed.from_dict(ZfUD, ltd2, convert_ids=l09i, converter_func=lH3y))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, Csk6):\n return Emd4(models=[Emd4._MODEL_CLS.from_dict(J87D) for J87D in Csk6['models']])",
"def HZHS(Emd4, ztjo):\n return Emd4((dict(Csk6) for Csk6 in ztjo))",
"def G5H1(GBaN) -> x1iM[VWBc]:\n return [VWBc(**bTKY) for bTKY in GBaN]",
"def smwl(Emd4, fGC9):\n LoQX = fGC9.pop('envi... | [
"0.6840927",
"0.6708544",
"0.6435461",
"0.60625875",
"0.59051764",
"0.5901992",
"0.58500165",
"0.57897377",
"0.5751848",
"0.5744063",
"0.5738205",
"0.57129",
"0.57010233",
"0.5687063",
"0.56794614",
"0.56794614",
"0.5647564",
"0.5645642",
"0.5642621",
"0.55944425",
"0.5560419... | 0.69891775 | 0 |
get current user from session | def W84Y(YKHO):
P6bq = YKHO.get_secure_cookie('user')
P6bq = P6bq and Ocrw(P6bq)
if not isinstance(P6bq, dict):
raise TypeError('cracked cookie, unknown type of user-object: ' + str(P6bq))
return P6bq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP():\n return cuiw.get('user', None)",
"def jF0d(YKHO):\n return CnSx.session.get(BGO4)",
"def Penc():\n return cuiw['loggedInUser']",
"def c5ow(QePW):\n if 'user_data' in QePW.session:\n CBIr = QePW.session['user_data']\n return CBIr\n else:\n return None",
"def ... | [
"0.8698128",
"0.85931224",
"0.85607696",
"0.84946877",
"0.84931356",
"0.83394134",
"0.8300683",
"0.8295713",
"0.8266578",
"0.8255089",
"0.8249285",
"0.82397467",
"0.81597",
"0.8093737",
"0.80805",
"0.8075514",
"0.80694807",
"0.8059913",
"0.804726",
"0.79808295",
"0.7938907",
... | 0.0 | -1 |
About map() function.The purpose of this function is to perform some operation on each element of an iterable. It returns a list containing the result of | def XpMX(m2Zb, OxJJ):
Aofo = []
for GfdN in OxJJ:
Aofo.append(m2Zb(GfdN))
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M10L(MCGS: tp.Callable, OxJJ: Iteratable) -> HRJ_.List:\n return list(map(MCGS, OxJJ))",
"def saog(JfyU, OxJJ):\n return list(map(JfyU, OxJJ))",
"def M_t2(sJLK, bCES):\n return [sJLK(ZfUD) for ZfUD in bCES]",
"def XqC_(eHNT, vC9B):\n return list(map(eHNT, vC9B))",
"def map(vm1a, ybN4):\n ... | [
"0.8183284",
"0.80868816",
"0.7877129",
"0.7558771",
"0.7475068",
"0.74375063",
"0.7359331",
"0.7359331",
"0.7324081",
"0.72882843",
"0.72734916",
"0.72660756",
"0.72617525",
"0.7226209",
"0.7193323",
"0.7186089",
"0.71431196",
"0.7134428",
"0.71019405",
"0.7100088",
"0.70989... | 0.7902607 | 2 |
Calculate R Squared Returns float | def Ok3j(YKHO):
Ylbp = oyIN.corrcoef(YKHO.df.dependent, YKHO.get_y(YKHO.df.independent))[0, 1] ** 2
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L9xv(YKHO) -> oyIN.float64:\n return YKHO._result.rsquared",
"def RqHv(YKHO) -> float:\n WKvO, LVAh = OEwl(YKHO._ghg_data, YKHO._bird_data)\n return round(YKHO._model.score(WKvO, LVAh), 6)",
"def FbT9(YKHO):\n return oM6q(YKHO._get('rsquared'), index=YKHO._result_idx, name='rsq')",
"def whQk(... | [
"0.7867394",
"0.75062317",
"0.74450934",
"0.7401881",
"0.73125196",
"0.72608495",
"0.7223968",
"0.71224934",
"0.7000308",
"0.6997328",
"0.69282186",
"0.69221073",
"0.6902078",
"0.69015074",
"0.68992347",
"0.67783904",
"0.67497617",
"0.67090064",
"0.67067283",
"0.6686055",
"0.... | 0.0 | -1 |
Sets slope attribute, throws an error if it is negative | def GqKf(YKHO, VMex):
if VMex < 0:
raise ValueError('Negative slope not possible for this type of regression Analysis')
else:
YKHO.slope = VMex | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GqKf(YKHO, VMex):\n YKHO.slope = VMex\n if VMex < 0:\n raise ValueError('Negative slope!')",
"def VMex(YKHO, xqoZ):\n YKHO._model.setSubcatchParam(YKHO._subcatchmentid, MZtI.slope.value, xqoZ)",
"def FIMM(YKHO, VMex=1.0):\n YKHO.slope = VMex",
"def C549(YKHO, wEf2):\n YKHO.slope = Y... | [
"0.86507386",
"0.73379666",
"0.68758404",
"0.6724938",
"0.67033464",
"0.65839624",
"0.65086126",
"0.64059526",
"0.63056415",
"0.6287972",
"0.62618715",
"0.6199749",
"0.6181176",
"0.61781865",
"0.6174592",
"0.61645025",
"0.61446226",
"0.61136097",
"0.6109844",
"0.6099911",
"0.... | 0.85289043 | 1 |