language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
private static RequestConfig getRequestConfig(Integer readTimeoutInMillis) { return RequestConfig.custom().setConnectionRequestTimeout(600) .setConnectTimeout(XianConfig.getIntValue("apache.httpclient.connectTimeout", 600)) .setSocketTimeout(readTimeoutInMillis).build(); }
python
def findlayer(self, z): ''' Returns layer-number, layer-type and model-layer-number''' if z > self.z[0]: modellayer, ltype = -1, 'above' layernumber = None elif z < self.z[-1]: modellayer, ltype = len(self.layernumber), 'below' layernumber ...
java
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TYPE: return isSetType(); case COLUMN_PATH: return isSetColumnPath(); } throw new IllegalStateException(); }
java
protected Component newDisclaimerPanel(final String id, final IModel<HeaderContentListModelBean> model) { return new DisclaimerPanel(id, Model.of(model.getObject())); }
python
def _get_salt_call(*dirs, **namespaces): ''' Return salt-call source, based on configuration. This will include additional namespaces for another versions of Salt, if needed (e.g. older interpreters etc). :dirs: List of directories to include in the system path :namespaces: Dictionary of namesp...
java
private void addPostParams(final Request request) { if (attributes != null) { request.addPostParam("Attributes", attributes); } if (dateCreated != null) { request.addPostParam("DateCreated", dateCreated.toString()); } if (dateUpdated != null) { ...
java
static Document.OutputSettings outputSettings(Node node) { Document owner = node.ownerDocument(); return owner != null ? owner.outputSettings() : (new Document("")).outputSettings(); }
python
def send_empty(self, message): """ Eventually remove from the observer list in case of a RST message. :type message: Message :param message: the message :return: the message unmodified """ host, port = message.destination key_token = hash(str(host) + str(...
python
def max_width(*args, **kwargs): """Returns formatted text or context manager for textui:puts. >>> from clint.textui import puts, max_width >>> max_width('123 5678', 8) '123 5678' >>> max_width('123 5678', 7) '123 \n5678' >>> with max_width(7): ... puts('1...
java
public FrutillaParser.Scenario scenario(String text) { mRoot = FrutillaParser.scenario(text); return (FrutillaParser.Scenario) mRoot; }
java
public static Map<String, PreparedAttachment> prepareAttachments(String attachmentsDir, AttachmentStreamFactory attachmentStreamFactory, Map<String, Attachment> attachments) throws A...
java
public void perform(TaskRequest req, TaskResponse res) { HttpServletResponse sres = (HttpServletResponse) response.evaluate(req, res); String rsc = (String) resource.evaluate(req, res); try { // Send the redirect (HTTP status code 302) sres.sendRedirect(rsc); } catch (Throwable t) { String msg = "E...
python
def insert_one(self, doc, *args, **kwargs): """ Inserts one document into the collection If contains '_id' key it is used, else it is generated. :param doc: the document :return: InsertOneResult """ if self.table is None: self.build_table() if...
java
private void recycleByLayoutStateExpose(RecyclerView.Recycler recycler, LayoutState layoutState) { if (!layoutState.mRecycle) { return; } if (layoutState.mLayoutDirection == LayoutState.LAYOUT_START) { recycleViewsFromEndExpose(recycler, layoutState.mScrollingOffset); ...
python
def get_smart_contract(self, hex_contract_address: str, is_full: bool = False) -> dict: """ This interface is used to get the information of smart contract based on the specified hexadecimal hash value. :param hex_contract_address: str, a hexadecimal hash value. :param is_full: ...
java
@Override public void writeTo(DataOutput out) throws IOException { byte leading=0; if(dest != null) leading=Util.setFlag(leading, DEST_SET); if(sender != null) leading=Util.setFlag(leading, SRC_SET); if(buf != null) leading=Util.setFlag(leading, BUF...
python
def Storage_getUsageAndQuota(self, origin): """ Function path: Storage.getUsageAndQuota Domain: Storage Method name: getUsageAndQuota Parameters: Required arguments: 'origin' (type: string) -> Security origin. Returns: 'usage' (type: number) -> Storage usage (bytes). 'quota' (type: n...
java
public static long longValue(String key, long defaultValue) { String value = System.getProperty(key); long longValue = defaultValue; if (value != null) { try { longValue = Long.parseLong(value); } catch (NumberFormatException e) { LOG.warning(e, "Ignoring invalid long system propert: ''{0}'' = ''{1...
java
@Override public XMLObject unmarshall(Element domElement) throws UnmarshallingException { Document newDocument = null; Node childNode = domElement.getFirstChild(); while (childNode != null) { if (childNode.getNodeType() != Node.TEXT_NODE) { // We skip everything except for a text node. ...
python
def get_state_id_for_port(port): """This method returns the state ID of the state containing the given port :param port: Port to check for containing state ID :return: State ID of state containing port """ parent = port.parent from rafcon.gui.mygaphas.items.state import StateView if isinsta...
python
def text_channels(self): """List[:class:`TextChannel`]: A list of text channels that belongs to this guild. This is sorted by the position and are in UI order from top to bottom. """ r = [ch for ch in self._channels.values() if isinstance(ch, TextChannel)] r.sort(key=lambda c: (...
python
def bit_size(self): """ :return: The bit size of the private key, as an integer """ if self._bit_size is None: if self.algorithm == 'rsa': prime = self['private_key'].parsed['modulus'].native elif self.algorithm == 'dsa': ...
java
public static <A extends Annotation> Set<A> getRepeatableAnnotation(Method method, Class<? extends Annotation> containerAnnotationType, Class<A> annotationType) { Method resolvedMethod = BridgeMethodResolver.findBridgedMethod(method); return getRepeatableAnnotation((AnnotatedElement) resolvedMethod, containerAn...
java
public static int[] compressOneBlock(int[] inputBlock, int bits, int blockSize) { int[] expAux = new int[blockSize * 2]; int maxCompBitSize = HEADER_SIZE + blockSize * (MAX_BITS + MAX_BITS + MAX_BITS) + 32; int[] tmpCompressedBlo...
java
public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException { ch.characters((char[])m_obj, m_start, m_length); }
java
public void validateWithDtd(String filename, String dtdPath, String docType) throws IOException { try (InputStream xmlStream = this.getClass().getResourceAsStream(filename)) { if (xmlStream == null) { throw new IOException("Not found in classpath: " + filename); } try { String xml ...
python
def import_model(model_file): """Imports the supplied ONNX model file into MXNet symbol and parameters. Parameters ---------- model_file : ONNX model file name Returns ------- sym : mx.symbol Compatible mxnet symbol params : dict of str to mx.ndarray Dict of converted ...
java
@Override public DBConnection stage1ConnectKAMStore(String jdbcUrl, String user, String pass) throws DBConnectionFailure { try { return ds.dbConnection(jdbcUrl, user, pass); } catch (SQLException e) { // rethrow as fatal exception since we couldn't connect to KAMS...
java
public static <T> int detectLastIndex(List<T> list, Predicate<? super T> predicate) { if (list instanceof RandomAccess) { return RandomAccessListIterate.detectLastIndex(list, predicate); } int size = list.size(); int i = size - 1; ListIterator<T> reverseIt...
java
private long[] getRowAddressesFromHeader( ByteBuffer header ) { /* * Jump over the no more needed first byte (used in readHeader to define the header size) */ byte firstbyte = header.get(); /* Read the data row addresses inside the file */ long[] adrows = new long[file...
java
protected void writeTimedOut(ChannelHandlerContext ctx) throws Exception { if (!closed) { ctx.fireExceptionCaught(WriteTimeoutException.INSTANCE); ctx.close(); closed = true; } }
java
@Override protected void preparePaintComponent(final Request request) { super.preparePaintComponent(request); if (Cache.getCache().get(DATA_KEY) != null) { poller.disablePoll(); } }
python
def _vector(x, type='row'): """Convert an object to a row or column vector.""" if isinstance(x, (list, tuple)): x = np.array(x, dtype=np.float32) elif not isinstance(x, np.ndarray): x = np.array([x], dtype=np.float32) assert x.ndim == 1 if type == 'column': x = x[:, None] ...
java
private int[] convertBatch(int[] batch) { int[] conv = new int[batch.length]; for (int i=0; i<batch.length; i++) { conv[i] = sample[batch[i]]; } return conv; }
python
def topological_sorting(nodes, relations): '''An implementation of Kahn's algorithm. ''' ret = [] nodes = set(nodes) | _nodes(relations) inc = _incoming(relations) out = _outgoing(relations) free = _free_nodes(nodes, inc) while free: n = free.pop() ret.append(n) ...
java
protected void checkLimit() { synchronized (this.getSyncObject()) { if (this.byteLimit != -1 && this.traceLogfile != null && this.traceLogfile.length() > this.byteLimit) { close(); int pos = this.traceLogfile.getAbsolutePath().lastIndexOf('\u002e'); String splitFilename ...
python
def checkUserAccess(self): """ Checks if the current user has granted access to this worksheet. Returns False if the user has no access, otherwise returns True """ # Deny access to foreign analysts allowed = True pm = getToolByName(self, "portal_membership") m...
java
public List<GeneratorOutput> getGenerateOutput(Filer filer) throws IOException { HashMap<String,Object> map = new HashMap<String,Object>(); map.put("intf", this); // the control interface map.put("bean", _bean); ArrayList<GeneratorOutput> genList = new ArrayList<Ge...
python
def saml_name_id_format_to_hash_type(name_format): """ Translate pySAML2 name format to satosa format :type name_format: str :rtype: satosa.internal_data.UserIdHashType :param name_format: SAML2 name format :return: satosa format """ msg = "saml_name_id_format_to_hash_type is deprecated...
python
def assert_headers(context): """ :type context: behave.runner.Context """ expected_headers = [(k, v) for k, v in row_table(context).items()] request = httpretty.last_request() actual_headers = request.headers.items() for expected_header in expected_headers: assert_in(expected_hea...
python
def is_tagged(required_tags, has_tags): """Checks if tags match""" if not required_tags and not has_tags: return True elif not required_tags: return False found_tags = [] for tag in required_tags: if tag in has_tags: found_tags.append(tag) return len(found_t...
java
public CassandraJavaRDD<R> toEmptyCassandraRDD() { CassandraRDD<R> newRDD = rdd().toEmptyCassandraRDD(); return wrap(newRDD); }
java
@Override public com.liferay.commerce.account.model.CommerceAccount addCommerceAccount( com.liferay.commerce.account.model.CommerceAccount commerceAccount) { return _commerceAccountLocalService.addCommerceAccount(commerceAccount); }
python
def _inner_dataset_template(cls, dataset): """ Returns a Dataset template used as a wrapper around the data contained within the multi-interface dataset. """ from . import Dataset vdims = dataset.vdims if getattr(dataset, 'level', None) is None else [] return Data...
java
public static boolean hasFOPInstalled() { try { Class<?> c1 = Class.forName("org.apache.fop.svg.PDFTranscoder"); Class<?> c2 = Class.forName("org.apache.fop.render.ps.PSTranscoder"); Class<?> c3 = Class.forName("org.apache.fop.render.ps.EPSTranscoder"); return (c1 != null) && (c2 != null) &&...
java
@Override @Transactional(enabled = false) public CPMeasurementUnit createCPMeasurementUnit(long CPMeasurementUnitId) { return cpMeasurementUnitPersistence.create(CPMeasurementUnitId); }
python
def create_user(self, username, password, name, email): """Create a sub account.""" method = 'POST' endpoint = '/rest/v1/users/{}'.format(self.client.sauce_username) body = json.dumps({'username': username, 'password': password, 'name': name, 'email': email, })...
java
private static Optional<String> getColumnLocalityGroup(String columnName, Optional<Map<String, Set<String>>> groups) { if (groups.isPresent()) { for (Map.Entry<String, Set<String>> group : groups.get().entrySet()) { if (group.getValue().contains(columnName.toLowerCase(Locale.ENGL...
python
def select(self, name_or_index): """Locate a dataset. Args:: name_or_index dataset name or index number Returns:: SDS instance for the dataset C library equivalent : SDselect """ if isi...
java
public FacesConfigFlowDefinitionViewType<FacesConfigFlowDefinitionType<T>> getOrCreateView() { List<Node> nodeList = childNode.get("view"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigFlowDefinitionViewTypeImpl<FacesConfigFlowDefinitionType<T>>(this, "view", child...
java
public BoxError getAsBoxError() { try { BoxError error = new BoxError(); error.createFromJson(getResponse()); return error; } catch (Exception e) { return null; } }
java
private void validateData( ) { boolean isValid = ( m_queryTextField != null && getQueryText() != null && getQueryText().trim().length() > 0 ); if( isValid ) setMessage( DEFAULT_MESSAGE ); else setMessage( "Requires input value.", ERROR ); setPageComplete(...
java
public void setFiducial( double x0 , double y0 , double x1 , double y1 , double x2 , double y2 , double x3 , double y3 ) { points.get(0).location.set(x0,y0,0); points.get(1).location.set(x1,y1,0); points.get(2).location.set(x2,y2,0); points.get(3).location.set(x3,y3,0); }
python
def load_image_imread(file, shape=None, max_range=1.0): ''' Load image from file like object. :param file: Image contents :type file: file like object. :param shape: shape of output array e.g. (3, 128, 192) : n_color, height, width. :type shape: tuple of int :param float max_range: ...
java
public void waitForDelete() throws InterruptedException { Waiter waiter = client.waiters().tableNotExists(); try { waiter.run(new WaiterParameters<DescribeTableRequest>(new DescribeTableRequest(tableName)) .withPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrat...
python
def connect_timeout(self): """ Get the value to use when setting a connection timeout. This will be a positive float or integer, the value None (never timeout), or the default system timeout. :return: Connect timeout. :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None ...
java
@Override public CommercePriceListUserSegmentEntryRel create( long commercePriceListUserSegmentEntryRelId) { CommercePriceListUserSegmentEntryRel commercePriceListUserSegmentEntryRel = new CommercePriceListUserSegmentEntryRelImpl(); commercePriceListUserSegmentEntryRel.setNew(true); commercePriceListUserSe...
java
public void enableDTD(boolean enable) { //允许DTD会有XXE漏洞,关于XXE漏洞:https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Prevention_Cheat_Sheet if (enable) { //不允许DTD setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); setFeature("http://xml.org/...
java
public void marshall(SanitizationWarning sanitizationWarning, ProtocolMarshaller protocolMarshaller) { if (sanitizationWarning == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(sanitizationWarning.ge...
java
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.GSLT__LINETYPE: return getLINETYPE(); } return super.eGet(featureID, resolve, coreType); }
java
protected void processIncludes(Map<String, String> mergeProps, URL rootURL, String includeProps) { if (includeProps == null) return; String props[] = includeProps.trim().split("\\s*,\\s*"); for (String pname : props) { mergeProperties(mergeProps, rootURL, pname); ...
java
public long getDateLastVisitedBy(CmsObject cms, CmsUser user, String resourcePath) throws CmsException { CmsResource resource = cms.readResource(resourcePath, CmsResourceFilter.ALL); return m_securityManager.getDateLastVisitedBy(cms.getRequestContext(), getPoolName(), user, resource); }
java
public Map<String, String> loadNucleotideStore() throws IOException, URISyntaxException { Map<String, String> nucleotides = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER); LOG.debug("Loading nucleotide store by Webservice Loader"); LOG.debug(MonomerStoreConfiguration.getInstance().to...
java
@Override public final void makeEntries(final Map<String, Object> pAddParam, final IDoc pEntity) throws Exception { Calendar calCurrYear = Calendar.getInstance(new Locale("en", "US")); calCurrYear.setTime(getSrvAccSettings().lazyGetAccSettings(pAddParam) .getCurrentAccYear()); calCurrYear.set(Ca...
python
def _decodeTimestamp(byteIter): """ Decodes a 7-octet timestamp """ dateStr = decodeSemiOctets(byteIter, 7) timeZoneStr = dateStr[-2:] return datetime.strptime(dateStr[:-2], '%y%m%d%H%M%S').replace(tzinfo=SmsPduTzInfo(timeZoneStr))
python
def checksum(path): """Calculcate checksum for a file.""" hasher = hashlib.sha1() with open(path, 'rb') as stream: buf = stream.read(BLOCKSIZE) while len(buf) > 0: hasher.update(buf) buf = stream.read(BLOCKSIZE) return hasher.hexdigest()
python
def _chain_forks(elements): """Detect whether a sequence of elements leads to a fork of streams""" # we are only interested in the result, so unwind from the end for element in reversed(elements): if element.chain_fork: return True elif element.chain_join:...
python
def migrate_value(value): """Convert `value` to a new-style value, if necessary and possible. An "old-style" value is a value that uses any `value` field other than the `tensor` field. A "new-style" value is a value that uses the `tensor` field. TensorBoard continues to support old-style values on disk; this...
python
def construct_survival_curves(hazard_rates, timelines): """ Given hazard rates, reconstruct the survival curves Parameters ---------- hazard_rates: (n,t) array timelines: (t,) the observational times Returns ------- t: survial curves, (n,t) array """ cumulative_hazards = cu...
java
@Bean @ConditionalOnMissingBean({WroManagerFactory.class, ProcessorsFactory.class}) ProcessorsFactory processorsFactory(final Wro4jProperties wro4jProperties) { final List<ResourcePreProcessor> preProcessors = new ArrayList<>(); if (wro4jProperties.getPreProcessors() != null) { for (Class<? extends ResourcePre...
python
def check_data_complete(data, parameter_columns): """ For any parameters specified with edges, make sure edges don't overlap and don't have any gaps. Assumes that edges are specified with ends and starts overlapping (but one exclusive and the other inclusive) so can check that end of previous == start ...
java
public List<OrganizationMembership> getOrganizationMembershipByUser(long user_id) { return complete(submit(req("GET", tmpl("/users/{user_id}/organization_memberships.json").set("user_id", user_id)), handleList(OrganizationMembership.class, "organization_memberships"))); }
python
def ctor_args(self): """Return arguments for constructing a copy""" return dict( config=self._config, search=self._search, echo=self._echo, read_only=self.read_only )
python
def _height_and_width(self): """Return a tuple of (terminal height, terminal width). Start by trying TIOCGWINSZ (Terminal I/O-Control: Get Window Size), falling back to environment variables (LINES, COLUMNS), and returning (None, None) if those are unavailable or invalid. """ ...
java
public int countTokens() { int count = 0; int currpos = currentPosition; while (currpos < maxPosition) { currpos = skipDelimiters(currpos); if (currpos >= maxPosition) break; currpos = scanToken(currpos); count++; } ...
java
private static XmlOptions getXmlOptions() { if (System.getProperty("runtimeEnv") == null && System.getProperty("mdw.runtime.env") == null) return new XmlOptions().setSavePrettyPrint().setSavePrettyPrintIndent(2); // avoid errors when running in Designer String[] xmlOptionsProperties = new S...
java
protected final void copyTextNode(final int nodeID, SerializationHandler handler) throws SAXException { if (nodeID != DTM.NULL) { int dataIndex = m_dataOrQName.elementAt(nodeID); if (dataIndex >= 0) { m_chars.sendSAXcharacters(handler, ...
python
def build_url_field(self, field_name, model_class): """ Create a field representing the object's own URL. """ field_class = self.serializer_url_field field_kwargs = rest_framework.serializers.get_url_kwargs(model_class) field_kwargs.update({"parent_lookup_field": self.get...
java
@Override public void setSubProtocols(String... protocols) { subProtocols.clear(); Collections.addAll(subProtocols, protocols); }
python
def get_basic_logger(level=logging.WARN, scope='reliure'): """ return a basic logger that print on stdout msg from reliure lib """ logger = logging.getLogger(scope) logger.setLevel(level) # create console handler with a higher log level ch = logging.StreamHandler() ch.setLevel(level) # c...
python
def reset(self): """ Sets initial conditions for the experiment. """ self.stepid = 0 for task, agent in zip(self.tasks, self.agents): task.reset() agent.module.reset() agent.history.reset()
java
@Override public void eUnset(int featureID) { switch (featureID) { case SimpleAntlrPackage.UNTIL_ELEMENT__LEFT: setLeft((RuleElement)null); return; case SimpleAntlrPackage.UNTIL_ELEMENT__RIGHT: setRight((RuleElement)null); return; } super.eUnset(featureID)...
python
def prepare_token_request(self, token_url, authorization_response=None, redirect_url=None, state=None, body='', **kwargs): """Prepare a token creation request. Note that these requests usually require client authentication, either by including client_id or a set of...
python
def _to_numeric(val): """ Helper function for conversion of various data types into numeric representation. """ if isinstance(val, (int, float, datetime.datetime, datetime.timedelta)): return val return float(val)
java
public ChannelHandler[] getServerChannelHandlers() { PartitionRequestQueue queueOfPartitionQueues = new PartitionRequestQueue(); PartitionRequestServerHandler serverHandler = new PartitionRequestServerHandler( partitionProvider, taskEventPublisher, queueOfPartitionQueues, creditBasedEnabled); return new Chann...
python
def expand_curielike(namespaces, curie): """Expand a CURIE (or a CURIE-like string with a period instead of colon as separator) into URIRef. If the provided curie is not a CURIE, return it unchanged.""" if curie == '': return None if sys.version < '3' and not isinstance(curie, type(u'')): ...
python
def en010(self, value=None): """ Corresponds to IDD Field `en010` mean coincident dry-bulb temperature to Enthalpy corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en010` Unit: kJ/kg if...
java
protected PermissionModel getPermission(int index) { if (permissions().isEmpty()) return null; if ((index) <= permissions().size()) {// avoid accessing index does not exists. return permissions().get(index); } return null; }
java
public boolean recordOverride() { if (!currentInfo.isOverride()) { currentInfo.setOverride(true); populated = true; return true; } else { return false; } }
java
public void setAuthorGroup(final SpecTopic authorGroup) { if (authorGroup == null && this.authorGroup == null) { return; } else if (authorGroup == null) { removeChild(this.authorGroup); this.authorGroup = null; } else if (this.authorGroup == null) { ...
python
def schedule(self, when=None, action=None, **kwargs): """ Schedule an update of this object. when: The date for the update. action: if provided it will be looked up on the implementing class and called with **kwargs. If action is not provided each k/v pair in kw...
python
def generate_component_id_namespace_overview(model, components): """ Tabulate which MIRIAM databases the component's identifier matches. Parameters ---------- model : cobra.Model A cobrapy metabolic model. components : {"metabolites", "reactions", "genes"} A string denoting `cob...
java
public boolean matches(ServiceType serviceType) { if (serviceType == null) return false; if (equals(serviceType)) return true; if (isAbstractType()) { if (serviceType.isAbstractType()) { if (!getPrincipleTypeName().equals(serviceType.getPrinci...
java
@Override public ServerConnector createSecureConnector(Server server, String name, int port, String sslKeystore, String sslKeystorePassword, String sslKeyPassword, String host, String sslKeystoreType, String sslKeyAlias, String trustStore, String trustStorePassword, String trustS...
java
public static String formatParam(Object value, String delimiter) { if (value != null) { if (byte[].class.getSimpleName().equals(value.getClass().getSimpleName())) { return checkSize((byte[]) value, VIEW_SIZE); } String str = value.toString(); if (str.length() > VIEW_SIZE) { return delimiter + str...
java
public ModifyImageAttributeRequest withProductCodes(String... productCodes) { if (this.productCodes == null) { setProductCodes(new com.amazonaws.internal.SdkInternalList<String>(productCodes.length)); } for (String ele : productCodes) { this.productCodes.add(ele); ...
java
public Object getProperty(String name) { if (!StringUtils.isBlank(name)) { return getProperties().get(name); } return null; }
python
def run(self): """runner""" # change version in code and changelog before running this subprocess.check_call("git commit CHANGELOG.rst pyros/_version.py CHANGELOG.rst -m 'v{0}'".format(__version__), shell=True) subprocess.check_call("git push", shell=True) print("You should ver...
java
public static void classNotMapped(Object sourceClass, Class<?> configuredClass){ String sourceName = sourceClass instanceof Class?((Class<?>)sourceClass).getSimpleName():sourceClass.getClass().getSimpleName(); throw new ClassNotMappedException(MSG.INSTANCE.message(classNotMappedException2,sourceName, configuredCl...
java
public static SignatureValidationFilter buildSignatureValidationFilter(final ResourceLoader resourceLoader, final String signatureResourceLocation) { try { val resource = resourceLoader.getResource(signatureResourceLocation);...