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
Sets an object on S3.
def set(self, key, value): return s3.Object(self.bucket.name, key).put(Body=value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def put_object(self, key, data):\n self.s3client.put_object(Bucket=self.s3_bucket, Key=key, Body=data)", "def s3(ctx, bucket_name, data_file, region):\n ctx.obj['BUCKET_NAME'] = bucket_name\n ctx.obj['DATA_FILE'] = data_file\n ctx.obj['TYPE'] = 's3'\n ctx.obj['REGION'] = region", "def put(cl...
[ "0.7597473", "0.69008857", "0.6819459", "0.6672326", "0.66713464", "0.6634894", "0.6625908", "0.6607822", "0.6550986", "0.6475393", "0.6414314", "0.6413167", "0.6403339", "0.63333696", "0.63203514", "0.6305233", "0.6288362", "0.62137806", "0.62133557", "0.6204649", "0.6202215...
0.7937229
0
Removes an object from S3.
def delete(self, key): return s3.Object(self.bucket.name, key).delete()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _removeAWSS3Object(self, path: str):\n log.warning(f'Deleting AWS S3 object {path}')\n bucket, key = storage_utils.SplitStoragePath(path)\n s3_client = boto3.client('s3')\n try:\n s3_client.delete_object(Bucket=bucket, Key=key)\n except Exception as error: # pylint: disable=broad-except\n ...
[ "0.8387687", "0.7975223", "0.7787828", "0.7536796", "0.74416214", "0.72359407", "0.718142", "0.71069044", "0.70301193", "0.69260216", "0.6902956", "0.6886624", "0.6662449", "0.66603154", "0.6656013", "0.66461796", "0.6624847", "0.6512189", "0.6512181", "0.64888585", "0.648883...
0.72301453
6
Saves the Record to S3.
def _persist(self): trunk.set(self.uuid, self.json)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def save_to_s3(bucket, key, body):\n client = boto3.client('s3')\n s3_log = client.put_object(Body=body, Bucket=bucket, Key=key)\n \n if debug:\n print('s3_log:', s3_log)", "def save_to_s3(filename, contents):\n s3 = boto3.resource('s3')\n obj = s3.Object(BUCKET_NAME, S3_PATH.format(file...
[ "0.70544773", "0.6838242", "0.6629164", "0.65152615", "0.649773", "0.6412275", "0.640725", "0.63955045", "0.636357", "0.6363493", "0.62956953", "0.62628186", "0.6218628", "0.6187929", "0.6129746", "0.60943407", "0.60940754", "0.60659677", "0.5999342", "0.5963649", "0.5947495"...
0.0
-1
Saves the Record to Elastic Search.
def _index(self): return es.index(CLUSTER_NAME, 'record', self.dict, id=self.uuid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def store_record(elastic_object, index_name, record):\n is_stored = True\n try:\n # Adds or updates a typed JSON document in a specific index, making it searchable.\n outcome = elastic_object.index(index=index_name, doc_type='foods', body=record)\n print(outcome)\n except Exception as...
[ "0.6712626", "0.6667901", "0.6628686", "0.64688426", "0.63754636", "0.6308169", "0.62546974", "0.61695236", "0.6107768", "0.61036444", "0.60801667", "0.6066162", "0.6036133", "0.59974885", "0.59587383", "0.5887879", "0.5833903", "0.58324724", "0.5826808", "0.58229554", "0.579...
0.58500725
16
Get a list of records from a given collection.
def get_collection(): args = request.args.to_dict() # Convert size to int, for Python. if 'size' in args: args['size'] = int(args['size']) results = collection.search(request.args.get('q', '*'), **args) return jsonify(records=[r.dict for r in results])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_all(collection):\n data = []\n for item in collection.find({}):\n data.append(item)\n return data", "def get_many(collection, query: dict, selection=None) -> List[dict]:\n data = []\n if selection is None:\n for item in collection.find(query):\n ...
[ "0.7643322", "0.7590284", "0.72647053", "0.72298545", "0.6932477", "0.68474555", "0.683274", "0.67183137", "0.6648054", "0.65550005", "0.6511689", "0.64180845", "0.64088255", "0.6401839", "0.63192934", "0.6311595", "0.62930846", "0.6268215", "0.62383026", "0.619557", "0.61595...
0.68341327
6
Add a new record to a given collection.
def post_collection(): record = collection.new_record() record.data = request.json or request.form.to_dict() record.save() return get_record(record.uuid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def insert(self, record, collection: str):\n db_record = await self.database[collection].insert_one(record.dict(exclude={'id'})) \n return record", "def add(self, data):\n self.collection.insert(data)", "def add_record(self, record):\n pass", "def add(self, rec):\n rec['t...
[ "0.7032861", "0.67214483", "0.6662001", "0.6621692", "0.65892756", "0.64612836", "0.63967156", "0.63965285", "0.63688564", "0.62987196", "0.6232503", "0.62140405", "0.6207086", "0.6202208", "0.62018716", "0.61943626", "0.6186141", "0.6123074", "0.6109756", "0.6081327", "0.604...
0.68910587
1
Get a record from a given collection.
def get_record(uuid): return jsonify(record=collection[uuid].dict)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_record(self, collection_name, filter):\n\n try:\n self.logger.info('in get_record()')\n collection = self.get_db()[collection_name]\n record = collection.find_one(filter)\n self.logger.info('in get_record()')\n return record\n except Exce...
[ "0.74776053", "0.728433", "0.6863849", "0.67017853", "0.6622156", "0.6561175", "0.6526694", "0.6517627", "0.6469667", "0.6354046", "0.635211", "0.6252116", "0.62485945", "0.62479365", "0.62399995", "0.6239899", "0.6145618", "0.6075057", "0.60264504", "0.6021054", "0.59920126"...
0.6140753
17
Replaces a given Record.
def post_record(uuid): record = collection[uuid] record.data = request.json or request.form.to_dict() record.save() return get_record(uuid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setRecord(self,record):\n idLower = record.getId().lower()\n type = record.name\n typeIds = self.indexed[type]\n if idLower in typeIds:\n oldRecord = typeIds[idLower]\n index = self.records.index(oldRecord)\n self.records[index] = record\n els...
[ "0.7065856", "0.6751794", "0.6587137", "0.64837533", "0.63307375", "0.6305274", "0.626834", "0.61742544", "0.6064663", "0.6021186", "0.5984812", "0.5984188", "0.5943376", "0.59295046", "0.5874513", "0.5850831", "0.58317137", "0.578957", "0.577597", "0.57537097", "0.5692778", ...
0.0
-1
Updates a given Record.
def put_record(uuid): record = collection[uuid] record.data.update(request.json or request.form.to_dict()) record.save() return get_record(uuid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cli_update_record(field_list, record_data):\n api.update_record(field_list, record_data)", "def update(self, record):\n record = dict_for_mongo(record)\n id_dict = {'_id': self.record['_id']}\n self.collection.update(id_dict, {'$set': record})\n\n # Set record to the latest rec...
[ "0.77504337", "0.75720704", "0.7478801", "0.7313174", "0.7277248", "0.72049344", "0.7203998", "0.7144665", "0.7053515", "0.7012991", "0.6966805", "0.6842587", "0.6839037", "0.68001187", "0.6788171", "0.67718506", "0.66960037", "0.6686298", "0.6634109", "0.6626445", "0.6605019...
0.6343013
33
Deletes a given record.
def delete_record(uuid): collection[uuid].delete() return redirect('/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_record(self, record_id):\r\n self.record.deleteObject(id=record_id)", "def delete_record(self, record):\n self.get_record(zone_id=record.zone.id, record_id=record.id)\n\n del self._zones[record.zone.id][\"records\"][record.id]\n return True", "def delete(self, record):\n\...
[ "0.8342025", "0.819139", "0.80528647", "0.80330473", "0.77634525", "0.7590146", "0.7532213", "0.7476758", "0.74038815", "0.73569614", "0.7201461", "0.7168568", "0.71562845", "0.7135584", "0.7088917", "0.70800716", "0.7053024", "0.70452994", "0.70262283", "0.697", "0.6963", ...
0.70046175
19
Update the bullets location. Eventually do collision
def update(self): a = [0.0, 0.0] a[0] += cos(radians(self.rot+90)) * self.speed a[1] += sin(radians(self.rot+90)) * self.speed self.x -= a[0] self.y -= a[1] if self.x < 0 or self.y < 0: self.owner.bullet_list.remove(self) del(self) elif...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_bullet_pos(self):\n # Update the decimal position of the bullet.\n self.pos_y -= self.settings.bullet1_speed\n self.rect.top = self.pos_y", "def _update_bullet(self):\n\n # update position of old bullets\n self.bullets.update()\n\n # Get rid of bullets that ar...
[ "0.80307853", "0.800439", "0.7949822", "0.7944579", "0.784271", "0.77690405", "0.7433373", "0.73987687", "0.7324632", "0.729992", "0.72290784", "0.7221896", "0.71860194", "0.71506184", "0.71461153", "0.71153486", "0.7109173", "0.709251", "0.70902157", "0.70732075", "0.7065424...
0.7002948
22
Creates an image embedded in HTML base64 format.
def embed_image_pred(image): image_pil2 = Image.fromarray((255 * image).astype('uint8')) #image_pil2 = image_pil.resize((256, 256)) string_buf2 = StringIO.StringIO() image_pil2.save(string_buf2, format='png') data = string_buf2.getvalue().encode('base64').replace('\n', '') return 'data:image/png...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def embed_image_html(image, type):\n if type == 'dehaze':\n image_pil = Image.fromarray((image).astype('uint8'))\n elif type == 'style_transfer':\n image_pil = Image.fromarray((image).astype('uint8'))\n else:\n image_pil = Image.fromarray((255 * image).astype('uint8'))\n if sys.versio...
[ "0.74968493", "0.7387752", "0.73166114", "0.7157092", "0.6858408", "0.67889524", "0.67318505", "0.6560221", "0.64368415", "0.6365027", "0.63073367", "0.62825274", "0.62530494", "0.62053245", "0.6199916", "0.6168956", "0.61632437", "0.6078346", "0.6077569", "0.6063537", "0.606...
0.6190129
15
Parse command line options and start the server.
def start_from_terminal(app): parser = optparse.OptionParser() parser.add_option( '-d', '--debug', help="enable debug mode", action="store_true", default=False) parser.add_option( '-p', '--port', help="which port to serve content on", type='int', default=5000)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def main():\n parser = create_arg_parser()\n\n # If script run without arguments, print syntax\n if len(sys.argv) == 1:\n parser.print_help()\n sys.exit(1)\n\n # Parse arguments\n args = parser.parse_args()\n host = args.h\n mode = args.m\n port = args.p\n debug_mode = args...
[ "0.7779361", "0.73554564", "0.72951037", "0.7110269", "0.7101472", "0.7097494", "0.70470613", "0.6933735", "0.6922884", "0.6889745", "0.6889745", "0.68816704", "0.6855618", "0.6843444", "0.67988044", "0.67929107", "0.6787591", "0.6764832", "0.67343926", "0.66856706", "0.66760...
0.0
-1
Methods that configures the server
def bind_server(self): self.MAIN_CONNECTION.bind((self.HOST, self.PORT))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setup_server():\n cherrypy.config.update('server.conf')\n cherrypy.tree.mount(StringGeneratorWebService(), '/', 'server.conf')", "def configure(self):\n\n pass", "def configure(self):\n pass", "def configure(self):\n pass", "def configure(self):\r\n pass", "d...
[ "0.75181806", "0.7468806", "0.7427642", "0.7427642", "0.7420736", "0.7273809", "0.72576094", "0.72576094", "0.72576094", "0.72576094", "0.7216536", "0.71517515", "0.70527375", "0.6962847", "0.6877553", "0.6781325", "0.677082", "0.67613345", "0.67613345", "0.67527395", "0.6731...
0.0
-1
Methods that listens connections
def listen_connections(self): self.MAIN_CONNECTION.listen(server.MAX_CONNECTIONS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def listen(self):\n pass", "def listen(self):\n raise NotImplementedError()", "def listen_to_connection(self, conn):\n with conn:\n print(\"Connected\")\n while self.running:\n data = conn.recv(32)\n if not data: \n retu...
[ "0.7612184", "0.71602017", "0.71515846", "0.71365505", "0.71174467", "0.71082944", "0.70982355", "0.7049932", "0.7019576", "0.7010939", "0.6955362", "0.69413453", "0.6914201", "0.6914201", "0.6914201", "0.6914201", "0.6914201", "0.6914201", "0.6914201", "0.6914201", "0.688471...
0.77907354
0
Methods that accepts a new connection / gets a serverside chat channel
def accept_connections(self): (connection_with_client, client_info) = server.MAIN_CONNECTION.accept() self.connection_with_client = connection_with_client self.client_info = client_info
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_connect(self, connection, event):\r\n print('[{}] Connected to {}' .format(event.type.upper(), event.source))\r\n print(\"{}\".format(event.arguments))\r\n\r\n res = self.cursor.execute(\"\"\"SELECT * FROM `IRC_servers` WHERE `Registred_users_userID` = %s AND `serverID` = %s;\"\"\", (se...
[ "0.6628801", "0.6522229", "0.64736426", "0.6437894", "0.63919777", "0.63312215", "0.62998873", "0.6276557", "0.6265841", "0.6254388", "0.6236799", "0.61905026", "0.61155397", "0.6113755", "0.61133313", "0.6071773", "0.6070272", "0.60539806", "0.60407645", "0.6036271", "0.6021...
0.0
-1
Methods that encodes a message
def encode(self, message): return message.encode()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def encode(rosMsg): #@NoSelf", "def _encode_message(cls, message):\n if message.magic == 0:\n msg = b''.join([\n struct.pack('>BB', message.magic, message.attributes),\n write_int_string(message.key),\n write_int_string(message.value)\n ])...
[ "0.7854644", "0.7732938", "0.7339357", "0.7312762", "0.7125157", "0.69748294", "0.6965203", "0.6858573", "0.68486184", "0.6846211", "0.6785432", "0.6734904", "0.65781033", "0.65754527", "0.6553449", "0.65225965", "0.6521977", "0.65083826", "0.6502999", "0.64888036", "0.648308...
0.788964
0
Methods that allows to send a message
def send_message(self, message: str): mess = "\n" + self.machine_name + " : " + message mess_to_send = self.encode(mess) self.connection_with_client.send(mess_to_send) return mess
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def send(self, msg):\n pass", "def send(self, msg):\n pass", "def send(self, msg):\n pass", "def send(self, message):\n pass", "def send_message(self, message):\n pass", "def send(self, msg):\n self.message('Me', msg)", "async def send(self, message):", "def send...
[ "0.8560662", "0.8560662", "0.8560662", "0.8528226", "0.8491285", "0.8435303", "0.8231707", "0.7958049", "0.7900756", "0.78675646", "0.7821881", "0.76757854", "0.76527315", "0.7553887", "0.75278777", "0.75066394", "0.7493275", "0.7390162", "0.7366791", "0.7350672", "0.73336196...
0.0
-1
method that gets a message
def get_message(self): client_message = self.connection_with_client.recv(1024) client_message_decoded = client_message.decode() if "quit" in client_message_decoded.lower(): self.end() return client_message_decoded
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getMessage():\n return message", "def get_message(self):\n return self.msg", "def _get_message(self):\n return self.__message", "def get_message(self):\n return self.message", "def get_message(self):\n return self.message", "def get_message(self):\n return self._...
[ "0.83181965", "0.7973676", "0.78754735", "0.77454257", "0.77454257", "0.7581657", "0.75282943", "0.74649423", "0.74401635", "0.7426536", "0.7419804", "0.7398363", "0.73656094", "0.73370504", "0.733567", "0.7332666", "0.7332666", "0.72949463", "0.7280244", "0.7263021", "0.7202...
0.67660767
54
Method that ends the chat
def end(self): self.MAIN_CONNECTION.close() self.connection_with_client.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def endMessage(self):", "def on_chat_end(self, request, trigger_context):\n raise NotImplementedError", "def end_message(self):\r\n if self.cur_message is not None:\r\n self.cur_message.end_time = datetime.now()\r\n self.wait_message()", "def on_chat_close(self, request, t...
[ "0.81061465", "0.7038622", "0.7036961", "0.6987908", "0.69775516", "0.6925397", "0.69110525", "0.6908139", "0.6802444", "0.677774", "0.67434275", "0.66739", "0.66321295", "0.6570819", "0.64972204", "0.6485214", "0.6465927", "0.64220124", "0.6381466", "0.63523555", "0.63265866...
0.0
-1
Method that displays infos
def __repr__(self): infos = ["Affichage de l'IP machine ", socket.gethostbyname_ex(socket.gethostname())] for elt in infos: print(elt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def info(self):", "def info(self):", "def info(self):\n pp = pprint.PrettyPrinter(indent=4)\n print_text_box('Info')\n pp.pprint(self.manager.data[\"info\"])\n print('')", "def show_info(self): \n color= Fore.WHITE\n print(f\"\"\" {color} \nNombre: {self....
[ "0.7651792", "0.7651792", "0.7625404", "0.75386995", "0.73825073", "0.7371591", "0.7265094", "0.7260243", "0.71934235", "0.7183703", "0.7062535", "0.7010694", "0.6988512", "0.6980763", "0.69676083", "0.69516623", "0.69484895", "0.69402033", "0.69402033", "0.692319", "0.687516...
0.0
-1
Compute delta features from a feature vector sequence.
def delta(feat, N): if N < 1: raise ValueError('N must be an integer >= 1') NUMFRAMES = feat.shape[0] denominator = 2 * sum([i**2 for i in range(1, N + 1)]) delta_feat = tf.reshape((), (0, feat.shape[1])) padded = tf.pad( feat, tf.constant([[N, N], [0, 0]]), 'CONSTANT', 0 ) # pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_deltas(features, delta_opts=DeltaOpts()):\n features = tf.convert_to_tensor(features)\n assert features.shape.ndims == 2\n return _kaldi_module.add_deltas(features, *delta_opts)", "def feature_vector(features, vector):\n clean_features = set(features)\n new_features_vector = featurize(vect...
[ "0.65966004", "0.6421603", "0.6163163", "0.6111945", "0.60222113", "0.59895873", "0.5738642", "0.56710756", "0.5573973", "0.55733955", "0.5560826", "0.5547574", "0.5538013", "0.54894793", "0.54835063", "0.547879", "0.5478292", "0.54678655", "0.5454731", "0.54526603", "0.54496...
0.54324037
23
The set of arguments for constructing a Job resource.
def __init__(__self__, *, client_request_id: Optional[pulumi.Input[str]] = None, create_time: Optional[pulumi.Input[str]] = None, created_from_snapshot_id: Optional[pulumi.Input[str]] = None, current_state: Optional[pulumi.Input['JobCurrentState']] = N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(__self__,\n resource_name: str,\n opts: Optional[pulumi.ResourceOptions] = None,\n copy: Optional[pulumi.Input[pulumi.InputType['JobCopyArgs']]] = None,\n extract: Optional[pulumi.Input[pulumi.InputType['JobExtractArgs']]] = None,\n ...
[ "0.6313999", "0.62224513", "0.60525095", "0.60084665", "0.5980095", "0.5951786", "0.59460354", "0.5871665", "0.5789236", "0.5773867", "0.57570434", "0.5726385", "0.5687861", "0.5676784", "0.5674849", "0.5669908", "0.56415373", "0.56355846", "0.5619292", "0.56025356", "0.56020...
0.0
-1
The client's unique identifier of the job, reused across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client's ID and job name. The caller may use this field to ensure idempo...
def client_request_id(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "client_request_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_job_id(self):\n return uuid.uuid4().hex", "def _register_job(self, job, client):\n new_job = copy.deepcopy(job)\n new_job['client_id'] = client['id']\n\n return int(self.create_object(self.JOB_ENDPOINT, new_job))", "def create_job_id() -> str:\n return str(uuid.uuid1())"...
[ "0.70430887", "0.7037967", "0.6976439", "0.6614702", "0.65722024", "0.6476235", "0.64287025", "0.6425216", "0.6351848", "0.6329987", "0.62891823", "0.6227138", "0.61004627", "0.60807335", "0.6062897", "0.6062897", "0.6062897", "0.6062897", "0.6062897", "0.6062897", "0.6062897...
0.56417125
56
The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
def create_time(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "create_time")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def creation_timestamp(self) -> str:\n return pulumi.get(self, \"creation_timestamp\")", "def creation_timestamp(self) -> str:\n return pulumi.get(self, \"creation_timestamp\")", "def creation_timestamp(self) -> str:\n return pulumi.get(self, \"creation_timestamp\")", "def creation_times...
[ "0.7821324", "0.7821324", "0.7821324", "0.76665497", "0.7642792", "0.7503464", "0.7491798", "0.73561174", "0.73259294", "0.73136383", "0.7292784", "0.7292784", "0.7292784", "0.7254832", "0.72322977", "0.72313684", "0.7128438", "0.7124728", "0.7124728", "0.7124728", "0.7124728...
0.66525364
84
If this is specified, the job's initial state is populated from the given snapshot.
def created_from_snapshot_id(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "created_from_snapshot_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_job_state(self, job):", "def load_snapshot(self):\r\n assert self.snapshot is not None\r\n self.name = self.snapshot[0]\r\n self.size = self.snapshot[1]\r\n self.cells = self.snapshot[2]\r\n self.bucket_array.load_snapshot()", "def load_snapshot(self):\r\n a...
[ "0.60252035", "0.5996586", "0.5826005", "0.5781318", "0.5753172", "0.5646955", "0.56292635", "0.55928195", "0.55536556", "0.54924464", "0.5478733", "0.54302067", "0.5371237", "0.53406954", "0.5331017", "0.5331017", "0.5331017", "0.5331017", "0.527556", "0.5255969", "0.5236439...
0.0
-1
The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow se...
def current_state(self) -> Optional[pulumi.Input['JobCurrentState']]: return pulumi.get(self, "current_state")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def status(self):\n return self.job_proto.status", "def state(self):\n\t\tif self._state in JOB_PS:\n\t\t\treturn JOB_PS[self._state]\n\t\telse:\n\t\t\treturn str(self._state)", "def get_job_state(self, response) -> JobState:\n return response.state", "async def get_job_state(jobId: int) -> State: ...
[ "0.7329836", "0.69937176", "0.6986887", "0.69711584", "0.6853917", "0.6739606", "0.67031467", "0.66870844", "0.667048", "0.6642078", "0.65864736", "0.65759397", "0.6534261", "0.6526487", "0.6502482", "0.64992523", "0.64646286", "0.64590913", "0.64391017", "0.6417279", "0.6380...
0.7666344
0
The timestamp associated with the current state.
def current_state_time(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "current_state_time")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def current_state_time(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"current_state_time\")", "def timestamp(self):\n return time.time()", "def current_timestamp(self) -> time:\n\n return time.time()", "def state_sys_time(self):\n return self._state_sys_time", "def tim...
[ "0.8535804", "0.83251315", "0.8314383", "0.824135", "0.8220696", "0.8158528", "0.8158528", "0.8158528", "0.8158528", "0.8158528", "0.8158528", "0.8158528", "0.8100831", "0.79665995", "0.79463786", "0.7933776", "0.7932426", "0.7815063", "0.7769718", "0.7750064", "0.7728505", ...
0.8058354
13
The environment for the job.
def environment(self) -> Optional[pulumi.Input['EnvironmentArgs']]: return pulumi.get(self, "environment")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def environment(self):\n return self._environment", "def getEnvironment(self):\n pass", "def get_environment(self):\n return self._environment", "def get_environment(self):\r\n return self.mcas[0].get_environment()", "def environment(self):\n return self._get_field(\"enviro...
[ "0.8213411", "0.81561047", "0.7862708", "0.78589195", "0.7847582", "0.7824099", "0.7801975", "0.7651758", "0.7469899", "0.73419267", "0.72312576", "0.7230836", "0.7220368", "0.7220368", "0.7220368", "0.7220368", "0.7147252", "0.7121019", "0.71011424", "0.7090833", "0.7084952"...
0.7710719
7
The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job.
def id(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(self):\n return self.job_proto.id", "def job_id(self):\n return self._job_id", "def job_id(self) -> JobId:\r\n return self._job_id", "def job_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"job_id\")", "def _get_job_id(self):\n return uuid.uuid4().hex", "...
[ "0.81822854", "0.8128831", "0.80731195", "0.7988574", "0.7821112", "0.77694994", "0.77067876", "0.7509466", "0.7490635", "0.7398191", "0.7382582", "0.72407186", "0.7235205", "0.72227263", "0.7211302", "0.7211302", "0.72040904", "0.72040904", "0.72040904", "0.72040904", "0.720...
0.0
-1
This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
def job_metadata(self) -> Optional[pulumi.Input['JobMetadataArgs']]: return pulumi.get(self, "job_metadata")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_queryset(self):\n jobs = Job.objects.all()\n if not self.kwargs.get(\"pk\"):\n jobs = jobs.filter(\n status=choices.APPROVED, submission_deadline__gte=datetime.today()\n ).order_by(\"-created_at\")\n if not self.request.user.is_anonymous():\n ...
[ "0.6179425", "0.60183144", "0.59170324", "0.586493", "0.5818696", "0.5818696", "0.57092685", "0.5674045", "0.56648874", "0.5663264", "0.56610656", "0.5649321", "0.563558", "0.5615517", "0.5602395", "0.5600877", "0.55901146", "0.55678916", "0.5564421", "0.54655796", "0.5433453...
0.589234
3
The userspecified Cloud Dataflow job name. Only one Job with a given name can exist in a project within one region at any given time. Jobs in different regions can have the same name. If a caller attempts to create a Job with the same name as an alreadyexisting Job, the attempt returns the existing Job. The name must m...
def name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_job_name(path, beam):\n file_parts = os.path.splitext(os.path.basename(MADX_TEMPLATE))\n out_parts = [file_parts[0].replace(\"template\", \"job\"),\n \"b{:d}\".format(beam),\n file_parts[1].strip(\".\")]\n return os.path.join(path, \".\".join(out_parts))", "def j...
[ "0.6351188", "0.62295556", "0.6058553", "0.6030195", "0.5990592", "0.5928874", "0.5799694", "0.57914233", "0.57768744", "0.57678705", "0.5756407", "0.57101756", "0.56578743", "0.56444263", "0.56218624", "0.5602422", "0.55867505", "0.55849206", "0.55784416", "0.5556114", "0.55...
0.0
-1
The ID of the Cloud Platform project that the job belongs to.
def project(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "project")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def project_id(self) -> str:\n return pulumi.get(self, \"project_id\")", "def project_id(self) -> str:\n return pulumi.get(self, \"project_id\")", "def project_id(self) -> str:\n return pulumi.get(self, \"project_id\")", "def project_id(self) -> str:\n return pulumi.get(self, \"pr...
[ "0.843836", "0.843836", "0.843836", "0.843836", "0.8386719", "0.8292437", "0.8155075", "0.8127277", "0.8074481", "0.8074481", "0.802694", "0.80028754", "0.80028754", "0.80028754", "0.80028754", "0.80028754", "0.7955152", "0.7623046", "0.75176245", "0.7447181", "0.732051", "...
0.7030514
51
If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
def replace_job_id(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "replace_job_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def replace_job_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"replace_job_id\")", "def replaced_by_job_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"replaced_by_job_id\")", "def job_id(self):\n return self._job_id", "def job_id(self) -> JobId:\r\n ...
[ "0.7022574", "0.68343025", "0.6693955", "0.6676561", "0.6598308", "0.65410113", "0.6516", "0.6480073", "0.64597213", "0.6404122", "0.64001995", "0.63805336", "0.6351039", "0.63020426", "0.6274184", "0.62485784", "0.6229966", "0.6221343", "0.6218369", "0.6212952", "0.62122995"...
0.72051805
0
If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
def replaced_by_job_id(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "replaced_by_job_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def job_id(self) -> JobId:\r\n return self._job_id", "def job_id(self):\n return self._job_id", "def get_job_id(self):\n return {'job_id': self._job_id}", "def job_id(self):\n return self._properties.get(\"jobReference\", {}).get(\"jobId\")", "def id(self):\n return self....
[ "0.71049523", "0.70947933", "0.6890538", "0.6862732", "0.6678423", "0.6665369", "0.65098363", "0.64531416", "0.63759446", "0.6345479", "0.6259699", "0.6056505", "0.6024026", "0.6012819", "0.59918654", "0.5986989", "0.59682786", "0.59645814", "0.59451514", "0.5944166", "0.5927...
0.61557627
11
The job's requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not alread...
def requested_state(self) -> Optional[pulumi.Input['JobRequestedState']]: return pulumi.get(self, "requested_state")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_job_state(self, response) -> JobState:\n return response.state", "def update_job_state(self, job):", "def get_job_state(\n self,\n response: Union[Dict[Text, Text], CustomJob]) -> Union[Text, JobState]:\n pass", "def update(self) -> None:\n self.previous_status = self.status\n\...
[ "0.67397374", "0.66479105", "0.66165996", "0.6484021", "0.63993067", "0.63951313", "0.6357078", "0.6357078", "0.6357078", "0.6322717", "0.6265647", "0.6232972", "0.60698605", "0.6052832", "0.5972194", "0.596493", "0.5937552", "0.59192145", "0.58943826", "0.57290375", "0.57057...
0.7431528
0
This field may ONLY be modified at runtime using the projects.jobs.update method to adjust job behavior. This field has no effect when specified at job creation.
def runtime_updatable_params(self) -> Optional[pulumi.Input['RuntimeUpdatableParamsArgs']]: return pulumi.get(self, "runtime_updatable_params")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def job(self) -> str:\n return self._job", "def job(self) -> str:\n return self._job", "def default_job(self):\n job = Job()\n\n job['in_development'] = self.debug\n job['website_name'] = self.website_name\n job['website_url'] = self.website_url\n\n return job",...
[ "0.63399875", "0.63399875", "0.6296491", "0.62582904", "0.62559927", "0.62559927", "0.62559927", "0.6255846", "0.62524664", "0.6153449", "0.6153449", "0.6129463", "0.61186224", "0.60563475", "0.6026385", "0.6026385", "0.6026385", "0.6026385", "0.5987138", "0.59390724", "0.589...
0.0
-1
Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
def satisfies_pzs(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "satisfies_pzs")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _short_response(self, request): # pylint: disable=no-self-use\n # @TODO: Should check reqeust header using custom header for setting override\n # @TODO: revisit this approach, still performance imppact in serialization of uneeded data\n return settings.POST_PUT_REQUEST_SHORT_RESPO...
[ "0.61067057", "0.59582156", "0.58684653", "0.5803794", "0.57351214", "0.5725692", "0.57177544", "0.56878966", "0.5616554", "0.5534253", "0.5534253", "0.55207354", "0.5519773", "0.54868686", "0.547336", "0.54707056", "0.5468338", "0.5452417", "0.5445478", "0.5417545", "0.53952...
0.0
-1
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
def stage_states(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ExecutionStageStateArgs']]]]: return pulumi.get(self, "stage_states")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def field(self):\n return None", "def data_flow(self, data_flow):\n\n self._data_flow = data_flow", "def on_put_field(self, ins, const, obj, value):\n pass", "def get_updated_field(self):\n return None", "def update_original_data(self):\n pass", "def __setitem__(self):\...
[ "0.6113193", "0.5738539", "0.5676029", "0.5647385", "0.5596178", "0.558965", "0.5578561", "0.54866284", "0.54866284", "0.54866284", "0.54664195", "0.54128766", "0.54101783", "0.54101783", "0.54039043", "0.5376897", "0.5373367", "0.5362991", "0.5361446", "0.53329325", "0.53119...
0.0
-1
The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time ...
def start_time(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "start_time")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getStartTime(self):\n assert not self.isWaitingToStart(), \"Too early to tell: %s\" % self\n return \"%s\" % self.__jobInfo.startTime", "def schedule_start_time(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"schedule_start_time\")", "def start_time(self) -> Optional[pulu...
[ "0.74199384", "0.6982314", "0.6640806", "0.6640806", "0.66306525", "0.6626746", "0.6612122", "0.65286565", "0.6484841", "0.6484841", "0.64837116", "0.6461573", "0.6385353", "0.63692796", "0.63692796", "0.63692796", "0.63692796", "0.63692796", "0.63692796", "0.63692796", "0.63...
0.6651326
7
Exactly one of step or steps_location should be specified. The toplevel steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
def steps(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['StepArgs']]]]: return pulumi.get(self, "steps")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def steps_location(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"steps_location\")", "def steps_location(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"steps_location\")", "def getStep():\n # TODO: can there be non-Step logs?", "def start_step(self, _, step,...
[ "0.63194406", "0.59337544", "0.5318865", "0.5282951", "0.5257218", "0.52124393", "0.5194128", "0.5176543", "0.5164805", "0.5135415", "0.5079571", "0.50354093", "0.50051206", "0.49747825", "0.496007", "0.4939175", "0.4939175", "0.49383163", "0.49266198", "0.49200353", "0.49194...
0.5724257
2
The Cloud Storage location where the steps are stored.
def steps_location(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "steps_location")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def steps_location(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"steps_location\")", "def get_storage_location(self):\n return self.s3_bucket", "def path(self):\n return self.storage.path(self.name)", "def cloud_storage_path(self) -> Optional['outputs.PreventionStoredInfoTypeD...
[ "0.6943449", "0.69068676", "0.68352693", "0.671667", "0.6669311", "0.6660665", "0.66328317", "0.6623492", "0.6473687", "0.64190775", "0.6264104", "0.6245926", "0.61938334", "0.6107081", "0.61031806", "0.6064263", "0.60452557", "0.5954599", "0.59541845", "0.5945115", "0.594175...
0.64276963
9
The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
def transform_name_mapping(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: return pulumi.get(self, "transform_name_mapping")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def transform_name_mapping(self) -> pulumi.Output[Mapping[str, str]]:\n return pulumi.get(self, \"transform_name_mapping\")", "def TransformNames(self) -> _n_2_t_0[str]:", "def _get_new_substitutions_and_renames(self):\n\n from loopy.kernel.data import SubstitutionRule\n\n result = {}\n ...
[ "0.66170824", "0.598492", "0.58660036", "0.5762038", "0.5691895", "0.5690224", "0.5644165", "0.55620027", "0.55438006", "0.5532438", "0.5500579", "0.54685307", "0.5456325", "0.5445696", "0.5429243", "0.5415111", "0.53795516", "0.5372357", "0.53603464", "0.53334206", "0.532651...
0.60125035
1
The type of Cloud Dataflow job.
def type(self) -> Optional[pulumi.Input['JobType']]: return pulumi.get(self, "type")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def job_type(self):\n return self._job_type", "def job_type(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"job_type\")", "def task_type(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"task_type\")", "def _get_task_type(self):\n\n if self.num_classes == 0:\n retu...
[ "0.770037", "0.7477219", "0.66080755", "0.65520203", "0.64328414", "0.62835395", "0.62835395", "0.62835395", "0.61214936", "0.6060477", "0.6027481", "0.6005418", "0.59883916", "0.59883916", "0.5927427", "0.59206194", "0.5799378", "0.57809764", "0.5778433", "0.5758208", "0.575...
0.7241703
2
The level of information requested in response.
def view(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "view")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def level(self):\n return self.__level", "def level(self):\n return self.__level", "def getLevel(self):\n return self.level", "def level(self):\n return self._level", "def level(self):\n return self._level", "def level(self):\n return self._level", "def level(self)...
[ "0.70163196", "0.70163196", "0.7011637", "0.7007089", "0.7007089", "0.7007089", "0.7007089", "0.6933583", "0.6920545", "0.6833619", "0.66588515", "0.66264856", "0.66264856", "0.6510074", "0.65029037", "0.6432383", "0.6401852", "0.63934386", "0.63805574", "0.63700056", "0.6367...
0.0
-1
Get an existing Job resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None) -> 'Job': opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = JobArgs.__new__(JobArgs) __props__.__dict__["client_request_id"] = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lookup(job_id: str) -> JobState:\n job = JobState(job_id)\n job.update()\n return job", "def get(resource_name: str,\n id: pulumi.Input[str],\n opts: Optional[pulumi.ResourceOptions] = None,\n copy: Optional[pulumi.Input[pulumi.InputType['JobCopyArgs']]] = None,\n ...
[ "0.75226706", "0.64216536", "0.62936646", "0.60505", "0.59541947", "0.59252983", "0.58310264", "0.5789316", "0.5756638", "0.57514346", "0.5731489", "0.5715539", "0.5639124", "0.56319404", "0.5631685", "0.56202406", "0.5577131", "0.557635", "0.55601823", "0.5559163", "0.555682...
0.6752096
1
The client's unique identifier of the job, reused across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client's ID and job name. The caller may use this field to ensure idempo...
def client_request_id(self) -> pulumi.Output[str]: return pulumi.get(self, "client_request_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_job_id(self):\n return uuid.uuid4().hex", "def _register_job(self, job, client):\n new_job = copy.deepcopy(job)\n new_job['client_id'] = client['id']\n\n return int(self.create_object(self.JOB_ENDPOINT, new_job))", "def create_job_id() -> str:\n return str(uuid.uuid1())"...
[ "0.70430887", "0.7037967", "0.6976439", "0.6614702", "0.65722024", "0.6476235", "0.64287025", "0.6425216", "0.6351848", "0.6329987", "0.62891823", "0.6227138", "0.61004627", "0.60807335", "0.6062897", "0.6062897", "0.6062897", "0.6062897", "0.6062897", "0.6062897", "0.6062897...
0.5711887
49
The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
def create_time(self) -> pulumi.Output[str]: return pulumi.get(self, "create_time")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def creation_timestamp(self) -> str:\n return pulumi.get(self, \"creation_timestamp\")", "def creation_timestamp(self) -> str:\n return pulumi.get(self, \"creation_timestamp\")", "def creation_timestamp(self) -> str:\n return pulumi.get(self, \"creation_timestamp\")", "def creation_times...
[ "0.7821249", "0.7821249", "0.7821249", "0.7666056", "0.76426727", "0.75031984", "0.74914265", "0.73562527", "0.7325593", "0.7313306", "0.72930527", "0.72930527", "0.72930527", "0.72555506", "0.72329324", "0.72319573", "0.7128509", "0.71255094", "0.71255094", "0.71255094", "0....
0.0
-1
If this is specified, the job's initial state is populated from the given snapshot.
def created_from_snapshot_id(self) -> pulumi.Output[str]: return pulumi.get(self, "created_from_snapshot_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_job_state(self, job):", "def load_snapshot(self):\r\n assert self.snapshot is not None\r\n self.name = self.snapshot[0]\r\n self.size = self.snapshot[1]\r\n self.cells = self.snapshot[2]\r\n self.bucket_array.load_snapshot()", "def load_snapshot(self):\r\n a...
[ "0.6023692", "0.5997262", "0.5826245", "0.5781435", "0.575378", "0.5645092", "0.5630081", "0.5592593", "0.5553732", "0.54936814", "0.5479089", "0.5431118", "0.53703433", "0.53397214", "0.5329715", "0.5329715", "0.5329715", "0.5329715", "0.52758366", "0.52555674", "0.52349585"...
0.0
-1
The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow se...
def current_state(self) -> pulumi.Output[str]: return pulumi.get(self, "current_state")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def current_state(self) -> Optional[pulumi.Input['JobCurrentState']]:\n return pulumi.get(self, \"current_state\")", "def status(self):\n return self.job_proto.status", "def state(self):\n\t\tif self._state in JOB_PS:\n\t\t\treturn JOB_PS[self._state]\n\t\telse:\n\t\t\treturn str(self._state)", ...
[ "0.76669973", "0.73298466", "0.69926566", "0.6984989", "0.6970389", "0.6854153", "0.6739465", "0.6702225", "0.6686337", "0.66679966", "0.6642324", "0.658711", "0.65754193", "0.65363485", "0.6502454", "0.64985216", "0.646508", "0.64603245", "0.64379245", "0.64176184", "0.63791...
0.6526517
14
The timestamp associated with the current state.
def current_state_time(self) -> pulumi.Output[str]: return pulumi.get(self, "current_state_time")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def timestamp(self):\n return time.time()", "def current_timestamp(self) -> time:\n\n return time.time()", "def state_sys_time(self):\n return self._state_sys_time", "def timestamp(self):\n return self.__timestamp", "def timestamp(self):\n return self._timestamp", "def ...
[ "0.83251315", "0.8314383", "0.824135", "0.8220696", "0.8158528", "0.8158528", "0.8158528", "0.8158528", "0.8158528", "0.8158528", "0.8158528", "0.8100831", "0.8058354", "0.79665995", "0.79463786", "0.7933776", "0.7932426", "0.7815063", "0.7769718", "0.7750064", "0.7728505", ...
0.8535804
0
The environment for the job.
def environment(self) -> pulumi.Output['outputs.EnvironmentResponse']: return pulumi.get(self, "environment")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def environment(self):\n return self._environment", "def getEnvironment(self):\n pass", "def get_environment(self):\n return self._environment", "def get_environment(self):\r\n return self.mcas[0].get_environment()", "def environment(self):\n return self._get_field(\"enviro...
[ "0.82107896", "0.8153497", "0.7860189", "0.7857084", "0.78452456", "0.78215486", "0.77995557", "0.770902", "0.7648609", "0.74662536", "0.72293246", "0.72284967", "0.72190464", "0.72190464", "0.72190464", "0.72190464", "0.71458024", "0.7119429", "0.7099697", "0.7088076", "0.70...
0.73396313
10
This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
def job_metadata(self) -> pulumi.Output['outputs.JobMetadataResponse']: return pulumi.get(self, "job_metadata")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_queryset(self):\n jobs = Job.objects.all()\n if not self.kwargs.get(\"pk\"):\n jobs = jobs.filter(\n status=choices.APPROVED, submission_deadline__gte=datetime.today()\n ).order_by(\"-created_at\")\n if not self.request.user.is_anonymous():\n ...
[ "0.6180427", "0.6019567", "0.59192526", "0.58946455", "0.5864562", "0.5821104", "0.5821104", "0.57098705", "0.5676303", "0.5666552", "0.5666209", "0.5663928", "0.5652173", "0.56371224", "0.5615643", "0.56030846", "0.56008303", "0.55900824", "0.55700797", "0.5565463", "0.54674...
0.52441925
33
The userspecified Cloud Dataflow job name. Only one Job with a given name can exist in a project within one region at any given time. Jobs in different regions can have the same name. If a caller attempts to create a Job with the same name as an alreadyexisting Job, the attempt returns the existing Job. The name must m...
def name(self) -> pulumi.Output[str]: return pulumi.get(self, "name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_job_name(path, beam):\n file_parts = os.path.splitext(os.path.basename(MADX_TEMPLATE))\n out_parts = [file_parts[0].replace(\"template\", \"job\"),\n \"b{:d}\".format(beam),\n file_parts[1].strip(\".\")]\n return os.path.join(path, \".\".join(out_parts))", "def j...
[ "0.63522184", "0.6230537", "0.60579526", "0.6031342", "0.59915566", "0.5929981", "0.5800156", "0.57924604", "0.5777147", "0.576848", "0.57565755", "0.5711231", "0.5659136", "0.5646116", "0.5619539", "0.5603344", "0.558677", "0.55860436", "0.557871", "0.5554842", "0.5527761", ...
0.0
-1
Deprecated. This field is now in the Job message.
def replace_job_id(self) -> pulumi.Output[str]: return pulumi.get(self, "replace_job_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deprecation(self, message, *args, **kws):\n self._log(DEPRECATION, message, args, **kws)", "def output_version_format(self) -> str:\n warnings.warn(\"\"\"Deprecated. This field is unused.\"\"\", DeprecationWarning)\n pulumi.log.warn(\"\"\"output_version_format is deprecated: Deprecated. This...
[ "0.56801516", "0.54051495", "0.5391637", "0.53909695", "0.536808", "0.53072983", "0.52952754", "0.5292736", "0.5238251", "0.51924264", "0.51309294", "0.5108305", "0.50925606", "0.5071826", "0.50704575", "0.5070299", "0.50577044", "0.5051912", "0.50370836", "0.50369096", "0.50...
0.0
-1
If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
def replaced_by_job_id(self) -> pulumi.Output[str]: return pulumi.get(self, "replaced_by_job_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def job_id(self) -> JobId:\r\n return self._job_id", "def job_id(self):\n return self._job_id", "def get_job_id(self):\n return {'job_id': self._job_id}", "def job_id(self):\n return self._properties.get(\"jobReference\", {}).get(\"jobId\")", "def id(self):\n return self....
[ "0.71049523", "0.70947933", "0.6890538", "0.6862732", "0.6678423", "0.6665369", "0.65098363", "0.64531416", "0.63759446", "0.6345479", "0.6259699", "0.61557627", "0.6056505", "0.6024026", "0.59918654", "0.5986989", "0.59682786", "0.59645814", "0.59451514", "0.5944166", "0.592...
0.6012819
14
The job's requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not alread...
def requested_state(self) -> pulumi.Output[str]: return pulumi.get(self, "requested_state")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def requested_state(self) -> Optional[pulumi.Input['JobRequestedState']]:\n return pulumi.get(self, \"requested_state\")", "def get_job_state(self, response) -> JobState:\n return response.state", "def update_job_state(self, job):", "def get_job_state(\n self,\n response: Union[Dict[Text,...
[ "0.7430257", "0.67379475", "0.6646138", "0.66151065", "0.64835334", "0.6398108", "0.6394142", "0.63558275", "0.63558275", "0.63558275", "0.63214463", "0.6263369", "0.6230354", "0.6069202", "0.60516673", "0.59702176", "0.59654015", "0.5936554", "0.59182644", "0.5892807", "0.57...
0.5727291
20
This field may ONLY be modified at runtime using the projects.jobs.update method to adjust job behavior. This field has no effect when specified at job creation.
def runtime_updatable_params(self) -> pulumi.Output['outputs.RuntimeUpdatableParamsResponse']: return pulumi.get(self, "runtime_updatable_params")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def job(self) -> str:\n return self._job", "def job(self) -> str:\n return self._job", "def default_job(self):\n job = Job()\n\n job['in_development'] = self.debug\n job['website_name'] = self.website_name\n job['website_url'] = self.website_url\n\n return job",...
[ "0.634014", "0.634014", "0.629458", "0.6258907", "0.6256588", "0.6256588", "0.6256588", "0.62564737", "0.6253271", "0.61539567", "0.61539567", "0.61303395", "0.6118515", "0.60568976", "0.6027298", "0.6027298", "0.6027298", "0.6027298", "0.5988451", "0.59389895", "0.58999753",...
0.0
-1
Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
def satisfies_pzs(self) -> pulumi.Output[bool]: return pulumi.get(self, "satisfies_pzs")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _short_response(self, request): # pylint: disable=no-self-use\n # @TODO: Should check reqeust header using custom header for setting override\n # @TODO: revisit this approach, still performance imppact in serialization of uneeded data\n return settings.POST_PUT_REQUEST_SHORT_RESPO...
[ "0.6106228", "0.5957624", "0.5869376", "0.58040005", "0.57359105", "0.57258403", "0.5716957", "0.5689878", "0.56170464", "0.55339265", "0.55339265", "0.5519983", "0.55197567", "0.5487518", "0.5473965", "0.5470731", "0.5468241", "0.54528844", "0.54442596", "0.54182965", "0.539...
0.0
-1
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
def stage_states(self) -> pulumi.Output[Sequence['outputs.ExecutionStageStateResponse']]: return pulumi.get(self, "stage_states")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def field(self):\n return None", "def data_flow(self, data_flow):\n\n self._data_flow = data_flow", "def on_put_field(self, ins, const, obj, value):\n pass", "def get_updated_field(self):\n return None", "def update_original_data(self):\n pass", "def __setitem__(self):\...
[ "0.6113193", "0.5738539", "0.5676029", "0.5647385", "0.5596178", "0.558965", "0.5578561", "0.54866284", "0.54866284", "0.54866284", "0.54664195", "0.54128766", "0.54101783", "0.54101783", "0.54039043", "0.5376897", "0.5373367", "0.5362991", "0.5361446", "0.53329325", "0.53119...
0.0
-1
The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time ...
def start_time(self) -> pulumi.Output[str]: return pulumi.get(self, "start_time")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getStartTime(self):\n assert not self.isWaitingToStart(), \"Too early to tell: %s\" % self\n return \"%s\" % self.__jobInfo.startTime", "def schedule_start_time(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"schedule_start_time\")", "def start_time(self) -> Optional[pulu...
[ "0.7418712", "0.6981307", "0.6650291", "0.6650291", "0.6650291", "0.6650291", "0.6650291", "0.6650291", "0.66399837", "0.66399837", "0.662977", "0.6625753", "0.66120976", "0.6527449", "0.64837384", "0.64837384", "0.6483078", "0.64598805", "0.6384474", "0.63685197", "0.6368519...
0.6134093
39
Exactly one of step or steps_location should be specified. The toplevel steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
def steps(self) -> pulumi.Output[Sequence['outputs.StepResponse']]: return pulumi.get(self, "steps")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def steps_location(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"steps_location\")", "def steps_location(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"steps_location\")", "def steps(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['StepArgs']]]]:\n return...
[ "0.6320734", "0.5934802", "0.5722983", "0.5319725", "0.52844375", "0.5256071", "0.5210607", "0.5193218", "0.51772237", "0.51633716", "0.51362526", "0.50834984", "0.5038596", "0.50076115", "0.49744266", "0.4958459", "0.49397016", "0.49397016", "0.49387985", "0.49295196", "0.49...
0.4882017
23
The Cloud Storage location where the steps are stored.
def steps_location(self) -> pulumi.Output[str]: return pulumi.get(self, "steps_location")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_storage_location(self):\n return self.s3_bucket", "def path(self):\n return self.storage.path(self.name)", "def cloud_storage_path(self) -> Optional['outputs.PreventionStoredInfoTypeDictionaryCloudStoragePath']:\n return pulumi.get(self, \"cloud_storage_path\")", "def get_process...
[ "0.6908497", "0.6835924", "0.67179155", "0.66689974", "0.666163", "0.66334754", "0.6624811", "0.64752436", "0.64280814", "0.64188623", "0.6265469", "0.6246632", "0.61931705", "0.6107471", "0.61046314", "0.60647", "0.6046146", "0.59550977", "0.5954496", "0.5946799", "0.5942164...
0.694346
0
The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
def transform_name_mapping(self) -> pulumi.Output[Mapping[str, str]]: return pulumi.get(self, "transform_name_mapping")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def transform_name_mapping(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:\n return pulumi.get(self, \"transform_name_mapping\")", "def TransformNames(self) -> _n_2_t_0[str]:", "def _get_new_substitutions_and_renames(self):\n\n from loopy.kernel.data import SubstitutionRule\n\n ...
[ "0.60125035", "0.598492", "0.58660036", "0.5762038", "0.5691895", "0.5690224", "0.5644165", "0.55620027", "0.55438006", "0.5532438", "0.5500579", "0.54685307", "0.5456325", "0.5445696", "0.5429243", "0.5415111", "0.53795516", "0.5372357", "0.53603464", "0.53334206", "0.532651...
0.66170824
0
The type of Cloud Dataflow job.
def type(self) -> pulumi.Output[str]: return pulumi.get(self, "type")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def job_type(self):\n return self._job_type", "def job_type(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"job_type\")", "def type(self) -> Optional[pulumi.Input['JobType']]:\n return pulumi.get(self, \"type\")", "def task_type(self) -> pulumi.Input[str]:\n return pulumi...
[ "0.77001727", "0.7477569", "0.72412294", "0.66095674", "0.65529525", "0.6434112", "0.6283899", "0.6283899", "0.6283899", "0.61224675", "0.6060817", "0.60286397", "0.60070115", "0.59896797", "0.59896797", "0.5930083", "0.59213054", "0.57997596", "0.57822764", "0.5779378", "0.5...
0.0
-1
The level of information requested in response.
def view(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "view")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def level(self):\n return self.__level", "def level(self):\n return self.__level", "def getLevel(self):\n return self.level", "def level(self):\n return self._level", "def level(self):\n return self._level", "def level(self):\n return self._level", "def level(self)...
[ "0.7016613", "0.7016613", "0.7011832", "0.7007352", "0.7007352", "0.7007352", "0.7007352", "0.6933997", "0.6920911", "0.68348813", "0.6659494", "0.66266656", "0.66266656", "0.6510596", "0.6503664", "0.643275", "0.64024997", "0.639444", "0.63800055", "0.6370509", "0.63690287",...
0.0
-1
Add formset inline instances loader
def __init__(self, *args, **kwargs): super(ModifyModelAdmin, self).__init__(*args, **kwargs) self.inline_instances_formset = [] self.formset_pages = {} for item in self.inlines_formsets_pages: self.formset_pages[item[1]] = {"title" : item[0], "instances" : []} fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_formset(self):\n result = generic_inlineformset_factory(\n self.inline_model, **self.get_factory_kwargs()\n )\n return result", "def get_form_class(self):\n\t\treturn inlineformset_factory(self.get_model(), self.get_related_model(), **self.get_formset_kwargs())", "def ge...
[ "0.66260713", "0.63760936", "0.61481315", "0.5835347", "0.57291687", "0.56802773", "0.55785143", "0.54507494", "0.5439991", "0.5376351", "0.5357723", "0.5156536", "0.5146585", "0.49914783", "0.4961563", "0.49360067", "0.49099067", "0.49069086", "0.48932287", "0.4868302", "0.4...
0.7296372
0
Determines the HttpResponse for the change_view stage.
def response_change_formset(self, request, obj, post_url_continue='../../%s/%s/'): opts = obj._meta pk_value = obj._get_pk_val() verbose_name = opts.verbose_name # msg = _('The %(name)s "%(obj)s" was added successfully.') % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def handle_success_request(self) -> HttpResponse:\n raise NotImplementedError", "def response_change(self, request, obj):\n if '_custom_action' in request.POST:\n pass\n return super().response_change(request, obj)", "def _view(self, request, **kwargs):\n return self._dis...
[ "0.61021966", "0.6068206", "0.60559535", "0.598677", "0.5955755", "0.5664682", "0.5664682", "0.5622617", "0.55539435", "0.5534052", "0.55150574", "0.54850817", "0.5462765", "0.54508346", "0.54448235", "0.5443326", "0.5418034", "0.54083353", "0.54004604", "0.5383267", "0.53794...
0.0
-1
Test that endpoint returns 401 for unauthenticated user deleting multiple messages
def test_delete_multiple_messages_returns_401(self): response = self.client.delete( self.url, json={"messageIds": [self.test_message_one.id, self.test_message_two.id]}, ) response_body = response.get_json() self.assertEqual(response.status_code, 401) self...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_users_unauthenticated(client: FlaskClient) -> None:\n # Unauthenticated users are not allowed to make the request\n response = delete_users(client)\n assert_error_response(response, HTTPStatus.UNAUTHORIZED)", "def test_unauthorized_delete_when_logged_out(self):\n\n u = User(userna...
[ "0.75231844", "0.74979323", "0.7413558", "0.7349542", "0.7341222", "0.72604936", "0.7097263", "0.70646566", "0.69870275", "0.6958564", "0.69475675", "0.68969893", "0.6896328", "0.6882477", "0.6880044", "0.6878962", "0.6876554", "0.6853114", "0.6849189", "0.6784512", "0.677897...
0.82270634
0
Test that endpoint returns 200 for authenticated user deleting multiple messages
def test_delete_multiple_messages_returns_200(self): response = self.client.delete( self.url, headers={"Authorization": self.test_user_token}, json={"messageIds": [self.test_message_one.id, self.test_message_two.id]}, ) response_body = response.get_json() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_multiple_messages_returns_401(self):\n response = self.client.delete(\n self.url,\n json={\"messageIds\": [self.test_message_one.id, self.test_message_two.id]},\n )\n response_body = response.get_json()\n\n self.assertEqual(response.status_code, 401...
[ "0.7839262", "0.7688717", "0.7682436", "0.7589093", "0.75635314", "0.74059695", "0.7367848", "0.7347394", "0.72111654", "0.71119", "0.70087546", "0.6998689", "0.6987811", "0.698304", "0.69719446", "0.69546986", "0.69293845", "0.6920774", "0.6894925", "0.6893747", "0.6876107",...
0.83033764
0
We generate variables and observation
def generate_stat(sample_size, sparsity = 0, amplitude = 0, sigma = 1): var = generate_variable(sample_size, sparsity, amplitude, sigma) y_obs = var[0] """ f is equal to -X(t,theta) and we will minimize f (max. X) """ def f(x): """ f(x)=-X(t,theta) wh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_observation(self):", "def create_observation(self):", "def maker(N,n_vars,p):\n x = [] #an empty list to hold the data\n y = np.zeros(N) #an array to hold the dependent variable\n b = [] #an empty list to hold the true bs\n i = 1\n while i <= n_vars: #loop over the variabl...
[ "0.6311524", "0.6311524", "0.6062502", "0.6059469", "0.59944606", "0.5973188", "0.5918213", "0.59135824", "0.5903378", "0.5897189", "0.58743906", "0.58160293", "0.57273686", "0.56925243", "0.56638473", "0.5649984", "0.5633538", "0.55997175", "0.55493635", "0.55398226", "0.553...
0.0
-1
f(x)=X(t,theta) where x[0]=t and x[1]=theta
def f(x): res = np.real(np.exp(-1j*x[1])*\ sum(y_obs[k+sample_size]*np.exp(1j*k*x[0]) \ for k in range(-sample_size,sample_size+1))) res = -res/np.sqrt(2*sample_size+1) return res
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f(self, x, theta):\n raise NotImplementedError(\n \"f has not been implemented for this Experiment\")", "def f(t,y):\n return np.array([lam*y[0] + (1.0-lam)*np.cos(t) - (1.0+lam)*np.sin(t)])", "def f(t,y):\n return np.array([lam*y[0] + (1.0-lam)*np.cos(t) - (1.0+lam)*np.sin(t)])...
[ "0.7223295", "0.7146107", "0.70146334", "0.6934016", "0.68719614", "0.6816787", "0.6770111", "0.6710269", "0.6633936", "0.66013426", "0.6594006", "0.6585982", "0.65399873", "0.64203095", "0.6378666", "0.63629097", "0.6352943", "0.6331905", "0.632844", "0.6324895", "0.6317529"...
0.0
-1
f(x)=X(t,theta) where x[0]=t and x[1]=theta
def f(x): res = np.real(np.exp(-1j*x[1])*sum(y_obs[k+sample_size]*np.exp(1j*k*x[0]) \ for k in range(-sample_size,sample_size+1))) res = -res/np.sqrt(2*sample_size+1) return res
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f(self, x, theta):\n raise NotImplementedError(\n \"f has not been implemented for this Experiment\")", "def f(t,y):\n return np.array([lam*y[0] + (1.0-lam)*np.cos(t) - (1.0+lam)*np.sin(t)])", "def f(t,y):\n return np.array([lam*y[0] + (1.0-lam)*np.cos(t) - (1.0+lam)*np.sin(t)])...
[ "0.7224967", "0.71444196", "0.7013122", "0.69325763", "0.6870359", "0.6815597", "0.6768622", "0.67092055", "0.6635796", "0.6600861", "0.6595103", "0.65851885", "0.6542399", "0.64186764", "0.6377655", "0.63629097", "0.63526654", "0.6331997", "0.63293666", "0.63244164", "0.6318...
0.0
-1
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def add_header(request): request.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" request.headers["Pragma"] = "no-cache" request.headers["Expires"] = "0" request.headers['Cache-Control'] = 'public, max-age=0' return request
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, max-age=60'\n return response", "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, m...
[ "0.82231", "0.8222272", "0.8222272", "0.8222272", "0.8222272", "0.8195367", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.81630635", "0.8...
0.7159241
39
add_clients returns a function for the user to run in order to add more clients
def add_clients(setup_bootstrap, setup_clients): def _add_clients(num_of_clients, version=None, version_separator=''): # TODO make a generic function that _add_clients can use """ adds a clients to namespace :param num_of_clients: int, number of replicas :param version: str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_clients(client_name): # Crear nuevo Cliente\n global clients\n\n if client_name not in clients:\n clients.append(client_name)\n else:\n print('The client name is alredy in the client\\'s list')", "def __add_clients__(self, r, new_clients):\r\n if set(r.clients).intersect...
[ "0.7109332", "0.7027862", "0.69710255", "0.683135", "0.66901344", "0.6618992", "0.6525792", "0.64655155", "0.6347548", "0.62622136", "0.6242786", "0.6144813", "0.6038637", "0.587628", "0.58575374", "0.5739158", "0.57272494", "0.5715456", "0.5671769", "0.5630816", "0.5607693",...
0.68609464
3
adds a clients to namespace
def _add_clients(num_of_clients, version=None, version_separator=''): # TODO make a generic function that _add_clients can use if version and not isinstance(version, str): raise ValueError("version must be type string") if not setup_bootstrap.pods: raise Exception("Could...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def register(self, client):\n self.clients.append(client)", "def add_clients(setup_bootstrap, setup_clients):\n\n def _add_clients(num_of_clients, version=None, version_separator=''):\n # TODO make a generic function that _add_clients can use\n \"\"\"\n adds a clients to namespace\...
[ "0.6823358", "0.6711445", "0.6608318", "0.6525739", "0.6425312", "0.6394772", "0.6356645", "0.63536286", "0.6203327", "0.59656054", "0.59462774", "0.59239805", "0.58910304", "0.58289474", "0.57941926", "0.57644624", "0.5762179", "0.5752324", "0.5735831", "0.5735694", "0.57045...
0.60844535
9
sends a protocol message to a random node and asserts its propagation
def send_msgs(setup_clients, api, headers, total_expected_gossip, msg_size=10000, prop_sleep_time=20, num_of_msg=100, expected_ret="{'status': {}}", msg_field="data"): # in our case each pod contains one node pods_num = len(setup_clients.pods) print("Sending {0} gossip messages".format(num_of_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_send_network(self) :\n symbol = 'A' \n oProtocol = Protocol(symbol,mode=\"client\",debug=self.debug)\n command = \"N200\"\n message = oProtocol.send(command)\n #if message['status'] is False :\n #print(\"\\n*** ERROR : test_send_network : {}\".format(message['notify']...
[ "0.65080404", "0.6431976", "0.6112131", "0.59723216", "0.5905465", "0.5905465", "0.5905465", "0.57679355", "0.57674754", "0.57424825", "0.57197684", "0.5693026", "0.5678149", "0.56481993", "0.56468964", "0.564021", "0.56110775", "0.5609154", "0.5573632", "0.5568907", "0.55676...
0.0
-1
Return `True` as we don't use model level perms.
def has_permission(self, request, view): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_model_perms(self, request):\n return {'add': False, 'change': False, 'delete': False, }", "def _is_admin_only(self, pvm: PermissionView) -> bool:\n\n if (\n pvm.view_menu.name in self.READ_ONLY_MODEL_VIEWS\n and pvm.permission.name not in self.READ_ONLY_PERMISSION\n ...
[ "0.70082897", "0.69775355", "0.6856922", "0.683917", "0.6752787", "0.66765624", "0.6621211", "0.6620923", "0.66089404", "0.65869", "0.65841883", "0.65841883", "0.6580557", "0.6547679", "0.65472275", "0.6534223", "0.651912", "0.64546007", "0.64546007", "0.64546007", "0.6430724...
0.6192341
64
Returns whether process pid is alive.
def is_proc_alive(pid): return os.path.isdir("/proc/%i" % pid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_alive(pid):\n pid = int(pid)\n return psutil.pid_exists(pid)", "def alive(self):\n return self._process.is_alive()", "def _is_alive(self, pid):\n process = next(x for x in self._processes if x.pid == pid)\n return process.is_alive()", "def proc_is_alive(pid):\n handl...
[ "0.8721374", "0.837227", "0.83515567", "0.8306635", "0.8268812", "0.81595916", "0.80795187", "0.8062637", "0.8032645", "0.7924293", "0.7813374", "0.77419215", "0.7709115", "0.7662438", "0.761053", "0.74093366", "0.7384168", "0.73721576", "0.73353916", "0.73214", "0.7270884", ...
0.794048
9
Joins an argv list into a single string, quoting args that need quoting.
def shlex_join(argv): def quote(arg): if arg.find(" ") >= 0: return '"%s"' % arg else: return arg return " ".join([quote(arg) for arg in argv])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _joinArgv(argv):\n cmdstr = \"\"\n for arg in argv:\n if ' ' in arg:\n cmdstr += '\"%s\"' % _escapeArg(arg)\n else:\n cmdstr += _escapeArg(arg)\n cmdstr += ' '\n if cmdstr.endswith(' '): cmdstr = cmdstr[:-1] # strip trailing space\n return cmdstr", "def...
[ "0.80942905", "0.71013045", "0.6978407", "0.6849811", "0.668676", "0.6630706", "0.65997356", "0.6405465", "0.63573974", "0.6209794", "0.6128489", "0.6078045", "0.6042838", "0.60243076", "0.5983268", "0.5918232", "0.59007907", "0.58857954", "0.58857954", "0.58857954", "0.58613...
0.80572695
1
Full cmdline is program AND command line arguments
def get_pid_full_cmdline_as_array(pid): try: f = open("/proc/%i/cmdline" % pid,'r') except IOError: raise Exception("Could not open /proc/%i/cmdline, does not exist" % pid); try: tmp = f.read() f.close() except IOError, ex: print ex raise Exception("Could not read fro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def query_cmdline():", "def getCommandLine():\n import sys, os\n cmdline = os.path.abspath(sys.argv[0])\n for elem in sys.argv[1:]:\n cmdline += ' ' + ecohydrolib.util.getAbsolutePathOfItem(elem)\n return cmdline", "def handle_cmdline():\n\n cmdline = ArgumentParser(in...
[ "0.77441347", "0.72651404", "0.7072012", "0.7040977", "0.70335555", "0.70169556", "0.6945536", "0.6885544", "0.6860919", "0.68607545", "0.68432486", "0.6839958", "0.6830934", "0.6829403", "0.681709", "0.6812498", "0.67599195", "0.6724278", "0.67035705", "0.66780585", "0.66208...
0.0
-1
Creating and returning the engine with sqlite database
def connecting_database(): try: engine = create_engine( 'sqlite:///{}{}'.format(path, dbfile), echo=False ) return engine except Exception as error: print(">> Something wrong with the system!") print(f">> Error: {error}")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_engine(self):\n return create_engine('sqlite:///' + self.database_name, echo=True)", "def get_database_engine() -> Engine:\n return engine", "def create_sqlite_engine( echo=False ):\n conn = 'sqlite:///:memory:'\n print( \"creating connection: %s \" % conn )\n return create_engine...
[ "0.8074888", "0.77335346", "0.76205975", "0.75327307", "0.74853265", "0.7470434", "0.74289703", "0.7357917", "0.728318", "0.72281843", "0.72087586", "0.7193741", "0.7183512", "0.7150624", "0.71344805", "0.711309", "0.711309", "0.711309", "0.711309", "0.711309", "0.71069825", ...
0.7185637
12
Retunrs the SQL command to create the table into the database
def sql_create_big_table(): return """ SELECT m.tube_assembly_id as 'tube_assembly_id' , m.quantity_1 as 'quantity_component' , c.component_id , c.component_type_id , c.type as component_type , c.connection_type_id , c.outside_shape ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_table(create_table_sql):\n conn = DbUtil.connection\n try:\n c = conn.cursor()\n c.execute(create_table_sql)\n except Error as e:\n print(e)", "def create_table(self, create_table_sql):\n connection = self.__create_connection()\n try:...
[ "0.78400934", "0.7801156", "0.7700567", "0.7617473", "0.76122487", "0.7475605", "0.74405575", "0.7382446", "0.73535556", "0.73399603", "0.73399603", "0.73399603", "0.73235804", "0.7319123", "0.72795236", "0.72786224", "0.72758657", "0.727268", "0.7265197", "0.7265197", "0.726...
0.0
-1
Saving all the data into the sqlite database
def loading_data_to_sqlite(list_files): engine = connecting_database() if engine is None: return False print() print("-".rjust(60, "-")) print("Loading data".center(60)) print("-".rjust(60, "-")) for filename in list_files: name, ext = os.path.splitext(filename) if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def save_db(self) -> None:", "def save(self):\n self.db.commit()", "def save(self):\n self.__db.commit()", "def save_in_db(self):\n self.sql_database.table_name = self.table_db\n self.sql_database.db_name = self.db\n if self.sql_database.insert_item(text_path=self.path, wor...
[ "0.82423425", "0.7762317", "0.7626313", "0.7551094", "0.7508759", "0.7495127", "0.7313", "0.71862656", "0.70625937", "0.704718", "0.704107", "0.70240384", "0.69906276", "0.6972567", "0.6949346", "0.69112736", "0.6894829", "0.6871905", "0.68644774", "0.6830917", "0.68193144", ...
0.0
-1
Creating the big table After this table will be moved to Google Cloud Storage
def creating_big_table(): engine = connecting_database() if engine is None: return False sql = sql_create_big_table() engine = connecting_database() print(">> Creating the table: bt_challenge_boa") df = pd.read_sql(sql=sql, con=engine) df.to_sql("bt_challenge_boa", con=engine, index...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upload_table(tablebogus, n, append, bogus):\n # bucket_name = \"your-bucket-name\"\n # source_file_name = \"local/path/to/file\"\n # destination_blob_name = \"storage-object-name\"\n fake = Faker()\n storage_client = storage.Client()\n bucket = storage_client.bucket(\"brick-layer-testing\")\n...
[ "0.67725384", "0.6621786", "0.6464914", "0.6455408", "0.64249426", "0.6403509", "0.6387754", "0.63571674", "0.63119584", "0.624686", "0.6193783", "0.61763245", "0.61691207", "0.6148125", "0.61470604", "0.6115125", "0.6075587", "0.60638285", "0.5987457", "0.59645057", "0.59637...
0.6653548
1
Serve the index HTML
def index(): return render_template('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index(self):\n single = os.path.join(\n os.path.dirname(os.path.abspath(__file__)),\n 'index.html')\n return serve_file(single)", "def index():\n return render_template('index.html'), 200", "def index():\n\n return render_template(\"index.html\"), 200", "def inde...
[ "0.8685354", "0.85523725", "0.84890985", "0.8468328", "0.8451884", "0.82966554", "0.8292779", "0.82886124", "0.82686514", "0.82686514", "0.82643247", "0.82445365", "0.82445365", "0.8232638", "0.8232638", "0.8232638", "0.8232638", "0.8232638", "0.8232638", "0.8232638", "0.8232...
0.82082915
53
Returns an empty list, whatever the arguments.
def empty_list(*args): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __noop_list(self, *args, **kwargs):\n return []", "def list(self, *args):\n return []", "def GetMissingArguments(self):\n return []", "def arglist(self) -> List:\n return self.argv[1:]", "def get_list_cmd_args(self):\r\n return self.get_args(OSPL.list)", "def __arg_list(sel...
[ "0.7838335", "0.77015543", "0.72964877", "0.69760287", "0.6633516", "0.6493505", "0.6481514", "0.64797825", "0.6429625", "0.6421737", "0.64174294", "0.64174294", "0.63808507", "0.63161623", "0.6307548", "0.6299938", "0.6299938", "0.62435156", "0.6222717", "0.62154114", "0.617...
0.82005113
0
Load image and bounding boxes info from XML file in the PASCAL VOC format.
def load_annotation_at_index(self, index): filename = os.path.join(self._data_path, 'Annotations', index + '.xml') tree = ET.parse(filename) objs = tree.findall('object') if not self.cfg['use_diff']: # Exclude the samples labeled as difficult non_diff_objs = [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def process_cvat_xml(xml_file, image_dir, output_dir):\n KNOWN_TAGS = {'box', 'image', 'attribute'}\n #output_dir = os.path.join(output_dir, \"Annotations\")\n os.makedirs(output_dir, exist_ok=True)\n cvat_xml = etree.parse(xml_file)\n\n basename = os.path.splitext( os.path.basename( xml_file ) )[0]...
[ "0.64185506", "0.64072245", "0.6383947", "0.6335307", "0.6137789", "0.6084306", "0.60732746", "0.58888215", "0.5885279", "0.5813228", "0.5788648", "0.5777899", "0.5777326", "0.5775744", "0.5753106", "0.5725791", "0.57067066", "0.5697819", "0.5692142", "0.56900734", "0.5652528...
0.536795
45
Initialize an instance of the Add Incident Assistant.
def __init__(self, revision_id, dao, modulebook): self._dao = dao self._revision_id = revision_id self._modulebook = modulebook self.assistant = gtk.Assistant() self.assistant.set_title(_(u"RTK Add Incident Assistant")) self.assistant.connect('apply', self._add_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self):\n\n\t\tself.account_sid = os.environ['TWILIO_ACCOUNT_SID']\n\t\tself.auth_token = os.environ['TWILIO_AUTH_TOKEN']\n\t\tself.twilio_phone_number = os.environ['TWILIO_PHONE_NUMBER']\n\t\tself.client = Client(self.account_sid, self.auth_token)\n\n\t\tself.call_domain = 'http://twimlets.com/echo?Tw...
[ "0.62664074", "0.61931807", "0.59613264", "0.5919651", "0.5830523", "0.5825613", "0.57815194", "0.5769727", "0.5748982", "0.5728173", "0.56761473", "0.5667409", "0.5657262", "0.56103927", "0.5592177", "0.55782187", "0.55719495", "0.5535045", "0.5513705", "0.5500099", "0.54978...
0.5674191
11
Method to check if all the required data is filled in before allowing the assistant to continue.
def _check_ready(self, _widget, __event=None, page=0): # WARNING: Refactor _check_ready; current McCabe Complexity metric = 12. if self.cmbSoftware.get_active() > 0: self.cmbDetectMethod.set_sensitive(True) self.txtTestProcedure.set_sensitive(True) self.txtTestCase.set_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _check_for_incomplete_input(self):\n pass", "def _check_inputs(self):\n\n self._check_resident_prefs()\n self._check_hospital_prefs()", "def check_data(self):\n\n for i in range(len(self.full_ed_lines)):\n if self.full_ed_lines[i].text() != \"\":\n if s...
[ "0.7259692", "0.7162835", "0.6928247", "0.68408537", "0.6703756", "0.66367453", "0.6599484", "0.65531695", "0.6513291", "0.6476862", "0.6434154", "0.6395775", "0.63791525", "0.63786554", "0.63325727", "0.6332095", "0.6325914", "0.6317679", "0.63159937", "0.6294219", "0.628359...
0.0
-1
Method to add the new incident to the open RTK Program database.
def _add_incident(self, __assistant): _report_date = int(datetime.strptime(self.txtIncidentDate.get_text(), '%Y-%m-%d').toordinal()) # Retrieve the hardware ID. _model = self.cmbHardware.get_model() _row = self.cmbHardware.get_active_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_an_incident(self):\n sql = \"\"\"INSERT INTO incidences (createdOn,\\\n createdBy,\\\n type,\\\n location,\\\n status,\\\n ...
[ "0.59260803", "0.58589655", "0.578821", "0.56691766", "0.5646958", "0.5646958", "0.5559159", "0.5488648", "0.54300725", "0.5410647", "0.5385928", "0.5377894", "0.5349379", "0.5349379", "0.53061616", "0.52628464", "0.525496", "0.52493703", "0.52407235", "0.5236373", "0.5236131...
0.6848447
0
Method to destroy the gtk.Assistant() when the 'Cancel' button is pressed.
def _cancel(self, __button): self.assistant.destroy() return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _cancel(self, __button):\r\n\r\n self.assistant.destroy()", "def _cancel(self, __button):\r\n\r\n self.assistant.destroy()", "def _cancel(self, __button):\r\n\r\n self.destroy()", "def _cancel(self, __button=None):\r\n\r\n self.destroy()", "def on_cancel(self, _):\n s...
[ "0.8206024", "0.8206024", "0.778344", "0.7773188", "0.7699403", "0.7565627", "0.7277799", "0.7239998", "0.7185877", "0.71814096", "0.71814096", "0.71814096", "0.71814096", "0.7146208", "0.7134025", "0.7118102", "0.7106568", "0.70976335", "0.70909566", "0.702251", "0.69537306"...
0.79243636
3
Initialize an instance of the Add Component Assistant.
def __init__(self, revision_id, incident_id, dao, controller, workbook): self._incident_id = incident_id self._controller = controller self._workbook = workbook self.assistant = gtk.Assistant() self.assistant.set_title(_(u"RTK Add Affected Component Assistant")) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add(self, component) -> None:\n pass", "def __init__(self, *components) -> None:\n self.__components = list(components)", "def __init__(self, component):\r\n self.component = component", "def __init__(self, component):\r\n self.component = component", "def setup_component(se...
[ "0.6842442", "0.65666795", "0.65254456", "0.65254456", "0.6157317", "0.61137736", "0.60052395", "0.600137", "0.59475315", "0.5924984", "0.59012455", "0.58983666", "0.58462507", "0.57756186", "0.5765099", "0.574085", "0.57292074", "0.57070357", "0.5670079", "0.5640934", "0.563...
0.5394974
64
Method to check if all the required data is filled in before allowing the assistant to continue.
def _check_ready(self, _widget, __event=None, __page=0): if self.cmbHardware.get_active() > 0: self.assistant.set_page_complete(self.fxdPageGeneral, True) else: self.assistant.set_page_complete(self.fxdPageGeneral, False) return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _check_for_incomplete_input(self):\n pass", "def _check_inputs(self):\n\n self._check_resident_prefs()\n self._check_hospital_prefs()", "def check_data(self):\n\n for i in range(len(self.full_ed_lines)):\n if self.full_ed_lines[i].text() != \"\":\n if s...
[ "0.7259692", "0.7162835", "0.6928247", "0.68408537", "0.6703756", "0.66367453", "0.6599484", "0.65531695", "0.6513291", "0.6476862", "0.6434154", "0.6395775", "0.63791525", "0.63786554", "0.63325727", "0.6332095", "0.6325914", "0.6317679", "0.63159937", "0.6294219", "0.628359...
0.0
-1
Method to add the new incident to the open RTK Program database.
def _add_component(self, __assistant): # Retrieve the hardware ID. _model = self.cmbHardware.get_model() _row = self.cmbHardware.get_active_iter() _hardware_id = int(_model.get_value(_row, 1)) self._controller.add_component(self._incident_id, _hardware_id) self....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _add_incident(self, __assistant):\r\n\r\n _report_date = int(datetime.strptime(self.txtIncidentDate.get_text(),\r\n '%Y-%m-%d').toordinal())\r\n\r\n # Retrieve the hardware ID.\r\n _model = self.cmbHardware.get_model()\r\n _row = self.cmbH...
[ "0.6848447", "0.59260803", "0.58589655", "0.578821", "0.56691766", "0.5646958", "0.5646958", "0.5559159", "0.5488648", "0.54300725", "0.5410647", "0.5385928", "0.5377894", "0.5349379", "0.5349379", "0.53061616", "0.52628464", "0.525496", "0.52493703", "0.52407235", "0.5236373...
0.48439425
92
Method to destroy the gtk.Assistant() when the 'Cancel' button is pressed.
def _cancel(self, __button): self.assistant.destroy() return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _cancel(self, __button):\r\n\r\n self.assistant.destroy()", "def _cancel(self, __button):\r\n\r\n self.assistant.destroy()", "def _cancel(self, __button):\r\n\r\n self.destroy()", "def _cancel(self, __button=None):\r\n\r\n self.destroy()", "def on_cancel(self, _):\n s...
[ "0.8206024", "0.8206024", "0.778344", "0.7773188", "0.7699403", "0.7565627", "0.7277799", "0.7239998", "0.7185877", "0.71814096", "0.71814096", "0.71814096", "0.71814096", "0.7146208", "0.7134025", "0.7118102", "0.7106568", "0.70976335", "0.70909566", "0.702251", "0.69537306"...
0.79243636
2
Method to initialize the Program Incident Filter Assistant.
def __init__(self, revision_id, modulebook): # WARNING: Refactor __init__; current McCabe Complexity metric = 13. self._revision_id = revision_id self._modulebook = modulebook self.assistant = gtk.Assistant() self.assistant.set_title(_(u"RTK Filter Incidents Assistant")) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def init(self, *args):\n return _ida_hexrays.udc_filter_t_init(self, *args)", "def initialize_filter(self):\n shape = self.filter_size + (self.input_shape[-1], self.channels)\n self.filter = self.filter_initializer(shape)", "def __init__(self):\n self._read_calibration_data()\n ...
[ "0.6365995", "0.6341718", "0.6110792", "0.6088293", "0.6075181", "0.6053716", "0.6053716", "0.60280484", "0.5927396", "0.59112734", "0.58330244", "0.5771437", "0.57713735", "0.5745445", "0.57439566", "0.5733717", "0.5713939", "0.5713771", "0.5701123", "0.5685737", "0.56423146...
0.5434471
53
Method to create the SQL query for filtering the Program Incidents.
def _filter(self, __button): # WARNING: Refactor _filter; current McCabe Complexity metric = 54. _criteria = [] _inputs = [] _compound = [] # Read the user inputs for the different fields that can be used to # filter with. _criteria.append(self.cmbCriteriaID.get_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _getQuery(self, request):\n q = Conference.query()\n inequality_filter, filters = self._formatFilters(request.filters)\n\n # If exists, sort on inequality filter first\n if not inequality_filter:\n q = q.order(Conference.name)\n else:\n q = q.order(ndb.GenericProperty(inequality_fi...
[ "0.6393282", "0.63626957", "0.6004148", "0.568005", "0.54838467", "0.5413351", "0.5384056", "0.5347841", "0.5329357", "0.5329357", "0.5312264", "0.52798706", "0.5233479", "0.52263945", "0.52014256", "0.5188998", "0.51695865", "0.51594746", "0.51465863", "0.51345843", "0.51238...
0.0
-1
Method to destroy the gtk.Assistant when the 'Cancel' button is pressed.
def _cancel(self, __button): self.assistant.destroy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _cancel(self, __button):\r\n\r\n self.assistant.destroy()\r\n\r\n return True", "def _cancel(self, __button):\r\n\r\n self.assistant.destroy()\r\n\r\n return True", "def _cancel(self, __button):\r\n\r\n self.destroy()", "def _cancel(self, __button=None):\r\n\r\n ...
[ "0.79745674", "0.79745674", "0.7797542", "0.7773751", "0.77270705", "0.762822", "0.7276607", "0.72276616", "0.7202208", "0.71768755", "0.71768755", "0.71768755", "0.71768755", "0.716087", "0.71498334", "0.714773", "0.71330816", "0.7128282", "0.7094293", "0.700143", "0.6909631...
0.82585096
0
Method to initialize an instance of the Import Incident Assistant.
def __init__(self, revision_id, dao, modulebook): self._dao = dao self._revision_id = revision_id self._modulebook = modulebook self._import_log = modulebook.mdcRTK.import_log gtk.Assistant.__init__(self) self.set_title(_(u"RTK Import Incidents Assistant")) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self):\n\n\t\tself.Helpers = Helpers(\"TassAI\", False)\n\n\t\tself.qs = 16\n\t\tself.context = InferenceContext([self.Helpers.confs[\"iotJumpWay\"][\"MQTT\"][\"TassAI\"][\"runas\"], self.Helpers.confs[\"iotJumpWay\"][\"MQTT\"][\"TassAI\"][\"runas\"], self.Helpers.confs[\"iotJumpWay\"][\"MQTT\"][\"Tas...
[ "0.67038876", "0.62036395", "0.6134543", "0.60896754", "0.60649353", "0.59896797", "0.59067553", "0.5900409", "0.58787227", "0.587706", "0.58192855", "0.58047837", "0.58032334", "0.5793384", "0.57758623", "0.5775407", "0.5771703", "0.577159", "0.57657343", "0.57593447", "0.57...
0.0
-1