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 |
|---|---|---|---|---|---|---|
Add a node into the frontier. | def H2v5(YKHO, Q6kx):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)",
"def aZVs(YKHO, Q6kx):\n YKHO.nodeList.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.__n... | [
"0.8194826",
"0.8122134",
"0.8122134",
"0.8082923",
"0.7942455",
"0.78872925",
"0.7857563",
"0.7857532",
"0.7848352",
"0.7794132",
"0.7762352",
"0.774575",
"0.7702875",
"0.76944464",
"0.7625508",
"0.7625508",
"0.759567",
"0.7552221",
"0.7537934",
"0.74653125",
"0.74629015",
... | 0.7406831 | 22 |
Return a node from a frontier and remove it. Returns EightPuzzleNode Raises IndexError if the frontier is empty. | def next(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_1Z(wH8M, E3D9):\n for Q6kx in list(wH8M):\n for YRbF in [YRbF for YRbF in wH8M if YRbF != Q6kx]:\n if Q6kx not in wH8M:\n continue\n if wH8M[YRbF] == wH8M[Q6kx]:\n continue\n if YRbF not in E3D9.roads[Q6kx]:\n continue\n ... | [
"0.6734171",
"0.65613633",
"0.63198686",
"0.62647027",
"0.6232745",
"0.6141067",
"0.613227",
"0.6123908",
"0.61125237",
"0.60690725",
"0.6035188",
"0.6030791",
"0.60018474",
"0.5988981",
"0.5976975",
"0.5947552",
"0.58853745",
"0.58851004",
"0.5875435",
"0.5853034",
"0.584459... | 0.0 | -1 |
Add a node into the frontier. | def H2v5(YKHO, Q6kx):
for exwG in YKHO.stack:
if exwG.state == Q6kx.state:
return None
YKHO.stack.append(Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)",
"def aZVs(YKHO, Q6kx):\n YKHO.nodeList.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.__n... | [
"0.81947356",
"0.81218415",
"0.81218415",
"0.80822945",
"0.79423964",
"0.7886899",
"0.78576076",
"0.7856611",
"0.7848296",
"0.7794346",
"0.7761065",
"0.77445275",
"0.77028215",
"0.769449",
"0.76267666",
"0.76267666",
"0.75954187",
"0.755215",
"0.7538047",
"0.7464737",
"0.7463... | 0.0 | -1 |
Return a node from a frontier and remove it. Returns EightPuzzleNode Raises IndexError if the frontier is empty. | def next(YKHO):
return YKHO.stack.pop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_1Z(wH8M, E3D9):\n for Q6kx in list(wH8M):\n for YRbF in [YRbF for YRbF in wH8M if YRbF != Q6kx]:\n if Q6kx not in wH8M:\n continue\n if wH8M[YRbF] == wH8M[Q6kx]:\n continue\n if YRbF not in E3D9.roads[Q6kx]:\n continue\n ... | [
"0.6733775",
"0.6560183",
"0.63190365",
"0.62641674",
"0.6231662",
"0.6140336",
"0.61316127",
"0.61226535",
"0.6111839",
"0.6068235",
"0.6034529",
"0.6029602",
"0.6001321",
"0.59875566",
"0.5976675",
"0.59473723",
"0.588677",
"0.5884813",
"0.58748984",
"0.585236",
"0.58434767... | 0.0 | -1 |
Gets the default Python logger. | def Vgix():
G9jH.basicConfig(level=fEmw)
return G9jH.getLogger('PyPlan') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vgix():\n global _LOGGER, _SOUT_HANDLER\n if vzeF is None:\n vzeF = G9jH.getLogger('default')\n eHNT = UEdr()\n pJCw = BZBp(HwRy.stdout)\n pJCw.setFormatter(eHNT)\n vzeF.addHandler(pJCw)\n vzeF.setLevel(G9jH.INFO)\n return vzeF",
"def fZx2():\n return vze... | [
"0.82607806",
"0.8071274",
"0.8066732",
"0.8006725",
"0.79673886",
"0.7959066",
"0.79477054",
"0.7904842",
"0.7894973",
"0.7862765",
"0.7862765",
"0.7862765",
"0.77851564",
"0.77811444",
"0.77537745",
"0.7717211",
"0.7671891",
"0.7670572",
"0.7666827",
"0.7626677",
"0.7625019... | 0.8642081 | 0 |
forward prop the network. A trainer will pass in is_training = true | def KVH6(YKHO, cAlv, LT6S=False):
u_ln = YKHO.layers[0].forward(cAlv, LT6S)
for gEmA in YKHO.layers[1:]:
u_ln = gEmA.forward(u_ln, LT6S)
return u_ln | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yorg(YKHO, Cptt, Y9ns=True) -> zOoJ:\n pass",
"def c0cS(YKHO, WbAn):\n YKHO.input = WbAn\n YKHO.output = YKHO.activation(YKHO.input)\n return YKHO.output",
"def c0cS(YKHO, input):\n raise NotImplementedError",
"def _nGW(YKHO, Wc9F, YPaw):\n return YKHO.net()",
"def ug5M(VQ6Z):\n yV... | [
"0.70364887",
"0.6876923",
"0.67243296",
"0.6700986",
"0.67001855",
"0.6666477",
"0.6643947",
"0.65991265",
"0.65901226",
"0.65893793",
"0.65605336",
"0.65530807",
"0.6524631",
"0.6491018",
"0.6481509",
"0.6475852",
"0.6470352",
"0.64591616",
"0.6444746",
"0.64391226",
"0.641... | 0.68956524 | 1 |
Basic constructor for the Weapons panel | def FIMM(YKHO, _AKB, R_7p=0):
inYF.__init__(YKHO, _AKB)
global Config, DataWeapons, DataStates, DataAnimations, DataElements
try:
IDBL = o9bN.GlobalObjects['PROJECT']
rOQh = IDBL.getData('Weapons')
syKn = IDBL.getData('Animations')
AZa9 = IDBL.getData('States')
vfeB =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, F1OP={'max_health': 10}, mWFP=\"Doran's Shield\"):\n kLxY.__init__(YKHO, F1OP, mWFP)\n YKHO.modifiers = F1OP\n YKHO.name = mWFP",
"def FIMM(YKHO, F1OP={'health': 80}, mWFP=\"Doran's Shield\"):\n kLxY.__init__(YKHO, F1OP, mWFP)\n YKHO.modifiers = F1OP\n YKHO.name = mWFP",
"def F... | [
"0.7019594",
"0.7012504",
"0.69426",
"0.68245035",
"0.6774246",
"0.6760596",
"0.6703437",
"0.6667931",
"0.6616476",
"0.658492",
"0.65748847",
"0.65196913",
"0.651841",
"0.6477903",
"0.64718497",
"0.6455555",
"0.64494574",
"0.6430055",
"0.63853765",
"0.6380019",
"0.6379225",
... | 0.79131716 | 0 |
Set the selected weapon's magical defense | def NiwX(YKHO, tvqc):
YKHO.SelectedWeapon.note = tvqc.GetString() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ar1g(YKHO, cJcF):\n YKHO.defense = cJcF",
"def iqFZ(x2cn, pan_):\n pan_.receive_damage(x2cn.dmg)",
"def iqFZ(x2cn, pan_):\n pan_.receive_damage(x2cn.dmg)",
"def z6_D(YKHO, xT8c='Banana'):\n YKHO.weapon = xT8c",
"def z6_D(YKHO, xT8c: Literal['sword', 'axe', 'knife', 'bow']) -> None:\n mrP... | [
"0.73586327",
"0.6584236",
"0.6584236",
"0.6465777",
"0.64602226",
"0.63092613",
"0.62441415",
"0.62202084",
"0.61793935",
"0.61705923",
"0.61580294",
"0.6148515",
"0.6148515",
"0.6148515",
"0.6148515",
"0.6122226",
"0.60416585",
"0.6019552",
"0.5941281",
"0.59399074",
"0.593... | 0.0 | -1 |
Takes in list of words, removes all words that don't start with caps, but only if length <= 4. Otherwise, it drops too many. Returns list. Meant to minimize garbage words included in search (und, and, de, y, etc) | def BFN1(R7S5):
Lsb_ = []
for GIN8 in R7S5.split():
GIN8 = F7Se(GIN8)
if GIN8[0].isupper() or len(GIN8) >= 4:
Lsb_.append(str(GIN8.upper()))
OR9D = ' '.join(Lsb_)
return OR9D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vl6w():\n bo34.info('Getting word list and filtering ...')\n V22M = []\n with open('/usr/share/dict/words') as eHNT:\n for GIN8 in eHNT:\n GIN8 = GIN8[:-1]\n if GIN8.isalpha() and GIN8 == GIN8.lower() and all((ord(Z9rn) < 128 for Z9rn in GIN8)):\n V22M.appen... | [
"0.72521156",
"0.7080704",
"0.6826974",
"0.6813347",
"0.68110955",
"0.6777491",
"0.6749198",
"0.6689499",
"0.66859424",
"0.6685705",
"0.6669058",
"0.66393566",
"0.66384834",
"0.66376007",
"0.65985405",
"0.6581649",
"0.6576924",
"0.6576099",
"0.6563162",
"0.6558321",
"0.653090... | 0.0 | -1 |
Takes in string, removes punctuation, returns string sans punctuation. | def F5TV(RC9w):
_eJK = ZbWC.sub('[^\\w\\s]', ' ', RC9w)
st9m = ZbWC.sub(' +', ' ', _eJK)
return st9m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yri_(NPoT):\n return ''.join([hcXw for hcXw in NPoT if hcXw not in pC3l])",
"def Rt_s(KCHu):\n return ''.join((Z9rn for Z9rn in KCHu if Z9rn not in pC3l))",
"def Rt_s(KCHu):\n return ''.join((Npgh for Npgh in KCHu if Npgh not in vIwR.punctuation))",
"def yri_(NPoT: str):\n J8oL = {ord(Z9rn): ... | [
"0.8824476",
"0.8780549",
"0.8714364",
"0.8711101",
"0.861351",
"0.8580653",
"0.84882945",
"0.8462639",
"0.8451727",
"0.839948",
"0.83834636",
"0.83486736",
"0.83003795",
"0.8288591",
"0.8285514",
"0.8188461",
"0.81644744",
"0.8121824",
"0.8115265",
"0.81102073",
"0.81102073"... | 0.8020787 | 27 |
Makes a completely random move given the game dimensions. Mostly just useful for a POC, but could also be used as a baseline to benchmark other algorithms. | def opqv(yokr=None) -> nLNb:
ah4R = Y9U_(W4ps, HnGr, VIqO)
return rYAo(ah4R, seed=yokr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKSy(YKHO):\n XSoh = oyIN.random.choice(YKHO.game.legal_moves)\n YKHO.game.move_board(XSoh)",
"def EY2w(YKHO):\n ITS7.sleep(0.1)\n TUcM = [(0, 1), (1, 0), (-1, 0), (0, -1)]\n tuKI.shuffle(TUcM)\n for XSoh in TUcM:\n Kz53 = YKHO.move_worm(XSoh)\n if Kz53[0] == NATS:\n ... | [
"0.74316716",
"0.7164061",
"0.70404553",
"0.7029826",
"0.7029826",
"0.69641626",
"0.68913746",
"0.6778755",
"0.67684853",
"0.6735912",
"0.67291695",
"0.67235637",
"0.6703361",
"0.66464955",
"0.6614394",
"0.66116714",
"0.66058534",
"0.65969104",
"0.655236",
"0.6552048",
"0.654... | 0.0 | -1 |
Create an xarray.DataArray for storing spectrum data with correct dimensions, coordinates, names, and units. | def BQe9(nPrm, f8a3, TUcM, mWFP, rYO3):
assert isinstance(nPrm, oyIN.ndarray), 'data must be an array'
assert isinstance(f8a3, oyIN.ndarray), 'frequencies must be an array'
assert isinstance(TUcM, oyIN.ndarray), 'directions must be an array'
assert isinstance(mWFP, str), 'name must be a string'
asse... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJBP(r8hN):\n import xarray as zuVY\n from pandas import to_datetime\n SG6Y = zuVY.DataArray(r8hN.data.reshape(r8hN.ncols, r8hN.nrows, order='C')[::-1, :], dims=('x', 'y'))\n SG6Y.attrs['long_name'] = r8hN.band\n SG6Y.attrs['product'] = r8hN.product\n SG6Y.attrs['cellsize'] = r8hN.cellsize\n ... | [
"0.68475986",
"0.6751029",
"0.66754895",
"0.66671187",
"0.6459788",
"0.63894063",
"0.63778955",
"0.632643",
"0.62670547",
"0.62588733",
"0.6245381",
"0.6233613",
"0.62265164",
"0.6225446",
"0.6225446",
"0.6223554",
"0.62163705",
"0.6185059",
"0.61696273",
"0.61674684",
"0.615... | 0.7200049 | 0 |
Translate agent's action into an order and submit order to broker. | def HP4c(YKHO, XeOP: int) -> (float, float):
return (0.0, 0.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n66I(YKHO, vCRy, XeOP, iTlw, hI0L, y7DO, P69d, anki='GTC'):\n gCOy = L9Jq()\n gCOy.action = XeOP\n gCOy.orderType = y7DO\n gCOy.totalQuantity = iTlw\n gCOy.lmtPrice = hI0L\n gCOy.tif = anki\n gCOy.transmit = True\n S2rF = YKHO.place_new_IB_order(vCRy, gCOy, orderid=P69d)\n print('Pla... | [
"0.6495954",
"0.6489583",
"0.6455909",
"0.64165086",
"0.6290992",
"0.621297",
"0.60833156",
"0.60823035",
"0.6069697",
"0.6060603",
"0.6043729",
"0.60358346",
"0.60358346",
"0.6030013",
"0.59538305",
"0.59218967",
"0.5909782",
"0.59043175",
"0.58839583",
"0.5873983",
"0.58487... | 0.0 | -1 |
Set random seed in environment. | def yokr(YKHO, yokr: int=1) -> list:
YKHO._random_state = oyIN.random.RandomState(seed=yokr)
YKHO._seed = yokr
return [yokr] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BpNF(YKHO, yokr):\n YKHO.env.seed(yokr)\n oyIN.random.seed(yokr)\n tuKI.seed(yokr)",
"def e3of(yokr):\n PVng(yokr)",
"def e3of(YKHO, yokr):\n Yg1o.env_config_game(YKHO.game, b'seed', gk2W.byref(gk2W.c_int(yokr)))",
"def fwb1(YKHO, yokr: int):\n tuKI.seed(yokr)\n oyIN.random.seed(yokr... | [
"0.84243643",
"0.8247931",
"0.8027898",
"0.7982396",
"0.79633087",
"0.7933567",
"0.7929134",
"0.79287064",
"0.7907588",
"0.79073834",
"0.79060805",
"0.78766173",
"0.7860915",
"0.7848526",
"0.783018",
"0.7826698",
"0.78185236",
"0.78114605",
"0.7810471",
"0.78085667",
"0.77977... | 0.0 | -1 |
Calculate the MSE error for the set of training data. | def N77f(YKHO):
return oyIN.mean(oyIN.square(YKHO._output - YKHO._y)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K9sQ(YKHO, qqqI=True):\n hkHB = 0\n gEVc = YKHO.data.observed_train if qqqI else YKHO.data.observed_test\n\n def lcsm(CBIr, ZfUD):\n if qqqI:\n return YKHO.data.get_rating(CBIr, ZfUD)\n return YKHO.data.get_rating(CBIr, ZfUD, from_train=False)\n for CBIr, ZfUD in gEVc:\n ... | [
"0.7361177",
"0.7327419",
"0.71751606",
"0.7157961",
"0.71102965",
"0.7106982",
"0.71003336",
"0.7038541",
"0.7004601",
"0.6990123",
"0.69457966",
"0.6935766",
"0.69351053",
"0.6913276",
"0.6905976",
"0.68854296",
"0.6880907",
"0.68752074",
"0.6874834",
"0.6841327",
"0.683534... | 0.0 | -1 |
Counts how many times each codon appears in a sequence, and returns a dictionary with codon counts. | def BBqW(YKHO, Q6uT):
assert len(Q6uT) % 3 == 0
BWz1 = YKHO.zero_codon_counts.copy()
for YRbF in range(int(len(Q6uT) / 3)):
PFFG = str(Q6uT[3 * YRbF:3 * YRbF + 3])
if PFFG in BWz1:
BWz1[PFFG] += 1
return BWz1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BBqW(aWuw):\n import re\n OUqq = re.findall('\\\\w\\\\w\\\\w', aWuw)\n PhVH = {}\n for PFFG in OUqq:\n if PFFG not in PhVH:\n PhVH[PFFG] = 1\n else:\n PhVH[PFFG] += 1\n return PhVH",
"def s1pA():\n sbKV = WVlS()\n kZEY = []\n KAH6 = {}\n for Ouxc... | [
"0.8878072",
"0.76606584",
"0.74702555",
"0.74201536",
"0.728727",
"0.7281218",
"0.71723443",
"0.7167728",
"0.7069735",
"0.7034166",
"0.7030637",
"0.69848907",
"0.69671893",
"0.69603914",
"0.69581324",
"0.69581324",
"0.69581324",
"0.69512737",
"0.6932516",
"0.69322854",
"0.69... | 0.8052941 | 1 |
Calculates the relative frequencies of different codons in the same codon family. Stop codons are ignored. Returns a dictionary with relative frequencies, normalized such that they sum to one within each aminoacid family (i.e., the total sum over all families is one). | def dYZ8(YKHO, Q6uT, _RR0=HwRy.stdout, wp5n=0):
BWz1 = YKHO.count_codons(Q6uT)
if wp5n > 1:
_RR0.write('--Absolute counts--\n')
YKHO.print_codon_freqs(BWz1, _RR0)
for D9cM in mxvh:
if D9cM == '*':
continue
OUqq = mxvh[D9cM]
oou7 = {Z9rn: BWz1[Z9rn] for Z9r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S7Os():\n sbKV = WVlS()\n De5W = {}\n for Ouxc in sbKV:\n for PFFG in Ouxc:\n De5W[PFFG] = round(Ouxc.count(PFFG) / sum(mL0C().values()) * 100, 2)\n return De5W",
"def otLC(xDcj):\n sbKV = cjQj(xDcj)\n eqFr = {}\n for PFFG in sbKV:\n eqFr[PFFG] = round(sbKV.count... | [
"0.7389289",
"0.68444467",
"0.68144256",
"0.6372546",
"0.60707885",
"0.6030936",
"0.5937483",
"0.5929983",
"0.5901641",
"0.5829208",
"0.5811988",
"0.58087575",
"0.5793269",
"0.5757228",
"0.57547885",
"0.56987375",
"0.56630886",
"0.56577563",
"0.5656759",
"0.5632638",
"0.56308... | 0.6609379 | 3 |
Count the number of differences between two sequences of the same length. | def pzoV(YKHO, wxdF, O48g):
assert len(wxdF) == len(O48g)
ezF6 = sum((1 for jzdc, Fg_i in zip(wxdF, O48g) if jzdc != Fg_i))
return ezF6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vdvU(wxdF: str, O48g: str) -> int:\n ezF6 = 0\n for YRbF in range(len(wxdF)):\n if not wxdF[YRbF] == O48g[YRbF]:\n ezF6 += 1\n return ezF6",
"def pSI9(YKHO, wxdF, O48g):\n ROyx = len(wxdF)\n ewCu = 0\n for YRbF in range(0, ROyx):\n if wxdF[YRbF] != O48g[YRbF]:\n ... | [
"0.77260995",
"0.75999177",
"0.75612324",
"0.7553649",
"0.724475",
"0.71684635",
"0.6955977",
"0.6799988",
"0.6796675",
"0.67794174",
"0.67514104",
"0.6743206",
"0.6686325",
"0.66489697",
"0.6610137",
"0.66071606",
"0.6565049",
"0.6557108",
"0.65474534",
"0.6494267",
"0.64926... | 0.8215209 | 0 |
testing check_job_canceled in multiple theads. | def rcAV(YKHO):
h4WK = YKHO.thread_count
NjXy = W7aK.objects.count()
WL52 = YKHO.method_runner
ZlWo = bNSJ()
ZlWo['job_reqs'] = Jpqy(1, 1, 1, 'njs')
meDY = WL52.get_runjob()._init_job_rec(YKHO.user_id, ZlWo)
KDyd = WL52.get_runjob()._init_job_rec(YKHO.user_id, ZlWo)
Xzbj = WL52.get_runjo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vtB5(YKHO):\n pass",
"def Yo_6(YKHO):\n SYSq = list()\n SYSq.append(QdP5('testvo', 'gsiftp://source', 'gsiftp://destination', 'SUBMITTED'))\n SYSq.append(QdP5('testvo', 'gsiftp://source', 'gsiftp://destination2', 'ACTIVE'))\n SYSq.append(QdP5('testvo', 'gsiftp://source', 'gsiftp://destination2... | [
"0.8183374",
"0.7457729",
"0.7210241",
"0.7170138",
"0.70854956",
"0.69923854",
"0.6931875",
"0.6891593",
"0.6843834",
"0.68378985",
"0.6815516",
"0.67968845",
"0.678738",
"0.67436117",
"0.67285854",
"0.66690457",
"0.6664151",
"0.6654754",
"0.66116595",
"0.66102755",
"0.66093... | 0.7721823 | 1 |
Push element x to the back of queue. | def _jXH(YKHO, WKvO: int) -> None:
if YKHO.head == None:
YKHO.head = WKvO
YKHO.storage.append(WKvO)
YKHO.tail = WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)",
"def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()",
"def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)... | [
"0.8627964",
"0.847768",
"0.8414127",
"0.827978",
"0.8259876",
"0.82024014",
"0.81944746",
"0.81445456",
"0.81445456",
"0.81041193",
"0.81004506",
"0.80947775",
"0.805236",
"0.805236",
"0.8037114",
"0.8033887",
"0.79936236",
"0.79584146",
"0.7948628",
"0.7944436",
"0.7899758"... | 0.7246896 | 62 |
Removes the element from in front of queue and returns that element. | def BEuN(YKHO) -> int:
yvT9 = YKHO.head
del YKHO.storage[0]
if YKHO.storage:
YKHO.head = YKHO.storage[0]
else:
YKHO.head = None
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None",
"def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()",
"def BEuN(YKHO):\n if len(... | [
"0.85555553",
"0.8329695",
"0.81405824",
"0.80353034",
"0.791703",
"0.78865194",
"0.7882125",
"0.7802728",
"0.77982587",
"0.7746587",
"0.7715509",
"0.77124494",
"0.7696993",
"0.76691186",
"0.76638514",
"0.7662351",
"0.76441866",
"0.7642656",
"0.76400787",
"0.7635912",
"0.7620... | 0.0 | -1 |
Get the front element. | def T7C_(YKHO) -> int:
return YKHO.head | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnzS(YKHO):\n return YKHO.frontelem.elem",
"def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]",
"def TA6u(YKHO):\n return YKHO.storage[0]",
"def VnzS(YKHO):\n return YKHO.head",
"def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]",
"def qnv... | [
"0.87835056",
"0.83788836",
"0.82574433",
"0.80897844",
"0.8012526",
"0.7981897",
"0.786668",
"0.783555",
"0.7815892",
"0.77942365",
"0.7735508",
"0.769147",
"0.76801795",
"0.76465446",
"0.7630563",
"0.75877416",
"0.7572392",
"0.75053453",
"0.74844474",
"0.74813557",
"0.74660... | 0.0 | -1 |
Takes in a list of different types, converts to integers if possible. Returns a new list with all elements integers or parts of it integers. | def kuFU(yv6U):
S06t = []
for LihS in yv6U:
try:
S06t.append(int(LihS))
except ValueError:
S06t.append(LihS)
return S06t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lQgB(aO51):\n return [int(YRbF) for YRbF in aO51]",
"def MoG6(IqQl):\n for YRbF in range(len(IqQl)):\n try:\n IqQl[YRbF] = int(IqQl[YRbF])\n except (TypeError, ValueError):\n print('\\nValues in input list must be types int or float\\n')\n PVOR = IqQl\n return ... | [
"0.8025332",
"0.7683998",
"0.7535787",
"0.7524116",
"0.71465975",
"0.7143363",
"0.70961714",
"0.70961714",
"0.70894027",
"0.7088968",
"0.70623076",
"0.7027116",
"0.70244783",
"0.6988845",
"0.698681",
"0.6965478",
"0.6919116",
"0.68964916",
"0.687263",
"0.6856244",
"0.6853039"... | 0.7343578 | 4 |
Indexes a part of lists in a list and returns a new list with those values. | def Wsb3(KayY, vxaK, jgQy):
S06t = []
return [yv6U[vxaK:jgQy] for yv6U in KayY] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VqsJ(oOdw, oMB_):\n S06t = []\n for YRbF in oMB_:\n S06t.append(oOdw[YRbF])\n return S06t",
"def EfUA(YKHO, list, _0VL):\n return [list[YRbF] for YRbF in _0VL]",
"def wYKB(yv6U, _0VL):\n P8mz = []\n for YRbF in _0VL:\n P8mz.append(yv6U[YRbF])\n return P8mz",
"def DPx7(x... | [
"0.696208",
"0.66555876",
"0.6607447",
"0.66024005",
"0.64244795",
"0.6378357",
"0.63147146",
"0.62683934",
"0.6258975",
"0.6220391",
"0.6204316",
"0.61689055",
"0.61662257",
"0.61361766",
"0.6129973",
"0.6120753",
"0.6091149",
"0.6084607",
"0.6079453",
"0.6076043",
"0.607451... | 0.69204855 | 1 |
Takes in a nested list and an index number. Returns the sum of all elements in the lists index. | def RIbe(KayY, d6pt):
return sum((yv6U[d6pt] for yv6U in KayY)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SMt6(g7RK):\n Cc3h = []\n F4js = len(g7RK[0])\n for YRbF in range(F4js):\n vtLE = 0\n for aYym in g7RK:\n PxD9 = aYym[YRbF]\n vtLE += PxD9\n Cc3h += [vtLE]\n return Cc3h",
"def JaTG(yv6U):\n yNH1 = 0\n for YRbF in yv6U:\n if type(YRbF) == li... | [
"0.7713376",
"0.72958314",
"0.7031211",
"0.7016778",
"0.6916294",
"0.6817677",
"0.6785222",
"0.6759261",
"0.6740341",
"0.67160463",
"0.65838736",
"0.65062034",
"0.6484592",
"0.64017725",
"0.6372982",
"0.6365377",
"0.63430566",
"0.6321454",
"0.6246688",
"0.6229002",
"0.6192992... | 0.7216048 | 2 |
Computes IoU overlaps between two sets of boxes. | def oZg1(wGB6, QFOH):
XEd1 = QFOH.size()[0]
fxHq = wGB6.size()[0]
wGB6 = wGB6.repeat(1, XEd1).view(-1, 4)
QFOH = QFOH.repeat(fxHq, 1)
pvBw, JqUn, TYrM, hyHQ = wGB6.chunk(4, dim=1)
KDnR, gSFI, iM_U, IrGj = QFOH.chunk(4, dim=1)
si3g = ht2j.max(pvBw, KDnR)[:, 0]
o4D3 = ht2j.max(JqUn, gSFI)[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Mo(wGB6, QFOH):\n print('started computing overlaps')\n bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])\n Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])\n PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0]))\n for YRbF in range(PZIW.shape[1]):\n IkxF = QFOH[YRbF]... | [
"0.8278884",
"0.8255725",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81647843",
"0.8149386",
"0.80523753",
"0.7996108",
"0.79490596",
"0.7873449",
"0.78133565",
"0.7813201",
"0.77446485",
"0.7686744",
"0.... | 0.7142698 | 74 |
Takes classified proposal boxes and their bounding box deltas and returns the final detection boxes. | def hKIp(GPtr, pJTG, oyaW, Cvi9, x5Sa, lhCo, zP3h=False, ZtXq=1, KLLm=True):
pJTG = pJTG.squeeze(0)
bGrB, bGrB, KnxT, bGrB = __s6(lhCo)
KnxT = KnxT[0]
if len(oyaW) == 0:
if zP3h:
return (ht2j.zeros(0), ht2j.zeros(0), ht2j.zeros(0))
else:
return ht2j.zeros(0)
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SAM8(a1kB, eDGE, hUXG):\n if isinstance(a1kB, iQnE):\n if a1kB.data.is_cuda:\n fSHg = iQnE(a1kB.data.new(_Fei.TRAIN.BBOX_NORMALIZE_STDS).cuda())\n aVpt = iQnE(a1kB.data.new(_Fei.TRAIN.BBOX_NORMALIZE_MEANS).cuda())\n else:\n fSHg = iQnE(a1kB.data.new(_Fei.TRAIN.... | [
"0.7501529",
"0.742685",
"0.69959337",
"0.69957167",
"0.6910915",
"0.6835591",
"0.68355274",
"0.6719558",
"0.6672044",
"0.664717",
"0.664354",
"0.6573384",
"0.65668476",
"0.6556085",
"0.6546705",
"0.65351707",
"0.65015006",
"0.6488399",
"0.6478407",
"0.64495784",
"0.64351785"... | 0.0 | -1 |
Apply cosinus on a feature x | def no4o(WKvO):
Phjr = oyIN.cos(WKvO)
return Phjr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YbIe(WKvO):\n _8zv = [11, 15, 18, 20, 25, 28]\n WKvO[:, _8zv] = oyIN.cos(WKvO[:, _8zv])\n return WKvO",
"def YhSR(WKvO):\n try:\n return iQnE(WKvO.name, oyIN.cos(WKvO.val), {G1Hx: -Ty9i * oyIN.sin(WKvO.val) for G1Hx, Ty9i in WKvO.der.items()}, False)\n except AttributeError:\n re... | [
"0.694684",
"0.68544585",
"0.6765674",
"0.6684989",
"0.6638488",
"0.6625668",
"0.6622707",
"0.66039306",
"0.65980417",
"0.6543308",
"0.6539872",
"0.6520487",
"0.6511206",
"0.64769787",
"0.6460813",
"0.644667",
"0.6435011",
"0.6404831",
"0.64006066",
"0.64006066",
"0.64006066"... | 0.8128965 | 0 |
Sets the survey_scheduler_id of this SurveyViewRpc. | def GIWH(YKHO, GIWH):
YKHO._survey_scheduler_id = GIWH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ijjb(YKHO, IesV):\n pass",
"def W5nB(YKHO, W5nB):\n YKHO._schedule_id = W5nB",
"def H9Ma(YKHO, F9mF):\n return super().request('GET', f'/api/provider/schedulers/{F9mF}')",
"def Wl8U(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1P... | [
"0.6047029",
"0.59342295",
"0.583663",
"0.56363314",
"0.56142706",
"0.5611668",
"0.56072",
"0.5599764",
"0.55882007",
"0.5584365",
"0.5578132",
"0.55623937",
"0.5554302",
"0.55402166",
"0.5471976",
"0.5436797",
"0.5424929",
"0.51572067",
"0.51572067",
"0.51572067",
"0.5156749... | 0.87209517 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86416775",
"0.8510436",
"0.7853881",
"0.7744098",
"0.77114",
"0.7697539",
"0.7659996",
"0.7637475",
"0.76213473",
"0.76074654",
"0.7606779",
"0.7606779",
"0.7606779",
"0.7598864",
"0.7585116",
"0.7582008",
"0.75707483",
"0.7567779",
"0.7538827",
"0.7538827",
"0.7527744",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, FaY_):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Create a new show in the database. Throws an error if a show with the given show_id already exists, and generates a new show_id if one is not specified. | def Aj3y(nUHY: models.NetflixShowModel, NCls: Session=JHvC(GGod), eOtH: str=JHvC(X22T)):
if nUHY.show_id and qZGC.get_netflix_show(NCls, show_id=nUHY.show_id):
raise pgG1(status_code=400, detail='Show already exists with given show_id.')
return qZGC.create_netflix_show(NCls, show=nUHY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c1Xs():\n GViE = D7d3.create_show(QePW.get_json()['show_name'])\n if not GViE:\n Ol8d = {'message': 'Something went wrong adding your show'}\n return (Ol8d, 500)\n Ol8d = {'id': GViE}\n return (Ol8d, 201)",
"def y2GM():\n BGqR = QePW.form\n nUHY = V4m6()\n h5p_ = NCls.sessi... | [
"0.78189886",
"0.7280946",
"0.71726704",
"0.6995558",
"0.69609714",
"0.67231554",
"0.63980126",
"0.63615906",
"0.63487434",
"0.6323788",
"0.61795026",
"0.5814003",
"0.5695064",
"0.5695064",
"0.56137747",
"0.5605829",
"0.546697",
"0.54536605",
"0.5427432",
"0.5420337",
"0.5398... | 0.7827912 | 0 |
Get subgraph induced by a path. | def Gv1B(YKHO, ckRy):
Ziit, mC4V = yXil(ckRy)
return YKHO.subgraph(nodes_to_include=Ziit, edges_to_include=mC4V) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E4p8(YKHO):\n return YKHO._graph",
"def GAgv(yvY1, pmON, mC4V):\n RCEU = yvY1.subgraph(pmON).copy()\n mC4V = set(mC4V)\n lV4j = []\n for tTpl in RCEU.edges_iter():\n if not tTpl in mC4V and (not tTpl[::-1] in mC4V):\n lV4j.append(tTpl)\n RCEU.remove_edges_from(lV4j)\n r... | [
"0.73207384",
"0.6925887",
"0.67931235",
"0.6771127",
"0.65533525",
"0.6550678",
"0.6517784",
"0.64907473",
"0.6284814",
"0.6275303",
"0.6239905",
"0.62095743",
"0.611441",
"0.6080516",
"0.6073718",
"0.6045299",
"0.6015112",
"0.58995855",
"0.5897908",
"0.5884319",
"0.58814776... | 0.80021924 | 0 |
Accepts dataframe of categorical features and returns list of features for which dummy value should equal 1 | def trlG(jQ3Z):
fRn_ = []
for iVRZ in jQ3Z:
fRn_.append(iVRZ + '_' + str(jQ3Z.iloc[0][iVRZ]))
return fRn_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r3tR(jQ3Z):\n fRn_ = jQ3Z.columns[jQ3Z.dtypes == 'object']\n return list(fRn_)",
"def XAEo(jQ3Z):\n pjtn = []\n for Z9rn in list(jQ3Z.columns):\n if jQ3Z[Z9rn].dtypes in ['object', 'str']:\n pjtn.append(Z9rn)\n return pjtn",
"def tVT8(YKHO):\n YKHO.df = rLdf.get_dummies(... | [
"0.7304189",
"0.7267152",
"0.7250783",
"0.7106684",
"0.70823705",
"0.7071036",
"0.70502317",
"0.70052546",
"0.6856405",
"0.6856125",
"0.6796212",
"0.67009956",
"0.6681193",
"0.6673958",
"0.6646998",
"0.66245955",
"0.657408",
"0.657201",
"0.65715575",
"0.6543314",
"0.6533949",... | 0.0 | -1 |
True, as all users are active. | def ksfB(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO, NCls: Session, *, CBIr: User) -> bool:\n if CBI... | [
"0.75308377",
"0.7392309",
"0.7392309",
"0.7392309",
"0.7392309",
"0.73852575",
"0.73056287",
"0.7290842",
"0.7230901",
"0.72114825",
"0.71813864",
"0.714781",
"0.714781",
"0.7117796",
"0.7107901",
"0.70613724",
"0.7053262",
"0.7051632",
"0.70370287",
"0.70316494",
"0.7010118... | 0.71019155 | 15 |
False, as anonymous users aren't supported. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return True",
"def ... | [
"0.84041584",
"0.84041584",
"0.8380213",
"0.8380213",
"0.8380213",
"0.8377405",
"0.83305264",
"0.82501274",
"0.8244858",
"0.81436765",
"0.8103119",
"0.80954605",
"0.807159",
"0.7877262",
"0.7874819",
"0.7860086",
"0.7859498",
"0.77627987",
"0.7724922",
"0.76033795",
"0.757673... | 0.8359979 | 6 |
returns a list of objects that are brands whose name contains or is equal to the input string. | def NcOQ(zCsx):
PyTX = '%' + zCsx + '%'
return fjUN.query.filter(fjUN.name.ilike(PyTX)).all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NcOQ(zCsx):\n ge_k = fjUN.query.filter(fjUN.name.like('%' + zCsx + '%') | (fjUN.name == zCsx)).all()\n return ge_k",
"def NcOQ(zCsx):\n return fjUN.query.filter(fjUN.name.like('%' + zCsx + '%')).all",
"def NcOQ(zCsx):\n return fjUN.query.filter(fjUN.name.like('%' + zCsx + '%')).all()",
"def N... | [
"0.81167084",
"0.8051327",
"0.8014647",
"0.79946834",
"0.797468",
"0.7869418",
"0.784785",
"0.667657",
"0.6525607",
"0.6285644",
"0.6251537",
"0.6153738",
"0.60330975",
"0.5969847",
"0.57882994",
"0.5691128",
"0.568952",
"0.5675132",
"0.5586234",
"0.55793786",
"0.55543745",
... | 0.77196115 | 7 |
Applies network layers and ops on input image(s) x. | def KVH6(YKHO, WKvO):
hksT = list()
Fv2L = list()
c7pe = list(YKHO.vgg(WKvO))
WKvO = c7pe[-1]
for G1Hx, Ty9i in enumerate(YKHO.extras):
WKvO = Ty9i(WKvO)
if G1Hx % 6 == 5:
c7pe.append(WKvO)
for WKvO, vC9B, Z9rn in zip(c7pe, YKHO.loc, YKHO.conf):
hksT.append(vC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n return Pusg(jX85, YKHO.layers, WKvO.unsqueeze(1))",
"def KVH6(YKHO, WKvO):\n return Pusg(jX85, YKHO.layers, WKvO.unsqueeze(1))",
"def aV0p(YKHO, WKvO):\n dFGd = YKHO.add_conv_op(x=WKvO, num_pixels_conv=5, num_channels_in_previous_layer=1, num_channels_in_current_layer=YKHO.num_... | [
"0.69809085",
"0.6938758",
"0.6819849",
"0.6810727",
"0.6810727",
"0.6778044",
"0.6659476",
"0.6618406",
"0.6561642",
"0.6546771",
"0.6544733",
"0.64543194",
"0.64094377",
"0.6365544",
"0.6338575",
"0.63348496",
"0.6328692",
"0.63115805",
"0.63063085",
"0.6305085",
"0.6279537... | 0.0 | -1 |
Decay learning rate by a factor of 0.1 every lr_decay_epoch epochs. | def eDsF(K0do, qtWj, DJmW=0.0008, jnHZ=200):
tspZ = DJmW * 0.1 ** (qtWj // jnHZ)
print('lr is ' + str(tspZ))
if qtWj % jnHZ == 0:
print('LR is set to {}'.format(tspZ))
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ
return K0do | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwoX(qtWj, b0Ix):\n return b0Ix / 1.1",
"def PjIb(YKHO):\n if YKHO.decay:\n YKHO.lr = YKHO.decay * YKHO.lr",
"def PjIb(qtWj):\n assert Nlk2.nn_solver in ('sgd', 'momentum', 'adam')\n if qtWj >= Nlk2.lr_decay_after_epoch:\n gxDU = Nlk2.lr_decay_after_epoch / Nlk2.floatX(qtWj) * Nlk... | [
"0.8291664",
"0.8266521",
"0.8234404",
"0.82235026",
"0.80433357",
"0.78540355",
"0.780998",
"0.7805587",
"0.7780508",
"0.7773197",
"0.7765782",
"0.7732937",
"0.7708644",
"0.76925606",
"0.76925606",
"0.76925606",
"0.7642324",
"0.7628484",
"0.76168543",
"0.7587379",
"0.7557118... | 0.0 | -1 |
TestSuite constructor. This gets called by TestPlan as it finds and reads test yaml files. Multiple TestSuite instances may be generated from a single testcase.yaml, each one corresponds to an entry within that file. We need to have a unique name for every single test case. Since a testcase.yaml can define multiple tes... | def FIMM(YKHO, cj_N, Uk7c, mWFP, nPrm=None):
QqCf = Hy7s.path.relpath(Uk7c, cj_N)
YKHO.name = YKHO.get_unique(cj_N, QqCf, mWFP)
YKHO.id = mWFP
YKHO.source_dir = Uk7c
YKHO.yamlfile = Uk7c
YKHO.testcases = []
YKHO.ztest_suite_names = []
if nPrm:
YKHO.load(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4mg(YKHO, **B2fa):\n for H5ew, BWXx in B2fa.items():\n if type(BWXx) is str:\n (exec('self.' + str(H5ew) + '=\"' + BWXx + '\"') in globals(), locals())\n else:\n (exec('self.' + str(H5ew) + '=' + str(BWXx)) in globals(), locals())\n nLo2 = {H5ew: BWXx for H5ew, BWXx i... | [
"0.66031945",
"0.65928006",
"0.648376",
"0.6458372",
"0.63693196",
"0.6357227",
"0.63023734",
"0.62888104",
"0.62728184",
"0.6237706",
"0.6230118",
"0.62269527",
"0.62125766",
"0.62057084",
"0.6197725",
"0.61848724",
"0.617084",
"0.615868",
"0.6153027",
"0.61395735",
"0.61356... | 0.7055998 | 0 |
Fully qualified resource ID for the resource. Ex /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} | def id(YKHO) -> str:
return qe4Y.get(YKHO, 'id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return YKHO.__resource_id",
"def PcW4(YKHO) -> qe4Y.Output[str]:\n retur... | [
"0.7655674",
"0.7655674",
"0.7655674",
"0.7457416",
"0.7366078",
"0.7366078",
"0.7366078",
"0.7366078",
"0.7366078",
"0.73315203",
"0.73315203",
"0.73315203",
"0.73315203",
"0.73315203",
"0.73315203",
"0.7248652",
"0.721176",
"0.721176",
"0.721176",
"0.721176",
"0.721176",
... | 0.0 | -1 |
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) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n ... | [
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.82026964",
"0.8097031",
"0.7982437",
"0.7982437",
"0.7982437",
"0.7982437",
"0.7982437",
"0... | 0.66395754 | 72 |
Serves frontpage and all additional submission listings with maximum of 25 submissions per page. | def BzrN(QePW):
MDTH = RitE.objects.order_by('-score').all()
oDn_ = NIbP(MDTH, 25)
B2Dn = QePW.GET.get('page', 1)
try:
OBMC = oDn_.page(B2Dn)
except HuNa:
raise uhgT
except ZCG1:
OBMC = oDn_.page(oDn_.num_pages)
cu74 = {}
if QePW.user.is_authenticated():
f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cn8k(QePW):\n pGHf = UbF2.objects.all()\n pGHf = [XP5J for XP5J in pGHf if XP5J.is_visible(QePW.user)]\n if 'page' in QePW.GET:\n Voci = QePW.GET['page']\n else:\n Voci = 0\n jtZB = 10\n pGHf = pGHf[Voci * jtZB:(Voci + 1) * jtZB]\n QpfX = {'problems': pGHf}\n return _1tc(Q... | [
"0.67172605",
"0.66811",
"0.66372895",
"0.62639",
"0.60353196",
"0.5997219",
"0.5987057",
"0.59614486",
"0.594361",
"0.5864696",
"0.5798563",
"0.5749255",
"0.5669709",
"0.56399137",
"0.5602453",
"0.5586008",
"0.5541379",
"0.5496597",
"0.5493697",
"0.54879683",
"0.54848766",
... | 0.67445 | 0 |
Save key words extracted from column = 'amenities' in DataFrame = df as new columns of booleans | def pGNi(jQ3Z, VjQf):
ZWCE = []
for GIN8 in VjQf:
AAHb = 'amenity_' + GIN8.strip().replace(' ', '_')
ZWCE.append(AAHb)
jQ3Z[AAHb] = False
for GIN8 in VjQf:
AAHb = 'amenity_' + GIN8.strip().replace(' ', '_')
for or8S, rdlD in jQ3Z.iterrows():
wEf2 = rdlD['a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OMSQ(jQ3Z):\n YP9k = jQ3Z['amenities'].unique()\n VjQf = []\n for YRbF in range(YP9k.shape[0]):\n rdlD = YP9k[YRbF][1:-1]\n rdlD = rdlD.strip().split(',')\n for YRbF in range(len(rdlD)):\n wEf2 = rdlD[YRbF].strip()\n VjQf.append(wEf2)\n VjQf = sorted(set(V... | [
"0.6483094",
"0.5878671",
"0.57408035",
"0.5614933",
"0.5583903",
"0.55583245",
"0.5523001",
"0.55061376",
"0.5480972",
"0.54709536",
"0.5455045",
"0.54421693",
"0.5430686",
"0.5414411",
"0.5390475",
"0.5384498",
"0.5357641",
"0.534168",
"0.5333911",
"0.53328913",
"0.5318203"... | 0.8323045 | 0 |
Function to mimic the 'fspecial' gaussian MATLAB function. | def Ey6p(zNig, WTkW):
r1VO = zNig // 2
vgXP = 0.0
yKcO, JCyR = (-r1VO, r1VO + 1)
if zNig % 2 == 0:
vgXP = 0.5
JCyR -= 1
WKvO, LVAh = oyIN.mgrid[vgXP + yKcO:JCyR, vgXP + yKcO:JCyR]
assert len(WKvO) == zNig
Oa1e = oyIN.exp(-((WKvO ** 2 + LVAh ** 2) / (2.0 * WTkW ** 2)))
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(WKvO):\n return oyIN.exp(-WKvO ** 2)",
"def IAWS(WKvO, yGTL, wEsz):\n return 1 / (wEsz * oyIN.sqrt(2 * oyIN.pi)) * oyIN.exp(-1 / 2 * ((WKvO - yGTL) / wEsz) ** 2)",
"def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))",
"def IAWS(WKvO, nJ9F, WTkW):\n return oyIN.exp(-((WKvO - nJ9F) / WTkW... | [
"0.8028351",
"0.791229",
"0.7908799",
"0.78411305",
"0.7797468",
"0.7785141",
"0.77414614",
"0.7695235",
"0.76693755",
"0.7637705",
"0.763656",
"0.75664824",
"0.75477755",
"0.7531698",
"0.7513952",
"0.7512418",
"0.75116104",
"0.749006",
"0.7480846",
"0.74570817",
"0.7448427",... | 0.74591136 | 19 |
Helper function for performing rolling window computations. Adds an extra dimension to the array, which can then be used to do whatever you need to do on windows. | def agUT(dy_H, KnxT):
ROpF = dy_H.shape[:-1] + (dy_H.shape[-1] - KnxT + 1, KnxT)
FEri = dy_H.strides + (dy_H.strides[-1],)
return oyIN.lib.stride_tricks.as_strided(dy_H, shape=ROpF, strides=FEri) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def surI(YKHO, qw7D, zNig):\n ROpF = qw7D.shape[:-1] + (qw7D.shape[-1] - zNig + 1, zNig)\n FEri = qw7D.strides + (qw7D.strides[-1],)\n return XTiz.lib.stride_tricks.as_strided(qw7D, shape=ROpF, strides=FEri)",
"def upF9(EcVT: np.ndarray, KnxT: int) -> oyIN.ndarray:\n ROpF = (EcVT.size - KnxT + 1, Knx... | [
"0.743131",
"0.7305329",
"0.72166795",
"0.7152702",
"0.71284264",
"0.7114025",
"0.7114025",
"0.6996081",
"0.69919795",
"0.689344",
"0.689344",
"0.6840671",
"0.6811235",
"0.67850643",
"0.6749807",
"0.67446315",
"0.674029",
"0.67005956",
"0.6692177",
"0.66392004",
"0.6595621",
... | 0.6616536 | 20 |
Checks if object has _tf_decorator attribute. This check would work for mocked object as well since it would check if returned attribute has the right type. | def MQQl(YEnM):
return hasattr(YEnM, '_tf_decorator') and isinstance(getattr(YEnM, '_tf_decorator'), earN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def as9g(object):\n return ooWL.isclass(ORC0.unwrap(object)[1])",
"def t5X9(Emd4, JfyU):\n if hasattr(JfyU, '__dict__') and '__attributes__' in JfyU.__dict__:\n rj91 = JfyU.__dict__['__attributes__']\n for hRWE in rj91:\n if isinstance(hRWE, Emd4):\n return True\n ... | [
"0.66495705",
"0.64554423",
"0.6285771",
"0.6283883",
"0.6266023",
"0.6162302",
"0.6136415",
"0.61335474",
"0.609908",
"0.6025963",
"0.6005784",
"0.5996279",
"0.5972292",
"0.59049153",
"0.58652",
"0.5849314",
"0.584653",
"0.5835489",
"0.5784244",
"0.57784754",
"0.57751536",
... | 0.8957514 | 0 |
Unwraps an object into a list of TFDecorators and a final target. | def XFw0(TBAn):
QRtk = []
DpUl = TBAn
while True:
if isinstance(DpUl, earN):
QRtk.append(DpUl)
elif MQQl(DpUl):
QRtk.append(getattr(DpUl, '_tf_decorator'))
else:
break
if not hasattr(QRtk[-1], 'decorated_target'):
break
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XFw0(sFSI):\n QRtk = []\n DpUl = sFSI\n while True:\n if isinstance(DpUl, Tgs1):\n QRtk.append(DpUl)\n elif hasattr(DpUl, '_dragon_decorator') and isinstance(getattr(DpUl, '_dragon_decorator'), Tgs1):\n QRtk.append(getattr(DpUl, '_dragon_decorator'))\n else:\... | [
"0.5720164",
"0.5434183",
"0.4892287",
"0.48600724",
"0.48465174",
"0.48280844",
"0.48280844",
"0.48217544",
"0.4686695",
"0.4650592",
"0.46367982",
"0.46107325",
"0.4608475",
"0.45868638",
"0.4534942",
"0.45326287",
"0.45239055",
"0.45239055",
"0.45188096",
"0.4516068",
"0.4... | 0.7040436 | 0 |
Add new node to priority queue. | def jvNa(YKHO, BWXx, Ey19):
Esd_ = o7DN(BWXx, Ey19)
YKHO.values.append(Esd_)
YKHO.bubble_up() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, Q6kx, Ey19):\n if Q6kx in YKHO._map.keys():\n raise Exception('node is already in the heap')\n YKHO._map[Q6kx] = YKHO._size\n YKHO._elementList.append(YKHO.Element(Q6kx, Ey19))\n YKHO._size += 1\n YKHO._bubbleUp(YKHO._size - 1)",
"def poxe(YKHO, Q6kx):\n _eVy.heappush(YKHO... | [
"0.7709634",
"0.75704205",
"0.7556949",
"0.75304997",
"0.73822904",
"0.73679125",
"0.72144634",
"0.7174223",
"0.7099854",
"0.7064783",
"0.70645356",
"0.70423776",
"0.70398057",
"0.69047695",
"0.6903006",
"0.6901559",
"0.68930787",
"0.6891947",
"0.6888855",
"0.6878131",
"0.687... | 0.74449193 | 4 |
Remove first element from queue. | def he0F(YKHO):
yKcO = YKHO.values[0]
Os4s = YKHO.values.pop()
if len(YKHO.values) > 0:
YKHO.values[0] = Os4s
YKHO.sink_down()
return yKcO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ksvm(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n ANfV = YKHO._data[YKHO._front]\n YKHO._data[YKHO._front] = None\n YKHO._size -= 1\n if YKHO._size > 0:\n YKHO._front = (YKHO._front + 1) % len(YKHO._data)\n return ANfV",
"def F07u(YKHO):\n for a1PO, vexM in... | [
"0.8134581",
"0.7993315",
"0.7931955",
"0.7923002",
"0.7888086",
"0.77622545",
"0.77218187",
"0.76728475",
"0.76541686",
"0.7631245",
"0.75638515",
"0.7552572",
"0.7524444",
"0.751816",
"0.75057054",
"0.75028276",
"0.74774307",
"0.74674606",
"0.74600655",
"0.7446651",
"0.7435... | 0.0 | -1 |
Add a new vertex to adjacency list. | def ohmD(YKHO, SLBp):
if SLBp not in YKHO.adjacency_list:
YKHO.adjacency_list[SLBp] = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)",
"def ohmD(YKHO, Ty9i):\n pass",
"def ohmD(YKHO):\n pass",
"def ohmD(YKHO, SLBp=Yegm()):\n YKHO.vertices.append(SLBp)",
"def wfin(YKHO, SLBp):\n if YKHO.getVertex(SLBp) == None:\n YKHO.numVertices += 1\n YKHO.vertList.append(SLBp)... | [
"0.8578448",
"0.8513912",
"0.839242",
"0.8374033",
"0.83418524",
"0.83008826",
"0.8299417",
"0.8299417",
"0.8299417",
"0.8299417",
"0.8299417",
"0.8232681",
"0.8171098",
"0.81114036",
"0.81052953",
"0.8066834",
"0.8066834",
"0.8042904",
"0.8024127",
"0.8022699",
"0.7971624",
... | 0.8079181 | 15 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj, qIxc):
tspZ = qIxc.lr * 0.1 ** (qtWj // 60)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.79914284",
"0.79403204",
"0.78895485",
"0.7827818",
"0.78224415",
"0.78168905",
"0.78105193",
"0.780234",
"0.7790918",
"0.7788021",
"0.7781609",
"0.7765116",
"0.7764394",
"0.77607834",
"0.7748697",
"0.77389574",
"0.77307045",
"0.77242804",
"0.77119035",
"0.7708429",
"0.770... | 0.7676857 | 27 |
Returns the string representation of a card. | def zAg0(YKHO):
if YKHO.rank == 1:
fdMZ = 'Ace'
elif YKHO.rank == 11:
fdMZ = 'Jack'
elif YKHO.rank == 12:
fdMZ = 'Queen'
elif YKHO.rank == 13:
fdMZ = 'King'
else:
fdMZ = YKHO.rank
return str(fdMZ) + ' of ' + YKHO.suit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n EsFv = ''\n for dxhl in YKHO.cards:\n EsFv += str(dxhl) + '\\n'\n return EsFv",
"def wHJl(YKHO):\n return str(YKHO.cards)",
"def wHJl(YKHO):\n return \"Card('{}', '{}')\".format(YKHO.rank, YKHO.suit)",
"def zAg0(YKHO):\n return 'Card({0}, {1})'.format(str(YKHO.get_n... | [
"0.8004214",
"0.7997611",
"0.79582465",
"0.7935921",
"0.7905181",
"0.7848596",
"0.781132",
"0.77919203",
"0.7786757",
"0.77817434",
"0.7769318",
"0.7725806",
"0.7712755",
"0.77076095",
"0.76874024",
"0.7662239",
"0.765988",
"0.7649672",
"0.76149833",
"0.7609379",
"0.75287706"... | 0.0 | -1 |
Tests that event detail endpoint returns the correct fields. | def DwKm(d4y1, tvqc):
geh0 = THXy(d4y1, tvqc.pk)
QYLa(geh0.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def slsv(jmr2):\n Aofo = tvqc.EventDetailsRequest(event_id='24377').execute()\n assert isinstance(Aofo, aQyM)",
"def duuf(YKHO):\n tvqc = QRWf.objects.get()\n Ylbp = YKHO.client.get(gxEw('event-detail', kwargs={'pk': tvqc.id}), format='json')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\... | [
"0.7547792",
"0.728928",
"0.72396415",
"0.7139822",
"0.7121302",
"0.7041045",
"0.6935942",
"0.69199365",
"0.6852103",
"0.6824738",
"0.6780942",
"0.67806304",
"0.67724353",
"0.6717432",
"0.6634117",
"0.6613754",
"0.65962654",
"0.654419",
"0.6534849",
"0.65230393",
"0.64722383"... | 0.81634325 | 1 |
Get job by id. | def NMoC(YKHO, rjee):
Y9dC = C32E.JenkinsJobSVC()
return (Y9dC.get_job_by_id(rjee), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XGuR(YKHO, id):\n with DMju() as cuiw:\n return YKHO._get_job_by_id(id, cuiw)",
"def XGuR(YKHO, _eu6):\n for oCfW in YKHO.jobs:\n if oCfW['_id'] == _eu6:\n return oCfW",
"def UIzg(YKHO, rjee):\n return YKHO._job_mgmt.get_job(rjee)",
"def KjtO(YKHO, rjee):\n return YKH... | [
"0.92563874",
"0.8807098",
"0.8499546",
"0.84633446",
"0.8427895",
"0.8249415",
"0.8195315",
"0.8124952",
"0.8065641",
"0.8054733",
"0.800132",
"0.7981958",
"0.7896716",
"0.7872976",
"0.78166145",
"0.7813886",
"0.7740136",
"0.7722117",
"0.7718739",
"0.76905143",
"0.76904917",... | 0.77212316 | 18 |
Get the noncentral moments of order n. | def HVay(YKHO, exwG=1):
return JxU2.moment(exwG, dfn=YKHO.dfn, dfd=YKHO.dfd, loc=YKHO.loc, scale=YKHO.scale) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ewCp(exwG, G1Hx):\n exwG = hD_A(exwG)\n with g2zq.extradps(5):\n G1Hx = ckvx(G1Hx)\n if exwG == 0:\n return g2zq.one\n return 2 ** exwG * g2zq.gammaprod([exwG + G1Hx / 2], [G1Hx / 2])",
"def lSn8(pImw, exwG):\n yGTL = JBMS(pImw)\n O1gd, yOP5 = zip(*pImw.zipped(mode... | [
"0.72025937",
"0.6683593",
"0.6664065",
"0.64793926",
"0.64283323",
"0.6404691",
"0.6325948",
"0.6268824",
"0.6222561",
"0.62204707",
"0.6086266",
"0.5992621",
"0.5949608",
"0.5901874",
"0.58674383",
"0.58358663",
"0.5788671",
"0.57791114",
"0.5775165",
"0.577338",
"0.5754603... | 0.6248574 | 8 |
r""" Return a random integer between `min` and `max` included. | def etv3(min, max):
return tuKI.randint(min, max) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LAYn(min, max):\n return tuKI.randint(min, max)",
"def cRGv(min, max):\n mLGw = tuKI.randint(min, max)\n return mLGw",
"def LAYn(YKHO, min, max):\n return YKHO.randint(min, max)",
"def Gzv6(T8H5: int, Np5D: int):\n return int(tuKI.choice(range(T8H5, Np5D + 1)))",
"def RjKZ(min, max):\n ... | [
"0.87343496",
"0.8631232",
"0.86211556",
"0.85801876",
"0.8512305",
"0.84880215",
"0.84567386",
"0.84031665",
"0.83945817",
"0.82333183",
"0.8204836",
"0.8136605",
"0.8128449",
"0.7995103",
"0.79087853",
"0.7846743",
"0.78056175",
"0.7785273",
"0.77527475",
"0.77111244",
"0.7... | 0.85234326 | 4 |
Returns the host platform. | def h1o9():
if HwRy.platform == 'win32' or HwRy.platform == 'cygwin':
return 'win'
if HwRy.platform.startswith('linux'):
return 'linux'
if HwRy.platform == 'darwin':
return 'mac'
raise RuntimeError('Unsupported platform: %s. Only Linux (linux*) and Mac (darwin) and Windows (win32... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KwMM():\n return WU2G[a9EH.system()]",
"def v56D():\n ErDn = rJ2X.getEnv('MAKEFILE_PLATFORM')\n if ErDn:\n t5_J = ErDn\n else:\n from ToolBOSCore.Settings.ToolBOSConf import getConfigOption\n t5_J = getConfigOption('hostPlatform')\n ImMB.requireIsTextNonEmpty(t5_J)\n re... | [
"0.93354154",
"0.8542209",
"0.8435925",
"0.8367765",
"0.8332861",
"0.83156484",
"0.82788134",
"0.82757556",
"0.8238843",
"0.8213756",
"0.8169106",
"0.8159032",
"0.8135089",
"0.8072046",
"0.80529106",
"0.8017966",
"0.7970537",
"0.7952953",
"0.79374623",
"0.7911336",
"0.7885719... | 0.70811707 | 73 |
Sets the authored_by of this Blog. | def J2Gx(YKHO, J2Gx):
YKHO._authored_by = J2Gx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._cr... | [
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.62638205",
"0.6250605",
"0.6250605",
"0.6210876",
"0.60755163",
... | 0.8742411 | 0 |
Sets the publish_at of this Blog. | def j905(YKHO, j905):
YKHO._publish_at = j905 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qh4Q(YKHO, qh4Q):\n YKHO._published_at = qh4Q",
"def p9S7(YKHO, ITS7: str):\n if isinstance(ITS7, str):\n YKHO.publish_at = ITS7\n else:\n raise Exception('Not a valid publish time: ' + str(ITS7))",
"def OPOz(YKHO, FO9w=None):\n pass",
"def saLu(YKHO, hkS8):\n _c1T = BOAD(I3l... | [
"0.80615723",
"0.7383164",
"0.69313794",
"0.6854946",
"0.6835178",
"0.6830128",
"0.6732963",
"0.6686934",
"0.6623223",
"0.6539472",
"0.6496691",
"0.6476895",
"0.6454754",
"0.6310405",
"0.6191439",
"0.61073136",
"0.60559726",
"0.6028791",
"0.5895984",
"0.5872508",
"0.5701371",... | 0.81449467 | 0 |
Sets the body of this Blog. | def TBsA(YKHO, TBsA):
YKHO._body = TBsA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jjfi(YKHO, TBsA):\n YKHO.body = TBsA",
"def Jjfi(YKHO, TBsA):\n YKHO.body = TBsA",
"def hsoM(YKHO, TBsA):\n YKHO.body = TBsA",
"def Jjfi(YKHO, LhXn):\n YKHO.__body = LhXn",
"def lg0e(YKHO, TBsA):\n YKHO._textBody = TBsA",
"def BYFz(YKHO, TBsA):\n YKHO._htmlBody = TBsA",
"def TBsA(... | [
"0.8024354",
"0.8024354",
"0.7979977",
"0.78800297",
"0.7562559",
"0.75398505",
"0.7356765",
"0.7356765",
"0.6765401",
"0.67629725",
"0.665715",
"0.6600228",
"0.6600228",
"0.65715355",
"0.6527853",
"0.64086795",
"0.6343354",
"0.62378204",
"0.62378204",
"0.62325376",
"0.622245... | 0.7331974 | 8 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Returns list of all files in |directory|, including those in subdirectories. | def nvdE(AGPF):
RRlC = []
for tk5Y, bGrB, iumf in Hy7s.walk(AGPF):
for Ux0P in iumf:
RRlC.append(Hy7s.path.join(tk5Y, Ux0P))
return RRlC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uTAc(AGPF):\n dixj = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(AGPF):\n for gIsw in RRlC:\n dixj.append(Hy7s.path.join(tk5Y, gIsw))\n return dixj",
"def dgSh(AGPF):\n SLBz = SC2F.glob(AGPF + '/*')\n return SLBz",
"def okA7(AGPF):\n tk5Y, AQSv, RRlC = next(Hy7s.walk(AGPF))\n... | [
"0.8513821",
"0.84866685",
"0.8465625",
"0.8393846",
"0.83691114",
"0.8323862",
"0.826425",
"0.8044933",
"0.7882276",
"0.7867438",
"0.78604615",
"0.7852983",
"0.78434724",
"0.78331846",
"0.7784104",
"0.77602893",
"0.77533567",
"0.77321583",
"0.77186984",
"0.77162796",
"0.7697... | 0.84250426 | 3 |
Returns the filesystem path in the filestore for |name| and |prefix_dir|. | def jSFn(YKHO, mWFP, p0w8):
return Hy7s.path.join(YKHO._filestore_root_dir, p0w8, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xRYE(YKHO, dOj8):\n return Hy7s.path.join(YKHO._store_path, Hy7s.path.basename(dOj8))",
"def g6uV(YKHO, mWFP):\n pmON = YKHO._normalize_path(Hy7s.path.join(YKHO.base_directory, mWFP))\n if not pmON.startswith(YKHO.base_directory):\n raise LfCS(mWFP)\n return pmON",
"def ht_x(YKHO) -> str... | [
"0.6358125",
"0.61970973",
"0.61488813",
"0.61470187",
"0.61157686",
"0.6108148",
"0.6000072",
"0.59687865",
"0.59646404",
"0.5823921",
"0.5794393",
"0.5726512",
"0.5695654",
"0.56862706",
"0.56376433",
"0.56049323",
"0.55885834",
"0.55715615",
"0.55714273",
"0.5570065",
"0.5... | 0.8801672 | 0 |
Get the node associated with the key. | def a_J5(YKHO, H5ew, p1fG=False):
AwDt = YKHO._get_node_name(H5ew)
Ziit = YKHO.node_map[AwDt]
if p1fG:
if len(Ziit) <= 1:
raise BjEC('use_slave=True but no slaves ' + 'have been initialized for node_name:%s.' % AwDt)
return tuKI.choice(Ziit[1:])
return Ziit[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IyQV(YKHO, H5ew):\n return YKHO._depgraph.get_node(H5ew)",
"def c0_7(YKHO, H5ew):\n if H5ew in YKHO.nodes:\n return YKHO.nodes[H5ew]\n return None",
"def IyQV(YKHO, H5ew) -> exwG:\n return YKHO._graph.get(H5ew)",
"def NMoC(YKHO, H5ew):\n try:\n return YKHO._nodes[H5ew]\n e... | [
"0.885196",
"0.8639631",
"0.86060876",
"0.84661067",
"0.8390154",
"0.8390154",
"0.8312819",
"0.8152847",
"0.8131615",
"0.81250745",
"0.8078655",
"0.803349",
"0.8015979",
"0.7977235",
"0.7866796",
"0.7853709",
"0.7850958",
"0.775549",
"0.7740917",
"0.7701922",
"0.76893306",
... | 0.70498174 | 64 |
Returns the job ID. | def nzKc(YKHO):
return YKHO._job_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')",
"def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')",
"def q3vm(YKHO):\n return YKHO.job_id",
"def aJ_O(YKHO):\n return YKHO.__dr.getJobID()",
"def aJ_O(YKHO):\n return getattr(YKHO.data, 'jobID', None)",
"def rjee(YKHO):\n ... | [
"0.9262598",
"0.9262598",
"0.9113754",
"0.8971565",
"0.89642483",
"0.8936125",
"0.8936125",
"0.8936125",
"0.8936125",
"0.8936125",
"0.8936125",
"0.8936125",
"0.891621",
"0.891621",
"0.8649186",
"0.86451",
"0.84174675",
"0.8309705",
"0.82621",
"0.82325596",
"0.82163966",
"0.... | 0.87257874 | 14 |
Displays ping of BOT | async def ping(YKHO, OaeV):
await OaeV.send(f'Pong! {round(YKHO.client.latency * 1000)}ms') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeQ0():\n return 'Server is up!\\n'",
"def LeQ0():\n return ''",
"def LeQ0():\n return ''",
"def LeQ0():\n return 'OK'",
"def LeQ0():\n return 'OK'",
"async def ping(YKHO, OaeV):\n Q1PJ = ZOrr.Embed(title='', description=f'<a:online:859859291586822154> **I am now alive!\\n<a:DA_love... | [
"0.7243963",
"0.7209071",
"0.7191583",
"0.7169926",
"0.7152161",
"0.7129535",
"0.7124561",
"0.7108397",
"0.7104496",
"0.70718944",
"0.6999767",
"0.6996705",
"0.6996388",
"0.69758034",
"0.69758034",
"0.69758034",
"0.6974598",
"0.69702244",
"0.69702244",
"0.69702244",
"0.697022... | 0.6481539 | 66 |
compute_loss Compute the loss using y (label) and y_hat (predicted class) | def xBoL(YKHO, LVAh, uN02):
N77f = 0
N77f = -1.0 * oyIN.mean(oyIN.multiply(LVAh, oyIN.log(uN02) + oyIN.multiply(1.0 - LVAh, oyIN.log(1.0 - uN02))))
return N77f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lvgp(LVAh, aMgO):\n return ZylS.losses.softmax_cross_entropy(LVAh, aMgO)",
"def Lvgp(LVAh, aMgO):\n return ZylS.losses.softmax_cross_entropy(LVAh, aMgO)",
"def Lvgp(LVAh, aMgO):\n return ZylS.losses.softmax_cross_entropy(LVAh, aMgO)",
"def Lvgp(LVAh, aMgO):\n sSN_ = ZylS.losses.softmax_cross_... | [
"0.78908557",
"0.78908557",
"0.78908557",
"0.7862599",
"0.78282297",
"0.7822956",
"0.77987176",
"0.7792553",
"0.7792553",
"0.7775919",
"0.7748421",
"0.7747983",
"0.76616687",
"0.7658644",
"0.7656509",
"0.7633094",
"0.7562442",
"0.7541387",
"0.7449662",
"0.73619354",
"0.735287... | 0.79300886 | 0 |
normalize_per_pixel This function computes train mean and standard deviation on each pixel then applying data scaling on train_x and test_x using these computed values | def MnBu(nzV8, BVu8):
def NkkI(WKvO):
JBMS = WKvO.mean(axis=0)
JBMS = oyIN.repeat(JBMS[oyIN.newaxis, :, :], WKvO.shape[0], axis=0)
WKvO = WKvO - JBMS
M1Jx = WKvO.std(axis=0)
M1Jx = oyIN.repeat(M1Jx[oyIN.newaxis, :, :], WKvO.shape[0], axis=0)
WKvO = WKvO / M1Jx
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMxS(nzV8, BVu8):\n\n def NkkI(WKvO):\n JBMS = WKvO.mean()\n WKvO = WKvO - JBMS\n M1Jx = WKvO.std()\n WKvO = WKvO / M1Jx\n return WKvO\n nzV8 = NkkI(nzV8)\n BVu8 = NkkI(BVu8)\n return (nzV8, BVu8)",
"def Q7gV(__n6):\n AKPz = __n6['x'].shape[0]\n B3GR = __n... | [
"0.83162266",
"0.762959",
"0.7431391",
"0.7413617",
"0.73913455",
"0.7384531",
"0.73841923",
"0.7377331",
"0.73346347",
"0.7328799",
"0.7160927",
"0.7145986",
"0.7102336",
"0.7067617",
"0.70396984",
"0.7035164",
"0.7035139",
"0.7019437",
"0.70083725",
"0.69981086",
"0.6997387... | 0.8738238 | 0 |
reshape_2D Reshape our 3D tensors to 2D. A 3D tensor of shape (num_samples, image_height, image_width) must be reshaped into (num_samples, image_heightimage_width) | def ca86(vhpA):
return vhpA.reshape(vhpA.shape[0], vhpA.shape[1] * vhpA.shape[2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7l5(vhpA):\n with ZylS.compat.v1.name_scope(name='reshape_to_2d'):\n fdMZ = vhpA.shape.rank if vhpA.shape is not None else None\n if fdMZ is not None and fdMZ != 2:\n if fdMZ >= 3:\n vhpA = ZylS.reshape(vhpA, ZylS.shape(input=vhpA)[0:2])\n else:\n ... | [
"0.7001115",
"0.6935895",
"0.6935895",
"0.6520069",
"0.6481504",
"0.6449053",
"0.6417457",
"0.63413984",
"0.62758905",
"0.62472206",
"0.61867285",
"0.6157158",
"0.61290586",
"0.60935533",
"0.6091738",
"0.6075873",
"0.60685486",
"0.6064565",
"0.59723544",
"0.59572124",
"0.5940... | 0.69664294 | 1 |
DataFrame has the appropriate columns converted to new data types. | def VPLH(YKHO, ZUyI):
sGEu = rLdf.Series(data={'floats': oyIN.dtype('float16'), 'int_smaller_than_int8': oyIN.dtype('int8'), 'int_smaller_than_int16': oyIN.dtype('int16'), 'int_smaller_than_int32': oyIN.dtype('int32'), 'int_smaller_than_int64': oyIN.dtype('int64'), 'category_strings': 'category', 'varied_strings': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CROW(jQ3Z):\n for iVRZ in jQ3Z.columns:\n if iVRZ in aR2B.__members__.keys():\n jQ3Z[iVRZ] = jQ3Z[iVRZ].astype(aR2B[iVRZ].value)\n return jQ3Z",
"def xT5y(YKHO):\n YKHO.df['Year'] = YKHO.df['Year'].astype('float64')\n YKHO.df['Month'] = YKHO.df['Month'].astype('float64')\n YK... | [
"0.7464719",
"0.74388224",
"0.73584616",
"0.7349817",
"0.73228586",
"0.7289242",
"0.7280818",
"0.72147685",
"0.7201181",
"0.7181091",
"0.715675",
"0.7129472",
"0.7117275",
"0.7100837",
"0.7010453",
"0.6991447",
"0.698402",
"0.6972826",
"0.69713706",
"0.6966515",
"0.6960704",
... | 0.62318677 | 83 |
Helper function that generates a random string of fixed length | def TJC9(WKvO):
FVpJ = 2
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def MiNk(u54L):\n gLiZ = vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(u54L)))",
"de... | [
"0.87409794",
"0.87128466",
"0.8688847",
"0.8662938",
"0.8584459",
"0.8558295",
"0.85568386",
"0.85542613",
"0.85427046",
"0.852422",
"0.85194665",
"0.8500948",
"0.8500948",
"0.84805",
"0.84722924",
"0.8467789",
"0.84618115",
"0.8459304",
"0.8419379",
"0.8416899",
"0.84116495... | 0.0 | -1 |
Returns the distance between two poses. The distance is defined as the classical euclidian distance, working in a space in which a coordinate represent the angle of a joint. | def oyDF(EBgd, HpuQ):
if type(EBgd) is not dict:
EBgd = dict(EBgd)
if type(HpuQ) is not dict:
HpuQ = dict(HpuQ)
if EBgd.viewkeys() != HpuQ.viewkeys():
raise ValueError('poses components mismatch')
return epAf.sqrt(sum((Csk6 * Csk6 for Csk6 in [EBgd[YLAH] - HpuQ[YLAH] for YLAH in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zG70(lBK9, Ci2N):\n return epAf.hypot(lBK9.position.x - Ci2N.position.x, lBK9.position.y - Ci2N.position.y)",
"def zG70(YKHO, BFCd, pCf9):\n pImw = epAf.sqrt((pCf9.x - BFCd.x) ** 2 + (pCf9.y - BFCd.y) ** 2 + (pCf9.z - BFCd.z) ** 2)\n return pImw",
"def Ayfi(lBK9, Ci2N):\n return oyIN.sqrt((lBK9... | [
"0.7434279",
"0.7307688",
"0.7192672",
"0.70844954",
"0.70796216",
"0.70545703",
"0.7019921",
"0.6987625",
"0.6955012",
"0.6929378",
"0.68867564",
"0.6872188",
"0.6868025",
"0.6836037",
"0.6823772",
"0.6817801",
"0.68066686",
"0.6790285",
"0.6765035",
"0.67528206",
"0.6733304... | 0.71581763 | 3 |
Returns an iterator over the collection of joints. | def Vs4Q(YKHO):
return YKHO._joints.itervalues() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LMiU():\n global joints_3d\n while 1:\n yield kehD",
"def ytH6(YKHO) -> x1iM[GXnK]:\n return [tTpl for tTpl in YKHO if tTpl.isjoint]",
"def Vs4Q(YKHO):\n return YKHO.joins.__iter__()",
"def Vs4Q(YKHO):\n return YKHO._jids.__iter__()",
"def lQ2_(YKHO):\n RbqJ = ZAqF.MFnDependenc... | [
"0.70987326",
"0.6950508",
"0.6616994",
"0.6606985",
"0.6434957",
"0.6253462",
"0.6205873",
"0.61898845",
"0.61004585",
"0.60815287",
"0.596604",
"0.596604",
"0.596604",
"0.58704776",
"0.5858921",
"0.58460134",
"0.58224964",
"0.57895374",
"0.5776293",
"0.5776293",
"0.57207626... | 0.7485393 | 0 |
Returns the index of the pose in the provided list which is the closest from the current one. | def kSIP(YKHO, Tegh):
eFr6 = [YKHO.dist_from_pose(shtX) for shtX in Tegh]
return eFr6.index(min(eFr6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fl7m(YKHO, shtX):\n uYq_ = HwRy.maxint\n SsWc = 0\n for YRbF in range(0, YKHO.waypoints_count):\n pImw = YKHO.euclidean_distance_3D(YKHO.waypoints[YRbF].pose.pose.position, shtX.position)\n if uYq_ > pImw:\n uYq_ = pImw\n SsWc = YRbF\n return SsWc",
"def fl7m(Y... | [
"0.7425783",
"0.7353197",
"0.73215973",
"0.73088646",
"0.7231324",
"0.72243106",
"0.72199774",
"0.7212309",
"0.71089417",
"0.70856565",
"0.70516765",
"0.7039809",
"0.70338887",
"0.7024425",
"0.70080835",
"0.69955564",
"0.69499713",
"0.6939516",
"0.6934501",
"0.692605",
"0.690... | 0.7440435 | 0 |
Returns the canonical repository clone URL from a string that contains it | def dtIi(bD7m):
for mXDZ in F5yI:
kUBT = ZbWC.match(mXDZ, bD7m)
if kUBT is not None:
return kUBT.group(1)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b2dt(bD7m):\n if bD7m.host != 'raw.githubusercontent.com':\n raise ValueError('The code currently assumes KFDef are hosted on raw.githubusercontent.com')\n return f'https://github.com/{bD7m.owner}/{bD7m.repo}.git'",
"def lpbr(uPnQ, F3jJ):\n OFI6 = v27Y(uPnQ.app, F3jJ)\n return '%s/repos/%s... | [
"0.6711109",
"0.6597778",
"0.63708967",
"0.6311853",
"0.62636036",
"0.62590617",
"0.624081",
"0.619952",
"0.6158432",
"0.61143786",
"0.6072899",
"0.6047022",
"0.5985888",
"0.5977504",
"0.5973995",
"0.596924",
"0.5963953",
"0.59582585",
"0.5953697",
"0.5953697",
"0.5953697",
... | 0.0 | -1 |
Get the average elmo embeddings for given terms and docids. | def e91k(cpuI: Dict[int, Dict[int, List[np.ndarray]]], AvBb: Set[int], OGmZ: Set[int]) -> cuzp[int, oyIN.ndarray]:
mQGs = {}
for PGrJ in AvBb:
TzLA = []
for oFUB in cpuI[PGrJ]:
if oFUB in OGmZ:
TzLA.extend(cpuI[PGrJ][oFUB])
mQGs[PGrJ] = oyIN.mean(TzLA, axis=0)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xD1r(YKHO, V22M):\n V22M = [WKvO for WKvO in V22M if WKvO in YKHO.vocab_id]\n if V22M:\n LgPT = oyIN.array([YKHO.embedding(WKvO) for WKvO in V22M])\n qqgr = oyIN.mean(LgPT, axis=0)\n return qqgr\n else:\n return None",
"def S8vG(YZmJ, SJ1x):\n if type(YZmJ) is not list... | [
"0.73989266",
"0.6673249",
"0.66192013",
"0.6418789",
"0.6392872",
"0.6364795",
"0.6341687",
"0.6319616",
"0.6296236",
"0.62874997",
"0.62336546",
"0.6222577",
"0.62156737",
"0.6171969",
"0.6123387",
"0.6081481",
"0.6076691",
"0.6076426",
"0.60219926",
"0.6004351",
"0.5998460... | 0.7168455 | 1 |
Train GloVe embeddings. All setting are default (as in demoscript) except for the mincount which is set to one, such that all terms get embeddings. | def EvQg(YLdK: str, IznC: str, Eqje: str, AvBb: Set[int], OGmZ: Set[int]) -> str:
n7Q8 = './glove/'
L6cT = 'embeddings/glove_format_' + IznC
WiVW = 'embeddings/' + IznC
Tk3c = Hy7s.path.join(Eqje, L6cT)
k4XE = Hy7s.path.join(Eqje, WiVW)
Zmiq = '{}vocab_count -min-count 1 -verbose 2 < {} > vocab.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvQg():\n BEzV()\n nSb1()\n hXNa()\n A6zm()",
"def AepQ(YKHO, IdSp):\n import gensim\n from gensim.models import Word2Vec\n with open('Large_files/glove.6B.300d.pickle', 'rb') as eHNT:\n oV2M = t2lc.load(eHNT)\n lhXX = len(oV2M)\n CW70 = Word2Vec(IdSp, vector_size=300, windo... | [
"0.6890174",
"0.6823158",
"0.67350376",
"0.6730503",
"0.64680815",
"0.64299846",
"0.64280725",
"0.63962513",
"0.6390217",
"0.6378628",
"0.6367077",
"0.6332863",
"0.6278524",
"0.6258672",
"0.62179905",
"0.6209585",
"0.6198153",
"0.61881006",
"0.61687714",
"0.61673087",
"0.6138... | 0.5904888 | 44 |
Check DataFrame equality Check that two dataframes have the same columns and values. Allow column order to differ. | def kRZn(_lYe, qaAi, DDI8=False, rhd_=3):
if not set(_lYe.columns) == set(qaAi.columns):
return False
if DDI8:
try:
J3WZ(_lYe[qaAi.columns], qaAi, check_dtype=False, check_exact=False, check_less_precise=rhd_)
return True
except:
return False
else:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QRN6(_lYe: pd.DataFrame, qaAi: pd.DataFrame):\n assert _lYe.columns.tolist() == qaAi.columns.tolist(), \"Columns don't match\"\n assert len(_lYe) == len(qaAi), \"Number of rows doesn't match\"\n assert _lYe.values.tolist() == qaAi.values.tolist(), \"Content doesn't match\"",
"def yWQZ(_lYe: pd.DataF... | [
"0.8425086",
"0.83363134",
"0.8106072",
"0.76940507",
"0.76525396",
"0.7629813",
"0.74892",
"0.7442251",
"0.7387869",
"0.73257184",
"0.713566",
"0.711731",
"0.7116812",
"0.70158273",
"0.7012198",
"0.69580245",
"0.69060636",
"0.6894414",
"0.6849892",
"0.68155426",
"0.68085265"... | 0.7483461 | 7 |
Create a unetbasedmodel from the compact options format where the same convolution is given for each layer, and arguments are given in lists | def pgD4(YKHO, y7GR, DMw4):
YKHO.setDownConv = U78l.ModuleList()
YKHO.inner_modules = U78l.ModuleList()
YKHO.setUpConv = U78l.ModuleList()
_Tqz = hasattr(y7GR, 'innermost') and y7GR.innermost is not None
if _Tqz:
C_AB = YKHO._create_inner_modules(y7GR.innermost, UoDW)
for _gRY in C_A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HfVc(GPtr, GhuM, KWf0=1, EcAO=(2, 2, 2), OR2u=1, OmaG=1e-05, JOXk=False):\n\n def Xwve(AvSC, h6hZ, eAis, GPtr):\n xm8f = VIRZ(1, (1, 1, 1), activation='relu', padding='same')\n _1J6 = list()\n\n def gsNE(WKvO):\n return WKvO[:, :, :, :, 0:1]\n\n def _8mF(WKvO):\n ... | [
"0.6729126",
"0.6681923",
"0.66796297",
"0.6643492",
"0.66142035",
"0.6604251",
"0.6597588",
"0.6595895",
"0.6570796",
"0.65707564",
"0.6564616",
"0.65558994",
"0.65556103",
"0.6533332",
"0.6528584",
"0.6504814",
"0.649589",
"0.6472654",
"0.64647377",
"0.6449271",
"0.64271355... | 0.6130738 | 55 |
Returns a dictionary with an entry for each assembly id. This entry is itself a dictionary mapping protein id to protein length. | def PCU6(jQ3Z):
sWmO = Hy7s.getcwd()
hlel = {TL4L: {} for TL4L in jQ3Z.index}
for YRbF, TL4L in enumerate(jQ3Z.index):
if YRbF == 0 or (YRbF + 1) % 100 == 0:
print(f'Assembly {YRbF + 1} / {len(jQ3Z)}')
e4I9 = {}
QMth = gzes(sWmO, f'data/sequences/{TL4L}/{TL4L}_protein.faa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _kMV(wyka):\n R8cc = {}\n for ETu_ in Rg82.parse(wyka, 'fasta'):\n R8cc[ETu_.id] = {}\n R8cc[ETu_.id]['length'] = len(ETu_.seq)\n return R8cc",
"def _kMV(wyka):\n R8cc = {}\n for ETu_ in Rg82.parse(wyka, 'fasta'):\n R8cc[ETu_.id] = {}\n R8cc[ETu_.id]['length'] = len... | [
"0.70383346",
"0.6682704",
"0.6476416",
"0.63974124",
"0.61825854",
"0.6126207",
"0.6013269",
"0.6004014",
"0.5946642",
"0.5893576",
"0.583061",
"0.5817896",
"0.5793909",
"0.5707377",
"0.5680039",
"0.5673486",
"0.5603547",
"0.559523",
"0.5592853",
"0.55868",
"0.5581613",
"0... | 0.70601445 | 0 |
Extracts the name of the last checkpoint file | def MlmN(j0hr: str, RwrQ) -> str:
bo34 = Few0(cuda=ht2j.cuda.is_available() and (not RwrQ))
RYis = []
for eHKs, GRVp, iumf in Hy7s.walk(j0hr):
bo34.info(f'Searching for checkpoint in {j0hr}')
naEe = [eHNT for eHNT in iumf if eHNT.endswith('.tar')]
if naEe:
Vbas = max(naEe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FW_I():\n bPTx = tiIF()\n deXY = [eHNT for eHNT in Koyk.ls(bPTx) if syzb in eHNT]\n goNN = sorted(deXY)[-1]\n return Hy7s.path.join(bPTx, goNN)",
"def O36t(CfXJ):\n deXY = SC2F.glob(Hy7s.path.join(CfXJ, '*.pth'))\n deXY.sort()\n if len(deXY) == 0:\n return None\n return deXY[-1... | [
"0.8272496",
"0.82201153",
"0.8206089",
"0.7724897",
"0.7540904",
"0.74400234",
"0.7363188",
"0.71983266",
"0.71866065",
"0.71692663",
"0.7087657",
"0.7079088",
"0.70715576",
"0.70619094",
"0.6991505",
"0.6932262",
"0.6927561",
"0.6893774",
"0.6893039",
"0.6851767",
"0.684936... | 0.64678144 | 39 |
Returns True regardless of the length of the sequence. This behaviour is for backwards compatibility, since until the __len__ method was added, a SeqRecord always evaluated as True. Note that in comparison, a Seq object will evaluate to False if it has a zero length sequence. | def ebnO(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FDfP(YKHO) -> bool:\n return YKHO._sequence_run is not None",
"def dpMr(YKHO):\n return True",
"def eRwN(YKHO):\n return bool(YKHO.__len__())",
"def AczZ(YKHO):\n return YKHO._length != None",
"def FDfP(YEnM):\n return hasattr(YEnM, '__len__')",
"def Un_3(YKHO) -> bool:\n return len... | [
"0.7074536",
"0.70419115",
"0.70044786",
"0.69930476",
"0.6896289",
"0.6875009",
"0.6871072",
"0.6819944",
"0.68162197",
"0.6813823",
"0.6786801",
"0.6786801",
"0.6786801",
"0.6727399",
"0.6664108",
"0.6635767",
"0.6619705",
"0.6587799",
"0.6566682",
"0.65492404",
"0.6535948"... | 0.0 | -1 |
The PHY that is preferred for this connection. This value is used for Peerinitiated PHY update procedures and | def y9Bf(YKHO) -> VSIU:
return YKHO._preferred_phy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qpz_(YKHO) -> VSIU:\n return YKHO._current_phy",
"def yn8Y(YKHO) -> str:\n return qe4Y.get(YKHO, 'network_operator')",
"def lRPl(YKHO):\n return M3tg(YKHO.anm, 'phy', YKHO.node_id)",
"def gzZ9(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'network_mode')",
"def ewpR(YKHO):\n return YKHO.pr... | [
"0.6225228",
"0.62063533",
"0.6138697",
"0.59460217",
"0.5940356",
"0.57358617",
"0.5730837",
"0.5714545",
"0.5676712",
"0.56355625",
"0.55821925",
"0.55733246",
"0.55733246",
"0.55273366",
"0.5502088",
"0.5482859",
"0.54745305",
"0.54689413",
"0.546849",
"0.5463866",
"0.5459... | 0.7858757 | 0 |
Get file path of a certificate file. | def F28p(MTKo: str, WmM4: str | None=None) -> str | None:
nzu_ = GkAb(gbPf.gettempdir()) / RcG3
if not nzu_.exists():
return WmM4
qaEx: GkAb = nzu_ / MTKo
if not qaEx.exists():
return WmM4
return str(nzu_ / MTKo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uCwa():\n try:\n zOGz = Hy7s.path.realpath(xAKo)\n r6v8 = Hy7s.path.join(zOGz, '..', '..', '..', 'conf', 'cacert.pem')\n return Hy7s.path.abspath(r6v8)\n except Exception:\n return None",
"def Q4rt(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cert_file')",
"... | [
"0.72145206",
"0.7116711",
"0.6941247",
"0.6892329",
"0.68348396",
"0.6812316",
"0.6744032",
"0.67366004",
"0.67323023",
"0.67222166",
"0.67222166",
"0.67205983",
"0.67205983",
"0.6701371",
"0.6690305",
"0.6689512",
"0.6679558",
"0.6678184",
"0.66690224",
"0.6658011",
"0.6644... | 0.0 | -1 |
The set of arguments for constructing a CapacityReservation resource. | def FIMM(Ro_8, *, TUUx: pulumi.Input[str], AHWq: pulumi.Input[int], Xp8H: pulumi.Input[str], DEXX: pulumi.Input[str], kFan: Optional[pulumi.Input[bool]]=None, KhBf: Optional[pulumi.Input[str]]=None, FT5C: Optional[pulumi.Input[str]]=None, X080: Optional[pulumi.Input[bool]]=None, WHnH: Optional[pulumi.Input[str]]=None, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, TVME: Optional[pulumi.Input[float]]=None, mWFP: Optional[pulumi.Input[str]]=None, X3oZ: Optional[pulumi.Input[float]]=None, lJa7: Optional[pulumi.Input[float]]=None):\n if TVME is not None:\n qe4Y.set(Ro_8, 'maximum_capacity', TVME)\n if mWFP is not None:\n qe4Y.set(Ro_8, 'nam... | [
"0.6858288",
"0.66959167",
"0.6110618",
"0.6069842",
"0.6061219",
"0.6033314",
"0.60301405",
"0.5989716",
"0.59525734",
"0.588181",
"0.5867143",
"0.58652645",
"0.58562917",
"0.583736",
"0.58203685",
"0.58169097",
"0.57926244",
"0.5773535",
"0.5766218",
"0.575805",
"0.5743315"... | 0.6008703 | 7 |
Get an existing CapacityReservation resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'CapacityReservation':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = h6eL.__new__(h6eL)
r6DL.__dict__['availability_zone'] = None
r6DL.__dict__['available_instance_count'] = None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, uvmn: Optional[pulumi.Input[str]]=None, GwCK: Optional[pulumi.Input[str]]=None, WbTE: Optional[pulumi.Input[int]]=None, hJzq: Optional[pulumi.Input[float]]=None, AHWq: Optional[pulumi.Inp... | [
"0.65416217",
"0.6409944",
"0.5903412",
"0.57894546",
"0.5723212",
"0.5718278",
"0.5699709",
"0.5682578",
"0.5607496",
"0.55761254",
"0.5569398",
"0.5567576",
"0.5560543",
"0.55604833",
"0.55586773",
"0.55486363",
"0.553674",
"0.55045676",
"0.55043554",
"0.54381245",
"0.54283... | 0.7277312 | 0 |
Return whether hass should poll the state of the entity. The state will updated through the websocket connection to the hub, thus polling is disabled. | def KZ_I(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KZ_I(YKHO):\n return YKHO._data.polling",
"def KZ_I(YKHO):\n return True",
"def KZ_I(YKHO):\n return YKHO._should_poll",
"def KZ_I(YKHO):\n return False",
"def KZ_I(YKHO):\n return YKHO._config.should_poll",
"def KZ_I(YKHO):\n return YKHO._config.should_poll",
"def KZ_I(YKHO):\n ... | [
"0.74702066",
"0.7195494",
"0.71238047",
"0.7057093",
"0.70535487",
"0.70535487",
"0.6960672",
"0.6834592",
"0.6719528",
"0.6719528",
"0.6719528",
"0.6719528",
"0.6719528",
"0.6714326",
"0.6714326",
"0.6714326",
"0.67124784",
"0.6705594",
"0.6680242",
"0.6676899",
"0.6676899"... | 0.6746819 | 11 |
Return the unique ID of this light. | def ShR8(YKHO):
return YKHO._group.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._zlight.id.lower()",
"def ShR8(YKHO) -> str:\n return f'{super().unique_id}::light'",
"def Z1CY(YKHO):\n return RyGy.blurUtil.uniqueId(YKHO._nativePointer)",
"def Z1CY(YKHO):\n return RyGy.blurUtil.uniqueId(YKHO._nativePointer)",
"def ShR8(YKHO):\n return YKHO._... | [
"0.81145173",
"0.7777822",
"0.759216",
"0.759216",
"0.7566298",
"0.75586253",
"0.75586253",
"0.75586253",
"0.75586253",
"0.75586253",
"0.75301945",
"0.7515117",
"0.7515117",
"0.75006944",
"0.7492005",
"0.74831975",
"0.74272937",
"0.74238306",
"0.74238306",
"0.74238306",
"0.74... | 0.0 | -1 |
Return the ID of this light. | def jf3N(YKHO):
return YKHO._group.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO.get_roi_feature('id')",
"def mLJR(YKHO):\n return YKHO.__id",
"def mLJR(YKHO):\n return YKHO.__id",
"def mLJR(YKHO):\n return YKHO.__id",
"def mLJR(YKHO):\n return YKHO.__id",
"def KlfQ(YKHO):\n return YKHO.ID",
"def yHil(YKHO):\n return YKHO._id",
"... | [
"0.7473385",
"0.74154806",
"0.74154806",
"0.74154806",
"0.74154806",
"0.7404851",
"0.7403291",
"0.73844707",
"0.73826104",
"0.73826104",
"0.7379871",
"0.7379871",
"0.73699373",
"0.73699373",
"0.73699373",
"0.73699373",
"0.73699373",
"0.73699373",
"0.73699373",
"0.73699373",
"... | 0.0 | -1 |
Return the coldest color_temp that this light supports. | def fuXM(YKHO):
return 1000000 / 10000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ccCp(YKHO):\n return YKHO._color_temp",
"def ccCp(YKHO):\n return YKHO._color_temp",
"def ccCp(YKHO):\n return YKHO._color_temp",
"def ccCp(YKHO):\n return YKHO._ct",
"def ccCp(YKHO):\n return YKHO._sub_device.status['color_temp']",
"def ccCp(YKHO):\n ZbVW = 'color_temp'\n return... | [
"0.8145284",
"0.8145284",
"0.8145284",
"0.79892296",
"0.798338",
"0.79687434",
"0.7946626",
"0.7828589",
"0.78263557",
"0.77515084",
"0.74769586",
"0.74583983",
"0.74516976",
"0.7414952",
"0.73247355",
"0.7320699",
"0.71985006",
"0.6970323",
"0.6600578",
"0.64410424",
"0.6374... | 0.0 | -1 |
Return the warmest color_temp that this light supports. | def VAAb(YKHO):
return 1000000 / 1100 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ccCp(YKHO):\n ZbVW = 'color_temp'\n return YKHO._get_return_value(ZbVW, YKHO._state_hue)",
"def ccCp(YKHO):\n if YKHO.device.supports_color_temperature:\n yizX = YKHO.device.current_color_temperature\n if yizX is not None:\n return kS5r.color_temperature_kelvin_to_mired(yizX... | [
"0.829591",
"0.82690907",
"0.8252727",
"0.8252727",
"0.8252727",
"0.8141426",
"0.8100649",
"0.79269594",
"0.78737533",
"0.7837964",
"0.77956843",
"0.7781678",
"0.77769905",
"0.7773247",
"0.7754378",
"0.7701935",
"0.7211994",
"0.7174842",
"0.7121372",
"0.69374806",
"0.6825687"... | 0.0 | -1 |
Calculates a Pearson correlation coefficient and the pvalue for testing noncorrelation. Copied from scipy.stats.pearsonr and vectorized for "wide" x, i.e. correlating multiple datasets against y. See the documentation there for more information. | def pRq9(WKvO, LVAh, NbjQ=True):
exwG = len(LVAh)
Ty9i = WKvO.shape[0]
RsfQ = WKvO.mean(axis=1)
suhQ = LVAh.mean()
tdL7, PVF6 = (WKvO - RsfQ[:, None], LVAh - suhQ)
XAuP = exwG * oyIN.add.reduce(tdL7 * PVF6, axis=1)
tv2b = exwG * oyIN.sqrt(oyIN.sum(tdL7 * tdL7, axis=1) * oyIN.sum(PVF6 * PVF6)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A1dO(WKvO, LVAh):\n Mkmy, qpV3 = eQSh.pearsonr(WKvO, LVAh)\n return (Mkmy, qpV3)",
"def VaRB(WKvO, LVAh):\n import scipy.stats as eQSh\n return eQSh.pearsonr(WKvO, LVAh)",
"def A1dO(Y8eF, aMgO):\n return Zxt2.stats.pearsonr(Y8eF, aMgO)[0]",
"def nRfP(WKvO, LVAh):\n tYa9 = oyIN.cov(WKvO,... | [
"0.8115801",
"0.8045354",
"0.774043",
"0.77358127",
"0.767066",
"0.76238924",
"0.7565723",
"0.749395",
"0.74598",
"0.7457514",
"0.74498487",
"0.74444664",
"0.73502964",
"0.734097",
"0.7336311",
"0.7326079",
"0.71750844",
"0.715876",
"0.7111984",
"0.70592785",
"0.7045361",
"... | 0.7444234 | 12 |
Perform scaled dotproduct attention on input tensors. Only operates on the last two dimensions of input tensors. | def fUzg(vexM, G1Hx, Ty9i, ZHfW=False):
assert vexM.shape[-1] == G1Hx.shape[-1]
assert vexM.shape[-2] == G1Hx.shape[-2]
assert G1Hx.shape[-2] == Ty9i.shape[-2]
if ZHfW:
_nLS = H270(ZylS.shape(vexM)[-2])
else:
_nLS = ZylS.zeros((ZylS.shape(vexM)[-2], ZylS.shape(vexM)[-2]))
_nLS = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUzg(vexM, G1Hx, Ty9i, ZHfW):\n LwVP = ZylS.matmul(vexM, G1Hx, transpose_b=True)\n WiZd = ZylS.cast(ZylS.shape(G1Hx)[-1], ZylS.float32)\n _q8E = LwVP / ZylS.math.sqrt(WiZd)\n if ZHfW is not None:\n _q8E += ZHfW * -1000000000.0\n HfyR = ZylS.nn.softmax(_q8E, axis=-1)\n hlel = ZylS.matmu... | [
"0.69956213",
"0.696707",
"0.69632983",
"0.6931729",
"0.6912812",
"0.6886604",
"0.68798286",
"0.6872205",
"0.68468904",
"0.68389946",
"0.683465",
"0.68231386",
"0.6821485",
"0.6821485",
"0.6765966",
"0.6699623",
"0.6676414",
"0.6598252",
"0.6594017",
"0.6591332",
"0.6575976",... | 0.63695633 | 39 |
Get holidays in US when stock market is closed | def ZHqE():
LBKB = rLdf.read_html('https://www.sec.gov/edgar/filer-information/calendar')[0]
LBKB['Date'] = rLdf.to_datetime(LBKB['Date'])
print(LBKB)
return LBKB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FPM2(YKHO):\n pass",
"def ZHqE(yKcO='2015-01-01', vxW9='DK', Gjtu='D'):\n Os4s = str(_c1T.today() + fCoM(3))\n YdD0 = rLdf.date_range(start=yKcO, end=Os4s, freq=Gjtu)\n QP4N = rhBO.CountryHoliday(vxW9)\n BM9F = []\n for Csk6 in YdD0:\n a7TQ = Csk6 in QP4N\n Zjlx = QP4N.get(Csk... | [
"0.71353143",
"0.71031094",
"0.6632251",
"0.66105115",
"0.6598537",
"0.65907717",
"0.65690273",
"0.65469474",
"0.6520908",
"0.64846635",
"0.6483371",
"0.6475807",
"0.64581954",
"0.6454495",
"0.6412839",
"0.6373924",
"0.6335838",
"0.62807035",
"0.62643737",
"0.6254987",
"0.624... | 0.64189553 | 14 |
Sends email with token for resetting password to an user | def m8z6(YKHO):
wvEv = s9u5.RequestParser()
wvEv.add_argument('email', type=FMoS.create('existing_email'))
qIxc = wvEv.parse_args()
_4no = mv1M.get_by('email', qIxc.email)
D5gV.reset_password_notification(_4no)
return qsRR() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def doc2(YKHO):\n eOtH = YKHO.get_reset_token()\n tO9_ = LuKW('Password Reset Request', recipients=[YKHO.email])\n tO9_.body = f'To reset your password, visit the following link:\\n\\n {nKyW('users.reset_token', token=eOtH, _external=True)}\\n\\n If you did not make this request, please ignore this ... | [
"0.80072075",
"0.7988156",
"0.79707754",
"0.7894667",
"0.7885405",
"0.78280014",
"0.78268594",
"0.77369326",
"0.7678495",
"0.767084",
"0.76464754",
"0.76366806",
"0.7632113",
"0.7624203",
"0.759621",
"0.7545638",
"0.7540892",
"0.7533742",
"0.7532451",
"0.751202",
"0.74708736"... | 0.0 | -1 |
A PorterStemmerTokenizer hybrid to splits sentences into words (tokens) and applies the porter stemming algorithm to each of the obtained token. Tokens that are only consisting of punctuation characters are removed as well. Only tokens that consist of more than one letter are being kept. | def s9tf(l5Ny, mkhU=GT7p):
sKz5 = l5Ny.lower()
s2mk = Dhdw.wordpunct_tokenize(sKz5)
RZej = [GT7p.stem(a1PO) for a1PO in s2mk]
zDFD = [KCHu for KCHu in RZej if ZbWC.match('^[a-zA-Z]+$', KCHu) is not None]
return zDFD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K_Z6(l5Ny):\n wgQP = qXkR()\n return [wgQP.stem(GIN8) for GIN8 in l5Ny.split()]",
"def GMXA(l5Ny, XPB5=True):\n l5Ny = l5Ny.translate(vIwR.punctuation)\n s2mk = dFss(l5Ny)\n if XPB5:\n mkhU = qXkR()\n s2mk = [mkhU.stem(a1PO) for a1PO in s2mk]\n return s2mk",
"def GMXA(l5Ny, ... | [
"0.7902817",
"0.7613214",
"0.7590444",
"0.7441311",
"0.7338703",
"0.72818744",
"0.7182966",
"0.71764916",
"0.7175997",
"0.7170585",
"0.7169214",
"0.71589243",
"0.7124873",
"0.71216947",
"0.7121194",
"0.7121174",
"0.71157664",
"0.71103376",
"0.7099873",
"0.7094932",
"0.7087527... | 0.7758405 | 1 |
Return if these two objects are equivalent. | def aPi6(j9Y_: Operator, EkqX: Operator) -> bool:
if j9Y_ is None or not isinstance(j9Y_, uS0y):
print(f'{j9Y_.name} has different type.')
return False
if EkqX is None or not isinstance(EkqX, uS0y):
print(f'{EkqX.name} has different type.')
return False
eKr7 = j9Y_.op_type ==... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return True if YKHO.serialize() == Elif.serialize() else False",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def thHz(YKHO, Elif):\n if YKHO.get_text_data_list() != Elif.get_text_data_list() or YKHO.get_date_object() != Elif.get_date_object():\n return GoWZ\n ... | [
"0.7648988",
"0.7472812",
"0.74709105",
"0.746234",
"0.74367553",
"0.74287534",
"0.74257255",
"0.7414139",
"0.7414139",
"0.7413665",
"0.73994756",
"0.7381261",
"0.7379801",
"0.7356172",
"0.7343241",
"0.7327905",
"0.73122025",
"0.7310914",
"0.73104304",
"0.731037",
"0.7307065"... | 0.0 | -1 |
Wraps hidden states in new Tensors, to detach them from their history. | def IOWm(MKlR):
if isinstance(MKlR, ht2j.Tensor):
return MKlR.detach()
else:
return tuple((IOWm(Ty9i) for Ty9i in MKlR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YmeV(YKHO):\n YKHO.hidden = (ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size), ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))",
"def eIRW(Zode):\n if isinstance(Zode, ht2j.Tensor):\n return Zode.detach()\n else:\n return tuple((eIRW(Ty9i) for Ty9i in Zode))",
"def MAw8(YKHO):\n ... | [
"0.688034",
"0.6450506",
"0.63787115",
"0.6309068",
"0.62510145",
"0.6234353",
"0.62030894",
"0.6197849",
"0.61870444",
"0.61870444",
"0.6125698",
"0.611927",
"0.6070696",
"0.60015607",
"0.5995592",
"0.59938115",
"0.59703153",
"0.5964124",
"0.59490204",
"0.5938127",
"0.593510... | 0.56509876 | 47 |