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 |
|---|---|---|---|---|---|---|
Removes spaces in url string to create valid url string. | def YLUH(Lpfh):
ycBG = ''
for YRbF in range(len(Lpfh)):
if Lpfh[YRbF] == ' ':
ycBG += '+'
else:
ycBG += Lpfh[YRbF]
return ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t123(YKHO, bD7m):\n return bD7m.replace(' ', '%20').replace('(', '%28').replace(')', '%29').replace('\"', '%22')",
"def _1lG(bD7m):\n KCHu = bD7m\n bD7m = bD7m.encode('utf8')\n bD7m = ''.join([uRlK.quote(Z9rn) if ord(Z9rn) >= 127 else Z9rn for Z9rn in bD7m])\n return bD7m",
"def QQ6h(YKHO, b... | [
"0.78549093",
"0.75857085",
"0.754694",
"0.74819076",
"0.73716813",
"0.7328548",
"0.72510725",
"0.7249905",
"0.72443867",
"0.7220416",
"0.7211594",
"0.72077847",
"0.71933407",
"0.71812534",
"0.7157822",
"0.71138614",
"0.7111603",
"0.71088624",
"0.70936674",
"0.70649815",
"0.7... | 0.0 | -1 |
Compute the sigmoid of z | def m1Hg(epBp):
KCHu = 1 / (1 + oyIN.exp(-epBp))
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(epBp):\n return mFhB(epBp)",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.e ** (-epBp))",
"def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))",
"def m1Hg(epBp):\n return 1 / (1 + tTpl ** (-epBp))",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-1 * epBp))",
"def m1Hg(YKHO, epBp):\n ... | [
"0.923692",
"0.9115246",
"0.90348065",
"0.9032433",
"0.89829516",
"0.89823914",
"0.8982109",
"0.89585716",
"0.89368236",
"0.892768",
"0.8925039",
"0.89058864",
"0.88919073",
"0.8888038",
"0.88755494",
"0.8872198",
"0.88692564",
"0.8862156",
"0.88610345",
"0.88493705",
"0.8845... | 0.8856633 | 19 |
Try to load file and return it as list of encoded patches | def IExz(pmON) -> x1iM[str] or None:
try:
with open(pmON, 'r') as nUeQ:
I_8g = VBgC()
I_8g.site = 0
oeNL = 0
Aofo = []
for zFiD in nUeQ:
for hcXw in zFiD:
Aofo.append(I_8g.insert(oeNL, hcXw))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ikTL(Ux0P):\n Xn71 = hnIv.open(Ux0P)\n TVTK, H2v2 = Xn71.size\n lEHr = list(Xn71.getdata())\n bySB = [lEHr[YRbF * TVTK:(YRbF + 1) * TVTK] for YRbF in range(H2v2)]\n bySB = oyIN.asarray(Xn71, dtype=oyIN.float32).flatten()\n bySB /= 255.0\n return bySB",
"def Nwr9(gIsw):\n with open(gIs... | [
"0.64726204",
"0.62505126",
"0.5903177",
"0.5896279",
"0.5820001",
"0.5782224",
"0.573012",
"0.5581746",
"0.5480112",
"0.54575527",
"0.5454",
"0.545235",
"0.54362994",
"0.54290473",
"0.542834",
"0.54239833",
"0.54218155",
"0.5421541",
"0.5420233",
"0.5420149",
"0.5404467",
... | 0.0 | -1 |
Rendering the home page | def kZiy():
r8hN = nkvf()
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home_page.html')",
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.8829311",
"0.8817377",
"0.8708124",
"0.86629224",
"0.86629224",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
... | 0.0 | -1 |
Rendering the home page | def VWvz():
r8hN = nkvf()
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home_page.html')",
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.8829311",
"0.8817377",
"0.8708124",
"0.86629224",
"0.86629224",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
"0.86587995",
... | 0.0 | -1 |
Read image from path and return as a tensor of shape [h, w, channels] with the [h, w] == IMAGE_SIZE of type float32 | def _OrB(QMAG):
LNo8 = ZylS.image.decode_png(ZylS.read_file(QMAG), channels=3)
LNo8 = ZylS.image.convert_image_dtype(LNo8, ZylS.float32)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GgRL(pmON: Path) -> ZylS.Tensor:\n ThLH = ZylS.io.read_file(str(pmON))\n j3sf = ZylS.io.decode_jpeg(ThLH, channels=3)\n return j3sf",
"def tsdv(pmON):\n nPrm = ZylS.read_file(pmON)\n LNo8 = ZylS.image.decode_image(nPrm, channels=3)\n LNo8.set_shape((None, None, 3))\n YANt = ZylS.cast(Zyl... | [
"0.7803744",
"0.7791343",
"0.7289354",
"0.727124",
"0.7214965",
"0.71977097",
"0.719677",
"0.718498",
"0.71406484",
"0.71292204",
"0.70598954",
"0.70402795",
"0.70198274",
"0.70051795",
"0.70051795",
"0.70019186",
"0.6998618",
"0.69443035",
"0.69430023",
"0.693112",
"0.693112... | 0.70031416 | 15 |
Get Total polar surface area | def iPHm(rdlD):
r8hN = OJ0g.MolFromSmiles(rdlD.SMILES)
h7Nr = BvBb.TPSA(r8hN)
return h7Nr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B7Mv(YKHO) -> float:\n return 4 * oyIN.pi * YKHO.radius ** 2",
"def drdQ(YKHO):\n return epAf.pi * YKHO.radius ** 2",
"def drdQ(YKHO):\n return epAf.pi * YKHO.__radius * YKHO.__radius",
"def f0tD(YKHO):\n return epAf.pi * YKHO._r ** 2",
"def ILBk(YKHO):\n B7Vw = oyIN.cos(YKHO.polar_corne... | [
"0.7777839",
"0.7402006",
"0.7385267",
"0.7289801",
"0.7253699",
"0.723019",
"0.722946",
"0.7174154",
"0.7174154",
"0.7151825",
"0.71299565",
"0.71074015",
"0.70817155",
"0.706501",
"0.705641",
"0.6988291",
"0.68975425",
"0.6841427",
"0.68396616",
"0.6791542",
"0.6768324",
... | 0.0 | -1 |
Assigns the name to the client id. | def I3gA(YKHO, zb3C, mWFP):
def ycYJ(N1p7):
N1p7.execute('SELECT participantName FROM Participants WHERE id = ?', (zb3C,))
rdlD = N1p7.fetchone()
if rdlD is None:
N1p7.execute('INSERT INTO Participants (id, participantName) ' + 'VALUES (?, ?)', (zb3C, mWFP))
return z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iZWd(YKHO, mWFP, x0hE):\n if YKHO.name_is_unique(mWFP):\n x0hE.set_name(mWFP)\n YKHO.send_message('Usuario actualizado exitosamente.', x0hE.get_socket())\n else:\n YKHO.send_message('Nombre repetido.', x0hE.get_socket())",
"def xE1z(Q5dE, Ug_6):\n pass",
"def JgbM(YKHO):\n ... | [
"0.7299926",
"0.70642865",
"0.70382226",
"0.6763455",
"0.667108",
"0.6669093",
"0.66261256",
"0.65662277",
"0.6563408",
"0.6563408",
"0.6563408",
"0.6563408",
"0.65221035",
"0.64570737",
"0.64570737",
"0.64325535",
"0.64325535",
"0.64325535",
"0.64325535",
"0.64325535",
"0.64... | 0.0 | -1 |
Refresh the stock of the shop by picking random items according to the given tech level. All previous stock is deleted. If level = 1 is given, a new shop tech level is generated at random. | def snRB(YKHO, ABDL: int=-1):
YKHO.shipsStock.clear()
YKHO.weaponsStock.clear()
YKHO.modulesStock.clear()
YKHO.turretsStock.clear()
if ABDL == -1:
YKHO.currentTechLevel = XTip.pickRandomShopTL()
else:
if ABDL not in range(XTip.minTechLevel, XTip.maxTechLevel + 1):
rai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YCrH(YKHO, ABDL):\n for ZfUD in YKHO.list:\n ZfUD.position = kLxY.define_random_position(ZfUD, ABDL)",
"def RprR(YKHO, W3Xw=None):\n zNig = YKHO.planet.system_size\n ABDL = YKHO.planet.tech_level\n LpID = tuKI.randrange(0, 25) * (zNig + 1) * ABDL\n if YKHO.planet.special in [YKHO.tradei... | [
"0.58185315",
"0.5667246",
"0.5654058",
"0.53406847",
"0.52687126",
"0.5077955",
"0.5072522",
"0.5072522",
"0.50423217",
"0.5030303",
"0.49926",
"0.49758303",
"0.49298072",
"0.49267536",
"0.4905332",
"0.48856035",
"0.48844653",
"0.4878494",
"0.48532072",
"0.4835317",
"0.48244... | 0.7923747 | 0 |
Decide whether a user can afford to buy a module from the shop's stock | def aDFd(YKHO, CBIr: bbUser.bbUser, d6pt: int) -> bool:
return YKHO.userCanAffordItemObj(CBIr, YKHO.modulesStock[d6pt].item) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5dQ(YKHO, CBIr: bbUser.bbUser, h_Nz: bbModule.bbModule):\n if YKHO.userCanAffordItemObj(CBIr, h_Nz):\n YKHO.modulesStock.removeItem(h_Nz)\n CBIr.credits -= h_Nz.getValue()\n CBIr.inactiveShips.addItem(h_Nz)\n else:\n raise RuntimeError('user ' + str(CBIr.id) + ' attempted to ... | [
"0.70982605",
"0.6951467",
"0.66625106",
"0.6492152",
"0.6342462",
"0.6278365",
"0.6202352",
"0.60872567",
"0.60636747",
"0.6027457",
"0.60244405",
"0.6011888",
"0.5997595",
"0.59927183",
"0.59882945",
"0.5983915",
"0.59592366",
"0.5954179",
"0.5953777",
"0.59459627",
"0.5939... | 0.62770075 | 6 |
Buy the given module from the given user, adding the appropriate credits to their balance and adding the module to the shop stock. | def s4k6(YKHO, CBIr: bbUser.bbUser, yR_P: bbModule.bbModule):
CBIr.credits += yR_P.getValue()
YKHO.modulesStock.addItem(yR_P)
CBIr.inactiveModules.removeItem(yR_P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5dQ(YKHO, CBIr: bbUser.bbUser, h_Nz: bbModule.bbModule):\n if YKHO.userCanAffordItemObj(CBIr, h_Nz):\n YKHO.modulesStock.removeItem(h_Nz)\n CBIr.credits -= h_Nz.getValue()\n CBIr.inactiveShips.addItem(h_Nz)\n else:\n raise RuntimeError('user ' + str(CBIr.id) + ' attempted to ... | [
"0.8151885",
"0.7730614",
"0.660402",
"0.65770423",
"0.65631425",
"0.65222275",
"0.64936644",
"0.6486815",
"0.6439176",
"0.6432775",
"0.64279884",
"0.63970876",
"0.6379256",
"0.636527",
"0.63427365",
"0.633951",
"0.6336728",
"0.6335715",
"0.63278216",
"0.62839043",
"0.6270996... | 0.7865355 | 1 |
Buy the module at the given index in the given user's modules bbInventory, adding the appropriate credits to their balance and adding the module to the shop stock. | def O77Q(YKHO, CBIr: bbUser.bbUser, d6pt: int):
YKHO.userSellModuleObj(CBIr, CBIr.inactiveModules[d6pt].item) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zBvy(YKHO, CBIr: bbUser.bbUser, d6pt: int):\n YKHO.userBuyModuleObj(CBIr, YKHO.modulesStock[d6pt].item)",
"def yrkU(YKHO, CBIr: bbUser.bbUser, d6pt: int):\n YKHO.userBuyShipObj(CBIr, YKHO.shipsStock[d6pt].item)",
"def qdMU(YKHO, CBIr: bbUser.bbUser, d6pt: int):\n YKHO.userBuyWeaponObj(CBIr, YKHO.w... | [
"0.8694855",
"0.7195289",
"0.71288925",
"0.7079173",
"0.6926473",
"0.6704519",
"0.61328787",
"0.59253204",
"0.5846645",
"0.5846351",
"0.5791958",
"0.57431024",
"0.57143444",
"0.57041574",
"0.56748855",
"0.56604457",
"0.5660299",
"0.5650956",
"0.5629446",
"0.5615227",
"0.55931... | 0.69305867 | 4 |
Buy the given turret from the given user, adding the appropriate credits to their balance and adding the turret to the shop stock. | def Y_0d(YKHO, CBIr: bbUser.bbUser, OkcC: bbTurret.bbTurret):
CBIr.credits += OkcC.getValue()
YKHO.turretsStock.addItem(OkcC)
CBIr.inactiveTurrets.removeItem(OkcC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NRgP(YKHO, CBIr: bbUser.bbUser, C94t: bbTurret.bbTurret):\n if YKHO.userCanAffordItemObj(CBIr, C94t):\n YKHO.turretsStock.removeItem(C94t)\n CBIr.credits -= C94t.getValue()\n CBIr.inactiveShips.addItem(C94t)\n else:\n raise RuntimeError('user ' + str(CBIr.id) + ' attempted to ... | [
"0.82251906",
"0.8155633",
"0.6883359",
"0.6736529",
"0.64991075",
"0.64374715",
"0.6336301",
"0.6317039",
"0.6314101",
"0.6303089",
"0.6294355",
"0.6289981",
"0.623364",
"0.62253153",
"0.62149304",
"0.62137175",
"0.6210037",
"0.61327016",
"0.612677",
"0.6108",
"0.60649776",
... | 0.788418 | 2 |
Recreate a bbShop instance from its dictionaryserialized representation the opposite of bbShop.toDict | def MJdd(Emd4, eIn5: dict, **B2fa) -> OAnf:
IwtG = IqdK.bbInventory()
for ZbCG in eIn5['shipsStock']:
IwtG.addItem(rV9o.bbShip.fromDict(ZbCG['item']), quantity=ZbCG['count'])
Unxe = IqdK.bbInventory()
for YLuG in eIn5['weaponsStock']:
Unxe.addItem(P6uS.bbWeapon.fromDict(YLuG['item']), qu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(YKHO, nPrm, cuiw=False):\n for mWFP, Jyyj in YKHO._fields.items():\n if not cuiw and mWFP not in YKHO._permanent_fields:\n continue\n if mWFP not in nPrm:\n continue\n Jyyj.deserialise(YKHO, mWFP, nPrm[mWFP])\n return YKHO",
"def kfzb(jBXM):\n Z2Tb = j... | [
"0.6258055",
"0.6031494",
"0.5930857",
"0.5867563",
"0.57707405",
"0.576839",
"0.57591015",
"0.56572807",
"0.5656643",
"0.5656643",
"0.5596343",
"0.55737543",
"0.5573605",
"0.5534926",
"0.5526491",
"0.54953814",
"0.54726946",
"0.5460249",
"0.54492575",
"0.54329866",
"0.542914... | 0.6227879 | 1 |
creates a skeleton for a flask project and an initial app called main | def rCAY(YKHO, *Gqqd, B5hR='config', Fp1k=False):
YKHO._make_initial_directories()
YKHO._make_initial_files(*Gqqd, FunctionBased=Fp1k) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif():\n P4t4 = L2w0(__name__)\n\n @P4t4.route('/')\n def Yvlp():\n return 'the barebones'\n return P4t4",
"def LUif():\n P4t4 = L2w0(__name__)\n\n @P4t4.route('/')\n def tk5Y():\n \"\"\"Base view.\"\"\"\n return 'TODO - part 2 and beyond!'\n return P4t4",
"def... | [
"0.79735875",
"0.7869407",
"0.759055",
"0.7404261",
"0.7327039",
"0.72308815",
"0.7207223",
"0.71908814",
"0.7174959",
"0.7152325",
"0.71510434",
"0.7146426",
"0.7112529",
"0.70975477",
"0.70885324",
"0.70749867",
"0.7073768",
"0.70728564",
"0.70442694",
"0.69847053",
"0.6978... | 0.0 | -1 |
Check if the controller is in the parameter server | def ZGFr(YKHO, Z7L0):
for mWFP in S_JI('/'):
if mWFP == Z7L0:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jU8K(N5z6):\n if N5z6['status'] != 'no_edit':\n return True\n return False",
"def XpCH(QePW):\n return getattr(QePW, 'param', None) is not mY8v",
"def mW7K(YKHO):\n return False if YKHO._remote_controller == '' else True",
"def bfXy(YKHO, C3ST):\n return C3ST in YKHO._registry",
"... | [
"0.6461893",
"0.6322898",
"0.6285191",
"0.5989404",
"0.59603727",
"0.5916422",
"0.5915487",
"0.5843136",
"0.58398074",
"0.5790812",
"0.5760535",
"0.56450933",
"0.5600348",
"0.558775",
"0.55728436",
"0.5572414",
"0.554491",
"0.551133",
"0.54693836",
"0.5464618",
"0.54548997",
... | 0.8469041 | 0 |
Sets the name of this VirtualVolume. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FNha(YKHO, FNha):\n YKHO._volume_name = FNha",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def zPdd(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ... | [
"0.7484202",
"0.745157",
"0.73794454",
"0.7374094",
"0.7374094",
"0.7357047",
"0.7357047",
"0.7357047",
"0.7357047",
"0.7357047",
"0.73517925",
"0.7345596",
"0.7304309",
"0.72377944",
"0.7233226",
"0.72279835",
"0.709498",
"0.709498",
"0.70897764",
"0.70779335",
"0.6981333",
... | 0.0 | -1 |
Sets the operational_status of this VirtualVolume. | def ER7q(YKHO, ER7q):
YKHO._operational_status = ER7q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YQfj(YKHO, jGRS):\n if hasattr(YKHO, jGRS):\n YKHO.change_to(getattr(YKHO, jGRS))",
"def cYSk(YKHO, jGRS):\n with YKHO.lock:\n YKHO.status = jGRS",
"def jGRS(YKHO, jGRS):\n YKHO._set_property_(YKHO.STATUS, str(jGRS))",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YK... | [
"0.610897",
"0.5962572",
"0.59539366",
"0.585962",
"0.585962",
"0.585962",
"0.5845064",
"0.5843375",
"0.5797951",
"0.5769159",
"0.568192",
"0.568192",
"0.568192",
"0.568192",
"0.568192",
"0.568192",
"0.568192",
"0.568192",
"0.568192",
"0.568192",
"0.568192",
"0.568192",
"... | 0.80436105 | 1 |
Sets the service_status of this VirtualVolume. | def cajV(YKHO, cajV):
YKHO._service_status = cajV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def cYSk(YKHO, jGRS):\n with YKHO.lock:\n YKHO.status = jGRS",
"def gYPd(YKHO, jGRS):\n YKHO.status = jGRS",
"def tZbN(YKHO, jGRS):\n YKHO.__s... | [
"0.66898036",
"0.66898036",
"0.66898036",
"0.66737175",
"0.6634566",
"0.65363693",
"0.643551",
"0.63888526",
"0.6354354",
"0.6343253",
"0.62771344",
"0.6261598",
"0.6235222",
"0.6235222",
"0.6235222",
"0.6235222",
"0.6235222",
"0.6235222",
"0.6235222",
"0.6235222",
"0.6235222... | 0.82243454 | 0 |
Sets the capacity of this VirtualVolume. | def b7hB(YKHO, b7hB):
YKHO._capacity = b7hB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TtWG(YKHO, Fd1k):\n YKHO._capacity.type = 'value'\n YKHO._capacity._value = float(Fd1k)",
"def TtWG(YKHO, Fd1k):\n return YKHO.get_interaction().set_capacity(Fd1k)",
"def TtWG(YKHO, b7hB):\n NArs = {'AutoScalingGroupName': YKHO.name, 'DesiredCapacity': b7hB}\n qv1X = YKHO.connection.get_obje... | [
"0.6970933",
"0.6915781",
"0.68999064",
"0.68919855",
"0.66857976",
"0.6562229",
"0.63230324",
"0.6159389",
"0.60042834",
"0.5782733",
"0.56820244",
"0.567997",
"0.5665047",
"0.563284",
"0.56165946",
"0.5607699",
"0.55999744",
"0.55999744",
"0.5591248",
"0.55322313",
"0.55139... | 0.7412129 | 0 |
Sets the consistency_group of this VirtualVolume. | def yuyW(YKHO, yuyW):
YKHO._consistency_group = yuyW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YD5Q(YKHO, YD5Q):\n YKHO._consistency_group_num = YD5Q",
"def QdZT(YKHO, TKaW, **B2fa):\n if not B2fa:\n return\n TBsA = {'consistencygroup': B2fa}\n return YKHO._update('/consistencygroups/%s' % P8oC.getid(TKaW), TBsA)",
"def o3qY(YKHO, o3qY):\n YKHO._consistency_group_num_gt = o3qY"... | [
"0.7149782",
"0.6853538",
"0.6334857",
"0.6207128",
"0.60788566",
"0.59625685",
"0.5907258",
"0.5852775",
"0.5852775",
"0.5852775",
"0.58254033",
"0.57997113",
"0.57150644",
"0.57144755",
"0.5689289",
"0.56772465",
"0.56529635",
"0.5553101",
"0.5501922",
"0.54839724",
"0.5481... | 0.8369485 | 1 |
Sets the vpd_id of this VirtualVolume. | def vo5i(YKHO, vo5i):
YKHO._vpd_id = vo5i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJdy(YKHO, YJdy):\n YKHO.logger.debug(\"In 'pvd' setter.\")\n YKHO._pvd = YJdy",
"def Z5cL(YKHO, Z5cL):\n YKHO._volume_id = Z5cL",
"def oeua(YKHO, oeua):\n YKHO._vat_id = oeua",
"def oeua(YKHO, oeua: str):\n YKHO._vat_id = oeua",
"def lwfF(YKHO, lwfF):\n YKHO._vcn_id = lwfF",
"def J... | [
"0.6969665",
"0.67383546",
"0.64475673",
"0.6406723",
"0.62326676",
"0.5910629",
"0.58898014",
"0.58898014",
"0.57697004",
"0.5754855",
"0.5741645",
"0.5686967",
"0.56776226",
"0.5590102",
"0.55152565",
"0.54322034",
"0.54322034",
"0.5386286",
"0.53834975",
"0.5319886",
"0.53... | 0.85892636 | 0 |
Sets the thin_enabled of this VirtualVolume. | def Vl5X(YKHO, Vl5X):
YKHO._thin_enabled = Vl5X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Knlv(YKHO, Knlv):\n if YKHO.local_vars_configuration.client_side_validation and Knlv is None:\n raise ValueError('Invalid value for `thin_provision`, must not be `None`')\n YKHO._thin_provision = Knlv",
"def iLVI(YKHO, IBxv):\n if not isinstance(IBxv, bool):\n tO9_ = 'The parameter \"%... | [
"0.6482025",
"0.5572778",
"0.54370624",
"0.5342755",
"0.52419966",
"0.52073795",
"0.5206315",
"0.52043945",
"0.52043945",
"0.52000064",
"0.5179025",
"0.51321137",
"0.5130963",
"0.51092947",
"0.50526917",
"0.50484157",
"0.5041937",
"0.5037425",
"0.49942026",
"0.49941552",
"0.4... | 0.8542228 | 0 |
Sets the expansion_status of this VirtualVolume. | def eoMP(YKHO, eoMP):
YKHO._expansion_status = eoMP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eg5I(YKHO, lHli):\n YKHO.props['expand'] = lHli",
"def MwVI(YKHO, MwVI):\n YKHO._expandable = MwVI",
"def mBlY(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'allow_volume_expansion')",
"def mBlY(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'allow_volume_expansion')",
"def mBlY(YKHO) -> h8nf[... | [
"0.5789183",
"0.54652447",
"0.5223804",
"0.5223804",
"0.5223804",
"0.5223804",
"0.5223804",
"0.5187743",
"0.51768696",
"0.50857395",
"0.50851804",
"0.50851804",
"0.50851804",
"0.5048075",
"0.50174797",
"0.5014594",
"0.49771363",
"0.49771363",
"0.49771363",
"0.49771363",
"0.49... | 0.8117614 | 0 |
Sets the initialization_status of this VirtualVolume. | def qhJe(YKHO, qhJe):
YKHO._initialization_status = qhJe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cYSk(YKHO, jGRS):\n with YKHO.lock:\n YKHO.status = jGRS",
"def tZbN(YKHO, jGRS):\n YKHO.__status = jGRS",
"def FIMM(Ro_8, *, K3EH: Optional[pulumi.Input['StorageSpacesPropertiesProvisioningStatusArgs']]=None):\n if K3EH is not None:\n qe4Y.set(Ro_8, 'provisioning_status', K3EH)",
... | [
"0.56455207",
"0.56097454",
"0.55460435",
"0.5544368",
"0.5544368",
"0.5544368",
"0.5422396",
"0.5419974",
"0.53774214",
"0.53522897",
"0.534101",
"0.533698",
"0.53162193",
"0.53162193",
"0.53162193",
"0.53162193",
"0.53162193",
"0.53162193",
"0.53162193",
"0.53162193",
"0.53... | 0.7869383 | 0 |
Sets the storage_array_family of this VirtualVolume. | def BNfE(YKHO, BNfE):
YKHO._storage_array_family = BNfE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0Jb(YKHO, mWFP, qBg8, BWXx, d6pt=None):\n gnPz.set_array_if_not_same(YKHO._family_arrays[mWFP][qBg8], BWXx, d6pt)",
"def P8n2(YKHO, P8n2: str):\n YKHO._model_family = P8n2",
"def QZ4P(YKHO, BWXx):\n return YKHO._set(useStorage=BWXx)",
"def iIvd(YKHO, iIvd):\n YKHO._storage_at_clusters = iIvd... | [
"0.6358175",
"0.572155",
"0.53161937",
"0.52799076",
"0.5259348",
"0.5142962",
"0.50805575",
"0.5027383",
"0.50160766",
"0.49891466",
"0.49276325",
"0.49118283",
"0.49117503",
"0.48248723",
"0.47402743",
"0.47171727",
"0.46770522",
"0.46538273",
"0.4637978",
"0.4636576",
"0.4... | 0.84063625 | 0 |
Sets the system_id of this VirtualVolume. | def WTZD(YKHO, WTZD):
YKHO._system_id = WTZD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oz1B(YKHO, Oz1B):\n YKHO._system = Oz1B",
"def Oz1B(YKHO, Oz1B):\n YKHO._system = Oz1B",
"def C14W(YKHO, C14W):\n YKHO._system_vlan_num = C14W",
"def v_cj(YKHO, pLEr):\n if pLEr is not None and (not isinstance(pLEr, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: system_name EXPECTED T... | [
"0.6435196",
"0.6435196",
"0.6375089",
"0.62820965",
"0.5808125",
"0.5782071",
"0.5747657",
"0.56810486",
"0.561093",
"0.5564335",
"0.5561811",
"0.5560505",
"0.555318",
"0.5481213",
"0.5431305",
"0.5376882",
"0.53742164",
"0.53479266",
"0.53288454",
"0.52925205",
"0.52721816"... | 0.79966134 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, ovts):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.808826",
"0.808826",
"0.8054592",
"0.79827315",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, kpXf):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.808826",
"0.808826",
"0.8054592",
"0.79827315",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Create a new InputExample. | def FIMM(YKHO, Artt, PKBr, ZZRG=None, UXqs=None, KeL5=None, e5kH: Optional[Dict]=None, or8S=-1, IOkG=1):
YKHO.guid = Artt
YKHO.text_a = PKBr
YKHO.text_b = ZZRG
YKHO.label = UXqs
YKHO.logits = KeL5
YKHO.idx = or8S
YKHO.num_choices = IOkG
YKHO.meta = e5kH if e5kH else {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1zj(YKHO, hGN5, TG_K):\n return xeAK(content=hGN5, processor=YKHO)",
"def vWdF(YKHO, mWFP, zVa7, qUQs=None, JBZA=None):\n if not JBZA:\n JBZA = mWFP\n pmON = 'inputs/'\n nPrm = {'name': mWFP, 'service': zVa7, 'format': qUQs, 'description': JBZA}\n geh0 = YKHO._loggly_post(pmON, nPrm)\n... | [
"0.74833566",
"0.66668946",
"0.6510095",
"0.6506385",
"0.6452735",
"0.64490294",
"0.62113017",
"0.6176637",
"0.6123469",
"0.6103582",
"0.6094721",
"0.594659",
"0.58926135",
"0.5834265",
"0.57247436",
"0.5699933",
"0.56722575",
"0.567023",
"0.56511265",
"0.56355",
"0.5628377",... | 0.0 | -1 |
Serialize this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.85705614",
"0.8489506",
"0.8483257",
"0.8405309",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.8390355",
"0.8388496",
"0.83509785",
"0.83370554",
"0.831165",
"0.8303297",
"0.8290091",
"0.82854676",
"0.82784045",
"0.82483166",
"0.82... | 0.0 | -1 |
Serialize this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.906579",
"0.89350706",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.88283694",
"0.8805552",
"0.8763156",
"0.8707908",
"0.86420715",
"0.863601",
"0.863601",
"0.8541049",
"0.85313785",
"0.852... | 0.0 | -1 |
Create a new InputExample. | def FIMM(YKHO, Artt, PKBr, ZZRG=None, UXqs=None, KeL5=None, e5kH: Optional[Dict]=None, or8S=-1, IOkG=1, BOjh=[]):
YKHO.guid = Artt
YKHO.text_a = PKBr
YKHO.text_b = ZZRG
YKHO.label = UXqs
YKHO.logits = KeL5
YKHO.idx = or8S
YKHO.num_choices = IOkG
YKHO.meta = e5kH if e5kH else {}
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1zj(YKHO, hGN5, TG_K):\n return xeAK(content=hGN5, processor=YKHO)",
"def vWdF(YKHO, mWFP, zVa7, qUQs=None, JBZA=None):\n if not JBZA:\n JBZA = mWFP\n pmON = 'inputs/'\n nPrm = {'name': mWFP, 'service': zVa7, 'format': qUQs, 'description': JBZA}\n geh0 = YKHO._loggly_post(pmON, nPrm)\n... | [
"0.74844205",
"0.6667367",
"0.6507806",
"0.6506553",
"0.6453331",
"0.6449548",
"0.6210729",
"0.6177141",
"0.6122623",
"0.61033857",
"0.60960156",
"0.59476984",
"0.5893111",
"0.5835057",
"0.5724173",
"0.57007885",
"0.5672324",
"0.5670384",
"0.5651038",
"0.5635032",
"0.56285304... | 0.0 | -1 |
Serialize this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.85705614",
"0.8489506",
"0.8483257",
"0.8405309",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.8390355",
"0.8388496",
"0.83509785",
"0.83370554",
"0.831165",
"0.8303297",
"0.8290091",
"0.82854676",
"0.82784045",
"0.82483166",
"0.82... | 0.0 | -1 |
Serialize this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.906579",
"0.89350706",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.88283694",
"0.8805552",
"0.8763156",
"0.8707908",
"0.86420715",
"0.863601",
"0.863601",
"0.8541049",
"0.85313785",
"0.852... | 0.0 | -1 |
Return an instance of this string that is marked as shortenable | def u0Uu(KCHu):
return (KCHu, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQtJ(YKHO):\n return YKHO.stringify()",
"def g1Tg(YKHO):\n return YKHO.short_flag",
"def lQA3(YKHO, Wswm):\n return ftlq(YKHO, Wswm)",
"def Wv_g(YKHO):\n return VRij(YKHO)",
"def boMv(YKHO) -> 'short':\n raise NotImplementedError",
"def GlEW(YKHO, u54L=3):\n if len(YKHO.short) == u5... | [
"0.6693068",
"0.66084087",
"0.64610904",
"0.6360165",
"0.5789961",
"0.57614636",
"0.5606999",
"0.5565531",
"0.54839414",
"0.54011315",
"0.53984505",
"0.53884774",
"0.5373937",
"0.53497344",
"0.5323252",
"0.5268928",
"0.524313",
"0.5239879",
"0.5225803",
"0.52181965",
"0.51808... | 0.6781918 | 0 |
Creates new storage blob with provided name. | def fwyn(YKHO, zvSV):
return S8SU.Blob(zvSV, YKHO.bucket) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1eK(YKHO, VBA7, vxw0):\n YKHO._blobs[yhaZ.BlobKey(QMSQ(VBA7))] = vxw0",
"def nbcS(gIsw):\n s2Oj = fw7s.get_blob_client(container=G1wx, blob=gIsw.rsplit('/', maxsplit=1)[-1])\n print(f'uploading file - {gIsw}')\n with open(gIsw, 'rb') as nPrm:\n s2Oj.upload_blob(nPrm, overwrite=True)\n ... | [
"0.69727933",
"0.6930854",
"0.6649648",
"0.6394113",
"0.62141454",
"0.62107706",
"0.61868376",
"0.6183597",
"0.61417305",
"0.6131775",
"0.61157864",
"0.5998787",
"0.5932819",
"0.5923683",
"0.59099483",
"0.5853209",
"0.58165365",
"0.5808207",
"0.5799668",
"0.57435995",
"0.5718... | 0.8235651 | 0 |
Compute interpolated keyframe curframe at given time t. | def TcmZ(a1PO):
G1Hx = oyIN.searchsorted(NcD3, a1PO, side='right') - 1
P6bq = (a1PO - NcD3[G1Hx]) / (NcD3[G1Hx + 1] - NcD3[G1Hx])
UcZ6 = (1.0 - P6bq) * UXWP[G1Hx] + P6bq * UXWP[G1Hx + 1]
return UcZ6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XgDT(a1PO):\n UcZ6 = []\n f4IJ = oyIN.searchsorted(NcD3, a1PO, side='right') - 1\n for YRbF in range(11):\n _g9D = o4sw[YRbF]\n Ylbp = _g9D[f4IJ](a1PO)\n UcZ6.append(Ylbp)\n return UcZ6",
"def lgfM(a1PO):\n while EmUK['t'] < VsYj * a1PO:\n QdZT(EmUK)\n return i9J... | [
"0.62958246",
"0.5940751",
"0.5886671",
"0.5645419",
"0.5560966",
"0.5451722",
"0.5347515",
"0.5313439",
"0.5242148",
"0.5220911",
"0.5180004",
"0.5165218",
"0.51633304",
"0.51428956",
"0.51402813",
"0.51286083",
"0.51018995",
"0.50735223",
"0.50711644",
"0.5036631",
"0.50275... | 0.79002583 | 0 |
Compute interpolated keyframe curframe at given time t. | def XgDT(a1PO):
UcZ6 = []
f4IJ = oyIN.searchsorted(NcD3, a1PO, side='right') - 1
for YRbF in range(11):
_g9D = o4sw[YRbF]
Ylbp = _g9D[f4IJ](a1PO)
UcZ6.append(Ylbp)
return UcZ6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TcmZ(a1PO):\n G1Hx = oyIN.searchsorted(NcD3, a1PO, side='right') - 1\n P6bq = (a1PO - NcD3[G1Hx]) / (NcD3[G1Hx + 1] - NcD3[G1Hx])\n UcZ6 = (1.0 - P6bq) * UXWP[G1Hx] + P6bq * UXWP[G1Hx + 1]\n return UcZ6",
"def lgfM(a1PO):\n while EmUK['t'] < VsYj * a1PO:\n QdZT(EmUK)\n return i9JL(Em... | [
"0.79002583",
"0.5940751",
"0.5886671",
"0.5645419",
"0.5560966",
"0.5451722",
"0.5347515",
"0.5313439",
"0.5242148",
"0.5220911",
"0.5180004",
"0.5165218",
"0.51633304",
"0.51428956",
"0.51402813",
"0.51286083",
"0.51018995",
"0.50735223",
"0.50711644",
"0.5036631",
"0.50275... | 0.62958246 | 1 |
Create new InputMetaLayer object. This is currently not a complete wrapper on the Layer Input, as it only wraps the keyword arguments that are used in most common models. | def FIMM(YKHO, GhuM: Union[int, Tuple[int]], mWFP: str=None, **B2fa):
super().__init__(**B2fa)
if isinstance(GhuM, int):
GhuM = (GhuM,)
YKHO._input_shape = GhuM
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G68H(gEmA, **B2fa):\n from .io import G68H\n return G68H(layer=gEmA, **B2fa)",
"def sJUR(mWFP, nPrm, yDqo=None, **dJ1p):\n from ..utils import make_placeholder_for\n ypOY = make_placeholder_for(mWFP, nPrm, dtype=yDqo, **dJ1p)\n vHnr = J9Qm(ypOY, shape=(None,) + nPrm.shape[1:])\n return (vHn... | [
"0.64052975",
"0.63433474",
"0.6247636",
"0.60580474",
"0.59910697",
"0.5989174",
"0.59566367",
"0.58870226",
"0.5884702",
"0.573339",
"0.5700957",
"0.5667299",
"0.5654726",
"0.5627717",
"0.56261784",
"0.5621748",
"0.56090343",
"0.5589271",
"0.5551422",
"0.55495834",
"0.55215... | 0.51207465 | 69 |
Searches for an attendee in the dictionary. On failure, this method raises an MissingAttendeeException. | def yeVX(YKHO, D3lj):
if D3lj in YKHO.Attendees:
return YKHO.Attendees[D3lj]
else:
raise xKeO(D3lj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xDcj(YKHO):\n if not YKHO.invite:\n YKHO.invite = uHFb.get_by_unique_id(YKHO.invite_unique_id)\n _vN6 = bH9W.query(rtVo.AND(bH9W.invite == YKHO.invite.key, bH9W.is_organizer == True)).get()\n if not _vN6:\n return None\n xXrp = {'unique_id': _vN6.unique_id, 'invite_attendee_id': _vN6.... | [
"0.57232606",
"0.5619452",
"0.5422725",
"0.5229931",
"0.52166516",
"0.51550144",
"0.5071238",
"0.48276898",
"0.47516736",
"0.47301325",
"0.4717967",
"0.47106192",
"0.4573977",
"0.45541188",
"0.4506827",
"0.44506383",
"0.4412202",
"0.4361697",
"0.4359595",
"0.43563908",
"0.434... | 0.72808045 | 0 |
Add an attendee to the workshop, using their email address as key. If the email address is already present in the list of attendees or is on the waitlist, this method raises a PreexistingAddressException. If the address is on the waitlist, it will print a message reminding the user to call Promote_from_waitlist() inste... | def e4bj(YKHO, D3lj):
if D3lj not in YKHO.Attendees and D3lj not in YKHO.Waitlist:
YKHO.Attendees[D3lj] = EVdN(D3lj)
else:
if D3lj in YKHO.Waitlist:
print('Call Promote_from_waitlist() to move an applicant from the waitlist.')
raise LNcb(D3lj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jayv(YKHO, D3lj):\n if D3lj not in YKHO.Waitlist:\n YKHO.Waitlist.add(D3lj)\n else:\n raise LNcb(D3lj)",
"def H2v5(YKHO, l7Ge):\n if l7Ge:\n if isinstance(l7Ge, str):\n YKHO.__attendees.append(EVdN(address=l7Ge, event=YKHO._event))\n YKHO._track_changes()\n... | [
"0.6951151",
"0.6493141",
"0.638492",
"0.63520235",
"0.6294123",
"0.6257834",
"0.60932446",
"0.6046712",
"0.5832052",
"0.5677826",
"0.56330425",
"0.5532017",
"0.55039465",
"0.54828507",
"0.5451385",
"0.54199326",
"0.5349298",
"0.5217281",
"0.521642",
"0.52089477",
"0.5205778"... | 0.82025707 | 0 |
Check if an applicant is accepted or waitlisted. This method first checks the attendee list, then checks the waitlist. If the supplied email address is not found, raises a MissingAddressException. | def UoXi(YKHO, D3lj):
jGRS = None
if D3lj in YKHO.Attendees:
jGRS = yYrm.Accepted
elif D3lj in YKHO.Waitlist:
jGRS = yYrm.Waitlisted
else:
raise c5lq(D3lj)
return jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e4bj(YKHO, D3lj):\n if D3lj not in YKHO.Attendees and D3lj not in YKHO.Waitlist:\n YKHO.Attendees[D3lj] = EVdN(D3lj)\n else:\n if D3lj in YKHO.Waitlist:\n print('Call Promote_from_waitlist() to move an applicant from the waitlist.')\n raise LNcb(D3lj)",
"def njMb(YKHO, D... | [
"0.62334037",
"0.5781845",
"0.56028545",
"0.55881464",
"0.5553194",
"0.5428202",
"0.53361905",
"0.5327851",
"0.53183365",
"0.530265",
"0.5272272",
"0.51593596",
"0.5106135",
"0.50733864",
"0.5050823",
"0.50445324",
"0.49496946",
"0.4940701",
"0.49240455",
"0.49218234",
"0.489... | 0.64265865 | 0 |
Compute how many attendees signed in to each session on a day. For every attendee that signs in to one of the offered sessions, this method increments the counter for that session (or initializes it to one for a session that hasn't been encountered yet. | def xHQu(YKHO, CjKC):
Aing = {}
for WKvO in YKHO.Attendees.values():
if WKvO.Sessions[CjKC] in Aing and WKvO.Sessions[CjKC] is not '':
Aing[WKvO.Sessions[CjKC]] = Aing[WKvO.Sessions[CjKC]] + 1
else:
Aing[WKvO.Sessions[CjKC]] = 1
return Aing | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bnOF(YKHO):\n return len(YKHO.current_sessions)",
"def aAza(YKHO, object):\n Tf5Y = object.actorrole_set.all()\n return RZqF.objects.filter(actors_role__in=Tf5Y).count()",
"def M5cb(YKHO):\n bo34.debug('Getting the number of sessions discovered...')\n return gFHi(VcOo(\"span[data-nsmodule='s... | [
"0.57090175",
"0.5537584",
"0.5531266",
"0.54969347",
"0.5439328",
"0.53762466",
"0.5323897",
"0.53211915",
"0.53091717",
"0.53065026",
"0.52897257",
"0.52137667",
"0.5194744",
"0.51804066",
"0.51711667",
"0.5168871",
"0.51473755",
"0.51372963",
"0.51321065",
"0.50912875",
"0... | 0.7209948 | 0 |
Add post by calling posts service. Adds user id of the user making the post as author_id to form data sent to posts service. | def CgNh():
CBIr = TKWP()
if not CBIr:
return ('Error: not logged in.', 401)
bD7m = P4t4.config['POSTS_ENDPOINT'] + 'add'
BGqR = dict(**QePW.form.to_dict(), author_id=CBIr['user_id'])
Yw_3 = ((VXjJ.filename, VXjJ.read()) for VXjJ in QePW.files.getlist('images') if VXjJ.filename != '')
ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CgNh(QePW):\n if QePW.session.get('id_user') is None:\n QePW.session['res'] = 'Warn'\n yEHD.add_message(QePW, yEHD.WARNING, 'The session has expired')\n return Yd7Q(gxEw('home'))\n L03z = L39s(QePW.POST or None)\n if QePW.method == 'POST':\n if L03z.is_valid():\n ... | [
"0.7602229",
"0.72879845",
"0.7005604",
"0.69434804",
"0.6921558",
"0.6888893",
"0.6812449",
"0.6746644",
"0.6545158",
"0.6529506",
"0.64980423",
"0.6371167",
"0.6338856",
"0.6317552",
"0.63172317",
"0.63016665",
"0.6293583",
"0.62622327",
"0.6239217",
"0.623715",
"0.62160236... | 0.6413327 | 11 |
Constructor for the UpdateNetworkWarmSpareSettingsModel class | def FIMM(YKHO, etR_=None, dnkF=None, CZly=None, uZ0J=None, nwco=None):
YKHO.enabled = etR_
YKHO.spare_serial = dnkF
YKHO.uplink_mode = CZly
YKHO.virtual_ip_1 = uZ0J
YKHO.virtual_ip_2 = nwco | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(rQFt, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.max_features is None:\n YKHO.max_features = 0\n if YKHO.window_size is None:\n YKHO.window_size = 0\n if YKHO.quality is None:\n YKHO.quality = 0.0... | [
"0.58650357",
"0.58364075",
"0.56694484",
"0.5654198",
"0.56180215",
"0.5558292",
"0.55111986",
"0.5496053",
"0.54935926",
"0.54797506",
"0.54699427",
"0.5432645",
"0.541772",
"0.53851205",
"0.5382769",
"0.5381621",
"0.5377827",
"0.53581154",
"0.53518355",
"0.5346524",
"0.534... | 0.0 | -1 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
etR_ = cmPJ.get('enabled')
dnkF = cmPJ.get('spareSerial')
CZly = cmPJ.get('uplinkMode')
uZ0J = cmPJ.get('virtualIp1')
nwco = cmPJ.get('virtualIp2')
return Emd4(etR_, dnkF, CZly, uZ0J, nwco) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.788838",
"0.7882321",
"0.7882212",
"0.7876749",
"0.78585315",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",... | 0.7384797 | 99 |
the total of the sizes desired from this iterator. The actual total may be different. | def GHM9(YKHO):
return YKHO._cfg.get('totalsize', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4X_(YKHO):\n return sum([Rv0k for Rv0k in YKHO.iterate()])",
"def jiw9(YKHO) -> int:\n B2mP = 0\n for bTKY in YKHO.__entries:\n B2mP += bTKY.get_size()\n return B2mP",
"def zNig(YKHO) -> int:\n return YKHO.sizes.sum()",
"def zNig(YKHO):\n return sum((LihS.size for LihS in YKHO))... | [
"0.8967633",
"0.80836415",
"0.805573",
"0.798454",
"0.78757304",
"0.7668775",
"0.7647352",
"0.74896413",
"0.746906",
"0.74311477",
"0.7368163",
"0.73571527",
"0.73442554",
"0.7338029",
"0.7319467",
"0.73103803",
"0.7305982",
"0.7300571",
"0.7300571",
"0.7300571",
"0.7300571",... | 0.0 | -1 |
Give a mock reader and writer when a stream connection is opened. | def GioB(YKHO):
def HagN(*qIxc, **B2fa):
N5Pj = bgBo(loop=YKHO.loop)
WJI9 = mW3z(None, None, N5Pj, YKHO.loop)
WJI9.write = TMAJ.Mock()
S8Ct = V7ok.Future(loop=YKHO.loop)
S8Ct.set_result((N5Pj, WJI9))
return S8Ct
return TMAJ.patch('asyncio.open_connection', side_e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cY5c() -> jd6F[TodC, ImMB, None]:\n with Po4F('aioswitcher.api.open_connection') as w2B8:\n N5Pj = FM6F(ui8J)\n WJI9 = FM6F(e2x8)\n w2B8.return_value = (N5Pj, WJI9)\n yield N5Pj",
"def NyeB(nPrm):\n iquo = TMAJ.Mock(_reading_paused=False)\n wOb_ = ui8J(iquo, limit=2 ** 16... | [
"0.7795498",
"0.7233274",
"0.66034263",
"0.6403565",
"0.63792",
"0.6328056",
"0.62839264",
"0.6120355",
"0.609141",
"0.60079086",
"0.5939413",
"0.59386855",
"0.58975446",
"0.58960325",
"0.5892057",
"0.5866836",
"0.5760095",
"0.57350403",
"0.57150084",
"0.5706348",
"0.5706348"... | 0.78338385 | 0 |
Initializes a sim state model from the given JSON dict. | def FIMM(YKHO, gWlF, qQXR, *qIxc, **B2fa):
super(quEh, YKHO).__init__(*qIxc, **B2fa)
YKHO.src_path = gWlF
YKHO.json = qQXR
YKHO.name = qQXR['name']
YKHO.super = qQXR['super']
YKHO.vars = []
for o7rq in qQXR['vars']:
YKHO.vars.append(Mp6y(o7rq)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UkO7(YKHO, Rf_J: Union[Dict[str, Any], str]) -> 'State':\n QTBn: _LgL = YKHO.__sim.new_state(nMY2(Rf_J))\n return wHLO(YKHO, state=QTBn)",
"def pktP(YKHO, k38h: Union[Dict[str, Any], str]):\n YKHO.__sim = YKHO.__sim.from_json(nMY2(k38h))",
"def tyeH(Emd4, nMY2):\n YimI = qQXR.loads(nMY2)\n r... | [
"0.7310419",
"0.7136584",
"0.7001818",
"0.6644982",
"0.64461297",
"0.63815403",
"0.6281719",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
"0.6263004",
... | 0.7188024 | 1 |
Test retriving a list of ingredients. | def q9Sn(YKHO):
_baS.objects.create(user=YKHO.user, name='Kale')
_baS.objects.create(user=YKHO.user, name='Salt')
Ylbp = YKHO.client.get(ZrLe)
zKHR = _baS.objects.all().order_by('-name')
GWve = UCjM(zKHR, many=True)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(Ylbp.d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zIQx(YKHO):\n hWqz.objects.create(user=YKHO.user, name='Kale')\n hWqz.objects.create(user=YKHO.user, name='Carrot')\n Ylbp = YKHO.client.get(zAZy)\n zKHR = hWqz.objects.all().order_by('-name')\n ZMzz = UCjM(zKHR, many=True)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.asse... | [
"0.7930593",
"0.78405124",
"0.78053796",
"0.76870245",
"0.7683865",
"0.7640372",
"0.7586847",
"0.75048697",
"0.7493256",
"0.7422351",
"0.735028",
"0.7328322",
"0.7293226",
"0.7277591",
"0.7223209",
"0.7203523",
"0.7056605",
"0.7031455",
"0.69995844",
"0.6978001",
"0.6976303",... | 0.78382385 | 2 |
Test creating invalid ingredient fails | def KoKs(YKHO):
pB3N = {'name': ''}
Ylbp = YKHO.client.post(ZrLe, pB3N)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KoKs(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(ZrLe, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def KoKs(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(zAZy, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def KoK... | [
"0.832965",
"0.8300355",
"0.82751215",
"0.8057688",
"0.7770255",
"0.74378127",
"0.7305816",
"0.7297803",
"0.71882874",
"0.716899",
"0.7070017",
"0.70322067",
"0.7011709",
"0.6996802",
"0.69841146",
"0.69791144",
"0.6854592",
"0.67813057",
"0.6730749",
"0.67242676",
"0.6705703... | 0.8349848 | 0 |
PPO forward pass during exploration. Besides the action distribution, this method also returns the parameters of the policy distribution to be used for computing KL divergence between the old policy and the new policy during training. | def BMyO(YKHO, Wc9F: NestedDict) -> GySg[str, ImMB]:
hlel = {}
if YKHO.encoder.config.shared:
Wc9F[E_t7] = None
else:
Wc9F[E_t7] = {_EEg: None, G7ZP: None}
Wc9F[_Fxe.SEQ_LENS] = None
WQ0k = YKHO.encoder(Wc9F)
wNzm = YKHO.vf(WQ0k[GlvC][G7ZP])
hlel[_Fxe.VF_PREDS] = wNzm.squeeze... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MWk2(YKHO, QTBn):\n KCHu = QTBn\n Oa1e = YKHO.config['gamma']\n exwG = YKHO.action_space.n\n jzdc = YKHO.config['alpha']\n lejI = YKHO.policy[QTBn]\n _mSQ = YKHO.weights[QTBn]\n AoMx = sum([(1 + jzdc) ** yzQ0 for yzQ0 in _mSQ])\n rxBy = [(1 + jzdc) ** yzQ0 / AoMx for yzQ0 in _mSQ]\n ... | [
"0.69694346",
"0.6721106",
"0.6600235",
"0.6448375",
"0.6432647",
"0.6429928",
"0.6376032",
"0.6318261",
"0.6232728",
"0.6215525",
"0.61996806",
"0.6198685",
"0.6126165",
"0.61068016",
"0.6092286",
"0.6079757",
"0.6035482",
"0.60280526",
"0.6023603",
"0.6018219",
"0.6005443",... | 0.55313677 | 94 |
Returns true if the input string is an exact match or is a parent of the current rule. For example, the input "foo" would match "foo/bar". | def ikmw(YKHO, Elif):
return YKHO._dir == Elif or YKHO._dir.startswith(Elif + '/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r6_X(jzdc, Fg_i):\n jzdc = jzdc.rstrip('/') + '/'\n Fg_i = Fg_i.rstrip('/') + '/'\n return Fg_i.startswith(jzdc)",
"def hf3O(YKHO, eD8c, vIwR):\n if not '*' in eD8c:\n return eD8c in vIwR\n elif eD8c[0] == '*':\n return vIwR.endswith(eD8c[1:])\n elif eD8c[-1] == '*':\n ... | [
"0.6126698",
"0.61080897",
"0.595353",
"0.5909226",
"0.58374923",
"0.58259046",
"0.57361436",
"0.5688292",
"0.56122553",
"0.55804825",
"0.55572253",
"0.55557173",
"0.5533373",
"0.5527504",
"0.5467835",
"0.5460459",
"0.54595035",
"0.5457578",
"0.54355943",
"0.5397742",
"0.5397... | 0.6591054 | 0 |
Initializes the current rules with an empty rule list. | def FIMM(YKHO):
YKHO._rules = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc):\n VQ6Z = _VfD.new_ListOfRules(*qIxc)\n try:\n YKHO.this.append(VQ6Z)\n except:\n YKHO.this = VQ6Z",
"def FIMM(YKHO, c_NS):\n YKHO.rules = c_NS\n YKHO._rhs_rules = oRi_(list)\n YKHO._rhs_unary_rules = oRi_(list)\n YKHO._nonterm = set((eD8c.lhs for eD8c in ... | [
"0.6711449",
"0.6559701",
"0.64717335",
"0.6440759",
"0.6372311",
"0.6318276",
"0.62302643",
"0.6225394",
"0.6114428",
"0.60714287",
"0.60714287",
"0.60714287",
"0.60714287",
"0.60714287",
"0.60563016",
"0.6040242",
"0.5943357",
"0.59213316",
"0.58914596",
"0.5876889",
"0.586... | 0.6947913 | 0 |
Get a random 'bacon ipsum' sentence | def EE9F():
return pz3A(objects=Acvy(dvWf)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nFq4():\n return tuKI.choices(OMSA, tkVO, k=1)[0]",
"def nFq4(YKHO):\n return tuKI.choice(YKHO.phrases)",
"def d4SM(EKSv):\n tuKI.seed(ITS7.time())\n Rhv4 = wr3U.sent_tokenize(EKSv)\n l5Np = tuKI.choice(Rhv4)\n while len(l5Np) < 30 or len(l5Np) > 200:\n l5Np = tuKI.choice(Rhv4)\n ... | [
"0.70955956",
"0.70277435",
"0.6908854",
"0.68263525",
"0.6803456",
"0.68022555",
"0.6786628",
"0.6775289",
"0.6743554",
"0.67390364",
"0.6733594",
"0.6728541",
"0.6712171",
"0.663811",
"0.65662116",
"0.65206885",
"0.64819235",
"0.64735246",
"0.6473171",
"0.6469222",
"0.64596... | 0.0 | -1 |
Get a user by their ID. | def TKWP(uJjO):
try:
return Nc2H.objects.get(id=uJjO)
except Nc2H.DoesNotExist:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def NMoC(id):\n return mv1M.query.filter_by(id=id).first()",
"def NMoC(YKHO, id):\n try:\n H6Ho.logger.debug('We are getting the user: %d', id)\n return ud_Z.get(id)\n except AssertionError as e:\n WWEd.abort(400, tTpl.args[0],... | [
"0.88861406",
"0.86365294",
"0.85202235",
"0.8517583",
"0.8488731",
"0.84511024",
"0.8395609",
"0.8386479",
"0.83738387",
"0.8367229",
"0.835282",
"0.8351773",
"0.8351773",
"0.8351773",
"0.8351773",
"0.8349936",
"0.8319482",
"0.8300946",
"0.83005583",
"0.8246705",
"0.8239341"... | 0.8028615 | 40 |
Compute error in assigned energy. | def bYLo(N6Z1, yLaY):
UAju = {}
iJM6 = NfNr(N6Z1, yLaY)
for VFaV, sVti in iJM6:
UOrz = VFaV.good_sections()
XI1H = sVti.total_energy(sections=UOrz)
D0XP = VFaV.total_energy(sections=UOrz)
UAju[VFaV.instance()] = oyIN.abs(XI1H - D0XP)
return rLdf.Series(UAju) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UhKs(YKHO):\n assert YKHO.data is not None\n mRU2 = YKHO.measure_total_energy(YKHO.t0)\n w401 = YKHO.measure_total_energy(YKHO.t1)\n P1dF = abs(1.0 - mRU2 / w401)\n return P1dF",
"def ouSq(YKHO):\n YKHO.tt_error = oyIN.linalg.norm(YKHO.rel_error)\n if YKHO.global_rank == 0:\n prin... | [
"0.7673071",
"0.7261708",
"0.70349896",
"0.6841539",
"0.6831616",
"0.67946625",
"0.6758311",
"0.6587101",
"0.6583621",
"0.65466523",
"0.6533069",
"0.6529721",
"0.65093976",
"0.64881486",
"0.6468679",
"0.64505327",
"0.6443367",
"0.6417644",
"0.6359125",
"0.6347714",
"0.6335141... | 0.6870523 | 3 |
RNN cell function with tanh activation | def Ojo4(g4y1, Zode, cEBT, rA0U, zsPV, NGVJ):
if zsPV is None:
x04Z = V6IE.MatMul(False, True)(g4y1, cEBT)
azPJ = V6IE.MatMul(False, True)(Zode, rA0U)
else:
x04Z = V6IE.MatMul(False, True)(g4y1, cEBT) + zsPV
azPJ = V6IE.MatMul(False, True)(Zode, rA0U) + NGVJ
return V6IE.Tanh(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YDYE(WKvO):\n return oyIN.maximum(0, WKvO)",
"def utyH(YKHO, YuSI):\n if YKHO.activation == 'ReLU':\n return ZylS.nn.relu(YuSI)\n elif YKHO.activation == 'Leaky_ReLU':\n return ZylS.nn.leaky_relu(YuSI)\n elif YKHO.activation == 'Tanh':\n return ZylS.nn.tanh(YuSI)\n elif YK... | [
"0.69215816",
"0.6788837",
"0.67736083",
"0.67255974",
"0.6679339",
"0.6654235",
"0.6556268",
"0.6556268",
"0.6527681",
"0.64941",
"0.6482483",
"0.64754736",
"0.6464059",
"0.6446869",
"0.644436",
"0.6429654",
"0.6415111",
"0.63848644",
"0.6321934",
"0.63138586",
"0.6306427",
... | 0.6808671 | 1 |
RNN cell function with relu activation | def fbZw(g4y1, Zode, cEBT, rA0U, zsPV, NGVJ):
if zsPV is None:
x04Z = V6IE.MatMul(False, True)(g4y1, cEBT)
azPJ = V6IE.MatMul(False, True)(Zode, rA0U)
else:
x04Z = V6IE.MatMul(False, True)(g4y1, cEBT) + zsPV
azPJ = V6IE.MatMul(False, True)(Zode, rA0U) + NGVJ
return V6IE.ReLU(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, SBG5=1, q1vv=10, v2uf=True, YDYE='glu', hr1G=0.5, iBWW=True, swjj='BGRU', DMC5=128, k9Pf=2, k4jQ=0, OOHF=False, OXzC=False, **B2fa):\n super(alOO, YKHO).__init__()\n YKHO.n_in_channel = SBG5\n YKHO.attention = v2uf\n YKHO.cnn_integration = OOHF\n YKHO.freeze_bn = OXzC\n bMRV = SBG5... | [
"0.69049406",
"0.6694786",
"0.6610544",
"0.6543841",
"0.6488849",
"0.64725643",
"0.6468668",
"0.6452474",
"0.6450946",
"0.64453447",
"0.63995737",
"0.6399099",
"0.6392296",
"0.63896805",
"0.6389588",
"0.63879484",
"0.6385305",
"0.63842195",
"0.6382756",
"0.6370192",
"0.635885... | 0.68751925 | 1 |
Returns instance of nonlinearity class (from torch.nn) | def NwGE(mWFP):
yR_P = tF99('torch.nn')
mBOY = getattr(yR_P, mWFP)
KAOR = mBOY()
return KAOR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zfNm(mWFP):\n yR_P = tF99('torch.nn')\n mBOY = getattr(yR_P, mWFP)\n return mBOY",
"def V6Xh(mWFP):\n if mWFP == 'relu':\n return U78l.ReLU(inplace=True)\n elif mWFP == 'softplus':\n return U78l.Softplus()\n elif mWFP == 'swish':\n return gC8a(inplace=True)\n elif mW... | [
"0.79875916",
"0.7752334",
"0.7361392",
"0.64611924",
"0.6386992",
"0.634787",
"0.62646323",
"0.60385823",
"0.6031603",
"0.6024365",
"0.60142076",
"0.6009464",
"0.59846556",
"0.591352",
"0.5907569",
"0.58670866",
"0.580639",
"0.57910013",
"0.5784239",
"0.5772914",
"0.5715353"... | 0.8535837 | 0 |
Sums the values of the common keys in dictionary. | def YGp_(fgcx: dict):
def qC24(alQJ, U6D_):
for H5ew, BWXx in U6D_.items():
alQJ[H5ew] = alQJ.get(H5ew, 0) + BWXx
return alQJ
return Pusg(qC24, fgcx, {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jvOj(Csk6):\n return sum((G1Hx * Ty9i for G1Hx, Ty9i in Csk6.items()))",
"def E2V2(eUNp):\n jzdc = 0\n for H5ew in eUNp:\n jzdc += eUNp[H5ew]\n return jzdc",
"def _Ve2(FOzR: Dict[int, Tensor], HyjZ: Dict[int, Tensor]) -> cuzp[int, llWB]:\n for exwG in HyjZ:\n FOzR[exwG] += HyjZ... | [
"0.6692155",
"0.66515815",
"0.6525686",
"0.6519993",
"0.6500651",
"0.64367247",
"0.6334926",
"0.62519944",
"0.61483663",
"0.59957457",
"0.5956586",
"0.5954998",
"0.59507287",
"0.5906354",
"0.5846831",
"0.58201337",
"0.57652277",
"0.5752573",
"0.5737671",
"0.5719358",
"0.57102... | 0.6337445 | 6 |
Draw an SVG line segment between the given points under parent | def bON4(HWHP, _AKB, _Cnz):
rCEz = {'style': Ui8G.formatStyle(_Cnz), lmJC.addNS('label', 'inkscape'): 'line', 'd': KtTH(HWHP, False)}
lmJC.etree.SubElement(_AKB, lmJC.addNS('path', 'svg'), rCEz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_lX(YKHO, o4D3, si3g, ajwV, skBL, _Cnz=None, _AKB=None):\n o8Kj = {'d': 'M %5f %5f L %5f %5f' % (o4D3, si3g, ajwV, skBL)}\n return YKHO.create_path(o8Kj, _Cnz, _AKB)",
"def zFiD(LTIa):\n return y3ji(LTIa)",
"def egFI(YKHO):\n return _VfD.Curve_createLineSegment(YKHO)",
"def UaY5(o4D3: float,... | [
"0.64222807",
"0.64101565",
"0.6381611",
"0.6279581",
"0.6241095",
"0.6101679",
"0.6073024",
"0.6025312",
"0.60190606",
"0.60175586",
"0.5999782",
"0.59509224",
"0.59188807",
"0.59128755",
"0.59081477",
"0.5896285",
"0.5848721",
"0.5810793",
"0.5793197",
"0.5773654",
"0.57647... | 0.7689063 | 0 |
This class method saves a list of json into a file | def AHFl(Emd4, Nkld):
Ux0P = Emd4.__name__
zUxs = []
if Nkld:
for YRbF in Nkld:
zUxs.append(Emd4.to_dictionary(YRbF))
with open(Ux0P + '.json', 'w') as DfdU:
DfdU.write(Emd4.to_json_string(zUxs)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AHFl(Emd4, Nkld):\n N5ik = Emd4.__name__ + '.json'\n list = []\n if Nkld is not None:\n for YRbF in Nkld:\n YRbF = YRbF.to_dictionary()\n YGFP = qQXR.loads(Emd4.to_json_string(YRbF))\n list.append(YGFP)\n with open(N5ik, 'w') as Gcbu:\n qQXR.dump(list,... | [
"0.84365845",
"0.8304052",
"0.8297322",
"0.82886374",
"0.8286166",
"0.8252678",
"0.8243943",
"0.8242665",
"0.8226171",
"0.8221869",
"0.8221248",
"0.82067615",
"0.8189573",
"0.81281996",
"0.8106368",
"0.80998546",
"0.8095289",
"0.80938625",
"0.8037074",
"0.8031842",
"0.7923981... | 0.8151563 | 13 |
recursive function checks if n is prime, i is iterative checker should always be 2 | def T1qg(exwG, YRbF):
if exwG == 2:
return True
elif exwG < 2:
return False
elif exwG % YRbF == 0:
return False
elif int(exwG ** 0.5) + 1 == YRbF:
return True
else:
return T1qg(exwG, YRbF + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n if exwG == 2:\n return True\n if exwG == 3:\n return True\n if exwG % 2 == 0:\n return False\n if exwG % 3 == 0:\n return False\n YRbF = 5\n yzQ0 = 2\n while YR... | [
"0.8216246",
"0.8142434",
"0.8015298",
"0.801398",
"0.79860234",
"0.7963012",
"0.796197",
"0.79593444",
"0.7947045",
"0.79118127",
"0.7889574",
"0.7883453",
"0.7878145",
"0.7852416",
"0.784652",
"0.78342605",
"0.7832309",
"0.7830177",
"0.78268653",
"0.78036916",
"0.78035414",... | 0.80664206 | 2 |
Retrieve the campaign with the specified campaign ID. | def duVS(zVa7, TnfX):
d_qS = None
xDcj = uKTU.ServiceQueryBuilder().Select('Id', 'Name', 'CampaignGroupId', 'Status', 'ServingStatus', 'StartDate', 'EndDate', 'BudgetId', 'BudgetName', 'BudgetStatus', 'Amount', 'DeliveryMethod', 'BudgetReferenceCount', 'IsBudgetExplicitlyShared', 'Settings').Where('Id').EqualTo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xeky(YKHO, _j1c: str) -> dict:\n return YKHO.http_request('GET', f'/campaign/{_j1c}')",
"def NMoC(YKHO, _j1c):\n j4i0 = Glze.query.filter_by(mailchimp_id=_j1c).first()\n if j4i0 is None:\n return ({'message': 'Campaign could not be found.'}, qed_.NOT_FOUND)\n return (YKHO.schema.dump(j4i0)... | [
"0.872054",
"0.8059463",
"0.7973154",
"0.7601841",
"0.74812067",
"0.7131718",
"0.70441926",
"0.6969936",
"0.66165847",
"0.6594302",
"0.6531368",
"0.641937",
"0.62838286",
"0.61385536",
"0.6132557",
"0.6094689",
"0.60525316",
"0.5987939",
"0.59317404",
"0.5921593",
"0.5842648"... | 0.74734056 | 5 |
Takes a list of strings and creates a new list from it by selecting only the list items with a length in a given range. | def M8nk(JTgH):
NgyN = [GIN8 for GIN8 in JTgH if len(GIN8) in range(4, 7)]
return NgyN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LbF2(JTgH):\n j777 = [GIN8 for GIN8 in JTgH if len(GIN8) in range(6, 9)]\n return j777",
"def Xnjd(vwCE, JW3T):\n Dk5r = []\n for GIN8 in vwCE:\n if len(GIN8) >= JW3T:\n Dk5r.append(GIN8)\n return Dk5r",
"def q8Fb(YNKD, *gUAk):\n AbV7 = []\n for A2Fp in gUAk:\n ... | [
"0.6459617",
"0.64349717",
"0.6273469",
"0.6204543",
"0.61294156",
"0.606697",
"0.5928466",
"0.5861417",
"0.5834409",
"0.5818952",
"0.57784605",
"0.57328063",
"0.57142603",
"0.5713083",
"0.5701296",
"0.57009983",
"0.57005084",
"0.5699972",
"0.5687869",
"0.56783694",
"0.564832... | 0.6362166 | 2 |
Takes a list of strings and creates a new list from it by selecting only the list items with a length in a given range. | def LbF2(JTgH):
j777 = [GIN8 for GIN8 in JTgH if len(GIN8) in range(6, 9)]
return j777 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xnjd(vwCE, JW3T):\n Dk5r = []\n for GIN8 in vwCE:\n if len(GIN8) >= JW3T:\n Dk5r.append(GIN8)\n return Dk5r",
"def M8nk(JTgH):\n NgyN = [GIN8 for GIN8 in JTgH if len(GIN8) in range(4, 7)]\n return NgyN",
"def q8Fb(YNKD, *gUAk):\n AbV7 = []\n for A2Fp in gUAk:\n ... | [
"0.64369166",
"0.636221",
"0.62713736",
"0.6205217",
"0.61299384",
"0.6068557",
"0.5928568",
"0.58618736",
"0.5835389",
"0.58201027",
"0.577964",
"0.57324237",
"0.5715334",
"0.5713236",
"0.57024086",
"0.5702396",
"0.5702099",
"0.56998324",
"0.5686282",
"0.56797135",
"0.564861... | 0.6460133 | 0 |
Takes a list of strings and creates a new list from it by selecting only the list items above a given length. | def rdsW(JTgH):
return [GIN8 for GIN8 in JTgH if len(GIN8) > 7] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xnjd(vwCE, JW3T):\n Dk5r = []\n for GIN8 in vwCE:\n if len(GIN8) >= JW3T:\n Dk5r.append(GIN8)\n return Dk5r",
"def ahT8(V22M, T8H5=1):\n g68O = []\n for yzQ0 in V22M:\n if len(yzQ0) > T8H5:\n g68O += [yzQ0]\n return g68O",
"def Ee4L(list, exwG):\n Yp... | [
"0.68708795",
"0.6526671",
"0.6393872",
"0.63184375",
"0.62557274",
"0.6120661",
"0.6115258",
"0.60673976",
"0.59717935",
"0.59681296",
"0.59609413",
"0.59354407",
"0.59325707",
"0.5886559",
"0.58851147",
"0.586564",
"0.5864631",
"0.57966626",
"0.5776216",
"0.5774818",
"0.569... | 0.68514585 | 1 |
A Mock object that tracks the arguments passed to ``mock_requests_get``. | def TrsV():
return CFMy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmTQ(QePW, Ehsq, TrsV):\n\n def ryQO(bD7m, *qIxc, **B2fa):\n TrsV(bD7m, *qIxc, **B2fa)\n nkG0 = CFMy()\n if bD7m == B2Ja.data.data_manager.FOLDERMAP_URL:\n zgjV = n9ve\n elif bD7m == B2Ja.data.data_manager.DATA_STRUCT_URL:\n zgjV = iV4r\n else:\n ... | [
"0.70834166",
"0.70166415",
"0.70166415",
"0.68699217",
"0.68622553",
"0.6665555",
"0.65695417",
"0.6492705",
"0.6428181",
"0.63369954",
"0.6305749",
"0.62332165",
"0.62080306",
"0.6169455",
"0.6141721",
"0.612852",
"0.608851",
"0.6052431",
"0.6016587",
"0.60133666",
"0.60116... | 0.72228837 | 0 |
Test that load_interactive raises errors as expected. | def NJ0f(YKHO, TWwq, WaVS, sEzN, bqDz, rhwM):
TWwq.side_effect = bqDz
with trZe.raises(ValueError, match=rhwM):
B2Ja.data.load_interactive() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BpGF(YKHO, TWwq, WaVS, sEzN):\n TWwq.side_effect = ['1', '1', '2', '', '', 'n']\n assert B2Ja.data.load_interactive() is None\n sEzN.assert_not_called()",
"def Zq6T(YKHO):\n YKHO.executor.command(['python']).interactive()",
"def zI0_(YKHO, TWwq, _RPY, sEzN, bqDz, Z9pM, B2fa, HKEK):\n TWwq.si... | [
"0.70544934",
"0.6809864",
"0.6506324",
"0.60931635",
"0.60766405",
"0.60399216",
"0.59700453",
"0.59311086",
"0.5883256",
"0.5854243",
"0.5846857",
"0.58448637",
"0.58174115",
"0.58081365",
"0.5711355",
"0.56946075",
"0.5689444",
"0.5625806",
"0.5598438",
"0.5582914",
"0.557... | 0.7494969 | 0 |
Split given iterable onto chunks | def PKW0(YKHO, OxJJ, zNig):
return BfDw.split_on_chunks(OxJJ, zNig) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WaSS(OxJJ, zNig):\n WhY1 = iter(OxJJ)\n while True:\n yOAJ = tuple(Hs6x.islice(WhY1, zNig))\n if len(yOAJ) == 0:\n break\n yield yOAJ",
"def eHxA(OxJJ: Iterable, zNig: int) -> iu5r:\n WhY1 = iter(OxJJ)\n ZfUD = list(Hs6x.islice(WhY1, zNig))\n while ZfUD:\n ... | [
"0.81159973",
"0.810018",
"0.8098471",
"0.8038265",
"0.7903734",
"0.7899264",
"0.7899264",
"0.7899264",
"0.78685635",
"0.78611284",
"0.7848479",
"0.7809545",
"0.78014433",
"0.77784353",
"0.77582365",
"0.7746395",
"0.7701635",
"0.7692304",
"0.7682479",
"0.75928974",
"0.7571888... | 0.8425778 | 0 |
Check whether `name` is on PATH and marked as executable. | def cCxB(mWFP, pmON=None):
if pmON is None:
pmON = HwRy.path
for y0cW in pmON:
Ux0P = Hy7s.path.join(y0cW, mWFP)
xY56 = Hy7s.access(Ux0P, Hy7s.X_OK)
Nz4g = Hy7s.path.isfile(Ux0P)
if xY56 and Nz4g:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z02A(mWFP):\n if HwRy.platform == 'win32' and (not mWFP.endswith('.exe')):\n mWFP += '.exe'\n for dir in Hy7s.environ['PATH'].split(Hy7s.pathsep):\n if Hy7s.path.exists(Hy7s.path.join(dir, mWFP)):\n return True\n return False",
"def uEwC(mWFP):\n for pmON in Hy7s.environ[... | [
"0.7582222",
"0.7334834",
"0.68563867",
"0.6797505",
"0.6730911",
"0.6702017",
"0.66863793",
"0.6633461",
"0.6565157",
"0.6505376",
"0.64872324",
"0.64478695",
"0.64478695",
"0.64443296",
"0.63127434",
"0.6298172",
"0.62905246",
"0.6283094",
"0.625587",
"0.625315",
"0.6245806... | 0.7199737 | 2 |
Creates an output file name concatenating a formatted date and uuid, but without an extension. | def a7Ip():
_c1T = str(qcWV.datetime.now().strftime('%Y%d%m_%H%M%S'))
return f'log-{_c1T}-{str(qxeD.uuid4())}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gIsw(Lx3t, YBcr='json'):\n return f'./output/{Lx3t}_{qcWV.now().strftime('%Y-%m-%d_%H%M%S')}_transformed_{DpZH}.{YBcr}'",
"def vD4E(y0cW='output_', Fst3='.txt'):\n q5GV = y0cW + '{:%Y%m%d%H%M%S}utc{}'.format(qcWV.datetime.utcnow(), Fst3)\n return q5GV",
"def pcWg(Ux0P: str) -> str:\n return f'{... | [
"0.7627474",
"0.7597961",
"0.74421334",
"0.7399471",
"0.7236587",
"0.7156143",
"0.70930046",
"0.7051153",
"0.69733477",
"0.6964265",
"0.6907357",
"0.6892586",
"0.68481576",
"0.6834502",
"0.67985445",
"0.6789728",
"0.6768949",
"0.6739769",
"0.67366415",
"0.6734724",
"0.6719701... | 0.7540315 | 2 |
The VSwitch ID to launch in. | def D_IQ(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'vswitch_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> qe4Y.Output[str]:\n ... | [
"0.83531034",
"0.83531034",
"0.83531034",
"0.83531034",
"0.8014658",
"0.8014658",
"0.8014658",
"0.7972313",
"0.7972313",
"0.7972313",
"0.7038184",
"0.6870708",
"0.67459774",
"0.6664893",
"0.6610916",
"0.65496516",
"0.6355625",
"0.632998",
"0.626324",
"0.6253746",
"0.61938035"... | 0.82426065 | 6 |
The id of the VPC. | def xOeT(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_... | [
"0.8599307",
"0.8599307",
"0.8599307",
"0.8599307",
"0.8599307",
"0.8599307",
"0.82964474",
"0.82964474",
"0.82964474",
"0.82964474",
"0.82964474",
"0.82964474",
"0.82964474",
"0.82964474",
"0.82964474",
"0.814231",
"0.8096529",
"0.80824566",
"0.8080263",
"0.8080263",
"0.8080... | 0.79214036 | 35 |
The id of the VPC. | def xOeT(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_... | [
"0.86007315",
"0.86007315",
"0.86007315",
"0.86007315",
"0.86007315",
"0.86007315",
"0.82978016",
"0.82978016",
"0.82978016",
"0.82978016",
"0.82978016",
"0.82978016",
"0.82978016",
"0.82978016",
"0.82978016",
"0.8143681",
"0.8097862",
"0.80837685",
"0.80816704",
"0.80816704",
... | 0.7922732 | 36 |
The VSwitch ID to launch in. | def D_IQ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vswitch_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> qe4Y.Input[str]:\n ... | [
"0.83531034",
"0.83531034",
"0.83531034",
"0.83531034",
"0.82426065",
"0.82426065",
"0.82426065",
"0.8014658",
"0.8014658",
"0.8014658",
"0.7038184",
"0.6870708",
"0.67459774",
"0.6664893",
"0.6610916",
"0.65496516",
"0.6355625",
"0.632998",
"0.626324",
"0.6253746",
"0.619380... | 0.7972313 | 12 |
(Available in 1.196.0+) The connection string of the DRDS instance. | def YtR6(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'connection_string') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBjx(YKHO) -> str:\n return qe4Y.get(YKHO, 'rdb_storage_connection_string')",
"def YtR6(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'connection_string')",
"def fZIz(YKHO):\n KJWQ = 'host={} dbname={} user={} password={}'\n return KJWQ.format(YKHO.get('DB_HOST'), YKHO.get('DB_NAME')... | [
"0.7215253",
"0.7137665",
"0.71175855",
"0.7048221",
"0.6999686",
"0.6860355",
"0.6818071",
"0.6782746",
"0.6754",
"0.6754",
"0.6754",
"0.6754",
"0.6748736",
"0.67219",
"0.65497816",
"0.65237206",
"0.6468309",
"0.64042175",
"0.62382597",
"0.61834353",
"0.61751384",
"0.61683... | 0.7330818 | 1 |
The id of the VPC. | def xOeT(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_... | [
"0.8599307",
"0.8599307",
"0.8599307",
"0.8599307",
"0.8599307",
"0.8599307",
"0.814231",
"0.8096529",
"0.80824566",
"0.8080263",
"0.8080263",
"0.8080263",
"0.8080263",
"0.8080263",
"0.8080263",
"0.7928086",
"0.79214036",
"0.79214036",
"0.79214036",
"0.79214036",
"0.79214036"... | 0.82964474 | 14 |
The VSwitch ID to launch in. | def D_IQ(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'vswitch_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> qe4Y.Input[str]:\n ... | [
"0.83531034",
"0.83531034",
"0.83531034",
"0.83531034",
"0.82426065",
"0.82426065",
"0.82426065",
"0.7972313",
"0.7972313",
"0.7972313",
"0.7038184",
"0.6870708",
"0.67459774",
"0.6664893",
"0.6610916",
"0.65496516",
"0.6355625",
"0.632998",
"0.626324",
"0.6253746",
"0.619380... | 0.8014658 | 9 |
Test that an joinedload locates the correct "from" clause with which to attach to, when presented with a query that already has a complicated from clause. | def BKlo(YKHO):
nPup, lfdS, xAU6 = (YKHO.classes.Thing, YKHO.tables.tests, YKHO.tables.options)
KCHu = UWi7()
vexM = KCHu.query(nPup).options(RyuO.orm.joinedload(nPup.category))
Aofo = vexM.select_from(lfdS.outerjoin(xAU6, RyuO.and_(lfdS.c.id == xAU6.c.test_id, lfdS.c.owner_id == xAU6.c.owner_id))).filt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RML8(DUpH, w9nj):\n assert R7np(DUpH, w9nj) == [['Apple', 'Jack']]",
"def K2Sz(YKHO):\n r8hN = YAg3(mv1M, DW23, properties={'orders': koMu(YAg3(L9Jq, BgK2, properties={'items': koMu(YAg3(kLxY, u1mX))}))})\n vexM = gte4().query(r8hN)\n vC9B = vexM.select(u1mX.c.item_name == 'item 4', from_obj=[DW2... | [
"0.583333",
"0.5811244",
"0.5717283",
"0.5636187",
"0.55718243",
"0.544287",
"0.53375626",
"0.5284296",
"0.52810687",
"0.5258701",
"0.51547813",
"0.5143612",
"0.5139339",
"0.51384854",
"0.5105937",
"0.5047086",
"0.5011428",
"0.50101984",
"0.494263",
"0.49410388",
"0.49380353"... | 0.6702169 | 0 |
Returns the actual SQL query for the AlterTableAppendCommand class. | def CWt0(U6D_, PD5D, **YSA3):
if U6D_.ignore_extra:
aPhY = 'IGNOREEXTRA'
elif U6D_.fill_target:
aPhY = 'FILLTARGET'
else:
aPhY = ''
Qzwg = 'ALTER TABLE {target} APPEND FROM {source} {fill_option}'.format(target=PD5D.preparer.format_table(U6D_.target), source=PD5D.preparer.format_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o6y_(YKHO):\n if YKHO._action == 'create':\n return YKHO.platform().compile_create_sql(YKHO.table)\n else:\n if not YKHO._dry:\n tyNF = YKHO.platform().get_current_schema(YKHO.connection, 'table_schema')\n YKHO.table.from_table = tyNF\n return YKHO.platform().co... | [
"0.61561954",
"0.58244586",
"0.5734942",
"0.5728625",
"0.5588223",
"0.5555393",
"0.5479704",
"0.5460645",
"0.5452044",
"0.543878",
"0.54340225",
"0.53969157",
"0.5389629",
"0.53329724",
"0.5209249",
"0.51985204",
"0.5143985",
"0.5119753",
"0.5108535",
"0.5104118",
"0.50800306... | 0.6292511 | 0 |
Formats and returns the refresh statement for materialized views. | def jVVe(U6D_, PD5D, **YSA3):
l5Ny = 'REFRESH MATERIALIZED VIEW {name}'
return l5Ny.format(name=U6D_.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uHgi():\n pass",
"def KlHx(YKHO) -> 'outputs.MaterializedViewDefinitionResponse':\n return qe4Y.get(YKHO, 'materialized_view')",
"def uUrB():\n pths.drop_all()\n pths.create_all()\n bYRi = EVb9.measurements(city='Los Angeles', parameter='pm25', df=True)\n bYRi['date.utc'] = bYRi['date.utc... | [
"0.591154",
"0.57353634",
"0.5610612",
"0.5570274",
"0.5335929",
"0.53214926",
"0.5156682",
"0.5115354",
"0.51139015",
"0.5090437",
"0.5088428",
"0.50692326",
"0.50692326",
"0.50692326",
"0.503191",
"0.4998386",
"0.4929042",
"0.49238044",
"0.48634622",
"0.48527357",
"0.484435... | 0.70793104 | 0 |
initalizing weight and biases in both hidden and output layer. | def cpOi(YKHO, Lcqa):
cDK5, ROaS = oyIN.shape(Lcqa)
dWUT = 1
YKHO.b_h = []
YKHO.W_h = []
for YRbF in range(len(YKHO.n_hidden)):
if YRbF == 0:
YKHO.W_h.append(YKHO.random.normal(loc=0.0, scale=0.1, size=(ROaS, YKHO.n_hidden[0])))
YKHO.b_h.append(oyIN.ones(YKHO.n_hidden... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)",
"def FIMM(YKHO):\n YKHO.weights = oyIN.zeros(shape=(input.shape[1], 10))\n oug5 = oyIN.zeros(shape=(10,))\n pass",
"def vB93(YKHO) -> None:\n U78l.init.kaiming_normal_(YKHO._U)\n U78l.init.k... | [
"0.7916427",
"0.76706874",
"0.73590094",
"0.73410743",
"0.7329646",
"0.73054445",
"0.7270373",
"0.72660536",
"0.7238125",
"0.72188145",
"0.72188145",
"0.72188145",
"0.7215192",
"0.7202427",
"0.7170466",
"0.71700937",
"0.71562946",
"0.712844",
"0.7127917",
"0.7106147",
"0.7101... | 0.0 | -1 |
Returns the number of inversions for a state. | def mlaG(QTBn):
CI6n = QTBn.copy()
CI6n.remove(0)
iAPc = 0
for jBiU in range(len(CI6n)):
for EI9G in range(jBiU, len(CI6n)):
if CI6n[jBiU] > CI6n[EI9G]:
iAPc += 1
return iAPc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n YRbF = 0\n for o4sw in YKHO.states():\n YRbF += 1\n return YRbF",
"def Y0NF(eZzF):\n kyOB = len(eZzF)\n UHFx = 0\n for YRbF in range(kyOB):\n for r845 in range(YRbF + 1, kyOB):\n if eZzF[YRbF] > eZzF[r845]:\n UHFx += 1\n return UHFx",... | [
"0.6958889",
"0.6923659",
"0.67913723",
"0.6670424",
"0.65887254",
"0.6557737",
"0.6545806",
"0.65103275",
"0.64936066",
"0.64935213",
"0.648256",
"0.63235605",
"0.62633175",
"0.61957735",
"0.6104713",
"0.6042709",
"0.59470165",
"0.5933602",
"0.58902717",
"0.58220905",
"0.578... | 0.8024678 | 0 |
Create and return a logger object. | def fZx2(YKHO, oPxp, ojRq, NX0m, sNVR):
bo34 = G9jH.getLogger(oPxp)
hvl3 = F9u4(ojRq, mode='w')
qAv_ = '%(asctime)s\t%(levelname)-8s\t%(message)s'
hvl3.setFormatter(G9jH.Formatter(qAv_, '%b %d %H:%M:%S'))
bo34.addHandler(hvl3)
bo34.propagate = sNVR
bo34.setLevel(NX0m)
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmAE():\n global logger\n bo34 = G9jH.getLogger(E70h)\n uaPq = G9jH.Formatter(fmt='%(asctime)s %(levelname)s %(message)s')\n DCgT = G9jH.StreamHandler()\n DCgT.setFormatter(uaPq)\n bo34.addHandler(DCgT)\n return bo34",
"def lmAE() -> G9jH.Logger:\n pass",
"def fZx2():\n try:\n ... | [
"0.8251532",
"0.82361585",
"0.7985667",
"0.762031",
"0.75903314",
"0.75695664",
"0.74686754",
"0.7452237",
"0.74471945",
"0.74125844",
"0.74087673",
"0.7403086",
"0.73688155",
"0.73530847",
"0.7334406",
"0.7322634",
"0.7304218",
"0.7304071",
"0.7283704",
"0.72814864",
"0.7275... | 0.6974631 | 61 |
Softens an image using one of several filters. | def pjoT(zZcM, type, r1VO):
if type is xNWs.Box_Blur:
M6vu = int(2 * round(r1VO) + 1)
return XC5k.blur(zZcM, (M6vu, M6vu))
elif type is xNWs.Gaussian_Blur:
M6vu = int(6 * round(r1VO) + 1)
return XC5k.GaussianBlur(zZcM, (M6vu, M6vu), round(r1VO))
elif type is xNWs.Median_Filte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sE9r(LNo8: Image) -> hnIv:\n LNo8 = LNo8.filter(x5w2.Kernel(size=(3, 3), kernel=(1, 0, 1, 0, 0, 0, 1, 0, 1)))\n return LNo8",
"def rvE2(YKHO, LNo8):\n pass",
"def wBb1(YKHO, LNo8, KUnM=[]):\n VVyp = LNo8\n for filter in KUnM:\n VVyp = filter(VVyp)\n return VVyp",
"def rvE2(LNo8: ... | [
"0.6940464",
"0.68777573",
"0.66782075",
"0.6674472",
"0.6443564",
"0.6308458",
"0.62127733",
"0.61987185",
"0.6174309",
"0.61593276",
"0.6157818",
"0.6157092",
"0.6131218",
"0.61281127",
"0.6121643",
"0.61205",
"0.6056204",
"0.60542923",
"0.6044621",
"0.6041386",
"0.6034381"... | 0.0 | -1 |
Renders the home page. | def d6pt():
return TvZl('index.html', nav=eynd, title='Home Page', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the about page. | def vsuQ():
return TvZl('about.html', nav=eynd, title='About this site', year=qcWV.now().year, message='This site shows different applications of Flask') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.79610586 | 44 |
If the dataset name exists in the datasets directory then create the restriction. | def ic_D(gMbG, xcX1, Oxrr):
if xcX1 in gMbG and Oxrr is not None:
__n6 = gMbG[xcX1]
return USpk(Oxrr, __n6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MkcP(E_qD, j3aw):\n assert EaU9(E_qD, 5, '//h3[text()=\"Add Dataset\"]')\n assert EaU9(E_qD, 5, '//input[@ix-auto=\"input__Name\"]', 'inputable')\n E_qD.find_element_by_xpath('//input[@ix-auto=\"input__Name\"]').clear()\n E_qD.find_element_by_xpath('//input[@ix-auto=\"input__Name\"]').send_keys(j3a... | [
"0.6280435",
"0.5983717",
"0.5944235",
"0.59015095",
"0.5740324",
"0.5702436",
"0.56856525",
"0.56805444",
"0.5628198",
"0.5618277",
"0.5610081",
"0.56033325",
"0.5593702",
"0.55411804",
"0.5522255",
"0.5480434",
"0.54674894",
"0.5434529",
"0.54227555",
"0.540465",
"0.5401859... | 0.7332457 | 0 |
Removes continuous spaces in the input string | def QZsa(NPoT):
return ZbWC.sub('\\s+', ' ', NPoT).strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YF9t(vIwR):\n vIwR = ZbWC.sub('(?m)^\\\\s+', '', vIwR)\n return ZbWC.sub('(?m)\\\\s+$', '', vIwR)",
"def Yczo(KCHu):\n return ZbWC.sub('\\\\s+', ' ', KCHu.strip())",
"def EQOQ(vIwR):\n return vIwR.replace(' ', '')",
"def Yczo(YKHO, vIwR):\n return ZbWC.sub('\\\\s+', ' ', vIwR).strip()",
... | [
"0.7920748",
"0.792018",
"0.79087067",
"0.7735077",
"0.76851404",
"0.76348305",
"0.76239526",
"0.7579808",
"0.7579808",
"0.7554661",
"0.7442556",
"0.73901474",
"0.73479307",
"0.73362243",
"0.7305368",
"0.7305168",
"0.73049015",
"0.72840154",
"0.72809654",
"0.72323513",
"0.720... | 0.77524805 | 3 |
Apply material to enhancement. | def bf3E(YKHO, Mx95, Y3iy=0.02):
if Mx95 == YKHO.COSMIC_CUBE_FRAGMENT:
YKHO.emulator.click_button(YKHO.ui['ENHANCE_POTENTIAL_COSMIC_CUBES'].button, min_duration=Y3iy, max_duration=Y3iy)
if Mx95 == YKHO.BLACK_ANTI_MATTER:
YKHO.emulator.click_button(YKHO.ui['ENHANCE_POTENTIAL_ANTI_MATTER'].button,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OCu3(YKHO, *qIxc):\n return EdJ_.XCAFDoc_MaterialTool_AddMaterial(YKHO, *qIxc)",
"def QwkI(YKHO, Mx95):\n for Fg_i in YKHO.buf:\n Fg_i.set_material(Mx95)",
"def bIXn(YKHO, *qIxc):\n return EdJ_.XCAFDoc_MaterialTool_SetMaterial(YKHO, *qIxc)",
"def TB1H(YKHO, ut3e, gEmA):\n QTBn = gEmA.s... | [
"0.68676233",
"0.6725604",
"0.6718896",
"0.6648932",
"0.6104146",
"0.6005966",
"0.5948341",
"0.59381694",
"0.5825577",
"0.5793475",
"0.5784584",
"0.5746602",
"0.57320285",
"0.5729688",
"0.5660907",
"0.56268257",
"0.5605521",
"0.5593973",
"0.5560146",
"0.55429226",
"0.5538297"... | 0.64542854 | 4 |
Testing query for a valid JSON object with geometry | def qCD8(GPtr):
XP5J = vevU(GPtr)
qLIY = XP5J.query()
assert qLIY.get('type', None) == 'FeatureCollection'
bySB = qLIY.get('features', None)
assert bySB is not None
RDhP = bySB[0]
C9U5 = RDhP.get('properties', None)
assert C9U5 is not None
Fw8z = RDhP.get('geometry', None)
assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWXm(nPrm):\n \"\"\"Enforces camelcasing of properties\"\"\"\n if 'id' in nPrm:\n del nPrm['id']\n try:\n nPrm['type'] = nPrm['type'] if 'type' in nPrm else 'Feature'\n nPrm['geometry'] = nPrm['geometry'] if 'geometry' in nPrm else None\n if 'properties' not in nPrm:\n ... | [
"0.6865174",
"0.6826283",
"0.6515802",
"0.6502722",
"0.64604735",
"0.64476997",
"0.6436213",
"0.63668895",
"0.6349757",
"0.63069063",
"0.6238578",
"0.61512023",
"0.6110774",
"0.6105001",
"0.6078701",
"0.6077076",
"0.6045062",
"0.6017747",
"0.5981394",
"0.5950614",
"0.5920943"... | 0.5601387 | 31 |
Tests paging over multiple cells with a uuid marker. This test is going to setup three compute nodes in two cells for a total of six compute nodes. Then it will page over them with a limit of two so there should be three pages total. | def m9wE(YKHO):
UHFx = 0
for VmPb in YKHO.cell_mappings[1:]:
for WKvO in range(3):
djrl = getattr(jEHC, 'node_%s' % UHFx)
with QpfX.target_cell(YKHO.ctxt, VmPb) as OcEI:
Q6kx = ei4T.ComputeNode(OcEI, uuid=djrl, host=djrl, vcpus=2, memory_mb=2048, local_gb=128, vcp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JlEo(YKHO):\n for B2Dn in range(1, 5):\n YKHO._test_one_page(page=B2Dn)",
"def X7DG(YKHO):\n YKHO.assertRaises(AJ5d.MarkerNotFound, YKHO.host_api.compute_node_get_all, YKHO.ctxt, limit=10, marker=jEHC.not_found)",
"def JlEo(YKHO):\n YKHO.check_pagination()",
"def Z8VC():\n U96t = 4\n ... | [
"0.616888",
"0.60022867",
"0.5704711",
"0.57018703",
"0.5632693",
"0.56228155",
"0.5618183",
"0.5546407",
"0.55371195",
"0.54653454",
"0.54582494",
"0.5401345",
"0.53926927",
"0.53656214",
"0.534024",
"0.53057027",
"0.5303484",
"0.5280429",
"0.526458",
"0.5252341",
"0.5229615... | 0.80667603 | 0 |
Simple test to make sure we get MarkerNotFound raised up if we try paging with a uuid marker that is not found in any cell. | def X7DG(YKHO):
YKHO.assertRaises(AJ5d.MarkerNotFound, YKHO.host_api.compute_node_get_all, YKHO.ctxt, limit=10, marker=jEHC.not_found) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m9wE(YKHO):\n UHFx = 0\n for VmPb in YKHO.cell_mappings[1:]:\n for WKvO in range(3):\n djrl = getattr(jEHC, 'node_%s' % UHFx)\n with QpfX.target_cell(YKHO.ctxt, VmPb) as OcEI:\n Q6kx = ei4T.ComputeNode(OcEI, uuid=djrl, host=djrl, vcpus=2, memory_mb=2048, local_... | [
"0.6131959",
"0.575854",
"0.5649487",
"0.5622347",
"0.5599029",
"0.5560959",
"0.55298895",
"0.5527114",
"0.54683435",
"0.5444438",
"0.5415254",
"0.5400935",
"0.5399502",
"0.53878593",
"0.5372187",
"0.5353005",
"0.53506416",
"0.5350108",
"0.534317",
"0.5332988",
"0.533246",
... | 0.6794282 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, Gvwg):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |