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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b01221fd9b662e0b92836122 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogNetWriter.java | LogNetWriter.getHostAddress | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogNetWriter.java#L131-L135 | train | java | Returns the remote host IP address of this log writer, or "" if the connection was
closed.
<p>
@return IP address as String
@see java.net.InetAddress#getHostAddress() | public final String getHostAddress()
{
final Socket socket = s;
return socket == null ? "" : socket.getInetAddress().getHostAddress();
} | Returns the remote host IP address of this log writer, or "" if the connection was
closed.
<p>
@return IP address as String
@see java.net.InetAddress#getHostAddress()
public final String getHostAddress()
{
final Socket socket = s;
return socket == null ? "" : socket.getInetAddress().getHostAddress();
} | 72 | 167 | 146 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 096bda9648375945f4244d9b6498676d02384aca078b8aa80ca41e36ee72536e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f839fd8d7980db8c463b57ad | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogNetWriter.java | LogNetWriter.getHostName | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogNetWriter.java#L147-L151 | train | java | Returns the remote host name of this log writer, or "" if the connection was
closed.
<p>
Note that this might involve a reverse name lookup. It is possible that only the IP
address string is returned.
@return host name (or IP address) as String
@see java.net.InetAddress#getHostName() | public final String getHostName()
{
final Socket socket = s;
return socket == null ? "" : socket.getInetAddress().getHostName();
} | Returns the remote host name of this log writer, or "" if the connection was
closed.
<p>
Note that this might involve a reverse name lookup. It is possible that only the IP
address string is returned.
@return host name (or IP address) as String
@see java.net.InetAddress#getHostName()
public final String getHostName()... | 96 | 285 | 140 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e183cf0aa55852d8f7647d7289f898a331fb6858b0283638e08ce692c70053b4 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
52ee0df9755271b0b4b4270c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogNetWriter.java | LogNetWriter.close | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogNetWriter.java#L168-L178 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.log.LogStreamWriter#close() | public synchronized void close()
{
if (s != null) {
super.close();
try {
s.close();
}
catch (final IOException e) {}
s = null;
}
} | /* (non-Javadoc)
@see tuwien.auto.calimero.log.LogStreamWriter#close()
public synchronized void close()
{
if (s != null) {
super.close();
try {
s.close();
}
catch (final IOException e) {}
s = null;
}
} | 67 | 70 | 165 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0b6e6ff231b1df68180f0369dbe2fb483d867401531b047ab4c142c687a25755 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
e51a68ff88bf8a4739344765 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyListUtils.java | MyListUtils.getSet | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyListUtils.java#L37-L42 | train | java | Convert Collection to Set
@param collection Collection
@return Set | public static <T> Set<T> getSet(Collection<T> collection) {
Set<T> set = new LinkedHashSet<T>();
set.addAll(collection);
return set;
} | Convert Collection to Set
@param collection Collection
@return Set
public static <T> Set<T> getSet(Collection<T> collection) {
Set<T> set = new LinkedHashSet<T>();
set.addAll(collection);
return set;
} | 50 | 66 | 149 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7ce155a8bb93e1bb675f86648a36b5a4a7e584e2fad780c92be9eb737dc412cd | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
d0ae17ff863491843509bbf8 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyListUtils.java | MyListUtils.join | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyListUtils.java#L50-L60 | train | java | Joins a collection in a string using a delimiter
@param col Collection
@param delim Delimiter
@return String | public static <T> String join(Collection<T> col, String delim) {
StringBuilder sb = new StringBuilder();
Iterator<T> iter = col.iterator();
if (iter.hasNext())
sb.append(iter.next().toString());
while (iter.hasNext()) {
sb.append(delim);
sb.append(iter.next().toString());
}
ret... | Joins a collection in a string using a delimiter
@param col Collection
@param delim Delimiter
@return String
public static <T> String join(Collection<T> col, String delim) {
StringBuilder sb = new StringBuilder();
Iterator<T> iter = col.iterator();
if (iter.hasNext())
sb.append(iter.next().toString()... | 99 | 108 | 342 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b8421d60d46c07c304daad738b89eac3359f996503b7fd217a7d01c2ad3a8538 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
f1f4e3307976e1bbceb86ce5 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveVersionCommandClass.java | ZWaveVersionCommandClass.handleApplicationCommandRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveVersionCommandClass.java#L95-L168 | train | java | {@inheritDoc} | @Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle Message Version Request");
logger.debug(String.format("Received Version Request for Node ID = %d", this.getNode().getNodeId()));
int command = serialMessage.getMessagePayloa... | {@inheritDoc}
@Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle Message Version Request");
logger.debug(String.format("Received Version Request for Node ID = %d", this.getNode().getNodeId()));
int command = serialMessage.g... | 904 | 13 | 4,071 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 823d704c8a4d0714173af8a60f02eb219c916dd292bacef48bd84ced92446ea5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
12a8c6f0fc777efa95b54f75 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveVersionCommandClass.java | ZWaveVersionCommandClass.checkVersion | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveVersionCommandClass.java#L209-L222 | train | java | Check the version of a command class by sending a VERSION_COMMAND_CLASS_GET message to the node.
@param commandClass the command class to check the version for. | public void checkVersion(ZWaveCommandClass commandClass) {
ZWaveVersionCommandClass versionCommandClass = (ZWaveVersionCommandClass)this.getNode().getCommandClass(CommandClass.VERSION);
if (versionCommandClass == null) {
logger.error(String.format("Version command class not supported on node %d," +
... | Check the version of a command class by sending a VERSION_COMMAND_CLASS_GET message to the node.
@param commandClass the command class to check the version for.
public void checkVersion(ZWaveCommandClass commandClass) {
ZWaveVersionCommandClass versionCommandClass = (ZWaveVersionCommandClass)this.getNode().getComma... | 177 | 160 | 652 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 260eed64de973380b735df271783df37585058cb23fac6311252cb78ca7c2d6c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
e1d0f6be3ff41b3dbeeb3a8c | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.getContent | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L49-L52 | train | java | Get content for URL only
@param stringUrl URL to get content
@return the content
@throws IOException I/O error happened | public static String getContent(String stringUrl) throws IOException {
InputStream stream = getContentStream(stringUrl);
return MyStreamUtils.readContent(stream);
} | Get content for URL only
@param stringUrl URL to get content
@return the content
@throws IOException I/O error happened
public static String getContent(String stringUrl) throws IOException {
InputStream stream = getContentStream(stringUrl);
return MyStreamUtils.readContent(stream);
} | 57 | 120 | 174 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d2c6e4882ec5211730222d214daae87898c1ecbea0a0b4df9f65cf9259f5a6db | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
9ac0eb3e0931d609983c29a0 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.getContentStream | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L61-L72 | train | java | Get stream for URL only
@param stringUrl URL to get content
@return the input stream
@throws IOException I/O error happened | public static InputStream getContentStream(String stringUrl) throws MalformedURLException, IOException {
URL url = new URL(stringUrl);
URLConnection urlConnection = url.openConnection();
InputStream is = urlConnection.getInputStream();
if ("gzip".equals(urlConnection.ge... | Get stream for URL only
@param stringUrl URL to get content
@return the input stream
@throws IOException I/O error happened
public static InputStream getContentStream(String stringUrl) throws MalformedURLException, IOException {
URL url = new URL(stringUrl);
URLConnection urlConnection = url.... | 99 | 124 | 419 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 98a4bfe5ca55130725f212f86ecbd90240f482ed524c0d07602deab1033e3047 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
beb43a0eaaef0f06c5b3960b | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.getContent | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L82-L85 | train | java | Get content for url/parameters
@param stringUrl URL to get content
@param parameters HTTP parameters to pass
@return content the response content
@throws IOException I/O error happened | public static String getContent(String stringUrl, Map<String, String> parameters)
throws IOException {
return getContent(stringUrl, parameters, null);
} | Get content for url/parameters
@param stringUrl URL to get content
@param parameters HTTP parameters to pass
@return content the response content
@throws IOException I/O error happened
public static String getContent(String stringUrl, Map<String, String> parameters)
throws IOException {
return getContent(st... | 67 | 185 | 164 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 81955e540d5a119ae19efb186311aa1ed37507d00e3d8e288797cf317f4d0ef2 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
69871b16dac16bcfcf390bfe | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.getContent | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L96-L122 | train | java | Get content for url/parameters/proxy
@param stringUrl the URL to get
@param parameters HTTP parameters to pass
@param proxy Proxy to use
@return content the response content
@throws IOException I/O error happened | public static String getContent(String stringUrl, Map<String, String> parameters, Proxy proxy)
throws IOException {
URL url = new URL(stringUrl);
URLConnection conn;
if (proxy != null) {
conn = url.openConnection(proxy);
} else {
conn = url.openConnection();
}
conn.setConnect... | Get content for url/parameters/proxy
@param stringUrl the URL to get
@param parameters HTTP parameters to pass
@param proxy Proxy to use
@return content the response content
@throws IOException I/O error happened
public static String getContent(String stringUrl, Map<String, String> parameters, Proxy proxy)
thro... | 221 | 213 | 805 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fc595ddc7acc387a14b0c89a232495089e6098af7d452c4f939fc62712133435 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
c88e982963f29077f16d62b4 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.getContentPost | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L136-L139 | train | java | Post content / get response
@param stringUrl URL to use
@param parameters HTTP headers
@param input Input data (payload)
@param charset Charset in the input
@return response HTTP response
@throws IOException I/O error happened | public static String getContentPost(String stringUrl, Map<String, String> parameters,
String input, String charset) throws IOException {
return getContentPost(stringUrl, parameters, input, charset, false);
} | Post content / get response
@param stringUrl URL to use
@param parameters HTTP headers
@param input Input data (payload)
@param charset Charset in the input
@return response HTTP response
@throws IOException I/O error happened
public static String getContentPost(String stringUrl, Map<String, String> parameters,
... | 88 | 227 | 225 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3a10a20e6d4af7aa713c50f277af4c7d70dcd9d4e6596f85a71f5fbc16311234 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
235ce924043d7090106cabb8 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.getResponseHeaders | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L185-L187 | train | java | Get the response headers for URL
@param stringUrl URL to use
@return headers HTTP Headers
@throws IOException I/O error happened | public static Map<String, List<String>> getResponseHeaders(String stringUrl) throws IOException {
return getResponseHeaders(stringUrl, true);
} | Get the response headers for URL
@param stringUrl URL to use
@return headers HTTP Headers
@throws IOException I/O error happened
public static Map<String, List<String>> getResponseHeaders(String stringUrl) throws IOException {
return getResponseHeaders(stringUrl, true);
} | 57 | 129 | 149 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2ccfc3f6289ba4e7d9b903a0410ec5766c6173fd97d87f0cf3c00697cbee176e | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
00413dd09cca378f57a198c5 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.getResponseHeaders | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L197-L214 | train | java | Get the response headers for URL, following redirects
@param stringUrl URL to use
@param followRedirects whether to follow redirects
@return headers HTTP Headers
@throws IOException I/O error happened | public static Map<String, List<String>> getResponseHeaders(String stringUrl,
boolean followRedirects) throws IOException {
URL url = new URL(stringUrl);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setInstanceFollowRedirects(followRedirects);
InputStream is = conn.g... | Get the response headers for URL, following redirects
@param stringUrl URL to use
@param followRedirects whether to follow redirects
@return headers HTTP Headers
@throws IOException I/O error happened
public static Map<String, List<String>> getResponseHeaders(String stringUrl,
boolean followRedirects) throws IO... | 201 | 201 | 793 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9e05284139357130f9adb215bf8604228889f1f4f96f2fedca26b9c3032b126f | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
76e3fa6daad428a60dccef91 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.downloadUrl | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L224-L266 | train | java | Download a specified URL to a file
@param stringUrl URL to use
@param parameters HTTP Headers
@param fileToSave File to save content
@throws IOException I/O error happened | public static void downloadUrl(String stringUrl, Map<String, String> parameters, File fileToSave)
throws IOException {
URL url = new URL(stringUrl);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setFollowRedirects(true);
if (parameters != null) {
for (Entry<Str... | Download a specified URL to a file
@param stringUrl URL to use
@param parameters HTTP Headers
@param fileToSave File to save content
@throws IOException I/O error happened
public static void downloadUrl(String stringUrl, Map<String, String> parameters, File fileToSave)
throws IOException {
URL url = new URL... | 324 | 172 | 1,403 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c2825091dec5d72bb02f89d6ee9f9dc69c8fbff74110e6a945e9417d9709ca00 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
4118311e4f88832e83378a33 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.getContentBytes | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L275-L279 | train | java | Return the content from an URL in byte array
@param stringUrl URL to get
@return byte array
@throws IOException I/O error happened | public static byte[] getContentBytes(String stringUrl) throws IOException {
URL url = new URL(stringUrl);
byte[] data = MyStreamUtils.readContentBytes(url.openStream());
return data;
} | Return the content from an URL in byte array
@param stringUrl URL to get
@return byte array
@throws IOException I/O error happened
public static byte[] getContentBytes(String stringUrl) throws IOException {
URL url = new URL(stringUrl);
byte[] data = MyStreamUtils.readContentBytes(url.openStream());
retur... | 72 | 131 | 198 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b5b9caa435f5dc130670a0d4658b61bb471f88c2c74474dbad74ddf38df98278 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
877daff04192b446373117e3 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java | MyHTTPUtils.httpRequest | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyHTTPUtils.java#L293-L319 | train | java | Execute a HTTP request
@param stringUrl URL
@param method Method to use
@param parameters Params
@param input Input / Payload
@param charset Input Charset
@return response
@throws IOException | public static String httpRequest(String stringUrl, String method, Map<String, String> parameters,
String input, String charset) throws IOException {
URL url = new URL(stringUrl);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setRequestMethod(method... | Execute a HTTP request
@param stringUrl URL
@param method Method to use
@param parameters Params
@param input Input / Payload
@param charset Input Charset
@return response
@throws IOException
public static String httpRequest(String stringUrl, String method, Map<String, String> parameters,
String input, String c... | 201 | 192 | 824 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a30ed0e7599a5aa4cf63c474e7f4a6b6e7e5e424deeabde92f39556f9bb0ce35 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
2b597e77a34fa4ab67836227 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/LFUCache.java | LFUCache.put | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/LFUCache.java#L101-L113 | train | java | {@inheritDoc}<br>
If expiring of cache objects is set, and the timestamp of a
{@link CacheObject} is renewed after it has been put into the cache, a
new {@link #put(CacheObject)} is required for that object to apply the
timestamp and keep the cache in a consistent state. | public synchronized void put(CacheObject obj)
{
// ensure sweeping is on if we have expiring objects
startSweeper();
final Object old = map.remove(obj.getKey());
if (old != null)
tree.remove(old);
else
ensureSizeLimits();
obj.resetTimestamp();
map.put(obj.getKey(), obj);
tree.put(obj, ... | {@inheritDoc}<br>
If expiring of cache objects is set, and the timestamp of a
{@link CacheObject} is renewed after it has been put into the cache, a
new {@link #put(CacheObject)} is required for that object to apply the
timestamp and keep the cache in a consistent state.
public synchronized void put(CacheObject obj)
... | 150 | 271 | 329 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7a0e054595086aaae3e6e64555c5bc783b0d90784d129b3dd020c5ef7a8173c9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
361faffd0d1fb61d66081cb1 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/LFUCache.java | LFUCache.get | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/LFUCache.java#L118-L130 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.buffer.cache.Cache#get(java.lang.Object) | public synchronized CacheObject get(Object key)
{
final CacheObject o = (CacheObject) map.get(key);
if (o != null) {
tree.remove(o);
updateAccess(o);
tree.put(o, o);
++hits;
}
else
++misses;
return o;
} | /* (non-Javadoc)
@see tuwien.auto.calimero.buffer.cache.Cache#get(java.lang.Object)
public synchronized CacheObject get(Object key)
{
final CacheObject o = (CacheObject) map.get(key);
if (o != null) {
tree.remove(o);
updateAccess(o);
tree.put(o, o);
++hits;
}
else
++misses;
return ... | 94 | 83 | 241 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 53f82ee21b3cf6a4806a348be91adbb828c922251c1590678cd02bb2a2de086a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3e637b4c530a051cd8f77517 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/LFUCache.java | LFUCache.remove | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/LFUCache.java#L135-L140 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.buffer.cache.Cache#remove(java.lang.Object) | public synchronized void remove(Object key)
{
final Object o = map.remove(key);
if (o != null)
tree.remove(o);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.buffer.cache.Cache#remove(java.lang.Object)
public synchronized void remove(Object key)
{
final Object o = map.remove(key);
if (o != null)
tree.remove(o);
} | 55 | 86 | 126 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9f7855050a63b8192dd7616024f3925ebcf32c493d8353fad4af17ecc816d866 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a19afc149e47102a094e24f6 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java | LinkerDeclarationsManager.add | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java#L60-L64 | train | java | Add the declarationSRef to the DeclarationsManager.
Calculate the matching of the Declaration with the DeclarationFilter of the
Linker.
@param declarationSRef the ServiceReference<D> of the Declaration | public void add(ServiceReference<D> declarationSRef) {
D declaration = getDeclaration(declarationSRef);
boolean matchFilter = declarationFilter.matches(declaration.getMetadata());
declarations.put(declarationSRef, matchFilter);
} | Add the declarationSRef to the DeclarationsManager.
Calculate the matching of the Declaration with the DeclarationFilter of the
Linker.
@param declarationSRef the ServiceReference<D> of the Declaration
public void add(ServiceReference<D> declarationSRef) {
D declaration = getDeclaration(declarationSRef);
... | 88 | 202 | 257 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f43d65051efe0f9d930f784e7082a842ef1f5002c8423edcc87119d3a147f4d1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
7c672c334d9f68a6455c52b0 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java | LinkerDeclarationsManager.createLinks | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java#L114-L121 | train | java | Create all the links possible between the Declaration and all the ImporterService matching the.
ImporterServiceFilter of the Linker.
@param declarationSRef the ServiceReference<Declaration> of the Declaration | public void createLinks(ServiceReference<D> declarationSRef) {
D declaration = getDeclaration(declarationSRef);
for (ServiceReference<S> serviceReference : linkerManagement.getMatchedBinderServiceRef()) {
if (linkerManagement.canBeLinked(declaration, serviceReference)) {
link... | Create all the links possible between the Declaration and all the ImporterService matching the.
ImporterServiceFilter of the Linker.
@param declarationSRef the ServiceReference<Declaration> of the Declaration
public void createLinks(ServiceReference<D> declarationSRef) {
D declaration = getDeclaration(declara... | 115 | 209 | 399 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | db8e53dadb47dea25a2029601000b57847611ccc9163e7722fff7feb16201c76 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
7df72af2e84d2d41999b620b | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java | LinkerDeclarationsManager.removeLinks | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java#L128-L135 | train | java | Remove all the existing links of the Declaration.
@param declarationSRef the ServiceReference<Declaration> of the Declaration | public void removeLinks(ServiceReference<D> declarationSRef) {
D declaration = getDeclaration(declarationSRef);
for (ServiceReference serviceReference : declaration.getStatus().getServiceReferencesBounded()) {
// FIXME : In case of multiples Linker, we will remove the link of all the Service... | Remove all the existing links of the Declaration.
@param declarationSRef the ServiceReference<Declaration> of the Declaration
public void removeLinks(ServiceReference<D> declarationSRef) {
D declaration = getDeclaration(declarationSRef);
for (ServiceReference serviceReference : declaration.getStatus()... | 113 | 126 | 480 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 78a6536881c1b53e2c670dcd69566ec3f0a58dc79d40960c871969c66881d1e9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
bcb7a1f0de51f7686083468a | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java | LinkerDeclarationsManager.getMatchedDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java#L144-L152 | train | java | Return a set of all the Declaration matching the DeclarationFilter of the.
Linker.
@return a set of all the Declaration matching the DeclarationFilter of the
Linker. | public Set<D> getMatchedDeclaration() {
Set<D> bindedSet = new HashSet<D>();
for (Map.Entry<ServiceReference<D>, Boolean> e : declarations.entrySet()) {
if (e.getValue()) {
bindedSet.add(getDeclaration(e.getKey()));
}
}
return bindedSet;
} | Return a set of all the Declaration matching the DeclarationFilter of the.
Linker.
@return a set of all the Declaration matching the DeclarationFilter of the
Linker.
public Set<D> getMatchedDeclaration() {
Set<D> bindedSet = new HashSet<D>();
for (Map.Entry<ServiceReference<D>, Boolean> e : declaratio... | 102 | 166 | 315 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5f02e283ce637dc9d9548fbc6c7906dcd71f0a04154b946cda156d51c34bfdad | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c327f762e12ad9693017e046 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java | LinkerDeclarationsManager.applyFilterChanges | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerDeclarationsManager.java#L164-L185 | train | java | Compute and apply all the modifications bring by the modification of the DeclarationFilter.
<p/>
Find all the Declaration that are now matching the filter and all that are no more matching the filter.
<ul>
<li>Remove all the links of the ones which are no more matching the DeclarationFilter.</li>
<li>Create the links o... | public void applyFilterChanges(Filter declarationFilter) {
this.declarationFilter = declarationFilter;
Set<ServiceReference<D>> added = new HashSet<ServiceReference<D>>();
Set<ServiceReference<D>> removed = new HashSet<ServiceReference<D>>();
for (Map.Entry<ServiceReference<D>, Boolean>... | Compute and apply all the modifications bring by the modification of the DeclarationFilter.
<p/>
Find all the Declaration that are now matching the filter and all that are no more matching the filter.
<ul>
<li>Remove all the links of the ones which are no more matching the DeclarationFilter.</li>
<li>Create the links o... | 272 | 387 | 1,012 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2e35293f0e73b67271b5e86cb2ddf042278ff702af63d27656bf049a0075afd9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3a0a2135df1763a8e00675ba | before/quality-check | modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/util/FieldUtil.java | FieldUtil.determineAccessorPrefix | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/util/FieldUtil.java#L37-L42 | train | java | Determines the prefix of an accessor method based on an accessor method name.
@param methodName
an accessor method name
@return the resulting prefix | public static AccessorPrefix determineAccessorPrefix(@Nonnull final String methodName) {
Check.notEmpty(methodName, "methodName");
final Matcher m = PATTERN.matcher(methodName);
Check.stateIsTrue(m.find(), "passed method name '%s' is not applicable", methodName);
return new AccessorPrefix(m.group(1));
} | Determines the prefix of an accessor method based on an accessor method name.
@param methodName
an accessor method name
@return the resulting prefix
public static AccessorPrefix determineAccessorPrefix(@Nonnull final String methodName) {
Check.notEmpty(methodName, "methodName");
final Matcher m = PATTERN.matcher(... | 98 | 149 | 313 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e918124fbd3e5b8d089a9ebce1d69fdbddd3f10dd055ea9797f14b893f88c5b0 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
04df6615d815d61a80dc1864 | before/quality-check | modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/util/FieldUtil.java | FieldUtil.determineFieldName | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/util/FieldUtil.java#L51-L56 | train | java | Determines the field name based on an accessor method name.
@param methodName
an accessor method name
@return the resulting field name | public static String determineFieldName(@Nonnull final String methodName) {
Check.notEmpty(methodName, "methodName");
final Matcher m = PATTERN.matcher(methodName);
Check.stateIsTrue(m.find(), "passed method name '%s' is not applicable", methodName);
return m.group(2).substring(0, 1).toLowerCase() + m.group(2).... | Determines the field name based on an accessor method name.
@param methodName
an accessor method name
@return the resulting field name
public static String determineFieldName(@Nonnull final String methodName) {
Check.notEmpty(methodName, "methodName");
final Matcher m = PATTERN.matcher(methodName);
Check.stateI... | 108 | 135 | 336 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 779b5135c9b4f30c7d2ab5f4fd5a854673fa3e8d054e3f7590891e738754ed0c | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
3c240a1d01302c2757066a1b | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/KnIPDeviceMgmtAdapter.java | KnIPDeviceMgmtAdapter.setProperty | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/KnIPDeviceMgmtAdapter.java#L195-L203 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.PropertyAdapter#setProperty
(int, int, int, int, byte[]) | public void setProperty(int objIndex, int pid, int start, int elements, byte[] data)
throws KNXTimeoutException, KNXRemoteException, KNXConnectionClosedException
{
if (closed)
throw new KNXIllegalStateException("adapter closed");
conn.send(new CEMIDevMgmt(CEMIDevMgmt.MC_PROPWRITE_REQ, getObjectType(objIn... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.PropertyAdapter#setProperty
(int, int, int, int, byte[])
public void setProperty(int objIndex, int pid, int start, int elements, byte[] data)
throws KNXTimeoutException, KNXRemoteException, KNXConnectionClosedException
{
if (closed)
throw new KNXIllegalStateE... | 157 | 104 | 443 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 19625c095d10c88df1c37227557d53641687009dd238ca9a168cb1d17ad53749 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
acd2bfc42bc48057d1ece4f1 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/KnIPDeviceMgmtAdapter.java | KnIPDeviceMgmtAdapter.getProperty | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/KnIPDeviceMgmtAdapter.java#L208-L216 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.PropertyAdapter#getProperty(int, int, int, int) | public byte[] getProperty(int objIndex, int pid, int start, int elements)
throws KNXTimeoutException, KNXRemoteException, KNXConnectionClosedException
{
if (closed)
throw new KNXIllegalStateException("adapter closed");
conn.send(new CEMIDevMgmt(CEMIDevMgmt.MC_PROPREAD_REQ, getObjectType(objIndex),
1,... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.PropertyAdapter#getProperty(int, int, int, int)
public byte[] getProperty(int objIndex, int pid, int start, int elements)
throws KNXTimeoutException, KNXRemoteException, KNXConnectionClosedException
{
if (closed)
throw new KNXIllegalStateException("adapter cl... | 148 | 95 | 431 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d3f59c84c5b86c808dd70046746847f4db5c902f5f1d2b0ea2ed4d3f382bc3fa | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
37fe20c787af028060a6c9a0 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/KnIPDeviceMgmtAdapter.java | KnIPDeviceMgmtAdapter.getDescription | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/KnIPDeviceMgmtAdapter.java#L221-L272 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.PropertyAdapter#getDescription(int, int, int) | public byte[] getDescription(int objIndex, int pid, int propIndex)
throws KNXTimeoutException, KNXConnectionClosedException, KNXRemoteException
{
// imitate property description:
// oindex: PID_IO_LIST
// pindex: supplied, conditional
// pid: supplied, conditional
// pdt: -
// elements: current n... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.PropertyAdapter#getDescription(int, int, int)
public byte[] getDescription(int objIndex, int pid, int propIndex)
throws KNXTimeoutException, KNXConnectionClosedException, KNXRemoteException
{
// imitate property description:
// oindex: PID_IO_LIST
// pindex... | 530 | 93 | 1,647 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6e2fecd89f3c142d827eb397eeeb63b6f90f1b1dc55e1fe5baf75e8c4eed66da | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
264c9ab43972105d06339e64 | usc/wechat-mp-sdk | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/JsonRtnUtil.java | JsonRtnUtil.parseJsonRtn | https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/JsonRtnUtil.java#L33-L37 | train | java | parse json text to specified class
@param jsonRtn
@param jsonRtnClazz
@return | public static <T extends JsonRtn> T parseJsonRtn(String jsonRtn, Class<T> jsonRtnClazz) {
T rtn = JSONObject.parseObject(jsonRtn, jsonRtnClazz);
appendErrorHumanMsg(rtn);
return rtn;
} | parse json text to specified class
@param jsonRtn
@param jsonRtnClazz
@return
public static <T extends JsonRtn> T parseJsonRtn(String jsonRtn, Class<T> jsonRtnClazz) {
T rtn = JSONObject.parseObject(jsonRtn, jsonRtnClazz);
appendErrorHumanMsg(rtn);
return rtn;
} | 78 | 78 | 212 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 23ddb4cd096b8819d4a2db592689e7a68664021250cf954e30f9ca9a3a9314a2 | Apache-2.0 | permissive | https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt |
20b35cbe9d511c829f0f9957 | usc/wechat-mp-sdk | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/JsonRtnUtil.java | JsonRtnUtil.appendErrorHumanMsg | https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/JsonRtnUtil.java#L45-L56 | train | java | append human message to JsonRtn class
@param jsonRtn
@return | private static JsonRtn appendErrorHumanMsg(JsonRtn jsonRtn) {
if (bundle == null || jsonRtn == null || StringUtils.isEmpty(jsonRtn.getErrCode())) {
return null;
}
try {
jsonRtn.setErrHumanMsg(bundle.getString(jsonRtn.getErrCode()));
return jsonRtn;
} ... | append human message to JsonRtn class
@param jsonRtn
@return
private static JsonRtn appendErrorHumanMsg(JsonRtn jsonRtn) {
if (bundle == null || jsonRtn == null || StringUtils.isEmpty(jsonRtn.getErrCode())) {
return null;
}
try {
jsonRtn.setErrHumanMsg(bundle.getString... | 104 | 61 | 382 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 49e1b3fdcf01454d5173b5f57868bf215ab147f5f48250a122eb87a1bc51f1c6 | Apache-2.0 | permissive | https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt |
3f5499a0201ba076e083df0e | usc/wechat-mp-sdk | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/JsonRtnUtil.java | JsonRtnUtil.isSuccess | https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/JsonRtnUtil.java#L64-L75 | train | java | return request is success by JsonRtn object
@param jsonRtn
@return | public static boolean isSuccess(JsonRtn jsonRtn) {
if (jsonRtn == null) {
return false;
}
String errCode = jsonRtn.getErrCode();
if (StringUtils.isEmpty(errCode) || StringUtils.equals(WECHAT_JSON_RTN_SUCCESS_CODE, errCode)) {
return true;
}
retur... | return request is success by JsonRtn object
@param jsonRtn
@return
public static boolean isSuccess(JsonRtn jsonRtn) {
if (jsonRtn == null) {
return false;
}
String errCode = jsonRtn.getErrCode();
if (StringUtils.isEmpty(errCode) || StringUtils.equals(WECHAT_JSON_RTN_SUCCES... | 93 | 67 | 334 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f54db1286bbd7ecb96047d911c49c1c4d2d91b9ac32657b0e50d645f5493b0f2 | Apache-2.0 | permissive | https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt |
a09b6362abb462218d7f2ef6 | usc/wechat-mp-sdk | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/platform/MediaUtil.java | MediaUtil.uploadMedia | https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/platform/MediaUtil.java#L43-L77 | train | java | TODO-Shunli: now upload video always failed, tip system error, check later | public static MediaJsonRtn uploadMedia(License license, MediaFile mediaFile) {
if (mediaFile == null) {
return JsonRtnUtil.buildFailureJsonRtn(MediaJsonRtn.class, "missing mediaFile");
}
// maybe todo more mediaFile legality check
String accessToken = AccessTokenUtil.getAcce... | TODO-Shunli: now upload video always failed, tip system error, check later
public static MediaJsonRtn uploadMedia(License license, MediaFile mediaFile) {
if (mediaFile == null) {
return JsonRtnUtil.buildFailureJsonRtn(MediaJsonRtn.class, "missing mediaFile");
}
// maybe todo more me... | 363 | 74 | 1,660 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 330a22a62ab6d8c1be01e1b8dfd64f5c79588877ee16d67135af7de6e1559c85 | Apache-2.0 | permissive | https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt |
ebff234e191cf814254e8a81 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/PositiveListCache.java | PositiveListCache.setPositiveList | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/PositiveListCache.java#L121-L132 | train | java | Sets a new positive list for this cache.
<p>
The old list is discarded. All cache objects will be updated immediately
according to the new list.
@param positiveList a Collection holding the allowed keys for this cache | public final synchronized void setPositiveList(Collection positiveList)
{
if (posList.size() == 0)
posList.addAll(positiveList);
else {
posList = new HashSet(positiveList);
// remove old keys not in the new list anymore
for (final Iterator i = map.keySet().iterator(); i.hasNext(); )
if (!po... | Sets a new positive list for this cache.
<p>
The old list is discarded. All cache objects will be updated immediately
according to the new list.
@param positiveList a Collection holding the allowed keys for this cache
public final synchronized void setPositiveList(Collection positiveList)
{
if (posList.size() ==... | 136 | 218 | 372 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5f74bed9c7f0b4ddc7ffea8ced0d698202f0fb93140030bf6b156d5fd46e4ee0 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f50647cc74d91602d5418ff8 | usc/wechat-mp-sdk | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/XmlUtil.java | XmlUtil.unmarshal | https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/XmlUtil.java#L37-L48 | train | java | xml -> object
@param message
@param childClass
@return | public static Object unmarshal(String message, Class<?> childClass) {
try {
Class<?>[] reverseAndToArray = Iterables.toArray(Lists.reverse(getAllSuperTypes(childClass)), Class.class);
JAXBContext jaxbCtx = JAXBContext.newInstance(reverseAndToArray);
Unmarshaller unmarshaller ... | xml -> object
@param message
@param childClass
@return
public static Object unmarshal(String message, Class<?> childClass) {
try {
Class<?>[] reverseAndToArray = Iterables.toArray(Lists.reverse(getAllSuperTypes(childClass)), Class.class);
JAXBContext jaxbCtx = JAXBContext.newInstance(r... | 109 | 55 | 492 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8c5b9c9b4f04d6cc376346a50a39c57f68b1226aabf2ad1ea534678785ce5e80 | Apache-2.0 | permissive | https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt |
8358f8c9b7c275548a6fb57f | usc/wechat-mp-sdk | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/XmlUtil.java | XmlUtil.marshal | https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/XmlUtil.java#L56-L75 | train | java | object -> xml
@param object
@param childClass | public static String marshal(Object object) {
if (object == null) {
return null;
}
try {
JAXBContext jaxbCtx = JAXBContext.newInstance(object.getClass());
Marshaller marshaller = jaxbCtx.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_... | object -> xml
@param object
@param childClass
public static String marshal(Object object) {
if (object == null) {
return null;
}
try {
JAXBContext jaxbCtx = JAXBContext.newInstance(object.getClass());
Marshaller marshaller = jaxbCtx.createMarshaller();
... | 113 | 46 | 544 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 23c36d89a9dbe9df138ee34066971cbbd83d525e1c4f853972c3da4b4d75113a | Apache-2.0 | permissive | https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt |
6d6c1f0e670fc46bfc52e369 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java | LogStreamWriter.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java#L163-L166 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.log.LogWriter#write
(java.lang.String, tuwien.auto.calimero.log.LogLevel, java.lang.String) | public void write(String logService, LogLevel level, String msg)
{
doWrite(logService, level, msg, null);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.log.LogWriter#write
(java.lang.String, tuwien.auto.calimero.log.LogLevel, java.lang.String)
public void write(String logService, LogLevel level, String msg)
{
doWrite(logService, level, msg, null);
} | 68 | 134 | 114 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a201e4759e32cbe54b42b4ce10b609d79c7b739c3e2606ad89dc549512b898e4 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
15c2cb54f3cf7001588c1afa | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java | LogStreamWriter.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java#L173-L176 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.log.LogWriter#write
(java.lang.String, tuwien.auto.calimero.log.LogLevel, java.lang.String,
java.lang.Throwable) | public void write(String logService, LogLevel level, String msg, Throwable t)
{
doWrite(logService, level, msg, t);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.log.LogWriter#write
(java.lang.String, tuwien.auto.calimero.log.LogLevel, java.lang.String,
java.lang.Throwable)
public void write(String logService, LogLevel level, String msg, Throwable t)
{
doWrite(logService, level, msg, t);
} | 76 | 155 | 124 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0049243b7df20e67f9a2c8696d6589954e6ddc43196e66cb342c64828c422c22 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
716d57363b53f7d302b9036a | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java | LogStreamWriter.flush | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java#L181-L190 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.log.LogWriter#flush() | public synchronized void flush()
{
if (out != null)
try {
out.flush();
}
catch (final IOException e) {
getErrorHandler().error(this, "on flush", e);
}
} | /* (non-Javadoc)
@see tuwien.auto.calimero.log.LogWriter#flush()
public synchronized void flush()
{
if (out != null)
try {
out.flush();
}
catch (final IOException e) {
getErrorHandler().error(this, "on flush", e);
}
} | 70 | 64 | 185 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6721086169cc585794feb98ba5c7369878da4bc69f6467e894c9445c4ee60488 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
78027d8eb8d9cd40621746c9 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java | LogStreamWriter.logAllowed | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java#L227-L232 | train | java | Checks if logging output with log <code>level</code> is possible and would get
accepted by this <code>LogStreamWriter</code>.
<p>
Therefore this method also checks that the underlying output stream is opened.
@param level log level to check against
@return true if log is permitted, false otherwise | protected boolean logAllowed(LogLevel level)
{
if (out == null || level == LogLevel.OFF || level.higher(logLevel))
return false;
return true;
} | Checks if logging output with log <code>level</code> is possible and would get
accepted by this <code>LogStreamWriter</code>.
<p>
Therefore this method also checks that the underlying output stream is opened.
@param level log level to check against
@return true if log is permitted, false otherwise
protected boolean l... | 101 | 299 | 157 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f91c7846d92b42769c67f01e511bd6d649bffdccddd1632d464f91feae1cd3cc | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
77c7bf3565e8a2db1cb85ad1 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java | LogStreamWriter.formatOutput | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogStreamWriter.java#L257-L287 | train | java | Creates a formatted output string from the input parameters.
<p>
Override this method to provide a different output format.<br>
The output returned by default follows the shown format. The date/time format is
according ISO 8601 representation, extended format with decimal fraction of second
(milliseconds):<br>
"YYYY-MM... | protected String formatOutput(String svc, LogLevel l, String msg, Throwable t)
{
// ??? for more severe output levels, a formatting routine which
// uses (part of) the throwable stack trace would be of advantage
final StringBuffer b = new StringBuffer(150);
synchronized (c) {
c.setTimeInMillis(System.... | Creates a formatted output string from the input parameters.
<p>
Override this method to provide a different output format.<br>
The output returned by default follows the shown format. The date/time format is
according ISO 8601 representation, extended format with decimal fraction of second
(milliseconds):<br>
"YYYY-MM... | 592 | 1,180 | 1,244 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 16510151de38bf164e768fcb5f1940980e3280e4d6189e84d3a1cf79204cbcb0 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6114cf93604957bc283633c2 | ow2-chameleon/fuchsia | discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java | AbstractFileBasedDiscovery.parseFile | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java#L84-L106 | train | java | Parse the given file to obtains a Properties object.
@param file
@return a properties object containing all the properties present in the file.
@throws InvalidDeclarationFileException | private Properties parseFile(File file) throws InvalidDeclarationFileException {
Properties properties = new Properties();
InputStream is = null;
try {
is = new FileInputStream(file);
properties.load(is);
} catch (Exception e) {
throw new InvalidDeclar... | Parse the given file to obtains a Properties object.
@param file
@return a properties object containing all the properties present in the file.
@throws InvalidDeclarationFileException
private Properties parseFile(File file) throws InvalidDeclarationFileException {
Properties properties = new Properties();
... | 203 | 184 | 971 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f90deefdf73494289d753a827853763dcc0ffda80eacc6420b1dfecdcba977a7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
376c4714ccbd2543cf05f584 | ow2-chameleon/fuchsia | discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java | AbstractFileBasedDiscovery.onFileChange | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java#L136-L140 | train | java | FIXME : this have to be rechecked, this is an pessimist approach | public void onFileChange(File file) {
LOG.info("File updated : {}", file.getAbsolutePath());
onFileDelete(file);
onFileCreate(file);
} | FIXME : this have to be rechecked, this is an pessimist approach
public void onFileChange(File file) {
LOG.info("File updated : {}", file.getAbsolutePath());
onFileDelete(file);
onFileCreate(file);
} | 50 | 64 | 162 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4abe7556639d81d3cd309064f442abb27be60e6fe8798fb3652c889a38c1fbbc | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
be26f4dc537021ec482b9932 | ow2-chameleon/fuchsia | discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java | AbstractFileBasedDiscovery.createAndRegisterDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java#L188-L199 | train | java | Create and register the declaration of class D with the given metadata.
@param metadata the metadata to create the declaration
@return the created declaration of class D | private D createAndRegisterDeclaration(Map<String, Object> metadata) {
D declaration;
if (klass.equals(ImportDeclaration.class)) {
declaration = (D) ImportDeclarationBuilder.fromMetadata(metadata).build();
} else if (klass.equals(ExportDeclaration.class)) {
declaration = ... | Create and register the declaration of class D with the given metadata.
@param metadata the metadata to create the declaration
@return the created declaration of class D
private D createAndRegisterDeclaration(Map<String, Object> metadata) {
D declaration;
if (klass.equals(ImportDeclaration.class)) {
... | 128 | 170 | 563 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3c77d6617a66d462952ee9df13993ac9dac157a1bde8ec035f6d6258201cad6b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4c927f6b07f1fe0d1ba97bc2 | ow2-chameleon/fuchsia | discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java | AbstractFileBasedDiscovery.start | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java#L225-L242 | train | java | This method must be called on the start of the component. Initialize and start the directory monitor.
@param monitoredDirectory
@param pollingTime | void start(String monitoredDirectory, Long pollingTime) {
this.monitoredDirectory = monitoredDirectory;
String deployerKlassName;
if (klass.equals(ImportDeclaration.class)) {
deployerKlassName = ImporterDeployer.class.getName();
} else if (klass.equals(ExportDeclaration.class... | This method must be called on the start of the component. Initialize and start the directory monitor.
@param monitoredDirectory
@param pollingTime
void start(String monitoredDirectory, Long pollingTime) {
this.monitoredDirectory = monitoredDirectory;
String deployerKlassName;
if (klass.equals(... | 198 | 147 | 856 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | dd58daf99d6a466f3a993d8bdf4b8aaf60d048901e4ed71a3b4586b69416928f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0ffa6b52db56b023383a00b5 | ow2-chameleon/fuchsia | discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java | AbstractFileBasedDiscovery.stop | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/discoveries/file-based/src/main/java/org/ow2/chameleon/fuchsia/discovery/filebased/AbstractFileBasedDiscovery.java#L248-L256 | train | java | This method must be called on the stop of the component. Stop the directory monitor and unregister all the
declarations. | void stop() {
try {
dm.stop(getBundleContext());
} catch (DirectoryMonitoringException e) {
LOG.error("Failed to stop " + DirectoryMonitor.class.getName() + " for the directory " + monitoredDirectory, e);
}
declarationsFiles.clear();
declarationRegistratio... | This method must be called on the stop of the component. Stop the directory monitor and unregister all the
declarations.
void stop() {
try {
dm.stop(getBundleContext());
} catch (DirectoryMonitoringException e) {
LOG.error("Failed to stop " + DirectoryMonitor.class.getName() + "... | 90 | 120 | 351 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ea89a900661839974d81ee13e2e3a3dd459688fe08b08283ef735c961209a85f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c4141d11eb1c71c720138cf7 | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/features/BoundednessFeature.java | BoundednessFeature.calculateBoundedness | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/features/BoundednessFeature.java#L36-L41 | train | java | Calculates the Boundedness value to given confinement radius, diffusion coefficient, timlag and number of steps.
@param D diffusion coefficient
@param N Number of steps
@param timelag Timelag
@param confRadius Confinement radius
@return Boundedness value | public static double calculateBoundedness(double D, int N, double timelag, double confRadius){
double r = confRadius;
double cov_area = a(N)*D*timelag;
double res = cov_area/(4*r*r);
return res;
} | Calculates the Boundedness value to given confinement radius, diffusion coefficient, timlag and number of steps.
@param D diffusion coefficient
@param N Number of steps
@param timelag Timelag
@param confRadius Confinement radius
@return Boundedness value
public static double calculateBoundedness(double D, int N, doubl... | 115 | 254 | 205 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 86e90ea6bbe3d7f12b31a9276ca2da151e6ed3fc35107b4f9c387df25472e11c | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
506e5bce9c0877f58b0667f3 | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/features/BoundednessFeature.java | BoundednessFeature.getRadiusToBoundedness | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/features/BoundednessFeature.java#L51-L55 | train | java | Calculates the radius to a given boundedness value
@param D Diffusion coefficient
@param N Number of steps
@param timelag Timelag
@param B Boundedeness
@return Confinement radius | public static double getRadiusToBoundedness(double D, int N, double timelag, double B){
double cov_area = a(N)*D*timelag;
double radius = Math.sqrt(cov_area/(4*B));
return radius;
} | Calculates the radius to a given boundedness value
@param D Diffusion coefficient
@param N Number of steps
@param timelag Timelag
@param B Boundedeness
@return Confinement radius
public static double getRadiusToBoundedness(double D, int N, double timelag, double B){
double cov_area = a(N)*D*timelag;
double radius ... | 99 | 178 | 188 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b3736afbff72d424c15fe40a3788c1e8b64975da8d3e591d7e38ca3419cd71a0 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
96b0e421cb0b60a410e544ec | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java | NumberInRange.checkByte | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java#L62-L71 | train | java | Checks if a given number is in the range of a byte.
@param number
a number which should be in the range of a byte (positive or negative)
@see java.lang.Byte#MIN_VALUE
@see java.lang.Byte#MAX_VALUE
@return number as a byte (rounding might occur) | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static byte checkByte(@Nonnull final Number number) {
Check.notNull(number, "number");
if (!isInByteRange(number)) {
throw new IllegalNumberRangeException(number.toString(), BYTE_MIN, BYTE_MAX);
}
return number.byteValue();
} | Checks if a given number is in the range of a byte.
@param number
a number which should be in the range of a byte (positive or negative)
@see java.lang.Byte#MIN_VALUE
@see java.lang.Byte#MAX_VALUE
@return number as a byte (rounding might occur)
@ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public ... | 131 | 247 | 309 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 13475e31f9f538a4c143f3c55a03422d4cc2627507e2afb741e6c28b254e3be1 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
962415577fba5a3ddc6bc52d | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java | NumberInRange.checkDouble | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java#L84-L93 | train | java | Checks if a given number is in the range of a double.
@param number
a number which should be in the range of a double (positive or negative)
@see java.lang.Double#MIN_VALUE
@see java.lang.Double#MAX_VALUE
@return number as a double | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static double checkDouble(@Nonnull final Number number) {
Check.notNull(number, "number");
if (!isInDoubleRange(number)) {
throw new IllegalNumberRangeException(number.toString(), DOUBLE_MIN, DOUBLE_MAX);
}
return number.doubleValue();
... | Checks if a given number is in the range of a double.
@param number
a number which should be in the range of a double (positive or negative)
@see java.lang.Double#MIN_VALUE
@see java.lang.Double#MAX_VALUE
@return number as a double
@ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static double... | 126 | 234 | 321 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ee8ecd6512d08f6ac9001244d169d1ba842a87230ddf02eaac0fa502557e15d7 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
8dcf1507c76f9f47f37fd492 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java | NumberInRange.checkFloat | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java#L106-L115 | train | java | Checks if a given number is in the range of a float.
@param number
a number which should be in the range of a float (positive or negative)
@see java.lang.Float#MIN_VALUE
@see java.lang.Float#MAX_VALUE
@return number as a float | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static float checkFloat(@Nonnull final Number number) {
Check.notNull(number, "number");
if (!isInFloatRange(number)) {
throw new IllegalNumberRangeException(number.toString(), FLOAT_MIN, FLOAT_MAX);
}
return number.floatValue();
} | Checks if a given number is in the range of a float.
@param number
a number which should be in the range of a float (positive or negative)
@see java.lang.Float#MIN_VALUE
@see java.lang.Float#MAX_VALUE
@return number as a float
@ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static float check... | 126 | 229 | 315 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | cad24b2f3c8add87fc12d3c7ca9551b85e5821b2a1185350a812573f2b0dbd99 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
94176fca7d7b36cfe84cd03d | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java | NumberInRange.checkInteger | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java#L128-L137 | train | java | Checks if a given number is in the range of an integer.
@param number
a number which should be in the range of an integer (positive or negative)
@see java.lang.Integer#MIN_VALUE
@see java.lang.Integer#MAX_VALUE
@return number as an integer (rounding might occur) | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static int checkInteger(@Nonnull final Number number) {
Check.notNull(number, "number");
if (!isInIntegerRange(number)) {
throw new IllegalNumberRangeException(number.toString(), INTEGER_MIN, INTEGER_MAX);
}
return number.intValue();
} | Checks if a given number is in the range of an integer.
@param number
a number which should be in the range of an integer (positive or negative)
@see java.lang.Integer#MIN_VALUE
@see java.lang.Integer#MAX_VALUE
@return number as an integer (rounding might occur)
@ArgumentsChecked
@Throws(IllegalNullArgumentExcepti... | 130 | 265 | 319 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1f24483514f073683de7272983f69213a9dd52b2b2993a7f8d45778d3e9935a7 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
f2194676f1b4c04f88cb1a35 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java | NumberInRange.checkLong | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java#L150-L159 | train | java | Checks if a given number is in the range of a long.
@param number
a number which should be in the range of a long (positive or negative)
@see java.lang.Long#MIN_VALUE
@see java.lang.Long#MAX_VALUE
@return number as a long (rounding might occur) | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static int checkLong(@Nonnull final Number number) {
Check.notNull(number, "number");
if (!isInLongRange(number)) {
throw new IllegalNumberRangeException(number.toString(), LONG_MIN, LONG_MAX);
}
return number.intValue();
} | Checks if a given number is in the range of a long.
@param number
a number which should be in the range of a long (positive or negative)
@see java.lang.Long#MIN_VALUE
@see java.lang.Long#MAX_VALUE
@return number as a long (rounding might occur)
@ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public ... | 130 | 247 | 307 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4b2b475781340ce0334886b91664c87b99f7845eeed28e705dfd578cf68696cf | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
fda4ea493949103e6912a79a | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java | NumberInRange.checkShort | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java#L172-L181 | train | java | Checks if a given number is in the range of a short.
@param number
a number which should be in the range of a short (positive or negative)
@see java.lang.Short#MIN_VALUE
@see java.lang.Short#MAX_VALUE
@return number as a short (rounding might occur) | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static short checkShort(@Nonnull final Number number) {
Check.notNull(number, "number");
if (!isInShortRange(number)) {
throw new IllegalNumberRangeException(number.toString(), SHORT_MIN, SHORT_MAX);
}
return number.shortValue();
} | Checks if a given number is in the range of a short.
@param number
a number which should be in the range of a short (positive or negative)
@see java.lang.Short#MIN_VALUE
@see java.lang.Short#MAX_VALUE
@return number as a short (rounding might occur)
@ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
pu... | 131 | 252 | 315 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b292f94beb7d058ae0f23c40d3b50274d791b755db2814bb8a69b578ceb3fd0b | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
6348282cdfc28ec794d45986 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java | NumberInRange.isInRange | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java#L250-L271 | train | java | Test if a number is in an arbitrary range.
@param number
a number
@param min
lower boundary of the range
@param max
upper boundary of the range
@return true if the given number is within the range | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static boolean isInRange(@Nonnull final Number number, @Nonnull final BigDecimal min, @Nonnull final BigDecimal max) {
Check.notNull(number, "number");
Check.notNull(min, "min");
Check.notNull(max, "max");
BigDecimal bigDecimal = null;
if... | Test if a number is in an arbitrary range.
@param number
a number
@param min
lower boundary of the range
@param max
upper boundary of the range
@return true if the given number is within the range
@ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static boolean isInRange(@Nonnull final Number nu... | 269 | 198 | 1,017 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 78cc9c73c6912a883a096606202956bc23d9a0d4c03efd98fdebc0923b960cbd | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
0c9b04bc867eedab8e3af7bd | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java | NumberInRange.isInRange | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/NumberInRange.java#L285-L306 | train | java | Test if a number is in an arbitrary range.
@param number
a number
@param min
lower boundary of the range
@param max
upper boundary of the range
@return true if the given number is within the range | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static boolean isInRange(@Nonnull final Number number, @Nonnull final BigInteger min, @Nonnull final BigInteger max) {
Check.notNull(number, "number");
Check.notNull(min, "min");
Check.notNull(max, "max");
BigInteger bigInteger = null;
if... | Test if a number is in an arbitrary range.
@param number
a number
@param min
lower boundary of the range
@param max
upper boundary of the range
@return true if the given number is within the range
@ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static boolean isInRange(@Nonnull final Number nu... | 273 | 198 | 1,037 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c7fb19168732bc40e89a87a5654652cfff292893582be559e5cca633d2a653a8 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
a078c3a3cbbdb819ed4478de | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator8BitUnsigned.java | DPTXlator8BitUnsigned.setData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator8BitUnsigned.java#L234-L245 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#setData(byte[], int) | public void setData(byte[] data, int offset)
{
if (offset < 0 || offset > data.length)
throw new KNXIllegalArgumentException("illegal offset " + offset);
final int size = data.length - offset;
if (size == 0)
throw new KNXIllegalArgumentException("data length " + size
+ " < KNX data type width " ... | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#setData(byte[], int)
public void setData(byte[] data, int offset)
{
if (offset < 0 || offset > data.length)
throw new KNXIllegalArgumentException("illegal offset " + offset);
final int size = data.length - offset;
if (size == 0)
throw ne... | 156 | 83 | 464 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4f50aa286e62aeb1398cd72834bfa29c2757ba9d7689c4f90c915cd63dcb0abf | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
654c128c92b13a8951427f17 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator8BitUnsigned.java | DPTXlator8BitUnsigned.getData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator8BitUnsigned.java#L250-L329 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int) | public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset);
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
* @see tuwien.auto.calimero.dptxlator.DPTXlator#getSubTypes()
*/
public final Map getSub... | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int)
public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset);
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
* @see t... | 651 | 83 | 2,209 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ae953a03e128a5033842dfa3420abad1efe9948c5762c90d7da475d1232b151f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
8260c7e2fada453ca15235ac | phax/ph-xmldsig | src/main/java/com/helger/xmldsig/keyselect/AbstractKeySelector.java | AbstractKeySelector.algorithmEquals | https://github.com/phax/ph-xmldsig/blob/c00677fe3dac5aef0f3039b08a03e90052473952/src/main/java/com/helger/xmldsig/keyselect/AbstractKeySelector.java#L47-L87 | train | java | Checks if a JCA/JCE public key algorithm name is compatible with the
specified signature algorithm URI.
@param sAlgURI
The requested algorithm URI.
@param sAlgName
The provided algorithm name from a public key.
@return <code>true</code> if the name matches the URI. | public static boolean algorithmEquals (@Nonnull final String sAlgURI, @Nonnull final String sAlgName)
{
if (sAlgName.equalsIgnoreCase ("DSA"))
{
return sAlgURI.equalsIgnoreCase (XMLSignature.ALGO_ID_SIGNATURE_DSA) ||
sAlgURI.equalsIgnoreCase (XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256);
... | Checks if a JCA/JCE public key algorithm name is compatible with the
specified signature algorithm URI.
@param sAlgURI
The requested algorithm URI.
@param sAlgName
The provided algorithm name from a public key.
@return <code>true</code> if the name matches the URI.
public static boolean algorithmEquals (@Nonnull fina... | 588 | 266 | 2,430 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9b0b6dac27d47afe6118799cd7ceaa0937d1acdac1b9d3cc9826d4b5f80bc184 | Apache-2.0 | permissive | https://github.com/phax/ph-xmldsig/blob/master/LICENSE |
092acae2e348a398f928c570 | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/simulation/AnomalousDiffusionScene.java | AnomalousDiffusionScene.estimateExcludedVolumeFraction | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/simulation/AnomalousDiffusionScene.java#L71-L97 | train | java | Estimate excluded volume fraction by monte carlo method
@return excluded volume fraction | public double estimateExcludedVolumeFraction(){
//Calculate volume/area of the of the scene without obstacles
if(recalculateVolumeFraction){
CentralRandomNumberGenerator r = CentralRandomNumberGenerator.getInstance();
boolean firstRandomDraw = false;
if(randomNumbers==null){
randomNumbers = new double[... | Estimate excluded volume fraction by monte carlo method
@return excluded volume fraction
public double estimateExcludedVolumeFraction(){
//Calculate volume/area of the of the scene without obstacles
if(recalculateVolumeFraction){
CentralRandomNumberGenerator r = CentralRandomNumberGenerator.getInstance();
bo... | 234 | 88 | 846 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9d4641aaa7ae0a961a0f6a66c2947af44699247debb71de9c789778f43e46947 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
82759820adc2e8bc795c14d4 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalNullElementsException.java | IllegalNullElementsException.determineMessage | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalNullElementsException.java#L51-L53 | train | java | Determines the message to be used, depending on the passed argument name. If if the given argument name is
{@code null} or empty {@code DEFAULT_MESSAGE} will be returned, otherwise a formatted {@code MESSAGE_WITH_NAME}
with the passed name.
@param argumentName
the name of the passed argument
@return {@code DEFAULT_MES... | private static String determineMessage(@Nullable final String argumentName) {
return argumentName != null && !argumentName.isEmpty() ? format(argumentName) : DEFAULT_MESSAGE;
} | Determines the message to be used, depending on the passed argument name. If if the given argument name is
{@code null} or empty {@code DEFAULT_MESSAGE} will be returned, otherwise a formatted {@code MESSAGE_WITH_NAME}
with the passed name.
@param argumentName
the name of the passed argument
@return {@code DEFAULT_MES... | 128 | 426 | 179 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f58057aac15b242aeb5f44dfda387a56bc67ab5aa746b7c2e912640dc57c4f07 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
54835a26b79e96e29ca639b7 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.handleApplicationCommandRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L147-L182 | train | java | {@inheritDoc} | @Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpointId) {
logger.trace("Handle Message Multi-instance/Multi-channel Request");
logger.debug(String.format("Received Multi-instance/Multi-channel Request for Node ID = %d", this.getNode().getNodeId()));
... | {@inheritDoc}
@Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpointId) {
logger.trace("Handle Message Multi-instance/Multi-channel Request");
logger.debug(String.format("Received Multi-instance/Multi-channel Request for Node ID = %d", this.getNode().get... | 321 | 13 | 1,477 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 11c83682d092b4cd0d710ed762dafddf6178e6bbe9fced8fb2fa623a8c7154ed | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b36fb8ff3762f5fee323828d | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.handleMultiInstanceReportResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L190-L225 | train | java | Handles Multi Instance Report message. Handles Report on
the number of instances for the command class.
@param serialMessage the serial message to process.
@param offset the offset at which to start procesing. | private void handleMultiInstanceReportResponse(SerialMessage serialMessage,
int offset) {
logger.trace("Process Multi-instance Report");
int commandClassCode = serialMessage.getMessagePayloadByte(offset);
int instances = serialMessage.getMessagePayloadByte(offset + 1);
if (instances == 0) {
setIns... | Handles Multi Instance Report message. Handles Report on
the number of instances for the command class.
@param serialMessage the serial message to process.
@param offset the offset at which to start procesing.
private void handleMultiInstanceReportResponse(SerialMessage serialMessage,
int offset) {
logger.trace... | 378 | 209 | 1,462 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 98df6a51f5b71445879473636828e9d61b4548217acf8a502810ee969335cf78 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
45d815e4e1111fc5cf521566 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.handleMultiInstanceEncapResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L234-L256 | train | java | Handles Multi Instance Encapsulation message. Decapsulates
an Application Command message and handles it using the right
instance.
@param serialMessage the serial message to process.
@param offset the offset at which to start procesing. | private void handleMultiInstanceEncapResponse(
SerialMessage serialMessage, int offset) {
logger.trace("Process Multi-instance Encapsulation");
int instance = serialMessage.getMessagePayloadByte(offset);
int commandClassCode = serialMessage.getMessagePayloadByte(offset + 1);
CommandClass commandClass = ... | Handles Multi Instance Encapsulation message. Decapsulates
an Application Command message and handles it using the right
instance.
@param serialMessage the serial message to process.
@param offset the offset at which to start procesing.
private void handleMultiInstanceEncapResponse(
SerialMessage serialMessage, in... | 303 | 236 | 1,158 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 559563ea5c0bbedfd2fe3a401dba26068f88876180602ac26bd4f624b4c5a8d6 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ebf78921b8a4b98fcb9dfc8d | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.handleMultiChannelEndpointReportResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L265-L287 | train | java | Handles Multi Channel Endpoint Report message. Handles Report on
the number of endpoints and whether they are dynamic and/or have the
same command classes.
@param serialMessage the serial message to process.
@param offset the offset at which to start processing. | private void handleMultiChannelEndpointReportResponse(
SerialMessage serialMessage, int offset) {
logger.debug("Process Multi-channel endpoint Report");
boolean changingNumberOfEndpoints = (serialMessage.getMessagePayloadByte(offset) & 0x80) != 0;
endpointsAreTheSameDeviceClass = (serialMessage.getMess... | Handles Multi Channel Endpoint Report message. Handles Report on
the number of endpoints and whether they are dynamic and/or have the
same command classes.
@param serialMessage the serial message to process.
@param offset the offset at which to start processing.
private void handleMultiChannelEndpointReportResponse(
... | 323 | 262 | 1,202 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3134a062c93d0a0a94c3f5e101d64677c379f032a747b915da4e998d6ff1b118 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ac41cd66beedbc619a6c4f40 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.handleMultiChannelCapabilityReportResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L295-L384 | train | java | Handles Multi Channel Capability Report message. Handles Report on
an endpoint and adds command classes to the endpoint.
@param serialMessage the serial message to process.
@param offset the offset at which to start processing. | private void handleMultiChannelCapabilityReportResponse(SerialMessage serialMessage, int offset) {
logger.debug("Process Multi-channel capability Report");
int receivedEndpointId = serialMessage.getMessagePayloadByte(offset) & 0x7F;
boolean dynamic = ((serialMessage.getMessagePayloadByte(offset) & 0x80) != 0);... | Handles Multi Channel Capability Report message. Handles Report on
an endpoint and adds command classes to the endpoint.
@param serialMessage the serial message to process.
@param offset the offset at which to start processing.
private void handleMultiChannelCapabilityReportResponse(SerialMessage serialMessage, int of... | 1,030 | 227 | 4,226 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f91528ccf392ec4899bf09a8707dfad850ff55a7b1abeb8a430904d1c9246d94 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
17d629c5b2a3e5c9e06c791e | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.handleMultiChannelEncapResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L393-L429 | train | java | Handles Multi Channel Encapsulation message. Decapsulates
an Application Command message and handles it using the right
endpoint.
@param serialMessage the serial message to process.
@param offset the offset at which to start procesing. | private void handleMultiChannelEncapResponse(
SerialMessage serialMessage, int offset) {
logger.trace("Process Multi-channel Encapsulation");
CommandClass commandClass;
ZWaveCommandClass zwaveCommandClass;
int endpointId = serialMessage.getMessagePayloadByte(offset);
int commandClassCode = serialMess... | Handles Multi Channel Encapsulation message. Decapsulates
an Application Command message and handles it using the right
endpoint.
@param serialMessage the serial message to process.
@param offset the offset at which to start procesing.
private void handleMultiChannelEncapResponse(
SerialMessage serialMessage, int ... | 449 | 235 | 1,758 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6dcb985440ec4c3d9e5f63a436a95a0effdbb7720c1b06324adbf5c5550f0a6b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a49951f95fde1010f42c58be | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.getMultiInstanceGetMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L437-L448 | train | java | Gets a SerialMessage with the MULTI INSTANCE GET command.
Returns the number of instances for this command class.
@param the command class to return the number of instances for.
@return the serial message. | public SerialMessage getMultiInstanceGetMessage(CommandClass commandClass) {
logger.debug("Creating new message for application command MULTI_INSTANCE_GET for node {} and command class {}", this.getNode().getNodeId(), commandClass.getLabel());
SerialMessage result = new SerialMessage(this.getNode().getNodeId(), S... | Gets a SerialMessage with the MULTI INSTANCE GET command.
Returns the number of instances for this command class.
@param the command class to return the number of instances for.
@return the serial message.
public SerialMessage getMultiInstanceGetMessage(CommandClass commandClass) {
logger.debug("Creating new messag... | 186 | 205 | 731 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3bbe260badb803ef1b9ceb8daa5f53566b19f40fc171aea9a8eef6859d9be2d2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a054f357b7db56fe29576d45 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.getMultiInstanceEncapMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L457-L471 | train | java | Gets a SerialMessage with the MULTI INSTANCE ENCAP command.
Encapsulates a message for a specific instance.
@param serialMessage the serial message to encapsulate
@param instance the number of the instance to encapsulate the message for.
@return the encapsulated serial message. | public SerialMessage getMultiInstanceEncapMessage(SerialMessage serialMessage, int instance) {
logger.debug("Creating new message for application command MULTI_INSTANCE_ENCAP for node {} and instance {}", this.getNode().getNodeId(), instance);
byte[] payload = serialMessage.getMessagePayload();
byte[] newP... | Gets a SerialMessage with the MULTI INSTANCE ENCAP command.
Encapsulates a message for a specific instance.
@param serialMessage the serial message to encapsulate
@param instance the number of the instance to encapsulate the message for.
@return the encapsulated serial message.
public SerialMessage getMultiInstanceEnc... | 229 | 278 | 719 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2df160d1aee8a39cfe04539247227996ffc4b2f19385c7715f02d411dbff388e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3a85c8883cabd65d0d759197 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.getMultiChannelCapabilityGetMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L495-L505 | train | java | Gets a SerialMessage with the MULTI CHANNEL CAPABILITY GET command.
Gets the capabilities for a specific endpoint.
@param the number of the endpoint to get the
@return the serial message. | public SerialMessage getMultiChannelCapabilityGetMessage(ZWaveEndpoint endpoint) {
logger.debug("Creating new message for application command MULTI_CHANNEL_CAPABILITY_GET for node {} and endpoint {}", this.getNode().getNodeId(), endpoint.getEndpointId());
SerialMessage result = new SerialMessage(this.getNode().ge... | Gets a SerialMessage with the MULTI CHANNEL CAPABILITY GET command.
Gets the capabilities for a specific endpoint.
@param the number of the endpoint to get the
@return the serial message.
public SerialMessage getMultiChannelCapabilityGetMessage(ZWaveEndpoint endpoint) {
logger.debug("Creating new message for applic... | 187 | 187 | 745 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6fb9f2a55a9616a75fc4c18cb4b6141e2f8495897089e9d61293278e404d3301 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
52e97dbeffed70a0cb3b4658 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.getMultiChannelEncapMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L514-L529 | train | java | Gets a SerialMessage with the MULTI INSTANCE ENCAP command.
Encapsulates a message for a specific instance.
@param serialMessage the serial message to encapsulate
@param endpoint the endpoint to encapsulate the message for.
@return the encapsulated serial message. | public SerialMessage getMultiChannelEncapMessage(SerialMessage serialMessage, ZWaveEndpoint endpoint) {
logger.debug("Creating new message for application command MULTI_CHANNEL_ENCAP for node {} and endpoint {}", this.getNode().getNodeId(), endpoint.getEndpointId());
byte[] payload = serialMessage.getMessageP... | Gets a SerialMessage with the MULTI INSTANCE ENCAP command.
Encapsulates a message for a specific instance.
@param serialMessage the serial message to encapsulate
@param endpoint the endpoint to encapsulate the message for.
@return the encapsulated serial message.
public SerialMessage getMultiChannelEncapMessage(Seria... | 246 | 264 | 782 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8db9a2e76b2c1cec059c54ebfece8c92f763e24be903a085f3b2f0678384456d | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f7610398c53b502a1d28fec3 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java | ZWaveMultiInstanceCommandClass.initEndpoints | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiInstanceCommandClass.java#L535-L552 | train | java | Initializes the Multi instance / endpoint command class by setting the number of instances
or getting the endpoints. | public void initEndpoints() {
switch (this.getVersion()) {
case 1:
// get number of instances for all command classes on this node.
for (ZWaveCommandClass commandClass : this.getNode().getCommandClasses()) {
if (commandClass.getCommandClass() == CommandClass.NO_OPERATION)
continue;
t... | Initializes the Multi instance / endpoint command class by setting the number of instances
or getting the endpoints.
public void initEndpoints() {
switch (this.getVersion()) {
case 1:
// get number of instances for all command classes on this node.
for (ZWaveCommandClass commandClass : this.getNode().... | 188 | 116 | 737 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ee8efb91ed301b89f80a3496fccd917497ce3509de8830441d7a3a2e4b91e478 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a14900b735b2671c5256e82c | aerogear/aerogear-android-security | library/src/main/java/org/jboss/aerogear/android/security/SecurityManager.java | SecurityManager.config | https://github.com/aerogear/aerogear-android-security/blob/c1be1ba8ccee49bb292d320714bb7c1726638852/library/src/main/java/org/jboss/aerogear/android/security/SecurityManager.java#L74-L89 | train | java | Begins a new fluent configuration stanza.
@param <CFG> the Configuration type.
@param name an identifier which will be used to fetch the AuthenticationModule after
configuration is finished.
@param cryptoConfigurationClass the class of the configuration type.
@return a AuthenticationConfiguration which can be used to... | public static <CFG extends AbstractEncryptionConfiguration<CFG>> CFG config(String name, Class<CFG> cryptoConfigurationClass) {
@SuppressWarnings("unchecked")
ConfigurationProvider<? extends AbstractEncryptionConfiguration<CFG>> provider =
(ConfigurationProvider<? extends AbstractEncryp... | Begins a new fluent configuration stanza.
@param <CFG> the Configuration type.
@param name an identifier which will be used to fetch the AuthenticationModule after
configuration is finished.
@param cryptoConfigurationClass the class of the configuration type.
@return a AuthenticationConfiguration which can be used to... | 174 | 357 | 714 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 315dceb11803c935de5e92b26dbf5a52b6b1accbddafec4d4567fae20ee5e1cd | Apache-2.0 | permissive | https://github.com/aerogear-attic/aerogear-android-security/blob/master/LICENSE |
8c2a1a04c1c433b4e29ebd6c | ow2-chameleon/fuchsia | discoveries/upnp/src/main/java/org/ow2/chameleon/fuchsia/discovery/upnp/UPnPDiscovery.java | UPnPDiscovery.createImportationDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/discoveries/upnp/src/main/java/org/ow2/chameleon/fuchsia/discovery/upnp/UPnPDiscovery.java#L97-L108 | train | java | Create an import declaration and delegates its registration for an upper class. | public synchronized void createImportationDeclaration(String deviceId, String deviceType, String deviceSubType) {
Map<String, Object> metadata = new HashMap<String, Object>();
metadata.put(Constants.DEVICE_ID, deviceId);
metadata.put(Constants.DEVICE_TYPE, deviceType);
metadata.put(Const... | Create an import declaration and delegates its registration for an upper class.
public synchronized void createImportationDeclaration(String deviceId, String deviceType, String deviceSubType) {
Map<String, Object> metadata = new HashMap<String, Object>();
metadata.put(Constants.DEVICE_ID, deviceId);
... | 123 | 79 | 607 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4693802544e9a519a66675f8f4d1039a30914a11e592526cce80a92df1062326 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
e9c121478764503f8061050d | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/PropertyTypes.java | PropertyTypes.hasTranslator | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/PropertyTypes.java#L399-L411 | train | java | Does a lookup if the given property data type has an associated translator
available.
<p>
The translator looked for is specified in the property map. An available translator
is implemented and can be used for translation.
@param dataType property data type to lookup
@return <code>true</code> iff translator and its sub... | public static boolean hasTranslator(int dataType)
{
final DPTID dpt = (DPTID) pt.get(new Integer(dataType));
if (dpt != null)
try {
final MainType t = TranslatorTypes.getMainType(dpt.getMainNumber());
if (t != null)
return t.getSubTypes().get(dpt.getDPT()) != null;
}
catch (final Num... | Does a lookup if the given property data type has an associated translator
available.
<p>
The translator looked for is specified in the property map. An available translator
is implemented and can be used for translation.
@param dataType property data type to lookup
@return <code>true</code> iff translator and its sub... | 182 | 364 | 401 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 59818a7f0b936a9c741537b709facc542b36363d10ff709b9cb36ef32404c440 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c2586d17ef68f592ba405037 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/PropertyTypes.java | PropertyTypes.createTranslator | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/PropertyTypes.java#L424-L433 | train | java | Creates a new DPT translator for the specified property type.
<p>
The translator is initialized with a subtype as specified by the property map.
Also, appending of units is disabled in the returned translator.
@param dataType property data type to get the associated translator for
@return the created DPT translator
@t... | public static DPTXlator createTranslator(int dataType) throws KNXException
{
final DPTID dpt = (DPTID) pt.get(new Integer(dataType));
if (dpt == null)
throw new KNXException("PDT not found");
final DPTXlator t =
TranslatorTypes.createTranslator(dpt.getMainNumber(), dpt.getDPT());
t.setAppendUnit(f... | Creates a new DPT translator for the specified property type.
<p>
The translator is initialized with a subtype as specified by the property map.
Also, appending of units is disabled in the returned translator.
@param dataType property data type to get the associated translator for
@return the created DPT translator
@t... | 181 | 441 | 343 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1dc5d5ca44176bb8dcc254ba4af3eb7106f21820534eb491296c2dc10590ae00 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
23171807e86c1c47b2d7e44b | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/PropertyTypes.java | PropertyTypes.createTranslator | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/PropertyTypes.java#L447-L453 | train | java | Utility method, like {@link #createTranslator(int)}, with the additional
capability to set the data to be used by the DPT translator.
<p>
@param dataType property data type to get the associated translator for
@param data array with KNX DPT formatted data, the number of contained items is
determined by the used DPT
@r... | public static DPTXlator createTranslator(int dataType, byte[] data)
throws KNXException
{
final DPTXlator t = createTranslator(dataType);
t.setData(data);
return t;
} | Utility method, like {@link #createTranslator(int)}, with the additional
capability to set the data to be used by the DPT translator.
<p>
@param dataType property data type to get the associated translator for
@param data array with KNX DPT formatted data, the number of contained items is
determined by the used DPT
@r... | 150 | 471 | 182 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b9311823cbe2135643f7736583e99bd49c479806900d9a3eee2c5bc7cb6ae10a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6230eabfa92fbf233eac3b77 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/NetworkMonitor.java | NetworkMonitor.main | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/NetworkMonitor.java#L180-L194 | train | java | Entry point for running the NetworkMonitor.
<p>
An IP host or port identifier has to be supplied, specifying the endpoint for the
KNX network access.<br>
To show the usage message of this tool on the console, supply the command line
option -help (or -h).<br>
Command line options are treated case sensitive. Available op... | public static void main(String[] args)
{
try {
final NetworkMonitor m = new NetworkMonitor(args, null);
// supply a log writer for System.out (console)
m.w = new ConsoleWriter(m.options.containsKey("verbose"));
m.run(m.new MonitorListener());
}
catch (final Throwable t) {
if (t.getMessage... | Entry point for running the NetworkMonitor.
<p>
An IP host or port identifier has to be supplied, specifying the endpoint for the
KNX network access.<br>
To show the usage message of this tool on the console, supply the command line
option -help (or -h).<br>
Command line options are treated case sensitive. Available op... | 416 | 1,070 | 439 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bc95346f2246a13d056926e75792a9329cd6cb5d68d55eb2d6f4a3a42e549941 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
8ed246538a80d70ba1657414 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/NetworkMonitor.java | NetworkMonitor.run | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/NetworkMonitor.java#L204-L225 | train | java | Runs the network monitor.
<p>
This method returns when the network monitor is closed.
@param l a link listener for monitor events
@throws KNXException on problems on creating monitor or during monitoring | public void run(LinkListener l) throws KNXException
{
createMonitor(l);
final Thread sh = registerShutdownHandler();
// TODO actually, this waiting block is just necessary if we're in console mode
// to keep the current thread alive and for clean up
// when invoked externally by a user, an immediate re... | Runs the network monitor.
<p>
This method returns when the network monitor is closed.
@param l a link listener for monitor events
@throws KNXException on problems on creating monitor or during monitoring
public void run(LinkListener l) throws KNXException
{
createMonitor(l);
final Thread sh = registerShutdown... | 200 | 204 | 682 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bf2cc39e15015f3d3cb028fd133a80768a831b832b46d92b74efdee4c4cfd724 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
9a4820c09d8fb15322e498d6 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/NetworkMonitor.java | NetworkMonitor.createMonitor | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/NetworkMonitor.java#L247-L290 | train | java | Creates a new network monitor using the supplied options.
<p>
@throws KNXException on problems on monitor creation | private void createMonitor(LinkListener l) throws KNXException
{
final KNXMediumSettings medium = (KNXMediumSettings) options.get("medium");
if (options.containsKey("serial")) {
final String p = (String) options.get("serial");
try {
m = new KNXNetworkMonitorFT12(Integer.parseInt(p), medium);
}
... | Creates a new network monitor using the supplied options.
<p>
@throws KNXException on problems on monitor creation
private void createMonitor(LinkListener l) throws KNXException
{
final KNXMediumSettings medium = (KNXMediumSettings) options.get("medium");
if (options.containsKey("serial")) {
final String ... | 445 | 115 | 1,765 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 104091e1694cfd6d26a3ece28312cc1777b5413f44e5fbf1ed50174f3f339bbd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
8673388b02a4dae515bc10c5 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/NetworkMonitor.java | NetworkMonitor.parseOptions | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/NetworkMonitor.java#L325-L371 | train | java | Reads all options in the specified array, and puts relevant options into the
supplied options map.
<p>
On options not relevant for doing network monitoring (like <code>help</code>),
this method will take appropriate action (like showing usage information). On
occurrence of such an option, other options will be ignored.... | private static boolean parseOptions(String[] args, Map options)
{
if (args.length == 0) {
System.out.println("A tool for monitoring a KNX network");
showVersion();
System.out.println("type -help for help message");
return false;
}
// add defaults
options.put("port", new Integer(KNXnetIPCon... | Reads all options in the specified array, and puts relevant options into the
supplied options map.
<p>
On options not relevant for doing network monitoring (like <code>help</code>),
this method will take appropriate action (like showing usage information). On
occurrence of such an option, other options will be ignored.... | 544 | 671 | 1,557 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a7394f66b167ed19e576ca3e04f3962ebe5a13823cabb385107693f95f84f6c4 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
721592b0f5aaeb077cd814bf | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/StateFilter.java | StateFilter.init | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/StateFilter.java#L123-L128 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.buffer.Configuration.NetworkFilter#init
(tuwien.auto.calimero.buffer.Configuration) | public void init(Configuration c)
{
final DatapointModel m = c.getDatapointModel();
if (m != null)
createReferences(m);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.buffer.Configuration.NetworkFilter#init
(tuwien.auto.calimero.buffer.Configuration)
public void init(Configuration c)
{
final DatapointModel m = c.getDatapointModel();
if (m != null)
createReferences(m);
} | 68 | 126 | 135 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 399f31feeb6cc6b91b2edc97e9c18408eb55aaaa6d6a361d84866c06194ba61c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
eaf133466aa4103d2fc47b4b | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyVideoUtils.java | MyVideoUtils.getDimension | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyVideoUtils.java#L46-L50 | train | java | Returns the dimensions for the video
@param videoFile Video file
@return the dimensions
@throws IOException | public static Dimension getDimension(File videoFile) throws IOException {
try (FileInputStream fis = new FileInputStream(videoFile)) {
return getDimension(fis, new AtomicReference<ByteBuffer>());
}
} | Returns the dimensions for the video
@param videoFile Video file
@return the dimensions
@throws IOException
public static Dimension getDimension(File videoFile) throws IOException {
try (FileInputStream fis = new FileInputStream(videoFile)) {
return getDimension(fis, new AtomicReference<ByteBuffer>());
}... | 63 | 107 | 215 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2adb1588391682e53b82ea98dc56b11f10e2733910fb685951b92ab6df2c239c | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
ef1ec6c4702936fbcc0c4148 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyVideoUtils.java | MyVideoUtils.getDimension | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyVideoUtils.java#L59-L93 | train | java | Internal loop to fiond w/h headers
@param fis Stream
@param lastTkhdHolder Holder
@return Dimensions
@throws IOException | private static Dimension getDimension(InputStream fis, AtomicReference<ByteBuffer> lastTkhdHolder)
throws IOException {
while (fis.available() > 0) {
byte[] header = new byte[8];
fis.read(header);
long size = readUint32(header, 0);
String type = new String(header, 4, 4, "ISO-8859-1")... | Internal loop to fiond w/h headers
@param fis Stream
@param lastTkhdHolder Holder
@return Dimensions
@throws IOException
private static Dimension getDimension(InputStream fis, AtomicReference<ByteBuffer> lastTkhdHolder)
throws IOException {
while (fis.available() > 0) {
byte[] header = new byte[8];
... | 369 | 120 | 1,186 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0079ba61bd3b5cf8fe98546cd92cb3ac341a6d1ef7009905ec8e09ea82b62583 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
2d1c1e6b0356a9e859423c62 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.writeAddress | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L260-L265 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeAddress
(tuwien.auto.calimero.IndividualAddress) | public void writeAddress(IndividualAddress newAddress) throws KNXTimeoutException,
KNXLinkClosedException
{
tl.broadcast(false, Priority.SYSTEM, DataUnitBuilder.createAPDU(IND_ADDR_WRITE,
newAddress.toByteArray()));
} | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeAddress
(tuwien.auto.calimero.IndividualAddress)
public void writeAddress(IndividualAddress newAddress) throws KNXTimeoutException,
KNXLinkClosedException
{
tl.broadcast(false, Priority.SYSTEM, DataUnitBuilder.createAPDU(IND_ADDR_WRITE,
... | 86 | 118 | 231 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bd9b106c07478b2e9f9b0274bc675ac755c10c0605d2544dfab41b44add094dc | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4298b39691583ddddab8394e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.readAddress | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L270-L295 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readAddress(boolean) | public synchronized IndividualAddress[] readAddress(boolean oneAddressOnly)
throws KNXTimeoutException, KNXRemoteException, KNXLinkClosedException
{
final List l = new ArrayList();
try {
svcResponse = IND_ADDR_RESPONSE;
tl.broadcast(false, Priority.SYSTEM, DataUnitBuilder.createCompactAPDU(
IND_... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readAddress(boolean)
public synchronized IndividualAddress[] readAddress(boolean oneAddressOnly)
throws KNXTimeoutException, KNXRemoteException, KNXLinkClosedException
{
final List l = new ArrayList();
try {
svcResponse = IND_ADDR_RESPONSE... | 227 | 85 | 816 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c4e905f78c27a26d249eaaae8737e4faa123fa98ead139c01ee2ce30bf60dc9a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
598e45c2657f17084bbe4fb5 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.writeAddress | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L301-L313 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeAddress
(byte[], tuwien.auto.calimero.IndividualAddress) | public void writeAddress(byte[] serialNo, IndividualAddress newAddress)
throws KNXTimeoutException, KNXLinkClosedException
{
if (serialNo.length != 6)
throw new KNXIllegalArgumentException("length of serial number not 6 bytes");
final byte[] asdu = new byte[12];
for (int i = 0; i < 6; ++i)
asdu[i]... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeAddress
(byte[], tuwien.auto.calimero.IndividualAddress)
public void writeAddress(byte[] serialNo, IndividualAddress newAddress)
throws KNXTimeoutException, KNXLinkClosedException
{
if (serialNo.length != 6)
throw new KNXIllegalArgumentE... | 192 | 126 | 542 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | be5ec8977058cfeb27222962570c02a38bd649fdffb15032aacc72e490d4ce9c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
38da8febbc14c2fc90f6f922 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.readAddress | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L318-L332 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readAddress(byte[]) | public synchronized IndividualAddress readAddress(byte[] serialNo)
throws KNXTimeoutException, KNXRemoteException, KNXLinkClosedException
{
if (serialNo.length != 6)
throw new KNXIllegalArgumentException("length of serial number not 6 bytes");
try {
svcResponse = IND_ADDR_SN_RESPONSE;
tl.broadcas... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readAddress(byte[])
public synchronized IndividualAddress readAddress(byte[] serialNo)
throws KNXTimeoutException, KNXRemoteException, KNXLinkClosedException
{
if (serialNo.length != 6)
throw new KNXIllegalArgumentException("length of serial ... | 153 | 84 | 515 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 52d211327ed59d834ba0bc1309b126fdbb795193b01490416ed852ef4045b7d5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a7f0f651aabf13812273e5bc | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.writeDomainAddress | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L337-L343 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeDomainAddress(byte[]) | public void writeDomainAddress(byte[] domain) throws KNXTimeoutException,
KNXLinkClosedException
{
if (domain.length != 2 && domain.length != 6)
throw new KNXIllegalArgumentException("invalid length of domain address");
tl.broadcast(true, priority, DataUnitBuilder.createAPDU(DOA_WRITE, domain));
} | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeDomainAddress(byte[])
public void writeDomainAddress(byte[] domain) throws KNXTimeoutException,
KNXLinkClosedException
{
if (domain.length != 2 && domain.length != 6)
throw new KNXIllegalArgumentException("invalid length of domain addres... | 100 | 91 | 315 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 225772033322e38b9fb6848e7a00644be8b8f942cbc55917d2c0621261a4d413 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
066b35c50e9f9d07b973f868 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.readDomainAddress | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L348-L354 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readDomainAddress(boolean) | public synchronized List readDomainAddress(boolean oneDomainOnly)
throws KNXLinkClosedException, KNXInvalidResponseException, KNXTimeoutException
{
// we allow 6 bytes ASDU for RF domains
return makeDOAs(readBroadcast(priority, DataUnitBuilder.createCompactAPDU(
DOA_READ, null), DOA_RESPONSE, 6, 6, oneDo... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readDomainAddress(boolean)
public synchronized List readDomainAddress(boolean oneDomainOnly)
throws KNXLinkClosedException, KNXInvalidResponseException, KNXTimeoutException
{
// we allow 6 bytes ASDU for RF domains
return makeDOAs(readBroadcas... | 111 | 91 | 335 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0058a50be36543191cee7f8dddf45f0153b2106035aeb948abad2526635a3778 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1aa93f7627d349051f2d03b2 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.restart | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L396-L407 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#restart
(tuwien.auto.calimero.mgmt.Destination) | public void restart(Destination dst) throws KNXTimeoutException,
KNXLinkClosedException
{
final byte[] send = DataUnitBuilder.createCompactAPDU(RESTART, null);
if (dst.isConnectionOriented())
tl.connect(dst);
else
logger.error("doing restart in connectionless mode, " + dst.toString());
tl.sendD... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#restart
(tuwien.auto.calimero.mgmt.Destination)
public void restart(Destination dst) throws KNXTimeoutException,
KNXLinkClosedException
{
final byte[] send = DataUnitBuilder.createCompactAPDU(RESTART, null);
if (dst.isConnectionOriented())
... | 139 | 112 | 423 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ae7de51dc09130f98ca7dcd09df474e587960babe8bc78e24e2ef3f826c50b26 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
854ad8eff4306e3eb8c48426 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.readProperty | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L413-L438 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readProperty
(tuwien.auto.calimero.mgmt.Destination, int, int, int, int) | public byte[] readProperty(Destination dst, int objIndex, int propID, int start,
int elements) throws KNXTimeoutException, KNXRemoteException,
KNXDisconnectException, KNXLinkClosedException
{
if (objIndex < 0 || objIndex > 255 || propID < 0 || propID > 255 || start < 0
|| start > 0xFFF || elements < 0 ||... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readProperty
(tuwien.auto.calimero.mgmt.Destination, int, int, int, int)
public byte[] readProperty(Destination dst, int objIndex, int propID, int start,
int elements) throws KNXTimeoutException, KNXRemoteException,
KNXDisconnectException, KNXLinkC... | 403 | 137 | 1,162 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 92eba45edfe8551f3b274b23fda53c11f3896ee16d7e0d016549112f4f7b6e5e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
284ece863c1340b758749c80 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.writeProperty | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L444-L473 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeProperty
(tuwien.auto.calimero.mgmt.Destination, int, int, int, int, byte[]) | public void writeProperty(Destination dst, int objIndex, int propID, int start,
int elements, byte[] data) throws KNXTimeoutException, KNXRemoteException,
KNXDisconnectException, KNXLinkClosedException
{
if (objIndex < 0 || objIndex > 255 || propID < 0 || propID > 255 || start < 0
|| start > 0xFFF || dat... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeProperty
(tuwien.auto.calimero.mgmt.Destination, int, int, int, int, byte[])
public void writeProperty(Destination dst, int objIndex, int propID, int start,
int elements, byte[] data) throws KNXTimeoutException, KNXRemoteException,
KNXDisconne... | 516 | 146 | 1,535 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f525f7f0e88e5ab753df75f8400b139f4f444793f3c61f65c00908ddb298ccc7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b09437d725b15a9f08483731 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.readPropertyDesc | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L479-L495 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readPropertyDesc
(tuwien.auto.calimero.mgmt.Destination, int, int, int) | public byte[] readPropertyDesc(Destination dst, int objIndex, int propID,
int propIndex) throws KNXTimeoutException, KNXRemoteException,
KNXDisconnectException, KNXLinkClosedException
{
if (objIndex < 0 || objIndex > 255 || propID < 0 || propID > 255 || propIndex < 0
|| propIndex > 255)
throw new KNX... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readPropertyDesc
(tuwien.auto.calimero.mgmt.Destination, int, int, int)
public byte[] readPropertyDesc(Destination dst, int objIndex, int propID,
int propIndex) throws KNXTimeoutException, KNXRemoteException,
KNXDisconnectException, KNXLinkClosedEx... | 339 | 136 | 937 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a9ce7322b28d8fbf1b9aafe5a14561c94216edd832b8dc9096076e3736c15d34 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d9b8d79adc58f807f15394d5 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.readADC | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L501-L517 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readADC
(tuwien.auto.calimero.mgmt.Destination, int, int) | public int readADC(Destination dst, int channelNr, int repeat)
throws KNXTimeoutException, KNXDisconnectException, KNXRemoteException,
KNXLinkClosedException
{
if (channelNr < 0 || channelNr > 63 || repeat < 0 || repeat > 255)
throw new KNXIllegalArgumentException("ADC arguments out of range");
if (ds... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readADC
(tuwien.auto.calimero.mgmt.Destination, int, int)
public int readADC(Destination dst, int channelNr, int repeat)
throws KNXTimeoutException, KNXDisconnectException, KNXRemoteException,
KNXLinkClosedException
{
if (channelNr < 0 || chan... | 262 | 122 | 773 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e43c3bba9b1884496de2ede208ba98372b2d774cb5de0bca21fcb59dee730323 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
bf32e132805332bebbc48d8e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.readMemory | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L523-L544 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readMemory
(tuwien.auto.calimero.mgmt.Destination, int, int) | public byte[] readMemory(Destination dst, int startAddr, int bytes)
throws KNXTimeoutException, KNXDisconnectException, KNXRemoteException,
KNXLinkClosedException
{
if (startAddr < 0 || startAddr > 0xFFFF || bytes < 1 || bytes > 63)
throw new KNXIllegalArgumentException("argument value out of range");
... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#readMemory
(tuwien.auto.calimero.mgmt.Destination, int, int)
public byte[] readMemory(Destination dst, int startAddr, int bytes)
throws KNXTimeoutException, KNXDisconnectException, KNXRemoteException,
KNXLinkClosedException
{
if (startAddr < 0... | 305 | 125 | 918 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a9d9e4822df9414bcd262d488d6b01cdb051571d79d80794d685f7701f7b1201 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a4aff7b979c282b3206bf426 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.writeMemory | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L550-L580 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeMemory
(tuwien.auto.calimero.mgmt.Destination, int, byte[]) | public void writeMemory(Destination dst, int startAddr, byte[] data)
throws KNXDisconnectException, KNXTimeoutException, KNXRemoteException,
KNXLinkClosedException
{
if (startAddr < 0 || startAddr > 0xFFFF || data.length == 0 || data.length > 63)
throw new KNXIllegalArgumentException("argument value out ... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeMemory
(tuwien.auto.calimero.mgmt.Destination, int, byte[])
public void writeMemory(Destination dst, int startAddr, byte[] data)
throws KNXDisconnectException, KNXTimeoutException, KNXRemoteException,
KNXLinkClosedException
{
if (startAdd... | 440 | 129 | 1,344 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b22ebd2736bedf3441c0d0f36834b3b9539ccfa1261c486f1eca9364af94c4bc | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
49d732e12227c0cd9a2fc924 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.writeKey | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L609-L627 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeKey
(tuwien.auto.calimero.mgmt.Destination, int, byte[]) | public void writeKey(Destination dst, int level, byte[] key)
throws KNXTimeoutException, KNXDisconnectException, KNXRemoteException,
KNXLinkClosedException
{
// level 255 is free access
if (level < 0 || level > 254 || key.length != 4)
throw new KNXIllegalArgumentException(
"level out of range or ... | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#writeKey
(tuwien.auto.calimero.mgmt.Destination, int, byte[])
public void writeKey(Destination dst, int level, byte[] key)
throws KNXTimeoutException, KNXDisconnectException, KNXRemoteException,
KNXLinkClosedException
{
// level 255 is free ac... | 268 | 126 | 795 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4f7429418fd2c2e427ebcd9cf209ad24d78117ae1920fddf144ce89bb7837b20 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1a552a29d93c32c300e494dd | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java | ManagementClientImpl.detach | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/ManagementClientImpl.java#L640-L649 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#detach() | public KNXNetworkLink detach()
{
final KNXNetworkLink lnk = tl.detach();
if (lnk != null) {
logger.info("detached from " + lnk.getName());
LogManager.getManager().removeLogService(logger.getName());
}
detached = true;
return lnk;
} | /* (non-Javadoc)
@see tuwien.auto.calimero.mgmt.ManagementClient#detach()
public KNXNetworkLink detach()
{
final KNXNetworkLink lnk = tl.detach();
if (lnk != null) {
logger.info("detached from " + lnk.getName());
LogManager.getManager().removeLogService(logger.getName());
}
detached = true;
re... | 93 | 73 | 258 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2e0378b3d6f2cfaf993d9318091d5d523182d8a1785edd273c801db69bb185b9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.