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 |
|---|---|---|---|---|---|---|
Gets cluster diagnostic information. After the operation completes, the Operation.response field contains ``DiagnoseClusterOutputLocation``. | def aW0r(YKHO, ekCf, zn0c, c0yN, ZFzw=yszQ.api_core.gapic_v1.method.DEFAULT, vYBr=yszQ.api_core.gapic_v1.method.DEFAULT, yIVm=None):
if 'diagnose_cluster' not in YKHO._inner_api_calls:
YKHO._inner_api_calls['diagnose_cluster'] = yszQ.api_core.gapic_v1.method.wrap_method(YKHO._cluster_controller_stub.Diagnos... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z2g8(YKHO):\n pmON = '/ws/v1/cluster/info'\n return YKHO.request(pmON)",
"def avNo(YKHO):\n NArs = {}\n nPrm = YKHO._issue_api_request('GetClusterInfo', NArs)\n if 'result' not in nPrm:\n tO9_ = bGrB('API response: %s') % nPrm\n raise AJ5d.SolidFireAPIException(tO9_)\n return ... | [
"0.6906054",
"0.68671006",
"0.66280633",
"0.6549126",
"0.65469635",
"0.6515045",
"0.64416546",
"0.6425163",
"0.6412199",
"0.6334006",
"0.6310987",
"0.6292227",
"0.6237176",
"0.6237176",
"0.62177265",
"0.6147918",
"0.6101321",
"0.6099027",
"0.60836345",
"0.60771024",
"0.604961... | 0.5704306 | 43 |
List of column names within this origin. | def ZWCE(YKHO) -> laHg.Sequence[str]:
return [eHNT.name for eHNT in YKHO.source.schema] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWCE(YKHO):\n return YKHO._column_names",
"def NKcn(YKHO):\n return list(YKHO.values.columns)",
"def Txl5(YKHO):\n return YKHO.column_df().fieldName.tolist()",
"def Txl5(YKHO) -> bdIy[str]:\n return list(YKHO._column_names)",
"def Txl5(YKHO):\n return YKHO._column_names.output",
"def T... | [
"0.8706172",
"0.8610747",
"0.85493183",
"0.84899306",
"0.8478599",
"0.8456411",
"0.8415318",
"0.84054035",
"0.83789647",
"0.8357282",
"0.83456814",
"0.8333934",
"0.8329816",
"0.83174574",
"0.8277971",
"0.8238279",
"0.8199827",
"0.8195261",
"0.8153635",
"0.81515855",
"0.812861... | 0.0 | -1 |
Determines the platform specific Sophos AV logs path regex. | def B2ru(YKHO):
if YKHO.system == 'Darwin':
return u'.*\\.log$'
elif YKHO.system == 'Windows':
return u'.*\\.txt$'
else:
raise OSError('Unsupported operating system: {0}'.format(YKHO.system)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L2DW(YKHO):\n if YKHO.system == 'Darwin':\n return u'/Library/Logs/'\n elif YKHO.system == 'Windows':\n if YKHO.version < '6.0.0000':\n return u'C:\\\\Documents and Settings\\\\All Users\\\\Application Data\\\\Sophos\\\\Sophos Anti-Virus\\\\Logs'\n else:\n retur... | [
"0.6584859",
"0.55331004",
"0.55038655",
"0.5429715",
"0.5384038",
"0.5384038",
"0.5366345",
"0.53511655",
"0.5341395",
"0.5265487",
"0.5205294",
"0.51937103",
"0.51874876",
"0.51426876",
"0.51395357",
"0.5122256",
"0.5094766",
"0.50934994",
"0.50879484",
"0.50727105",
"0.504... | 0.8490776 | 0 |
Adjust the keys in energy_dict to the canonical names. | def B6Oz(ctNh, gUX8):
U5bT = dict()
for H5ew, VYvU in ctNh.items():
Pm3p = gUX8.get(H5ew)
if Pm3p is None:
continue
elif isinstance(Pm3p, list):
for G1Hx in Pm3p:
U5bT[G1Hx] = VYvU
else:
U5bT[Pm3p] = VYvU
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pUsb(dict):\n TDnD = {}\n for DeeE in dict.keys():\n if DeeE == 'EarlyDynasticIIIa' or DeeE == 'ED IIIa':\n TDnD['Frequency_EDIIIa'] = dict[DeeE]\n elif DeeE == 'EarlyDynasticIIIb' or DeeE == 'ED IIIb':\n TDnD['Frequency_EDIIIb'] = dict[DeeE]\n elif DeeE == 'Ebl... | [
"0.6484528",
"0.5853459",
"0.5833453",
"0.5799772",
"0.5702206",
"0.5689865",
"0.568627",
"0.56579256",
"0.56140625",
"0.55922",
"0.55522925",
"0.55060315",
"0.550438",
"0.54580253",
"0.54549825",
"0.5433208",
"0.54265773",
"0.5395313",
"0.5365815",
"0.5357164",
"0.5342123",
... | 0.8077316 | 0 |
Returns the datetime and UTC offset in seconds corresponding to an ISO8601 datetime string. Raises FormatError if the string format is bad. | def Kkmp(Emd4, suRG):
kUBT = Emd4.isodatetime_regex.match(suRG)
if not kUBT:
raise r642('expected UTC ISO 8601 datetime', suRG)
uOe2 = kUBT.groupdict()
T6S7 = [uOe2['year'], uOe2['month'], uOe2['day'], uOe2['hour'], uOe2['minute'], uOe2['second']]
T6S7 = [int(wEf2) for wEf2 in T6S7]
vgXP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UI0_(str):\n kUBT = ogPO.match(str)\n if kUBT is None:\n raise Exception('Illegal ISO-8601 datetime <%s>' % str)\n Gdxb = float(kUBT.group('second'))\n CsFy = int(Gdxb)\n g9FU = int((Gdxb - CsFy) * 1000000.0)\n return qcWV.datetime(year=int(kUBT.group('year')), month=int(kUBT.group('mo... | [
"0.70309585",
"0.6986869",
"0.6942222",
"0.68987167",
"0.68834674",
"0.6864849",
"0.6863481",
"0.6772209",
"0.6612175",
"0.6537529",
"0.65095294",
"0.6497578",
"0.64973813",
"0.6449664",
"0.6351475",
"0.6349706",
"0.63252574",
"0.63252574",
"0.62648976",
"0.61833185",
"0.6176... | 0.69032836 | 3 |
Returns a unicode string of the ISO8601formatted duration corresponding to seconds. | def H_KV(C6wh):
yVtz, CsFy = divmod(C6wh, 60)
ROt1, yVtz = divmod(yVtz, 60)
SQ3m = [u'PT']
FMLJ = '%d'
m7_p = '%02d'
if ROt1:
SQ3m += [FMLJ % ROt1, u'H']
FMLJ = m7_p
if yVtz:
SQ3m += [FMLJ % yVtz, u'M']
FMLJ = m7_p
SQ3m += [FMLJ % CsFy, u'S']
return u'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cOxs(YKHO):\n return gnPz.human_readable_timedelta(YKHO.duration_dict)",
"def DhpL(C6wh):\n EIOD = ''\n if C6wh >= 3600:\n EIOD += '%d:' % (C6wh / 3600)\n C6wh %= 3600\n EIOD += '%02d:%02d' % (C6wh / 60, C6wh % 60)\n return EIOD",
"def yfEd(C6wh: float):\n O66n, C6wh = divmo... | [
"0.76252294",
"0.7462363",
"0.739412",
"0.737232",
"0.7234334",
"0.7231155",
"0.7184346",
"0.71775025",
"0.7038287",
"0.7003959",
"0.6961886",
"0.68772936",
"0.68538743",
"0.6830169",
"0.68194973",
"0.6813394",
"0.6774379",
"0.6725337",
"0.66916853",
"0.66837204",
"0.6667297"... | 0.7377935 | 3 |
Return the number of elements in the stack. | def szAg(YKHO):
return len(YKHO._data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(E5BI):\n return E5BI.size",
"def FFi1(YKHO):\n return len(YKHO.stack)",
"def zNig(YKHO):\n return len(YKHO.stack)",
"def zNig(YKHO):\n return len(YKHO.stack)",
"def zNig(YKHO):\n return len(YKHO.stack)",
"def zNig(YKHO):\n return len(YKHO.stack)",
"def FFi1(YKHO):\n return... | [
"0.85461235",
"0.82929295",
"0.82529175",
"0.8197308",
"0.8197308",
"0.8197308",
"0.815221",
"0.8151536",
"0.8147852",
"0.81332994",
"0.812447",
"0.8080375",
"0.79428905",
"0.78662616",
"0.78580654",
"0.78580654",
"0.7777363",
"0.7777363",
"0.7777363",
"0.77522445",
"0.770111... | 0.0 | -1 |
Return True if the stack is empyt. | def FBfn(YKHO):
return len(YKHO._data) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jojl(H4yH):\n return False",
"def qBib(YKHO) -> bool:\n ...",
"def A4KR(YKHO):\n return YKHO.stack == []",
"def mwbm(YKHO):\n return YKHO.actionStack.empty()",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def A4KR(YKHO):\n return YKHO.stack == []",
"def A4KR(YKHO):\n return YK... | [
"0.7605253",
"0.7594762",
"0.7244841",
"0.7209898",
"0.7189282",
"0.7141695",
"0.7141695",
"0.7105796",
"0.7094837",
"0.7094837",
"0.7094837",
"0.70554435",
"0.7048545",
"0.7014333",
"0.69672215",
"0.69672215",
"0.69672215",
"0.69543606",
"0.6947692",
"0.6947692",
"0.6937064"... | 0.0 | -1 |
Test if QM9 dataset object has same behaviour as AtomsData. | def ZcI0(hHAM, XFmS):
sTkr = Gfmo.AtomsData(hHAM)
LWSD(sTkr, XFmS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfdN(YKHO, __n6):\n return True",
"def ZFqT(YKHO):\n super().check_data()\n for n0Sl, uIyX in enumerate(YKHO._data_to_analyse):\n if uIyX.DATA_FORMAT != 'PyMEICA':\n YKHO.invalid_data_help = f'Non PyMEICA format compatibility not yet implemented: {uIyX.DATA_FORMAT}'\n re... | [
"0.65494215",
"0.64426744",
"0.6413691",
"0.6384567",
"0.63652354",
"0.6341508",
"0.619546",
"0.619546",
"0.619546",
"0.619546",
"0.61486226",
"0.61340994",
"0.6115616",
"0.6115616",
"0.60884243",
"0.6049516",
"0.6049365",
"0.60182786",
"0.6004537",
"0.59607977",
"0.59386706"... | 0.5899553 | 24 |
Test if MD17 dataset object has same behaviour as AtomsData. | def lsio(PWra, QPfS):
sTkr = Gfmo.AtomsData(PWra)
LWSD(sTkr, QPfS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfdN(YKHO, __n6):\n return True",
"def mIwn(__n6):\n return True",
"def SGVO(YKHO, __n6: BaseDataset) -> bool:\n pass",
"def mIwn(__n6):\n return __n6.data.data.ndim == 1",
"def mIwn(__n6):\n return __n6.data.data.ndim == 1",
"def mIwn(__n6):\n return __n6.data.data.ndim == 1",
"d... | [
"0.65417385",
"0.65279937",
"0.6334271",
"0.61898017",
"0.61898017",
"0.61898017",
"0.61898017",
"0.6180167",
"0.61250305",
"0.6094695",
"0.6094695",
"0.6076348",
"0.60360324",
"0.60212386",
"0.6020715",
"0.59850776",
"0.5977836",
"0.59531546",
"0.5943451",
"0.59035546",
"0.5... | 0.66368634 | 0 |
Test if MD17 dataset object has same behaviour as AtomsData. | def _Bk_(_tqh, M5x_):
sTkr = Gfmo.AtomsData(_tqh)
LWSD(sTkr, M5x_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsio(PWra, QPfS):\n sTkr = Gfmo.AtomsData(PWra)\n LWSD(sTkr, QPfS)",
"def GfdN(YKHO, __n6):\n return True",
"def mIwn(__n6):\n return True",
"def SGVO(YKHO, __n6: BaseDataset) -> bool:\n pass",
"def mIwn(__n6):\n return __n6.data.data.ndim == 1",
"def mIwn(__n6):\n return __n6.da... | [
"0.6636431",
"0.6542836",
"0.6528658",
"0.6335753",
"0.6190445",
"0.6190445",
"0.6190445",
"0.6190445",
"0.618044",
"0.61234117",
"0.6096026",
"0.6096026",
"0.60767275",
"0.6036664",
"0.6022024",
"0.60195786",
"0.59854996",
"0.59788805",
"0.59520006",
"0.59450626",
"0.5903244... | 0.5649059 | 36 |
Return the currently active interpreter as a string Enum. | def B6Jl():
eHNT = lYrb().f_back.f_code.co_filename
if ZbWC.match('<pyshell#\\d*>', eHNT):
return 'idle'
elif ZbWC.match('<ipython-', eHNT):
EmyI = lYrb().f_back.f_back
if EmyI and EmyI.f_code.co_filename.endswith('IPython/core/interactiveshell.py'):
if HwRy.stdin.isatty(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4Lq():\n id = FjGO.get_current()\n return LftB(id)",
"def zAg0(YKHO):\n l30h = {Va7S.RUNNING.value: 'running', Va7S.STOPPED.value: 'stopped'}\n return l30h[YKHO.value]",
"def qQ1Y(YKHO):\n return YKHO.ENUM",
"def qQ1Y(YKHO):\n return YKHO.__enum",
"def DghZ(YKHO) -> str:\n return ... | [
"0.61123437",
"0.60924315",
"0.6058915",
"0.60119176",
"0.6006052",
"0.59488493",
"0.58179516",
"0.5815763",
"0.5810805",
"0.57990855",
"0.57823306",
"0.57823306",
"0.57823306",
"0.57823306",
"0.57823306",
"0.57823306",
"0.5752192",
"0.5752192",
"0.57350373",
"0.57060575",
"0... | 0.59202045 | 6 |
Provides the string representation of the class, to be used if directly printed, e.g. print(Route). | def wHJl(YKHO):
eeKy = ''
if YKHO.marked:
eeKy = ' [MARKED FOR DELETION at ' + ITS7.strftime('%X', ITS7.localtime(YKHO.marked_time)) + ']'
return 'Route(dest:' + str(YKHO.address) + ', next: ' + str(YKHO.next_address) + ' (cost: ' + str(YKHO.cost()) + '))' + eeKy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return _RHq(YKHO)",
"def zAg0(YKHO):\n return _RHq(YKHO)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO... | [
"0.7932298",
"0.7932298",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"0.7896386",
"... | 0.0 | -1 |
Return True if a given expression has more than one of any type of term. Examples `x + y + z` = `False` `x^2 + x` = `False` `y + 2x` = `True` `x^2 + 4x^3 + 2y` = `True` | def woN5(lsX7: MathExpression) -> bool:
PwWw: set = set()
ypdN = vKnU(lsX7)
for Q6kx in ypdN:
OXAZ = GVFA(Q6kx)
if not isinstance(OXAZ, K2MA):
continue
IgyJ = (''.join(OXAZ.variables), OXAZ.exponent)
if IgyJ in PwWw:
return True
PwWw.add(IgyJ)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fVaN(a0GJ: Union[TermResult, MathExpression, Literal[False]], TLv5: Union[TermResult, MathExpression, Literal[False]]) -> bool:\n if isinstance(a0GJ, rrak):\n a0GJ = GVFA(a0GJ)\n if isinstance(TLv5, rrak):\n TLv5 = GVFA(TLv5)\n if a0GJ is False or TLv5 is False:\n return False\n ... | [
"0.6935321",
"0.6871834",
"0.66106945",
"0.65747",
"0.65724266",
"0.65420055",
"0.6468949",
"0.6266872",
"0.6244436",
"0.6218923",
"0.61675596",
"0.61671484",
"0.61501545",
"0.6141139",
"0.61173815",
"0.6055204",
"0.6032804",
"0.60299987",
"0.6026352",
"0.6022995",
"0.6001082... | 0.7473774 | 0 |
The secret ID of the ACL token if `pgp_key` has not been set. | def rTi7(YKHO) -> str:
return qe4Y.get(YKHO, 'secret_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTi7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'secret_id')",
"def PqKC(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'token_key_id')",
"def PqKC(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'token_key_id')",
"def PqKC(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4... | [
"0.67638755",
"0.6606191",
"0.6472555",
"0.6472555",
"0.64530313",
"0.64345",
"0.64345",
"0.64345",
"0.64097154",
"0.6388424",
"0.6388424",
"0.6388424",
"0.6388424",
"0.6388424",
"0.6388424",
"0.6385169",
"0.6359614",
"0.63378555",
"0.63378555",
"0.63378555",
"0.63378555",
... | 0.7226401 | 0 |
Change the xaxis label | def VoLU(YKHO, UXqs):
YKHO._send('with g%s' % YKHO.gID)
YKHO._send('xaxis label "' + str(UXqs) + '"')
YKHO.redraw() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def juN5(YKHO, l5Ny):\n YKHO._x_axis.setText(l5Ny)",
"def VoLU(YKHO, *qIxc, **B2fa):\n YKHO._xlabel_ax.set_xlabel(*qIxc, **B2fa)",
"def VoLU(YKHO, UXqs):\n YKHO.chart['xAxis'][0]['name'] = UXqs\n return YKHO",
"def EQBB(YKHO, qkWq=''):\n YKHO.xLabel = qkWq",
"def LHvJ(aNZO=None):\n if not... | [
"0.8101841",
"0.8094946",
"0.8028315",
"0.7776079",
"0.7559378",
"0.7452097",
"0.7435185",
"0.7395389",
"0.7282989",
"0.7270813",
"0.7215338",
"0.7142399",
"0.71012557",
"0.70390886",
"0.70386666",
"0.70250714",
"0.69648755",
"0.6897382",
"0.6887742",
"0.6878315",
"0.6845936"... | 0.7935409 | 3 |
The MMD^2_u unbiased statistic. | def J1fG(nMvt, r8hN, exwG):
hxEc = nMvt[:r8hN, :r8hN]
L1dn = nMvt[r8hN:, r8hN:]
LmKn = nMvt[:r8hN, r8hN:]
return 1.0 / (r8hN * (r8hN - 1.0)) * (hxEc.sum() - hxEc.diagonal().sum()) + 1.0 / (exwG * (exwG - 1.0)) * (L1dn.sum() - L1dn.diagonal().sum()) - 2.0 / (r8hN * exwG) * LmKn.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oAXa(YKHO):\n return YKHO.second.mu() - YKHO.first.mu()",
"def yGTL(YKHO, epBp):\n return 5.0 * oyIN.log10(YKHO.DL(epBp) * 1000000.0 / 10.0)",
"def aedO(nPrm, yHxN, r8hN):\n KkY2 = -2 * nPrm @ yHxN.T\n KkY2 += oyIN.sum(yHxN ** 2, axis=1)\n KkY2 = (KkY2.T + oyIN.sum(nPrm ** 2, axis=1)).T\n ... | [
"0.622899",
"0.6160594",
"0.6053646",
"0.60385454",
"0.59561557",
"0.59358263",
"0.59244466",
"0.59148854",
"0.58946234",
"0.5873493",
"0.5844144",
"0.5815161",
"0.579469",
"0.5793464",
"0.5744658",
"0.5694844",
"0.56753856",
"0.5665717",
"0.5635752",
"0.56075406",
"0.5581555... | 0.60693127 | 2 |
Configure logging for components (servers, routers, gateways). | def TTn9(rfJX=None, eaoR=G9jH.DEBUG, fzag=G9jH.NOTSET):
uaPq = IqMm('%(asctime)s [%(levelname)s] (%(threadName)s) %(message)s')
oTZi = []
if rfJX:
for hOrn in sorted(G9jH._levelToName):
if hOrn < eaoR:
continue
R5Jy = '%s.%s' % (rfJX, G9jH._levelToName[hOrn])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EsWC(YKHO):\n YKHO.log_path = '/home/codio/workspace/.guides/logs/{}'.format('sec' if YKHO.is_secure else 'test')\n YKHO.manager_logger = '{}/manager.log'.format(YKHO.log_path)\n gnPz.clear_out_dir(YKHO.log_path, exclude=['manager.log'])\n YKHO.logger = bo34.logger(YKHO)",
"def EsWC(YKHO):\n f... | [
"0.7211551",
"0.71664375",
"0.7061862",
"0.70308226",
"0.70023906",
"0.6982716",
"0.69145143",
"0.6861415",
"0.68543386",
"0.68273884",
"0.6821548",
"0.6779922",
"0.67655236",
"0.6695674",
"0.6683671",
"0.6682394",
"0.6649902",
"0.66415703",
"0.6604373",
"0.6602399",
"0.65682... | 0.0 | -1 |
Gets the vlan_id of this VlanLogicalConfig. | def Gg4i(YKHO) -> str:
return YKHO._vlan_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gg4i(YKHO):\n return YKHO._vlan_id",
"def nUCN(YKHO):\n return YKHO._get_attribute('vlanId')",
"def c7u8(YKHO):\n return YKHO.vlan_id",
"def GGRp(YKHO):\n return YKHO._vlan",
"def c7u8(YKHO):\n if YKHO.network['provider:network_type'] != 'vlan':\n raise l7Cn('Trying to retrieve VL... | [
"0.82371324",
"0.81609774",
"0.77182305",
"0.7335264",
"0.7273046",
"0.70545965",
"0.70545965",
"0.69914603",
"0.69026655",
"0.68711597",
"0.6828162",
"0.6724867",
"0.6509564",
"0.6509564",
"0.6509564",
"0.6497195",
"0.6475941",
"0.6475941",
"0.6374222",
"0.6362628",
"0.62154... | 0.8034835 | 2 |
Unstack the neighbors indices. | def KT5n(YKHO, gEmA=None):
return YKHO.unstack_elements('neighbors', gEmA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def twzD(YKHO):\n return YKHO.neighbors",
"def INqH(YKHO):\n if not YKHO.boxes:\n h6jP = dict(zip(YKHO.neighbors.keys(), [YRbF for YRbF in range(len(YKHO.neighbors.keys()))]))\n OUfi = {}\n for G1Hx in YKHO.neighbors.keys():\n OUfi[h6jP[G1Hx]] = [h6jP[YRbF] for YRbF in YKHO.... | [
"0.61205107",
"0.61031765",
"0.6085509",
"0.6016653",
"0.5823145",
"0.57586396",
"0.5749686",
"0.57230955",
"0.5712815",
"0.57106775",
"0.57099026",
"0.56938",
"0.5678914",
"0.5643959",
"0.56342053",
"0.563136",
"0.5615499",
"0.56133604",
"0.5593011",
"0.5583487",
"0.55675644... | 0.70824254 | 0 |
Unstack the pooling indices. | def cUsm(YKHO, gEmA=None):
return YKHO.unstack_elements('pools', gEmA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nps3():\n raise NotImplementedError('unstack')",
"def uPKs(YKHO, dBuj, QyVM, M6vu=(1, 2, 2, 1), rrBf='unpool'):\n with ZylS.variable_scope(rrBf):\n zQI_ = ZylS.shape(dBuj)\n o6of = ZylS.reshape(QyVM, (zQI_[0], zQI_[1] * zQI_[2] * zQI_[3]))\n NeBK = ZylS.one_hot(o6of, zQI_[1] * M6vu... | [
"0.6540308",
"0.6371142",
"0.6242874",
"0.6215014",
"0.6093987",
"0.60627586",
"0.5989372",
"0.5976783",
"0.5974685",
"0.59351075",
"0.5920361",
"0.5834957",
"0.5759478",
"0.573603",
"0.57297766",
"0.5720211",
"0.5713547",
"0.5698924",
"0.5697113",
"0.5624939",
"0.5619326",
... | 0.6336126 | 2 |
divide a single list into a list of lists of size n | def nJ0e(OxJJ, exwG=10):
fIb3 = len(OxJJ)
for cXyw in range(0, fIb3, exwG):
yield list(OxJJ[cXyw:min(cXyw + exwG, fIb3)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zIio(list, exwG):\n return XTiz.array_split(list, exwG)",
"def eibr(jzdc, exwG):\n G1Hx, r8hN = divmod(len(jzdc), exwG)\n return (jzdc[YRbF * G1Hx + min(YRbF, r8hN):(YRbF + 1) * G1Hx + min(YRbF + 1, r8hN)] for YRbF in range(exwG))",
"def nJNG(JTgH, exwG):\n NIW9 = len(JTgH) / exwG\n WgRK = [... | [
"0.8105344",
"0.801336",
"0.79278",
"0.7845249",
"0.7841938",
"0.7801616",
"0.7798931",
"0.77795863",
"0.7745875",
"0.7727198",
"0.7705414",
"0.76847935",
"0.7675213",
"0.7667163",
"0.7623365",
"0.7570969",
"0.7474099",
"0.7440496",
"0.74042624",
"0.7394887",
"0.7383826",
"... | 0.0 | -1 |
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... | def type(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO):\n if YKHO.is_local:\n return YKHO.reference.split('/', 1)[0]",
"def AG37(YKHO, Eorv):\n return YKHO.getResourceValue(Eorv, jO3H.type)",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"d... | [
"0.74788994",
"0.7274602",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72744113",
"0.72692746",
"0.7104885",
"0.7104124",
"0.70390034",
... | 0.0 | -1 |
Resend an invitation. If an invitation's state is 'pending', this endpoint will resend the invitation to the associated email address. If an invitation's state is 'accepted' or 'cancelled', the invitation cannot be resent. In order to resend an invitation, the authenticated user must be an admin of the organization tha... | def NMoC(YKHO, AvbF):
raise UAju.MethodNotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cAP5(YKHO, QePW):\n KAOR = YKHO.get_object()\n ZMzz = nRyd(KAOR, data=QePW.data)\n ZMzz.is_valid(raise_exception=True)\n YKHO.perform_update(ZMzz)\n bsKF().send_invitation(KAOR)\n ZMzz = YKHO.serializer_class(KAOR)\n return oGir(ZMzz.data)",
"def q0Fl(YKHO):\n NG81 = iVGz.client('cogn... | [
"0.7419139",
"0.7292466",
"0.65333617",
"0.6394254",
"0.638066",
"0.63311344",
"0.6244555",
"0.61899275",
"0.6184967",
"0.60852784",
"0.60021675",
"0.6001723",
"0.5977592",
"0.59680104",
"0.5967585",
"0.5927632",
"0.5890779",
"0.58595526",
"0.58380854",
"0.5824585",
"0.580932... | 0.0 | -1 |
Get the exception message. | def jv0C(AJ5d):
Ol8d = getattr(AJ5d, 'message', None)
if not Ol8d:
Ol8d = AJ5d.description
if not isinstance(Ol8d, jKi7.string_types):
Ol8d = u'{0}: {1}'.format(AJ5d.__class__.__name__, Ol8d)
return Ol8d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BuEc(YKHO):\n return YKHO._exception_message",
"def jv0C(YKHO):\n RV2b = HwRy.exc_info()\n if len(RV2b) == 3:\n IhVI = str(RV2b[1])\n if RV2b[2] != None:\n IhVI += ' at line ' + str(RV2b[2].tb_lineno)\n return IhVI\n else:\n return ''",
"def uPzq(tTpl):\n ... | [
"0.8887457",
"0.8012507",
"0.7842559",
"0.7628461",
"0.76076204",
"0.76076204",
"0.76076204",
"0.75754756",
"0.7572162",
"0.7566221",
"0.7566221",
"0.75374126",
"0.7523096",
"0.7506072",
"0.7506072",
"0.7506072",
"0.7506072",
"0.7489861",
"0.7459971",
"0.74253917",
"0.7425391... | 0.7973087 | 2 |
API error response handler. If there is an uncaught internal server error it is logged and sent to sentry. | def n7RZ(AJ5d, JBvl=None, MOPg=None):
V4tT = wXSG(QePW, mimetype='application/hal+json')
if MOPg:
V4tT.update(MOPg)
if not hasattr(AJ5d, 'message'):
try:
AJ5d.message = AJ5d.args[0]
except IndexError:
AJ5d.message = ''
TBsA = MidG.serialize(AJ5d)
if JB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C89g(P1dF: str) -> oGir:\n if CaIp():\n return isYT(500)\n return (TvZl('errors/500.html'), 500)",
"def mhZs(Mkmy):\n if isinstance(Mkmy, G4JS.HTTPError):\n Mkmy = Mkmy.response\n bo34.error(f'{Mkmy.request.method} {Mkmy.url}')\n l0b8 = G4JS.status_codes._codes[Mkmy.status_code][... | [
"0.7830141",
"0.7757565",
"0.77498674",
"0.76503587",
"0.76503587",
"0.7627449",
"0.7627449",
"0.7599573",
"0.758453",
"0.75558215",
"0.7541294",
"0.75025517",
"0.748631",
"0.7484819",
"0.7483783",
"0.74802095",
"0.74754596",
"0.74472094",
"0.7440825",
"0.74330276",
"0.742405... | 0.0 | -1 |
Convert dates using the format in SMAP to numpy datetime64 | def Wvhh(_c1T):
if isinstance(_c1T, jUrF):
ciTw = '-'.join([_c1T[:4], _c1T[4:6], _c1T[6:8]])
if len(_c1T) == 15:
kkHZ = ' ' + ':'.join([_c1T[9:11], _c1T[11:13], _c1T[13:15]])
else:
kkHZ = ''
_c1T = oyIN.array([ciTw + kkHZ], dtype='datetime64')
return _c1T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rUw9(_c1T):\n if isinstance(_c1T, oyIN.datetime64):\n _c1T = str(_c1T).replace('-', '.')\n return _c1T",
"def qdUQ(pY5O):\n return rLdf.Timestamp(pY5O).to_pydatetime()",
"def DQN4(zXrx):\n return oyIN.array([qcWV.utcfromtimestamp(Oa8f) for Oa8f in zXrx])",
"def gLw2(JRYC):\n return ... | [
"0.7482759",
"0.6869451",
"0.6835507",
"0.67115957",
"0.65779006",
"0.6575106",
"0.65741915",
"0.64373475",
"0.63701236",
"0.63569987",
"0.63287365",
"0.6312017",
"0.63040376",
"0.62859297",
"0.62517464",
"0.61742043",
"0.61689806",
"0.61027604",
"0.6102119",
"0.6094642",
"0.... | 0.7758289 | 0 |
The key used to retrieve the latitude Returns str OpenDap dataset key for longitude | def D2qK(YKHO):
return lmcP.sel(product=YKHO.product, attr='lonkey').item().format(rdk=YKHO.rootdatakey) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t4f9(YKHO):\n return lmcP.sel(product=YKHO.product, attr='latkey').item().format(rdk=YKHO.rootdatakey)",
"def Wb0t(YKHO):\n H5ew = YKHO.loc.coord\n return H5ew",
"def BoAx(YKHO, Q8CK):\n fopC = Q8CK[:2]\n if len(Q8CK) > 5:\n qtWj = Q8CK[-4:]\n fopC += qtWj\n _UuI = Q8CK[... | [
"0.728013",
"0.67684597",
"0.64821017",
"0.64096946",
"0.63848466",
"0.6378321",
"0.6217103",
"0.62002045",
"0.61979336",
"0.61969143",
"0.60695004",
"0.6040936",
"0.6020594",
"0.6020594",
"0.59818065",
"0.5968375",
"0.5944609",
"0.592683",
"0.5861577",
"0.58372474",
"0.58211... | 0.6943349 | 1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(G6PV, yDHR, dfHy):
cTeO = y7GR.lr * 0.1 * (1 - dfHy * 1.0 / y7GR.niter) ** 0.5
EA8C = y7GR.lr * (1 - dfHy * 1.0 / y7GR.niter) ** 0.5
for Lwm5 in G6PV.param_groups:
Lwm5['lr'] = cTeO
for Lwm5 in yDHR.param_groups:
Lwm5['lr'] = EA8C
return (cTeO, EA8C) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.79913574",
"0.7939993",
"0.7889258",
"0.7827651",
"0.78223044",
"0.7816854",
"0.7809879",
"0.7802364",
"0.77910584",
"0.7788134",
"0.7781728",
"0.7764728",
"0.77639675",
"0.7761158",
"0.77482516",
"0.77379465",
"0.7730999",
"0.7724226",
"0.7711953",
"0.770789",
"0.77039516... | 0.0 | -1 |
Get current player for debugging purposes | def nAM4(YKHO):
import select_play
RKpa = select_play.SelectPlay.current_play
oyg0 = RKpa.get_player()
return oyg0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mCd_(YKHO):\n return YKHO.current_player",
"def mCd_(YKHO):\n return YKHO.__player",
"def nAM4(YKHO):\n return YKHO.player",
"def nAM4(YKHO):\n return YKHO.player",
"def mCd_(YKHO):\n return YKHO.__current_player",
"def mCd_(YKHO):\n return YKHO.__current_player",
"def mCd_(YKHO):... | [
"0.8270892",
"0.82608837",
"0.80722004",
"0.80722004",
"0.8053029",
"0.8053029",
"0.8036908",
"0.80088013",
"0.7979151",
"0.78631604",
"0.78631604",
"0.78631604",
"0.78631604",
"0.78631604",
"0.77692956",
"0.7705425",
"0.76811504",
"0.76741326",
"0.75421774",
"0.746767",
"0.7... | 0.7259373 | 29 |
Read an entire file into a string. | def JqF_(IznC, r8hN='r'):
eHNT = open(IznC, r8hN)
try:
FUjE = eHNT.read()
finally:
eHNT.close()
return FUjE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wUEI(IznC):\n with open(IznC) as eHNT:\n return eHNT.read()",
"def xas4(Ux0P):\n eHNT = open(Ux0P, 'r')\n KCHu = eHNT.read()\n eHNT.close()\n return KCHu",
"def Ueki(nUeQ):\n eHNT = open(str(nUeQ), 'r')\n vIwR = eHNT.read()\n eHNT.close()\n return vIwR",
"def _rvh(pmON):... | [
"0.8147305",
"0.80580014",
"0.80269957",
"0.79599553",
"0.79281974",
"0.78856945",
"0.78782326",
"0.7823509",
"0.78179985",
"0.77966636",
"0.7794168",
"0.7793535",
"0.779259",
"0.77915025",
"0.77467614",
"0.77206445",
"0.7704417",
"0.7700069",
"0.7684508",
"0.7662982",
"0.765... | 0.0 | -1 |
Handle GET requests for a single product | def GKJL(YKHO, QePW, _sei=None):
try:
Lx3t = msfn.objects.get(pk=_sei)
ZMzz = m1o5(Lx3t, context={'request': QePW})
return oGir(ZMzz.data)
except Exception as ex:
return zVzM(aTqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yi9g(QePW, _sei):\n HXMd = ['HEAD', 'GET']\n if QePW.method not in ['GET', 'HEAD']:\n return fFVP(HXMd)\n else:\n OaeV = {}\n M5u5 = Iofl(msfn, pk=_sei)\n OaeV['product name'] = M5u5.title\n OaeV['price'] = M5u5.price\n OaeV['availability'] = M5u5.inventory_co... | [
"0.7953724",
"0.74955386",
"0.7463159",
"0.7401762",
"0.7398525",
"0.7375179",
"0.73255783",
"0.7306921",
"0.72416896",
"0.7195873",
"0.7143844",
"0.71145785",
"0.70590377",
"0.70564204",
"0.7013647",
"0.70065206",
"0.6994182",
"0.6988521",
"0.6961706",
"0.69026667",
"0.69010... | 0.745946 | 3 |
Handle GET requests to products resource | def list(YKHO, QePW):
DumB = msfn.objects.all()
m3Nh = YKHO.request.query_params.get('customer', None)
Rci7 = YKHO.request.query_params.get('location', None)
type = YKHO.request.query_params.get('productType', None)
cTRz = YKHO.request.query_params.get('quantity', None)
mWFP = YKHO.request.query... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GTYa(QePW):\n HXMd = ['HEAD', 'GET']\n if QePW.method not in ['GET', 'HEAD']:\n return fFVP(HXMd)\n else:\n OaeV = {}\n n8KJ = QePW.GET.get('product', '')\n Ghho = QePW.GET.get('category', '')\n Y363 = QePW.GET.get('availability', 'false').lower()\n if Y363 ==... | [
"0.79908687",
"0.7403874",
"0.73878735",
"0.7331365",
"0.73231596",
"0.72969484",
"0.72962517",
"0.7228651",
"0.71997327",
"0.71374637",
"0.71114457",
"0.71097296",
"0.7109465",
"0.7070029",
"0.70694864",
"0.70549977",
"0.7039743",
"0.70200735",
"0.6998679",
"0.6988163",
"0.6... | 0.65879786 | 52 |
Manipulate appstruct received from form so that it's suitable for saving on the Principal. | def BweV(aPjC):
moMn = aPjC.get('groups', [])
t3vy = list(aPjC.get('roles', [])) + [f'group:{Oa1e}' for Oa1e in moMn if Oa1e]
if 'roles' in aPjC:
del aPjC['roles']
aPjC['groups'] = t3vy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n YEnM.authorized_by = QePW.user\n YEnM.save()",
"def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n YEnM.authorized_by = QePW.user\n YEnM.save()",
"def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n YEnM.authorized_by = QePW.user\n YEnM.save()",
"def JEvU(YKHO, Wi1A, ... | [
"0.6197882",
"0.6197882",
"0.6197882",
"0.59443474",
"0.58296484",
"0.57539654",
"0.574323",
"0.5734867",
"0.55695117",
"0.5544072",
"0.5532233",
"0.55306405",
"0.5529483",
"0.5526313",
"0.55228287",
"0.5505235",
"0.5505235",
"0.5477638",
"0.5475364",
"0.5475364",
"0.5475364"... | 0.0 | -1 |
Return whether current user is superuser, i.e. has the role 'admin' (level 100). | def qMrd(YKHO):
return YKHO.sesh.curr_role == 'admin' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L0LP(YKHO):\n return DW23.is_current_user_admin()",
"def Dtuv(VCCg):\n if Atql('SELECT r.id\\n FROM accROLE r LEFT JOIN user_accROLE ur\\n ON r.id = ur.id_accROLE\\n WHERE r.name = %s AND\\n ur.id_user = %s AND ur.expiration>=NOW() LIMIT 1', (LcWz, VCCg['uid']), 1, run_on_sl... | [
"0.8228489",
"0.81981975",
"0.7979606",
"0.7726345",
"0.76600987",
"0.7636941",
"0.75925666",
"0.75925666",
"0.75895554",
"0.757056",
"0.75532",
"0.75262314",
"0.74493665",
"0.7448688",
"0.7377195",
"0.7280018",
"0.7261932",
"0.72521293",
"0.7227999",
"0.7212167",
"0.72119266... | 0.82230824 | 1 |
Return whether current user has right to modify collection. | def HPs4(YKHO, xUwc):
if not xUwc:
return False
if YKHO.is_coll_owner(xUwc):
return True
return xUwc.get_prop(YKHO.WRITE_PREFIX + YKHO.session_user.my_id) != None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lhSW(YKHO, xUwc):\n if YKHO.sesh.is_restricted or not xUwc:\n return False\n return YKHO.is_coll_owner(xUwc)",
"def l2iK(QePW, xUwc):\n return QePW.user.has_perm('statmaps.change_collection', xUwc) or QePW.user.is_superuser",
"def Ck5B(YKHO, QePW, CBIr, *qIxc, **B2fa):\n return QePW.user... | [
"0.7689454",
"0.76239514",
"0.76168936",
"0.745407",
"0.73944914",
"0.734717",
"0.734717",
"0.72414076",
"0.72400033",
"0.7215259",
"0.716203",
"0.7129525",
"0.7124551",
"0.7112598",
"0.71032727",
"0.7080953",
"0.7054719",
"0.7017608",
"0.70063883",
"0.7005177",
"0.6993046",
... | 0.79106975 | 0 |
Return whether current user has right to read collection (either because it is public, user is also owner or optionally user is superuser). | def QvLN(YKHO, xUwc, u6tF=True):
if not xUwc:
return False
if xUwc.is_public():
return 'public'
if u6tF and YKHO.is_superuser():
return True
if YKHO.is_coll_owner(xUwc):
return True
if YKHO.is_anon():
return False
return xUwc.get_prop(YKHO.READ_PREFIX + YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjHc(YKHO, xUwc, u6tF=True):\n return bool(YKHO.check_read_access_public(xUwc, allow_superuser=u6tF))",
"def hi3n(YKHO, CBIr):\n if YKHO.owner:\n return YKHO.owner == CBIr.pk or YKHO.is_shared\n else:\n return True",
"def o27r(YKHO):\n return 'r' in YKHO.perms_owner",
"def zPPm(... | [
"0.82555354",
"0.78347564",
"0.7684713",
"0.76724136",
"0.7667767",
"0.76299286",
"0.75962263",
"0.75880957",
"0.7554543",
"0.75089645",
"0.7508797",
"0.74597836",
"0.7434407",
"0.7386948",
"0.7386948",
"0.7385544",
"0.72377706",
"0.72377706",
"0.7214749",
"0.72136796",
"0.72... | 0.8323417 | 0 |
Return whether current user has right to modify collection. | def _U91(YKHO, xUwc):
return YKHO.check_write_access(xUwc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HPs4(YKHO, xUwc):\n if not xUwc:\n return False\n if YKHO.is_coll_owner(xUwc):\n return True\n return xUwc.get_prop(YKHO.WRITE_PREFIX + YKHO.session_user.my_id) != None",
"def lhSW(YKHO, xUwc):\n if YKHO.sesh.is_restricted or not xUwc:\n return False\n return YKHO.is_coll_... | [
"0.79106975",
"0.7689454",
"0.76239514",
"0.76168936",
"0.73944914",
"0.734717",
"0.734717",
"0.72414076",
"0.72400033",
"0.7215259",
"0.716203",
"0.7129525",
"0.7124551",
"0.7112598",
"0.71032727",
"0.7080953",
"0.7054719",
"0.7017608",
"0.70063883",
"0.7005177",
"0.6993046"... | 0.745407 | 4 |
Return whether current user has right to administrate collection. | def lhSW(YKHO, xUwc):
if YKHO.sesh.is_restricted or not xUwc:
return False
return YKHO.is_coll_owner(xUwc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HsJG(YKHO):\n return c5ow.has_role('admin')",
"def _Kb1(YKHO):\n return YKHO.has_permission('admin')",
"def HsJG(YKHO):\n return c5ow.has_role('Admin')",
"def RefD(YKHO) -> bool:\n return YKHO._permission in ['ADMIN']",
"def ZNeh(YKHO):\n return YKHO.can(CXiN.ADMINISTER)",
"def KKMP(YK... | [
"0.797245",
"0.7944501",
"0.79186743",
"0.7832595",
"0.7819825",
"0.7729741",
"0.76689285",
"0.76647127",
"0.76647127",
"0.76647127",
"0.7644126",
"0.76313335",
"0.7627785",
"0.7615119",
"0.7607253",
"0.7607253",
"0.75816417",
"0.7548207",
"0.75428164",
"0.75334316",
"0.75313... | 0.8012999 | 0 |
Assert currrent user has right to administrate collection. | def jvgM(YKHO, xUwc):
if not YKHO.can_admin_coll(xUwc):
raise VrQA(404, 'No Admin Access') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ee9T(YKHO):\n YKHO.assertFalse(wZAH(YKHO.member1_profile, None, uwaB.ADMIN_ACCESS))\n YKHO.assertFalse(wZAH(YKHO.member1_profile, YKHO.registered1_profile, uwaB.ADMIN_ACCESS))\n YKHO.assertFalse(wZAH(YKHO.member1_profile, YKHO.member2_profile, uwaB.ADMIN_ACCESS))\n YKHO.assertFalse(wZAH(YKHO.admin1... | [
"0.6956684",
"0.6916705",
"0.68052983",
"0.6777609",
"0.6768478",
"0.6704163",
"0.65913624",
"0.6590559",
"0.6519051",
"0.65059114",
"0.6499028",
"0.6495276",
"0.6481127",
"0.6465483",
"0.6460144",
"0.64350325",
"0.6432978",
"0.64218366",
"0.6411134",
"0.6411134",
"0.6411134"... | 0.71639997 | 0 |
Test attempt to extract neighbours found with a method that is not available within the neighbour cube. Raises an exception. | def cgQJ(YKHO):
t0qN = Aoc7(neighbour_selection_method='furthest')
tO9_ = 'The requested neighbour_selection_method "furthest" is not'
with YKHO.assertRaisesRegex(ValueError, tO9_):
t0qN.extract_coordinates(YKHO.neighbour_cube) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JlO0(YKHO):\n t0qN = Aoc7(neighbour_selection_method='nearest_land')\n Aofo = t0qN.process(YKHO.neighbour_cube, YKHO.diagnostic_cube_xy, new_title='IMPROVER Spot Forecast')\n YKHO.assertEqual(Aofo.cell_methods, YKHO.cell_methods)",
"def f4OL(YKHO):\n kLQb = [(3, 3), (3, 0), (3, 1), (0, 3), (0, 1)... | [
"0.6836361",
"0.6759744",
"0.66439587",
"0.66201377",
"0.65762997",
"0.65685374",
"0.6431297",
"0.642569",
"0.6392017",
"0.6360416",
"0.6354527",
"0.63342994",
"0.62128145",
"0.6166375",
"0.61550003",
"0.61512774",
"0.6148148",
"0.612089",
"0.6118067",
"0.6113962",
"0.6109687... | 0.7018913 | 0 |
Test with an input cube containing scalar and nonscalar auxiliary coordinates. The returned nonscalar coordinate is a 1D representation of the 2D nonscalar input coordinate at spot sites. | def wVW0(YKHO):
t0qN = Aoc7()
p2h5 = [BHsk for BHsk in YKHO.diagnostic_cube_2d_time.aux_coords if BHsk.name() in ['time_in_local_timezone', 'forecast_reference_time', 'forecast_period']]
KCQW = [YKHO.expected_spot_time_coord]
fK4M, DaTI = YKHO.coordinate_cube.data
hAEw, ZUfp = t0qN.get_aux_coords(YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def syoy(YKHO):\n t0qN = Aoc7()\n p2h5 = YKHO.diagnostic_cube_yx.aux_coords\n KCQW = []\n fK4M, DaTI = YKHO.coordinate_cube.data\n hAEw, ZUfp = t0qN.get_aux_coords(YKHO.diagnostic_cube_yx, fK4M, DaTI)\n YKHO.assertArrayEqual(hAEw, p2h5)\n YKHO.assertArrayEqual(ZUfp, KCQW)",
"def JzE_(YKHO):\... | [
"0.73496526",
"0.6702248",
"0.62226033",
"0.5983704",
"0.5947846",
"0.5938467",
"0.5907361",
"0.588829",
"0.586233",
"0.58439064",
"0.5810997",
"0.5735473",
"0.5719565",
"0.5717332",
"0.5714059",
"0.56767225",
"0.56767225",
"0.5668824",
"0.563868",
"0.56297463",
"0.5589366",
... | 0.67092407 | 1 |
Test that an error is raised if the neighbour cube and diagnostic cube do not have matching grids. | def K1np(YKHO):
YKHO.neighbour_cube.attributes['model_grid_hash'] = '123'
t0qN = Aoc7()
tO9_ = 'Cubes do not share or originate from the same grid, so cannot be used together.'
with YKHO.assertRaisesRegex(ValueError, tO9_):
t0qN.process(YKHO.neighbour_cube, YKHO.diagnostic_cube_xy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jLgP(YKHO):\n YKHO.cube = YKHO.input_land_ll\n tO9_ = 'X and Y coordinates do not match for cubes'\n with YKHO.assertRaisesRegex(ValueError, tO9_):\n YKHO.plugin.process(YKHO.cube, YKHO.input_land, YKHO.output_land)",
"def tmq4(YKHO):\n YKHO.assertRaises(SCWs, HBMf, YKHO.im8_1, YKHO.im32_2... | [
"0.7253101",
"0.698245",
"0.6939765",
"0.6800581",
"0.6753649",
"0.65875006",
"0.6554057",
"0.6513969",
"0.65114117",
"0.64982134",
"0.64766",
"0.64374804",
"0.64372545",
"0.643291",
"0.6429985",
"0.6368058",
"0.63667554",
"0.636228",
"0.6347579",
"0.62821436",
"0.62520987",
... | 0.8043105 | 0 |
Test that data within the returned cube is as expected for the nearest neigbours. | def kVBa(YKHO):
t0qN = Aoc7()
aEqx = [0, 0, 12, 12]
Aofo = t0qN.process(YKHO.neighbour_cube, YKHO.diagnostic_cube_xy)
YKHO.assertArrayEqual(Aofo.data, aEqx)
YKHO.assertEqual(Aofo.name(), YKHO.diagnostic_cube_xy.name())
YKHO.assertEqual(Aofo.units, YKHO.diagnostic_cube_xy.units)
YKHO.assertAr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PlOi(YKHO):\n t0qN = Aoc7(neighbour_selection_method='nearest')\n aEqx = YKHO.neighbours[0, 0:2, :].astype(int)\n Aofo = t0qN.extract_coordinates(YKHO.neighbour_cube)\n YKHO.assertArrayEqual(Aofo.data, aEqx)",
"def jYle(YKHO):\n t0qN = Aoc7(neighbour_selection_method='nearest_land')\n aEqx ... | [
"0.7675448",
"0.754887",
"0.73634905",
"0.7216632",
"0.6756855",
"0.66969234",
"0.66744316",
"0.6629253",
"0.66018414",
"0.6579428",
"0.6575326",
"0.65566707",
"0.65239537",
"0.64671654",
"0.641638",
"0.63769466",
"0.63413423",
"0.63371235",
"0.62920463",
"0.6278647",
"0.6275... | 0.78735894 | 0 |
Test that data within the returned cube is as expected for the nearest land neighbours. | def jYle(YKHO):
t0qN = Aoc7(neighbour_selection_method='nearest_land')
aEqx = [6, 6, 12, 12]
Aofo = t0qN.process(YKHO.neighbour_cube, YKHO.diagnostic_cube_xy)
YKHO.assertArrayEqual(Aofo.data, aEqx)
YKHO.assertEqual(Aofo.name(), YKHO.diagnostic_cube_xy.name())
YKHO.assertEqual(Aofo.units, YKHO.di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nZKb(YKHO):\n t0qN = Aoc7(neighbour_selection_method='nearest_land')\n aEqx = YKHO.neighbours[1, 0:2, :].astype(int)\n Aofo = t0qN.extract_coordinates(YKHO.neighbour_cube)\n YKHO.assertArrayEqual(Aofo.data, aEqx)",
"def kVBa(YKHO):\n t0qN = Aoc7()\n aEqx = [0, 0, 12, 12]\n Aofo = t0qN.pr... | [
"0.8091384",
"0.79743457",
"0.76145715",
"0.7351465",
"0.73445237",
"0.71457136",
"0.71403754",
"0.71301675",
"0.7056533",
"0.7015799",
"0.7013302",
"0.70088434",
"0.70087266",
"0.69893783",
"0.6955571",
"0.6943366",
"0.6902677",
"0.6902376",
"0.6889296",
"0.6785481",
"0.6767... | 0.8287746 | 0 |
Test that a cube with a leading dimension such as realization or probability results in a spotdata cube with the same leading dimension. | def rlhd(YKHO):
jXGw = Ty8a.coords.DimCoord([0], standard_name='realization', units=1)
ffFJ = Ty8a.coords.DimCoord([1], standard_name='realization', units=1)
pT6U = YKHO.diagnostic_cube_xy.copy()
ObcB = YKHO.diagnostic_cube_xy.copy()
pT6U.add_aux_coord(jXGw)
ObcB.add_aux_coord(ffFJ)
GNt9 = T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOFh(YKHO):\n ObcB = YKHO.cube.copy()\n unXY = YKHO.cube.copy()\n ObcB.add_aux_coord(YKHO.extra_dim_coord)\n ObcB = Ty8a.util.new_axis(ObcB, 'height')\n S3w6 = Ty8a.cube.CubeList([ObcB, unXY])\n Aofo = TIy7(S3w6)\n YKHO.assertIsInstance(Aofo, list)\n YKHO.assertEqual(len(Aofo[0]), 1)\n ... | [
"0.6978743",
"0.6976879",
"0.677131",
"0.6670512",
"0.65053064",
"0.6485507",
"0.64623374",
"0.64472866",
"0.6440959",
"0.6429753",
"0.63964635",
"0.6319679",
"0.62548935",
"0.623582",
"0.62314916",
"0.62314916",
"0.61935174",
"0.6168948",
"0.6132635",
"0.61322874",
"0.612739... | 0.7547086 | 0 |
Test 2D auxiliary coordinates from the gridded input cube are retained as 1D coordinates associated with the spotindex on the spotdata cube. | def PbUx(YKHO):
t0qN = Aoc7()
Aofo = t0qN.process(YKHO.neighbour_cube, YKHO.diagnostic_cube_2d_time, new_title='IMPROVER Spot Forecast')
YKHO.assertEqual(Aofo.coord('time'), YKHO.expected_spot_time_coord) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ea4c(YKHO):\n ObcB = YKHO.cube.copy()\n unXY = YKHO.cube.copy()\n unXY.add_aux_coord(YKHO.extra_aux_coord, data_dims=0)\n S3w6 = Ty8a.cube.CubeList([ObcB, unXY])\n Aofo = TIy7(S3w6)\n YKHO.assertIsInstance(Aofo, list)\n YKHO.assertEqual(len(Aofo[0]), 0)\n YKHO.assertEqual(len(Aofo[1]), ... | [
"0.6563083",
"0.6533648",
"0.63973707",
"0.6273332",
"0.62689143",
"0.6261552",
"0.62300724",
"0.6203395",
"0.6191301",
"0.6131757",
"0.61238104",
"0.607424",
"0.6008974",
"0.6003585",
"0.59793264",
"0.596743",
"0.59503645",
"0.5906163",
"0.59055257",
"0.58741033",
"0.5836324... | 0.6669984 | 0 |
Convert iterables (except strings) or wrap a scalar value into a tuple. | def YElZ(YRbF, z3SJ, IJxf=tuple):
if not YRbF:
return YRbF if isinstance(YRbF, IJxf) else ()
if isinstance(YRbF, str):
YRbF = (YRbF,)
else:
try:
YRbF = tuple(YRbF)
except Exception as ex:
if z3SJ is None:
return (YRbF,)
rais... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v00S(BWXx, IfvE: bool=False) -> (tuple, None):\n if not isinstance(BWXx, tuple) and (BWXx is not None or IfvE):\n if isinstance(BWXx, dict):\n BWXx = [(G1Hx, Ty9i) for G1Hx, Ty9i in BWXx.items()]\n elif not isinstance(BWXx, iu5r) or isinstance(BWXx, str):\n BWXx = [BWXx]\... | [
"0.7747182",
"0.7482098",
"0.74238795",
"0.7394435",
"0.7387739",
"0.73652613",
"0.72663105",
"0.72663105",
"0.7249171",
"0.7211695",
"0.7203185",
"0.7176715",
"0.7176208",
"0.7174825",
"0.7090093",
"0.70810366",
"0.7064414",
"0.7052167",
"0.70405966",
"0.7021349",
"0.7021349... | 0.7161878 | 14 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83939064",
"0.83558416",
"0.8296191",
"0.8133439",
"0.81156427",
"0.810097",
"0.81001526",
"0.8099001",
"0.8099001",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80677134",
"0.80598736",
"0... | 0.804493 | 61 |
Given a batch (as list of tokenized sentences), return a batch of padded character ids. | def EtNN(Wc9F):
bUWH = []
for yAmx in Wc9F:
s2mk = [_J2v(eOtH) for eOtH in yAmx]
Jyyj = qp6h(s2mk, {'character_ids': SOYA})
KAOR = ec6H({'elmo': Jyyj})
bUWH.append(KAOR)
__n6 = Qqmr(bUWH)
CtWL = yH2p()
__n6.index_instances(CtWL)
return __n6.as_tensor_dict()['elmo'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RloX(oaGy):\n oL_1 = max([len(yAmx) for yAmx in oaGy])\n return [yAmx + [vIPP['<PAD>']] * (oL_1 - len(yAmx)) for yAmx in oaGy]",
"def RloX(oaGy, C7vt):\n oL_1 = max([len(yAmx) for yAmx in oaGy])\n return [yAmx + [C7vt] * (oL_1 - len(yAmx)) for yAmx in oaGy]",
"def RloX(oaGy, C7vt):\n oL_1 = ... | [
"0.75850606",
"0.75011486",
"0.75011486",
"0.7443281",
"0.73768824",
"0.73238623",
"0.70959526",
"0.69814175",
"0.66990435",
"0.666847",
"0.6647785",
"0.6618838",
"0.65518826",
"0.65161115",
"0.6436001",
"0.63736",
"0.6355314",
"0.62980086",
"0.6288383",
"0.62873405",
"0.6287... | 0.69787234 | 8 |
Initialize the player and position (x,y) | def FIMM(YKHO, Ux0P, WKvO, LVAh):
YKHO.x = WKvO
YKHO.y = LVAh
YKHO.player_image = a9eO.image.load(Ux0P).convert()
YKHO.player_image.set_colorkey(XDQs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3mv(YKHO):\n YKHO.player = mVZ4(YKHO)\n YKHO.player.player.setPos(-34.0, 30.0, 3.0)",
"def FIMM(YKHO, oyg0, dQgj):\n YKHO._player = oyg0\n YKHO._position = dQgj",
"def FIMM(YKHO, ufJO, rdlD, fvDH, oyg0):\n YKHO.win = ufJO\n YKHO.row = rdlD\n YKHO.col = fvDH\n YKHO.player = oyg0\n ... | [
"0.85906875",
"0.7985081",
"0.7462227",
"0.73304355",
"0.7268007",
"0.726738",
"0.7055045",
"0.7039654",
"0.7038369",
"0.70071685",
"0.69215536",
"0.69215536",
"0.69215536",
"0.6870549",
"0.6837744",
"0.68330896",
"0.68192637",
"0.6805602",
"0.68011373",
"0.67994666",
"0.6792... | 0.0 | -1 |
Retrieve the classes of a classification system. | def jffE(WTZD):
VV8l = nPrm.get_classification_system_classes(WTZD)
wPdp = list()
wPdp += [{'href': f'{zDeW}/classification_systems/{WTZD}/classes', 'rel': 'self', 'type': 'application/json', 'title': f'Classes of the classification system {WTZD}'}, {'href': f'{zDeW}/classification_systems/{WTZD}', 'rel': '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ylai():\n wEf2 = yLtf()\n return wEf2.classes",
"def KndY(YKHO):\n return list(YKHO.trainset.classes)",
"def ylai(Emd4):\n nPrm = Emd4.get_data()\n return nPrm.classes",
"def KqVN(YKHO):\n KndY = []\n YRbF = 0\n b8V_ = YKHO.xml.classification_us.classification_us_primary.uspc\n ... | [
"0.7378658",
"0.7273838",
"0.72048324",
"0.7155655",
"0.70242274",
"0.69382346",
"0.6932605",
"0.69205165",
"0.6890529",
"0.6811156",
"0.67898285",
"0.6748199",
"0.67349",
"0.6731874",
"0.6719374",
"0.66768605",
"0.6646438",
"0.66040844",
"0.6589146",
"0.6585811",
"0.65354663... | 0.68940437 | 8 |
k=1 means to query the nearest neighbours and return squeezed result | def TgwQ(YKHO, pKvt, G1Hx=1):
if len(pKvt.shape) >= 2:
d6pt = []
pImw = []
for YRbF in pKvt.T:
ulTW, Cvdl = YKHO.tree.query(YRbF, k=G1Hx)
d6pt.append(Cvdl)
pImw.append(ulTW)
return (d6pt, pImw)
else:
pImw, d6pt = YKHO.tree.query(pKvt, k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYVH(YKHO, J_Es, AU8u, G1Hx):\n bdGm = oRi_(list)\n C5Qz = []\n for Q6kx in list(J_Es.inorder()):\n pImw = Q6kx.dist(AU8u)\n bdGm[pImw].append(Q6kx.data)\n coHW = sorted(bdGm)\n for LihS in coHW[:G1Hx]:\n for Q6kx in bdGm[LihS]:\n C5Qz.append(Q6kx)\n return C5Q... | [
"0.7466527",
"0.741067",
"0.741067",
"0.741067",
"0.7402369",
"0.7317544",
"0.7256439",
"0.708096",
"0.7071927",
"0.70563334",
"0.70266837",
"0.6992761",
"0.69864506",
"0.69821656",
"0.69639164",
"0.6921259",
"0.6902745",
"0.68924415",
"0.6888972",
"0.6865423",
"0.68556476",
... | 0.0 | -1 |
computes the matrix square of the dense/sparse parent array | def NZRH(YKHO, khtY):
return khtY.conj().T @ khtY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tjst(tGJQ: 'ArrayType', j6Rw: 'ArrayType') -> 'np.ndarray':\n return oyIN.asarray(j6Rw.power(2).sum(axis=1).flatten() + tGJQ.power(2).sum(axis=1) - 2 * tGJQ.dot(j6Rw.T))",
"def ujN0(eQUr):\n eQUr = H4yH.coo_matrix(eQUr)\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -1).flatten()\n ... | [
"0.6179321",
"0.61698335",
"0.60760885",
"0.600875",
"0.60004234",
"0.59897757",
"0.59406257",
"0.5935422",
"0.59313667",
"0.59013",
"0.589852",
"0.58713377",
"0.58713377",
"0.5853411",
"0.5853411",
"0.5853411",
"0.5853411",
"0.5853411",
"0.5853411",
"0.5853411",
"0.5853411",... | 0.0 | -1 |
Add experience to memory. | def H2v5(YKHO, *qIxc):
YKHO.memory.append([*qIxc]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))",
"d... | [
"0.88063943",
"0.87287766",
"0.8573575",
"0.79386157",
"0.79060614",
"0.7882697",
"0.7882697",
"0.77258295",
"0.7691982",
"0.7675702",
"0.7671475",
"0.7649377",
"0.7629177",
"0.76051974",
"0.7595205",
"0.7536265",
"0.74946254",
"0.74849844",
"0.7475911",
"0.7449711",
"0.74460... | 0.0 | -1 |
Add to donation list for donors that already exist in database | def VtQ7(eHMM, OOWi):
geg6[eHMM].append(OOWi)
YT1b(eHMM, OOWi)
return geg6[eHMM] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VtQ7():\n uRz_()\n while True:\n mWFP = input('\\nPlease select a donor to add a donation to: ')\n if mWFP.lower() in ('q', 'quit'):\n return\n elif not any((mWFP in rpVW for rpVW in yoTM)):\n print('Donor not found, please select from list')\n else:\n ... | [
"0.749481",
"0.7174",
"0.7111949",
"0.7051824",
"0.7033994",
"0.70135814",
"0.68974817",
"0.68260396",
"0.6812641",
"0.6796158",
"0.6786818",
"0.67812204",
"0.6773818",
"0.6747825",
"0.6745425",
"0.67259663",
"0.66940176",
"0.6668732",
"0.6661479",
"0.6645693",
"0.66374636",
... | 0.69184506 | 6 |
Get name of donor and donation amount and pass to appropriate func | def TJfW():
eHMM = input('Please enter your name: ')
OOWi = float(input('How much would you like to donate? '))
if eHMM in geg6:
VtQ7(eHMM, OOWi)
else:
RefB(eHMM, OOWi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMDB(geg6, mWFP):\n return geg6[mWFP]",
"def FwZK(dgtG):\n return dgtG[1]",
"def blQN():\n print('')\n CgLl = \"Please enter a full name to send to or enter 'list' for a full list of donors('q' to quit to menu): \"\n mWFP = input(CgLl)\n if mWFP == 'q':\n return (0, 0)\n while m... | [
"0.7080698",
"0.69396824",
"0.6939477",
"0.68158984",
"0.67780435",
"0.6729482",
"0.66800416",
"0.65871036",
"0.655924",
"0.65268207",
"0.6497325",
"0.64953995",
"0.6494617",
"0.64851135",
"0.6439028",
"0.64085793",
"0.6408115",
"0.6382642",
"0.63806444",
"0.63775045",
"0.636... | 0.66874176 | 6 |
Returns set of all point objects. | def dNTV(YKHO):
hd3f = YKHO.topleft
TVTK = YKHO.width
H2v2 = YKHO.height
LTIa = set()
for WKvO in range(hd3f.x, hd3f.x + TVTK):
for LVAh in range(hd3f.y, hd3f.y + H2v2):
LTIa.add(PvyL(WKvO, LVAh))
return LTIa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mOvW(YKHO):\n return YKHO._point_sets",
"def M40C(YKHO):\n return YKHO.points",
"def OXKp(YKHO):\n return Vfgb([Q7Dr.XYZ for Q7Dr in YKHO.Content])",
"def bHzr(YKHO) -> None:\n ...",
"def zxJV(YKHO):\n LTIa = set()\n for hTWD in YKHO.segments:\n LTIa = LTIa.union(hTWD.getPoints... | [
"0.7736324",
"0.75750786",
"0.7297063",
"0.72415173",
"0.71875423",
"0.7002041",
"0.69048077",
"0.6868859",
"0.6848769",
"0.6845015",
"0.6836615",
"0.67892593",
"0.67186373",
"0.6697527",
"0.6633594",
"0.65933233",
"0.6592596",
"0.6532198",
"0.65184367",
"0.65184367",
"0.6518... | 0.75436836 | 2 |
Adds a depthwise convolution block. | def rnNj(g4y1, hoHl, ey7p=1, FEri=(1, 1), yetk=1, RG9Q=None):
UJgg = 1 if DDLl.image_data_format() == 'channels_first' else -1
if FEri == (1, 1):
WKvO = g4y1
else:
WKvO = fhcK.ZeroPadding2D(((0, 1), (0, 1)), name='conv_pad_%d' % yetk)(g4y1)
WKvO = fhcK.DepthwiseConv2D((3, 3), padding='sa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dwyS(YKHO, ZRwM=1024, myXy=2, rb7a=1, XkN1=MF6R):\n YKHO._make_layer(XkN1, ZRwM // XkN1.expansion, blocks=rb7a, stride=myXy)",
"def dwyS(YKHO, ZRwM=1024, _0fC=2, rb7a=1, XkN1=qQIO):\n YKHO._make_layer(XkN1, ZRwM // XkN1.expansion, num_blocks=rb7a, stride=_0fC)",
"def rnNj(YKHO, g4y1, hoHl, Cwt5, ey7p... | [
"0.7172583",
"0.7139589",
"0.68640846",
"0.6679467",
"0.6581052",
"0.65064424",
"0.63931173",
"0.63213426",
"0.6177873",
"0.61324704",
"0.61204624",
"0.60883003",
"0.60716313",
"0.605287",
"0.60504466",
"0.5979921",
"0.59789973",
"0.59328645",
"0.5927431",
"0.5902375",
"0.584... | 0.68050164 | 3 |
Return the class that represents settings for this dataunit | def qkJE(YKHO):
raise 'Using bare DataUnitSettings' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qkJE(YKHO):\n return ucnH.MergingSettings",
"def YRxQ(Emd4):\n pass",
"def gCuF(YKHO):\n return gCuF.Settings(YKHO)",
"def wOGa(YKHO):\n return dict(of_type=YKHO.__class__.__name__.lower())",
"def wOGa(YKHO):\n return YKHO.__class__.__name__",
"def Y8_Y(YKHO, gCuF: ghidra.docking.setti... | [
"0.7099514",
"0.6739176",
"0.6711266",
"0.66855615",
"0.66479963",
"0.6600053",
"0.6497154",
"0.6455225",
"0.63998145",
"0.63521165",
"0.63521165",
"0.6346373",
"0.631752",
"0.63115495",
"0.63042873",
"0.62796885",
"0.624101",
"0.624101",
"0.6209638",
"0.615982",
"0.6143292",... | 0.8654824 | 0 |
Initializes the NewWebsiteDialog QDialog window by creating some class bound variables, setting up the UI, and connecting signals and slots. self.website_name This variable stores the website name that is typed in by the user. self.website_containing_path This variable holds the path that the user chooses. This path wi... | def FIMM(YKHO, _AKB=None):
super(mOAc, YKHO).__init__(_AKB)
YKHO.website_name = ''
YKHO.website_containing_path = ''
YKHO.full_website_path = ''
YKHO.website_skeleton_path = Hy7s.getcwd() + '/assets/skeleton'
YKHO.showing_warning = False
YKHO.ui = OdI9()
YKHO.ui.setupUi(YKHO)
YKHO.ui... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KgXJ(YKHO):\n AoOf = mOAc()\n AoOf.show()\n AoOf.exec_()",
"def FIMM(YKHO, FvPh, _AKB=None):\n super(fDEn, YKHO).__init__(_AKB)\n YKHO.fd_websites = FvPh\n YKHO.ui = VkIv()\n YKHO.ui.setupUi(YKHO)\n YKHO.populateExistingFluiDevWebsites()\n YKHO.ui.createNewWebsiteButton.clicked.con... | [
"0.6502701",
"0.6296401",
"0.6285451",
"0.6130814",
"0.59732664",
"0.5705754",
"0.54407865",
"0.54103214",
"0.5396949",
"0.52957237",
"0.52860713",
"0.52755415",
"0.52332073",
"0.5225232",
"0.5225232",
"0.5193664",
"0.5181796",
"0.51529604",
"0.51356375",
"0.5118541",
"0.5101... | 0.86123776 | 0 |
Create the heatmap to display | def Y4Ek(jQ3Z):
Y4Ek = Zc6P.Chart(jQ3Z).mark_rect().encode(x=Zc6P.X('HOUR:O', title='Hour of Day', axis=Zc6P.Axis(labelAngle=0)), y=Zc6P.Y('DAY_OF_WEEK:O', sort=['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'], title='Day of Week'), color=Zc6P.Color('count()', legend=Zc6P.Legend(title=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LTkE(YKHO):\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111)\n Xn71 = aNZO.imshow(YKHO.map, cmap=YKHO.color_file)\n QrM1.colorbar(Xn71)\n if YKHO.heatmap_file is not None:\n QrM1.savefig(YKHO.heatmap_file, format=YKHO.heatmap_format)\n QrM1.close()",
"def Y4Ek(YKHO):\n Ud... | [
"0.80703443",
"0.80016005",
"0.7852276",
"0.7732353",
"0.766109",
"0.7475233",
"0.73921496",
"0.7340618",
"0.72714186",
"0.7215823",
"0.7206363",
"0.7187962",
"0.7154677",
"0.7154001",
"0.712696",
"0.7119555",
"0.709693",
"0.7090507",
"0.70676655",
"0.70516944",
"0.7034057",
... | 0.69503117 | 23 |
Test data and dimensions assignment. | def XGxs():
SRYB = yrbA('var', [42], ('x',))
assert SRYB.data == [42]
assert SRYB.dimensions == ('x',) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H_RR(ONd6):\n for P2GO in range(4):\n ONd6.assertEqual(Htse[P2GO], ONd6.TestDB.dims[P2GO])\n ONd6.assertTrue(ONd6.TestDB.data_set)\n hm9s = dir(ONd6.TestDB.data)\n ONd6.assertTrue(hm9s.count('mask'))",
"def zgvK():\n HtQP = LGRN()\n jzdc = oyIN.ones((512, 512))\n Fg_i = oyIN.ones(... | [
"0.7471489",
"0.7303574",
"0.7239233",
"0.68555063",
"0.6704185",
"0.6692705",
"0.65707177",
"0.654977",
"0.6540801",
"0.65385765",
"0.65321857",
"0.64865035",
"0.6485584",
"0.6485584",
"0.6478103",
"0.64726347",
"0.6466268",
"0.6461467",
"0.6426236",
"0.6399348",
"0.6386195"... | 0.0 | -1 |
Test that the object behaves like a sequence. | def nno4():
SRYB = yrbA('var', oyIN.arange(10))
assert SRYB[-5] == 5
assert len(SRYB) == 10
assert list(SRYB) == list(range(10)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eeJy(YKHO):\n YKHO.assertFalse(L66n.SameElementsAs([1]) == object())",
"def jnOd(BWXx: t.Any) -> bool:\n try:\n len(BWXx)\n BWXx.__getitem__\n except Exception:\n return False\n return True",
"def FDfP(YEnM):\n return isinstance(YEnM, g760.Iterable)",
"def jnOd(BWXx):\... | [
"0.70562655",
"0.7020598",
"0.7009362",
"0.6923171",
"0.6766598",
"0.66770613",
"0.663431",
"0.66248465",
"0.6622191",
"0.660689",
"0.65697956",
"0.6557524",
"0.6553172",
"0.6462434",
"0.6437682",
"0.6409664",
"0.63590825",
"0.6333706",
"0.6319065",
"0.6318891",
"0.6268921",
... | 0.61224216 | 34 |
Test ``dtype`` of grids. | def z9sq(nwmd):
assert nwmd.dtype == oyIN.dtype('l') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SY9P(nwmd):\n assert nwmd.ndim == 2",
"def lErQ(nwmd):\n assert nwmd.shape == (30, 50)",
"def lyf4(Cs6h, VYAN, vhYz=oyIN.float64):\n if not Cs6h.shape == (VYAN, VYAN, VYAN):\n print('The output grid shape was expected to be ({0}, {0}, {0})'.format(VYAN))\n print('However the shape wa... | [
"0.73103255",
"0.69404304",
"0.6904844",
"0.65864134",
"0.6470353",
"0.6470353",
"0.64615226",
"0.64258313",
"0.6415819",
"0.64141345",
"0.63994926",
"0.6357619",
"0.6357619",
"0.6333095",
"0.62617844",
"0.6248566",
"0.62376547",
"0.6212431",
"0.6207845",
"0.61795384",
"0.616... | 0.8300302 | 0 |
Test ``ndim`` of grids. | def SY9P(nwmd):
assert nwmd.ndim == 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uVog(IZxK, Htse):\n ROpF = tuple(IZxK.loc.shape)\n return ROpF == Htse",
"def ar_p(YKHO):\n for Zwka in YKHO.default_test_data:\n KCHu = YKHO.SEGMENT_CLASS(Zwka.data)\n l6SX = KCHu.ndim\n ezWE = oyIN.array(KCHu)\n YKHO.assertEqual(oyIN.ndim(ezWE), l6SX, 'For class {0}, se... | [
"0.6850575",
"0.6779651",
"0.6711674",
"0.6611206",
"0.6554801",
"0.6546197",
"0.6539565",
"0.6505234",
"0.6395924",
"0.63920784",
"0.6278807",
"0.6210151",
"0.62097156",
"0.6207396",
"0.6186012",
"0.6170574",
"0.61657465",
"0.61574197",
"0.61555105",
"0.6141097",
"0.61207783... | 0.8231822 | 0 |
Directs the output of the root logger to stderr. | def I3oN() -> G9jH.StreamHandler:
G9jH.getLogger().setLevel(G9jH.DEBUG)
cedc = G9jH.StreamHandler()
cedc.setLevel(G9jH.INFO)
uaPq = G9jH.Formatter(Pfbk, _tsJ)
cedc.setFormatter(uaPq)
G9jH.getLogger().addHandler(cedc)
return cedc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xj8R(YKHO, Yco9):\n if YKHO.verbose or YKHO.warnings or (not YKHO.filename):\n DCgT = G9jH.StreamHandler()\n DCgT.setFormatter(Z4aZ)\n if YKHO.warnings:\n DCgT.setLevel(G9jH.WARNING)\n Yco9.addHandler(DCgT)",
"def exRq(YKHO):\n G9jH.basicConfig(level=G9jH.DEBUG, f... | [
"0.8116516",
"0.74537164",
"0.6882108",
"0.679926",
"0.66803145",
"0.66255885",
"0.6621429",
"0.6609831",
"0.6591871",
"0.65733546",
"0.6542543",
"0.6540414",
"0.6510456",
"0.64008945",
"0.6387256",
"0.6233911",
"0.62193835",
"0.6210906",
"0.6197448",
"0.6163732",
"0.6153076"... | 0.6205893 | 18 |
Closes the device controller. | def tBIc(YKHO):
YKHO.device.close()
YKHO.device = None
super().tearDown() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Toha(YKHO):\n YKHO.device.close()",
"def DDI8(YKHO):\n YKHO.device.close()",
"def mhgj(YKHO):\n YKHO.device.close()",
"def DDI8(YKHO) -> None:\n YKHO.device.close()",
"def DDI8(YKHO):\n YKHO.device.disconnect()",
"def DDI8(YKHO):\n YKHO.device.disconnect()",
"def DDI8(YKHO):\n ... | [
"0.7982344",
"0.79723895",
"0.79519707",
"0.7932635",
"0.7674313",
"0.76586217",
"0.7629605",
"0.7383507",
"0.7377944",
"0.7282568",
"0.71803904",
"0.70543694",
"0.6897846",
"0.6819438",
"0.6761302",
"0.6755995",
"0.67514795",
"0.6738661",
"0.67296463",
"0.66444385",
"0.66099... | 0.0 | -1 |
Create a new entity based on `entity`. If no `new_key` or 'id' property is provided, the returned entity's id will be set to None and will be generated when the entity is put into the datastore. | def QoYT(LEXu, hU8D=None, kb6l=None, **ht0m):
dVFo = LEXu._values.copy()
ZZ5v = LEXu._properties
C3ST = LEXu.__class__
if isinstance(LEXu, K0vP.PolyModel):
if 'class' in dVFo:
del dVFo['class']
dVFo = {YWBp: BWXx for YWBp, BWXx in dVFo.iteritems() if YWBp in C3ST._properties and ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, LEXu):\n if LEXu.id is None:\n LEXu.id = YKHO._idGenrator.get_next_id()\n YKHO._entities[LEXu.id] = LEXu\n return LEXu",
"def eLpg(YKHO, H5ew, nPrm):\n if not isinstance(H5ew, QMSQ) or H5ew in YKHO._store:\n raise kKZD('Key already in store.')\n with OuNg:\n ZfU... | [
"0.7439625",
"0.65575904",
"0.6335238",
"0.63095546",
"0.6305754",
"0.6185475",
"0.6184511",
"0.6181204",
"0.6114676",
"0.6114502",
"0.6082618",
"0.60545236",
"0.60408086",
"0.6010348",
"0.6005704",
"0.5999996",
"0.5924558",
"0.5864176",
"0.5848773",
"0.58479315",
"0.58153695... | 0.6410323 | 2 |
Return the local value of a ComputedProperty instead of recomputing. | def G5YN(LEXu, UdVl):
YDCF = LEXu._properties.get(UdVl, None)
if not YDCF:
raise lkTR('Property %s not found' % UdVl)
elif not isinstance(YDCF, rtVo.ComputedProperty):
raise lkTR('Property %s is of type %s. Expected ComputedProperty.' % (UdVl, type(LEXu).__name__))
return super(rtVo.Comp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v66Q(JfyU):\n return pfd7(JfyU)",
"def NDxO(NKcE):\n izsg = '_cached_' + NKcE.__name__\n\n @property\n @xBlr.wraps(NKcE)\n def op1w(YKHO):\n try:\n return getattr(YKHO, izsg)\n except AttributeError:\n BWXx = NKcE(YKHO)\n setattr(YKHO, izsg, BWXx)... | [
"0.69609386",
"0.58878314",
"0.5863531",
"0.58239686",
"0.57861656",
"0.5777277",
"0.5770385",
"0.57438415",
"0.574269",
"0.5646855",
"0.561649",
"0.56143415",
"0.5589359",
"0.5587102",
"0.5583192",
"0.5543268",
"0.55330396",
"0.5529865",
"0.55186236",
"0.5503479",
"0.5469928... | 0.7528152 | 0 |
Setter for theta and the regularization parameter. log=True if the hyperparameters are given as logs | def XOTC(YKHO, UwBq, _zxd, RKD7=True):
if RKD7:
if _zxd:
YKHO.logTheta = UwBq[:-1]
YKHO.logRegPara = UwBq[-1]
else:
YKHO.logTheta = UwBq
YKHO.logRegPara = None
elif _zxd:
YKHO.logTheta = oyIN.log10(UwBq[:-1])
YKHO.logRegPara = oyIN.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GudW(YKHO, RKD7=True):\n UwBq = oyIN.atleast_1d(YKHO.logTheta)\n if YKHO.regularization:\n UwBq = oyIN.concatenate((UwBq, oyIN.atleast_1d(YKHO.logRegPara)))\n if not RKD7:\n UwBq = oyIN.power(10, UwBq)\n return UwBq",
"def q7In(YKHO, q7In):\n if q7In is None:\n YKHO._theta... | [
"0.6965207",
"0.6839599",
"0.6375397",
"0.6375397",
"0.6374872",
"0.63355076",
"0.63070315",
"0.62632275",
"0.6257946",
"0.6215433",
"0.6215433",
"0.6215433",
"0.6189591",
"0.60167503",
"0.5915525",
"0.5907531",
"0.58937615",
"0.5871443",
"0.5853333",
"0.5853333",
"0.58399606... | 0.7407373 | 0 |
Getter for theta and the regularization parameter. log=True if the hyperparameters should be given as logs | def GudW(YKHO, RKD7=True):
UwBq = oyIN.atleast_1d(YKHO.logTheta)
if YKHO.regularization:
UwBq = oyIN.concatenate((UwBq, oyIN.atleast_1d(YKHO.logRegPara)))
if not RKD7:
UwBq = oyIN.power(10, UwBq)
return UwBq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q7In(YKHO):\n q7In = []\n NArs = YKHO.get_params()\n for bpHD in YKHO.hyperparameters:\n if not bpHD.fixed:\n q7In.append(NArs[bpHD.name])\n if len(q7In) > 0:\n return oyIN.log(oyIN.hstack(q7In))\n else:\n return oyIN.array([])",
"def qua8(YKHO, q7In, EcVT, LVAh... | [
"0.690021",
"0.6760252",
"0.6379884",
"0.632193",
"0.6319898",
"0.63126886",
"0.62254417",
"0.622089",
"0.622089",
"0.6209032",
"0.61885417",
"0.617657",
"0.61529607",
"0.61526376",
"0.61425465",
"0.61244386",
"0.61244386",
"0.61244386",
"0.6098958",
"0.6093807",
"0.609155",
... | 0.73205024 | 0 |
Unload a config entry. | async def async_unload_entry(ajET, bTKY):
vzeF.info('Removing Meross Cloud integration.')
vzeF.info('Cleaning up resources...')
for a9EH in _0eT:
vzeF.info(f'Cleaning up platform {a9EH}')
await ajET.config_entries.async_forward_entry_unload(bTKY, a9EH)
p_z1 = ajET.data[Sugg][VS5p]
vz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)",
"async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()... | [
"0.70418245",
"0.69975436",
"0.69197667",
"0.69024074",
"0.6896897",
"0.6870464",
"0.6840728",
"0.67911863",
"0.67835754",
"0.6782968",
"0.6776581",
"0.67688036",
"0.6737991",
"0.6730449",
"0.6713354",
"0.67085946",
"0.6664857",
"0.66411716",
"0.6637687",
"0.66157013",
"0.660... | 0.0 | -1 |
Returns a tuple of grid parameters for an EASE grid gridname standard name of grid | def kFA9(DjJ5):
i8Ys = {'Nh': {'c': 12.5, 'nx': 1441, 'ny': 1441, 'r0': 720, 's0': 720}}
try:
Aofo = i8Ys[DjJ5]
return Aofo
except:
print('griddef: unknown grid name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBFQ():\n return ['kurucz']",
"def yeZ4(vAr4):\n DjJ5 = vAr4.find('esmModelGrid/shortName')\n return DjJ5",
"def NArs():\n YiU0 = ['l2']\n Nq1b = oyIN.logspace(-4, 4, 8)\n ykvB = ['lbfgs', 'sag', 'saga']\n Ofyl = {'penalty': YiU0, 'C': Nq1b, 'solver': ykvB}\n return Ofyl",
"def yG... | [
"0.65217733",
"0.6062263",
"0.6046221",
"0.5996463",
"0.5992409",
"0.58814645",
"0.587976",
"0.5866165",
"0.586238",
"0.57996625",
"0.5782698",
"0.56827337",
"0.56776595",
"0.5677317",
"0.5657259",
"0.565494",
"0.56541026",
"0.564029",
"0.5609937",
"0.56072366",
"0.5603579",
... | 0.6749283 | 0 |
format the money from interger to a money unit | def CCr2(BWXx):
if BWXx == None:
return ''
BWXx = str(BWXx)
Zihr = ''
if BWXx.startswith('-'):
BWXx = BWXx[1:]
Zihr = '-'
elif BWXx.startswith('+'):
BWXx = BWXx[1:]
Zihr = '+'
while len(BWXx) < 3:
BWXx = '0' + BWXx
return Zihr + '$' + BWXx[:-2]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BwRZ(CCr2):\n return '%s %s' % (CCr2['amount'], CCr2['currency'])",
"def _r3T(input: int) -> str:\n KCHu = f'{int(input / 100)}.{input % 100:02} {GPtr.bean_currency}'\n return KCHu",
"def EgsE(YKHO, CCr2):\n return EgsE(CCr2, locale=YKHO.locale())",
"def TJu8(Z5kt):\n return '${:,.2f}'.for... | [
"0.76976866",
"0.7313112",
"0.72488093",
"0.72479093",
"0.7180237",
"0.71687835",
"0.71369326",
"0.7134734",
"0.71080244",
"0.71032196",
"0.69676626",
"0.6959071",
"0.6933553",
"0.68919677",
"0.68509144",
"0.66873395",
"0.66740113",
"0.6667324",
"0.6660048",
"0.6650073",
"0.6... | 0.6809302 | 15 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
X_bn = ['january', 'february', 'march', 'april', 'may', 'june']
sve5 = jQ3Z['month'].mode()[0]
print('Most Popular Month: ', X_bn[sve5 - 1].title())
StUT = jQ3Z['day_of_week'].mode()[0]
print('Mo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.80004",
"0.79217696",
"0.78921604",
"0.78623635",
"0.7859447",
"0.7840089",
"0.7800651",
"0.7785077",
"0.77359724",
"0.7723725",
"0.7714387",
"0.7708706",
"0.77048045",
"0.77022535",
"0.7690253",
"0.7686504",
"0.76810664",
"0.76796",
"0.76725346",
"0.76620656",
"0.766119",... | 0.7557518 | 53 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
_8rG = jQ3Z['Start Station'].mode()[0]
print('Most Popular Start Sation: ', _8rG)
oFx8 = jQ3Z['End Station'].mode()[0]
print('Most Popular End Sation: ', oFx8)
okyY = jQ3Z['Start Station'] + ' -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
print('Total Travel Time (in hours): ', round(sum(jQ3Z['Trip Duration']) / 3600, 2))
print('Mean Travel Time (in minutes): ', round(oyIN.mean(jQ3Z['Trip Duration']) / 60, 2))
print('\nThis took %s seconds.' % (ITS7.time() -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.79176366",
"0.791... | 0.79523134 | 12 |
Return 'mom', 'dad', or 'child' for a given PedRow | def RTFw(YKHO):
if YKHO.info[2] != '0':
return 'child'
elif YKHO.info[1][1] == 'F':
return 'mom'
else:
return 'dad' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q8Ax(rdlD):\n if rdlD == 'Positive emotion':\n return 'Positive'\n elif rdlD == 'Negative emotion':\n return 'Negative'\n else:\n return 'Neutral_or_unknown'",
"def FOvL(rdlD):\n if len(rdlD.taxonomy_list) > 6:\n return rdlD.taxonomy_list[6]\n elif rdlD.organism != ... | [
"0.58242303",
"0.5629388",
"0.55203825",
"0.5474945",
"0.53402865",
"0.52957225",
"0.52906823",
"0.52166116",
"0.52040553",
"0.5179147",
"0.5177105",
"0.5157002",
"0.514582",
"0.5140499",
"0.51238847",
"0.5115009",
"0.50975716",
"0.5094113",
"0.5080503",
"0.50588065",
"0.5057... | 0.6747643 | 0 |
Decodes a record to a TensorFlow example. | def F8vC(AIu6, Q3__):
PU1l = ZylS.parse_single_example(AIu6, Q3__)
for mWFP in list(PU1l.keys()):
a1PO = PU1l[mWFP]
if a1PO.dtype == ZylS.int64:
a1PO = ZylS.to_int32(a1PO)
PU1l[mWFP] = a1PO
return PU1l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8vC(AIu6, Q3__=Q3__):\n print('record', AIu6)\n PU1l = ZylS.parse_single_example(AIu6, Q3__)\n for mWFP in list(PU1l.keys()):\n a1PO = PU1l[mWFP]\n if a1PO.dtype == ZylS.int64:\n a1PO = ZylS.to_int32(a1PO)\n PU1l[mWFP] = a1PO\n return PU1l",
"def F8vC(AIu6, Q3__):... | [
"0.84476423",
"0.8302177",
"0.82800674",
"0.82766104",
"0.82766104",
"0.82766104",
"0.8276019",
"0.8274276",
"0.8274276",
"0.82662725",
"0.8248779",
"0.82339126",
"0.8223867",
"0.8213503",
"0.8213503",
"0.8200598",
"0.81516314",
"0.8129979",
"0.81267464",
"0.81031084",
"0.795... | 0.8269405 | 9 |
Make a standard normalization layer. | def OEry(xMux):
return zzB6(32, xMux) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O9Ow(vhpA, mWFP, QGCI='sn', HVS_=None):\n if QGCI == 'gn':\n WKvO = lxnG(name='gn' + mWFP)(vhpA)\n elif QGCI == 'sn':\n WKvO = Z2wg(name='sn' + mWFP)(vhpA)\n else:\n WKvO = SwZx(name='bn' + mWFP)(vhpA, training=HVS_)\n return WKvO",
"def QYad(VKhi, HhVR: int, J1Nm: Optional[s... | [
"0.7471525",
"0.70851725",
"0.69964135",
"0.69245356",
"0.67223716",
"0.6722053",
"0.6703664",
"0.6681583",
"0.6669474",
"0.6662271",
"0.665468",
"0.6629657",
"0.6606385",
"0.6543095",
"0.6535189",
"0.65270215",
"0.64983845",
"0.6464156",
"0.6460927",
"0.64531535",
"0.644454"... | 0.6364256 | 30 |
Test that an invalid codec names raises an error. | def uTHD(zHKW):
U5bT = zHKW.run('dbfr', '--encoding', 'eggs')
assert not U5bT.success
assert "unsupported encoding 'eggs'" in U5bT.stderr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iihw(YKHO):\n x8pK = 'gzip'\n YKHO.assertOK([(x8pK, None)])\n YKHO.assertOK([(x8pK, 1)])\n YKHO.assertOK([(x8pK, 0.5)])\n YKHO.assertRaisesInternalError([('', 1)])\n YKHO.assertRaisesInternalError([(x8pK, '')])\n YKHO.assertRaisesInternalError([(x8pK, 'a')])\n YKHO.assertRaisesInternalE... | [
"0.6710351",
"0.6667838",
"0.66278875",
"0.6601749",
"0.6580812",
"0.65304285",
"0.65154725",
"0.6509276",
"0.6505952",
"0.648465",
"0.6477677",
"0.6461997",
"0.64439756",
"0.64429367",
"0.6411479",
"0.6404876",
"0.6404585",
"0.63894767",
"0.63879144",
"0.63707465",
"0.635630... | 0.0 | -1 |
Test that a multicharacter quote argument is invalid. | def PXlc(zHKW):
U5bT = zHKW.run('dbfr', '--quote', 'eggs')
assert not U5bT.success
assert 'argument --quote/-q: must be a single character' in U5bT.stderr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oeJc(YKHO, BWXx):\n HJYn = BWXx.lower()\n return HJYn in YKHO.reserved_words or YKHO.illegal_initial_characters.match(BWXx[0]) or (not YKHO.legal_characters.match(QMSQ(BWXx))) or (HJYn != BWXx)",
"def xvvY():\n r8hN = MjOo.UNQUOTED_STRING.search(\"'foo'\")\n assert r8hN\n assert r8hN.groups()[... | [
"0.7243434",
"0.67426753",
"0.6645728",
"0.66454625",
"0.6606742",
"0.6591026",
"0.65636265",
"0.65636265",
"0.6561617",
"0.65538466",
"0.65116835",
"0.64876795",
"0.6480392",
"0.64076096",
"0.6400343",
"0.6396532",
"0.6393647",
"0.6362843",
"0.63506436",
"0.6311662",
"0.6274... | 0.69189775 | 1 |
Returns the lower edge of the Rsq range for the given box. | def O7tY(FlUN):
if vxAN(FlUN):
return 0.2
return 0.3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qOca(WKvO, FlUN):\n return WKvO - FlUN * oyIN.rint(WKvO / FlUN)",
"def YPyC(YKHO) -> 'Rect':\n return rbZs(origin=PvyL(x=YKHO.left_edge, y=YKHO.top_edge + YKHO.half_height[1]), end=YKHO.end)",
"def IDsK(YKHO) -> float:\n return YKHO._lb",
"def F8Ro(GYx_: float, T4tt: float, roDx: np.ndarray, lJf... | [
"0.61073524",
"0.60702753",
"0.5982257",
"0.5898796",
"0.5893302",
"0.5893302",
"0.58374226",
"0.58156514",
"0.58069",
"0.58009446",
"0.5704241",
"0.56935567",
"0.56691086",
"0.5649183",
"0.5636539",
"0.562967",
"0.56285816",
"0.5627118",
"0.5621848",
"0.56148744",
"0.5607221... | 0.6698475 | 0 |
Gets xsec intlumi for the given signal model | def h_aY(hTnp):
XONr = {'T1': {1800: 0.00276133, 1000: 0.325388}, 'T2': {1000: 0.00615134}}
CRAn = {'T1': {1800: 15000, 1000: 150000}, 'T2': {1000: 20000}}
XtJ_ = 500000
C3ST, r8hN, bGrB = hTnp.split('_')
C3ST = C3ST[:2]
r8hN = int(r8hN)
return XONr[C3ST][r8hN] * XtJ_ / CRAn[C3ST][r8hN] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qWaO(Qdxg):\n return Qdxg['freq_fits'][0]['signif']",
"def JU3a(hH8U, cy0R, CKLA, aVkX, Rxj3):\n kw02 = './tmp/temp_spec_run_%i.xcm' % Hy7s.getpid()\n MVH9 = './tmp/temp_spec_%i.dat' % Hy7s.getpid()\n with open(kw02, 'w') as eHNT:\n eHNT.write('autosave off\\n')\n eHNT.write('@%s\\n... | [
"0.58061236",
"0.57478875",
"0.520382",
"0.51876575",
"0.50956994",
"0.5082643",
"0.5060015",
"0.50345546",
"0.50157595",
"0.5003795",
"0.49932596",
"0.49861676",
"0.49846855",
"0.4978639",
"0.49686965",
"0.49590915",
"0.49514633",
"0.49377048",
"0.49362847",
"0.49347955",
"0... | 0.494695 | 17 |
Create the channel designed to connect to this service. This property caches on the instance; repeated calls return the same channel. | def D3Dl(YKHO) -> VlWd.Channel:
return YKHO._grpc_channel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EJ08(YKHO):\n if not YKHO.connection:\n raise Foq8(f'Service {YKHO.name} is not available')\n if YKHO.channel is None:\n RKD7.debug('Creating new channel.')\n YKHO.channel = YKHO.connection.channel()\n YKHO.channel.confirm_delivery()\n elif YKHO.channel.is_closed:\n ... | [
"0.77121323",
"0.7683079",
"0.7652079",
"0.7188614",
"0.71456665",
"0.7130315",
"0.71118706",
"0.69698024",
"0.69580185",
"0.693503",
"0.69293684",
"0.69220215",
"0.6823624",
"0.6789686",
"0.6764807",
"0.67517704",
"0.67415464",
"0.6732771",
"0.67180425",
"0.6701959",
"0.6694... | 0.68477607 | 12 |
r"""Return a callable for the create custom class method over gRPC. Creates a [CustomClass][google.cloud.speech.v2.CustomClass]. | def lB6N(YKHO) -> YrBT[[_2aW.CreateCustomClassRequest], ld92[s1LG.Operation]]:
if 'create_custom_class' not in YKHO._stubs:
YKHO._stubs['create_custom_class'] = YKHO.grpc_channel.unary_unary('/google.cloud.speech.v2.Speech/CreateCustomClass', request_serializer=_2aW.CreateCustomClassRequest.serialize, respo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCim(YKHO) -> YrBT[[_2aW.GetCustomClassRequest], ld92[_2aW.CustomClass]]:\n if 'get_custom_class' not in YKHO._stubs:\n YKHO._stubs['get_custom_class'] = YKHO.grpc_channel.unary_unary('/google.cloud.speech.v2.Speech/GetCustomClass', request_serializer=_2aW.GetCustomClassRequest.serialize, response_de... | [
"0.8050849",
"0.7128306",
"0.67746115",
"0.673305",
"0.61420196",
"0.60457",
"0.6010206",
"0.58311623",
"0.57671535",
"0.5749935",
"0.5703136",
"0.56609434",
"0.56442386",
"0.56292456",
"0.5595131",
"0.5557555",
"0.552998",
"0.5514641",
"0.55032825",
"0.5495305",
"0.5495305",... | 0.8981538 | 0 |
r"""Return a callable for the list_operations method over gRPC. | def ELO3(YKHO) -> YrBT[[s1LG.ListOperationsRequest], s1LG.ListOperationsResponse]:
if 'list_operations' not in YKHO._stubs:
YKHO._stubs['list_operations'] = YKHO.grpc_channel.unary_unary('/google.longrunning.Operations/ListOperations', request_serializer=s1LG.ListOperationsRequest.SerializeToString, respons... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELO3(YKHO) -> YrBT[[WOJ5.ListOperationsRequest], WOJ5.ListOperationsResponse]:\n if 'list_operations' not in YKHO._stubs:\n YKHO._stubs['list_operations'] = YKHO.grpc_channel.unary_unary('/google.container.v1beta1.ClusterManager/ListOperations', request_serializer=WOJ5.ListOperationsRequest.serialize... | [
"0.8222965",
"0.70148027",
"0.6755108",
"0.6755108",
"0.6755108",
"0.6755108",
"0.67378896",
"0.67112297",
"0.67112297",
"0.67112297",
"0.66053534",
"0.65362704",
"0.65325475",
"0.6495447",
"0.64213204",
"0.63577193",
"0.63577193",
"0.63577193",
"0.63577193",
"0.6267045",
"0.... | 0.85891855 | 0 |
A single description about the contents or purpose of this object. | def JBZA(YKHO):
return next(iter(YKHO.descriptions), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def... | [
"0.8380427",
"0.8380427",
"0.8380427",
"0.8351596",
"0.83439046",
"0.83439046",
"0.83439046",
"0.8323532",
"0.8323532",
"0.8280376",
"0.827642",
"0.8220428",
"0.82166594",
"0.81860983",
"0.81854385",
"0.8172724",
"0.81637144",
"0.8160935",
"0.8160935",
"0.8160935",
"0.8136076... | 0.0 | -1 |
Normalize paths. Expand ~ character and environment variables and convert path to absolute. | def bTPP(pmON):
if pmON is None:
return None
return Hy7s.path.abspath(Hy7s.path.expanduser(Hy7s.path.expandvars(pmON))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s5sT(pmON):\n return Hy7s.path.realpath(Hy7s.path.expanduser(pmON))",
"def TLib(YKHO, pmON):\n pmON = Hy7s.path.expandvars(pmON)\n pmON = Hy7s.path.expanduser(pmON)\n if len(Hy7s.path.dirname(pmON)) == 0 and pmON not in ['.', '..']:\n return pmON\n pmON = Hy7s.path.abspath(pmON)\n re... | [
"0.7683342",
"0.75194365",
"0.7417692",
"0.7403232",
"0.72305644",
"0.7083945",
"0.7083945",
"0.7016362",
"0.6986561",
"0.69711506",
"0.6967001",
"0.6949086",
"0.6919551",
"0.6917076",
"0.6898792",
"0.6858046",
"0.6793199",
"0.6761017",
"0.67283875",
"0.66936237",
"0.66748655... | 0.755611 | 1 |
Converts this object to a string. Returns a minimalist representation of this object (not XML valid). Like to_xml_string, but never renders the RenderedObject childrens. | def zAg0(YKHO):
QRWK = '<' + YKHO._tag_name + ' '
for H5ew, BWXx in YKHO._properties.items():
QRWK += H5ew + '="' + str(BWXx) + '" '
if len(YKHO._inner_content) == 0:
QRWK += '/>'
return QRWK
QRWK += '>'
if len(YKHO._inner_content) > 0:
QRWK += '<...>'
QRWK += '</... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XqqO(YKHO):\n QRWK = '<' + YKHO._tag_name + ' '\n for H5ew, BWXx in YKHO._properties.items():\n QRWK += H5ew + '=\"' + str(BWXx) + '\" '\n if len(YKHO._inner_content) == 0:\n QRWK += '/>'\n return QRWK\n QRWK += '>'\n for aUGN in YKHO._inner_content:\n if type(aUGN) =... | [
"0.7667844",
"0.7457057",
"0.7320989",
"0.73094743",
"0.7200522",
"0.71784765",
"0.71187514",
"0.71187514",
"0.71187514",
"0.7108794",
"0.70848405",
"0.70596576",
"0.70115834",
"0.6979208",
"0.6979208",
"0.69787854",
"0.69569343",
"0.6952705",
"0.6934673",
"0.69265634",
"0.68... | 0.684293 | 30 |
Converts this object to a string. The difference between to_xml_string and to_tree_string is that toTreeString returns a Treebased representation, instead of a readytoparse XML string. | def anH6(YKHO, N4WR=' '):
ld0N = YKHO._tag_name + ' ('
for H5ew, BWXx in YKHO._properties.items():
ld0N += H5ew + '="' + str(BWXx) + '" '
ld0N += ')'
if len(YKHO._inner_content) == 0:
return ld0N
ld0N += ':'
for aUGN in YKHO._inner_content:
ld0N += '\n'
if type... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return QGpr.tostring(YKHO.etree_element(), encoding='utf-8').decode('UTF-8')",
"def zAg0(YKHO):\n return QGpr.tostring(YKHO.toxml(), pretty_print=True).decode()",
"def gTzM(YKHO):\n return QGpr.tostring(YKHO.root, xml_declaration=True, standalone=True, pretty_print=True)",
"def gTz... | [
"0.8353039",
"0.8311551",
"0.8276331",
"0.82615066",
"0.82615066",
"0.82615066",
"0.8040358",
"0.8004573",
"0.7843937",
"0.7761479",
"0.77389884",
"0.77187353",
"0.77153534",
"0.765631",
"0.76242137",
"0.7612232",
"0.7589016",
"0.7522567",
"0.75114447",
"0.7465558",
"0.742741... | 0.6639042 | 87 |
Returns a dictionary of all attributes of this object | def C9U5(YKHO):
return YKHO._properties | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o8Kj(YKHO):\n return dict(YKHO.__dict__)",
"def azoT(Emd4):\n return dict(Emd4._attributes)",
"def azoT(YKHO):\n return {}",
"def MNRr(YKHO):\n return {hkS8: getattr(YKHO, hkS8) for hkS8 in YKHO.ATTRIBUTES if hasattr(YKHO, hkS8)}",
"def h6gc(YKHO):\n return YKHO.__class__.ATTRIBUTES.keys... | [
"0.87632215",
"0.87112516",
"0.85631657",
"0.8519666",
"0.84014094",
"0.8386944",
"0.83816826",
"0.8359411",
"0.8344073",
"0.831737",
"0.83117807",
"0.8309512",
"0.8286737",
"0.8282798",
"0.827668",
"0.8221424",
"0.8221424",
"0.8221424",
"0.8221424",
"0.8221424",
"0.8221424",... | 0.0 | -1 |
Loads pre_trained keras model and vocab file | def O5RJ(uqvc: str) -> II1g.SentencePieceProcessor:
Z7qq = II1g.SentencePieceProcessor()
Z7qq.Load(model_file=uqvc)
return Z7qq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMdJ():\n C3ST = OLvP()\n C3ST.load_weights(Yodb)\n return C3ST",
"def IMdJ():\n return uyMl(bNss)",
"def ADWC():\n print('Loading existing model...')\n print('Model loaded!')\n C3ST = ZylS.keras.models.load_model(DKx_['PRETRAIN_MODEL_DIR'])\n C3ST = x2M3(C3ST)\n return C3ST",
... | [
"0.75179243",
"0.74922264",
"0.73648745",
"0.73492754",
"0.7296609",
"0.72922456",
"0.72830504",
"0.7239719",
"0.7227392",
"0.7227392",
"0.7227392",
"0.7221672",
"0.71409774",
"0.7138119",
"0.71195",
"0.7117068",
"0.70948833",
"0.70797485",
"0.70756876",
"0.7073707",
"0.70391... | 0.0 | -1 |
Adds missing YearMonth values from the given range to the dataframe with zero values in the specified column | def GzXx(jQ3Z, ljfJ, hg96, rn4h):
cxRd = ljfJ
while cxRd < hg96:
kpxX = '{year}-{month:02d}'.format(year=cxRd.year, month=cxRd.month)
cxRd += enlf(months=1)
if kpxX not in jQ3Z[euO6].values:
jQ3Z = jQ3Z.append({euO6: kpxX, rn4h: 0.0}, ignore_index=True)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SSE5(C3ST):\n CXCD = C3ST.ISO3.unique()\n hR5B = C3ST.Year_Month.unique()\n PvFl = []\n for b8mQ in CXCD:\n for _c1T in hR5B:\n PvFl.append([b8mQ, _c1T])\n kpxX = rLdf.DataFrame(PvFl)\n lXgg = C3ST.merge(kpxX, left_on=['ISO3', 'Year_Month'], right_on=[0, 1], how='outer').dro... | [
"0.71530837",
"0.663631",
"0.65073514",
"0.58184546",
"0.5691594",
"0.56852746",
"0.56565064",
"0.5651961",
"0.5649013",
"0.563123",
"0.55944866",
"0.5514808",
"0.5506631",
"0.5455139",
"0.5450368",
"0.5394138",
"0.53360236",
"0.5334647",
"0.533273",
"0.531083",
"0.52997416",... | 0.7809628 | 0 |
Convert a graph json file to a CRTcompatible FuncRegistry. | def J6S9(EBtR, XP42):
with open(EBtR) as D3u0:
pNZh = qQXR.load(D3u0)
aese = []
for exwG in pNZh['nodes']:
if exwG['op'] != 'tvm_op':
continue
aese.append(exwG['attrs']['func_name'])
Z9Np = f'\\{len(aese):03o}' + '\\0'.join(aese)
Nqlg = ['#include <tvm/runtime/c_r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ilb(wM3v):\n yvY1 = jHsn.Graph()\n with open(wM3v, 'r') as eHNT:\n nPrm = qQXR.load(eHNT)\n yvY1 = jHsn.json_graph.node_link_graph(nPrm)\n return yvY1",
"def dtZu(ei1D, OT_z):\n Oa1e = y0pd(ei1D)\n E1En(OT_z, Oa1e)\n return Oa1e",
"def V3ax(pmON):\n IZaH = ['node_functio... | [
"0.59889096",
"0.58469903",
"0.5751229",
"0.5751229",
"0.5751229",
"0.55741155",
"0.55682",
"0.55262333",
"0.5520984",
"0.54929394",
"0.54844666",
"0.54471904",
"0.54433376",
"0.5422558",
"0.54127586",
"0.5382458",
"0.5374792",
"0.5363249",
"0.53621954",
"0.53606504",
"0.5358... | 0.79651284 | 0 |
Validates that the specified regular expression is valid. | def kJhy(BWXx):
try:
ZbWC.compile(BWXx)
except Exception as e:
raise sUXu(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HlGW(njyT, JbyC=0, tO9_='Invaild input'):\n\n def kJhy(QWcs, BWXx):\n if not ZbWC.match(njyT, BWXx, flags=JbyC):\n raise WpuO(tO9_)\n return None\n return kJhy",
"def kJhy(vIwR):\n try:\n return ZbWC.compile(vIwR)\n except ZbWC.error:\n tO9_ = 'Bad regex syn... | [
"0.80373347",
"0.7749077",
"0.7749077",
"0.7672391",
"0.70570993",
"0.70570993",
"0.70497495",
"0.6960192",
"0.6826332",
"0.6803758",
"0.6565326",
"0.6530436",
"0.65167046",
"0.6515378",
"0.64872295",
"0.6476861",
"0.6463968",
"0.6452799",
"0.6426818",
"0.6412449",
"0.6359164... | 0.79384845 | 1 |
Creates and saves a lineplot. | def O42U(jQ3Z, w_Vc, nF2E, w6yN, QlHe, x5eh, WPPV, Rn4M, CKMi=lYWY(), yDBn=''):
if len(QlHe) > 0:
for Oa1e, xaVI in jQ3Z.groupby(QlHe):
if len(QlHe) == 1:
Oa1e = [Oa1e]
else:
Oa1e = list(Oa1e)
j6_k = [Rn4M] + [WKvO + '=' + LVAh for WKvO, LV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HGhg(YKHO):\n if YKHO.herbivore_line is None:\n pIMi = YKHO.ax_line.plot(oyIN.arange(0, YKHO.final_year), oyIN.full(YKHO.final_year, oyIN.nan))\n YKHO.herbivore_line = pIMi[0]\n else:\n WKvO, LVAh = YKHO.herbivore_line.get_data()\n kNbz = oyIN.arange(WKvO[-1] + 1, YKHO.final_y... | [
"0.7226145",
"0.70376253",
"0.69198453",
"0.6753236",
"0.67473817",
"0.6715315",
"0.67121637",
"0.6698586",
"0.66600424",
"0.6638274",
"0.6568417",
"0.65556335",
"0.64870995",
"0.63914484",
"0.6381866",
"0.63803077",
"0.6354896",
"0.6344113",
"0.63179517",
"0.6298206",
"0.628... | 0.5598527 | 93 |
route to log out current user | def erK4():
oLi7()
return vKnz(nKyW('main.index')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLi7(QePW):\n pass",
"def oLi7(QePW):\n erK4(QePW)\n return vKnz('/')",
"def lViG():\n del cuiw['current_user']\n Dwep('Logged Out.')\n return vKnz('/')",
"def oLi7(QePW):\n if QePW.user.is_authenticated():\n erK4(QePW)\n return {'url': gxEw(d6pt)}\n else:\n r... | [
"0.847773",
"0.813997",
"0.8136898",
"0.8109477",
"0.8107271",
"0.80562466",
"0.8048919",
"0.80471677",
"0.80397385",
"0.8002742",
"0.8001183",
"0.79770833",
"0.79592854",
"0.7952206",
"0.79521316",
"0.79419816",
"0.7938665",
"0.7932282",
"0.7887512",
"0.7880882",
"0.7860694"... | 0.0 | -1 |