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 |
|---|---|---|---|---|---|---|
Generate the field default value/factory for the given attribute. | def L4qt(hkS8: Attr, pdzp: Optional[Dict]=None) -> ImMB:
if hkS8.is_list:
return 'list'
if hkS8.is_map:
return 'dict'
if not isinstance(hkS8.default, str):
return hkS8.default
eh_L = {u2uV.native_code: u2uV.native_type for u2uV in hkS8.types if u2uV.native}
ZI4X = list(set(eh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TdeN(Jyyj: Attribute) -> d932:\n from attrs import NOTHING, Factory\n WmM4 = Jyyj.default if Jyyj.default is not NOTHING else LTIq\n Y8ds = None\n if isinstance(WmM4, Factory):\n Y8ds = WmM4.factory\n WmM4 = LTIq\n dDGN = {G1Hx: Ty9i for G1Hx, Ty9i in Jyyj.metadata.items() if G1Hx ... | [
"0.6389327",
"0.6322483",
"0.6116227",
"0.589786",
"0.58924073",
"0.5888131",
"0.5888131",
"0.5888131",
"0.5848045",
"0.5845973",
"0.5842988",
"0.57989615",
"0.57691306",
"0.57691306",
"0.5736699",
"0.5731367",
"0.5723616",
"0.5711687",
"0.56436974",
"0.5641029",
"0.56033814"... | 0.5475348 | 24 |
Return the string representation of this JID. | def vBWh(YKHO):
if YKHO.user:
if YKHO.resource:
return u'%s@%s/%s' % (YKHO.user, YKHO.host, YKHO.resource)
else:
return u'%s@%s' % (YKHO.user, YKHO.host)
elif YKHO.resource:
return u'%s/%s' % (YKHO.host, YKHO.resource)
else:
return YKHO.host | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTzM(YKHO):\n return str(YKHO.project_id)",
"def id(YKHO):\n return str(YKHO.jid)",
"def wHJl(YKHO):\n return 'JID(%r)' % YKHO.full()",
"def zAg0(YKHO):\n return str(YKHO._id())",
"def gTzM(YKHO) -> str:\n return qQXR.dumps({'job_id': YKHO.job_id, 'creation_time': YKHO.creation_time.isof... | [
"0.7426563",
"0.7422702",
"0.7308826",
"0.7280616",
"0.7264664",
"0.7140616",
"0.7103659",
"0.7103659",
"0.7101938",
"0.7098328",
"0.7049065",
"0.7046476",
"0.7037667",
"0.6987454",
"0.6946221",
"0.6927895",
"0.6927895",
"0.691683",
"0.691683",
"0.691683",
"0.691683",
"0.69... | 0.0 | -1 |
Equality comparison. L{JID}s compare equal if their user, host and resource parts all compare equal. When comparing against instances of other types, it uses the default comparison. | def xa14(YKHO, Elif):
if isinstance(Elif, lFXt):
return YKHO.user == Elif.user and YKHO.host == Elif.host and (YKHO.resource == Elif.resource)
else:
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.get_status() == Elif.get_status() and YKHO.get_nickname() == Elif.get_nickname() and (YKHO._email == Elif._email)",
"def xa14(YKHO, Elif):\n return YKHO.storage_ip == Elif.storage_ip and YKHO.client_port == Elif.client_port",
"def xa14(YKHO, Elif):\n return YKHO.sto... | [
"0.64084405",
"0.6358773",
"0.61814576",
"0.61358035",
"0.61164385",
"0.59621245",
"0.58854353",
"0.58666533",
"0.585381",
"0.58394694",
"0.5784352",
"0.57822114",
"0.57656825",
"0.57505447",
"0.57491875",
"0.5747596",
"0.57352936",
"0.5717275",
"0.57146823",
"0.5706218",
"0.... | 0.74519265 | 0 |
Inequality comparison. This negates L{__eq__} for comparison with JIDs and uses the default comparison for other types. | def Vdqg(YKHO, Elif):
Aofo = YKHO.__eq__(Elif)
if Aofo is NotImplemented:
return Aofo
else:
return not Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, nGHW):\n return int(YKHO) == nGHW",
"def Vdqg(YKHO, Elif):\n return int.__eq__(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return int.__ne__(YKHO, Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, RKYb):\... | [
"0.70248646",
"0.69780046",
"0.6973793",
"0.69362265",
"0.68947756",
"0.68663895",
"0.68650854",
"0.67956626",
"0.67847085",
"0.67847085",
"0.67847085",
"0.67847085",
"0.6774166",
"0.6768892",
"0.6765927",
"0.6765927",
"0.6765927",
"0.6765927",
"0.6765927",
"0.6765927",
"0.67... | 0.0 | -1 |
Get unicode representation. Return the string representation of this JID as a unicode string. | def Ku9n(YKHO):
return YKHO.full() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sa1R(YKHO) -> QMSQ:\n ...",
"def Sa1R(YKHO) -> QMSQ:\n ...",
"def Ku9n(YKHO):\n return str(YKHO).decode('ascii')",
"def zAg0(YKHO):\n return YKHO.__unicode__().encode('utf-8').decode()",
"def unpH(YKHO):\n return QMSQ(YKHO.id)",
"def zAg0(YKHO):\n return QMSQ(YKHO).encode('utf-8')",... | [
"0.7284489",
"0.7284489",
"0.7064411",
"0.70184565",
"0.69510996",
"0.6935268",
"0.69069403",
"0.6847881",
"0.6847881",
"0.6764083",
"0.67510027",
"0.67132187",
"0.67065805",
"0.6687612",
"0.6669283",
"0.6643542",
"0.66284806",
"0.65897703",
"0.658734",
"0.6583768",
"0.657345... | 0.0 | -1 |
Get object representation. Returns a string that would create a new JID object that compares equal to this one. | def wHJl(YKHO):
return 'JID(%r)' % YKHO.full() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mxw9(YKHO):\n if hasattr(YKHO, 'id'):\n return str(YKHO.id)\n else:\n return 'obj%s' % id(YKHO)",
"def zAg0(YKHO):\n return str(YKHO._id())",
"def zAg0(YKHO):\n return str(YKHO.serialize())",
"def yLCI(YKHO):\n return qQXR.dumps(YKHO.to_json(), cls=Y4Gi)",
"def Napc(YKHO):\... | [
"0.6973016",
"0.69135034",
"0.6621119",
"0.6567352",
"0.65636516",
"0.6547005",
"0.6458368",
"0.64452475",
"0.64262766",
"0.64256775",
"0.6408302",
"0.6408302",
"0.6408302",
"0.6408302",
"0.6388713",
"0.6388713",
"0.6388713",
"0.6342257",
"0.63334346",
"0.6319515",
"0.6308198... | 0.66363335 | 2 |
Returns a dataframe that contains the results of the statement. | def xDcj(WNtM, hAVj=None, NArs=None):
if hAVj is None:
hAVj = lxP0()
tyNF = rLdf.io.sql.read_sql(WNtM, hAVj, params=NArs)
return tyNF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4pG(YKHO) -> rLdf.DataFrame:\n return rLdf.DataFrame(YKHO.fetchall(), columns=YKHO.headers())",
"def p1qr(xDcj):\n NCls.query(xDcj)\n dMjI = NCls.store_result()\n zKys = dMjI.fetch_row(maxrows=0, how=2)\n jQ3Z = rLdf.DataFrame.from_records(zKys)\n return jQ3Z",
"def xDcj(YKHO, Pe9W):\n ... | [
"0.7152821",
"0.6969833",
"0.6947844",
"0.6945339",
"0.6869997",
"0.6869997",
"0.68237275",
"0.67375433",
"0.6727",
"0.66758007",
"0.6659355",
"0.6659223",
"0.6658207",
"0.6602367",
"0.65329915",
"0.65250367",
"0.65031457",
"0.64772046",
"0.6473642",
"0.6462457",
"0.64423496"... | 0.62896967 | 29 |
Returns the slipped price per share for an order. | def JXHy(YKHO, T4Wy: Order, hI0L: float, cTRz: float, S6Fl: Bar, WWQ8: float):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bqGm(BgK2: pandas.DataFrame):\n return IpDZ(BgK2) - DVeM(BgK2)",
"def QVq7(YKHO):\n if YKHO.bid and YKHO.offer:\n return YKHO.offer[0].price - YKHO.bid[-1].price\n return 0",
"def dahh(YKHO):\n if YKHO.price is not None:\n return YKHO.price\n else:\n bo34.info('floating ... | [
"0.5477907",
"0.5236032",
"0.51641077",
"0.5158731",
"0.51148874",
"0.5105893",
"0.51017535",
"0.5088184",
"0.50534195",
"0.4987114",
"0.49851453",
"0.49842557",
"0.4949354",
"0.49146435",
"0.4899321",
"0.4865036",
"0.48559096",
"0.48128808",
"0.48036277",
"0.47860503",
"0.47... | 0.44513234 | 76 |
Convert a value in Hertz to Mels | def f3Ru(YwdF):
return 2595 * oyIN.log10(1 + YwdF / 700.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOz4(YKHO, md8z):\n return 250.0 * 9 ** (md8z / 3340.0) - 250.0",
"def GsqE(YKHO, QTg7):\n return 3340.0 * RKD7(1 + QTg7 / 250.0, 9)",
"def GsqE(QTg7: float, gXjI: str='htk') -> float:\n if gXjI not in ['slaney', 'htk']:\n raise ValueError('mel_scale should be one of \"htk\" or \"slaney\".'... | [
"0.6562281",
"0.64037156",
"0.6180278",
"0.61466455",
"0.61109316",
"0.602301",
"0.6009003",
"0.600111",
"0.59200937",
"0.58808076",
"0.58377075",
"0.5740704",
"0.5724527",
"0.5709943",
"0.5707225",
"0.5699766",
"0.56717217",
"0.5622939",
"0.5597856",
"0.55874133",
"0.5579861... | 0.5328971 | 36 |
Convert a value in Mels to Hertz | def aCP3(md8z):
return 700 * (10 ** (md8z / 2595.0) - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOz4(YKHO, md8z):\n return 250.0 * 9 ** (md8z / 3340.0) - 250.0",
"def QViw(Btgb):\n return dLWq * (oyIN.exp(Btgb / dyxT) - 1.0)",
"def XHWk(rTaI):\n return rTaI / yqcp",
"def oOz4(gF8_: np.array, gXjI: str='htk') -> oyIN.array:\n if gXjI not in ['slaney', 'htk']:\n raise ValueError('m... | [
"0.7050474",
"0.62311673",
"0.6166904",
"0.6111613",
"0.6007273",
"0.5893435",
"0.58479744",
"0.5803646",
"0.57042795",
"0.57033795",
"0.56962776",
"0.5662375",
"0.5657948",
"0.56506306",
"0.5649922",
"0.56447536",
"0.56268424",
"0.5604601",
"0.5570622",
"0.55185694",
"0.5517... | 0.0 | -1 |
Calculates the distance between two points on the earth | def xq9t(rMgr, Tw2s, _8_h, MlQC):
QOe9 = (Tw2s, rMgr)
ogYM = (MlQC, _8_h)
return bzkv(QOe9, ogYM).miles | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y5Al(igSk: float, GgQG: float, TGuP: float, tk0B: float) -> float:\n A3Vt = 3963.0\n igSk = Y_1E(igSk)\n GgQG = Y_1E(GgQG)\n TGuP = Y_1E(TGuP)\n tk0B = Y_1E(tk0B)\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2\n ... | [
"0.77019244",
"0.7672922",
"0.75489223",
"0.74602526",
"0.74377084",
"0.7431398",
"0.7424306",
"0.7373982",
"0.7368455",
"0.7330059",
"0.7311306",
"0.7230495",
"0.7222236",
"0.721677",
"0.7213821",
"0.7206384",
"0.72018963",
"0.7190489",
"0.7184047",
"0.71696115",
"0.71651906... | 0.0 | -1 |
Parse the supply and price information returned by requestMarketCap. | def oh1k(eBtR, VIXL, szwf=False):
nPrm = []
FT7l = qQXR.loads(eBtR)
pZj4 = {}
uhuo = [str(H5ew.replace('_data', '')) for H5ew in FT7l.keys()]
uhuo.remove('x_min')
uhuo.remove('x_max')
uhuo.remove('volume')
for Jyyj, UaV6 in FT7l.iteritems():
if Jyyj == 'x_min' or Jyyj == 'x_max' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hbha(YKHO, z50T, geh0, dcJF):\n z50T.open = geh0['1a. open (USD)']\n z50T.high = geh0['2a. high (USD)']\n z50T.low = geh0['3a. low (USD)']\n z50T.close = geh0['4a. close (USD)']\n z50T.volume = geh0['5. volume']\n z50T.market_cap = geh0['6. market cap (USD)']\n z50T.time = dcJF",
"def hf... | [
"0.63937193",
"0.6208565",
"0.61313295",
"0.6056644",
"0.6043968",
"0.5862597",
"0.57959163",
"0.56450766",
"0.5586157",
"0.53498745",
"0.53171486",
"0.5249453",
"0.5213558",
"0.5188836",
"0.5161587",
"0.5158522",
"0.51500934",
"0.5140428",
"0.5137574",
"0.5134186",
"0.511736... | 0.5775096 | 7 |
Modify the transmission type to transmit continuously. | def RepB(iYrw):
c00E = {'from': '/traffic', 'nodes': [{'node': 'trafficItem', 'properties': ['name'], 'where': [{'property': 'name', 'regex': iYrw}]}, {'node': 'configElement', 'properties': [], 'where': []}]}
KXkh = C934.ixn.query(data=c00E)
if KXkh.json()['result'][0]['trafficItem'] == []:
print('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w7Mz(YKHO):\n return 1",
"def oqOl():\n print('... run {0} transmission'.format(Sawk.__SIGNAL_SETTINGS['repeats']))\n Sawk.__SIGNAL_OBJ.RFxmit(Sawk.__SIGNAL_SETTINGS['text_message'] * Sawk.__SIGNAL_SETTINGS['repeats'])\n print('... set USB Dongle idle')\n Sawk.__SIGNAL_OBJ.setModeIDLE()",
"d... | [
"0.6400284",
"0.60427666",
"0.6033574",
"0.60051787",
"0.5951145",
"0.5736143",
"0.56648743",
"0.56156105",
"0.5524116",
"0.5514024",
"0.5508814",
"0.5507001",
"0.54315495",
"0.5419062",
"0.53944224",
"0.5374579",
"0.5374579",
"0.5333122",
"0.5322994",
"0.531291",
"0.531291",... | 0.0 | -1 |
Returns a median value from the values in the given list. | def lVH4(list):
return sum(list) / len(list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qPfM(qQiX):\n return oyIN.median(qQiX)",
"def qPfM(IC2L):\n try:\n for ZfUD in IC2L:\n assert isinstance(ZfUD, KUXB)\n except AssertionError:\n return 0\n IC2L.sort()\n bjsK = len(IC2L)\n if bjsK < 1:\n BjRM = 0\n elif bjsK % 2 == 1:\n BjRM = int(IC... | [
"0.8381727",
"0.8244031",
"0.8065128",
"0.8022523",
"0.7901576",
"0.7888796",
"0.7851978",
"0.7785097",
"0.77303964",
"0.7689559",
"0.7668722",
"0.7570903",
"0.7564612",
"0.7547091",
"0.75173473",
"0.73224753",
"0.731337",
"0.73126715",
"0.72649974",
"0.7226379",
"0.7225822",... | 0.58989316 | 92 |
Method for checking for collision. This method checks if the character collides with the given rectangle. | def wND7(YKHO, mawX):
return mawX.colliderect(YKHO._collision_rect) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qee2(YKHO, lued):\n for fhZS in YKHO.obstacle_iterator():\n if lued.colliderect(fhZS.rect):\n return True\n return False",
"def CuUu(YKHO, mawX):\n Fg_i = YKHO.left() > mawX.right() or YKHO.right() < mawX.left() or YKHO.top() < mawX.bottom() or (YKHO.bottom() > mawX.top())\n ret... | [
"0.730277",
"0.6724298",
"0.6697419",
"0.65453184",
"0.6415739",
"0.63965297",
"0.6376389",
"0.6362594",
"0.62146425",
"0.6156322",
"0.614393",
"0.61296123",
"0.6116402",
"0.6114953",
"0.6092828",
"0.6074997",
"0.6062565",
"0.6056596",
"0.6054194",
"0.6039231",
"0.60241175",
... | 0.65745413 | 3 |
Returns the x coordinate. This method returns the x coordinate of the character. | def nIKw(YKHO):
return YKHO._collision_rect.x + 14 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vAgg(YKHO):\n return YKHO.position.x",
"def YH9x(YKHO):\n return YKHO.rect.x",
"def Aco_(YKHO):\n return YKHO.__pos_x",
"def p5xg(YKHO):\n return YKHO.x_coord",
"def nIKw(YKHO):\n return YKHO.posX",
"def WKvO(YKHO):\n return YKHO.position.x",
"def nIKw(YKHO):\n return YKHO.coor... | [
"0.80208147",
"0.790338",
"0.7883578",
"0.7870256",
"0.7805071",
"0.758715",
"0.7567573",
"0.75654596",
"0.7467081",
"0.73661095",
"0.73489124",
"0.73364383",
"0.732262",
"0.7291067",
"0.724748",
"0.7189719",
"0.7159587",
"0.712666",
"0.7081514",
"0.70242137",
"0.6955583",
... | 0.73150456 | 13 |
Returns the y coordinate. This method returns the y coordinate of the character. | def yDCK(YKHO):
return YKHO._collision_rect.y + 25 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BBTF(YKHO):\n return YKHO.position.y",
"def bDS1(YKHO):\n return YKHO.position.getY()",
"def bDS1(YKHO):\n return YKHO._y",
"def bDS1(YKHO):\n return YKHO.y",
"def bDS1(YKHO):\n return YKHO.y",
"def bDS1(YKHO):\n return YKHO.__y",
"def n_tS(YKHO) -> float:\n return YKHO.y_coord... | [
"0.8032946",
"0.7868",
"0.7855157",
"0.7855057",
"0.7855057",
"0.78522664",
"0.78515464",
"0.78142136",
"0.7795042",
"0.7791374",
"0.775957",
"0.77457523",
"0.77239853",
"0.77211833",
"0.7716618",
"0.77143157",
"0.7704015",
"0.76841295",
"0.767208",
"0.76286626",
"0.76092905"... | 0.7452111 | 22 |
Returns the lives. This method returns the current live count of the character. | def Nq9U(YKHO):
return YKHO._lives | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZU6l(YKHO) -> int:\n return YKHO.__state.lives()",
"def z6jr(YKHO):\n return YKHO.__lives",
"def _9It(YKHO):\n UHFx = 15\n for rdlD in YKHO.board:\n for iVRZ in rdlD:\n if iVRZ == TdVo:\n UHFx -= 1\n YKHO.lives = UHFx\n return YKHO.lives",
"d... | [
"0.75438994",
"0.7184832",
"0.6957298",
"0.6694374",
"0.6658258",
"0.6657273",
"0.6654807",
"0.6542124",
"0.6331505",
"0.63177305",
"0.63129306",
"0.6256183",
"0.6226817",
"0.6029694",
"0.5901248",
"0.586796",
"0.57940716",
"0.5735311",
"0.5733305",
"0.56925744",
"0.56839806"... | 0.57738805 | 17 |
Returns the invincible flag. This method returns if the character is invincible at the moment. | def l9JR(YKHO):
return YKHO._invincible | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kouh(YKHO):\n return YKHO._invincible",
"def VAGL(YKHO) -> bool:\n return YKHO.invul_timer != 0",
"def lrcm(YKHO, jGRS: bool):\n YKHO._invincible = jGRS\n if YKHO._invincible:\n YKHO._invincible_time = ITS7.time()",
"def hWaj(YKHO):\n return YKHO.invite_ct > 0",
"def E6a4(YKHO):\n... | [
"0.7656525",
"0.6588657",
"0.63137937",
"0.60371584",
"0.591419",
"0.591419",
"0.5842657",
"0.57927805",
"0.57826865",
"0.57741624",
"0.5744857",
"0.5685791",
"0.56763095",
"0.5623978",
"0.5610776",
"0.55723834",
"0.5566047",
"0.556545",
"0.5552466",
"0.55102605",
"0.5475462"... | 0.7825228 | 0 |
Given two integers a and b, finds their least common multiple. The least common multiple LCM(a, b) of two positive integers a and b is the least positive integer m that is divisible by both a and b. For any two positive integers a and b, LCM(a, b) GCD(a, b) = a b. Therefore, LCM(a, b) = (a b) / GCD(a, b) | def BsJX(jzdc, Fg_i):
return jzdc * Fg_i // ML2l(jzdc, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uMYb(jzdc, Fg_i):\n return jzdc * Fg_i / Bu5e(jzdc, Fg_i)",
"def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i / ML2l(jzdc, Fg_i)",
"def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)",
"def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i // d9dQ(jzdc, Fg_i)",
"def BsJX(jzdc, Fg_i):\n return... | [
"0.8782869",
"0.85283905",
"0.8509114",
"0.85059446",
"0.8486167",
"0.8486167",
"0.8486167",
"0.8486167",
"0.8486167",
"0.8486167",
"0.8486167",
"0.8486167",
"0.8486167",
"0.8473189",
"0.84652066",
"0.84428245",
"0.84285027",
"0.8406225",
"0.8405893",
"0.8405893",
"0.8405893"... | 0.8516658 | 3 |
Tests that a ValueError is raised when the wire ID validator is given a wire ID which does not exist in the circuit. | def Lm2m(YKHO, DPNn):
with trZe.raises(ValueError, match='Wire ID 4 falls outside the range \\[0, 4\\).'):
DPNn._validate_wire_ids(wire_ids=[4]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SJJH(YKHO, DPNn):\n with trZe.raises(ValueError, match='Wire ID 0 is specified more than once.'):\n DPNn._validate_wire_ids(wire_ids=[0, 0])",
"def SeKr(YKHO, DPNn):\n DPNn._wires[0].closed = True\n with trZe.raises(ValueError, match='Wire 0 is closed.'):\n DPNn._validate_wire_ids(wire... | [
"0.7399734",
"0.64560306",
"0.6391251",
"0.6233081",
"0.61214924",
"0.6034951",
"0.596639",
"0.58693725",
"0.5864796",
"0.58510524",
"0.5816543",
"0.5799251",
"0.5794194",
"0.5768328",
"0.5767905",
"0.5762057",
"0.5745894",
"0.5705201",
"0.57006115",
"0.56926525",
"0.5692062"... | 0.7833013 | 0 |
Tests that a ValueError is raised when the wire ID validator is given a wire ID associated with a closed wire. | def SeKr(YKHO, DPNn):
DPNn._wires[0].closed = True
with trZe.raises(ValueError, match='Wire 0 is closed.'):
DPNn._validate_wire_ids(wire_ids=[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lm2m(YKHO, DPNn):\n with trZe.raises(ValueError, match='Wire ID 4 falls outside the range \\\\[0, 4\\\\).'):\n DPNn._validate_wire_ids(wire_ids=[4])",
"def SJJH(YKHO, DPNn):\n with trZe.raises(ValueError, match='Wire ID 0 is specified more than once.'):\n DPNn._validate_wire_ids(wire_ids=... | [
"0.7409358",
"0.6821989",
"0.6598069",
"0.63145036",
"0.6239532",
"0.60208607",
"0.59807926",
"0.5949928",
"0.59442824",
"0.5895871",
"0.5835191",
"0.5819017",
"0.5814549",
"0.57856417",
"0.57807565",
"0.57674545",
"0.57464504",
"0.57340866",
"0.57327795",
"0.5730672",
"0.571... | 0.75784063 | 0 |
Tests that a ValueError is raised when a gate is appended to the circuit with the wrong number of wires. | def htep(YKHO, DPNn):
kUBT = 'Number of wire IDs \\(2\\) must match the number of wires connected to the gate \\(1\\).'
ewpR = ku7w.GateFactory.create('H')
with trZe.raises(ValueError, match=kUBT):
DPNn.append_gate(ewpR, wire_ids=[0, 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s97L(YKHO, DPNn):\n kUBT = 'Number of wire IDs \\\\(2\\\\) must match the number of wires connected to the state \\\\(1\\\\).'\n QTBn = ku7w.Qubit()\n with trZe.raises(ValueError, match=kUBT):\n DPNn.append_state(QTBn, wire_ids=[0, 1])",
"def Lm2m(YKHO, DPNn):\n with trZe.raises(ValueError... | [
"0.6854521",
"0.6836738",
"0.67337847",
"0.6718168",
"0.665965",
"0.64184624",
"0.6181125",
"0.6179961",
"0.6141218",
"0.6083717",
"0.6060905",
"0.5981744",
"0.59775215",
"0.59605175",
"0.5960355",
"0.595905",
"0.59514016",
"0.5939995",
"0.5939389",
"0.5934823",
"0.58973897",... | 0.7463739 | 0 |
Tests that a quantum circuit which flips a single qubit can be converted into a tensor network. | def AmVv(YKHO):
DPNn = ku7w.Circuit(num_wires=1)
DPNn.append_gate(ku7w.PauliX(), wire_ids=[0])
pWm4 = DPNn.tensor_network()
vhpA = pWm4.contract()
assert vhpA.indices == ['0-1']
assert vhpA.shape == [2]
assert vhpA.data == trZe.approx([0, 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yUVU(YKHO):\n DPNn = ku7w.Circuit(num_wires=2)\n DPNn.append_gate(ku7w.GateFactory.create('H'), wire_ids=[0])\n DPNn.append_gate(ku7w.GateFactory.create('CNOT'), wire_ids=[0, 1])\n pWm4 = DPNn.tensor_network()\n vhpA = pWm4.contract()\n assert vhpA.indices == ['0-2', '1-1']\n assert vhpA.s... | [
"0.6933007",
"0.65071034",
"0.6307535",
"0.6273592",
"0.62580836",
"0.61781937",
"0.61629564",
"0.6133837",
"0.60858136",
"0.60668755",
"0.60201436",
"0.6019835",
"0.6000448",
"0.5999736",
"0.59751964",
"0.59688",
"0.5956865",
"0.59442925",
"0.59434444",
"0.5925863",
"0.59034... | 0.7173593 | 0 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data! \n")
print('-' * 40)
j5sA = input('Enter your city \n').lower()
while j5sA not in gysO:
print("You've entered wrong city, please check you entered right city!!")
j5sA = input('Enter your city \n').lower()
print('-' * 40)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.6671077",
"0.65363395",
"0.64597565",
"0.6374352",
"0.6349016",
"0.6310872",
"0.62599736",
"0.62324905",
"0.62140554",
"0.6205851",
"0.6182028",
"0.6172251",
"0.61696005",
"0.61590976",
"0.6159067",
"0.6153877",
"0.6145122",
"0.6132135",
"0.61053854",
"0.61032546",
"0.6091... | 0.6287443 | 6 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
if x0eS != 'all':
x0eS = X_bn.index(x0eS) + 1
jQ3Z = jQ3Z[jQ3Z['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.7763616 | 43 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
sve5 = jQ3Z['month'].mode()[0]
print('Most Frequent Month is:', X_bn[sve5 - 1].title())
StUT = jQ3Z['day_of_week'].mode()[0]
print('Most Frequent Day of Week is:', StUT)
jQ3Z['Start Time'] = rLdf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583... | 0.69480705 | 100 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
Cg6R = (rLdf.to_datetime(jQ3Z['End Time']) - rLdf.to_datetime(jQ3Z['Start Time'])).sum()
jQ3Z['Total Duration'] = Cg6R
Sm0u = Cg6R.days
Wave = Cg6R.seconds // 3600
O66n = Cg6R.seconds % 3600 // 60
C6wh = Cg6R.da... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.8143788",
"0.8025597",
"0.8004826",
"0.7950089",
"0.7937902",
"0.79316837",
"0.7927231",
"0.7915687",
"0.7914976",
"0.79086065",
"0.79061425",
"0.79011726",
"0.7892046",
"0.7890013",
"0.7887204",
"0.7885618",
"0.7884607",
"0.78830457",
"0.7874646",
"0.78690827",
"0.7866999... | 0.0 | -1 |
Displays statistics on the most popular station and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Station and Trip...\n')
SWox = ITS7.time()
eEyK = jQ3Z['Start Station'].mode()[0]
print('The Most Used Start Station is {}'.format(eEyK))
V4G9 = jQ3Z['End Station'].mode()[0]
print('The Most Used End Station is {}'.format(V4G9))
jQ3Z['Tri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7856668",
"0.77058613",
"0.76310027",
"0.7573001",
"0.7546759",
"0.7512356",
"0.75078356",
"0.7478494",
"0.74707913",
"0.74231315",
"0.742215",
"0.7419298",
"0.7414002",
"0.74133426",
"0.7412281",
"0.7412267",
"0.74085104",
"0.740037",
"0.73933005",
"0.7386985",
"0.7384136... | 0.7413586 | 13 |
The IAM action to grant or revoke permissions on. | def xASv(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:
return qe4Y.get(YKHO, 'actions') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YmV_(YKHO, DHN4: aws_cdk.aws_iam.IGrantable, *xASv: str) -> lTJ4.aws_iam.Grant:\n ...",
"def zAEj(YKHO) -> lTJ4.aws_iam.IRole:\n return YKHO._values.get('action_role')",
"def XeOP(YKHO, XeOP):\n BbPm = ['DELETE', 'NONE']\n if XeOP not in BbPm:\n raise ValueError('Invalid value for `actio... | [
"0.6024496",
"0.5983584",
"0.5948987",
"0.57792735",
"0.5744172",
"0.57281816",
"0.56105244",
"0.55893177",
"0.55773",
"0.5561767",
"0.555488",
"0.5531113",
"0.5531113",
"0.5531113",
"0.5531113",
"0.5531113",
"0.5531113",
"0.5528863",
"0.5511036",
"0.54444623",
"0.5440689",
... | 0.48247457 | 74 |
The Amazon Resource Name (ARN) of the principal. This can be one of the | def AQnM(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'principal') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def AQnM(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'principal')",
"def axXk(YKHO) -> qe4... | [
"0.7072746",
"0.6928671",
"0.6928671",
"0.69080997",
"0.6905084",
"0.68264866",
"0.68264866",
"0.68264866",
"0.68264866",
"0.68264866",
"0.6810841",
"0.6810841",
"0.6810841",
"0.68082505",
"0.6734451",
"0.6734451",
"0.6734451",
"0.6734451",
"0.66793",
"0.66793",
"0.66691506",... | 0.66550356 | 23 |
The rowlevel security configuration for the dataset. | def FIMM(Ro_8, *, hMqs: pulumi.Input[str], LB0G: pulumi.Input['DataSetRowLevelPermissionPolicy'], VGJm: Optional[pulumi.Input['DataSetRowLevelPermissionFormatVersion']]=None, _63S: Optional[pulumi.Input[str]]=None, jGRS: Optional[pulumi.Input['DataSetStatus']]=None):
qe4Y.set(Ro_8, 'arn', hMqs)
qe4Y.set(Ro_8, '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mi51(YKHO) -> X1ob:\n return YKHO._security",
"def jXYd(YKHO):\n return YKHO.cloudant_database.get_security_document()",
"def P8dz(YKHO):\n return YKHO._security_entries",
"def Mi51(YKHO):\n return YKHO._security",
"def OUlW(YKHO):\n return YKHO._security_style",
"def z4L4(YKHO):\n ... | [
"0.59713185",
"0.57716787",
"0.56102043",
"0.5594016",
"0.55641913",
"0.53759253",
"0.5228762",
"0.49991766",
"0.49645537",
"0.4953094",
"0.48713434",
"0.48366454",
"0.4801516",
"0.4782204",
"0.47728473",
"0.47728473",
"0.4756237",
"0.4738713",
"0.47349328",
"0.4708833",
"0.4... | 0.4679462 | 20 |
The column name that a tag key is assigned to. | def z0q4(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'column_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GClg(YKHO):\n return YKHO.__column",
"def W0tD(YKHO):\n return YKHO.col_name",
"def z0q4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def nrF0(YKHO) -> str:\n if YKHO.is_shared():\n assert YKHO._shared_id is not None\n return YKHO._shared_id\n else:\n ... | [
"0.8030961",
"0.79194254",
"0.79128087",
"0.7381009",
"0.72073376",
"0.70881635",
"0.68607724",
"0.68607724",
"0.68247503",
"0.68247503",
"0.68197745",
"0.679339",
"0.6792754",
"0.67778975",
"0.6766317",
"0.66594696",
"0.6655805",
"0.6643536",
"0.65621233",
"0.6551131",
"0.65... | 0.7826582 | 3 |
A string that you want to use to delimit the values when you pass the values at run time. For example, you can delimit the values with a comma. | def uUqB(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'tag_multi_value_delimiter') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rvfS(YKHO, SAEY=None):\n if not SAEY:\n SAEY = YKHO.GetAttribute('Delimiter')\n if not SAEY:\n SAEY = ','\n Uqbu = YKHO.GetValue()\n if SAEY == '\"' or SAEY == \"'\":\n l5Ny = ' '.join(['%s%s%s' % (SAEY, jzdc, SAEY) for jzdc in Uqbu])\n else:\n l5Ny = ', '.joi... | [
"0.65257835",
"0.64751285",
"0.6306053",
"0.62965155",
"0.62490594",
"0.6231549",
"0.62028694",
"0.61940694",
"0.6180194",
"0.6159536",
"0.6157168",
"0.6152101",
"0.6140416",
"0.61302304",
"0.6019438",
"0.6014293",
"0.58914006",
"0.5868245",
"0.5849067",
"0.5845133",
"0.58234... | 0.5487129 | 57 |
The Amazon Elasticsearch Service domain. | def zrIJ(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'domain') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c8KR(YKHO) -> str:\n return qe4Y.get(YKHO, 'elasticsearch_service_url')",
"def zrIJ(YKHO):\n return YKHO['domain']",
"def JBsK(YKHO):\n return YKHO.domain",
"def zrIJ(YKHO):\n return YKHO._domain",
"def zrIJ(YKHO):\n return YKHO._domain",
"def zrIJ(YKHO):\n return YKHO._domain",
"... | [
"0.6927939",
"0.64867777",
"0.63882214",
"0.6367993",
"0.6367993",
"0.6367993",
"0.6325212",
"0.6325212",
"0.63138855",
"0.6242466",
"0.62301654",
"0.61762094",
"0.61403817",
"0.61301094",
"0.6115946",
"0.60959244",
"0.60959244",
"0.5974728",
"0.5969446",
"0.59646",
"0.594818... | 0.587936 | 29 |
The workgroup that Amazon Athena uses. | def cWas(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'work_group') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uOe2(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group')",
"def uOe2(YKHO) -> str:\n return qe4Y.get(YKHO, 'group')",
"def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group')",
"def vBTQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group')",
"def vBTQ(YKHO) -> qe4Y... | [
"0.6655448",
"0.6627361",
"0.6547339",
"0.6449984",
"0.6449984",
"0.6437312",
"0.6414578",
"0.6383316",
"0.6379054",
"0.6377494",
"0.63682145",
"0.6334348",
"0.6333496",
"0.63194156",
"0.63194156",
"0.63194156",
"0.63194156",
"0.63194156",
"0.63194156",
"0.63194156",
"0.63194... | 0.79905075 | 0 |
The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When CopySourceArn is not null, the credential pair from the data source in the ARN is used as the credentials for the DataSourceCredentials structure. | def BEkR(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'copy_source_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zgk0(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'event_source_arn')",
"def FIMM(Ro_8, *, BEkR: Optional[pulumi.Input[str]]=None, ubfl: Optional[pulumi.Input['DataSourceCredentialPairArgs']]=None, fFcV: Optional[pulumi.Input[str]]=None):\n if BEkR is not None:\n qe4Y.set(Ro_8, 'copy_... | [
"0.5956146",
"0.58244294",
"0.5712033",
"0.5520228",
"0.5442974",
"0.54001635",
"0.52754414",
"0.52550375",
"0.5189455",
"0.5189455",
"0.5189455",
"0.5189455",
"0.5189455",
"0.5189455",
"0.5189455",
"0.5167626",
"0.51218367",
"0.5049946",
"0.4980212",
"0.4980212",
"0.49440473... | 0.73049253 | 0 |
The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager. | def fFcV(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'secret_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fFcV(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'secret_arn')",
"def IWMy(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'aws_credentials_secret_name')",
"def EszR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_arn')",
"def qnCX(YKHO) -> str:\n return YKHO._secret_name",
... | [
"0.7862364",
"0.71168846",
"0.69094926",
"0.6817251",
"0.67641574",
"0.67295563",
"0.6725533",
"0.6725533",
"0.6725533",
"0.6725533",
"0.6725533",
"0.6725533",
"0.6725533",
"0.6590017",
"0.6470485",
"0.64622486",
"0.64622486",
"0.64580774",
"0.6416953",
"0.6416953",
"0.635145... | 0.75659275 | 2 |
The HTTP Path of the Databricks data source. | def vdM_(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'sql_endpoint_path') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD7m(YKHO) -> str:\n return YKHO.DATASET_URLS[YKHO.name]",
"def hKhs(YKHO):\n return YKHO.db_url",
"def h8Lu(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'db_url')",
"def IfqC(YKHO):\n pmON = PeOr % YKHO.from_.pid\n return 'http://%s:%s/%s' % (YKHO.host, YKHO.port, pmON)",
"def iQpJ... | [
"0.6748139",
"0.66677326",
"0.6541198",
"0.6487965",
"0.6445583",
"0.6328719",
"0.63136953",
"0.629791",
"0.62941855",
"0.62600845",
"0.62600845",
"0.6236892",
"0.61701363",
"0.6023229",
"0.6013294",
"0.60057783",
"0.60057783",
"0.59549415",
"0.59505117",
"0.5949763",
"0.5935... | 0.6807307 | 0 |
Cluster ID. This field can be blank if the Host and Port are provided. | def JvOq(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'cluster_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y... | [
"0.78050256",
"0.78050256",
"0.78050256",
"0.78050256",
"0.78050256",
"0.7747276",
"0.7747276",
"0.7478172",
"0.7448746",
"0.744796",
"0.744796",
"0.744796",
"0.744796",
"0.72174865",
"0.6688771",
"0.65523297",
"0.65523297",
"0.6549342",
"0.6549342",
"0.6549342",
"0.6549342",... | 0.78104603 | 2 |
Host. This field can be blank if ClusterId is provided. | def KcEq(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'host') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XldB(YKHO) -> str:\n return qe4Y.get(YKHO, 'host_id')",
"def InX9(YKHO):\n return 'Host:PID:' + str(YKHO.transport.pid)",
"def KcEq(YKHO) -> NPYu:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('host', M56f)\n return NPYu(GSuR)",
"def KcEq(YKHO):\n return YKHO._host",
"def KcEq(YKHO):\... | [
"0.65320975",
"0.65128714",
"0.6504529",
"0.6395003",
"0.6395003",
"0.6395003",
"0.6395003",
"0.6395003",
"0.6395003",
"0.6395003",
"0.6376436",
"0.63238275",
"0.631532",
"0.62730116",
"0.6260575",
"0.6257277",
"0.6254463",
"0.6214182",
"0.6204697",
"0.6193642",
"0.61926365",... | 0.64163285 | 4 |
The IAM action to grant or revoke permissions on. | def xASv(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:
return qe4Y.get(YKHO, 'actions') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YmV_(YKHO, DHN4: aws_cdk.aws_iam.IGrantable, *xASv: str) -> lTJ4.aws_iam.Grant:\n ...",
"def zAEj(YKHO) -> lTJ4.aws_iam.IRole:\n return YKHO._values.get('action_role')",
"def XeOP(YKHO, XeOP):\n BbPm = ['DELETE', 'NONE']\n if XeOP not in BbPm:\n raise ValueError('Invalid value for `actio... | [
"0.6024496",
"0.5983584",
"0.5948987",
"0.57792735",
"0.5744172",
"0.57281816",
"0.56105244",
"0.55893177",
"0.55773",
"0.5561767",
"0.555488",
"0.5531113",
"0.5531113",
"0.5531113",
"0.5531113",
"0.5531113",
"0.5531113",
"0.5528863",
"0.5511036",
"0.54444623",
"0.5440689",
... | 0.48247457 | 73 |
The Amazon Resource Name (ARN) of the principal. This can be one of the | def AQnM(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'principal') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def AQnM(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'principal')",
"def axXk(YKHO) -> qe4... | [
"0.7074069",
"0.6929468",
"0.6929468",
"0.69071704",
"0.69061553",
"0.68299687",
"0.68299687",
"0.68299687",
"0.68299687",
"0.68299687",
"0.6813845",
"0.6813845",
"0.6813845",
"0.681006",
"0.67352235",
"0.67352235",
"0.67352235",
"0.67352235",
"0.6679005",
"0.6679005",
"0.667... | 0.6653802 | 22 |
A Boolean option to control whether SSL should be disabled. | def a5oc(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'disable_ssl') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AaNK(YKHO):\n return YKHO._insecure_ssl",
"def i5iB(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'ssl')",
"def QG1F(YKHO) -> MH_9:\n return YKHO._org_apache_felix_https_enable",
"def fMl0(YKHO):\n return YKHO.__ssl_enabled",
"def L_1O(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YK... | [
"0.7623181",
"0.7606146",
"0.74819165",
"0.7416215",
"0.727059",
"0.72394764",
"0.72240597",
"0.71625936",
"0.71554965",
"0.70870537",
"0.70870537",
"0.70870537",
"0.70467234",
"0.7043288",
"0.7039419",
"0.7016583",
"0.7016583",
"0.69126475",
"0.68824536",
"0.68615746",
"0.68... | 0.84839267 | 0 |
The Amazon Resource Name (ARN) for the VPC connection. | def BqTF(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'vpc_connection_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _hj0(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_connector_arn')",
"def EszR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_arn')",
"def lguO(YKHO) -> str:\n ...",
"def lguO(YKHO) -> str:\n return HEOD.get(YKHO, 'bucketArn')",
"def lguO(YKHO) -> str:\n return HE... | [
"0.73539484",
"0.66186315",
"0.6425604",
"0.6423647",
"0.6423647",
"0.6378119",
"0.6136214",
"0.6136214",
"0.6136214",
"0.6136214",
"0.6136214",
"0.6136214",
"0.61335963",
"0.6131213",
"0.6122081",
"0.6112958",
"0.6112958",
"0.6112958",
"0.6112958",
"0.6112958",
"0.6112958",
... | 0.80848604 | 0 |
The day scheduled for refresh. | def FIMM(Ro_8, *, E2ep: Optional[pulumi.Input[str]]=None, y0Xp: Optional[pulumi.Input['RefreshScheduleMapScheduleFrequencyPropertiesRefreshOnDayPropertiesDayOfWeek']]=None):
if E2ep is not None:
qe4Y.set(Ro_8, 'day_of_month', E2ep)
if y0Xp is not None:
qe4Y.set(Ro_8, 'day_of_week', y0Xp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_c3(YKHO) -> h8nf[qe4Y.Input['RefreshScheduleMapScheduleFrequencyPropertiesRefreshOnDayPropertiesArgs']]:\n return qe4Y.get(YKHO, 'refresh_on_day')",
"def XEmC(YKHO):\n return int(YKHO.__get_option('refresh_period'))",
"def CXza(YKHO):\n return str(YKHO.day) if YKHO.day else '-'",
"def CjKC(YKH... | [
"0.6828935",
"0.647418",
"0.64335036",
"0.62916785",
"0.62757003",
"0.62536675",
"0.616392",
"0.611016",
"0.60861844",
"0.606615",
"0.606615",
"0.60515726",
"0.6016612",
"0.6002623",
"0.59769905",
"0.59216154",
"0.590255",
"0.5893433",
"0.58629566",
"0.5848034",
"0.58448404",... | 0.53236926 | 85 |
The Day Of Month for scheduled refresh. | def E2ep(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'day_of_month') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E2ep(YKHO):\n return YKHO.__day_of_month",
"def E2ep():\n return qcWV.date.today().day",
"def E2ep(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'day_of_month')",
"def E2ep(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'day_of_month')",
"def Oaiy(YKHO) -> h8nf[bdIy['outputs.DayRespo... | [
"0.7707862",
"0.7613374",
"0.7583899",
"0.7583899",
"0.6894733",
"0.689461",
"0.6755203",
"0.67093056",
"0.67001355",
"0.66608447",
"0.6615905",
"0.6602384",
"0.6602384",
"0.6515777",
"0.6515777",
"0.6515777",
"0.6461839",
"0.64013153",
"0.6333836",
"0.6267382",
"0.62601924",... | 0.7156502 | 4 |
The day scheduled for refresh. | def g_c3(YKHO) -> h8nf[qe4Y.Input['RefreshScheduleMapScheduleFrequencyPropertiesRefreshOnDayPropertiesArgs']]:
return qe4Y.get(YKHO, 'refresh_on_day') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XEmC(YKHO):\n return int(YKHO.__get_option('refresh_period'))",
"def CXza(YKHO):\n return str(YKHO.day) if YKHO.day else '-'",
"def CjKC(YKHO):\n try:\n return YKHO.schedule.day\n except HwIj.DoesNotExist:\n return None",
"def xJKc(YKHO):\n pass",
"def IYen(YKHO):\n retu... | [
"0.647418",
"0.64335036",
"0.62916785",
"0.62757003",
"0.62536675",
"0.616392",
"0.611016",
"0.60861844",
"0.606615",
"0.606615",
"0.60515726",
"0.6016612",
"0.6002623",
"0.59769905",
"0.59216154",
"0.590255",
"0.5893433",
"0.58629566",
"0.5848034",
"0.58448404",
"0.5844611",... | 0.6828935 | 0 |
The timezone for scheduled refresh. | def MbZJ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'time_zone') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI(YKHO):\n return YKHO._tz",
"def rIAI(YKHO):\n return YKHO._timezone",
"def rIAI(YKHO):\n return YKHO._timezone",
"def rIAI(YKHO):\n return YKHO._timezone",
"def FEXa(YKHO):\n return FXGE.timezone(YKHO.calendar.timezone)",
"def MbZJ():\n return rIAI('Etc/GMT-10')",
"def rIAI()... | [
"0.80972856",
"0.80344176",
"0.80344176",
"0.80344176",
"0.793545",
"0.79192334",
"0.7830254",
"0.77870613",
"0.7734961",
"0.76967096",
"0.76783925",
"0.7605422",
"0.7594147",
"0.75662017",
"0.7556828",
"0.75139314",
"0.7425432",
"0.7304076",
"0.72367847",
"0.72084826",
"0.70... | 0.6932986 | 24 |
An unique identifier for the refresh schedule. | def W5nB(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'schedule_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mjx6(YKHO):\n wzkt = qcWV.now()\n lgoE = wzkt.second + 60 * (wzkt.minute + 60 * (wzkt.hour + 24 * (wzkt.day + 31 * (wzkt.month + 366 * wzkt.year))))\n return 'instance' + str(lgoE)",
"def Cic3() -> str:\n wzkt = qcWV.now()\n return wzkt.strftime('%m%d%Y%H%M%S%f')",
"def id(YKHO):\n _eu6 =... | [
"0.72309506",
"0.7126533",
"0.6993511",
"0.67968726",
"0.67614174",
"0.6724264",
"0.67003465",
"0.66369903",
"0.6623119",
"0.6609948",
"0.6585341",
"0.65763015",
"0.6569544",
"0.65686643",
"0.6529642",
"0.65214",
"0.6516577",
"0.64943385",
"0.64937484",
"0.646986",
"0.6419824... | 0.67424923 | 5 |
Removes the SteamAPI_ prefix from a name. | def cXtu(mWFP):
return mWFP.partition('SteamAPI_')[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpZT(mWFP):\n return ZbWC.sub('[^0-9a-zA-Z\\\\-\\\\_]+', '_', mWFP)",
"def On4I(Emd4, Rs74):\n s2mk = Rs74.split('|')\n Aofo = ''\n for YRbF, s2mk in enumerate(s2mk):\n if YRbF > 0:\n Aofo += '|'\n Aofo += s2mk.split(':')[-1]\n return Aofo",
"def aqYU(vIwR):\n ret... | [
"0.6858332",
"0.6816422",
"0.6690248",
"0.66881835",
"0.6569286",
"0.65246564",
"0.64971155",
"0.647125",
"0.64655906",
"0.6448326",
"0.642811",
"0.6409779",
"0.6377758",
"0.631595",
"0.630828",
"0.63008916",
"0.628623",
"0.6268554",
"0.62525827",
"0.62328345",
"0.61898863",
... | 0.9013951 | 0 |
Compute cost for logistic regression using theta as the parameters. | def qua8(YKHO, q7In, EcVT, LVAh):
sSN_ = 0.0
wEsz = BfDw.sigmoid(q7In)
for YRbF in range(0, EcVT.shape[0]):
sSN_ += (LVAh[YRbF] - 1) * q7In[YRbF] + oyIN.log(wEsz[YRbF])
sSN_ = sSN_
return sSN_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sSN_(q7In, EcVT, LVAh, b0Ix):\n r8hN = len(LVAh)\n q7In = q7In.reshape((-1, 1))\n MKlR = m1Hg(oyIN.dot(EcVT, q7In))\n cntZ = 1 / r8hN * oyIN.sum(oyIN.dot(-LVAh.T, oyIN.log(MKlR)) - oyIN.dot((1 - LVAh).T, oyIN.log(1 - MKlR)), axis=0)\n CsFy = b0Ix / (2 * r8hN) * oyIN.sum(q7In[1:] ** 2)\n Oa10 ... | [
"0.79370785",
"0.7895597",
"0.77826315",
"0.77157617",
"0.77063984",
"0.76551366",
"0.76456136",
"0.7568617",
"0.7460623",
"0.74518436",
"0.74240047",
"0.7328153",
"0.7295483",
"0.72414076",
"0.7232718",
"0.7138538",
"0.71082187",
"0.7081317",
"0.707899",
"0.7068826",
"0.7061... | 0.85694146 | 0 |
Return a datetime representing the current selected date. | def SuM2(YKHO):
if not YKHO._selection:
return None
lO87, x0eS = (YKHO._date.year, YKHO._date.month)
return YKHO.datetime(lO87, x0eS, int(YKHO._selection[0])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMyW(YKHO):\n return n2Ks().today()",
"def m6Z7():\n return qcWV.datetime.today().strftime(uwaB.DATE_FORMAT)",
"def vfWh(YKHO):\n yloh = YKHO.workCalendar.selectedDate()\n qKnZ = str(yloh.toString('dd/MM/yyyy'))\n uhDs = xt6j.getDate(qKnZ)\n return uhDs",
"def B72W():\n return qcWV.d... | [
"0.7593795",
"0.7487077",
"0.7192208",
"0.6952059",
"0.6941804",
"0.6923644",
"0.68453515",
"0.6812885",
"0.6794715",
"0.6773453",
"0.67528844",
"0.6748852",
"0.674398",
"0.67234397",
"0.6689601",
"0.6637448",
"0.6609131",
"0.6597001",
"0.6590164",
"0.6588638",
"0.658004",
... | 0.6941494 | 5 |
This function will bounce the ball off a horizontal surface (not a vertical one) | def riZZ(YKHO, yk4i):
YKHO.direction = (180 - YKHO.direction) % 360
YKHO.direction -= yk4i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riZZ(YKHO):\n if YKHO.x > TVTK - YKHO.size:\n YKHO.x = 2 * (TVTK - YKHO.size) - YKHO.x\n YKHO.angle = YKHO.angle * -1\n YKHO.speed *= zwOg\n elif YKHO.x < YKHO.size:\n YKHO.x = 2 * YKHO.size - YKHO.x\n YKHO.angle = YKHO.angle * -1\n YKHO.speed *= zwOg\n if YKH... | [
"0.79389983",
"0.7752862",
"0.7560852",
"0.75099826",
"0.7218843",
"0.7192475",
"0.71663773",
"0.704917",
"0.69996685",
"0.6991321",
"0.697959",
"0.6975978",
"0.69712824",
"0.6956424",
"0.6850701",
"0.6842054",
"0.6791183",
"0.6787205",
"0.67668873",
"0.67412186",
"0.67239654... | 0.66645 | 22 |
Return the length of this vector. >>> v = ICRS([1.0, 1.0, 0.0]) >>> print(v.distance()) 1.41421 au | def Ayfi(YKHO):
return ILZY(X_iT(YKHO.position.au)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n LTIa = [PvyL(Ty9i, crs=YKHO.crs) for Ty9i in YKHO.vertices]\n TaUL = [jzdc.distance(Fg_i) for jzdc, Fg_i in zip(LTIa[:-1], LTIa[1:])]\n return sum(TaUL)",
"def u54L(YKHO) -> float:\n return oeNL.distance(YKHO.start, YKHO.end)",
"def u54L(YKHO) -> eQHC.NDArray[oyIN.float_]:\n re... | [
"0.7729525",
"0.7558571",
"0.75251544",
"0.7484685",
"0.73882675",
"0.7382802",
"0.73772055",
"0.72371733",
"0.7182606",
"0.71690214",
"0.7164337",
"0.6994425",
"0.69733137",
"0.6971549",
"0.6917565",
"0.69008744",
"0.68922746",
"0.6882692",
"0.6857539",
"0.68091285",
"0.6791... | 0.69414675 | 14 |
Compute where this Earth location was in space on a given date. | def nrOS(YKHO, lT0l):
tTpl = YKHO.ephemeris.earth(lT0l)
UCTo, pq7x = YKHO._position_and_velocity(lT0l)
a1PO = IRda(tTpl.position.au + UCTo, tTpl.velocity.au_per_d + pq7x, lT0l)
a1PO.geocentric = False
a1PO.rGCRS = UCTo
a1PO.vGCRS = pq7x
a1PO.topos = YKHO
a1PO.ephemeris = YKHO.ephemeris
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BNBO(YKHO, _c1T=None):\n IiKz = YKHO.sunset(date=_c1T)\n kxLF = YKHO.sunrise(date=IiKz)\n hgjH = IiKz + fCoM(0, (kxLF - IiKz).total_seconds() / 2.0)\n hgjH = YKHO.date_to_local(hgjH)\n return hgjH",
"def RrRR(YKHO):\n return YKHO.location.name",
"def RrRR(YKHO):\n return YKHO.setup_loc... | [
"0.65783864",
"0.6370783",
"0.595267",
"0.5951165",
"0.5771055",
"0.5768479",
"0.574938",
"0.5742815",
"0.57253826",
"0.57253826",
"0.57102215",
"0.56514406",
"0.5648563",
"0.5648563",
"0.5648563",
"0.5648563",
"0.5648563",
"0.5648563",
"0.5648563",
"0.5648563",
"0.5648563",
... | 0.0 | -1 |
Return the apparent position where this will appear in the sky. This method determines how relativity affects an image, and | def VyQZ(YKHO):
lT0l = YKHO.jd
b2vH = YKHO.position.au.copy()
LiTy = YKHO.observer
if LiTy.geocentric:
LD38 = qw7D((False,))
else:
AuYo, DgSn = eUmC(b2vH, LiTy.position.au)
LD38 = AuYo >= 0.8
psIR(b2vH, LiTy.position.au, LiTy.ephemeris, lT0l, LD38)
N6GO(b2vH, LiTy.vel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WYG5(YKHO):\n return 50",
"def lUOL(YKHO):\n Z9rn = YKHO.get_center()\n return F8C3.three_by_three(Z9rn[0], Z9rn[1])",
"def Cf7z(YKHO) -> AzJI[int, int]:\n return (YKHO.position[0] - YKHO.region.rect.x, YKHO.position[1] - YKHO.region.rect.y)",
"def Cf7z(YKHO) -> AzJI[int, int]:\n return (Y... | [
"0.6487075",
"0.62500244",
"0.6233114",
"0.6233114",
"0.61285526",
"0.6115537",
"0.61042124",
"0.6068984",
"0.6048913",
"0.60425776",
"0.6040635",
"0.60155046",
"0.5960999",
"0.59450406",
"0.5937865",
"0.5933687",
"0.5894622",
"0.58923954",
"0.5886457",
"0.58405775",
"0.58047... | 0.5718061 | 27 |
Returns the list of field names in this struct definition. The ordering of fields is not preserved. | def zJN_(YKHO):
return YKHO._keys | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FAz_(Emd4) -> x1iM:\n return list((Jyyj.name for Jyyj in nf7Q.fields(Emd4)))",
"def NSNj(YKHO):\n return YKHO._names",
"def zJN_(YKHO):\n return {im04[0] for im04 in YKHO.iter_fields()}",
"def qPqU(YKHO):\n return YKHO.__fieldNames",
"def zJN_() -> bdIy[str]:\n raise NotImplementedError"... | [
"0.82878006",
"0.81597227",
"0.8044491",
"0.80375636",
"0.80013037",
"0.79365295",
"0.7786707",
"0.7749508",
"0.7742077",
"0.7711053",
"0.7686051",
"0.7650752",
"0.7572203",
"0.7552599",
"0.7489526",
"0.7484646",
"0.73870504",
"0.73498654",
"0.7347014",
"0.73414904",
"0.73322... | 0.79053503 | 6 |
Returns the target structure definition of this reference. | def pan_(YKHO):
return YKHO._definition | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MvVt(YKHO):\n return YKHO.definition",
"def q_DO(YKHO):\n return YKHO._definition",
"def q_DO(YKHO):\n return YKHO._definition",
"def q_DO(YKHO):\n return YKHO._definition",
"def zldD(YKHO):\n return YKHO._target",
"def Kuz7(YKHO):\n return YKHO.structure",
"def q_DO(YKHO) -> qe4Y... | [
"0.65596825",
"0.65205646",
"0.63990223",
"0.63990223",
"0.628636",
"0.62558365",
"0.62109584",
"0.6207814",
"0.62034917",
"0.61827767",
"0.61812204",
"0.6143241",
"0.6143241",
"0.6143241",
"0.6143241",
"0.61338335",
"0.6109766",
"0.6099357",
"0.6099357",
"0.60923666",
"0.608... | 0.75648546 | 0 |
Check if the reference is resolved or not | def ppVb(YKHO):
if YKHO._definition is None:
tO9_ = GE5C.get_message('vapi.data.structref.not.resolved', YKHO.name)
bo34.debug(tO9_)
raise HlUQ(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pJQr(YKHO):\n if 'N' in YKHO.ref:\n return False\n else:\n return True",
"def jVIt(YKHO):\n return YKHO.__unresolvedComponents is not None",
"def L8VQ(YKHO) -> bool:\n return YKHO._target_object is not None",
"def _PBi(YKHO, rqoY):\n return True",
"def sxca(YKHO, LEXu, NArs... | [
"0.7375877",
"0.736655",
"0.7351351",
"0.71739393",
"0.6731276",
"0.6697827",
"0.6682957",
"0.6668092",
"0.6590499",
"0.64975375",
"0.64936054",
"0.6445533",
"0.64373463",
"0.62721056",
"0.62599283",
"0.6218162",
"0.62117434",
"0.61839545",
"0.6182112",
"0.6131597",
"0.612894... | 0.73201627 | 3 |
Apart from the validation checks specified in the validate method of DataDefinition class, this method does some additional checks. Since this is an OptionalValue, validation will succeed if the element value is None. If the element value is not None, validation will fail if element in the OptionalValue does not valida... | def xzCw(YKHO, BWXx):
UAju = NXGg.validate(YKHO, BWXx)
if UAju:
return UAju
if BWXx.value is None:
pass
elif BWXx.is_set():
UAju = YKHO.element_type.validate(BWXx.value)
if UAju:
tO9_ = GE5C.get_message('vapi.data.optional.validate')
return [tO9_] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VSix(YKHO, BWXx: Any) -> None:\n if not YKHO._is_nullable and BWXx is None:\n tO9_ = 'Non-nullable field cannot have None value'\n if YKHO._resolve_field_name() is not None:\n tO9_ += f\" (field name = '{YKHO._resolve_field_name()}')\"\n raise _z0A(tO9_)",
"def Jn3I(YKHO, B... | [
"0.6950646",
"0.6625702",
"0.64273924",
"0.63619816",
"0.6338633",
"0.6300556",
"0.6205431",
"0.61945575",
"0.6145354",
"0.6135071",
"0.6128928",
"0.6108875",
"0.6108875",
"0.6081401",
"0.6060048",
"0.6045035",
"0.5995266",
"0.59526455",
"0.58844376",
"0.58036214",
"0.5760312... | 0.78893626 | 0 |
Check if triangle is valid | def Yh9d(BA7i: list) -> bool:
if 0 in BA7i:
return False
if sum(BA7i[:2]) < BA7i[2] or sum([BA7i[0], BA7i[2]]) < BA7i[1] or sum(BA7i[1:]) < BA7i[0]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDtL(YKHO):\n YKHO.__assert_equals_test_case([(4, 6, 11)], 'NotATriangle')",
"def OGDK(YKHO):\n YKHO.__assert_not_equal_test_case([(4, 4, 8), (4, 5, 8)], 'NotATriangle')",
"def Ehrb(jzdc, Fg_i, Z9rn):\n jzdc, Fg_i, Z9rn = sorted([jzdc, Fg_i, Z9rn])\n return True if jzdc > abs(Fg_i - Z9rn) and j... | [
"0.7912915",
"0.7763951",
"0.737915",
"0.7302371",
"0.72741616",
"0.7211095",
"0.71129364",
"0.7094147",
"0.7047826",
"0.70209104",
"0.7017687",
"0.7011692",
"0.6970932",
"0.69038194",
"0.69032353",
"0.6899017",
"0.68607736",
"0.68443024",
"0.6828515",
"0.67982316",
"0.675844... | 0.74625057 | 2 |
Check if triangle is scalene | def z4WY(BA7i: list) -> bool:
return Yh9d(BA7i) and len(set(BA7i)) == 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ztfk(YKHO):\n YKHO.assertEqual(moLX(4, 5, 6), 'Scalene', '4,5,6 is Scalene')\n YKHO.assertEqual(moLX(6, 5, 4), 'Scalene', '6,5,4 is Scalene')\n YKHO.assertEqual(moLX(5, 4, 6), 'Scalene', '5,4,6 is Scalene')\n YKHO.assertEqual(moLX(10, 11, 12), 'Scalene', '10,11,12 is Scalene')",
"def FgHW(YKHO):\... | [
"0.7430481",
"0.71175534",
"0.6783696",
"0.6768329",
"0.67533517",
"0.6717007",
"0.6666302",
"0.660217",
"0.64858675",
"0.64797467",
"0.64449716",
"0.6442864",
"0.64312285",
"0.6422197",
"0.6403348",
"0.63783133",
"0.637417",
"0.6329534",
"0.63118273",
"0.6308857",
"0.6296189... | 0.68361163 | 2 |
Write the current epoch summary text to tensorboard. | def sHen(YKHO):
YKHO._write_text_to_tensorboard(tag='MLRun', text=YKHO._generate_epoch_text(), step=YKHO._training_iterations) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x4xo(YKHO):\n YKHO._write_text_to_tensorboard(tag='MLRun', text=YKHO._generate_run_end_text(), step=YKHO._validation_iterations if YKHO._training_iterations == 0 else YKHO._training_iterations)",
"def zdv0(YKHO):\n for AcYW, HasU in YKHO._training_summaries.items():\n YKHO._write_scalar_to_tenso... | [
"0.75044054",
"0.7380753",
"0.7129599",
"0.69459665",
"0.68921155",
"0.68886703",
"0.68288",
"0.67818093",
"0.6717844",
"0.66299486",
"0.6595157",
"0.65778697",
"0.65341544",
"0.6497247",
"0.6341723",
"0.62380105",
"0.6234283",
"0.6216354",
"0.6215422",
"0.62150705",
"0.61993... | 0.8697257 | 0 |
Write the current epoch weights histograms to tensorboard. | def Wus2(YKHO):
for g2sk, upAO in YKHO._weights.items():
YKHO._write_weight_histogram_to_tensorboard(name=f'{YKHO._Sections.WEIGHTS}/{g2sk}', weight=upAO, step=YKHO._epochs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fg8e(YKHO, mWFP: str, upAO: DLTypes.WeightType, YPaw: int):\n pass",
"def Ko0s(YKHO, qtWj):\n WJI9 = YKHO._get_writer(YKHO._train_run_name)\n with QpfX.eager_mode(), WJI9.as_default(), Yzks.always_record_summaries():\n for gEmA in YKHO.model.layers:\n for upAO in gEmA.weights:\n ... | [
"0.72961915",
"0.7213711",
"0.71149606",
"0.6782466",
"0.6682782",
"0.6663308",
"0.655283",
"0.6541244",
"0.63911843",
"0.63299906",
"0.6316944",
"0.6269461",
"0.61544704",
"0.61517924",
"0.60838366",
"0.6042814",
"0.6025663",
"0.6019615",
"0.5941379",
"0.59316427",
"0.591860... | 0.77118766 | 0 |
Write the current epoch weights statistics to tensorboard. | def JkVe(YKHO):
for g2sk, upAO in YKHO._weights.items():
YKHO._write_weight_image_to_tensorboard(name=f'{YKHO._Sections.WEIGHTS}/{g2sk}', weight=upAO, step=YKHO._epochs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q8of(YKHO):\n for dh16, _mSQ in YKHO._weights_statistics.items():\n for g2sk, Ap4Q in _mSQ.items():\n YKHO._write_scalar_to_tensorboard(name=f'{YKHO._Sections.WEIGHTS}/{g2sk}:{dh16}', value=Ap4Q[-1], step=YKHO._epochs)",
"def zdv0(YKHO):\n for AcYW, HasU in YKHO._training_summaries.it... | [
"0.787859",
"0.72606087",
"0.72280467",
"0.6903707",
"0.6897223",
"0.6839694",
"0.6806561",
"0.6684141",
"0.6590282",
"0.655129",
"0.6471296",
"0.6416018",
"0.6386048",
"0.6347983",
"0.62237746",
"0.6148527",
"0.613548",
"0.6128361",
"0.6127849",
"0.6083681",
"0.607638",
"0... | 0.6604003 | 8 |
Write the current epoch weight statistics to tensorboard. | def Q8of(YKHO):
for dh16, _mSQ in YKHO._weights_statistics.items():
for g2sk, Ap4Q in _mSQ.items():
YKHO._write_scalar_to_tensorboard(name=f'{YKHO._Sections.WEIGHTS}/{g2sk}:{dh16}', value=Ap4Q[-1], step=YKHO._epochs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ko0s(YKHO, qtWj):\n WJI9 = YKHO._get_writer(YKHO._train_run_name)\n with QpfX.eager_mode(), WJI9.as_default(), Yzks.always_record_summaries():\n for gEmA in YKHO.model.layers:\n for upAO in gEmA.weights:\n g2sk = upAO.name.replace(':', '_')\n with IPme.init... | [
"0.7187344",
"0.71168846",
"0.7091846",
"0.6841387",
"0.68072194",
"0.6633424",
"0.65917826",
"0.6538716",
"0.6525023",
"0.64637655",
"0.64495414",
"0.6420451",
"0.63753295",
"0.63381076",
"0.61671674",
"0.6118715",
"0.60602504",
"0.6056762",
"0.60536736",
"0.59599286",
"0.59... | 0.7750512 | 0 |
Function to calculate the Deviation in Tetrahedrality of the tetrahedra in the Delaunay Construct. A value closer to one signifies that the tetrahedra in question is near to the ideal. | def tZp0(Fbjb):
Chux = sum(Fbjb) / len(Fbjb)
Kt_s = 0.0
YRbF = 0
while YRbF < 5:
r845 = YRbF + 1
while r845 < 6:
Kt_s += (Fbjb[YRbF] - Fbjb[r845]) ** 2
r845 = r845 + 1
YRbF = YRbF + 1
OCOs = 15.0 * Chux ** 2
return round(float(Kt_s / OCOs), 4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JJ9u(YKHO):\n JJ9u = YKHO.kern.dK_dtheta(YKHO.dL_dKmm, YKHO.Z)\n if YKHO.has_uncertain_inputs:\n JJ9u += YKHO.kern.dpsi0_dtheta(YKHO.dL_dpsi0, YKHO.Z, YKHO.X, YKHO.X_variance)\n JJ9u += YKHO.kern.dpsi1_dtheta(YKHO.dL_dpsi1, YKHO.Z, YKHO.X, YKHO.X_variance)\n JJ9u += YKHO.kern.dpsi2_d... | [
"0.6225153",
"0.6096269",
"0.5933895",
"0.5693641",
"0.565614",
"0.5650925",
"0.56074613",
"0.55613965",
"0.55580056",
"0.55461174",
"0.55289024",
"0.55288535",
"0.55012727",
"0.5485975",
"0.54742515",
"0.54128414",
"0.5377931",
"0.53760487",
"0.53584313",
"0.5341215",
"0.528... | 0.6466657 | 0 |
Gets body from post's HTML content. | def dyAh(P1ZJ):
Ppmp = P1ZJ.find('section', {'id': 'postingbody'})
Tl7_ = {'body': ''}
if Ppmp is not None:
XaZX = (getattr(U6D_, 'text', U6D_) for U6D_ in Ppmp if not getattr(U6D_, 'attrs', None))
Tl7_['body'] = str(''.join(XaZX).strip())
return Tl7_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bToo(YKHO):\n if YKHO.body_type != 'HTML':\n return YKHO.body\n try:\n Z9JV = lHmx(YKHO.body, 'html.parser')\n except RuntimeError:\n return YKHO.body\n else:\n return Z9JV.body.text",
"def dyAh(nUCy):\n Z9JV = rKuS(open(nUCy), 'html.parser')\n TBsA = Z9JV.find('... | [
"0.74789244",
"0.72175753",
"0.721036",
"0.70023644",
"0.6894915",
"0.6888041",
"0.6792714",
"0.678816",
"0.6710232",
"0.6594182",
"0.6450804",
"0.64420563",
"0.63576674",
"0.63381356",
"0.6320232",
"0.63156754",
"0.62880784",
"0.6185732",
"0.6172415",
"0.617149",
"0.6129224"... | 0.695642 | 4 |
Test if self and `other` are equivalent. | def thHz(YKHO, Elif, mWFP, bo34, D1sU=0.0):
if not isinstance(Elif, lNLu):
bo34.debug('other is not a Vector object.')
return False
for UksD in ('x', 'y', 'z', 'r', 't'):
if not YKHO._check_equivalent(Elif, mWFP, UksD, bo34, D1sU):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T0rY(YKHO, Elif):\n return id(YKHO) == id(Elif)",
"def kJ0s(YKHO, Elif):\n return super().__eq__(Elif)",
"def aPi6(YKHO, Elif):\n ...",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return YKHO is Elif"... | [
"0.8722713",
"0.82927567",
"0.81840724",
"0.8157414",
"0.8157414",
"0.8113604",
"0.8113604",
"0.80457914",
"0.80290604",
"0.79913795",
"0.79913795",
"0.79829127",
"0.7979422",
"0.7979422",
"0.7979422",
"0.79572046",
"0.7918132",
"0.7914299",
"0.7913752",
"0.7908362",
"0.79035... | 0.0 | -1 |
Rotate about the Y axis. | def MGTr(YKHO, mghH):
if YKHO.x is None:
raise AttributeError('rotate_about_y: no X component')
if YKHO.z is None:
raise AttributeError('rotate_about_y: no Z component')
Ataq = YUNn(Y_1E(mghH))
tFNH = YhSR(Y_1E(mghH))
gb7z = YKHO.x * tFNH - YKHO.z * Ataq
YKHO.z = YKHO.z * tFNH + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VFbY(YKHO):\n return YKHO._rot_y_rad",
"def CSjm(YKHO):\n return epAf.degrees(YKHO._rot_y_rad)",
"def a60O(YKHO, YylR):\n YylR *= oyIN.pi / 180\n return YKHO.transform(oyIN.matrix([[oyIN.cos(YylR), 0, oyIN.sin(YylR)], [0, 1, 0], [-oyIN.sin(YylR), 0, oyIN.cos(YylR)]]))",
"def a60O(YKHO, YylR: ... | [
"0.76155317",
"0.7610588",
"0.74899566",
"0.73286587",
"0.72751987",
"0.72174114",
"0.7047361",
"0.69927084",
"0.68301487",
"0.6704588",
"0.6681487",
"0.6672138",
"0.66646034",
"0.66298133",
"0.6627404",
"0.6592389",
"0.6592389",
"0.6574587",
"0.65547645",
"0.64312756",
"0.64... | 0.6990377 | 8 |
Returns a 204 response code, for any server id' | def tan2(YKHO, QePW, mLXZ, QOGf):
Bv0m = tan2(QOGf)
QePW.setResponseCode(Bv0m[1])
return qQXR.dumps(Bv0m[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zrzd(tTpl):\n return (pz3A(dict(errno=0, alert='Not found.')), 204)",
"def Moau() -> bytes:\n _c1T = qcWV.datetime.now(qcWV.timezone.utc).strftime('%a, %d %b %Y %H:%M:%S GMT')\n WBPg = 'HTTP/1.1 204 No Content' + '\\r\\nDate: ' + _c1T + '\\r\\n\\r\\n'\n print(WBPg)\n return WBPg.encode(EL1e.FO... | [
"0.66891235",
"0.6668691",
"0.6567677",
"0.65348697",
"0.6408199",
"0.61418235",
"0.6119534",
"0.59477574",
"0.5918536",
"0.5828642",
"0.5751",
"0.57213086",
"0.5716951",
"0.56241953",
"0.55655724",
"0.55284053",
"0.5526982",
"0.5494396",
"0.5493324",
"0.5480996",
"0.54778534... | 0.633616 | 5 |
Find root of project. Assumes that this is a project that has been created using poetry and therefore has at least a pyproject.toml or poetry.lock file at its root | def mlYH() -> oAb3.Path:
sWmO = oAb3.Path.cwd()
while not (oAb3.Path(sWmO, 'pyproject.toml').exists() or oAb3.Path(sWmO, 'poetry.lock').exists() or oAb3.Path('/') == sWmO):
sWmO = sWmO.parent
return sWmO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L59w() -> GkAb:\n return lkbE",
"def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent",
"def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent",
"def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent",
"def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent",
"def phdL():\n return G... | [
"0.7686565",
"0.76277137",
"0.76277137",
"0.76277137",
"0.76277137",
"0.7612965",
"0.7603588",
"0.73184943",
"0.7252913",
"0.7252913",
"0.71369594",
"0.7086837",
"0.70728964",
"0.7017162",
"0.6989941",
"0.69442296",
"0.69287175",
"0.6901742",
"0.68765444",
"0.6809213",
"0.676... | 0.8345094 | 0 |
Check whether there is a pyproject.toml file. | def WsA8() -> bool:
return oAb3.Path(mlYH(), 'pyproject.toml').exists() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIGJ(Xsar: TestData) -> None:\n zZcM = Xsar.src.joinpath('pep517_setup_cfg_only')\n qv1X = SAPF(None, None)\n qv1X.source_dir = Hy7s.fspath(zZcM)\n with trZe.raises(lryA) as tTpl:\n qv1X.load_pyproject_toml()\n YXxD = tTpl.value.args[0]\n assert \"does not appear to be a Python project... | [
"0.63984954",
"0.6216204",
"0.6052389",
"0.60095394",
"0.60044986",
"0.5944357",
"0.5942831",
"0.5898408",
"0.58765316",
"0.5869062",
"0.5812681",
"0.58080417",
"0.58059883",
"0.5755952",
"0.57454455",
"0.5732133",
"0.57171494",
"0.569891",
"0.5687982",
"0.56460166",
"0.56396... | 0.90284526 | 0 |
Filter out network attributes not required for a create. | def _U9z(eVVj, QpfX):
Q1fk(eVVj, ['status', 'subnets']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w3ZS(eVVj, QpfX):\n Q1fk(eVVj, ['id', 'status', 'subnets', 'tenant_id'])",
"def BxC3(VWZy, QpfX):\n pass",
"def wB8S(YKHO, Q6kx, EdbX):\n hkS8 = {}\n for H5ew, wEf2 in Q6kx.items():\n if not H5ew in EdbX:\n hkS8[H5ew] = wEf2\n return hkS8",
"def RbLi(YKHO, LCiw: Union[Ite... | [
"0.6163237",
"0.5901298",
"0.58773476",
"0.57378006",
"0.56892425",
"0.5660168",
"0.56502974",
"0.56502974",
"0.5562711",
"0.55564475",
"0.55296284",
"0.5469728",
"0.543502",
"0.5410741",
"0.5405205",
"0.5397971",
"0.534201",
"0.53049344",
"0.52802825",
"0.5275776",
"0.525349... | 0.7409776 | 0 |
Reads the data file using pandas | def ZAQi(YKHO, Ux0P, uYDk=False):
try:
if uYDk is False:
Eorv = YKHO.s3_resource
D_dy = Eorv.Object(YKHO.bucket_name, str(YKHO.training_data_dir) + str(Ux0P))
E6jh = D_dy.get()
nPrm = rLdf.read_csv(E6jh['Body'])
return nPrm
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z",
"def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z",
"def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z",
"def Ueki(YKHO):\n YKHO.df = rLdf.read_csv(YKHO.path, encoding='ISO-8859-1')",
"def QaEZ(Ux0P):\n ... | [
"0.7775849",
"0.7775849",
"0.7775849",
"0.7660651",
"0.74783057",
"0.74608845",
"0.7337814",
"0.7337814",
"0.7330669",
"0.7330669",
"0.7308383",
"0.7278815",
"0.7278815",
"0.7250354",
"0.7182797",
"0.7178427",
"0.71462494",
"0.7130737",
"0.7116337",
"0.71077746",
"0.70906895"... | 0.0 | -1 |
Function to transform a one channel array to a three channel colored array. | def GHDS(tIbC):
RKjz = oyIN.stack((tIbC,) * 3, axis=-1)
for YRbF in range(len(tIbC)):
for r845 in range(len(tIbC[0])):
if tIbC[YRbF, r845] == 0:
RKjz[YRbF, r845] = [0, 0, 0]
if tIbC[YRbF, r845] == 1:
RKjz[YRbF, r845] = [255, 255, 255]
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B9_x(qw7D):\n Aofo = oyIN.zeros(qw7D.shape)\n for rdlD in range(Aofo.shape[0]):\n for e3Fk in range(Aofo.shape[1]):\n Aofo[rdlD][e3Fk][1] = qw7D[rdlD][e3Fk][1]\n return Aofo",
"def rIBP(ezWE):\n return [ezWE[:, :, YRbF] for YRbF in range(ezWE.shape[-1])]",
"def yXfm(qw7D, qfpW... | [
"0.70087004",
"0.6901813",
"0.68700415",
"0.6867",
"0.66483223",
"0.6638427",
"0.6575109",
"0.6572835",
"0.63465595",
"0.61537945",
"0.6123368",
"0.60442126",
"0.5945572",
"0.5871841",
"0.58643836",
"0.5853348",
"0.5841215",
"0.58404416",
"0.58298504",
"0.5798143",
"0.5788773... | 0.6383345 | 8 |
Set the text description | def uMQQ(YKHO, l5Ny):
YKHO.textDownQLabel.setText(l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yy5f(YKHO, l5Ny):\n YKHO.textDown2QLabel.setText(l5Ny)",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def rbTd(YKHO, l5Ny):\n YKHO.textEdit.setHtml(l5Ny)",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def prlj(YKHO, JBZA):\n YKHO.description = str(JBZA)",
"def AqxA(YKHO... | [
"0.7965433",
"0.7901943",
"0.788726",
"0.78599024",
"0.7815113",
"0.78052634",
"0.7795672",
"0.7744947",
"0.7672229",
"0.7637109",
"0.7625047",
"0.7625047",
"0.7625047",
"0.7625047",
"0.7621195",
"0.7618171",
"0.76074135",
"0.7566118",
"0.7488722",
"0.7488722",
"0.7488722",
... | 0.8285855 | 0 |
Set the text description | def Yy5f(YKHO, l5Ny):
YKHO.textDown2QLabel.setText(l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uMQQ(YKHO, l5Ny):\n YKHO.textDownQLabel.setText(l5Ny)",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def rbTd(YKHO, l5Ny):\n YKHO.textEdit.setHtml(l5Ny)",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def prlj(YKHO, JBZA):\n YKHO.description = str(JBZA)",
"def AqxA(YKHO,... | [
"0.8285855",
"0.7901943",
"0.788726",
"0.78599024",
"0.7815113",
"0.78052634",
"0.7795672",
"0.7744947",
"0.7672229",
"0.7637109",
"0.7625047",
"0.7625047",
"0.7625047",
"0.7625047",
"0.7621195",
"0.7618171",
"0.76074135",
"0.7566118",
"0.7488722",
"0.7488722",
"0.7488722",
... | 0.7965433 | 1 |
Preprocess the article text (title + body) removing stop words, stemming, transforming in lowercase and return the tokens of the text. | def vKnU(zFiD):
Qa8T = qXkR()
ntLm = set(di0c.words('english'))
zFiD = zFiD.lower()
zFiD = ZbWC.sub('http\\S+', '', zFiD)
zFiD = ZbWC.sub('&', '', zFiD)
zFiD = ZbWC.sub('\\d+', '', zFiD)
zFiD = ZbWC.sub('\\W', ' ', zFiD)
zFiD = zFiD.split()
zFiD = [GIN8 for GIN8 in zFiD if GIN8 no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(YKHO, l5Ny):\n return biH0.get_tokens(l5Ny)",
"def Zi4e(l5Ny):\n l5Ny = l5Ny.replace(',', '')\n l5Ny = l5Ny.replace('.', '')\n l5Ny = l5Ny.replace(\"'\", '')\n l5Ny = l5Ny.replace('\"', '')\n s2mk = [GIN8 for _dZy in N3rN(l5Ny) for GIN8 in dFss(_dZy)]\n JCyR = di0c.words('english')\... | [
"0.768005",
"0.76353693",
"0.7468833",
"0.73928475",
"0.73446375",
"0.73376334",
"0.73189825",
"0.72519547",
"0.72416055",
"0.7239954",
"0.7237164",
"0.71994245",
"0.7174329",
"0.7170102",
"0.7146017",
"0.71389693",
"0.71361256",
"0.71126467",
"0.7009391",
"0.70029086",
"0.69... | 0.0 | -1 |
Return an object of type itk.MattesMutualInformation | def bN5l(Y2eJ, BSyd, LEpz=24, Ts3t=None, **B2fa):
zy9r = 0
if isinstance(Y2eJ, tJpJ.base.Image):
zy9r = XTiz.prod(Y2eJ.shape)
dde9 = tJpJ.itk.itk_image_type(Y2eJ)
else:
zy9r = XTiz.prod(Y2eJ.GetLargestPossibleRegion().GetSize())
dde9 = Y2eJ
if isinstance(BSyd, tJpJ.base.I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aiNg(YKHO, KSnG=False):\n wRF9 = YKHO.receptor_activity_estimate(approx_prob=KSnG)\n FpgQ = YKHO.receptor_crosstalk_estimate(approx_prob=KSnG)\n return YKHO._estimate_MI_from_q_values(wRF9, FpgQ)",
"def pXUY(gx3d, nB2D, OwMi, SuZq, yYkE=None):\n if gx3d > 0:\n if yYkE is not None:\n ... | [
"0.61221486",
"0.59710157",
"0.5878559",
"0.5817122",
"0.56093544",
"0.55782276",
"0.557772",
"0.55642015",
"0.54815537",
"0.548138",
"0.54560643",
"0.54384774",
"0.54259044",
"0.54200506",
"0.5363332",
"0.5362712",
"0.5343739",
"0.53334254",
"0.5333204",
"0.5321971",
"0.5306... | 0.6126368 | 0 |
Return an object of type itk.Euler3DTransform. If initialize is True, then the fixed and moving must be medipy.base.Image. The value of moments indicates wether momentsbased or geometrybased initialization is performed. | def JdnU(uIcm=False, Y2eJ=None, khQ6=True):
SZFh = eZaJ.Euler3DTransform[eZaJ.D].New()
if uIcm:
V52_ = tJpJ.itk.medipy_image_to_itk_image(Y2eJ, False)
OkCB = V52_.GetLargestPossibleRegion().GetIndex()
Rczv = V52_.GetLargestPossibleRegion().GetSize()
EQtv = (int(OkCB[0] + Rczv[0] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def awBS(uIcm=False, Y2eJ=None, khQ6=True):\n SZFh = eZaJ.AffineTransform[eZaJ.D, Y2eJ.ndim].New()\n if uIcm:\n V52_ = tJpJ.itk.medipy_image_to_itk_image(Y2eJ, False)\n OkCB = V52_.GetLargestPossibleRegion().GetIndex()\n Rczv = V52_.GetLargestPossibleRegion().GetSize()\n EQtv = (i... | [
"0.6390018",
"0.55947506",
"0.54429406",
"0.5408161",
"0.53750986",
"0.5283284",
"0.52396065",
"0.5225955",
"0.5191156",
"0.5174126",
"0.5159437",
"0.515186",
"0.5150101",
"0.5064727",
"0.5035468",
"0.49454072",
"0.49423203",
"0.49396285",
"0.4927384",
"0.4886816",
"0.4877381... | 0.82055116 | 0 |
Retrun an object of type itk.RegularStepGradientDescentOptimizer | def h6nc(SZFh, wYMp=0.2, QWyc=0.001, CoQy=300, fafT=0.8, m_03=None):
K0do = eZaJ.RegularStepGradientDescentOptimizer.New()
K0do.MinimizeOn()
K0do.SetMaximumStepLength(wYMp)
K0do.SetMinimumStepLength(QWyc)
K0do.SetNumberOfIterations(CoQy)
K0do.SetRelaxationFactor(fafT)
if m_03 is not None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qeKj(GPtr=None, Aak1=None):\n b0Ix = GPtr['learning_rate']\n _U64 = ZylS.train.GradientDescentOptimizer(b0Ix)\n return _U64",
"def ErKr(YKHO, Aak1):\n K0do = ZylS.train.AdamOptimizer(YKHO.__learning_rate)\n return K0do",
"def iw5F(YKHO):\n raise NotImplementedError",
"def OP2O(YKHO, YRb... | [
"0.6662196",
"0.6359438",
"0.6074853",
"0.6012541",
"0.6006215",
"0.5985591",
"0.59345776",
"0.5856308",
"0.58561736",
"0.5848436",
"0.57937086",
"0.57730895",
"0.5747753",
"0.5746218",
"0.5729249",
"0.5722781",
"0.571616",
"0.57158387",
"0.5709391",
"0.5706607",
"0.56981415"... | 0.6224375 | 2 |
Initializes a TeekoPlayer object by randomly selecting red or black as its piece color. | def FIMM(YKHO):
YKHO.my_piece = tuKI.choice(YKHO.pieces)
YKHO.opp = YKHO.pieces[0] if YKHO.my_piece == YKHO.pieces[1] else YKHO.pieces[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, qfpW):\n YKHO.id = q8RS.PIECE_ID\n YKHO.crowned = False\n YKHO.color = qfpW\n q8RS.PIECE_ID += 1",
"def FIMM(YKHO, OfK8):\n YKHO.colour = OfK8\n YKHO.name = 'Player'",
"def zKSL(YKHO):\n Mkmy = tuKI.randrange(1, 255)\n Oa1e = tuKI.randrange(1, 255)\n Fg_i = tuKI.randra... | [
"0.6459741",
"0.6420424",
"0.64024836",
"0.63747764",
"0.62974155",
"0.6232123",
"0.62234735",
"0.6195422",
"0.6195422",
"0.60699993",
"0.6066465",
"0.60413754",
"0.60352397",
"0.6031672",
"0.6020379",
"0.599743",
"0.59968346",
"0.59959275",
"0.5988636",
"0.59838605",
"0.5972... | 0.6149699 | 9 |
Create a random 64bit unsigned long. | def cgbt():
return tuKI.getrandbits(64) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dKMo():\n return OhMr(tuKI.randint(0, 2 ** 64 - 1))",
"def mr5T():\n return tuKI.randint(0, uwaB.UINT64_MAX)",
"def inDF():\n return (Swre(jry1(rU7A(7)), 16) >> 3) * 2 ** (-53)",
"def F_Xd():\n return jry1(Hy7s.urandom(24)).decode()",
"def Vwbk() -> int:\n return qxeD.uuid1().int >> 64",... | [
"0.70864767",
"0.64895475",
"0.6479981",
"0.6473861",
"0.646384",
"0.64530855",
"0.62532324",
"0.6214184",
"0.61601347",
"0.61029345",
"0.6088484",
"0.60285187",
"0.60101676",
"0.59885985",
"0.5974776",
"0.5973437",
"0.5919605",
"0.59121567",
"0.58437043",
"0.58383954",
"0.58... | 0.616994 | 8 |
Split input_image channels and return only the green channel | def FC_D(d6hw):
return d6hw[:, :, 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P6GM(LNo8):\n jJRQ = LNo8[:, :, 0]\n FC_D = LNo8[:, :, 1]\n Ludk = LNo8[:, :, 2]\n return (jJRQ, FC_D, Ludk)",
"def FC_D(VXjJ):\n jlxe = oyIN.zeros(VXjJ.shape, dtype=float)\n jlxe[:, :, 1] = oyIN.copy(VXjJ[:, :, 1])\n return jlxe",
"def XSLc(C7_O):\n Z5Q9, jlxe, pPPK = VXjJ.split()\... | [
"0.78634256",
"0.7284566",
"0.7073703",
"0.6762714",
"0.6619386",
"0.65729517",
"0.6550677",
"0.6550677",
"0.64550775",
"0.64519364",
"0.6436186",
"0.64163595",
"0.6353538",
"0.6353538",
"0.63453937",
"0.622314",
"0.6195948",
"0.61760736",
"0.6170904",
"0.61632556",
"0.606557... | 0.8281006 | 0 |
Cut off randomly part of the top and bottom of input_image and reshape it to the original dimensions | def Dy9L(d6hw):
H2v2 = d6hw.shape[0]
TVTK = d6hw.shape[1]
PY12 = d6hw.dtype
tlxW = int(oyIN.random.uniform(0.325, 0.425) * H2v2)
es2x = int(oyIN.random.uniform(0.075, 0.175) * H2v2)
d6hw = d6hw[tlxW:-es2x, :]
VXjJ = hnIv.fromarray(d6hw)
VXjJ = VXjJ.resize((TVTK, H2v2), hnIv.LANCZOS)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yS5P(YKHO, VXjJ, a6Jb):\n yzQ0, MKlR = VXjJ.size\n idx7, q53Q = a6Jb\n if yzQ0 == q53Q and MKlR == idx7:\n return (0, 0, MKlR, yzQ0)\n YRbF = tuKI.randint(0, MKlR - idx7)\n r845 = tuKI.randint(0, yzQ0 - q53Q)\n return (YRbF, r845, idx7, q53Q)",
"def NAnm(VXjJ):\n EZd9 = min(VXjJ.s... | [
"0.66582704",
"0.6609253",
"0.6582989",
"0.65746564",
"0.6558829",
"0.6496972",
"0.6394478",
"0.63857466",
"0.6382927",
"0.6363086",
"0.63624793",
"0.6353855",
"0.63457674",
"0.6325388",
"0.63077796",
"0.6299848",
"0.62816364",
"0.62275195",
"0.6227163",
"0.62142",
"0.6204052... | 0.68733716 | 0 |
Blur input_image with a Gaussian convolution | def xsYF(d6hw, Ot1W=5):
jUwU = XC5k.GaussianBlur(d6hw, (Ot1W, Ot1W), 0)
return jUwU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IgYM(YKHO, VXjJ, Ot1W=3):\n return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0)",
"def SAUh(cj2z: np.ndarray, Ot1W: np.ndarray) -> oyIN.ndarray:\n zNig = Ot1W[0]\n WTkW = 1\n WKvO, LVAh = oyIN.mgrid[-zNig:zNig + 1, -zNig:zNig + 1]\n mhAC = 1 / (2.0 * oyIN.pi * WTkW ** 2)\n Oa1e = oyIN.exp(-((WK... | [
"0.8089824",
"0.79220146",
"0.7907814",
"0.78579783",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.78252",
"0.7788145",
"0.7707945",
"0.77043325",
"0.7691285",
... | 0.77550554 | 20 |
Creates a string representation of minutes and seconds from the given time. | def scnb(ITS7):
eRPr = ITS7 // 60
lcOE = ITS7 % 60
ejIZ = ''
if eRPr < 10:
ejIZ += ' '
elif eRPr < 100:
ejIZ += ' '
ejIZ += '%dm ' % eRPr
if lcOE < 10:
ejIZ += ' '
ejIZ += '%ds' % lcOE
return ejIZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ct8j(YKHO, ITS7):\n Wave = ITS7 // 3600\n ITS7 = ITS7 - Wave * 3600\n O66n = ITS7 // 60\n C6wh = ITS7 - O66n * 60\n return '%d:%d:%d' % (Wave, O66n, C6wh)",
"def ejIZ(O66n):\n if O66n < 60:\n return '{} minute{}'.format(O66n, '' if O66n == 1 else 's')\n else:\n Wave = O66n ... | [
"0.75801",
"0.7148438",
"0.71150726",
"0.7083532",
"0.70771515",
"0.7058532",
"0.7001111",
"0.6904223",
"0.68835086",
"0.6838333",
"0.6832209",
"0.6824194",
"0.678623",
"0.6782694",
"0.6713535",
"0.6703341",
"0.6687926",
"0.66826063",
"0.6668589",
"0.6667183",
"0.6659665",
... | 0.78954464 | 0 |
Join a group in which you are not a member. | def TfoT(*, hE03: uuid.UUID, _E99: Optional[ParsedIdentity], QePW: bool, _ZMm: LoginManager):
uagC = _ZMm.get_auth_client()
M0BM = _ZMm.get_groups_client()
XeOP = 'request_join' if QePW else 'join'
if _E99:
tOvq = uagC.maybe_lookup_identity_id(_E99.value)
if not tOvq:
raise k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBrL(YKHO, uOe2):\n if not YKHO.in_group(uOe2):\n YKHO.secondary_groups.append(uOe2)\n return YKHO",
"async def join(YKHO, Bnkd):\n if YKHO.group != None:\n if YKHO.group.gid == Bnkd:\n raise Bx6I.ClientError('IN_GROUP')\n if Bnkd and (not SLdk.validate_string(Bnkd)):... | [
"0.6366197",
"0.63007146",
"0.6231125",
"0.61739105",
"0.61373067",
"0.61092645",
"0.59598553",
"0.59439266",
"0.5920629",
"0.5877869",
"0.5869052",
"0.5794663",
"0.576797",
"0.57455814",
"0.57422316",
"0.5741413",
"0.569075",
"0.5616445",
"0.5600026",
"0.55784506",
"0.557164... | 0.5644763 | 17 |
Construct a DataLoader instance | def FIMM(YKHO, ipP0='', Hfbj=None):
YKHO.id_prefix = ipP0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rHzL(YKHO, **B2fa):\n return pVAc(YKHO, **B2fa)",
"def FIMM(YKHO, **B2fa):\n pVAc.__init__(YKHO, **B2fa)",
"def FIMM(YKHO, **B2fa):\n pVAc.__init__(YKHO, **B2fa)\n YKHO._results_ = None",
"def KmTC(YKHO, nPrm, **B2fa):\n if nPrm is None:\n return None\n GPtr = {**YKHO.config['tra... | [
"0.8182849",
"0.7986711",
"0.76008606",
"0.75618577",
"0.74605215",
"0.74464846",
"0.74454254",
"0.74234617",
"0.73894024",
"0.731747",
"0.7315038",
"0.7259584",
"0.7220424",
"0.7215782",
"0.716769",
"0.7136377",
"0.70992565",
"0.70815575",
"0.70655906",
"0.70523274",
"0.7041... | 0.0 | -1 |
Add BERT tokens, attention masks and padding of the input text to sample. | def _lYl(YKHO, mvm2):
g4y1 = YKHO._tokenizer.encode_plus(mvm2['text'], add_special_tokens=True, max_length=YKHO._max_text_length, padding='max_length', truncation=True, return_attention_mask=True)
mvm2['text_tokenized'] = g4y1['input_ids']
mvm2['text_attention_mask'] = g4y1['attention_mask']
g4y1 = YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w6wK(YKHO, mvm2):\n g4y1 = YKHO._tokenizer.encode_plus(text=mvm2['text'], text_pair=mvm2['item_name'], add_special_tokens=True, max_length=YKHO._max_text_length, padding='max_length', truncation=True, return_attention_mask=True)\n mvm2['text_and_mention_tokenized'] = g4y1['input_ids']\n mvm2['text_and... | [
"0.70163286",
"0.6117736",
"0.6046797",
"0.5811368",
"0.57960486",
"0.57605207",
"0.5606701",
"0.5562219",
"0.5516331",
"0.5497761",
"0.54812765",
"0.54549044",
"0.5452276",
"0.5440272",
"0.54381686",
"0.54370797",
"0.54187596",
"0.5395939",
"0.53944826",
"0.5384646",
"0.5360... | 0.7249845 | 0 |
Return all elements (if any) in the List after the given value. Raises ValueError if multiple matches are found. | def DOuq(YKHO, BWXx: Any) -> x1iM:
hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=True)
return type(YKHO.parent)() if not hHld else type(YKHO.parent)(YKHO.parent[hHld[0] + 1:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i5iU(YKHO, BWXx: Any) -> x1iM:\n hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=False)\n return type(YKHO.parent)() if not hHld else type(YKHO.parent)(YKHO.parent[hHld[0] + 1:])",
"def Pw3N(yv6U, hGN5):\n if hGN5 not in yv6U:\n return yv6U\n YRbF = yv6U.index(hGN5) + 1\n ret... | [
"0.6628517",
"0.6498769",
"0.64955515",
"0.632073",
"0.6288756",
"0.62235457",
"0.61650926",
"0.58965576",
"0.58473283",
"0.5644072",
"0.5584421",
"0.55153906",
"0.5439314",
"0.537073",
"0.5294268",
"0.5263151",
"0.52019984",
"0.5114767",
"0.5104634",
"0.508398",
"0.5001553",... | 0.6662767 | 0 |
Return all elements (if any) in the List after the first instance of the given value. | def i5iU(YKHO, BWXx: Any) -> x1iM:
hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=False)
return type(YKHO.parent)() if not hHld else type(YKHO.parent)(YKHO.parent[hHld[0] + 1:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aHvI(YKHO, BWXx: Any) -> x1iM:\n hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=False)\n return type(YKHO.parent)() if not hHld else type(YKHO.parent)(YKHO.parent[:hHld[0] + 1])",
"def ZsYj(YKHO, BWXx: Any) -> x1iM:\n hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=True)\n ... | [
"0.71894765",
"0.69087934",
"0.68971527",
"0.6862926",
"0.6801699",
"0.6733945",
"0.64581436",
"0.6382424",
"0.6287358",
"0.6282072",
"0.61528593",
"0.6034938",
"0.60243404",
"0.59773815",
"0.59578544",
"0.5947204",
"0.5894391",
"0.5863618",
"0.5799248",
"0.57785404",
"0.5735... | 0.7423569 | 0 |
Return all elements (if any) in the List until the given value, including itself. Raises ValueError if multiple matches are found. | def ZsYj(YKHO, BWXx: Any) -> x1iM:
hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=True)
return type(YKHO.parent)() if not hHld else type(YKHO.parent)(YKHO.parent[:hHld[0] + 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aHvI(YKHO, BWXx: Any) -> x1iM:\n hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=False)\n return type(YKHO.parent)() if not hHld else type(YKHO.parent)(YKHO.parent[:hHld[0] + 1])",
"def qMWe(YKHO, BWXx: Any) -> x1iM:\n hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=False)\n ... | [
"0.71134514",
"0.63509667",
"0.6172609",
"0.58191687",
"0.5671673",
"0.56686366",
"0.5563154",
"0.55431",
"0.553699",
"0.5485952",
"0.54493546",
"0.5428286",
"0.5377651",
"0.5370145",
"0.5365954",
"0.53459316",
"0.52811795",
"0.52800894",
"0.5237043",
"0.52339774",
"0.5225725... | 0.7537045 | 0 |
Return all elements (if any) in the List until the first instance of the given value (including itself). | def aHvI(YKHO, BWXx: Any) -> x1iM:
hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=False)
return type(YKHO.parent)() if not hHld else type(YKHO.parent)(YKHO.parent[:hHld[0] + 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZsYj(YKHO, BWXx: Any) -> x1iM:\n hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=True)\n return type(YKHO.parent)() if not hHld else type(YKHO.parent)(YKHO.parent[:hHld[0] + 1])",
"def i5iU(YKHO, BWXx: Any) -> x1iM:\n hHld = YKHO._slice_helper(BWXx, multiple_matches_forbidden=False)\n ... | [
"0.7503036",
"0.6682409",
"0.65420246",
"0.6454493",
"0.62613744",
"0.62120116",
"0.61201507",
"0.6069243",
"0.6051372",
"0.5902285",
"0.58878857",
"0.5882214",
"0.5865108",
"0.5856516",
"0.5723749",
"0.5709245",
"0.5685299",
"0.56652063",
"0.5643091",
"0.5635964",
"0.5607801... | 0.771976 | 0 |
Same as list.append(), but returns self and thus allows chaining. | def SStx(YKHO, ZfUD: Any) -> cWhJ:
super().append(ZfUD)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(YKHO, *qIxc):\n return _VfD.ListOf_append(YKHO, *qIxc)",
"def SStx(YKHO, BWXx):\n YKHO.__list += [BWXx]\n return YKHO.__list",
"def SStx(YKHO, VQ6Z):\n return YKHO.add(VQ6Z)",
"def RY8n(YKHO, *qIxc):\n return _VfD.ListOf_appendFrom(YKHO, *qIxc)",
"def SStx(YKHO, ZfUD):\n try:\n ... | [
"0.7793487",
"0.7477305",
"0.72566026",
"0.7142567",
"0.6872121",
"0.67923886",
"0.67827463",
"0.67686456",
"0.6729563",
"0.6714961",
"0.6632728",
"0.66069674",
"0.6594593",
"0.65648603",
"0.6553785",
"0.65537816",
"0.64927447",
"0.6472972",
"0.6459722",
"0.6456689",
"0.64079... | 0.7555611 | 1 |
Same as list.extend(), but returns self and thus allows chaining. | def FJj_(YKHO, ZfUD: Any) -> cWhJ:
super().extend(ZfUD)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def maLZ(yv6U, DumB):\n if yv6U is None:\n return list(DumB)\n else:\n yv6U.extend(DumB)\n return yv6U",
"def FJj_(YKHO, DumB):\n return list.extend(YKHO, YKHO._refs(DumB))",
"def FJj_(YKHO, DumB):\n for ZfUD in DumB:\n YKHO.append(ZfUD)",
"def FJj_(YKHO, OxJJ):\n YKHO.... | [
"0.74607843",
"0.7273891",
"0.7092229",
"0.70536894",
"0.70169026",
"0.69401026",
"0.68390185",
"0.6815908",
"0.6694044",
"0.66721934",
"0.6619608",
"0.6593652",
"0.6578073",
"0.6561644",
"0.65457165",
"0.6541929",
"0.64328",
"0.64272773",
"0.64108014",
"0.64085793",
"0.63429... | 0.7836899 | 0 |
Same as list.insert(), but returns self and thus allows chaining. | def JPHp(YKHO, d6pt: int, ZfUD: Any) -> cWhJ:
super().insert(d6pt, ZfUD)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, *qIxc):\n return _VfD.ListOf_insert(YKHO, *qIxc)",
"def JPHp(YKHO, d6pt, ZfUD):\n return list.insert(YKHO, d6pt, YKHO.ref(ZfUD))",
"def JPHp(YKHO, *jzdc):\n return YKHO.stack.insert(*jzdc)",
"def JPHp(YKHO, d6pt, BWXx):\n YKHO.__validate_index(d6pt)\n YKHO.__list = YKHO.__list[:... | [
"0.7182341",
"0.7056873",
"0.6722274",
"0.666025",
"0.65120107",
"0.6464783",
"0.643192",
"0.6425117",
"0.6408613",
"0.63987815",
"0.6346241",
"0.63191396",
"0.62735695",
"0.62469363",
"0.6181347",
"0.61659217",
"0.6154132",
"0.61498445",
"0.61323017",
"0.61244565",
"0.607926... | 0.73483765 | 0 |
Same as list.sort(), but returns self and thus allows chaining. | def BA9O(YKHO, *qIxc: Any, **B2fa: Any) -> cWhJ:
super().sort(*qIxc, **B2fa)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sjca(YKHO, bCES):\n bCES.sort()",
"def BA9O(YKHO, *qIxc, **PECO):\n list.sort(YKHO, *qIxc, **PECO)\n YKHO.emit('modified')",
"def BA9O(YKHO, QKm6):\n YKHO.quicksort(QKm6, 0, QKm6.count - 1)\n return QKm6",
"def ygtv(YKHO, qnba, kS1Y, QoB4, BSyx=False):\n if kS1Y != 0:\n qnba = [(... | [
"0.698652",
"0.6864875",
"0.6466243",
"0.64515364",
"0.6287095",
"0.6252412",
"0.62099224",
"0.6191247",
"0.6172524",
"0.6144833",
"0.6121214",
"0.61002105",
"0.60807556",
"0.6005992",
"0.6000834",
"0.59578997",
"0.5928604",
"0.5904146",
"0.58778435",
"0.58771586",
"0.5802938... | 0.7906905 | 0 |