- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 319 for Docstring (0.06 sec)
-
CurlResponse.java
L59: while (length != -1) { L60: if (length != 0) { L61: baos.write(bytes, 0, length); L62: } L63: length = bis.read(bytes); L64: } L65: return baos.toString(encoding); L66: } catch (final Exception e) { L67: throw new CurlException("Failed to access the content.", e); L68: } L69: } L70: L71: public InputStream getContentAsStream() throws IOException { L72: if (contentCache...github.com/codelibs/curl4j/src/main/java/org/co...Mon Nov 14 21:05:19 UTC 2022 4K bytes -
ResourceUtil.java
replacement = matcher.group(1); L213: } L214: matcher.appendReplacement(tunedText, replacement.replace("\\", "\\\\").replace("$", "\\$")); L215: L216: } L217: matcher.appendTail(tunedText); L218: return tunedText.toString(); L219: } L220:}...github.com/codelibs/fess/src/main/java/org/code...Thu Oct 24 08:52:32 UTC 2024 7.5K bytes -
CurlRequest.java
} L191: } L192: url = url + urlBuf.toString(); L193: } L194: L195: HttpURLConnection connection = null; L196: try { L197: logger.fine(() -> ">>> " + method + " " + url); L198: final URL u = new URL(url); L199: connection = open(u); L200: connection.setRequestMethod(method.toString()); L201: if (headerList != null) { L202: for (final...github.com/codelibs/curl4j/src/main/java/org/co...Sun Feb 12 12:21:25 UTC 2023 12.3K bytes -
DictCrudTestBase.java
getListEndpointSuffix()).asString(); L76: List<Object> objList = JsonPath.from(response).getList(getJsonPath() + "." + getIdKey()); L77: List<String> ret = new ArrayList<>(); L78: for (Object obj : objList) { L79: ret.add(obj.toString()); L80: } L81: return ret; L82: } L83: L84: @Override L85: protected void testRead() { L86: final Map<String, Object> searchBody = new HashMap<>(); L87: String response = checkGetMethod(searchBody, getListEn...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 3.3K bytes -
BoostDocTests.java
createTestParam(int id) { L62: final Map<String, Object> requestBody = new HashMap<>(); L63: final String keyProp = NAME_PREFIX + id; L64: requestBody.put(KEY_PROPERTY, keyProp); L65: requestBody.put("boost_expr", new Integer(id).toString()); L66: requestBody.put("sort_order", id); L67: return requestBody; L68: } L69: L70: @Override L71: protected Map<String, Object> getUpdateMap() { L72: final Map<String, Object> updateMap = new HashMap<>(); L73: ...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 2.3K bytes -
FuzzyQueryCommand.java
.prefixLength(fessConfig.getQueryFuzzyPrefixLengthAsInteger()) L76: .transpositions(Constants.TRUE.equalsIgnoreCase(fessConfig.getQueryFuzzyTranspositions())); L77: } L78: L79: final String origQuery = term.toString(); L80: context.addFieldLog(Constants.DEFAULT_FIELD, origQuery); L81: context.addHighlightedQuery(origQuery); L82: return buildDefaultQueryBuilder(fessConfig, context, L83: (f, b) -> QueryBuilders.fuzzyQuery(f,...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 4.3K bytes -
AdminStorageAction.java
L349: for (int i = 0; i < values.length - 1; i++) { L350: if (buf.length() > 0) { L351: buf.append('/'); L352: } L353: buf.append(values[i]); L354: } L355: return new PathInfo(buf.toString(), values[values.length - 1]); L356: } L357: L358: protected static String createParentId(final String prefix) { L359: if (prefix == null) { L360: return StringUtil.EMPTY; L361: } L362: final String[] values...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 19.9K bytes -
SearchHelper.java
final StringBuilder buf = new StringBuilder(100); L121: highlightQueries.stream().forEach(q -> { L122: buf.append("&hq=").append(LaFunctions.u(q)); L123: }); L124: data.setAppendHighlightParams(buf.toString()); L125: } L126: L127: queryResponseList.setExecTime(systemHelper.getCurrentTimeAsLong() - startTime); L128: final NumberFormat nf = NumberFormat.getInstance(params.getLocale()); L129: nf.setMaximumIntegerDigits(2); L130:...github.com/codelibs/fess/src/main/java/org/code...Fri Oct 11 21:20:39 UTC 2024 19.1K bytes -
PrefixQueryCommand.java
.maxExpansions(fessConfig.getQueryPrefixExpansionsAsInteger()).slop(fessConfig.getQueryPrefixSlopAsInteger())); L66: } L67: L68: if (!isSearchField(field)) { L69: final String query = prefixQuery.getPrefix().toString(); L70: final String origQuery = toLowercaseWildcard(query); L71: context.addFieldLog(Constants.DEFAULT_FIELD, query + "*"); L72: context.addHighlightedQuery(origQuery); L73: return buildDefaultQueryBuilder(fessConfig,...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 4.3K bytes -
BsFavoriteLog.java
sb.append(dm).append(url); L108: sb.append(dm).append(userInfoId); L109: if (sb.length() > dm.length()) { L110: sb.delete(0, dm.length()); L111: } L112: sb.insert(0, "{").append("}"); L113: return sb.toString(); L114: } L115: L116: // =================================================================================== L117: // Accessor L118: // ...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 5.6K bytes