id
stringlengths
24
24
repo
stringlengths
7
59
path
stringlengths
11
234
func_name
stringlengths
3
140
url
stringlengths
102
339
split
stringclasses
3 values
language
stringclasses
1 value
docstring
stringlengths
1
34k
code
stringlengths
63
466k
text
stringlengths
101
467k
token_count
int32
22
125k
doc_chars
int32
1
34k
code_chars
int32
63
466k
license_basis
stringclasses
1 value
source
stringclasses
1 value
added
stringdate
2026-12-05 00:00:00
2026-12-05 00:00:00
record_sha256
stringlengths
64
64
license
stringclasses
18 values
license_class
stringclasses
4 values
license_source
stringlengths
45
101
42e405c9793f3022d6598470
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/SessionManager.java
SessionManager.executeOne
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/SessionManager.java#L1258-L1268
test
java
Execute a SELECT query and returns just one row. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param stm @param consistencyLevel @return @since 0.4.0.2
public Row executeOne(Statement stm, ConsistencyLevel consistencyLevel) { if (consistencyLevel != null) { if (consistencyLevel == ConsistencyLevel.SERIAL || consistencyLevel == ConsistencyLevel.LOCAL_SERIAL) { stm.setSerialConsistencyLevel(consistencyLevel); ...
Execute a SELECT query and returns just one row. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param stm @param consistencyLevel @return @since 0.4.0.2 public Row executeOne(Statement stm, ConsistencyLevel consistencyLevel) { if (consistencyLevel != null) { ...
150
203
472
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e8b3aab69d8a1278e986ca0ddfd93dea9fb7c3f4619cae291d9dcda46405ba1e
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
bc7713bb3b31de5d32664b8b
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/SessionManager.java
SessionManager.wrapCallbackResultSet
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/SessionManager.java#L1271-L1291
test
java
/*----------------------------------------------------------------------
private FutureCallback<ResultSet> wrapCallbackResultSet(FutureCallback<ResultSet> callback) { return new FutureCallback<ResultSet>() { @Override public void onSuccess(ResultSet result) { try { callback.onSuccess(result); } finally { ...
/*---------------------------------------------------------------------- private FutureCallback<ResultSet> wrapCallbackResultSet(FutureCallback<ResultSet> callback) { return new FutureCallback<ResultSet>() { @Override public void onSuccess(ResultSet result) { try { ...
102
72
654
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
60bf364b31d14d20794ce3e01e254b1d1a2ba8bb0f9b587afbcb087fc2cf4164
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
283a42aff4e9814feb196af2
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/SessionManager.java
SessionManager.executeAsync
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/SessionManager.java#L1634-L1637
test
java
Async-execute a query. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param callback {@link ExceedMaxAsyncJobsException} will be passed to {@link FutureCallback#onFailure(Throwable)} if number of async-jobs exceeds {@link #getMaxAsyncJobs()}. @param stm @since 0.4.0.2 ...
public void executeAsync(FutureCallback<ResultSet> callback, Statement stm) throws ExceedMaxAsyncJobsException { executeAsync(callback, stm, null); }
Async-execute a query. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param callback {@link ExceedMaxAsyncJobsException} will be passed to {@link FutureCallback#onFailure(Throwable)} if number of async-jobs exceeds {@link #getMaxAsyncJobs()}. @param stm @since 0.4.0.2 ...
158
446
173
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
eff636de01fa40b7526697575be857d04b7b57ad1bf88b1303097291a67f08f0
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
8730d7c7d343c0b24bd350c9
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/SessionManager.java
SessionManager.executeAsync
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/SessionManager.java#L1657-L1684
test
java
Async-execute a query. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param callback {@link ExceedMaxAsyncJobsException} will be passed to {@link FutureCallback#onFailure(Throwable)} if number of async-jobs exceeds {@link #getMaxAsyncJobs()}. @param stm @param consiste...
public void executeAsync(FutureCallback<ResultSet> callback, Statement stm, ConsistencyLevel consistencyLevel) throws ExceedMaxAsyncJobsException { if (!asyncSemaphore.tryAcquire()) { if (callback == null) { throw new ExceedMaxAsyncJobsException(maxSyncJobs); ...
Async-execute a query. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param callback {@link ExceedMaxAsyncJobsException} will be passed to {@link FutureCallback#onFailure(Throwable)} if number of async-jobs exceeds {@link #getMaxAsyncJobs()}. @param stm @param consiste...
352
470
1,257
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
eeb2083dbddd8e157241e4b0d1e2aa299a6bf41fb75b36f0fdb7ab373f1029df
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
e1cc3b03f558c30159c6f2a1
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/SessionManager.java
SessionManager.wrapCallbackRow
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/SessionManager.java#L2144-L2164
test
java
/*----------------------------------------------------------------------
private FutureCallback<ResultSet> wrapCallbackRow(FutureCallback<Row> callback) { return new FutureCallback<ResultSet>() { @Override public void onSuccess(ResultSet result) { try { callback.onSuccess(result.one()); } finally { ...
/*---------------------------------------------------------------------- private FutureCallback<ResultSet> wrapCallbackRow(FutureCallback<Row> callback) { return new FutureCallback<ResultSet>() { @Override public void onSuccess(ResultSet result) { try { ...
103
72
648
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
29ca50b972d36bd1fd35c1ec2aac4feed1ba64ce02beaab9c61b719dd44893f9
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
6755c394ebceaa5f73700036
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/SessionManager.java
SessionManager.executeOneAsync
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/SessionManager.java#L2507-L2510
test
java
Async-execute a query. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param callback {@link ExceedMaxAsyncJobsException} will be passed to {@link FutureCallback#onFailure(Throwable)} if number of async-jobs exceeds {@link #getMaxAsyncJobs()}. @param stm @throws ExceedM...
public void executeOneAsync(FutureCallback<Row> callback, Statement stm) throws ExceedMaxAsyncJobsException { executeOneAsync(callback, stm, null); }
Async-execute a query. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param callback {@link ExceedMaxAsyncJobsException} will be passed to {@link FutureCallback#onFailure(Throwable)} if number of async-jobs exceeds {@link #getMaxAsyncJobs()}. @param stm @throws ExceedM...
159
446
173
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
83f136ea517894befabeba98c1edb3f5b1491a0639c9cb02aa49782c76454213
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
eaa0651b9d41c0b0cc9ab998
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/SessionManager.java
SessionManager.executeBatch
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/SessionManager.java#L3043-L3045
test
java
Execute a batch statement. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param consistencyLevel @param statements @return @since 0.4.0
public ResultSet executeBatch(ConsistencyLevel consistencyLevel, Statement... statements) { return CqlUtils.executeBatch(getSession(), consistencyLevel, statements); }
Execute a batch statement. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param consistencyLevel @param statements @return @since 0.4.0 public ResultSet executeBatch(ConsistencyLevel consistencyLevel, Statement... statements) { return CqlUtils.executeBatch(get...
81
186
179
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
acf9aaf9c8a5c2e5146ea51c67eea15f3c12a3c1a01559c75c06d7c929b65d5e
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
492dffeca0fc9aa6cb4b2216
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/SessionManager.java
SessionManager.executeBatch
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/SessionManager.java#L3059-L3061
test
java
Execute a batch statement. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param batchType @param statements @return @since 0.4.0
public ResultSet executeBatch(BatchStatement.Type batchType, Statement... statements) { return CqlUtils.executeBatch(getSession(), batchType, statements); }
Execute a batch statement. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param batchType @param statements @return @since 0.4.0 public ResultSet executeBatch(BatchStatement.Type batchType, Statement... statements) { return CqlUtils.executeBatch(getSession(), ...
81
179
168
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8b9d986b661f5bebe0b17fe57dd7b93e5235134a339375ea539117e84a4d56ff
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
1dcf672268af026ecc941d0b
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/SessionManager.java
SessionManager.executeBatchAsync
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/SessionManager.java#L3098-L3117
test
java
Async-execute a batch statement. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param callback {@link ExceedMaxAsyncJobsException} will be passed to {@link FutureCallback#onFailure(Throwable)} if number of async-jobs exceeds {@link #getMaxAsyncJobs()}. @param statement...
public void executeBatchAsync(FutureCallback<ResultSet> callback, Statement... statements) throws ExceedMaxAsyncJobsException { if (!asyncSemaphore.tryAcquire()) { if (callback == null) { throw new ExceedMaxAsyncJobsException(maxSyncJobs); } else { ...
Async-execute a batch statement. <p> The default session (obtained via {@link #getSession()} is used to execute the query. </p> @param callback {@link ExceedMaxAsyncJobsException} will be passed to {@link FutureCallback#onFailure(Throwable)} if number of async-jobs exceeds {@link #getMaxAsyncJobs()}. @param statement...
275
461
840
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6c7624a1b06cbaa7017c575cd8008b015c6571c83ff846549e4273e60ac7fec6
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
cfd8e3d30925676188afdc14
vdmeer/execs
src/main/java/de/vandermeer/execs/cf/CF.java
CF.setJarFilter
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/cf/CF.java#L106-L110
test
java
Sets a jar filter. @param jarFilter new filter, use null or empty list to not filter. The list will be copied locally. @return self to allow for chaining
public CF setJarFilter(List<String> jarFilter){ this.locator.setJarFilter(jarFilter); this.needsReRun = true; return this; }
Sets a jar filter. @param jarFilter new filter, use null or empty list to not filter. The list will be copied locally. @return self to allow for chaining public CF setJarFilter(List<String> jarFilter){ this.locator.setJarFilter(jarFilter); this.needsReRun = true; return this; }
71
153
131
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5e5b26db4e9f05ec8feedfdf58c67464d2cb666179b50d030dae0cde92857f6a
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
7bda16b896ea4ec6849a76b5
vdmeer/execs
src/main/java/de/vandermeer/execs/cf/CF.java
CF.getSubclasses
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/cf/CF.java#L137-L156
test
java
Returns all subclasses found for the given class. @param clazz class to search for @return all found subclasses
public Set<Class<?>> getSubclasses(Class<?> clazz){ Set<Class<?>> ret = new HashSet<Class<?>>(); Set<Class<?>> w = null; if(clazz!=null){ this.clear(); Map<URI, String> locations = this.locator.getCfLocations(); for(Entry<URI, String> entry : locations.entrySet()){ try{ w = search(clazz, entry....
Returns all subclasses found for the given class. @param clazz class to search for @return all found subclasses public Set<Class<?>> getSubclasses(Class<?> clazz){ Set<Class<?>> ret = new HashSet<Class<?>>(); Set<Class<?>> w = null; if(clazz!=null){ this.clear(); Map<URI, String> locations = this.locator....
150
111
494
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5599c22fde1f575961d8c5e6dfd3dc125baf11c9f967a2e398254120ea309e6c
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
fff754f26db475cda89e4a5a
vdmeer/execs
src/main/java/de/vandermeer/execs/cf/CF.java
CF.getSubclasses
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/cf/CF.java#L163-L181
test
java
Returns all subclasses found for the given fully qualified class name. @param fqcn fully qualified class name, e.g. package and class name @return all found subclasses
public Set<Class<?>> getSubclasses(String fqcn){ if(fqcn==null){ return new HashSet<Class<?>>(); } else if(StringUtils.startsWith(fqcn, ".") || StringUtils.endsWith(fqcn, ".")){ return new HashSet<Class<?>>(); } Class<?> clazz = null; try{ clazz = Class.forName(fqcn); } catch(ClassNotFoundExce...
Returns all subclasses found for the given fully qualified class name. @param fqcn fully qualified class name, e.g. package and class name @return all found subclasses public Set<Class<?>> getSubclasses(String fqcn){ if(fqcn==null){ return new HashSet<Class<?>>(); } else if(StringUtils.startsWith(fqcn, ".") |...
150
167
444
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8506edafe24f4df86054ee788b89d16fd99b5d227eb7f3182118782d87d5961d
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
860263e50f97dc716921a8f0
vdmeer/execs
src/main/java/de/vandermeer/execs/cf/CF.java
CF.search
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/cf/CF.java#L191-L203
test
java
Returns all known subclasses for a given class, location and package name @param clazz class to search for @param location a URL to look into @param packageName a package name @return all found subclasses in location, empty set of none found @throws MalformedURLException
private final Set<Class<?>> search(Class<?> clazz, URI location, String packageName) throws MalformedURLException{ if(clazz==null || location==null){ return new HashSet<Class<?>>(); } File directory = new File(location.toURL().getFile()); if(directory.exists()){ return this.searchDirectory(clazz, directo...
Returns all known subclasses for a given class, location and package name @param clazz class to search for @param location a URL to look into @param packageName a package name @return all found subclasses in location, empty set of none found @throws MalformedURLException private final Set<Class<?>> search(Class<?> cla...
149
271
427
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e2ff468ec51e14be6570c4c5e17a7d36b5df06a83881499b0f12751d12e31304
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
68e3cd3e39d8491dad8ca487
vdmeer/execs
src/main/java/de/vandermeer/execs/cf/CF.java
CF.searchDirectory
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/cf/CF.java#L213-L232
test
java
Returns all known subclasses found in a given directory. @param clazz class name to look for @param directory search directory @param location a URI location for return map @param packageName a package name to test against class name @return a map with found classes, empty if none found
protected final Map<Class<?>, URI> searchDirectory(Class<?> clazz, File directory, URI location, String packageName){ Map<Class<?>, URI> ret = new HashMap<>(); String[] files = directory.list(); for(int i=0; i<files.length; i++){ if(files[i].endsWith(".class")){ String classname = files[i].substring(0, fi...
Returns all known subclasses found in a given directory. @param clazz class name to look for @param directory search directory @param location a URI location for return map @param packageName a package name to test against class name @return a map with found classes, empty if none found protected final Map<Class<?>, U...
214
287
625
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4a5604ba5d88b43a0c8e47e5fc4f83cb5968cfb4228ff20591cf770e9fa7238a
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
a0350ca5018a886a9f69b341
vdmeer/execs
src/main/java/de/vandermeer/execs/cf/CF.java
CF.searchJar
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/cf/CF.java#L240-L283
test
java
Returns all known subclasses found in a given location @param clazz class name to look for @param location a URI location for return map @return a map with found classes, empty if none found
protected final Map<Class<?>, URI> searchJar(Class<?> clazz, URI location){ Map<Class<?>, URI> ret = new HashMap<>(); try{ JarURLConnection conn = (JarURLConnection)location.toURL().openConnection(); JarFile jarFile = conn.getJarFile(); for(Enumeration<JarEntry> e = jarFile.entries(); e.hasMoreElements()...
Returns all known subclasses found in a given location @param clazz class name to look for @param location a URI location for return map @return a map with found classes, empty if none found protected final Map<Class<?>, URI> searchJar(Class<?> clazz, URI location){ Map<Class<?>, URI> ret = new HashMap<>(); try{ ...
329
190
1,240
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ea68d9e59b076a3cca1fda0be02a640fa23f1d4e8b5413ff23be2abc87098a0b
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
c27ea688104d755471e20aec
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/HashMap3.java
HashMap3.size
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/HashMap3.java#L110-L120
test
java
Returns the accumulated size of all the bottom level maps.
public int size() { int result = 0; // sum over all inner maps for ( Iterator<K1> keys1 = maps.keySet().iterator(); keys1.hasNext(); ) { Map2<K2,K3,V> inner_map = maps.get(keys1.next()); result += inner_map.size(); } return result; ...
Returns the accumulated size of all the bottom level maps. public int size() { int result = 0; // sum over all inner maps for ( Iterator<K1> keys1 = maps.keySet().iterator(); keys1.hasNext(); ) { Map2<K2,K3,V> inner_map = maps.get(keys1.next()); resul...
87
58
324
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9364b35b814ce085f792dfa2bc09e6eb00560ae80579cdb521bb6f11500f2e6e
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
a363e242689e1732d56e0c52
abmargb/jamppa
src/main/java/org/jivesoftware/smack/PacketCollector.java
PacketCollector.nextResult
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/PacketCollector.java#L139-L145
test
java
Returns the next available packet. The method call will block (not return) until a packet is available or the <tt>timeout</tt> has elapased. If the timeout elapses without a result, <tt>null</tt> will be returned. @param timeout the amount of time to wait for the next packet (in milleseconds). @return the next availab...
public Packet nextResult(long timeout) { try { return resultQueue.poll(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { throw new RuntimeException(e); } }
Returns the next available packet. The method call will block (not return) until a packet is available or the <tt>timeout</tt> has elapased. If the timeout elapses without a result, <tt>null</tt> will be returned. @param timeout the amount of time to wait for the next packet (in milleseconds). @return the next availab...
119
330
225
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c20382161241e068d38e9cd8a2f2abc4fb13a210705b788fd19efae4242c8ceb
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
0f0dd0d1d3de25e2344bea5f
abmargb/jamppa
src/main/java/org/jivesoftware/smack/PacketCollector.java
PacketCollector.processPacket
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/PacketCollector.java#L154-L166
test
java
Processes a packet to see if it meets the criteria for this packet collector. If so, the packet is added to the result queue. @param packet the packet to process.
protected void processPacket(Packet packet) { if (packet == null) { return; } if (packetFilter == null || packetFilter.accept(packet)) { while (!resultQueue.offer(packet)) { // Since we know the queue is full, this poll should never // act...
Processes a packet to see if it meets the criteria for this packet collector. If so, the packet is added to the result queue. @param packet the packet to process. protected void processPacket(Packet packet) { if (packet == null) { return; } if (packetFilter == null || packetFilter...
111
163
398
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4d5369cfe40da3f11ac6c6dfb4126145c5a10ee040eb1e9a0eb3454e3e58966a
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
b0a3855d45ccd55804cfedd7
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedFilterableSet.java
SynchronizedFilterableSet.decorate
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedFilterableSet.java#L36-L38
test
java
Factory method to create a synchronized map. @param map the map to decorate, must not be null @throws IllegalArgumentException if map is null
public static <E> FilterableSet<E> decorate(FilterableSet<E> set) { return new SynchronizedFilterableSet<E>(set); }
Factory method to create a synchronized map. @param map the map to decorate, must not be null @throws IllegalArgumentException if map is null public static <E> FilterableSet<E> decorate(FilterableSet<E> set) { return new SynchronizedFilterableSet<E>(set); }
62
143
129
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f91ecf0124d8e30b96e1086e6234b598309a8d0cf5d89fd93ef0860a44af9b11
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
f25e3272b150c5b030ca009c
abmargb/jamppa
src/main/java/org/jamppa/component/utils/XMPPUtils.java
XMPPUtils.error
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jamppa/component/utils/XMPPUtils.java#L34-L37
test
java
Logs the error and returns an IQ error response @param iq @param errorMessage @param logger @return
public static IQ error(IQ iq, String errorMessage, Logger logger) { logger.error(errorMessage); return error(iq, errorMessage); }
Logs the error and returns an IQ error response @param iq @param errorMessage @param logger @return public static IQ error(IQ iq, String errorMessage, Logger logger) { logger.error(errorMessage); return error(iq, errorMessage); }
51
100
149
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2469594506bf48975e393a289bd5d93fd0e37924d446a08f417fd83221f29603
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
f0875d901063180eb942056a
abmargb/jamppa
src/main/java/org/jamppa/component/utils/XMPPUtils.java
XMPPUtils.error
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jamppa/component/utils/XMPPUtils.java#L47-L50
test
java
Logs the error and returns an IQ error response @param iq @param errorMessage @param logger @return
public static IQ error(IQ iq, String errorMessage) { return XMPPUtils.createErrorResponse(iq, errorMessage, Condition.bad_request, Type.modify); }
Logs the error and returns an IQ error response @param iq @param errorMessage @param logger @return public static IQ error(IQ iq, String errorMessage) { return XMPPUtils.createErrorResponse(iq, errorMessage, Condition.bad_request, Type.modify); }
55
100
174
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ea178fa3be35dd8ae7a710cacf0f4a0a3615f576158d93ee608fb26a787457b5
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
dd4eab43feee64a9572aeb82
abmargb/jamppa
src/main/java/org/jamppa/component/utils/XMPPUtils.java
XMPPUtils.errorRSM
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jamppa/component/utils/XMPPUtils.java#L73-L78
test
java
Logs the RSM page not found error and returns an IQ error response @param iq @param errorMessage @param logger @return
public static IQ errorRSM(IQ iq, Logger logger) { String rsmMessage = "RSM: Page Not Found"; logger.error(rsmMessage + " " + iq); return XMPPUtils.createErrorResponse(iq, rsmMessage, Condition.item_not_found, Type.cancel); }
Logs the RSM page not found error and returns an IQ error response @param iq @param errorMessage @param logger @return public static IQ errorRSM(IQ iq, Logger logger) { String rsmMessage = "RSM: Page Not Found"; logger.error(rsmMessage + " " + iq); return XMPPUtils.createErrorResponse(iq, rsmM...
91
119
268
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b6820db0367a3a4a0797acea73db35e0227426ba846b5472dcd4f6738570173e
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
29b0ca37b35959ace2cbdec0
abmargb/jamppa
src/main/java/org/jamppa/component/utils/XMPPUtils.java
XMPPUtils.createErrorResponse
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jamppa/component/utils/XMPPUtils.java#L89-L103
test
java
Creates an error response for a given IQ request. @param request @param message @param condition @param type @return
public static IQ createErrorResponse(final IQ request, final String message, Condition condition, Type type) { final IQ result = request.createCopy(); result.setID(request.getID()); result.setFrom(request.getTo()); result.setTo(request.getFrom()); PacketError e = new...
Creates an error response for a given IQ request. @param request @param message @param condition @param type @return public static IQ createErrorResponse(final IQ request, final String message, Condition condition, Type type) { final IQ result = request.createCopy(); result.setID(request.g...
114
117
481
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
caacab1d7f911b015f6ed794187f6b7b5a21d3376e05cce7fd43cd09f166a28a
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
ac74b0f128bf8cbaed6b1363
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedSortedMap.java
SynchronizedSortedMap.decorate
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedSortedMap.java#L35-L37
test
java
Factory method to create a synchronized map. @param map the map to decorate, must not be null @throws IllegalArgumentException if map is null
public static <K,V> SortedMap<K,V> decorate(SortedMap<K,V> map) { return new SynchronizedSortedMap<K,V>(map); }
Factory method to create a synchronized map. @param map the map to decorate, must not be null @throws IllegalArgumentException if map is null public static <K,V> SortedMap<K,V> decorate(SortedMap<K,V> map) { return new SynchronizedSortedMap<K,V>(map); }
64
143
125
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
21ebe173bdebb5b9d9f53682e8ef7dffb02a5de71b3981a883a46958644b745c
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
0ebc2de6842628737aeaccc9
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedSortedMap.java
SynchronizedSortedMap.comparator
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedSortedMap.java#L66-L73
test
java
-----------------------------------------------------------------------
public Comparator<? super K> comparator() { return SyncUtils.synchronizeRead(lock, new Callback<Comparator<? super K>>() { @Override protected void doAction() { _return(getSortedMap().comparator()); } }); }
----------------------------------------------------------------------- public Comparator<? super K> comparator() { return SyncUtils.synchronizeRead(lock, new Callback<Comparator<? super K>>() { @Override protected void doAction() { _return(getSortedMap().comparator(...
56
71
285
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d75292ee2a305ece650d1abe6ff922dbf5ac3a2dd1fd29119a1f7fdc9eaa7744
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
2a60c95c0049f097f85b01f4
abmargb/jamppa
src/main/java/org/jivesoftware/smack/filter/IQTypeFilter.java
IQTypeFilter.accept
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/filter/IQTypeFilter.java#L44-L46
test
java
/* (non-Javadoc) @see org.jivesoftware.smack.filter.PacketFilter#accept(org.jivesoftware.smack .packet.Packet)
public boolean accept(Packet packet) { return (packet instanceof IQ && ((IQ) packet).getType().equals(type)); }
/* (non-Javadoc) @see org.jivesoftware.smack.filter.PacketFilter#accept(org.jivesoftware.smack .packet.Packet) public boolean accept(Packet packet) { return (packet instanceof IQ && ((IQ) packet).getType().equals(type)); }
54
111
123
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ca7115cc362c6c517b5cd0225fc1c0a82d0ef6884b929c81bd436aca684d59ae
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
0d3986a7c6dac8af83f6d7b3
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedSet.java
SynchronizedSet.decorate
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedSet.java#L40-L42
test
java
Factory method to create a synchronized set. @param set the set to decorate, must not be null @throws IllegalArgumentException if set is null
public static <E> Set<E> decorate(Set<E> set) { return new SynchronizedSet<E>(set); }
Factory method to create a synchronized set. @param set the set to decorate, must not be null @throws IllegalArgumentException if set is null public static <E> Set<E> decorate(Set<E> set) { return new SynchronizedSet<E>(set); }
56
143
99
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ee5c1001a5b431235d1fa57a2a3933fc2910b130e01e8b730f0674793344d330
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
7dd103a1ac6edb99184b7e12
abmargb/jamppa
src/main/java/org/jivesoftware/smack/RosterEntry.java
RosterEntry.setName
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/RosterEntry.java#L96-L106
test
java
Sets the name associated with this entry. @param name the name.
public void setName(String name) { // Do nothing if the name hasn't changed. if (name != null && name.equals(this.name)) { return; } this.name = name; Roster packet = new Roster(); packet.setType(IQ.Type.set); packet.addItem(new JID(user), name, ask, s...
Sets the name associated with this entry. @param name the name. public void setName(String name) { // Do nothing if the name hasn't changed. if (name != null && name.equals(this.name)) { return; } this.name = name; Roster packet = new Roster(); packet.setTyp...
99
64
395
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c2ff3af1578c5f448698e1c24a76cb04149e13c7f15a973c1fd716842b99faa3
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
1c7e1a7dd994795dd8ff6ea6
abmargb/jamppa
src/main/java/org/jivesoftware/smack/RosterEntry.java
RosterEntry.updateState
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/RosterEntry.java#L119-L123
test
java
Updates the state of the entry with the new values. @param name the nickname for the entry. @param type the subscription type. @param status the subscription status (related to subscriptions pending to be approbed).
void updateState(String name, Subscription type, Ask status) { this.name = name; this.subscription = type; this.ask = status; }
Updates the state of the entry with the new values. @param name the nickname for the entry. @param type the subscription type. @param status the subscription status (related to subscriptions pending to be approbed). void updateState(String name, Subscription type, Ask status) { this.name = name; this....
77
216
155
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2d3606387e596379b93c8e67b9339af167b16e519db087e38af00dce219b9537
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
f0fbd94532b51eb34349597f
abmargb/jamppa
src/main/java/org/jivesoftware/smack/RosterEntry.java
RosterEntry.getGroups
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/RosterEntry.java#L131-L141
test
java
Returns an unmodifiable collection of the roster groups that this entry belongs to. @return an iterator for the groups this entry belongs to.
public Collection<RosterGroup> getGroups() { List<RosterGroup> results = new ArrayList<RosterGroup>(); // Loop through all roster groups and find the ones that contain this // entry. This algorithm should be fine for (RosterGroup group : roster.getGroups()) { if (group.contai...
Returns an unmodifiable collection of the roster groups that this entry belongs to. @return an iterator for the groups this entry belongs to. public Collection<RosterGroup> getGroups() { List<RosterGroup> results = new ArrayList<RosterGroup>(); // Loop through all roster groups and find the ones that ...
116
142
457
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3eb2be02f1d409d443221e3310e2ef3cef84416ea9d45d5ed95fcd4542e66ddf
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
e460e32f040f016dd4bca2e0
abmargb/jamppa
src/main/java/org/jivesoftware/smack/RosterEntry.java
RosterEntry.equalsDeep
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/RosterEntry.java#L228-L257
test
java
Indicates whether some other object is "equal to" this by comparing all members. <p> The {@link #equals(Object)} method returns <code>true</code> if the user JIDs are equal. @param obj the reference object with which to compare. @return <code>true</code> if this object is the same as the obj argument; <code>false</cod...
public boolean equalsDeep(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; RosterEntry other = (RosterEntry) obj; if (name == null) { if (other.name != null) ...
Indicates whether some other object is "equal to" this by comparing all members. <p> The {@link #equals(Object)} method returns <code>true</code> if the user JIDs are equal. @param obj the reference object with which to compare. @return <code>true</code> if this object is the same as the obj argument; <code>false</cod...
279
333
970
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d58be0222929efb16b5ce1767eae70983c88280422ee5ad7ebb6297a37991e11
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
f810799255f3ecb70d3f2110
abmargb/jamppa
src/main/java/org/jamppa/component/utils/RSMUtils.java
RSMUtils.appendRSMElement
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jamppa/component/utils/RSMUtils.java#L40-L55
test
java
Appends RSM info to query response. @param queryElement @param rsm
public static void appendRSMElement(Element queryElement, RSM rsm) { Element setElement = queryElement.addElement("set", RSM.NAMESPACE); if (rsm.getFirst() != null) { Element firstElement = setElement.addElement("first"); firstElement.addAttribute("index", rsm.getIndex().toStrin...
Appends RSM info to query response. @param queryElement @param rsm public static void appendRSMElement(Element queryElement, RSM rsm) { Element setElement = queryElement.addElement("set", RSM.NAMESPACE); if (rsm.getFirst() != null) { Element firstElement = setElement.addElement("first"); ...
143
67
633
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
56e5b5e54ffb3c3f3ccccbb7b61667a080ea1fa1c34dfe8d98af97e206cb2c73
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
a9b023898f773ae782633a11
abmargb/jamppa
src/main/java/org/jamppa/component/utils/RSMUtils.java
RSMUtils.parseRSM
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jamppa/component/utils/RSMUtils.java#L63-L93
test
java
Parses an RSM from a query XML element @param queryElement @return The parsed RSM object
public static RSM parseRSM(Element queryElement) { RSM rsm = new RSM(); Element setElement = queryElement.element("set"); if (setElement == null) { return rsm; } Element after = setElement.element("after"); if (after != null) { rsm.setAfter(after...
Parses an RSM from a query XML element @param queryElement @return The parsed RSM object public static RSM parseRSM(Element queryElement) { RSM rsm = new RSM(); Element setElement = queryElement.element("set"); if (setElement == null) { return rsm; } Element after...
209
89
878
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6863f0fb76e70b6927b9bc6a813cbcd397d8f1082fe8b1b2a04b0b8b913f7f21
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
794dfeebbcd1e42acbd74dae
abmargb/jamppa
src/main/java/org/jamppa/component/utils/RSMUtils.java
RSMUtils.filterRSMResponse
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jamppa/component/utils/RSMUtils.java#L106-L166
test
java
Filters response objects based on the RSM parameters. Updates the RSM object with item count, first and last jid @param objects @param rsm @return @throws IllegalArgumentException If the item specified by the requesting entity via the UID in the <after/> or <before/> element does not exist
public static List<Identifiable> filterRSMResponse( List<Identifiable> objects, RSM rsm) throws IllegalArgumentException { String after = rsm.getAfter(); String before = rsm.getBefore(); int initialIndex = rsm.getIndex(); int lastIndex = objects.size(); ...
Filters response objects based on the RSM parameters. Updates the RSM object with item count, first and last jid @param objects @param rsm @return @throws IllegalArgumentException If the item specified by the requesting entity via the UID in the <after/> or <before/> element does not exist public static List<Identifi...
452
291
1,987
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9169deedb1883411cb25870e597f3c82d9549a7766dcf1a53ca30dec40e5d3c5
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
8d1ed66fcab2110731951dfe
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.reload
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L210-L227
test
java
Reloads the entire roster from the server. This is an asynchronous operation, which means the method will return immediately, and the roster will be reloaded at a later point when the server responds to the reload request. @throws IllegalStateException if connection is not logged in or logged in anonymously
public void reload() { if (!connection.isAuthenticated()) { throw new IllegalStateException("Not logged in to server."); } if (connection.isAnonymous()) { throw new IllegalStateException( "Anonymous users can't have a roster."); } Rost...
Reloads the entire roster from the server. This is an asynchronous operation, which means the method will return immediately, and the roster will be reloaded at a later point when the server responds to the reload request. @throws IllegalStateException if connection is not logged in or logged in anonymously public vo...
195
309
750
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4ae3ea0ba584a4dea974b4252151b8b844831d741d5e966b4f8593e91b457b75
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
594806f9603b09a370d3af1e
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.createGroup
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L267-L283
test
java
Creates a new group. <p> <p/> Note: you must add at least one entry to the group for the group to be kept after a logout/login. This is due to the way that XMPP stores group information. @param name the name of the group. @return a new group. @throws IllegalStateException if connection is not logged in or logged in an...
public RosterGroup createGroup(String name) { if (!connection.isAuthenticated()) { throw new IllegalStateException("Not logged in to server."); } if (connection.isAnonymous()) { throw new IllegalStateException( "Anonymous users can't have a roster."); ...
Creates a new group. <p> <p/> Note: you must add at least one entry to the group for the group to be kept after a logout/login. This is due to the way that XMPP stores group information. @param name the name of the group. @return a new group. @throws IllegalStateException if connection is not logged in or logged in an...
187
329
619
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
35c5469bdb7bdf9b0bce4a3c78306bf09d6f77b886cab42dd2e6fe98fc238a08
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
9fa8207cac73ac601f272534
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.createEntry
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L301-L335
test
java
Creates a new roster entry and presence subscription. The server will asynchronously update the roster with the subscription status. @param user the user. (e.g. johndoe@jabber.org) @param name the nickname of the user. @param groups the list of group names the entry will belong to, or <tt>null</tt> if the the roster e...
public void createEntry(String user, String name, String[] groups) throws XMPPException { if (!connection.isAuthenticated()) { throw new IllegalStateException("Not logged in to server."); } if (connection.isAnonymous()) { throw new IllegalStateException( ...
Creates a new roster entry and presence subscription. The server will asynchronously update the roster with the subscription status. @param user the user. (e.g. johndoe@jabber.org) @param name the nickname of the user. @param groups the list of group names the entry will belong to, or <tt>null</tt> if the the roster e...
400
486
1,548
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
65acbbb476c2896916156cfa9272bf2ac34114cc9518b69c5be3012c84946721
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
2368936bfa3c7642a49180ba
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.removeEntry
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L351-L383
test
java
Removes a roster entry from the roster. The roster entry will also be removed from the unfiled entries or from any roster group where it could belong and will no longer be part of the roster. Note that this is an asynchronous call -- Smack must wait for the server to send an updated subscription status. @param entry a...
public void removeEntry(RosterEntry entry) throws XMPPException { if (!connection.isAuthenticated()) { throw new IllegalStateException("Not logged in to server."); } if (connection.isAnonymous()) { throw new IllegalStateException( "Anonymous users can'...
Removes a roster entry from the roster. The roster entry will also be removed from the unfiled entries or from any roster group where it could belong and will no longer be part of the roster. Note that this is an asynchronous call -- Smack must wait for the server to send an updated subscription status. @param entry a...
368
467
1,426
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
1b398e7170b58e31809bfda5009fb41450a6939799f923d3782b0a71d59d7b85
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
31318d39fb63815e3b61ec59
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.getEntries
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L400-L410
test
java
Returns an unmodifiable collection of all entries in the roster, including entries that don't belong to any groups. @return all entries in the roster.
public Collection<RosterEntry> getEntries() { Set<RosterEntry> allEntries = new HashSet<RosterEntry>(); // Loop through all roster groups and add their entries to the answer for (RosterGroup rosterGroup : getGroups()) { allEntries.addAll(rosterGroup.getEntries()); } /...
Returns an unmodifiable collection of all entries in the roster, including entries that don't belong to any groups. @return all entries in the roster. public Collection<RosterEntry> getEntries() { Set<RosterEntry> allEntries = new HashSet<RosterEntry>(); // Loop through all roster groups and add their...
127
151
479
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5123339f7edfdbe89dca9a712753738a6394545c71b41f0a24974130f31cac84
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
c67cf75adf800561eda635b5
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.getEntry
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L442-L447
test
java
Returns the roster entry associated with the given XMPP address or <tt>null</tt> if the user is not an entry in the roster. @param user the XMPP address of the user (eg "jsmith@example.com"). The address could be in any valid format (e.g. "domain/resource", "user@domain" or "user@domain/resource"). @return the roster ...
public RosterEntry getEntry(String user) { if (user == null) { return null; } return entries.get(user.toLowerCase()); }
Returns the roster entry associated with the given XMPP address or <tt>null</tt> if the user is not an entry in the roster. @param user the XMPP address of the user (eg "jsmith@example.com"). The address could be in any valid format (e.g. "domain/resource", "user@domain" or "user@domain/resource"). @return the roster ...
126
364
159
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2ac535c9e4d2f54dbe8a40027f7038e3a5702e4069a9953e0b121ffee8710641
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
8895e3c9bbaa542d4cc74b7c
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.getPresence
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L525-L573
test
java
Returns the presence info for a particular user. If the user is offline, or if no presence data is available (such as when you are not subscribed to the user's presence updates), unavailable presence will be returned. <p> <p/> If the user has several presences (one for each resource), then the presence with highest pri...
public Presence getPresence(String user) { String key = getPresenceMapKey(StringUtils.parseBareAddress(user)); Map<String, Presence> userPresences = presenceMap.get(key); if (userPresences == null) { Presence presence = new Presence(Presence.Type.unavailable); presence.se...
Returns the presence info for a particular user. If the user is offline, or if no presence data is available (such as when you are not subscribed to the user's presence updates), unavailable presence will be returned. <p> <p/> If the user has several presences (one for each resource), then the presence with highest pri...
737
1,666
2,069
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
fa77bbee520794448a6df0901df9a6024a3061c51769652c96172817ce02d1e6
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
2e35d52dd0e7fd4327efca57
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.getPresenceResource
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L587-L605
test
java
Returns the presence info for a particular user's resource, or unavailable presence if the user is offline or if no presence information is available, such as when you are not subscribed to the user's presence updates. @param userWithResource a fully qualified XMPP ID including a resource (user@domain/resource). @retu...
public Presence getPresenceResource(String userWithResource) { String key = getPresenceMapKey(userWithResource); String resource = StringUtils.parseResource(userWithResource); Map<String, Presence> userPresences = presenceMap.get(key); if (userPresences == null) { Presence pr...
Returns the presence info for a particular user's resource, or unavailable presence if the user is offline or if no presence information is available, such as when you are not subscribed to the user's presence updates. @param userWithResource a fully qualified XMPP ID including a resource (user@domain/resource). @retu...
233
442
797
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dde6dd5c335debb2b5525551beed14b47513587ea10bd480fdbaa013cb020221
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
93c14ddfbee8efc056064bf1
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.getPresences
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L619-L641
test
java
Returns an iterator (of Presence objects) for all of a user's current presences or an unavailable presence if the user is unavailable (offline) or if no presence information is available, such as when you are not subscribed to the user's presence updates. @param user a XMPP ID, e.g. jdoe@example.com. @return an iterat...
public Iterator<Presence> getPresences(String user) { String key = getPresenceMapKey(user); Map<String, Presence> userPresences = presenceMap.get(key); if (userPresences == null) { Presence presence = new Presence(Presence.Type.unavailable); presence.setFrom(user); ...
Returns an iterator (of Presence objects) for all of a user's current presences or an unavailable presence if the user is unavailable (offline) or if no presence information is available, such as when you are not subscribed to the user's presence updates. @param user a XMPP ID, e.g. jdoe@example.com. @return an iterat...
281
476
943
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c32f084c378a02e6d77833e92407d7802719e37ecfb6c55f9b0dec8f555e9f1d
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
ed59dc5ca8125bbaf67396a1
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.getPresenceMapKey
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L659-L668
test
java
Returns the key to use in the presenceMap for a fully qualified XMPP ID. The roster can contain any valid address format such us "domain/resource", "user@domain" or "user@domain/resource". If the roster contains an entry associated with the fully qualified XMPP ID then use the fully qualified XMPP ID as the key in pres...
private String getPresenceMapKey(String user) { if (user == null) { return null; } String key = user; if (!contains(user)) { key = StringUtils.parseBareAddress(user); } return key.toLowerCase(); }
Returns the key to use in the presenceMap for a fully qualified XMPP ID. The roster can contain any valid address format such us "domain/resource", "user@domain" or "user@domain/resource". If the roster contains an entry associated with the fully qualified XMPP ID then use the fully qualified XMPP ID as the key in pres...
221
679
272
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0b7d534c441792e9cf2d9eb0879629639df4776edd203ffa3a15921e7ade1dfc
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
2241682bc7254c8d078296f7
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.setOfflinePresences
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L675-L687
test
java
Changes the presence of available contacts offline by simulating an unavailable presence sent from the server. After a disconnection, every Presence is set to offline.
private void setOfflinePresences() { Presence packetUnavailable; for (String user : presenceMap.keySet()) { Map<String, Presence> resources = presenceMap.get(user); if (resources != null) { for (String resource : resources.keySet()) { packetUna...
Changes the presence of available contacts offline by simulating an unavailable presence sent from the server. After a disconnection, every Presence is set to offline. private void setOfflinePresences() { Presence packetUnavailable; for (String user : presenceMap.keySet()) { Map<String, Pre...
129
167
566
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dcb0b767324f90c12008657ee9a05588abadcd1fdb17cb97c893f857e2f0f22b
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
75feeeac9a8015090c4e64d0
abmargb/jamppa
src/main/java/org/jivesoftware/smack/UserRoster.java
UserRoster.fireRosterChangedEvent
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/UserRoster.java#L701-L714
test
java
Fires roster changed event to roster listeners indicating that the specified collections of contacts have been added, updated or deleted from the roster. @param addedEntries the collection of address of the added contacts. @param updatedEntries the collection of address of the updated contacts. @param deletedEntries t...
private void fireRosterChangedEvent(Collection<String> addedEntries, Collection<String> updatedEntries, Collection<String> deletedEntries) { for (RosterListener listener : rosterListeners) { if (!addedEntries.isEmpty()) { listener.entriesAdded(addedEntries); }...
Fires roster changed event to roster listeners indicating that the specified collections of contacts have been added, updated or deleted from the roster. @param addedEntries the collection of address of the added contacts. @param updatedEntries the collection of address of the updated contacts. @param deletedEntries t...
163
369
568
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
203a789123190976bb18559b255ff44acee237ced62b3c0d027e16c6dba8f4c3
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
479e0290937e9761775abd37
abmargb/jamppa
src/main/java/org/jivesoftware/smack/packet/Authentication.java
Authentication.setDigest
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/packet/Authentication.java#L124-L126
test
java
Sets the digest value using a connection ID and password. Password digests offer a more secure alternative for authentication compared to plain text. The digest is the hex-encoded SHA-1 hash of the connection ID plus the user's password. If the digest and password are set, digest authentication will be used. If only on...
public void setDigest(String connectionID, String password) { setDigest(StringUtils.hash(connectionID + password)); }
Sets the digest value using a connection ID and password. Password digests offer a more secure alternative for authentication compared to plain text. The digest is the hex-encoded SHA-1 hash of the connection ID plus the user's password. If the digest and password are set, digest authentication will be used. If only on...
131
511
129
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
096344fe24c94ddc78c4df3db4166c05c37a4a4bcfa5d83bd25f20388d60102c
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
8b26333f33cc94442a568dd2
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractMapEntry.java
AbstractMapEntry.setValue
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractMapEntry.java#L59-L63
test
java
Sets the value stored in this Map Entry. <p/> This Map Entry is not connected to a Map, so only the local data is changed. @param value the new value @return the previous value
public V setValue(V value) { V answer = this.value; this.value = value; return answer; }
Sets the value stored in this Map Entry. <p/> This Map Entry is not connected to a Map, so only the local data is changed. @param value the new value @return the previous value public V setValue(V value) { V answer = this.value; this.value = value; return answer; }
68
177
116
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b7850633e87f75769359694c23d8f244e243c8250ec7b14e5b0b651e13942ed5
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
209f408d4654b9b87750cf0d
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/threadpool/ThreadPool.java
ThreadPool.borrowObject
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/threadpool/ThreadPool.java#L60-L66
test
java
/* (non-Javadoc) @see org.apache.commons.pool.ObjectPool#borrowObject()
@Override public Object borrowObject() throws Exception { log.debug(" borrowing object.."); WorkerThread thread = (WorkerThread)super.borrowObject(); thread.setPool(this); return thread; }
/* (non-Javadoc) @see org.apache.commons.pool.ObjectPool#borrowObject() @Override public Object borrowObject() throws Exception { log.debug(" borrowing object.."); WorkerThread thread = (WorkerThread)super.borrowObject(); thread.setPool(this); return thread; }
60
71
221
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
31e4d2ae18ddda0e75354210610d98874e3c7f1baf001e29ceb003957a318aba
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
32db1be16e549f6fc3a7fc05
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/threadpool/ThreadPool.java
ThreadPool.returnObject
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/threadpool/ThreadPool.java#L71-L75
test
java
/* (non-Javadoc) @see org.apache.commons.pool.ObjectPool#returnObject(java.lang.Object)
@Override public void returnObject(Object obj) throws Exception { log.debug(" returning object.." + obj); super.returnObject(obj); }
/* (non-Javadoc) @see org.apache.commons.pool.ObjectPool#returnObject(java.lang.Object) @Override public void returnObject(Object obj) throws Exception { log.debug(" returning object.." + obj); super.returnObject(obj); }
50
87
151
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e3ab2edb73c870bb6f4de8d5fb88c056b88862b610a644ca2803f55fb2a600d0
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
aba8de0ccf1a18a7b179ed32
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedMap.java
SynchronizedMap.decorate
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedMap.java#L41-L43
test
java
Factory method to create a synchronized map. @param map the map to decorate, must not be null @throws IllegalArgumentException if map is null
public static <K,V> Map<K,V> decorate(Map<K,V> map) { return new SynchronizedMap<K,V>(map); }
Factory method to create a synchronized map. @param map the map to decorate, must not be null @throws IllegalArgumentException if map is null public static <K,V> Map<K,V> decorate(Map<K,V> map) { return new SynchronizedMap<K,V>(map); }
60
143
107
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a0d49bd1e8c974a0d21460985bf7945cf4fb14b96d0e951e2c26571b0b607eba
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
5dd5ab9935075005a5146b7d
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedMap.java
SynchronizedMap.clear
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedMap.java#L82-L89
test
java
-----------------------------------------------------------------------
public void clear() { SyncUtils.synchronizeWrite(lock, new Callback<Object>() { @Override protected void doAction() { map.clear(); } }); }
----------------------------------------------------------------------- public void clear() { SyncUtils.synchronizeWrite(lock, new Callback<Object>() { @Override protected void doAction() { map.clear(); } }); }
41
71
217
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0cdd271753af83e85cfba518c07475093392e43c8dcf2d32c382ace1ef195082
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
711f9416a060472356ffce2b
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java
PacketParserUtils.parseStreamError
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java#L59-L68
test
java
Parses stream error packets. @param doc the XML parser. @return an stream error packet. @throws Exception if an exception occurs while parsing the packet.
public static StreamError parseStreamError(Element el) throws IOException, XmlPullParserException { String code = null; Element condEl = (Element) el.elements().iterator().next(); if (condEl.getNamespace().getURI().equals(StreamError.NAMESPACE)) { code = condEl.getName();...
Parses stream error packets. @param doc the XML parser. @return an stream error packet. @throws Exception if an exception occurs while parsing the packet. public static StreamError parseStreamError(Element el) throws IOException, XmlPullParserException { String code = null; Element condEl ...
121
155
430
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
93c776f0e89076e8a0b4e4f396029a969114f56e212a1fb43cdfc45129120a63
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
0e2d13f86416d41d5135467b
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java
PacketParserUtils.parseMechanisms
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java#L81-L90
test
java
Parse the available SASL mechanisms reported from the server. @param mechanismsEl the XML parser, positioned at the start of the mechanisms stanza. @return a collection of Stings with the mechanisms included in the mechanisms stanza. @throws Exception if an exception occurs while parsing the stanza.
@SuppressWarnings("unchecked") public static Collection<String> parseMechanisms(Element mechanismsEl) throws Exception { List<Element> mechanisms = mechanismsEl.elements("mechanism"); List<String> mechanismsStr = new LinkedList<String>(); for (Element mechanismEl : mechanisms) { ...
Parse the available SASL mechanisms reported from the server. @param mechanismsEl the XML parser, positioned at the start of the mechanisms stanza. @return a collection of Stings with the mechanisms included in the mechanisms stanza. @throws Exception if an exception occurs while parsing the stanza. @SuppressWarnings...
137
301
419
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
76c48339f741a1f848b648da1d28fc60da2afae0cff57db175d04c5321701fff
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
925be8d7568937dc100f7e9b
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java
PacketParserUtils.parseCompressionMethods
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java#L103-L112
test
java
Parse the available compression methods reported from the server. @param compressionEl the XML parser, positioned at the start of the compression stanza. @return a collection of Stings with the methods included in the compression stanza. @throws Exception if an exception occurs while parsing the stanza.
@SuppressWarnings("unchecked") public static Collection<String> parseCompressionMethods( Element compressionEl) throws IOException, XmlPullParserException { List<Element> methodsEls = compressionEl.elements("method"); List<String> methodsStr = new LinkedList<String>(); for (Eleme...
Parse the available compression methods reported from the server. @param compressionEl the XML parser, positioned at the start of the compression stanza. @return a collection of Stings with the methods included in the compression stanza. @throws Exception if an exception occurs while parsing the stanza. @SuppressWarn...
138
305
438
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f9343bbf530b0cdd667343561c75a2bdeadde1180714d340666233afe21ee900
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
88974d8494383bf0cc19609f
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java
PacketParserUtils.parsePacketExtension
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java#L128-L156
test
java
Parses a packet extension sub-packet. @param elementName the XML element name of the packet extension. @param namespace the XML namespace of the packet extension. @param parser the XML parser, positioned at the starting element of the extension. @return a PacketExtension. @throws Exception if a parsing error occurs.
public static PacketExtension parsePacketExtension(String elementName, String namespace, XmlPullParser parser) throws Exception { DefaultPacketExtension extension = new DefaultPacketExtension( elementName, namespace); boolean done = false; while (!done) { ...
Parses a packet extension sub-packet. @param elementName the XML element name of the packet extension. @param namespace the XML namespace of the packet extension. @param parser the XML parser, positioned at the starting element of the extension. @return a PacketExtension. @throws Exception if a parsing error occurs. ...
262
318
1,216
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9ffc5d0784593acb489d2a97cbc381792d76c5ce3896e845ef6c501d9e6a8580
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
d7adbd5dc45b544e2b61bb7b
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java
PacketParserUtils.decode
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java#L197-L220
test
java
Decodes a String into an object of the specified type. If the object type is not supported, null will be returned. @param type the type of the property. @param value the encode String value to decode. @return the String value decoded into the specified type. @throws Exception If decoding failed due to an error.
private static Object decode(Class<?> type, String value) throws Exception { if (type.getName().equals("java.lang.String")) { return value; } if (type.getName().equals("boolean")) { return Boolean.valueOf(value); } if (type.getName().equals("int")) { ...
Decodes a String into an object of the specified type. If the object type is not supported, null will be returned. @param type the type of the property. @param value the encode String value to decode. @return the String value decoded into the specified type. @throws Exception If decoding failed due to an error. priva...
222
313
792
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ca03d64dbbdb00f8962db9665acb7d60dc34c5e5d5eeb02501524cd546a15553
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
80c06792d80fcef8c3b9225a
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/helpers/ComparisonFilterFactory.java
ComparisonFilterFactory.createSameAsFilter
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/helpers/ComparisonFilterFactory.java#L35-L43
test
java
Creates a filter where valid when an object in a collection is the <strong>same as</strong> the base object.
public static <E> Filter<E> createSameAsFilter(final E base) { return new Filter<E>() { public boolean isValid(E obj) { return (base == obj); } }; }
Creates a filter where valid when an object in a collection is the <strong>same as</strong> the base object. public static <E> Filter<E> createSameAsFilter(final E base) { return new Filter<E>() { public boolean isValid(E obj) { return (base == obj); ...
74
108
233
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
eaafbc9386b29befa6027d17cf8d637cd56472a3de5d6127aa0c07f7364916b0
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
1cade49d13e0ac2fad912f04
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/helpers/ComparisonFilterFactory.java
ComparisonFilterFactory.createEqualToFilter
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/helpers/ComparisonFilterFactory.java#L49-L57
test
java
Creates a filter where valid when an object in a collection is the <strong>equal to</strong> the base object.
public static <E> Filter<E> createEqualToFilter(final Object base) { return new Filter<E>() { public boolean isValid(E obj) { return obj.equals(base); } }; }
Creates a filter where valid when an object in a collection is the <strong>equal to</strong> the base object. public static <E> Filter<E> createEqualToFilter(final Object base) { return new Filter<E>() { public boolean isValid(E obj) { return obj.equals(base); ...
72
109
242
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
abb7f34e2ec4b90a4e2f0b54d5b39fe3e0245990018ccde79d99c7e32b7a35e0
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
cebdf037c34ee3a9dd93f2d4
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/helpers/ComparisonFilterFactory.java
ComparisonFilterFactory.createLessThanFilter
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/helpers/ComparisonFilterFactory.java#L123-L132
test
java
Creates a filter where valid when an Comparable in a collection is considered <strong>less than</strong> the base object.
public static <E extends Comparable<E>> Filter<E> createLessThanFilter(final E base) { return createLessThanFilter(base, new Comparator<E>() { public int compare(E obj1, E obj2) { return obj1.compareTo(obj2); } }); }
Creates a filter where valid when an Comparable in a collection is considered <strong>less than</strong> the base object. public static <E extends Comparable<E>> Filter<E> createLessThanFilter(final E base) { return createLessThanFilter(base, new Comparator<E>() { public int compa...
91
121
311
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
1f1a553fe803dadddce9ee0e99f3e7f286386f6aaf96efc6897d3c112db479d6
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
bf3a0bb8721f4734597e2753
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/helpers/ComparisonFilterFactory.java
ComparisonFilterFactory.createLessThanFilter
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/helpers/ComparisonFilterFactory.java#L139-L147
test
java
Creates a filter where valid when an Object in a collection is considered <strong>less than</strong> the base object, based on the given Comparator.
public static <E> Filter<E> createLessThanFilter(final E base, final Comparator<E> comparator) { return new Filter<E>() { public boolean isValid(E obj) { return comparator.compare(obj, base) < 0; } }; }
Creates a filter where valid when an Object in a collection is considered <strong>less than</strong> the base object, based on the given Comparator. public static <E> Filter<E> createLessThanFilter(final E base, final Comparator<E> comparator) { return new Filter<E>() { public boolean isVal...
91
148
287
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
541ce78ae2e5a31345c5a6172c5f804f9dc5c0a00c6deb393ee1a94d41e2ce6f
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
cb7a400176e86206f11552bb
abmargb/jamppa
src/main/java/org/jivesoftware/whack/ExternalComponentManager.java
ExternalComponentManager.getSecretKey
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/whack/ExternalComponentManager.java#L157-L164
test
java
Returns the secret key for a sub-domain. If no key was found then the default secret key will be returned. @param subdomain the subdomain to return its secret key. @return the secret key for a sub-domain.
public String getSecretKey(String subdomain) { // Find the proper secret key to connect as the subdomain. String secretKey = secretKeys.get(subdomain); if (secretKey == null) { secretKey = defaultSecretKey; } return secretKey; }
Returns the secret key for a sub-domain. If no key was found then the default secret key will be returned. @param subdomain the subdomain to return its secret key. @return the secret key for a sub-domain. public String getSecretKey(String subdomain) { // Find the proper secret key to connect as the subdomain....
107
205
284
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b807d3e1b17e5424aba95a3588fad37d52c77b60679949e29a94bcfa5d08c9b7
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
b9cb4dd79fcc7726c5ade1dd
abmargb/jamppa
src/main/java/org/jivesoftware/whack/ExternalComponentManager.java
ExternalComponentManager.isMultipleAllowed
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/whack/ExternalComponentManager.java#L189-L192
test
java
Returns if we want components to be able to connect multiple times to the same JID. This is a custom Openfire extension and will not work with any other XMPP server. Other XMPP servers should ignore this extra setting. @param subdomain the sub-domain. @return True or false if we are allowing multiple connections.
public boolean isMultipleAllowed(String subdomain) { Boolean allowed = allowMultiple.get(subdomain); return allowed != null && allowed; }
Returns if we want components to be able to connect multiple times to the same JID. This is a custom Openfire extension and will not work with any other XMPP server. Other XMPP servers should ignore this extra setting. @param subdomain the sub-domain. @return True or false if we are allowing multiple connections. pub...
97
315
157
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a7307ea858716219a455097998325409906dfc9ed13f82ec942083ad312f8c01
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
1178f818b73e9e680d70f79d
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.get
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L242-L249
test
java
Gets the value mapped to the key specified. @param key the key @return the mapped value, null if no match
public V get(Object key) { purgeBeforeRead(); Entry<K, V> entry = getEntry(key); if (entry == null) { return null; } return entry.getValue(); }
Gets the value mapped to the key specified. @param key the key @return the mapped value, null if no match public V get(Object key) { purgeBeforeRead(); Entry<K, V> entry = getEntry(key); if (entry == null) { return null; } return entry.getValue(); }
70
106
199
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ed7265e855a5969b85f7968c70f2f33e2fdf2b088768e1445cbf54250fa54d9b
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
7ebe56378d0558787d7a1684
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.put
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L263-L273
test
java
Puts a key-value mapping into this map. Neither the key nor the value may be null. @param key the key to add, must not be null @param value the value to add, must not be null @return the value previously mapped to this key, null if none @throws NullPointerException if either the key or value is null
public V put(K key, V value) { if (key == null) { throw new NullPointerException("null keys not allowed"); } if (value == null) { throw new NullPointerException("null values not allowed"); } purgeBeforeWrite(); return super.put(key, value); }
Puts a key-value mapping into this map. Neither the key nor the value may be null. @param key the key to add, must not be null @param value the value to add, must not be null @return the value previously mapped to this key, null if none @throws NullPointerException if either the key or value is null public V put(K ke...
138
301
319
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9bc1f731001303d990e486fc7b6ed55edf86f8c3da622a50c7137deae9c0a93f
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
09d63077b85e4196d13a05b2
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.remove
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L282-L288
test
java
Removes the specified mapping from this map. @param key the mapping to remove @return the value mapped to the removed key, null if key not in map
public V remove(Object key) { if (key == null) { return null; } purgeBeforeWrite(); return super.remove(key); }
Removes the specified mapping from this map. @param key the mapping to remove @return the value mapped to the removed key, null if key not in map public V remove(Object key) { if (key == null) { return null; } purgeBeforeWrite(); return super.remove(key); }
67
146
159
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8349f432fa89de847bfed1bbb6a74abf25ccd12a32aa758315ed876704451aae
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
81101d33a625af6e2fe71050
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.entrySet
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L318-L323
test
java
Returns a set view of this map's entries. An iterator returned entry is valid until <code>next()</code> is called again. The <code>setValue()</code> method on the <code>toArray</code> entries has no effect. @return a set view of this map's entries
public Set<Map.Entry<K, V>> entrySet() { if (entrySet == null) { entrySet = new ReferenceEntrySet<K, V>(this); } return entrySet; }
Returns a set view of this map's entries. An iterator returned entry is valid until <code>next()</code> is called again. The <code>setValue()</code> method on the <code>toArray</code> entries has no effect. @return a set view of this map's entries public Set<Map.Entry<K, V>> entrySet() { if (entrySet == null)...
108
248
171
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
65475743f27bca2fe9caf086a608ede0b601742b35fc22b602546f0e3f5f6211
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
21e060223aeb60e2132e95b8
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.keySet
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L330-L335
test
java
Returns a set view of this map's keys. @return a set view of this map's keys
public Set<K> keySet() { if (keySet == null) { keySet = new ReferenceKeySet<K, V>(this); } return keySet; }
Returns a set view of this map's keys. @return a set view of this map's keys public Set<K> keySet() { if (keySet == null) { keySet = new ReferenceKeySet<K, V>(this); } return keySet; }
60
77
147
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5a0e99354002e9d593477ea5b9e5934375f528b22c7bff9d7ad3132b9fb28736
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
abd5c3c23d6d2099c9823284
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.values
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L342-L347
test
java
Returns a collection view of this map's values. @return a set view of this map's values
public Collection<V> values() { if (values == null) { values = new ReferenceValues<K, V>(this); } return values; }
Returns a collection view of this map's values. @return a set view of this map's values public Collection<V> values() { if (values == null) { values = new ReferenceValues<K, V>(this); } return values; }
55
88
154
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b54590dc19a07bafd1b86121a82dcff27370f112b06a6a1bfa911eb910d77eb0
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
38072e51c6b45eb2aee520ad
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.purge
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L377-L383
test
java
Purges stale mappings from this map. <p/> Note that this method is not synchronized! Special care must be taken if, for instance, you want stale mappings to be removed on a periodic basis by some background thread.
protected void purge() { Reference ref = queue.poll(); while (ref != null) { purge(ref); ref = queue.poll(); } }
Purges stale mappings from this map. <p/> Note that this method is not synchronized! Special care must be taken if, for instance, you want stale mappings to be removed on a periodic basis by some background thread. protected void purge() { Reference ref = queue.poll(); while (ref != null) { ...
80
214
164
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e71764aa5773cd68591a1cfa96ba9dc6dba0b1d2239896c5398b7f021978b3ae
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
7e7042bfff03cda5d480c9d0
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.purge
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L391-L413
test
java
Purges the specified reference. @param ref the reference to purge
protected void purge(Reference ref) { // The hashCode of the reference is the hashCode of the // mapping key, even if the reference refers to the // mapping value... int hash = ref.hashCode(); int index = hashIndex(hash, data.length); HashEntry<K, V> previous = null; ...
Purges the specified reference. @param ref the reference to purge protected void purge(Reference ref) { // The hashCode of the reference is the hashCode of the // mapping key, even if the reference refers to the // mapping value... int hash = ref.hashCode(); int index = hashInd...
172
66
776
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
91618f03b7c2cf17532a35b826ed7a8d05a8e507937f91be4137f96c72c33f7f
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
69af1d69702f04dff2465280
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.getEntry
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L423-L429
test
java
Gets the entry mapped to the key specified. @param key the key @return the entry, null if no match
protected HashEntry<K, V> getEntry(Object key) { if (key == null) { return null; } else { return super.getEntry(key); } }
Gets the entry mapped to the key specified. @param key the key @return the entry, null if no match protected HashEntry<K, V> getEntry(Object key) { if (key == null) { return null; } else { return super.getEntry(key); } }
64
99
173
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d376d888ace961c4be9e988905f3ccd2b1d4e2641d886ed9165b6e48c7e08954
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
d1403a0555068b19037d3aa6
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.hashEntry
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L441-L444
test
java
Gets the hash code for a MapEntry. Subclasses can override this, for example to use the identityHashCode. @param key the key to get a hash code for, may be null @param value the value to get a hash code for, may be null @return the hash code, as per the MapEntry specification
protected int hashEntry(Object key, Object value) { return (key == null ? 0 : key.hashCode()) ^ (value == null ? 0 : value.hashCode()); }
Gets the hash code for a MapEntry. Subclasses can override this, for example to use the identityHashCode. @param key the key to get a hash code for, may be null @param value the value to get a hash code for, may be null @return the hash code, as per the MapEntry specification protected int hashEntry(Object key, Objec...
107
277
165
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f93ff1876baa34efd1f4f6f1b657610def37d79e796715351b049fd55007b8e3
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
768f983b9d471fa166aba552
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.createEntry
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L483-L487
test
java
Creates a ReferenceEntry instead of a HashEntry. @param next the next entry in sequence @param hashCode the hash code to use @param key the key to store @param value the value to store @return the newly created entry
public HashEntry<K, V> createEntry(HashEntry<K, V> next, int hashCode, K key, V value) { return new ReferenceEntry<K, V>(this, (ReferenceEntry<K, V>) next, hashCode, key, value); }
Creates a ReferenceEntry instead of a HashEntry. @param next the next entry in sequence @param hashCode the hash code to use @param key the key to store @param value the value to store @return the newly created entry public HashEntry<K, V> createEntry(HashEntry<K, V> next, int hashCode, K key, V value) { ...
108
217
220
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2503d32c960032f8e93b256573864cc6bcc5a201719c74000f79c7ddc452294b
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
bdd5b34b578a16dd71bc2d22
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.doWriteObject
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L1039-L1052
test
java
Replaces the superclass method to store the state of this class. <p/> Serialization is not one of the JDK's nicest topics. Normal serialization will initialise the superclass before the subclass. Sometimes however, this isn't what you want, as in this case the <code>put()</code> method on read can be affected by subcla...
protected void doWriteObject(ObjectOutputStream out) throws IOException { out.writeInt(keyType); out.writeInt(valueType); out.writeBoolean(purgeValues); out.writeFloat(loadFactor); out.writeInt(data.length); for (MapIterator it = mapIterator(); it.hasNext();) { ...
Replaces the superclass method to store the state of this class. <p/> Serialization is not one of the JDK's nicest topics. Normal serialization will initialise the superclass before the subclass. Sometimes however, this isn't what you want, as in this case the <code>put()</code> method on read can be affected by subcla...
272
758
563
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
008682740af58aeed4a41203f3670ebe043c120564d85a3c0308a35e03f5b01f
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
a7c74ba2aacdff9b319dad2e
abmargb/jamppa
src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java
AbstractReferenceMap.doReadObject
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/util/collections/AbstractReferenceMap.java#L1073-L1093
test
java
Replaces the superclassm method to read the state of this class. <p/> Serialization is not one of the JDK's nicest topics. Normal serialization will initialise the superclass before the subclass. Sometimes however, this isn't what you want, as in this case the <code>put()</code> method on read can be affected by subcla...
protected void doReadObject(ObjectInputStream in) throws IOException, ClassNotFoundException { this.keyType = in.readInt(); this.valueType = in.readInt(); this.purgeValues = in.readBoolean(); this.loadFactor = in.readFloat(); int capacity = in.readInt(); init(...
Replaces the superclassm method to read the state of this class. <p/> Serialization is not one of the JDK's nicest topics. Normal serialization will initialise the superclass before the subclass. Sometimes however, this isn't what you want, as in this case the <code>put()</code> method on read can be affected by subcla...
316
728
747
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
deab223b00aaad647285c16b2a3ee0a92c068026cbcfbe5f3102abe797dc686e
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
0857a3e7c26c981acfa868a2
abmargb/jamppa
src/main/java/org/jivesoftware/smack/Chat.java
Chat.sendMessage
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/Chat.java#L96-L103
test
java
Sends the specified text as a message to the other chat participant. This is a convenience method for: <pre> Message message = chat.createMessage(); message.setBody(messageText); chat.sendMessage(message); </pre> @param text the text to send. @throws XMPPException if sending the message fails.
public void sendMessage(String text) throws XMPPException { Message message = new Message(); message.setTo(participant); message.setType(Type.chat); message.setThread(threadID); message.setBody(text); chatManager.sendMessage(this, message); }
Sends the specified text as a message to the other chat participant. This is a convenience method for: <pre> Message message = chat.createMessage(); message.setBody(messageText); chat.sendMessage(message); </pre> @param text the text to send. @throws XMPPException if sending the message fails. public void sendMessag...
117
296
294
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ae11a49cd8ccea7bd169251ba2cf172ca307e825caddd7054063194a14ed2551
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
7ec90a1da236d23e1cc14521
abmargb/jamppa
src/main/java/org/jivesoftware/smack/Chat.java
Chat.deliver
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jivesoftware/smack/Chat.java#L175-L184
test
java
Delivers a message directly to this chat, which will add the message to the collector and deliver it to all listeners registered with the Chat. This is used by the Connection class to deliver messages without a thread ID. @param message the message.
void deliver(Message message) { // Because the collector and listeners are expecting a thread ID with // a specific value, set the thread ID on the message even though it // probably never had one. message.setThread(threadID); for (MessageListener listener : listeners) { ...
Delivers a message directly to this chat, which will add the message to the collector and deliver it to all listeners registered with the Chat. This is used by the Connection class to deliver messages without a thread ID. @param message the message. void deliver(Message message) { // Because the collector and...
124
250
380
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d0e26d8003419273a5052b1b8a358419488312c109f0e3fe5c69e6e455d67285
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
c9c14c694ee18bccd629f5ab
vdmeer/execs
src/main/java/de/vandermeer/execs/Gen_RunScripts.java
Gen_RunScripts.generateScript
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/Gen_RunScripts.java#L247-L254
test
java
Generates a script. @param clazz the class for the script @param targetMap map for targets @return the final template for the script
protected final ST generateScript(String clazz, HashMap<String, Boolean> targetMap){ ST ret = this.stg.getInstanceOf("generateExec"); ret.add("target", targetMap); ret.add("applicationHome", this.applicationDir); ret.add("runName", this.configuration.get(PROP_RUN_SCRIPT_NAME)); ret.add("class", clazz); retu...
Generates a script. @param clazz the class for the script @param targetMap map for targets @return the final template for the script protected final ST generateScript(String clazz, HashMap<String, Boolean> targetMap){ ST ret = this.stg.getInstanceOf("generateExec"); ret.add("target", targetMap); ret.add("applica...
107
132
330
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3edd66a651b33057ce0acb3323935b86febe637d9280f2b38060a01d26c85cca
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
1a26aae734a873f1a6b59b7d
vdmeer/execs
src/main/java/de/vandermeer/execs/Gen_RunScripts.java
Gen_RunScripts.initConfiguration
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/Gen_RunScripts.java#L263-L299
test
java
Loads and tests the configuration from configuration properties file. The default configuration file name is "de/vandermeer/execs/configuration.properties". The file name can be overwritten using the "--property-file" CLI option. The method will also test for some configuration keys to exist and fail if they are not de...
protected final int initConfiguration(){ String propFile = this.optionPropFile.getValue(); this.configuration = this.loadProperties(propFile); if(this.configuration==null){ System.err.println(this.getAppName() + ": could not load configuration properties from file <" + propFile + ">, exiting"); return -1; ...
Loads and tests the configuration from configuration properties file. The default configuration file name is "de/vandermeer/execs/configuration.properties". The file name can be overwritten using the "--property-file" CLI option. The method will also test for some configuration keys to exist and fail if they are not de...
463
424
1,613
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d775721f4a752dc252204a853ee411703756b2b04e806334611228cefa065427
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
47f528197a21ddf58b9d8f2a
vdmeer/execs
src/main/java/de/vandermeer/execs/Gen_RunScripts.java
Gen_RunScripts.initTargetAndStg
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/Gen_RunScripts.java#L309-L344
test
java
Sets target for generation and initializes an STG object from an stg template file. The default template file name is "de/vandermeer/execs/executable-script.stg". This default can be overwritten using the property "stg.file" in the configuration properties file. The default and the property file name can be overwritten...
protected final int initTargetAndStg(){ this.target = this.optionTarget.getValue(); if(this.target==null){ System.err.println(this.getAppName() + ": no target set"); return -1; } String fileName = this.optionStgFile.getValue(); try{ this.stg = new STGroupFile(fileName); } catch(Exception e){ ...
Sets target for generation and initializes an STG object from an stg template file. The default template file name is "de/vandermeer/execs/executable-script.stg". This default can be overwritten using the property "stg.file" in the configuration properties file. The default and the property file name can be overwritten...
445
565
1,281
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
28e223addcc65f1bd8d3bdcebdd040823e9eed65bd2d8311738c6089c672cbf5
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
37872d4d75c7e3045708ed2f
vdmeer/execs
src/main/java/de/vandermeer/execs/Gen_RunScripts.java
Gen_RunScripts.initApplicationDir
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/Gen_RunScripts.java#L353-L361
test
java
Initializes the application directory for the generator. There is no default set and no configuration property can be used. The application directory has to be set using the CLI option "--application-directory". Otherwise this method will fail. @return 0 on success with configuration loaded, -1 on error with errors pri...
protected final int initApplicationDir(){ this.applicationDir = this.optionAppHome.getValue(); if(this.applicationDir==null){ System.err.println(this.getAppName() + ": no application directory set"); return -1; } return 0; }
Initializes the application directory for the generator. There is no default set and no configuration property can be used. The application directory has to be set using the CLI option "--application-directory". Otherwise this method will fail. @return 0 on success with configuration loaded, -1 on error with errors pri...
119
342
240
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b01a955cb63e6919cf4b1ce8240d4e3ca7f5f78e14a8ad4706e9714aedf0128f
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
7c6cc5efcb98ea34b94af5a1
vdmeer/execs
src/main/java/de/vandermeer/execs/Gen_RunScripts.java
Gen_RunScripts.initClassmap
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/Gen_RunScripts.java#L372-L394
test
java
Loads a classmap from a property file. A classmap maps class names to script names. A class name must be an implementation of the executable application interface {@link ExecS_Application}. No default map is used. This default can be overwritten using the property "execs.classmap" in the configuration properties file. ...
protected final int initClassmap(){ this.optionClassMapFile.setPropertyValue(this.configuration); String fileName = this.optionClassMapFile.getValue(); if(fileName==null){ System.err.println(this.getAppName() + ": no classmap file name given"); return -2; } this.classMap = this.loadProperties(fileName...
Loads a classmap from a property file. A classmap maps class names to script names. A class name must be an implementation of the executable application interface {@link ExecS_Application}. No default map is used. This default can be overwritten using the property "execs.classmap" in the configuration properties file. ...
268
515
699
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8d8700601f526ed1979c33f2a4f895b538a3b0cd12d1b7e6a25dcaef22dc8d45
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
ca8612a30784d751f6030b54
vdmeer/execs
src/main/java/de/vandermeer/execs/Gen_RunScripts.java
Gen_RunScripts.initOutputDir
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/Gen_RunScripts.java#L403-L439
test
java
Tests and if necessary creates an output directory. The root path is the current directory as given by the system property "user.dir". The created output directory has the name of the specified target for the generator. The method fails if the output directory cannot be created or if it exists and is write protected. @...
protected final int initOutputDir(){ String parent = System.getProperty("user.dir"); String target = parent + File.separator + this.target; File targetDir = new File(target); File parentDir = targetDir.getParentFile(); if(targetDir.exists()){ //target dir exists, let's see if it is what we want it to be ...
Tests and if necessary creates an output directory. The root path is the current directory as given by the system property "user.dir". The created output directory has the name of the specified target for the generator. The method fails if the output directory cannot be created or if it exists and is write protected. @...
412
416
1,302
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c13537956d2cbaf13dbe7477a939c5849ca2c54dc88f4f9a8ac70c3c55eddf15
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
4ed9261965652acc4d6846dd
vdmeer/execs
src/main/java/de/vandermeer/execs/Gen_RunScripts.java
Gen_RunScripts.loadProperties
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/Gen_RunScripts.java#L446-L476
test
java
Loads properties from a file. @param filename property file loaded from class path or file system @return loaded properties, null if nothing could be loaded plus error messages to standard error if exceptions are caught
protected final Properties loadProperties(String filename){ Properties ret = new Properties(); URL url = null; File f = new File(filename.toString()); if(f.exists()){ try{ url = f.toURI().toURL(); } catch(Exception ignore){} } else{ ClassLoader loader = Thread.currentThread().getContextClas...
Loads properties from a file. @param filename property file loaded from class path or file system @return loaded properties, null if nothing could be loaded plus error messages to standard error if exceptions are caught protected final Properties loadProperties(String filename){ Properties ret = new Properties(); ...
251
219
855
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b34cc1bf652951cf37895695a3d3554a0a15a92e3e29013ec6d5e367f58c5ba6
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
43e50c2addccaaf7ae98ad0b
vdmeer/execs
src/main/java/de/vandermeer/execs/Gen_RunScripts.java
Gen_RunScripts.writeFile
https://github.com/vdmeer/execs/blob/ac73170bfd449de1f460248d56ece57ff3b0c761/src/main/java/de/vandermeer/execs/Gen_RunScripts.java#L484-L496
test
java
Writes an ST object to a file. @param fn file name @param st ST template @return 0 on success with configuration loaded, -1 on error with errors printed on standard error
protected final int writeFile(String fn, ST st){ try { FileWriter fs = new FileWriter(fn); BufferedWriter bw = new BufferedWriter(fs); bw.write(st.render()); bw.close(); } catch (IOException e) { e.printStackTrace(); return -1; } return 0; }
Writes an ST object to a file. @param fn file name @param st ST template @return 0 on success with configuration loaded, -1 on error with errors printed on standard error protected final int writeFile(String fn, ST st){ try { FileWriter fs = new FileWriter(fn); BufferedWriter bw = new BufferedWriter(fs); bw...
111
170
270
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
139a2c8e74a18a199c99e29be874ecca9cb7d28bc18e19e3abcb26ec94e66990
Apache-2.0
permissive
https://github.com/vdmeer/execs/blob/master/LICENSE
1ff251dbec7d07c652b6206f
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedCollection.java
SynchronizedCollection.decorate
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedCollection.java#L53-L55
test
java
Factory method to create a synchronized collection. @param coll the collection to decorate, must not be null @throws IllegalArgumentException if collection is null
public static <E> Collection<E> decorate(Collection<E> coll) { return new SynchronizedCollection<E>(coll); }
Factory method to create a synchronized collection. @param coll the collection to decorate, must not be null @throws IllegalArgumentException if collection is null public static <E> Collection<E> decorate(Collection<E> coll) { return new SynchronizedCollection<E>(coll); }
56
165
122
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
678cb7056376e14cc7f9c5f9dd301eb2c3595ec8f0b6c00d6088776677a74688
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
b715092c6f93b8b0a9ca3aa8
workplacesystems/utilsj
src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedCollection.java
SynchronizedCollection.add
https://github.com/workplacesystems/utilsj/blob/1b638be51997eafac4d368c14f62a16624a08d3e/src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedCollection.java#L92-L100
test
java
-----------------------------------------------------------------------
public boolean add(final E object) { Boolean ret = SyncUtils.synchronizeWrite(lock, new Callback<Boolean>() { @Override protected void doAction() { _return(collection.add(object) ? Boolean.TRUE : Boolean.FALSE); } }); return ret.booleanV...
----------------------------------------------------------------------- public boolean add(final E object) { Boolean ret = SyncUtils.synchronizeWrite(lock, new Callback<Boolean>() { @Override protected void doAction() { _return(collection.add(object) ? Boolean.TRUE :...
63
71
334
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f0c79d31eed1ca504c59261e48d63173aaee1c8ee2aee2556edd1227ad497292
Apache-2.0
permissive
https://github.com/workplacesystems/utilsj/blob/master/LICENSE
17bae1b8b24b9aedd1120f83
firepick1/firerest-client
src/main/java/org/firepick/ServiceResolver.java
ServiceResolver.discover
https://github.com/firepick1/firerest-client/blob/f43c85ca093b1f9f62f0375f905adae9351de1e6/src/main/java/org/firepick/ServiceResolver.java#L52-L65
test
java
Discover FireREST services located in a range of IPv4 InetAddresses. E.g., The range of 256 addresses that starts with 10.0.1.128 ends with 10.0.2.127. @param start first InetAddress to scan (null for localhost) @param count number of subsequent InetAddresses in the range @param msTimeout maximum time to wait for host...
public static Collection<ServiceResolver> discover(InetAddress start, int count, int msTimeout) { Collection<ServiceResolver> result = new ArrayList<ServiceResolver>(); Collection<InetAddress> hosts = IPv4Scanner.scanRange(start, count, msTimeout); for (InetAddress host: hosts) { ServiceResolver resol...
Discover FireREST services located in a range of IPv4 InetAddresses. E.g., The range of 256 addresses that starts with 10.0.1.128 ends with 10.0.2.127. @param start first InetAddress to scan (null for localhost) @param count number of subsequent InetAddresses in the range @param msTimeout maximum time to wait for host...
212
390
587
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4f0e2f051ff458deb47383c6d997f9999dcc1d5fe12ce167e093f7ef386e6856
MIT
permissive
https://github.com/firepick1/firerest-client/blob/master/LICENSE
0ae760ca720dedc4fa369c39
firepick1/firerest-client
src/main/java/org/firepick/ServiceResolver.java
ServiceResolver.resolve
https://github.com/firepick1/firerest-client/blob/f43c85ca093b1f9f62f0375f905adae9351de1e6/src/main/java/org/firepick/ServiceResolver.java#L76-L103
test
java
(Re-)discover the service configuration @return true if config.json was successfully obtained
public void resolve() { attempts++; config = null; Exception caughtException = null; String host = address == null ? "null" : address.getCanonicalHostName(); if (url == null) { URL attemptUrl = null; int [] ports = {8080, 80}; for (int i=0; i < ports.length; i++) { try { attemp...
(Re-)discover the service configuration @return true if config.json was successfully obtained public void resolve() { attempts++; config = null; Exception caughtException = null; String host = address == null ? "null" : address.getCanonicalHostName(); if (url == null) { URL attemptUrl = null...
220
94
777
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b168f1ec2a7b90b0165f69d9eb01259971cfd253d27b1f7e8ccda274e6df7482
MIT
permissive
https://github.com/firepick1/firerest-client/blob/master/LICENSE
e6f23fe304d5aac883dd36c9
firepick1/firerest-client
src/main/java/org/firepick/ServiceResolver.java
ServiceResolver.getConfig
https://github.com/firepick1/firerest-client/blob/f43c85ca093b1f9f62f0375f905adae9351de1e6/src/main/java/org/firepick/ServiceResolver.java#L121-L136
test
java
Return the cached service configuration, resolving the service if required. @return service configuration or null if service could not be resolved.
public JSONResult getConfig() { if (attempts == 0) { try { resolve(); } catch(Exception e) { // discard exception } } if (config == null) { logger.info("{} => no response", url); return null; } logger.info("{} => {}", url, config.get("FireREST").getString()); ...
Return the cached service configuration, resolving the service if required. @return service configuration or null if service could not be resolved. public JSONResult getConfig() { if (attempts == 0) { try { resolve(); } catch(Exception e) { // discard exception } } if (config ==...
107
148
342
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5f2d3af4d09ba94f404f4774dfcfee1d576cc31694b819a6fac1460c4031ae06
MIT
permissive
https://github.com/firepick1/firerest-client/blob/master/LICENSE
946d00d522a3e2aa1c194f41
abmargb/jamppa
src/main/java/org/jamppa/client/plugin/xep0077/Registration.java
Registration.getAttributes
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jamppa/client/plugin/xep0077/Registration.java#L94-L107
test
java
Returns the map of String key/value pairs of account attributes. @return the account attributes.
@SuppressWarnings("unchecked") public Map<String, String> getAttributes() { Map<String, String> attributes = null; List<Element> elements = queryEl.elements(); for (Element element : elements) { if (!element.getName().equals("instructions")) { if (attributes == nu...
Returns the map of String key/value pairs of account attributes. @return the account attributes. @SuppressWarnings("unchecked") public Map<String, String> getAttributes() { Map<String, String> attributes = null; List<Element> elements = queryEl.elements(); for (Element element : elements) ...
110
97
534
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f53084a303679b3532cf3083929c8501d1ed8b4a755e831ffcb8a66ebf2df37b
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
e44e0984d84adcff2873a4c9
abmargb/jamppa
src/main/java/org/jamppa/client/plugin/xep0077/Registration.java
Registration.setAttributes
https://github.com/abmargb/jamppa/blob/76f253239923df40904c462e3b88e7278b36b282/src/main/java/org/jamppa/client/plugin/xep0077/Registration.java#L116-L121
test
java
Sets the account attributes. The map must only contain String key/value pairs. @param attributes the account attributes.
public void setAttributes(Map<String, String> attributes) { for (Entry<String, String> attribute : attributes.entrySet()) { PacketParserUtils.updateText(queryEl, attribute.getKey(), attribute.getValue()); } }
Sets the account attributes. The map must only contain String key/value pairs. @param attributes the account attributes. public void setAttributes(Map<String, String> attributes) { for (Entry<String, String> attribute : attributes.entrySet()) { PacketParserUtils.updateText(queryEl, attribute.getKe...
69
121
260
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0006ac468d42ac297824d4e77fad21ead10afcc08c96dd5ac96cb56b698cb59f
Apache-2.0
permissive
https://github.com/abmargb/jamppa/blob/master/LICENSE
de9c7ac69edae1053db76f6c
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/DseSessionManager.java
DseSessionManager.createCluster
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/DseSessionManager.java#L96-L100
test
java
{@inheritDoc}
@Override protected DseCluster createCluster(ClusterIdentifier ci) { return DseUtils.newDseCluster(ci.hostsAndPorts, ci.username, ci.password, ci.authorizationId, getConfiguration()); }
{@inheritDoc} @Override protected DseCluster createCluster(ClusterIdentifier ci) { return DseUtils.newDseCluster(ci.hostsAndPorts, ci.username, ci.password, ci.authorizationId, getConfiguration()); }
49
13
217
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f6d3aa9137bbe9b1fe8812fc70ff41bb719ed715e7c60cbef51705a1675d6ec8
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
d3afd7d36fedbf41d8c6ce07
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/DseSessionManager.java
DseSessionManager.createSession
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/DseSessionManager.java#L105-L108
test
java
{@inheritDoc}
@Override protected DseSession createSession(Cluster cluster, String keyspace) { return DseUtils.newDseSession((DseCluster) cluster, keyspace); }
{@inheritDoc} @Override protected DseSession createSession(Cluster cluster, String keyspace) { return DseUtils.newDseSession((DseCluster) cluster, keyspace); }
42
13
161
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
fa361db7f8b1af323876a2819808ab2b912d5fe59a4c1b5d2508c44e151f4e7a
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
faecc6021fc2764789374eb9
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/DseSessionManager.java
DseSessionManager.getCluster
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/DseSessionManager.java#L133-L136
test
java
{@inheritDoc}
@Override public DseCluster getCluster(String hostsAndPorts, String username, String password) { return getCluster(hostsAndPorts, username, password, null); }
{@inheritDoc} @Override public DseCluster getCluster(String hostsAndPorts, String username, String password) { return getCluster(hostsAndPorts, username, password, null); }
41
13
174
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
90e3e28de0828b31b860f4e562c48c94d42d781f889b92fadbd1483d5a8f4d51
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
61e22358ce4ea13befc560f4
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/DseSessionManager.java
DseSessionManager.getCluster
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/DseSessionManager.java#L151-L155
test
java
Obtain a DSE cluster instance. @param hostsAndPorts format: "host1:port1,host2,host3:port3". If no port is specified, the {@link CqlUtils#DEFAULT_CASSANDRA_PORT} is used. @param username @param password @param authorizationId DSE allows a user to connect as another user or role, provide the name of the user/role you w...
public DseCluster getCluster(String hostsAndPorts, String username, String password, String authorizationId) { return getCluster( ClusterIdentifier.getInstance(hostsAndPorts, username, password, authorizationId)); }
Obtain a DSE cluster instance. @param hostsAndPorts format: "host1:port1,host2,host3:port3". If no port is specified, the {@link CqlUtils#DEFAULT_CASSANDRA_PORT} is used. @param username @param password @param authorizationId DSE allows a user to connect as another user or role, provide the name of the user/role you w...
144
364
255
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
22eb707b0510db0827381d9e1d2998311632bdcc53586d0682424ae81649232c
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
0050f4ab44cf36795265f8c6
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/DseSessionManager.java
DseSessionManager.getSession
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/DseSessionManager.java#L171-L175
test
java
{@inheritDoc}
@Override synchronized protected DseSession getSession(SessionIdentifier si, boolean forceNew) { return (DseSession) super.getSession(si, forceNew); }
{@inheritDoc} @Override synchronized protected DseSession getSession(SessionIdentifier si, boolean forceNew) { return (DseSession) super.getSession(si, forceNew); }
37
13
167
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
db43b4e6a7766b60b20b32d4dbf0569ed95a5bfea4f3175e8ba9c845eda4e0d3
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
66b649563e8672746317a4e8
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/DseSessionManager.java
DseSessionManager.getSession
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/DseSessionManager.java#L180-L184
test
java
{@inheritDoc}
@Override public DseSession getSession(String hostsAndPorts, String username, String password, String keyspace) { return getSession(hostsAndPorts, username, password, null, keyspace, false); }
{@inheritDoc} @Override public DseSession getSession(String hostsAndPorts, String username, String password, String keyspace) { return getSession(hostsAndPorts, username, password, null, keyspace, false); }
49
13
220
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9af7e105fe2e0a72f60c05223f067623e7f739c37896fb68ea3e6a8a4757cc16
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt
9c4785633d8e0b1dbe3d43d6
DDTH/ddth-cql-utils
src/main/java/com/github/ddth/cql/DseSessionManager.java
DseSessionManager.getSession
https://github.com/DDTH/ddth-cql-utils/blob/debd5d86f64fe06e43d6f0f58cb2f7f0f6a84489/src/main/java/com/github/ddth/cql/DseSessionManager.java#L213-L216
test
java
Obtain a DSE session instance. <p> The existing session instance will be returned if such existed. </p> @param hostsAndPorts @param username @param password @param authorizationId DSE allows a user to connect as another user or role, provide the name of the user/role you want to connect as via this parameter @param k...
public DseSession getSession(String hostsAndPorts, String username, String password, String authorizationId, String keyspace) { return getSession(hostsAndPorts, username, password, authorizationId, keyspace, false); }
Obtain a DSE session instance. <p> The existing session instance will be returned if such existed. </p> @param hostsAndPorts @param username @param password @param authorizationId DSE allows a user to connect as another user or role, provide the name of the user/role you want to connect as via this parameter @param k...
136
400
241
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
92bbc01ee51892eda14c41b18762864106206b749b1a9578512a8829d1bfb962
MIT
permissive
https://github.com/DDTH/ddth-cql-utils/blob/master/LICENSE.txt