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
5fe3871ee48bb02ce746edd4
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/SerialMessage.java
SerialMessage.calculateChecksum
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/SerialMessage.java#L205-L212
train
java
Calculates a checksum for the specified buffer. @param buffer the buffer to calculate. @return the checksum value.
private static byte calculateChecksum(byte[] buffer) { byte checkSum = (byte)0xFF; for (int i=1; i<buffer.length-1; i++) { checkSum = (byte) (checkSum ^ buffer[i]); } logger.trace(String.format("Calculated checksum = 0x%02X", checkSum)); return checkSum; }
Calculates a checksum for the specified buffer. @param buffer the buffer to calculate. @return the checksum value. private static byte calculateChecksum(byte[] buffer) { byte checkSum = (byte)0xFF; for (int i=1; i<buffer.length-1; i++) { checkSum = (byte) (checkSum ^ buffer[i]); } logger.trace(String.format...
104
114
270
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
863443fbb0349044b22a800cae41f4a8deb496d6cb3095f1e38023e703c089b0
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
2db542d3a048e0ce22f8823a
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/SerialMessage.java
SerialMessage.getMessageBuffer
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/SerialMessage.java#L230-L260
train
java
Gets the SerialMessage as a byte array. @return the message
public byte[] getMessageBuffer() { ByteArrayOutputStream resultByteBuffer = new ByteArrayOutputStream(); byte[] result; resultByteBuffer.write((byte)0x01); int messageLength = messagePayload.length + (this.messageClass == SerialMessageClass.SendData && this.messageType == SerialMessageType.Request ? 5...
Gets the SerialMessage as a byte array. @return the message public byte[] getMessageBuffer() { ByteArrayOutputStream resultByteBuffer = new ByteArrayOutputStream(); byte[] result; resultByteBuffer.write((byte)0x01); int messageLength = messagePayload.length + (this.messageClass == SerialMessageClass.SendD...
270
59
1,141
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d731723fedc4ee5595e87036fbb5aff9683563079c657ddcfbcd06572e3e964a
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
521fb481aa971d6c27532866
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/Settings.java
Settings.getLibraryHeader
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/Settings.java#L109-L120
train
java
Returns a default library header representation with general/usage information. <p> It includes stuff like the library name, library version, name and institute of the 'Vienna University of Technology' where the library was developed, and copyright. The returned information parts are divided using the newline ('\n') ch...
public static String getLibraryHeader(boolean verbose) { if (!verbose) return calimero + " version " + version; final StringBuffer buf = new StringBuffer(); buf.append(calimero).append(sep); buf.append("version ").append(version).append(sep); buf.append(tuwien).append(sep); buf.append(group).app...
Returns a default library header representation with general/usage information. <p> It includes stuff like the library name, library version, name and institute of the 'Vienna University of Technology' where the library was developed, and copyright. The returned information parts are divided using the newline ('\n') ch...
198
538
385
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
41bca2072a2564d0e0c6bc8ae2e9e1272294e992106581872d8b2103f233f6cc
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
53611dfe20547ea0f2fab8e9
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/Settings.java
Settings.getBundleListing
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/Settings.java#L137-L161
train
java
Returns a listing containing all library bundles stating the bundle's presence for use. <p> For loading a bundle, the default system class loader is used. A bundle is present if it can be loaded using the class loader, otherwise it is considered not available for use.<br> An available bundle entry starts with a '+' and...
public static String getBundleListing() { final StringBuffer buf = new StringBuffer(); buf.append(getBundle("log service", "tuwien.auto.calimero.log.LogService", 1) + sep); buf.append(getBundle("cEMI", "tuwien.auto.calimero.cemi.CEMI", 1)).append(sep); buf.append(getBundle("KNXnet/IP", "tuwien.aut...
Returns a listing containing all library bundles stating the bundle's presence for use. <p> For loading a bundle, the default system class loader is used. A bundle is present if it can be loaded using the class loader, otherwise it is considered not available for use.<br> An available bundle entry starts with a '+' and...
506
641
1,234
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
174fa889119df5e1c044ed179b450a866945f1cda91fe0d6cf6a9c218462b1f5
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
1fb852e1b9834398ad079598
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/Settings.java
Settings.main
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/Settings.java#L175-L184
train
java
This entry routine of the library prints information to the standard output stream (System.out), mainly for user information. <p> Recognized options for output: <ul> <li>no options: default library header information and bundle listing</li> <li>-v, --version: prints library name and version</li> </ul> @param args argu...
public static void main(String[] args) { if (args.length > 0 && (args[0].equals("--version") || args[0].equals("-v"))) out(getLibraryHeader(false)); else { out(getLibraryHeader(true)); out("available bundles:"); out(getBundleListing()); } }
This entry routine of the library prints information to the standard output stream (System.out), mainly for user information. <p> Recognized options for output: <ul> <li>no options: default library header information and bundle listing</li> <li>-v, --version: prints library name and version</li> </ul> @param args argu...
148
373
269
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
45d208f43459c2be38ea08408450f61d9b733c5a39565bc9ca64c3a1895586bc
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
6bab0e22239b614326075e69
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/Settings.java
Settings.getBundle
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/Settings.java#L188-L201
train
java
to check availability, then class name is truncated to bundle id
private static String getBundle(String friendlyName, String className, int truncate) { try { cl.loadClass(className); int start = className.length(); for (int i = 0; i < truncate; ++i) start = className.lastIndexOf('.', start - 1); final String bundle = className.substring(0, start); retur...
to check availability, then class name is truncated to bundle id private static String getBundle(String friendlyName, String className, int truncate) { try { cl.loadClass(className); int start = className.length(); for (int i = 0; i < truncate; ++i) start = className.lastIndexOf('.', start - 1); ...
147
64
550
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2fd1e4806fac6617915f04a5acf5a036b70aa60a5094446f971f874c37830f2c
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
4e8250557cae9ea5fe08fc16
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPRouter.java
KNXnetIPRouter.send
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPRouter.java#L193-L201
train
java
Sends a cEMI frame to the joined multicast group. <p> @param frame cEMI message to send @param mode arbitrary value, does not influence behavior, since routing is always a unconfirmed, nonblocking service
public void send(CEMI frame, BlockingMode mode) throws KNXConnectionClosedException { try { super.send(frame, NONBLOCKING); // we always succeed... setState(OK); } catch (final KNXTimeoutException e) {} }
Sends a cEMI frame to the joined multicast group. <p> @param frame cEMI message to send @param mode arbitrary value, does not influence behavior, since routing is always a unconfirmed, nonblocking service public void send(CEMI frame, BlockingMode mode) throws KNXConnectionClosedException { try { super.send(f...
108
205
229
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2f39478d1e3e81a90f60b341b13e3d9a31890acd08786ab095bf6c19c692e7c7
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
717396f4e91b6729674f702c
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPRouter.java
KNXnetIPRouter.setHopCount
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPRouter.java#L221-L231
train
java
Sets the default hop count (TTL) used in the IP header of encapsulated cEMI messages. <p> This value is used to limit the multicast geographically, although this is just a rough estimation. The hop count value is forwarded to the underlying multicast socket used for communication. @param hopCount hop count value, 0 &l...
public final void setHopCount(int hopCount) { if (hopCount < 0 || hopCount > 255) throw new KNXIllegalArgumentException("hop count out of range"); try { ((MulticastSocket) socket).setTimeToLive(hopCount); } catch (final IOException e) { logger.error("failed to set hop count", e); } }
Sets the default hop count (TTL) used in the IP header of encapsulated cEMI messages. <p> This value is used to limit the multicast geographically, although this is just a rough estimation. The hop count value is forwarded to the underlying multicast socket used for communication. @param hopCount hop count value, 0 &l...
170
339
315
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c688c53406be1a1f3b61d02e4257e7007c361a7d4b66dfd2977627d4ab1535c6
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
a42bad6ab3151e55e53aebdb
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPRouter.java
KNXnetIPRouter.handleService
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPRouter.java#L271-L290
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.ConnectionImpl#handleService (tuwien.auto.calimero.knxnetip.servicetype.KNXnetIPHeader, byte[], int)
void handleService(KNXnetIPHeader h, byte[] data, int offset) throws KNXFormatException { final int svc = h.getServiceType(); if (h.getVersion() != KNXNETIP_VERSION_10) close(ConnectionCloseEvent.INTERNAL, "protocol version changed", LogLevel.ERROR, null); else if (svc == KNXnetIPHeader.ROUTING_I...
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.ConnectionImpl#handleService (tuwien.auto.calimero.knxnetip.servicetype.KNXnetIPHeader, byte[], int) void handleService(KNXnetIPHeader h, byte[] data, int offset) throws KNXFormatException { final int svc = h.getServiceType(); if (h.getVersion() != KNXNETI...
247
152
766
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
49f531e17a2d4f42e87cd19a2e3da3ca22146f7547f4632e17ec8f97df9589ac
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
2eb9b5289becf8c27db5abb3
thorstenwagner/TraJ
src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFitLegacy.java
TrajectorySplineFitLegacy.calculateSpline
https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFitLegacy.java#L105-L495
train
java
Calculates a spline to a trajectory. Attention: The spline is fitted through a rotated version of the trajectory. To fit the spline the trajectory is rotated into its main direction. You can access this rotated trajectory by {@link #getRotatedTrajectory() getRotatedTrajectory}. @return The fitted spline
public PolynomialSplineFunction calculateSpline(){ /* * 1.Calculate the minimum bounding rectangle */ ArrayList<Point2D.Double> points = new ArrayList<Point2D.Double>(); for(int i = 0; i < t.size(); i++){ Point2D.Double p = new Point2D.Double(); p.setLocation(t.get(i).x, t.get(i).y); points.a...
Calculates a spline to a trajectory. Attention: The spline is fitted through a rotated version of the trajectory. To fit the spline the trajectory is rotated into its main direction. You can access this rotated trajectory by {@link #getRotatedTrajectory() getRotatedTrajectory}. @return The fitted spline public Polynom...
4,007
304
12,757
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ea21f3133df2e61b2e9f1530ddb95a706a4fc3cc5679e8bf75b8deeb1333044a
MIT
permissive
https://github.com/thorstenwagner/TraJ/blob/master/license.txt
3788d9fc1442bd50fdfd2de9
ow2-chameleon/fuchsia
importers/jax-ws/src/main/java/org/ow2/chameleon/fuchsia/importer/jaxws/JAXWSImporter.java
JAXWSImporter.useImportDeclaration
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/jax-ws/src/main/java/org/ow2/chameleon/fuchsia/importer/jaxws/JAXWSImporter.java#L116-L167
train
java
/*--------------------------* ImporterService methods * --------------------------
@Override protected void useImportDeclaration(ImportDeclaration importDeclaration) throws BinderException { LOG.debug("Create proxy" + importDeclaration.getMetadata()); JAXWSImportDeclarationWrapper pojo = JAXWSImportDeclarationWrapper.create(importDeclaration); //Try to load the class ...
/*--------------------------* ImporterService methods * -------------------------- @Override protected void useImportDeclaration(ImportDeclaration importDeclaration) throws BinderException { LOG.debug("Create proxy" + importDeclaration.getMetadata()); JAXWSImportDeclarationWrapper pojo = JAXWSImp...
341
83
1,935
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
1427765f93d5fe0d575825fae879a6be5efb83922243916eff2991b633286022
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
a1c25712c128d8cc4ec84830
ow2-chameleon/fuchsia
importers/jax-ws/src/main/java/org/ow2/chameleon/fuchsia/importer/jaxws/JAXWSImporter.java
JAXWSImporter.registerProxy
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/jax-ws/src/main/java/org/ow2/chameleon/fuchsia/importer/jaxws/JAXWSImporter.java#L172-L178
train
java
Utility method to register a proxy has a Service in OSGi.
protected ServiceRegistration registerProxy(Object objectProxy, Class clazz) { Dictionary<String, Object> props = new Hashtable<String, Object>(); ServiceRegistration registration; registration = context.registerService(clazz, objectProxy, props); return registration; }
Utility method to register a proxy has a Service in OSGi. protected ServiceRegistration registerProxy(Object objectProxy, Class clazz) { Dictionary<String, Object> props = new Hashtable<String, Object>(); ServiceRegistration registration; registration = context.registerService(clazz, objectProx...
65
57
307
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
215c1334b57198838705d7c9f63893ffae7b5d62d19e58866d6c8213ad69ca81
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
379fcbe9f0f261d89ce9cf4c
ow2-chameleon/fuchsia
importers/jax-ws/src/main/java/org/ow2/chameleon/fuchsia/importer/jaxws/JAXWSImporter.java
JAXWSImporter.denyImportDeclaration
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/jax-ws/src/main/java/org/ow2/chameleon/fuchsia/importer/jaxws/JAXWSImporter.java#L185-L195
train
java
Destroy the proxy & update the map containing the registration ref. @param importDeclaration
@Override protected void denyImportDeclaration(ImportDeclaration importDeclaration) { LOG.debug("CXFImporter destroy a proxy for " + importDeclaration); ServiceRegistration serviceRegistration = map.get(importDeclaration); serviceRegistration.unregister(); // set the importDeclarati...
Destroy the proxy & update the map containing the registration ref. @param importDeclaration @Override protected void denyImportDeclaration(ImportDeclaration importDeclaration) { LOG.debug("CXFImporter destroy a proxy for " + importDeclaration); ServiceRegistration serviceRegistration = map.get(im...
90
93
442
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
242929d3c990470f8088894780f82ffd0bc5f5a3a3bfa6b78abda5393ee35465
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
0df83faf9ef46bc1802eb639
usc/wechat-mp-sdk
wechat-mp-web/src/main/java/org/usc/wechat/mp/web/servlet/AccessServlet.java
AccessServlet.doGet
https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-web/src/main/java/org/usc/wechat/mp/web/servlet/AccessServlet.java#L42-L57
train
java
TODO please custom it.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { Signature signature = new Signature(); boolean hasRights = checkSignature(signature, request); if (hasRights) { log.info(...
TODO please custom it. @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { Signature signature = new Signature(); boolean hasRights = checkSignature(signature, request); if (hasRights) { ...
110
22
618
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ea321e5d55d7a25cb21cdda2347df806ac0b609e108b0b4fe8d715f4ad988b3f
Apache-2.0
permissive
https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt
984581f176cf13076f282638
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultElement.java
DefaultElement.getAttribute
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultElement.java#L112-L122
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.xml.Element#getAttribute(java.lang.String)
public final String getAttribute(String name) { synchronized (attributes) { for (final Iterator i = attributes.iterator(); i.hasNext();) { final Attribute a = (Attribute) i.next(); if (a.getName().equals(name)) return a.getValue(); } } return null; }
/* (non-Javadoc) @see tuwien.auto.calimero.xml.Element#getAttribute(java.lang.String) public final String getAttribute(String name) { synchronized (attributes) { for (final Iterator i = attributes.iterator(); i.hasNext();) { final Attribute a = (Attribute) i.next(); if (a.getName().equals(name)) ...
89
85
287
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
45cc4cc6633b3fa394ae2e69f10aa8cd9ef43bd82f6142fd271e76fa84e33008
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
2ba6b5893b4b64e5b3a7e79e
usc/wechat-mp-sdk
wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/platform/GroupUtil.java
GroupUtil.updateGroup
https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/platform/GroupUtil.java#L43-L49
train
java
TODO-Shunli: now update group always failed, tip system error, check later
public static JsonRtn updateGroup(License license, Group group) { if (group == null) { return JsonRtnUtil.buildFailureJsonRtn(JsonRtn.class, "missing group"); } return HttpUtil.postBodyRequest(WechatRequest.UPDATE_GROUP, license, new GroupWarpper(group), GroupJsonRtn.class); }
TODO-Shunli: now update group always failed, tip system error, check later public static JsonRtn updateGroup(License license, Group group) { if (group == null) { return JsonRtnUtil.buildFailureJsonRtn(JsonRtn.class, "missing group"); } return HttpUtil.postBodyRequest(WechatRequest....
93
74
318
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7943051e522ec2f791effc4c899fa10d47780b0de2648033cc65ecde845b686a
Apache-2.0
permissive
https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt
b613b9d49eae4eeb6ae0c10f
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogFileWriter.java
LogFileWriter.write
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogFileWriter.java#L265-L268
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.log.LogStreamWriter#write (java.lang.String, tuwien.auto.calimero.log.LogLevel, java.lang.String)
public void write(String logService, LogLevel level, String msg) { doFileWrite(logService, level, msg, null); }
/* (non-Javadoc) @see tuwien.auto.calimero.log.LogStreamWriter#write (java.lang.String, tuwien.auto.calimero.log.LogLevel, java.lang.String) public void write(String logService, LogLevel level, String msg) { doFileWrite(logService, level, msg, null); }
69
140
118
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3236126e8cf1f585125dc89e9311e995e75e7cc916ccc02e93c150c187ef3df7
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
f65f6e5678609141b70839b6
before/quality-check
modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/generator/ImmutableObjectGenerator.java
ImmutableObjectGenerator.generate
https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/generator/ImmutableObjectGenerator.java#L109-L128
train
java
The specified interface must not contain methods, that changes the state of this object itself. @param code source code of an interface which describes how to generate the <i>immutable</i> @param settings settings to generate code @return generated source code as string in a result wrapper
public static Result generate(@Nonnull final String code, @Nonnull final ImmutableSettings settings) { Check.notNull(code, "code"); final ImmutableSettings.Builder settingsBuilder = new ImmutableSettings.Builder(Check.notNull(settings, "settings")); final InterfaceAnalysis analysis = InterfaceAnalyzer.analyze(co...
The specified interface must not contain methods, that changes the state of this object itself. @param code source code of an interface which describes how to generate the <i>immutable</i> @param settings settings to generate code @return generated source code as string in a result wrapper public static Result genera...
264
291
1,148
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
277458504d966b44680d8c8d601bc69944d4dd91bcca2a5ccd9c772f463d4dcc
Apache-2.0
permissive
https://github.com/arouel/quality-check/blob/master/LICENSE.txt
7f604d0f3f650ca9b9aaad02
brunocvcunha/inutils4j
src/main/java/org/brunocvcunha/inutils4j/MyClasspathUtils.java
MyClasspathUtils.addJarToClasspath
https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyClasspathUtils.java#L44-L55
train
java
Add an URL to the given classloader @param loader ClassLoader @param url URL to add @throws IOException I/O Error @throws InvocationTargetException Invocation Error @throws IllegalArgumentException Illegal Argument @throws IllegalAccessException Illegal Access @throws SecurityException Security Constraint @throws NoSu...
public static void addJarToClasspath(ClassLoader loader, URL url) throws IOException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException { URLClassLoader sysloader = (URLClassLoader) loader; Class<?> sysclass = URLClassLoader.class; ...
Add an URL to the given classloader @param loader ClassLoader @param url URL to add @throws IOException I/O Error @throws InvocationTargetException Invocation Error @throws IllegalArgumentException Illegal Argument @throws IllegalAccessException Illegal Access @throws SecurityException Security Constraint @throws NoSu...
162
354
521
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9cd4068a7e2a6605cd884bdcc8a7b999cca3c70a6abd83bdaecbb560bb436a89
Apache-2.0
permissive
https://github.com/bvolpato/inutils4j/blob/master/LICENSE
b57ef6861df8f78662e00168
brunocvcunha/inutils4j
src/main/java/org/brunocvcunha/inutils4j/MyFileUtils.java
MyFileUtils.delete
https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyFileUtils.java#L116-L146
train
java
http://www.mkyong.com/java/how-to-delete-directory-in-java/
public static void delete(File file) throws IOException { if (file.isDirectory()) { // directory is empty, then delete it if (file.list().length == 0) { file.delete(); } else { // list all the directory contents String files[] = file.list(); for (String temp : f...
http://www.mkyong.com/java/how-to-delete-directory-in-java/ public static void delete(File file) throws IOException { if (file.isDirectory()) { // directory is empty, then delete it if (file.list().length == 0) { file.delete(); } else { // list all the directory contents ...
171
59
713
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
61f3328ea4f36a04c04eebc5861271538502a2750868157eb85700834f6f4bd6
Apache-2.0
permissive
https://github.com/bvolpato/inutils4j/blob/master/LICENSE
80fb4a87c8aab47b32d41378
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java
DataUnitBuilder.getAPDUService
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java#L93-L128
train
java
Returns the application layer service of a given protocol data unit. <p> @param apdu application layer protocol data unit @return APDU service code
public static int getAPDUService(byte[] apdu) { // high 4 bits of APCI final int apci4 = (apdu[0] & 0x03) << 2 | (apdu[1] & 0xC0) >> 6; // lowest 6 bits of APCI final int apci6 = apdu[1] & 0x3f; // group value codes if (apci4 == 0) { if (apci6 == 0) return 0; } else if (apci4 == 1) ...
Returns the application layer service of a given protocol data unit. <p> @param apdu application layer protocol data unit @return APDU service code public static int getAPDUService(byte[] apdu) { // high 4 bits of APCI final int apci4 = (apdu[0] & 0x03) << 2 | (apdu[1] & 0xC0) >> 6; // lowest 6 bits of APC...
411
148
928
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d7f5486dc50d104c9b9b8c7fc116bc2d286dc47caf924f570528a04210b6bed6
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
de0cb9e4d29c28036ac5f23d
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java
DataUnitBuilder.createAPDU
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java#L171-L182
train
java
Creates an application layer protocol data unit out of a service code and a service data unit. <p> The transport layer bits in the first byte (TL / AL control field) are set 0. For creating a compact APDU, refer to {@link #createCompactAPDU(int, byte[])}. @param service application layer service code @param asdu appli...
public static byte[] createAPDU(int service, byte[] asdu) { if (asdu.length > 254) throw new KNXIllegalArgumentException( "ASDU length exceeds maximum of 254 bytes"); final byte[] apdu = new byte[2 + asdu.length]; apdu[0] = (byte) ((service >> 8) & 0x03); apdu[1] |= (byte) service; for (int i ...
Creates an application layer protocol data unit out of a service code and a service data unit. <p> The transport layer bits in the first byte (TL / AL control field) are set 0. For creating a compact APDU, refer to {@link #createCompactAPDU(int, byte[])}. @param service application layer service code @param asdu appli...
236
412
393
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
251e1531c420e42b6fb7025c1cd226fe84bacf831a669e612b3dccb48e23d54f
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
5e9c931eb505307eb6e24fc3
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java
DataUnitBuilder.createCompactAPDU
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java#L197-L213
train
java
Creates a compact application layer protocol data unit out of a service code and a service data unit. <p> The transport layer bits in the first byte (TL / AL control field) are set 0. If the compact APDU shall not contain any ASDU information, <code>asdu</code> can be left <code>null</code>. @param service application...
public static byte[] createCompactAPDU(int service, byte[] asdu) { final byte[] apdu = new byte[(asdu != null && asdu.length > 0) ? 1 + asdu.length : 2]; if (apdu.length > 255) throw new KNXIllegalArgumentException( "APDU length exceeds maximum of 255 bytes"); apdu[0] = (byte) ((service >> 8) & ...
Creates a compact application layer protocol data unit out of a service code and a service data unit. <p> The transport layer bits in the first byte (TL / AL control field) are set 0. If the compact APDU shall not contain any ASDU information, <code>asdu</code> can be left <code>null</code>. @param service application...
332
483
569
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a8bd8a0261c7ca4206165157f871edf048fd69bd8bdd05a040a318e31609dc4d
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
c21f4b711765bdfe82e33a56
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java
DataUnitBuilder.extractASDU
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java#L247-L279
train
java
Returns a copy of the ASDU contained in the supplied APDU. <p> The application layer service data unit (ASDU) is the APDU with the application layer service code removed. @param apdu application layer protocol data unit for which to get the ASDU @return the ASDU as byte array
public static byte[] extractASDU(byte[] apdu) { final int svc = getAPDUService(apdu); int offset = 2; int mask = 0xff; // 0x40 A_GroupValue_Response-PDU // 0x80 A_GroupValue_Write-PDU if (svc == 0x40 || svc == 0x80) { // only adjust for optimized read.res and write if (apdu.length <= 2) { ...
Returns a copy of the ASDU contained in the supplied APDU. <p> The application layer service data unit (ASDU) is the APDU with the application layer service code removed. @param apdu application layer protocol data unit for which to get the ASDU @return the ASDU as byte array public static byte[] extractASDU(byte[] a...
417
277
874
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dd18457e89dba9c04beae78aaab8fed175239b83441a559f9f94edf7e340a077
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
489fa8997475848d03712e3a
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java
DataUnitBuilder.decode
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java#L295-L303
train
java
Decodes a protocol data unit into a textual representation. <p> Currently, the transport layer protocol control information (TPCI) and the application layer protocol control information (APCI) is decoded. Decoding might be extended in the future.<br> The optional KNX destination address helps to determine the exact tra...
public static String decode(byte[] tpdu, KNXAddress dst) { if (tpdu.length < 1) throw new KNXIllegalArgumentException("TPDU length too short"); final String s = decodeTPCI(tpdu[0] & 0xff, dst); if (tpdu.length > 1) return s + ", " + decodeAPCI(getAPDUService(tpdu)); return s; }
Decodes a protocol data unit into a textual representation. <p> Currently, the transport layer protocol control information (TPCI) and the application layer protocol control information (APCI) is decoded. Decoding might be extended in the future.<br> The optional KNX destination address helps to determine the exact tra...
203
550
302
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
debb5ae4e6344a803214d47eca1ed8c02f476f3c04888073236b12e4e64427a3
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
5bf122f2eaf2e3296aa458d2
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java
DataUnitBuilder.decodeTPCI
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/DataUnitBuilder.java#L315-L338
train
java
Decodes a transport layer protocol control information into a textual representation. <p> @param tpci transport layer protocol control information @param dst KNX destination address belonging to the tpci, might be <code>null</code> @return textual representation of TPCI
public static String decodeTPCI(int tpci, KNXAddress dst) { final int ctrl = tpci & 0xff; if ((ctrl & 0xFC) == 0) { if (dst == null) return "T-broadcast/group/ind"; if (dst.getRawAddress() == 0) return "T-broadcast"; if (dst instanceof GroupAddress) return "T-group"; return "T-ind...
Decodes a transport layer protocol control information into a textual representation. <p> @param tpci transport layer protocol control information @param dst KNX destination address belonging to the tpci, might be <code>null</code> @return textual representation of TPCI public static String decodeTPCI(int tpci, KNXAd...
294
271
703
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7e6d02c8153538bf21e8300f8e804b9730bd3059164ad95d14dc4b26a238f3af
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
cabc2a0842569d4c7a6e4dce
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/util/DeviceDIB.java
DeviceDIB.toByteArray
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/util/DeviceDIB.java#L344-L364
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.util.DIB#toByteArray()
public byte[] toByteArray() { final byte[] buf = super.toByteArray(); int i = 2; buf[i++] = (byte) knxmedium; buf[i++] = (byte) devicestatus; final byte[] addr = address.toByteArray(); buf[i++] = addr[0]; buf[i++] = addr[1]; buf[i++] = (byte) (projectInstallID >> 8); buf[i++] = (byte) proje...
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.util.DIB#toByteArray() public byte[] toByteArray() { final byte[] buf = super.toByteArray(); int i = 2; buf[i++] = (byte) knxmedium; buf[i++] = (byte) devicestatus; final byte[] addr = address.toByteArray(); buf[i++] = addr[0]; buf[i++] = addr[...
239
74
603
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e7e7d2cc4cfc8c94c493f1f1a21882f9baf4ccbc2cc594dcd75c4313383f2174
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
084919c3d160f683fb96901d
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java
TransportLayerImpl.destroyDestination
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java#L246-L260
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.mgmt.TransportLayer#destroyDestination (tuwien.auto.calimero.mgmt.Destination)
public void destroyDestination(Destination d) { // method invocation is idempotent synchronized (proxies) { final AggregatorProxy p = (AggregatorProxy) proxies.get(d.getAddress()); if (p == null) return; if (p.getDestination() == d) { proxies.remove(d.getAddress()); d.destroy(); }...
/* (non-Javadoc) @see tuwien.auto.calimero.mgmt.TransportLayer#destroyDestination (tuwien.auto.calimero.mgmt.Destination) public void destroyDestination(Destination d) { // method invocation is idempotent synchronized (proxies) { final AggregatorProxy p = (AggregatorProxy) proxies.get(d.getAddress()); ...
134
121
390
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ed4711b382479bd09ec48454b638f2cebcef41087f3fb8e2f4aa992aa8d200a1
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
88739172781e21dbcd0dcd4a
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java
TransportLayerImpl.connect
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java#L284-L298
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.mgmt.TransportLayer#connect (tuwien.auto.calimero.mgmt.Destination)
public void connect(Destination d) throws KNXTimeoutException, KNXLinkClosedException { final AggregatorProxy p = getProxy(d); if (!d.isConnectionOriented()) { logger.error("destination not connection oriented: " + d.getAddress()); return; } if (d.getState() != Destination.DISCONNECTED) return...
/* (non-Javadoc) @see tuwien.auto.calimero.mgmt.TransportLayer#connect (tuwien.auto.calimero.mgmt.Destination) public void connect(Destination d) throws KNXTimeoutException, KNXLinkClosedException { final AggregatorProxy p = getProxy(d); if (!d.isConnectionOriented()) { logger.error("destination not connec...
172
110
572
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d00466e374cf15f9df9d9090eb931cf1d519b2098ac09a55b9e475cf72da37ad
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
c600e6075708dac148cfef3f
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java
TransportLayerImpl.disconnect
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java#L304-L311
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.mgmt.TransportLayer#disconnect (tuwien.auto.calimero.mgmt.Destination)
public void disconnect(Destination d) throws KNXLinkClosedException { if (detached) throw new KNXIllegalStateException("TL detached"); if (d.getState() != Destination.DESTROYED && d.getState() != Destination.DISCONNECTED) disconnectIndicate(getProxy(d), true); }
/* (non-Javadoc) @see tuwien.auto.calimero.mgmt.TransportLayer#disconnect (tuwien.auto.calimero.mgmt.Destination) public void disconnect(Destination d) throws KNXLinkClosedException { if (detached) throw new KNXIllegalStateException("TL detached"); if (d.getState() != Destination.DESTROYED && d.getStat...
104
113
284
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dd2b40fb37017af3316d3d4127228aa446610339b1552b5589411077d1393dbe
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
13ec818718aa88ff4bbcb459
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java
TransportLayerImpl.sendData
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java#L365-L372
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.mgmt.TransportLayer#sendData (tuwien.auto.calimero.KNXAddress, tuwien.auto.calimero.Priority, byte[])
public void sendData(KNXAddress addr, Priority p, byte[] tsdu) throws KNXTimeoutException, KNXLinkClosedException { if (detached) throw new KNXIllegalStateException("TL detached"); tsdu[0] &= 0x03; lnk.sendRequestWait(addr, p, tsdu); }
/* (non-Javadoc) @see tuwien.auto.calimero.mgmt.TransportLayer#sendData (tuwien.auto.calimero.KNXAddress, tuwien.auto.calimero.Priority, byte[]) public void sendData(KNXAddress addr, Priority p, byte[] tsdu) throws KNXTimeoutException, KNXLinkClosedException { if (detached) throw new KNXIllegalStateExcepti...
121
144
255
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b48b13c94ef723173d2a0c1ffea1d8ecc3514a3adb55699015847ab92310882f
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
8bd80812a0bef0196eba9965
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java
TransportLayerImpl.fireFrameType
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/TransportLayerImpl.java#L572-L592
train
java
type 0 = broadcast, 1 = group, 2 = individual, 3 = connected
private void fireFrameType(CEMI frame, int type) { final FrameEvent e = new FrameEvent(this, frame); for (final Iterator i = listeners.iterator(); i.hasNext();) { final TransportListener l = (TransportListener) i.next(); try { if (type == 0) l.broadcast(e); else if (type == 1) l.gr...
type 0 = broadcast, 1 = group, 2 = individual, 3 = connected private void fireFrameType(CEMI frame, int type) { final FrameEvent e = new FrameEvent(this, frame); for (final Iterator i = listeners.iterator(); i.hasNext();) { final TransportListener l = (TransportListener) i.next(); try { if (type =...
171
60
575
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ac765a8e034457d9d39dd5fdbc364d432960c6cb2035a7a2c724c87c40ab57ab
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
4b5a06728fb360a1cfba035c
ow2-chameleon/fuchsia
core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/DeclarationRegistrationManager.java
DeclarationRegistrationManager.registerDeclaration
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/DeclarationRegistrationManager.java#L47-L64
train
java
Utility method to register an Declaration has a Service in OSGi. If you use it make sure to use unregisterDeclaration(...) to unregister the Declaration @param declaration the Declaration to register
public void registerDeclaration(T declaration) { synchronized (declarationsRegistered) { if (declarationsRegistered.containsKey(declaration)) { throw new IllegalStateException("The given Declaration has already been registered."); } Dictionary<String, Object>...
Utility method to register an Declaration has a Service in OSGi. If you use it make sure to use unregisterDeclaration(...) to unregister the Declaration @param declaration the Declaration to register public void registerDeclaration(T declaration) { synchronized (declarationsRegistered) { if (decla...
171
200
805
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
675eae64130d170e3116191734076ca20b8bbdad2843d5da5df0b7a8455e472d
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
23501f1f2a802326b9a94186
ow2-chameleon/fuchsia
core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/DeclarationRegistrationManager.java
DeclarationRegistrationManager.unregisterDeclaration
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/DeclarationRegistrationManager.java#L72-L82
train
java
Utility method to unregister an Declaration of OSGi. Use it only if you have used registerDeclaration(...) to register the Declaration @param declaration the Declaration to unregister
public void unregisterDeclaration(T declaration) { ServiceRegistration registration; synchronized (declarationsRegistered) { registration = declarationsRegistered.remove(declaration); if (registration == null) { throw new IllegalStateException("The given Declarati...
Utility method to unregister an Declaration of OSGi. Use it only if you have used registerDeclaration(...) to register the Declaration @param declaration the Declaration to unregister public void unregisterDeclaration(T declaration) { ServiceRegistration registration; synchronized (declarationsRegiste...
104
184
479
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3edb8db3d5349b1d1a48269d1cfd1ca9a3eac77b5a93170388f2793c375cc905
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
f961e8f79231ce91fa7c283f
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java
ZWaveNode.resetResendCount
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java#L339-L344
train
java
Resets the resend counter and possibly resets the node stage to DONE when previous initialization was complete.
public void resetResendCount() { this.resendCount = 0; if (this.initializationComplete) this.nodeStage = NodeStage.NODEBUILDINFO_DONE; this.lastUpdated = Calendar.getInstance().getTime(); }
Resets the resend counter and possibly resets the node stage to DONE when previous initialization was complete. public void resetResendCount() { this.resendCount = 0; if (this.initializationComplete) this.nodeStage = NodeStage.NODEBUILDINFO_DONE; this.lastUpdated = Calendar.getInstance().getTime(); }
70
111
199
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a6332ff8a2d61e9282814417849463f2776a205e462026072c9b8c6bf89132b3
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
2808306054ec6c2a04c6fb9b
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java
ZWaveNode.addCommandClass
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java#L387-L399
train
java
Adds a command class to the list of supported command classes by this node. Does nothing if command class is already added. @param commandClass the command class instance to add.
public void addCommandClass(ZWaveCommandClass commandClass) { ZWaveCommandClass.CommandClass key = commandClass.getCommandClass(); if (!supportedCommandClasses.containsKey(key)) { supportedCommandClasses.put(key, commandClass); if (commandClass instanceof ZWaveEventListener) this.controller.addEve...
Adds a command class to the list of supported command classes by this node. Does nothing if command class is already added. @param commandClass the command class instance to add. public void addCommandClass(ZWaveCommandClass commandClass) { ZWaveCommandClass.CommandClass key = commandClass.getCommandClass(); i...
124
178
432
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
cec7ccc76018c8311808b9325b98f2ed5dadecc97c43871b999fcbfdf1398ea4
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
50bb6942a0c1b228f25d4c23
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java
ZWaveNode.resolveCommandClass
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java#L413-L440
train
java
Resolves a command class for this node. First endpoint is checked. If endpoint == 1 or (endpoint != 1 and version of the multi instance command == 1) then return a supported command class on the node itself. If endpoint != 1 and version of the multi instance command == 2 then first try command classes of endpoints. If ...
public ZWaveCommandClass resolveCommandClass(ZWaveCommandClass.CommandClass commandClass, int endpointId) { if (commandClass == null) return null; ZWaveMultiInstanceCommandClass multiInstanceCommandClass = (ZWaveMultiInstanceCommandClass)supportedCommandClasses.get(ZWaveCommandClass.CommandClass.MULTI_INSTAN...
Resolves a command class for this node. First endpoint is checked. If endpoint == 1 or (endpoint != 1 and version of the multi instance command == 1) then return a supported command class on the node itself. If endpoint != 1 and version of the multi instance command == 2 then first try command classes of endpoints. If ...
349
586
959
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
35214426966cf951a4f2ace03c8099a7ce5ce22b041a7199396851b7b1edafdc
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
7585f1d3bacd77c416f62168
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java
ZWaveNode.advanceNodeStage
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java#L450-L590
train
java
Advances the initialization stage for this node. Every node follows a certain path through it's initialization phase. These stages are visited one by one to finally end up with a completely built node structure through querying the controller / node. TODO: Handle the rest of the node stages
public void advanceNodeStage() { this.setQueryStageTimeStamp(Calendar.getInstance().getTime()); switch (this.nodeStage) { case NODEBUILDINFO_EMPTYNODE: try { this.setNodeStage(ZWaveNode.NodeStage.NODEBUILDINFO_PROTOINFO); this.controller.identifyNode(this.nodeId); } catch (SerialInterfaceExcept...
Advances the initialization stage for this node. Every node follows a certain path through it's initialization phase. These stages are visited one by one to finally end up with a completely built node structure through querying the controller / node. TODO: Handle the rest of the node stages public void advanceNodeStag...
1,528
291
6,641
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
020db799ba21c27a32275e081030ed1654deb789646b6be8a9a1c79594d0fdcd
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
b5837eaa57a7b940972da636
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java
ZWaveNode.encapsulate
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveNode.java#L602-L640
train
java
Encapsulates a serial message for sending to a multi-instance instance/ multi-channel endpoint on a node. @param serialMessage the serial message to encapsulate @param commandClass the command class used to generate the message. @param endpointId the instance / endpoint to encapsulate the message for @param node the de...
public SerialMessage encapsulate(SerialMessage serialMessage, ZWaveCommandClass commandClass, int endpointId) { ZWaveMultiInstanceCommandClass multiInstanceCommandClass; if (serialMessage == null) return null; // no encapsulation necessary. if (endpointId == 1 && commandClass.getInstances() == 1 &&...
Encapsulates a serial message for sending to a multi-instance instance/ multi-channel endpoint on a node. @param serialMessage the serial message to encapsulate @param commandClass the command class used to generate the message. @param endpointId the instance / endpoint to encapsulate the message for @param node the de...
401
386
1,401
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
285a27ffa650ca79b618f075f35ebf9d8449ea997baf0f77e30bae4bd70ba031
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
44728e415943718056612ef2
usc/wechat-mp-sdk
wechat-mp-web/src/main/java/org/usc/wechat/mp/web/util/WebUtil.java
WebUtil.getPostString
https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-web/src/main/java/org/usc/wechat/mp/web/util/WebUtil.java#L35-L47
train
java
get string from post stream @param is @param encoding @return
public static String getPostString(InputStream is, String encoding) { try { StringWriter sw = new StringWriter(); IOUtils.copy(is, sw, encoding); return sw.toString(); } catch (IOException e) { // no op return null; } finally { ...
get string from post stream @param is @param encoding @return public static String getPostString(InputStream is, String encoding) { try { StringWriter sw = new StringWriter(); IOUtils.copy(is, sw, encoding); return sw.toString(); } catch (IOException e) { ...
85
62
366
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4577fcbb043daeabd9ac0d5cb71155a1f4668c07c12030794588f049db493a41
Apache-2.0
permissive
https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt
ac046d86fce06ff74cc10fec
usc/wechat-mp-sdk
wechat-mp-web/src/main/java/org/usc/wechat/mp/web/util/WebUtil.java
WebUtil.outputString
https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-web/src/main/java/org/usc/wechat/mp/web/util/WebUtil.java#L55-L65
train
java
response simple String @param response @param obj
public static void outputString(final HttpServletResponse response, final Object obj) { try { response.setContentType("text/javascript"); response.setCharacterEncoding("utf-8"); disableCache(response); response.getWriter().write(obj.toString()); respon...
response simple String @param response @param obj public static void outputString(final HttpServletResponse response, final Object obj) { try { response.setContentType("text/javascript"); response.setCharacterEncoding("utf-8"); disableCache(response); response.g...
80
50
435
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
62389142e15eedf5aeb90dd82f966bb244259fb16e6766519f952fd32a26ba42
Apache-2.0
permissive
https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt
116b3e54ab455886f3f684f9
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorString.java
DPTXlatorString.getData
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorString.java#L158-L217
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int)
public byte[] getData(byte[] dst, int offset) { final int items = Math.min(data.length, dst.length - offset) / stringLength; final int end = items * stringLength; if (end == 0) logger.error("destination range has to be multiple of 14 bytes " + "for KNX strings"); for (int i = 0; i < end; ++i) ...
/* (non-Javadoc) @see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int) public byte[] getData(byte[] dst, int offset) { final int items = Math.min(data.length, dst.length - offset) / stringLength; final int end = items * stringLength; if (end == 0) logger.error("destination range has to be m...
538
83
1,716
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
62e4032625a48036df8e7673260c3469239864a3b8b1e3b698ddc5742096592e
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
79ece02f2234b3042169aa1d
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBinarySwitchCommandClass.java
ZWaveBinarySwitchCommandClass.handleApplicationCommandRequest
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBinarySwitchCommandClass.java#L102-L133
train
java
{@inheritDoc}
@Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Switch Binary Request"); logger.debug(String.format("Received Switch Binary Request for Node ID = %d", this.getNode().getNodeId())); int command = serialMessage.getM...
{@inheritDoc} @Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Switch Binary Request"); logger.debug(String.format("Received Switch Binary Request for Node ID = %d", this.getNode().getNodeId())); int command = ser...
308
13
1,314
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6ea83260d729c3a0a3eb8ac3a855a8fec75cdd8854daeec2d882a2c64caab2ef
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
7bcd9b72ac264effc0a18e00
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/medium/RFSettings.java
RFSettings.setDomainAddress
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/medium/RFSettings.java#L124-L132
train
java
Sets a new domain address. <p> @param domain byte array containing the domain address to use in KNX messages, address is given in network byte order, <code>domain.length</code> = 6, supplying <code>null</code> defaults to the broadcast domain
public final synchronized void setDomainAddress(final byte[] domain) { if (domain == null) doa = broadcastDomain; else if (domain.length != 6) throw new KNXIllegalArgumentException("invalid length of domain address"); else doa = (byte[]) domain.clone(); }
Sets a new domain address. <p> @param domain byte array containing the domain address to use in KNX messages, address is given in network byte order, <code>domain.length</code> = 6, supplying <code>null</code> defaults to the broadcast domain public final synchronized void setDomainAddress(final byte[] domain) { ...
123
243
280
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
39f845fc224c1dc53467ee08a26e9ce801d725bd4a726ae8ed79e78affeee903
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
c534245a17f6cf2d6703e9f3
thorstenwagner/TraJ
src/main/java/de/biomedical_imaging/traj/math/RadiusGyrationTensor2D.java
RadiusGyrationTensor2D.getRadiusOfGyrationTensor
https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traj/math/RadiusGyrationTensor2D.java#L56-L90
train
java
Calculates the radius of gyration tensor according to formula (6.3) in ELEMENTS OF THE RANDOM WALK by Rudnick and Gaspari @return Radius of gyration tensor
public static Array2DRowRealMatrix getRadiusOfGyrationTensor(Trajectory t){ double meanx =0; double meany =0; for(int i = 0; i < t.size(); i++){ meanx+= t.get(i).x; meany+= t.get(i).y; } meanx = meanx/t.size(); meany = meany/t.size(); double e11 = 0; double e12 = 0; double e21 = 0; double e...
Calculates the radius of gyration tensor according to formula (6.3) in ELEMENTS OF THE RANDOM WALK by Rudnick and Gaspari @return Radius of gyration tensor public static Array2DRowRealMatrix getRadiusOfGyrationTensor(Trajectory t){ double meanx =0; double meany =0; for(int i = 0; i < t.size(); i++){ meanx+=...
372
157
830
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f9d84f36580cbda20fe77d6419029c68cd23356a8dc2f1d402ceb8c2f5a9119f
MIT
permissive
https://github.com/thorstenwagner/TraJ/blob/master/license.txt
5b67e4506c0f8c9246559f8d
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java
DPTXlatorDateTime.setDate
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java#L300-L305
train
java
Sets year, month and day of month information of the first date/time item. <p> This method does not reset other item data or discard other translation items. @param year year value, 1900 &lt;= year &lt;= 2155 @param month month value, 1 &lt;= month &lt;= 12 @param day day value, 1 &lt;= day &lt;= 31
public final void setDate(int year, int month, int day) { set(data, 0, YEAR, year); set(data, 0, MONTH, month); set(data, 0, DAY, day); }
Sets year, month and day of month information of the first date/time item. <p> This method does not reset other item data or discard other translation items. @param year year value, 1900 &lt;= year &lt;= 2155 @param month month value, 1 &lt;= month &lt;= 12 @param day day value, 1 &lt;= day &lt;= 31 public final void...
141
301
150
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7ddc2f44348f5ad3601d9d492cea8c44910b8aaf29f0e5df2379eec9c86caef4
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
1174c2d3d163d650be687b3a
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java
DPTXlatorDateTime.setValue
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java#L434-L452
train
java
Sets the date/time for the first date/time item using UTC millisecond information. <p> Following fields are set: year, month, day, day of week, hour, minute, second, daylight time. All according fields are set to used state.<br> The <code>value</code> is interpreted by a calendar obtained by {@link Calendar#getInstance...
public final void setValue(long milliseconds) { initCalendar(); synchronized (c) { c.clear(); c.setTimeInMillis(milliseconds); data = new short[8]; set(data, 0, YEAR, c.get(Calendar.YEAR)); set(data, 0, MONTH, c.get(Calendar.MONTH) + 1); set(data, 0, DAY, c.get(Calendar.DAY_OF_MONTH)); ...
Sets the date/time for the first date/time item using UTC millisecond information. <p> Following fields are set: year, month, day, day of week, hour, minute, second, daylight time. All according fields are set to used state.<br> The <code>value</code> is interpreted by a calendar obtained by {@link Calendar#getInstance...
320
479
699
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9d2c6bcacc8e830f4b07aa1a5cb104b38492052623a0c2e9e70602bd5bf5c33b
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
a9c394a6629ad537ca4b5114
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java
DPTXlatorDateTime.setDateTimeFlag
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java#L489-L499
train
java
Sets date/time information for the given field of the first date/time item. <p> Allowed fields are {@link #CLOCK_FAULT}, {@link #CLOCK_SYNC}, {@link #WORKDAY} and {@link #DAYLIGHT}.<br> This method does not reset other item data or discard other translation items. @param field field number @param value <code>true</cod...
public final void setDateTimeFlag(int field, boolean value) { if (field == CLOCK_SYNC) { setBitEx(0, QUALITY, value); return; } final int f = field - WORKDAY; if (f < 0 || f >= FLAG_MASKS.length) throw new KNXIllegalArgumentException("illegal field"); setBit(0, FLAG_MASKS[f], value); }
Sets date/time information for the given field of the first date/time item. <p> Allowed fields are {@link #CLOCK_FAULT}, {@link #CLOCK_SYNC}, {@link #WORKDAY} and {@link #DAYLIGHT}.<br> This method does not reset other item data or discard other translation items. @param field field number @param value <code>true</cod...
183
379
317
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8c0fea44ceeb32067a23d533da6dbcb37a7c950f5f0060d260eeafbe53309cdb
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
9bc7fe92406467a5cc7e01c1
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java
DPTXlatorDateTime.isValidField
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java#L579-L584
train
java
Returns whether a field is valid, i.e. supported and used for date/time information. <p> Only data of valid fields are required to be set or examined. A field set to not valid shall be ignored, it is not supported and contains no valid data.<br> Possible fields allowed to be set valid or not valid are {@link #YEAR}, {@...
public final boolean isValidField(int field) { if (field < 0 || field >= FIELD_MASKS.length) throw new KNXIllegalArgumentException("illegal field"); return !getBit(0, FIELD_MASKS[field]); }
Returns whether a field is valid, i.e. supported and used for date/time information. <p> Only data of valid fields are required to be set or examined. A field set to not valid shall be ignored, it is not supported and contains no valid data.<br> Possible fields allowed to be set valid or not valid are {@link #YEAR}, {@...
176
506
203
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8761267376d5f52fb44767ff92cd7ffe7f38f96158145fd4b25d6504e1f88da0
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
e9b57ad925867c5bb22f5c9a
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java
DPTXlatorDateTime.getData
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDateTime.java#L655-L937
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) & ~7; for (int i = 0; i < end; ++i) dst[offset + i] = (byte) data[i]; return dst; } /** * Specifies the formatting to use for date/time string representations returned by * the translato...
/* (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) & ~7; for (int i = 0; i < end; ++i) dst[offset + i] = (byte) data[i]; return dst; } /** * Specifies the ...
2,621
83
8,811
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
678463be9dd4bab6a770ab58dc9d2ad1b2c6c32d091ffb7fdf1838b540377cff
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
3d716bc61da192a027334dcb
thorstenwagner/TraJ
src/main/java/de/biomedical_imaging/traJ/StokesEinsteinConverter.java
StokesEinsteinConverter.convert
https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/StokesEinsteinConverter.java#L44-L46
train
java
Converters the diffusion coefficient to hydrodynamic diameter and vice versa @param value Diffusion coefficient in [m^2 s^-1] or hydrodynamic diameter in [m] @param temperatur Temperatur in [Kelvin] @param viscosity Viscosity in [kg m^-1 s^-1] @return Hydrodynmaic diameter [m] / diffusion coefficient [m^2 s^-1]
public double convert(double value, double temperatur, double viscosity){ return temperatur*kB / (Math.PI*viscosity*value); }
Converters the diffusion coefficient to hydrodynamic diameter and vice versa @param value Diffusion coefficient in [m^2 s^-1] or hydrodynamic diameter in [m] @param temperatur Temperatur in [Kelvin] @param viscosity Viscosity in [kg m^-1 s^-1] @return Hydrodynmaic diameter [m] / diffusion coefficient [m^2 s^-1] public...
111
312
128
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4003b223f4029f75d3fef47cbafde7e5c56d8cfb6df6a6b34871479ba3258700
MIT
permissive
https://github.com/thorstenwagner/TraJ/blob/master/license.txt
89e71f6c68d9a429ac7eff3a
thorstenwagner/TraJ
src/main/java/de/biomedical_imaging/traJ/StokesEinsteinConverter.java
StokesEinsteinConverter.ViscosityByAndradeEquation
https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/StokesEinsteinConverter.java#L54-L99
train
java
Calculates the viscosity for different solvent in dependence from the temperatur [k]. Please see https://de.wikipedia.org/wiki/Andrade-Gleichung @param temperatur Temperatur in Kelvin [K] @return Viscosity in [kg m^-1 s^-1]
public static double ViscosityByAndradeEquation(double temperatur, SOLVENT s){ double res = 0; double a; double b; switch (s) { case WATER: if(temperatur<274 || temperatur>373){ throw new IllegalArgumentException("The andrade equation can not be applied for this solvent/temperatur combination."); } ...
Calculates the viscosity for different solvent in dependence from the temperatur [k]. Please see https://de.wikipedia.org/wiki/Andrade-Gleichung @param temperatur Temperatur in Kelvin [K] @return Viscosity in [kg m^-1 s^-1] public static double ViscosityByAndradeEquation(double temperatur, SOLVENT s){ double res = 0...
452
223
1,302
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dc9a0d3b487894e6d6136f1fc02284781c239764b411fe91f844f8a8fe97ff62
MIT
permissive
https://github.com/thorstenwagner/TraJ/blob/master/license.txt
0353514978644d30f352b784
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/DescriptionResponse.java
DescriptionResponse.getStructLength
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/DescriptionResponse.java#L180-L186
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#getStructLength()
short getStructLength() { int len = device.getStructLength() + suppfam.getStructLength(); if (mfr != null) len += mfr.getStructLength(); return (short) len; }
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#getStructLength() short getStructLength() { int len = device.getStructLength() + suppfam.getStructLength(); if (mfr != null) len += mfr.getStructLength(); return (short) len; }
77
93
175
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6e8d9a7ca7bf9b1549f691109271c7cdde49016cc50bb85d657e3cda235566bd
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
af6973533e250413a621eb6b
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/DescriptionResponse.java
DescriptionResponse.toByteArray
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/DescriptionResponse.java#L192-L203
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray (java.io.ByteArrayOutputStream)
byte[] toByteArray(ByteArrayOutputStream os) { byte[] buf = device.toByteArray(); os.write(buf, 0, buf.length); buf = suppfam.toByteArray(); os.write(buf, 0, buf.length); if (mfr != null) { buf = mfr.toByteArray(); os.write(buf, 0, buf.length); } return os.toByteArray(); }
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray (java.io.ByteArrayOutputStream) byte[] toByteArray(ByteArrayOutputStream os) { byte[] buf = device.toByteArray(); os.write(buf, 0, buf.length); buf = suppfam.toByteArray(); os.write(buf, 0, buf.length); if (mfr != ...
118
119
306
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c312bc7eff2b6b706f8958c34b64c2ffc742feed68969aad9246f818bcb2b706
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
19ea7fe07ce30dce04f314f7
brunocvcunha/inutils4j
src/main/java/org/brunocvcunha/inutils4j/reflection/MyReflectionUtils.java
MyReflectionUtils.buildInstanceForMap
https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/reflection/MyReflectionUtils.java#L48-L52
train
java
Builds a instance of the class for a map containing the values, without specifying the handler for differences @param clazz The class to build instance @param values The values map @return The instance @throws InstantiationException Error instantiating @throws IllegalAccessException Access error @throws IntrospectionE...
public static <T> T buildInstanceForMap(Class<T> clazz, Map<String, Object> values) throws InstantiationException, IllegalAccessException, IntrospectionException, IllegalArgumentException, InvocationTargetException { return buildInstanceForMap(clazz, values, new MyDefaultReflectionDifferenceHandler()); ...
Builds a instance of the class for a map containing the values, without specifying the handler for differences @param clazz The class to build instance @param values The values map @return The instance @throws InstantiationException Error instantiating @throws IllegalAccessException Access error @throws IntrospectionE...
136
447
323
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4d4d1f1f1e6d15465e59580440cf9411378ca136ca9d3087ba4ad814af23a7dc
Apache-2.0
permissive
https://github.com/bvolpato/inutils4j/blob/master/LICENSE
df26d2f18c222058efadf160
brunocvcunha/inutils4j
src/main/java/org/brunocvcunha/inutils4j/reflection/MyReflectionUtils.java
MyReflectionUtils.buildInstanceForMap
https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/reflection/MyReflectionUtils.java#L68-L106
train
java
Builds a instance of the class for a map containing the values @param clazz Class to build @param values Values map @param differenceHandler The difference handler @return The created instance @throws InstantiationException Error instantiating @throws IllegalAccessException Access error @throws IntrospectionException ...
public static <T> T buildInstanceForMap(Class<T> clazz, Map<String, Object> values, MyReflectionDifferenceHandler differenceHandler) throws InstantiationException, IllegalAccessException, IntrospectionException, IllegalArgumentException, InvocationTargetException { log.debug("Building new instance of C...
Builds a instance of the class for a map containing the values @param clazz Class to build @param values Values map @param differenceHandler The difference handler @return The created instance @throws InstantiationException Error instantiating @throws IllegalAccessException Access error @throws IntrospectionException ...
345
438
1,341
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0cf500b8cf481899dc5d97522317c9f74fd72ea1825980deddc41a39956a7580
Apache-2.0
permissive
https://github.com/bvolpato/inutils4j/blob/master/LICENSE
3f799b154abd67df8108dc66
brunocvcunha/inutils4j
src/main/java/org/brunocvcunha/inutils4j/reflection/MyReflectionUtils.java
MyReflectionUtils.getClosestAnnotation
https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/reflection/MyReflectionUtils.java#L116-L128
train
java
Get the closest annotation for a method (inherit from class) @param method method @param typeOfT type of annotation inspected @return annotation instance
public static <T extends Annotation> T getClosestAnnotation(Method method, Class<T> typeOfT) { T annotation = method.getAnnotation(typeOfT); if (annotation == null) { Class<?> clazzToIntrospect = method.getDeclaringClass(); while (annotation == null && clazzToIntrospect != null) { annotatio...
Get the closest annotation for a method (inherit from class) @param method method @param typeOfT type of annotation inspected @return annotation instance public static <T extends Annotation> T getClosestAnnotation(Method method, Class<T> typeOfT) { T annotation = method.getAnnotation(typeOfT); if (annotation ...
137
154
470
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7d003bffc307664c7182ab9649e7162489aa7d9cc0be16c3732e6f1d8ea687f2
Apache-2.0
permissive
https://github.com/bvolpato/inutils4j/blob/master/LICENSE
f492322c1a137f43ca39871a
ow2-chameleon/fuchsia
bases/protobuffer/cxf-protobuf/src/main/java/com/google/code/cxf/protobuf/ProtobufServerFactoryBean.java
ProtobufServerFactoryBean.createEndpointInfo
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/protobuffer/cxf-protobuf/src/main/java/com/google/code/cxf/protobuf/ProtobufServerFactoryBean.java#L162-L193
train
java
/* EndpointInfo contains information form WSDL's physical part such as endpoint address, binding, transport etc. For JAX-RS based EndpointInfo, as there is no WSDL, these information are set manually, eg, default transport is http, binding is JAX-RS binding, endpoint address is from server mainline.
protected EndpointInfo createEndpointInfo() throws BusException { String transportId = getTransportId(); if (transportId == null && getAddress() != null) { DestinationFactory df = getDestinationFactory(); if (df == null) { DestinationFactoryManager dfm = getBus()....
/* EndpointInfo contains information form WSDL's physical part such as endpoint address, binding, transport etc. For JAX-RS based EndpointInfo, as there is no WSDL, these information are set manually, eg, default transport is http, binding is JAX-RS binding, endpoint address is from server mainline. protected Endpoint...
288
300
1,117
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
1baaf4e39bb5db299cb100f91aa29671b65b8254882714c2d6b5a3e4f4a0bf5e
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
c1bf84fc12d6c98ca0d995d9
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiLevelSensorCommandClass.java
ZWaveMultiLevelSensorCommandClass.handleApplicationCommandRequest
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiLevelSensorCommandClass.java#L108-L148
train
java
{@inheritDoc}
@Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Sensor Multi Level Request"); logger.debug(String.format( "Received Sensor Multi Level Request for Node ID = %d", this .getNode().getNodeId())); int comm...
{@inheritDoc} @Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Sensor Multi Level Request"); logger.debug(String.format( "Received Sensor Multi Level Request for Node ID = %d", this .getNode().getNodeId()...
383
13
1,704
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d7b3688b63ffd2841d8dae81302997396f381292f4be9411438fbea6843fa7cd
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
70401fd46eb9a9389c1665e6
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/Priority.java
Priority.get
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/Priority.java#L112-L123
train
java
Returns the priority of the supplied priority value code. <p> @param value priority value code, 0 &lt;= value &lt;= 3 @return the corresponding priority object
public static Priority get(int value) { if (value == 1) return NORMAL; if (value == 0) return SYSTEM; if (value == 3) return LOW; if (value == 2) return URGENT; throw new KNXIllegalArgumentException("invalid priority value"); }
Returns the priority of the supplied priority value code. <p> @param value priority value code, 0 &lt;= value &lt;= 3 @return the corresponding priority object public static Priority get(int value) { if (value == 1) return NORMAL; if (value == 0) return SYSTEM; if (value == 3) return LOW; if...
110
160
262
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3b1893e2ca8584f982daaa0bfce102bf85e8586609ab53cfa4be0c32b6a6569f
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
312252cd65ef3d69311b78d7
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/DatapointMap.java
DatapointMap.add
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/DatapointMap.java#L121-L129
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.datapoint.DatapointModel#add (tuwien.auto.calimero.datapoint.Datapoint)
public void add(Datapoint dp) { synchronized (points) { if (points.containsKey(dp.getMainAddress())) throw new KNXIllegalArgumentException("duplicate datapoint " + dp.getMainAddress()); points.put(dp.getMainAddress(), dp); } }
/* (non-Javadoc) @see tuwien.auto.calimero.datapoint.DatapointModel#add (tuwien.auto.calimero.datapoint.Datapoint) public void add(Datapoint dp) { synchronized (points) { if (points.containsKey(dp.getMainAddress())) throw new KNXIllegalArgumentException("duplicate datapoint " + dp.getMainAddress())...
101
114
255
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f0e9df3799a081253782c1e2c5aa4f1e20d835f07f66a4c9df71494a078daf7e
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
b14dc2f397bd4785a3491ba4
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/DatapointMap.java
DatapointMap.load
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/DatapointMap.java#L191-L209
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.datapoint.DatapointModel#load (tuwien.auto.calimero.xml.XMLReader)
public void load(XMLReader r) throws KNXMLException { if (r.getPosition() != XMLReader.START_TAG) r.read(); final Element e = r.getCurrent(); if (r.getPosition() != XMLReader.START_TAG || !e.getName().equals(TAG_DATAPOINTS)) throw new KNXMLException(TAG_DATAPOINTS + " element not found", e != null ? ...
/* (non-Javadoc) @see tuwien.auto.calimero.datapoint.DatapointModel#load (tuwien.auto.calimero.xml.XMLReader) public void load(XMLReader r) throws KNXMLException { if (r.getPosition() != XMLReader.START_TAG) r.read(); final Element e = r.getCurrent(); if (r.getPosition() != XMLReader.START_TAG || !e.get...
223
109
753
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f1421b9bdf154a203374d57bcd247e0242eadb3b8c6c9f1f220611f1e7cd7c20
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
87fef27c185af6f75a659102
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/DatapointMap.java
DatapointMap.save
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/DatapointMap.java#L215-L223
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.datapoint.DatapointModel#save (tuwien.auto.calimero.xml.XMLWriter)
public void save(XMLWriter w) throws KNXMLException { w.writeElement(TAG_DATAPOINTS, Collections.EMPTY_LIST, null); synchronized (points) { for (final Iterator i = points.values().iterator(); i.hasNext();) ((Datapoint) i.next()).save(w); } w.endElement(); }
/* (non-Javadoc) @see tuwien.auto.calimero.datapoint.DatapointModel#save (tuwien.auto.calimero.xml.XMLWriter) public void save(XMLWriter w) throws KNXMLException { w.writeElement(TAG_DATAPOINTS, Collections.EMPTY_LIST, null); synchronized (points) { for (final Iterator i = points.values().iterator(); i.has...
109
109
282
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0788fe2236ed32244983c37e6bad3c250037cd0cf25869a7af1b82659e102aaf
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
aa1caf90f1dabe0f3dda5161
ow2-chameleon/fuchsia
core/src/main/java/org/ow2/chameleon/fuchsia/core/FuchsiaUtils.java
FuchsiaUtils.loadClassNew
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/FuchsiaUtils.java#L65-L74
train
java
Load the Class of name <code>klassName</code>. TODO : handle class version @param context The BundleContext @param klassName The Class name @return The Class of name <code>klassName</code> @throws ClassNotFoundException if we can't load the Class of name <code>klassName</code>
public static Class<?> loadClassNew(BundleContext context, String klassName) throws ClassNotFoundException { // extract package String packageName = klassName.substring(0, klassName.lastIndexOf('.')); BundleCapability exportedPackage = getExportedPackage(context, packageName); if (export...
Load the Class of name <code>klassName</code>. TODO : handle class version @param context The BundleContext @param klassName The Class name @return The Class of name <code>klassName</code> @throws ClassNotFoundException if we can't load the Class of name <code>klassName</code> public static Class<?> loadClassNew(Bu...
175
280
601
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ab7e2d75055a6a1c0f40fddb01f06cea313f545a95c3d02f5e99062a8e6d90dc
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
c589efcf6fcaf087dd713dbd
ow2-chameleon/fuchsia
core/src/main/java/org/ow2/chameleon/fuchsia/core/FuchsiaUtils.java
FuchsiaUtils.getExportedPackage
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/FuchsiaUtils.java#L83-L106
train
java
Return the BundleCapability of a bundle exporting the package packageName. @param context The BundleContext @param packageName The package name @return the BundleCapability of a bundle exporting the package packageName
private static BundleCapability getExportedPackage(BundleContext context, String packageName) { List<BundleCapability> packages = new ArrayList<BundleCapability>(); for (Bundle bundle : context.getBundles()) { BundleRevision bundleRevision = bundle.adapt(BundleRevision.class); fo...
Return the BundleCapability of a bundle exporting the package packageName. @param context The BundleContext @param packageName The package name @return the BundleCapability of a bundle exporting the package packageName private static BundleCapability getExportedPackage(BundleContext context, String packageName) {...
232
223
1,100
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
febb597eae58fad18996c0bc0c2c2d02a30af4afa9ca337d184ac95dacc63e2f
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
b36943f5500dfd2b0e2fc67b
ow2-chameleon/fuchsia
core/src/main/java/org/ow2/chameleon/fuchsia/core/FuchsiaUtils.java
FuchsiaUtils.loadClass
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/FuchsiaUtils.java#L117-L136
train
java
Load the Class of name <code>klassName</code>. TODO : handle class version @param context The BundleContext @param klassName The Class name @return The Class of name <code>klassName</code> @throws ClassNotFoundException if we can't load the Class of name <code>klassName</code>
public static Class<?> loadClass(BundleContext context, String klassName) throws ClassNotFoundException { ServiceReference sref = context.getServiceReference(PackageAdmin.class.getName()); try { PackageAdmin padmin = (PackageAdmin) context.getService(sref); // extract package nam...
Load the Class of name <code>klassName</code>. TODO : handle class version @param context The BundleContext @param klassName The Class name @return The Class of name <code>klassName</code> @throws ClassNotFoundException if we can't load the Class of name <code>klassName</code> public static Class<?> loadClass(Bundl...
244
280
1,014
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
aab3174fe737e601ce1add85c755521a4131f2e38dfcf42e7af2e8f3a1e260ac
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
3f559efd4c39087d2396d427
ow2-chameleon/fuchsia
core/src/main/java/org/ow2/chameleon/fuchsia/core/FuchsiaUtils.java
FuchsiaUtils.loadClasses
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/FuchsiaUtils.java#L147-L172
train
java
Load the Classes of names <code>klassNames</code>. TODO : handle class version @param context The BundleContext @param klassNames The Classes names @return The Classes of names <code>klassNames</code> @throws ClassNotFoundException if we can't load one Class name of the list <code>klassNames</code>
public static List<Class<?>> loadClasses(BundleContext context, List<String> klassNames) throws ClassNotFoundException { ServiceReference sref = context.getServiceReference(PackageAdmin.class.getName()); List<Class<?>> klass = new ArrayList<Class<?>>(klassNames.size()); if (sref == null) { ...
Load the Classes of names <code>klassNames</code>. TODO : handle class version @param context The BundleContext @param klassNames The Classes names @return The Classes of names <code>klassNames</code> @throws ClassNotFoundException if we can't load one Class name of the list <code>klassNames</code> public static L...
277
303
1,157
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e07af9538afa2a206ee02c355e1ad647daf9a8d5f670f2263e8787c5196bbeff
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
e054c36f464723c5f256878b
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/serial/PortInputStream.java
PortInputStream.read
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/serial/PortInputStream.java#L93-L98
train
java
/* (non-Javadoc) @see java.io.InputStream#read(byte[])
public int read(byte[] b) throws IOException { if (b == null) throw new NullPointerException(); return p.readBytes(b, 0, b.length); }
/* (non-Javadoc) @see java.io.InputStream#read(byte[]) public int read(byte[] b) throws IOException { if (b == null) throw new NullPointerException(); return p.readBytes(b, 0, b.length); }
54
54
147
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7261885c57b27993a1835ab284e82831615d3b3febdc147bcdfb083b31aba9c2
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
5b559da0fe089cfcc0f072c8
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/serial/PortInputStream.java
PortInputStream.read
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/serial/PortInputStream.java#L103-L110
train
java
/* (non-Javadoc) @see java.io.InputStream#read(byte[], int, int)
public int read(byte[] b, int off, int len) throws IOException { if (b == null) throw new NullPointerException(); if (off < 0 || len < 0 || len > b.length - off) throw new IndexOutOfBoundsException(); return p.readBytes(b, off, len); }
/* (non-Javadoc) @see java.io.InputStream#read(byte[], int, int) public int read(byte[] b, int off, int len) throws IOException { if (b == null) throw new NullPointerException(); if (off < 0 || len < 0 || len > b.length - off) throw new IndexOutOfBoundsException(); return p.readBytes(b, off, len); ...
87
64
256
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6d5c6aced53c1b7edfcd99a3701cb199e5e720ad47b79aea72b291e4f55e1f42
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
627914b76dc83939e8a88ba8
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultEntityResolver.java
DefaultEntityResolver.resolveInput
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultEntityResolver.java#L109-L123
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.xml.EntityResolver#resolveInput(java.lang.String)
public InputStream resolveInput(String systemID) throws KNXMLException { try { try { final URL loc = new URL(systemID); return loc.openConnection().getInputStream(); } catch (final MalformedURLException e) { return new FileInputStream(systemID); } } catch (final IOException e) ...
/* (non-Javadoc) @see tuwien.auto.calimero.xml.EntityResolver#resolveInput(java.lang.String) public InputStream resolveInput(String systemID) throws KNXMLException { try { try { final URL loc = new URL(systemID); return loc.openConnection().getInputStream(); } catch (final MalformedURLExcept...
121
92
413
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c5311540730baf109d92c16281a590ffa9ad6f55f3c8b9e4ba9c49ff4ffc013f
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
70bf3e32464918162fa537b3
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultEntityResolver.java
DefaultEntityResolver.readXMLDeclaration
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultEntityResolver.java#L233-L271
train
java
returns array with length 3 and optional entries version, encoding, standalone
private String[] readXMLDeclaration(Reader r) throws KNXMLException { final StringBuffer buf = new StringBuffer(100); try { for (int c = 0; (c = r.read()) != -1 && c != '?';) buf.append((char) c); } catch (final IOException e) { throw new KNXMLException("reading XML declaration, " + e.getMess...
returns array with length 3 and optional entries version, encoding, standalone private String[] readXMLDeclaration(Reader r) throws KNXMLException { final StringBuffer buf = new StringBuffer(100); try { for (int c = 0; (c = r.read()) != -1 && c != '?';) buf.append((char) c); } catch (final IOExc...
378
78
1,335
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
833e9dbf7b5f27a071433afa43d4ab2242041a9d5a571c575da1fa7eaa1f8af2
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
6af6e1ac4247e364fe5c594d
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse.java
ConnectResponse.getStatusString
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse.java#L205-L221
train
java
Returns a textual representation of the status code. <p> @return short description of status as string
public String getStatusString() { switch (status) { case ErrorCodes.NO_ERROR: return "the connection was established successfully"; case ErrorCodes.CONNECTION_TYPE: return "the requested connection type is not supported"; case ErrorCodes.CONNECTION_OPTION: return "one or more connection option...
Returns a textual representation of the status code. <p> @return short description of status as string public String getStatusString() { switch (status) { case ErrorCodes.NO_ERROR: return "the connection was established successfully"; case ErrorCodes.CONNECTION_TYPE: return "the requested connectio...
144
103
592
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
12efdcaf1739ea2bca4256dbb4965db3648c6dbac189b2d364f9a01998402a4f
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
bea145dfaec4fb063e5cc5c1
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse.java
ConnectResponse.getStructLength
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse.java#L226-L232
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#getStructLength()
short getStructLength() { int len = 2; if (endpt != null && crd != null) len += endpt.getStructLength() + crd.getStructLength(); return (short) len; }
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#getStructLength() short getStructLength() { int len = 2; if (endpt != null && crd != null) len += endpt.getStructLength() + crd.getStructLength(); return (short) len; }
79
93
167
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2be93c6f2ef3331073e19334dc2649eba791b24f98a9b7cf805574c2113b1af2
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
acbb293675d9e98f87264501
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse.java
ConnectResponse.toByteArray
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse.java#L238-L249
train
java
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray (java.io.ByteArrayOutputStream)
byte[] toByteArray(ByteArrayOutputStream os) { os.write(channelid); os.write(status); if (endpt != null && crd != null) { byte[] buf = endpt.toByteArray(); os.write(buf, 0, buf.length); buf = crd.toByteArray(); os.write(buf, 0, buf.length); } return os.toByteArray(); }
/* (non-Javadoc) @see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray (java.io.ByteArrayOutputStream) byte[] toByteArray(ByteArrayOutputStream os) { os.write(channelid); os.write(status); if (endpt != null && crd != null) { byte[] buf = endpt.toByteArray(); os.write(buf, 0, buf.len...
116
119
304
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f6982f2dd46a28f2f9c12698eacd72339285c6b8925ba2f3e955e5aa0a4bf112
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
302306f04e7e1de9d7f761df
ow2-chameleon/fuchsia
core/src/main/java/org/ow2/chameleon/fuchsia/core/declaration/DeclarationImpl.java
DeclarationImpl.fetchServiceId
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/declaration/DeclarationImpl.java#L141-L143
train
java
Returns the service id with the propertype. @param serviceReference @return long value for the service id
private Long fetchServiceId(ServiceReference serviceReference) { return (Long) serviceReference.getProperty(org.osgi.framework.Constants.SERVICE_ID); }
Returns the service id with the propertype. @param serviceReference @return long value for the service id private Long fetchServiceId(ServiceReference serviceReference) { return (Long) serviceReference.getProperty(org.osgi.framework.Constants.SERVICE_ID); }
50
106
163
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
634978c59248cd196faee04e3eb585e6fe5928e803e763b739aab2d6e7c7e5b9
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
50a1798e98f1720c66d39abb
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/TranslatorTypes.java
TranslatorTypes.createTranslator
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/TranslatorTypes.java#L460-L471
train
java
Creates a DPT translator for the given datapoint type ID. <p> The translation behavior of a DPT translator instance is uniquely defined by the supplied datapoint type ID. <p> If the <code>dptID</code> argument is built up the recommended way, that is "<i>main number</i>.<i>sub number</i>", the <code>mainNumber</code> a...
public static DPTXlator createTranslator(int mainNumber, String dptID) throws KNXException { try { final int main = getMainNumber(mainNumber, dptID); final MainType type = (MainType) map.get(new Integer(main)); if (type != null) return type.createTranslator(dptID); } catch (final NumberFo...
Creates a DPT translator for the given datapoint type ID. <p> The translation behavior of a DPT translator instance is uniquely defined by the supplied datapoint type ID. <p> If the <code>dptID</code> argument is built up the recommended way, that is "<i>main number</i>.<i>sub number</i>", the <code>mainNumber</code> a...
337
941
408
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8954d2e4e3a63f28445ee100100bb66c6214b74cb5093db146f4f94408407683
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
9ec5f14e4360eeb3fbf50b0c
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/TranslatorTypes.java
TranslatorTypes.createTranslator
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/TranslatorTypes.java#L486-L499
train
java
Creates a DPT translator for the given datapoint type. <p> The translation behavior of a DPT translator instance is uniquely defined by the supplied datapoint type. <p> If translator creation according {@link #createTranslator(int, String)} fails, all available main types are enumerated to find an appropriate translato...
public static DPTXlator createTranslator(DPT dpt) throws KNXException { try { return createTranslator(0, dpt.getID()); } catch (final KNXException e) { for (final Iterator i = map.values().iterator(); i.hasNext(); ) try { return ((MainType) i.next()).createTranslator(dpt); } catc...
Creates a DPT translator for the given datapoint type. <p> The translation behavior of a DPT translator instance is uniquely defined by the supplied datapoint type. <p> If translator creation according {@link #createTranslator(int, String)} fails, all available main types are enumerated to find an appropriate translato...
224
511
442
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
323ad2b971064388d0dacb51e40dc0f0ddf22304c65497c303c01a6b60b00d38
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
cdf21f181a24c0c44d1e81dd
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/TranslatorTypes.java
TranslatorTypes.getMainNumber
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/TranslatorTypes.java#L502-L506
train
java
throws NumberFormatException
private static int getMainNumber(int mainNumber, String dptID) { return mainNumber != 0 ? mainNumber : Integer.parseInt(dptID.substring(0, dptID .indexOf('.'))); }
throws NumberFormatException private static int getMainNumber(int mainNumber, String dptID) { return mainNumber != 0 ? mainNumber : Integer.parseInt(dptID.substring(0, dptID .indexOf('.'))); }
52
28
174
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c284899f81ee398fcbb353c27997bc03ba517d452c73432ab6f917892c5f9749
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
bbf2498d6744f42d858ec3ad
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiLevelSwitchCommandClass.java
ZWaveMultiLevelSwitchCommandClass.handleApplicationCommandRequest
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveMultiLevelSwitchCommandClass.java#L126-L173
train
java
{@inheritDoc}
@Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Switch Multi Level Request"); logger.debug(String.format("Received Switch Multi Level Request for Node ID = %d", this.getNode().getNodeId())); int command = serialMe...
{@inheritDoc} @Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Switch Multi Level Request"); logger.debug(String.format("Received Switch Multi Level Request for Node ID = %d", this.getNode().getNodeId())); int com...
489
13
2,103
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6ea71c27cf6583817c16a0d38b13bdadca082da55c285a6719297b74327017ee
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
095fb4cda02f4e068c0a736c
before/quality-check
modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalInstanceOfArgumentException.java
IllegalInstanceOfArgumentException.determineMessage
https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalInstanceOfArgumentException.java#L66-L70
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 @param expectedType the ex...
private static String determineMessage(@Nullable final String argumentName, @Nullable final Class<?> expectedType, @Nullable final Class<?> actualType) { return argumentName != null && !argumentName.isEmpty() ? format(argumentName, expectedType, actualType) : format(expectedType, actualType); }
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 @param expectedType the ex...
182
547
305
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2fe857f3ecca49d94ed7e93e3a9ac786fa133cdd3c9293393e554b9c029bc9f8
Apache-2.0
permissive
https://github.com/arouel/quality-check/blob/master/LICENSE.txt
2dfa8cc82b5511890e756b3e
before/quality-check
modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalInstanceOfArgumentException.java
IllegalInstanceOfArgumentException.format
https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalInstanceOfArgumentException.java#L81-L85
train
java
Returns the formatted string {@link IllegalInstanceOfArgumentException#MESSAGE_WITH_TYPES} with the given types. @param expectedType the expected class of the given argument @param actualType the actual class of the given argument @return a formatted string of message with the given argument name
private static String format(@Nullable final Class<?> expectedType, @Nullable final Class<?> actualType) { final String expected = expectedType != null ? expectedType.getName() : NO_TYPE_PLACEHOLDER; final String actual = actualType != null ? actualType.getName() : NO_TYPE_PLACEHOLDER; return String.format(MESSAG...
Returns the formatted string {@link IllegalInstanceOfArgumentException#MESSAGE_WITH_TYPES} with the given types. @param expectedType the expected class of the given argument @param actualType the actual class of the given argument @return a formatted string of message with the given argument name private static Strin...
131
298
355
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
935ea7c85beeaa94b7b621ef04decebe15eb53070e11558c871d3e6567565bed
Apache-2.0
permissive
https://github.com/arouel/quality-check/blob/master/LICENSE.txt
e4831a911d61b42582bdd1e9
before/quality-check
modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalInstanceOfArgumentException.java
IllegalInstanceOfArgumentException.format
https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalInstanceOfArgumentException.java#L99-L104
train
java
Returns the formatted string {@link IllegalInstanceOfArgumentException#MESSAGE_WITH_NAME_AND_TYPES} with the given {@code argumentName}. @param argumentName the name of the passed argument @param expectedType the expected class of the given argument @param actualType the actual class of the given argument @return a fo...
private static String format(@Nullable final String argumentName, @Nullable final Class<?> expectedType, @Nullable final Class<?> actualType) { final String expected = expectedType != null ? expectedType.getName() : NO_TYPE_PLACEHOLDER; final String actual = actualType != null ? actualType.getName() : NO_TYPE_PL...
Returns the formatted string {@link IllegalInstanceOfArgumentException#MESSAGE_WITH_NAME_AND_TYPES} with the given {@code argumentName}. @param argumentName the name of the passed argument @param expectedType the expected class of the given argument @param actualType the actual class of the given argument @return a fo...
163
374
418
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
37752f7941e92386542814eaa374c4d91669e272cdf30d5e843d6c12e7a4b9be
Apache-2.0
permissive
https://github.com/arouel/quality-check/blob/master/LICENSE.txt
4573ac657187461542b0f1a4
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveDeviceClass.java
ZWaveDeviceClass.setSpecificDeviceClass
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveDeviceClass.java#L134-L142
train
java
Set the specific device class of the node. @param specificDeviceClass the specificDeviceClass to set @exception IllegalArgumentException thrown when the specific device class does not match the generic device class.
public void setSpecificDeviceClass(Specific specificDeviceClass) throws IllegalArgumentException { // The specific Device class does not match the generic device class. if (specificDeviceClass.genericDeviceClass != Generic.NOT_KNOWN && specificDeviceClass.genericDeviceClass != this.genericDeviceClass) ...
Set the specific device class of the node. @param specificDeviceClass the specificDeviceClass to set @exception IllegalArgumentException thrown when the specific device class does not match the generic device class. public void setSpecificDeviceClass(Specific specificDeviceClass) throws IllegalArgumentException { ...
123
215
440
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0a6ad6db63f525a87856ce88323ba0c9c8d55fc6bd23d2d45156cca39bbb3ae0
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
bc74c310f4d7204acdfbcbf2
ow2-chameleon/fuchsia
examples/jax-ws/weatherForecast/weather-ws-impl/src/main/java/org/ow2/chameleon/fuchsia/examples/jaxws/weather/impl/WeatherForeCastWSImpl.java
WeatherForeCastWSImpl.parseRssFeed
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/jax-ws/weatherForecast/weather-ws-impl/src/main/java/org/ow2/chameleon/fuchsia/examples/jaxws/weather/impl/WeatherForeCastWSImpl.java#L136-L141
train
java
Parser for actual conditions @param feed @return
private String parseRssFeed(String feed) { String[] result = feed.split("<br />"); String[] result2 = result[2].split("<BR />"); return result2[0]; }
Parser for actual conditions @param feed @return private String parseRssFeed(String feed) { String[] result = feed.split("<br />"); String[] result2 = result[2].split("<BR />"); return result2[0]; }
55
49
178
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
104e8a7bf57d4eb65e1d643dba3b6e1babf13bb6ab448d705d055eeddcd8e070
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
b0c814166302809feafd82a0
ow2-chameleon/fuchsia
examples/jax-ws/weatherForecast/weather-ws-impl/src/main/java/org/ow2/chameleon/fuchsia/examples/jaxws/weather/impl/WeatherForeCastWSImpl.java
WeatherForeCastWSImpl.parseRssFeedForeCast
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/jax-ws/weatherForecast/weather-ws-impl/src/main/java/org/ow2/chameleon/fuchsia/examples/jaxws/weather/impl/WeatherForeCastWSImpl.java#L149-L161
train
java
Parser for forecast @param feed @return
private List<String> parseRssFeedForeCast(String feed) { String[] result = feed.split("<br />"); List<String> returnList = new ArrayList<String>(); String[] result2 = result[2].split("<BR />"); returnList.add(result2[3] + "\n"); returnList.add(result[3] + "\n"); returnLi...
Parser for forecast @param feed @return private List<String> parseRssFeedForeCast(String feed) { String[] result = feed.split("<br />"); List<String> returnList = new ArrayList<String>(); String[] result2 = result[2].split("<BR />"); returnList.add(result2[3] + "\n"); returnLi...
128
40
463
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
39f7740b4d9779df70560453df8eec3e665f4a71ad5f179a66845fdcb0399ebf
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
d5a8db5b5d33deda2d9121b8
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/XMLFactory.java
XMLFactory.createXMLReader
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/XMLFactory.java#L117-L133
train
java
Creates a {@link XMLReader} to read the XML resource located by the specified identifier. <p> On closing the created XML reader, the {@link Reader} set as input for the XML reader will get closed as well. @param systemID location identifier of the XML resource @return XML reader @throws KNXMLException if creation of t...
public XMLReader createXMLReader(String systemID) throws KNXMLException { final XMLReader r = (XMLReader) create(DEFAULT_READER); final EntityResolver res = (EntityResolver) create(DEFAULT_RESOLVER); final InputStream is = res.resolveInput(systemID); try { r.setInput(res.getInputReader(is), true); ...
Creates a {@link XMLReader} to read the XML resource located by the specified identifier. <p> On closing the created XML reader, the {@link Reader} set as input for the XML reader will get closed as well. @param systemID location identifier of the XML resource @return XML reader @throws KNXMLException if creation of t...
197
370
465
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5699c247cc83a1fecd4c9009e1eb48dbe2d85c0f334705c95beec967a6139707
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
642b7eb3d62db6081de9628a
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/XMLFactory.java
XMLFactory.createXMLWriter
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/XMLFactory.java#L145-L161
train
java
Creates a {@link XMLWriter} to write into the XML resource located by the specified identifier. <p> @param systemID location identifier of the XML resource @return XML writer @throws KNXMLException if creation of the writer failed or XML resource can't be resolved
public XMLWriter createXMLWriter(String systemID) throws KNXMLException { final XMLWriter w = (XMLWriter) create(DEFAULT_WRITER); final EntityResolver res = (EntityResolver) create(DEFAULT_RESOLVER); final OutputStream os = res.resolveOutput(systemID); try { w.setOutput(new OutputStreamWriter(os, "UTF...
Creates a {@link XMLWriter} to write into the XML resource located by the specified identifier. <p> @param systemID location identifier of the XML resource @return XML writer @throws KNXMLException if creation of the writer failed or XML resource can't be resolved public XMLWriter createXMLWriter(String systemID) thr...
185
265
539
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e8697a337cb0d0fb709ffd22cebdf4ebb3f27064dd557f346ca2099fb389810b
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
250c1f2095e623e47d01fad1
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogManager.java
LogManager.getLogService
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogManager.java#L129-L141
train
java
Queries for a log service with the specified <code>name</code>. <p> If the log service with this name already exists in the manager, it will be returned, otherwise a new log service with this name will be created and added to the log services listed in the manager. @param name name of log service, the empty string is ...
public LogService getLogService(String name) { synchronized (loggers) { LogService l = (LogService) loggers.get(name); if (l == null) { l = new LogService(name); loggers.put(name, l); for (final Iterator i = writers.iterator(); i.hasNext();) l.addWriter((LogWriter) i.next()); } ...
Queries for a log service with the specified <code>name</code>. <p> If the log service with this name already exists in the manager, it will be returned, otherwise a new log service with this name will be created and added to the log services listed in the manager. @param name name of log service, the empty string is ...
172
361
339
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
34af3683125f5f1413326a3cc9742d21a0b432065d39b3b38450152e772dd403
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
332121e210c88776ea2d9d17
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogManager.java
LogManager.addWriter
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogManager.java#L181-L195
train
java
Adds a log writer, either global or to a particular log service. <p> Note that the writer is added to the log service(s) regardless if it was already added before.<br> If the writer is added global, it will receive logging information from all log services that are already registered or will be registered in the future...
public boolean addWriter(String logService, LogWriter writer) { if (logService != null && logService.length() > 0) { final LogService l = (LogService) loggers.get(logService); if (l != null) l.addWriter(writer); return l != null; } synchronized (loggers) { writers.add(writer); for (f...
Adds a log writer, either global or to a particular log service. <p> Note that the writer is added to the log service(s) regardless if it was already added before.<br> If the writer is added global, it will receive logging information from all log services that are already registered or will be registered in the future...
254
603
454
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e0cca2d677674aa5ffb95302cdfdc2a9375cdea48a0cb11cf68e0e375796db98
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
a256cbd202c3fab0f07e404f
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogManager.java
LogManager.removeWriter
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogManager.java#L207-L220
train
java
Removes a log writer, either global or from a particular <code>logService</code>. <p> Note that for a writer to be removed global, it had to be added global before. @param logService name of the log service of which the writer will be removed; to remove the writer global, use an empty string or <code>null</code> @para...
public void removeWriter(String logService, LogWriter writer) { if (logService != null && logService.length() > 0) { final LogService l = (LogService) loggers.get(logService); if (l != null) l.removeWriter(writer); } else synchronized (loggers) { if (writers.remove(writer)) for (f...
Removes a log writer, either global or from a particular <code>logService</code>. <p> Note that for a writer to be removed global, it had to be added global before. @param logService name of the log service of which the writer will be removed; to remove the writer global, use an empty string or <code>null</code> @para...
206
389
443
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9ffd4bd4e03bd05535d8f2872c09d4c809bbd3a8cf263c659d303fb461ab561b
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
81d9f0b5b28e23234f730b88
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java
NetworkBuffer.createBuffer
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java#L401-L410
train
java
Creates a new network buffer for a KNX installation. <p> To identify the buffer an unique installation identifier can be given through <code>installationID</code>.<br> If <code>null</code> or an empty string is supplied for the installation ID, a new default ID is generated of the form "Installation [ID]", where [ID] i...
public static synchronized NetworkBuffer createBuffer(String installationID) { if (getBuffer(installationID) != null) throw new KNXIllegalArgumentException("buffer \"" + installationID + "\" already exists"); final NetworkBuffer b = new NetworkBuffer(validateInstID(installationID)); buffers.add(b); ...
Creates a new network buffer for a KNX installation. <p> To identify the buffer an unique installation identifier can be given through <code>installationID</code>.<br> If <code>null</code> or an empty string is supplied for the installation ID, a new default ID is generated of the form "Installation [ID]", where [ID] i...
208
535
405
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9b658a36252abc600387106e970b01e28549d6d8eac07176e7e5f095f47ce40e
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
9853eb72f10d2f1a840e283e
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java
NetworkBuffer.removeBuffer
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java#L421-L434
train
java
Removes a network buffer, and all configurations of that buffer. <p> For every {@link Configuration} contained in the buffer, {@link NetworkBuffer#removeConfiguration (tuwien.auto.calimero.buffer.Configuration)} is called. @param installationID installation ID of the network buffer to remove
public static synchronized void removeBuffer(String installationID) { for (final Iterator i = buffers.iterator(); i.hasNext();) { final NetworkBuffer b = (NetworkBuffer) i.next(); if (b.inst.equals(installationID)) { i.remove(); while (!b.configs.isEmpty()) b.removeConfiguration((Configurat...
Removes a network buffer, and all configurations of that buffer. <p> For every {@link Configuration} contained in the buffer, {@link NetworkBuffer#removeConfiguration (tuwien.auto.calimero.buffer.Configuration)} is called. @param installationID installation ID of the network buffer to remove public static synchronize...
170
293
469
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
afe22df05f0dffc595235dcd0c5babcc838c101f61e16520e210da2bb7aac314
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
747729da6d3edca3881cfd73
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java
NetworkBuffer.getBuffer
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java#L443-L451
train
java
Returns the network buffer for the given installation ID. <p> @param installationID installation ID for the network buffer @return the network buffer, or <code>null</code> if no buffer found
public static synchronized NetworkBuffer getBuffer(String installationID) { for (final Iterator i = buffers.iterator(); i.hasNext();) { final NetworkBuffer db = (NetworkBuffer) i.next(); if (db.inst.equals(installationID)) return db; } return null; }
Returns the network buffer for the given installation ID. <p> @param installationID installation ID for the network buffer @return the network buffer, or <code>null</code> if no buffer found public static synchronized NetworkBuffer getBuffer(String installationID) { for (final Iterator i = buffers.iterator(); i....
103
191
276
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2a054f5d27d64ccce84da009264e3940c8158f462640a663c2bbfc17054ea90f
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
d793020c0ae05da1a6b95288
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java
NetworkBuffer.createConfiguration
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java#L483-L490
train
java
Creates a new configuration for the network buffer identified by the installation ID. <p> The configuration is added to the network buffer specified by the installation ID. If a network buffer with the supplied installation ID does not exist, it will be created. If <code>null</code> or an empty string is supplied for t...
public static Configuration createConfiguration(KNXNetworkLink link, String installationID) { NetworkBuffer b = getBuffer(installationID); if (b == null) b = createBuffer(installationID); return b.createConfiguration(link); }
Creates a new configuration for the network buffer identified by the installation ID. <p> The configuration is added to the network buffer specified by the installation ID. If a network buffer with the supplied installation ID does not exist, it will be created. If <code>null</code> or an empty string is supplied for t...
238
874
245
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3333d27ed98b1f7d65a1bcde8e0db6e51322fd87e6c01de8534b212a379ea36a
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
69510209a55255d78bb8164f
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java
NetworkBuffer.removeConfiguration
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java#L505-L516
train
java
Removes a configuration from the network buffer identified by the installation ID. <p> If <code>installationID</code> is <code>null</code>, all network buffers are searched for the configuration <code>c</code>.<br> If the network buffer is found containing the specified configuration, {@link NetworkBuffer#removeConfigu...
public static synchronized void removeConfiguration(Configuration c, String installationID) { for (final Iterator i = buffers.iterator(); i.hasNext();) { final NetworkBuffer b = (NetworkBuffer) i.next(); if (b.inst.equals(installationID) || installationID == null && b.configs.contains(c)) { b....
Removes a configuration from the network buffer identified by the installation ID. <p> If <code>installationID</code> is <code>null</code>, all network buffers are searched for the configuration <code>c</code>.<br> If the network buffer is found containing the specified configuration, {@link NetworkBuffer#removeConfigu...
198
526
371
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
47a9e72050357c06357d62895eef5f5a3e2709188b7a30e55649127b2b6b0d1f
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
46d80a0fc880d89418a8bee0
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java
NetworkBuffer.createConfiguration
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java#L529-L535
train
java
Creates a new configuration for this network buffer. <p> If the supplied <code>link</code> gets closed, the created configuration will get deactivated (see {@link Configuration#activate(boolean)}), and the buffered link of the configuration, obtained with {@link Configuration#getBufferedLink()}, will get closed as well...
public Configuration createConfiguration(KNXNetworkLink link) { final ConfigImpl c = new ConfigImpl(link); configs.add(c); logger.info("created configuration for " + link.getName()); return c; }
Creates a new configuration for this network buffer. <p> If the supplied <code>link</code> gets closed, the created configuration will get deactivated (see {@link Configuration#activate(boolean)}), and the buffered link of the configuration, obtained with {@link Configuration#getBufferedLink()}, will get closed as well...
133
416
210
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
267892a9658fee009dd9be305b5ce300f1562e057d11a8aadb5e1bbab84e0855
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
d17e387c302afe4001cbf7d8
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java
NetworkBuffer.removeConfiguration
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/NetworkBuffer.java#L546-L552
train
java
Removes a configuration from this network buffer. <p> The configuration is deactivated and will not receive any further events or incoming messages from the base network link supplied at creation of that configuration. @param c the configuration to remove
public void removeConfiguration(Configuration c) { if (configs.remove(c)) { ((ConfigImpl) c).unregister(); logger.info("removed configuration of " + c.getBaseLink().getName()); } }
Removes a configuration from this network buffer. <p> The configuration is deactivated and will not receive any further events or incoming messages from the base network link supplied at creation of that configuration. @param c the configuration to remove public void removeConfiguration(Configuration c) { if (co...
95
256
198
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9280c46de20e2285a4d5f5cdecf52f6c80b4429add63a7f36f2bcbeae7cfefbc
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
b72c44d0f4992d1b30768eff
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/Description.java
Description.setCurrentElements
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/Description.java#L286-L298
train
java
set 2 or 4 byte data array with element count, big endian
void setCurrentElements(byte[] data) { int elems = 0; for (int i = 0; i < data.length; ++i) elems = elems << 8 | data[i] & 0xff; currElems = elems; } void setPDT(int type) { pdt = (byte) type; } }
set 2 or 4 byte data array with element count, big endian void setCurrentElements(byte[] data) { int elems = 0; for (int i = 0; i < data.length; ++i) elems = elems << 8 | data[i] & 0xff; currElems = elems; } void setPDT(int type) { pdt = (byte) type; } }
96
57
225
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a495b519a30b551527af1bad7ea6721b598541b14557443ac6c988200c95339a
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
d0f29e7ccf1d4db563048153
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveAlarmSensorCommandClass.java
ZWaveAlarmSensorCommandClass.handleApplicationCommandRequest
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveAlarmSensorCommandClass.java#L107-L201
train
java
{@inheritDoc}
@Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Sensor Alarm Request"); logger.debug(String.format("Received Sensor Alarm Request for Node ID = %d", this.getNode().getNodeId())); int command = serialMessage.getMes...
{@inheritDoc} @Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Sensor Alarm Request"); logger.debug(String.format("Received Sensor Alarm Request for Node ID = %d", this.getNode().getNodeId())); int command = seria...
918
13
3,828
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9379422c665aa5e36be3cc9edce3516aa57ed53143adc1b23fbe01b11866b9a3
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE
9ae449d407bb7956a063db60
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveAlarmSensorCommandClass.java
ZWaveAlarmSensorCommandClass.getMessage
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveAlarmSensorCommandClass.java#L221-L231
train
java
Gets a SerialMessage with the SENSOR_ALARM_GET command @return the serial message
public SerialMessage getMessage(AlarmType alarmType) { logger.debug("Creating new message for application command SENSOR_ALARM_GET for node {}", this.getNode().getNodeId()); SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessage.SerialMessageClass.SendData, SerialMessage.SerialMessageT...
Gets a SerialMessage with the SENSOR_ALARM_GET command @return the serial message public SerialMessage getMessage(AlarmType alarmType) { logger.debug("Creating new message for application command SENSOR_ALARM_GET for node {}", this.getNode().getNodeId()); SerialMessage result = new SerialMessage(this.getNode().g...
159
81
703
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
1353cd1c2b3e6139a991a3a872be48dd4b27171edd832922b28c37672afd679a
Apache-2.0
permissive
https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE