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
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
def FIMM(Ro_8, *, p16M: Optional['outputs.MatchResourcesPatch']=None, wbga: Optional['outputs.ParamRefPatch']=None, CX3n: Optional[str]=None, UXZT: Optional[Sequence[str]]=None): if p16M is not None: qe4Y.set(Ro_8, 'match_resources', p16M) if wbga is not None: qe4Y.set(Ro_8, 'param_ref', wbga) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cqok(YKHO) -> h8nf['outputs.ValidatingAdmissionPolicyBindingSpec']:\n return qe4Y.get(YKHO, 'spec')", "def FIMM(Ro_8, *, clva: Optional[str]=None, eJTR: Optional[str]=None, yIVm: Optional['_meta.v1.outputs.ObjectMeta']=None, Cqok: Optional['outputs.ValidatingAdmissionPolicyBindingSpec']=None):\n if clv...
[ "0.7044167", "0.5892073", "0.57587856", "0.47794646", "0.46277392", "0.45490396", "0.44193137", "0.43513086", "0.43085527", "0.4262087", "0.42224517", "0.41610533", "0.4109367", "0.4109334", "0.40802166", "0.4066284", "0.4064739", "0.4055199", "0.40452915", "0.4036", "0.40158...
0.0
-1
PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
def CX3n(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'policy_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CX3n(YKHO, CX3n):\n YKHO._policy_name = CX3n", "def CX3n(YKHO, CX3n):\n YKHO._policy_name = CX3n", "def CX3n(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'policy_name')", "def CX3n(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'policy_name')", "def CX3n(YKHO) -> qe4Y.Input[str]:\n ...
[ "0.5631732", "0.5631732", "0.55699396", "0.55699396", "0.55699396", "0.55699396", "0.55699396", "0.55699396", "0.55699396", "0.54904664", "0.5323996", "0.5099683", "0.502581", "0.49196115", "0.49045834", "0.48892766", "0.48762485", "0.48594192", "0.48577783", "0.47718355", "0...
0.55509245
10
failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or misconfigured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a nonexistent Kind. A binding is invalid if spec.para...
def Buzv(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'failure_policy')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBQc(Qabx):\n if 'name' not in Qabx:\n raise AttributeError('Policy missing attribute name.')\n if 'policyType' not in Qabx:\n raise AttributeError('Policy {} do not have PolicyType.'.format(Qabx['name']))\n if Qabx['policyType'] not in [0, 1, 2]:\n raise AttributeError('Policy {}...
[ "0.5835593", "0.51083267", "0.5080039", "0.5063163", "0.4998524", "0.49710676", "0.4908479", "0.48891646", "0.48433125", "0.48009688", "0.47964483", "0.4781463", "0.47520885", "0.47497296", "0.47328606", "0.46700382", "0.4596225", "0.45896113", "0.4576499", "0.45675892", "0.4...
0.65031314
3
failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or misconfigured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a nonexistent Kind. A binding is invalid if spec.para...
def Buzv(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'failure_policy')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBQc(Qabx):\n if 'name' not in Qabx:\n raise AttributeError('Policy missing attribute name.')\n if 'policyType' not in Qabx:\n raise AttributeError('Policy {} do not have PolicyType.'.format(Qabx['name']))\n if Qabx['policyType'] not in [0, 1, 2]:\n raise AttributeError('Policy {}...
[ "0.5835224", "0.51080525", "0.5080742", "0.50630075", "0.4998422", "0.49712896", "0.49080715", "0.48887676", "0.48433957", "0.47994038", "0.47960606", "0.4781688", "0.4751839", "0.47501805", "0.47330263", "0.46712813", "0.45962194", "0.45904255", "0.45761374", "0.4568598", "0...
0.6503159
2
ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.
def FIMM(Ro_8, *, iPqd: Optional[Sequence['_meta.v1.outputs.Condition']]=None, Jpb9: Optional[int]=None, CAQQ: Optional['outputs.TypeChecking']=None): if iPqd is not None: qe4Y.set(Ro_8, 'conditions', iPqd) if Jpb9 is not None: qe4Y.set(Ro_8, 'observed_generation', Jpb9) if CAQQ is not None:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO) -> h8nf['outputs.ValidatingAdmissionPolicyStatus']:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO, jGRS):\n BbPm = ['loaned', 'finished']\n if YKHO.local_vars_configuration.client_side_validation and jGRS not in BbPm:\n raise ValueError('Invalid value for `status` ({0}), must ...
[ "0.69716156", "0.55257034", "0.5407147", "0.537072", "0.5350528", "0.5250231", "0.51140606", "0.5092403", "0.50157684", "0.50073355", "0.4939124", "0.49281713", "0.49000558", "0.48840648", "0.48489165", "0.48327956", "0.4818739", "0.48000705", "0.47999936", "0.4761761", "0.47...
0.0
-1
ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.
def FIMM(Ro_8, *, iPqd: Optional[Sequence['_meta.v1.outputs.ConditionPatch']]=None, Jpb9: Optional[int]=None, CAQQ: Optional['outputs.TypeCheckingPatch']=None): if iPqd is not None: qe4Y.set(Ro_8, 'conditions', iPqd) if Jpb9 is not None: qe4Y.set(Ro_8, 'observed_generation', Jpb9) if CAQQ is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO) -> h8nf['outputs.ValidatingAdmissionPolicyStatus']:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO, jGRS):\n BbPm = ['loaned', 'finished']\n if YKHO.local_vars_configuration.client_side_validation and jGRS not in BbPm:\n raise ValueError('Invalid value for `status` ({0}), must ...
[ "0.69716156", "0.55257034", "0.5407147", "0.537072", "0.5350528", "0.5250231", "0.51140606", "0.5092403", "0.50157684", "0.50073355", "0.4939124", "0.49281713", "0.49000558", "0.48840648", "0.48489165", "0.48327956", "0.4818739", "0.48000705", "0.47999936", "0.4761761", "0.47...
0.0
-1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): N2Fw = './confusion_matrix_plots' if not Hy7s.path.exists(N2Fw): Hy7s.mkdir(N2Fw) QrM1.cla() QrM1.figure() QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81920755", "0.8093736", "0.8028212", "0.8017333", "0.79923165", "0.7989431", "0.79789335", "0.7974398", "0.795948", "0.79555666", "0.7935652", "0.7932704", "0.7932632", "0.7929465", "0.7924336", "0.7922666", "0.79221356", "0.7921299", "0.79209703", "0.7916008", "0.7914319"...
0.7920307
19
Returns a list with all the word indexes to split the corpus into pages at. If you do pairwise(getPageSplits(...)) it will return the startIndex and endIndex of the words in that page.
def JkNO(YB9Y, GqsZ): assert (len(YB9Y) - 1) % len(GqsZ) == 0 s4pB = (len(YB9Y) - 1) / len(GqsZ) + 1 LyeZ = 8000 PAIv = int(round(float(s4pB) / LyeZ)) PAIv = max(PAIv, 1) ZIus = float(s4pB) / PAIv tW4d = dict(((UXqs, d6pt) for d6pt, UXqs in enumerate(GqsZ))) ri00 = [int(YRbF * ZIus) for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4Z4(YKHO):\n if YKHO.using_database:\n Q2PR = (f8UR,)\n gPUR.execute('SELECT word' + ' FROM word_to_indexes' + ' WHERE notebook=?;', Q2PR)\n R2iL = gPUR.fetchall()\n if R2iL:\n return {GIN8[0] for GIN8 in R2iL}\n return set()\n return YKHO.word_dict.keys()",...
[ "0.59858227", "0.58930147", "0.5881305", "0.58526915", "0.5807913", "0.5792143", "0.5780423", "0.5718214", "0.56908", "0.5673136", "0.5658767", "0.56476617", "0.56389236", "0.5635444", "0.5578436", "0.5578436", "0.5510148", "0.54985785", "0.5490404", "0.54451317", "0.54240036...
0.6857033
0
Assert that the business legal type is altered.
def JQoI(P4t4, cuiw, S_d0, g9g2): Ilxn = 'BC1234567' X2vB = MEMU(Ilxn) X2vB.legal_type = S_d0 uiiA = jth9.deepcopy(oDT7) uiiA['filing']['business']['legalType'] = S_d0 uiiA['filing']['alteration'] = jth9.deepcopy(hvBJ) uiiA['filing']['alteration']['business']['legalType'] = g9g2 q0JL = s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def li_b(YKHO):\n MpXb = HwRy._getframe().f_code.co_name\n im04, hlel = YKHO._execute('ticket_type change bad_type changed_type')\n YKHO.assertEqual(2, im04)\n YKHO.assertEqual(YKHO.expected_results[MpXb], hlel)", "def JcyB(YKHO):\n pass", "def j_fa(YKHO):\n YKHO.assertTrue(af4j().superType i...
[ "0.656989", "0.65504843", "0.65075123", "0.64481497", "0.6339044", "0.6178134", "0.61590123", "0.6065943", "0.6063289", "0.6062553", "0.6045977", "0.60454863", "0.5990141", "0.5986804", "0.5977824", "0.59631515", "0.5949707", "0.5907156", "0.5902793", "0.58973396", "0.5886665...
0.62076473
5
Get package primary status.
def KaFS(rdlD): try: return rdlD.find('div', {'class': 'pack_h3'}).string except AttributeError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hNYU(YKHO):\n geh0 = YKHO.parent.pir.status()\n return geh0[0]", "def VLTN(YKHO):\n return YKHO._status", "def BTS_(YKHO, oldI):\n return YKHO._delivery_service.package_status(int(oldI))", "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO...
[ "0.6859324", "0.67212015", "0.67179984", "0.67138493", "0.67138493", "0.67138493", "0.6694631", "0.669053", "0.6660498", "0.66603005", "0.66602045", "0.6590318", "0.6583879", "0.6517595", "0.65113854", "0.65110695", "0.6474595", "0.64716995", "0.64471734", "0.6441793", "0.644...
0.64849865
16
Serving input_fn that builds features from placeholders
def PgM6(YKHO): Q6uT = ZylS.placeholder(dtype=ZylS.float32, shape=[None, None], name='seq') bySB = {'seq': Q6uT} return ZylS.estimator.export.build_raw_serving_input_receiver_fn(bySB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AaIK():\n g4y1 = {}\n for _x49 in t73L:\n g4y1[_x49.name] = ZylS.placeholder(shape=[None], dtype=_x49.dtype)\n bySB = {H5ew: ZylS.expand_dims(vhpA, -1) for H5ew, vhpA in g4y1.iteritems()}\n return ZylS.contrib.learn.InputFnOps(bySB, None, g4y1)", "def kGIX():\n FFpr = ZylS.placeholder(s...
[ "0.7729514", "0.7346831", "0.7324483", "0.72329926", "0.7141356", "0.712646", "0.7116223", "0.70755315", "0.7053651", "0.7038903", "0.70289606", "0.70058405", "0.6954123", "0.6938028", "0.6873422", "0.6867659", "0.68650985", "0.68538463", "0.6836799", "0.68124574", "0.6799177...
0.68011504
20
Set up the test case environment.
def FCbF(YKHO): YKHO.app = L2w0(__name__) YKHO.gh = TMAJ.MagicMock() YKHO.db = TMAJ.MagicMock() YKHO.sc = TMAJ.MagicMock() YKHO.testcommand = SOch(YKHO.db, YKHO.gh, YKHO.sc) YKHO.help_text = YKHO.testcommand.help YKHO.maxDiff = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n G9jH.debug('setting up')", "def FCbF(YKHO):\n G9jH.debug('setting up')", "def HTzG(YKHO):\n pass", "def BL8P():\n RqeO._setUp = YKHO.setUp", "def SjAq():\n global TestEnv\n MQa_(GD0I)", "def SjAq():\n global TestEnv\n MQa_(GD0I)",...
[ "0.8390826", "0.77799433", "0.77799433", "0.7661141", "0.7562371", "0.7500299", "0.7500299", "0.7474197", "0.7414517", "0.7391956", "0.7361548", "0.73167485", "0.7313403", "0.7298214", "0.72912717", "0.7222855", "0.72048897", "0.7172848", "0.71695566", "0.71607", "0.71384484"...
0.0
-1
Test team command delete parser with lookup error.
def G6dW(YKHO): YKHO.db.query.return_value = [] YKHO.assertTupleEqual(YKHO.testcommand.handle('team delete brs', CBIr), (YKHO.testcommand.lookup_error, 200)) YKHO.db.delete.assert_not_called() YKHO.gh.org_delete_team.assert_not_called()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xenn(YKHO):\n pass", "def ozTo(YKHO):\n pass", "def Fo_4(YKHO):\n dZPi = r2Kd('BRS', 'brs', 'web')\n dZPi.github_team_id = '12345'\n b5K5 = mv1M('userid')\n b5K5.github_id = '1234'\n dZPi.add_team_lead('1234')\n YKHO.db.retrieve.return_value = b5K5\n YKHO.db.query.return_value = ...
[ "0.7559359", "0.7257383", "0.72505456", "0.7183576", "0.68659335", "0.6824783", "0.67677784", "0.66842014", "0.65309316", "0.63344705", "0.63249165", "0.63124037", "0.6246539", "0.61518383", "0.6098072", "0.608815", "0.60859257", "0.6085169", "0.60825646", "0.6071488", "0.606...
0.7316079
1
Test team command delete parser with Github error.
def Gm8v(YKHO): YKHO.db.query.side_effect = K4al('error') YKHO.assertTupleEqual(YKHO.testcommand.handle('team delete brs', CBIr), ('Team delete was unsuccessful with the following error: error', 200)) YKHO.db.delete.assert_not_called() YKHO.gh.org_delete_team.assert_not_called()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xenn(YKHO):\n pass", "def ozTo(YKHO):\n pass", "def Fo_4(YKHO):\n dZPi = r2Kd('BRS', 'brs', 'web')\n dZPi.github_team_id = '12345'\n b5K5 = mv1M('userid')\n b5K5.github_id = '1234'\n dZPi.add_team_lead('1234')\n YKHO.db.retrieve.return_value = b5K5\n YKHO.db.query.return_value = ...
[ "0.74363333", "0.7280571", "0.7270792", "0.69625545", "0.68794084", "0.6630471", "0.6593462", "0.64995134", "0.6418535", "0.6400622", "0.6392852", "0.6335247", "0.6313746", "0.6305289", "0.6206836", "0.6206836", "0.61616915", "0.6145311", "0.6079621", "0.60526043", "0.6011954...
0.76252383
0
Test team command remove parser when user is not in team.
def Z5QV(YKHO): b5K5 = mv1M('userid') b5K5.permissions_level = BNML.admin dZPi = r2Kd('BRS', 'brs', 'web') dZPi.github_team_id = 'githubid' g_7i = mv1M('anotheruser') g_7i.github_id = 'githubID' g_7i.github_username = 'myuser' YKHO.db.retrieve.side_effect = [b5K5, g_7i] YKHO.db.query...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rm4a(YKHO):\n pass", "def JzeJ(YKHO):\n pass", "def CI6P(YKHO):\n pass", "def oSTd(YKHO):\n b5K5 = mv1M('userid')\n dZPi = r2Kd('BRS', 'brs', 'web')\n YKHO.db.retrieve.return_value = b5K5\n YKHO.db.query.return_value = [dZPi]\n with YKHO.app.app_context():\n YKHO.assertTupl...
[ "0.7167882", "0.70738333", "0.69356644", "0.6594624", "0.6430752", "0.628227", "0.6048617", "0.6028056", "0.6010467", "0.6000762", "0.58871084", "0.58561516", "0.58381", "0.5816631", "0.5760512", "0.5673231", "0.56323326", "0.56022483", "0.5554935", "0.5545015", "0.55303717",...
0.69908637
2
Test team command remove parser with insufficient permission.
def oSTd(YKHO): b5K5 = mv1M('userid') dZPi = r2Kd('BRS', 'brs', 'web') YKHO.db.retrieve.return_value = b5K5 YKHO.db.query.return_value = [dZPi] with YKHO.app.app_context(): YKHO.assertTupleEqual(YKHO.testcommand.handle('team remove brs ID', CBIr), (YKHO.testcommand.permission_error, 200)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JzeJ(YKHO):\n pass", "def rm4a(YKHO):\n pass", "def Z5QV(YKHO):\n b5K5 = mv1M('userid')\n b5K5.permissions_level = BNML.admin\n dZPi = r2Kd('BRS', 'brs', 'web')\n dZPi.github_team_id = 'githubid'\n g_7i = mv1M('anotheruser')\n g_7i.github_id = 'githubID'\n g_7i.github_username = ...
[ "0.74124396", "0.6996266", "0.68074685", "0.6785503", "0.67604196", "0.6723054", "0.66223234", "0.6594288", "0.6567827", "0.6566253", "0.6537217", "0.6290257", "0.62760514", "0.6255405", "0.62469566", "0.6201174", "0.61873424", "0.6101515", "0.60213554", "0.60124296", "0.5997...
0.72986484
1
Test team command remove parser with lookup error.
def P34O(YKHO): b5K5 = mv1M('userid') b5K5.permissions_level = BNML.admin YKHO.db.retrieve.side_effect = LookupError with YKHO.app.app_context(): YKHO.assertTupleEqual(YKHO.testcommand.handle('team remove brs ID', CBIr), (YKHO.testcommand.lookup_error, 200)) YKHO.db.store.assert_not_called()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JzeJ(YKHO):\n pass", "def Z5QV(YKHO):\n b5K5 = mv1M('userid')\n b5K5.permissions_level = BNML.admin\n dZPi = r2Kd('BRS', 'brs', 'web')\n dZPi.github_team_id = 'githubid'\n g_7i = mv1M('anotheruser')\n g_7i.github_id = 'githubID'\n g_7i.github_username = 'myuser'\n YKHO.db.retrieve....
[ "0.7310583", "0.6710687", "0.66906583", "0.6620924", "0.6586377", "0.6461049", "0.641732", "0.6310145", "0.6263386", "0.6214439", "0.61719", "0.61262494", "0.60251486", "0.6001219", "0.5980266", "0.5976109", "0.59418344", "0.5889485", "0.5839505", "0.58375955", "0.5819552", ...
0.62968683
8
Test team command remove parser with github error.
def rRfJ(YKHO): b5K5 = mv1M('userid') b5K5.permissions_level = BNML.admin dZPi = r2Kd('BRS', 'brs', 'web') g_7i = mv1M('anotheruser') g_7i.github_id = 'githubID' g_7i.github_username = 'myuser' YKHO.db.retrieve.side_effect = [b5K5, g_7i] YKHO.db.query.return_value = [dZPi] YKHO.gh.ha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JzeJ(YKHO):\n pass", "def Gm8v(YKHO):\n YKHO.db.query.side_effect = K4al('error')\n YKHO.assertTupleEqual(YKHO.testcommand.handle('team delete brs', CBIr), ('Team delete was unsuccessful with the following error: error', 200))\n YKHO.db.delete.assert_not_called()\n YKHO.gh.org_delete_team.asse...
[ "0.70039016", "0.66776234", "0.66294795", "0.66225845", "0.6617376", "0.6550644", "0.64537877", "0.6323994", "0.6316362", "0.63047993", "0.6265777", "0.62170887", "0.6210322", "0.61249673", "0.61041236", "0.5930861", "0.5903191", "0.57639116", "0.5751656", "0.5730162", "0.571...
0.7124801
0
Initialize a new LevelViewModel.
def FIMM(YKHO, NAum: LevelModel, Wk5V: int, kYJE: int): YKHO.level_model = NAum YKHO.level_min = min(NAum.level_bounds[0], NAum.level_bounds[1]) YKHO.level_max = max(NAum.level_bounds[0], NAum.level_bounds[1]) YKHO.level_low_limit = Wk5V YKHO.level_high_limit = kYJE YKHO.x_axis = '' YKHO.y_a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, _AKB=None):\n super().__init__(_AKB)\n YKHO.filters = XeGq.NoFilter\n YKHO.sorting = M1Fx.Date\n YKHO.levels_dict = {}\n YKHO.dict_lock = T6FA.RLock()\n YKHO.view_list = []\n YKHO.view_keys = []\n YKHO.list_lock = T6FA.RLock()", "def c9aB(YKHO):\n ABDL = LDHv(YKHO.data['...
[ "0.6532033", "0.62393624", "0.6066005", "0.58251923", "0.57248515", "0.5580931", "0.5565138", "0.55295193", "0.5479385", "0.5414921", "0.54088503", "0.5345123", "0.53381556", "0.53363204", "0.5327553", "0.52900267", "0.5270273", "0.5242362", "0.522015", "0.51983047", "0.51897...
0.57849
4
Obtain the elevation of a given node.
def jbX2(YKHO, Q6kx): return YKHO.graph_provider.get_coords(Q6kx)['z']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yzQA(YKHO):\n return YKHO.container['elevation']", "def LWFS(YKHO):\n return YKHO.elevation", "def yzQA(WKvO, LVAh):\n nUeQ = Hy7s.path.abspath('..') + '\\\\Shape\\\\Shape.vrt'\n gEmA = MDcw.Open(nUeQ)\n _ger = gEmA.GetGeoTransform()\n j8Br = int((WKvO - _ger[0]) / _ger[1])\n wg7x = in...
[ "0.74777585", "0.7380403", "0.7113948", "0.70002407", "0.69765276", "0.693508", "0.6879331", "0.67873174", "0.65245295", "0.6443845", "0.6351145", "0.63081145", "0.62342453", "0.6155747", "0.60225326", "0.59598935", "0.5955485", "0.59541744", "0.5894903", "0.58423847", "0.567...
0.86230934
0
Sets the learning rate to the initial LR divided by 5 at 60th, 120th and 160th epochs
def e_63(qIxc, K0do, qtWj): qIxc.epochs tspZ = qIxc.lr * (0.2 ** int(qtWj >= qIxc.epochs - 140) * 0.2 ** int(qtWj >= qIxc.epochs - 80) * 0.2 ** int(qtWj >= qIxc.epochs - 40)) if qIxc.tensorboard: Fqw2('learning_rate', tspZ, qtWj) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power\n for Lwm5 in YKHO.opt.param_groups:\n Lwm5['lr'] = b0Ix\n print('Change learning rate into %f' % b0Ix)\n YKHO.summary_writer.add_scalar('learning_rate', b0Ix, YKHO.epoch)", "def...
[ "0.7851113", "0.77711433", "0.77694285", "0.7583295", "0.75615656", "0.75328285", "0.75036603", "0.7494985", "0.7489825", "0.74884444", "0.74778134", "0.74385315", "0.7414721", "0.73976934", "0.7382974", "0.73502624", "0.73357546", "0.7332341", "0.7326604", "0.7321816", "0.73...
0.70625454
77
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0) Ylbp.append(R2Dg.mul_(100....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R...
[ "0.7643041", "0.7418986", "0.7418119", "0.7270918", "0.7245867", "0.7244652", "0.72375184", "0.72214437", "0.7210162", "0.7058879", "0.6851859", "0.6786372", "0.6783499", "0.67681795", "0.6727462", "0.67179555", "0.67179555", "0.67179555", "0.67179555", "0.67179555", "0.67179...
0.0
-1
Constructs a ResNet50 model.
def uwZX(mL4f=False, **B2fa): C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa) if mL4f: C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST", "def uwZX(**B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n return C3ST", "def uwZX(m...
[ "0.7557751", "0.75548905", "0.74557495", "0.7386862", "0.7386862", "0.73601955", "0.7355623", "0.724254", "0.724254", "0.7191571", "0.7158499", "0.7101107", "0.70165247", "0.69687796", "0.68687624", "0.6822836", "0.6801022", "0.67330164", "0.6718147", "0.67159295", "0.657444"...
0.74759895
4
Initialise with a dictionary of anchors (id>(x,y), and other parameters)
def FIMM(YKHO, qvIa, qx2R=0.25, t0ZT=1.5): super(fGDH, YKHO).__init__() YKHO.anchors = qvIa YKHO.edge_length = qx2R YKHO.distance_margin = t0ZT mHDs = gk2W.c_double * (len(qvIa) * 2) cmnJ = mHDs() OSuD = gk2W.c_double * len(qvIa) YKHO.distances_array = OSuD() YKHO.n_distance = gk2W.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LSLQ(YKHO):\n YKHO.anchors_dic = {}\n e5kH = YKHO.get_metadata()\n Nqlg = e5kH.split('|')\n for zFiD in Nqlg:\n nPrm = zFiD.split()\n fTrr = nPrm[0]\n YKHO.anchors_dic[fTrr] = (nPrm[1], nPrm[2], nPrm[3])", "def DiD3(FQNo):\n C7Ls, XcU5, Nq1b = IAqP(FQNo)\n tjUW = FQNo.A...
[ "0.71796453", "0.67017615", "0.63044125", "0.6296558", "0.6246962", "0.62227744", "0.6207734", "0.6180771", "0.6101929", "0.60120726", "0.5954702", "0.5928507", "0.5807805", "0.5801306", "0.57825166", "0.5772158", "0.56542486", "0.5639985", "0.56219363", "0.5615302", "0.55800...
0.51688653
53
Check if current assignment doesn't violate any constraint
def FQd5(YKHO, gkIT): for oVM8 in gkIT: if not oVM8.is_satisfied_with(YKHO): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSuS(YKHO, TMbP):\n return all((hAVj.holds(TMbP) for hAVj in YKHO.constraints if all((Ty9i in TMbP for Ty9i in hAVj.scope))))", "def jBMN(YKHO) -> bool:\n ...", "def atwK(YKHO):\n wvak = YKHO.all_variables()\n ewCu = UHFx()\n NU4t = next(ewCu)\n gGq6 = [(0, 0, NU4t, {})]\n while gGq6:\...
[ "0.69896823", "0.6887728", "0.6842788", "0.6746609", "0.65457815", "0.64392394", "0.6376731", "0.63232243", "0.6281906", "0.62076354", "0.6085665", "0.6079781", "0.60751325", "0.6060571", "0.60528874", "0.60356015", "0.6018673", "0.60068434", "0.59915143", "0.59726906", "0.59...
0.5689079
71
Makes async call and fetches snl's api key
def sIA7(YKHO, H0h6, MkeE): j8eK = YKHO.get_api_key_uri() return YKHO.async_get_request(j8eK, headers={'splunkd_8089': H0h6}, auth_header=MkeE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLF4(rJDA):\n nNXP.get(rJDA)", "def p7gc(YKHO):\n YKHO.api.apikey = YKHO.api.action.user_show(id=YKHO.username)['apikey']", "async def test_fetch_api_key(x0hE):\n NArs = [('username', 'iago@zulip.com'), ('password', 'abcd1234')]\n MOPg = {'Accept': 'application/json'}\n geh0 = await x0hE.req...
[ "0.6705761", "0.64800125", "0.6422762", "0.640498", "0.63824654", "0.6164252", "0.61566025", "0.61040366", "0.6034231", "0.6014702", "0.59607846", "0.5911448", "0.5850175", "0.5847009", "0.5824644", "0.5824618", "0.58008575", "0.57295686", "0.5699271", "0.56849414", "0.567795...
0.7052415
0
Load a yaml configuration file and resolve any environment variables The environment variables must have !ENV before them and be in this format
def stx1(qaEx, U3Fm=False, TZ9E='!ENV'): mXDZ = ZbWC.compile('.*?\\${(\\w+)}.*?') DWkG = eJb6.SafeLoader DWkG.add_implicit_resolver(TZ9E, mXDZ, None) def CAXB(DWkG, Q6kx): """ Extracts the environment variable from the node's value :param yaml.Loader loader: the yaml loader ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NzmD():\n global api_key\n oagM = pmON.join(pmON.dirname(pmON.abspath(xAKo)), 'env.yml')\n try:\n wOb_ = open(oagM, 'r')\n LVAh = eJb6.safe_load(wOb_)\n except IOError:\n print('ERROR: Environment file {} not found'.format(oagM))\n HwRy.exit(3)\n except eJb6.parser.Pa...
[ "0.73803645", "0.700179", "0.700179", "0.69511443", "0.6896499", "0.6882543", "0.67253214", "0.66844374", "0.654744", "0.6542538", "0.6509685", "0.6494743", "0.64886767", "0.6473197", "0.6444666", "0.64001477", "0.63722515", "0.63578993", "0.63546145", "0.6346803", "0.6321414...
0.7342358
1
Extracts the environment variable from the node's value
def CAXB(DWkG, Q6kx): BWXx = DWkG.construct_scalar(Q6kx) kUBT = mXDZ.findall(BWXx) if kUBT: diFJ = BWXx for Oa1e in kUBT: diFJ = diFJ.replace(f'${{{Oa1e}}}', Hy7s.environ.get(Oa1e, Oa1e)) return diFJ return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mrr1(DWkG: SafeLineLoader, Q6kx: yaml.nodes.Node) -> str:\n qIxc = Q6kx.value.split()\n if len(qIxc) > 1:\n return Hy7s.getenv(qIxc[0], ' '.join(qIxc[1:]))\n if qIxc[0] in Hy7s.environ:\n return Hy7s.environ[qIxc[0]]\n bo34.error('Environment variable %s not defined', Q6kx.value)\n ...
[ "0.74716383", "0.73307157", "0.7074623", "0.70116323", "0.6888294", "0.6856912", "0.6797471", "0.6755176", "0.6698688", "0.6673939", "0.66672635", "0.66546106", "0.6646088", "0.65838444", "0.6574294", "0.6572259", "0.65580225", "0.6532851", "0.6514942", "0.64226377", "0.64153...
0.7350258
1
Returns a string represent 'data' in one of the supported types. If the client has expressed preference, this should be honored if possible. If not possible (or there was no preference) a default type will be used.
def format(YKHO, nPrm): SLLj = Hhz4(YKHO.supportedTypes) geh0.headers['Content-Type'] = SLLj if SLLj in ('text/json', 'text/x-json', 'application/json'): return YKHO.tojson(nPrm) return YKHO.tojson(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ri4S(nPrm):\n sB1G = type(nPrm)\n if sB1G in (int, Swre):\n return 'integer'\n elif sB1G == float:\n return 'float'\n elif sB1G == bool:\n return 'boolean'\n elif sB1G in (list, tuple):\n return 'list'\n elif sB1G == dict:\n return 'hash'\n elif nPrm is N...
[ "0.72181106", "0.6739397", "0.65194744", "0.65123373", "0.6475743", "0.6404853", "0.6318477", "0.6301927", "0.6299875", "0.62026316", "0.61979747", "0.61979747", "0.61979747", "0.6190758", "0.615768", "0.614394", "0.61077607", "0.6000888", "0.59740025", "0.59547687", "0.59541...
0.5612148
62
Returns a string represent 'data' in json format.
def Pdnt(YKHO, nPrm): return qQXR.dumps(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fg4q(YKHO, nPrm):\n return qQXR.dumps(nPrm)", "def qQXR(YKHO, nPrm):\n import qQXR\n nPrm = qQXR.dumps(nPrm)\n return nPrm", "def Bpko(YKHO, nPrm):\n return qQXR.dumps(nPrm, default=UIYs.default)", "def oD7C(YKHO, nPrm):\n return qQXR.dumps(nPrm)", "def Zmsb(YKHO, nPrm):\n return q...
[ "0.8582262", "0.82973737", "0.826102", "0.8212806", "0.8127341", "0.80764705", "0.78036916", "0.7664359", "0.7637165", "0.753312", "0.748186", "0.7446753", "0.7418959", "0.7384266", "0.7370602", "0.7349678", "0.73454237", "0.733219", "0.73205304", "0.73152775", "0.72945607", ...
0.83052707
1
Creates test client, connects the server to test database, and populates sample data.
def FCbF(YKHO): YKHO.client = P4t4.test_client() P4t4.config['Testing'] = True P4t4.config['SECRET_KEY'] = 'test' WlyJ(P4t4, db_uri='postgresql:///testdb', echo=False) NCls.create_all() Bhx9()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.client = N5z6.app.test_client()\n N5z6.app.config['TESTING'] = True\n N5z6.app.config['SECRET_KEY'] = '123'\n C3ST.connect_to_db(N5z6.app, 'postgresql:///testdb')\n C3ST.db.create_all()\n with YKHO.client as Z9rn:\n with Z9rn.session_transaction() as cuiw:\n ...
[ "0.756005", "0.7515475", "0.7349571", "0.7338716", "0.7322545", "0.7246193", "0.72203565", "0.7113777", "0.70973337", "0.70660955", "0.69986135", "0.69871175", "0.694488", "0.6926658", "0.68321484", "0.6822963", "0.6771319", "0.6761424", "0.6712739", "0.66872424", "0.66872424...
0.7238237
6
Data for the test database. Runs in setUp functions for tests that use it.
def Bhx9(): yokr.add_sfpl_branches() yokr.add_formats() w7mw = dl5x(title='Alanna: The First Adventure', author='Tamora Pierce') lpmu = dl5x(title="The Hitchhiker's Guide to the Galaxy", author='Douglas Adams') SPcu = dl5x(title='The Hobbit', author='J.R.R. Tolkien') NCls.session.add(w7mw) N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.data = GfzA()", "def izSt(Emd4):\n rOAL('loaddata', 'db.json', verbosity=0)", "def FCbF(YKHO):\n YKHO.client = P4t4.test_client()\n P4t4.config['Testing'] = True\n P4t4.config['SECRET_KEY'] = 'test'\n WlyJ(P4t4, db_uri='postgresql:///testdb', echo=False)\n NCls.creat...
[ "0.87716556", "0.80401206", "0.7990495", "0.7918828", "0.790322", "0.7872592", "0.7859519", "0.784169", "0.7840029", "0.7834039", "0.78179884", "0.78173035", "0.7810383", "0.77892816", "0.77767634", "0.77753127", "0.7750969", "0.7717675", "0.77174526", "0.7709835", "0.7685749...
0.0
-1
Queries db for a students schedule
def EcyB(YKHO, DCKO): w2B8 = iHv3.connect(YKHO.db_path) N1p7 = w2B8.cursor() with w2B8: N1p7.execute('SELECT cs.schedule_days, cs.start_time, cs.end_time\n FROM course_enrollments ce\n JOIN course_sections cs\n ON cs.course_id = ce.course_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ldta(cuiw, bo34):\n for Cjuo in cuiw.query(HwIj).all():\n bo34.info('- {}'.format(Cjuo))", "def DIwL():\n usx6 = NCls.engine.execute(f'SELECT * FROM sem_schedule WHERE EMP_ID = \"{Oa1e.user.EMP_ID}\"')\n Ylbp = []\n for rdlD in usx6:\n Ylbp.append(dict(rdlD))\n return pz3A(Ylbp)...
[ "0.6461527", "0.64595765", "0.62768745", "0.6230583", "0.6088938", "0.6048515", "0.5968079", "0.5828802", "0.5801634", "0.57932276", "0.5779998", "0.575282", "0.5739439", "0.57277304", "0.57023203", "0.56813735", "0.56773955", "0.56766766", "0.5668616", "0.5626562", "0.561353...
0.6974847
0
Tests no responses created for outbound posts
def B9DA(YKHO): DkIV = 'brand' YwkQ, vaUQ = YKHO.setup_channels(DkIV) CBIr = YKHO._create_db_user(email='su@test.test', password='test', is_superuser=True) CBIr.account = YKHO.account CBIr.save() QhXp = set() def ITxx(FvCA): z39Z = pKB8() BaHi = z39Z['user_name'] QhX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aA9v(YKHO, NKcE):\n YKHO._register_uri(NKcE)\n geh0 = lGIF(YKHO.client, NKcE).call(YKHO.test_endpoint, process_response=False)\n YKHO.assertEqual(geh0, qQXR.dumps(YKHO.test_data))", "def t9cw(YKHO):\n geh0 = {'status_code': 202, 'content': ''}\n YKHO.mock_response.configure_mock(**geh0)\n U...
[ "0.6788404", "0.6774958", "0.6763626", "0.6632563", "0.66077816", "0.64807165", "0.637886", "0.6375929", "0.6326921", "0.6299854", "0.626444", "0.62010765", "0.6196878", "0.619278", "0.61876297", "0.61870563", "0.6184402", "0.6165778", "0.6154294", "0.6152586", "0.6145053", ...
0.0
-1
Use standard Unix timestamps
def W6R7(): wzkt = ITS7.localtime() WY3t = ITS7.mktime(wzkt) return str(WY3t)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azw4():\n return int(ITS7.time())", "def a1kK():\n return (qcWV.utcnow() - qcWV(1970, 1, 1)).total_seconds()", "def YnO1(YKHO):\n bo34.debug('Get a timestamp')\n return ITS7.mktime(qcWV.today().timetuple())", "def ZP0Q():\n return GRk0.timegm(qcWV.utcnow().utctimetuple())", "def E3oo():\...
[ "0.74036795", "0.7114919", "0.71050674", "0.70601654", "0.688562", "0.6831353", "0.68053037", "0.67160815", "0.6695091", "0.6688814", "0.66821605", "0.6641052", "0.66099125", "0.65909076", "0.65902084", "0.6565757", "0.65510315", "0.6505561", "0.64923334", "0.6475822", "0.646...
0.0
-1
Return setting of owner's reportOutputPref at level specified in its PreferenceEntry.level
def mdR5(YKHO): from psyneulink.core.compositions.report import ReportOutput SeW3 = YKHO.get_pref_setting_for_level(pYcY, YKHO._report_output_pref.level)[0] if SeW3 is False: return ReportOutput.OFF elif SeW3 is True: return ReportOutput.TERSE return SeW3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LMXY(YKHO):\n return YKHO.get_pref_setting_for_level(n1KI, YKHO._log_pref.level)[0]", "def mdR5(YKHO, YqMg):\n from psyneulink.core.compositions.report import ReportOutput\n if YqMg is False:\n YqMg = ReportOutput.OFF\n elif YqMg is True:\n YqMg = ReportOutput.TERSE\n YKHO.set_pr...
[ "0.72780037", "0.62180614", "0.6080581", "0.5823701", "0.5624488", "0.55002546", "0.5479233", "0.5469856", "0.5281435", "0.519492", "0.518808", "0.5150267", "0.5139333", "0.50287485", "0.4999145", "0.49966177", "0.49715298", "0.4954436", "0.49478325", "0.4925556", "0.48930228...
0.770061
0
Return setting of owner's logPref at level specified in its PreferenceEntry.level
def LMXY(YKHO): return YKHO.get_pref_setting_for_level(n1KI, YKHO._log_pref.level)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LMXY(YKHO, YqMg):\n YKHO.set_preference(candidate_info=YqMg, pref_ivar_name=n1KI)", "def IQ43(YKHO):\n return YKHO.get_pref_setting_for_level(y0up, YKHO._verbose_pref.level)[0]", "def DXkw(wiAm=None):\n if wiAm is None:\n return G9jH.INFO\n elif wiAm == 'DEBUG':\n return G9jH.DEBU...
[ "0.6316234", "0.62302697", "0.59117764", "0.58178824", "0.5785135", "0.573081", "0.5714552", "0.5680662", "0.5662985", "0.5627414", "0.56167275", "0.5565954", "0.5534454", "0.55308014", "0.55078346", "0.54977345", "0.5492585", "0.5452731", "0.54279613", "0.54064333", "0.54041...
0.8309533
0
Obtain the coordinate of each pixel in the reciprocal space.
def EZ61(A81L, CZ1i): CZ1i = fsgT.asarray(CZ1i) V2MP = ANfq(A81L) lG2n = fsgT.sqrt(fsgT.sum(fsgT.square(CZ1i))) QuHm = CZ1i / lG2n P06u = fsgT.sqrt(fsgT.sum(fsgT.square(V2MP), axis=1)) XGOn = V2MP / P06u[:, oyIN.newaxis] I9gk = lG2n * (XGOn - QuHm) r1qm = fsgT.reshape(I9gk, A81L.shape) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g2XG(YKHO):\n return YKHO.unit_cell.reciprocal()", "def Mkmy(YKHO):\n Mkmy = oyIN.sqrt(YKHO.pos[:, 0] ** 2 + YKHO.pos[:, 1] ** 2 + YKHO.pos[:, 2] ** 2)\n return Mkmy", "def nkGx(YKHO):\n return YKHO.nx * YKHO.ny * YKHO.nz", "def lUOL(YKHO):\n Z9rn = YKHO.get_center()\n return F8C3.three...
[ "0.66038615", "0.6470301", "0.6408027", "0.6393367", "0.6274257", "0.62354976", "0.61462224", "0.6119856", "0.6119148", "0.60882425", "0.6064431", "0.6053948", "0.6037336", "0.6020313", "0.5985811", "0.5962735", "0.59350663", "0.5907845", "0.5906473", "0.5897822", "0.58958805...
0.68662983
0
Add new options to the pytest commandline
def YyTK(wvEv): wvEv.addoption('--ignore-datasources', action='store_true', default=False, help='Ignore the datasource marker applied to tests')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YyTK(wvEv):\n j4ek(wvEv)", "def YyTK(wvEv):\n wvEv.addoption('-c', action='store', help=' -c <test config file>')", "def YyTK(wvEv):\n wvEv.addoption('--run-flaky', action='store_true', help='runs flaky tests')\n wvEv.addoption('--run-network-tests', action='store_true', help='runs tests requir...
[ "0.7959306", "0.78100795", "0.7790388", "0.7766908", "0.76232344", "0.75945115", "0.7535965", "0.7529197", "0.75037855", "0.7500713", "0.7500304", "0.74803746", "0.74548644", "0.74394923", "0.7422117", "0.740802", "0.73988837", "0.7380947", "0.7369792", "0.7358042", "0.730833...
0.703034
27
Iterate over a sequence that requires async for.
async def a_enumerate(Q6uT, yKcO=0): YRbF = yKcO async for wEf2 in Q6uT: yield (YRbF, wEf2) YRbF += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X73w(WRKq: AnyIterable) -> eZmq[Kt_s]:\n if isinstance(WRKq, eZmq):\n return WRKq\n\n async def gen():\n for YRbF in WRKq:\n yield YRbF\n return eK5b()", "async def _aiter_sync(OxJJ: Iterable[T]) -> eZmq[Kt_s]:\n for ZfUD in OxJJ:\n yield ZfUD", "async def borrow...
[ "0.7327933", "0.7293463", "0.7245759", "0.69220495", "0.6894299", "0.646407", "0.64356184", "0.6262191", "0.6206724", "0.61930734", "0.61389524", "0.61149365", "0.60963917", "0.6084639", "0.60747236", "0.60632145", "0.6040443", "0.6014539", "0.60037136", "0.59884953", "0.5977...
0.66492033
5
Return True if number is a power of 2.
def Spyh(Z9rn): return exwG & exwG - 1 == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KMom(mLGw):\n return mLGw & mLGw - 1 == 0 and mLGw > 0", "def KMom(mLGw):\n return mLGw & mLGw - 1 == 0 and mLGw > 0", "def Dmvc(mLGw: int) -> bool:\n return mLGw & mLGw - 1 == 0 and mLGw > 0", "def pW_H(mLGw):\n mLGw = int(mLGw)\n return mLGw != 0 and mLGw & mLGw - 1 == 0", "def gEah(YK...
[ "0.86893827", "0.86893827", "0.86486185", "0.86142594", "0.83917", "0.8308683", "0.82720256", "0.8229664", "0.81646913", "0.7880606", "0.7221173", "0.6846825", "0.68209946", "0.68001497", "0.67693186", "0.6716709", "0.66228914", "0.6604618", "0.6578151", "0.65709627", "0.6531...
0.793703
9
Returns a vector summing up each row of the matrix x.
def vMaX(WKvO): WfCS = _WqI.shape(WKvO)[1] Bl5s = _WqI.pack([WfCS, 1]) pSfY = _WqI.ones(Bl5s, WKvO.dtype) return _WqI.reshape(qkSJ.matmul(WKvO, pSfY), [-1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jRCY(YKHO, WKvO):\n hkxX = oyIN.zeros(len(WKvO[0]))\n for YRbF in range(len(WKvO)):\n hkxX = hkxX + oyIN.array(WKvO.values[YRbF] * YKHO.weights[YRbF])\n return hkxX", "def QoeY(WKvO):\n KQWz = []\n for YRbF in WKvO:\n for mLGw in YRbF:\n KQWz.append(mLGw)\n return s...
[ "0.69549483", "0.66222095", "0.6443588", "0.6379898", "0.6366739", "0.6352674", "0.6291685", "0.6246245", "0.61629725", "0.61353415", "0.6134832", "0.61257815", "0.6120378", "0.6053841", "0.60315406", "0.60305494", "0.6021108", "0.60101163", "0.60079414", "0.5996381", "0.5990...
0.7237308
0
Computes sigmoid cross entropy given `logits`. Measures the probability error in discrete classification tasks in which each class is independent and not mutually exclusive. For instance, one could perform multilabel classification where a picture can contain both an elephant and a dog at the same time. For brevity, le...
def uf5F(KeL5, x6A0, mWFP=None): with IPme.name_scope(mWFP, 'logistic_loss', [KeL5, x6A0]) as mWFP: KeL5 = IPme.convert_to_tensor(KeL5, name='logits') x6A0 = IPme.convert_to_tensor(x6A0, name='targets') try: x6A0.get_shape().merge_with(KeL5.get_shape()) except ValueError:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRPx(KeL5, x6A0):\n KeL5 = ZylS.concat(0, KeL5)\n x6A0 = ZylS.concat(0, x6A0)\n return ZylS.reduce_mean(ZylS.nn.sigmoid_cross_entropy_with_logits(KeL5, x6A0))", "def yfnK(KeL5):\n assert len(KeL5.shape) <= 2\n La78 = KeL5 - ZylS.reduce_logsumexp(KeL5, axis=-1, keepdims=True)\n A3Q3 = -La78\...
[ "0.8052472", "0.75631636", "0.7471212", "0.7457534", "0.7426443", "0.7420262", "0.735233", "0.72464293", "0.723129", "0.71575016", "0.7152426", "0.71386164", "0.71288973", "0.7013112", "0.69826066", "0.69571996", "0.69388556", "0.6910177", "0.688051", "0.68615466", "0.6840803...
0.86424553
0
Return list of stations as json
def Oj45(): fxMV = cuiw.query(njvh.station, njvh.name) E1r2 = [] for KCHu, exwG in fxMV: oD9Q = {} oD9Q['station'] = KCHu oD9Q['name'] = exwG E1r2.append(oD9Q) return pz3A(E1r2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oj45():\n i_Um = cuiw.query(dGpz.station, dGpz.name).all()\n uMau = []\n for rdlD in i_Um:\n oD9Q = {}\n oD9Q['station'] = rdlD.station\n oD9Q['name'] = rdlD.name\n uMau.append(oD9Q)\n return pz3A(uMau)", "def Oj45():\n IeOM = cuiw.query(Ny6I.station).distinct().all...
[ "0.86155045", "0.8612225", "0.8578345", "0.857554", "0.8554028", "0.8529951", "0.8525643", "0.852311", "0.852159", "0.8498818", "0.84971195", "0.84934115", "0.8481039", "0.8477952", "0.8460487", "0.8447032", "0.8420812", "0.84163475", "0.83794355", "0.83295405", "0.8298081", ...
0.85554254
4
Load image as tf.Tensor.
def O1MR(QMAG, s3Vn, PLSm): VfIt = ZylS.read_file(QMAG) VXjJ = ZylS.image.decode_png(VfIt) VXjJ = NpZs(VXjJ, s3Vn, PLSm) VXjJ = ZylS.image.per_image_standardization(VXjJ) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJzH(Ux0P):\n WIV_ = ZylS.io.read_file(Ux0P)\n Tocx = ZylS.image.decode_image(WIV_)\n VXjJ = ZylS.image.convert_image_dtype(Tocx, ZylS.float32)\n return VXjJ", "def GgRL(pmON: Path) -> ZylS.Tensor:\n ThLH = ZylS.io.read_file(str(pmON))\n j3sf = ZylS.io.decode_jpeg(ThLH, channels=3)\n ret...
[ "0.79898804", "0.78421783", "0.7397727", "0.73951936", "0.7245636", "0.7092631", "0.7059253", "0.6981903", "0.6976709", "0.69691414", "0.69576496", "0.69386655", "0.68857455", "0.6867385", "0.6853622", "0.68346906", "0.67981666", "0.67585754", "0.6750487", "0.67218274", "0.67...
0.7219355
5
Determine if the provided password is valid.
def W5z7(jTXt): from string import ascii_lowercase from string import ascii_uppercase from string import digits if len(jTXt) < EYFn or len(jTXt) > wIbM: return False EtZm = 0 i5cF = 0 aonO = 0 T1ZQ = 0 for hcXw in jTXt: if hcXw in ascii_lowercase: EtZm += ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EoXa(jTXt):\n pass", "def tWk5(YKHO, jTXt):\n if YKHO.password_regex.search(jTXt) is not None:\n print('Correct password')\n return True\n else:\n print('Wrong password')\n return False", "def tWk5(YKHO, jTXt):\n eD8c = ZbWC.compile(si3H.password_regex)\n if not e...
[ "0.8516776", "0.8354247", "0.8320329", "0.83199084", "0.82479423", "0.82479423", "0.8237849", "0.8236277", "0.8231372", "0.8229386", "0.82032466", "0.8152879", "0.81508857", "0.81053776", "0.80793977", "0.80605215", "0.80581343", "0.8041872", "0.80090135", "0.8004572", "0.797...
0.7386877
79
Critical density at z=0
def rxuA(): rYO3 = XVry.UnitSystem() assert rYO3.rho_crit(0.7) == 9.204285430050004e-30 assert rYO3.rho_crit(1.0) == 1.8784255979693885e-29
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MerJ(YKHO, fuBA):\n seIm = oyIN.exp(YKHO._estimate_weighted_log_prob(fuBA))\n KCHu = seIm.sum(axis=1)[:, oyIN.newaxis]\n return seIm / KCHu", "def yza1(YKHO, epBp):\n k0lF = 0.15 * (12.0 * oyIN.pi) ** (2 / 3.0)\n Mb5v = YKHO.C.Omegam_z(epBp)\n H1Jx = YKHO.C.OmegaL_z(epBp)\n if Mb5v == 1....
[ "0.6571282", "0.6464311", "0.6417149", "0.63604754", "0.6333806", "0.6296631", "0.628923", "0.628923", "0.6174804", "0.61555403", "0.6142562", "0.6077917", "0.6070785", "0.6009029", "0.5964137", "0.59582376", "0.5948104", "0.59302366", "0.5899492", "0.5894627", "0.5894597", ...
0.0
-1
Not return unique pairs and slow
def yFju(nPrm, oXaw, FK6s=oyIN.int(1000000.0)): ekHH = int(len(nPrm) * (len(nPrm) - 1) / 2 * oXaw) ekHH = min(ekHH, FK6s) kgDL = oyIN.empty((ekHH, 2)) for YRbF in dLum.prange(ekHH): q2Xo = oyIN.random.choice(nPrm, size=2, replace=False) q2Xo.sort() kgDL[YRbF] = q2Xo return kg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDv2(kgDL):\n AtwB = []\n S5DC = {}\n for YRbF in range(len(kgDL)):\n for r845 in range(len(kgDL[0])):\n if YRbF == kgDL[YRbF][r845]:\n continue\n if '%d,%d' % (YRbF, kgDL[YRbF][r845]) not in S5DC:\n S5DC['%d,%d' % (YRbF, kgDL[YRbF][r845])] = ...
[ "0.74665505", "0.7458169", "0.7286342", "0.70704454", "0.66775495", "0.6664701", "0.65282387", "0.65227735", "0.63898265", "0.6220333", "0.6212185", "0.6169182", "0.6167575", "0.61417955", "0.6136165", "0.6135198", "0.6127529", "0.61261636", "0.61184144", "0.61083645", "0.609...
0.0
-1
This is used to compare 2 objects
def xa14(YKHO, Elif): return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qk7K(pcdu, cJB0):\n return ZsIw(pcdu) == ZsIw(cJB0)", "def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))", "def t87K() -> None:\n YEnM = yhi1()\n RL4V = yhi1()\n assert YEnM != RL4V\n YEnM._id = RL4V.id\n assert YEnM == RL4V", "def xa14(YKH...
[ "0.768704", "0.75287986", "0.7502687", "0.74012315", "0.73266083", "0.7315071", "0.730467", "0.72950774", "0.72916", "0.7233773", "0.7187291", "0.71354896", "0.71354896", "0.7133146", "0.71203434", "0.7096868", "0.7096868", "0.7077981", "0.7014047", "0.7014047", "0.7014047", ...
0.733177
28
The sigmoid function and its derivative
def RS8a(epBp, VVyp=False): if VVyp: return epBp * (1 - epBp) else: return 1 / (1 + oyIN.exp(-epBp))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZml(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n return WKvO * (1.0 - WKvO)", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))", "def m1Hg(epBp):\n return mFhB(epBp)", "de...
[ "0.889857", "0.8860607", "0.8750368", "0.8750368", "0.8613247", "0.8269655", "0.82664037", "0.82664037", "0.8261138", "0.8249627", "0.82088757", "0.81849754", "0.8175644", "0.816951", "0.8140514", "0.8139403", "0.8134387", "0.8134387", "0.8134387", "0.8134387", "0.8134387", ...
0.8082404
30
Constructor of a forward ANN instance.
def FIMM(YKHO, imVz, hASO, _LFN): YKHO.dim_in = imVz + 1 YKHO.dim_hid = hASO YKHO.dim_out = _LFN YKHO.dim_node = YKHO.dim_in + YKHO.dim_hid + YKHO.dim_out YKHO.weight = oyIN.zeros((YKHO.dim_node, YKHO.dim_node), dtype=oyIN.float64) YKHO.connectivity = oyIN.zeros((YKHO.dim_node, YKHO.dim_node), d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc):\n super(byfJ, YKHO).__init__()\n YKHO.fc = U78l.Linear(*qIxc)", "def FIMM(YKHO, Ce0Y, Q9YM, N93T=False):\n super(zSGR, YKHO).__init__()\n assert len(Q9YM) == len(Ce0Y) - 1\n G1Hx = len(Ce0Y)\n assert all([Ce0Y[r845][1] == Ce0Y[r845 + 1][0] for r845 in range(G1Hx - 1)])\n ...
[ "0.68916357", "0.67293704", "0.67102045", "0.6693892", "0.6668455", "0.6649301", "0.6579996", "0.6558831", "0.6557919", "0.655301", "0.6536888", "0.6532181", "0.65283024", "0.6527244", "0.65140307", "0.6468515", "0.643456", "0.6432852", "0.64249855", "0.64235806", "0.6422971"...
0.0
-1
Calculate the energy of this ANN
def eeFH(YKHO, EcVT, LVAh): amiz = YKHO.evaluate(EcVT) N77f = ((LVAh - amiz) ** 2).sum() / 2 return N77f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RUOA(YKHO):\n uv4I = 0\n for YRbF in range(0, YKHO.neuron_count):\n for r845 in range(0, YKHO.neuron_count):\n if YRbF != r845:\n uv4I += YKHO.get_weight(YRbF, r845) * YKHO.current_state[YRbF] * YKHO.current_state[r845]\n return -1 * uv4I / 2", "def VYvU(YKHO):\n ...
[ "0.7925603", "0.75406826", "0.74740034", "0.74234474", "0.7363943", "0.7339669", "0.7337072", "0.7285573", "0.727482", "0.7252891", "0.7226012", "0.72183496", "0.7179306", "0.7082741", "0.7076141", "0.7031667", "0.7019678", "0.6981347", "0.6908306", "0.6892576", "0.6871601", ...
0.69891953
17
The constructor of Priority Queue
def FIMM(YKHO, E0wO): if E0wO <= 0: raise YKHO.PQueueException('max_size must be positive') super().__init__(maxsize=0) YKHO.max_size = E0wO YKHO.mutating = T6FA.Condition(YKHO.mutex)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, G1Hx, WKvO, LVAh):\n YKHO.x = WKvO\n YKHO.y = LVAh\n YKHO.C = sijU()\n YKHO.p = []\n YKHO.k = G1Hx\n YKHO.tmp = []", "def Rdbh():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n return Rdbh", "def FIMM(YKHO, *qIxc):\n VQ6Z = _VfD.new_Priority(*q...
[ "0.77509904", "0.74588287", "0.74373686", "0.73494864", "0.73079515", "0.7118324", "0.7074923", "0.701779", "0.68682855", "0.68579656", "0.6853809", "0.6838587", "0.6823343", "0.67826444", "0.677461", "0.6711254", "0.6658506", "0.6652581", "0.6652581", "0.6652581", "0.6641934...
0.0
-1
Limit this queue to the max_size
def oVM8(YKHO): with YKHO.mutating: YKHO.queue = _eVy.nsmallest(YKHO.max_size, YKHO.queue) _eVy.heapify(YKHO.queue)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NTWI(YKHO, zNig):\n YKHO.java_obj.setWriteQueueMaxSize(zNig)\n return YKHO", "def qoqK(YKHO, E0wO):\n return YKHO.__class__(Hs6x.islice(YKHO, E0wO))", "def NTWI(YKHO, wEf2):\n YKHO.j_pump.setWriteQueueMaxSize(wEf2)\n return YKHO", "def HL00(YKHO, bUL7):\n YKHO._messagesToSendQueue.setMa...
[ "0.7408938", "0.7383901", "0.72856027", "0.7218965", "0.71198696", "0.6935463", "0.6903", "0.6872697", "0.68340915", "0.681831", "0.6812872", "0.67927736", "0.6770192", "0.6678455", "0.66666985", "0.6635649", "0.66229266", "0.6615451", "0.66063184", "0.6576646", "0.65566105",...
0.6173259
41
Returns the manifests which consist of the Recordings and Supervisions. When all the manifests are available in the ``output_dir``, it will simply read and return them.
def ZLaF(LnN3: Pathlike, x8f6: Union[str, Sequence[str]]='auto', kmfe: Optional[Pathlike]=None, C145: int=1) -> cuzp[str, cuzp[str, uLKX[bM70, Mvds]]]: LnN3 = GkAb(LnN3) assert LnN3.is_dir(), f'No such directory: {LnN3}' if x8f6 == 'mini_librispeech': x8f6 = set(h2B5).intersection((pmON.name for pmO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kNHN(YKHO, ak84):\n return None", "def kNHN(YKHO, ak84):\n for Kz8N in YKHO._parsed['manifests']:\n ikQi = qQXR.dumps(Kz8N)\n yield Y5sb(Cx_w.for_string_or_unicode(ikQi))", "def ly6x(yyXp):\n JeSG = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(yyXp):\n if 'manifest.json' in RRlC:...
[ "0.61077297", "0.61045086", "0.59841233", "0.5895404", "0.57937354", "0.5777963", "0.5594122", "0.55589306", "0.553366", "0.5532815", "0.55046815", "0.5439738", "0.54345614", "0.5396521", "0.5392771", "0.5381265", "0.5365184", "0.53536534", "0.5342521", "0.534236", "0.5334783...
0.0
-1
View function for home page of site.
def d6pt(QePW): return _1tc(QePW, 'index.html', context={})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')", "def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')", "def kZiy(QePW):\n return _1tc(QePW, 'home.html')", "def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')", "def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html'...
[ "0.8493426", "0.84268916", "0.83415145", "0.83306193", "0.82976943", "0.8295291", "0.8276345", "0.82545686", "0.82155704", "0.8132563", "0.81246215", "0.81224865", "0.8121264", "0.81049734", "0.8098485", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0...
0.0
-1
Get the value of the indexth node in the linked list. If the index is invalid, return 1.
def NMoC(YKHO, d6pt: int) -> int: if d6pt < 0 or d6pt >= YKHO.size: return -1 if d6pt + 1 < YKHO.size - d6pt: AsCw = YKHO.head for bGrB in range(d6pt + 1): AsCw = AsCw.next else: AsCw = YKHO.tail for bGrB in range(YKHO.size - d6pt): AsCw = AsCw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, d6pt: int) -> int:\n Q6kx = YKHO.get_node(d6pt)\n if Q6kx:\n return Q6kx.val\n else:\n return -1", "def NMoC(YKHO, d6pt: int) -> int:\n r9Hf = 0\n DpUl = YKHO.head\n while DpUl != None:\n if r9Hf == d6pt:\n return DpUl.val\n DpUl = DpUl.next...
[ "0.8308878", "0.8223689", "0.8101446", "0.7982042", "0.797206", "0.79664093", "0.7952038", "0.7949352", "0.79277694", "0.7905999", "0.7800025", "0.7734996", "0.77310765", "0.76515895", "0.7507434", "0.74748605", "0.74550724", "0.73873156", "0.73873156", "0.7384066", "0.733705...
0.7584202
14
Add a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list.
def PgMl(YKHO, wEf2: int) -> None: nvEb, watt = (YKHO.head, YKHO.head.next) DpUl = o7DN(wEf2) DpUl.next = watt DpUl.prev = nvEb nvEb.next = DpUl watt.prev = DpUl YKHO.size += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, wEf2):\n Esd_ = o7DN(wEf2)\n Esd_.next = YKHO.head\n YKHO.head = Esd_", "def PgMl(YKHO, wEf2):\n Q6kx = Msxl(wEf2)\n if YKHO.head == None:\n YKHO.head = Q6kx\n else:\n Q6kx.next = YKHO.head\n YKHO.head = Q6kx", "def PgMl(YKHO, wEf2):\n jbXL = o7DN(wEf2)\...
[ "0.78888327", "0.78128237", "0.77156687", "0.76672965", "0.7632993", "0.75963074", "0.7586912", "0.75706255", "0.7502218", "0.74938524", "0.7477616", "0.74631184", "0.7405691", "0.73827714", "0.73492926", "0.73492926", "0.728465", "0.72477174", "0.72355413", "0.71701944", "0....
0.7429465
12
Append a node of value val to the last element of the linked list.
def oHxR(YKHO, wEf2: int) -> None: nvEb, watt = (YKHO.tail.prev, YKHO.tail) DpUl = o7DN(wEf2) DpUl.next = watt DpUl.prev = nvEb nvEb.next = DpUl watt.prev = DpUl YKHO.size += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, wEf2):\n Fv8N = YM8C(wEf2, previous_node=YKHO.tail)\n YKHO.tail.next_node = Fv8N\n YKHO.tail = Fv8N", "def oHxR(YKHO, wEf2):\n if YKHO.head is None:\n YKHO.addAtHead(wEf2)\n else:\n Esd_ = o7DN(wEf2)\n ZbOB = YKHO.head\n while ZbOB.next is not None:\n ...
[ "0.80136085", "0.7979828", "0.78931767", "0.7879606", "0.7879606", "0.7855799", "0.77832985", "0.7744525", "0.7737238", "0.7721625", "0.7690721", "0.7631925", "0.76268226", "0.75301903", "0.75227934", "0.74494255", "0.7415731", "0.7320556", "0.72395295", "0.72237873", "0.7217...
0.7549912
13
Add a node of value val before the indexth node in the linked list. If index equals to the length of linked list, the node will be appended to the end of linked list. If index is greater than the length, the node will not be inserted.
def taMJ(YKHO, d6pt: int, wEf2: int) -> None: if d6pt > YKHO.size: return if d6pt < 0: d6pt = 0 if d6pt < YKHO.size - d6pt: nvEb = YKHO.head for bGrB in range(d6pt): nvEb = nvEb.next watt = nvEb.next else: watt = YKHO.tail for bGrB in r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def taMJ(YKHO, d6pt, wEf2):\n if d6pt < 0:\n Esd_ = Msxl(wEf2)\n Esd_.next = YKHO.head\n YKHO.head = Esd_\n if d6pt <= YKHO.length:\n THkp = None\n ZbOB = YKHO.head\n for YRbF in range(1, d6pt + 1):\n THkp = ZbOB\n ZbOB = ZbOB.next\n Esd_...
[ "0.80058235", "0.7905295", "0.78016585", "0.77571636", "0.7742864", "0.7742677", "0.77302635", "0.7709267", "0.7618808", "0.7613046", "0.7613046", "0.7596944", "0.7502421", "0.72808725", "0.72095805", "0.7154297", "0.7089389", "0.7024109", "0.70222694", "0.70174867", "0.69295...
0.7842
2
Test that an exception is correctly raised when two metrics have the same name. WHEN two or more metrics passed to a trainer have the same name THEN raise a ValueError
def CUH7(TBXe): Wbxz = [ieNr(name='test_loss'), ieNr(name='test_loss')] with trZe.raises(ValueError): BiVB(TBXe, metrics=Wbxz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _RZ1(YKHO):\n with trZe.raises(ValueError):\n Mrsk('nonexistent_metric')", "def OXRy(BHCt, CroE):\n WbAn, Crrw, bGrB, EcVT = CroE()\n C3ST = i3ak(BHCt)\n q3Nx(C3ST)\n C3ST.fit(WbAn, Crrw)\n AcYW = C3ST.get_metric()\n wfV8 = [(EcVT[0].tolist() + [5.2], EcVT[1]), (EcVT[0:4], EcVT[1:...
[ "0.69074655", "0.66071403", "0.6597664", "0.65158516", "0.6430883", "0.61472815", "0.61344683", "0.6079993", "0.60497904", "0.60078627", "0.5925428", "0.58541626", "0.58300716", "0.58232015", "0.58061445", "0.57979023", "0.57905364", "0.5761658", "0.57484984", "0.57387173", "...
0.79838043
0
Object constructor. Instantiates object and creates attributes. Generates snippets of provided light curves if `generate_snippets` parameter is True.
def FIMM(YKHO, id, FOO1, mPQc='unknown', Sf_c=True): YKHO.lcs = [] YKHO.lc_snippets = [] YKHO.id = id YKHO.classname = mPQc for z5la in FOO1: YKHO.lcs.append(z5la) if Sf_c: YKHO.lc_snippets.extend(aLDZ(z5la))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QgYK():\n return J1ng({'warning': False, 'off': True})", "def FIMM(YKHO, qH0d):\n YKHO.setParameters()\n YKHO.Light = qH0d", "def aLDZ(z5la):\n HasU, wc8c, UrB1 = [z5la.epochs, z5la.mags, z5la.errs]\n ic6U = []\n JkES = len(HasU)\n for Sb_v in [20, 40, 70, 100, 150, 250, 500, 1000, 100...
[ "0.6511569", "0.6154508", "0.59090006", "0.5742656", "0.5707672", "0.56683654", "0.5632951", "0.56133384", "0.55843776", "0.5568053", "0.5517448", "0.55120707", "0.5490088", "0.5456", "0.5449923", "0.5447288", "0.54252243", "0.5403897", "0.5393874", "0.5370551", "0.53599244",...
0.53604203
20
Return list of lightCurve() objects made from provided data.
def momE(z5la, id, mPQc): FOO1 = [] Krqe = 0 nPrm = z5la Z9JV = rKuS(nPrm) try: XdG6 = float(Z9JV('position2d')[0]('value2')[0]('c1')[0].renderContents()) iSjc = float(Z9JV('position2d')[0]('value2')[0]('c2')[0].renderContents()) except IndexError: print('position2d/value...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bc7A(YKHO, NArs, mNgJ=False):\n FZyQ = oyIN.diff(sorted(YKHO.times.jd))\n lzo2 = NArs.per / 2.0\n _9Ui = oyIN.argwhere(FZyQ > lzo2) + 1\n if len(_9Ui) > 1:\n N1r_ = [[0, _9Ui[0][0]]]\n N1r_.extend([[_9Ui[YRbF][0], _9Ui[YRbF + 1][0]] for YRbF in range(len(_9Ui) - 1)])\n N1r_.ext...
[ "0.65246844", "0.6465934", "0.6337164", "0.6251219", "0.61025953", "0.581342", "0.5769288", "0.57455343", "0.5701347", "0.5545635", "0.55104846", "0.5487012", "0.5486434", "0.5476765", "0.5459259", "0.54267687", "0.53850377", "0.5325321", "0.53144944", "0.5300755", "0.5249857...
0.5032054
33
Return CSV timeseries data for source with provided DotAstro ID.
def ZDWq(id): id = str(id) kP6U = False if 'http' in id: bD7m = id elif id.isdigit(): bD7m = 'http://dotastro.org/lightcurves/vosource.php?Source_ID=' + id else: print('dotAstro ID not a digit.') try: z5la = uRlK.request.urlopen(bD7m).read() if z5la.find('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BRkF():\n Lz8t()\n j7aV = AvK2.ZipFile('open_data_year_one.zip')\n G6EG = j7aV.open('2015_trip_data.csv')\n return rLdf.read_csv(G6EG)", "def xYvZ(nNXP, oS73):\n _Re_ = nNXP.data_by_series(series=oS73)\n jQ3Z = rLdf.DataFrame(_Re_)\n return jQ3Z", "def QIvx(YKHO, JZXy, pan_):\n YKHO...
[ "0.5778693", "0.57539296", "0.5607236", "0.55872345", "0.5522315", "0.551624", "0.5502703", "0.5502596", "0.5493564", "0.5476462", "0.54688483", "0.5370776", "0.5345104", "0.5308931", "0.53048325", "0.52921736", "0.5291309", "0.5286951", "0.52680284", "0.52658486", "0.5265848...
0.6717508
0
Allocates tensors for the optimizer state to allow direct compilation of the model before the first step.
def KG3b(YKHO): for uOe2 in YKHO.param_groups: for XP5J in uOe2['params']: YKHO.state[XP5J]['sum'] = ht2j.full_like(XP5J, uOe2['initial_accumulator_value'], memory_format=ht2j.preserve_format, device='cpu').to(XP5J.device)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nea7(YKHO):\n YKHO.memories.append(ZylS.tanh(ZylS.random_normal(shape=(YKHO.memory_capacity, YKHO.memory_vector_size), stddev=0.5)))\n YKHO.ww_t.append(ZylS.nn.softmax(ZylS.range(YKHO.memory_capacity, 0, -1, dtype=ZylS.float32)))\n YKHO.rw_t.append(ZylS.nn.softmax(ZylS.range(YKHO.memory_capacity, 0, -...
[ "0.7076541", "0.68022853", "0.66044825", "0.6513382", "0.64494544", "0.63675654", "0.63314015", "0.6323805", "0.6311833", "0.626584", "0.62340623", "0.6197052", "0.6197052", "0.6181561", "0.61793137", "0.6171753", "0.6158653", "0.61254156", "0.61200625", "0.6108338", "0.60939...
0.0
-1
Get the front element.
def T7C_(YKHO): return YKHO.stack[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.82009244", "0.79261875", "0.7852642", "0.7791182", "0.77886623", "0.75723046", "0.752337", "0.7510604", "0.7478953", "0.7379256", "0.7379256", "0.734284", "0.7323573", "0.7320296", "0.7291721", "0.72772557", "0.7269801", "0.72657627", "0.7253295", "0.72355044", "0.72213495...
0.6372947
87
Returns whether the queue is empty.
def lsmZ(YKHO): return len(YKHO.stack) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.9270249", "0.92506766", "0.923635", "0.923635", "0.9155843", "0.9098441", "0.9095006", "0.90922606", "0.90731245", "0.9053733", "0.89205354", "0.89137155", "0.8877591", "0.88436323", "0.88436323", "0.8835949", "0.88038146", "0.8758203", "0.87577534", "0.87310195", "0.86462...
0.0
-1
Test homepage in EN.
def Yw7M(YKHO): YKHO.driver.get(YKHO.url_ + '/') DfAS = i1TH.text_to_be_present_in_element((Q71O.XPATH, '//*[@id="main-nav"]/div/div[1]/a'), 'Data Commons') R3wq(YKHO.driver, YKHO.TIMEOUT_SEC).until(DfAS) Zw0s = YKHO.driver.find_elements_by_class_name('lead')[0] YKHO.assertTrue(Zw0s.text.startswith(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GvGQ(YKHO):\n geh0 = YKHO.client.get('/')\n YKHO.assertContains(geh0, 'Home Page', 1, 200)", "def GvGQ(YKHO):\n geh0 = YKHO.client.get(gxEw('home'))\n assert geh0.status_code == 200", "def VtW1(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.get('/')\n YKHO.assertEqual(geh0.sta...
[ "0.7044564", "0.6976756", "0.6971325", "0.6947039", "0.69357276", "0.69271016", "0.6900843", "0.68843704", "0.68268716", "0.68015486", "0.67653173", "0.6704349", "0.66744864", "0.6672788", "0.6670328", "0.6670328", "0.663169", "0.6624608", "0.66016173", "0.66008836", "0.65848...
0.7652041
0
Linearly map `low` to 0 and `high` to 255.
def sHy_(Xn71, gqRb, ODP9): from skimage.exposure import rescale_intensity, adjust_gamma if gqRb > ODP9: Zn7J = rescale_intensity(gqRb - Xn71.astype(oyIN.float), (0, gqRb - ODP9), (0, 255)).astype(oyIN.uint8) else: Zn7J = rescale_intensity(Xn71.astype(oyIN.float), (gqRb, ODP9), (0, 255)).ast...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)", "def R_ya(gwAu):\n return [255 if YRbF <= gwAu else 0 for YRbF in range(256)]", "def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)", "def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return in...
[ "0.71330273", "0.7012908", "0.6887508", "0.6887508", "0.6887508", "0.6887508", "0.6748736", "0.670707", "0.6633846", "0.6474674", "0.64253134", "0.6237296", "0.6188002", "0.6144321", "0.6108516", "0.60863185", "0.608047", "0.60553056", "0.60326636", "0.59998363", "0.59759337"...
0.6144009
14
Escape a string (treat it as a single complete string) in shell commands.
def o8HB(KCHu): from tempfile import mkstemp Gcbu, pmON = mkstemp() try: with Hy7s.fdopen(Gcbu, 'w') as eHNT: eHNT.write(KCHu) HCmI = 'cat %s | sed -e "s/\'/\'\\\\\\\\\'\'/g; 1s/^/\'/; \\$s/\\$/\'/" ' % pmON s81v = CD35(HCmI, shell=True) finally: Hy7s.remove(p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q_NC(oUZx):\n oUZx = oUZx.replace('\\\\', '\\\\\\\\')\n oUZx = oUZx.replace('$', '\\\\$')\n oUZx = oUZx.replace('\"', '\\\\\"')\n oUZx = oUZx.replace('`', '\\\\`')\n return oUZx", "def L9lW(KCHu):\n return '\"' + KCHu.replace(\"'\", \"'\\\\''\") + '\"'", "def Cizj(l5Ny):\n return IguF(...
[ "0.7615862", "0.7415594", "0.72144705", "0.71579486", "0.71099776", "0.70795584", "0.6998123", "0.69563174", "0.6952765", "0.69116515", "0.68636763", "0.68261117", "0.6795108", "0.67928225", "0.67837805", "0.6766631", "0.67595863", "0.67594546", "0.6755718", "0.675253", "0.67...
0.685382
11
Takes two tensors and return outer product x[N,2] y[N,2]
def aKAg(WKvO, LVAh): return WKvO[:, 0] * LVAh[:, 1] - WKvO[:, 1] * LVAh[:, 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vLE7(WKvO, LVAh):\n if len(list(WKvO.size())) != 2 or len(list(LVAh.size())) != 2:\n raise ValueError('An input is not of the right dimension.')\n epBp = ht2j.zeros(2, WKvO.size()[1], LVAh.size()[1], dtype=ht2j.double, device=WKvO.device)\n epBp[0] = ht2j.ger(WKvO[0], LVAh[0]) - ht2j.ger(WKvO[1...
[ "0.8282488", "0.808492", "0.7961398", "0.78640157", "0.7682538", "0.7472887", "0.74291945", "0.72502005", "0.7165973", "0.7074585", "0.69793797", "0.6913625", "0.68650544", "0.6829372", "0.68225485", "0.67908347", "0.6570677", "0.6471019", "0.6418274", "0.641755", "0.6402861"...
0.8016695
2
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): PFCt = YKHO.request.QUERY_PARAMS.get('fl', None) ufJO = YKHO.request.QUERY_PARAMS.get('win', None) TPqq = T8ck(orderstatus__in=['Shipped', 'Unshipped', 'Processing'], fulfillmentchannel='MFN') SR0I = None if PFCt is not None and PFCt.isdigit(): bo34.info('Got filter id: %s', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.59664434", "0.5964932", "0.5932522", "0.59106624", "0.5906326", "0.56628233", "0.5652694", "0.55447114", "0.554033", "0.5512286", "0.5504258", "0.5494387", "0.548664", "0.54821676", "0.5471788", "0.5470485", "0.5449447", "0.5415206", "0.5406221", "0.53797895", "0.53711593"...
0.0
-1
Creates the date from timestamp
def p0rV(E3oo): Igxa = I8kJ.dates.date2num(qcWV.fromtimestamp(E3oo)) return Igxa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cxh3(Emd4, E3oo):\n return _c1T()", "def YnO1(YKHO):\n bo34.debug('Get a timestamp')\n return ITS7.mktime(qcWV.today().timetuple())", "def ljfJ(E3oo):\n return qcWV.fromtimestamp(E3oo)", "def n4Du(E3oo, FMLJ='%Y-%m-%d'):\n return qcWV.fromtimestamp(E3oo).strftime(FMLJ)", "def dFAW(E3oo=N...
[ "0.8244945", "0.7645255", "0.7641031", "0.7470334", "0.71942896", "0.71869344", "0.7128895", "0.7087993", "0.70406747", "0.6940797", "0.691165", "0.67489123", "0.67464787", "0.6689873", "0.6641581", "0.6533665", "0.6532811", "0.65282696", "0.6512029", "0.64087105", "0.6406217...
0.8043789
1
Check changes induced Check if the given coordinates induce changement of state into the grid.
def V6v7(gyoH, Cs6h, RhGk=None, d3_m=None): SNGg, isCR = yWEV(gyoH, Cs6h) jGRS = False kPqr = [] for YRbF in range(len(SNGg)): try: if Cs6h[SNGg[YRbF]] == RhGk and Cs6h[isCR[YRbF]] == d3_m: kPqr.append(isCR[YRbF]) jGRS = True except KeyError: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cgIa(YKHO, P5uO):\n for rdlD in range(YKHO._grid_height):\n for fvDH in range(YKHO._grid_width):\n if YKHO.get_tile(rdlD, fvDH) != P5uO[rdlD][fvDH]:\n return True\n return False", "def x_1x(YKHO):\n for Mi_s in range(YKHO.number_cells_y):\n for X82w in range(Y...
[ "0.6674244", "0.6398143", "0.639027", "0.63412356", "0.630463", "0.630463", "0.630463", "0.6271029", "0.6261409", "0.6258394", "0.62574655", "0.6252726", "0.62230015", "0.6208698", "0.61585134", "0.61537504", "0.61457443", "0.6081691", "0.60575897", "0.6048838", "0.604813", ...
0.72975755
0
User Get the authenticated user's profile The user profile contains data related to the authenticated user including (but not limited to); Achievements Authentications (including types and timestamps) Challenges Flags (including armoire, tutorial, tour etc...) Guilds History (including timestamps and values) Inbox Invi...
def uwZP(YKHO, LWBI=None): if LWBI == None: bD7m = 'https://habitica.com/api/v3/user' return zk5M(bD7m, YKHO.credentials) else: bD7m = 'https://habitica.com/api/v3/user?userFields=' + LWBI return zk5M(bD7m, YKHO.credentials)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ipQk(YKHO):\n CBIr = wnQ_.get_current_user()\n if not CBIr:\n raise wnQ_.UnauthorizedException('Authorization required')\n uJjO = CBIr.email()\n w7sF = rtVo.Key(SYRW, uJjO)\n z39Z = w7sF.get()\n if not z39Z:\n z39Z = SYRW(key=w7sF, displayName=CBIr.nickname(), mainEmail=CBIr.ema...
[ "0.75967926", "0.7570412", "0.750899", "0.73847157", "0.71897686", "0.7097075", "0.7049962", "0.6997069", "0.69511384", "0.6907491", "0.6889673", "0.67918557", "0.67534745", "0.6707265", "0.66898364", "0.6664899", "0.6658067", "0.6651149", "0.66491234", "0.663755", "0.6627726...
0.0
-1
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name if x0eS != 'all': X_bn = ['january', 'february', 'march', 'april', 'may'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.7738649
53
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') jQ3Z = UlWi(j5sA, x0eS, CjKC) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month sve5 = jQ3Z['month'].mode()[0] print('Most Popular Start Month:', sve5) jQ3Z['Star...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80234134", "0.80223715", "0.7914983", "0.78252095", "0.7820841", "0.7812996", "0.77644646", "0.7739144", "0.7734762", "0.77328056", "0.7685236", "0.7667557", "0.76502746", "0.7643304", "0.76385033", "0.7635647", "0.7623848", "0.7622241", "0.7611794", "0.75985956", "0.75820...
0.7078936
85
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): jQ3Z = UlWi(j5sA, x0eS, CjKC) print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() OMIk = jQ3Z['Start Station'].mode()[0] print('Most popular start station', OMIk) oVHu = jQ3Z['End Station'].mode()[0] print('Most popular end station', oVHu) _E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198", "0.7337384...
0.7446617
5
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): jQ3Z = UlWi(j5sA, x0eS, CjKC) qZ1g = jQ3Z['Trip Duration'].sum() print('Total travel time: ', qZ1g) R7Ig = jQ3Z['Trip Duration'].mean() print('Average travel time: ', R7Ig) return kDMA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.7738467
59
Convert Datetime instance to Unix timestamp
def aB3_(fvDH): return rLdf.DatetimeIndex(fvDH).astype(oyIN.int64) / 1000000.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tAwz(Emd4, E3oo):\n if not isinstance(E3oo, qcWV.datetime):\n raise TypeError('Time.milliseconds expects a datetime object')\n return E3oo.timestamp()", "def _v3t(E3oo):\n _c1T = qcWV.strptime(E3oo, '%Y-%m-%d %H:%M:%S')\n return int(ITS7.mktime(_c1T.timetuple())) * 1000", "def ffVq(_c1T)...
[ "0.78930306", "0.76791304", "0.7671278", "0.7511419", "0.74802154", "0.7341475", "0.7335883", "0.7325489", "0.72515094", "0.72451687", "0.7234019", "0.7215728", "0.7195584", "0.70525545", "0.7006051", "0.6991268", "0.6981582", "0.6915108", "0.6905022", "0.68706393", "0.687015...
0.598531
93
Convert Twitter's datetime format into a Datetime instance
def w6ug(YCc8): return rLdf.datetime.strptime(YCc8, '%a %b %d %H:%M:%S %z %Y')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GClQ(toxe):\n if isinstance(toxe, str):\n toxe = qcWV.datetime.strptime(toxe, '%Y-%m-%dT%H:%M:%S')\n return toxe", "def QuQ6(lTlY):\n T0rB = ITS7.strptime(lTlY, '%Y-%m-%dT%H:%M:%S.%fZ')\n Ewmw = ITS7.strftime('%x', T0rB)\n TGrW = ZbWC.sub('(\\\\d\\\\d\\\\D\\\\d\\\\d\\\\D)20(\\\\d\\\\d)$...
[ "0.7253326", "0.6921931", "0.69097465", "0.6858569", "0.677372", "0.67647505", "0.67264235", "0.6717891", "0.6596842", "0.6456491", "0.6452504", "0.64496654", "0.6419113", "0.6416089", "0.6404157", "0.64036393", "0.63832146", "0.63804865", "0.6364216", "0.6352645", "0.6351611...
0.7148858
1
Returns name of self class
def sI6p(YKHO) -> str: return YKHO.__class__.__name__.lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.__class__.__name__", "def _2sc(YKHO) -> str:\n return YKHO.__class__.__name__", "def vrep(YKHO):\n return YKHO.__class__.__name__", "def pnQ7(YKHO):\n exwG = type(YKHO).__name__\n return exwG", "def mWFP(YKHO) -> str:\n return YKHO.__class__.__name__", "def...
[ "0.8852125", "0.8850131", "0.87839246", "0.87667465", "0.8728203", "0.8728203", "0.8679602", "0.8679602", "0.8679602", "0.8679602", "0.8679602", "0.86701566", "0.8598663", "0.8570712", "0.85512286", "0.8544286", "0.8541741", "0.8516065", "0.84566486", "0.8291503", "0.8174922"...
0.8810198
2
Init and create a new frame to contain the triangulation center Optional position for the center of the frame. Default (0,0) radius Optional distance from corners to the center.
def FIMM(YKHO, hgjH=(0, 0), r1VO=9999): hgjH = oyIN.asarray(hgjH) YKHO.coords = [hgjH + r1VO * oyIN.array((-1, -1)), hgjH + r1VO * oyIN.array((+1, -1)), hgjH + r1VO * oyIN.array((+1, +1)), hgjH + r1VO * oyIN.array((-1, +1))] YKHO.triangles = {} YKHO.circles = {} W8O1 = (0, 1, 3) Bjxj = (2, 3, 1)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, hgjH, r1VO, DWJ0=0.0, BbYE=None, cH3a=None):\n YKHO._center = hgjH\n YKHO._radius = r1VO\n YKHO._rotation = DWJ0\n YKHO._feature_center = BbYE\n YKHO._feature_boarder = cH3a\n YKHO._slot_bounds = []\n YKHO.set_rotation(DWJ0)", "def FIMM(YKHO, hgjH, r1VO):\n YKHO.center = hg...
[ "0.6676664", "0.63411975", "0.6179902", "0.57114846", "0.5534782", "0.55271107", "0.55176866", "0.55176866", "0.54962796", "0.54693043", "0.541076", "0.5317382", "0.5296985", "0.529408", "0.52887297", "0.5265165", "0.52315176", "0.5230105", "0.52295285", "0.5191467", "0.51831...
0.7467637
0
Insert new_item into directly after item_before New items added to a dictionary are appended.
def fFMC(HKwb, VnlH, kr8D, Qj8D): aXR9 = False for ZfUD in HKwb: if aXR9: BWXx = HKwb.pop(ZfUD) HKwb[ZfUD] = BWXx if ZfUD == VnlH: aXR9 = True HKwb[kr8D] = Qj8D if not aXR9: HKwb[kr8D] = Qj8D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mbEa(YKHO, H5ew: _KT, BWXx: _VT) -> None:\n dict.__setitem__(YKHO, H5ew, BWXx)", "def qIuc(YKHO, ZfUD: Any):\n YKHO.insert(0, ZfUD)", "def twT_(YKHO):\n YKHO.add_item(0)", "def JpYw(YKHO, ZfUD: dict):\n return YKHO.table_connection.put_item(Item=ZfUD)", "def SStx(YKHO, ZfUD):\n H5ew, BWX...
[ "0.642172", "0.6301951", "0.6253505", "0.62310386", "0.62070614", "0.6094782", "0.6083916", "0.605952", "0.5998011", "0.5982183", "0.59757614", "0.5935031", "0.5889781", "0.587933", "0.58791065", "0.5836179", "0.5835346", "0.582441", "0.5821649", "0.5794004", "0.578403", "0...
0.769625
0
Returns the value of the Maintainer field.
def ugOO(YKHO): return YKHO.paragraphs[0].get('Maintainer')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T4xQ(YKHO):\n return YKHO.paragraphs[0].get('XSBC-Original-Maintainer')", "def NaUw(YKHO, mWFP, D3lj):\n if YKHO.maintainers.has_key(mWFP):\n return YKHO.maintainers[mWFP]\n else:\n YKHO.maintainers[mWFP] = hjE6(mWFP, D3lj)\n return YKHO.maintainers[mWFP]", "def p0jc(YKHO):\n ...
[ "0.61551005", "0.59138644", "0.5685815", "0.5407607", "0.5329033", "0.5318602", "0.53003275", "0.52996933", "0.5192133", "0.5153571", "0.5153571", "0.5127826", "0.51009345", "0.509826", "0.5026537", "0.49984026", "0.49918282", "0.4986109", "0.49360093", "0.48912492", "0.48409...
0.69666094
0
Returns the value of the XSBCOriginalMaintainer field.
def T4xQ(YKHO): return YKHO.paragraphs[0].get('XSBC-Original-Maintainer')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ugOO(YKHO):\n return YKHO.paragraphs[0].get('Maintainer')", "def gXj9(YKHO, OgdR):\n if 'XSBC-Original-Maintainer' in YKHO.paragraphs[0]:\n YKHO.paragraphs[0]['XSBC-Original-Maintainer'] = OgdR\n else:\n fFMC(YKHO.paragraphs[0], 'Maintainer', 'XSBC-Original-Maintainer', OgdR)", "def ...
[ "0.62599087", "0.5707324", "0.5576531", "0.52927727", "0.51091826", "0.509906", "0.5018135", "0.49116808", "0.48210266", "0.46915063", "0.4677207", "0.46124312", "0.46090537", "0.46077567", "0.4606556", "0.45423928", "0.45042706", "0.4495458", "0.4481923", "0.4481923", "0.447...
0.7101076
0
Check extension for fastq or gzipped fastq. Raise ValueError if extension not recognized.
def mrov(Ux0P): gVAg = ['.fq', '.fastq'] XP5J, YBcr = Hy7s.path.splitext(Ux0P) wEf2 = False if YBcr.lower() in ['.gz']: HpuQ, Mt2a = Hy7s.path.splitext(XP5J) wEf2 = Mt2a.lower() in gVAg else: wEf2 = YBcr.lower() in gVAg if not wEf2: raise ValueError('Error: "' + U...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EAEZ(YKHO):\n if YKHO.extension in PSrQ.override_ext:\n mn3G = PSrQ.override_ext[YKHO.extension]\n else:\n mn3G, tZ2K = oiGi.guess_type(YKHO.src_path, strict=False)\n if mn3G in PSrQ.aliases:\n mn3G = PSrQ.aliases[mn3G]\n lpbe = YKHO.extension in oiGi.types_map.keys()\n...
[ "0.65123624", "0.64013535", "0.63146836", "0.6143918", "0.60532343", "0.5836518", "0.58257705", "0.5792562", "0.57849544", "0.57376045", "0.5706201", "0.56216365", "0.56049883", "0.55871713", "0.5584481", "0.5574781", "0.5458147", "0.54552484", "0.5451408", "0.54379416", "0.5...
0.7762297
0
Method that replaces a substring in a token for a given list of tokens.
def gJ7Y(NOFW, hpNA, m1Oc): return [eOtH.replace(hpNA, m1Oc) for eOtH in NOFW]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kfAW(YKHO):\n r8hN = RZBP.MultiReplace([('cat', 'kedi'), ('purple', 'mor'), ('q\\\\w+?t', 'dinglehopper')], regex=True)\n YKHO.assertEqual(r8hN.sub('The purple cat ate a quart of jelly'), 'The mor kedi ate a dinglehopper of jelly')", "def BUvb(o9EA, WIZu, McPc, SOYA, b0j5, C3ST, _jvk):\n Hiap = DTnk...
[ "0.67109144", "0.64023477", "0.63696796", "0.6349418", "0.6327286", "0.6323115", "0.6227536", "0.6203965", "0.61981875", "0.60321206", "0.599779", "0.5974216", "0.5923483", "0.58950657", "0.58660954", "0.58434665", "0.58434665", "0.5770836", "0.5740962", "0.57251304", "0.5711...
0.66048217
1
Remove stop words from list of tokenized words
def ZtIO(YKHO, V22M): g68O = [] for GIN8 in V22M: if GIN8 not in di0c.words('english'): g68O.append(GIN8) return g68O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g8pp(a1Ws, s2mk):\n return [a1PO for a1PO in s2mk if len(a1PO) > 2 and (not a1PO in a1Ws)]", "def aUcs(s2mk):\n hwHU = set(di0c.words('english'))\n s2mk = [yzQ0 for yzQ0 in s2mk if yzQ0 not in hwHU]\n return s2mk", "def g8pp(jKE7):\n hwHU = set(Dhdw.corpus.stopwords.words('english'))\n i6...
[ "0.86630034", "0.86183923", "0.85973936", "0.8596811", "0.8580546", "0.8363658", "0.8350171", "0.8328014", "0.8318595", "0.8263289", "0.82468146", "0.820217", "0.81783086", "0.81630206", "0.8158307", "0.8138284", "0.81271654", "0.8113883", "0.8099041", "0.8048383", "0.8027641...
0.79347324
31
Creates and saves a superuser with the given serial number, password.
def Zp54(YKHO, OIdI, jTXt): CBIr = YKHO.model(serial_number=OIdI, password=jTXt) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, kL9a, c9ua, zp3f, D3lj, JSoq, jTXt):\n CBIr = YKHO.create_user(kL9a, c9ua, zp3f, D3lj, JSoq, password=jTXt)\n CBIr.is_admin = True\n CBIr.save(using=YKHO._db)\n return CBIr", "def Zp54(YKHO, NtEF, IJ4N, jTXt):\n CBIr = YKHO.create_user(NtEF, IJ4N, password=jTXt)\n CBIr.is_admin =...
[ "0.7681351", "0.76124823", "0.76076746", "0.7554112", "0.74127674", "0.7409013", "0.737492", "0.73683006", "0.7329475", "0.731218", "0.7277733", "0.7271645", "0.72659516", "0.7265516", "0.7258986", "0.7253185", "0.72525126", "0.7247135", "0.7238454", "0.7221088", "0.721395", ...
0.80836827
0
Finalize all values that are the only choice for a unit. Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box.
def rIvV(hkxX): """ Your solution here """ Dbmo = hkxX.copy() for PXGI in dzni: for Ko6S in '123456789': S5Zo = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]] if len(S5Zo) == 1: Dbmo[S5Zo[0]] = Ko6S return Dbmo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIvV(hkxX):\n for PXGI in dzni:\n oaZA = list(PXGI)\n for FlUN in PXGI:\n oaZA.remove(FlUN)\n Bk8B = []\n for Fg_i in oaZA:\n Bk8B += hkxX[Fg_i]\n Bk8B = list(set(Bk8B))\n for BWXx in hkxX[FlUN]:\n if BWXx not...
[ "0.61504924", "0.57404405", "0.56119126", "0.5568942", "0.5530054", "0.5511549", "0.5460048", "0.5459475", "0.54525775", "0.5449666", "0.54192895", "0.54188764", "0.53864187", "0.5360861", "0.5312623", "0.5276798", "0.525857", "0.525857", "0.5258102", "0.5246358", "0.52420604...
0.51394284
30
Inventory manager is not allowed to create an organization
def qG1E(YKHO): YKHO.client.force_authenticate(user=YKHO.inventory_manager) nPrm = {'org_name': 'test_case'} geh0 = YKHO.client.post('/organization/', nPrm) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EI5X(YKHO):\n YKHO.client.force_authenticate(user=YKHO.system_admin)\n nPrm = {}\n geh0 = YKHO.client.post('/organization/', nPrm, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def qe4S(YKHO):\n pass", "def uRz0(YKHO):\n pass", "def dk94(CBIr):\n r...
[ "0.6778392", "0.67234755", "0.64599377", "0.6402805", "0.6393647", "0.635046", "0.6233645", "0.61878043", "0.61232233", "0.5983139", "0.5939455", "0.5922168", "0.59139717", "0.58883953", "0.588757", "0.5857369", "0.5826473", "0.58117867", "0.5802862", "0.57880884", "0.5758042...
0.7750922
0
User can't create organization if missing fields
def EI5X(YKHO): YKHO.client.force_authenticate(user=YKHO.system_admin) nPrm = {} geh0 = YKHO.client.post('/organization/', nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gbzg(YKHO):\n BGqR = YKHO.form_data(is_org=True)\n L03z = dS5Q(data=BGqR)\n YKHO.assertFalse(L03z.is_valid())\n BGqR['organization_name'] = 'Org org'\n L03z = dS5Q(data=BGqR)\n YKHO.assertFalse(L03z.is_valid())\n BGqR['organization_contact'] = 'Contact'\n L03z = dS5Q(data=BGqR)\n YKH...
[ "0.6847244", "0.684167", "0.68183357", "0.6477336", "0.6236655", "0.6222464", "0.6200225", "0.61997765", "0.6189554", "0.6150628", "0.61505085", "0.61335784", "0.61215967", "0.61207044", "0.61083925", "0.609354", "0.6074155", "0.60623264", "0.6027276", "0.6026062", "0.5998916...
0.72812766
0
Gets the height of the parse tree for a sentence.
def wZd7(_dZy): afYC = list(_dZy._.children) if not afYC: return 0 else: return max((wZd7(aUGN) for aUGN in afYC)) + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VPsK(s2mk):\n feZk = 0.0\n for yAmx in s2mk.sents:\n feZk += wZd7(yAmx)\n VR0H = len(list(s2mk.sents))\n feZk /= VR0H\n return (feZk, VR0H)", "def xglF(YKHO):\n\n def uMsz(Q6kx, H2v2=None):\n if not H2v2:\n H2v2 = YKHO._get_level(Q6kx) + 1\n if Q6kx.left:\n ...
[ "0.74386245", "0.705205", "0.6955899", "0.6947488", "0.6883093", "0.6832427", "0.6754443", "0.6688783", "0.66853946", "0.6631002", "0.6612964", "0.6593852", "0.6577851", "0.65697604", "0.6563841", "0.65334165", "0.65145767", "0.64313453", "0.64313453", "0.6428795", "0.6427672...
0.75695616
0
Turn the switch off.
async def async_turn_off(YKHO, **B2fa: Any) -> None: await YKHO.entity_description.turn_off_fn(YKHO.coordinator.diffuser) YKHO._attr_is_on = False YKHO.async_write_ha_state()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()", "def dNOs(YKHO):\n YKHO._switch_callback = None", "def Z_rv(YKHO):\n YKHO.handleCommand(1)\n YKHO._state = iKVK", "def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False", "def Z_rv(YKHO):\n print('Turning the light...
[ "0.870139", "0.867637", "0.85906535", "0.8523712", "0.84588856", "0.84180963", "0.8404447", "0.8398465", "0.8375364", "0.83491224", "0.83192796", "0.82949907", "0.8277566", "0.81680954", "0.8155346", "0.8112255", "0.8091075", "0.8072859", "0.8058921", "0.8058517", "0.8041678"...
0.0
-1
Iterates over the time period, producing tuples of time series
def DumB(YKHO): for i8WE in YKHO: yield (i8WE, YKHO[i8WE])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ygkg(i8WE, NOOg, pQlk, YPaw):\n for YRbF in reversed(range(len(i8WE) - pQlk, NOOg - 1, -YPaw)):\n WKvO = i8WE[YRbF - NOOg:YRbF]\n LVAh = i8WE[YRbF:YRbF + pQlk]\n yield (WKvO, LVAh)", "def ZFIJ(geh0):\n gA9e = geh0['timeSeriesDescriptor'].get('labelDescriptors', [])\n for Aofo in...
[ "0.6515352", "0.64006966", "0.6393214", "0.6360067", "0.62468415", "0.6239201", "0.6209532", "0.61959296", "0.6089191", "0.6052167", "0.6044509", "0.6021246", "0.6020649", "0.6006316", "0.5988076", "0.59748757", "0.5954953", "0.5924226", "0.591802", "0.58916175", "0.5843919",...
0.5288811
83
Sets the starting timestamp for the series. If the current starting timestamp is less than [ts], no effect.
def AVeu(YKHO, i8WE): SaH1 = YKHO.floor_time(i8WE) if YKHO.first_timestamp is None or SaH1 < YKHO.first_timestamp: YKHO.first_timestamp = SaH1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I_9r(YKHO, E3oo):\n YKHO.start_day = int(E3oo[8:10])\n ROt1 = int(E3oo[11:13])\n yVtz = int(E3oo[14:16])\n CsFy = int(E3oo[17:19])\n buJh = float(int(E3oo[21:])) / 1000000\n YKHO.start_time = float(ROt1 * 3600 + yVtz * 60 + CsFy) + buJh", "def Qz3G(YKHO, E3oo: int) -> None:\n YKHO.add_va...
[ "0.71726155", "0.68829364", "0.6790327", "0.6500168", "0.6423189", "0.64198804", "0.641927", "0.63886786", "0.63861066", "0.6351156", "0.6320445", "0.6319173", "0.6225742", "0.6181448", "0.6056101", "0.6056101", "0.5969934", "0.5969934", "0.5969934", "0.5969934", "0.5969934",...
0.83277404
0
Sets the ending timestamp for the series. If the current ending timestamp is greater than [ts], no effect.
def gO0s(YKHO, i8WE): SaH1 = YKHO.floor_time(i8WE) if YKHO.last_timestamp is None or SaH1 > YKHO.last_timestamp: YKHO.last_timestamp = SaH1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ldOB(YKHO, ldOB):\n YKHO._end_time_stamp = ldOB", "def Os4s(YKHO, Os4s):\n if Os4s is not None:\n if not isinstance(Os4s, qcWV):\n raise TypeError('Invalid type for `end`, type has to be `datetime`')\n YKHO._end = Os4s", "def v_ik(YKHO, W0Eb):\n YKHO._end = W0Eb", "def RHD_(...
[ "0.685227", "0.62342775", "0.61946666", "0.61403495", "0.6130133", "0.6126901", "0.6126901", "0.6122215", "0.6037033", "0.6037033", "0.6037033", "0.6017229", "0.59695864", "0.5881182", "0.5881182", "0.5881182", "0.5861162", "0.5849282", "0.5826532", "0.5782154", "0.57187223",...
0.8093839
0
Returns the addition of other to self.
def K7GD(YKHO, Elif): guMW = RELP(YKHO.val, YKHO.der) return guMW.__add__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, Elif):\n return YKHO.add(Elif)", "def K7GD(YKHO, Elif):\n return YKHO + Elif", "def K7GD(YKHO, Elif):\n return YKHO + Elif", "def CaoY(YKHO, Elif):\n return YKHO + Elif", "def FOdN(YKHO, Elif):\n return YKHO.add(Elif)", "def K7GD(YKHO, Elif):\n return YKHO.__add__(Elif)",...
[ "0.87494993", "0.8552048", "0.8552048", "0.8539222", "0.8523907", "0.84485304", "0.8430519", "0.8407301", "0.8396849", "0.8396849", "0.8396849", "0.8396849", "0.8396849", "0.8396849", "0.8396849", "0.834592", "0.8284097", "0.82768524", "0.82768524", "0.82576734", "0.8238056",...
0.73007697
100
Check self and other is not equal
def Vdqg(YKHO, Elif): return not YKHO.__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def wU_U(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return n...
[ "0.851477", "0.851477", "0.8507004", "0.8504522", "0.84687376", "0.84687376", "0.8450398", "0.8450398", "0.8450398", "0.842955", "0.8423754", "0.8423754", "0.8423754", "0.8423754", "0.8423754", "0.8423754", "0.8423754", "0.8423754", "0.8423754", "0.8423754", "0.8423754", "0...
0.0
-1