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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb54b97fefa7eaff2c9cefff | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.increaseLevel | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L904-L924 | train | java | increase level on the node / endpoint. The level is
increased. Only dimmers support this.
@param nodeId the node id to increase the level for.
@param endpoint the endpoint to increase the level for. | public void increaseLevel(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
SerialMessage serialMessage = null;
ZWaveMultiLevelSwitchCommandClass zwaveCommandClass = (ZWaveMultiLevelSwitchCommandClass)node.resolveCommandClass(ZWaveCommandClass.CommandClass.SWITCH_MULTILEVEL, endpoint);
if... | increase level on the node / endpoint. The level is
increased. Only dimmers support this.
@param nodeId the node id to increase the level for.
@param endpoint the endpoint to increase the level for.
public void increaseLevel(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
SerialMessage serialMes... | 244 | 198 | 822 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e9f9127009f628fb5b6f902afe069f918dd43e4ca1937777dc467321695f32ac | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1a796de8d6b93cd6d98b0979 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.sendData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L959-L992 | train | java | Transmits the SerialMessage to a single Z-Wave Node.
Sets the transmission options as well.
@param serialMessage the Serial message to send. | public void sendData(SerialMessage serialMessage)
{
if (serialMessage.getMessageClass() != SerialMessage.SerialMessageClass.SendData) {
logger.error(String.format("Invalid message class %s (0x%02X) for sendData", serialMessage.getMessageClass().getLabel(), serialMessage.getMessageClass().getKey()));
r... | Transmits the SerialMessage to a single Z-Wave Node.
Sets the transmission options as well.
@param serialMessage the Serial message to send.
public void sendData(SerialMessage serialMessage)
{
if (serialMessage.getMessageClass() != SerialMessage.SerialMessageClass.SendData) {
logger.error(String.format("In... | 385 | 140 | 1,520 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d537e2c9c1780aa8ffee350882cbf37f7c19bdc0927c597dc80aab5fc8277c93 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c85b566aaacc8d2e65b58897 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.sendValue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L1000-L1024 | train | java | Send value to node.
@param nodeId the node Id to send the value to.
@param endpoint the endpoint to send the value to.
@param value the value to send | public void sendValue(int nodeId, int endpoint, int value) {
ZWaveNode node = this.getNode(nodeId);
ZWaveSetCommands zwaveCommandClass = null;
SerialMessage serialMessage = null;
for (ZWaveCommandClass.CommandClass commandClass : new ZWaveCommandClass.CommandClass[] { ZWaveCommandClass.CommandClass.SWITCH_MU... | Send value to node.
@param nodeId the node Id to send the value to.
@param endpoint the endpoint to send the value to.
@param value the value to send
public void sendValue(int nodeId, int endpoint, int value) {
ZWaveNode node = this.getNode(nodeId);
ZWaveSetCommands zwaveCommandClass = null;
SerialMessage serial... | 319 | 149 | 1,133 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e6f1aeb967968e4bab38470ebf855759a84e671cef893ecf3c843898169cd3e1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
efb618836afe7ac01aa6d0b0 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asBool | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L128-L133 | train | java | Returns the ASDU of the received process event as boolean datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with the ASDU ... | public boolean asBool(ProcessEvent e) throws KNXFormatException
{
final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
t.setData(e.getASDU());
return t.getValueBoolean();
} | Returns the ASDU of the received process event as boolean datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with the ASDU ... | 152 | 448 | 208 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a985529e7bbedeb9f0cd7e55b41c5e7956694a14300a68dfcd52d17c3745453c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1ebf23aa96f4f102c4b7879e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asUnsigned | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L149-L154 | train | java | Returns the ASDU of the received process event as unsigned 8 Bit datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with th... | public short asUnsigned(ProcessEvent e, String scale) throws KNXFormatException
{
final DPTXlator8BitUnsigned t = new DPTXlator8BitUnsigned(scale);
t.setData(e.getASDU());
return t.getValueUnsigned();
} | Returns the ASDU of the received process event as unsigned 8 Bit datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with th... | 185 | 571 | 215 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | dabac49c9fdfd13987164f288fc7e4597c0e9fc8116460c3ae2f0b8b61a20427 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a13ab756f06249669825f060 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asControl | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L168-L174 | train | java | Returns the ASDU of the received process event as 3 Bit controlled datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with ... | public byte asControl(ProcessEvent e) throws KNXFormatException
{
final DPTXlator3BitControlled t = new DPTXlator3BitControlled(
DPTXlator3BitControlled.DPT_CONTROL_DIMMING);
t.setData(e.getASDU());
return t.getValueSigned();
} | Returns the ASDU of the received process event as 3 Bit controlled datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with ... | 174 | 475 | 244 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 946613f9bf70825cc325c31812858035cff2117983c6500683268ec051f90c74 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f20c6416c7c6cfc02d1d7491 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asFloat | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L188-L194 | train | java | Returns the ASDU of the received process event as 2 byte KNX float datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with ... | public float asFloat(ProcessEvent e) throws KNXFormatException
{
final DPTXlator2ByteFloat t = new DPTXlator2ByteFloat(
DPTXlator2ByteFloat.DPT_TEMPERATURE_DIFFERENCE);
t.setData(e.getASDU());
return t.getValueFloat();
} | Returns the ASDU of the received process event as 2 byte KNX float datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with ... | 168 | 453 | 237 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 79e3bc76138a97c8d7a1603d354761c6001f4eae435755f18db76cc6379113b5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c5af43f5c15450e754a8077e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L211-L216 | train | java | Returns the ASDU of the received process event as string datapoint value.
<p>
The used character set is ISO-8859-1 (Latin 1), with an allowed string length of 14
characters.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(Pr... | public String asString(ProcessEvent e) throws KNXFormatException
{
final DPTXlatorString t = new DPTXlatorString(DPTXlatorString.DPT_STRING_8859_1);
t.setData(e.getASDU());
return t.getValue();
} | Returns the ASDU of the received process event as string datapoint value.
<p>
The used character set is ISO-8859-1 (Latin 1), with an allowed string length of 14
characters.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(Pr... | 190 | 549 | 208 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a1e4a682247912d87aaa7c7cd538402669541a26505f70d405a04c5a4e7bc990 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
523bdcaac600a3de2ac39b2c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L235-L241 | train | java | Returns the ASDU of the received process event as datapoint value of the requested
DPT in String representation.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@pa... | public String asString(ProcessEvent e, int dptMainNumber, String dptID)
throws KNXException
{
final DPTXlator t = TranslatorTypes.createTranslator(dptMainNumber, dptID);
t.setData(e.getASDU());
return t.getValue();
} | Returns the ASDU of the received process event as datapoint value of the requested
DPT in String representation.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@pa... | 234 | 769 | 232 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 63cb363abb6c856bf5b3a1ec8a05aa179b05a33ac9d46978bec371875a811bd3 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
658572e1a808ff2c89f6be85 | ow2-chameleon/fuchsia | examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/Clock.java | Clock.toClockString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/Clock.java#L70-L75 | train | java | ////////////////////////////////////////////// | public final static String toClockString(int value)
{
if (value < 10)
return "0" + Integer.toString(value);
return Integer.toString(value);
} | //////////////////////////////////////////////
public final static String toClockString(int value)
{
if (value < 10)
return "0" + Integer.toString(value);
return Integer.toString(value);
} | 41 | 46 | 150 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 153e8dc41181d5fc07a4f5349dcf5d1dbe150ff4c0aace2ddbd0100032dcf6e5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
026599d503dc2d2b5bcbcc0e | ow2-chameleon/fuchsia | examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/Clock.java | Clock.getTimeString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/Clock.java#L132-L139 | train | java | ////////////////////////////////////////////// | public String getTimeString()
{
Calendar cal = getCalendar();
return
toClockString(cal.get(Calendar.HOUR)) +
(((cal.get(Calendar.SECOND) % 2) == 0) ? ":" : " ") +
toClockString(cal.get(Calendar.MINUTE));
} | //////////////////////////////////////////////
public String getTimeString()
{
Calendar cal = getCalendar();
return
toClockString(cal.get(Calendar.HOUR)) +
(((cal.get(Calendar.SECOND) % 2) == 0) ? ":" : " ") +
toClockString(cal.get(Calendar.MINUTE));
} | 66 | 46 | 220 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b74909168eae8c6101aa8aa0a9da577c556fbfd03258ecd1c8c89768c70ce4b7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cebaa50c09690f8569485d00 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.processProperties | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L114-L133 | train | java | Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.
them is invalid. | private void processProperties() {
state = true;
try {
importerServiceFilter = getFilter(importerServiceFilterProperty);
} catch (InvalidFilterException invalidFilterException) {
LOG.debug("The value of the Property " + FILTER_IMPORTERSERVICE_PROPERTY + " is invalid,"
... | Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.
them is invalid.
private void processProperties() {
state = true;
try {
importerServiceFilter = getFilter(importerServiceFilterProperty);
} catch (InvalidFilterExcepti... | 198 | 132 | 941 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0b4ec173ed13f38f35b4e7d0f9601626617d58e544c541ece265a3219a441c43 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4900b69f1836095feed27950 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.updated | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L141-L148 | train | java | Called by iPOJO when the configuration of the DefaultImportationLinker is updated.
<p/>
Call #processProperties() to get the updated filters ImporterServiceFilter and ImportDeclarationFilter.
Compute and apply the changes in the links relatives to the changes in the filters. | @Updated
public void updated() {
processProperties();
synchronized (lock) {
importersManager.applyFilterChanges(importerServiceFilter);
declarationsManager.applyFilterChanges(importDeclarationFilter);
}
} | Called by iPOJO when the configuration of the DefaultImportationLinker is updated.
<p/>
Call #processProperties() to get the updated filters ImporterServiceFilter and ImportDeclarationFilter.
Compute and apply the changes in the links relatives to the changes in the filters.
@Updated
public void updated() {
... | 100 | 275 | 260 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 236e2874b48be07713be52e2496050d77330d6f70e86026026670cc1968f69d5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4da15e53f56e565eac86f0e5 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.bindImporterService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L156-L177 | train | java | Bind the {@link ImporterService} matching the importerServiceFilter.
<p/>
Check all the already bound {@link ImportDeclaration}s, if the metadata of the ImportDeclaration match the filter
exposed by the ImporterService, link them together. | @Bind(id = "importerServices", specification = ImporterService.class, aggregate = true, optional = true)
void bindImporterService(ServiceReference<ImporterService> serviceReference) {
synchronized (lock) {
try {
importersManager.add(serviceReference);
} catch (Invalid... | Bind the {@link ImporterService} matching the importerServiceFilter.
<p/>
Check all the already bound {@link ImportDeclaration}s, if the metadata of the ImportDeclaration match the filter
exposed by the ImporterService, link them together.
@Bind(id = "importerServices", specification = ImporterService.class, aggregate... | 260 | 239 | 1,230 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 30b695ace2cbcce3cd9c85c1398c4e35a908987312e5233554fa777a944f6d49 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
80d2448b43841a897476844d | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.modifiedImporterService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L185-L203 | train | java | Update the Target Filter of the ImporterService.
Apply the induce modifications on the links of the ImporterService
@param serviceReference | @Modified(id = "importerServices")
void modifiedImporterService(ServiceReference<ImporterService> serviceReference) {
try {
importersManager.modified(serviceReference);
} catch (InvalidFilterException invalidFilterException) {
LOG.error("The ServiceProperty \"" + TARGET_FILTE... | Update the Target Filter of the ImporterService.
Apply the induce modifications on the links of the ImporterService
@param serviceReference
@Modified(id = "importerServices")
void modifiedImporterService(ServiceReference<ImporterService> serviceReference) {
try {
importersManager.modified(serv... | 192 | 140 | 956 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 97eae90e005e8a45a61419551ecb12cf4cacec3ed3ddb29a376250cafa44ebbf | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d1bc557eb5053a41cf1537d9 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.unbindImporterService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L208-L216 | train | java | Unbind the {@link ImporterService}. | @Unbind(id = "importerServices")
void unbindImporterService(ServiceReference<ImporterService> serviceReference) {
LOG.debug(linkerName + " : Unbind the ImporterService " + importersManager.getDeclarationBinder(serviceReference));
synchronized (lock) {
importersManager.removeLinks(servic... | Unbind the {@link ImporterService}.
@Unbind(id = "importerServices")
void unbindImporterService(ServiceReference<ImporterService> serviceReference) {
LOG.debug(linkerName + " : Unbind the ImporterService " + importersManager.getDeclarationBinder(serviceReference));
synchronized (lock) {
... | 89 | 35 | 403 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 347e9c794b267ffd96a541a03d1736bc3a65b7fcf8471605e737452f28c283eb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
31781f93261e74eaae2c04b5 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.bindImportDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L224-L242 | train | java | Bind the {@link ImportDeclaration} matching the filter ImportDeclarationFilter.
<p/>
Check if metadata of the ImportDeclaration match the filter exposed by the {@link ImporterService}s bound.
If the ImportDeclaration matches the ImporterService filter, link them together. | @Bind(id = "importDeclarations", specification = ImportDeclaration.class, aggregate = true, optional = true)
void bindImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) {
synchronized (lock) {
declarationsManager.add(importDeclarationSRef);
if (!declaratio... | Bind the {@link ImportDeclaration} matching the filter ImportDeclarationFilter.
<p/>
Check if metadata of the ImportDeclaration match the filter exposed by the {@link ImporterService}s bound.
If the ImportDeclaration matches the ImporterService filter, link them together.
@Bind(id = "importDeclarations", specification... | 179 | 272 | 728 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3af5f3be473174b6f9d0f7011992462c33bb2f024d0e7e11309fc58b021b11d5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
09b86027a4e2d504189b1654 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.modifiedImportDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L248-L261 | train | java | Unbind and bind the {@link ImportDeclaration}. | @Modified(id = "importDeclarations")
void modifiedImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) {
LOG.debug(linkerName + " : Modify the ImportDeclaration "
+ declarationsManager.getDeclaration(importDeclarationSRef));
synchronized (lock) {
... | Unbind and bind the {@link ImportDeclaration}.
@Modified(id = "importDeclarations")
void modifiedImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) {
LOG.debug(linkerName + " : Modify the ImportDeclaration "
+ declarationsManager.getDeclaration(importDeclarationSRe... | 120 | 46 | 633 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b1c8e3dda3fe80fc89fc33aa885b788698172e2213d85999558b6e636d04ac57 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
92202862e8ba9e1bcc55f4f9 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.unbindImportDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L266-L286 | train | java | Unbind the {@link ImportDeclaration}. | @Unbind(id = "importDeclarations")
void unbindImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) {
try {
if (!declarationsManager.matched(importDeclarationSRef)) {
LOG.debug("Declaration {} do not match service, skipping",declarationsManager.getDeclarat... | Unbind the {@link ImportDeclaration}.
@Unbind(id = "importDeclarations")
void unbindImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) {
try {
if (!declarationsManager.matched(importDeclarationSRef)) {
LOG.debug("Declaration {} do not match service, sk... | 157 | 37 | 831 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 48fcb1336b7193c616e0fab43f1d646b9c92709897e901c045b06a0bf7460f18 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
435ba13cd86878a8a23940b7 | before/quality-check | modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/domain/Type.java | Type.createGenericDeclaration | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/domain/Type.java#L147-L151 | train | java | Creates a new instance of {@code GenericDeclaration} when the given declaration is not empty other wise it
returns {@link GenericDeclaration#UNDEFINED}.
@param declaration
declaration of a generic
@return instance of {@code GenericDeclaration} and never null | @Nonnull
private static GenericDeclaration createGenericDeclaration(@Nonnull final String declaration) {
Check.notNull(declaration, "declaration");
return declaration.isEmpty() ? GenericDeclaration.UNDEFINED : GenericDeclaration.of(declaration);
} | Creates a new instance of {@code GenericDeclaration} when the given declaration is not empty other wise it
returns {@link GenericDeclaration#UNDEFINED}.
@param declaration
declaration of a generic
@return instance of {@code GenericDeclaration} and never null
@Nonnull
private static GenericDeclaration createGenericDe... | 96 | 259 | 253 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a478a73a185b120ea29559dff9042ad447dafd9f51da7d4cd4f4aad5458faa4a | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
aaceb124687061ed1e3088e2 | before/quality-check | modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/domain/Type.java | Type.createPackage | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/domain/Type.java#L161-L165 | train | java | Creates a new instance of {@code Package} when the given name is not empty other wise it returns
{@link Package#UNDEFINED}.
@param packageName
package name
@return instance of {@code Package} and never null | @Nonnull
private static Package createPackage(@Nonnull final String packageName) {
Check.notNull(packageName, "packageName");
return packageName.isEmpty() ? Package.UNDEFINED : new Package(packageName);
} | Creates a new instance of {@code Package} when the given name is not empty other wise it returns
{@link Package#UNDEFINED}.
@param packageName
package name
@return instance of {@code Package} and never null
@Nonnull
private static Package createPackage(@Nonnull final String packageName) {
Check.notNull(packageName... | 87 | 207 | 210 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f1e9972681e087e001e64849a71bc2a3b18aa314b76f0b61ca71d872de6df0a0 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
5e0881d4fd99fe90e4179fb5 | before/quality-check | modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/domain/Type.java | Type.evaluateJavaLangType | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/domain/Type.java#L175-L186 | train | java | Checks if the passed type is a type of <code>java.lang</code>. If it is a type of <code>java.lang</code> the
matching type will be returned otherwise {@code null}.
@param name
simple or qualified name of a type
@return matching type or {@code null} | @Nullable
public static Type evaluateJavaLangType(@Nonnull final String name) {
Check.notEmpty(name, "name");
Type ret = null;
for (final Type type : JAVA_LANG_VALUE_TYPES) {
if (type.getName().equals(name.replace("java.lang.", ""))) {
ret = type;
break;
}
}
return ret;
} | Checks if the passed type is a type of <code>java.lang</code>. If it is a type of <code>java.lang</code> the
matching type will be returned otherwise {@code null}.
@param name
simple or qualified name of a type
@return matching type or {@code null}
@Nullable
public static Type evaluateJavaLangType(@Nonnull final Str... | 144 | 249 | 298 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 85c29f6722fedd406f3f460d3bc77d17783444f0ec7d5a171cba6a6b30ea037e | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
588b791e066476e8e917b43b | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java | ProcComm.main | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java#L169-L190 | train | java | Entry point for running ProcComm.
<p>
An IP host or port identifier has to be supplied, specifying the endpoint for the
KNX network access.<br>
To show the usage message of this tool on the console, supply the command line
option -help (or -h).<br>
Command line options are treated case sensitive. Available options for ... | public static void main(String[] args)
{
try {
final ProcComm pc = new ProcComm(args, null);
// use a log writer for the console (System.out), setting the user
// specified log level, if any
pc.w = new ConsoleWriter(pc.options.containsKey("verbose"));
if (pc.options.containsKey("read") == pc.op... | Entry point for running ProcComm.
<p>
An IP host or port identifier has to be supplied, specifying the endpoint for the
KNX network access.<br>
To show the usage message of this tool on the console, supply the command line
option -help (or -h).<br>
Command line options are treated case sensitive. Available options for ... | 714 | 1,805 | 625 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e3093c0dc1006b78fa77f35469ff19b6150a0285781d4e87aff00c075deba637 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b9f0ef9750d04fa128feab1e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java | ProcComm.run | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java#L201-L215 | train | java | Runs the process communicator.
<p>
This method immediately returns when the process communicator is running. Call
{@link #quit()} to quit process communication.
@param l a process event listener, can be <code>null</code>
@throws KNXException on problems creating network link or communication | public void run(ProcessListener l) throws KNXException
{
// create the network link to the KNX network
final KNXNetworkLink lnk = createLink();
LogManager.getManager().addWriter(lnk.getName(), w);
// create process communicator with the established link
pc = new ProcessCommunicatorImpl(lnk);
if (l !... | Runs the process communicator.
<p>
This method immediately returns when the process communicator is running. Call
{@link #quit()} to quit process communication.
@param l a process event listener, can be <code>null</code>
@throws KNXException on problems creating network link or communication
public void run(ProcessLi... | 201 | 293 | 599 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 796fc3a858bbde12ad3f154e31da601e9143db483bde82f546c19ff4c5b030bb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
163e4a64f93bc460e33ecc95 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java | ProcComm.quit | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java#L222-L230 | train | java | Quits process communication.
<p>
Detaches the network link from the process communicator and closes the link. | public void quit()
{
if (pc != null) {
final KNXNetworkLink lnk = pc.detach();
if (lnk != null)
lnk.close();
Runtime.getRuntime().removeShutdownHook(sh);
}
} | Quits process communication.
<p>
Detaches the network link from the process communicator and closes the link.
public void quit()
{
if (pc != null) {
final KNXNetworkLink lnk = pc.detach();
if (lnk != null)
lnk.close();
Runtime.getRuntime().removeShutdownHook(sh);
}
} | 75 | 109 | 184 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 64f4627ac1944ebd91b949f9137acfabb37490b3ed3f48ad0784c132bb3cc750 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
7d39b7dc9ad64f48b187c3b5 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java | ProcComm.createLink | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java#L240-L262 | train | java | Creates the KNX network link to access the network specified in
<code>options</code>.
<p>
@return the KNX network link
@throws KNXException on problems on link creation | private KNXNetworkLink createLink() throws KNXException
{
final KNXMediumSettings medium = (KNXMediumSettings) options.get("medium");
if (options.containsKey("serial")) {
// create FT1.2 network link
final String p = (String) options.get("serial");
try {
return new KNXNetworkLinkFT12(Integer.pa... | Creates the KNX network link to access the network specified in
<code>options</code>.
<p>
@return the KNX network link
@throws KNXException on problems on link creation
private KNXNetworkLink createLink() throws KNXException
{
final KNXMediumSettings medium = (KNXMediumSettings) options.get("medium");
if (opt... | 283 | 169 | 986 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 96eaa25d324e615993fc2e6f0fbe121526ee94404c8d755ac65388b5a51949e8 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
014eb0408de8f81a12c79701 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java | ProcComm.getDPT | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java#L272-L288 | train | java | Gets the datapoint type identifier from the <code>options</code>, and maps alias
names of common datapoint types to its datapoint type ID.
<p>
The option map must contain a "dpt" key with value.
@return datapoint type identifier | private String getDPT()
{
final String dpt = (String) options.get("dpt");
if (dpt.equals("switch"))
return "1.001";
if (dpt.equals("bool"))
return "1.002";
if (dpt.equals("string"))
return "16.001";
if (dpt.equals("float"))
return "9.002";
if (dpt.equals("ucount"))
return "5.010"... | Gets the datapoint type identifier from the <code>options</code>, and maps alias
names of common datapoint types to its datapoint type ID.
<p>
The option map must contain a "dpt" key with value.
@return datapoint type identifier
private String getDPT()
{
final String dpt = (String) options.get("dpt");
if (dpt... | 181 | 229 | 388 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5704af5a0304568e7d1fb9aad45ff053791f79d38827f2f0079c1d539b842811 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c2f5d8fd5e9b8ee7da14106c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java | ProcComm.getMedium | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/ProcComm.java#L441-L455 | train | java | Creates a medium settings type for the supplied medium identifier.
<p>
@param id a medium identifier from command line option
@return medium settings object
@throws KNXIllegalArgumentException on unknown medium identifier | private static KNXMediumSettings getMedium(String id)
{
if (id.equals("tp0"))
return TPSettings.TP0;
else if (id.equals("tp1"))
return TPSettings.TP1;
else if (id.equals("p110"))
return new PLSettings(false);
else if (id.equals("p132"))
return new PLSettings(true);
else if (id.equals("r... | Creates a medium settings type for the supplied medium identifier.
<p>
@param id a medium identifier from command line option
@return medium settings object
@throws KNXIllegalArgumentException on unknown medium identifier
private static KNXMediumSettings getMedium(String id)
{
if (id.equals("tp0"))
return TP... | 151 | 222 | 430 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fffb679ae0ececc124bc7c13c4e35ef1713fc70db4f478d5380758c14abdb23a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4b153d9e1d4d547c455da362 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/ErrorHandler.java | ErrorHandler.error | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/ErrorHandler.java#L112-L134 | train | java | Invoked on a log writer error event.
<p>
The default behavior used here prints the logging source and the error message to
the system standard error stream (System.err). If an exception object is given, the
exception and the last method calls of the log writer leading to the error are also
printed.<br>
Only predefined ... | public synchronized void error(LogWriter source, String msg, Exception e)
{
if (invocations >= maxInvocations)
return;
++invocations;
String out = source + ": " + msg;
StackTraceElement[] trace = null;
if (e != null) {
out += " (" + e.getMessage() + ")";
trace = e.getStackTrace();
}
... | Invoked on a log writer error event.
<p>
The default behavior used here prints the logging source and the error message to
the system standard error stream (System.err). If an exception object is given, the
exception and the last method calls of the log writer leading to the error are also
printed.<br>
Only predefined ... | 281 | 544 | 628 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a695373620f95dee6dad92ce83f14112de68228baf9e46c50210d60864a7104c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b3576794744e9ac3faac8534 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveCommandClass.java | ZWaveCommandClass.getInstance | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveCommandClass.java#L180-L182 | train | java | Gets an instance of the right command class.
Returns null if the command class is not found.
@param i the code to instantiate
@param node the node this instance commands.
@param controller the controller to send messages to.
@return the ZWaveCommandClass instance that was instantiated, null otherwise | public static ZWaveCommandClass getInstance(int i, ZWaveNode node, ZWaveController controller) {
return ZWaveCommandClass.getInstance(i, node, controller, null);
} | Gets an instance of the right command class.
Returns null if the command class is not found.
@param i the code to instantiate
@param node the node this instance commands.
@param controller the controller to send messages to.
@return the ZWaveCommandClass instance that was instantiated, null otherwise
public static ZWa... | 95 | 301 | 168 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f680d91aefea996caf55efc96904c67b77353b47a9bab18531df108ab6eaadd3 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f1e5b3191e7f104050012fd7 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveCommandClass.java | ZWaveCommandClass.getInstance | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveCommandClass.java#L193-L219 | train | java | Gets an instance of the right command class.
Returns null if the command class is not found.
@param i the code to instantiate
@param node the node this instance commands.
@param controller the controller to send messages to.
@param endpoint the endpoint this Command class belongs to
@return the ZWaveCommandClass instan... | public static ZWaveCommandClass getInstance(int i, ZWaveNode node, ZWaveController controller, ZWaveEndpoint endpoint) {
logger.debug(String.format("Creating new instance of command class 0x%02X", i));
try {
CommandClass commandClass = CommandClass.getCommandClass(i);
if (commandClass == null) {
logg... | Gets an instance of the right command class.
Returns null if the command class is not found.
@param i the code to instantiate
@param node the node this instance commands.
@param controller the controller to send messages to.
@param endpoint the endpoint this Command class belongs to
@return the ZWaveCommandClass instan... | 362 | 360 | 1,262 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c948e7c949aa9ea3162394e4e4679d59210e34d9d9a3b8f3dcda424f112e093e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
357c4771a8aaa816dce315d2 | ow2-chameleon/fuchsia | exporters/json-rpc/src/main/java/org/ow2/chameleon/fuchsia/exporter/jsonrpc/JSONRPCExporter.java | JSONRPCExporter.unregisterAllServlets | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/exporters/json-rpc/src/main/java/org/ow2/chameleon/fuchsia/exporter/jsonrpc/JSONRPCExporter.java#L161-L169 | train | java | Unregister all servlets registered by this exporter. | private void unregisterAllServlets() {
for (String endpoint : registeredServlets) {
registeredServlets.remove(endpoint);
web.unregister(endpoint);
LOG.info("endpoint {} unregistered", endpoint);
}
} | Unregister all servlets registered by this exporter.
private void unregisterAllServlets() {
for (String endpoint : registeredServlets) {
registeredServlets.remove(endpoint);
web.unregister(endpoint);
LOG.info("endpoint {} unregistered", endpoint);
}
} | 56 | 52 | 256 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d8fdf09150b8c91401119bb2cbf06d4c2459e4c780102e526022089732dbb579 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
e75b61453029afd75db94ea3 | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/drift/StaticDriftCalculator.java | StaticDriftCalculator.calculateDrift | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/drift/StaticDriftCalculator.java#L40-L64 | train | java | Calculates the static drift. Static means, that the drift does not change direction or intensity over time.
@param tracks Tracks which seems to exhibit a local drift
@return The static drift over all trajectories | public double[] calculateDrift(ArrayList<T> tracks){
double[] result = new double[3];
double sumX =0;
double sumY = 0;
double sumZ = 0;
int N=0;
for(int i = 0; i < tracks.size(); i++){
T t = tracks.get(i);
TrajectoryValidIndexTimelagIterator it = new TrajectoryValidIndexTimelagIterator(t,1);
/... | Calculates the static drift. Static means, that the drift does not change direction or intensity over time.
@param tracks Tracks which seems to exhibit a local drift
@return The static drift over all trajectories
public double[] calculateDrift(ArrayList<T> tracks){
double[] result = new double[3];
double sumX ... | 269 | 213 | 624 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bc420d752a1c6e4ff8f7ab3cf4f86981a697af6b5a165b5869b9032471ecc272 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
f3eda51ff1c86bb57ff6a934 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/RuntimeInstantiationException.java | RuntimeInstantiationException.determineMessage | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/RuntimeInstantiationException.java#L50-L52 | 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 className
the name of the passed {@link Class}
@return {@code DEFAULT_M... | private static String determineMessage(@Nullable final String className) {
return className != null && !className.isEmpty() ? format(className) : DEFAULT_MESSAGE;
} | Determines the message to be used, depending on the passed argument name. If if the given argument name is
{@code null} or empty {@code DEFAULT_MESSAGE} will be returned, otherwise a formatted {@code MESSAGE_WITH_NAME}
with the passed name.
@param className
the name of the passed {@link Class}
@return {@code DEFAULT_M... | 125 | 428 | 167 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 09e901e74d4c0cbf9e345219b048c629d2f1ffe2d45cf59d6e70aed460090743 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
25c74b425edc443b0114e31d | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveEndpoint.java | ZWaveEndpoint.addCommandClass | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveEndpoint.java#L112-L117 | train | java | Adds a command class to the list of supported command classes by this
endpoint. 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);
}
} | Adds a command class to the list of supported command classes by this
endpoint. 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();
... | 89 | 182 | 246 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4ce6ad0a2eb2253afb968e9063cd88c717d4d88cb1763f2037e765798df489f3 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
df372f8c3c6bac0596a9f8bd | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerManagement.java | LinkerManagement.canBeLinked | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerManagement.java#L53-L57 | train | java | Return true if the Declaration can be linked to the ImporterService.
@param declaration The Declaration
@param declarationBinderRef The ServiceReference<ImporterService> of the ImporterService
@return true if the Declaration can be linked to the ImporterService | public boolean canBeLinked(D declaration, ServiceReference<S> declarationBinderRef) {
// Evaluate the target filter of the ImporterService on the Declaration
Filter filter = bindersManager.getTargetFilter(declarationBinderRef);
return filter.matches(declaration.getMetadata());
} | Return true if the Declaration can be linked to the ImporterService.
@param declaration The Declaration
@param declarationBinderRef The ServiceReference<ImporterService> of the ImporterService
@return true if the Declaration can be linked to the ImporterService
public boolean canBeLinked(D declaration, Servi... | 108 | 271 | 307 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 780fb94f2f438e42f7f63095cbc43513c6e2bc689eb6fc4c1ff93f5d632feeef | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c93fa81bec19b5257cb0bef9 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerManagement.java | LinkerManagement.link | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerManagement.java#L67-L80 | train | java | Try to link the declaration with the importerService referenced by the ServiceReference,.
return true if they have been link together, false otherwise.
@param declaration The Declaration
@param declarationBinderRef The ServiceReference<S> of S
@return true if they have been link together, false otherwise. | public boolean link(D declaration, ServiceReference<S> declarationBinderRef) {
S declarationBinder = bindersManager.getDeclarationBinder(declarationBinderRef);
LOG.debug(declaration + " match the filter of " + declarationBinder + " : bind them together");
declaration.bind(declarationBinderRef);
... | Try to link the declaration with the importerService referenced by the ServiceReference,.
return true if they have been link together, false otherwise.
@param declaration The Declaration
@param declarationBinderRef The ServiceReference<S> of S
@return true if they have been link together, false otherwise.
pu... | 182 | 316 | 679 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 192725e375a0007975a9b1bc8a25ea225524e6b0083907421cd00491b3807620 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1311214807f9727c4fc8668d | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerManagement.java | LinkerManagement.unlink | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerManagement.java#L90-L103 | train | java | Try to unlink the declaration from the importerService referenced by the ServiceReference,.
return true if they have been cleanly unlink, false otherwise.
@param declaration The Declaration
@param declarationBinderRef The ServiceReference of the ImporterService
@return true if they have been cleanly unlink, f... | public boolean unlink(D declaration, ServiceReference<S> declarationBinderRef) {
S declarationBinder = bindersManager.getDeclarationBinder(declarationBinderRef);
try {
declarationBinder.removeDeclaration(declaration);
} catch (BinderException e) {
LOG.debug(declarationBin... | Try to unlink the declaration from the importerService referenced by the ServiceReference,.
return true if they have been cleanly unlink, false otherwise.
@param declaration The Declaration
@param declarationBinderRef The ServiceReference of the ImporterService
@return true if they have been cleanly unlink, f... | 167 | 335 | 616 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d8c3039af6ba7d6af07ca412b68423f259f13ae9de2473a434535b25bec34722 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
95e25c11d2d1d5ef472d5668 | before/quality-check | modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/domain/Package.java | Package.removeLastDot | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/domain/Package.java#L51-L53 | train | java | Filters a dot at the end of the passed package name if present.
@param pkgName
a package name
@return a filtered package name | private static String removeLastDot(final String pkgName) {
return pkgName.charAt(pkgName.length() - 1) == Characters.DOT ? pkgName.substring(0, pkgName.length() - 1) : pkgName;
} | Filters a dot at the end of the passed package name if present.
@param pkgName
a package name
@return a filtered package name
private static String removeLastDot(final String pkgName) {
return pkgName.charAt(pkgName.length() - 1) == Characters.DOT ? pkgName.substring(0, pkgName.length() - 1) : pkgName;
} | 78 | 126 | 182 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 27954db41404a94b9d841e26422dc35147f0d86a6857dc69d35f98792ca04c7f | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
1de6b476066033af26296fa5 | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/simulation/ConfinedDiffusionSimulator.java | ConfinedDiffusionSimulator.nextConfinedPosition | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/simulation/ConfinedDiffusionSimulator.java#L73-L95 | train | java | Simulates a single step (for dt) of a confined diffusion inside of a circle.
Therefore each step is split up in N substeps. A substep which collidates
with an object is set to the previous position.
@param Nsub number of substeps
@return | private Point3d nextConfinedPosition(Point3d lastPosition){
double timelagSub = timelag / numberOfSubsteps;
Point3d center = new Point3d(0, 0, 0);
Point3d lastValidPosition = lastPosition;
int validSteps = 0;
while(validSteps<numberOfSubsteps){
double u = r.nextDouble();
double steplength = Math.sqrt... | Simulates a single step (for dt) of a confined diffusion inside of a circle.
Therefore each step is split up in N substeps. A substep which collidates
with an object is set to the previous position.
@param Nsub number of substeps
@return
private Point3d nextConfinedPosition(Point3d lastPosition){
double timelagSu... | 247 | 237 | 680 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 42f6c5df0276ff204848e027e4403c54a2c39dbecb555ca57becfa2f0fe09aa2 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
2ba6543e08f636ef3268a6e8 | before/quality-check | modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/util/SourceCodeFormatter.java | SourceCodeFormatter.findDefaultProperties | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/util/SourceCodeFormatter.java#L146-L156 | train | java | Gets the default options to be passed when no custom properties are given.
@return properties with formatter options | @Nonnull
private static Properties findDefaultProperties() {
final InputStream in = SourceCodeFormatter.class.getClassLoader().getResourceAsStream(DEFAULT_PROPERTIES_PATH);
final Properties p = new Properties();
try {
p.load(in);
} catch (final IOException e) {
throw new RuntimeException(String.format("C... | Gets the default options to be passed when no custom properties are given.
@return properties with formatter options
@Nonnull
private static Properties findDefaultProperties() {
final InputStream in = SourceCodeFormatter.class.getClassLoader().getResourceAsStream(DEFAULT_PROPERTIES_PATH);
final Properties p = ne... | 102 | 117 | 391 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c1e034e7f374c1c75abf6b23e5b56562905af4d37aacfa815933d4975003f137 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
c6b8c4b14acf1ef470beb911 | before/quality-check | modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/util/SourceCodeFormatter.java | SourceCodeFormatter.format | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-immutable-object/src/main/java/net/sf/qualitycheck/immutableobject/util/SourceCodeFormatter.java#L180-L208 | train | java | Pretty prints the given source code.
@param code
source code to format
@param options
formatter options
@param lineEnding
desired line ending
@return formatted source code | public static String format(final String code, final Properties options, final LineEnding lineEnding) {
Check.notEmpty(code, "code");
Check.notEmpty(options, "options");
Check.notNull(lineEnding, "lineEnding");
final CodeFormatter formatter = ToolFactory.createCodeFormatter(options);
final String lineSeparat... | Pretty prints the given source code.
@param code
source code to format
@param options
formatter options
@param lineEnding
desired line ending
@return formatted source code
public static String format(final String code, final Properties options, final LineEnding lineEnding) {
Check.notEmpty(code, "code");
Check.no... | 268 | 172 | 968 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1798721ed2d31cbb2cd8bcf14eeb4f0a09f58e1fa3d9ce46108c9678c86009be | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
7e2687c251f61b9185617505 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java | DefaultExportationLinker.processProperties | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java#L114-L133 | train | java | Get the filters ExporterServiceFilter and ExportDeclarationFilter from the properties, stop the instance if one of.
them is invalid. | private void processProperties() {
state = true;
try {
exporterServiceFilter = getFilter(exporterServiceFilterProperty);
} catch (InvalidFilterException invalidFilterException) {
LOG.debug("The value of the Property " + FILTER_EXPORTERSERVICE_PROPERTY + " is invalid,"
... | Get the filters ExporterServiceFilter and ExportDeclarationFilter from the properties, stop the instance if one of.
them is invalid.
private void processProperties() {
state = true;
try {
exporterServiceFilter = getFilter(exporterServiceFilterProperty);
} catch (InvalidFilterExcepti... | 200 | 132 | 941 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5c5bd2372f294683e428efafec14205417e2ef4f646c91e39485a48bdf400a5a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
8f8c8f2ab24cf0635afab280 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java | DefaultExportationLinker.updated | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java#L141-L148 | train | java | Called by iPOJO when the configuration of the DefaultExportationLinker is updated.
<p/>
Call #processProperties() to get the updated filters ExporterServiceFilter and ExportDeclarationFilter.
Compute and apply the changes in the links relatives to the changes in the filters. | @Updated
public void updated() {
processProperties();
synchronized (lock) {
exportersManager.applyFilterChanges(exporterServiceFilter);
declarationsManager.applyFilterChanges(exportDeclarationFilter);
}
} | Called by iPOJO when the configuration of the DefaultExportationLinker is updated.
<p/>
Call #processProperties() to get the updated filters ExporterServiceFilter and ExportDeclarationFilter.
Compute and apply the changes in the links relatives to the changes in the filters.
@Updated
public void updated() {
... | 101 | 275 | 260 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c324423fc70cbbf334893efc2dfd3ae5906960f50ee31665576d8566d54d07d4 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5fe363a9efe80f60c0879eed | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java | DefaultExportationLinker.bindExporterService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java#L156-L177 | train | java | Bind the {@link ExporterService} matching the exporterServiceFilter.
<p/>
Check all the already bound {@link ExportDeclaration}s, if the metadata of the ExportDeclaration match the filter
exposed by the ExporterService, link them together. | @Bind(id = "exporterServices", specification = ExporterService.class, aggregate = true, optional = true)
void bindExporterService(ServiceReference<ExporterService> serviceReference) {
synchronized (lock) {
try {
exportersManager.add(serviceReference);
} catch (Invalid... | Bind the {@link ExporterService} matching the exporterServiceFilter.
<p/>
Check all the already bound {@link ExportDeclaration}s, if the metadata of the ExportDeclaration match the filter
exposed by the ExporterService, link them together.
@Bind(id = "exporterServices", specification = ExporterService.class, aggregate... | 256 | 239 | 1,230 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a9e7318b9f5e93156d64733b932a7287871affb3c899f17ba7dcf67bf635e5c9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5004dd82eaa0284e4438b4c9 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java | DefaultExportationLinker.modifiedExporterService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java#L185-L203 | train | java | Update the Target Filter of the ExporterService.
Apply the induce modifications on the links of the ExporterService
@param serviceReference | @Modified(id = "exporterServices")
void modifiedExporterService(ServiceReference<ExporterService> serviceReference) {
try {
exportersManager.modified(serviceReference);
} catch (InvalidFilterException invalidFilterException) {
LOG.error("The ServiceProperty \"" + TARGET_FILTE... | Update the Target Filter of the ExporterService.
Apply the induce modifications on the links of the ExporterService
@param serviceReference
@Modified(id = "exporterServices")
void modifiedExporterService(ServiceReference<ExporterService> serviceReference) {
try {
exportersManager.modified(serv... | 188 | 140 | 956 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 21daf1415855bd914b759318f86525e7f2e726ffc1ed9c82efa1a48f677f98e3 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4905e8ae323c7dc7ed6a0636 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java | DefaultExportationLinker.unbindExporterService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java#L208-L215 | train | java | Unbind the {@link ExporterService}. | @Unbind(id = "exporterServices")
void unbindExporterService(ServiceReference<ExporterService> serviceReference) {
LOG.debug(linkerName + " : Unbind the ExporterService " + exportersManager.getDeclarationBinder(serviceReference));
synchronized (lock) {
exportersManager.removeLinks(service... | Unbind the {@link ExporterService}.
@Unbind(id = "exporterServices")
void unbindExporterService(ServiceReference<ExporterService> serviceReference) {
LOG.debug(linkerName + " : Unbind the ExporterService " + exportersManager.getDeclarationBinder(serviceReference));
synchronized (lock) {
... | 86 | 35 | 402 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c81fdc541787a4f04da8ff8fe82837f2b168794272f907bbef5daa749a1911d1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4b6cb8010cfac44548362ca6 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java | DefaultExportationLinker.bindExportDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java#L223-L235 | train | java | Bind the {@link ExportDeclaration} matching the filter ExportDeclarationFilter.
<p/>
Check if metadata of the ExportDeclaration match the filter exposed by the {@link ExporterService}s bound.
If the ExportDeclaration matches the ExporterService filter, link them together. | @Bind(id = "exportDeclarations", specification = ExportDeclaration.class, aggregate = true, optional = true)
void bindExportDeclaration(ServiceReference<ExportDeclaration> exportDeclarationSRef) {
synchronized (lock) {
declarationsManager.add(exportDeclarationSRef);
LOG.debug(linkerN... | Bind the {@link ExportDeclaration} matching the filter ExportDeclarationFilter.
<p/>
Check if metadata of the ExportDeclaration match the filter exposed by the {@link ExporterService}s bound.
If the ExportDeclaration matches the ExporterService filter, link them together.
@Bind(id = "exportDeclarations", specification... | 169 | 272 | 634 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b4c8df4828b5310ba3398b7c8ae3c4096daf9ead14a7d8ab4e05d5492b8e8ad8 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1e5fa30230ff25804e64473b | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java | DefaultExportationLinker.modifiedExportDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java#L241-L254 | train | java | Unbind and bind the {@link ExportDeclaration}. | @Modified(id = "exportDeclarations")
void modifiedExportDeclaration(ServiceReference<ExportDeclaration> exportDeclarationSRef) {
LOG.debug(linkerName + " : Modify the ExportDeclaration "
+ declarationsManager.getDeclaration(exportDeclarationSRef));
synchronized (lock) {
... | Unbind and bind the {@link ExportDeclaration}.
@Modified(id = "exportDeclarations")
void modifiedExportDeclaration(ServiceReference<ExportDeclaration> exportDeclarationSRef) {
LOG.debug(linkerName + " : Modify the ExportDeclaration "
+ declarationsManager.getDeclaration(exportDeclarationSRe... | 125 | 46 | 633 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 92fb1f977968da125699ac0d4a21894750ddd1b066c60d9a2f2faa74520b661b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
687f4a6c0813a517bae0f085 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java | DefaultExportationLinker.unbindExportDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultExportationLinker.java#L259-L268 | train | java | Unbind the {@link ExportDeclaration}. | @Unbind(id = "exportDeclarations")
void unbindExportDeclaration(ServiceReference<ExportDeclaration> exportDeclarationSRef) {
LOG.debug(linkerName + " : Unbind the ExportDeclaration "
+ declarationsManager.getDeclaration(exportDeclarationSRef));
synchronized (lock) {
decl... | Unbind the {@link ExportDeclaration}.
@Unbind(id = "exportDeclarations")
void unbindExportDeclaration(ServiceReference<ExportDeclaration> exportDeclarationSRef) {
LOG.debug(linkerName + " : Unbind the ExportDeclaration "
+ declarationsManager.getDeclaration(exportDeclarationSRef));
... | 95 | 37 | 450 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 30623ff837dde676d6d60cb76ceae3a7bafc23638098cad8e0f6ebf50238800a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1dc1c06ef28163064fbd6177 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java | ConnectionImpl.addConnectionListener | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java#L198-L210 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.KNXnetIPConnection#addConnectionListener
(tuwien.auto.calimero.KNXListener) | public void addConnectionListener(KNXListener l)
{
if (l == null)
return;
synchronized (listeners) {
if (!listeners.contains(l)) {
listeners.add(l);
listenersCopy = new ArrayList(listeners);
}
else
logger.warn("event listener already registered");
}
} | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.KNXnetIPConnection#addConnectionListener
(tuwien.auto.calimero.KNXListener)
public void addConnectionListener(KNXListener l)
{
if (l == null)
return;
synchronized (listeners) {
if (!listeners.contains(l)) {
listeners.add(l);
listenersCopy = ... | 111 | 127 | 295 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d9d6a5634a31bc5d0776e3f3a8e33914f381265f6f0a3d22b7941259519f9849 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6aa049702dca91915e65824a | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java | ConnectionImpl.removeConnectionListener | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java#L216-L222 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.KNXnetIPConnection#removeConnectionListener
(tuwien.auto.calimero.KNXListener) | public void removeConnectionListener(KNXListener l)
{
synchronized (listeners) {
if (listeners.remove(l))
listenersCopy = new ArrayList(listeners);
}
} | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.KNXnetIPConnection#removeConnectionListener
(tuwien.auto.calimero.KNXListener)
public void removeConnectionListener(KNXListener l)
{
synchronized (listeners) {
if (listeners.remove(l))
listenersCopy = new ArrayList(listeners);
}
} | 79 | 130 | 170 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8f0ee407f2e05e526e20b563e55a836260ab8ac3de2b3f12f97f15d64abbf092 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d8e211c201b2e80850a817aa | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java | ConnectionImpl.send | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java#L242-L334 | train | java | <p>
If <code>mode</code> is {@link KNXnetIPConnection#WAIT_FOR_CON} or
{@link KNXnetIPConnection#WAIT_FOR_ACK}, the sequence order of more
{@link #send(CEMI, tuwien.auto.calimero.knxnetip.KNXnetIPConnection.BlockingMode)}
calls from different threads is being maintained according to invocation order
(FIFO).<br>
A call ... | public void send(CEMI frame, BlockingMode mode) throws KNXTimeoutException,
KNXConnectionClosedException
{
// send state | blocking | nonblocking
// -----------------------------------
// OK |send+wait | send+return
// WAIT |wait+s.+w.| throw
// ACK_ERROR |send+wait | send+return
/... | <p>
If <code>mode</code> is {@link KNXnetIPConnection#WAIT_FOR_CON} or
{@link KNXnetIPConnection#WAIT_FOR_ACK}, the sequence order of more
{@link #send(CEMI, tuwien.auto.calimero.knxnetip.KNXnetIPConnection.BlockingMode)}
calls from different threads is being maintained according to invocation order
(FIFO).<br>
A call ... | 1,044 | 911 | 3,403 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5afd5cc32fe15306a3f80b1e33f7f50d156f72e11f3c20f4552df453e4dbc588 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
50a446ad8ff0cef687fac38e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java | ConnectionImpl.connect | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java#L377-L431 | train | java | Opens a new IP communication channel to a remote server.
<p>
The communication state of this object is assumed to be closed state. This method
is designed to be called only once during the objects lifetime!
@param localEP the local endpoint to use for communication channel
@param serverCtrlEP the remote server control... | protected void connect(InetSocketAddress localEP, InetSocketAddress serverCtrlEP,
CRI cri, boolean useNAT) throws KNXException
{
ctrlEP = serverCtrlEP;
isNatAware = useNAT;
logger = LogManager.getManager().getLogService(getName());
try {
// if we allow localEP to be null, we would create an unbound... | Opens a new IP communication channel to a remote server.
<p>
The communication state of this object is assumed to be closed state. This method
is designed to be called only once during the objects lifetime!
@param localEP the local endpoint to use for communication channel
@param serverCtrlEP the remote server control... | 720 | 893 | 2,195 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c4e87cb2c7a8f5d8ff2993b08f06da01d12978fcbd0e792f7b54822726ad58a1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d73968c17ee25c879bede164 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java | ConnectionImpl.fireFrameReceived | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/ConnectionImpl.java#L481-L494 | train | java | Fires a frame received event ({@link KNXListener#frameReceived(FrameEvent)}) for
the supplied cEMI <code>frame</code>.
@param frame the cEMI to generate the event for | protected void fireFrameReceived(CEMI frame)
{
final FrameEvent fe = new FrameEvent(this, frame);
for (final Iterator i = listenersCopy.iterator(); i.hasNext();) {
final KNXListener l = (KNXListener) i.next();
try {
l.frameReceived(fe);
}
catch (final RuntimeException e) {
removeConnec... | Fires a frame received event ({@link KNXListener#frameReceived(FrameEvent)}) for
the supplied cEMI <code>frame</code>.
@param frame the cEMI to generate the event for
protected void fireFrameReceived(CEMI frame)
{
final FrameEvent fe = new FrameEvent(this, frame);
for (final Iterator i = listenersCopy.iterato... | 143 | 167 | 399 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6307c397df3d07dcebc6acbbc7ba3bcf322ccc72f2534f27b9df29f6b7c65ded | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c7daee3372235e1eaa639464 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java | StateDP.add | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java#L220-L232 | train | java | Adds a group address to this datapoint to indicate that KNX messages with that
address are allowed to alter the associated datapoint state (i.e. a state value
related to this datapoint).
<p>
A group address can be marked as updating a state or invalidating a state. An
address is added at most once to each category.
@p... | public final void add(GroupAddress a, boolean isUpdating)
{
if (getMainAddress().equals(a))
throw new KNXIllegalArgumentException("address equals datapoint main address");
if (isUpdating) {
if (!updating.contains(a))
updating.add(a);
}
else {
if (!invalidating.contains(a))
invalidati... | Adds a group address to this datapoint to indicate that KNX messages with that
address are allowed to alter the associated datapoint state (i.e. a state value
related to this datapoint).
<p>
A group address can be marked as updating a state or invalidating a state. An
address is added at most once to each category.
@p... | 200 | 497 | 339 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | cbe1c48e9131873bcf3094aedb04494d8501cd0963c2196b603ccda63417ca33 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
e49fddff30ac1ff86ae7a96d | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java | StateDP.remove | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java#L244-L250 | train | java | Removes a state updating/invalidating group address from this datapoint.
<p>
The group address is no longer contained in the corresponding updating/invalidating
category.
@param a the KNX group address to remove
@param fromUpdating <code>true</code> to remove from updating this datapoint
state, <code>false</code> to r... | public final void remove(GroupAddress a, boolean fromUpdating)
{
if (fromUpdating)
updating.remove(a);
else
invalidating.remove(a);
} | Removes a state updating/invalidating group address from this datapoint.
<p>
The group address is no longer contained in the corresponding updating/invalidating
category.
@param a the KNX group address to remove
@param fromUpdating <code>true</code> to remove from updating this datapoint
state, <code>false</code> to r... | 117 | 364 | 151 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 833626f329f6ad3e09ab80779a45e4c10238aa9d7b1ca3a495506723357f53a2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f4b57c36eede5d37e2e1c9ae | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java | StateDP.doLoad | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java#L306-L336 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.datapoint.Datapoint#doLoad(
tuwien.auto.calimero.xml.XMLReader) | void doLoad(XMLReader r) throws KNXMLException
{
boolean main = false;
while (r.getPosition() == XMLReader.START_TAG) {
final String tag = r.getCurrent().getName();
if (tag.equals(TAG_EXPIRATION)) {
final String a = r.getCurrent().getAttribute(ATTR_TIMEOUT);
if (a != null)
try {
t... | /* (non-Javadoc)
@see tuwien.auto.calimero.datapoint.Datapoint#doLoad(
tuwien.auto.calimero.xml.XMLReader)
void doLoad(XMLReader r) throws KNXMLException
{
boolean main = false;
while (r.getPosition() == XMLReader.START_TAG) {
final String tag = r.getCurrent().getName();
if (tag.equals(TAG_EXPIRATION))... | 275 | 106 | 961 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 714c00448963acdd18b8626e940e8dfff1b42584f481ef1122c6194c43209eda | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
2ff9a756b98b48d5d7654901 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java | StateDP.doSave | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java#L342-L360 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.datapoint.Datapoint#doSave(
tuwien.auto.calimero.xml.XMLWriter) | void doSave(XMLWriter w) throws KNXMLException
{
// <expiration timeout=int />
w.writeEmptyElement(TAG_EXPIRATION, Arrays
.asList(new Attribute[] { new Attribute(ATTR_TIMEOUT, Integer
.toString(timeout)) }));
w.writeElement(TAG_UPDATING, Collections.EMPTY_LIST, null);
synchronized (updating) {
... | /* (non-Javadoc)
@see tuwien.auto.calimero.datapoint.Datapoint#doSave(
tuwien.auto.calimero.xml.XMLWriter)
void doSave(XMLWriter w) throws KNXMLException
{
// <expiration timeout=int />
w.writeEmptyElement(TAG_EXPIRATION, Arrays
.asList(new Attribute[] { new Attribute(ATTR_TIMEOUT, Integer
.toString(t... | 204 | 106 | 679 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 80adf5a465e9c19f6c5d5ecb9f4f63e2f1f8ef05d30feba78d2b4d9f68917763 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
33e97c8e954082483324053c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java | StateDP.checkGAs | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/StateDP.java#L363-L368 | train | java | iteration not synchronized | private void checkGAs(List l)
{
for (final Iterator i = l.iterator(); i.hasNext();)
if (!(i.next() instanceof GroupAddress))
throw new KNXIllegalArgumentException("not a group address list");
} | iteration not synchronized
private void checkGAs(List l)
{
for (final Iterator i = l.iterator(); i.hasNext();)
if (!(i.next() instanceof GroupAddress))
throw new KNXIllegalArgumentException("not a group address list");
} | 53 | 26 | 209 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a45b74bd563381e54e8ffe206cff6b3a0a4f6e3e72d8539dc6792b3afb24bfc1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5e2760cd7063ac23cfde5ff0 | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/simulation/SimulationUtil.java | SimulationUtil.addPositionNoise | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/simulation/SimulationUtil.java#L45-L70 | train | java | Adds position noise to the trajectories
@param t
@param sd
@return trajectory with position noise | public static Trajectory addPositionNoise(Trajectory t, double sd){
CentralRandomNumberGenerator r = CentralRandomNumberGenerator.getInstance();
Trajectory newt = new Trajectory(t.getDimension());
for(int i = 0; i < t.size(); i++){
newt.add(t.get(i));
for(int j = 1; j <= t.getDimension(); j++){
switc... | Adds position noise to the trajectories
@param t
@param sd
@return trajectory with position noise
public static Trajectory addPositionNoise(Trajectory t, double sd){
CentralRandomNumberGenerator r = CentralRandomNumberGenerator.getInstance();
Trajectory newt = new Trajectory(t.getDimension());
for(int i = 0; ... | 222 | 97 | 643 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 84df779efc6ad2a276ca5f4f8681299f8949e0e564406d01e299da46b6067dfb | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
cd6539d95db347b8bf481c4f | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java | ZWaveWakeUpCommandClass.handleApplicationCommandRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java#L129-L219 | train | java | {@inheritDoc} | @Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle Message Wake Up Request");
logger.debug(String.format("Received Wake Up Request for Node ID = %d", this.getNode().getNodeId()));
int command = serialMessage.getMessagePayloa... | {@inheritDoc}
@Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle Message Wake Up Request");
logger.debug(String.format("Received Wake Up Request for Node ID = %d", this.getNode().getNodeId()));
int command = serialMessage.g... | 1,081 | 13 | 5,000 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 22cd94ef9f5f0dcc978802eab5ac0db28150e35424028a4adef12e43f2c2bca1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6d2c55c7dd8312b328e84fe7 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java | ZWaveWakeUpCommandClass.getNoMoreInformationMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java#L225-L235 | train | java | Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.
@return the serial message | public SerialMessage getNoMoreInformationMessage() {
logger.debug("Creating new message for application command WAKE_UP_NO_MORE_INFORMATION for node {}", this.getNode().getNodeId());
SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessage.SerialMessageClass.SendData, SerialMessage.Seria... | Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.
@return the serial message
public SerialMessage getNoMoreInformationMessage() {
logger.debug("Creating new message for application command WAKE_UP_NO_MORE_INFORMATION for node {}", this.getNode().getNodeId());
SerialMessage result = new SerialMes... | 156 | 93 | 670 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0c918970e78dcf7af6acff6cbaa433b7cbffb2b4f2453ad89a367d8f60f5b1a3 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3ce3d904a6ae80579d44b052 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java | ZWaveWakeUpCommandClass.putInWakeUpQueue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java#L241-L249 | train | java | Puts a message in the wake-up queue of this node to send the message on wake-up.
@param serialMessage the message to put in the wake-up queue. | public void putInWakeUpQueue(SerialMessage serialMessage) {
if (this.wakeUpQueue.contains(serialMessage)) {
logger.debug("Message already on the wake-up queue for node {}. Discarding.", this.getNode().getNodeId());
return;
}
logger.debug("Putting message in wakeup queue for node {}.", this.getNode... | Puts a message in the wake-up queue of this node to send the message on wake-up.
@param serialMessage the message to put in the wake-up queue.
public void putInWakeUpQueue(SerialMessage serialMessage) {
if (this.wakeUpQueue.contains(serialMessage)) {
logger.debug("Message already on the wake-up queue for node {... | 121 | 142 | 380 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5ce7632407bbfb0fc95eae30371ee29395ebe3c9a9eca5c9d3cf00824bf31954 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f13f9cbef1652c9f69300fd5 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java | ZWaveWakeUpCommandClass.initialize | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java#L324-L331 | train | java | {@inheritDoc} | @Override
public Collection<SerialMessage> initialize() {
ArrayList<SerialMessage> result = new ArrayList<SerialMessage>(2);
result.add(this.getIntervalMessage()); // get wake up interval.
if (this.getVersion() > 1)
result.add(this.getIntervalCapabilitiesMessage()); // get default values for wake up inte... | {@inheritDoc}
@Override
public Collection<SerialMessage> initialize() {
ArrayList<SerialMessage> result = new ArrayList<SerialMessage>(2);
result.add(this.getIntervalMessage()); // get wake up interval.
if (this.getVersion() > 1)
result.add(this.getIntervalCapabilitiesMessage()); // get default values f... | 78 | 13 | 347 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3b9d52e8c4a24c986ecc882a8d2dc9cfc9f842d2c20e94acf5a91b14122584b1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
377d069821a03fff07d2f05a | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java | ZWaveWakeUpCommandClass.ZWaveIncomingEvent | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveWakeUpCommandClass.java#L339-L362 | train | java | Event handler for incoming Z-Wave events. We monitor Z-Wave events for completed
transactions. Once a transaction is completed for the WAKE_UP_NO_MORE_INFORMATION
event, we set the node state to asleep.
{@inheritDoc} | @Override
public void ZWaveIncomingEvent(ZWaveEvent event) {
if (event.getEventType() != ZWaveEvent.ZWaveEventType.TRANSACTION_COMPLETED_EVENT)
return;
SerialMessage serialMessage = (SerialMessage)event.getEventValue();
if (serialMessage.getMessageClass() != SerialMessage.SerialMessageClass.SendD... | Event handler for incoming Z-Wave events. We monitor Z-Wave events for completed
transactions. Once a transaction is completed for the WAKE_UP_NO_MORE_INFORMATION
event, we set the node state to asleep.
{@inheritDoc}
@Override
public void ZWaveIncomingEvent(ZWaveEvent event) {
if (event.getEventType() != ZWaveEve... | 250 | 216 | 834 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 18ae5c965ad5d964c025562ffab7621e131182d21e03e5c76a874d8e638cde2c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4a99575b98a7661d6d7cfad3 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java | CEMILDataEx.addAdditionalInfo | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java#L326-L334 | train | java | Adds additional information to the message.
<p>
It replaces additional information of the same type, if any was previously added.
@param infoType type ID of additional information
@param info additional information data | public synchronized void addAdditionalInfo(int infoType, byte[] info)
{
if (infoType < 0 || infoType >= ADDINFO_ESC)
throw new KNXIllegalArgumentException("info type out of range [0..254]");
if (!checkAddInfoLength(infoType, info.length))
throw new KNXIllegalArgumentException("wrong info data length, ex... | Adds additional information to the message.
<p>
It replaces additional information of the same type, if any was previously added.
@param infoType type ID of additional information
@param info additional information data
public synchronized void addAdditionalInfo(int infoType, byte[] info)
{
if (infoType < 0 || i... | 143 | 220 | 409 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fb04e81b4c40250d1ac1c813e6bf08725775108f4b97b3782991f35cf0cb6f3e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1455cf60da0032d12571c741 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java | CEMILDataEx.getAdditionalInfo | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java#L342-L349 | train | java | Returns all additional information currently set.
<p>
@return a List with {@link AddInfo} objects | public synchronized List getAdditionalInfo()
{
final List l = new ArrayList();
for (int i = 0; i < addInfo.length; ++i)
if (addInfo[i] != null)
l.add(new AddInfo(i, (byte[]) addInfo[i].clone()));
return l;
} | Returns all additional information currently set.
<p>
@return a List with {@link AddInfo} objects
public synchronized List getAdditionalInfo()
{
final List l = new ArrayList();
for (int i = 0; i < addInfo.length; ++i)
if (addInfo[i] != null)
l.add(new AddInfo(i, (byte[]) addInfo[i].clone()));
retu... | 88 | 98 | 229 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 668fa7cc5cb4dfaa2e677c6e2305d6ee1cea39a8234b3f7c6b8e9875e5815fe0 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c3fbf3bf31daba0264b308a0 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java | CEMILDataEx.getAdditionalInfo | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java#L360-L365 | train | java | Returns additional information data corresponding to the supplied type ID, if it is
contained in the message.
<p>
@param infoType type ID of the request additional information
@return additional information data or <code>null</code> if no such information
is available | public synchronized byte[] getAdditionalInfo(int infoType)
{
if (infoType < addInfo.length && addInfo[infoType] != null)
return (byte[]) addInfo[infoType].clone();
return null;
} | Returns additional information data corresponding to the supplied type ID, if it is
contained in the message.
<p>
@param infoType type ID of the request additional information
@return additional information data or <code>null</code> if no such information
is available
public synchronized byte[] getAdditionalInfo(int ... | 103 | 269 | 192 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9c3c73daf0f41cbe9f11f0cfe383eba275d9d8dbd6c569397a3e9f43df07681c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b4ea351ef54a30accfb1dae8 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java | CEMILDataEx.readAddInfo | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java#L502-L524 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.cemi.CEMILData#readAddInfo(java.io.ByteArrayInputStream) | void readAddInfo(ByteArrayInputStream is) throws KNXFormatException
{
final int ail = is.read();
if (ail == 0)
return;
if (ail > is.available())
throw new KNXFormatException("additional info length exceeds frame length",
ail);
int remaining = ail;
for (; remaining > 0; remaining -= 2) {
... | /* (non-Javadoc)
@see tuwien.auto.calimero.cemi.CEMILData#readAddInfo(java.io.ByteArrayInputStream)
void readAddInfo(ByteArrayInputStream is) throws KNXFormatException
{
final int ail = is.read();
if (ail == 0)
return;
if (ail > is.available())
throw new KNXFormatException("additional info length ex... | 236 | 99 | 791 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3feff42ffcac0b708104062c7901835ed86a730d9a84f25c3b63d348ed8b8473 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3feb27edbd8b41d3b0b6d644 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java | CEMILDataEx.writeAddInfo | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java#L550-L559 | train | java | Writes all additional information to <code>os</code>.
<p>
@param os the output stream | synchronized void writeAddInfo(ByteArrayOutputStream os)
{
os.write(getAddInfoLength());
for (int i = 0; i < addInfo.length; i++)
if (addInfo[i] != null) {
os.write(i);
os.write(addInfo[i].length);
os.write(addInfo[i], 0, addInfo[i].length);
}
} | Writes all additional information to <code>os</code>.
<p>
@param os the output stream
synchronized void writeAddInfo(ByteArrayOutputStream os)
{
os.write(getAddInfoLength());
for (int i = 0; i < addInfo.length; i++)
if (addInfo[i] != null) {
os.write(i);
os.write(addInfo[i].length);
os.writ... | 104 | 86 | 278 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c2774e5d31c861141c1ece9f1d37cc32b59af1a59b2de02569300d424ae7f422 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
93edb1488b75923b8306c469 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java | CEMILDataEx.writePayload | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMILDataEx.java#L564-L569 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.cemi.CEMILData#writePayload(java.io.ByteArrayOutputStream) | void writePayload(ByteArrayOutputStream os)
{
// RF frames don't use NPDU length field
os.write(addInfo[ADDINFO_RFMEDIUM] != null ? 0 : data.length - 1);
os.write(data, 0, data.length);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.cemi.CEMILData#writePayload(java.io.ByteArrayOutputStream)
void writePayload(ByteArrayOutputStream os)
{
// RF frames don't use NPDU length field
os.write(addInfo[ADDINFO_RFMEDIUM] != null ? 0 : data.length - 1);
os.write(data, 0, data.length);
} | 88 | 101 | 200 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ae6d85deef7095641baa4726083b69053dea66efdfbf7be02089a7090beaf1d0 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4de9a31b0e068793369b91f9 | ow2-chameleon/fuchsia | bases/protobuffer/cxf-protobuf/src/main/java/com/google/code/cxf/protobuf/SimpleRpcDispatcher.java | SimpleRpcDispatcher.resolveTargetMethod | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/protobuffer/cxf-protobuf/src/main/java/com/google/code/cxf/protobuf/SimpleRpcDispatcher.java#L106-L140 | train | java | Find out which method to call on the service bean. | protected Method resolveTargetMethod(Message message,
FieldDescriptor payloadField) {
Method targetMethod = fieldToMethod.get(payloadField);
if (targetMethod == null) {
// look up and cache target method; this block is called only once
//... | Find out which method to call on the service bean.
protected Method resolveTargetMethod(Message message,
FieldDescriptor payloadField) {
Method targetMethod = fieldToMethod.get(payloadField);
if (targetMethod == null) {
// look up and cache target m... | 237 | 50 | 1,450 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | aab1f0e50c06ca8bc349cc80bd34c7c8fff10e5c2251356c840a877801aee7cb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
aa2aff68a4ccf6584885a919 | ow2-chameleon/fuchsia | bases/protobuffer/cxf-protobuf/src/main/java/com/google/code/cxf/protobuf/SimpleRpcDispatcher.java | SimpleRpcDispatcher.resolvePayloadField | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/protobuffer/cxf-protobuf/src/main/java/com/google/code/cxf/protobuf/SimpleRpcDispatcher.java#L146-L154 | train | java | Find out which field in the incoming message contains the payload that is.
delivered to the service method. | protected FieldDescriptor resolvePayloadField(Message message) {
for (FieldDescriptor field : message.getDescriptorForType().getFields()) {
if (message.hasField(field)) {
return field;
}
}
throw new RuntimeException("No payload found in message " + messag... | Find out which field in the incoming message contains the payload that is.
delivered to the service method.
protected FieldDescriptor resolvePayloadField(Message message) {
for (FieldDescriptor field : message.getDescriptorForType().getFields()) {
if (message.hasField(field)) {
retu... | 81 | 107 | 329 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b1436e29776f7540bb177db7ffef72bd5088c3e2a65f63f87bfd22d0e661ce26 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f3290201e2b9ac6268ff1d82 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/LDataObjectQueue.java | LDataObjectQueue.getFrame | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/LDataObjectQueue.java#L256-L269 | train | java | {@inheritDoc} Frames are returned in insertion order. If consuming read behavior is
enabled, the frame will be removed from the queue before return. | public synchronized CEMILData getFrame()
{
final CEMILData[] c = (CEMILData[]) value;
final int first = first();
final CEMILData f = c[first];
if (size > 0 && consuming) {
--size;
c[first] = null;
timestamps[first] = 0;
if (size == 0)
next = 0;
}
return f;
} | {@inheritDoc} Frames are returned in insertion order. If consuming read behavior is
enabled, the frame will be removed from the queue before return.
public synchronized CEMILData getFrame()
{
final CEMILData[] c = (CEMILData[]) value;
final int first = first();
final CEMILData f = c[first];
if (size > 0 ... | 131 | 148 | 301 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a947e13618e788c35f0a22e2beeb720f340120d2263f9e4304611220d6572919 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b2ccb93589ba13f36a6f7372 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java | DefaultXMLReader.setInput | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java#L111-L117 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.xml.XMLReader#setInput(java.io.Reader, boolean) | public void setInput(Reader input, boolean close)
{
if (r != null)
reset();
r = input;
closeReader = close;
} | /* (non-Javadoc)
@see tuwien.auto.calimero.xml.XMLReader#setInput(java.io.Reader, boolean)
public void setInput(Reader input, boolean close)
{
if (r != null)
reset();
r = input;
closeReader = close;
} | 61 | 90 | 126 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b4f8cf2a74b4437c0d81699a2e3561f8aa270010c933bb199772f2a98a939947 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d34073c786d58cf69f22bda9 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java | DefaultXMLReader.read | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java#L122-L163 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.xml.XMLReader#read() | public int read() throws KNXMLException
{
while (canRead()) {
// init line counter on first read
if (line == 0)
line = 1;
read('<');
String str = read('>');
// if no comment and no closing tag
if (str.length() == 0 || skipComment(str) || skipInstruction(str))
continue;
final... | /* (non-Javadoc)
@see tuwien.auto.calimero.xml.XMLReader#read()
public int read() throws KNXMLException
{
while (canRead()) {
// init line counter on first read
if (line == 0)
line = 1;
read('<');
String str = read('>');
// if no comment and no closing tag
if (str.length() == 0 || s... | 339 | 63 | 1,266 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 01b3257e3f38ceda1a481a7c027dfb1fde510e2b3073ebd9304b2f17f73dc482 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
2b3be271910cb8cd7d3d23df | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java | DefaultXMLReader.complete | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java#L168-L214 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.xml.XMLReader#complete(tuwien.auto.calimero.xml.Element) | public void complete(Element e) throws KNXMLException
{
if (e.isEmptyElementTag())
return;
final int index = openElems.lastIndexOf(e.getName());
if (index == -1)
throw new KNXMLException("element tag not read before", e.getName(), line);
String end = null;
final StringBuffer content = new Strin... | /* (non-Javadoc)
@see tuwien.auto.calimero.xml.XMLReader#complete(tuwien.auto.calimero.xml.Element)
public void complete(Element e) throws KNXMLException
{
if (e.isEmptyElementTag())
return;
final int index = openElems.lastIndexOf(e.getName());
if (index == -1)
throw new KNXMLException("element tag ... | 448 | 99 | 1,630 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b742c46ffbf739e17e13153402ef66ede25d6d5efc40121982abad25188ad6cb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
bddf240db2284004725d25f1 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java | DefaultXMLReader.close | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java#L243-L252 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.xml.XMLReader#close() | public void close() throws KNXMLException
{
if (closeReader)
try {
r.close();
}
catch (final IOException e) {
throw new KNXMLException(e.getMessage());
}
} | /* (non-Javadoc)
@see tuwien.auto.calimero.xml.XMLReader#close()
public void close() throws KNXMLException
{
if (closeReader)
try {
r.close();
}
catch (final IOException e) {
throw new KNXMLException(e.getMessage());
}
} | 69 | 64 | 188 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5b003f199b78b4ca16160cd47f9762696d5a862dd0d8b7c1024c888c5a3368ad | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a9e725b40fa82814a8246a72 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java | DefaultXMLReader.extractAttributes | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/xml/def/DefaultXMLReader.java#L288-L315 | train | java | adds all available attributes to current element | private void extractAttributes(String attributes)
{
String s = attributes.trim();
if (s.length() > 0 && s.charAt(s.length() - 1) == '/')
elem.setEmptyElementTag(true);
while (s.length() != 0) {
final int equal = s.indexOf('=');
if (equal == -1 || equal == s.length() - 1)
break;
// cut ... | adds all available attributes to current element
private void extractAttributes(String attributes)
{
String s = attributes.trim();
if (s.length() > 0 && s.charAt(s.length() - 1) == '/')
elem.setEmptyElementTag(true);
while (s.length() != 0) {
final int equal = s.indexOf('=');
if (equal == -1 |... | 276 | 48 | 919 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 72210a1f0284ace748c99c13ffe0ae3b0c0f7c8dea8819e5727d71afb9a17257 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1ca635d56805acb6a654cacf | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/declaration/Status.java | Status.from | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/declaration/Status.java#L72-L82 | train | java | Creates a status instance from the given serviceReferences.
The given list is copied to a new set made immutable.
@param serviceReferencesBound the set of ServiceReference which are bound to the declaration.
@param serviceReferencesHandled the set of ServiceReference which are handling the declaration.
@return the n... | public static Status from(Set<ServiceReference> serviceReferencesBound, Set<ServiceReference> serviceReferencesHandled) {
if (serviceReferencesBound == null && serviceReferencesHandled == null) {
throw new IllegalArgumentException("Cannot create a status with serviceReferencesBound == null" +
... | Creates a status instance from the given serviceReferences.
The given list is copied to a new set made immutable.
@param serviceReferencesBound the set of ServiceReference which are bound to the declaration.
@param serviceReferencesHandled the set of ServiceReference which are handling the declaration.
@return the n... | 196 | 341 | 797 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | edf014f79ac7cf331894d297993ec2e335f1c6bcc34670c132b8f358f1d4d042 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
56c2ebca647f041a683da35f | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBasicCommandClass.java | ZWaveBasicCommandClass.handleApplicationCommandRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBasicCommandClass.java#L100-L126 | train | java | {@inheritDoc} | @Override
public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) {
logger.trace("Handle Message Basic Request");
logger.debug(String.format("Received Basic Request for Node ID = %d", this.getNode().getNodeId()));
int command = serialMessage.getMessagePayloadByte(of... | {@inheritDoc}
@Override
public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) {
logger.trace("Handle Message Basic Request");
logger.debug(String.format("Received Basic Request for Node ID = %d", this.getNode().getNodeId()));
int command = serialMessage.getMessag... | 269 | 13 | 1,193 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b2cf56ec4b1801caf2b4c03130b79f832642d6ccdba0af10a6a2b47b6d8eb1a7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6cdcd2a6de8664e3ce7104ae | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBasicCommandClass.java | ZWaveBasicCommandClass.processBasicReport | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBasicCommandClass.java#L135-L148 | train | java | Processes a BASIC_REPORT / BASIC_SET message.
@param serialMessage the incoming message to process.
@param offset the offset position from which to start message processing.
@param endpoint the endpoint or instance number this message is meant for. | protected void processBasicReport(SerialMessage serialMessage, int offset, int endpoint) {
int value = serialMessage.getMessagePayloadByte(offset + 1);
logger.debug(String.format("Basic report from nodeId = %d, value = 0x%02X", this.getNode().getNodeId(), value));
Object eventValue;
if (value == 0) {
e... | Processes a BASIC_REPORT / BASIC_SET message.
@param serialMessage the incoming message to process.
@param offset the offset position from which to start message processing.
@param endpoint the endpoint or instance number this message is meant for.
protected void processBasicReport(SerialMessage serialMessage, int of... | 203 | 249 | 605 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3c8359f1715afd3b4ff01476909f6cf9559e23f421d1924b1ff322d312b5eccf | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d5153709d3696b0d6c1cdaf0 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBasicCommandClass.java | ZWaveBasicCommandClass.getValueMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBasicCommandClass.java#L154-L163 | train | java | Gets a SerialMessage with the BASIC GET command
@return the serial message | public SerialMessage getValueMessage() {
logger.debug("Creating new message for application command BASIC_GET for node {}", this.getNode().getNodeId());
SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessageClass.SendData, SerialMessageType.Request, SerialMessageClass.ApplicationComman... | Gets a SerialMessage with the BASIC GET command
@return the serial message
public SerialMessage getValueMessage() {
logger.debug("Creating new message for application command BASIC_GET for node {}", this.getNode().getNodeId());
SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessageCla... | 135 | 74 | 583 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 03fed1c00bf651e72a98dc152799440c543c29878450ab27830ab39171345517 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d1ec722d6117629b7af38d60 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBasicCommandClass.java | ZWaveBasicCommandClass.setValueMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBasicCommandClass.java#L170-L181 | train | java | Gets a SerialMessage with the BASIC SET command
@param the level to set.
@return the serial message | public SerialMessage setValueMessage(int level) {
logger.debug("Creating new message for application command BASIC_SET for node {}", this.getNode().getNodeId());
SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessageClass.SendData, SerialMessageType.Request, SerialMessageClass.SendData... | Gets a SerialMessage with the BASIC SET command
@param the level to set.
@return the serial message
public SerialMessage setValueMessage(int level) {
logger.debug("Creating new message for application command BASIC_SET for node {}", this.getNode().getNodeId());
SerialMessage result = new SerialMessage(this.getNo... | 151 | 99 | 607 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e523f00ff14141ac0425ee8582a6698d93cfa3a0c0ab46892a0280e40e39bd88 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
505e6e73a75e69f323a4f5e3 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/PropertyClient.java | PropertyKey.compareTo | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/mgmt/PropertyClient.java#L741-L745 | train | java | /* (non-Javadoc)
@see java.lang.Comparable#compareTo(java.lang.Object) | public int compareTo(Object o)
{
final int rhs = o.hashCode();
return hashCode() < rhs ? -1 : hashCode() > rhs ? 1 : 0;
} | /* (non-Javadoc)
@see java.lang.Comparable#compareTo(java.lang.Object)
public int compareTo(Object o)
{
final int rhs = o.hashCode();
return hashCode() < rhs ? -1 : hashCode() > rhs ? 1 : 0;
} | 58 | 70 | 135 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 40a418aa18f781fc7a7a9e5e37c346415a71bc589d2937bbecbd22eaa68fbe72 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
09efc151c174d4ce7dc84ed7 | usc/wechat-mp-sdk | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/platform/BasicUtil.java | BasicUtil.shortUrl | https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/platform/BasicUtil.java#L25-L32 | train | java | TODO-Shunli: now shortUrl always failed, user unauthorized, check later | public static JsonRtn shortUrl(License license, String url) {
if (StringUtils.isEmpty(url)) {
return JsonRtnUtil.buildFailureJsonRtn(JsonRtn.class, "missing url");
}
Map<String, String> paramMap = ImmutableMap.of("action", "long2short", "long_url", url);
return HttpUti... | TODO-Shunli: now shortUrl always failed, user unauthorized, check later
public static JsonRtn shortUrl(License license, String url) {
if (StringUtils.isEmpty(url)) {
return JsonRtnUtil.buildFailureJsonRtn(JsonRtn.class, "missing url");
}
Map<String, String> paramMap = Immutabl... | 113 | 71 | 404 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d94f3c1b4d9aa78c3a3f0c7d582057464cfaa6ae8580ae8461c03d832b8b33a9 | Apache-2.0 | permissive | https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt |
9b31ada1c6fef6ec026da369 | ow2-chameleon/fuchsia | bases/push/hub/src/main/java/org/ow2/chameleon/fuchsia/push/base/hub/impl/HubImpl.java | HubImpl.subscriptionRequestReceived | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/push/hub/src/main/java/org/ow2/chameleon/fuchsia/push/base/hub/impl/HubImpl.java#L105-L125 | train | java | Input method, called by a Subscriber indicating its intent into receive notification about a given topic.
@param sr DTO containing the info given by the protocol | public void subscriptionRequestReceived(SubscriptionRequest sr) throws SubscriptionException {
LOG.info("Subscriber -> (Hub), new subscription request received.", sr.getCallback());
try {
verifySubscriberRequestedSubscription(sr);
if ("subscribe".equals(sr.getMode())) {
... | Input method, called by a Subscriber indicating its intent into receive notification about a given topic.
@param sr DTO containing the info given by the protocol
public void subscriptionRequestReceived(SubscriptionRequest sr) throws SubscriptionException {
LOG.info("Subscriber -> (Hub), new subscription requ... | 180 | 162 | 826 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | aeda54aa8fc6468f73fff39827ed82154a1dc51997bbe58b6c476a5add0d324e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a102058f5ce9227c5d3885fe | ow2-chameleon/fuchsia | bases/push/hub/src/main/java/org/ow2/chameleon/fuchsia/push/base/hub/impl/HubImpl.java | HubImpl.verifySubscriberRequestedSubscription | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/push/hub/src/main/java/org/ow2/chameleon/fuchsia/push/base/hub/impl/HubImpl.java#L134-L165 | train | java | Output method that sends a subscription confirmation for the subscriber to avoid DoS attacks, or false subscription.
@param sr
@return True case the subscription was confirmed, or False otherwise
@throws org.ow2.chameleon.fuchsia.push.base.hub.exception.SubscriptionOriginVerificationException | public Boolean verifySubscriberRequestedSubscription(SubscriptionRequest sr) throws SubscriptionOriginVerificationException {
LOG.info("(Hub) -> Subscriber, sending notification to verify the origin of the subscription {}.", sr.getCallback());
SubscriptionConfirmationRequest sc = new SubscriptionConfi... | Output method that sends a subscription confirmation for the subscriber to avoid DoS attacks, or false subscription.
@param sr
@return True case the subscription was confirmed, or False otherwise
@throws org.ow2.chameleon.fuchsia.push.base.hub.exception.SubscriptionOriginVerificationException
public Boolean verifySub... | 309 | 294 | 1,416 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b7941755dc2c59711b218b8de6a24c8e0a9644ae2e896fe7da509f135be3aa71 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
e6940b8981dfa286e52ecabe | ow2-chameleon/fuchsia | bases/push/hub/src/main/java/org/ow2/chameleon/fuchsia/push/base/hub/impl/HubImpl.java | HubImpl.notifySubscriberCallback | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/push/hub/src/main/java/org/ow2/chameleon/fuchsia/push/base/hub/impl/HubImpl.java#L172-L176 | train | java | Output method responsible for sending the updated content to the Subscribers.
@param cn | public void notifySubscriberCallback(ContentNotification cn) {
String content = fetchContentFromPublisher(cn);
distributeContentToSubscribers(content, cn.getUrl());
} | Output method responsible for sending the updated content to the Subscribers.
@param cn
public void notifySubscriberCallback(ContentNotification cn) {
String content = fetchContentFromPublisher(cn);
distributeContentToSubscribers(content, cn.getUrl());
} | 49 | 88 | 187 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 293ed1f55138ed9c2b4831ee9948e073a78f4a463ae36b0ba199340635c5f2bc | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0f4722fc8ae664c04d229c33 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveNoOperationCommandClass.java | ZWaveNoOperationCommandClass.handleApplicationCommandRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveNoOperationCommandClass.java#L93-L101 | train | java | {@inheritDoc} | @Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle No Operation Request");
logger.debug(String.format("Received No Operation for Node ID = %d", this.getNode().getNodeId()));
// advance node stage.
this.getNode().advan... | {@inheritDoc}
@Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle No Operation Request");
logger.debug(String.format("Received No Operation for Node ID = %d", this.getNode().getNodeId()));
// advance node stage.
this.... | 74 | 13 | 338 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a2f983f0f85c7757d7ad53307cc201af1f7e2b1de40545b15c3de9030b8cc5b5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
65401961ad017480cd0aa9bf | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/CacheSweeper.java | CacheSweeper.run | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/buffer/cache/CacheSweeper.java#L141-L162 | train | java | /* (non-Javadoc)
@see java.lang.Thread#run() | public void run()
{
while (true) {
final long start = System.currentTimeMillis();
long remaining;
Cache c;
synchronized (lock) {
c = cache;
remaining = sweepInterval * 1000;
while (remaining > 0 && cache != null) {
try {
lock.wait(remaining);
}
catch (final I... | /* (non-Javadoc)
@see java.lang.Thread#run()
public void run()
{
while (true) {
final long start = System.currentTimeMillis();
long remaining;
Cache c;
synchronized (lock) {
c = cache;
remaining = sweepInterval * 1000;
while (remaining > 0 && cache != null) {
try {
lock... | 139 | 44 | 504 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 41ce205651b959ad19c9245bfea19456fbea46b12c8e514b94ea590a71b9e42b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
fce21435967cd109a368c42e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/SearchRequest.java | SearchRequest.toByteArray | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/SearchRequest.java#L149-L154 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream) | byte[] toByteArray(ByteArrayOutputStream os)
{
final byte[] buf = endpoint.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)
{
final byte[] buf = endpoint.toByteArray();
os.write(buf, 0, buf.length);
return os.toByteArray();
} | 70 | 119 | 159 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9c23311ad524fdf921db665e4aa8e7593c2ca52e063ca4a918ae2fcc1d11d902 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
bfc27c482ed614832cc1a64e | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traj/math/ConfinedDiffusionMSDCurveFit.java | ConfinedDiffusionMSDCurveFit.doFit | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traj/math/ConfinedDiffusionMSDCurveFit.java#L65-L94 | train | java | Fits the curve y = a*(1-b*exp((-4*D)*(x/a)*c)) to the x- and y data.
The parameters have the follow meaning:
@param xdata
@param ydata | public void doFit(double[] xdata, double[] ydata, boolean reduced){
CurveFitter fitter = new CurveFitter(xdata, ydata);
if(reduced==false){
double ia = Double.isNaN(initA)?0:initA;
double ib = Double.isNaN(initB)?0:initB;
double ic = Double.isNaN(initC)?0:initC;
double id = Double.isNaN(initD)?0:i... | Fits the curve y = a*(1-b*exp((-4*D)*(x/a)*c)) to the x- and y data.
The parameters have the follow meaning:
@param xdata
@param ydata
public void doFit(double[] xdata, double[] ydata, boolean reduced){
CurveFitter fitter = new CurveFitter(xdata, ydata);
if(reduced==false){
double ia = Double.isNaN(initA)?0... | 474 | 135 | 1,387 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3e195be260dd7ca72044f488225903e8a9517ea3e43574d01507142fca22d240 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
31cd7d02e1646419bba9f95f | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFit.java | TrajectorySplineFit.calculateSpline | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFit.java#L107-L501 | 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(){
successfull= false;
/*
* 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... | 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,060 | 304 | 12,981 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b1b9448f821e7ac2d3b40f11a0960a7b21939933d2dddf70511b0b53dd09d5d1 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
410999b77e5f644f2a1745ec | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFit.java | TrajectorySplineFit.distancePointLine | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFit.java#L517-L530 | train | java | Please see
https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line#Another_formula
and
http://mathworld.wolfram.com/Two-PointForm.html
@param p1 First point on line
@param p2 Second point on line
@param p Point for which the distance should be calculated.
@return distance of p to line defined by p1&p2 | public double distancePointLine(Point2D.Double p1,Point2D.Double p2,Point2D.Double p){
double d;
double m = (p2.y-p1.y)/(p2.x-p1.x);
if(Double.isInfinite(m))
{
d = Math.abs(p2.x-p.x);
}
else{
double k = -1*m*p1.x+p1.y;
d = Math.sqrt( Math.pow( (p.x+m*p.y-m*k)/(m*m+1)-p.x , 2) + Math.pow( m*( (p... | Please see
https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line#Another_formula
and
http://mathworld.wolfram.com/Two-PointForm.html
@param p1 First point on line
@param p2 Second point on line
@param p Point for which the distance should be calculated.
@return distance of p to line defined by p1&p2
public do... | 235 | 308 | 374 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bec87cd9e3b150f11fbb17759299fe4c84edfa9650f81eb7a02ab8e3a7911555 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
35fec672a0c34c2f7860b9d2 | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFit.java | TrajectorySplineFit.minDistancePointSpline | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFit.java#L538-L560 | train | java | Finds to a given point p the point on the spline with minimum distance.
@param p Point where the nearest distance is searched for
@param nPointsPerSegment Number of interpolation points between two support points
@return Point spline which has the minimum distance to p | public Point2D.Double minDistancePointSpline(Point2D.Double p, int nPointsPerSegment){
double minDistance = Double.MAX_VALUE;
Point2D.Double minDistancePoint = null;
int numberOfSplines = spline.getN();
double[] knots = spline.getKnots();
for(int i = 0; i < numberOfSplines; i++){
double x... | Finds to a given point p the point on the spline with minimum distance.
@param p Point where the nearest distance is searched for
@param nPointsPerSegment Number of interpolation points between two support points
@return Point spline which has the minimum distance to p
public Point2D.Double minDistancePointSpline(Poin... | 250 | 269 | 768 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | cfc2404adc0d60baf2071c02ab61b81c76380db140da004bfcea12092704e559 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
5f79518874215f28d37bc43b | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFit.java | TrajectorySplineFit.showTrajectoryAndSpline | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traj/math/TrajectorySplineFit.java#L604-L658 | train | java | Plots the rotated trajectory, spline and support points. | public void showTrajectoryAndSpline(){
if(t.getDimension()==2){
double[] xData = new double[rotatedTrajectory.size()];
double[] yData = new double[rotatedTrajectory.size()];
for(int i = 0; i < rotatedTrajectory.size(); i++){
xData[i] = rotatedTrajectory.get(i).x;
yData[i] = rotatedTra... | Plots the rotated trajectory, spline and support points.
public void showTrajectoryAndSpline(){
if(t.getDimension()==2){
double[] xData = new double[rotatedTrajectory.size()];
double[] yData = new double[rotatedTrajectory.size()];
for(int i = 0; i < rotatedTrajectory.size(); i++){
xData[i] ... | 549 | 56 | 2,024 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b84cedd2a1c5a7f23b88dce870a57da84d8127bc3511f0af86104e5e9292749c | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
ae5e47a8b3cd22405eae93ea | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPDevMgmt.java | KNXnetIPDevMgmt.send | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPDevMgmt.java#L132-L138 | train | java | Sends a cEMI device management frame to the remote server communicating with this
endpoint.
<p>
@param frame cEMI device management message of type {@link CEMIDevMgmt} to send | public void send(CEMI frame, BlockingMode mode) throws KNXTimeoutException,
KNXConnectionClosedException
{
if (!(frame instanceof CEMIDevMgmt))
throw new KNXIllegalArgumentException("unsupported cEMI type");
super.send(frame, mode);
} | Sends a cEMI device management frame to the remote server communicating with this
endpoint.
<p>
@param frame cEMI device management message of type {@link CEMIDevMgmt} to send
public void send(CEMI frame, BlockingMode mode) throws KNXTimeoutException,
KNXConnectionClosedException
{
if (!(frame instanceof CEMI... | 105 | 176 | 251 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 76ae31f8e5f903d3fde55c1d1a367ef1679009971cee5f0486e230c84f17516a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
e660ef6ad67aaf091c8cff4b | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPDevMgmt.java | KNXnetIPDevMgmt.handleService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPDevMgmt.java#L152-L207 | 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, IOException
{
final int svc = h.getServiceType();
if (svc == KNXnetIPHeader.DEVICE_CONFIGURATION_REQ) {
ServiceRequest req;
try {
req = PacketHelper.getServiceRequest(h, data, offset);
}
catch (final... | /* (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, IOException
{
final int svc = h.getServiceType();
if (svc == KNXne... | 649 | 152 | 2,308 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e0bded34508bce4848d560f46c1fd2a56116622b7580434371ad7ec292d43c6d | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.