language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def smart_str(s, encoding='utf-8', errors='strict'): """ Returns a bytestring version of 's', encoded as specified in 'encoding'. If strings_only is True, don't convert (some) non-string-like objects. from django """ if not isinstance(s, basestring): try: return str(s) ...
python
def request_permission(cls, fine=True): """ Requests permission and returns an async result that returns a boolean indicating if the permission was granted or denied. """ app = AndroidApplication.instance() permission = (cls.ACCESS_FINE_PERMISSION ...
java
final public int[] readWriteMultipleRegisters(int serverAddress, int readAddress, int readQuantity, int writeAddress, int[] registers) throws ModbusProtocolException, ModbusNumberException, ModbusIOException { ModbusRequest request = ModbusRequestBuilder.getInstance().buildReadWriteMultipleRegisters...
java
private static void _searchFromURL(Set<URL> result, String prefix, String suffix, URL url) throws IOException { boolean done = false; InputStream is = _getInputStream(url); if (is != null) { try { ZipInputStream zis; if (is ins...
python
def commissionerUnregister(self): """stop commissioner Returns: True: successful to stop commissioner False: fail to stop commissioner """ print '%s call commissionerUnregister' % self.port cmd = WPANCTL_CMD + 'commissioner stop' print cmd ...
java
static String getDropDownButtonHtml(FontIcon icon) { return "<div tabindex=\"0\" role=\"button\" class=\"v-button v-widget borderless v-button-borderless " + OpenCmsTheme.TOOLBAR_BUTTON + " v-button-" + OpenCmsTheme.TOOLBAR_BUTTON + "\"><span class=\"v-button-wra...
python
def on_security_data_node(self, node): """process a securityData node - FIXME: currently not handling relateDate node """ sid = XmlHelper.get_child_value(node, 'security') farr = node.getElement('fieldData') dmap = defaultdict(list) for i in range(farr.numValues()): p...
java
public DMatrixRMaj next( DMatrixRMaj x ) { for( int i = 0; i < r.numRows; i++ ) { r.set(i,0,rand.nextGaussian()); } x.set(mean); multAdd(A,r,x); return x; }
java
public FieldList setHandle(Object bookmark, int iHandleType) throws DBException { this.setCurrentRecord(this.getBaseRecord()); Object[] rgobjEnabledFields = this.getBaseRecord().setEnableFieldListeners(false); try { Record record = (Record)super.setHandle(bookmark, iHandleType); ...
python
def resource_url(self): """str: Root URL for IBM Streams REST API""" if self._iam: self._resource_url = self._resource_url or _get_iam_rest_api_url_from_creds(self.rest_client, self.credentials) else: self._resource_url = self._resource_url or _get_rest_api_url_from_creds...
java
public void queueNotification (ObserverList<Object> observers, ObserverOp<Object> event) { _notify.add(new Tuple<ObserverList<Object>,ObserverOp<Object>>(observers, event)); }
java
private static void doLoadSpringGroovyResources(RuntimeSpringConfiguration config, GrailsApplication application, GenericApplicationContext context) { loadExternalSpringConfig(config, application); if (context != null) { springGroovyResourc...
java
public DeweyNumber increase(int times) { int[] newDeweyNumber = Arrays.copyOf(deweyNumber, deweyNumber.length); newDeweyNumber[deweyNumber.length - 1] += times; return new DeweyNumber(newDeweyNumber); }
python
def format_epilog(self, ctx, formatter): """Writes the epilog into the formatter if it exists.""" if self.epilog: formatter.write_paragraph() with formatter.indentation(): formatter.write_text(self.epilog)
python
def override_properties(self, hosts): """Handle service_overrides property for hosts ie : override properties for relevant services :param hosts: hosts we need to apply override properties :type hosts: alignak.objects.host.Hosts :return: None """ ovr_re = re.comp...
python
def from_url(url, db=None, **kwargs): """ Returns an active Redis client generated from the given database URL. Will attempt to extract the database id from the path url fragment, if none is provided. """ from redis.client import Redis return Redis.from_url(url, db, **kwargs)
java
@Override @UiChild(limit = 1, tagname = "widget") public void setChildWidget(final TakesValue<T> pwidget) { widget = (Widget) pwidget; contents.add(widget); setEditor(new ExtendedValueBoxEditor<>(pwidget, this)); if (pwidget instanceof HasFocusHandlers) { ((HasFocusHandlers) pwidget).addFocusH...
java
public Matrix4x3d translateLocal(Vector3dc offset) { return translateLocal(offset.x(), offset.y(), offset.z()); }
python
def from_string(values, separator, remove_duplicates = False): """ Splits specified string into elements using a separator and assigns the elements to a newly created AnyValueArray. :param values: a string value to be split and assigned to AnyValueArray :param separator: a sepa...
python
def CreateGroup(self, GroupName): """Creates a custom contact group. :Parameters: GroupName : unicode Group name. :return: A group object. :rtype: `Group` :see: `DeleteGroup` """ groups = self.CustomGroups self._DoCommand('CREATE G...
python
def save_channels(self, checked=False, test_name=None): """Save channel groups to file.""" self.read_group_info() if self.filename is not None: filename = self.filename elif self.parent.info.filename is not None: filename = (splitext(self.parent.info.filename)[0]...
python
def image_alias_delete(image, alias, remote_addr=None, cert=None, key=None, verify_cert=True): ''' Delete an alias (this is currently not restricted to the image) image : An image ...
java
protected String createFile(String dir, String fileName, byte[] content) { String baseName = FilenameUtils.getBaseName(fileName); String ext = FilenameUtils.getExtension(fileName); String downloadedFile = FileUtil.saveToFile(dir + baseName, ext, content); return linkToFile(downloadedFile...
python
def GetMemSwappedMB(self): '''Retrieves the amount of memory that has been reclaimed from this virtual machine by transparently swapping guest memory to disk.''' counter = c_uint() ret = vmGuestLib.VMGuestLib_GetMemSwappedMB(self.handle.value, byref(counter)) if ret != VMGUEST...
python
def computeEnvelope(self, placeCode): """ Compute an envelope for use in suppressing border cells. :param placeCode: The place code representing the population the envelope will be used for. :return: A numpy array that can be elementwise-multiplied with activations for the given...
java
public void setScheduleActions(java.util.Collection<ScheduleAction> scheduleActions) { if (scheduleActions == null) { this.scheduleActions = null; return; } this.scheduleActions = new java.util.ArrayList<ScheduleAction>(scheduleActions); }
java
private void saveAttributesBeforeInclude(final Invocation inv) { ServletRequest request = inv.getRequest(); logger.debug("Taking snapshot of request attributes before include"); Map<String, Object> attributesSnapshot = new HashMap<String, Object>(); Enumeration<?> attrNames = request.get...
python
def set_last_row_idx(self, last_row_idx): ''' Parameters ---------- param last_row_idx : int number of rows ''' assert last_row_idx >= self._max_row self._max_row = last_row_idx return self
java
public byte[] toByteArray() { final byte[] data = new byte[7]; data[0] = (byte) oindex; data[1] = (byte) id; data[2] = (byte) pindex; data[3] = (byte) (write ? 0x80 : 0x00); data[3] |= pdt & 0x3f; data[4] = (byte) (maxElems >> 8); data[5] = (byte) maxElems; data[6] = (byte) (rLevel << 4 | (wLevel & 0...
java
protected void subAppend(LoggingEvent event) { long n = event.timeStamp; if (n >= nextCheck) { try { now.setTime(n); cleanupAndRollOver(); } catch (IOException ioe) { if (ioe instanceof InterruptedIOException) { Thread.currentThread().interrupt(); } LogLog.error("rollOver() ...
java
private EthereumBlockHeader parseRLPBlockHeader(RLPList rlpHeader) { EthereumBlockHeader result = new EthereumBlockHeader(); result.setParentHash(((RLPElement) rlpHeader.getRlpList().get(0)).getRawData()); result.setUncleHash(((RLPElement) rlpHeader.getRlpList().get(1)).getRawData()); result.setCoinBase(((RLPEl...
python
def _checkSetpointValue( setpointvalue, maxvalue ): """Check that the given setpointvalue is valid. Args: * setpointvalue (numerical): The setpoint value to be checked. Must be positive. * maxvalue (numerical): Upper limit for setpoint value. Must be positive. Raises: ...
python
def to_dataframe(self, **kwargs): """Load up the CSV file as a pandas dataframe""" return pandas.io.parsers.read_csv(self.path, sep=self.d, **kwargs)
python
def execute_node(self, node, verbatim_exe = False): """ Execute this node immediately on the local machine """ node.executed = True # Check that the PFN is for a file or path if node.executable.needs_fetching: try: # The pfn may have been marked local...
python
def read_namespaced_config_map(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_config_map # noqa: E501 read the specified ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True...
java
private int readNextToken(final char[] srcChars, int start, final int len, final StrBuilder workArea, final List<String> tokenList) { // skip all leading whitespace, unless it is the // field delimiter or the quote character while (start < len) { final int removeLen = Math.max( ...
python
def install_missing(name, version=None, source=None): ''' Instructs Chocolatey to install a package if it doesn't already exist. .. versionchanged:: 2014.7.0 If the minion has Chocolatey >= 0.9.8.24 installed, this function calls :mod:`chocolatey.install <salt.modules.chocolatey.install>` i...
python
def inference(self, observed_arr): ''' Draws samples from the `true` distribution. Args: observed_arr: `np.ndarray` of observed data points. Returns: `np.ndarray` of inferenced. ''' self.__pred_arr = self.__lstm_model.infere...
python
def _unsigned_bounds(self): """ Get lower bound and upper bound for `self` in unsigned arithmetic. :return: a list of (lower_bound, upper_bound) tuples. """ ssplit = self._ssplit() if len(ssplit) == 1: lb = ssplit[0].lower_bound ub = ssplit[0].up...
python
def channel(val: Any, default: Any = RaiseTypeErrorIfNotProvided ) -> Union[Tuple[np.ndarray], Sequence[TDefault]]: r"""Returns a list of matrices describing the channel for the given value. These matrices are the terms in the operator sum representation of a quantum channel. If the...
python
def filename_generate(extension, database_name='', servername=None, content_type='db', wildcard=None): """ Create a new backup filename. :param extension: Extension of backup file :type extension: ``str`` :param database_name: If it is database backup specify its name :type database_name: ``st...
python
def remote_image_request(self, image_url, params=None): """ Send an image for classification. The imagewill be retrieved from the URL specified. The params parameter is optional. On success this method will immediately return a job information. Its status will initially ...
java
public static void runExample( AdManagerServices adManagerServices, AdManagerSession session, long reconciliationOrderReportId) throws RemoteException { // Get the ReconciliationOrderReportService. ReconciliationOrderReportServiceInterface reconciliationOrderReportService = adMan...
python
def map_variable( self, variable, points, input_units="same", *, name=None, parent=None, verbose=True ) -> "Data": """Map points of an axis to new points using linear interpolation. Out-of-bounds points are written nan. Parameters ---------- variable : string ...
python
def __restore_processing_state(self): """ Restores the processing state. """ steps, value, message, state = self.__processing_state self.Application_Progress_Status_processing.Processing_progressBar.setRange(0, steps) self.Application_Progress_Status_processing.Processi...
python
def _get_service_state(service_id: str): """Get the Service state object for the specified id.""" LOG.debug('Getting state of service %s', service_id) services = get_service_id_list() service_ids = [s for s in services if service_id in s] if len(service_ids) != 1: ret...
python
def value_count(self, key): """ Transactional implementation of :func:`MultiMap.value_count(key) <hazelcast.proxy.multi_map.MultiMap.value_count>` :param key: (object), the key whose number of values is to be returned. :return: (int), the number of values matching the given key ...
java
protected void eventPreUnlocked(SIMPMessage msg, TransactionCommon tran) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "eventPreUnlocked", new Object[]{ msg, tran}); if ((msg.guessRedeliveredCount() + 1) >= _baseDestHandler.getMaxFailedDeliveries()) { ...
java
public <T extends Tag> Optional<T> getTag(@NonNull Class<T> tClass) { return getTag().filter(tClass::isInstance).map(Cast::<T>as); }
python
def check_constraint_convergence(X, L, LX, Z, U, R, S, step_f, step_g, e_rel, e_abs): """Calculate if all constraints have converged. Using the stopping criteria from Boyd 2011, Sec 3.3.1, calculate whether the variables for each constraint have converged. """ if isinstance(L, list): M = l...
java
public void draw(float x, float y, float srcx, float srcy, float srcx2, float srcy2) { draw(x,y,x+width,y+height,srcx,srcy,srcx2,srcy2); }
python
def eval_objfn(self): r"""Compute components of objective function as well as total contribution to objective function. Data fidelity term is :math:`(1/2) \| \mathbf{x} - \mathbf{s} \|_2^2` and regularisation term is :math:`\| W_{\mathrm{tv}} \sqrt{(G_r \mathbf{x})^2 + (G_c \math...
python
def parseProfileLine(fp): ''' Helper function for profile parsing @param fp - the file pointer to get the next line from @return - (kmer, kmerCount) as (string, int) ''' nextLine = fp.readline() if nextLine == None or nextLine == '': return (None, None) else: pieces = nex...
java
public void start() { try { if (start.compareAndSet(false, true)) { scheduledFuture = RETRY_EXECUTOR_SERVICE.scheduleWithFixedDelay(new Runner() , 30, 30, TimeUnit.SECONDS); } LOGGER.info("Feedback job checker started!"); } cat...
python
def findPreviousItem(self, item): """ Returns the previous item in the tree. :param item | <QtGui.QTreeWidgetItem> :return <QtGui.QTreeWidgetItem> || None """ if not item: return None while item.parent(): ...
java
protected void addSorting(CmsSelectQuery select, TableAlias users, CmsUserSearchParameters searchParams) { boolean ascending = searchParams.isAscending(); String ordering = getSortExpression(users, searchParams); if (ascending) { ordering += " ASC"; } else { orde...
java
@Override public String invoke(Object inConn, String request, int timeout, Map<String, String> headers) throws ConnectionException, AdapterException { HttpHelper httpHelper = null; Object conn = inConn; try { httpHelper = getHttpHelper(conn); if (headers != null)...
python
def pipeline_getter(self): "For duck-typing with *Spec types" if not self.derivable: raise ArcanaUsageError( "There is no pipeline getter for {} because it doesn't " "fallback to a derived spec".format(self)) return self._fallback.pipeline_getter
python
def autoLayoutNodes( self, nodes, padX = None, padY = None, direction = Qt.Horizontal, layout = 'Layered', animate = 0, centerOn = None, ...
java
private static Typeface getTypeface(final String name, final Context context) { Typeface typeface = TYPEFACES.get(name); if (typeface == null) { typeface = Typeface.createFromAsset(context.getAssets(), name); TYPEFACES.put(name, typeface); } return typeface; }
java
public void setCreditCount(String bucket, int count) { ArrayList<String> buckets = getBuckets(); if (!buckets.contains(bucket)) { buckets.add(bucket); setBuckets(buckets); } setInteger(KEY_CREDIT_BASE + bucket, count); }
java
public EClass getIfcFlowStorageDevice() { if (ifcFlowStorageDeviceEClass == null) { ifcFlowStorageDeviceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(250); } return ifcFlowStorageDeviceEClass; }
java
public Observable<Void> deleteVnetRouteAsync(String resourceGroupName, String name, String vnetName, String routeName) { return deleteVnetRouteWithServiceResponseAsync(resourceGroupName, name, vnetName, routeName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(...
java
public T delayAlpha(@FloatRange(from = 0.0, to = 1.0) float end) { getDelayedProcessor().addProcess(ALPHA, end); return self(); }
java
public boolean setMenuTextForSwitchOff(XComponentContext xContext) { boolean ret = true; XMenuBar menubar = OfficeTools.getMenuBar(xContext); if (menubar == null) { MessageHandler.printToLogFile("Menubar is null"); return ret; } XPopupMenu toolsMenu = null; XPopupMenu ltMenu = null; ...
python
def get_option_chain(self, code, start=None, end=None, option_type=OptionType.ALL, option_cond_type=OptionCondType.ALL): """ 通过标的股查询期权 :param code: 股票代码,例如:'HK.02318' :param start: 开始日期,该日期指到期日,例如'2017-08-01' :param end: 结束日期(包括这一天),该日期指到期日,例如'2017-08-30'。 注意,时间范围最多30天 ...
python
def sign(self, data): """ Create an URL-safe, signed token from ``data``. """ data = signing.b64_encode(data).decode() return self.signer.sign(data)
python
def MOVE(classical_reg1, classical_reg2): """ Produce a MOVE instruction. :param classical_reg1: The first classical register, which gets modified. :param classical_reg2: The second classical register or immediate value. :return: A ClassicalMove instance. """ left, right = unpack_reg_val_pa...
java
public org.tensorflow.framework.FunctionDefLibrary getLibrary() { return library_ == null ? org.tensorflow.framework.FunctionDefLibrary.getDefaultInstance() : library_; }
java
public String getCookie(String name, String defaultValue) { Cookie cookie = getCookieObject(name); return cookie != null ? cookie.getValue() : defaultValue; }
java
public static Ticker adaptTicker(PaymiumTicker PaymiumTicker, CurrencyPair currencyPair) { BigDecimal bid = PaymiumTicker.getBid(); BigDecimal ask = PaymiumTicker.getAsk(); BigDecimal high = PaymiumTicker.getHigh(); BigDecimal low = PaymiumTicker.getLow(); BigDecimal last = PaymiumTicker.getPrice()...
java
protected void configureSsl(SslContextFactory factory, Ssl ssl, SslStoreProvider sslStoreProvider) { factory.setProtocol(ssl.getProtocol()); configureSslClientAuth(factory, ssl); configureSslPasswords(factory, ssl); factory.setCertAlias(ssl.getKeyAlias()); if (!ObjectUtils.isEmpty(ssl.getCiphers())) { f...
java
public void marshall(BackupRuleInput backupRuleInput, ProtocolMarshaller protocolMarshaller) { if (backupRuleInput == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(backupRuleInput.getRuleName(), RUL...
java
public HtmlPolicyBuilder allowElements( ElementPolicy policy, String... elementNames) { invalidateCompiledState(); for (String elementName : elementNames) { elementName = HtmlLexer.canonicalName(elementName); ElementPolicy newPolicy = ElementPolicy.Util.join( elPolicies.get(elementNa...
python
def tanh(x, context=None): """ Return the hyperbolic tangent of x. """ return _apply_function_in_current_context( BigFloat, mpfr.mpfr_tanh, (BigFloat._implicit_convert(x),), context, )
python
def posterior_samples_f(self, X, size=10, full_cov=True, **predict_kwargs): """ Samples the posterior TP at the points X. :param X: The points at which to take the samples. :type X: np.ndarray (Nnew x self.input_dim) :param size: the number of a posteriori samples. :type...
python
def _kwargs_checks_gen(self, decorated_function, function_spec, arg_specs): """ Generate checks for keyword argument testing :param decorated_function: function decorator :param function_spec: function inspect information :param arg_specs: argument specification (same as arg_specs in :meth:`.Verifier.decorate`...
java
@Override public Result<Void> delAdminFromNS(AuthzTrans trans, HttpServletResponse resp, String ns, String id) { TimeTaken tt = trans.start(DELETE_NS_ADMIN + ' ' + ns + ' ' + id, Env.SUB|Env.ALWAYS); try { Result<Void> rp = service.delAdminNS(trans, ns, id); switch(rp.status) { case OK: setC...
java
@Deprecated @SuppressWarnings("unchecked") public MainNode<K, V> READ_PREV() { return (MainNode<K, V>) updater.get(this); }
python
def from_modules(self, modules, no_dc=False, no_a=False, record_defs=False, lax_yang_version=False, debug=0): """Return the instance representing mapped input modules.""" self.namespaces = { "urn:ietf:params:xml:ns:netmod:dsdl-annotations:1" : "nma", } if...
java
public QueryAtomGroupImpl pop() { QueryAtomGroupImpl group = new QueryAtomGroupImpl(); boolean first = true; for (QueryAtom atom : atoms) { if (first) { first = false; } else { group.addAtom(atom); } } ...
python
def is_affirmative(self, section, option): """ Return true if the section option combo exists and it is set to a truthy value. """ return self.has_option(section, option) and \ lib.is_affirmative(self.get(section, option))
python
def clear_rubric(self): """Clears the rubric. raise: NoAccess - ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ # Implemented from template for osid.resource.ResourceForm.clear_a...
java
public void enqueueOperation(final String key, final Operation o) { checkState(); StringUtils.validateKey(key, opFact instanceof BinaryOperationFactory); addOperation(key, o); }
python
def from_file(cls, f): """Load the history of a ``NeuralNet`` from a json file. Parameters ---------- f : file-like object or str """ with open_file_like(f, 'r') as fp: return cls(json.load(fp))
java
public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch...
java
public final boolean setScheduledForFlush(boolean flag) { if (flag) { // If the current tag is set to false, switch it to true return scheduledForFlush.compareAndSet(false, true); } scheduledForFlush.set(false); return true; }
python
def isqref(object): """ Get whether the object is a I{qualified reference}. @param object: An object to be tested. @type object: I{any} @rtype: boolean @see: L{qualify} """ return ( isinstance(object, tuple) and len(object) == 2 and isinstance(object[0], basestrin...
python
def _cutadapt_trim_cmd(fastq_files, quality_format, adapters, out_files, data): """Trimming with cutadapt, using version installed with bcbio-nextgen. """ if all([utils.file_exists(x) for x in out_files]): return out_files if quality_format == "illumina": quality_base = "64" else: ...
java
public static <T extends Enum<T>> EnumOperation<T> enumOperation(Class<? extends T> type, Operator operator, Expression<?>... args) { return new EnumOperation<T>(type, operator, args); }
java
public boolean addNode(final NodeInterval newNode, final AddNodeCallback callback) { Preconditions.checkNotNull(newNode); Preconditions.checkNotNull(callback); if (!isRoot() && newNode.getStart().compareTo(start) == 0 && newNode.getEnd().compareTo(end) == 0) { return callback.onExi...
python
def get_params_from_kv(self, arg_params, aux_params): """ Copy data from kvstore to `arg_params` and `aux_params`. Parameters ---------- arg_params : list of NDArray Target parameter arrays. aux_params : list of NDArray Target aux arrays. Notes ...
python
def _set_logging( logger_name="colin", level=logging.INFO, handler_class=logging.StreamHandler, handler_kwargs=None, format='%(asctime)s.%(msecs).03d %(filename)-17s %(levelname)-6s %(message)s', date_format='%H:%M:%S'): """ Set personal logger for this library. ...
java
public static Object instantiateObject(String className, ClassLoader classLoader) { Object object; try { object = loadClass(className, classLoader).newInstance(); } catch ( Throwable e ) { throw new RuntimeException( "Unable to i...
java
protected void writeBlock(Writer writer, String firstLineHeader, String header, String block) throws IOException { writeBlock(writer, firstLineHeader, header, block, wrapType, wrapChar, header.length()); }
python
def get_value(self): """Get the current value of the underlying measurement. Calls the tracked function and stores the value in the wrapped measurement as a side-effect. :rtype: int, float, or None :return: The current value of the wrapped function, or `None` if it no ...
java
public void marshall(Credentials credentials, ProtocolMarshaller protocolMarshaller) { if (credentials == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(credentials.getAccessToken(), ACCESSTOKEN_BIND...
java
private void initContextMenu() { m_contextMenu.removeItems(); MenuItem main = m_contextMenu.addItem("", null); main.setIcon(FontOpenCms.CONTEXT_MENU); main.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_MENU_TITLE_0)); CmsContextMenuTreeBuilder treeBuilder = new CmsCo...
java
public ArrayList<OvhDiagnosticReport> billingAccount_service_serviceName_diagnosticReports_GET(String billingAccount, String serviceName, OvhDiagnosticReportIndexEnum dayInterval) throws IOException { String qPath = "/telephony/{billingAccount}/service/{serviceName}/diagnosticReports"; StringBuilder sb = path(qPath...
java
public void setWarnings(String warnings) { try { deprecationWarnings = CompilerOptions.DeprecationWarnings .fromString(warnings); } catch (IllegalArgumentException e) { throw new BuildException("invalid value for warnings: " + warnings); } }