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
Tests that DELETE requests through the API return a 405 (not supported).
def bP5C(YKHO): bD7m = '{0}{1}/'.format(gxEw('api_dispatch_list', args=[YKHO.current_api_version, 'firestations']), YKHO.fire_station.id) Z9rn = i9zE() Z9rn.login(**{'username': 'admin', 'password': 'admin'}) geh0 = Z9rn.delete(bD7m) YKHO.assertEqual(geh0.status_code, 405) YKHO.assertTrue(h9AW.o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _4cr(YKHO):\n geh0 = YKHO.client.delete(YKHO.path)\n YKHO.assertEqual(geh0.status_code, 405)", "def Bk9r(YKHO):\n geh0 = d4y1.delete(gxEw('post-upload'))\n rhwM = 'Method \"DELETE\" not allowed.'\n geh0.data['detail'][0] == rhwM\n assert geh0.status_code == jGRS.HTTP_405_METHOD_NOT_ALLOWED"...
[ "0.8483673", "0.8422963", "0.82312214", "0.81636566", "0.81636566", "0.8158091", "0.8134432", "0.80959827", "0.80762815", "0.80462897", "0.80462897", "0.80034596", "0.79493517", "0.79210746", "0.77412474", "0.77212965", "0.7671004", "0.7670216", "0.7648517", "0.7642839", "0.7...
0.0
-1
Tests the similar departments list view.
def e9Hl(YKHO): Gcbu = Jg87.objects.create(name='Adak Volunteer Fire Department', population=5000) ikRi = Jg87.objects.create(name='Blue Volunteer Fire Department', population=5100) l_e3 = Jg87.objects.create(name='Unrelated Fire Department', population=15000000) Z9rn = i9zE() Z9rn.login(**{'usernam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xTLV(YKHO):\n Gcbu = Jg87.objects.create(name='Adak Volunteer Fire Department', population=None)\n Z9rn = i9zE()\n Z9rn.login(**{'username': 'admin', 'password': 'admin'})\n geh0 = Z9rn.get('/departments?name=adak&state=&region=&fdid=&sortBy=&limit=')\n YKHO.assertTrue(Gcbu in geh0.context['obje...
[ "0.7479714", "0.7321192", "0.72533655", "0.65320945", "0.6471568", "0.6453868", "0.63787085", "0.6082053", "0.6078595", "0.6014646", "0.60113764", "0.5979579", "0.59701735", "0.59552073", "0.59436345", "0.59005123", "0.5887344", "0.5856695", "0.5849713", "0.5834936", "0.58169...
0.8139531
0
Tests functionality associated with updating a FireDepartment's associated government units
def ay0T(YKHO): rOAL('loaddata', 'firecares/firestation/fixtures/test_government_unit_association.json') Gcbu = Jg87.objects.get(pk=86610) C6id = wZ2U.objects.get(pk=9254) hFiK = _XLN.objects.get(pk=31575) Z9rn = i9zE() geh0 = Z9rn.get(gxEw('firedepartment_update_government_units', args=[Gcbu.pk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dAOe(YKHO):\n bD7m = f'/departments/{YKHO.department_uuids[0]}/update'\n _hkX = YKHO.client.get(bD7m)\n YKHO.assertEqual(Xqgu.HTTPStatus.OK, _hkX.status_code)\n YKHO.assertIn('Update department page', _hkX.get_data(as_text=True))\n XmJS = '/departments/incorrect_uuid/update'\n _hkX = YKHO.cli...
[ "0.75358504", "0.72241634", "0.6841681", "0.65584487", "0.6530025", "0.64347595", "0.64347595", "0.6431609", "0.6399439", "0.6398444", "0.635859", "0.6342107", "0.63349867", "0.628353", "0.6281433", "0.6274555", "0.6271639", "0.6230739", "0.6223319", "0.6218388", "0.62183005"...
0.7508906
1
Calculate the most times an item appears in a list contiguously
def lVOC(xpKR): G0Ee = 0 UHFx = 0 for ZfUD in xpKR: if G0Ee == 0: zMrE = ZfUD if zMrE == ZfUD: UHFx += 1 if UHFx > G0Ee: G0Ee = UHFx else: zMrE = ZfUD UHFx = 1 return G0Ee
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ixuD(MUQ4):\n OVtm = None\n if len(MUQ4) == 0:\n return OVtm\n n6mp = -1\n AAbi = {}\n for ZfUD in MUQ4:\n if ZfUD in AAbi:\n AAbi[ZfUD] += 1\n else:\n AAbi[ZfUD] = 1\n if AAbi[ZfUD] > n6mp:\n n6mp = AAbi[ZfUD]\n OVtm = ZfUD...
[ "0.7587904", "0.7330631", "0.7168738", "0.7114982", "0.71026146", "0.6965702", "0.6905239", "0.69043744", "0.68163556", "0.68008196", "0.6716451", "0.66698927", "0.66698927", "0.66698927", "0.66363794", "0.6635089", "0.66221416", "0.65871686", "0.65819937", "0.65776026", "0.6...
0.7347207
1
Replaces the `column_names (tuple)` with the new_column_names_tuple
def RG1s(YKHO, eciu): if eciu.__class__ is tuple: if len(eciu) == YKHO.column_names_counted: YKHO.__dict__['column_names'] = eciu YKHO.__dict__['column_names_idx_lookup'] = {H5ew: or8S for or8S, H5ew in enumerate(eciu)} if len(YKHO.column_names_idx_lookup) != YKHO.column_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def grxX(YKHO, grxX: List[Text]):\n YKHO.columns = grxX", "def dTgK(bOBl, ukjG):\n bOBl.columns = ukjG\n return bOBl", "def a5rL(YKHO, AlVb: Union[List[str], str], ZSvO: Union[List[str], str]) -> uJDI:\n if isinstance(AlVb, str):\n AlVb = [AlVb]\n if isinstance(ZSvO, str):\n ZSvO =...
[ "0.7424923", "0.6932815", "0.680743", "0.674316", "0.63876396", "0.63774955", "0.63272613", "0.6289391", "0.62704086", "0.6246238", "0.622573", "0.6218172", "0.6181125", "0.6166947", "0.6163118", "0.61330575", "0.6097605", "0.60945237", "0.60687846", "0.6047669", "0.6023121",...
0.81330174
0
Get the groups. The actual groupby operation is executed once and then cached for future use.
def WUPY(YKHO): if YKHO._grouped_cache is None: YKHO._grouped_cache = YKHO._do_grouping() return YKHO._grouped_cache
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MvIi():\n return u8YN()", "def Bk0s(YKHO):\n return list(YKHO._groups)", "def ubVI(YKHO):\n if not YKHO._groups:\n N1p7 = YKHO.query(TGt3(YKHO.db).SelectQuery('*', 'groups', None, 'level'))\n YKHO._groups = []\n while not N1p7.EOF:\n rdlD = N1p7.getRow()\n ...
[ "0.82815", "0.8229376", "0.82077485", "0.819925", "0.80854714", "0.80833286", "0.8048077", "0.7996227", "0.796289", "0.79347986", "0.7905781", "0.7905781", "0.78960645", "0.78960645", "0.78960645", "0.78960645", "0.78960645", "0.78960645", "0.78960645", "0.78960645", "0.78820...
0.73287314
60
Respond with the current status of the application in JSON format
async def status(QePW: web.Request) -> jA2G.Response: Aofo = await bfMs(QePW).get_service_status('manager') return jA2G.json_response(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS():\n if QePW.method == 'GET':\n return pz3A({'status': 'OK'})", "def jGRS():\n return pz3A({'status': 'OK'})", "def jGRS():\n return pz3A({'status': 'OK'})", "def jGRS():\n if QePW.method == 'GET':\n _hkX = {'status': 'OK'}\n return pz3A(_hkX)", "def jGRS():\n r...
[ "0.8485808", "0.8477502", "0.8444695", "0.8418264", "0.8362073", "0.83466125", "0.8342588", "0.83033544", "0.83033544", "0.81898713", "0.8171301", "0.8069418", "0.8055705", "0.7943508", "0.7927827", "0.78475183", "0.78396237", "0.7803999", "0.7785206", "0.7765864", "0.7740895...
0.0
-1
Boolean if volume is currently muted.
def qHHI(YKHO): return YKHO.device.get_muted()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHHI(YKHO):\n return YKHO._volume.muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._mute...
[ "0.8912609", "0.8876313", "0.8876313", "0.8876313", "0.8876313", "0.8876313", "0.8876313", "0.8876313", "0.88687724", "0.8857336", "0.88423115", "0.8840626", "0.8806076", "0.88016236", "0.87876433", "0.8767073", "0.8750962", "0.8665265", "0.8185604", "0.806479", "0.7917085", ...
0.89479625
0
Mute (true) or unmute (false) media player.
def eqIa(YKHO, KkzS): yield from YKHO.device.toggle_mute()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkzS(YKHO, KkzS):\n YKHO.zoneCmd('on' if KkzS else 'off', mcmd='PutVolumeMute')", "def YAvG(YKHO, KkzS: bool) -> None:\n JVOJ = 'ON' if KkzS else 'OFF'\n YKHO.telnet_command(f'MU{JVOJ})')", "async def toggle_mute(YKHO):\n oyg0: ESA9.DefaultPlayer = YKHO.bot.lavalink.player_manager.get(YKHO.guil...
[ "0.8107262", "0.80485547", "0.8027478", "0.78744394", "0.78417885", "0.78240407", "0.7797", "0.7754097", "0.7735429", "0.7671322", "0.764625", "0.76303095", "0.7514016", "0.74904096", "0.7483015", "0.74744695", "0.74601704", "0.742337", "0.74163675", "0.74094856", "0.73280627...
0.7058476
29
Pause the media player.
def nsQo(YKHO): yield from YKHO.device.sendkey(1049) YKHO._state = Y9dW YKHO.hass.async_add_job(YKHO.async_update_ha_state())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nakq(YKHO):\n if YKHO._playing:\n YKHO.media_pause()\n else:\n YKHO.media_play()", "def Nakq(YKHO):\n if YKHO._playing:\n YKHO.media_pause()\n else:\n YKHO.media_play()", "def MG0H(YKHO):\n YKHO._speaker.Pause()", "def MG0H(YKHO) -> None:\n YKHO._device.pause...
[ "0.85234004", "0.85234004", "0.8466496", "0.84106636", "0.83987844", "0.8357725", "0.8318293", "0.8292724", "0.8283277", "0.8257672", "0.8163721", "0.8160109", "0.81100464", "0.80945134", "0.8041195", "0.7990781", "0.7964558", "0.79417336", "0.7933418", "0.7928881", "0.792284...
0.76886404
31
Stop the media player.
def PWhW(YKHO): yield from YKHO.device.sendkey(1024) YKHO._state = eod5 YKHO.hass.async_add_job(YKHO.async_update_ha_state())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCyR(YKHO):\n YKHO.media_player.stop()", "def aegW(YKHO):\n YKHO._playing = False\n YKHO._braviarc.media_stop()", "def JCyR(YKHO):\n YKHO.playing = False\n YKHO.playback.stop()", "def JCyR(YKHO):\n YKHO._player.stop()\n YKHO._fire_event(YKHO.Events.STOPPING)", "def JCyR(YKHO):\n ...
[ "0.9112383", "0.85096294", "0.8314033", "0.8310976", "0.8219333", "0.81462526", "0.8046611", "0.8045916", "0.8039869", "0.7982334", "0.79205936", "0.7916691", "0.7894486", "0.7847743", "0.7819879", "0.7763036", "0.7759306", "0.7739483", "0.772729", "0.7670062", "0.7658046", ...
0.7069715
58
Send the play_media command to the media player.
def kDKU(YKHO, tGci, tQOT, **B2fa): if tGci == w2hF: YwkQ = int(tQOT) if YwkQ > 99: yield from YKHO.device.sendkey(1000 + int(YwkQ / 100)) if YwkQ > 9: yield from YKHO.device.sendkey(1000 + int(YwkQ / 10)) yield from YKHO.device.sendkey(1000 - int(YwkQ / 10) *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eIGz(YKHO):\n YKHO.send_media_passthrough_cmd(u_nz.CMD_MEDIA_PLAY, YKHO.sec_ad)", "async def async_media_play(YKHO):\n await YKHO.hass.async_add_executor_job(YKHO._remote.press, 'play')\n YKHO._state = mocT\n YKHO.async_write_ha_state()", "def AUDn(YKHO):\n YKHO._key(uwaB.KEY_PLAY)", "def ...
[ "0.8075356", "0.8021925", "0.7821007", "0.78206366", "0.78088313", "0.7759359", "0.7708058", "0.7604494", "0.75464547", "0.74605536", "0.73480123", "0.7326709", "0.72748023", "0.7263727", "0.7247157", "0.7162839", "0.7160215", "0.71168786", "0.7105468", "0.6956642", "0.690620...
0.7263685
14
List of available input sources.
def oOdw(YKHO): return YKHO._sources_list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oOdw(YKHO) -> x1iM[str]:\n if YKHO.mysources:\n return YKHO.mysources\n return YKHO._get_list('SI')", "def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')", "def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')", "def w1o0(YKHO):...
[ "0.765328", "0.76203656", "0.76203656", "0.7598599", "0.745293", "0.745293", "0.74329925", "0.73871773", "0.7371998", "0.7325716", "0.7312083", "0.7304809", "0.7294203", "0.7252239", "0.7170494", "0.71214986", "0.70619494", "0.70545626", "0.70545626", "0.70510954", "0.7044141...
0.74438626
6
Title of current playing media.
def _0LT(YKHO): return YKHO.device.get_media_title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0LT(YKHO):\n return YKHO._player_dev.current_title", "def _0LT(YKHO) -> str | None:\n ZfUD = YKHO._currently_playing.get('item') or {}\n return ZfUD.get('name')", "def sUzl(YKHO):\n return YKHO.title", "def _0LT(YKHO):\n return YKHO._player_variables.get('file', None)", "def _0LT(YKHO):...
[ "0.9074534", "0.89747256", "0.8637143", "0.8542145", "0.84743965", "0.84743965", "0.84651935", "0.84610105", "0.8393164", "0.836072", "0.8349051", "0.8334617", "0.8311194", "0.82210803", "0.82162136", "0.82001024", "0.81794244", "0.81711113", "0.8170883", "0.81013703", "0.809...
0.8611356
3
Return the state attributes of the sun.
def R1i3(YKHO): return {'last_ws': YKHO.device.ws_state, 'state': YKHO.device.get_state(), 'discovered': YKHO.device.discovered(), 'media_title': YKHO.device.get_media_title()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return {PlJk: 'AirVisual©', QZ1f: YKHO._data.city, ap1L: YKHO._data.country, ut4S: YKHO._data.state, Yi1q: YKHO._data.pollution_info.get('ts')}", "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO.attr\...
[ "0.7055661", "0.69151926", "0.6908501", "0.6905177", "0.6852203", "0.6852203", "0.6852203", "0.6792855", "0.6792855", "0.6792855", "0.6792855", "0.6792855", "0.676937", "0.676937", "0.676937", "0.676937", "0.676937", "0.676937", "0.676937", "0.676937", "0.676937", "0.676937...
0.639695
81
Test case for tag_post
def eNp3(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aOVz(YKHO):\n pass", "def Zt0I(YKHO):\n R9U6 = OhYN.objects.create(title='Test tag', slug='test-tag')\n GTT9 = OhYN.objects.create(title='Test tag 2', slug='test-tag-2')\n pB3N = {'title': 'Test post', 'slug': 'test-post', 'content': 'empyt contemt', 'tags': [R9U6.id, GTT9.id]}\n Ylbp = YKHO.c...
[ "0.75580484", "0.7223752", "0.71966827", "0.70452106", "0.692273", "0.69153494", "0.6909046", "0.684802", "0.6837738", "0.6809315", "0.68012464", "0.6786648", "0.6712894", "0.66090906", "0.66045", "0.65965074", "0.65085375", "0.65005547", "0.64863306", "0.6460822", "0.6460366...
0.91964227
0
The current configuration, as a SimConfig instance.
def GPtr(YKHO) -> o5p_: return YKHO._config
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(YKHO) -> PSrQ:\n return YKHO.simulation.config", "def wOGa(YKHO):\n return YKHO._simulation.getConfiguration()", "def GPtr(YKHO):\n if YKHO._config is None:\n YKHO._config = YKHO.find_config()\n return YKHO._config", "def zKPb(YKHO):\n return YKHO._config", "def Dhbr(YKHO):\n...
[ "0.83212394", "0.77425843", "0.7682955", "0.74940854", "0.746185", "0.74281883", "0.74223113", "0.74092156", "0.74049604", "0.7394625", "0.7394625", "0.73911804", "0.73911804", "0.73911804", "0.73911804", "0.73911804", "0.73911804", "0.73488", "0.73488", "0.73488", "0.7302986...
0.8874991
0
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter.
def cfQO(tvqc, QpfX): print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId']) "\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n " i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])...
[ "0.69183487", "0.6761338", "0.6581284", "0.6488967", "0.64559096", "0.6376288", "0.6285327", "0.6269577", "0.6269369", "0.62448144", "0.62178224", "0.62144256", "0.6193532", "0.6178527", "0.6151685", "0.6142223", "0.61323345", "0.61306185", "0.6051097", "0.6008696", "0.598197...
0.5690304
45
Given a tensor of N x D, converts it into one_hot by filling zeros to non max along every row.
def mQin(nPrm): ywwl, Nq1b = nPrm.shape wo0D = ht2j.max(nPrm, 1)[1] nPrm = kj8B(wo0D, Nq1b) return nPrm.float()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj8B(WKvO, rb7a):\n U5bT = oyIN.zeros((WKvO.shape[0], rb7a), dtype=oyIN.int32)\n U5bT[oyIN.arange(WKvO.shape[0]), WKvO] = 1\n return U5bT", "def kj8B(WKvO, rb7a):\n U5bT = oyIN.zeros((WKvO.shape[0], rb7a))\n U5bT[oyIN.arange(WKvO.shape[0]), WKvO] = 1\n return U5bT", "def LQDo(EcVT):\n ...
[ "0.74742794", "0.7453905", "0.72893393", "0.72137177", "0.7202806", "0.71920466", "0.71851826", "0.7184789", "0.7156476", "0.712913", "0.7081841", "0.7060487", "0.7039715", "0.7037375", "0.7026943", "0.7026943", "0.7026943", "0.7024793", "0.6996491", "0.6991661", "0.6989773",...
0.67538166
53
This view returns a dummy json. It is meant to be used to check whether the server is alive or not
def LeQ0(QePW): return k95d()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KvvM():\n return zdcH({'status': 'OK'}, 200)", "def NMoC(YKHO):\n return Yxsy(pz3A({'Status': \"Oh I, oh, I'm still alive!\"}), 200)", "def LeQ0():\n ZnpV = QrcY.get_model()\n jGRS = 200 if ZnpV else 404\n return WsL5.Response(response='\\n', status=jGRS, mimetype='application/json')", "de...
[ "0.7677475", "0.75582576", "0.72706306", "0.71981966", "0.71975005", "0.71620524", "0.7124716", "0.71241355", "0.71007913", "0.7066291", "0.7028494", "0.7027508", "0.7020244", "0.6932303", "0.6915401", "0.69098103", "0.6846592", "0.68394095", "0.68353564", "0.68345255", "0.68...
0.74820167
2
make parameter grid from given arrays
def R0O3(Sk_F, yvT9=None): Sk_F = [oyIN.asarray(WKvO) for WKvO in Sk_F] yDqo = Sk_F[0].dtype exwG = oyIN.prod([WKvO.size for WKvO in Sk_F]) if yvT9 is None: yvT9 = oyIN.zeros([exwG, len(Sk_F)], dtype=yDqo) r8hN = exwG / Sk_F[0].size yvT9[:, 0] = oyIN.repeat(Sk_F[0], r8hN) if Sk_F[1:]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lm0U(YKHO, Tp7r, OnWS):\n pass", "def Lm0U(Yjog=10, nnyg=10, _1Xe=None):\n Z9rn = []\n for WKvO in range(Yjog + 1):\n for LVAh in range(nnyg + 1):\n if _1Xe:\n for epBp in range(_1Xe):\n Z9rn.append([WKvO, LVAh, epBp])\n else:\n ...
[ "0.6895965", "0.671054", "0.66799474", "0.65176314", "0.6446701", "0.6445346", "0.6404483", "0.6379018", "0.63569695", "0.632057", "0.63178885", "0.62930286", "0.62659574", "0.6248477", "0.62272435", "0.6222358", "0.6222358", "0.6222358", "0.62153715", "0.62091947", "0.619862...
0.6950978
0
Creates and returns the pyamqp SendClient.
def gzMD(*, GPtr, **B2fa): pan_ = B2fa.pop('target') KBnb = B2fa.pop('msg_timeout') return DBt6(GPtr.hostname, pan_, custom_endpoint_address=GPtr.custom_endpoint_address, connection_verify=GPtr.connection_verify, transport_type=GPtr.transport_type, http_proxy=GPtr.http_proxy, socket_timeout=GPtr.socket_time...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gzMD(*, GPtr, **B2fa):\n pan_ = B2fa.pop('target')\n KBnb = B2fa.pop('msg_timeout')\n return H0o9(GPtr.hostname, pan_, custom_endpoint_address=GPtr.custom_endpoint_address, connection_verify=GPtr.connection_verify, transport_type=GPtr.transport_type, http_proxy=GPtr.http_proxy, socket_timeout=GPtr.soc...
[ "0.6874214", "0.65063244", "0.63316214", "0.6177181", "0.6059851", "0.60063785", "0.59719586", "0.59705013", "0.59566617", "0.5951119", "0.59073925", "0.5905246", "0.58947814", "0.58514005", "0.58192056", "0.5796421", "0.57932436", "0.575987", "0.5743153", "0.57425433", "0.57...
0.68366015
1
Return updated auth token.
def MRZM(yBtB): return yBtB.get_token().token
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vu5X(YKHO):\n YKHO.generate_auth_tokens()\n YKHO.save()\n return YKHO.auth_token", "def iPse():\n c5ow = Zul5()\n NT__ = VuvO(identity=c5ow)\n HWsS(NT__, P4t4.config['JWT_IDENTITY_CLAIM'])\n eOtH = {'access_token': NT__}\n return eOtH", "def WGoC(YKHO):\n YKHO.auth.authorize()\n ...
[ "0.7919951", "0.78177595", "0.7633272", "0.7600283", "0.7584863", "0.7435599", "0.7426439", "0.7409514", "0.73915476", "0.7388998", "0.7280936", "0.724791", "0.7146965", "0.7125", "0.71164733", "0.7113665", "0.7113665", "0.7100823", "0.7097546", "0.70962244", "0.7089549", "...
0.80448204
0
Check if the payment policy of the service is free of charge.
def Xc36(FNnv): if FNnv is None: return False if int(FNnv) == 1: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J3vV(YKHO):\n return False", "def J3vV(YKHO):\n if YKHO.prize_type != JM5I.TYPE.CASH:\n return False\n SqGc = YKHO.get_prize()\n MvzV = YKHO.game.gametax_set.get(province=YKHO.bet.agency.province)\n return SqGc <= MvzV.min", "def J3vV(YKHO):\n SqGc = YKHO.get_prize()\n MvzV = YK...
[ "0.6834049", "0.6722788", "0.6715719", "0.6680993", "0.6537495", "0.6452574", "0.6392546", "0.6347442", "0.6335989", "0.6320485", "0.63156", "0.6297144", "0.6274127", "0.62666184", "0.6133319", "0.6096666", "0.60627156", "0.6029686", "0.601776", "0.5969177", "0.5960742", "0...
0.78048724
0
Constructs a controlrate SpecCentroid.
def yFro(Emd4, e2S2=None): cMbd = Emd4._new_expanded(pv_chain=e2S2) return cMbd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6ux(YKHO):\n return qko0(YKHO.impl['centroid'](YKHO))", "def e6ux(YKHO):\n raise NotImplementedError", "def iutz(YKHO) -> None:\n return oyIN.array([Iccc.rand(YKHO._bounds[e_2d].min(), YKHO._bounds[e_2d].max()) for e_2d in range(YKHO.data.shape[1])])", "def g8AV():\n csq2 = (1476, 1243)\n ...
[ "0.611486", "0.603849", "0.59602404", "0.58934385", "0.5794086", "0.57291317", "0.57032645", "0.56740797", "0.5663565", "0.5660723", "0.56323785", "0.5612425", "0.56094986", "0.5607263", "0.55919296", "0.5547493", "0.5517636", "0.5510358", "0.55091023", "0.5487389", "0.544007...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def d6pt(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('index.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629213", "0.7529693", "0.7479302", "0.74448705", "0.743609", "0.7407802", "0.73346424", "0.7298533", "0.71682453", "0.71568376", "0.712158", "0.710697", "0.70952165", "0.7094279", "0.7094211", "0.7077913", "0.7065946", "0.7055057", "0.705485", "0.7035804", "0.70288706", ...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def m1Kt(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('date.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629915", "0.7530281", "0.747995", "0.7445385", "0.7435351", "0.7407896", "0.73353666", "0.7299259", "0.7168976", "0.71561617", "0.7121313", "0.7107573", "0.7095277", "0.70944536", "0.7094294", "0.7077423", "0.70665234", "0.7054708", "0.70542693", "0.70350593", "0.7027869"...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def X5SU(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('date-oldest.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629213", "0.7529693", "0.7479302", "0.74448705", "0.743609", "0.7407802", "0.73346424", "0.7298533", "0.71682453", "0.71568376", "0.712158", "0.710697", "0.70952165", "0.7094279", "0.7094211", "0.7077913", "0.7065946", "0.7055057", "0.705485", "0.7035804", "0.70288706", ...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def AlsS(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('topic.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629213", "0.7529693", "0.7479302", "0.74448705", "0.743609", "0.7407802", "0.73346424", "0.7298533", "0.71682453", "0.71568376", "0.712158", "0.710697", "0.70952165", "0.7094279", "0.7094211", "0.7077913", "0.7065946", "0.7055057", "0.705485", "0.7035804", "0.70288706", ...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def J6l2(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('date_embed.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629213", "0.7529693", "0.7479302", "0.74448705", "0.743609", "0.7407802", "0.73346424", "0.7298533", "0.71682453", "0.71568376", "0.712158", "0.710697", "0.70952165", "0.7094279", "0.7094211", "0.7077913", "0.7065946", "0.7055057", "0.705485", "0.7035804", "0.70288706", ...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def yjPB(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('topic_embed.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629915", "0.7530281", "0.747995", "0.7445385", "0.7435351", "0.7407896", "0.73353666", "0.7299259", "0.7168976", "0.71561617", "0.7121313", "0.7107573", "0.7095277", "0.70944536", "0.7094294", "0.7077423", "0.70665234", "0.7054708", "0.70542693", "0.70350593", "0.7027869"...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def VWvz(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('map.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629213", "0.7529693", "0.7479302", "0.74448705", "0.743609", "0.7407802", "0.73346424", "0.7298533", "0.71682453", "0.71568376", "0.712158", "0.710697", "0.70952165", "0.7094279", "0.7094211", "0.7077913", "0.7065946", "0.7055057", "0.705485", "0.7035804", "0.70288706", ...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def hC8r(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('evidence.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629213", "0.7529693", "0.7479302", "0.74448705", "0.743609", "0.7407802", "0.73346424", "0.7298533", "0.71682453", "0.71568376", "0.712158", "0.710697", "0.70952165", "0.7094279", "0.7094211", "0.7077913", "0.7065946", "0.7055057", "0.705485", "0.7035804", "0.70288706", ...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def AD7d(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('photos.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629213", "0.7529693", "0.7479302", "0.74448705", "0.743609", "0.7407802", "0.73346424", "0.7298533", "0.71682453", "0.71568376", "0.712158", "0.710697", "0.70952165", "0.7094279", "0.7094211", "0.7077913", "0.7065946", "0.7055057", "0.705485", "0.7035804", "0.70288706", ...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def IvSD(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('audio.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629915", "0.7530281", "0.747995", "0.7445385", "0.7435351", "0.7407896", "0.73353666", "0.7299259", "0.7168976", "0.71561617", "0.7121313", "0.7107573", "0.7095277", "0.70944536", "0.7094294", "0.7077423", "0.70665234", "0.7054708", "0.70542693", "0.70350593", "0.7027869"...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def i3Fj(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('liveblog.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629213", "0.7529693", "0.7479302", "0.74448705", "0.743609", "0.7407802", "0.73346424", "0.7298533", "0.71682453", "0.71568376", "0.712158", "0.710697", "0.70952165", "0.7094279", "0.7094211", "0.7077913", "0.7065946", "0.7055057", "0.705485", "0.7035804", "0.70288706", ...
0.0
-1
Example view demonstrating rendering a simple HTML page.
def ZHfI(): QpfX = ACzc() with open('data/featured.json') as eHNT: QpfX['featured'] = qQXR.load(eHNT) return Yxsy(TvZl('beyondferguson.html', **QpfX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qx4h():\n return TvZl('index.html')", "def jR7Y():\n return TvZl('/hello.html')", "def k__4():\n return TvZl('hello.html')", "def d6pt():\n return TvZl('hello.html')", "def szyq(QePW):\n rPXJ = 'index.html'\n QpfX = {}\n return _1tc(request=QePW, template_name=rPXJ, context=QpfX)",...
[ "0.7629213", "0.7529693", "0.7479302", "0.74448705", "0.743609", "0.7407802", "0.73346424", "0.7298533", "0.71682453", "0.71568376", "0.712158", "0.710697", "0.70952165", "0.7094279", "0.7094211", "0.7077913", "0.7065946", "0.7055057", "0.705485", "0.7035804", "0.70288706", ...
0.0
-1
Left addition >>> map(_ + 1, [1, 2, 3]) [2, 3, 4]
def FOdN(YKHO, Elif): return YKHO.binary(Elif, seET.add)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(yv6U):\n return Pusg(lambda jzdc, Fg_i: jzdc + Fg_i, yv6U)", "def _MfV(eHNT, fUYa):\n yvT9 = []\n for WKvO in fUYa:\n yvT9.extend(eHNT(WKvO))\n return yvT9", "def XqC_(eHNT, vC9B):\n return list(map(eHNT, vC9B))", "def EZ94(xYvp, exwG):\n return map(EAdr(exwG), xYvp)", "de...
[ "0.62523574", "0.6204729", "0.61487406", "0.6092188", "0.60389614", "0.60389614", "0.60321873", "0.6019852", "0.60196406", "0.5907699", "0.5862225", "0.585412", "0.58355963", "0.5807253", "0.5779467", "0.576222", "0.5761058", "0.5741169", "0.568971", "0.5676076", "0.56717974"...
0.0
-1
Right addition >>> map(1 + _, [1, 2, 3]) [2, 3, 4]
def K7GD(YKHO, Elif): return YKHO.binary(Elif, seET.add, right=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(yv6U):\n return Pusg(lambda jzdc, Fg_i: jzdc + Fg_i, yv6U)", "def M_t2(sJLK, bCES):\n return [sJLK(ZfUD) for ZfUD in bCES]", "def c1yg(xYvp):\n return Pusg(lambda WKvO, LVAh: WKvO + LVAh, xYvp)", "def _MfV(eHNT, fUYa):\n yvT9 = []\n for WKvO in fUYa:\n yvT9.extend(eHNT(WKvO))\n...
[ "0.645322", "0.6313244", "0.63072854", "0.62775743", "0.62057555", "0.6181128", "0.61809254", "0.6179335", "0.608363", "0.60639673", "0.6042393", "0.6038536", "0.6035952", "0.6009978", "0.6000133", "0.59927267", "0.59796906", "0.59796906", "0.59562385", "0.5955984", "0.592006...
0.0
-1
Less than or equal to operator >>> map(_ >> map(2 <= _, [1, 2, 3]) [False, True, True]
def TPjt(YKHO, Elif): return YKHO.binary(Elif, seET.le)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NA4v(ALYW, Bylp):\n return ALYW <= Bylp", "def G3WP(YKHO):\n return map(lambda KCHu: seET.gt(KCHu[0], KCHu[1]), zip(YKHO.checked_scores, YKHO.unchecked_scores))", "def q47M(WKvO, khtY, LVAh):\n IPme = {'>': seET.gt, '<': seET.lt, '>=': seET.ge, '<=': seET.le, '==': seET.eq, '!=': seET.ne}\n ret...
[ "0.66908765", "0.63547343", "0.6309995", "0.624928", "0.6066679", "0.6060276", "0.60168", "0.6009201", "0.59883296", "0.5972278", "0.5953587", "0.5930137", "0.5919591", "0.5908672", "0.5899088", "0.5896421", "0.5895802", "0.5841688", "0.5828202", "0.58140624", "0.5812661", ...
0.57131904
32
Equal to operator >>> map(_ == 2, [1, 2, 3]) [False, True, False] >>> map(2 == _, [1, 2, 3]) [False, True, False]
def xa14(YKHO, Elif): return YKHO.binary(Elif, seET.eq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saog(JfyU, OxJJ):\n return list(map(JfyU, OxJJ))", "def Bvar(YKHO):\n MCGS = lambda WKvO, LVAh: WKvO + LVAh\n fUYa = [1, 2, 3, 4, 5]\n bEXe = [1, 2, 3, 4, 5]\n YBbd = [2, 4, 6, 8, 10]\n assert SgFP(MCGS, [fUYa, bEXe], multiple=True) == YBbd\n lgNN = lambda epBp: epBp > 5\n YBbd = [6, ...
[ "0.63934153", "0.63623375", "0.63570166", "0.626583", "0.619397", "0.6029552", "0.6002349", "0.58616173", "0.5782197", "0.5770626", "0.5733744", "0.57124597", "0.5703409", "0.5694889", "0.55784416", "0.55396986", "0.54428655", "0.54384387", "0.5422547", "0.53515923", "0.52073...
0.0
-1
Greater than or equal to operator >>> map(_ >= 2, [1, 2, 3]) [False, True, True] >>> map(2 >= _, [1, 2, 3]) [True, True, False]
def Zcf_(YKHO, Elif): return YKHO.binary(Elif, seET.ge)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G3WP(YKHO):\n return map(lambda KCHu: seET.gt(KCHu[0], KCHu[1]), zip(YKHO.checked_scores, YKHO.unchecked_scores))", "def yiMc(EdGI, lcGl):\n return [TpU3 > lcGl for TpU3 in EdGI]", "def jmxi(LFlW, _tIi):\n return LFlW >= _tIi and LFlW != _tIi", "def RMTA(ALYW, Bylp):\n return ALYW >= Bylp", ...
[ "0.60041654", "0.5917329", "0.58149505", "0.58008933", "0.5785583", "0.56561124", "0.56393844", "0.5622899", "0.561", "0.554575", "0.5500208", "0.54715115", "0.54394716", "0.543237", "0.54161376", "0.5376391", "0.5374572", "0.5368501", "0.53521156", "0.5342515", "0.53371644",...
0.0
-1
Greater than operator >>> map(_ > 2, [1, 2, 3]) [False, False, True] >>> map(2 > _, [1, 2, 3]) [True, False, False]
def jmxi(YKHO, Elif): return YKHO.binary(Elif, seET.gt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _5Kr(jzdc, Fg_i):\n return jzdc > Fg_i", "def cfai(YKHO, qIxc):\n return YKHO._op_compare(qIxc, seET.gt)", "def ZZx6(gaYL, StMt):\n return gaYL > StMt", "def oqza(YKHO, qIxc):\n return YKHO._op_compare(qIxc, seET.ge)", "def G3WP(YKHO):\n return map(lambda KCHu: seET.gt(KCHu[0], KCHu[1]),...
[ "0.6325985", "0.6302859", "0.62560654", "0.6168881", "0.61146414", "0.6082629", "0.60219896", "0.6013347", "0.5993807", "0.5968511", "0.59082836", "0.5838319", "0.578179", "0.5734464", "0.57098573", "0.56885886", "0.56768376", "0.5671946", "0.5621083", "0.56076854", "0.553538...
0.55143493
21
Positive operator >>> map(+ _, [1, 2, 3]) [1, 2, 3]
def En_H(YKHO): return YKHO.unary(seET.pos)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M_t2(sJLK, bCES):\n return [sJLK(ZfUD) for ZfUD in bCES]", "def _MfV(eHNT, fUYa):\n yvT9 = []\n for WKvO in fUYa:\n yvT9.extend(eHNT(WKvO))\n return yvT9", "def saog(JfyU, OxJJ):\n return list(map(JfyU, OxJJ))", "def XqC_(eHNT: Callable, *fUYa) -> list:\n return list(map(eHNT, *f...
[ "0.68864423", "0.67544186", "0.67498994", "0.66270113", "0.66270113", "0.6508422", "0.63738096", "0.6349622", "0.62798", "0.6248873", "0.61898005", "0.6159022", "0.6116791", "0.6073358", "0.6059199", "0.60309213", "0.6024744", "0.5999446", "0.5996547", "0.5987985", "0.5964610...
0.0
-1
Returns True if the computer has a pending reboot.
def lmkP(): return Hy7s.path.exists('/run/reboot-required')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmkP():\n return Hy7s.path.exists('/run/reboot-required')", "def lmkP():\n return Hy7s.path.exists('/run/reboot-required')", "def CJa6(YKHO):\n yvT9 = YKHO.__power_management('cycle')\n if yvT9.find(YKHO.features.get('PowerManagementCycle')) is not None:\n return True\n return False",...
[ "0.71683705", "0.7151079", "0.715023", "0.71309596", "0.7103408", "0.69437456", "0.6868938", "0.67824596", "0.6762702", "0.66330767", "0.6621107", "0.65562075", "0.65045375", "0.6456927", "0.6433393", "0.6400185", "0.6366947", "0.6366947", "0.6345563", "0.6323935", "0.6309231...
0.7107328
4
Get the file basename
def aPr_(YKHO): return YKHO._basename
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sYT0(qaEx):\n aPr_ = Hy7s.path.splitext(Hy7s.path.basename(qaEx))[0]\n return aPr_", "def aPr_(YKHO):\n return YKHO._getbyspec('basename')[0]", "def sYT0(nUeQ: Union[str, FileStorage]) -> str:\n Ux0P = xbwC(nUeQ)\n return Hy7s.path.split(Ux0P)[1]", "def v_Ac(VqRE):\n return Hy7s.path.ba...
[ "0.87727326", "0.8686626", "0.8627469", "0.859979", "0.85948944", "0.8560977", "0.8531795", "0.849559", "0.8480872", "0.8477581", "0.84774673", "0.84774673", "0.8459179", "0.8434996", "0.8420819", "0.84012777", "0.8389002", "0.8372838", "0.8362873", "0.8359593", "0.83460987",...
0.8181499
27
Get the process status
def jGRS(YKHO): if hasattr(YKHO, '_status'): return YKHO._status else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PcH7(YKHO):\n return YKHO._process_status", "def p6ya(YKHO, TAVV: int, RDb1: int):\n return YKHO.process_client.status(TAVV, RDb1)", "def lD8x(Ii1o):\n hlel = Yn3K.check_output([f'ps -o state= -p {Ii1o}'], shell=True).decode()\n return hlel", "def PcH7(YKHO, Ii1o):\n try:\n XP5J = O...
[ "0.8803424", "0.8063591", "0.804443", "0.8013825", "0.78688794", "0.78536874", "0.78200537", "0.7657988", "0.7652974", "0.75910705", "0.75793034", "0.75475997", "0.7465626", "0.74434155", "0.73619914", "0.7350641", "0.72947645", "0.72802544", "0.72764266", "0.7168784", "0.715...
0.0
-1
x in self Test scalar or interval x for membership in Set. Note that if x is interval, returning True does not mean that one of intervals equals to x, because there can be an interval larger than x.
def FYXB(YKHO, WKvO): if isinstance(WKvO, Kx1f): bGrB, mrj1 = YKHO.search(WKvO.a) return mrj1 is not None and XpWX(mrj1) and (WKvO.b <= mrj1.b) else: return YKHO.search(WKvO)[1] is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, WKvO):\n if type(WKvO) == tFgz or type(WKvO) == Bme3:\n return YKHO.start <= WKvO <= YKHO.end\n else:\n return YKHO.start <= WKvO.start and WKvO.end <= YKHO.end", "def FYXB(YKHO, Elif):\n if isinstance(Elif, Kx1f):\n for ZfUD in YKHO:\n if Elif in ZfUD:\n ...
[ "0.7479371", "0.7328704", "0.7283529", "0.7194978", "0.71932346", "0.7161302", "0.712635", "0.70376885", "0.69651186", "0.69650275", "0.69101554", "0.69037867", "0.6857425", "0.68455595", "0.6791758", "0.6772852", "0.67580354", "0.67393667", "0.6728415", "0.66784406", "0.6665...
0.7589036
0
self == other Test whether the Set contains all the pieces of the other and vice versa.
def xa14(YKHO, Elif): return isinstance(Elif, fHNa) and YKHO.pieces == Elif.pieces
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif: Any) -> bool:\n if not isinstance(Elif, _DDp):\n return False\n return {tuple(WKvO) for WKvO in YKHO.itersets()} == {tuple(WKvO) for WKvO in Elif.itersets()}", "def Vdqg(YKHO, Elif):\n return not isinstance(Elif, fHNa) or YKHO.pieces != Elif.pieces", "def Pvzg(YKHO, Elif):\...
[ "0.81228244", "0.80653995", "0.79713804", "0.7918158", "0.79083127", "0.7877454", "0.78745174", "0.7861648", "0.78253925", "0.7709328", "0.7709328", "0.7709328", "0.7680608", "0.76592374", "0.7651239", "0.7644101", "0.7636101", "0.7610215", "0.76060027", "0.75987554", "0.7532...
0.871941
0
self != other Test whether the Set contains anything that the other does not contain or vice versa.
def Vdqg(YKHO, Elif): return not isinstance(Elif, fHNa) or YKHO.pieces != Elif.pieces
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: 'CollectionEnrichment') -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: 'Collection') -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: 'Collection') -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: 'TSCollection') -> bool:\n return not YKHO == E...
[ "0.8078726", "0.80762315", "0.80762315", "0.801647", "0.80095845", "0.7923635", "0.7896613", "0.78793454", "0.78793454", "0.7873476", "0.7873476", "0.7873476", "0.7873476", "0.7873476", "0.7866943", "0.7866943", "0.78541726", "0.78541726", "0.78541726", "0.78541726", "0.78541...
0.8893145
0
self > other Test whether the Set is a proper superset of the other.
def jmxi(YKHO, Elif): if not isinstance(Elif, fHNa): raise TypeError('Can only compare to an Set') return YKHO != Elif and YKHO >= Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PhZ_(YKHO, Elif):\n if isinstance(Elif, fHNa):\n return YKHO >= Elif\n else:\n return YKHO >= fHNa(Elif)", "def jmxi(YKHO, Elif):\n return YKHO.issuperset(Elif) and YKHO != Elif", "def jmxi(YKHO, Elif):\n if isinstance(Elif, fHNa):\n if YKHO._length > len(Elif):\n ...
[ "0.87532", "0.8520421", "0.83851737", "0.8330313", "0.824823", "0.8096542", "0.8072013", "0.8050438", "0.8050438", "0.8050438", "0.8037452", "0.8018438", "0.8018438", "0.8018438", "0.80067897", "0.79737747", "0.797104", "0.79630494", "0.79569685", "0.78943676", "0.7841881", ...
0.8279937
4
self >= other Test if the other has not anything that is not in the Set.
def Zcf_(YKHO, Elif): if not isinstance(Elif, fHNa): raise TypeError('Can only compare to an Set') nEeK = 0 EcVT = iter(Elif.pieces) try: WKvO = next(EcVT) while True: HMUk, TNF5 = isinstance(WKvO, Kx1f) and (WKvO.a, WKvO.b) or (WKvO, WKvO) nEeK, XP5J = YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif):\n return YKHO.issuperset(Elif) and YKHO != Elif", "def jmxi(YKHO, Elif):\n if not isinstance(Elif, fHNa):\n raise TypeError('Can only compare to an Set')\n return YKHO != Elif and YKHO >= Elif", "def JWbp(YKHO, Elif):\n return YKHO.issubset(Elif) and YKHO != Elif", "d...
[ "0.85600555", "0.84489", "0.8043625", "0.8004407", "0.7995915", "0.7987836", "0.79601383", "0.79163146", "0.79163146", "0.79163146", "0.7911934", "0.7911934", "0.7911934", "0.7903234", "0.79018414", "0.78281534", "0.778394", "0.77814114", "0.77311003", "0.7719798", "0.7719798...
0.76949275
27
Test if the other has not anything that is not in the Set.
def PhZ_(YKHO, Elif): if isinstance(Elif, fHNa): return YKHO >= Elif else: return YKHO >= fHNa(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not isinstance(Elif, fHNa) or YKHO.pieces != Elif.pieces", "def d3QJ(YKHO, Elif):\n if not isinstance(Elif, fHNa):\n raise TypeError('not a Set')\n return not len(YKHO.connection.sinter(YKHO.pk, Elif.pk))", "def twZS(YKHO, twyM):\n eHtk = [YEnM for YEnM in YKHO...
[ "0.84368265", "0.8052389", "0.77498376", "0.76358324", "0.76358324", "0.76358324", "0.7561315", "0.755155", "0.7547733", "0.75324917", "0.7512606", "0.7445158", "0.74068844", "0.7406186", "0.7405037", "0.7387869", "0.73876244", "0.7383719", "0.73808163", "0.73475003", "0.7347...
0.7318826
25
self <= other Test whether the USSet has not anything that is not in the other.
def TPjt(YKHO, Elif): if not isinstance(Elif, fHNa): raise TypeError('Can only compare to an Set') return NotImplemented
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return YKHO > Elif or YKHO < Elif", "def TPjt(YKHO, Elif):\n _ger = object.__getattribute__(YKHO, '__gt__')(Elif)\n return not _ger", "def jmxi(YKHO, Elif):\n return YKHO.issuperset(Elif) and YKHO != Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(...
[ "0.7653568", "0.761574", "0.75829583", "0.75756115", "0.75756115", "0.75498784", "0.75472873", "0.7545148", "0.75434446", "0.7536614", "0.7532615", "0.75187707", "0.75182897", "0.7511276", "0.7511276", "0.7511276", "0.7511276", "0.7511276", "0.75093555", "0.7502314", "0.74958...
0.0
-1
self < other Test whether the Set is a proper subset of the other.
def JWbp(YKHO, Elif): if not isinstance(Elif, fHNa): raise TypeError('Can only compare to an Set') return NotImplemented
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PhZ_(YKHO, Elif):\n if isinstance(Elif, fHNa):\n return YKHO >= Elif\n else:\n return YKHO >= fHNa(Elif)", "def JWbp(YKHO, Elif):\n if isinstance(Elif, fHNa):\n if YKHO._length < len(Elif):\n return YKHO.issubset(Elif)\n else:\n return False\n els...
[ "0.85974497", "0.8476473", "0.827461", "0.8142703", "0.8135679", "0.8135679", "0.8135679", "0.8119105", "0.8043614", "0.80302393", "0.79754984", "0.7919908", "0.7876274", "0.78626007", "0.78540725", "0.7841386", "0.7817071", "0.7815051", "0.77674216", "0.7762147", "0.7752953"...
0.80253047
10
self &= other Update the Set, removing everything that is not in the other.
def Lqaw(YKHO, Elif): if not isinstance(Elif, fHNa): K1k_ = 'unsupported operand type for &=: %s and %s' raise TypeError(K1k_ % (type(YKHO), type(Elif))) BdN0 = fHNa.__and(YKHO, Elif) YKHO.pieces = BdN0.pieces return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LbTe(YKHO, Elif):\n U5bT = fHNa()\n for LihS in YKHO.elems:\n if LihS in Elif.elems:\n U5bT.elems.append(LihS)\n return U5bT", "def vMlp(YKHO, Elif):\n if not isinstance(Elif, fHNa):\n K1k_ = 'unsupported operand type for -=: %s and %s'\n raise TypeError(K1k_ % (ty...
[ "0.761944", "0.7439317", "0.7432693", "0.7422326", "0.73706037", "0.7320069", "0.7231303", "0.7224874", "0.71196645", "0.7114516", "0.7055876", "0.70523614", "0.7040884", "0.6999246", "0.6955306", "0.6949713", "0.6949016", "0.69483095", "0.6930383", "0.6920756", "0.69037616",...
0.73668534
5
Return a new Set that is an intersection of the Set`s and all the others.
def iQin(YKHO, *wl6z): BdN0 = YKHO.copy() for Elif in wl6z: if isinstance(Elif, fHNa): BdN0 = fHNa.__and(BdN0, Elif) else: BdN0 = fHNa.__and(BdN0, fHNa(Elif)) return BdN0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQin(YKHO, rA0f):\n XMlP = zA7d()\n for YRbF in YKHO:\n if YRbF in rA0f and YRbF not in XMlP:\n XMlP.add(YRbF)\n return XMlP", "def iQin(YKHO, twyM):\n iQin = fHNa()\n wfQS = YKHO if YKHO.length() >= twyM.length() else twyM\n g2pi = YKHO if YKHO.length() < twyM.length() el...
[ "0.81147015", "0.7718726", "0.7710992", "0.76973337", "0.76569885", "0.7608615", "0.75672126", "0.7530578", "0.74969244", "0.73661464", "0.7302866", "0.72868645", "0.72775304", "0.7273923", "0.7264463", "0.7261825", "0.7248094", "0.721807", "0.7198874", "0.71798563", "0.71798...
0.8284305
0
Return True if none of Set`s pieces intersect with the other`s. Sets are disjoint if and only if their intersection is the empty Set.
def d3QJ(YKHO, Elif): YRbF = 0 for WKvO in Elif.pieces: if isinstance(WKvO, Kx1f): YRbF, XP5J = YKHO.search(WKvO.a, YRbF) if XP5J is not None: return False fVVZ, XP5J = YKHO.search(WKvO.b, YRbF) if fVVZ > YRbF: return False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d3QJ(YKHO, Elif):\n if isinstance(Elif, fHNa):\n if len(YKHO & Elif) == 0:\n return True\n else:\n return False\n else:\n raise TypeError", "def U0kq(YKHO):\n return len(YKHO) == len(set(YKHO))", "def d3QJ(YKHO, Elif):\n if not isinstance(Elif, fHNa):\...
[ "0.8023859", "0.77863854", "0.75347024", "0.747754", "0.7306316", "0.7279329", "0.72207564", "0.7207916", "0.71406895", "0.7109631", "0.7066177", "0.7033687", "0.70225793", "0.7008822", "0.7008822", "0.70050955", "0.6977675", "0.6918297", "0.68820995", "0.6870702", "0.6866935...
0.68267137
23
self other Return a new Set with everything that is in the Set but not in the other.
def qjfR(YKHO, Elif): if not isinstance(Elif, fHNa): K1k_ = 'unsupported operand type for -: %s and %s' raise TypeError(K1k_ % (type(YKHO), type(Elif))) BdN0 = YKHO.copy() return fHNa.__sub(BdN0, Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def by6d(YKHO, Elif):\n if isinstance(Elif, fHNa):\n Hvhu = fHNa()\n for LihS in YKHO:\n if LihS not in Elif:\n Hvhu.add(LihS)\n return Hvhu\n else:\n raise TypeError", "def by6d(YKHO, Elif):\n return [ZfUD for ZfUD in YKHO._set if ZfUD not in Elif]"...
[ "0.81604654", "0.80892426", "0.7986874", "0.774122", "0.7706248", "0.76491547", "0.76388955", "0.7622069", "0.76032966", "0.7564908", "0.7562151", "0.7462671", "0.7438335", "0.7408809", "0.737036", "0.7366086", "0.73259676", "0.72999763", "0.72953635", "0.72818947", "0.721352...
0.73758966
14
Return a new Set with pieces in either the Set A or B but not in both.
def Uqe6(k0lF, tjUW): return k0lF - tjUW | tjUW - k0lF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rn1j(YKHO) -> set:\n WTmo = YKHO.first_set.union(YKHO.second_set)\n print('dis cardinality ', len(WTmo))\n return WTmo", "def bdXB(MWrr, MOlU):\n return MWrr ^ MOlU", "def Vdqg(YKHO, Elif):\n return not isinstance(Elif, fHNa) or YKHO.pieces != Elif.pieces", "def by6d(YKHO, Elif):\n retu...
[ "0.7192705", "0.70986813", "0.7051817", "0.7016328", "0.7004017", "0.7004017", "0.6923925", "0.690379", "0.6895559", "0.68781435", "0.68750954", "0.6842295", "0.68249136", "0.6715512", "0.6693829", "0.66832817", "0.664527", "0.6630096", "0.66300905", "0.662268", "0.6600407", ...
0.0
-1
self ^ other Return a new Set with pieces in either the Set or the other but not in both.
def loPh(YKHO, Elif): if not isinstance(Elif, fHNa): K1k_ = 'unsupported operand type for ^: %s and %s' raise TypeError(K1k_ % (type(YKHO), type(Elif))) return fHNa.__xor(YKHO, Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not isinstance(Elif, fHNa) or YKHO.pieces != Elif.pieces", "def qjfR(YKHO, Elif=set):\n return YKHO.__xor__(Elif)", "def by6d(YKHO, Elif):\n if isinstance(Elif, fHNa):\n Hvhu = fHNa()\n for LihS in YKHO:\n if LihS not in Elif:\n Hv...
[ "0.8075867", "0.776602", "0.7580275", "0.75516766", "0.751913", "0.7511292", "0.75039434", "0.7481524", "0.74547213", "0.7410358", "0.73822993", "0.73733586", "0.7342701", "0.7339578", "0.730058", "0.724058", "0.7211828", "0.72110975", "0.7186661", "0.71544474", "0.7127433", ...
0.7471613
8
Return a new Set with pieces in either the Set or the other but not in both.
def _1fz(YKHO, *wl6z): BdN0 = YKHO.copy() for Elif in wl6z: if isinstance(Elif, fHNa): BdN0 = fHNa.__xor(BdN0, Elif) else: BdN0 = fHNa.__xor(BdN0, fHNa(Elif)) return BdN0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not isinstance(Elif, fHNa) or YKHO.pieces != Elif.pieces", "def Rn1j(YKHO) -> set:\n WTmo = YKHO.first_set.union(YKHO.second_set)\n print('dis cardinality ', len(WTmo))\n return WTmo", "def by6d(YKHO, Elif):\n if isinstance(Elif, fHNa):\n Hvhu = fHNa()\n ...
[ "0.7568096", "0.739344", "0.7291191", "0.7250948", "0.7226382", "0.72041315", "0.72006476", "0.710153", "0.70919335", "0.70318156", "0.7023479", "0.7023479", "0.6922924", "0.6910433", "0.6895857", "0.68792063", "0.6877944", "0.6865229", "0.6847553", "0.6836747", "0.6791567", ...
0.7269019
3
Return a copy of the Set. Intervals are recreated. copy is safe as long as endpoint values are of immutable types.
def jth9(YKHO): BdN0 = fHNa() BdN0.pieces = TMdF(YKHO.pieces) return BdN0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return fHNa(YKHO)", "def jth9(YKHO):\n q4DL = YKHO._set.__class__\n RE7Y = q4DL(YKHO._set)\n return NaFD(RE7Y)", "def LcOL(YKHO):\n BdN0 = fHNa()\n if not YKHO.pieces:\n BdN0.pieces.append(UPuP.copy())\n return BdN0\n if YKHO.pieces[0] == UPuP.copy():\n ...
[ "0.6972775", "0.677924", "0.6654227", "0.66516024", "0.65936124", "0.65685135", "0.63172525", "0.630493", "0.62938416", "0.6281559", "0.6276479", "0.62380856", "0.6235553", "0.6153028", "0.6147382", "0.61427224", "0.6098098", "0.60788333", "0.607343", "0.6072537", "0.606514",...
0.6469001
6
Returns the current program config.
def NMoC() -> dict: with open(Hy7s.getcwd() + hp1l.PATH, encoding='UTF-8') as nUeQ: return eJb6.load(nUeQ, Loader=eJb6.FullLoader)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD():\n return wk5E.config", "def tgzD():\n return qot6(None, None).root", "def zKPb(YKHO):\n return YKHO._config", "def tgzD(YKHO):\n GPtr = PSrQ(YKHO.context['CONFIG'])\n kXbn = GPtr.read()\n if kXbn is False:\n GPtr.display_errors()\n HwRy.exit(1)\n return kXbn", ...
[ "0.7795953", "0.76954377", "0.7685794", "0.7519039", "0.74633193", "0.74633193", "0.74633193", "0.74172133", "0.7252744", "0.7251179", "0.72437626", "0.7242415", "0.7242415", "0.7226685", "0.7224794", "0.72001195", "0.71909106", "0.7189798", "0.7151464", "0.71415305", "0.7139...
0.0
-1
stop and clear the serial thread if not yet done, and close the GUI
def FK6a(YKHO): if YKHO.serial_monitor is not None: YKHO.serial_monitor.alive.clear() YKHO.serial_monitor.join(0.001) YKHO.serial_monitor = None YKHO.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uG45(YKHO):\n YKHO.stop_and_reset_thread(ignore_results=True)", "def a9kH():\n global isRun\n iVc8 = False\n MgeT.join()\n f5Bb.write('0\\n'.encode())\n f5Bb.close()\n tk5Y.quit()\n tk5Y.destroy()", "def JCyR(YKHO):\n YKHO.alive = False\n if hasattr(YKHO.serial, 'cancel_read')...
[ "0.70476896", "0.70272416", "0.6928344", "0.68779576", "0.68749666", "0.68541497", "0.6847695", "0.6839301", "0.6817435", "0.68063134", "0.67932004", "0.6774043", "0.67330664", "0.67225605", "0.67161465", "0.67106915", "0.67056745", "0.6683269", "0.668098", "0.6680051", "0.66...
0.68573594
5
Return the number of objects in the cluster containing given object
def BvsR(YKHO, YEnM): return YKHO.weights[YKHO[YEnM]] - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrDG(YKHO):\n return len(YKHO.cluster)", "def A3kS(YKHO) -> int:\n ...", "def A3kS(YKHO) -> int:\n ...", "def GxQV(WhQ6, C3ST, hKn5):\n exwG = 0\n for NrEV in C3ST.neighs[WhQ6]:\n if NrEV in hKn5:\n exwG += 1\n return exwG", "def zuON(YKHO) -> int:\n ...", "def ...
[ "0.73350906", "0.72871184", "0.72871184", "0.6923133", "0.6891329", "0.67812157", "0.6750834", "0.673047", "0.6726185", "0.6710552", "0.67070043", "0.6685178", "0.66745496", "0.6660885", "0.66528404", "0.6651394", "0.6650798", "0.6649075", "0.65949124", "0.655869", "0.6551246...
0.645441
33
Camera input for processing. Returns a grayscale image.
def n6gv(YKHO): nyyK, LNo8 = YKHO.video.read() LNo8 = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2GRAY) U5bT, obBe = XC5k.imencode('.jpg', LNo8) return obBe.tobytes()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qWz7(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)", "def qWz7(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)", "def b8V_(_JNu):\n LNo8 = XC5k.imread(_JNu)\n WUZM = iXC1(LNo8)\n return WUZM", "def qWz7(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)", "de...
[ "0.66448426", "0.66448426", "0.6580595", "0.65423536", "0.65423536", "0.65423536", "0.65423536", "0.6492227", "0.64121675", "0.64121675", "0.64121675", "0.64121675", "0.64121675", "0.6410306", "0.6405779", "0.6354796", "0.63406074", "0.63347113", "0.6296832", "0.6296832", "0....
0.0
-1
Applies an image mask. Only keeps the region of the image defined by the polygon formed from `vertices`. The rest of the image is set to black.
def mWKt(VXjJ, iXlf): ZHfW = oyIN.zeros_like(VXjJ) if len(VXjJ.shape) > 2: M9nc = VXjJ.shape[2] K43N = (255,) * M9nc else: K43N = 255 XC5k.fillPoly(ZHfW, iXlf, K43N) lVtf = XC5k.bitwise_and(VXjJ, ZHfW) return lVtf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWKt(YKHO, VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n else:\n K43N = 255\n XC5k.fillPoly(ZHfW, iXlf, K43N)\n lVtf = XC5k.bitwise_and(VXjJ, ZHfW)\n return lVtf", "def mWKt(YKHO, VXjJ, iXlf):\n ...
[ "0.7599272", "0.7599272", "0.7599272", "0.7599272", "0.7563127", "0.75263363", "0.75109804", "0.7508704", "0.75028646", "0.7500976", "0.7497567", "0.7446616", "0.74363494", "0.74219114", "0.74055547", "0.74055547", "0.7394459", "0.7394459", "0.7394459", "0.7394459", "0.739445...
0.73195386
52
Clean up and close the game.
def quit(YKHO) -> None: a9eO.quit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HySU(YKHO):\n if Ke5A:\n print('Cleaning up')\n a9eO.quit()", "def WFy2(YKHO):\n YKHO.game_display.print_goodbye()\n exit()", "def HySU():\n G9jH.getLogger('main').debug('cleaning up')\n a9eO.quit()", "def oIbz(YKHO):\n a9eO.quit()\n quit()", "def DDI8(YKHO):\n a9eO.qu...
[ "0.8114638", "0.79462713", "0.78495973", "0.7731136", "0.77288103", "0.77288103", "0.7721251", "0.75554466", "0.75478715", "0.7546371", "0.74688065", "0.74494207", "0.74019885", "0.7367955", "0.73519295", "0.7346926", "0.7340029", "0.73215914", "0.73172784", "0.73065084", "0....
0.67918104
90
append given node to the end of the Linked List.
def SStx(YKHO, nPrm): jvSB = YKHO.head while jvSB.next != None: jvSB = jvSB.next jvSB.next = LEY5(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, Q6kx):\n if YKHO.head is None:\n YKHO.head = Q6kx\n else:\n ZbOB = YKHO.head\n while ZbOB:\n if ZbOB._next is None:\n ZbOB._next = Q6kx\n break\n YKHO.size += 1", "def SStx(YKHO, Q6kx):\n if YKHO.head is None:\n YKHO....
[ "0.8223464", "0.81252104", "0.78379315", "0.76940274", "0.76516855", "0.7646732", "0.7643952", "0.760209", "0.75426817", "0.7541475", "0.7504299", "0.7487921", "0.7487812", "0.7487812", "0.74861884", "0.74861884", "0.74861884", "0.7478853", "0.7455709", "0.7425507", "0.742004...
0.738442
22
Get number of elements in linked list.
def szAg(YKHO): UHFx = 0 jvSB = YKHO.head while jvSB != None: UHFx += 1 jvSB = jvSB.next return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n exwG = 0\n AsCw = YKHO.head\n while AsCw != None:\n exwG += 1\n AsCw = AsCw.next\n return exwG", "def len(YKHO):\n jbXL = YKHO.head\n UHFx = 0\n while jbXL.next:\n UHFx += 1\n jbXL = jbXL.next\n return UHFx", "def AQWC(YKHO):\n Q6kx = YKH...
[ "0.8487351", "0.84769154", "0.8461124", "0.84092075", "0.84010243", "0.8385734", "0.8365186", "0.8337522", "0.83366895", "0.8334105", "0.8327227", "0.83266664", "0.8313676", "0.8311645", "0.8311645", "0.8306327", "0.82999414", "0.82945657", "0.8267536", "0.8262112", "0.824971...
0.8343702
7
Initialize a new AuthorizationProfile object with the provided RestSession.
def FIMM(YKHO, cuiw, N9z1, vdpX): TSw_(cuiw, jtXB) super(dsns, YKHO).__init__() YKHO._session = cuiw YKHO._object_factory = N9z1 YKHO._request_validator = vdpX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, cuiw):\n assert isinstance(cuiw, jtXB)\n super(foPe, YKHO).__init__()\n YKHO._session = cuiw", "def FIMM(YKHO, z39Z, **B2fa):\n super(DMju, YKHO).__init__(**B2fa)\n YKHO.profile = z39Z", "def FIMM(YKHO, cuiw, hKde=phIQ):\n YKHO.session = cuiw\n YKHO.rest_client = hKde", "d...
[ "0.6363178", "0.622032", "0.62063855", "0.611577", "0.5899761", "0.5731951", "0.567573", "0.5658152", "0.5613276", "0.55893266", "0.5574084", "0.5573045", "0.55441684", "0.5510975", "0.55052996", "0.54747087", "0.54426533", "0.5412571", "0.53797513", "0.5349377", "0.53459805"...
0.8118181
0
Get AuthorizationProfile by Id.
def njAR(YKHO, id, MOPg=None, **AmXR): TSw_(MOPg, dict) if MOPg is not None: if 'Content-Type' in MOPg: TSw_(MOPg.get('Content-Type'), exCv, may_be_none=False) if 'Accept' in MOPg: TSw_(MOPg.get('Accept'), exCv, may_be_none=False) kmB8 = False kkzV = YKHO._session...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jRq6(YKHO, id, MOPg=None, **AmXR):\n return YKHO.get_authorization_profile_by_id(id=id, headers=MOPg, **AmXR)", "def njAR(YKHO, id, MOPg=None, **AmXR):\n TSw_(MOPg, dict)\n if MOPg is not None:\n if 'Content-Type' in MOPg:\n TSw_(MOPg.get('Content-Type'), exCv, may_be_none=False)\n...
[ "0.83513975", "0.7571584", "0.7258549", "0.72311974", "0.68447244", "0.67622596", "0.6733975", "0.64157313", "0.63844454", "0.6358844", "0.6289252", "0.62235945", "0.6219565", "0.6212303", "0.61903673", "0.6176096", "0.6155105", "0.59547114", "0.59130025", "0.5875441", "0.587...
0.76849157
1
split df to [19802000], [20002010], [20102015]
def UgL9(jQ3Z): P2RW = jQ3Z[(jQ3Z.date >= '1980-01-01') & (jQ3Z.date < '2000-01-01')] Ri5S = jQ3Z[(jQ3Z.date >= '2000-01-01') & (jQ3Z.date < '2010-01-01')] gFt6 = jQ3Z[(jQ3Z.date >= '2010-01-01') & (jQ3Z.date < '2016-01-01')] return (P2RW, Ri5S, gFt6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yqt1(GVWp):\n print('Splitting date...')\n for YRbF in range(0, len(GVWp)):\n GVWp.loc[YRbF, 'month'] = int(GVWp.loc[YRbF, 'date'].split('/')[0])\n GVWp.loc[YRbF, 'day'] = int(GVWp.loc[YRbF, 'date'].split('/')[1])\n GVWp.loc[YRbF, 'year'] = int(GVWp.loc[YRbF, 'date'].split('/')[2])\n...
[ "0.75729966", "0.645135", "0.6422619", "0.6290508", "0.6279466", "0.6137155", "0.61333495", "0.606139", "0.6060221", "0.6023905", "0.599267", "0.5932955", "0.5884865", "0.5872012", "0.57587904", "0.5648406", "0.5632595", "0.56040716", "0.56040716", "0.5574236", "0.5566594", ...
0.67159235
1
Confirm a transaction token and call SO confirmation if it is a success.
def ai_d(YKHO): YKHO.ensure_one() if YKHO.payment_token_id and YKHO.partner_id == YKHO.account_invoice_id.partner_id: try: Oh68 = YKHO.stripe_s2s_do_transaction() except Exception as e: I45O.warning(bGrB('<%s> transaction (%s) failed : <%s>') % (YKHO.acquirer_id.provider,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B82T(YKHO):\n YKHO.ensure_one()\n if YKHO.sale_order_id.state not in ['draft', 'sent', 'sale']:\n I45O.warning('<%s> transaction STATE INCORRECT for order %s (ID %s, state %s)', YKHO.acquirer_id.provider, YKHO.sale_order_id.name, YKHO.sale_order_id.id, YKHO.sale_order_id.state)\n return 'pa...
[ "0.66900444", "0.6657005", "0.66502", "0.65998477", "0.648153", "0.6456764", "0.63606256", "0.6356799", "0.6338716", "0.6299772", "0.6256604", "0.6245378", "0.6230366", "0.6221146", "0.61572975", "0.60826975", "0.6077865", "0.6074054", "0.6073977", "0.6069111", "0.60681635", ...
0.75155026
0
Get the value of the first occurrence of a tag with a given key.
def sdwv(dJ1p, H5ew, WmM4=None, Wk_h=None): if Wk_h is None: Wk_h = lambda WKvO: WKvO return next((Wk_h(a1PO['value']) for a1PO in dJ1p if a1PO['key'] == H5ew), WmM4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, H5ew):\n return YKHO.tags[H5ew] if H5ew in YKHO.tags else None", "def QjTQ(YKHO, H5ew):\n for a1PO in YKHO._tags:\n if a1PO.get_key() == H5ew:\n return a1PO\n return None", "def g8tW(YKHO, H5ew):\n return YKHO[H5ew][0]", "def AQMV(KAOR, H5ew):\n if KAOR.tags is...
[ "0.7677992", "0.75768566", "0.74390584", "0.73714125", "0.72026175", "0.72026175", "0.7121831", "0.6838112", "0.6831598", "0.6822972", "0.6817223", "0.68066746", "0.68024075", "0.6771283", "0.67681223", "0.6762303", "0.6762303", "0.6739115", "0.6731627", "0.6689777", "0.66882...
0.67362404
18
Validate that ROOT admin is NOT able to deploy a VM for admin user in the same domain but in a different account in a shared network with scope=account
def C7Y0(YKHO): YKHO.api_client.connection.apiKey = YKHO.default_apikey YKHO.api_client.connection.securityKey = YKHO.default_secretkey YKHO.vmdata['name'] = YKHO.sharednetworkdata['vmD111']['name'] + '-shared-scope-domain-withsubdomainaccess-root-admin' YKHO.vmdata['displayname'] = YKHO.sharednetworkda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I77f(YKHO):\n YKHO.apiclient.connection.apiKey = YKHO.user_root_apikey\n YKHO.apiclient.connection.securityKey = YKHO.user_root_secretkey\n YKHO.vmdata['name'] = YKHO.acldata['vmROOT']['name'] + '-shared-scope-account'\n YKHO.vmdata['displayname'] = YKHO.acldata['vmROOT']['displayname'] + '-shared-...
[ "0.75921977", "0.7520414", "0.7516526", "0.7441966", "0.7392333", "0.73752576", "0.73557067", "0.7353839", "0.7352386", "0.73451364", "0.7344202", "0.7336157", "0.7333921", "0.73294324", "0.732421", "0.7295903", "0.7288566", "0.7287916", "0.7284395", "0.72775173", "0.7271249"...
0.72717875
20
Validate that ROOT admin is NOT able to deploy a VM for a admin user in a shared network with scope=account which the admin user does not have access to
def h1Ah(YKHO): YKHO.api_client.connection.apiKey = YKHO.default_apikey YKHO.api_client.connection.securityKey = YKHO.default_secretkey YKHO.vmdata['name'] = YKHO.sharednetworkdata['vmD2A']['name'] + '-shared-scope-account-root-admin' YKHO.vmdata['displayname'] = YKHO.sharednetworkdata['vmD2A']['display...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I77f(YKHO):\n YKHO.apiclient.connection.apiKey = YKHO.user_root_apikey\n YKHO.apiclient.connection.securityKey = YKHO.user_root_secretkey\n YKHO.vmdata['name'] = YKHO.acldata['vmROOT']['name'] + '-shared-scope-account'\n YKHO.vmdata['displayname'] = YKHO.acldata['vmROOT']['displayname'] + '-shared-...
[ "0.7536851", "0.7455913", "0.7398135", "0.7376122", "0.7361877", "0.73303604", "0.72609174", "0.7242587", "0.722874", "0.7225141", "0.72033995", "0.71877027", "0.71387804", "0.7124541", "0.7106145", "0.7092559", "0.7064193", "0.70519346", "0.7050944", "0.70467603", "0.7038471...
0.709788
15
Validate that ROOT admin is NOT able to deploy a VM for a user in ROOT domain in a shared network with scope=account which the user does not have access to
def PwD6(YKHO): YKHO.api_client.connection.apiKey = YKHO.default_apikey YKHO.api_client.connection.securityKey = YKHO.default_secretkey YKHO.vmdata['name'] = YKHO.sharednetworkdata['vmROOTA']['name'] + '-shared-scope-account-root-admin' YKHO.vmdata['displayname'] = YKHO.sharednetworkdata['vmROOTA']['dis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fs6V(YKHO):\n YKHO.apiclient.connection.apiKey = YKHO.user_root_apikey\n YKHO.apiclient.connection.securityKey = YKHO.user_root_secretkey\n YKHO.vmdata['name'] = YKHO.acldata['vmROOT']['name'] + '-shared-scope-domain-nosubdomainaccess'\n YKHO.vmdata['displayname'] = YKHO.acldata['vmROOT']['displayn...
[ "0.74147916", "0.7389469", "0.7324639", "0.73102313", "0.7292604", "0.72757846", "0.72071505", "0.71939796", "0.71497744", "0.71461105", "0.71387964", "0.71384394", "0.71268934", "0.71248734", "0.71092063", "0.7052147", "0.70404404", "0.70106244", "0.70005", "0.69989103", "0....
0.7275978
5
Validate that Domain admin is NOT able to deploy a VM for an regular user in ROOT domain in a shared network with scope=account
def iyPh(YKHO): YKHO.api_client.connection.apiKey = YKHO.user_d1_apikey YKHO.api_client.connection.securityKey = YKHO.user_d1_secretkey YKHO.vmdata['name'] = YKHO.sharednetworkdata['vmROOTA']['name'] + '-shared-scope-account-domain-admin' YKHO.vmdata['displayname'] = YKHO.sharednetworkdata['vmROOTA']['d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fs6V(YKHO):\n YKHO.apiclient.connection.apiKey = YKHO.user_root_apikey\n YKHO.apiclient.connection.securityKey = YKHO.user_root_secretkey\n YKHO.vmdata['name'] = YKHO.acldata['vmROOT']['name'] + '-shared-scope-domain-nosubdomainaccess'\n YKHO.vmdata['displayname'] = YKHO.acldata['vmROOT']['displayn...
[ "0.7531565", "0.7431602", "0.7412519", "0.73656064", "0.7329176", "0.73280436", "0.73225176", "0.7310716", "0.72999597", "0.72842246", "0.72420615", "0.7241504", "0.7237069", "0.72309375", "0.7227964", "0.72101223", "0.7193979", "0.71892387", "0.7182441", "0.718201", "0.71699...
0.7166656
21
Flatten and normailze the training and test inputs. Behavior Takes a (m, x_pix, y_pix, 3) input np.ndarray and flattens it into a 2 dimensional (x_pixy_pix3, m) np.ndarray. It then normalizes it by multiplying each value by the norm_factor
def FoC3(C0vK, kKQY, loV2=1 / 255): None FdOj = C0vK.reshape(C0vK.shape[0], -1).T Q2WN = kKQY.reshape(kKQY.shape[0], -1).T CZRf = FdOj * loV2 pZ_I = Q2WN * loV2 return (CZRf, pZ_I)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lvMM():\n JBMS = [0.485, 0.456, 0.406]\n M1Jx = [0.229, 0.224, 0.225]\n Yw_3 = ht2j.zeros(4, 3, 1536, 2048)\n HBfW = KfCj(Yw_3, JBMS, M1Jx)\n print(HBfW.shape)", "def MnBu(nzV8, BVu8):\n\n def NkkI(WKvO):\n JBMS = WKvO.mean(axis=0)\n JBMS = oyIN.repeat(JBMS[oyIN.newaxis, :, :]...
[ "0.7162403", "0.6949301", "0.67895925", "0.6742241", "0.6658233", "0.65036786", "0.64818", "0.64786017", "0.6430205", "0.64224315", "0.64076334", "0.6395095", "0.6393493", "0.6392117", "0.6382651", "0.63532835", "0.63257015", "0.63020325", "0.62984425", "0.6291925", "0.627140...
0.6742893
3
Return a queryset covering time period of length timedelta that is the greenest between starttime and endtime (inclusive).
def OagK(YKHO, R4lU, IElX, fCoM, fCM5=None): if fCM5 is None: usx6 = YKHO.get_queryset().filter(date__range=(R4lU, IElX)).best_guess_points() else: usx6 = YKHO.get_queryset().filter(date__range=(R4lU, IElX), forecast_code=wOwb[fCM5]) xBN0 = {Mkmy.date: Mkmy.fraction_clean for Mkmy in usx6} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w5Oz(Emd4, yKcO, Os4s):\n return Emd4.objects.filter(created_at__gte=yKcO, created_at__lt=Os4s)", "def qMox(YKHO, SEPf, c_i7):\n jQ3Z = YKHO._events_df\n if SEPf:\n jQ3Z = jQ3Z[jQ3Z['start_time'] > SEPf]\n if c_i7:\n jQ3Z = jQ3Z[jQ3Z['end_time'] < c_i7]\n return jQ3Z", "def gX5...
[ "0.617606", "0.61443365", "0.6075302", "0.6054287", "0.5863304", "0.58464533", "0.58115685", "0.5781696", "0.577741", "0.57685167", "0.56730026", "0.5672811", "0.5672293", "0.5643334", "0.56281346", "0.56206137", "0.5603326", "0.55649066", "0.55555254", "0.55454654", "0.55451...
0.6758868
0
Register a datbase model class. Note that in doing this, we do not yet create columns and fields for it, we are simply telling the database manager it exists. It is essential that EVERY model class used in any fashion register itself in this way, so that the tables get created and the manager get set for the modelclass...
def xVRY(YKHO, qsJ6, HyIk): if HyIk not in YKHO.modelclasses: YKHO.modelclasses[HyIk.__name__] = HyIk YKHO.mewlosite.comp('registrymanager').register_class(qsJ6, HyIk) HyIk.set_dbm(YKHO.mewlosite, YKHO) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHbh(YKHO, Emd4):\n B5hb, mWFP = (Emd4._meta.package, Emd4._meta.name)\n vbQv = Emd4.__name__\n if B5hb:\n vbQv = '%s:%s' % (B5hb, vbQv)\n YKHO.model_alias[vbQv] = mWFP\n YKHO.model_cache.setdefault(B5hb, U8Lr())[mWFP] = Emd4\n for Jyyj in YKHO.model_pending.pop(vbQv, []):\n Jyy...
[ "0.705133", "0.67963177", "0.65859973", "0.6491718", "0.63830394", "0.634699", "0.63386875", "0.62986726", "0.62656796", "0.6243377", "0.62407035", "0.60248697", "0.59976035", "0.59832203", "0.5949268", "0.59324175", "0.5924992", "0.5904362", "0.58968735", "0.5861453", "0.585...
0.691059
1
Create relationships for all registered model classes (that haven't already been created).
def FJpI(YKHO): for H5ew, wEf2 in YKHO.modelclasses.iteritems(): YKHO.create_mapper_formodelclass(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zTO5(Emd4):\n if hasattr(Emd4, '_ensured_models'):\n return\n for tsEk in Emd4._REFERRED_MODELS:\n YrZb(tsEk)\n setattr(Emd4, '_ensured_models', True)", "def qmBR(YKHO):\n pass", "def mndl(YKHO):\n zw4e = YKHO.modelclasses.keys()\n for H5ew in zw4e:\n HyIk = YKHO.mode...
[ "0.70681304", "0.67848074", "0.6766282", "0.6763742", "0.6722671", "0.67099667", "0.6658029", "0.6548379", "0.649939", "0.64807016", "0.64408565", "0.64408565", "0.6374708", "0.63731205", "0.6369376", "0.63693243", "0.6367494", "0.6366296", "0.6346547", "0.6327324", "0.631434...
0.66531223
7
A function to calculate confidence intervals (ci) for values given in ``value_col`` for each slice of data (given in ``conditional_cols``) using approximate distributions estimated via ``estimate_empirical_distribution``. The variability of the CI's either come from "value_col" itself or alternatively come from the ``r...
def liez(jQ3Z, _Xss, ljJV=None, lh5G=None, o7bE=[0.005, 0.025, 0.975, 0.995], nhve='normal_fit', cNML=5, jkTB='std_quantiles', hJWK=0.95, mX9q=None, IQJH=None): ZkI7 = ljJV is not None bmml = ljJV if ZkI7 else _Xss jVcp = f'{bmml}_std' WHyn = f'{bmml}_count' BJY9 = HSQD(df=jQ3Z, value_col=bmml, quan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eqr2(YKHO, jVmZ):\n if YKHO.one_sided == 'upper':\n sa8Z = [0, 1 - YKHO.level]\n elif YKHO.one_sided == 'lower':\n sa8Z = [YKHO.level, 1]\n else:\n sa8Z = [YKHO.level / 2, 1 - YKHO.level / 2]\n yuVB = oyIN.zeros(shape=(jVmZ.shape[0], 2))\n yuVB[:, 0] = oyIN.quantile(jVmZ, sa...
[ "0.58571887", "0.52336454", "0.5004298", "0.4964012", "0.49351242", "0.49003488", "0.48363835", "0.48328155", "0.4795952", "0.4793427", "0.47788733", "0.4732608", "0.4724949", "0.4689828", "0.46821344", "0.46727502", "0.46354082", "0.4629611", "0.46148792", "0.46017337", "0.4...
0.78202564
0
Sets the is_public of this GroupEditAction.
def C76K(YKHO, C76K): YKHO._is_public = C76K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n52x(YKHO, n52x):\n YKHO._public = n52x", "def n52x(YKHO, n52x):\n YKHO._public = n52x", "def n52x(YKHO, n52x):\n YKHO._public = n52x", "def n52x(YKHO, n52x):\n YKHO._public = n52x", "def n52x(YKHO, n52x):\n YKHO._public = n52x", "def C76K(YKHO):\n return YKHO.public", "def C76K(Y...
[ "0.65031004", "0.65031004", "0.65031004", "0.65031004", "0.65031004", "0.64885217", "0.641715", "0.641715", "0.641715", "0.6320795", "0.62605023", "0.6193081", "0.6144499", "0.61361194", "0.61361194", "0.6116306", "0.61032414", "0.6090777", "0.608101", "0.60617876", "0.602894...
0.75752175
1
Sets the is_public_topic_admin_only of this GroupEditAction.
def GT95(YKHO, GT95): YKHO._is_public_topic_admin_only = GT95
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEQh(YKHO):\n fEM0 = YKHO.__findUser(YKHO.__userName)\n if fEM0:\n YKHO.editTopicButton.setVisible(fEM0.canChangeTopic())", "def l39d(YKHO):\n return bool(YKHO.__privilege & gJ5q.Operator) or bool(YKHO.__privilege & gJ5q.Admin) or bool(YKHO.__privilege & gJ5q.Owner)", "def bAOt(YKHO):\n ...
[ "0.6241876", "0.5849191", "0.58384144", "0.5824628", "0.58035886", "0.57741183", "0.5643936", "0.5643936", "0.554467", "0.55151874", "0.54394466", "0.53838223", "0.5310489", "0.52871025", "0.52871025", "0.52795506", "0.52739644", "0.5256399", "0.52543294", "0.5238634", "0.520...
0.8580668
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): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Compute IoU between bounding boxes
def ti3F(Bsc6, IUcw, Tuqy): if Tuqy == 'xyxy': GPIy = ht2j.max(Bsc6[:, None, :2], IUcw[:, :2]) Rzz_ = ht2j.min(Bsc6[:, None, 2:], IUcw[:, 2:]) bzU2 = ht2j.prod(Bsc6[:, 2:] - Bsc6[:, :2], dim=1) Eq1k = ht2j.prod(IUcw[:, 2:] - IUcw[:, :2], dim=1) elif Tuqy == 'xywh': GPIy =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aOkw(FlUN, oUSw):\n ab__ = (FlUN[2] - FlUN[0] + 1) * (FlUN[3] - FlUN[1] + 1)\n f0tD = (oUSw[:, 2] - oUSw[:, 0] + 1) * (oUSw[:, 3] - oUSw[:, 1] + 1)\n frsW = oyIN.maximum(FlUN[0], oUSw[:, 0])\n TdlV = oyIN.maximum(FlUN[1], oUSw[:, 1])\n yjMy = oyIN.minimum(FlUN[2], oUSw[:, 2])\n YvNL = oyIN.mi...
[ "0.856243", "0.8492018", "0.8208579", "0.80511904", "0.8006205", "0.79876155", "0.7887147", "0.78771937", "0.78687537", "0.78637594", "0.7857264", "0.7807448", "0.7803931", "0.7796664", "0.77799094", "0.77741027", "0.7770232", "0.7704753", "0.76495475", "0.76415527", "0.76384...
0.0
-1
Returns a numeric code for the first character in a text string
def Wxnj(OaeV, l5Ny): return wLfR(OaeV, l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kShN(Z9rn):\n Wxnj = 0\n if Z9rn == 'A':\n Wxnj = 0\n elif Z9rn == 'U':\n Wxnj = 1\n elif Z9rn == 'G':\n Wxnj = 2\n elif Z9rn == 'C':\n Wxnj = 3\n else:\n Wxnj = 0\n return Wxnj", "def aqIr(hcXw: str) -> int:\n return ord(hcXw.lower()) - 97", "def ...
[ "0.7022438", "0.69600135", "0.6875249", "0.6849275", "0.6742297", "0.66526383", "0.6524307", "0.6521873", "0.64959455", "0.6490143", "0.6479319", "0.6475481", "0.6465705", "0.6462643", "0.6448501", "0.644493", "0.6427227", "0.64168227", "0.64120805", "0.6384035", "0.63731235"...
0.0
-1
Returns a numeric code for the first character in a text string
def wLfR(OaeV, l5Ny): l5Ny = x7vA.to_string(l5Ny, OaeV) if len(l5Ny) == 0: raise ValueError("Text can't be empty") return ord(l5Ny[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kShN(Z9rn):\n Wxnj = 0\n if Z9rn == 'A':\n Wxnj = 0\n elif Z9rn == 'U':\n Wxnj = 1\n elif Z9rn == 'G':\n Wxnj = 2\n elif Z9rn == 'C':\n Wxnj = 3\n else:\n Wxnj = 0\n return Wxnj", "def aqIr(hcXw: str) -> int:\n return ord(hcXw.lower()) - 97", "def ...
[ "0.7022438", "0.69600135", "0.6875249", "0.6849275", "0.6742297", "0.66526383", "0.6524307", "0.6521873", "0.64959455", "0.6490143", "0.6475481", "0.6465705", "0.6462643", "0.6448501", "0.644493", "0.6427227", "0.64168227", "0.64120805", "0.6384035", "0.63731235", "0.6369058"...
0.6479319
10
Returns the remainder after number is divided by divisor
def VlDb(OaeV, FGW3, di96): FGW3 = x7vA.to_decimal(FGW3, OaeV) di96 = x7vA.to_decimal(di96, OaeV) return FGW3 - di96 * tXcD(OaeV, FGW3 / di96)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dcc6(Ddi1, di96):\n return Ddi1 / di96", "def Pq3L(YKHO, FGW3=False):\n if not FGW3 == False:\n YKHO.number = FGW3\n if YKHO.check_result(YKHO.number):\n return YKHO.number\n else:\n VNZG = YKHO.get_digits_count(YKHO.number)\n YRbF = YKHO.number\n while YKHO.get...
[ "0.7446363", "0.7201959", "0.7080457", "0.7062361", "0.7031561", "0.6976639", "0.69458646", "0.69346344", "0.6832305", "0.68289876", "0.6824143", "0.6802304", "0.6797086", "0.6793927", "0.67905724", "0.67905724", "0.67712927", "0.6751962", "0.6726915", "0.6722866", "0.6719744...
0.8194608
0
Returns a random integer number between the numbers you specify
def vYd0(OaeV, es2x, tlxW): es2x = x7vA.to_integer(es2x, OaeV) tlxW = x7vA.to_integer(tlxW, OaeV) return tuKI.randint(es2x, tlxW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W_Vi():\n return tuKI.randrange(0, 10)", "def oRCQ(YKHO, yKcO, JCyR):\n return tuKI.randint(int(yKcO), int(JCyR))", "def cRGv(min, max):\n mLGw = tuKI.randint(min, max)\n return mLGw", "def xVVH(WKvO, LVAh):\n return tuKI.randint(WKvO, LVAh)", "def gkNC(jzdc, Fg_i):\n return ajWY(jzdc...
[ "0.8160917", "0.80475736", "0.7816446", "0.7763877", "0.7729105", "0.7704053", "0.7669296", "0.76618755", "0.7622547", "0.76027244", "0.760196", "0.7591311", "0.7546148", "0.7540524", "0.75280887", "0.7517629", "0.7460199", "0.74505216", "0.7440198", "0.743866", "0.7437121", ...
0.7330676
27
Returns True if the watcher is in active state.
def We04(YKHO, Qxpt): tO9_ = YKHO.call('status', name=Qxpt) return tO9_.get('status', 'unknown') == 'active'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dB3V(YKHO, Qxpt):\n tO9_ = YKHO.call('status', name=Qxpt)\n return tO9_.get('status', 'unknown') in ('active', 'starting')", "def ksfB(YKHO):\n for YRbF in YKHO.state:\n if YRbF == 'STATE_ACTIVE':\n return True\n return False", "def ksfB(YKHO) -> bool:\n return YKHO.state =...
[ "0.8157785", "0.8132321", "0.81030476", "0.8006612", "0.79716635", "0.7938294", "0.7882643", "0.78783906", "0.77733487", "0.77733487", "0.77733487", "0.7764528", "0.7764528", "0.7764528", "0.7764528", "0.7761531", "0.77536273", "0.77511424", "0.77328885", "0.77062756", "0.767...
0.8490055
0
Get the raw data.
def m6Me(YKHO, yKcO=None, JCyR=None, y2EG=None, yvT9=None): oiwi, vRcX = YKHO.sample_id_range if yKcO is None: yKcO = oiwi if JCyR is None: JCyR = vRcX YKHO._fh.seek(YKHO._data_start_position) YKHO._validate_range(yKcO, JCyR) u54L = JCyR - yKcO if u54L <= 0: return oy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SwtT(YKHO):\n ...", "def Ctz2(YKHO):\n return YKHO.raw_data", "def WPdU(YKHO):\n return YKHO._data", "def Ctz2(YKHO):\n return YKHO._data", "def WPdU(YKHO):\n return YKHO.__raw_data", "def SwtT(YKHO):\n raise NotImplementedError", "def SwtT(YKHO):\n raise NotImplementedError", ...
[ "0.8778822", "0.86706746", "0.8545115", "0.8542731", "0.85367966", "0.85193586", "0.85193586", "0.8519337", "0.83744663", "0.8222342", "0.82112503", "0.81235904", "0.80792886", "0.7948824", "0.7906637", "0.78134936", "0.77763695", "0.77763695", "0.7774761", "0.7768748", "0.77...
0.0
-1
Creates a list without duplicates mylist The input list Returns List without the duplicates
def upsm(qFa0): mPVg = [] xFUr = [] for YRbF in qFa0: if YRbF not in mPVg: mPVg.append(YRbF) else: xFUr.append(YRbF) print(f'We found dulicates and pruned the list : {xFUr}\n') return mPVg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDv2(qFa0):\n return list(set(qFa0))", "def cXrt(e5Mv):\n bDFL = set(e5Mv)\n SIKZ = list(bDFL)\n return SIKZ", "def DaEM(IqQl):\n return list(U8Lr.fromkeys(IqQl))", "def dDv2(qFa0):\n return [list(a1PO) for a1PO in set((tuple(U6D_) for U6D_ in qFa0))]", "def iNYw(IqQl):\n S06t = []...
[ "0.85616696", "0.8056189", "0.80147094", "0.7980988", "0.79787296", "0.7882005", "0.78284496", "0.7818501", "0.7815098", "0.77990395", "0.77897483", "0.77439296", "0.7732181", "0.7693845", "0.7663088", "0.76554775", "0.7644228", "0.7632206", "0.7615401", "0.7614851", "0.76086...
0.8156721
1
return [X, y] for modeling from summarized dataframes by dropping columns that are unnessary for modeling
def Y79M(r5Hw, vcn7): Tkbq = {'datacap': ['product_name', 'flight_id', 'jack_seat_count', 'total_passengers', 'total_usage_mb', 'data_per_psn', 'total_revenue_usd', 'data_per_psn', 'total_revenue_usd', 'revenue_per_psn', 'purchase_count', 'takerate', 'datacap', 'timecap_min', 'timecap', 'price_per_min', 'price_per_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EcIH(jQ3Z):\n G9jH.info('preparing the data for training')\n EcVT = jQ3Z.drop('y', axis=1)\n LVAh = jQ3Z['y']\n return (EcVT, LVAh)", "def x0SS(YKHO, xwV6=False):\n YKHO.make_target_variable()\n YKHO.mark_missing(['avg_rating_of_driver'])\n YKHO.drop_na()\n YKHO.make_rating_dummies()\...
[ "0.64849716", "0.6450624", "0.6323748", "0.63056105", "0.62876034", "0.6091242", "0.60744774", "0.60138017", "0.59586245", "0.595539", "0.5952748", "0.59472805", "0.5904242", "0.58941495", "0.58612275", "0.58576524", "0.58569616", "0.5845955", "0.58451563", "0.58386207", "0.5...
0.58266205
20
r"""return mass fractions of all natural isotopes. To convert number fractions to mass fractions, we multiply by A
def NZYQ(k9_c=None, epBp=None): jA3H = i7XY(k9_c, epBp) NHn2 = [] for jzdc, oXaw in jA3H: NHn2.append(jzdc * oXaw) KCHu = sum(NHn2) hnVU = [] for YRbF, (jzdc, oXaw) in enumerate(jA3H): hnVU.append((jzdc, NHn2[YRbF] / KCHu)) return hnVU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H3Cj(YKHO):\n return YKHO.formula.isotope.mass", "def bMbF(YKHO):\n return YKHO.A * ZvCQ", "def I6DH(YKHO, fgxN, yvY1, e7wO, Gaon):\n return epAf.sqrt(uwaB.me ** 2 / (yvY1 * e7wO ** 2 * YKHO._convert_to_half_life(fgxN, Gaon)))", "def D_Xj(Nk6w=1, k0lF=1):\n return I9GQ(Nk6w, k0lF) / (Nk6w + 1...
[ "0.64572585", "0.6412921", "0.6399502", "0.6290171", "0.6051777", "0.6044204", "0.60356516", "0.59519905", "0.5927281", "0.5923598", "0.5913124", "0.5777595", "0.57649696", "0.5756899", "0.5716863", "0.56709915", "0.5661725", "0.56486845", "0.56457967", "0.5642025", "0.563642...
0.62610215
4
r""" returns a MC2 library name given an ARMI nuclide name These are all 6 characters 'U2355', 'ZR S', etc.
def XnPz(mWFP): d3dn = Q7vG(mWFP) return d3dn.mc2id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def djCb(YdXb=None, dVdI=None):\n GEim = None\n if YdXb:\n GEim = qoAI.byMccId[YdXb]\n else:\n GEim = qoAI.byLabel[dVdI]\n return GEim.name\n v8K1.warning('Nuclide with mc2LibName/mc2Label {}/{} had no corresponding ARMI nuclide Name'.format(YdXb, dVdI))\n return None", "def zM6d(...
[ "0.65127057", "0.58402824", "0.5761839", "0.5747577", "0.5635622", "0.5627946", "0.56263465", "0.55463463", "0.55433923", "0.5503274", "0.5486301", "0.54836667", "0.5399596", "0.5389458", "0.5371421", "0.535696", "0.5348897", "0.53354764", "0.5304398", "0.52986604", "0.527790...
0.77507406
0