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 |
|---|---|---|---|---|---|---|
Deletes a document. This removes a document or partial document from the Firestore. If a key is supplied, then just that key is removed from the document. If no key is given, the entire document will be removed from the collection. | def gc_R(YKHO, type: Type, id: str, H5ew: Optional[str]=None) -> None:
raise NotImplementedError('Must be implemented by child class.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO, A97Q=dict()):\n return YKHO.client.request('db/%s/collection/%s/delete' % (YKHO.database.name, YKHO.name), doc=A97Q)",
"def gc_R(YKHO, C13M):\n YKHO.delete_documents([C13M])",
"def PTpj(YKHO, H5ew):\n try:\n Ylbp = U7A8.delete_query(H5ew)\n return (Ylbp, 200)\n except u... | [
"0.6722843",
"0.66416043",
"0.6611542",
"0.6608331",
"0.6533352",
"0.6513165",
"0.6498234",
"0.6479757",
"0.6451328",
"0.6398266",
"0.6382244",
"0.6350281",
"0.63232803",
"0.6257855",
"0.6255203",
"0.6202293",
"0.6187893",
"0.61763287",
"0.6157378",
"0.6150449",
"0.6101582",
... | 0.71968764 | 0 |
This functions checks if the biomodels have quaternions and if not we set an attribute to nb_quaternion to 0 | def s69Z(PUEU: list[BioModel]) -> list[QVs7]:
for YRbF, C3ST in enumerate(PUEU):
if not hasattr(C3ST, 'nb_quaternions'):
setattr(C3ST, 'nb_quaternions', 0)
return PUEU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8br(YKHO):\n YKHO.x[wHLO.QW:wHLO.BX, 0] = R5H8(YKHO.x[wHLO.QW:wHLO.BX, 0]).normalised.elements",
"def FIMM(YKHO, _Jov):\n assert _Jov.dtype == oyIN.float32\n YKHO.quaternion = _Jov",
"def Z8Dx(YKHO, mWFP, _Jov):\n if mWFP in YKHO.sim.model.body_names:\n RGsS = YKHO.sim.model.body_name2i... | [
"0.5910244",
"0.5889804",
"0.5743401",
"0.57415843",
"0.5734825",
"0.56368357",
"0.54050773",
"0.53509796",
"0.5320346",
"0.52594256",
"0.52567583",
"0.52535135",
"0.5245165",
"0.5225019",
"0.5214815",
"0.52088815",
"0.52049875",
"0.52043194",
"0.51920205",
"0.5176117",
"0.51... | 0.795191 | 0 |
Gets the id of this MonitoringServiceModel. | def id(YKHO) -> str:
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n retu... | [
"0.76897186",
"0.76897186",
"0.76897186",
"0.76862925",
"0.76862925",
"0.76862925",
"0.76862925",
"0.76617706",
"0.7639728",
"0.76386654",
"0.76386654",
"0.7608249",
"0.7608249",
"0.7608249",
"0.7608249",
"0.7608249",
"0.7608249",
"0.7608249",
"0.7608249",
"0.7608249",
"0.760... | 0.0 | -1 |
Generate postfix expressions recursively. `expr` is the expression so far, a list of values and operators. `stack_depth` is the depth of the stack created by expr. `vals` is a list of values remaining to add to the expression. `ops` is a list of possible operators to choose from. | def FlLI(VN2L, rq7Q, T6S7, IPme):
if rq7Q == 1 and (not T6S7):
yield VN2L
if rq7Q > 1:
for z1Rg in IPme:
for tTpl in FlLI(VN2L + [z1Rg], rq7Q - 1, T6S7, IPme):
yield tTpl
if T6S7:
for tTpl in FlLI(VN2L + [T6S7[0]], rq7Q + 1, T6S7[1:], IPme):
yi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kuth(VN2L):\n xu3Q = VN2L.split()\n Maem = ['*', '/', '+', '-']\n KCHu = S9Ut()\n d6pt = 0\n while d6pt < len(xu3Q):\n if not xu3Q[d6pt] in Maem:\n KCHu.push(xu3Q[d6pt])\n else:\n iX6s = KCHu.pop()\n Jrw0 = KCHu.pop()\n ycBG = gOBX(xu3Q[d... | [
"0.63318896",
"0.6235041",
"0.6225002",
"0.6047378",
"0.6008423",
"0.5994799",
"0.59344727",
"0.5925806",
"0.5876823",
"0.5871976",
"0.58673656",
"0.5798907",
"0.5794357",
"0.57400596",
"0.57381654",
"0.5726436",
"0.5706468",
"0.5694889",
"0.56489897",
"0.56439096",
"0.562202... | 0.6949897 | 0 |
Generate postfix expressions created from `vals`, the list of values to use, and `ops`, the possible operators to combine them with. | def t6m2(T6S7, IPme):
Aofo = []
for Ty9i in T6S7:
Aofo.append(FlLI([], 0, Ty9i, IPme))
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y1xQ(YKHO, IPme, hkxX):\n try:\n wNuL = hkxX.pop()\n khtY = IPme.pop()\n if khtY != 'not':\n Mlb1 = hkxX.pop()\n hkxX.append(YKHO._get_function(khtY)(Mlb1, wNuL))\n else:\n hkxX.append(YKHO._get_function(khtY)(wNuL))\n except IndexError:\n ... | [
"0.6376651",
"0.5971268",
"0.5942827",
"0.58967113",
"0.5825465",
"0.58187413",
"0.58085907",
"0.5709087",
"0.5709087",
"0.5693562",
"0.5666758",
"0.56525207",
"0.5640323",
"0.56170636",
"0.5588945",
"0.5563781",
"0.5552257",
"0.552946",
"0.5516126",
"0.55130565",
"0.5512388"... | 0.6616763 | 0 |
Take the string "true" or "false" of any case and returns a boolean object. | def DBap(VYWp):
if VYWp.lower() == 'true':
return True
elif VYWp.lower() == 'false':
return False
else:
raise Exception("argument for strBool must be string either 'True' or 'False'.") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sisc(str):\n return True if str.lower() == 'true' else False",
"def DeMF(vIwR):\n return vIwR.lower() == 'true'",
"def E8Lj(KCHu):\n if KCHu.lower() == 'true':\n return True\n elif KCHu.lower() == 'false':\n return False\n return None",
"def M0mR(KCHu):\n if KCHu.lower() i... | [
"0.8495842",
"0.84885484",
"0.83178526",
"0.826397",
"0.82457983",
"0.8224803",
"0.8214422",
"0.8191919",
"0.81684387",
"0.81560344",
"0.81303513",
"0.8089394",
"0.80838346",
"0.8062765",
"0.8053361",
"0.80416286",
"0.8033245",
"0.8029407",
"0.8027159",
"0.8023346",
"0.802183... | 0.78634804 | 55 |
Test we can get the correct dictionary structure after formatting. | def IIiu(Pcn2, dixj):
assert aadv.formatted_headers(Pcn2) == dixj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j2Wg(YKHO):\n pass",
"def DH5A(YKHO):\n YKHO.assertIsInstance(YKHO.output.build_dict('will', 'gunn', '12345', '831-295-0035', 'blue'), cls=dict)\n YKHO.assertEqual(YKHO.output.build_dict('will', 'gunn', '12345', ' 831 295 0035', 'blue'), {'color': 'blue', 'firstname': 'will', 'lastname': 'gunn', 'zi... | [
"0.6967071",
"0.68964267",
"0.6642162",
"0.6568339",
"0.6560629",
"0.65306926",
"0.6522167",
"0.6513627",
"0.65077406",
"0.649806",
"0.64921653",
"0.6474798",
"0.64655745",
"0.64540267",
"0.64230245",
"0.6388313",
"0.6369969",
"0.62877315",
"0.6274224",
"0.62533104",
"0.62507... | 0.0 | -1 |
Test HA BLE parser for temperature and humidity measurement | def I9Nc(YKHO):
Fb5b = '043E1B02010000A5808FE648540F0201060B161C182302CA090303BF13CC'
nPrm = bytes(bytearray.fromhex(Fb5b))
A7Ln = gYir()
hkOU, PtdS = A7Ln.parse_data(nPrm)
assert hkOU['firmware'] == 'HA BLE'
assert hkOU['type'] == 'HA BLE DIY'
assert hkOU['mac'] == '5448E68F80A5'
assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9Ub(YKHO):\n Fb5b = '043E1A02010000A5808FE648540E0201060A16D2FC4002CA0903BF13CC'\n nPrm = bytes(bytearray.fromhex(Fb5b))\n A7Ln = gYir()\n hkOU, PtdS = A7Ln.parse_raw_data(nPrm)\n assert hkOU['firmware'] == 'BTHome V2'\n assert hkOU['type'] == 'BTHome'\n assert hkOU['mac'] == '5448E68F80A... | [
"0.7384323",
"0.7337424",
"0.7288242",
"0.7200993",
"0.713216",
"0.71168345",
"0.701771",
"0.6960706",
"0.69569606",
"0.69163364",
"0.685664",
"0.68388253",
"0.68379366",
"0.6804167",
"0.6754647",
"0.6700073",
"0.6625134",
"0.6577357",
"0.6520314",
"0.65067494",
"0.6488284",
... | 0.823155 | 0 |
Returns the ICRS position of the object for observer. | def Iuzb(YKHO, ITS7, LiTy='geocenter'):
from .utils import ephem_horizons
BHsk = ephem_horizons(time=ITS7, target=YKHO.name, observer=LiTy, id_type=YKHO.id_type, output='ephemeris')
if hasattr(YKHO, 'offset'):
lT_l = QYpU(origin=BHsk)
R8mN = UJNH(lon=YKHO.offset.d_lon_coslat, lat=YKHO.offset... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iuzb(YKHO, ITS7, LiTy='geocenter'):\n iJP1, RHJb = YKHO.get_ksi_eta(time=ITS7) * P6bq.km\n Ayfi = YKHO.ephem.distance.mean()\n rT_5 = oyIN.arctan2(iJP1, Ayfi)\n lyDd = oyIN.arctan2(RHJb, Ayfi)\n Tdpd = QYpU(origin=YKHO.star)\n oeNL = UJNH(lon=rT_5, lat=lyDd, distance=Ayfi, frame=Tdpd)\n re... | [
"0.70179945",
"0.6976902",
"0.689872",
"0.689872",
"0.689872",
"0.689872",
"0.689872",
"0.6888876",
"0.68695325",
"0.68695325",
"0.68405807",
"0.68405807",
"0.6838905",
"0.6830415",
"0.6830415",
"0.6830415",
"0.6830415",
"0.68284804",
"0.6820443",
"0.68199307",
"0.68192804",
... | 0.64782 | 91 |
String representation of the EphemHorizons Class. | def zAg0(YKHO):
yvT9 = super().__str__().format(ephem_info='Ephemeris are downloaded from Horizons website')
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'JPLHorizons instance \"{:s}\"; location={:s}, epochs={:s}, id_type={:s}'.format(str(YKHO.id), str(YKHO.location), str(YKHO.epochs), str(YKHO.id_type))",
"def an4s(YKHO):\n hlel = 'order: {} connectedModules: {} connectedFaces: {} '.format(YKHO.order, YKHO.child_module, YKHO.attach... | [
"0.7239213",
"0.7094505",
"0.7066366",
"0.6781765",
"0.6702753",
"0.6691781",
"0.66393435",
"0.65870094",
"0.65532434",
"0.652437",
"0.6474515",
"0.644796",
"0.6441039",
"0.6427637",
"0.6407144",
"0.63929415",
"0.63825095",
"0.6373058",
"0.6367791",
"0.6343563",
"0.6339053",
... | 0.6833489 | 3 |
String representation of the EphemKernel Class. | def zAg0(YKHO):
yvT9 = super().__str__().format(ephem_info=YKHO.meta['kernels'])
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '{} kernel with parameters {}'.format(YKHO.name, YKHO.params)",
"def wHJl(YKHO) -> str:\n NArs = (f'{G1Hx}={repr(Ty9i)}' for G1Hx, Ty9i in YKHO.coefs().items())\n return f'<pyesg.{YKHO.__class__.__qualname__}({', '.join(NArs)})>'",
"def wHJl(YKHO) -> str:\n return YKHO.to_s... | [
"0.75203836",
"0.7308292",
"0.6983959",
"0.69039506",
"0.68525285",
"0.6775989",
"0.6761368",
"0.67075765",
"0.66922534",
"0.66860807",
"0.66819423",
"0.6640286",
"0.6627184",
"0.6616934",
"0.66141653",
"0.6594217",
"0.6590629",
"0.6574965",
"0.6565337",
"0.65529984",
"0.6530... | 0.8037789 | 0 |
Return unique ID for this entity. | def dIdM(nNXP, Ba46, g2g3) -> str:
hMAv = f'{lbCa(Ba46)}-{g2g3}'
if hasattr(nNXP, 'id'):
return f'{hMAv}-{nNXP.id}'
return hMAv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')",
"def ShR8(YKHO):\n return YKHO._carson_entity.unique_entity_id",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YK... | [
"0.8835495",
"0.8481499",
"0.8445805",
"0.8445805",
"0.8235258",
"0.8235258",
"0.8235258",
"0.8235258",
"0.8235258",
"0.8185161",
"0.8185161",
"0.8185161",
"0.8185161",
"0.8185161",
"0.8185161",
"0.8185161",
"0.8185161",
"0.8185161",
"0.8081756",
"0.80547607",
"0.80523026",
... | 0.0 | -1 |
Return unique ID for this device. | def lbCa(Ba46) -> str:
return f'{Ba46.getConfig().id}-{Ba46.getConfig().serial}-{Ba46.getConfig().device_id}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO) -> str:\n return YKHO._device.device_id",
"def ShR8(YKHO):\n return YKHO._device.device_id",
"def ShR8(YKHO):\n return YKHO._device.device_id",
"def ShR8(YKHO):\n return YKHO._device.device_uuid",
"def ShR8(YKHO):\n return YKHO.device.id",
"def ShR8(YKHO):\n return YKHO._... | [
"0.92794913",
"0.91546243",
"0.91546243",
"0.9146351",
"0.9131695",
"0.9130593",
"0.9100104",
"0.90696144",
"0.8900852",
"0.8900852",
"0.88315576",
"0.8829701",
"0.88099694",
"0.8765678",
"0.86197424",
"0.85894156",
"0.8558758",
"0.8558758",
"0.8554888",
"0.8516393",
"0.84733... | 0.7894218 | 63 |
Retorna o primeiro elemento da lista. | def whyM(YKHO):
return YKHO._cabeca | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if len(YKHO.list) < 1:\n return None\n return YKHO.list[0]",
"def YxVJ(YKHO):\n assert len(YKHO) == 1\n for ZfUD in YKHO:\n return ZfUD",
"def _9uU(Gv33, dQgj):\n ewCu = 1\n jvSB = Gv33\n if dQgj < 1:\n return None\n while jvSB and ewCu <= dQgj:\n ... | [
"0.6947638",
"0.6724261",
"0.66643643",
"0.66630965",
"0.6652857",
"0.66334426",
"0.6622807",
"0.66057116",
"0.660455",
"0.6581623",
"0.6567809",
"0.65664405",
"0.65315694",
"0.65226",
"0.6493384",
"0.6470733",
"0.64497477",
"0.6438524",
"0.6404541",
"0.639546",
"0.63692904",... | 0.0 | -1 |
Retorna o ultimo elemento da lista. | def vzsR(YKHO):
return YKHO._rabo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def max(YKHO):\n if YKHO._items:\n return YKHO._items[-1]",
"def YjIS(YKHO) -> int:\n ...",
"def BEC1(YKHO):\n if YKHO.size() > 0:\n return YKHO.items[0]",
"def max(YKHO):\n ZfUD = next(YKHO)\n for YRbF in YKHO:\n if YRbF > ZfUD:\n ZfUD = YRbF\n return ZfUD",... | [
"0.66080064",
"0.65185136",
"0.65127265",
"0.64296347",
"0.6396412",
"0.63375175",
"0.63265526",
"0.6292798",
"0.62863654",
"0.6268261",
"0.6249592",
"0.623441",
"0.6234073",
"0.62212443",
"0.6207453",
"0.6196776",
"0.61761034",
"0.61618316",
"0.6146192",
"0.61165947",
"0.611... | 0.5954295 | 32 |
Thread for running the environment. Must call `self._wait_train_done()` before selcting an action (by running the model). This ensures that the `self._train_model()` thread has finished the training step. After action is selected, it must call `self._signal_act_chosen()` to allow `self._train_model()` thread to start a... | def QPkA(YKHO):
W061 = YKHO.reset()
for a1PO in range(YKHO.agent_step + 1, YKHO.stop_step + 1):
if YKHO._terminate:
YKHO._signal_act_chosen()
break
if YKHO.learn_started:
XeOP = YKHO._action_train(W061, a1PO)
else:
XeOP = YKHO.env_train.act... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvQg(YKHO):\n YKHO.training = True\n YKHO.actor.train()",
"def Q8sm(YKHO):\n for a1PO in range(YKHO.agent_step + 1, YKHO.stop_step + 1):\n if YKHO._terminate:\n YKHO._signal_train_done()\n break\n if a1PO >= YKHO.warm_up and a1PO % YKHO.train_period == 0:\n ... | [
"0.65295064",
"0.6494846",
"0.648308",
"0.64724034",
"0.6368294",
"0.6341714",
"0.6340321",
"0.6339869",
"0.63054657",
"0.62597567",
"0.6246729",
"0.61647505",
"0.6121551",
"0.6102119",
"0.6085927",
"0.6023728",
"0.6019253",
"0.6006831",
"0.5999767",
"0.5992895",
"0.5991167",... | 0.6747115 | 0 |
The primary magnetic field from a magnetic vector potential | def d01z(YKHO, GrHg):
Fg_i = YKHO.bPrimary(GrHg)
return 1.0 / YKHO.mu * Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VqXC(YKHO):\n return _bJ1 * oyIN.sqrt(YKHO.P * YKHO.P_dot)",
"def VqXC(YKHO):\n return YKHO._magnetic_field",
"def VqXC(YKHO, WKvO, LVAh):\n KFFv = YKHO.mu0\n return sum((XP5J.magnetic_field(WKvO, LVAh, KFFv) for XP5J in YKHO.phases))",
"def VqXC(YKHO, UqpO):\n OXXx = YKHO.vector_distance(... | [
"0.73615336",
"0.7166202",
"0.70723665",
"0.70106864",
"0.6744358",
"0.662382",
"0.66206026",
"0.6444377",
"0.6407977",
"0.6368395",
"0.63279957",
"0.6252341",
"0.6170388",
"0.61701965",
"0.6102317",
"0.60995644",
"0.60995644",
"0.60830706",
"0.6077199",
"0.60695225",
"0.6059... | 0.0 | -1 |
Compute the error on the expectation values using jackknife resampling. Return the approximate number of trajectories needed to have this error within the tolerance fot all e_ops and times. | def roIO(YKHO):
if YKHO.num_trajectories <= 1:
return oyIN.inf
qqgr, R7D8 = YKHO._average_computer()
pan_ = oyIN.array([rU28 + LL2J * JBMS for JBMS, (rU28, LL2J) in zip(qqgr, YKHO._target_tols)])
Pjxg = oyIN.max((R7D8 - abs(qqgr) ** 2) / pan_ ** 2 + 1)
YKHO._estimated_ntraj = min(Pjxg, YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7VC(YKHO):\n a1PO = rLdf.concat([D5gV.target_diff for D5gV in YKHO.tasks], axis=1).values\n return oyIN.sqrt(oyIN.mean(oyIN.nan_to_num(oyIN.square(a1PO))))",
"def TsBx(tHO6, jP9s):\n ltr1 = 0.0\n rfzf = len(tHO6)\n for YRbF in Ni9Y(0, rfzf):\n P1dF = jP9s[YRbF] - tHO6[YRbF]\n lt... | [
"0.6410297",
"0.6079803",
"0.6023052",
"0.5990484",
"0.59870404",
"0.5917642",
"0.59102017",
"0.5905809",
"0.58995354",
"0.5891004",
"0.5869297",
"0.5861631",
"0.5839845",
"0.5832193",
"0.58275586",
"0.58162034",
"0.5813799",
"0.58105475",
"0.58053505",
"0.58000284",
"0.57965... | 0.0 | -1 |
Internal use. Convert 'paintArray' objects to dictionaries. ptarr 'paintArray' to convert. | def RL8w(YKHO, UO8Q):
fGC9 = {}
if not hasattr(UO8Q, TtW3.TYPES.KEYS.PAIRS):
return None
for q2Xo in getattr(UO8Q, TtW3.TYPES.KEYS.PAIRS):
BaWg = getattr(q2Xo, TtW3.TYPES.KEYS.VALUE)
v2pS = getattr(q2Xo, TtW3.TYPES.KEYS.KEY)
if hasattr(BaWg, TtW3.TYPES.KEYS.ARRAY):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MA4h(qw7D):\n l40E = {}\n for nUPH in qw7D:\n l40E = r7tU(l40E, nUPH[0], *nUPH[2:], nUPH[1])\n return l40E",
"def ptBw(ezWE):\n Ylbp = {}\n for G1Hx in ezWE.dtype.names:\n Ylbp[G1Hx] = ezWE[G1Hx]\n return Ylbp",
"def MNRr(YKHO):\n for mawX in YKHO.rectangles:\n [Xl... | [
"0.5986848",
"0.57538855",
"0.56978905",
"0.5566439",
"0.55120456",
"0.5501593",
"0.5474043",
"0.53724056",
"0.53533274",
"0.53183186",
"0.531735",
"0.52941644",
"0.52438396",
"0.5239656",
"0.52166665",
"0.5198864",
"0.5198864",
"0.5195934",
"0.51923084",
"0.5189437",
"0.5186... | 0.6692556 | 0 |
Gets the created of this CouponDiscount. | def _EYN(YKHO):
return YKHO._created | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1JI(YKHO):\n return YKHO._cash_discount",
"def FMQW(YKHO):\n return YKHO._discount",
"def FMQW(YKHO):\n return YKHO._discount",
"def FMQW(YKHO):\n return ZlXR(YKHO)",
"def c_Ww(YKHO):\n if YKHO.coupon_id:\n try:\n return wGNr.objects.get(id=YKHO.coupon_id)\n exc... | [
"0.59138787",
"0.5890144",
"0.5890144",
"0.5879264",
"0.5787524",
"0.57773477",
"0.5719336",
"0.56809145",
"0.5674811",
"0.55994684",
"0.5555751",
"0.5480783",
"0.5480204",
"0.5458633",
"0.54580677",
"0.54512304",
"0.54354906",
"0.54354906",
"0.5425346",
"0.5406229",
"0.53883... | 0.5458611 | 14 |
Gets the changed_by of this CouponDiscount. | def Kiio(YKHO):
return YKHO._changed_by | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kiio(YKHO) -> str | None:\n return YKHO._changed_by",
"def Kiio(YKHO) -> str | None:\n return YKHO._attr_changed_by",
"def YgMu(YKHO):\n return YKHO._modified_by",
"def YgMu(YKHO):\n return YKHO._modified_by",
"def AYLr(YKHO):\n return YKHO._edited_by",
"def Kiio(YKHO):\n WmNf = YKH... | [
"0.6924124",
"0.6845668",
"0.6373452",
"0.63730747",
"0.61555225",
"0.6124763",
"0.60551",
"0.6048888",
"0.5959807",
"0.59475774",
"0.59475774",
"0.5944071",
"0.58836704",
"0.5821487",
"0.5696381",
"0.5679462",
"0.55184245",
"0.55184245",
"0.55184245",
"0.55184245",
"0.546541... | 0.7421233 | 0 |
Sets the changed_by of this CouponDiscount. | def Kiio(YKHO, Kiio):
YKHO._changed_by = Kiio | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YgMu(YKHO, YgMu):\n YKHO._modified_by = YgMu",
"def YgMu(YKHO, YgMu):\n YKHO._modified_by = YgMu",
"def YgMu(YKHO, YgMu):\n YKHO._modified_by = YgMu",
"def YgMu(YKHO, YgMu):\n YKHO._modified_by = YgMu",
"def YgMu(YKHO, YgMu):\n YKHO._modified_by = YgMu",
"def YgMu(YKHO, YgMu):\n YKH... | [
"0.6535153",
"0.6535153",
"0.6535153",
"0.6535153",
"0.6535153",
"0.6535153",
"0.6535153",
"0.6381689",
"0.6381689",
"0.6381689",
"0.6381689",
"0.62220645",
"0.62220645",
"0.6096192",
"0.6096192",
"0.58828765",
"0.5779896",
"0.5760622",
"0.57322377",
"0.5678628",
"0.5557325",... | 0.76127887 | 0 |
Gets the updated of this CouponDiscount. | def sPBL(YKHO):
return YKHO._updated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FMQW(YKHO):\n return YKHO._discount",
"def FMQW(YKHO):\n return YKHO._discount",
"def bZh6(YKHO):\n return YKHO._discount_refunded",
"def XlkN(YKHO):\n return YKHO._discount_invoiced",
"def n1JI(YKHO):\n return YKHO._cash_discount",
"def ZW42(YKHO):\n return YKHO._discount_amount",
... | [
"0.6623295",
"0.6623295",
"0.6477931",
"0.6270797",
"0.62283885",
"0.608341",
"0.608341",
"0.5968728",
"0.57947505",
"0.57813025",
"0.5762678",
"0.5741077",
"0.57342535",
"0.5730698",
"0.57285345",
"0.5703886",
"0.56961185",
"0.56922704",
"0.5664296",
"0.5663688",
"0.5653556"... | 0.5440756 | 38 |
Gets the pricing_component of this CouponDiscount. | def Csqo(YKHO):
return YKHO._pricing_component | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OY2O(YKHO) -> zj_U:\n return YKHO.__pricing",
"def IEbG(YKHO):\n return YKHO._pricing_component_id",
"def XfGy(YKHO):\n return YKHO._pricing_component_name",
"def vHfW(YKHO) -> toLE:\n return YKHO._discountCurve",
"def N_Zi(YKHO):\n if hasattr(YKHO, '_discount'):\n return YKHO.pri... | [
"0.7131975",
"0.6861578",
"0.6722223",
"0.64626676",
"0.63187975",
"0.62592685",
"0.6255664",
"0.6070271",
"0.60541725",
"0.5951689",
"0.5913256",
"0.5906421",
"0.5906421",
"0.59063685",
"0.5877664",
"0.5877664",
"0.587463",
"0.5872008",
"0.5864848",
"0.5828497",
"0.5827878",... | 0.8154999 | 0 |
Gets the pricing_component_name of this CouponDiscount. | def XfGy(YKHO):
return YKHO._pricing_component_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IEbG(YKHO):\n return YKHO._pricing_component_id",
"def Csqo(YKHO):\n return YKHO._pricing_component",
"def maxk(YKHO) -> str:\n return YKHO._component_name",
"def yr70(YKHO):\n return YKHO._cls.name",
"def yr70(YKHO):\n return YKHO._cls.name",
"def rywp(YKHO):\n return YKHO._price_n... | [
"0.6947851",
"0.6787504",
"0.63640195",
"0.6156759",
"0.6156759",
"0.612329",
"0.60630816",
"0.5985307",
"0.5937016",
"0.57981336",
"0.56908363",
"0.56858474",
"0.56070787",
"0.55938286",
"0.55869824",
"0.55665225",
"0.55428135",
"0.5483626",
"0.5483442",
"0.5474412",
"0.5474... | 0.8317537 | 0 |
Gets the pricing_component_id of this CouponDiscount. | def IEbG(YKHO):
return YKHO._pricing_component_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Csqo(YKHO):\n return YKHO._pricing_component",
"def XfGy(YKHO):\n return YKHO._pricing_component_name",
"def KXJ_(YKHO):\n return YKHO._coupon_id",
"def KXJ_(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'coupon_id')",
"def x304(YKHO):\n return YKHO._comid",
"def qaAr(YKHO):... | [
"0.679715",
"0.6634979",
"0.6196568",
"0.5733468",
"0.55702025",
"0.5569264",
"0.5557923",
"0.5557923",
"0.5557923",
"0.5513793",
"0.5513793",
"0.551042",
"0.54595536",
"0.5304286",
"0.5301886",
"0.5301886",
"0.5301886",
"0.5301021",
"0.5301021",
"0.5301021",
"0.5301021",
"... | 0.8066306 | 0 |
Sets the pricing_component_id of this CouponDiscount. | def IEbG(YKHO, IEbG):
YKHO._pricing_component_id = IEbG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Csqo(YKHO, Csqo):\n YKHO._pricing_component = Csqo",
"def IEbG(YKHO):\n return YKHO._pricing_component_id",
"def XfGy(YKHO, XfGy):\n YKHO._pricing_component_name = XfGy",
"def DJsb(YKHO, DJsb):\n YKHO._pension_company_id = DJsb",
"def sVlw(YKHO, sVlw):\n YKHO._price_id = sVlw",
"def sV... | [
"0.6919489",
"0.6592532",
"0.6201681",
"0.57711405",
"0.548574",
"0.548574",
"0.548574",
"0.53802824",
"0.5375524",
"0.5358457",
"0.5358457",
"0.5341193",
"0.5333029",
"0.5317416",
"0.5215871",
"0.5215871",
"0.5215871",
"0.5215871",
"0.5215871",
"0.5215871",
"0.51887643",
"... | 0.8003027 | 0 |
Gets the unit_of_measure_name of this CouponDiscount. | def Qcg0(YKHO):
return YKHO._unit_of_measure_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZJQ(YKHO) -> str:\n return YKHO.__unit_of_measure",
"def Du5p(YKHO):\n return YKHO._unit_of_measure_id",
"def spWX(YKHO, YEnM):\n if YEnM.fuel_type:\n return YEnM.fuel_type.unit_of_measure.name\n return None",
"def b82i(YKHO) -> str | None:\n return YKHO._description[znBy]",
"def... | [
"0.8001284",
"0.73952395",
"0.73904425",
"0.73763674",
"0.72872627",
"0.7201663",
"0.71984255",
"0.70243806",
"0.6988285",
"0.69709694",
"0.69709694",
"0.69709694",
"0.69709694",
"0.69709694",
"0.69709694",
"0.69709694",
"0.69709694",
"0.69709694",
"0.69709694",
"0.6960375",
... | 0.8498636 | 0 |
Sets the unit_of_measure_name of this CouponDiscount. | def Qcg0(YKHO, Qcg0):
YKHO._unit_of_measure_name = Qcg0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZJQ(YKHO, JZJQ):\n YKHO._unit_of_measure = JZJQ",
"def Pa0r(YKHO, Pa0r):\n YKHO._measurement_unit_name = Pa0r",
"def Du5p(YKHO, Du5p):\n YKHO._unit_of_measure_id = Du5p",
"def Qcg0(YKHO):\n return YKHO._unit_of_measure_name",
"def JZJQ(YKHO) -> str:\n return YKHO.__unit_of_measure",
"... | [
"0.7605612",
"0.7099984",
"0.7024416",
"0.6609279",
"0.6235661",
"0.6226873",
"0.6199914",
"0.6155532",
"0.60005504",
"0.59736925",
"0.5858634",
"0.5823646",
"0.58019376",
"0.57288843",
"0.5722934",
"0.5720429",
"0.56792766",
"0.56792766",
"0.56792766",
"0.56645334",
"0.56377... | 0.85445523 | 0 |
Gets the unit_of_measure_id of this CouponDiscount. | def Du5p(YKHO):
return YKHO._unit_of_measure_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZJQ(YKHO) -> str:\n return YKHO.__unit_of_measure",
"def Qcg0(YKHO):\n return YKHO._unit_of_measure_name",
"def b82i(YKHO):\n return YKHO.central_system.get_unit(YKHO.cp_id, YKHO.metric)",
"def spWX(YKHO, YEnM):\n if YEnM.fuel_type:\n return YEnM.fuel_type.unit_of_measure.name\n re... | [
"0.70001084",
"0.6899645",
"0.6887551",
"0.68840975",
"0.6728596",
"0.6534049",
"0.6534049",
"0.6534049",
"0.6534049",
"0.6534049",
"0.6534049",
"0.6534049",
"0.6534049",
"0.6534049",
"0.6534049",
"0.65084946",
"0.64953756",
"0.64887005",
"0.6482066",
"0.64794254",
"0.6479425... | 0.8240308 | 0 |
Sets the unit_of_measure_id of this CouponDiscount. | def Du5p(YKHO, Du5p):
YKHO._unit_of_measure_id = Du5p | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZJQ(YKHO, JZJQ):\n YKHO._unit_of_measure = JZJQ",
"def Qcg0(YKHO, Qcg0):\n YKHO._unit_of_measure_name = Qcg0",
"def X79g(YKHO, X79g):\n YKHO._charge_unit_of_measure = X79g",
"def KS8Z(YKHO, KS8Z):\n YKHO._unit_id = KS8Z",
"def Du5p(YKHO):\n return YKHO._unit_of_measure_id",
"def HG0k(... | [
"0.76833326",
"0.711598",
"0.6654386",
"0.63497585",
"0.63206893",
"0.5762118",
"0.57530594",
"0.57187676",
"0.56847537",
"0.5643859",
"0.5631463",
"0.56291085",
"0.5615795",
"0.5615795",
"0.5615795",
"0.5550622",
"0.54091",
"0.5403529",
"0.54013854",
"0.538861",
"0.53643495"... | 0.83273906 | 0 |
Gets the units_free of this CouponDiscount. | def iHBh(YKHO):
return YKHO._units_free | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iHBh(YKHO, iHBh):\n YKHO._units_free = iHBh",
"def _nDu(YKHO):\n return YKHO.get_course().get_units()",
"def _zdb(YKHO):\n return YKHO._fixed_units",
"def _nDu(YKHO):\n return [YKHO._trans_store.units[YRbF] for YRbF in YKHO._valid_units]",
"def rYO3(YKHO):\n return gZFB.UNITS(YKHO).evalu... | [
"0.6775974",
"0.6482279",
"0.6458697",
"0.62627053",
"0.6218781",
"0.6209541",
"0.61814976",
"0.6172696",
"0.6172696",
"0.6158932",
"0.61304474",
"0.6129139",
"0.60802937",
"0.6056176",
"0.6047813",
"0.60469675",
"0.6010524",
"0.5998454",
"0.5993808",
"0.5992937",
"0.59811515... | 0.8218786 | 0 |
Sets the units_free of this CouponDiscount. | def iHBh(YKHO, iHBh):
YKHO._units_free = iHBh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZix(YKHO, BZix):\n if YKHO.local_vars_configuration.client_side_validation and BZix is None:\n raise ValueError('Invalid value for `campaign_free_items`, must not be `None`')\n YKHO._campaign_free_items = BZix",
"def IEcv(YKHO):\n YKHO.free = True",
"def qgks(YKHO, qgks):\n YKHO._units_... | [
"0.6438498",
"0.63776296",
"0.63121045",
"0.62589794",
"0.60041684",
"0.5824218",
"0.5813986",
"0.5647108",
"0.5615428",
"0.5602783",
"0.55559546",
"0.5468",
"0.54557073",
"0.54297477",
"0.5352442",
"0.53172135",
"0.5315885",
"0.5308816",
"0.5300882",
"0.51955026",
"0.5171539... | 0.8470045 | 0 |
Gets the percentage_discount of this CouponDiscount. | def vkyp(YKHO):
return YKHO._percentage_discount | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5i3(YKHO, KAOR):\n if KAOR.coupon:\n return wARK(KAOR.coupon.discount_percent * 100).to_eng_string()",
"def DvkB(YKHO) -> qe4Y.Input[float]:\n return qe4Y.get(YKHO, 'discount_percentage')",
"def Q5i3(YKHO, KAOR):\n iajZ = YKHO._get_coupon_version(KAOR)\n if not iajZ:\n return '0'... | [
"0.8425376",
"0.812361",
"0.7920658",
"0.7301141",
"0.7301141",
"0.7243294",
"0.71645933",
"0.71645933",
"0.7125562",
"0.700668",
"0.7004991",
"0.6937996",
"0.69272375",
"0.69272375",
"0.69000083",
"0.68288183",
"0.6777398",
"0.67636234",
"0.6654569",
"0.6645639",
"0.66231585... | 0.84959817 | 0 |
Gets the cash_discount of this CouponDiscount. | def n1JI(YKHO):
return YKHO._cash_discount | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FMQW(YKHO):\n return YKHO._discount",
"def FMQW(YKHO):\n return YKHO._discount",
"def n1JI(YKHO, n1JI):\n YKHO._cash_discount = n1JI",
"def KWPq(YKHO):\n return YKHO.__ibConnection.getCash()",
"def ZW42(YKHO):\n return YKHO._discount_amount",
"def ZW42(YKHO):\n return YKHO._discount... | [
"0.6457611",
"0.6457611",
"0.64161646",
"0.6390883",
"0.6097354",
"0.6097354",
"0.59545237",
"0.59538263",
"0.5923297",
"0.58392924",
"0.58355397",
"0.5810842",
"0.57183504",
"0.56964886",
"0.5669241",
"0.5647264",
"0.5624973",
"0.5580555",
"0.55738944",
"0.5566007",
"0.55627... | 0.8042517 | 0 |
Sets the cash_discount of this CouponDiscount. | def n1JI(YKHO, n1JI):
YKHO._cash_discount = n1JI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FMQW(YKHO, FMQW):\n YKHO._discount = FMQW",
"def FMQW(YKHO, FMQW):\n YKHO._discount = FMQW",
"def FMQW(YKHO, FMQW):\n YKHO._discount = FMQW",
"def gUkw(YKHO, gUkw):\n YKHO._price_discount = gUkw",
"def vkyp(YKHO, vkyp):\n YKHO._percentage_discount = vkyp",
"def BHm7(YKHO, BHm7):\n Y... | [
"0.68547666",
"0.68547666",
"0.68547666",
"0.6616501",
"0.6451149",
"0.64069813",
"0.63608646",
"0.63608646",
"0.63608646",
"0.63608646",
"0.6338289",
"0.6022368",
"0.59608144",
"0.58748245",
"0.58552396",
"0.57495993",
"0.57216525",
"0.5666411",
"0.5661223",
"0.5625982",
"0.... | 0.87182164 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(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.8641601",
"0.85101396",
"0.7854588",
"0.77447397",
"0.7712095",
"0.7697975",
"0.7660445",
"0.76389617",
"0.76230335",
"0.7608357",
"0.7608357",
"0.7608357",
"0.7607762",
"0.7600412",
"0.75866044",
"0.7583521",
"0.75721645",
"0.7569367",
"0.7540305",
"0.7540305",
"0.7528848... | 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 |
Generates a random string of the given length. | def j9F_(u54L=None):
if u54L < 1:
return ''
dKPB = xORj(str(tuKI())).hexdigest()
if u54L:
return dKPB[:u54L]
return dKPB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def YzjY(YKHO, u54L):\n zZas = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.sample(zZas, u54L))",
"def YzjY(YKHO, u54L):\n zZas = vIwR.... | [
"0.89236915",
"0.8908432",
"0.88813263",
"0.8868005",
"0.8794264",
"0.8773989",
"0.87439287",
"0.87082326",
"0.86714935",
"0.86642176",
"0.8638938",
"0.8638938",
"0.8637633",
"0.8623638",
"0.8614771",
"0.8613272",
"0.8608477",
"0.8600951",
"0.8578281",
"0.8572596",
"0.8560488... | 0.8287225 | 58 |
Truncates a string after a certain number of letters | def AJU4(BWXx, d7pR):
def Fgf9(KCHu, mLGw):
"""Truncates a string after a certain number of letters."""
u54L = int(mLGw)
KoG3 = [vC9B for vC9B in KCHu]
if len(KoG3) > u54L:
KoG3 = KoG3[:u54L]
if not KoG3[-3:] == ['.', '.', '.']:
KoG3 += ['.', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G34s(vIwR, u54L):\n return vIwR[0:u54L]",
"def G34s(KCHu: str, Z5kt: int) -> str:\n if len(KCHu) > Z5kt:\n return KCHu[:Z5kt - 3] + '...'\n return KCHu",
"def JNU5(KCHu, u54L):\n if not KCHu:\n return ''\n if len(KCHu) > u54L:\n return KCHu[:u54L - 4] + ' ...'\n retur... | [
"0.8210604",
"0.7946656",
"0.78841305",
"0.7805286",
"0.7787505",
"0.77355516",
"0.77051663",
"0.76965225",
"0.76949483",
"0.76758724",
"0.76758724",
"0.7632938",
"0.7598109",
"0.7559857",
"0.75593007",
"0.75097615",
"0.75095874",
"0.7481595",
"0.7476079",
"0.74568814",
"0.74... | 0.7166847 | 50 |
Truncates a string after a certain number of letters. | def Fgf9(KCHu, mLGw):
u54L = int(mLGw)
KoG3 = [vC9B for vC9B in KCHu]
if len(KoG3) > u54L:
KoG3 = KoG3[:u54L]
if not KoG3[-3:] == ['.', '.', '.']:
KoG3 += ['.', '.', '.']
return ''.join(KoG3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G34s(vIwR, u54L):\n return vIwR[0:u54L]",
"def G34s(KCHu: str, Z5kt: int) -> str:\n if len(KCHu) > Z5kt:\n return KCHu[:Z5kt - 3] + '...'\n return KCHu",
"def G34s(KCHu, u54L=1, B6O7='...'):\n if len(KCHu) < u54L:\n return KCHu\n else:\n return KCHu[:u54L] + B6O7",
"de... | [
"0.8180981",
"0.7965967",
"0.7773958",
"0.7765091",
"0.77493656",
"0.7690195",
"0.76664215",
"0.7662541",
"0.76286894",
"0.7616145",
"0.75877863",
"0.75877863",
"0.7508046",
"0.7508035",
"0.75024134",
"0.74081767",
"0.7405511",
"0.7398732",
"0.73970884",
"0.73905104",
"0.7312... | 0.7267413 | 23 |
Get an existing StorageVirtualMachine resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'StorageVirtualMachine':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = BM60.__new__(BM60)
r6DL.__dict__['active_directory_configuration'] = None
r6DL.__dict__['file_system_id'] = None... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, uSte: Optional[pulumi.Input[pulumi.InputType['ComputeInstanceAssignToUserArgs']]]=None, a3Fn: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, _E99: Optional[pulumi.Input[pulumi.InputType['ComputeInstan... | [
"0.6152",
"0.61508346",
"0.60135347",
"0.59581435",
"0.5918371",
"0.59138787",
"0.58819413",
"0.58772314",
"0.5827616",
"0.57482386",
"0.5678549",
"0.56592417",
"0.56414574",
"0.5638219",
"0.56153774",
"0.5610792",
"0.5596012",
"0.55957496",
"0.55782014",
"0.5572156",
"0.5561... | 0.6434218 | 0 |
Populates a list with random integers | def OSCm(YKHO, ezWE, zNig):
for bGrB in range(zNig):
ezWE.append(tuKI.randint(1, 100))
return ezWE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMkh():\n PVOR = []\n for WKvO in range(100):\n PVOR.append(tuKI.randint(0, 1000))\n return PVOR",
"def gOO7():\n cB3J = []\n for YRbF in range(3):\n Mqla = tuKI.randint(1, 10)\n cB3J.append(Mqla)\n wk7l(cB3J)\n return cB3J",
"def nu3O(exwG):\n yv6U = []\n fT... | [
"0.79505765",
"0.77751786",
"0.7500661",
"0.73988414",
"0.7398197",
"0.7377595",
"0.7360019",
"0.7327694",
"0.7319961",
"0.7276128",
"0.7260539",
"0.7258141",
"0.7247362",
"0.72335994",
"0.72335994",
"0.71949977",
"0.7185766",
"0.718576",
"0.71270126",
"0.70986474",
"0.708321... | 0.0 | -1 |
Retrieves a State object | def TKWP(uJjO):
GEJ8 = S8SU.get('User', uJjO)
if GEJ8:
return pz3A(GEJ8.to_dict())
else:
eTsH(404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO) -> wHLO:\n return YKHO.state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.... | [
"0.77527606",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
"0.7597648",
... | 0.0 | -1 |
Create a vector with all postions of a 2D grid (nx X ny ) | def lONB(jHsn, pvd3):
WKvO = oyIN.arange(0, jHsn, 1)
LVAh = oyIN.arange(0, pvd3, 1)
Oi4q, pdNf = oyIN.meshgrid(WKvO, LVAh)
X3hi = Oi4q.reshape(-1)
ZDfp = pdNf.reshape(-1)
return (X3hi, ZDfp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kt1c(jHsn: int=20, pvd3: int=20) -> ht2j.Tensor:\n yqRF, MZBS = ht2j.meshgrid([ht2j.arange(pvd3), ht2j.arange(jHsn)])\n return ht2j.stack((MZBS, yqRF), 2).view(1, 1, pvd3, jHsn, 2).float()",
"def yGgQ():\n WKvO = oyIN.linspace(-40, 40, 20)\n fuBA, EcVT = oyIN.meshgrid(WKvO, WKvO)\n Ylbp = oyIN... | [
"0.76059514",
"0.71334434",
"0.712305",
"0.6936286",
"0.69086325",
"0.68790054",
"0.68756163",
"0.6813063",
"0.6797396",
"0.67415184",
"0.6735382",
"0.6646007",
"0.6592552",
"0.65917337",
"0.6552419",
"0.65247506",
"0.65118486",
"0.6511225",
"0.65081936",
"0.65066457",
"0.650... | 0.71760136 | 1 |
Loads MNIST dataset. If not present locally, the dataset is downloaded from Yann LeCun's site. The dataset consists of 60k training and 10k testing samples of 28x28 grayscale images. The inputs are standardized and the output labels are onehot encoded. | def MXzz():
zRFz = 28
X3bi = 10
RRlC = {'X_train': ('train-images-idx3-ubyte.gz', 60000), 'T_train': ('train-labels-idx1-ubyte.gz', 60000), 'X_test': ('t10k-images-idx3-ubyte.gz', 10000), 'T_test': ('t10k-labels-idx1-ubyte.gz', 10000)}
nPrm = {}
for UXqs, (mWFP, wK7l) in RRlC.items():
if not... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kPcd():\n FkP4 = w37D.input_data.read_data_sets('MNIST_data', one_hot=False)\n cC56 = FkP4.train.images\n VJv0 = FkP4.train.labels\n el7K = FkP4.validation.images\n lq4i = FkP4.validation.labels\n XxFT = g9it(cC56, VJv0)\n hYlE = g9it(el7K, lq4i)\n return x3i3(jDN9, XxFT, hYlE, Se3a)",
... | [
"0.79405427",
"0.7846078",
"0.7790579",
"0.77621835",
"0.76841766",
"0.7652057",
"0.7481549",
"0.74532366",
"0.7450856",
"0.7448409",
"0.7420369",
"0.7408402",
"0.73790956",
"0.7373906",
"0.7365343",
"0.7336327",
"0.732514",
"0.7319207",
"0.7280733",
"0.7280733",
"0.72700506"... | 0.80659354 | 0 |
Attach a lot of summaries to a Tensor (for TensorBoard visualization). | def g4Yp(SRYB):
with ZylS.name_scope('summaries'):
JBMS = ZylS.reduce_mean(SRYB)
ZylS.summary.scalar('mean', JBMS)
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS)))
ZylS.summary.scalar('stddev', z2bo)
ZylS.summary.scalar(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()",
"def oxpy(YK... | [
"0.77372825",
"0.76371294",
"0.71553725",
"0.70677304",
"0.7010343",
"0.70051324",
"0.686583",
"0.6790819",
"0.6712101",
"0.67020524",
"0.6698547",
"0.6653406",
"0.6651963",
"0.6647064",
"0.66240656",
"0.6604837",
"0.6597623",
"0.6582092",
"0.6571837",
"0.6538044",
"0.6537941... | 0.0 | -1 |
Sets the parent of this object. | def bCkD(YKHO, _AKB):
YKHO.__parent__ = _AKB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB",
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB",
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB",
"def tJu_(YKHO, _AKB):\n YKHO.parent = _AKB",
"def bCkD(YKHO, _AKB):\n YKHO.parent = _AKB",
"def bCkD(YKHO, _AKB):\n YKHO.parent = _AKB",
"def K0... | [
"0.89894783",
"0.89894783",
"0.89894783",
"0.8973127",
"0.89501303",
"0.89501303",
"0.8903757",
"0.881179",
"0.8704131",
"0.86636937",
"0.86350584",
"0.86273605",
"0.86273605",
"0.86273605",
"0.86273605",
"0.86273605",
"0.86273605",
"0.86273605",
"0.86273605",
"0.86273605",
"... | 0.899293 | 0 |
Reset `notice_counter` to `NOTICE_COUNTER`. | def iOuA(OaBa: Session, Lf3s: Book):
nvDG = OaBa.query(dl5x).filter(dl5x.id == Lf3s.id).filter(dl5x.location == Lf3s.location).filter(dl5x.chat_id == Lf3s.chat_id).one()
nvDG.notice_counter = UHbE
OaBa.commit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def odqW(YKHO):\n YKHO.message_counter = 0",
"def OiBL(YKHO):\n pass",
"async def counter_reset(YKHO, OaeV):\n YKHO.gconf = YKHO.config.guild(OaeV.guild)\n await YKHO.gconf.Word_count.set(0)\n await OaeV.send('Counter reset to 0!')",
"def dJs1(YKHO):\n YKHO.type = 'Notice'",
"def Uj_y(YKH... | [
"0.6789134",
"0.6529431",
"0.63757837",
"0.6268972",
"0.620573",
"0.61419964",
"0.60905653",
"0.5924606",
"0.592289",
"0.5901035",
"0.58592737",
"0.58504444",
"0.5827856",
"0.5780022",
"0.5776476",
"0.57402396",
"0.5721452",
"0.57155627",
"0.5711142",
"0.5682509",
"0.5672817"... | 0.72142226 | 0 |
Filter out records not owned by current user. | def BwTA(Jyyj):
def _gRY(hkxX):
return azQC(owned_only=True)
return _gRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fRXs(YKHO, SR0I):\n return SR0I.filter(owner=YKHO.request.user)",
"def AFP6(YKHO, CBIr):\n from .models import ItemInventory\n GFQK = ItemInventory.objects.filter(part_of__in=CBIr.sets_owned.values_list('owned_set', flat=True))\n return YKHO.exclude(pk__in=GFQK.values_list('element', flat=True)).... | [
"0.74970585",
"0.74266136",
"0.7298235",
"0.7166322",
"0.7072245",
"0.68793035",
"0.67272",
"0.66493136",
"0.6642764",
"0.651872",
"0.64419526",
"0.6379807",
"0.63219166",
"0.6268542",
"0.6268542",
"0.6245814",
"0.62191874",
"0.62116927",
"0.6189798",
"0.61860913",
"0.6180712... | 0.6961217 | 5 |
Returns disk usage statistics about the partition which contains the given path. They determined using the method on psutil module. sdiskusage(total=249849593856, used=11281641472, free=137339965440, percent=7.6) | def Y8AE():
return O0k5.disk_usage('/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WhiX(pmON):\n aevO = Hy7s.statvfs(pmON)\n ftQ2 = aevO.f_bavail * aevO.f_frsize\n wjRY = aevO.f_blocks * aevO.f_frsize\n XR14 = (aevO.f_blocks - aevO.f_bfree) * aevO.f_frsize\n try:\n DuZT = U5bT = float(XR14) / wjRY * 100\n except ZeroDivisionError:\n DuZT = 0\n return e0rX(w... | [
"0.8110802",
"0.81052184",
"0.7960879",
"0.782996",
"0.7795635",
"0.77845997",
"0.7693265",
"0.75224817",
"0.7426533",
"0.74194956",
"0.7382288",
"0.73753107",
"0.7183662",
"0.71629936",
"0.71628",
"0.71057266",
"0.7105533",
"0.6996726",
"0.69604564",
"0.69555885",
"0.6874773... | 0.7554542 | 7 |
Calculate the dice loss function for binary arrays. | def KVH6(YKHO, nvEb, LVAh):
nvEb = ht2j.flatten(nvEb)
LVAh = ht2j.flatten(LVAh)
C7_8 = (nvEb * LVAh).sum()
p1kx = (2.0 * C7_8 + YKHO.eps) / (nvEb.sum() + LVAh.sum() + YKHO.eps)
return 1.0 - p1kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def exWL(hlel, pan_):\n SGf8 = 0.0001\n iQin = hlel * pan_\n M6pt = 2 * iQin.sum(0).sum(1).sum(1)\n UUZ1 = hlel + pan_\n UUZ1 = UUZ1.sum(0).sum(1).sum(1) + SGf8\n fBFn = 1 - M6pt / UUZ1\n return fBFn.sum() / hlel.size(1)",
"def exWL(hlel, pan_):\n SGf8 = 0.0001\n iQin = hlel * pan_\n ... | [
"0.7514608",
"0.7514608",
"0.74829906",
"0.73055464",
"0.72966844",
"0.72306967",
"0.72306967",
"0.7173281",
"0.7140373",
"0.7128441",
"0.71155685",
"0.70351166",
"0.7018889",
"0.7016261",
"0.70034295",
"0.69284844",
"0.69154453",
"0.6893157",
"0.6893157",
"0.6881196",
"0.683... | 0.0 | -1 |
Instantiate an osvif VIF instance | def A8VZ(BDAm, Emd4, t0qN, **B2fa):
return Emd4(id=BDAm['id'], address=BDAm['address'], network=BsAf(BDAm['network']), has_traffic_filtering=BDAm.is_neutron_filtering_enabled(), preserve_on_delete=BDAm['preserve_on_delete'], active=BDAm['active'], plugin=t0qN, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KmvP(QpfX, **B2fa):\n return _f1S.VirtualInterface(context=QpfX, **B2fa)",
"def ox9O(BDAm):\n na1r.debug('Converting VIF %s', BDAm)\n sBn4 = BDAm['type']\n if sBn4 in ELYd:\n na1r.debug('No conversion for VIF type %s yet', sBn4)\n return None\n if sBn4 in {C3ST.VIF_TYPE_BINDING_F... | [
"0.69060266",
"0.6630544",
"0.65046334",
"0.61884165",
"0.6150884",
"0.60458165",
"0.5979041",
"0.5888522",
"0.5853741",
"0.58429044",
"0.5792404",
"0.5786382",
"0.57725793",
"0.57720774",
"0.5758206",
"0.57088643",
"0.56929153",
"0.5638103",
"0.562777",
"0.56198037",
"0.5617... | 0.6347934 | 3 |
Reshape a TensorRT output from NCHW to NHWC format (with expected C=255), and then return it in (batch,height,width,3,85) dimensionality after further reshaping. | def Vb7L(YKHO, FGW3, hlel):
hlel = hlel.reshape(YKHO.output_shapes[FGW3])
hlel = hlel.permute(0, 2, 3, 1)
Ep8u, H2v2, TVTK, bGrB = hlel.shape
qNoP = Ep8u
MFrU, fRuM = (H2v2, TVTK)
nSKI = 3
vsbj = 4 + 1 + YKHO.classes_num
return ht2j.reshape(hlel, (qNoP, MFrU, fRuM, nSKI, vsbj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pnzb(wH3T: str, VdBn: np.ndarray):\n if wH3T == 'NHWC':\n lJr8 = VdBn.shape[1]\n uIYW = VdBn.shape[2]\n dxEX = VdBn.shape[3]\n else:\n lJr8 = VdBn.shape[2]\n uIYW = VdBn.shape[3]\n dxEX = VdBn.shape[1]\n return (lJr8, uIYW, dxEX)",
"def Lan9(FRUf):\n if i... | [
"0.6876045",
"0.68742585",
"0.6764995",
"0.65962124",
"0.65485364",
"0.64309967",
"0.6384143",
"0.6375344",
"0.62888",
"0.62436754",
"0.6240248",
"0.6189704",
"0.6149197",
"0.60978556",
"0.6076307",
"0.60635704",
"0.6052309",
"0.6029337",
"0.60113233",
"0.5997834",
"0.5980606... | 0.6499248 | 5 |
Inicializa el objeto Point | def FIMM(YKHO, WKvO=0, LVAh=0):
YKHO.x = WKvO
YKHO.y = LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, WKvO=0, LVAh=0, AU8u=None):\n if AU8u != None:\n YKHO.x = AU8u.x\n YKHO.y = AU8u.y\n else:\n YKHO.x = WKvO\n YKHO.y = LVAh",
"def FIMM(YKHO, LTIa=None):\n if LTIa is not None:\n YKHO.setCoordinate(LTIa)",
"def FIMM(YKHO, MKu6):\n if not isinstance(M... | [
"0.8261901",
"0.7601495",
"0.75906014",
"0.7576272",
"0.7556037",
"0.75429565",
"0.75074416",
"0.74986196",
"0.74458885",
"0.7443138",
"0.7405733",
"0.73519444",
"0.7319135",
"0.72916734",
"0.7265721",
"0.72257084",
"0.7202485",
"0.71986276",
"0.71695346",
"0.71565086",
"0.71... | 0.70477444 | 49 |
Calculate the lucas value of a given position. | def l1Jk(exwG):
_1qI = 2
zDMu = 1
if exwG == 0:
return 2
elif exwG == 1:
return 1
else:
while exwG > 1:
_1qI += l1Jk(exwG - _1qI)
zDMu += l1Jk(exwG - zDMu)
return _1qI + zDMu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l1Jk(exwG):\n if exwG < 0:\n print('Invalid argument')\n elif exwG == 0:\n return 2\n elif exwG == 1:\n return 1\n else:\n return l1Jk(exwG - 2) + l1Jk(exwG - 1)",
"def foq8(P6bq):\n QC83 = hFiK(t0k2(P6bq), x5Qj(P6bq))\n return QC83",
"def yq5I(YKHO) -> float:\... | [
"0.6545336",
"0.6450715",
"0.6380296",
"0.6186675",
"0.6143797",
"0.6133142",
"0.5999392",
"0.5927656",
"0.59095675",
"0.5880659",
"0.5872936",
"0.58538395",
"0.58432055",
"0.58432055",
"0.5841412",
"0.58295894",
"0.5824994",
"0.5812883",
"0.5805507",
"0.5804917",
"0.5798724"... | 0.0 | -1 |
Save object as json into the file. | def znGk(YKHO, nUeQ, nPrm):
with open(nUeQ, 'w', encoding='utf-8') as eHNT:
eHNT.write(qQXR.dumps(nPrm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ncJT(object, nUeQ):\n with open(nUeQ, 'wb') as hlel:\n qQXR.dump(object, hlel)",
"def xkzz(YKHO):\n YKHO.__file_path = 'file.json'\n with open(YKHO.__file_path, 'w') as DfdU:\n qQXR.dump(YKHO.__objects, DfdU, default=str)",
"def M8gv(YEnM, Ux0P):\n with open(Ux0P, 'w') as nUeQ:\n ... | [
"0.8707955",
"0.84252495",
"0.84023833",
"0.8375478",
"0.8347313",
"0.8338019",
"0.83288014",
"0.8325353",
"0.82981855",
"0.82952744",
"0.82554096",
"0.82554096",
"0.82520396",
"0.82502645",
"0.8246073",
"0.82437116",
"0.8234242",
"0.8234242",
"0.8233251",
"0.8232261",
"0.823... | 0.7751621 | 89 |
RRintervals differing by more than the removing_rule from the one proceeding it are removed. | def EUI1(i4X_: List[float], NKcE: str='malik', r3iS: float=0.2, PJWX: bool=True) -> list:
if NKcE not in [Cdua, EX7A, p3yV, Lj6m, Inqz]:
raise ValueError('Not a valid method. Please choose between malik, kamath, karlsson, acar. You can also choose your own removing critera with custom_rule parameter... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dbOW(i4X_: List[float], IbyH=0.2) -> AzJI[list, int]:\n KmdO = []\n v36I = 0\n for YRbF, wyYe in enumerate(i4X_):\n if YRbF < 9:\n KmdO.append(wyYe)\n continue\n dmCI = oyIN.nanmean(KmdO[-9:])\n if abs(dmCI - wyYe) < IbyH * dmCI:\n KmdO.append(wyYe... | [
"0.66160977",
"0.628718",
"0.62491906",
"0.6033617",
"0.58950377",
"0.5820425",
"0.57954496",
"0.57503176",
"0.57468474",
"0.5700176",
"0.56308645",
"0.56112933",
"0.55857635",
"0.55786043",
"0.55688506",
"0.5565165",
"0.5539555",
"0.5519891",
"0.5499718",
"0.54624695",
"0.54... | 0.64059204 | 1 |
Get sentiment score for a given text text | def ZVpJ(YKHO, l5Ny, DuqQ='en'):
FnQZ, dY7r = hqda(l5Ny, YKHO.labMT, shift=True, happsList=YKHO.labMTvector)
NPKu = yM8m(dY7r, YKHO.labMTvector, YKHO.labMTwordList, stopVal=1.0)
FnQZ = PHzZ(NPKu, YKHO.labMTvector)
if FnQZ == -1:
return 0
else:
return FnQZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdUD(l5Ny):\n p1kx = tX5x.polarity_scores(l5Ny)\n return p1kx",
"def KuSG(l5Ny):\n return b65H.polarity_scores(l5Ny)",
"def hckV(l5Ny):\n Jyvh = Hy7s.environ.get('MICROSOFT_TEXT_ANALYTICS_KEY', None)\n if Jyvh is None:\n raise Exception('Please specify MICROSOFT_TEXT_ANALYTICS_KEY.')\... | [
"0.8686516",
"0.84613806",
"0.8454689",
"0.84261596",
"0.8402308",
"0.8276648",
"0.82299817",
"0.8204163",
"0.80893576",
"0.80636233",
"0.80474645",
"0.80151427",
"0.8014944",
"0.7999691",
"0.79942995",
"0.7982384",
"0.7981942",
"0.79783547",
"0.7953476",
"0.7953476",
"0.7953... | 0.0 | -1 |
Function used to process the given text 1. Replace ,.'" with '' 2. Tokenzie the text using NLTK word tokenizer 3. Remove stop words from the token. 4. Convert the tokens to lower case 5. Lemmatize the tokens using WordNet Lemmatizer | def Zi4e(l5Ny):
l5Ny = l5Ny.replace('||||', '')
l5Ny = l5Ny.replace(',', '')
l5Ny = l5Ny.replace('@', '')
l5Ny = l5Ny.replace('.', '')
l5Ny = l5Ny.replace("'", '')
l5Ny = l5Ny.replace('"', '')
s2mk = [GIN8 for _dZy in N3rN(l5Ny) for GIN8 in dFss(_dZy)]
JCyR = di0c.words('english')
s2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QrZ9(l5Ny):\n for pC3l in vIwR.punctuation:\n l5Ny = l5Ny.replace(pC3l, ' ')\n AwHw = l5Ny.lower()\n jWWN = dFss(AwHw)\n ENZs = [GIN8 for GIN8 in jWWN if GIN8.isalpha()]\n hwHU = set(di0c.words('english'))\n z5zW = [GIN8 for GIN8 in ENZs if not GIN8 in hwHU]\n dhx_ = GFnk()\n HIM... | [
"0.8162648",
"0.80991286",
"0.7926093",
"0.7883509",
"0.786481",
"0.7836528",
"0.78329444",
"0.7827136",
"0.7819841",
"0.7803301",
"0.77658516",
"0.7759218",
"0.7752246",
"0.7721804",
"0.7716731",
"0.7713229",
"0.7711053",
"0.7708869",
"0.7693785",
"0.7682432",
"0.7654794",
... | 0.82494915 | 0 |
Get the fully qualified name of the given object. | def eNax(YEnM):
return f'{YEnM.__module__}.{YEnM.__name__}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AUXL(YEnM):\n yR_P = YEnM.__module__\n if yR_P in ('__builtin__', '__main__', 'builtins'):\n return YEnM.__name__\n return '.'.join([yR_P, YEnM.__name__])",
"def CTNJ(xHuz):\n yR_P = xHuz.__module__\n if hasattr(xHuz, '__name__'):\n PWg9 = xHuz.__name__\n else:\n PWg9 =... | [
"0.8635572",
"0.8468654",
"0.84417903",
"0.82931733",
"0.82680774",
"0.81878465",
"0.80892104",
"0.7929797",
"0.79115355",
"0.78180987",
"0.7810903",
"0.7621704",
"0.7585798",
"0.7557224",
"0.75394875",
"0.753901",
"0.7500076",
"0.74895644",
"0.74373436",
"0.74257046",
"0.741... | 0.81620014 | 6 |
Checks whether `url` is a valid URL. | def SGVO(bD7m):
U5Jc = KVWQ(bD7m)
return bool(U5Jc.netloc) and bool(U5Jc.scheme) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yaqE(bD7m):\n return True if f8eG.match(bD7m) else False",
"def SGVO(bD7m):\n aBkf = _FIc.URLValidator()\n try:\n aBkf(bD7m)\n except _FIc.ValidationError:\n return False\n else:\n return True",
"def Sxk4(bD7m):\n if not ZbWC.search('^(http|https|ftp)' + '\\\\://[a-z0... | [
"0.8939179",
"0.8780518",
"0.87553483",
"0.86886775",
"0.86520433",
"0.86460173",
"0.8619089",
"0.85934895",
"0.8589099",
"0.8505128",
"0.8439438",
"0.8439245",
"0.8436709",
"0.8436638",
"0.8415732",
"0.8406938",
"0.83978635",
"0.83957845",
"0.8382483",
"0.83688885",
"0.83594... | 0.83548236 | 21 |
Use for conditional pytest.raises when using parametrize. | def ZKNR():
yield | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u56H(UWpp, vRCC: Dict[str, Any], aEqx: str) -> None:\n UWpp.fixturenames = ['foo']\n with trZe.raises(ValueError) as zK6_:\n MkKi(UWpp, vRCC)\n assert aEqx in str(zK6_.value)",
"def zZo3(YKHO):\n YKHO.performTestForParams()",
"def zZo3(YKHO):\n YKHO.performTestForParams()",
"def p7c... | [
"0.71622616",
"0.68479604",
"0.68479604",
"0.682868",
"0.6785605",
"0.678312",
"0.678312",
"0.67664486",
"0.6747581",
"0.67470556",
"0.6713531",
"0.6707313",
"0.6677486",
"0.6646218",
"0.66406214",
"0.6636536",
"0.6620821",
"0.6604473",
"0.6557781",
"0.6519978",
"0.6513303",
... | 0.0 | -1 |
Test tf_bin version in file. | def VIj8(YKHO, Ehsq, vD38, ZqHk):
RVFA = CFMy(version_file=True)
RVFA.install.return_value = 'success'
Ehsq.setattr(nJAG, 'tfenv', RVFA)
YEnM = nJAG(vD38, ZqHk)
assert YEnM.tf_bin == 'success'
RVFA.install.assert_called_once_with(None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gEr0():\n JFat = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'data/')\n si4Y = JFat + 'tb_paired_reads.bam'\n XRlq = JFat + 'tb_biases_100kb.pickle'\n RRlC = [si4Y, XRlq]\n yIVm = {'resolution': '100000', 'norm': ['raw', 'norm'], 'species': 'Homo sapiens', 'assembly': 'Unknown', 'ncpus': 4}\n dDV... | [
"0.62120557",
"0.6170949",
"0.61698574",
"0.5949465",
"0.5882059",
"0.58719254",
"0.58563185",
"0.5855076",
"0.5832669",
"0.58289266",
"0.5817393",
"0.57786673",
"0.5763576",
"0.5721352",
"0.5713887",
"0.5701093",
"0.56930953",
"0.56804615",
"0.56746835",
"0.5637405",
"0.5635... | 0.6236687 | 0 |
Test handle_backend with no handler. | def k8Ac(YKHO, KTnm, Ehsq, vD38, ZqHk):
KTnm.set_level(i2fF.DEBUG, logger=e7m7)
Tyvu = CFMy(return_value={})
DDLl = {'type': 'unsupported', 'config': {}}
YEnM = nJAG(vD38, ZqHk)
Ehsq.setattr(YEnM, 'tfenv', CFMy(backend=DDLl))
Ehsq.setattr(YEnM.options.backend_config, 'get_full_configuration', Ty... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVv6(YKHO):\n P4t4 = FT9M(YKHO.router)\n P4t4.handlers = []\n tO9_ = Q5gR(YKHO.connection, 'hello world')\n lCxN = P4t4.handle(tO9_)\n YKHO.assertEqual(lCxN, None)\n YKHO.assertEqual(len(tO9_.responses), 0)",
"def z5HO(YKHO, KTnm, Ehsq, vD38, ZqHk):\n KTnm.set_level(i2fF.INFO, logger=e7m... | [
"0.6725188",
"0.6624753",
"0.6494201",
"0.6415048",
"0.63005596",
"0.62863654",
"0.62242514",
"0.61882955",
"0.6075529",
"0.605748",
"0.6030378",
"0.5963196",
"0.58876383",
"0.5809921",
"0.5768958",
"0.5749331",
"0.5747663",
"0.5735157",
"0.57269365",
"0.5706292",
"0.569759",... | 0.7116918 | 0 |
Test handle_backend with no type. | def z5HO(YKHO, KTnm, Ehsq, vD38, ZqHk):
KTnm.set_level(i2fF.INFO, logger=e7m7)
YEnM = nJAG(vD38, ZqHk)
Ehsq.setattr(YEnM, 'tfenv', CFMy(backend={'type': None}))
assert not YEnM.handle_backend()
assert 'unable to determine backend for module' in '\n'.join(KTnm.messages) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8Ac(YKHO, KTnm, Ehsq, vD38, ZqHk):\n KTnm.set_level(i2fF.DEBUG, logger=e7m7)\n Tyvu = CFMy(return_value={})\n DDLl = {'type': 'unsupported', 'config': {}}\n YEnM = nJAG(vD38, ZqHk)\n Ehsq.setattr(YEnM, 'tfenv', CFMy(backend=DDLl))\n Ehsq.setattr(YEnM.options.backend_config, 'get_full_configu... | [
"0.70518196",
"0.695493",
"0.66937405",
"0.63704354",
"0.63277984",
"0.627734",
"0.62560135",
"0.62511784",
"0.61551124",
"0.6154787",
"0.6154034",
"0.6031637",
"0.6028914",
"0.6011169",
"0.6006868",
"0.60065186",
"0.5961006",
"0.5941399",
"0.5928576",
"0.59176",
"0.589657",
... | 0.72307676 | 0 |
Test handle_backend for remote backend with workspace undetermined. | def p7Pu(YKHO, KTnm, Ehsq, vD38, ZqHk):
KTnm.set_level(i2fF.WARNING, logger=e7m7)
Ehsq.delenv('TF_WORKSPACE', raising=False)
Tyvu = CFMy(return_value={})
DDLl = {'type': 'remote', 'config': {}}
YEnM = nJAG(vD38, ZqHk)
Ehsq.setattr(YEnM, 'tfenv', CFMy(backend=DDLl))
Ehsq.setattr(YEnM.options.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bkPb(YKHO, KTnm, Ehsq, vD38, ZqHk):\n KTnm.set_level(i2fF.DEBUG, logger=e7m7)\n Ehsq.setenv('TF_WORKSPACE', 'anything')\n Tyvu = CFMy(return_value={})\n DDLl = {'type': 'remote', 'config': {'workspaces': {'name': 'test'}}}\n YEnM = nJAG(vD38, ZqHk)\n Ehsq.setattr(YEnM, 'tfenv', CFMy(backend=D... | [
"0.74123406",
"0.7057547",
"0.68031687",
"0.65941656",
"0.65449744",
"0.6298246",
"0.62443346",
"0.6129237",
"0.6108188",
"0.60398",
"0.60389686",
"0.59036183",
"0.58651906",
"0.5851849",
"0.582601",
"0.57681775",
"0.5749571",
"0.5691654",
"0.56847936",
"0.5660115",
"0.564258... | 0.76163757 | 0 |
Tests that a user can sign up | def OuCI(YKHO):
_hkX = YKHO.client.post('/api/v2/auth/signup', data=qQXR.dumps(YKHO.new_user), content_type='application/json')
YKHO.assertEqual(_hkX.status_code, 201)
YKHO.assertEqual(qQXR.loads(_hkX.get_data(as_text=True))['message'], 'user groot successfully signed up') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JQDH(YKHO):\n ANfV = YKHO.client.post('api/v1/auth/signup', data=qQXR.dumps(YKHO.signup_details), content_type='application/json')\n YKHO.assertEqual(ANfV.status_code, 201)",
"def VrlW(YKHO):\n YKHO.assertEqual(FYrf.SUCCESS, YKHO.users.sign_up('userA', 'myPassword', 'myPassword', 'userA@gmail.com'))... | [
"0.8378401",
"0.83342874",
"0.82758015",
"0.8187616",
"0.8114826",
"0.8071767",
"0.7904031",
"0.7845997",
"0.7815048",
"0.77723205",
"0.7760659",
"0.7721335",
"0.771831",
"0.771804",
"0.76754636",
"0.76132303",
"0.7612817",
"0.7607044",
"0.75949025",
"0.75890845",
"0.7586135"... | 0.760626 | 18 |
Converts a relative or absoulute file system path to a path relative to project root. | def wlez(pmON):
pmON = Hy7s.path.abspath(pmON)
tk5Y = sEAN.root()
if not pmON.startswith(tk5Y):
raise Exception('Path is outside the root:' + pmON)
pmON = pmON[len(tk5Y):]
if pmON.startswith(Hy7s.path.sep):
return pmON[1:]
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y0TB(pmON):\n if juj8(pmON):\n return pmON\n return gzes(gCuF.PROJECT_DIR, pmON)",
"def t_yv(YKHO, pmON):\n return Hy7s.path.join(YKHO.get_root_path(), pmON)",
"def J_1q(oyH5):\n return Hy7s.path.join(lkbE, oyH5)",
"def hanF(pmON, IBYl=Hy7s.curdir):\n return Hy7s.path.join('.', Hy7s... | [
"0.7916911",
"0.7872552",
"0.77313745",
"0.76649016",
"0.75767833",
"0.7561815",
"0.7549259",
"0.754478",
"0.7505167",
"0.7461281",
"0.7344449",
"0.7343454",
"0.73409253",
"0.7314549",
"0.72881764",
"0.7286756",
"0.72640634",
"0.72602487",
"0.7229106",
"0.7224992",
"0.7214225... | 0.7749322 | 2 |
Updates the nested configuration dictionary by another, potentially also nested dictionary. | def QdZT(YKHO, AJ7R, _fuv=None):
if _fuv is None:
_fuv = YKHO.config
if not isinstance(_fuv, g760.Mapping):
raise daSU('Assigning a suboption to a config option originally atomic.')
for H5ew, wEf2 in AJ7R.iteritems():
if isinstance(wEf2, g760.Mapping):
sbam = YKHO.update(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQaL(H5ew, Csk6, Elif):\n\n def OBrQ(H5ew, Csk6):\n x7bB = []\n while True:\n if H5ew in Csk6:\n if Csk6 in x7bB:\n raise m66p.core.LenaValueError('recursive *other* is forbidden')\n x7bB.append(Csk6)\n Csk6 = Csk6[H5ew... | [
"0.6940458",
"0.69091356",
"0.67280835",
"0.6676294",
"0.66373056",
"0.6631903",
"0.662524",
"0.66129255",
"0.65871555",
"0.65668255",
"0.6565354",
"0.6520408",
"0.65162885",
"0.6510402",
"0.6498871",
"0.64962816",
"0.6491183",
"0.64771235",
"0.6475622",
"0.64698994",
"0.6452... | 0.72034 | 0 |
Get the path where the projectnormalized data_asset_name expectations are stored. This method is used internally for constructing all absolute and relative paths for asset_namebased paths. | def TXWU(YKHO, PC4Y, WTcH, XSj5=None, ztnR='.json'):
if XSj5 is None:
XSj5 = Hy7s.path.join(YKHO.root_directory, 'expectations')
if isinstance(PC4Y, CfH9):
SzCd = [T3na.replace('/', '__') for T3na in PC4Y]
t_yv = '/'.join(SzCd)
elif isinstance(PC4Y, jUrF):
t_yv = PC4Y
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LH3f(YKHO):\n if YKHO.data_kind in ['input', 'output']:\n Z0kE = Hy7s.path.basename(YKHO.src_path.rstrip('/'))\n Z0kE = YKHO.data_name\n return Hy7s.path.join(YKHO.base_path_map[YKHO.data_kind], Z0kE)\n else:\n return YKHO.base_path_map[YKHO.data_kind]",
"def B1tp(YKHO):\n ... | [
"0.71073425",
"0.6953912",
"0.68904704",
"0.6880606",
"0.68513125",
"0.6829695",
"0.68145996",
"0.68058056",
"0.6745174",
"0.6738135",
"0.67279685",
"0.67108536",
"0.66862404",
"0.6670503",
"0.66488993",
"0.6644668",
"0.66320866",
"0.66263705",
"0.66185904",
"0.6617611",
"0.6... | 0.773314 | 0 |
Returns currentlydefined expectation suites available in a nested dictionary structure reflecting the namespace provided by this DataContext. | def pPSO(YKHO):
PoQX = {}
for pd8u in Hy7s.listdir(YKHO.expectations_directory):
PJ1v = Hy7s.path.join(YKHO.expectations_directory, pd8u)
if not Hy7s.path.isdir(PJ1v):
continue
if pd8u not in PoQX:
PoQX[pd8u] = {}
for c2Yh in Hy7s.listdir(PJ1v):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f4X9(YKHO):\n return YKHO.suite.suite_dicts()",
"def f4X9(YKHO):\n return [YKHO, YKHO.parent]",
"def v7El(YKHO) -> x1iM[str]:\n if YKHO._expectation_suite_names is None:\n YKHO._expectation_suite_names = list({MAUB.expectation_suite_identifier.expectation_suite_name for MAUB in YKHO.run_res... | [
"0.7176119",
"0.6654398",
"0.62141025",
"0.6056706",
"0.5818402",
"0.57825243",
"0.57264566",
"0.571452",
"0.5708215",
"0.5588791",
"0.5515391",
"0.5485272",
"0.5351175",
"0.53193575",
"0.5315108",
"0.5228735",
"0.52013004",
"0.5189154",
"0.5165444",
"0.5160601",
"0.5158513",... | 0.7182227 | 0 |
Get or create a named expectation suite for the provided data_asset_name. | def c9gA(YKHO, PC4Y, WTcH='default'):
if not isinstance(PC4Y, CfH9):
PC4Y = YKHO._normalize_data_asset_name(PC4Y)
xzSM = YKHO._get_normalized_data_asset_name_filepath(PC4Y, WTcH)
if Hy7s.path.isfile(xzSM):
with open(xzSM, 'r') as wM3v:
R4f_ = qQXR.load(wM3v)
R4f_['data_as... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IWA_(YKHO, PC4Y, WTcH='default', w0vT=None, **B2fa):\n _n7x = YKHO._normalize_data_asset_name(PC4Y)\n pd8u = YKHO.get_datasource(_n7x.datasource)\n if not pd8u:\n raise EiCv(\"Can't find datasource {0:s} in the config - please check your great_expectations.yml\")\n HaOa = pd8u.get_batch(_n7x... | [
"0.5908597",
"0.5902871",
"0.55864304",
"0.54130167",
"0.5385956",
"0.52807605",
"0.52124166",
"0.5199735",
"0.51521397",
"0.5092047",
"0.508319",
"0.5065374",
"0.50242126",
"0.49987286",
"0.49825016",
"0.49818856",
"0.493221",
"0.49287444",
"0.4902226",
"0.48581922",
"0.4853... | 0.7243724 | 0 |
Dense version of GAT. | def FIMM(YKHO, mQkE, l_wy, eQUr, hr1G, Cwt5, prkQ, VNS9, Ep8u, G1Hx, vC9B, begE):
super(sjZv, YKHO).__init__()
YKHO.dropout = hr1G
YKHO.attentions = [qz4s(mQkE, l_wy, dropout=hr1G, alpha=Cwt5, device=begE, layer=vC9B, concat=True) for bGrB in range(prkQ)]
for YRbF, v2uf in enumerate(YKHO.attentions):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y4I9(YKHO):\n YKHO.g = YKHO.tensor.calcBhattacharyya(YKHO.l)",
"def ZVsL(YKHO):\n qi6C = [[ZylS.identity(Vlb9) for Vlb9 in YKHO.params] for aTqo in range(YKHO.batch_size_G)]\n KgqM = ZylS.split(YKHO.X, YKHO.batch_size_G)\n WVfN = ZylS.split(YKHO.y, YKHO.batch_size_G)\n EinP = [YKHO.model_fun(Z... | [
"0.6475157",
"0.6174278",
"0.60329735",
"0.6024757",
"0.59859663",
"0.59181917",
"0.5890408",
"0.5884906",
"0.58409303",
"0.58342874",
"0.58275104",
"0.5821896",
"0.5810042",
"0.58035463",
"0.5799589",
"0.5789702",
"0.5789104",
"0.5785491",
"0.57815933",
"0.5766189",
"0.57643... | 0.0 | -1 |
List of DigitalOcean regions that support Spaces. | def zQZR(YKHO) -> x1iM[str]:
return ['nyc3', 'ams3', 'sfo2', 'sgp1', 'fra1'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkL1():\n return n_5j.keys()",
"def zQZR():\n return kkjR('autoscaling', connection_cls=_6ti)",
"def qj81():\n DQXr = gP7g.ec2.regions()\n CisL = [Mkmy for Mkmy in DQXr if Mkmy.name not in FWR8]\n return CisL",
"def CkL1():\n dwJt = list(['ap-south-1', 'ap-northeast-2', 'ap-southeast-1'... | [
"0.72232825",
"0.69444364",
"0.6898788",
"0.68825406",
"0.6667029",
"0.6646918",
"0.65878946",
"0.65862495",
"0.65629035",
"0.6549492",
"0.6535948",
"0.65092504",
"0.6498663",
"0.64872134",
"0.64852",
"0.6433232",
"0.63947624",
"0.6394353",
"0.63671726",
"0.6325006",
"0.63037... | 0.6545769 | 10 |
tf.reduce_prod(t, axis) with faster custom gradient. Shows comparable speed on CPU, up to 2x speed up on GPU, and 7x on TPU. | def R5iO(a1PO, jDK_):
@ZylS.custom_gradient
def FYKK(a1PO):
rGNu = ZylS.reduce_prod(a1PO, axis=jDK_)
def sl_F(eUWA):
"""Computes the gradient function.
Args:
dy: The gradient flowing into the output of this function.
Returns:
The gradient flowing out t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q79w(WKvO: Tensor, jDK_=None, JsoO=False, mWFP='reduce_prod'):\n return ZylS.math.reduce_prod(WKvO, axis=jDK_, keepdims=JsoO, name=mWFP)",
"def QRFO(WKvO: Tensor):\n return ZylS.math.reduce_prod(WKvO, axis=None, keepdims=False)",
"def NucF(YKHO):\n K_7p = YKHO.rnn_tf\n b2Qv = ZylS.math.cumprod(... | [
"0.6514819",
"0.6388891",
"0.63441217",
"0.59245294",
"0.5710671",
"0.5700421",
"0.5686405",
"0.5683249",
"0.5637431",
"0.56347626",
"0.5624079",
"0.5571924",
"0.5563552",
"0.5552441",
"0.5499096",
"0.54931116",
"0.54745436",
"0.54716784",
"0.54631734",
"0.54601145",
"0.54529... | 0.80755126 | 0 |
Returns default initialization bounds depending on layer output bounds. | def CDEj(Er4x, ZliH):
if Er4x is None and ZliH is None:
return (0.5, 1.5)
else:
return (0.0, 1.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ATYg():\n return (-1.5, 1.2, -0.2, 2)",
"def OKc4(JXBS, dyeT, _3Ii=None):\n if JXBS == VvsE.INPUT_TO_LATTICE:\n if _3Ii is None:\n raise ValueError('Expecting feature config for lattice inputs.')\n h2Rv = Er4x = 0.0\n mK03 = ZliH = _3Ii.lattice_size - 1.0\n elif JXBS ... | [
"0.76230174",
"0.6629539",
"0.6578847",
"0.65736556",
"0.6442323",
"0.6442323",
"0.6442323",
"0.63425493",
"0.63235193",
"0.6278279",
"0.6251206",
"0.6220184",
"0.6218084",
"0.61837506",
"0.617916",
"0.61754256",
"0.61467683",
"0.61339855",
"0.60884744",
"0.60653687",
"0.6065... | 0.6503446 | 4 |
Initializes bias depending on output_min and output_max. If both output_min and output_max are set, bias is initialized to their average. If only output_min is set, bias is initialized to output_min. If only output_max is set, bias is initialized to output_max. Otherwise bias is initialized to zeros. | def wdin(rYO3, Er4x, ZliH, yDqo=ZylS.float32):
if Er4x is not None and ZliH is not None:
return ZylS.constant((Er4x + ZliH) / 2.0, shape=[rYO3], dtype=yDqo)
elif Er4x is not None:
return ZylS.constant(Er4x, shape=[rYO3], dtype=yDqo)
elif ZliH is not None:
return ZylS.constant(ZliH, s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CDEj(Er4x, ZliH):\n if Er4x is None and ZliH is None:\n return (0.5, 1.5)\n else:\n return (0.0, 1.0)",
"def Bf47(YKHO, HCuq: Optional[torch.Tensor]=None) -> None:\n if HCuq is None:\n qmLP.warn('Readout is NOT initialized with mean activity but with 0!')\n YKHO.bias.data... | [
"0.7038704",
"0.6329192",
"0.6174277",
"0.61230654",
"0.608788",
"0.60876834",
"0.6079968",
"0.6022609",
"0.6008795",
"0.5945891",
"0.5892298",
"0.5840902",
"0.5828394",
"0.58262134",
"0.5812985",
"0.58087265",
"0.58079684",
"0.58054066",
"0.5787957",
"0.57798886",
"0.5779401... | 0.77528816 | 0 |
Approximately projects weights to strictly satisfy all constraints. This projeciton guarantees that constraints are strictly met, but it is not an exact projection w.r.t. the L2 norm. The computational cost is `O(num_monotonic_dims num_lattice_weights)`. See helper functions `_approximately_project_` for details of the... | def _MlY(_mSQ, rYO3, NXpY, SGXn, Er4x, ZliH):
if BfDw.count_non_zeros(SGXn) > 0:
_mSQ = ZylS.maximum(_mSQ, 0)
_mSQ = Z3Qu(weights=_mSQ, units=rYO3, scale=NXpY, monotonicities=SGXn)
if Er4x is not None or ZliH is not None:
_mSQ = l9Rw(weights=_mSQ, units=rYO3, output_min=Er4x, output_max=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z3Qu(_mSQ, rYO3, NXpY, SGXn):\n bCyF = _mSQ.get_shape().as_list()\n bGrB, D_bg, ETCj, jtJE = bCyF\n assert ETCj % rYO3 == 0\n Htse = ETCj // rYO3\n _mSQ = ZylS.reshape(_mSQ, [-1, D_bg, rYO3, Htse, jtJE])\n XSoh = ZylS.expand_dims(ZylS.sign(NXpY), axis=1)\n _mSQ = ZylS.unstack(XSoh * _mSQ, ... | [
"0.6998366",
"0.6705228",
"0.61966676",
"0.6153525",
"0.56555796",
"0.5499759",
"0.5450851",
"0.53458416",
"0.53191197",
"0.52919626",
"0.52778244",
"0.52730733",
"0.52455187",
"0.5216137",
"0.5141808",
"0.51187277",
"0.511691",
"0.5102941",
"0.5054688",
"0.50533307",
"0.5048... | 0.6373831 | 2 |
get the maximum value in the column ``col`` | def max(YKHO, fvDH):
YKHO._result = max([ZfUD[fvDH] for ZfUD in YKHO._result])
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NrMh(fvDH):\n hkxX = list(filter(lambda WKvO: WKvO >= 0, list(fvDH)))\n if len(hkxX) == 0:\n return 0\n return round(max(hkxX))",
"def Np5D(YKHO, iVRZ):\n d6pt = YKHO.__columns[iVRZ][1]\n return max(map(PlZs[d6pt], YKHO.__data_area.values()))",
"def qfB5(YKHO, tyNF, iVRZ, iPqd=''):\n ... | [
"0.83144766",
"0.8063511",
"0.7781085",
"0.7781085",
"0.77265376",
"0.77246255",
"0.75938475",
"0.75361794",
"0.74664",
"0.7435817",
"0.734795",
"0.7337746",
"0.7225045",
"0.7203156",
"0.7107866",
"0.6977758",
"0.6973811",
"0.6942054",
"0.6934267",
"0.6915918",
"0.6900628",
... | 0.780716 | 2 |
get the average value in the column ``col`` | def qqgr(YKHO, fvDH):
YKHO._result = sum([ZfUD[fvDH] for ZfUD in YKHO._result]) / len(YKHO._result)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LHrn(fvDH):\n _Xss = pGT6(fvDH)\n return round(JBMS(_Xss), 2)",
"def qqgr(YKHO, iVRZ):\n zNig = len(YKHO.__data_area)\n return YKHO.sum_(iVRZ) / zNig if zNig else zNig",
"def qqgr(tyNF: Arrable, AAHb: str):\n HYSk = 0\n Bt4q = 0\n for YRbF, rdlD in enumerate(tyNF.get_rows()):\n ... | [
"0.86863893",
"0.79396045",
"0.79293966",
"0.7809666",
"0.75697833",
"0.7267262",
"0.7212422",
"0.71398544",
"0.7062128",
"0.6970821",
"0.69523865",
"0.69294393",
"0.68215525",
"0.67195576",
"0.6661006",
"0.6653269",
"0.66041946",
"0.659381",
"0.65458536",
"0.64890206",
"0.64... | 0.8367066 | 1 |
Decodes a record to a TensorFlow example. | def F8vC(AIu6, Q3__):
PU1l = ZylS.io.parse_single_example(AIu6, Q3__)
for mWFP in list(PU1l.keys()):
a1PO = PU1l[mWFP]
if a1PO.dtype == ZylS.int64:
a1PO = ZylS.cast(a1PO, dtype=ZylS.int64)
if a1PO.dtype == oyIN.float32:
a1PO = ZylS.cast(a1PO, dtype=ZylS.float32)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8vC(AIu6, Q3__=Q3__):\n print('record', AIu6)\n PU1l = ZylS.parse_single_example(AIu6, Q3__)\n for mWFP in list(PU1l.keys()):\n a1PO = PU1l[mWFP]\n if a1PO.dtype == ZylS.int64:\n a1PO = ZylS.to_int32(a1PO)\n PU1l[mWFP] = a1PO\n return PU1l",
"def F8vC(AIu6, Q3__):... | [
"0.8446785",
"0.83013123",
"0.82791686",
"0.82757366",
"0.82757366",
"0.82757366",
"0.82753086",
"0.8273313",
"0.8273313",
"0.82685924",
"0.8265463",
"0.8248161",
"0.82324296",
"0.82229507",
"0.8212574",
"0.8212574",
"0.81995356",
"0.8150817",
"0.81289494",
"0.81257385",
"0.7... | 0.8102385 | 20 |
make_cmap takes a list of tuples which contain RGB values. The RGB values may either be in 8bit [0 to 255] (in which bit must be set to True when called) or arithmetic [0 to 1] (default). make_cmap returns a cmap with equally spaced colors. Arrange your tuples so that the first color is the lowest value for the colorba... | def aAIx(Jw9H, dQgj=None, HkJz=False):
wt8B = oyIN.linspace(0, 1, 256)
if dQgj:
dQgj = oyIN.linspace(0, 1, len(Jw9H))
elif len(dQgj) != len(Jw9H):
HwRy.exit('position length must be the same as colors')
elif dQgj[0] != 0 or dQgj[-1] != 1:
HwRy.exit('position must start with 0 and... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aAIx(Jw9H, dQgj=None, HkJz=False):\n wt8B = oyIN.linspace(0, 1, 256)\n if dQgj is None:\n dQgj = oyIN.linspace(0, 1, len(Jw9H))\n elif len(dQgj) != len(Jw9H):\n HwRy.exit('position length must be the same as colors')\n elif dQgj[0] != 0 or dQgj[-1] != 1:\n HwRy.exit('position m... | [
"0.76283866",
"0.6845255",
"0.6747218",
"0.6684604",
"0.66421807",
"0.6610667",
"0.65886515",
"0.65797174",
"0.6578612",
"0.6553158",
"0.65037525",
"0.65010494",
"0.64667416",
"0.6448004",
"0.6420808",
"0.6415788",
"0.6406291",
"0.6402953",
"0.6323999",
"0.63133174",
"0.63104... | 0.7732577 | 0 |
This generates a niaklike colormap of hot cold | def Z42c():
pXRx = {'red': ((0.0, 0.0, 0.0), (0.5, 0.0, 0.0), (0.75, 1.0, 1.0), (1.0, 1.0, 1.0)), 'green': ((0.0, 1.0, 1.0), (0.25, 0.0, 0.0), (0.5, 0.0, 0.0), (0.75, 0.0, 0.0), (1.0, 1.0, 1.0)), 'blue': ((0.0, 1.0, 1.0), (0.25, 1.0, 1.0), (0.5, 0.0, 0.0), (1.0, 0.0, 0.0))}
ipuh = NRcm.LinearSegmentedColormap('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iV8x(YKHO):\n return YKHO._apply_colormap('hot')",
"def iV8x(YKHO):\n return YKHO._apply_colormap('hot')",
"def kgvL(QR6r):\n dIvt = uoH7(oyIN.array([[1.0, 0.0, 0.0], [0.5, 0.5, 0.0], [0.0, 0.0, 1.0]]), QR6r)\n return dIvt",
"def DfDp(UDiA, iMGt):\n YAg3 = tRp2(iMGt)\n return [str(MiUz(... | [
"0.7104739",
"0.7104739",
"0.66926575",
"0.66911924",
"0.65374815",
"0.6528279",
"0.64997303",
"0.64849836",
"0.64849836",
"0.6479962",
"0.64785326",
"0.64530236",
"0.64530236",
"0.6443969",
"0.64292455",
"0.6409458",
"0.6400754",
"0.6387764",
"0.63560957",
"0.63513213",
"0.6... | 0.7502063 | 0 |
Initializes the CandlesEndpoint class. | def FIMM(YKHO, o61b, XHnM, DpZH='v2', TtgT=False):
super().__init__(DpZH, TtgT)
YKHO._symbol = o61b
YKHO._time_frame = XHnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, w2IS):\n pass",
"def DbxN(YKHO):\n YKHO.connector.init()",
"def FIMM(YKHO, **B2fa):\n super(K9it, YKHO).__init__()\n YKHO.time = B2fa.get('time')\n YKHO.bid = B2fa.get('bid')\n YKHO.ask = B2fa.get('ask')\n YKHO.mid = B2fa.get('mid')\n YKHO.volume = B2fa.get('volume')\n ... | [
"0.64219666",
"0.6181648",
"0.6162681",
"0.61514676",
"0.61514676",
"0.61514676",
"0.61514676",
"0.61514676",
"0.61514676",
"0.614342",
"0.61345226",
"0.61088115",
"0.6085369",
"0.58912665",
"0.58875483",
"0.5863932",
"0.5863932",
"0.58346224",
"0.58182013",
"0.58158517",
"0.... | 0.0 | -1 |
Sets the product_field_name of this ProductField. | def njHf(YKHO, njHf):
YKHO._product_field_name = njHf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H0Kv(YKHO, Lx3t):\n YKHO._productName = Lx3t",
"def n8KJ(YKHO, n8KJ):\n YKHO._product_name = n8KJ",
"def vXX7(YKHO, vXX7: str):\n YKHO._field_name = vXX7",
"def vXX7(YKHO, vXX7):\n YKHO._field_name = vXX7",
"def vXX7(YKHO, vXX7):\n YKHO._field_name = vXX7",
"def kmsK(YKHO, kmsK):\n ... | [
"0.77706933",
"0.7574603",
"0.7292415",
"0.7211827",
"0.7211827",
"0.6920074",
"0.6662206",
"0.66168016",
"0.6397028",
"0.6346091",
"0.61506367",
"0.6125798",
"0.61001015",
"0.6064973",
"0.6019055",
"0.5997445",
"0.5949391",
"0.59454536",
"0.59414446",
"0.59338",
"0.59238553"... | 0.901274 | 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.8043786 | 25 |
Generate a random string of letters and digits | def TJC9(FVpJ=6):
PdTY = vIwR.ascii_letters + vIwR.digits
return ''.join((tuKI.choice(PdTY) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zfgd():\n PdTY = vIwR.ascii_letters + vIwR.digits\n return ''.join((tuKI.choice(PdTY) for YRbF in range(50)))",
"def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in range(ajWY(0, 1000))))",
"def a2Ud(u54L=10):\n SuXy = vIwR.ascii_letters + vIwR.digits\n dEzN = ''.join((tuKI.ch... | [
"0.8631943",
"0.8384434",
"0.8251372",
"0.8224575",
"0.81670165",
"0.8150145",
"0.8120966",
"0.81154776",
"0.81154776",
"0.81154776",
"0.8113952",
"0.80789375",
"0.8068197",
"0.8046413",
"0.8011193",
"0.8010706",
"0.8000312",
"0.7985171",
"0.79729855",
"0.7968244",
"0.7964276... | 0.0 | -1 |
Assert forged token return a bad request. | def T3fu(YKHO):
eOtH = 'nimporte-nawak'
with YKHO.assertRaises(YKHO.view_instance.invalid_exception_class):
YKHO.view_instance.verify_token(YKHO.request, token=eOtH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VWNR():\n nNXP.abort(aazL.HTTP_404)",
"def wjco(YKHO):\n uJjO = dSPv.config('user_id')\n oBeo = YKHO.__class__.list_id\n Drzj = zVa7.get_request(GjSa, {u'user_id': uJjO, u'access_token': u'invalid token', u'list_id': oBeo})\n WKvO = YKHO.start_request_tests(Drzj)\n if WKvO.status_code != 40... | [
"0.8021669",
"0.7859616",
"0.7726789",
"0.7666727",
"0.76557666",
"0.7655739",
"0.75954485",
"0.7544064",
"0.75181246",
"0.7433156",
"0.74087703",
"0.73947644",
"0.7358029",
"0.7349369",
"0.7330064",
"0.73257333",
"0.7316757",
"0.7310919",
"0.7298481",
"0.72731763",
"0.727226... | 0.7750576 | 2 |
Given any object, return the same object in SQL style. | def cFke(YEnM):
if YEnM is None:
return 'NULL'
if isinstance(YEnM, ZjSO):
return str(YEnM)
if isinstance(YEnM, qcWV.datetime):
return u'{value}'.format(value=YEnM.strftime('%Y-%m-%d %H:%M:%S'))
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A8WR(EfUA):\n return list(eHpk.execute(EfUA).first())",
"def QFFj(YEnM, on3E):\n for Jyyj in YEnM.fields:\n YEnM[Jyyj] = on3E[Jyyj]\n YEnM.obj_reset_changes()\n return YEnM",
"def yzun(P6IV):\n return (C3ST.where(**P6IV).first(), None)",
"def xtUD(YKHO, YEnM, type):\n return zPjx... | [
"0.6271637",
"0.6264648",
"0.6092683",
"0.6087597",
"0.60292596",
"0.602277",
"0.5866109",
"0.572451",
"0.5675325",
"0.5670861",
"0.56512046",
"0.5637849",
"0.5613574",
"0.5602079",
"0.5596196",
"0.55886894",
"0.55653554",
"0.5560704",
"0.55584896",
"0.5541843",
"0.55368245",... | 0.533802 | 38 |
Convert string to datetime object follow format string. | def suJK(CMdN, sI3h):
return qcWV.datetime.strptime(CMdN, sI3h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def suJK(wU8J, DAsM='%Y-%m-%dT%H:%M:%S'):\n return qcWV.datetime.strptime(wU8J, DAsM)",
"def WPto(YKHO, Dhyu):\n return qcWV.datetime.strptime(Dhyu, '%Y-%m-%dT%H:%M:%S')",
"def HJff(KCHu):\n KCHu = KCHu.strip()\n for x8Ov in ['%Y-%m-%dT%H:%M:%S', '%Y-%m-%dT%H:%M', '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:... | [
"0.7801541",
"0.7724269",
"0.769771",
"0.768746",
"0.76306206",
"0.76137984",
"0.758588",
"0.75634104",
"0.7562789",
"0.75381076",
"0.7521321",
"0.7511245",
"0.75078666",
"0.7495115",
"0.7465589",
"0.74402463",
"0.7421014",
"0.73736656",
"0.737061",
"0.73216736",
"0.7317629",... | 0.7733268 | 1 |
Generates an array of length n with the character '9' | def XSA7(exwG):
return ['9'] * exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cyNK(WKvO, exwG):\n LVAh = oyIN.empty(exwG, dtype=str)\n yKcO = 0\n for YRbF in range(0, WKvO.shape[0] - 1, 2):\n Os4s = WKvO[YRbF + 1] + yKcO\n LVAh[yKcO:Os4s] = chr(WKvO[YRbF])\n yKcO = Os4s\n return LVAh",
"def cyNK(WKvO, exwG):\n LVAh = oyIN.empty(exwG, dtype=str)\n ... | [
"0.6929719",
"0.6918321",
"0.67878634",
"0.6695888",
"0.6662251",
"0.6662251",
"0.66099113",
"0.65435743",
"0.63826126",
"0.6357006",
"0.63317657",
"0.6298634",
"0.6294648",
"0.6289889",
"0.6241154",
"0.62138104",
"0.6197218",
"0.61937124",
"0.6181403",
"0.6177474",
"0.617100... | 0.5971708 | 35 |
Converts a string to an array of characters. | def XFw0(vIwR):
return [Z9rn for Z9rn in vIwR] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dmPm(KCHu):\n return [ord(WKvO) for WKvO in list(KCHu)]",
"def d2zI(UOVU: str) -> list:\n XyLZ = 8\n gLiZ = []\n for YRbF in range(0, len(UOVU), XyLZ):\n hcXw = UOVU[YRbF:YRbF + XyLZ]\n gLiZ.append(hcXw)\n gLiZ = [chr(int(Npgh, base=2)) for Npgh in gLiZ]\n return gLiZ",
"def... | [
"0.7620654",
"0.71475035",
"0.70636046",
"0.70128506",
"0.6959961",
"0.69395185",
"0.6851605",
"0.6675013",
"0.666837",
"0.6663439",
"0.6569223",
"0.6551445",
"0.6521457",
"0.6429542",
"0.64209217",
"0.63295853",
"0.629926",
"0.6294861",
"0.6196159",
"0.6188683",
"0.6158546",... | 0.5473721 | 63 |
Converts an array of characters to a string. | def GDMi(qw7D):
return ''.join(qw7D) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EqGc(ezWE):\n return ezWE.tostring().decode('ascii')",
"def yf2C(vOPP):\n return ''.join(vOPP)",
"def nXhW(nPrm):\n return [''.join(AUCB.alphabet.from_indices(Ty9i)) for Ty9i in nPrm]",
"def _e6A(KCHu):\n return ', '.join(KCHu)",
"def I9kP(ezWE):\n o9EA = ''\n for jzdc in ezWE:\n ... | [
"0.76445407",
"0.74537563",
"0.72127426",
"0.7187407",
"0.70950776",
"0.7027693",
"0.6960164",
"0.6960164",
"0.6795682",
"0.6765551",
"0.6674405",
"0.6660984",
"0.6655374",
"0.66324824",
"0.6459306",
"0.64368594",
"0.64256763",
"0.637115",
"0.6296227",
"0.62912226",
"0.628088... | 0.5820699 | 44 |
Tests, that an empty username is generated. | def mp0b(YKHO, RKZW):
RKZW.return_value = 'test_value'
ZMzz = hq_r()
nPrm = {'first_name': 'TestName'}
Cc00 = ZMzz.validate(nPrm)
YKHO.assertEqual(Cc00['username'], 'test_value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l0Ub(YKHO):\n YKHO.assertEqual(mv1M.valid_username(''), False)",
"def wZzT(YKHO):\n YKHO.assertEqual(mv1M.valid_username(None), False)",
"def _Poq(YKHO):\n CBIr = mv1M()\n no2R = CBIr.add('', 'password')\n YKHO.assertEquals(mv1M.ERR_BAD_USERNAME, no2R)",
"def rPQY(YKHO):\n geh0 = YKHO.c... | [
"0.83802944",
"0.791663",
"0.77048033",
"0.77023417",
"0.7686954",
"0.7669131",
"0.7649428",
"0.7544108",
"0.7421685",
"0.7396205",
"0.73685014",
"0.7331769",
"0.7320086",
"0.7295633",
"0.71968293",
"0.71906763",
"0.71872205",
"0.7185858",
"0.7183818",
"0.7126047",
"0.7108615... | 0.703056 | 28 |
Checks if the subtree of a given node is a valid BST | def C76z(YKHO, Q6kx):
if Q6kx is None:
return True
return YKHO.__is_subtree_lesser(Q6kx.left, Q6kx.val) and YKHO.__is_subtree_greater(Q6kx.right, Q6kx.val) and YKHO.__is_bst(Q6kx.left) and YKHO.__is_bst(Q6kx.right) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QINT(Q6kx):\n return r88K(Q6kx, float('-inf'), float('inf'))",
"def QINT(tk5Y):\n if tk5Y is None:\n return True\n return blWg.is_subtree_lesser_than(tk5Y.left, tk5Y.data) and blWg.is_subtree_greater_than(tk5Y.right, tk5Y.data) and blWg.is_valid_binary_search_tree(tk5Y.left) and blWg.is_valid... | [
"0.797242",
"0.7685322",
"0.76201123",
"0.7563911",
"0.7526104",
"0.74847317",
"0.7432861",
"0.73751163",
"0.73307097",
"0.7289094",
"0.7287178",
"0.723974",
"0.72311455",
"0.7202819",
"0.7149181",
"0.7109935",
"0.70570177",
"0.7055863",
"0.7043505",
"0.7036371",
"0.70225775"... | 0.7486602 | 5 |
Load the pretrained model in teacher detector. | def EBse(YKHO, pmON=None):
vauY = Nh79(YKHO.teacher, pmON, map_location='cpu') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ZdQ():\n ZGE9 = _Fei.DISTILL.TEACHER_NAME\n C3ST = Uvix.get(ZGE9)()\n tO9_ = C3ST.load_state_dict(ht2j.load(_Fei.DISTILL.TEACHER_PRETRAINED_PATH, map_location=lambda S8SU, hksT: S8SU), strict=False)\n G9jH.info(tO9_)\n return C3ST",
"def Y7RH(YKHO):\n for nPrm in YKHO.datasets:\n fo... | [
"0.7346296",
"0.7186048",
"0.7151525",
"0.7114447",
"0.70950836",
"0.7083838",
"0.70145184",
"0.70002806",
"0.6972404",
"0.68988454",
"0.68376005",
"0.6827248",
"0.6798334",
"0.67975867",
"0.67859644",
"0.67807376",
"0.6775411",
"0.6738764",
"0.6738764",
"0.6734799",
"0.67347... | 0.6495361 | 37 |
Extract features from images. | def PSlE(YKHO, xkjI):
return YKHO.student.extract_feat(xkjI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def carQ(YKHO, xkjI):\n xkjI = YKHO.__build_image_data(xkjI)\n bySB = YKHO.model.predict(xkjI)\n return bySB",
"def PSlE(YKHO, xkjI):\n return YKHO.model_t.extract_feat(xkjI)",
"def q2CL(YKHO, xkjI, dsE5=False):\n LyKa = []\n for VXjJ in xkjI:\n if type(VXjJ) == str:\n if VX... | [
"0.8190258",
"0.8118311",
"0.79927695",
"0.78420246",
"0.77831715",
"0.7770461",
"0.7768913",
"0.7747594",
"0.77360094",
"0.7722988",
"0.7695102",
"0.7680862",
"0.76705796",
"0.76602435",
"0.7641872",
"0.76346314",
"0.762112",
"0.75670666",
"0.7545018",
"0.7535292",
"0.751504... | 0.8161821 | 1 |
Extracts the centroid of a POI that is represented as a polygon. | def jmE4(YKHO, Xw7a):
W0Eb = Xw7a.split('|')
w0Ry = [(float(Bg8h.split(',')[1]), float(Bg8h.split(',')[0])) for Bg8h in W0Eb]
e6ux = rSWe(w0Ry).centroid
return (e6ux.y, e6ux.x) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(YKHO):\n return YKHO.polygon.centroid",
"def kJGo(_g9D):\n pass",
"def e6ux(j5tF):\n pEuX, ESjr = zip(*j5tF)\n return (sum(pEuX) / len(pEuX), sum(ESjr) / len(ESjr))",
"def YCDA(j5tF):\n VHcY = j5tF.centroid.x\n NqqX = j5tF.centroid.y\n return (VHcY, NqqX)",
"def IBzD(_g9D):\n ... | [
"0.7566181",
"0.7509912",
"0.74643815",
"0.73959213",
"0.73341024",
"0.73040473",
"0.7245907",
"0.72223693",
"0.71993506",
"0.7182215",
"0.71554345",
"0.7104073",
"0.7084059",
"0.7068467",
"0.7027863",
"0.6915452",
"0.688231",
"0.68187577",
"0.68132216",
"0.6768033",
"0.67318... | 0.76119334 | 0 |