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 |
|---|---|---|---|---|---|---|
Returns the subnets that the remote peer should route to this peer | def QGnq(YKHO):
return vrEl('AllowedIPs', YKHO._peer.allowed_ips) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Output[bdIy[str]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Output[bdIy[str]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get... | [
"0.73930836",
"0.7311778",
"0.7311778",
"0.71330506",
"0.70572346",
"0.70293474",
"0.6949283",
"0.6912506",
"0.6805927",
"0.67589325",
"0.66970825",
"0.65697587",
"0.6564543",
"0.6564543",
"0.6379604",
"0.62316245",
"0.61608213",
"0.61302614",
"0.6058368",
"0.6019482",
"0.601... | 0.0 | -1 |
Returns the PostUp settings of the given peer for the config file | def RKeG(YKHO):
return szLn('PostUp', YKHO._peer.post_up) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJut(YKHO):\n nPrm = ['[Peer]']\n for ZfUD in eQyE:\n BWXx = getattr(YKHO, ZfUD, None)\n if BWXx:\n nPrm.append(BWXx)\n return '\\n'.join(nPrm)",
"def v083():\n o5Dc, _Fei = GPtr.get_self_config(YASN, PBLf.SettingsCfg, store_last_good=True)\n _Fei = _Fei or PBLf.Settin... | [
"0.5822991",
"0.5461309",
"0.53176457",
"0.51256543",
"0.50912094",
"0.5023897",
"0.5015351",
"0.49724978",
"0.49553242",
"0.49315155",
"0.4930243",
"0.49047458",
"0.48971367",
"0.48672646",
"0.4863753",
"0.4856097",
"0.4846302",
"0.48128012",
"0.47966596",
"0.47933033",
"0.4... | 0.0 | -1 |
Returns the PostDown settings of the given peer for the config file | def ixLB(YKHO):
return szLn('PostDown', YKHO._peer.post_down) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJut(YKHO):\n nPrm = ['[Peer]']\n for ZfUD in eQyE:\n BWXx = getattr(YKHO, ZfUD, None)\n if BWXx:\n nPrm.append(BWXx)\n return '\\n'.join(nPrm)",
"def v083():\n o5Dc, _Fei = GPtr.get_self_config(YASN, PBLf.SettingsCfg, store_last_good=True)\n _Fei = _Fei or PBLf.Settin... | [
"0.5796878",
"0.5648285",
"0.5428934",
"0.52536035",
"0.5247753",
"0.5177034",
"0.5162557",
"0.51596415",
"0.51302874",
"0.5104081",
"0.50998104",
"0.5095664",
"0.50832874",
"0.50761133",
"0.5043017",
"0.5023003",
"0.49949503",
"0.49917412",
"0.4942007",
"0.49409255",
"0.4919... | 0.0 | -1 |
Returns the SaveConfig for this peer | def LHWC(YKHO):
BWXx = 'true' if YKHO._peer.save_config else 'false'
return f'SaveConfig = {BWXx}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wVK7(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('saved_config'), B2fa)",
"def xkzz(YKHO):\n with open(YKHO._CONFIG_FILE_PATH, 'w') as Nu1S:\n qQXR.dump(vars(YKHO), Nu1S)\n return YKHO._CONFIG_FILE_PATH",
"def LHWC(YKHO):\n return YKHO.perform_action('/mgmtd/db/sav... | [
"0.7084808",
"0.67578864",
"0.6601597",
"0.6295522",
"0.6275811",
"0.6173311",
"0.6140448",
"0.60871625",
"0.6083134",
"0.6066799",
"0.606647",
"0.60254496",
"0.6022039",
"0.59883076",
"0.59839165",
"0.5972283",
"0.59318954",
"0.5921023",
"0.59064406",
"0.59064406",
"0.588726... | 0.68601465 | 1 |
Returns the Address for this peer | def UTX6(YKHO):
return f'Address = {YKHO._peer.address}/{YKHO._peer.address.max_prefixlen}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vAkW(YKHO):\n return YKHO._addr",
"def vAkW(YKHO):\n return YKHO._addr",
"def vAkW(YKHO):\n if YKHO._addr == None:\n return YKHO._socket.getpeername()\n return YKHO._addr",
"def vAkW(YKHO):\n if YKHO.address:\n return YKHO.address",
"def vAkW(YKHO):\n return YKHO.get_ipv... | [
"0.85601544",
"0.85601544",
"0.8172367",
"0.80737",
"0.80052894",
"0.7927694",
"0.79177886",
"0.78416497",
"0.78416497",
"0.78416497",
"0.78416497",
"0.78416497",
"0.783187",
"0.782944",
"0.7754805",
"0.7667694",
"0.7642996",
"0.7642996",
"0.7598375",
"0.7578284",
"0.757777",... | 0.71210897 | 37 |
Returns the Peer section for use in a remote peer's config file | def BJut(YKHO):
nPrm = ['[Peer]']
for ZfUD in eQyE:
BWXx = getattr(YKHO, ZfUD, None)
if BWXx:
nPrm.append(BWXx)
return '\n'.join(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jYLz(NNqz):\n return WsL5.jsonify(PoTN.get_peer_conf_and_state(NNqz))",
"def q7NA(YKHO):\n return 'Peer:PID:' + str(YKHO.transport.pid)",
"def jqTg(YKHO):\n return f'{YKHO._peer.interface}-peers.conf'",
"def jYLz(YKHO) -> str:\n return '{0.host}:{0.port}'.format(YKHO.transport.getPeer())",
... | [
"0.6302188",
"0.6148711",
"0.60883296",
"0.59773165",
"0.5938544",
"0.58513695",
"0.5821101",
"0.5688229",
"0.56733257",
"0.56665057",
"0.56661606",
"0.56523305",
"0.56483495",
"0.5587746",
"0.55737203",
"0.5569893",
"0.5556802",
"0.55402845",
"0.5525344",
"0.5453505",
"0.544... | 0.7169396 | 0 |
Returns the full WireGuard config | def UqZV(YKHO):
return f'\n{YKHO.interface}\n\n{YKHO.peers}\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UIm1(YKHO):\n return YKHO._read_config()",
"def GPtr():\n return viqz",
"def tgzD():\n return X8Rg",
"def tgzD():\n return viqz",
"def GPtr(YKHO):\n return YKHO._config",
"def tgzD(YKHO):\n return YKHO.config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n r... | [
"0.7619931",
"0.7295114",
"0.72525537",
"0.72013766",
"0.7126061",
"0.7118523",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
"0.70911914",
... | 0.0 | -1 |
Returns a QR Code of this peer's configuration | def iAwD(YKHO):
if not oTzH:
raise AttributeError('QR Code functionality is not enabled. Please add the qrcode library to this environment')
return iAwD.make(YKHO.local_config) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jOpO(YKHO):\n uPxI = 'bitcoin:{to_address}?amount={amount}&label={label}'\n U5Jc = uPxI.format(to_address=YKHO.to_address, amount=YKHO.amount_btc, label=uRlK.parse.urlencode({'label': '{site}:{project_code}'.format(site=YKHO.site.domain, project_code=YKHO.project_code)})[6:])\n jOpO = iAwD.make(U5Jc, ... | [
"0.7186193",
"0.64163977",
"0.62395495",
"0.62290925",
"0.596935",
"0.56104034",
"0.5526844",
"0.5444192",
"0.54266",
"0.5419251",
"0.5399148",
"0.5389545",
"0.5374013",
"0.53545994",
"0.52988607",
"0.5249205",
"0.5175898",
"0.51248837",
"0.5104361",
"0.50888526",
"0.50857466... | 0.7279608 | 0 |
Returns the file name of the WireGuard config file | def Ux0P(YKHO):
return f'{YKHO._peer.interface}.conf' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _NTK(YKHO):\n return YKHO._config_file_name",
"def ayhn(YKHO):\n return YKHO.name() + '.py'",
"def rn2x(YKHO):\n return YKHO._configFileName",
"def FgkN(YKHO):\n E0cB = HwRy.argv\n Xf8z = 'dev'\n if None != E0cB and len(E0cB) > 1:\n Xf8z = E0cB[1]\n Nu1S = Xf8z + '.cfg'\n b... | [
"0.7892473",
"0.76238227",
"0.7463568",
"0.7424596",
"0.72816926",
"0.70907086",
"0.6970926",
"0.6929305",
"0.68907595",
"0.68628234",
"0.68490136",
"0.68453705",
"0.6806996",
"0.67837393",
"0.67750645",
"0.6746759",
"0.66901654",
"0.661482",
"0.65863305",
"0.65788066",
"0.65... | 0.71039367 | 5 |
Returns the Address for this Server | def UTX6(YKHO):
return f'Address = {YKHO._peer.address}/{YKHO._peer.subnet.prefixlen}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ermL(YKHO):\n return YKHO._server_address",
"def vAkW(YKHO):\n if YKHO._addr == None:\n return YKHO._socket.getpeername()\n return YKHO._addr",
"def _gTC(YKHO):\n return NnkB.t_addresses.get(T6FA.get_ident())",
"def vAkW(YKHO):\n return YKHO._addr",
"def vAkW(YKHO):\n return YK... | [
"0.8497895",
"0.8230755",
"0.80186725",
"0.80040604",
"0.80040604",
"0.79717636",
"0.7825209",
"0.7794908",
"0.7702242",
"0.769588",
"0.76614803",
"0.76614803",
"0.7639086",
"0.76330775",
"0.7628873",
"0.7623443",
"0.75694287",
"0.7476213",
"0.7476213",
"0.7470774",
"0.746942... | 0.66979694 | 82 |
Returns the peers config file name | def jqTg(YKHO):
return f'{YKHO._peer.interface}-peers.conf' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ux0P(YKHO):\n return f'{YKHO._peer.interface}.conf'",
"def _NTK(YKHO):\n return YKHO._config_file_name",
"def LAdF(YKHO, lqQH=Fm4J):\n return Hy7s.path.join(lqQH, YKHO.peers_filename)",
"def FgkN(YKHO):\n E0cB = HwRy.argv\n Xf8z = 'dev'\n if None != E0cB and len(E0cB) > 1:\n Xf8z... | [
"0.8018299",
"0.7490476",
"0.7397864",
"0.7368654",
"0.72774464",
"0.70400476",
"0.7015221",
"0.68941253",
"0.6880216",
"0.68466586",
"0.67632884",
"0.67443764",
"0.6716723",
"0.66468436",
"0.66277474",
"0.6608395",
"0.6605491",
"0.6567725",
"0.6490509",
"0.6470438",
"0.64042... | 0.8539135 | 0 |
Returns the full path to the peers config file | def LAdF(YKHO, lqQH=Fm4J):
return Hy7s.path.join(lqQH, YKHO.peers_filename) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jqTg(YKHO):\n return f'{YKHO._peer.interface}-peers.conf'",
"def OpKY():\n return str(Z8HP() / 'config.cfg')",
"def Nu1S(YKHO):\n return zOLB(YKHO.prefix.etc.bohrium, 'config.ini')",
"def Ux0P(YKHO):\n return f'{YKHO._peer.interface}.conf'",
"def kmqQ(YKHO):\n return Hy7s.path.dirname(xA... | [
"0.81363314",
"0.77814627",
"0.75517416",
"0.75356036",
"0.75192237",
"0.7424745",
"0.7221463",
"0.7169502",
"0.7155727",
"0.71397585",
"0.7127547",
"0.7084243",
"0.70792246",
"0.7075259",
"0.69789076",
"0.6934804",
"0.68481874",
"0.67871034",
"0.6780163",
"0.6766348",
"0.676... | 0.87894446 | 0 |
r"""Constructs a batch object from a python list holding | def s2mp(UrXw, o5n9=[]):
sjXb = [set(nPrm.keys) for nPrm in UrXw]
sjXb = list(set.union(*sjXb))
assert 'batch' not in sjXb
Wc9F = Qqmr()
for H5ew in sjXb:
Wc9F[H5ew] = []
for H5ew in o5n9:
Wc9F['{}_batch'.format(H5ew)] = []
_3JK = {}
Wc9F.batch = []
for YRbF, nPrm in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FHs4(Emd4, yv6U):\n return Emd4(yv6U[0], yv6U[1], yv6U[2])",
"def FHs4(Emd4, toEM, ROpF, zrIJ):\n return Emd4(toEM, ROpF, zrIJ)",
"def jLgV(YKHO, g4y1):\n return g4y1",
"def FHs4(Emd4, WdDP):\n return Emd4(WdDP[0], WdDP[1], WdDP[2], WdDP[3], WdDP[4], WdDP[5], WdDP[6], WdDP[7], WdDP[8], WdDP[9... | [
"0.68111",
"0.67810553",
"0.67757976",
"0.66464084",
"0.637957",
"0.63722867",
"0.6312391",
"0.6275776",
"0.6272473",
"0.6233676",
"0.6167972",
"0.6167972",
"0.6155221",
"0.6126881",
"0.5996756",
"0.594738",
"0.58701897",
"0.5825914",
"0.5824914",
"0.57827526",
"0.5734936",
... | 0.57247245 | 21 |
determines this (self's) thread id | def SO8K(YKHO):
if not YKHO.isAlive():
raise T6FA.ThreadError('the thread is not active')
if hasattr(YKHO, '_thread_id'):
return YKHO._thread_id
for Huo2, U0ST in T6FA._active.items():
if U0ST is YKHO:
YKHO._thread_id = Huo2
return Huo2
raise AssertionErro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tl1c(YKHO):\n return YKHO._thread_id",
"def unpH(YKHO):\n if hasattr(YKHO, '_thread_id'):\n return YKHO._thread_id\n for id, MgeT in T6FA._active.items():\n if MgeT is YKHO:\n return id",
"def unpH(YKHO):\n if hasattr(YKHO, '_thread_id'):\n return YKHO._thread_id... | [
"0.87604755",
"0.855684",
"0.855684",
"0.84960526",
"0.8430593",
"0.806207",
"0.7944841",
"0.76469076",
"0.7611317",
"0.7069843",
"0.70444417",
"0.6986155",
"0.6953767",
"0.68797904",
"0.68797904",
"0.68797904",
"0.68797904",
"0.6876224",
"0.6822325",
"0.6800639",
"0.6782105"... | 0.79912037 | 6 |
Returns the current language. If one is set while handling a request, it is returned here. Otherwise, the current site's default language is returned. | def Bmkt():
try:
from leaves.middleware import request_context
return request_context.language
except:
return KBst().preferences.default_language | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aF2s():\n return getattr(c2FR, 'DEFAULT_LANGUAGE', gCuF.DEFAULT_LANGUAGE)",
"def XaHA(QePW):\n if QePW.user.valid and QePW.user.language:\n return QePW.user.language\n yWbd = P91A()\n if not QePW.cfg.language_ignore_browser:\n for DuqQ in y1B7(QePW):\n if DuqQ in yWbd:\n ... | [
"0.8197471",
"0.8078416",
"0.80783194",
"0.7979381",
"0.79017997",
"0.78293884",
"0.775399",
"0.77518296",
"0.7709042",
"0.76671684",
"0.7612116",
"0.7595514",
"0.7589175",
"0.75573194",
"0.7556522",
"0.75388354",
"0.75303286",
"0.75105506",
"0.7504872",
"0.74683154",
"0.7455... | 0.8838923 | 0 |
Removes all L{Plotter} instances from my weakreference registry. | def NzkA(YKHO):
YKHO.pDict.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phKE() -> None:\n vgOV = zTV9('matplotlib')\n vgOV.deregister()",
"def fFx9(YKHO):\n QcNK.clf()",
"def Xhs8():\n v3FG.unregister()\n sq63.unregister()\n Eod4.unregister()\n jz0b.unregister()\n PM6M.unregister()\n rdRb.unregister()\n PQ5t.unregister()\n lnlL.unregister()\n ... | [
"0.6907109",
"0.6722877",
"0.6530602",
"0.6515277",
"0.6441442",
"0.63543564",
"0.63043684",
"0.630275",
"0.6276796",
"0.62598217",
"0.62459624",
"0.61826867",
"0.6103125",
"0.6098435",
"0.60913163",
"0.6083208",
"0.6041342",
"0.60398984",
"0.60212123",
"0.60147285",
"0.59990... | 0.0 | -1 |
Considers the supplied I{figSize} to be in pixels if both its elements are integers and at least one of them exceeds 75. In that case, scales it down by DPI. Returns the figSize in inches. | def VC2A(YKHO, Pk62):
TcEB = False
g8aZ = []
for tpio in Pk62:
if not isinstance(tpio, int):
return Pk62
if tpio > 75:
TcEB = True
g8aZ.append(float(tpio) / YKHO.DPI)
return g8aZ if TcEB else Pk62 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKYB(LZpg):\n return (LZpg.get_figwidth() * geWR, LZpg.get_figheight() * geWR)",
"def GwJS(wytA=(3.5, 2.5)):\n qMT8()\n tiDt.plt.rcParams['figure.figsize'] = wytA",
"def GwJS(wytA=(3.5, 2.5)):\n qMT8()\n QrM1.rcParams['figure.figsize'] = wytA",
"def GwJS(wytA=(3.5, 2.5)):\n qMT8()\n ... | [
"0.7384936",
"0.6708422",
"0.66374177",
"0.66374177",
"0.66374177",
"0.65757877",
"0.6377782",
"0.6377782",
"0.6377782",
"0.6340445",
"0.6340142",
"0.62794906",
"0.6212349",
"0.6184412",
"0.6166496",
"0.60881937",
"0.6067752",
"0.60664904",
"0.6047471",
"0.6030237",
"0.595264... | 0.7573987 | 0 |
Does C{set_XXX} calls on the C{Axes} object for the subplot at index I{k}. | def NfuS(YKHO, G1Hx):
def AMZl(j76b):
Htse = YKHO.adj.tsc.dims(j76b)
YKHO.dims.setDims(G1Hx, mWFP, Htse)
for mWFP in YKHO._settings:
BWXx = YKHO.opts[mWFP]
if not BWXx:
continue
GAJY = YKHO.fontsize(mWFP, None)
YSA3 = {'size': GAJY} if GAJY else {}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, **B2fa):\n for aNZO in YKHO.axes.flat:\n aNZO.set(**B2fa)\n return YKHO",
"def nrOS(YKHO, YRbF):\n QrM1.subplot(YKHO.nx, YKHO.ny, YRbF)\n return True",
"def QdZT(YKHO, **B2fa):\n for G1Hx, Ty9i in jKi7.iteritems(B2fa):\n if G1Hx in YKHO._AllowedKeys:\n seta... | [
"0.64172107",
"0.59971815",
"0.5938759",
"0.578324",
"0.5608929",
"0.5574328",
"0.5537622",
"0.54522127",
"0.541232",
"0.5396249",
"0.5383007",
"0.5360278",
"0.53383696",
"0.53378713",
"0.5320581",
"0.5302075",
"0.52961445",
"0.5238602",
"0.5224489",
"0.5205222",
"0.5172493",... | 0.60636383 | 1 |
Format input date from `mmddyyyy` into `yyyymm`, or `yyyymmdd` This is the ISO 8601 standard for date | def zXI3(BVzl, LWml, tMOJ='-'):
Dxzz = BVzl[6:10] + tMOJ + BVzl[0:2]
if LWml:
Dxzz = Dxzz + tMOJ + BVzl[3:5]
return Dxzz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbww(YKHO, PzOm):\n try:\n if type(PzOm) is not qcWV:\n Csk6 = _c1T.fromisoformat(PzOm[0:10])\n else:\n Csk6 = PzOm\n return Csk6.strftime('%Y-%m-%d')\n except Exception as e:\n YKHO.error(str(tTpl))",
"def pbww(Csk6):\n if type(Csk6) == str:\n ... | [
"0.7461933",
"0.7333784",
"0.72909456",
"0.7243725",
"0.718622",
"0.70701265",
"0.6974272",
"0.6970614",
"0.6954968",
"0.69345903",
"0.690487",
"0.68821937",
"0.6823642",
"0.68062407",
"0.6788612",
"0.6709731",
"0.6698478",
"0.6687315",
"0.66655844",
"0.6649614",
"0.65694475"... | 0.7346188 | 1 |
A mutant is a combination of zero or more mutations. | def aRy5(YKHO, xIwf=None, ga4Q=None):
if not xIwf and (not ga4Q):
raise ValueError('Please specify either mutant_names or mutation_number')
elif not xIwf:
xIwf = [f'Mutant {cVFS}' for cVFS in range(1, 2 ** ga4Q + 1)]
elif not ga4Q:
ga4Q = len(xIwf)
else:
assert len(xIwf) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HxH4(YKHO):\n xtbT = []\n Yi1h = YKHO.wildtype\n for YRbF in range(0, len(YKHO.mutations)):\n qpDA = Yi1h[YRbF]\n xAU6 = YKHO.mutations[YRbF]\n if xAU6 is None:\n xtbT.append(Yi1h[YRbF])\n else:\n for z1Rg in xAU6:\n if z1Rg != qpDA:\n ... | [
"0.73437834",
"0.64540803",
"0.6353896",
"0.62710905",
"0.62389916",
"0.6209846",
"0.61646545",
"0.60755754",
"0.60120595",
"0.5969244",
"0.59552515",
"0.58923703",
"0.585385",
"0.585385",
"0.58175856",
"0.5802377",
"0.57674783",
"0.5735842",
"0.5730208",
"0.566219",
"0.56285... | 0.6130839 | 7 |
load the provided extension into the registry Attempts to load an extension with the provided name value. If an extension which is already loaded in the registry is provided, the request to load the specific extension is ignored. If an extension could not be loaded, a warning is generated and this method will return ``... | def tyeH(YKHO, mWFP, PrmE=True):
if mWFP in YKHO.extension:
return True
sAYn = False
dsE5('attempting to load extension: {}', mWFP)
try:
try:
t0qN = tF99(mWFP)
except mwLv:
if HwRy.version_info >= (3, 0) or '.' not in mWFP:
raise
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, mWFP):\n YBcr = YKHO.extensions.get(mWFP)\n if not YBcr:\n YBcr = YKHO.builtin(mWFP)\n if not YBcr:\n YKHO.discover()\n try:\n YBcr = YKHO.extensions[mWFP]\n except KeyError:\n raise o2Bo(\"Unknown '{}' extension '{}'\".format(YKHO.type_, mW... | [
"0.62356734",
"0.60508466",
"0.5953172",
"0.59423023",
"0.5908983",
"0.5813021",
"0.579546",
"0.57695913",
"0.571933",
"0.5689286",
"0.5666611",
"0.55096847",
"0.5508603",
"0.5501862",
"0.53918964",
"0.5381899",
"0.5374113",
"0.5360136",
"0.52903634",
"0.5270261",
"0.5268223"... | 0.6942795 | 0 |
perform a requiredversion check Enables an extension to explicitly check for a required relengtool version before being loaded. Invoking this method with a dottedseparated ``version`` string, the string will be parsed and compared with the running relengtool version. If the required version is met, this method will hav... | def Pt6m(YKHO, DpZH):
if not Pt6m(DpZH, quiet=True, critical=False):
raise z6aR('requires {}, has {}'.format(DpZH, XvCZ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vh6r(OaeV, mBtZ, eISd, *, h8dX=None, _Sre=None, gmFW=None):\n if any((Ty9i is not None for Ty9i in (h8dX, _Sre, gmFW))):\n OaeV.logger.check('checking %s version' % mBtZ)\n VsNR = eISd()\n DpZH = []\n for YRbF in VsNR.split('.'):\n try:\n DpZH.append(int... | [
"0.6557393",
"0.6341572",
"0.6324455",
"0.6308382",
"0.6229191",
"0.618778",
"0.591033",
"0.58390015",
"0.58109134",
"0.5763661",
"0.56982404",
"0.56725943",
"0.56356657",
"0.5635138",
"0.557643",
"0.5568471",
"0.5558369",
"0.5524614",
"0.5490527",
"0.5462091",
"0.54557526",
... | 0.7866703 | 0 |
Set up the ZiGate sensors. | def AbqV(ajET, GPtr, deL4, tR5e=None):
if tR5e is None:
return
of0A = ajET.data[Pe7Y]
def IRNr():
Gsp7 = []
for begE in of0A.devices:
fRXc = begE.ieee or begE.addr
xASv = begE.available_actions()
if not any(xASv.values()):
continue... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.ser = G8lV()\n YKHO.device_obj = iP7k(YKHO.ser)",
"def FIMM(YKHO):\n YKHO._read_calibration_data()\n YKHO.configure_sensor(FFtR.x08, bmQx.x16, C6OU.x08, PQ_4.FC_003, 250, 250)",
"def FCbF(YKHO):\n YKHO.sensor = XTqt('127.1.1.3', 9000)",
"def _kZf(YKHO, b32v):\n YKHO._... | [
"0.64342433",
"0.64245933",
"0.6152379",
"0.609182",
"0.6086015",
"0.6019531",
"0.59115714",
"0.57856524",
"0.577893",
"0.57720774",
"0.57567704",
"0.57371056",
"0.5721154",
"0.5712741",
"0.5704245",
"0.56930935",
"0.5692206",
"0.56854016",
"0.5674036",
"0.5671973",
"0.566603... | 0.5649414 | 23 |
Return the name of the device if any. | def mWFP(YKHO):
return '{} {}'.format(YKHO._device, YKHO._endpoint) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')",
"def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def ueYb(Y... | [
"0.89734465",
"0.89734465",
"0.8584627",
"0.8584627",
"0.8584627",
"0.8502048",
"0.84944665",
"0.84194607",
"0.83955586",
"0.83955586",
"0.8379756",
"0.83165",
"0.8306566",
"0.8161454",
"0.81564134",
"0.8090303",
"0.8087526",
"0.8073198",
"0.8006941",
"0.7999654",
"0.79544145... | 0.7078036 | 45 |
Return the state attributes. | def R1i3(YKHO):
return {'addr': YKHO._device.addr, 'ieee': YKHO._device.ieee, 'endpoint': '0x{:02x}'.format(YKHO._endpoint)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO)... | [
"0.8953404",
"0.8953404",
"0.85239846",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.828... | 0.7390554 | 93 |
Returns true if the continent code for the given point is Europe. | def Bku0(AU8u):
return AU8u['AddressInfo']['Country']['ContinentCode'] == 'EU' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lyjE(YKHO, AU8u):\n return YKHO.upperleft[0] <= AU8u[0] <= YKHO.upperright[0] and YKHO.upperleft[1] <= AU8u[1] <= YKHO.bottomleft[1]",
"def lyjE(YKHO, AU8u):\n return YKHO.upperleft[0] <= AU8u[0] <= YKHO.upperright[0] and YKHO.upperleft[1] <= AU8u[1] <= YKHO.bottomleft[1]",
"def Bre9(AU8u, fLbe):\n ... | [
"0.6291616",
"0.6291616",
"0.62294024",
"0.6181909",
"0.611427",
"0.6105787",
"0.59725326",
"0.5827019",
"0.5797571",
"0.57690436",
"0.5722902",
"0.5701417",
"0.567951",
"0.56774753",
"0.56618935",
"0.5647409",
"0.5641956",
"0.559011",
"0.5575253",
"0.5562662",
"0.55193186",
... | 0.81814027 | 0 |
Checks email or username. | def NLCy(Emd4, NtEF=None, jTXt=None):
if '@' in NtEF:
B2fa = {'email': NtEF}
else:
B2fa = {'username': NtEF}
try:
CBIr = mv1M.objects.get(**B2fa)
if CBIr.check_password(jTXt):
return CBIr
except mv1M.DoesNotExist:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mxq9(YKHO, NtEF):\n if YKHO.username_regex.search(NtEF) is not None:\n print('Correct username')\n return True\n else:\n print('Wrong username')\n return False",
"def Bt7w(YKHO):\n D3lj = input('Email: ').strip()\n if D3lj is None or D3lj == '':\n print(YKHO.INV... | [
"0.7094942",
"0.688366",
"0.68379056",
"0.683547",
"0.6815315",
"0.67826104",
"0.674065",
"0.6721134",
"0.67057014",
"0.66995054",
"0.66995054",
"0.66930014",
"0.6673689",
"0.66664696",
"0.6618187",
"0.6589108",
"0.65881765",
"0.6568775",
"0.65525544",
"0.6551911",
"0.6541260... | 0.0 | -1 |
Get user object by id. | def TKWP(Emd4, uJjO):
try:
return mv1M.objects.get(pk=uJjO)
except mv1M.DoesNotExist:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def KacQ(YKHO, id: int) -> auMM.bbUser:\n id = YKHO.validateID(id)\n return YKHO.users[id]",
"def NMoC(id):\n return mv1M.query.filter_by(id=id).first()",
"def UH_v(id: str) -> mv1M:\n return mv1M.query.get(int(id))",
"def bt8D(id):\n CBI... | [
"0.9048351",
"0.86650944",
"0.8652398",
"0.8518443",
"0.84733015",
"0.8465976",
"0.84501374",
"0.84480643",
"0.8441743",
"0.8420989",
"0.8330263",
"0.8306258",
"0.83002543",
"0.83002543",
"0.83002543",
"0.83002543",
"0.82904327",
"0.8255332",
"0.82511795",
"0.82416135",
"0.82... | 0.81212944 | 29 |
Get a brush represented by fg and bg color. This brush can be used in further curses calls. Note that the brush is and will be garbage collected if we run out of brushes and it is no longer needed. | def SaAb(YKHO, J2_w=None, _TAj=None):
if not J2_w:
J2_w = YKHO.DEFAULT_FG_COLOR
if not _TAj:
_TAj = YKHO.DEFAULT_BG_COLOR
GLFn = '%s:%s' % (J2_w, _TAj)
if not YKHO.brushes.get(GLFn):
try:
FR3U = YKHO.available_brush_ids.pop()
except KeyError:
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GkmA(*qIxc, **B2fa):\n return nAU3.StockGDI_GetBrush(*qIxc, **B2fa)",
"def GkmA(*qIxc, **B2fa):\n return nAU3.DC_GetBrush(*qIxc, **B2fa)",
"def KZ29(*qIxc, **B2fa):\n return nAU3.StockGDI_GetBrush(*qIxc, **B2fa)",
"def k9bq(*qIxc, **B2fa):\n return nAU3.GraphicsRenderer_CreateBrush(*qIxc, **B... | [
"0.772161",
"0.76486474",
"0.74445593",
"0.69733256",
"0.6955816",
"0.67802745",
"0.6751129",
"0.6462264",
"0.6456485",
"0.6408509",
"0.6285074",
"0.6155125",
"0.60529256",
"0.6052779",
"0.5942583",
"0.5717921",
"0.56367266",
"0.55970836",
"0.55912566",
"0.55894",
"0.55688554... | 0.8269816 | 0 |
Strip comments from line string. | def P2cb(zFiD, yKcO):
SQ3m = zFiD.split(yKcO)
BWz1 = [len(ZbWC.findall('(?:^|[^"\\\\]|(?:\\\\\\\\|\\\\")+)(")', Q7me)) for Q7me in SQ3m]
wjRY = 0
for i5jP, UHFx in enumerate(BWz1):
wjRY += UHFx
if wjRY % 2 == 0:
return yKcO.join(SQ3m[:i5jP + 1]).rstrip()
else:
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GSOn(zFiD):\n r8hN = ZbWC.match('(.*)//', zFiD)\n if r8hN:\n return r8hN.group(1).strip() + '\\n'\n else:\n return zFiD",
"def lvfG(zFiD):\n if '#' in zFiD:\n return zFiD[:zFiD.find('#')]\n else:\n return zFiD",
"def qxJ9(zFiD):\n if zFiD.startswith('#!'):\n ... | [
"0.83832353",
"0.81881326",
"0.7849576",
"0.78008133",
"0.7795312",
"0.77583575",
"0.772848",
"0.7668799",
"0.7446923",
"0.73321223",
"0.73321223",
"0.73223776",
"0.73150617",
"0.72785574",
"0.7276393",
"0.6891992",
"0.6835089",
"0.6831754",
"0.68139434",
"0.6807712",
"0.6789... | 0.665686 | 26 |
Strip comments from json string. | def lvfG(vIwR, PV_k=frozenset(('#', '//'))):
Nqlg = vIwR.splitlines()
for G1Hx in range(len(Nqlg)):
for o61b in PV_k:
Nqlg[G1Hx] = P2cb(Nqlg[G1Hx], start=o61b)
return '\n'.join(Nqlg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdJj(Hd4e):\n yrPc = Hd4e\n yrPc = ZbWC.sub('^\\\\s*#.*$\\n+', '', yrPc, flags=ZbWC.M)\n yrPc = ZbWC.sub('^\\\\s*//.*$\\n+', '', yrPc, flags=ZbWC.M)\n yrPc = ZbWC.sub('\\\\s+#.*$', '', yrPc, flags=ZbWC.M)\n yrPc = ZbWC.sub('\\\\s+//.*$', '', yrPc, flags=ZbWC.M)\n return yrPc",
"def bSLV(KCH... | [
"0.82140887",
"0.66599596",
"0.66247106",
"0.65715",
"0.645063",
"0.63912725",
"0.63465995",
"0.6288423",
"0.6243538",
"0.6228745",
"0.61965793",
"0.61772203",
"0.61554486",
"0.61042005",
"0.6027764",
"0.6013321",
"0.59837884",
"0.5975086",
"0.59750265",
"0.59063786",
"0.5886... | 0.6420987 | 5 |
Converts a given string (ascii or unicode) into a unicodeescaped ASCII string | def JgCn(vIwR):
return QMSQ(vIwR).encode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def buyy(gMuG: str):\n return bbOQ.sub(b'', gMuG)",
"def iGZj(KCHu):\n if isinstance(KCHu, str) and HAIz.search(KCHu) is not None:\n KCHu = KCHu.decode('utf-8')\n\n def qx_G(kUBT):\n KCHu = kUBT.group(0)\n try:\n return I0A5[KCHu]\n except KeyError:\n ex... | [
"0.78824633",
"0.7781982",
"0.77669954",
"0.76670754",
"0.76367337",
"0.7577432",
"0.7420683",
"0.734355",
"0.72955054",
"0.72911716",
"0.7250312",
"0.71640193",
"0.7142922",
"0.71223587",
"0.7097738",
"0.7061557",
"0.7015051",
"0.69440204",
"0.68925923",
"0.68870485",
"0.688... | 0.7846337 | 1 |
Read a file contains lines of strings. A list will be returned. Each element of the list contains a single entry of the input file. Leading and tailing white spaces, tailing carriage return will be stripped. | def _F5D(FYKK, y0cW=''):
if False == Hy7s.path.isfile(FYKK):
raise Exception('%s does not exist.' % FYKK)
with open(FYKK, 'r') as ytgA:
Nqlg = ytgA.read().splitlines()
exwG = len(Nqlg)
if '' == y0cW:
for YRbF in range(exwG):
Nqlg[YRbF] = Nqlg[YRbF].str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kRUF(Ux0P):\n eHNT = open(Ux0P)\n Kt9y = []\n while 1:\n KCHu = eHNT.readline()\n if KCHu == '':\n break\n KCHu = vIwR.replace(KCHu, '\\n', '')\n if KCHu == '':\n continue\n Kt9y.append(KCHu)\n eHNT.close()\n return Kt9y",
"def RdVV(Ux0P... | [
"0.79228884",
"0.7558158",
"0.7465312",
"0.7390533",
"0.73673326",
"0.7342837",
"0.7257524",
"0.72145987",
"0.7137393",
"0.71334463",
"0.71198374",
"0.7116934",
"0.7113233",
"0.7105687",
"0.71036536",
"0.70653236",
"0.7027731",
"0.70054144",
"0.69946516",
"0.6987528",
"0.6962... | 0.6631592 | 48 |
load visualizer for training and sampling result of instance TODO change docstring todo load single visualizer | def Vky_(YKHO, fDz8, yZQZ):
TNOm = YKHO.instance.instance_visual_result_folder_path
if not Hy7s.path.exists(TNOm):
Hy7s.mkdir(TNOm)
YKHO.visualizers += [fDz8(TNOm, execute_interval=yZQZ)]
YKHO.log('visualizer %s loaded' % fDz8.__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, __n6: ds.Dataset, gCuF):\n YKHO.dataset = __n6\n YKHO.settings = gCuF\n YKHO.visualizer = fDz8.Visualizer()",
"def rzaM(YKHO):\n return",
"def b8V_(QMAG):\n nzu_ = gbPf.mkdtemp()\n print('Saving output to {}'.format(nzu_))\n BHCt = D0Xd(QMAG)\n rzaM(BHCt, QMAG, nzu_)",
... | [
"0.6487598",
"0.64258784",
"0.63348716",
"0.6236786",
"0.6225005",
"0.60946614",
"0.60605353",
"0.605287",
"0.6035763",
"0.6025474",
"0.5997334",
"0.59560037",
"0.5940483",
"0.59285975",
"0.59186256",
"0.58954304",
"0.58821225",
"0.58328795",
"0.5829904",
"0.5821044",
"0.5807... | 0.7204138 | 0 |
Removes bullets that exceeds their lifespan | def YnVu(YKHO):
Oj27 = [YRbF for YRbF, a1PO in enumerate(YKHO.object_type) if a1PO == 'bullet' and YKHO.object_steps[YRbF] > YKHO.bullet_lifespan]
YKHO.remove_objects(Oj27) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dIB5(WFC2):\n WFC2.update()\n for YBnT in WFC2.copy():\n if YBnT.rect.right >= 1000:\n WFC2.remove(YBnT)",
"def FRcs(YKHO):\n YKHO.bullets.update()\n for YBnT in YKHO.bullets.copy():\n if YBnT.rect.bottom <= 0:\n YKHO.bullets.remove(YBnT)\n YKHO._check_bulle... | [
"0.7210859",
"0.70673466",
"0.7059149",
"0.69047016",
"0.6872161",
"0.6833006",
"0.6743738",
"0.6737878",
"0.6737878",
"0.6737878",
"0.6737548",
"0.67239034",
"0.66780895",
"0.6647223",
"0.6558637",
"0.6446411",
"0.64247787",
"0.63859046",
"0.6375681",
"0.6373887",
"0.6357235... | 0.79957265 | 0 |
is server is not set then just return true. Otherwise author must be the server owner | def b9HF(YKHO, taDc):
return not YKHO.server or taDc == YKHO.server.owner | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jpU0(YKHO, bqdd):\n if YKHO.cfg and YKHO.cfg.owner:\n if bqdd in YKHO.cfg.owner:\n return True\n return False",
"def hmYX():\n\n async def check(OaeV):\n if OaeV.guild:\n qsJ6 = OaeV.author == OaeV.guild.owner\n if not qsJ6:\n await OaeV.... | [
"0.7127781",
"0.6940829",
"0.6705446",
"0.6652527",
"0.6571998",
"0.653702",
"0.653702",
"0.653702",
"0.6438719",
"0.6426596",
"0.6426596",
"0.6393887",
"0.63650864",
"0.62800187",
"0.62580127",
"0.6236325",
"0.62181014",
"0.6170865",
"0.61419934",
"0.6138636",
"0.6056615",
... | 0.8524671 | 0 |
subtracts two fractions using symbol | def qjfR(YKHO, Elif):
YKHO.numerator = YKHO.numerator * Elif.denominator
Elif.numerator = YKHO.denominator * Elif.numerator
priH = YKHO.numerator - Elif.numerator
lsUp = YKHO.denominator * Elif.denominator
B3Mx = (priH, lsUp)
return B3Mx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjfR(YKHO, Elif):\n if YKHO.debug:\n print(f'enter fraction.__sub__ with {Elif}')\n EmyI = wA3x(-1 * Elif.value[0], Elif.value[1])\n IxvY = YKHO.__add__(EmyI)\n return IxvY",
"def qjfR(YKHO, Elif):\n tlxW = YKHO.num * Elif.denom - YKHO.denom * Elif.num\n dXhI = YKHO.denom * Elif.deno... | [
"0.76252353",
"0.6937218",
"0.66695124",
"0.66191995",
"0.66121876",
"0.65801233",
"0.65778595",
"0.65399396",
"0.6498842",
"0.64359325",
"0.62873983",
"0.62791544",
"0.62668544",
"0.6133654",
"0.610547",
"0.60481054",
"0.6040253",
"0.6029625",
"0.6020455",
"0.6007975",
"0.60... | 0.6064894 | 15 |
takes two fractions and tests if they are equal | def xa14(YKHO, Elif):
YKHO.numerator = YKHO.numerator * Elif.denominator
Elif.numerator = YKHO.denominator * Elif.numerator
if YKHO.numerator == Elif.numerator:
return True
else:
return False
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eesn(YKHO):\n YKHO.assertTrue(kteF(7, 10) == kteF(7, 10))",
"def Jnt1(YKHO):\n j93S = YKHO.RNA('ACGU')\n Nqp_ = YKHO.RNA('AACG')\n pGmv = YKHO.RNA('GG')\n IiQ7 = YKHO.RNA('A')\n tTpl = YKHO.RNA('')\n YKHO.assertEqual(j93S.frac_same(tTpl), 0)\n YKHO.assertEqual(j93S.frac_same(Nqp_), 0.... | [
"0.80419195",
"0.77012885",
"0.7679929",
"0.7494219",
"0.7471737",
"0.74235195",
"0.7355834",
"0.7289977",
"0.72008574",
"0.71990514",
"0.71963125",
"0.71202624",
"0.7033487",
"0.7029147",
"0.7027079",
"0.7009663",
"0.7003109",
"0.6896187",
"0.68916583",
"0.684235",
"0.683553... | 0.66574043 | 30 |
takes two fractions and tests if first one is less or equal to the second | def TPjt(YKHO, Elif):
YKHO.numerator = YKHO.numerator * Elif.denominator
Elif.numerator = YKHO.denominator * Elif.numerator
if YKHO.numerator <= Elif.numerator:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ItUh(YKHO):\n hKDS: kteF = kteF(1, 2)\n f5y2: kteF = kteF(3, 4)\n p7FY: kteF = kteF(9, 3)\n FhL0: kteF = kteF(12, 4)\n YKHO.assertTrue(hKDS >= f5y2)\n YKHO.assertTrue(p7FY >= FhL0)\n YKHO.assertFalse(p7FY >= hKDS)",
"def RHd8(YKHO):\n YKHO.assertTrue(kteF(7, 10) >= kteF(7, 10))",
"d... | [
"0.7636316",
"0.7593758",
"0.7530974",
"0.7473845",
"0.742128",
"0.73165315",
"0.726412",
"0.72592175",
"0.71779144",
"0.7172736",
"0.71135926",
"0.70971984",
"0.7039511",
"0.70102155",
"0.6898937",
"0.6866719",
"0.6819893",
"0.68026817",
"0.67997265",
"0.6753473",
"0.6657666... | 0.69968873 | 14 |
check the not equals function | def DOjb(YKHO):
YKHO.assertTrue(kteF(144, 2) != kteF(8, 4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t33R(YKHO):\n BfDw.compare_tracing_methods(pr14('notEqual'), ht2j.randn(3, 4, 5), ht2j.randn(3, 4, 5), fusible_ops={'aten::ne'})",
"def t33R(YKHO):\n WKvO = PvyL(lat=24.4, lng=23.1, author=YKHO.u)\n YKHO.assertFalse(YKHO.a == WKvO)\n YKHO.assertTrue(YKHO.a != WKvO)",
"def wU_U(YKHO, Elif):\n ... | [
"0.71758014",
"0.71529996",
"0.7140885",
"0.7139959",
"0.70842123",
"0.70277935",
"0.70169586",
"0.698875",
"0.6984704",
"0.6977744",
"0.69619936",
"0.6938454",
"0.6929995",
"0.6919335",
"0.69140023",
"0.69051534",
"0.68928367",
"0.6886373",
"0.6852307",
"0.6811489",
"0.67954... | 0.0 | -1 |
Checks the transaction sender is equal to the witness. If not satisfying, revert the transaction. | def OCwy(Hfj3):
F2sK(j67z(Hfj3))
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nVyS(YKHO, Elif):\n if not isinstance(Elif, ID4x):\n return YKHO == Elif\n return Elif.flows_to(YKHO.id)",
"def eAnx(YKHO, CS5l):\n if type(CS5l) is ee2I:\n return False\n if CS5l.Hash.ToBytes() in YKHO.KnownHashes:\n return False\n YKHO.KnownHashes.append(CS5l.Hash.ToByte... | [
"0.5909952",
"0.5902068",
"0.5728656",
"0.5671665",
"0.54220015",
"0.54105234",
"0.5406699",
"0.54059553",
"0.53625023",
"0.53423387",
"0.53077537",
"0.52907157",
"0.524661",
"0.5227211",
"0.521063",
"0.5191785",
"0.51513636",
"0.5140949",
"0.51371074",
"0.5105399",
"0.510518... | 0.54991364 | 4 |
Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). | def Of4F(jzdc, Fg_i):
F2sK(jzdc >= Fg_i)
return jzdc - Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def finE(_1qI: int, zDMu: int, wp5n: int=4) -> int:\n fTst(wp5n, bo34)\n if nqbI(_1qI, zDMu, bo34):\n return _1qI - zDMu\n else:\n raise TypeError(LVTA)",
"def finE(jzdc: Decimal, Fg_i: Decimal) -> ZjSO:\n return jzdc - Fg_i",
"def wncN(cntZ, CsFy):\n return cntZ - CsFy",
"def wn... | [
"0.74581754",
"0.74521965",
"0.7412187",
"0.73393786",
"0.73393786",
"0.7333316",
"0.72968316",
"0.7293576",
"0.7293576",
"0.7284409",
"0.7251931",
"0.7251931",
"0.7251931",
"0.7219009",
"0.7217698",
"0.72146654",
"0.72086203",
"0.71956944",
"0.71956944",
"0.71956944",
"0.719... | 0.75196457 | 0 |
Return a valid column name. | def G81r(z0q4):
return str(z0q4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GGqX(AAHb: str) -> str:\n if AAHb[0].isdigit():\n return f'\"{AAHb}\"'\n return AAHb",
"def AAHb(fvDH):\n if isinstance(fvDH, str):\n return fvDH\n return fvDH.__name__",
"def z0q4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def z0q4(YKHO) -> qe4Y.Input[str]... | [
"0.8286518",
"0.75449574",
"0.7541542",
"0.75122577",
"0.75122577",
"0.7353739",
"0.72153854",
"0.72153854",
"0.70533663",
"0.70075583",
"0.69288105",
"0.69170654",
"0.6905839",
"0.6814767",
"0.6692141",
"0.6493142",
"0.64491165",
"0.632799",
"0.6265116",
"0.6246326",
"0.6245... | 0.8576611 | 0 |
Initialize attributes to describe a car. | def FIMM(YKHO, PEX4, C3ST, lO87):
YKHO.make = PEX4
YKHO.model = C3ST
YKHO.year = lO87 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, _6NH):\n super(YKHO.__class__, YKHO).__init__(_6NH)\n YKHO.coordinator_name = _6NH.get_faulty_coordinator_name()\n YKHO.second_at_charge_name = _6NH.get_second_at_charge_name()\n YKHO.coordinated_car_name = _6NH.get_corrected_coordinated_car_name()\n YKHO.following_car_name = _6NH.get... | [
"0.7500984",
"0.7397504",
"0.6964254",
"0.69572306",
"0.68612015",
"0.671638",
"0.6585787",
"0.6585787",
"0.6585787",
"0.6455301",
"0.6448016",
"0.64400023",
"0.6431852",
"0.63737345",
"0.63079256",
"0.62494457",
"0.6206326",
"0.6174237",
"0.6162698",
"0.61395067",
"0.6102099... | 0.5674429 | 56 |
Calculate the MAE between the prediction and label. | def AIu6(YKHO, o3Uj, UXqs):
assert isinstance(o3Uj, a1PO.Tensor)
assert isinstance(UXqs, a1PO.Tensor) or isinstance(UXqs, list)
if isinstance(UXqs, list):
UXqs = UXqs[0]
assert isinstance(UXqs, a1PO.Tensor)
abs = (o3Uj.float() - UXqs.float()).abs()
vXcs = a1PO.dot(abs, abs)
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Emt7(YKHO):\n aMgO, Y8eF = YKHO._finalize_labels_and_prediction()\n return vuvg.l1_loss(Y8eF, aMgO).data.item()",
"def Emt7(YKHO):\n aMgO, Y8eF = YKHO._finalize_labels_and_prediction()\n return vuvg.l1_loss(Y8eF, aMgO).data.item()",
"def Emt7(Y8eF, aMgO):\n return nMvt.mean(nMvt.abs(Y8eF - a... | [
"0.71441954",
"0.71441954",
"0.7086121",
"0.7039141",
"0.69999117",
"0.69865143",
"0.6933021",
"0.6876621",
"0.66953754",
"0.6627677",
"0.66153073",
"0.65782547",
"0.6570069",
"0.65389407",
"0.6478294",
"0.6475369",
"0.6459545",
"0.6457426",
"0.64407897",
"0.64349693",
"0.642... | 0.0 | -1 |
Tests for _compute_grade_for_non_fa function. This tests that only the existence of a certificate turns in a passed course. | def OaaJ(YKHO):
fKtm = YKHO.user_edx_data.get_run_data(YKHO.run_no_fa.edx_course_key)
lVhR = YKHO.user_edx_data.get_run_data(YKHO.run_no_fa_with_cert.edx_course_key)
ZA9g = nNXP._compute_grade_for_non_fa(fKtm)
jqtH = nNXP._compute_grade_for_non_fa(lVhR)
assert isinstance(ZA9g, nNXP.UserFinalGrade)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KN65(YKHO):\n VXBI = YKHO.run_no_fa.edx_course_key\n h21A = YKHO.enrollments.get(VXBI)\n h21A.data['mode'] = 'audit'\n h21A.save()\n fKtm = BHZ6(YKHO.user).get_run_data(VXBI)\n ZA9g = nNXP._compute_grade_for_non_fa(fKtm)\n assert ZA9g.passed is False\n assert ZA9g.grade == YKHO.current_... | [
"0.7449123",
"0.7172691",
"0.6934194",
"0.6845325",
"0.6771665",
"0.66394556",
"0.62321645",
"0.62225044",
"0.6219886",
"0.6115952",
"0.6055114",
"0.6008568",
"0.5995308",
"0.5902764",
"0.5860871",
"0.58416694",
"0.5766427",
"0.5741464",
"0.5663525",
"0.5646239",
"0.56410325"... | 0.76838845 | 0 |
Test for freeze_user_final_grade function in case of problems with can_freeze_grades | def ebnr(YKHO, AHvI, fYBw, yGA0):
if not AHvI:
OI0O = nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_no_fa, raise_on_exception=AHvI)
assert OI0O is None
else:
with YKHO.assertRaises(rvTC):
nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_no_fa, raise_on_exception=AHvI)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iAy8(YKHO, fYBw):\n OI0O = nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_fa)\n assert OI0O is not None\n fYBw.assert_called_once_with(YKHO.user, YKHO.run_fa.courseware_backend)\n SnZh = R4g3.objects.filter(user=YKHO.user, course_run=YKHO.run_fa)\n assert SnZh.exists() is True\n k52Y = SnZh... | [
"0.7737555",
"0.71023345",
"0.6887532",
"0.68358195",
"0.6717333",
"0.66303194",
"0.6513489",
"0.64620644",
"0.6424896",
"0.63506234",
"0.6249073",
"0.62296885",
"0.62096304",
"0.6140181",
"0.6131668",
"0.60596246",
"0.6037631",
"0.59900254",
"0.5823876",
"0.5664098",
"0.5648... | 0.7199838 | 1 |
Test for freeze_user_final_grade function in case of problems with can_freeze_grades | def LS9m(YKHO, AHvI, fYBw, yGA0):
with YKHO.assertRaises(rqaQ):
nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_fa_with_cert, raise_on_exception=AHvI)
assert fYBw.called is False
assert yGA0.called is False
assert R4g3.objects.filter(user=YKHO.user, course_run=YKHO.run_fa_with_cert).exists() is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iAy8(YKHO, fYBw):\n OI0O = nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_fa)\n assert OI0O is not None\n fYBw.assert_called_once_with(YKHO.user, YKHO.run_fa.courseware_backend)\n SnZh = R4g3.objects.filter(user=YKHO.user, course_run=YKHO.run_fa)\n assert SnZh.exists() is True\n k52Y = SnZh... | [
"0.7737577",
"0.7199939",
"0.7102701",
"0.68877465",
"0.68361056",
"0.67167324",
"0.6513722",
"0.64618814",
"0.6423161",
"0.6350178",
"0.6248673",
"0.6229237",
"0.62100387",
"0.61390656",
"0.61300266",
"0.6060188",
"0.6037028",
"0.598898",
"0.58233047",
"0.5662636",
"0.564871... | 0.66305953 | 6 |
Test for freeze_user_final_grade function in case of problems with refresh of cache | def qhXU(YKHO, AHvI, fYBw, yGA0):
fYBw.side_effect = AttributeError
if not AHvI:
OI0O = nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_fa, raise_on_exception=AHvI)
assert OI0O is None
else:
with YKHO.assertRaises(rvTC):
nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iAy8(YKHO, fYBw):\n OI0O = nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_fa)\n assert OI0O is not None\n fYBw.assert_called_once_with(YKHO.user, YKHO.run_fa.courseware_backend)\n SnZh = R4g3.objects.filter(user=YKHO.user, course_run=YKHO.run_fa)\n assert SnZh.exists() is True\n k52Y = SnZh... | [
"0.7502469",
"0.6959369",
"0.6733671",
"0.657036",
"0.6509941",
"0.615717",
"0.6146293",
"0.60068595",
"0.5829996",
"0.58210623",
"0.5634144",
"0.5602666",
"0.5602666",
"0.5545304",
"0.55379504",
"0.5519758",
"0.5508226",
"0.54770494",
"0.544707",
"0.5442548",
"0.5433099",
... | 0.6677258 | 3 |
Test for freeze_user_final_grade function in case it is called multiple times | def KAbA(YKHO, fYBw):
SnZh = R4g3.objects.filter(user=YKHO.user, course_run=YKHO.run_fa)
assert SnZh.count() == 0
OI0O = nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_fa)
assert OI0O is not None
fYBw.assert_called_once_with(YKHO.user, YKHO.run_fa.courseware_backend)
assert SnZh.count() == 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iAy8(YKHO, fYBw):\n OI0O = nNXP.freeze_user_final_grade(YKHO.user, YKHO.run_fa)\n assert OI0O is not None\n fYBw.assert_called_once_with(YKHO.user, YKHO.run_fa.courseware_backend)\n SnZh = R4g3.objects.filter(user=YKHO.user, course_run=YKHO.run_fa)\n assert SnZh.exists() is True\n k52Y = SnZh... | [
"0.75572973",
"0.67121446",
"0.6682229",
"0.64011884",
"0.63792175",
"0.6044655",
"0.6022145",
"0.6013583",
"0.59605396",
"0.5822584",
"0.568876",
"0.56688523",
"0.5658237",
"0.5655895",
"0.56519324",
"0.5609026",
"0.55625224",
"0.5539334",
"0.55308926",
"0.5511957",
"0.54825... | 0.6989801 | 1 |
Path to a SQL file in GCS from which slave | def TjrZ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'dump_file_path') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _cA3(qaEx: str) -> str:\n NdnR = wOGa.get('core', 'dags_folder')\n return Hy7s.path.join(NdnR, qaEx)",
"def QKV0():\n return WQbV('vmchecker.db')",
"def Uri0():\n return SEGf.db_abs_path",
"def iQpJ() -> h8nf[str]:\n return P6bq.resource(Lsgs)",
"def HpPb():\n ThuT = tgzD()\n if Th... | [
"0.6570352",
"0.6337562",
"0.61601675",
"0.6019517",
"0.575131",
"0.5750995",
"0.5684781",
"0.56641835",
"0.56469953",
"0.5588826",
"0.5583271",
"0.55711913",
"0.55524445",
"0.54537684",
"0.5451777",
"0.5401942",
"0.53956896",
"0.5386684",
"0.53612745",
"0.5326617",
"0.531675... | 0.0 | -1 |
True if binary logging is enabled. If `settings.backup_configuration.enabled` is false, this must be as well. Cannot be used with Postgres. | def znuA(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'binary_log_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znuA(YKHO) -> bool:\n return qe4Y.get(YKHO, 'binary_log_enabled')",
"def xZZB(YKHO) -> bool:\n return qe4Y.get(YKHO, 'replication_log_archiving_enabled')",
"def wwDJ(YKHO) -> bool:\n return qe4Y.get(YKHO, 'rdb_backup_enabled')",
"def WZHJ(YKHO) -> bool:\n return bool(YKHO.log)",
"def wwDJ(Y... | [
"0.80881053",
"0.64237684",
"0.62050253",
"0.58953696",
"0.5890366",
"0.58014375",
"0.58014375",
"0.5743403",
"0.56860447",
"0.5669001",
"0.56140566",
"0.556816",
"0.5505974",
"0.54832786",
"0.5447606",
"0.5418352",
"0.5400761",
"0.54005146",
"0.5331315",
"0.5326893",
"0.5325... | 0.73073024 | 1 |
A name for this whitelist entry. | def mWFP(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO) -> q8sV:\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO['name']",
"def bXNp(YKHO):\n return 'name'",
"def mWFP(YKHO):\n return YKHO._get_field('name')",
"def mWFP(YKHO) -> str:\n return YKHO.data['name']",
"def mWFP(YKHO) -> 'str':\n return YKHO._attrs.get('name')"... | [
"0.72328705",
"0.69246775",
"0.6906273",
"0.6827609",
"0.680313",
"0.67992175",
"0.67992175",
"0.67992175",
"0.6784326",
"0.67659515",
"0.67427385",
"0.67403865",
"0.6739837",
"0.67138046",
"0.6710445",
"0.6706388",
"0.6700021",
"0.6665725",
"0.66586107",
"0.6649848",
"0.6639... | 0.0 | -1 |
A name for this whitelist entry. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO) -> q8sV:\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO['name']",
"def bXNp(YKHO):\n return 'name'",
"def mWFP(YKHO):\n return YKHO._get_field('name')",
"def mWFP(YKHO) -> str:\n return YKHO.data['name']",
"def mWFP(YKHO) -> 'str':\n return YKHO._attrs.get('name')"... | [
"0.72328705",
"0.69246775",
"0.6906273",
"0.6827609",
"0.680313",
"0.67992175",
"0.67992175",
"0.67992175",
"0.6784326",
"0.67659515",
"0.67427385",
"0.67403865",
"0.6739837",
"0.67138046",
"0.6710445",
"0.6706388",
"0.6700021",
"0.6665725",
"0.66586107",
"0.6649848",
"0.6639... | 0.0 | -1 |
Get the name of the C{Mediator}. | def TwaK(YKHO):
return YKHO.mediatorName | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0tD(YKHO) -> str:\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__nam... | [
"0.72800654",
"0.7248535",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
"0.7203252",
... | 0.9000559 | 0 |
decrease the learning rate | def e_63(K0do, qtWj):
tspZ = GPtr.optimizer.lr
b6Gq = GPtr.lr_schedule if hasattr(GPtr, 'lr_schedule') else 'fixed'
if b6Gq == 'fixed':
if qtWj >= 0.75 * GPtr.epochs:
tspZ = GPtr.optimizer.lr * 0.1
if qtWj >= 0.9 * GPtr.epochs:
tspZ = GPtr.optimizer.lr * 0.01
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tXpm(YPaw, y7GR, ElIv=0.05):\n dWkw = []\n O8F9 = []\n for Lwm5 in y7GR.param_groups:\n dWkw.append(Lwm5['lr'])\n Lwm5['lr'] *= 1 - ElIv\n O8F9.append(Lwm5['lr'])\n print('Step {}: learning rate decreased from {} to {}'.format(YPaw, dWkw, O8F9))",
"def baEe(YKHO, aM8h):\n ... | [
"0.73365825",
"0.6999569",
"0.69734424",
"0.6962472",
"0.6850783",
"0.6850783",
"0.6736016",
"0.67287916",
"0.6726578",
"0.67016196",
"0.6700515",
"0.6699682",
"0.66969526",
"0.66909665",
"0.66878617",
"0.6660984",
"0.6660523",
"0.66366637",
"0.661834",
"0.66054904",
"0.65952... | 0.0 | -1 |
Maps a screen space point into the "index" space of the plot. Overrides the BaseXYPlot implementation, and always returns an array of (index, value) tuples. | def KddN(YKHO, tJrW, qAdU=True):
WKvO, LVAh = tJrW
if YKHO.orientation == 'v':
WKvO, LVAh = (LVAh, WKvO)
return qw7D((YKHO.index_mapper.map_data(WKvO), YKHO.value_mapper.map_data(LVAh))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vn7Z(YKHO, WKvO, LVAh):\n YRbF = (LVAh - YKHO.y0) // YKHO.dy\n r845 = (WKvO - YKHO.x0) // YKHO.dx\n YRbF = min(max(YRbF, 0), YKHO.n - 1)\n r845 = min(max(r845, 0), YKHO.m - 1)\n return [YRbF, r845]",
"def jp_7(WKvO, LVAh):\n d6pt = LVAh * ZLJ_ + WKvO\n return d6pt",
"def KddN(YKHO, tJr... | [
"0.6980833",
"0.68462366",
"0.6649012",
"0.6581632",
"0.64304787",
"0.64304787",
"0.631502",
"0.6189823",
"0.6125921",
"0.61189723",
"0.61037165",
"0.61012393",
"0.60952544",
"0.6077649",
"0.60667634",
"0.60373825",
"0.6021788",
"0.5979914",
"0.59521407",
"0.59498024",
"0.593... | 0.6236935 | 7 |
Creates OperationContract that creates a new Spinnaker Application. | def LUif(YKHO):
hLKG = s7If.Contract()
return aevO.OperationContract(YKHO.agent.make_create_app_operation(bindings=YKHO.bindings, application=YKHO.TEST_APP, account_name=YKHO.bindings['SPINNAKER_KUBERNETES_V2_ACCOUNT'], cloud_providers='kubernetes'), contract=hLKG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPKU(mWFP=None, JBZA=None):\n pass",
"def LUif(YKHO):\n raise NotImplementedError",
"def aPKU(YKHO, VpPs):\n YKHO.__obj = NEJV({WKvO: None for WKvO in YKHO.swagger_map.values()}, YKHO.swagger_types, YKHO.swagger_map)\n YKHO.application_name = VpPs",
"def g8SW(cUQu):\n return LUif()",
"de... | [
"0.6613759",
"0.65725696",
"0.633897",
"0.6330158",
"0.63220245",
"0.61545676",
"0.61485475",
"0.59482026",
"0.58919764",
"0.5861866",
"0.5850188",
"0.58348453",
"0.5783369",
"0.5757614",
"0.5734933",
"0.57022",
"0.5699147",
"0.5669042",
"0.5607267",
"0.5598983",
"0.5572484",... | 0.81362826 | 0 |
Creates OperationContract for deploying an unversioned configmap To verify the operation, we just check that the configmap was created with the correct 'value'. | def dsrf(YKHO, BWXx):
mWFP = YKHO.TEST_APP + '-configmap'
Kz8N = YKHO.mf.config_map(mWFP, {'value': BWXx})
Kz8N['metadata']['annotations'] = {'strategy.spinnaker.io/versioned': 'false'}
pB3N = YKHO.agent.make_json_payload_from_kwargs(job=[{'cloudProvider': 'kubernetes', 'moniker': {'app': YKHO.TEST_APP}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1NV(YKHO, DpZH):\n krED = YKHO.bindings\n mWFP = YKHO.TEST_APP + '-configmap'\n pB3N = YKHO.agent.make_json_payload_from_kwargs(job=[{'cloudProvider': 'kubernetes', 'moniker': {'app': YKHO.TEST_APP}, 'account': krED['SPINNAKER_KUBERNETES_V2_ACCOUNT'], 'source': 'text', 'type': 'deployManifest', 'user... | [
"0.6155861",
"0.6141777",
"0.5264338",
"0.5183196",
"0.5053572",
"0.50522214",
"0.5027589",
"0.5027439",
"0.5019772",
"0.49927342",
"0.49925116",
"0.4974761",
"0.49465528",
"0.48903486",
"0.4855246",
"0.4847247",
"0.47990453",
"0.47681066",
"0.47518644",
"0.47447598",
"0.4737... | 0.6925735 | 0 |
Get the distance as crow flies between two coordinates | def yrGf(YKHO, JZXy, e1vZ):
igSk = JZXy[0]
TGuP = e1vZ[0]
GgQG = JZXy[1]
tk0B = e1vZ[1]
A3Vt = 6370000
upem = epAf.radians(igSk)
WMf6 = epAf.radians(TGuP)
XSUs = epAf.radians(TGuP - igSk)
maQc = epAf.radians(tk0B - GgQG)
jzdc = epAf.sin(XSUs / 2) * epAf.sin(XSUs / 2) + epAf.cos(u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO, dg7v, iYf1):\n WKvO = (iYf1.x - dg7v.x) ** 2\n LVAh = (iYf1.y - dg7v.y) ** 2\n Csk6 = int(round(epAf.sqrt(WKvO + LVAh)))\n return Csk6",
"def Ayfi(YKHO, mAYH, pks6):\n return (abs(mAYH.x - pks6.x) + abs(mAYH.y - pks6.y) + abs(mAYH.z - pks6.z)) // 2",
"def zG70(o4D3, si3g, ajwV, sk... | [
"0.7777233",
"0.7678705",
"0.76623553",
"0.7549913",
"0.75067663",
"0.7465363",
"0.736125",
"0.735324",
"0.7338006",
"0.7332018",
"0.7324709",
"0.7270603",
"0.72402084",
"0.72339714",
"0.7232275",
"0.72285545",
"0.7219897",
"0.72177947",
"0.72145826",
"0.7201719",
"0.7195925"... | 0.0 | -1 |
Similar to MATLAB's unique(A, 'rows'), this returns B, I, J where B is the unique rows of A and I and J satisfy | def dayi(YKHO, k0lF, oQ6S=False, jcN9=False):
k0lF = oyIN.require(k0lF, requirements='C')
assert k0lF.ndim == 2, "array must be 2-dim'l"
tjUW = oyIN.unique(k0lF.view([('', k0lF.dtype)] * k0lF.shape[1]), return_index=oQ6S, return_inverse=jcN9)
if oQ6S or jcN9:
return (tjUW[0].view(k0lF.dtype).res... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RR7x(jzdc):\n T4Wy = oyIN.lexsort(jzdc.T)\n jzdc = jzdc[T4Wy]\n yk4i = oyIN.diff(jzdc, axis=0)\n GD_A = oyIN.ones(len(jzdc), 'bool')\n GD_A[1:] = (yk4i != 0).any(axis=1)\n return jzdc[GD_A]",
"def _NJ_(jzdc):\n T4Wy = XTiz.lexsort(jzdc.T)\n E4mu = XTiz.argsort(T4Wy)\n jzdc = jzdc[T... | [
"0.7306203",
"0.7206575",
"0.7162544",
"0.71219265",
"0.7078156",
"0.6869779",
"0.6758558",
"0.66595024",
"0.66167706",
"0.65385425",
"0.6434616",
"0.64217526",
"0.635455",
"0.63533914",
"0.6352573",
"0.6288619",
"0.6139441",
"0.6102825",
"0.60934585",
"0.60439044",
"0.604065... | 0.6987091 | 5 |
Get the sorting key for a particular connection. | def iHzH(w2B8):
BA5C = wUCg.State.get(w2B8['state'])
if BA5C is wUCg.State.ABANDONED:
ERdq = '2'
elif BA5C is wUCg.State.INVITATION:
ERdq = '1'
else:
ERdq = '0'
return ERdq + w2B8['created_at'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJbe(YKHO) -> str:\n return YKHO.name",
"def gpXh(YKHO):\n ...",
"def uufX(YKHO, Jyyj):\n if not Jyyj.is_relation:\n return -1\n return 0 if Jyyj.many_to_many else 1",
"def ezv3(YKHO, qv1X):\n gpXh = qv1X.params.get('sort_key', 'created_at')\n if gpXh is not None and gpXh not in ... | [
"0.7124491",
"0.61719435",
"0.6006381",
"0.59646034",
"0.593306",
"0.59151715",
"0.58708483",
"0.58708483",
"0.574168",
"0.5732659",
"0.57320905",
"0.57227623",
"0.57149255",
"0.571128",
"0.5657148",
"0.56437886",
"0.5617406",
"0.554018",
"0.550515",
"0.5501648",
"0.549187",
... | 0.72920924 | 0 |
Set the observation vector. Set the complete observation vector for the Model object. That is, the independentVariable ('lambda'), the observation ('y') and the observation error ('sigma_y'). These attributes can be accessed directly, but this method also performs a consistency check, and raises a ValueError if there i... | def cd2Q(YKHO, jdT7=None, rNYq=None, sJFF=None):
if jdT7 is not None:
YKHO.independentVariable = jdT7
if rNYq is not None:
YKHO.observation = rNYq
if sJFF is not None:
YKHO.observationError = sJFF
if not YKHO.checkObservation():
raise ValueError("The elements of the obser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, ViKG):\n YKHO.vector = ViKG",
"def CQs6(YKHO) -> gyIm:\n return YKHO.data.obs_se ** (2 * YKHO.data.weight)",
"def MW7o(YKHO, zJuN, GkMZ, SVRR):\n return",
"def UQha(YKHO, OXTU):\n KiYJ = YKHO._nobs\n if OXTU < KiYJ:\n raise ValueError('num_obs must be >= ' + str(KiYJ))\n ... | [
"0.5568753",
"0.54498786",
"0.54224336",
"0.5416824",
"0.52469414",
"0.50637823",
"0.5058865",
"0.50526947",
"0.50526947",
"0.5049094",
"0.5030915",
"0.50155795",
"0.49833998",
"0.49803352",
"0.4980099",
"0.49770597",
"0.49372035",
"0.48916665",
"0.48763168",
"0.48652416",
"0... | 0.7341851 | 0 |
Set up the prior error covariance transformation matrices. Use the a priori error covariance matrix to initialize the L{priorSinvh}, L{priorSinv} and L{priorSh} instance variables. These do not change between iterations. | def eq98(YKHO):
Sno7, Utff, sr87 = oyIN.linalg.linalg.svd(YKHO.model.priorCovariance, full_matrices=False)
aQOl = sr87.T
YKHO.priorSinvh = aQOl * oyIN.matrix(oyIN.diag(oyIN.sqrt(1.0 / Utff))) * Sno7.T
YKHO.priorSh = Sno7 * oyIN.matrix(oyIN.diag(oyIN.sqrt(Utff))) * sr87
YKHO.priorSinv = aQOl * oyIN.m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TpQl(YKHO):\n Gh6M = None\n ygSF = None\n if YKHO.prior_inifile != None:\n Gh6M, ygSF = YKHO._setprior_from_inifile()\n elif YKHO.use_generic_prior:\n YKHO._setprior_generic_agriculture()\n ygSF = YKHO.generic_prior_unc\n else:\n Xkrd = YKHO.get_npts()\n CaXC =... | [
"0.6002748",
"0.5786807",
"0.5702269",
"0.5545899",
"0.5535561",
"0.551192",
"0.5480139",
"0.54198855",
"0.53890663",
"0.53867537",
"0.53808546",
"0.53593266",
"0.53485334",
"0.5320111",
"0.5243556",
"0.5231042",
"0.5218979",
"0.5210285",
"0.51924026",
"0.5178953",
"0.5174805... | 0.7580126 | 0 |
Returns the number of seconds used for segmenting captions. | def C6wh(YKHO):
return YKHO._seconds | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z0YJ(YKHO):\n return 0",
"def m3XP(YKHO):\n \"\"\"Should not set track length\"\"\"\n return YKHO.duration / float(YKHO.samplerate)",
"def m3XP(YKHO):\n return YKHO.get_data('duration_in_seconds')",
"def C6wh(YKHO):\n Os4s = YKHO.end or rIAI.now()\n Aofo = Os4s - YKHO.start\n return ... | [
"0.7115835",
"0.7081439",
"0.7008578",
"0.6998995",
"0.6798374",
"0.6795163",
"0.676873",
"0.6734322",
"0.67157626",
"0.6711243",
"0.6666995",
"0.66147953",
"0.65985173",
"0.6561468",
"0.65420717",
"0.653661",
"0.65087306",
"0.6479792",
"0.64749396",
"0.6471311",
"0.6456956",... | 0.6955087 | 4 |
This function will return a random datetime between two datetime objects. | def qzrO(yKcO, Os4s):
RA_F = Os4s - yKcO
lFaR = RA_F.days * 24 * 60 * 60 + RA_F.seconds
ij4K = qukk(lFaR)
return yKcO + fCoM(seconds=ij4K) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzrO(yKcO, Os4s):\n return yKcO + qcWV.timedelta(seconds=tuKI.randint(0, int((Os4s - yKcO).total_seconds())))",
"def qzrO(yKcO, Os4s):\n RA_F = Os4s - yKcO\n lFaR = RA_F.days * 24 * 60 * 60 + RA_F.seconds\n ij4K = qukk(lFaR)\n return yKcO + fCoM(seconds=ij4K)",
"def YUTi(kepv, KhBf):\n RA... | [
"0.77918494",
"0.75647223",
"0.754578",
"0.75309545",
"0.7509593",
"0.7509593",
"0.7509593",
"0.7509593",
"0.7509593",
"0.7405053",
"0.7334951",
"0.7235134",
"0.7207752",
"0.7169905",
"0.6945745",
"0.6864313",
"0.67521274",
"0.66044766",
"0.6574501",
"0.6525121",
"0.6248982",... | 0.7562488 | 2 |
Used by the Battlesnake Engine to make sure your snake is still working. | def LeQ0():
return SmhL(status=200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8Nm(YKHO):\n for mrj1 in YKHO.pieces:\n if not mrj1.destroyed:\n return False\n print('Signal.END')\n return True",
"def bl5d(YKHO):\n if YKHO.check_snake():\n _qFj = on8l.Button(tk5Y, text='Again?')\n _qFj.pack()\n _qFj.bind('<Button-1>', lambda tvqc: [_qF... | [
"0.65386605",
"0.6491813",
"0.647458",
"0.6407715",
"0.6376059",
"0.63720906",
"0.63428444",
"0.634256",
"0.62999684",
"0.62779033",
"0.6273772",
"0.62673014",
"0.62650895",
"0.62641495",
"0.6253997",
"0.62258834",
"0.621677",
"0.61663955",
"0.60920846",
"0.6077571",
"0.60706... | 0.0 | -1 |
Returns the default collector settings | def yDgW(YKHO):
GPtr = super(VfVM, YKHO).get_default_config()
GPtr.update({'path': 'numa', 'bin': YKHO.find_binary('numactl')})
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDgW(YKHO):\n GPtr = super(leyK, YKHO).get_default_config()\n GPtr.update({'enabled': 'True', 'fs': ',', 'timeout': 300})\n return GPtr",
"def qimH():\n return {}",
"def yDgW(YKHO):\n GPtr = super(iwOa, YKHO).get_default_config()\n GPtr.update({'url': lMln, 'path': 'dropwizard'})\n ret... | [
"0.70514023",
"0.7008024",
"0.69490683",
"0.6713433",
"0.65743333",
"0.65309024",
"0.6521635",
"0.6515402",
"0.6466526",
"0.6447688",
"0.641337",
"0.6397818",
"0.6380512",
"0.63683224",
"0.6357208",
"0.63517016",
"0.6331759",
"0.63120294",
"0.62353724",
"0.6231899",
"0.620749... | 0.6063105 | 26 |
Transform the 1d standard deviation of the quaternions as \sigma = mean[ cos^{1} (q_i \cdot \bar{q}) ] where \bar{q} = average_quaternion(quaternions) | def amrp(urL5, _mSQ=None, qqgr=None):
if qqgr is None:
qqgr = JHcb(urL5, _mSQ)
lbHk = 2 * oyIN.arccos(oyIN.dot(urL5, qqgr))
if _mSQ is not None:
lbHk = lbHk * _mSQ
return oyIN.sqrt(oyIN.sum(oyIN.square(lbHk)) / (lbHk.size - 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shcK(urL5):\n if len(urL5) <= 0:\n return oyIN.nan\n elif len(urL5) == 1:\n return urL5[0]\n elif len(urL5) == 2:\n hbUd = oyIN.asarray(urL5[0])\n BzON = oyIN.asarray(urL5[1])\n BJ1H = oyIN.dot(hbUd, BzON)\n if BJ1H < 0:\n BzON = -1 * BzON\n ... | [
"0.6947044",
"0.62568194",
"0.62214327",
"0.6136503",
"0.60777205",
"0.60298884",
"0.60150236",
"0.6013659",
"0.58779263",
"0.5851462",
"0.5850681",
"0.58486146",
"0.58139473",
"0.58139265",
"0.58000535",
"0.5787839",
"0.578402",
"0.57649326",
"0.57586837",
"0.57512265",
"0.5... | 0.59381056 | 8 |
Makes a plot.scatter of group in (). Shows all variables plot to another. | def gXSZ(YKHO, uOe2):
yzDL = YKHO.map_vects(Q8x_)
pW1e = oyIN.array(yzDL)
moMn = pW1e[:, 0]
nPrm['Group'] = rLdf.Series(moMn, index=nPrm.index)
rLdf.scatter_matrix(nPrm[nPrm['Group'] == uOe2], alpha=0.3, figsize=(28, 28)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VE_a(KNEa, NtVk):\n QrM1.scatter(KNEa, NtVk)\n QrM1.show()",
"def JFjE(YKHO):\n QrM1.scatter(YKHO.a1[:, 0], YKHO.a1[:, 1], c='red', alpha=0.5, s=10)\n QrM1.scatter(YKHO.a2[:, 0], YKHO.a2[:, 1], c='blue', alpha=0.5, s=10)\n QrM1.scatter(0, 0, marker='D', c='black', alpha=0.8)\n QrM1.scatter(... | [
"0.76862794",
"0.70073617",
"0.6730948",
"0.6724957",
"0.66006815",
"0.65821755",
"0.6516544",
"0.64948267",
"0.64285254",
"0.6393015",
"0.6301456",
"0.62043196",
"0.6193517",
"0.6193517",
"0.617479",
"0.61629415",
"0.61450654",
"0.6121066",
"0.6117277",
"0.61036426",
"0.6088... | 0.5500761 | 89 |
Initialize window from a string of properties. | def FIMM(YKHO, HeRb):
SQ3m = HeRb.split()
SQ3m.sort()
if len(SQ3m) == 4 and SQ3m[0].startswith('H=') and SQ3m[1].startswith('W=') and SQ3m[2].startswith('X=') and SQ3m[3].startswith('Y='):
YKHO.h = int(SQ3m[0][2:])
YKHO.w = int(SQ3m[1][2:])
YKHO.y = int(SQ3m[2][2:])
YKHO.x = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nux7(leAC, tO9_, TVTK=70, GYqH='', Cg3C='', xuhX='', ZIdq=''):\n yzQ0 = ao30()\n Mkmy = yzQ0.Create(title=leAC, lines=tO9_.split('\\n') if isinstance(tO9_, str) else tO9_, width=TVTK, main_keys=GYqH, alt_keys=Cg3C, ctrl_keys=xuhX, shift_keys=ZIdq)\n return yzQ0.Show()",
"def FIMM(YKHO, s2mk):\n s... | [
"0.5692427",
"0.5652486",
"0.55053866",
"0.53643733",
"0.5330115",
"0.53089744",
"0.5193356",
"0.51897776",
"0.5177125",
"0.5162342",
"0.51559424",
"0.5151832",
"0.51504785",
"0.5093747",
"0.5093496",
"0.50770414",
"0.5055365",
"0.50533885",
"0.50476974",
"0.50416225",
"0.503... | 0.60821855 | 0 |
Get the node expected value. Returns the expected real value of node, based on the current beliefs for node, and if std_dev is nonNULL, std_dev will be set to the standard deviation. Returns UNDEF_DBL if the expected value couldn't be calculated. | def VY82(YKHO, aotE):
aotE = YKHO.getnodenamed(aotE)
ee6l = FqeB(9999)
rNcn = IUwW()
SzKB = IUwW()
tgT5.GetNodeExpectedValue_bn.argtypes = [ojiJ, IUwW, IUwW, IUwW]
tgT5.GetNodeExpectedValue_bn.restype = FqeB
XdiB = tgT5.GetNodeExpectedValue_bn(aotE, dWW6(ee6l), rNcn, SzKB)
return (XdiB, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QddZ(YKHO) -> float:\n if YKHO.__total_pulls == 0:\n raise Exception('Number of pulls is 0. No empirical standard deviation.')\n return epAf.sqrt((YKHO.__sum_of_square_reward - YKHO.__total_rewards ** 2 / YKHO.__total_pulls) / YKHO.__total_pulls)",
"def jXNy(Q6kx, sAvQ, G6WD):\n return oyIN.d... | [
"0.60147876",
"0.58711475",
"0.5704372",
"0.5649904",
"0.5568477",
"0.5474774",
"0.5468214",
"0.5444928",
"0.54414487",
"0.5435085",
"0.5412228",
"0.54116774",
"0.54084724",
"0.54016733",
"0.53982776",
"0.5397043",
"0.5388171",
"0.5373062",
"0.5372943",
"0.5372685",
"0.536912... | 0.8005751 | 0 |
Creates a dictionary of lowercase words as keys and values is a list of each occurence. | def RBrg(YKHO):
vwCE = YKHO.transcript_string.encode('utf-8').split()
uw9g = {}
for GIN8 in vwCE:
if GIN8.isalpha():
if GIN8.islower():
uw9g.setdefault(GIN8, []).append(GIN8)
else:
WEGt = GIN8.lower()
uw9g.setdefault(WEGt, []).a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7B5(V22M):\n pWgo = {}\n for GIN8 in V22M:\n if pWgo.get(GIN8.lower(), None) != None:\n pWgo[GIN8.lower()] = pWgo.get(GIN8.lower()) + 1\n else:\n pWgo[GIN8.lower()] = 1\n return pWgo",
"def V22M(YKHO):\n return {Z9rn: sorted(vC9B) for Z9rn, vC9B in sorted(YKHO... | [
"0.73634344",
"0.70690423",
"0.69722104",
"0.6928977",
"0.67160416",
"0.655981",
"0.65255827",
"0.6483182",
"0.64596575",
"0.6402409",
"0.6382471",
"0.6372438",
"0.6369831",
"0.63506305",
"0.63506305",
"0.63506305",
"0.63506305",
"0.63506305",
"0.63506305",
"0.63506305",
"0.6... | 0.0 | -1 |
Creates a dictionary with each word as they keys and weight as values. References sentence_index and word list. In each keyvalue pair, the key is each word, the value is a tuple | def QrKW(YKHO):
qDZS = {}
for GIN8 in YKHO.word_list:
if GIN8 not in qDZS:
GM6U = GIN8 in vzHA
u54L = len(GIN8)
Gjtu = len(YKHO.word_list[GIN8])
XPB5 = GIN8
Awsr = len(YKHO.sentence_index) - 1
for d6pt, yAmx in YKHO.sentence_index.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E1xT(ol4k):\n RVut = []\n cmPJ = tTte(ol4k)\n Cyld = len(ol4k)\n MM5k = sum(map(len, ol4k)) / Cyld\n for C13M in ol4k:\n AZ4T = []\n Ztoh = len(C13M)\n Dqh7 = cmPJ.doc2bow(C13M)\n for fmri in Dqh7:\n egCR = fmri[1]\n f2gy = cmPJ.dfs[fmri[0]]\n ... | [
"0.6585632",
"0.6318375",
"0.6309345",
"0.6251711",
"0.62190956",
"0.62137204",
"0.6154998",
"0.61176366",
"0.60733944",
"0.60337746",
"0.60201806",
"0.60066915",
"0.6000292",
"0.5979205",
"0.597588",
"0.5960629",
"0.59481394",
"0.59470373",
"0.594699",
"0.59320706",
"0.59192... | 0.61493695 | 7 |
Build an actor (policy) network that maps states > actions. | def KVH6(YKHO, QTBn):
WKvO = vuvg.relu(YKHO.fc1(QTBn))
WKvO = vuvg.relu(YKHO.fc2(WKvO))
return ht2j.tanh(YKHO.fc3(WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1Fc(wspz, HQGy, NArs, h7Vl):\n NtOa = h7Vl + '/'\n with ZylS.variable_scope(h7Vl):\n OCat = ZylS.layers.dense(wspz, units=NArs.actor_hidden_units[0], activation=None, kernel_initializer=NArs.initializer)\n if NArs.use_batch_norm:\n OCat = ZylS.layers.layer_norm(OCat, center=True... | [
"0.69356495",
"0.636351",
"0.6270465",
"0.62087923",
"0.62009275",
"0.6187312",
"0.61473614",
"0.6146225",
"0.6128509",
"0.60179603",
"0.6002386",
"0.5976266",
"0.5959938",
"0.5952642",
"0.594925",
"0.59280884",
"0.5916518",
"0.5898108",
"0.58937097",
"0.5891148",
"0.5880467"... | 0.0 | -1 |
Map COCO label to the label as used in the network. COCO has some gaps in the order of labels. The highest label is 90, but there are 80 classes. | def X6jt(YKHO, RqhP):
return YKHO.coco_labels_inverse[RqhP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EUO8(YKHO, UXqs):\n return YKHO.coco_labels[UXqs]",
"def EUO8(YKHO, UXqs):\n return YKHO.coco_labels[UXqs]",
"def X6jt(YKHO, RqhP):\n return YKHO.coco_labels_inverse[RqhP]",
"def yxv7(YKHO, UXqs: str) -> int:\n return YKHO.class_map[UXqs]",
"def YTnI(X3hi, ZDfp, WPK1=32, d7Va=32, z7Lh=8):\n... | [
"0.74929917",
"0.7477815",
"0.70492953",
"0.6624074",
"0.6605137",
"0.6600722",
"0.6494988",
"0.6397484",
"0.63876444",
"0.62863195",
"0.6259228",
"0.62550527",
"0.6247205",
"0.62332237",
"0.618181",
"0.6179895",
"0.6178193",
"0.6177591",
"0.6175026",
"0.61474305",
"0.6121897... | 0.70390165 | 3 |
Map label as used by the network to labels as used by COCO. | def EUO8(YKHO, UXqs):
return YKHO.coco_labels[UXqs] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EUO8(YKHO, UXqs):\n return YKHO.coco_labels[UXqs]",
"def X6jt(YKHO, RqhP):\n return YKHO.coco_labels_inverse[RqhP]",
"def xMWm(YKHO, UXqs, GOZd=False):\n ycBG = UXqs.copy()\n if GOZd:\n for Ty9i, G1Hx in YKHO.label_mapping.items():\n UXqs[ycBG == G1Hx] = Ty9i\n else:\n ... | [
"0.7404991",
"0.71324396",
"0.7105512",
"0.7097643",
"0.7018557",
"0.67486686",
"0.67026395",
"0.67000383",
"0.664837",
"0.6470152",
"0.6439549",
"0.6426615",
"0.6418375",
"0.64091164",
"0.63283324",
"0.63283324",
"0.63283324",
"0.63283324",
"0.63283324",
"0.63283324",
"0.632... | 0.7354185 | 1 |
calculate backward new Tensor gradient | def ZD5u(YKHO, yLHq: Tensor, RKYb: Tensor, rJag: np.ndarray):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZD5u(YKHO, ICX2: Tensor) -> llWB:\n YKHO.b_grad = oyIN.sum(ICX2, axis=0)\n YKHO.w_grad = YKHO.inputs.T @ ICX2\n return ICX2 @ YKHO.w.T",
"def ZD5u(YKHO):\n ICX2 = MrDr\n return ICX2",
"def ZD5u(YKHO):\n ICX2 = MrDr\n return ICX2",
"def ZD5u(YKHO, ICX2):\n raise NotImplementedError... | [
"0.84203595",
"0.8299815",
"0.8299815",
"0.8266994",
"0.8236108",
"0.8236108",
"0.7854593",
"0.78337586",
"0.7706464",
"0.7631323",
"0.7559718",
"0.75368637",
"0.75330675",
"0.7532979",
"0.74950665",
"0.7486049",
"0.7468978",
"0.74296844",
"0.7417122",
"0.74073696",
"0.739206... | 0.7512873 | 14 |
cat two tensor with the same dim within given axes | def FIMM(YKHO, MPlV: int):
YKHO.axes = MPlV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ACia(h5hN: Tensor, Ycpy: Tensor, MPlV: int) -> llWB:\n vJAQ = M8RW(MPlV)\n return vJAQ(h5hN, Ycpy)",
"def MPiJ(cRc2, jDK_=0):\n raise NotImplementedError",
"def ENFq(jzdc, Fg_i):\n return ht2j.cat((jzdc, Fg_i), 1)",
"def MPiJ(cRc2, jDK_=-1):\n if jDK_ < 0:\n fdMZ = qC1Y(cRc2[0])\n ... | [
"0.7827445",
"0.74524367",
"0.7032378",
"0.663686",
"0.6635489",
"0.65540326",
"0.6547592",
"0.65369856",
"0.65329486",
"0.65106857",
"0.6466926",
"0.6466926",
"0.64273536",
"0.6350371",
"0.6345597",
"0.6317253",
"0.6278702",
"0.626415",
"0.6219375",
"0.62162274",
"0.6215634"... | 0.0 | -1 |
Same as np.reshape, shape must be specified | def Etel(i8WE: Tensor, MPlV) -> llWB:
iuij = Onyu(MPlV)
return iuij(i8WE, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q3V_(YKHO, *ROpF):\n return vuvg.Reshape.apply(YKHO, ROpF)",
"def q3V_(WKvO, ROpF):\n return hekC(ROpF)(WKvO)",
"def q3V_(WKvO, ROpF):\n if WKvO.shape == ROpF:\n return F1PJ.as_variable(WKvO)\n LVAh, = hekC(ROpF).apply((WKvO,))\n return LVAh",
"def fK3f(YKHO, ezWE: np.ndarray) -> oy... | [
"0.808975",
"0.80426913",
"0.7555648",
"0.7548652",
"0.7544351",
"0.7388972",
"0.7381575",
"0.7374622",
"0.7355609",
"0.7296443",
"0.70310396",
"0.69867545",
"0.6939513",
"0.6911108",
"0.6877",
"0.68730307",
"0.6746055",
"0.67414135",
"0.6730201",
"0.67238903",
"0.6723675",
... | 0.0 | -1 |
1hot encodes a tensor | def fKLU(nWzz, jTqs):
return (nWzz, oyIN.eye(jTqs, dtype='uint8')[nWzz]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel",
"def zGX0(YKHO, ezWE, OR2u):\n KLLm = oyIN.zeros((oyIN.multiply(*ezWE.shape), OR2u), dtype=oyIN.float32)\n KLLm[oyIN.arange(KLLm.shape[0]), ezWE.flatten()] = 1.0\... | [
"0.82578593",
"0.8061468",
"0.80140257",
"0.7917851",
"0.7914897",
"0.7883416",
"0.78429884",
"0.78089696",
"0.7765784",
"0.77376443",
"0.77376443",
"0.7733915",
"0.7728651",
"0.77133274",
"0.7686273",
"0.76797515",
"0.75851345",
"0.7560708",
"0.75560004",
"0.75353223",
"0.75... | 0.0 | -1 |
Ensure the number of columns is correct. We could also check other items but for now do not bother. | def UHqo(rdlD):
if len(rdlD) != iakR:
raise ValueError('Row contains {0} columns, expected {1}!\n\n{2}\n'.format(len(rdlD), iakR, rdlD)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RD8A(YKHO):\n pass",
"def y9O7(zFiD):\n if len(zFiD) != 5:\n print(zFiD + ' HAS WRONG NUMBER OF COLUMNS: ' + str(len(zFiD)))\n exit(5)",
"def h3LG():\n l5Ny = q1HU('\\n A B C\\n 1 2 3\\n 4 5 6\\n 7 8 9 10\\n 11 12 13\\n ')\n with trZe.raises(LdsA) as tTpl:\n ... | [
"0.7230864",
"0.6989272",
"0.6918795",
"0.68983734",
"0.6841887",
"0.6794155",
"0.67335033",
"0.6679962",
"0.66472363",
"0.6631311",
"0.6607692",
"0.65550214",
"0.6505293",
"0.6498067",
"0.64914274",
"0.6461276",
"0.64579046",
"0.6453518",
"0.64478564",
"0.6445254",
"0.643038... | 0.674241 | 6 |
Return the cell for the given column name from the row, which is expected to be the return value of a csv reader object. We assume that check_row() has already been called on this row. | def iYZ_(rdlD, FLlb):
try:
return rdlD[AI6A[FLlb]]
except KeyError:
raise ValueError('Invalid column name: {0}!'.format(FLlb)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO, rdlD, tcLV):\n return YKHO[rdlD][YKHO._columns[tcLV]]",
"def NMoC(YKHO, z0q4, begg):\n YKHO.check_for_column(z0q4)\n return YKHO.data[z0q4][begg]",
"def s_9f(YKHO, rdlD: [str], a4rF: str) -> str:\n f1pu = YKHO.header.index(a4rF)\n return rdlD[f1pu]",
"def bwbz(YKHO, *, Csk6, rdl... | [
"0.72102106",
"0.7037878",
"0.70329326",
"0.6848971",
"0.64457536",
"0.6421378",
"0.64083207",
"0.6371583",
"0.635542",
"0.634281",
"0.6336029",
"0.6272615",
"0.61894894",
"0.61894894",
"0.6181252",
"0.6180843",
"0.6179127",
"0.61550033",
"0.6114806",
"0.60768515",
"0.5938038... | 0.6362964 | 8 |
Sets the total_nucleus_clients of this ClientAnalyticsHistory. | def cDsE(YKHO, cDsE):
YKHO._total_nucleus_clients = cDsE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tYhl(YKHO, tYhl):\n YKHO._total_nucleus_clients_active = tYhl",
"def Xetb(YKHO, Xetb):\n YKHO._total_nucleus_clients_inactive = Xetb",
"def _bVc(YKHO, _bVc):\n YKHO._limit_num_clients = _bVc",
"def hoel(YKHO, Onn9: int=50000) -> None:\n YKHO.set_db_conf('maxclients', str(Onn9))",
"def FIMM(... | [
"0.7470305",
"0.6569929",
"0.60935354",
"0.582152",
"0.5813615",
"0.5656197",
"0.5222313",
"0.51853704",
"0.50911915",
"0.49892044",
"0.49373275",
"0.4924496",
"0.49083504",
"0.4883462",
"0.4871158",
"0.48511893",
"0.4834317",
"0.4813732",
"0.4806626",
"0.47913703",
"0.475832... | 0.8933069 | 0 |
Sets the total_nucleus_clients_active of this ClientAnalyticsHistory. | def tYhl(YKHO, tYhl):
YKHO._total_nucleus_clients_active = tYhl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDsE(YKHO, cDsE):\n YKHO._total_nucleus_clients = cDsE",
"def Xetb(YKHO, Xetb):\n YKHO._total_nucleus_clients_inactive = Xetb",
"def iOuf(YKHO, iOuf):\n YKHO._active_users = iOuf",
"def nBs2(YKHO, nBs2):\n YKHO._active_clusters = nBs2",
"def _bVc(YKHO, _bVc):\n YKHO._limit_num_clients = ... | [
"0.8216425",
"0.74747777",
"0.5902427",
"0.57624555",
"0.5488547",
"0.5298516",
"0.52672803",
"0.5254817",
"0.52152616",
"0.5174416",
"0.5126269",
"0.50991493",
"0.5071984",
"0.50326395",
"0.48149082",
"0.48139507",
"0.4780745",
"0.47745016",
"0.47604343",
"0.4741089",
"0.471... | 0.88221914 | 0 |
Sets the total_nucleus_clients_inactive of this ClientAnalyticsHistory. | def Xetb(YKHO, Xetb):
YKHO._total_nucleus_clients_inactive = Xetb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tYhl(YKHO, tYhl):\n YKHO._total_nucleus_clients_active = tYhl",
"def cDsE(YKHO, cDsE):\n YKHO._total_nucleus_clients = cDsE",
"def Ul1a(YKHO, wzkt):\n for M_Ra in YKHO._timestamps.itervalues():\n M_Ra.last_active = min(wzkt - oW3o, M_Ra.last_active)",
"def qEa8(YKHO, qEa8):\n YKHO._ina... | [
"0.70020145",
"0.6538475",
"0.5251399",
"0.5183563",
"0.51755464",
"0.51420754",
"0.510278",
"0.5064587",
"0.49563715",
"0.48837873",
"0.48745427",
"0.48389724",
"0.4765279",
"0.47472858",
"0.46584645",
"0.46230036",
"0.45587987",
"0.45576707",
"0.45302632",
"0.45290178",
"0.... | 0.8986255 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, UxJv):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Return first item in sequence where f(item) == True. | def neBz(eHNT, Q6uT):
for ZfUD in Q6uT:
if eHNT(ZfUD):
return ZfUD
"\n Example usage of iterate: \n >>> c = []; c.append(node(0.5,1,'a')); c.append(node(0.25,2,'b')); c.append(node(0.125,3,'c')); c.append(node(0.125,4,'d')); iterate(c) ; reportco... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qVXO(JfyU, Q6uT):\n return next((ZfUD for ZfUD in Q6uT if JfyU(ZfUD)))",
"def neBz(eHNT, Q6uT):\n for ZfUD in Q6uT:\n if eHNT(ZfUD):\n return ZfUD",
"def A_QS(OxJJ, WmM4=False, nvEb=None):\n return next(filter(nvEb, OxJJ), WmM4)",
"def iN7E(YKHO, OxJJ, XEri=lambda WKvO: True):\... | [
"0.7381083",
"0.7370345",
"0.69793993",
"0.68005335",
"0.67570746",
"0.67258066",
"0.6664692",
"0.66255635",
"0.6597727",
"0.64589864",
"0.64407694",
"0.6315168",
"0.6314598",
"0.63102686",
"0.6286507",
"0.6251015",
"0.6169875",
"0.6169091",
"0.6152609",
"0.6152609",
"0.60645... | 0.5963246 | 23 |
Uses the phonenumbers library to try and parse the phone number and check for it's validity. | def SR9Q(BWXx):
try:
epBp = MBR5.parse(BWXx, None)
except MBR5.NumberParseException:
raise H6V6.ValidationError('Enter a valid phone number.')
if not MBR5.is_valid_number(epBp):
raise H6V6.ValidationError('Enter a valid phone number.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rqRT(L03z, Jyyj):\n if len(Jyyj.data) > 16:\n raise sUXu('Invalid phone number')\n try:\n YnnA = MBR5.parse(Jyyj.data)\n if not MBR5.is_valid_number(YnnA):\n raise sUXu('Invalid phone number')\n except Exception:\n YnnA = MBR5.parse('+1' + Jyyj.data)\n if ... | [
"0.7850687",
"0.7783735",
"0.7569741",
"0.73978966",
"0.73794854",
"0.7283335",
"0.7258522",
"0.72356963",
"0.720666",
"0.72043437",
"0.717047",
"0.7170252",
"0.7161817",
"0.71589524",
"0.71436983",
"0.7115741",
"0.7092493",
"0.7064742",
"0.7024102",
"0.69751966",
"0.69108856... | 0.80537504 | 0 |
Returns a list of canonical pathnames to the files in the directory | def BLLr(AGPF):
cxQf = []
for tlxW, AQSv, RRlC in Hy7s.walk(AGPF):
for IznC in RRlC:
mWFP = Hy7s.path.join(tlxW, IznC)
if czWJ(mWFP):
cxQf.append(Hy7s.path.join(AGPF, mWFP))
if not cxQf:
print('No test files found! Please specify some and try again.\n'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ueXE(YKHO):\n vC9B = []\n for pmON, AQSv, RRlC in Hy7s.walk(YKHO.archive_path):\n for nUeQ in RRlC:\n vC9B.append(Hy7s.path.relpath(Hy7s.path.join(pmON, nUeQ), YKHO.archive_path))\n vC9B.sort()\n return vC9B",
"def OTsP(AGPF):\n xXFf = []\n for tk5Y, uRGD, RRlC in Hy7s.wal... | [
"0.73341644",
"0.6839347",
"0.6802706",
"0.6710588",
"0.66947037",
"0.66181576",
"0.65735364",
"0.6571562",
"0.65599096",
"0.6546754",
"0.65432763",
"0.6539398",
"0.65289783",
"0.6491256",
"0.6490927",
"0.6486839",
"0.64830285",
"0.6464126",
"0.6464126",
"0.6464126",
"0.64601... | 0.6029069 | 98 |
Gets the path to the asset as it will be seen from the device | def fIyc(QOe9):
return HKHI + Hy7s.path.basename(QOe9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyQC(YKHO):\n raise NotImplementedError('This asset does not support absolute paths')",
"def B1tp(YKHO) -> str:\n return YKHO._assets_path",
"def wz0P(QOe9):\n return HKHI + Hy7s.path.basename(QOe9)",
"def OyQC(YKHO, IbHI, xZIs=None):\n if xZIs is None:\n xZIs = not gCuF.DEBUG\n IbH... | [
"0.7675552",
"0.7566313",
"0.7532711",
"0.7286676",
"0.7271101",
"0.7098232",
"0.7019955",
"0.7009695",
"0.68907243",
"0.6770987",
"0.676918",
"0.6759464",
"0.6701161",
"0.6627846",
"0.6624014",
"0.6610173",
"0.6566968",
"0.65633434",
"0.6536629",
"0.6526675",
"0.6488551",
... | 0.6737269 | 12 |
Returns the path that the generated test should be stored at | def GBAW(xs19):
return Hy7s.path.join(g2Re, xs19 + '.java') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NepB(YKHO):\n b2ag = './tests/'\n return b2ag + YKHO.test_name + '_data/'",
"def wBA9():\n pmON, mWFP = Hy7s.path.split(xAKo)\n return Hy7s.path.join(pmON, '..', 'test-data')",
"def qZ7M(YKHO, Ux0P):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'testdata', Ux0P)",
"def qZ7M(YKHO, Ux0P)... | [
"0.76989424",
"0.74078256",
"0.72164226",
"0.72164226",
"0.72164226",
"0.7096474",
"0.7089423",
"0.7062985",
"0.70561725",
"0.70007735",
"0.69481516",
"0.6925794",
"0.6910047",
"0.6903516",
"0.68890107",
"0.6887528",
"0.6762187",
"0.6762187",
"0.6734991",
"0.6713435",
"0.6704... | 0.61335784 | 91 |
r"""Rate (/s) counter for decomptcptxpackets. | def dLUg(YKHO):
try:
return YKHO._decomptcptxpacketsrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tzRR(YKHO):\n try:\n return YKHO._decomptcprxpacketsrate\n except Exception as e:\n raise tTpl",
"def H1cA(YKHO):\n try:\n return YKHO._comprxpacketsrate\n except Exception as e:\n raise tTpl",
"def DUdQ(YKHO):\n try:\n return YKHO._comptcptxpacketsrate\n ... | [
"0.7567904",
"0.747568",
"0.7345198",
"0.73360974",
"0.730946",
"0.72225785",
"0.7172208",
"0.6669232",
"0.6461923",
"0.6397926",
"0.6354336",
"0.63051105",
"0.6285625",
"0.6271034",
"0.62675667",
"0.6229674",
"0.61389595",
"0.6127572",
"0.61240107",
"0.6103677",
"0.6068955",... | 0.7549379 | 1 |
r"""Rate (/s) counter for delcomptcprxpackets. | def iSYX(YKHO):
try:
return YKHO._delcomptcprxpacketsrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YiDy(YKHO):\n try:\n return YKHO._comptcprxpacketsrate\n except Exception as e:\n raise tTpl",
"def H1cA(YKHO):\n try:\n return YKHO._comprxpacketsrate\n except Exception as e:\n raise tTpl",
"def DUdQ(YKHO):\n try:\n return YKHO._comptcptxpacketsrate\n ... | [
"0.77295744",
"0.752629",
"0.73302776",
"0.72378176",
"0.703985",
"0.6703409",
"0.6632302",
"0.6586457",
"0.62852263",
"0.6161554",
"0.61030734",
"0.6030127",
"0.601796",
"0.5971837",
"0.5963117",
"0.5917141",
"0.5911743",
"0.58976233",
"0.58603835",
"0.5823261",
"0.57961375"... | 0.7021776 | 5 |
r"""Rate (/s) counter for decomptcprxpackets. | def tzRR(YKHO):
try:
return YKHO._decomptcprxpacketsrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H1cA(YKHO):\n try:\n return YKHO._comprxpacketsrate\n except Exception as e:\n raise tTpl",
"def YiDy(YKHO):\n try:\n return YKHO._comptcprxpacketsrate\n except Exception as e:\n raise tTpl",
"def MuJn(YKHO):\n try:\n return YKHO._comptxpacketsrate\n exc... | [
"0.76917005",
"0.76905316",
"0.7332458",
"0.7208438",
"0.7160638",
"0.7110362",
"0.6793317",
"0.67846423",
"0.66864043",
"0.658811",
"0.641577",
"0.62377995",
"0.6225643",
"0.6213843",
"0.6112242",
"0.60514754",
"0.6018",
"0.6016582",
"0.6000613",
"0.59748477",
"0.5931265",
... | 0.7658599 | 2 |
r"""Rate (/s) counter for comptcptotalrxbytes. | def oaQH(YKHO):
try:
return YKHO._comptcprxbytesrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T2Uh(YKHO):\n try:\n return YKHO._comprxbytesrate\n except Exception as e:\n raise tTpl",
"def MUgk(YKHO):\n try:\n return YKHO._comptcptotalrxbytes\n except Exception as e:\n raise tTpl",
"def H1cA(YKHO):\n try:\n return YKHO._comprxpacketsrate\n except... | [
"0.76036614",
"0.7290995",
"0.7256721",
"0.710676",
"0.6994817",
"0.6987093",
"0.67987996",
"0.66600233",
"0.65353215",
"0.6479359",
"0.64236563",
"0.6422727",
"0.63634956",
"0.6330343",
"0.62826896",
"0.6126954",
"0.6030352",
"0.59696543",
"0.59655774",
"0.5923639",
"0.59182... | 0.75185215 | 1 |
r"""Rate (/s) counter for comptcptotalrxpackets. | def YiDy(YKHO):
try:
return YKHO._comptcprxpacketsrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H1cA(YKHO):\n try:\n return YKHO._comprxpacketsrate\n except Exception as e:\n raise tTpl",
"def MuJn(YKHO):\n try:\n return YKHO._comptxpacketsrate\n except Exception as e:\n raise tTpl",
"def DUdQ(YKHO):\n try:\n return YKHO._comptcptxpacketsrate\n exc... | [
"0.79030997",
"0.7441263",
"0.7213977",
"0.70567036",
"0.69343543",
"0.6925776",
"0.6902301",
"0.6872605",
"0.66739345",
"0.6578035",
"0.6384799",
"0.63134843",
"0.6285545",
"0.6270689",
"0.625085",
"0.6225871",
"0.62124896",
"0.61500275",
"0.611135",
"0.61102",
"0.5989334",
... | 0.77937853 | 1 |
r"""Rate (/s) counter for comptcptotaltxpackets. | def DUdQ(YKHO):
try:
return YKHO._comptcptxpacketsrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YiDy(YKHO):\n try:\n return YKHO._comptcprxpacketsrate\n except Exception as e:\n raise tTpl",
"def MuJn(YKHO):\n try:\n return YKHO._comptxpacketsrate\n except Exception as e:\n raise tTpl",
"def H1cA(YKHO):\n try:\n return YKHO._comprxpacketsrate\n exc... | [
"0.77696186",
"0.76417744",
"0.7531782",
"0.6809521",
"0.679222",
"0.6697808",
"0.6646873",
"0.65248984",
"0.6507004",
"0.6495431",
"0.64675474",
"0.6449508",
"0.6415337",
"0.6372109",
"0.6344784",
"0.63167787",
"0.6185898",
"0.61819977",
"0.60377073",
"0.60190195",
"0.594939... | 0.74933076 | 3 |
r"""Rate (/s) counter for comptotaltxpackets. | def MuJn(YKHO):
try:
return YKHO._comptxpacketsrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H1cA(YKHO):\n try:\n return YKHO._comprxpacketsrate\n except Exception as e:\n raise tTpl",
"def YiDy(YKHO):\n try:\n return YKHO._comptcprxpacketsrate\n except Exception as e:\n raise tTpl",
"def DUdQ(YKHO):\n try:\n return YKHO._comptcptxpacketsrate\n ... | [
"0.77167064",
"0.7558885",
"0.7278112",
"0.6736333",
"0.6720277",
"0.6714035",
"0.66897345",
"0.66111827",
"0.65670824",
"0.6511434",
"0.64510214",
"0.6258393",
"0.62506986",
"0.61847454",
"0.6172374",
"0.6102235",
"0.60876244",
"0.6054647",
"0.6042492",
"0.5981308",
"0.59470... | 0.77467847 | 0 |