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 |
|---|---|---|---|---|---|---|
return a usermodifiable plugin setting. | def o59G(YKHO, id):
return KNMi.getSetting(id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qr55(YKHO):\n return YKHO._user_settings",
"def OO1R():\n OO1R = kZw_.context.preferences.addons[mWFP].preferences\n return OO1R",
"def gCuF():\n return v083()[1]",
"def _A5X(YKHO) -> h8nf[Xyn1]:\n return None",
"def _A5X(YKHO) -> h8nf[Xyn1]:\n return None",
"def vNes(YKHO, t0qN, k7... | [
"0.6594315",
"0.63958514",
"0.63856536",
"0.63530064",
"0.63530064",
"0.632438",
"0.62978953",
"0.61703277",
"0.6154525",
"0.6122752",
"0.5982431",
"0.594215",
"0.58979535",
"0.589158",
"0.58614314",
"0.584904",
"0.58471745",
"0.5815053",
"0.58142775",
"0.5788841",
"0.5753671... | 0.61951405 | 7 |
Function that loads the instance of the chain from a file. | def tyeH(YKHO, Ux0P='test'):
nUeQ = open(Ux0P + '.txt', 'r')
Sds3 = t2lc.load(nUeQ)
YKHO.N = Sds3.N
YKHO.m = Sds3.m
YKHO.R = Sds3.R
YKHO.a = Sds3.a
YKHO.force = Sds3.force
YKHO.Delta = Sds3.Delta
YKHO.n = Sds3.n
YKHO.beta = Sds3.beta
YKHO.m0 = Sds3.m0
YKHO.mu = Sds3.mu
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO, Ux0P=None):\n if Ux0P is None:\n Ux0P = LeXR.DEFAULT_CHAIN_DUMP_FILENAME\n with open(Ux0P, 'r') as eNCK:\n eNCK = _1kr(eNCK)",
"def tyeH(YKHO, Ux0P):\n EwLo = open(Ux0P, 'rb')\n YKHO.production_rules = t2lc.load(EwLo)\n YKHO.unitrelation = t2lc.load(EwLo)\n YKHO.lab... | [
"0.7297373",
"0.6743561",
"0.6719113",
"0.6674942",
"0.6601602",
"0.65875155",
"0.658136",
"0.65740955",
"0.65287006",
"0.6510903",
"0.6477763",
"0.64765435",
"0.64707905",
"0.6457832",
"0.6452281",
"0.64499456",
"0.64326555",
"0.6415128",
"0.64141405",
"0.64132404",
"0.64089... | 0.69252604 | 1 |
Get time difference for one index step in self.data assuming uniform time steps. | def s3GQ(YKHO):
JRYC = YKHO.data[1, -1] - YKHO.data[0, -1]
return JRYC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _eoL(YKHO, d6pt):\n return YKHO.function[d6pt] - YKHO.function[d6pt - 1]",
"def dbXs(YKHO) -> h8nf[float]:\n JRYC = None\n if len(YKHO.time) > 1 and YKHO.is_equidistant:\n JRYC = (YKHO.time[1] - YKHO.time[0]).total_seconds()\n return JRYC",
"def C79Q(YKHO):\n return YKHO.fid['/PRODUCT... | [
"0.6904996",
"0.6823715",
"0.6719912",
"0.66179395",
"0.65868384",
"0.65379906",
"0.64149296",
"0.628704",
"0.628704",
"0.6260789",
"0.6260239",
"0.62280893",
"0.61737454",
"0.61193305",
"0.6116847",
"0.60995185",
"0.60741377",
"0.607013",
"0.6028518",
"0.6027731",
"0.6007085... | 0.7689221 | 0 |
Function measuring the total kinetic energy for all times in the simulation (t_measure is None) or for one particular time t_measure. In the rescaled equation of motion the kinetic energy is calculated by E_kin = 0.5(m/m0)v2, where m0 is the base mass used for the time scaling parameter beta. Returns | def kMoP(YKHO, alLe=None):
assert YKHO.data is not None
ITS7 = YKHO.get_time()
ywwl = YKHO.get_N()
g3eu = YKHO.sim_chain.m0
if alLe is not None:
or8S = YKHO._find_index_for_time(alLe)
ojhJ = YKHO.data[or8S, ywwl:2 * ywwl]
kQKO = YKHO.sim_chain.m
np1B = 0.5 * oyIN.sum(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHBu(YKHO, alLe=None):\n assert YKHO.data is not None\n ITS7 = YKHO.get_time()\n ywwl = YKHO.get_N()\n g3eu = YKHO.sim_chain.m0\n if alLe is not None:\n or8S = YKHO._find_index_for_time(alLe)\n ojhJ = YKHO.data[or8S, ywwl:2 * ywwl]\n kQKO = YKHO.sim_chain.m\n PCaz = 0... | [
"0.8105596",
"0.7505201",
"0.7173598",
"0.64484125",
"0.63278216",
"0.59436506",
"0.5919195",
"0.59171844",
"0.58279824",
"0.55792224",
"0.55198205",
"0.550474",
"0.55004984",
"0.5450113",
"0.5446609",
"0.54263586",
"0.5424931",
"0.54099715",
"0.5391762",
"0.53913695",
"0.532... | 0.8812414 | 0 |
Function measuring the total kinetic energy for all times in the simulation (t_measure is None) or for one particular time t_measure. In the rescaled equation of motion the kinetic energy is calculated by E_kin = 0.5(m/m0)v2, where m0 is the base mass used for the time scaling parameter beta. Returns | def fHBu(YKHO, alLe=None):
assert YKHO.data is not None
ITS7 = YKHO.get_time()
ywwl = YKHO.get_N()
g3eu = YKHO.sim_chain.m0
if alLe is not None:
or8S = YKHO._find_index_for_time(alLe)
ojhJ = YKHO.data[or8S, ywwl:2 * ywwl]
kQKO = YKHO.sim_chain.m
PCaz = 0.5 * oyIN.mult... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kMoP(YKHO, alLe=None):\n assert YKHO.data is not None\n ITS7 = YKHO.get_time()\n ywwl = YKHO.get_N()\n g3eu = YKHO.sim_chain.m0\n if alLe is not None:\n or8S = YKHO._find_index_for_time(alLe)\n ojhJ = YKHO.data[or8S, ywwl:2 * ywwl]\n kQKO = YKHO.sim_chain.m\n np1B = 0... | [
"0.881432",
"0.7503709",
"0.7174916",
"0.6449701",
"0.6328805",
"0.59452975",
"0.592042",
"0.5919419",
"0.58276355",
"0.55787253",
"0.5522134",
"0.55065703",
"0.5500261",
"0.54508346",
"0.54491395",
"0.5427619",
"0.5425175",
"0.54099274",
"0.5392322",
"0.5391076",
"0.5325635"... | 0.8107577 | 1 |
Function calculating the relative error in energy conservation between the start and the end of the simulation. Returns | def UhKs(YKHO):
assert YKHO.data is not None
mRU2 = YKHO.measure_total_energy(YKHO.t0)
w401 = YKHO.measure_total_energy(YKHO.t1)
P1dF = abs(1.0 - mRU2 / w401)
return P1dF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qixE(YKHO):\n YKHO.e_of_e = YKHO.azimuth_error - YKHO.altitude_error\n return YKHO.e_of_e",
"def KjnH(YKHO):\n YKHO.network.index_nodes()\n YKHO._calculate_dist()\n bGrB, rrz_ = YKHO._relative_error()\n bGrB, CGeq = YKHO._absolute_error()\n return (CGeq, rrz_)",
"def v_6P(YKHO):\n h... | [
"0.6875453",
"0.6840907",
"0.65401095",
"0.64742965",
"0.646986",
"0.64060026",
"0.63589954",
"0.63352466",
"0.6291437",
"0.62892836",
"0.6278621",
"0.62616163",
"0.6260354",
"0.6234737",
"0.6232844",
"0.62310743",
"0.6223826",
"0.6219136",
"0.61880994",
"0.61745226",
"0.6158... | 0.8447843 | 0 |
Function that finds the time for which the wave reaches the end of the chain. This only works if the wave is travelling from left to right and if there are no other disturbances. Returns | def SqMb(YKHO):
SBAe = YKHO.get_bead_velocity(YKHO.get_N() - 1)
waS5 = oyIN.flatnonzero(SBAe)
if waS5.size == 0:
qmLP.warn('The wave did not exit the chain or it could not be determined.')
return oyIN.nan
else:
aVwp = oyIN.min(waS5)
ITS7 = YKHO.get_time()
lnaz = I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MJWj(YKHO) -> float:\n try:\n return YKHO.times[-1]\n except IndexError:\n return 0.0",
"def nrYS(YKHO):\n return YKHO.time_step_to_enqueue - YKHO.time_entered",
"def dbXs(YKHO) -> h8nf[float]:\n JRYC = None\n if len(YKHO.time) > 1 and YKHO.is_equidistant:\n JRYC = (YKHO... | [
"0.6803967",
"0.66370136",
"0.612646",
"0.6028129",
"0.59619063",
"0.59619063",
"0.59619063",
"0.58898365",
"0.5848702",
"0.58400786",
"0.58278865",
"0.58025205",
"0.578827",
"0.57436454",
"0.5735698",
"0.5734913",
"0.57159877",
"0.56937367",
"0.56919426",
"0.5689621",
"0.564... | 0.7566171 | 0 |
Verify the password entered as the user's returns True if it is. | def sNjs(YKHO, jTXt):
return z8jj(YKHO.password_hash, jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sNjs(YKHO, jTXt):\n return YKHO.PASS == jTXt",
"def sNjs(YKHO, jTXt):\n return YKHO.PASSWORD == jTXt",
"def EvfH(YKHO, jTXt):\n return YKHO.password == jTXt",
"def tWk5(YKHO, jTXt):\n if YKHO.password_regex.search(jTXt) is not None:\n print('Correct password')\n return True\n ... | [
"0.8476461",
"0.83159363",
"0.81507164",
"0.8098722",
"0.80463326",
"0.7978972",
"0.79780746",
"0.7898308",
"0.786349",
"0.78121054",
"0.77694076",
"0.7753661",
"0.7746007",
"0.7729557",
"0.7712195",
"0.76998615",
"0.768733",
"0.76785",
"0.76726246",
"0.76444733",
"0.76362795... | 0.7765312 | 15 |
Test retrieve list the resgate to authenticated user | def eiPv(YKHO):
EWaJ(user=YKHO.user, value=500)
EWaJ(user=YKHO.user, value=200)
geh0 = YKHO.client.get(tUPd)
pJqT = E_KI.objects.all().order_by('quantity')
ZMzz = I6z0(pJqT, many=True)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(geh0.data, ZMzz.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HtHB(YKHO):\n pass",
"def eejY(YKHO, CBIr=None):\n QePW = YKHO.factory.get(YKHO.list_url, format='json')\n rliA(QePW, CBIr)\n _hkX = YKHO.list_view(QePW)\n _hkX.render()\n return _hkX",
"def B4aC(YKHO):\n YKHO.client.credentials(HTTP_AUTHORIZATION='Token ' + YKHO.token_user_authlist.ke... | [
"0.757011",
"0.7447695",
"0.74397236",
"0.7430594",
"0.74106807",
"0.7409776",
"0.73974997",
"0.73469055",
"0.72892547",
"0.7219288",
"0.71494305",
"0.7131195",
"0.70773554",
"0.7071965",
"0.70706135",
"0.70423615",
"0.70396",
"0.70183665",
"0.70000446",
"0.6991642",
"0.69740... | 0.7997639 | 0 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, PhL6: ConfigEntry):
yT1k = await ajET.config_entries.async_unload_platforms(PhL6, aprE)
if yT1k:
cbwj = ajET.data[Sugg]
cbwj.remove_entry(PhL6)
if cbwj.is_idle():
del ajET.data[Sugg]
return yT1k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k",
"async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True",
"async def async_unload_entry(ajET: HomeAssis... | [
"0.697284",
"0.6888074",
"0.6779855",
"0.6747459",
"0.6689002",
"0.6657831",
"0.66162205",
"0.65925974",
"0.65595686",
"0.65411645",
"0.6507643",
"0.6507643",
"0.6507643",
"0.6507643",
"0.64977276",
"0.64931643",
"0.6486601",
"0.6486601",
"0.6486601",
"0.6486601",
"0.6469397"... | 0.6603433 | 7 |
Create a fuzzer stats object from a file object (i.e., one created by `open`ing a fuzzer_stats file). | def FIMM(YKHO, WNXK):
eQSh = dict()
YKHO._stats = dict()
for zFiD in WNXK:
QmN4 = next((njyT.match(zFiD).groupdict() for njyT in Zp0n if njyT.match(zFiD)), dict())
eQSh.update(QmN4)
if not eQSh:
raise Exception('Empty fuzzer_stats file `%s`' % WNXK.name)
for G1Hx, Ty9i in eQS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aBOe(Emd4, qaEx, gxIb, Jiqn):\n z39Z = Emd4.from_files((qaEx,), gxIb, Jiqn)\n return z39Z",
"def hVjk(Emd4, eHNT):\n raise NotImplementedError('ScalableRedisLocalBloomFilter not support fromfile')",
"def aBOe(Emd4, o1P6):\n th4N = Emd4(o1P6.read())\n return th4N",
"def eQSh(YKHO, nUeQ, **x... | [
"0.59987247",
"0.5713597",
"0.56680816",
"0.56616545",
"0.56160724",
"0.5563072",
"0.5530028",
"0.54662895",
"0.54297715",
"0.5404788",
"0.537576",
"0.535557",
"0.53377",
"0.5336782",
"0.5324666",
"0.5320681",
"0.5294768",
"0.52943027",
"0.52939016",
"0.5271914",
"0.5267865",... | 0.78831124 | 0 |
Open text file and get a random quote | def zlaX():
with open('./data/quotes.txt', 'r') as PenU:
AEf6 = PenU.read().rstrip('\n').split('\n\n')
NCC9 = Acvy(AEf6)
return NCC9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTcu(Ux0P):\n NCC9 = Tyg0(Ux0P)\n jneV = NCC9.split('~')\n if len(jneV) > 0:\n return jneV\n else:\n return [\"OH MY GOD WHO'S FLYING THIS THING!?!!\", '..oh right, that would be me.']",
"def TeUK(enbE=None):\n if enbE is None:\n enbE = Hy7s.path.join(Hy7s.path.dirname(Hy7... | [
"0.7541011",
"0.7301967",
"0.65078884",
"0.6476318",
"0.64463925",
"0.64085835",
"0.6345679",
"0.6206244",
"0.6189888",
"0.61851126",
"0.6156133",
"0.6156133",
"0.6098664",
"0.59371656",
"0.5931141",
"0.5884301",
"0.58657694",
"0.5854964",
"0.5853227",
"0.5845242",
"0.5807402... | 0.80525166 | 0 |
initializes an instance of MaskedDict. | def FIMM(YKHO, J8oL=None, **B2fa):
AxF0 = {}
if len(B2fa) > 0:
AxF0 = YKHO._mask_dict(B2fa)
if isinstance(J8oL, d6UZ):
super().__init__(YKHO._unify(J8oL, AxF0))
elif isinstance(J8oL, (dict, b34W)):
ycBG = {}
for H5ew, BWXx in J8oL.items():
if g3EQ.should_mask(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohsk(YKHO):\n try:\n YKHO.maskMap = dict(list(zip(YKHO.inds, list(range(len(YKHO.inds))))))\n YKHO.maskSet = set(YKHO.inds)\n except Exception as error:\n print('failed in createMaskDictionary', P1dF)",
"def ltmU(YKHO, BWXx):\n return d6UZ(BWXx)",
"def h4aS(YKHO, HHDG, YlTe=Fa... | [
"0.7080748",
"0.6873385",
"0.6763534",
"0.62099147",
"0.6161549",
"0.58566666",
"0.581862",
"0.5805196",
"0.5759827",
"0.57326835",
"0.5640996",
"0.56272954",
"0.5606814",
"0.5573266",
"0.55711085",
"0.5569299",
"0.5569299",
"0.55552834",
"0.55372727",
"0.553018",
"0.55181307... | 0.69754046 | 1 |
masks all required keys of given object. if given object is not a dict or Headers or a collection of those objects, it returns the same input value. | def jf9O(YKHO, BWXx):
if isinstance(BWXx, b34W):
return YKHO._mask_headers(BWXx)
elif isinstance(BWXx, dict):
return YKHO._mask_dict(BWXx)
elif isinstance(BWXx, picN):
return YKHO._mask_list(BWXx)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HmnA(YKHO, YEnM):\n fRc9 = ['file_path', 'Data', 'raw_block_data', 'Reserved1', 'raw']\n if isinstance(YEnM, list):\n return dict([a1PO for a1PO in YEnM if a1PO[0] not in fRc9])\n elif isinstance(YEnM, dict):\n return {G1Hx: YKHO.__filter(Ty9i) for G1Hx, Ty9i in YEnM.items() if G1Hx not ... | [
"0.5934604",
"0.5906701",
"0.57353526",
"0.5728575",
"0.568431",
"0.544349",
"0.5416225",
"0.54113907",
"0.5407144",
"0.53866047",
"0.53618664",
"0.53585476",
"0.53103936",
"0.5291394",
"0.52232087",
"0.5208283",
"0.5191213",
"0.51746154",
"0.5168266",
"0.51556057",
"0.513415... | 0.63471526 | 0 |
masks all required keys of given dict. | def ltmU(YKHO, BWXx):
return d6UZ(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QFpg(YKHO, cmPJ):\n H6Sk = {G1Hx: cmPJ[G1Hx] for G1Hx in YKHO._keys if G1Hx in cmPJ}\n return H6Sk",
"def _RZO(Op6c, ULa9):\n g6kh = {}\n for H5ew in Op6c:\n if H5ew in ULa9:\n g6kh[H5ew] = Op6c[H5ew]\n return g6kh",
"def XbYF(VIkw, ZHfW):\n if VIkw is None:\n VIk... | [
"0.70720047",
"0.6939193",
"0.6886857",
"0.6400166",
"0.63745916",
"0.6341682",
"0.63234985",
"0.626198",
"0.6232509",
"0.6179334",
"0.6176964",
"0.6052771",
"0.5942515",
"0.5895701",
"0.5892139",
"0.58912116",
"0.58583605",
"0.5822355",
"0.5821932",
"0.57996243",
"0.5797359"... | 0.52084357 | 73 |
Initialize vocabulary from file. | def pGdo(GEQi):
if qJi5.Exists(GEQi):
VboW = []
with qJi5.GFile(GEQi, mode='rb') as eHNT:
VboW.extend(eHNT.readlines())
VboW = [zFiD.strip() for zFiD in VboW]
CtWL = dict([(WKvO, LVAh) for LVAh, WKvO in enumerate(VboW)])
return (CtWL, VboW)
else:
raise... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t2__():\n global vocabulary_list, vocabulary_dict\n bb8G = []\n mX4d = {}\n with open(Ow9R, 'r') as eHNT:\n for d6pt, zFiD in enumerate(eHNT):\n zFiD = zFiD.strip()\n mX4d[zFiD] = d6pt\n bb8G.append(zFiD)",
"def FIMM(YKHO, nUeQ):\n with open(nUeQ, 'r') a... | [
"0.77525496",
"0.76920307",
"0.76315725",
"0.7592861",
"0.75801814",
"0.75644326",
"0.744741",
"0.7426106",
"0.7416072",
"0.71661425",
"0.71474075",
"0.7117412",
"0.70894724",
"0.7076142",
"0.7025968",
"0.6955337",
"0.69535863",
"0.6949669",
"0.69139093",
"0.69139093",
"0.690... | 0.7466838 | 6 |
Tokenize data file and turn into tokenids using given vocabulary file. This function loads data linebyline from data_path, calls the above sentence_to_token_ids, and saves the result to target_path. See comment for sentence_to_token_ids on the details of tokenids format. | def luxy(i0XC, lQDD, GEQi, b0j5=None, ocBH=True):
if not qJi5.Exists(lQDD):
print('Tokenizing data in %s' % i0XC)
CtWL, bGrB = pGdo(GEQi)
with qJi5.GFile(i0XC, mode='rb') as KAfx:
with qJi5.GFile(lQDD, mode='w') as lSVr:
ewCu = 0
for zFiD in KAfx:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def luxy(i0XC, lQDD, GEQi):\n if not qJi5.Exists(lQDD):\n print('Tokenizing data in %s' % i0XC)\n CtWL, bGrB = pGdo(GEQi)\n with qJi5.GFile(i0XC, mode='rb') as KAfx:\n with qJi5.GFile(lQDD, mode='w') as lSVr:\n ewCu = 0\n for zFiD in KAfx:\n ... | [
"0.8816745",
"0.8454071",
"0.8386838",
"0.8367866",
"0.8281572",
"0.81035906",
"0.73665535",
"0.7266313",
"0.7236026",
"0.7134199",
"0.70931756",
"0.7089215",
"0.7089215",
"0.70587397",
"0.7038851",
"0.69479877",
"0.6746699",
"0.67301655",
"0.6648532",
"0.6557762",
"0.6437708... | 0.84504086 | 2 |
Version of binary search the searches a list tweets and returns the index of the tweet with datetime closest to targetDate. If no tweet has the same datetime, then it returns the index of the tweet with the closest datetime that is less than targetDate. | def rcVU(aWDa, sFbQ, yKcO, Os4s):
if yKcO >= Os4s:
print('closest? %d' % (yKcO - 1))
return yKcO - 1
Hpmo = int((yKcO + Os4s) / 2)
BWXx = aWDa[Hpmo].created_at
if BWXx > sFbQ:
return rcVU(aWDa, sFbQ, Hpmo + 1, Os4s)
if BWXx < sFbQ:
return rcVU(aWDa, sFbQ, yKcO, Hpmo -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ixQ9(YKHO, hE6x, azyF):\n if not hE6x:\n raise UAju.ParserError('Input parameter datetime_list length is zero. Required parameters: [datetime.datetime], datetime.datetime')\n kVxi = [bTKY for bTKY in hE6x if bTKY < azyF]\n if not kVxi:\n raise UAju.ParserError('work_list length is zero. ... | [
"0.6240756",
"0.5805783",
"0.57438844",
"0.57079625",
"0.5690412",
"0.56784815",
"0.56695646",
"0.5656176",
"0.56467867",
"0.56262356",
"0.5610325",
"0.5540843",
"0.5538456",
"0.5527916",
"0.54886323",
"0.54868394",
"0.5458419",
"0.54359776",
"0.5407455",
"0.53993624",
"0.536... | 0.84336317 | 0 |
Computes the accuracy over the k top predictions for the specified values of k | def AOzf(hlel, pan_):
with ht2j.no_grad():
cii7 = hlel > 0.5
cIIR = (pan_ == 1).nonzero(as_tuple=True)
t0MW = cii7[cIIR]
yun7 = t0MW.cpu().numpy().sum()
Uoxh = t0MW.size(0)
return (float(yun7), Uoxh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)",
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\... | [
"0.8331134",
"0.82850444",
"0.82384115",
"0.8230215",
"0.82205373",
"0.8186799",
"0.81852037",
"0.8175596",
"0.8171878",
"0.8170227",
"0.81669253",
"0.8164907",
"0.816416",
"0.8162547",
"0.8162547",
"0.8162547",
"0.8162547",
"0.8162547",
"0.8162547",
"0.8162547",
"0.8162547",... | 0.0 | -1 |
Computes the accuracy over the k top predictions for the specified values of k | def dWn_(hlel, pan_):
with ht2j.no_grad():
cCrA = hlel[:, 0]
Crrw = pan_[:, 0]
OS6F, Wbxj, bGrB = v5W1(Crrw, cCrA)
B4ss = zUeS(OS6F, Wbxj)
return (OS6F, Wbxj, B4ss) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)",
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\... | [
"0.8330614",
"0.8285004",
"0.82375455",
"0.8229273",
"0.82195294",
"0.8185992",
"0.8184316",
"0.8174685",
"0.817106",
"0.8169587",
"0.8166069",
"0.8164076",
"0.816332",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176... | 0.0 | -1 |
find the key(s) as a list given a value | def mexE(YKHO, BWXx):
return [ZfUD[0] for ZfUD in YKHO.items() if ZfUD[1] == BWXx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TJT2(zfQM, SEXf):\n QLsI = list()\n Rzsj = zfQM.items()\n for ZfUD in Rzsj:\n if SEXf in ZfUD[1]:\n QLsI.append(ZfUD[0])\n return QLsI",
"def gnZJ(YKHO, H5ew, BWXx=None):\n EXD7 = []\n sjXb = YKHO.__keyObjs\n u5R_ = H5ew + '___'\n for DEPe in sjXb:\n if vIwR.f... | [
"0.7294867",
"0.7202516",
"0.67429525",
"0.6727987",
"0.6690367",
"0.6680713",
"0.6617256",
"0.65429217",
"0.6519446",
"0.6498922",
"0.64938074",
"0.647499",
"0.63790405",
"0.6359644",
"0.6346069",
"0.6284425",
"0.6282641",
"0.6272108",
"0.62660825",
"0.62537044",
"0.6244109"... | 0.68743443 | 2 |
The logs destination table name in LogAnalytics. | def duPQ(YKHO) -> str:
return qe4Y.get(YKHO, 'destination_table') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GTA_() -> str:\n pass",
"def GTA_(YKHO) -> str:\n return YKHO.model._meta.db_table",
"def GTA_(YKHO):\n return YKHO._new_table.name",
"def JNtd(YKHO) -> str:\n return HEOD.get(YKHO, 'destinationName')",
"def tyNF(YKHO):\n return YKHO._table_name",
"def GTA_(YKHO) -> qe4Y.Output[str]:\n... | [
"0.65109307",
"0.6300741",
"0.6298458",
"0.6218483",
"0.620911",
"0.61835194",
"0.6166983",
"0.6013469",
"0.5985346",
"0.5982442",
"0.59794414",
"0.59794414",
"0.59794414",
"0.59489053",
"0.5928267",
"0.58581996",
"0.58544797",
"0.58007693",
"0.5798249",
"0.5777849",
"0.57715... | 0.78806025 | 0 |
The kind of the data connector Expected value is 'AmazonWebServicesS3'. | def eJTR(YKHO) -> str:
return qe4Y.get(YKHO, 'kind') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n return 's3_file'",
"def pGmv(YKHO) -> h8nf[qe4Y.Input['FlowSourceFlowConfigSourceConnectorPropertiesS3Args']]:\n return qe4Y.get(YKHO, 's3')",
"def pGmv(YKHO) -> h8nf[qe4Y.Input['FlowDestinationFlowConfigDestinationConnectorPropertiesS3Args']]:\n return qe4Y.get(YKHO, 's3')",
"def ... | [
"0.7101592",
"0.6382904",
"0.62786746",
"0.6172987",
"0.5983033",
"0.5960209",
"0.5882715",
"0.5785173",
"0.56921196",
"0.56104594",
"0.55726856",
"0.5519479",
"0.5505047",
"0.54568756",
"0.54085416",
"0.5391368",
"0.5383419",
"0.538221",
"0.53737456",
"0.5356605",
"0.5336429... | 0.0 | -1 |
The Aws Role Arn that is used to access the Aws account. | def axXk(YKHO) -> str:
return qe4Y.get(YKHO, 'role_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def SQQ_(YKHO) -> str:\n return qe4Y.get(YKHO, 'iam_role_arn')",
"def axXk(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def ax... | [
"0.7859716",
"0.7818562",
"0.7792153",
"0.7790065",
"0.7790065",
"0.7646814",
"0.7646814",
"0.7646814",
"0.7646814",
"0.75785947",
"0.754369",
"0.7472943",
"0.7472943",
"0.7425578",
"0.7425578",
"0.730205",
"0.7194245",
"0.71664315",
"0.69302464",
"0.6870352",
"0.6862583",
... | 0.825717 | 0 |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.79189175",
"0.79189175",
"0.786668",
"0.786668",
"0.786668",
"0.786668",
"0.786668",
"0.7708302",
"0.7553687",
"0.7282897",
"0.70600027",
"0.6980107",
"0.69215655",
"0.6869818",
"0.67290455",
"0.67049664",
"0.66546607",
"0.6647418",
"0.6551141",
"0.65431774",
"0.65431774",... | 0.6639902 | 47 |
Gets a data connector. | def ebyk(jpow: Optional[str]=None, TRLE: Optional[str]=None, vSUp: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> go2q:
rYZf = dict()
rYZf['dataConnectorId'] = jpow
rYZf['resourceGroupName'] = TRLE
rYZf['workspaceName'] = vSUp
VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SQvy(YKHO):\n if '_connector' not in YKHO.__dict__:\n from meerschaum.connectors.parse import parse_instance_keys\n w2B8 = parse_instance_keys(YKHO.connector_keys)\n if w2B8:\n YKHO._connector = w2B8\n else:\n return None\n return YKHO._connector",
"def... | [
"0.716545",
"0.69513404",
"0.6916345",
"0.6474228",
"0.62699723",
"0.59994715",
"0.5985978",
"0.59775656",
"0.5926097",
"0.59190464",
"0.57951444",
"0.5786412",
"0.57449067",
"0.57268184",
"0.5652334",
"0.5602421",
"0.55951303",
"0.5580157",
"0.5568359",
"0.5560098",
"0.55547... | 0.5302964 | 38 |
Gets a data connector. | def cpxi(jpow: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str]]=None, vSUp: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[afU6]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SQvy(YKHO):\n if '_connector' not in YKHO.__dict__:\n from meerschaum.connectors.parse import parse_instance_keys\n w2B8 = parse_instance_keys(YKHO.connector_keys)\n if w2B8:\n YKHO._connector = w2B8\n else:\n return None\n return YKHO._connector",
"def... | [
"0.716545",
"0.69513404",
"0.6916345",
"0.6474228",
"0.62699723",
"0.59994715",
"0.5985978",
"0.59775656",
"0.5926097",
"0.59190464",
"0.57951444",
"0.5786412",
"0.57449067",
"0.57268184",
"0.5652334",
"0.5602421",
"0.55951303",
"0.5580157",
"0.5568359",
"0.5560098",
"0.55547... | 0.0 | -1 |
r"""Return Symmetric transfer error for correspondences given the homography matrix. | def Lrw0(lJ9m: torch.Tensor, wruc: torch.Tensor, C7Ls: torch.Tensor, lRRB: bool=True, SGf8: float=1e-08) -> ht2j.Tensor:
if not isinstance(C7Ls, ht2j.Tensor):
raise TypeError(f'H type is not a torch.Tensor. Got {type(C7Ls)}')
if len(C7Ls.shape) != 3 or not C7Ls.shape[-2:] == (3, 3):
raise ValueE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pZS7(MKlR, rVnq, PJWX=True):\n F16R = 1.25\n Xwm_ = 0.95\n aV02 = 3.05\n yx92 = max(abs(rVnq[1] - rVnq[0]), abs(rVnq[2] - rVnq[1]), abs(rVnq[2] - rVnq[0]))\n KuY3 = MKlR[1] / MKlR[0]\n ha76 = MKlR[2] / MKlR[1]\n Fgtw = rVnq[1] - rVnq[0]\n qYhk = rVnq[2] - rVnq[1]\n P1dF = {}\n if ... | [
"0.5850211",
"0.5575032",
"0.5415471",
"0.54094034",
"0.5363411",
"0.53338623",
"0.52439326",
"0.51818657",
"0.5167479",
"0.50386864",
"0.5029029",
"0.5026875",
"0.5023002",
"0.50207406",
"0.49991953",
"0.4997481",
"0.4996831",
"0.49913982",
"0.4975098",
"0.49723813",
"0.4963... | 0.5767665 | 1 |
The position of the bins for the histogram based on the current state. | def Pyrc(YKHO):
if YKHO.hist_x_min is None or YKHO.hist_x_max is None or YKHO.hist_n_bin is None:
return None
if YKHO.x_log:
return oyIN.logspace(oyIN.log10(YKHO.hist_x_min), oyIN.log10(YKHO.hist_x_max), YKHO.hist_n_bin + 1)
else:
return oyIN.linspace(YKHO.hist_x_min, YKHO.hist_x_max... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lwiA(QTBn):\n kGOI, nhBs, AugJ, NMo4, a5GE = QTBn\n xASv, H2v2, TVTK, bGrB, bGrB, bGrB = T8ck.shape\n LVAh = int(H2v2 / 2 + kGOI / fIaK - 1)\n WKvO = int(TVTK / 2 + nhBs / OFw2 - 1)\n return (LVAh, WKvO, AugJ, NMo4, a5GE)",
"def Pyrc(YKHO):\n if YKHO.hist_x_min is None or YKHO.hist_x_max is... | [
"0.6542076",
"0.64838105",
"0.6472693",
"0.6454198",
"0.6454198",
"0.63957804",
"0.6357156",
"0.63331324",
"0.6308721",
"0.61814",
"0.61669534",
"0.6082462",
"0.60565984",
"0.6012493",
"0.5985953",
"0.59749657",
"0.59617686",
"0.59433514",
"0.59186447",
"0.59174275",
"0.58810... | 0.66593826 | 0 |
Gets all the students enrolled at a given discipline. | def EsU9(YKHO, Rf35):
VLXD = cQKn()
for ZfUD in YKHO.__student_repository.get_all():
vODY = str(Rf35) + '.' + str(ZfUD.entity_id)
if not YKHO.__link_repository.find_by_id(vODY) is None:
VLXD.append(ZfUD)
return VLXD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sN9F(YKHO):\n return YKHO._students",
"def QCDc(YKHO, NtEF: str, eOtH: str, bgut: str) -> x1iM[AzJI[str, float]]:\n if not YKHO.validate(username=NtEF, token=eOtH, check_privilege='instructor'):\n raise RuntimeError('User not verified!')\n N1p7 = YKHO._db_connection.cursor()\n N1p7.execute... | [
"0.6636556",
"0.65213585",
"0.64412504",
"0.63758266",
"0.6309053",
"0.60178405",
"0.6000484",
"0.5990565",
"0.58965695",
"0.5857444",
"0.58322364",
"0.5810654",
"0.5789635",
"0.5771224",
"0.57041836",
"0.5665716",
"0.56607765",
"0.56401736",
"0.56319636",
"0.56120855",
"0.56... | 0.8016953 | 0 |
Returns the number of rows | def bAiv(YKHO):
return len(YKHO._data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWGE(YKHO) -> int:\n ...",
"def NwL4(YKHO):\n return len(YKHO.rows)",
"def DR2N(YKHO) -> int:\n return len(YKHO.rows)",
"def DR2N(YKHO) -> int:\n return len(YKHO.rows)",
"def NwL4(YKHO):\n return len(YKHO.rows)",
"def _1Ox(YKHO):\n return YKHO._num_rows",
"def SWGE(YKHO):\n ret... | [
"0.9167888",
"0.87361133",
"0.8671115",
"0.8671115",
"0.8664039",
"0.859863",
"0.8573683",
"0.85122824",
"0.84661454",
"0.8450843",
"0.8403553",
"0.83711433",
"0.8354763",
"0.8353423",
"0.8316117",
"0.8315366",
"0.8231687",
"0.81339204",
"0.8110674",
"0.79617697",
"0.79578274... | 0.0 | -1 |
Returns current date_time as a string formatted according to date_time_format | def WbjX(freS):
ppPa = qcWV.now().strftime(freS)
return ppPa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cTxh():\n return qcWV.now().strftime(dDFw)",
"def f1rh():\n return B72W().strftime('%Y%m%d-%H%M%S')",
"def UHhE():\n ppPa = qcWV.now()\n Vip5 = ppPa.strftime('%b-%d-%Y (%H:%M:%S)')\n return Vip5",
"def jT2f() -> qcWV.datetime:\n return qcWV.datetime.now()",
"def Wq7q(YKHO, JRYC):\n ... | [
"0.78290385",
"0.7808572",
"0.7717457",
"0.76274353",
"0.75742733",
"0.75616765",
"0.75522995",
"0.7446897",
"0.7428614",
"0.7423829",
"0.7372298",
"0.7340058",
"0.7332794",
"0.7331382",
"0.7287851",
"0.7236078",
"0.72161525",
"0.7209651",
"0.7204208",
"0.7161558",
"0.7138435... | 0.74127203 | 10 |
Equivalence testing. Includes add options. Uses np.isclose/allclose because of floating point errors. | def xa14(YKHO, Elif):
if YKHO.add_mode != Elif.add_mode:
return False
if not oyIN.isclose(YKHO.add_tol, Elif.add_tol):
return False
if not oyIN.isclose(YKHO.top, Elif.top):
return False
if not oyIN.isclose(YKHO.base, Elif.base):
return False
if YKHO.height != Elif.hei... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tbdk(jzdc, Fg_i):\n return abs(jzdc - Fg_i) < Tbdk.eps",
"def whu6(YKHO):\n pass",
"def te36():\n WKvO = _T_T('float', -10, 10, [3, 3, 1])\n LVAh = _T_T('float', -10, 10, [3, 3, 3, 1])\n Ylbp = oyIN.equal(WKvO, LVAh)\n YEnM.run(res=Ylbp, x=WKvO, y=LVAh)",
"def mct6():\n assert P6bq.e... | [
"0.66884506",
"0.66298187",
"0.6588867",
"0.6521295",
"0.65080017",
"0.64760125",
"0.6457921",
"0.64531416",
"0.64067405",
"0.64042586",
"0.6397953",
"0.63951844",
"0.6378238",
"0.637586",
"0.6370783",
"0.6356843",
"0.6336451",
"0.6333534",
"0.6326138",
"0.63204026",
"0.63084... | 0.59338415 | 61 |
Error raised on `mincount` or `maxcount` mismatch. | def FIMM(YKHO, tO9_, Aofo):
if Aofo:
tO9_ += ' ' + repr(Aofo)
super(Ttqn, YKHO).__init__(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OdU6(YKHO):\n with YKHO.assertRaises(ValueError):\n uNJx.count(column=uNJx.name, distinct=[uNJx.name, uNJx.popularity]).run_sync()",
"def y99A(YKHO):\n if YKHO.__min_range < 0:\n tf1m = 'min_range must be greater than or equal to zero'\n raise ValueError(tf1m)\n elif YKHO.__max_... | [
"0.625764",
"0.59701705",
"0.5904351",
"0.5852577",
"0.5842705",
"0.58019817",
"0.57818514",
"0.5766287",
"0.5730042",
"0.57134247",
"0.564207",
"0.5638233",
"0.5618093",
"0.5579585",
"0.5578919",
"0.5570125",
"0.5550614",
"0.5542382",
"0.5519826",
"0.55096906",
"0.5508919",
... | 0.0 | -1 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO, jDK_=1):
UH90 = oyIN.exp(WKvO)
UH90 = UH90 / oyIN.sum(UH90, axis=jDK_)[:, oyIN.newaxis]
return UH90 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"de... | [
"0.77987385",
"0.7762009",
"0.7761647",
"0.77591646",
"0.76599663",
"0.76599663",
"0.76599663",
"0.76599663",
"0.75852114",
"0.743222",
"0.7408266",
"0.739256",
"0.73593086",
"0.73172486",
"0.7269417",
"0.7262718",
"0.72612756",
"0.72568876",
"0.7230255",
"0.7215012",
"0.7201... | 0.0 | -1 |
Gets the mapping between the quantized itds and their indices in array format. For example, if max_itd was 10 and number of bins are 4, then the mapping is [7.5, 2.5, 2.5, 7.5] so that the itds in [10, 5] get mapped to 7.5, itds in [5, 0] get mapped to 2.5 and so on. | def FwJa(geec, rebk):
c01U = 2 * geec / rebk
return oyIN.array([-geec + (or8S + 0.5) * c01U for or8S in range(rebk)], dtype=oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J8oL(UGeA, tqjD):\n ohsl = A90d.nside2npix(UGeA)\n gLpU = oyIN.zeros(ohsl)\n vEPh = A90d.ang2pix(UGeA, tqjD[:, 1], tqjD[:, 0])\n T6S7, WXkz = oyIN.unique(vEPh, return_counts=True)\n gLpU[T6S7] = WXkz\n gLpU *= float(ohsl) / len(tqjD)\n return gLpU",
"def HjVG(YKHO):\n if YKHO.hpx._ipi... | [
"0.573825",
"0.5602729",
"0.5558952",
"0.5529166",
"0.55139065",
"0.54682636",
"0.5410151",
"0.5392798",
"0.53857505",
"0.5366342",
"0.53211",
"0.5304279",
"0.5264794",
"0.5264794",
"0.5255112",
"0.52435905",
"0.52350354",
"0.523417",
"0.52142906",
"0.5166145",
"0.5109116",
... | 0.7774667 | 0 |
Apply the aggfunc over all record in the pivoted key. | def Pusg(YKHO, H5ew, hkxX, D5gV):
waEm = None
for wEf2 in hkxX:
AIu6 = PRYs.json.decode(wEf2)
waEm = YKHO.func(waEm, AIu6)
if YKHO.is_dict:
dict = {YKHO.aggkey: H5ew}
dict.update(waEm)
else:
dict = {YKHO.aggkey: H5ew, YKHO.aggfunc: waEm}
D5gV.collect(H5ew, PRY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def waEm(YKHO, d7pR):\n Ylbp = {}\n for eHNT, Z9rn in zip(YKHO._key_fields, YKHO._unzip_group_keys()):\n Ylbp[eHNT.name] = Z9rn\n for BNwS, Jyyj, khtY in YKHO._normalize_agg_arg(d7pR):\n Ylbp[BNwS] = YKHO._apply1(Jyyj, khtY)\n return YKHO._parent._fromdata(Ylbp, None)",
"def yHja(WhY1, ... | [
"0.6628297",
"0.63989544",
"0.6041443",
"0.5890193",
"0.58217376",
"0.5793229",
"0.57927704",
"0.57683957",
"0.5751809",
"0.57484484",
"0.558088",
"0.5578804",
"0.556982",
"0.5560431",
"0.5559629",
"0.55526286",
"0.5543373",
"0.55056953",
"0.5423093",
"0.5420336",
"0.54202354... | 0.5772775 | 7 |
Renders the home page which is the CNS of the web app currently, nothing pretty. | def kZiy():
Tuqy = 'append'
U_WY = 'jdbc:postgresql://momentum-db.cgk0xpvhfuev.us-east-2.rds.amazonaws.com:5432/postgres'
GPtr = {'user': 'root', 'password': 'rootroot', 'driver': 'org.postgresql.Driver'}
L03z = QlP4(QePW.form)
ZJe_ = L03z.age.data
D3lj = L03z.email.data
_GU5 = L03z.income_l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')",
"... | [
"0.8199188",
"0.80576104",
"0.80488557",
"0.8033065",
"0.8031662",
"0.7976707",
"0.7973834",
"0.7964061",
"0.79375345",
"0.7927567",
"0.7913349",
"0.79078937",
"0.7893412",
"0.7892316",
"0.7892316",
"0.7884442",
"0.7884442",
"0.7882657",
"0.78776795",
"0.78776795",
"0.7877679... | 0.0 | -1 |
Renders the about page. | def vsuQ():
return TvZl('about.html', title='Tools', year=qcWV.now().year, message='Your application description page.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.80967313 | 27 |
Ensure the application is setup for testing. | def FCbF(YKHO):
YKHO.fixtures_path = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'fixtures/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.app = P4t4.test_client()\n YKHO.app.testing = True",
"def FCbF(YKHO):\n YKHO.app = P4t4.test_client()\n YKHO.app.testing = True",
"def FCbF(YKHO) -> None:\n YKHO.app = P4t4.app.test_client()\n YKHO.app.testing = True",
"def FCbF(YKHO):\n YKHO.app = LUif()\n YKHO... | [
"0.81337184",
"0.8072278",
"0.8020857",
"0.8011397",
"0.8000315",
"0.7987713",
"0.79771906",
"0.7976462",
"0.7975251",
"0.79618055",
"0.79618055",
"0.7932902",
"0.7932902",
"0.7932902",
"0.79290366",
"0.7928467",
"0.7927925",
"0.7881998",
"0.7845801",
"0.784254",
"0.784254",
... | 0.0 | -1 |
Tests whether ``Emoji.is_unicode_emoji`` works as intended. | def yV05():
JUOb = DNEC['x']
Qg87.assert_true(JUOb.is_unicode_emoji())
JUOb = Xz2w()
Qg87.assert_false(JUOb.is_unicode_emoji()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SW6c(YKHO):\n ...",
"def OdH3(Z9rn: str) -> bool:\n return Z9rn in ULO1",
"def Q7zL(YKHO):\n ...",
"def am6Y(Z9rn):\n if type(Z9rn) == str:\n Z9rn = Z9rn.encode('utf-8')\n Z9rn = bytes(Z9rn)\n return Z9rn.decode() in ULO1",
"def KKJ5():\n JUOb = DNEC['x']\n Qg87.assert_fa... | [
"0.88940513",
"0.8131408",
"0.7909953",
"0.7290816",
"0.7220463",
"0.7157336",
"0.6910333",
"0.6644217",
"0.6623495",
"0.6515711",
"0.6499878",
"0.6453534",
"0.63682616",
"0.6361044",
"0.6201488",
"0.6195488",
"0.61566913",
"0.61179996",
"0.6096853",
"0.60940593",
"0.60675395... | 0.8479685 | 1 |
Tests whether ``Emoji.as_emoji`` works as intended. | def za9J():
JUOb = DNEC['x']
Qg87.assert_instance(JUOb.as_emoji, str)
JUOb = Xz2w()
Qg87.assert_instance(JUOb.as_emoji, str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SW6c(YKHO):\n ...",
"def Q7zL(YKHO):\n ...",
"def yV05():\n JUOb = DNEC['x']\n Qg87.assert_true(JUOb.is_unicode_emoji())\n JUOb = Xz2w()\n Qg87.assert_false(JUOb.is_unicode_emoji())",
"def KKJ5():\n JUOb = DNEC['x']\n Qg87.assert_false(JUOb.is_custom_emoji())\n JUOb = Xz2w()\n ... | [
"0.8034817",
"0.7946594",
"0.78906673",
"0.7661292",
"0.74768245",
"0.7103569",
"0.7062346",
"0.70191073",
"0.69194645",
"0.68687993",
"0.6687607",
"0.6584737",
"0.6531542",
"0.64271945",
"0.63429177",
"0.6295433",
"0.62394994",
"0.61641717",
"0.600939",
"0.5991873",
"0.59451... | 0.7849484 | 3 |
Tests whether ``Emoji.as_emoji`` works as intended. | def XXYC():
JUOb = DNEC['x']
Qg87.assert_instance(JUOb.created_at, cJ1g)
JUOb = Xz2w()
Qg87.assert_instance(JUOb.created_at, cJ1g)
IgNB = 202301010044
JUOb = Xz2w.precreate(IgNB)
Qg87.assert_instance(JUOb.created_at, cJ1g) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SW6c(YKHO):\n ...",
"def Q7zL(YKHO):\n ...",
"def yV05():\n JUOb = DNEC['x']\n Qg87.assert_true(JUOb.is_unicode_emoji())\n JUOb = Xz2w()\n Qg87.assert_false(JUOb.is_unicode_emoji())",
"def za9J():\n JUOb = DNEC['x']\n Qg87.assert_instance(JUOb.as_emoji, str)\n JUOb = Xz2w()\n ... | [
"0.80345666",
"0.7946438",
"0.7890378",
"0.7849855",
"0.7661249",
"0.74768496",
"0.7104061",
"0.7062429",
"0.7019053",
"0.69196486",
"0.68689847",
"0.66875017",
"0.65847075",
"0.65316683",
"0.6426341",
"0.6343639",
"0.6295995",
"0.6240001",
"0.6164506",
"0.60098535",
"0.59914... | 0.51115566 | 64 |
Tests whether ``Emoji.url_as`` works as intended. | def UHqQ():
JUOb = DNEC['x']
Qg87.assert_is(JUOb.url_as(), None)
JUOb = Xz2w()
Qg87.assert_instance(JUOb.url_as(), str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ltOC():\n JUOb = DNEC['x']\n Qg87.assert_is(JUOb.url, None)\n JUOb = Xz2w()\n Qg87.assert_instance(JUOb.url, str)",
"def XdzF(vIwR):\n return 'http' in vIwR",
"def rx9o(YKHO, bD7m):\n if type(bD7m) == str:\n return bD7m.startswith('http://') or bD7m.startswith('https://')\n retu... | [
"0.7296026",
"0.6418828",
"0.6296035",
"0.62819874",
"0.6280449",
"0.62021464",
"0.6181494",
"0.6174985",
"0.6170844",
"0.6158205",
"0.6143138",
"0.6077028",
"0.60766995",
"0.6046148",
"0.6036756",
"0.6006145",
"0.60017115",
"0.5981001",
"0.5961318",
"0.5954714",
"0.59336215"... | 0.77342886 | 0 |
Returns the data type for this input. | def AGOU(YKHO):
return YKHO._dataType | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sB1G(YKHO):\n return YKHO._data_type",
"def sB1G(YKHO):\n return YKHO._data_type",
"def sB1G(YKHO):\n return YKHO._data_type",
"def sB1G(YKHO):\n return YKHO._data_type",
"def sB1G(YKHO) -> int:\n return YKHO.data['args']['dataType']",
"def sB1G(YKHO) -> qe4Y.Input['AssetModelDataType'... | [
"0.8530812",
"0.850248",
"0.850248",
"0.850248",
"0.8316372",
"0.81443715",
"0.80893695",
"0.8044638",
"0.79946756",
"0.79320747",
"0.78541845",
"0.76246744",
"0.76058185",
"0.7539731",
"0.7506998",
"0.7506998",
"0.7506998",
"0.7506998",
"0.7506998",
"0.7506998",
"0.7490063",... | 0.8077339 | 7 |
Gets the connection of this input. | def dyHn(YKHO):
return YKHO._connection | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UzPC(YKHO):\n return YKHO.get_connection()",
"def lxP0(YKHO):\n return YKHO.connection",
"def lxP0(YKHO):\n return YKHO.connection",
"def lxP0(YKHO):\n return YKHO.REMOTE_CONNECTION",
"def lxP0(YKHO):\n return YKHO._connection",
"def lxP0(YKHO):\n return YKHO._connection",
"def Uz... | [
"0.7793481",
"0.77450186",
"0.77450186",
"0.7708858",
"0.76813614",
"0.76813614",
"0.75481796",
"0.75481796",
"0.75481796",
"0.7475889",
"0.7441586",
"0.73879254",
"0.7254571",
"0.7221151",
"0.71862173",
"0.71638554",
"0.7111704",
"0.70047295",
"0.6985687",
"0.69437593",
"0.6... | 0.7245913 | 13 |
Registers the given type with the given mapping. The mapping is as dictionary representing the part below the ``mappings/type_name``. | def dcpc(YKHO, l87X, J8oL, C3ST=None):
assert l87X not in YKHO.mappings
YKHO.mappings[l87X] = wGzS(l87X, J8oL, C3ST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dcpc(type, i_PC):\n oAPT[type] = i_PC",
"def RIXo(YKHO, yscw, NYLc):\n if not YKHO.apiName(yscw) or not YKHO.apiName(NYLc):\n YKHO.logMsg('diag', 'ScriptOutputGenerator::addMapping: IGNORE map from', yscw, '<->', NYLc)\n return\n YKHO.logMsg('diag', 'ScriptOutputGenerator::addMapping: ... | [
"0.659044",
"0.62441874",
"0.61884737",
"0.6116328",
"0.6108244",
"0.6079804",
"0.59829605",
"0.59829605",
"0.5971039",
"0.5866957",
"0.5824829",
"0.5775262",
"0.570444",
"0.56397647",
"0.55957794",
"0.55684936",
"0.54903",
"0.54837775",
"0.54763997",
"0.546228",
"0.54155296"... | 0.83780503 | 0 |
Return the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()",
"def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name",
"def xpqj(YKHO):\n return YKHO.first_name + ' ... | [
"0.83424175",
"0.8227792",
"0.8099884",
"0.80680513",
"0.80531704",
"0.8045193",
"0.7995028",
"0.799401",
"0.799401",
"0.799401",
"0.79797614",
"0.7964116",
"0.79576445",
"0.79403675",
"0.7937235",
"0.7933996",
"0.7915679",
"0.79016924",
"0.78933924",
"0.7869724",
"0.7856853"... | 0.7787285 | 46 |
Returns if the given point is within the region's bounds. | def eVmN(YKHO, WKvO, LVAh):
return WKvO >= YKHO.top_x and WKvO <= YKHO.bottom_x and (LVAh >= YKHO.bottom_y) and (LVAh <= YKHO.top_y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lyjE(YKHO, AU8u):\n return YKHO.upperleft[0] <= AU8u[0] <= YKHO.upperright[0] and YKHO.upperleft[1] <= AU8u[1] <= YKHO.bottomleft[1]",
"def lyjE(YKHO, AU8u):\n return YKHO.upperleft[0] <= AU8u[0] <= YKHO.upperright[0] and YKHO.upperleft[1] <= AU8u[1] <= YKHO.bottomleft[1]",
"def S8eX(YKHO, AU8u):\n ... | [
"0.82760227",
"0.82760227",
"0.8240641",
"0.8236321",
"0.793338",
"0.7882126",
"0.7774449",
"0.77332246",
"0.7725425",
"0.77082616",
"0.769302",
"0.7682509",
"0.76629364",
"0.7659592",
"0.76361287",
"0.7554421",
"0.7554421",
"0.75246084",
"0.75089645",
"0.75038016",
"0.749756... | 0.70205784 | 45 |
Generate a random string with the combination of lowercase and uppercase letters | def TJC9(FVpJ):
KoG3 = vIwR.ascii_letters
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy(u54L=1, QmjV=False, cKm3=False):\n SIyd = BHGE\n Wxnj = str()\n if QmjV:\n SIyd += tcl1\n if cKm3:\n SIyd += JSRc\n while len(Wxnj) < u54L:\n bseI = Acvy(SIyd)\n if len(Wxnj) == 0:\n bseI = Acvy(tcl1)\n Wxnj += bseI\n return Wxnj",
"def ORa... | [
"0.7946826",
"0.7738986",
"0.7679305",
"0.7657063",
"0.7609224",
"0.7529105",
"0.7509637",
"0.74899936",
"0.73721504",
"0.73713845",
"0.73095775",
"0.7270342",
"0.7263459",
"0.7245338",
"0.7229803",
"0.7196288",
"0.7176311",
"0.71762294",
"0.7166171",
"0.7165482",
"0.7164123"... | 0.0 | -1 |
Implements the sigmoid activation in numpy | def m1Hg(Nk6w):
k0lF = 1 / (1 + oyIN.exp(-Nk6w))
wyyA = Nk6w
return (k0lF, wyyA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(WKvO: np.ndarray) -> oyIN.ndarray:\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5) + Fg_i\n return 1.0 / (1.0 + oyIN.exp(-sdgB))",
"def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO)... | [
"0.8374216",
"0.8308304",
"0.8258762",
"0.8215258",
"0.8150142",
"0.8140216",
"0.8140216",
"0.8140216",
"0.8140216",
"0.8140216",
"0.8140216",
"0.8125962",
"0.81212926",
"0.81212926",
"0.80962545",
"0.8082652",
"0.8068939",
"0.80095696",
"0.80017805",
"0.79810584",
"0.7977735... | 0.0 | -1 |
Implement the backward propagation for a single RELU unit. | def PPFh(LQ6K, wyyA):
Nk6w = wyyA
R5Nm = oyIN.array(LQ6K, copy=True)
R5Nm[Nk6w <= 0] = 0
assert R5Nm.shape == Nk6w.shape
return R5Nm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZD5u(OaeV, pwN3):\n N77f, lQ3t, P6bq, OCi3 = OaeV.saved_tensors\n begE = P6bq.device\n SGf8 = 1e-10\n Ro40, = ht2j.autograd.grad(N77f, P6bq, only_inputs=True, retain_graph=True)\n WKvO = (P6bq - SGf8 * Ro40).data\n OCi3 = OCi3.data\n vUCF = r3uf(oyIN.array([ZhTu.tv1_1d(CAzz, SGf8 * OCi3) f... | [
"0.7334515",
"0.7148403",
"0.7119119",
"0.71164113",
"0.7100485",
"0.70844537",
"0.70552343",
"0.7051098",
"0.70438045",
"0.6991595",
"0.6959472",
"0.6944986",
"0.69260585",
"0.69260585",
"0.69166666",
"0.6907065",
"0.6907065",
"0.68829346",
"0.6877464",
"0.6859403",
"0.68530... | 0.0 | -1 |
Mock invalid resource request | def aTxD(YKHO, CyZ7, yAhP):
with Po4F('bpm.spotify.requests.get') as jqSP:
jqSP.return_value = yAhP
Aofo = CyZ7.get_resource('')
assert Aofo == {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pznW(YKHO):\n geh0 = G4JS.get(YKHO.url + '/invalid')\n YKHO.assertEqual(geh0.status_code, 404)",
"def kdte(YKHO):\n geh0 = G4JS.get(YKHO.url + '/users/John/invalid')\n YKHO.assertEqual(geh0.status_code, 404)",
"def sWiX(YRRB):\n Mkmy = YRRB.get(ruq7 + '?s=foo')\n assert Mkmy.status_code =... | [
"0.7710774",
"0.71495163",
"0.70958686",
"0.7039983",
"0.69686395",
"0.69127584",
"0.68761307",
"0.6871811",
"0.6862427",
"0.6808083",
"0.6799884",
"0.678101",
"0.6778663",
"0.67719936",
"0.677014",
"0.67622745",
"0.67454875",
"0.67185193",
"0.6689774",
"0.6657523",
"0.665510... | 0.7731558 | 0 |
Mock invalid get_artist request | def IgXA(YKHO, CyZ7, yAhP):
with Po4F('bpm.spotify.requests.get') as jqSP:
jqSP.return_value = yAhP
Aofo = CyZ7.get_artist('')
assert Aofo == {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nXBW(YKHO):\n with TMAJ.patch('spotlogin_api.get_artists_call', YKHO.mock_key):\n Aofo = e4zw.get_artists(YKHO.user[p5VW])\n YKHO.assertEqual(Aofo, [])",
"def FlRU(YKHO):\n Zqvr = ['1', '2', '3']\n with TMAJ.patch('spotlogin_api.get_artists_call', YKHO.mock_artist):\n Aofo = e4zw.ge... | [
"0.8202394",
"0.7825108",
"0.7747017",
"0.7682118",
"0.7655476",
"0.7509539",
"0.713856",
"0.68857276",
"0.67138904",
"0.6677388",
"0.66096854",
"0.65280837",
"0.6525405",
"0.63761026",
"0.6369316",
"0.6367515",
"0.63253385",
"0.618725",
"0.6176389",
"0.6174812",
"0.6141477",... | 0.8042449 | 1 |
Mock invalid get_album request | def w3DL(YKHO, CyZ7, yAhP):
with Po4F('bpm.spotify.requests.get') as jqSP:
jqSP.return_value = yAhP
Aofo = CyZ7.get_album('')
assert Aofo == {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zCJu(YKHO, CyZ7, gbaJ):\n with Po4F('bpm.spotify.requests.get') as jqSP:\n jqSP.return_value = gbaJ\n Aofo = CyZ7.get_album(lookup_id='mock_album_id')\n assert Aofo == gbaJ.json.return_value",
"def S2We(YKHO, d4y1, b5K5):\n RoyH(user=b5K5)\n RoyH(user=b5K5, title='2019')\n d4... | [
"0.75944906",
"0.69998634",
"0.66803163",
"0.6554143",
"0.65514165",
"0.6549048",
"0.6463268",
"0.6393017",
"0.63563603",
"0.63479763",
"0.6307147",
"0.62963694",
"0.6293594",
"0.628512",
"0.62592274",
"0.6228446",
"0.6209262",
"0.61892456",
"0.61891246",
"0.61663604",
"0.614... | 0.80538833 | 0 |
Clean feature text by removing some trigger words. | def cvZO(YKHO, V22M):
if YKHO.type == 'DIAGNOSIS':
j28w = ['DX']
elif YKHO.type == 'SECOND_LEVEL_DIAGNOSIS':
j28w = ['Assessment', 'Impression']
elif YKHO.type == 'DRUG':
j28w = ['Route']
elif YKHO.type == 'MEDICAL_HISTORY':
j28w = ['History', 'MedicalHistory']
elif Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QrZ9(l5Ny):\n global cleaned_text\n BWfM = ZbWC.sub('\\\\d+', '', l5Ny)\n cN_o = ''.join([hcXw.lower() for hcXw in BWfM if hcXw not in vIwR.punctuation])\n yo5D = ZbWC.sub('\\\\s+', ' ', cN_o).strip()\n _R3r = yo5D.split()\n for GIN8 in _R3r:\n if len(GIN8) == 1:\n _R3r.remo... | [
"0.69853854",
"0.68567544",
"0.68567544",
"0.68567544",
"0.68567544",
"0.68567544",
"0.68567544",
"0.67625684",
"0.67229354",
"0.6711405",
"0.66636276",
"0.66161007",
"0.6605238",
"0.65820163",
"0.6540656",
"0.6537748",
"0.6535306",
"0.65057236",
"0.649371",
"0.6470646",
"0.6... | 0.0 | -1 |
Get list of SubsetClass objects | def Rofl(YKHO):
return YKHO.subset_list | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPXT(YKHO, _2sc):\n return _2sc.__subclasses__()",
"def TPXT(OWw8: callable) -> list:\n Ty1Z = []\n for dm7U in OWw8.__subclasses__():\n if not tq_1.isabstract(dm7U):\n Ty1Z.append(dm7U)\n Ty1Z.extend(TPXT(dm7U))\n return Ty1Z",
"def Wlg_(Emd4):\n Hh7E = []\n for ... | [
"0.75091916",
"0.7346443",
"0.7221337",
"0.7215894",
"0.71816915",
"0.7139952",
"0.7101745",
"0.7056139",
"0.70469975",
"0.70382833",
"0.7025034",
"0.70103014",
"0.6997125",
"0.697387",
"0.6952888",
"0.69027346",
"0.69002396",
"0.6820751",
"0.68092775",
"0.6805835",
"0.676698... | 0.0 | -1 |
Parses product's original price. | def vh0v(YKHO, geh0, xqad=None):
M9Zu = '//*[@id="price"]/.//*[contains(@class, "a-text-strike")]/text()'
if xqad:
M9Zu += ' |' + xqad
UkJi = geh0.xpath(M9Zu).re(As_s)
if UkJi:
return float(UkJi[0].replace(',', '')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S6MP(YKHO):\n hI0L = '0.0000'\n try:\n hI0L = YKHO.trees.get_element_by_id('priceblock_ourprice').text\n except:\n try:\n hI0L = YKHO.trees.get_element_by_id('price_inside_buybox').text\n except:\n try:\n hI0L = YKHO.trees.get_element_by_id('pr... | [
"0.6839624",
"0.65610844",
"0.6504688",
"0.6498432",
"0.648165",
"0.6474342",
"0.6441958",
"0.6412932",
"0.6395594",
"0.6359413",
"0.63303304",
"0.6290909",
"0.62858135",
"0.6274683",
"0.62719834",
"0.62652487",
"0.6217433",
"0.6181562",
"0.616996",
"0.6154291",
"0.613523",
... | 0.7738633 | 0 |
Tear down table Review of database used for tests. | def tBIc(YKHO) -> None:
CBIr = S8SU.get(mv1M, YKHO.user_id)
if CBIr is not None:
S8SU.delete(CBIr)
j5sA = S8SU.get(cKBo, YKHO.city_id)
if j5sA is not None:
S8SU.delete(j5sA)
QTBn = S8SU.get(wHLO, YKHO.state_id)
if QTBn is not None:
S8SU.delete(QTBn)
S8SU.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n E1cg.query.delete()",
"def tBIc(YKHO):\n VXMg.destroy_tables()",
"def tBIc(YKHO):\n del YKHO.review",
"def tBIc(YKHO):\n NCls.session.rollback()\n NCls.drop_all()",
"def tBIc(YKHO):\n NCls.session.remove()\n NCls.drop_all()",
"def tBIc(YKHO):\n NCls.session.rollb... | [
"0.7806141",
"0.7200003",
"0.70534617",
"0.69181514",
"0.6877547",
"0.6851557",
"0.683085",
"0.68290234",
"0.6826844",
"0.68198663",
"0.68195254",
"0.6807949",
"0.6804568",
"0.6793951",
"0.6793951",
"0.6773339",
"0.67720014",
"0.67720014",
"0.67720014",
"0.67720014",
"0.67501... | 0.0 | -1 |
Test create action when given wrong city_id or no ID at all. | def ZNah(YKHO):
geh0 = G4JS.get(url=YKHO.invalid_url)
MOPg = geh0.headers
zgjV = geh0.json()
YKHO.assertEqual(geh0.status_code, 404, lwj6)
YKHO.assertEqual(MOPg['Content-Type'], 'application/json', khAs)
YKHO.assertTrue(YKHO.city == S8SU.get(cKBo, YKHO.city_id))
YKHO.assertIn('error', zgjV)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K01M(YKHO):\n C6id = pRgP()\n YKHO.assertTrue(hasattr(C6id, 'city_id'))\n YKHO.assertEqual(C6id.city_id, '')",
"def h6t_(YKHO):\n YKHO.url_params['city'] = 'New York'\n geh0 = YKHO.client.post(YKHO.url, YKHO.url_params)\n YKHO.assertEqual(geh0.status_code, 200)\n YEnM = qQXR.loads(geh0.c... | [
"0.6927521",
"0.68364066",
"0.6782573",
"0.67120415",
"0.6681824",
"0.6598809",
"0.6576543",
"0.6569103",
"0.65482163",
"0.65401435",
"0.6519946",
"0.65198463",
"0.64539194",
"0.6346804",
"0.6278168",
"0.615056",
"0.615001",
"0.61143786",
"0.61076456",
"0.60571116",
"0.604627... | 0.0 | -1 |
Tear down table Place of database used for tests. | def tBIc(YKHO) -> None:
S8SU.delete(YKHO.place)
S8SU.delete(YKHO.user)
S8SU.delete(YKHO.city)
S8SU.delete(YKHO.state)
S8SU.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n VXMg.destroy_tables()",
"def tBIc(YKHO):\n hzHg('TEST_DATABASE_URI').drop_tables()",
"def tBIc(YKHO):\n NCls.session.remove()\n NCls.drop_all()",
"def tBIc(YKHO):\n YKHO.database.truncate_all_tables()",
"def PkTX(Emd4):\n Emd4.database_connection.connect()\n Emd4.data... | [
"0.81152445",
"0.79166496",
"0.7883226",
"0.78818905",
"0.7876722",
"0.77786773",
"0.7768633",
"0.77477974",
"0.77433956",
"0.77424127",
"0.7742055",
"0.77314675",
"0.7724903",
"0.7724903",
"0.7692925",
"0.7686271",
"0.76857466",
"0.76783323",
"0.76783323",
"0.76783323",
"0.7... | 0.0 | -1 |
Tear down table Place of database used for tests. | def tBIc(YKHO) -> None:
C6id = S8SU.get(pRgP, YKHO.place_id)
if C6id is not None:
S8SU.delete(C6id)
CBIr = S8SU.get(mv1M, YKHO.user_id)
if CBIr is not None:
S8SU.delete(CBIr)
j5sA = S8SU.get(cKBo, YKHO.city_id)
if j5sA is not None:
S8SU.delete(j5sA)
QTBn = S8SU.get(wH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n VXMg.destroy_tables()",
"def tBIc(YKHO):\n hzHg('TEST_DATABASE_URI').drop_tables()",
"def tBIc(YKHO):\n NCls.session.remove()\n NCls.drop_all()",
"def tBIc(YKHO):\n YKHO.database.truncate_all_tables()",
"def PkTX(Emd4):\n Emd4.database_connection.connect()\n Emd4.data... | [
"0.81152445",
"0.79166496",
"0.7883226",
"0.78818905",
"0.7876722",
"0.77786773",
"0.7768633",
"0.77477974",
"0.77433956",
"0.77424127",
"0.7742055",
"0.77314675",
"0.7724903",
"0.7724903",
"0.7692925",
"0.7686271",
"0.76857466",
"0.76783323",
"0.76783323",
"0.76783323",
"0.7... | 0.0 | -1 |
Tear down table Place of database used for tests. | def tBIc(YKHO) -> None:
CBIr = S8SU.get(mv1M, YKHO.user_id)
if CBIr is not None:
S8SU.delete(CBIr)
j5sA = S8SU.get(cKBo, YKHO.city_id)
if j5sA is not None:
S8SU.delete(j5sA)
QTBn = S8SU.get(wHLO, YKHO.state_id)
if QTBn is not None:
S8SU.delete(QTBn)
S8SU.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n VXMg.destroy_tables()",
"def tBIc(YKHO):\n hzHg('TEST_DATABASE_URI').drop_tables()",
"def tBIc(YKHO):\n NCls.session.remove()\n NCls.drop_all()",
"def tBIc(YKHO):\n YKHO.database.truncate_all_tables()",
"def PkTX(Emd4):\n Emd4.database_connection.connect()\n Emd4.data... | [
"0.81152445",
"0.79166496",
"0.7883226",
"0.78818905",
"0.7876722",
"0.77786773",
"0.7768633",
"0.77477974",
"0.77433956",
"0.77424127",
"0.7742055",
"0.77314675",
"0.7724903",
"0.7724903",
"0.7692925",
"0.7686271",
"0.76857466",
"0.76783323",
"0.76783323",
"0.76783323",
"0.7... | 0.0 | -1 |
Test create action when given wrong city_id or no ID at all. | def ZNah(YKHO):
geh0 = G4JS.post(url=YKHO.invalid_url)
MOPg = geh0.headers
zgjV = geh0.json()
YKHO.assertEqual(geh0.status_code, 404, lwj6)
YKHO.assertEqual(MOPg['Content-Type'], 'application/json', khAs)
YKHO.assertTrue(YKHO.city == S8SU.get(cKBo, YKHO.city_id))
YKHO.assertIn('error', zgjV)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K01M(YKHO):\n C6id = pRgP()\n YKHO.assertTrue(hasattr(C6id, 'city_id'))\n YKHO.assertEqual(C6id.city_id, '')",
"def h6t_(YKHO):\n YKHO.url_params['city'] = 'New York'\n geh0 = YKHO.client.post(YKHO.url, YKHO.url_params)\n YKHO.assertEqual(geh0.status_code, 200)\n YEnM = qQXR.loads(geh0.c... | [
"0.69279075",
"0.6837271",
"0.6781261",
"0.67097485",
"0.66823864",
"0.66005194",
"0.65781796",
"0.6569976",
"0.65462977",
"0.65426886",
"0.65218204",
"0.65218204",
"0.64570284",
"0.6350171",
"0.6277144",
"0.6150996",
"0.61502135",
"0.6116714",
"0.61073214",
"0.60546905",
"0.... | 0.0 | -1 |
Tear down table Place of database used for tests. | def tBIc(YKHO) -> None:
C6id = S8SU.get(pRgP, YKHO.place_id)
if C6id is not None:
S8SU.delete(C6id)
CBIr = S8SU.get(mv1M, YKHO.user_id)
if CBIr is not None:
S8SU.delete(CBIr)
j5sA = S8SU.get(cKBo, YKHO.city_id)
if j5sA is not None:
S8SU.delete(j5sA)
QTBn = S8SU.get(wH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n VXMg.destroy_tables()",
"def tBIc(YKHO):\n hzHg('TEST_DATABASE_URI').drop_tables()",
"def tBIc(YKHO):\n NCls.session.remove()\n NCls.drop_all()",
"def tBIc(YKHO):\n YKHO.database.truncate_all_tables()",
"def PkTX(Emd4):\n Emd4.database_connection.connect()\n Emd4.data... | [
"0.8114736",
"0.7916872",
"0.7883494",
"0.78821254",
"0.78759474",
"0.77787673",
"0.7767903",
"0.7747948",
"0.774509",
"0.7742561",
"0.77416223",
"0.7731595",
"0.7724659",
"0.7724659",
"0.76930416",
"0.76865244",
"0.7686251",
"0.7677107",
"0.7677107",
"0.7677107",
"0.7677107"... | 0.0 | -1 |
Test valid update action. | def D0fz(YKHO):
nPrm = {'name': 'toto2'}
geh0 = G4JS.put(url=YKHO.url, json=nPrm)
MOPg = geh0.headers
zgjV = geh0.json()
YKHO.assertTrue(YKHO.place == S8SU.get(pRgP, YKHO.place_id))
YKHO.assertEqual(geh0.status_code, 200, lwj6)
YKHO.assertEqual(MOPg['Content-Type'], 'application/json', khAs)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def Tbie(YKHO):\n pass",
"def b6pt(YKHO):\n pass",
"def IsIF(P4t4):\n assert False",
"def XoLx(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def qRhm(YKHO):\n pass",
"def mmy9(YKHO):\n pass",
... | [
"0.8056447",
"0.8056447",
"0.8056447",
"0.8054608",
"0.7876594",
"0.7816667",
"0.78033584",
"0.780004",
"0.7638284",
"0.74196744",
"0.72867405",
"0.7276324",
"0.72365797",
"0.7224716",
"0.72109437",
"0.7186029",
"0.7172556",
"0.71655226",
"0.7156753",
"0.7150692",
"0.70963746... | 0.0 | -1 |
Test update action when given wrong review_id or no ID at all. | def ZNah(YKHO):
nPrm = {'text': 'toto'}
geh0 = G4JS.put(url=YKHO.invalid_url, json=nPrm)
MOPg = geh0.headers
zgjV = geh0.json()
YKHO.assertEqual(geh0.status_code, 404, lwj6)
YKHO.assertEqual(MOPg['Content-Type'], 'application/json', khAs)
YKHO.assertIn('error', zgjV)
YKHO.assertEqual(zgj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xnEA(oOW1):\n fZOT = QePW.get_json()\n if fZOT is None:\n eTsH(400, {'message': 'Not a JSON'})\n YEnM = S8SU.get(E1cg, oOW1)\n if YEnM is None:\n eTsH(404)\n for G1Hx, Ty9i in fZOT.items():\n if G1Hx not in ['id', 'user_id', 'place_id', 'created_at', 'updated_at']:\n ... | [
"0.69150305",
"0.68658453",
"0.6835037",
"0.6818989",
"0.6817949",
"0.6808015",
"0.67921317",
"0.67099774",
"0.6611546",
"0.6515712",
"0.64476645",
"0.6412282",
"0.6337633",
"0.6265362",
"0.62552536",
"0.6243858",
"0.62043476",
"0.61957747",
"0.61705637",
"0.6134737",
"0.6132... | 0.0 | -1 |
Tear down table Place of database used for tests. | def tBIc(YKHO) -> None:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n VXMg.destroy_tables()",
"def tBIc(YKHO):\n hzHg('TEST_DATABASE_URI').drop_tables()",
"def tBIc(YKHO):\n NCls.session.remove()\n NCls.drop_all()",
"def tBIc(YKHO):\n YKHO.database.truncate_all_tables()",
"def PkTX(Emd4):\n Emd4.database_connection.connect()\n Emd4.data... | [
"0.81152445",
"0.79166496",
"0.7883226",
"0.78818905",
"0.7876722",
"0.77786773",
"0.7768633",
"0.77477974",
"0.77433956",
"0.77424127",
"0.7742055",
"0.77314675",
"0.7724903",
"0.7724903",
"0.7692925",
"0.7686271",
"0.76857466",
"0.76783323",
"0.76783323",
"0.76783323",
"0.7... | 0.0 | -1 |
initializes singly linked list | def FIMM(YKHO):
YKHO.__head = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, yv6U=[]):\n YKHO.__length = 0\n YKHO.__head = None\n for tTpl in yv6U:\n YKHO.add(tTpl)",
"def FIMM(YKHO):\n Q6kx = Msxl(0)\n YKHO.head = Q6kx\n YKHO.tail = Q6kx\n YKHO.len = 0",
"def FIMM(YKHO, mcM9: object):\n YKHO.current_node = mcM9._head",
"def FIMM(YKHO, sd... | [
"0.7819301",
"0.75272244",
"0.74747753",
"0.74489033",
"0.7416293",
"0.73759764",
"0.735071",
"0.7339788",
"0.73205805",
"0.7307857",
"0.72945845",
"0.7277682",
"0.72619003",
"0.72428554",
"0.72428554",
"0.72428554",
"0.72428554",
"0.72428554",
"0.7234285",
"0.7206142",
"0.72... | 0.69875455 | 59 |
Calculates the area of a (closed) polygon. | def MwoA(LTIa):
k0lF = 0
ywwl = len(LTIa)
for YRbF in Ni9Y(0, ywwl):
kidU = LTIa[YRbF][0]
me_t = LTIa[YRbF][1]
PhjG = LTIa[(YRbF + 1) % ywwl][0]
JKy8 = LTIa[(YRbF + 1) % ywwl][1]
k0lF += kidU * JKy8 - PhjG * me_t
return k0lF / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2cR(j5tF):\n return Fw8z.gmPolygonArea(j5tF)",
"def f0tD(YKHO):\n if len(YKHO.exterior) < 3:\n raise Exception(\"Cannot compute the polygon's area because it contains less than three points.\")\n _g9D = YKHO.to_shapely_polygon()\n return _g9D.area",
"def gdLg(j5tF):\n z1Rg = Rgf5(j5t... | [
"0.8261107",
"0.8153791",
"0.81427395",
"0.8081045",
"0.7949097",
"0.7886497",
"0.7796098",
"0.77608496",
"0.7628831",
"0.7604285",
"0.7590112",
"0.7585494",
"0.758179",
"0.74789864",
"0.73947597",
"0.73615026",
"0.7306913",
"0.72621137",
"0.72477007",
"0.72420216",
"0.722568... | 0.7476623 | 14 |
Initializing Backtesting function Init function generates performance of the test and several risk metrics. The object lets you specify wether you want to lag the trades to avoid overfitting, the transaction costs and the percentage of the portfolio to be invested per trade (50% as 0.5). | def FIMM(YKHO, CuxP: pd.Series, WZsM: pd.Series, JYmr=True, cua4=0, DVBi=1):
if JYmr:
WZsM = WZsM.shift(1)
WZsM.iloc[0] = False
YKHO.strategy_returns = CuxP * DVBi * WZsM
YKHO.trades = WZsM
YKHO.nr_trades = {'buy': [], 'sell': []}
for YRbF in range(1, len(WZsM)):
if WZsM[YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(QpfX):\n u5cU(Wswm(21519))\n fu46(bsQG(), 'pipeline_buy')\n KUti(cZTi, Z0wY.month_start(), QFQE.market_open(minutes=60))",
"def uIcm(QpfX):\n QpfX.counter = 2\n u5cU(Wswm(8554))\n KUti(yYMx, Z0wY.month_end(), QFQE.market_open())\n KUti(wS6X, Z0wY.month_end(), QFQE.market_open(hours=... | [
"0.6660802",
"0.65762806",
"0.65509987",
"0.63649786",
"0.63537765",
"0.63515097",
"0.6269131",
"0.622983",
"0.620218",
"0.62021136",
"0.5998702",
"0.59936905",
"0.5974918",
"0.59488976",
"0.59316",
"0.59255105",
"0.59209776",
"0.5903755",
"0.5900044",
"0.5889675",
"0.5874257... | 0.6500694 | 3 |
Root mean squared error of the noise. Notes | def UTp6(YKHO, m3B5=None, RfSx=None):
Ylbp = YKHO.ml.noise(tmin=m3B5, tmax=RfSx)
ywwl = Ylbp.size
return oyIN.sqrt(sum(Ylbp ** 2) / ywwl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def azkM(YKHO) -> float:\n return float(YKHO.rmse() / oyIN.mean(YKHO.true))",
"def DF3U(Y8eF, aMgO):\n return vg0C.mean_squared_error(Y8eF, aMgO) ** 0.5",
"def iAxY(YKHO):\n return (YKHO.model_error() ** 2).mean() ** 0.5",
"def NUET(YKHO):\n return YKHO.mse",
"def uXIl(hkxX):\n return fHeP.s... | [
"0.7394492",
"0.7190651",
"0.7167971",
"0.71633774",
"0.71475536",
"0.71330255",
"0.713175",
"0.70594305",
"0.70372224",
"0.7004368",
"0.6888598",
"0.6883944",
"0.6862308",
"0.68339473",
"0.6824615",
"0.67701703",
"0.67544264",
"0.6719578",
"0.6689541",
"0.6675475",
"0.666965... | 0.0 | -1 |
Convert class labels from scalars to onehot vectors. | def kPpE(lexL, jTqs):
svPB = lexL.shape[0]
whV7 = XTiz.arange(svPB) * jTqs
xZkh = XTiz.zeros((svPB, jTqs))
xZkh.flat[whV7 + lexL.ravel()] = 1
return xZkh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)",
"def KLLm(Crrw, KndY=None):\n PnsN = nMvt.utils.to_categorical(Crrw, KndY)\n return PnsN",
"def LQDo(Crrw: torch.Tensor, jTqs: int) -> ht2j.Tensor:\n if len(Crrw.size()) == 1:\n return vuvg.one_hot(Crrw, jTqs).float(... | [
"0.8250402",
"0.807683",
"0.80523187",
"0.7977843",
"0.7908335",
"0.7900327",
"0.7892233",
"0.7869711",
"0.7849721",
"0.7849721",
"0.7826951",
"0.7826122",
"0.77677035",
"0.7765413",
"0.77489346",
"0.7742955",
"0.7737176",
"0.77226317",
"0.77123284",
"0.7711196",
"0.769438",
... | 0.77540547 | 16 |
Construct a DataSet. one_hot arg is used only if fake_data is true. `dtype` can be either `uint8` to leave the input as `[0, 255]`, or `float32` to rescale into `[0, 1]`. | def FIMM(YKHO, Yw_3, Crrw, PWgb=True, I9qO=False, KLLm=False, yDqo=m1c7.float32):
yDqo = m1c7.as_dtype(yDqo).base_dtype
if yDqo not in (m1c7.uint8, m1c7.float32):
raise TypeError('Invalid image dtype %r, expected uint8 or float32' % yDqo)
if I9qO:
YKHO._num_examples = 10000
YKHO.one_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(WKvO, jTqs, yDqo=oLG2.float32):\n return yOcR.nn.one_hot(WKvO, jTqs).astype(yDqo)",
"def OVnz(Crrw: np.ndarray, LeZt: int, jDK_: int=0, JsoO=False, yDqo=bool):\n if JsoO:\n assert Crrw.shape[jDK_] == 1\n nbIQ = Crrw.ndim\n else:\n nbIQ = Crrw.ndim + 1\n if jDK_ < 0:\n ... | [
"0.6928174",
"0.6369147",
"0.6323994",
"0.63234",
"0.62837005",
"0.62296724",
"0.62211317",
"0.6197287",
"0.6187345",
"0.6175172",
"0.61683804",
"0.616712",
"0.6161089",
"0.61586016",
"0.61586016",
"0.6153537",
"0.61487806",
"0.6142396",
"0.611468",
"0.6113707",
"0.61130196",... | 0.0 | -1 |
Return list of items from values that are not in sieve. | def XpNf(hkxX, KwQv):
return [wEf2 for wEf2 in hkxX if wEf2 not in KwQv] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HRRO(KwQv):\n return [YRbF for YRbF, Ty9i in enumerate(KwQv) if Ty9i]",
"def tVok(hkxX, Q6uT):\n for ZfUD in Q6uT:\n if ZfUD not in hkxX:\n yield ZfUD",
"def KwQv(yXAe):\n return list(Yn7t(yXAe))",
"def NdUR(zyAh, sSaq):\n for YRbF in range(2, sSaq):\n if zyAh[YRbF] =... | [
"0.68290514",
"0.6534574",
"0.6419981",
"0.62810576",
"0.62718767",
"0.6205897",
"0.6136561",
"0.6098665",
"0.6013295",
"0.600476",
"0.5991886",
"0.59869736",
"0.5915345",
"0.5893112",
"0.5883273",
"0.5842418",
"0.5832324",
"0.57902133",
"0.5783464",
"0.5756454",
"0.57543355"... | 0.90435326 | 0 |
Copy values of settings related to extensions. | def c4Z9(YKHO, Elif):
Elif.useExtendedMasterSecret = YKHO.useExtendedMasterSecret
Elif.requireExtendedMasterSecret = YKHO.requireExtendedMasterSecret
Elif.useExperimentalTackExtension = YKHO.useExperimentalTackExtension
Elif.sendFallbackSCSV = YKHO.sendFallbackSCSV
Elif.useEncryptThenMAC = YKHO.useE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ajDm(YKHO, gCuF):\n for XLMv in YKHO.sections():\n for H5ew, BWXx in YKHO.items(XLMv):\n gCuF._set_direct('%s/%s' % (XLMv, H5ew), BWXx)",
"def cPWL(Emd4, gCuF):\n for H5ew, BWXx in Emd4.SETTINGS.iteritems():\n setattr(gCuF, H5ew, BWXx)",
"def EsCO(YKHO, gCuF):\n if not YKH... | [
"0.6393733",
"0.6238517",
"0.608783",
"0.5940507",
"0.591193",
"0.5878439",
"0.5871641",
"0.58619654",
"0.5810686",
"0.5796161",
"0.57870215",
"0.5780483",
"0.57590586",
"0.57351756",
"0.5704458",
"0.5701928",
"0.5674465",
"0.5656633",
"0.563907",
"0.5607393",
"0.55626565",
... | 0.72990024 | 0 |
Function returns kth largest element of the array arr. | def LKcM(ezWE: list, G1Hx: int):
if G1Hx > len(ezWE):
raise IndexError
xYvp = mBkc(ezWE)
for H5ew in sorted(xYvp, reverse=True):
if xYvp[H5ew] >= G1Hx:
return H5ew
else:
G1Hx -= xYvp[H5ew] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nwFd(YKHO, xYvp: List[int], G1Hx: int) -> int:\n return sorted(xYvp)[-G1Hx]",
"def rx0P(ezWE, G1Hx):\n print(' Amazon interview question')\n ezWE[:] = sorted(ezWE)\n return ezWE[len(ezWE) - G1Hx]",
"def fS9e(yv6U, G1Hx):\n ZFV4 = sorted([(wEf2, d6pt) for d6pt, wEf2 in enumerate(yv6U)])\n ... | [
"0.8239319",
"0.8185059",
"0.7342936",
"0.7302325",
"0.7260176",
"0.71511894",
"0.7093941",
"0.7041373",
"0.6886961",
"0.6805416",
"0.67292297",
"0.67229253",
"0.66168725",
"0.65874934",
"0.6574318",
"0.6528232",
"0.6458543",
"0.6446442",
"0.64453226",
"0.6426782",
"0.6398156... | 0.8680779 | 0 |
Returns a Queue instance, based on the naming conventions for naming the internal Redis keys. Can be used to reverselookup Queues by their Redis keys. | def bvQr(Emd4, MWHv, UzPC=None):
y0cW = Emd4.redis_queue_namespace_prefix
if not MWHv.startswith(y0cW):
raise ValueError('Not a valid RQ queue key: %s' % (MWHv,))
mWFP = MWHv[len(y0cW):]
return Emd4(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(Q64Y: str, **B2fa) -> g5js:\n return g5js(Q64Y, **B2fa)",
"def mSQt(mWFP):\n c9NQ = iVGz.resource('sqs')\n return c9NQ.get_queue_by_name(QueueName=mWFP)",
"def piF8(YKHO):\n qBaL = YKHO.cache.get('queue')\n gGq6 = jZ4I.literal_eval(qBaL.decode('utf-8'))\n return gGq6",
"async def g... | [
"0.75315624",
"0.67545503",
"0.671125",
"0.64585036",
"0.63612545",
"0.634525",
"0.63383913",
"0.6289547",
"0.62185454",
"0.60933477",
"0.60207605",
"0.590932",
"0.58856547",
"0.5863217",
"0.5863217",
"0.5863217",
"0.5863217",
"0.5863217",
"0.5863217",
"0.5863217",
"0.5863217... | 0.6954376 | 1 |
Returns whether the current queue is empty. | def FBfn(YKHO):
return YKHO.count.addCallback(lambda WKvO: WKvO == 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return not YKHO._queue"... | [
"0.91658485",
"0.9143935",
"0.9122913",
"0.9122913",
"0.91169757",
"0.91141385",
"0.91135883",
"0.90542364",
"0.9025458",
"0.89572537",
"0.89100605",
"0.8892409",
"0.8892409",
"0.8885007",
"0.88354754",
"0.88002664",
"0.8750151",
"0.8728153",
"0.86569214",
"0.8620383",
"0.857... | 0.0 | -1 |
Creates a human readable timestamp for a log records created date | def _LRs(AIu6):
E3oo = qcWV.fromtimestamp(AIu6.created)
return (E3oo.strftime('%y-%m-%d %H:%M:%S,%f'),) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jcqm():\n return str(qcWV.now().strftime('%Y%m%d'))",
"def IJ8b():\n return F803('%Y%m%dT%H%M%S')",
"def CtXp(YKHO):\n if not YKHO.logMessage is None:\n return YKHO.logMessage['date']",
"def qL1h(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date_time')",
"def ghLW() -> str:\n re... | [
"0.75440264",
"0.7430879",
"0.7421513",
"0.7401074",
"0.7395671",
"0.7369621",
"0.7369621",
"0.7369621",
"0.7242946",
"0.71840227",
"0.71748006",
"0.7135654",
"0.7042526",
"0.70321727",
"0.7023399",
"0.7016882",
"0.7005842",
"0.6996357",
"0.69534373",
"0.695168",
"0.6949026",... | 0.82257223 | 0 |
Returns TRUE if is a simple name, i.e. a variable | def kL6g(YKHO, A0cm):
return not YKHO.contains(A0cm, '()&|>#') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IKfL(d7pR: Expr) -> bool:\n return str(d7pR)[0].islower()",
"def u5HC(YKHO, mWFP):\n if mWFP in XaBL or ZbWC.match('^str[0-9]+$', mWFP):\n return False\n return True if DDeQ.match(mWFP) else False",
"def MPxP(YKHO):\n return YKHO._name != ''",
"def u5HC(YKHO, mWFP):\n if mWFP in XaB... | [
"0.7559958",
"0.7335903",
"0.7318223",
"0.72577274",
"0.7211276",
"0.7190335",
"0.71310145",
"0.7034176",
"0.6981017",
"0.69023615",
"0.68884474",
"0.6868805",
"0.68431044",
"0.6798527",
"0.67605734",
"0.67360294",
"0.67237914",
"0.67007697",
"0.6686572",
"0.66413504",
"0.660... | 0.0 | -1 |
Receives a datetime object and converts/returns a readable string using TIME_OFFSETS | def F2p1(_c1T):
if not type(_c1T) == qcWV:
raise ValueError('the mistake of time format :(')
hixv = (HMRb - _c1T).days
if hixv < 0:
raise ValueError('back to the future :)')
if hixv >= 2:
return _c1T.strftime('%m/%d/%y')
KALl = (HMRb - _c1T).seconds + hixv * fDD5
for Zsej... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V5y4(cnXg):\n return cnXg.strftime('%Y-%m-%d %H:%M:%S') + ' UTC'",
"def hLAQ(YEnM: 'datetime') -> str:\n if YEnM.tzinfo is not None and YEnM.tzinfo.utcoffset(YEnM) is not None:\n YEnM = YEnM.astimezone(rIAI.utc)\n YEnM = YEnM.replace(tzinfo=None)\n return YEnM.isoformat() + 'Z'",
"def Ee... | [
"0.6418073",
"0.63996863",
"0.63537246",
"0.6300806",
"0.6196256",
"0.6168139",
"0.6167333",
"0.6144194",
"0.61431414",
"0.61418384",
"0.61122686",
"0.60789824",
"0.6055",
"0.6033069",
"0.60270244",
"0.60261077",
"0.6024031",
"0.6003754",
"0.5999002",
"0.5996622",
"0.5992118"... | 0.0 | -1 |
cast(itkLightObject obj) > itkMultipleValuedCostFunction | def YWvJ(*qIxc):
return RYuP.itkMultipleValuedCostFunction_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpVm(*qIxc):\n return RYuP.itkMultipleValuedCostFunction_cast(*qIxc)",
"def wSc6(*qIxc):\n return RYuP.itkSingleValuedCostFunction_cast(*qIxc)",
"def Yblk(*qIxc):\n return RYuP.itkCostFunction_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkSingleValuedCostFunction_cast(*qIxc)",
"def hjvJ(... | [
"0.68567395",
"0.6773496",
"0.66973597",
"0.60631686",
"0.6060822",
"0.605731",
"0.6044652",
"0.6036246",
"0.6025099",
"0.60049087",
"0.5984869",
"0.5977172",
"0.5970118",
"0.59609",
"0.5955341",
"0.5954479",
"0.5938679",
"0.5938515",
"0.5915387",
"0.59153557",
"0.5897448",
... | 0.6191864 | 3 |
itkMultipleValuedCostFunction_cast(itkLightObject obj) > itkMultipleValuedCostFunction | def KpVm(*qIxc):
return RYuP.itkMultipleValuedCostFunction_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wSc6(*qIxc):\n return RYuP.itkSingleValuedCostFunction_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkMultipleValuedCostFunction_cast(*qIxc)",
"def Yblk(*qIxc):\n return RYuP.itkCostFunction_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkSingleValuedCostFunction_cast(*qIxc)",
"def YWvJ(... | [
"0.74155736",
"0.7088268",
"0.7025455",
"0.675666",
"0.6262628",
"0.62276316",
"0.61747235",
"0.6164341",
"0.6148341",
"0.6146601",
"0.6146601",
"0.61123735",
"0.6100914",
"0.60832304",
"0.60732114",
"0.60649455",
"0.6055226",
"0.6052216",
"0.60455227",
"0.60082674",
"0.60068... | 0.7812542 | 0 |
__init__(self, itkMultipleValuedVnlCostFunctionAdaptor arg0) > itkMultipleValuedVnlCostFunctionAdaptor __init__(self, unsigned int spaceDimension, unsigned int numberOfValues) > itkMultipleValuedVnlCostFunctionAdaptor | def FIMM(YKHO, *qIxc):
RYuP.itkMultipleValuedVnlCostFunctionAdaptor_swiginit(YKHO, RYuP.new_itkMultipleValuedVnlCostFunctionAdaptor(*qIxc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc):\n RYuP.itkSingleValuedVnlCostFunctionAdaptor_swiginit(YKHO, RYuP.new_itkSingleValuedVnlCostFunctionAdaptor(*qIxc))",
"def FIMM(YKHO):\n YKHO.counts = [0] * 10\n YKHO.values = [0] * 10\n YKHO.softmaxvalues = [0] * 10\n YKHO.t = 0.3",
"def oW_4(*qIxc, **PECO):\n YEnM = ta... | [
"0.8038969",
"0.6591238",
"0.65163654",
"0.65163654",
"0.6435984",
"0.643533",
"0.64204484",
"0.6357679",
"0.6320587",
"0.6275293",
"0.62540746",
"0.6233346",
"0.62326366",
"0.62116253",
"0.6208342",
"0.6203066",
"0.6199327",
"0.6198185",
"0.6181563",
"0.6154848",
"0.6147635"... | 0.83159935 | 0 |
New() > itkSingleValuedCostFunction Create a new object of the class itkSingleValuedCostFunction and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the fir... | def oW_4(*qIxc, **PECO):
YEnM = dpyg.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = tah0.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = tah0.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7723821",
"0.7723821",
"0.7121841",
"0.68110704",
"0.6725217",
"0.6415977",
"0.61406636",
"0.613606",
"0.61343974",
"0.6119916",
"0.6068808",
"0.60300875",
"0.59698987",
"0.59527266",
"0.59503216",
"0.59495646",
"0.59379244",
"0.5934891",
"0.5923206",
"0.5923037",
"0.59203... | 0.80295295 | 0 |
__init__(self, itkSingleValuedVnlCostFunctionAdaptor arg0) > itkSingleValuedVnlCostFunctionAdaptor __init__(self, unsigned int spaceDimension) > itkSingleValuedVnlCostFunctionAdaptor | def FIMM(YKHO, *qIxc):
RYuP.itkSingleValuedVnlCostFunctionAdaptor_swiginit(YKHO, RYuP.new_itkSingleValuedVnlCostFunctionAdaptor(*qIxc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc):\n RYuP.itkMultipleValuedVnlCostFunctionAdaptor_swiginit(YKHO, RYuP.new_itkMultipleValuedVnlCostFunctionAdaptor(*qIxc))",
"def FIMM(YKHO):\n super().__init__()\n YKHO.lambdaVar = 1.0\n YKHO.k = 1.0\n YKHO.type = 'Weibull'\n YKHO.distType = 'Continuous'\n YKHO.low = 0.0\... | [
"0.7685287",
"0.64842904",
"0.6394776",
"0.6361042",
"0.63502413",
"0.6340219",
"0.63308734",
"0.6323486",
"0.63199824",
"0.62925303",
"0.629233",
"0.6268257",
"0.62559795",
"0.6255175",
"0.6249225",
"0.6231415",
"0.62258214",
"0.62257004",
"0.62199414",
"0.6209779",
"0.62073... | 0.80749786 | 0 |
New() > itkCumulativeGaussianCostFunction Create a new object of the class itkCumulativeGaussianCostFunction and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named paramete... | def oW_4(*qIxc, **PECO):
YEnM = Ulip.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hoxq(YKHO, *qIxc):\n return RYuP.itkCumulativeGaussianCostFunction_Initialize(YKHO, *qIxc)",
"def oW_4(*qIxc, **PECO):\n YEnM = dpyg.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = tah0.__New_orig__()\n impor... | [
"0.76406366",
"0.6777402",
"0.6644777",
"0.6644777",
"0.65909535",
"0.63629323",
"0.6212108",
"0.59742695",
"0.5970456",
"0.59307927",
"0.5881906",
"0.5835621",
"0.58244735",
"0.58137393",
"0.5791065",
"0.5779603",
"0.5729771",
"0.56756324",
"0.5662055",
"0.56127125",
"0.5609... | 0.82282716 | 0 |
cast(itkLightObject obj) > itkShapePriorMAPCostFunctionBaseID2D | def YWvJ(*qIxc):
return RYuP.itkShapePriorMAPCostFunctionBaseID2D_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwLC(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseID2D_cast(*qIxc)",
"def LRDP(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID2D_cast(*qIxc)",
"def zaSc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF2F_cast(*qIxc)",
"def b7Vx(*qIxc):\n return RYuP.itkShapePriorMAPCostF... | [
"0.7402193",
"0.736436",
"0.6932077",
"0.6825769",
"0.67275953",
"0.66758806",
"0.6536828",
"0.64221704",
"0.6349755",
"0.63437295",
"0.62780184",
"0.627702",
"0.6260978",
"0.624791",
"0.6245359",
"0.6190462",
"0.61855584",
"0.6162477",
"0.61377466",
"0.61098933",
"0.61024517... | 0.67980325 | 4 |
New() > itkShapePriorMAPCostFunctionBaseID2D Create a new object of the class itkShapePriorMAPCostFunctionBaseID2D and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = KWwv.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = B6yp.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = xxer.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7859559",
"0.72506917",
"0.7111656",
"0.6952734",
"0.6752223",
"0.6688855",
"0.66374797",
"0.66074467",
"0.6545098",
"0.6496016",
"0.6473271",
"0.6472858",
"0.6455897",
"0.64059615",
"0.64023423",
"0.63349795",
"0.63248104",
"0.6269903",
"0.6254803",
"0.62450993",
"0.62361... | 0.80188876 | 0 |
itkShapePriorMAPCostFunctionBaseID2D_cast(itkLightObject obj) > itkShapePriorMAPCostFunctionBaseID2D | def rwLC(*qIxc):
return RYuP.itkShapePriorMAPCostFunctionBaseID2D_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LRDP(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID2D_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseID2D_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID2D_cast(*qIxc)",
"def zaSc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunct... | [
"0.8059939",
"0.741364",
"0.7310701",
"0.7218592",
"0.6999392",
"0.6989232",
"0.67793167",
"0.6531053",
"0.6515155",
"0.6418107",
"0.63821524",
"0.63667536",
"0.6357133",
"0.6297474",
"0.62740946",
"0.62629515",
"0.6228706",
"0.62225485",
"0.6216169",
"0.61915874",
"0.6162562... | 0.8146036 | 0 |
cast(itkLightObject obj) > itkShapePriorMAPCostFunctionBaseID3D | def YWvJ(*qIxc):
return RYuP.itkShapePriorMAPCostFunctionBaseID3D_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZHkd(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseID3D_cast(*qIxc)",
"def axMc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID3D_cast(*qIxc)",
"def leCT(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc)",
"def UpmD(*qIxc):\n return RYuP.itkShapePriorMAPCostF... | [
"0.765587",
"0.7590273",
"0.7241004",
"0.7191077",
"0.69812584",
"0.68650025",
"0.68480945",
"0.67250085",
"0.67246157",
"0.6723659",
"0.66978204",
"0.66961163",
"0.6691662",
"0.6682997",
"0.6675467",
"0.66576064",
"0.6637757",
"0.66243994",
"0.6619101",
"0.66139716",
"0.6611... | 0.7022614 | 4 |
New() > itkShapePriorMAPCostFunctionBaseID3D Create a new object of the class itkShapePriorMAPCostFunctionBaseID3D and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = b39Q.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = aF76.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = XbvU.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.81509084",
"0.75158095",
"0.74788725",
"0.70048195",
"0.6930799",
"0.6778899",
"0.67786765",
"0.6765041",
"0.6734921",
"0.6649917",
"0.6607235",
"0.66031843",
"0.65964043",
"0.6546659",
"0.6528885",
"0.65001625",
"0.64995486",
"0.6495318",
"0.64883286",
"0.64736485",
"0.64... | 0.82873875 | 0 |
itkShapePriorMAPCostFunctionBaseID3D_cast(itkLightObject obj) > itkShapePriorMAPCostFunctionBaseID3D | def ZHkd(*qIxc):
return RYuP.itkShapePriorMAPCostFunctionBaseID3D_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axMc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID3D_cast(*qIxc)",
"def leCT(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc)",
"def UpmD(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunct... | [
"0.82259583",
"0.76284313",
"0.7584132",
"0.7522367",
"0.7500625",
"0.68675256",
"0.6863805",
"0.68413615",
"0.68204564",
"0.68165815",
"0.6795051",
"0.6782787",
"0.6776827",
"0.6765706",
"0.67442673",
"0.6735905",
"0.6729121",
"0.67268574",
"0.67170894",
"0.66971713",
"0.669... | 0.8269036 | 0 |
cast(itkLightObject obj) > itkShapePriorMAPCostFunctionBaseIF2F | def YWvJ(*qIxc):
return RYuP.itkShapePriorMAPCostFunctionBaseIF2F_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zaSc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF2F_cast(*qIxc)",
"def b7Vx(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF2F_cast(*qIxc)",
"def leCT(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostF... | [
"0.7732978",
"0.76513124",
"0.7143757",
"0.70580995",
"0.7009345",
"0.6803063",
"0.67561036",
"0.66619277",
"0.66618305",
"0.66050565",
"0.6483759",
"0.6461715",
"0.6449706",
"0.6404627",
"0.64021987",
"0.6369229",
"0.63311225",
"0.6320394",
"0.6312051",
"0.62927467",
"0.6274... | 0.7132708 | 3 |
New() > itkShapePriorMAPCostFunctionBaseIF2F Create a new object of the class itkShapePriorMAPCostFunctionBaseIF2F and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = xxer.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = T6wb.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = KWwv.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.79926646",
"0.7676445",
"0.7589776",
"0.75172645",
"0.73620135",
"0.6886727",
"0.68273354",
"0.6432282",
"0.6349666",
"0.62498766",
"0.62194204",
"0.6216748",
"0.61991113",
"0.6192615",
"0.6185199",
"0.61798614",
"0.61431026",
"0.6082182",
"0.60580087",
"0.60551614",
"0.60... | 0.8114097 | 0 |
itkShapePriorMAPCostFunctionBaseIF2F_cast(itkLightObject obj) > itkShapePriorMAPCostFunctionBaseIF2F | def zaSc(*qIxc):
return RYuP.itkShapePriorMAPCostFunctionBaseIF2F_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7Vx(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF2F_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF2F_cast(*qIxc)",
"def leCT(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostF... | [
"0.81383324",
"0.76122206",
"0.76005226",
"0.75105363",
"0.74460924",
"0.73059297",
"0.71942693",
"0.71331555",
"0.70842826",
"0.6861749",
"0.676298",
"0.6663682",
"0.6600659",
"0.65509576",
"0.65186906",
"0.6431403",
"0.6402381",
"0.6400854",
"0.63979787",
"0.63807166",
"0.6... | 0.82572144 | 0 |
cast(itkLightObject obj) > itkShapePriorMAPCostFunctionBaseIF3F | def YWvJ(*qIxc):
return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leCT(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc)",
"def UpmD(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)",
"def zaSc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF2F_cast(*qIxc)",
"def b7Vx(*qIxc):\n return RYuP.itkShapePriorMAPCostF... | [
"0.7795408",
"0.76776487",
"0.72645265",
"0.7242612",
"0.712184",
"0.7072205",
"0.6929815",
"0.68027264",
"0.676116",
"0.67082465",
"0.6673979",
"0.66652864",
"0.6657718",
"0.65898156",
"0.6581608",
"0.6558047",
"0.65441793",
"0.6537029",
"0.6528598",
"0.6525689",
"0.6507767"... | 0.71879184 | 4 |
New() > itkShapePriorMAPCostFunctionBaseIF3F Create a new object of the class itkShapePriorMAPCostFunctionBaseIF3F and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = XbvU.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = veXV.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = b39Q.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.82073593",
"0.78588796",
"0.7847664",
"0.7519005",
"0.74740106",
"0.7001361",
"0.6984212",
"0.67322737",
"0.6636905",
"0.6616767",
"0.66042227",
"0.6585948",
"0.6546605",
"0.65184456",
"0.6460646",
"0.64299595",
"0.64247364",
"0.64082634",
"0.6389345",
"0.6384726",
"0.6376... | 0.82622445 | 0 |
itkShapePriorMAPCostFunctionBaseIF3F_cast(itkLightObject obj) > itkShapePriorMAPCostFunctionBaseIF3F | def leCT(*qIxc):
return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpmD(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc)",
"def ZHkd(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseID3D_cast(*qIxc)",
"def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostF... | [
"0.8265341",
"0.7664924",
"0.76572436",
"0.76225877",
"0.75587803",
"0.74810505",
"0.74673444",
"0.7175391",
"0.7102072",
"0.6909219",
"0.6894713",
"0.68894976",
"0.685522",
"0.67930603",
"0.6727198",
"0.6714276",
"0.67098135",
"0.6692786",
"0.66739315",
"0.6653093",
"0.66158... | 0.8349684 | 0 |