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
Get G_A, G_B generator network and D_A, D_B discriminator network.
def KH7I(C3ST='resnet'): if C3ST not in ['resnet', 'unet']: raise NotImplementedError(f'Model {C3ST} not recognized.') p6IS = r_eL(C3ST) ZH5x = r_eL(C3ST) kblM = VE7y() PJ6K = VE7y() return (p6IS, ZH5x, kblM, PJ6K)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jd4y(_6kc, Zr3k):\n N77f = ibys.loss.SoftmaxCrossEntropyLoss()\n _6kc.initialize(RsfQ.init.Normal(0.02), ctx=OaeV)\n Zr3k.initialize(RsfQ.init.Normal(0.02), ctx=OaeV)\n cVS5 = ibys.Trainer(_6kc.collect_params(), 'adam', {'learning_rate': y7GR.lr, 'beta1': y7GR.beta1})\n fRNv = ibys.Trainer(Zr3k....
[ "0.7060971", "0.6893522", "0.6556148", "0.649573", "0.6350109", "0.63479924", "0.6308777", "0.62322557", "0.61487263", "0.61467576", "0.6094024", "0.60602117", "0.60406893", "0.60353756", "0.6013299", "0.60059655", "0.6005383", "0.5988585", "0.59838253", "0.5951724", "0.59149...
0.68156666
2
The power flow state associated with the terminal.
def aRyj(YKHO): return YKHO._SvPowerFlow
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO._status['Power']", "def lyTX(YKHO) -> PtXs.PowerState:\n return YKHO.relay('power_state')", "def lyTX(YKHO) -> 'outputs.PowerStateResponse':\n return qe4Y.get(YKHO, 'power_state')", "def lyTX(YKHO) -> qe4Y.Output['outputs.PowerStateResponse']:\n return qe4Y.get(YKHO,...
[ "0.75510573", "0.7545894", "0.74355066", "0.7400612", "0.73641676", "0.7153235", "0.68892574", "0.6712329", "0.6703791", "0.66998017", "0.66182965", "0.66109735", "0.6556163", "0.65510935", "0.6438282", "0.64275736", "0.6416684", "0.6412709", "0.64047366", "0.63831395", "0.63...
0.65443265
14
The topological node associated with the terminal. This can be used as an alternative to the connectivity node path to topological node, thus making it unneccesary to model connedtivity nodes in some cases. Note that the if connectivity nodes are in the model, this association would proably not be used.
def qYcT(YKHO): return YKHO._TopologicalNode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eL3j(YKHO):\n Pk5F = YKHO.last_repeat_index\n pWyZ = YKHO.repetitions[Pk5F]\n _AKB = pWyZ.get((Pk5F, YKHO.terminal_node_index))\n return _AKB", "def Q6kx(YKHO):\n return tNWC.get_dag_path_of_mobj(YKHO._node_mobj)", "def xN0p(YKHO):\n return YKHO.data[0].topology()", "def adF0(YKHO):\n ...
[ "0.6825315", "0.6253641", "0.61419106", "0.59796375", "0.59618425", "0.5956947", "0.5956947", "0.5935906", "0.5916959", "0.59023076", "0.58470213", "0.5823984", "0.5823984", "0.57900715", "0.5764354", "0.57473904", "0.5733607", "0.5724719", "0.5724719", "0.5710306", "0.570238...
0.7159187
0
Changing to same email shows validation error.
def XAi_(YKHO): YKHO.client.login(username='rrosario', password='testpass') CBIr = mv1M.objects.get(username='rrosario') CBIr.email = 'valid@email.com' CBIr.save() geh0 = YKHO.client.post(YKHO.url, {'password': 'testpass', 'new_email': CBIr.email}) NaW5(200, geh0.status_code) A97Q = sqRO(geh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YBiq(YKHO):\n if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']):\n raise H6V6.ValidationError('This email address is already in use. Please supply a different email address.')\n return YKHO.cleaned_data['email']", "def YBiq(YKHO):\n if mv1M.objects.filter(email__iexact=YKHO.cle...
[ "0.8148241", "0.81052303", "0.81008476", "0.80822617", "0.80822617", "0.80822617", "0.8025032", "0.79828244", "0.7945272", "0.7943036", "0.7935106", "0.7860964", "0.78215003", "0.7821256", "0.7784125", "0.7783524", "0.778039", "0.77247477", "0.7714984", "0.7710267", "0.770728...
0.70777947
91
Changing to same email shows validation error.
def b6bC(YKHO): YKHO.client.login(username='rrosario', password='testpass') D3lj = 'newvalid@email.com' mv1M.objects.filter(username='pcraciunoiu').update(email=D3lj) geh0 = YKHO.client.post(YKHO.url, {'password': 'testpass', 'new_email': D3lj}) NaW5(200, geh0.status_code) A97Q = sqRO(geh0.conte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YBiq(YKHO):\n if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']):\n raise H6V6.ValidationError('This email address is already in use. Please supply a different email address.')\n return YKHO.cleaned_data['email']", "def YBiq(YKHO):\n if mv1M.objects.filter(email__iexact=YKHO.cle...
[ "0.8148241", "0.81052303", "0.81008476", "0.80822617", "0.80822617", "0.80822617", "0.8025032", "0.79828244", "0.7945272", "0.7943036", "0.7935106", "0.7860964", "0.78215003", "0.7821256", "0.7784125", "0.7783524", "0.778039", "0.77247477", "0.7714984", "0.7710267", "0.770728...
0.0
-1
Return items from ``iterable`` when their index is even.
def zAY9(OxJJ): hkxX = [] for d6pt, BWXx in enumerate(OxJJ, start=1): if not d6pt % 2: hkxX.append(BWXx) return hkxX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAY9(OxJJ):\n hkxX = []\n for d6pt, BWXx in enumerate(OxJJ, start=1):\n if not d6pt % 2:\n hkxX.append(BWXx)\n return hkxX", "def vf3I(MuIv: Iteratable) -> HRJ_.Iterator[Kt_s]:\n while True:\n try:\n yield next(MuIv)\n next(MuIv)\n except Stop...
[ "0.84220034", "0.69179165", "0.65241194", "0.6455467", "0.6381028", "0.6338234", "0.6306398", "0.62833947", "0.6263031", "0.61746955", "0.61674154", "0.6136253", "0.6118557", "0.6087903", "0.6038375", "0.6029342", "0.60117006", "0.59987557", "0.5996811", "0.59631276", "0.5959...
0.8397523
1
r is a numpy array in the shape of (n, batch_size). return the discounted and cumulative rewards
def AC1_(Mkmy): Aofo = oyIN.zeros_like(Mkmy, dtype=float) exwG = Mkmy.shape[0] MCOv = oyIN.zeros_like(Mkmy[0], dtype=float) for YRbF in range(exwG - 1, -1, -1): MCOv *= KMvS MCOv += Mkmy[YRbF] Aofo[YRbF] = MCOv return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AC1_(YKHO, Mkmy):\n g2lU = oyIN.zeros_like(Mkmy)\n S8qo = 0\n for a1PO in reversed(range(0, Mkmy.size()[0])):\n S8qo = S8qo * KMvS + Mkmy[a1PO]\n g2lU[a1PO] = S8qo\n return g2lU", "def AC1_(YKHO, Mkmy):\n g2lU = oyIN.zeros_like(Mkmy)\n S8qo = 0\n for a1PO in reversed(Ni9Y(0...
[ "0.8334603", "0.82771397", "0.8233033", "0.8233033", "0.8233033", "0.82163554", "0.81644255", "0.8124641", "0.8072328", "0.8071949", "0.8028787", "0.8023672", "0.79730976", "0.79722995", "0.793069", "0.7879462", "0.77640414", "0.7691325", "0.76539284", "0.7587441", "0.7566054...
0.81703115
6
Inserts a word into the trie.
def JPHp(YKHO, GIN8: str) -> None: tk5Y = YKHO.root u54L = len(GIN8) for YRbF in range(len(GIN8)): d6pt = YKHO.getIndex(GIN8[YRbF]) if d6pt not in tk5Y.children: tk5Y.children[d6pt] = YKHO.getNode() tk5Y = tk5Y.children.get(d6pt) tk5Y.terminating = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True", "def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y...
[ "0.89349246", "0.8875727", "0.88754433", "0.88664436", "0.8845666", "0.88351166", "0.8829387", "0.88241696", "0.88215303", "0.88025844", "0.87970716", "0.87917984", "0.87870646", "0.8786165", "0.8785743", "0.87801075", "0.8779744", "0.87764865", "0.87708014", "0.8767584", "0....
0.8290081
88
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8: str) -> bool: tk5Y = YKHO.root u54L = len(GIN8) for YRbF in range(len(GIN8)): d6pt = YKHO.getIndex(GIN8[YRbF]) if d6pt not in tk5Y.children: return False tk5Y = tk5Y.children.get(d6pt) return tk5Y.terminating == True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word", "def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')...
[ "0.82730556", "0.8268669", "0.8264989", "0.821454", "0.8189983", "0.81762034", "0.81695247", "0.81329536", "0.7981468", "0.7973667", "0.7966321", "0.79540753", "0.7881218", "0.7876813", "0.78663623", "0.7835046", "0.7819606", "0.7812851", "0.7811768", "0.7795306", "0.77902055...
0.76379496
36
Returns if there is any word in the trie that starts with the given prefix.
def BYxH(YKHO, y0cW: str) -> bool: tk5Y = YKHO.root u54L = len(y0cW) for YRbF in range(len(y0cW)): d6pt = YKHO.getIndex(y0cW[YRbF]) if d6pt not in tk5Y.children: return False tk5Y = tk5Y.children.get(d6pt) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals...
[ "0.86418957", "0.8456077", "0.8439758", "0.84152204", "0.8414917", "0.8406607", "0.83812594", "0.8369774", "0.83355415", "0.8326945", "0.83266926", "0.8239315", "0.8228612", "0.8172047", "0.81602836", "0.81522566", "0.81466633", "0.811517", "0.80111045", "0.79831576", "0.7983...
0.76272005
79
Load a pretrained pytorch model using HDF5 saved weights.
def Y7RH(C3ST, eG0V, U3Fm=True): EUCJ = Hy7s.path.join(eG0V, 'model_weights', 'model.h5') QTBn = ht2j.load(EUCJ) C3ST.load_state_dict(QTBn, strict=U3Fm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO):\n YKHO.model = uyMl('model/weights.18-0.39.hdf5')", "def uyMl(Ux0P, C3ST):\n print('Loading pretrained model...')\n try:\n IyFz.load_hdf5(Ux0P, C3ST)\n print('Successfully loaded pretrained model')\n except OSError as err:\n print('OS error: {}'.format(XObx))\n ...
[ "0.7570249", "0.741408", "0.7332214", "0.72635716", "0.72324306", "0.7135161", "0.7092266", "0.7049647", "0.70300066", "0.6975469", "0.6963763", "0.6948383", "0.6943309", "0.6942312", "0.6934742", "0.69241714", "0.6906455", "0.6902162", "0.6890325", "0.6880282", "0.6850909", ...
0.74603075
1
Create a model name based on the config settings.
def TbE8(_Fei): ZGE9 = _Fei['model_settings']['model_name'] mc3f = _Fei['model_settings']['model_name_prefix'] kkGS = _Fei['model_settings']['model_name_suffix'] if ZGE9 is None: qcg2 = _Fei['model_settings']['architecture_name'] bDMw = _Fei['model_settings']['sampling_name'] RpP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ry74():\n wzkt = qcWV.now()\n return f'{oiD0.value}-{wzkt.strftime('%d-%m-%Y-%H%M%S')}'", "def TbE8(sU6Q):\n return sU6Q.__name__", "def TbE8(YKHO, *qIxc, **B2fa) -> str:\n assert 'type' in YKHO.model_cfg.model, 'model config contains no type'\n mWFP = YKHO.model_cfg.model.type.lower()\n ...
[ "0.72803134", "0.7174715", "0.71508414", "0.71508414", "0.6948943", "0.68153334", "0.675864", "0.6756909", "0.6692873", "0.6689461", "0.6689461", "0.6681666", "0.66595954", "0.6650432", "0.6648838", "0.6607855", "0.6583461", "0.6551677", "0.6527131", "0.65239805", "0.64950526...
0.7733283
0
Reshapes first dimension back to [batch_size, beam_size].
def haVw(vhpA, Ep8u, baHf): ROpF = TmOq.shape_list(vhpA) EZd9 = [Ep8u] + [baHf] + ROpF[1:] return ZylS.reshape(vhpA, EZd9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q3V_(nPrm):\n return nMvt.reshape(x=nPrm, shape=(nMvt.shape(nPrm)[0], 1, OKZQ))", "def AE3A(YKHO, Wc9F: List):\n return [*Wc9F]", "def q3V_(ezWE):\n ezWE = oyIN.moveaxis(ezWE, 0, -1)\n ezWE = oyIN.squeeze(ezWE)\n return ezWE", "def AE3A(g4y1, zNig, Ep8u):\n D0B5 = []\n for toat in ra...
[ "0.6876983", "0.6735291", "0.6655655", "0.6528331", "0.65164167", "0.6497767", "0.6412895", "0.6372497", "0.63623583", "0.63030565", "0.62676954", "0.6255481", "0.6237568", "0.6225868", "0.6206327", "0.6169949", "0.6139671", "0.61130756", "0.61130756", "0.6108581", "0.6108581...
0.7148423
0
initialize the exception with an error message and the field on which it was raised.
def FIMM(YKHO, tO9_, Jyyj=None): YKHO.msg = tO9_ YKHO.field = Jyyj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, **B2fa):\n YKHO.field_name = B2fa.pop('field_name')\n YKHO.field_types = B2fa.pop('field_types')\n YKHO.value = B2fa.pop('value')\n super(xkUf, YKHO).__init__(**B2fa)", "def FIMM(YKHO, Ol8d):\n YKHO.message = Ol8d\n uCoI.__init__(YKHO)", "def FIMM(YKHO, P1dF, Ol8d):\n YKHO._...
[ "0.7399675", "0.73898053", "0.71467716", "0.7142978", "0.7107107", "0.7026049", "0.694552", "0.68776566", "0.6842536", "0.67360294", "0.67231846", "0.67160213", "0.6694986", "0.6694986", "0.6694986", "0.6668065", "0.6653056", "0.66522723", "0.66522723", "0.66522723", "0.66522...
0.6682349
15
Get the currently open maya project and validate.
def YsXL(): oYJ8 = ccKF.workspace(q=True, rd=True) return oYJ8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YsXL():\n global project\n if not QlFR:\n return None", "def XpKw(YKHO):\n pass", "def WB7c():\n global g_nim_TrackedActiveProject\n hBwp = None\n jbYn = hwds.ui.currentViewer().player().sequence()\n if hasattr(jbYn, 'project'):\n hBwp = jbYn.project()\n else:\n ...
[ "0.69817346", "0.65920514", "0.6467272", "0.6402028", "0.6385635", "0.6342075", "0.6336766", "0.63175726", "0.63035953", "0.6273986", "0.62700814", "0.62515044", "0.6204956", "0.6168953", "0.61631584", "0.60536754", "0.6041868", "0.6036164", "0.6021296", "0.6019228", "0.60192...
0.6533617
2
Default ctor instantiates object with a token. result_set is initially empty
def FIMM(YKHO): YKHO.token = NewI.get_token() YKHO.result_set = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, eOtH):\n YKHO.token = eOtH", "def FIMM(YKHO, eOtH):\n YKHO.token = eOtH", "def FIMM(YKHO, Aofo):\n YKHO.result = Aofo", "def FIMM(YKHO) -> None:\n YKHO.results: x1iM[nQ3j] = []\n YKHO.source: h8nf[str] = None", "def FIMM(YKHO, eOtH):\n super().__init__()\n YKHO.token = e...
[ "0.68974864", "0.67486906", "0.671394", "0.6610048", "0.6521328", "0.64513266", "0.64096934", "0.63386", "0.63136125", "0.63136125", "0.6263904", "0.6243031", "0.6216112", "0.620706", "0.61675954", "0.6153761", "0.61463517", "0.61331815", "0.61188406", "0.607211", "0.60444194...
0.7659292
0
Create a bias variable
def Y7ph(ROpF, mWFP): RqgG = ZylS.constant(0.1, shape=ROpF) return ZylS.Variable(RqgG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RhdW(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG)", "def Y7ph(YKHO, ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG)", "def Y7ph(ROpF):\n h0_e = ZylS.random_uniform_initializer(-0.05, 0.05)\n return ZylS.get_variable('biases', ROpF...
[ "0.7808259", "0.7791397", "0.77750313", "0.77713656", "0.77398175", "0.772178", "0.77146155", "0.77110004", "0.7707051", "0.7690976", "0.7690976", "0.7686927", "0.76824707", "0.76824707", "0.76824707", "0.76824707", "0.76824707", "0.76824707", "0.76824707", "0.76824707", "0.7...
0.7538359
43
Return statements sampled according to belief. Statements are sampled independently according to their belief scores. For instance, a Staement with a belief score of 0.7 will end up in the returned Statement list with probability 0.7.
def L4Oh(pHmp, yokr=None): if yokr: XTiz.random.seed(yokr) H5jF = [] Mkmy = XTiz.random.rand(len(pHmp)) for YRbF, ZlgM in enumerate(pHmp): if Mkmy[YRbF] < ZlgM.belief: H5jF.append(ZlgM) return H5jF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vMQp(mrPm: List[Any], BFeB: List[float]):\n BFeB = oyIN.concatenate(([0], oyIN.cumsum(BFeB)))\n Mkmy = tuKI.random()\n for r845 in range(len(mrPm) + 1):\n if BFeB[r845] < Mkmy <= BFeB[r845 + 1]:\n return mrPm[r845]", "def mvm2(YKHO, exwG):\n K_qk = []\n Yt2B, ufAz = (oyIN.emp...
[ "0.5580052", "0.5450209", "0.54436773", "0.5419178", "0.5409227", "0.54030186", "0.53918874", "0.5379807", "0.53766376", "0.53728384", "0.5372016", "0.5370264", "0.53647864", "0.5352073", "0.534755", "0.5338437", "0.5335673", "0.5332831", "0.53013873", "0.5271984", "0.5265721...
0.7006954
0
Get the provisioner pod based on interface
def jTwh(wohN): PKko = 'app=csi-rbdplugin-provisioner' if wohN == uwaB.CEPHBLOCKPOOL or wohN == uwaB.CEPHBLOCKPOOL_THICK else 'app=csi-cephfsplugin-provisioner' wK2Y = Z3fl(kind=uwaB.POD, namespace=GPtr.ENV_DATA['cluster_namespace'], selector=PKko) dCio = wK2Y.data['items'] assert dCio, f'No {wohN} prov...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g2Vd(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'pod')", "def KSfo(wohN, _63S=None, Im_T='provisioner'):\n _63S = _63S or GPtr.ENV_DATA['cluster_namespace']\n er2L = {'provisioner': 'csi-provisioner', 'snapshotter': 'csi-snapshotter', 'resizer': 'csi-resizer', 'attacher': 'csi-attacher'...
[ "0.59373784", "0.5928393", "0.5832814", "0.5815344", "0.5773232", "0.56464106", "0.56072223", "0.55279356", "0.5447299", "0.54414785", "0.5435662", "0.54221773", "0.54018044", "0.5340448", "0.53083843", "0.53083843", "0.530629", "0.530629", "0.530629", "0.5280168", "0.5280168...
0.80434936
0
Fetches pod resources with given label in given namespace
def mSyR(UXqs, _63S, UD7B=None): WatA = Z3fl(kind=uwaB.POD, namespace=_63S) uvbf = WatA.get(selector=UXqs, cluster_config=UD7B).get('items') return uvbf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aM5x(UXqs, _63S):\n zqEj = Z3fl(kind=uwaB.DEPLOYMENT, namespace=_63S)\n uvbf = zqEj.get(selector=UXqs).get('items')\n return uvbf", "def PPOw(yzEL, E2Xl, UXqs, Q6kx='bootstrap', _63S='default', QTBn='Running'):\n vNGm = ['status.phase={}'.format(QTBn)]\n if Q6kx:\n CXDR = BfDw.resolve_h...
[ "0.695446", "0.66812485", "0.664524", "0.6514858", "0.6501265", "0.63902783", "0.63309026", "0.62763155", "0.6253386", "0.61744153", "0.6073795", "0.6016626", "0.5962131", "0.59620184", "0.5954904", "0.5937085", "0.5912949", "0.5879034", "0.576668", "0.56754506", "0.5666113",...
0.7549436
0
Delete a DeploymentConfig pod and all the pods that are controlled by it
def RXyC(WAjT): UdpG = e_GT.OCP(kind=uwaB.DEPLOYMENTCONFIG, namespace=WAjT.namespace) qnGm = UdpG.get().get('items') if qnGm: for SWx1 in qnGm: if WAjT.get_labels().get('name') == SWx1.get('metadata').get('name'): UdpG.delete(resource_name=WAjT.get_labels().get('name')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gyRw(Uefw: TargetConfig) -> None:\n del jslM.config['target_configs'][Uefw.filename]", "def SDju(YKHO, QePW, QpfX):\n QpfX.code(uZGC.StatusCode.UNIMPLEMENTED)", "def FMvT():\n DXYf = vyFM()\n for g2Vd in filter(lambda WKvO: WKvO['name'].startswith('tiller-deploy') and WKvO['namespace'] == 'kube...
[ "0.6333269", "0.6279488", "0.62394965", "0.6150037", "0.6069605", "0.6065491", "0.60652274", "0.60319155", "0.60222626", "0.6020728", "0.59405744", "0.5932387", "0.5891503", "0.58680075", "0.5846847", "0.584507", "0.5844005", "0.58326155", "0.58161575", "0.5792767", "0.579026...
0.832865
0
Get the deployment of the pod.
def Z1_b(e5wU): return '-'.join(e5wU.split('-')[:-2])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plaN(YKHO) -> 'outputs.DeploymentResponse':\n return qe4Y.get(YKHO, 'deployment')", "def llW3(YKHO) -> qe4Y.Output[h8nf['outputs.ServiceDeploymentController']]:\n return qe4Y.get(YKHO, 'deployment_controller')", "def plaN(YKHO):\n bD7m = YKHO._url + '/deployment'\n NArs = {'f': 'json'}\n ret...
[ "0.75737613", "0.7145913", "0.7029342", "0.67796046", "0.67773247", "0.67773247", "0.67401487", "0.6413869", "0.6378226", "0.6378226", "0.6320623", "0.6309665", "0.6278721", "0.62742287", "0.6237281", "0.6208926", "0.6208926", "0.61991507", "0.61418134", "0.6078885", "0.60679...
0.5863897
27
Get the osd pod id
def cLLe(mbXn): return mbXn.get().get('metadata').get('labels').get('ceph-osd-id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfrN(VACY):\n return VACY.get().get('metadata').get('labels').get('ceph_daemon_id')", "def pyG8(WAjT):\n return WAjT.get('labels').get('metadata').get('labels').get('ceph_daemon_id')", "def g2Vd(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'pod')", "def NgzH(YKHO):\n StMG = RyTp._getPod...
[ "0.77762306", "0.7566235", "0.6696095", "0.6435834", "0.6431642", "0.6323241", "0.6304199", "0.62966055", "0.62498796", "0.62498796", "0.6232797", "0.61465913", "0.61408854", "0.61408854", "0.6021969", "0.6018589", "0.5998328", "0.5994003", "0.59866995", "0.5978731", "0.59610...
0.8788147
0
Get the ceph daemon type of the pod object
def Yx_g(WAjT): return WAjT.get_labels().get('ceph_daemon_type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pyG8(WAjT):\n return WAjT.get('labels').get('metadata').get('labels').get('ceph_daemon_id')", "def mfrN(VACY):\n return VACY.get().get('metadata').get('labels').get('ceph_daemon_id')", "def g2Vd(YKHO):\n return YKHO.datatype.getPod()", "def Aubj(YKHO):\n try:\n U34r = YKHO._client.info...
[ "0.7163185", "0.63398093", "0.6331634", "0.619749", "0.58935744", "0.58364487", "0.5830815", "0.57080775", "0.5670182", "0.56383264", "0.56202596", "0.55818444", "0.5565745", "0.55298704", "0.5528823", "0.55268145", "0.5505762", "0.5496209", "0.549019", "0.54827136", "0.54666...
0.9286676
0
Get the pod objects of the specified pod names
def qVmq(KxNo, ZUB0=False, _63S=GPtr.ENV_DATA['cluster_namespace']): RfOK = set(KxNo) uvbf = vyFM(namespace=_63S) nFkJ = [XP5J for XP5J in uvbf if XP5J.name in RfOK] if len(KxNo) > len(nFkJ): oSJI = {XP5J.name for XP5J in nFkJ} Qvak = list(RfOK - oSJI) rhwM = f'Did not find the f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PPOw():\n M7GY = YCyu()\n _63S = GPtr['namespace']\n _hkX = M7GY.list_namespaced_pod(_63S, _preload_content=False, **GPtr['pod_selectors'])\n return qQXR.loads(_hkX.read().decode('utf8'))['items']", "def PPOw(YKHO, _63S=None, cAx9=None):\n if not _63S:\n _63S = YKHO.namespace\n uvbf ...
[ "0.7341505", "0.7332352", "0.72864556", "0.726657", "0.7161993", "0.6928523", "0.6886906", "0.68725854", "0.6802003", "0.67651117", "0.670907", "0.66961217", "0.66349804", "0.6520044", "0.6519329", "0.6437754", "0.64131063", "0.6398516", "0.6384717", "0.63796324", "0.6336829"...
0.78106666
0
Gets the mon pod label
def VWAu(iZ2U): return iZ2U.get().get('metadata').get('labels').get('mon')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nscJ(YKHO):\n return YKHO._get_info()[0]", "def nscJ(YKHO):\n return YKHO.__label", "def nscJ(YKHO):\n return YKHO.__label", "def DeTJ(YKHO):\n return YKHO.label", "def DeTJ(YKHO):\n return YKHO.label", "def DeTJ(YKHO):\n return YKHO.label", "def DeTJ(YKHO):\n return YKHO.label...
[ "0.73327655", "0.7082955", "0.7082955", "0.70796186", "0.70796186", "0.70796186", "0.70796186", "0.70796186", "0.70796186", "0.70796186", "0.70776784", "0.70776784", "0.70776784", "0.70776784", "0.70776784", "0.70776784", "0.70776784", "0.70776784", "0.70776784", "0.70776784", ...
0.88559365
0
Render point cloud to image with alpha channel.
def NoU8(D6yY, BCar=500, n294=200, NrEI=25, BmQ_=0, Pz7a=0, fcZ4=0, zV3e=[0, 1, 2], NkkI=True): LNo8 = oyIN.zeros((BCar, BCar)) if D6yY is None or D6yY.shape[0] == 0: return LNo8 LTIa = D6yY[:, zV3e] E3D9 = J5lp(fcZ4, Pz7a, BmQ_) LTIa = oyIN.dot(E3D9, LTIa.transpose()).transpose() if Nkk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PcJb(YKHO, wncu, jBPL=bYdR(), qfpW=I18w):\n fVOt = YKHO._bev_rotation * jBPL\n XxYp = fVOt * wncu\n KGRG = XxYp[:, :2]\n KGRG[:, 0] = YKHO._center_pixel[0] + KGRG[:, 0] * YKHO._pixels_per_meter\n KGRG[:, 1] = YKHO._center_pixel[1] + KGRG[:, 1] * YKHO._pixels_per_meter\n C7Ls, XcU5 = YKHO.data...
[ "0.69050485", "0.682152", "0.6808378", "0.67802155", "0.6773293", "0.6714589", "0.6578043", "0.64741135", "0.6298995", "0.62967765", "0.62081075", "0.61989814", "0.6197627", "0.61852854", "0.61751837", "0.61638623", "0.61624163", "0.60753536", "0.60650593", "0.6062704", "0.60...
0.62323594
10
Computes KL divergence loss for given distributions
def Q8Ts(YKHO, WKvO, NKd3, x6A0, x8BK): return x8BK(WKvO, NKd3, x6A0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zxnm(YKHO, **B2fa) -> laHg.Union[ht2j.Tensor, float]:\n return", "def dzAH(B9EC: Tensor, ZnhC: Tensor) -> llWB:\n RBGe = -0.5 * (ZnhC - B9EC ** 2 - ht2j.exp(ZnhC) + 1.0)\n RBGe = ht2j.mean(RBGe, 0)\n return ht2j.sum(RBGe)", "def dzAH(JBMS, XO02):\n return 0.5 * ht2j.sum(XO02.exp() + JBMS.pow...
[ "0.756391", "0.7365479", "0.7329345", "0.7300885", "0.72945124", "0.72780687", "0.72745335", "0.7160097", "0.71183646", "0.70760834", "0.7066095", "0.698521", "0.698521", "0.6961651", "0.6958017", "0.6920495", "0.69149095", "0.69084364", "0.69043386", "0.6895105", "0.68175226...
0.0
-1
Whether the TPM is currently activated.
def WJEw(YKHO): xDcj = 'Select IsActivated_InitialValue from Win32_Tpm' dixj = YKHO.wmi.Query(xDcj) if dixj: G9jH.debug('Win32_Tpm/IsActivated_InitialValue: %s', str(dixj[0].IsActivated_InitialValue)) return dixj[0].IsActivated_InitialValue G9jH.warning('No results for %s.', xDcj) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO):\n return YKHO.activation_key is None", "def K_r6(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'activated')", "def IN9u(YKHO):\n return YKHO.isAvailable() and YKHO.is_enabled", "def K_r6(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'activated')", "def K_r...
[ "0.76492107", "0.7593751", "0.75571007", "0.75471205", "0.75471205", "0.74870276", "0.74857", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", "0.7480895", ...
0.0
-1
Whether the TPM is currently owned.
def dFN4(YKHO): xDcj = 'Select IsOwned_InitialValue from Win32_Tpm' dixj = YKHO.wmi.Query(xDcj) if dixj: G9jH.debug('Win32_Tpm/IsOwned_InitialValue: %s', str(dixj[0].IsOwned_InitialValue)) return dixj[0].IsOwned_InitialValue G9jH.warning('No results for %s.', xDcj) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvG2(YKHO):\n return YKHO.owner is not None", "def D5gV(YKHO) -> bool:\n YKHO.param: GkAb\n WvG2 = False\n W6nB = YKHO.user == YKHO.param.owner()\n yN5F = YKHO.group == YKHO.param.group()\n if YKHO.user and YKHO.group:\n WvG2 = W6nB and yN5F\n elif YKHO.user:\n WvG2 = W6nB\...
[ "0.7648299", "0.68931234", "0.6861505", "0.6851938", "0.6803239", "0.6724743", "0.6669568", "0.6643119", "0.6643119", "0.65975696", "0.6553773", "0.6540807", "0.65268743", "0.64940226", "0.64813465", "0.646903", "0.6439419", "0.6417515", "0.64072263", "0.63607466", "0.6350837...
0.6699517
6
Decode given number from given base to base 10. str_num string representation of number in given base base base of given number
def x8I_(LWsi, P8oC): assert 2 <= P8oC <= 36
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GTKc(YKHO, mLGw, P8oC):\n C9yt, sWcR = ('', '')\n rJrZ = mLGw\n if not mLGw:\n return '0'\n while rJrZ:\n VlDb = rJrZ % P8oC\n rJrZ = rJrZ // P8oC\n C9yt = chr(48 + VlDb + 7 * (VlDb > 10)) + C9yt\n return C9yt", "def GTKc(mLGw, P8oC):\n C9yt = ''\n rJrZ = mLGw...
[ "0.8136295", "0.80095196", "0.80045253", "0.7948352", "0.7948352", "0.7948352", "0.7846506", "0.7819529", "0.7814085", "0.7812808", "0.7763793", "0.7759337", "0.77503735", "0.76999545", "0.7666846", "0.7632998", "0.7549797", "0.749845", "0.7489167", "0.7462445", "0.7450856", ...
0.8385692
0
Convert given number from base1 to base2.
def a8Pe(LWsi, s0Ej, Ntf7): assert 2 <= s0Ej <= 36 assert 2 <= Ntf7 <= 36
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8Pe(BHGE, s0Ej, Ntf7):\n assert 2 <= s0Ej <= 36, 'base1 is out of range: {}'.format(s0Ej)\n assert 2 <= Ntf7 <= 36, 'base2 is out of range: {}'.format(Ntf7)\n return kLcZ(int(x8I_(BHGE, s0Ej)), Ntf7)", "def _gLu(mLGw, P8oC):\n BHGE = '0123456789ABCDEF'\n if mLGw < P8oC:\n return BHGE[m...
[ "0.8010358", "0.79512656", "0.79389524", "0.79049975", "0.78788936", "0.77215415", "0.769982", "0.7470174", "0.74466896", "0.7404726", "0.72672224", "0.7181456", "0.7163205", "0.712061", "0.7083171", "0.7048857", "0.7038038", "0.70111334", "0.6948156", "0.6936527", "0.6923701...
0.8005906
1
Converts a List of Metadata objects to a List of MetadataJson objects.
def v7U7(yIVm: list): if yIVm is None: return None S6sY = [] for ZfUD in yIVm: S6sY.append(yrHP(ZfUD.name, ZfUD.value)) return S6sY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lSym(YKHO, hst7):\n return YKHO.doodle.deserialize_json_objects(hst7)", "def jrv7(YKHO, yv6U, NsxM):\n Aofo = []\n for ZfUD in YKHO.get_values(yv6U, NsxM):\n for H5ew, BWXx in list(ZfUD.items()):\n if isinstance(BWXx, qcWV.datetime) or isinstance(BWXx, qcWV.date):\n ...
[ "0.6515976", "0.64174205", "0.6057196", "0.60077447", "0.59266245", "0.59035546", "0.58117414", "0.575508", "0.57452524", "0.57148653", "0.56694746", "0.5593003", "0.55629885", "0.5529283", "0.55290604", "0.55221283", "0.54774845", "0.5460551", "0.5453206", "0.5451317", "0.54...
0.72170514
0
Contour boxes calculates the rotated minimum area bounding box Notes This method is designed to work with contours. It calculates the minimum rotated bounding rectangle that contains the contour. This is useful for calculating the orientation of shapes. 'box_cx' Centre of mass x coord of calculated box 'box_cy' Centre ...
def PrV2(jQ3Z, joYE=None, SGPK=None, I3YC=None): try: NArs = SGPK['postprocess'] JBMn = oiDO('contour_boxes', I3YC) if 'box_cx' not in jQ3Z.columns: jQ3Z['box_cx'] = oyIN.nan jQ3Z['box_cy'] = oyIN.nan jQ3Z['box_angle'] = oyIN.nan jQ3Z['box_leng...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uzan(jQ3Z):\n assert type(jQ3Z) == rLdf.core.frame.DataFrame, 'track must be a pandas dataframe.'\n assert type(jQ3Z['X']) == rLdf.core.series.Series, 'track must contain X column.'\n assert type(jQ3Z['Y']) == rLdf.core.series.Series, 'track must contain Y column.'\n assert jQ3Z.shape[0] > 0, 'trac...
[ "0.5599254", "0.5564739", "0.5323433", "0.52401334", "0.5221712", "0.52014786", "0.5199812", "0.5179233", "0.5116719", "0.50870395", "0.5050803", "0.5023723", "0.50235915", "0.5020137", "0.49911755", "0.4969964", "0.49615705", "0.4930758", "0.4920754", "0.49150178", "0.490966...
0.66873085
0
Returns a list of string names corresponding to each of the Fields available in this Layer.
def V_D6(YKHO): return [gGw6(muFC(YKHO._ldefn, YRbF)) for YRbF in Ni9Y(YKHO.num_fields)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJN_(YKHO):\n return YKHO.fieldNames()", "def Uj1j(YKHO):\n return [eHNT.name for eHNT in YKHO.fields]", "def sPVJ(YKHO):\n raise NotImplementedError", "def YSvZ(YKHO):\n qPqU = []\n V_D6 = YKHO.element.getChild('fields')\n if V_D6:\n for eHNT in V_D6.getChildren():\n ...
[ "0.8051681", "0.7930015", "0.78476465", "0.78315556", "0.78295106", "0.7806427", "0.77579945", "0.77418727", "0.7690998", "0.7671686", "0.7662769", "0.7579887", "0.7527316", "0.7440462", "0.7419617", "0.7393375", "0.7362605", "0.73586345", "0.7352867", "0.73450804", "0.732006...
0.81269085
0
Splits `string` in chunks of size `size` Returns a generator. Raises `ValueError` if `size == 0`.
def eHxA(vIwR, zNig=1): for YRbF in range(0, len(vIwR), zNig): yield vIwR[YRbF:YRbF + zNig]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(vIwR, ym_X):\n return [vIwR[YRbF:YRbF + ym_X] for YRbF in range(0, len(vIwR), ym_X)]", "def AIXg(vIwR, ztRo):\n vilq = len(vIwR) / ztRo\n if len(vIwR) % ztRo != 0:\n vilq += 1\n hlel = []\n for YRbF in range(0, vilq):\n hlel.append(vIwR[ztRo * YRbF:ztRo * (YRbF + 1)])\n r...
[ "0.72183764", "0.713221", "0.711789", "0.696662", "0.66986513", "0.6682642", "0.66823477", "0.66823477", "0.6659756", "0.66382986", "0.6633803", "0.65897405", "0.6577527", "0.65515345", "0.6527902", "0.65244424", "0.6522617", "0.65152025", "0.6472689", "0.6449109", "0.6429325...
0.8324611
0
Generate Qt resource with embedded qt.conf
def ZUnx(y0cW, AzxP, c4tt, nwHI, I2Vp): Mt6P = '[Paths]\r\nPrefix = %(prefix)s\r\nBinaries = %(binaries)s\r\nImports = %(imports)s\r\nPlugins = %(plugins)s\r\nTranslations = %(translations)s' SL3S = Mt6P % {'prefix': y0cW, 'binaries': AzxP, 'plugins': c4tt, 'imports': nwHI, 'translations': I2Vp} Opg5 = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xffc(YKHO, oEge, SjtD, fAsd):\n try:\n with open(Hy7s.path.join(oEge, SjtD, fAsd, 'bin', 'qt.conf'), 'w') as eHNT:\n eHNT.write('[Paths]\\n')\n eHNT.write('Prefix=..\\n')\n with open(Hy7s.path.join(oEge, SjtD, fAsd, 'mkspecs', 'qconfig.pri'), 'r+') as eHNT:\n N...
[ "0.6118441", "0.6082242", "0.6038001", "0.5896014", "0.5867657", "0.58512735", "0.5719622", "0.569015", "0.5670534", "0.5565727", "0.54994875", "0.5470313", "0.54596734", "0.53992796", "0.5389368", "0.5380468", "0.5379964", "0.53636503", "0.53455675", "0.5341006", "0.53098357...
0.8124275
0
Extension of Conv2D layer with batchnorm
def c4DQ(he5B, Ot1W, YDYE='relu', h4WV=True, mWFP='conv_block', OZIb=False, **B2fa): def gEmA(FRUf): if OZIb: WKvO = yHwh(he5B, Ot1W, use_bias=not h4WV, name=mWFP + '_conv', **B2fa)(FRUf) else: WKvO = yHwh(he5B, Ot1W, use_bias=not h4WV, kernel_regularizer=bdPE.regularizers.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZxUV(g4y1, LT6S, okEi, rrBf):\n return gJFC(g4y1, LT6S, rrBf, [0, 1, 2], okEi)", "def ZxUV(g4y1, LT6S, okEi, rrBf):\n return gJFC(g4y1, LT6S, rrBf, [0, 1, 2], okEi)", "def ZxUV(g4y1, LT6S, okEi, rrBf, wH3T):\n return gJFC(g4y1, LT6S, rrBf, [0, 1, 2], okEi, wH3T)", "def ZxUV(g4y1, LT6S, okEi, rrB...
[ "0.8153385", "0.8089613", "0.800389", "0.77499986", "0.7687444", "0.747268", "0.7286106", "0.727895", "0.7223141", "0.7186283", "0.705536", "0.7013004", "0.6977505", "0.6964725", "0.69474316", "0.69162744", "0.6897343", "0.6890839", "0.688035", "0.68150914", "0.67821896", "...
0.0
-1
Gets the success of this BoolDataResponse.
def nyyK(YKHO) -> bool: return YKHO._success
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DFxG(YKHO):\n return YKHO.__success", "def DFxG(YKHO):\n return YKHO.__success", "def nyyK(YKHO):\n return YKHO._success", "def nyyK(YKHO):\n return YKHO._success", "def nyyK(YKHO):\n return YKHO._success", "def nyyK(YKHO):\n return YKHO._success", "def nyyK(YKHO):\n return YKH...
[ "0.80665", "0.80665", "0.7942238", "0.7942238", "0.7942238", "0.7942238", "0.7942238", "0.7913564", "0.7913564", "0.77416134", "0.77416134", "0.7618357", "0.76110834", "0.7516353", "0.7453599", "0.74510914", "0.7367714", "0.73642117", "0.73642117", "0.7309088", "0.72876126", ...
0.7350434
19
Sets the success of this BoolDataResponse.
def nyyK(YKHO, nyyK: bool): YKHO._success = nyyK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nyyK(YKHO, nyyK):\n YKHO._success = nyyK", "def nyyK(YKHO, nyyK):\n YKHO._success = nyyK", "def nyyK(YKHO, nyyK):\n YKHO._success = nyyK", "def yUr1(YKHO, yUr1):\n YKHO._is_success = yUr1", "def nyyK(YKHO):\n return YKHO._success", "def nyyK(YKHO):\n return YKHO._success", "def ny...
[ "0.7452062", "0.7452062", "0.7452062", "0.72699237", "0.7016633", "0.7016633", "0.7016633", "0.7016633", "0.7016633", "0.695206", "0.695206", "0.695206", "0.695206", "0.68257", "0.677071", "0.677071", "0.6682386", "0.66546535", "0.66546535", "0.6648971", "0.66307485", "0.66...
0.77404577
0
Resets the scheduler. Should be done before genereting a new trace.
def SiRx(YKHO) -> None: YKHO.last_act = None YKHO.alpha_matrix = qw7D([YKHO.m.pi(KCHu) for KCHu in range(YKHO.nb_states)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uHHg(YKHO):\n YKHO.continue_flag = False\n YKHO.timestamp_queue = []\n YKHO.timestamp_map = {}\n YKHO.timestamp_lock = T6FA.RLock()", "def dYIW(YKHO):\n YKHO.stopSchedule()\n try:\n YKHO.setSchedule()\n except:\n pass", "def Y7Bk():\n qXgQ.clear()", "def SiRx(YKHO):\...
[ "0.7830509", "0.7397918", "0.71521974", "0.7135601", "0.69720733", "0.6965565", "0.6868493", "0.68380827", "0.6816265", "0.6767008", "0.6753179", "0.66888815", "0.6680766", "0.6675902", "0.6666255", "0.6636176", "0.6636176", "0.6614144", "0.6600559", "0.6559439", "0.6545", ...
0.0
-1
Tests API can get a specific office by using its id
def t9ac(YKHO): OeRI = YKHO.client().post('/api/v1/offices', data=YKHO.add_office, content_type='application/json') if OeRI: geh0 = YKHO.client().get('/api/v1/offices/1') YKHO.assertEqual(geh0.status_code, 201)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVoE(YKHO):\n aWFP = YKHO.client().post('/api/v1/offices/', json=YKHO.office)\n s4b3 = int(aWFP.json['data'][0]['id'])\n yg5e = YKHO.client().get('/api/v1/offices/{}'.format(s4b3))\n YKHO.assertEqual(aWFP.json['data'][0]['id'], yg5e.json['data'][0]['id'])\n YKHO.assertEqual(yg5e.json['status'], ...
[ "0.89016616", "0.84640527", "0.77720886", "0.7573307", "0.7568262", "0.7563933", "0.7558749", "0.73056036", "0.7288006", "0.7258973", "0.72365546", "0.70153433", "0.696194", "0.6958845", "0.6768275", "0.67366457", "0.66562796", "0.6554122", "0.65392786", "0.65058565", "0.6368...
0.7745174
3
Returns a json encoded error string!
def P1dF(APFA, tTpl=''): if str(APFA) in UAju: return qQXR.dumps({'error': {'code': APFA, 'msg': UAju[str(APFA)]}}) else: return tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKIV(YKHO):\n return qQXR.dumps(YKHO.obj_err(), ensure_ascii=False)", "def D6JL(YKHO):\n raise ValueError(qQXR.dumps({'foo': 'bar'}))", "def AVwn(YKHO, tTpl):\n RKD7.debug('[FoodTrucks] Generating json error')\n XObx = YKHO.create_multidict(['error'], ['text'], [tTpl.code, tTpl.msg])\n retur...
[ "0.87251574", "0.78538656", "0.77710015", "0.7527392", "0.7504072", "0.74902874", "0.7470452", "0.73451", "0.728774", "0.7226558", "0.72091645", "0.71925515", "0.71528757", "0.7053766", "0.7006907", "0.7004993", "0.69966537", "0.69854283", "0.6970309", "0.6961713", "0.691875"...
0.77091473
3
Draws just the squares onto the pygame screen
def tK0z(Vjhr: 'pygame screen') -> None: t9To = 0 ZdHM = 0 for rdlD in BH3N.master_board.get_board(): for MuIv in rdlD: a9eO.draw.rect(Vjhr, aicr.sq_colours[MuIv.cur_colour], (t9To, ZdHM, aicr.sq_size, aicr.sq_size)) mL6U[MuIv] = {'x': t9To, 'y': ZdHM, 'width': t9To + aicr.sq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO, Vjhr):\n a9eO.draw.rect(Vjhr, YKHO.colour, (YKHO.position, YKHO.size))", "def KswY(YKHO, Vjhr):\n yzQ0 = int(YKHO.width)\n MKlR = int(YKHO.height)\n ES7K = 0.5 * yzQ0\n RvTv = 0.5 * MKlR\n WKvO = int(YKHO.pos[0] - ES7K)\n LVAh = int(YKHO.pos[1] - RvTv)\n DG4V = (WKvO, LVAh)...
[ "0.78561264", "0.78002805", "0.7710222", "0.765766", "0.761338", "0.75957566", "0.75869155", "0.75869155", "0.75716645", "0.755928", "0.75481546", "0.7525672", "0.75035566", "0.74969727", "0.7484327", "0.746825", "0.7463612", "0.74512565", "0.7436736", "0.7429602", "0.7426945...
0.0
-1
Remove the current SQLAlchemy Session
def KyVt(AJ5d): S8SU.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yi3Z(YKHO):\n YKHO.__orm.remove_session()", "def jQoW() -> None:\n if FEJ9.in_flask_request():\n Oa1e.session.remove()\n elif cuiw.session:\n cuiw.session.remove()\n cuiw.session = None\n else:\n print('No DB session found to clear!')", "def N0Q8(AJ5d=None):\n ouv...
[ "0.88243514", "0.78637373", "0.7858419", "0.78174967", "0.7740899", "0.7598339", "0.75890255", "0.75890255", "0.75890255", "0.75890255", "0.75890255", "0.75890255", "0.75890255", "0.7550668", "0.7550668", "0.7518484", "0.7459168", "0.7326952", "0.7325793", "0.73095447", "0.73...
0.8114095
1
Collect an iterable of Results into a Result of an iterable. Given some iterable of type Iterable[Result[T, E]], try to collect all Ok values into a tuple of type Tuple[T, ...]. If any of the iterable items are Errs, shortcircuit and return Err of type Result[E].
def RN67(OxJJ: t.Iterable['Result[U, F]']) -> 'Result[t.Tuple[U, ...], F]': _Amg: a1PO.Tuple[KkY2, ...] = () for Aofo in OxJJ: if Aofo.is_err(): return Aofo.map(lambda bGrB: ()) _Amg += (Aofo.unwrap(),) return xbdE(_Amg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZsN(Aofo, dixj):\n if len(dixj) == 0:\n return iter(Aofo)\n return (Aofo,) + dixj", "def GxX2(dixj: List[Any]) -> h8nf['MultipleException']:\n Bx6I = phz1()\n for Aofo in dixj:\n if isinstance(Aofo, phz1):\n Bx6I += Aofo\n return Bx6I or None", "def xuln(OxJJ, T_I4,...
[ "0.64815956", "0.64273316", "0.59120643", "0.57570714", "0.57507914", "0.5735093", "0.5716707", "0.56818914", "0.5550168", "0.5517617", "0.54171133", "0.5406314", "0.5393618", "0.53920144", "0.53463244", "0.5344591", "0.53220963", "0.5301711", "0.52628535", "0.5258005", "0.52...
0.8282538
0
Return Some(val) if predicate(val) is True, else Nothing().
def yGYD(lgNN: t.Callable[[U], bool], BWXx: U) -> 'Option[U]': if lgNN(BWXx): return TND4(BWXx) return povx()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bWL0(lgNN: t.Callable[[U], bool], BWXx: U) -> 'Option[U]':\n if lgNN(BWXx):\n return povx()\n return TND4(BWXx)", "def filter(YKHO, lgNN: t.Callable[[T], bool]) -> KowT[Kt_s]:\n if lgNN(YKHO._value):\n return YKHO\n return povx()", "def Y8gI(YKHO, lgNN, HyJ9):\n return YKHO.fil...
[ "0.8086064", "0.7514742", "0.7104746", "0.672703", "0.663525", "0.65555847", "0.64808637", "0.6467788", "0.64091116", "0.6397348", "0.63355", "0.6334125", "0.63187736", "0.6283712", "0.6283369", "0.62129074", "0.620675", "0.6202177", "0.61875546", "0.6144119", "0.6139028", ...
0.8449903
0
Return repr for result.
def wHJl(YKHO) -> str: return YKHO.__str__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n try:\n Aofo = repr(YKHO.result())\n except (TypeError, ValueError):\n Aofo = '???'\n M2Zm = type(YKHO)\n mPQc = '.'.join(filter(None, (getattr(M2Zm, hkS8, '') for hkS8 in ('__module__', '__name__'))))\n return '<%s {%s: %r} -> %s>' % (mPQc, YKHO.fn_name, YKHO.args, Ao...
[ "0.7989538", "0.75970495", "0.74795794", "0.74539", "0.7419848", "0.7416236", "0.73960036", "0.73673123", "0.73305416", "0.7295505", "0.72125113", "0.72121733", "0.71800673", "0.7157086", "0.71465796", "0.71392626", "0.71392626", "0.71302587", "0.7110129", "0.71006227", "0.70...
0.69305736
39
Return repr for result.
def wHJl(YKHO) -> str: return YKHO.__str__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n try:\n Aofo = repr(YKHO.result())\n except (TypeError, ValueError):\n Aofo = '???'\n M2Zm = type(YKHO)\n mPQc = '.'.join(filter(None, (getattr(M2Zm, hkS8, '') for hkS8 in ('__module__', '__name__'))))\n return '<%s {%s: %r} -> %s>' % (mPQc, YKHO.fn_name, YKHO.args, Ao...
[ "0.7989538", "0.75970495", "0.74795794", "0.74539", "0.7419848", "0.7416236", "0.73960036", "0.73673123", "0.73305416", "0.7295505", "0.72125113", "0.72121733", "0.71800673", "0.7157086", "0.71465796", "0.71392626", "0.71392626", "0.71302587", "0.7110129", "0.71006227", "0.70...
0.69305736
38
Return `Nothing`, or an option determined by the predicate. If `self` is `Some`, call `predicate` with the wrapped value and
def filter(YKHO, lgNN: t.Callable[[T], bool]) -> KowT[Kt_s]: if lgNN(YKHO._value): return YKHO return povx()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yGYD(lgNN: t.Callable[[U], bool], BWXx: U) -> 'Option[U]':\n if lgNN(BWXx):\n return TND4(BWXx)\n return povx()", "def filter(YKHO, lgNN: t.Callable[[T], bool]) -> KowT[Kt_s]:\n return YKHO", "def bWL0(lgNN: t.Callable[[U], bool], BWXx: U) -> 'Option[U]':\n if lgNN(BWXx):\n return...
[ "0.7326516", "0.6927176", "0.68957275", "0.6782981", "0.6565647", "0.64065355", "0.60585135", "0.59393", "0.5939172", "0.5933386", "0.58454597", "0.5803332", "0.57950234", "0.5772469", "0.57427454", "0.5725493", "0.568703", "0.56696975", "0.55995506", "0.55812037", "0.5522953...
0.7779808
0
Return `Some` value, or raise an error.
def XFw0(YKHO) -> Kt_s: return YKHO._value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def raTX(YKHO) -> KowT[Kt_s]:\n return TND4(YKHO._value)", "def Z2hW(wEf2, tO9_='Expected 1 or None result'):\n if len(wEf2) == 1:\n return wEf2[0]\n elif len(wEf2) == 0:\n return None\n else:\n raise ZWHu(tO9_)", "def XObx(YKHO) -> KowT[ut5U]:\n return TND4(YKHO._value)", ...
[ "0.6576828", "0.6319001", "0.6273072", "0.6238016", "0.6129615", "0.6107934", "0.6074671", "0.60684943", "0.60581726", "0.60424733", "0.60424733", "0.6017115", "0.59903526", "0.59876275", "0.5966527", "0.5962681", "0.5962681", "0.5962681", "0.5962681", "0.5962681", "0.5962681...
0.0
-1
Return `Nothing`, or an option determined by the predicate. If `self` is `Some`, call `predicate` with the wrapped value and
def filter(YKHO, lgNN: t.Callable[[T], bool]) -> KowT[Kt_s]: return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, lgNN: t.Callable[[T], bool]) -> KowT[Kt_s]:\n if lgNN(YKHO._value):\n return YKHO\n return povx()", "def yGYD(lgNN: t.Callable[[U], bool], BWXx: U) -> 'Option[U]':\n if lgNN(BWXx):\n return TND4(BWXx)\n return povx()", "def bWL0(lgNN: t.Callable[[U], bool], BWXx: U) -...
[ "0.7780221", "0.73256576", "0.6895306", "0.6782636", "0.65648454", "0.6406059", "0.60588306", "0.593854", "0.5938392", "0.5933226", "0.58438617", "0.58028024", "0.5793733", "0.577155", "0.57424647", "0.57235485", "0.5687215", "0.5669369", "0.56009716", "0.5582269", "0.5524277...
0.69282055
2
Return `Some` value, or raise an error.
def XFw0(YKHO) -> Kt_s: raise RuntimeError('Tried to unwrap Nothing') return YKHO._value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def raTX(YKHO) -> KowT[Kt_s]:\n return TND4(YKHO._value)", "def Z2hW(wEf2, tO9_='Expected 1 or None result'):\n if len(wEf2) == 1:\n return wEf2[0]\n elif len(wEf2) == 0:\n return None\n else:\n raise ZWHu(tO9_)", "def XObx(YKHO) -> KowT[ut5U]:\n return TND4(YKHO._value)", ...
[ "0.6576828", "0.6319001", "0.6273072", "0.6238016", "0.6129615", "0.6107934", "0.6074671", "0.60684943", "0.60581726", "0.60424733", "0.60424733", "0.6017115", "0.59903526", "0.59876275", "0.5966527", "0.5962681", "0.5962681", "0.5962681", "0.5962681", "0.5962681", "0.5962681...
0.0
-1
Returns observation, action and time step TensorSpecs from passed env.
def xYXI(sEAN): EX1V = OFgU.from_spec(sEAN.observation_spec()) xgxv = OFgU.from_spec(sEAN.action_spec()) ph8f = i8WE.time_step_spec(EX1V) return (EX1V, xgxv, ph8f)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wABn(sEAN: gym.Wrapper) -> NmAx:\n\n def PtHv(XeOP: np.ndarray) -> AzJI[oyIN.ndarray, oyIN.ndarray, oyIN.ndarray]:\n \"\"\"\n returns new state, reward, done\n \"\"\"\n QTBn, vOGg, _ins, bGrB = sEAN.step(XeOP)\n return (QTBn.astype(oyIN.float32), vOGg.astype(oyIN.float32),...
[ "0.67854655", "0.62043846", "0.6193808", "0.61124575", "0.61032724", "0.6073889", "0.60347754", "0.5773562", "0.577044", "0.5767085", "0.57164335", "0.57020295", "0.56853366", "0.5681923", "0.5672416", "0.5651549", "0.5638404", "0.5592524", "0.5564936", "0.55403054", "0.55376...
0.81719804
0
Scatter a tensor (or a tensor list) across devices.
def wR4G(vhpA, KVJV=None, zZcM=0, uOe2=None, Z_wI=True, Fa2R=False): if MjIj(uOe2): return if not Z_wI and Fa2R: raise RuntimeError('use_calc_stream can only be true in sync op behavior.') if zZcM != pImw.get_rank(): if KVJV is not None: qmLP.warn('Specific `tensor_or_ten...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wR4G(pKvt: Tensor, uOe2: Optional[Group]=rFGe, begE: Optional[str]='') -> llWB:\n Tuqy = O57X.SCATTER\n return ULFf(pKvt, Tuqy, uOe2, begE)", "def wR4G(YKHO, g4y1, B2fa, vqnT, tpio):\n if len(g4y1) == 1:\n g4y1 = g4y1[0]\n qqgr = int(epAf.ceil(len(g4y1) * 1.0 / len(vqnT)))\n g4y1 = [[g4...
[ "0.69775665", "0.69037104", "0.66951257", "0.6653462", "0.6530615", "0.6424172", "0.64237857", "0.6369794", "0.62748003", "0.620457", "0.62045497", "0.6140489", "0.6128736", "0.59322065", "0.59197044", "0.5895591", "0.5877546", "0.5677344", "0.56642383", "0.5663127", "0.56392...
0.7235055
0
Returns the object the view is displaying. You may want to override this if you need to provide nonstandard queryset lookups. Eg if objects are referenced using multiple keyword arguments in the url conf.
def AMX5(YKHO): SR0I = YKHO.filter_queryset(YKHO.get_queryset()) err5 = YKHO.lookup_url_kwarg or YKHO.lookup_field assert err5 in YKHO.kwargs, 'Expected view %s to be called with a URL keyword argument named "%s". Fix your URL conf, or set the `.lookup_field` attribute on the view correctly.' % (YKHO.__clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMX5(YKHO) -> ImMB:\n err5 = YKHO.lookup_url_kwarg or YKHO.lookup_field\n try:\n return YKHO.get_queryset()[YKHO.kwargs[err5]]\n except IndexError:\n raise uhgT('Not found.')", "def AMX5(YKHO):\n SR0I = YKHO.get_queryset()\n LCet = SR0I.model._meta.module_name\n mLfR = '%s_id'...
[ "0.79796576", "0.7854965", "0.7839038", "0.77842546", "0.77540565", "0.7714372", "0.7696412", "0.7662948", "0.7658343", "0.7647624", "0.76372623", "0.76040906", "0.753187", "0.75142556", "0.7494068", "0.74616677", "0.7404883", "0.73746663", "0.736835", "0.7358292", "0.7357207...
0.80032873
0
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses.
def kblH(*qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_(YKHO):\n print('Subclass and over-ride this method.')", "def FIMM(YKHO):\n super().__init__(None)", "def FIMM(YKHO):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2...
[ "0.7978994", "0.7120676", "0.7114939", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", ...
0.0
-1
Returns the age of the grid queue.
def ZJe_(YKHO): return (YKHO.time - YKHO.middle) / 52
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(YKHO):\n return ITS7.time() - YKHO.started", "def ZJe_(YKHO):\n from monotonic import monotonic\n return monotonic() - YKHO.__t_opened", "def N_N1(YKHO):\n return ITS7.time() - YKHO.__last_usage_time", "def ZJe_(YKHO):\n return YKHO.__age", "def N_N1(YKHO):\n return YKHO.__age", ...
[ "0.67753595", "0.666728", "0.65250844", "0.64625585", "0.64617985", "0.6428405", "0.64171666", "0.64112735", "0.63994664", "0.6395989", "0.63705045", "0.6334187", "0.6332681", "0.6319252", "0.6279636", "0.62639314", "0.6251521", "0.6234161", "0.62258583", "0.62238127", "0.622...
0.6557411
2
Returns the age of the agent.
def liRe(YKHO, YWSi): return (YKHO.time - YWSi.born) / 52
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(YKHO):\n print('In age method')\n return YKHO.__age", "def ZJe_(YKHO):\n return YKHO._age", "def ZJe_(YKHO):\n return YKHO.__age", "def N_N1(YKHO):\n return YKHO.age", "def N_N1(YKHO):\n return YKHO.age", "def lUqL(YKHO):\n return YKHO.__age", "def ZJe_(YKHO):\n return ...
[ "0.823919", "0.81812346", "0.8134584", "0.8129948", "0.8103306", "0.80776596", "0.80730695", "0.8068795", "0.806256", "0.80598575", "0.80267376", "0.80138814", "0.7991505", "0.7974557", "0.7949053", "0.7898947", "0.7895827", "0.7881923", "0.7857726", "0.7855409", "0.7855409",...
0.8531527
0
Returns a JSON response, transforming 'context' to make the payload.
def EK31(YKHO, QpfX, **TIVb): return igJ6(YKHO.convert_context_to_json(QpfX), content_type='application/json', **TIVb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4iE(YKHO, QpfX, **TIVb):\n TIVb['content_type'] = 'application/json'\n return YKHO.json_response_class(qQXR.dumps(QpfX), **TIVb)", "def EK31(YKHO, QpfX, **TIVb):\n return igJ6(qQXR.dumps(QpfX), content_type='application/json', **TIVb)", "def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(Qp...
[ "0.7995763", "0.77249134", "0.770435", "0.770435", "0.76446885", "0.7582211", "0.7538711", "0.7429256", "0.7421507", "0.7421507", "0.7421507", "0.74140453", "0.74089426", "0.74089426", "0.74089426", "0.7145266", "0.7081657", "0.70215803", "0.6992469", "0.69255745", "0.6631610...
0.76753193
4
When lr decay is off the lr should not change
def wO2h(YKHO): KULu = 100 tspZ = 0.1 C3ST = ln42([], lr=tspZ, decay_lr=False, total_episodes=KULu) for YRbF in range(int(KULu)): C3ST.update([]) YKHO.assertEqual(C3ST.lr, tspZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fd7I(YKHO) -> None:\n if not YKHO.decay_type:\n return\n if YKHO.decay_type == 'exponential':\n YKHO.lr *= YKHO.decay_per_epoch\n elif YKHO.decay_type == 'linear':\n YKHO.lr -= YKHO.decay_per_epoch", "def PjIb(YKHO):\n if YKHO.decay:\n YKHO.lr = YKHO.decay * YKHO.lr", ...
[ "0.7641067", "0.74710846", "0.73097575", "0.7113648", "0.7002679", "0.6984764", "0.69092005", "0.69019735", "0.68883693", "0.68769735", "0.6833669", "0.68274754", "0.68110627", "0.68049115", "0.6793065", "0.6768467", "0.6744572", "0.6726734", "0.6721836", "0.67208433", "0.672...
0.7035574
4
Get the patches which do not have the correct dimensions
def gIoK(jeRD, zNig=300): jbKe = dict() print('Bad patches...') jbKe = set() for MuKo in jeRD: for sQo5 in jeRD[MuKo][1]: for YRbF in range(jeRD[MuKo][0]): pmON = Hy7s.path.join(VgVR.PATH_TO_PATCHES, zNig, MuKo, sQo5, f'{YRbF}.jpg') with hnIv.open(pmON...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def etRJ(VXjJ, TlDD, Uqbu, h_4H, SkJr, qWHh):\n r9Hf = 0\n Uz4j = CPun(VXjJ, h_4H, SkJr)\n Corv = MVjK.GetArrayFromImage(TlDD)\n xlij = MVjK.GetArrayFromImage(Uqbu)\n zNig = Uz4j.shape\n U64r = AKVf = fFp1 = None\n Bqhw = []\n for YRbF in range(1, zNig[0] - 1):\n ZHfW = xlij[YRbF]\n ...
[ "0.6977277", "0.6764001", "0.67394245", "0.67190003", "0.67189884", "0.6706639", "0.6672678", "0.66124487", "0.6605214", "0.6598271", "0.6457469", "0.63969135", "0.63745314", "0.6361141", "0.6335897", "0.6320265", "0.629163", "0.624866", "0.62344104", "0.6229923", "0.6229138"...
0.683363
1
Returns a deep copy of this EngineeringState as a protobuf.
def zoLw(YKHO) -> oFZE.EngineeringState: DyJs = oFZE.EngineeringState() DyJs.CopyFrom(YKHO._proto_state) for a5dp, UksD in zip(YKHO.components, DyJs.components): UksD.connected, UksD.temperature, UksD.resistance, UksD.voltage, UksD.current, UksD.coolant_hab_one, UksD.coolant_hab_two, UksD.coolant_ay...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zoLw(YKHO) -> oFZE.PhysicalState:\n DyJs = oFZE.PhysicalState()\n DyJs.CopyFrom(YKHO._proto_state)\n for e44p, LEXu in zip(YKHO, DyJs.entities):\n LEXu.x, LEXu.y, LEXu.vx, LEXu.vy, LEXu.heading, LEXu.spin, LEXu.fuel, LEXu.throttle, LEXu.landed_on, LEXu.broken = (e44p.x, e44p.y, e44p.vx, e44p.vy...
[ "0.7009538", "0.6855184", "0.6658642", "0.6611235", "0.6394327", "0.63302964", "0.63302964", "0.6323632", "0.6290103", "0.6273375", "0.6266534", "0.6254544", "0.624477", "0.624477", "0.62349313", "0.62334645", "0.62227666", "0.6218047", "0.6157633", "0.61308545", "0.61308545"...
0.7306848
0
Returns lander's current altitude.
def HWgM(YKHO): return YKHO._altitude
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oVlJ(YKHO):\n return YKHO._altitude", "def n_Ej(YKHO):\n return YKHO.__altitude", "def n_Ej(YKHO):\n n_Ej = 44330.0 * (1.0 - pow(YKHO.pressure / YKHO.sea_level_pressure, 0.1903))\n return round(n_Ej, 1)", "def n_Ej(YKHO):\n return YKHO._altitude", "def n_Ej(YKHO):\n return YKHO._gps.a...
[ "0.8560934", "0.8556621", "0.85463566", "0.8517399", "0.8485081", "0.84794545", "0.84016937", "0.8327972", "0.8301666", "0.8252235", "0.82123756", "0.8156194", "0.80858123", "0.808576", "0.80265445", "0.7988124", "0.7958874", "0.7949392", "0.77641904", "0.7720933", "0.7681371...
0.84055144
6
Returns True if the lander is crashed. In this game it means the lander has hit the screen's lower bound.
def hRKA(YKHO): return YKHO._crashed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lezm(YKHO):\n mj84, EZVy = YKHO.car.get_position()\n return YKHO.track.isWall(mj84, EZVy)", "def fSnu(YKHO):\n if YKHO.y <= 0 or YKHO.y >= 480:\n return True\n return False", "def YgOb(YKHO):\n p1kx = YKHO.get_current_score()\n DmEQ = max(p1kx)\n OMha = min(p1kx)\n return (Dm...
[ "0.7324371", "0.66605544", "0.6365849", "0.63343966", "0.6328182", "0.63166595", "0.63149333", "0.63110834", "0.63027436", "0.6289841", "0.62823725", "0.6258541", "0.62228394", "0.62219024", "0.62068975", "0.62002474", "0.61989915", "0.61967015", "0.6195532", "0.6187752", "0....
0.61303157
29
Returns True if the lander has no ticks of immunity to collisions.
def aiHG(YKHO): return not YKHO._no_collision_duration
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lezm(YKHO):\n mj84, EZVy = YKHO.car.get_position()\n return YKHO.track.isWall(mj84, EZVy)", "def wX9A(YKHO) -> bool:\n return not YKHO._info.playersVehicleScoring().mInPits", "def UF9e(YKHO):\n return False", "def Bpvr(YKHO):\n if YKHO.x + YKHO.sprite.shape[0] < 0:\n return False\n ...
[ "0.67856437", "0.67193615", "0.6614305", "0.65421927", "0.6523963", "0.6480355", "0.647365", "0.6461097", "0.64348227", "0.64190745", "0.6403142", "0.63806987", "0.6375767", "0.635741", "0.63528615", "0.63490427", "0.63452387", "0.634514", "0.6334494", "0.6313111", "0.6310770...
0.6944674
0
Used by FlaskLogin to get a user by its id.
def lyxB(uJjO): try: U5bT = mv1M.query.get(uJjO) U5bT.authenticated = True except Exception as ex: print(type(aTqo)) print(aTqo) U5bT = None return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(P4t4, id):\n Dvct = P4t4.model.session\n return Dvct.query(P4t4.model.User).get(P4t4.security.decode_id(id))", "def g971(id):\n return mv1M.query.get(int(id))", "def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)", "def NMoC(YKHO, id):\n CBIr = mv1M.query.filter_by(id=id).fi...
[ "0.8632856", "0.8246753", "0.8244417", "0.8193756", "0.81581044", "0.81217736", "0.8116635", "0.811068", "0.811068", "0.81027097", "0.8089019", "0.80096656", "0.7987903", "0.7977265", "0.7966732", "0.7945695", "0.7939699", "0.792656", "0.7925942", "0.79247934", "0.7897677", ...
0.0
-1
Compute data covariance with the generative model. ``cov = components_.T S2 components_ + sigma2 eye(n_features)`` where S2 contains the explained variances. Returns
def naBM(YKHO): Elf2 = YKHO.components_ FydL = YKHO.explained_variance_ if YKHO.whiten: Elf2 = Elf2 * oyIN.sqrt(FydL[:, oyIN.newaxis]) cty8 = oyIN.maximum(FydL - YKHO.noise_variance_, 0.0) PFC2 = oyIN.dot(Elf2.T * cty8, Elf2) PFC2.flat[::len(PFC2) + 1] += YKHO.noise_variance_ return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def naBM(YKHO):\n Elf2 = YKHO.components_\n FydL = YKHO.explained_variance_\n if YKHO.whiten:\n Elf2 = Elf2 * oyIN.sqrt(FydL[:, oyIN.newaxis])\n cty8 = oyIN.maximum(FydL - YKHO.noise_variance_, 0.0)\n PFC2 = oyIN.dot(Elf2.T * cty8, Elf2)\n PFC2.flat[::len(PFC2) + 1] += YKHO.noise_variance_...
[ "0.72369146", "0.7091068", "0.70819795", "0.70161134", "0.7006993", "0.6998814", "0.6911999", "0.6890184", "0.6890184", "0.68088907", "0.67551607", "0.6693262", "0.6658139", "0.6597934", "0.65851563", "0.65794235", "0.6565595", "0.6547888", "0.65378857", "0.65303624", "0.6520...
0.72349465
1
Compute data precision matrix with the generative model. Equals the inverse of the covariance but computed with the matrix inversion lemma for efficiency. Returns
def VvxU(YKHO): ROaS = YKHO.components_.shape[1] if YKHO.n_components_ == 0: return oyIN.eye(ROaS) / YKHO.noise_variance_ if YKHO.n_components_ == ROaS: return aJJu.inv(YKHO.get_covariance()) Elf2 = YKHO.components_ FydL = YKHO.explained_variance_ cty8 = oyIN.maximum(FydL - YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pSVG(YKHO):\n YKHO._mat = YKHO.E.isogeny_class(order=YKHO.curves)._mat", "def VvxU(YKHO):\n ROaS = YKHO.components_.shape[1]\n if YKHO.n_components_ == 0:\n return oyIN.eye(ROaS) / YKHO.noise_variance_\n if YKHO.n_components_ == ROaS:\n return aJJu.inv(YKHO.get_covariance())\n El...
[ "0.6014022", "0.5896896", "0.5889529", "0.5888874", "0.5877622", "0.5833249", "0.58042467", "0.5710756", "0.56875616", "0.56729895", "0.56608534", "0.56412244", "0.56244373", "0.5621611", "0.5601609", "0.55935174", "0.5581689", "0.5578536", "0.55696964", "0.555709", "0.555631...
0.58959895
2
Return the view's queryset.
def NMoC(YKHO, QePW, _sei, format=None): geh0 = {'results': {}} XbmR = int(_sei) lwiR = cJQ3.objects.filter(id=XbmR).first() if lwiR is None: return oGir(geh0) a5b4 = lwiR.toptier_agency SR0I = g4vw.objects.all() SR0I = SR0I.filter(toptier_code=a5b4.toptier_code) SR0I = SR0I.orde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wc3e(YKHO):\n return YKHO.get_queryset()", "def wc3e(YKHO):\n return YKHO.get_queryset()", "def k66M(YKHO):\n return YKHO.queryset.all()", "def k66M(YKHO):\n return YKHO.queryset.all()", "def k66M(YKHO):\n return YKHO.model.objects", "def k66M(YKHO):\n if YKHO.queryset is None:\n ...
[ "0.8539334", "0.851523", "0.8198117", "0.8198117", "0.8166068", "0.81460816", "0.81313366", "0.8128957", "0.81271714", "0.8087325", "0.8071666", "0.80189365", "0.78972936", "0.78725183", "0.77714723", "0.77634853", "0.773514", "0.7727812", "0.7694866", "0.766834", "0.76615596...
0.0
-1
Get the rank under header.
def _4Tn(l5Ny, WBPg): tS0M = l5Ny.find(WBPg) EmMj = l5Ny.find('Yomi AI', tS0M) if EmMj == -1: raise Exception('MAJOR PARSING ERROR. Yomi AI text not found.') Os4s = l5Ny.find('Yomi AI', EmMj) yKcO = Os4s - 4 fdMZ = str(l5Ny[yKcO:Os4s].strip()) return fdMZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BtLS(YKHO) -> int:\n return YKHO.header[5]", "def BtLS(YKHO) -> int:\n return YKHO.header[4]", "def BtLS(YKHO) -> int:\n return YKHO.header[4]", "def rYOG(YKHO):\n return YKHO.rank", "def qZav(YKHO) -> int:\n return YKHO.header[7]", "def dLO0(YKHO):\n return YKHO.rank", "def fdMZ(...
[ "0.7761189", "0.7753784", "0.7753784", "0.7531927", "0.7497204", "0.72472656", "0.7192708", "0.7183048", "0.7182574", "0.7182288", "0.7156304", "0.71359944", "0.7112096", "0.7112096", "0.7112096", "0.709514", "0.7072474", "0.70514876", "0.70400286", "0.69903564", "0.6959482",...
0.73065114
5
Remove empty values label values from labels list.
def BiPa(Crrw): T6S7 = oyIN.unique(Crrw) bjI6 = -oyIN.ones(Crrw.max() + 1).astype(int) bjI6[T6S7] = oyIN.arange(len(T6S7)) return bjI6[Crrw]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZZm(YKHO):\n YKHO.labels = oyIN.asarray(YKHO._labels, dtype='int')\n if YKHO.drop_labels is None:\n return\n YKHO.labels = ZfHA(YKHO.labels, drop_fraction=YKHO.drop_labels, fill=-1, stratified=YKHO.stratified)", "def lU8j(YKHO, Crrw):\n for yHil in YKHO.labels.keys():\n ZHfW = YKHO...
[ "0.7233578", "0.71166754", "0.6961121", "0.6836842", "0.6747583", "0.66128385", "0.6541462", "0.652899", "0.6490922", "0.64385927", "0.6403285", "0.6388199", "0.63722533", "0.6369835", "0.62820494", "0.6184332", "0.6182146", "0.61803275", "0.61649173", "0.61453205", "0.611853...
0.82090336
0
>>> from pprint import pprint >>> trie = {} >>> insert(trie, 'test', 'data') >>> trie
def JPHp(ZOCz, H5ew, BWXx): if H5ew: cntZ, wOmD = (H5ew[0], H5ew[1:]) if cntZ not in ZOCz: ZOCz[cntZ] = {} JPHp(ZOCz[cntZ], wOmD, BWXx) else: if not 'value' in ZOCz: ZOCz['value'] = [] ZOCz['value'].append(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzNY():\n from trie import Trie\n trie = Trie()\n eOtH = 'pig'\n trie.insert(eOtH)\n assert trie.container == {'p': {'i': {'g': {'$': '$'}}}}", "def JPHp(YKHO, GIN8: str) -> None:\n ZOCz = YKHO.root\n for YRbF in GIN8:\n if YRbF not in ZOCz:\n ZOCz[YRbF] = {}\n Z...
[ "0.7803805", "0.761745", "0.7468246", "0.73585176", "0.7310772", "0.7252653", "0.72294855", "0.7209884", "0.7193831", "0.71864796", "0.7184643", "0.71825284", "0.71687126", "0.7132379", "0.7108447", "0.7089872", "0.7070629", "0.7065375", "0.70545", "0.70521784", "0.70509714",...
0.7594469
2
The set of arguments for constructing a ZoneHold resource.
def FIMM(Ro_8, *, wzDi: pulumi.Input[bool], DVVB: pulumi.Input[str], dJE2: Optional[pulumi.Input[str]]=None, mNQ3: Optional[pulumi.Input[bool]]=None): qe4Y.set(Ro_8, 'hold', wzDi) qe4Y.set(Ro_8, 'zone_id', DVVB) if dJE2 is not None: qe4Y.set(Ro_8, 'hold_after', dJE2) if mNQ3 is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: ZoneHoldArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, wzDi: Optional[pulumi.Input[bool]]=None, dJE2: Optional[pulumi.Input[str]]=None, mNQ3: Optional[pulumi.Input[bool]]=None, DVVB: Optional[p...
[ "0.8002666", "0.6451014", "0.6049468", "0.5799847", "0.57292205", "0.5576954", "0.5448538", "0.54386216", "0.54386216", "0.5432859", "0.5356258", "0.53387105", "0.53255033", "0.5303218", "0.5299975", "0.52941597", "0.5291646", "0.5291646", "0.52774715", "0.52769697", "0.52744...
0.62071145
2
The zone identifier to target for the resource.
def DVVB(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'zone_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return YKHO._zone_id", "def DVVB(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'zone_i...
[ "0.84374326", "0.84374326", "0.84374326", "0.83599806", "0.8132923", "0.8132923", "0.80893797", "0.8064217", "0.8064217", "0.8064217", "0.8064217", "0.8064217", "0.8064217", "0.8064217", "0.79358566", "0.782097", "0.782097", "0.782097", "0.782097", "0.782097", "0.782097", "...
0.7979999
14
The zone identifier to target for the resource.
def DVVB(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'zone_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return YKHO._zone_id", "def DVVB(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'zone_i...
[ "0.84374326", "0.84374326", "0.84374326", "0.83599806", "0.8132923", "0.8132923", "0.80893797", "0.8064217", "0.8064217", "0.8064217", "0.8064217", "0.8064217", "0.8064217", "0.8064217", "0.7979999", "0.7979999", "0.7979999", "0.7979999", "0.7979999", "0.7979999", "0.7979999"...
0.782097
23
Get an existing ZoneHold resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, wzDi: Optional[pulumi.Input[bool]]=None, dJE2: Optional[pulumi.Input[str]]=None, mNQ3: Optional[pulumi.Input[bool]]=None, DVVB: Optional[pulumi.Input[str]]=None) -> 'ZoneHold': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.Resour...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: ZoneHoldArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def jO92(id):\n Aofo = S8SU.all('State')\n try:\n wspz = Aofo['State.{}'.format(id)]\n QpfX = {'route': 'state_by_id', 'states': wspz}\n return TvZl('9-states.html', **QpfX)\n exc...
[ "0.58076274", "0.5574874", "0.5519265", "0.5462449", "0.54598165", "0.5381734", "0.5332219", "0.5299058", "0.5270948", "0.52204627", "0.5183848", "0.517148", "0.51665235", "0.51519907", "0.5137526", "0.5119562", "0.50885224", "0.5057789", "0.50545716", "0.5047401", "0.5042922...
0.7485039
0
The zone identifier to target for the resource.
def DVVB(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'zone_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return YKHO._zone_id", "def DVVB(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'zone_i...
[ "0.84374326", "0.84374326", "0.84374326", "0.83599806", "0.8132923", "0.8132923", "0.80893797", "0.7979999", "0.7979999", "0.7979999", "0.7979999", "0.7979999", "0.7979999", "0.7979999", "0.79358566", "0.782097", "0.782097", "0.782097", "0.782097", "0.782097", "0.782097", "...
0.8064217
7
Compute the standard deviation along the specified axis. Returns the standard deviation, a measure of the spread of a distribution, of the array elements.
def il7X(vC9B): SRYB = EEoR(vC9B) ee6l = epAf.sqrt(SRYB) return ee6l
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee6l(mJLf):\n import numpy as oyIN\n return oyIN.std(mJLf)", "def NVEz(fUYa):\n r8hN = JBMS(fUYa)\n return PZyS(sum(((WKvO - r8hN) ** 2 for WKvO in fUYa)) / float(len(fUYa)))", "def M1Jx(YKHO, jzdc, jDK_=0):\n try:\n TK2h = oyIN.std(jzdc, jDK_)\n return TK2h\n except Excepti...
[ "0.76303285", "0.7532531", "0.74048454", "0.7340919", "0.73219174", "0.7281717", "0.7248678", "0.71755916", "0.7151857", "0.71254003", "0.71138746", "0.7081611", "0.70582485", "0.7053487", "0.7046174", "0.703664", "0.7024768", "0.6984928", "0.6980335", "0.69759977", "0.697452...
0.0
-1
Calculates harmonic mean from list of integers
def TNoy(vC9B): rGfx = sum([1.0 / Ty9i for Ty9i in vC9B]) TNoy = float(len(vC9B)) / rGfx return TNoy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dVEP(hkxX: list):\n JBMS = 0\n for Ty9i in hkxX:\n if Ty9i == 0:\n JBMS = 0\n break\n else:\n JBMS += 1 / Ty9i\n if JBMS > 0:\n JBMS = len(hkxX) / JBMS\n return JBMS", "def IAHC(vC9B):\n UHFx = float(len(vC9B))\n if UHFx == 0.0:\n ...
[ "0.8190771", "0.7775481", "0.7459964", "0.7358571", "0.73086995", "0.72525054", "0.72415787", "0.7240199", "0.7222727", "0.72045773", "0.717196", "0.716562", "0.7152092", "0.7144382", "0.71240056", "0.71012527", "0.71009165", "0.7085758", "0.70843583", "0.707875", "0.7038161"...
0.85861886
0
Calculate the time delta between two timestamps in seconds.
def PtEJ(n2Q1, SpII): n2Q1 = qcWV.datetime.strptime(n2Q1, '%a %d %b %Y %H:%M:%S %z') SpII = qcWV.datetime.strptime(SpII, '%a %d %b %Y %H:%M:%S %z') return n2Q1 - SpII
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMTB(CVHG, PzA3):\n return PzA3 - CVHG", "def hMTB(CVHG, PzA3):\n return PzA3 - CVHG", "def TAxb(YKHO, n2Q1, SpII):\n yk4i = abs(YKHO.time(SpII) - YKHO.time(n2Q1))\n return yk4i.seconds", "def PtEJ(n2Q1, SpII):\n FMLJ = '%a %d %b %Y %H:%M:%S %z'\n a1PO = (JRYC.strptime(n2Q1, FMLJ) - JRY...
[ "0.7722593", "0.7658207", "0.76095164", "0.7431366", "0.7396886", "0.7336308", "0.73070943", "0.727257", "0.7240605", "0.7114624", "0.7105148", "0.7096125", "0.70916176", "0.70668143", "0.7056608", "0.7056168", "0.7037474", "0.7000972", "0.69865936", "0.6940882", "0.6936279",...
0.7446097
3
r""" Computes the least common multiple of the integer arguments. Note This function is included for Python versions before 3.9. For Python 3.9 and later, this function
def BsJX(*LOJD): if HwRy.version_info.major == 3 and HwRy.version_info.minor >= 9: return epAf.lcm(*LOJD) else: pkEt = 1 for kAne in LOJD: pkEt = pkEt * kAne // epAf.gcd(pkEt, kAne) return pkEt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vwzu(jzdc, Fg_i):\n for YRbF in range(1, jzdc * Fg_i):\n if zevq(YRbF, jzdc) and zevq(YRbF, Fg_i):\n return YRbF\n return jzdc * Fg_i", "def vwzu(jzdc, Fg_i):\n\n def LMj4(WKvO, LVAh):\n fTRp = 0\n for YRbF in range(1, min(WKvO, LVAh) + 1):\n if WKvO % YRbF...
[ "0.75070786", "0.7404567", "0.7155375", "0.6977255", "0.6977255", "0.69107115", "0.6875068", "0.6859483", "0.6829836", "0.68172973", "0.6769577", "0.6750649", "0.67189944", "0.67125916", "0.668581", "0.6675879", "0.6651635", "0.6651635", "0.6641262", "0.66190356", "0.66060674...
0.6682751
15
Checks whether a string is a float.
def QpCZ(jzdc): try: float(jzdc) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e5f3(vIwR):\n return A69P(vIwR)", "def QpCZ(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False", "def QpCZ(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False", "def e5f3(YKHO, vIwR):\n try:\n...
[ "0.9079946", "0.90593857", "0.90593857", "0.9057764", "0.9037732", "0.90150464", "0.8975587", "0.89451027", "0.8918431", "0.89060265", "0.89008313", "0.8879033", "0.8858714", "0.8828255", "0.8828255", "0.8828255", "0.8828255", "0.8819782", "0.8800392", "0.8791653", "0.8736518...
0.7993152
33
Matlab arrays are rankless (rank is specified by indexing), so all arrays w/ trailing 1s in their shape are equivalent. This returns the
def cAiU(jzdc): KCHu = list(jzdc.shape) if len(KCHu) < 2: KCHu.append(1) while KCHu[2:] and KCHu[-1] == 1: KCHu.pop() return jzdc.reshape(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFX7(ezWE, yxfW):\n return 0.0", "def e1hg(wc14, oQ6S=False, jcN9=False, DHOZ=False, *, Pexq=True):\n wc14 = oyIN.asanyarray(wc14).flatten()\n tp_y = oQ6S or jcN9\n if tp_y:\n IuXB = wc14.argsort(kind='mergesort' if oQ6S else 'quicksort')\n p06G = wc14[IuXB]\n else:\n wc14...
[ "0.6107171", "0.5926469", "0.5808952", "0.5751655", "0.5702229", "0.5700215", "0.5699012", "0.56387687", "0.56166553", "0.56071293", "0.56071293", "0.55845755", "0.5572014", "0.5563532", "0.5552138", "0.55159676", "0.5504249", "0.54755634", "0.5437876", "0.54276216", "0.53793...
0.5047812
81
r""" Returns option as a list of string, split specifically by a newline.
def INGN(YKHO, XLMv, MTKo): Ylbp = YKHO._config.get(XLMv, MTKo).split('\n') if len(Ylbp) == 0 or Ylbp[0] == '' or Ylbp[0] == 'None': return None else: return list(Ylbp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCoB(MTKo):\n return [KCHu.strip() for KCHu in MTKo.split(';;')]", "def d_VV(YKHO, XLMv, MTKo, SAEY=','):\n jLrs = YKHO.get_opt(XLMv, MTKo)\n return [WKvO.strip() for WKvO in jLrs.split(SAEY)]", "def nBVR(MTKo, VWe_=',', gLiZ=None):\n return [yOAJ.strip(gLiZ) for yOAJ in MTKo.split(VWe_)]", "...
[ "0.732715", "0.7053902", "0.7044359", "0.6978735", "0.6667186", "0.6495894", "0.6349991", "0.6338892", "0.6320311", "0.6301574", "0.61490345", "0.6031097", "0.5913654", "0.5908707", "0.5870859", "0.5796453", "0.564648", "0.5639036", "0.5624052", "0.56218743", "0.5605191", "...
0.72158116
1
basically list all the nodes that are required by this layer, checking that their key is in graph_nodes
def X3xt(YKHO, **O9mr): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aAQH(YKHO):\n return list(YKHO._graph_dict.keys())", "def ZWAV(YKHO, H5ew, **O9mr):\n if not isinstance(H5ew, list):\n H5ew = [H5ew]\n for G1Hx in H5ew:\n assert G1Hx in O9mr, '{} is required by {}'.format(G1Hx, YKHO.__class__.__name__)", "def AyQV(YKHO):\n return list(YKHO.graph....
[ "0.69295025", "0.68834627", "0.645733", "0.63922304", "0.633613", "0.6307272", "0.6307272", "0.62230194", "0.6213142", "0.6211665", "0.60757595", "0.6026697", "0.6023325", "0.6000417", "0.59709007", "0.5958893", "0.5941667", "0.5929716", "0.5877544", "0.5831341", "0.58187395"...
0.0
-1
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = pmON.abspath('.') return pmON.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)", "def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)", "def JFat(t_yv):\n try:\n ...
[ "0.86645055", "0.8190357", "0.8175001", "0.8163073", "0.80863976", "0.80863976", "0.80863976", "0.80863976", "0.8086095", "0.80784917", "0.8077746", "0.8073863", "0.8065137", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0....
0.8054348
23
convert the resolution in string to int
def OLDG(vOyM): Ylbp = vOyM.split('x') yzQ0 = int(Ylbp[0]) MKlR = int(Ylbp[1]) return (yzQ0, MKlR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PCvm(KCHu):\n if isinstance(KCHu, jUrF) and KCHu[-1].lower() in jx32.keys():\n return int(int(KCHu[:-1]) * jx32[KCHu[-1].lower()])\n return int(KCHu)", "def yO9C(YKHO, KCHu):\n YRbF = int(KCHu, 16)\n if YRbF >= 2 ** 7:\n YRbF -= 2 ** 8\n return YRbF", "def UnH3(KCHu):\n asse...
[ "0.70568043", "0.6978069", "0.67961925", "0.67653185", "0.67600864", "0.6730798", "0.6660213", "0.66600156", "0.6653078", "0.6647199", "0.6642979", "0.6640378", "0.66113526", "0.66095966", "0.6596454", "0.6571237", "0.653168", "0.65217954", "0.6520114", "0.6512945", "0.650611...
0.6432501
24
Computes the loss and accuracy of the model net with the given criterion for the dataset (x, y) Arguments
def CO6F(Zxma, OPAs, WKvO, LVAh): s_xK = [] d3OB = [] for YRbF in range(WKvO.shape[0]): _hkX = Zxma.forward(WKvO[YRbF].unsqueeze(0)) N77f = OPAs(_hkX, LVAh[YRbF:YRbF + 1]) s_xK.append(N77f.data.cpu()[0]) phR7 = ht2j.squeeze(_hkX.data.cpu()).numpy() nyyK = oyIN.argmax(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def piuz(C3ST, Zwka, OPAs, begE):\n C3ST.to(begE)\n YSue = 0\n for G1Hx, (WKvO, LVAh) in enumerate(Zwka):\n WKvO, LVAh = (WKvO.to(begE), LVAh.to(begE))\n yvT9 = C3ST(WKvO)\n N77f = OPAs(yvT9, LVAh)\n YSue += N77f.item()\n return YSue", "def GT2U(YKHO, nuuJ, LVAh):\n TmH...
[ "0.70097256", "0.691615", "0.682157", "0.6654079", "0.65649426", "0.6477811", "0.6476788", "0.6415638", "0.6402008", "0.6395567", "0.6395229", "0.6389415", "0.638913", "0.6354701", "0.6352153", "0.6349144", "0.63468564", "0.63429743", "0.6333391", "0.63172317", "0.63148946", ...
0.77601826
0
Generate a random string of fixed length
def TJC9(FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))", "def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]", "def BWvy(a__r):\n return Hy7s.urandom(a__r)", "def MiNk(u54L):\n gLiZ = vIwR.ascii...
[ "0.87464833", "0.87138826", "0.86631215", "0.85901964", "0.8585785", "0.85634875", "0.8558919", "0.85520464", "0.8539197", "0.8533114", "0.8509279", "0.8507483", "0.847074", "0.8467042", "0.8467042", "0.8450749", "0.845005", "0.84287107", "0.84247124", "0.8423367", "0.8418880...
0.0
-1
3x3 convolution with padding.
def Myly(UUZO, sYyA, _0fC=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())", "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1, lc1X=False, Q79Q=['replicate', 'circular']):\n if not lc1X:\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False,...
[ "0.80117625", "0.763754", "0.7601276", "0.7550737", "0.7545917", "0.7524121", "0.7453882", "0.74505305", "0.74091595", "0.7382823", "0.7382823", "0.73821586", "0.7373773", "0.7362818", "0.73350525", "0.73350525", "0.73173827", "0.7301496", "0.72824085", "0.7280231", "0.727607...
0.7272358
43
1x1 convolution with padding.
def s7tR(UUZO, sYyA): return U78l.Conv2d(UUZO, sYyA, kernel_size=1, stride=1, padding=0, bias=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TyOk(input, KUnM, FEri=1, dvgN='VALID', wH3T='NHWC', mJgj=None, mWFP=None):\n return o6Bz(**locals())", "def gAFe(Yw_3, WZcn, dvgN):\n r8hN = Yw_3.shape[0]\n Jarx = Yw_3.shape[1]\n do44 = Yw_3.shape[2]\n ri6P = WZcn.shape[0]\n hHqT = WZcn.shape[1]\n ZXTG = dvgN[0]\n fTTG = dvgN[1]\n ...
[ "0.7798355", "0.73986274", "0.73102343", "0.72557575", "0.72520316", "0.72499573", "0.7167209", "0.71634185", "0.7145373", "0.7134281", "0.71205854", "0.7080664", "0.7077666", "0.7063818", "0.70606816", "0.70535946", "0.7037333", "0.7020379", "0.70194703", "0.6985236", "0.695...
0.0
-1
accept the room invitation
async def accept(YKHO) -> None: RKD7.info('accept() <%s>', YKHO) await YKHO.puppet.room_invitation_accept(room_invitation_id=YKHO.invitation_id) Ufh4 = await YKHO.inviter() rlUa = await YKHO.topic() try: await Ufh4.ready() RKD7.info('accept() with room(%s) & inviter(%s) ready())', rl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v9t7(YKHO, ZhvG, Kgml):\n djK5 = YKHO.db.get(Kgml)\n A0tR = int(ITS7.time() * 1000)\n if djK5:\n djK5.get('session').emit('invite_accepted', {'from_user': ZhvG, 'to_user': Kgml, 'game_id': A0tR})\n y9X7 = YKHO.db.get(ZhvG)\n if y9X7:\n y9X7.get('session').emit('invite_accepted', {'...
[ "0.66697955", "0.6611265", "0.6608688", "0.658843", "0.65562046", "0.65253025", "0.6461113", "0.64036226", "0.63671315", "0.6344533", "0.6330797", "0.62778425", "0.625379", "0.62519544", "0.6227562", "0.62146926", "0.62097156", "0.6207651", "0.6182774", "0.61782134", "0.61577...
0.83144504
0
get the age of the invitation timespan
async def age(YKHO) -> int: RKD7.info('age() <%s>', YKHO) pB3N = await YKHO.puppet.room_invitation_payload(room_invitation_id=YKHO.invitation_id) C6wh = (qcWV.now() - pB3N.date).seconds return C6wh // 1000
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def liRe(YKHO, YWSi):\n return (YKHO.time - YWSi.born) / 52", "def ZJe_(YKHO) -> float:\n return ITS7.time() - YKHO.determination_time", "def ZJe_(YKHO):\n wzkt = qcWV.today()\n Kb0M = qcWV.strptime(YKHO.birth_date.strftime('%Y-%m-%d'), '%Y-%m-%d')\n WH_7 = (wzkt - Kb0M).days\n return int(WH_...
[ "0.7553732", "0.749349", "0.74857426", "0.73987806", "0.7266738", "0.72514874", "0.72514874", "0.7198638", "0.719778", "0.7169373", "0.7165697", "0.71648574", "0.7147419", "0.7137254", "0.71280813", "0.71265984", "0.7117969", "0.70908064", "0.70895326", "0.70861983", "0.70833...
0.8221954
0
For map, returns top 5 categs by year by loc
def bmIC(jQ3Z, exwG=5): jQ3Z['num_issues'] = 1 D9cM = jQ3Z[['tract_and_block_group', 'TYPE', 'num_issues']].sort_values(['tract_and_block_group']) vRl9 = D9cM.groupby(['tract_and_block_group', 'TYPE']).count() Oa1e = vRl9['num_issues'].groupby(level=0, group_keys=False) TK2h = Oa1e.nlargest(exwG) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C4h0(jQ3Z):\n return jQ3Z.filter(eHNT.col('startYear') > qcWV.now().year - 10).select('tconst', 'primaryTitle', 'numVotes', 'averageRating', 'startYear').orderBy(eHNT.col('averageRating').desc())", "def uKkH(jQ3Z):\n return jQ3Z.select('tconst', 'primaryTitle', 'numVotes', 'averageRating', 'startYear')...
[ "0.60211074", "0.5869941", "0.5790154", "0.5785182", "0.566932", "0.55484253", "0.5517388", "0.5497206", "0.5480056", "0.54654455", "0.5458459", "0.5350557", "0.533551", "0.531054", "0.5305368", "0.5278414", "0.5276308", "0.5262402", "0.5240785", "0.52277225", "0.52275425", ...
0.50643235
37
For map, returns top 5 categs by year by loc
def NMMG(jQ3Z, exwG=5): jQ3Z['year'] = jQ3Z.OPEN_DT.map(lambda WKvO: WKvO.year) jQ3Z.drop('OPEN_DT', inplace=True, axis=1) jQ3Z['num_issues'] = 1 D9cM = jQ3Z[['year', 'tract_and_block_group', 'TYPE', 'num_issues']].sort_values(['year', 'tract_and_block_group']) vRl9 = D9cM.groupby(['year', 'tract_an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C4h0(jQ3Z):\n return jQ3Z.filter(eHNT.col('startYear') > qcWV.now().year - 10).select('tconst', 'primaryTitle', 'numVotes', 'averageRating', 'startYear').orderBy(eHNT.col('averageRating').desc())", "def uKkH(jQ3Z):\n return jQ3Z.select('tconst', 'primaryTitle', 'numVotes', 'averageRating', 'startYear')...
[ "0.6020118", "0.586852", "0.5789191", "0.57846034", "0.55493176", "0.5518396", "0.54962575", "0.54793394", "0.5464832", "0.5458469", "0.5349987", "0.5334661", "0.5310521", "0.5303739", "0.52774495", "0.52756494", "0.5262051", "0.5240352", "0.52285755", "0.52272683", "0.520937...
0.56706613
4
Return a 1D view of an array of any dimensionality.
def q8u_(qw7D): TKAv = qw7D.view() TKAv.shape = qw7D.size return TKAv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WaCL(ezWE, yxfW):\n pass", "def Qm8c(jzdc, **B2fa):\n Aofo = oyIN.squeeze(oyIN.asarray(jzdc, **B2fa))\n if Aofo.ndim == 0:\n Aofo = Aofo.reshape((1,))\n elif Aofo.ndim > 1:\n raise ValueError('array must be one-dimensional')\n return Aofo", "def Qm8c(jzdc, **B2fa):\n Aofo = ...
[ "0.723007", "0.70963067", "0.70963067", "0.6820658", "0.6714088", "0.670841", "0.6640733", "0.6636193", "0.6547153", "0.6398739", "0.63174045", "0.62980616", "0.629804", "0.624986", "0.61836785", "0.6157699", "0.61207074", "0.60751426", "0.6068755", "0.60424733", "0.5999349",...
0.6265013
13
Return True if the image has one channel per pixel.
def gQl0(LNo8): return LNo8.ndim < 3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k_Lp(YKHO):\n return YKHO.data.ndim == 2", "def ETKF(WKvO) -> bool:\n return len(WKvO.shape) == 3", "def fin2(LNo8):\n try:\n LNo8.getchannel(1)\n return False\n except ValueError:\n return True", "def ff_l(YKHO, WKvO):\n if WKvO.shape[0] == 3:\n return True\n ...
[ "0.73248416", "0.7205202", "0.68924266", "0.68342113", "0.67519975", "0.66830933", "0.66830933", "0.6674296", "0.66701", "0.66701", "0.6570376", "0.6570376", "0.6460905", "0.64192307", "0.6405996", "0.6405466", "0.63918", "0.632325", "0.62834007", "0.6192983", "0.61600417", ...
0.6210634
19
Add 2 vectors using the + operand. Returns a new vector.
def FOdN(YKHO, Elif): return lNLu(YKHO.x + Elif.x, YKHO.y + Elif.y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xXeU(jzdc, Fg_i):\n return (jzdc[0] + Fg_i[0], jzdc[1] + Fg_i[1])", "def KfxW(hQHm, jlSq):\n return hQHm + jlSq", "def GAyv(Yipr, Vkf3):\n return [jzdc + Fg_i for jzdc, Fg_i in zip(Yipr, Vkf3)]", "def JsGA(hQHm, jlSq):\n if ROpF(hQHm) != ROpF(jlSq):\n raise Rhzo('You cannot add two vec...
[ "0.85052717", "0.8499062", "0.8449703", "0.8319365", "0.82643545", "0.82643545", "0.82643545", "0.82078665", "0.81930053", "0.8114245", "0.8093846", "0.8010876", "0.7991024", "0.79124635", "0.7904771", "0.78714937", "0.78311056", "0.78295016", "0.7812343", "0.78100365", "0.78...
0.7662021
31
The set of arguments for constructing a TrafficManagerAzureEndpoint resource.
def FIMM(Ro_8, *, O4Fb: pulumi.Input[str], J6ic: pulumi.Input[str], xSC3: Optional[pulumi.Input[Sequence[pulumi.Input['TrafficManagerAzureEndpointCustomHeaderArgs']]]]=None, etR_: Optional[pulumi.Input[bool]]=None, UgYv: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, mWFP: Optional[pulumi.Input[str]]=None, E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: TrafficManagerAzureEndpointArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, *, xSC3: Optional[pulumi.Input[Sequence[pulumi.Input['TrafficManagerAzureEndpointCustomHeaderArgs']]]]=None, etR_: Optional[pulumi.Input[bool]]=None, UgYv: Optional[pulumi.Inp...
[ "0.7469382", "0.71278423", "0.7044937", "0.59704286", "0.58678406", "0.58153385", "0.5710963", "0.56539035", "0.56184214", "0.5609124", "0.5501407", "0.5451473", "0.54077286", "0.5368412", "0.53588283", "0.5352588", "0.5349805", "0.5319429", "0.531773", "0.5314094", "0.529033...
0.6853052
3