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
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
def RCTy(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'stream_analytics_job_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RCTy(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'stream_analytics_job_name')", "def RCTy(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'stream_analytics_job_name')", "def RCTy(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'stream_analytics_job_name')", "def RCTy(YKHO)...
[ "0.7733754", "0.7733754", "0.7551263", "0.7551263", "0.71658933", "0.7151797", "0.69873554", "0.6893192", "0.6776208", "0.66679746", "0.6652865", "0.66383743", "0.6546238", "0.6546033", "0.64992946", "0.64982903", "0.6480893", "0.6420102", "0.6420102", "0.63846177", "0.632431...
0.78190917
0
The name of the table in the Azure SQL database.
def tyNF(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'table')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GTA_(YKHO) -> str:\n return qe4Y.get(YKHO, 'table_name')", "def GTA_(YKHO):\n return YKHO._table_name", "def GTA_(YKHO):\n return YKHO._table_name", "def LKuW(YKHO):\n if YKHO._table_name:\n GTA_ = YKHO._table_name\n else:\n GTA_ = YKHO.name\n return GTA_", "def GTA_(YKH...
[ "0.83057624", "0.7975058", "0.7975058", "0.7931019", "0.79270893", "0.79270893", "0.7887977", "0.78363216", "0.78363216", "0.78363216", "0.78363216", "0.78363216", "0.78363216", "0.78363216", "0.78363216", "0.78115773", "0.78115773", "0.77916336", "0.7772232", "0.77054155", "...
0.0
-1
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resour...
[ "0.7452885", "0.7452885", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "...
0.7324907
75
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
def RCTy(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'stream_analytics_job_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RCTy(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'stream_analytics_job_name')", "def RCTy(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'stream_analytics_job_name')", "def RCTy(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'stream_analytics_job_name')", "def RCTy(YKHO) -> qe4Y.Out...
[ "0.7818128", "0.7818128", "0.7550139", "0.7550139", "0.71666807", "0.715149", "0.6987729", "0.6893169", "0.6776266", "0.66666585", "0.66518563", "0.66383386", "0.65462977", "0.6545856", "0.6498325", "0.6498056", "0.6479752", "0.6418255", "0.6418255", "0.6384628", "0.6324287",...
0.773253
2
The name of the table in the Azure SQL database.
def tyNF(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'table')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GTA_(YKHO) -> str:\n return qe4Y.get(YKHO, 'table_name')", "def GTA_(YKHO):\n return YKHO._table_name", "def GTA_(YKHO):\n return YKHO._table_name", "def LKuW(YKHO):\n if YKHO._table_name:\n GTA_ = YKHO._table_name\n else:\n GTA_ = YKHO.name\n return GTA_", "def GTA_(YKH...
[ "0.83059233", "0.79746556", "0.79746556", "0.7930582", "0.79264355", "0.79264355", "0.7886475", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78118426", "0.78118426", "0.77919227", "0.7771832", "0.7705545", ...
0.0
-1
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
def TRLE(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resour...
[ "0.7452885", "0.7452885", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "0.7443745", "...
0.0
-1
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
def RCTy(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'stream_analytics_job_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RCTy(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'stream_analytics_job_name')", "def RCTy(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'stream_analytics_job_name')", "def RCTy(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'stream_analytics_job_name')", "def RCTy(YKHO) -> h8n...
[ "0.7818128", "0.7818128", "0.773253", "0.773253", "0.71666807", "0.715149", "0.6987729", "0.6893169", "0.6776266", "0.66666585", "0.66518563", "0.66383386", "0.65462977", "0.6545856", "0.6498325", "0.6498056", "0.6479752", "0.6418255", "0.6418255", "0.6384628", "0.6324287", ...
0.7550139
4
The name of the table in the Azure SQL database.
def tyNF(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'table')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GTA_(YKHO) -> str:\n return qe4Y.get(YKHO, 'table_name')", "def GTA_(YKHO):\n return YKHO._table_name", "def GTA_(YKHO):\n return YKHO._table_name", "def LKuW(YKHO):\n if YKHO._table_name:\n GTA_ = YKHO._table_name\n else:\n GTA_ = YKHO.name\n return GTA_", "def GTA_(YKH...
[ "0.83059233", "0.79746556", "0.79746556", "0.7930582", "0.79264355", "0.79264355", "0.7886475", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78356576", "0.78118426", "0.78118426", "0.77919227", "0.7771832", "0.7705545", ...
0.0
-1
Return a deep copy of this configuration object.
def i3ak(YKHO): return _qLf(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO) -> 'Configuration':\n im04 = YKHO.__class__()\n im04.update(jth9(YKHO._storage))\n return im04", "def jth9(YKHO) -> 'Config':\n AJ7R = PSrQ()\n for H5ew, BWXx in YKHO.items():\n if isinstance(BWXx, PSrQ):\n BWXx = BWXx.copy()\n AJ7R[H5ew] = BWXx\n return ...
[ "0.84064907", "0.8333803", "0.82933766", "0.8249741", "0.80624473", "0.75748247", "0.7525842", "0.74411464", "0.74273133", "0.74225557", "0.7414791", "0.7385736", "0.73782146", "0.7312287", "0.7260583", "0.7255355", "0.72108793", "0.72108793", "0.72108793", "0.72108793", "0.7...
0.7056859
74
Fix fragments with zero length, enlarging them to have length ``duration``, reclaiming the difference from the next fragment(s), or moving the next fragment(s) forward. This function assumes the fragments to be adjacent.
def Lnkz(YKHO, WbTE=iHkw('0.001'), ZSml=None, bKPk=None, weTZ=True): YKHO.log(u'Called fix_zero_length_fragments') YKHO.log([u' Duration %.3f', WbTE]) ZSml, bKPk = YKHO._check_min_max_indices(ZSml, bKPk) if len(YKHO) < 1: YKHO.log(u'The list has no fragments: returning') return if n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def piiM(YKHO, u54L):\n YKHO.Execute('DELETE FROM %s WHERE end - start < %i' % (YKHO.name, u54L))", "def ZORf(YKHO):\n idKJ = epAf.floor(YKHO.total / YKHO.number_fragments)\n XNN0 = 0\n for vBtp in YKHO.fragments:\n vBtp.size = idKJ\n XNN0 += idKJ\n YRbF = 0\n yk4i = YKHO.total - ...
[ "0.55311257", "0.53930163", "0.5293283", "0.5244446", "0.52110994", "0.52016145", "0.52016145", "0.5045975", "0.4979813", "0.49580848", "0.49333748", "0.49060753", "0.48809898", "0.48717526", "0.48470026", "0.4799853", "0.47952512", "0.4790729", "0.4790729", "0.4790729", "0.4...
0.72393703
0
Sets document comment, Raises CardinalityError if comment already set.
def fVat(YKHO, A97Q, aM_I): if not YKHO.doc_comment_set: YKHO.doc_comment_set = True A97Q.comment = aM_I else: raise NIWX('Document::Comment')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aM_I(YKHO, aM_I):\n try:\n YKHO._comment = aM_I\n except Exception as e:\n raise tTpl", "def aM_I(YKHO, aM_I):\n try:\n YKHO._comment = aM_I\n except Exception as e:\n raise tTpl", "def aM_I(YKHO, aM_I):\n try:\n YKHO._comment = aM_I\n except Exception a...
[ "0.7485776", "0.74315417", "0.74315417", "0.7308117", "0.71261406", "0.71235037", "0.7112935", "0.7112935", "0.7112935", "0.7112935", "0.7112935", "0.7112935", "0.7112935", "0.7112935", "0.70164317", "0.69613314", "0.69433784", "0.68769646", "0.68001926", "0.6732609", "0.6618...
0.88858145
0
Test trying to update a FABS submission via the DABS route
def _jxv(YKHO): slB6 = {'existing_submission_id': YKHO.test_fabs_submission_id, 'is_quarter': True, 'reporting_period_start_date': '07/2015', 'reporting_period_end_date': '09/2015'} geh0 = YKHO.app.post('/v1/upload_dabs_files/', slB6, upload_files=[oTZ8, b9iR, ykFg], headers={'x-session-id': YKHO.session_id}, e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCEr(YKHO, x0hE):\n L03z = {'body': 'Testing post form'}\n geh0 = x0hE.post(nKyW('mypost.update'), data=L03z, follow_redirects=True)\n assert geh0.status_code == 200", "def WrBI(x0hE):\n finE = jhTz(questions={}, answers=[{'FOO': [1, 2, 3]}], topic='REPAIRS')\n bD7m = gxEw('submission-detail',...
[ "0.71167105", "0.6991708", "0.6963314", "0.69402635", "0.6795748", "0.6778656", "0.6739646", "0.6693776", "0.66588444", "0.65909314", "0.6589888", "0.6535698", "0.65211403", "0.6487706", "0.64814234", "0.6465846", "0.64452094", "0.6437017", "0.6436589", "0.6427747", "0.641890...
0.6889328
4
Test submission_data route response.
def daL9(YKHO): NArs = {'submission_id': YKHO.status_check_submission_id} with LUif().app_context(): y_hK(YKHO.status_check_submission_id) geh0 = YKHO.app.get('/v1/submission_data/', NArs, expect_errors=True, headers={'x-session-id': YKHO.session_id}) YKHO.assertEqual(geh0.status_code, 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTzw(YKHO):\n geh0 = YKHO.call_file_submission()\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(geh0.headers.get('Content-Type'), 'application/json')\n YKHO.assertIn('submission_id', geh0.json)", "def qrWq(YKHO):\n pass", "def VA7R(YKHO):\n YKHO.client.force_authenticate()\n...
[ "0.6724001", "0.65315986", "0.65053606", "0.6432704", "0.64035994", "0.6382635", "0.6321108", "0.6268277", "0.6232403", "0.6092044", "0.60831654", "0.60698324", "0.60533404", "0.6050271", "0.60209197", "0.60092145", "0.60036546", "0.5993423", "0.5985583", "0.59635407", "0.596...
0.67676544
0
Tests the publish_dabs_submission endpoint
def K6PL(YKHO): JV8H = {'submission_id': YKHO.test_published_submission_id} geh0 = YKHO.app.post_json('/v1/publish_dabs_submission/', JV8H, headers={'x-session-id': YKHO.session_id}, expect_errors=True) YKHO.assertEqual(geh0.json['message'], 'Quarterly submissions cannot be published separate from certifica...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tHNM(YKHO):\n JrTM = {'cgac_code': 'NOT', 'frec_code': None, 'is_quarter': True, 'test_submission': True, 'reporting_period_start_date': '10/2015', 'reporting_period_end_date': '12/2015'}\n geh0 = YKHO.app.post('/v1/upload_dabs_files/', JrTM, upload_files=[oTZ8, b9iR, ykFg], headers={'x-session-id': YKHO...
[ "0.7234087", "0.69106776", "0.6737572", "0.6546595", "0.65298826", "0.6518884", "0.6414041", "0.64109206", "0.6392226", "0.6372045", "0.63624775", "0.63471836", "0.63436514", "0.6339539", "0.62890154", "0.62860423", "0.6284393", "0.627956", "0.62508833", "0.6249072", "0.62456...
0.84910864
0
Tests the certify_dabs_submission endpoint
def KpfA(YKHO): JV8H = {'submission_id': YKHO.test_published_submission_id} geh0 = YKHO.app.post_json('/v1/certify_dabs_submission/', JV8H, headers={'x-session-id': YKHO.session_id}, expect_errors=True) YKHO.assertEqual(geh0.json['message'], 'Quarterly submissions cannot be certified separate from publicati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K6PL(YKHO):\n JV8H = {'submission_id': YKHO.test_published_submission_id}\n geh0 = YKHO.app.post_json('/v1/publish_dabs_submission/', JV8H, headers={'x-session-id': YKHO.session_id}, expect_errors=True)\n YKHO.assertEqual(geh0.json['message'], 'Quarterly submissions cannot be published separate from c...
[ "0.72295433", "0.66648006", "0.6273177", "0.61481076", "0.600992", "0.59771353", "0.59178287", "0.58723503", "0.5869981", "0.57832897", "0.57568985", "0.57386136", "0.57341814", "0.56920016", "0.56579196", "0.5627854", "0.56175184", "0.55640256", "0.55291885", "0.5511401", "0...
0.8160701
0
Test that missing submission_ids cause an error
def AaUd(YKHO): NArs = {'warning': False, 'file_type': 'executive_compensation'} geh0 = YKHO.app.get('/v1/report_url', NArs, headers={'x-session-id': YKHO.session_id}, expect_errors=True) YKHO.assertEqual(geh0.status_code, 400) YKHO.assertEqual(geh0.json['message'], 'submission_id is required')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xGna(p9bx):\n cb_Q = p9bx.session\n finE = jhTz()\n cb_Q.add(finE)\n cb_Q.commit()\n with trZe.raises(_Nxk):\n GukX(finE.submission_id, 'A')", "def jtUQ():\n with trZe.raises(sUXu) as aTqo:\n dmXo().validate({})\n assert aTqo.value.args[0] == \"You must provide one of eithe...
[ "0.68610936", "0.68389875", "0.668361", "0.667873", "0.64415336", "0.6435669", "0.64345795", "0.6406096", "0.63552475", "0.62643147", "0.6197133", "0.617843", "0.61687315", "0.6168092", "0.61566365", "0.61433613", "0.61197466", "0.6106314", "0.60752386", "0.6075212", "0.60595...
0.67324096
2
Calculate the mean value in an iterable of numbers.
def JBMS(OxJJ): wjRY = 0 u54L = 0 for BWXx in OxJJ: wjRY += BWXx u54L += 1 if u54L == 0: return 0 return wjRY / u54L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SfSc(T6S7):\n if not isinstance(T6S7, ftIh.Iterable):\n return T6S7\n UHFx = 0\n JBMS = 0\n for wEf2 in T6S7:\n UHFx += 1\n JBMS += (wEf2 - JBMS) / UHFx\n return JBMS if UHFx > 0 else float('nan')", "def JBMS(mSrU):\n return float(sum(mSrU)) / float(len(mSrU))", "def ...
[ "0.808938", "0.7983513", "0.7915723", "0.7915723", "0.7898365", "0.78854275", "0.78517056", "0.7851179", "0.7849765", "0.7803532", "0.77995634", "0.77944124", "0.77479106", "0.7747245", "0.7744496", "0.77029675", "0.7676619", "0.7676619", "0.76696575", "0.76691645", "0.76547"...
0.787829
6
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(fUql, YKHO).__init__(*qIxc, **c_sp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8167083", "0.77215755", "0.77215755", "0.7653595", "0.75735843", "0.7545572", "0.7486064", "0.7471559", "0.7458821", "0.7447602", "0.7445605", "0.74345315", "0.7415721", "0.7408866", "0.739248", "0.7376029", "0.7364116", "0.73265284", "0.73246866", "0.73246866", "0.7324686...
0.0
-1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(u7R7, YKHO).__init__(*qIxc, **c_sp) if YKHO.com_type is None: YKHO.com_type = [] if YKHO.com_name is None: YKHO.com_name = [] if YKHO.param is None: YKHO.param = [] if YKHO.ok is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.81649005", "0.771898", "0.771898", "0.76516944", "0.75722796", "0.7542747", "0.7484134", "0.74689674", "0.7456638", "0.7445107", "0.74442166", "0.7432269", "0.7414798", "0.7407436", "0.7390192", "0.73736787", "0.7362033", "0.73248017", "0.7322382", "0.7322382", "0.7322382"...
0.0
-1
Eliminate all the other values (except d) from values[s] and propagate. Return values, except return False if a contradiction is detected.
def bD1G(hkxX, KCHu, Csk6): Zlmx = hkxX[KCHu].replace(Csk6, '') if all((kSdD(hkxX, KCHu, _sQW) for _sQW in Zlmx)): return hkxX else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJeh(YKHO, hkxX, KCHu, Csk6):\n if Csk6 not in hkxX[KCHu]:\n return hkxX\n hkxX[KCHu] = hkxX[KCHu].replace(Csk6, '')\n if len(hkxX[KCHu]) == 0:\n return False\n elif len(hkxX[KCHu]) == 1:\n _sQW = hkxX[KCHu]\n if not all((YKHO.eliminate(hkxX, Nqp_, _sQW) for Nqp_ in YKHO...
[ "0.70317787", "0.7010059", "0.69152725", "0.68623763", "0.68160135", "0.68002176", "0.630955", "0.620684", "0.61583734", "0.6129865", "0.6006443", "0.5941839", "0.59390986", "0.5935979", "0.58846277", "0.5806185", "0.5795936", "0.57019633", "0.56704956", "0.5670141", "0.56674...
0.60842544
10
Returns the total number of bytes received since last reset. an integer corresponding to the total number of bytes received since last reset On failure, throws an exception or returns YI2cPort.RXCOUNT_INVALID.
def JC0j(YKHO): if YKHO._cacheExpiration <= NA0M.GetTickCount(): if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS: return LgMi.RXCOUNT_INVALID Ylbp = YKHO._rxCount return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qnb8(YKHO):\n if YKHO._cacheExpiration <= NA0M.GetTickCount():\n if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS:\n return LgMi.RXMSGCOUNT_INVALID\n Ylbp = YKHO._rxMsgCount\n return Ylbp", "def aFay(YKHO):\n if YKHO._cacheExpiration <= NA0M.GetTickCount():\n ...
[ "0.8068453", "0.70732826", "0.6999919", "0.6778504", "0.67340314", "0.6696439", "0.6416326", "0.6399457", "0.63214314", "0.62338567", "0.6057266", "0.60369915", "0.5965649", "0.5965649", "0.58752483", "0.586122", "0.5857706", "0.58576447", "0.58563596", "0.5801256", "0.575912...
0.82531554
0
Returns the total number of communication errors detected since last reset. an integer corresponding to the total number of communication errors detected since last reset On failure, throws an exception or returns YI2cPort.ERRCOUNT_INVALID.
def AGxm(YKHO): if YKHO._cacheExpiration <= NA0M.GetTickCount(): if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS: return LgMi.ERRCOUNT_INVALID Ylbp = YKHO._errCount return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c8PR(YKHO) -> int:\n return YKHO.error_count", "def qnb8(YKHO):\n if YKHO._cacheExpiration <= NA0M.GetTickCount():\n if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS:\n return LgMi.RXMSGCOUNT_INVALID\n Ylbp = YKHO._rxMsgCount\n return Ylbp", "def JC0j(YKHO):\...
[ "0.7021344", "0.6965863", "0.69109565", "0.68222034", "0.65555274", "0.65057796", "0.64710134", "0.645845", "0.64130527", "0.6408441", "0.64072114", "0.6327285", "0.62883544", "0.6287897", "0.62664074", "0.6259357", "0.62511575", "0.62353796", "0.62349117", "0.6197336", "0.61...
0.8291553
0
Returns the maximum number of tasks in a job that the device can handle. an integer corresponding to the maximum number of tasks in a job that the device can handle On failure, throws an exception or returns YI2cPort.JOBMAXTASK_INVALID.
def gMpO(YKHO): if YKHO._cacheExpiration == qcWV.datetime.fromtimestamp(86400): if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS: return LgMi.JOBMAXTASK_INVALID Ylbp = YKHO._jobMaxTask return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lr9I(YKHO):\n if YKHO._cacheExpiration == qcWV.datetime.fromtimestamp(86400):\n if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS:\n return LgMi.JOBMAXSIZE_INVALID\n Ylbp = YKHO._jobMaxSize\n return Ylbp", "def bjrR(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(Y...
[ "0.7381866", "0.7211985", "0.7047669", "0.69809324", "0.69728315", "0.6756594", "0.6747043", "0.668915", "0.66558444", "0.65768814", "0.6566253", "0.65661025", "0.65661025", "0.65661025", "0.6523226", "0.6503909", "0.6497604", "0.6497604", "0.6473817", "0.64711535", "0.647115...
0.7892003
0
Returns the type of protocol used to send I2C messages, as a string. Possible values are "Line" for messages separated by LF or "Char" for continuous stream of codes. a string corresponding to the type of protocol used to send I2C messages, as a string On failure, throws an exception or returns YI2cPort.PROTOCOL_INVALI...
def F9yi(YKHO): if YKHO._cacheExpiration <= NA0M.GetTickCount(): if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS: return LgMi.PROTOCOL_INVALID Ylbp = YKHO._protocol return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q8zs(YKHO) -> int:\n return YKHO._protocol_type", "def q8zs(YKHO) -> int:\n return YKHO._protocol_type", "def iquo(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'protocol')", "def iquo(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'protocol')", "def iquo(YKHO) -> qe4Y.Output[h8nf[...
[ "0.6623491", "0.6554952", "0.64113104", "0.64113104", "0.6343346", "0.63062346", "0.6244401", "0.6153149", "0.6150074", "0.6076741", "0.6073153", "0.60395855", "0.6038648", "0.6032096", "0.5959851", "0.5959851", "0.5959851", "0.5959851", "0.5959851", "0.5959851", "0.59457874"...
0.6888813
0
Returns the voltage level used on the I2C bus. a value among YI2cPort.I2CVOLTAGELEVEL_OFF, YI2cPort.I2CVOLTAGELEVEL_3V3 and YI2cPort.I2CVOLTAGELEVEL_1V8 corresponding to the voltage level used on the I2C bus On failure, throws an exception or returns YI2cPort.I2CVOLTAGELEVEL_INVALID.
def WyE0(YKHO): if YKHO._cacheExpiration <= NA0M.GetTickCount(): if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS: return LgMi.I2CVOLTAGELEVEL_INVALID Ylbp = YKHO._i2cVoltageLevel return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZNcq(YKHO, ZIC1):\n C236 = str(ZIC1)\n return YKHO._setAttr('i2cVoltageLevel', C236)", "def jJnF(YKHO):\n geh0 = YKHO.check_command('volt2?')\n if not geh0 is 'CMD_NOT_DEFINED':\n return float(geh0) * sqRO.V", "def Bh8j(YKHO):\n try:\n Pjr8 = g4Za.SMBus(1)\n UTX6 = 72\n ...
[ "0.7004313", "0.67896444", "0.6582632", "0.63940465", "0.6327784", "0.6297929", "0.62972134", "0.6271755", "0.6265249", "0.6216314", "0.6173766", "0.6163825", "0.61553144", "0.61497974", "0.60707676", "0.60567766", "0.6031643", "0.6024185", "0.60169744", "0.60168076", "0.6012...
0.88013613
0
Helper method to find the qualified name of `mod` in the Module hierarchy of `root`. For example, if `root` has a submodule named `foo`, which has a submodule named `bar`, passing `bar` into this function will return the string "foo.bar".
def CJCw(YKHO, VlDb: nn.Module) -> str: if hasattr(YKHO, 'submodule_paths') and YKHO.submodule_paths: pmON = YKHO.submodule_paths.get(VlDb) if pmON is None: pmON = YKHO._insert_module_as_submodule(VlDb) if pmON is None: raise NameError(f'Module named {VlDb._get_name()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QaFr(yR_P, mSqg=None) -> str:\n if mSqg is None:\n mSqg = SGzk(yR_P)\n s10j, bGrB = Hy7s.path.splitext(Hy7s.path.abspath(yR_P.__file__))\n aWAG = s10j[len(mSqg):].strip('/').replace('/', '.')\n return aWAG", "def vFhR(ZUSD=__name__):\n if ZUSD.find(' ') != -1:\n raise ValueError(...
[ "0.70857084", "0.6996526", "0.67181426", "0.6615386", "0.65914476", "0.6586572", "0.6555046", "0.6522245", "0.64651513", "0.643788", "0.643788", "0.643788", "0.643788", "0.643788", "0.6428843", "0.63873196", "0.63835514", "0.6371412", "0.6371412", "0.6342101", "0.6342101", ...
0.6563132
6
create and return a logger
def fZx2(YKHO, **mQ1D): ojRq = mQ1D.get('logfile') bo34 = mQ1D.get('logger') ABDL = mQ1D.get('level') or G9jH.DEBUG DCgT = G9jH.FileHandler(ojRq) DCgT.setFormatter(G9jH.Formatter(fmt='%(asctime)s - %(name)s - %(levelname)s - %(message)s')) RKD7 = G9jH.getLogger(bo34) RKD7.addHandler(DCgT) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MWLp(YKHO) -> G9jH.Logger:\n return G9jH.getLogger()", "def eLpg():\n return Few0()", "def lmAE() -> G9jH.Logger:\n pass", "def lmAE():\n zeTD = eh9D()\n oPxp = '%s.log' % zeTD\n St8E = G9jH.Client()\n bo34 = St8E.logger(oPxp)\n return bo34", "def lmAE():\n zeTD = eh9D()\n ...
[ "0.86013883", "0.8541152", "0.85089964", "0.82196295", "0.82196295", "0.81529546", "0.8091966", "0.7993615", "0.7915345", "0.78968525", "0.7850514", "0.7848791", "0.78236806", "0.77313167", "0.7707237", "0.7700528", "0.7687045", "0.76548743", "0.76425254", "0.7641099", "0.762...
0.7619545
21
Return this object as a dict.
def g75F(YKHO, DNHh=[], QdZT=False): I0U6 = YKHO._update_required if QdZT is True else YKHO._insert_required I0U6 = [jzdc for jzdc in I0U6 if jzdc not in DNHh] return {hkS8: str(getattr(YKHO, hkS8)) for hkS8 in I0U6}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hati(YKHO):\n return dict(YKHO)", "def _fYl(YKHO):\n return dict(YKHO)", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def lKKu(YKHO):\n return lKKu(YKHO)", "def MNRr(YKHO):\n return dict(YKHO)", "def _fYl(YKHO):\n return YKHO.__dict__", "def _fYl(YKHO):\n return YKHO.__dict...
[ "0.89061165", "0.88715136", "0.8765446", "0.87328625", "0.8729815", "0.8706149", "0.8706149", "0.8706149", "0.86552805", "0.85893416", "0.85843134", "0.85832435", "0.85832435", "0.85832435", "0.85832435", "0.85832435", "0.85832435", "0.85832435", "0.85832435", "0.85832435", "...
0.0
-1
Return this object JSON encoded.
def qQXR(YKHO, QdZT=False): return qQXR.dumps(YKHO.export(update=QdZT), indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n ...
[ "0.86981225", "0.86981225", "0.86981225", "0.86981225", "0.86981225", "0.86981225", "0.86014175", "0.8549502", "0.8524753", "0.8510244", "0.8506595", "0.84735787", "0.8451988", "0.84507334", "0.8432555", "0.8427184", "0.8417122", "0.8415619", "0.8395995", "0.8389531", "0.8362...
0.0
-1
Return sha256 hash of this user's email address
def TlXh(YKHO): return hqsM(YKHO.email).hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uk0M(YKHO):\n r8hN = HBct.md5()\n r8hN.update(YKHO.email)\n return r8hN.hexdigest()", "def OohH(D3lj: str) -> str:\n D3lj = D3lj.strip().lower()\n vkAf = HBct.md5()\n vkAf.update(D3lj.encode())\n JkWS = vkAf.hexdigest()\n return JkWS", "def Ilxn(YKHO):\n return wIYk(YKHO.password...
[ "0.79423124", "0.7371979", "0.7342574", "0.7064964", "0.6954499", "0.6954499", "0.67366165", "0.6729077", "0.6706291", "0.6684392", "0.6666658", "0.6649382", "0.66427135", "0.6595222", "0.6542705", "0.65120804", "0.6509628", "0.6469377", "0.6469377", "0.64651084", "0.64651084...
0.86663693
0
Create a new Planet object from a changeset (See Serializable.create_from_changeset).
def V_KP(ii0O, CppO=None, DqVa=None, HW4n=None): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9Kr(nPrm):\n AQrS = bcd8(nPrm['url'], nPrm['name'], nPrm['region'], nPrm['sector'], nPrm['suns'], nPrm['moons'], nPrm['orbital_period_days'], nPrm['diameter_km'], nPrm['gravity'], nPrm['climate'], nPrm['terrain'], nPrm['population'])\n return AQrS", "def jG8h(Emd4, qHj0) -> 'Plan':\n return Evid(qH...
[ "0.60152346", "0.5731298", "0.552673", "0.54849815", "0.5480444", "0.54119927", "0.5361661", "0.5347463", "0.5280603", "0.5201647", "0.5102998", "0.5042336", "0.49507737", "0.4912817", "0.4909379", "0.48804215", "0.48732236", "0.4841685", "0.4805202", "0.4787312", "0.47553384...
0.5327425
9
Create a new Planet object from a changeset (See Serializable.create_from_changeset).
def V_KP(ii0O, CppO=None, DqVa=None, HW4n=None): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9Kr(nPrm):\n AQrS = bcd8(nPrm['url'], nPrm['name'], nPrm['region'], nPrm['sector'], nPrm['suns'], nPrm['moons'], nPrm['orbital_period_days'], nPrm['diameter_km'], nPrm['gravity'], nPrm['climate'], nPrm['terrain'], nPrm['population'])\n return AQrS", "def jG8h(Emd4, qHj0) -> 'Plan':\n return Evid(qH...
[ "0.6013867", "0.5732194", "0.5524853", "0.54831934", "0.54788804", "0.5412627", "0.53622836", "0.53461194", "0.52818686", "0.5199245", "0.51037943", "0.5042893", "0.49502152", "0.49100688", "0.4908411", "0.48820308", "0.48722878", "0.48414952", "0.48052722", "0.47851178", "0....
0.5327973
10
Create a new Planet object from a changeset (See Serializable.create_from_changeset).
def V_KP(ii0O, CppO=None, DqVa=None, HW4n=None): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9Kr(nPrm):\n AQrS = bcd8(nPrm['url'], nPrm['name'], nPrm['region'], nPrm['sector'], nPrm['suns'], nPrm['moons'], nPrm['orbital_period_days'], nPrm['diameter_km'], nPrm['gravity'], nPrm['climate'], nPrm['terrain'], nPrm['population'])\n return AQrS", "def jG8h(Emd4, qHj0) -> 'Plan':\n return Evid(qH...
[ "0.60152346", "0.5731298", "0.552673", "0.54849815", "0.5480444", "0.54119927", "0.5361661", "0.5347463", "0.5280603", "0.5201647", "0.5102998", "0.5042336", "0.49507737", "0.4912817", "0.4909379", "0.48804215", "0.48732236", "0.4841685", "0.4805202", "0.4787312", "0.47553384...
0.5327425
8
Return True if this Group authorizes `action` for `author_id`
def B9G4(YKHO, XeOP, inK4=None): if QHw2.authorize(YKHO, XeOP, author_id=inK4): return YKHO.author_id == inK4 return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B9G4(YKHO, XeOP, inK4=None):\n if QHw2.authorize(YKHO, XeOP, author_id=inK4):\n return inK4 == YKHO.author.id\n return False", "def B9G4(YKHO, XeOP, inK4=None):\n if QHw2.authorize(YKHO, XeOP, author_id=inK4):\n return YKHO.id == inK4\n return False", "def B9G4(YKHO, XeOP, inK4=No...
[ "0.8372738", "0.8293608", "0.79263496", "0.7762734", "0.7500925", "0.6644237", "0.6633529", "0.65126413", "0.6373444", "0.6373444", "0.62738544", "0.62738544", "0.61651707", "0.61462134", "0.6117992", "0.6048531", "0.6048531", "0.60357296", "0.60214955", "0.59849036", "0.5932...
0.8358629
1
Return publishing state of this Group. (temporarily uses planet states)
def ja6o(YKHO): return sMzn[YKHO.state][0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xBxz(YKHO):\n return YKHO.__published", "def xBxz(YKHO):\n return YKHO._published", "def xBxz(YKHO):\n return YKHO._published", "def xBxz(YKHO):\n return YKHO.filter(status=ivVe.states.published.name)", "def xBxz(YKHO):\n return YKHO.filter(publish=True)", "def VAso(YKHO):\n YKHO.Co...
[ "0.7170114", "0.7066055", "0.70415527", "0.6525399", "0.64763105", "0.6402766", "0.6359018", "0.6357791", "0.6335365", "0.6313379", "0.629143", "0.6288315", "0.6266252", "0.6194576", "0.6182979", "0.611483", "0.61084694", "0.61084694", "0.610646", "0.610646", "0.6045037", "...
0.0
-1
Return the current OS platform.
def Z5O9(): zwoj = a9EH.linux_distribution() IOdl = zwoj[0] if 'Ubuntu' in IOdl: return 'ubuntu' elif 'CentOS' in IOdl: return 'centos' elif 'debian' in IOdl: return 'ubuntu' else: raise RuntimeError('This module is not supported on {}.'.format(IOdl))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5O9():\n return a9EH.system()", "def Z5O9():\n import platform\n if platform.system() == 'Windows':\n return platform.system()\n elif platform.system() == 'Linux':\n return platform.system()\n else:\n return 'OSX'", "def Z5O9():\n import platform\n if platform.sys...
[ "0.89992386", "0.8984643", "0.8966992", "0.8927543", "0.8748827", "0.8698311", "0.866658", "0.8626193", "0.8607673", "0.85964173", "0.8587929", "0.85866165", "0.8547731", "0.85288584", "0.8517068", "0.8483215", "0.84658694", "0.84639317", "0.8451998", "0.8431239", "0.8414649"...
0.80779827
39
Number of links in the group.
def szAg(YKHO): return len(YKHO._links)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PLeL(YKHO):\n return sum(JaxB(lambda QZnA: 1, YKHO.iterRegularLinks()))", "def Geqo(YKHO):\n return YKHO._numLinks", "def YDYo(YKHO):\n return YKHO.__links_count", "def EdwX(YKHO) -> int:\n return YKHO._data_store.num_entries('forte.data.ontology.top.Link')", "def YJnw(YKHO):\n return YK...
[ "0.83662283", "0.8299828", "0.8123859", "0.8029721", "0.8004944", "0.771897", "0.7510642", "0.7391371", "0.73496234", "0.7258568", "0.7238669", "0.7222992", "0.71594334", "0.7087632", "0.70510656", "0.704389", "0.7036515", "0.69713813", "0.69108737", "0.68942076", "0.6841237"...
0.72321635
11
Return the size of the first axis.
def len(YKHO): return YKHO.shape[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n return YKHO.shape[0]", "def Yjog(YKHO) -> int:\n return YKHO._shape[-1]", "def szAg(YKHO):\n return YKHO._x.shape[0]", "def szAg(YKHO):\n return YKHO.x.shape[0]", "def szAg(YKHO):\n return YKHO._shape[0]", "def zNig(YKHO):\n zNig = 1\n for lWrn in YKHO.shape:\n ...
[ "0.7780069", "0.76146525", "0.75122064", "0.7508576", "0.745606", "0.7455928", "0.74394184", "0.74111277", "0.73886645", "0.73886645", "0.73733425", "0.73733425", "0.7339824", "0.7330953", "0.7325755", "0.7285588", "0.727475", "0.72620815", "0.7259961", "0.7206053", "0.718601...
0.74292207
7
Returns a list of the available ciphers for servers.
def Vr0D(): lySE = ['ECDHE-RSA-AES256-GCM-SHA384', 'ECDHE-RSA-AES128-GCM-SHA256', 'ECDHE-RSA-CHACHA20-POLY1305', 'ECDHE-RSA-AES256-SHA384', 'ECDHE-RSA-AES128-SHA256', 'DHE-RSA-AES256-GCM-SHA384', 'DHE-RSA-AES128-GCM-SHA256', 'DHE-RSA-AES256-SHA256', 'DHE-RSA-AES128-SHA256', 'TLS_AES_256_GCM_SHA384', 'TLS_CHACHA20_P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lySE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'ciphers')", "def lySE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ciphers')", "def lySE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ciphers')", "def pswd(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, ...
[ "0.8064209", "0.7727225", "0.7727225", "0.6890758", "0.6890758", "0.6573998", "0.64591926", "0.64020026", "0.6347138", "0.63286746", "0.60893756", "0.6057813", "0.60310405", "0.5985797", "0.595818", "0.5944112", "0.587654", "0.5793551", "0.57777786", "0.5719844", "0.5691207",...
0.82818365
0
Sets the removal_date of this AddressDefinition.
def e1I8(YKHO, e1I8): YKHO._removal_date = e1I8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dTlU(YKHO, dTlU):\n YKHO._deletion_date = dTlU", "def rzhY(YKHO, e1I8):\n del YKHO.price_data[e1I8]", "def Q1Bz(YKHO, Q1Bz):\n YKHO._deleted_date = Q1Bz", "def VPZM(YKHO, VPZM):\n YKHO._disappearance_date = VPZM", "def lhpc(YKHO, BWXx):\n if BWXx is not None and (not isinstance(BWXx, qcW...
[ "0.7008269", "0.6258127", "0.6080411", "0.5739143", "0.567629", "0.555448", "0.5445669", "0.5418406", "0.53871185", "0.5367492", "0.5347643", "0.5336006", "0.53278244", "0.5322901", "0.5287588", "0.52505815", "0.5241563", "0.5236994", "0.5229551", "0.52037203", "0.52037203", ...
0.81646585
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, doTF): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83920443", "0.83544874", "0.8294375", "0.8131804", "0.8114275", "0.8099284", "0.8098424", "0.8097017", "0.8097017", "0.80916125", "0.80916125", "0.80916125", "0.80916125", "0.8084362", "0.8084362", "0.8084362", "0.8084362", "0.8084362", "0.80659354", "0.805918", "0.8056744...
0.0
-1
Sets the new value and clears the values of any dependencies. We maintain the invariant that cached values are never wrong relative to their parents' values.
def dY2A(YKHO): if YKHO._value is not None: [aUGN._clear_value_cache() for aUGN in YKHO._children.values()] YKHO._clear_grad_cache() YKHO._value = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qeFR(YKHO):\n for _AKB, e5WF, hDyy in reversed(YKHO.cache):\n setattr(_AKB, hDyy, e5WF)\n YKHO.cache = []", "def rVtO(YKHO):\n YKHO.__value = YKHO._fetch_value()", "def rTu4(YKHO, Qj8D):\n if not YKHO.is_leaf_node():\n raise ValueError('Can only update values of leaf nodes')\n ...
[ "0.6352898", "0.6347688", "0.6157423", "0.61508924", "0.609183", "0.60600847", "0.60413575", "0.59665257", "0.59039074", "0.5894082", "0.5891007", "0.58906263", "0.58647513", "0.58480316", "0.5812124", "0.57959634", "0.5741622", "0.5741385", "0.5739828", "0.57334316", "0.5710...
0.71814513
0
A function to string format a datetime.datetime object.
def DAsM(eGVy, JPmX='%Y-%m-%d'): return eGVy.strftime(JPmX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zb98(JRYC):\n return V8MO.format(Gfg6(JRYC), 'r')", "def Zb98(JRYC, format='%Y-%m-%d %H:%M'):\n return JRYC.strftime(format)", "def BjmT(eGVy, format='%Y-%m-%dT%H:%M:%S'):\n if eGVy is not None:\n return qcWV.date.strftime(eGVy, format)", "def Zb98(JRYC):\n return JRYC.strftime(dDFw)",...
[ "0.804734", "0.7906424", "0.7874882", "0.78568953", "0.7855402", "0.7843426", "0.77790093", "0.77562845", "0.77529866", "0.7733188", "0.7621666", "0.76089466", "0.7572435", "0.7499124", "0.74928063", "0.7475262", "0.7472672", "0.7457801", "0.7439501", "0.7433361", "0.74273777...
0.8022902
1
Create a datetime object from a string with default ISO 8601 format.
def R2Sr(mbyn, x8us='%Y-%m-%d'): return qcWV.datetime.strptime(mbyn, x8us).date()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gcC6(BWXx: str) -> qcWV:\n return qcWV.strptime(BWXx, '%Y-%m-%dT%H:%M:%S.%fZ')", "def gcC6(BWXx: str) -> qcWV:\n return qcWV.strptime(BWXx, '%Y-%m-%dT%H:%M:%S.%fZ')", "def iaGK(Kzzc):\n if not Kzzc:\n return\n return qcWV.datetime.strptime(Kzzc, '%Y-%m-%dT%H:%M:%SZ')", "def UI0_(str):\...
[ "0.8213098", "0.8213098", "0.80004275", "0.7763797", "0.7624712", "0.7619762", "0.759605", "0.75204295", "0.7478474", "0.7467033", "0.7457636", "0.74395394", "0.7365426", "0.7325313", "0.7305399", "0.72927296", "0.7282036", "0.7281628", "0.7279025", "0.72728723", "0.72258735"...
0.0
-1
Create a datetime object from a string with default ISO 8601 format.
def suJK(wU8J, DAsM='%Y-%m-%dT%H:%M:%S'): return qcWV.datetime.strptime(wU8J, DAsM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gcC6(BWXx: str) -> qcWV:\n return qcWV.strptime(BWXx, '%Y-%m-%dT%H:%M:%S.%fZ')", "def gcC6(BWXx: str) -> qcWV:\n return qcWV.strptime(BWXx, '%Y-%m-%dT%H:%M:%S.%fZ')", "def iaGK(Kzzc):\n if not Kzzc:\n return\n return qcWV.datetime.strptime(Kzzc, '%Y-%m-%dT%H:%M:%SZ')", "def UI0_(str):\...
[ "0.82135683", "0.82135683", "0.80014426", "0.77641684", "0.7624468", "0.7620432", "0.75962454", "0.75212115", "0.747821", "0.74683976", "0.7458407", "0.7440227", "0.73664826", "0.73261786", "0.73055536", "0.72932166", "0.72828406", "0.7280805", "0.72796196", "0.72734565", "0....
0.69128704
36
A function to return the current datetime.
def fa__(vgXP=0): return WmE2(vgXP, qcWV.datetime.today())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B72W():\n return qcWV.now()", "def hBa0():\n return qcWV.now()", "def B72W() -> qcWV:\n vHj7: qcWV = qcWV.now()\n return vHj7", "def vHj7() -> qcWV.datetime:\n return qcWV.datetime.now()", "def rg4j():\n return qcWV.datetime.now()", "def rg4j():\n return qcWV.datetime.now()", "...
[ "0.9041979", "0.88837165", "0.8788926", "0.8785852", "0.8709822", "0.8709822", "0.8593095", "0.8511987", "0.8472791", "0.8471032", "0.8464668", "0.8432877", "0.8432877", "0.8432877", "0.8414464", "0.84125704", "0.8384044", "0.83686143", "0.83561534", "0.8332874", "0.82983756"...
0.0
-1
Convert an integer to a two character string.
def Fb8_(lL0j): KN6j = str(lL0j) if len(KN6j) == 1: KN6j = '0' + KN6j return KN6j
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s3rX(YRbF, exwG):\n KCHu = bin(YRbF)[2:]\n KCHu = '0' * (exwG - len(KCHu)) + KCHu\n return KCHu", "def HaUO(C5WR):\n return str(C5WR)", "def tlJD(FGW3):\n if FGW3 < 10:\n return f'0{FGW3}'\n return str(FGW3)", "def HaUO(zZcM: IntType) -> utf4:\n return utf4(str(zZcM))", "def...
[ "0.7557571", "0.73568314", "0.7324026", "0.7253642", "0.70858824", "0.7023819", "0.70191646", "0.7008616", "0.7008616", "0.6938839", "0.6924811", "0.6897878", "0.6890254", "0.6874324", "0.6838083", "0.6791606", "0.67330194", "0.67318", "0.66768724", "0.6663623", "0.66370285",...
0.0
-1
Generate a list of dates [startDate, ..., endDate]
def zbuE(WIo6, T196): BKeT = [] if type(WIo6) == str: WIo6 = R2Sr(WIo6) if type(T196) == str: T196 = R2Sr(T196) YPaw = qcWV.timedelta(days=1) JRYC = WIo6 while JRYC <= T196: BKeT.append(JRYC) JRYC += YPaw if len(BKeT) == 0 or BKeT[-1:][0] < T196: BKeT....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0jH(kepv, KhBf):\n xKCf = []\n for exwG in range((KhBf + fCoM(1) - kepv).days):\n GOKc = kepv + fCoM(exwG)\n xKCf.append(GOKc.strftime('%Y%m%d'))\n return xKCf", "def Pfix(kepv, KhBf):\n vywY = []\n for exwG in range((KhBf + fCoM(1) - kepv).days):\n GOKc = kepv + fCoM(exw...
[ "0.8320573", "0.8244427", "0.81311226", "0.80312896", "0.8027178", "0.787039", "0.78514546", "0.7840091", "0.7744386", "0.77391356", "0.77370596", "0.7734161", "0.7733857", "0.76905495", "0.7687712", "0.76777583", "0.7677276", "0.7661698", "0.76563215", "0.76499563", "0.76452...
0.8575767
0
Creates and saves a User with the given email and password.
def lYUQ(YKHO, D3lj, jTXt=None): if not D3lj: raise ValueError('Users must have an email address') CBIr = YKHO.model(email=YKHO.normalize_email(D3lj)) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ...
[ "0.87185115", "0.8469668", "0.84608346", "0.84508723", "0.8425465", "0.8420757", "0.84195983", "0.8414919", "0.8408961", "0.840773", "0.840773", "0.83996046", "0.83989877", "0.83894813", "0.8388478", "0.8388478", "0.8388478", "0.8388478", "0.8388478", "0.8388478", "0.8388478"...
0.0
-1
Creates and saves a staff user with the given email and password.
def CECe(YKHO, D3lj, jTXt): CBIr = YKHO.create_user(D3lj, password=jTXt) CBIr.staff = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CECe(YKHO, NtEF='test_staffuser', D3lj='admin@example.com'):\n NNCJ = mv1M.objects.create_user(username=NtEF)\n NNCJ.is_staff = True\n NNCJ.set_password = 'pass'\n NNCJ.email = D3lj\n NNCJ.save()\n return NNCJ", "def CECe(YKHO, D3lj, c9ua, zp3f, jTXt):\n CBIr = YKHO.create_user(D3lj, c9u...
[ "0.8490439", "0.84678775", "0.8413928", "0.84043217", "0.8399297", "0.8368978", "0.8351444", "0.83180904", "0.83096355", "0.8273804", "0.82045996", "0.81152916", "0.81152916", "0.8107711", "0.8023424", "0.79988194", "0.79642856", "0.78362834", "0.7829249", "0.7829249", "0.780...
0.83521575
6
Creates and saves a superuser with the given email and password.
def Zp54(YKHO, D3lj, jTXt): CBIr = YKHO.create_user(D3lj, password=jTXt) CBIr.staff = True CBIr.admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)", "def Zp54(YKHO, D3lj, jTXt, **wdCM):\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(D3lj, password=jTXt, **wdCM)\n CBIr.is_superuser = True\n CBIr.is_...
[ "0.85547984", "0.8357249", "0.8350771", "0.83008623", "0.82904804", "0.8272888", "0.82722735", "0.8250753", "0.82475084", "0.82368135", "0.82247275", "0.8221692", "0.8221438", "0.8214413", "0.82097626", "0.8201857", "0.81919456", "0.8186819", "0.8179621", "0.817785", "0.81761...
0.8132006
45
Get the 'Voronoi zone' for a given snake.
def BViS(EmUK, igST, O2Fs): S8uO, ba_x = oupk(EmUK.map, O2Fs) eyy2 = oyIN.full((EmUK.height, EmUK.width), True, dtype=oyIN.bool) for wEf2 in igST.values(): eyy2 = oyIN.logical_and(eyy2, wEf2 - S8uO > 0) return (S8uO, ba_x, eyy2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0po(AU8u, zVaH):\n if AU8u is None:\n return 'unknown'\n Rci7 = 'unknown'\n for lhKE, PETZ in zVaH.items():\n pImw = XC5k.pointPolygonTest(PETZ, AU8u, False)\n if pImw > 0:\n Rci7 = lhKE\n break\n return Rci7.split('_')[0]", "def VKly(YKHO, EARX):\n ...
[ "0.58248216", "0.56977266", "0.56399", "0.5566179", "0.55454904", "0.552531", "0.5483518", "0.5483518", "0.5483252", "0.54269207", "0.53718764", "0.53544176", "0.5320513", "0.53026086", "0.52980083", "0.5260803", "0.5259936", "0.52226275", "0.5167176", "0.5167176", "0.5167176...
0.6624494
0
Return, the filepath of the thumbnail directory
def Bl3f(): _IqO = kZw_.context.window_manager.asset_m UbKu = pnSg() if _IqO.favourites_enabled and len(Hy7s.listdir(gzes(UbKu, _IqO.library_type, _IqO.libraries, _IqO.categories, 'Favorites'))): AGPF = 'Favorites' else: AGPF = 'icons' return gzes(UbKu, _IqO.library_type, _IqO.librar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mybg():\n return Hy7s.path.join(eKPZ(), 'thumbnails')", "def Hpdp(YKHO):\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(YKHO.json_filename), Hy7s.pardir, 'generated_thumbnails'))", "def ykLT(KAOR, Ux0P):\n xtX7 = f'{KAOR.__class__.__name__}s'.lower()\n if xtX7 == 'publications':\n ...
[ "0.8134133", "0.7876126", "0.78169495", "0.76219106", "0.75758463", "0.7487401", "0.7455971", "0.7330563", "0.72893536", "0.7287693", "0.7282261", "0.724881", "0.7143387", "0.7094647", "0.7081641", "0.7028094", "0.70163053", "0.70101976", "0.6987624", "0.6987624", "0.69707966...
0.8014906
1
Gaussian kernel function. if this kernel is used then the decision boundary hyperplane will have a Gaussian form.
def VU7a(WKvO, LVAh, WTkW=5.0): return oyIN.exp(-aJJu.norm(WKvO - LVAh) ** 2 / (2 * WTkW ** 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(Emd4, WKvO, epBp, WTkW):\n return oyIN.exp(-oyIN.dot(WKvO - epBp, WKvO - epBp) / (2 * WTkW ** 2))", "def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))", "def hvqX():\n zhMh = 15\n WL...
[ "0.70280534", "0.687615", "0.68717974", "0.67338574", "0.67292434", "0.666939", "0.6665569", "0.6564398", "0.6535022", "0.65335554", "0.6480617", "0.64750266", "0.64699936", "0.64149606", "0.64080995", "0.6406119", "0.6401161", "0.63761586", "0.63740885", "0.63663524", "0.636...
0.6814052
3
Return the string representation of an argument. Update the so_needed list if the argument refers to a scriptable object. Any delayed conversion exception is handled here.
def yIQ6(d7pR, TATe): if isinstance(d7pR, Exception): raise d7pR if isinstance(d7pR, GEvk): if not d7pR.name: raise NameError('%s has been unbound but is needed by the script' % d7pR.obj_ref()) if d7pR not in TATe: TATe.append(d7pR) d7pR = d7pR.name re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ri2O(YKHO, YEnM):\n WBAH = id(YEnM)\n cbZA = YKHO._so_by_id.get(WBAH)\n if cbZA is not None:\n return cbZA\n KCHu = repr(YEnM)\n if hex(WBAH) not in KCHu:\n return KCHu\n return ValueError('unable to create a script representation of %s' % YEnM)", "def zAg0(YKHO):\n if not ...
[ "0.71453476", "0.6923048", "0.6579232", "0.6547687", "0.6418203", "0.6401585", "0.6396261", "0.63721776", "0.6346948", "0.6321871", "0.631158", "0.6308208", "0.6295889", "0.6255679", "0.62313956", "0.62249017", "0.6185003", "0.6157525", "0.6157513", "0.6145805", "0.6140423", ...
0.7748662
0
Gets the length of the wavevector in the core of this waveguide
def nk1I(YKHO, __d3): lNm8 = __d3 / YKHO.core_index(__d3) return 2 * oyIN.pi / lNm8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M9pn(YKHO):\n return YKHO.waveLength", "def len(YKHO):\n WKvO = YKHO.vector\n return epAf.sqrt(WKvO[0] * WKvO[0] + WKvO[1] * WKvO[1])", "def u54L(YKHO):\n return oyIN.sqrt(oyIN.dot(YKHO.to_cart(), YKHO.to_cart()))", "def u54L(YKHO):\n return epAf.sqrt(sum(lNLu(YKHO.D, {YRbF: YKHO[YRbF] * Y...
[ "0.7826089", "0.77474266", "0.7501989", "0.74723643", "0.74606097", "0.7391923", "0.7303324", "0.7279203", "0.7234719", "0.72326964", "0.723262", "0.7205336", "0.7196053", "0.71883065", "0.71694314", "0.7152562", "0.7151717", "0.71321255", "0.7128486", "0.7126524", "0.7124065...
0.82848835
0
Gets the length of the wavevector in the cladding of this waveguide
def zwC3(YKHO, __d3): lNm8 = __d3 / YKHO.cladding_index(__d3) return 2 * oyIN.pi / lNm8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M9pn(YKHO):\n return YKHO.waveLength", "def jqW_(YKHO):\n return uwaB.c * uwaB.h / YKHO._energy", "def u54L(YKHO):\n return oyIN.sqrt(oyIN.dot(YKHO.to_cart(), YKHO.to_cart()))", "def u54L(YKHO):\n return gQS9.Pulse_length(YKHO)", "def len(YKHO):\n WKvO = YKHO.vector\n return epAf.sqrt...
[ "0.77600217", "0.74510145", "0.73965675", "0.7335246", "0.73126423", "0.7307688", "0.7304966", "0.728379", "0.7195329", "0.71834725", "0.717545", "0.7173087", "0.7168408", "0.7165459", "0.7157178", "0.7153297", "0.7143924", "0.7138442", "0.7136612", "0.7124914", "0.7078255", ...
0.7731979
1
This method returns the critical angle for this waveguide Note that since it uses the self.cladding_index() method, it will work if this class is later overridden to take into account n as a function of wavelength
def G06l(YKHO, __d3): return oyIN.sqrt(2 * (1 - YKHO.cladding_index(__d3).real))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G06l(Gjtu, bVcP, _Fgp, UqZj):\n tZ1l, bGrB, bGrB, bGrB, bGrB, bGrB, bGrB = SGPK(Gjtu, bVcP, _Fgp, UqZj)\n return Z6OX(tZ1l[1] / tZ1l[0]) * 180.0 / mM0K", "def _LJb(gNvW, nOZ8):\n h0iw = oyIN.arcsin(gNvW.real / nOZ8)\n return h0iw", "def G06l(OAgx, MxXY, mghH=True):\n lbHk = oyIN.arcsin(OAgx ...
[ "0.6786791", "0.67465705", "0.649599", "0.64845425", "0.6363506", "0.63241345", "0.6323122", "0.6294322", "0.6274164", "0.6272887", "0.6269412", "0.6219063", "0.61804676", "0.61772996", "0.6138578", "0.605812", "0.60580367", "0.6038854", "0.6019449", "0.5955121", "0.5946064",...
0.8637776
0
Return a Tensor containing the patches
def SOm4(h_xa, DNqB, ni6Q): EEAL = [] Fni6 = [] K_YH = [] for rKZV in Hy7s.listdir(h_xa): print(rKZV) if rKZV not in ni6Q: continue zTiC = [] for IznC in Hy7s.listdir(Hy7s.path.join(h_xa, rKZV)): if IznC.endswith(DNqB): zTiC.append(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wp2m(VXjJ, Ot1W=3, _0fC=1, dvgN=1):\n kQ4O = U78l.Unfold(kernel_size=Ot1W, padding=dvgN, stride=_0fC)\n ohfT = kQ4O(VXjJ)\n return ohfT.transpose(1, 2).squeeze()", "def w2LD(WKvO: tf.Tensor) -> ZylS.Tensor:\n Cq8O = (ZylS.shape(WKvO)[0], oyIN.product(WKvO.shape[1:]))\n kNbz = ZylS.reshape(WKvO...
[ "0.66685784", "0.66583574", "0.65277886", "0.6501094", "0.6490988", "0.64339274", "0.6352289", "0.6321028", "0.62459177", "0.6241648", "0.6224862", "0.6205929", "0.61466295", "0.6093246", "0.6041175", "0.6039249", "0.60267967", "0.602319", "0.59776455", "0.5970723", "0.596654...
0.0
-1
Provide a temporary SQLAlchemy engine connection to an inmemory database for tests
def PWOV(): eHpk = y2U9(f'sqlite://') fn50(eHpk) w2B8 = eHpk.connect() yield w2B8 w2B8.close() eHpk.dispose()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O0AA():\n XgDo = ib7u('sqlite:///:memory:', connect_args={'check_same_thread': False}, poolclass=wK83)\n VLMK(XgDo, provides=ZMyA, name=u'opengever_db')\n oCsa = OzIm(engine=u'opengever_db', extension=xY8f(keep_session=True))\n VLMK(oCsa, provides=VOKD, name=u'opengever')", "async def get_db() ->...
[ "0.73837143", "0.73462915", "0.730302", "0.72955847", "0.7136095", "0.712199", "0.71213764", "0.7112506", "0.70953983", "0.7078313", "0.70470256", "0.7035137", "0.7019241", "0.70190364", "0.7005631", "0.69928306", "0.69928306", "0.69928306", "0.6991108", "0.6989349", "0.69893...
0.7214025
4
Test api business update
def Aexj(YKHO): YKHO.client.post(YKHO.prefix + 'businesses', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)}, content_type='application/json', data=qQXR.dumps(YKHO.businesses['one'])) geh0 = YKHO.client.put(YKHO.prefix + 'businesses/1', headers={'Authorization': 'Bearer {}'.format(YKHO.access_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IHWV(YKHO):\n pass", "def RhT5(YKHO):\n YKHO.url = YKHO.url + str(YKHO.bp.id) + '/'\n YKHO.client.login(email=YKHO.adminUN, password='pass')\n YKHO.data['name'] = 'name123456'\n YKHO.data['booking_period'] = [YKHO.bpo.id]\n geh0 ...
[ "0.8339135", "0.8339135", "0.82976484", "0.8198091", "0.8035801", "0.78593856", "0.7747264", "0.77309877", "0.7632618", "0.7627406", "0.76272964", "0.76188207", "0.7587663", "0.75711703", "0.7564133", "0.75617015", "0.7555446", "0.7531955", "0.75097877", "0.7494402", "0.74900...
0.0
-1
Test api business update fails for invalid input
def Xfne(YKHO): YKHO.client.post(YKHO.prefix + 'businesses', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)}, content_type='application/json', data=qQXR.dumps(YKHO.businesses['one'])) geh0 = YKHO.client.put(YKHO.prefix + 'businesses/1', headers={'Authorization': 'Bearer {}'.format(YKHO.access_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dVF_(YKHO):\n YKHO.register_user()\n geh0 = YKHO.app.put('/api/v2/businesses/6000', data=qQXR.dumps(YKHO.update_business_info), headers={'content-type': 'application/json', 'x-access-token': YKHO.token()})\n YKHO.assertIn('Business Not Found', str(geh0.data))\n YKHO.assertEqual(geh0.status_code, 40...
[ "0.7841402", "0.7769564", "0.7648879", "0.7574066", "0.7568223", "0.75567746", "0.7487709", "0.7487569", "0.7434348", "0.74223125", "0.7413342", "0.7387339", "0.73862314", "0.73739654", "0.7372623", "0.73652506", "0.7360142", "0.73450255", "0.7338965", "0.7338029", "0.7305141...
0.69758236
55
Test api business update fails for wrong user
def ef9o(YKHO): YKHO.client.post(YKHO.prefix + 'businesses', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)}, content_type='application/json', data=qQXR.dumps(YKHO.businesses['one'])) YKHO.client.post(YKHO.prefix + 'auth/register', content_type='application/json', data=qQXR.dumps(YKHO.users['fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lDhF(YKHO):\n pass", "def lDhF(YKHO):\n pass", "def lDhF(YKHO):\n pass", "def CLQ6(YKHO):\n eOtH = YKHO.get_user_token()\n with YKHO.client:\n geh0 = YKHO.client.put('/user/update', content_type='application/json', json={'something': 'new_email@gmail.com'}, headers={'x-access-token'...
[ "0.8092389", "0.8092389", "0.8092389", "0.7968354", "0.79122233", "0.7844439", "0.7823085", "0.7801435", "0.77857727", "0.7687843", "0.76794046", "0.7670568", "0.7643604", "0.7633203", "0.75998056", "0.75739896", "0.75354666", "0.7523606", "0.7522922", "0.75057405", "0.749610...
0.0
-1
Test api business update fails for missing business
def TC3r(YKHO): geh0 = YKHO.client.put(YKHO.prefix + 'businesses/4', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)}, content_type='application/json', data=qQXR.dumps(YKHO.businesses['one_edit'])) YKHO.assertEqual(geh0.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dVF_(YKHO):\n YKHO.register_user()\n geh0 = YKHO.app.put('/api/v2/businesses/6000', data=qQXR.dumps(YKHO.update_business_info), headers={'content-type': 'application/json', 'x-access-token': YKHO.token()})\n YKHO.assertIn('Business Not Found', str(geh0.data))\n YKHO.assertEqual(geh0.status_code, 40...
[ "0.81855834", "0.80151176", "0.7876068", "0.7683929", "0.7645627", "0.7615048", "0.74621135", "0.7433542", "0.7395157", "0.7229016", "0.72138643", "0.71804136", "0.71227396", "0.71204567", "0.7070261", "0.70394367", "0.70233506", "0.70194215", "0.70194215", "0.70193505", "0.6...
0.75051373
6
Test api business update fails if new business name already exists
def VeBv(YKHO): YKHO.client.post(YKHO.prefix + 'businesses', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)}, content_type='application/json', data=qQXR.dumps(YKHO.businesses['one'])) YKHO.client.post(YKHO.prefix + 'businesses', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)}, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qGvN(YKHO):\n aiqN = {'name': 'Andela Kenya', 'user_id': '1', 'location': 'Nairobi, Kenya', 'web_address': 'www.andela.com', 'category': 'IT'}\n YKHO.client().post('/api/v1/businesses', data=qQXR.dumps(aiqN), headers={'content-type': 'application/json', 'x-access-token': YKHO.token})\n geh0 = YKHO.cli...
[ "0.8629666", "0.7978641", "0.7947843", "0.7815953", "0.7804582", "0.76939046", "0.76597595", "0.7463129", "0.74419636", "0.7412932", "0.7257735", "0.7247865", "0.71802926", "0.7162377", "0.699264", "0.6992438", "0.69600976", "0.68967056", "0.6892625", "0.6843772", "0.68002856...
0.7915047
3
Test api business deletion fails for non existent business
def gNu0(YKHO): geh0 = YKHO.client.delete(YKHO.prefix + 'businesses/7', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)}) YKHO.assertEqual(geh0.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AZM1(YKHO):\n YKHO.register_user()\n geh0 = YKHO.app.delete('/api/v2/businesses/1', headers={'content-type': 'application/json', 'x-access-token': YKHO.token()})\n YKHO.assertEqual(geh0.status_code, 404)\n YKHO.assertIn('Business Not Found', str(geh0.data))", "def HCnW(YKHO):\n YKHO.app.post('...
[ "0.817648", "0.8035664", "0.79631585", "0.7936599", "0.7878605", "0.7863835", "0.78584373", "0.77473193", "0.7496057", "0.7211825", "0.7205726", "0.7187273", "0.71544665", "0.7129813", "0.7101136", "0.70972073", "0.70972073", "0.70972073", "0.7079753", "0.70786524", "0.703674...
0.8088535
1
Test api business post reviews fails if new review name already exists
def PNVc(YKHO): YKHO.client.post(YKHO.prefix + 'businesses', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)}, content_type='application/json', data=qQXR.dumps(YKHO.businesses['one'])) YKHO.client.post(YKHO.prefix + 'businesses/1/reviews', headers={'Authorization': 'Bearer {}'.format(YKHO.access...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fYh_(YKHO):\n geh0 = YKHO.client.post(YKHO.reviews, YKHO.payload)\n YKHO.assertEqual(201, geh0.status_code)", "def jb6W(YKHO):\n aiqN = {'name': 'Armco Kenya', 'user_id': '1', 'location': 'Nakuru, Kenya', 'web_address': 'www.andela.com', 'category': 'Insurance'}\n YKHO.client().post('/api/v1/busi...
[ "0.7854588", "0.7655968", "0.72558963", "0.7125932", "0.7115719", "0.7072387", "0.70379025", "0.6943665", "0.68950945", "0.6876178", "0.6869585", "0.6860418", "0.68385744", "0.683435", "0.68122447", "0.67914045", "0.6771516", "0.6747706", "0.6626738", "0.66173", "0.6608748", ...
0.76672447
1
Test api business post reviews fails for bad input
def cyZZ(YKHO): YKHO.client.post(YKHO.prefix + 'businesses', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)}, content_type='application/json', data=qQXR.dumps(YKHO.businesses['one'])) geh0 = YKHO.client.post(YKHO.prefix + 'businesses/1/reviews', headers={'Authorization': 'Bearer {}'.format(YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jb6W(YKHO):\n aiqN = {'name': 'Armco Kenya', 'user_id': '1', 'location': 'Nakuru, Kenya', 'web_address': 'www.andela.com', 'category': 'Insurance'}\n YKHO.client().post('/api/v1/businesses', data=qQXR.dumps(aiqN), headers={'content-type': 'application/json', 'x-access-token': YKHO.token})\n dyDQ = {'r...
[ "0.7882363", "0.74136525", "0.7200293", "0.71219677", "0.7004228", "0.6849156", "0.68273044", "0.6810949", "0.68002844", "0.67930055", "0.6766798", "0.6753552", "0.67437935", "0.67018074", "0.66998905", "0.66865563", "0.6643891", "0.66327244", "0.6625942", "0.66147894", "0.65...
0.72654617
2
Test case for get_contact_payments
def AqK9(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tlrk(YKHO):\n pass", "def wNyL(YKHO):\n pass", "def KtK3(YKHO):\n pass", "def sB2v(YKHO):\n pass", "def qH7G(YKHO):\n pass", "def RzqP(YKHO):\n pass", "def BDb8(YKHO):\n pass", "def h3IU(uMSU, KwmB, mlPu, V5cE, MCRE, nIoS):\n x0hE = uagC(iJSR(), nIoS.email, 'testpassword')...
[ "0.7792934", "0.76594055", "0.7625123", "0.70457363", "0.6896821", "0.67607486", "0.6596094", "0.6559563", "0.65461385", "0.65215343", "0.6518291", "0.64722973", "0.64394355", "0.63900924", "0.634346", "0.6313518", "0.6308624", "0.6296729", "0.6288008", "0.6230016", "0.620481...
0.9191095
0
Test the Team class method get_github_team_id().
def _uiK(): dZPi = r2Kd('1', 'brussel-sprouts', 'Brussel Sprouts') assert dZPi.github_team_id == '1'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YLPo():\n dZPi = r2Kd('1', 'brussel-sprouts', 'Brussel Sprouts')\n assert dZPi.github_team_name == 'brussel-sprouts'", "def gBE1():\n dZPi = r2Kd('1', 'brussel-sprouts', 'Brussel Sprouts')\n dZPi.github_team_id = '2'\n assert dZPi.github_team_id == '2'", "def Mvyw(YKHO):\n _hkX = sEq2('su...
[ "0.79978746", "0.7975178", "0.7498073", "0.6998923", "0.6907252", "0.6874062", "0.6784015", "0.66983575", "0.66824764", "0.66714", "0.666892", "0.6652313", "0.6651571", "0.6626645", "0.6626645", "0.6577523", "0.6553091", "0.6546121", "0.653095", "0.65149933", "0.649527", "0...
0.9126863
0
Test the Team class method set_github_team_id().
def gBE1(): dZPi = r2Kd('1', 'brussel-sprouts', 'Brussel Sprouts') dZPi.github_team_id = '2' assert dZPi.github_team_id == '2'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _uiK():\n dZPi = r2Kd('1', 'brussel-sprouts', 'Brussel Sprouts')\n assert dZPi.github_team_id == '1'", "def UVmI(YKHO):\n YKHO.steam_api_connection.set_steam_api_id('12333')\n YKHO.assertEqual('12333', YKHO.steam_api_connection.steam_api_id)", "def YLPo():\n dZPi = r2Kd('1', 'brussel-sprouts...
[ "0.80981386", "0.69196683", "0.6828469", "0.67751384", "0.67656565", "0.67656565", "0.6690698", "0.66163063", "0.65968436", "0.6515657", "0.642113", "0.6405429", "0.6396902", "0.6371294", "0.6285947", "0.6226197", "0.6224476", "0.6213424", "0.62084943", "0.61952996", "0.61785...
0.91455907
0
Test the Team class method is_team_lead(github_id).
def lbih(): dZPi = r2Kd('1', 'brussel-sprouts', 'Brussel Sprouts') WLx8 = 'U0G9QF9C6' assert dZPi.has_team_lead(WLx8) is False dZPi.add_team_lead(WLx8) assert dZPi.has_team_lead(WLx8) is True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UVqn():\n dZPi = r2Kd('1', 'brussel-sprouts', 'Brussel Sprouts')\n WLx8 = 'U0G9QF9C6'\n dZPi.add_team_lead(WLx8)\n assert WLx8 in dZPi.team_leads", "def _uiK():\n dZPi = r2Kd('1', 'brussel-sprouts', 'Brussel Sprouts')\n assert dZPi.github_team_id == '1'", "def ZzGX():\n dZPi = r2Kd('1'...
[ "0.7581256", "0.7234063", "0.66437787", "0.6524572", "0.63965565", "0.6217958", "0.6149446", "0.6144387", "0.60760784", "0.6056506", "0.6007043", "0.5995901", "0.5980661", "0.5965353", "0.5947604", "0.5941149", "0.5923221", "0.5917125", "0.5875862", "0.5856751", "0.5811642", ...
0.85781854
0
Create a bias variable with appropriate initialization.
def Y7ph(ROpF): RqgG = ZylS.constant(0.1, shape=ROpF) return ZylS.Variable(RqgG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n1Xm(ROpF, MuED=ZylS.zeros_initializer()):\n return ZylS.get_variable(name='b', shape=ROpF, initializer=MuED)", "def Y7ph(ROpF, ECSy=0.025):\n RqgG = ZylS.constant(ECSy, shape=ROpF)\n return ZylS.Variable(RqgG)", "def KR18(YKHO, ROpF):\n return ZylS.Variable(ZylS.constant(0.0, shape=ROpF, dtype...
[ "0.79858303", "0.7918969", "0.78149676", "0.7800119", "0.77055323", "0.7608229", "0.75624096", "0.75623584", "0.7561029", "0.7559047", "0.755641", "0.75323683", "0.7528323", "0.7528323", "0.7528323", "0.7528323", "0.7528323", "0.7528323", "0.7528323", "0.7528323", "0.7528323"...
0.75428504
12
Test case for create_comment
def wkt8(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkt8(YKHO):\n YKHO.user.add_comment(YKHO.comment)", "def qufj(YKHO):\n pass", "def wkt8(YKHO):\n YKHO.assertEqual(YKHO.comment.status_code, jGRS.HTTP_201_CREATED)", "def wkt8(YKHO):\n geh0 = YKHO.client.post('/api/v1/comment', data=qQXR.dumps(YKHO.comment_data), content_type='application/json...
[ "0.85547644", "0.8481883", "0.81109047", "0.79566896", "0.789789", "0.78718174", "0.7852004", "0.77356935", "0.76844895", "0.75848424", "0.75848424", "0.75509", "0.7503232", "0.748457", "0.74812835", "0.7467911", "0.7419739", "0.7415512", "0.7402208", "0.7393919", "0.73898256...
0.938089
0
Test case for delete_comment
def TDyI(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDyI(YKHO):\n YKHO.comment.delete_comment()\n YKHO.assertFalse(jY1u.query.first())", "def TDyI(YKHO):\n rXjI = YKHO.client.delete(gxEw('comments:details', kwargs={'slug': YKHO.article.slug, 'pk': YKHO.comment_id}), format='json')\n YKHO.assertEqual(YKHO.comment.status_code, jGRS.HTTP_201_CREATED)...
[ "0.84001315", "0.82386935", "0.82034856", "0.8117861", "0.80695534", "0.8011597", "0.800757", "0.79344857", "0.7845452", "0.77983564", "0.77041054", "0.7699622", "0.7642848", "0.7633969", "0.7630582", "0.7599934", "0.7581146", "0.75607944", "0.75020206", "0.75020206", "0.7471...
0.9410986
0
Test case for delete_extension_label
def obPS(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E05y(YKHO):\n pass", "def kJB8(YKHO):\n pass", "def QBMB(YKHO):\n pass", "def OUzO(YKHO):\n pass", "def FbJc(YKHO):\n pass", "def s_Ya(YKHO):\n pass", "def zvAX(YKHO):\n pass", "def SMRX(YKHO):\n pass", "def PxDB(*qIxc, **B2fa):\n pass", "def aK84(YKHO):\n pass",...
[ "0.7936357", "0.7884316", "0.7822687", "0.77364475", "0.7631885", "0.7585561", "0.7447051", "0.73515016", "0.7342351", "0.73305625", "0.72655404", "0.7063341", "0.70413774", "0.6966141", "0.6909542", "0.6768093", "0.67410666", "0.6730996", "0.6717433", "0.6703884", "0.6664907...
0.9631109
0
Test case for update_comment
def Rqsf(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uc0X(YKHO):\n pass", "def DzJc(YKHO):\n YKHO.assertEqual(Zngb.validate_comment_update({'comment': 54}), 'New Comment ought to be a valid sentence.')", "def Rqsf(YKHO):\n YKHO.user.create_comment(YKHO.comment)\n cCm8 = ''\n Yu6D = ''\n YKHO.user.update_feed(YKHO.comment.body, cCm8)\n YK...
[ "0.8931725", "0.85005236", "0.81960106", "0.81516844", "0.81254816", "0.80374026", "0.7891186", "0.78819174", "0.77412677", "0.7682406", "0.7597164", "0.74788225", "0.7416078", "0.73926836", "0.7337399", "0.7313127", "0.7313127", "0.730095", "0.7192541", "0.7178023", "0.71446...
0.94267935
0
Compute evaluation metrics for OneHopDataset or TwoHopDataset.
def BMp_(__n6, dixj, Rr9Z, WJUH, **B2fa): del B2fa aWmH = {aTqo.qas_id: aTqo.answer_entity for aTqo in __n6.examples} nZdN = {aTqo.qas_id: aTqo.question_text for aTqo in __n6.examples} gTqV = {aTqo.qas_id: aTqo.subject_entity[0] for aTqo in __n6.examples} Ps4j = {aTqo.qas_id: aTqo.inference_chain fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7La(YKHO, FUPx: Optional[Dataset]=None) -> cuzp[str, float]:\n Ycl9 = YKHO.get_eval_dataloader(FUPx)\n hlel = YKHO.prediction_loop(Ycl9, description='Evaluation')\n YKHO.log(hlel.metrics)\n if YKHO.args.tpu_metrics_debug or YKHO.args.debug:\n tdL7.master_print(EpVc.metrics_report())\n aT...
[ "0.7086972", "0.69654983", "0.68299794", "0.68296456", "0.6726879", "0.6701913", "0.669513", "0.6670351", "0.6659379", "0.6651245", "0.6630551", "0.660258", "0.6588945", "0.65830773", "0.65788394", "0.65221924", "0.65184945", "0.6487322", "0.64779633", "0.6477041", "0.6473480...
0.0
-1
Compute evaluation metrics for OneHopDataset or TwoHopDataset.
def tQ1k(__n6, dixj, Rr9Z, WJUH, gBnE='mention', **B2fa): del B2fa WokT = {aTqo.qas_id: aTqo.answer_mention[0] for aTqo in __n6.examples} if gBnE == 'mention': aWmH = WokT else: aWmH = {aTqo.qas_id: aTqo.answer_entity[0] for aTqo in __n6.examples} zAcA = 0.0 fZyS = {} for Aof...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7La(YKHO, FUPx: Optional[Dataset]=None) -> cuzp[str, float]:\n Ycl9 = YKHO.get_eval_dataloader(FUPx)\n hlel = YKHO.prediction_loop(Ycl9, description='Evaluation')\n YKHO.log(hlel.metrics)\n if YKHO.args.tpu_metrics_debug or YKHO.args.debug:\n tdL7.master_print(EpVc.metrics_report())\n aT...
[ "0.7086993", "0.6965796", "0.68301725", "0.6829499", "0.6728003", "0.6701823", "0.66949487", "0.666921", "0.6658905", "0.66501236", "0.66310453", "0.6602061", "0.65889126", "0.6584112", "0.6579311", "0.65217036", "0.65195364", "0.6488095", "0.6479534", "0.64765334", "0.647298...
0.6070881
91
Initialize and return an instance with an API data dictionary.
def FIMM(YKHO, nPrm): super(el4x, YKHO).__init__(nPrm) YKHO.system = nPrm.get('System') YKHO.cost = nPrm.get('Cost')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nNXP, QpfX, nPrm):\n YKHO._api = nNXP\n YKHO._context = QpfX\n YKHO._data = nPrm\n YKHO._mn_resource = None", "def FIMM(YKHO):\n YKHO.key = nNXP['key']\n YKHO.secret = nNXP['secret']\n YKHO._host = nNXP['host']\n YKHO._auth = YKHO._authenticate()", "def FIMM(YKHO, uUiS, q...
[ "0.71015286", "0.70401806", "0.70043737", "0.6997331", "0.6997331", "0.6995077", "0.6932772", "0.69076896", "0.68070924", "0.6800573", "0.67994535", "0.678473", "0.6769054", "0.67585135", "0.67533016", "0.6748899", "0.6738651", "0.67216235", "0.66959", "0.6679443", "0.6679443...
0.0
-1
Initialize and return an instance with an API data dictionary.
def FIMM(YKHO, nPrm): super(m8cn, YKHO).__init__(nPrm) YKHO.type = nPrm.get('Type') YKHO.stolen = nPrm.get('Stolen')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nNXP, QpfX, nPrm):\n YKHO._api = nNXP\n YKHO._context = QpfX\n YKHO._data = nPrm\n YKHO._mn_resource = None", "def FIMM(YKHO):\n YKHO.key = nNXP['key']\n YKHO.secret = nNXP['secret']\n YKHO._host = nNXP['host']\n YKHO._auth = YKHO._authenticate()", "def FIMM(YKHO, uUiS, q...
[ "0.71019936", "0.70406914", "0.7005431", "0.6998578", "0.6998578", "0.6997548", "0.6934136", "0.6908957", "0.6806683", "0.6799878", "0.6797805", "0.678337", "0.6766816", "0.67581975", "0.67553204", "0.67493755", "0.6735969", "0.67203474", "0.6695412", "0.6680477", "0.6680477"...
0.0
-1
Initialize and return an instance with an API data dictionary.
def FIMM(YKHO, nPrm): super(EmKz, YKHO).__init__(nPrm) YKHO.type = nPrm.get('Type') YKHO.count = nPrm.get('Count') YKHO.abandoned = nPrm.get('Abandoned') YKHO.powerplay_origin = nPrm.get('PowerplayOrigin')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nNXP, QpfX, nPrm):\n YKHO._api = nNXP\n YKHO._context = QpfX\n YKHO._data = nPrm\n YKHO._mn_resource = None", "def FIMM(YKHO):\n YKHO.key = nNXP['key']\n YKHO.secret = nNXP['secret']\n YKHO._host = nNXP['host']\n YKHO._auth = YKHO._authenticate()", "def FIMM(YKHO, uUiS, q...
[ "0.71015286", "0.70401806", "0.70043737", "0.6997331", "0.6997331", "0.6995077", "0.6932772", "0.69076896", "0.68070924", "0.6800573", "0.67994535", "0.678473", "0.6769054", "0.67585135", "0.67533016", "0.6748899", "0.6738651", "0.67216235", "0.66959", "0.6679443", "0.6679443...
0.0
-1
Initialize and return an instance with an API data dictionary.
def FIMM(YKHO, nPrm): super(dDsn, YKHO).__init__(nPrm) YKHO.type = nPrm.get('Type') YKHO.count = nPrm.get('Count') YKHO.buy_price = nPrm.get('BuyPrice') YKHO.total_cost = nPrm.get('TotalCost')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nNXP, QpfX, nPrm):\n YKHO._api = nNXP\n YKHO._context = QpfX\n YKHO._data = nPrm\n YKHO._mn_resource = None", "def FIMM(YKHO):\n YKHO.key = nNXP['key']\n YKHO.secret = nNXP['secret']\n YKHO._host = nNXP['host']\n YKHO._auth = YKHO._authenticate()", "def FIMM(YKHO, uUiS, q...
[ "0.71009713", "0.7040668", "0.7005521", "0.6999634", "0.6999634", "0.69975024", "0.6933109", "0.6909101", "0.6806889", "0.6801746", "0.6795672", "0.67826366", "0.67654175", "0.6758051", "0.6755231", "0.67492723", "0.6733452", "0.6719798", "0.6694542", "0.6681413", "0.6681413"...
0.0
-1
Initialize and return an instance with an API data dictionary.
def FIMM(YKHO, nPrm): super(XXNR, YKHO).__init__(nPrm) YKHO.type = nPrm.get('Type') YKHO.count = nPrm.get('Count') YKHO.sell_price = nPrm.get('SellPrice') YKHO.total_sale = nPrm.get('TotalSale') YKHO.average_price_paid = nPrm.get('AvgPricePaid') YKHO.illegal_goods = nPrm.get('IllegalGoods') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nNXP, QpfX, nPrm):\n YKHO._api = nNXP\n YKHO._context = QpfX\n YKHO._data = nPrm\n YKHO._mn_resource = None", "def FIMM(YKHO):\n YKHO.key = nNXP['key']\n YKHO.secret = nNXP['secret']\n YKHO._host = nNXP['host']\n YKHO._auth = YKHO._authenticate()", "def FIMM(YKHO, uUiS, q...
[ "0.71015286", "0.70401806", "0.70043737", "0.6997331", "0.6997331", "0.6995077", "0.6932772", "0.69076896", "0.68070924", "0.6800573", "0.67994535", "0.678473", "0.6769054", "0.67585135", "0.67533016", "0.6748899", "0.6738651", "0.67216235", "0.66959", "0.6679443", "0.6679443...
0.0
-1
Initialize and return an instance with an API data dictionary.
def FIMM(YKHO, nPrm): super(jybh, YKHO).__init__(nPrm) YKHO.type = nPrm.get('Type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nNXP, QpfX, nPrm):\n YKHO._api = nNXP\n YKHO._context = QpfX\n YKHO._data = nPrm\n YKHO._mn_resource = None", "def FIMM(YKHO):\n YKHO.key = nNXP['key']\n YKHO.secret = nNXP['secret']\n YKHO._host = nNXP['host']\n YKHO._auth = YKHO._authenticate()", "def FIMM(YKHO, uUiS, q...
[ "0.71019936", "0.70406914", "0.7005431", "0.6998578", "0.6998578", "0.6997548", "0.6934136", "0.6908957", "0.6806683", "0.6799878", "0.6797805", "0.678337", "0.6766816", "0.67581975", "0.67553204", "0.67493755", "0.6735969", "0.67203474", "0.6695412", "0.6680477", "0.6680477"...
0.0
-1
Calculates and returns the IoU (box1 and box2 interaction over their union)
def ySfS(knvf, IkxF): rn1I = knvf[2] De7X = knvf[3] mIwi = IkxF[2] GD1K = IkxF[3] Z9pq = rn1I * De7X d_Zw = mIwi * GD1K RsfQ = min(knvf[0] - rn1I / 2.0, IkxF[0] - mIwi / 2.0) DIq2 = max(knvf[0] + rn1I / 2.0, IkxF[0] + mIwi / 2.0) B5ql = DIq2 - RsfQ suhQ = min(knvf[1] - De7X / 2.0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _xWy(knvf, IkxF):\n pvBw, JqUn, TYrM, hyHQ = ht2j.split(knvf, 1)\n KDnR, gSFI, iM_U, IrGj = ht2j.split(IkxF, 1)\n si3g = ht2j.max(pvBw, KDnR)\n o4D3 = ht2j.max(JqUn, gSFI)\n skBL = ht2j.min(TYrM, iM_U)\n ajwV = ht2j.min(hyHQ, IrGj)\n iQin = ht2j.mul(ht2j.max(ajwV - o4D3, ht2j.tensor([0], d...
[ "0.8652217", "0.85602605", "0.8545762", "0.85123926", "0.8482292", "0.84608966", "0.83815646", "0.83807397", "0.8342917", "0.8322902", "0.8316856", "0.8298036", "0.8270826", "0.82707137", "0.8263937", "0.82488924", "0.82275313", "0.81040335", "0.8097322", "0.80930406", "0.809...
0.8279283
12
x = x if x > 0 else alpha x, default x = 0.01 let leaky_relu(x) = k(x + b|x|)
def KzM8(WKvO, Cwt5=0.01): if Cwt5 != -1.0: G1Hx = (1.0 + Cwt5) / 2 Fg_i = (1.0 - Cwt5) / (1.0 + Cwt5) return G1Hx * (WKvO + Fg_i * abs(WKvO)) else: return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzM8(YKHO, WKvO, Cwt5=0.01):\n return oyIN.where(WKvO > 0, WKvO, WKvO * Cwt5)", "def KzM8(WKvO):\n return (WKvO > 0) * WKvO + (WKvO < 0) * WKvO * xZsq.alpha", "def KzM8(WKvO, Cwt5=0.01):\n return ZylS.maximum(Cwt5 * WKvO, WKvO)", "def KzM8(WKvO):\n Ylbp = WKvO\n Ylbp[WKvO <= 0] *= 0.01\n ...
[ "0.84985334", "0.8485328", "0.8348762", "0.8198143", "0.8176585", "0.8160133", "0.80395705", "0.80130917", "0.7969194", "0.789276", "0.789276", "0.77885187", "0.7775437", "0.77258104", "0.77258104", "0.77258104", "0.77258104", "0.77258104", "0.77258104", "0.7716748", "0.76692...
0.88169163
0
Returns the number of free parameters in this type. None is returned if no size is specified.
def UHFx(YKHO): if YKHO.char is None: raise ValueError('Item of unknown type does not have a count') if YKHO.char in jHMx: return 1 if YKHO.char == 'L': try: if YKHO.subtype is not None: if isinstance(YKHO.subtype, list): return sum((KC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M0zs(YKHO):\n return YKHO._params.total_size", "def dWhP(YKHO):\n return len(YKHO.__free)", "def gi2P(YKHO):\n return YKHO._n_parameters", "def gi2P(YKHO):\n return YKHO._n_parameters", "def gi2P(YKHO):\n return 0", "def u54L(YKHO):\n return len(YKHO.param_list)", "def szAg(YKHO) ...
[ "0.7369216", "0.72967845", "0.72297114", "0.72297114", "0.7214168", "0.7140869", "0.70814335", "0.70769584", "0.706314", "0.7061533", "0.7061533", "0.70598245", "0.70598245", "0.70452553", "0.70250523", "0.70250523", "0.70033616", "0.6990669", "0.6988539", "0.6981983", "0.697...
0.0
-1
Returns the number of entries in the shape of this type. For compound list types, this is 1+subtype.dims().
def Htse(YKHO): if YKHO.char is None: raise ValueError('Item of unknown type does not have a dimensionality') if YKHO.char in jHMx: return 0 elif YKHO.char == 'V': return 1 elif YKHO.char == 'M': return 2 elif YKHO.char == 'A': if YKHO.size is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qC1Y(YKHO) -> PhJ3:\n return tuple((len(Z9rn) for Z9rn in YKHO.shape))", "def ROpF(YKHO) -> int:\n return len(YKHO.all_elements)", "def qC1Y(YKHO):\n return len(YKHO._dimensions)", "def Htse(YKHO) -> int:\n return len(YKHO.shape)", "def qC1Y(YKHO):\n return len(YKHO.__shape)", "def qC1...
[ "0.77052057", "0.7653158", "0.7625239", "0.75378406", "0.75341904", "0.7499051", "0.7488297", "0.7488297", "0.7488297", "0.7488297", "0.7488297", "0.7488297", "0.74688643", "0.74663454", "0.74498487", "0.74474937", "0.74083734", "0.7368501", "0.73471725", "0.73471725", "0.732...
0.8146678
0
Returns a string representation of this type, suitable for brief printouts
def zAg0(YKHO): if YKHO.char is None: return 'None' if YKHO.size is None and YKHO.subtype is None: return YKHO.char elif YKHO.subtype is None: return YKHO.char + ' size ' + str(YKHO.size) elif YKHO.size is None: if isinstance(YKHO.subtype, list): return YKHO.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '================' + '\\n' + YKHO.name.upper() + '\\n Type: ' + YKHO.type + '\\n Category: ' + YKHO.cat + '\\n Power: ' + str(YKHO.pow) + '\\n Accuracy: ' + str(YKHO.acc) + '\\n Effect: ' + YKHO.eff + '\\n PP: ' + str(YKHO.pp) + '\\n================'", "def zAg0(YKHO):\n l87X = typ...
[ "0.8412258", "0.8383868", "0.8319127", "0.825885", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0.8168799", "0...
0.0
-1
Returns a shallow copy of this context.
def jth9(YKHO, U1jc=False): Ylbp = cFqH() for Ty9i in YKHO.variables: Ylbp.variables.append(iQnE(Ty9i.name, Ty9i.type, Ylbp)) for Ty9i in Ylbp.variables: Ylbp.variableDict[Ty9i.name] = Ty9i Ylbp.userData = YKHO.userData.copy() def ua6W(VN2L, Ylbp): if isinstance(VN2L, Zn4W):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO) -> 'Context':\n return cFqH(YKHO._dict.copy())", "def jth9(YKHO):\n return cFqH(base_dict=YKHO.base_dict, parent=YKHO.parent, name=YKHO.name + '-copy')", "def jth9(YKHO):\n return YKHO.copyto(YKHO.context)", "def jth9(YKHO):\n Aofo = type(YKHO)(YKHO.in_statement_context)\n Aofo....
[ "0.88430154", "0.8133407", "0.78489304", "0.7779885", "0.76821446", "0.7433793", "0.7398885", "0.7398885", "0.7398885", "0.7398885", "0.739254", "0.73777664", "0.73706114", "0.7359879", "0.7359879", "0.7359879", "0.7359879", "0.7359879", "0.7359879", "0.7359879", "0.7359879",...
0.7144955
100
For a signature tuple, sets the simplifier to func.
def we8G(YKHO, njXK, JfyU, uv6v=False): if YKHO.argNames is not None: if len(njXK) != len(YKHO.argNames): raise ValueError('Invalid signature length') if len(njXK) == 0: raise ValueError('Invalid signature tuple') tk5Y = YKHO.presimplifierDict if uv6v else YKHO.simplifierDict ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L94X(JfyU, SjLr):\n return JfyU(*SjLr)", "def repn(MCGS, WKvO, KCHu, GfdN=False):\n Aofo = None\n if isinstance(MCGS, tuple) and isinstance(WKvO, tuple) and (len(MCGS) == len(WKvO)):\n Aofo = PxVh(MCGS[1:], WKvO[1:], PxVh(MCGS[0], WKvO[0], KCHu, GfdN), GfdN)\n if Aofo is None:\n try...
[ "0.53915054", "0.52865374", "0.5272681", "0.52429396", "0.52036804", "0.5024516", "0.48856837", "0.4870423", "0.4855873", "0.4833728", "0.4826768", "0.47969666", "0.47942567", "0.47635525", "0.47565174", "0.47331354", "0.4723717", "0.47187486", "0.46646", "0.4662604", "0.4651...
0.62527907
0
Returns the output type of this expression.
def utm8(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfmr(YKHO):\n return YKHO.__output_type", "def bfmr(YKHO):\n return YKHO.output_type", "def nSMW(YKHO):\n return YKHO._output_type", "def type(YKHO):\n return YKHO._output_type", "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc...
[ "0.85274035", "0.8474271", "0.84730154", "0.8366964", "0.8082511", "0.8082511", "0.8082511", "0.8082511", "0.8082511", "0.8082511", "0.78629243", "0.7450553", "0.7391919", "0.72734493", "0.72734493", "0.72734493", "0.72734493", "0.72734493", "0.7250561", "0.7219309", "0.72193...
0.0
-1
Returns true if this expression is identically a constant. If so, then the expression can be safely replaced with its evalf() value without any possible change in meaning.
def Ac9L(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def avzC(YKHO):\n return YKHO.is_const", "def avzC(YKHO):\n return False", "def avzC(YKHO):\n return YKHO._is_constant", "def Ac9L(YKHO):\n pass", "def fAGM(YKHO):\n try:\n YKHO.as_py()\n return True\n except HfYo:\n return False", "def lEC2(YKHO) -> bool:\n retu...
[ "0.7181021", "0.7061801", "0.700319", "0.6980866", "0.6857962", "0.6740804", "0.6701821", "0.669687", "0.66736364", "0.6597008", "0.64234704", "0.642118", "0.64078134", "0.63671076", "0.635056", "0.6317684", "0.63076144", "0.62849814", "0.6208172", "0.6205915", "0.6198798", ...
0.6595246
10
Returns true if the evaluation of the expression in the given context results in a constant. If so, then evalf() can safely be applied without error.
def Xv8g(YKHO, QpfX=None): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def avzC(YKHO):\n return YKHO.is_const", "def avzC(YKHO):\n return YKHO._is_constant", "def fAGM(Ty9i, QpfX=None, AZra=False):\n if isinstance(Ty9i, iQnE):\n if Ty9i.value is not None:\n return True\n return False\n elif isinstance(Ty9i, tPEx):\n if AZra and isinstan...
[ "0.6346031", "0.632083", "0.63157463", "0.6260786", "0.62451744", "0.62009305", "0.6199722", "0.61694014", "0.6140097", "0.60970885", "0.6087715", "0.60708785", "0.6028515", "0.59610087", "0.5921374", "0.5909247", "0.58929276", "0.5859872", "0.5852191", "0.5843414", "0.581023...
0.0
-1
Returns a list of all free Variables under this expression. If bound is True, any Variables currently bound to values are returned, otherwise they are not.
def vars(YKHO, QpfX=None, mmRm=False): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RCr9(YKHO):\n if jWwc(YKHO.root):\n return YKHO.first.free_variables()\n if vDzF(YKHO.root):\n return YKHO.first.free_variables() | YKHO.second.free_variables()\n if ct4F(YKHO.root):\n return aw0m.variables(YKHO.first) | aw0m.variables(YKHO.second)\n if b1X4(YKHO.root):\n ...
[ "0.71588874", "0.6874568", "0.66683125", "0.6389022", "0.6293846", "0.62891936", "0.62589514", "0.62202805", "0.6174853", "0.6103776", "0.6054388", "0.6043001", "0.6034038", "0.6027429", "0.6019165", "0.60088366", "0.60088366", "0.6004097", "0.5998518", "0.59968543", "0.59946...
0.6943891
1
Returns true if v represents a 0 value
def Witr(Ty9i): dIT4 = ECzr(Ty9i) if dIT4 is not None: if isinstance(dIT4, oyIN.ndarray): return (dIT4 == 0).all() else: return dIT4 == 0 return ZcNu(Ty9i, 'zero')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Witr(YKHO):\n for BWXx in YKHO._v:\n if BWXx != 0:\n return False\n return True", "def Witr(Ty9i):\n if ZcNu(Ty9i, 'zero'):\n return True\n if isinstance(Ty9i, tPEx):\n return False\n dIT4 = ECzr(Ty9i)\n if dIT4 is not None:\n if isinstance(dIT4, oyIN....
[ "0.8436416", "0.8242922", "0.8108951", "0.7963543", "0.78947955", "0.7858453", "0.78351444", "0.7818284", "0.77639407", "0.7599262", "0.75862586", "0.75072336", "0.74009407", "0.73343766", "0.73290515", "0.73290205", "0.73290205", "0.73036796", "0.72814584", "0.7276847", "0.7...
0.83828974
1
Check whether the pattern is missing square brackets, in a way which does not require the usual parsing. This is a light hack to provide an improved error message in this particular case.
def x3V5(mXDZ): if isinstance(mXDZ, jKi7.string_types): for Z9rn in mXDZ: if Z9rn != '(' and (not Z9rn.isspace()): break if Z9rn == '[': Aofo = True else: Aofo = False else: Aofo = False return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lwl4(KCHu):\n if KCHu.count('[') != 1:\n return True\n if KCHu.count(']') != 1:\n return True\n return False", "def _VTD():\n assert IyPk('([]]]') is False", "def IfNt():\n assert IyPk('(](') is False", "def qgSX():\n assert IyPk('[') is False", "def kt9s():\n assert ...
[ "0.6847174", "0.6386362", "0.63280386", "0.6299271", "0.6131299", "0.59863704", "0.5827266", "0.577513", "0.57165927", "0.5712048", "0.5688217", "0.5676705", "0.56644493", "0.56565547", "0.56064457", "0.56017786", "0.55774385", "0.5514537", "0.5502403", "0.5473334", "0.545850...
0.68173146
1
Test the _post function with wrong_uri.
def jJBX(): DDBf = Cc4e.Openam(openam_url='http://openam.example.com:8080/openam') nPrm = DDBf._post(uri='wrong_uri', data='{}', headers={}) assert not nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sea_(YKHO):\n geh0 = d4y1.post(gxEw('post-upload'))\n assert geh0.status_code == jGRS.HTTP_400_BAD_REQUEST", "def AWhd(YKHO):\n Ylbp = YKHO.app.post('/.html')\n YKHO.assertEqual(Ylbp.status, '303 See Other')\n YKHO.assertEqual(Ylbp.location, 'http://localhost/.ascii')", "def tP_1(YKHO):\n ...
[ "0.69327354", "0.6838006", "0.6806202", "0.6746686", "0.66154546", "0.6611895", "0.6565197", "0.6551747", "0.6549022", "0.6516215", "0.6506439", "0.6506278", "0.6481446", "0.6474503", "0.64735585", "0.64501256", "0.6447209", "0.6438251", "0.6429114", "0.6429114", "0.64192986"...
0.7232042
0