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 |
|---|---|---|---|---|---|---|
Gets the system_api_version of this BundleVersionMetadata. The version of the system API that this bundle version was built against | def EjLm(YKHO):
return YKHO._system_api_version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def clva(YKHO):\n return YKHO._api_version",
"def clva(YKHO):\n return YKHO._api_version",
"def kaPv(YKHO):\n return YKHO.api_version",
"def Q2ji(YKHO):\n IJ4N, cbKy, Po4F = YKHO.client.config['api_version']\n return '%s.%s.%s' % (IJ4N, cbKy, Po4F)",
"def clva(YKHO) -> h8nf[str]:\n return... | [
"0.7444967",
"0.7402878",
"0.73288107",
"0.7326583",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
"0.7194403",
... | 0.8632691 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, WFXS):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8089204",
"0.8089204",
"0.8055265",
"0.7983358",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Test that mismatched inputs raise a ValueError exception. | def jBbQ():
K4sN.assert_raises(ValueError, Vwir, range(2), range(3)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S8I6(YKHO):\n YKHO.assertRaises(Exception, YKHO.validate, (3, 2, 8, 8), (4, 2, 5, 5), 'valid', input=Kt_s.dmatrix())\n YKHO.assertRaises(Exception, YKHO.validate, (3, 2, 8, 8), (4, 2, 5, 5), 'valid', filters=Kt_s.dvector())\n YKHO.assertRaises(Exception, YKHO.validate, (3, 2, 8, 8), (4, 2, 5, 5), 'val... | [
"0.76098806",
"0.7472543",
"0.73724145",
"0.7326687",
"0.7275428",
"0.7229716",
"0.71496904",
"0.7145529",
"0.7109386",
"0.70808893",
"0.70609236",
"0.70254517",
"0.7010932",
"0.6967671",
"0.69315004",
"0.69139",
"0.6889506",
"0.68809414",
"0.6880022",
"0.6878568",
"0.6843852... | 0.6581845 | 38 |
Perform a query operation on the table. Can specify filter_key (col name) and its value to be filtered. | def Zi_A(GTA_, ivAq=None, MGu9=None):
tyNF = nEDl.Table(GTA_)
if ivAq and MGu9:
__Dz = pe5E(ivAq).eq(MGu9)
geh0 = tyNF.query(KeyConditionExpression=__Dz)
else:
geh0 = tyNF.query()
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter():\n return _oME(NCls, vZVW)",
"def filter(YKHO, **qIxc):\n xDcj = hThZ.select('*')\n for H5ew, BWXx in qIxc.items():\n if '__' in H5ew:\n H5ew, khtY = H5ew.split('__')\n else:\n khtY = 'eq'\n if not H5ew in YKHO.schema:\n raise tiA6('Key ... | [
"0.6917118",
"0.65447927",
"0.62532765",
"0.6109888",
"0.5859692",
"0.585528",
"0.58517504",
"0.5815374",
"0.579017",
"0.5779572",
"0.5779572",
"0.5745922",
"0.5637053",
"0.5620694",
"0.558602",
"0.55833745",
"0.5561753",
"0.5533214",
"0.55292225",
"0.54796076",
"0.54634",
... | 0.76945084 | 0 |
Tests that a click returns a small bbox. | def npbA(YKHO):
YKHO.prepareTestCanvas()
S_JQ = WS0F(50, 15)
qLJL = YKHO.bucketFill.getClickBbox(S_JQ)
YIYi = artS(49.99850465, 14.99850465, 50.00149535, 15.00149535)
wr69 = 'Bounding box was incorrect. Received values %s Expected values %s' % (str('%s, %s, %s, %s' % (qLJL.xMinimum(), qLJL.yMinimum(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8wH(YKHO, tvqc):\n wzkt = ITS7.time() * 1000\n if YKHO.time - wzkt > 1000:\n return None\n if Ayfi(YKHO.x, tvqc.x, YKHO.y, tvqc.y) > YKHO.size:\n return False\n elif YKHO.time - wzkt > 500:\n return 50\n elif YKHO.time - wzkt > 200:\n return 100\n else:\n r... | [
"0.63942456",
"0.62798303",
"0.62417287",
"0.6092591",
"0.59464395",
"0.57955563",
"0.5743221",
"0.5691474",
"0.567109",
"0.5638329",
"0.5621989",
"0.5621793",
"0.55788696",
"0.55785525",
"0.5567176",
"0.5535327",
"0.54888535",
"0.54698867",
"0.54323786",
"0.5423435",
"0.5418... | 0.7296945 | 0 |
Converts quaternion (w in last place) to euler roll, pitch, yaw quaternion = [x, y, z, w] Bellow should be replaced when porting for ROS 2 Python tf_conversions is done. | def yrsR(YKHO, slpS):
WKvO = slpS.x
LVAh = slpS.y
epBp = slpS.z
yzQ0 = slpS.w
UH4d = 2 * (yzQ0 * WKvO + LVAh * epBp)
RqEy = 1 - 2 * (WKvO * WKvO + LVAh * LVAh)
rKSe = oyIN.arctan2(UH4d, RqEy)
_mrX = 2 * (yzQ0 * LVAh - epBp * WKvO)
H2HG = oyIN.arcsin(_mrX)
zEni = 2 * (yzQ0 * epBp ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yrsR(WKvO, LVAh, epBp, yzQ0):\n lGE9 = +2.0 * (yzQ0 * WKvO + LVAh * epBp)\n n2Q1 = +1.0 - 2.0 * (WKvO * WKvO + LVAh * LVAh)\n cDNu = epAf.atan2(lGE9, n2Q1)\n SpII = +2.0 * (yzQ0 * LVAh - epBp * WKvO)\n SpII = +1.0 if SpII > +1.0 else SpII\n SpII = -1.0 if SpII < -1.0 else SpII\n TC6u = epA... | [
"0.7667931",
"0.7634372",
"0.75958705",
"0.7562809",
"0.7554075",
"0.75178874",
"0.7305435",
"0.7304392",
"0.725026",
"0.7244478",
"0.7244478",
"0.72071797",
"0.71386635",
"0.7126469",
"0.7082506",
"0.7069661",
"0.70621",
"0.6943571",
"0.6837402",
"0.6833792",
"0.6807912",
... | 0.70269316 | 17 |
Plots the training and test data, and the associated error produced by a certain model. | def XyD0(cC56, sAoX, VJv0, H96n, C3ST, AxkD, UXqs):
assert isinstance(cC56, oyIN.ndarray)
assert isinstance(sAoX, oyIN.ndarray)
assert isinstance(VJv0, oyIN.ndarray)
assert isinstance(H96n, oyIN.ndarray)
assert isinstance(AxkD, (str, type(None))), 'Wrong Type: desired output file name must be a stri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U7dH(YKHO):\n QrM1.title('Prediction Error')\n QrM1.plot(YKHO.errors)\n QrM1.ylabel('MSE (Mean Squared Error)')\n QrM1.xlabel('Iteration')\n QrM1.show()",
"def luiq(N8L0, MdBm='Shallow Network, SGD, Batch Size = 10'):\n LZpg, MPlV = QrM1.subplots()\n WKvO = oyIN.arange(len(N8L0))\n MP... | [
"0.7723527",
"0.7649733",
"0.75653374",
"0.7439751",
"0.74290276",
"0.73577344",
"0.73402554",
"0.72749007",
"0.723029",
"0.7227402",
"0.7223185",
"0.7179483",
"0.7108062",
"0.70985985",
"0.7092843",
"0.7042836",
"0.7006909",
"0.6994837",
"0.6985129",
"0.6933574",
"0.6894656"... | 0.77155495 | 1 |
Combine the columns from an array of arrays into arrays themselves. | def bPLc(JosQ):
assert isinstance(JosQ, list), 'Input must be a list'
for YRbF in JosQ:
assert isinstance(YRbF, oyIN.ndarray), 'Each element in list must be a numpy ndarray'
euZ2 = len(JosQ[0])
for YRbF in range(1, len(JosQ)):
vC9B = len(JosQ[YRbF])
assert vC9B == euZ2, 'Array at... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VKE8(Sk_F):\n if isinstance(Sk_F[0], ht2j.Tensor):\n return ht2j.cat(Sk_F)\n if not isinstance(Sk_F[0], oyIN.ndarray):\n Sk_F = oyIN.asarray(Sk_F)\n return oyIN.concatenate(Sk_F)",
"def lHZ6(qw7D, WfCS=1):\n usx6 = qw7D.shape[0]\n GA74 = oyIN.empty((usx6, WfCS), dtype=oyIN.object... | [
"0.6336707",
"0.6295602",
"0.62792516",
"0.62483174",
"0.6243256",
"0.62142247",
"0.62014043",
"0.6126386",
"0.6063569",
"0.6039031",
"0.6023724",
"0.6001468",
"0.5991344",
"0.5988282",
"0.591313",
"0.5908789",
"0.59040743",
"0.5889101",
"0.5879778",
"0.58595914",
"0.58595544... | 0.705785 | 0 |
Divide continuous y_actual into discrete classes/bins. | def hW2n(ibJh, WJ23, jtTA):
assert max(ibJh) > WJ23, 'min_edge has to be smaller than maximum y_actual'
assert isinstance(ibJh, oyIN.ndarray), 'Input array must be a numpy ndarray.'
assert isinstance(WJ23, (int, float)), 'min_edge should be a float or an int.'
assert isinstance(jtTA, (int, float)), 'bin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MpCu(LVAh):\n kcwm, BWz1 = oyIN.unique(LVAh, return_counts=True)\n IFTS = BWz1 / oyIN.sum(BWz1)\n return (kcwm, BWz1, IFTS)",
"def gFE4(LVAh, Nhxk, Z1ME=False, gxEw=False):\n HipJ = len(Nhxk)\n if ~Z1ME:\n FlKN = oyIN.std(LVAh)\n Nhxk = oyIN.array(Nhxk) * FlKN\n kvWV = oyIN.ze... | [
"0.5875795",
"0.57360566",
"0.5415973",
"0.5392439",
"0.53776103",
"0.53216904",
"0.53037596",
"0.5298477",
"0.52812976",
"0.52684754",
"0.5243871",
"0.5196837",
"0.5187598",
"0.5136283",
"0.51233286",
"0.5079107",
"0.50521624",
"0.50027597",
"0.49977162",
"0.49945593",
"0.49... | 0.5899118 | 0 |
Onehot encoding of the categories y | def r3xW(LVAh, nZt5):
assert isinstance(LVAh, oyIN.ndarray), 'y must be a numpy ndarray'
assert isinstance(nZt5, int), 'num_class must be an int'
KLLm = oyIN.zeros((LVAh.shape[0], nZt5), dtype=oyIN.int8)
for d6pt, Emd4 in enumerate(LVAh):
KLLm[d6pt, int(Emd4)] = 1
return KLLm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HtgE(LVAh):\n return RHxJ(categories='auto', sparse=False).fit_transform(LVAh.reshape(LVAh.shape[0], 1))",
"def vzTG(LVAh):\n R_tG = oyIN.zeros((LVAh.shape[0], LVAh.max() - LVAh.min() + 1))\n for r845 in range(0, R_tG.shape[1]):\n R_tG[oyIN.where(LVAh == r845), r845] = 1\n return R_tG",
... | [
"0.8671377",
"0.85436434",
"0.84839106",
"0.8453375",
"0.845165",
"0.83928204",
"0.8326153",
"0.8225588",
"0.8147074",
"0.81149673",
"0.8096358",
"0.8093862",
"0.807086",
"0.802638",
"0.80242354",
"0.79495424",
"0.79462683",
"0.794366",
"0.7932847",
"0.79270613",
"0.7906792",... | 0.79116154 | 20 |
Returns the learning rate from optimizer. | def N5p_(K0do):
def tspZ(Y8eF, aMgO):
return K0do.lr
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkTt():\n return 1e-05",
"def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr",
"def NkTt(YKHO):\n GPtr = YKHO.config\n JQpF = LXsA.adjust_learning_rate(YKHO.optimizer, YKHO.epoch, GPtr['training']['learning_rate'], decay=GPtr['training']['lr_decay_rate'], step=GPtr['training']... | [
"0.79552567",
"0.786904",
"0.77423716",
"0.7657538",
"0.7548933",
"0.7548933",
"0.7414675",
"0.7388794",
"0.73810875",
"0.7378523",
"0.7377975",
"0.7377975",
"0.7310753",
"0.73048645",
"0.71629024",
"0.71409476",
"0.7140186",
"0.7132856",
"0.7122929",
"0.7115563",
"0.7108377"... | 0.73378587 | 12 |
initialize the linked list with a head | def FIMM(YKHO):
YKHO.head = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, sdCG=None):\n YKHO.head = sdCG",
"def FIMM(YKHO, sdCG: ListNode):\n YKHO.nodes = []\n while sdCG:\n YKHO.nodes.append(sdCG)\n sdCG = sdCG.next",
"def FIMM(YKHO, sdCG=None):\n YKHO.head = sdCG",
"def FIMM(YKHO, sdCG):\n YKHO.head = sdCG",
"def FIMM(YKHO, sdCG):\n ... | [
"0.79416037",
"0.78489876",
"0.78165245",
"0.7808905",
"0.7808905",
"0.7808905",
"0.7808905",
"0.7794664",
"0.7794664",
"0.7794664",
"0.7794664",
"0.7794664",
"0.7789348",
"0.7717144",
"0.7553293",
"0.7530354",
"0.7517689",
"0.75107497",
"0.7480946",
"0.7470325",
"0.7470325",... | 0.745069 | 33 |
place the node as the head of the linked list | def qIuc(YKHO, nPrm):
YKHO.head = ZkrF(data=nPrm, next=YKHO.head) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZi3(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.head = Msxl(nPrm)\n else:\n ycBG = YKHO.head\n YKHO.head = Msxl(nPrm)\n YKHO.head.next = ycBG",
"def rMGb(YKHO, ndXP):\n ndXP.next = YKHO.head\n YKHO.head = ndXP",
"def _m17(YKHO, nPrm):\n Q6kx = o7DN(nPrm)\n if ... | [
"0.77859837",
"0.76070863",
"0.75978833",
"0.75607127",
"0.74936455",
"0.7453167",
"0.72986794",
"0.7298269",
"0.7233087",
"0.721493",
"0.7213593",
"0.7213593",
"0.7213593",
"0.7213593",
"0.7213593",
"0.7170956",
"0.7164141",
"0.71614397",
"0.7085516",
"0.70735955",
"0.707029... | 0.70661294 | 21 |
inserting the element at the end of the list if head is not present then we want to insert the element at the head . else we have to iterate till the end and append the element in he end | def SStx(YKHO, nPrm):
if not YKHO.head:
YKHO.head = ZkrF(data=nPrm, next=None)
return
jvSB = YKHO.head
while jvSB.next:
jvSB = jvSB.next
jvSB.next = ZkrF(data=nPrm, next=None)
return jvSB.next | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Foq2(YKHO, tTpl):\n if YKHO.is_empty():\n print('As you do not have any start node yet, the given element will be a start node.')\n YKHO._first_insert(tTpl)\n return\n try:\n YKHO._insert_between(tTpl, YKHO._start._prev, YKHO._start)\n except:\n print('insertion unsu... | [
"0.6960841",
"0.68912464",
"0.6837521",
"0.6786558",
"0.6775292",
"0.65085393",
"0.6497608",
"0.64862406",
"0.6457636",
"0.64334136",
"0.6427756",
"0.6366582",
"0.63004416",
"0.6291906",
"0.6276477",
"0.6266562",
"0.62611985",
"0.62383777",
"0.61720765",
"0.61631733",
"0.6153... | 0.60773724 | 26 |
inserting a new element at the begining of the list | def qIuc(YKHO, nPrm):
ac0X = SOVm(data=nPrm, next=YKHO.head)
if YKHO.head:
YKHO.head.prev = ac0X
YKHO.head = ac0X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zg4K(hcfj, d6pt, RE_V):\n return hcfj.insert(d6pt, RE_V)",
"def qIuc(YKHO, ZfUD: Any):\n YKHO.insert(0, ZfUD)",
"def mOHz(YKHO, ZfUD):\n if YKHO.is_empty():\n YKHO._first = ZfUD\n YKHO._rest = hD6b([None])\n else:\n S06t = hD6b([YKHO._first])\n S06t._rest = YKHO._res... | [
"0.7689262",
"0.7453939",
"0.7389664",
"0.7360488",
"0.73460215",
"0.73097533",
"0.72898185",
"0.71789604",
"0.716782",
"0.7158661",
"0.7136484",
"0.7029361",
"0.70255834",
"0.7019971",
"0.70163655",
"0.7006856",
"0.7000093",
"0.6959969",
"0.6932877",
"0.6922844",
"0.69133806... | 0.6210187 | 94 |
insert the new element at the end of the list | def SStx(YKHO, nPrm):
if not YKHO.head:
KhvA = SOVm(data=nPrm)
YKHO.head = KhvA
return
jvSB = YKHO.head
while jvSB.next is not None:
jvSB = jvSB.next
Esd_ = SOVm(data=nPrm)
jvSB.next = Esd_
Esd_.previous = jvSB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, LihS):\n YKHO.add_last(LihS)",
"def zg4K(hcfj, d6pt, RE_V):\n return hcfj.insert(d6pt, RE_V)",
"def _jXH(YKHO, KhvA):\n YKHO.ll.insert_first(KhvA)",
"def _jXH(YKHO, ZfUD):\n YKHO.list.prepend(ZfUD)",
"def tj6L(YKHO, tTpl):\n YKHO._insert_between(tTpl, YKHO._tail._prev, YKHO._t... | [
"0.7316215",
"0.7231735",
"0.7138381",
"0.70537686",
"0.6945183",
"0.6928864",
"0.6911495",
"0.69073564",
"0.6896698",
"0.6847086",
"0.679995",
"0.6745507",
"0.67044973",
"0.6654654",
"0.66505426",
"0.66459024",
"0.66204375",
"0.6615489",
"0.66046184",
"0.6601483",
"0.6601483... | 0.0 | -1 |
List the courses that the user has enrolled. | def DAiO(sDlr):
av0h('You can access %d courses' % len(sDlr))
for YRbF, GQfX in enumerate(sDlr, 1):
av0h('%d - [%s] - %s' % (YRbF, GQfX.state, GQfX.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tM1p(YKHO, NtEF: str, eOtH: str) -> x1iM[cuzp[str, object]]:\n if not YKHO.validate(username=NtEF, token=eOtH, check_privilege='instructor'):\n raise RuntimeError('User not verified!')\n PObu = YKHO.get_uid(username=NtEF)\n N1p7 = YKHO._db_connection.cursor()\n N1p7.execute('\\n S... | [
"0.7631263",
"0.7055115",
"0.70228314",
"0.7006284",
"0.7005273",
"0.69918746",
"0.6961836",
"0.69362885",
"0.69360477",
"0.6880938",
"0.6861267",
"0.682425",
"0.6730766",
"0.6681261",
"0.6656965",
"0.6648978",
"0.65955794",
"0.6567497",
"0.65440357",
"0.65380585",
"0.6519788... | 0.5933253 | 42 |
Return the basename for the corresponding filename_prefix. | def yFjF(BrK6, dISJ):
iumf = Hy7s.listdir(BrK6)
for mWFP in iumf:
if mWFP.startswith(dISJ):
aPr_, YBcr = Hy7s.path.splitext(mWFP)
return aPr_
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPr_(YKHO):\n return YKHO._getbyspec('basename')[0]",
"def aPr_(YKHO):\n return sYT0(YKHO.filename)",
"def yFjF(BrK6, dISJ):\n iumf = Hy7s.listdir(BrK6)\n VOio = dISJ\n for mWFP in iumf:\n if mWFP.startswith(dISJ):\n aPr_, YBcr = Hy7s.path.splitext(mWFP)\n return... | [
"0.74310637",
"0.7391377",
"0.7389686",
"0.7338109",
"0.7272586",
"0.7214509",
"0.7133712",
"0.71196115",
"0.7058001",
"0.7054978",
"0.7045096",
"0.69853073",
"0.6981064",
"0.6979379",
"0.6950083",
"0.6946026",
"0.68949723",
"0.68884635",
"0.68859386",
"0.68739104",
"0.686093... | 0.71237016 | 7 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
QrM1.xticks(wIWT, KndY, rotation=45)
QrM1.yticks(wIWT, KndY)
print('Confusion matrix')
print... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194366",
"0.8095442",
"0.8029135",
"0.8019134",
"0.7993755",
"0.7991176",
"0.79808146",
"0.79755133",
"0.79609716",
"0.7956584",
"0.79375756",
"0.79346216",
"0.79343396",
"0.7931212",
"0.7926087",
"0.7924503",
"0.79228765",
"0.79227114",
"0.7921956",
"0.79178125",
"0.7915... | 0.7923946 | 16 |
Load a pickled dictionary. | def PUOC(rAod):
with open(rAod, 'rb') as eHNT:
Csk6 = t2lc.load(eHNT)
print(f'SidechainNet was loaded from {rAod}.')
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mUCP(VqRE):\n with open(VqRE, 'rb') as nUeQ:\n return t2lc.load(nUeQ)",
"def AXOg(YKHO, vj_J):\n try:\n YKHO.v_protocol = vj_J.pop(zT_u.PROTOCOL)\n except KeyError:\n ChRH = next(vj_J.values())\n YKHO.v_protocol = zT_u._get_protocol(ChRH)\n for H5ew in vj_J:\n w... | [
"0.744936",
"0.7314949",
"0.7302617",
"0.71504724",
"0.6997208",
"0.69032377",
"0.6895748",
"0.68796283",
"0.6853177",
"0.6755191",
"0.6727787",
"0.67276263",
"0.6714951",
"0.669329",
"0.6685709",
"0.66768354",
"0.66553706",
"0.6612314",
"0.65986735",
"0.6590711",
"0.6583909"... | 0.7291537 | 3 |
Load and return the specified SidechainNet dataset as a dictionary or DataLoaders. This function flexibly allows the user to load SidechainNet in a format that is most convenient to them. The user can specify which version and "thinning" of the dataset to load, and whether or not they would like the data prepared as a ... | def tyeH(gNmd=12, mNkb=30, MBpS='./sidechainnet_data', AqUQ=False, QNlv=None, W2XX=True, QxcP=None, Ep8u=32, RoVy=None, KK7e=True, I7Gy=2, QU86=False, oAjR=0.2, sVOs=False, _I4a=False, fkLN=None, P_zz=False):
if fkLN:
rAod = fkLN
else:
rAod = nFyu(gNmd, mNkb, MBpS)
if not rAod:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RuZU(m5Tx: Iterable[dict], lY9n: Callable, bBE0: Callable=None, RFg8=None, QxcP: Callable=s9l_, Ep8u: int=32, I7Gy: int=4, hXNa: bool=False, lM6R: bool=False):\n from catalyst.data.dataset import ListDataset\n __n6 = ListDataset(list_data=m5Tx, open_fn=lY9n, dict_transform=bBE0)\n DWkG = ht2j.utils.da... | [
"0.60510147",
"0.60058916",
"0.59642565",
"0.57627064",
"0.5720478",
"0.5699642",
"0.5690512",
"0.56817615",
"0.5618097",
"0.556779",
"0.5557263",
"0.55352026",
"0.5505538",
"0.55018103",
"0.54849553",
"0.5482737",
"0.5477257",
"0.5460679",
"0.5456197",
"0.5437535",
"0.541064... | 0.6639369 | 0 |
Return all the addons installed for this application. | def NMoC(YKHO, QePW, B7c0, HwPC):
si3r = aEKu.objects.get(app__app_id=B7c0, display_name=HwPC, state__in=GoGU)
return YKHO.respond(si3r.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_addons(YKHO, fnEF=True):\n try:\n Aofo = await YKHO.send_command(T9pZ, method='get')\n _Ypp = Aofo.get('data', {}).get('addons')\n if _Ypp is None:\n raise B4c8('No addons were returned.')\n if fnEF:\n return [si3r for si3r in _Ypp if si3r['install... | [
"0.731581",
"0.69772774",
"0.6963094",
"0.6857461",
"0.673829",
"0.6702672",
"0.6664763",
"0.65831494",
"0.6386265",
"0.6384737",
"0.6378459",
"0.6354611",
"0.63481957",
"0.62887484",
"0.6175771",
"0.61618954",
"0.6119122",
"0.60896313",
"0.6082011",
"0.6047446",
"0.60394895"... | 0.0 | -1 |
Return all the addons installed for this application. | def PTpj(YKHO, QePW, B7c0, HwPC):
si3r = aEKu.objects.get(app__app_id=B7c0, display_name=HwPC)
kT1P = AncI(si3r.provider_name)
Aofo = kT1P.deprovision(si3r.provider_uuid)
p_z1 = mZMB()
with p_z1.transition(si3r.id, L16T.deprovision_success):
pass
p_z1.start_task(si3r.id)
return YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_addons(YKHO, fnEF=True):\n try:\n Aofo = await YKHO.send_command(T9pZ, method='get')\n _Ypp = Aofo.get('data', {}).get('addons')\n if _Ypp is None:\n raise B4c8('No addons were returned.')\n if fnEF:\n return [si3r for si3r in _Ypp if si3r['install... | [
"0.73145586",
"0.69757617",
"0.6962982",
"0.6856843",
"0.6737163",
"0.67015314",
"0.66634744",
"0.6582195",
"0.6385097",
"0.6384374",
"0.6378237",
"0.63543165",
"0.63477063",
"0.62876606",
"0.61743927",
"0.61627185",
"0.6118853",
"0.60891545",
"0.6080717",
"0.6047478",
"0.603... | 0.0 | -1 |
Renders a simple html page with some basic css. In addition it places a pixelimage in the header and puts a tracking cookie in the client browser. | def Oknt(YKHO, leAC):
YKHO.send_response(200)
YKHO.send_header('Content-Type', 'text/html')
zatQ = YKHO.get_cookie()
YKHO.end_headers()
_R2e = '<html><head>'
_R2e += YKHO.read_css()
_R2e += '<title>{}</title>'.format(leAC)
_R2e += YKHO.place_pixel_image(zatQ.output().split('=', 1)[1]) + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8mS():\n return TvZl('index.html')",
"def Ozko():\n return TvZl('index.html')",
"def OsD3():\n return TvZl('index.html')",
"def hXw_():\n return TvZl('index.html')",
"def NMoC(YKHO):\n rPXJ = Byma.JINJA_ENVIRONMENT.get_template('homepage.html')\n YKHO.response.headers['Content-Type']... | [
"0.6390018",
"0.6143895",
"0.6052742",
"0.60006654",
"0.598944",
"0.595025",
"0.59399104",
"0.5926091",
"0.59220827",
"0.59041035",
"0.5892484",
"0.58814085",
"0.5879925",
"0.5879925",
"0.5879925",
"0.58787805",
"0.5861115",
"0.5861115",
"0.58610606",
"0.5845353",
"0.58436215... | 0.75484437 | 0 |
Adds other to self | def FOdN(YKHO, Elif):
if isinstance(Elif, (int, float, complex, kteF)) and (not isinstance(Elif, bool)):
return aLMY([[XP5J + Elif for XP5J in rdlD] for rdlD in YKHO.data])
elif isinstance(Elif, aLMY):
if YKHO.n_cols == Elif.n_cols and YKHO.n_rows == Elif.n_rows:
return aLMY([[YKHO.d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif):\n raise NotImplementedError('Implement this if needed')",
"def CaoY(YKHO, Elif):\n YKHO.MergeWith(Elif)\n return YKHO",
"def H2v5(YKHO, Elif):\n YKHO._check_item(Elif)\n YKHO._set.add(Elif)",
"def Qw6N(YKHO, Elif):\n raise NotImplementedError('{} does not support addit... | [
"0.8405552",
"0.83828807",
"0.827689",
"0.8266176",
"0.82576275",
"0.81789166",
"0.8172069",
"0.811267",
"0.80922073",
"0.80922073",
"0.8088367",
"0.8067727",
"0.8042112",
"0.80188924",
"0.8017595",
"0.7993452",
"0.7993452",
"0.79734707",
"0.78302675",
"0.7793163",
"0.7793163... | 0.0 | -1 |
Validate a phone number | def SR9Q(BWXx, m59W='VN'):
tO9_ = bGrB('Invalid phone number format.')
try:
bWtk = MBR5.parse(BWXx, m59W)
except:
raise sUXu(tO9_)
if not MBR5.is_valid_number_for_region(bWtk, m59W):
raise sUXu(tO9_)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SR9Q(BWXx):\n try:\n epBp = MBR5.parse(BWXx, None)\n except MBR5.NumberParseException:\n raise H6V6.ValidationError('Enter a valid phone number.')\n if not MBR5.is_valid_number(epBp):\n raise H6V6.ValidationError('Enter a valid phone number.')",
"def iq36(wEf2):\n kUBT = ZbWC... | [
"0.86364424",
"0.8494945",
"0.8441424",
"0.83460087",
"0.8295371",
"0.82576275",
"0.8218727",
"0.8209212",
"0.81748736",
"0.804384",
"0.8017404",
"0.7982516",
"0.79191744",
"0.7897664",
"0.7861812",
"0.7798445",
"0.77693796",
"0.76992404",
"0.76975477",
"0.7651694",
"0.764195... | 0.78855497 | 14 |
Copy a dimension from nc1 to nc2. | def BysB(qQQq, VehX, mWFP, XSoh):
if mWFP == XSoh:
return
MFrU = qQQq.dimensions[mWFP]
fRuM = VehX.createDimension(mWFP, len(MFrU)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oFhL(YKHO):\n u7RQ = YKHO.offset1\n KQB2 = YKHO.offset2\n Kt_s = YKHO.transfer_shape\n bo34.info('Testing D->D rectangular copy with (N1_y, N1_x) = %s,\\n (N2_y, N2_x) = %s:\\n array2[%d:%d, %d:%d] = array1[%d:%d, %d:%d]' % (str(YKHO.shape1), str(YKHO.shape2), ... | [
"0.6103899",
"0.5860351",
"0.56982964",
"0.56534034",
"0.541844",
"0.5284578",
"0.5276318",
"0.5212222",
"0.5148384",
"0.5120476",
"0.510933",
"0.5095391",
"0.5077345",
"0.50753784",
"0.5068038",
"0.50577754",
"0.5047619",
"0.50472707",
"0.5026026",
"0.50068355",
"0.49781066"... | 0.8276057 | 0 |
Checks if a thing is an array or maybe a number | def PFXX(jzdc):
try:
ROpF = jzdc.shape
return len(ROpF) >= 1
except AttributeError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFXX(wEf2):\n return isinstance(wEf2, tuple) or isinstance(wEf2, dict) or isinstance(wEf2, list)",
"def PFXX(a1PO):\n return isinstance(a1PO, jZ4I.Array)",
"def c8Fz(YEnM):\n return isinstance(YEnM, (list, tuple))",
"def yz_j(nPrm):\n return len(nPrm) and oyIN.issubdtype(I4W5(nPrm).dtype, oyI... | [
"0.7517828",
"0.72538084",
"0.7238563",
"0.7040829",
"0.69015574",
"0.6868806",
"0.6806678",
"0.6751605",
"0.67312884",
"0.6625751",
"0.66252357",
"0.65444046",
"0.6516574",
"0.6500458",
"0.64570844",
"0.6453265",
"0.636747",
"0.6280608",
"0.62688416",
"0.6182129",
"0.6179207... | 0.6364077 | 17 |
Set up the test data used in the specific tests | def FCbF(YKHO):
super().setUp()
YKHO.client = i9zE()
YKHO.password = 'abc'
YKHO.student = NqOl.create(username='student', email='student@test.com', password=YKHO.password)
YKHO.student2 = NqOl.create(username='student2', email='student2@test.com', password=YKHO.password)
YKHO.test_survey_name = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.test_data_path = 'testing/test_data/'",
"def izSt(Emd4):\n BJsk.initialize_empty_volunteer()",
"def FCbF(YKHO):\n YKHO.dataset = eis1()",
"def izSt(Emd4):\n tOFR.run()",
"def izSt(Emd4):\n tOFR.run()",
"def izSt(Emd4):\n tOFR.run()",
"def izSt(Emd4):\n tOFR.r... | [
"0.81202143",
"0.8055535",
"0.8018625",
"0.80140793",
"0.80140793",
"0.80140793",
"0.80140793",
"0.7673785",
"0.7670255",
"0.7638416",
"0.75666314",
"0.7563694",
"0.75613576",
"0.75568604",
"0.7531407",
"0.7518274",
"0.749713",
"0.74606305",
"0.7458917",
"0.7433875",
"0.74277... | 0.0 | -1 |
returns number of pairs in a sequence seq. which equals to sum of arphmetic progression (n1)...1 where n is length of seq | def bwoX(Q6uT):
exwG = len(Q6uT)
return int(exwG * (exwG - 1) / 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gjrr(JmFG):\n kgDL = 0\n for exwG in JmFG:\n kgDL += 1\n G1Hx = 1\n while G1Hx * (G1Hx - 1) != kgDL * 2:\n G1Hx += 1\n return G1Hx",
"def wF7J(YKHO, QTBn):\n kgDL = 0\n for YRbF in range(0, len(QTBn), 2):\n if QTBn[YRbF] == 1 and QTBn[YRbF + 1] == 1:\n kgD... | [
"0.73527473",
"0.7297841",
"0.7236932",
"0.6532151",
"0.6451968",
"0.63941336",
"0.63623786",
"0.6356894",
"0.6215435",
"0.62129545",
"0.6183038",
"0.6156908",
"0.6087411",
"0.6072769",
"0.60038096",
"0.59933627",
"0.59892863",
"0.59744585",
"0.5952584",
"0.5931359",
"0.59304... | 0.93724173 | 0 |
Returns torch.utils.data.DataLoader for custom coco dataset. | def rDAf(i0XC, N66D, CtWL, y7GR, Ep8u=100, hXNa=True, I7Gy=2):
tgCD = mQhb(i0XC, N66D, CtWL)
zQKy = ht2j.utils.data.DataLoader(dataset=tgCD, batch_size=Ep8u, shuffle=hXNa, pin_memory=True, collate_fn=QxcP)
return zQKy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v30Z(YKHO) -> pVAc:\n hxDW = pVAc(YKHO.dataset, batch_size=1)\n return hxDW",
"def RuZU(tk5Y, pmON, w4ja, SZFh, Ep8u, hXNa, I7Gy):\n mkHn = YSC3(root=tk5Y, csv=pmON, vocab_concept=w4ja, transform=SZFh)\n zQKy = ht2j.utils.data.DataLoader(dataset=mkHn, batch_size=Ep8u, shuffle=hXNa, num_workers=I7... | [
"0.706697",
"0.67358375",
"0.66989386",
"0.6609966",
"0.6598338",
"0.64210665",
"0.6350301",
"0.631162",
"0.62589985",
"0.6243968",
"0.6240935",
"0.6180331",
"0.6157964",
"0.6151057",
"0.613919",
"0.61267656",
"0.61259216",
"0.60921896",
"0.6081883",
"0.6079314",
"0.60172963"... | 0.6307879 | 8 |
Update Gaussian parameters with diagonal covariance | def WuOS(EcVT, s6GH, rgTr=5.0):
ywwl, lWPh = EcVT.shape
E3D9 = s6GH.shape[1]
B9EC = oyIN.zeros((E3D9, lWPh))
QYVD = oyIN.zeros((E3D9, lWPh))
KMvS = oyIN.exp(s6GH)
for r8hN in range(E3D9):
B9EC[r8hN] = oyIN.sum(KMvS[:, r8hN].reshape(-1, 1) * EcVT, axis=0) / oyIN.sum(KMvS[:, r8hN])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ioae(YKHO):\n raise RuntimeError('Internal cosmosis error in SingleValueGaussianLikelihood')",
"def Ioae(YKHO):\n raise RuntimeError('Your Gaussian covariance code needs to over-ride the build_covariance method so it knows how to load the data covariance (or set constant_covariance=False and over-ride ... | [
"0.6520932",
"0.6244814",
"0.6132422",
"0.6097101",
"0.5980771",
"0.59680223",
"0.5890005",
"0.58773696",
"0.5821621",
"0.5801322",
"0.579809",
"0.5795447",
"0.57706726",
"0.5733653",
"0.573118",
"0.57129925",
"0.5638596",
"0.5636483",
"0.5631603",
"0.5613267",
"0.56101966",
... | 0.0 | -1 |
Creates and places the main frames and labels of the viewer. | def JYzg(YKHO):
YKHO.p2_frame_list = on8l.Frame(YKHO.list_frame, borderwidth=2, relief='groove')
YKHO.p2_label_info = R08O.Label(YKHO.p2_frame_list, text=YKHO.lang.VP_PAC_ID, font=uIN8)
YKHO.p2_label_info.pack()
jnIs = on8l.Scrollbar(YKHO.p2_frame_list)
jnIs.pack(side=on8l.RIGHT, fill=on8l.Y)
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HE6r(YKHO):\n if not hasattr(YKHO, 'frame_viewer1'):\n YKHO.frame_viewer1 = FzR0.FrameViewer()\n YKHO.frame_viewer1.setWindowTitle('Frame viewer #1')\n YKHO.frame_viewer1.setWindowFlags(uaAZ.WindowStaysOnTopHint)\n if YKHO.frame_viewer1_mem_geometry:\n YKHO.frame_viewe... | [
"0.70081437",
"0.6935744",
"0.6563822",
"0.65289366",
"0.6500408",
"0.6460954",
"0.6371969",
"0.6363094",
"0.63221115",
"0.6304854",
"0.6292779",
"0.6283935",
"0.6282174",
"0.6280685",
"0.6275214",
"0.625353",
"0.6249344",
"0.62423205",
"0.6210394",
"0.61956865",
"0.61352533"... | 0.0 | -1 |
Close the connection now. | def DDI8(YKHO):
YKHO.closed = True
for N1p7 in YKHO.cursors:
try:
N1p7.close()
except Bx6I.Error:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngVb(YKHO):\n YKHO._connection.close()\n print('Closed connection....')",
"def ngVb(YKHO):\n YKHO.conn.close()",
"def ngVb(YKHO):\n YKHO.connection.close()",
"def ngVb(YKHO):\n YKHO.connection.close()",
"def DDI8(YKHO):\n YKHO._connection.close()",
"def ngVb(YKHO):\n YKHO._conn.c... | [
"0.8491097",
"0.844666",
"0.842315",
"0.842315",
"0.8420109",
"0.84166676",
"0.8409664",
"0.8401634",
"0.8401634",
"0.8401634",
"0.8401634",
"0.8401634",
"0.8401634",
"0.8401634",
"0.8395791",
"0.8388887",
"0.8372228",
"0.83681434",
"0.8341415",
"0.83291346",
"0.8326645",
"... | 0.0 | -1 |
Get the front element. | def T7C_(YKHO):
print(YKHO.a, YKHO.b)
if YKHO.a:
return YKHO.a[0]
return YKHO.b[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass",
"def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1",
"def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None",
"def vYJ5(YKHO):\n if YKHO.items:\n r... | [
"0.82009244",
"0.79261875",
"0.7852642",
"0.7791182",
"0.77886623",
"0.75723046",
"0.752337",
"0.7510604",
"0.7478953",
"0.7379256",
"0.7379256",
"0.734284",
"0.7323573",
"0.7320296",
"0.7291721",
"0.72772557",
"0.7269801",
"0.72657627",
"0.7253295",
"0.72355044",
"0.72213495... | 0.0 | -1 |
Returns whether the queue is empty. | def lsmZ(YKHO):
print(YKHO.a, YKHO.b)
return not YKHO.a and (not YKHO.b) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return not YKHO._queue"... | [
"0.9270249",
"0.92506766",
"0.923635",
"0.923635",
"0.9155843",
"0.9098441",
"0.9095006",
"0.90922606",
"0.90731245",
"0.9053733",
"0.89205354",
"0.89137155",
"0.8877591",
"0.88436323",
"0.88436323",
"0.8835949",
"0.88038146",
"0.8758203",
"0.87577534",
"0.87310195",
"0.86462... | 0.0 | -1 |
Return the egg path of the module. Must be redefined in server class. Used to find alembic migration scripts. | def oflw(YKHO):
try:
qKJ5 = ISnw('janitoo_nut')
return qKJ5.__file__
except AttributeError:
return 'src-nut/config' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iRa(YKHO):\n return YKHO.full_path() + '/go.mod'",
"def H5Mn():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))",
"def PNOv(YKHO, mWFP):\n return Hy7s.path.join(YKHO.modulesDir, mWFP)",
"def MJH2():\n return Hy7s.path.dirname(QMSQ(xAKo, HwRy.getfilesystemencoding()))",
"def MJH2(yR_P)... | [
"0.71504897",
"0.67346203",
"0.67230743",
"0.66746724",
"0.66235334",
"0.65865576",
"0.65578735",
"0.65162206",
"0.6423549",
"0.6371399",
"0.6334599",
"0.6327907",
"0.62229806",
"0.6210366",
"0.61498797",
"0.6145402",
"0.6142044",
"0.6131555",
"0.61180747",
"0.609622",
"0.607... | 0.6979709 | 1 |
Return ciphertext byte string containing Header|IV|Ciph|Sig. | def DVha(YKHO, nPrm):
nPrm = YKHO.__Pad(nPrm)
hTTD = gnPz.RandBytes(YKHO.block_size)
ydkA = K3pX.new(YKHO.key_bytes, K3pX.MODE_CBC, hTTD).encrypt(nPrm)
dbD3 = YKHO.Header() + hTTD + ydkA
LCjR = YKHO.hmac_key.Sign(dbD3)
return dbD3 + LCjR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMMy(YKHO):\n return YKHO.iv + YKHO.ciphertext",
"def ySJo(YKHO):\n return leDs(YKHO.cipherblock['ciphertext'])",
"def Q7HW(YKHO, khpf=True):\n if khpf and (not YKHO.__is_obfuscated):\n YKHO.obfuscate()\n return YKHO.__ciphertext",
"def zACB(H5ew):\n G1Hx = (H5ew[0] ^ H5ew[4], H5ew[... | [
"0.67226404",
"0.66454685",
"0.61130905",
"0.5878112",
"0.5861873",
"0.58587164",
"0.57964534",
"0.57710576",
"0.5683404",
"0.5601819",
"0.55982846",
"0.55982846",
"0.55907506",
"0.55756044",
"0.5562725",
"0.55533373",
"0.5516319",
"0.55025405",
"0.54746825",
"0.5432048",
"0.... | 0.55983573 | 10 |
Return raw byte string of signature on the message. | def uF_g(YKHO, tO9_):
return W7gX.new(YKHO.key_bytes, tO9_, B2KD).digest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWdc(YKHO, Ol8d):\n if YKHO.private_key:\n if isinstance(Ol8d, str):\n jShR = Ol8d.encode('utf-8')\n else:\n raise TypeError('message must be a string.')\n aadv = YKHO.private_key.sign(jShR).to_base64()\n return aadv\n else:\n return None",
"def ... | [
"0.7263324",
"0.7220175",
"0.7114331",
"0.70867014",
"0.6996299",
"0.6943845",
"0.69089293",
"0.6905976",
"0.6871449",
"0.68423533",
"0.683805",
"0.683805",
"0.683805",
"0.68136364",
"0.6779988",
"0.67471147",
"0.6739992",
"0.67395",
"0.67135775",
"0.66955715",
"0.6690904",
... | 0.62563264 | 44 |
Return True if the signature corresponds to the message. | def mIDk(YKHO, tO9_, LCjR):
kY3x = YKHO.Sign(tO9_)
if len(LCjR) != len(kY3x):
return False
Aofo = 0
for WKvO, LVAh in zip(kY3x, LCjR):
Aofo |= ord(WKvO) ^ ord(LVAh)
return Aofo == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qutR(YKHO, Ol8d, aadv):\n try:\n YKHO._pk.verify(aadv.bytes, Ol8d)\n return True\n except JvZl:\n return False",
"async def verify_signature(YKHO, Ol8d: BasePendingMessage) -> bool:\n if Ol8d.signature is None:\n S0MI.warning(\"'%s': missing signature.\", Ol8d.item_hash)\... | [
"0.7866142",
"0.78531224",
"0.73745686",
"0.7371476",
"0.7331748",
"0.7254607",
"0.7248216",
"0.7226003",
"0.7141111",
"0.7071093",
"0.70532674",
"0.6999354",
"0.69937575",
"0.69493365",
"0.68184286",
"0.68102866",
"0.67925686",
"0.6784461",
"0.67737865",
"0.67622554",
"0.670... | 0.616711 | 48 |
Return raw byte string of signature on the message. | def uF_g(YKHO, tO9_):
G1Hx = tuKI.SystemRandom().randint(2, YKHO.key.q - 1)
Mkmy, KCHu = YKHO.key.sign(gnPz.Hash(tO9_), G1Hx)
return gnPz.MakeDsaSig(Mkmy, KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWdc(YKHO, Ol8d):\n if YKHO.private_key:\n if isinstance(Ol8d, str):\n jShR = Ol8d.encode('utf-8')\n else:\n raise TypeError('message must be a string.')\n aadv = YKHO.private_key.sign(jShR).to_base64()\n return aadv\n else:\n return None",
"def ... | [
"0.7263324",
"0.7220175",
"0.7114331",
"0.70867014",
"0.6996299",
"0.6943845",
"0.69089293",
"0.6905976",
"0.6871449",
"0.68423533",
"0.683805",
"0.683805",
"0.683805",
"0.68136364",
"0.6779988",
"0.67471147",
"0.6739992",
"0.67395",
"0.67135775",
"0.66955715",
"0.6690904",
... | 0.5945893 | 92 |
Return True if the signature corresponds to the message. | def mIDk(YKHO, tO9_, wEsz):
try:
Mkmy, KCHu = gnPz.ParseDsaSig(wEsz)
return YKHO.key.verify(gnPz.Hash(tO9_), (Mkmy, KCHu))
except UAju.KeyczarError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qutR(YKHO, Ol8d, aadv):\n try:\n YKHO._pk.verify(aadv.bytes, Ol8d)\n return True\n except JvZl:\n return False",
"async def verify_signature(YKHO, Ol8d: BasePendingMessage) -> bool:\n if Ol8d.signature is None:\n S0MI.warning(\"'%s': missing signature.\", Ol8d.item_hash)\... | [
"0.7865884",
"0.78531116",
"0.7376482",
"0.73737025",
"0.7330545",
"0.7254905",
"0.72266763",
"0.7141309",
"0.70713574",
"0.70529634",
"0.7001385",
"0.6993236",
"0.69511",
"0.6819011",
"0.68124074",
"0.67931896",
"0.67871815",
"0.6776881",
"0.67636055",
"0.67069787",
"0.67024... | 0.7248867 | 6 |
Return a raw byte string of the ciphertext in the form Header|Ciph. | def DVha(YKHO, nPrm):
nPrm = YKHO.__Encode(nPrm)
ydkA = YKHO.key.encrypt(nPrm, None)[0]
return YKHO.Header() + ydkA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ySJo(YKHO):\n return leDs(YKHO.cipherblock['ciphertext'])",
"def tMMy(YKHO):\n return YKHO.iv + YKHO.ciphertext",
"def Q7HW(YKHO, khpf=True):\n if khpf and (not YKHO.__is_obfuscated):\n YKHO.obfuscate()\n return YKHO.__ciphertext",
"def m6Me(YKHO) -> bytes:\n return bytes(YKHO._veri... | [
"0.67029226",
"0.6500447",
"0.6139295",
"0.61347026",
"0.60735536",
"0.60735536",
"0.59915143",
"0.5961482",
"0.59423834",
"0.59360045",
"0.5888082",
"0.587244",
"0.5855291",
"0.58021283",
"0.5783862",
"0.5768904",
"0.5765662",
"0.5745862",
"0.5742264",
"0.5728551",
"0.570613... | 0.61006653 | 4 |
Return True if the signature corresponds to the message. | def mIDk(YKHO, tO9_, wEsz):
try:
return YKHO.key.verify(gnPz.MakeEmsaMessage(tO9_, YKHO.size), (gnPz.BytesToLong(wEsz),))
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qutR(YKHO, Ol8d, aadv):\n try:\n YKHO._pk.verify(aadv.bytes, Ol8d)\n return True\n except JvZl:\n return False",
"async def verify_signature(YKHO, Ol8d: BasePendingMessage) -> bool:\n if Ol8d.signature is None:\n S0MI.warning(\"'%s': missing signature.\", Ol8d.item_hash)\... | [
"0.7866142",
"0.78531224",
"0.73745686",
"0.7371476",
"0.7331748",
"0.7254607",
"0.7248216",
"0.7226003",
"0.7141111",
"0.7071093",
"0.70532674",
"0.6999354",
"0.69937575",
"0.69493365",
"0.68102866",
"0.67925686",
"0.6784461",
"0.67737865",
"0.67622554",
"0.67041826",
"0.670... | 0.68184286 | 14 |
Return a km representation (with 2 decimal points) of a distance in meters. | def fl7I(YKHO):
assert XbiX(100) == '0.10'
assert XbiX(494) == '0.49'
assert XbiX(495) == '0.49'
assert XbiX(496) == '0.50'
assert XbiX(10000) == '10.00'
assert XbiX(10200) == '10.20' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K2sP(q5XV):\n return q5XV * 1000",
"def zpqm(JYmd):\n return JYmd * 1.60934",
"def brid(q5XV):\n return q5XV * 0.621371",
"def N5D3(YKHO):\n return YKHO._distance.to('m').value",
"def FoD6(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9... | [
"0.76066816",
"0.7159828",
"0.7119762",
"0.681522",
"0.67269355",
"0.6723148",
"0.6688799",
"0.66761106",
"0.6616688",
"0.6573686",
"0.65677816",
"0.65463686",
"0.6544979",
"0.65193456",
"0.6492224",
"0.64844435",
"0.64104",
"0.6402224",
"0.6351492",
"0.6346346",
"0.6336152",... | 0.69067466 | 3 |
Return whether this agent can be collected. | def UhLz(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T531(YKHO) -> bool:\n return YKHO.orders and YKHO.orders[0].ability.id in {mJjM.HARVEST_GATHER, mJjM.HARVEST_RETURN}",
"def Z_6Z(YKHO):\n return YKHO.notify.IsAllowed()",
"def Z_6Z(YKHO):\n return YKHO.notify.IsAllowed()",
"def Z_6Z(YKHO):\n return YKHO.notify.IsAllowed()",
"def J1ea(YKHO):... | [
"0.6605633",
"0.6209676",
"0.6209676",
"0.6209676",
"0.61448175",
"0.61448175",
"0.61253357",
"0.61177486",
"0.6101881",
"0.6101881",
"0.60915625",
"0.6082362",
"0.6082362",
"0.60730577",
"0.60730577",
"0.6054565",
"0.60386235",
"0.5991761",
"0.59821266",
"0.59817386",
"0.598... | 0.7565364 | 0 |
Checks whether average performance falls below determined threshold. | def o45s(YKHO):
YKHO.lg.debug('Checking performance.')
gbpf = sum(YKHO.results_up) / len(YKHO.results_up)
hzq7 = sum(YKHO.results_down) / len(YKHO.results_down)
if gbpf < YKHO.tolerance * YKHO.up or hzq7 < YKHO.tolerance * YKHO.down:
YKHO.bad_performance = True
else:
YKHO.bad_perform... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zuiw(YKHO, nPrm):\n if YKHO.belowThreshold and YKHO.calculateAverage(nPrm) < YKHO.threshold:\n Ol8d = 'Average below acceptable amount for ' + YKHO.subjectName + '.'\n if YKHO.log:\n G9jH.info(Ol8d)\n YKHO.sendToAllSubscribers(Ol8d, 'Alert: Average performance below threshold... | [
"0.7263092",
"0.7230794",
"0.70135915",
"0.6669357",
"0.66546345",
"0.64845896",
"0.63859266",
"0.6330419",
"0.62496316",
"0.6238454",
"0.6215174",
"0.6196904",
"0.6182188",
"0.61290866",
"0.6117391",
"0.6101035",
"0.6061729",
"0.60499746",
"0.6044922",
"0.60185677",
"0.59969... | 0.70939666 | 2 |
Check if the string contains a digit | def qOSl(l5Ny):
return any((str.isdigit(Z9rn) for Z9rn in l5Ny)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nkCT(YKHO, NPoT):\n return bool(ZbWC.search('\\\\d', NPoT))",
"def vqm_(YKHO, vIwR):\n return bool(YKHO.compiledDigitRegex.search(vIwR))",
"def qekA(b7zw):\n return any((hcXw.isdigit() for hcXw in b7zw))",
"def MH26(JZtS):\n return any((hcXw.isdigit() for hcXw in JZtS))",
"def zonT(KCHu: st... | [
"0.8172344",
"0.79365283",
"0.7920436",
"0.77395236",
"0.76186305",
"0.76108015",
"0.7579923",
"0.75246334",
"0.752053",
"0.74952775",
"0.7424687",
"0.7417321",
"0.7388705",
"0.7380551",
"0.73604095",
"0.73341787",
"0.7302326",
"0.7294237",
"0.7280134",
"0.7265637",
"0.725564... | 0.7755749 | 3 |
Lookup colors in the interpolated ranges | def iZXl(YKHO, WKvO: NDArrayFloat) -> bdIy[lCba | None]:
WKvO = oyIN.asarray(WKvO)
or8S = oyIN.round(WKvO * 255 + d6_e).astype(int)
ezWE = oyIN.column_stack([YKHO._r_lookup[or8S], YKHO._g_lookup[or8S], YKHO._b_lookup[or8S]])
return [vowe(Z9rn) for Z9rn in ezWE] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfpW(YKHO, nPrm):\n Z5Q9 = oyIN.interp(nPrm, YKHO.range, YKHO.r)\n pPPK = oyIN.interp(nPrm, YKHO.range, YKHO.b)\n jlxe = oyIN.interp(nPrm, YKHO.range, YKHO.g)\n Z5Q9[oyIN.isnan(Z5Q9)] = 240\n pPPK[oyIN.isnan(pPPK)] = 240\n jlxe[oyIN.isnan(jlxe)] = 240\n Jw9H = oyIN.dstack([Z5Q9.astype(oyIN... | [
"0.7168324",
"0.6621914",
"0.6489006",
"0.64465886",
"0.64451146",
"0.6430015",
"0.642802",
"0.63608456",
"0.63608456",
"0.63608456",
"0.63608456",
"0.6359832",
"0.63452655",
"0.63382024",
"0.6230783",
"0.62205803",
"0.6198044",
"0.6189087",
"0.61712176",
"0.6115988",
"0.6106... | 0.55385965 | 82 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
KJ0T = cmPJ.get('morItem')
cahr = cmPJ.get('morType')
qxeD = cmPJ.get('uuid')
return Emd4(KJ0T, cahr, qxeD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.8317533",
"0.81689686",
"0.81689686",
"0.81188685",
"0.808892",
"0.7977596",
"0.7949056",
"0.79225504",
"0.78983366",
"0.7893884",
"0.7887517",
"0.7882494",
"0.7881197",
"0.7876339",
"0.78581846",
"0.78387725",
"0.78037786",
"0.78037786",
"0.78037786",
"0.78037786",
"0.780... | 0.76598775 | 71 |
Yield successive nsized chunks from l. | def eHxA(vC9B):
for YRbF in range(0, len(vC9B), zKwq):
yield vC9B[YRbF:YRbF + zKwq] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038813",
"0.79248375",
"0.7923423",
"0.7885103",
"0.78773195",
"0.7815877",
"0.77655786",
"0.77556044",
"0.77441615",
"0.7731815",
"0.77288336",
"0.772473",
"0.77028215",
"0.76889825",
"0.76889825",
"0.7664208",
"0.76570904",
"0.7655856",
"0.7655856",
"0.76458347",
"0.764... | 0.0 | -1 |
Get the absolute path of the ``sitepackages`` directory. | def VJEZ():
for XP5J in HwRy.path[::-1]:
if XP5J.endswith('site-packages'):
return XP5J
raise Exception("'site-package' directory not found!") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO):\n yQ5z = qpDA.getsitepackages()[0]\n return f'{yQ5z}/{MS8o}'",
"def MKe6() -> str:\n if Hy7s.name == 'nt':\n return Hy7s.path.join(jMCG(), 'Lib', 'site-packages')\n rj1q = f'python{HwRy.version_info.major}.{HwRy.version_info.minor}'\n return Hy7s.path.join(jMCG(), 'lib', rj1... | [
"0.79512745",
"0.79062295",
"0.7685186",
"0.756079",
"0.70923513",
"0.69586945",
"0.6912531",
"0.6832663",
"0.6766113",
"0.6646042",
"0.6600975",
"0.6571977",
"0.6550356",
"0.6524058",
"0.65064216",
"0.6486803",
"0.64243525",
"0.64028996",
"0.6361537",
"0.63540614",
"0.634636... | 0.77620167 | 2 |
Computes the accuracy over the k top predictions for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)",
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\... | [
"0.8330462",
"0.828432",
"0.82377493",
"0.8229689",
"0.82198155",
"0.8186224",
"0.8184685",
"0.81749374",
"0.8171418",
"0.81700104",
"0.8166419",
"0.8164397",
"0.8163624",
"0.8162058",
"0.8162058",
"0.8162058",
"0.8162058",
"0.8162058",
"0.8162058",
"0.8162058",
"0.8162058",
... | 0.78612626 | 75 |
Returns IDs of all attached disks. | def XJWM(YKHO):
return list(YKHO._disks) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xiKC(SVv_):\n return [SVGl(SSkF).get_id() for SSkF in SVv_]",
"def hEqr(YKHO):\n return YKHO._attachments.keys()",
"def cQX9():\n return JQIT.get(abs_link=False)",
"def b7EJ():\n u1Ci = []\n try:\n Aofo = EBEh(['list disk'])\n except Yn3K.CalledProcessError:\n pass\n el... | [
"0.672024",
"0.66599137",
"0.6567812",
"0.64278257",
"0.63502854",
"0.6282658",
"0.62476546",
"0.6156233",
"0.6099",
"0.60058296",
"0.59742755",
"0.5946755",
"0.58215255",
"0.57833606",
"0.57782954",
"0.57057995",
"0.5705078",
"0.570014",
"0.56879455",
"0.56781983",
"0.566385... | 0.79639286 | 0 |
Return the datastore id of the disk. | def Ovny(YKHO, AnfN):
try:
return YKHO.disk(AnfN).find('DATASTORE_ID').text
except AttributeError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(UTqa):\n return 'Unknown'",
"def XZZq(xAU6):\n NbAc = mC81(xAU6)\n EVcG = xAU6.datastore\n nJ8O = tQff(xAU6)\n for ZfUD in nJ8O.datastoreFolder.childEntity:\n if ZfUD.name == EVcG:\n return ZfUD._GetMoId()",
"def OyzV(YKHO):\n return str(YKHO._storage_id)",
"def b... | [
"0.7739558",
"0.7404281",
"0.72293514",
"0.71313775",
"0.69537127",
"0.67419755",
"0.67419755",
"0.67245305",
"0.67245305",
"0.6614154",
"0.66139466",
"0.6607355",
"0.6564186",
"0.6520358",
"0.6350659",
"0.6343349",
"0.63243634",
"0.63226104",
"0.6304181",
"0.62755764",
"0.62... | 0.82589585 | 0 |
Test class `__eq__` method | def Dy7v(YKHO, mmtz):
jzdc, Fg_i, bGrB = mmtz
assert jzdc == Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YK... | [
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8660917",
"0.8534341",
"... | 0.83141685 | 42 |
Test class `__ne__` method | def cnA1(YKHO, mmtz):
jzdc, Fg_i, Z9rn = mmtz
assert jzdc != Z9rn
assert Fg_i != Z9rn
jzdc.__dict__.update(baz=True)
assert jzdc != Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n pass",
"def Vdqg(YKHO, Elif):\n return YKHO.isNot(Elif)",
"def Vdqg(YKHO: _TT, Elif: object) -> bool:\n return YKHO.ne(Elif)",
"def Vdqg(YKHO, Elif):\n return kUu4(YKHO, Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)",
"def vdIi(YKHO):\n YKHO.asser... | [
"0.8294736",
"0.81899023",
"0.8164965",
"0.810767",
"0.80923873",
"0.80829924",
"0.8028293",
"0.80182505",
"0.80182123",
"0.7949711",
"0.7942892",
"0.7936812",
"0.7936812",
"0.7936812",
"0.79276395",
"0.7921599",
"0.7921599",
"0.7921599",
"0.7921599",
"0.789217",
"0.7888317",... | 0.0 | -1 |
start showing the dialogs ont the display To pause the display, use `xkcd pause`. | def eIGz():
Jgwa = W8mS.XKCDDisplayService()
if Jgwa.is_running():
k8wH.echo('showing the dialogs')
Jgwa.send_signal(Gaon.SIGUSR1)
else:
k8wH.echo('xkcd service not running') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zXYK():\n Jgwa = W8mS.XKCDDisplayService()\n if Jgwa.is_running():\n k8wH.echo('pausing the dialogs')\n Jgwa.send_signal(Gaon.SIGUSR2)\n else:\n k8wH.echo('xkcd service not running')",
"def yKcO(oM0G):\n Jgwa = W8mS.XKCDDisplayService(oM0G)\n if Jgwa.is_running():\n ... | [
"0.7816807",
"0.71714574",
"0.639347",
"0.63744885",
"0.63719267",
"0.6370289",
"0.6337747",
"0.6207863",
"0.61884946",
"0.6174844",
"0.61601406",
"0.60837084",
"0.6057261",
"0.6049021",
"0.6041432",
"0.60386074",
"0.60089785",
"0.60076314",
"0.59878737",
"0.5955808",
"0.5955... | 0.8131057 | 0 |
will render one dialog to panel images in a directory Use this after a new dialog has been added before using the display service to show it. Sometimes adjustments to the dialog have to be made... If now output directory is set, the images are rendered to a temporary directory and are shown even if show is not selected... | def swL5(nUHY, OTY2, aR9T):
if not OTY2:
nUHY = True
UzPU = GkAb(aR9T)
Jlo1 = FzR0.parse_dialog(UzPU.read_text())
U5cv = FzR0.adjust_narrators(Jlo1)
v7zJ = GHau(OTY2)
with v7zJ as J3Ii:
kmfe = GkAb(J3Ii)
for YRbF, DJBf in enumerate(U5cv):
vxw0 = pFW3.render_xk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SvhL(YKHO):\n YKHO.img_dir = on8l.filedialog.askdirectory(title='Select Destination Directory for image data')\n YKHO.file_names = [FYKK for FYKK in sorted(Hy7s.listdir(YKHO.img_dir)) if any((FYKK.endswith(YBcr) for YBcr in z4WE))]\n YKHO.paths = [YKHO.img_dir + '/' + gIsw for gIsw in YKHO.file_names]... | [
"0.6428622",
"0.5838526",
"0.5789744",
"0.5718895",
"0.5699779",
"0.5641215",
"0.56146413",
"0.5602032",
"0.55841285",
"0.5568528",
"0.55275464",
"0.55205595",
"0.54951227",
"0.54480064",
"0.5439059",
"0.54216087",
"0.5409717",
"0.54024154",
"0.5397537",
"0.53339106",
"0.5329... | 0.51934576 | 36 |
returns a context manager for the output directory This unifies the interface for a temporary directory and a normal one | def GHau(OTY2):
if OTY2:
return QZXY.nullcontext(OTY2)
else:
return gbPf.TemporaryDirectory() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DMw_(YKHO):\n YKHO.temporary_directory = gbPf.mkdtemp(**YKHO.options)\n bo34.debug('Created temporary directory: %s', YKHO.temporary_directory)\n return YKHO.temporary_directory",
"def U9hK():\n\n class ctx(object):\n\n def DMw_(YKHO):\n YKHO.prevdir = Hy7s.getcwd()\n ... | [
"0.7752122",
"0.7585298",
"0.7412195",
"0.7404056",
"0.73954296",
"0.73756963",
"0.7361229",
"0.71462",
"0.7106759",
"0.71039194",
"0.7094585",
"0.7080965",
"0.70607036",
"0.7023971",
"0.7012873",
"0.70049137",
"0.6981151",
"0.69428104",
"0.69373924",
"0.6918992",
"0.6860234"... | 0.8132279 | 0 |
Contact page should respond with a success 200. | def q4gB(YKHO, x0hE):
geh0 = x0hE.get(nKyW('contact.index'))
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zH7l(YKHO):\n geh0 = YKHO.client.get('/contact')\n YKHO.assertContains(geh0, 'Contact', 4, 200)",
"def zH7l(YKHO):\n geh0 = YKHO.client.get('/contact')\n YKHO.assertContains(geh0, 'Contact', 3, 200)",
"def q4gB(YKHO):\n Ylbp = YKHO.client.get('/contact')\n nPrm = Ylbp.data.decode('utf-8')... | [
"0.7664089",
"0.7607836",
"0.76031023",
"0.72401404",
"0.72066057",
"0.71902645",
"0.7109812",
"0.7044971",
"0.70092994",
"0.70016336",
"0.69757664",
"0.69253606",
"0.6818164",
"0.6804292",
"0.68033624",
"0.6797687",
"0.67721766",
"0.6771458",
"0.67613375",
"0.67613375",
"0.6... | 0.7707643 | 0 |
Contact form should redirect with a message. | def rBjt(YKHO, x0hE):
L03z = {'email': 'info@rmsfinance.com', 'message': 'Test message from Snake Eyes.'}
from flask import current_app
current_app.config['WTF_CSRF_ENABLED'] = False
geh0 = x0hE.post(nKyW('contact.index'), data=L03z, follow_redirects=True)
bewx(200, geh0, 'Thanks') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0(QePW):\n if QePW.method == 'POST':\n L03z = JmDL(QePW.POST)\n if L03z.is_valid():\n L03z.save()\n yEHD.info(QePW, 'Your message is send. ' + 'We will reply within 48 hours!')\n else:\n yEHD.error(QePW, 'Please try again.')\n return vKnz(gxEw(... | [
"0.75234383",
"0.74533474",
"0.717565",
"0.71242446",
"0.7078214",
"0.70689213",
"0.70594895",
"0.69463015",
"0.6922647",
"0.6904521",
"0.6846544",
"0.67900354",
"0.6786419",
"0.6760009",
"0.6755947",
"0.6742739",
"0.67029417",
"0.6693726",
"0.6609479",
"0.6603915",
"0.656761... | 0.68944603 | 10 |
Redirect to welcome if not seen, add Rooms user to request. | def gXLM(QePW, *qIxc, **B2fa):
CBIr = TKWP(QePW.user.username)
if not CBIr:
return G2TX()
if not CBIr.seen_welcome:
return Yd7Q('/about/')
QePW.rooms_user = CBIr
return FYKK(QePW, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jjss(FYKK):\n\n @zaGL(FYKK)\n def gXLM(QePW, *qIxc, **B2fa):\n \"\"\"Redirect to welcome if not seen, add Rooms user to request.\"\"\"\n CBIr = TKWP(QePW.user.username)\n if not CBIr:\n return G2TX()\n if not CBIr.seen_welcome:\n return Yd7Q('/about/')\n ... | [
"0.7237326",
"0.6771685",
"0.6520982",
"0.6438865",
"0.63811123",
"0.6358513",
"0.6305313",
"0.61365885",
"0.61279976",
"0.6087376",
"0.60715854",
"0.6041219",
"0.60119677",
"0.60118747",
"0.60030186",
"0.5964917",
"0.5961812",
"0.59132254",
"0.5865454",
"0.5840754",
"0.58332... | 0.68554676 | 1 |
Connect to the MQTT client | def yWAh():
x0hE = ZozG.Client()
x0hE.connect(Mobb, NFbp, a2w5)
return x0hE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yWAh():\n x0hE = ZozG.Client('41')\n x0hE.connect(Mobb, port=NFbp, keepalive=a2w5)\n return x0hE",
"def Zr7Z():\n global mqtt_client\n G9jH.debug('connecting to mqtt broker %s', GPtr['mqtt']['host'])\n k14B = p9X3.Client()\n k14B.tls_set()\n k14B.on_connect = yZmE\n k14B.on_message... | [
"0.8602263",
"0.8580073",
"0.79658973",
"0.79198533",
"0.7795112",
"0.75766146",
"0.7463519",
"0.7463519",
"0.737208",
"0.7370956",
"0.73446757",
"0.73396283",
"0.73305845",
"0.7290404",
"0.72773945",
"0.7222561",
"0.72134876",
"0.7207249",
"0.71264404",
"0.7106446",
"0.70897... | 0.84291947 | 2 |
The set of arguments for constructing a AzureVpcPeeringConnection resource. | def FIMM(Ro_8, *, BnZb: pulumi.Input[str], _88P: pulumi.Input[str], vGsG: pulumi.Input[str], I9Py: pulumi.Input[str], LLn0: pulumi.Input[str], xOeT: pulumi.Input[str]):
qe4Y.set(Ro_8, 'azure_subscription_id', BnZb)
qe4Y.set(Ro_8, 'peer_azure_app_id', _88P)
qe4Y.set(Ro_8, 'peer_azure_tenant_id', vGsG)
qe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: AzureVpcPeeringConnectionArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: VirtualNetworkPeeringArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: VpcEndpointServiceConnectionArgs, VKhi: O... | [
"0.7815642",
"0.71084815",
"0.6161979",
"0.6066089",
"0.5916522",
"0.5731427",
"0.56703377",
"0.56020623",
"0.54761213",
"0.54172224",
"0.5412391",
"0.5411983",
"0.53963774",
"0.5322029",
"0.52777976",
"0.5276574",
"0.5208601",
"0.51988477",
"0.5186508",
"0.5174702",
"0.51393... | 0.59426546 | 4 |
Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource. | def I9Py(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'peer_resource_group') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I9Py(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'peer_resource_group')",
"def I9Py(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'peer_resource_group')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def MKm_(a2jN):\n return a2jN + '-VPC'",
"def... | [
"0.7321809",
"0.6867212",
"0.678169",
"0.6648449",
"0.660941",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6525809",
"0.6427488",
"0.63939893",
"0.6344449",
"0.6344449",
"0... | 0.71472734 | 1 |
Azure Network name. This property cannot be changed, doing so forces recreation of the resource. | def LLn0(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'vnet_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tvqd(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('network_name'), B2fa)",
"def tN3E(YKHO) -> str:\n return YKHO._computer_network_name",
"def Z4IK(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'managed_network_name')",
"def fRQq(YKHO) -> h8nf[qe4Y.Input[str]]:\n ret... | [
"0.7657632",
"0.6852617",
"0.67742956",
"0.6564357",
"0.6404147",
"0.63744426",
"0.6328653",
"0.6316064",
"0.62649024",
"0.6164433",
"0.6149063",
"0.6113465",
"0.6095669",
"0.6067018",
"0.6052242",
"0.5961927",
"0.5868755",
"0.5787973",
"0.5774253",
"0.57605964",
"0.5743953",... | 0.59987205 | 15 |
Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource. | def I9Py(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'peer_resource_group') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I9Py(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'peer_resource_group')",
"def I9Py(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'peer_resource_group')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def MKm_(a2jN):\n return a2jN + '-VPC'",
"def iKNZ(... | [
"0.7323304",
"0.71490234",
"0.67819756",
"0.6647383",
"0.66097444",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.64283174",
"0.639524",
"0.63453496",
"0.63453496"... | 0.6868886 | 2 |
Azure Network name. This property cannot be changed, doing so forces recreation of the resource. | def LLn0(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vnet_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tvqd(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('network_name'), B2fa)",
"def tN3E(YKHO) -> str:\n return YKHO._computer_network_name",
"def Z4IK(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'managed_network_name')",
"def fRQq(YKHO) -> h8nf[qe4Y.Input[str]]:\n ret... | [
"0.76564425",
"0.68517154",
"0.6775293",
"0.6565352",
"0.64029956",
"0.63751686",
"0.6331702",
"0.63171816",
"0.62627614",
"0.61647",
"0.61473006",
"0.61129576",
"0.6095525",
"0.60653454",
"0.60499185",
"0.59986174",
"0.596154",
"0.5789407",
"0.57735646",
"0.57611805",
"0.574... | 0.5868162 | 17 |
Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource. | def I9Py(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'peer_resource_group') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I9Py(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'peer_resource_group')",
"def I9Py(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'peer_resource_group')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def MKm_(a2jN):\n return a2jN + '-VPC'",
"def ... | [
"0.71490234",
"0.6868886",
"0.67819756",
"0.6647383",
"0.66097444",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.6526289",
"0.64283174",
"0.639524",
"0.63453496",
"0.63453496"... | 0.7323304 | 0 |
Azure Network name. This property cannot be changed, doing so forces recreation of the resource. | def LLn0(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'vnet_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tvqd(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('network_name'), B2fa)",
"def tN3E(YKHO) -> str:\n return YKHO._computer_network_name",
"def Z4IK(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'managed_network_name')",
"def fRQq(YKHO) -> h8nf[qe4Y.Input[str]]:\n ret... | [
"0.76564425",
"0.68517154",
"0.6775293",
"0.6565352",
"0.64029956",
"0.63751686",
"0.6331702",
"0.63171816",
"0.62627614",
"0.61647",
"0.61473006",
"0.6095525",
"0.60653454",
"0.60499185",
"0.59986174",
"0.596154",
"0.5868162",
"0.5789407",
"0.57735646",
"0.57611805",
"0.5743... | 0.61129576 | 11 |
Create an Fixed Point object. | def FIMM(YKHO, BWXx=0, vpMw=quZr, YcHx=D5nh):
if phFQ == 0:
assert vpMw >= 1, 'int_bits must be greater or equal than 1'
assert YcHx >= 0, 'frac_bits must be greater or eqaul than 0'
assert isinstance(BWXx, int) | isinstance(BWXx, float) | isinstance(BWXx, qlQt), 'initialized value type erro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMSh():\n jzdc = qlQt(1, 'Q2.0')\n assert jzdc.value == 1\n assert jzdc.m == 2\n assert jzdc.n == 0",
"def AU8u(Emd4):\n\n def i_PC(YRbF, mWFP):\n return Emd4(YRbF, mWFP, (0, 0), lambda jzdc: AU8u.Point(*jzdc).floor(), None)\n return i_PC",
"def cLYF():\n jzdc = qlQt(0.1, 'Q0.4'... | [
"0.68527544",
"0.6835607",
"0.6810045",
"0.6802522",
"0.6802522",
"0.6207056",
"0.6078274",
"0.605024",
"0.60153264",
"0.5938773",
"0.5930962",
"0.5929886",
"0.5869593",
"0.58671975",
"0.5816842",
"0.5812471",
"0.57779264",
"0.57236135",
"0.5720597",
"0.5719535",
"0.5702016",... | 0.0 | -1 |
Convert a value to the encoded representation and clip it | def kLcZ(YKHO, BWXx):
WKvO = round(BWXx * (1 << YKHO.frac_bits))
return YKHO.min_value if WKvO < YKHO.min_value else YKHO.max_value if WKvO > YKHO.max_value else WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IKwM(Emd4, WKvO):\n return WKvO",
"def tXKJ(YKHO, BWXx):\n return YKHO.value_min_raw + 1.0 / YKHO._value_scale * BWXx",
"def aSeI(Emd4, BWXx):\n return BWXx",
"def Nlxd(YKHO, BWXx):\n return BWXx * YKHO._scale + YKHO._offset",
"def NkkI(YKHO, BWXx):\n return str(BWXx)",
"def a8Pe(YKHO,... | [
"0.6938578",
"0.669795",
"0.6528455",
"0.6449331",
"0.6446176",
"0.6413692",
"0.6316371",
"0.6307703",
"0.62329113",
"0.6224035",
"0.6215969",
"0.6052055",
"0.602871",
"0.60232586",
"0.60232586",
"0.59961975",
"0.59961975",
"0.59961975",
"0.59904057",
"0.5982614",
"0.59513384... | 0.58054906 | 29 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) | def GeVo(GgQG, igSk, tk0B, TGuP):
GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2.0) ** 2.0 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2.0) ** 2.0
Z9rn = 2.0 * P099(PZyS(jzdc))
r8hN = 6378100.0 * Z9rn
return r8hN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.8146851",
"0.78653836",
"0.7633587",
"0.760638",
"0.7597363",
"0.7595882",
"0.7594262",
"0.7571903",
"0.7563977",
"0.7557409",
"0.7529731",
"0.7516804",
"0.7494894",
"0.74672914",
"0.74524754",
"0.7434426",
"0.7391925",
"0.735819",
"0.73490065",
"0.7331919",
"0.73290455",
... | 0.0 | -1 |
To move the bullet on the screen every loop | def BZN_(YKHO, y917):
YKHO.y += y917 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lPRI(YKHO, tvqc):\n if not YKHO.hasBulletLoaded:\n return\n if YKHO.currentBullets >= YKHO.maxBullets:\n return\n yIQM = GBVa(YKHO.canvasIGetDrawnOn, entityThatCreatedMe=YKHO, xPos=YKHO.xPos, yPos=YKHO.yPos)\n YKHO.hasBulletLoaded = False\n YKHO.currentBullets += 1\n yIQM.faceHe... | [
"0.756119",
"0.7482356",
"0.74686915",
"0.73459524",
"0.73293495",
"0.73224866",
"0.73185426",
"0.7312508",
"0.7305877",
"0.72865003",
"0.7235276",
"0.7235276",
"0.72133136",
"0.72133136",
"0.7156737",
"0.71109635",
"0.7097615",
"0.70760983",
"0.7022629",
"0.6999813",
"0.6999... | 0.0 | -1 |
test place has attributes User | def jhCC(YKHO):
C6id = pRgP()
YKHO.assertTrue(hasattr(C6id, 'user_id'))
YKHO.assertEqual(C6id.user_id, '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _NFM(YKHO):\n C6id = pRgP()\n YKHO.assertTrue(hasattr(C6id, 'user_id'))\n YKHO.assertEqual(type(C6id.user_id), str)\n YKHO.assertEqual(C6id.user_id, '')",
"def b5K5(YKHO):\n return True",
"def DQwt(YKHO):\n YKHO.assertEqual(YKHO.user1.location, 'France')\n YKHO.assertEqual(YKHO.user2.l... | [
"0.7354759",
"0.6985283",
"0.6894407",
"0.6876992",
"0.67938614",
"0.6756325",
"0.6750763",
"0.6749276",
"0.67444235",
"0.6721583",
"0.6692416",
"0.6646179",
"0.66298807",
"0.6587614",
"0.6538709",
"0.6532357",
"0.651582",
"0.65015686",
"0.6493719",
"0.64820313",
"0.6449384",... | 0.81319594 | 0 |
test place has attributes number rooms | def sf2T(YKHO):
C6id = pRgP()
YKHO.assertTrue(hasattr(C6id, 'number_rooms'))
YKHO.assertEqual(type(C6id.number_rooms), int)
YKHO.assertEqual(C6id.number_rooms, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xnls(YKHO):\n C6id = pRgP()\n YKHO.assertTrue(hasattr(C6id, 'number_rooms'))\n YKHO.assertEqual(type(C6id.number_rooms), int)\n YKHO.assertEqual(C6id.number_rooms, 0)",
"def GuOV(YKHO):\n C6id = pRgP()\n YKHO.assertTrue(hasattr(C6id, 'number_bathrooms'))\n YKHO.assertEqual(type(C6id.numb... | [
"0.7589906",
"0.6944802",
"0.68648404",
"0.64007443",
"0.6326029",
"0.6170222",
"0.6080759",
"0.5924711",
"0.58849084",
"0.5854982",
"0.5810926",
"0.57908463",
"0.5782188",
"0.5727568",
"0.57184094",
"0.57007533",
"0.56783646",
"0.56723815",
"0.56674874",
"0.56615335",
"0.566... | 0.762148 | 0 |
test place has attributes number bathrooms | def mDOz(YKHO):
C6id = pRgP()
YKHO.assertTrue(hasattr(C6id, 'number_bathrooms'))
YKHO.assertEqual(type(C6id.number_bathrooms), int)
YKHO.assertEqual(C6id.number_bathrooms, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GuOV(YKHO):\n C6id = pRgP()\n YKHO.assertTrue(hasattr(C6id, 'number_bathrooms'))\n YKHO.assertEqual(type(C6id.number_bathrooms), int)\n YKHO.assertEqual(C6id.number_bathrooms, 0)",
"def Xnls(YKHO):\n C6id = pRgP()\n YKHO.assertTrue(hasattr(C6id, 'number_rooms'))\n YKHO.assertEqual(type(C... | [
"0.7493405",
"0.7024076",
"0.69143075",
"0.66481113",
"0.6235911",
"0.6097309",
"0.60060585",
"0.5947601",
"0.5921368",
"0.5840065",
"0.5814581",
"0.5791613",
"0.57781535",
"0.5736302",
"0.56763566",
"0.5667157",
"0.56450933",
"0.5626067",
"0.5603241",
"0.5587661",
"0.5586978... | 0.75048167 | 0 |
Al seleccionar una provincia en el comboBox, llama al evento cmb.activated y devuelve la provincia seleccionada | def BiLl(Zu6c):
try:
global vprov
lOKd = Zu6c
except Exception as error:
print('Error %s ' % str(P1dF)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OoXI(YKHO, y4fz):\n raise NotImplementedError",
"def vLiX(YKHO, y4fz):\n YKHO.selectedItem = str(y4fz.toUtf8()).decode('utf-8')",
"def b2hZ(YKHO, TEdI, nPrm=None):\n YKHO.Paciente0.Test = YKHO.Tests[YKHO.ComboBox.get_active()][0]",
"def DHPR(YKHO, y4fz):\n OAHO = YKHO.comboBox_polynome_etalon... | [
"0.70185935",
"0.6914049",
"0.6878037",
"0.6811465",
"0.65116304",
"0.6444286",
"0.64416206",
"0.62473744",
"0.6232103",
"0.6185888",
"0.61528057",
"0.61134714",
"0.61096245",
"0.60649854",
"0.6018415",
"0.59621966",
"0.59606874",
"0.5942534",
"0.5911412",
"0.59029245",
"0.58... | 0.55884093 | 32 |
Get the scene viewer for this ZincWidget. | def GVKn(YKHO):
return YKHO._sceneviewer | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p4gV(YKHO):\n YKHO.viewer = YKHO.traj._tempmol.draw3d(style='licorice')\n return YKHO.viewer",
"def oxAj(YKHO):\n return YKHO.scenes[YKHO.current_scene]",
"def xAQR(YKHO, Gwav=-1) -> vjgB:\n RV2C = YKHO.getViewerController(Gwav)\n if RV2C is None:\n return None\n return RV2C.view",... | [
"0.71168274",
"0.702649",
"0.6721892",
"0.6579078",
"0.6406719",
"0.62917256",
"0.61424106",
"0.601053",
"0.5851335",
"0.57047683",
"0.5638967",
"0.5630164",
"0.56223744",
"0.5573266",
"0.55413276",
"0.55246353",
"0.5522934",
"0.5511635",
"0.5501095",
"0.54792523",
"0.5451217... | 0.84277904 | 0 |
Maximum input length supported by the encoder. | def EAOo(YKHO):
return int(100000.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BcCR(YKHO) -> int | None:\n return YKHO._underlying.max_length",
"def BcCR(YKHO):\n return YKHO._max_length",
"def FR_G(YKHO):\n return YKHO.__max_length",
"def E0wO(YKHO):\n raise NotImplementedError()",
"def zQxg(YKHO):\n return 16 + 16 + 8 + 8 + iK2A.bin_to_dec(YKHO.get_data_size()) +... | [
"0.79897684",
"0.796766",
"0.7858538",
"0.7661177",
"0.764795",
"0.7555229",
"0.7417586",
"0.7405116",
"0.733513",
"0.7185543",
"0.7182693",
"0.7143216",
"0.71080714",
"0.7097763",
"0.70617527",
"0.70289385",
"0.70070046",
"0.6974585",
"0.6966727",
"0.69448024",
"0.69448024",... | 0.0 | -1 |
Get a scoped session for the given tenancy. | def oCsa(YKHO, PDsO: Union[dto.Tenancy, str]) -> 'ScopedSession':
raise UAju.UnsupportedOperationError("Operation not supported for provider '{}'".format(YKHO.provider_name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XexM():\n if IjXH is None:\n KCHu = None\n else:\n KCHu = IjXH()\n return KCHu",
"def KfiN():\n cuiw = oCsa(FJ3D(bind=eHpk))\n return cuiw",
"def KfiN():\n return oCsa(FJ3D(autocommit=False, autoflush=False, bind=eHpk))",
"def cuiw(KfiN):\n return KfiN()",
"def KfiN(*... | [
"0.7463624",
"0.7218879",
"0.67233324",
"0.6672524",
"0.6630983",
"0.6605064",
"0.65718794",
"0.6551582",
"0.65360403",
"0.65349364",
"0.6532322",
"0.65320045",
"0.650158",
"0.6429706",
"0.6349169",
"0.6347238",
"0.6325116",
"0.6323279",
"0.63196206",
"0.630509",
"0.6291362",... | 0.7907093 | 0 |
Returns the firewall rules for the machine. | def kady(YKHO, fwgd: Union[dto.Machine, str]) -> iu5r[ZjMU.FirewallGroup]:
raise UAju.UnsupportedOperationError("Operation not supported for provider '{}'".format(YKHO.provider_name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LBYX(YKHO, B3MC):\n TJdH = YKHO.client['Network_Vlan_Firewall']\n return TJdH.getRules(id=B3MC, mask=H2w1)",
"def dcoH(YKHO, N5z6):\n Ox_i, r_CG = MleL(N5z6)\n bD7m = f'/server/{Ox_i}/firewall_rule'\n Ylbp = YKHO.api.get_request(bD7m)\n return [J1wF(server=r_CG, **Ye9C) for Ye9C in Ylbp['fi... | [
"0.7195407",
"0.7168536",
"0.69507354",
"0.6922061",
"0.66115016",
"0.657532",
"0.6527567",
"0.6404079",
"0.627062",
"0.6250536",
"0.62291163",
"0.6209954",
"0.60805774",
"0.60230684",
"0.59564626",
"0.59405327",
"0.5936703",
"0.59035397",
"0.58358794",
"0.58089083",
"0.57980... | 0.6786547 | 4 |
Removes the specified firewall rule from the machine and returns the new set of rules. | def AHLw(YKHO, fwgd: Union[dto.Machine, str], Ye9C: Union[dto.FirewallRule, str]) -> iu5r[ZjMU.FirewallGroup]:
raise UAju.UnsupportedOperationError("Operation not supported for provider '{}'".format(YKHO.provider_name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z9T2(YKHO, Ye9C):\n return YKHO.delete(YKHO.firewall_rule_path % Ye9C)",
"def IO15(YKHO, *qIxc):\n return _VfD.Model_removeRule(YKHO, *qIxc)",
"def Dri0(YKHO, qnlB):\n if YKHO._mode == Kfu_.PassThrough:\n raise ValueError(\"Can't edit rules while in passthrough mode\")\n if YKHO._mode ==... | [
"0.70346546",
"0.6309014",
"0.62628484",
"0.6229227",
"0.62191707",
"0.61981905",
"0.5955112",
"0.5944173",
"0.5938731",
"0.59235305",
"0.5776932",
"0.5769019",
"0.57204884",
"0.5607488",
"0.55820453",
"0.5573506",
"0.5550639",
"0.55348074",
"0.5477784",
"0.5465073",
"0.54238... | 0.77816683 | 0 |
Finds a Kubernetes cluster template by id. | def ase2(YKHO, id: str) -> ZjMU.KubernetesClusterTemplate:
raise UAju.UnsupportedOperationError("Operation not supported for provider '{}'".format(YKHO.provider_name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhtg(QpfX, id):\n dp9S = QpfX.getAdministrationService()\n qIUQ = dp9S.getCurrentEnterprise()\n return qIUQ.findTemplate(OJY_.id(id))",
"def OPem(YKHO, p8MC):\n raise NotImplementedError()",
"def DAt9(Emd4, p8MC):\n TLI7 = Emd4.get_template_dir()\n if TLI7 is not None:\n pmON = Hy7... | [
"0.7872412",
"0.6790759",
"0.65845335",
"0.6535215",
"0.64060813",
"0.63237554",
"0.62393624",
"0.6136813",
"0.6100347",
"0.60435617",
"0.60230935",
"0.5989392",
"0.59092027",
"0.58121604",
"0.57508606",
"0.5655647",
"0.5598551",
"0.5561136",
"0.55345184",
"0.55205876",
"0.54... | 0.82877433 | 0 |
Update the specified Kubernetes cluster. | def mCeg(YKHO, hKn5: Union[dto.KubernetesCluster, str], rPXJ: Union[dto.KubernetesClusterTemplate, str]) -> ZjMU.KubernetesCluster:
raise UAju.UnsupportedOperationError("Operation not supported for provider '{}'".format(YKHO.provider_name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def URT9(YKHO, hKn5, NArs, *qIxc, **B2fa):\n raise NotImplementedError",
"def URT9(YKHO, hKn5: Union[dto.Cluster, str], NArs: Mapping[str, Any]) -> ZjMU.Cluster:\n raise UAju.UnsupportedOperationError(\"Operation not supported for provider '{}'\".format(YKHO.provider_name))",
"def QdZT(id, TBsA: Body):\n... | [
"0.7799675",
"0.73916435",
"0.71293277",
"0.7100284",
"0.70896614",
"0.70332205",
"0.6753576",
"0.65889484",
"0.6259748",
"0.62123793",
"0.6042892",
"0.600235",
"0.58724767",
"0.5868797",
"0.5837158",
"0.5837158",
"0.5837158",
"0.5837158",
"0.5837158",
"0.5837158",
"0.5815896... | 0.7554193 | 1 |
Find a cluster by id. | def GyOE(YKHO, id: str) -> ZjMU.Cluster:
raise UAju.UnsupportedOperationError("Operation not supported for provider '{}'".format(YKHO.provider_name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GyOE(YKHO, id):\n raise NotImplementedError",
"def vNjI(YKHO, id: str) -> ZjMU.KubernetesCluster:\n raise UAju.UnsupportedOperationError(\"Operation not supported for provider '{}'\".format(YKHO.provider_name))",
"def yo3E(YKHO, SA6m: str) -> x1iM[str]:\n return [G1Hx for G1Hx, Ty9i in YKHO._clust... | [
"0.89340335",
"0.80049926",
"0.7087015",
"0.6964663",
"0.6952615",
"0.67677695",
"0.6584001",
"0.6523775",
"0.6490518",
"0.64823717",
"0.6398891",
"0.6380067",
"0.6297336",
"0.6271734",
"0.6266025",
"0.623782",
"0.6237797",
"0.6187373",
"0.6111801",
"0.60111856",
"0.59842736"... | 0.8516475 | 1 |
Reset the internal statistics of the tracker. | def SiRx(YKHO):
upAO = YKHO.module.weight.data
YKHO.sensitivity_in = ht2j.zeros(upAO.shape[1]).to(upAO.device)
YKHO._features = ht2j.Tensor()
YKHO._current_batch = 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tf3z(YKHO):\n YKHO.stats.reset()",
"def Tf3z(YKHO):\n YKHO.stats.reset()",
"def SiRx(YKHO) -> None:\n YKHO.statistics = oRi_(int)",
"def SiRx(YKHO) -> None:\n YKHO.statistics = oRi_(float)",
"def SiRx(YKHO):\n YKHO.stats = {}",
"def mzqt(YKHO):\n YKHO.__stats_table = {}",
"def SiR... | [
"0.85885596",
"0.85885596",
"0.8498898",
"0.8487036",
"0.8430663",
"0.8076107",
"0.80572075",
"0.8034867",
"0.8033949",
"0.7989022",
"0.7923762",
"0.78862035",
"0.78862035",
"0.78862035",
"0.77523303",
"0.76605135",
"0.76589984",
"0.7553357",
"0.7504818",
"0.7469674",
"0.7431... | 0.0 | -1 |
Get a single element out of the circular buffer. If the buffer is empty, throw a runtime_error | def NMoC(YKHO):
if YKHO.empty():
raise Exception('Circular Buffer Empty')
else:
Z9rn = YKHO.buff_[YKHO.nextGet_]
YKHO.nextGet_ = (YKHO.nextGet_ + 1) % YKHO.capacity()
YKHO.empty_ = YKHO.nextGet_ == YKHO.nextPut_
return Z9rn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T7C_(YKHO):\n if len(YKHO) == 0:\n if YKHO.none_for_empty:\n return None\n raise ValueError('Buffer is empty')\n return YKHO.buf[YKHO.front]",
"def OP2O(YKHO, d6pt):\n return YKHO.buffer[d6pt]",
"def nkWG(YKHO):\n bGrB, oDpr = YKHO.redis_client.blpop(YKHO.buffer_name)\n... | [
"0.64193106",
"0.6361958",
"0.620972",
"0.6167406",
"0.6118264",
"0.6018218",
"0.6008571",
"0.59713346",
"0.59308946",
"0.5902252",
"0.5885353",
"0.5827976",
"0.5815899",
"0.5790655",
"0.5782687",
"0.5776721",
"0.57740057",
"0.5757702",
"0.5756447",
"0.57542306",
"0.57536995"... | 0.74701625 | 0 |
This implements performing "n" gets, but in O(1) time. If asked to consume more elements that the CircularBuffer contains, a runtime_error will be thrown. | def E_nZ(YKHO, exwG):
if exwG < 0 or exwG > len(YKHO):
r8hN = 'Trying to consume more data than in Circ. Buff'
raise Exception(r8hN)
YKHO.empty_ = exwG == len(YKHO)
YKHO.nextGet_ = (YKHO.nextGet_ + exwG) % YKHO.capacity() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n if YKHO.empty():\n raise Exception('Circular Buffer Empty')\n else:\n Z9rn = YKHO.buff_[YKHO.nextGet_]\n YKHO.nextGet_ = (YKHO.nextGet_ + 1) % YKHO.capacity()\n YKHO.empty_ = YKHO.nextGet_ == YKHO.nextPut_\n return Z9rn",
"def next(YKHO, exwG: int | None=Non... | [
"0.6635225",
"0.53858465",
"0.5350926",
"0.53395367",
"0.5309778",
"0.52753824",
"0.5273038",
"0.5232316",
"0.520699",
"0.5196958",
"0.518943",
"0.5165232",
"0.5088297",
"0.50483835",
"0.5030135",
"0.50276226",
"0.5023479",
"0.5011553",
"0.4999453",
"0.49924186",
"0.49361953"... | 0.66673464 | 0 |
Indent the given number of spaces | def Ah0K(wOb_, MnRD):
if MnRD == 0:
return
else:
wOb_.write(' ' * MnRD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5BA(p5x4):\n return ' ' * (2 * p5x4)",
"def xaGv(YKHO):\n if lVrN:\n return YKHO.indentspace * YKHO._indent_level\n else:\n return ''",
"def Syu6(mUi7: int) -> str:\n from apysc.validation import number_validation\n number_validation.validate_integer(integer=mUi7)\n number_... | [
"0.7832996",
"0.7463453",
"0.74218243",
"0.7418618",
"0.7306952",
"0.7290147",
"0.72859424",
"0.72232956",
"0.7124279",
"0.71098685",
"0.7048212",
"0.70235944",
"0.70119065",
"0.70048267",
"0.69974303",
"0.69407064",
"0.6929608",
"0.68927306",
"0.68902695",
"0.68902695",
"0.6... | 0.62001437 | 49 |
default_minimum Default for the minimum amount needed for a path. | def FIMM(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iNt(YKHO) -> float:\n return YKHO._config[qkZB]",
"def VmUT(YKHO):\n return YKHO._minimum",
"def vELP(YKHO):\n return YKHO.properties.get('minimum')",
"def vELP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'minimum')",
"def vELP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.g... | [
"0.7048602",
"0.68590534",
"0.6830656",
"0.6534922",
"0.6534922",
"0.6534922",
"0.6534922",
"0.6534922",
"0.6534922",
"0.6534922",
"0.6534922",
"0.6534922",
"0.65331006",
"0.651231",
"0.64590424",
"0.6447218",
"0.6411486",
"0.6394953",
"0.63818043",
"0.637015",
"0.63255066",
... | 0.0 | -1 |
Convert anything to unicode | def PzTU(WKvO, mktQ='utf8', XObx='strict'):
return str(WKvO, mktQ, XObx) if isinstance(WKvO, bytes) else str(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brQJ(BWXx):\n if isinstance(BWXx, iHh1):\n return BWXx\n if not isinstance(BWXx, vWp3):\n raise TypeError('Expected bytes, unicode, or None; got %r' % type(BWXx))\n return BWXx.decode('utf-8')",
"def iyQ9(l5Ny):\n if not isinstance(l5Ny, exCv):\n TCZ_ = 'expected UTF-8 encode... | [
"0.7830607",
"0.754466",
"0.7537315",
"0.75043535",
"0.7463989",
"0.7440848",
"0.74289066",
"0.7398759",
"0.7381902",
"0.7361686",
"0.7345176",
"0.7331741",
"0.7284262",
"0.7274428",
"0.72743064",
"0.7266106",
"0.72488856",
"0.72433484",
"0.72323835",
"0.72158426",
"0.7173030... | 0.65506434 | 71 |
Convert anything to unicode | def PzTU(WKvO, mktQ='utf8', XObx='strict'):
return WKvO if isinstance(WKvO, QMSQ) else QMSQ(str(WKvO), mktQ, XObx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brQJ(BWXx):\n if isinstance(BWXx, iHh1):\n return BWXx\n if not isinstance(BWXx, vWp3):\n raise TypeError('Expected bytes, unicode, or None; got %r' % type(BWXx))\n return BWXx.decode('utf-8')",
"def iyQ9(l5Ny):\n if not isinstance(l5Ny, exCv):\n TCZ_ = 'expected UTF-8 encode... | [
"0.7830607",
"0.754466",
"0.7537315",
"0.75043535",
"0.7463989",
"0.7440848",
"0.74289066",
"0.7398759",
"0.7381902",
"0.7361686",
"0.7345176",
"0.7331741",
"0.7284262",
"0.7274428",
"0.72743064",
"0.7266106",
"0.72488856",
"0.72433484",
"0.72158426",
"0.71730304",
"0.7147997... | 0.72323835 | 18 |
Wrap a WSGI environ dictionary. | def FIMM(YKHO, PNq_):
YKHO.environ = PNq_
PNq_['bottle.request'] = YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xAaX(sEAN, VUMT):\n for h3Xc, qIxc in VUMT:\n sEAN = h3Xc(sEAN, **qIxc)\n return sEAN",
"def EkKU(YKHO):\n Kfgd = dict(Hy7s.environ)\n try:\n yield\n finally:\n Hy7s.environ.clear()\n Hy7s.environ.update(Kfgd)",
"def KW8w(YKHO):\n sEAN = Hy7s.environ.copy()\n ... | [
"0.671824",
"0.6690523",
"0.6403964",
"0.63861644",
"0.6372965",
"0.6352816",
"0.63467866",
"0.6332451",
"0.6332451",
"0.6288268",
"0.62810814",
"0.6262264",
"0.6262264",
"0.6262264",
"0.62449044",
"0.62283427",
"0.621685",
"0.62027925",
"0.6150311",
"0.6036567",
"0.6036567",... | 0.61631316 | 18 |
The full request URI including hostname and scheme. If your app lives behind a reverse proxy or load balancer and you get confusing results, make sure that the ``XForwardedHost`` header is set correctly. | def bD7m(YKHO):
return YKHO.urlparts.geturl() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IkDs(QePW):\n if hasattr(QePW, '_get_raw_host'):\n KcEq = QePW._get_raw_host()\n else:\n try:\n if 'HTTP_HOST' in QePW.META:\n KcEq = QePW.META['HTTP_HOST']\n else:\n KcEq = QePW.META['SERVER_NAME']\n bIwZ = str(QePW.META['S... | [
"0.73544174",
"0.7217821",
"0.70844305",
"0.70398045",
"0.70150244",
"0.6983493",
"0.6931652",
"0.69294363",
"0.6926602",
"0.68164396",
"0.67835087",
"0.6741773",
"0.6604946",
"0.657473",
"0.65206856",
"0.64861465",
"0.64765525",
"0.6451627",
"0.64361566",
"0.64314216",
"0.64... | 0.60115194 | 60 |
Get whether or not a user has the given permission. If a LocalSite instance is passed as ``obj``, then the permissions checked will be those that the user has on that LocalSite. Otherwise, they will be their global permissions. It is not legal to pass any other object. | def M1EP(YKHO, CBIr, IuXB, YEnM=None):
if YEnM is not None and (not isinstance(YEnM, LaQc)):
G9jH.error('Unexpected object %r passed to has_perm. Returning False.', YEnM)
if gCuF.DEBUG:
raise ValueError('Unexpected object %r' % YEnM)
return False
if not CBIr.is_active:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMbz(YKHO, QePW, YEnM, RWYq=None, *qIxc, **B2fa):\n return YEnM.is_accessible_by(QePW.user, local_site=RWYq)",
"def M1EP(QpfX, IuXB, YEnM):\n return uEDt.has_perm(QpfX['request'].user, IuXB, YEnM)",
"def M1EP(QpfX, IuXB, YEnM):\n return uEDt.has_perm(QpfX['request'].user, IuXB, YEnM)",
"def M1EP... | [
"0.7490337",
"0.73814666",
"0.73814666",
"0.73680097",
"0.73172367",
"0.7240334",
"0.70846283",
"0.70710444",
"0.70634866",
"0.6985904",
"0.6985904",
"0.6938536",
"0.69204664",
"0.68978906",
"0.6893581",
"0.6884795",
"0.68789595",
"0.6876425",
"0.6839636",
"0.6837762",
"0.677... | 0.7613315 | 0 |
Name of the target. This will be used as the directory to clone into as well as selecting the target from the command line. Returns | def mWFP(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XNHl(YKHO):\n return YKHO._target_name",
"def mWFP(YKHO) -> str:\n return YKHO.inst['targetname']",
"def _9sI(YKHO):\n if YKHO.preferred_name is None:\n XNHl = YKHO.original_name\n elif len(YKHO.preferred_name) > 4:\n XNHl = YKHO.preferred_name\n else:\n XNHl = YKHO.orig... | [
"0.7605067",
"0.72559136",
"0.6671485",
"0.64695215",
"0.6375588",
"0.6325633",
"0.63179445",
"0.6313169",
"0.63048226",
"0.62497365",
"0.62211955",
"0.61647624",
"0.6158533",
"0.6097426",
"0.60679483",
"0.60613495",
"0.6051746",
"0.6018321",
"0.6018321",
"0.6018321",
"0.6018... | 0.0 | -1 |
The target tag to checkout. This function must work out which tag should be checked out and return that. A good start is to use `git_ls_remote_tags(self.clone_url)` to obtain a list of tags from the remote. If you specify `clone_url` you should also specify this. Returns | def gDjR(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DIjF(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'git_tag')",
"def xfx_(YKHO):\n\n def CotR(bD7m):\n return rMvP.ls_remote(bD7m, '%s^{}' % YKHO.tag)\n CdQC = rMvP.build_git_url(YKHO.project)\n Aofo = CotR(CdQC)\n if Aofo is None and 'ceph-ci' in CdQC:\n BJNs = CdQC.re... | [
"0.6066978",
"0.55798763",
"0.55575454",
"0.5528704",
"0.5371438",
"0.5319996",
"0.5315837",
"0.52859247",
"0.5279796",
"0.5232324",
"0.51878875",
"0.5127066",
"0.5117217",
"0.5114513",
"0.51007175",
"0.50845635",
"0.50557953",
"0.504492",
"0.5013877",
"0.49968374",
"0.498249... | 0.5020696 | 18 |