- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 1,178 for simple (0.05 seconds)
-
src/test/java/org/codelibs/fess/app/web/admin/design/AdminDesignActionTest.java
assertTrue("Valid path in subdirectory should be allowed", result); } @Test public void test_isValidUploadPath_pathTraversal_simple() throws Exception { // Test simple path traversal attack File baseDir = new File(tempDir.toFile(), "images"); baseDir.mkdirs(); File maliciousFile = new File(baseDir, "../../../etc/passwd");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 13.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
if (data == null || data.length == 0) { return 1.0; } if (algorithm == COMPRESSION_NONE) { return 1.0; } // Simple heuristic based on data entropy // In practice, this would be more sophisticated int uniqueBytes = countUniqueBytes(data); double entropy = (double) uniqueBytes / 256.0;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
mappingItemList = itemList; } catch (final IOException e) { throw new DictionaryException("Failed to parse " + path, e); } } /** * Returns the simple file name (without directory path) of this mapping file. * * @return the file name without the full path */ public String getSimpleName() { return new File(path).getName(); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 05:56:45 GMT 2025 - 15.3K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/Striped64.java
} catch (Exception e) { throw new Error(e); } } /** * Returns a sun.misc.Unsafe. Suitable for use in a 3rd party package. Replace with a simple call * to Unsafe.getUnsafe when integrating into a jdk. * * @return a sun.misc.Unsafe */ private static Unsafe getUnsafe() { try { return Unsafe.getUnsafe();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 15 22:17:15 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/api/WebApiRequestTest.java
// Third call without SAStruts.method again mockRequest.setQueryString("page=1"); assertEquals(customPath, webApiRequest.getServletPath()); } // Simple mock implementation of HttpServletRequest for testing private static class MockHttpServletRequest implements HttpServletRequest { private String queryString; private String servletPath;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 17.8K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/LittleEndianByteArray.java
// The offset to the first element in a byte array. private static final int BYTE_ARRAY_BASE_OFFSET; /** * Returns an Unsafe. Suitable for use in a 3rd party package. Replace with a simple call to * Unsafe.getUnsafe when integrating into a JDK. * * @return an Unsafe instance if successful */ private static Unsafe getUnsafe() { try { return Unsafe.getUnsafe();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 10.1K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java
private static final int NUM_THREADS = 10; // make a param? // simple interface to wrap our two implementations. interface ExecutionListWrapper { void add(Runnable runnable, Executor executor); void execute(); /** Returns the underlying implementation, useful for the Footprint benchmark. */ Object getImpl(); } enum Impl { NEW { @Override ExecutionListWrapper newExecutionList() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 17:42:14 GMT 2025 - 15.8K bytes - Click Count (0) -
src/main/java/jcifs/util/PathValidator.java
*/ private boolean isValidHost(String host) { if (host == null || host.isEmpty()) { return false; } // Check for valid hostname or IP address // Simple validation - can be enhanced if (host.length() > 255) { return false; } // Check for invalid charactersCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/mylasta/direction/FessEnv.java
* comment: The common return path of all mail * @return The value of found property. (NotNull: if not found, exception but basically no way) */ String getMailReturnPath(); /** * The simple implementation for configuration. * @author FreeGen */ public static class SimpleImpl extends ObjectiveConfig implements FessEnv { /** The serial version UID for object serialization. (Default) */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 27 07:01:25 GMT 2025 - 9.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/QueryStringBuilder.java
if (exists) { queryBuf.append(')'); } } /** * Builds the base query string from search parameters. * Handles both condition-based queries and simple text queries, including related query expansion. * * @return the base query string */ protected String buildBaseQuery() { final StringBuilder queryBuf = new StringBuilder(255);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 12.3K bytes - Click Count (0)