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 |
|---|---|---|---|---|---|---|
We define placeholders to feed the data to TensorFlow. | def q5nL(YKHO):
YKHO.x = ZylS.placeholder(ZylS.int64, shape=[None, None])
YKHO.y = ZylS.placeholder(ZylS.int64, shape=[None, None])
YKHO.is_training = ZylS.placeholder(ZylS.bool) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ajAQ(YKHO):\n YKHO.user_list = ZylS.placeholder(ZylS.int32, [None], name='user_list_placeholder')\n YKHO.prod_list = ZylS.placeholder(ZylS.int32, [None], name='product_list_placeholder')\n YKHO.label_list = ZylS.placeholder(ZylS.float32, [None, 1], name='label_list_placeholder')\n YKHO.treatment_pr... | [
"0.77572954",
"0.7661536",
"0.7654073",
"0.76121277",
"0.76001006",
"0.7598896",
"0.7558118",
"0.75462544",
"0.75316626",
"0.7529188",
"0.74922925",
"0.747632",
"0.7412283",
"0.7363392",
"0.736204",
"0.7346879",
"0.7304288",
"0.7296715",
"0.7296715",
"0.72834706",
"0.7245192"... | 0.7424767 | 12 |
Apply dense layer to sparse inputs. | def pOv4(YKHO, g4y1: tf.SparseTensor) -> ZylS.Tensor:
if not isinstance(g4y1, ZylS.SparseTensor):
raise ValueError('Input tensor should be sparse.')
o4Jx = ZylS.sparse.sparse_dense_matmul(ZylS.sparse.reshape(g4y1, [-1, ZylS.shape(g4y1)[-1]]), YKHO.kernel)
if len(g4y1.shape) == 3:
o4Jx = ZylS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MtFj():\n NOYH(oyIN.array([0, 1, 4]).astype('int32'), oyIN.array([3, 3, 3]).astype('int32'), oyIN.int32(0), oyIN.array([5]).astype('int32'))\n NOYH(oyIN.array([[0, 0], [1, 2]]).astype('int32'), oyIN.array([1, 2]).astype('int32'), oyIN.int32(0), oyIN.array([3, 4]).astype('int32'))\n NOYH(oyIN.array([[0... | [
"0.6807082",
"0.6767205",
"0.6756702",
"0.65369743",
"0.6524852",
"0.6517695",
"0.6437242",
"0.64007324",
"0.6397989",
"0.6391803",
"0.6379449",
"0.63740796",
"0.63121",
"0.63104826",
"0.63037145",
"0.62267965",
"0.6226211",
"0.621526",
"0.62142605",
"0.6198536",
"0.6180073",... | 0.0 | -1 |
Creates a matrix with a minimal number of 1s to connect everythinig. If num_rows == num_cols, this creates the identity matrix. If num_rows > num_cols, this creates 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 1 0 . . . . . . . . . . . . If num_rows < num_cols, this creates 1 0 0 1 0 0 1 ... 0 1 0 0 1 0 0 ... 0 ... | def QX8y(YKHO) -> ZylS.Tensor:
RndV = ZylS.shape(YKHO.kernel)
NwL4 = RndV[0]
ulBT = RndV[1]
h4_5 = ZylS.minimum(NwL4, ulBT)
ZHfW = ZylS.tile(ZylS.eye(h4_5, dtype=YKHO.kernel.dtype), [ZylS.math.ceil(NwL4 / h4_5), ZylS.math.ceil(ulBT / h4_5)])[:NwL4, :ulBT]
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pSfY(NwL4, ulBT=-1):\n if ulBT == -1:\n return aLMY(*[[1.0 for bGrB in range(NwL4)] for bGrB in range(NwL4)])\n else:\n return aLMY(*[[1.0 for bGrB in range(ulBT)] for bGrB in range(NwL4)])",
"def UOV2(exwG: int) -> aLMY:\n return OqWE(exwG, exwG, lambda YRbF, r845: 1 if YRbF == r845 e... | [
"0.75466603",
"0.7094233",
"0.6872658",
"0.68095255",
"0.67373705",
"0.67214376",
"0.66613334",
"0.6644055",
"0.66046613",
"0.6580853",
"0.6579913",
"0.6540112",
"0.653764",
"0.6457392",
"0.6337572",
"0.62655133",
"0.6205623",
"0.6176928",
"0.6171287",
"0.6171287",
"0.6156782... | 0.0 | -1 |
Calculate bad mask for given indices. Checks that input features are different for positive negative samples. | def sAGs(YKHO, Crrw: tf.Tensor, kJyq: tf.Tensor, DNs0: tf.Tensor) -> ZylS.Tensor:
iICe = ZylS.expand_dims(kJyq, axis=-2)
sWLb = MP3h.get_candidate_values(Crrw, DNs0)
return ZylS.cast(ZylS.reduce_all(ZylS.equal(sWLb, iICe), axis=-1), iICe.dtype) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _wef(Crrw):\n DHuu = ht2j.eye(Crrw.size(0)).byte()\n SQns = ~DHuu\n uKlu = ht2j.ne(Crrw.unsqueeze(1), Crrw.unsqueeze(0))\n ZHfW = SQns & uKlu\n return ZHfW",
"def k5T4(Crrw):\n DHuu = ht2j.eye(Crrw.size(0)).byte()\n SQns = ~DHuu\n YgCz = ht2j.eq(Crrw.unsqueeze(1), Crrw.unsqueeze(0))\n... | [
"0.7183704",
"0.66424865",
"0.64217883",
"0.62230355",
"0.6094466",
"0.6081636",
"0.60788465",
"0.6040703",
"0.60113823",
"0.60045016",
"0.60039926",
"0.60039926",
"0.59940445",
"0.59828675",
"0.595515",
"0.5928634",
"0.59256285",
"0.590262",
"0.58976835",
"0.58834857",
"0.58... | 0.68788695 | 1 |
Constructs a mask which indicates indices for valid label ids. Indices corresponding to valid label ids have a `1` and indices corresponding to `LABEL_PAD_ID` have a `0`. | def kgLX(EGq_: tf.Tensor, b9k4: tf.Tensor) -> ZylS.Tensor:
fNt0 = ZylS.cast(ZylS.equal(ZylS.squeeze(EGq_, -1), W23q), dtype=ZylS.float32)
XCkR = 1 - fNt0
xI9j = ZylS.concat([XCkR, ZylS.ones((ZylS.shape(EGq_)[0], b9k4), dtype=ZylS.float32)], axis=-1)
return xI9j | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z25C(YKHO, *eC8x):\n ZHfW = oyIN.zeros(YKHO.shape, dtype=oyIN.bool_)\n if len(eC8x) == 1 and isinstance(eC8x[0], iu5r) and (not isinstance(eC8x[0], str)):\n eC8x = eC8x[0]\n Crrw = YKHO.labels\n for or8S in eC8x:\n if isinstance(or8S, str):\n if Crrw is None:\n ... | [
"0.7365347",
"0.7157289",
"0.69125485",
"0.6826986",
"0.67965245",
"0.65988266",
"0.6561498",
"0.6496286",
"0.6446297",
"0.6363616",
"0.63041264",
"0.6302402",
"0.62691844",
"0.6260437",
"0.62383926",
"0.62383926",
"0.62255913",
"0.62202567",
"0.62114483",
"0.61919653",
"0.61... | 0.7153126 | 2 |
Starts the sorter using basic quick sort algorithm. | def hm0P(YKHO):
if YKHO.sorting:
return None
YKHO.sorting = True
YKHO.quick_sort(0, len(YKHO.sort_list) - 1)
if YKHO.sorting:
for zFiD in YKHO.sort_list:
YKHO.window.itemconfig(zFiD[1], fill='green')
YKHO.window.update()
YKHO.sorting = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qRWC() -> None:\n RcgH.append(T6FA.Thread(target=LtY3, name=\"Quick Sorting 'random_list'\", args=(nocu, 'random_list')))\n RcgH.append(T6FA.Thread(target=LtY3, name=\"Quick Sorting 'reversed_list'\", args=(eK6w, 'reversed_list')))\n RcgH.append(T6FA.Thread(target=LtY3, name=\"Quick Sorting 'nearly_so... | [
"0.7062716",
"0.6940235",
"0.6912412",
"0.6790739",
"0.6784397",
"0.6743876",
"0.6706237",
"0.66741943",
"0.66591877",
"0.66167295",
"0.6598574",
"0.6520378",
"0.64701116",
"0.644912",
"0.6443714",
"0.6442241",
"0.63757646",
"0.6366974",
"0.6341046",
"0.6321179",
"0.62982917"... | 0.68073934 | 3 |
Called recursively by itself. The last item in the block (start, end) is chosen as the pivot. All items smaller than the pivot are moved to the left side of the block. | def lguw(YKHO, yKcO, Os4s):
if yKcO >= Os4s:
YKHO.window.itemconfig(YKHO.sort_list[Os4s][1], fill='black')
YKHO.window.update()
return
ewCu = yKcO
csQL = YKHO.sort_list[Os4s]
YKHO.window.itemconfig(csQL[1], fill='red')
YKHO.window.update()
for YRbF in range(yKcO, Os4s):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qrt_(E6sh, gqRb, ODP9):\n \"\"\"\n p_index = get_pivot(items_list)\n left_i, right_i = low, high\n pivot = items_list[p_index]\n while left_i < right_i:\n while items_list[left_i] <= pivot and left_i < right_i:\n left_i += 1\n while items_list[right_i] > pivot:\n ... | [
"0.6656037",
"0.6478843",
"0.6448779",
"0.6446921",
"0.64215165",
"0.64168566",
"0.6392948",
"0.6359329",
"0.6354197",
"0.63382065",
"0.6301519",
"0.6222411",
"0.6182318",
"0.6134096",
"0.6108606",
"0.60953164",
"0.6069147",
"0.60630363",
"0.6048217",
"0.6045504",
"0.6043966"... | 0.6376528 | 7 |
Check if card is in hand. | def loKM(YKHO, dxhl):
return dxhl in YKHO.cards | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FqJp(YKHO, dxhl):\n if dxhl not in YKHO.cards:\n return False\n else:\n return True",
"def CRfX(YKHO) -> bool:\n return True if len([YRbF for YRbF in YKHO.cards if YRbF.code == 'AS' or YRbF.code == 'AD' or YRbF.code == 'AC' or (YRbF.code == 'AH')]) else False",
"def gU2k(YKHO):\n ... | [
"0.8461257",
"0.74703854",
"0.7374958",
"0.73026055",
"0.7292099",
"0.72892195",
"0.72181356",
"0.70374745",
"0.69724655",
"0.6942217",
"0.6940865",
"0.69270915",
"0.691088",
"0.6876299",
"0.68675095",
"0.684771",
"0.6847624",
"0.6791899",
"0.67752904",
"0.6765806",
"0.675724... | 0.82060605 | 1 |
Video streaming generator function. | def eK5b():
print('Streamer inititalised')
while True:
uCmi, f4IJ = dIT4.read()
YXAf = XC5k.imencode('t.jpg', f4IJ)[1].tobytes()
yield (b'--frame\r\nContent-Type: image/jpeg\r\n\r\n' + YXAf + b'\r\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/... | [
"0.72318304",
"0.72217125",
"0.7202193",
"0.7199314",
"0.71750987",
"0.70998365",
"0.7068008",
"0.7030866",
"0.69874614",
"0.69693893",
"0.69512975",
"0.69257456",
"0.6923195",
"0.6923195",
"0.690304",
"0.6903035",
"0.6878873",
"0.68674815",
"0.6864852",
"0.68407094",
"0.6832... | 0.70878965 | 6 |
Sets the vpc_name of this AwsVirtualMachine. | def bD9D(YKHO, bD9D):
YKHO._vpc_name = bD9D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VgIM(YKHO, VgIM):\n YKHO._vpc = VgIM",
"def xOeT(YKHO, xOeT):\n if xOeT is None:\n raise ValueError('Invalid value for `vpc_id`, must not be `None`')\n YKHO._vpc_id = xOeT",
"def VFHf(YKHO, VFHf):\n YKHO._vm_name = VFHf",
"def FIMM(Ro_8, *, xOeT: Optional[pulumi.Input[str]]=None):\n ... | [
"0.71348906",
"0.66870433",
"0.65140104",
"0.579196",
"0.5687512",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
"0.5621262",
... | 0.88347614 | 0 |
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 |
r""" Given a Normal distribution for the latent function, return the mean of Y if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive mean \int\int y p(y|f)q(f) df dy and the predictive variance \int\int y^2 p(y|f)q(f) df dy [ \int\int y^2 p(y|f)q(f) df dy ]^2 Here, we impleme... | def JjIe(YKHO, O_5T, GdLY, **B2fa):
X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))
HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, **B2fa)
j7ww = OU2c - ZylS.square(HlYt)
return (HlYt, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JjIe(YKHO, O_5T, GdLY, kc9X, QTg7):\n X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))\n HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, Y_var=kc9X, freq=QTg7)\n j7ww = OU2c - ZylS.squa... | [
"0.66260767",
"0.66260767",
"0.66260767",
"0.66260767",
"0.6622055",
"0.6430036",
"0.63987553",
"0.63987553",
"0.63987553",
"0.63987553",
"0.63259363",
"0.6209946",
"0.62099016",
"0.6208462",
"0.5993345",
"0.59391654",
"0.5859052",
"0.58182466",
"0.57981163",
"0.5780905",
"0.... | 0.66449755 | 1 |
r""" Compute the expected log density of the data, given a Gaussian distribution for the function values. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes \int (\log p(y|f)) q(f) df. Here, we implement a default GaussHermite quadrature routine, but some likelihoods (Gaussian, Poisson) ... | def IAl1(YKHO, O_5T, GdLY, fuBA, **B2fa):
return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, Y=fuBA, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWbT(T6S7, yGTL, WTkW):\n SRYB = WTkW ** 2\n Nk6w = -0.5 * oyIN.log(2 * oyIN.pi * SRYB)\n tTpl = -(WKvO - yGTL) ** 2 / (2 * SRYB)\n QF3p = Nk6w + tTpl\n return QF3p",
"def qeoL(Emd4, WKvO, NArs):\n yGTL, WTkW, vexM, n_jk, ebcy = NArs\n return vexM * eQSh.norm.pdf(WKvO, loc=yGTL, scale=WT... | [
"0.6896425",
"0.67581385",
"0.66805416",
"0.66805416",
"0.66524094",
"0.66274655",
"0.65777457",
"0.6544942",
"0.6469819",
"0.6469819",
"0.6435978",
"0.6404146",
"0.629966",
"0.6230978",
"0.6229285",
"0.61859614",
"0.61859614",
"0.61859614",
"0.61859614",
"0.61650217",
"0.613... | 0.6217296 | 15 |
r""" Given a Normal distribution for the latent function, return the mean of Y if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive mean \int\int y p(y|f)q(f) df dy and the predictive variance \int\int y^2 p(y|f)q(f) df dy [ \int\int y^2 p(y|f)q(f) df dy ]^2 Here, we impleme... | def JjIe(YKHO, O_5T, GdLY, **B2fa):
X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))
HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, **B2fa)
j7ww = OU2c - ZylS.square(HlYt)
return (HlYt, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JjIe(YKHO, O_5T, GdLY, kc9X, QTg7):\n X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))\n HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, Y_var=kc9X, freq=QTg7)\n j7ww = OU2c - ZylS.squa... | [
"0.66260767",
"0.66260767",
"0.66260767",
"0.66260767",
"0.6622055",
"0.6430036",
"0.63987553",
"0.63987553",
"0.63987553",
"0.63987553",
"0.63259363",
"0.6209946",
"0.62099016",
"0.6208462",
"0.5993345",
"0.59391654",
"0.5859052",
"0.58182466",
"0.57981163",
"0.5780905",
"0.... | 0.66449755 | 0 |
r""" Compute the expected log density of the data, given a Gaussian distribution for the function values. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes \int (\log p(y|f)) q(f) df. Here, we implement a default GaussHermite quadrature routine, but some likelihoods (Gaussian, Poisson) ... | def IAl1(YKHO, O_5T, GdLY, fuBA, _mSQ, **B2fa):
e7na = {'Y_{}'.format(YRbF): fuBA[:, :, YRbF] for YRbF in range(YKHO.Nf)}
K9TE = {'W_{}'.format(YRbF): _mSQ[:, :, YRbF] for YRbF in range(YKHO.Nf)}
return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, **e7na, **K9TE, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWbT(T6S7, yGTL, WTkW):\n SRYB = WTkW ** 2\n Nk6w = -0.5 * oyIN.log(2 * oyIN.pi * SRYB)\n tTpl = -(WKvO - yGTL) ** 2 / (2 * SRYB)\n QF3p = Nk6w + tTpl\n return QF3p",
"def qeoL(Emd4, WKvO, NArs):\n yGTL, WTkW, vexM, n_jk, ebcy = NArs\n return vexM * eQSh.norm.pdf(WKvO, loc=yGTL, scale=WT... | [
"0.6896425",
"0.67581385",
"0.66805416",
"0.66805416",
"0.66524094",
"0.66274655",
"0.65777457",
"0.6544942",
"0.6469819",
"0.6469819",
"0.6435978",
"0.6404146",
"0.629966",
"0.6230978",
"0.6229285",
"0.6217296",
"0.61859614",
"0.61859614",
"0.61859614",
"0.61859614",
"0.6165... | 0.0 | -1 |
r""" Given a Normal distribution for the latent function, return the mean of Y if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive mean \int\int y p(y|f)q(f) df dy and the predictive variance \int\int y^2 p(y|f)q(f) df dy [ \int\int y^2 p(y|f)q(f) df dy ]^2 Here, we impleme... | def JjIe(YKHO, O_5T, GdLY, kc9X, QTg7):
X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))
HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, Y_var=kc9X, freq=QTg7)
j7ww = OU2c - ZylS.square(HlYt)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JjIe(YKHO, O_5T, GdLY, **B2fa):\n X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))\n HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, **B2fa)\n j7ww = OU2c - ZylS.square(HlYt)\n retur... | [
"0.6646844",
"0.6646844",
"0.66233313",
"0.64312154",
"0.6399674",
"0.6399674",
"0.6399674",
"0.6399674",
"0.63252074",
"0.6211137",
"0.62098414",
"0.620968",
"0.59919643",
"0.5938857",
"0.5859454",
"0.5816598",
"0.5797844",
"0.5780288",
"0.5777078",
"0.57054436",
"0.5684029"... | 0.6627306 | 2 |
r""" Given a Normal distribution for the latent function, and a datum Y, compute the log predictive density of Y. i.e. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive density \log \int p(y=Y|f)q(f) df Here, we implement a default GaussHermite quadrature routine, but som... | def gXS0(YKHO, O_5T, GdLY, fuBA, kc9X, QTg7):
return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, logspace=True, Y=fuBA, Y_var=kc9X, freq=QTg7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gXS0(YKHO, O_5T, GdLY, fuBA, **B2fa):\n return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, logspace=True, Y=fuBA, **B2fa)",
"def raEr(YKHO, O_5T, GdLY, fuBA):\n return ZylS.reduce_sum(bF8_(YKHO._scalar_log_prob, YKHO.num_gauss_hermite_points, O_5T, GdLY, logspace=True, Y=fuBA), axis=-1)"... | [
"0.7673232",
"0.76600885",
"0.7359362",
"0.6807813",
"0.6758991",
"0.66755855",
"0.66706604",
"0.65103483",
"0.6435901",
"0.6435867",
"0.642958",
"0.64097846",
"0.6405932",
"0.6378056",
"0.635455",
"0.62846106",
"0.61033565",
"0.6098442",
"0.60006934",
"0.5983109",
"0.5982917... | 0.763749 | 5 |
r""" Compute the expected log density of the data, given a Gaussian distribution for the function values. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes \int (\log p(y|f)) q(f) df. Here, we implement a default GaussHermite quadrature routine, but some likelihoods (Gaussian, Poisson) ... | def IAl1(YKHO, O_5T, GdLY, fuBA, kc9X, QTg7, FQNo=False, eqIl=False):
if eqIl:
assert len(GdLY.shape) == 3
if not eqIl:
if not FQNo:
return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, Y=fuBA, Y_var=kc9X, freq=QTg7)
else:
return HddU(YKHO.logp, YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWbT(T6S7, yGTL, WTkW):\n SRYB = WTkW ** 2\n Nk6w = -0.5 * oyIN.log(2 * oyIN.pi * SRYB)\n tTpl = -(WKvO - yGTL) ** 2 / (2 * SRYB)\n QF3p = Nk6w + tTpl\n return QF3p",
"def qeoL(Emd4, WKvO, NArs):\n yGTL, WTkW, vexM, n_jk, ebcy = NArs\n return vexM * eQSh.norm.pdf(WKvO, loc=yGTL, scale=WT... | [
"0.6896198",
"0.67587966",
"0.66796833",
"0.66796833",
"0.6652797",
"0.6626755",
"0.65772796",
"0.6544968",
"0.64703214",
"0.64703214",
"0.64349985",
"0.6404597",
"0.6298813",
"0.6231093",
"0.62283593",
"0.6215966",
"0.61854523",
"0.61854523",
"0.61854523",
"0.61854523",
"0.6... | 0.0 | -1 |
r""" Given a Normal distribution for the latent function, return the mean of Y if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive mean \int\int y p(y|f)q(f) df dy and the predictive variance \int\int y^2 p(y|f)q(f) df dy [ \int\int y^2 p(y|f)q(f) df dy ]^2 Here, we impleme... | def JjIe(YKHO, O_5T, GdLY, kc9X, QTg7):
X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))
HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, Y_var=kc9X, freq=QTg7)
j7ww = OU2c - ZylS.square(HlYt)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JjIe(YKHO, O_5T, GdLY, **B2fa):\n X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))\n HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, **B2fa)\n j7ww = OU2c - ZylS.square(HlYt)\n retur... | [
"0.66449755",
"0.66449755",
"0.6622055",
"0.6430036",
"0.63987553",
"0.63987553",
"0.63987553",
"0.63987553",
"0.63259363",
"0.6209946",
"0.62099016",
"0.6208462",
"0.5993345",
"0.59391654",
"0.5859052",
"0.58182466",
"0.57981163",
"0.5780905",
"0.5776485",
"0.5705201",
"0.56... | 0.66260767 | 5 |
r""" Given a Normal distribution for the latent function, and a datum Y, compute the log predictive density of Y. i.e. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive density \log \int p(y=Y|f)q(f) df Here, we implement a default GaussHermite quadrature routine, but som... | def gXS0(YKHO, O_5T, GdLY, fuBA, kc9X, QTg7):
return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, logspace=True, Y=fuBA, Y_var=kc9X, freq=QTg7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gXS0(YKHO, O_5T, GdLY, fuBA, **B2fa):\n return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, logspace=True, Y=fuBA, **B2fa)",
"def raEr(YKHO, O_5T, GdLY, fuBA):\n return ZylS.reduce_sum(bF8_(YKHO._scalar_log_prob, YKHO.num_gauss_hermite_points, O_5T, GdLY, logspace=True, Y=fuBA), axis=-1)"... | [
"0.767398",
"0.7660197",
"0.73603266",
"0.6807665",
"0.6758494",
"0.6675348",
"0.6669011",
"0.65096563",
"0.6434852",
"0.6434578",
"0.6428985",
"0.6408781",
"0.6405471",
"0.63776183",
"0.6353329",
"0.6283766",
"0.6103106",
"0.6096574",
"0.60000515",
"0.5984039",
"0.598205",
... | 0.76381904 | 2 |
r""" Compute the expected log density of the data, given a Gaussian distribution for the function values. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes \int (\log p(y|f)) q(f) df. Here, we implement a default GaussHermite quadrature routine, but some likelihoods (Gaussian, Poisson) ... | def IAl1(YKHO, O_5T, GdLY, fuBA, kc9X, QTg7):
if YKHO.use_mc:
return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, Y=fuBA, Y_var=kc9X, freq=QTg7)
return HddU(YKHO.logp, YKHO.num_mc_samples, O_5T, GdLY, Y=fuBA, Y_var=kc9X, freq=QTg7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWbT(T6S7, yGTL, WTkW):\n SRYB = WTkW ** 2\n Nk6w = -0.5 * oyIN.log(2 * oyIN.pi * SRYB)\n tTpl = -(WKvO - yGTL) ** 2 / (2 * SRYB)\n QF3p = Nk6w + tTpl\n return QF3p",
"def qeoL(Emd4, WKvO, NArs):\n yGTL, WTkW, vexM, n_jk, ebcy = NArs\n return vexM * eQSh.norm.pdf(WKvO, loc=yGTL, scale=WT... | [
"0.6896425",
"0.67581385",
"0.66805416",
"0.66805416",
"0.66524094",
"0.66274655",
"0.65777457",
"0.6544942",
"0.6469819",
"0.6469819",
"0.6435978",
"0.6404146",
"0.629966",
"0.6230978",
"0.6229285",
"0.6217296",
"0.61859614",
"0.61859614",
"0.61859614",
"0.61859614",
"0.6165... | 0.0 | -1 |
r""" Given a Normal distribution for the latent function, return the mean of Y if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive mean \int\int y p(y|f)q(f) df dy and the predictive variance \int\int y^2 p(y|f)q(f) df dy [ \int\int y^2 p(y|f)q(f) df dy ]^2 Here, we impleme... | def JjIe(YKHO, O_5T, GdLY, kc9X, QTg7):
X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))
HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, Y_var=kc9X, freq=QTg7)
j7ww = OU2c - ZylS.square(HlYt)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JjIe(YKHO, O_5T, GdLY, **B2fa):\n X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))\n HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, **B2fa)\n j7ww = OU2c - ZylS.square(HlYt)\n retur... | [
"0.664596",
"0.664596",
"0.6622744",
"0.6432366",
"0.64010805",
"0.64010805",
"0.64010805",
"0.64010805",
"0.632743",
"0.6212363",
"0.6211352",
"0.621094",
"0.5992146",
"0.5938238",
"0.5857551",
"0.5817398",
"0.57995296",
"0.57812136",
"0.5775733",
"0.5704405",
"0.56824386",
... | 0.66271013 | 4 |
r""" Given a Normal distribution for the latent function, and a datum Y, compute the log predictive density of Y. i.e. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive density \log \int p(y=Y|f)q(f) df Here, we implement a default GaussHermite quadrature routine, but som... | def gXS0(YKHO, O_5T, GdLY, fuBA, kc9X, QTg7):
return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, logspace=True, Y=fuBA, Y_var=kc9X, freq=QTg7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gXS0(YKHO, O_5T, GdLY, fuBA, **B2fa):\n return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, logspace=True, Y=fuBA, **B2fa)",
"def raEr(YKHO, O_5T, GdLY, fuBA):\n return ZylS.reduce_sum(bF8_(YKHO._scalar_log_prob, YKHO.num_gauss_hermite_points, O_5T, GdLY, logspace=True, Y=fuBA), axis=-1)"... | [
"0.7673232",
"0.76600885",
"0.7359362",
"0.6807813",
"0.6758991",
"0.66755855",
"0.66706604",
"0.65103483",
"0.6435901",
"0.6435867",
"0.642958",
"0.64097846",
"0.6405932",
"0.6378056",
"0.635455",
"0.62846106",
"0.61033565",
"0.6098442",
"0.60006934",
"0.5983109",
"0.5982917... | 0.763749 | 4 |
r""" Compute the expected log density of the data, given a Gaussian distribution for the function values. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes \int (\log p(y|f)) q(f) df. Here, we implement a default GaussHermite quadrature routine, but some likelihoods (Gaussian, Poisson) ... | def IAl1(YKHO, O_5T, GdLY, fuBA, kc9X, QTg7, FQNo=False, eqIl=False):
if eqIl:
assert len(GdLY.shape) == 3
if not eqIl:
if not FQNo:
return bF8_(YKHO.logp, YKHO.num_gauss_hermite_points, O_5T, GdLY, Y=fuBA, Y_var=kc9X, freq=QTg7)
else:
return HddU(YKHO.logp, YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWbT(T6S7, yGTL, WTkW):\n SRYB = WTkW ** 2\n Nk6w = -0.5 * oyIN.log(2 * oyIN.pi * SRYB)\n tTpl = -(WKvO - yGTL) ** 2 / (2 * SRYB)\n QF3p = Nk6w + tTpl\n return QF3p",
"def qeoL(Emd4, WKvO, NArs):\n yGTL, WTkW, vexM, n_jk, ebcy = NArs\n return vexM * eQSh.norm.pdf(WKvO, loc=yGTL, scale=WT... | [
"0.68958163",
"0.6758679",
"0.6680122",
"0.6680122",
"0.66510373",
"0.6626933",
"0.65774834",
"0.65441597",
"0.6469957",
"0.6469957",
"0.6435561",
"0.64032686",
"0.62990564",
"0.62311965",
"0.62290907",
"0.6216042",
"0.61856955",
"0.61856955",
"0.61856955",
"0.61856955",
"0.6... | 0.0 | -1 |
r""" Given a Normal distribution for the latent function, return the mean of Y if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive mean \int\int y p(y|f)q(f) df dy and the predictive variance \int\int y^2 p(y|f)q(f) df dy [ \int\int y^2 p(y|f)q(f) df dy ]^2 Here, we impleme... | def JjIe(YKHO, O_5T, GdLY, kc9X, QTg7):
X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))
HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, Y_var=kc9X, freq=QTg7)
j7ww = OU2c - ZylS.square(HlYt)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JjIe(YKHO, O_5T, GdLY, **B2fa):\n X02X = lambda *EcVT, **B2fa: YKHO.conditional_variance(*EcVT, **B2fa) + ZylS.square(YKHO.conditional_mean(*EcVT, **B2fa))\n HlYt, OU2c = bF8_([YKHO.conditional_mean, X02X], YKHO.num_gauss_hermite_points, O_5T, GdLY, **B2fa)\n j7ww = OU2c - ZylS.square(HlYt)\n retur... | [
"0.66449755",
"0.66449755",
"0.6622055",
"0.6430036",
"0.63987553",
"0.63987553",
"0.63987553",
"0.63987553",
"0.63259363",
"0.6209946",
"0.62099016",
"0.6208462",
"0.5993345",
"0.59391654",
"0.5859052",
"0.58182466",
"0.57981163",
"0.5780905",
"0.5776485",
"0.5705201",
"0.56... | 0.66260767 | 3 |
r""" Compute the expected log density of the data, given a Gaussian distribution for the function values. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes \int (\log p(y|f)) q(f) df. Here, we implement a default GaussHermite quadrature routine, but some likelihoods (Gaussian, Poisson) ... | def IAl1(YKHO, O_5T, GdLY, fuBA, kc9X, QTg7):
tknT = 1.0 / kc9X
k0lF = YKHO.tec_conversion / QTg7
CkYf = oyIN.log(2 * oyIN.pi) + tknT + ZylS.log(ZylS.math.bessel_i0e(tknT))
return tknT * ZylS.cos(k0lF * O_5T - fuBA) * ZylS.exp(-k0lF ** 2 * GdLY / 2.0) - CkYf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWbT(T6S7, yGTL, WTkW):\n SRYB = WTkW ** 2\n Nk6w = -0.5 * oyIN.log(2 * oyIN.pi * SRYB)\n tTpl = -(WKvO - yGTL) ** 2 / (2 * SRYB)\n QF3p = Nk6w + tTpl\n return QF3p",
"def qeoL(Emd4, WKvO, NArs):\n yGTL, WTkW, vexM, n_jk, ebcy = NArs\n return vexM * eQSh.norm.pdf(WKvO, loc=yGTL, scale=WT... | [
"0.6896425",
"0.67581385",
"0.66805416",
"0.66805416",
"0.66524094",
"0.66274655",
"0.65777457",
"0.6544942",
"0.6469819",
"0.6469819",
"0.6435978",
"0.6404146",
"0.629966",
"0.6230978",
"0.6229285",
"0.6217296",
"0.61859614",
"0.61859614",
"0.61859614",
"0.61859614",
"0.6165... | 0.0 | -1 |
Useful for top k accuracy | def KrFP(Pyrc, G1Hx=3):
if len(Pyrc) < G1Hx:
G1Hx = len(Pyrc)
return ht2j.topk(Pyrc, k=G1Hx).indices | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ivK8(hlel, pan_, hz5a=(1,)):\n \"\"\"\"\"\"\n with ht2j.no_grad():\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n... | [
"0.78852004",
"0.78371555",
"0.7795678",
"0.7676741",
"0.7646836",
"0.7559482",
"0.7525432",
"0.7498036",
"0.7456509",
"0.744515",
"0.74354404",
"0.7391764",
"0.7390868",
"0.7390299",
"0.73856264",
"0.73792666",
"0.73747",
"0.736721",
"0.73470145",
"0.73453826",
"0.73431385",... | 0.0 | -1 |
Package of a spectral model into a handy python dictionary. >>> m=PowerLaw(norm=1, index=.5) >>> d=spectrum_to_dict(m) >>> print d['Norm'] 1.0 >>> print d['Index'] 0.5 >>> d=spectrum_to_dict(m, errors=False) >>> d.has_key('Index_err') False Note, the way to save a ComositeModel is a little different. >>> from uw.like.M... | def XpoR(C3ST, UAju=False):
Csk6 = dict(name=C3ST.name, method='pointlike')
if isinstance(C3ST, aOMa):
Csk6['spectrum'] = map(XpoR, C3ST.models)
return lovD(Csk6)
else:
for XP5J in C3ST.param_names:
Csk6[XP5J] = C3ST[XP5J]
if UAju:
Csk6['%s_err... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s9wz(YKHO):\n qOgt = {'source_id': YKHO.source_id, 'xp': YKHO.xp.upper(), 'flux': ApCI(YKHO.flux), 'flux_error': ApCI(YKHO.error)}\n if YKHO.covariance is not None:\n LZBV = y3sc(YKHO.covariance)\n qOgt['correlation'] = LZBV[oyIN.tril_indices(LZBV.shape[0], k=-1)]\n if YKHO.stdev is ... | [
"0.6661426",
"0.633334",
"0.5869317",
"0.57167906",
"0.5631705",
"0.562572",
"0.5599457",
"0.55483484",
"0.554165",
"0.55361485",
"0.5515548",
"0.550417",
"0.5502222",
"0.549259",
"0.5489285",
"0.5483285",
"0.5450604",
"0.5429438",
"0.5426008",
"0.5422363",
"0.54223293",
"0... | 0.72976065 | 0 |
Returns currently open channel or establishes a new blocking connection channel. | def bRfN(YKHO):
if YKHO.connection and YKHO._channel and YKHO.connection.is_open and YKHO._channel.is_open:
return YKHO._channel
else:
G9jH.debug('RabbitQueue._get_channel getting new blocking channel connection')
YKHO.connect()
return YKHO.connection.channel() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vRwm(YKHO):\n S0MI.debug('Creating a new channel')\n YKHO._state = YKHO.STATE_CONNECTING\n return YKHO._connection.channel(YKHO._on_channel_open)",
"def EJ08(YKHO):\n if not YKHO.connection:\n raise Foq8(f'Service {YKHO.name} is not available')\n if YKHO.channel is None:\n RKD7.d... | [
"0.7562369",
"0.7528862",
"0.7248032",
"0.7047139",
"0.69378567",
"0.6901686",
"0.6765541",
"0.6759656",
"0.6756284",
"0.6667358",
"0.6640501",
"0.6607275",
"0.6607275",
"0.65927523",
"0.6580583",
"0.6550337",
"0.65419286",
"0.6526069",
"0.65226203",
"0.65083754",
"0.6489618"... | 0.8159955 | 0 |
Just compute the error | def crsw(YKHO, FgvF, EcIH, nPrm, oHE7, PJWX=False):
SItB = 0
for bGrB, pJsJ in oHE7:
WKvO, ZHfW, LVAh = EcIH([nPrm[0][a1PO] for a1PO in pJsJ], XTiz.array(nPrm[1])[pJsJ], maxlen=None)
aTLP = FgvF(WKvO, ZHfW)
x6A0 = XTiz.array(nPrm[1])[pJsJ]
SItB += (aTLP == x6A0).sum()
SItB = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gv3L(YKHO):\n Ty9i = (YKHO.u - YKHO.old_u).flat\n return oyIN.sqrt(oyIN.dot(Ty9i, Ty9i))",
"def RDdK(YKHO, pan_):\n pass",
"def RDdK(YKHO, qqrj):\n wGcT = YKHO._meanFibersFr - YKHO._meanFiringRateProfile\n P1dF = qqrj - wGcT\n return P1dF",
"def XObx(YKHO):\n if YKHO.total == 0:\n ... | [
"0.79839134",
"0.7976165",
"0.795395",
"0.7796089",
"0.77596885",
"0.7653143",
"0.7626866",
"0.7580889",
"0.7558794",
"0.75180954",
"0.7437892",
"0.7381876",
"0.73558754",
"0.7335474",
"0.73296154",
"0.7322699",
"0.73124576",
"0.73123217",
"0.7308957",
"0.73005223",
"0.723911... | 0.0 | -1 |
Downloads a blob from the bucket. | def DPRZ(l7rj, JC20, AHTG):
ntiA = S8SU.Client()
WE7e = ntiA.get_bucket(l7rj)
vxw0 = WE7e.blob(JC20)
vxw0.download_to_filename(AHTG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0",
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)",
"def DPRZ(... | [
"0.81216",
"0.7957541",
"0.77650166",
"0.76453996",
"0.7630873",
"0.7603773",
"0.75344056",
"0.7534157",
"0.75023687",
"0.7482801",
"0.7474071",
"0.7474071",
"0.7474071",
"0.7458533",
"0.74574214",
"0.74448717",
"0.7425158",
"0.7425142",
"0.740443",
"0.73784876",
"0.7370222",... | 0.7373136 | 20 |
If the form is valid, save the associated model. | def lwXz(YKHO, L03z):
ZsqE = zceu()
L03z.instance.short_link = ZsqE
YKHO.object = L03z.save()
return vKnz(gxEw('return_shortened_link', kwargs={'short_link': ZsqE})) | {
"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 |
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents). | def fHT3(rfNN):
return rfNN.getScore() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)",
"def fHT3(rfNN):\n return rfNN.getScore()",
"def fHT3(rfNN: GameState):\n re... | [
"0.8075255",
"0.80543035",
"0.80543035",
"0.79382104",
"0.7678121",
"0.7661832",
"0.7643688",
"0.7634644",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.75034684",
"0.74896246",
"0.74896246... | 0.755428 | 26 |
Function creating the model's graph in Keras. | def C3ST(GhuM):
Exod = X6a0(shape=GhuM)
EcVT = lTlC(filters=196, kernel_size=15, strides=4)(Exod)
EcVT = GVKG()(EcVT)
EcVT = MroH('relu')(EcVT)
EcVT = lARV(0.8)(EcVT)
EcVT = zSjz(units=128, return_sequences=True)(EcVT)
EcVT = lARV(0.8)(EcVT)
EcVT = GVKG()(EcVT)
EcVT = zSjz(units=128,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GsUR(YKHO):\n WKvO = bdPE.Input(shape=(84, 84, 3))\n C3ST = bdPE.Model(inputs=[WKvO], outputs=YKHO.global_model.call(WKvO))\n bdPE.utils.plot_model(C3ST, to_file=Hy7s.path.join(YKHO.save_dir, 'model_ppo_architecture.png'), dpi=96, show_shapes=True, show_layer_names=True, expand_nested=False)\n retu... | [
"0.7984956",
"0.734949",
"0.7288512",
"0.7272266",
"0.7203671",
"0.71940243",
"0.7192931",
"0.71449476",
"0.7098559",
"0.7085482",
"0.7081541",
"0.70338124",
"0.70228267",
"0.70032877",
"0.69943964",
"0.6992819",
"0.69791347",
"0.6966948",
"0.6953737",
"0.69529283",
"0.695216... | 0.0 | -1 |
Converts kph to mph (most speeds from NWS are in kph) | def V_db(YKHO, BWXx) -> float:
return XA2A(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ni9H(k6U_):\n return 0.277778 * k6U_",
"def cg8E(lYEE):\n return 3.6 * lYEE",
"def VqJw(iBLD: float) -> int:\n return int(iBLD * 3.6)",
"def b6ID(ZGSg):\n return ZGSg / 3.6",
"def t4ip(iBLD: float) -> int:\n return int(iBLD / 3.6)",
"def nlKP(bOav):\n return 3.6 * bOav",
"def MjSp... | [
"0.8160359",
"0.79791474",
"0.78408736",
"0.7790564",
"0.7685981",
"0.76223713",
"0.74329257",
"0.7273344",
"0.71670324",
"0.7097521",
"0.7070812",
"0.70521474",
"0.68863684",
"0.6870422",
"0.686676",
"0.68525934",
"0.66883194",
"0.66324186",
"0.64738923",
"0.64710057",
"0.63... | 0.7748743 | 4 |
Converts kph to knots (most speeds from NWS are in kph) | def xPUk(YKHO, BWXx) -> float:
return boNq(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQgg(G708: float) -> int:\n return int(G708 * 1.852)",
"def wD7N(YKHO):\n return YKHO._gps.speed_knots * 1.852",
"def IAAc(YKHO):\n return YKHO._gps.speed_knots",
"def Guda(p9p0: float) -> int:\n return int(p9p0 * 1.943)",
"def c8jt(YKHO):\n if YKHO.interp:\n YKHO.tu = jguA.knots_... | [
"0.7449185",
"0.7295162",
"0.70414555",
"0.7023081",
"0.68761593",
"0.6650716",
"0.63735366",
"0.6306315",
"0.61957985",
"0.61829466",
"0.6149561",
"0.60955787",
"0.6045027",
"0.6033644",
"0.59898514",
"0.5968502",
"0.5957553",
"0.592366",
"0.5909423",
"0.5883961",
"0.5875898... | 0.7684501 | 0 |
This view displays details of a users order. The view also updates the user profile if the saveinfo box has been ticked. The session basket is also cleared. The "checkout success" boolean is used to identify the order progress. | def dHxa(QePW, cVs5):
PuUe = QePW.session.get('save_info')
T4Wy = Iofl(L9Jq, order_number=cVs5)
if QePW.user.is_authenticated:
z39Z = BFpK.objects.get(user=QePW.user)
T4Wy.user_profile = z39Z
T4Wy.save()
if PuUe:
M0nx = {'default_phone_number': T4Wy.phone_number, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dHxa(QePW, cVs5):\n T4Wy = Iofl(L9Jq, order_number=cVs5)\n yEHD.success(QePW, f'Order was processed successfully! Your order number is {cVs5}, an email will be sent to {T4Wy.email}')\n if QePW.user.is_authenticated:\n z39Z = SYRW.objects.get(user=QePW.user)\n T4Wy.user_profile = z39Z\n ... | [
"0.66250044",
"0.65801185",
"0.64085513",
"0.6345262",
"0.62991565",
"0.6296168",
"0.6274787",
"0.6212499",
"0.61334854",
"0.6111985",
"0.609612",
"0.6066677",
"0.60000056",
"0.5996695",
"0.59813595",
"0.5965612",
"0.59469056",
"0.5913936",
"0.5900649",
"0.58986825",
"0.58982... | 0.75354123 | 0 |
return JSON rep of list_dictionaries | def IZ3T(F986):
if F986 is None:
return '[]'
else:
return qQXR.dumps(F986) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZ3T(F986):\n import json\n if not F986:\n return '[]'\n return json.dumps(F986)",
"def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)",
"def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)",
"def IZ3T(F986):\n if F98... | [
"0.7685051",
"0.76802963",
"0.76198274",
"0.76198274",
"0.75860906",
"0.7534229",
"0.75039935",
"0.7474547",
"0.7466223",
"0.74633175",
"0.744914",
"0.744914",
"0.7439212",
"0.74201846",
"0.7410293",
"0.7400613",
"0.7400613",
"0.7400613",
"0.7400613",
"0.7400135",
"0.73798484... | 0.735546 | 29 |
Get patch grids for given image | def cBKi(VXjJ, jJaQ, uN6P):
MKlR, yzQ0, bGrB = VXjJ.shape
n1pU = int(oyIN.ceil(MKlR / jJaQ))
eQ77 = int(oyIN.ceil(yzQ0 / uN6P))
if MKlR % jJaQ == 0:
EBuD = oyIN.arange(0, MKlR, jJaQ).astype(int)
else:
EBuD = oyIN.append(oyIN.arange(0, MKlR - jJaQ, jJaQ).astype(int), MKlR - jJaQ)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yIqQ(YKHO, LNo8):\n TAUK = (120, 160)\n Ocbe = (TAUK[0] - YKHO.patch_size[0] // 2) // YKHO.patch_size[0]\n Qjr3 = (TAUK[1] - YKHO.patch_size[1] // 2) // YKHO.patch_size[1]\n for r845 in range(-Qjr3, Qjr3 + 1):\n for YRbF in range(Ocbe, -1, -1):\n o4D3 = TAUK[0] - YKHO.patch_size[0... | [
"0.7516372",
"0.72960895",
"0.70775396",
"0.70282966",
"0.69926995",
"0.6967914",
"0.6896844",
"0.68379337",
"0.6774163",
"0.675702",
"0.6717057",
"0.6704581",
"0.6668064",
"0.66456616",
"0.6637496",
"0.65228623",
"0.64937913",
"0.6472303",
"0.6442629",
"0.64382833",
"0.64369... | 0.80881834 | 0 |
Add a new experience to memory. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
YKHO.pointer %= YKHO.capacity
kLQb = oyIN.concatenate([QTBn.flatten(), [XeOP, vOGg], rxHc.flatten(), [_ins]])
YKHO.memory[YKHO.pointer] = ht2j.from_numpy(kLQb)
YKHO.probs[YKHO.pointer] = YKHO.max_p
YKHO.pointer += 1
YKHO.memory_occupied = max(YKHO.me... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))",
"d... | [
"0.8763217",
"0.8755159",
"0.8509186",
"0.79707366",
"0.7879077",
"0.7878838",
"0.7878838",
"0.7709677",
"0.7708713",
"0.7609456",
"0.74958277",
"0.7470479",
"0.74537706",
"0.737918",
"0.73555547",
"0.730577",
"0.7283659",
"0.7276514",
"0.72636735",
"0.7246649",
"0.72328925",... | 0.0 | -1 |
Randomly sample a batch of experiences from memory. | def mvm2(YKHO):
rpxG = YKHO.dist.sample(YKHO.batch_size) % YKHO.__len__()
wfZK = YKHO.memory[rpxG]
fniA = (YKHO.min_p * YKHO.__len__() / YKHO.dist.tree[0]) ** (-YKHO.beta)
_mSQ = YKHO.__len__() / YKHO.dist.tree[0] * YKHO.probs[rpxG].to(begE, non_blocking=True)
_mSQ.pow_(-YKHO.beta).div_(fniA)
ws... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)",
"def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)",
"def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO.... | [
"0.7983961",
"0.79046863",
"0.7868443",
"0.7706011",
"0.7525482",
"0.75070703",
"0.7481443",
"0.74332356",
"0.7432144",
"0.7427844",
"0.74261487",
"0.74147487",
"0.7403821",
"0.7403821",
"0.7403821",
"0.7392868",
"0.7389204",
"0.7389204",
"0.7389204",
"0.7379021",
"0.7376972"... | 0.6609425 | 76 |
Add a new experience to memory. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
tTpl = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)
YKHO.memory.append(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))",
"d... | [
"0.8763217",
"0.8755159",
"0.8509186",
"0.79707366",
"0.7879077",
"0.7878838",
"0.7878838",
"0.7708713",
"0.7609456",
"0.74958277",
"0.7470479",
"0.74537706",
"0.737918",
"0.73555547",
"0.730577",
"0.7283659",
"0.7276514",
"0.72636735",
"0.7246649",
"0.72328925",
"0.72187954"... | 0.7709677 | 7 |
Randomly sample a batch of experiences from memory. | def mvm2(YKHO):
wfZK = tuKI.sample(YKHO.memory, k=YKHO.batch_size)
wspz = ht2j.from_numpy(oyIN.vstack([tTpl.state for tTpl in wfZK if tTpl is not None])).float().to(begE)
xASv = ht2j.from_numpy(oyIN.vstack([tTpl.action for tTpl in wfZK if tTpl is not None])).long().to(begE)
vwlo = ht2j.from_numpy(oyIN.v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)",
"def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)",
"def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO.... | [
"0.7983961",
"0.79046863",
"0.7868443",
"0.7706011",
"0.7525482",
"0.75070703",
"0.7481443",
"0.74332356",
"0.7432144",
"0.7427844",
"0.74261487",
"0.74147487",
"0.7403821",
"0.7403821",
"0.7403821",
"0.7392868",
"0.7389204",
"0.7389204",
"0.7389204",
"0.7379021",
"0.7376972"... | 0.7328262 | 25 |
Sets the ip_address of this SearchCredentialTransactionsRequest. | def I33c(YKHO, I33c):
YKHO._ip_address = I33c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I33c(YKHO, I33c):\n YKHO._ip_address = I33c",
"def I33c(YKHO, I33c):\n YKHO._ip_address = I33c",
"def I33c(YKHO, I33c):\n YKHO._ip_address = I33c",
"def I33c(YKHO, I33c):\n YKHO._ip_address = I33c",
"def H7EZ(YKHO, SwOd):\n YKHO.options['ipaddress'] = SwOd",
"def D8Ke(YKHO, D8Ke):\n ... | [
"0.7286502",
"0.7185165",
"0.7185165",
"0.7185165",
"0.7140689",
"0.68658507",
"0.68658507",
"0.68334746",
"0.67506886",
"0.6716214",
"0.6485479",
"0.64378434",
"0.6391878",
"0.6343703",
"0.63362783",
"0.62822473",
"0.6280299",
"0.6244106",
"0.6223367",
"0.6161224",
"0.614845... | 0.7195987 | 1 |
Sets the customer_account of this SearchCredentialTransactionsRequest. | def abpc(YKHO, abpc):
if abpc is None:
raise ValueError('Invalid value for `customer_account`, must not be `None`')
YKHO._customer_account = abpc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QIQc(YKHO, m3Nh):\n YKHO.current_customer = m3Nh",
"def m3Nh(YKHO, m3Nh):\n if YKHO._configuration.client_side_validation and m3Nh is None:\n raise ValueError('Invalid value for `customer`, must not be `None`')\n YKHO._customer = m3Nh",
"def m3Nh(YKHO, m3Nh):\n YKHO._customer = m3Nh",
... | [
"0.72686523",
"0.72100335",
"0.71842414",
"0.71842414",
"0.71842414",
"0.7158997",
"0.71505946",
"0.64709216",
"0.64709216",
"0.64429",
"0.64281887",
"0.6420744",
"0.63947684",
"0.6368959",
"0.63562906",
"0.62109095",
"0.6158538",
"0.61456525",
"0.6103324",
"0.6053346",
"0.60... | 0.7903664 | 0 |
Creating a new user with an email is Successfull | def VN2K(YKHO):
D3lj = 'test@zarif.com'
jTXt = 'Test123'
CBIr = egNl().object.create_user(email=D3lj, password=jTXt)
YKHO.assertEqual(CBIr.email, D3lj)
YKHO.assertTrue(CBIr.check_password(jTXt)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CfQI(NCls, nPrm):\n if not isinstance(nPrm, dict):\n nPrm = qQXR.loads(nPrm)\n D3lj = nPrm['email']\n gFsc = h4Rr(db=NCls, email=D3lj)\n if len(gFsc):\n return 'duplicate'\n else:\n _DuO(db=NCls, data=nPrm)\n BfDw.send_email(to_email=D3lj, subject='Welcome to our webs... | [
"0.80814993",
"0.796342",
"0.7884279",
"0.7821952",
"0.7794346",
"0.77587295",
"0.77363664",
"0.7724807",
"0.7715055",
"0.76911163",
"0.7679044",
"0.7670887",
"0.76191354",
"0.7613233",
"0.760629",
"0.76025397",
"0.75562155",
"0.7551002",
"0.75485784",
"0.7515586",
"0.7515417... | 0.75033766 | 27 |
Test creating user with no email raises error | def IoZM(YKHO):
with YKHO.assertRaises(ValueError):
egNl().object.create_user(None, 'test123') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CnXP(YKHO):\n with YKHO.assertRaises(ValueError):\n D3lj = None\n KaGP = 'test1234'\n egNl().objects.create_user(email=D3lj, password=KaGP)",
"def WhLD(YKHO):\n with YKHO.assertRaises(ValueError):\n mv1M.objects.create_user(None, YKHO.password)",
"def dv9i(YKHO):\n with... | [
"0.8946626",
"0.8913199",
"0.88823766",
"0.8839374",
"0.8826006",
"0.87678343",
"0.87338656",
"0.8719586",
"0.8719016",
"0.8717694",
"0.8716184",
"0.87151146",
"0.87151146",
"0.8714722",
"0.8714722",
"0.8714722",
"0.8714722",
"0.8714722",
"0.87111115",
"0.8709845",
"0.8703824... | 0.8635685 | 33 |
Test creating a new superuser | def B84k(YKHO):
CBIr = egNl().object.create_superuser('test123@zarif.com', 'test123')
YKHO.assertTrue(CBIr.is_superuser)
YKHO.assertTrue(CBIr.is_staff) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LqR1(YKHO):\n CBIr = egNl().objects.create_superuser('test@undeinveti.ro', 'test123')\n YKHO.assertTrue(CBIr.is_superuser)\n YKHO.assertTrue(CBIr.is_staff)",
"def LqR1(YKHO):\n CBIr = egNl().objects.create_superuser('testsuper@gmail.com', 'test@123')\n YKHO.assertTrue(CBIr.is_superuser)\n Y... | [
"0.87034905",
"0.86985886",
"0.86361283",
"0.86126035",
"0.8606349",
"0.8591782",
"0.857967",
"0.85259736",
"0.85191494",
"0.848048",
"0.84751505",
"0.8472082",
"0.84552705",
"0.8452226",
"0.83610165",
"0.8334969",
"0.83251256",
"0.83212703",
"0.8295097",
"0.8293466",
"0.8277... | 0.8318251 | 18 |
Finds contours in the current color image and uses them to update contour_center and contour_area | def zpVV():
global contour_center
global contour_area
global contour
global ONCE
LNo8 = RBVb.camera.get_color_image()
TVTK = RBVb.camera.get_width()
H2v2 = RBVb.camera.get_height() - _0Ik[0][0]
if LNo8 is None:
SiTZ = None
B7k8 = 0
else:
LNo8 = sKgl.crop(LNo8,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zpVV():\n global contour_center\n global contour_area\n LNo8 = RBVb.camera.get_color_image()\n if LNo8 is None:\n SiTZ = None\n B7k8 = 0\n else:\n Iowl = sKgl.find_contours(LNo8, LpMD[0], LpMD[1])\n iLki = sKgl.get_largest_contour(Iowl, qm3B)\n if iLki is not N... | [
"0.8295264",
"0.81191945",
"0.74688846",
"0.73817986",
"0.7308727",
"0.72472996",
"0.72329",
"0.71964353",
"0.718602",
"0.7055498",
"0.69638604",
"0.6942349",
"0.6931145",
"0.6896266",
"0.68788755",
"0.6764887",
"0.67493325",
"0.674366",
"0.6719004",
"0.671046",
"0.67059356",... | 0.7779028 | 2 |
Attach a lot of summaries to a Tensor. | def QS7_(SRYB):
if not ZylS.get_variable_scope().reuse:
mWFP = SRYB.op.name
G9jH.debug('Creating Summary for: %s' % mWFP)
with ZylS.name_scope('summaries'):
JBMS = ZylS.reduce_mean(SRYB)
ZylS.summary.scalar(mWFP + '/mean', JBMS)
with ZylS.name_scope('stdde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('total_loss', YKHO.loss)\n ZylS.summary.histogram('histogram_total_loss', YKHO.loss)\n ZylS.summary.histogram('user_embedding_weights', YKHO.user_embeddings)\n ZylS.summary.histogram('product_embedding_weights... | [
"0.75048786",
"0.7503184",
"0.6723792",
"0.66532505",
"0.6649798",
"0.66192865",
"0.6594616",
"0.647371",
"0.64568365",
"0.6452718",
"0.64384913",
"0.6437376",
"0.6388034",
"0.63772506",
"0.62772393",
"0.62750816",
"0.6251355",
"0.62348235",
"0.6184745",
"0.61670166",
"0.6163... | 0.0 | -1 |
Creates an identity matrix of the same shape as another matrix. For matrix M, the output is same shape as M, if M is a (n,n)matrix. If M is a batch of m matrices (i.e. a (m,n,n)tensor), create a batch of (n,n)identitymatrices. | def NH_2(E3D9, begE=None, yDqo=None):
assert len(E3D9.shape) in [2, 3]
assert E3D9.shape[-1] == E3D9.shape[-2]
exwG = E3D9.shape[-1]
if begE is None:
begE = E3D9.device
if yDqo is None:
yDqo = E3D9.dtype
MUmk = ht2j.eye(E3D9.shape[-1], device=begE, dtype=yDqo)
if len(E3D9.sha... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KqLs(Ep8u, kyfT, *qIxc, **B2fa):\n vEq1 = ht2j.eye(kyfT, *qIxc, **B2fa).unsqueeze(0)\n Ylbp = vEq1.repeat(Ep8u, 1, 1)\n return Ylbp",
"def UOV2(exwG: int) -> aLMY:\n return OqWE(exwG, exwG, lambda YRbF, r845: 1 if YRbF == r845 else 0)",
"def UOV2():\n return XTiz.identity(4, dtype=XTiz.float... | [
"0.7676138",
"0.72667634",
"0.71918166",
"0.71918166",
"0.71394473",
"0.69194055",
"0.69040245",
"0.68976563",
"0.68209064",
"0.6748452",
"0.66540724",
"0.665187",
"0.6608938",
"0.65605104",
"0.65576184",
"0.6469861",
"0.64304966",
"0.64092624",
"0.63982534",
"0.6353012",
"0.... | 0.54457587 | 95 |
Swap the given root with its right child. | def ODm0(YKHO, FFjx: TreeNode) -> i8DB:
esTa: i8DB = FFjx.right
FbgK: i8DB = esTa.left
esTa.left = FFjx
FFjx.right = FbgK
FFjx.height = 1 + YKHO._get_max_height_of_children(FFjx)
esTa.height = 1 + YKHO._get_max_height_of_children(esTa)
return esTa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4SK(YKHO, tk5Y):\n cZ0W = tk5Y.prev\n wyPV = tk5Y.left\n tk5Y.left = wyPV.right\n tk5Y.left.prev = tk5Y\n wyPV.right = tk5Y\n wyPV.right.prev = wyPV\n tk5Y = wyPV\n tk5Y.prev = cZ0W\n return tk5Y",
"def HoBr(YKHO) -> None:\n aUGN = YKHO.right\n YKHO.root, aUGN.root = (aUGN.r... | [
"0.7700498",
"0.74927485",
"0.73841995",
"0.7297038",
"0.72875714",
"0.72551167",
"0.7207371",
"0.7085124",
"0.70782626",
"0.706741",
"0.7056077",
"0.70553994",
"0.6960231",
"0.6924992",
"0.6920171",
"0.6914028",
"0.6901011",
"0.68960994",
"0.6883985",
"0.68598944",
"0.684366... | 0.5940212 | 96 |
Swap the given root with its left child. | def SQou(YKHO, FFjx: TreeNode) -> i8DB:
cdj0: i8DB = FFjx.left
rjvE: i8DB = cdj0.right
cdj0.right = FFjx
FFjx.left = rjvE
FFjx.height = 1 + YKHO._get_max_height_of_children(FFjx)
cdj0.height = 1 + YKHO._get_max_height_of_children(cdj0)
return cdj0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vj8M(YKHO, tk5Y):\n cZ0W = tk5Y.prev\n wyPV = tk5Y.right\n tk5Y.right = wyPV.left\n tk5Y.right.prev = tk5Y\n wyPV.left = tk5Y\n wyPV.left.prev = wyPV\n tk5Y = wyPV\n tk5Y.prev = cZ0W\n return tk5Y",
"def ALjf(YKHO):\n wyPV = YKHO.right\n YKHO.right = wyPV.left\n wyPV.left ... | [
"0.7953948",
"0.776388",
"0.7742467",
"0.76837444",
"0.76176846",
"0.757711",
"0.7573713",
"0.7527152",
"0.74475044",
"0.74317706",
"0.7330113",
"0.7282036",
"0.7278337",
"0.7235343",
"0.71767306",
"0.7163211",
"0.7149732",
"0.71384984",
"0.7107558",
"0.7097419",
"0.7084424",... | 0.6455447 | 61 |
Get the height of the given node; if no node is given, then return the height of the root. An empty tree has height 0. | def uMsz(YKHO, FFjx: TreeNode) -> int:
if FFjx is None:
return 0
return FFjx.height | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xglF(YKHO, Q6kx=None):\n\n def SsQy(Q6kx):\n if Q6kx is None or Q6kx.is_leaf():\n return 0\n else:\n return 1 + max(SsQy(Q6kx.left), SsQy(Q6kx.right))\n if Q6kx is None:\n return YKHO.height\n else:\n return SsQy(Q6kx)",
"def H2v2(Q6kx):\n if Q6kx... | [
"0.85259956",
"0.8410644",
"0.8408097",
"0.8317268",
"0.8302316",
"0.82139766",
"0.82139766",
"0.8111972",
"0.81004816",
"0.7993834",
"0.7956746",
"0.7935003",
"0.7896843",
"0.782804",
"0.7820751",
"0.77532905",
"0.7751833",
"0.7684521",
"0.766809",
"0.76154417",
"0.7600097",... | 0.7299873 | 35 |
Plot data with two yaxes. | def oPsb(a1PO, si3g, skBL, E5a5, kYcG):
a1PO /= 1000.0
LZpg, hh7H = QcNK.subplots()
qfpW = 'tab:orange'
hh7H.set_xlabel('Frequency [kHz]')
hh7H.set_ylabel('R', color=qfpW)
hh7H.set_xlim(a1PO[0], a1PO[-1])
hh7H.set_ylim(E5a5)
hh7H.tick_params(axis='y', labelcolor=qfpW)
hh7H.plot(a1PO,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDXD(ITS7, H2v2, Lf5M):\n qjJM.plot(ITS7, H2v2, label='height')\n qjJM.grid()\n qjJM.xlabel('time')\n qjJM.ylabel('height')\n qjJM.show()\n qjJM.plot(ITS7, Lf5M, label='speed')\n qjJM.grid()\n qjJM.xlabel('time')\n qjJM.ylabel('y-speed')\n qjJM.show()",
"def jMUT(WKvO, LVAh, Sdu... | [
"0.706329",
"0.6981726",
"0.68493545",
"0.67800844",
"0.6646256",
"0.6613829",
"0.65773344",
"0.65595955",
"0.65558237",
"0.65425956",
"0.63850754",
"0.6354072",
"0.6335741",
"0.63333434",
"0.63153774",
"0.6286646",
"0.6285506",
"0.62733984",
"0.6261036",
"0.6258338",
"0.6254... | 0.7372479 | 0 |
Given an (integer) quantum number v, return the vibrational energy. | def sS83(YKHO, exwG):
lWPh = YKHO.D
return (exwG + 0.5) * YKHO.omega - (YKHO.omega * (exwG + 0.5)) ** 2 / (4.0 * lWPh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(YKHO, Ty9i, MKlR=None):\n MKlR = oyIN.zeros(YKHO.Nh) if MKlR is None else MKlR\n NlGF = oyIN.dot(Ty9i, YKHO.bv)\n NlGF += oyIN.dot(MKlR, YKHO.bh)\n for r845 in range(YKHO.Nv):\n for YRbF in range(r845):\n NlGF += Ty9i[YRbF] * Ty9i[r845] * YKHO.Wvv[YRbF][r845]\n for YRbF in... | [
"0.70324326",
"0.6911138",
"0.66364473",
"0.65688974",
"0.65567636",
"0.651164",
"0.6467307",
"0.6301215",
"0.6298081",
"0.62760174",
"0.6232771",
"0.62311643",
"0.62010974",
"0.6171055",
"0.6168621",
"0.61340034",
"0.609056",
"0.60747886",
"0.6065546",
"0.6047353",
"0.604350... | 0.0 | -1 |
Morse potential D (1. e^{a (r r_e)})2 | def KSJv(Mkmy, lWPh, jzdc, ZbWC):
return lWPh * (1.0 - kLQb(-jzdc * (Mkmy - ZbWC))) ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ytUz(Mkmy, mVyV, lWPh, jzdc):\n return lWPh * (1 - oyIN.exp(-jzdc * (Mkmy - mVyV))) ** 2 - lWPh",
"def mawn(nE4S, FElh, B0Mh, sCcU):\n if nE4S < FElh:\n return B0Mh\n else:\n return -ytUz(nE4S, FElh, B0Mh, sCcU)",
"def buY8(YKHO, Mkmy):\n return YKHO.De * (1 - oyIN.exp(-YKHO.a * (... | [
"0.8501644",
"0.75488085",
"0.7547079",
"0.7494394",
"0.7413815",
"0.71965355",
"0.7185947",
"0.71625406",
"0.7143484",
"0.6993552",
"0.6753507",
"0.6638235",
"0.65740407",
"0.655738",
"0.65107656",
"0.6353336",
"0.6351787",
"0.6340022",
"0.6339564",
"0.6275037",
"0.62500674"... | 0.8010781 | 1 |
Returns the HilbertSchmidt distance between two density matrices A & B. | def mFMY(k0lF, tjUW):
if k0lF.shape != tjUW.shape:
raise TypeError('A and B do not have same dimensions.')
return ((k0lF - tjUW) ** 2).tr() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mFMY(k0lF, tjUW):\n if k0lF.isket or k0lF.isbra:\n k0lF = KZz5(k0lF)\n if tjUW.isket or tjUW.isbra:\n tjUW = KZz5(tjUW)\n if k0lF.dims != tjUW.dims:\n raise TypeError('A and B do not have same dimensions.')\n return ((k0lF - tjUW) ** 2).tr()",
"def mFMY(k0lF, tjUW):\n if k... | [
"0.8117289",
"0.80573595",
"0.70618606",
"0.68056786",
"0.67990905",
"0.6729766",
"0.6637469",
"0.65761715",
"0.6551477",
"0.6511675",
"0.64989275",
"0.6450845",
"0.64321876",
"0.63701594",
"0.63547313",
"0.63540894",
"0.63526535",
"0.6328292",
"0.6319811",
"0.6302483",
"0.62... | 0.80710196 | 1 |
Check if a matrix is diagonal. | def cUPz(E3D9):
return oyIN.all(E3D9 == oyIN.diag(oyIN.diagonal(E3D9))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pu5w(fHeP):\n if not iLKf(fHeP):\n return False\n for YRbF, rdlD in enumerate(fHeP):\n for r845, LihS in enumerate(rdlD):\n if YRbF != r845 and LihS != 0:\n return False\n return True",
"def _Aci(YKHO, E3D9: np.ndarray) -> bool:\n YRbF, r845 = oyIN.nonzero(... | [
"0.8383714",
"0.83076197",
"0.8263693",
"0.8199998",
"0.81655616",
"0.81505454",
"0.8109475",
"0.81061816",
"0.7984975",
"0.792387",
"0.7909577",
"0.7909455",
"0.7909455",
"0.7909455",
"0.7877518",
"0.783213",
"0.7817842",
"0.7774759",
"0.77030814",
"0.76249135",
"0.76236576"... | 0.8400853 | 0 |
Initialize a new FireRiskDataModule instance. | def FIMM(YKHO, Ep8u: int=64, I7Gy: int=0, **B2fa: Any) -> None:
super().__init__(bZGP, Ep8u, I7Gy, **B2fa)
YKHO.train_aug = svcs(nMvt.Normalize(mean=YKHO.mean, std=YKHO.std), nMvt.RandomRotation(p=0.5, degrees=90), nMvt.RandomHorizontalFlip(p=0.5), nMvt.RandomVerticalFlip(p=0.5), nMvt.RandomSharpness(p=0.5), nM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO._values = {'baseData': None}\n YKHO._initialize()",
"def FIMM(YKHO):\n oekH.FloatDataSet1D_swiginit(YKHO, oekH.new_FloatDataSet1D())",
"def ckSS(YKHO):\n pass",
"def FIMM(YKHO, lWLw, WXB7):\n YKHO.__threshold = lWLw['threshold']\n YKHO.__data_module = WXB7\n YKHO._... | [
"0.6045372",
"0.60414094",
"0.599523",
"0.5948875",
"0.5882868",
"0.58666885",
"0.58666885",
"0.5864717",
"0.58632",
"0.5857575",
"0.5857575",
"0.5849639",
"0.5843408",
"0.57779557",
"0.5773643",
"0.5769197",
"0.57667214",
"0.576514",
"0.57560706",
"0.5746738",
"0.57434464",
... | 0.0 | -1 |
Find all packages in path | def XtZ5(pmON, P8oC=''):
cEzT = {}
for ZfUD in Hy7s.listdir(pmON):
dir = Hy7s.path.join(pmON, ZfUD)
if bYKW(dir):
if P8oC:
LCet = '%(base)s.%(item)s' % vars()
else:
LCet = ZfUD
cEzT[LCet] = dir
cEzT.update(XtZ5(dir, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XtZ5(pmON):\n for uvd8 in Hy7s.listdir(pmON):\n Zg0d = Hy7s.path.join(pmON, uvd8)\n if Hy7s.path.isdir(Zg0d) and bYKW(Zg0d):\n yield Zg0d",
"def XtZ5(pmON):\n exwG = len(pmON) + 1\n vC9B = []\n for pGQh, iIh5, iumf in Hy7s.walk(pmON):\n for Csk6 in iIh5:\n ... | [
"0.79734427",
"0.78066105",
"0.7747679",
"0.74165845",
"0.7402041",
"0.7387977",
"0.7387977",
"0.7387977",
"0.7387977",
"0.7387977",
"0.7387977",
"0.7387977",
"0.7387977",
"0.73751795",
"0.73400193",
"0.7327899",
"0.7317176",
"0.7304228",
"0.7222785",
"0.72163993",
"0.7207383... | 0.71587074 | 23 |
Get application requirements from the requirements.txt file. | def Ks_v(Ux0P):
with open(Ux0P, 'r') as qv1X:
fA3L = qv1X.readlines()
c0tL = [Mkmy.strip() for Mkmy in fA3L if Mkmy.find('git+') != 0]
return c0tL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O1OY():\n with open('requirements.txt') as J0RQ:\n return J0RQ.read().splitlines()",
"def O1OY():\n kbO9 = []\n with open('requirements.txt', 'r') as ytgA:\n zFiD = ytgA.readline()\n while zFiD:\n kbO9.append(zFiD.strip())\n zFiD = ytgA.readline()\n retu... | [
"0.81287163",
"0.7927616",
"0.7858074",
"0.7848775",
"0.78475565",
"0.7845405",
"0.78405404",
"0.78107834",
"0.77328557",
"0.7677933",
"0.76096857",
"0.74978435",
"0.7425493",
"0.7419248",
"0.73872674",
"0.73682094",
"0.7319138",
"0.73006284",
"0.7260958",
"0.72562444",
"0.72... | 0.714676 | 25 |
Returns an PermissionManager class. The default implementation looks for a class named PermissionManager in the current class. | def cb3b(Emd4):
p_z1 = getattr(Emd4, 'PermissionManager', None)
if p_z1 is None:
raise NotImplementedError(f'{Emd4.__name__} does not define a nested class named PermissionManager.')
if not issubclass(p_z1, WE94.PermissionManager):
raise NotImplementedError(f'{p_z1} should extend {WE94.Permi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PDax(YKHO):\n PFCt = '%s_manager' % YKHO.name\n if PFCt not in SAs9:\n return None\n W58Y = SAs9.get(PFCt, None)\n if not W58Y:\n return None\n MkGu = mCgp.import_class(W58Y)\n return MkGu()",
"def gfO7(YKHO) -> type:\n return object",
"def cUfb(Emd4):\n if isinstance(... | [
"0.65096873",
"0.63835025",
"0.6055073",
"0.6012668",
"0.5837599",
"0.58159333",
"0.5801821",
"0.57743037",
"0.5746316",
"0.56813216",
"0.5632707",
"0.5632684",
"0.55896956",
"0.5586575",
"0.5582576",
"0.555815",
"0.55326915",
"0.55326915",
"0.5516825",
"0.5488591",
"0.548859... | 0.8237466 | 0 |
Hook overwritten in subclasses | def NCzy(YKHO):
return YKHO.defense | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OQzj(YKHO):\n raise NotImplementedError()",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\... | [
"0.8194842",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"... | 0.0 | -1 |
Hook overwritten in subclasses | def a5kp(YKHO, BH3N, oyg0):
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OQzj(YKHO):\n raise NotImplementedError()",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\... | [
"0.8194842",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"... | 0.0 | -1 |
Hook overwritten in subclasses | def OTmE(YKHO, BH3N, oyg0):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OQzj(YKHO):\n raise NotImplementedError()",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\... | [
"0.8194842",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"... | 0.0 | -1 |
Hook overwritten in subclasses | def alSg(YKHO, BH3N, oyg0, dxhl):
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OQzj(YKHO):\n raise NotImplementedError()",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\... | [
"0.8194842",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"... | 0.0 | -1 |
Hook overwritten in subclasses | def Oqof(YKHO, BH3N, oyg0, dxhl):
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OQzj(YKHO):\n raise NotImplementedError()",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\... | [
"0.8194842",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"... | 0.0 | -1 |
Hook overwritten in subclasses | def AfmU(YKHO, BH3N, oyg0):
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OQzj(YKHO):\n raise NotImplementedError()",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\... | [
"0.8194842",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"... | 0.0 | -1 |
Hook overwritten in subclasses | def nQfQ(YKHO, BH3N, oyg0):
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OQzj(YKHO):\n raise NotImplementedError()",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\... | [
"0.8194842",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"0.7985047",
"... | 0.0 | -1 |
Applies a rationalquadratic spline to a scalar. | def JqoI(WKvO: Array, QOxj: Array, SCLJ: Array, Q1Ok: Array) -> AzJI[HWEd, HWEd]:
A3L2 = WKvO <= QOxj[0]
AoOi = WKvO >= QOxj[-1]
U82V = oLG2.logical_and(WKvO >= QOxj[:-1], WKvO < QOxj[1:])
jrZs = oLG2.any(U82V)
uLb_ = oLG2.concatenate([oLG2.array([1]), oLG2.zeros(len(U82V) - 1)]).astype(bool)
U8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKud(Gaon, gYZ3=0.0):\n if gYZ3 != 0.0:\n raise ValueError('Smoothing quadratic splines not supported yet.')\n else:\n return jC7D(Gaon)",
"def E_tF(YKHO, hAEw):\n return Vao1(YKHO.triangle, YKHO.degree, hAEw * YKHO.coefficients)",
"def bV8S(hG4W, oBL1, Jw7X=1.0, nJ9F=0):\n oBL1 =... | [
"0.6532803",
"0.6260097",
"0.57570183",
"0.57509476",
"0.57351506",
"0.5642998",
"0.55791265",
"0.54952824",
"0.5457962",
"0.5455774",
"0.5403432",
"0.540216",
"0.53960985",
"0.5329744",
"0.5297149",
"0.5292444",
"0.5279957",
"0.5265852",
"0.5250101",
"0.52481025",
"0.524053"... | 0.557943 | 6 |
Strip html and will also remove entities. | def Nlxd(_R2e):
KCHu = Tbhj()
KCHu.feed(_R2e)
return KCHu.get_fed_data() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vHva(BWXx):\n from django.utils.html import strip_entities, strip_tags\n BWXx = strip_tags(BWXx)\n from BeautifulSoup import BeautifulStoneSoup\n return BeautifulStoneSoup(BWXx, convertEntities=BeautifulStoneSoup.HTML_ENTITIES)",
"def EFyG(yAmx):\n for WKvO in mXW2.html_entities:\n yAmx... | [
"0.81203854",
"0.7876938",
"0.77943605",
"0.7753264",
"0.77106357",
"0.7703252",
"0.7678033",
"0.767492",
"0.76564044",
"0.7632123",
"0.7621012",
"0.7618179",
"0.7592528",
"0.75863874",
"0.7559843",
"0.7530568",
"0.7468863",
"0.74494255",
"0.7431579",
"0.7418984",
"0.7410208"... | 0.72511345 | 28 |
Display contact page Context ``contact`` | def d6pt(QePW):
if QePW.method == 'POST':
mWFP = QePW.POST.get('full_name')
D3lj = QePW.POST.get('email')
FGW3 = QePW.POST.get('number')
Ol8d = QePW.POST.get('message')
try:
if mWFP == '' or D3lj == '' or Ol8d == '' or (FGW3 == ''):
yEHD.error(QePW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gl53():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('general/contact.html', user=CBIr)",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",... | [
"0.84528404",
"0.8434088",
"0.8297491",
"0.8297491",
"0.8278631",
"0.82343584",
"0.8205359",
"0.8169966",
"0.8110771",
"0.8078495",
"0.806735",
"0.8026768",
"0.8008117",
"0.7973316",
"0.7953632",
"0.7935841",
"0.792432",
"0.78997177",
"0.78689617",
"0.7860848",
"0.7859451",
... | 0.0 | -1 |
boxName can be either a name "cat" or a tuple ("cat", "hue") Here we really have to duplicate seaborn code, because there is not direct access to the box_data in the BoxPlotter class. | def ndnQ(e41y, zdjd):
if e41y.plot_hues is None:
ACia = zdjd
else:
ACia = zdjd[0]
Hafq = zdjd[1]
YRbF = e41y.group_names.index(ACia)
M1Tt = e41y.plot_data[YRbF]
if e41y.plot_hues is None:
LzmR = SF18(M1Tt)
else:
PWPc = Hafq
mJlq = e41y.plot_hues[YR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ndnQ(M6ru, zdjd):\n ACia = M6ru.plot_hues is None and zdjd or zdjd[0]\n d6pt = M6ru.group_names.index(ACia)\n M1Tt = M6ru.plot_data[d6pt]\n if M6ru.plot_hues is None:\n LzmR = SF18(M1Tt)\n else:\n PWPc = zdjd[1]\n mJlq = M6ru.plot_hues[d6pt] == PWPc\n LzmR = SF18(M1Tt... | [
"0.7224484",
"0.6570977",
"0.62748414",
"0.62733",
"0.6209245",
"0.6171605",
"0.61495817",
"0.6125669",
"0.6119223",
"0.6103091",
"0.60370713",
"0.6009907",
"0.6007508",
"0.59943664",
"0.5991941",
"0.5977593",
"0.5966094",
"0.59549767",
"0.5946191",
"0.59434336",
"0.59397477"... | 0.73514485 | 0 |
Attempt registering user with name shorter than 3 chars. | def eOJf(COmz):
L03z = eUF5(COmz, username='librarian@kb.se', full_name='01')
assert L03z.validate() is False
assert bGrB('Field must be between 3 and 255 characters long.') in L03z.full_name.errors | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gLYA(YKHO):\n geh0 = YKHO.register_user(YKHO.username_less_than_six)\n YKHO.assertEqual(geh0.json()['errors']['username'], ['The username can only be between 5 to 25 characters.'])",
"def RdJT(NtEF):\n if len(NtEF) < 3:\n print('Invalid username. Must be at least 3 characters long')\n else... | [
"0.7384933",
"0.72690976",
"0.7220436",
"0.7148389",
"0.70424604",
"0.70312023",
"0.69412005",
"0.6935376",
"0.6816643",
"0.6806207",
"0.6799588",
"0.6714416",
"0.6674682",
"0.66645026",
"0.66523886",
"0.66487044",
"0.66412246",
"0.6633865",
"0.66040283",
"0.6578341",
"0.6512... | 0.0 | -1 |
was_published_recently() returns False for questionDiagnosiss whose pub_date is in the future. | def HRZg(YKHO):
ITS7 = rIAI.now() + qcWV.timedelta(days=30)
PEqd = Lh4n(pub_date=ITS7)
YKHO.assertIs(PEqd.was_published_recently(), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_... | [
"0.8546636",
"0.8546636",
"0.8546636",
"0.8546636",
"0.853457",
"0.8368121",
"0.8274124",
"0.8268522",
"0.82551944",
"0.82550746",
"0.8254981",
"0.82542056",
"0.8250409",
"0.8221877",
"0.82106066",
"0.82069916",
"0.8203648",
"0.8203648",
"0.8203648",
"0.8203648",
"0.8203648",... | 0.824406 | 13 |
was_published_recently() returns False for questionDiagnosiss whose pub_date is older than 1 day. | def Mkh6(YKHO):
ITS7 = rIAI.now() - qcWV.timedelta(days=1, seconds=1)
eAaA = Lh4n(pub_date=ITS7)
YKHO.assertIs(eAaA.was_published_recently(), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_... | [
"0.85459644",
"0.85459644",
"0.85459644",
"0.85459644",
"0.852042",
"0.820004",
"0.81536365",
"0.80789936",
"0.80768156",
"0.8069408",
"0.80648327",
"0.8043775",
"0.8042574",
"0.80400175",
"0.8029171",
"0.8019442",
"0.8011407",
"0.8011407",
"0.8011407",
"0.8011407",
"0.801140... | 0.807281 | 9 |
was_published_recently() returns True for questionDiagnosiss whose pub_date is within the last day. | def f7NM(YKHO):
ITS7 = rIAI.now() - qcWV.timedelta(hours=23, minutes=59, seconds=59)
n0n1 = Lh4n(pub_date=ITS7)
YKHO.assertIs(n0n1.was_published_recently(), True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_... | [
"0.84715134",
"0.84715134",
"0.84715134",
"0.84715134",
"0.84110713",
"0.8099682",
"0.8034703",
"0.80073375",
"0.7988535",
"0.79845726",
"0.7979651",
"0.79726106",
"0.79572546",
"0.79572546",
"0.79572546",
"0.79572546",
"0.79572546",
"0.79572546",
"0.79572546",
"0.79572546",
... | 0.8187668 | 5 |
Returns the number of elements in the list. | def pPgg(YKHO):
return LtkZ(YKHO.expr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLGw(list):\n return list.count()",
"def hfF0(YKHO):\n u54L = 0\n for F6AI in YKHO.tl:\n u54L += 1\n return u54L",
"def zNig(YKHO):\n vIOz = len(YKHO._list)\n return vIOz",
"def zNig(YKHO):\n return len(YKHO.list)",
"def zNig(vC9B):\n return len(vC9B)",
"def szAg(YKHO) ... | [
"0.85048866",
"0.84187955",
"0.81252164",
"0.8059746",
"0.8038385",
"0.79442096",
"0.7912444",
"0.7856228",
"0.7814653",
"0.7799409",
"0.7760593",
"0.7758652",
"0.77512985",
"0.7749229",
"0.7749229",
"0.7749229",
"0.77462226",
"0.7745937",
"0.7728483",
"0.77193356",
"0.770466... | 0.72810817 | 56 |
Compute average categorical accuracy (CA) from source samples only. | def qP34(Y8eF, aMgO):
ZbgG = Y8eF[:vPBo.batch_size]
c3YR = aMgO[:vPBo.batch_size]
vjyh = nMvt.cast(nMvt.equal(nMvt.argmax(ZbgG, axis=-1), nMvt.argmax(c3YR, axis=-1)), nMvt.floatx())
return nMvt.mean(vjyh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YqAw(Yqkn, t4zr):\n zxDJ = EHUa(Yqkn)\n\n def mehw(G1Hx):\n zxDJ.set_k(G1Hx)\n r5Nw = 0\n for QOe9 in t4zr:\n UXqs = zxDJ.classify(QOe9['data'])\n if UXqs == QOe9['label']:\n r5Nw += 1\n return r5Nw / len(t4zr)\n return mehw",
"def SwZ... | [
"0.7082989",
"0.7052197",
"0.7029294",
"0.69493514",
"0.69452524",
"0.6747551",
"0.6719482",
"0.67190576",
"0.6710525",
"0.670941",
"0.66961646",
"0.6672579",
"0.6671173",
"0.66664326",
"0.6660195",
"0.66506183",
"0.6637028",
"0.6613604",
"0.66053027",
"0.6593314",
"0.6590934... | 0.6435843 | 25 |
Compute average categorical accuracy (CA) from target samples only. | def xIBi(Y8eF, aMgO):
VEYW = Y8eF[vPBo.batch_size:]
Y53Q = aMgO[vPBo.batch_size:]
vjyh = nMvt.cast(nMvt.equal(nMvt.argmax(VEYW, axis=-1), nMvt.argmax(Y53Q, axis=-1)), nMvt.floatx())
return nMvt.mean(vjyh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PGyp(H96n, aMgO):\n u2Ez = YsYU(H96n, aMgO)\n return oyIN.mean(u2Ez.diagonal() / u2Ez.sum(axis=1))",
"def AyLt(TDFM, Wams):\n return oyIN.mean(1.0 * (TDFM == Wams))",
"def AyLt(YKHO):\n return YKHO.correct.sum() / YKHO.total",
"def vjyh(pKvt, pan_):\n ungu = ht2j.zeros(pan_.shape)\n ung... | [
"0.7260004",
"0.72483665",
"0.72476137",
"0.72435963",
"0.7213281",
"0.7194736",
"0.71727866",
"0.71486205",
"0.7146108",
"0.71406996",
"0.7136419",
"0.7119093",
"0.7060444",
"0.7043165",
"0.70157605",
"0.69985837",
"0.6983702",
"0.69659734",
"0.6955947",
"0.694124",
"0.69227... | 0.0 | -1 |
Construct an instance of `ExpDecayedLR`. | def FIMM(YKHO, _9an, KMvS):
YKHO.gamma = KMvS
YKHO.lr = _9an
YKHO.counter = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, tspZ: float=0.4, Qh2O: float=0.9999, H0zq: float=0.9, oNEO: float=1.0):\n YKHO.lr = tspZ\n YKHO.decay = Qh2O\n YKHO.use_momentum = True if H0zq < 1 else False\n YKHO.beta = H0zq\n YKHO.weight_decay = oNEO",
"def FIMM(YKHO, aF2y=0.01, f9Ey=0.5, DunZ=1, wbn8=0, ZCQ1=0, a8tU='linear'):... | [
"0.6043054",
"0.6042325",
"0.5819773",
"0.56295556",
"0.5573572",
"0.5555471",
"0.5543846",
"0.5527456",
"0.54243755",
"0.54206115",
"0.5414641",
"0.53884965",
"0.5375906",
"0.5350653",
"0.53252184",
"0.53245676",
"0.5315393",
"0.53147095",
"0.53111583",
"0.53042066",
"0.5300... | 0.0 | -1 |
Update a single Action This endpoint will update a Action based on it's id | def NG3p(id):
try:
cb_Q = NQnn()
XeOP = cb_Q.query(eax5).filter(eax5.id == id).first()
J1rZ = HV77(many=False)
Aofo = J1rZ.dump(XeOP)
bo34.debug(f'Successfully fetched action {id}')
return Yxsy(pz3A(Aofo), jGRS.HTTP_200_OK)
except Exception as e:
bo34.erro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpNj(YKHO, hbFX=None, XeOP=None):\n if hbFX:\n geh0 = xG1z.put(XeOP and '%s/%s/%s' % (YKHO.PATH, hbFX, XeOP) or '%s/%s' % (YKHO.PATH, hbFX), YKHO._data, headers=GPtr.headers)\n else:\n geh0 = xG1z.post(YKHO.PATH, YKHO._data, headers=GPtr.headers)\n return geh0",
"def NG3p(YKHO: object,... | [
"0.7115069",
"0.68231153",
"0.6616046",
"0.6600916",
"0.6434038",
"0.6415534",
"0.64098424",
"0.63636893",
"0.63636893",
"0.63636893",
"0.63636893",
"0.63636893",
"0.6338785",
"0.6338785",
"0.6338785",
"0.6338785",
"0.6338785",
"0.6334769",
"0.6333544",
"0.63155735",
"0.63046... | 0.81439567 | 0 |
Retrieve a list of Rules This endpoint will return all Rules unless a query parameter is specificed | def BX8i():
cb_Q = NQnn()
RCrz = cb_Q.query(c4EF).all()
yTeD = pYsa(many=True)
Aofo = yTeD.dump(RCrz)
bo34.debug(f'Successfully fetched all the actions.')
return Yxsy(pz3A(Aofo), jGRS.HTTP_200_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pi1E(YKHO):\n return YKHO._request('get', '/rules').json()['rules']",
"def list(YKHO, **B2fa):\n\n def roPg(NArs):\n \"\"\"Paginate rules, even if more than API limit.\"\"\"\n jqY7 = int(NArs.get('limit') or 0)\n bD7m = '/rules?%s' % hfK9.urlencode(NArs, True)\n c_NS, _hkX =... | [
"0.7571026",
"0.7529656",
"0.750924",
"0.74218005",
"0.7258361",
"0.72579694",
"0.7194063",
"0.7144701",
"0.71396184",
"0.7126617",
"0.69746566",
"0.6923649",
"0.682645",
"0.67704415",
"0.67576236",
"0.6597192",
"0.6592299",
"0.65525466",
"0.65447885",
"0.6542737",
"0.6540438... | 0.71937364 | 7 |
Delete a Rule This endpoint will delete a Rule based the id specified in the path | def hzCg(id):
try:
cb_Q = NQnn()
eD8c = cb_Q.query(c4EF).filter(c4EF.id == id).first()
if eD8c:
cb_Q.delete(eD8c)
cb_Q.commit()
cb_Q.flush()
bo34.debug(f'Successfully deleted rule {id}')
Aofo = {'result': 'success'}
return Yxsy(pz3A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO, qv1X, La_l):\n YKHO.rpc_client.rule_delete(qv1X.context, La_l)",
"def PTpj(YKHO, La_l):\n return YKHO._delete('/rules/%s' % hfK9.quote(str(La_l)))",
"def sN4j(OaeV, id: int=0):\n OaeV.obj['rules'].pop(id)\n KO7l(OaeV)\n neCm(OaeV)",
"def hzCg(AeeK=None):\n pass",
"def au6Z(... | [
"0.8681297",
"0.84204733",
"0.7682973",
"0.75923795",
"0.75362825",
"0.75164706",
"0.7438953",
"0.7423829",
"0.7228795",
"0.71779",
"0.69525546",
"0.6910116",
"0.6888621",
"0.68283796",
"0.67919827",
"0.67404413",
"0.6667731",
"0.66643393",
"0.6610246",
"0.65961975",
"0.65751... | 0.80817235 | 2 |
Gets the dcc_transaction_sums of this PaymentTerminalTransactionSummary. | def iz0W(YKHO):
return YKHO._dcc_transaction_sums | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TP28(YKHO):\n return YKHO._transaction_sums",
"def iz0W(YKHO, iz0W):\n YKHO._dcc_transaction_sums = iz0W",
"def sTKP(YKHO):\n return YKHO._sum",
"def BPx3(YKHO):\n return YKHO.sumList",
"def sum(YKHO):\n return YKHO._total",
"def JFnQ(YKHO):\n return sum(YKHO.sales)",
"def sum(YKH... | [
"0.7492829",
"0.6937505",
"0.5973754",
"0.59097826",
"0.5886123",
"0.58469915",
"0.5805522",
"0.5775223",
"0.5773767",
"0.57698935",
"0.57434726",
"0.56476384",
"0.56260246",
"0.56072503",
"0.5593232",
"0.55925524",
"0.55843586",
"0.5583811",
"0.5571187",
"0.55382526",
"0.551... | 0.85384345 | 0 |
Sets the dcc_transaction_sums of this PaymentTerminalTransactionSummary. | def iz0W(YKHO, iz0W):
YKHO._dcc_transaction_sums = iz0W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TP28(YKHO, TP28):\n YKHO._transaction_sums = TP28",
"def iz0W(YKHO):\n return YKHO._dcc_transaction_sums",
"def GruD(YKHO, GruD):\n YKHO._total_funds = GruD",
"def TP28(YKHO):\n return YKHO._transaction_sums",
"def yTUi(YKHO, yTUi):\n YKHO._total_payments = yTUi",
"def yTUi(YKHO, yTUi)... | [
"0.73288345",
"0.63145185",
"0.53476447",
"0.5284483",
"0.51818836",
"0.51818836",
"0.5110134",
"0.51002663",
"0.50443506",
"0.5001355",
"0.49924555",
"0.4763156",
"0.47613618",
"0.47525996",
"0.47428587",
"0.46942714",
"0.4647255",
"0.46296394",
"0.46296394",
"0.46270975",
"... | 0.8666002 | 0 |
Gets the ended_on of this PaymentTerminalTransactionSummary. | def JNXU(YKHO):
return YKHO._ended_on | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ddKN(YKHO):\n return YKHO._date_end",
"def Os4s(YKHO) -> _c1T:\n return YKHO._end",
"def C1il(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ended_time')",
"def KhBf(YKHO):\n return YKHO._end_date",
"def KhBf(YKHO):\n return YKHO._end_date",
"def KhBf(YKHO):\n return YKHO.... | [
"0.6323947",
"0.6206414",
"0.61352277",
"0.6076407",
"0.6076407",
"0.6076407",
"0.6076407",
"0.6076407",
"0.6076407",
"0.6033655",
"0.6033655",
"0.6033655",
"0.6033655",
"0.5979468",
"0.597681",
"0.596052",
"0.59338045",
"0.5924542",
"0.59208983",
"0.588346",
"0.58591723",
... | 0.70748526 | 0 |
Gets the id of this PaymentTerminalTransactionSummary. A unique identifier for the object. | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VkEM(YKHO):\n return YKHO._transaction_id",
"def vkFH(YKHO):\n return YKHO._transaction_id",
"def vkFH(YKHO):\n return YKHO._transaction_id",
"def wei4(YKHO) -> str:\n return YKHO._terminal_id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YK... | [
"0.707903",
"0.7074526",
"0.70671177",
"0.65990216",
"0.6538025",
"0.6531325",
"0.6531325",
"0.6531325",
"0.6514238",
"0.6506064",
"0.6506064",
"0.6506064",
"0.6506064",
"0.6506064",
"0.6506064",
"0.6506064",
"0.6506064",
"0.6506064",
"0.6506064",
"0.65060276",
"0.65060276",
... | 0.0 | -1 |
Sets the id of this PaymentTerminalTransactionSummary. A unique identifier for the object. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, id):\n YKHO._id = id",
"def W2tI(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def V_9M(YKHO, id: int):\n YKHO.id = id",
"def psjw(YKHO, id):\n YKHO._id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def V... | [
"0.66376126",
"0.6615706",
"0.6595302",
"0.6595302",
"0.65674347",
"0.6552963",
"0.6545446",
"0.651059",
"0.651059",
"0.6492181",
"0.6421257",
"0.6421257",
"0.6421257",
"0.6421257",
"0.64192504",
"0.6395784",
"0.6370601",
"0.6370601",
"0.6370601",
"0.6370601",
"0.6370601",
... | 0.634055 | 90 |
Sets the linked_space_id of this PaymentTerminalTransactionSummary. The ID of the space this object belongs to. | def YBE_(YKHO, YBE_):
YKHO._linked_space_id = YBE_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wvK0(YKHO, wvK0):\n YKHO._linked_space = wvK0",
"def a_0M(YKHO, a_0M):\n YKHO._space_id = a_0M",
"def a_0M(YKHO, a_0M):\n YKHO._space_id = a_0M",
"def a_0M(YKHO, a_0M):\n YKHO._space_id = a_0M",
"def YBE_(YKHO):\n return YKHO._linked_space_id",
"def YBE_(YKHO):\n return YKHO._linked... | [
"0.7155052",
"0.57860285",
"0.57860285",
"0.57860285",
"0.57307",
"0.57307",
"0.57307",
"0.57307",
"0.57307",
"0.5289948",
"0.5181119",
"0.51348215",
"0.5124523",
"0.5118472",
"0.51123565",
"0.51123565",
"0.50941545",
"0.50669265",
"0.50669265",
"0.50329524",
"0.49721557",
... | 0.78060424 | 0 |
Sets the payment_terminal of this PaymentTerminalTransactionSummary. | def vb4v(YKHO, vb4v):
YKHO._payment_terminal = vb4v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9TP(YKHO, f9TP):\n if f9TP is None:\n raise ValueError('Invalid value for `terminal`, must not be `None`')\n YKHO._terminal = f9TP",
"def f9TP(YKHO, f9TP):\n if f9TP is None:\n raise ValueError('Invalid value for `terminal`, must not be `None`')\n YKHO._terminal = f9TP",
"def vb4... | [
"0.6225001",
"0.6225001",
"0.58915347",
"0.54833853",
"0.5449433",
"0.5390223",
"0.53047717",
"0.5152363",
"0.51216984",
"0.5096452",
"0.5028067",
"0.49952132",
"0.49548033",
"0.492937",
"0.48640397",
"0.48640397",
"0.47391337",
"0.47377297",
"0.46658754",
"0.46325898",
"0.46... | 0.8323309 | 0 |
Gets the started_on of this PaymentTerminalTransactionSummary. | def g6JE(YKHO):
return YKHO._started_on | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PiT5(YKHO):\n return YKHO._started_at",
"def PiT5(YKHO):\n return YKHO._started_at",
"def JdMF(YKHO):\n return YKHO._date_started",
"def PiT5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'started_at')",
"def PiT5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'started_at')",
"def PiT5(YKHO... | [
"0.73192436",
"0.73192436",
"0.6984335",
"0.685322",
"0.685322",
"0.685322",
"0.685322",
"0.685322",
"0.685322",
"0.685322",
"0.685322",
"0.685322",
"0.685322",
"0.685322",
"0.685322",
"0.6613639",
"0.6613639",
"0.6613639",
"0.6584813",
"0.65201163",
"0.6519368",
"0.6506638... | 0.6771482 | 15 |
Sets the started_on of this PaymentTerminalTransactionSummary. | def g6JE(YKHO, g6JE):
YKHO._started_on = g6JE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PiT5(YKHO, PiT5):\n YKHO._started_at = PiT5",
"def PiT5(YKHO, PiT5):\n YKHO._started_at = PiT5",
"def PiT5(YKHO, PiT5):\n YKHO._started_at = PiT5",
"def PiT5(YKHO, PiT5):\n YKHO._started_at = PiT5",
"def PiT5(YKHO, PiT5):\n YKHO._started_at = PiT5",
"def KAOn(YKHO, KAOn):\n YKHO._st... | [
"0.70605445",
"0.70605445",
"0.70605445",
"0.70605445",
"0.70605445",
"0.67460537",
"0.67460537",
"0.6708961",
"0.6688476",
"0.6688476",
"0.6545873",
"0.62293655",
"0.6198832",
"0.6198832",
"0.6198832",
"0.6198832",
"0.6198832",
"0.6198832",
"0.6198832",
"0.6198832",
"0.61988... | 0.7306204 | 1 |
Gets the transaction_sums of this PaymentTerminalTransactionSummary. | def TP28(YKHO):
return YKHO._transaction_sums | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iz0W(YKHO):\n return YKHO._dcc_transaction_sums",
"def BPx3(YKHO):\n return YKHO.sumList",
"def TP28(YKHO, TP28):\n YKHO._transaction_sums = TP28",
"def RfIB(YKHO) -> dict:\n return YKHO.generator.sums",
"def Ua_a(YKHO):\n u4Ys = []\n for euu7 in YKHO.trans:\n U69r = euu7.tchil... | [
"0.77215236",
"0.6576139",
"0.6483317",
"0.6413512",
"0.62912005",
"0.6248633",
"0.62370133",
"0.621857",
"0.616041",
"0.6155726",
"0.61362445",
"0.613409",
"0.6123974",
"0.60533017",
"0.60499096",
"0.6011657",
"0.6010129",
"0.5951124",
"0.5920455",
"0.59126234",
"0.5893814",... | 0.8248855 | 0 |
Sets the transaction_sums of this PaymentTerminalTransactionSummary. | def TP28(YKHO, TP28):
YKHO._transaction_sums = TP28 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iz0W(YKHO, iz0W):\n YKHO._dcc_transaction_sums = iz0W",
"def gQVK(YKHO, gQVK):\n YKHO._transactions = gQVK",
"def TP28(YKHO):\n return YKHO._transaction_sums",
"def yTUi(YKHO, yTUi):\n YKHO._total_payments = yTUi",
"def yTUi(YKHO, yTUi):\n YKHO._total_payments = yTUi",
"def M_Rq(YKHO, ... | [
"0.74255335",
"0.59198606",
"0.5904065",
"0.5537891",
"0.5537891",
"0.54651934",
"0.5414143",
"0.5384017",
"0.5285483",
"0.5258753",
"0.52481776",
"0.52379465",
"0.5111948",
"0.5106109",
"0.50579554",
"0.5052366",
"0.502801",
"0.49992147",
"0.49211904",
"0.49184972",
"0.48113... | 0.8455396 | 0 |
Gets the version of this PaymentTerminalTransactionSummary. The version is used for optimistic locking and incremented whenever the object is updated. | def DpZH(YKHO):
return YKHO._version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xhfZ(YKHO):\n return YKHO._version",
"def xhfZ(YKHO):\n return YKHO._version",
"def xhfZ(YKHO):\n YKHO.send_getVersion()\n return YKHO.recv_getVersion()",
"def xhfZ(YKHO):\n return YKHO.version",
"def xhfZ(YKHO):\n return YKHO.version",
"def xhfZ(YKHO):\n return YKHO.version",
... | [
"0.66001725",
"0.66001725",
"0.64785177",
"0.64608103",
"0.6458297",
"0.6458297",
"0.6458297",
"0.6458297",
"0.63910586",
"0.63433856",
"0.63077366",
"0.63073045",
"0.63073045",
"0.6285865",
"0.6268254",
"0.62574494",
"0.62496847",
"0.6249131",
"0.6231436",
"0.6200988",
"0.62... | 0.62885046 | 17 |
Sets the version of this PaymentTerminalTransactionSummary. The version is used for optimistic locking and incremented whenever the object is updated. | def DpZH(YKHO, DpZH):
YKHO._version = DpZH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpZH(YKHO, DpZH):\n YKHO._version.value = DpZH",
"def dPFR(YKHO, DpZH):\n YKHO._version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO._version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO.version = DpZH",
"def dPFR(YKHO, DpZH):\n YKHO.version = DpZH",
"def dPFR(YKHO, DpZH):\n YKHO._execPragma('u... | [
"0.65442264",
"0.65176034",
"0.6467306",
"0.64335316",
"0.6422478",
"0.6339701",
"0.63059676",
"0.63059676",
"0.6305928",
"0.62274575",
"0.6160187",
"0.6114127",
"0.60671014",
"0.60671014",
"0.5976138",
"0.5913994",
"0.5911249",
"0.5869419",
"0.5869419",
"0.5869419",
"0.57951... | 0.63057226 | 19 |
View function for home page of site. | def NMoC(YKHO, QePW, **B2fa):
z3Eu = dl5x.objects.all().count()
Ep5Y = dfSM.objects.all().count()
M58r = dfSM.objects.filter(status__exact='a').count()
nM65 = o763.objects.count()
QpfX = {'num_books': z3Eu, 'num_instances': Ep5Y, 'num_instances_available': M58r, 'num_authors': nM65}
return _1tc(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def kZiy():\n ... | [
"0.8521128",
"0.8379754",
"0.8353459",
"0.83415544",
"0.83415544",
"0.83171177",
"0.830583",
"0.8298624",
"0.8296122",
"0.8263442",
"0.8224959",
"0.8217078",
"0.8206788",
"0.81901366",
"0.81901366",
"0.8182092",
"0.8176577",
"0.81756383",
"0.8147583",
"0.81347877",
"0.8134787... | 0.0 | -1 |