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 |
|---|---|---|---|---|---|---|
The longitude of the address. | def fopC(YKHO):
return YKHO._dict.get('longitude') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fopC(YKHO):\n return YKHO._location[1]",
"def fopC(YKHO) -> str:\n return qe4Y.get(YKHO, 'longitude')",
"def fopC(YKHO):\n return YKHO['lon']",
"def fopC(YKHO):\n FDPT = YKHO._lat_lon[1]\n return FDPT",
"def fopC(YKHO):\n return YKHO._longitude",
"def fopC(YKHO):\n return YKHO._l... | [
"0.87086326",
"0.858543",
"0.85647553",
"0.8545504",
"0.85040325",
"0.85040325",
"0.85040325",
"0.8498348",
"0.8450704",
"0.844386",
"0.84409714",
"0.84409714",
"0.84409714",
"0.84409714",
"0.84409714",
"0.8438452",
"0.8429682",
"0.83487475",
"0.8293176",
"0.82895684",
"0.825... | 0.8500784 | 7 |
The latitude of the address. | def _UuI(YKHO):
return YKHO._dict.get('latitude') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UuI(YKHO):\n QnmL = YKHO._lat_lon[0]\n return QnmL",
"def _UuI(YKHO):\n return YKHO._location[0]",
"def _UuI(YKHO):\n return YKHO['lat']",
"def _UuI(YKHO):\n hLRM = YKHO._get_origin()\n return hLRM.latitude",
"def QnmL(YKHO) -> float:\n return YKHO._lat",
"def QnmL(YKHO) -> floa... | [
"0.83013713",
"0.82321775",
"0.82061046",
"0.81961536",
"0.81403434",
"0.81403434",
"0.8106502",
"0.80911916",
"0.8081955",
"0.8050369",
"0.8037032",
"0.8029809",
"0.79752195",
"0.7962371",
"0.7962371",
"0.7962371",
"0.7962371",
"0.7956216",
"0.7938757",
"0.78925836",
"0.7884... | 0.7914537 | 19 |
Raise exception if we can tell that FITSFILEPATH does not represent a FITS file that is valid to ingest into Archive. | def SsFK(KD9l):
assert 'FITS' == q5sG(KD9l) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def POgv(YKHO):\n Bw8j, yPg3 = (20200219, 51053)\n with YKHO.assertRaises(FileNotFoundError):\n ej8u = tcm5(Bw8j, yPg3)\n ej8u = tcm5(Bw8j, yPg3, force=True)\n assert oyIN.all(ej8u['FIBERMAP'].data['FIBER_X'] == 0.0)\n assert oyIN.all(ej8u['FIBERMAP'].data['FIBER_Y'] == 0.0)",
"def ldVc(YKH... | [
"0.6156395",
"0.6074505",
"0.6041164",
"0.60346365",
"0.60223895",
"0.5999095",
"0.5992643",
"0.59466535",
"0.59082603",
"0.5889527",
"0.5884449",
"0.5859994",
"0.5778636",
"0.5746591",
"0.5726513",
"0.57238984",
"0.5712755",
"0.5708572",
"0.56979984",
"0.5676136",
"0.5661707... | 0.6347582 | 0 |
Create the singular Jacobi form on the lattice `L`, whose `0`th coefficient equals the fiunction \code{inv}. | def FIMM(YKHO, aPd6, MKlR, dKc3):
super(P8YG, YKHO).__init__(aPd6.rank() / 2, aPd6, MKlR)
YKHO.__lambda = dKc3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vBGF(krQy):\n Rl0b = M9kO(oyIN.atleast_2d(krQy))\n return 1 / Rl0b",
"def RuW5(cDgs):\n HLOc = cDgs.shape[0]\n BE0L = oyIN.zeros((HLOc, HLOc))\n for r845 in range(HLOc):\n BE0L[r845][r845] = 1\n for YRbF in range(r845 + 1, HLOc):\n BE0L[YRbF][r845] = -sum((cDgs[YRbF][G... | [
"0.60726583",
"0.59106874",
"0.5827029",
"0.57845014",
"0.5671344",
"0.5616984",
"0.5501951",
"0.54717845",
"0.54490954",
"0.5441585",
"0.5433005",
"0.5415449",
"0.53840476",
"0.5333967",
"0.5327061",
"0.5324893",
"0.5321792",
"0.53154725",
"0.5297767",
"0.52801746",
"0.52782... | 0.7014995 | 0 |
This method computes soft alignment scores for each of the hidden_states and the last hidden_state of the LSTM. | def eyGP(YKHO, tVgI, fMJb):
Zode = fMJb.squeeze(0)
c3Oi = ht2j.bmm(tVgI, Zode.unsqueeze(2)).squeeze(2)
xBuQ = vuvg.softmax(c3Oi, 1)
dCzK = ht2j.bmm(tVgI.transpose(1, 2), xBuQ.unsqueeze(2)).squeeze(2)
return dCzK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6I7(YKHO, LYEB, vY7c, ZHfW=None):\n UVB2 = Kt_s.dot(LYEB, YKHO.Wa)\n YnC3 = vY7c\n if YnC3.ndim == 2:\n hNWY = UVB2[:, None, :] + YnC3[None, :, :]\n else:\n hNWY = UVB2[:, None, :] + YnC3\n u_ln = Kt_s.activate(hNWY, 'tanh')\n DAqN = Kt_s.dot(u_ln, YKHO.Va)\n if ZHfW:\n ... | [
"0.6770722",
"0.6292715",
"0.6276706",
"0.6265418",
"0.6055566",
"0.6031392",
"0.5939827",
"0.59257793",
"0.5917638",
"0.5906266",
"0.5894931",
"0.5853411",
"0.58512175",
"0.5806231",
"0.5781613",
"0.57639545",
"0.574714",
"0.5742053",
"0.57333106",
"0.5724241",
"0.57077545",... | 0.0 | -1 |
Checks that there are no duplicate networksegments No two networksegments should never share the same network_id, network_type and physical_network. Two NULL values are not regarded as equal for a unique constraint, so networksegments with NULL as physical_network are ignored by this check. | def eAYv(ZUyI):
if not _Fei.CONF.database.connection:
return cIBj.Result(cIBj.Code.WARNING, bGrB("Database connection string is not set. Check for port MAC sanity can't be done."))
UHFx = rlT2()
if UHFx:
return cIBj.Result(cIBj.Code.WARNING, bGrB('There are %d instances of networksegments sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P12o(YKHO):\n YKHO.network_unique = eVVj.get_network_unique(YKHO.network)",
"def jMwQ(YKHO):\n it2f = dict(((exwG['name'], exwG['vlan_start']) for exwG in filter(lambda exwG: exwG['vlan_start'] is not None, YKHO.networks)))\n if it2f:\n if YKHO.task.cluster.network_config.segmentation_type ==... | [
"0.5897529",
"0.57751137",
"0.57320404",
"0.57133484",
"0.5682581",
"0.56472063",
"0.56449586",
"0.55577844",
"0.5544255",
"0.54078215",
"0.53860646",
"0.53540367",
"0.534805",
"0.5277443",
"0.52750826",
"0.5214319",
"0.52053595",
"0.52044946",
"0.52013427",
"0.51885104",
"0.... | 0.76803565 | 0 |
Convert ms/s to km/h | def Ripw(YKHO):
return epAf.ceil(YKHO.obd2.get_speed * 3600 / 1000) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b6ID(ZGSg):\n return ZGSg / 3.6",
"def K2sP(q5XV):\n return q5XV * 1000",
"def jyaF(r8hN):\n return r8hN / 1000",
"def OT82(r8hN):\n return float(r8hN) / 1000",
"def FLUV(YKHO, lYEE):\n V_db = 2.23694 * float(lYEE)\n return round(V_db, 1)",
"def KMg6(T6S7):\n return T6S7 * 3600.0... | [
"0.78835815",
"0.7626399",
"0.7594156",
"0.73944414",
"0.7337537",
"0.72654897",
"0.7257712",
"0.72059447",
"0.7056213",
"0.700278",
"0.68849874",
"0.6864578",
"0.6849279",
"0.68263793",
"0.678731",
"0.6763416",
"0.67442256",
"0.6695297",
"0.66723764",
"0.66615045",
"0.665563... | 0.5960775 | 89 |
Writes the information from a Pandas DataFrame to a csv data file. All dataframes written to a single file must have the same number of columns and column names. If the file specified by file_path does not exist, it will be created and initialized with the header row and first data row from df. All subsequent writes wi... | def iaXM(jQ3Z, qaEx):
with open(qaEx, 'a') as KAfx:
KAfx.seek(0)
if Hy7s.path.getsize(qaEx) == 0:
KAfx.write(E_hp(jQ3Z))
KAfx.write('\n')
KAfx.write(EmwZ(jQ3Z))
KAfx.write('\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A5ou(jQ3Z, qaEx):\n jQ3Z.to_csv(qaEx, sep=',', header=None, index=False, mode='a')",
"def eGRE(jQ3Z, qaEx):\n jQ3Z.to_csv(qaEx, index=False)",
"def RZtn(jQ3Z, pmON):\n jQ3Z.toPandas.to_csv(pmON)",
"def m6_J(jQ3Z: DataFrame, pmON: str, **ahO_) -> None:\n jQ3Z.write.csv(path=pmON, **ahO_)",
"... | [
"0.7895854",
"0.7821566",
"0.7705929",
"0.7532924",
"0.75033724",
"0.750075",
"0.74557",
"0.74359274",
"0.7426912",
"0.74193937",
"0.7394903",
"0.738895",
"0.7386788",
"0.73102534",
"0.7276564",
"0.7262739",
"0.72490156",
"0.7211536",
"0.7104971",
"0.7048451",
"0.7041843",
... | 0.7638071 | 3 |
Read a tsv file with predefined format | def Nwr9(Emd4, pmON, X7ac=True):
apum = open(pmON, mode='r')
nPrm = apum.read()
return Emd4.read_string(data=nPrm, with_target=X7ac) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sYUC(Emd4, eZ_W, jaFg=None):\n return _rvh(eZ_W)",
"def sYUC(Emd4, eZ_W, jaFg=None):\n with ZylS.gfile.Open(eZ_W, 'r') as eHNT:\n N5Pj = m6_J.reader(eHNT, delimiter='\\t', quotechar=jaFg)\n Nqlg = []\n for zFiD in N5Pj:\n Nqlg.append(zFiD)\n return Nqlg",
"def s... | [
"0.75861514",
"0.7509339",
"0.7509339",
"0.7509339",
"0.7509339",
"0.7499131",
"0.7486524",
"0.747869",
"0.74662197",
"0.74662197",
"0.74662197",
"0.74312437",
"0.74131984",
"0.7401444",
"0.73948824",
"0.739331",
"0.73842764",
"0.73652923",
"0.73104435",
"0.73002374",
"0.7268... | 0.0 | -1 |
Converts the tape to a list of letters. The list includes all cells that were written to, with Nones between them if there are empty cells between them. | def list(YKHO) -> x1iM[Ls6i]:
Zcvf = max(YKHO.tape.keys())
return [YKHO.tape.get(exwG) for exwG in range(Zcvf + 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kNOn(YKHO):\n KoG3 = []\n for rdlD in iBIi.board:\n for iVRZ in rdlD:\n KoG3.append(iVRZ.letter)\n return KoG3",
"def sOb5(YKHO, TMbP):\n KoG3 = [[None for bGrB in range(YKHO.crossword.width)] for bGrB in range(YKHO.crossword.height)]\n for Es0b, GIN8 in TMbP.items():\n ... | [
"0.6884931",
"0.6317823",
"0.6317823",
"0.6317823",
"0.6221923",
"0.5864238",
"0.5806389",
"0.57486",
"0.5740337",
"0.5702921",
"0.56592846",
"0.56085217",
"0.55485904",
"0.55485904",
"0.55327463",
"0.5442618",
"0.5419292",
"0.5387281",
"0.53711605",
"0.53695685",
"0.53505784... | 0.7407613 | 0 |
A weighted MSE metric, that adds weight to errors depending on how close the true temperature is to the maximum allowed temperature. Moreover, underestimates are multiplied by a factor k. | def rYB4(Y8eF, aMgO, xF06=None, dJo6=120, eQDa=0):
G1Hx = oyIN.sqrt(10)
if hasattr(Y8eF, 'values'):
Y8eF = Y8eF.values
if hasattr(aMgO, 'values'):
aMgO = aMgO.values
yk4i = Y8eF - aMgO
IDsK = oyIN.abs(eQDa)
yk4i *= (Y8eF + IDsK) / (dJo6 + IDsK)
yk4i[yk4i > 0] *= G1Hx
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def quGU(LTIa, _mSQ, Srw6):\n SRYB = X40z(LTIa, _mSQ)\n oug5 = Gq7O(LTIa, _mSQ) - Srw6\n return SRYB + oug5 ** 2",
"def K8lg(l4Rf, lsMu, dhrP):\n f16j = l4Rf - lsMu\n Ki0S = dhrP * f16j * f16j\n return ht2j.sum(Ki0S) / ht2j.numel(Ki0S)",
"def wkEt(_mSQ, BkhS, o3Uj):\n o3Uj = _mSQ @ o3Uj\n ... | [
"0.67427486",
"0.673793",
"0.663654",
"0.6596517",
"0.6565662",
"0.65347624",
"0.6513215",
"0.6493907",
"0.6493696",
"0.6493696",
"0.6483456",
"0.6483399",
"0.64039594",
"0.6344307",
"0.63108045",
"0.62912333",
"0.6287323",
"0.62510455",
"0.62433076",
"0.623766",
"0.623766",
... | 0.63877726 | 13 |
Add a node to the end of the list. Return the head node. | def _Elu(YKHO, BWXx):
if YKHO.head is None:
YKHO.head = o7DN(BWXx)
else:
Esd_ = o7DN(BWXx)
FZqh = YKHO.head
while FZqh.nextNode is not None:
FZqh = FZqh.nextNode
FZqh.nextNode = Esd_
return YKHO.head | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tj6L(YKHO, Q6kx):\n if not YKHO.head:\n YKHO.head = Q6kx\n return\n exwG = YKHO.head\n for kMLo in YKHO:\n pass\n kMLo.next = Q6kx",
"def SStx(YKHO, ZfUD):\n Esd_ = o7DN(ZfUD)\n if YKHO.head is None:\n YKHO.head = Esd_\n return\n kMLo = YKHO.head\n w... | [
"0.7674548",
"0.7538379",
"0.7503769",
"0.7494108",
"0.7468437",
"0.7451822",
"0.74483335",
"0.74347544",
"0.74202466",
"0.7396691",
"0.7362985",
"0.7358753",
"0.7339719",
"0.7319134",
"0.7317275",
"0.7244785",
"0.721875",
"0.7198411",
"0.7179418",
"0.7178676",
"0.7176883",
... | 0.74819225 | 4 |
Add a node to the end of the list. Return the last node in the list. | def UoYb(YKHO, BWXx, pFG5):
Esd_ = o7DN(BWXx)
pFG5.nextNode = Esd_
return Esd_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tj6L(YKHO, Q6kx):\n if not YKHO.head:\n YKHO.head = Q6kx\n return\n exwG = YKHO.head\n for kMLo in YKHO:\n pass\n kMLo.next = Q6kx",
"def AtWC(YKHO, ZfUD):\n Q6kx = o7DN(ZfUD)\n if YKHO.isEmpty():\n YKHO.first = YKHO.last = Q6kx\n else:\n jvSB = YKHO.fi... | [
"0.7938229",
"0.7709089",
"0.765372",
"0.7642345",
"0.75084424",
"0.74842167",
"0.7441415",
"0.7427556",
"0.7373645",
"0.7356521",
"0.7339943",
"0.7315139",
"0.7124213",
"0.7098026",
"0.7087396",
"0.70831984",
"0.7074132",
"0.7059724",
"0.70376647",
"0.7035406",
"0.70345104",... | 0.73470664 | 10 |
Return the value of a node at the specified position. | def Ibmc(YKHO, d6pt):
if YKHO.get_node_count() == 0 or d6pt < 0 or d6pt >= YKHO.get_node_count():
return None
ycBG = YKHO.head
ewCu = 0
while ycBG.nextNode is not None and ewCu < d6pt:
ycBG = ycBG.nextNode
ewCu += 1
return ycBG.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO, Q6kx):\n raise NotImplementedError",
"def Zmkp(YKHO, dQgj):\n return YKHO.position_function(dQgj)",
"def UnfG(Q6kx):\n if Q6kx is not None:\n return Q6kx['value']\n return Q6kx",
"def nrOS(YKHO, dQgj):\n return YKHO.get_value(dQgj)",
"def NMoC(YKHO, d6pt: int) -> int:\n... | [
"0.77554935",
"0.77052325",
"0.73825073",
"0.7216574",
"0.70318913",
"0.70013297",
"0.6981815",
"0.69341516",
"0.6871768",
"0.6849681",
"0.6779992",
"0.67502093",
"0.6749462",
"0.674753",
"0.67016387",
"0.6696978",
"0.6610914",
"0.65429413",
"0.6526249",
"0.6520916",
"0.65102... | 0.752294 | 2 |
Return the head node in the list. | def qHHo(YKHO):
return YKHO.head | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tmL8(YKHO):\n return YKHO.head_node",
"def cntZ(YKHO):\n if YKHO.head is None:\n return None\n else:\n return YKHO.head",
"def sdCG(YKHO):\n if YKHO.is_empty():\n return None\n return YKHO._head",
"def sdCG(YKHO) -> Msxl:\n raise NotImplementedError",
"def g8tW(YK... | [
"0.8220612",
"0.7936222",
"0.79147893",
"0.78117967",
"0.77198404",
"0.7633727",
"0.7551675",
"0.75471246",
"0.7515743",
"0.7509636",
"0.7509636",
"0.75072885",
"0.75072885",
"0.75072885",
"0.75072885",
"0.75054854",
"0.75035006",
"0.7493847",
"0.7473082",
"0.74438983",
"0.74... | 0.84377617 | 0 |
Remove the first (head) node from the list. Return the new head node | def _IVA(YKHO):
if YKHO.head is None:
return None
if YKHO.head.nextNode is None:
YKHO.head = None
return None
YKHO.head = YKHO.head.nextNode
return YKHO.head | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hxuq(YKHO):\n V3IK = YKHO.head\n if V3IK is None:\n return None\n zAcD = V3IK.next_node\n V3IK.next_node = None\n if zAcD is not None:\n zAcD.previous_node = None\n YKHO.head = zAcD\n return V3IK",
"def Hxuq(YKHO):\n if YKHO.size == 0:\n return None\n sdCG = YK... | [
"0.85569715",
"0.8544078",
"0.8504412",
"0.8283576",
"0.82752866",
"0.81999296",
"0.81627446",
"0.8137969",
"0.8121105",
"0.7974127",
"0.796193",
"0.78348917",
"0.78128314",
"0.78097355",
"0.77965176",
"0.77842563",
"0.77410316",
"0.7729597",
"0.7714425",
"0.77005154",
"0.769... | 0.8711351 | 0 |
Remove duplicate values from the list. Use a python builtin list as an additional temporary data structure. | def z0EY(YKHO):
SzQD = []
if YKHO.head is None:
return
SzQD.append(YKHO.head.value)
ycBG = YKHO.head
while ycBG is not None and ycBG.nextNode is not None:
if ycBG.nextNode.value in SzQD:
YKHO.remove_node_after(ycBG)
else:
SzQD.append(ycBG.nextNode.valu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cXrt(e5Mv):\n bDFL = set(e5Mv)\n SIKZ = list(bDFL)\n return SIKZ",
"def sHC1(YKHO, list):\n return set((ZfUD for ZfUD in list))",
"def uY6T(list):\n return set((ZfUD for ZfUD in list))",
"def dDv2(list):\n S06t = []\n for ZfUD in list:\n if not ZfUD in S06t:\n S06t.... | [
"0.82514334",
"0.8241216",
"0.80113596",
"0.7947746",
"0.79332733",
"0.7914528",
"0.78997874",
"0.78732115",
"0.78702426",
"0.7785842",
"0.7768599",
"0.77228445",
"0.7686002",
"0.7608881",
"0.7596256",
"0.7514653",
"0.7512564",
"0.750568",
"0.74847555",
"0.74613094",
"0.74544... | 0.68668497 | 68 |
Remove duplicate values from the list. Use a dictionary (hash table) as an additional data structure. | def E8fX(YKHO):
qmc_ = {}
if YKHO.head is None:
return
qmc_[YKHO.head.value] = True
ycBG = YKHO.head
while ycBG is not None and ycBG.nextNode is not None:
if ycBG.nextNode.value in qmc_.keys():
YKHO.remove_node_after(ycBG)
else:
qmc_[ycBG.nextNode.valu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DaEM(IqQl):\n return list(U8Lr.fromkeys(IqQl))",
"def Orhr(qFa0):\n return list(dict.fromkeys(qFa0))",
"def aIUk(uf0f: List) -> x1iM:\n PwWw: cuzp[ImMB, bool] = {}\n Aofo = []\n for ZfUD in uf0f:\n if ZfUD in PwWw:\n continue\n PwWw[ZfUD] = True\n Aofo.append(... | [
"0.79780143",
"0.78062636",
"0.77357763",
"0.7715979",
"0.7696778",
"0.74342036",
"0.74264663",
"0.7420704",
"0.7268585",
"0.72630477",
"0.72190875",
"0.72190875",
"0.72190875",
"0.72190875",
"0.71474576",
"0.70652384",
"0.70597446",
"0.7048995",
"0.70168036",
"0.70047224",
"... | 0.7468633 | 5 |
Append a list of values to the linked list. After appending each value, return the last node in the list rather than the head, to reduce the runtime of each operation from O(N) to O(1). | def IJb_(YKHO, c6QI):
if len(c6QI) <= 0:
return
pFG5 = YKHO.get_last_node()
if pFG5 is None:
pFG5 = YKHO.append_node(c6QI[0])
if len(c6QI) > 1:
for wEf2 in c6QI[1:]:
pFG5 = YKHO.append_node_given_last(wEf2, pFG5)
elif len(c6QI) > 1:
for wEf2 in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(yv6U, BWXx):\n if yv6U.head == None:\n yv6U.head = o7DN(BWXx, None)\n else:\n Y0nB(yv6U.head, BWXx)\n yv6U.size += 1",
"def SStx(sdCG, J3uN, wEf2):\n Q6kx = Msxl(wEf2)\n if sdCG:\n J3uN.next = Q6kx\n J3uN = Q6kx\n else:\n sdCG = Q6kx\n J3uN = s... | [
"0.7468695",
"0.7275482",
"0.7213574",
"0.7072838",
"0.705802",
"0.7036806",
"0.7025888",
"0.7020974",
"0.70168114",
"0.7008114",
"0.6952371",
"0.69386065",
"0.68721706",
"0.68664795",
"0.68476427",
"0.68252057",
"0.68146944",
"0.6813703",
"0.68068457",
"0.6791017",
"0.679047... | 0.64091337 | 38 |
Comment for the user. This is only set if the user has a comment. | def aM_I(YKHO):
return YKHO._comment | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TI3B(YKHO, TI3B):\n YKHO._user_comment = TI3B",
"def TI3B(YKHO):\n return YKHO._user_comment",
"def aM_I(YKHO):\n return YKHO.__user.comment",
"def TDCb(YKHO, aM_I):\n YKHO.options['comment'] = aM_I",
"def TDCb(YKHO):\n LNxR = aM_I.Comment(YKHO.username)\n YKHO.comment_num += 1\n r... | [
"0.8016432",
"0.77663344",
"0.7473661",
"0.67635983",
"0.6747111",
"0.6624923",
"0.66142935",
"0.66142935",
"0.66142935",
"0.66142935",
"0.66142935",
"0.66142935",
"0.66142935",
"0.66142935",
"0.64474356",
"0.63954496",
"0.63033074",
"0.6300376",
"0.62632483",
"0.6250772",
"0... | 0.62097126 | 24 |
List of capabilities the user is allowed. | def TvgZ(YKHO):
return YKHO._allowed_capabilities | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TvgZ(YKHO) -> laHg.List[str]:\n return laHg.cast(laHg.List[str], YKHO._properties.get('allowedCapabilities'))",
"def AViC(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'capabilities')",
"def AViC(YKHO):\n return YKHO['capabilities']",
"def AViC(YKHO) -> list[W7T9]:\n raise NotImplementedError",... | [
"0.8377301",
"0.8218622",
"0.82005847",
"0.8147616",
"0.8136612",
"0.7990495",
"0.7988333",
"0.7840108",
"0.7840108",
"0.78070956",
"0.77697015",
"0.77487737",
"0.77316314",
"0.7633119",
"0.75970656",
"0.7595313",
"0.74961185",
"0.7474861",
"0.7378275",
"0.7155656",
"0.713681... | 0.82933694 | 1 |
Full name of the user. (Used only for Windows.) This is only set if the user has a fullname. | def eHMM(YKHO):
return YKHO._full_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jeLr(YKHO):\n if YKHO._fullname == '':\n return YKHO.username\n return YKHO._fullname",
"def xpqj(YKHO):\n eHMM = YKHO.username\n return eHMM.strip()",
"def eHMM(YKHO):\n return f'{YKHO.user.first_name} {YKHO.user.last_name}'",
"def xpqj(YKHO):\n eHMM = ' '.join([YKHO.user_data.n... | [
"0.8133029",
"0.8087152",
"0.80127513",
"0.79529256",
"0.793062",
"0.793062",
"0.7884435",
"0.7841874",
"0.78263056",
"0.7735752",
"0.7696483",
"0.7634692",
"0.7631037",
"0.75907975",
"0.75897026",
"0.7563329",
"0.7558669",
"0.7532572",
"0.7532572",
"0.7425962",
"0.7414963",
... | 0.0 | -1 |
List of groups this user is part of. The only included entry in this structure is the name field. For full group information user useradmingrouplist. | def o8KU(YKHO):
return YKHO._useradmin_groups | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8zG(YKHO) -> None:\n moMn = YKHO.client.list_user_groups(YKHO.args.organization_id)\n LAOT = ['user_group_name', 'user_group_id', 'member_count', 'description']\n YKHO.print_response(moMn, json=YKHO.args.json, table_layout=LAOT)",
"def moMn(YKHO):\n H5ew = 'users_groups:%s' % YKHO.key().id()\n ... | [
"0.8085643",
"0.7893872",
"0.78372604",
"0.7827901",
"0.7610623",
"0.7560273",
"0.7454419",
"0.743549",
"0.7435379",
"0.7395065",
"0.7328335",
"0.7291488",
"0.72799015",
"0.7203",
"0.71866417",
"0.7144125",
"0.71392626",
"0.71376616",
"0.70893306",
"0.7042625",
"0.7039743",
... | 0.0 | -1 |
Gets the EncodedVariantType for variant. This function examines variant and returns the EncodedVariantType that best describes the variation type of variant. For example, if variant has `reference_bases = "A"` and `alternative_bases = ["C"]` this function would return EncodedVariantType.SNP. | def K7R0(pPTc):
if BGjw.is_snp(pPTc):
return BpUn.SNP
elif BGjw.is_indel(pPTc):
return BpUn.INDEL
else:
return BpUn.UNKNOWN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q_l7(pPTc):\n if epCp(pPTc):\n return p2RG.ref\n elif nsKD(pPTc):\n return p2RG.snp\n else:\n return p2RG.indel",
"def OWC6(FL8s, YS1F):\n if len(FL8s) > len(YS1F):\n return 'DEL'\n elif len(FL8s) < len(YS1F):\n return 'INS'\n else:\n GNfb = {1: 'SN... | [
"0.74972785",
"0.6490161",
"0.6464876",
"0.60983914",
"0.59574044",
"0.57949716",
"0.57594633",
"0.568434",
"0.5641634",
"0.55927783",
"0.5436554",
"0.54204917",
"0.54204917",
"0.54084224",
"0.53539306",
"0.529863",
"0.52976036",
"0.52959144",
"0.5291147",
"0.5204316",
"0.514... | 0.8207138 | 0 |
Gets the label field from example as a string. | def _yEP(PU1l):
return int(PU1l.features.feature['label'].int64_list.value[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _yEP(PU1l):\n return PU1l.features.feature['label'].int64_list.value[0]",
"def UXqs(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'label')",
"def qdVT(z6kT, UXqs):\n return '%s - %s' % (z6kT, UXqs)",
"def DeTJ(YKHO, UXqs):\n pass",
"def UXqs(YKHO, u_my):\n UXqs = YKHO._data['labels']... | [
"0.7712274",
"0.73407006",
"0.7300078",
"0.7288259",
"0.7163175",
"0.7119346",
"0.7082903",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
"0.7076419",
... | 0.72743434 | 4 |
Creates a new tf.Example suitable for use with DeepVariant. | def FLq9(pPTc, VH28, THdc, ROpF, pAj5=None, l5EZ=0):
PU1l = X5qA.Example()
bySB = PU1l.features
bySB.feature['locus'].bytes_list.value.append(XT48.to_literal(XT48.make_range(pPTc.reference_name, pPTc.start, pPTc.end)).encode('latin-1'))
mqeG(PU1l, pPTc)
Q_l7 = K7R0(pPTc).value
bySB.feature['vari... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1zj(Mjw9):\n return ZylS.train.Example(features=ZylS.train.Features(feature=Mjw9))",
"def f1zj(Mc9N, bAls, ANfV):\n PU1l = ZylS.train.Example()\n PU1l.features.feature['product_id'].bytes_list.value.append(Mc9N.encode('utf-8'))\n PU1l.features.feature['context'].bytes_list.value.append(bAls.enco... | [
"0.7141656",
"0.6954099",
"0.68298554",
"0.65784013",
"0.6358962",
"0.6236982",
"0.6230872",
"0.61461836",
"0.6144306",
"0.6115688",
"0.60954434",
"0.606799",
"0.6065799",
"0.60417944",
"0.6031298",
"0.59887326",
"0.5945513",
"0.59071225",
"0.5904713",
"0.5866138",
"0.5858331... | 0.6325582 | 5 |
Helper function to figure out alphabet of a particular number | def KCQ5(FGW3):
return chr(FGW3 + 96) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXT9(FGW3):\n assert FGW3 > 0, 'NUMBER NEEDS TO BE GREATER THAN 0'\n assert type(FGW3) == int, 'NUMBER ISNT A NUMBER'\n KoG3 = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']\n Uqbu = []\n\n def SF6p(FGW3):\n ... | [
"0.75547427",
"0.7348204",
"0.7344524",
"0.72597766",
"0.7194796",
"0.7184886",
"0.7169509",
"0.71480614",
"0.7068311",
"0.7052875",
"0.7017476",
"0.6986301",
"0.6983699",
"0.69771665",
"0.69688994",
"0.69290215",
"0.69290215",
"0.69210166",
"0.6904282",
"0.68853736",
"0.6885... | 0.8367924 | 0 |
String representation of the class instance. | def zAg0(YKHO):
return 'Token({type}, {value})'.format(type=YKHO.type, value=repr(YKHO.value)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict... | [
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.822823",
"0.82282... | 0.0 | -1 |
Create the data loader to training | def t6HG(YKHO, jQ3Z: DataFrame, b0j5: AutoTokenizer) -> pVAc:
oxOY = YKHO.get_dataset(jQ3Z, b0j5)
return pVAc(oxOY, batch_size=YKHO.config.batch_size, num_workers=YKHO.config.num_workers) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jxtG():\n pgPm = Hy7s.path.join(_Fei.TRAIN.DATASET, _Fei.TRAIN.SPLIT)\n if _Fei.MODEL.DUMMY_INPUT:\n nIKz = Pbm4(1000, [3, 224, 224])\n else:\n nIKz = TTda.datasets.ImageFolder(root=pgPm, transform=Ymkf.Compose([Ymkf.RandomResizedCrop(_Fei.TRAIN.IM_SIZE), Ymkf.RandomHorizontalFlip(), Ymk... | [
"0.7980601",
"0.7896248",
"0.778393",
"0.7761426",
"0.7723903",
"0.76033235",
"0.75870657",
"0.7582368",
"0.7574985",
"0.7535639",
"0.7509101",
"0.7509101",
"0.75035655",
"0.7490409",
"0.7460285",
"0.7459942",
"0.74570984",
"0.74378824",
"0.7433804",
"0.7431807",
"0.74233294"... | 0.0 | -1 |
If the file is of the acceptable extension | def XT0o(Ux0P):
return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XT0o(Va2z):\n return Va2z.strip('.') in UWr8",
"def mlCz(YKHO, AesY):\n return jlVJ.fnmatch(AesY, '*/Extensions-*')",
"def XT0o(Ux0P):\n return Ux0P.endswith(UWr8)",
"def vGk3(YKHO):\n return YKHO.extension in YKHO.file_type_dict",
"def XT0o(Ux0P, JZxJ):\n return '.' in Ux0P and Ux0P.rsp... | [
"0.8290895",
"0.8245053",
"0.8216732",
"0.82065946",
"0.8156967",
"0.80785346",
"0.79803616",
"0.79789996",
"0.79666865",
"0.7965201",
"0.79530966",
"0.79530966",
"0.7951175",
"0.79441017",
"0.7939343",
"0.79393",
"0.79360926",
"0.79360926",
"0.791196",
"0.79092854",
"0.79014... | 0.7899134 | 21 |
Create dummy variables from categorical columns | def fyxj(jQ3Z: pd.DataFrame, SGPK: dict) -> rLdf.DataFrame:
for fvDH in SGPK['dummy_cols']:
qgw0 = lLNu()
ZrDu = qgw0.fit_transform(jQ3Z[fvDH])
if len(qgw0.classes_) == 2:
ewrA = rLdf.DataFrame(ZrDu, columns=qgw0.classes_[1:])
else:
ewrA = rLdf.DataFrame(ZrDu,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tVT8(YKHO):\n YKHO.df = rLdf.get_dummies(YKHO.df[[WKvO for WKvO in YKHO.df.columns]])",
"def fyxj(jQ3Z):\n O4ib = jQ3Z.columns[jQ3Z.dtypes == 'int32'].tolist()\n for SRYB in O4ib:\n jQ3Z = jQ3Z.join(rLdf.get_dummies(jQ3Z[SRYB], prefix=SRYB).astype('int32'))\n jQ3Z = jQ3Z.drop(O4ib, axis=1)... | [
"0.8061035",
"0.7636175",
"0.76100326",
"0.7575539",
"0.73331505",
"0.73238647",
"0.7244846",
"0.72098666",
"0.72083414",
"0.7150083",
"0.7144641",
"0.71445984",
"0.71141046",
"0.7108644",
"0.710103",
"0.7092693",
"0.70377624",
"0.69990313",
"0.69782877",
"0.6977236",
"0.6965... | 0.70985234 | 15 |
Keep only the ND corners (leading and trailing edges) of an array. | def KV38(jzdc, XV8d, d6pt=()):
jDK_ = len(d6pt)
if jDK_ == jzdc.ndim:
return jzdc[d6pt]
if jzdc.shape[jDK_] > 2 * XV8d:
return MPiJ((KV38(jzdc, XV8d, d6pt + oyIN.index_exp[:XV8d]), KV38(jzdc, XV8d, d6pt + oyIN.index_exp[-XV8d:])), axis=jDK_)
else:
return KV38(jzdc, XV8d, d6pt + o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LlZX(ezWE: np.ndarray, knl1: int=1) -> oyIN.ndarray:\n unKH = oyIN.argwhere(ezWE > knl1).T\n tlxW = oyIN.min(unKH[0])\n es2x = oyIN.max(unKH[0])\n LFlW = oyIN.min(unKH[1])\n _tIi = oyIN.max(unKH[1])\n return ezWE[tlxW:es2x + 1, LFlW:_tIi + 1]",
"def NMXg(qw7D):\n qw7D = oyIN.delete(qw7D,... | [
"0.6930377",
"0.6918154",
"0.61519635",
"0.61424893",
"0.61397636",
"0.6106928",
"0.60915416",
"0.6042957",
"0.6004393",
"0.5917453",
"0.5894044",
"0.5888824",
"0.5881784",
"0.5827324",
"0.58144087",
"0.5801912",
"0.5796897",
"0.5728628",
"0.5710239",
"0.5689545",
"0.56431663... | 0.0 | -1 |
Return a string representation of an array. | def TPmy(jzdc, g8rx=' ', y0cW='', ZI14='', ZSG5=None, gwAu=None, XV8d=None, qAYJ=None, **xAU6):
if qAYJ is None:
qAYJ = Dq1s(jzdc)
if gwAu is None:
gwAu = qAYJ.options['threshold']
if ZSG5 is None:
ZSG5 = qAYJ.options['linewidth']
if XV8d is None:
XV8d = qAYJ.options['edg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CRCz(qw7D):\n vIwR = ''\n for LihS in qw7D:\n vIwR += str(LihS)\n return vIwR",
"def CRCz(jzdc):\n KCHu = ''\n for YRbF in range(len(jzdc)):\n KCHu += str(int(jzdc[YRbF]))\n return KCHu",
"def i_iC(jzdc, vvm6=None):\n if jzdc.ndim == 0:\n return yLCI(jzdc, custom_r... | [
"0.8067613",
"0.78761196",
"0.77206206",
"0.76799124",
"0.7604203",
"0.7589164",
"0.7582242",
"0.7564494",
"0.7564494",
"0.7558556",
"0.7551186",
"0.7543406",
"0.7487055",
"0.74409086",
"0.74409086",
"0.74249697",
"0.7357859",
"0.73252636",
"0.7324773",
"0.7222418",
"0.716347... | 0.68319064 | 34 |
Convert a dtype to a short form which evaluates to the same dtype. The intent is roughly that the following holds >>> from numpy import >>> assert eval(dtype_short_repr(dt)) == dt | def YBDp(yDqo):
if yDqo.names is not None:
return str(yDqo)
elif issubclass(yDqo.type, JOS_):
return "'%s'" % str(yDqo)
QNO6 = yDqo.name
if QNO6 and (not (QNO6[0].isalpha() and QNO6.isalnum())):
QNO6 = repr(QNO6)
return QNO6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OsI9(ld_T):\n sljh = str(ld_T)\n if sljh.startswith('int'):\n return 'int'\n if sljh.startswith('float') or sljh.startswith('real'):\n return 'float'\n if sljh.startswith('bool'):\n return 'bool'\n return sljh",
"def zyDD(yDqo: str) -> str:\n if yDqo == 'int':\n ... | [
"0.6778922",
"0.6564432",
"0.6385527",
"0.61512035",
"0.614499",
"0.6109454",
"0.607886",
"0.607712",
"0.59881973",
"0.5964885",
"0.59214735",
"0.5901286",
"0.586457",
"0.58593696",
"0.58559805",
"0.5825808",
"0.58256495",
"0.5792857",
"0.5792355",
"0.5788117",
"0.57770866",
... | 0.74807405 | 0 |
Return the string representation of an array. | def tfOJ(ezWE, mWFP=None, OTw7=None, qAYJ=None, **xAU6):
if qAYJ is None:
qAYJ = Dq1s(ezWE)
ZSG5 = xAU6.get('linewidth', qAYJ.options['linewidth'])
if mWFP is not None:
_2sc = mWFP
elif type(ezWE) is not gyIm:
_2sc = type(ezWE).__name__
else:
_2sc = 'array'
if OTw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CRCz(qw7D):\n vIwR = ''\n for LihS in qw7D:\n vIwR += str(LihS)\n return vIwR",
"def CRCz(jzdc):\n KCHu = ''\n for YRbF in range(len(jzdc)):\n KCHu += str(int(jzdc[YRbF]))\n return KCHu",
"def i_iC(jzdc, vvm6=None):\n if jzdc.ndim == 0:\n return yLCI(jzdc, custom_r... | [
"0.80438745",
"0.7816827",
"0.7717927",
"0.7653718",
"0.76509625",
"0.75805336",
"0.7572961",
"0.7553195",
"0.7553195",
"0.75276023",
"0.75276023",
"0.75225466",
"0.7517141",
"0.7508404",
"0.7503894",
"0.74924594",
"0.7375599",
"0.7365228",
"0.7363454",
"0.71521133",
"0.71370... | 0.612211 | 91 |
Return a string representation of the data in an array. The data in the array is returned as a single string. This function is similar to `array_repr`, the difference being that `array_repr` also returns information on the kind of array and its data type. | def dkpu(jzdc, **xAU6):
if jzdc.shape == ():
return tjbX(jzdc[()])
return TPmy(jzdc, separator=' ', prefix='', **xAU6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kfX1(qw7D):\n return ' '.join([ZfUD.strip() for ZfUD in repr(qw7D).split('\\n')])",
"def i_iC(jzdc, vvm6=None):\n if jzdc.ndim == 0:\n return yLCI(jzdc, custom_representations=vvm6, use_classes=True)\n elif jzdc.ndim == 1:\n return yLCI(list(jzdc), custom_representations=vvm6, use_clas... | [
"0.79034305",
"0.74779695",
"0.7444169",
"0.73425114",
"0.7219225",
"0.721862",
"0.7180381",
"0.7180381",
"0.71748406",
"0.7153965",
"0.71186787",
"0.7106662",
"0.70936936",
"0.7073838",
"0.7024745",
"0.7007831",
"0.68852097",
"0.6861203",
"0.6857435",
"0.68541443",
"0.683047... | 0.57571375 | 87 |
Sets the material properties of the terrain | def MUU7(YKHO):
lj5P(XrFY, DL7G, (0.10588, 0.058824, 0.113725, 1))
lj5P(XrFY, seL0, (0.427451, 0.470588, 0.541176, 1))
lj5P(XrFY, Cec0, (0.3333, 0.3333, 0.521569, 1))
lj5P(XrFY, dWNh, 9.84615)
JtkL(qFKv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QwkI(MQSJ, Mx95):\n pass",
"def pVYC(YKHO, lhy8):\n pass",
"def QwkI(YKHO, vb7U):\n assert type(vb7U) is Mx95\n YKHO.m = vb7U",
"def xbxx(YKHO, Mx95):\n if YKHO.material is not None:\n YKHO.material.removeReference()\n YKHO.material = Mx95\n if YKHO.material is not None:\n ... | [
"0.7437535",
"0.7012212",
"0.6976374",
"0.67842144",
"0.6764567",
"0.6715185",
"0.65500396",
"0.6519798",
"0.6461334",
"0.6355201",
"0.6352342",
"0.63371646",
"0.63357437",
"0.63351905",
"0.63207066",
"0.6295915",
"0.62293017",
"0.6212346",
"0.617674",
"0.6168833",
"0.6136436... | 0.67204434 | 5 |
Returns the ambari hosts for this instance | def jHE7(YKHO):
GPtr = zd79.get_config()
noop = GPtr['clusterHostInfo']['mongodc_hosts']
return noop | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Of0F(YKHO):\n return YKHO._hosts",
"def Of0F(YKHO):\n return YKHO._hosts",
"def HQUH(YKHO):\n return list(YKHO.hosts.values())",
"def Of0F(YKHO):\n return YKHO._tower.hosts.filter({'inventory': YKHO.id})",
"def Of0F(YKHO):\n return YKHO._tower.hosts.filter({'inventory': YKHO.id})",
"de... | [
"0.778052",
"0.778052",
"0.77579796",
"0.7676427",
"0.7676427",
"0.7643891",
"0.76062125",
"0.7573107",
"0.7546776",
"0.7462163",
"0.73597527",
"0.73501796",
"0.7347024",
"0.73036915",
"0.7274629",
"0.72379965",
"0.71957356",
"0.71775174",
"0.71775174",
"0.71775067",
"0.71685... | 0.8718955 | 0 |
Returns a list of the stations in rural_stations which are within distance radius of the urban station us. Each rural station returned is given a 'weight' slot representing its distance fromn the urban station. | def qIRx(bypm, roV5, r1VO):
bdGm = []
CQ_4 = epAf.cos(r1VO / P2sP.radius)
Vd8h = P2sP.radius / r1VO
for H0q3 in roV5:
dyJw = H0q3.snlat * bypm.snlat + H0q3.cslat * bypm.cslat * (H0q3.cslon * bypm.cslon + H0q3.snlon * bypm.snlon)
if dyJw <= CQ_4:
continue
Ug0E = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIRx(bypm, roV5, r1VO):\n A_IW = []\n CQ_4 = epAf.cos(r1VO / P2sP.radius)\n Vd8h = P2sP.radius / r1VO\n for H0q3 in roV5:\n dyJw = H0q3.snlat * bypm.snlat + H0q3.cslat * bypm.cslat * (H0q3.cslon * bypm.cslon + H0q3.snlon * bypm.snlon)\n if dyJw <= CQ_4:\n continue\n ... | [
"0.72307944",
"0.62432605",
"0.62341875",
"0.61972225",
"0.61242825",
"0.59516084",
"0.5883095",
"0.57708055",
"0.57667375",
"0.57306725",
"0.5690336",
"0.5558437",
"0.5556152",
"0.55524826",
"0.5492898",
"0.5476297",
"0.53994346",
"0.53881776",
"0.5323045",
"0.53005433",
"0.... | 0.7328258 | 0 |
Finds a fit to the data points[], using regression analysis, by a line with a change in slope at xmid. Returned is a 4tuple | def EdnV(LTIa, m5Bd, min):
zlWR = aeKq = 0
Zt0b = TuBe = 0
ZvW0 = CNQR = 0
ZC1g = khC8 = 0
RyuO = 0.0
dlWr = 0.0
for WKvO, Ty9i in LTIa:
if qVG7(Ty9i):
continue
WKvO -= m5Bd
RyuO += Ty9i
dlWr += Ty9i ** 2
if WKvO > 0.0:
aeKq += ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R0HN(WKvO, LVAh):\n C3ST = nkHP(fit_intercept=True)\n C3ST.fit(WKvO[:, oyIN.newaxis], LVAh)\n v8ai = oyIN.linspace(0, 10, 1000)\n Yfsw = C3ST.predict(v8ai[:, oyIN.newaxis])\n print('Model slope: ', C3ST.coef_[0])\n print('Model intercept:', C3ST.intercept_)\n return (v8ai, Yfsw)",
"de... | [
"0.7288308",
"0.72823113",
"0.71147543",
"0.7046832",
"0.70205754",
"0.6999682",
"0.6916729",
"0.6909913",
"0.68765104",
"0.68688416",
"0.680873",
"0.6799874",
"0.67983204",
"0.6763786",
"0.6712309",
"0.6703712",
"0.6699425",
"0.6697994",
"0.6695027",
"0.6686227",
"0.66584057... | 0.65351576 | 28 |
Turns a two dimensional array into a one dimensional. | def lyY8(OxJJ):
return set((cM24 for SnBA in OxJJ for cM24 in SnBA)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PWgb(K2t5):\n KcuH = list(eNCK.from_iterable(K2t5))\n return KcuH",
"def T4Wb(ezWE: list) -> list:\n return [fvDH for rdlD in ezWE for fvDH in rdlD]",
"def huqJ(OIta):\n if len(OIta.shape) == 2:\n return OIta\n else:\n return OIta[oyIN.newaxis]",
"def XTxW(k0lF):\n return ... | [
"0.79649633",
"0.76162624",
"0.7525133",
"0.711201",
"0.7068235",
"0.7060095",
"0.6945471",
"0.68731594",
"0.6777741",
"0.67550534",
"0.6738981",
"0.6726126",
"0.6694318",
"0.6685277",
"0.66677445",
"0.66599995",
"0.6646114",
"0.6636773",
"0.6625264",
"0.6575253",
"0.6560644"... | 0.0 | -1 |
Return True if curve discriminant is equal to zero. | def J5o2(YKHO):
return YKHO.discriminant == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fSiv(YKHO):\n for Z9rn in YKHO.coefficients():\n if Z9rn < 0:\n return False\n return True",
"def CgEI(YKHO, WKvO):\n return abs(WKvO) <= 1e-06",
"def Witr(YKHO):\n return YKHO.real == 0.0 and YKHO.imag == 0.0",
"def ebnO(YKHO):\n for Oa1e in YKHO.gens():\n if not ... | [
"0.7159142",
"0.71012837",
"0.70923394",
"0.70580685",
"0.7018214",
"0.7014961",
"0.7007152",
"0.69817555",
"0.696269",
"0.6952297",
"0.69325614",
"0.6926157",
"0.6915526",
"0.6881998",
"0.68647444",
"0.68273085",
"0.6793297",
"0.67892134",
"0.6763708",
"0.6763708",
"0.670415... | 0.0 | -1 |
Compute weighted scalar product | def QQQg(YKHO, Ddli=None, an0k=None, qpQu=True):
if Ddli is not None:
YKHO.scalar_product.input_array[...] = Ddli
YKHO.scalar_product._input_array = YKHO.get_measured_array(YKHO.scalar_product._input_array)
YKHO._evaluate_scalar_product(fast_transform=qpQu)
YKHO._truncation_forward(YKHO.scalar_p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipja(fUYa: np.ndarray, VTcd: np.ndarray) -> oyIN.ndarray:\n return oyIN.sum(oyIN.atleast_2d(fUYa) * VTcd, axis=1)",
"def Sv4c(WKvO, yzQ0, Fg_i):\n return oyIN.dot(yzQ0, WKvO) + Fg_i",
"def Sv4c(WKvO, yzQ0):\n kR3y = (WKvO.size(0), len(yzQ0)) + (1,) * len(WKvO.size()[2:])\n yzQ0 = ht2j.FloatTens... | [
"0.7598378",
"0.73991424",
"0.71392477",
"0.71392477",
"0.69532216",
"0.6839543",
"0.68279445",
"0.67234236",
"0.67194504",
"0.6715419",
"0.66776717",
"0.6676517",
"0.6657363",
"0.6626729",
"0.6626729",
"0.6583853",
"0.65332675",
"0.6528338",
"0.65235436",
"0.652347",
"0.6508... | 0.0 | -1 |
Project to orthogonal basis | def iTMd(YKHO, Ddli, an0k=None):
from shenfun import project
Kt_s = YKHO.get_orthogonal()
an0k = project(Ddli, Kt_s, output_array=an0k, use_to_ortho=False)
return an0k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jtq_(YKHO, SxVy):\n try:\n hPuM = YKHO.component_parallel_to(SxVy)\n return YKHO.subtract(hPuM)\n except Exception as e:\n if str(tTpl) == YKHO.NO_UNIQUE_PARALLEL_COMPONENT_MSG:\n raise Exception(YKHO.NO_UNIQUE_ORTHOGONAL_COMPONENT_MSG)\n else:\n raise tT... | [
"0.6855153",
"0.6839285",
"0.67464477",
"0.6707945",
"0.6613039",
"0.65499514",
"0.64908063",
"0.6411196",
"0.63807887",
"0.6205867",
"0.62014514",
"0.62014514",
"0.6145692",
"0.61410034",
"0.6099949",
"0.6090352",
"0.6067533",
"0.6028996",
"0.59669733",
"0.5935257",
"0.59093... | 0.6118288 | 14 |
Return reference domain of space | def _wHz(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrIJ(YKHO):\n raise NotImplementedError",
"def zrIJ(YKHO):\n return YKHO._T.domain()",
"def zrIJ(YKHO) -> Nlmb:\n if YKHO._domain is None:\n YKHO._domain = Nlmb(u2h7.legion_index_space_get_domain(YKHO.runtime, YKHO.handle))\n return YKHO._domain",
"def zrIJ(YKHO):\n return YKHO._dom... | [
"0.7244722",
"0.7242721",
"0.7093894",
"0.6967709",
"0.69436795",
"0.6872608",
"0.68005365",
"0.67884666",
"0.67884666",
"0.6694755",
"0.6694755",
"0.6694755",
"0.6693091",
"0.6631995",
"0.6624975",
"0.66223115",
"0.6596873",
"0.6573694",
"0.6573694",
"0.6525411",
"0.6525411"... | 0.709377 | 3 |
Return the allocated shape of arrays used for ``self`` | def ROpF(YKHO, FuBM=True):
if FuBM:
return YKHO.N
if YKHO.padding_factor != 1:
return int(oyIN.floor(YKHO.padding_factor * YKHO.N))
return YKHO.N | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROpF(YKHO) -> AzJI[int, ...]:\n return YKHO._numpy.shape",
"def ROpF(YKHO):\n if YKHO.rv():\n return tuple([len(YKHO)] + YKHO._dim_sizes())\n else:\n return tuple(YKHO._dim_sizes())",
"def ROpF(YKHO):\n _h7H = AzJI[(Ibqj,) * YKHO.ndim]\n return _h7H._from_apply('array.shape', Y... | [
"0.75277734",
"0.7505501",
"0.7413047",
"0.74015695",
"0.7369498",
"0.73654675",
"0.7336633",
"0.73173314",
"0.73144174",
"0.7302533",
"0.73008746",
"0.72948134",
"0.7283666",
"0.72827363",
"0.71808004",
"0.71808004",
"0.71808004",
"0.71808004",
"0.71808004",
"0.71808004",
"0... | 0.0 | -1 |
Return tensor rank of function space Note This is the number of free indices in the tensor, 0 for scalar, 1 for vector etc. It is None for a composite space that is not a tensor. | def t_6o(YKHO):
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t_6o(YKHO):\n return None",
"def t_6o(EcVT):\n assert f_8k.is_tensor(EcVT)\n return ZylS.rank(EcVT) if ZylS.is_tensor(EcVT) else EcVT.ndim",
"def P9o9(vhpA) -> ZylS.int32:\n return ZylS.rank(ZylS.shape(vhpA))",
"def b4m8(YKHO):\n return gQS9.space_T_Rank(YKHO)",
"def fdMZ(YKHO):\n if ... | [
"0.7763695",
"0.75457007",
"0.7191761",
"0.70479965",
"0.6802547",
"0.67676944",
"0.6753341",
"0.6735566",
"0.64524525",
"0.6395324",
"0.63614243",
"0.63375825",
"0.6330339",
"0.62965745",
"0.6231573",
"0.62053055",
"0.620464",
"0.61892825",
"0.61883754",
"0.61717916",
"0.616... | 0.7752471 | 1 |
Return `array` times Jacobian determinant | def xPP6(YKHO, qw7D):
if YKHO.tensorproductspace:
return qw7D
Tcon = YKHO.coors.get_sqrt_det_g()
if Tcon == 1:
return qw7D
if isinstance(Tcon, KUXB):
qw7D *= Tcon
return qw7D
ywwl = YKHO.shape(False)
tdL7 = YKHO.mpmath_points_and_weights(ywwl, map_true_domain=True... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4vn(YKHO) -> oyIN.ndarray:\n tqjD = bLm4(U5e5(YKHO.orientations))\n return oyIN.abs(2.0 * oyIN.divide(oyIN.ones(tqjD.size[0]) - oyIN.cos(tqjD), oyIN.square(tqjD)))",
"def YGej(eHNT, WKvO, Jw7X=1e-08, ywwl=0):\n _Y71 = []\n lDaR = eHNT(WKvO)\n pdhd = oyIN.eye(len(WKvO))\n KaIg = eHNT(WKvO)\... | [
"0.6786878",
"0.6698268",
"0.6601042",
"0.64164674",
"0.63375777",
"0.63270587",
"0.6217986",
"0.6217986",
"0.6194888",
"0.6173373",
"0.61666405",
"0.6164818",
"0.6162568",
"0.6146485",
"0.61327755",
"0.6130762",
"0.612195",
"0.611441",
"0.6113666",
"0.6055712",
"0.6045588",
... | 0.0 | -1 |
Computes the KL divergence formula. | def h43l(AjzU, _sQW):
assert AjzU.keys() == _sQW.keys()
xFCy = 0
for KCHu in AjzU.keys():
if KCHu in _sQW:
xFCy += AjzU[KCHu] * oyIN.log(AjzU[KCHu] / _sQW[KCHu])
return xFCy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zxnm(YKHO, **B2fa) -> laHg.Union[ht2j.Tensor, float]:\n return",
"def dzAH(YKHO):\n if hasattr(YKHO, 'h') and hasattr(YKHO, 'w'):\n P1dF = oqGu(YKHO.v, oyIN.dot(YKHO.w, YKHO.h)).sum()\n else:\n P1dF = None\n return P1dF",
"def dzAH(YKHO):\n if hasattr(YKHO, 'H') and hasattr(YKH... | [
"0.80614525",
"0.7708699",
"0.75540066",
"0.75218785",
"0.7507394",
"0.7457169",
"0.7440467",
"0.74007386",
"0.7359755",
"0.7335191",
"0.7318438",
"0.72786653",
"0.72568375",
"0.7237937",
"0.7236782",
"0.72305053",
"0.72070634",
"0.7173811",
"0.7144101",
"0.71321785",
"0.7123... | 0.6978614 | 31 |
When SQLAlchemy binds a ReprObjType, it converts it to a string for storage in the database, via the python repr string equivalent. | def fyZH(YKHO, BWXx, pMVb):
if BWXx is not None:
BWXx = repr(BWXx)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UQis(YEnM):\n return YEnM if isinstance(YEnM, (str, QMSQ)) else repr(YEnM)",
"def TIB_(YKHO, nqDb, gaIp, WCg9=False):\n if type(nqDb) in YKHO._sql_literal_adapters and (not gaIp):\n nuPx = YKHO._sql_literal_adapters[type(nqDb)]\n Aofo = nuPx(nqDb)\n if not isinstance(Aofo, (str, by... | [
"0.71851677",
"0.68052435",
"0.6715349",
"0.66440564",
"0.64822197",
"0.64277387",
"0.642664",
"0.6411118",
"0.64073694",
"0.63961333",
"0.6363384",
"0.6359013",
"0.6349313",
"0.6345151",
"0.63416976",
"0.6325962",
"0.63195384",
"0.6316585",
"0.6315109",
"0.6312719",
"0.63082... | 0.0 | -1 |
Returns the death count of the particular location | def pwPq():
eex6 = O6Oo.objects.values('location', 'death_no')
' import all location from kathmandu, bhaktapur, lalitpur and outside from location_tree.py '
fWdL = SO8W().all_ktm_locations()
LhH5 = SO8W().all_bkt_locations()
cCId = SO8W().all_ltp_locations()
Kg8j = SO8W().all_locations()
OI1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def twbi(YKHO):\n UHFx = YKHO.death_count\n YKHO.death_count = 0\n return UHFx",
"async def get_total_deaths(YKHO) -> int:\n return await YKHO.__get_total_by_case('Deaths')",
"def l6wl(YKHO):\n return YKHO.data.numDeaths",
"def Kxyi(YKHO) -> int:\n return qe4Y.get(YKHO, 'lifespan_count')",
... | [
"0.7162481",
"0.7089922",
"0.6983361",
"0.6259491",
"0.62290233",
"0.59861815",
"0.5979612",
"0.59158635",
"0.5752301",
"0.57474905",
"0.5671457",
"0.56488526",
"0.5550666",
"0.55390054",
"0.54917073",
"0.5487068",
"0.54637486",
"0.54627115",
"0.54563755",
"0.5442446",
"0.542... | 0.7439671 | 0 |
Returns the death count of the particular location | def Zcd9():
eex6 = O6Oo.objects.values('location', 'injury_no')
' import all location from kathmandu, bhaktapur, lalitpur and outside from location_tree.py '
fWdL = SO8W().all_ktm_locations()
LhH5 = SO8W().all_bkt_locations()
cCId = SO8W().all_ltp_locations()
Kg8j = SO8W().all_locations()
tN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwPq():\n eex6 = O6Oo.objects.values('location', 'death_no')\n ' import all location from kathmandu, bhaktapur, lalitpur and outside from location_tree.py '\n fWdL = SO8W().all_ktm_locations()\n LhH5 = SO8W().all_bkt_locations()\n cCId = SO8W().all_ltp_locations()\n Kg8j = SO8W().all_location... | [
"0.7441173",
"0.71602535",
"0.70869666",
"0.6979772",
"0.6259765",
"0.6227538",
"0.59837383",
"0.598185",
"0.5914088",
"0.57549065",
"0.5745891",
"0.5673986",
"0.564971",
"0.55375516",
"0.54921275",
"0.54863894",
"0.54651964",
"0.5462256",
"0.5452388",
"0.5444987",
"0.5427220... | 0.55540615 | 13 |
If the given path is part of the working directory of a git repository return that repository and a path relative to it | def bzbP(YKHO, pmON: str, WtXn: Optional[Any]=None) -> AzJI[h8nf[KjAC], h8nf[str], h8nf[str], h8nf[bool]]:
SkC9 = None
for dir in sorted(YKHO.workingDirs.keys()):
boHx = YKHO.workingDirs[dir].repo
assert boHx
AesY = boHx.find_repo_path(pmON)
if AesY is not None:
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dMng(boHx: GitRepository, *pmON: str) -> GkAb:\n return boHx.gitdir.joinpath(*pmON)",
"def dMng(boHx, *pmON):\n return Hy7s.path.join(boHx.gitdir, *pmON)",
"def dMng(boHx, *pmON):\n return Hy7s.path.join(boHx.gitdir, *pmON)",
"def JvFA(pmON):\n u7dO = None\n yefe = Hy7s.path.abspath(pmON)\... | [
"0.78510904",
"0.76898026",
"0.76898026",
"0.76776564",
"0.7602807",
"0.7531527",
"0.7491524",
"0.7488487",
"0.7463257",
"0.74246514",
"0.74141634",
"0.73576075",
"0.7326467",
"0.73110825",
"0.7257829",
"0.72553676",
"0.7198808",
"0.71625304",
"0.7158236",
"0.7098755",
"0.702... | 0.6244356 | 85 |
If the given path is part of the working directory of a git repository return that repository and a path relative to it | def bzbP(YKHO, pmON: str, WtXn: Optional[Any]=None) -> AzJI[h8nf[KjAC], h8nf[str], h8nf[str], h8nf[bool]]:
if YKHO.instanceRepo:
boHx = YKHO.instanceRepo
AesY = boHx.find_repo_path(pmON)
if AesY is not None:
return (boHx, AesY, boHx.revision, False)
SkC9 = None
boHx = Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dMng(boHx: GitRepository, *pmON: str) -> GkAb:\n return boHx.gitdir.joinpath(*pmON)",
"def dMng(boHx, *pmON):\n return Hy7s.path.join(boHx.gitdir, *pmON)",
"def dMng(boHx, *pmON):\n return Hy7s.path.join(boHx.gitdir, *pmON)",
"def JvFA(pmON):\n u7dO = None\n yefe = Hy7s.path.abspath(pmON)\... | [
"0.7850981",
"0.76900333",
"0.76900333",
"0.7677738",
"0.76022637",
"0.7530825",
"0.7492078",
"0.7488277",
"0.7462867",
"0.74247384",
"0.74141973",
"0.7357144",
"0.7326853",
"0.7310424",
"0.7257934",
"0.7254821",
"0.7198342",
"0.71627843",
"0.71582526",
"0.7098781",
"0.702665... | 0.0 | -1 |
Makes a right rotation towards the given unbalanced node. | def SQou(gtA9: Node) -> o7DN:
jbXL = gtA9.left
gtA9.left = gtA9.left.right
jbXL.right = gtA9
return jbXL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cwJK(Q6kx):\n LTb8 = Q6kx\n n0tA = LTb8.left\n THyE = n0tA.right\n LTb8.left = THyE\n n0tA.right = LTb8\n LTb8.update_height_balance()\n n0tA.update_height_balance()\n return n0tA",
"def d1sg(YKHO, Q6kx):\n UlMs = Q6kx\n nqar = UlMs.left_child\n KebJ = nqar.right_child\n n... | [
"0.8113786",
"0.7925682",
"0.7727394",
"0.77078944",
"0.7692884",
"0.7662333",
"0.76349384",
"0.76280105",
"0.76145214",
"0.7587486",
"0.75869846",
"0.7572473",
"0.7568296",
"0.75196993",
"0.74856853",
"0.73459",
"0.73095757",
"0.72931993",
"0.7189379",
"0.7174998",
"0.716984... | 0.78469974 | 2 |
Makes a left rotation towards the given unbalanced node. | def ODm0(gtA9: Node) -> o7DN:
jbXL = gtA9.right
gtA9.right = gtA9.right.left
jbXL.left = gtA9
return jbXL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eXAm(Q6kx):\n print('left rotation node:', Q6kx.get_data())\n U5bT = Q6kx.get_left()\n Q6kx.set_left(U5bT.get_right())\n U5bT.set_right(Q6kx)\n zhMh = a45I(xglF(Q6kx.get_right()), xglF(Q6kx.get_left())) + 1\n Q6kx.set_height(zhMh)\n WL4f = a45I(xglF(U5bT.get_right()), xglF(U5bT.get_left)) ... | [
"0.8490273",
"0.84278184",
"0.8174256",
"0.8053975",
"0.80453295",
"0.80382526",
"0.7991817",
"0.7969099",
"0.7924645",
"0.7921405",
"0.7875015",
"0.7856247",
"0.7835368",
"0.7792007",
"0.7669052",
"0.76429206",
"0.76153034",
"0.7553791",
"0.75193304",
"0.75180554",
"0.748720... | 0.8183855 | 2 |
Create a resource argument for a OS Config patch job. | def Ua1z(b7IC, nd0d=False):
Xoo2 = 'Patch job' + ('s' if nd0d else '')
return h423.ResourcePresentationSpec('patch_job', JEC8(), '{} {}'.format(Xoo2, b7IC), required=True, plural=nd0d, prefixes=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NxqB(wvEv, b7IC, nd0d=False):\n Bx3Z.ConceptParser([Ua1z(b7IC, nd0d)]).AddToParser(wvEv)",
"def FIMM(Ro_8, kFeU: str, qIxc: WorkforcePoolKeyArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: JobTemplateArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ... | [
"0.67508847",
"0.6086051",
"0.60055596",
"0.59370136",
"0.59193015",
"0.5876344",
"0.58577806",
"0.58375424",
"0.5826677",
"0.5814005",
"0.58096313",
"0.58096313",
"0.5799004",
"0.57867926",
"0.57493347",
"0.574212",
"0.5741875",
"0.57265395",
"0.5721536",
"0.5721536",
"0.570... | 0.70433694 | 0 |
Create a resource argument for a OS Config patch job. | def NxqB(wvEv, b7IC, nd0d=False):
Bx3Z.ConceptParser([Ua1z(b7IC, nd0d)]).AddToParser(wvEv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ua1z(b7IC, nd0d=False):\n Xoo2 = 'Patch job' + ('s' if nd0d else '')\n return h423.ResourcePresentationSpec('patch_job', JEC8(), '{} {}'.format(Xoo2, b7IC), required=True, plural=nd0d, prefixes=False)",
"def FIMM(Ro_8, kFeU: str, qIxc: WorkforcePoolKeyArgs, VKhi: Optional[pulumi.ResourceOptions]=None):... | [
"0.7043623",
"0.6086142",
"0.6005573",
"0.5936964",
"0.59192204",
"0.58763874",
"0.585787",
"0.58377594",
"0.58267087",
"0.5814111",
"0.580968",
"0.580968",
"0.57989645",
"0.57868665",
"0.57493913",
"0.57421696",
"0.5741601",
"0.57266825",
"0.572165",
"0.572165",
"0.57068354"... | 0.67511255 | 1 |
Create a resource argument for a OS Config guest policy. | def GUcz(b7IC, nd0d=False):
Xoo2 = 'Guest poli' + ('cies' if nd0d else 'cy')
return h423.MultitypeResourcePresentationSpec('guest_policy', rrZd(), '{} {}'.format(Xoo2, b7IC), required=True, plural=nd0d, prefixes=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MGrW(wvEv, b7IC, nd0d=False):\n Bx3Z.ConceptParser([GUcz(b7IC, nd0d)]).AddToParser(wvEv)",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, JBZA: Optional[pulumi.Input[str]]=None, NRJb: Optional[pulumi.Input[pulumi.InputType['FirewallPolicyEncryptionConfigurationArgs']]]=None, Uoy_:... | [
"0.6827362",
"0.56576777",
"0.55871296",
"0.5584093",
"0.5462965",
"0.54420704",
"0.5423058",
"0.5382948",
"0.53546596",
"0.5353167",
"0.53404725",
"0.5300522",
"0.52900994",
"0.52640176",
"0.5249964",
"0.52463025",
"0.52432257",
"0.52373797",
"0.5223665",
"0.5213651",
"0.517... | 0.7241945 | 0 |
Create a resource argument for a OS Config guest policy. | def MGrW(wvEv, b7IC, nd0d=False):
Bx3Z.ConceptParser([GUcz(b7IC, nd0d)]).AddToParser(wvEv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GUcz(b7IC, nd0d=False):\n Xoo2 = 'Guest poli' + ('cies' if nd0d else 'cy')\n return h423.MultitypeResourcePresentationSpec('guest_policy', rrZd(), '{} {}'.format(Xoo2, b7IC), required=True, plural=nd0d, prefixes=False)",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, JBZA: Opti... | [
"0.72406846",
"0.5656646",
"0.55850154",
"0.55820596",
"0.5460769",
"0.5440057",
"0.5422935",
"0.5380935",
"0.5353339",
"0.5350232",
"0.5340468",
"0.52974683",
"0.5288992",
"0.52612",
"0.5249716",
"0.5245094",
"0.52410746",
"0.52355",
"0.5222127",
"0.52114",
"0.5176477",
"0... | 0.68258554 | 1 |
This heuristic calculates the sum of the distance (in x direction) of pieces from the center of the board (less distance is better) plus the number if pieces that are more than 1 square away from the x center. | def I24S(QTBn, mrj1):
pImw = 0
Uxn7 = 0
QSJu = 0
for LVAh, rdlD in enumerate(QTBn):
for WKvO, VmPb in enumerate(rdlD):
if VmPb == mrj1:
QSJu = 2 * abs(WKvO - XIBP) + abs(LVAh - I8lY)
Uxn7 += QSJu
return Uxn7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vly_(YKHO, iBIi):\n p1kx = 0\n Z5kt = 0\n for YRbF in range(YKHO.size * YKHO.size):\n if iBIi[YRbF] == '.':\n p1kx += YKHO.size - YRbF % YKHO.size\n p1kx += abs(1 - YRbF // YKHO.size)\n Z5kt += 1\n return p1kx / Z5kt",
"def RJr3(QTBn, hOR6, KmU8):\n\n de... | [
"0.6795718",
"0.6695268",
"0.6657474",
"0.65006065",
"0.64906216",
"0.64635104",
"0.6438556",
"0.64102894",
"0.63993996",
"0.6392977",
"0.6387751",
"0.6335568",
"0.6332849",
"0.63102245",
"0.63090974",
"0.62945306",
"0.6271503",
"0.6260535",
"0.62292707",
"0.6210502",
"0.6191... | 0.7691946 | 0 |
Function to get CCDF of the list of degrees. | def drZ4(YKHO, bebi):
bebi = oyIN.array(bebi)
SUko, BWz1 = oyIN.unique(bebi, return_counts=True)
jZZ9 = oyIN.cumsum(BWz1).astype(oyIN.double) / bebi.size
return (SUko[::-1], (1.0 - jZZ9)[::-1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PsZs(_IXK):\n p6S0 = round(_IXK / (360.0 / len(eNgc)))\n return eNgc[p6S0 % len(eNgc)]",
"def oF2A(LTIa):\n r3Ak = 0\n V52X = []\n for WKvO, LVAh in LTIa:\n r3Ak += int(WKvO * LVAh)\n V52X.append(r3Ak)\n return V52X",
"def YzER(YKHO) -> dtgG:\n return dtgG(distribution=YK... | [
"0.6939734",
"0.6669197",
"0.6403587",
"0.6359127",
"0.631184",
"0.62543416",
"0.6220836",
"0.62208104",
"0.6206196",
"0.6203052",
"0.6174651",
"0.6150511",
"0.6139782",
"0.6139782",
"0.6096334",
"0.6095236",
"0.6077766",
"0.60497516",
"0.60488427",
"0.6040213",
"0.60173976",... | 0.60409087 | 19 |
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.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 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 |
Given a class as a string, return its number in the classes list. This lets us encode and onehot it for training. | def cWZj(YKHO, mJlc):
k_Rf = YKHO.classes.index(mJlc)
Pa_N = fKLU(k_Rf, len(YKHO.classes))
assert len(Pa_N) == len(YKHO.classes)
return Pa_N | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZMEd(YKHO, mJlc):\n if mJlc in YKHO.dataset.classes:\n return YKHO.dataset.classes.index(mJlc) + 1\n raise ValueError('Invalid class string {}, not in {}'.format(mJlc, YKHO.dataset.classes))",
"def MgZ4(_2sc, KndY=B1Zt):\n return KndY.index(_2sc) + ktWx['start']",
"def dg8w(pG0V: Tensor, Nq... | [
"0.7180981",
"0.71514267",
"0.69080484",
"0.68186146",
"0.6723838",
"0.66369396",
"0.65913296",
"0.6586876",
"0.6584016",
"0.65600485",
"0.65582454",
"0.65364695",
"0.6536455",
"0.6524113",
"0.6512643",
"0.64807785",
"0.6460929",
"0.64606917",
"0.6402788",
"0.63981366",
"0.63... | 0.7905663 | 0 |
Create the fullyassembled Flask application. This sets up the application, binding the database, migrations, Web assets, and the actual routes all together into one object. | def Nd3k(GPtr=None):
P4t4 = L2w0('crail')
P4t4.config.from_object('crail.settings')
if GPtr is None:
P4t4.config.from_envvar('CRAIL_SETTINGS', silent=True)
else:
P4t4.config.update(GPtr)
NCls.init_app(P4t4)
USZ9.init_app(P4t4, NCls, directory=Hy7s.path.join(Hy7s.path.dirname(xAKo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif():\n P4t4 = L2w0(__name__, instance_relative_config=False)\n P4t4.config.from_object('config.Config')\n sSY8(P4t4)\n UNy9(P4t4, Yw_3)\n kwzv(P4t4)\n with P4t4.app_context():\n from . import routes\n P4t4.register_blueprint(routes.main_bp)\n return P4t4",
"def LUif(... | [
"0.8460264",
"0.83928704",
"0.83368546",
"0.83018446",
"0.8258219",
"0.82554525",
"0.8232616",
"0.8222118",
"0.8166839",
"0.81655383",
"0.8156204",
"0.81328034",
"0.8081587",
"0.8079259",
"0.8057087",
"0.80514205",
"0.80489224",
"0.8028801",
"0.8019455",
"0.80164045",
"0.8002... | 0.7567933 | 82 |
Compute the average power of the signal x in a specific frequency band. | def tyON(nPrm, UH90, Ebru, D0nm=None, Qth0=False):
from scipy.signal import periodigram
from scipy.integrate import simps
Ebru = oyIN.asarray(Ebru)
gqRb, ODP9 = Ebru
J1c0, AwYh = periodigram(nPrm, UH90)
R1gm = J1c0[1] - J1c0[0]
iBOG = oyIN.logical_and(J1c0 >= gqRb, J1c0 <= ODP9)
vI3f = s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _4gQ(WKvO):\n return 10 * oyIN.log10(oyIN.mean(oyIN.abs(WKvO) ** 2))",
"def naF9(WKvO, d6tg=True):\n _kHc = oyIN.mean(oyIN.abs(WKvO) ** 2)\n if d6tg:\n return 10 * oyIN.log10(_kHc)\n return _kHc",
"def naF9(YKHO, WKvO):\n WKvO = WKvO - oyIN.mean(WKvO)\n return sum(WKvO ** 2) / len(... | [
"0.70768154",
"0.68963635",
"0.6682797",
"0.6600055",
"0.6518287",
"0.6483739",
"0.64659375",
"0.6327717",
"0.6326348",
"0.6239844",
"0.62177694",
"0.62030816",
"0.6176141",
"0.61481696",
"0.61233145",
"0.6098966",
"0.60585725",
"0.5980867",
"0.59353966",
"0.589",
"0.58856696... | 0.57293385 | 31 |
Video streaming generator function. | def eK5b(yDvq):
while True:
f4IJ = yDvq.get_frame()
yield (b'--frame\r\nContent-Type: image/jpeg\r\n\r\n' + f4IJ + b'\r\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/... | [
"0.72318304",
"0.72217125",
"0.7202193",
"0.7199314",
"0.71750987",
"0.70998365",
"0.70878965",
"0.7068008",
"0.7030866",
"0.69874614",
"0.69693893",
"0.69512975",
"0.69257456",
"0.6923195",
"0.6923195",
"0.690304",
"0.6903035",
"0.6878873",
"0.68674815",
"0.6864852",
"0.6840... | 0.0 | -1 |
Return element from the beginning of the queue | def he0F():
global queue
for t4EI in range(5):
if len(gGq6[t4EI]) == 0:
continue
Ylbp = gGq6[t4EI][len(gGq6[t4EI]) - 1]
gGq6[t4EI] = gGq6[t4EI][:-1]
return Ylbp
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise Exception('Queue is empty')\n return YKHO._data[YKHO._front]",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n return None if YKHO.isEmpty() else YKHO.__queue[0]",
... | [
"0.8031765",
"0.79719657",
"0.7960614",
"0.79532146",
"0.7926546",
"0.79078865",
"0.78940094",
"0.78753304",
"0.78693473",
"0.78522354",
"0.78047806",
"0.7802205",
"0.77883846",
"0.7784773",
"0.7757068",
"0.7717856",
"0.77151155",
"0.77151155",
"0.77151155",
"0.7712561",
"0.7... | 0.0 | -1 |
This is the function of computing the soft target loss by using soft labels | def NByi(KeL5, odkC):
GT2U = U78l.BCEWithLogitsLoss()
ePYV = ht2j.where(odkC > 0.0, ht2j.ones(odkC.shape).to(odkC.device), ht2j.zeros(odkC.shape).to(odkC.device))
N77f = GT2U(KeL5, ePYV)
return (N77f, ePYV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L57E(aTLP: torch.Tensor, pan_: torch.Tensor) -> ht2j.Tensor:\n Ylbp = CqbS(pan_, aTLP, mode='logsoftmax').sum(dim=1).mean()\n assert ht2j.isfinite(Ylbp)\n return Ylbp",
"def N77f(KeL5, fl4t):\n N77f = ZylS.reduce_mean(ZylS.nn.sparse_softmax_cross_entropy_with_logits(logits=KeL5, labels=fl4t))\n ... | [
"0.7289315",
"0.71030736",
"0.70914316",
"0.70834047",
"0.7061076",
"0.7018414",
"0.7007331",
"0.69887376",
"0.6982799",
"0.6969598",
"0.694468",
"0.6933166",
"0.69163924",
"0.69006085",
"0.6898684",
"0.6886195",
"0.68738437",
"0.6858773",
"0.68536663",
"0.6839917",
"0.683925... | 0.0 | -1 |
MP3 to numpy array | def IV54(eHNT, HBfW=False):
jzdc = ajo_.AudioSegment.from_mp3(eHNT)
LVAh = oyIN.array(jzdc.get_array_of_samples())
if jzdc.channels == 2:
LVAh = LVAh.reshape((-1, 2))
if HBfW:
return (jzdc.frame_rate, oyIN.float32(LVAh) / 2 ** 15)
else:
return (jzdc.frame_rate, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DmkF(IznC: str) -> oyIN.array:\n nPrm, _rWM = vLaf(IznC)\n assert _rWM == qwqz or _rWM == biC8\n return nPrm",
"def l7hK(Ux0P):\n hGN5 = oAb3.Path(Ux0P).read_text()\n Q6uT = ''\n for zFiD in hGN5.split('\\n'):\n if zFiD.startswith('>'):\n if len(Q6uT) > 0:\n ... | [
"0.7242781",
"0.6544201",
"0.63995105",
"0.63598526",
"0.61089385",
"0.6056914",
"0.6014468",
"0.5988339",
"0.598537",
"0.5977741",
"0.5958309",
"0.59343606",
"0.5917006",
"0.5862074",
"0.5834699",
"0.5830203",
"0.5782452",
"0.5772942",
"0.57512",
"0.5748588",
"0.57476264",
... | 0.548331 | 42 |
numpy array to MP3 | def A7Ou(eHNT, JvR2, WKvO, HBfW=False):
xMux = 2 if WKvO.ndim == 2 and WKvO.shape[1] == 2 else 1
if HBfW:
LVAh = oyIN.int16(WKvO * 2 ** 15)
else:
LVAh = oyIN.int16(WKvO)
i34x = ajo_.AudioSegment(LVAh.tobytes(), frame_rate=JvR2, sample_width=2, channels=xMux)
i34x.export(eHNT, format=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DmkF(IznC: str) -> oyIN.array:\n nPrm, _rWM = vLaf(IznC)\n assert _rWM == qwqz or _rWM == biC8\n return nPrm",
"def HJI4(a1PO, KCHu):\n KCHu = a9eO.sndarray.array(KCHu)\n for YRbF in range(0, len(KCHu)):\n KCHu[YRbF] = a1PO[YRbF]\n KCHu = a9eO.sndarray.make_sound(KCHu)\n return KC... | [
"0.65145254",
"0.6358511",
"0.63118565",
"0.62971485",
"0.6283785",
"0.62486917",
"0.6100479",
"0.60953325",
"0.6093871",
"0.6015827",
"0.5970553",
"0.5958755",
"0.5948068",
"0.5904797",
"0.5881508",
"0.5873876",
"0.58627063",
"0.5827535",
"0.5634342",
"0.56244624",
"0.560816... | 0.61786515 | 6 |
Calculate Mean Intersection and Union (mIoU) and AP across predicted masks and GT masks. | def pbBl(Q90U: List[Dict], YNWP: List[Dict], pJb0, dP6o=0.5):
XOoj = len(Q90U)
MfHy = len(YNWP)
HRJ_ = oyIN.zeros(XOoj, dtype=oyIN.float32)
ytgA = oyIN.zeros(XOoj, dtype=oyIN.float32)
BaY_ = oyIN.zeros(MfHy, dtype=oyIN.float32)
if len(YNWP) == 0:
ytgA[...] = 1
return (HRJ_, ytgA,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GvK6(YKHO):\n u2Ez = YKHO.acc_confusion_matrix\n if YKHO.normalize:\n u2Ez = u2Ez / YKHO.count_samples\n HRJ_ = u2Ez.diagonal()\n FYKK = u2Ez.sum(dim=0) - HRJ_\n ytgA = u2Ez.sum(dim=1) - HRJ_\n Mx2y = u2Ez.sum()\n pWm4 = Mx2y - (HRJ_ + FYKK + ytgA)\n SGf8 = 1e-06\n mwHX = (HRJ... | [
"0.70040554",
"0.70022935",
"0.68950653",
"0.6775406",
"0.6718058",
"0.66353345",
"0.6559749",
"0.6523842",
"0.6483123",
"0.6434723",
"0.6434327",
"0.6434327",
"0.63461643",
"0.63436174",
"0.63436174",
"0.63436174",
"0.63436174",
"0.6295097",
"0.62909114",
"0.62795705",
"0.62... | 0.0 | -1 |
Get current time stamp. This is also useful to patch retrieval of the current date/time. | def EUP2():
return JRYC.datetime.now(JRYC.timezone.utc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mPGD(Emd4):\n return qcWV.utcnow().timestamp()",
"def otuc():\n return qcWV.now()",
"def ApjM():\n return qcWV.now().replace(microsecond=0)",
"def otuc():\n return '{:%Y%m%d%H%M%S}'.format(qcWV.now())",
"def dni_():\n return qcWV.fromtimestamp(ITS7.time()).strftime('%Y-%m-%dT%H:%M:%S')",... | [
"0.84123623",
"0.8314435",
"0.8235232",
"0.82160884",
"0.81337166",
"0.8067626",
"0.8065264",
"0.80443877",
"0.8029231",
"0.80221146",
"0.80155796",
"0.80155796",
"0.80155796",
"0.80155796",
"0.80155796",
"0.79885566",
"0.7952687",
"0.7949514",
"0.79404783",
"0.7921339",
"0.7... | 0.0 | -1 |
Throw an exception if path is not a root directory. | def ABlm(pmON, sWmO=None):
if sWmO is None:
SkC9 = cf3u.Path(pmON)
else:
SkC9 = (cf3u.Path(sWmO) / pmON).absolute()
for bGrB in SkC9.glob(pattern='.git'):
return
for bGrB in SkC9.glob(pattern='.svn'):
return
raise ValueError(f'{SkC9} does not appear to be a git or svn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IX6r(YKHO):\n if not vtfo(YKHO.root_directory):\n raise Exception(f\"'{YKHO.root_directory}' does not exist.\")\n if not ppdR(YKHO.root_directory):\n raise Exception(f\"'{YKHO.root_directory}' is not a directory.\")",
"def WqhQ(pmON):\n pmON = Hy7s.path.abspath(Hy7s.path.normpath(pmON)... | [
"0.7405967",
"0.68682",
"0.68682",
"0.6851134",
"0.6818625",
"0.6794394",
"0.6776173",
"0.67756426",
"0.677443",
"0.6768561",
"0.6759536",
"0.675281",
"0.67468554",
"0.6715794",
"0.66920656",
"0.6646412",
"0.6624779",
"0.6622288",
"0.6576272",
"0.65587455",
"0.65389687",
"0... | 0.0 | -1 |
Check if this is a 1dimensional Mesh. Returns bool | def s_rM(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s_rM(S9Ti: Shaped) -> bool:\n return hasattr(S9Ti, 'ndim') and getattr(S9Ti, 'ndim') == 1",
"def i7bu(epBp):\n if type(epBp) is not ht2j.Tensor:\n return False\n if epBp.size(0) == 1 and len(epBp.size()) == 2:\n return True\n return False",
"def Cpfl(jzdc):\n return jzdc.ndim =... | [
"0.71915406",
"0.6972454",
"0.6924046",
"0.6686348",
"0.6650586",
"0.6640973",
"0.66350526",
"0.6633083",
"0.66160125",
"0.65282863",
"0.6465927",
"0.64656293",
"0.64153045",
"0.63841134",
"0.63812894",
"0.6359038",
"0.63126755",
"0.6310661",
"0.63037866",
"0.6252444",
"0.620... | 0.70581734 | 1 |
Return all prefixes up to the given depth | def tX49(YKHO, rb7a, y0cW=''):
y0cW += YKHO.val if not y0cW else '/' + YKHO.val
Aofo = []
if rb7a <= 0 or not YKHO.children:
Aofo.append(y0cW)
else:
for aUGN in YKHO.children.values():
for uv6v in aUGN.prefixes(rb7a - 1, y0cW):
Aofo.append(uv6v)
return Aof... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qyr6(YKHO):\n YKHO.prefixes = [[] for WKvO in range(wSzi + 1)]\n pixC = B4xK(YKHO.rack)\n eHhC = {'prefix': '', 'node': YKHO.trie, 'remaining_tiles': pixC, 'tiles_used': ()}\n QLgx = [eHhC]\n while QLgx:\n pNrw = QLgx.pop()\n Q6kx = pNrw['node']\n bNfK = pNrw['remaining_tile... | [
"0.6628087",
"0.64858156",
"0.6297934",
"0.6134035",
"0.6082375",
"0.60738856",
"0.600773",
"0.5903842",
"0.5901699",
"0.5901699",
"0.5884687",
"0.58544785",
"0.5814027",
"0.57249856",
"0.56840706",
"0.56751484",
"0.5658143",
"0.5622704",
"0.5600002",
"0.5598702",
"0.5579887"... | 0.7966188 | 0 |
Calculate the running mean of the sequence passed in, returns a sequence of same length with the averages. You can assume all items in sequence are numeric. | def zsZT(aWuw):
for UHFx, dcxj in enumerate(pD6w(aWuw), 1):
yield round(dcxj / UHFx, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zsZT(aWuw):\n for YRbF, Ty9i in enumerate(pD6w(aWuw)):\n yield round(Ty9i / (YRbF + 1), 2)",
"def zsZT(aWuw):\n pass",
"def zsZT(aWuw):\n pass",
"def zsZT(aWuw: list) -> list:\n WhY1 = iter(aWuw)\n exwG = len(aWuw)\n _l9F = []\n for YRbF in range(1, exwG + 1):\n ufJO = ... | [
"0.8689986",
"0.83355266",
"0.83355266",
"0.82813025",
"0.756391",
"0.756391",
"0.74733305",
"0.74656874",
"0.7454198",
"0.73069894",
"0.72737604",
"0.72584397",
"0.7118032",
"0.702771",
"0.6990764",
"0.68806326",
"0.6869921",
"0.68517",
"0.67950547",
"0.67921245",
"0.6718006... | 0.859207 | 1 |
Remove punctuations and whitespaces from a word, finally lowercase the word and yield it. | def x0SS(GIN8):
return GIN8.translate(DE6K).strip().lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sgBq(GIN8):\n return GIN8.strip().lower()",
"def sgBq(GIN8):\n return GIN8.strip().lower()",
"def kUPS(GIN8):\n GIN8 = GIN8.lower()\n M6x8 = '.,?!\\'\":<>();'\n GIN8 = GIN8.strip(M6x8)\n return GIN8",
"def NkkI(GIN8):\n GIN8 = GIN8.lower().strip()\n if GIN8 in KXwX:\n retur... | [
"0.8090238",
"0.8090238",
"0.7817195",
"0.7780181",
"0.7541241",
"0.7441764",
"0.7431982",
"0.7333292",
"0.7284748",
"0.72411126",
"0.7219424",
"0.71989626",
"0.71406734",
"0.7122929",
"0.708384",
"0.6998989",
"0.6926606",
"0.69235593",
"0.6906466",
"0.6892729",
"0.68899643",... | 0.7670114 | 4 |
Split the line into words, remove punctuations and whitespaces and finally lowercase the word and yield it | def V22M(zFiD):
njyT = ZbWC.compile('(\\w+)')
for kUBT in njyT.finditer(zFiD):
yield kUBT.group(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sgBq(GIN8):\n return GIN8.strip().lower()",
"def sgBq(GIN8):\n return GIN8.strip().lower()",
"def YPy0(KCHu):\n for Z9rn in pC3l:\n KCHu = KCHu.replace(Z9rn, ' ')\n Iras = KCHu.split()\n Ltnc = []\n for yzQ0 in Iras:\n Ltnc.append(yzQ0.lower())\n return Ltnc",
"def BpBf... | [
"0.72450036",
"0.72450036",
"0.71704096",
"0.7060558",
"0.6983239",
"0.6908107",
"0.68889534",
"0.6868487",
"0.68385357",
"0.67991865",
"0.6735436",
"0.6714811",
"0.66942483",
"0.6690158",
"0.6655993",
"0.6647435",
"0.66103166",
"0.6591182",
"0.65826976",
"0.657077",
"0.65659... | 0.6135677 | 88 |
Converts raw Glucose Meter Reader (GMR) samples into original physical units (Glucose level in mg/dL). | def HaVA(gGnb=None, B1Wx=10):
gGnb = Si72(gGnb, B1Wx)
ewNy = oyIN.asarray([0.25 * 2 ** (10 - B1Wx) * float(KCHu) - 0.8 for KCHu in gGnb])
BTlv(ewNy, 'GMR')
return ewNy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UjW(j3zg):\n pass",
"def bMol(dDKE):\n pass",
"def Z0Rv(YKHO, QX7K, jDK_):\n return float(QX7K - YKHO.ZERO_G_REF[jDK_]) / YKHO.DELTA_PER_G[jDK_]",
"def c7uI(YKHO):\n exwG = YKHO.er.shape[0]\n return YKHO.msr(0.0, use_er=False)",
"def iL2x(mvm2):\n return QDBF * float(mvm2) / jLc4",
... | [
"0.6405727",
"0.6244137",
"0.6187869",
"0.60152876",
"0.59284484",
"0.5880642",
"0.5880642",
"0.5797568",
"0.57966805",
"0.57439536",
"0.5610459",
"0.55488545",
"0.55249447",
"0.55229205",
"0.55085963",
"0.5481167",
"0.54647154",
"0.5435737",
"0.5422518",
"0.54155296",
"0.540... | 0.6120247 | 3 |
Tests that parse issues on empty dict returns empty list | def q637(YKHO):
YKHO.assertEqual(vXgW.parse_issues({}), []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X_9d(YKHO) -> None:\n assert isinstance(sBap.parse_obj({}), gI09)",
"def lWCV():\n L_pB = dict()\n MJqa = 'Risks'\n rIUZ = 'Risks_path'\n U5Jc = oOnU(L_pB, human_readable_title=MJqa, context_path=rIUZ)\n o4Jx = U5Jc.outputs\n assert o4Jx == {f'AADIdentityProtection.{rIUZ}(val.id === obj.... | [
"0.74282867",
"0.7224054",
"0.7219761",
"0.7153997",
"0.7118078",
"0.7019951",
"0.6888636",
"0.6826414",
"0.6822466",
"0.6794157",
"0.66733843",
"0.666353",
"0.66084224",
"0.66030264",
"0.6581008",
"0.65270615",
"0.65107065",
"0.64950037",
"0.6476207",
"0.64614266",
"0.642014... | 0.6959669 | 6 |
Provides operations to manage the members property of the microsoft.graph.chat entity. | def DgAC(YKHO) -> MembersRequestBuilder:
from .members.members_request_builder import MembersRequestBuilder
return MembersRequestBuilder(YKHO.request_adapter, YKHO.path_parameters) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def members(YKHO, OaeV):\n lkRr = 0\n FW4i = 0\n N5z6 = OaeV.message.guild\n for mS46 in N5z6.members:\n if mS46.bot is True:\n FW4i += 1\n elif mS46.status != ZOrr.Status.offline:\n lkRr += 1\n Q1PJ = ZOrr.Embed(title='{}'.format(OaeV.message.guild.name), c... | [
"0.655936",
"0.6493861",
"0.63178146",
"0.62014514",
"0.61777264",
"0.6160374",
"0.615998",
"0.60916036",
"0.60828966",
"0.5975538",
"0.59720314",
"0.58618313",
"0.583815",
"0.580499",
"0.57860756",
"0.5780468",
"0.5780468",
"0.574358",
"0.57309395",
"0.57201815",
"0.5714788"... | 0.0 | -1 |
Provides operations to manage the messages property of the microsoft.graph.chat entity. | def yEHD(YKHO) -> MessagesRequestBuilder:
from .messages.messages_request_builder import MessagesRequestBuilder
return MessagesRequestBuilder(YKHO.request_adapter, YKHO.path_parameters) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yEHD(YKHO):\n return YKHO.properties.get('messages', BmUx(YKHO.context, KINM, oudJ('messages', YKHO.resource_path)))",
"def Ol8d(YKHO, Ol8d):\n if Ol8d['type'] in ('chat', 'normal'):\n print('mensajes')\n MDzo = str(Ol8d['from'])\n MDzo = MDzo[:MDzo.index('@')]\n Ol8d = str(... | [
"0.70184433",
"0.6737811",
"0.6680644",
"0.66192484",
"0.65530753",
"0.6538888",
"0.65270233",
"0.651197",
"0.651197",
"0.64110655",
"0.6402831",
"0.6398108",
"0.63924235",
"0.63105637",
"0.6308643",
"0.6295725",
"0.62957203",
"0.6292075",
"0.62797964",
"0.6277748",
"0.624185... | 0.0 | -1 |
Will recieve integer request for a sample size of the transitions. Should return a tuple of a list of tuples of the sampled transitions (state,action,reward,next_state,terminal), a (sample_size,) np.array of the indexes of the samples within the memory, and another (sample_size,) np.array of weights for the samples. Th... | def mvm2(YKHO, ekHH: int) -> AzJI[x1iM[AzJI[Ma1c, int, int, Ma1c, bool]], oyIN.array, oyIN.array]:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nH2E(YKHO, Ep8u):\n bS0K = oyIN.random.uniform(0, len(YKHO._memory), Ep8u).astype(int)\n wspz = []\n xASv = []\n vwlo = []\n BKVD = []\n nQSc = []\n _mIB = []\n for or8S in bS0K:\n Mkmy = 0\n for exwG in range(YKHO._n):\n if or8S + exwG == len(YKHO._memory):\n ... | [
"0.6810728",
"0.66670936",
"0.6511299",
"0.63561624",
"0.61742353",
"0.61192554",
"0.61146677",
"0.6073705",
"0.6067807",
"0.6055376",
"0.60463387",
"0.60357326",
"0.60260934",
"0.6023722",
"0.6022396",
"0.594569",
"0.5918644",
"0.59182465",
"0.5896581",
"0.5875363",
"0.58699... | 0.6096617 | 7 |
Turn str index into an int index | def Ky9j(YKHO, d6pt):
if isinstance(d6pt, int):
if d6pt >= 0 and d6pt < len(YKHO):
return d6pt
elif isinstance(d6pt, str):
if YKHO.idxs is not None and d6pt in YKHO.idxs:
return YKHO.idxs.get_loc(d6pt)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BfpZ(Sg1P: str) -> int:\n Sg1P = Sg1P.upper()\n if Sg1P[0] in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':\n FgTO = len(Sg1P)\n d6pt = 0\n for YRbF in range(FgTO):\n d6pt += (ord(Sg1P[YRbF]) - ord('A') + 1) * pow(26, FgTO - 1 - YRbF)\n return d6pt\n else:\n return int(Sg... | [
"0.7900015",
"0.76547533",
"0.7416198",
"0.73315907",
"0.7290104",
"0.7091168",
"0.6944065",
"0.69390154",
"0.69145364",
"0.6893237",
"0.6877997",
"0.68633765",
"0.6768116",
"0.6605917",
"0.6598531",
"0.65910983",
"0.65811515",
"0.65543634",
"0.6523222",
"0.6510068",
"0.64973... | 0.6679577 | 13 |
Return a list of categories in an categorical column, sorted by mode. | def n1Mv(YKHO, fvDH, LcX5=None, BA9O='alphabet'):
assert fvDH in YKHO.cat_cols, f'{fvDH} is not a categorical feature!'
if BA9O == 'alphabet':
if LcX5 is None:
return sorted(YKHO.X_cats[fvDH].unique().tolist())
else:
return sorted(YKHO.X_cats[fvDH].unique().tolist())[:LcX... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TC8K(iVRZ):\n return rLdf.Categorical(iVRZ).categories",
"def LQuW(YKHO):\n return sorted(YKHO.categories.keys(), key=str.casefold)",
"def r3tR(jQ3Z):\n fRn_ = jQ3Z.columns[jQ3Z.dtypes == 'object']\n return list(fRn_)",
"def ggms(YKHO) -> x1iM[str]:\n bGrB, ggms = U5qc.get_columns_by_type(... | [
"0.71291125",
"0.6981859",
"0.67184293",
"0.66285354",
"0.658571",
"0.6418118",
"0.64007026",
"0.6399801",
"0.63911116",
"0.6374199",
"0.62731934",
"0.62624055",
"0.6208269",
"0.620183",
"0.61888283",
"0.61267185",
"0.61198807",
"0.6098617",
"0.6077304",
"0.60743946",
"0.6015... | 0.63913834 | 8 |
sorted dataframe with mean_abs_shap returns a pd.DataFrame with the mean absolute shap values per features, sorted rom highest to lowest. | def K1I5(YKHO, LcX5=None, tAX0=None, zSv7=False, uxJJ=None):
if zSv7:
wCvX = YKHO.mean_abs_shap_cats(uxJJ)
else:
wCvX = YKHO.mean_abs_shap(uxJJ)
if LcX5 is None:
LcX5 = len(wCvX)
if tAX0 is None:
tAX0 = wCvX['MEAN_ABS_SHAP'].min()
return wCvX[wCvX['MEAN_ABS_SHAP'] >= ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXz0(ZLJ_, kI9W, zSv7=None):\n ztIo = DEFE(ZLJ_, zSv7)\n Q9d2 = {}\n for AAHb, A8fR in ztIo.items():\n Q9d2[AAHb] = oyIN.absolute(kI9W[:, [ZLJ_.index(fvDH) for fvDH in A8fR]].sum(axis=1)).mean()\n wCvX = rLdf.DataFrame({'Feature': list(Q9d2.keys()), 'MEAN_ABS_SHAP': list(Q9d2.values())}).sor... | [
"0.7910098",
"0.7412253",
"0.6750217",
"0.65207213",
"0.64771026",
"0.61987036",
"0.6101746",
"0.6048218",
"0.6037516",
"0.591305",
"0.5912917",
"0.58969784",
"0.5611576",
"0.56070334",
"0.55810064",
"0.557981",
"0.5482256",
"0.54720724",
"0.54094917",
"0.54021883",
"0.539252... | 0.712634 | 2 |
returns the features that interact with feature col in descending order. if shap interaction values have already been calculated, use those. Otherwise use shap approximate_interactions or simply mean abs shap. | def KZVC(YKHO, fvDH, LcX5=None, zSv7=False, uxJJ=None):
if zSv7:
if hasattr(YKHO, '_shap_interaction_values'):
D1Qf = YKHO.X_cats.columns.get_loc(fvDH)
noPP = YKHO.X_cats.columns[oyIN.argsort(-oyIN.abs(YKHO.shap_interaction_values_cats(uxJJ)[:, D1Qf, :]).mean(0))].tolist()
el... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iBEp(YKHO):\n assert YKHO.shap != 'linear', 'Unfortunately shap.LinearExplainer does not provide shap interaction values! So no interactions tab!'\n if not hasattr(YKHO, '_shap_interaction_values'):\n print('Calculating shap interaction values...', flush=True)\n if YKHO.shap == 'tree':\n ... | [
"0.6305948",
"0.6048907",
"0.5899088",
"0.5820465",
"0.5818364",
"0.5610337",
"0.55303985",
"0.5438733",
"0.5412577",
"0.5401158",
"0.5398029",
"0.5372629",
"0.5337281",
"0.5298761",
"0.528637",
"0.5255498",
"0.5251488",
"0.52473843",
"0.5244971",
"0.52294",
"0.5228732",
"0... | 0.6344915 | 0 |
returns pred_proba for pos_label class | def x8bW(YKHO):
return j4At(YKHO.pred_probas_raw, YKHO.pos_label) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KR85(YKHO, bGrB):\n return y_Za",
"def KR85(YKHO, EcVT):\n bGrB, or8S = YKHO.kneighbors(EcVT, YKHO.n_neighbors)\n YVdj = YKHO.y[or8S]\n BWz1 = oyIN.apply_along_axis(lambda WKvO: oyIN.bincount(WKvO, minlength=YKHO.num_of_classes), axis=1, arr=YVdj.astype(oyIN.int64))\n aTLP = oyIN.argmax(BWz1, ... | [
"0.722774",
"0.7207642",
"0.7166067",
"0.7110956",
"0.6964305",
"0.69623786",
"0.6961696",
"0.6961696",
"0.6961696",
"0.6961696",
"0.6961696",
"0.6936514",
"0.69364965",
"0.68433636",
"0.6829618",
"0.68233955",
"0.6821989",
"0.6804257",
"0.67870367",
"0.6777445",
"0.67573637"... | 0.720995 | 1 |
plot cumulative precision returns a cumulative precision plot, which is a slightly different representation of a lift curve. | def hMJv(YKHO, yArv=None, uxJJ=None):
if uxJJ is None:
uxJJ = YKHO.pos_label
return U6Ms(YKHO.lift_curve_df(pos_label=uxJJ), labels=YKHO.labels, percentile=yArv, pos_label=uxJJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U6Ms(q5qx, Crrw=None, yArv=None, round=2, uxJJ=1):\n if Crrw is None:\n Crrw = ['category ' + str(YRbF) for YRbF in range(q5qx.y.max() + 1)]\n LZpg = iEax.Figure()\n l5Ny = [f'percentage sampled = top {oPYw:.{round}f}%' for oPYw in q5qx['index_percentage'].values]\n LZpg = LZpg.add_trace(iEa... | [
"0.6482417",
"0.64584357",
"0.6321948",
"0.62732",
"0.6102343",
"0.60705715",
"0.6048125",
"0.6037605",
"0.5966103",
"0.5963255",
"0.59037364",
"0.59034127",
"0.587911",
"0.58458155",
"0.58378285",
"0.5798204",
"0.5785332",
"0.5784409",
"0.5776373",
"0.5769608",
"0.5768693",
... | 0.7178061 | 0 |
Block of one convolutional layer with possible activation and batch normalization. | def dILh(vHnr, he5B, YDYE=None, QJWG=(3, 3, 3), FEri=(1, 1, 1), dvgN='same', wH3T='channels_last', uNRR=False, hr1G=None, jtyf=None, V70B=None, jDK_=4, e5sz=True, UIER=None, RKO_=None):
if jtyf is not None:
if V70B is not None:
gEmA = GVLU(filters=he5B, kernel_size=QJWG, strides=FEri, padding=dv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t84O(YKHO, KUnM, pKvt):\n RRgV = GVKG()(pKvt)\n aw2B = MroH('relu')(RRgV)\n dFGd = yHwh(KUnM, (3, 3), padding='same', kernel_initializer=YKHO.initializer)(aw2B)\n bo8Q = GVKG()(dFGd)\n AIsx = MroH('relu')(bo8Q)\n sUaA = yHwh(KUnM, (3, 3), padding='same', kernel_initializer=YKHO.initializer)(A... | [
"0.7511242",
"0.75074995",
"0.7426032",
"0.7426032",
"0.7426032",
"0.7413836",
"0.7402101",
"0.73312604",
"0.73009425",
"0.7289238",
"0.72712874",
"0.72622484",
"0.7257261",
"0.7252632",
"0.7167113",
"0.7122805",
"0.7122384",
"0.71219695",
"0.7107917",
"0.70819175",
"0.707231... | 0.6857835 | 43 |
Upscaling layer. It can be either transpose convolutional layer (deconvolution) or upsampling layer. | def pSKp(vHnr, he5B, EcAO=(2, 2, 2), dvgN='same', wH3T='channels_last', JOXk=False):
if JOXk:
return aNPQ(filters=he5B, kernel_size=EcAO, strides=EcAO, padding=dvgN, data_format=wH3T)(vHnr)
else:
return uZLe(size=EcAO, data_format=wH3T)(vHnr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RTY0(YKHO, **B2fa):\n vHnr = YKHO.input_layer if not YKHO.all_layers else YKHO.all_layers[-1]\n YKHO.n_upscale_layers += 1\n mWFP = 'upscale%i' % YKHO.n_upscale_layers\n mk8e = dwhd(vHnr, name=mWFP, **B2fa)\n YKHO.all_layers += (mk8e,)",
"def FIMM(YKHO, vTym=[3, 4, 5, 5], NB23='ReLU', VMn6={},... | [
"0.70933217",
"0.6855015",
"0.6770549",
"0.6746102",
"0.67059207",
"0.6667712",
"0.6667712",
"0.66480905",
"0.6639683",
"0.66292226",
"0.6615043",
"0.6598077",
"0.65874714",
"0.65780103",
"0.65654916",
"0.65653056",
"0.65602016",
"0.6557538",
"0.6557538",
"0.65447336",
"0.654... | 0.76606065 | 0 |
Returns temperature of the CPU | def xXhs():
nUeQ = open(Ih2l, 'r')
ycBG = float(int(nUeQ.readline()) / 1000)
nUeQ.close()
return ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LJii():\n Aofo = Hy7s.popen('vcgencmd measure_temp').readline()\n return float(Aofo.replace('temp=', '').replace(\"'C\\n\", ''))",
"def AC3t():\n HCmI = '/opt/vc/bin/vcgencmd measure_temp'\n try:\n hlel = fupw(HCmI)\n VRC1 = hlel.split(\"'\")[0]\n B8eW = float(VRC1)\n ... | [
"0.8826066",
"0.8596936",
"0.85729706",
"0.8507301",
"0.8491876",
"0.8460352",
"0.8302361",
"0.8294741",
"0.829277",
"0.829277",
"0.82037234",
"0.8183641",
"0.81284463",
"0.8088117",
"0.80432755",
"0.7926916",
"0.79076064",
"0.7877734",
"0.7855668",
"0.7846596",
"0.7827891",
... | 0.75187564 | 56 |
Returns temperature of the GPU in raw temp=41.9'C | def IW3W():
iHgE = Yn3K.check_output(_oMC.split()).decode('utf-8')
r8hN = ZbWC.search('^temp=(\\d+)\\.(\\d+)', iHgE)
if not r8hN:
ycBG = 'invalid'
else:
ycBG = float(r8hN.group(1) + '.' + r8hN.group(2))
return ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ovGo(YKHO):\n return YKHO.device.temperature()",
"def dHVP():\n RxDy = Yn3K.run(['cat', '/sys/class/thermal/thermal_zone2/temp'], check=True, stdout=Yn3K.PIPE, stderr=Yn3K.PIPE, universal_newlines=True)\n XEEe = float(RxDy.stdout) / 1000\n return XEEe",
"def ovGo(YKHO) -> float:\n YKHO.measu... | [
"0.79614305",
"0.7936598",
"0.79260314",
"0.78901196",
"0.78538144",
"0.78372455",
"0.77869207",
"0.77658176",
"0.77558243",
"0.7697672",
"0.7685533",
"0.767052",
"0.7667526",
"0.7643911",
"0.762919",
"0.7600565",
"0.7598403",
"0.75944304",
"0.7590414",
"0.7582061",
"0.756520... | 0.7151533 | 94 |
difference(a, b, key=None) > all elements in a but not b, in sorted order according to key. If the key function is not specified or is none, the element itself is used for comparison. As with groupby, the iterables need to be already sorted according to the key function. Duplicates within the first iterable will be ret... | def by6d(jzdc, Fg_i, H5ew=None):
jzdc, Fg_i = (nVv5(jzdc, H5ew), nVv5(Fg_i, H5ew))
while jzdc and Fg_i:
WKvO, DMUU = jzdc.peek()
LVAh, a8LU = Fg_i.peek()
if DMUU < a8LU:
yield WKvO
next(jzdc)
elif a8LU < DMUU:
next(Fg_i)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1fz(jzdc, Fg_i, H5ew=None):\n jzdc, Fg_i = (nVv5(jzdc, H5ew), nVv5(Fg_i, H5ew))\n while jzdc and Fg_i:\n WKvO, DMUU = jzdc.peek()\n LVAh, a8LU = Fg_i.peek()\n if DMUU < a8LU:\n yield WKvO\n next(jzdc)\n elif a8LU < DMUU:\n yield LVAh\n ... | [
"0.6233847",
"0.6055881",
"0.60050625",
"0.598277",
"0.5936251",
"0.59232056",
"0.5879493",
"0.5731596",
"0.5721852",
"0.57128334",
"0.55583984",
"0.55542946",
"0.555088",
"0.5543995",
"0.55384284",
"0.5510615",
"0.5494855",
"0.5454464",
"0.5446899",
"0.54377747",
"0.53487283... | 0.70125675 | 0 |
symmetric_difference(a, b, key=None) > all elements in either a or b, but not both, in sorted order according to key. If the key function is not specified or is none, the element itself is used for comparison. As with groupby, the iterables need to be already sorted according to the key function. Duplicates within eith... | def _1fz(jzdc, Fg_i, H5ew=None):
jzdc, Fg_i = (nVv5(jzdc, H5ew), nVv5(Fg_i, H5ew))
while jzdc and Fg_i:
WKvO, DMUU = jzdc.peek()
LVAh, a8LU = Fg_i.peek()
if DMUU < a8LU:
yield WKvO
next(jzdc)
elif a8LU < DMUU:
yield LVAh
next(Fg_i)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1fz(YKHO, Elif):\n raise NotImplementedError",
"def by6d(jzdc, Fg_i, H5ew=None):\n jzdc, Fg_i = (nVv5(jzdc, H5ew), nVv5(Fg_i, H5ew))\n while jzdc and Fg_i:\n WKvO, DMUU = jzdc.peek()\n LVAh, a8LU = Fg_i.peek()\n if DMUU < a8LU:\n yield WKvO\n next(jzdc)\n ... | [
"0.6645461",
"0.6613138",
"0.6589169",
"0.6524545",
"0.6496994",
"0.6486251",
"0.6435228",
"0.64120656",
"0.637902",
"0.6302689",
"0.6194806",
"0.6192376",
"0.6091034",
"0.6032656",
"0.6026348",
"0.59626895",
"0.5962618",
"0.5954001",
"0.5898553",
"0.5896391",
"0.5892608",
... | 0.7748914 | 0 |
Initialises the order type, setting whether it is a Market order ('MKT') or Limit order ('LMT'), has a quantity (integral) and its direction ('BUY' or 'SELL'). | def FIMM(YKHO, o61b, y7DO, cTRz, XSoh):
YKHO.type = 'ORDER'
YKHO.symbol = o61b
YKHO.order_type = y7DO
YKHO.quantity = cTRz
YKHO.direction = XSoh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, o61b, XSoh, cTRz=0.0, q7cz='close', y7DO='MKT', cDpt=0):\n YKHO.type = 'ORDER'\n YKHO.direction = XSoh\n YKHO.symbol = o61b\n YKHO.quantity = cTRz\n YKHO.ask_price = q7cz\n YKHO.order_type = y7DO\n YKHO.commission = cDpt",
"def FIMM(YKHO, o61b, y7DO, cTRz, XSoh):\n YKHO.typ... | [
"0.7478903",
"0.73894966",
"0.7315693",
"0.7143965",
"0.68490744",
"0.6723904",
"0.6684249",
"0.66759497",
"0.66528136",
"0.66456246",
"0.6591992",
"0.63598025",
"0.63543206",
"0.6337949",
"0.6276666",
"0.62765336",
"0.62623715",
"0.6190268",
"0.6188695",
"0.6127585",
"0.6095... | 0.73249894 | 2 |
Initialises the FillEvent object. Sets the symbol, exchange, quantity, direction, cost of fill and an optional commission. If commission is not provided, the Fill object will calculate it based on the trade size and Interactive Brokers fees. | def FIMM(YKHO, ngH4, o61b, dQgO, cTRz, XSoh, cgE3, cDpt=None):
YKHO.type = 'FILL'
YKHO.timeindex = ngH4
YKHO.symbol = o61b
YKHO.exchange = dQgO
YKHO.quantity = cTRz
YKHO.direction = XSoh
YKHO.fill_cost = cgE3
if cDpt is None:
YKHO.commission = YKHO.calculate_ib_commission()
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FUMt(YKHO, tO9_):\n Gcbu = YKHO.fill_dict[tO9_.orderId]\n o61b = Gcbu['symbol']\n dQgO = Gcbu['exchange']\n KJF0 = tO9_.filled\n XSoh = Gcbu['direction']\n cgE3 = tO9_.avgFillPrice\n Q382 = K9iO(qcWV.datetime.utcnow(), o61b, dQgO, KJF0, XSoh, cgE3)\n YKHO.fill_dict[tO9_.orderId]['filled... | [
"0.7371281",
"0.7159106",
"0.68646383",
"0.6483713",
"0.6185769",
"0.60736084",
"0.59394085",
"0.59073895",
"0.5857319",
"0.5793466",
"0.55950636",
"0.5407126",
"0.53795",
"0.537123",
"0.53471243",
"0.5159461",
"0.5133144",
"0.51070994",
"0.5090381",
"0.5090381",
"0.5090381",... | 0.6874766 | 2 |
Initialize a new connection instance. | def FIMM(YKHO, YADb=('/dev/ttyUSB0', 115200, 8, 'N', 1, 1), xvEc=(None, 'eth0'), MC83=('root', ''), Bqu9='HidaV boot on', J1mJ=True, _OO_=True):
YKHO._logger = bo34.init()
YKHO._login = MC83
YKHO._target_if = xvEc[1]
YKHO._hw_reset = _OO_
YKHO._serial = YKHO._serial_setup(*YADb, skip_pass=J1mJ, boot... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, UzPC):\n YKHO.connection = UzPC\n YKHO.init()",
"def T1Sh(YKHO):\n vvnZ, bGrB, bGrB = YKHO.run('true')\n if vvnZ != 0:\n raise ConnectionError",
"def FIMM(YKHO, Nupt=None):\n if not Nupt:\n YKHO.cnx = None\n else:\n YKHO.connect(Nupt)",
"def FIMM(YKHO, Uz... | [
"0.77379304",
"0.76449484",
"0.75694376",
"0.7557177",
"0.7557177",
"0.75056124",
"0.750544",
"0.75021213",
"0.75021213",
"0.7501777",
"0.7498873",
"0.7484547",
"0.7480574",
"0.7459811",
"0.7459811",
"0.7453554",
"0.7445714",
"0.74337685",
"0.7412001",
"0.7367275",
"0.7332917... | 0.0 | -1 |