query
stringlengths
9
3.4k
document
stringlengths
9
87.4k
metadata
dict
negatives
listlengths
4
101
negative_scores
listlengths
4
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Write the conductivity to file, given an object to write to.
def write_conductivity(frequencies, conductivity, write_obj, is_interacting): interacting_str = 'Interacting' if is_interacting else 'Non-interacting' write_obj.write('Optical conductivity (%s)\n' % interacting_str) write_obj.write('Omega (s^-1)\t Sigma (e^2/hbar)\n') for omega, sigma_omega in zip(frequ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def write(obj, filename):\n with open(filename, 'w') as f:\n print(*obj, sep='\\n', file=f)", "def to_file(self, file_io):\n pickle.dump(self.__object, file_io)", "def write(self, object, content_type, to_file):\n return to_file", "def write_to_file(unit, fobj):\n\n _wr...
[ "0.684112", "0.6738156", "0.66926455", "0.6666181", "0.63667643", "0.6286877", "0.62704235", "0.6248772", "0.6228647", "0.6222173", "0.6222173", "0.62115294", "0.62083536", "0.6173363", "0.6161048", "0.61232144", "0.60937095", "0.6081039", "0.6070133", "0.6067931", "0.6049062...
0.6020846
24
Write the conductivity to file, given an object to write to.
def write_excitons(eigensystem, write_obj, n_spins=1, cutoff_info=None): for s0 in range(n_spins): write_obj.write('Spin #%d | k_idx/cb_idx/vb_idx\n' % s0) write_obj.write('E') for item in cutoff_info[s0]: k_idx, v_dict = tuple(item) transition_range = v_dict['transit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def write(obj, filename):\n with open(filename, 'w') as f:\n print(*obj, sep='\\n', file=f)", "def to_file(self, file_io):\n pickle.dump(self.__object, file_io)", "def write(self, object, content_type, to_file):\n return to_file", "def write_to_file(unit, fobj):\n\n _wr...
[ "0.6840541", "0.6736317", "0.6691649", "0.6665765", "0.636502", "0.6286624", "0.6269604", "0.62477165", "0.6226111", "0.62191767", "0.62191767", "0.6208553", "0.6206217", "0.61726344", "0.6159607", "0.6120756", "0.609184", "0.607952", "0.60695326", "0.60663205", "0.60488546",...
0.0
-1
Write the conductivity to file, given an object to write to.
def write_exciton_dos(frequencies, density_of_states, write_obj): write_obj.write('Excitonic Density of States') write_obj.write('Omega (s^-1)\t Rho (1/eV)\n') for omega, rho in zip(frequencies, density_of_states): write_obj.write('{}\t{}\n'.format(omega, rho))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def write(obj, filename):\n with open(filename, 'w') as f:\n print(*obj, sep='\\n', file=f)", "def to_file(self, file_io):\n pickle.dump(self.__object, file_io)", "def write(self, object, content_type, to_file):\n return to_file", "def write_to_file(unit, fobj):\n\n _wr...
[ "0.68412006", "0.6737645", "0.6692501", "0.6666418", "0.63656026", "0.62872404", "0.62713605", "0.62491566", "0.6226975", "0.62210226", "0.62210226", "0.6209556", "0.6207401", "0.61742365", "0.61606216", "0.6122432", "0.60929567", "0.6080594", "0.6069678", "0.6067417", "0.604...
0.0
-1
Callback will execute upon a creation of a new station
def on_new_station(self, func): self._set_event_handler("stations") self._events.on_new_station(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_station(self, station_id=None, time=None, location=None):", "def on_station_member_member_added(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_member_added(func)", "def on_station_member_station_updated(\n self, func,\n ):\n self._se...
[ "0.679513", "0.62780607", "0.6241043", "0.6100334", "0.60837287", "0.6062058", "0.60402775", "0.60220957", "0.5858145", "0.5814468", "0.5761134", "0.5739674", "0.5734084", "0.5680822", "0.56590843", "0.56186336", "0.5609303", "0.5603253", "0.5589692", "0.5564803", "0.55043507...
0.77319133
0
Callback will execute upon an invite sent Emitted to admin of a station
def on_station_admin_invite_sent(self, func): self._set_event_handler("stations") self._events.on_station_admin_invite_sent(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_accepted(func)", "def on_station_user_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_invite_accepted(fu...
[ "0.7862821", "0.72521", "0.70023113", "0.6733019", "0.66984695", "0.6528772", "0.62504756", "0.61556804", "0.6079399", "0.6075541", "0.60602736", "0.6042864", "0.5990507", "0.59235895", "0.584231", "0.5645996", "0.55794823", "0.5565687", "0.5527262", "0.5505544", "0.55029124"...
0.80180174
0
Callback will execute upon a user receiving an invite to a station Emitted to the user that receives the invite
def on_station_user_invite_received(self, func): self._set_event_handler("stations") self._events.on_station_user_invite_received(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_user_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_invite_accepted(func)", "def on_station_admin_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_accepted(fu...
[ "0.81320995", "0.7638876", "0.74999964", "0.7029182", "0.68845016", "0.68583107", "0.6756366", "0.6501223", "0.6459037", "0.6394603", "0.6124593", "0.59051687", "0.585066", "0.5805171", "0.5777452", "0.5753945", "0.5743887", "0.5603031", "0.5583114", "0.5568773", "0.55654657"...
0.80623764
1
Callback will execute upon an invite to a station being accepted Emitted to admin of station
def on_station_admin_invite_accepted(self, func): self._set_event_handler("stations") self._events.on_station_admin_invite_accepted(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_invite_sent(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_sent(func)", "def on_station_user_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_invite_accepted(func)", ...
[ "0.79052866", "0.77318126", "0.7097689", "0.7077527", "0.67795974", "0.65844184", "0.6377679", "0.6272416", "0.61911255", "0.6121152", "0.610797", "0.6050859", "0.5862195", "0.5843526", "0.584177", "0.5809505", "0.57833284", "0.57717896", "0.5746687", "0.57142836", "0.5685872...
0.82094496
0
Callback will execute upon a member has been added (request has been approved or invitation has been accepted) Emitted to all members of a station
def on_station_member_member_added(self, func): self._set_event_handler("stations") self._events.on_station_member_member_added(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_accepted(func)", "def on_station_admin_invite_sent(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_sent(func)", ...
[ "0.6841414", "0.6628625", "0.64575094", "0.6273292", "0.6245261", "0.62287843", "0.6219931", "0.5960429", "0.59503126", "0.5925391", "0.59035707", "0.58338773", "0.58319974", "0.580299", "0.57956725", "0.57725805", "0.5745193", "0.5730113", "0.57162654", "0.5690115", "0.56886...
0.68647575
0
Callback will execute upon a user accepting an invite to a station Emitted to user who has accepted the invitation
def on_station_user_invite_accepted(self, func): self._set_event_handler("stations") self._events.on_station_user_invite_accepted(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_user_invite_received(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_invite_received(func)", "def on_station_admin_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_accepted(fu...
[ "0.78580874", "0.7703749", "0.7360052", "0.7022292", "0.6522973", "0.6501082", "0.6446508", "0.642123", "0.63783103", "0.61350745", "0.6080096", "0.6079129", "0.6003704", "0.5899242", "0.5853112", "0.5750894", "0.5734992", "0.56970996", "0.5684728", "0.5667676", "0.5656933", ...
0.8246524
0
Callback will execute when an invite to a station has been rejected Emitted to admin of station
def on_station_admin_invite_rejected(self, func): self._set_event_handler("stations") self._events.on_station_admin_invite_rejected(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_user_invite_rejected(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_invite_rejected(func)", "def on_station_admin_request_rejected(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_...
[ "0.78471124", "0.7169883", "0.6917644", "0.6909588", "0.66046244", "0.65094304", "0.63467664", "0.6090597", "0.6034777", "0.593315", "0.5861387", "0.58386743", "0.5782971", "0.5741078", "0.5646873", "0.56354505", "0.56138223", "0.55414087", "0.55413914", "0.55212015", "0.5496...
0.81823933
0
Callback will execute when an invite to a station has been rejected Emitted to admin of station
def on_station_user_invite_rejected(self, func): self._set_event_handler("stations") self._events.on_station_user_invite_rejected(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_invite_rejected(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_rejected(func)", "def on_station_admin_request_rejected(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admi...
[ "0.8182359", "0.71699804", "0.69147366", "0.69103426", "0.66014355", "0.650725", "0.63464254", "0.6092195", "0.6032582", "0.5933349", "0.58619887", "0.58406657", "0.5785721", "0.57378733", "0.5648342", "0.56360805", "0.561547", "0.5544359", "0.55401415", "0.5521986", "0.54966...
0.78478223
1
Callback will execute when a request to join the station has been received Emitted to admin of station
def on_station_admin_request_received(self, func): self._set_event_handler("stations") self._events.on_station_admin_request_received(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_request_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_request_accepted(func)", "def on_station_admin_invite_sent(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_sent(func)"...
[ "0.68466026", "0.66937715", "0.6670364", "0.646025", "0.64006436", "0.6288368", "0.6053946", "0.6022353", "0.5994483", "0.58155864", "0.5807389", "0.5659682", "0.56535447", "0.5645651", "0.5607143", "0.5590763", "0.55168384", "0.5516614", "0.54948854", "0.54890245", "0.545305...
0.68960047
0
Callback will execute when a request to join the station has been sent Emitted to user requesting to join the station
def on_station_user_request_sent(self, func): self._set_event_handler("stations") self._events.on_station_user_request_sent(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_join(data):\n username = request.sid\n room = data\n join_room(room)\n logging.info(username + ' has entered the room.')\n send(username + ' has entered the room.', room=room)", "def on_station_user_request_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._...
[ "0.66841453", "0.6485123", "0.62627167", "0.6253512", "0.61368406", "0.6130546", "0.61215", "0.61135936", "0.6058494", "0.6054133", "0.5874718", "0.5859308", "0.5694417", "0.5681543", "0.56435835", "0.55247724", "0.5517709", "0.54644835", "0.5449132", "0.544854", "0.5442675",...
0.65409917
1
Callback will execute when a request to join a station has been accepted Emitted to admin of station
def on_station_admin_request_accepted(self, func): self._set_event_handler("stations") self._events.on_station_admin_request_accepted(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_accepted(func)", "def on_station_admin_invite_sent(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_sent(func)", ...
[ "0.7303009", "0.6945661", "0.6935645", "0.690319", "0.6659846", "0.6527142", "0.6212868", "0.58979154", "0.5848147", "0.58288276", "0.575778", "0.5556925", "0.5516092", "0.5484132", "0.54261506", "0.53491837", "0.5336381", "0.53317463", "0.5302548", "0.5281141", "0.5278474", ...
0.74382514
0
Callback will execute when a request to join a station has been accepted Emitted to user who sent the request
def on_station_user_request_accepted(self, func): self._set_event_handler("stations") self._events.on_station_user_request_accepted(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_user_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_invite_accepted(func)", "def on_station_admin_request_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_request_accepted(...
[ "0.6955949", "0.6827532", "0.6813382", "0.67880994", "0.65492254", "0.63253266", "0.6229898", "0.6229525", "0.5894921", "0.5725823", "0.57227594", "0.5636143", "0.5626334", "0.55548686", "0.55215067", "0.54907984", "0.5421875", "0.5383727", "0.5361264", "0.53532314", "0.53511...
0.72116745
0
Callback will execute when a request to join a station has been rejected Emitted to admin of station
def on_station_admin_request_rejected( self, func, ): self._set_event_handler("stations") self._events.on_station_admin_request_rejected(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_invite_rejected(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_rejected(func)", "def on_station_user_request_rejected(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_...
[ "0.7508049", "0.7241212", "0.69624627", "0.64785105", "0.6446646", "0.616859", "0.6132982", "0.58746403", "0.5815561", "0.5778777", "0.5693765", "0.5642176", "0.5598876", "0.5520983", "0.5473266", "0.54699033", "0.54599476", "0.5319745", "0.5295449", "0.5279028", "0.52723986"...
0.7643505
0
Callback will execute when a request to join a station has been rejected Emitted to user who sent the request
def on_station_user_request_rejected( self, func, ): self._set_event_handler("stations") self._events.on_station_user_request_rejected(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_request_rejected(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_request_rejected(func)", "def on_station_user_invite_rejected(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user...
[ "0.72242796", "0.7169859", "0.71093756", "0.62692106", "0.6162381", "0.6093102", "0.6071127", "0.6063276", "0.6037017", "0.58516705", "0.5825428", "0.5823648", "0.5689596", "0.5682142", "0.5650242", "0.5580757", "0.5561729", "0.5425182", "0.54223937", "0.53186864", "0.5317048...
0.7520852
0
Callback will execute when a member has been removed from a station Emitted to admin of station
def on_station_admin_member_removed( self, func, ): self._set_event_handler("stations") self._events.on_station_admin_member_removed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_member_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_member_removed(func)", "def on_station_member_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_s...
[ "0.8090614", "0.72844404", "0.7180372", "0.7098552", "0.6893531", "0.6693755", "0.6601275", "0.6580021", "0.6401644", "0.62114555", "0.62074566", "0.6165935", "0.6130952", "0.6130265", "0.6118406", "0.6112828", "0.6060032", "0.59372896", "0.59356517", "0.5895339", "0.58849907...
0.8322047
0
Callback will execute when a machine has been removed from a station Emitted to admin of station
def on_station_admin_lz_removed( self, func, ): self._set_event_handler("stations") self._events.on_station_admin_machine_removed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_member_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_member_removed(func)", "def on_station_member_member_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.o...
[ "0.74925554", "0.7185477", "0.71297985", "0.71214736", "0.6928152", "0.68192637", "0.6769653", "0.6763081", "0.6616809", "0.6492403", "0.6285061", "0.62381095", "0.6017558", "0.6000559", "0.58863384", "0.58476645", "0.5845622", "0.5812123", "0.57870406", "0.5757434", "0.57293...
0.80288905
0
Callback will execute when a member has been removed from a station Emitted to members of a station
def on_station_member_member_removed( self, func, ): self._set_event_handler("stations") self._events.on_station_member_member_removed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_member_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_member_removed(func)", "def on_station_member_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_sta...
[ "0.78925335", "0.7475585", "0.74634963", "0.72404945", "0.71363336", "0.68487024", "0.63081086", "0.6298412", "0.6183536", "0.61618805", "0.60892916", "0.60709155", "0.6061602", "0.6021408", "0.6017846", "0.59470177", "0.5895361", "0.57695997", "0.57521033", "0.5735757", "0.5...
0.83721423
0
Callback will execute when a lz has been removed from a station Emitted to members of a station
def on_station_member_lz_removed( self, func, ): self._set_event_handler("stations") self._events.on_station_member_lz_removed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_member_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_member_removed(func)", "def on_station_admin_member_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events....
[ "0.7467587", "0.7158304", "0.70554227", "0.705402", "0.6673115", "0.645907", "0.6301589", "0.61691844", "0.6152636", "0.6126467", "0.6068689", "0.6062918", "0.58316433", "0.58020496", "0.57546675", "0.57270175", "0.5691494", "0.5670227", "0.56700915", "0.56591135", "0.5659113...
0.8013014
0
Callback will execute when a user has withdrawn from the station Emitted to user that is withdrawing
def on_station_user_withdrawn( self, func, ): self._set_event_handler("stations") self._events.on_station_user_withdrawn(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def withdrawn(self, withdrawn):\n\n self._withdrawn = withdrawn", "def withdraw(self, responder):\n self._apply_decision(self.Status.WITHDRAWN, responder)", "def register_withdraw(self, withdraw_intent): \n if withdraw_intent > 0:\n self.teo.register_withdraw(self, withdr...
[ "0.6280947", "0.6161329", "0.60593873", "0.59035903", "0.58503324", "0.5846078", "0.5838894", "0.56733334", "0.56080455", "0.5599047", "0.55697167", "0.5512106", "0.5434457", "0.54135007", "0.54083556", "0.5343418", "0.53159446", "0.52895343", "0.5268842", "0.5216583", "0.520...
0.75991595
0
Callback will execute when a user has been expelled from the station Emitted to user that has been expelled
def on_station_user_expelled( self, func, ): self._set_event_handler("stations") self._events.on_station_user_expelled(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_user_invite_received(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_invite_received(func)", "def on_station_user_request_sent(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_request_sent(func)", ...
[ "0.6032986", "0.60228616", "0.6012655", "0.5971325", "0.5862614", "0.5816621", "0.57896817", "0.5784432", "0.5752986", "0.57082874", "0.5644239", "0.56391656", "0.5633405", "0.56310546", "0.5574033", "0.55336314", "0.5490777", "0.5488117", "0.53740114", "0.5361506", "0.535511...
0.7557197
0
Callback will execute when a station has been destroyed Emitted to admin of station
def on_station_admin_destroyed( self, func, ): self._set_event_handler("stations") self._events.on_station_admin_destroyed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_destroyed(func)", "def on_station_user_request_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_stati...
[ "0.8119965", "0.7651988", "0.70316553", "0.70093346", "0.6988427", "0.69162315", "0.6827265", "0.6782444", "0.6442174", "0.63427293", "0.6286415", "0.6148036", "0.61342084", "0.6057831", "0.5978917", "0.596644", "0.5874533", "0.5806393", "0.5776957", "0.5764307", "0.57577187"...
0.82311636
0
Callback will execute when a station has been destroyed Emitted to member of station
def on_station_member_destroyed( self, func, ): self._set_event_handler("stations") self._events.on_station_member_destroyed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_destroyed(func)", "def on_station_user_request_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station...
[ "0.78202033", "0.75016516", "0.72711587", "0.72461313", "0.7081167", "0.6945979", "0.67467195", "0.66403705", "0.6390623", "0.6238821", "0.60153306", "0.5947399", "0.59003234", "0.58888316", "0.5882677", "0.58649814", "0.58599377", "0.58599377", "0.5857766", "0.5851037", "0.5...
0.86095256
0
Callback will execute when a station has been destroyed Emitted to anyone who received an invite to join the station
def on_station_user_invite_destroyed( self, func, ): self._set_event_handler("stations") self._events.on_station_user_invite_destroyed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_destroyed(func)", "def on_station_user_request_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_stati...
[ "0.7774978", "0.7354801", "0.7010772", "0.6798138", "0.67609", "0.6598042", "0.65846235", "0.6543447", "0.61129767", "0.5965243", "0.5905298", "0.5861055", "0.5828097", "0.5757637", "0.5714835", "0.5710986", "0.56373346", "0.5623654", "0.5599341", "0.55976605", "0.55884725", ...
0.78109205
0
Callback will execute when a station has been destroyed Emitted to anyone who sent a request to join to the station
def on_station_user_request_destroyed( self, func, ): self._set_event_handler("stations") self._events.on_station_user_request_destroyed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_destroyed(func)", "def on_station_admin_destroyed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admi...
[ "0.7938453", "0.7332709", "0.7107509", "0.6903696", "0.67589515", "0.653213", "0.64212835", "0.6412175", "0.6031238", "0.6008196", "0.59244275", "0.58895844", "0.5883974", "0.5865049", "0.57975787", "0.5796525", "0.57758373", "0.57524854", "0.571541", "0.5638192", "0.5600419"...
0.7689759
1
Callback will execute when a lz has been added to the station Emitted to admin of station
def on_station_admin_lz_added( self, func, ): self._set_event_handler("stations") self._events.on_station_admin_lz_added(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_lz_added(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_lz_added(func)", "def on_station_admin_request_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_request_ac...
[ "0.7202812", "0.67835104", "0.6777509", "0.66383225", "0.6385432", "0.6299666", "0.6266086", "0.6250439", "0.62372637", "0.6170564", "0.60402745", "0.6015254", "0.6008367", "0.5960361", "0.5904323", "0.5803821", "0.5748409", "0.5697951", "0.56553054", "0.56054586", "0.5587225...
0.7767337
0
Callback will execute when a lz has been added to the station Emitted to members of station
def on_station_member_lz_added( self, func, ): self._set_event_handler("stations") self._events.on_station_member_lz_added(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_lz_added(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_lz_added(func)", "def on_station_member_member_added(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_member_added(f...
[ "0.721138", "0.6940183", "0.6660081", "0.642822", "0.6207639", "0.6136572", "0.6130722", "0.6065644", "0.6048055", "0.59229004", "0.5910956", "0.5905538", "0.5896204", "0.5871022", "0.5846699", "0.5839158", "0.5759173", "0.5727858", "0.5689695", "0.5646457", "0.5568246", "0...
0.77562016
0
Callback will execute when a volume has been added to the station Emitted to admin of station
def on_station_admin_volume_added(self, func): self._set_event_handler("stations") self._events.on_station_admin_volume_added(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_volume_added(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_volume_added(func)", "def on_station_admin_volume_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_s...
[ "0.7859221", "0.72667104", "0.696747", "0.6805496", "0.6788688", "0.65589756", "0.64129627", "0.6382112", "0.6334093", "0.6064404", "0.60157835", "0.5939194", "0.59246176", "0.587847", "0.5875471", "0.5869398", "0.5828167", "0.5781829", "0.5688935", "0.5655154", "0.56378186",...
0.8197018
0
Callback will execute when a volume has been added to the station Emitted to members of station
def on_station_member_volume_added( self, func, ): self._set_event_handler("stations") self._events.on_station_member_volume_added(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_volume_added(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_volume_added(func)", "def on_station_member_volume_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_volu...
[ "0.7613187", "0.7274015", "0.6893663", "0.66773164", "0.6530562", "0.6248589", "0.6238693", "0.62022597", "0.6062868", "0.6047132", "0.5972762", "0.5931559", "0.5906756", "0.57900226", "0.5726604", "0.5689329", "0.56803286", "0.5656226", "0.56335336", "0.5633369", "0.56183165...
0.8199039
0
Callback will execute when a volume host path has been added Emitted to admin of station
def on_station_admin_volume_host_path_added( self, func, ): self._set_event_handler("stations") self._events.on_station_admin_volume_host_path_added(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_volume_host_path_added(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_volume_host_path_added(func)", "def on_station_admin_volume_host_path_removed(\n self, func,\n ):\n self._set_event_handler(\"stations...
[ "0.805942", "0.75566065", "0.71610796", "0.70932186", "0.6492289", "0.6430323", "0.6325891", "0.5912592", "0.5764045", "0.57638437", "0.5752357", "0.5739366", "0.5607364", "0.55918765", "0.5553969", "0.5551826", "0.55396825", "0.5520093", "0.5482749", "0.5459397", "0.53581035...
0.8371554
0
Callback will execute when a volume host path has been added Emitted to members of station
def on_station_member_volume_host_path_added( self, func, ): self._set_event_handler("stations") self._events.on_station_member_volume_host_path_added(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_volume_host_path_added(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_volume_host_path_added(func)", "def on_station_member_volume_host_path_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\...
[ "0.7944421", "0.74438643", "0.72252536", "0.69669914", "0.68353957", "0.6206719", "0.61769456", "0.5866177", "0.57220167", "0.5643982", "0.5563051", "0.5551543", "0.55144763", "0.5506383", "0.5502491", "0.54970294", "0.5471755", "0.5371724", "0.5347677", "0.53468114", "0.5338...
0.82428426
0
Callback will execute when a volume host path has been removed Emitted to admin of station
def on_station_admin_volume_host_path_removed( self, func, ): self._set_event_handler("stations") self._events.on_station_admin_volume_host_path_removed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_volume_host_path_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_volume_host_path_removed(func)", "def on_station_admin_volume_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n ...
[ "0.8244994", "0.71275765", "0.682808", "0.6571631", "0.6213402", "0.6195549", "0.6172587", "0.61210924", "0.6077291", "0.6032837", "0.60255456", "0.60244447", "0.59594303", "0.595723", "0.5956895", "0.59038365", "0.5880435", "0.5872567", "0.58382124", "0.5814773", "0.57862276...
0.8255592
0
Callback will execute when a volume host path has been removed Emitted to members of station
def on_station_member_volume_host_path_removed( self, func, ): self._set_event_handler("stations") self._events.on_station_member_volume_host_path_removed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_volume_host_path_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_volume_host_path_removed(func)", "def on_station_member_volume_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n ...
[ "0.8072026", "0.7217955", "0.7095471", "0.62476283", "0.62444943", "0.61878514", "0.61556584", "0.61227626", "0.61167973", "0.61043686", "0.6071223", "0.60201705", "0.5927294", "0.5926156", "0.5912245", "0.5901936", "0.5840458", "0.582277", "0.577391", "0.5652091", "0.5646809...
0.84106934
0
Callback will execute when a volume has been removed Emitted to admin of station
def on_station_admin_volume_removed( self, func, ): self._set_event_handler("stations") self._events.on_station_admin_volume_removed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_volume_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_volume_removed(func)", "def on_station_admin_volume_host_path_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n sel...
[ "0.78319615", "0.68117523", "0.67949766", "0.65829384", "0.64483714", "0.64320034", "0.6410322", "0.6256674", "0.623053", "0.6175508", "0.6175117", "0.61602473", "0.61020213", "0.6085786", "0.60845757", "0.60769176", "0.60712564", "0.6064388", "0.5903153", "0.5838515", "0.583...
0.8042458
0
Callback will execute when a volume has been removed Emitted to members of station
def on_station_member_volume_removed( self, func, ): self._set_event_handler("stations") self._events.on_station_member_volume_removed(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_volume_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_volume_removed(func)", "def on_station_member_member_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.o...
[ "0.7637939", "0.6835926", "0.67477673", "0.6719256", "0.66722417", "0.6470083", "0.6280348", "0.6229675", "0.61881113", "0.6037404", "0.6007009", "0.59855336", "0.5976737", "0.5976737", "0.5976737", "0.5976737", "0.5976737", "0.5911461", "0.5896595", "0.5851172", "0.5844925",...
0.812461
0
Callback will execute when a station has been updated Emitted to admin
def on_station_admin_station_updated( self, func, ): self._set_event_handler("stations") self._events.on_station_admin_station_updated(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_station_updated(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_station_updated(func)", "def on_station_admin_request_received(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_ad...
[ "0.7415093", "0.7156477", "0.7076884", "0.63513875", "0.62968284", "0.62215596", "0.61810315", "0.61545247", "0.6046591", "0.6042364", "0.60024345", "0.5991592", "0.5952644", "0.59200525", "0.59006035", "0.5874148", "0.5862334", "0.58519965", "0.58262974", "0.57697856", "0.57...
0.8094356
0
Callback will execute when a station has been updated Emitted to members of the station
def on_station_member_station_updated( self, func, ): self._set_event_handler("stations") self._events.on_station_member_station_updated(func)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_station_updated(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_station_updated(func)", "def on_station_member_member_added(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_...
[ "0.75220203", "0.680578", "0.6737505", "0.6612835", "0.6460559", "0.6446961", "0.64370733", "0.63332766", "0.6251236", "0.6241034", "0.623026", "0.6202874", "0.61458856", "0.61341816", "0.60409355", "0.6027942", "0.60265416", "0.6012446", "0.59044623", "0.59005696", "0.589337...
0.80973333
0
Get a filtered list of Galileo Stations that are accessible in your account.
def list_stations( self, stationids=None, names=None, lz_ids=None, user_roles=None, volumeids=None, descriptions=None, page=1, items=25, active="true", userids=None, partial_names=None, updated=None, lz_count...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getStations(self) :\n return self._stations", "def get_stations(self):\n return self.__request('stations')['stations']", "def stations():\r\n # Query all passengers\r\n results = session.query(Station.station, \r\n Station.name, \r\n ...
[ "0.62065893", "0.59315646", "0.5837592", "0.5770718", "0.5710928", "0.5640358", "0.5629488", "0.55958164", "0.558376", "0.5555222", "0.5545616", "0.55391216", "0.55008364", "0.5476499", "0.5472909", "0.547199", "0.54588574", "0.5446364", "0.5441253", "0.54338455", "0.5410897"...
0.0
-1
Create a new station
def create_station(self, name, description="", userids=None): return self._stations_service.create_station(name, description, userids)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_station(self, station_id=None, time=None, location=None):", "def create():", "def create():", "def addstnrecord(dnaxmlroot, name, constraint, coordtype, xaxis, yaxis, height, hemi_zone, desc):\n # Define DnaStation\n dnastn = ET.SubElement(dnaxmlroot, 'DnaStation')\n\n # Create DnaStation Su...
[ "0.74736595", "0.64120275", "0.64120275", "0.6267723", "0.61928046", "0.61731315", "0.61191505", "0.6088154", "0.5894192", "0.5846477", "0.58350563", "0.58079743", "0.5801732", "0.5761114", "0.5761114", "0.5761114", "0.5737802", "0.573603", "0.57331204", "0.57280546", "0.5664...
0.7624823
0
Invite user(s) to a station
def invite_to_station(self, station_id, userids): return self._stations_service.invite_to_station(station_id, userids)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def invite(self,roomName,user):\n\n self.sendCommand(roomName +\" /invite\",user)", "def invite_users(self, roomName, users, client):\n for room in self.rooms:\n if room.get_name() == roomName:\n if room.verify_owner(client.get_socket()):\n for user in u...
[ "0.7185819", "0.7024639", "0.7002899", "0.69311094", "0.67886823", "0.6631656", "0.6603037", "0.65987355", "0.6394609", "0.6352693", "0.6310312", "0.6295166", "0.6272746", "0.62447673", "0.6193484", "0.61556333", "0.60826457", "0.6071919", "0.60680705", "0.6021684", "0.593961...
0.7496825
0
Accept an invitation to join a station
def accept_station_invite(self, station_id): return self._stations_service.accept_station_invite(station_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_accepted(func)", "def on_station_user_invite_accepted(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_invite_accepted(fu...
[ "0.6812036", "0.6787716", "0.6499122", "0.6417155", "0.62961614", "0.62573713", "0.6160821", "0.60682416", "0.5981141", "0.5954559", "0.5934354", "0.5912647", "0.5828005", "0.58099395", "0.570324", "0.568183", "0.5653606", "0.5649904", "0.5632306", "0.56209064", "0.5619151", ...
0.663341
2
Reject an invitation to join a station
def reject_station_invite(self, station_id): return self._stations_service.reject_station_invite(station_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_admin_invite_rejected(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_admin_invite_rejected(func)", "def on_station_user_invite_rejected(self, func):\n self._set_event_handler(\"stations\")\n self._events.on_station_user_invite_rejected(fu...
[ "0.7105826", "0.6988195", "0.62239206", "0.62128484", "0.5976631", "0.59289694", "0.58234924", "0.5823095", "0.57985276", "0.5797463", "0.5792686", "0.5749815", "0.5729752", "0.5725346", "0.57236147", "0.5706178", "0.56701386", "0.56678045", "0.56636834", "0.5662702", "0.5660...
0.64272016
2
Request to join a station
def request_to_join(self, station_id): return self._stations_service.request_to_join(station_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def join_room(room):\n return request.namespace.join_room(room)", "def send_join_request(self, roomname: str, username: str) -> None:\n\n get_members_query = Query.get_room_members(roomname)\n room_members: str = self.db.read_execute_query(get_members_query)[0][0]\n room_members_list = ro...
[ "0.63749075", "0.6215299", "0.6164451", "0.6145582", "0.5998566", "0.5917774", "0.5912878", "0.5875087", "0.5774321", "0.5728613", "0.5723565", "0.5690881", "0.5645923", "0.56318104", "0.5622003", "0.559943", "0.5564092", "0.5521649", "0.5515596", "0.5494662", "0.5494662", ...
0.7278721
0
Admins and owners can approve members to join a station
def approve_request_to_join(self, station_id, userids): return self._stations_service.approve_request_to_join(station_id, userids)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_accept_member_with_owner(self):\n url = '/api/v1/communities/3/accept_member/'\n data = {\n 'id': 5\n }\n\n response = self.client.post(url, data, HTTP_AUTHORIZATION=self.auth('user1'), format='json')\n self.assertEqual(status.HTTP_200_OK, response.status_code...
[ "0.58476007", "0.58360577", "0.58262056", "0.57428217", "0.56774867", "0.55834293", "0.55780417", "0.5556927", "0.5551137", "0.55447036", "0.5492902", "0.54923266", "0.54819036", "0.5471728", "0.54577434", "0.5438326", "0.54256314", "0.5422647", "0.5397372", "0.5390696", "0.5...
0.64724284
0
Admins and owners can reject members that want to join a station
def reject_request_to_join(self, station_id, userids): return self._stations_service.reject_request_to_join(station_id, userids)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_listing_from_wall_when_blocked_some_users(self):", "def get_everyone_denied(self):", "async def test_regular_member_cannot_target_another_member(self, constants):\n constants.MODERATION_ROLES = [self.moderator_role.id]\n ctx = helpers.MockContext(author=self.author)\n\n await self...
[ "0.6217445", "0.6063501", "0.5968797", "0.59372485", "0.58573633", "0.5803506", "0.57588756", "0.57436395", "0.57381034", "0.5684186", "0.5645159", "0.55888134", "0.5533252", "0.5473421", "0.54726017", "0.5454294", "0.5447722", "0.54415095", "0.54388326", "0.541851", "0.54165...
0.5551009
12
Leave a station as a member
def leave_station(self, station_id): return self._stations_service.leave_station(station_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leave(self, dest):\n targetSS, handle = dest\n connector, args = handle\n conn = connector(args)\n tr_id = get_tr_id()\n\n leave_msg = SSAP_MESSAGE_TEMPLATE % (str(self.node_id), str(targetSS),\n \"LEAVE\", str(tr_id), \"\")\n ...
[ "0.6576709", "0.6484695", "0.62940425", "0.6280874", "0.62624365", "0.62479866", "0.60906476", "0.60818934", "0.60745984", "0.6025052", "0.6005863", "0.5987376", "0.5963232", "0.59404343", "0.5935116", "0.5878223", "0.587189", "0.5849474", "0.584148", "0.5824685", "0.57884365...
0.5418581
43
Remove a member from a station
def remove_member_from_station(self, station_id, userid): return self._stations_service.remove_member_from_station(station_id, userid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_person_from_the_station(self, station: TelegramController.Station):\n\n if station.line_number in self.__stations_dict and station.station_number in self.__stations_dict[\n station.line_number]:\n if self.__stations_dict[station.line_number][station.station_number] == 1:\n ...
[ "0.7231999", "0.71628547", "0.7091446", "0.696421", "0.6904474", "0.6846963", "0.67789173", "0.67640543", "0.6744732", "0.67181224", "0.667009", "0.6612601", "0.6573163", "0.65079254", "0.6496758", "0.6491523", "0.64582545", "0.6390794", "0.63408923", "0.62991196", "0.6162946...
0.7304258
0
Permanently delete a station
def delete_station(self, station_id): return self._stations_service.delete_station(station_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def station_delete(request, station):\n st = connection.Station.find_one({'name': station})\n if st and not st.get('lock'):\n st.delete()\n return HttpResponseRedirect(reverse('deliverycenters.views.station_list'))", "def delete_station(pool, latitude, longitude, station_type):\n\n connection ...
[ "0.812211", "0.6915749", "0.68571514", "0.6716558", "0.6537813", "0.6268705", "0.6213517", "0.6186281", "0.60852987", "0.60605496", "0.6010374", "0.59998685", "0.59957504", "0.5977978", "0.5948171", "0.59360194", "0.59304535", "0.59159285", "0.5905193", "0.5905193", "0.590460...
0.6882833
2
Add landing zones to a station
def add_lz_to_station(self, station_id, lz_ids): return self._stations_service.add_lz_to_station(station_id, lz_ids)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_station(self, station_id=None, time=None, location=None):", "def add_station(self, station):\n self.__stations.append(station)", "def _add_zone( self, zone ):\n assert zone.space is None\n zone.space = self\n self.zones.add( zone )", "def _create_zones(self, output_pat...
[ "0.6033703", "0.5848508", "0.57283896", "0.5569747", "0.5531446", "0.5490296", "0.54826427", "0.5465882", "0.5418753", "0.53869015", "0.5361114", "0.536044", "0.5315836", "0.53013724", "0.52855086", "0.52778274", "0.52778274", "0.52689826", "0.52280486", "0.5216657", "0.52019...
0.50121677
43
Remove landing zones from a station
def remove_lz_from_station(self, station_id, lz_ids): return self._stations_service.remove_lz_from_station(station_id, lz_ids)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def removeIslands(self):\n if isinstance(self.substrates, Polygon):\n return\n mainland = []\n for i, substrate in enumerate(self.substrates.geoms):\n ismainland = True\n for j, otherSubstrate in enumerate(self.substrates.geoms):\n if j == i:\n ...
[ "0.6104693", "0.5870517", "0.5697032", "0.56263536", "0.56157947", "0.54549", "0.5413826", "0.5367196", "0.5359137", "0.53395694", "0.5338587", "0.53330827", "0.53318936", "0.5329435", "0.5262675", "0.5254355", "0.52492887", "0.5247434", "0.5215508", "0.52151364", "0.51998776...
0.48089898
76
Add volumes to a station
def add_volumes_to_station(self, station_id, name, mount_point, access): return self._stations_service.add_volumes_to_station( station_id, name, mount_point, access )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_volume(self, volume: 'Volume'):\n self.volumes.append(volume)", "def volumes(self):", "def on_station_member_volume_added(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_volume_added(func)", "def add_station(self, station...
[ "0.6876285", "0.65883744", "0.6548829", "0.6548801", "0.650866", "0.6502903", "0.644879", "0.63142157", "0.6198833", "0.61118776", "0.59103346", "0.5853043", "0.58503973", "0.5817452", "0.57956636", "0.5714599", "0.570767", "0.57056254", "0.56857747", "0.56784004", "0.5664109...
0.74922633
0
Add host path to volume before running a job Host path is where the landing zone will store the results of a job
def add_host_path_to_volume(self, station_id, volume_id, lz_id, host_path): return self._stations_service.add_host_path_to_volume( station_id, volume_id, lz_id, host_path )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def attach_volume(self, host_path: str, container_path: str, mode: str = None):\n self.volumes[host_path] = {\n \"bind\": container_path,\n \"mode\": mode or \"Z\"\n }", "def setup_local_hosting(job, event_list, img_src, generate=False):\n msg = 'Setting up local hosting fo...
[ "0.5936039", "0.57001525", "0.5503889", "0.55032146", "0.54650307", "0.5413817", "0.54046196", "0.5382097", "0.53705764", "0.53665364", "0.5360493", "0.5356105", "0.5347707", "0.53273517", "0.5315291", "0.52915084", "0.5272269", "0.52292204", "0.5207862", "0.51584524", "0.513...
0.60400605
0
Remove a host path Host path is where the landing zone will store the results of a job
def delete_host_path_from_volume(self, station_id, volume_id, host_path_id): return self._stations_service.delete_host_path_from_volume( station_id, volume_id, host_path_id )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fs_remove_entry(self, path):\n\t\treturn Job(SDK.PrlSrv_FsRemoveEntry(self.handle, path)[0])", "def remove(path):", "def clean(self, jobid):\n serverB = Server(self._director.servername, None, self._username)\n self._ssher.rmdir(serverB, self._remotepath )\n\n print \"Results retrieval...
[ "0.6538563", "0.644881", "0.63795257", "0.6150255", "0.6141045", "0.6029831", "0.60260224", "0.5946382", "0.5918424", "0.58906335", "0.5889718", "0.57939017", "0.5783898", "0.574502", "0.5706443", "0.5685902", "0.5654106", "0.5620508", "0.5600224", "0.55876285", "0.55672705",...
0.0
-1
Remove a volume from station
def remove_volume_from_station(self, station_id, volume_id): return self._stations_service.remove_volume_from_station(station_id, volume_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_station_member_volume_removed(\n self, func,\n ):\n self._set_event_handler(\"stations\")\n self._events.on_station_member_volume_removed(func)", "def unassign_volume(VolumeId=None):\n pass", "def on_station_admin_volume_removed(\n self, func,\n ):\n self._set...
[ "0.67710865", "0.66924125", "0.6609293", "0.65807056", "0.6572355", "0.6381543", "0.63744885", "0.6228977", "0.6209886", "0.6140129", "0.6128336", "0.6057677", "0.6027745", "0.60226995", "0.5998563", "0.59923065", "0.595762", "0.595051", "0.5943049", "0.5939457", "0.59353393"...
0.6224127
8
Gets the resource policy for a station
def get_station_resource_policy(self, station_id): return self._stations_service.get_station_resource_policy(station_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_station_lz_resource_policy(self, station_id, lz_id):\n return self._stations_service.get_station_lz_resource_policy(\n station_id, lz_id\n )", "def get_station_user_resource_policy(self, station_id, userid):\n return self._stations_service.get_station_user_resource_policy(...
[ "0.7137783", "0.68996143", "0.65437603", "0.64618856", "0.6394285", "0.62970984", "0.62638164", "0.6257891", "0.6249871", "0.6249871", "0.6163805", "0.6138999", "0.6137637", "0.601811", "0.601811", "0.5977792", "0.59732735", "0.59732735", "0.59732735", "0.59601575", "0.595981...
0.8375346
0
Updates an the resource policy attached to the station. Creates the policy if it does not exist.
def update_station_resource_policy( self, station_id, max_cpu_per_job=None, max_memory_per_job=None, max_gpu_per_job=None, max_cpu_per_station=None, max_memory_per_station=None, max_gpu_per_station=None, max_cpu_global=None, max_memory_glob...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_policy(self):\n pass", "def UpdatePolicy(self, request, global_params=None):\n config = self.GetMethodConfig('UpdatePolicy')\n return self._RunMethod(\n config, request, global_params=global_params)", "def update_policy(self, *args, **kwargs):\r\n pass", "def updat...
[ "0.70034754", "0.68490446", "0.6848851", "0.6585305", "0.6409433", "0.63865364", "0.6365844", "0.63255304", "0.6299784", "0.62480175", "0.62014055", "0.61207646", "0.61045474", "0.60438746", "0.594769", "0.5913758", "0.5887988", "0.58750826", "0.58524454", "0.57935315", "0.57...
0.69716793
1
Deletes the resource policy associated with the station.
def delete_station_resource_policy(self, station_id): return self._stations_service.delete_station_resource_policy(station_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_station_lz_resource_policy(self, station_id, lz_id):\n return self._stations_service.delete_station_lz_resource_policy(\n station_id, lz_id\n )", "def policy_delete(request, policy_id):\n neutronclient(request).delete_qos_policy(policy_id)", "def delete_station_role_resou...
[ "0.6996309", "0.67981726", "0.6705935", "0.6684607", "0.6345354", "0.6341522", "0.62879807", "0.6226339", "0.6173216", "0.6138595", "0.6055978", "0.5950145", "0.5929454", "0.5923848", "0.59029764", "0.58889526", "0.5878941", "0.58752054", "0.5783896", "0.5705877", "0.5645803"...
0.7915744
0
Returns the user's calculated (or effective) resource policy in the station.
def get_self_station_resource_limits(self, station_id): return self._stations_service.get_self_resource_limits(station_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_station_user_resource_policy(self, station_id, userid):\n return self._stations_service.get_station_user_resource_policy(\n station_id, userid\n )", "def policy(self) -> pulumi.Output['outputs.ServicePolicy']:\n return pulumi.get(self, \"policy\")", "def policy(self) -> ...
[ "0.69573486", "0.6920247", "0.6906621", "0.6906621", "0.6906621", "0.6848408", "0.6824488", "0.67560124", "0.66650236", "0.66650236", "0.66650236", "0.66113013", "0.66027576", "0.66027576", "0.65952986", "0.65764415", "0.65764415", "0.6349191", "0.6294199", "0.6294199", "0.62...
0.0
-1
Updates a user in a station.
def update_station_member(self, station_id, userid, role_id): return self._stations_service.update_station_member(station_id, userid, role_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_user():", "def update_user():\n #TODO user update \n pass", "def update(self, user: U) -> None:\n ...", "def update_user(cls, **kwargs):\n return cls._do_call(\n 'PUT', cls.api_endpoint + 'users', params=kwargs)", "def update_user(id):\n pass", "def update_use...
[ "0.79484576", "0.7738753", "0.763596", "0.7480364", "0.74410856", "0.7190035", "0.7169174", "0.70707417", "0.70599586", "0.7041837", "0.70262986", "0.69583124", "0.695268", "0.6870622", "0.6859282", "0.68590444", "0.67735225", "0.6713029", "0.6634683", "0.6633247", "0.6619599...
0.6883565
13
Gets the resource policy for a station user.
def get_station_user_resource_policy(self, station_id, userid): return self._stations_service.get_station_user_resource_policy( station_id, userid )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_station_resource_policy(self, station_id):\n return self._stations_service.get_station_resource_policy(station_id)", "def get_sp_policy(self, context, id):\n # handling policy method in RPC\n response = self.dns_manager.get_sp_policy(context, id)\n return response", "def get...
[ "0.75928956", "0.6324284", "0.63131595", "0.6269006", "0.6251828", "0.62097424", "0.6201756", "0.6140907", "0.6137804", "0.61294985", "0.60993993", "0.60781956", "0.60781956", "0.6061294", "0.60529894", "0.5937276", "0.5937276", "0.59300405", "0.59284604", "0.5907746", "0.589...
0.83362406
0
Updates an the resource policy attached to the station user. Creates the policy if it does not exist.
def update_station_user_resource_policy( self, station_id, userid, max_cpu_per_job=None, max_memory_per_job=None, max_gpu_per_job=None, max_cpu_per_station=None, max_memory_per_station=None, max_gpu_per_station=None, max_cpu_global=None, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_policy(self):\n pass", "def update_policy(self, *args, **kwargs):\r\n pass", "def UpdatePolicy(self, request, global_params=None):\n config = self.GetMethodConfig('UpdatePolicy')\n return self._RunMethod(\n config, request, global_params=global_params)", "def updat...
[ "0.69664323", "0.68925685", "0.68764955", "0.6530893", "0.65236473", "0.63555104", "0.6232206", "0.6167887", "0.61596376", "0.60916686", "0.60891306", "0.60377425", "0.5985885", "0.5969297", "0.59439915", "0.5933762", "0.5835191", "0.5802524", "0.5733811", "0.5729675", "0.570...
0.70404005
0
Deletes the resource policy associated with the station user.
def delete_station_user_resource_policy(self, station_id, userid): return self._stations_service.delete_station_user_resource_policy( station_id, userid )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_station_resource_policy(self, station_id):\n return self._stations_service.delete_station_resource_policy(station_id)", "def policy_delete(request, policy_id):\n neutronclient(request).delete_qos_policy(policy_id)", "def delete_user_policy(self, user_name, policy_name):\r\n params =...
[ "0.70539224", "0.67015296", "0.6428582", "0.6376038", "0.61694944", "0.6121981", "0.60279536", "0.60235995", "0.6017042", "0.6014915", "0.59680825", "0.59182125", "0.5917951", "0.5912066", "0.58395255", "0.5810278", "0.5760046", "0.5715078", "0.57004225", "0.5685757", "0.5652...
0.79618543
0
Returns a list of StationRole objects that match the query string
def get_station_roles( self, station_id, page=None, items=None, names=None, role_ids=None, user_ids=None, description=None, ): return self._stations_service.get_station_roles( station_id, page, items, names, role_ids, user_ids, desc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_roles(role):", "def get_queryset(self):\r\n name = self.kwargs['name']\r\n course_id_string = self.request.QUERY_PARAMS.get('course_id')\r\n if not course_id_string:\r\n raise ParseError('course_id must be specified')\r\n course_id = SlashSeparatedCourseKey.from_dep...
[ "0.6154006", "0.6053128", "0.58233917", "0.57969815", "0.5712606", "0.5618189", "0.56120867", "0.5539877", "0.55255485", "0.5482231", "0.5460352", "0.54559606", "0.54226035", "0.5387648", "0.53858495", "0.5383354", "0.5381631", "0.5373335", "0.5343609", "0.5328805", "0.532844...
0.62000495
0
Creates a new role in the station
def create_station_role( self, station_id, name, description="", protected_role=0, edit_station_roles=0, assign_user_roles=0, assign_protected_user_roles=0, launch_jobs=0, invite_users=0, remove_all_users=0, remove_invited_u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_role(self, **kwargs):\n role = self.role_model(**kwargs)\n # noinspection PyUnresolvedReferences\n return self.save(role)", "def create_role(self, **kwargs):\n\n role = self.role_model(**kwargs)\n return self.put(role)", "def main_role_create(\n client: CitusClo...
[ "0.7832254", "0.759547", "0.7510522", "0.74517715", "0.74255407", "0.7347762", "0.7292517", "0.7243884", "0.7228105", "0.7222761", "0.72153336", "0.7166932", "0.71280706", "0.7104743", "0.70825255", "0.708067", "0.70773214", "0.7055611", "0.70465744", "0.6978832", "0.6971091"...
0.72473556
7
Updates an existing role
def update_station_role( self, station_id, station_role_id, name=None, description=None, protected_role=None, edit_station_roles=None, assign_user_roles=None, assign_protected_user_roles=None, launch_jobs=None, invite_users=None, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(self, role):\n model = models.load('Role', role)\n model.account_id = self.account_id\n\n return self.client.update_role(model)", "def update_role(self, role_id, role):\n raise exception.NotImplemented() # pragma: no cover", "def update(self, role):\n self._router...
[ "0.84501916", "0.83524215", "0.82051826", "0.77792186", "0.7697608", "0.76622933", "0.76045865", "0.7538218", "0.74878144", "0.7486076", "0.74209505", "0.70429885", "0.70154965", "0.70150805", "0.6978895", "0.6918804", "0.69182456", "0.69139844", "0.6903956", "0.6866542", "0....
0.64067703
42
Deletes an existing role. All users that have this role will automatically be given the Launcher role.
def delete_station_role(self, station_id, role_id): return self._stations_service.delete_station_role(station_id, role_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete(self, role_id):\n self.client.delete_role(role_id)", "def delete_role(self, name): # NOQA\n if self.resource is None:\n self.resource = self.client.get_resource(self.href)\n role_record = self.get_role(name)\n self.client.delete_resource(role_record.get('href'))...
[ "0.7913778", "0.7809545", "0.7682344", "0.7658943", "0.75982124", "0.7540697", "0.7449413", "0.7392218", "0.7379851", "0.7332893", "0.7200123", "0.7080935", "0.7036633", "0.7010247", "0.6997378", "0.6949369", "0.6942283", "0.69383705", "0.6931465", "0.6880509", "0.68356913", ...
0.6491585
34
Gets the resource policy for a station role.
def get_station_role_resource_policy(self, station_id, role_id): return self._stations_service.get_station_role_resource_policy( station_id, role_id )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_station_resource_policy(self, station_id):\n return self._stations_service.get_station_resource_policy(station_id)", "def get_station_lz_resource_policy(self, station_id, lz_id):\n return self._stations_service.get_station_lz_resource_policy(\n station_id, lz_id\n )", "d...
[ "0.7808498", "0.6741654", "0.67381155", "0.6363718", "0.61435103", "0.6060915", "0.60048324", "0.59662515", "0.5936198", "0.5916579", "0.5856011", "0.5811339", "0.5811339", "0.5806208", "0.5722528", "0.56213796", "0.56213796", "0.56213796", "0.56205785", "0.56205785", "0.5620...
0.8424791
0
Updates an the resource policy attached to the station role. Creates the policy if it does not exist.
def update_station_role_resource_policy( self, station_id, role_id, max_cpu_per_job=None, max_memory_per_job=None, max_gpu_per_job=None, max_cpu_per_station=None, max_memory_per_station=None, max_gpu_per_station=None, max_cpu_global=None, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_policy(self):\n pass", "def update_policy(self, *args, **kwargs):\r\n pass", "def update_station_resource_policy(\n self,\n station_id,\n max_cpu_per_job=None,\n max_memory_per_job=None,\n max_gpu_per_job=None,\n max_cpu_per_station=None,\n ...
[ "0.67759097", "0.674785", "0.6593317", "0.64226574", "0.63664657", "0.6320104", "0.61634946", "0.61117256", "0.6098283", "0.6086201", "0.6011715", "0.5842931", "0.57929426", "0.57386154", "0.5722088", "0.5717586", "0.5664545", "0.56530917", "0.56484777", "0.56353706", "0.5623...
0.7031058
0
Deletes the resource policy associated with the station role.
def delete_station_role_resource_policy(self, station_id, role_id): return self._stations_service.delete_station_role_resource_policy( station_id, role_id )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_station_resource_policy(self, station_id):\n return self._stations_service.delete_station_resource_policy(station_id)", "def delete_station_lz_resource_policy(self, station_id, lz_id):\n return self._stations_service.delete_station_lz_resource_policy(\n station_id, lz_id\n ...
[ "0.7591209", "0.6814968", "0.6757966", "0.65550244", "0.6488288", "0.6402793", "0.6321993", "0.6154831", "0.6053819", "0.60380363", "0.60269505", "0.6011725", "0.6004176", "0.59492004", "0.5919209", "0.5885387", "0.5869507", "0.5854694", "0.585314", "0.58347976", "0.5776854",...
0.7987946
0
Gets the resource policy for a station lz.
def get_station_lz_resource_policy(self, station_id, lz_id): return self._stations_service.get_station_lz_resource_policy( station_id, lz_id )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_station_resource_policy(self, station_id):\n return self._stations_service.get_station_resource_policy(station_id)", "def get_station_user_resource_policy(self, station_id, userid):\n return self._stations_service.get_station_user_resource_policy(\n station_id, userid\n )"...
[ "0.79656065", "0.6517987", "0.64155436", "0.63686657", "0.62979114", "0.6194501", "0.6194501", "0.6139178", "0.61108494", "0.6098003", "0.6068526", "0.6058087", "0.6056583", "0.5989978", "0.59861773", "0.5925483", "0.5833428", "0.58309436", "0.58218074", "0.58218074", "0.5804...
0.83841497
0
Updates an the resource policy attached to the station lz. Creates the policy if it does not exist.
def update_station_lz_resource_policy( self, station_id, lz_id, max_cpu_per_job=None, max_memory_per_job=None, max_gpu_per_job=None, max_cpu_per_station=None, max_memory_per_station=None, max_gpu_per_station=None, max_cpu_global=None, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_policy(self):\n pass", "def update_policy(self, *args, **kwargs):\r\n pass", "def update_station_resource_policy(\n self,\n station_id,\n max_cpu_per_job=None,\n max_memory_per_job=None,\n max_gpu_per_job=None,\n max_cpu_per_station=None,\n ...
[ "0.69526947", "0.68280447", "0.67244333", "0.6552289", "0.65132934", "0.62864685", "0.62171924", "0.6212851", "0.6144889", "0.60913825", "0.5992739", "0.59913206", "0.5947325", "0.59427893", "0.5922444", "0.59122646", "0.58797526", "0.58437556", "0.5759834", "0.57176685", "0....
0.74657327
0
Deletes the resource policy associated with the station lz.
def delete_station_lz_resource_policy(self, station_id, lz_id): return self._stations_service.delete_station_lz_resource_policy( station_id, lz_id )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_station_resource_policy(self, station_id):\n return self._stations_service.delete_station_resource_policy(station_id)", "def policy_delete(request, policy_id):\n neutronclient(request).delete_qos_policy(policy_id)", "def delete_policies():\n if PoliciesOutput.POLICIES_EVENT not in c...
[ "0.7377336", "0.6473227", "0.632515", "0.63024485", "0.6271632", "0.62427044", "0.6179978", "0.61341244", "0.61162734", "0.60472405", "0.5986689", "0.5898976", "0.58373475", "0.5770029", "0.57500947", "0.5737896", "0.573182", "0.56944215", "0.5689364", "0.56607187", "0.563408...
0.7978579
0
Returns the user's calculated (or effective) resource policy for this particular lz in a station
def get_station_lz_resource_limits(self, station_id, lz_id): return self._stations_service.get_station_lz_resource_limits( station_id, lz_id )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_station_lz_resource_policy(self, station_id, lz_id):\n return self._stations_service.get_station_lz_resource_policy(\n station_id, lz_id\n )", "def get_station_user_resource_policy(self, station_id, userid):\n return self._stations_service.get_station_user_resource_policy(...
[ "0.7087221", "0.64218205", "0.6379272", "0.6182093", "0.6135923", "0.6116134", "0.61025643", "0.61025643", "0.61025643", "0.6001296", "0.6000483", "0.5991274", "0.59892267", "0.58904797", "0.58904797", "0.58297974", "0.58109313", "0.58109313", "0.58109313", "0.578706", "0.578...
0.50424963
76
Screen scr the screen object tup color the color of the circle tup pos the pos of the circle num radius the radius of the circle int width the width of the circle
def __init__(self, scr, color, pos, radius, width=0): self.scr = scr self.color = color self.pos = pos self.r = radius self.width = width return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw(self, screen):\n\t\tpygame.draw.circle(screen, self.color, self.pos, self.radius)", "def draw_circle(color, position, radius, width=0):\n #print('(color={}, position={}, radius={}, width={})')\n pygame.draw.circle(screen, color, position, radius, width)", "def render(self, screen):\n ...
[ "0.70572096", "0.69449395", "0.68427616", "0.6744472", "0.66738325", "0.6535308", "0.6443482", "0.6425591", "0.6366439", "0.6364725", "0.6347341", "0.6283256", "0.6242804", "0.6236482", "0.62143177", "0.6208872", "0.620616", "0.619483", "0.61721337", "0.61440504", "0.6120693"...
0.7033494
1
Construct the core application.
def create_app(config_object): app = Flask('song_recommender',static_folder = None) app.config.from_object(config_object) with app.app_context(): # Imports from .views import view # REGISTER ROUTES app.register_blueprint(view) return app
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _make_core_app():\n app = web.Application(middlewares=[middleware.error_middleware])\n management_routes.setup(app, is_core=True)\n return app", "def main():\n LOGGER.info('Loading Application')\n main_app = Application()\n parser = argparse.ArgumentParser()\n parser.add_argu...
[ "0.7207223", "0.70791864", "0.6998072", "0.6950758", "0.6818118", "0.68160903", "0.67678857", "0.6719606", "0.66488445", "0.6626063", "0.65972114", "0.65353584", "0.65281093", "0.6521015", "0.64897716", "0.6488322", "0.6431467", "0.6392214", "0.6355824", "0.6346588", "0.63364...
0.0
-1
Return the list of pricelists that can be used on website for the current user.
def _get_pl_partner_order(self, country_code, show_visible, website_pl, current_pl, all_pl, partner_pl=False, order_pl=False): pricelists = self.env['product.pricelist'] if country_code: for cgroup in self.env['res.country.group'].search([('country_ids.code', '=', country_code)]): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_current_user_lists():\n return TaskList.get_user_lists(users.get_current_user())", "def get_queryset(self):\n user = self.request.user\n collabLists = ListObject.objects.filter(collaborators__id=user.id)\n return collabLists", "def get_prices(self):\n price = ...
[ "0.6283595", "0.62087035", "0.61906767", "0.60779613", "0.6031647", "0.5998028", "0.59110624", "0.5852518", "0.57405144", "0.5720689", "0.57115835", "0.57077885", "0.5705242", "0.57023066", "0.5646039", "0.5624553", "0.55997926", "0.555445", "0.55494696", "0.55220395", "0.546...
0.0
-1
Loads url and creates a Pandas DataFrame if url identifies an existing CSV file. If an error is encountered None is returned.
def create_df_from_remote_csv(url): if url is None: return None response = requests.get(url) if response.status_code == 200: if response.headers['content-type'] == "text/csv": response.encoding = 'utf-8' data = pd.read_csv(io.StringIO(response.text)) retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def read_csv_data(url):\n\n csv_data = pd.read_csv(url)\n\n return csv_data", "def fetch_dataset(url, pandas_impl=pandas):\n\n print(f'fetching dataset at {url}')\n return pandas_impl.read_csv(url)", "def load_data(a_url, path, column_headers):\n print(\"Try loading the data set from a local fil...
[ "0.73868835", "0.69646496", "0.67920196", "0.6721527", "0.66859347", "0.65710497", "0.6433012", "0.6391428", "0.63573176", "0.6323003", "0.62174773", "0.6187627", "0.61755615", "0.61497045", "0.61195314", "0.6115325", "0.6088325", "0.6063198", "0.6036279", "0.6014203", "0.600...
0.8140015
0
Establishes a connection with MySQL
def make_mysql_connection(db_secret_name): return db.connect_to_mysql(aws.get_secrets_manager_secret(db_secret_name), ssl_path=SSL_PATH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def connect():\n \n db_config = read_db_config()\n \n try:\n print('Connecting to MySQL database...')\n conn = MySQLConnection(**db_config)\n \n if conn.is_connected():\n print('connection established.')\n else:\n print('connection failed.')\n \n except Er...
[ "0.80840397", "0.7902734", "0.78683525", "0.7832754", "0.7784348", "0.76984507", "0.76910937", "0.7672217", "0.7629635", "0.76269317", "0.7618813", "0.7609471", "0.7535032", "0.75180715", "0.74944645", "0.7487516", "0.7461898", "0.7459945", "0.7421877", "0.7418991", "0.741783...
0.6862315
52
Retrieves the training data.
def get_training_data(db_conn): return pd.read_sql('''select * from churn_model.churn_data;''', db_conn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_data_train(self):\n return self.get_data(self.file_train, self.batch)", "def getTrainingData(self):\n raise NotImplementedError", "def train_data(self):\n return self._train_data", "def get_training_data() -> GraphDataset:\n _load_data_if_needed()\n return training_data", ...
[ "0.826894", "0.82031405", "0.79756117", "0.79233164", "0.74743426", "0.73899513", "0.73346335", "0.7327395", "0.72967446", "0.72613597", "0.721267", "0.7153445", "0.70786613", "0.69676316", "0.69623685", "0.6932806", "0.68581736", "0.6841691", "0.68147683", "0.6807218", "0.68...
0.0
-1
Logs model metadata to a database table.
def log_model_metadata(model_uid, schema, db_conn): df = pd.DataFrame({ 'training_timestamp': [get_current_timestamp()], 'model_uid': [model_uid] }) df.to_sql(name='model_metadata', schema=schema, con=db_conn, if_exists='append', index=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def info(self) -> str:\n return tabulate(self.model_log_msg, self.head, tablefmt=\"presto\")", "def table_log(self, iteration, dt, name, entity, extra):\n s = self.__format.format(iteration, dt, name, entity, extra)\n self.log(s)", "def log_table(data_category, table_name, value, **kwargs)...
[ "0.6266073", "0.58774227", "0.5725982", "0.5696965", "0.56802934", "0.5623638", "0.56107706", "0.5587467", "0.55410975", "0.5541007", "0.55315256", "0.5497675", "0.54699737", "0.5462768", "0.5453861", "0.53565913", "0.5330835", "0.52207965", "0.51567656", "0.51493764", "0.514...
0.75275505
0
Retrieves the application configuration from a database table.
def retrieve_app_config(schema, db_conn, environment): if environment in ['STAGE', 'LOCAL']: table_name = 'stage_config' else: table_name = 'prod_config' query = f''' select config_key, config_value from {schema}.{table_name} where meta__inserted_at = (select max(meta__inserted_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_config():\n CONFIG.clear() #clear config\n sql=\"SELECT * FROM config\"\n conn=sqlite3.connect(CONNECTION_STRING)\n c=conn.cursor()\n c.execute(sql)\n results=c.fetchall()\n # iterate through the results now...\n for r in results:\n CONFIG[r[1]]=r[2]\n conn.commit()\n c...
[ "0.69780415", "0.6650375", "0.64936954", "0.6351886", "0.61351377", "0.60454375", "0.6029971", "0.6008877", "0.5933389", "0.5926853", "0.5925404", "0.5916965", "0.5909893", "0.5862593", "0.58073556", "0.57950675", "0.57017165", "0.5668814", "0.56395566", "0.5630359", "0.56258...
0.702012
0
Gets the LTV for every client_id.
def get_client_ltv_table(db_conn): query = ''' select client_id, ltv from churn_model.client_ltv; ''' df = pd.read_sql(query, db_conn) return df
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_vlans(cohesity_client):\n vlans = cohesity_client.vlan.get_vlans()\n vlans = vlans if vlans else []\n for vlan in vlans:\n exported_res_dict[\"Vlans\"].append(vlan.iface_group_name)\n return vlans", "def get_lvs() -> List[Dict[str, str]]:\n p = subprocess.run(\n [\"lvs\", \"-...
[ "0.61351943", "0.56809396", "0.56437415", "0.5588845", "0.5520292", "0.5492891", "0.53923357", "0.53767985", "0.53720284", "0.5336398", "0.5336398", "0.5318733", "0.52917767", "0.5283435", "0.5273678", "0.5254699", "0.52530307", "0.5250357", "0.52436167", "0.52217495", "0.522...
0.57086515
1
Gets the hashed_password for username.
def get_hashed_password_for_username(username, db_conn): query = f''' select password from churn_model.app_credentials where username = '{username}'; ''' df = pd.read_sql(query, db_conn) return df['password'][0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_password_hash(self, username):\n raise NotImplementedError()", "def get_user_password(username):\n return Migration.objects.select_related().get(\n mailbox__user__username=username\n ).password", "def verify_password(username, password):\n if username in user_auth and check_passw...
[ "0.8191291", "0.7244766", "0.7074311", "0.70607644", "0.69987434", "0.6974944", "0.69589543", "0.69481957", "0.68877035", "0.68877035", "0.6855166", "0.6834302", "0.671721", "0.66408837", "0.66254514", "0.65770435", "0.65554404", "0.64969474", "0.64929354", "0.6477528", "0.64...
0.7485928
1
Logs feature importance scores to the feature_score table. This table is created by the stored procedure GenerateModelPerformanceTables.
def log_feature_importance_to_mysql(df, schema, db_conn): db.write_dataframe_to_database(df, schema, 'feature_score', db_conn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def feature_importance(self):\n if self.model.algorithm == 'DecisionTree' or self.model.algorithm == 'RandomForest':\n print(\"Feature importance\\n\")\n print(pd.DataFrame(self.model.clf.feature_importances_, index=self.model.dataset.feature_names,\n colu...
[ "0.67162436", "0.6464881", "0.64070237", "0.6283913", "0.6113614", "0.6097828", "0.6086998", "0.6009755", "0.59902894", "0.5942613", "0.5785635", "0.5751442", "0.5746579", "0.56494594", "0.5648458", "0.5610839", "0.5572099", "0.5496251", "0.5424999", "0.5404749", "0.53926957"...
0.7160448
0
Logs model scores to the model_score table. This table is created by the stored procedure GenerateModelPerformanceTables.
def log_model_scores_to_mysql(df, schema, db_conn): db.write_dataframe_to_database(df, schema, 'model_score', db_conn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def log_results(best_model, model_name, max_features, train_score, test_score,\n score_fp):\n\n # ensure the directorys where metrics are stored are created\n if not os.path.exists(os.path.dirname(score_fp)):\n os.makedirs(os.path.dirname(score_fp), exist_ok=True)\n\n st = datetime.f...
[ "0.6459586", "0.61814624", "0.5974902", "0.5917384", "0.5889728", "0.5803844", "0.5757552", "0.57390404", "0.5678101", "0.56574285", "0.5636363", "0.56240046", "0.5615831", "0.5598856", "0.554458", "0.55129594", "0.5507397", "0.5503384", "0.5486911", "0.5469208", "0.5450017",...
0.673512
0
FashionMNIST dataset as provided by torchvision
def get_fashion_mnist_dataset(partition, directory, valid_fraction): if partition == "train_val": dataset = torchvision.datasets.FashionMNIST( root=directory, train=True, download=True, transform=transforms.Compose([transforms.Pad(2), transforms.ToTensor()]),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def data(self):\n (x_train, y_train), (_, _) = datasets.fashion_mnist.load_data()\n x_train = x_train.reshape((-1, 28, 28, 1))\n x_train, y_train = x_train.astype('float16') / 255.0, \\\n tf.keras.utils.to_categorical(y_train.astype('float16'), 10)\n (x_train, ...
[ "0.71589", "0.71374416", "0.7007976", "0.6907027", "0.6903825", "0.68996155", "0.68981564", "0.6831956", "0.6808037", "0.6774401", "0.67704684", "0.6769552", "0.6712642", "0.66727245", "0.6637677", "0.66114527", "0.6589984", "0.6568683", "0.6568615", "0.6536793", "0.64341027"...
0.6471123
20
ImageNet64 dataset as prepared by the MAF and NSF papers
def get_imagenet_dataset(partition, directory, valid_fraction): if partition == "train_val": dataset = ImageNet64Fast( root=directory, train=True, download=True, transform=Preprocess(), ) valid_size = int(valid_fraction * len(dataset)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_imagenet_data(net):\r\n\r\n # get a list of all the images (note that we use networks trained on ImageNet data)\r\n img_list = os.listdir(path_data)\r\n\r\n # throw away files that are not in the allowed format (png or jpg)\r\n for img_file in img_list[:]:\r\n if not (img_file.endswith(\...
[ "0.69936955", "0.6823081", "0.6688141", "0.657174", "0.6561941", "0.6492182", "0.6481606", "0.6381598", "0.62890136", "0.62503767", "0.6228648", "0.61722386", "0.616487", "0.6155375", "0.6137203", "0.61342806", "0.61176175", "0.60989106", "0.60888165", "0.6081855", "0.6067541...
0.0
-1
Use mutator to change this individual chromosome and return itself
def self_mutate(self) -> 'Individual': self.mutator_cls.mutate_inplace(self.chromosome) self.fitness.cache_clear() return self
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mutate(self, chrom):\n pass", "def fix_chromosome(self, copy=False):\n region = self.copy() if copy else self\n if region.chromosome.startswith('chr'):\n region.chromosome = region.chromosome[3:]\n else:\n region.chromosome = 'chr' + region.chromosome\n ...
[ "0.72676206", "0.67092437", "0.66289616", "0.648467", "0.6386909", "0.62838453", "0.62317926", "0.62015957", "0.60792714", "0.6051001", "0.60253376", "0.60213035", "0.60038054", "0.59785235", "0.59625703", "0.59534687", "0.59501046", "0.5935049", "0.5840323", "0.58342373", "0...
0.7431413
0
Use recombiner to combine this individual with other argument to generate a new individual
def recombine(self, other: 'Individual') -> 'Individual': new_chromosome = self.recombiner_cls.recombine(self.chromosome,\ other.chromosome) return self.new_individual(new_chromosome, self.generation + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def recombine(parent_1, parent_2, adaptive_mutation):\n\tchild_genotype = blend_crossover(parent_1, parent_2)\n\tif adaptive_mutation:\n\t\tchild_sigma = child_sigma_v4(parent_1, parent_2)\n\telse:\n\t\t# child sigma will be ignored in this case\n\t\tchild_sigma = parent_1.sigma\n\n\t# return new child object\n\tr...
[ "0.6086238", "0.58578676", "0.553666", "0.54390365", "0.53077555", "0.53077555", "0.52834094", "0.52536505", "0.5237462", "0.5234216", "0.5207206", "0.51954985", "0.51884335", "0.51828486", "0.5159907", "0.5159907", "0.5159907", "0.5159907", "0.5159907", "0.5159907", "0.51599...
0.7004123
0
Returns a new individual with the given gene using the same fitness computer, genemutator, recombiner of this individual
def new_individual(self, chromosome: ChromosomeT, generation: int = 1) -> 'Individual': new_individual = Individual(self.chromosome_cls, self.fitness_computer_cls, self.mutator_cls, self.recombi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_gene(gene):\n\n return copy.deepcopy(gene)", "def create_individual(self):\n self.genes = np.random.rand(self.chromosome_size)\n self.personal_best = self.genes.copy", "def copy(self):\n new_genome = Genome(self.pop)\n #new_genome.node_genes = [gene.copy() for gene in sel...
[ "0.6628891", "0.6525498", "0.60412437", "0.60378706", "0.59588385", "0.5922517", "0.5874159", "0.5829749", "0.5802917", "0.57690614", "0.5691474", "0.5687709", "0.56540984", "0.5578607", "0.5549215", "0.5540947", "0.55318564", "0.5516606", "0.5513346", "0.5488842", "0.5484631...
0.6627146
1
Returns the current line number in our program.
def lineno(): linenum = inspect.currentframe().f_back.f_lineno frameinfo = inspect.getframeinfo(inspect.currentframe()) filename = frameinfo.filename return str("File: " + str(filename) + " Line: " + str(linenum))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def line_number(self):\n return self._line_number", "def currentLineno():\n cf = inspect.currentframe()\n return cf.f_back.f_lineno", "def get_linenumber():\n\n # inspect.stack()[0][2] returns line number in this function\n lineno = str(inspect.stack()[1][2])\n\n return lineno", "def li...
[ "0.7964629", "0.7901338", "0.7875284", "0.7831881", "0.77907234", "0.7785241", "0.7785241", "0.7785241", "0.7785241", "0.7785241", "0.7785241", "0.77745366", "0.77666736", "0.77581066", "0.7744757", "0.77205455", "0.7717113", "0.7654441", "0.7590823", "0.7590747", "0.75428796...
0.7603027
18
Create and start volume
def setUpClass(cls): GlusterBaseClass.setUpClass.im_func(cls) # Create and start volume g.log.info("Starting volume setup process %s", cls.volname) ret = cls.setup_volume() if not ret: raise ExecutionError("Failed to setup " "and start...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_volume(self, instance_id):\n user, instance = _get_user_and_instance(self.girder_client, instance_id)\n tale = self.girder_client.get('/tale/{taleId}'.format(**instance))\n\n self.job_manager.updateProgress(\n message='Creating volume', total=CREATE_VOLUME_STEP_TOTAL,\n current=1,...
[ "0.7271476", "0.70605737", "0.7057493", "0.7041897", "0.70308685", "0.68977296", "0.67292213", "0.659384", "0.65878385", "0.6569588", "0.64147496", "0.63985217", "0.63298744", "0.63251364", "0.62655836", "0.62539345", "0.6253427", "0.62424475", "0.6230364", "0.6227082", "0.62...
0.5777581
52
Mount volume on authenticated client
def authenticated_mount(self, mount_obj): # Mount volume ret = mount_obj.mount() self.assertTrue(ret, ("Failed to mount %s on client %s" % (mount_obj.volname, mount_obj.client_system))) g.log.info("Successfully mounted %s on cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mount(fstype, export, vol_name, mountpoint, instance, options=None):\n with __manager__.get_state() as mount_state:\n mount_state.mount(fstype, export, vol_name, mountpoint, instance,\n options)", "def mount_volume(self, kwargs):\n\n exp_params = [('dev_name', is_str...
[ "0.70296204", "0.6949487", "0.6848037", "0.67836446", "0.67781174", "0.6720906", "0.6634265", "0.6537808", "0.64552903", "0.6415528", "0.6407578", "0.63407606", "0.6267693", "0.6193398", "0.6145909", "0.6098009", "0.609156", "0.6090751", "0.60803056", "0.60445535", "0.5968648...
0.6977928
1
Try to mount volume on unauthenticated client
def unauthenticated_mount(self, mount_obj): # Try to mount volume and verify # Sometimes the mount command is returning exit code as 0 in case of # mount failures as well. # Hence not asserting while running mount command in test case. # Instead asserting only if it is actually m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def actually_mount(self, client):\n try:\n getattr(client, self.mount_fun)(self.backend,\n mount_point=self.path)\n except hvac.exceptions.InvalidRequest as exception:\n match = re.match('existing mount at (?P<path>.+)', str(exception))...
[ "0.691883", "0.6453154", "0.64340204", "0.6410111", "0.61123747", "0.6110568", "0.6065314", "0.6004733", "0.5991444", "0.59559834", "0.59295976", "0.5829875", "0.58065104", "0.57909185", "0.57765055", "0.5771533", "0.57450986", "0.5685247", "0.564994", "0.5645701", "0.5630296...
0.6919879
0
Check if the mount failure is due to authentication error
def is_auth_failure(self, client_ip, previous_log_statement=''): # Command to find the log file cmd = "ls /var/log/glusterfs/ -1t | head -1" ret, out, _ = g.run(client_ip, cmd) self.assertEqual(ret, 0, "Failed to find the log file.") # Command to fetch latest AUTH_FAILED event l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_mount_failure(self):\n with prepared_image_file(create_filesystem=False):\n program = RsyncSystemBackup(\n crypto_device=CRYPTO_NAME,\n destination=os.path.join(MOUNT_POINT, 'latest'),\n mount_point=MOUNT_POINT,\n )\n # W...
[ "0.6506399", "0.6468886", "0.64333767", "0.6351299", "0.6179715", "0.5952573", "0.589682", "0.5854753", "0.57862586", "0.5772961", "0.5762136", "0.57615614", "0.57391673", "0.573684", "0.5726591", "0.5706865", "0.5674229", "0.5670807", "0.5654494", "0.5643797", "0.56299734", ...
0.6759158
0
Verify auth.allow feature using client ip and hostname.
def test_auth_allow(self): # Setting authentication on volume for client1 using ip auth_dict = {'all': [self.mounts[0].client_system]} ret = set_auth_allow(self.volname, self.mnode, auth_dict) self.assertTrue(ret, "Failed to set authentication") g.log.info("Successfully set authe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_auth():", "def verify_request(self, request, client_address):\n\n\t\tglobal configurer\n\n\t\treturn NetworkRender.allowedAddress(self.ip, client_address[0],\n\t\t\t\t\t\t\t\t\t\tconfigurer.get('ServerSecureNets'))", "def _client_allowed(self):\r\n client_ip = self._client_address[0]\r\n if not...
[ "0.67344755", "0.6592927", "0.63614154", "0.6287206", "0.61094236", "0.60946536", "0.6093124", "0.6063142", "0.5955991", "0.5888385", "0.5880554", "0.58696663", "0.58417726", "0.5828307", "0.5803806", "0.57793134", "0.57768685", "0.5744652", "0.5717419", "0.5713624", "0.56974...
0.6324398
3
returns value of sinewave
def sine2d(xx,yy,amp,wavelength,a,phase): z = amp*sin(((cos(a)*xx+sin(a)*yy)-phase*wavelength)*2.*pi/wavelength) return z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sin(x):\n return 0.0", "def sin(data):\n return _make.sin(data)", "def sine(x, period, var):\r\n return var*np.sin((2*np.pi/period)*x)", "def sin(self, a):\n return math.sin(a)", "def get(self, x):\r\n f = math.sin(self.phase_offset + self.angular_frequency*x)\r\n return self....
[ "0.7303977", "0.7213725", "0.7082983", "0.70594406", "0.69523937", "0.69520265", "0.6926854", "0.6887366", "0.679147", "0.6782753", "0.6737518", "0.67317176", "0.67263734", "0.6726323", "0.6717555", "0.671095", "0.6699294", "0.6664561", "0.6649949", "0.6640064", "0.6611699", ...
0.63869524
42
stacks 2d sinewaves to reproduce a kolmogorov spectrum
def kolmomap(xx,yy,amp,wavelength,angle,phase): sinemap=sine2d(xx,yy,amp[0],wavelength[0],angle[0]/180.*pi,phase[0])*0. for counter in range(len(amp)): sinemap=sinemap+sine2d(xx,yy,amp[counter],wavelength[counter],angle[counter]/180.*pi,phase[counter]) return sinemap
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def make_steer_frs(dims, numlevels, numorientations, bandwidth):\n \n result = []\n bands=[]\n p = numorientations-1\n const = math.sqrt(float(math.pow(2,(2*p))*math.pow(math.factorial(p),2)) / float(math.factorial(2*p)*(p+1)))\n f1 = freqspace(dims[0])\n f2 = freqspace(dims[1])\n wx, wy = ...
[ "0.6141303", "0.6075291", "0.596839", "0.5941244", "0.59371734", "0.5894046", "0.5874629", "0.58623034", "0.5827627", "0.58080804", "0.5776608", "0.57753086", "0.57586056", "0.5741752", "0.57298476", "0.5706082", "0.5665005", "0.5626584", "0.5622398", "0.56209135", "0.5581512...
0.57187915
15