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 |
|---|---|---|---|---|---|---|
Rounds of a number to the nearest multiple of 60. | def Aao9(WKvO):
return int(60 * round(float(WKvO) / 60)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mRpr(YKHO, WKvO):\n return WKvO - WKvO % YKHO.minutes_per_step",
"def PfxT(C6wh):\n O66n = C6wh / 60\n K0A_ = C6wh % 60\n if K0A_ >= 30:\n O66n += 1\n return O66n * 60",
"def Sho9(O66n):\n YRbF = epAf.floor(O66n / 15)\n za9M, lT6G = (YRbF * 15, (YRbF + 1) * 15)\n AjzU, _sQW =... | [
"0.73490435",
"0.6938613",
"0.6627475",
"0.6536494",
"0.6517901",
"0.6497273",
"0.6484199",
"0.6470891",
"0.6287086",
"0.62870663",
"0.6285944",
"0.6254145",
"0.62485313",
"0.6243248",
"0.62205416",
"0.6220222",
"0.61582285",
"0.6157152",
"0.6157001",
"0.615248",
"0.6063034",... | 0.80421484 | 0 |
Convert [x1 y1 x2 y2] box format to [x1 y1 w h] format. | def uZBl(aIGa):
if isinstance(aIGa, (list, tuple)):
assert len(aIGa) == 4
o4D3, si3g = (aIGa[0], aIGa[1])
yzQ0 = aIGa[2] - o4D3 + 1
MKlR = aIGa[3] - si3g + 1
return (o4D3, si3g, yzQ0, MKlR)
elif isinstance(aIGa, oyIN.ndarray):
return oyIN.hstack((aIGa[:, 0:2], aIG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8Pe(zNig, FlUN):\n ncXl = 1.0 / zNig[0]\n GzWn = 1.0 / zNig[1]\n WKvO = (FlUN[0] + FlUN[1]) / 2.0\n LVAh = (FlUN[2] + FlUN[3]) / 2.0\n yzQ0 = FlUN[1] - FlUN[0]\n MKlR = FlUN[3] - FlUN[2]\n WKvO = WKvO * ncXl\n yzQ0 = yzQ0 * ncXl\n LVAh = LVAh * GzWn\n MKlR = MKlR * GzWn\n retu... | [
"0.74933684",
"0.66450065",
"0.64518017",
"0.63903135",
"0.629781",
"0.62881047",
"0.6257044",
"0.6185842",
"0.6155915",
"0.60946023",
"0.60437065",
"0.60348773",
"0.60308635",
"0.6010959",
"0.5949661",
"0.594619",
"0.59180725",
"0.587396",
"0.586395",
"0.5845732",
"0.5829519... | 0.5727566 | 35 |
Euclidean distance b/w two points. | def htgw(YKHO, WKvO, LVAh):
if len(WKvO) != len(LVAh):
raise ValueError('Dimensions of x {} and y {} are not the same'.format(len(WKvO), len(LVAh)))
pImw = 0.0
for or8S in range(len(WKvO)):
pImw += (WKvO[or8S] - LVAh[or8S]) ** 2
return epAf.sqrt(pImw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def usGr(lCHq, ANJu):\n return epAf.sqrt(sum([(WKvO - LVAh) ** 2 for WKvO, LVAh in zip(lCHq, ANJu)]))",
"def usGr(QxIi, Mo0Q):\n return oyIN.linalg.norm(QxIi - Mo0Q)",
"def usGr(jzdc, Fg_i):\n return oyIN.linalg.norm(jzdc - Fg_i)",
"def usGr(lCHq, ANJu):\n return oyIN.linalg.norm(oyIN.array(lCHq)... | [
"0.8306667",
"0.8208776",
"0.8173411",
"0.8147561",
"0.8137375",
"0.8108716",
"0.8102029",
"0.8086302",
"0.8074275",
"0.8057225",
"0.802979",
"0.8020551",
"0.800423",
"0.79799306",
"0.7971197",
"0.79606545",
"0.79473853",
"0.79185575",
"0.79127175",
"0.7846296",
"0.78451514",... | 0.0 | -1 |
verify that the POST has the request user as the owner of the class | def eLpg(YKHO, QePW, *qIxc, **B2fa):
Aofo = gZ1O.objects.filter(id=QePW.data.get('school_class')).filter(instructor_id=QePW.user.id)
if Aofo.count() == 1:
ZMzz = YKHO.get_serializer(data=QePW.data)
ZMzz.is_valid(raise_exception=True)
YKHO.perform_create(ZMzz)
return oGir(ZMzz.dat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g4z1(YKHO):\n YKHO.client.force_authenticate(YKHO.user)\n geh0 = YKHO.post(content='foo')\n YKHO.assertEqual(geh0.data['owner'], YKHO.user.pk)",
"def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n if YKHO.request.user == m8z6.author:\n return True\n return False",
"def Iw6c(YKHO):\n m... | [
"0.69587564",
"0.6736528",
"0.6736528",
"0.6736528",
"0.67143756",
"0.6695397",
"0.6695397",
"0.63899755",
"0.6173422",
"0.6152934",
"0.61240697",
"0.61240697",
"0.6120112",
"0.6100327",
"0.6088725",
"0.6053204",
"0.60459524",
"0.60432637",
"0.6041242",
"0.6036626",
"0.603034... | 0.0 | -1 |
Returns a list of bits for a char. | def KIer(exwG):
return [exwG >> YRbF & 1 for YRbF in range(7, -1, -1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fhqZ(Z9rn):\n return '{0:05b}'.format(Wmwu[Z9rn])",
"def SRCm(YKHO, nPrm):\n vC9B = len(nPrm) * 8\n Aofo = [0] * vC9B\n oeNL = 0\n for Npgh in nPrm:\n YRbF = 7\n while YRbF >= 0:\n if Npgh & 1 << YRbF != 0:\n Aofo[oeNL] = 1\n else:\n ... | [
"0.7356296",
"0.7175737",
"0.71516675",
"0.70587236",
"0.6904226",
"0.68122125",
"0.6764881",
"0.6738341",
"0.65936065",
"0.65351194",
"0.64686394",
"0.64274824",
"0.6386062",
"0.631148",
"0.6241721",
"0.6241721",
"0.61806905",
"0.6078682",
"0.60100955",
"0.60088176",
"0.5962... | 0.65362424 | 9 |
Tests model as units are randomly ablated (zeroed out or noise added) Units are ablated in random order from a specified set of layers. Ablation is achieved by setting a unit's input weights and bias to zero. | def kOf5(C3ST, zQKy, OPAs, CeNd, B_5Q={}, begE='cpu', nXMk=10, CeJl=1, l5UU='zero', JNdc=None, tU_7=[-1.5, 1]):
JwVx = CeNd + 'models_and_targets/'
crOH = CeNd + 'activations/'
RtIh = 'fraction of labels corrupted'
WQaq = 'loss'
GTfG = 'accuracy'
DyPv = 'units ablated'
if l5UU.lower() == 'no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4Tg(YKHO):\n C3ST = ileL(YKHO.get_digital_layer(in_channels=2, out_channels=2, kernel_size=4, padding=2), YKHO.get_digital_layer(in_channels=2, out_channels=3, kernel_size=4, padding=2))\n pcnC = ileL(YKHO.get_layer(in_channels=2, out_channels=2, kernel_size=4, padding=2), YKHO.get_layer(in_channels=2, ... | [
"0.641168",
"0.6408439",
"0.6408007",
"0.6242119",
"0.6164506",
"0.61573505",
"0.61554193",
"0.5991504",
"0.59580946",
"0.5953665",
"0.5951885",
"0.5899616",
"0.58986026",
"0.58260876",
"0.58205086",
"0.57409745",
"0.57149845",
"0.5707362",
"0.56824404",
"0.5678851",
"0.56163... | 0.5900992 | 11 |
The derivitive of the activation function is used in calculating error | def spps(YKHO):
return YKHO.value * (1 - YKHO.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OTrv(epBp):\n return YDYE(epBp) * (1 - YDYE(epBp))",
"def S2_j(YKHO, dE6G):\n iUTB = YKHO._activation_function.derivate(YKHO.activation_levels)\n return iUTB * dE6G",
"def v9B7(WKvO):\n jzdc = -1\n return 1 / (1 + oyIN.exp(-jzdc * WKvO))",
"def YDYE(WKvO):\n return oyIN.maximum(0, WKvO)... | [
"0.7351366",
"0.69890904",
"0.6973354",
"0.69063866",
"0.6883979",
"0.68832415",
"0.67835635",
"0.6748231",
"0.674133",
"0.67256886",
"0.6712983",
"0.6671499",
"0.66420394",
"0.66368955",
"0.6629879",
"0.6620683",
"0.66191375",
"0.66057265",
"0.6589919",
"0.6556705",
"0.65536... | 0.60806656 | 69 |
Filter the Child objects to only display those for the currently signed in user. | def SR0I(YKHO, QePW):
umWR = super(UmW_, YKHO).queryset(QePW)
if QePW.user.is_superuser:
return umWR
if QePW.user.user_category == 'block':
return umWR.filter(block=QePW.user.account.associated_with)
if QePW.user.user_category == 'school':
return umWR.filter(school=QePW.user.acco... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.user)",
"def k66M(YKHO, QePW):\n umWR = super().get_queryset(QePW)\n return umWR.filter(user=QePW.user)",
"def k66M(YKHO, *qIxc, **B2fa):\n umWR = super().get_queryset(*qIxc, **B2fa).filter(user=YKHO.request.user)\n return ... | [
"0.7381652",
"0.7164784",
"0.7022436",
"0.678043",
"0.6723382",
"0.66934246",
"0.6684575",
"0.6684575",
"0.6680026",
"0.66783905",
"0.6612759",
"0.6550489",
"0.6524539",
"0.6414828",
"0.6414455",
"0.64065415",
"0.64065415",
"0.63884586",
"0.63780767",
"0.63385814",
"0.6334364... | 0.65414983 | 12 |
Thresholded image (black/white, 3 channels) | def neaT(VQ6Z):
return VQ6Z._BINARY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mKvZ(_avc, EOxM):\n xiPz = _avc\n for YRbF in range(_avc.shape[0]):\n for r845 in range(_avc.shape[1]):\n if EOxM[YRbF, r845] == 255:\n xiPz[YRbF, r845] = 0\n return xiPz",
"def lHg_(VXjJ):\n Q6gp = VXjJ.flatten()\n ImAk = oyIN.arange(0, 257, 1)\n uHUu, ra6D... | [
"0.6773297",
"0.66755766",
"0.66390675",
"0.6568149",
"0.64711714",
"0.6467599",
"0.6444201",
"0.6436213",
"0.6434295",
"0.64263964",
"0.6407311",
"0.63944405",
"0.6380219",
"0.637929",
"0.6368858",
"0.6312871",
"0.6301924",
"0.6295678",
"0.6284145",
"0.62749565",
"0.6268438"... | 0.0 | -1 |
Set blur kernel, number of pixels around to average | def lo4z(VQ6Z, zNig):
VQ6Z._KERNEL = oyIN.ones((zNig, zNig), oyIN.float32) / zNig ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hmo2(VXjJ: np.ndarray, Ot1W: int=3):\n qQaV = VXjJ.dtype\n MKlR, yzQ0, Z9rn = VXjJ.shape\n Ot1W = X5f3(MKlR, yzQ0, Ot1W)\n cKXd = XC5k.blur(VXjJ, (Ot1W, Ot1W))\n return cKXd.astype(qQaV)",
"def ddJo(exwG):\n return [1 / exwG ** 2] * exwG ** 2",
"def hsOe(YKHO, UXnq):\n [H2v2, TVTK, xMu... | [
"0.7121801",
"0.7113799",
"0.6964218",
"0.6933509",
"0.68477577",
"0.6787509",
"0.6787509",
"0.67608994",
"0.67398",
"0.66585547",
"0.663609",
"0.65700483",
"0.65418035",
"0.65418035",
"0.65418035",
"0.65418035",
"0.65418035",
"0.65418035",
"0.65418035",
"0.65418035",
"0.6541... | 0.68168056 | 5 |
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected. | def y4IJ(Y8eF, aMgO):
zdcX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
EdTK = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1)))
bMU9 = zdcX / (EdTK + nMvt.epsilon())
return bMU9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '... | [
"0.76060426",
"0.744954",
"0.7404815",
"0.72813565",
"0.72100145",
"0.7166562",
"0.715813",
"0.71459836",
"0.71459836",
"0.71459836",
"0.71459836",
"0.71459836",
"0.71459836",
"0.713231",
"0.71015733",
"0.70978653",
"0.70978653",
"0.70978653",
"0.70978653",
"0.70978653",
"0.7... | 0.0 | -1 |
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected. | def ixlm(Y8eF, aMgO):
txAO = 1 - Y8eF
rkVd = 1 - aMgO
u0Ub = nMvt.sum(nMvt.round(nMvt.clip(txAO * rkVd, 0, 1)))
IsrU = nMvt.sum(nMvt.round(nMvt.clip(txAO, 0, 1)))
QP3n = u0Ub / (IsrU + nMvt.epsilon())
return QP3n | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '... | [
"0.76057607",
"0.7448947",
"0.7404686",
"0.72816885",
"0.7210289",
"0.7166584",
"0.7158369",
"0.71459687",
"0.71459687",
"0.71459687",
"0.71459687",
"0.71459687",
"0.71459687",
"0.7132504",
"0.71015626",
"0.7097816",
"0.7097816",
"0.7097816",
"0.7097816",
"0.7097816",
"0.7097... | 0.0 | -1 |
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant. | def J_wL(Y8eF, aMgO):
COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1)))
rhd_ = COti / (ftZB + nMvt.epsilon())
return rhd_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)",
"def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU... | [
"0.7489052",
"0.7288358",
"0.7159325",
"0.715323",
"0.7065856",
"0.6984727",
"0.6964892",
"0.69536865",
"0.6912471",
"0.68334424",
"0.68176156",
"0.68093187",
"0.6804945",
"0.6804945",
"0.6804945",
"0.6804945",
"0.6804945",
"0.6804945",
"0.67855513",
"0.67575085",
"0.67575085... | 0.6453792 | 61 |
Given a dictionary, returns it as a YAML oneliner. | def GyQW(YKHO, *, nPrm):
Aofo = eJb6.dump(nPrm, default_flow_style=True)
Aofo = Aofo.replace('\n', ' ').strip()
Aofo = ZbWC.sub(' *', ' ', Aofo)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _e4D(hBFO):\n return eJb6.dump(hBFO, default_flow_style=False)",
"def pWhU(eJb6, **B2fa):\n rPXJ = xV9b(eJb6)\n try:\n return rPXJ.substitute(PWgb(B2fa or {}, reducer='dot'))\n except KeyError as e:\n raise RuntimeError('Unknown placeholder: {}'.format(tTpl.args[0])) from tTpl",
"... | [
"0.7041046",
"0.65853167",
"0.64784247",
"0.61616373",
"0.6034454",
"0.59981424",
"0.5945537",
"0.5944129",
"0.5909306",
"0.58480567",
"0.5836314",
"0.582053",
"0.5763354",
"0.57461613",
"0.57365924",
"0.56866086",
"0.56500816",
"0.5643083",
"0.5572954",
"0.55451465",
"0.5537... | 0.68601173 | 1 |
Initialize restaurant name and cuisine type attributes | def FIMM(YKHO, zqv0, N4Ku):
YKHO.restaurant_name = zqv0.title()
YKHO.cuisine_type = N4Ku | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.name = zqv0\n YKHO.type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaura... | [
"0.8867893",
"0.88307756",
"0.87326837",
"0.87326837",
"0.87326837",
"0.86650914",
"0.8590518",
"0.854975",
"0.854975",
"0.8524922",
"0.85144866",
"0.84030193",
"0.84030193",
"0.8368049",
"0.83221966",
"0.83221966",
"0.8252662",
"0.8079612",
"0.7813271",
"0.78129244",
"0.7811... | 0.8777077 | 2 |
Creates a unique name based on the current time in nanoseconds. | def fMAp():
def k6QB(y0cW):
return f'{y0cW}{ITS7.time_ns()}'
return k6QB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xEC():\n JRYC = qcWV.datetime.now()\n return '%s%s%s%s%s%s%s' % (JRYC.year, JRYC.month, JRYC.day, JRYC.hour, JRYC.minute, JRYC.second, JRYC.microsecond)",
"def y1Ul():\n wzkt = qcWV.datetime.now(d5IO.tz.tzlocal())\n E3oo = wzkt.strftime('%Y_%m_%d_%H_%M_%S')\n return E3oo",
"def Mt3H(YKHO, a... | [
"0.85094583",
"0.76051795",
"0.7464745",
"0.7455738",
"0.7258981",
"0.7216248",
"0.70942444",
"0.70670295",
"0.698558",
"0.6769456",
"0.6748526",
"0.67477596",
"0.6642752",
"0.6596146",
"0.65697443",
"0.65592194",
"0.65518713",
"0.6504124",
"0.64644015",
"0.6463761",
"0.64574... | 0.7162828 | 6 |
This is the home or index API Call this api to get back "Hello World!" | def d6pt():
return 'Hello!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n return 'Hello World!'",
"def d6pt():\n return (pz3A({'Hello': 'World'}), 202)",
"def d6pt():\n return 'Hello, world!'",
"def NMoC(YKHO):\n return 'Hello World!'",
"def d6pt():\n return pz3A({'hello': 'What would you like to automate today?'})",
"def pGSj():\n return {'... | [
"0.7810405",
"0.7807815",
"0.77136195",
"0.7710482",
"0.76535714",
"0.7602622",
"0.75734496",
"0.7572216",
"0.7567605",
"0.7487087",
"0.74552613",
"0.7375069",
"0.7342173",
"0.731316",
"0.72639084",
"0.72503096",
"0.71716744",
"0.7158711",
"0.7109938",
"0.70937246",
"0.708679... | 0.7748956 | 2 |
Check whether the file exist If the file doesn't exist, the function raise IOError. | def oJ4n(gIsw):
if not Hy7s.path.isfile(gIsw):
raise IOError("{} doesn't exist or isn't a file".format(gIsw)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EJIY(FYKK):\n try:\n open(FYKK, 'r')\n return 1\n except IOError:\n print('Error: File does not exist.')\n return 0",
"def fepa(YKHO):\n return False",
"def nDe1() -> bool:\n pass",
"def JgkM(pmON):\n if not Hy7s.path.exists(pmON):\n raise RuntimeError('p... | [
"0.80500877",
"0.79195726",
"0.771937",
"0.7490264",
"0.74625784",
"0.7430897",
"0.73822993",
"0.73693097",
"0.73266417",
"0.7270954",
"0.7251365",
"0.723097",
"0.7209729",
"0.7201712",
"0.71836376",
"0.71749014",
"0.7172245",
"0.71610487",
"0.71610487",
"0.7145045",
"0.71385... | 0.802928 | 1 |
Convert list parameter defiction to list The function takes as an argument a list of strings as a string. An element in the list string has to be enclosed in apostrophe. Proper format is ['val1', 'val2', 'val3', ...] | def wbJc(vIW7):
vIW7 = vIW7[1:-1].split(',')
ZQ2b = list()
for XP5J in vIW7:
ZQ2b.append(XP5J.strip())
return ZQ2b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R6cN(d7pR):\n if isinstance(d7pR, list):\n return d7pR\n elif isinstance(d7pR, exCv):\n qIxc = []\n for Q7me in d7pR.split(','):\n qIxc.append(Q7me.strip())\n return qIxc",
"def hkWs(WKvO):\n WKvO = WKvO.strip('][').split(', ')\n o4D3 = [exwG.strip(\"'\") fo... | [
"0.7365944",
"0.7252396",
"0.72455037",
"0.70480776",
"0.70304245",
"0.70152986",
"0.6977405",
"0.6943815",
"0.69063246",
"0.6878974",
"0.68249696",
"0.6790646",
"0.6746373",
"0.67441833",
"0.67333907",
"0.6730398",
"0.6710779",
"0.669768",
"0.66592884",
"0.6657795",
"0.66465... | 0.0 | -1 |
unquote_to_bytes('abc%20def') > b'abc def'. | def erA2(vIwR):
if not vIwR:
vIwR.split
return b''
if isinstance(vIwR, str):
vIwR = vIwR.encode('utf-8')
UOVU = vIwR.split(b'%')
if len(UOVU) == 1:
return vIwR
Ylbp = [UOVU[0]]
SStx = Ylbp.append
global _hextobyte
if nv0o is None:
nv0o = {(jzdc + F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YpZE(KCHu):\n return NCC9(KCHu.encode('utf-8'))",
"def oWA4(KCHu):\n return tpWY(KCHu)",
"def cREC(wEf2):\n return dTAH.unquote(wEf2)",
"def Xt7e():\n assert gmoQ('http://example.com/?a=b%c2') == 'http://example.com/?a=b%C2'",
"def cREC(wEf2):\n return uRlK.unquote_plus(wEf2)",
"def sy... | [
"0.7136339",
"0.69008356",
"0.66393024",
"0.64481807",
"0.64285296",
"0.6353806",
"0.6343397",
"0.6304222",
"0.62181413",
"0.61122966",
"0.59896916",
"0.59586006",
"0.5948718",
"0.59390354",
"0.5900599",
"0.588036",
"0.5878536",
"0.58590144",
"0.58467263",
"0.583664",
"0.5821... | 0.71045595 | 1 |
Returns the first item from a doubleended queue and returns the first item. Used to provide a continuous loop of values for a process. | def AaEX(gGq6):
Y3LQ = gGq6[0]
gGq6.rotate(-1)
return Y3LQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._data[YKHO._front]",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\... | [
"0.72452354",
"0.7243898",
"0.7137052",
"0.71172285",
"0.70865446",
"0.6985086",
"0.69569564",
"0.6944946",
"0.6939742",
"0.6932504",
"0.69217885",
"0.6787081",
"0.6784721",
"0.6769681",
"0.67367876",
"0.6724787",
"0.6724787",
"0.66812867",
"0.66699743",
"0.66608274",
"0.6624... | 0.0 | -1 |
Build a flask application. | def ONiZ(E0Aa, GRk0):
@E0Aa.route('/', defaults={'path': ''}, methods=['GET'])
@E0Aa.route('/<path:path>', methods=['GET'])
def SeuJ(pmON):
"""Render the schedule view with react."""
LFXu = 'client/build'
if pmON != '' and Hy7s.path.exists(Hy7s.path.join(LFXu, pmON)):
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6M2(YKHO) -> L2w0:\n P4t4 = L2w0(YKHO.name, *YKHO.args, **YKHO.kwargs)\n P4t4 = YKHO.setup_app_config(P4t4)\n P4t4 = YKHO.add_app_headers(P4t4)\n P4t4 = YKHO.add_xsrf_error_handler(P4t4)\n return P4t4",
"def Nd3k() -> L2w0:\n bo34.info('creating flask application')\n P4t4 = L2w0('pasta'... | [
"0.7946427",
"0.7857918",
"0.7726593",
"0.77167445",
"0.7688322",
"0.7356393",
"0.73559546",
"0.73436135",
"0.7332231",
"0.73200095",
"0.7319781",
"0.7315051",
"0.72919494",
"0.7277921",
"0.72598",
"0.7259427",
"0.72382736",
"0.7223886",
"0.7216343",
"0.7208086",
"0.72069424"... | 0.0 | -1 |
Max along the zero dimension. | def bpdJ(WKvO: Tensor) -> llWB:
return ht2j.max(WKvO, dim=0).values | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PtQX(WKvO):\n return oyIN.maximum(WKvO, 0)",
"def max(YKHO):\n if 0 in type(YKHO).flatten_shape(YKHO.shape):\n raise ValueError('zero-size array has no maximum')\n if YKHO.isscalar():\n return YKHO.defval\n r8hN = -oyIN.inf if YKHO.is_full() else YKHO.defval\n for Ty9i in YKHO.se... | [
"0.8040035",
"0.7890929",
"0.776785",
"0.75103337",
"0.7425385",
"0.73064846",
"0.7295634",
"0.72105473",
"0.72044814",
"0.71865314",
"0.71812564",
"0.71656746",
"0.71218395",
"0.708043",
"0.7026626",
"0.69970953",
"0.69889486",
"0.69688827",
"0.69688827",
"0.6967642",
"0.696... | 0.82211095 | 0 |
Min along the zero dimension. | def htTM(WKvO: Tensor) -> llWB:
return ht2j.min(WKvO, dim=0).values | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def min(YKHO):\n if 0 in type(YKHO).flatten_shape(YKHO.shape):\n raise ValueError('zero-size array has no minimum')\n if YKHO.isscalar():\n return YKHO.defval\n r8hN = oyIN.inf if YKHO.is_full() else YKHO.defval\n for Ty9i in YKHO.sects.values():\n try:\n r8hN = min(r8hN... | [
"0.77934754",
"0.7503109",
"0.7427814",
"0.73987216",
"0.7374089",
"0.7223842",
"0.7219645",
"0.71925414",
"0.7160778",
"0.7090202",
"0.7047364",
"0.7042481",
"0.70128506",
"0.70061505",
"0.69548464",
"0.6945946",
"0.6937568",
"0.69232994",
"0.6923083",
"0.6920368",
"0.688806... | 0.8175422 | 0 |
Summation along the zero dimension. | def D6g4(WKvO: Tensor) -> llWB:
return ht2j.sum(WKvO, dim=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YMv8(WKvO):\n SjMt(WKvO.ndim, 1)\n return oyIN.squeeze(oyIN.sum(WKvO, keepdims=True))",
"def c2Fl(KCHu, *qIxc, **B2fa):\n return 0 if KCHu.empty else KCHu.sum(*qIxc, **B2fa)",
"def sum(YKHO, jDK_=None, JsoO=False):\n return vuvg.Sum.apply(YKHO, jDK_, JsoO)",
"def sum(YKHO):\n return oyIN.d... | [
"0.7796292",
"0.6977428",
"0.69562584",
"0.6883054",
"0.6664602",
"0.6640772",
"0.6592098",
"0.65453315",
"0.6516383",
"0.65059614",
"0.64885205",
"0.6428575",
"0.64075583",
"0.64075077",
"0.6399962",
"0.639547",
"0.6392207",
"0.6387929",
"0.62831646",
"0.6261077",
"0.6258682... | 0.7995261 | 0 |
Flatten dict of dicts into single dict. | def fE84(WKvO: Dict) -> cuzp:
TDnD = {}
for H5ew, BWXx in WKvO.items():
if isinstance(BWXx, dict):
for G1Hx, Ty9i in BWXx.items():
TDnD[G1Hx] = Ty9i
else:
TDnD[H5ew] = BWXx
return TDnD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PWgb(YKHO):\n TLbF = {}\n for Csk6 in YKHO.dicts:\n TLbF.update(Csk6)\n return TLbF",
"def TqeK(Csk6):\n\n def DumB():\n for H5ew, BWXx in Csk6.items():\n if isinstance(BWXx, dict):\n for uf9D, SXWW in TqeK(BWXx).items():\n yield (uf9D, S... | [
"0.77828306",
"0.75326556",
"0.7442014",
"0.73136836",
"0.727962",
"0.70605755",
"0.67743653",
"0.67672753",
"0.6726913",
"0.67065555",
"0.66614926",
"0.6635427",
"0.66196144",
"0.66179395",
"0.66091895",
"0.6556009",
"0.64971346",
"0.6461731",
"0.6459693",
"0.6434372",
"0.64... | 0.81254715 | 0 |
Wrapper of torch.allclose that is robust towards dtype difference. | def Jw17(J9oU: Tensor, QCf9: Tensor) -> bool:
if J9oU.dtype != QCf9.dtype:
QCf9 = QCf9
return ht2j.allclose(J9oU, QCf9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eYzO(WKvO, LVAh, rU28=1e-05, LL2J=0.0001, PJWX=True):\n try:\n oyIN.testing.assert_allclose(WKvO, LVAh, atol=rU28, rtol=LL2J, verbose=PJWX)\n return True\n except AssertionError as e:\n eHNT = jKi7.StringIO()\n eHNT.write(str(tTpl) + '\\n\\n')\n eHNT.write('assert_allcl... | [
"0.7156294",
"0.71211123",
"0.69557077",
"0.6901459",
"0.683574",
"0.68341774",
"0.67174286",
"0.66873014",
"0.6579537",
"0.6401924",
"0.6393823",
"0.63038266",
"0.6285875",
"0.6242017",
"0.62331414",
"0.61906064",
"0.6179336",
"0.61700016",
"0.61604065",
"0.6156231",
"0.6150... | 0.69427043 | 3 |
Drop all rows and columns containing only zeros. | def Ip2l(LPyb: Tensor) -> llWB:
LPyb = LPyb[LPyb.sum(1) != 0]
LPyb = LPyb[:, LPyb.sum(0) != 0]
return LPyb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JViT(WKvO):\n assert len(WKvO.shape) == 2\n return WKvO[~oyIN.all(WKvO == 0, axis=1)]",
"def M9or(jQ3Z, Z9OM=1):\n vGaq = jQ3Z.astype(bool).sum(axis=0)\n or8S = rLdf.Index(vGaq)\n Rci7 = or8S.get_loc(Z9OM)\n VDqm = oyIN.asarray(oyIN.nonzero(Rci7))\n VDqm = VDqm[0]\n G_PE = jQ3Z.drop(j... | [
"0.7658553",
"0.75908375",
"0.72366744",
"0.71366894",
"0.6862481",
"0.66673523",
"0.66558874",
"0.66462904",
"0.6598128",
"0.6568297",
"0.65615356",
"0.644415",
"0.6429023",
"0.62996554",
"0.62971926",
"0.62715185",
"0.6207608",
"0.6172788",
"0.6167235",
"0.61491513",
"0.612... | 0.6934652 | 4 |
Check that predictions and target have the same shape, else raise error. | def PPMb(aTLP: Tensor, pan_: Tensor) -> None:
if aTLP.shape != pan_.shape:
raise RuntimeError(f'Predictions and targets are expected to have the same shape, but got {aTLP.shape} and {pan_.shape}.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YQL1(nvEb, Crrw):\n if nvEb.shape != Crrw.shape:\n raise ValueError(f'Prediction and labels shapes must be equal:{nvEb.shape} vs {Crrw.shape}.')",
"def Fuw0(YKHO, aMgO, LVAh):\n if YKHO._type == 'classification':\n if aMgO.ndim != LVAh.ndim + 1:\n raise ValueError('Classificati... | [
"0.770629",
"0.74215806",
"0.7411364",
"0.7219916",
"0.6821432",
"0.681927",
"0.6691203",
"0.66151506",
"0.66081774",
"0.6598889",
"0.65159684",
"0.6507568",
"0.63592905",
"0.63367945",
"0.6331001",
"0.63250756",
"0.62995505",
"0.62900436",
"0.6284418",
"0.62282544",
"0.6222"... | 0.85626614 | 0 |
Check that predictions and target have the correct shape, else raise error. | def Ca8W(aTLP: Tensor, pan_: Tensor, I07O: int) -> None:
if aTLP.ndim > 2 or pan_.ndim > 2:
raise ValueError(f'Expected both predictions and target to be either 1- or 2-dimensional tensors, but got {pan_.ndim} and {aTLP.ndim}.')
if I07O == 1 and aTLP.ndim != 1 or (I07O > 1 and I07O != aTLP.shape[1]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPMb(aTLP: Tensor, pan_: Tensor) -> None:\n if aTLP.shape != pan_.shape:\n raise RuntimeError(f'Predictions and targets are expected to have the same shape, but got {aTLP.shape} and {pan_.shape}.')",
"def Fuw0(YKHO, aMgO, LVAh):\n if YKHO._type == 'classification':\n if aMgO.ndim != LVAh.... | [
"0.8181059",
"0.73771954",
"0.73430777",
"0.7169801",
"0.71421885",
"0.71364963",
"0.7088017",
"0.685947",
"0.6693363",
"0.6670583",
"0.66029984",
"0.6554414",
"0.6495942",
"0.64599836",
"0.6452373",
"0.64254725",
"0.6420091",
"0.64112115",
"0.63943666",
"0.6358352",
"0.63502... | 0.7337888 | 3 |
Computes x log(y). Returns 0 if x=0. | def eWRx(WKvO: Tensor, LVAh: Tensor) -> llWB:
Ylbp = WKvO * ht2j.log(LVAh)
Ylbp[WKvO == 0] = 0.0
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gNuL(WKvO: float) -> float:\n return epAf.log2(WKvO) if WKvO > 0 else 0",
"def RKD7(YKHO, WKvO, P8oC=2):\n if WKvO == 0:\n return 0\n return epAf.log(WKvO, P8oC)",
"def RKD7(WKvO, P8oC=epAf.e):\n return 0.0",
"def lFIE(WKvO):\n return oyIN.log(oyIN.clip(WKvO, pBSp, oyIN.inf))",
"d... | [
"0.77524406",
"0.77205205",
"0.76844645",
"0.7642335",
"0.7591742",
"0.7465603",
"0.7437937",
"0.7433669",
"0.7417593",
"0.732204",
"0.7281724",
"0.72580296",
"0.72580296",
"0.7247305",
"0.72431856",
"0.7220947",
"0.72013474",
"0.72013474",
"0.7149388",
"0.7143482",
"0.713494... | 0.82068676 | 0 |
Computes Mean Absolute Percentage Error. | def GmD5(OXDA: Tensor, OXTU: int) -> llWB:
return OXDA / OXTU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SkyM(Y8eF, aMgO):\n iMdZ = 100 * oyIN.average(oyIN.abs(Y8eF - aMgO) / Y8eF)\n return oyIN.average(iMdZ)",
"def SkyM(Ud63, N6Z1):\n _ger = oyIN.array(Ud63)\n nvEb = oyIN.array(N6Z1)\n UAju = oyIN.abs(nvEb - _ger)\n pkNA = (oyIN.abs(_ger) + oyIN.abs(nvEb)) / 2.0\n return 100.0 * oyIN.mean(... | [
"0.79571223",
"0.7900373",
"0.7898755",
"0.7835608",
"0.7765584",
"0.77655226",
"0.77603894",
"0.7688887",
"0.7688887",
"0.76464933",
"0.75755376",
"0.75512975",
"0.74737775",
"0.7418563",
"0.7409837",
"0.73585606",
"0.73472285",
"0.7229161",
"0.72031826",
"0.7163521",
"0.716... | 0.8305921 | 0 |
find and return values which have repeats i.e. the same value are more than once in the tensor. | def ppCQ(nPrm: Tensor) -> llWB:
ycBG = nPrm.detach().clone()
ycBG = ycBG.sort()[0]
nZuS = ht2j.cat([ht2j.tensor([True], device=ycBG.device), ycBG[1:] != ycBG[:-1]])
kcwm = ycBG[nZuS]
UJsg = ht2j.cat([ht2j.nonzero(nZuS), ht2j.tensor([[ycBG.numel()]], device=ycBG.device)]).flatten()
QTg7 = UJsg[1:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVQL(ezWE):\n return sum([geyT for geyT in ezWE if ezWE.count(geyT) == 1])",
"def RYR2(QXin):\n if len(QXin) < 2:\n return False\n for r845 in range(len(QXin) - 1):\n for YRbF in range(r845 + 1, len(QXin)):\n A3Vt = QXin[YRbF].get_slice()[:, :2] == QXin[r845].get_slice()[:, ... | [
"0.6683863",
"0.6357573",
"0.63124835",
"0.62952906",
"0.6256204",
"0.6216161",
"0.6155577",
"0.61427987",
"0.61327606",
"0.6128838",
"0.6117912",
"0.60622287",
"0.6036541",
"0.5961879",
"0.59206265",
"0.590035",
"0.58591396",
"0.5835687",
"0.58325785",
"0.5810832",
"0.580620... | 0.7739222 | 0 |
Computes Symmetric Mean Absolute Percentage Error. | def C0OV(OXDA: Tensor, OXTU: int) -> llWB:
return OXDA / OXTU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GmD5(OXDA: Tensor, OXTU: int) -> llWB:\n return OXDA / OXTU",
"def FI0x(OY7P: Tensor, cnd2: int) -> llWB:\n return OY7P / cnd2",
"def SkyM(Y8eF, aMgO):\n iMdZ = 100 * oyIN.average(oyIN.abs(Y8eF - aMgO) / Y8eF)\n return oyIN.average(iMdZ)",
"def SkyM(Y8eF: np.ndarray, aMgO: np.ndarray) -> oyIN... | [
"0.7303503",
"0.70845044",
"0.67566967",
"0.6646075",
"0.6625918",
"0.6617028",
"0.66153914",
"0.6599637",
"0.6535691",
"0.65185624",
"0.6488955",
"0.6488518",
"0.6488518",
"0.645109",
"0.6419355",
"0.6405687",
"0.64019644",
"0.63901997",
"0.6376228",
"0.6311095",
"0.63083977... | 0.78874034 | 0 |
Check ``preds`` and ``target`` tensors are of the same shape and of the correct data type. | def IOTy(aTLP: Tensor, pan_: Tensor, a5uK: bool=False) -> AzJI[llWB, llWB]:
if pan_.dtype not in (ht2j.bool, ht2j.long, ht2j.int) and (not ht2j.is_floating_point(pan_)):
raise ValueError('`target` must be a tensor of booleans, integers or floats')
if not aTLP.is_floating_point():
raise ValueErro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPMb(aTLP: Tensor, pan_: Tensor) -> None:\n if aTLP.shape != pan_.shape:\n raise RuntimeError(f'Predictions and targets are expected to have the same shape, but got {aTLP.shape} and {pan_.shape}.')",
"def CiGF(g4y1, x6A0):\n TiDO('inputs', g4y1, llWB)\n if len(g4y1.shape) != 4:\n raise... | [
"0.8112511",
"0.7162145",
"0.70912766",
"0.68388134",
"0.66268575",
"0.6605161",
"0.6541759",
"0.653069",
"0.63269305",
"0.62606084",
"0.6236373",
"0.6233234",
"0.61148995",
"0.605481",
"0.60351175",
"0.60291475",
"0.6028686",
"0.60114115",
"0.59943324",
"0.5992083",
"0.59709... | 0.68585163 | 3 |
Check ``preds`` and ``target`` tensors are of the same shape and of the correct data type. | def BHcf(aTLP: Tensor, pan_: Tensor, a5uK: bool=False) -> AzJI[llWB, llWB]:
if aTLP.shape != pan_.shape:
raise ValueError('`preds` and `target` must be of the same shape')
if not aTLP.numel() or not aTLP.size():
raise ValueError('`preds` and `target` must be non-empty and non-scalar tensors')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPMb(aTLP: Tensor, pan_: Tensor) -> None:\n if aTLP.shape != pan_.shape:\n raise RuntimeError(f'Predictions and targets are expected to have the same shape, but got {aTLP.shape} and {pan_.shape}.')",
"def CiGF(g4y1, x6A0):\n TiDO('inputs', g4y1, llWB)\n if len(g4y1.shape) != 4:\n raise... | [
"0.81128013",
"0.7163503",
"0.7091363",
"0.6861648",
"0.6838455",
"0.6604161",
"0.65418875",
"0.6531771",
"0.6327058",
"0.62604415",
"0.62397206",
"0.6232886",
"0.61139643",
"0.605549",
"0.60342425",
"0.60309017",
"0.6028685",
"0.6013382",
"0.5994167",
"0.59915555",
"0.597216... | 0.6628416 | 5 |
Computes the Fallout (for information retrieval), as explained in `IR Fallout`_ Fallout is the fraction of nonrelevant documents retrieved among all the nonrelevant documents. ``preds`` and ``target`` should be of the same shape and live on the same device. If no ``target`` is ``True``, ``0`` is returned. ``target`` mu... | def Mkfz(aTLP: Tensor, pan_: Tensor, G1Hx: Optional[int]=None) -> llWB:
aTLP, pan_ = BHcf(aTLP, pan_)
G1Hx = aTLP.shape[-1] if G1Hx is None else G1Hx
if not (isinstance(G1Hx, int) and G1Hx > 0):
raise ValueError('`k` has to be a positive integer or None')
pan_ = 1 - pan_
if not pan_.sum():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHfi(aTLP: Tensor, pan_: Tensor, G1Hx: Optional[int]=None) -> llWB:\n aTLP, pan_ = BHcf(aTLP, pan_)\n if G1Hx is None:\n G1Hx = aTLP.shape[-1]\n if not (isinstance(G1Hx, int) and G1Hx > 0):\n raise ValueError('`k` has to be a positive integer or None')\n p24E = pan_[ht2j.argsort(aTLP,... | [
"0.6366051",
"0.63137865",
"0.5833296",
"0.557318",
"0.556978",
"0.55005246",
"0.54490787",
"0.54078",
"0.5406778",
"0.5387875",
"0.53567433",
"0.53348345",
"0.5306074",
"0.5295209",
"0.52292454",
"0.52151",
"0.5146197",
"0.5124343",
"0.5122784",
"0.5107078",
"0.5106473",
"... | 0.6577421 | 0 |
Computes the hit rate (for information retrieval). The hit rate is 1.0 if there is at least one relevant document among all the top `k` retrieved documents. ``preds`` and ``target`` should be of the same shape and live on the same device. If no ``target`` is ``True``, ``0`` is returned. ``target`` must be either `bool`... | def WHfi(aTLP: Tensor, pan_: Tensor, G1Hx: Optional[int]=None) -> llWB:
aTLP, pan_ = BHcf(aTLP, pan_)
if G1Hx is None:
G1Hx = aTLP.shape[-1]
if not (isinstance(G1Hx, int) and G1Hx > 0):
raise ValueError('`k` has to be a positive integer or None')
p24E = pan_[ht2j.argsort(aTLP, dim=-1, de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DByp(aTLP: Tensor, pan_: Tensor, G1Hx: Optional[int]=None) -> llWB:\n aTLP, pan_ = BHcf(aTLP, pan_)\n if G1Hx is None:\n G1Hx = aTLP.shape[-1]\n if not (isinstance(G1Hx, int) and G1Hx > 0):\n raise ValueError('`k` has to be a positive integer or None')\n if not pan_.sum():\n re... | [
"0.7064314",
"0.6908161",
"0.66571385",
"0.65306395",
"0.6483591",
"0.62737924",
"0.62295383",
"0.61009467",
"0.60927975",
"0.60927975",
"0.60927975",
"0.60829914",
"0.6042567",
"0.6034532",
"0.60099",
"0.600382",
"0.60033244",
"0.5971579",
"0.5955237",
"0.59244955",
"0.58995... | 0.82973486 | 0 |
Computes Discounted Cumulative Gain for input tensor. | def B5VY(pan_: Tensor) -> llWB:
ciZM = ht2j.log2(ht2j.arange(pan_.shape[-1], device=pan_.device) + 2.0)
return (pan_ / ciZM).sum(dim=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RE8r(jQ3Z, Og6j='y', Ao28='w', UV_2='tau', paSp=100, NkkI=False, igb0=42):\n HePX = K9G9(jQ3Z, Og6j, Ao28, UV_2, paSp, igb0)\n wuNB = HePX.mul(HePX.index.values, axis=0) / 100 * jQ3Z.shape[0]\n if NkkI:\n wuNB = wuNB.div(wuNB.iloc[-1, :], axis=1)\n return wuNB",
"def wHtf(YKHO, EcVT):\n ... | [
"0.6200078",
"0.5988861",
"0.59678537",
"0.59399575",
"0.59326285",
"0.5852391",
"0.5843366",
"0.5791593",
"0.57911277",
"0.5749161",
"0.57099295",
"0.57099295",
"0.57099295",
"0.57099295",
"0.57099295",
"0.57099295",
"0.57099295",
"0.57008207",
"0.5685289",
"0.5674926",
"0.5... | 0.55036926 | 28 |
Computes the precision metric (for information retrieval). Precision is the fraction of relevant documents among all the retrieved documents. ``preds`` and ``target`` should be of the same shape and live on the same device. If no ``target`` is ``True``, ``0`` is returned. ``target`` must be either `bool` or `integers` ... | def KwHV(aTLP: Tensor, pan_: Tensor, G1Hx: Optional[int]=None, PnIM: bool=False) -> llWB:
aTLP, pan_ = BHcf(aTLP, pan_)
if not isinstance(PnIM, bool):
raise ValueError('`adaptive_k` has to be a boolean')
if G1Hx is None or (PnIM and G1Hx > aTLP.shape[-1]):
G1Hx = aTLP.shape[-1]
if not (i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jR55(aTLP: Tensor, pan_: Tensor) -> llWB:\n aTLP, pan_ = BHcf(aTLP, pan_)\n _HeI = pan_.sum()\n if not _HeI:\n return vhpA(0.0, device=aTLP.device)\n p24E = pan_[ht2j.argsort(aTLP, dim=-1, descending=True)][:_HeI].sum().float()\n return p24E / _HeI",
"def DByp(aTLP: Tensor, pan_: Tensor... | [
"0.71165365",
"0.71069264",
"0.7051194",
"0.6935805",
"0.69275016",
"0.6919255",
"0.6919255",
"0.6919255",
"0.6919255",
"0.6919255",
"0.6919255",
"0.68998045",
"0.68998045",
"0.68998045",
"0.68998045",
"0.68998045",
"0.68998045",
"0.68998045",
"0.68998045",
"0.68998045",
"0.6... | 0.7531003 | 0 |
Computes precisionrecall pairs for different k (from 1 to `max_k`). In a ranked retrieval context, appropriate sets of retrieved documents are naturally given by the top k retrieved documents. Recall is the fraction of relevant documents retrieved among all the relevant documents. Precision is the fraction of relevant ... | def Mx8f(aTLP: Tensor, pan_: Tensor, q49w: Optional[int]=None, PnIM: bool=False) -> AzJI[llWB, llWB, llWB]:
aTLP, pan_ = BHcf(aTLP, pan_)
if not isinstance(PnIM, bool):
raise ValueError('`adaptive_k` has to be a boolean')
if q49w is None:
q49w = aTLP.shape[-1]
if not (isinstance(q49w, in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aMSB(N6Z1, G1Hx, gwAu):\n MgGx = oRi_(list)\n for PObu, bGrB, hvxN, TBxD, bGrB in N6Z1:\n MgGx[PObu].append((TBxD, hvxN))\n gCUM = dict()\n dYrk = dict()\n for PObu, e4x7 in MgGx.items():\n e4x7.sort(key=lambda WKvO: WKvO[0], reverse=True)\n eQ8z = sum((hvxN >= gwAu for bGrB... | [
"0.7755801",
"0.7722373",
"0.7691844",
"0.7457988",
"0.717476",
"0.7037737",
"0.6980095",
"0.6961605",
"0.68935204",
"0.6822222",
"0.67377913",
"0.6728384",
"0.67174506",
"0.6715983",
"0.65947205",
"0.6583769",
"0.65619904",
"0.65286356",
"0.65012944",
"0.64898306",
"0.643042... | 0.8063614 | 0 |
Computes maximum recall with condition that corresponding precision >= `min_precision`. | def N4YD(rhd_: Tensor, AOzf: Tensor, H42b: Tensor, GiEY: float) -> AzJI[llWB, llWB]:
try:
_ijQ, mYwF = max(((Mkmy, G1Hx) for XP5J, Mkmy, G1Hx in zip(rhd_, AOzf, H42b) if XP5J >= GiEY))
except ValueError:
_ijQ = ht2j.tensor(0.0, device=AOzf.device, dtype=AOzf.dtype)
mYwF = ht2j.tensor(len... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N4YD(rhd_: Tensor, AOzf: Tensor, H42b: Tensor, GiEY: float) -> AzJI[llWB, llWB]:\n try:\n _ijQ, mYwF = max(((Mkmy, G1Hx) for XP5J, Mkmy, G1Hx in zip(rhd_, AOzf, H42b) if XP5J >= GiEY))\n except ValueError:\n _ijQ = ht2j.tensor(0.0, device=AOzf.device, dtype=AOzf.dtype)\n mYwF = ht2j.... | [
"0.74577063",
"0.6657458",
"0.6552493",
"0.65356386",
"0.6535204",
"0.6531926",
"0.65123874",
"0.6384157",
"0.6367068",
"0.6355923",
"0.6348172",
"0.6333052",
"0.6328094",
"0.6328094",
"0.6318043",
"0.63154465",
"0.63000476",
"0.62718374",
"0.62199986",
"0.6184658",
"0.617952... | 0.73637414 | 1 |
Computes the rprecision metric (for information retrieval). RPrecision is the fraction of relevant documents among all the top ``k`` retrieved documents where ``k`` is equal to the total number of relevant documents. ``preds`` and ``target`` should be of the same shape and live on the same device. If no ``target`` is `... | def jR55(aTLP: Tensor, pan_: Tensor) -> llWB:
aTLP, pan_ = BHcf(aTLP, pan_)
_HeI = pan_.sum()
if not _HeI:
return vhpA(0.0, device=aTLP.device)
p24E = pan_[ht2j.argsort(aTLP, dim=-1, descending=True)][:_HeI].sum().float()
return p24E / _HeI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KwHV(aTLP: Tensor, pan_: Tensor, G1Hx: Optional[int]=None, PnIM: bool=False) -> llWB:\n aTLP, pan_ = BHcf(aTLP, pan_)\n if not isinstance(PnIM, bool):\n raise ValueError('`adaptive_k` has to be a boolean')\n if G1Hx is None or (PnIM and G1Hx > aTLP.shape[-1]):\n G1Hx = aTLP.shape[-1]\n ... | [
"0.7534451",
"0.72511786",
"0.70110047",
"0.6832553",
"0.681112",
"0.6798141",
"0.6698143",
"0.668471",
"0.66116107",
"0.66043824",
"0.6596001",
"0.658006",
"0.6577106",
"0.65720904",
"0.65720904",
"0.65720904",
"0.65720904",
"0.65720904",
"0.65720904",
"0.65631485",
"0.65622... | 0.804721 | 0 |
Computes the recall metric (for information retrieval). Recall is the fraction of relevant documents retrieved among all the relevant documents. ``preds`` and ``target`` should be of the same shape and live on the same device. If no ``target`` is ``True``, ``0`` is returned. ``target`` must be either `bool` or `integer... | def DByp(aTLP: Tensor, pan_: Tensor, G1Hx: Optional[int]=None) -> llWB:
aTLP, pan_ = BHcf(aTLP, pan_)
if G1Hx is None:
G1Hx = aTLP.shape[-1]
if not (isinstance(G1Hx, int) and G1Hx > 0):
raise ValueError('`k` has to be a positive integer or None')
if not pan_.sum():
return vhpA(0.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qumA(o3Uj, pan_, G1Hx=10):\n _YAQ = (o3Uj.t() > o3Uj[range(o3Uj.shape[0]), pan_]).sum(0) + 1.0\n AOzf = (_YAQ <= G1Hx).to(ht2j.float32).mean()\n return AOzf",
"def cnC8(Y8eF, aMgO):\n COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))\n z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1)))... | [
"0.75270057",
"0.73172915",
"0.7275617",
"0.7271459",
"0.727095",
"0.72627115",
"0.72627115",
"0.72627115",
"0.72627115",
"0.72627115",
"0.72627115",
"0.72476935",
"0.72335774",
"0.72335774",
"0.72335774",
"0.72335774",
"0.72335774",
"0.72335774",
"0.72335774",
"0.72335774",
... | 0.813332 | 0 |
Computes reciprocal rank (for information retrieval). See `Mean Reciprocal Rank`_ ``preds`` and ``target`` should be of the same shape and live on the same device. If no ``target`` is ``True``, 0 is returned. ``target`` must be either `bool` or `integers` and ``preds`` must be ``float``, otherwise an error is raised. | def mMfM(aTLP: Tensor, pan_: Tensor) -> llWB:
aTLP, pan_ = BHcf(aTLP, pan_)
if not pan_.sum():
return vhpA(0.0, device=aTLP.device)
pan_ = pan_[ht2j.argsort(aTLP, dim=-1, descending=True)]
dQgj = ht2j.nonzero(pan_).view(-1)
Ylbp = 1.0 / (dQgj[0] + 1.0)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jR55(aTLP: Tensor, pan_: Tensor) -> llWB:\n aTLP, pan_ = BHcf(aTLP, pan_)\n _HeI = pan_.sum()\n if not _HeI:\n return vhpA(0.0, device=aTLP.device)\n p24E = pan_[ht2j.argsort(aTLP, dim=-1, descending=True)][:_HeI].sum().float()\n return p24E / _HeI",
"def cCAE():\n Crrw = oyIN.random... | [
"0.66930157",
"0.63864976",
"0.6244135",
"0.60403866",
"0.5987901",
"0.5964957",
"0.59507835",
"0.5947474",
"0.58797544",
"0.58374995",
"0.5806638",
"0.5803889",
"0.57497734",
"0.57497734",
"0.57497734",
"0.57497734",
"0.57497734",
"0.57497734",
"0.57497734",
"0.57497734",
"0... | 0.86376584 | 0 |
Helper function that pads the model output and attention mask to the target length. | def yPbP(Xdzc: Tensor, TaYf: Tensor, i7rd: int) -> AzJI[llWB, llWB]:
DuAC = list(Xdzc.shape)
DuAC[2] = i7rd - DuAC[2]
Xdzc = ht2j.cat([Xdzc, ht2j.zeros(DuAC, dtype=Xdzc.dtype)], dim=2)
VNqG = ht2j.zeros(DuAC[0], DuAC[2], dtype=TaYf.dtype)
TaYf = ht2j.cat([TaYf, VNqG], dim=1)
return (Xdzc, TaYf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rdhC(input, G8d9, KHPh=0):\n with IPme.name_scope('pad_model_inputs'):\n if not isinstance(input, c1ZF.RaggedTensor):\n raise TypeError('Expecting a `RaggedTensor`, instead found: ' + str(input))\n input = input.merge_dims(1, -1) if input.ragged_rank > 1 else input\n u5Om = q... | [
"0.6312427",
"0.6196465",
"0.61802644",
"0.6115596",
"0.6065447",
"0.60354376",
"0.6015824",
"0.60043377",
"0.5932696",
"0.59083706",
"0.5894972",
"0.58879536",
"0.5863077",
"0.5855191",
"0.5831514",
"0.5784388",
"0.5756185",
"0.5738889",
"0.57086563",
"0.56997097",
"0.569184... | 0.65216374 | 0 |
Process attention mask to be zero for special [CLS] and [SEP] tokens as they're not included in a calculation for BERT score. | def AcNv(TaYf: Tensor) -> llWB:
TaYf[:, 0] = 0
XAeY = (TaYf - 0.1).cumsum(-1).argmax(-1)
TaYf[ht2j.arange(TaYf.size(0)).long(), XAeY] = 0
return TaYf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Toiy(Pha6):\n SfnJ = []\n for Q6uT in Pha6:\n SfnJ.append([float(YRbF > 0) for YRbF in Q6uT])\n return SfnJ",
"def UWI3(YKHO, nPrm):\n Pha6 = []\n SfnJ = []\n Vk0V = YKHO.opt.MAX_QUESTION_LEN\n for _dZy in nPrm:\n RG36 = YKHO.tokenizer.encode_plus(text=YKHO.text_preprocessi... | [
"0.5773599",
"0.56110185",
"0.54681945",
"0.544788",
"0.5409218",
"0.5353715",
"0.5238451",
"0.51931816",
"0.5189999",
"0.5189184",
"0.51676166",
"0.51586473",
"0.51541257",
"0.51074547",
"0.5073596",
"0.50673026",
"0.5036693",
"0.5036178",
"0.5023721",
"0.49867204",
"0.49849... | 0.75569296 | 0 |
Tokenizes sentence into list of words. | def LNg7(yAmx: str) -> bdIy[str]:
return yAmx.split() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Htwi(yAmx):\n RLKa = ZbWC.findall(H_yU, yAmx)\n V22M = [WKvO.lower() for WKvO in RLKa if WKvO is not '']\n return V22M",
"def wr3U(yAmx):\n b5Tf = yAmx.lower()\n D5BC = b5Tf.translate(EKJ3, vIwR.punctuation)\n vwCE = D5BC.split()\n return vwCE",
"def bb19(yAmx: str) -> x1iM[str]:\n ... | [
"0.8311132",
"0.82815385",
"0.8184632",
"0.8165114",
"0.8102701",
"0.8020231",
"0.7940098",
"0.7853865",
"0.77405834",
"0.7700952",
"0.76840514",
"0.76840514",
"0.7655818",
"0.7613874",
"0.75969857",
"0.7580177",
"0.75762975",
"0.7571726",
"0.7555356",
"0.7545908",
"0.7539692... | 0.729281 | 28 |
Get a dictionary of dictionaries with a counts of given ngrams. | def _yD2(yAmx: str, b4Qe: int, yy4V: int, cKm3: bool) -> AzJI[cuzp[int, cuzp[AzJI[str, ...], llWB]], cuzp[int, cuzp[AzJI[str, ...], llWB]]]:
if cKm3:
yAmx = yAmx.lower()
FIMj = g9mr(CFIF(yAmx, FcoE), b4Qe)
sgRG = g9mr(s4Jq(yAmx), yy4V)
return (FIMj, sgRG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q0q_(hIub):\n BWz1 = {}\n for a1PO in hIub:\n H5ew = WKO2(a1PO)\n if H5ew in BWz1:\n BWz1[H5ew] += 1\n else:\n BWz1[H5ew] = 1\n return BWz1",
"def Y908(vwCE, exwG):\n fMtn = dict()\n for YRbF in Ni9Y(len(vwCE) - exwG + 1):\n u8Mh = tuple(vwCE[Y... | [
"0.79986924",
"0.77268463",
"0.74879426",
"0.7414837",
"0.7356984",
"0.7348704",
"0.73244435",
"0.7235248",
"0.71227163",
"0.7076846",
"0.70717764",
"0.70469695",
"0.70444894",
"0.70335686",
"0.70163",
"0.70079976",
"0.6992083",
"0.6916037",
"0.68709505",
"0.682671",
"0.68231... | 0.6792265 | 22 |
Get total sum of ngrams over ngrams w.r.t n. | def dxHO(kE0V: Dict[int, Dict[Tuple[str, ...], Tensor]]) -> cuzp[int, llWB]:
FOzR: cuzp[int, llWB] = oRi_(lambda: vhpA(0.0))
for exwG in kE0V:
FOzR[exwG] = vhpA(sum(kE0V[exwG].values()))
return FOzR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tbgJ(YKHO, exwG):\n hlel = {}\n for YRbF in range(len(YKHO.text) - exwG + 1):\n KCHu = ' '.join(YKHO.text[YRbF:YRbF + exwG])\n hlel.setdefault(KCHu, 0)\n hlel[KCHu] += 1\n return hlel",
"def _Ve2(FOzR: Dict[int, Tensor], HyjZ: Dict[int, Tensor]) -> cuzp[int, llWB]:\n for exwG... | [
"0.7215652",
"0.7055839",
"0.69814706",
"0.69272774",
"0.6867613",
"0.6627976",
"0.661652",
"0.661237",
"0.6597013",
"0.65765536",
"0.6539877",
"0.64409435",
"0.64365846",
"0.6416276",
"0.63471746",
"0.6333982",
"0.6324324",
"0.63042855",
"0.62975055",
"0.6291195",
"0.6283753... | 0.7561346 | 0 |
Split a sentence into separate tokens. | def WEL_(KCHu: str) -> x1iM[str]:
return [] if not KCHu else H4OD(KCHu).split() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AjMb(YKHO, yAmx):\n Eab6 = YKHO.sentence_splitter.tokenize(yAmx)\n return Eab6",
"def AjMb(yAmx):\n Rhv4 = []\n lpha = Dhdw.sent_tokenize(yAmx)\n for KCHu in lpha:\n Rhv4.append(KCHu)\n return Rhv4",
"def q2Lj(YKHO, yAmx):\n return ZbWC.split(YKHO.word_split_pattern, yAmx)",
"... | [
"0.83718485",
"0.81028837",
"0.78982383",
"0.7777003",
"0.7702361",
"0.7695749",
"0.76037633",
"0.75773597",
"0.7561082",
"0.7521331",
"0.7439896",
"0.73493534",
"0.7314325",
"0.72982085",
"0.7214128",
"0.71987516",
"0.7189333",
"0.7153087",
"0.7143342",
"0.71259737",
"0.7119... | 0.6302563 | 66 |
Apply a different tokenization techniques according. | def nrOS(YKHO, yAmx: str) -> str:
if not yAmx:
return ''
if YKHO.lowercase:
yAmx = yAmx.lower()
if YKHO.normalize:
yAmx = YKHO._normalize_general_and_western(yAmx)
if YKHO.asian_support:
yAmx = YKHO._normalize_asian(yAmx)
if YKHO.no_punctuation:
yAmx =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0j5(YKHO):\n b0j5 = M9Fq('\\\\w+')\n YKHO.tweet_tokenized_train = [b0j5.tokenize(WKvO.lower()) for WKvO in YKHO.tweet_prepro_train]\n YKHO.tweet_tokenized_test = [b0j5.tokenize(WKvO.lower()) for WKvO in YKHO.tweet_prepro_test]",
"def ZvG6(l5Ny, TdB_=0, hWCX=0, Spxg=0, o9Vy=0):\n ppBc = rLdf.Data... | [
"0.649972",
"0.62013525",
"0.6143272",
"0.61368275",
"0.60289043",
"0.6003302",
"0.5959159",
"0.59293044",
"0.5929144",
"0.58742756",
"0.584906",
"0.58407956",
"0.58312845",
"0.5824927",
"0.58179855",
"0.5805867",
"0.5770613",
"0.5762543",
"0.57461935",
"0.5741264",
"0.574090... | 0.0 | -1 |
Update the wip score with the current set of references and predictions. | def ol6S(aTLP: Union[str, List[str]], pan_: Union[str, List[str]]) -> AzJI[llWB, llWB, llWB]:
if isinstance(aTLP, str):
aTLP = [aTLP]
if isinstance(pan_, str):
pan_ = [pan_]
wjRY = vhpA(0.0)
UAju = vhpA(0.0)
p9Yl = vhpA(0.0)
F6p5 = vhpA(0.0)
for nvEb, V_1d in zip(aTLP, pan_):... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPif():\n pass",
"def nPif(YKHO):\n YKHO.score = z7SQ.calculate_fitness(YKHO.result, YKHO.graph)",
"def D2Ig(YKHO, QpfX):\n WKvO, LVAh, z1Rg = QpfX.get_predictions()\n YKHO.x_eval += WKvO\n YKHO.y_eval += LVAh\n YKHO.o_eval += z1Rg\n YKHO.write_predictions(z1Rg)",
"def QdZT(YKHO, aMg... | [
"0.66043866",
"0.64556634",
"0.6174345",
"0.61138785",
"0.6099475",
"0.60567325",
"0.6019269",
"0.60173756",
"0.6006496",
"0.59535116",
"0.59528244",
"0.5950176",
"0.591886",
"0.5900983",
"0.5862655",
"0.58404696",
"0.58397824",
"0.5834123",
"0.5814171",
"0.57919466",
"0.5788... | 0.0 | -1 |
Get indices of rows along dim 0 which have NaN values. | def R_rt(*cRc2: Tensor) -> llWB:
if len(cRc2) == 0:
raise ValueError('Must pass at least one tensor as argument')
qBwg = cRc2[0]
mrTw = ht2j.zeros(len(qBwg), dtype=ht2j.bool, device=qBwg.device)
for vhpA in cRc2:
Z84D = vhpA.flatten(start_dim=1)
mrTw |= ht2j.any(ht2j.isnan(Z84D),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8ER(ezWE):\n PkKk = oyIN.sum(~oyIN.isfinite(ezWE), axis=1)\n iomA, = oyIN.where(PkKk > 1)\n return frozenset(iomA)",
"def zGll(nPrm):\n p06G = nPrm.isna().sum() > 0\n return p06G.index[p06G.values].values",
"def QD3Q(ZHfW):\n return oyIN.nonzero(oyIN.ravel(ZHfW - 1, order='C'))[0]",
"d... | [
"0.7165634",
"0.66182244",
"0.64247483",
"0.6394519",
"0.63789696",
"0.63346905",
"0.6195757",
"0.61902004",
"0.6128271",
"0.60890377",
"0.60418016",
"0.5964616",
"0.5901305",
"0.58923835",
"0.58780015",
"0.5862449",
"0.5862449",
"0.5862449",
"0.5829332",
"0.5818259",
"0.5794... | 0.73045224 | 0 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return uw5A / uw5A.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"de... | [
"0.7796294",
"0.7760558",
"0.7759004",
"0.77567077",
"0.76577055",
"0.76577055",
"0.76577055",
"0.76577055",
"0.7585655",
"0.743143",
"0.7407772",
"0.73941606",
"0.7358175",
"0.73174125",
"0.72689486",
"0.72623265",
"0.72614294",
"0.7256868",
"0.723019",
"0.7214918",
"0.72017... | 0.70900273 | 48 |
Generate a rotation matrix that rotates a point by an angle theta about the Zaxis. By default, assumes that the angle is passed in ``radians``. | def bs3H(q7In, Tuqy='radians'):
if Tuqy != 'radians' and Tuqy != 'degrees':
raise ValueError('Mode should either be ``radians`` or ``degrees``.')
if Tuqy == 'degrees':
q7In = oyIN.deg2rad(q7In)
return oyIN.matrix([[oyIN.cos(q7In), -oyIN.sin(q7In), 0], [oyIN.sin(q7In), oyIN.cos(q7In), 0], [0.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pV50(YKHO, Y_1E):\n Z9rn = oyIN.cos(Y_1E)\n KCHu = oyIN.sin(Y_1E)\n return oyIN.array([[Z9rn, -KCHu, 0, 0], [KCHu, Z9rn, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]])",
"def OSFI(q7In, WKvO, LVAh, epBp, AU8u=None):\n return mDpI.rotation_matrix(q7In, [WKvO, LVAh, epBp])",
"def Jr_V(YKHO, Y_1E):\n Z9rn... | [
"0.78562224",
"0.6925061",
"0.6757941",
"0.66810715",
"0.6665597",
"0.66074413",
"0.64646536",
"0.64412093",
"0.6367583",
"0.6357769",
"0.63407505",
"0.63345206",
"0.63345206",
"0.6330516",
"0.63222605",
"0.6311498",
"0.63021284",
"0.62926024",
"0.62789595",
"0.6269656",
"0.6... | 0.6835736 | 2 |
Test manual update entity via service homeassistant/update_entity. | async def test_manual_update_entity(ajET: HomeAssistant) -> None:
await OSs1(ajET, forecast=True)
await C3TX(ajET, 'homeassistant', {})
jvSB = zefD('accuweather/current_conditions_data.json')
QVeo = UUOX('accuweather/forecast_data.json')
with Po4F('homeassistant.components.accuweather.AccuWeather.as... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_manual_update(ajET: HomeAssistant) -> None:\n await C3TX(ajET, 'homeassistant', {})\n fZPv.get('http://localhost').respond(status_code=qed_.OK, json={'data': 'first'})\n assert await C3TX(ajET, jkHY, {jkHY: {'name': 'mysensor', 'value_template': '{{ value_json.data }}', 'platform': Sugg, 'r... | [
"0.7796293",
"0.76356006",
"0.74668574",
"0.74229115",
"0.74229115",
"0.74229115",
"0.7321319",
"0.71958214",
"0.7100282",
"0.7076642",
"0.6978721",
"0.6966874",
"0.6941876",
"0.691457",
"0.6800545",
"0.6784447",
"0.67496794",
"0.6748255",
"0.6744794",
"0.6720059",
"0.6686694... | 0.78510654 | 0 |
Apply the mask color to given image | def f2Y_(LNo8, ZHfW, qoA5=AONZ, Cwt5=0.5):
oGem = []
for Z9rn in range(3):
Gexl = ZHfW.copy()
for G1Hx, Ty9i in qoA5.items():
Gexl[ZHfW == G1Hx] = Ty9i[Z9rn]
Gexl = oyIN.expand_dims(Gexl, 2)
oGem.append(Gexl)
ZHfW = oyIN.concatenate(oGem, axis=-1)
if LNo8 is n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f2Y_(Xn71, ZHfW, qfpW=(1, 0, 0)):\n _9tk = oyIN.zeros(Xn71.shape)\n for WKvO, LVAh in ZHfW:\n _9tk[WKvO][LVAh] = qfpW\n return _9tk",
"def f2Y_(LNo8, ZHfW, qfpW, Cwt5=0.5):\n for Z9rn in range(3):\n LNo8[:, :, Z9rn] = oyIN.where(ZHfW == 1, LNo8[:, :, Z9rn] * (1 - Cwt5) + Cwt5 * qfpW... | [
"0.8334109",
"0.8037327",
"0.80192494",
"0.7856319",
"0.7853038",
"0.7780787",
"0.77806455",
"0.76650286",
"0.7625786",
"0.75943446",
"0.75507796",
"0.7534981",
"0.74687713",
"0.74409735",
"0.7364049",
"0.7265084",
"0.72409713",
"0.72236633",
"0.7081653",
"0.7004605",
"0.6990... | 0.7675112 | 7 |
Blit the player to the target surface. | def JmFt(YKHO, J20S):
J20S.blit(YKHO.image, YKHO.rect)
for BSyd in YKHO.shots.values():
BSyd.draw() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dM6E(YKHO, J20S):\n J20S.blit(YKHO.surface, YKHO.rect)",
"def aTol(YKHO):\n YKHO.screen.blit(YKHO.player_image, (YKHO.player_position['x'], YKHO.player_position['y']))",
"def dM6E(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.rect)",
"def rxBj(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.rect)",
... | [
"0.773816",
"0.72039574",
"0.71470946",
"0.7090703",
"0.7090703",
"0.7090703",
"0.7090703",
"0.70666385",
"0.70666385",
"0.70666385",
"0.70666385",
"0.70666385",
"0.70666385",
"0.70666385",
"0.70666385",
"0.70666385",
"0.70666385",
"0.7038491",
"0.7038491",
"0.7038491",
"0.69... | 0.59688556 | 64 |
Store any number of experiment statistics. This will write the statistics from the most recent step to the output directory if one is specified. The statistics are also displayed in stdout at the step interval specified by `self.log_freq`. The statistics needn't change across multiple calls to this function as they wil... | def VUF1(YKHO, **eQSh):
if YKHO.first_row:
YKHO.log_headers = list(eQSh.keys())
for H5ew in eQSh:
assert H5ew in YKHO.log_headers, f"Can't introduce a new key that you didn't include before: {H5ew}"
if YKHO.first_row:
YKHO.file_writer.writerow(YKHO.log_headers)
YKHO.file_writer.w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gcn_(YKHO):\n with open(YKHO.log_file, 'a') as hlel:\n WJI9 = m6_J.writer(hlel)\n wz2q, N9WD = YKHO.connected_component()\n WJI9.writerow([YKHO.pop_size, YKHO.get_average_age(), YKHO.get_average_survival(), YKHO.get_average_repro()] + [wz2q, ','.join(map(str, N9WD))])",
"def Xb7I(YKHO... | [
"0.6334855",
"0.6235505",
"0.60259587",
"0.601794",
"0.59792906",
"0.5975385",
"0.59662896",
"0.5925985",
"0.5925901",
"0.5874682",
"0.5814251",
"0.5809331",
"0.58027244",
"0.57764137",
"0.5738266",
"0.5731305",
"0.5723422",
"0.5656563",
"0.56473047",
"0.5633934",
"0.5621433"... | 0.7055499 | 0 |
E[X] + c == E[X + c] | def yIzA(YKHO):
Z9rn = 10
MCGS = YKHO.x_ev.add(Z9rn)
NiBi = YKHO.X_dist.expectedValue(YKHO.x_ev) + Z9rn
T_Ml = YKHO.X_dist.expectedValue(MCGS)
Xgmb(NiBi, T_Ml) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Z9rn):\n for YRbF in range(tiAy):\n if YKHO[YRbF] != Z9rn[YRbF]:\n return False\n return True",
"def vRCm(YKHO):\n jzdc, Fg_i = (oyIN.arange(YKHO.N), oyIN.arange(1, YKHO.N + 1))\n Z9rn, Csk6 = (ddO4.carray(jzdc, rootdir=YKHO.rootdir), Fg_i)\n KBgZ = Z9rn['a + 2 * d... | [
"0.63298523",
"0.59646475",
"0.57949275",
"0.5774223",
"0.5683136",
"0.56673676",
"0.5629574",
"0.5566141",
"0.5515495",
"0.5511411",
"0.55041397",
"0.5479444",
"0.5463045",
"0.5457695",
"0.5397484",
"0.53792757",
"0.53756267",
"0.53687215",
"0.5358684",
"0.5354538",
"0.53508... | 0.0 | -1 |
Creates a Census object and calls its get method with the appropriate code_dict. | def CTVz(lxjK, lO87, zy4T, Ug1b, dnR4=False):
H5ew = zEN5.get_census_key()
gV47 = cd1b(H5ew)
__n6 = 'acs/acs5' if int(lO87) >= 2016 else 'acs5'
nPrm = gV47.get(lxjK, zy4T, Ug1b, lO87, __n6, dnR4)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tHV2(YKHO, CVzJ):\n pass",
"def UtjX(YKHO):\n YKHO._census_api = brPV(YKHO.census_api_key)\n yield\n del YKHO._census_api",
"def TxAm():\n ZtEw = {'date': 'date', 'areaName': 'areaName', 'areaCode': 'areaCode', 'newCasesByPublishDate': 'newCasesByPublishDate', 'cumCasesByPublishDate': 'cumCa... | [
"0.59460074",
"0.56518215",
"0.51518065",
"0.5129447",
"0.5092474",
"0.49909538",
"0.49885908",
"0.4983232",
"0.49574143",
"0.49363077",
"0.4915872",
"0.4910287",
"0.489077",
"0.48633897",
"0.48456693",
"0.48175806",
"0.48175633",
"0.47714576",
"0.47470647",
"0.4735681",
"0.4... | 0.46269244 | 37 |
Returns the file size in Bytes | def cZkV(IznC):
return Hy7s.path.getsize(IznC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mfF2():\n return Hy7s.path.getsize(bkJI)",
"def cZkV(YKHO) -> int:\n return YKHO.get_main_information()['FileSize']",
"def mfF2(YKHO) -> int:\n return YKHO.get_main_information()['FileSize']",
"def mfF2(YKHO, qaEx):\n if Hy7s.path.isfile(qaEx):\n GkYq = Hy7s.stat(qaEx)\n return ... | [
"0.8939642",
"0.88487613",
"0.87167144",
"0.8617665",
"0.858042",
"0.8552906",
"0.85349053",
"0.8477013",
"0.8477013",
"0.8477013",
"0.842872",
"0.8428169",
"0.8391353",
"0.8364002",
"0.8353534",
"0.83478826",
"0.83288074",
"0.83200955",
"0.83085316",
"0.8225882",
"0.82044923... | 0.80469847 | 36 |
Initialise the event manager. A sleeper function is used to wake up once a new event comes available. | def FIMM(YKHO):
YKHO._events = g760.deque()
YKHO._alarms = 0
YKHO._alarm_active = True
YKHO._kq = EfUA.kqueue()
YKHO._kq_events = {}
YKHO.traceback = ()
YKHO.event_count = 0
YKHO._no_tb = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.events = {}\n YKHO.eventmatchers = {}\n YKHO.alive = True",
"def FIMM(YKHO):\n YKHO.started = QRWf()",
"def FIMM(YKHO):\n YKHO._event = laXl.Event()\n YKHO._queue = laXl.JoinableQueue()\n YKHO._results = laXl.Queue()\n YKHO._spawn_workers()\n YKHO.population = ... | [
"0.6291824",
"0.6139287",
"0.6124241",
"0.59811056",
"0.5956005",
"0.5901791",
"0.58723813",
"0.58687854",
"0.58553445",
"0.5853665",
"0.5838681",
"0.5834964",
"0.58256614",
"0.58242524",
"0.58083224",
"0.57737243",
"0.57737243",
"0.57737243",
"0.57737243",
"0.57737243",
"0.5... | 0.63840324 | 0 |
Set your birthday to show up on the Cosmos Profile. | async def set_profile_birthday(YKHO, OaeV, *, Kb0M: str):
z39Z = await YKHO.cache.get_profile(OaeV.author.id)
await z39Z.set_birthday(Kb0M)
Ylbp = f'Your birthday is set to {z39Z.birthday.strftime('%A, %B %e, %Y')}.'
await OaeV.send_line(Ylbp, OaeV.author.avatar_url) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ogS9(YKHO, UUKz):\n YKHO.birthday = UUKz",
"def ogS9(YKHO, UUKz):\n YKHO.birthday = UUKz",
"def ogS9(YKHO, x0eS, CjKC, lO87):\n YKHO.birthday = qcWV.date(lO87, x0eS, CjKC)",
"def ogS9(YKHO, x0eS, CjKC, lO87):\n YKHO.birthday = qcWV.date(lO87, x0eS, CjKC)",
"def ogS9(YKHO, x0eS, CjKC, lO87):... | [
"0.79154086",
"0.78290045",
"0.7735932",
"0.7735932",
"0.7647021",
"0.7486532",
"0.72227335",
"0.6997337",
"0.6909457",
"0.68309444",
"0.68281704",
"0.6793288",
"0.67897093",
"0.6561549",
"0.6546439",
"0.6440436",
"0.6429883",
"0.6403304",
"0.63885874",
"0.62992233",
"0.62937... | 0.79826754 | 0 |
Reads the nodes file and stores as a DataFrame. | def zb_n(YKHO):
YKHO.node_df = _ger.remove_colons(rLdf.read_csv(YKHO.node_file, dtype=str)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZAQi(YKHO):\n nPrm = rLdf.read_table(YKHO.file_dir, sep='\\t', header=None)\n nPrm.columns = ['FromNodeId', 'ToNodeId']\n return nPrm",
"def rKRA(YKHO, pmON: str) -> atdS.sql.dataframe.DataFrame:\n try:\n L98T = YKHO.spark.read.parquet(pmON)\n except OSError:\n print('cannot open... | [
"0.7188342",
"0.71578753",
"0.6900229",
"0.6444844",
"0.64122266",
"0.63447076",
"0.6292413",
"0.6283478",
"0.62274796",
"0.6195567",
"0.6190417",
"0.6174446",
"0.61594933",
"0.6149182",
"0.6056232",
"0.6002325",
"0.6001004",
"0.59962726",
"0.5949263",
"0.59192026",
"0.590031... | 0.7482473 | 0 |
Expect that an object can be instantiated with the right attributes. | def as4H(azoT):
KAOR = c9Kx(**azoT)
for hkS8, BWXx in azoT.items():
assert getattr(KAOR, hkS8) == BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kpyl(YKHO, mWFP, YEnM):\n assert getattr(Radr, mWFP) == YEnM",
"def Kpyl(YKHO, mWFP, YEnM):\n assert getattr(Radr, mWFP) == YEnM",
"def PDJx(YKHO):\n\n class InvalidClass(object):\n pass\n ju84 = cKRo()\n with YKHO.assertRaises(TypeError):\n HyUK.from_object(ju84)",
"def U6sw... | [
"0.71503836",
"0.71503836",
"0.6796081",
"0.67125994",
"0.66723245",
"0.6597072",
"0.6565062",
"0.6543619",
"0.65400124",
"0.6530825",
"0.6482194",
"0.64496",
"0.6442326",
"0.6433054",
"0.6426752",
"0.6417383",
"0.6406627",
"0.6394254",
"0.6380104",
"0.63665533",
"0.63609433"... | 0.668577 | 4 |
Routine to calculate the initial velocities for the photon geodesic. | def Jzsv(YKHO):
JRYC = YKHO.E
HGCR = oyIN.sqrt(YKHO.E ** 2 - (YKHO.Q + YKHO.L ** 2) / YKHO.r ** 2)
if oyIN.isnan(HGCR):
HGCR = 0
wW3z = YKHO.Q - YKHO.L ** 2 * (oyIN.cos(YKHO.theta) / oyIN.sin(YKHO.theta)) ** 2
if wW3z < 0:
wW3z = oyIN.abs(wW3z)
ABxu = oyIN.sqrt(wW3z) / YKHO.r ** ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dbQk(YKHO):\n YKHO.wx = oyIN.copy(AGDB.wzero)\n YKHO.wy = oyIN.copy(AGDB.wzero)",
"def ZgQW(YKHO, CHNM):\n for DM04 in CHNM:\n DM04.features['velocity'] = [0] * len(DM04.vector)\n return",
"def ZgQW(YKHO, xRqF):\n for DM04 in xRqF:\n DM04.features['velocity'] = [0] * len(DM04.v... | [
"0.66319895",
"0.6600563",
"0.64240515",
"0.63148826",
"0.6251954",
"0.61698514",
"0.6161908",
"0.61526215",
"0.60619813",
"0.6037457",
"0.60283023",
"0.5977822",
"0.59695166",
"0.59669995",
"0.5966139",
"0.59558713",
"0.5952949",
"0.59339803",
"0.5923478",
"0.59141403",
"0.5... | 0.0 | -1 |
Getter for the constants of motion. | def gCto(YKHO):
return (YKHO.E, YKHO.L, YKHO.Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uwaB(YKHO):\n return YKHO.bot.constants",
"def OMHJ(YKHO):\n return (YKHO.D1, YKHO.D2, YKHO.A1, YKHO.A2, YKHO.F1, YKHO.F2, YKHO.S12)",
"def OMHJ(YKHO) -> gUcr:\n YKHO.serial.write(b'M!')\n hkxX = YKHO.__read_response(1)[0]\n assert hkxX[0:2] == b'!M'\n Ty9i = hkxX[2:]\n suz_ = (256 * T... | [
"0.69824326",
"0.68576247",
"0.68563247",
"0.6706594",
"0.66856366",
"0.6625861",
"0.6439698",
"0.6367437",
"0.6367437",
"0.6367437",
"0.6241887",
"0.60466206",
"0.59321713",
"0.59240234",
"0.5836313",
"0.58210975",
"0.580013",
"0.579165",
"0.57712245",
"0.576145",
"0.5726428... | 0.0 | -1 |
Set (and possibly recalc) the emission angle beta. | def MMs7(YKHO, RHJb, fSMA=True):
YKHO.eta = RHJb
if fSMA:
YKHO.setup() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qXsE(YKHO, FOXU):\n YKHO.beta = FOXU\n YKHO.gamma = YKHO.calculateGammaFactors()",
"def fce2(YKHO):\n pvTm = oyIN.copy(YKHO.beta)\n XcU5 = YKHO.__genW()\n Aofo = oyIN.matmul(oyIN.matmul(YKHO.X.T, XcU5), YKHO.X)\n Aofo = oyIN.matmul(oyIN.linalg.inv(Aofo), YKHO.X.T)\n Aofo = oyIN.matmul(Ao... | [
"0.6286281",
"0.5918907",
"0.5883902",
"0.5883902",
"0.5794211",
"0.5788358",
"0.5781255",
"0.5727266",
"0.57012814",
"0.57012814",
"0.5683675",
"0.5670008",
"0.55926746",
"0.5579683",
"0.5491432",
"0.5465267",
"0.54574746",
"0.54439783",
"0.5443078",
"0.5427309",
"0.5420321"... | 0.5366386 | 24 |
Sets up the window and widgets. | def FIMM(YKHO):
LQRw.__init__(YKHO)
YKHO.master.title('Canvas Demo')
YKHO.grid()
YKHO.canvas = _EyF(YKHO, width=200, height=100, bg='white')
YKHO.canvas.grid(row=0, column=0)
f4IJ = LQRw(YKHO)
f4IJ.grid(row=1, column=0)
lued = D04X(f4IJ, text='Rectangle', command=YKHO.displayRect)
Vw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCGt(YKHO):\n YKHO.ui.setup_window()",
"def zvL6(YKHO):\n YKHO.main_menu_window = hSph.MainMenuFrame(YKHO.uiCoordinator)\n YKHO.menu_window = YKHO.main_menu_window._mf\n YKHO.score_window = YKHO.main_menu_window._hf\n YKHO.instructions_window = YKHO.main_menu_window._if\n YKHO.menu_window.p... | [
"0.7910691",
"0.78307253",
"0.7798649",
"0.77902734",
"0.76395255",
"0.7474737",
"0.74304384",
"0.7420984",
"0.73780614",
"0.7364978",
"0.7345623",
"0.7325864",
"0.7305605",
"0.7287119",
"0.7264732",
"0.72239757",
"0.72001356",
"0.71263516",
"0.70997447",
"0.7087031",
"0.7052... | 0.0 | -1 |
A list of IP addresses or subnet masks to restrict group access. Will be concatenated together into a comma separated string. Only allowed on top level groups. | def FpM1(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'ip_restriction_ranges') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QGnq(YKHO):\n return vrEl('AllowedIPs', YKHO._peer.allowed_ips)",
"def QG2B(YKHO):\n D8Ke = xOIh.IPNetwork(addr=YKHO.subnet)\n Npkd = list(D8Ke.subnet(prefixlen=24))\n paQT = [str(VWZy) for VWZy in Npkd]\n return paQT",
"def _D6D(YKHO, CBIr=None):\n if CBIr is None:\n return []\n ... | [
"0.58076185",
"0.56698346",
"0.5669276",
"0.5526559",
"0.5416609",
"0.5408387",
"0.5370072",
"0.53700453",
"0.5362421",
"0.53332394",
"0.53322905",
"0.5311524",
"0.53109765",
"0.5286949",
"0.5245677",
"0.5245677",
"0.5245677",
"0.5245677",
"0.5245677",
"0.5244102",
"0.5244102... | 0.5412086 | 6 |
Defaults to true. Enable/disable Large File Storage (LFS) for the projects in this group. | def ZB_u(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'lfs_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZB_u(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'lfs_enabled')",
"def b92d(YKHO):\n if not YKHO.files:\n YKHO._set_subclient_properties(\"_subclient_properties['cloudAppsSubClientProp'] ['salesforceSubclient']['backupFileObjects']\", True)",
"... | [
"0.59640765",
"0.53409183",
"0.5294283",
"0.5078812",
"0.5044131",
"0.49713063",
"0.49425024",
"0.49237454",
"0.48656824",
"0.48082808",
"0.4751746",
"0.4744643",
"0.47360379",
"0.46859276",
"0.46536738",
"0.46287233",
"0.460106",
"0.45899716",
"0.45667297",
"0.45523623",
"0.... | 0.5919325 | 1 |
The name of this group. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def mWFP(YKHO):\n return f'{YKHO._group.friendly_name} {VCI3}'",
"def Q0HP(YKHO):\n return _VfD.Group_getName(YKHO)",
"def IXKo(YKHO):\n return YKHO._group_name",
"def XZ_F(YKHO):\n return YKHO.groupname",
"def mWFP(YKHO) -> s... | [
"0.8815308",
"0.8796503",
"0.85862744",
"0.851612",
"0.83817255",
"0.8212201",
"0.8212201",
"0.8212201",
"0.8212201",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
... | 0.0 | -1 |
Defaults to false. When enabled, users can not fork projects from this group to external namespaces. | def e359(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'prevent_forking_outside_group') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e359(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'prevent_forking_outside_group')",
"def qzg3():\n pass",
"def CCTU(YKHO):\n YKHO.vm_obj.EnableForkParent()",
"def uvHH(YKHO):\n if YKHO._any_parent_is_group is None:\n return super(gwuf, YKHO).any_parent_is_group\n return YKHO... | [
"0.66202724",
"0.6068462",
"0.574182",
"0.5532868",
"0.5396893",
"0.53494096",
"0.5336113",
"0.5290635",
"0.5287365",
"0.52774566",
"0.5236394",
"0.522874",
"0.5227244",
"0.5216911",
"0.5196178",
"0.5196178",
"0.51514256",
"0.51514256",
"0.5149977",
"0.51298887",
"0.5079952",... | 0.6631784 | 1 |
Defaults to false. Allow users to request member access. | def bidg(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'request_access_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKMP(YKHO, CBIr):\n return True",
"def F4VP(YKHO) -> bool:\n return YKHO.effect == AZ9y",
"def qHTF(YKHO, QePW):\n return QePW.user.is_active",
"def ZNeh(YKHO):\n return False",
"def U0PO(LpBI):\n\n def V8rj(QePW, *qIxc, **B2fa):\n if QePW.user.is_member:\n return LpBI(... | [
"0.6849366",
"0.6660746",
"0.6605702",
"0.6540382",
"0.6526027",
"0.65252775",
"0.65252775",
"0.65252775",
"0.6502478",
"0.6483457",
"0.6468765",
"0.6468765",
"0.6463506",
"0.64629406",
"0.64150304",
"0.6389049",
"0.638731",
"0.6382487",
"0.6380744",
"0.6372533",
"0.6356196",... | 0.6498075 | 10 |
Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0. | def OEAb(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'shared_runners_minutes_limit') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEAb(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'shared_runners_minutes_limit')",
"def O66n(input=None):\n return NMoC(input).minutes",
"def LU9X(YKHO) -> int:\n return YKHO._lic.params['maxAccessTimes'].value",
"def PXfK(YKHO) -> h8nf[int]:\n pmON = Hy7s.path.join(YKHO._cgroup_fs_pat... | [
"0.64227384",
"0.6111857",
"0.6108748",
"0.6010775",
"0.5994632",
"0.59869397",
"0.598075",
"0.59454626",
"0.5873803",
"0.57794523",
"0.5773599",
"0.5773599",
"0.5773482",
"0.5711413",
"0.5632766",
"0.55791867",
"0.55679387",
"0.5553973",
"0.554364",
"0.5530836",
"0.55178136"... | 0.6214698 | 1 |
Input properties used for looking up and filtering Group resources. | def FIMM(Ro_8, *, Ty0C: Optional[pulumi.Input[bool]]=None, H8ai: Optional[pulumi.Input[str]]=None, hMYL: Optional[pulumi.Input[str]]=None, PYMe: Optional[pulumi.Input[str]]=None, tn5z: Optional[pulumi.Input[int]]=None, JBZA: Optional[pulumi.Input[str]]=None, Gjxh: Optional[pulumi.Input[bool]]=None, mhTn: Optional[pulum... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jX25(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'property_group_id')",
"def pCnZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'groupfilter')",
"def pCnZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'groupfilter')",
"def FIMM(YKHO, moMn=dict()):\n YKHO.groups = moM... | [
"0.584398",
"0.58083916",
"0.58083916",
"0.57833415",
"0.5757807",
"0.5751791",
"0.5710303",
"0.5698739",
"0.5673951",
"0.56210864",
"0.5609828",
"0.55844724",
"0.55844724",
"0.55844724",
"0.5570786",
"0.5551417",
"0.5551417",
"0.5547407",
"0.55390674",
"0.5536077",
"0.553569... | 0.0 | -1 |
The full name of the group. | def eHMM(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'full_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def mWFP(YKHO):\n return f'{YKHO._group.friendly_name} {VCI3}'",
"def XZ_F(YKHO):\n return YKHO.groupname",
"def IXKo(YKHO):\n return YKHO._group_name",
"def IXKo(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'group_n... | [
"0.87655264",
"0.87619334",
"0.8648473",
"0.85542977",
"0.8263364",
"0.81084156",
"0.79874754",
"0.79874754",
"0.7945599",
"0.7945599",
"0.7935524",
"0.77901536",
"0.77501506",
"0.7732263",
"0.7721572",
"0.7721572",
"0.7700081",
"0.7631772",
"0.7600773",
"0.75541866",
"0.7535... | 0.0 | -1 |
A list of IP addresses or subnet masks to restrict group access. Will be concatenated together into a comma separated string. Only allowed on top level groups. | def FpM1(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'ip_restriction_ranges') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QGnq(YKHO):\n return vrEl('AllowedIPs', YKHO._peer.allowed_ips)",
"def QG2B(YKHO):\n D8Ke = xOIh.IPNetwork(addr=YKHO.subnet)\n Npkd = list(D8Ke.subnet(prefixlen=24))\n paQT = [str(VWZy) for VWZy in Npkd]\n return paQT",
"def _D6D(YKHO, CBIr=None):\n if CBIr is None:\n return []\n ... | [
"0.5807656",
"0.56691176",
"0.5668636",
"0.552672",
"0.5417261",
"0.540896",
"0.53714293",
"0.5370836",
"0.5363122",
"0.53342706",
"0.5333277",
"0.5311564",
"0.5311217",
"0.52880347",
"0.5246972",
"0.5246972",
"0.5246972",
"0.5246972",
"0.5246972",
"0.52450806",
"0.52450806",... | 0.54131126 | 5 |
The name of this group. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def mWFP(YKHO):\n return f'{YKHO._group.friendly_name} {VCI3}'",
"def Q0HP(YKHO):\n return _VfD.Group_getName(YKHO)",
"def IXKo(YKHO):\n return YKHO._group_name",
"def XZ_F(YKHO):\n return YKHO.groupname",
"def mWFP(YKHO) -> s... | [
"0.8815308",
"0.8796503",
"0.85862744",
"0.851612",
"0.83817255",
"0.8212201",
"0.8212201",
"0.8212201",
"0.8212201",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
... | 0.0 | -1 |
Defaults to false. When enabled, users can not fork projects from this group to external namespaces. | def e359(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'prevent_forking_outside_group') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e359(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'prevent_forking_outside_group')",
"def qzg3():\n pass",
"def CCTU(YKHO):\n YKHO.vm_obj.EnableForkParent()",
"def uvHH(YKHO):\n if YKHO._any_parent_is_group is None:\n return super(gwuf, YKHO).any_parent_is_group\n return YKHO... | [
"0.66202724",
"0.6068462",
"0.574182",
"0.5532868",
"0.5396893",
"0.53494096",
"0.5336113",
"0.5290635",
"0.5287365",
"0.52774566",
"0.5236394",
"0.522874",
"0.5227244",
"0.5216911",
"0.5196178",
"0.5196178",
"0.51514256",
"0.51514256",
"0.5149977",
"0.51298887",
"0.5079952",... | 0.6631784 | 0 |
Defaults to false. Allow users to request member access. | def bidg(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'request_access_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKMP(YKHO, CBIr):\n return True",
"def F4VP(YKHO) -> bool:\n return YKHO.effect == AZ9y",
"def qHTF(YKHO, QePW):\n return QePW.user.is_active",
"def ZNeh(YKHO):\n return False",
"def U0PO(LpBI):\n\n def V8rj(QePW, *qIxc, **B2fa):\n if QePW.user.is_member:\n return LpBI(... | [
"0.6849366",
"0.6660746",
"0.6605702",
"0.6540382",
"0.6526027",
"0.65252775",
"0.65252775",
"0.65252775",
"0.6502478",
"0.6483457",
"0.6468765",
"0.6468765",
"0.6463506",
"0.64629406",
"0.64150304",
"0.6389049",
"0.638731",
"0.6382487",
"0.6380744",
"0.6372533",
"0.6356196",... | 0.6498075 | 9 |
Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0. | def OEAb(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'shared_runners_minutes_limit') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEAb(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'shared_runners_minutes_limit')",
"def O66n(input=None):\n return NMoC(input).minutes",
"def LU9X(YKHO) -> int:\n return YKHO._lic.params['maxAccessTimes'].value",
"def PXfK(YKHO) -> h8nf[int]:\n pmON = Hy7s.path.join(YKHO._cgroup_fs_pat... | [
"0.6423931",
"0.6113475",
"0.61100674",
"0.6012798",
"0.599724",
"0.5987509",
"0.5982947",
"0.59468603",
"0.5875",
"0.5779746",
"0.577555",
"0.577555",
"0.5774766",
"0.5710874",
"0.56311494",
"0.5581071",
"0.556822",
"0.55538523",
"0.5544943",
"0.55336136",
"0.5517607",
"0.... | 0.6217226 | 2 |
The full name of the group. | def eHMM(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'full_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def mWFP(YKHO):\n return f'{YKHO._group.friendly_name} {VCI3}'",
"def XZ_F(YKHO):\n return YKHO.groupname",
"def IXKo(YKHO):\n return YKHO._group_name",
"def IXKo(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'group_n... | [
"0.87655264",
"0.87619334",
"0.8648473",
"0.85542977",
"0.8263364",
"0.81084156",
"0.79874754",
"0.79874754",
"0.7945599",
"0.7945599",
"0.7935524",
"0.77901536",
"0.77501506",
"0.7732263",
"0.7721572",
"0.7721572",
"0.7700081",
"0.7631772",
"0.7600773",
"0.75541866",
"0.7535... | 0.0 | -1 |
A list of IP addresses or subnet masks to restrict group access. Will be concatenated together into a comma separated string. Only allowed on top level groups. | def FpM1(YKHO) -> qe4Y.Output[h8nf[bdIy[str]]]:
return qe4Y.get(YKHO, 'ip_restriction_ranges') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QGnq(YKHO):\n return vrEl('AllowedIPs', YKHO._peer.allowed_ips)",
"def QG2B(YKHO):\n D8Ke = xOIh.IPNetwork(addr=YKHO.subnet)\n Npkd = list(D8Ke.subnet(prefixlen=24))\n paQT = [str(VWZy) for VWZy in Npkd]\n return paQT",
"def _D6D(YKHO, CBIr=None):\n if CBIr is None:\n return []\n ... | [
"0.5807656",
"0.56691176",
"0.5668636",
"0.552672",
"0.5417261",
"0.54131126",
"0.54131126",
"0.53714293",
"0.5370836",
"0.5363122",
"0.53342706",
"0.5333277",
"0.5311564",
"0.5311217",
"0.52880347",
"0.5246972",
"0.5246972",
"0.5246972",
"0.5246972",
"0.5246972",
"0.52450806... | 0.540896 | 7 |
The name of this group. | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def mWFP(YKHO):\n return f'{YKHO._group.friendly_name} {VCI3}'",
"def Q0HP(YKHO):\n return _VfD.Group_getName(YKHO)",
"def IXKo(YKHO):\n return YKHO._group_name",
"def XZ_F(YKHO):\n return YKHO.groupname",
"def mWFP(YKHO) -> s... | [
"0.8815308",
"0.8796503",
"0.85862744",
"0.851612",
"0.83817255",
"0.8212201",
"0.8212201",
"0.8212201",
"0.8212201",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
"0.8184721",
... | 0.0 | -1 |
Defaults to false. When enabled, users can not fork projects from this group to external namespaces. | def e359(YKHO) -> qe4Y.Output[bool]:
return qe4Y.get(YKHO, 'prevent_forking_outside_group') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e359(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'prevent_forking_outside_group')",
"def e359(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'prevent_forking_outside_group')",
"def qzg3():\n pass",
"def CCTU(YKHO):\n YKHO.vm_obj.EnableForkParent()",
"def uvHH(YKHO):\n... | [
"0.6631784",
"0.6631784",
"0.6068462",
"0.574182",
"0.5532868",
"0.5396893",
"0.53494096",
"0.5336113",
"0.5290635",
"0.5287365",
"0.52774566",
"0.5236394",
"0.522874",
"0.5227244",
"0.5216911",
"0.5196178",
"0.5196178",
"0.51514256",
"0.51514256",
"0.5149977",
"0.51298887",
... | 0.66202724 | 2 |
Defaults to false. Allow users to request member access. | def bidg(YKHO) -> qe4Y.Output[bool]:
return qe4Y.get(YKHO, 'request_access_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKMP(YKHO, CBIr):\n return True",
"def F4VP(YKHO) -> bool:\n return YKHO.effect == AZ9y",
"def qHTF(YKHO, QePW):\n return QePW.user.is_active",
"def ZNeh(YKHO):\n return False",
"def U0PO(LpBI):\n\n def V8rj(QePW, *qIxc, **B2fa):\n if QePW.user.is_member:\n return LpBI(... | [
"0.6849366",
"0.6660746",
"0.6605702",
"0.6540382",
"0.6526027",
"0.65252775",
"0.65252775",
"0.65252775",
"0.6502478",
"0.6498075",
"0.6498075",
"0.6483457",
"0.6468765",
"0.6468765",
"0.6463506",
"0.64629406",
"0.64150304",
"0.6389049",
"0.6382487",
"0.6380744",
"0.6372533"... | 0.638731 | 18 |
Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0. | def OEAb(YKHO) -> qe4Y.Output[int]:
return qe4Y.get(YKHO, 'shared_runners_minutes_limit') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEAb(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'shared_runners_minutes_limit')",
"def OEAb(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'shared_runners_minutes_limit')",
"def O66n(input=None):\n return NMoC(input).minutes",
"def LU9X(YKHO) -> int:\n return YKHO._lic.p... | [
"0.62170434",
"0.62170434",
"0.61141247",
"0.6109233",
"0.6010572",
"0.5997726",
"0.5987793",
"0.5980146",
"0.59467024",
"0.587503",
"0.57783365",
"0.57752204",
"0.57752204",
"0.5774505",
"0.57086927",
"0.5631148",
"0.5579466",
"0.55692446",
"0.5553937",
"0.5544016",
"0.55335... | 0.64242864 | 0 |
Return a random email address ending in dbca.wa.gov.au | def snnS():
KCHu = ''.join((tuKI.choice(vIwR.ascii_letters) for YRbF in range(20)))
return '{}@dbca.wa.gov.au'.format(KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s0DP():\n return eHHU(10, 15) + '@' + eHHU(10, 15) + '.' + wyY3(['ac.uk', 'edu', 'com'])",
"def FEhW():\n zBqa = [Z9rn for Z9rn in range(48, 57)] + [Z9rn for Z9rn in range(65, 90)] + [Z9rn for Z9rn in range(97, 122)] + [45]\n NtEF = ''.join(lx9M(10, mh6X))\n ulaE = ''.join(lx9M(10, zBqa))\n zr... | [
"0.8056285",
"0.715848",
"0.715546",
"0.65744054",
"0.65642",
"0.63009435",
"0.624172",
"0.6102155",
"0.60532564",
"0.59849274",
"0.59799176",
"0.59672624",
"0.59315455",
"0.59061956",
"0.5881061",
"0.58275795",
"0.5827534",
"0.57853866",
"0.5766564",
"0.5760094",
"0.5731833"... | 0.84247315 | 0 |
Calculates the perspective transform from at least 4 points of corresponding points using the Normalized Direct Linear Transformation method. | def rZat(zZcM, zr3f):
rRLN = oyIN.eye(3, dtype=oyIN.float64)
raise NotImplementedError()
return rRLN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fibl(YKHO):\n return oyIN.array([[1.0 / oyIN.tan(YKHO.view_angle_h), 0, 0, 0], [0, 1.0 / oyIN.tan(YKHO.view_angle_v), 0, 0], [0, 0, (YKHO.far + YKHO.near) / (YKHO.far - YKHO.near), 2 * YKHO.far * YKHO.near / (YKHO.far - YKHO.near)], [0, 0, -1, 0]])",
"def OmYE(YKHO, bjLw, XSoh='forward'):\n zZcM = oyIN... | [
"0.68986464",
"0.68684274",
"0.68525153",
"0.68331325",
"0.67566794",
"0.6730854",
"0.6669902",
"0.66085714",
"0.6593573",
"0.6529709",
"0.6470461",
"0.63970774",
"0.630993",
"0.6265241",
"0.62621355",
"0.62558347",
"0.6218966",
"0.6213023",
"0.6206424",
"0.6183548",
"0.61702... | 0.0 | -1 |
Initializes a new HealthStatisticsPublisherManager with a given number of seconds as the interval | def FIMM(YKHO, sgDK, bLg3):
Esm4.__init__(YKHO)
YKHO.log = TVs2().get_log(__name__)
YKHO.publish_interval = sgDK
':type : int'
YKHO.terminated = False
YKHO.publisher = vC0k()
':type : HealthStatisticsPublisher'
YKHO.stats_reader = bLg3 if bLg3 is not None else itfl() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, VOlW):\n _uxr = VOlW",
"def FIMM(YKHO, WbTE=1, dbmU=5):\n YKHO.duration = WbTE\n YKHO.max_per_interval = dbmU\n YKHO.stopwatch = GILZ()\n YKHO.num_processed_this_interval = 0",
"def FIMM(YKHO, VOlW=1.0):\n super(SZSE, YKHO).__init__()\n YKHO.interval = VOlW",
"def FIMM(YKH... | [
"0.62409776",
"0.61241734",
"0.5839857",
"0.57668424",
"0.57667977",
"0.5561957",
"0.55196255",
"0.5516953",
"0.5491214",
"0.54747677",
"0.54636186",
"0.54372716",
"0.54213154",
"0.5366436",
"0.53312963",
"0.5288059",
"0.5268801",
"0.5232484",
"0.52041787",
"0.5201852",
"0.51... | 0.6346899 | 0 |
Reformat annotations dict to return list of corresponding zipkin_core objects. | def uuxN(XgyP, KcEq):
return [oKIn(int(E3oo * 1000000), H5ew, KcEq) for H5ew, E3oo in XgyP.items()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U3cS(YKHO) -> x1iM[cuzp[int, cuzp[str, ImMB]]]:\n XgyP = []\n for ZfUD in YKHO.collector:\n Xd5A = Hy7s.path.basename(ZfUD).split('.')[-1]\n XgyP.append(Fk_w(Hy7s.path.join(YKHO.annotation_folder, Hy7s.path.basename(ZfUD).replace(Xd5A, 'json'))))\n return XgyP",
"def j2ix(YKHO, XgyP):\... | [
"0.6210559",
"0.59787285",
"0.5924995",
"0.58572626",
"0.5723241",
"0.5723241",
"0.572062",
"0.5702353",
"0.5643333",
"0.562474",
"0.5565374",
"0.5560835",
"0.55036104",
"0.5496457",
"0.54670227",
"0.5444577",
"0.5409689",
"0.5400708",
"0.53580207",
"0.5357135",
"0.53443575",... | 0.53406125 | 21 |
Return queried user record by provided id. | async def get(Emd4, uJjO):
try:
CBIr = await NCls.one(Emd4.SELECT_USER, user_id=uJjO)
except Bx6I.NoResultFound:
S0MI.error('Could not find user=%s.', uJjO)
raise A5pJ
except cQ7A as err:
S0MI.error('Failed to fetch user=%s. Error: %s', uJjO, XObx)
raise A5pJ
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ggdo(Emd4, _eu6):\n CBIr = Emd4.query.filter_by(id=_eu6).first()\n return CBIr",
"def NMoC(id):\n return mv1M.query.filter_by(id=id).first()",
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def jRq6(YKHO, id):\n return YKHO.session.query(mv1M).filter_by(id=id).first()",
"def JuUv(YK... | [
"0.8249657",
"0.82025254",
"0.80225414",
"0.80082965",
"0.79531187",
"0.78832614",
"0.78375834",
"0.7828614",
"0.78095007",
"0.7798457",
"0.7781435",
"0.777003",
"0.7767997",
"0.7755758",
"0.7738673",
"0.7713266",
"0.7702857",
"0.7702857",
"0.7702857",
"0.7702857",
"0.7695712... | 0.7188699 | 65 |
Return queried user`s limit by provided mcc code. | async def get_limit(Emd4, uJjO, P9Ql):
try:
qoqK = await NCls.one(Emd4.SELECT_LIMIT, user_id=uJjO, mcc_code=P9Ql)
except Bx6I.NoResultFound:
S0MI.error('Could not find limit by mcc code=%s for user=%s.', P9Ql, uJjO)
raise A5pJ
except cQ7A as err:
S0MI.error('Failed to fetch l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3hO(YKHO):\n return YKHO.limit",
"def K3hO(YKHO):\n return YKHO._limit",
"def K3hO(YKHO):\n return YKHO._limit",
"def mxMD(*qIxc):\n return qIxc[0].Limit.LCLimit.lc_limit",
"def J_5G(YKHO):\n raise NotImplementedError('Limits are not available for Cloud Databases')",
"def G5s7(YKHO, q... | [
"0.6607065",
"0.6379157",
"0.6379157",
"0.6094501",
"0.6067294",
"0.60339046",
"0.60040474",
"0.5994278",
"0.5994278",
"0.5985502",
"0.5978674",
"0.59709644",
"0.5958785",
"0.5945581",
"0.59402275",
"0.58742934",
"0.587186",
"0.5862946",
"0.5860463",
"0.5860301",
"0.58583546"... | 0.85457164 | 0 |
Test string to list with default delimiter (comma). | def kDGp(YKHO):
LLrw(hLdi('a, b, c'), ['a', 'b', 'c']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDGp(YKHO):\n LLrw(hLdi('a, b, c'), ['a', 'b', 'c'])",
"def sbxN(YKHO):\n LLrw(hLdi(' a | b | c ', delimiter='|'), ['a', 'b', 'c'])",
"def sbxN(YKHO):\n LLrw(hLdi(' a | b | c ', delimiter='|'), ['a', 'b', 'c'])",
"def CD8v(Emd4, Ty9i: Union[List[str], str]) -> x1iM[str]:\n if isinstance(Ty9i,... | [
"0.7516786",
"0.73749596",
"0.73197794",
"0.7104217",
"0.70850724",
"0.69901824",
"0.69228685",
"0.6868293",
"0.6827386",
"0.68251467",
"0.68251467",
"0.68128663",
"0.6805993",
"0.6741072",
"0.6619719",
"0.6602993",
"0.65685004",
"0.6544581",
"0.65275055",
"0.65158194",
"0.65... | 0.7599828 | 0 |
Check to see if we created the 0001 frame of this file. | def ECXa(lpM_):
j1aU, bGrB = lpM_
return bool(Hy7s.path.exists(Hy7s.path.join(kmfe, j1aU + '-0030.jpg'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ahqu(YKHO):\n TPVt = bin(int(YKHO.packet_body[YKHO.reader], base=16))[2:].zfill(8)\n return TPVt[0:3] == '001'",
"def iruL(YKHO):\n nUeQ = GkAb(YKHO.get_encoder_path() + '.data-00000-of-00001')\n return nUeQ.exists()",
"def rW68(YKHO):\n if YKHO.currentFrame == []:\n return False\n ... | [
"0.6845341",
"0.6385996",
"0.62448496",
"0.6057301",
"0.58535653",
"0.5787386",
"0.57349885",
"0.57237864",
"0.56976765",
"0.56358933",
"0.5621559",
"0.559981",
"0.55927694",
"0.5521344",
"0.550883",
"0.5489131",
"0.5481525",
"0.54558146",
"0.5454623",
"0.54435945",
"0.543617... | 0.0 | -1 |
Return the state attributes. | def R1i3(YKHO):
o8Kj = {PlJk: v7XK, XwgO: YKHO.unique_id}
return o8Kj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO)... | [
"0.8953404",
"0.8953404",
"0.85239846",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.828... | 0.78084475 | 41 |
Convert uint8 numpy image array into [0,1] float image array | def Ekx3(q1Ev):
return q1Ev.astype(oyIN.float64) * qDAj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eFJY(Xn71: np.array):\n if Xn71.dtype == oyIN.float32:\n qmLP.warn('Image is already np.float32')\n return Xn71\n Xn71 = Xn71.astype(oyIN.float32) / 255\n return Xn71",
"def eFJY(Xn71: np.array):\n if Xn71.dtype == oyIN.float32:\n qmLP.warn('Image is already np.float32')\n ... | [
"0.84146804",
"0.84146804",
"0.7253339",
"0.7077252",
"0.7031203",
"0.70124435",
"0.7004611",
"0.69308674",
"0.6846737",
"0.6755497",
"0.67547464",
"0.66844153",
"0.66712826",
"0.6594761",
"0.65913326",
"0.65070504",
"0.64663315",
"0.64476335",
"0.6423584",
"0.6407224",
"0.63... | 0.75604707 | 2 |