repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
openengsb/openengsb
tooling/wsdl2dll/src/main/java/org/openengsb/loom/csharp/comon/wsdltodll/WsdlToDll.java
WsdlToDll.nugetPackCommand
private void nugetPackCommand() throws MojoExecutionException { List<String> commandList = new LinkedList<String>(); commandList.add(0, NUGET_COMMAND); commandList.add(1, "pack"); String[] command = commandList.toArray(new String[commandList.size()]); ProcessBuilder builder = new...
java
private void nugetPackCommand() throws MojoExecutionException { List<String> commandList = new LinkedList<String>(); commandList.add(0, NUGET_COMMAND); commandList.add(1, "pack"); String[] command = commandList.toArray(new String[commandList.size()]); ProcessBuilder builder = new...
[ "private", "void", "nugetPackCommand", "(", ")", "throws", "MojoExecutionException", "{", "List", "<", "String", ">", "commandList", "=", "new", "LinkedList", "<", "String", ">", "(", ")", ";", "commandList", ".", "add", "(", "0", ",", "NUGET_COMMAND", ")", ...
Execute nuget command to pack the .nuspec
[ "Execute", "nuget", "command", "to", "pack", "the", ".", "nuspec" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/tooling/wsdl2dll/src/main/java/org/openengsb/loom/csharp/comon/wsdltodll/WsdlToDll.java#L460-L475
train
openengsb/openengsb
api/edbi/src/main/java/org/openengsb/core/edbi/api/IndexCommitBuilder.java
IndexCommitBuilder.insert
public IndexCommitBuilder insert(Object object) { updateModelClassSet(object); getInsertList(object.getClass()).add((OpenEngSBModel) object); return this; }
java
public IndexCommitBuilder insert(Object object) { updateModelClassSet(object); getInsertList(object.getClass()).add((OpenEngSBModel) object); return this; }
[ "public", "IndexCommitBuilder", "insert", "(", "Object", "object", ")", "{", "updateModelClassSet", "(", "object", ")", ";", "getInsertList", "(", "object", ".", "getClass", "(", ")", ")", ".", "add", "(", "(", "OpenEngSBModel", ")", "object", ")", ";", "r...
Marks the given object for insertion in the commit. @param object a OpenEngSBModel instance @return this for chaining
[ "Marks", "the", "given", "object", "for", "insertion", "in", "the", "commit", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/api/edbi/src/main/java/org/openengsb/core/edbi/api/IndexCommitBuilder.java#L166-L170
train
openengsb/openengsb
api/edbi/src/main/java/org/openengsb/core/edbi/api/IndexCommitBuilder.java
IndexCommitBuilder.update
public IndexCommitBuilder update(Object object) { updateModelClassSet(object); getUpdateList(object.getClass()).add((OpenEngSBModel) object); return this; }
java
public IndexCommitBuilder update(Object object) { updateModelClassSet(object); getUpdateList(object.getClass()).add((OpenEngSBModel) object); return this; }
[ "public", "IndexCommitBuilder", "update", "(", "Object", "object", ")", "{", "updateModelClassSet", "(", "object", ")", ";", "getUpdateList", "(", "object", ".", "getClass", "(", ")", ")", ".", "add", "(", "(", "OpenEngSBModel", ")", "object", ")", ";", "r...
Marks the given object for updating in the commit. @param object a OpenEngSBModel instance @return this for chaining
[ "Marks", "the", "given", "object", "for", "updating", "in", "the", "commit", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/api/edbi/src/main/java/org/openengsb/core/edbi/api/IndexCommitBuilder.java#L178-L182
train
openengsb/openengsb
api/edbi/src/main/java/org/openengsb/core/edbi/api/IndexCommitBuilder.java
IndexCommitBuilder.delete
public IndexCommitBuilder delete(Object object) { updateModelClassSet(object); getDeleteList(object.getClass()).add((OpenEngSBModel) object); return this; }
java
public IndexCommitBuilder delete(Object object) { updateModelClassSet(object); getDeleteList(object.getClass()).add((OpenEngSBModel) object); return this; }
[ "public", "IndexCommitBuilder", "delete", "(", "Object", "object", ")", "{", "updateModelClassSet", "(", "object", ")", ";", "getDeleteList", "(", "object", ".", "getClass", "(", ")", ")", ".", "add", "(", "(", "OpenEngSBModel", ")", "object", ")", ";", "r...
Marks the given object for deletion in the commit. @param object a OpenEngSBModel instance @return this for chaining
[ "Marks", "the", "given", "object", "for", "deletion", "in", "the", "commit", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/api/edbi/src/main/java/org/openengsb/core/edbi/api/IndexCommitBuilder.java#L190-L194
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java
TransformationPerformer.checkNeededValues
private void checkNeededValues(TransformationDescription description) { String message = "The TransformationDescription doesn't contain a %s. Description loading aborted"; if (description.getSourceModel().getModelClassName() == null) { throw new IllegalArgumentException(String.format(message...
java
private void checkNeededValues(TransformationDescription description) { String message = "The TransformationDescription doesn't contain a %s. Description loading aborted"; if (description.getSourceModel().getModelClassName() == null) { throw new IllegalArgumentException(String.format(message...
[ "private", "void", "checkNeededValues", "(", "TransformationDescription", "description", ")", "{", "String", "message", "=", "\"The TransformationDescription doesn't contain a %s. Description loading aborted\"", ";", "if", "(", "description", ".", "getSourceModel", "(", ")", ...
Does the checking of all necessary values of the TransformationDescription which are needed to process the description
[ "Does", "the", "checking", "of", "all", "necessary", "values", "of", "the", "TransformationDescription", "which", "are", "needed", "to", "process", "the", "description" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java#L57-L76
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java
TransformationPerformer.transformObject
public Object transformObject(TransformationDescription description, Object source) throws InstantiationException, IllegalAccessException, ClassNotFoundException { return transformObject(description, source, null); }
java
public Object transformObject(TransformationDescription description, Object source) throws InstantiationException, IllegalAccessException, ClassNotFoundException { return transformObject(description, source, null); }
[ "public", "Object", "transformObject", "(", "TransformationDescription", "description", ",", "Object", "source", ")", "throws", "InstantiationException", ",", "IllegalAccessException", ",", "ClassNotFoundException", "{", "return", "transformObject", "(", "description", ",",...
Transforms the given object based on the given TransformationDescription.
[ "Transforms", "the", "given", "object", "based", "on", "the", "given", "TransformationDescription", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java#L81-L84
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java
TransformationPerformer.transformObject
public Object transformObject(TransformationDescription description, Object source, Object target) throws InstantiationException, IllegalAccessException, ClassNotFoundException { checkNeededValues(description); Class<?> sourceClass = modelRegistry.loadModel(description.getSourceModel()); ...
java
public Object transformObject(TransformationDescription description, Object source, Object target) throws InstantiationException, IllegalAccessException, ClassNotFoundException { checkNeededValues(description); Class<?> sourceClass = modelRegistry.loadModel(description.getSourceModel()); ...
[ "public", "Object", "transformObject", "(", "TransformationDescription", "description", ",", "Object", "source", ",", "Object", "target", ")", "throws", "InstantiationException", ",", "IllegalAccessException", ",", "ClassNotFoundException", "{", "checkNeededValues", "(", ...
Performs a transformation based merge of the given source object with the given target object based on the given TransformationDescription.
[ "Performs", "a", "transformation", "based", "merge", "of", "the", "given", "source", "object", "with", "the", "given", "target", "object", "based", "on", "the", "given", "TransformationDescription", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java#L90-L108
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java
TransformationPerformer.performTransformationStep
private void performTransformationStep(TransformationStep step) throws IllegalAccessException { try { TransformationOperation operation = operationLoader.loadTransformationOperationByName(step.getOperationName()); Object value = operation.performOperation(getSourceFieldVa...
java
private void performTransformationStep(TransformationStep step) throws IllegalAccessException { try { TransformationOperation operation = operationLoader.loadTransformationOperationByName(step.getOperationName()); Object value = operation.performOperation(getSourceFieldVa...
[ "private", "void", "performTransformationStep", "(", "TransformationStep", "step", ")", "throws", "IllegalAccessException", "{", "try", "{", "TransformationOperation", "operation", "=", "operationLoader", ".", "loadTransformationOperationByName", "(", "step", ".", "getOpera...
Performs one transformation step
[ "Performs", "one", "transformation", "step" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java#L113-L124
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java
TransformationPerformer.getSourceFieldValues
private List<Object> getSourceFieldValues(TransformationStep step) throws Exception { List<Object> sources = new ArrayList<Object>(); for (String sourceField : step.getSourceFields()) { Object object = getObjectValue(sourceField, true); if (object == null) { Strin...
java
private List<Object> getSourceFieldValues(TransformationStep step) throws Exception { List<Object> sources = new ArrayList<Object>(); for (String sourceField : step.getSourceFields()) { Object object = getObjectValue(sourceField, true); if (object == null) { Strin...
[ "private", "List", "<", "Object", ">", "getSourceFieldValues", "(", "TransformationStep", "step", ")", "throws", "Exception", "{", "List", "<", "Object", ">", "sources", "=", "new", "ArrayList", "<", "Object", ">", "(", ")", ";", "for", "(", "String", "sou...
Returns a list of actual field values from the sources of the given transformation step
[ "Returns", "a", "list", "of", "actual", "field", "values", "from", "the", "sources", "of", "the", "given", "transformation", "step" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java#L129-L140
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java
TransformationPerformer.setObjectToTargetField
private void setObjectToTargetField(String fieldname, Object value) throws Exception { Object toWrite = null; if (fieldname.contains(".")) { String path = StringUtils.substringBeforeLast(fieldname, "."); toWrite = getObjectValue(path, false); } if (toWrite == null...
java
private void setObjectToTargetField(String fieldname, Object value) throws Exception { Object toWrite = null; if (fieldname.contains(".")) { String path = StringUtils.substringBeforeLast(fieldname, "."); toWrite = getObjectValue(path, false); } if (toWrite == null...
[ "private", "void", "setObjectToTargetField", "(", "String", "fieldname", ",", "Object", "value", ")", "throws", "Exception", "{", "Object", "toWrite", "=", "null", ";", "if", "(", "fieldname", ".", "contains", "(", "\".\"", ")", ")", "{", "String", "path", ...
Sets the given value object to the field with the field name of the target object. Is also aware of temporary fields.
[ "Sets", "the", "given", "value", "object", "to", "the", "field", "with", "the", "field", "name", "of", "the", "target", "object", ".", "Is", "also", "aware", "of", "temporary", "fields", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java#L146-L160
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java
TransformationPerformer.getObjectValue
private Object getObjectValue(String fieldname, boolean fromSource) throws Exception { Object sourceObject = fromSource ? source : target; Object result = null; for (String part : StringUtils.split(fieldname, ".")) { if (isTemporaryField(part)) { result = loadObjectFr...
java
private Object getObjectValue(String fieldname, boolean fromSource) throws Exception { Object sourceObject = fromSource ? source : target; Object result = null; for (String part : StringUtils.split(fieldname, ".")) { if (isTemporaryField(part)) { result = loadObjectFr...
[ "private", "Object", "getObjectValue", "(", "String", "fieldname", ",", "boolean", "fromSource", ")", "throws", "Exception", "{", "Object", "sourceObject", "=", "fromSource", "?", "source", ":", "target", ";", "Object", "result", "=", "null", ";", "for", "(", ...
Gets the value of the field with the field name either from the source object or the target object, depending on the parameters. Is also aware of temporary fields.
[ "Gets", "the", "value", "of", "the", "field", "with", "the", "field", "name", "either", "from", "the", "source", "object", "or", "the", "target", "object", "depending", "on", "the", "parameters", ".", "Is", "also", "aware", "of", "temporary", "fields", "."...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java#L166-L177
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java
TransformationPerformer.loadObjectFromField
private Object loadObjectFromField(String fieldname, Object object, Object alternative) throws Exception { Object source = object != null ? object : alternative; try { return FieldUtils.readField(source, fieldname, true); } catch (Exception e) { throw new IllegalArgumentE...
java
private Object loadObjectFromField(String fieldname, Object object, Object alternative) throws Exception { Object source = object != null ? object : alternative; try { return FieldUtils.readField(source, fieldname, true); } catch (Exception e) { throw new IllegalArgumentE...
[ "private", "Object", "loadObjectFromField", "(", "String", "fieldname", ",", "Object", "object", ",", "Object", "alternative", ")", "throws", "Exception", "{", "Object", "source", "=", "object", "!=", "null", "?", "object", ":", "alternative", ";", "try", "{",...
Loads the object from the field with the given name from either the object parameter or if this parameter is null from the alternative parameter.
[ "Loads", "the", "object", "from", "the", "field", "with", "the", "given", "name", "from", "either", "the", "object", "parameter", "or", "if", "this", "parameter", "is", "null", "from", "the", "alternative", "parameter", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java#L196-L204
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java
TransformationPerformer.writeObjectToField
private void writeObjectToField(String fieldname, Object value, Object object, Object alternative) throws Exception { Object target = object != null ? object : alternative; try { FieldUtils.writeField(target, fieldname, value, true); } catch (Exception e) { throw ...
java
private void writeObjectToField(String fieldname, Object value, Object object, Object alternative) throws Exception { Object target = object != null ? object : alternative; try { FieldUtils.writeField(target, fieldname, value, true); } catch (Exception e) { throw ...
[ "private", "void", "writeObjectToField", "(", "String", "fieldname", ",", "Object", "value", ",", "Object", "object", ",", "Object", "alternative", ")", "throws", "Exception", "{", "Object", "target", "=", "object", "!=", "null", "?", "object", ":", "alternati...
Writes a value to the object from the field with the given name from either the object parameter or if this parameter is null from the alternative parameter.
[ "Writes", "a", "value", "to", "the", "object", "from", "the", "field", "with", "the", "given", "name", "from", "either", "the", "object", "parameter", "or", "if", "this", "parameter", "is", "null", "from", "the", "alternative", "parameter", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/performer/TransformationPerformer.java#L210-L219
train
openengsb/openengsb
components/util/src/main/java/org/openengsb/core/util/DefaultOsgiUtilsService.java
DefaultOsgiUtilsService.waitForServiceFromTracker
private static Object waitForServiceFromTracker(ServiceTracker tracker, long timeout) throws OsgiServiceNotAvailableException { synchronized (tracker) { tracker.open(); try { return tracker.waitForService(timeout); } catch (InterruptedException e) { ...
java
private static Object waitForServiceFromTracker(ServiceTracker tracker, long timeout) throws OsgiServiceNotAvailableException { synchronized (tracker) { tracker.open(); try { return tracker.waitForService(timeout); } catch (InterruptedException e) { ...
[ "private", "static", "Object", "waitForServiceFromTracker", "(", "ServiceTracker", "tracker", ",", "long", "timeout", ")", "throws", "OsgiServiceNotAvailableException", "{", "synchronized", "(", "tracker", ")", "{", "tracker", ".", "open", "(", ")", ";", "try", "{...
tries to retrieve the service from the given service-tracker for the amount of milliseconds provided by the given timeout. @throws OsgiServiceNotAvailableException if the service could not be found within the given timeout
[ "tries", "to", "retrieve", "the", "service", "from", "the", "given", "service", "-", "tracker", "for", "the", "amount", "of", "milliseconds", "provided", "by", "the", "given", "timeout", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/util/src/main/java/org/openengsb/core/util/DefaultOsgiUtilsService.java#L261-L273
train
BrunoEberhard/minimal-j
ext/vaadin/src/main/java/org/minimalj/frontend/impl/vaadin/toolkit/DefaultConfirmDialogFactory.java
DefaultConfirmDialogFactory.getDialogDimensions
protected double[] getDialogDimensions(String message, VaadinConfirmDialog.ContentMode style) { // Based on Reindeer style: double chrW = 0.51d; double chrH = 1.5d; double length = message != null? chrW * message.length() : 0; double rows = Math.ceil(length / MAX_WID...
java
protected double[] getDialogDimensions(String message, VaadinConfirmDialog.ContentMode style) { // Based on Reindeer style: double chrW = 0.51d; double chrH = 1.5d; double length = message != null? chrW * message.length() : 0; double rows = Math.ceil(length / MAX_WID...
[ "protected", "double", "[", "]", "getDialogDimensions", "(", "String", "message", ",", "VaadinConfirmDialog", ".", "ContentMode", "style", ")", "{", "// Based on Reindeer style:", "double", "chrW", "=", "0.51d", ";", "double", "chrH", "=", "1.5d", ";", "double", ...
Approximates the dialog dimensions based on its message length. @param message Message string @return approximate size for the dialog with given message
[ "Approximates", "the", "dialog", "dimensions", "based", "on", "its", "message", "length", "." ]
f7c5461b2b47a10b383aee1e2f1f150f6773703b
https://github.com/BrunoEberhard/minimal-j/blob/f7c5461b2b47a10b383aee1e2f1f150f6773703b/ext/vaadin/src/main/java/org/minimalj/frontend/impl/vaadin/toolkit/DefaultConfirmDialogFactory.java#L184-L218
train
BrunoEberhard/minimal-j
ext/vaadin/src/main/java/org/minimalj/frontend/impl/vaadin/toolkit/DefaultConfirmDialogFactory.java
DefaultConfirmDialogFactory.count
private static int count(final String needle, final String haystack) { int count = 0; int pos = -1; while ((pos = haystack.indexOf(needle, pos + 1)) >= 0) { count++; } return count; }
java
private static int count(final String needle, final String haystack) { int count = 0; int pos = -1; while ((pos = haystack.indexOf(needle, pos + 1)) >= 0) { count++; } return count; }
[ "private", "static", "int", "count", "(", "final", "String", "needle", ",", "final", "String", "haystack", ")", "{", "int", "count", "=", "0", ";", "int", "pos", "=", "-", "1", ";", "while", "(", "(", "pos", "=", "haystack", ".", "indexOf", "(", "n...
Count the number of needles within a haystack. @param needle The string to search for. @param haystack The string to process. @return count of needles within a haystack
[ "Count", "the", "number", "of", "needles", "within", "a", "haystack", "." ]
f7c5461b2b47a10b383aee1e2f1f150f6773703b
https://github.com/BrunoEberhard/minimal-j/blob/f7c5461b2b47a10b383aee1e2f1f150f6773703b/ext/vaadin/src/main/java/org/minimalj/frontend/impl/vaadin/toolkit/DefaultConfirmDialogFactory.java#L229-L236
train
BrunoEberhard/minimal-j
ext/vaadin/src/main/java/org/minimalj/frontend/impl/vaadin/toolkit/DefaultConfirmDialogFactory.java
DefaultConfirmDialogFactory.format
private String format(double n) { NumberFormat nf = NumberFormat.getNumberInstance(Locale.ENGLISH); nf.setMaximumFractionDigits(1); nf.setGroupingUsed(false); return nf.format(n); }
java
private String format(double n) { NumberFormat nf = NumberFormat.getNumberInstance(Locale.ENGLISH); nf.setMaximumFractionDigits(1); nf.setGroupingUsed(false); return nf.format(n); }
[ "private", "String", "format", "(", "double", "n", ")", "{", "NumberFormat", "nf", "=", "NumberFormat", ".", "getNumberInstance", "(", "Locale", ".", "ENGLISH", ")", ";", "nf", ".", "setMaximumFractionDigits", "(", "1", ")", ";", "nf", ".", "setGroupingUsed"...
Format a double single fraction digit. @param n @return
[ "Format", "a", "double", "single", "fraction", "digit", "." ]
f7c5461b2b47a10b383aee1e2f1f150f6773703b
https://github.com/BrunoEberhard/minimal-j/blob/f7c5461b2b47a10b383aee1e2f1f150f6773703b/ext/vaadin/src/main/java/org/minimalj/frontend/impl/vaadin/toolkit/DefaultConfirmDialogFactory.java#L244-L249
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EDBModelObject.java
EDBModelObject.getModelDescription
public ModelDescription getModelDescription() { String modelType = object.getString(EDBConstants.MODEL_TYPE); String version = object.getString(EDBConstants.MODEL_TYPE_VERSION); return new ModelDescription(modelType, version); }
java
public ModelDescription getModelDescription() { String modelType = object.getString(EDBConstants.MODEL_TYPE); String version = object.getString(EDBConstants.MODEL_TYPE_VERSION); return new ModelDescription(modelType, version); }
[ "public", "ModelDescription", "getModelDescription", "(", ")", "{", "String", "modelType", "=", "object", ".", "getString", "(", "EDBConstants", ".", "MODEL_TYPE", ")", ";", "String", "version", "=", "object", ".", "getString", "(", "EDBConstants", ".", "MODEL_T...
Returns the model description for the model class of the EDBModelObject
[ "Returns", "the", "model", "description", "for", "the", "model", "class", "of", "the", "EDBModelObject" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EDBModelObject.java#L46-L50
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EDBModelObject.java
EDBModelObject.getCorrespondingModel
public OpenEngSBModel getCorrespondingModel() throws EKBException { ModelDescription description = getModelDescription(); try { Class<?> modelClass = modelRegistry.loadModel(description); return (OpenEngSBModel) edbConverter.convertEDBObjectToModel(modelClass, object); } ...
java
public OpenEngSBModel getCorrespondingModel() throws EKBException { ModelDescription description = getModelDescription(); try { Class<?> modelClass = modelRegistry.loadModel(description); return (OpenEngSBModel) edbConverter.convertEDBObjectToModel(modelClass, object); } ...
[ "public", "OpenEngSBModel", "getCorrespondingModel", "(", ")", "throws", "EKBException", "{", "ModelDescription", "description", "=", "getModelDescription", "(", ")", ";", "try", "{", "Class", "<", "?", ">", "modelClass", "=", "modelRegistry", ".", "loadModel", "(...
Returns the corresponding model object for the EDBModelObject
[ "Returns", "the", "corresponding", "model", "object", "for", "the", "EDBModelObject" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EDBModelObject.java#L55-L63
train
aseovic/coherence-tools
loader/src/main/java/com/seovic/loader/source/CsvSource.java
CsvSource.iterator
public Iterator iterator() { CsvPreference preferences = new CsvPreference.Builder(m_quoteChar, m_delimiterChar, m_endOfLineSymbols).build(); return new CsvIterator(new CsvListReader(m_reader, preferences), m_header); }
java
public Iterator iterator() { CsvPreference preferences = new CsvPreference.Builder(m_quoteChar, m_delimiterChar, m_endOfLineSymbols).build(); return new CsvIterator(new CsvListReader(m_reader, preferences), m_header); }
[ "public", "Iterator", "iterator", "(", ")", "{", "CsvPreference", "preferences", "=", "new", "CsvPreference", ".", "Builder", "(", "m_quoteChar", ",", "m_delimiterChar", ",", "m_endOfLineSymbols", ")", ".", "build", "(", ")", ";", "return", "new", "CsvIterator",...
Return an iterator over this source. @return a source iterator
[ "Return", "an", "iterator", "over", "this", "source", "." ]
561a1d7e572ad98657fcd26beb1164891b0cd6fe
https://github.com/aseovic/coherence-tools/blob/561a1d7e572ad98657fcd26beb1164891b0cd6fe/loader/src/main/java/com/seovic/loader/source/CsvSource.java#L105-L110
train
aseovic/coherence-tools
core/src/main/java/com/seovic/core/expression/MvelExpression.java
MvelExpression.getCompiledExpression
protected Serializable getCompiledExpression() { if (compiledExpression == null) { compiledExpression = MVEL.compileExpression(getExpression(), PARSER_CONTEXT); } return compiledExpression; }
java
protected Serializable getCompiledExpression() { if (compiledExpression == null) { compiledExpression = MVEL.compileExpression(getExpression(), PARSER_CONTEXT); } return compiledExpression; }
[ "protected", "Serializable", "getCompiledExpression", "(", ")", "{", "if", "(", "compiledExpression", "==", "null", ")", "{", "compiledExpression", "=", "MVEL", ".", "compileExpression", "(", "getExpression", "(", ")", ",", "PARSER_CONTEXT", ")", ";", "}", "retu...
Return a compiled MVEL expression. @return compiled MVEL expression
[ "Return", "a", "compiled", "MVEL", "expression", "." ]
561a1d7e572ad98657fcd26beb1164891b0cd6fe
https://github.com/aseovic/coherence-tools/blob/561a1d7e572ad98657fcd26beb1164891b0cd6fe/core/src/main/java/com/seovic/core/expression/MvelExpression.java#L108-L113
train
aseovic/coherence-tools
core/src/main/java/com/seovic/core/expression/MvelExpression.java
MvelExpression.getCompiledSetExpression
protected Serializable getCompiledSetExpression() { if (compiledSetExpression == null) { compiledSetExpression = MVEL.compileSetExpression(getExpression(), PARSER_CONTEXT); } return compiledSetExpression; }
java
protected Serializable getCompiledSetExpression() { if (compiledSetExpression == null) { compiledSetExpression = MVEL.compileSetExpression(getExpression(), PARSER_CONTEXT); } return compiledSetExpression; }
[ "protected", "Serializable", "getCompiledSetExpression", "(", ")", "{", "if", "(", "compiledSetExpression", "==", "null", ")", "{", "compiledSetExpression", "=", "MVEL", ".", "compileSetExpression", "(", "getExpression", "(", ")", ",", "PARSER_CONTEXT", ")", ";", ...
Return a compiled MVEL set expression. @return compiled MVEL set expression
[ "Return", "a", "compiled", "MVEL", "set", "expression", "." ]
561a1d7e572ad98657fcd26beb1164891b0cd6fe
https://github.com/aseovic/coherence-tools/blob/561a1d7e572ad98657fcd26beb1164891b0cd6fe/core/src/main/java/com/seovic/core/expression/MvelExpression.java#L120-L125
train
openengsb/openengsb
ui/common/src/main/java/org/openengsb/ui/common/editor/ServiceEditorPanel.java
ServiceEditorPanel.attachFormValidator
public void attachFormValidator(final Form<?> form, final FormValidator validator) { form.add(new AbstractFormValidator() { private static final long serialVersionUID = -4181095793820830517L; @Override public void validate(Form<?> form) { Map<String, FormCom...
java
public void attachFormValidator(final Form<?> form, final FormValidator validator) { form.add(new AbstractFormValidator() { private static final long serialVersionUID = -4181095793820830517L; @Override public void validate(Form<?> form) { Map<String, FormCom...
[ "public", "void", "attachFormValidator", "(", "final", "Form", "<", "?", ">", "form", ",", "final", "FormValidator", "validator", ")", "{", "form", ".", "add", "(", "new", "AbstractFormValidator", "(", ")", "{", "private", "static", "final", "long", "serialV...
attach a ServiceValidator to the given form. This formValidator is meant to validate the fields in context to each other. This validation is only done on submit.
[ "attach", "a", "ServiceValidator", "to", "the", "given", "form", ".", "This", "formValidator", "is", "meant", "to", "validate", "the", "fields", "in", "context", "to", "each", "other", ".", "This", "validation", "is", "only", "done", "on", "submit", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/ui/common/src/main/java/org/openengsb/ui/common/editor/ServiceEditorPanel.java#L328-L372
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java
AbstractEDBService.performCommitLogic
protected Long performCommitLogic(EDBCommit commit) throws EDBException { if (!(commit instanceof JPACommit)) { throw new EDBException("The given commit type is not supported."); } if (commit.isCommitted()) { throw new EDBException("EDBCommit is already commitet."); ...
java
protected Long performCommitLogic(EDBCommit commit) throws EDBException { if (!(commit instanceof JPACommit)) { throw new EDBException("The given commit type is not supported."); } if (commit.isCommitted()) { throw new EDBException("EDBCommit is already commitet."); ...
[ "protected", "Long", "performCommitLogic", "(", "EDBCommit", "commit", ")", "throws", "EDBException", "{", "if", "(", "!", "(", "commit", "instanceof", "JPACommit", ")", ")", "{", "throw", "new", "EDBException", "(", "\"The given commit type is not supported.\"", ")...
Performs the actual commit logic for the EDB, including the hooks and the revision checking.
[ "Performs", "the", "actual", "commit", "logic", "for", "the", "EDB", "including", "the", "hooks", "and", "the", "revision", "checking", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java#L64-L84
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java
AbstractEDBService.persistCommitChanges
private void persistCommitChanges(JPACommit commit, Long timestamp) { commit.setTimestamp(timestamp); addModifiedObjectsToEntityManager(commit.getJPAObjects(), timestamp); commit.setCommitted(true); logger.debug("persisting JPACommit"); entityManager.persist(commit); logg...
java
private void persistCommitChanges(JPACommit commit, Long timestamp) { commit.setTimestamp(timestamp); addModifiedObjectsToEntityManager(commit.getJPAObjects(), timestamp); commit.setCommitted(true); logger.debug("persisting JPACommit"); entityManager.persist(commit); logg...
[ "private", "void", "persistCommitChanges", "(", "JPACommit", "commit", ",", "Long", "timestamp", ")", "{", "commit", ".", "setTimestamp", "(", "timestamp", ")", ";", "addModifiedObjectsToEntityManager", "(", "commit", ".", "getJPAObjects", "(", ")", ",", "timestam...
Add all the changes which are done through the given commit object to the entity manager.
[ "Add", "all", "the", "changes", "which", "are", "done", "through", "the", "given", "commit", "object", "to", "the", "entity", "manager", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java#L112-L120
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java
AbstractEDBService.addModifiedObjectsToEntityManager
private void addModifiedObjectsToEntityManager(List<JPAObject> modified, Long timestamp) { for (JPAObject update : modified) { update.setTimestamp(timestamp); entityManager.persist(update); } }
java
private void addModifiedObjectsToEntityManager(List<JPAObject> modified, Long timestamp) { for (JPAObject update : modified) { update.setTimestamp(timestamp); entityManager.persist(update); } }
[ "private", "void", "addModifiedObjectsToEntityManager", "(", "List", "<", "JPAObject", ">", "modified", ",", "Long", "timestamp", ")", "{", "for", "(", "JPAObject", "update", ":", "modified", ")", "{", "update", ".", "setTimestamp", "(", "timestamp", ")", ";",...
Updates all modified EDBObjects with the timestamp and persist them through the entity manager.
[ "Updates", "all", "modified", "EDBObjects", "with", "the", "timestamp", "and", "persist", "them", "through", "the", "entity", "manager", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java#L125-L130
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java
AbstractEDBService.updateDeletedObjectsThroughEntityManager
private void updateDeletedObjectsThroughEntityManager(List<String> oids, Long timestamp) { for (String id : oids) { EDBObject o = new EDBObject(id); o.updateTimestamp(timestamp); o.setDeleted(true); JPAObject j = EDBUtils.convertEDBObjectToJPAObject(o); ...
java
private void updateDeletedObjectsThroughEntityManager(List<String> oids, Long timestamp) { for (String id : oids) { EDBObject o = new EDBObject(id); o.updateTimestamp(timestamp); o.setDeleted(true); JPAObject j = EDBUtils.convertEDBObjectToJPAObject(o); ...
[ "private", "void", "updateDeletedObjectsThroughEntityManager", "(", "List", "<", "String", ">", "oids", ",", "Long", "timestamp", ")", "{", "for", "(", "String", "id", ":", "oids", ")", "{", "EDBObject", "o", "=", "new", "EDBObject", "(", "id", ")", ";", ...
Updates all deleted objects with the timestamp, mark them as deleted and persist them through the entity manager.
[ "Updates", "all", "deleted", "objects", "with", "the", "timestamp", "mark", "them", "as", "deleted", "and", "persist", "them", "through", "the", "entity", "manager", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java#L135-L143
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java
AbstractEDBService.runBeginCommitHooks
private void runBeginCommitHooks(EDBCommit commit) throws EDBException { for (EDBBeginCommitHook hook : beginCommitHooks) { try { hook.onStartCommit(commit); } catch (ServiceUnavailableException e) { // Ignore } catch (EDBException e) { ...
java
private void runBeginCommitHooks(EDBCommit commit) throws EDBException { for (EDBBeginCommitHook hook : beginCommitHooks) { try { hook.onStartCommit(commit); } catch (ServiceUnavailableException e) { // Ignore } catch (EDBException e) { ...
[ "private", "void", "runBeginCommitHooks", "(", "EDBCommit", "commit", ")", "throws", "EDBException", "{", "for", "(", "EDBBeginCommitHook", "hook", ":", "beginCommitHooks", ")", "{", "try", "{", "hook", ".", "onStartCommit", "(", "commit", ")", ";", "}", "catc...
Runs all registered begin commit hooks on the EDBCommit object. Logs exceptions which occurs in the hooks, except for ServiceUnavailableExceptions and EDBExceptions. If an EDBException occurs, it is thrown and so returned to the calling instance.
[ "Runs", "all", "registered", "begin", "commit", "hooks", "on", "the", "EDBCommit", "object", ".", "Logs", "exceptions", "which", "occurs", "in", "the", "hooks", "except", "for", "ServiceUnavailableExceptions", "and", "EDBExceptions", ".", "If", "an", "EDBException...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java#L150-L162
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java
AbstractEDBService.runPreCommitHooks
private EDBException runPreCommitHooks(EDBCommit commit) { EDBException exception = null; for (EDBPreCommitHook hook : preCommitHooks) { try { hook.onPreCommit(commit); } catch (ServiceUnavailableException e) { // Ignore } catch (EDBExc...
java
private EDBException runPreCommitHooks(EDBCommit commit) { EDBException exception = null; for (EDBPreCommitHook hook : preCommitHooks) { try { hook.onPreCommit(commit); } catch (ServiceUnavailableException e) { // Ignore } catch (EDBExc...
[ "private", "EDBException", "runPreCommitHooks", "(", "EDBCommit", "commit", ")", "{", "EDBException", "exception", "=", "null", ";", "for", "(", "EDBPreCommitHook", "hook", ":", "preCommitHooks", ")", "{", "try", "{", "hook", ".", "onPreCommit", "(", "commit", ...
Runs all registered pre commit hooks on the EDBCommit object. Logs exceptions which occurs in the hooks, except for ServiceUnavailableExceptions and EDBExceptions. If an EDBException occurs, the function returns this exception.
[ "Runs", "all", "registered", "pre", "commit", "hooks", "on", "the", "EDBCommit", "object", ".", "Logs", "exceptions", "which", "occurs", "in", "the", "hooks", "except", "for", "ServiceUnavailableExceptions", "and", "EDBExceptions", ".", "If", "an", "EDBException",...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java#L169-L184
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java
AbstractEDBService.runErrorHooks
private Long runErrorHooks(EDBCommit commit, EDBException exception) throws EDBException { for (EDBErrorHook hook : errorHooks) { try { EDBCommit newCommit = hook.onError(commit, exception); if (newCommit != null) { return commit(newCommit); ...
java
private Long runErrorHooks(EDBCommit commit, EDBException exception) throws EDBException { for (EDBErrorHook hook : errorHooks) { try { EDBCommit newCommit = hook.onError(commit, exception); if (newCommit != null) { return commit(newCommit); ...
[ "private", "Long", "runErrorHooks", "(", "EDBCommit", "commit", ",", "EDBException", "exception", ")", "throws", "EDBException", "{", "for", "(", "EDBErrorHook", "hook", ":", "errorHooks", ")", "{", "try", "{", "EDBCommit", "newCommit", "=", "hook", ".", "onEr...
Runs all registered error hooks on the EDBCommit object. Logs exceptions which occurs in the hooks, except for ServiceUnavailableExceptions and EDBExceptions. If an EDBException occurs, the function overrides the cause of the error with the new Exception. If an error hook returns a new EDBCommit, the EDB tries to persi...
[ "Runs", "all", "registered", "error", "hooks", "on", "the", "EDBCommit", "object", ".", "Logs", "exceptions", "which", "occurs", "in", "the", "hooks", "except", "for", "ServiceUnavailableExceptions", "and", "EDBExceptions", ".", "If", "an", "EDBException", "occurs...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java#L192-L209
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java
AbstractEDBService.runEDBPostHooks
private void runEDBPostHooks(EDBCommit commit) { for (EDBPostCommitHook hook : postCommitHooks) { try { hook.onPostCommit(commit); } catch (ServiceUnavailableException e) { // Ignore } catch (Exception e) { logger.error("Error w...
java
private void runEDBPostHooks(EDBCommit commit) { for (EDBPostCommitHook hook : postCommitHooks) { try { hook.onPostCommit(commit); } catch (ServiceUnavailableException e) { // Ignore } catch (Exception e) { logger.error("Error w...
[ "private", "void", "runEDBPostHooks", "(", "EDBCommit", "commit", ")", "{", "for", "(", "EDBPostCommitHook", "hook", ":", "postCommitHooks", ")", "{", "try", "{", "hook", ".", "onPostCommit", "(", "commit", ")", ";", "}", "catch", "(", "ServiceUnavailableExcep...
Runs all registered post commit hooks on the EDBCommit object. Logs exceptions which occurs in the hooks, except for ServiceUnavailableExceptions.
[ "Runs", "all", "registered", "post", "commit", "hooks", "on", "the", "EDBCommit", "object", ".", "Logs", "exceptions", "which", "occurs", "in", "the", "hooks", "except", "for", "ServiceUnavailableExceptions", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/AbstractEDBService.java#L215-L225
train
matthewhorridge/owlexplanation
src/main/java/org/semanticweb/owl/explanation/impl/laconic/LaconicExplanationGenerator.java
LaconicExplanationGenerator.isLaconic
public boolean isLaconic(Explanation<E> justification) throws ExplanationException { // OBSERVATION: If a justification is laconic, then given its O+, there should be // one justification that is equal to itself. // Could optimise more here - we know that a laconic justification won't contain ...
java
public boolean isLaconic(Explanation<E> justification) throws ExplanationException { // OBSERVATION: If a justification is laconic, then given its O+, there should be // one justification that is equal to itself. // Could optimise more here - we know that a laconic justification won't contain ...
[ "public", "boolean", "isLaconic", "(", "Explanation", "<", "E", ">", "justification", ")", "throws", "ExplanationException", "{", "// OBSERVATION: If a justification is laconic, then given its O+, there should be", "// one justification that is equal to itself.", "// Could optimise mo...
Checks to see if a justification for a given entailment is laconic. @param justification The justification to be checked @return <code>true</code> if the justification is laconic, otherwise <code>false</code> @throws ExplanationException If there was a problem. The details of this are implementation specific.
[ "Checks", "to", "see", "if", "a", "justification", "for", "a", "given", "entailment", "is", "laconic", "." ]
439c5ca67835f5e421adde725e4e8a3bcd760ac8
https://github.com/matthewhorridge/owlexplanation/blob/439c5ca67835f5e421adde725e4e8a3bcd760ac8/src/main/java/org/semanticweb/owl/explanation/impl/laconic/LaconicExplanationGenerator.java#L328-L340
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/JPAObject.java
JPAObject.getEntry
public JPAEntry getEntry(String entryKey) { for (JPAEntry entry : entries) { if (entry.getKey().equals(entryKey)) { return entry; } } return null; }
java
public JPAEntry getEntry(String entryKey) { for (JPAEntry entry : entries) { if (entry.getKey().equals(entryKey)) { return entry; } } return null; }
[ "public", "JPAEntry", "getEntry", "(", "String", "entryKey", ")", "{", "for", "(", "JPAEntry", "entry", ":", "entries", ")", "{", "if", "(", "entry", ".", "getKey", "(", ")", ".", "equals", "(", "entryKey", ")", ")", "{", "return", "entry", ";", "}",...
Returns the entry of the JPAEntry list of this object with the given key. Returns null in case there is no such entry.
[ "Returns", "the", "entry", "of", "the", "JPAEntry", "list", "of", "this", "object", "with", "the", "given", "key", ".", "Returns", "null", "in", "case", "there", "is", "no", "such", "entry", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/JPAObject.java#L65-L72
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/JPAObject.java
JPAObject.removeEntry
public void removeEntry(String entryKey) { Iterator<JPAEntry> iter = entries.iterator(); while (iter.hasNext()) { if (iter.next().getKey().equals(entryKey)) { iter.remove(); return; } } }
java
public void removeEntry(String entryKey) { Iterator<JPAEntry> iter = entries.iterator(); while (iter.hasNext()) { if (iter.next().getKey().equals(entryKey)) { iter.remove(); return; } } }
[ "public", "void", "removeEntry", "(", "String", "entryKey", ")", "{", "Iterator", "<", "JPAEntry", ">", "iter", "=", "entries", ".", "iterator", "(", ")", ";", "while", "(", "iter", ".", "hasNext", "(", ")", ")", "{", "if", "(", "iter", ".", "next", ...
Removes the entry from the JPAEntry list of this object with the given key.
[ "Removes", "the", "entry", "from", "the", "JPAEntry", "list", "of", "this", "object", "with", "the", "given", "key", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/JPAObject.java#L77-L85
train
openengsb/openengsb
components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/operation/LengthOperation.java
LengthOperation.getLengthOfObject
private Object getLengthOfObject(Object object, String functionName) throws TransformationOperationException { try { Method method = object.getClass().getMethod(functionName); return method.invoke(object); } catch (NoSuchMethodException e) { StringBuilder builder = ne...
java
private Object getLengthOfObject(Object object, String functionName) throws TransformationOperationException { try { Method method = object.getClass().getMethod(functionName); return method.invoke(object); } catch (NoSuchMethodException e) { StringBuilder builder = ne...
[ "private", "Object", "getLengthOfObject", "(", "Object", "object", ",", "String", "functionName", ")", "throws", "TransformationOperationException", "{", "try", "{", "Method", "method", "=", "object", ".", "getClass", "(", ")", ".", "getMethod", "(", "functionName...
Returns the length of the given object got through the method of the given function name
[ "Returns", "the", "length", "of", "the", "given", "object", "got", "through", "the", "method", "of", "the", "given", "function", "name" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/operation/LengthOperation.java#L69-L85
train
BrunoEberhard/minimal-j
ext/memory/src/main/java/org/minimalj/repository/memory/InMemoryRepository.java
InMemoryRepository.read_
private <T> T read_(Class<T> clazz, Object id) { Map<String, Object> objects = objects(clazz); return (T) objects.get(id.toString()); }
java
private <T> T read_(Class<T> clazz, Object id) { Map<String, Object> objects = objects(clazz); return (T) objects.get(id.toString()); }
[ "private", "<", "T", ">", "T", "read_", "(", "Class", "<", "T", ">", "clazz", ",", "Object", "id", ")", "{", "Map", "<", "String", ",", "Object", ">", "objects", "=", "objects", "(", "clazz", ")", ";", "return", "(", "T", ")", "objects", ".", "...
read without clone
[ "read", "without", "clone" ]
f7c5461b2b47a10b383aee1e2f1f150f6773703b
https://github.com/BrunoEberhard/minimal-j/blob/f7c5461b2b47a10b383aee1e2f1f150f6773703b/ext/memory/src/main/java/org/minimalj/repository/memory/InMemoryRepository.java#L131-L134
train
openengsb/openengsb
infrastructure/ldap/src/main/java/org/openengsb/infrastructure/ldap/LdapDao.java
LdapDao.deleteSubtreeExcludingRoot
public void deleteSubtreeExcludingRoot(Dn root) throws NoSuchNodeException, MissingParentException { existsCheck(root); try { EntryCursor entryCursor = connection.search(root, "(objectclass=*)", SearchScope.ONELEVEL); while (entryCursor.next()) { deleteSubtreeIncl...
java
public void deleteSubtreeExcludingRoot(Dn root) throws NoSuchNodeException, MissingParentException { existsCheck(root); try { EntryCursor entryCursor = connection.search(root, "(objectclass=*)", SearchScope.ONELEVEL); while (entryCursor.next()) { deleteSubtreeIncl...
[ "public", "void", "deleteSubtreeExcludingRoot", "(", "Dn", "root", ")", "throws", "NoSuchNodeException", ",", "MissingParentException", "{", "existsCheck", "(", "root", ")", ";", "try", "{", "EntryCursor", "entryCursor", "=", "connection", ".", "search", "(", "roo...
Deletes the entire subtree of root but not root itself. Throws NoSuchNodeException if root does not exist. Throws MissingParentException if some node above root does not exist.
[ "Deletes", "the", "entire", "subtree", "of", "root", "but", "not", "root", "itself", ".", "Throws", "NoSuchNodeException", "if", "root", "does", "not", "exist", ".", "Throws", "MissingParentException", "if", "some", "node", "above", "root", "does", "not", "exi...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/infrastructure/ldap/src/main/java/org/openengsb/infrastructure/ldap/LdapDao.java#L244-L254
train
openengsb/openengsb
infrastructure/ldap/src/main/java/org/openengsb/infrastructure/ldap/LdapDao.java
LdapDao.exists
public boolean exists(Dn dn) { try { return connection.exists(dn); } catch (LdapException e) { throw new LdapDaoException(e); } }
java
public boolean exists(Dn dn) { try { return connection.exists(dn); } catch (LdapException e) { throw new LdapDaoException(e); } }
[ "public", "boolean", "exists", "(", "Dn", "dn", ")", "{", "try", "{", "return", "connection", ".", "exists", "(", "dn", ")", ";", "}", "catch", "(", "LdapException", "e", ")", "{", "throw", "new", "LdapDaoException", "(", "e", ")", ";", "}", "}" ]
Returns true if dn exists, false otherwise.
[ "Returns", "true", "if", "dn", "exists", "false", "otherwise", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/infrastructure/ldap/src/main/java/org/openengsb/infrastructure/ldap/LdapDao.java#L259-L265
train
openengsb/openengsb
components/ekb/persistence-query-edb/src/main/java/org/openengsb/core/ekb/persistence/query/edb/internal/DefaultQueryParser.java
DefaultQueryParser.createQueryRequest
private QueryRequest createQueryRequest(String[] elements) { QueryRequest request = QueryRequest.create(); for (String element : elements) { String[] parts = StringUtils.split(element, ":", 2); parts[0] = parts[0].replace("\\", "\\\\"); parts[1] = parts[1].replace("\\...
java
private QueryRequest createQueryRequest(String[] elements) { QueryRequest request = QueryRequest.create(); for (String element : elements) { String[] parts = StringUtils.split(element, ":", 2); parts[0] = parts[0].replace("\\", "\\\\"); parts[1] = parts[1].replace("\\...
[ "private", "QueryRequest", "createQueryRequest", "(", "String", "[", "]", "elements", ")", "{", "QueryRequest", "request", "=", "QueryRequest", ".", "create", "(", ")", ";", "for", "(", "String", "element", ":", "elements", ")", "{", "String", "[", "]", "p...
Parses the previously split query string into a query request and fills the parameters of the object with the data.
[ "Parses", "the", "previously", "split", "query", "string", "into", "a", "query", "request", "and", "fills", "the", "parameters", "of", "the", "object", "with", "the", "data", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-query-edb/src/main/java/org/openengsb/core/ekb/persistence/query/edb/internal/DefaultQueryParser.java#L77-L86
train
aseovic/coherence-tools
identity/src/main/java/com/seovic/identity/Sequence.java
Sequence.allocateBlock
public SequenceGenerator.SequenceBlock allocateBlock(int blockSize) { final long l = this.last; SequenceGenerator.SequenceBlock block = new SequenceGenerator.SequenceBlock(l + 1, l + blockSize); this.last = l + blockSize; return block; }
java
public SequenceGenerator.SequenceBlock allocateBlock(int blockSize) { final long l = this.last; SequenceGenerator.SequenceBlock block = new SequenceGenerator.SequenceBlock(l + 1, l + blockSize); this.last = l + blockSize; return block; }
[ "public", "SequenceGenerator", ".", "SequenceBlock", "allocateBlock", "(", "int", "blockSize", ")", "{", "final", "long", "l", "=", "this", ".", "last", ";", "SequenceGenerator", ".", "SequenceBlock", "block", "=", "new", "SequenceGenerator", ".", "SequenceBlock",...
Allocate a block of sequence numbers, starting from the last allocated sequence value. @param blockSize the number of sequences to allocate @return allocated block of sequential numbers
[ "Allocate", "a", "block", "of", "sequence", "numbers", "starting", "from", "the", "last", "allocated", "sequence", "value", "." ]
561a1d7e572ad98657fcd26beb1164891b0cd6fe
https://github.com/aseovic/coherence-tools/blob/561a1d7e572ad98657fcd26beb1164891b0cd6fe/identity/src/main/java/com/seovic/identity/Sequence.java#L100-L107
train
aseovic/coherence-tools
identity/src/main/java/com/seovic/identity/Sequence.java
Sequence.readExternal
public void readExternal(PofReader reader) throws IOException { name = reader.readString(0); last = reader.readLong(1); }
java
public void readExternal(PofReader reader) throws IOException { name = reader.readString(0); last = reader.readLong(1); }
[ "public", "void", "readExternal", "(", "PofReader", "reader", ")", "throws", "IOException", "{", "name", "=", "reader", ".", "readString", "(", "0", ")", ";", "last", "=", "reader", ".", "readLong", "(", "1", ")", ";", "}" ]
Deserialize object from the POF stream. @param reader POF reader to use @throws IOException if an error occurs
[ "Deserialize", "object", "from", "the", "POF", "stream", "." ]
561a1d7e572ad98657fcd26beb1164891b0cd6fe
https://github.com/aseovic/coherence-tools/blob/561a1d7e572ad98657fcd26beb1164891b0cd6fe/identity/src/main/java/com/seovic/identity/Sequence.java#L137-L141
train
aseovic/coherence-tools
identity/src/main/java/com/seovic/identity/Sequence.java
Sequence.writeExternal
public void writeExternal(PofWriter writer) throws IOException { writer.writeString(0, name); writer.writeLong(1, last); }
java
public void writeExternal(PofWriter writer) throws IOException { writer.writeString(0, name); writer.writeLong(1, last); }
[ "public", "void", "writeExternal", "(", "PofWriter", "writer", ")", "throws", "IOException", "{", "writer", ".", "writeString", "(", "0", ",", "name", ")", ";", "writer", ".", "writeLong", "(", "1", ",", "last", ")", ";", "}" ]
Serialize object into the POF stream. @param writer POF writer to use @throws IOException if an error occurs
[ "Serialize", "object", "into", "the", "POF", "stream", "." ]
561a1d7e572ad98657fcd26beb1164891b0cd6fe
https://github.com/aseovic/coherence-tools/blob/561a1d7e572ad98657fcd26beb1164891b0cd6fe/identity/src/main/java/com/seovic/identity/Sequence.java#L150-L154
train
matthewhorridge/owlexplanation
src/main/java/org/semanticweb/owl/explanation/impl/rootderived/CompleteRootDerivedReasoner.java
CompleteRootDerivedReasoner.getRootUnsatisfiableClasses
public Set<OWLClass> getRootUnsatisfiableClasses() throws ExplanationException { StructuralRootDerivedReasoner srd = new StructuralRootDerivedReasoner(manager, baseReasoner, reasonerFactory); Set<OWLClass> estimatedRoots = srd.getRootUnsatisfiableClasses(); cls2JustificationMap = new HashMap<OWL...
java
public Set<OWLClass> getRootUnsatisfiableClasses() throws ExplanationException { StructuralRootDerivedReasoner srd = new StructuralRootDerivedReasoner(manager, baseReasoner, reasonerFactory); Set<OWLClass> estimatedRoots = srd.getRootUnsatisfiableClasses(); cls2JustificationMap = new HashMap<OWL...
[ "public", "Set", "<", "OWLClass", ">", "getRootUnsatisfiableClasses", "(", ")", "throws", "ExplanationException", "{", "StructuralRootDerivedReasoner", "srd", "=", "new", "StructuralRootDerivedReasoner", "(", "manager", ",", "baseReasoner", ",", "reasonerFactory", ")", ...
Gets the root unsatisfiable classes. @return A set of classes that represent the root unsatisfiable classes
[ "Gets", "the", "root", "unsatisfiable", "classes", "." ]
439c5ca67835f5e421adde725e4e8a3bcd760ac8
https://github.com/matthewhorridge/owlexplanation/blob/439c5ca67835f5e421adde725e4e8a3bcd760ac8/src/main/java/org/semanticweb/owl/explanation/impl/rootderived/CompleteRootDerivedReasoner.java#L67-L127
train
mbeiter/util
db/src/main/java/org/beiter/michael/db/ConnectionFactory.java
ConnectionFactory.getConnection
public static Connection getConnection(final String jndiName) throws FactoryException { Validate.notBlank(jndiName, "The validated character sequence 'jndiName' is null or empty"); // no need for defensive copies of Strings try { return DataSourceFactory.getDataSource(...
java
public static Connection getConnection(final String jndiName) throws FactoryException { Validate.notBlank(jndiName, "The validated character sequence 'jndiName' is null or empty"); // no need for defensive copies of Strings try { return DataSourceFactory.getDataSource(...
[ "public", "static", "Connection", "getConnection", "(", "final", "String", "jndiName", ")", "throws", "FactoryException", "{", "Validate", ".", "notBlank", "(", "jndiName", ",", "\"The validated character sequence 'jndiName' is null or empty\"", ")", ";", "// no need for de...
Return a Connection instance for a JNDI managed JDBC connection. @param jndiName The JNDI connection name @return a JDBC connection @throws FactoryException When the connection cannot be retrieved from JNDI @throws NullPointerException When {@code jndiName} is null @throws IllegalArgumentException When {@c...
[ "Return", "a", "Connection", "instance", "for", "a", "JNDI", "managed", "JDBC", "connection", "." ]
490fcebecb936e00c2f2ce2096b679b2fd10865e
https://github.com/mbeiter/util/blob/490fcebecb936e00c2f2ce2096b679b2fd10865e/db/src/main/java/org/beiter/michael/db/ConnectionFactory.java#L71-L85
train
openengsb/openengsb
api/core/src/main/java/org/openengsb/core/api/model/QueryRequest.java
QueryRequest.query
public static QueryRequest query(String key, Object value) { return QueryRequest.create().addParameter(key, value); }
java
public static QueryRequest query(String key, Object value) { return QueryRequest.create().addParameter(key, value); }
[ "public", "static", "QueryRequest", "query", "(", "String", "key", ",", "Object", "value", ")", "{", "return", "QueryRequest", ".", "create", "(", ")", ".", "addParameter", "(", "key", ",", "value", ")", ";", "}" ]
Creates a new QueryRequest object and adds the given first parameter.
[ "Creates", "a", "new", "QueryRequest", "object", "and", "adds", "the", "given", "first", "parameter", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/api/core/src/main/java/org/openengsb/core/api/model/QueryRequest.java#L80-L82
train
openengsb/openengsb
api/core/src/main/java/org/openengsb/core/api/model/QueryRequest.java
QueryRequest.addParameter
public QueryRequest addParameter(String key, Object value) { if (parameters.get(key) == null) { parameters.put(key, Sets.newHashSet(value)); } else { parameters.get(key).add(value); } return this; }
java
public QueryRequest addParameter(String key, Object value) { if (parameters.get(key) == null) { parameters.put(key, Sets.newHashSet(value)); } else { parameters.get(key).add(value); } return this; }
[ "public", "QueryRequest", "addParameter", "(", "String", "key", ",", "Object", "value", ")", "{", "if", "(", "parameters", ".", "get", "(", "key", ")", "==", "null", ")", "{", "parameters", ".", "put", "(", "key", ",", "Sets", ".", "newHashSet", "(", ...
Adds a parameter to this request.
[ "Adds", "a", "parameter", "to", "this", "request", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/api/core/src/main/java/org/openengsb/core/api/model/QueryRequest.java#L87-L94
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/dao/DefaultJPADao.java
DefaultJPADao.analyzeParamMap
@SuppressWarnings({ "rawtypes", "unchecked" }) private Predicate[] analyzeParamMap(CriteriaBuilder criteriaBuilder, Root from, Map<String, Object> param) { List<Predicate> predicates = new ArrayList<Predicate>(); for (Map.Entry<String, Object> entry : param.entrySet()) { String key = en...
java
@SuppressWarnings({ "rawtypes", "unchecked" }) private Predicate[] analyzeParamMap(CriteriaBuilder criteriaBuilder, Root from, Map<String, Object> param) { List<Predicate> predicates = new ArrayList<Predicate>(); for (Map.Entry<String, Object> entry : param.entrySet()) { String key = en...
[ "@", "SuppressWarnings", "(", "{", "\"rawtypes\"", ",", "\"unchecked\"", "}", ")", "private", "Predicate", "[", "]", "analyzeParamMap", "(", "CriteriaBuilder", "criteriaBuilder", ",", "Root", "from", ",", "Map", "<", "String", ",", "Object", ">", "param", ")",...
Analyzes the map and filters the values which are used for query
[ "Analyzes", "the", "map", "and", "filters", "the", "values", "which", "are", "used", "for", "query" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/dao/DefaultJPADao.java#L378-L399
train
aseovic/coherence-tools
loader/src/main/java/com/seovic/loader/target/JdbcTarget.java
JdbcTarget.batchImport
private void batchImport() { m_jdbcTemplate.batchUpdate(createInsertQuery(), new BatchPreparedStatementSetter() { public void setValues( PreparedStatement ps, int i) ...
java
private void batchImport() { m_jdbcTemplate.batchUpdate(createInsertQuery(), new BatchPreparedStatementSetter() { public void setValues( PreparedStatement ps, int i) ...
[ "private", "void", "batchImport", "(", ")", "{", "m_jdbcTemplate", ".", "batchUpdate", "(", "createInsertQuery", "(", ")", ",", "new", "BatchPreparedStatementSetter", "(", ")", "{", "public", "void", "setValues", "(", "PreparedStatement", "ps", ",", "int", "i", ...
Perform batch import into database.
[ "Perform", "batch", "import", "into", "database", "." ]
561a1d7e572ad98657fcd26beb1164891b0cd6fe
https://github.com/aseovic/coherence-tools/blob/561a1d7e572ad98657fcd26beb1164891b0cd6fe/loader/src/main/java/com/seovic/loader/target/JdbcTarget.java#L179-L198
train
aseovic/coherence-tools
loader/src/main/java/com/seovic/loader/target/JdbcTarget.java
JdbcTarget.createInsertQuery
private String createInsertQuery() { StringBuilder query = new StringBuilder(); query.append("insert into ").append(m_tableName) .append("(").append(m_propertyNames[0]); for (int i = 1; i < m_propertyNames.length; i++) { query.append(",").append(m_propertyNames[i...
java
private String createInsertQuery() { StringBuilder query = new StringBuilder(); query.append("insert into ").append(m_tableName) .append("(").append(m_propertyNames[0]); for (int i = 1; i < m_propertyNames.length; i++) { query.append(",").append(m_propertyNames[i...
[ "private", "String", "createInsertQuery", "(", ")", "{", "StringBuilder", "query", "=", "new", "StringBuilder", "(", ")", ";", "query", ".", "append", "(", "\"insert into \"", ")", ".", "append", "(", "m_tableName", ")", ".", "append", "(", "\"(\"", ")", "...
Construct insert query using property names and database table name. @return insert query
[ "Construct", "insert", "query", "using", "property", "names", "and", "database", "table", "name", "." ]
561a1d7e572ad98657fcd26beb1164891b0cd6fe
https://github.com/aseovic/coherence-tools/blob/561a1d7e572ad98657fcd26beb1164891b0cd6fe/loader/src/main/java/com/seovic/loader/target/JdbcTarget.java#L205-L218
train
cloudfoundry-community/cf-java-component
cf-spring/src/main/java/cf/spring/servicebroker/AccessorUtils.java
AccessorUtils.findMethodWithAnnotation
public static <T extends Annotation> Method findMethodWithAnnotation(Class<?> clazz, Class<T> annotationType) { Method annotatedMethod = null; for (Method method : clazz.getDeclaredMethods()) { T annotation = AnnotationUtils.findAnnotation(method, annotationType); if (annotation ...
java
public static <T extends Annotation> Method findMethodWithAnnotation(Class<?> clazz, Class<T> annotationType) { Method annotatedMethod = null; for (Method method : clazz.getDeclaredMethods()) { T annotation = AnnotationUtils.findAnnotation(method, annotationType); if (annotation ...
[ "public", "static", "<", "T", "extends", "Annotation", ">", "Method", "findMethodWithAnnotation", "(", "Class", "<", "?", ">", "clazz", ",", "Class", "<", "T", ">", "annotationType", ")", "{", "Method", "annotatedMethod", "=", "null", ";", "for", "(", "Met...
Finds a method annotated with the specified annotation. This method can be defined in the specified class, or one of its parents. @return the matching method, or <tt>null</tt> if any
[ "Finds", "a", "method", "annotated", "with", "the", "specified", "annotation", ".", "This", "method", "can", "be", "defined", "in", "the", "specified", "class", "or", "one", "of", "its", "parents", "." ]
9d7d54f2b599f3e4f4706bc0c471e144065671fa
https://github.com/cloudfoundry-community/cf-java-component/blob/9d7d54f2b599f3e4f4706bc0c471e144065671fa/cf-spring/src/main/java/cf/spring/servicebroker/AccessorUtils.java#L43-L61
train
cloudfoundry-community/cf-java-component
cf-spring/src/main/java/cf/spring/servicebroker/AccessorUtils.java
AccessorUtils.invokeMethod
public static Object invokeMethod(Object object, Method method, Object... args) throws Throwable { try { return method.invoke(object, args); } catch (InvocationTargetException e) { throw e.getTargetException(); } }
java
public static Object invokeMethod(Object object, Method method, Object... args) throws Throwable { try { return method.invoke(object, args); } catch (InvocationTargetException e) { throw e.getTargetException(); } }
[ "public", "static", "Object", "invokeMethod", "(", "Object", "object", ",", "Method", "method", ",", "Object", "...", "args", ")", "throws", "Throwable", "{", "try", "{", "return", "method", ".", "invoke", "(", "object", ",", "args", ")", ";", "}", "catc...
Invokes the method of the specified object with some method arguments.
[ "Invokes", "the", "method", "of", "the", "specified", "object", "with", "some", "method", "arguments", "." ]
9d7d54f2b599f3e4f4706bc0c471e144065671fa
https://github.com/cloudfoundry-community/cf-java-component/blob/9d7d54f2b599f3e4f4706bc0c471e144065671fa/cf-spring/src/main/java/cf/spring/servicebroker/AccessorUtils.java#L66-L72
train
cloudfoundry-community/cf-java-component
cf-spring/src/main/java/cf/spring/servicebroker/AccessorUtils.java
AccessorUtils.validateReturnType
public static void validateReturnType(Method method, Class<? extends Annotation> annotationType, Class<?> expectedReturnType) { if (!method.getReturnType().equals(expectedReturnType)) { throw new BeanCreationException("Method " + method.getName() + " annotat...
java
public static void validateReturnType(Method method, Class<? extends Annotation> annotationType, Class<?> expectedReturnType) { if (!method.getReturnType().equals(expectedReturnType)) { throw new BeanCreationException("Method " + method.getName() + " annotat...
[ "public", "static", "void", "validateReturnType", "(", "Method", "method", ",", "Class", "<", "?", "extends", "Annotation", ">", "annotationType", ",", "Class", "<", "?", ">", "expectedReturnType", ")", "{", "if", "(", "!", "method", ".", "getReturnType", "(...
Validates that the method annotated with the specified annotation returns the expected type.
[ "Validates", "that", "the", "method", "annotated", "with", "the", "specified", "annotation", "returns", "the", "expected", "type", "." ]
9d7d54f2b599f3e4f4706bc0c471e144065671fa
https://github.com/cloudfoundry-community/cf-java-component/blob/9d7d54f2b599f3e4f4706bc0c471e144065671fa/cf-spring/src/main/java/cf/spring/servicebroker/AccessorUtils.java#L78-L85
train
cloudfoundry-community/cf-java-component
cf-spring/src/main/java/cf/spring/servicebroker/AccessorUtils.java
AccessorUtils.validateArgument
public static void validateArgument(Method method, Class<? extends Annotation> annotationType, Class<?> expectedParameterType) { if (method.getParameterTypes().length != 1 || !method.getParameterTypes()[0].equals(expectedParameterType)) { throw new BeanCreatio...
java
public static void validateArgument(Method method, Class<? extends Annotation> annotationType, Class<?> expectedParameterType) { if (method.getParameterTypes().length != 1 || !method.getParameterTypes()[0].equals(expectedParameterType)) { throw new BeanCreatio...
[ "public", "static", "void", "validateArgument", "(", "Method", "method", ",", "Class", "<", "?", "extends", "Annotation", ">", "annotationType", ",", "Class", "<", "?", ">", "expectedParameterType", ")", "{", "if", "(", "method", ".", "getParameterTypes", "(",...
Validates that the method annotated with the specified annotation has a single argument of the expected type.
[ "Validates", "that", "the", "method", "annotated", "with", "the", "specified", "annotation", "has", "a", "single", "argument", "of", "the", "expected", "type", "." ]
9d7d54f2b599f3e4f4706bc0c471e144065671fa
https://github.com/cloudfoundry-community/cf-java-component/blob/9d7d54f2b599f3e4f4706bc0c471e144065671fa/cf-spring/src/main/java/cf/spring/servicebroker/AccessorUtils.java#L91-L101
train
aseovic/coherence-tools
core/src/main/java/com/seovic/core/processor/BinaryPut.java
BinaryPut.getValue
protected Object getValue() { Object value = this.value; if (value == null) { this.value = value = fromBinary("value"); } return value; }
java
protected Object getValue() { Object value = this.value; if (value == null) { this.value = value = fromBinary("value"); } return value; }
[ "protected", "Object", "getValue", "(", ")", "{", "Object", "value", "=", "this", ".", "value", ";", "if", "(", "value", "==", "null", ")", "{", "this", ".", "value", "=", "value", "=", "fromBinary", "(", "\"value\"", ")", ";", "}", "return", "value"...
Return deserialized value. @return deserialized value
[ "Return", "deserialized", "value", "." ]
561a1d7e572ad98657fcd26beb1164891b0cd6fe
https://github.com/aseovic/coherence-tools/blob/561a1d7e572ad98657fcd26beb1164891b0cd6fe/core/src/main/java/com/seovic/core/processor/BinaryPut.java#L106-L112
train
bazaarvoice/curator-extensions
dropwizard/src/main/java/com/bazaarvoice/curator/dropwizard/ZooKeeperConfiguration.java
ZooKeeperConfiguration.newCurator
public CuratorFramework newCurator() { // Make all of the curator threads daemon threads so they don't block the JVM from terminating. Also label them // with the ensemble they're connecting to, in case someone is trying to sort through a thread dump. ThreadFactory threadFactory = new ThreadFac...
java
public CuratorFramework newCurator() { // Make all of the curator threads daemon threads so they don't block the JVM from terminating. Also label them // with the ensemble they're connecting to, in case someone is trying to sort through a thread dump. ThreadFactory threadFactory = new ThreadFac...
[ "public", "CuratorFramework", "newCurator", "(", ")", "{", "// Make all of the curator threads daemon threads so they don't block the JVM from terminating. Also label them", "// with the ensemble they're connecting to, in case someone is trying to sort through a thread dump.", "ThreadFactory", "t...
Return a new Curator connection to the ensemble. It is the caller's responsibility to start and close the connection.
[ "Return", "a", "new", "Curator", "connection", "to", "the", "ensemble", ".", "It", "is", "the", "caller", "s", "responsibility", "to", "start", "and", "close", "the", "connection", "." ]
eb1e1b478f1ae6aed602bb5d5cb481277203004e
https://github.com/bazaarvoice/curator-extensions/blob/eb1e1b478f1ae6aed602bb5d5cb481277203004e/dropwizard/src/main/java/com/bazaarvoice/curator/dropwizard/ZooKeeperConfiguration.java#L55-L76
train
BrunoEberhard/minimal-j
src/main/java/org/minimalj/util/GenericUtils.java
GenericUtils.getTypeArgument
public static Class<?> getTypeArgument(Class<?> clazz, Class<?> interfce) { Map<Type, Type> resolvedTypes = new HashMap<Type, Type>(); Type type = clazz; while (!declaresInterface(getClass(type), interfce)) { if (type instanceof Class) { type = ((Class<?>) type).getGenericSuperclass(); } else { P...
java
public static Class<?> getTypeArgument(Class<?> clazz, Class<?> interfce) { Map<Type, Type> resolvedTypes = new HashMap<Type, Type>(); Type type = clazz; while (!declaresInterface(getClass(type), interfce)) { if (type instanceof Class) { type = ((Class<?>) type).getGenericSuperclass(); } else { P...
[ "public", "static", "Class", "<", "?", ">", "getTypeArgument", "(", "Class", "<", "?", ">", "clazz", ",", "Class", "<", "?", ">", "interfce", ")", "{", "Map", "<", "Type", ",", "Type", ">", "resolvedTypes", "=", "new", "HashMap", "<", "Type", ",", ...
Get the actual type argument for a interface with one type @param clazz the class implementing the interface (directly or by extension) @param interfce the interface implemented by clazz. Must have exactly one type @return the class the interface had in type argument
[ "Get", "the", "actual", "type", "argument", "for", "a", "interface", "with", "one", "type" ]
f7c5461b2b47a10b383aee1e2f1f150f6773703b
https://github.com/BrunoEberhard/minimal-j/blob/f7c5461b2b47a10b383aee1e2f1f150f6773703b/src/main/java/org/minimalj/util/GenericUtils.java#L74-L108
train
openengsb/openengsb
connector/userprojectsldap/src/main/java/org/openengsb/connector/userprojects/ldap/internal/ldap/EntryFactory.java
EntryFactory.assignmentStructure
public static List<Entry> assignmentStructure(Assignment assignment) { List<Entry> entryList = new LinkedList<>(); entryList.add(namedObject(DnFactory.assignment(assignment))); entryList.add(namedDescriptiveObject(DnFactory.assignmentProject(assignment), assignment.getProject())); entryL...
java
public static List<Entry> assignmentStructure(Assignment assignment) { List<Entry> entryList = new LinkedList<>(); entryList.add(namedObject(DnFactory.assignment(assignment))); entryList.add(namedDescriptiveObject(DnFactory.assignmentProject(assignment), assignment.getProject())); entryL...
[ "public", "static", "List", "<", "Entry", ">", "assignmentStructure", "(", "Assignment", "assignment", ")", "{", "List", "<", "Entry", ">", "entryList", "=", "new", "LinkedList", "<>", "(", ")", ";", "entryList", ".", "add", "(", "namedObject", "(", "DnFac...
Returns a list of entries representing an assignment. The list should not be reordered since its order follows the tree structure of the DIT. It can be inserted into the DIT right away.
[ "Returns", "a", "list", "of", "entries", "representing", "an", "assignment", ".", "The", "list", "should", "not", "be", "reordered", "since", "its", "order", "follows", "the", "tree", "structure", "of", "the", "DIT", ".", "It", "can", "be", "inserted", "in...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/connector/userprojectsldap/src/main/java/org/openengsb/connector/userprojects/ldap/internal/ldap/EntryFactory.java#L49-L57
train
openengsb/openengsb
connector/userprojectsldap/src/main/java/org/openengsb/connector/userprojects/ldap/internal/ldap/EntryFactory.java
EntryFactory.permissionStructure
public static List<Entry> permissionStructure(Permission permission) { List<Entry> entryList = new LinkedList<>(); entryList.add(namedObject(DnFactory.permission(permission))); entryList.add(namedDescriptiveObject(DnFactory.permissionAction(permission), permission.getAction())); entryLis...
java
public static List<Entry> permissionStructure(Permission permission) { List<Entry> entryList = new LinkedList<>(); entryList.add(namedObject(DnFactory.permission(permission))); entryList.add(namedDescriptiveObject(DnFactory.permissionAction(permission), permission.getAction())); entryLis...
[ "public", "static", "List", "<", "Entry", ">", "permissionStructure", "(", "Permission", "permission", ")", "{", "List", "<", "Entry", ">", "entryList", "=", "new", "LinkedList", "<>", "(", ")", ";", "entryList", ".", "add", "(", "namedObject", "(", "DnFac...
Returns a list of entries representing a permission. The list should not be reordered since its order follows the tree structure of the DIT. It can be inserted into the DIT right away.
[ "Returns", "a", "list", "of", "entries", "representing", "a", "permission", ".", "The", "list", "should", "not", "be", "reordered", "since", "its", "order", "follows", "the", "tree", "structure", "of", "the", "DIT", ".", "It", "can", "be", "inserted", "int...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/connector/userprojectsldap/src/main/java/org/openengsb/connector/userprojects/ldap/internal/ldap/EntryFactory.java#L83-L90
train
openengsb/openengsb
connector/userprojectsldap/src/main/java/org/openengsb/connector/userprojects/ldap/internal/ldap/EntryFactory.java
EntryFactory.projectStructure
public static List<Entry> projectStructure(Project project) { List<Entry> entryList = new LinkedList<>(); entryList.add(namedObject(DnFactory.project(project))); entryList.addAll(createProjectAttributesEntries(project)); return entryList; }
java
public static List<Entry> projectStructure(Project project) { List<Entry> entryList = new LinkedList<>(); entryList.add(namedObject(DnFactory.project(project))); entryList.addAll(createProjectAttributesEntries(project)); return entryList; }
[ "public", "static", "List", "<", "Entry", ">", "projectStructure", "(", "Project", "project", ")", "{", "List", "<", "Entry", ">", "entryList", "=", "new", "LinkedList", "<>", "(", ")", ";", "entryList", ".", "add", "(", "namedObject", "(", "DnFactory", ...
Returns a list of entries representing a project. The list should not be reordered since its order follows the tree structure of the DIT. It can be inserted into the DIT right away.
[ "Returns", "a", "list", "of", "entries", "representing", "a", "project", ".", "The", "list", "should", "not", "be", "reordered", "since", "its", "order", "follows", "the", "tree", "structure", "of", "the", "DIT", ".", "It", "can", "be", "inserted", "into",...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/connector/userprojectsldap/src/main/java/org/openengsb/connector/userprojects/ldap/internal/ldap/EntryFactory.java#L96-L101
train
openengsb/openengsb
connector/userprojectsldap/src/main/java/org/openengsb/connector/userprojects/ldap/internal/ldap/EntryFactory.java
EntryFactory.roleStructure
public static List<Entry> roleStructure(Role role) { List<Entry> entryList = new LinkedList<>(); entryList.add(namedObject(DnFactory.role(role))); entryList.addAll(createRolePermissionsEntries(role)); entryList.addAll(createRoleSubrolesEntries(role)); return entryList; }
java
public static List<Entry> roleStructure(Role role) { List<Entry> entryList = new LinkedList<>(); entryList.add(namedObject(DnFactory.role(role))); entryList.addAll(createRolePermissionsEntries(role)); entryList.addAll(createRoleSubrolesEntries(role)); return entryList; }
[ "public", "static", "List", "<", "Entry", ">", "roleStructure", "(", "Role", "role", ")", "{", "List", "<", "Entry", ">", "entryList", "=", "new", "LinkedList", "<>", "(", ")", ";", "entryList", ".", "add", "(", "namedObject", "(", "DnFactory", ".", "r...
Returns a list of entries representing a role. The list should not be reordered since its order follows the tree structure of the DIT. It can be inserted into the DIT right away.
[ "Returns", "a", "list", "of", "entries", "representing", "a", "role", ".", "The", "list", "should", "not", "be", "reordered", "since", "its", "order", "follows", "the", "tree", "structure", "of", "the", "DIT", ".", "It", "can", "be", "inserted", "into", ...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/connector/userprojectsldap/src/main/java/org/openengsb/connector/userprojects/ldap/internal/ldap/EntryFactory.java#L118-L124
train
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/utility/UI/PlotBoxTLSmall.java
PlotBoxTLSmall.getBufferedImage
public BufferedImage getBufferedImage(int width, int height) { BufferedImage bi = chart.createBufferedImage(width, height); return bi; }
java
public BufferedImage getBufferedImage(int width, int height) { BufferedImage bi = chart.createBufferedImage(width, height); return bi; }
[ "public", "BufferedImage", "getBufferedImage", "(", "int", "width", ",", "int", "height", ")", "{", "BufferedImage", "bi", "=", "chart", ".", "createBufferedImage", "(", "width", ",", "height", ")", ";", "return", "bi", ";", "}" ]
Get a buffered image of this chart @param width The width of the image @param height The height of the image @return A buffered image of this chart.
[ "Get", "a", "buffered", "image", "of", "this", "chart" ]
42aaef2e2b76d0f738427f0dd9653c4f62b40517
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/utility/UI/PlotBoxTLSmall.java#L193-L196
train
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/utility/UI/PlotBoxTLSmall.java
PlotBoxTLSmall.createChart
@SuppressWarnings("deprecation") private JFreeChart createChart(CategoryDataset dataset) { // String s = name; String s = null; String tit = null; String ax = null; // if (first) // tit = title + " (EST)"; // else if (last) // ax = "Time"; tit = this.name; chart = ChartFactory...
java
@SuppressWarnings("deprecation") private JFreeChart createChart(CategoryDataset dataset) { // String s = name; String s = null; String tit = null; String ax = null; // if (first) // tit = title + " (EST)"; // else if (last) // ax = "Time"; tit = this.name; chart = ChartFactory...
[ "@", "SuppressWarnings", "(", "\"deprecation\"", ")", "private", "JFreeChart", "createChart", "(", "CategoryDataset", "dataset", ")", "{", "//\t\tString s = name;\r", "String", "s", "=", "null", ";", "String", "tit", "=", "null", ";", "String", "ax", "=", "null"...
Creates a chart for the PlotBoxBehavior @param dataset A dataset for the chart. @return A chart where the PlotBoxBehavior will be plotted.
[ "Creates", "a", "chart", "for", "the", "PlotBoxBehavior" ]
42aaef2e2b76d0f738427f0dd9653c4f62b40517
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/utility/UI/PlotBoxTLSmall.java#L205-L293
train
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/utility/UI/PlotBoxTLSmall.java
PlotBoxTLSmall.createDataset
private CategoryDataset createDataset() { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); startTimes = new Long[stl.getPulses().length+1]; startTimes[0] = new Long(0); for( int i = 1 ; i < startTimes.length ; i++ ) { startTimes[i] = stl.getPulses()[i-1]; } durations = new Lo...
java
private CategoryDataset createDataset() { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); startTimes = new Long[stl.getPulses().length+1]; startTimes[0] = new Long(0); for( int i = 1 ; i < startTimes.length ; i++ ) { startTimes[i] = stl.getPulses()[i-1]; } durations = new Lo...
[ "private", "CategoryDataset", "createDataset", "(", ")", "{", "DefaultCategoryDataset", "dataset", "=", "new", "DefaultCategoryDataset", "(", ")", ";", "startTimes", "=", "new", "Long", "[", "stl", ".", "getPulses", "(", ")", ".", "length", "+", "1", "]", ";...
Creates a dataset from the bsv vector. @return A dataset.
[ "Creates", "a", "dataset", "from", "the", "bsv", "vector", "." ]
42aaef2e2b76d0f738427f0dd9653c4f62b40517
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/utility/UI/PlotBoxTLSmall.java#L300-L327
train
openengsb/openengsb
components/services/src/main/java/org/openengsb/core/services/internal/security/ldap/LdapUtils.java
LdapUtils.extractAttributeEmptyCheck
public static String extractAttributeEmptyCheck(Entry entry, String attributeType) { Attribute attribute = entry.get(attributeType); Attribute emptyFlagAttribute = entry.get(SchemaConstants.EMPTY_FLAG_ATTRIBUTE); boolean empty = false; try { if (attribute != null) { ...
java
public static String extractAttributeEmptyCheck(Entry entry, String attributeType) { Attribute attribute = entry.get(attributeType); Attribute emptyFlagAttribute = entry.get(SchemaConstants.EMPTY_FLAG_ATTRIBUTE); boolean empty = false; try { if (attribute != null) { ...
[ "public", "static", "String", "extractAttributeEmptyCheck", "(", "Entry", "entry", ",", "String", "attributeType", ")", "{", "Attribute", "attribute", "=", "entry", ".", "get", "(", "attributeType", ")", ";", "Attribute", "emptyFlagAttribute", "=", "entry", ".", ...
Returns the value of the first occurence of attributeType from entry.
[ "Returns", "the", "value", "of", "the", "first", "occurence", "of", "attributeType", "from", "entry", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/services/src/main/java/org/openengsb/core/services/internal/security/ldap/LdapUtils.java#L70-L84
train
openengsb/openengsb
components/services/src/main/java/org/openengsb/core/services/internal/security/ldap/LdapUtils.java
LdapUtils.extractAttributeEmptyCheck
public static List<String> extractAttributeEmptyCheck(List<Entry> entries, String attributeType) { List<String> result = new LinkedList<String>(); for (Entry e : entries) { result.add(extractAttributeEmptyCheck(e, attributeType)); } return result; }
java
public static List<String> extractAttributeEmptyCheck(List<Entry> entries, String attributeType) { List<String> result = new LinkedList<String>(); for (Entry e : entries) { result.add(extractAttributeEmptyCheck(e, attributeType)); } return result; }
[ "public", "static", "List", "<", "String", ">", "extractAttributeEmptyCheck", "(", "List", "<", "Entry", ">", "entries", ",", "String", "attributeType", ")", "{", "List", "<", "String", ">", "result", "=", "new", "LinkedList", "<", "String", ">", "(", ")",...
Returns the value of the first occurence of attributeType from each entry.
[ "Returns", "the", "value", "of", "the", "first", "occurence", "of", "attributeType", "from", "each", "entry", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/services/src/main/java/org/openengsb/core/services/internal/security/ldap/LdapUtils.java#L89-L95
train
openengsb/openengsb
components/services/src/main/java/org/openengsb/core/services/internal/security/ldap/LdapUtils.java
LdapUtils.extractAttributeEmptyCheck
public static List<String> extractAttributeEmptyCheck(SearchCursor cursor, String attributeType) { List<String> result = new LinkedList<String>(); try { while (cursor.next()) { Entry entry = cursor.getEntry(); result.add(extractAttributeEmptyCheck(entry, attri...
java
public static List<String> extractAttributeEmptyCheck(SearchCursor cursor, String attributeType) { List<String> result = new LinkedList<String>(); try { while (cursor.next()) { Entry entry = cursor.getEntry(); result.add(extractAttributeEmptyCheck(entry, attri...
[ "public", "static", "List", "<", "String", ">", "extractAttributeEmptyCheck", "(", "SearchCursor", "cursor", ",", "String", "attributeType", ")", "{", "List", "<", "String", ">", "result", "=", "new", "LinkedList", "<", "String", ">", "(", ")", ";", "try", ...
Returns the value of the first occurence of attributeType from each entry in the cursor.
[ "Returns", "the", "value", "of", "the", "first", "occurence", "of", "attributeType", "from", "each", "entry", "in", "the", "cursor", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/services/src/main/java/org/openengsb/core/services/internal/security/ldap/LdapUtils.java#L100-L111
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/Diff.java
Diff.createObjectDiffs
private void createObjectDiffs() throws EDBException { diff = new HashMap<String, EDBObjectDiff>(); List<EDBObject> tempList = new ArrayList<EDBObject>(); for (EDBObject o : this.endState) { tempList.add(o); } addModifiedOrDeletedObjects(tempList); addNewObje...
java
private void createObjectDiffs() throws EDBException { diff = new HashMap<String, EDBObjectDiff>(); List<EDBObject> tempList = new ArrayList<EDBObject>(); for (EDBObject o : this.endState) { tempList.add(o); } addModifiedOrDeletedObjects(tempList); addNewObje...
[ "private", "void", "createObjectDiffs", "(", ")", "throws", "EDBException", "{", "diff", "=", "new", "HashMap", "<", "String", ",", "EDBObjectDiff", ">", "(", ")", ";", "List", "<", "EDBObject", ">", "tempList", "=", "new", "ArrayList", "<", "EDBObject", "...
Analyzes the start and end state and creates for every object that is different an objectdiff entry
[ "Analyzes", "the", "start", "and", "end", "state", "and", "creates", "for", "every", "object", "that", "is", "different", "an", "objectdiff", "entry" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/Diff.java#L63-L72
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/Diff.java
Diff.addModifiedOrDeletedObjects
private void addModifiedOrDeletedObjects(List<EDBObject> tempList) { for (EDBObject a : this.startState) { String oid = a.getOID(); EDBObject b = removeIfExist(oid, tempList); ObjectDiff odiff = new ObjectDiff(this.startCommit, this.endCommit, a, b); if (odiff.get...
java
private void addModifiedOrDeletedObjects(List<EDBObject> tempList) { for (EDBObject a : this.startState) { String oid = a.getOID(); EDBObject b = removeIfExist(oid, tempList); ObjectDiff odiff = new ObjectDiff(this.startCommit, this.endCommit, a, b); if (odiff.get...
[ "private", "void", "addModifiedOrDeletedObjects", "(", "List", "<", "EDBObject", ">", "tempList", ")", "{", "for", "(", "EDBObject", "a", ":", "this", ".", "startState", ")", "{", "String", "oid", "=", "a", ".", "getOID", "(", ")", ";", "EDBObject", "b",...
add all modified or deleted objects to the diff collection. As base to indicate if something changed the start state and the list of elements from the end state is taken.
[ "add", "all", "modified", "or", "deleted", "objects", "to", "the", "diff", "collection", ".", "As", "base", "to", "indicate", "if", "something", "changed", "the", "start", "state", "and", "the", "list", "of", "elements", "from", "the", "end", "state", "is"...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/Diff.java#L78-L87
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/Diff.java
Diff.addNewObjects
private void addNewObjects(List<EDBObject> tempList) { for (EDBObject b : tempList) { String oid = b.getOID(); ObjectDiff odiff = new ObjectDiff(this.startCommit, this.endCommit, null, b); if (odiff.getDifferenceCount() > 0) { diff.put(oid, odiff); ...
java
private void addNewObjects(List<EDBObject> tempList) { for (EDBObject b : tempList) { String oid = b.getOID(); ObjectDiff odiff = new ObjectDiff(this.startCommit, this.endCommit, null, b); if (odiff.getDifferenceCount() > 0) { diff.put(oid, odiff); ...
[ "private", "void", "addNewObjects", "(", "List", "<", "EDBObject", ">", "tempList", ")", "{", "for", "(", "EDBObject", "b", ":", "tempList", ")", "{", "String", "oid", "=", "b", ".", "getOID", "(", ")", ";", "ObjectDiff", "odiff", "=", "new", "ObjectDi...
add all new object to the diff collection. As base to indicate if an object is new, the list of elements from the end state which are left is taken.
[ "add", "all", "new", "object", "to", "the", "diff", "collection", ".", "As", "base", "to", "indicate", "if", "an", "object", "is", "new", "the", "list", "of", "elements", "from", "the", "end", "state", "which", "are", "left", "is", "taken", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/Diff.java#L93-L101
train
openengsb/openengsb
components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/Diff.java
Diff.removeIfExist
private EDBObject removeIfExist(String oid, List<EDBObject> tempList) { Iterator<EDBObject> iterator = tempList.iterator(); while (iterator.hasNext()) { EDBObject obj = iterator.next(); if (obj.getOID().equals(oid)) { iterator.remove(); return obj;...
java
private EDBObject removeIfExist(String oid, List<EDBObject> tempList) { Iterator<EDBObject> iterator = tempList.iterator(); while (iterator.hasNext()) { EDBObject obj = iterator.next(); if (obj.getOID().equals(oid)) { iterator.remove(); return obj;...
[ "private", "EDBObject", "removeIfExist", "(", "String", "oid", ",", "List", "<", "EDBObject", ">", "tempList", ")", "{", "Iterator", "<", "EDBObject", ">", "iterator", "=", "tempList", ".", "iterator", "(", ")", ";", "while", "(", "iterator", ".", "hasNext...
Removes the element with the given oid if it exists in the list and returns it. If it not exists, null will be returned.
[ "Removes", "the", "element", "with", "the", "given", "oid", "if", "it", "exists", "in", "the", "list", "and", "returns", "it", ".", "If", "it", "not", "exists", "null", "will", "be", "returned", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/edb/src/main/java/org/openengsb/core/edb/jpa/internal/Diff.java#L107-L118
train
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/spatial/RCC/RCCConstraintSolver.java
RCCConstraintSolver.compareRelation
private boolean compareRelation(RCCConstraint first, RCCConstraint second) { boolean existed = false; for (int i = 0; i < first.types.length; i++) { existed = false; for (int j = 0; j < second.types.length; j++) { if(first.types[i] == second.types[j]) existed = true; } if(!exist...
java
private boolean compareRelation(RCCConstraint first, RCCConstraint second) { boolean existed = false; for (int i = 0; i < first.types.length; i++) { existed = false; for (int j = 0; j < second.types.length; j++) { if(first.types[i] == second.types[j]) existed = true; } if(!exist...
[ "private", "boolean", "compareRelation", "(", "RCCConstraint", "first", ",", "RCCConstraint", "second", ")", "{", "boolean", "existed", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "first", ".", "types", ".", "length", ";", "i", ...
return true when they are equal
[ "return", "true", "when", "they", "are", "equal" ]
42aaef2e2b76d0f738427f0dd9653c4f62b40517
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/spatial/RCC/RCCConstraintSolver.java#L132-L146
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.runPersistingLogic
private void runPersistingLogic(EKBCommit commit, boolean check, UUID expectedContextHeadRevision, boolean headRevisionCheck) throws SanityCheckException, EKBException { String contextId = ContextHolder.get().getCurrentContextId(); try { lockContext(contextId); if (he...
java
private void runPersistingLogic(EKBCommit commit, boolean check, UUID expectedContextHeadRevision, boolean headRevisionCheck) throws SanityCheckException, EKBException { String contextId = ContextHolder.get().getCurrentContextId(); try { lockContext(contextId); if (he...
[ "private", "void", "runPersistingLogic", "(", "EKBCommit", "commit", ",", "boolean", "check", ",", "UUID", "expectedContextHeadRevision", ",", "boolean", "headRevisionCheck", ")", "throws", "SanityCheckException", ",", "EKBException", "{", "String", "contextId", "=", ...
Runs the logic of the PersistInterface. Does the sanity checks if check is set to true. Additionally tests if the head revision of the context under which the commit is performed has the given revision number if the headRevisionCheck flag is set to true.
[ "Runs", "the", "logic", "of", "the", "PersistInterface", ".", "Does", "the", "sanity", "checks", "if", "check", "is", "set", "to", "true", ".", "Additionally", "tests", "if", "the", "head", "revision", "of", "the", "context", "under", "which", "the", "comm...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L116-L140
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.performRevertLogic
private void performRevertLogic(String revision, UUID expectedContextHeadRevision, boolean expectedHeadCheck) { String contextId = ""; try { EDBCommit commit = edbService.getCommitByRevision(revision); contextId = commit.getContextId(); lockContext(contextId); ...
java
private void performRevertLogic(String revision, UUID expectedContextHeadRevision, boolean expectedHeadCheck) { String contextId = ""; try { EDBCommit commit = edbService.getCommitByRevision(revision); contextId = commit.getContextId(); lockContext(contextId); ...
[ "private", "void", "performRevertLogic", "(", "String", "revision", ",", "UUID", "expectedContextHeadRevision", ",", "boolean", "expectedHeadCheck", ")", "{", "String", "contextId", "=", "\"\"", ";", "try", "{", "EDBCommit", "commit", "=", "edbService", ".", "getC...
Performs the actual revert logic including the context locking and the context head revision check if desired.
[ "Performs", "the", "actual", "revert", "logic", "including", "the", "context", "locking", "and", "the", "context", "head", "revision", "check", "if", "desired", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L168-L195
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.lockContext
private void lockContext(String contextId) throws EKBConcurrentException { if (mode == ContextLockingMode.DEACTIVATED) { return; } synchronized (activeWritingContexts) { if (activeWritingContexts.contains(contextId)) { throw new EKBConcurrentException("The...
java
private void lockContext(String contextId) throws EKBConcurrentException { if (mode == ContextLockingMode.DEACTIVATED) { return; } synchronized (activeWritingContexts) { if (activeWritingContexts.contains(contextId)) { throw new EKBConcurrentException("The...
[ "private", "void", "lockContext", "(", "String", "contextId", ")", "throws", "EKBConcurrentException", "{", "if", "(", "mode", "==", "ContextLockingMode", ".", "DEACTIVATED", ")", "{", "return", ";", "}", "synchronized", "(", "activeWritingContexts", ")", "{", "...
If the context locking mode is activated, this method locks the given context for writing operations. If this context is already locked, an EKBConcurrentException is thrown.
[ "If", "the", "context", "locking", "mode", "is", "activated", "this", "method", "locks", "the", "given", "context", "for", "writing", "operations", ".", "If", "this", "context", "is", "already", "locked", "an", "EKBConcurrentException", "is", "thrown", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L201-L212
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.checkForContextHeadRevision
private void checkForContextHeadRevision(String contextId, UUID expectedHeadRevision) throws EKBConcurrentException { if (!Objects.equal(edbService.getLastRevisionNumberOfContext(contextId), expectedHeadRevision)) { throw new EKBConcurrentException("The current revision of the context does n...
java
private void checkForContextHeadRevision(String contextId, UUID expectedHeadRevision) throws EKBConcurrentException { if (!Objects.equal(edbService.getLastRevisionNumberOfContext(contextId), expectedHeadRevision)) { throw new EKBConcurrentException("The current revision of the context does n...
[ "private", "void", "checkForContextHeadRevision", "(", "String", "contextId", ",", "UUID", "expectedHeadRevision", ")", "throws", "EKBConcurrentException", "{", "if", "(", "!", "Objects", ".", "equal", "(", "edbService", ".", "getLastRevisionNumberOfContext", "(", "co...
Tests if the head revision for the given context matches the given revision number. If this is not the case, an EKBConcurrentException is thrown.
[ "Tests", "if", "the", "head", "revision", "for", "the", "given", "context", "matches", "the", "given", "revision", "number", ".", "If", "this", "is", "not", "the", "case", "an", "EKBConcurrentException", "is", "thrown", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L218-L224
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.releaseContext
private void releaseContext(String contextId) { if (mode == ContextLockingMode.DEACTIVATED) { return; } synchronized (activeWritingContexts) { activeWritingContexts.remove(contextId); } }
java
private void releaseContext(String contextId) { if (mode == ContextLockingMode.DEACTIVATED) { return; } synchronized (activeWritingContexts) { activeWritingContexts.remove(contextId); } }
[ "private", "void", "releaseContext", "(", "String", "contextId", ")", "{", "if", "(", "mode", "==", "ContextLockingMode", ".", "DEACTIVATED", ")", "{", "return", ";", "}", "synchronized", "(", "activeWritingContexts", ")", "{", "activeWritingContexts", ".", "rem...
If the context locking mode is activated, this method releases the lock for the given context for writing operations.
[ "If", "the", "context", "locking", "mode", "is", "activated", "this", "method", "releases", "the", "lock", "for", "the", "given", "context", "for", "writing", "operations", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L230-L237
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.runEKBPreCommitHooks
private void runEKBPreCommitHooks(EKBCommit commit) throws EKBException { for (EKBPreCommitHook hook : preCommitHooks) { try { hook.onPreCommit(commit); } catch (EKBException e) { throw new EKBException("EDBException is thrown in a pre commit hook.", e); ...
java
private void runEKBPreCommitHooks(EKBCommit commit) throws EKBException { for (EKBPreCommitHook hook : preCommitHooks) { try { hook.onPreCommit(commit); } catch (EKBException e) { throw new EKBException("EDBException is thrown in a pre commit hook.", e); ...
[ "private", "void", "runEKBPreCommitHooks", "(", "EKBCommit", "commit", ")", "throws", "EKBException", "{", "for", "(", "EKBPreCommitHook", "hook", ":", "preCommitHooks", ")", "{", "try", "{", "hook", ".", "onPreCommit", "(", "commit", ")", ";", "}", "catch", ...
Runs all registered pre-commit hooks
[ "Runs", "all", "registered", "pre", "-", "commit", "hooks" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L242-L252
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.runEKBPostCommitHooks
private void runEKBPostCommitHooks(EKBCommit commit) throws EKBException { for (EKBPostCommitHook hook : postCommitHooks) { try { hook.onPostCommit(commit); } catch (Exception e) { LOGGER.warn("An exception is thrown in a EKB post commit hook.", e); ...
java
private void runEKBPostCommitHooks(EKBCommit commit) throws EKBException { for (EKBPostCommitHook hook : postCommitHooks) { try { hook.onPostCommit(commit); } catch (Exception e) { LOGGER.warn("An exception is thrown in a EKB post commit hook.", e); ...
[ "private", "void", "runEKBPostCommitHooks", "(", "EKBCommit", "commit", ")", "throws", "EKBException", "{", "for", "(", "EKBPostCommitHook", "hook", ":", "postCommitHooks", ")", "{", "try", "{", "hook", ".", "onPostCommit", "(", "commit", ")", ";", "}", "catch...
Runs all registered post-commit hooks
[ "Runs", "all", "registered", "post", "-", "commit", "hooks" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L257-L265
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.runEKBErrorHooks
private void runEKBErrorHooks(EKBCommit commit, EKBException exception) { if (exception != null) { for (EKBErrorHook hook : errorHooks) { hook.onError(commit, exception); } throw exception; } }
java
private void runEKBErrorHooks(EKBCommit commit, EKBException exception) { if (exception != null) { for (EKBErrorHook hook : errorHooks) { hook.onError(commit, exception); } throw exception; } }
[ "private", "void", "runEKBErrorHooks", "(", "EKBCommit", "commit", ",", "EKBException", "exception", ")", "{", "if", "(", "exception", "!=", "null", ")", "{", "for", "(", "EKBErrorHook", "hook", ":", "errorHooks", ")", "{", "hook", ".", "onError", "(", "co...
Runs all registered error hooks
[ "Runs", "all", "registered", "error", "hooks" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L270-L277
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.performPersisting
private void performPersisting(ConvertedCommit commit, EKBCommit source) throws EKBException { try { EDBCommit ci = edbService.createEDBCommit(commit.getInserts(), commit.getUpdates(), commit.getDeletes()); ci.setDomainId(source.getDomainId()); ci.setConnectorId(source.getCon...
java
private void performPersisting(ConvertedCommit commit, EKBCommit source) throws EKBException { try { EDBCommit ci = edbService.createEDBCommit(commit.getInserts(), commit.getUpdates(), commit.getDeletes()); ci.setDomainId(source.getDomainId()); ci.setConnectorId(source.getCon...
[ "private", "void", "performPersisting", "(", "ConvertedCommit", "commit", ",", "EKBCommit", "source", ")", "throws", "EKBException", "{", "try", "{", "EDBCommit", "ci", "=", "edbService", ".", "createEDBCommit", "(", "commit", ".", "getInserts", "(", ")", ",", ...
Performs the persisting of the models into the EDB.
[ "Performs", "the", "persisting", "of", "the", "models", "into", "the", "EDB", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L290-L306
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java
PersistInterfaceService.convertEDBObjectList
private List<String> convertEDBObjectList(List<EDBObject> objects) { List<String> oids = new ArrayList<>(); for (EDBObject object : objects) { oids.add(object.getOID()); } return oids; }
java
private List<String> convertEDBObjectList(List<EDBObject> objects) { List<String> oids = new ArrayList<>(); for (EDBObject object : objects) { oids.add(object.getOID()); } return oids; }
[ "private", "List", "<", "String", ">", "convertEDBObjectList", "(", "List", "<", "EDBObject", ">", "objects", ")", "{", "List", "<", "String", ">", "oids", "=", "new", "ArrayList", "<>", "(", ")", ";", "for", "(", "EDBObject", "object", ":", "objects", ...
Converts a list of EDBObject instances into a list of corresponding model oids.
[ "Converts", "a", "list", "of", "EDBObject", "instances", "into", "a", "list", "of", "corresponding", "model", "oids", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/PersistInterfaceService.java#L311-L317
train
openengsb/openengsb
components/ekb/modelregistry-tracker/src/main/java/org/openengsb/core/ekb/modelregistry/tracker/internal/ModelRegistryService.java
ModelRegistryService.scanBundleForModels
private Set<ModelDescription> scanBundleForModels(Bundle bundle) { Set<ModelDescription> models = new HashSet<ModelDescription>(); if (!shouldSkipBundle(bundle)) { models = loadModelsOfBundle(bundle); } return models; }
java
private Set<ModelDescription> scanBundleForModels(Bundle bundle) { Set<ModelDescription> models = new HashSet<ModelDescription>(); if (!shouldSkipBundle(bundle)) { models = loadModelsOfBundle(bundle); } return models; }
[ "private", "Set", "<", "ModelDescription", ">", "scanBundleForModels", "(", "Bundle", "bundle", ")", "{", "Set", "<", "ModelDescription", ">", "models", "=", "new", "HashSet", "<", "ModelDescription", ">", "(", ")", ";", "if", "(", "!", "shouldSkipBundle", "...
Check all found classes of the bundle if they are models and return a set of all found model descriptions.
[ "Check", "all", "found", "classes", "of", "the", "bundle", "if", "they", "are", "models", "and", "return", "a", "set", "of", "all", "found", "model", "descriptions", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/modelregistry-tracker/src/main/java/org/openengsb/core/ekb/modelregistry/tracker/internal/ModelRegistryService.java#L77-L83
train
openengsb/openengsb
components/ekb/modelregistry-tracker/src/main/java/org/openengsb/core/ekb/modelregistry/tracker/internal/ModelRegistryService.java
ModelRegistryService.loadModelsOfBundle
private Set<ModelDescription> loadModelsOfBundle(Bundle bundle) { Enumeration<URL> classEntries = bundle.findEntries("/", "*.class", true); Set<ModelDescription> models = new HashSet<ModelDescription>(); if (classEntries == null) { LOGGER.debug("Found no classes in the bundle {}", bu...
java
private Set<ModelDescription> loadModelsOfBundle(Bundle bundle) { Enumeration<URL> classEntries = bundle.findEntries("/", "*.class", true); Set<ModelDescription> models = new HashSet<ModelDescription>(); if (classEntries == null) { LOGGER.debug("Found no classes in the bundle {}", bu...
[ "private", "Set", "<", "ModelDescription", ">", "loadModelsOfBundle", "(", "Bundle", "bundle", ")", "{", "Enumeration", "<", "URL", ">", "classEntries", "=", "bundle", ".", "findEntries", "(", "\"/\"", ",", "\"*.class\"", ",", "true", ")", ";", "Set", "<", ...
Searches the bundle for model classes and return a set of them.
[ "Searches", "the", "bundle", "for", "model", "classes", "and", "return", "a", "set", "of", "them", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/modelregistry-tracker/src/main/java/org/openengsb/core/ekb/modelregistry/tracker/internal/ModelRegistryService.java#L95-L110
train
openengsb/openengsb
components/ekb/modelregistry-tracker/src/main/java/org/openengsb/core/ekb/modelregistry/tracker/internal/ModelRegistryService.java
ModelRegistryService.isModelClass
private boolean isModelClass(String classname, Bundle bundle) { LOGGER.debug("Check if class '{}' is a model class", classname); Class<?> clazz; try { clazz = bundle.loadClass(classname); } catch (ClassNotFoundException e) { LOGGER.warn("Bundle could not load its ...
java
private boolean isModelClass(String classname, Bundle bundle) { LOGGER.debug("Check if class '{}' is a model class", classname); Class<?> clazz; try { clazz = bundle.loadClass(classname); } catch (ClassNotFoundException e) { LOGGER.warn("Bundle could not load its ...
[ "private", "boolean", "isModelClass", "(", "String", "classname", ",", "Bundle", "bundle", ")", "{", "LOGGER", ".", "debug", "(", "\"Check if class '{}' is a model class\"", ",", "classname", ")", ";", "Class", "<", "?", ">", "clazz", ";", "try", "{", "clazz",...
Returns true if the class with the given class name contained in the given bundle is a model and false if not or the class couldn't be loaded.
[ "Returns", "true", "if", "the", "class", "with", "the", "given", "class", "name", "contained", "in", "the", "given", "bundle", "is", "a", "model", "and", "false", "if", "not", "or", "the", "class", "couldn", "t", "be", "loaded", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/modelregistry-tracker/src/main/java/org/openengsb/core/ekb/modelregistry/tracker/internal/ModelRegistryService.java#L116-L136
train
openengsb/openengsb
components/ekb/modelregistry-tracker/src/main/java/org/openengsb/core/ekb/modelregistry/tracker/internal/ModelRegistryService.java
ModelRegistryService.extractClassName
private String extractClassName(URL classURL) { String path = classURL.getPath(); return path .replaceAll("^/", "") .replaceAll(".class$", "") .replaceAll("\\/", "."); }
java
private String extractClassName(URL classURL) { String path = classURL.getPath(); return path .replaceAll("^/", "") .replaceAll(".class$", "") .replaceAll("\\/", "."); }
[ "private", "String", "extractClassName", "(", "URL", "classURL", ")", "{", "String", "path", "=", "classURL", ".", "getPath", "(", ")", ";", "return", "path", ".", "replaceAll", "(", "\"^/\"", ",", "\"\"", ")", ".", "replaceAll", "(", "\".class$\"", ",", ...
Converts an URL to a class into a class name
[ "Converts", "an", "URL", "to", "a", "class", "into", "a", "class", "name" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/modelregistry-tracker/src/main/java/org/openengsb/core/ekb/modelregistry/tracker/internal/ModelRegistryService.java#L141-L147
train
openengsb/openengsb
connector/userprojectsfile/src/main/java/org/openengsb/connector/userprojects/file/internal/file/UserFileAccessObject.java
UserFileAccessObject.findAllUsers
public List<User> findAllUsers() { List<User> list = new ArrayList<>(); List<String> usernames; try { usernames = readLines(usersFile); } catch (IOException e) { throw new FileBasedRuntimeException(e); } for (String username : usernames) { ...
java
public List<User> findAllUsers() { List<User> list = new ArrayList<>(); List<String> usernames; try { usernames = readLines(usersFile); } catch (IOException e) { throw new FileBasedRuntimeException(e); } for (String username : usernames) { ...
[ "public", "List", "<", "User", ">", "findAllUsers", "(", ")", "{", "List", "<", "User", ">", "list", "=", "new", "ArrayList", "<>", "(", ")", ";", "List", "<", "String", ">", "usernames", ";", "try", "{", "usernames", "=", "readLines", "(", "usersFil...
Finds all the available users. @return the list of available users
[ "Finds", "all", "the", "available", "users", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/connector/userprojectsfile/src/main/java/org/openengsb/connector/userprojects/file/internal/file/UserFileAccessObject.java#L44-L59
train
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/utility/Combination.java
Combination.rightmostIndexBelowMax
private int rightmostIndexBelowMax() { for (int i = r-1; i>=0; i--) if (index[i] < n - r + i) return i; return -1; }
java
private int rightmostIndexBelowMax() { for (int i = r-1; i>=0; i--) if (index[i] < n - r + i) return i; return -1; }
[ "private", "int", "rightmostIndexBelowMax", "(", ")", "{", "for", "(", "int", "i", "=", "r", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "if", "(", "index", "[", "i", "]", "<", "n", "-", "r", "+", "i", ")", "return", "i", ";", "retu...
return int,the index which can be bumped up.
[ "return", "int", "the", "index", "which", "can", "be", "bumped", "up", "." ]
42aaef2e2b76d0f738427f0dd9653c4f62b40517
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/utility/Combination.java#L54-L58
train
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/utility/logging/MetaCSPLogging.java
MetaCSPLogging.setLevel
public static void setLevel(Level l) { for (Logger log : loggers.values()) log.setLevel(l); globalLevel = l; }
java
public static void setLevel(Level l) { for (Logger log : loggers.values()) log.setLevel(l); globalLevel = l; }
[ "public", "static", "void", "setLevel", "(", "Level", "l", ")", "{", "for", "(", "Logger", "log", ":", "loggers", ".", "values", "(", ")", ")", "log", ".", "setLevel", "(", "l", ")", ";", "globalLevel", "=", "l", ";", "}" ]
Set a desired log level for all loggers. @param l The desired log level.
[ "Set", "a", "desired", "log", "level", "for", "all", "loggers", "." ]
42aaef2e2b76d0f738427f0dd9653c4f62b40517
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/utility/logging/MetaCSPLogging.java#L116-L119
train
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/utility/logging/MetaCSPLogging.java
MetaCSPLogging.setLevel
public static void setLevel(Class<?> c, Level l) /* throws LoggerNotDefined */ { if (!loggers.containsKey(c)) tempLevels.put(c, l); else loggers.get(c).setLevel(l); //System.out.println("Set level " + l + " for logger " + loggers.get(c).getName()); }
java
public static void setLevel(Class<?> c, Level l) /* throws LoggerNotDefined */ { if (!loggers.containsKey(c)) tempLevels.put(c, l); else loggers.get(c).setLevel(l); //System.out.println("Set level " + l + " for logger " + loggers.get(c).getName()); }
[ "public", "static", "void", "setLevel", "(", "Class", "<", "?", ">", "c", ",", "Level", "l", ")", "/* throws LoggerNotDefined */", "{", "if", "(", "!", "loggers", ".", "containsKey", "(", "c", ")", ")", "tempLevels", ".", "put", "(", "c", ",", "l", "...
Set a desired log level for a specific class. @param c The class to set the log level for. @param l The desired log level.
[ "Set", "a", "desired", "log", "level", "for", "a", "specific", "class", "." ]
42aaef2e2b76d0f738427f0dd9653c4f62b40517
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/utility/logging/MetaCSPLogging.java#L126-L130
train
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/utility/timelinePlotting/TimelineVisualizer.java
TimelineVisualizer.setImage
public void setImage(BufferedImage im) { icon.setImage(im); if (image == null) { this.image = im; // this.setSize(image.getWidth(), image.getHeight()); int panelX = image.getWidth(); int panelY = image.getHeight(); panel.setSize(panelX, panelY); // Toolkit tk = Toolkit.getDefaultToolkit(...
java
public void setImage(BufferedImage im) { icon.setImage(im); if (image == null) { this.image = im; // this.setSize(image.getWidth(), image.getHeight()); int panelX = image.getWidth(); int panelY = image.getHeight(); panel.setSize(panelX, panelY); // Toolkit tk = Toolkit.getDefaultToolkit(...
[ "public", "void", "setImage", "(", "BufferedImage", "im", ")", "{", "icon", ".", "setImage", "(", "im", ")", ";", "if", "(", "image", "==", "null", ")", "{", "this", ".", "image", "=", "im", ";", "//\t\t\tthis.setSize(image.getWidth(), image.getHeight());\r", ...
Force the visualizer to display a given image. @param im The image to be displayed.
[ "Force", "the", "visualizer", "to", "display", "a", "given", "image", "." ]
42aaef2e2b76d0f738427f0dd9653c4f62b40517
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/utility/timelinePlotting/TimelineVisualizer.java#L59-L102
train
openengsb/openengsb
connector/userprojectsfile/src/main/java/org/openengsb/connector/userprojects/file/internal/file/AssignmentFileAccessObject.java
AssignmentFileAccessObject.findAllAssignments
public List<Assignment> findAllAssignments() { List<Assignment> list = new ArrayList<>(); List<String> assignmentStrings; try { assignmentStrings = readLines(assignmentsFile); } catch (IOException e) { throw new FileBasedRuntimeException(e); } for...
java
public List<Assignment> findAllAssignments() { List<Assignment> list = new ArrayList<>(); List<String> assignmentStrings; try { assignmentStrings = readLines(assignmentsFile); } catch (IOException e) { throw new FileBasedRuntimeException(e); } for...
[ "public", "List", "<", "Assignment", ">", "findAllAssignments", "(", ")", "{", "List", "<", "Assignment", ">", "list", "=", "new", "ArrayList", "<>", "(", ")", ";", "List", "<", "String", ">", "assignmentStrings", ";", "try", "{", "assignmentStrings", "=",...
Finds all the available assignments. @return the list of available assignments
[ "Finds", "all", "the", "available", "assignments", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/connector/userprojectsfile/src/main/java/org/openengsb/connector/userprojects/file/internal/file/AssignmentFileAccessObject.java#L45-L71
train
mbeiter/util
db/src/main/java/org/beiter/michael/db/propsbuilder/MapBasedConnPropsBuilder.java
MapBasedConnPropsBuilder.logValue
private static void logValue(final String key, final String value) { // Fortify will report a violation here because of disclosure of potentially confidential information. // However, the configuration keys are not confidential, which makes this a non-issue / false positive. if (LOG.isInfoEnabl...
java
private static void logValue(final String key, final String value) { // Fortify will report a violation here because of disclosure of potentially confidential information. // However, the configuration keys are not confidential, which makes this a non-issue / false positive. if (LOG.isInfoEnabl...
[ "private", "static", "void", "logValue", "(", "final", "String", "key", ",", "final", "String", "value", ")", "{", "// Fortify will report a violation here because of disclosure of potentially confidential information.", "// However, the configuration keys are not confidential, which m...
Create a log entry when a value has been successfully configured. @param key The configuration key @param value The value that is being used
[ "Create", "a", "log", "entry", "when", "a", "value", "has", "been", "successfully", "configured", "." ]
490fcebecb936e00c2f2ce2096b679b2fd10865e
https://github.com/mbeiter/util/blob/490fcebecb936e00c2f2ce2096b679b2fd10865e/db/src/main/java/org/beiter/michael/db/propsbuilder/MapBasedConnPropsBuilder.java#L630-L654
train
mbeiter/util
db/src/main/java/org/beiter/michael/db/propsbuilder/MapBasedConnPropsBuilder.java
MapBasedConnPropsBuilder.logDefault
private static void logDefault(final String key, final String defaultValue) { // Fortify will report a violation here because of disclosure of potentially confidential information. // However, neither the configuration keys nor the default propsbuilder values are confidential, which makes // th...
java
private static void logDefault(final String key, final String defaultValue) { // Fortify will report a violation here because of disclosure of potentially confidential information. // However, neither the configuration keys nor the default propsbuilder values are confidential, which makes // th...
[ "private", "static", "void", "logDefault", "(", "final", "String", "key", ",", "final", "String", "defaultValue", ")", "{", "// Fortify will report a violation here because of disclosure of potentially confidential information.", "// However, neither the configuration keys nor the defa...
Create a log entry when a default value is being used in case the propsbuilder key has not been provided in the configuration. @param key The configuration key @param defaultValue The default value that is being used
[ "Create", "a", "log", "entry", "when", "a", "default", "value", "is", "being", "used", "in", "case", "the", "propsbuilder", "key", "has", "not", "been", "provided", "in", "the", "configuration", "." ]
490fcebecb936e00c2f2ce2096b679b2fd10865e
https://github.com/mbeiter/util/blob/490fcebecb936e00c2f2ce2096b679b2fd10865e/db/src/main/java/org/beiter/michael/db/propsbuilder/MapBasedConnPropsBuilder.java#L663-L679
train
mbeiter/util
db/src/main/java/org/beiter/michael/db/propsbuilder/MapBasedConnPropsBuilder.java
MapBasedConnPropsBuilder.logDefault
@SuppressWarnings({"PMD.UseObjectForClearerAPI"}) // CHECKSTYLE:ON private static void logDefault(final String key, final String invalidValue, final String validationError, final String defaultValue) { ...
java
@SuppressWarnings({"PMD.UseObjectForClearerAPI"}) // CHECKSTYLE:ON private static void logDefault(final String key, final String invalidValue, final String validationError, final String defaultValue) { ...
[ "@", "SuppressWarnings", "(", "{", "\"PMD.UseObjectForClearerAPI\"", "}", ")", "// CHECKSTYLE:ON", "private", "static", "void", "logDefault", "(", "final", "String", "key", ",", "final", "String", "invalidValue", ",", "final", "String", "validationError", ",", "fina...
suppress warnings about not using an object for the four strings in this PRIVATE method
[ "suppress", "warnings", "about", "not", "using", "an", "object", "for", "the", "four", "strings", "in", "this", "PRIVATE", "method" ]
490fcebecb936e00c2f2ce2096b679b2fd10865e
https://github.com/mbeiter/util/blob/490fcebecb936e00c2f2ce2096b679b2fd10865e/db/src/main/java/org/beiter/michael/db/propsbuilder/MapBasedConnPropsBuilder.java#L693-L715
train
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/multi/spatioTemporal/paths/Trajectory.java
Trajectory.getSequenceNumber
public int getSequenceNumber(Coordinate coord) { int minIndex = 0; double minDist = Double.MAX_VALUE; for (int i = 0; i < this.getPositions().length; i++) { if (this.getPositions()[i].distance(coord) < minDist) { minDist = this.getPositions()[i].distance(coord); minIndex = i; } } return minIndex...
java
public int getSequenceNumber(Coordinate coord) { int minIndex = 0; double minDist = Double.MAX_VALUE; for (int i = 0; i < this.getPositions().length; i++) { if (this.getPositions()[i].distance(coord) < minDist) { minDist = this.getPositions()[i].distance(coord); minIndex = i; } } return minIndex...
[ "public", "int", "getSequenceNumber", "(", "Coordinate", "coord", ")", "{", "int", "minIndex", "=", "0", ";", "double", "minDist", "=", "Double", ".", "MAX_VALUE", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "getPositions", "(", ...
Get the sequence number of the path point that is closest to a given coordinate. @param coord The coordinate to which the closest sequence number should be found. @return The sequence number of the path point that is closest to the given coordinate.
[ "Get", "the", "sequence", "number", "of", "the", "path", "point", "that", "is", "closest", "to", "a", "given", "coordinate", "." ]
42aaef2e2b76d0f738427f0dd9653c4f62b40517
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/multi/spatioTemporal/paths/Trajectory.java#L216-L226
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java
EngineeringObjectEnhancer.enhanceEKBCommit
private void enhanceEKBCommit(EKBCommit commit) throws EKBException { LOGGER.debug("Started to enhance the EKBCommit with Engineering Object information"); enhanceCommitInserts(commit); enhanceCommitUpdates(commit); // TODO: OPENENGSB-3357, consider also deletions in the enhancement ...
java
private void enhanceEKBCommit(EKBCommit commit) throws EKBException { LOGGER.debug("Started to enhance the EKBCommit with Engineering Object information"); enhanceCommitInserts(commit); enhanceCommitUpdates(commit); // TODO: OPENENGSB-3357, consider also deletions in the enhancement ...
[ "private", "void", "enhanceEKBCommit", "(", "EKBCommit", "commit", ")", "throws", "EKBException", "{", "LOGGER", ".", "debug", "(", "\"Started to enhance the EKBCommit with Engineering Object information\"", ")", ";", "enhanceCommitInserts", "(", "commit", ")", ";", "enha...
Does the Engineering Object enhancement of the EKBCommit object. In this step there may be some inserts updated or new objects will be added to the updates of the EKBCommit object. Throws an EKBException if an error in the Engineering Object logic occurs.
[ "Does", "the", "Engineering", "Object", "enhancement", "of", "the", "EKBCommit", "object", ".", "In", "this", "step", "there", "may", "be", "some", "inserts", "updated", "or", "new", "objects", "will", "be", "added", "to", "the", "updates", "of", "the", "E...
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java#L85-L91
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java
EngineeringObjectEnhancer.enhanceCommitUpdates
private void enhanceCommitUpdates(EKBCommit commit) throws EKBException { Map<Object, AdvancedModelWrapper> updated = new HashMap<Object, AdvancedModelWrapper>(); List<AdvancedModelWrapper> result = recursiveUpdateEnhancement( convertOpenEngSBModelList(commit.getUpdates()), updated, commit);...
java
private void enhanceCommitUpdates(EKBCommit commit) throws EKBException { Map<Object, AdvancedModelWrapper> updated = new HashMap<Object, AdvancedModelWrapper>(); List<AdvancedModelWrapper> result = recursiveUpdateEnhancement( convertOpenEngSBModelList(commit.getUpdates()), updated, commit);...
[ "private", "void", "enhanceCommitUpdates", "(", "EKBCommit", "commit", ")", "throws", "EKBException", "{", "Map", "<", "Object", ",", "AdvancedModelWrapper", ">", "updated", "=", "new", "HashMap", "<", "Object", ",", "AdvancedModelWrapper", ">", "(", ")", ";", ...
Enhances the EKBCommit for the updates of EngineeringObjects.
[ "Enhances", "the", "EKBCommit", "for", "the", "updates", "of", "EngineeringObjects", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java#L96-L101
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java
EngineeringObjectEnhancer.convertOpenEngSBModelList
private List<AdvancedModelWrapper> convertOpenEngSBModelList(List<OpenEngSBModel> models) { List<AdvancedModelWrapper> wrappers = new ArrayList<AdvancedModelWrapper>(); for (OpenEngSBModel model : models) { wrappers.add(AdvancedModelWrapper.wrap(model)); } return wrappers; ...
java
private List<AdvancedModelWrapper> convertOpenEngSBModelList(List<OpenEngSBModel> models) { List<AdvancedModelWrapper> wrappers = new ArrayList<AdvancedModelWrapper>(); for (OpenEngSBModel model : models) { wrappers.add(AdvancedModelWrapper.wrap(model)); } return wrappers; ...
[ "private", "List", "<", "AdvancedModelWrapper", ">", "convertOpenEngSBModelList", "(", "List", "<", "OpenEngSBModel", ">", "models", ")", "{", "List", "<", "AdvancedModelWrapper", ">", "wrappers", "=", "new", "ArrayList", "<", "AdvancedModelWrapper", ">", "(", ")"...
Converts a list of OpenEngSBModel objects to a list of SimpleModelWrapper objects
[ "Converts", "a", "list", "of", "OpenEngSBModel", "objects", "to", "a", "list", "of", "SimpleModelWrapper", "objects" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java#L106-L112
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java
EngineeringObjectEnhancer.convertSimpleModelWrapperList
private List<OpenEngSBModel> convertSimpleModelWrapperList(List<AdvancedModelWrapper> wrappers) { List<OpenEngSBModel> models = new ArrayList<OpenEngSBModel>(); for (AdvancedModelWrapper wrapper : wrappers) { models.add(wrapper.getUnderlyingModel()); } return models; }
java
private List<OpenEngSBModel> convertSimpleModelWrapperList(List<AdvancedModelWrapper> wrappers) { List<OpenEngSBModel> models = new ArrayList<OpenEngSBModel>(); for (AdvancedModelWrapper wrapper : wrappers) { models.add(wrapper.getUnderlyingModel()); } return models; }
[ "private", "List", "<", "OpenEngSBModel", ">", "convertSimpleModelWrapperList", "(", "List", "<", "AdvancedModelWrapper", ">", "wrappers", ")", "{", "List", "<", "OpenEngSBModel", ">", "models", "=", "new", "ArrayList", "<", "OpenEngSBModel", ">", "(", ")", ";",...
Converts a list of SimpleModelWrapper objects to a list of OpenEngSBModel objects
[ "Converts", "a", "list", "of", "SimpleModelWrapper", "objects", "to", "a", "list", "of", "OpenEngSBModel", "objects" ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java#L117-L123
train
openengsb/openengsb
components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java
EngineeringObjectEnhancer.recursiveUpdateEnhancement
private List<AdvancedModelWrapper> recursiveUpdateEnhancement(List<AdvancedModelWrapper> updates, Map<Object, AdvancedModelWrapper> updated, EKBCommit commit) { List<AdvancedModelWrapper> additionalUpdates = enhanceUpdates(updates, updated, commit); for (AdvancedModelWrapper model : updates)...
java
private List<AdvancedModelWrapper> recursiveUpdateEnhancement(List<AdvancedModelWrapper> updates, Map<Object, AdvancedModelWrapper> updated, EKBCommit commit) { List<AdvancedModelWrapper> additionalUpdates = enhanceUpdates(updates, updated, commit); for (AdvancedModelWrapper model : updates)...
[ "private", "List", "<", "AdvancedModelWrapper", ">", "recursiveUpdateEnhancement", "(", "List", "<", "AdvancedModelWrapper", ">", "updates", ",", "Map", "<", "Object", ",", "AdvancedModelWrapper", ">", "updated", ",", "EKBCommit", "commit", ")", "{", "List", "<", ...
Recursive function for calculating all models which need to be updated due to the original updates of the EKBCommit.
[ "Recursive", "function", "for", "calculating", "all", "models", "which", "need", "to", "be", "updated", "due", "to", "the", "original", "updates", "of", "the", "EKBCommit", "." ]
d39058000707f617cd405629f9bc7f17da7b414a
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/ekb/persistence-persist-edb/src/main/java/org/openengsb/core/ekb/persistence/persist/edb/internal/EngineeringObjectEnhancer.java#L129-L139
train