query
stringlengths
10
2k
document
stringlengths
20
51.2k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Sets the log level. Use one of the 'LOG_LEVEL_' constants to specify the log param int value The new log level setting. see LOG_LEVEL_NONE see LOG_LEVEL_FATAL see LOG_LEVEL_WARN see LOG_LEVEL_INFO see LOG_LEVEL_DEBUG see LOG_LEVEL_PERFORMANCE see LOG_LEVEL_DEFAULT see getLog()
def setLogLevel(self,value): self.PDFreactorConfiguration.in1["logLevel"] = value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_log_level(self, level):\n if level == 'info':\n level = logging.INFO\n if level == 'debug':\n level = logging.DEBUG\n if level == 'error':\n level = logging.ERROR\n self._log.setLevel(level)", "def set_logging_level(self, level):\n if st...
[ "0.826551", "0.80188876", "0.80153203", "0.7953906", "0.7885539", "0.7835644", "0.7817704", "0.7774498", "0.7760483", "0.774979", "0.77312744", "0.7682172", "0.75683737", "0.75204396", "0.75045544", "0.7473038", "0.7423657", "0.741336", "0.7399746", "0.73896575", "0.7256616",...
0.7374321
20
Whether an exception should be thrown when no legal full license key is set. This allows to programmatically ensure that documents are not altered due to license issues. The default value is False.
def setThrowLicenseExceptions(self,value): self.PDFreactorConfiguration.in1["throwLicenseExceptions"] = value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isLicensed(self):\n\t\treturn True", "def isLicensed(self):\r\n return True", "def isLicensed(self):\r\n return True", "def isLicensed(self):\r\n return True", "def isLicensed(self):\r\n return True", "def isLicensed(self):\r\n return True", "def isLicensed(self):...
[ "0.65703166", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.6557038", "0.65515816", "0.65515816", "0.65515816", "0.65515816", "0.65515816...
0.5809067
74
Sets the HTTPS Mode. In closed environment lenient can be the preferred setting to avoid HTTPS issues that are not security critical. The default value is 'HTTPS_MODE_STRICT'. param int httpsMode The HTTPS mode. see HTTPS_MODE_STRICT see HTTPS_MODE_LENIENT
def setHTTPSMode(self, httpsMode): self.PDFreactorConfiguration.in1["httpsMode"] = httpsMode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sslmode(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"sslmode\")", "def tcpssl_server_mode(self, tcpssl_server_mode):\n\n self._tcpssl_server_mode = tcpssl_server_mode", "def set_ssl(self):\n for params in self.config.get_ssl_params():\n self.connection.t...
[ "0.63647425", "0.61101925", "0.6031142", "0.5995093", "0.59256", "0.59226316", "0.59226316", "0.59226316", "0.5839034", "0.57653224", "0.57460445", "0.5689419", "0.5626305", "0.5608766", "0.5605625", "0.55995244", "0.55717844", "0.55665886", "0.548955", "0.5427947", "0.542560...
0.86208934
0
Sets the value of the author field of the PDF document. param string value The author of the document.
def setAuthor(self,value): self.PDFreactorConfiguration.in1["author"] = value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def author(self, value):\n self._set_attr('author', value)", "def set_author (self, author):\n self.author = author", "def set_author(self, author):\n self.author = author\n self.opf.author = author", "def addSetAuthor(self,val):\n self.bookAuthor = val", "def author(self...
[ "0.83341724", "0.76895624", "0.7654153", "0.75258434", "0.74422216", "0.7374714", "0.7251489", "0.7251489", "0.70381683", "0.68357754", "0.66660327", "0.6604101", "0.6599388", "0.6425638", "0.61690056", "0.6140555", "0.6007349", "0.59687483", "0.59552175", "0.5899214", "0.588...
0.87134945
0
Sets the value of creator field of the PDF document. param string value The creator of the document.
def setCreator(self,value): self.PDFreactorConfiguration.in1["creator"] = value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def creator(self, creator):\n self._creator = creator", "def creator(self, creator):\n\n self._creator = creator", "def creator(self, creator):\n\n self._creator = creator", "def creator(self, creator):\n\n self._creator = creator", "def creator(self, creator):\n if creat...
[ "0.69161314", "0.67854923", "0.67854923", "0.67854923", "0.67166805", "0.6623994", "0.6534544", "0.6234497", "0.5965188", "0.5965188", "0.5794264", "0.56759524", "0.56410605", "0.56410605", "0.56212723", "0.56212723", "0.56212723", "0.56212723", "0.5557668", "0.55307966", "0....
0.8397492
0
Enables or disables full compression of the PDF document. The default value is False. param boolean value True to enable full compression of the document and False to disable full compression.
def setFullCompression(self,value): self.PDFreactorConfiguration.in1["fullCompression"] = value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setPDFMode(compressed=1, buffer=0):\n if compressed:\n dislin.pdfmod('ON','COMPRESSION')\n else:\n dislin.pdfmod('OFF', 'COMPRESSION')\n\n if buffer:\n dislin.pdfmod('ON', 'BUFFER')\n else:\n dislin.pdfmod('OFF', 'BUFFER')", "def setDocCompressMode(self, mode):\n ...
[ "0.69447815", "0.6046253", "0.60315406", "0.6030397", "0.5566424", "0.55605364", "0.5479978", "0.54468", "0.54015434", "0.5310745", "0.52459216", "0.52119976", "0.5147551", "0.50862664", "0.50148463", "0.48828125", "0.48388603", "0.48261502", "0.48009652", "0.46881634", "0.46...
0.7110505
0
Sets the owner password of the PDF document. The default value is None param string value The owner password. see setEncryption(int) see setUserPassword(string)
def setOwnerPassword(self,value): self.PDFreactorConfiguration.in1["ownerPassword"] = value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_password(input_file, user_pass, owner_pass):\r\n # The output encrypted file is name _enc, original file is kept\r\n path, filename = os.path.split(input_file)\r\n newfilename=filename.replace(\".pdf\",\"_enc.pdf\")\r\n output_file = os.path.join(path, newfilename)\r\n \r\n output = PyPDF2.P...
[ "0.72854644", "0.71351284", "0.6433007", "0.63588905", "0.5938297", "0.5880958", "0.58314455", "0.5815875", "0.5788493", "0.5732714", "0.5698368", "0.56941164", "0.56876063", "0.56392723", "0.56392723", "0.56392723", "0.56392723", "0.5560276", "0.547272", "0.54607123", "0.543...
0.82576096
0
Enables or disables the 'assembly' restriction in the PDF document. The default value is False. param boolean value Use True to enable 'assembly' in the document and False to disable 'assembly'. see setEncryption(int)
def setAllowAssembly(self,value): self.PDFreactorConfiguration.in1["allowAssembly"] = value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_protection_enabled(self, c, state):\n self.enable_protection = state", "def setPDFMode(compressed=1, buffer=0):\n if compressed:\n dislin.pdfmod('ON','COMPRESSION')\n else:\n dislin.pdfmod('OFF', 'COMPRESSION')\n\n if buffer:\n dislin.pdfmod('ON', 'BUFFER')\n else:...
[ "0.53851837", "0.53361225", "0.5106816", "0.49921164", "0.49737853", "0.4798251", "0.47172526", "0.4687788", "0.4687788", "0.46732116", "0.46071568", "0.45907682", "0.45449445", "0.45355886", "0.45216018", "0.45055553", "0.4487483", "0.448086", "0.44755203", "0.44578817", "0....
0.6955806
0
Returns the error messages generated during rendering. return string The message string.
def getError(self): return self.resp["error"]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def display_errors(self):\r\n\r\n def format_name(field_name):\r\n \"\"\"Formats field names for error display\"\"\"\r\n if field_name == \"celebration_tier\":\r\n return \"{wLargesse{n\"\r\n return \"{w%s{n\" % field_name.capitalize()\r\n\r\n msg = \"P...
[ "0.7239312", "0.6939812", "0.68863064", "0.6882725", "0.68809694", "0.6878769", "0.68747497", "0.68747497", "0.68747497", "0.6871245", "0.6809327", "0.6773772", "0.67609614", "0.6742771", "0.67078894", "0.6703395", "0.6656337", "0.6635197", "0.6635197", "0.66265863", "0.66257...
0.0
-1
Returns whether the content exceeds the page to the right.
def isRight(self): return self.right
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_right(self):\n if self.pupils_located:\n return self.horizontal_ratio() <= 0.35", "def _has_right(self, index):\r\n return self._right(index) < len(self)", "def is_last_position(self):\r\n return self.position >= len(self.rule.rightside)", "def _has_right(self, j):\n ...
[ "0.65424365", "0.6293451", "0.6289839", "0.6247593", "0.61418796", "0.61350006", "0.60769403", "0.606555", "0.60315627", "0.6012575", "0.60109425", "0.595284", "0.5942967", "0.5942967", "0.5942967", "0.5914098", "0.59079415", "0.5899807", "0.5832552", "0.58257073", "0.5792782...
0.56876206
23
Returns whether the content exceeds the page at the bottom.
def isBottom(self): return self.bottom
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bottom_visible(self) -> bool:\n return self.last_visible_line() == self.content_height - 1", "def is_last_page(self):\n return self.page == self.last_page", "def check_for_bottom(self) -> bool:\n\t\tboolean_expression_has_bottom = False\n\t\texpression_has_bottom = False\n\t\tif self.boolean_...
[ "0.73669034", "0.6911802", "0.6823223", "0.6687322", "0.6685235", "0.6620952", "0.6555013", "0.6427301", "0.63340855", "0.63170433", "0.6282401", "0.62688035", "0.6260391", "0.6256962", "0.6230323", "0.6105931", "0.6105931", "0.6105931", "0.60613143", "0.6032017", "0.59809273...
0.70331377
1
Returns whether the content exceeds the page to the left.
def isLeft(self): return self.left
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_left(self):\n if self.pupils_located:\n return self.horizontal_ratio() >= 0.65", "def hits_left_or_right(self):\n if self.x >= self.scene.screen.get_width() - self.image.get_width() or self.x <= 0:\n return True\n else:\n return False", "def getPageL...
[ "0.67891943", "0.67567235", "0.65048075", "0.6232629", "0.6132788", "0.61052877", "0.6077801", "0.60607696", "0.59995764", "0.59855616", "0.5950879", "0.5891484", "0.58834517", "0.58631015", "0.58409315", "0.5705279", "0.5695705", "0.5693891", "0.56854314", "0.56543064", "0.5...
0.58634496
13
Returns the left coordinate of the the page in pixels.
def getPageLeft(self): return self.pageLeft
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getAbsoluteLeft(self):\n return self.canvas.getAbsoluteLeft()", "def left(self):\n return self.points['topLeft'].x", "def left(self):\n return self.points['topLeft'].x", "def getScrollLeft(self):\n return self.frame.scrollLeft", "def _rect_left(self):\n\treturn min(self.x, s...
[ "0.75526553", "0.73464835", "0.73464835", "0.7219948", "0.7101505", "0.69371945", "0.6753002", "0.6719112", "0.6693535", "0.6683965", "0.6649091", "0.66366136", "0.6588461", "0.6572745", "0.6555476", "0.6534835", "0.6532984", "0.65290236", "0.64978516", "0.6473413", "0.644986...
0.8138251
0
Returns the top coordinate of the the page in pixels.
def getPageTop(self): return self.pageTop
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getAbsoluteTop(self):\n return self.canvas.getAbsoluteTop()", "def top_height_px(self):\n return self.top_pieces * PipePair.PIECE_HEIGHT", "def top(self):\n return self.points['topRight'].y", "def top(self):\n return self.points['topRight'].y", "def table_top_abs(self):\n ...
[ "0.70526797", "0.70301104", "0.6972866", "0.6972866", "0.68239546", "0.6712141", "0.66908705", "0.6596931", "0.654472", "0.6493678", "0.64799356", "0.63897854", "0.6355979", "0.6292755", "0.62760234", "0.6265591", "0.6253122", "0.62525994", "0.6237763", "0.62253904", "0.62094...
0.7586701
0
Returns the right coordinate of the the page in pixels.
def getPageRight(self): return self.pageRight
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_right(self):\n\treturn max(self.x, self.x + self.w)", "def right(self):\n return self.points['topRight'].x", "def right(self):\n return self.points['topRight'].x", "def right(self):\n return self.left + self.width", "def get_rightmost_edge(self):\n return self.offset +...
[ "0.69003695", "0.6857507", "0.6857507", "0.68240064", "0.6789462", "0.64936644", "0.62745744", "0.6262203", "0.6261579", "0.6257956", "0.6210452", "0.6164124", "0.6144308", "0.6135279", "0.6120993", "0.6112805", "0.60996395", "0.6080889", "0.6076518", "0.60684437", "0.6062488...
0.75729847
0
Returns the bottom coordinate of the the page in pixels.
def getPageBottom(self): return self.pageBottom
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bottom(self):\n return self.top + self.height", "def bottom_height_px(self):\n return self.bottom_pieces * PipePair.PIECE_HEIGHT", "def bottom(self):\n # type: () -> float\n return self._bottom", "def bottom(self):\n return self.points['bottomRight'].y", "def bottom(s...
[ "0.7700026", "0.744093", "0.742167", "0.7395762", "0.7395762", "0.7287665", "0.70982677", "0.70794505", "0.70595473", "0.700576", "0.6994398", "0.68977845", "0.68860143", "0.68114436", "0.6634273", "0.66096336", "0.6604771", "0.6526723", "0.64879507", "0.6400311", "0.63925135...
0.81398183
0
Returns the top coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.
def getContainerTop(self): return self.containerTop
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getExceedingBoxTop(self):\n return self.exceedingBoxTop", "def getAbsoluteTop(self):\n return self.canvas.getAbsoluteTop()", "def content_box_y(self):\n return self.position_y + self.margin_top + self.padding_top + \\\n self.border_top_width", "def getPageTop(self):\n ...
[ "0.73385435", "0.6964432", "0.68927765", "0.6829087", "0.6665422", "0.6619583", "0.6535029", "0.6428871", "0.6396945", "0.639534", "0.63538384", "0.6299029", "0.6275761", "0.6240528", "0.6235212", "0.62016666", "0.61950177", "0.61671126", "0.616416", "0.614388", "0.6115861", ...
0.72474754
1
Returns the right coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.
def getContainerRight(self): return self.containerRight
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_right(self):\n\treturn max(self.x, self.x + self.w)", "def getExceedingBoxRight(self):\n return self.exceedingBoxRight", "def getPageRight(self):\n return self.pageRight", "def right(self):\n return self.left + self.width", "def content_box_x(self):\n return self.posit...
[ "0.68872815", "0.6877819", "0.673301", "0.6595496", "0.6401628", "0.63954854", "0.62722915", "0.615553", "0.615553", "0.61533", "0.61172044", "0.6088452", "0.6049238", "0.59560037", "0.5944625", "0.590374", "0.58617365", "0.5852968", "0.5825982", "0.5799897", "0.5792266", "...
0.6853172
2
Returns the bottom coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.
def getContainerBottom(self): return self.containerBottom
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getExceedingBoxBottom(self):\n return self.exceedingBoxBottom", "def getPageBottom(self):\n return self.pageBottom", "def bottom(self):\n return self.top + self.height", "def bottom_height_px(self):\n return self.bottom_pieces * PipePair.PIECE_HEIGHT", "def _rect_bottom(self...
[ "0.7658643", "0.74477595", "0.7419581", "0.6867546", "0.6862289", "0.676041", "0.6735909", "0.6712151", "0.6698427", "0.6656895", "0.66459453", "0.66049445", "0.6602693", "0.6596568", "0.65797246", "0.6432021", "0.6432021", "0.6414401", "0.6391427", "0.63821214", "0.6339279",...
0.73117155
3
Returns the left coordinate of the the exceeding box in the page in pixels.
def getExceedingBoxLeft(self): return self.exceedingBoxLeft
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_left(self):\n\treturn min(self.x, self.x + self.w)", "def getPageLeft(self):\n return self.pageLeft", "def border_box_x(self):\n return self.position_x + self.margin_left", "def content_box_x(self):\n return self.position_x + self.margin_left + self.padding_left + \\\n ...
[ "0.7779958", "0.73631483", "0.7339622", "0.7334841", "0.72870183", "0.7226649", "0.7226649", "0.6956173", "0.69416565", "0.6818264", "0.6813543", "0.6736683", "0.66970706", "0.6695954", "0.66799194", "0.66683614", "0.6632085", "0.66289824", "0.6614919", "0.6603085", "0.658584...
0.80592525
0
Returns the top coordinate of the the exceeding box in the page in pixels.
def getExceedingBoxTop(self): return self.exceedingBoxTop
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_top(self):\n\treturn max(self.y, self.y + self.h)", "def getExceedingBoxBottom(self):\n return self.exceedingBoxBottom", "def getAbsoluteTop(self):\n return self.canvas.getAbsoluteTop()", "def top_height_px(self):\n return self.top_pieces * PipePair.PIECE_HEIGHT", "def top_y(...
[ "0.7667781", "0.71630836", "0.70723796", "0.7012417", "0.6926592", "0.68905073", "0.6889258", "0.6732498", "0.6685972", "0.6685972", "0.6642053", "0.6636602", "0.65812683", "0.65795636", "0.6577686", "0.6565461", "0.64888394", "0.64613634", "0.6453626", "0.6435177", "0.638158...
0.7981435
0
Returns the right coordinate of the the exceeding box in the page in pixels.
def getExceedingBoxRight(self): return self.exceedingBoxRight
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_right(self):\n\treturn max(self.x, self.x + self.w)", "def get_rightmost_edge(self):\n return self.offset + sum(self.get_screen_widths())", "def right(self):\n return self.left + self.width", "def bottomRightCorner(self):\n self._updateExtents()\n return (self._mMaxX,sel...
[ "0.76571673", "0.6763155", "0.669399", "0.6681955", "0.66060096", "0.6562917", "0.6556966", "0.6556589", "0.6556589", "0.65503216", "0.6494594", "0.64859945", "0.6320185", "0.63118476", "0.63091964", "0.6305536", "0.6294597", "0.6152706", "0.61458236", "0.6141163", "0.6138882...
0.7707073
0
Returns the bottom coordinate of the the exceeding box in the page in pixels.
def getExceedingBoxBottom(self): return self.exceedingBoxBottom
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_bottom(self):\n\treturn min(self.y, self.y + self.h)", "def bottom(self):\n return self.top + self.height", "def getPageBottom(self):\n return self.pageBottom", "def bottom_distance(self):\n return self.board.height - 1 - self.y", "def bottom_height_px(self):\n return ...
[ "0.76277924", "0.74992275", "0.74685395", "0.7152586", "0.7147878", "0.708602", "0.70650566", "0.6990924", "0.67986", "0.67986", "0.67944527", "0.6703826", "0.6702506", "0.66933644", "0.66817605", "0.6585938", "0.65561044", "0.6533712", "0.65328914", "0.65183574", "0.64806247...
0.81998634
0
Plots trainvalidation losses per epoch.
def plot_errors(loss_train, loss_val, jet): plt.plot(list(range(len(loss_train))), loss_train, 'g', label='Training loss') plt.plot(list(range(len(loss_val))), loss_val, 'b', label='Validation loss') plt.title('Training and Validation loss for jet: {jet}'.format(jet=jet)) plt.xlabel('Epochs') plt.yl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_loss(self):\n train_elbo_range = range(len(self.train_elbo_hist))\n val_elbo_range = range(len(self.val_elbo_hist))\n train_loss_range = range(len(self.train_loss_hist))\n val_loss_range = range(len(self.val_loss_hist))\n\n fig, ax = plt.subplots(2, 2)\n ax[0][0]....
[ "0.76706356", "0.72869647", "0.7216922", "0.7202682", "0.7199246", "0.7194332", "0.71811736", "0.7156262", "0.7143991", "0.7112821", "0.710674", "0.7103535", "0.70714617", "0.7060526", "0.70534146", "0.7041511", "0.7029099", "0.7006733", "0.6997969", "0.6991212", "0.69639766"...
0.69095755
26
async version of zip This function takes a list of async iterators and returns a single async iterator that yields tuples of elements. This iterator advances as slow its slowest component (obviously).
async def azip(*aiters): anext_tuple = tuple([_.__aiter__() for _ in aiters]) while True: try: next_tuple = tuple([await _.__anext__() for _ in anext_tuple]) except StopAsyncIteration: break yield next_tuple
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pairwise(iterable):\n a, b = tee(iterable)\n next(b, None)\n return zip(a, b)", "def pairwise(iterable):\n a, b = tee(iterable)\n next(b, None)\n return zip(a, b)", "def pairwise(iterable):\n a, b = tee(iterable)\n next(b, None)\n return zip(a, b)", "def pairwise(iterable):\n ...
[ "0.68047994", "0.68047994", "0.68047994", "0.68047994", "0.67825115", "0.67825115", "0.67339754", "0.672327", "0.672327", "0.672327", "0.6628285", "0.6623382", "0.65978366", "0.6524983", "0.65091556", "0.6480489", "0.6399298", "0.6340946", "0.6334984", "0.63349825", "0.627653...
0.8131019
0
Test the api can update a given bucketlist.
def api_can_update(self): person1 = User(name="test person1", bio="test person1", contact_info="test person") person2 = User(name="test person2", bio="test person2", contact_info="test person") person1.sa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_edit_bucketlist(self):\n post_data = self.post_a_bucket()\n self.assertEqual(post_data.status_code, 201)\n result_of_put_method = self.client().put(\n '/bucketlists/1',\n headers=dict(Authorization='Bearer '\n + self.token()\n ...
[ "0.80992526", "0.76900446", "0.76384634", "0.7327994", "0.72399306", "0.7228855", "0.70274854", "0.70157564", "0.6951144", "0.6925285", "0.6921641", "0.6901921", "0.6747385", "0.67434", "0.67123485", "0.6690502", "0.6680926", "0.66805625", "0.66074324", "0.6582297", "0.657788...
0.0
-1
Return the template groups. Potentially amended with user chosen favorites.
def get_oneoffixx_template_groups(): api_client = OneoffixxAPIClient() # We need to work on a copy to not pollute the cached one template_groups = deepcopy(api_client.get_oneoffixx_template_groups()) favorites = get_oneoffixx_favorites() if favorites: template_groups.insert(0, favorites) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_template_groups(context):\n template_groups = get_oneoffixx_template_groups()\n terms = []\n for group in template_groups:\n terms.append(SimpleVocabulary.createTerm(group.get(\"id\"),\n group.get(\"id\"),\n ...
[ "0.7181835", "0.64008796", "0.6310309", "0.62456495", "0.61636776", "0.61607546", "0.6107715", "0.6087815", "0.60871494", "0.6006686", "0.5995381", "0.59858954", "0.5967682", "0.5950732", "0.59126604", "0.5891288", "0.58860177", "0.5774832", "0.57496405", "0.57464665", "0.574...
0.8116673
0
Convert and return the filename as a single string.
def _make_string(self, filename): if not os.path.isfile(filename): str = "ERROR: Could not find specified XML file %s." % filename PRINT.info(str) raise OSError(str) return open(filename).read()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def file_to_str(filename):\n with open(filename) as f:\n return f.read().lower() # Case is lowered to prevent regex mismatches.", "def file_to_str(filename):\n with open(filename) as f:\n return f.read().lower() # Case is lowered to prevent regex mismatches.", "def _fn2ascii(self, filename)...
[ "0.7070824", "0.7070824", "0.70567185", "0.70299405", "0.6954154", "0.6865523", "0.68210566", "0.66933775", "0.6672526", "0.66545963", "0.66545236", "0.6618066", "0.65933996", "0.65555084", "0.65393704", "0.6529192", "0.64828014", "0.64638144", "0.64385974", "0.64172214", "0....
0.62203205
46
Get the tag name for this element.
def getName(self): return self.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tag_name(self) -> str:\n return pulumi.get(self, \"tag_name\")", "def get_name(self):\n return self.tagnode", "def get_tag_name(self):\n\n pass", "def tag(self) -> str:\n return self.name or ''", "def tag_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"ta...
[ "0.8688162", "0.8589649", "0.8498015", "0.8139556", "0.79861253", "0.79829895", "0.7783544", "0.77577466", "0.7577197", "0.75103855", "0.74791485", "0.7467316", "0.73999256", "0.7385535", "0.7359543", "0.73575944", "0.7343772", "0.7339008", "0.73160785", "0.7285548", "0.72852...
0.0
-1
Get a list of child elements If no tag name is given, return list of all children. else return only those children with a matching tag name.
def getElements(self, name=""): if not name: return self.children else: elements = [] for element in self.children: if element.name == name: elements.append(element) return elements
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getAllChildrenWithTagName(elm, tagname):\n if elm.hasChildNodes() == True:\n elms = []\n for c in elm.childNodes:\n if c.nodeType == Node.ELEMENT_NODE and c.tagName == tagname:\n elms.append(c)\n return elms\n else:\n return None", "def get_children...
[ "0.7864307", "0.73179984", "0.7131772", "0.7131273", "0.7046855", "0.69874996", "0.68026793", "0.6797856", "0.6797856", "0.6777937", "0.66070515", "0.652418", "0.65128076", "0.65037733", "0.64973927", "0.6491919", "0.6468166", "0.646242", "0.64577836", "0.6445101", "0.6391519...
0.79300004
0
Does a forward pass on an image x.
def forward(self, x): out = self.features(x) out = self.avgpool(out) out = torch.flatten(out, 1) out = self.classifier(out) return out
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def forward(self, x):\n\t\t#######################################################################\n\t\t# ** START OF YOUR CODE **\n\t\t#######################################################################\n\n\t\toutput = self._layers[0].forward(x)\n\t\tfor i in range(1, len(self._layers)):...
[ "0.751594", "0.74505883", "0.7440662", "0.7380055", "0.7380055", "0.7261353", "0.7261353", "0.7231705", "0.72256005", "0.71753275", "0.71382", "0.7125182", "0.7122884", "0.7104736", "0.70974535", "0.7096267", "0.7093904", "0.7031243", "0.7029319", "0.70287585", "0.70213693", ...
0.0
-1
Does a forward pass on an image x.
def forward(self, x): out = self.features(x) out = self.avgpool(out) out = torch.flatten(out, 1) out = self.classifier(out) return out
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def forward(self, x):\n\t\t#######################################################################\n\t\t# ** START OF YOUR CODE **\n\t\t#######################################################################\n\n\t\toutput = self._layers[0].forward(x)\n\t\tfor i in range(1, len(self._layers)):...
[ "0.751594", "0.74505883", "0.7440662", "0.7380055", "0.7380055", "0.7261353", "0.7261353", "0.7231705", "0.72256005", "0.71753275", "0.71382", "0.7125182", "0.7122884", "0.7104736", "0.70974535", "0.7096267", "0.7093904", "0.7031243", "0.7029319", "0.70287585", "0.70213693", ...
0.0
-1
Does a forward pass on an image x.
def forward(self, x): out = self.conv1(x) out = self.bn1(out) out = self.relu(out) out = self.maxpool(out) out = self.avgpool(out) out = self.layer1(out) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = self.avgpoo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def forward(self, x):\n\t\t#######################################################################\n\t\t# ** START OF YOUR CODE **\n\t\t#######################################################################\n\n\t\toutput = self._layers[0].forward(x)\n\t\tfor i in range(1, len(self._layers)):...
[ "0.751594", "0.74505883", "0.7440662", "0.7380055", "0.7380055", "0.7261353", "0.7261353", "0.7231705", "0.72256005", "0.71753275", "0.71382", "0.7122884", "0.7104736", "0.70974535", "0.7096267", "0.7093904", "0.7031243", "0.7029319", "0.70287585", "0.70213693", "0.7015348", ...
0.7125182
11
Computes the precision for the specified values of k
def accuracy(output, target, topk=(1,)): maxk = max(topk) batch_size = target.size(0) _, pred = output.topk(maxk, 1, True, True) pred = pred.t() correct = pred.eq(target.view(1, -1).expand_as(pred)) res = [] for k in topk: correct_k = correct[:k].view(-1).float().sum(0) res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def precision(gt, pred, k):\n k = min(len(pred), k)\n den = min(len(gt), k)\n return sum([int(pred[i] in gt) for i in range(k)]) / den", "def precision_at_k(r, k):\n assert k >= 1\n r = np.asarray(r)[:k] != 0\n if r.size != k:\n raise ValueError('Relevance score length < k')\...
[ "0.76427615", "0.74189496", "0.7418079", "0.72710466", "0.72456723", "0.72446615", "0.7237539", "0.72213703", "0.7210107", "0.7058935", "0.6852219", "0.6786084", "0.67836976", "0.6768417", "0.67273885", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0....
0.0
-1
For a given dataset pad with zero vectors or truncate to maxlen
def pad_trunc(data, maxlen): new_data = [] # Create a vector of 0s the length of our word vectors zero_vector = [] for _ in range(len(data[0][0])): zero_vector.append(0.0) for sample in data: if len(sample) > maxlen: temp = sample[:maxlen] elif len(sample) < maxl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pad_trunc(data, maxlen):\n new_data = []\n\n # Create a vector of 0's the length of our word vectors\n zero_vector = []\n for _ in range(len(data[0][0])):\n zero_vector.append(0.0)\n\n for sample in data:\n\n if len(sample) > maxlen:\n temp = sample[:maxlen]\n eli...
[ "0.80296975", "0.73398924", "0.7197692", "0.69758755", "0.6802024", "0.67527556", "0.668326", "0.66787744", "0.6588764", "0.65088207", "0.6501216", "0.64765847", "0.6466347", "0.64037824", "0.6402522", "0.6400277", "0.6387837", "0.6346809", "0.62643456", "0.6258291", "0.62192...
0.806618
0
Get a named attribute from an object. getattr(x, 'y') is equivalent to ``x.y''.
def getattr(space, w_object, w_name, w_defvalue=None): w_name = checkattrname(space, w_name) try: return space.getattr(w_object, w_name) except OperationError as e: if w_defvalue is not None: if e.match(space, space.w_AttributeError): return w_defvalue rai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_attr(obj, attr):\n return getattr(obj, attr)", "def getattribute(objeto, name: str):\r\n # Get internal dict value matching name.\r\n value = objeto.__dict__.get(name)\r\n if not value:\r\n # Raise AttributeError if attribute value not found.\r\n return None\...
[ "0.7610635", "0.75042677", "0.74757874", "0.73880315", "0.73245376", "0.7295936", "0.7172946", "0.71155876", "0.7071419", "0.7071419", "0.703166", "0.70208585", "0.70208585", "0.70144755", "0.6940714", "0.6936754", "0.6936754", "0.6933146", "0.6933146", "0.69224703", "0.68779...
0.62976056
78
Check whether the object appears to be callable (i.e., some kind of function). Note that classes are callable.
def callable(space, w_object): return space.callable(w_object)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def callable(obj):\n return bool(_PyCallable_Check(_py_object(obj)))", "def is_callable(obj):\n return callable(obj)", "def callable(obj): # pylint: disable=redefined-builtin\n return bool(PyCallable_Check(py_object(obj)))", "def is_callable(o):\n return callable(o)", "def is_callable(o):\...
[ "0.8534914", "0.85162216", "0.84253067", "0.810396", "0.7985933", "0.7701055", "0.7251384", "0.72326267", "0.71737546", "0.7152662", "0.7130904", "0.7106127", "0.70961344", "0.7013718", "0.700105", "0.6989573", "0.6880453", "0.68366265", "0.6793897", "0.6700029", "0.66742426"...
0.5803546
51
Formats LogRecord into python dictionary.
def format(self, record): # Standard document document = { 'created_at': datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f'), 'level': record.levelname, 'thread': record.thread, 'threadName': record.threadName, 'message': record.getMessage(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def format(self, record):\n data = dict()\n\n data[\"category\"] = record.name\n data[\"timestamp\"] = datetime.datetime.utcnow()\\\n .replace(tzinfo=utc)\\\n .strftime('%Y-%m-%dT%H:%M:%SZ')\n data[\"level\"] = record.levelname\n data[\"message\"] = record.m...
[ "0.78079414", "0.7463158", "0.7408212", "0.7198952", "0.71963674", "0.7038162", "0.69576985", "0.68280685", "0.6672799", "0.6491319", "0.6348554", "0.63313144", "0.6315133", "0.62402403", "0.62173533", "0.61659163", "0.61221075", "0.61210966", "0.61209404", "0.60927224", "0.6...
0.61961067
15
Creates a logging object writing to syslog. logger app.logger or similar. If omitted then an object is created. level min logging level. If omitted then logging.WARN is used. name the name to log as. If omitted then the script name is used. sentry Sentry Client handle. sentry = Client( dsn=app.config['SENTRY_DSN'] ) ql...
def __init__( self, logger=None, level=None, name=None, sentry=None ): # if no logger is specified then create a new one if logger == None: logger = logging.getLogger( 'quiddi' ) # if a Sentry object has been passed then store it if sentry != None: self.__sentry...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_logger():\r\n global logger\r\n logger = logging.getLogger(logger_name)\r\n\r\n formatter = logging.Formatter(fmt='%(asctime)s %(levelname)s %(message)s')\r\n \r\n handler = logging.StreamHandler()\r\n handler.setFormatter(formatter)\r\n logger.addHandler(handler)\r\n \r\n ret...
[ "0.66150904", "0.6516682", "0.64768624", "0.64649856", "0.6464907", "0.6418563", "0.6379207", "0.6375056", "0.6363784", "0.6331286", "0.6331123", "0.6323792", "0.6316884", "0.63158303", "0.63113004", "0.6304424", "0.62840956", "0.6284069", "0.6283674", "0.62775505", "0.627704...
0.732607
0
Get the pipette's mount.
def get_mount(self, pipette_id: str) -> MountType: return self.get(pipette_id).mount
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_mount(self):\n if not self._mount.endswith(os.path.sep):\n return \"%s%s\" % (self._mount, os.path.sep)\n else:\n return self._mount", "def get_by_mount(self, mount: MountType) -> Optional[LoadedPipette]:\n for pipette in self._state.pipettes_by_id.values():\n ...
[ "0.7552987", "0.72282296", "0.7165368", "0.6999198", "0.6912872", "0.6912872", "0.68738", "0.67438346", "0.66054225", "0.66022533", "0.6587454", "0.6513649", "0.64495546", "0.6433456", "0.6401192", "0.63397056", "0.63321567", "0.63006216", "0.6258572", "0.62492776", "0.622930...
0.78979987
0
Get a list of all pipette entries in state.
def get_all(self) -> List[LoadedPipette]: return list(self._state.pipettes_by_id.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getstate(self):\n return [elem.getstate() for elem in self]", "def all_statuses(cls):\n return list(cls.pipeline.keys())", "def all_statuses(cls):\n return list(cls.pipeline.keys())", "def pipe_name_list(self):\n return list(self._link_reg.pipe_names)", "def get_list_of_stat...
[ "0.60022306", "0.5966019", "0.5966019", "0.5962531", "0.58765733", "0.5875926", "0.5875413", "0.57918674", "0.5696649", "0.56900996", "0.568841", "0.5680454", "0.56470805", "0.5643168", "0.5564687", "0.55603254", "0.55565196", "0.55498874", "0.55411404", "0.55398095", "0.5527...
0.7800666
0
Get the deck point of a pipette by ID, or None if it was not associated with the last move operation.
def get_deck_point(self, pipette_id: str) -> Optional[DeckPoint]: loaded_pipette = self.get(pipette_id) current_deck_point = self._state.current_deck_point if loaded_pipette.mount == current_deck_point.mount: return current_deck_point.deck_point return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(self, pipette_id: str) -> LoadedPipette:\n try:\n return self._state.pipettes_by_id[pipette_id]\n except KeyError as e:\n raise errors.PipetteNotLoadedError(\n f\"Pipette {pipette_id} not found.\"\n ) from e", "def get_by_mount(self, mount: Mo...
[ "0.5696382", "0.5668907", "0.5644303", "0.54197764", "0.53911537", "0.536337", "0.53432757", "0.5340749", "0.5311195", "0.52989465", "0.52934647", "0.5210316", "0.5181822", "0.5162701", "0.51468116", "0.51468116", "0.5093299", "0.50893396", "0.50702727", "0.5038695", "0.50374...
0.8517736
0
Get the static pipette configuration by pipette id.
def get_config(self, pipette_id: str) -> StaticPipetteConfig: try: return self._state.static_config_by_id[pipette_id] except KeyError as e: raise errors.PipetteNotLoadedError( f"Pipette {pipette_id} not found; unable to get pipette configuration." ) fr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(self, pipette_id: str) -> LoadedPipette:\n try:\n return self._state.pipettes_by_id[pipette_id]\n except KeyError as e:\n raise errors.PipetteNotLoadedError(\n f\"Pipette {pipette_id} not found.\"\n ) from e", "def get_aspirated_volume(self, p...
[ "0.6940611", "0.5312739", "0.52422523", "0.51832163", "0.5127131", "0.51248765", "0.5113066", "0.50845873", "0.5054258", "0.5012667", "0.4985259", "0.4968279", "0.49609888", "0.49569264", "0.49539384", "0.49498817", "0.494051", "0.4933892", "0.49134257", "0.48805818", "0.4856...
0.8556218
0
Return the given pipette's model name.
def get_model_name(self, pipette_id: str) -> str: return self.get_config(pipette_id).model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_model_name(pipe) -> str:\n # https://stackoverflow.com/questions/14596884/remove-text-between-and\n model_name = pipe.named_steps.get(\"regressor\").__class__.__name__\n model_name = re.sub(r\"[\\(\\[].*?[\\)\\]]\", \"\", model_name)\n return model_name", "def get_model_name(self) -> str:\n ...
[ "0.805263", "0.7383572", "0.7373356", "0.731995", "0.72967017", "0.7266179", "0.7221769", "0.71861947", "0.70984644", "0.7087054", "0.7047836", "0.69193614", "0.68634385", "0.68352884", "0.6770356", "0.6752905", "0.6723244", "0.668062", "0.66717345", "0.663589", "0.66040444",...
0.8617214
0
Get the serial number of the pipette.
def get_serial_number(self, pipette_id: str) -> str: return self.get_config(pipette_id).serial_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def serial_num(self) -> int:\n return self._serial_num", "def serial_number(self) -> str:\n return pulumi.get(self, \"serial_number\")", "def serial_number(self):\n return self._serialno", "def get_serial_number(self):\n\n\t\treturn struct.unpack('<Q', self.boot_sector_data[72 : 80])[0]"...
[ "0.78512174", "0.77488583", "0.769769", "0.7687218", "0.76222175", "0.74964106", "0.7474503", "0.7469961", "0.7468247", "0.74647117", "0.74577045", "0.7454077", "0.73911357", "0.73753476", "0.73753476", "0.7261307", "0.72454566", "0.72084785", "0.72084785", "0.7157628", "0.71...
0.8470521
0
Return the given pipette's minimum volume.
def get_minimum_volume(self, pipette_id: str) -> float: return self.get_config(pipette_id).min_volume
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _minimum(self) -> float:\n if self._type == \"power\":\n return 1.0\n elif self._type == \"setpoint\":\n return self._product.get_data_config_json()[\"_value_setpoint_min\"]\n elif self._type == \"fan1\":\n fan = 1\n return self._product.get_data...
[ "0.68719906", "0.68438613", "0.67348814", "0.6528012", "0.6520542", "0.6406176", "0.6406176", "0.6397346", "0.63778204", "0.6357311", "0.6352547", "0.63417846", "0.62837017", "0.62589335", "0.6251619", "0.62181705", "0.62138593", "0.62097543", "0.6208122", "0.6207054", "0.619...
0.8779395
0
Get the MotorAxis representing this pipette's Z stage.
def get_z_axis(self, pipette_id: str) -> MotorAxis: mount = self.get(pipette_id).mount return MotorAxis.LEFT_Z if mount == MountType.LEFT else MotorAxis.RIGHT_Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zaxis ( self ) :\n return self.__zaxis", "def zaxis(self):\n return self._zaxis", "def axis(self):\r\n return self._arm.axis", "def __get_z__(self):\n return self.Direction['z']", "def world_zaxis(self):\n return observable.MJCFFeature('xmat', self._entity.root_body)[6:]...
[ "0.7350467", "0.72987205", "0.68885696", "0.6557672", "0.6419664", "0.61581665", "0.60448444", "0.59930253", "0.59930253", "0.59930253", "0.5985751", "0.5953025", "0.5907839", "0.5880409", "0.5873", "0.5839782", "0.5828635", "0.582395", "0.58108354", "0.5773105", "0.5715821",...
0.779444
0
Init a new doubly linked list, push values and return the dll.
def new_dll(): from dll import DbLinkedList dll = DbLinkedList(5) dll.push(4) dll.push(3) return dll
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self):\n self.new_dll = DLinkedList()", "def new_ll():\n from linked_list import Linked_List\n this_ll = Linked_List(PARAMS_SAMPLE_LIST)\n return this_ll", "def __init__(self, lst=[]):\n self.__length = 0 # current length of the linked list\n self.__head = None # po...
[ "0.7380075", "0.6728756", "0.6363989", "0.6363675", "0.62848175", "0.6279128", "0.61959255", "0.61925113", "0.6185235", "0.6151478", "0.6148844", "0.61142945", "0.6110121", "0.6110121", "0.60963106", "0.60914385", "0.60361654", "0.6013619", "0.60057503", "0.5999981", "0.59988...
0.66286707
2
Test the the head stays the same after appending.
def test_head_after_append_in_list(new_dll): new_dll.append(6) assert new_dll.head.value == 3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_append_left_head_is_new_node(dq_1):\n dq_1.append_left('threve')\n assert dq_1._dll.head.data == 'threve'", "def test_append_to_full_deque_check_head(full_deque):\n full_deque.append(\"Denny Way\")\n assert full_deque._deque.head.value == 3", "def test_append_to_empty_deque_check_head(empt...
[ "0.70699835", "0.68049955", "0.67432624", "0.6696004", "0.66895676", "0.6676832", "0.6608927", "0.65903497", "0.65400016", "0.6534585", "0.65333015", "0.6511333", "0.64942306", "0.6485779", "0.6437322", "0.64254457", "0.63375497", "0.6335701", "0.6319278", "0.624512", "0.6190...
0.748081
0
Test shifting from empty list will raise proper error.
def test_shift_from_empty_list(): from dll import DbLinkedList dll = DbLinkedList() msg = "Cannot shift from an empty list" with pytest.raises(ValueError, message=msg): dll.shift()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_shift_when_empty(self):\n l_list = DoubleLinkedList()\n with self.assertRaises(Exception) as context:\n l_list.shift()\n self.assertTrue('Empty list' in str(context.exception))", "def test_un_shift_when_empty(self):\n l_list = DoubleLinkedList()\n l_list.un_...
[ "0.8052243", "0.7461848", "0.6549447", "0.6518453", "0.64293414", "0.638629", "0.63764846", "0.62726295", "0.6238811", "0.6217439", "0.61620015", "0.61400545", "0.6116291", "0.60853785", "0.6082873", "0.605701", "0.6036537", "0.60286653", "0.597714", "0.5962377", "0.5892302",...
0.757688
1
Get the duration of 50 videos at once.
def api_get_videos_duration(list_videos, api_service): if list_videos: durations = [] dates = [] if isinstance(list_videos[0], tuple): chunks50 = divide_chunks([video[0] for video in list_videos], 50) else: chunks50 = divide_chunks([video for video in list_v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def duration():\r\n elapsed_time, duration = video_time()\r\n return duration", "def video_duration(self):\n # type: () -> int\n return self._video_duration", "def _get_duration(self):\n try:\n dur = self.im.info[\"duration\"] / 1000.0\n except KeyError:\n ...
[ "0.70984507", "0.6765254", "0.6310162", "0.6300433", "0.6252232", "0.6178004", "0.61150765", "0.61150765", "0.6073818", "0.6027949", "0.60141915", "0.60000044", "0.5985926", "0.5984091", "0.5973703", "0.5962822", "0.59431916", "0.5939366", "0.59380966", "0.59254766", "0.58892...
0.6532372
2
Get the duration of 50 videos at once.
def api_get_channel_name(channel_id, api_service): request = api_service.channels().list(id=channel_id, part='snippet') success = False response = None while not success: try: response = request.execute() success = True except ConnectionResetError: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def duration():\r\n elapsed_time, duration = video_time()\r\n return duration", "def video_duration(self):\n # type: () -> int\n return self._video_duration", "def api_get_videos_duration(list_videos, api_service):\n if list_videos:\n durations = []\n dates = []\n\n ...
[ "0.7096518", "0.67632824", "0.653287", "0.63091004", "0.62980247", "0.6251758", "0.6176933", "0.61162424", "0.61162424", "0.60726595", "0.6028103", "0.60144097", "0.59987414", "0.5986604", "0.59828323", "0.5973634", "0.5960214", "0.5941458", "0.59385866", "0.5935927", "0.5926...
0.0
-1
Divide a list into chunks of size n.
def divide_chunks(a_list, n): return [a_list[i:i + n] for i in range(0, len(a_list), n)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chunks(l, n):\n if len(l) % n != 0:\n raise Exception('List length is not a multiple on %s', n)\n return [l[i:i+n] for i in range(0, len(l), n)]", "def get_chunks(lst, n):\n size = int(len(lst) / n)\n output_list = []\n for i in range(0, n):\n sub_list = lst[i*size:i*size + size]...
[ "0.866302", "0.85837907", "0.8510472", "0.8499322", "0.84920675", "0.84920675", "0.8481008", "0.8476374", "0.8476117", "0.8470918", "0.8470918", "0.84704953", "0.8467522", "0.8462879", "0.84560084", "0.8451528", "0.8439486", "0.8431522", "0.8431522", "0.8431522", "0.8431522",...
0.89713013
0
Performs down heapify operation on node at index, i of the array, arr containing n elements.
def down_heapify(arr, n, index): assert(index < n) left_index = 2 * index + 1 right_index = 2 * index + 2 max_node_idx = index if left_index < n and arr[left_index] > arr[index]: max_node_idx = left_index if right_index < n and arr[right_index] > arr[max_node_idx]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_heap(arr):\n for i in range(len(arr)-1, -1, -1):\n down_heapify(arr, len(arr), i)", "def down_heap(array, k, n):\n new_elem = array[k]\n while k <= n / 2:\n child = 2 * k\n if child < n and array[child] < array[child + 1]:\n child += 1\n ...
[ "0.78559995", "0.744334", "0.7328573", "0.7029035", "0.6891666", "0.68866307", "0.68723226", "0.6854252", "0.6847686", "0.68210965", "0.680618", "0.6805997", "0.6769832", "0.6620479", "0.6553039", "0.6428324", "0.63998884", "0.6390559", "0.63823104", "0.6367222", "0.6357704",...
0.76680666
1
Converts array, arr to a maxheap by calling down_heapify() starting from last array index, and going upto 0
def build_heap(arr): for i in range(len(arr)-1, -1, -1): down_heapify(arr, len(arr), i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_heap(arr):\n for i in range((len(arr)//2), -1, -1):\n heapify(arr,index=i, size=len(arr)-1)", "def build_max_heap(a):\r\n for i in range(math.floor((len(a) - 1)/2), -1, -1):\r\n max_heapify(a, i)", "def build_heap(self, arr):\n i = len(arr) // 2\n self.size = len(arr...
[ "0.8018731", "0.79420334", "0.76132154", "0.7556916", "0.75507927", "0.74626476", "0.7372483", "0.7365775", "0.7332288", "0.71777976", "0.71470565", "0.71119314", "0.7093917", "0.70472026", "0.70472026", "0.7045585", "0.703079", "0.6953988", "0.69530296", "0.6940574", "0.6909...
0.8689605
0
If time was longer than max_time, then return max_time, otherwise return time. Time is counted in miliseconds.
def normalized_total_time(p, max_time=3600000): if "cdgp.wasTimeout" in p and p["cdgp.wasTimeout"] == "true": v = 3600000 else: v = int(float(p["result.totalTimeSystem"])) return max_time if v > max_time else v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max_time(self):\n return self._max_time", "def max_time(self) -> str:\n return self._max_time", "def max_time(self):\n return self._ll_tree_sequence.get_max_time()", "def max_time(self, max_time: str):\n\n self._max_time = max_time", "def max_time(self):\n #{{{ function t...
[ "0.7386789", "0.70867103", "0.68169355", "0.6755278", "0.664698", "0.6578973", "0.64417624", "0.63864154", "0.6344826", "0.63301516", "0.6268261", "0.6234812", "0.62262374", "0.6194419", "0.61294377", "0.61191255", "0.60996366", "0.60492516", "0.6042677", "0.6028088", "0.5943...
0.7037539
2
Checks if the MSE was below the threshold.
def is_approximated_solution(p): tr = float(p["optThreshold"]) # TODO: finish k = "result.best.verificationDecision" return p["result.best.isOptimal"] == "true" and p[k] == "unsat"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close_to_exceeding(self) -> bool:\n mean = self.current / self.num_cuts\n if self.max_frames is not None:\n return self.current + mean > self.max_frames\n if self.max_samples is not None:\n return self.current + mean > self.max_samples\n if self.max_duration is...
[ "0.6663049", "0.6555175", "0.6516697", "0.6317669", "0.62050474", "0.61817586", "0.617161", "0.6171414", "0.61436296", "0.614091", "0.6130083", "0.60914165", "0.6059191", "0.60541373", "0.59784", "0.5967908", "0.5967628", "0.5956214", "0.5946825", "0.59357196", "0.59312606", ...
0.0
-1
Returns average together with standard deviation.
def fun_average_mse_sd(filtered): res = 0.0 num = 0 # Sometimes there was "inf" in the results. We will ignore those elements. for p in filtered: x = float(p["result.best.mse"]) if not "n" in str(x): res += x num += 1 else: print("Nan encounter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def meanstd(self):\n\t\tmean = [125.3, 123.0, 113.9] # R,G,B\n\t\tstddev = [63.0, 62.1, 66.7] # R,G,B\n\t\treturn [mean, stddev]", "def mean_stddev(self):\n if len(self.vs) == 0:\n raise StdDevFilterException\n\n mx = self.mean()\n # compute variance\n variance = sum([(x - ...
[ "0.8015605", "0.79927176", "0.7971984", "0.7861967", "0.78526956", "0.7812481", "0.77905446", "0.77616024", "0.7755449", "0.77466357", "0.77456266", "0.774428", "0.7726299", "0.7709845", "0.7703849", "0.7699272", "0.76482195", "0.7607259", "0.7601211", "0.7563526", "0.7546404...
0.70372105
61
Yield elements from `iterable` in "chunksize"ed groups. The last returned element may be smaller if the length of collection is not divisible by `chunksize`.
def chunkize_serial(iterable, chunksize, as_numpy=False, dtype=np.float32): it = iter(iterable) while True: if as_numpy: # convert each document to a 2d numpy array (~6x faster when transmitting # chunk data over the wire, in Pyro) wrapped_chunk = [[np.array(doc, dtyp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chunker(iterable, size):\n for i in range(0, len(iterable), size):\n yield iterable[i:i + size]", "def chunker(iterable, size):\n for i in range(0, len(iterable), size):\n yield iterable[i:i + size]", "def chunker(iterable, size):\n for i in range(0, len(iterable), size):\n yi...
[ "0.84422165", "0.84422165", "0.84422165", "0.82577366", "0.8244541", "0.8240404", "0.82044756", "0.82042825", "0.808329", "0.8069519", "0.79267293", "0.79110175", "0.78099304", "0.77947557", "0.7786567", "0.77832955", "0.7680086", "0.76786494", "0.7646875", "0.76350194", "0.7...
0.70831144
57
Check the schema of a given collection.
def check_schema(self, collection_name: str, document: Dict=None): if document is None: document = self.retrieve_documents(collection_name, page_size=1) self._check_schema(document)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_schema(self):\r\n db_connection = modulestore().db_connection\r\n for collection in [db_connection.course_index, db_connection.structures, db_connection.definitions]:\r\n self.assertEqual(\r\n collection.find({'schema_version': {'$exists': False}}).count(),\r\n ...
[ "0.64028186", "0.6395516", "0.62411267", "0.6185468", "0.6134967", "0.6133344", "0.6027531", "0.6021744", "0.59754735", "0.5963524", "0.59609103", "0.5949363", "0.5901372", "0.5886705", "0.58827055", "0.5859699", "0.5848665", "0.58190244", "0.5816641", "0.580552", "0.5800684"...
0.7849406
0
Set any infinite upper bound to B
def update_upper_bounds(self, B): for arc in self.arcs(): if self.arc_info[arc[0]]['upper_bound'] == -1: self.arc_info[arc[0]]['upper_bound'] = B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _onSetParameterB(self, value):\n self._parameters['b'] = min(max(value, self._parameters['lower']), self._parameters['upper']) # Limit at upper and lower\n self._logger.info(\"Parameter ba' of function '{}' changed to {}\".format(self._function, value))\n self.functionChanged.emit(self._di...
[ "0.6789584", "0.67781395", "0.64808226", "0.64529634", "0.63530576", "0.62804", "0.6118612", "0.6115115", "0.6034799", "0.5998197", "0.59783614", "0.5937461", "0.5920634", "0.5914244", "0.5913431", "0.588754", "0.58441687", "0.58167607", "0.579736", "0.5784573", "0.5772959", ...
0.7318761
0
Return the maximum lower bound across all edges.
def get_max_lb(self): max_lb = 0 for arc in self.arc_info.keys(): if self.arc_info[arc]["lower_bound"] > max_lb: max_lb = self.arc_info[arc]["lower_bound"] return max_lb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def best_upper_bound(self):\n if self._all_nodes:\n return min(node.upper_bound for node in self._all_nodes)\n else:\n return np.inf", "def get_best_lower_bound(self):\n if not self.tours:\n raise Exception('No lower bound has been computed yet')\n bes...
[ "0.73396516", "0.7020246", "0.68080467", "0.6751348", "0.6751348", "0.66627586", "0.66569334", "0.6607165", "0.66039973", "0.6566038", "0.6424956", "0.63580364", "0.6350195", "0.6316593", "0.62827075", "0.6280209", "0.62646616", "0.6253432", "0.62441087", "0.62223727", "0.621...
0.7039718
1
Returns whether the digraph is acyclic or not. A directed graph is acyclic if for any vertex `v`, there is no directed path that starts and ends at `v`. Every directed acyclic graph (DAG) corresponds to a partial ordering of its vertices, however multiple dags may lead to the same partial ordering.
def is_directed_acyclic(self, certificate = False): return self._backend.is_directed_acyclic(certificate = certificate)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_dag(self):\n if nx.is_directed_acyclic_graph(Node.G):\n return True\n else:\n return False", "def is_acyclic(graph):\n visited = []\n dfs_seq = DFSIterator(graph)\n\n for node in dfs_seq:\n visited.insert(0, node)\n node_neighbors = graph.get_neig...
[ "0.723385", "0.713836", "0.7003587", "0.6850311", "0.6837214", "0.68250763", "0.6788497", "0.66249675", "0.65261775", "0.6506628", "0.6314486", "0.6276283", "0.62412477", "0.6237701", "0.6206973", "0.6204413", "0.61749023", "0.6146014", "0.6096741", "0.60924333", "0.6086224",...
0.6418316
10
Since the graph is already directed, simply returns a copy of itself.
def to_directed(self): return self.copy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_copy_of_graph(self):\r\n return deepcopy(self)", "def copy(self):\n return AncestralGraph(self.nodes, self.directed, self.bidirected, self.undirected)", "def copy_graph(g):\n return copy.deepcopy(g)", "def duplicate(self):\n\t\treturn Graph(self.vertices[:], self.edges[:])", "def g...
[ "0.8194296", "0.75887483", "0.75756127", "0.7529725", "0.74868757", "0.72799337", "0.7197389", "0.7171568", "0.7125967", "0.7012541", "0.7000337", "0.69953644", "0.6987655", "0.68769234", "0.67974913", "0.6794357", "0.6767212", "0.666129", "0.6637743", "0.6510945", "0.6501396...
0.75788856
2
Returns a list of edges arriving at vertices.
def incoming_edges(self, vertices, labels=True): return list(self.incoming_edge_iterator(vertices, labels=labels))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edges(self):\n es = []\n for vertex1 in self.vertices():\n for vertex2 in self.out_vertices(vertex1):\n es.append(self[vertex1][vertex2])\n return es", "def edges(self):\n return [edge(self.vertices[i - 1], self.vertices[(i)]) for i in range(-1, len(self....
[ "0.79663116", "0.78854406", "0.7547098", "0.75097674", "0.7447132", "0.74334085", "0.73956454", "0.73030037", "0.72754675", "0.72738427", "0.72731286", "0.72569484", "0.7173989", "0.7171216", "0.71429217", "0.71349615", "0.71039397", "0.7087659", "0.70873404", "0.7082944", "0...
0.7900291
1
Returns a list of edges departing from vertices.
def outgoing_edges(self, vertices, labels=True): return list(self.outgoing_edge_iterator(vertices, labels=labels))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edgify(vertices:list)->list:\n edges = []\n for k in range(0, len(vertices) - 1):\n edges.append([vertices[k], vertices[k + 1]])\n return edges", "def edges(self):\n es = []\n for vertex1 in self.vertices():\n for vertex2 in self.out_vertices(vertex1):\n ...
[ "0.8183545", "0.80569786", "0.7838224", "0.7667963", "0.76620775", "0.7585666", "0.7552028", "0.75352424", "0.75203323", "0.7489389", "0.7449302", "0.7286689", "0.7247619", "0.719833", "0.7181965", "0.7174516", "0.7124577", "0.71239746", "0.71108717", "0.7085551", "0.7082703"...
0.7144905
16
r""" Return the outdegree sequence of this digraph.
def out_degree_sequence(self): return sorted(self.out_degree_iterator(), reverse=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def in_degree_sequence(self):\n return sorted(self.in_degree_iterator(), reverse=True)", "def return_outdeg(self, vertex: np.int_):\n return len(self.__adj[vertex])", "def layer_out_degree(self, layer_id):\n ...", "def out_degree(self, vertices=None, labels=False):\n if vertices i...
[ "0.6748625", "0.64484465", "0.6379331", "0.6164552", "0.6110294", "0.60757023", "0.60198116", "0.59683305", "0.58806443", "0.578437", "0.57522947", "0.5726442", "0.5710307", "0.56844264", "0.5684406", "0.56772244", "0.566587", "0.5645124", "0.55836004", "0.5578796", "0.557879...
0.7916445
0
r""" Returns an iterator over the paths of self starting with the given vertex.
def _all_paths_iterator(self, vertex, ending_vertices=None, simple=False, max_length=None, trivial=False): if ending_vertices is None: ending_vertices = self if max_length is None: from sage.rings.infinity import Infinity max_length = Infin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def path_to(self, vertex: int):\n path = None\n if self.connected(vertex):\n path = []\n while vertex != self._source:\n path.append(vertex)\n vertex = self._predecessor[vertex]\n path.append(self._source)\n\n return path", "def ...
[ "0.718557", "0.718557", "0.68222964", "0.66997766", "0.6690667", "0.6688411", "0.65901595", "0.6547853", "0.6541915", "0.64825404", "0.6399075", "0.6333154", "0.6321126", "0.61420476", "0.61181104", "0.603189", "0.6027019", "0.59627366", "0.59446084", "0.5903899", "0.58826923...
0.6971766
2
r""" Returns an iterator over the paths of self. The paths are enumerated in increasing length order.
def all_paths_iterator(self, starting_vertices=None, ending_vertices=None, simple=False, max_length=None, trivial=False): if starting_vertices is None: starting_vertices = self # We create one paths iterator per vertex # This is necessary if we want to iter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __iter__(self):\n for path in self._paths: yield autopaths.Path(path.complete_path)", "def current_paths(self) -> Iterator[List[Path]]:\n yield self._target_paths", "def __iter__(self):\n for path_id in self._path_ids:\n yield (path_id, getattr(self, path_id))", "def __ite...
[ "0.80300754", "0.74943686", "0.7325405", "0.72907275", "0.7225369", "0.71799153", "0.70124036", "0.6909133", "0.6783045", "0.6769493", "0.6656813", "0.6624762", "0.66112727", "0.65552425", "0.65369827", "0.65230185", "0.65045327", "0.6478949", "0.6475584", "0.64712185", "0.64...
0.67996085
8
r""" Return whether the current ``DiGraph`` is aperiodic. A directed graph is aperiodic if there is no integer ``k > 1`` that divides the length of every cycle in the graph, cf.
def is_aperiodic(self): import networkx return networkx.is_aperiodic(self.networkx_graph(copy=False))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_periodic(self):\n if self._sampler_states is None:\n return None\n return self._thermodynamic_states[0].is_periodic", "def is_periodic(copolymer, period):\n # check whether copolymer is constructed as repetition of period\n return copolymer == period * (len(copolymer) // len...
[ "0.68263704", "0.6122851", "0.58205456", "0.5746732", "0.5686274", "0.566057", "0.565556", "0.56082964", "0.5556048", "0.5538165", "0.5505166", "0.54646975", "0.54486173", "0.5411103", "0.5404764", "0.5349802", "0.53481877", "0.5334482", "0.53026515", "0.52862126", "0.5270074...
0.5409079
14
Return random equality set of P that projects on a projection facet. Returns randomly selected equality set E_0 of P such that the projection of the equality set is a facet of the projection.
def shoot(C, D, b, maxiter=1000, abs_tol=1e-7): d = C.shape[1] k = D.shape[1] iter = 0 while True: if iter > maxiter: raise Exception( "shoot: could not find starting equality set") gamma = np.random.rand(d) - 0.5 c = np.zeros(k + 1) c[0] = -1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initECDLP(E):\n \n import random\n \n P=E.gen(0)\n orderP=P.order()\n #k in [1, orderP-1] => Q != E(0)\n k=int(1+(orderP-1)*random.random())\n Q=k*P\n return P, Q", "def random_generic_vertex_set(self, k, E=None):\n if E is None:\n E = set()\n S = [None for...
[ "0.5496789", "0.54772776", "0.53094566", "0.53007257", "0.51790506", "0.5160384", "0.5148292", "0.50907254", "0.5048531", "0.5037889", "0.50197184", "0.50165516", "0.50142926", "0.5011479", "0.4996039", "0.49956244", "0.49773413", "0.49442124", "0.49381447", "0.49343863", "0....
0.0
-1
Compute correlation separability score between the prior and the conceptwise separability scores.
def compute_correlation_separability_score(self) -> float: sep_scores = pd.DataFrame.from_dict(self.separability_scores).to_numpy() sep_scores = minmax_scale(sep_scores) corrs = {} for tumor_pair in range(sep_scores.shape[1]): corr_sep_score = np.corrcoef(PATHO_PRIOR[:, tumor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def correlation(self):\n\n c = np.corrcoef(self.input.data)\n c = c[tril_indices_from(c, -1)]\n\n return np.mean(c), stats.sem(c)", "def correlation(self):\r\n\r\n c = np.corrcoef(self.input.data)\r\n c = c[tril_indices_from(c, -1)]\r\n\r\n return np.mean(c), stats.sem(c...
[ "0.58070636", "0.5796349", "0.5729147", "0.5674643", "0.5659684", "0.561151", "0.5578404", "0.5572416", "0.5462115", "0.5450312", "0.53903085", "0.532815", "0.5318268", "0.53044593", "0.5300666", "0.52982354", "0.52931786", "0.52308345", "0.5189845", "0.5168644", "0.516853", ...
0.7084976
0
Return the virtual task python path
def modpath(): return 'loadlimit.task'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_python():\n return path.join(TaskCreator.bin_dir, \"python\")", "def task_binary_location(cmd=\"task\"):\n return binary_location(cmd, TASK_USE_PATH)", "def test_task_dir(self):\n return os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tasks')", "def get_celery_path():\n\n ...
[ "0.751733", "0.717074", "0.705743", "0.7004299", "0.66539466", "0.66014916", "0.65459144", "0.64995134", "0.6175161", "0.6096285", "0.6096285", "0.60575396", "0.6057143", "0.5966123", "0.59321845", "0.5911656", "0.5905451", "0.59049314", "0.5855439", "0.583089", "0.581599", ...
0.6240081
8
Overrides position and orientation of a single sensor in gearfile with gaussian random variable
def randomize_gearparameter(gearfile=None, sensorID=None, parametername=None, mean=None, sigma=None): # Calculate random shift for this parameter value=random.gauss(mean,sigma) add_offset(gearfile=gearfile, sensorID=sensorID, parametername=parametername, value=value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setGxLocation(self):\n if self.xyz is None:\n gxobs = self.obs.get(None, {}).get(\"GX\")\n if gxobs is not None:\n gxyz = np.array((0.0, 0.0, 0.0))\n for gx in gxobs:\n gxyz += gx.obsvalue.value\n ...
[ "0.5696354", "0.54616594", "0.5453308", "0.53072447", "0.5300865", "0.5232666", "0.51805365", "0.51756066", "0.51629615", "0.51546645", "0.5153261", "0.51527053", "0.512841", "0.5122391", "0.5119181", "0.50977355", "0.5092411", "0.5077381", "0.50607467", "0.50520235", "0.5049...
0.67284447
0
Converts a collection of W gridding functions C sampled on the points nu_C uniformly spaced in (0, 0.5) to a gridding correction function evaluated at the map coordinates in the vector x.
def C_to_grid_correction(C, nu_C, x, optimal=True): W = len(C) c = np.zeros(x.shape, dtype=float) d = np.zeros(x.shape, dtype=float) for n, x_val in enumerate(x): for rp in range(0, W): ellp = rp - (W / 2) + 1 for r in range(0, W): ell = r - (W / 2) + 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def calc_map_error_from_C(C, grid_correction, nu_C, x, W):\n M = len(nu_C)\n loss = np.zeros((len(x), 2, M), dtype=float)\n for n, x_val in enumerate(x):\n one_app = 0\n for r in range(0, W):\n ell = r - (W / 2) + 1\n one_app += grid_correction[n] * C[r, :] * np.exp(\n ...
[ "0.6200904", "0.5671499", "0.55249256", "0.5520188", "0.5498107", "0.54607385", "0.54401374", "0.542841", "0.5317046", "0.52916163", "0.5231932", "0.5194628", "0.5193709", "0.5158776", "0.51442903", "0.51167977", "0.5079062", "0.5059355", "0.5050859", "0.50388205", "0.5038744...
0.66061044
0
Sets the shape_id of this Shape2DRectangleTextBlock.
def shape_id(self, shape_id): if shape_id is None: raise ValueError("Invalid value for `shape_id`, must not be `None`") # noqa: E501 self._shape_id = shape_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_shape(self, shape_id):\n\n if shape_id:\n self.itemconfigure(shape_id, state=\"normal\")", "def shape_id(self):\n return self._shape_id", "def change_shape_color(self, shape_id, color):\n vector_object = self.get_vector_object(shape_id)\n shape_type = vector_obje...
[ "0.60192156", "0.56673026", "0.5564469", "0.54110205", "0.5390222", "0.52482164", "0.52162397", "0.5215874", "0.5130977", "0.5119315", "0.50880796", "0.50279295", "0.48886558", "0.4787307", "0.47755313", "0.47728887", "0.47154862", "0.46950215", "0.46555606", "0.46284413", "0...
0.69496423
0
Gets the shape_type of this Shape2DRectangleTextBlock.
def shape_type(self): return self._shape_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shape_type(self):\n return \"rectangle\"", "def get_shape_type(self):\n import GEOM\n sgeom = self.get_sgeom()\n shape_type = sgeom.GetShapeType()\n if shape_type is GEOM.COMPOUND:\n node = self.node\n geom_eng = node.get_sobj().GetFatherComponent().Ge...
[ "0.7800939", "0.6906725", "0.6726422", "0.6194463", "0.6084296", "0.5910267", "0.5859952", "0.5834096", "0.58311534", "0.58311534", "0.58311534", "0.58145547", "0.5807741", "0.5791213", "0.5791213", "0.5788903", "0.56940436", "0.5680316", "0.56779087", "0.5665348", "0.5610699...
0.7449617
1
Sets the top of this Shape2DRectangleTextBlock.
def top(self, top): self._top = top
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bb_top(self, bb_top: float):\n\n self._bb_top = bb_top", "def set_top_border(self, val):\n self.tborder = val", "def top(self, top):\n self.ptr.top(top)", "def set_top(self,top_name):\n self.top_name = top_name", "def DrawTop(screen, top_x, top_y, top_len, top_width):\n ...
[ "0.6420549", "0.60813415", "0.5948182", "0.5878213", "0.5715189", "0.5712271", "0.57035834", "0.5688907", "0.5624982", "0.55293196", "0.5527188", "0.5486971", "0.54622006", "0.5435511", "0.54039943", "0.53706056", "0.5361887", "0.5308511", "0.5273398", "0.52078736", "0.520787...
0.62173444
1
Gets the left of this Shape2DRectangleTextBlock.
def left(self): return self._left
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_left(self):\n\treturn min(self.x, self.x + self.w)", "def get_left_region(self):\n return self.string_level_blocks[0][0]", "def getLeft(self):\n return self.left", "def get_left(self):\n return self.left", "def left(self):\n return self.points['topLeft'].x", "def lef...
[ "0.7522003", "0.7402938", "0.7311204", "0.71956414", "0.7086489", "0.7086489", "0.7032535", "0.6958473", "0.6957601", "0.6891496", "0.6891091", "0.6879468", "0.6851114", "0.6836091", "0.6802085", "0.6785782", "0.67809045", "0.6741582", "0.6640889", "0.664047", "0.6602301", ...
0.6870199
13
Sets the left of this Shape2DRectangleTextBlock.
def left(self, left): self._left = left
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_left(self, left):\n self.left = left", "def SetValueLeft(self, *args, **kwargs):\n pass", "def set_left_border(self, val):\n self.lborder = val", "def leftsetlabel(self, label):\n self._setlabel(ITEM_LEFT_NODE, label)", "def left_alignment(self, left_alignment):\n\n ...
[ "0.686509", "0.6661685", "0.6381987", "0.6370267", "0.63409704", "0.63409704", "0.631235", "0.6256252", "0.6210121", "0.6193181", "0.61803514", "0.61312556", "0.61101264", "0.60811573", "0.60579747", "0.6056062", "0.5929458", "0.59248114", "0.5883548", "0.5867188", "0.58587",...
0.6429738
3
Gets the right of this Shape2DRectangleTextBlock.
def right(self): return self._right
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getRight(self):\n return self.right", "def right(self):\n return self.left + self.width", "def get_right(self):\n return self.right", "def get_right(self):\n return self.__right", "def _rect_right(self):\n\treturn max(self.x, self.x + self.w)", "def right(self):\n r...
[ "0.73818016", "0.7321981", "0.72888666", "0.7267341", "0.72345376", "0.71273994", "0.7099051", "0.7073101", "0.69680715", "0.691093", "0.6815161", "0.6775061", "0.6713807", "0.6699362", "0.6637186", "0.6637186", "0.6603685", "0.65533787", "0.65432495", "0.65346515", "0.650795...
0.7147565
6
Sets the right of this Shape2DRectangleTextBlock.
def right(self, right): self._right = right
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_right(self, right):\n self.right = right", "def set_right_border(self, val):\n self.rborder = val", "def rightbox(self):\r\n pass", "def set_right(self, nodeR):\n self.right = nodeR\n nodeR.left = self", "def rightsetlabel(self, label):\n self._setlabel(ITE...
[ "0.6809812", "0.65217835", "0.63988405", "0.62902987", "0.6285687", "0.6269046", "0.61549085", "0.6059204", "0.60306937", "0.6020268", "0.60060906", "0.59946847", "0.59946847", "0.5991822", "0.5964652", "0.59518164", "0.59511745", "0.59366125", "0.58642197", "0.5858307", "0.5...
0.64023983
2
Gets the bottom of this Shape2DRectangleTextBlock.
def bottom(self): return self._bottom
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_bottom(self):\n\treturn min(self.y, self.y + self.h)", "def bottom(self):\n return self.top + self.height", "def bottom(self):\n return self.points['bottomRight'].y", "def bottom(self):\n return self.points['bottomRight'].y", "def bottom(self):\n\n return self._bottom"...
[ "0.74772173", "0.74267656", "0.72585285", "0.72585285", "0.7052281", "0.70507616", "0.69573206", "0.68952525", "0.6878432", "0.67623746", "0.67469347", "0.67386717", "0.66603655", "0.6568077", "0.65495497", "0.65264744", "0.64265287", "0.64265287", "0.64265287", "0.63704985", ...
0.71161306
4
Sets the bottom of this Shape2DRectangleTextBlock.
def bottom(self, bottom): self._bottom = bottom
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bb_bottom(self, bb_bottom: float):\n\n self._bb_bottom = bb_bottom", "def bottom(self, bottom):\n self.ptr.bottom(bottom)", "def right_bottom(self, right_bottom):\n\n self._right_bottom = right_bottom", "def bottom(self, bottom):\n # type: (float) -> None\n\n if bottom ...
[ "0.6704906", "0.62727493", "0.61245036", "0.60802925", "0.5928367", "0.58943105", "0.58805734", "0.58449805", "0.58087236", "0.57370603", "0.57216716", "0.56728673", "0.5629905", "0.5593575", "0.5563231", "0.5528372", "0.5528372", "0.5528372", "0.5528372", "0.5528372", "0.546...
0.6822514
0
Entropy of loguniform(lower, upper).
def log_uniform_entropy(lambda_parameters): log_lower, log_upper = lambda_parameters r = log_upper - log_lower log_r = tf.math.log(r) # By definition, the entropy is given by: # 0.5/r*(tf.square(log_r + log_upper) - tf.square(log_r + log_lower)) # which can be simplified into: entropy = 0.5 * (log_upper ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def loguniform_dist(low, high, base=10):\n return ExponentiateDistribution(sp_uniform(low, high - low), base=base)", "def entropy(x):\n nz = np.nonzero(x)[0]\n return -np.sum(x[nz]*np.log2(x[nz]))", "def calculate_entropy(prob):\n return -(prob * math.log(prob,2))", "def entropy_function(c, n):\n...
[ "0.74055463", "0.71903676", "0.7185306", "0.71620476", "0.71406895", "0.7128413", "0.7078323", "0.7070169", "0.70489144", "0.7018412", "0.7008817", "0.69980127", "0.69782376", "0.69762266", "0.6964549", "0.69464725", "0.6931689", "0.6871495", "0.6849756", "0.68356353", "0.682...
0.7189027
2
Comprueba que no exista un email igual en la db
def clean_email(self): email = self.cleaned_data['email'] if User.objects.filter(email=email): raise forms.ValidationError('Ya existe un email igual en la db.') return email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def email_exist(email):\n return User.objects.filter(email=email).first()", "def is_duplicate_email(email):\n users = User.objects.filter(email=email).values()\n if len(users):\n return True\n return False", "def email_exists(self, input_email):\n # SQL query\n query = u\"SELEC...
[ "0.6951187", "0.6947426", "0.6939697", "0.6902025", "0.6876044", "0.6825116", "0.6824518", "0.68178904", "0.6806058", "0.67592824", "0.67427903", "0.67311686", "0.6728558", "0.6721517", "0.6700905", "0.6695736", "0.6692065", "0.6691475", "0.66516215", "0.66261053", "0.6623893...
0.6729679
12
take the dz_id from the user and calculate the change in the squared buoyancy frequency (deltaN2), the time derivative of the deltaN2, U, W, and the energy flux
def UI(): parser = argparse.ArgumentParser() parser.add_argument("dz_ID", type=int, help="enter the dz_id for which to compute the dn2t fields") args = parser.parse_args() a_xi_filename = compute_a_xi(args.dz_ID) print(a_xi_filename)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dynstall_oye_dxdt(t,fs,u,p):\n alpha = u['alpha'](t)\n f_st = p['F_st'](alpha)\n return 1/p['tau'] * (f_st - fs)", "def genfb(h, n, u, v, f, dt, dx, dy, du,dv,dn, beta=0.281105, eps=0.013, gamma=0.0880, mu=0.3, nu=0, dudt_x=dudt, dvdt_x=dvdt, dndt_x=dndt, ...
[ "0.57524276", "0.5723862", "0.5621687", "0.5559528", "0.555422", "0.55377465", "0.5531072", "0.5522136", "0.5522136", "0.5471251", "0.5463208", "0.54344845", "0.5406062", "0.5395713", "0.5349574", "0.532984", "0.5316216", "0.52882576", "0.5286489", "0.5278163", "0.52722156", ...
0.0
-1
Gets local time from Adafruit IO and converts to RFC3339 timestamp.
def get_current_time(time_max=False): # Get local time from Adafruit IO magtag.get_local_time(secrets["timezone"]) # Format as RFC339 timestamp cur_time = r.datetime if time_max: # maximum time to fetch events is midnight (4:59:59UTC) cur_time_max = time.struct_time( ( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_time():\n return datetime.datetime.now().isoformat()[:len('2017-01-24T10:44:00')]", "def timestampfromlocal(local):\n return local.timestamp()", "def local_time(self) -> SmartNvmeLocalTime:\n return self._local_time", "def get_rfc3339_time() -> Text:\n\n return datetime.datetime.utc...
[ "0.7244393", "0.68535745", "0.6848242", "0.67798615", "0.6317611", "0.6308159", "0.62619376", "0.6224105", "0.61826956", "0.6170282", "0.61633277", "0.6146402", "0.61453545", "0.6134305", "0.6119593", "0.61174554", "0.6103342", "0.6064742", "0.60631627", "0.60631627", "0.6052...
0.62963724
6
Return True if there are maxsize items in the queue.
def full(self): if self._maxsize <= 0: return False else: return self.qsize() >= self._maxsize
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isFull(self):\r\n if (len(self.queue) == self.maxlen):\r\n return True\r\n else:\r\n return False", "def isFull(self):\n return len(self.queue) == self.size", "def full(self) -> bool:\n return self.maxsize and self.qsize() >= self.maxsize", "def can_fit_m...
[ "0.82822573", "0.8080109", "0.76380914", "0.7579557", "0.7567582", "0.7340909", "0.72955596", "0.7223314", "0.72135717", "0.71849346", "0.71849346", "0.71733665", "0.71733665", "0.71603405", "0.71603405", "0.71582204", "0.7152462", "0.713222", "0.7123167", "0.7121756", "0.711...
0.78247136
2
Clone(itkHistogramThresholdCalculatorHDF self) > itkHistogramThresholdCalculatorHDF_Pointer
def Clone(self) -> "itkHistogramThresholdCalculatorHDF_Pointer": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramThresholdCalculatorHFF_Pointer\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHFF_Clone(self)", "def Clone(self) -> \"itkIsoDataThresholdCalculatorHDF_Pointer\":\n return _itkIsoDataThresholdCalculatorPython.itkIsoDataThresholdCalc...
[ "0.88814783", "0.8535747", "0.84613204", "0.841557", "0.83562887", "0.835291", "0.83238935", "0.8266374", "0.82311493", "0.77634656", "0.7749021", "0.77330387", "0.76981074", "0.7656313", "0.76416326", "0.76117224", "0.7610934", "0.75609124", "0.7535567", "0.75188655", "0.745...
0.92656183
0
SetInput(itkHistogramThresholdCalculatorHDF self, itkHistogramD input)
def SetInput(self, input: 'itkHistogramD') -> "void": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_SetInput(self, input)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetInput(self, input: 'itkHistogramF') -> \"void\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHFF_SetInput(self, input)", "def GetInput(self) -> \"itkHistogramD const *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_Get...
[ "0.8123755", "0.7995277", "0.7819633", "0.7754317", "0.77206993", "0.7682464", "0.7652422", "0.76395303", "0.76117814", "0.75249493", "0.7462011", "0.743823", "0.7427024", "0.73976463", "0.7378982", "0.73557746", "0.7025338", "0.6960099", "0.6936717", "0.6914628", "0.6881222"...
0.86103916
0
GetInput(itkHistogramThresholdCalculatorHDF self) > itkHistogramD
def GetInput(self) -> "itkHistogramD const *": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_GetInput(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetInput(self) -> \"itkHistogramF const *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHFF_GetInput(self)", "def GetInput(self) -> \"itkHistogramD const *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDUS_GetInput(self)",...
[ "0.80417496", "0.79388857", "0.7852524", "0.7807422", "0.7790463", "0.77873313", "0.7746299", "0.7689488", "0.7511938", "0.7462345", "0.744899", "0.7422016", "0.7378828", "0.73225105", "0.72948325", "0.72534156", "0.7137691", "0.7062351", "0.7045477", "0.69645655", "0.6950262...
0.8354466
0
GetOutput(itkHistogramThresholdCalculatorHDF self) > itkSimpleDataObjectDecoratorF
def GetOutput(self) -> "itkSimpleDataObjectDecoratorF *": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_GetOutput(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetOutput(self) -> \"itkSimpleDataObjectDecoratorF *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHFF_GetOutput(self)", "def GetOutput(self) -> \"itkSimpleDataObjectDecoratorSS *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalcula...
[ "0.82576466", "0.76309806", "0.76222956", "0.7573673", "0.7559672", "0.74936837", "0.72498846", "0.7219636", "0.721672", "0.709518", "0.69637024", "0.6925991", "0.6918334", "0.6899272", "0.68733454", "0.6809377", "0.67908573", "0.668213", "0.66255283", "0.65763104", "0.656251...
0.83868015
0
cast(itkLightObject obj) > itkHistogramThresholdCalculatorHDF
def cast(obj: 'itkLightObject') -> "itkHistogramThresholdCalculatorHDF *": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHistogramThresholdCalculatorHDF_cast(obj: 'itkLightObject') -> \"itkHistogramThresholdCalculatorHDF *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_cast(obj)", "def itkHistogramThresholdCalculatorHFF_cast(obj: 'itkLightObject') -> \"itkHistogramThresholdCalculato...
[ "0.84305525", "0.8130937", "0.8087672", "0.7884929", "0.78478736", "0.7679505", "0.7642253", "0.7639187", "0.76285255", "0.7553882", "0.7527779", "0.7522621", "0.7495677", "0.7475089", "0.74696153", "0.7466566", "0.7446613", "0.7340256", "0.7293685", "0.7281399", "0.72766", ...
0.8368825
1
New() > itkHistogramThresholdCalculatorHDF Create a new object of the class itkHistogramThresholdCalculatorHDF and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parame...
def New(*args, **kargs): obj = itkHistogramThresholdCalculatorHDF.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkHistogramThresholdCalculatorHFF.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkIsoDataThresholdCalculatorHDF.__New_orig__()\n import itkTemplate\n i...
[ "0.79170084", "0.7655347", "0.7557945", "0.75335467", "0.752353", "0.74569535", "0.74136233", "0.73496807", "0.72912496", "0.7012291", "0.69269824", "0.68995416", "0.6899371", "0.6859316", "0.68210465", "0.67842495", "0.67733043", "0.6744667", "0.668898", "0.6647827", "0.6590...
0.82674783
0
itkHistogramThresholdCalculatorHDF_cast(itkLightObject obj) > itkHistogramThresholdCalculatorHDF
def itkHistogramThresholdCalculatorHDF_cast(obj: 'itkLightObject') -> "itkHistogramThresholdCalculatorHDF *": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cast(obj: 'itkLightObject') -> \"itkHistogramThresholdCalculatorHDF *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_cast(obj)", "def itkHistogramThresholdCalculatorHFF_cast(obj: 'itkLightObject') -> \"itkHistogramThresholdCalculatorHFF *\":\n return _itkHisto...
[ "0.86564046", "0.8461245", "0.83249867", "0.8290677", "0.812963", "0.79540694", "0.787429", "0.78645575", "0.7861452", "0.7825497", "0.7801006", "0.77968216", "0.7789045", "0.7760812", "0.77103835", "0.7710365", "0.76758164", "0.76596904", "0.7602113", "0.7420767", "0.7350513...
0.88334835
0
Clone(itkHistogramThresholdCalculatorHDSS self) > itkHistogramThresholdCalculatorHDSS_Pointer
def Clone(self) -> "itkHistogramThresholdCalculatorHDSS_Pointer": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDSS_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramThresholdCalculatorHDUS_Pointer\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDUS_Clone(self)", "def Clone(self) -> \"itkHistogramThresholdCalculatorHFSS_Pointer\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThre...
[ "0.86939955", "0.8666705", "0.85134", "0.81593657", "0.8147534", "0.8075209", "0.80403954", "0.7970436", "0.777254", "0.7729952", "0.7625693", "0.7624848", "0.7618539", "0.7548771", "0.7539292", "0.740105", "0.73814386", "0.7291677", "0.7259793", "0.7246573", "0.7235794", "...
0.9278132
0
SetInput(itkHistogramThresholdCalculatorHDSS self, itkHistogramD input)
def SetInput(self, input: 'itkHistogramD') -> "void": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDSS_SetInput(self, input)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetInput(self, input: 'itkHistogramD') -> \"void\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDUS_SetInput(self, input)", "def SetInput(self, input: 'itkHistogramD') -> \"void\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculato...
[ "0.8211213", "0.8132615", "0.80877143", "0.793351", "0.77559966", "0.7728119", "0.7625162", "0.7544352", "0.74619085", "0.7408712", "0.73464894", "0.72795445", "0.7139996", "0.71007216", "0.7091152", "0.69895077", "0.698555", "0.691431", "0.6835399", "0.6793349", "0.67297626"...
0.865844
0
GetInput(itkHistogramThresholdCalculatorHDSS self) > itkHistogramD
def GetInput(self) -> "itkHistogramD const *": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDSS_GetInput(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetInput(self) -> \"itkHistogramD const *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDUS_GetInput(self)", "def GetInput(self) -> \"itkHistogramD const *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDF_GetInput(self)",...
[ "0.8009886", "0.79315066", "0.7712376", "0.7704615", "0.7630116", "0.75367403", "0.75031894", "0.74178004", "0.731632", "0.72785556", "0.72266436", "0.714163", "0.70590675", "0.7046739", "0.7038161", "0.7031897", "0.7015984", "0.69847316", "0.6978028", "0.6962541", "0.6931361...
0.81185436
0
GetOutput(itkHistogramThresholdCalculatorHDSS self) > itkSimpleDataObjectDecoratorSS
def GetOutput(self) -> "itkSimpleDataObjectDecoratorSS *": return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHDSS_GetOutput(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetOutput(self) -> \"itkSimpleDataObjectDecoratorSS *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHFSS_GetOutput(self)", "def GetOutput(self) -> \"itkSimpleDataObjectDecoratorUS *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalcu...
[ "0.8129221", "0.7971159", "0.77944267", "0.7749004", "0.76790535", "0.7365558", "0.73342556", "0.70549375", "0.69327694", "0.6846581", "0.6769344", "0.664167", "0.6591311", "0.65648717", "0.65342605", "0.6517359", "0.64893353", "0.64385414", "0.6427899", "0.6418675", "0.63599...
0.8336691
0