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 |
|---|---|---|---|---|---|---|
r"""Return the number of instances in the dataset where both the predicted and true labels are 'favorable', | def Ly7E(YKHO, Zl3b=None):
return YKHO.binary_confusion_matrix(privileged=Zl3b)['TP'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VzsY(YKHO):\n return len([tTpl for tTpl in YKHO.training_examples if tTpl.get('label') is not None])",
"def iQG0(aTLP, Crrw):\n return aTLP.argmax(dim=1).eq(Crrw).sum().item()",
"def zAcA(WDHD, qI6z):\n return (ht2j.argmax(WDHD, dim=1) == qI6z).float().sum().item()",
"def VKwb(N6Z1, Yptr, tlxW=1... | [
"0.7382966",
"0.7156071",
"0.7125533",
"0.7067347",
"0.69483536",
"0.6885851",
"0.6863961",
"0.67626715",
"0.6743375",
"0.6725516",
"0.67226017",
"0.67209226",
"0.6705613",
"0.6683547",
"0.6623202",
"0.66180176",
"0.6586589",
"0.65827686",
"0.6581655",
"0.6580622",
"0.6574765... | 0.0 | -1 |
r"""Average of difference in FPR and TPR for unprivileged and privileged | def VDmu(YKHO):
return 0.5 * (YKHO.difference(YKHO.false_positive_rate) + YKHO.difference(YKHO.true_positive_rate)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jYGO(YKHO):\n wjRY = YKHO._TP + YKHO._TN + YKHO._FP + YKHO._FN\n return (YKHO._TP + YKHO._TN) / wjRY if wjRY != 0 else 0",
"def vjyh(HRJ_, ytgA, FYKK, pWm4):\n gXXc = HRJ_ + pWm4\n wjRY = HRJ_ + ytgA + FYKK + pWm4\n return gXXc / wjRY",
"def _ySN(iPXw):\n oD3k = 0.0\n for YRbF, XP5J in... | [
"0.6343104",
"0.61273104",
"0.60846096",
"0.6084516",
"0.60570884",
"0.60508263",
"0.60313636",
"0.60135585",
"0.5929259",
"0.59196824",
"0.5917297",
"0.59130394",
"0.59130394",
"0.59098047",
"0.58965015",
"0.5884423",
"0.58773786",
"0.58741",
"0.58692384",
"0.5863509",
"0.58... | 0.5751742 | 32 |
r"""Average of absolute difference in FPR and TPR for unprivileged and | def dSbk(YKHO):
return 0.5 * (oyIN.abs(YKHO.difference(YKHO.false_positive_rate)) + oyIN.abs(YKHO.difference(YKHO.true_positive_rate))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NeYO(YKHO):\n return 0.5 * (YKHO.difference(YKHO.positive_predictive_value) + YKHO.difference(YKHO.false_omission_rate))",
"def On0I(_ger, nvEb):\n knl1 = oyIN.maximum(_ger / nvEb, nvEb / _ger)\n XOOk = (knl1 < 1.25).mean()\n pHXX = (knl1 < 1.25 ** 2).mean()\n MgfK = (knl1 < 1.25 ** 3).mean()\... | [
"0.6354298",
"0.6285928",
"0.6278155",
"0.62569976",
"0.6245731",
"0.6245148",
"0.6206511",
"0.6206511",
"0.6206511",
"0.6206511",
"0.61400145",
"0.6108037",
"0.6058927",
"0.6033794",
"0.6033794",
"0.6027729",
"0.602306",
"0.60171765",
"0.60067964",
"0.59917337",
"0.59887546"... | 0.6509177 | 0 |
r"""Average of difference in PPV and FOR for unprivileged and privileged | def NeYO(YKHO):
return 0.5 * (YKHO.difference(YKHO.positive_predictive_value) + YKHO.difference(YKHO.false_omission_rate)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ySN(iPXw):\n oD3k = 0.0\n for YRbF, XP5J in enumerate(iPXw):\n FO6l = 0.0\n for khtY in iPXw:\n if XP5J is not khtY:\n FO6l = FO6l + G5nE(XP5J.pattern['p'], khtY.pattern['p'])\n oD3k = oD3k + FO6l / len(iPXw)\n return oD3k / len(iPXw)",
"def a80F(YKHO)... | [
"0.6533803",
"0.6441674",
"0.62492365",
"0.6118686",
"0.60517234",
"0.60463804",
"0.6034616",
"0.5970682",
"0.59166694",
"0.5875049",
"0.58701736",
"0.58693165",
"0.58509046",
"0.5849901",
"0.58486784",
"0.584843",
"0.5846343",
"0.58452153",
"0.58452153",
"0.5841862",
"0.5805... | 0.5930177 | 8 |
Bias amplification is the difference in smoothed EDF between the classifier and the original dataset. Positive values mean the bias increased due to the classifier. | def WSdj(YKHO, wIje=1.0):
lGZJ = YKHO._smoothed_base_rates(YKHO.classified_dataset.labels, wIje)
def cT_7(YRbF, r845):
return abs(oyIN.log(lGZJ[YRbF]) - oyIN.log(lGZJ[r845]))
def snM7(YRbF, r845):
return abs(oyIN.log(1 - lGZJ[YRbF]) - oyIN.log(1 - lGZJ[r845]))
PQ1J = max((max(cT_7(YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'BiasAdjustment'",
"def LTyE(HCHH, i7Pa):\n return oyIN.sum(i7Pa - HCHH) * 100.0 / sum(i7Pa)",
"def Lmol(YKHO):\n YKHO.fid.write('+BIAS/EPOCHS\\n')\n YKHO.fid.write('-BIAS/EPOCHS\\n')",
"def SgUT(YKHO):\n x7SB = 0\n r9Hf = 0\n for CBIr, LHvA, RrWF in YKHO.samples... | [
"0.71204996",
"0.69939506",
"0.6908227",
"0.6879764",
"0.6840409",
"0.68401116",
"0.6734867",
"0.6707557",
"0.66730976",
"0.665262",
"0.6646079",
"0.66161793",
"0.6614935",
"0.6582004",
"0.65618867",
"0.64966756",
"0.64100885",
"0.638878",
"0.636054",
"0.633521",
"0.6306517",... | 0.0 | -1 |
CategoriesRequestBodyDataTransactions a model defined in Swagger | def FIMM(YKHO, id=None, CoCS=None, hxy5=None):
YKHO._id = None
YKHO._category_code = None
YKHO._immediate = None
YKHO.discriminator = None
YKHO.id = id
YKHO.category_code = CoCS
if hxy5 is not None:
YKHO.immediate = hxy5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO, QePW, format=None):\n ZMzz = jd0z(data=QePW.data)\n if ZMzz.is_valid():\n ZMzz.save()\n return oGir(ZMzz.data, status=jGRS.HTTP_201_CREATED)\n return oGir(ZMzz.errors, status=jGRS.HTTP_400_BAD_REQUEST)",
"def m8z6(YKHO):\n BWXx = nNXP.payload\n LeZt.append(BWXx)\n r... | [
"0.5678581",
"0.56431735",
"0.5625809",
"0.5602174",
"0.5519327",
"0.5510299",
"0.5492542",
"0.5428716",
"0.5415685",
"0.525121",
"0.5192893",
"0.5190426",
"0.51533705",
"0.51447564",
"0.5142924",
"0.5125453",
"0.51035184",
"0.5099695",
"0.50930923",
"0.5079595",
"0.5067981",... | 0.0 | -1 |
Sets the category_code of this CategoriesRequestBodyDataTransactions. | def CoCS(YKHO, CoCS):
if CoCS is None:
raise ValueError('Invalid value for `category_code`, must not be `None`')
YKHO._category_code = CoCS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gzrV(YKHO, gzrV):\n YKHO._merchant_category_code = gzrV",
"def gWrO(YKHO, gWrO):\n YKHO._transport_category_code = gWrO",
"async def set_category(YKHO, Ghho: str, nPrm: dict) -> None:\n YKHO.storage[Ghho] = nPrm.copy()",
"def SMC3(YKHO, Ghho):\n YKHO.category = Ghho",
"def Ials(YKHO, Ghho: ... | [
"0.7486828",
"0.6728362",
"0.6158496",
"0.6155721",
"0.6111799",
"0.60523576",
"0.60490984",
"0.60490984",
"0.60490984",
"0.59685",
"0.5948342",
"0.5929348",
"0.58915263",
"0.58915263",
"0.58915263",
"0.58915263",
"0.58915263",
"0.58915263",
"0.58915263",
"0.58915263",
"0.589... | 0.72503453 | 1 |
Sets the immediate of this CategoriesRequestBodyDataTransactions. | def hxy5(YKHO, hxy5):
YKHO._immediate = hxy5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o5_y(YKHO, LeZt):\n YKHO._categories_val = LeZt\n YKHO._parent = None\n YKHO._materializer = None",
"def Il1k(YKHO, Kh6j):\n YKHO.elasticapm_transaction_var.set(Kh6j)",
"def gQVK(YKHO, gQVK):\n YKHO._transactions = gQVK",
"def Kh6j(YKHO, Kh6j):\n YKHO._transaction = Kh6j",
"def Kh6j(Y... | [
"0.5115503",
"0.50873524",
"0.48423532",
"0.48368412",
"0.48368412",
"0.47870392",
"0.47842818",
"0.47396082",
"0.46549878",
"0.46313196",
"0.46256533",
"0.46241963",
"0.46169683",
"0.46023417",
"0.45983282",
"0.45251033",
"0.4524452",
"0.4524452",
"0.4524452",
"0.45213005",
... | 0.58191454 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Return the `raw_score` as is, since it is already normalized. | def NkkI(Emd4, RZMl):
return super().normalize(RZMl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pNam(YKHO, p1kx):\n return int(p1kx)",
"def zEHl(p1kx):\n dM5i = ZylS.cast(p1kx, ZylS.float32)\n bdUE = (dM5i - BWsN) / zvDW\n oq_y = ZylS.equal(dM5i, 0)\n SKs_ = ZylS.where(oq_y, ZylS.fill(ZylS.shape(dM5i), -1.0), bdUE)\n return ZylS.clip_by_value(SKs_, -1, 1)",
"def axF4(p1kx):\n if ... | [
"0.728943",
"0.690908",
"0.6740545",
"0.65883595",
"0.654737",
"0.6393322",
"0.6391971",
"0.63448375",
"0.6299636",
"0.6270695",
"0.62477833",
"0.6235264",
"0.6231608",
"0.61857986",
"0.61686414",
"0.61686414",
"0.6123339",
"0.6107339",
"0.6088435",
"0.60822564",
"0.60726655"... | 0.88046515 | 0 |
view root page function that returns the index page and its data | def d6pt():
cGey = wVsX('business')
aeAO = wVsX('entertainment')
kbnP = wVsX('international')
Jwkf = wVsX('local')
qbM2 = wVsX('technology')
UDOd = wVsX('health')
rWuB = wVsX('weather')
R53Y = wVsX('sport')
leAC = 'News Briefs'
return TvZl('index.html', title=leAC, sport=R53Y, bu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def d6pt(QePW):\n return SGJU('index.bp', {})",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n retu... | [
"0.7926842",
"0.792139",
"0.7916254",
"0.7913488",
"0.7913488",
"0.7913488",
"0.7913488",
"0.7900031",
"0.78671545",
"0.7845229",
"0.784301",
"0.7809986",
"0.7797715",
"0.77908033",
"0.77908033",
"0.7781445",
"0.7781445",
"0.7781445",
"0.7781445",
"0.7781445",
"0.7781445",
... | 0.0 | -1 |
Get a mocked out FileHasher. | def N1g5(m4Tx: Decoy) -> uixa:
return m4Tx.mock(cls=uixa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCQ_(Ux0P, razo, xubS=False):\n Ux0P = n9WL(Ux0P)\n if xubS:\n return Kfpr(gn7L(open(Ux0P, 'rb')), razo, True)\n with open(Ux0P, 'rb') as nUeQ:\n DnmY = BdN0(razo.name, nUeQ.read()).hexdigest()\n return DnmY",
"def MnGw(Emd4, razo, qaEx):\n with open(qaEx, mode='rb') as nUeQ:\n ... | [
"0.6152714",
"0.6084337",
"0.5994428",
"0.5923782",
"0.58960056",
"0.5871237",
"0.584136",
"0.58355737",
"0.5762531",
"0.57442325",
"0.56504226",
"0.5627742",
"0.5614125",
"0.55916333",
"0.5589196",
"0.5582265",
"0.55564576",
"0.5552454",
"0.55481714",
"0.55465716",
"0.554144... | 0.8607213 | 0 |
Gets the path of where a service2.json file should go in ~/.aws/models | def bNK4(cuiw, bF3K, bSEa=None):
xF7E = Lv7R(bF3K)
if bSEa is None:
BpPl = xF7E.endpoint_prefix
bSEa = kOO7(cuiw, BpPl)
clva = xF7E.api_version
i0XC = cuiw.get_component('data_loader').CUSTOMER_DATA_PATH
B3x3 = 'service-%d.json' % int(float(bF3K.get('version', '2.0')))
return Hy7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xhwA(YKHO) -> str:\n pass",
"def S673(ycms=None):\n wEf2 = khtY.join(ArpN(home_dir=ycms), 'modeltest.json')\n return wEf2",
"def Fw0F():\n return Hy7s.path.join(eKPZ(), 'podmodels')",
"def ipqk(LfR1):\n wM3v = Hy7s.path.join(LfR1, wnW2)\n H4si(wM3v)\n return wM3v",
"def Co1S(YKHO) ... | [
"0.6563178",
"0.63607866",
"0.62493604",
"0.6218452",
"0.62084824",
"0.61839235",
"0.61256766",
"0.61099344",
"0.61071825",
"0.61026496",
"0.6102428",
"0.6087484",
"0.6086262",
"0.6086262",
"0.6080141",
"0.6050391",
"0.60312766",
"0.6023581",
"0.599971",
"0.5998229",
"0.59645... | 0.67556846 | 0 |
Gets distributed rank or returns zero if distributed is not initialized. | def rYOG():
if pImw.is_available() and pImw.is_initialized():
fdMZ = pImw.get_rank()
else:
fdMZ = 0
return fdMZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rYOG():\n if ht2j.distributed.is_available() and ht2j.distributed.is_initialized():\n fdMZ = ht2j.distributed.get_rank()\n else:\n fdMZ = 0\n return fdMZ",
"def rYOG():\n if not pImw.is_available() or not pImw.is_initialized():\n return 0\n return pImw.get_rank()",
"def ... | [
"0.85589385",
"0.8460748",
"0.8413304",
"0.78435504",
"0.7690277",
"0.7413802",
"0.7163429",
"0.7161446",
"0.71322167",
"0.7085937",
"0.70638007",
"0.703096",
"0.7015677",
"0.6990724",
"0.69660085",
"0.69463336",
"0.6945085",
"0.69266754",
"0.6919608",
"0.6916549",
"0.688144"... | 0.85951906 | 0 |
Adds 2 blocks of [reluseparable convbatchnorm]. | def FIMM(YKHO, ApQ8, dxEX, Ot1W, **B2fa):
super().__init__()
YKHO.block1 = U78l.Sequential(U78l.ReLU(), TkKP(ApQ8, dxEX, Ot1W, **B2fa), U78l.BatchNorm2d(dxEX))
YKHO.block2 = U78l.Sequential(U78l.ReLU(), TkKP(dxEX, dxEX, Ot1W, stride=1, padding=int(Ot1W / 2)), U78l.BatchNorm2d(dxEX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znKf(YKHO, gBiU, S1R7, zuPL, qqqI, tF9S, Z9rn):\n unpn = rMtK(gBiU, 1, 1, Z9rn, 1, 1, S1R7 + '_branch2a')\n unpn = idFg(unpn, zuPL + '_branch2a', qqqI, tF9S, 'relu')\n BJwc = rMtK(unpn, 3, 3, Z9rn, 1, 1, S1R7 + '_branch2b')\n BJwc = idFg(BJwc, zuPL + '_branch2b', qqqI, tF9S, 'relu')\n eBQm = rMt... | [
"0.65893584",
"0.63400614",
"0.63263506",
"0.62366843",
"0.6223823",
"0.6190231",
"0.60607594",
"0.60587764",
"0.6003408",
"0.5982508",
"0.5964162",
"0.59578943",
"0.59572434",
"0.5937338",
"0.59134287",
"0.59020567",
"0.58944476",
"0.58818585",
"0.5879792",
"0.587895",
"0.58... | 0.59180135 | 14 |
Sends a close message to all external processes. | def DDI8(YKHO, W4JM=False):
if W4JM:
for NBjn in YKHO._processes:
if NBjn.is_alive():
NBjn.terminate()
else:
for bCYe in YKHO._parent_pipes:
try:
bCYe.send((TOX5.CLOSE, None))
bCYe.close()
except IOError:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bRUv(YKHO):\n for YRbF in range(YKHO.num_child):\n YKHO.queue_in[YRbF].cancel_join_thread()\n YKHO.queue_out[YRbF].cancel_join_thread()\n for YRbF in range(YKHO.num_child):\n YKHO.child_processes[YRbF].terminate()",
"def kH6X(YKHO):\n if YKHO._local:\n for Ii1o in YKHO._p... | [
"0.7234554",
"0.7101069",
"0.6954966",
"0.69000906",
"0.6894135",
"0.67462105",
"0.6733585",
"0.67247564",
"0.6721897",
"0.6710473",
"0.6675778",
"0.6650496",
"0.65960103",
"0.6589441",
"0.6572395",
"0.65570045",
"0.65453875",
"0.65248746",
"0.65248746",
"0.652366",
"0.649217... | 0.6979887 | 2 |
recursive algo for binary search Finds and returns the position of key in alist, or returns 1 if key is not in the list | def Dtbd(H5ew, ybN4, NCJH, prGP):
N5vb = (NCJH + prGP) // 2
mxlQ = ybN4[N5vb]
if mxlQ == H5ew:
return N5vb
elif prGP - NCJH < 1:
return -1
else:
if mxlQ > H5ew:
NCJH = N5vb + 1
elif mxlQ < H5ew:
prGP = N5vb - 1
return Dtbd(H5ew, ybN4, N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUbz(yv6U, H5ew):\n if yv6U == []:\n return -1\n Wd6E = 0\n zTuS = len(yv6U) - 1\n d6pt = -4\n while Wd6E != zTuS:\n if zTuS - Wd6E == 1 and d6pt == Wd6E:\n Wd6E = zTuS\n d6pt = (Wd6E + zTuS) // 2\n if yv6U[d6pt] == H5ew:\n break\n elif yv... | [
"0.8050429",
"0.79127485",
"0.78634524",
"0.78410757",
"0.7783044",
"0.7616362",
"0.75518525",
"0.7436473",
"0.7403737",
"0.7308047",
"0.72961044",
"0.7251503",
"0.7251467",
"0.72454095",
"0.72308916",
"0.71257514",
"0.7124674",
"0.70918983",
"0.7080593",
"0.70626676",
"0.703... | 0.7325186 | 9 |
Serialize an example with a single image and corresponding onehot class label. This creates a tf.Example message ready to be written to a file. | def LvEM(MvW1, H2v2, TVTK, rb7a, EMxv):
RDhP = {'img': NhGy(MvW1), 'height': Oety(H2v2), 'width': Oety(TVTK), 'depth': Oety(rb7a), 'label': NhGy(EMxv)}
xKOQ = ZylS.train.Example(features=ZylS.train.Features(feature=RDhP))
return xKOQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ix8_(vOvM, N3C1, L0Nd, TP22):\n RDhP = {'input_ids': Oety(vOvM), 'input_mask': Oety(N3C1), 'segment_ids': Oety(L0Nd), 'label_ids': Oety(TP22)}\n xKOQ = ZylS.train.Example(features=ZylS.train.Features(feature=RDhP))\n return xKOQ.SerializeToString()",
"def Ix8_(vOvM, gnFM):\n RDhP = {'feature0': Z... | [
"0.7566103",
"0.75458306",
"0.7541257",
"0.75211596",
"0.7495839",
"0.7467175",
"0.73858273",
"0.7195324",
"0.7156174",
"0.6948024",
"0.67351",
"0.6709746",
"0.6647573",
"0.65550905",
"0.65436894",
"0.6542042",
"0.6529247",
"0.65183884",
"0.65120304",
"0.6466122",
"0.6417935"... | 0.66321605 | 13 |
Takes a single serialized example and converts it back into an image (AS A TENSOR OBJECT) and the corresponding label. | def m6aZ(lGjS):
bySB = {'img': ZylS.io.FixedLenFeature([], ZylS.string), 'height': ZylS.io.FixedLenFeature([], ZylS.int64), 'width': ZylS.io.FixedLenFeature([], ZylS.int64), 'depth': ZylS.io.FixedLenFeature([], ZylS.int64), 'label': ZylS.io.FixedLenFeature([], ZylS.string)}
TlBS = ZylS.io.parse_single_example(s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(YKHO, lGjS):\n WEF5 = (YKHO.IMG_HEIGHT, YKHO.IMG_WIDTH, 3)\n bySB = ZylS.io.parse_single_example(lGjS, features={'image': ZylS.io.FixedLenFeature([], ZylS.string), 'label': ZylS.io.FixedLenFeature([], ZylS.string)})\n LNo8 = ZylS.io.decode_raw(bySB['image'], ZylS.uint8)\n UXqs = ZylS.io.decode... | [
"0.7910709",
"0.7899979",
"0.78644156",
"0.7800148",
"0.77852654",
"0.77246565",
"0.755451",
"0.75422287",
"0.7440325",
"0.7345096",
"0.7234927",
"0.7229304",
"0.7129747",
"0.7128336",
"0.71258104",
"0.71211964",
"0.7108686",
"0.7087405",
"0.706986",
"0.7057924",
"0.69604236"... | 0.7628125 | 6 |
If the STORE_PATH env var is unset, the app gets an inmemory store. | def x3wi(YKHO):
evz4(_environ={})
YKHO.assertEqual(P4t4.store.dbdir, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I9mm(YKHO):\n nJyP = YKHO.mktemp()\n evz4(_environ={'STORE_PATH': nJyP})\n YKHO.assertEqual(P4t4.store.dbdir, VqRE.FilePath(nJyP))",
"def VHn8():\n Hy7s.environ['STORE_BACKEND'] = 'memory'",
"def yUem():\n return P39m(GPtr['server_store'][0], GPtr['server_store'][1], environ={'tiddlyweb.conf... | [
"0.7581821",
"0.7482354",
"0.6702855",
"0.6552573",
"0.65518075",
"0.6336524",
"0.6325868",
"0.6234025",
"0.6227493",
"0.617208",
"0.6148647",
"0.61002016",
"0.60650456",
"0.60372347",
"0.6023719",
"0.601574",
"0.60147554",
"0.6011541",
"0.59592056",
"0.59505093",
"0.58933455... | 0.7680087 | 0 |
Returns the auth token for the trigger. | def rxBR(YKHO):
if isinstance(YKHO.trigger.auth_token, str):
return YKHO.trigger.auth_token
if YKHO.trigger.secure_auth_token is not None:
return YKHO.trigger.secure_auth_token.decrypt()
if z3xQ.has_flag(LMVL.READ_OLD_FIELDS):
return YKHO.trigger.auth_token
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rxBR(YKHO):\n return YKHO._auth_tok",
"def AAND(YKHO):\n eOtH = YKHO.beaker_client.get_auth_token(ye4g, YKHO.email)\n return eOtH",
"def gNTt(YKHO):\n return YKHO.keystone.auth_token",
"def Vu5X(YKHO):\n rxBR = YKHO.token_manager.get_token()\n return rxBR",
"def Vu5X():\n return f0... | [
"0.8004698",
"0.7991277",
"0.7923412",
"0.78904647",
"0.784522",
"0.76948625",
"0.7661059",
"0.74082077",
"0.7335752",
"0.73121655",
"0.7304558",
"0.70978695",
"0.7072688",
"0.7055485",
"0.6995478",
"0.69874007",
"0.69814855",
"0.69749",
"0.6974664",
"0.6973335",
"0.69571877"... | 0.7801503 | 5 |
Returns True if the current build trigger is active. Inactive means further setup is needed. | def ksfB(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n return YKHO.status in zn5X.ACTIVE_CODES",
"def WZHJ(YKHO):\n return YKHO.status in zn5X.ACTIVE_CODES",
"def s1Yo(YKHO):\n return YKHO.trigger.isSet()",
"def Debg(YKHO):\n return YKHO._automation.is_active",
"def WZHJ(YKHO) -> bool:\n return qe4Y.get(YKHO, 'active')",
"def... | [
"0.75689226",
"0.7434995",
"0.7357521",
"0.72962296",
"0.72314394",
"0.7165796",
"0.7165796",
"0.71329665",
"0.70997006",
"0.70997006",
"0.70997006",
"0.70815015",
"0.707168",
"0.7022103",
"0.7017778",
"0.7017778",
"0.7017778",
"0.7017778",
"0.7017778",
"0.7017778",
"0.699414... | 0.0 | -1 |
Returns the URL of the current trigger's repository. Note that this operation can be called in a loop, so it should be as fast as possible. | def TN9o(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fAYo(YKHO):\n return YKHO.theRepositoryURL",
"def Pssr(YKHO) -> str:\n return qe4Y.get(YKHO, 'repository_url')",
"def Pssr(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'repository_url')",
"def Pssr(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'repository_url')",
"def CdQC(... | [
"0.771137",
"0.76981956",
"0.7646097",
"0.7491646",
"0.74720037",
"0.74595153",
"0.7336798",
"0.7336798",
"0.7321165",
"0.72787344",
"0.7223376",
"0.7199354",
"0.7199354",
"0.7141587",
"0.7045652",
"0.69428957",
"0.68529266",
"0.6731201",
"0.66255623",
"0.6623164",
"0.6622058... | 0.7704787 | 1 |
Sets the auth token for the trigger, saving it to the DB. | def zBLU(YKHO, rxBR):
C3ST.build.update_build_trigger(YKHO.trigger, YKHO.config, auth_token=rxBR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rxBR(YKHO, BWXx):\n YKHO._auth_token = BWXx",
"def WGoC(YKHO):\n YKHO.auth.authorize()\n if YKHO.auth.check_token():\n YKHO.config.set('auth', 'token', YKHO.auth.token)\n YKHO.api.token = YKHO.config.get('auth', 'token')\n else:\n raise Z33n('Cant verify new token')\n retu... | [
"0.7272219",
"0.68701345",
"0.6703211",
"0.6557054",
"0.6521418",
"0.6496096",
"0.6496096",
"0.6494939",
"0.64770013",
"0.64438164",
"0.6411554",
"0.6338021",
"0.63321775",
"0.6325126",
"0.62556213",
"0.62266046",
"0.62231004",
"0.6220054",
"0.6220054",
"0.6213071",
"0.621296... | 0.79752463 | 0 |
Returns the normalized path to the Dockerfile found in the subdirectory in the config. | def Lotx(YKHO):
OiEc = YKHO.config.get('dockerfile_path') or 'Dockerfile'
if OiEc[0] == '/':
OiEc = OiEc[1:]
return OiEc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OiEc(GPtr):\n return GPtr['dockerfile']",
"def LtBP(qaEx):\n return Hy7s.path.join('/data', Hy7s.path.basename(qaEx))",
"def LtBP(VqRE):\n return Hy7s.path.join('/data', Hy7s.path.basename(VqRE))",
"def Mcth(YKHO) -> GkAb:\n L0lO = YKHO.path / 'Dockerfile'\n if L0lO.exists() and L0lO.is_fi... | [
"0.786203",
"0.74611175",
"0.71667105",
"0.70318216",
"0.68133074",
"0.67163104",
"0.6666447",
"0.6605226",
"0.65628386",
"0.6530831",
"0.64595014",
"0.64232844",
"0.63908416",
"0.6379216",
"0.63681614",
"0.6351506",
"0.6349252",
"0.63479614",
"0.6346527",
"0.6344448",
"0.634... | 0.77673054 | 1 |
Return package version as listed in `__version__` in `init.py`. | def kaPv(B5hb):
Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()
return ZbWC.search('__version__ = [\'"]([^\'"]+)[\'"]', Eosz).group(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(B5hb):\n Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()\n return ZbWC.search('^__version__ = [\\'\"]([^\\'\"]+)[\\'\"]', Eosz, ZbWC.MULTILINE).group(1)",
"def kaPv(B5hb):\n Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()\n return ZbWC.search('^__version__ = [\\'\"]([^\\'\"]+... | [
"0.83891416",
"0.83891416",
"0.8371279",
"0.8371279",
"0.8371279",
"0.8371279",
"0.8371279",
"0.83666337",
"0.8336742",
"0.8336742",
"0.83303106",
"0.8277694",
"0.8274187",
"0.8240944",
"0.8209245",
"0.81766874",
"0.8170227",
"0.8100394",
"0.80815375",
"0.8043903",
"0.8017112... | 0.8436293 | 0 |
Creates and saves a User with the given email, date of birth and password. | def lYUQ(YKHO, D3lj, mWFP, jTXt=None):
if not D3lj:
raise ValueError('Users must have an email address')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), name=mWFP)
CBIr.set_password(jTXt)
YKHO.is_active = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, c9ua, zp3f, jTXt, **wdCM):\n D3lj = YKHO.normalize_em... | [
"0.8398513",
"0.8242539",
"0.8222285",
"0.8134031",
"0.8112516",
"0.8107438",
"0.8089521",
"0.80854213",
"0.8078641",
"0.8076671",
"0.8072227",
"0.806547",
"0.80622184",
"0.8059587",
"0.8059416",
"0.805927",
"0.8057694",
"0.8056086",
"0.8049341",
"0.8048753",
"0.80471236",
... | 0.0 | -1 |
Creates and saves a superuser with the given email, date of birth and password. | def Zp54(YKHO, D3lj, mWFP, jTXt):
CBIr = YKHO.create_user(D3lj, password=jTXt, name=mWFP)
CBIr.is_active = True
CBIr.is_admin = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr",
"def Zp54(YKHO, D3lj, jTXt, **w... | [
"0.81676894",
"0.81636995",
"0.81587625",
"0.81569636",
"0.8149885",
"0.8132071",
"0.8128921",
"0.81169707",
"0.80789334",
"0.80773425",
"0.80751324",
"0.8074321",
"0.8074321",
"0.8040532",
"0.8031319",
"0.8017876",
"0.80022407",
"0.79993427",
"0.79894024",
"0.7988242",
"0.79... | 0.0 | -1 |
Returns initialized web driver of the set type | def xigm(Wy9G: str, zlwC, y5Cv) -> ngu_:
TI1B = uAzu.get_driver(Wy9G, headless=zlwC, remote=y5Cv)
GvpC(TI1B)
return TI1B | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xigm(Wy9G: str) -> ngu_:\n TI1B = uAzu.get_driver(Wy9G)\n VLD1.set_driver(TI1B)\n GvpC(TI1B)\n return TI1B",
"def aDzh():\n if not jJDz.DRIVER:\n jJDz.DRIVER = jJDz(browser=jJDz.BROWSER)\n return jJDz.DRIVER",
"def aDzh():\n return E_qD",
"def aDzh(YKHO) -> cSpz:\n return Y... | [
"0.700199",
"0.69166374",
"0.68630326",
"0.65081966",
"0.64042825",
"0.6364354",
"0.63482636",
"0.6298568",
"0.62944907",
"0.6287494",
"0.6287494",
"0.62864155",
"0.6262564",
"0.622558",
"0.61626065",
"0.61328816",
"0.6119733",
"0.61092466",
"0.6086845",
"0.6086484",
"0.60781... | 0.6395892 | 5 |
Assert that a minimal comment can be created. | def YCaP(cuiw):
aM_I = jY1u()
aM_I.comment = 'some words'
aM_I.save()
assert aM_I.id is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkt8(YKHO):\n pass",
"def wkt8(YKHO):\n pass",
"def qufj(YKHO):\n pass",
"def qdNU(YKHO):\n Z9rn = jY1u.objects.get(content='Woozle Wazzle?')\n YKHO.assertTrue(Z9rn.is_valid_comment())",
"def BziP(YKHO):\n Ylbp = YKHO.client.post(n9t6, {'movie': '5', 'comment': ''})\n YKHO.assertEq... | [
"0.77021277",
"0.77021277",
"0.7435648",
"0.72766143",
"0.7159791",
"0.70130986",
"0.70130986",
"0.6929953",
"0.6879953",
"0.68695223",
"0.6860514",
"0.6846225",
"0.68245643",
"0.6782698",
"0.67712283",
"0.67712283",
"0.67712283",
"0.67712283",
"0.67712283",
"0.6747671",
"0.6... | 0.7430937 | 3 |
Assert that attempting to delete a filing will raise a BusinessException. | def JvU1(cuiw):
from legal_api.exceptions import BusinessException
Z9rn = DiQN()
with trZe.raises(BusinessException) as zK6_:
cuiw.delete(Z9rn)
cuiw.commit()
assert zK6_.value.status_code == qed_.FORBIDDEN
assert zK6_.value.error == 'Deletion not allowed.' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _4cr(YKHO):\n with YKHO.assertRaises(OqdL):\n nXg_ = UCvj(sender__owner__email='help@test.me', value=80)\n nXg_.delete()",
"def L2jI(cuiw):\n Z9rn = DiQN()\n with trZe.raises(qTNt) as zK6_:\n Z9rn.delete()\n assert zK6_.value.status_code == qed_.FORBIDDEN\n assert zK6_.val... | [
"0.7115517",
"0.70354307",
"0.6766638",
"0.6737131",
"0.66977406",
"0.66741973",
"0.6629404",
"0.6605752",
"0.6573941",
"0.6563536",
"0.6547612",
"0.6495196",
"0.6493955",
"0.64877254",
"0.6467821",
"0.64505166",
"0.6430692",
"0.6414666",
"0.64083934",
"0.6407933",
"0.6368155... | 0.6845812 | 2 |
Assert the comment json serialization works correctly. | def O2Id(cuiw):
Ilxn = 'CP7654321'
Fg_i = sNFa(Ilxn)
eHNT = QU_9(Fg_i, KSfR)
Z9rn = DiQN(Fg_i, eHNT, 'a comment')
wzkt = qcWV.datetime(1970, 1, 1, 0, 0).replace(tzinfo=qcWV.timezone.utc)
with OjI9(wzkt):
assert Z9rn.json == {'comment': {'id': Z9rn.id, 'submitterDisplayName': None, 'comme... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gFdE(YKHO):\n YKHO.assertEqual(YKHO._comment.comment, YKHO._comment_str)",
"def d_MM(YKHO):\n YKHO.assertEqual(YKHO.transport.comment, YKHO.comment)",
"def wkt8(YKHO):\n geh0 = YKHO.client.post('/api/v1/comment', data=qQXR.dumps(YKHO.comment_data), content_type='application/json')\n Ylbp = qQXR... | [
"0.75770324",
"0.7411097",
"0.7361969",
"0.73275304",
"0.73275304",
"0.73275304",
"0.73275304",
"0.73275304",
"0.72966266",
"0.7225684",
"0.7225684",
"0.70984024",
"0.7002459",
"0.7002459",
"0.6951458",
"0.6925387",
"0.6907499",
"0.6907499",
"0.686289",
"0.6848143",
"0.682853... | 0.715859 | 11 |
Assert that the comment is saved to the session but not committed. | def zWBF(cuiw):
from sqlalchemy.orm.session import Session
aM_I = jY1u()
assert not cuiw.new
assert not Session.object_session(aM_I)
aM_I.save_to_session()
assert aM_I.id is None
assert cuiw.new
assert Session.object_session(aM_I) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXxu(cuiw):\n from sqlalchemy.orm.session import Session\n aM_I = jY1u()\n aM_I.timestamp = dBO1\n aM_I.comment = 'a comment'\n assert not cuiw.new\n assert not Session.object_session(aM_I)\n aM_I.save()\n assert aM_I.id\n assert not cuiw.dirty\n assert Session.object_session(aM_I... | [
"0.78164345",
"0.7717374",
"0.7621012",
"0.7292752",
"0.67894053",
"0.6771906",
"0.6736372",
"0.6702613",
"0.66554093",
"0.6639474",
"0.6581354",
"0.6581354",
"0.6575409",
"0.6575409",
"0.6575409",
"0.6575409",
"0.6575409",
"0.6568197",
"0.6568197",
"0.6565498",
"0.6535538",
... | 0.7335868 | 3 |
Return pressure in hPa as float. | def MLFu(YKHO):
return YKHO.p / 256.0 / 100.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJ2p(YKHO) -> float:\n YKHO._read_temperature()\n Yh3e = YKHO._read24(247) / 16\n CIn9 = float(YKHO._t_fine) / 2.0 - 64000.0\n AhCl = CIn9 * CIn9 * YKHO._pressure_calib[5] / 32768.0\n AhCl = AhCl + CIn9 * YKHO._pressure_calib[4] * 2.0\n AhCl = AhCl / 4.0 + YKHO._pressure_calib[3] * 65536.0\n ... | [
"0.7751112",
"0.764322",
"0.74783677",
"0.7393299",
"0.73206323",
"0.7320201",
"0.7309137",
"0.7296542",
"0.7296542",
"0.7296542",
"0.7296542",
"0.72306824",
"0.72288615",
"0.7224445",
"0.7209921",
"0.71647584",
"0.7161067",
"0.7145421",
"0.7127598",
"0.70419896",
"0.70383096... | 0.75651526 | 2 |
Return one byte from data as a signed byte. | def HLXz(nPrm, d6pt):
YB8B = nPrm[d6pt]
return (YB8B & 127) - (YB8B & 128) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IJav(YKHO):\n YB8B = MZ6z('B' if not YKHO.signed else 'b', YKHO.readAt(YKHO.offset, 1))[0]\n YKHO.offset += 1\n return YB8B",
"def uHiI(YKHO, Bk1u):\n YB8B = YKHO.read_unsigned_byte(Bk1u)\n if YB8B >= epAf.ceil(255 / 2):\n YB8B = ((YB8B ^ 255) + 1) * -1\n return YB8B",
"def FQUS(YK... | [
"0.71222657",
"0.69766694",
"0.6836835",
"0.67061883",
"0.6595994",
"0.65565556",
"0.6545584",
"0.63954526",
"0.6361773",
"0.6272991",
"0.6254846",
"0.62462",
"0.6226067",
"0.61971456",
"0.61915547",
"0.6170368",
"0.6170368",
"0.61351454",
"0.61327165",
"0.61074245",
"0.60975... | 0.6438211 | 7 |
Return one byte from data as an unsigned byte. | def RVpK(nPrm, d6pt):
YB8B = nPrm[d6pt]
return YB8B & 127 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P6bq(YKHO, nPrm):\n return YKHO.unpacker.unpack(nPrm)[0]",
"def PcwQ(YKHO):\n return YKHO._request(1)[0]",
"def FQUS(YKHO):\n if YKHO.o + 1 > len(YKHO.data):\n raise EOFError()\n YKHO.o += 1\n return BlNT.unpack_from('<B', YKHO.data, YKHO.o - 1)[0]",
"def IJav(YKHO):\n YB8B = MZ6... | [
"0.7076362",
"0.6864483",
"0.6695515",
"0.6653806",
"0.6602297",
"0.6580551",
"0.65314615",
"0.6522933",
"0.6484643",
"0.64157546",
"0.64019054",
"0.6380003",
"0.6374149",
"0.6359039",
"0.6333674",
"0.632237",
"0.632237",
"0.62753296",
"0.62446606",
"0.6232294",
"0.6190078",
... | 0.69728225 | 1 |
Compute the canny edges of the image and return the connected regions found. | def O7cZ(YKHO) -> x1iM[pWAp]:
PdV9 = RDhP.canny(YKHO.image, low_threshold=YKHO.detection_canny_settings['percentiles'][0], high_threshold=YKHO.detection_canny_settings['percentiles'][1], use_quantiles=True, sigma=YKHO.detection_canny_settings['sigma'])
MsNj = Tcon.label(PdV9)
zQZR = Tcon.regionprops(MsNj, i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xD4o(UFp3):\n mC4V = XC5k.Canny(UFp3, 100, 200)\n return mC4V",
"def IqSK(LNo8, RZHe=50, YGOA=150):\n return XC5k.Canny(LNo8, RZHe, YGOA)",
"def gdBy(LNo8, IRGi=85, h2pn=255):\n return XC5k.Canny(LNo8, IRGi, h2pn)",
"def E9p8(YKHO):\n qLBR = XC5k.Canny(YKHO.image, 50, 240)\n return qLBR... | [
"0.80828965",
"0.74117666",
"0.7405042",
"0.7383654",
"0.72281057",
"0.716737",
"0.7127416",
"0.7123753",
"0.71218663",
"0.70850325",
"0.7066231",
"0.7066231",
"0.7066231",
"0.7066231",
"0.7066231",
"0.7066231",
"0.7066231",
"0.7066231",
"0.7066231",
"0.7066231",
"0.7066231",... | 0.7523914 | 1 |
Plot the low contrast ROIs to an axes. | def BSw4(YKHO, MPlV: plt.Axes):
cnXz, = MPlV.plot([Zmw9.contrast for Zmw9 in YKHO.low_contrast_rois], marker='o', color='m', label='Contrast')
MPlV.axhline(YKHO._low_contrast_threshold, color='m')
MPlV.grid(True)
MPlV.set_title('Low-frequency Contrast')
MPlV.set_xlabel('ROI #')
MPlV.set_ylabel('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SCtk(YKHO, jDK_=None):\n if jDK_ is None:\n LZpg, jDK_ = QrM1.subplots()\n else:\n jDK_ = jDK_.twinx().twiny()\n maxY = oyIN.array(list(YKHO.rois.keys()), dtype=int)\n A03J = [Zmw9.contrast_constant for Zmw9 in YKHO.rois.values()]\n LTIa = jDK_.plot(maxY, A03J)\n jDK_.margins(0.... | [
"0.6753266",
"0.6734788",
"0.66508675",
"0.6286449",
"0.6171224",
"0.595469",
"0.5888224",
"0.58158565",
"0.579508",
"0.5763434",
"0.5750142",
"0.57045",
"0.5679252",
"0.56671536",
"0.56079125",
"0.55952656",
"0.5554353",
"0.5554048",
"0.55401134",
"0.55318",
"0.5517405",
"... | 0.81271935 | 0 |
Test to see if the NDRF object has an 'Axes' object. | def XhJi():
assert hasattr(Sr2h, 'axes') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EkMQ(MPlV):\n if MPlV is None:\n MPlV = QrM1.subplot()\n elif not isinstance(MPlV, FfwJ.Axes):\n raise ValueError('`axes` must be an instance of `matplotlib.axes.Axes`')\n return MPlV",
"def PHhT(YKHO, wl_9):\n return wl_9 in [aNZO.name for aNZO in YKHO.axes]",
"def MFtd(YKHO, MPl... | [
"0.747959",
"0.68490785",
"0.6605338",
"0.65516883",
"0.6510207",
"0.63892454",
"0.6139633",
"0.6127134",
"0.6091068",
"0.6091068",
"0.5980032",
"0.58918345",
"0.5891118",
"0.58809066",
"0.5853108",
"0.5851014",
"0.5847132",
"0.58133006",
"0.57917494",
"0.57906294",
"0.577164... | 0.746046 | 1 |
Test to see if the 'Axis' object labels are correctle set to None. | def n3VZ():
assert Sr2h.axes[0].label is None
assert Sr2h.axes[1].label is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Gsp(YKHO):\n VoLU = False\n IICq = ''\n dLEr = ''\n aNZO = YKHO._plot(xlabel=VoLU, ylabel=IICq)\n YKHO._checkAxisLabels(aNZO, dLEr, dLEr)",
"def cPfJ(YKHO):\n if YKHO.X_labels is not None:\n assert YKHO.X is not None\n assert YKHO.view_converter is None\n assert YKHO.X... | [
"0.7740937",
"0.6672535",
"0.66005206",
"0.65069956",
"0.61368436",
"0.6120588",
"0.6094202",
"0.604034",
"0.60305774",
"0.60267836",
"0.59579813",
"0.5936571",
"0.59080696",
"0.5896053",
"0.5885481",
"0.5867413",
"0.5845199",
"0.5825301",
"0.58239126",
"0.58171624",
"0.57927... | 0.8174318 | 0 |
Test the default 'Axis' objects coordinates. | def Jfxk():
assert oyIN.array_equal(oyIN.arange(9), Sr2h.axes[0].coordinates)
assert oyIN.array_equal(oyIN.arange(10), Sr2h.axes[1].coordinates) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def niyU():\n assert type(Sr2h.axes[0].mapper) is qMjm\n assert type(Sr2h.axes[1].mapper) is qMjm",
"def AqfH():\n assert len(Sr2h.axes) == 2",
"def LoxR():\n assert Cd5b(1, 0, 0).axis() == 'x'\n assert Cd5b(-1, 0, 0).axis() == 'x'\n assert Cd5b(0, 1, 0).axis() == 'y'\n assert Cd5b(0, -1, ... | [
"0.7380113",
"0.7055096",
"0.6956142",
"0.6948384",
"0.6877303",
"0.6756158",
"0.6754124",
"0.6686866",
"0.63237405",
"0.6266269",
"0.61602056",
"0.6107378",
"0.6086116",
"0.60615253",
"0.604848",
"0.6038385",
"0.59571147",
"0.5939464",
"0.5898983",
"0.58958256",
"0.5887557",... | 0.7819722 | 0 |
Test 'Axes' objct behavior upon changing one of the 'Axis' objects 'label' attribute value. | def oCkN():
jpZb = Sr2h.copy('A')
jpZb.axes[0].label = 'j'
assert hasattr(jpZb.axes, 'j')
jpZb.axes[1].label = 'i'
assert hasattr(jpZb.axes, 'i')
jpZb.axes.i.handedness = 'L'
jpZb.axes.j.handedness = 'L'
cPd5 = jpZb.copy('A')
assert cPd5.axes[0].label == 'j'
assert cPd5.axes[1].l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n3VZ():\n assert Sr2h.axes[0].label is None\n assert Sr2h.axes[1].label is None",
"def _Gsp(YKHO):\n VoLU = False\n IICq = ''\n dLEr = ''\n aNZO = YKHO._plot(xlabel=VoLU, ylabel=IICq)\n YKHO._checkAxisLabels(aNZO, dLEr, dLEr)",
"def hyeo():\n jpZb = Sr2h.copy('A')\n jpZb.axes[0].... | [
"0.738857",
"0.6965411",
"0.67751986",
"0.6592143",
"0.6524644",
"0.63319826",
"0.6308161",
"0.6295242",
"0.61891043",
"0.61720526",
"0.6121456",
"0.60898876",
"0.6058003",
"0.60467815",
"0.59713507",
"0.59697956",
"0.5913508",
"0.58714986",
"0.5859231",
"0.58565587",
"0.5853... | 0.0 | -1 |
Test NDRefFram.coordinate_recarray expected values. | def oTFr():
jpZb = tdtO.copy('A')
o4D3 = oyIN.arange(4)
nxyw = oyIN.arange(3)
JRYC = oyIN.dtype([('axis_0', '<f8'), ('axis_1', '<f8')])
fuBA, EcVT = oyIN.meshgrid(nxyw, o4D3)
jcPU = oyIN.vstack((fuBA.T.ravel(), EcVT.T.ravel())).T.tolist()
jcPU = [tuple(BHsk) for BHsk in jcPU]
hwlK = oyIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AqA(YKHO):\n ezWE = oyIN.array(YKHO.atom)\n YKHO.assertTupleEqual(ezWE.shape, (4,))\n YKHO.assertEqual(ezWE[0], YKHO.atom.atomic_number)\n YKHO.assertTrue(oyIN.allclose(ezWE[1:], YKHO.atom.coords_fractional))",
"def B0oc():\n jpZb = tdtO.copy('A')\n jpZb.spacing = oyIN.ones(2) * 2\n ZMl... | [
"0.650839",
"0.64120555",
"0.6407529",
"0.63693386",
"0.6365409",
"0.63505465",
"0.6318327",
"0.62348133",
"0.6212449",
"0.6200154",
"0.61807793",
"0.61635494",
"0.6160796",
"0.6135582",
"0.6108099",
"0.61080635",
"0.61070776",
"0.6103759",
"0.61033463",
"0.60793614",
"0.6054... | 0.7887518 | 0 |
Check if TLSALPN01 challenge is supported on this machine. This implies that a recent version of OpenSSL is installed (>= 1.0.2), or a recent cryptography version shipped with the OpenSSL library is installed. | def AtMG() -> bool:
return hasattr(EzXZ.Connection, 'set_alpn_protos') and hasattr(EzXZ.Context, 'set_alpn_select_callback') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cFd3(gP7j):\n hlel = True\n if HwRy.version_info < (3, 7):\n vzeF.error('PyISY cannot use HTTPS: Invalid Python version. See docs.')\n hlel = False\n if 'PROTOCOL_TLSv1_1' not in dir(i5iB):\n vzeF.error('PyISY cannot use HTTPS: Compiled against old OpenSSL ' + 'library. See docs.'... | [
"0.61311686",
"0.5995512",
"0.58825105",
"0.584362",
"0.5824691",
"0.5798",
"0.5765367",
"0.57275736",
"0.5703915",
"0.5686407",
"0.56149817",
"0.55966455",
"0.5586937",
"0.55782866",
"0.5578159",
"0.55766207",
"0.556019",
"0.55180097",
"0.5516706",
"0.54589874",
"0.54451656"... | 0.67675745 | 0 |
r"""Compute the neutron energy from wavelength. The result is | def Pe0X(*, __d3: Variable) -> iQnE:
Z9rn = BxYt(Sa_m.to_unit(PtXs.h ** 2 / 2 / PtXs.m_n, Sa_m.units.meV * EMuN(__d3) ** 2), __d3)
return Z9rn / __d3 ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UyAv(YKHO):\n SUAR = 0.0\n for YRbF in range(YKHO.data.natom):\n lRYc = YKHO.data.atomcoords[0][YRbF]\n Et9P = YKHO.data.atomnos[YRbF]\n for r845 in range(YRbF + 1, YKHO.data.natom):\n Odq0 = YKHO.data.atomcoords[0][r845]\n Kjd7 = YKHO.data.atomnos[r845]\n ... | [
"0.6949712",
"0.6896378",
"0.68381274",
"0.67462546",
"0.6706718",
"0.66959244",
"0.6641105",
"0.6630265",
"0.65859735",
"0.64716315",
"0.643932",
"0.64060414",
"0.6383778",
"0.63778347",
"0.63527673",
"0.6317255",
"0.63139176",
"0.62784797",
"0.62742305",
"0.6260461",
"0.621... | 0.7216497 | 0 |
Unpack vector of hkl indices into separate variables. | def TTdR(*, V2Hq: Variable) -> AzJI[iQnE, iQnE, iQnE]:
return (V2Hq.fields.x, V2Hq.fields.y, V2Hq.fields.z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyJP(CG54, ZWCE, N0DV=False):\n Bu_I = CG54.indx[ZWCE['u']]\n ZQGm = CG54.indx[ZWCE['du']]\n h16r = CG54.indx[ZWCE['ddu']]\n k7Nc = slice(Bu_I.stop, CG54.ptr[-3])\n U2t3 = slice(0, CG54.ptr[-3])\n QBs8(Bu_I.stop == CG54.n_dof[ZWCE['u']])\n QBs8(ZQGm.start == k7Nc.stop)\n QBs8(h16r.start... | [
"0.5522874",
"0.547457",
"0.54668653",
"0.5414482",
"0.53732824",
"0.5363311",
"0.5353738",
"0.5312395",
"0.52984565",
"0.5256656",
"0.52501404",
"0.5245336",
"0.5222401",
"0.51989",
"0.5192018",
"0.5185972",
"0.5169301",
"0.5158697",
"0.5144761",
"0.5097681",
"0.5097388",
... | 0.7020179 | 0 |
Returns a list of filter rules that exist on the device | def BX8i(YKHO) -> list:
nVWr = YKHO.device.authenticated_request('GET', f'firewall/filter/searchRule')
if 'rows' in nVWr:
return JhHK(nVWr['rows'])
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XASo(YKHO):\n NArs = {}\n MOPg = {'Authorization': 'Bearer ' + YKHO.oauth2_bearer_token}\n geh0 = G4JS.get(YKHO.filter_rules_url, headers=MOPg, params=NArs)\n return geh0.json()",
"def BX8i(YKHO):\n return YKHO.rules",
"def bnVr(YKHO):\n return YKHO.rule_model.objects.filter(scanner=YKHO.... | [
"0.7136584",
"0.68658966",
"0.68511695",
"0.67286015",
"0.6712123",
"0.670407",
"0.6628766",
"0.65936893",
"0.6590822",
"0.6535861",
"0.64806515",
"0.64657533",
"0.6418074",
"0.64137024",
"0.6376311",
"0.62776834",
"0.6274537",
"0.627233",
"0.62705106",
"0.62631875",
"0.62513... | 0.77949363 | 0 |
Lemmatize a list of documents. | def pJRT(YKHO, nPrm: List[str], fPyG=(1, 1), Ep8u=10000, NyTJ=1) -> jd6F[x1iM[str], ImMB, None]:
UINy = YKHO.batch_size or Ep8u
vJm0 = YKHO.ngram_range or fPyG
sqn5 = YKHO.n_threads or NyTJ
for YRbF, A97Q in enumerate(YKHO.model.pipe(nPrm, batch_size=UINy, n_threads=sqn5)):
A1xJ = eNCK.from_iter... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CA6d(YKHO, rrSk):\n return [YKHO.lemmatize_document(C13M) for C13M in rrSk]",
"def glG9(d_Go):\n LkXt = GFnk()\n return [[LkXt.lemmatize(eOtH) for eOtH in A97Q] for A97Q in d_Go]",
"def kgyg(YKHO, C13M):\n aM4X = C13M.split()\n QfZf = [YKHO.lemmatizer.lemmatize(GIN8) if GIN8 not in YKHO.lemm... | [
"0.7388834",
"0.7366212",
"0.73505735",
"0.7183192",
"0.70887905",
"0.69705003",
"0.6848813",
"0.6831426",
"0.6592236",
"0.65745455",
"0.65523064",
"0.65484643",
"0.6496866",
"0.64649177",
"0.6425992",
"0.6336201",
"0.63035125",
"0.6257634",
"0.62384164",
"0.62363786",
"0.621... | 0.7067463 | 5 |
Make ngrams from a list of tokens/lemmas | def b_xr(YKHO, DumB, IvnW=True):
if YKHO.alphas_only is None:
ngrm = IvnW
else:
ngrm = YKHO.alphas_only
if ngrm:
S86P = lambda WKvO: WKvO.isalpha() and (not WKvO.isspace()) and (WKvO not in YKHO.stopwords)
else:
S86P = lambda WKvO: not WKvO.isspace() and WKvO not in YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RbIv(EE8F):\n hIub = list(SMR4(EE8F, 2)) + list(SMR4(EE8F, 3))\n hIub = [' '.join(CG35) for CG35 in hIub]\n return hIub",
"def pCSA(s2mk, T4Wy):\n for YRbF in range(len(s2mk) - T4Wy + 1):\n yield tuple(s2mk[YRbF:YRbF + T4Wy])",
"def fc7M(WrFl, exwG=1, gzes=' '):\n gzes = ' ' if gzes i... | [
"0.7502703",
"0.7363771",
"0.73593694",
"0.71861017",
"0.7178208",
"0.71710247",
"0.713539",
"0.71284753",
"0.7098518",
"0.7075202",
"0.7072068",
"0.70366645",
"0.70258677",
"0.70129126",
"0.695819",
"0.6948374",
"0.6936339",
"0.69307166",
"0.6911154",
"0.68997604",
"0.688156... | 0.0 | -1 |
Compute the conditional entropy for attribute. Utility function to compute the conditional entropy (which is always over the 'decision' variable or goal), given a specified attribute. | def r7xb(xC3W, D1Qf, xi3E, _73Q):
prbR = 0.0
x8Nn = oyIN.zeros((len(xC3W[1]), len(xi3E[1])))
iKvj = oyIN.zeros(len(xC3W[1]))
K1q9 = _73Q.shape[0]
for aTqo in _73Q:
iKvj[aTqo[D1Qf]] += 1
x8Nn[aTqo[D1Qf], aTqo[-1]] += 1
iKvj = iKvj / K1q9
x8Nn = x8Nn / K1q9
iKvj = oyIN.wher... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JxN0(vcn7, xC3W, BWXx):\n jWLi, VLpm = nzlA(vcn7, xC3W, BWXx)\n wjRY = jWLi + VLpm\n return oqGu([float(jWLi) / wjRY, float(VLpm) / wjRY])",
"def sWPC(YKHO, EcVT, fuBA):\n pass",
"def oqGu(nPrm, xC3W):\n oeNL = V3hn = 0\n gBjs = xC3W[1]\n xC3W = xC3W[0]\n for mvm2 in nPrm:\n ... | [
"0.7503863",
"0.71413255",
"0.7079942",
"0.6808809",
"0.65717334",
"0.6471437",
"0.6464544",
"0.6400489",
"0.6386105",
"0.6348157",
"0.6282293",
"0.6245151",
"0.6225008",
"0.6211932",
"0.61956483",
"0.6192766",
"0.6186749",
"0.6153854",
"0.61409855",
"0.614029",
"0.61126626",... | 0.6985391 | 3 |
build the matrix that maps the Fourier series to the visibility in terms of REALVALUED entries only. (matrix size double) | def V4C_(E3D9, r9Ty, mZtD, UKqa, Hu0o, TYb8=False):
H45Y = r9Ty.shape[1]
if TYb8:
return [aly8(E3D9, r9Ty[:, hXOC], mZtD[:, hXOC], UKqa, Hu0o) for hXOC in range(H45Y)]
else:
return aJJu.block_diag(*[aly8(E3D9, r9Ty[:, hXOC], mZtD[:, hXOC], UKqa, Hu0o) for hXOC in range(H45Y)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yvLo(sLQ5, U1Zv):\n inJC = []\n meHc = 0.0\n SQvX = None\n DR2N = sLQ5[:, 0].size\n for or8S in range(DR2N):\n bF8E = sLQ5[or8S]\n x0eS = auEa.get_month(bF8E)\n lO87 = auEa.get_year(bF8E)\n ItVr = aJVB.get_entry_by_year_and_month(lO87, x0eS, U1Zv)\n cmva = aJVB... | [
"0.5905332",
"0.5850279",
"0.5798634",
"0.57598984",
"0.5741099",
"0.5727421",
"0.56626964",
"0.566178",
"0.5630964",
"0.5621706",
"0.5613389",
"0.56060064",
"0.5594609",
"0.55681306",
"0.55361617",
"0.5495944",
"0.54923356",
"0.54902506",
"0.5469994",
"0.54650486",
"0.542533... | 0.0 | -1 |
build the matrix that maps the Fourier series to the visibility in terms of REALVALUED entries only. (matrix size double) | def aly8(E3D9, yzfG, a7Dw, UKqa, Hu0o):
return oyIN.dot(G2V_(WAgV(E3D9, yzfG, a7Dw)), aJJu.block_diag(UKqa, Hu0o)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yvLo(sLQ5, U1Zv):\n inJC = []\n meHc = 0.0\n SQvX = None\n DR2N = sLQ5[:, 0].size\n for or8S in range(DR2N):\n bF8E = sLQ5[or8S]\n x0eS = auEa.get_month(bF8E)\n lO87 = auEa.get_year(bF8E)\n ItVr = aJVB.get_entry_by_year_and_month(lO87, x0eS, U1Zv)\n cmva = aJVB... | [
"0.59043735",
"0.5849638",
"0.579709",
"0.57585406",
"0.5740429",
"0.5726661",
"0.56617856",
"0.56607956",
"0.5629944",
"0.5619432",
"0.56131124",
"0.5605545",
"0.5593417",
"0.5567267",
"0.55353904",
"0.5495489",
"0.5489939",
"0.5489585",
"0.5468679",
"0.54625016",
"0.5424142... | 0.0 | -1 |
Returns the mean of the distribution. | def DH4Z(YKHO):
raise NotImplementedError('Implement in a child class.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO) -> float:\n return YKHO._distribution.mean()",
"def JBMS(IZxK):\n return oyIN.mean(IZxK)",
"def DH4Z(YKHO):\n return YKHO.distr.mean(loc=YKHO.loc, scale=YKHO.scale)",
"def JBMS(YKHO):\n return YKHO._mean",
"def JBMS(YKHO):\n return YKHO._mean",
"def JBMS(YKHO):\n return Y... | [
"0.8558413",
"0.8500152",
"0.8410595",
"0.830518",
"0.830518",
"0.830518",
"0.830518",
"0.830518",
"0.8296491",
"0.82899463",
"0.8287552",
"0.8274873",
"0.8228603",
"0.8228603",
"0.8228603",
"0.8210225",
"0.8165697",
"0.81437683",
"0.8033866",
"0.8004601",
"0.7985794",
"0.7... | 0.0 | -1 |
Returns the variance of the distribution. | def M5jT(YKHO):
raise NotImplementedError('Implement in a child class.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(YKHO):\n return YKHO.base_dist.variance * YKHO.scale ** 2",
"def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL",
"def I8JS(YKHO):\n return YKHO._rv.var()",
"def I8JS(YKHO):\n return YKHO._variance",
"def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2)... | [
"0.85393655",
"0.8390008",
"0.8365483",
"0.8333163",
"0.83084404",
"0.83071995",
"0.82504344",
"0.8244741",
"0.8193369",
"0.81499684",
"0.8033214",
"0.7975206",
"0.79666185",
"0.78999704",
"0.78509605",
"0.7844419",
"0.78438616",
"0.7757527",
"0.7682977",
"0.76772565",
"0.765... | 0.6707354 | 94 |
Returns pdf of distribution at x | def kzAT(YKHO, WKvO):
raise NotImplementedError('Implement in a child class.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzAT(YKHO, WKvO):\n return YKHO.distr.pdf(WKvO)",
"def kzAT(YKHO, WKvO):\n return YKHO.density(WKvO) / YKHO.total",
"def kzAT(WKvO):\n return 2 / XTiz.pi * XTiz.sin(0.5 * WKvO) ** 2",
"def kzAT(WKvO):\n return (mhAC(-1, 1)(WKvO) + mhAC(1, 0.5)(WKvO)) / 2.0",
"def kzAT(YKHO, WKvO):\n retu... | [
"0.9067473",
"0.86793756",
"0.85185134",
"0.8502887",
"0.8449781",
"0.83580416",
"0.83474755",
"0.8338232",
"0.8329962",
"0.8312003",
"0.829244",
"0.82793534",
"0.8277118",
"0.8259052",
"0.824201",
"0.82374185",
"0.8204724",
"0.81997836",
"0.8180251",
"0.817495",
"0.8172504",... | 0.0 | -1 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)",
"def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)",
"def JFat(t_yv):\n try:\n ... | [
"0.86645055",
"0.8190357",
"0.8175001",
"0.8163073",
"0.80863976",
"0.80863976",
"0.80863976",
"0.80863976",
"0.8086095",
"0.80784917",
"0.8077746",
"0.8073863",
"0.8065137",
"0.8059543",
"0.80573195",
"0.8054556",
"0.8054348",
"0.80456185",
"0.80456185",
"0.80456185",
"0.804... | 0.80625504 | 15 |
Assert empty input files raises error. | def fBJd():
try:
with open(Hy7s.path.join(sWux, 'example.mapchete')) as FQNo:
GPtr = jth9(eJb6.load(FQNo))
GPtr.update(config_dir=sWux)
del GPtr['input_files']
Ijaw(GPtr)
raise Exception()
except UAju.MapcheteConfigError:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_vO(YKHO):\n YKHO.assertRaisesRegex(IOError, OlgP, kd0u.get_words, ACHI + 'empty.txt')",
"def n_vO(YKHO):\n YKHO.assertEquals(len(YKHO.parser.lines), 0)",
"def AZ35(YKHO):\n YKHO.assertAccepted([])",
"def n_vO(YKHO):\n eZ_W = 'does_not_exist.fasta'\n YKHO.assertFalse(Hy7s.path.isfile(eZ_W... | [
"0.7764213",
"0.75167936",
"0.75165975",
"0.750036",
"0.7412161",
"0.7291962",
"0.7183318",
"0.7114032",
"0.70953804",
"0.7054226",
"0.70320404",
"0.70133215",
"0.6952792",
"0.6945557",
"0.6943233",
"0.6939796",
"0.6919081",
"0.6890629",
"0.6867071",
"0.68393326",
"0.68341815... | 0.6922179 | 16 |
Test to admin update the news. | def Q9D8(YKHO):
YKHO.client.force_authenticate(YKHO.superuser)
YKHO.data['title'] = 'News 1'
geh0 = YKHO.client.put(YKHO.url, YKHO.data)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h1eD(YKHO):\n zZDi = uSgj()\n bW36 = KcAU(startup=zZDi)\n YKHO.assertNotEqual(bW36.title, 'django')\n FbDo = Pi2M('id', Exxh(bW36))\n with h0_g(YKHO, 'organizer.change_newslink'):\n geh0 = YKHO.post('newslink_update', startup_slug=zZDi.slug, newslink_slug=bW36.slug, data=dict(FbDo, title=... | [
"0.75573575",
"0.75389373",
"0.75340366",
"0.72945035",
"0.71043867",
"0.70429",
"0.6977983",
"0.69779587",
"0.69779587",
"0.6852836",
"0.6834273",
"0.6832333",
"0.682597",
"0.6759948",
"0.67594343",
"0.6751617",
"0.6745271",
"0.67405677",
"0.67306936",
"0.67042744",
"0.67040... | 0.7888559 | 0 |
Only superuser can update news. | def AGzn(YKHO):
YKHO.client.force_authenticate(YKHO.user)
YKHO.data['description'] = 'Important news...'
geh0 = YKHO.client.put(YKHO.url, YKHO.data)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r7QR(YKHO):\n s5ru = YKHO.create_article()\n bD7m = YKHO.single_article_url(s5ru)\n nPrm = {'article': {'title': 'Updated Title', 'body': 'Updated body'}}\n geh0 = YKHO.client.put(bD7m, nPrm, format='json')\n YKHO.http_403_forbidden(geh0)\n Ol8d = 'Authentication credentials were not provided... | [
"0.6493141",
"0.6481528",
"0.647402",
"0.6431755",
"0.6412815",
"0.6344293",
"0.6306924",
"0.6292138",
"0.6259871",
"0.6228219",
"0.61872",
"0.61658615",
"0.61621344",
"0.6134942",
"0.6130579",
"0.6123628",
"0.61083466",
"0.6098378",
"0.6096863",
"0.6090181",
"0.6053394",
"... | 0.66780543 | 0 |
Returns a list of neighbors that conflict with the node. | def sAs2(YKHO, rQ2r, Q6kx):
Vu7W = set()
zrIJ = rQ2r[Q6kx]
S4tx = 1
if YKHO.csp.unary_constraints[Q6kx][zrIJ] == 0:
Vu7W.add(Q6kx)
if Q6kx in YKHO.csp.binary_constraints:
A_IW = YKHO.csp.binary_constraints[Q6kx].keys()
for odbI in A_IW:
z8JI = rQ2r[odbI]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_IW(YKHO, Q6kx):\n try:\n Aofo = list(YKHO._graph.neighbors(Q6kx))\n except jHsn.NetworkXError:\n Aofo = []\n return Aofo",
"def A_IW(Q6kx):\n U5bT = []\n for exwG in Q6kx.neighbors:\n if exwG is not None:\n U5bT.append(exwG)\n return U5bT",
"def A_IW(YKHO... | [
"0.71538746",
"0.7122274",
"0.7094274",
"0.70870227",
"0.7004122",
"0.698906",
"0.69024897",
"0.69024897",
"0.69024897",
"0.68348664",
"0.68293196",
"0.6710508",
"0.667999",
"0.66731685",
"0.66561764",
"0.6597736",
"0.65973365",
"0.65943146",
"0.65682495",
"0.65474755",
"0.64... | 0.6494004 | 21 |
Determines if we already replied to the submission. | def rPzB(YKHO, hMNQ: str) -> bool:
EmMj = YKHO.db_handler.get_reply(hMNQ)
return len(EmMj) > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UkJD(YKHO):\n if YKHO.replied_at is not None:\n return True\n return False",
"def UkJD(YKHO):\n if YKHO.replied_at is not None:\n return True\n return False",
"def ILTj(aM_I):\n if type(aM_I) == r_IK.models.Comment:\n aM_I.refresh()\n Tj1O = aM_I.replies\n elif... | [
"0.79275614",
"0.79275614",
"0.7198989",
"0.67692167",
"0.66282696",
"0.6591197",
"0.6495182",
"0.6459551",
"0.64130825",
"0.6358449",
"0.6354566",
"0.63346106",
"0.63242877",
"0.62903965",
"0.6276895",
"0.6257136",
"0.6217816",
"0.6198977",
"0.61975014",
"0.61202276",
"0.610... | 0.7963235 | 0 |
Concatenate a list of strings or bytes objects to a string, possibly utf8 encoding it | def dXy3(DumB):
return ''.join(map(mvtF, DumB)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mhbq(Q6uT):\n return ENFq(JaxB(g9qP, Q6uT))",
"def npqU(KouY):\n return b''.join(KouY)",
"def zRD0(yv6U: list) -> str:\n return ''.join(map(chr, yv6U))",
"def GqSC(kcsq: Union[list, str]) -> str:\n if isinstance(kcsq, list):\n return ''.join([GqSC(WKvO) for WKvO in kcsq])\n else:\n ... | [
"0.7259425",
"0.694051",
"0.68516374",
"0.68078923",
"0.67207223",
"0.6685588",
"0.66615015",
"0.6611025",
"0.6586643",
"0.6569387",
"0.64239293",
"0.6405017",
"0.63887024",
"0.6324302",
"0.6320116",
"0.6320116",
"0.63163203",
"0.628131",
"0.6280513",
"0.6266011",
"0.6242405"... | 0.69744027 | 1 |
Strip illegal HTML tags from string text. | def nnPN(_R2e, deVW=ZE1p, Ze_i=hK3F, EnT1=True, nvUx=True):
wvEv = pCv5(valid=deVW, nasty=Ze_i, remove_javascript=EnT1, raise_error=nvUx)
wvEv.feed(_R2e)
wvEv.close()
return wvEv.getResult() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)",
"def zbe0(l5Ny):\n f65_ = ['a', 'abbr', 'acronym', 'b', 'blockquote', 'code', 'em', 'i', 'strong', 'u']\n return WxwX.clean(l5Ny, strip=True, tags=f65_)",
"def JZhs(l5Ny):\n import re\n x0SS = re.compile('<.*?>... | [
"0.82344705",
"0.8166562",
"0.8157355",
"0.8157355",
"0.8149526",
"0.81079906",
"0.80929536",
"0.80929536",
"0.80929536",
"0.80929536",
"0.80929536",
"0.80929536",
"0.80842936",
"0.80819666",
"0.80819666",
"0.80819666",
"0.80726635",
"0.80642146",
"0.8053443",
"0.80527943",
"... | 0.0 | -1 |
Tests user login with non existent email&password | def SDJL(YKHO):
LOzg = {'email': 'test@gmail.com', 'password': 'testpassword'}
Ylbp = YKHO.client().post('/auth/login/', data=LOzg)
Aofo = qQXR.loads(Ylbp.data.decode())
YKHO.assertEqual(Ylbp.status_code, 401)
YKHO.assertEqual(Aofo['message'], 'Invalid email or password, Please try again') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ndBm(YKHO):\n YKHO.assertFalse(YKHO.flavia.login('fnshemerirwe@gmail.com', '5236912'), msg='User can login with incorrect password')",
"def ThMv(YKHO):\n YKHO.assertFalse(YKHO.flavia.login('flagh@gdjj.com', '1234567890'), msg='User can login with incorrect email')",
"def RMk2(YKHO):\n ... | [
"0.8244549",
"0.8188016",
"0.8078516",
"0.79903376",
"0.7966918",
"0.79222023",
"0.7896107",
"0.7839825",
"0.78352886",
"0.7793087",
"0.77683836",
"0.77581555",
"0.7751117",
"0.77422404",
"0.7739206",
"0.7737395",
"0.7734156",
"0.77249557",
"0.77061075",
"0.76758254",
"0.7671... | 0.75890356 | 33 |
Set the group for this service. >> (Group) | def scR9(uOe2):
def KpVo(zVa7):
c_0p = type('Meta', (zVa7.Meta,), {'group': uOe2})
return type(zVa7.__name__, (zVa7,), {'Meta': c_0p})
return KpVo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QYWb(YKHO):\n YKHO.AUX('set_group,group=' + YKHO.group)",
"def QYWb(YKHO, uOe2):\n YKHO._group = uOe2",
"def aNPh(YKHO, *qIxc, **B2fa):\n pass",
"def scR9(YKHO, uOe2: Optional[Any]) -> None:\n YKHO.group = uOe2",
"def scR9(YKHO, uOe2):\n YKHO.ipcon.send_request(YKHO, Xg1t.FUNCTION_SET_GR... | [
"0.84374684",
"0.84014845",
"0.833813",
"0.81766385",
"0.80997384",
"0.80340827",
"0.7956416",
"0.7956416",
"0.7956416",
"0.7956416",
"0.7956416",
"0.7956416",
"0.7956416",
"0.7956416",
"0.7956416",
"0.75789106",
"0.73801893",
"0.7328721",
"0.7316313",
"0.72323716",
"0.719928... | 0.7579122 | 15 |
Convert IRAFstyle yes/no flag to a Python boolean. | def gyGa(USSV):
return USSV == YX0Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ve0U(WKvO):\n return 1 if WKvO == 'Yes' else 0",
"def Vdcv(BWXx):\n return BWXx in ('yes', 'true', 'on', 'aye', '1', 1, True)",
"def mIQw(ANfV: str) -> bool:\n return ANfV.lower().strip() in {'y', 'yes', '1'}",
"def oOc6(Ty9i):\n if Ty9i.lower() in ('yes', 'true', 't', 'y', '1'):\n ret... | [
"0.80089414",
"0.7704025",
"0.7674939",
"0.7658204",
"0.7653829",
"0.76066935",
"0.7600514",
"0.7600514",
"0.759723",
"0.7586255",
"0.7581535",
"0.7521815",
"0.7504693",
"0.7504486",
"0.75044525",
"0.7496924",
"0.749185",
"0.74886227",
"0.7477111",
"0.74760437",
"0.74637866",... | 0.8856242 | 0 |
Pull user based on id. | def yaX5(YKHO, uJjO):
CBIr = mv1M.by_id(uJjO)
if CBIr is None:
print(K6V8 + "'%s' user not found in database." % uJjO)
else:
print(SpbS + repr(CBIr)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)",
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr",
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr",
"def bt8D(id):\n Mkmy = G4JS.get(NKRf + '/user/' + str(id))\n CBIr = Mkmy.json()\n return CB... | [
"0.8188985",
"0.79131955",
"0.79131955",
"0.78973556",
"0.78108454",
"0.7671366",
"0.7632731",
"0.76284766",
"0.7616836",
"0.7616836",
"0.76011646",
"0.75957775",
"0.7593607",
"0.7593607",
"0.7593607",
"0.7593607",
"0.7593607",
"0.7593607",
"0.7593607",
"0.75820446",
"0.75683... | 0.0 | -1 |
Returns config.boot configuration file text. Other services that depend on this will have generatexorpconfig() hooks that are invoked here. Filename currently ignored. | def dum9(Emd4, Q6kx: CoreNode, Ux0P: str) -> str:
_Fei = 'interfaces {\n'
for YmHP in Q6kx.get_ifaces():
_Fei += f' interface {YmHP.name} {{\n'
_Fei += f'\tvif {YmHP.name} {{\n'
_Fei += ''.join(map(Emd4.addrstr, YmHP.ips()))
_Fei += Emd4.lladdrstr(YmHP)
_Fei += '\t}\n'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YKHO):\n j8eK = YKHO.config_path\n Fv2L = ''\n try:\n if EFYe(j8eK):\n Fv2L = str(open(j8eK).read()) + '\\n'\n except IOError:\n pass\n return Fv2L",
"def Nug2(YKHO):\n pmON = YKHO.config['PATH']['template_config']\n if pmON == YKHO.path_default_conf_json_:\... | [
"0.7263768",
"0.7174497",
"0.7089969",
"0.70720017",
"0.70582515",
"0.6965706",
"0.688669",
"0.68809474",
"0.6818614",
"0.6813634",
"0.6808351",
"0.677305",
"0.6770878",
"0.6769147",
"0.6735183",
"0.67268777",
"0.6704104",
"0.6695744",
"0.6684679",
"0.6663423",
"0.6657864",
... | 0.62556976 | 53 |
Create a new RootRemainder. | def FIMM(YKHO, tk5Y, K0A_):
YKHO.root = tk5Y
YKHO.remainder = K0A_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return f'RootRemainder({repr(YKHO.root)}, {repr(YKHO.remainder)})'",
"def tk5Y():\n return _TPe()",
"def _TPe(YKHO, *qIxc):\n return Zi6x.IntTools_Root_Root(YKHO, *qIxc)",
"def eLpg(YKHO):\n del YKHO.__root\n YKHO.__root = YKHO.Node(YKHO.__t, YKHO.__allocate())\n return",
... | [
"0.6139372",
"0.61055857",
"0.5869187",
"0.5671518",
"0.55869246",
"0.556702",
"0.5545375",
"0.5470617",
"0.5433637",
"0.53692573",
"0.52941936",
"0.5271774",
"0.52454305",
"0.52046394",
"0.51770747",
"0.5155415",
"0.5137574",
"0.51236093",
"0.5111737",
"0.51085097",
"0.51014... | 0.6705827 | 0 |
Create a new ``FixedUDivRemSqrtRSqrt``. | def FIMM(YKHO, pAX6, j0Pt, oPhP, uSI6, YAW3, nyPy):
assert uSI6 > 0
assert YAW3 >= 0
assert YAW3 <= uSI6
assert nyPy > 0
YKHO.dividend = g2y1.normalize(pAX6, (uSI6 + YAW3, False))
YKHO.divisor_radicand = g2y1.normalize(j0Pt, (uSI6, False))
YKHO.quotient_root = 0
YKHO.root_times_radicand ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PC6g(vPEI):\n if vPEI <= 0:\n return None\n if not isinstance(vPEI, basA):\n raise TypeError()\n\n def T29Z(tk5Y):\n return 1 >= tk5Y * tk5Y * vPEI\n tk5Y = vPEI.with_bits(0)\n for YRbF in reversed(range(tk5Y.bit_width)):\n wyPV = tk5Y.with_bits(tk5Y.bits | 1 << YRbF)... | [
"0.6184292",
"0.55792314",
"0.55015373",
"0.53001523",
"0.5230577",
"0.51663154",
"0.51491517",
"0.50762284",
"0.5055323",
"0.5027964",
"0.50034714",
"0.4962382",
"0.4957936",
"0.49478212",
"0.4929019",
"0.49272746",
"0.49024034",
"0.48971176",
"0.48963198",
"0.48870662",
"0.... | 0.47537518 | 37 |
Returns the IoU of two bounding boxes | def z9IC(knvf, IkxF, pD8k=False):
ywwl, E3D9 = (len(knvf), len(IkxF))
if pD8k:
JqUn, pvBw, hyHQ, TYrM = (knvf[:, 0], knvf[:, 1], knvf[:, 2], knvf[:, 3])
gSFI, KDnR, IrGj, iM_U = (IkxF[:, 0], IkxF[:, 1], IkxF[:, 2], IkxF[:, 3])
else:
JqUn, hyHQ = (knvf[:, 0] - knvf[:, 2] / 2, knvf[:, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plrc(MErA, ZnGJ):\n KK0L, _hgE, IgEf, AjNA = (MErA[0], MErA[1], ZnGJ[0], ZnGJ[1])\n OZPM, W6Dw, o9iJ, hTeg = (KK0L + MErA[2], _hgE + MErA[3], IgEf + ZnGJ[2], AjNA + ZnGJ[3])\n sA0R, Kphd = (max(KK0L, IgEf), min(OZPM, o9iJ))\n YijY, sIW6 = (max(_hgE, AjNA), min(W6Dw, hTeg))\n if Kphd < sA0R or sI... | [
"0.83965695",
"0.833223",
"0.8331644",
"0.8312673",
"0.8276368",
"0.8213512",
"0.81779075",
"0.806134",
"0.8048678",
"0.8047763",
"0.80424416",
"0.8013019",
"0.8007231",
"0.79926914",
"0.79926914",
"0.79774594",
"0.7962505",
"0.79583234",
"0.79462785",
"0.79285467",
"0.792019... | 0.0 | -1 |
takes start date from user and returns Tmin, Tavg, and Tmax for each date >= start date | def yKcO(yKcO):
return pz3A(cuiw.query(JfyU.min(TTg7.tobs), JfyU.avg(TTg7.tobs), JfyU.max(TTg7.tobs)).filter(TTg7.date >= yKcO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def syUx(yKcO='start_date'):\n kepv = qcWV.strptime('2016-08-01', '%Y-%m-%d').date()\n WQwL = cuiw.query(JfyU.max(J9Sm.tobs), JfyU.min(J9Sm.tobs), JfyU.avg(J9Sm.tobs)).filter(J9Sm.date >= kepv)\n aiyR = []\n for E5G1 in WQwL:\n btzU = {}\n btzU['TAVG'] = float(E5G1[2])\n btzU['TMAX... | [
"0.7304166",
"0.72429895",
"0.72429895",
"0.7228579",
"0.72217476",
"0.72217476",
"0.7193596",
"0.7185766",
"0.7171317",
"0.71648306",
"0.715685",
"0.715685",
"0.715685",
"0.7150618",
"0.7145127",
"0.7141821",
"0.7132484",
"0.7129025",
"0.7128898",
"0.7128898",
"0.7128898",
... | 0.58771306 | 80 |
takes start and end date from user and return Tmin, Tavg, and Tmax | def k57g(yKcO=None, Os4s=None):
return pz3A(cuiw.query(JfyU.min(TTg7.tobs), JfyU.avg(TTg7.tobs), JfyU.max(TTg7.tobs)).filter(TTg7.date >= yKcO).filter(TTg7.date <= Os4s)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def efrp(yKcO, Os4s):\n dixj = cuiw.query(g2W_.tobs).filter(JfyU.strftime(g2W_.date) < Os4s).filter(JfyU.striftime(g2W_.date) > yKcO).all()\n qqgr = oyIN.mean(dixj)\n T8H5 = oyIN.min(dixj)\n Np5D = oyIN.max(dixj)\n Qj1M = {'start_date': yKcO, 'end_date': Os4s, 'TMIN': T8H5, 'TAVG': qqgr, 'TMAX': Np5... | [
"0.7488673",
"0.74308157",
"0.7417843",
"0.7301332",
"0.7219947",
"0.7219947",
"0.7193714",
"0.7193714",
"0.7190904",
"0.7171517",
"0.7171517",
"0.7171517",
"0.71531916",
"0.715088",
"0.71368355",
"0.7118529",
"0.7118529",
"0.7118529",
"0.7118529",
"0.7118529",
"0.7118529",
... | 0.599732 | 69 |
Test parsing bool comparison operators. | def qoVZ(YKHO):
JWzj = YKHO.parser.parse_bool_op('=')
FqYq = YKHO.parser.parse_bool_op('<>')
ihPT = YKHO.parser.parse_bool_op('<')
KrjM = YKHO.parser.parse_bool_op('<=')
FQKq = YKHO.parser.parse_bool_op('>')
Ph0Y = YKHO.parser.parse_bool_op('=>')
YKHO.assertTrue(isinstance(JWzj, wvEv.BoolEqu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JMLd(YKHO):\n with YKHO.subTest(name='None'):\n YKHO.assertIsNone(LOnh.parse_bool(None))\n with YKHO.subTest(name='empty'):\n YKHO.assertIsNone(LOnh.parse_bool(''))\n with YKHO.subTest(name='true'):\n YKHO.assertTrue(LOnh.parse_bool('true'))\n YKHO.assertTrue(LOnh.parse_boo... | [
"0.7126069",
"0.71205455",
"0.7116436",
"0.70186794",
"0.698",
"0.6972046",
"0.69593126",
"0.6908119",
"0.68899506",
"0.6825786",
"0.6806108",
"0.6782139",
"0.6763353",
"0.6741645",
"0.6719311",
"0.66878605",
"0.6687145",
"0.6654424",
"0.65812874",
"0.6576569",
"0.6566026",
... | 0.8627776 | 0 |
Create a variables, an expression, and the symbol table. | def FCbF(YKHO):
YKHO.num10 = wvEv.Number('10')
YKHO.num15 = wvEv.Number('15')
YKHO.symbol_table = {'X': YKHO.num10, 'Y': YKHO.num15}
YKHO.varx = wvEv.Variable('X')
YKHO.vary = wvEv.Variable('Y')
YKHO.oper = wvEv.ArithmeticAdd()
YKHO.expr = wvEv.ArithmeticExpression(YKHO.varx, YKHO.oper, YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gqzH(YKHO):\n rmc3 = {seET.add: '+', seET.sub: '-', seET.mul: '*', seET.truediv: '/', seET.floordiv: '//', seET.mod: '%', seET.pow: '**', seET.neg: '-', seET.abs: 'abs', seET.and_: 'and', seET.or_: 'or', seET.eq: '==', seET.ne: '!=', seET.le: '<=', seET.ge: '>=', seET.lt: '<', seET.gt: '>'}\n return rmc3... | [
"0.6721697",
"0.628879",
"0.62820274",
"0.6116181",
"0.60752714",
"0.6045825",
"0.5914732",
"0.57739043",
"0.57696307",
"0.5729541",
"0.5729541",
"0.57123476",
"0.567955",
"0.5646353",
"0.5640759",
"0.55592555",
"0.5546168",
"0.55308825",
"0.5502197",
"0.5471809",
"0.5452551"... | 0.57888085 | 7 |
Returns embedding degree with respect to p | def CifA(ffYW: ZZ, T4Wy: int) -> int:
return PZtR(T4Wy)(ffYW).multiplicative_order() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tjON(YKHO, G1Hx):\n if not YKHO.prp[G1Hx]:\n return 0\n return 2 * YKHO.prp[G1Hx].phase + (1 if YKHO.my_all(G1Hx) else 0)",
"def tjON(XP5J):\n _g9D = oyIN.poly1d(oyIN.flipud(XP5J))\n return _g9D.order",
"def PlVk(V6IE, wjQX):\n pImw = Zxt2.spatial.distance.pdist(wjQX, metric='sqeuclid... | [
"0.6471912",
"0.64266104",
"0.6309193",
"0.62547255",
"0.6179127",
"0.60758096",
"0.6066741",
"0.60416096",
"0.6033641",
"0.59525484",
"0.5933593",
"0.59001136",
"0.58730465",
"0.5805808",
"0.5716982",
"0.57138354",
"0.5701939",
"0.56976056",
"0.56728274",
"0.56726664",
"0.56... | 0.7036442 | 0 |
position a tuple that represents where the knight is on the board possible_moves is a list of positions that the knight could move to without concern for size of the board the for loop retains elements from the possible_moves list that are valid given an 8x8 board returns a list that can be used for Player.validate_mov... | def CWgA(YKHO, dQgj, iBIi):
jzdc = dQgj[0]
Fg_i = dQgj[1]
yTej = [(jzdc - 2, Fg_i - 1), (jzdc - 2, Fg_i + 1), (jzdc + 2, Fg_i - 1), (jzdc + 2, Fg_i + 1), (jzdc - 1, Fg_i + 2), (jzdc + 1, Fg_i + 2), (jzdc - 1, Fg_i - 2), (jzdc + 1, Fg_i - 2)]
Zkyd = list(range(8))
IayW = []
for WKvO, LVAh in yTej... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IayW(YKHO, Rci7, FbH0):\n g5J1 = []\n Nw5o = Rci7[0]\n hzgj = int(Rci7[1:])\n wcqm = FbH0.get_palace(YKHO.get_team())\n S7Gm = FbH0.get_team_diag_palace(YKHO.get_team())\n for QSoX in [-1, 0, 1]:\n for dcyL in [-1, 0, 1]:\n _Z4d = chr(ord(Nw5o) + dcyL) + str(hzgj + QSoX)\n ... | [
"0.7442367",
"0.7442367",
"0.7439253",
"0.74376506",
"0.7413522",
"0.74099773",
"0.73941594",
"0.728337",
"0.72757703",
"0.7270162",
"0.72361755",
"0.7224167",
"0.7219172",
"0.7218369",
"0.72181857",
"0.7189916",
"0.7176149",
"0.71708834",
"0.71474975",
"0.71468174",
"0.71387... | 0.7117893 | 23 |
Returns an instance of this record as a string. | def zAg0(YKHO):
isDe = '<' + YKHO.tag_name
for LwG6 in YKHO.kwargs:
isDe += ' {}="{}"'.format(LwG6, YKHO.kwargs[LwG6])
isDe += '/>'
return isDe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):... | [
"0.797066",
"0.79529953",
"0.79227465",
"0.78936577",
"0.78863674",
"0.7886324",
"0.78789467",
"0.78789467",
"0.7876172",
"0.7876172",
"0.7868129",
"0.7832766",
"0.7827888",
"0.77917624",
"0.7788062",
"0.7788062",
"0.7787452",
"0.77423155",
"0.77401185",
"0.77364016",
"0.7683... | 0.0 | -1 |
Returns an instance of this record as a string. | def zAg0(YKHO):
isDe = '<' + YKHO.tag_name
for LwG6 in YKHO.kwargs:
isDe += ' {}="{}"'.format(LwG6, YKHO.kwargs[LwG6])
isDe += '>'
for aUGN in YKHO.children:
isDe += aUGN
isDe += '</{}>'.format(YKHO.tag_name)
return isDe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):... | [
"0.797066",
"0.79529953",
"0.79227465",
"0.78936577",
"0.78863674",
"0.7886324",
"0.78789467",
"0.78789467",
"0.7876172",
"0.7876172",
"0.7868129",
"0.7832766",
"0.7827888",
"0.77917624",
"0.7788062",
"0.7788062",
"0.7787452",
"0.77423155",
"0.77401185",
"0.77364016",
"0.7683... | 0.0 | -1 |
Returns an instance of this record as a string. | def zAg0(YKHO):
isDe = '<' + YKHO.tag_name
for LwG6 in YKHO.kwargs:
isDe += ' {}="{}"'.format(LwG6, YKHO.kwargs[LwG6])
isDe += '>'
isDe += YKHO.text
for aUGN in YKHO.children:
isDe += aUGN
isDe += '</{}>'.format(YKHO.tag_name)
return isDe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):... | [
"0.797066",
"0.79529953",
"0.79227465",
"0.78936577",
"0.78863674",
"0.7886324",
"0.78789467",
"0.78789467",
"0.7876172",
"0.7876172",
"0.7868129",
"0.7832766",
"0.7827888",
"0.77917624",
"0.7788062",
"0.7788062",
"0.7787452",
"0.77423155",
"0.77401185",
"0.77364016",
"0.7683... | 0.0 | -1 |
Returns all active assignments (published assignments within a period that is currently started and not ended). | def yxlt(YKHO):
wzkt = qcWV.now()
return YKHO.filter(publishing_time__lt=wzkt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQ2r(N1p7, vpqI: bool=True):\n _VPC = \"\\n SELECT course.code AS course_code,\\n course.name AS course_name,\\n assignment.*\\n FROM core.assignment\\n INNER JOIN core.course\\n ON ... | [
"0.6680618",
"0.66650844",
"0.64351326",
"0.6320644",
"0.6309883",
"0.6222869",
"0.62205577",
"0.62134737",
"0.6211537",
"0.62054855",
"0.61541325",
"0.60999197",
"0.6063285",
"0.6045744",
"0.60173494",
"0.60173494",
"0.5939939",
"0.5822673",
"0.58165085",
"0.5792812",
"0.570... | 0.0 | -1 |
Returns all active assignments (published assignments within a period that is currently started and not ended). | def YmEj(YKHO):
wzkt = qcWV.now()
return YKHO.filter_is_published().filter(parentnode__start_time__lt=wzkt, parentnode__end_time__gt=wzkt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQ2r(N1p7, vpqI: bool=True):\n _VPC = \"\\n SELECT course.code AS course_code,\\n course.name AS course_name,\\n assignment.*\\n FROM core.assignment\\n INNER JOIN core.course\\n ON ... | [
"0.6680618",
"0.66650844",
"0.64351326",
"0.6320644",
"0.6309883",
"0.6222869",
"0.62205577",
"0.62134737",
"0.6211537",
"0.62054855",
"0.61541325",
"0.60999197",
"0.6063285",
"0.6045744",
"0.60173494",
"0.60173494",
"0.5939939",
"0.5822673",
"0.58165085",
"0.5792812",
"0.570... | 0.5496498 | 39 |
Checks if the given points represents a passing grade. | def gXe0(YKHO, LTIa):
return LTIa >= YKHO.passing_grade_min_points | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H3V8(YKHO, FjAN):\n try:\n if float(FjAN) >= YKHO.pass_score:\n return True\n except:\n pass\n if FjAN in YKHO.pass_letters.split(','):\n return True\n return False",
"def olDy(YKHO):\n if YKHO.point is None:\n if YKHO.dice_total in zl_2:\n YKH... | [
"0.7590045",
"0.6856784",
"0.6656732",
"0.65633786",
"0.64198834",
"0.6396284",
"0.61954576",
"0.6013871",
"0.5963243",
"0.5958936",
"0.5878811",
"0.5798531",
"0.5765932",
"0.57615376",
"0.57479763",
"0.5705303",
"0.5705039",
"0.5699486",
"0.5649319",
"0.5597471",
"0.5580134"... | 0.8562833 | 0 |
Returns ``True`` if this Assignment does not contain any deliveries. | def FBfn(YKHO):
from .delivery import Delivery
return Delivery.objects.filter(deadline__assignment_group__parentnode=YKHO).count() == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.deliveries.count() == 0",
"def FBfn(YKHO):\n return YKHO.query_successful_deliveries().count() == 0",
"def g22G(YKHO):\n for YWSi in YKHO.agents:\n if YWSi.is_producing is True:\n return False\n return True",
"def ZZQq(YKHO) -> bool:\n VzA7, eJ14... | [
"0.79882497",
"0.76349336",
"0.6608563",
"0.6451684",
"0.6385096",
"0.6367426",
"0.6333731",
"0.6252158",
"0.62496924",
"0.6224866",
"0.6209803",
"0.6209343",
"0.6193504",
"0.61930746",
"0.6174292",
"0.61601514",
"0.61598",
"0.61526906",
"0.61510533",
"0.6140232",
"0.6127023"... | 0.7386502 | 2 |
Returns ``True`` if this assignment is published, and the period has not ended yet. | def ksfB(YKHO):
qmLP.warn('deprecated', DeprecationWarning)
wzkt = qcWV.now()
return YKHO.publishing_time < wzkt and YKHO.parentnode.end_time > wzkt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xBxz(YKHO):\n if YKHO.publication_date and YKHO.end_date:\n return YKHO.publication_date < wzkt() and YKHO.end_date > wzkt()\n else:\n return False",
"def FhQf(YKHO):\n return YKHO.publish_time and YKHO.publish_time <= qcWV.now()",
"def FhQf(YKHO):\n if YKHO.embargo:\n retu... | [
"0.81426513",
"0.7749392",
"0.7720735",
"0.759359",
"0.73945534",
"0.7376115",
"0.7376115",
"0.7359196",
"0.7336961",
"0.7313922",
"0.718913",
"0.7152318",
"0.71309346",
"0.70435566",
"0.6945487",
"0.6865006",
"0.67554045",
"0.6730713",
"0.6698102",
"0.6662179",
"0.66385144",... | 0.0 | -1 |
Calculate surface level corresponding to `sigma` significance. | def ABDL(YKHO, WTkW=1, uc7Q=None):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vlr5(WTkW):\n return gQS9.LOp_sigma(WTkW)",
"def N4Xy(YKHO):\n return YKHO.sigma",
"def N4Xy(YKHO):\n return YKHO.sigma",
"def pls7(WKvO, yGTL, WTkW):\n return (WKvO - yGTL) / WTkW",
"def Y36f(YKHO):\n pxtC(YKHO.records['']['sigma'], XTiz.array([0.00168478, 0.00179394, 0.00182574, 0.0019... | [
"0.6734471",
"0.6412094",
"0.6412094",
"0.6370037",
"0.6365836",
"0.63639534",
"0.6352935",
"0.630103",
"0.6291065",
"0.623812",
"0.6221987",
"0.62181014",
"0.6207148",
"0.62042016",
"0.61679196",
"0.6166776",
"0.61454946",
"0.61428916",
"0.61404675",
"0.6137297",
"0.61294776... | 0.5920373 | 47 |
Convert TFJS JSON model to TF Graph | def bey_(YlGy, XSj5):
if not UCsT.ARTIFACT_MODEL_TOPOLOGY_KEY in YlGy:
raise ValueError("model_json is missing key '{}'".format(UCsT.ARTIFACT_MODEL_TOPOLOGY_KEY))
zLC2 = YlGy[UCsT.ARTIFACT_MODEL_TOPOLOGY_KEY]
if not UCsT.ARTIFACT_WEIGHTS_MANIFEST_KEY in YlGy:
raise ValueError("model_json is ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oPz_(zEKB, UeD_=None):\n GPtr = vk_W.decode(zEKB)\n from tensorflow.python.keras.layers import deserialize\n return deserialize(GPtr, custom_objects=UeD_)",
"def zgmU(YKHO):\n with qJi5.FastGFile(YKHO.model_path, 'rb') as eHNT:\n r8JX = ZylS.GraphDef()\n r8JX.ParseFromString(eHNT.re... | [
"0.66260415",
"0.65246224",
"0.64973027",
"0.6439361",
"0.64274335",
"0.64084196",
"0.63928837",
"0.63627386",
"0.63458514",
"0.6314113",
"0.6276392",
"0.6276392",
"0.6239572",
"0.6223689",
"0.6222426",
"0.6159777",
"0.612878",
"0.6103325",
"0.6090567",
"0.6048291",
"0.604051... | 0.73224837 | 0 |
Load a TFJS Graph Model from a directory | def vh0p(eG0V):
if not Hy7s.path.isdir(eG0V):
raise ValueError('Model path is no directory: {}'.format(eG0V))
wgqG = Hy7s.path.join(eG0V, UCsT.ARTIFACT_MODEL_JSON_FILE_NAME)
if not Hy7s.path.exists(wgqG) or not Hy7s.path.isfile(wgqG):
raise ValueError('Model not found: {}'.format(wgqG))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MivK(pmON: Path):\n assert pmON.is_dir(), f'Cannot load from non-existent directory {pmON}'\n return ZylS.keras.models.load_model(str(pmON))",
"def UJtF(uqvc):\n sA_o = ZylS.Graph()\n with sA_o.as_default():\n QPEZ = ZylS.GraphDef()\n with ZylS.gfile.GFile(uqvc, 'rb') as hOYR:\n ... | [
"0.7673842",
"0.7615952",
"0.7574212",
"0.74441826",
"0.7392032",
"0.730845",
"0.72886956",
"0.72691065",
"0.72324675",
"0.7189636",
"0.7130963",
"0.70711714",
"0.70711714",
"0.70672756",
"0.7051328",
"0.70468324",
"0.7026483",
"0.701641",
"0.7006646",
"0.7006646",
"0.7006646... | 0.75271297 | 3 |
Find the biggest number (as index) in the unsorted list | def UOyk(qw7D, d6pt):
qAoR = 0
for YRbF in range(d6pt + 1):
if qw7D[YRbF] > qw7D[qAoR]:
qAoR = YRbF
return qAoR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bKPk(vC9B):\n CLNC = len(vC9B)\n if CLNC == 0:\n return None\n JCoA = vC9B[0]\n IOXI = 0\n for epBp in range(1, CLNC):\n if vC9B[epBp] > JCoA:\n JCoA = vC9B[epBp]\n IOXI = epBp\n return IOXI",
"def bKPk(vC9B):\n CLNC = len(vC9B)\n if CLNC < 0:\n ... | [
"0.80851376",
"0.7986232",
"0.7975201",
"0.7659159",
"0.75287026",
"0.7472092",
"0.74328715",
"0.7394748",
"0.7362413",
"0.73617804",
"0.7341657",
"0.7341657",
"0.7341657",
"0.7341657",
"0.7334079",
"0.724469",
"0.71554744",
"0.71290606",
"0.7103972",
"0.70917284",
"0.7073701... | 0.69544333 | 26 |
Swaps num1 and num2 (as indexes) in an array | def b3SJ(qw7D, _1qI, zDMu):
jbXL = qw7D[_1qI]
qw7D[_1qI] = qw7D[zDMu]
qw7D[zDMu] = jbXL
return qw7D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b3SJ(jzdc, TPao, fVVZ):\n if TPao > fVVZ:\n TPao, fVVZ = (fVVZ, TPao)\n jzdc[TPao][1] -= 1\n jzdc[TPao], jzdc[fVVZ] = (jzdc[fVVZ], jzdc[TPao])",
"def b3SJ(ezWE, oZf4, YBiN):\n ycBG = ezWE[oZf4]\n ezWE[oZf4] = ezWE[YBiN]\n ezWE[YBiN] = ycBG",
"def b3SJ(YRbF: int, r845: int) -> None:... | [
"0.68819135",
"0.68562305",
"0.6766305",
"0.66695875",
"0.65982944",
"0.65429413",
"0.6532536",
"0.6530313",
"0.6499273",
"0.6492237",
"0.64817995",
"0.64509153",
"0.6440883",
"0.64123124",
"0.6406343",
"0.6393782",
"0.6385905",
"0.63760597",
"0.63293767",
"0.63183266",
"0.63... | 0.78407073 | 0 |
Get the mocked on/off state. | async def is_on(YKHO) -> bool:
if YKHO.is_offline:
raise MszX()
return YKHO.state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xr0E():\n XtFw = gwLz.BinarySensorEntity()\n assert XtFw.state == iKVK\n with TMAJ.patch('homeassistant.components.binary_sensor.BinarySensorEntity.is_on', new=False):\n assert gwLz.BinarySensorEntity().state == iKVK\n with TMAJ.patch('homeassistant.components.binary_sensor.BinarySensorEntit... | [
"0.7375352",
"0.7332576",
"0.7204471",
"0.7013485",
"0.69815505",
"0.6968489",
"0.6911869",
"0.6911869",
"0.6853018",
"0.6841414",
"0.6841414",
"0.6841414",
"0.6841414",
"0.68038726",
"0.67757547",
"0.6772575",
"0.6772575",
"0.6772575",
"0.6772575",
"0.6772575",
"0.6772575",
... | 0.0 | -1 |
PostProcessing & Classify Output Gender into Male & Female | def vbB8(EE3v):
_x8P = ['Female', 'Male']
if EE3v[0, 1, 0, 0] >= 0.6:
return _x8P[1]
else:
return _x8P[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ob9Z(EE3v):\n if EE3v == 'male':\n return 1\n elif EE3v == 'female':\n return 2\n elif EE3v == 'other':\n return 3",
"def T2ys(IoKf):\n IoKf[IoKf == 'Male'] = 1\n IoKf[IoKf == 'Female'] = 0\n return IoKf",
"def AkbM(YKHO):\n return {'1': 'male', '2': 'female'}.get(... | [
"0.731874",
"0.7232098",
"0.69081604",
"0.66736823",
"0.6668324",
"0.6639849",
"0.65917325",
"0.6584023",
"0.6551815",
"0.6547618",
"0.64575887",
"0.6445474",
"0.6385533",
"0.6352201",
"0.63292676",
"0.6328708",
"0.63166845",
"0.63058364",
"0.62867165",
"0.62791634",
"0.62301... | 0.6182817 | 24 |
Compute the cumulative maximum of the tensor `x` along `axis`. This operation is similar to the more classic `cumsum`. Only support 1D Tensor for now. | def YKkK(WKvO, gxEw=False, mWFP=None):
with IPme.name_scope(mWFP, 'Cummax', [WKvO]) as mWFP:
WKvO = IPme.convert_to_tensor(WKvO, name='x')
if gxEw:
WKvO = ZylS.reverse(WKvO, axis=[0])
ZfiU = ZylS.scan(lambda jzdc, LVAh: ZylS.maximum(jzdc, LVAh), WKvO, initializer=None, parallel_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YKkK(YKHO, jDK_=0, **B2fa):\n if jDK_ != 0:\n return YKHO.apply(lambda WKvO: oyIN.maximum.accumulate(WKvO, jDK_))\n return YKHO._cython_transform('cummax', numeric_only=False)",
"def YKkK(WKvO, gxEw=False, mWFP=None):\n with IPme.name_scope(mWFP, 'Cummax', [WKvO]) as mWFP:\n WKvO = IPm... | [
"0.78327584",
"0.7648995",
"0.72350776",
"0.69700557",
"0.695062",
"0.69262856",
"0.68647456",
"0.6802101",
"0.6786928",
"0.67711884",
"0.67670316",
"0.6695086",
"0.66794366",
"0.6646728",
"0.6593278",
"0.6575381",
"0.65240127",
"0.6518054",
"0.6486644",
"0.6460801",
"0.64454... | 0.76777685 | 1 |
The set of arguments for constructing a SqlServer resource. | def FIMM(Ro_8, *, TRLE: pulumi.Input[str], DU15: pulumi.Input[str], NAlt: Optional[pulumi.Input[int]]=None, H6zX: Optional[pulumi.Input[str]]=None, ihW7: Optional[pulumi.Input[str]]=None, NEqR: Optional[pulumi.Input[str]]=None, hK4q: Optional[pulumi.Input[str]]=None, DpZH: Optional[pulumi.Input[str]]=None):
qe4Y.se... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: SqlDatabaseArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, *, Qjbs: pulumi.Input[str], TNIi: pulumi.Input[str], dJ1p: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None, S5YG: Optional[pulumi.Input[str]]=None, q7l0: Optional[pulumi.Input[Un... | [
"0.69669044",
"0.6379633",
"0.6263926",
"0.6256569",
"0.6239866",
"0.61383724",
"0.60538065",
"0.6023838",
"0.5995578",
"0.59189004",
"0.58150667",
"0.581432",
"0.5771598",
"0.57476187",
"0.56594974",
"0.56330585",
"0.56025857",
"0.55818206",
"0.55761313",
"0.5566151",
"0.553... | 0.6099319 | 6 |
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'reso... | [
"0.8751839",
"0.8751839",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"0.8580727",
"... | 0.8228178 | 88 |
The type of the resource. Ex Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. | def type(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n ... | [
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.7927503",
"0.77822",
"0.7718237",
"0.7718237",
"0.7674187",
"0.7674187",
"0.7666367",
"0.7654678",
"0.... | 0.0 | -1 |
Given a string, recursively returns a reversed copy of the string. For example, if the string is 'abc', the function returns 'cba'. The only string operations you are allowed to use are indexing, slicing, and concatenation. | def Zke2(aunU):
if aunU == '':
return aunU
else:
return Zke2(aunU[1:]) + aunU[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eMaF(vIwR: str) -> str:\n if len(vIwR) <= 1:\n return vIwR\n else:\n return eMaF(vIwR[1:]) + vIwR[0]",
"def Zlgv(KCHu: str) -> str:\n if KCHu == '':\n return KCHu\n else:\n return Zlgv(KCHu[1:]) + KCHu[0]\n pass",
"def gxEw(KCHu):\n assert type(KCHu) == str, re... | [
"0.8286785",
"0.81117994",
"0.7981546",
"0.7922786",
"0.79160076",
"0.7893547",
"0.7862409",
"0.78144294",
"0.77962077",
"0.77404004",
"0.7658558",
"0.76317173",
"0.76251096",
"0.76078314",
"0.7599746",
"0.7593318",
"0.7584264",
"0.7576251",
"0.7552427",
"0.7488664",
"0.74365... | 0.74785405 | 20 |
Given a string x, returns True if all the letters in x are contained in word in the same order as they appear in x. >>> x_ian('eric', 'meritocracy') True >>> x_ian('eric', 'cerium') False >>> x_ian('john', 'mahjong') False | def CGj4(WKvO, GIN8):
if WKvO == '':
return True
elif GIN8 == '':
return False
elif WKvO[0] == GIN8[0]:
return CGj4(WKvO[1:], GIN8[1:])
else:
return CGj4(WKvO, GIN8[1:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CGj4(WKvO, GIN8):\n if WKvO == '':\n return True\n if len(WKvO) == 1:\n return True if WKvO in GIN8 else False\n elif WKvO[0] in GIN8:\n YRbF = GIN8.index(WKvO[0])\n return CGj4(WKvO[1:], GIN8[YRbF:])\n else:\n return False",
"def uhoe(GIN8, vIwR):\n for sZqf... | [
"0.78303456",
"0.72138447",
"0.6904264",
"0.67201436",
"0.65960276",
"0.65889627",
"0.65737677",
"0.65259564",
"0.6525152",
"0.6515045",
"0.6486838",
"0.64803743",
"0.64384806",
"0.6433048",
"0.63798803",
"0.6368257",
"0.6353515",
"0.6346733",
"0.63214254",
"0.631242",
"0.631... | 0.7223589 | 1 |
Convert Float Columns to Int with 0 for NaN while converting the rest of the NaNs to None. | def YPzE(YKHO, jQ3Z: pd.DataFrame) -> rLdf.DataFrame:
dY2k = jQ3Z.select_dtypes(include=['float64'])
for fvDH in dY2k:
jQ3Z[fvDH] = jQ3Z[fvDH].replace({oyIN.nan: 0}).astype(int)
jQ3Z = jQ3Z.replace({oyIN.nan: None})
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RD1n(WKvO: float) -> int:\n if isinstance(WKvO, str):\n WKvO = float(WKvO)\n if WKvO is None:\n return 0\n else:\n return int(WKvO)",
"def I07v(jQ3Z: pd.DataFrame) -> rLdf.DataFrame:\n Dffo = list(jQ3Z.select_dtypes(include=[float]))\n if Dffo:\n jQ3Z.loc[:, Dffo] =... | [
"0.70374876",
"0.69534194",
"0.6693283",
"0.6656269",
"0.6586881",
"0.65754193",
"0.62807786",
"0.6267401",
"0.6265678",
"0.6234461",
"0.623376",
"0.6182811",
"0.6175122",
"0.6137276",
"0.6072567",
"0.6066855",
"0.60466814",
"0.59555393",
"0.59544736",
"0.5939888",
"0.5915258... | 0.723957 | 0 |