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
Change the widget's value.
def mokr(YKHO, wEf2): wEf2 = str(wEf2) for FohR in YKHO.rb: FohR.setChecked(FohR.text() == wEf2) FohR.setDown(FohR.text() == wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.8164613", "0.81342715", "0.80459005", "0.80246407", "0.7893645", "0.78935117", "0.7575533", "0.75690585", "0.75590235", "0.7548683", "0.75123805", "0.7453666", "0.74110395", "0.73848647", "0.7379169", "0.7360229", "0.7360229", "0.7360229", "0.7316806", "0.7260266", "0.7256...
0.0
-1
Return the widget's value.
def BWXx(YKHO): return int(YKHO.input.text())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.0
-1
Change the widget's value.
def mokr(YKHO, wEf2): wEf2 = int(wEf2) YKHO.input.setText(str(wEf2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.8164613", "0.81342715", "0.80459005", "0.80246407", "0.78935117", "0.7575533", "0.75690585", "0.75590235", "0.7548683", "0.75123805", "0.7453666", "0.74110395", "0.73848647", "0.7379169", "0.7360229", "0.7360229", "0.7360229", "0.7316806", "0.7260266", "0.72569114", "0.722...
0.7893645
4
Return the widget's value.
def BWXx(YKHO): return float(YKHO.input.text())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.0
-1
Change the widget's value.
def mokr(YKHO, wEf2): wEf2 = float(wEf2) YKHO.input.setText(str(wEf2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.8164613", "0.81342715", "0.80459005", "0.80246407", "0.7893645", "0.78935117", "0.75690585", "0.75590235", "0.7548683", "0.75123805", "0.7453666", "0.74110395", "0.73848647", "0.7379169", "0.7360229", "0.7360229", "0.7360229", "0.7316806", "0.7260266", "0.72569114", "0.722...
0.7575533
6
Return the widget's value.
def BWXx(YKHO): return YKHO.input.getValues()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8618489", "0.7837465", "0.7806361", "0.76970685", "0.76970685", "0.76970685", "0.7691161", "0.7636789", "0.76339215", "0.76339215", "0.75928247", "0.75866276", "0.757809", "0.7571875", "0.7547639", "0.7547639", "0.7547639", "0.75267", "0.7511499", "0.75030684", "0.74901867...
0.0
-1
Change the widget's value.
def mokr(YKHO, wEf2): YKHO.input.setValues(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.81650984", "0.81335413", "0.8046718", "0.80233526", "0.7894542", "0.789224", "0.7573783", "0.7570143", "0.75580525", "0.75474405", "0.7512271", "0.74522203", "0.7410017", "0.73818564", "0.73771447", "0.7359452", "0.7359452", "0.7359452", "0.73161274", "0.72585565", "0.7256...
0.6760889
50
Return the widget's value.
def BWXx(YKHO): return [eHNT.value() for eHNT in YKHO.fields]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.0
-1
Change the widget's value.
def mokr(YKHO, wEf2): for eHNT, Ty9i in zip(YKHO.fields, wEf2): eHNT.setValue(Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.8164613", "0.81342715", "0.80459005", "0.80246407", "0.7893645", "0.78935117", "0.7575533", "0.75690585", "0.75590235", "0.7548683", "0.75123805", "0.7453666", "0.74110395", "0.73848647", "0.7379169", "0.7360229", "0.7360229", "0.7360229", "0.7316806", "0.7260266", "0.7256...
0.0
-1
Change the widget's value.
def mokr(YKHO, BWXx): d7Eb = CsJA.QColor(BWXx).getRgb() YKHO.input.setStyleSheet('* { background-color: rgb(%s,%s,%s) }' % d7Eb[:3]) YKHO.input.setText(str(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.8164613", "0.81342715", "0.80459005", "0.80246407", "0.7893645", "0.78935117", "0.7575533", "0.75690585", "0.75590235", "0.7548683", "0.75123805", "0.7453666", "0.74110395", "0.73848647", "0.7379169", "0.7360229", "0.7360229", "0.7360229", "0.7316806", "0.7260266", "0.7256...
0.0
-1
Change the widget's value.
def mokr(YKHO, wEf2): if wEf2: YKHO.input.setValue(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.8164613", "0.81342715", "0.80459005", "0.80246407", "0.7893645", "0.78935117", "0.7575533", "0.75690585", "0.75590235", "0.7548683", "0.75123805", "0.7453666", "0.74110395", "0.73848647", "0.7360229", "0.7360229", "0.7360229", "0.7316806", "0.7260266", "0.72569114", "0.722...
0.7379169
14
Return the widget's value.
def BWXx(YKHO): if YKHO.isCheckable(): return YKHO.isChecked() else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.0
-1
Change the widget's value.
def mokr(YKHO, wEf2): if YKHO.isCheckable(): YKHO.setChecked(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.81634307", "0.81331855", "0.80457467", "0.80234236", "0.78933406", "0.7892486", "0.7573996", "0.7568683", "0.75586784", "0.7547441", "0.751063", "0.745214", "0.7408914", "0.7382569", "0.73779815", "0.7358218", "0.7358218", "0.7358218", "0.731455", "0.72589403", "0.7255768"...
0.6269658
98
Tests POST on file unauthenticated
def ioP3(YKHO): bD7m = gxEw('file') nPrm = {} geh0 = YKHO.client.post(bD7m, nPrm) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AWhd(YKHO):\n bD7m = gxEw('file')\n nPrm = {}\n YKHO.client.force_authenticate(user=YKHO.test_user_obj)\n geh0 = YKHO.client.post(bD7m, nPrm)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)", "def Jz0j(YKHO):\n bD7m = gxEw('file')\n nPrm = {}\n geh0 = YKHO.clien...
[ "0.7752659", "0.7266007", "0.7110174", "0.69661796", "0.6945237", "0.68660885", "0.6836687", "0.68304443", "0.6820725", "0.6719347", "0.67168397", "0.6686575", "0.6651495", "0.6627669", "0.6626526", "0.6626526", "0.657339", "0.6570174", "0.6562219", "0.6495492", "0.6481062", ...
0.8424144
0
Tests PUT on file with a user who doesn't own the datastore
def NW15(YKHO): bD7m = gxEw('file') nPrm = {'shard_id': YKHO.shard1.id, 'link_id': 'b8866161-0b1f-4a8e-acde-07047313ec8f', 'parent_datastore_id': str(YKHO.test_datastore_obj.id), 'chunk_count': 1, 'size': 512} YKHO.client.force_authenticate(user=YKHO.test_user2_obj) geh0 = YKHO.client.put(bD7m, nPrm) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jz0j(YKHO):\n bD7m = gxEw('file')\n nPrm = {}\n geh0 = YKHO.client.put(bD7m, nPrm)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)", "def YdEn(YKHO):\n bD7m = gxEw('file')\n nPrm = {'shard_id': YKHO.shard1.id, 'link_id': 'b8866161-0b1f-4a8e-acde-07047313ec8f', 'parent_datas...
[ "0.7512838", "0.7058365", "0.6818942", "0.6723851", "0.665037", "0.6530518", "0.65142083", "0.64078647", "0.6284101", "0.62529373", "0.6219782", "0.621801", "0.620902", "0.61986274", "0.61644834", "0.6142557", "0.6134883", "0.613342", "0.6126856", "0.61205983", "0.6109851", ...
0.76804084
0
Tests PUT on file unauthenticated
def Jz0j(YKHO): bD7m = gxEw('file') nPrm = {} geh0 = YKHO.client.put(bD7m, nPrm) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NW15(YKHO):\n bD7m = gxEw('file')\n nPrm = {'shard_id': YKHO.shard1.id, 'link_id': 'b8866161-0b1f-4a8e-acde-07047313ec8f', 'parent_datastore_id': str(YKHO.test_datastore_obj.id), 'chunk_count': 1, 'size': 512}\n YKHO.client.force_authenticate(user=YKHO.test_user2_obj)\n geh0 = YKHO.client.put(bD7m,...
[ "0.7626012", "0.7401775", "0.7173107", "0.67623436", "0.67374367", "0.6728364", "0.6711227", "0.6680001", "0.6642437", "0.6619603", "0.6533711", "0.65131867", "0.65131867", "0.6497745", "0.6460368", "0.64108264", "0.6388223", "0.6373701", "0.63549167", "0.6294441", "0.6233359...
0.8623474
0
Tests GET on file unauthenticated
def LfB4(YKHO): bD7m = gxEw('file', kwargs={'file_id': str(YKHO.file.id)}) nPrm = {} geh0 = YKHO.client.get(bD7m, nPrm) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NCKx(YKHO):\n bD7m = gxEw('file', kwargs={'file_id': str(YKHO.file.id)})\n nPrm = {}\n YKHO.client.force_authenticate(user=YKHO.test_user2_obj)\n geh0 = YKHO.client.get(bD7m, nPrm)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def eTEQ(YKHO):\n del YKHO.client.request_k...
[ "0.7965914", "0.7429487", "0.73475087", "0.7292251", "0.7290932", "0.7225834", "0.72250456", "0.70361984", "0.69749945", "0.69634527", "0.69383645", "0.6899656", "0.6882416", "0.68493575", "0.67811966", "0.6757249", "0.6747454", "0.67469394", "0.66999966", "0.66865456", "0.66...
0.8376965
0
Inspect and promote the last element to satisfy the heap property
def sPqU(YKHO): fNfb = len(YKHO) - 1 GdEd = YKHO._get_parent(fNfb) while GdEd is not None and YKHO._test(GdEd, fNfb): YKHO._exch(GdEd, fNfb) fNfb = GdEd GdEd = YKHO._get_parent(GdEd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENpy(YKHO):\n yKcO = YKHO._parent(len(YKHO) - 1)\n for YRbF in range(yKcO, -1, -1):\n YKHO._down_heap(YRbF)", "def zLux(YKHO):\n RI88 = YKHO.heap_list[1]\n YKHO.heap_list[1] = YKHO.heap_list[YKHO.size]\n YKHO.size = YKHO.size - 1\n ZZEx = YKHO.heap_list.pop()\n YKHO.percolate_down...
[ "0.7209032", "0.7204322", "0.70725787", "0.7039402", "0.7034055", "0.7021225", "0.6941711", "0.6923058", "0.6888912", "0.6870779", "0.68561715", "0.6854089", "0.68402016", "0.6808661", "0.67988247", "0.67911476", "0.6778329", "0.6751484", "0.6751373", "0.6724999", "0.6680802"...
0.0
-1
Return the parent for a given child. If child is root returns None.
def ByGo(YKHO, fNfb): if fNfb == 0: return None a1PO = 1 if fNfb & 1 else 2 return (fNfb - a1PO) / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KwgP(aUGN):\n _AKB = _ofd(n=aUGN.n - 1, x=aUGN.x // 2, y=aUGN.y // 2)\n LFlW = aUGN.x % 2\n tlxW = aUGN.y % 2\n return (_AKB, LFlW, tlxW)", "def PAwq(aUGN: State, wspz: [State]) -> wHLO:\n ACnF = [QTBn for QTBn in wspz if Xpor(QTBn)]\n if not ACnF:\n return None\n ACnF.sort(key=la...
[ "0.69394714", "0.6901768", "0.6880801", "0.6794497", "0.6774906", "0.6743549", "0.6701883", "0.66412795", "0.66393906", "0.6495745", "0.6478589", "0.64264286", "0.6346279", "0.63417375", "0.6336633", "0.6310587", "0.6270332", "0.6258721", "0.6219147", "0.6165097", "0.6157627"...
0.7120068
0
Number of playlists that is marked for offline synchronization.
def Pc_K(YKHO): return _e0h.sp_offline_num_playlists(YKHO._session._sp_session)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QADk(z5kf):\n UHFx = 0\n for SrNr in range(0, len(z5kf)):\n if not oj9T(z5kf, SrNr):\n UHFx = UHFx + 1\n return UHFx", "def LUgU(YKHO):\n return YKHO.proto.details.appDetails.numDownloads", "def UHFx(YKHO):\n return len(YKHO.wallpapers)", "def XKPt():\n return len(fq0k...
[ "0.72183985", "0.66198426", "0.64349097", "0.6376838", "0.6367251", "0.63528526", "0.63002723", "0.628578", "0.6274594", "0.62648314", "0.62559146", "0.616712", "0.6118985", "0.61064416", "0.6072728", "0.60606015", "0.60589707", "0.60473436", "0.6045003", "0.60436404", "0.602...
0.86027527
0
Stops the currently playing track.
def TO83(YKHO): AY4k.Error.maybe_raise(_e0h.sp_session_player_unload(YKHO._session._sp_session))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wTcp(YKHO):\n DCgT = YKHO.get_command_object('StopTrack')\n DCgT()", "def JCyR(YKHO):\n if YKHO.is_playing:\n YKHO.is_playing = False\n YKHO.tstamp_play = None\n YKHO.thread.stop()", "def JCyR(YKHO):\n YKHO.stopped = True", "def JsLC(YKHO):\n YKHO.player.stop()", "de...
[ "0.79150885", "0.77564913", "0.74339575", "0.72337574", "0.71699464", "0.71699464", "0.7169126", "0.7109833", "0.7092249", "0.7066716", "0.69835085", "0.6971127", "0.6954772", "0.69443446", "0.69374263", "0.6933053", "0.6929116", "0.69143456", "0.6896805", "0.6852822", "0.669...
0.0
-1
Returns True if the class we are converting is a subclass of SearchRequest, and False otherwise.
def Enem(YKHO): return ZbWC.search('Search.+Request', YKHO.name) is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kUBT(YKHO, Emd4):\n return isinstance(YKHO, Emd4)", "def sLPk(Emd4):\n return type(Emd4) is SnBA.TypeType and issubclass(Emd4, i5Fk)", "def isinstance(YKHO, fYq9):\n if fYq9 is None:\n return False\n import inspect\n if inspect.isclass(fYq9):\n return isinstance(YKHO, fYq9)\n ...
[ "0.6955812", "0.6614258", "0.6097166", "0.6093385", "0.6074422", "0.6068396", "0.60630846", "0.6048266", "0.60441655", "0.60441655", "0.60441655", "0.60441655", "0.60441655", "0.60441655", "0.6027702", "0.60120237", "0.6008305", "0.6002916", "0.6002916", "0.5977774", "0.59589...
0.65545744
2
Create a black background picture same dimension of original picture
def G61D(VXjJ): jpwo = oyIN.zeros((VXjJ.shape[0], VXjJ.shape[1], 3), oyIN.uint8) jpwo[0:VXjJ.shape[0], 0:VXjJ.shape[1]] = (0, 0, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G61D(VXjJ):\n jpwo = oyIN.zeros((VXjJ.shape[0], VXjJ.shape[1], 3), oyIN.uint8)\n jpwo[0:, 0:] = (0, 0, 0)\n return jpwo", "def Yo7x(NgKA, NAx7):\n mbeh = hnIv.new('1', (NgKA, NAx7), 1)\n return mbeh", "def jpwo(H2v2, TVTK):\n DdqV = G6cS(H2v2, TVTK, [0, 255, 0])\n return DdqV", "def ...
[ "0.6996534", "0.6984226", "0.6963813", "0.6868536", "0.68203586", "0.6755348", "0.6751116", "0.6686289", "0.663069", "0.65891045", "0.6588334", "0.65822417", "0.65449536", "0.6511273", "0.6441599", "0.6432435", "0.64313275", "0.64044607", "0.638811", "0.6316486", "0.6298739",...
0.6975773
2
Set the looping interval.
def GXKD(YKHO, VOlW: float) -> None: YKHO._looping_interval = VOlW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wrGQ(YKHO, VOlW):\n YKHO._interval = VOlW", "def wrGQ(YKHO, VOlW):\n YKHO._interval = VOlW", "def wrGQ(YKHO, WKvO):\n YKHO._base_interval = WKvO", "def j2iY(YKHO, j2iY):\n YKHO._repeat_interval = j2iY", "def VOlW(YKHO, VOlW):\n YKHO._interval = VOlW", "def euVC(YKHO, bDaW):\n bDaW =...
[ "0.70067775", "0.70067775", "0.6704157", "0.65188605", "0.6411603", "0.6411139", "0.62783813", "0.62051964", "0.6125222", "0.611593", "0.60915494", "0.6089724", "0.60281783", "0.5941409", "0.5916258", "0.590815", "0.5877096", "0.5757094", "0.574734", "0.5726518", "0.57196486"...
0.8625491
0
Returns a datetime in the ISO8601 UTC format
def Eei1(JRYC): return JRYC.astimezone(h5YN).strftime('%Y-%m-%dT%H:%M:%SZ')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Weve(ppPa):\n assert not ppPa.utcoffset()\n return ppPa.strftime('%Y-%m-%dT%H:%M:%S.%f') + 'Z'", "def voyN():\n return EMHY(qcWV.datetime.utcnow())", "def UpCw(YEnM: datetime.datetime) -> str:\n return YEnM.replace(tzinfo=qcWV.timezone.utc).isoformat().replace('+00:00', 'Z')", "def WqnM(YKHO)...
[ "0.72437805", "0.7182269", "0.7171575", "0.7161534", "0.7130591", "0.70865774", "0.7071643", "0.70367897", "0.6990853", "0.6949722", "0.69456", "0.6891238", "0.6890162", "0.68323416", "0.68026674", "0.6764128", "0.673723", "0.6712216", "0.66887975", "0.66819733", "0.6681017",...
0.5909755
90
get a new property descriptor object for a field, this property will be used to enable getting/setting the actual value as the field only describes the type and other validation/conversion options, but do not hold the value itself, the vale will be held in the base instance
def guyH(mWFP: str, Jyyj: fields.Field) -> property: g6D8 = f'__{mWFP}' def gJdh(YKHO): """ getter method this property Returns: any: the field value """ if hasattr(YKHO, g6D8): return getattr(YKHO, g6D8) return Jyyj.from_raw(Jyyj.default...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fcLi(AZ9c, IFpB):\n oAJ7 = AZ9c['name_for_methods']\n assert AZ9c['default_value'] is not None, 'MakeComputedStyleBase requires an default value for all fields, none specified for property ' + AZ9c['name']\n if AZ9c['field_template'] in IFpB:\n VKtK = AZ9c['field_template']\n for Jyyj in...
[ "0.62636584", "0.60121363", "0.60121363", "0.60059655", "0.59186065", "0.5917823", "0.57549435", "0.57250744", "0.571623", "0.57017404", "0.5690531", "0.5679348", "0.56779623", "0.56774503", "0.5663694", "0.56347156", "0.560949", "0.5608972", "0.55872804", "0.5584982", "0.557...
0.67542446
0
get a new class with all field attributes replaced by property data descriptors.
def fwuD(Emd4, mWFP: str, PA37: tuple, o8Kj: dict) -> type: Leb6 = {} QRRV = {} for icuO in PA37: if hasattr(icuO, '_fields'): QRRV.update(icuO._fields) o8Kj.update(QRRV) qCaA = {} for H5ew in o8Kj: YEnM = o8Kj[H5ew] if isinstance(YEnM, V_D6.Field): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwuD(dSmw, mWFP, gitN, o8Kj):\n l7c4 = o8Kj.get('dynaproperties', {})\n for H5ew, BWXx in l7c4.iteritems():\n o8Kj[H5ew] = BWXx\n return super(CfxH, dSmw).__new__(dSmw, mWFP, gitN, o8Kj)", "def Cc7Y(Emd4, **B2fa):\n M_Yt = Emd4()\n V_D6 = TnMw(Emd4)\n V_D6 = dict(((Jyyj.field_name, J...
[ "0.6741659", "0.6596639", "0.65899366", "0.6436674", "0.63820106", "0.63327616", "0.62057453", "0.61706173", "0.6122545", "0.61194694", "0.5997487", "0.59106374", "0.5861464", "0.58340454", "0.5720563", "0.57020956", "0.56830716", "0.5669115", "0.56587535", "0.56511825", "0.5...
0.6757574
0
base class implementation for any class with fields which supports getting/setting raw data for any instance fields. any instance can have an optional name and a parent. ```python
def FIMM(YKHO, rF3v=None, JWDB=None, **hkxX): YKHO.__parent = rF3v YKHO.__instance_name = JWDB YKHO._factories = {} for mWFP, Jyyj in YKHO._get_fields().items(): if isinstance(Jyyj, V_D6.Factory): BWXx = Jyyj.factory_type(Jyyj.type, name_=mWFP, parent_instance_=YKHO) YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, mWFP, ZJe_, HK3E):\n super().__init__(mWFP, ZJe_)\n 'Define own properties in children class'\n YKHO.billing = HK3E", "def FIMM(YKHO, _AKB: TgnObject, **nPrm: str) -> None:\n super().__init__()\n YKHO._data = {}\n YKHO.objects = U8Lr()\n YKHO._set_data(**nPrm)\n YKHO._data[...
[ "0.6448269", "0.62080926", "0.62060744", "0.6179797", "0.6081988", "0.6061282", "0.60211796", "0.6017866", "0.6016089", "0.5994971", "0.5975353", "0.59096503", "0.59085906", "0.58942974", "0.58819133", "0.5874986", "0.5864089", "0.5853534", "0.58503026", "0.58267725", "0.5814...
0.67221147
0
set current instance name
def zZ0l(YKHO, mWFP): YKHO.__instance_name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zeTD(YKHO, zeTD):\n YKHO._instance_name = zeTD", "def WZrJ(YKHO, mWFP):\n YKHO._name = n_Rt", "def WZrJ(YKHO, mWFP):\n YKHO.class_name = mWFP", "def ZUM3(YKHO):\n if YKHO.instance is not None:\n return '%s_%s' % (YKHO.name, YKHO.instance)\n else:\n return YKHO.name", "def a...
[ "0.8216543", "0.7283299", "0.71977305", "0.716456", "0.71362364", "0.7125649", "0.7078434", "0.70502263", "0.69848585", "0.69477206", "0.69333655", "0.68378365", "0.68378365", "0.68378365", "0.68378365", "0.68340784", "0.6825455", "0.6825455", "0.6825455", "0.6825455", "0.682...
0.8581111
0
get an instance from a dict ```python
def jG8h(Emd4, nPrm): KAOR = Emd4() KAOR._set_data(nPrm) return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, ...
[ "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "0.7040449", "...
0.0
-1
A domain name represented as a sequence of labels, where each label consists of a length octet followed by that number of octets. The domain name terminates with the zero length octet for the null label of the root.
def W1mG(): qGvi = b'\x07example\x03com\x00' '\n A two octet code which specifies the type of the query.\n The values for this field include all codes valid for a\n TYPE field, together with some more general codes which\n can match more than one type of RR.\n ' aMoq = b'\x00\x01' '\n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Njhs(Csk6):\n CCrh = MTrT(Csk6)\n CCrh.pop(0)\n return F71q(CCrh)", "def kTGW(YKHO, mWFP):\n if not isinstance(mWFP, SDb_.dns.DNSLabel):\n mWFP = SDb_.dns.DNSLabel(mWFP)\n if len(mWFP) > 253:\n raise SDb_.dns.DNSLabelError('Domain label too long: %r' % mWFP)\n mWFP = list(mWFP...
[ "0.62829083", "0.6096502", "0.5893731", "0.58364475", "0.5501817", "0.54517794", "0.54386926", "0.5414825", "0.54074854", "0.5312327", "0.5299121", "0.5286002", "0.5267979", "0.5242896", "0.52235526", "0.52235526", "0.5200697", "0.5197403", "0.5197403", "0.50467134", "0.50391...
0.0
-1
Get principal components for each group as vectors. Vectors can then be used to annotate graphs.
def zhX1(bOBl, xEOs=None): KFpL = list() if xEOs is None: g3aq = dFTY(bOBl) Ty9i = SG6W(g3aq) KFpL.append(Ty9i) else: qDyV = bOBl.groupby(xEOs) for uOe2, nPrm in qDyV: g3aq = dFTY(nPrm) Ty9i = SG6W(g3aq) KFpL.append(Ty9i) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LpPS(Kiac, tpio=2):\n zxDJ = EHUa(n_components=tpio)\n Sa_m = txNa()\n LVAh = Kiac.loc[:, ['Label']].values\n WKvO = rLdf.DataFrame(Kiac['Vector'].tolist())\n WKvO = Sa_m.fit_transform(WKvO)\n ipQ8 = zxDJ.fit_transform(WKvO)\n li8T = rLdf.DataFrame(data=ipQ8)\n Kiac['Vector'] = li8T.val...
[ "0.6633548", "0.6501782", "0.64948344", "0.63673437", "0.6301872", "0.6166161", "0.60992414", "0.6068504", "0.60426587", "0.60334784", "0.6026655", "0.5925093", "0.5898814", "0.5898383", "0.57988095", "0.5725366", "0.5688086", "0.56405854", "0.56040853", "0.559885", "0.555161...
0.5636186
18
Returns 2D unit vector in direction of uncontrolled manifold.
def lYb7(y4fz=None, EBgd=None): if y4fz is None: y4fz = oyIN.array([25, 100]) if EBgd is None: EBgd = oyIN.array([100, 25]) vfuS = EBgd - y4fz vfuS = vfuS / oyIN.linalg.norm(vfuS) return vfuS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXGI():\n return DKJk(0, 1)", "def PXGI(YKHO):\n return lNLu(YKHO.x / YKHO.length(), YKHO.y / YKHO.length())", "def PXGI(XSoh):\n return lNLu(0, -1).rotate(XSoh)", "def tm2k(YKHO):\n if YKHO.is_zero():\n return lNLu(0, 0, 0)\n else:\n YXbZ = YKHO.l2_norm()\n return lNL...
[ "0.73797184", "0.7079676", "0.7035807", "0.69459254", "0.6938189", "0.6764016", "0.66703093", "0.66608363", "0.66475135", "0.6596861", "0.6596861", "0.6596861", "0.65925646", "0.65640414", "0.65605986", "0.6541429", "0.6511837", "0.6501078", "0.6501078", "0.6501078", "0.65010...
0.5924094
70
Get a vector that is orthogonal to vec and has same length.
def Z0qC(he6J): HJVe = oyIN.array([-he6J[1], he6J[0]]) return HJVe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fWWE(Ty9i):\n return oyIN.array([-Ty9i[1], Ty9i[0]])", "def q13M(iArr: ModelParameters) -> z0p7:\n UDvL = dsqR(iArr)\n UDvL = UDvL - UDvL.dot(iArr) * iArr / epAf.pow(iArr.model_norm(2), 2)\n return UDvL", "def tP4o(iArr):\n return (-1 * iArr[1], iArr[0])", "def fWWE(ROpF):\n PYIQ = (ROp...
[ "0.79699546", "0.78229326", "0.782159", "0.7100014", "0.6910409", "0.6701473", "0.65584576", "0.65008396", "0.64585507", "0.63431656", "0.63099426", "0.63004905", "0.62967134", "0.62808675", "0.6217863", "0.61572903", "0.6153107", "0.61404115", "0.61301965", "0.61055833", "0....
0.8337211
0
Returns coefficients a and b in x = avec_ucm + bvec_ortho with x being the difference of a data point and the mean. Projection is computed using a transformation matrix with ucm parallel and orthogonal vectors as basis.
def bOBY(LTIa, O1LR): BMqz = Z0qC(O1LR) k0lF = oyIN.vstack((O1LR, BMqz)).T ezF6 = LTIa - LTIa.mean() GUUu = ezF6 @ k0lF GUUu.columns = ['parallel', 'orthogonal'] return GUUu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bNKA(wYuP, P6bq):\n jzdc = oyIN.matmul(wYuP, P6bq)\n Ylbp = oyIN.matmul(P6bq, jzdc.T)\n return Ylbp", "def sta2(KwKv, YBrO, Qz2I):\n hQHm = oyIN.subtract(KwKv, Qz2I)\n jlSq = oyIN.subtract(KwKv, YBrO)\n mhAC = oyIN.cross(hQHm, jlSq)\n V4se = uYu4(mhAC)\n return V4se", "def jEUu(YKHO...
[ "0.53170663", "0.527942", "0.51499736", "0.5103482", "0.5076025", "0.506706", "0.506189", "0.5049584", "0.50066495", "0.49553856", "0.4954054", "0.48910704", "0.48879737", "0.4825265", "0.48229244", "0.4817381", "0.48025677", "0.47988865", "0.47755438", "0.4752021", "0.475167...
0.59730095
0
Tests whether there is considerable deviation from a normal distribution. If no deviation could be detected, we don't know much about the distribution. Independent normality tests use the ShapiroWilk method. Multivariate tests use the HenzeZirkler multivariate normality test.
def c8QL(jQ3Z, ZLJ_, _OlT=False): if _OlT: BpYe, XP5J = jQ3Z.groupby(['user', 'block'])[ZLJ_].apply(g74T.multivariate_normality) Ylbp = jQ3Z.groupby(['user', 'block'])[['df1', 'df2']].apply(g74T.multivariate_normality).apply(rLdf.Series).rename(columns={0: 'normal', 1: 'p'}) else: Ylbp =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F8vN(YKHO):\n YKHO.assertEqual(z2bo(Kt9y, sample=False), oyIN.std(Kt9y))\n YKHO.assertEqual(z2bo(Kt9y), oyIN.std(Kt9y, ddof=1))", "def Tx7I(YKHO):\n print('test 2: normal distributions')\n JBMS = YKHO.means[0]\n wgnM = YKHO.dispersions[0]\n for YRbF, WKvO in enumerate(YKHO.X):\n prin...
[ "0.6919491", "0.664252", "0.65996706", "0.6537072", "0.6537072", "0.6488099", "0.6476006", "0.6475181", "0.6451581", "0.643908", "0.6390576", "0.6390576", "0.63825583", "0.6340337", "0.6335496", "0.63261", "0.6264083", "0.6231583", "0.6198118", "0.61954486", "0.619501", "0....
0.5951867
47
For comparing two objects of the same model
def xa14(YKHO, Elif): if YKHO.__class__ != Elif.__class__: return False if YKHO.primary != Elif.primary: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M6FG(YKHO):\n\n class EqualityModel0(wOed):\n _sei = ZLJ_.Integer(primary_key=True)\n\n class EqualityModel1(wOed):\n ERMG = ZLJ_.Integer(primary_key=True)\n g3eu = vksu(pk=0)\n gpRq = gv9u(kk=1)\n YKHO.assertEqual(g3eu, g3eu)\n YKHO.assertNotEqual(g3eu, gpRq)", "def M6FG(YKHO...
[ "0.7782331", "0.7771082", "0.77151304", "0.7576283", "0.7541877", "0.7446219", "0.7392344", "0.7275335", "0.7142937", "0.70192295", "0.69918585", "0.6979135", "0.69612825", "0.69044703", "0.69005966", "0.6891177", "0.6873375", "0.6845887", "0.6835001", "0.683161", "0.6826421"...
0.0
-1
Get datetime and return formatted string
def EUP2(): gc0R = qcWV.datetime.now() return '%04d%02d%02d-%02d:%02d:%02d' % (gc0R.year, gc0R.month, gc0R.day, gc0R.hour, gc0R.minute, gc0R.second)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7Na():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime())", "def Wq7q(YKHO, JRYC):\n if RlMg == '':\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', JRYC.timetuple())\n else:\n return ITS7.strftime(RlMg, JRYC.timetuple())", "def cTxh():\n return qcWV.now().strftime(dDFw)", ...
[ "0.7883391", "0.78338957", "0.7743146", "0.736925", "0.7311836", "0.7207552", "0.720648", "0.71460825", "0.71427226", "0.7134697", "0.71107453", "0.71107453", "0.70890594", "0.7079677", "0.7054055", "0.70503676", "0.7035276", "0.70123863", "0.6984007", "0.6954821", "0.6944794...
0.0
-1
Create a file name based on settings.py variables Note image numbering will not be saved but will be inferred from the last image name using get_last_counter() function. If the last image file name is not a number sequence file then numbering will start from imageNumStart variable and may overwrite previous number sequ...
def g_2H(Kp4Y, aYCR, Y8q7): if _w2z: qaEx = Kp4Y + '/' + aYCR + str(Y8q7) + '.jpg' else: gc0R = qcWV.datetime.now() qaEx = '%s/%s%04d%02d%02d-%02d%02d%02d.jpg' % (Kp4Y, aYCR, gc0R.year, gc0R.month, gc0R.day, gc0R.hour, gc0R.minute, gc0R.second) return qaEx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kBpi(YKHO):\n return f'{YKHO.image_count:05}' if YKHO.sequential_naming else qcWV.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')", "def lits():\n wzkt = qcWV.now().strftime('%a-%w-%b-%H:%M:%S')\n return 'CCTV_{0}.jpg'.format(wzkt)", "def MiTW(YKHO):\n d6pt = YKHO.helpers.alpha_uuid()\n Ux0P = ...
[ "0.7332335", "0.7269702", "0.71892095", "0.7092047", "0.7070344", "0.6906071", "0.67635506", "0.6743491", "0.6650507", "0.6636983", "0.66362214", "0.6628076", "0.66172546", "0.65974015", "0.655586", "0.6503115", "0.64914685", "0.6473188", "0.64111376", "0.635552", "0.6350939"...
0.68097144
6
Returns a list of all field names on the instance.
def QckB(YKHO): V_D6 = [] for eHNT in YKHO._meta.fields: IznC = eHNT.name uwd0 = 'get_' + IznC + '_display' if hasattr(YKHO, uwd0): BWXx = getattr(YKHO, uwd0)() else: try: BWXx = getattr(YKHO, IznC) except mv1M.DoesNotExist: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FAz_(Emd4) -> x1iM:\n return list((Jyyj.name for Jyyj in nf7Q.fields(Emd4)))", "def zJN_(Emd4):\n return Emd4._meta.get_field_names()", "def NSNj(YKHO):\n return YKHO._names", "def qPqU(YKHO):\n return YKHO.__fieldNames", "def zJN_(YKHO):\n return YKHO._keys", "def zJN_(YKHO):\n ret...
[ "0.85165054", "0.8455776", "0.83252025", "0.831076", "0.8289615", "0.8282349", "0.80371535", "0.7991998", "0.7978423", "0.796092", "0.79292834", "0.78528595", "0.7833529", "0.7798423", "0.77685726", "0.7739057", "0.76987565", "0.76074624", "0.7534721", "0.753396", "0.7507191"...
0.6511627
77
Set some specific loggers to `INFO` level.
def dP1z(): for bo34 in Y2t2: G9jH.getLogger(bo34).setLevel(G9jH.INFO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ujSR(Ry7x=['vaex']):\n aQ22(Ry7x, G9jH.INFO)", "def U34r(*qIxc, **B2fa) -> None:\n assert RdPg.active_loggers\n for bo34 in RdPg.active_loggers:\n bo34.info(*qIxc, **B2fa)", "def vUIa():\n aG11(G9jH.INFO, '%(asctime)s %(levelname)s:%(name)s:%(message)s')", "def s9eO(wiAm: int=0) -> Non...
[ "0.82853645", "0.7106168", "0.6905257", "0.6565394", "0.6547133", "0.6499193", "0.6496912", "0.6479103", "0.6328484", "0.6280059", "0.62240595", "0.5995724", "0.5975346", "0.59023815", "0.58690083", "0.5848318", "0.58460593", "0.5824303", "0.58190125", "0.58115554", "0.580827...
0.77254915
1
Returns current year's month number. Each year has 48 weeks and each month has 4 weeks.
def MRC9(YKHO): return epAf.ceil(YKHO.wcount % 48 / 4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u9r8() -> int:\n return qcWV.now().month", "def x0eS(YKHO) -> int:\n return YKHO.arxiv_id.month", "def x0eS(YKHO) -> int:\n if YKHO.is_old_style:\n return int(YKHO.split('/', 1)[1][2:4])\n return int(YKHO[2:4])", "def Cvel(tjU5):\n lkWN = int(tjU5)\n Ud7_ = tjU5 - lkWN\n retur...
[ "0.7134712", "0.6734856", "0.6723071", "0.65809315", "0.6526972", "0.6500095", "0.6446426", "0.6425172", "0.6425172", "0.6414315", "0.6345253", "0.6305628", "0.6304355", "0.6235092", "0.62197715", "0.6203484", "0.6190745", "0.6189388", "0.6154831", "0.6149387", "0.6123022", ...
0.74324125
0
Test if the transaction is affordable on the ledger.
def D6jh(YKHO): TgWz = EXxO(performative=EXxO.Performative.PROPOSE_FOR_SETTLEMENT, skill_callback_ids=[GLG2('author', 'a_skill', '0.1.0')], tx_id='transaction0', tx_sender_addr='agent_1', tx_counterparty_addr='pk', tx_amount_by_currency_id={'FET': -20}, tx_sender_fee=0, tx_counterparty_fee=0, tx_quantities_by_good_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _KBw(YKHO, TgWz: TransactionMessage) -> bool:\n TMOi = True\n if YKHO.context.ownership_state.is_initialized:\n TMOi = YKHO.context.ownership_state.is_affordable_transaction(TgWz)\n if YKHO.context.ledger_state_proxy.is_initialized and TgWz.ledger_id != wOOS:\n TMOi = TMOi and YKHO.conte...
[ "0.7880082", "0.7677402", "0.70854414", "0.70677227", "0.68708575", "0.672653", "0.66985077", "0.66725504", "0.6646409", "0.65738314", "0.65279305", "0.64913565", "0.6411708", "0.640841", "0.63817716", "0.62301314", "0.6226215", "0.60837436", "0.5937613", "0.5878771", "0.5836...
0.6775096
5
Test if the transaction is affordable on the ledger.
def p0O5(YKHO): TgWz = EXxO(performative=EXxO.Performative.PROPOSE_FOR_SETTLEMENT, skill_callback_ids=[GLG2('author', 'a_skill', '0.1.0')], tx_id='transaction0', tx_sender_addr='agent_1', tx_counterparty_addr='pk', tx_amount_by_currency_id={'FET': 20}, tx_sender_fee=5, tx_counterparty_fee=0, tx_quantities_by_good_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _KBw(YKHO, TgWz: TransactionMessage) -> bool:\n TMOi = True\n if YKHO.context.ownership_state.is_initialized:\n TMOi = YKHO.context.ownership_state.is_affordable_transaction(TgWz)\n if YKHO.context.ledger_state_proxy.is_initialized and TgWz.ledger_id != wOOS:\n TMOi = TMOi and YKHO.conte...
[ "0.78809047", "0.7677851", "0.70842946", "0.6870106", "0.67748666", "0.6725127", "0.6699159", "0.6673563", "0.66455567", "0.6573246", "0.6527361", "0.6490685", "0.6412649", "0.64092696", "0.63823044", "0.6229748", "0.6225676", "0.60840076", "0.593836", "0.5879338", "0.5837346...
0.70671576
3
Sends a 401 response that enables basic auth
def NLCy(): return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.8093736", "0.80926424", "0.7958403", "0.7852648", "0.7843114", "0.7824419", "0.776624", "0.7754693", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.771945", "0.7667712", "0.7664151", "0.76493174", "0.76140213", "0.76131...
0.7810746
18
Convert feet to meters.
def l0DT(qYv5): try: l1UJ = float(qYv5) / 3.28 l1UJ = round(l1UJ, 2) return str(l1UJ) except ValueError: return 'invalid input'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SFiB(qYv5: float) -> float:\n qYv5 = float(qYv5)\n Byl2 = float(float(qYv5) * 0.3048)\n return round(Byl2, 2)", "def xGh_(l1UJ: float) -> float:\n l1UJ = float(l1UJ)\n qYv5 = float(float(l1UJ) * 3.28084)\n return round(qYv5, 2)", "def ZXue(qYv5):\n return qYv5 * 0.3048", "def l0DT(qY...
[ "0.87025774", "0.82659894", "0.7739321", "0.7666288", "0.7324921", "0.700244", "0.6886812", "0.67837816", "0.66554064", "0.6441032", "0.64013606", "0.63439703", "0.6339806", "0.63303095", "0.63266355", "0.6132486", "0.6091889", "0.5971584", "0.59507674", "0.5929875", "0.59266...
0.7645984
4
Assert that 1 + 1 equals 2.
def bv8O(): a0GJ = 1 assert a0GJ + 1 == 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VMq0(YKHO):\n YKHO.assertEquals(2 + 2, 4)", "def YlOw():\n assert H2v5.add(2, 2) == 4", "def XE0T(YKHO):\n YKHO.assertEqual(1 + 1, 2)", "def XE0T(YKHO):\n YKHO.assertEqual(1 + 1, 2)", "def XE0T(YKHO):\n YKHO.assertEqual(1 + 1, 2)", "def XE0T(YKHO):\n YKHO.assertEqual(1 + 1, 2)", "...
[ "0.80213726", "0.7624266", "0.75925636", "0.75925636", "0.75925636", "0.75925636", "0.75925636", "0.75925636", "0.75925636", "0.75925636", "0.75925636", "0.75925636", "0.75925636", "0.758117", "0.758117", "0.758117", "0.758117", "0.758117", "0.758117", "0.758117", "0.758117",...
0.71834093
41
Get the average age of something.
def vVrF(YKHO, yKcO=1, Os4s=None): pvLb = YKHO.pick_set.filter(number__gte=yKcO) if Os4s is not None: pvLb = pvLb.filter(number__lte=Os4s) JRYC = qcWV.date(YKHO.year, 1, 1) PWKZ = [tTpl.player.age(JRYC) for tTpl in pvLb] PWKZ = [tTpl for tTpl in PWKZ if tTpl] S8vG = sum(PWKZ) / len(PWKZ)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bWLA(YKHO):\n Pe9W = \"\\n SELECT AVG(age) as avg_age\\n FROM(\\n SELECT DATE_PART('year', AGE(now(), birth_date)) as age\\n FROM {schema}.participant_match\\n WHERE birth_date is not null\\n ) x\\n \".format(schema=YKHO.da...
[ "0.8195994", "0.80716383", "0.76091504", "0.737472", "0.7196157", "0.7196157", "0.71620697", "0.7157197", "0.7131047", "0.7124838", "0.71149206", "0.710629", "0.7089089", "0.7051463", "0.70180637", "0.69923854", "0.69923854", "0.69923854", "0.6968645", "0.6956367", "0.6952959...
0.7209326
4
Create a Python instance from the given DOM node. The node tag must correspond to an element declaration in this module.
def E91p(Q6kx, UyKZ=None): if UyKZ is None: UyKZ = jFQi.fallbackNamespace() return Aw3s.binding.basis.element.AnyCreateFromDOM(Q6kx, UyKZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E91p(Q6kx, UyKZ=None):\n if UyKZ is None:\n UyKZ = jFQi.fallbackNamespace()\n return Aw3s.binding.basis.element.AnyCreateFromDOM(Q6kx, _fallback_namespace=UyKZ)", "def E91p(Q6kx, UyKZ=None):\n if UyKZ is None:\n UyKZ = jFQi.fallbackNamespace()\n return Aw3s.binding.basis.element.Any...
[ "0.6949202", "0.6949202", "0.6949202", "0.6946226", "0.6698814", "0.6698814", "0.6698814", "0.66975737", "0.66655135", "0.6650566", "0.6622097", "0.6594007", "0.6585428", "0.6564717", "0.65103894", "0.6489292", "0.64718515", "0.64257324", "0.6323297", "0.6312424", "0.6311245"...
0.70111525
7
Unit take damage. (decrease hit_points)
def gHN0(YKHO, MBGy): YKHO._ensure_is_alive() YKHO._hit_points -= MBGy if YKHO.hit_points <= 0: YKHO._hit_points = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gHN0(YKHO, a033):\n if a033 <= 0:\n return\n YKHO.hit_points[0] -= a033\n if YKHO.hit_points[0] <= 0:\n YKHO.die()", "def v1EV(YKHO, a033):\n YKHO.health -= a033", "def qXxR(YKHO, JjEH):\n t3Z3 = YKHO.damage - JjEH.armor\n if t3Z3 < 1:\n t3Z3 = 1\n JjEH.hit_points ...
[ "0.8146412", "0.7915786", "0.7550729", "0.7537189", "0.74744195", "0.7381872", "0.71792126", "0.7124606", "0.70154124", "0.7008814", "0.6996197", "0.6987823", "0.6947183", "0.69254905", "0.6920809", "0.6877696", "0.68563145", "0.68476164", "0.6827126", "0.6789038", "0.6779014...
0.7958667
1
Layer normalize the tensor x, averaging over the last dimension.
def vUJ3(WKvO, KUnM=None, _hZ2=1e-06, mWFP=None, CJGY=None): if KUnM is None: KUnM = WKvO.get_shape()[-1] with ZylS.variable_scope(mWFP, default_name='layer_norm', values=[WKvO], reuse=CJGY): NXpY = ZylS.get_variable('layer_norm_scale', [KUnM], initializer=ZylS.ones_initializer()) oug5 =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO, WKvO, EvQg=True):\n if EvQg is not None:\n JBMS, I8JS = ZylS.nn.moments(WKvO, [0, 1, 2])\n ghdg = YKHO.mean.assign(JBMS)\n RPPm = YKHO.variance.assign(I8JS)\n with ZylS.control_dependencies([ghdg, RPPm]):\n return ZylS.nn.batch_norm_with_global_normalization...
[ "0.7025246", "0.7000931", "0.69984037", "0.6946193", "0.6926463", "0.6913268", "0.6907985", "0.68715054", "0.6863467", "0.6787572", "0.6776529", "0.67483455", "0.6723166", "0.6712802", "0.6702004", "0.66976094", "0.6691674", "0.66691875", "0.6619964", "0.6619837", "0.65780723...
0.59974504
88
Return the fallback chain for the instance. Most of the time, it is just the configured fallback chain, but if the perrecordfallback feature is used, the value of the field is added (if not None).
def op8u(YKHO, KAOR, rQow): WmM4 = yPLT(rQow) Wfse = KAOR._meta.get_field('i18n') if Wfse.fallback_language_field: jsMc = nItV(KAOR, Wfse.fallback_language_field) if jsMc: return (jsMc, *WmM4) return WmM4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def odyS(YKHO) -> uL8m:\n return uL8m(YKHO)", "def odyS(YKHO):\n pass", "def odyS(YKHO):\n pass", "def vDn6(YKHO) -> gCSU:\n if not YKHO._model_fallback:\n YKHO._model_fallback = gCSU.from_pretrained(YKHO._model_directory).eval()\n return YKHO._model_fallback", "def Njmp(YKHO, I3VB):\...
[ "0.6371701", "0.5556227", "0.5556227", "0.53391176", "0.53262955", "0.5088272", "0.4984686", "0.4984686", "0.4937749", "0.48029009", "0.47889504", "0.47214517", "0.4719033", "0.47126076", "0.46867204", "0.46085182", "0.4607969", "0.4587122", "0.45835298", "0.45781404", "0.457...
0.7417146
0
Returns the field name for the current virtual field. The field name is ``_`` in case of a specific translation or ``_i18n`` for the currently active language.
def gGw6(YKHO): if YKHO.language is None: DuqQ = 'i18n' else: DuqQ = YKHO.get_language() return h2c0(YKHO.original_name, DuqQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def demc(YKHO, KAOR):\n V_D6 = getattr(KAOR, '_fields')\n return V_D6[YKHO.id]", "def qc6A(YKHO) -> str:\n mWFP = YKHO._resolve_field_name()\n if mWFP is None:\n raise k0RQ('No field name found among: explicit name = {}, inferred name = {}'.format(YKHO.__name_explicit, YKHO.__name_contextual))...
[ "0.750741", "0.7346204", "0.73409873", "0.72984535", "0.7271999", "0.7146221", "0.70940757", "0.7034059", "0.6862624", "0.6862624", "0.6805619", "0.67804295", "0.65705174", "0.6508788", "0.6504531", "0.64664215", "0.64299816", "0.6419768", "0.6408808", "0.6368428", "0.6365481...
0.82945055
0
Returns the language for this field. In case of an explicit language (title_en), it returns "en", in case of `title_i18n`, it returns the currently active Django language.
def Bmkt(YKHO): return YKHO.language if YKHO.language is not None else Bmkt()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bmkt(YKHO):\n return YKHO.lang", "def Bmkt(YKHO) -> str:\n return YKHO.language", "def Bmkt(YKHO) -> str:\n return gCuF.LANGUAGE_CODE", "def x9KY(YKHO):\n return YKHO.getOrDefault(YKHO.language)", "def Bmkt(YKHO):\n return YKHO.language", "def NaV1(YKHO):\n return YKHO.language_name...
[ "0.7848438", "0.7752576", "0.7752498", "0.7711676", "0.76986414", "0.7615696", "0.7467676", "0.7450652", "0.7384894", "0.73752946", "0.7354082", "0.73281753", "0.73281753", "0.7318031", "0.7318031", "0.7318031", "0.7318031", "0.7301742", "0.72110444", "0.71490264", "0.7149026...
0.7781222
1
Split Full Keywords This tokenizer function is used for search strings loaded into the fullKwPropertiesJson field of the SearchObject. This exists, because not all data is suitable for partial keywork search for example IDs like J00001223COMP
def VyjF(x3dc: str) -> fHNa[str]: s2mk = Pq7y(x3dc) s2mk = ['^%s$' % a1PO for a1PO in s2mk if 2 <= len(a1PO)] return set(s2mk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qBme(YKHO):\n wUfe = []\n for peBr in YKHO.watsonLanguageModel['keywords'][:YKHO.entitySizeLimit]:\n wUfe.append(peBr['text'])\n return wUfe", "def gy78(wUfe):\n try:\n wUfe = wUfe.replace(u'“', '\"').replace(u'”', '\"').replace('-', ' ')\n except AttributeError:\n return ...
[ "0.58322096", "0.5583472", "0.5572735", "0.5560477", "0.5474023", "0.53832906", "0.5359477", "0.5321437", "0.53193283", "0.53133535", "0.529936", "0.5264558", "0.52047807", "0.51859987", "0.5168437", "0.51543987", "0.51494706", "0.50787365", "0.5077012", "0.50721586", "0.5070...
0.55533636
4
Split Partial Keywords This tokenizer function is used for search strings loaded into the partialKwPropertiesJson field of the SearchObject. This will tokenize all the smaller keywords as a full keyword, all numbers as full keywords all remaining items will be tokenized in a rolling three char method.
def qa97(x3dc: str) -> fHNa[str]: s2mk = Pq7y(x3dc) vNAs, s2mk = (s2mk, []) for eOtH in vNAs: for d6pt in range(max(1, len(eOtH) - 2)): s2mk.append(('' if d6pt else '^') + eOtH[d6pt:d6pt + 3]) return set(s2mk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gy78(wUfe):\n try:\n wUfe = wUfe.replace(u'“', '\"').replace(u'”', '\"').replace('-', ' ')\n except AttributeError:\n return []\n if '\"' in wUfe:\n H5iA = []\n uLD9 = map(lambda WKvO: WKvO.split(' \"'), wUfe.split('\" '))\n for XuXy in uLD9:\n for ZfUD in...
[ "0.54471326", "0.5392321", "0.53489757", "0.53376627", "0.52470607", "0.5224805", "0.5203103", "0.51778513", "0.5126674", "0.5082571", "0.5048342", "0.50135595", "0.49993193", "0.49584663", "0.49558958", "0.4936515", "0.4916695", "0.4913067", "0.49010512", "0.4895756", "0.488...
0.6212856
0
The home page of the web app.
def hEuo(QTBn): aevO.title(':house: Welcome to Stock Swing Predictor (SSP)') LNo8 = hnIv.open('ssp.png') aevO.image(LNo8, use_column_width=True) aevO.markdown('*Note:* This is a conceptual tool and should not be used to make real/serious trading decisions.') aevO.markdown('## Tool Overview:') ae...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n return TvZl('index.html', title...
[ "0.8634473", "0.8444874", "0.8351165", "0.8351165", "0.8351165", "0.8351165", "0.8351165", "0.8351165", "0.8351165", "0.8351165", "0.8351165", "0.8351165", "0.830264", "0.8299314", "0.8287148", "0.824534", "0.82333416", "0.81935173", "0.8181438", "0.81654906", "0.81393796", ...
0.0
-1
Return a saved state value, None if item is undefined.
def OP2O(YKHO, ZfUD): return YKHO._state['data'].get(ZfUD, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def JgjC(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def JgjC(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def bv1p(YKHO, ...
[ "0.6428999", "0.6428999", "0.6149919", "0.6149919", "0.61460555", "0.6132298", "0.6100829", "0.6100829", "0.6100829", "0.59394336", "0.58175045", "0.57939315", "0.5749789", "0.5733325", "0.57251567", "0.57221013", "0.57221013", "0.5686118", "0.5686118", "0.5686118", "0.568611...
0.63583726
2
Return a saved state value, None if item is undefined.
def JgjC(YKHO, ZfUD): return YKHO._state['data'].get(ZfUD, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ...
[ "0.64281183", "0.64281183", "0.6357475", "0.6357475", "0.6357475", "0.6148605", "0.6148605", "0.61450446", "0.6130774", "0.59375536", "0.58148605", "0.5792937", "0.57490504", "0.5732397", "0.5725432", "0.572095", "0.572095", "0.56847996", "0.56847996", "0.56847996", "0.568479...
0.6099511
10
Converts Relay operator batch_norm to ONNX operator. Relay operator has property axis to handle data in NHWC format.
def a8Pe(Emd4, I0hR, x_7z, lLIB): o8Kj = Emd4.convert_attributes(I0hR['relay_node'].attrs) B1vG = I0hR['input_names'][0] fz9M = [I0hR['output_names'][0]] if o8Kj['axis'] == 3: B1vG = f'transpose_{I0hR['name']}' eb3y = BlLG.helper.make_node(q3ZY.__name__, [I0hR['input_names'][0]], [B1vG],...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F5o3(Q6kx, **B2fa):\n mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)\n H0zq = float(o8Kj.get('momentum', 0.9))\n SGf8 = float(o8Kj.get('eps', 0.001))\n MdRt = BlLG.helper.make_node('BatchNormalization', uvt8, [mWFP], name=mWFP, epsilon=SGf8, momentum=H0zq)\n return [MdRt]", "def yMCP(Emd4, vWye, g4y1, bw...
[ "0.6541993", "0.64909947", "0.6259625", "0.6180726", "0.58876705", "0.5871205", "0.5851244", "0.579899", "0.57913005", "0.5720004", "0.5608946", "0.56069124", "0.5598963", "0.5561915", "0.5556486", "0.55066925", "0.54907095", "0.5459949", "0.54525256", "0.5448313", "0.5442287...
0.5450486
19
Converts Relay operator Pad to ONNX operator. Relay operator accepts pads as attribute but ONNX operator accepts it as a input.
def a8Pe(Emd4, I0hR, x_7z, lLIB): o8Kj = Emd4.convert_attributes(I0hR['relay_node'].attrs) mWFP = I0hR['name'] XSUz = XTiz.asarray(o8Kj['pads'], dtype=o8Kj['pads'][0].dtype).astype(XTiz.int64) ro7y = [I0hR['input_names'][0], BMsF(XSUz, mWFP, 'pads', x_7z), I0hR['input_names'][1]] Q6kx = BlLG.helper....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UFlS(Q6kx, **B2fa):\n mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)\n F2V0 = Mlpe(o8Kj.get('pad_width'))\n R8yb = jkaF(F2V0)\n uOxW = o8Kj.get('mode')\n if uOxW == 'constant':\n KHPh = float(o8Kj.get('constant_value')) if 'constant_value' in o8Kj else 0.0\n Q6kx = BlLG.helper.make_node('Pad'...
[ "0.6538645", "0.5719668", "0.5366189", "0.5357081", "0.5325323", "0.5124648", "0.5062208", "0.5062166", "0.5020885", "0.4986378", "0.4964931", "0.49568442", "0.48615396", "0.48526943", "0.4851009", "0.4847235", "0.4843729", "0.47943538", "0.47775134", "0.47187746", "0.4709594...
0.4878402
12
Creates a dictionary of all words greater than length 4
def YEQn(): eHNT = open('words.txt', 'r') WbPA = eHNT.read().splitlines() return filter(lambda epBp: len(epBp) >= 4, WbPA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OSCU(YKHO):\n nPrm = Csk6.Dictionary.dictionary\n while True:\n iku2 = [zFiD.strip() for zFiD in nPrm if len(zFiD) == YKHO.wordLen]\n if len(iku2) == 0:\n YKHO.setNewLen()\n else:\n break\n return iku2", "def GIBR(V22M):\n DUVe = []\n for GIN8 in V22M...
[ "0.70881146", "0.6841121", "0.6781512", "0.66973716", "0.6584902", "0.6535768", "0.64710885", "0.64660025", "0.6351441", "0.6287912", "0.6242764", "0.6216731", "0.6214173", "0.6188059", "0.6187457", "0.6181007", "0.6165614", "0.6131073", "0.61249644", "0.61112076", "0.6109968...
0.8377515
0
Gets the config_bucket_names of this OrgApacheSlingCaconfigImplConfigurationResolverImplProperties.
def mcIN(YKHO) -> tpYs: return YKHO._config_bucket_names
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mcIN(YKHO, mcIN: ConfigNodePropertyArray):\n YKHO._config_bucket_names = mcIN", "def Docl(YKHO):\n return YKHO.config.keys_bucket", "def Kfuq(YKHO):\n return YKHO._config_names.copy()", "def AqyT(YKHO):\n return [WKvO['Name'] for WKvO in YKHO.s3_client.list_buckets()['Buckets']]", "def oIWz...
[ "0.6446771", "0.635213", "0.6213152", "0.59815043", "0.57801086", "0.57022256", "0.56896275", "0.56456745", "0.5594053", "0.55713063", "0.54901016", "0.5486375", "0.5450226", "0.5442416", "0.54410875", "0.54410875", "0.54349226", "0.5384884", "0.5383223", "0.5383223", "0.5382...
0.8308459
0
Sets the config_bucket_names of this OrgApacheSlingCaconfigImplConfigurationResolverImplProperties.
def mcIN(YKHO, mcIN: ConfigNodePropertyArray): YKHO._config_bucket_names = mcIN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mcIN(YKHO) -> tpYs:\n return YKHO._config_bucket_names", "def FIMM(YKHO, mcIN: ConfigNodePropertyArray=None):\n YKHO.openapi_types = {'config_bucket_names': tpYs}\n YKHO.attribute_map = {'config_bucket_names': 'configBucketNames'}\n YKHO._config_bucket_names = mcIN", "def Docl(YKHO):\n retur...
[ "0.65626925", "0.64696985", "0.49947178", "0.49317083", "0.47936618", "0.47743237", "0.46930325", "0.468822", "0.46469864", "0.45277184", "0.44977584", "0.44669712", "0.44647247", "0.4457448", "0.4454922", "0.43873423", "0.4362385", "0.43282983", "0.4326901", "0.4322709", "0....
0.8082579
0
Check for messages this client hasn't read yet.
def j13D(YKHO): QX86 = YKHO.broker.get_last_offset(YKHO.topic_name) if YKHO.offset <= QX86: tO9_ = YKHO.broker.read_message(YKHO.topic_name, YKHO.offset) YKHO.offset += 1 return tO9_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vD6J(YKHO) -> bool:\n return YKHO._has_messages", "def a2Um(YKHO):\n ASje, bGrB, bGrB = EfUA([YKHO.socket], [], [], 0.0)\n return YKHO.socket in ASje", "def E5og(YKHO):\n return not YKHO.feedback_log.empty()", "def EoAX(YKHO, gGq6, Td1T):\n try:\n tO9_ = Td1T.fetch(timeout=0)\n ...
[ "0.67009234", "0.6630358", "0.6489416", "0.6445604", "0.63360494", "0.62131083", "0.61870766", "0.61870766", "0.6180996", "0.60523677", "0.6035146", "0.59893167", "0.59873474", "0.5978187", "0.59721524", "0.5968284", "0.5943144", "0.5941435", "0.59409124", "0.59337324", "0.59...
0.0
-1
Parse a list of strings into a generate of pkg_resources.Requirements
def VnMZ(f9mM): for qv1X in f9mM: qv1X = qv1X.strip() if '\n' in qv1X: for xTL7 in VnMZ(qv1X.split('\n')): yield xTL7 else: Aofo = f4IT(qv1X) if Aofo is not None: yield Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnMZ(*iumf):\n fA3L = []\n for eHNT in iumf:\n for zFiD in open(eHNT, 'r').read().split('\\n'):\n if ZbWC.match('(\\\\s*#)|(\\\\s*$)', zFiD):\n continue\n if ZbWC.match('\\\\s*-e\\\\s+', zFiD):\n sKYw = ZbWC.sub('\\\\s*-e\\\\s+.*#egg=(.*)$', '\\\...
[ "0.7389504", "0.68496203", "0.67472965", "0.6537811", "0.6537811", "0.6526558", "0.63636464", "0.6341593", "0.63336", "0.6303288", "0.6264439", "0.6261472", "0.62147063", "0.61846936", "0.615088", "0.6139954", "0.61361915", "0.6130059", "0.6079676", "0.60738415", "0.6008824",...
0.6540374
3
Returns whether an InstallRequirement is a "pinned" requirement.
def kJIQ(qv1X): return any(((Cqok.operator == '==' or Cqok.operator == '===') and (not Cqok.version.endswith('.*')) for Cqok in qv1X.specifier))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kJIQ(mGkK):\n if mGkK.editable:\n return False\n if mGkK.req is None or len(mGkK.specifier._specs) != 1:\n return False\n khtY, DpZH = next(iter(mGkK.specifier._specs))._spec\n return (khtY == '==' or khtY == '===') and (not DpZH.endswith('.*'))", "def RboN(YKHO):\n if 'query' in...
[ "0.7513447", "0.62215865", "0.61540097", "0.59717345", "0.57373136", "0.5589763", "0.5527289", "0.5499865", "0.5481368", "0.5413137", "0.5396164", "0.5387966", "0.5385613", "0.5380379", "0.53092164", "0.5266532", "0.5258908", "0.5237129", "0.5233404", "0.52219605", "0.5221199...
0.7603063
0
Returns whether an InstallRequirement has a prerelease specifier
def NV1M(qv1X): return any((BvuR(Cqok.version).is_prerelease for Cqok in qv1X.specifier))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kJIQ(qv1X):\n return any(((Cqok.operator == '==' or Cqok.operator == '===') and (not Cqok.version.endswith('.*')) for Cqok in qv1X.specifier))", "def HhP5():\n DjF0 = Y69N().distributor.lower()\n return bool('redhat' in DjF0 or 'centos' in DjF0)", "def kVYE(YKHO) -> bool:\n return not YKHO.is_p...
[ "0.63374144", "0.6329881", "0.6324707", "0.6314748", "0.63002926", "0.629812", "0.6284919", "0.6269838", "0.61530244", "0.60710454", "0.6028728", "0.6027197", "0.59786683", "0.59185714", "0.59039694", "0.58831704", "0.58299696", "0.5749476", "0.5688985", "0.5664355", "0.56533...
0.8068535
0
Accessor for the flag indicating an active connection with the sender.
def BuVQ(YKHO) -> bool: return YKHO._connection_ready
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uRKJ(YKHO):\n return YKHO._connection_status", "def gjfm(YKHO):\n return YKHO.connection_state", "def WZHJ(YKHO) -> bool:\n return YKHO.relay('active')", "def ksfB(YKHO):\n return YKHO.stream.is_active()", "def EvTl(YKHO):\n return bnyM()", "def ksfB(YKHO) -> bool:\n return YKHO._st...
[ "0.7091084", "0.66623783", "0.6646278", "0.65829873", "0.6570094", "0.6550943", "0.6533798", "0.6510629", "0.64728993", "0.6464216", "0.64600235", "0.64568365", "0.6432882", "0.6412655", "0.64096314", "0.6403282", "0.6385838", "0.6385838", "0.6385838", "0.6385838", "0.6385838...
0.0
-1
Setter for the flag indicating an active connection with the sender.
def BuVQ(YKHO, WZHJ: bool): YKHO._connection_ready = WZHJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LNFR(YKHO, QTBn, U34r):\n YKHO.connection_state = QTBn\n YKHO.connection_info = U34r", "def lYMA(YKHO):\n YKHO.connected = True", "def WZHJ(YKHO) -> bool:\n return YKHO.relay('active')", "def WZHJ(YKHO, WZHJ):\n YKHO._active = WZHJ", "def WZHJ(YKHO, WZHJ):\n YKHO._active = WZHJ", "d...
[ "0.644422", "0.63624835", "0.6278445", "0.6212713", "0.6212713", "0.6212713", "0.6212713", "0.6165462", "0.6091793", "0.6068813", "0.6047195", "0.6047195", "0.6047195", "0.6047195", "0.6037968", "0.603676", "0.60192496", "0.6006551", "0.5993154", "0.5983737", "0.59043485", ...
0.6089047
9
Provide a human readable representation of this object.
def wHJl(YKHO) -> str: EdbX = () DumB = ('{}={}'.format(G1Hx, repr(Ty9i)) for G1Hx, Ty9i in YKHO.__dict__.items() if G1Hx not in EdbX) return '<{}({})>'.format(YKHO.__class__.__name__, ', '.join(DumB))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def yoaG(YKHO):\n return str(YKHO)", "def zAg0(YKHO):\n if YKHO.__description:\n return YKHO.__description\n return repr(YKHO)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n return str(Y...
[ "0.85030085", "0.8300885", "0.8244565", "0.8220404", "0.8220404", "0.8220404", "0.8220404", "0.8220404", "0.8150463", "0.8102265", "0.81000656", "0.81000656", "0.80629987", "0.80590695", "0.80590695", "0.80590695", "0.80590695", "0.80590695", "0.80590695", "0.80590695", "0.80...
0.0
-1
Retrieves a value from the config parser.
def ASJs(YKHO, xCu_, M8YW, SQJw): try: return xCu_.get(M8YW, SQJw).decode('utf-8') except enR0.NoOptionError: return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ASJs(YKHO, xCu_, M8YW, SQJw):\n try:\n return xCu_.get(M8YW, SQJw).decode('utf-8')\n except (enR0.NoOptionError, enR0.NoSectionError):\n return", "def ZR0i(YKHO, mWFP):\n if mWFP in YKHO.config_values:\n return YKHO.config_values[mWFP]", "def ge7L(YKHO, XLMv, H5ew):\n retur...
[ "0.7771524", "0.72632587", "0.72562516", "0.7231387", "0.7180348", "0.7152527", "0.7135673", "0.70670396", "0.6819385", "0.68079066", "0.6805623", "0.6791728", "0.6755313", "0.6745314", "0.6717178", "0.67007136", "0.6682381", "0.66780645", "0.66668546", "0.6644024", "0.663696...
0.7828994
0
Initializes a github contributions helper.
def FIMM(YKHO, ImMI): super(iZUy, YKHO).__init__() YKHO._alternate_output_format = False YKHO._user_mappings = ImMI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, qsJ6, boHx, VUJG):\n YKHO.owner = qsJ6\n YKHO.repo = boHx\n YKHO.number = VUJG['number']\n YKHO.username = VUJG['user']['login']\n YKHO.user_url = VUJG['user']['url']\n YKHO.title = VUJG['title']\n YKHO.merged_at = YKHO.to_datetime(VUJG['merged_at'])\n YKHO.created_at = YKHO....
[ "0.63185495", "0.62853664", "0.6181784", "0.6104193", "0.59050566", "0.58005875", "0.5664177", "0.55889434", "0.55611813", "0.55303746", "0.55025697", "0.55003685", "0.5486738", "0.54730445", "0.54620427", "0.5450299", "0.54495436", "0.54432213", "0.54048556", "0.5361404", "0...
0.6745938
0
Closes the output writer object.
def EM8p(YKHO): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO.output.close()", "def DDI8(YKHO):\n YKHO.out_file.close()", "def DDI8(YKHO):\n if YKHO.__writer is not None:\n YKHO.__writer.close()", "def DDI8(YKHO):\n YKHO.file_out.close()", "def DDI8(YKHO):\n YKHO._closed = True\n YKHO._writer.close()", "def oS8p(PcZo)...
[ "0.7876922", "0.76582605", "0.76430863", "0.76274985", "0.74859744", "0.73995525", "0.73909664", "0.7373782", "0.72184306", "0.7055909", "0.7055909", "0.70288664", "0.6933643", "0.67121214", "0.6678854", "0.6668728", "0.6644544", "0.6644544", "0.6644544", "0.66031075", "0.655...
0.0
-1
CREATE_DATASET Create a new dataset.
def oUGu(YKHO, G1Hx: str, ywwl: int, ROpF: tuple, yDqo=oyIN.float32) -> None: if G1Hx in YKHO.fp.keys(): if YKHO.verbose: print('dataset %s already exists in internal data' % str(G1Hx)) return if type(ROpF) is not tuple: raise ValueError('shape must be a tuple giving the size...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUGu(j3aw, bNKA=None):\n Vs2w = slhS.Client(project=bNKA)\n __n6 = Vs2w.dataset(j3aw)\n __n6.create()\n print('Created dataset {}.'.format(j3aw))", "def oUGu():\n c55i = '{}.airflow'.format(x0hE.project)\n __n6 = slhS.Dataset(c55i)\n __n6.location = 'US'\n __n6 = x0hE.create_dataset(_...
[ "0.7941709", "0.7912807", "0.76475465", "0.7357188", "0.7332741", "0.7269704", "0.72053736", "0.71413475", "0.7073372", "0.70585173", "0.7013224", "0.69907296", "0.6953539", "0.6950812", "0.6901694", "0.6886943", "0.67950124", "0.679185", "0.67825633", "0.66999835", "0.669892...
0.63175887
43
Test that all the events are properly stored.
def srJN(YKHO): E3D9 = GrHg.EventMonitor(YKHO.G) sg14 = GrHg.Simulation(YKHO.G, E3D9, dt=YKHO.dt) sg14.run(YKHO.t_max) WXkz = YKHO.G.pattern.nonzero()[1] * YKHO.dt YKHO.assertTrue(oyIN.allclose(sorted(WXkz), E3D9.t)) for YRbF, a1PO in zip(E3D9.i, E3D9.t): YKHO.assertTrue(YKHO.G.pattern[Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wyvd(YKHO):\n pass", "def uYnv(YKHO):\n YTVa = JOBF.events()\n for tvqc in YTVa:\n YKHO.assertTrue('graceid' in tvqc)\n break", "def PoOU(YKHO):\n\n def WoCN(B5I4, CErl):\n YKHO.database.mongo.event.delete_many({'creator_id': aA6B(B5I4._id)})\n YKHO.database.mongo.ev...
[ "0.7527969", "0.7155776", "0.7145005", "0.69259846", "0.6917851", "0.69145364", "0.6912371", "0.6888338", "0.68824285", "0.6879379", "0.68482476", "0.6844045", "0.67904955", "0.67640173", "0.6713294", "0.6708508", "0.66980785", "0.6689647", "0.66610473", "0.6620852", "0.66120...
0.0
-1
Test that storage is accurate with custom interval.
def bizr(YKHO): VOlW = 0.5 E3D9 = GrHg.StateMonitor(YKHO.G, 'v', interval=VOlW) sg14 = GrHg.Simulation(YKHO.G, E3D9, dt=YKHO.dt) sg14.run(YKHO.t_max) _mTU = oyIN.array([YRbF * (E3D9.t + YKHO.dt) for YRbF in Ni9Y(YKHO.N)]) YKHO.assertTrue(oyIN.allclose(E3D9.v, _mTU))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WuRS(YKHO):\n YKHO.assertEqual(YKHO.interval, YKHO.tracker.server_class.interval)", "def WuRS(YKHO):\n if YKHO.database.name == 'mysqldb':\n return\n w2B8 = YKHO.database.connection()\n N1p7 = w2B8.cursor()\n pMVb = YKHO.database.dialect()\n D1aL = YKHO.database.dbapi()\n xDcj = p...
[ "0.6657347", "0.6455442", "0.6277867", "0.60733277", "0.596885", "0.59567255", "0.59564763", "0.58951753", "0.5859431", "0.5808392", "0.5795658", "0.57874465", "0.5756947", "0.57451195", "0.57442296", "0.5723408", "0.5676464", "0.56661284", "0.5661708", "0.562706", "0.5615096...
0.66437536
1
Test controller with vanishing weights.
def D_eQ(YKHO): Z7L0 = ZT1v(YKHO.G, 2, mode='zero') sg14 = GrHg.Simulation(YKHO.G, Z7L0, dt=YKHO.dt) sg14.run(YKHO.dt) YKHO.assertAlmostEqual(oyIN.linalg.norm(Z7L0.W.ravel()), 0.0) YKHO.assertAlmostEqual(oyIN.linalg.norm(Z7L0.out), 0.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XHe_(YKHO):\n hSYI = (1 - 0.05) * YKHO.herb.weight\n YKHO.herb.weightloss()\n K4sN.assert_equal(round(YKHO.herb.weight, 7), round(hSYI, 7))", "def Swhn(YKHO):\n hSYI = (1 - 0.125) * YKHO.carn.weight\n YKHO.carn.weightloss()\n K4sN.assert_equal(YKHO.carn.weight, hSYI)", "def FNOO(YKHO):\n ...
[ "0.6282826", "0.61770695", "0.61273265", "0.5837296", "0.58048284", "0.57963616", "0.5779904", "0.5770524", "0.57501686", "0.5679012", "0.5676502", "0.564979", "0.563728", "0.562752", "0.55774784", "0.5564742", "0.555519", "0.5550397", "0.5499559", "0.5495501", "0.5485591", ...
0.5747283
9
Test that we can force the weights to stay positive.
def UTKO(YKHO): YKHO.tutor.out_step = YKHO.rule.theta / 2 + oyIN.hstack((oyIN.ones(YKHO.Ns / 2), -oyIN.ones(YKHO.Ns / 2))) YKHO.conductor.out_step = oyIN.ones(YKHO.Nc) YKHO.syns.W = oyIN.zeros(YKHO.syns.W.shape) sg14 = GrHg.Simulation(YKHO.conductor, YKHO.student, YKHO.tutor, YKHO.syns, YKHO.rule, dt=YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GlOy(YKHO):\n K4sN.assert_greater(YKHO.herb.weight, 0)", "def LRLu(YKHO):\n K4sN.assert_greater(YKHO.carn.weight, 0)", "def XvKK() -> None:\n xF06 = oyIN.ones_like(An13)\n ygOn, rTfk, _Iob = rKWc(xF06, AYI0, An13)\n oyIN.testing.assert_almost_equal(ygOn, xF06)\n oyIN.testing.assert_almost...
[ "0.7899517", "0.7574693", "0.6764845", "0.67458266", "0.67034054", "0.67010665", "0.6630825", "0.66251284", "0.6612169", "0.6600548", "0.6573299", "0.6563832", "0.653979", "0.65337634", "0.65124184", "0.6446398", "0.638029", "0.63738894", "0.6370881", "0.6305685", "0.6305685"...
0.69739485
3
Test that we can force the weights to stay positive.
def UTKO(YKHO): YKHO.tutor.out_step = YKHO.rule.theta / 2 + oyIN.hstack((oyIN.ones(YKHO.Ns / 2), -oyIN.ones(YKHO.Ns / 2))) YKHO.conductor.out_step = oyIN.ones(YKHO.Nc) YKHO.syns.W = oyIN.zeros(YKHO.syns.W.shape) sg14 = GrHg.Simulation(YKHO.conductor, YKHO.student, YKHO.tutor, YKHO.syns, YKHO.rule, dt=YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GlOy(YKHO):\n K4sN.assert_greater(YKHO.herb.weight, 0)", "def LRLu(YKHO):\n K4sN.assert_greater(YKHO.carn.weight, 0)", "def XvKK() -> None:\n xF06 = oyIN.ones_like(An13)\n ygOn, rTfk, _Iob = rKWc(xF06, AYI0, An13)\n oyIN.testing.assert_almost_equal(ygOn, xF06)\n oyIN.testing.assert_almost...
[ "0.7899843", "0.7574691", "0.67651737", "0.6745855", "0.67029047", "0.6701758", "0.66307133", "0.6624664", "0.66120076", "0.6600157", "0.6573501", "0.6565063", "0.6539056", "0.6533849", "0.65115273", "0.6445534", "0.6381412", "0.63754797", "0.63716966", "0.6306137", "0.630613...
0.6974296
2
Test deconvolution with two timescales.
def iH1Q(YKHO): jmzt = 50.0 n0Iu = 20.0 a1qE = 35.0 HDAm = 50.0 QyS9 = 100.0 RfSx = 100.0 JRYC = 0.1 YKHO.rule.tau = jmzt YKHO.rule.min_rate = HDAm YKHO.rule.max_rate = QyS9 YKHO.rule.compress_rates = False YKHO.rule.tau_deconv1 = n0Iu YKHO.rule.tau_deconv2 = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R9A9(YKHO):\n jmzt = 50.0\n n0Iu = 5.0\n a1qE = 20.0\n HDAm = 50.0\n QyS9 = 100.0\n RfSx = 60.0\n JRYC = 0.1\n YKHO.rule.tau = jmzt\n YKHO.rule.min_rate = HDAm\n YKHO.rule.max_rate = QyS9\n YKHO.rule.compress_rates = False\n YKHO.rule.tau_deconv1 = n0Iu\n YKHO.rule.tau_de...
[ "0.64282507", "0.6305039", "0.6245069", "0.62182724", "0.6133431", "0.6107571", "0.5956537", "0.59557354", "0.59470016", "0.59012747", "0.5888332", "0.5805929", "0.58006305", "0.57936764", "0.5691477", "0.5662282", "0.56433153", "0.55472803", "0.551716", "0.54842436", "0.5482...
0.6413375
1
Check whether user has authorisation to make edits in this academy
def u0UT(YKHO, QwST): G8tk = fucN.query.filter_by(group_name='Master').first() if YKHO.has_auth_access(G8tk): return True yKnE = evB5.query.filter_by(id=QwST).first() if yKnE.id == YKHO.academy_id: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hO62(YKHO, CBIr):\n return YKHO.author_id == CBIr.id or CBIr.is_staff", "def FAbd(YKHO, CBIr):\n return CBIr == YKHO.owner", "def Iw6c(YKHO):\n ANfV = YKHO.get_object()\n return True if YKHO.request.user == ANfV.author or YKHO.request.user.is_superuser else False", "def otSk(YKHO):\n ZrNc ...
[ "0.7246516", "0.7076891", "0.7042649", "0.702144", "0.70143193", "0.69346905", "0.693315", "0.690113", "0.690113", "0.6870045", "0.68344486", "0.6809024", "0.6760061", "0.6739009", "0.67316705", "0.6728541", "0.6651187", "0.66472137", "0.6635301", "0.66264796", "0.6613071", ...
0.6422915
42
Draw a collection of lines.
def FmXa(xUwc, qfpW=None, gEmA=None, Y7Bk=False, QswH=False, IXKo=None): Jw9H = pYUM(xUwc, qfpW) Nqlg = [] for zFiD, d7Eb in zip(xUwc, Jw9H): Nqlg.append({'start': list(zFiD.start), 'end': list(zFiD.end), 'color': d7Eb}) LQWU = gVt8.draw_lines(Nqlg, layer=gEmA, clear=Y7Bk) if not QswH: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fkJ3(*qIxc, **B2fa):\n return nAU3.PseudoDC_DrawLines(*qIxc, **B2fa)", "def fkJ3(*qIxc, **B2fa):\n return nAU3.DC_DrawLines(*qIxc, **B2fa)", "def AvEV(YKHO, Nqlg, oxZz=None):\n if oxZz is None:\n oxZz = []\n elif isinstance(oxZz, lnPd.Pen):\n oxZz = [oxZz]\n elif len(oxZz) != l...
[ "0.7331374", "0.7317525", "0.7315203", "0.7237377", "0.72169656", "0.72160655", "0.70974207", "0.70948637", "0.6939401", "0.6913349", "0.6776746", "0.6742799", "0.6713807", "0.66904086", "0.6688678", "0.66644764", "0.66453815", "0.6636744", "0.6629767", "0.6579093", "0.657050...
0.0
-1
Build url section for requesting fields. Returns string. _build_field_request() returns string
def gLzB(YKHO): a4gM = [] for Jyyj in YKHO.fields: if YKHO.fields[Jyyj] is True: a4gM.append(Jyyj) a4gM = '&printFields=' + ','.join(a4gM) return a4gM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eJD6(YKHO, NArs, B2fa, m8z6=False):\n if m8z6:\n return '%s%s' % (YKHO.endpoint, YKHO.methodname)\n else:\n return '%s%s?%s' % (YKHO.endpoint, YKHO.methodname, B2fa)", "def jNi7(YKHO, QePW, XeOP, **xDcj):\n P8oC = KVWQ.urljoin(QePW['base_url'], YKHO.auth_prefix + '/' + XeOP)\n retur...
[ "0.64085364", "0.62794167", "0.62771565", "0.62771565", "0.6251801", "0.61218977", "0.6087071", "0.6061477", "0.6029068", "0.5922624", "0.58853877", "0.58853835", "0.58302647", "0.58161813", "0.57343006", "0.5703065", "0.5692685", "0.5660309", "0.565952", "0.56572324", "0.565...
0.66768503
0
Return the path to the base folder and the path to the file if it is present in the project.
def gtq8(NEyU, mWFP) -> 'Optional[Tuple[str, str]]': for oDqC in NEyU: for tk5Y, AQSv, RRlC in Hy7s.walk(oDqC): for eHNT in RRlC: if eHNT == mWFP: return (BKva.dirname(oDqC), tk5Y) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyQC(YKHO, alsS=None):\n tk5Y = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..', '..'))\n if alsS:\n return Hy7s.path.join(tk5Y, alsS)\n else:\n return tk5Y", "def XSj5(YKHO):\n return YKHO.setup.base_path", "def EL0N():\n qaEx = Hy7s.path.abspath(xAKo)\n jNha...
[ "0.798062", "0.75320756", "0.75041085", "0.74587375", "0.73903346", "0.73903346", "0.73903346", "0.73903346", "0.7379813", "0.7346453", "0.7309549", "0.7293107", "0.72783643", "0.7262517", "0.7226026", "0.7226026", "0.7149905", "0.71322846", "0.71163934", "0.70629233", "0.705...
0.0
-1
Access the packet indicator field first byte.
def type(YKHO): return BlNT.unpack('<B', YKHO.raw_data[0])[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DwqG(YKHO):\n if not YKHO.checkPacketLength():\n raise AttributeError('inconsistent packetLength')\n nAVQ = YKHO.packetLength + 1\n return YKHO.getBytes(w4gT, nAVQ)", "def JVZl(YKHO):\n return YKHO.next_bytes(1)", "def IJav(YKHO):\n TZ9E = ord(YKHO.minfile[YKHO.pos])\n YKHO.pos += ...
[ "0.64534265", "0.6442491", "0.63698435", "0.63209796", "0.62407744", "0.618661", "0.6166607", "0.6162412", "0.60829794", "0.60751694", "0.6065768", "0.6051177", "0.60055166", "0.59812737", "0.59624577", "0.59462583", "0.59462583", "0.5918713", "0.5918691", "0.5918505", "0.590...
0.5762812
38
String representation of the decoded packet.
def zAg0(YKHO): return '\tNo readable data representation.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '\\n%(source)s > %(type)s (0x%(type_d).2x)\\n%(data)s' % {'type': K2Fs.pkt_type_str[YKHO.type], 'type_d': YKHO.type, 'data': str(YKHO.decoded) if YKHO.decoded else 'Unknown raw data.', 'source': YKHO.source}", "def Ismw(YKHO):\n return 'Packet (Length: %s)%s' % (YKHO.length, Hy7s.l...
[ "0.76695573", "0.72700393", "0.6919632", "0.68297493", "0.67805356", "0.6630007", "0.6587308", "0.6476543", "0.6449791", "0.64259374", "0.64172685", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.63...
0.0
-1
Returns the opcode field
def kuMQ(YKHO): return BlNT.unpack('<H', YKHO.pkt.payload[0:2])[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kuMQ(YKHO):\n if YKHO.op is None:\n return None\n return YKHO.op.value", "def hlvI(YKHO, Wxnj):\n kuMQ = int(str(Wxnj)[-2:])\n return kuMQ", "def Mdrt(YKHO) -> int:\n vgXP = YKHO.current_address - YKHO.STARTING_ADDRESS\n if YKHO.insight:\n YKHO.insight.opcode(YKHO.rom_data, ...
[ "0.8187123", "0.7671392", "0.75208026", "0.7456473", "0.66593695", "0.65984523", "0.65605485", "0.6538594", "0.64191306", "0.63911355", "0.63685006", "0.62461615", "0.62461615", "0.61672693", "0.61587954", "0.6154032", "0.5975539", "0.5952517", "0.59519726", "0.5950461", "0.5...
0.8290724
0
String representation of the decoded packet.
def zAg0(YKHO): return '\tOpcode: %(opcode)d (0x%(opcode).2x)\n\tLength: %(length)d (0x%(length).2x)\n\tParameters:\n\t\t%(data)s' % {'opcode': YKHO.opcode, 'length': YKHO.length, 'data': YKHO.format_raw_data(YKHO.parameters)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '\\n%(source)s > %(type)s (0x%(type_d).2x)\\n%(data)s' % {'type': K2Fs.pkt_type_str[YKHO.type], 'type_d': YKHO.type, 'data': str(YKHO.decoded) if YKHO.decoded else 'Unknown raw data.', 'source': YKHO.source}", "def Ismw(YKHO):\n return 'Packet (Length: %s)%s' % (YKHO.length, Hy7s.l...
[ "0.76695573", "0.72700393", "0.6919632", "0.68297493", "0.67805356", "0.6630007", "0.6587308", "0.6476543", "0.6449791", "0.64259374", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.6388...
0.64172685
10
String representation of the decoded packet.
def zAg0(YKHO): return '\tHandle: %(handle)d (0x%(handle).2x)\n\tLength: %(length)d (0x%(length).2x)\n\tParameters:\n\t\t%(data)s' % {'handle': YKHO.handle, 'length': YKHO.length, 'data': YKHO.format_raw_data(YKHO.parameters)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '\\n%(source)s > %(type)s (0x%(type_d).2x)\\n%(data)s' % {'type': K2Fs.pkt_type_str[YKHO.type], 'type_d': YKHO.type, 'data': str(YKHO.decoded) if YKHO.decoded else 'Unknown raw data.', 'source': YKHO.source}", "def Ismw(YKHO):\n return 'Packet (Length: %s)%s' % (YKHO.length, Hy7s.l...
[ "0.76695573", "0.72700393", "0.6919632", "0.68297493", "0.67805356", "0.6630007", "0.6587308", "0.6476543", "0.6449791", "0.64259374", "0.64172685", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.63...
0.0
-1
String representation of the decoded packet.
def zAg0(YKHO): return '\tHandle: %(handle)d (0x%(handle).2x)\n\tLength: %(length)d (0x%(length).2x)\n\tParameters:\n\t\t%(data)s' % {'handle': YKHO.handle, 'length': YKHO.length, 'data': YKHO.format_raw_data(YKHO.parameters)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '\\n%(source)s > %(type)s (0x%(type_d).2x)\\n%(data)s' % {'type': K2Fs.pkt_type_str[YKHO.type], 'type_d': YKHO.type, 'data': str(YKHO.decoded) if YKHO.decoded else 'Unknown raw data.', 'source': YKHO.source}", "def Ismw(YKHO):\n return 'Packet (Length: %s)%s' % (YKHO.length, Hy7s.l...
[ "0.76695573", "0.72700393", "0.6919632", "0.68297493", "0.67805356", "0.6630007", "0.6587308", "0.6476543", "0.6449791", "0.64259374", "0.64172685", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.63...
0.0
-1
String representation of the decoded packet.
def zAg0(YKHO): return '\tCode: %(code)d (0x%(code).2x)\n\tLength: %(length)d (0x%(length).2x)\n\tParameters:\n\t\t%(data)s' % {'code': YKHO.code, 'length': YKHO.length, 'data': YKHO.format_raw_data(YKHO.parameters)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '\\n%(source)s > %(type)s (0x%(type_d).2x)\\n%(data)s' % {'type': K2Fs.pkt_type_str[YKHO.type], 'type_d': YKHO.type, 'data': str(YKHO.decoded) if YKHO.decoded else 'Unknown raw data.', 'source': YKHO.source}", "def Ismw(YKHO):\n return 'Packet (Length: %s)%s' % (YKHO.length, Hy7s.l...
[ "0.76695573", "0.72700393", "0.6919632", "0.68297493", "0.67805356", "0.6630007", "0.6587308", "0.6476543", "0.6449791", "0.64259374", "0.64172685", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.638863", "0.63...
0.0
-1
String representation of the decoded packet.
def zAg0(YKHO): return '\tMsg ID: %(msg_id)d (0x%(msg_id).4x)\n\tSrc. task ID: %(src_task_id)d (0x%(src_task_id).4x)\n\tDst. task ID: %(dst_task_id)d (0x%(dst_task_id).4x)\n\tLength: %(length)d (0x%(length).4x)\n\tParameters:\n\t\t%(data)s' % {'msg_id': YKHO.msg_id, 'length': YKHO.length, 'dst_task_id': YKHO.dst_ta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '\\n%(source)s > %(type)s (0x%(type_d).2x)\\n%(data)s' % {'type': K2Fs.pkt_type_str[YKHO.type], 'type_d': YKHO.type, 'data': str(YKHO.decoded) if YKHO.decoded else 'Unknown raw data.', 'source': YKHO.source}", "def Ismw(YKHO):\n return 'Packet (Length: %s)%s' % (YKHO.length, Hy7s.l...
[ "0.766953", "0.72699344", "0.6919049", "0.6830453", "0.6779812", "0.66305566", "0.65875816", "0.6477554", "0.6449713", "0.64255065", "0.6417497", "0.63893193", "0.63893193", "0.63893193", "0.63893193", "0.63893193", "0.63893193", "0.63893193", "0.63893193", "0.63893193", "0.6...
0.0
-1
Provide a nice instance representation string. The length/degree of detail can be switched via the class variable `long_repr`.
def wHJl(YKHO) -> str: if YKHO.long_repr: tSjf = 'arr_shape={}, arr_dtype={}, metadata={}'.format(YKHO.data.shape, YKHO.data.dtype, YKHO.metadata) else: tSjf = 'arr_shape={}, arr_dtype={}, metadata_type={}'.format(YKHO.data.shape, YKHO.data.dtype, type(YKHO.metadata)) kmT1 = '{}({})'.format(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n KCHu = ''\n for hkS8 in YKHO.__dict__:\n wEf2 = EyO9(YKHO.__dict__[hkS8])[:1500]\n if len(wEf2) > 70:\n KCHu += f'\\n{hkS8}:\\n{wEf2}\\n\\n'\n else:\n KCHu += f'{hkS8}: {wEf2}\\n'\n return KCHu", "def zAg0(YKHO):\n return f'{YKHO._desc:16s}...
[ "0.7424985", "0.7065908", "0.70141524", "0.7013193", "0.7008164", "0.6996676", "0.69442207", "0.68783367", "0.6875018", "0.6872168", "0.6871172", "0.68670297", "0.68596965", "0.6858567", "0.6848698", "0.68422407", "0.684151", "0.67972994", "0.6796759", "0.67521167", "0.675199...
0.73410684
1
Change the name attribute of a segment. The segment is accessed via its `label_value`.
def TNuv(YKHO, sFFp: int, Dokz: str) -> None: C31P = YKHO.infos[sFFp] C31P.name = Dokz YKHO._update_state_from_infos()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNuv(YKHO, UXqs):\n YKHO._seg_header = YKHO._seg_header.replace(YKHO._label, UXqs)\n YKHO._label = UXqs\n for pG0V in YKHO._segments:\n pG0V.rename(UXqs)", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP\n YKHO.labels.change_name(mWFP)", "def mWFP(YKHO, BWXx):\n YKHO._name = BWXx", "de...
[ "0.74237776", "0.7024633", "0.6811663", "0.6811663", "0.6681774", "0.65745354", "0.65458244", "0.6481394", "0.6474462", "0.6459464", "0.6450721", "0.643437", "0.6401439", "0.6401439", "0.6395992", "0.6390431", "0.63880545", "0.6361964", "0.6354115", "0.6295582", "0.6295582", ...
0.78593975
0
Add an item to the left of the deque
def QbC9(YKHO, ZfUD): Z8g1 = o7DN(ZfUD) Z8g1.set_next(YKHO.head) if not YKHO.tail: YKHO.tail = Z8g1 else: YKHO.head.set_prev(Z8g1) YKHO.head = Z8g1 YKHO.size += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rwLV(YKHO, ZfUD):\n X1Cd = o7DN(ZfUD, YKHO.head.next)\n YKHO.head.next = X1Cd\n YKHO._size += 1", "def i6Ec(YKHO, ZfUD):\n Z8g1 = o7DN(ZfUD)\n Z8g1.set_prev(YKHO.tail)\n if not YKHO.head:\n YKHO.head = Z8g1\n else:\n YKHO.tail.set_next(Z8g1)\n YKHO.tail = Z8g1\n YKHO....
[ "0.754678", "0.7425301", "0.7240149", "0.71819776", "0.71179277", "0.70548034", "0.6968305", "0.6947284", "0.691008", "0.69081", "0.6874867", "0.68729055", "0.68586403", "0.68586403", "0.68532795", "0.6844967", "0.68438506", "0.6718541", "0.6718313", "0.6681286", "0.66544807"...
0.808663
0
Set up module once, before any TestCases are run.
def SjAq(): G9jH.basicConfig()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.modules = {}", "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n RKD7.debug('TestModule.setUp')\n if YKHO.module is None:\n YKHO.module = KhOF(YKHO.moduleName, [YKHO.path], YKHO.conf)\n RKD7.debug('Imported %s from %s on %s', YKHO.module, YKHO.moduleName, YKHO.path...
[ "0.8089004", "0.8038264", "0.79731303", "0.7948143", "0.7948143", "0.788953", "0.788953", "0.78740597", "0.78455335", "0.7743296", "0.77400124", "0.77315354", "0.77315354", "0.7727674", "0.77244264", "0.76997197", "0.7658526", "0.7654174", "0.76530343", "0.7642491", "0.763155...
0.0
-1
Set up class before _each_ test method is executed. Creates a tensorflow session and instantiates a dbinterface.
def FCbF(YKHO): YKHO.setup_model() YKHO.sess = ZylS.Session(config=ZylS.ConfigProto(allow_soft_placement=True, gpu_options=ZylS.GPUOptions(allow_growth=True), log_device_placement=YKHO.params['log_device_placement'])) YKHO.sess.run(ZylS.global_variables_initializer()) YKHO.dbinterface = xxXn(sess=YKHO.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO._logger = VSNv.MockBenchmarkLogger()\n YKHO.graph = ZylS.Graph()\n with YKHO.graph.as_default():\n ZylS.train.create_global_step()\n YKHO.train_op = ZylS.assign_add(ZylS.train.get_global_step(), 1)\n YKHO.global_step = ZylS.train.get_global_step()", "def cM5c(...
[ "0.73305035", "0.70200276", "0.69346213", "0.6932429", "0.68916905", "0.68707", "0.68157595", "0.6775853", "0.6754787", "0.6727972", "0.67227936", "0.67102116", "0.670938", "0.6707399", "0.6694288", "0.6654798", "0.66523933", "0.6641229", "0.6623708", "0.6621165", "0.66112334...
0.8358574
0
Remove a MonogoDB database.
def bOgW(Emd4, N5CR): Emd4.log.info('Removing database: {}'.format(N5CR)) Emd4.conn.drop_database(N5CR) Emd4.log.info('Database successfully removed.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OfVt(YKHO):\n wnys = YKHO.db.db_url.split('///')[1]\n if Hy7s.path.exists(wnys):\n Hy7s.remove(wnys)", "def OfVt():\n p9bx.db.reflect()\n p9bx.db.drop_all()\n print('Dropped the database')", "def JdpX():\n OfVt(P4t4)", "def DunT():\n NCls.drop_all()", "def Xb7L(YKHO, wnys):\...
[ "0.80009437", "0.78017175", "0.77897173", "0.76258606", "0.75912684", "0.7514121", "0.751287", "0.75036794", "0.74991983", "0.74372333", "0.74372333", "0.74372333", "0.74372333", "0.74372333", "0.74372333", "0.74372333", "0.74372333", "0.74372333", "0.743501", "0.74137664", "...
0.7637478
3
sort the model column After sorting the data in ascending or descending order, a signal `layoutChanged` is emitted.
def BA9O(YKHO, tP06, T4Wy=uaAZ.AscendingOrder): YKHO.layoutAboutToBeChanged.emit() YKHO.sortingAboutToStart.emit() iVRZ = YKHO._dataFrame.columns[tP06] YKHO._dataFrame.sort_values(iVRZ, ascending=not bool(T4Wy), inplace=True) YKHO._dataFrame.reset_index(drop=True, inplace=True) YKHO.layoutChange...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BA9O(YKHO, qliN, T4Wy):\n YKHO.emit(Vt41('layoutAboutToBeChanged()'))\n YKHO.arraydata = sorted(YKHO.arraydata, key=seET.itemgetter(qliN))\n if T4Wy == uaAZ.DescendingOrder:\n YKHO.arraydata.reverse()\n YKHO.emit(Vt41('layoutChanged()'))", "def BA9O(YKHO, qliN, T4Wy):\n YKHO.emit(Vt41('...
[ "0.7686626", "0.7660356", "0.7609118", "0.75360477", "0.7532754", "0.6921959", "0.6834143", "0.6465188", "0.6418707", "0.6384737", "0.6375916", "0.63108104", "0.6282037", "0.62464035", "0.61888105", "0.61464596", "0.61439526", "0.61345136", "0.6103229", "0.60899144", "0.60432...
0.63957465
9