language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
int[] executeBatchInternal() throws SQLException { raiseSQLExceptionIfStatementIsClosed(); SQLException exceptionReturned = null; int[] updateCounts = new int[batch.size()]; batchQueryIDs.clear(); for (int i = 0; i < batch.size(); i++) { BatchEntry b = batch.get(i); try { ...
java
private Object createBusinessObject(EJSHome home, BeanMetaData bmd, String interfaceName, boolean ejblink) throws EJBException, NoSuchObjectException { Object retObj = ...
java
public void reset() { isEmpty_ = true; count_ = 0; theta_ = (long) (Long.MAX_VALUE * (double) samplingProbability_); final int startingCapacity = Util.getStartingCapacity(nomEntries_, lgResizeFactor_); lgCurrentCapacity_ = Integer.numberOfTrailingZeros(startingCapacity); keys_ = new long[startin...
python
def url(self, url, owner=None, **kwargs): """ Create the URL TI object. Args: owner: url: **kwargs: Return: """ return URL(self.tcex, url, owner=owner, **kwargs)
java
public String getParamEditorTitle() { if (CmsStringUtil.isEmpty(m_paramEditorTitle)) { return key(Messages.GUI_EDITOR_TITLE_PREFIX_0) + " " + getParamResource(); } return m_paramEditorTitle; }
java
protected boolean dropMessage(int channelId, IRTMPEvent message) { // whether or not to allow dropping functionality if (!dropEncoded) { log.trace("Not dropping due to flag, source type: {} (0=vod,1=live)", message.getSourceType()); return false; } // dont w...
java
public static CPDefinitionLink fetchByUuid_First(String uuid, OrderByComparator<CPDefinitionLink> orderByComparator) { return getPersistence().fetchByUuid_First(uuid, orderByComparator); }
python
def get_namespace_keys(app, limit): """Get namespace keys.""" ns_query = datastore.Query('__namespace__', keys_only=True, _app=app) return list(ns_query.Run(limit=limit, batch_size=limit))
python
def main(argv=None): """ Entry point :param argv: Program arguments """ parser = argparse.ArgumentParser(description="Multicast packets spy") parser.add_argument("-g", "--group", dest="group", default="239.0.0.1", help="Multicast target group (address)") parser.add_...
java
public static String millis(@Nullable String function, String column, String alias) { StringBuilder s = new StringBuilder(96).append("strftime('%s', "); if (function != null) { s.append(function).append('(').append(column).append(')'); } else { s.append(column); } return s.append(") * 1000 AS ").append(...
python
def parse_from_template(template_name): """ Return an element loaded from the XML in the template file identified by *template_name*. """ thisdir = os.path.split(__file__)[0] filename = os.path.join( thisdir, '..', 'templates', '%s.xml' % template_name ) with open(filename, 'rb')...
python
def match(value, query): """ Determine whether a value satisfies a query. """ if type(query) in [str, int, float, type(None)]: return value == query elif type(query) == dict and len(query.keys()) == 1: for op in query: if op == "$eq": return value == query[op] ...
java
public ApiResponse<ApiSuccessResponse> removeMediaWithHttpInfo(String mediatype, LogoutMediaData logoutMediaData) throws ApiException { com.squareup.okhttp.Call call = removeMediaValidateBeforeCall(mediatype, logoutMediaData, null, null); Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.g...
java
public void xmlWriteOn(FormattedWriter writer) throws IOException { writer.newLine(); writer.taggedValue("DMEUuid", dmeId); if(gatheringTargetDestUuid != null) { writer.newLine(); writer.taggedValue("gatheringTargetDestUuid", gatheringTargetDestUuid); } if(durablePseudoDestID != nu...
python
def dump(self): """Prints the project attributes.""" id = self.get("id") if not id: id = "(none)" else: id = id[0] parent = self.get("parent") if not parent: parent = "(none)" else: parent = parent[0] print...
java
@Override public void removeQueue(final String queueName, final boolean all) { for (final Worker worker : this.workers) { worker.removeQueue(queueName, all); } }
python
def delete_cancel_operation_by_id(cls, cancel_operation_id, **kwargs): """Delete CancelOperation Delete an instance of CancelOperation by its ID. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = ap...
python
def star_genecount_chart (self): """ Make a plot for the ReadsPerGene output """ # Specify the order of the different possible categories keys = OrderedDict() keys['N_genes'] = { 'color': '#2f7ed8', 'name': 'Overlapping Genes' } keys['N_noFeature'] = { 'color': '#0d233...
java
public void setKeyValue(String strSection, String key, String value) { Map section = getSectionEL(strSection); if (section == null) { section = newMap(); sections.put(strSection.toLowerCase(), section); } section.put(key.toLowerCase(), value); }
java
public static JavaPairRDD<Text, BytesPairWritable> combineFilesForSequenceFile(JavaSparkContext sc, String path1, String path2, PathToKeyConverter converter) { return combineFilesForSequenceFile(sc, path1, path2, converter, converter); }
java
public void performInsert() { if(insertMap == null) return; else { PersistenceBroker broker = tx.getBroker(); Iterator it = insertMap.values().iterator(); while(it.hasNext()) { NamedEntry namedEntry = (Name...
java
public void meta(MetaMessage meta) { //System.out.println("Meta Message detected : " + meta.getType()); if (meta.getType()==MidiMessageType.TEMPO_CHANGE || // Work around part with generic meta message work around (meta.getType()==MidiMessageType.MARKER && MetaMessageWA.isTempoMessage(meta)) ) { ...
python
def init_user(): """Create and populate the ~/.config/rapport directory tree if it's not existing. Doesn't interfere with already existing directories or configuration files. """ if not os.path.exists(USER_CONFIG_DIR): if rapport.config.get_int("rapport", "verbosity") >= 1: print("C...
java
@Override public LoopbackAckMessage createLPA(int cic) { LoopbackAckMessage msg = createLPA(); CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode(); code.setCIC(cic); msg.setCircuitIdentificationCode(code); return msg; }
python
def process_task(self): """Called when the registration request should be sent to the BBMD.""" pdu = RegisterForeignDevice(self.bbmdTimeToLive) pdu.pduDestination = self.bbmdAddress # send it downstream self.request(pdu)
java
protected Content getTypeParameters(ExecutableElement member) { LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, MEMBER_TYPE_PARAMS, member); return writer.getTypeParameterLinks(linkInfo); }
java
public XMLString getStringValue(int nodeHandle) { // ###zaj - researching nodes.readSlot(nodeHandle, gotslot); int nodetype=gotslot[0] & 0xFF; String value=null; switch (nodetype) { case TEXT_NODE: case COMMENT_NODE: case CDATA_SECTION_NODE: ...
java
public alluxio.grpc.ConfigCheckReport getReport() { return report_ == null ? alluxio.grpc.ConfigCheckReport.getDefaultInstance() : report_; }
java
public void initToken( String token ) { values.clear(); if( token == null ) return; String[] parts = token.split( "&" ); for( int i = 0; i < parts.length; i++ ) { String[] sub = parts[i].split( "=" ); if( sub.length < 1 ) continue; String name = sub[0]; String value = ""; if( sub.leng...
java
private static SoyValue normalizeNull(@Nullable SoyValue v) { return v == null ? NullData.INSTANCE : v; }
java
private void addIndexLink(DeprecatedAPIListBuilder builder, int type, Content contentTree) { if (builder.hasDocumentation(type)) { Content li = HtmlTree.LI(getHyperLink(ANCHORS[type], getResource(HEADING_KEYS[type]))); contentTree.addContent(li); }...
java
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "position") public JAXBElement<PointPropertyType> createPosition(PointPropertyType value) { return new JAXBElement<PointPropertyType>(_Position_QNAME, PointPropertyType.class, null, value); }
java
public MergeRequest createMergeRequest(Object projectIdOrPath, String sourceBranch, String targetBranch, String title, String description, Integer assigneeId, Integer targetProjectId, String[] labels, Integer milestoneId, Boolean removeSourceBranch, Boolean squash) throws GitLabApiException { Form ...
java
@SuppressWarnings("unchecked") // we know that the returning fragment is child of fragment. @TargetApi(Build.VERSION_CODES.HONEYCOMB) public static <F extends android.app.Fragment> F findFragmentById(android.app.FragmentManager manager, int id) { return (F) manager.findFragmentById(id); }
java
public static void trySkipCache(int fd, long offset, long len) { if (!initialized || !fadvisePossible || fd < 0) { return; } try { // we ignore the return value as this is just best effort to avoid the cache posix_fadvise(fd, offset, len, POSIX_FADV_DONTNEED); } catch (Unsupporte...
java
@Override public Spliterator<T> trySplit() { final HoldingConsumer<T> holder = new HoldingConsumer<>(); if(!tryAdvance(holder)) { return null; } final Object[] a = new Object[batchSize]; int j = 0; do { a[j] = holder.value; } ...
java
public static <K1,V1,K2,V2> void setMapperClass(Job job, Class<? extends Mapper<K1,V1,K2,V2>> cls) { if (MultithreadedMapper.class.isAssignableFrom(cls)) { throw new IllegalArgumentException("Can't have recursive " + "MultithreadedMapper inst...
java
@SuppressWarnings("unchecked") public EList<IfcStyledItem> getStyledByItem() { return (EList<IfcStyledItem>) eGet(Ifc2x3tc1Package.Literals.IFC_REPRESENTATION_ITEM__STYLED_BY_ITEM, true); }
python
def create(self): """Create the widget layout with all the information.""" b0 = QGroupBox('Dataset') form = QFormLayout() b0.setLayout(form) open_rec = QPushButton('Open Dataset...') open_rec.clicked.connect(self.open_dataset) open_rec.setToolTip('Click here to o...
python
def volume_delete(name, profile=None, **kwargs): ''' Destroy the volume name Name of the volume profile Profile to build on CLI Example: .. code-block:: bash salt '*' nova.volume_delete myblock profile=openstack ''' conn = _auth(profile, **kwargs) return...
java
protected static void reportAndClearAccumulators(Environment env, Map<String, Accumulator<?, ?>> accumulators, ArrayList<ChainedDriver<?, ?>> chainedTasks) { // We can merge here the accumulators from the stub and the chained // tasks. Type conflicts can occur here if counters with same name but // different ...
python
def mergetree(src, dst, symlinks=False, ignore=None, file_filter=None): """Just like `shutil.copytree`, except the `dst` dir may exist. The `src` directory will be walked and its contents copied into `dst`. If `dst` already exists the `src` tree will be overlayed in it; ie: existing files in `dst` will be over-w...
python
def worker_wrapper(worker_instance, pid_path): """ A wrapper to start RQ worker as a new process. :param worker_instance: RQ's worker instance :param pid_path: A file to check if the worker is running or not """ def exit_handler(*args): """ Remove pid file on exit ...
java
private MethodDeclaration generateGetParamMethodForSoyElementClass( TemplateParam param, boolean isAbstract) { JsType jsType = JsType.forIncrementalDomState(param.type()); String accessorSuffix = Ascii.toUpperCase(param.name().substring(0, 1)) + param.name().substring(1); if (isAbstract) { ...
python
def _symbol_or_keyword_handler(c, ctx, is_field_name=False): """Handles the start of an unquoted text token. This may be an operator (if in an s-expression), an identifier symbol, or a keyword. """ in_sexp = ctx.container.ion_type is IonType.SEXP if c not in _IDENTIFIER_STARTS: if in_sexp a...
python
def get_cert_types(self): """ Collect the certificate types that are available to the customer. :return: A list of dictionaries of certificate types :rtype: list """ result = self.client.service.getCustomerCertTypes(authData=self.auth) if result.statusCode == 0:...
java
private void ensureReferencedPKs(ModelDef modelDef, CollectionDescriptorDef collDef) throws ConstraintException { String elementClassName = collDef.getProperty(PropertyHelper.OJB_PROPERTY_ELEMENT_CLASS_REF); ClassDescriptorDef elementClassDef = modelDef.getClass(elementClassName)...
java
public int last() { for (int ii=array.length-1;ii>=0;ii--) { if (array[ii] != 0) { for (int jj=Math.min(bits,(ii+1)*8)-1;jj>=0;jj--) { if (isSet(jj)) { return jj; ...
java
@Override public DeleteMLModelResult deleteMLModel(DeleteMLModelRequest request) { request = beforeClientExecution(request); return executeDeleteMLModel(request); }
python
def do_format(value, *args, **kwargs): """ Apply python string formatting on an object: .. sourcecode:: jinja {{ "%s - %s"|format("Hello?", "Foo!") }} -> Hello? - Foo! """ if args and kwargs: raise FilterArgumentError('can\'t handle positional and keyword ' ...
python
def render_metadata(**kwargs): """ Unstrict template block for rendering metadata: <div class="metadata"> <img class="metadata-logo" src="{service_logo}"> <p class="metadata-name">{service_name}</p> <p class="metadata-timestamp"> <a href="{timestamp_link}">{timestamp}</a>...
python
def update_from_json(self, json_attributes, models=None, setter=None): ''' Updates the object's properties from a JSON attributes dictionary. Args: json_attributes: (JSON-dict) : attributes and values to update models (dict or None, optional) : Mapping of model ...
python
def init_widget(self): """ Initialize the underlying widget. """ super(AndroidAutoCompleteTextView, self).init_widget() self.widget.setAdapter(self.adapter)
java
static JsMessage createInboundWebMessage(String data) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createInboundWebMessage"); JsJmsMessage result = null; if (TraceComponent.isAnyTracingEnabled() && tc.isDebug...
java
public Java8CompositeHandler withUpdateHandler1(CountUpdateHandler h) { final UpdateHandler uh = new UpdateHandler() { public UpdateResult apply(String sql, List<Parameter> ps) { return new UpdateResult(h.apply(sql, ps)); } }; retu...
java
private static TileGroup importGroup(Xml nodeGroup) { final Collection<Xml> children = nodeGroup.getChildren(TileConfig.NODE_TILE); final Collection<TileRef> tiles = new ArrayList<>(children.size()); for (final Xml nodeTileRef : children) { final TileRef tileRef =...
python
def load_raw_arrays(self, fields, start_dt, end_dt, sids): """ Parameters ---------- fields : list of str 'open', 'high', 'low', 'close', or 'volume' start_dt: Timestamp Beginning of the window range. end_dt: Timestamp End of the window ra...
python
def _proxy(self): """ Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context :returns: IpAccessControlListContext for this IpAccessControlListInstance :rtype: twilio.rest.api.v2010.acc...
python
def disconnect(self): "Disconnects from the Redis server" self._parser.on_disconnect() if self._sock is None: return if self._selector is not None: self._selector.close() self._selector = None try: if os.getpid() == self.pid: ...
python
def pre_factor_kkt(Q, G, A): """ Perform all one-time factorizations and cache relevant matrix products""" nineq, nz, neq, _ = get_sizes(G, A) # S = [ A Q^{-1} A^T A Q^{-1} G^T ] # [ G Q^{-1} A^T G Q^{-1} G^T + D^{-1} ] U_Q = torch.potrf(Q) # partial cholesky of S m...
java
private static Object readQueryString(String queryName, Class<?> paramType, Type genericType, Annotation[] paramAnns, Message m, ...
java
public void setScriptText(String scriptText, String language) { GVRScriptFile newScript = new GVRJavascriptScriptFile(getGVRContext(), scriptText); mLanguage = GVRScriptManager.LANG_JAVASCRIPT; setScriptFile(newScript); }
java
public synchronized boolean execute(String workerName, String assignee, Runnable command) { if (!hasAvailableThread(workerName)) return false; Work work = new Work(workerName, assignee, command); recordSubmit(work); thread_pool.execute(work); return true; }
python
def on_input_timeout(self, cli): """ brings up the metadata for the command if there is a valid command already typed """ document = cli.current_buffer.document text = document.text text = text.replace('az ', '') if self.default_command: text = self.d...
java
public void marshall(Image image, ProtocolMarshaller protocolMarshaller) { if (image == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(image.getName(), NAME_BINDING); protocolMarshaller.m...
java
private void completeMultiPartUpload() throws IOException { AmazonClientException lastException; CompleteMultipartUploadRequest completeRequest = new CompleteMultipartUploadRequest(mBucketName, mKey, mUploadId, mTags); do { try { mClient.completeMultipartUpload(completeRequest); ...
java
public void marshall(CreateNetworkProfileRequest createNetworkProfileRequest, ProtocolMarshaller protocolMarshaller) { if (createNetworkProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
java
public void stop() { Principal user=null; try { // Handle run as if (_runAs!=null && _realm!=null) user=_realm.pushRole(null,_runAs); if (_servlet!=null) _servlet.destroy(); _servlet=null; ...
java
void recoverTransitionRead(DataNode datanode, int namespaceId, NamespaceInfo nsInfo, Collection<File> dataDirs, StartupOption startOpt, String nameserviceId) throws IOException { // First ensure datanode level format/snapshot/rollback is completed // recoverTransitionRead(datanode, nsInfo, dataDirs, start...
java
public java.lang.String getFatalStyle() { return (java.lang.String) getStateHelper().eval(PropertyKeys.fatalStyle); }
java
public Observable<SummarizeResultsInner> summarizeForSubscriptionLevelPolicyAssignmentAsync(String subscriptionId, String policyAssignmentName) { return summarizeForSubscriptionLevelPolicyAssignmentWithServiceResponseAsync(subscriptionId, policyAssignmentName).map(new Func1<ServiceResponse<SummarizeResultsInner...
java
public static void registerQueueLengthMetrics(MetricGroup group, ResultPartition partition) { ResultPartitionMetrics metrics = new ResultPartitionMetrics(partition); group.gauge("totalQueueLen", metrics.getTotalQueueLenGauge()); group.gauge("minQueueLen", metrics.getMinQueueLenGauge()); group.gauge("maxQueueLe...
python
def peekStorable(self, storable, record, _stack=None, **kwargs): """ Arguments: storable (StorableHandler): storable instance. record (any): record. _stack (CallStack): stack of parent object names. Returns: any: deserialized object. ...
java
public static IBond[] getBondArray(List<IBond> list) { IBond[] ret = new IBond[list.size()]; for (int i = 0; i < ret.length; ++i) ret[i] = list.get(i); return ret; }
python
def stop(instance_id, force=False, call=None): ''' Stop an instance. CLI Examples: .. code-block:: bash salt-cloud -a stop i-2f733r5n salt-cloud -a stop i-2f733r5n force=True ''' if call != 'action': raise SaltCloudSystemExit( 'The stop action must be calle...
python
def overlay_gateway_access_lists_mac_in_cg_mac_acl_in_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") overlay_gateway = ET.SubElement(config, "overlay-gateway", xmlns="urn:brocade.com:mgmt:brocade-tunnels") name_key = ET.SubElement(overlay_gateway, ...
python
def set_line_width(self, width=1.): """Set line width Parameters ---------- width : float The line width. """ width = float(width) if width < 0: raise RuntimeError('Cannot have width < 0') self.glir.command('FUNC', 'glLineWidth...
java
@Column(header = org.opencms.workplace.commons.Messages.GUI_LABEL_USER_LAST_MODIFIED_0, order = 70) public String getUserLastModified() { return m_bean.getUserLastModified(); }
python
def extract_notebook_metatab(nb_path: Path): """Extract the metatab lines from a notebook and return a Metapack doc """ from metatab.rowgenerators import TextRowGenerator import nbformat with nb_path.open() as f: nb = nbformat.read(f, as_version=4) lines = '\n'.join(['Declare: metatab-lat...
python
def archive_insert_data(self, data_dump): ''' :param data: Archive table data :type data: list[archive] :raises: IOError ''' with self.session as session: try: data = [self.tables.archive(**entry) for entry in data_dump] sessio...
python
def from_person(person): """ Copy person :param person: Person to copy into new instance :type person: Person :rtype: Person """ p = Person() p.id = person.id p.sitting = person.sitting return p
python
def end_experiment(self): """Terminates a running experiment""" if self.exp_config.get("mode") != "debug": HerokuApp(self.app_id).destroy() return True
python
def _check_age(self, pub, min_interval=timedelta(seconds=0)): """Check the age of the receiver. """ now = datetime.utcnow() if (now - self._last_age_check) <= min_interval: return LOGGER.debug("%s - checking addresses", str(datetime.utcnow())) self._last_age_...
java
public void configure() { if (configurator != null && !underConfiguration.get() && underConfiguration.compareAndSet(false, true)) { try { configurator.configure(this); } finally { underConfiguration.set(false); } } }
java
@Validate public synchronized void configure() { // Thymeleaf specifics String mode = configuration.getWithDefault("application.template.thymeleaf.mode", "HTML5"); int ttl = configuration.getIntegerWithDefault("application.template.thymeleaf.ttl", 60 * 1000); if (configuration.isDev...
java
@Override long[] getCache() { if (mem_ == null) { return (hashTable_ != null) ? hashTable_ : new long[0]; } //Direct final int arrLongs = 1 << lgArrLongs_; final long[] outArr = new long[arrLongs]; mem_.getLongArray(CONST_PREAMBLE_LONGS << 3, outArr, 0, arrLongs); return outArr; }
python
def _find(api_method, query, limit, return_handler, first_page_size, **kwargs): ''' Takes an API method handler (dxpy.api.find*) and calls it with *query*, and then wraps a generator around its output. Used by the methods below. Note that this function may only be used for /system/find* methods. ''' ...
python
def to_irc(self) -> int: """ Convert to mIRC color Code :return: IRC color code """ d = { (self.BLACK, True): 14, (self.BLACK, False): 1, (self.RED, True): 4, (self.RED, False): 5, (self.GREEN, True): 9, (sel...
java
public static CPInstance fetchByC_NotST_First(long CPDefinitionId, int status, OrderByComparator<CPInstance> orderByComparator) { return getPersistence() .fetchByC_NotST_First(CPDefinitionId, status, orderByComparator); }
python
def notify(self, message): """Monitor output from heroku process. This overrides the base class's `notify` to make sure that we stop if the status-monitoring thread has determined that the experiment is complete. """ if self.complete: return HerokuLocalWrappe...
python
def animate(self, images, delay=.25): """Displays each of the input images in order, pausing for "delay" seconds after each image. Keyword arguments: image -- An iterable collection of Image objects. delay -- How many seconds to wait after displaying an image before ...
java
public FieldType calcFieldType( String content ) { final SnippetBuilder.SnippetType snippetType = SnippetBuilder.getType( content ); if ( snippetType.equals( SnippetBuilder.SnippetType.FORALL ) ) { return FieldType.FORALL_FIELD; } else if ( !snippetType.equals( Snippe...
python
def change_storage_class(self, new_storage_class, dst_bucket=None): """ Change the storage class of an existing key. Depending on whether a different destination bucket is supplied or not, this will either move the item within the bucket, preserving all metadata and ACL info buck...
java
public void afterPostCreate(BeanO beanO, Object primaryKey) throws CreateException, RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2 if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "afterPostCreate",...
python
def filter_cols(model, *filtered_columns): """Return columnsnames for a model except named ones. Useful for defer() for example to retain only columns of interest """ m = sa.orm.class_mapper(model) return list( {p.key for p in m.iterate_properties if hasattr(p, "columns")}.difference( ...
java
public DescribeMetricCollectionTypesResult withMetrics(MetricCollectionType... metrics) { if (this.metrics == null) { setMetrics(new com.amazonaws.internal.SdkInternalList<MetricCollectionType>(metrics.length)); } for (MetricCollectionType ele : metrics) { this.metrics.ad...
java
public static @CheckForNull Class<?> _findLoadedClass(ClassLoader cl, String name) { synchronized (getClassLoadingLock(cl, name)) { return (Class) invoke(FIND_LOADED_CLASS, RuntimeException.class, cl, name); } }
java
public void marshall(GetOperationDetailRequest getOperationDetailRequest, ProtocolMarshaller protocolMarshaller) { if (getOperationDetailRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getO...
python
def _activate(self, icon): """Handle a left click event (show the menu).""" self._popup_menu(icon, button=0, time=Gtk.get_current_event_time(), extended=False)
python
def tftp_update_bios(server=None, path=None): ''' Update the BIOS firmware through TFTP. Args: server(str): The IP address or hostname of the TFTP server. path(str): The TFTP path and filename for the BIOS image. CLI Example: .. code-block:: bash salt '*' cimc.tftp_updat...