language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def random_insertion(self,fastq,rate,max_inserts=1): """Perform the permutation on the sequence. If authorized to do multiple bases they are done at hte rate defined here. :param fastq: FASTQ sequence to permute :type fastq: format.fastq.FASTQ :param rate: how frequently to permute :type rate: floa...
python
async def read(cls, fabric: Union[Fabric, int]): """Get list of `Vlan`'s for `fabric`. :param fabric: Fabric to get all VLAN's for. :type fabric: `Fabric` or `int` """ if isinstance(fabric, int): fabric_id = fabric elif isinstance(fabric, Fabric): ...
java
public ServiceFuture<ManagementLockObjectInner> getByScopeAsync(String scope, String lockName, final ServiceCallback<ManagementLockObjectInner> serviceCallback) { return ServiceFuture.fromResponse(getByScopeWithServiceResponseAsync(scope, lockName), serviceCallback); }
python
def trace_on (full=False): """Start tracing of the current thread (and the current thread only).""" if full: sys.settrace(_trace_full) else: sys.settrace(_trace)
python
def normal(self): ''' :return: Line Returns a Line normal (perpendicular) to this Line. ''' d = self.B - self.A return Line([-d.y, d.x], [d.y, -d.x])
java
@Override protected void setProperty(final String _name, final String _value) throws CacheReloadException { if ("Align".equals(_name)) { this.align = _value; } else if ("UIProvider".equals(_name) || "ClassNameUI".equals(_name)) { try...
python
def golfclap(rest): "Clap for something" clapv = random.choice(phrases.clapvl) adv = random.choice(phrases.advl) adj = random.choice(phrases.adjl) if rest: clapee = rest.strip() karma.Karma.store.change(clapee, 1) return "/me claps %s for %s, %s %s." % (clapv, rest, adv, adj) return "/me claps %s, %s %s." %...
java
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "operationVersion") public JAXBElement<String> createOperationVersion(String value) { return new JAXBElement<String>(_OperationVersion_QNAME, String.class, null, value); }
python
def _map_center(self, coord, val): ''' Identitify the center of the Image correspond to one coordinate. ''' if self.ppd in [4, 8, 16, 32, 64]: res = {'lat': 0, 'long': 360} return res[coord] / 2.0 elif self.ppd in [128]: res = {'lat': 90, 'long': 90} ...
java
public String getProperty(String key, String defaultValue) { return props.getProperty(prefix + key, defaultValue); }
python
def grains(tgt=None, tgt_type='glob', **kwargs): ''' .. versionchanged:: 2017.7.0 The ``expr_form`` argument has been renamed to ``tgt_type``, earlier releases must use ``expr_form``. Return cached grains of the targeted minions. tgt Target to match minion ids. .. vers...
python
def handle_decoded_payload(self, data): ''' Override this method if you wish to handle the decoded data differently. ''' # Ensure payload is unicode. Disregard failure to decode binary blobs. if six.PY2: data = salt.utils.data.decode(data, keep=True) if 'user' in data: log.in...
java
public static HeaderTypes create(final String name) { if (name == null) { throw new IllegalArgumentException("header name may not be null"); } String type = name.trim().toLowerCase(Locale.ENGLISH); if (type.length() == 0) { throw new IllegalArgumentException("head...
java
@Override public void onMessage(Message message, Session session) throws JMSException { StandardLogger logger = LoggerUtil.getStandardLogger(); try { String txt = ((TextMessage) message).getText(); if (logger.isDebugEnabled()) { logger.debug("JMS Spring Exter...
java
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache,no-store"); String url=request.ge...
java
public JsonObject export() { JsonObject result = JsonObject.create(); injectParams(result); JsonObject queryJson = JsonObject.create(); queryPart.injectParamsAndBoost(queryJson); return result.put("query", queryJson); }
java
protected Map<String, String> getElementAttributes() { // Preserve order of attributes Map<String, String> attrs = new HashMap<>(); if (this.getInput() != null) { attrs.put("input", this.getInput().toString()); } if (this.getAction() != null) { attrs.put(...
java
public Iterator<Page> getSortedPages() { return new AbstractIterator<Page>() { private int currentPosition; private final PageBuilder pageBuilder = new PageBuilder(types); private final int[] outputChannels = new int[types.size()]; { A...
python
def process_request(self, request_object): """Return a list of resources""" resources = (request_object.entity_cls.query .filter(**request_object.filters) .offset((request_object.page - 1) * request_object.per_page) .limit(request_object.per...
java
public void map(Object key, Object value, OutputCollector output, Reporter reporter) throws IOException { if (outerrThreadsThrowable != null) { mapRedFinished(); throw new IOException ("MROutput/MRErrThread failed:" + StringUtils.stringifyException( ...
java
@NotNull @Deprecated @ObjectiveCName("requestStartAuthCommandWithEmail:") public Command<AuthState> requestStartEmailAuth(final String email) { return modules.getAuthModule().requestStartEmailAuth(email); }
java
public int getOrCreateVarIndex(final Variable var) { Integer index = this.name2idx.get(var.name()); if (index == null) { index = this.name2idx.size() + 1; this.name2idx.put(var.name(), index); this.idx2name.put(index, var.name()); } return index; }
python
def _init_jupyter(run): """Asks for user input to configure the machine if it isn't already and creates a new run. Log pushing and system stats don't start until `wandb.monitor()` is called. """ from wandb import jupyter # TODO: Should we log to jupyter? # global logging had to be disabled becau...
java
@Override public XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException { if (mFullyValidating) { return new DTDValidator(this, ctxt, mHasNsDefaults, getElementMap(), getGeneralEntityMap()); } return new DTDT...
java
@Inject void postConstruction(NetworkService networkService, ExecutorService executorService) { this.network = networkService; this.network.addListener(new NetworkStartListener(), executorService.getExecutorService()); }
java
byte[] pickleMetrics(List<MetricTuple> metrics) throws IOException { // Extremely rough estimate of 75 bytes per message ByteArrayOutputStream out = new ByteArrayOutputStream(metrics.size() * 75); Writer pickled = new OutputStreamWriter(out, charset); pickled.append(MARK); pickl...
java
public void marshall(FileLocation fileLocation, ProtocolMarshaller protocolMarshaller) { if (fileLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(fileLocation.getStream(), STREAM_BINDING); ...
java
private VarOptItemsSketch<T> markMovingGadgetCoercer() { final int resultK = gadget_.getHRegionCount() + gadget_.getRRegionCount(); int resultH = 0; int resultR = 0; int nextRPos = resultK; // = (resultK+1)-1, to fill R region from back to front final ArrayList<T> data = new ArrayList<>(re...
java
private List<Map<String, Object>> selectionToList(CSLItemData[] selection) { MapJsonBuilderFactory mjbf = new MapJsonBuilderFactory(); List<Map<String, Object>> sl = new ArrayList<>(); for (CSLItemData item : selection) { JsonBuilder jb = mjbf.createJsonBuilder(); @SuppressWarnings("unchecked") Map<Strin...
python
def make_mercator(attrs_dict, globe): """Handle Mercator projection.""" attr_mapping = [('latitude_true_scale', 'standard_parallel'), ('scale_factor', 'scale_factor_at_projection_origin')] kwargs = CFProjection.build_projection_kwargs(attrs_dict, attr_mapping) # Work around the fact...
python
def _create_sagemaker_model(self, instance_type, accelerator_type=None, tags=None): """Create a SageMaker Model Entity Args: instance_type (str): The EC2 instance type that this Model will be used for, this is only used to determine if the image needs GPU support or not. ...
java
public WorkgroupProperties getWorkgroupProperties() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { WorkgroupProperties request = new WorkgroupProperties(); request.setType(IQ.Type.get); request.setTo(workgroupJID); return connection.create...
python
def __roman_to_cyrillic(self, word): """ Transliterate a Russian word back into the Cyrillic alphabet. A Russian word formerly transliterated into the Roman alphabet in order to ease the stemming process, is transliterated back into the Cyrillic alphabet, its original form. ...
java
public boolean foldComposite(final Instruction _instruction) throws ClassParseException { boolean handled = false; if (logger.isLoggable(Level.FINE)) { System.out.println("foldComposite: curr = " + _instruction); System.out.println(dumpDiagram(_instruction)); // Syste...
java
public Object execute(final Object value, final CsvContext context) { if (value == null){ throw new SuperCsvConstraintViolationException("null value encountered", context, this); } return next.execute(value, context); }
python
def is_authorized_default(hijacker, hijacked): """Checks if the user has the correct permission to Hijack another user. By default only superusers are allowed to hijack. An exception is made to allow staff members to hijack when HIJACK_AUTHORIZE_STAFF is enabled in the Django settings. By default...
python
def getCellStr(self, x, y): # TODO: refactor regarding issue #11 """ return a string representation of the cell located at x,y. """ c = self.board.getCell(x, y) if c == 0: return '.' if self.__azmode else ' .' elif self.__azmode: az = {} ...
python
def calculate_first_digit(number): """ This function calculates the first check digit of a cpf or cnpj. :param number: cpf (length 9) or cnpf (length 12) string to check the first digit. Only numbers. :type number: string :returns: string -- the first digit """ ...
java
@Override public List<GoogleCloudStorageItemInfo> listObjectInfo( String bucketName, String objectNamePrefix, String delimiter) throws IOException { return listObjectInfo(bucketName, objectNamePrefix, delimiter, MAX_RESULTS_UNLIMITED); }
java
public static KAlignerParameters getByName(String name) { KAlignerParameters params = knownParameters.get(name); if (params == null) return null; return params.clone(); }
java
@Override public GetIntegrationsResult getIntegrations(GetIntegrationsRequest request) { request = beforeClientExecution(request); return executeGetIntegrations(request); }
java
protected List<ColumnDef> getColumnMetadata(Cassandra.Client client) throws TException, CharacterCodingException, InvalidRequestException, ConfigurationException { return getColumnMeta(client, true, true); }
python
def exists(self, client=None): """Determines whether or not this blob exists. If :attr:`user_project` is set on the bucket, bills the API request to that project. :type client: :class:`~google.cloud.storage.client.Client` or ``NoneType`` :param client: Opt...
java
private void readXmlDeclaration() throws IOException, KriptonRuntimeException { if (bufferStartLine != 0 || bufferStartColumn != 0 || position != 0) { checkRelaxed("processing instructions must not start with xml"); } read(START_PROCESSING_INSTRUCTION); parseStartTag(true, true); if (attributeCount < 1 |...
java
public Observable<ServerInner> beginUpdateAsync(String resourceGroupName, String serverName, ServerUpdateParameters parameters) { return beginUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).map(new Func1<ServiceResponse<ServerInner>, ServerInner>() { @Override p...
java
@Override public JsonToken nextToken() throws IOException { if (nextToken != null) { _currToken = nextToken; nextToken = null; return _currToken; } // are we to descend to a container child? if (startContainer) { startContainer = false;...
java
public CreateSnapshotScheduleResult withScheduleDefinitions(String... scheduleDefinitions) { if (this.scheduleDefinitions == null) { setScheduleDefinitions(new com.amazonaws.internal.SdkInternalList<String>(scheduleDefinitions.length)); } for (String ele : scheduleDefinitions) { ...
java
public org.grails.datastore.mapping.query.api.Criteria order(Order o) { final Criteria criteria = this.criteria; addOrderInternal(criteria, o); return this; }
java
public EEnum getIfcBeamTypeEnum() { if (ifcBeamTypeEnumEEnum == null) { ifcBeamTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(784); } return ifcBeamTypeEnumEEnum; }
java
public void write(byte[] b, int off, int len) { if (b == null) { throw new NullPointerException(); } else if ((off < 0) || (off > b.length) || (len < 0) || ((off + len) > b.length) || ((off + len) < 0)) { throw new IndexOutOfBoundsException(); } ...
java
@Override public void filter(ContainerRequestContext incomingRequestContext, ContainerResponseContext outgoingResponseContext) throws IOException { String methodName = "filter(outgoing)"; Boolean skipped = (Boolean) incomingRequestContext.getProperty(OpentracingContainerFilte...
java
public void marshall(DeleteEmailIdentityRequest deleteEmailIdentityRequest, ProtocolMarshaller protocolMarshaller) { if (deleteEmailIdentityRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(d...
python
def get(cls, block_type): """Return a :class:`BlockType` instance from the given parameter. * If it's already a BlockType instance, return that. * If it exactly matches the command on a :class:`PluginBlockType`, return the corresponding BlockType. * If it loosely matches the...
java
@Override @SuppressWarnings("checkstyle:linelength") public Page<Recording> firstPage(final TwilioRestClient client) { Request request = new Request( HttpMethod.GET, Domains.VIDEO.toString(), "/v1/Recordings", client.getRegion() ); addQuer...
java
public synchronized void updateAndAdd(JmxRequest pJmxReq, JSONObject pJson) { long timestamp = System.currentTimeMillis() / 1000; pJson.put(KEY_TIMESTAMP,timestamp); RequestType type = pJmxReq.getType(); HistoryUpdater updater = historyUpdaters.get(type); if (updater != null) {...
java
public long[] toPrimitiveArray(long[] array) { for (int i = 0, j = 0; i < array.length; ++i) { int index = -1; if (j < indices.length && (index = indices[j]) == i) { array[i] = values[j]; j++; } else array[i] = 0; } return array; }
python
def remove_cgc_attachments(self): """ Remove CGC attachments. :return: True if CGC attachments are found and removed, False otherwise :rtype: bool """ cgc_package_list = None cgc_extended_application = None for data in self.data: if data.sor...
python
def _create_diffuse_src_from_xml(self, config, src_type='FileFunction'): """Load sources from an XML file. """ diffuse_xmls = config.get('diffuse_xml') srcs_out = [] for diffuse_xml in diffuse_xmls: srcs_out += self.load_xml(diffuse_xml, coordsys=config.get('coordsys'...
python
def iter_orgs(self, number=-1, etag=None): """Iterate over organizations the user is member of :param int number: (optional), number of organizations to return. Default: -1 returns all available organization :param str etag: (optional), ETag from a previous request to the same ...
java
public static CommerceCurrency fetchByUuid_Last(String uuid, OrderByComparator<CommerceCurrency> orderByComparator) { return getPersistence().fetchByUuid_Last(uuid, orderByComparator); }
java
public <T> void RegisterClazz( Clazz<T> clazz ) { _ensureMap(); if( clazzz.containsKey( clazz.getReflectedClass() ) ) return; clazzz.put( clazz.getReflectedClass(), clazz ); }
python
def schemaNewMemParserCtxt(buffer, size): """Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file. """ ret = libxml2mod.xmlSchemaNewMemParserCtxt(buffer, size) if ret is None:raise parserError('xmlSchemaNewMemParserCtxt() failed') return SchemaParserC...
java
public void getTraceSummaryLine(StringBuilder buff) { // Get the common fields for control messages super.getTraceSummaryLine(buff); buff.append(",tick="); buff.append(getTick()); }
java
public ISarlConstructorBuilder addSarlConstructor() { ISarlConstructorBuilder builder = this.iSarlConstructorBuilderProvider.get(); builder.eInit(getSarlEvent(), getTypeResolutionContext()); return builder; }
java
public void with(@javax.annotation.Nonnull final java.util.function.Consumer<T> f, final Predicate<T> filter) { final T prior = currentValue.get(); if (null != prior) { f.accept(prior); } else { final T poll = get(filter); try { currentValue.set(poll); f.accept(poll); ...
java
protected static String determineCollectionName(Class<?> entityClass) { if (entityClass == null) { throw new InvalidJsonDbApiUsageException( "No class parameter provided, entity collection can't be determined"); } Document doc = entityClass.getAnnotation(Document.class); if (null =...
java
static synchronized ExecutorService getExecutorService() { if (executorService == null) { executorService = Executors.newCachedThreadPool(new NamingThreadFactory(new DaemonThreadFactory(), "org.jenkinsci.plugins.pipeline.maven.fix.jenkins49337.GeneralNonBlockingStepExecution")); } re...
python
def area_of_polygon(polygon): """ Returns the area of an OpenQuake polygon in square kilometres """ lon0 = np.mean(polygon.lons) lat0 = np.mean(polygon.lats) # Transform to lamber equal area projection x, y = lonlat_to_laea(polygon.lons, polygon.lats, lon0, lat0) # Build shapely polygons...
python
def mecanum_drivetrain( lr_motor, rr_motor, lf_motor, rf_motor, x_wheelbase=2, y_wheelbase=3, speed=5, deadzone=None, ): """ .. deprecated:: 2018.2.0 Use :class:`MecanumDrivetrain` instead """ return MecanumDrivetrain(x_wheelbase, y_wheelbase, speed, deadzo...
java
public Optional<PartnerAccount> show(long partnerId, long accountId) { return HTTP.GET(String.format("/v2/partners/%d/accounts/%d", partnerId, accountId), PARTNER_ACCOUNT); }
java
private void consumeKeyword(char first, char[] expected) throws JsonParserException { for (int i = 0; i < expected.length; i++) if (advanceChar() != expected[i]) throw createHelpfulException(first, expected, i); // The token should end with something other than an ASCII letter if (isAsciiLett...
python
def add_to_triplestore(self, output): """Method attempts to add output to Blazegraph RDF Triplestore""" if len(output) > 0: result = self.ext_conn.load_data(data=output.serialize(), datatype='rdf')
python
def build(source_dir, target_dir, package_name=None, version_number=None): ''' Create a release of a MicroDrop plugin source directory in the target directory path. Skip the following patterns: - ``bld.bat`` - ``.conda-recipe/*`` - ``.git/*`` .. versionchanged:: 0.24.1 ...
java
private void svdImpute(double[][] raw, double[][] data) { SVD svd = Matrix.newInstance(data).svd(); int d = data[0].length; for (int i = 0; i < raw.length; i++) { int missing = 0; for (int j = 0; j < d; j++) { if (Double.isNaN(raw[i][j])) { ...
java
public void commit(ObjectEnvelope mod) throws PersistenceBrokerException { mod.doInsert(); mod.setModificationState(StateOldClean.getInstance()); }
python
def from_dict(cls, d): """ Create a enclave object from a dictionary. :param d: The dictionary. :return: The EnclavePermissions object. """ enclave = super(cls, EnclavePermissions).from_dict(d) enclave_permissions = cls.from_enclave(enclave) enclave_per...
java
public int[] getMetricsTT(int c) { if (cmapExt != null) return (int[])cmapExt.get(Integer.valueOf(c)); HashMap map = null; if (fontSpecific) map = cmap10; else map = cmap31; if (map == null) return null; if (fontSpecific) { ...
java
@Override public String convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { String result = ""; if (value instanceof Entry) { result = ((Entry) value).getName(); } return result; }
java
public Observable<CertificateOperation> updateCertificateOperationAsync(String vaultBaseUrl, String certificateName, boolean cancellationRequested) { return updateCertificateOperationWithServiceResponseAsync(vaultBaseUrl, certificateName, cancellationRequested).map(new Func1<ServiceResponse<CertificateOperation...
python
def description(self): '''Provide a description for each algorithm available, useful to print in ecc file''' if 0 < self.algo <= 3: return "Reed-Solomon with polynomials in Galois field of characteristic %i (2^%i) with generator=%s, prime poly=%s and first consecutive root=%s." % (self.field...
python
def parse(self, raise_parsing_errors=True): """ Process the file content. Usage:: >>> plist_file_parser = PlistFileParser("standard.plist") >>> plist_file_parser.parse() True >>> plist_file_parser.elements.keys() [u'Dictionary A', u'N...
java
public void activateOptions() { if (!isActive()) { // shutdown(); rThread = new Thread(this); rThread.setDaemon(true); rThread.start(); if (advertiseViaMulticastDNS) { zeroConf = new ZeroConfSupport(ZONE, port, getName()); zeroConf.advertise(); } activ...
java
protected String handleJavaType(String typeStr, ResultSetMetaData rsmd, int column) throws SQLException { // 当前实现只处理 Oracle if ( ! dialect.isOracle() ) { return typeStr; } // 默认实现只处理 BigDecimal 类型 if ("java.math.BigDecimal".equals(typeStr)) { int scale = rsmd.getScale(column); // 小数点右边的位数,值...
python
def learnObject(self, objectDescription, randomLocation=False, useNoise=False, noisyTrainingTime=1): """ Train the network to recognize the specified object. Move the sensor to one of its features and activate a random location represen...
java
public static Response get(String url) throws URISyntaxException, HttpException { return send(new HttpGet(url), null, null); }
java
static final void resize(final WritableMemory mem, final int preambleLongs, final int srcLgArrLongs, final int tgtLgArrLongs) { //Note: This copies the Memory data onto the heap and then at the end copies the result // back to Memory. Even if we tried to do this directly into Memory it would require pre-c...
java
public static DeviceGroupDeleteDeviceResult deviceGroupDeleteDevice( String accessToken, DeviceGroupDeleteDevice deviceGroupDeleteDevice) { return deviceGroupDeleteDevice(accessToken, JsonUtil.toJSONString(deviceGroupDeleteDevice)); }
python
def get_dialog_state(handler_input): # type: (HandlerInput) -> Optional[DialogState] """Return the dialog state enum from the intent request. The method retrieves the `dialogState` from the intent request, if the skill's interaction model includes a dialog model. This can be used to determine the c...
python
def cache_result(cache_key, timeout): """A decorator for caching the result of a function.""" def decorator(f): cache_name = settings.WAFER_CACHE @functools.wraps(f) def wrapper(*args, **kw): cache = caches[cache_name] result = cache.get(cache_key) if...
python
def list_services(self, stack): """获得服务列表 列出指定名称的服务组内所有的服务, 返回一组详细的服务信息。 Args: - stack: 服务所属的服务组名称 Returns: 返回一个tuple对象,其格式为(<result>, <ResponseInfo>) - result 成功返回服务信息列表[<ervice1>, <service2>, ...],失败返回{"error": "<errMsg string>"} ...
python
def is_op(call, op): """ :param call: The specific operator instance (a method call) :param op: The the operator we are testing against :return: isinstance(call, op), but faster """ try: return call.id == op.id except Exception as e: return False
java
public boolean isAncestorOf(AlluxioURI alluxioURI) throws InvalidPathException { // To be an ancestor of another URI, authority and scheme must match if (!Objects.equals(getAuthority(), alluxioURI.getAuthority())) { return false; } if (!Objects.equals(getScheme(), alluxioURI.getScheme())) { ...
java
@NonNull public static ResolvedTypeWithMembers resolveMembers(@NonNull ResolvedType mainType) { return memberResolver.resolve(mainType, null, null); }
java
public static int earliestIndexOfAny(String s, Iterable<String> probes, int from) { int earliestIdx = -1; for (final String probe : probes) { final int probeIdx = s.indexOf(probe, from); // if we found something for this probe if (probeIdx >= 0 // and either we haven't found anythin...
java
public static <W extends Comparable<W>, S extends GenericSemiring<W>> UnionSemiring<W, S> makeForNaturalOrdering( S weightSemiring) { return makeForOrdering(weightSemiring, Ordering.natural(), defaultMerge()); }
java
public static <T> Collection<T> takeWhile(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure condition) { Collection<T> result = createSimilarCollection(self); addAll(result, takeWhile(self.iterator(), condition)); return result; }
java
public void seekToRecord(long recordNumber) throws IOException { if (currentRecordNumber == recordNumber) return; long skip; if (recordNumber < fileIndex.getStartingRecordNumber()) { if (currentRecordNumber < recordNumber) skip = recordNumber - currentReco...
java
public static StackTraceElement getMyStackTraceElement () { StackTraceElement myStackTraceElement = null; StackTraceElement[] stackTraceElements = Thread.currentThread ().getStackTrace (); if (stackTraceElements != null) { if (stackTraceElements.length > 2) { myStackTraceElement = stackTraceElements[2];...
java
public static MozuUrl createPackageUrl(String responseFields, String returnId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{returnId}/packages?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("returnId", returnId); return ...
java
private void processCustomizeOptions(TypeElement component, MethodSpec.Builder initBuilder, List<CodeBlock> staticInitParameters) { getComponentCustomizeOptions(elements, component).forEach(customizeOptions -> this.processCustomizeOptions(customizeOptions, initBuilder, staticInitParame...