id int32 0 165k | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
26,300 | datacleaner/DataCleaner | components/machine-learning/src/main/java/org/datacleaner/components/machinelearning/impl/MLFeatureUtils.java | MLFeatureUtils.toFeatureVector | public static double[][] toFeatureVector(Iterable<? extends MLRecord> data,
List<MLFeatureModifier> featureModifiers) {
final List<double[]> trainingInstances = new ArrayList<>();
for (MLRecord record : data) {
final double[] features = generateFeatureValues(record, featureModifi... | java | public static double[][] toFeatureVector(Iterable<? extends MLRecord> data,
List<MLFeatureModifier> featureModifiers) {
final List<double[]> trainingInstances = new ArrayList<>();
for (MLRecord record : data) {
final double[] features = generateFeatureValues(record, featureModifi... | [
"public",
"static",
"double",
"[",
"]",
"[",
"]",
"toFeatureVector",
"(",
"Iterable",
"<",
"?",
"extends",
"MLRecord",
">",
"data",
",",
"List",
"<",
"MLFeatureModifier",
">",
"featureModifiers",
")",
"{",
"final",
"List",
"<",
"double",
"[",
"]",
">",
"... | Generates a matrix of feature values for each record.
@param data
@param featureModifiers
@return | [
"Generates",
"a",
"matrix",
"of",
"feature",
"values",
"for",
"each",
"record",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/machine-learning/src/main/java/org/datacleaner/components/machinelearning/impl/MLFeatureUtils.java#L58-L67 |
26,301 | datacleaner/DataCleaner | components/machine-learning/src/main/java/org/datacleaner/components/machinelearning/impl/MLFeatureUtils.java | MLFeatureUtils.toClassificationVector | public static int[] toClassificationVector(Iterable<MLClassificationRecord> data) {
final List<Integer> responseVariables = new ArrayList<>();
final List<Object> classifications = new ArrayList<>();
for (MLClassificationRecord record : data) {
final Object classification = record.ge... | java | public static int[] toClassificationVector(Iterable<MLClassificationRecord> data) {
final List<Integer> responseVariables = new ArrayList<>();
final List<Object> classifications = new ArrayList<>();
for (MLClassificationRecord record : data) {
final Object classification = record.ge... | [
"public",
"static",
"int",
"[",
"]",
"toClassificationVector",
"(",
"Iterable",
"<",
"MLClassificationRecord",
">",
"data",
")",
"{",
"final",
"List",
"<",
"Integer",
">",
"responseVariables",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"final",
"List",
"<... | Generates a vector of classifications for each record.
@param data
@return | [
"Generates",
"a",
"vector",
"of",
"classifications",
"for",
"each",
"record",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/machine-learning/src/main/java/org/datacleaner/components/machinelearning/impl/MLFeatureUtils.java#L75-L91 |
26,302 | datacleaner/DataCleaner | components/machine-learning/src/main/java/org/datacleaner/components/machinelearning/impl/MLFeatureUtils.java | MLFeatureUtils.toRegressionOutputVector | public static double[] toRegressionOutputVector(Iterable<MLRegressionRecord> data) {
final Stream<MLRegressionRecord> stream = StreamSupport.stream(data.spliterator(), false);
return stream.mapToDouble(MLRegressionRecord::getRegressionOutput).toArray();
} | java | public static double[] toRegressionOutputVector(Iterable<MLRegressionRecord> data) {
final Stream<MLRegressionRecord> stream = StreamSupport.stream(data.spliterator(), false);
return stream.mapToDouble(MLRegressionRecord::getRegressionOutput).toArray();
} | [
"public",
"static",
"double",
"[",
"]",
"toRegressionOutputVector",
"(",
"Iterable",
"<",
"MLRegressionRecord",
">",
"data",
")",
"{",
"final",
"Stream",
"<",
"MLRegressionRecord",
">",
"stream",
"=",
"StreamSupport",
".",
"stream",
"(",
"data",
".",
"spliterato... | Generates a vector of regression outputs for every record
@param data
@return | [
"Generates",
"a",
"vector",
"of",
"regression",
"outputs",
"for",
"every",
"record"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/machine-learning/src/main/java/org/datacleaner/components/machinelearning/impl/MLFeatureUtils.java#L99-L102 |
26,303 | datacleaner/DataCleaner | desktop/api/src/main/java/org/datacleaner/widgets/properties/AbstractPropertyWidget.java | AbstractPropertyWidget.batchUpdateWidget | public final void batchUpdateWidget(final Runnable action) {
_batchUpdateCounter++;
try {
action.run();
} catch (final RuntimeException e) {
logger.error("Exception occurred in widget batch update, fireValueChanged() will not be invoked", e);
throw e;
... | java | public final void batchUpdateWidget(final Runnable action) {
_batchUpdateCounter++;
try {
action.run();
} catch (final RuntimeException e) {
logger.error("Exception occurred in widget batch update, fireValueChanged() will not be invoked", e);
throw e;
... | [
"public",
"final",
"void",
"batchUpdateWidget",
"(",
"final",
"Runnable",
"action",
")",
"{",
"_batchUpdateCounter",
"++",
";",
"try",
"{",
"action",
".",
"run",
"(",
")",
";",
"}",
"catch",
"(",
"final",
"RuntimeException",
"e",
")",
"{",
"logger",
".",
... | Executes a "widget batch update". Listeners and other effects of updating
individual parts of a widget may be turned off during batch updates.
@param action
the action to execute | [
"Executes",
"a",
"widget",
"batch",
"update",
".",
"Listeners",
"and",
"other",
"effects",
"of",
"updating",
"individual",
"parts",
"of",
"a",
"widget",
"may",
"be",
"turned",
"off",
"during",
"batch",
"updates",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/api/src/main/java/org/datacleaner/widgets/properties/AbstractPropertyWidget.java#L85-L98 |
26,304 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/extensions/ExtensionPackage.java | ExtensionPackage.getExtensionClassLoader | public static ClassLoader getExtensionClassLoader() {
final Collection<ClassLoader> childClassLoaders = new ArrayList<>();
childClassLoaders.addAll(_allExtensionClassLoaders);
childClassLoaders.add(ClassLoaderUtils.getParentClassLoader());
return new CompoundClassLoader(childClassLoaders... | java | public static ClassLoader getExtensionClassLoader() {
final Collection<ClassLoader> childClassLoaders = new ArrayList<>();
childClassLoaders.addAll(_allExtensionClassLoaders);
childClassLoaders.add(ClassLoaderUtils.getParentClassLoader());
return new CompoundClassLoader(childClassLoaders... | [
"public",
"static",
"ClassLoader",
"getExtensionClassLoader",
"(",
")",
"{",
"final",
"Collection",
"<",
"ClassLoader",
">",
"childClassLoaders",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"childClassLoaders",
".",
"addAll",
"(",
"_allExtensionClassLoaders",
")",... | Gets the classloader that represents the currently loaded extensions'
classes.
@return | [
"Gets",
"the",
"classloader",
"that",
"represents",
"the",
"currently",
"loaded",
"extensions",
"classes",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/extensions/ExtensionPackage.java#L79-L84 |
26,305 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/panels/result/TableProgressInformationPanel.java | TableProgressInformationPanel.setProgress | public boolean setProgress(final int currentRow) {
final boolean result = _progressBar.setValueIfGreater(currentRow);
if (result) {
_progressCountLabel.setText(formatNumber(currentRow));
}
return result;
} | java | public boolean setProgress(final int currentRow) {
final boolean result = _progressBar.setValueIfGreater(currentRow);
if (result) {
_progressCountLabel.setText(formatNumber(currentRow));
}
return result;
} | [
"public",
"boolean",
"setProgress",
"(",
"final",
"int",
"currentRow",
")",
"{",
"final",
"boolean",
"result",
"=",
"_progressBar",
".",
"setValueIfGreater",
"(",
"currentRow",
")",
";",
"if",
"(",
"result",
")",
"{",
"_progressCountLabel",
".",
"setText",
"("... | Sets the progress of the processing of the table.
@param currentRow
@return | [
"Sets",
"the",
"progress",
"of",
"the",
"processing",
"of",
"the",
"table",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/panels/result/TableProgressInformationPanel.java#L125-L133 |
26,306 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/components/tablelookup/TableLookupTransformer.java | TableLookupTransformer.getQueryOutputColumns | private Column[] getQueryOutputColumns(final boolean checkNames) {
if (queryOutputColumns == null) {
try (DatastoreConnection con = datastore.openConnection()) {
queryOutputColumns = con.getSchemaNavigator().convertToColumns(schemaName, tableName, outputColumns);
}
... | java | private Column[] getQueryOutputColumns(final boolean checkNames) {
if (queryOutputColumns == null) {
try (DatastoreConnection con = datastore.openConnection()) {
queryOutputColumns = con.getSchemaNavigator().convertToColumns(schemaName, tableName, outputColumns);
}
... | [
"private",
"Column",
"[",
"]",
"getQueryOutputColumns",
"(",
"final",
"boolean",
"checkNames",
")",
"{",
"if",
"(",
"queryOutputColumns",
"==",
"null",
")",
"{",
"try",
"(",
"DatastoreConnection",
"con",
"=",
"datastore",
".",
"openConnection",
"(",
")",
")",
... | Gets the output columns of the lookup query
@param checkNames
whether to check/validate/adjust the names of these columns
@return | [
"Gets",
"the",
"output",
"columns",
"of",
"the",
"lookup",
"query"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/components/tablelookup/TableLookupTransformer.java#L245-L257 |
26,307 | datacleaner/DataCleaner | components/standardizers/src/main/java/org/datacleaner/util/NamedPattern.java | NamedPattern.match | public NamedPatternMatch<E> match(final String string) {
final Matcher matcher = pattern.matcher(string);
while (matcher.find()) {
final int start = matcher.start();
final int end = matcher.end();
if (start == 0 && end == string.length()) {
final Map... | java | public NamedPatternMatch<E> match(final String string) {
final Matcher matcher = pattern.matcher(string);
while (matcher.find()) {
final int start = matcher.start();
final int end = matcher.end();
if (start == 0 && end == string.length()) {
final Map... | [
"public",
"NamedPatternMatch",
"<",
"E",
">",
"match",
"(",
"final",
"String",
"string",
")",
"{",
"final",
"Matcher",
"matcher",
"=",
"pattern",
".",
"matcher",
"(",
"string",
")",
";",
"while",
"(",
"matcher",
".",
"find",
"(",
")",
")",
"{",
"final"... | Matches a string against this named pattern.
@param string
the string to match
@return a match object, or null if there was no match | [
"Matches",
"a",
"string",
"against",
"this",
"named",
"pattern",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/standardizers/src/main/java/org/datacleaner/util/NamedPattern.java#L147-L168 |
26,308 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/util/CompareUtils.java | CompareUtils.compare | public static <E> int compare(final Comparable<E> obj1, final E obj2) {
if (obj1 == obj2) {
return 0;
}
if (obj1 == null) {
return -1;
}
if (obj2 == null) {
return 1;
}
return obj1.compareTo(obj2);
} | java | public static <E> int compare(final Comparable<E> obj1, final E obj2) {
if (obj1 == obj2) {
return 0;
}
if (obj1 == null) {
return -1;
}
if (obj2 == null) {
return 1;
}
return obj1.compareTo(obj2);
} | [
"public",
"static",
"<",
"E",
">",
"int",
"compare",
"(",
"final",
"Comparable",
"<",
"E",
">",
"obj1",
",",
"final",
"E",
"obj2",
")",
"{",
"if",
"(",
"obj1",
"==",
"obj2",
")",
"{",
"return",
"0",
";",
"}",
"if",
"(",
"obj1",
"==",
"null",
")... | Compares two objects of which one of them is a comparable of the other.
@param <E>
@param obj1
@param obj2
@return a negative integer, zero, or a positive integer as the first
argument is less than, equal to, or greater than the second. | [
"Compares",
"two",
"objects",
"of",
"which",
"one",
"of",
"them",
"is",
"a",
"comparable",
"of",
"the",
"other",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/util/CompareUtils.java#L65-L77 |
26,309 | datacleaner/DataCleaner | engine/env/spark/src/main/java/org/datacleaner/spark/SparkRunner.java | SparkRunner.findFile | private URI findFile(final String filePath, final boolean upload) {
try {
URI fileURI;
try {
fileURI = _hadoopDefaultFS.getUri().resolve(filePath);
} catch (final Exception e) {
fileURI = null;
}
if ((fileURI == null ||... | java | private URI findFile(final String filePath, final boolean upload) {
try {
URI fileURI;
try {
fileURI = _hadoopDefaultFS.getUri().resolve(filePath);
} catch (final Exception e) {
fileURI = null;
}
if ((fileURI == null ||... | [
"private",
"URI",
"findFile",
"(",
"final",
"String",
"filePath",
",",
"final",
"boolean",
"upload",
")",
"{",
"try",
"{",
"URI",
"fileURI",
";",
"try",
"{",
"fileURI",
"=",
"_hadoopDefaultFS",
".",
"getUri",
"(",
")",
".",
"resolve",
"(",
"filePath",
")... | Tries to find a file on HDFS, and optionally uploads it if not found.
@param filePath Path of the file to find
@param upload true if file upload should be attempted.
@return Either the resolved URI, or the uploaded file. | [
"Tries",
"to",
"find",
"a",
"file",
"on",
"HDFS",
"and",
"optionally",
"uploads",
"it",
"if",
"not",
"found",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/env/spark/src/main/java/org/datacleaner/spark/SparkRunner.java#L88-L112 |
26,310 | datacleaner/DataCleaner | components/html-rendering/src/main/java/org/datacleaner/result/html/FlotChartLocator.java | FlotChartLocator.setFlotHome | public static void setFlotHome(String flotHome) {
if (flotHome == null || flotHome.trim().isEmpty()) {
System.clearProperty(SYSTEM_PROPERTY_FLOT_HOME);
} else {
final String propValue = flotHome.endsWith("/") ? flotHome.substring(0, flotHome.length() - 1) : flotHome;
... | java | public static void setFlotHome(String flotHome) {
if (flotHome == null || flotHome.trim().isEmpty()) {
System.clearProperty(SYSTEM_PROPERTY_FLOT_HOME);
} else {
final String propValue = flotHome.endsWith("/") ? flotHome.substring(0, flotHome.length() - 1) : flotHome;
... | [
"public",
"static",
"void",
"setFlotHome",
"(",
"String",
"flotHome",
")",
"{",
"if",
"(",
"flotHome",
"==",
"null",
"||",
"flotHome",
".",
"trim",
"(",
")",
".",
"isEmpty",
"(",
")",
")",
"{",
"System",
".",
"clearProperty",
"(",
"SYSTEM_PROPERTY_FLOT_HOM... | Sets the home folder of all flot javascript files | [
"Sets",
"the",
"home",
"folder",
"of",
"all",
"flot",
"javascript",
"files"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/html-rendering/src/main/java/org/datacleaner/result/html/FlotChartLocator.java#L118-L125 |
26,311 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/result/CrosstabNavigator.java | CrosstabNavigator.attach | public void attach(final AnalyzerResult explorationResult) {
final ResultProducer resultProducer;
if (explorationResult == null) {
resultProducer = null;
} else {
resultProducer = new DefaultResultProducer(explorationResult);
}
attach(resultProducer);
... | java | public void attach(final AnalyzerResult explorationResult) {
final ResultProducer resultProducer;
if (explorationResult == null) {
resultProducer = null;
} else {
resultProducer = new DefaultResultProducer(explorationResult);
}
attach(resultProducer);
... | [
"public",
"void",
"attach",
"(",
"final",
"AnalyzerResult",
"explorationResult",
")",
"{",
"final",
"ResultProducer",
"resultProducer",
";",
"if",
"(",
"explorationResult",
"==",
"null",
")",
"{",
"resultProducer",
"=",
"null",
";",
"}",
"else",
"{",
"resultProd... | Attaches an AnalyzerResult as result-exploration data for the navigated
position of the crosstab.
@param explorationResult | [
"Attaches",
"an",
"AnalyzerResult",
"as",
"result",
"-",
"exploration",
"data",
"for",
"the",
"navigated",
"position",
"of",
"the",
"crosstab",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/result/CrosstabNavigator.java#L114-L122 |
26,312 | datacleaner/DataCleaner | components/html-rendering/src/main/java/org/datacleaner/documentation/ComponentDocumentationWrapper.java | ComponentDocumentationWrapper.getHref | public String getHref() {
final String displayName = _componentDescriptor.getDisplayName();
final String filename =
StringUtils.replaceWhitespaces(displayName.toLowerCase().trim(), "_").replaceAll("\\/", "_")
.replaceAll("\\\\", "_");
return filename + ".h... | java | public String getHref() {
final String displayName = _componentDescriptor.getDisplayName();
final String filename =
StringUtils.replaceWhitespaces(displayName.toLowerCase().trim(), "_").replaceAll("\\/", "_")
.replaceAll("\\\\", "_");
return filename + ".h... | [
"public",
"String",
"getHref",
"(",
")",
"{",
"final",
"String",
"displayName",
"=",
"_componentDescriptor",
".",
"getDisplayName",
"(",
")",
";",
"final",
"String",
"filename",
"=",
"StringUtils",
".",
"replaceWhitespaces",
"(",
"displayName",
".",
"toLowerCase",... | Gets the "href" attribute content if a link to this component should be
made from elsewhere in the component docs.
@return | [
"Gets",
"the",
"href",
"attribute",
"content",
"if",
"a",
"link",
"to",
"this",
"component",
"should",
"be",
"made",
"from",
"elsewhere",
"in",
"the",
"component",
"docs",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/html-rendering/src/main/java/org/datacleaner/documentation/ComponentDocumentationWrapper.java#L218-L224 |
26,313 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/properties/MultipleInputColumnsPropertyWidget.java | MultipleInputColumnsPropertyWidget.reorderValue | public void reorderValue(final InputColumn<?>[] sortedValue) {
// the offset represents the search textfield and the button panel
final int offset = 2;
// reorder the visual components
for (int i = 0; i < sortedValue.length; i++) {
final InputColumn<?> inputColumn = sortedVa... | java | public void reorderValue(final InputColumn<?>[] sortedValue) {
// the offset represents the search textfield and the button panel
final int offset = 2;
// reorder the visual components
for (int i = 0; i < sortedValue.length; i++) {
final InputColumn<?> inputColumn = sortedVa... | [
"public",
"void",
"reorderValue",
"(",
"final",
"InputColumn",
"<",
"?",
">",
"[",
"]",
"sortedValue",
")",
"{",
"// the offset represents the search textfield and the button panel",
"final",
"int",
"offset",
"=",
"2",
";",
"// reorder the visual components",
"for",
"("... | Reorders the values
@param sortedValue | [
"Reorders",
"the",
"values"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/properties/MultipleInputColumnsPropertyWidget.java#L536-L558 |
26,314 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/util/AverageBuilder.java | AverageBuilder.addValue | public AverageBuilder addValue(final Number number) {
final double total = _average * _numValues + number.doubleValue();
_numValues++;
_average = total / _numValues;
return this;
} | java | public AverageBuilder addValue(final Number number) {
final double total = _average * _numValues + number.doubleValue();
_numValues++;
_average = total / _numValues;
return this;
} | [
"public",
"AverageBuilder",
"addValue",
"(",
"final",
"Number",
"number",
")",
"{",
"final",
"double",
"total",
"=",
"_average",
"*",
"_numValues",
"+",
"number",
".",
"doubleValue",
"(",
")",
";",
"_numValues",
"++",
";",
"_average",
"=",
"total",
"/",
"_... | Adds a value to the average that is being built.
@param number
@return | [
"Adds",
"a",
"value",
"to",
"the",
"average",
"that",
"is",
"being",
"built",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/util/AverageBuilder.java#L63-L68 |
26,315 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/DCProgressBar.java | DCProgressBar.setValueIfGreater | public boolean setValueIfGreater(final int newValue) {
final boolean greater = _value.setIfSignificantToUser(newValue);
if (greater) {
WidgetUtils.invokeSwingAction(() -> DCProgressBar.super.setValue(newValue));
}
return greater;
} | java | public boolean setValueIfGreater(final int newValue) {
final boolean greater = _value.setIfSignificantToUser(newValue);
if (greater) {
WidgetUtils.invokeSwingAction(() -> DCProgressBar.super.setValue(newValue));
}
return greater;
} | [
"public",
"boolean",
"setValueIfGreater",
"(",
"final",
"int",
"newValue",
")",
"{",
"final",
"boolean",
"greater",
"=",
"_value",
".",
"setIfSignificantToUser",
"(",
"newValue",
")",
";",
"if",
"(",
"greater",
")",
"{",
"WidgetUtils",
".",
"invokeSwingAction",
... | Sets the value of the progress bar, if the new value is greater than the
previous value.
@param newValue
@return whether or not the value was greater, and thus updated | [
"Sets",
"the",
"value",
"of",
"the",
"progress",
"bar",
"if",
"the",
"new",
"value",
"is",
"greater",
"than",
"the",
"previous",
"value",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/DCProgressBar.java#L71-L77 |
26,316 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/user/QuickAnalysisStrategy.java | QuickAnalysisStrategy.createAnalyzers | private void createAnalyzers(final AnalysisJobBuilder ajb, final Class<? extends Analyzer<?>> analyzerClass,
final List<InputColumn<?>> columns) {
final int columnsPerAnalyzer = getColumnsPerAnalyzer();
AnalyzerComponentBuilder<?> analyzerJobBuilder = ajb.addAnalyzer(analyzerClass);
... | java | private void createAnalyzers(final AnalysisJobBuilder ajb, final Class<? extends Analyzer<?>> analyzerClass,
final List<InputColumn<?>> columns) {
final int columnsPerAnalyzer = getColumnsPerAnalyzer();
AnalyzerComponentBuilder<?> analyzerJobBuilder = ajb.addAnalyzer(analyzerClass);
... | [
"private",
"void",
"createAnalyzers",
"(",
"final",
"AnalysisJobBuilder",
"ajb",
",",
"final",
"Class",
"<",
"?",
"extends",
"Analyzer",
"<",
"?",
">",
">",
"analyzerClass",
",",
"final",
"List",
"<",
"InputColumn",
"<",
"?",
">",
">",
"columns",
")",
"{",... | Registers analyzers and up to 4 columns per analyzer. This restriction is
to ensure that results will be nicely readable. A table might contain
hundreds of columns.
@param ajb
@param analyzerClass
@param columns | [
"Registers",
"analyzers",
"and",
"up",
"to",
"4",
"columns",
"per",
"analyzer",
".",
"This",
"restriction",
"is",
"to",
"ensure",
"that",
"results",
"will",
"be",
"nicely",
"readable",
".",
"A",
"table",
"might",
"contain",
"hundreds",
"of",
"columns",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/user/QuickAnalysisStrategy.java#L159-L180 |
26,317 | datacleaner/DataCleaner | engine/utils/src/main/java/org/datacleaner/util/ReflectionUtils.java | ReflectionUtils.getAllFields | public static Field[] getAllFields(final Class<?> clazz) {
final List<Field> allFields = new ArrayList<>();
addFields(allFields, clazz);
return allFields.toArray(new Field[allFields.size()]);
} | java | public static Field[] getAllFields(final Class<?> clazz) {
final List<Field> allFields = new ArrayList<>();
addFields(allFields, clazz);
return allFields.toArray(new Field[allFields.size()]);
} | [
"public",
"static",
"Field",
"[",
"]",
"getAllFields",
"(",
"final",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"final",
"List",
"<",
"Field",
">",
"allFields",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"addFields",
"(",
"allFields",
",",
"clazz",
... | Gets all fields of a class, including private fields in super-classes.
@param clazz
@return | [
"Gets",
"all",
"fields",
"of",
"a",
"class",
"including",
"private",
"fields",
"in",
"super",
"-",
"classes",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/utils/src/main/java/org/datacleaner/util/ReflectionUtils.java#L510-L514 |
26,318 | datacleaner/DataCleaner | engine/utils/src/main/java/org/datacleaner/util/ReflectionUtils.java | ReflectionUtils.getNonSyntheticFields | public static Field[] getNonSyntheticFields(final Class<?> clazz) {
final List<Field> fieldList = new ArrayList<>();
addFields(fieldList, clazz, true);
return fieldList.toArray(new Field[fieldList.size()]);
} | java | public static Field[] getNonSyntheticFields(final Class<?> clazz) {
final List<Field> fieldList = new ArrayList<>();
addFields(fieldList, clazz, true);
return fieldList.toArray(new Field[fieldList.size()]);
} | [
"public",
"static",
"Field",
"[",
"]",
"getNonSyntheticFields",
"(",
"final",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"final",
"List",
"<",
"Field",
">",
"fieldList",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"addFields",
"(",
"fieldList",
",",
... | Gets non-synthetic fields of a class, including private fields in
super-classes.
@param clazz
@return | [
"Gets",
"non",
"-",
"synthetic",
"fields",
"of",
"a",
"class",
"including",
"private",
"fields",
"in",
"super",
"-",
"classes",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/utils/src/main/java/org/datacleaner/util/ReflectionUtils.java#L523-L528 |
26,319 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/descriptors/ClasspathScanDescriptorProvider.java | ClasspathScanDescriptorProvider.awaitTasks | private void awaitTasks() {
if (_tasksPending.get() == 0) {
return;
}
synchronized (this) {
while (_tasksPending.get() != 0) {
try {
logger.info("Scan tasks still pending, waiting");
wait();
} catch (... | java | private void awaitTasks() {
if (_tasksPending.get() == 0) {
return;
}
synchronized (this) {
while (_tasksPending.get() != 0) {
try {
logger.info("Scan tasks still pending, waiting");
wait();
} catch (... | [
"private",
"void",
"awaitTasks",
"(",
")",
"{",
"if",
"(",
"_tasksPending",
".",
"get",
"(",
")",
"==",
"0",
")",
"{",
"return",
";",
"}",
"synchronized",
"(",
"this",
")",
"{",
"while",
"(",
"_tasksPending",
".",
"get",
"(",
")",
"!=",
"0",
")",
... | Waits for all pending tasks to finish | [
"Waits",
"for",
"all",
"pending",
"tasks",
"to",
"finish"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/descriptors/ClasspathScanDescriptorProvider.java#L621-L635 |
26,320 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/job/runner/AbstractRowProcessingConsumer.java | AbstractRowProcessingConsumer.satisfiedForConsume | @Override
public final boolean satisfiedForConsume(final FilterOutcomes outcomes, final InputRow row) {
final boolean satisfiedOutcomesForConsume =
satisfiedOutcomesForConsume(_hasComponentRequirement, row, outcomes);
if (!satisfiedOutcomesForConsume) {
return false;
... | java | @Override
public final boolean satisfiedForConsume(final FilterOutcomes outcomes, final InputRow row) {
final boolean satisfiedOutcomesForConsume =
satisfiedOutcomesForConsume(_hasComponentRequirement, row, outcomes);
if (!satisfiedOutcomesForConsume) {
return false;
... | [
"@",
"Override",
"public",
"final",
"boolean",
"satisfiedForConsume",
"(",
"final",
"FilterOutcomes",
"outcomes",
",",
"final",
"InputRow",
"row",
")",
"{",
"final",
"boolean",
"satisfiedOutcomesForConsume",
"=",
"satisfiedOutcomesForConsume",
"(",
"_hasComponentRequireme... | Ensures that just a single outcome is satisfied | [
"Ensures",
"that",
"just",
"a",
"single",
"outcome",
"is",
"satisfied"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/job/runner/AbstractRowProcessingConsumer.java#L137-L145 |
26,321 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphContext.java | JobGraphContext.getVertex | public Object getVertex(final Point2D point2D) {
final GraphElementAccessor<?, ?> pickSupport = _visualizationViewer.getPickSupport();
@SuppressWarnings("rawtypes") final Layout graphLayout = _visualizationViewer.getModel().getGraphLayout();
@SuppressWarnings("unchecked") final Object vertex =... | java | public Object getVertex(final Point2D point2D) {
final GraphElementAccessor<?, ?> pickSupport = _visualizationViewer.getPickSupport();
@SuppressWarnings("rawtypes") final Layout graphLayout = _visualizationViewer.getModel().getGraphLayout();
@SuppressWarnings("unchecked") final Object vertex =... | [
"public",
"Object",
"getVertex",
"(",
"final",
"Point2D",
"point2D",
")",
"{",
"final",
"GraphElementAccessor",
"<",
"?",
",",
"?",
">",
"pickSupport",
"=",
"_visualizationViewer",
".",
"getPickSupport",
"(",
")",
";",
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"... | Gets the vertex at a particular point, or null if it does not exist.
@param point2D
@return | [
"Gets",
"the",
"vertex",
"at",
"a",
"particular",
"point",
"or",
"null",
"if",
"it",
"does",
"not",
"exist",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphContext.java#L95-L103 |
26,322 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/actions/DownloadFilesActionListener.java | DownloadFilesActionListener.cancelDownload | public void cancelDownload(final boolean hideWindowImmediately) {
logger.info("Cancel of download requested");
_cancelled = true;
if (hideWindowImmediately && _downloadProgressWindow != null) {
WidgetUtils.invokeSwingAction(_downloadProgressWindow::close);
}
} | java | public void cancelDownload(final boolean hideWindowImmediately) {
logger.info("Cancel of download requested");
_cancelled = true;
if (hideWindowImmediately && _downloadProgressWindow != null) {
WidgetUtils.invokeSwingAction(_downloadProgressWindow::close);
}
} | [
"public",
"void",
"cancelDownload",
"(",
"final",
"boolean",
"hideWindowImmediately",
")",
"{",
"logger",
".",
"info",
"(",
"\"Cancel of download requested\"",
")",
";",
"_cancelled",
"=",
"true",
";",
"if",
"(",
"hideWindowImmediately",
"&&",
"_downloadProgressWindow... | Cancels the file download.
@param hideWindowImmediately
determines if the download progress window should be hidden
immediately or only when the progress of cancelling the
download has occurred gracefully. | [
"Cancels",
"the",
"file",
"download",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/actions/DownloadFilesActionListener.java#L177-L184 |
26,323 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/panels/result/ProgressInformationPanel.java | ProgressInformationPanel.updateProgress | public void updateProgress(final Table table, final int currentRow) {
final TableProgressInformationPanel tableProgressInformationPanel = getTableProgressInformationPanel(table, -1);
final boolean greater = tableProgressInformationPanel.setProgress(currentRow);
if (!greater) {
// th... | java | public void updateProgress(final Table table, final int currentRow) {
final TableProgressInformationPanel tableProgressInformationPanel = getTableProgressInformationPanel(table, -1);
final boolean greater = tableProgressInformationPanel.setProgress(currentRow);
if (!greater) {
// th... | [
"public",
"void",
"updateProgress",
"(",
"final",
"Table",
"table",
",",
"final",
"int",
"currentRow",
")",
"{",
"final",
"TableProgressInformationPanel",
"tableProgressInformationPanel",
"=",
"getTableProgressInformationPanel",
"(",
"table",
",",
"-",
"1",
")",
";",
... | Informs the panel that the progress for a table is updated
@param table
@param currentRow | [
"Informs",
"the",
"panel",
"that",
"the",
"progress",
"for",
"a",
"table",
"is",
"updated"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/panels/result/ProgressInformationPanel.java#L227-L257 |
26,324 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/windows/HdfsUrlChooser.java | HdfsUrlChooser.scanHadoopConfigFiles | private boolean scanHadoopConfigFiles(final ServerInformationCatalog serverInformationCatalog,
final String selectedServer) {
final HadoopClusterInformation clusterInformation;
if (selectedServer != null) {
clusterInformation = (HadoopClusterInformation) serverInformationCatalog... | java | private boolean scanHadoopConfigFiles(final ServerInformationCatalog serverInformationCatalog,
final String selectedServer) {
final HadoopClusterInformation clusterInformation;
if (selectedServer != null) {
clusterInformation = (HadoopClusterInformation) serverInformationCatalog... | [
"private",
"boolean",
"scanHadoopConfigFiles",
"(",
"final",
"ServerInformationCatalog",
"serverInformationCatalog",
",",
"final",
"String",
"selectedServer",
")",
"{",
"final",
"HadoopClusterInformation",
"clusterInformation",
";",
"if",
"(",
"selectedServer",
"!=",
"null"... | This scans Hadoop environment variables for a directory with configuration files
@param serverInformationCatalog
@return True if a configuration was yielded. | [
"This",
"scans",
"Hadoop",
"environment",
"variables",
"for",
"a",
"directory",
"with",
"configuration",
"files"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/windows/HdfsUrlChooser.java#L519-L546 |
26,325 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/result/save/AnalysisResultSaveHandler.java | AnalysisResultSaveHandler.getUnsafeResultElements | public Map<ComponentJob, AnalyzerResult> getUnsafeResultElements() {
if (_unsafeResultElements == null) {
_unsafeResultElements = new LinkedHashMap<>();
final Map<ComponentJob, AnalyzerResult> resultMap = _analysisResult.getResultMap();
for (final Entry<ComponentJob, Analyzer... | java | public Map<ComponentJob, AnalyzerResult> getUnsafeResultElements() {
if (_unsafeResultElements == null) {
_unsafeResultElements = new LinkedHashMap<>();
final Map<ComponentJob, AnalyzerResult> resultMap = _analysisResult.getResultMap();
for (final Entry<ComponentJob, Analyzer... | [
"public",
"Map",
"<",
"ComponentJob",
",",
"AnalyzerResult",
">",
"getUnsafeResultElements",
"(",
")",
"{",
"if",
"(",
"_unsafeResultElements",
"==",
"null",
")",
"{",
"_unsafeResultElements",
"=",
"new",
"LinkedHashMap",
"<>",
"(",
")",
";",
"final",
"Map",
"... | Gets a map of unsafe result elements, ie. elements that cannot be saved
because serialization fails.
@return | [
"Gets",
"a",
"map",
"of",
"unsafe",
"result",
"elements",
"ie",
".",
"elements",
"that",
"cannot",
"be",
"saved",
"because",
"serialization",
"fails",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/result/save/AnalysisResultSaveHandler.java#L97-L111 |
26,326 | datacleaner/DataCleaner | api/src/main/java/org/datacleaner/api/UsageMeteringMessage.java | UsageMeteringMessage.escapeValueTo | private void escapeValueTo(final String field, final StringBuilder target) {
if (field == null) {
target.append(DETAILS_QUOTE_CHAR);
target.append(DETAILS_QUOTE_CHAR);
return;
}
target.append(DETAILS_QUOTE_CHAR);
if (field.indexOf(DETAILS_ESCAPE_CHAR) ... | java | private void escapeValueTo(final String field, final StringBuilder target) {
if (field == null) {
target.append(DETAILS_QUOTE_CHAR);
target.append(DETAILS_QUOTE_CHAR);
return;
}
target.append(DETAILS_QUOTE_CHAR);
if (field.indexOf(DETAILS_ESCAPE_CHAR) ... | [
"private",
"void",
"escapeValueTo",
"(",
"final",
"String",
"field",
",",
"final",
"StringBuilder",
"target",
")",
"{",
"if",
"(",
"field",
"==",
"null",
")",
"{",
"target",
".",
"append",
"(",
"DETAILS_QUOTE_CHAR",
")",
";",
"target",
".",
"append",
"(",
... | Escapes value for a CSV line and appends it to the 'target'. | [
"Escapes",
"value",
"for",
"a",
"CSV",
"line",
"and",
"appends",
"it",
"to",
"the",
"target",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/api/src/main/java/org/datacleaner/api/UsageMeteringMessage.java#L83-L103 |
26,327 | datacleaner/DataCleaner | components/basic-analyzers/src/main/java/org/datacleaner/beans/BooleanAnalyzerReducer.java | BooleanAnalyzerReducer.createMeasureDimensionValueCombinationCrosstab | public void createMeasureDimensionValueCombinationCrosstab(
final Map<ValueCombination<Number>, Number> valueCombinations,
final Crosstab<Number> valueCombinationCrosstab) {
if (CrosstabReducerHelper.findDimension(valueCombinationCrosstab, BooleanAnalyzer.DIMENSION_MEASURE)) {
... | java | public void createMeasureDimensionValueCombinationCrosstab(
final Map<ValueCombination<Number>, Number> valueCombinations,
final Crosstab<Number> valueCombinationCrosstab) {
if (CrosstabReducerHelper.findDimension(valueCombinationCrosstab, BooleanAnalyzer.DIMENSION_MEASURE)) {
... | [
"public",
"void",
"createMeasureDimensionValueCombinationCrosstab",
"(",
"final",
"Map",
"<",
"ValueCombination",
"<",
"Number",
">",
",",
"Number",
">",
"valueCombinations",
",",
"final",
"Crosstab",
"<",
"Number",
">",
"valueCombinationCrosstab",
")",
"{",
"if",
"... | Creates the measure dimension based on the sorted value combinations
@param valueCombinations
@param valueCombinationCrosstab | [
"Creates",
"the",
"measure",
"dimension",
"based",
"on",
"the",
"sorted",
"value",
"combinations"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/basic-analyzers/src/main/java/org/datacleaner/beans/BooleanAnalyzerReducer.java#L107-L154 |
26,328 | datacleaner/DataCleaner | components/basic-analyzers/src/main/java/org/datacleaner/beans/BooleanAnalyzerReducer.java | BooleanAnalyzerReducer.addValueCombinationsCrosstabDimension | public void addValueCombinationsCrosstabDimension(final Map<ValueCombination<Number>, Number> valueCombMapList,
final Crosstab<Number> partialCrosstab) {
final CrosstabNavigator<Number> nav = new CrosstabNavigator<>(partialCrosstab);
final CrosstabDimension columnDimension = partialCrosstab... | java | public void addValueCombinationsCrosstabDimension(final Map<ValueCombination<Number>, Number> valueCombMapList,
final Crosstab<Number> partialCrosstab) {
final CrosstabNavigator<Number> nav = new CrosstabNavigator<>(partialCrosstab);
final CrosstabDimension columnDimension = partialCrosstab... | [
"public",
"void",
"addValueCombinationsCrosstabDimension",
"(",
"final",
"Map",
"<",
"ValueCombination",
"<",
"Number",
">",
",",
"Number",
">",
"valueCombMapList",
",",
"final",
"Crosstab",
"<",
"Number",
">",
"partialCrosstab",
")",
"{",
"final",
"CrosstabNavigato... | Gather the sum of all possible value combinations of the partial
crosstabs
@param valueCombMapList
@param partialCrosstab | [
"Gather",
"the",
"sum",
"of",
"all",
"possible",
"value",
"combinations",
"of",
"the",
"partial",
"crosstabs"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/basic-analyzers/src/main/java/org/datacleaner/beans/BooleanAnalyzerReducer.java#L163-L197 |
26,329 | datacleaner/DataCleaner | desktop/api/src/main/java/org/datacleaner/widgets/properties/PropertyWidgetCollection.java | PropertyWidgetCollection.onConfigurationChanged | public void onConfigurationChanged() {
final Collection<PropertyWidget<?>> widgets = getWidgets();
if (logger.isDebugEnabled()) {
final StringBuilder sb = new StringBuilder();
sb.append("id=");
sb.append(System.identityHashCode(this));
sb.append(" - onCon... | java | public void onConfigurationChanged() {
final Collection<PropertyWidget<?>> widgets = getWidgets();
if (logger.isDebugEnabled()) {
final StringBuilder sb = new StringBuilder();
sb.append("id=");
sb.append(System.identityHashCode(this));
sb.append(" - onCon... | [
"public",
"void",
"onConfigurationChanged",
"(",
")",
"{",
"final",
"Collection",
"<",
"PropertyWidget",
"<",
"?",
">",
">",
"widgets",
"=",
"getWidgets",
"(",
")",
";",
"if",
"(",
"logger",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"final",
"StringBuilde... | Invoked whenever a configured property within this widget factory is
changed. | [
"Invoked",
"whenever",
"a",
"configured",
"property",
"within",
"this",
"widget",
"factory",
"is",
"changed",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/api/src/main/java/org/datacleaner/widgets/properties/PropertyWidgetCollection.java#L99-L126 |
26,330 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/util/DefaultEnumMatcher.java | DefaultEnumMatcher.normalize | protected Collection<String> normalize(String string, final boolean tokenize) {
if (string == null) {
return Collections.emptyList();
}
if (tokenize) {
final Collection<String> result = new LinkedHashSet<>();
result.addAll(normalize(string, false));
... | java | protected Collection<String> normalize(String string, final boolean tokenize) {
if (string == null) {
return Collections.emptyList();
}
if (tokenize) {
final Collection<String> result = new LinkedHashSet<>();
result.addAll(normalize(string, false));
... | [
"protected",
"Collection",
"<",
"String",
">",
"normalize",
"(",
"String",
"string",
",",
"final",
"boolean",
"tokenize",
")",
"{",
"if",
"(",
"string",
"==",
"null",
")",
"{",
"return",
"Collections",
".",
"emptyList",
"(",
")",
";",
"}",
"if",
"(",
"... | Normalizes the incoming string before doing matching
@param string
@param tokenize
@return | [
"Normalizes",
"the",
"incoming",
"string",
"before",
"doing",
"matching"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/util/DefaultEnumMatcher.java#L106-L138 |
26,331 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/result/ValueDistributionResultSwingRenderer.java | ValueDistributionResultSwingRenderer.getDistinctValueCount | private ValueFrequency getDistinctValueCount(final ValueCountingAnalyzerResult res) {
int distinctValueCounter = 0;
ValueFrequency valueCount = null;
if (res.getNullCount() > 0) {
distinctValueCounter++;
valueCount = new SingleValueFrequency(LabelUtils.NULL_LABEL, res.get... | java | private ValueFrequency getDistinctValueCount(final ValueCountingAnalyzerResult res) {
int distinctValueCounter = 0;
ValueFrequency valueCount = null;
if (res.getNullCount() > 0) {
distinctValueCounter++;
valueCount = new SingleValueFrequency(LabelUtils.NULL_LABEL, res.get... | [
"private",
"ValueFrequency",
"getDistinctValueCount",
"(",
"final",
"ValueCountingAnalyzerResult",
"res",
")",
"{",
"int",
"distinctValueCounter",
"=",
"0",
";",
"ValueFrequency",
"valueCount",
"=",
"null",
";",
"if",
"(",
"res",
".",
"getNullCount",
"(",
")",
">"... | Determines if a group result has just a single distinct value count. If
so, this value count is returned, or else null is returned.
@param res
@return | [
"Determines",
"if",
"a",
"group",
"result",
"has",
"just",
"a",
"single",
"distinct",
"value",
"count",
".",
"If",
"so",
"this",
"value",
"count",
"is",
"returned",
"or",
"else",
"null",
"is",
"returned",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/result/ValueDistributionResultSwingRenderer.java#L138-L175 |
26,332 | datacleaner/DataCleaner | desktop/api/src/main/java/org/datacleaner/widgets/ComboButton.java | ComboButton.getSelectedToggleButton | public JToggleButton getSelectedToggleButton() {
for (final AbstractButton button : _buttons) {
if (button instanceof JToggleButton) {
if (button.isSelected()) {
return (JToggleButton) button;
}
}
}
return null;
} | java | public JToggleButton getSelectedToggleButton() {
for (final AbstractButton button : _buttons) {
if (button instanceof JToggleButton) {
if (button.isSelected()) {
return (JToggleButton) button;
}
}
}
return null;
} | [
"public",
"JToggleButton",
"getSelectedToggleButton",
"(",
")",
"{",
"for",
"(",
"final",
"AbstractButton",
"button",
":",
"_buttons",
")",
"{",
"if",
"(",
"button",
"instanceof",
"JToggleButton",
")",
"{",
"if",
"(",
"button",
".",
"isSelected",
"(",
")",
"... | Gets the currently selected toggle button, if any.
@return | [
"Gets",
"the",
"currently",
"selected",
"toggle",
"button",
"if",
"any",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/api/src/main/java/org/datacleaner/widgets/ComboButton.java#L153-L162 |
26,333 | datacleaner/DataCleaner | desktop/api/src/main/java/org/datacleaner/widgets/ComboButton.java | ComboButton.main | public static void main(final String[] args) {
LookAndFeelManager.get().init();
final ComboButton comboButton1 = new ComboButton();
comboButton1.addButton("Foo!", IconUtils.ACTION_ADD_DARK, true);
comboButton1.addButton("Boo!", IconUtils.ACTION_REMOVE_DARK, true);
final ComboBu... | java | public static void main(final String[] args) {
LookAndFeelManager.get().init();
final ComboButton comboButton1 = new ComboButton();
comboButton1.addButton("Foo!", IconUtils.ACTION_ADD_DARK, true);
comboButton1.addButton("Boo!", IconUtils.ACTION_REMOVE_DARK, true);
final ComboBu... | [
"public",
"static",
"void",
"main",
"(",
"final",
"String",
"[",
"]",
"args",
")",
"{",
"LookAndFeelManager",
".",
"get",
"(",
")",
".",
"init",
"(",
")",
";",
"final",
"ComboButton",
"comboButton1",
"=",
"new",
"ComboButton",
"(",
")",
";",
"comboButton... | a simple test app | [
"a",
"simple",
"test",
"app"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/api/src/main/java/org/datacleaner/widgets/ComboButton.java#L182-L209 |
26,334 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/job/builder/AbstractComponentBuilder.java | AbstractComponentBuilder.setMetadataProperty | @Override
public final void setMetadataProperty(final String key, final String value) {
_metadataProperties.put(key, value);
} | java | @Override
public final void setMetadataProperty(final String key, final String value) {
_metadataProperties.put(key, value);
} | [
"@",
"Override",
"public",
"final",
"void",
"setMetadataProperty",
"(",
"final",
"String",
"key",
",",
"final",
"String",
"value",
")",
"{",
"_metadataProperties",
".",
"put",
"(",
"key",
",",
"value",
")",
";",
"}"
] | Sets a metadata property
@param key
@param value | [
"Sets",
"a",
"metadata",
"property"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/job/builder/AbstractComponentBuilder.java#L183-L186 |
26,335 | datacleaner/DataCleaner | engine/env/spark/src/main/java/org/datacleaner/spark/ApplicationDriver.java | ApplicationDriver.launch | public int launch(final String configurationHdfsPath, final String jobHdfsPath) throws Exception {
// create hadoop configuration directory
final File hadoopConfDir = createTemporaryHadoopConfDir();
final SparkLauncher sparkLauncher =
createSparkLauncher(hadoopConfDir, configura... | java | public int launch(final String configurationHdfsPath, final String jobHdfsPath) throws Exception {
// create hadoop configuration directory
final File hadoopConfDir = createTemporaryHadoopConfDir();
final SparkLauncher sparkLauncher =
createSparkLauncher(hadoopConfDir, configura... | [
"public",
"int",
"launch",
"(",
"final",
"String",
"configurationHdfsPath",
",",
"final",
"String",
"jobHdfsPath",
")",
"throws",
"Exception",
"{",
"// create hadoop configuration directory",
"final",
"File",
"hadoopConfDir",
"=",
"createTemporaryHadoopConfDir",
"(",
")",... | Launches and waits for the execution of a DataCleaner job on Spark.
@param configurationHdfsPath
configuration file path (on HDFS)
@param jobHdfsPath
job file path (on HDFS)
@return the exit code of the spark-submit process
@throws Exception | [
"Launches",
"and",
"waits",
"for",
"the",
"execution",
"of",
"a",
"DataCleaner",
"job",
"on",
"Spark",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/env/spark/src/main/java/org/datacleaner/spark/ApplicationDriver.java#L103-L111 |
26,336 | datacleaner/DataCleaner | engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java | DomConfigurationWriter.removeHadoopClusterServerInformation | public boolean removeHadoopClusterServerInformation(final String serverName) {
final Element serverInformationCatalogElement = getServerInformationCatalogElement();
final Element hadoopClustersElement =
getOrCreateChildElementByTagName(serverInformationCatalogElement, "hadoop-clusters");... | java | public boolean removeHadoopClusterServerInformation(final String serverName) {
final Element serverInformationCatalogElement = getServerInformationCatalogElement();
final Element hadoopClustersElement =
getOrCreateChildElementByTagName(serverInformationCatalogElement, "hadoop-clusters");... | [
"public",
"boolean",
"removeHadoopClusterServerInformation",
"(",
"final",
"String",
"serverName",
")",
"{",
"final",
"Element",
"serverInformationCatalogElement",
"=",
"getServerInformationCatalogElement",
"(",
")",
";",
"final",
"Element",
"hadoopClustersElement",
"=",
"g... | Removes a Hadoop cluster by its name, if it exists and is recognizeable by the externalizer.
@param serverName
@return true if a server information element was removed from the XML document. | [
"Removes",
"a",
"Hadoop",
"cluster",
"by",
"its",
"name",
"if",
"it",
"exists",
"and",
"is",
"recognizeable",
"by",
"the",
"externalizer",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java#L217-L222 |
26,337 | datacleaner/DataCleaner | engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java | DomConfigurationWriter.getDictionariesElement | public Element getDictionariesElement() {
final Element referenceDataCatalogElement = getReferenceDataCatalogElement();
final Element dictionariesElement =
getOrCreateChildElementByTagName(referenceDataCatalogElement, "dictionaries");
if (dictionariesElement == null) {
... | java | public Element getDictionariesElement() {
final Element referenceDataCatalogElement = getReferenceDataCatalogElement();
final Element dictionariesElement =
getOrCreateChildElementByTagName(referenceDataCatalogElement, "dictionaries");
if (dictionariesElement == null) {
... | [
"public",
"Element",
"getDictionariesElement",
"(",
")",
"{",
"final",
"Element",
"referenceDataCatalogElement",
"=",
"getReferenceDataCatalogElement",
"(",
")",
";",
"final",
"Element",
"dictionariesElement",
"=",
"getOrCreateChildElementByTagName",
"(",
"referenceDataCatalo... | Gets the XML element that represents the dictionaries
@return | [
"Gets",
"the",
"XML",
"element",
"that",
"represents",
"the",
"dictionaries"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java#L1046-L1055 |
26,338 | datacleaner/DataCleaner | engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java | DomConfigurationWriter.getSynonymCatalogsElement | public Element getSynonymCatalogsElement() {
final Element referenceDataCatalogElement = getReferenceDataCatalogElement();
final Element synonymCatalogsElement =
getOrCreateChildElementByTagName(referenceDataCatalogElement, "synonym-catalogs");
if (synonymCatalogsElement == null... | java | public Element getSynonymCatalogsElement() {
final Element referenceDataCatalogElement = getReferenceDataCatalogElement();
final Element synonymCatalogsElement =
getOrCreateChildElementByTagName(referenceDataCatalogElement, "synonym-catalogs");
if (synonymCatalogsElement == null... | [
"public",
"Element",
"getSynonymCatalogsElement",
"(",
")",
"{",
"final",
"Element",
"referenceDataCatalogElement",
"=",
"getReferenceDataCatalogElement",
"(",
")",
";",
"final",
"Element",
"synonymCatalogsElement",
"=",
"getOrCreateChildElementByTagName",
"(",
"referenceData... | Gets the XML element that represents the synonym catalogs
@return | [
"Gets",
"the",
"XML",
"element",
"that",
"represents",
"the",
"synonym",
"catalogs"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java#L1062-L1071 |
26,339 | datacleaner/DataCleaner | engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java | DomConfigurationWriter.getStringPatternsElement | public Element getStringPatternsElement() {
final Element referenceDataCatalogElement = getReferenceDataCatalogElement();
final Element stringPatternsElement =
getOrCreateChildElementByTagName(referenceDataCatalogElement, "string-patterns");
if (stringPatternsElement == null) {
... | java | public Element getStringPatternsElement() {
final Element referenceDataCatalogElement = getReferenceDataCatalogElement();
final Element stringPatternsElement =
getOrCreateChildElementByTagName(referenceDataCatalogElement, "string-patterns");
if (stringPatternsElement == null) {
... | [
"public",
"Element",
"getStringPatternsElement",
"(",
")",
"{",
"final",
"Element",
"referenceDataCatalogElement",
"=",
"getReferenceDataCatalogElement",
"(",
")",
";",
"final",
"Element",
"stringPatternsElement",
"=",
"getOrCreateChildElementByTagName",
"(",
"referenceDataCa... | Gets the XML element that represents the string patterns
@return | [
"Gets",
"the",
"XML",
"element",
"that",
"represents",
"the",
"string",
"patterns"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java#L1078-L1087 |
26,340 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/panels/fuse/CoalesceUnitPanel.java | CoalesceUnitPanel.setAvailableInputColumns | public void setAvailableInputColumns(final Collection<InputColumn<?>> inputColumns) {
final InputColumn<?>[] items = new InputColumn<?>[inputColumns.size() + 1];
int index = 1;
for (final InputColumn<?> inputColumn : inputColumns) {
items[index] = inputColumn;
index++;
... | java | public void setAvailableInputColumns(final Collection<InputColumn<?>> inputColumns) {
final InputColumn<?>[] items = new InputColumn<?>[inputColumns.size() + 1];
int index = 1;
for (final InputColumn<?> inputColumn : inputColumns) {
items[index] = inputColumn;
index++;
... | [
"public",
"void",
"setAvailableInputColumns",
"(",
"final",
"Collection",
"<",
"InputColumn",
"<",
"?",
">",
">",
"inputColumns",
")",
"{",
"final",
"InputColumn",
"<",
"?",
">",
"[",
"]",
"items",
"=",
"new",
"InputColumn",
"<",
"?",
">",
"[",
"inputColum... | Called by the parent widget to update the list of available columns
@param inputColumns | [
"Called",
"by",
"the",
"parent",
"widget",
"to",
"update",
"the",
"list",
"of",
"available",
"columns"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/panels/fuse/CoalesceUnitPanel.java#L109-L118 |
26,341 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/output/csv/CsvOutputWriterFactory.java | CsvOutputWriterFactory.getWriter | public static OutputWriter getWriter(final String filename, final List<InputColumn<?>> columns) {
final InputColumn<?>[] columnArray = columns.toArray(new InputColumn<?>[columns.size()]);
final String[] headers = new String[columnArray.length];
for (int i = 0; i < headers.length; i++) {
... | java | public static OutputWriter getWriter(final String filename, final List<InputColumn<?>> columns) {
final InputColumn<?>[] columnArray = columns.toArray(new InputColumn<?>[columns.size()]);
final String[] headers = new String[columnArray.length];
for (int i = 0; i < headers.length; i++) {
... | [
"public",
"static",
"OutputWriter",
"getWriter",
"(",
"final",
"String",
"filename",
",",
"final",
"List",
"<",
"InputColumn",
"<",
"?",
">",
">",
"columns",
")",
"{",
"final",
"InputColumn",
"<",
"?",
">",
"[",
"]",
"columnArray",
"=",
"columns",
".",
"... | Creates a CSV output writer with default configuration
@param filename
@param columns
@return | [
"Creates",
"a",
"CSV",
"output",
"writer",
"with",
"default",
"configuration"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/output/csv/CsvOutputWriterFactory.java#L47-L54 |
26,342 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/output/csv/CsvOutputWriterFactory.java | CsvOutputWriterFactory.getWriter | public static OutputWriter getWriter(final String filename, final String[] headers, final char separatorChar,
final char quoteChar, final char escapeChar, final boolean includeHeader, final InputColumn<?>... columns) {
return getWriter(new FileResource(filename), headers, FileHelper.DEFAULT_ENCODING... | java | public static OutputWriter getWriter(final String filename, final String[] headers, final char separatorChar,
final char quoteChar, final char escapeChar, final boolean includeHeader, final InputColumn<?>... columns) {
return getWriter(new FileResource(filename), headers, FileHelper.DEFAULT_ENCODING... | [
"public",
"static",
"OutputWriter",
"getWriter",
"(",
"final",
"String",
"filename",
",",
"final",
"String",
"[",
"]",
"headers",
",",
"final",
"char",
"separatorChar",
",",
"final",
"char",
"quoteChar",
",",
"final",
"char",
"escapeChar",
",",
"final",
"boole... | Creates a CSV output writer
@param filename
@param headers
@param separatorChar
@param quoteChar
@param escapeChar
@param includeHeader
@param columns
@return | [
"Creates",
"a",
"CSV",
"output",
"writer"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/output/csv/CsvOutputWriterFactory.java#L68-L72 |
26,343 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphMouseListener.java | JobGraphMouseListener.onComponentRightClicked | public void onComponentRightClicked(final ComponentBuilder componentBuilder, final MouseEvent me) {
final boolean isMultiStream = componentBuilder.getDescriptor().isMultiStreamComponent();
final JPopupMenu popup = new JPopupMenu();
final JMenuItem configureComponentMenuItem = new JMenuItem("Co... | java | public void onComponentRightClicked(final ComponentBuilder componentBuilder, final MouseEvent me) {
final boolean isMultiStream = componentBuilder.getDescriptor().isMultiStreamComponent();
final JPopupMenu popup = new JPopupMenu();
final JMenuItem configureComponentMenuItem = new JMenuItem("Co... | [
"public",
"void",
"onComponentRightClicked",
"(",
"final",
"ComponentBuilder",
"componentBuilder",
",",
"final",
"MouseEvent",
"me",
")",
"{",
"final",
"boolean",
"isMultiStream",
"=",
"componentBuilder",
".",
"getDescriptor",
"(",
")",
".",
"isMultiStreamComponent",
... | Invoked when a component is right-clicked
@param componentBuilder
@param me | [
"Invoked",
"when",
"a",
"component",
"is",
"right",
"-",
"clicked"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphMouseListener.java#L144-L186 |
26,344 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphMouseListener.java | JobGraphMouseListener.onCanvasRightClicked | public void onCanvasRightClicked(final MouseEvent me) {
_linkPainter.cancelLink();
final JPopupMenu popup = new JPopupMenu();
final Point point = me.getPoint();
final AnalysisJobBuilder analysisJobBuilder = _graphContext.getMainAnalysisJobBuilder();
final DataCleanerConfigurati... | java | public void onCanvasRightClicked(final MouseEvent me) {
_linkPainter.cancelLink();
final JPopupMenu popup = new JPopupMenu();
final Point point = me.getPoint();
final AnalysisJobBuilder analysisJobBuilder = _graphContext.getMainAnalysisJobBuilder();
final DataCleanerConfigurati... | [
"public",
"void",
"onCanvasRightClicked",
"(",
"final",
"MouseEvent",
"me",
")",
"{",
"_linkPainter",
".",
"cancelLink",
"(",
")",
";",
"final",
"JPopupMenu",
"popup",
"=",
"new",
"JPopupMenu",
"(",
")",
";",
"final",
"Point",
"point",
"=",
"me",
".",
"get... | Invoked when the canvas is right-clicked
@param me | [
"Invoked",
"when",
"the",
"canvas",
"is",
"right",
"-",
"clicked"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphMouseListener.java#L213-L246 |
26,345 | datacleaner/DataCleaner | desktop/api/src/main/java/org/datacleaner/widgets/table/DCTable.java | DCTable.copyToClipboard | public void copyToClipboard(final int rowIndex, final int colIndex, final int width, final int height) {
final StringBuilder sb = new StringBuilder();
if (rowIndex == 0 && colIndex == 0 && width == getColumnCount() && height == getRowCount()) {
for (int i = 0; i < width; i++) {
... | java | public void copyToClipboard(final int rowIndex, final int colIndex, final int width, final int height) {
final StringBuilder sb = new StringBuilder();
if (rowIndex == 0 && colIndex == 0 && width == getColumnCount() && height == getRowCount()) {
for (int i = 0; i < width; i++) {
... | [
"public",
"void",
"copyToClipboard",
"(",
"final",
"int",
"rowIndex",
",",
"final",
"int",
"colIndex",
",",
"final",
"int",
"width",
",",
"final",
"int",
"height",
")",
"{",
"final",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
... | Copies content from the table to the clipboard. Algorithm is a slight
rewrite of the article below.
@see <a href="http://www.copy--paste.org/copy-paste-jtables-excel.htm">http://www.copy--paste.org/copy-paste-jtables-excel.htm</a> | [
"Copies",
"content",
"from",
"the",
"table",
"to",
"the",
"clipboard",
".",
"Algorithm",
"is",
"a",
"slight",
"rewrite",
"of",
"the",
"article",
"below",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/api/src/main/java/org/datacleaner/widgets/table/DCTable.java#L210-L240 |
26,346 | datacleaner/DataCleaner | components/pattern-finder/src/main/java/org/datacleaner/beans/stringpattern/PatternFinder.java | PatternFinder.run | public void run(final R row, final String value, final int distinctCount) {
final List<Token> tokens;
try {
tokens = _tokenizer.tokenize(value);
} catch (final RuntimeException e) {
throw new IllegalStateException("Error occurred while tokenizing value: " + value, e);
... | java | public void run(final R row, final String value, final int distinctCount) {
final List<Token> tokens;
try {
tokens = _tokenizer.tokenize(value);
} catch (final RuntimeException e) {
throw new IllegalStateException("Error occurred while tokenizing value: " + value, e);
... | [
"public",
"void",
"run",
"(",
"final",
"R",
"row",
",",
"final",
"String",
"value",
",",
"final",
"int",
"distinctCount",
")",
"{",
"final",
"List",
"<",
"Token",
">",
"tokens",
";",
"try",
"{",
"tokens",
"=",
"_tokenizer",
".",
"tokenize",
"(",
"value... | This method should be invoked by the user of the PatternFinder. Invoke it
for each value in your dataset. Repeated values are handled correctly but
if available it is more efficient to handle only the distinct values and
their corresponding distinct counts.
@param row
the row containing the value
@param value
the stri... | [
"This",
"method",
"should",
"be",
"invoked",
"by",
"the",
"user",
"of",
"the",
"PatternFinder",
".",
"Invoke",
"it",
"for",
"each",
"value",
"in",
"your",
"dataset",
".",
"Repeated",
"values",
"are",
"handled",
"correctly",
"but",
"if",
"available",
"it",
... | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/pattern-finder/src/main/java/org/datacleaner/beans/stringpattern/PatternFinder.java#L71-L106 |
26,347 | datacleaner/DataCleaner | components/pattern-finder/src/main/java/org/datacleaner/beans/stringpattern/PatternFinder.java | PatternFinder.getPatternCode | private String getPatternCode(final List<Token> tokens) {
final StringBuilder sb = new StringBuilder();
sb.append(tokens.size());
for (final Token token : tokens) {
sb.append(token.getType().ordinal());
}
return sb.toString();
} | java | private String getPatternCode(final List<Token> tokens) {
final StringBuilder sb = new StringBuilder();
sb.append(tokens.size());
for (final Token token : tokens) {
sb.append(token.getType().ordinal());
}
return sb.toString();
} | [
"private",
"String",
"getPatternCode",
"(",
"final",
"List",
"<",
"Token",
">",
"tokens",
")",
"{",
"final",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"tokens",
".",
"size",
"(",
")",
")",
";",
"for",
... | Creates an almost unique String code for a list of tokens. This code is
used to improve search time when looking for potential matching patterns.
@param tokens
@return | [
"Creates",
"an",
"almost",
"unique",
"String",
"code",
"for",
"a",
"list",
"of",
"tokens",
".",
"This",
"code",
"is",
"used",
"to",
"improve",
"search",
"time",
"when",
"looking",
"for",
"potential",
"matching",
"patterns",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/pattern-finder/src/main/java/org/datacleaner/beans/stringpattern/PatternFinder.java#L138-L145 |
26,348 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/connection/DatastoreDescriptors.java | DatastoreDescriptors.getAvailableDatastoreDescriptors | public List<DatastoreDescriptor> getAvailableDatastoreDescriptors() {
final List<DatastoreDescriptor> availableDatabaseDescriptors = new ArrayList<>();
final List<DatastoreDescriptor> manualDatastoreDescriptors = getManualDatastoreDescriptors();
availableDatabaseDescriptors.addAll(manualDatasto... | java | public List<DatastoreDescriptor> getAvailableDatastoreDescriptors() {
final List<DatastoreDescriptor> availableDatabaseDescriptors = new ArrayList<>();
final List<DatastoreDescriptor> manualDatastoreDescriptors = getManualDatastoreDescriptors();
availableDatabaseDescriptors.addAll(manualDatasto... | [
"public",
"List",
"<",
"DatastoreDescriptor",
">",
"getAvailableDatastoreDescriptors",
"(",
")",
"{",
"final",
"List",
"<",
"DatastoreDescriptor",
">",
"availableDatabaseDescriptors",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"final",
"List",
"<",
"DatastoreDesc... | Returns the descriptors of datastore types available in DataCleaner. | [
"Returns",
"the",
"descriptors",
"of",
"datastore",
"types",
"available",
"in",
"DataCleaner",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/connection/DatastoreDescriptors.java#L168-L187 |
26,349 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/connection/DatastoreDescriptors.java | DatastoreDescriptors.getAvailableCloudBasedDatastoreDescriptors | public List<DatastoreDescriptor> getAvailableCloudBasedDatastoreDescriptors() {
final List<DatastoreDescriptor> availableCloudBasedDatabaseDescriptors = new ArrayList<>();
availableCloudBasedDatabaseDescriptors.add(SALESFORCE_DATASTORE_DESCRIPTOR);
availableCloudBasedDatabaseDescriptors.add(SUG... | java | public List<DatastoreDescriptor> getAvailableCloudBasedDatastoreDescriptors() {
final List<DatastoreDescriptor> availableCloudBasedDatabaseDescriptors = new ArrayList<>();
availableCloudBasedDatabaseDescriptors.add(SALESFORCE_DATASTORE_DESCRIPTOR);
availableCloudBasedDatabaseDescriptors.add(SUG... | [
"public",
"List",
"<",
"DatastoreDescriptor",
">",
"getAvailableCloudBasedDatastoreDescriptors",
"(",
")",
"{",
"final",
"List",
"<",
"DatastoreDescriptor",
">",
"availableCloudBasedDatabaseDescriptors",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"availableCloudBasedDa... | Returns the descriptors of cloud-based datastore types available in DataCleaner. | [
"Returns",
"the",
"descriptors",
"of",
"cloud",
"-",
"based",
"datastore",
"types",
"available",
"in",
"DataCleaner",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/connection/DatastoreDescriptors.java#L192-L198 |
26,350 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/connection/DatastoreDescriptors.java | DatastoreDescriptors.getAvailableDatabaseBasedDatastoreDescriptors | public List<DatastoreDescriptor> getAvailableDatabaseBasedDatastoreDescriptors() {
final List<DatastoreDescriptor> availableCloudBasedDatabaseDescriptors = new ArrayList<>();
availableCloudBasedDatabaseDescriptors.add(POSTGRESQL_DATASTORE_DESCRIPTOR);
availableCloudBasedDatabaseDescriptors.add(... | java | public List<DatastoreDescriptor> getAvailableDatabaseBasedDatastoreDescriptors() {
final List<DatastoreDescriptor> availableCloudBasedDatabaseDescriptors = new ArrayList<>();
availableCloudBasedDatabaseDescriptors.add(POSTGRESQL_DATASTORE_DESCRIPTOR);
availableCloudBasedDatabaseDescriptors.add(... | [
"public",
"List",
"<",
"DatastoreDescriptor",
">",
"getAvailableDatabaseBasedDatastoreDescriptors",
"(",
")",
"{",
"final",
"List",
"<",
"DatastoreDescriptor",
">",
"availableCloudBasedDatabaseDescriptors",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"availableCloudBase... | Returns the descriptors of database-based datastore types available in DataCleaner. | [
"Returns",
"the",
"descriptors",
"of",
"database",
"-",
"based",
"datastore",
"types",
"available",
"in",
"DataCleaner",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/connection/DatastoreDescriptors.java#L203-L219 |
26,351 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/properties/SingleColumnNamePropertyWidget.java | SingleColumnNamePropertyWidget.setTable | public void setTable(final Table table) {
if (table != _tableRef.get()) {
_tableRef.set(table);
if (table == null) {
_comboBox.setEmptyModel();
} else {
_comboBox.setModel(table);
}
}
} | java | public void setTable(final Table table) {
if (table != _tableRef.get()) {
_tableRef.set(table);
if (table == null) {
_comboBox.setEmptyModel();
} else {
_comboBox.setModel(table);
}
}
} | [
"public",
"void",
"setTable",
"(",
"final",
"Table",
"table",
")",
"{",
"if",
"(",
"table",
"!=",
"_tableRef",
".",
"get",
"(",
")",
")",
"{",
"_tableRef",
".",
"set",
"(",
"table",
")",
";",
"if",
"(",
"table",
"==",
"null",
")",
"{",
"_comboBox",... | Sets the table to use as a source for the available columns in the
combobox.
@param table | [
"Sets",
"the",
"table",
"to",
"use",
"as",
"a",
"source",
"for",
"the",
"available",
"columns",
"in",
"the",
"combobox",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/properties/SingleColumnNamePropertyWidget.java#L71-L81 |
26,352 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/panels/DCSplashPanel.java | DCSplashPanel.wrapContent | protected JScrollPane wrapContent(final JComponent panel) {
panel.setMaximumSize(new Dimension(WIDTH_CONTENT, Integer.MAX_VALUE));
panel.setAlignmentX(Component.LEFT_ALIGNMENT);
final DCPanel wrappingPanel = new DCPanel();
final BoxLayout layout = new BoxLayout(wrappingPanel, BoxLayout.... | java | protected JScrollPane wrapContent(final JComponent panel) {
panel.setMaximumSize(new Dimension(WIDTH_CONTENT, Integer.MAX_VALUE));
panel.setAlignmentX(Component.LEFT_ALIGNMENT);
final DCPanel wrappingPanel = new DCPanel();
final BoxLayout layout = new BoxLayout(wrappingPanel, BoxLayout.... | [
"protected",
"JScrollPane",
"wrapContent",
"(",
"final",
"JComponent",
"panel",
")",
"{",
"panel",
".",
"setMaximumSize",
"(",
"new",
"Dimension",
"(",
"WIDTH_CONTENT",
",",
"Integer",
".",
"MAX_VALUE",
")",
")",
";",
"panel",
".",
"setAlignmentX",
"(",
"Compo... | Wraps a content panel in a scroll pane and applies a maximum width to the
content to keep it nicely in place on the screen.
@param panel
@return | [
"Wraps",
"a",
"content",
"panel",
"in",
"a",
"scroll",
"pane",
"and",
"applies",
"a",
"maximum",
"width",
"to",
"the",
"content",
"to",
"keep",
"it",
"nicely",
"in",
"place",
"on",
"the",
"screen",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/panels/DCSplashPanel.java#L147-L158 |
26,353 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/Main.java | Main.initializeSystemProperties | protected static Map<String, String> initializeSystemProperties(final String[] args) {
final Map<String, String> result = new HashMap<>();
final Pattern pattern = Pattern.compile("-D(.+)=(.+)");
for (final String arg : args) {
final Matcher matcher = pattern.matcher(arg);
... | java | protected static Map<String, String> initializeSystemProperties(final String[] args) {
final Map<String, String> result = new HashMap<>();
final Pattern pattern = Pattern.compile("-D(.+)=(.+)");
for (final String arg : args) {
final Matcher matcher = pattern.matcher(arg);
... | [
"protected",
"static",
"Map",
"<",
"String",
",",
"String",
">",
"initializeSystemProperties",
"(",
"final",
"String",
"[",
"]",
"args",
")",
"{",
"final",
"Map",
"<",
"String",
",",
"String",
">",
"result",
"=",
"new",
"HashMap",
"<>",
"(",
")",
";",
... | Initializes system properties based on the arguments passed
@param args
@return | [
"Initializes",
"system",
"properties",
"based",
"on",
"the",
"arguments",
"passed"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/Main.java#L51-L64 |
26,354 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/Main.java | Main.initializeLogging | protected static boolean initializeLogging() {
try {
// initial logging config, used before anything else
{
final URL url = Main.class.getResource("log4j-initial.xml");
assert url != null;
DOMConfigurator.configure(url);
}
... | java | protected static boolean initializeLogging() {
try {
// initial logging config, used before anything else
{
final URL url = Main.class.getResource("log4j-initial.xml");
assert url != null;
DOMConfigurator.configure(url);
}
... | [
"protected",
"static",
"boolean",
"initializeLogging",
"(",
")",
"{",
"try",
"{",
"// initial logging config, used before anything else",
"{",
"final",
"URL",
"url",
"=",
"Main",
".",
"class",
".",
"getResource",
"(",
"\"log4j-initial.xml\"",
")",
";",
"assert",
"ur... | Initializes logging, specifically by looking for log4j.xml or
log4j.properties file in DataCleaner's home directory.
@return true if a logging configuration file was found, or false
otherwise | [
"Initializes",
"logging",
"specifically",
"by",
"looking",
"for",
"log4j",
".",
"xml",
"or",
"log4j",
".",
"properties",
"file",
"in",
"DataCleaner",
"s",
"home",
"directory",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/Main.java#L73-L112 |
26,355 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setContainer | public Packer setContainer(final Container cont) throws IllegalAccessException {
if (container != null) {
final Packer p = (Packer) clone();
container.setLayout(p);
}
container = cont;
cont.setLayout(this);
return this;
} | java | public Packer setContainer(final Container cont) throws IllegalAccessException {
if (container != null) {
final Packer p = (Packer) clone();
container.setLayout(p);
}
container = cont;
cont.setLayout(this);
return this;
} | [
"public",
"Packer",
"setContainer",
"(",
"final",
"Container",
"cont",
")",
"throws",
"IllegalAccessException",
"{",
"if",
"(",
"container",
"!=",
"null",
")",
"{",
"final",
"Packer",
"p",
"=",
"(",
"Packer",
")",
"clone",
"(",
")",
";",
"container",
".",
... | Set the designated container for objects packed by this instance.
@param cont
the Container to use to add the components to when .pack() or
.add() is invoked.
@exception IllegalAccessException
if container already set | [
"Set",
"the",
"designated",
"container",
"for",
"objects",
"packed",
"by",
"this",
"instance",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L146-L154 |
26,356 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.pack | public Packer pack(final Component cp) {
if (container != null) {
container.add(cp);
}
comp = cp;
gc = new GridBagConstraints();
setConstraints(comp, gc);
return this;
} | java | public Packer pack(final Component cp) {
if (container != null) {
container.add(cp);
}
comp = cp;
gc = new GridBagConstraints();
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"pack",
"(",
"final",
"Component",
"cp",
")",
"{",
"if",
"(",
"container",
"!=",
"null",
")",
"{",
"container",
".",
"add",
"(",
"cp",
")",
";",
"}",
"comp",
"=",
"cp",
";",
"gc",
"=",
"new",
"GridBagConstraints",
"(",
")",
";",... | Establishes a new set of constraints to layout the widget passed. The
created constraints are applied to the passed Component and if a
Container is known to this object, the component is added to the known
container.
@param cp
The component to layout. | [
"Establishes",
"a",
"new",
"set",
"of",
"constraints",
"to",
"layout",
"the",
"widget",
"passed",
".",
"The",
"created",
"constraints",
"are",
"applied",
"to",
"the",
"passed",
"Component",
"and",
"if",
"a",
"Container",
"is",
"known",
"to",
"this",
"object"... | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L179-L187 |
26,357 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setAnchorNorth | public Packer setAnchorNorth(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.NORTH;
} else {
gc.anchor &= ~GridBagConstraints.NORTH;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setAnchorNorth(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.NORTH;
} else {
gc.anchor &= ~GridBagConstraints.NORTH;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setAnchorNorth",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"anchor",
"=",
"GridBagConstraints",
".",
"NORTH",
";",
"}",
"else",
"{",
"gc",
".",
"anchor",
"&=",
"~",
"GridBagConst... | Add anchor=NORTH to the constraints for the current component if how ==
true remove it if false. | [
"Add",
"anchor",
"=",
"NORTH",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"remove",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L218-L226 |
26,358 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setAnchorSouth | public Packer setAnchorSouth(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.SOUTH;
} else {
gc.anchor &= ~GridBagConstraints.SOUTH;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setAnchorSouth(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.SOUTH;
} else {
gc.anchor &= ~GridBagConstraints.SOUTH;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setAnchorSouth",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"anchor",
"=",
"GridBagConstraints",
".",
"SOUTH",
";",
"}",
"else",
"{",
"gc",
".",
"anchor",
"&=",
"~",
"GridBagConst... | Add anchor=SOUTH to the constraints for the current component if how ==
true remove it if false. | [
"Add",
"anchor",
"=",
"SOUTH",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"remove",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L247-L255 |
26,359 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setAnchorEast | public Packer setAnchorEast(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.EAST;
} else {
gc.anchor &= ~GridBagConstraints.EAST;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setAnchorEast(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.EAST;
} else {
gc.anchor &= ~GridBagConstraints.EAST;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setAnchorEast",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"anchor",
"=",
"GridBagConstraints",
".",
"EAST",
";",
"}",
"else",
"{",
"gc",
".",
"anchor",
"&=",
"~",
"GridBagConstra... | Add anchor=EAST to the constraints for the current component if how ==
true remove it if false. | [
"Add",
"anchor",
"=",
"EAST",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"remove",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L276-L284 |
26,360 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setAnchorWest | public Packer setAnchorWest(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.WEST;
} else {
gc.anchor &= ~GridBagConstraints.WEST;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setAnchorWest(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.WEST;
} else {
gc.anchor &= ~GridBagConstraints.WEST;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setAnchorWest",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"anchor",
"=",
"GridBagConstraints",
".",
"WEST",
";",
"}",
"else",
"{",
"gc",
".",
"anchor",
"&=",
"~",
"GridBagConstra... | Add anchor=WEST to the constraints for the current component if how ==
true remove it if false. | [
"Add",
"anchor",
"=",
"WEST",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"remove",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L318-L326 |
26,361 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setAnchorNorthWest | public Packer setAnchorNorthWest(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.NORTHWEST;
} else {
gc.anchor &= ~GridBagConstraints.NORTHWEST;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setAnchorNorthWest(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.NORTHWEST;
} else {
gc.anchor &= ~GridBagConstraints.NORTHWEST;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setAnchorNorthWest",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"anchor",
"=",
"GridBagConstraints",
".",
"NORTHWEST",
";",
"}",
"else",
"{",
"gc",
".",
"anchor",
"&=",
"~",
"Grid... | Add anchor=NORTHWEST to the constraints for the current component if how
== true remove it if false. | [
"Add",
"anchor",
"=",
"NORTHWEST",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"remove",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L347-L355 |
26,362 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setAnchorSouthWest | public Packer setAnchorSouthWest(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.SOUTHWEST;
} else {
gc.anchor &= ~GridBagConstraints.SOUTHWEST;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setAnchorSouthWest(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.SOUTHWEST;
} else {
gc.anchor &= ~GridBagConstraints.SOUTHWEST;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setAnchorSouthWest",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"anchor",
"=",
"GridBagConstraints",
".",
"SOUTHWEST",
";",
"}",
"else",
"{",
"gc",
".",
"anchor",
"&=",
"~",
"Grid... | Add anchor=SOUTHWEST to the constraints for the current component if how
== true remove it if false. | [
"Add",
"anchor",
"=",
"SOUTHWEST",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"remove",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L376-L384 |
26,363 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setAnchorNorthEast | public Packer setAnchorNorthEast(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.NORTHEAST;
} else {
gc.anchor &= ~GridBagConstraints.NORTHEAST;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setAnchorNorthEast(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.NORTHEAST;
} else {
gc.anchor &= ~GridBagConstraints.NORTHEAST;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setAnchorNorthEast",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"anchor",
"=",
"GridBagConstraints",
".",
"NORTHEAST",
";",
"}",
"else",
"{",
"gc",
".",
"anchor",
"&=",
"~",
"Grid... | Add anchor=NORTHEAST to the constraints for the current component if how
== true remove it if false. | [
"Add",
"anchor",
"=",
"NORTHEAST",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"remove",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L405-L413 |
26,364 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setAnchorSouthEast | public Packer setAnchorSouthEast(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.SOUTHEAST;
} else {
gc.anchor &= ~GridBagConstraints.SOUTHEAST;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setAnchorSouthEast(final boolean how) {
if (how == true) {
gc.anchor = GridBagConstraints.SOUTHEAST;
} else {
gc.anchor &= ~GridBagConstraints.SOUTHEAST;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setAnchorSouthEast",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"anchor",
"=",
"GridBagConstraints",
".",
"SOUTHEAST",
";",
"}",
"else",
"{",
"gc",
".",
"anchor",
"&=",
"~",
"Grid... | Add anchor=SOUTHEAST to the constraints for the current component if how
== true remove it if false. | [
"Add",
"anchor",
"=",
"SOUTHEAST",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"remove",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L434-L442 |
26,365 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setXLeftRelative | public Packer setXLeftRelative(final boolean how) {
if (how == true) {
gc.gridx = GridBagConstraints.RELATIVE;
} else {
gc.gridx = 0;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setXLeftRelative(final boolean how) {
if (how == true) {
gc.gridx = GridBagConstraints.RELATIVE;
} else {
gc.gridx = 0;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setXLeftRelative",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"gridx",
"=",
"GridBagConstraints",
".",
"RELATIVE",
";",
"}",
"else",
"{",
"gc",
".",
"gridx",
"=",
"0",
";",
"}",... | Add gridx=RELATIVE to the constraints for the current component if how ==
true 0 it if false. | [
"Add",
"gridx",
"=",
"RELATIVE",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"0",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L463-L471 |
26,366 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setYTopRelative | public Packer setYTopRelative(final boolean how) {
if (how == true) {
gc.gridy = GridBagConstraints.RELATIVE;
} else {
gc.gridy = 0;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setYTopRelative(final boolean how) {
if (how == true) {
gc.gridy = GridBagConstraints.RELATIVE;
} else {
gc.gridy = 0;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setYTopRelative",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"gridy",
"=",
"GridBagConstraints",
".",
"RELATIVE",
";",
"}",
"else",
"{",
"gc",
".",
"gridy",
"=",
"0",
";",
"}",
... | Add gridy=RELATIVE to the constraints for the current component if how ==
true 0 it if false. | [
"Add",
"gridy",
"=",
"RELATIVE",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"0",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L492-L500 |
26,367 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setFillX | public Packer setFillX(final boolean how) {
if (how == true) {
gc.fill = GridBagConstraints.HORIZONTAL;
gc.weightx = 1;
} else {
gc.weightx = 0;
gc.fill = 0;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setFillX(final boolean how) {
if (how == true) {
gc.fill = GridBagConstraints.HORIZONTAL;
gc.weightx = 1;
} else {
gc.weightx = 0;
gc.fill = 0;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setFillX",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"fill",
"=",
"GridBagConstraints",
".",
"HORIZONTAL",
";",
"gc",
".",
"weightx",
"=",
"1",
";",
"}",
"else",
"{",
"gc",
"... | Add fill=HORIZONTAL, weightx=1 to the constraints for the current
component if how == true. fill=0, weightx=0 if how is false. | [
"Add",
"fill",
"=",
"HORIZONTAL",
"weightx",
"=",
"1",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
".",
"fill",
"=",
"0",
"weightx",
"=",
"0",
"if",
"how",
"is",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L673-L683 |
26,368 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.fillx | public Packer fillx(final double wtx) {
gc.fill = GridBagConstraints.HORIZONTAL;
gc.weightx = wtx;
setConstraints(comp, gc);
return this;
} | java | public Packer fillx(final double wtx) {
gc.fill = GridBagConstraints.HORIZONTAL;
gc.weightx = wtx;
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"fillx",
"(",
"final",
"double",
"wtx",
")",
"{",
"gc",
".",
"fill",
"=",
"GridBagConstraints",
".",
"HORIZONTAL",
";",
"gc",
".",
"weightx",
"=",
"wtx",
";",
"setConstraints",
"(",
"comp",
",",
"gc",
")",
";",
"return",
"this",
";"... | Add fill=HORIZONTAL, weightx=wtx to the constraints for the current
component. | [
"Add",
"fill",
"=",
"HORIZONTAL",
"weightx",
"=",
"wtx",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L689-L694 |
26,369 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setFillY | public Packer setFillY(final boolean how) {
if (how == true) {
gc.fill = GridBagConstraints.VERTICAL;
gc.weighty = 1;
} else {
gc.weighty = 0;
gc.fill = 0;
}
setConstraints(comp, gc);
return this;
} | java | public Packer setFillY(final boolean how) {
if (how == true) {
gc.fill = GridBagConstraints.VERTICAL;
gc.weighty = 1;
} else {
gc.weighty = 0;
gc.fill = 0;
}
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setFillY",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"fill",
"=",
"GridBagConstraints",
".",
"VERTICAL",
";",
"gc",
".",
"weighty",
"=",
"1",
";",
"}",
"else",
"{",
"gc",
"."... | Add fill=VERITCAL to the constraints for the current component if how ==
true 1 it if false. | [
"Add",
"fill",
"=",
"VERITCAL",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"1",
"it",
"if",
"false",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L715-L725 |
26,370 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.filly | public Packer filly(final double wty) {
gc.fill = GridBagConstraints.VERTICAL;
gc.weighty = wty;
setConstraints(comp, gc);
return this;
} | java | public Packer filly(final double wty) {
gc.fill = GridBagConstraints.VERTICAL;
gc.weighty = wty;
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"filly",
"(",
"final",
"double",
"wty",
")",
"{",
"gc",
".",
"fill",
"=",
"GridBagConstraints",
".",
"VERTICAL",
";",
"gc",
".",
"weighty",
"=",
"wty",
";",
"setConstraints",
"(",
"comp",
",",
"gc",
")",
";",
"return",
"this",
";",
... | Add fill=VERTICAL, weighty=wty to the constraints for the current
component. | [
"Add",
"fill",
"=",
"VERTICAL",
"weighty",
"=",
"wty",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L731-L736 |
26,371 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setFillBoth | public Packer setFillBoth(final boolean how) {
if (how == true) {
gc.fill = GridBagConstraints.BOTH;
gc.weightx = 1;
gc.weighty = 1;
} else {
gc.weightx = 0;
gc.weighty = 0;
gc.fill = 0;
}
setConstraints(comp, gc);
... | java | public Packer setFillBoth(final boolean how) {
if (how == true) {
gc.fill = GridBagConstraints.BOTH;
gc.weightx = 1;
gc.weighty = 1;
} else {
gc.weightx = 0;
gc.weighty = 0;
gc.fill = 0;
}
setConstraints(comp, gc);
... | [
"public",
"Packer",
"setFillBoth",
"(",
"final",
"boolean",
"how",
")",
"{",
"if",
"(",
"how",
"==",
"true",
")",
"{",
"gc",
".",
"fill",
"=",
"GridBagConstraints",
".",
"BOTH",
";",
"gc",
".",
"weightx",
"=",
"1",
";",
"gc",
".",
"weighty",
"=",
"... | Add fill=BOTH, weightx=1, weighty=1 to the constraints for the current
component if how == true, fill=0, weightx=0, weighty=0 if it is false. | [
"Add",
"fill",
"=",
"BOTH",
"weightx",
"=",
"1",
"weighty",
"=",
"1",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"if",
"how",
"==",
"true",
"fill",
"=",
"0",
"weightx",
"=",
"0",
"weighty",
"=",
"0",
"if",
"it",
"is",
"false",
... | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L757-L769 |
26,372 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.fillboth | public Packer fillboth(final double wtx, final double wty) {
gc.fill = GridBagConstraints.BOTH;
gc.weightx = wtx;
gc.weighty = wty;
setConstraints(comp, gc);
return this;
} | java | public Packer fillboth(final double wtx, final double wty) {
gc.fill = GridBagConstraints.BOTH;
gc.weightx = wtx;
gc.weighty = wty;
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"fillboth",
"(",
"final",
"double",
"wtx",
",",
"final",
"double",
"wty",
")",
"{",
"gc",
".",
"fill",
"=",
"GridBagConstraints",
".",
"BOTH",
";",
"gc",
".",
"weightx",
"=",
"wtx",
";",
"gc",
".",
"weighty",
"=",
"wty",
";",
"set... | Add fill=BOTH, weighty=1, weightx=1 to the constraints for the current
component. | [
"Add",
"fill",
"=",
"BOTH",
"weighty",
"=",
"1",
"weightx",
"=",
"1",
"to",
"the",
"constraints",
"for",
"the",
"current",
"component",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L775-L781 |
26,373 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setInsetTop | public Packer setInsetTop(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0);
}
gc.insets = new Insets(val, i.left, i.bottom, i.right);
setConstraints(comp, gc);
return this;
} | java | public Packer setInsetTop(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0);
}
gc.insets = new Insets(val, i.left, i.bottom, i.right);
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setInsetTop",
"(",
"final",
"int",
"val",
")",
"{",
"Insets",
"i",
"=",
"gc",
".",
"insets",
";",
"if",
"(",
"i",
"==",
"null",
")",
"{",
"i",
"=",
"new",
"Insets",
"(",
"0",
",",
"0",
",",
"0",
",",
"0",
")",
";",
"}",
... | sets top Insets on the constraints for the current component to the value
specified. | [
"sets",
"top",
"Insets",
"on",
"the",
"constraints",
"for",
"the",
"current",
"component",
"to",
"the",
"value",
"specified",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L815-L823 |
26,374 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setInsetBottom | public Packer setInsetBottom(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0);
}
gc.insets = new Insets(i.top, i.left, val, i.right);
setConstraints(comp, gc);
return this;
} | java | public Packer setInsetBottom(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0);
}
gc.insets = new Insets(i.top, i.left, val, i.right);
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setInsetBottom",
"(",
"final",
"int",
"val",
")",
"{",
"Insets",
"i",
"=",
"gc",
".",
"insets",
";",
"if",
"(",
"i",
"==",
"null",
")",
"{",
"i",
"=",
"new",
"Insets",
"(",
"0",
",",
"0",
",",
"0",
",",
"0",
")",
";",
"}"... | sets bottom Insets on the constraints for the current component to the
value specified. | [
"sets",
"bottom",
"Insets",
"on",
"the",
"constraints",
"for",
"the",
"current",
"component",
"to",
"the",
"value",
"specified",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L833-L841 |
26,375 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setInsetLeft | public Packer setInsetLeft(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0);
}
gc.insets = new Insets(i.top, val, i.bottom, i.right);
setConstraints(comp, gc);
return this;
} | java | public Packer setInsetLeft(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0);
}
gc.insets = new Insets(i.top, val, i.bottom, i.right);
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setInsetLeft",
"(",
"final",
"int",
"val",
")",
"{",
"Insets",
"i",
"=",
"gc",
".",
"insets",
";",
"if",
"(",
"i",
"==",
"null",
")",
"{",
"i",
"=",
"new",
"Insets",
"(",
"0",
",",
"0",
",",
"0",
",",
"0",
")",
";",
"}",
... | sets left Insets on the constraints for the current component to the
value specified. | [
"sets",
"left",
"Insets",
"on",
"the",
"constraints",
"for",
"the",
"current",
"component",
"to",
"the",
"value",
"specified",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L851-L859 |
26,376 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java | Packer.setInsetRight | public Packer setInsetRight(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0);
}
gc.insets = new Insets(i.top, i.left, i.bottom, val);
setConstraints(comp, gc);
return this;
} | java | public Packer setInsetRight(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0);
}
gc.insets = new Insets(i.top, i.left, i.bottom, val);
setConstraints(comp, gc);
return this;
} | [
"public",
"Packer",
"setInsetRight",
"(",
"final",
"int",
"val",
")",
"{",
"Insets",
"i",
"=",
"gc",
".",
"insets",
";",
"if",
"(",
"i",
"==",
"null",
")",
"{",
"i",
"=",
"new",
"Insets",
"(",
"0",
",",
"0",
",",
"0",
",",
"0",
")",
";",
"}",... | sets right Insets on the constraints for the current component to the
value specified. | [
"sets",
"right",
"Insets",
"on",
"the",
"constraints",
"for",
"the",
"current",
"component",
"to",
"the",
"value",
"specified",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/tabs/Packer.java#L869-L877 |
26,377 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/util/SecurityUtils.java | SecurityUtils.removeSshCertificateChecks | @Deprecated
public static void removeSshCertificateChecks(final HttpClient httpClient) throws IllegalStateException {
try {
// prepare a SSL context which doesn't validate certificates
final SSLContext sslContext = SSLContext.getInstance("SSL");
final TrustManager trustMa... | java | @Deprecated
public static void removeSshCertificateChecks(final HttpClient httpClient) throws IllegalStateException {
try {
// prepare a SSL context which doesn't validate certificates
final SSLContext sslContext = SSLContext.getInstance("SSL");
final TrustManager trustMa... | [
"@",
"Deprecated",
"public",
"static",
"void",
"removeSshCertificateChecks",
"(",
"final",
"HttpClient",
"httpClient",
")",
"throws",
"IllegalStateException",
"{",
"try",
"{",
"// prepare a SSL context which doesn't validate certificates",
"final",
"SSLContext",
"sslContext",
... | Removes the certificate checks of HTTPS traffic on a HTTP client. Use
with caution!
@param httpClient
@throws IllegalStateException
@{@link Deprecated} use {@link #createUnsafeSSLConnectionSocketFactory()}
in conjunction with {@link HttpClients#custom()} instead. | [
"Removes",
"the",
"certificate",
"checks",
"of",
"HTTPS",
"traffic",
"on",
"a",
"HTTP",
"client",
".",
"Use",
"with",
"caution!"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/util/SecurityUtils.java#L73-L93 |
26,378 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/job/AnalyzerJobHelper.java | AnalyzerJobHelper.getAnalyzerJob | public AnalyzerJob getAnalyzerJob(final String descriptorName, final String analyzerName,
final String analyzerInputName) {
List<AnalyzerJob> candidates = new ArrayList<>(_jobs);
// filter analyzers of the corresponding type
candidates = CollectionUtils2.refineCandidates(candidates,... | java | public AnalyzerJob getAnalyzerJob(final String descriptorName, final String analyzerName,
final String analyzerInputName) {
List<AnalyzerJob> candidates = new ArrayList<>(_jobs);
// filter analyzers of the corresponding type
candidates = CollectionUtils2.refineCandidates(candidates,... | [
"public",
"AnalyzerJob",
"getAnalyzerJob",
"(",
"final",
"String",
"descriptorName",
",",
"final",
"String",
"analyzerName",
",",
"final",
"String",
"analyzerInputName",
")",
"{",
"List",
"<",
"AnalyzerJob",
">",
"candidates",
"=",
"new",
"ArrayList",
"<>",
"(",
... | Gets the "best candidate" analyzer job based on search criteria offered
in parameters.
@param descriptorName
@param analyzerName
@param analyzerInputName
@return | [
"Gets",
"the",
"best",
"candidate",
"analyzer",
"job",
"based",
"on",
"search",
"criteria",
"offered",
"in",
"parameters",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/job/AnalyzerJobHelper.java#L121-L159 |
26,379 | datacleaner/DataCleaner | engine/utils/src/main/java/org/datacleaner/util/StringUtils.java | StringUtils.isSingleWord | public static boolean isSingleWord(String value) {
if (value == null) {
return false;
}
value = value.trim();
if (value.isEmpty()) {
return false;
}
return !SINGLE_WORD_PATTERN.matcher(value).matches();
} | java | public static boolean isSingleWord(String value) {
if (value == null) {
return false;
}
value = value.trim();
if (value.isEmpty()) {
return false;
}
return !SINGLE_WORD_PATTERN.matcher(value).matches();
} | [
"public",
"static",
"boolean",
"isSingleWord",
"(",
"String",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"return",
"false",
";",
"}",
"value",
"=",
"value",
".",
"trim",
"(",
")",
";",
"if",
"(",
"value",
".",
"isEmpty",
"(",
")... | Determines if a String represents a single word. A single word is defined
as a non-null string containing no word boundaries after trimming.
@param value
@return | [
"Determines",
"if",
"a",
"String",
"represents",
"a",
"single",
"word",
".",
"A",
"single",
"word",
"is",
"defined",
"as",
"a",
"non",
"-",
"null",
"string",
"containing",
"no",
"word",
"boundaries",
"after",
"trimming",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/utils/src/main/java/org/datacleaner/util/StringUtils.java#L173-L182 |
26,380 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/configuration/SourceColumnMapping.java | SourceColumnMapping.autoMap | public void autoMap(final Datastore datastore) {
setDatastore(datastore);
try (DatastoreConnection con = datastore.openConnection()) {
final SchemaNavigator schemaNavigator = con.getSchemaNavigator();
for (final Entry<String, Column> entry : _map.entrySet()) {
if ... | java | public void autoMap(final Datastore datastore) {
setDatastore(datastore);
try (DatastoreConnection con = datastore.openConnection()) {
final SchemaNavigator schemaNavigator = con.getSchemaNavigator();
for (final Entry<String, Column> entry : _map.entrySet()) {
if ... | [
"public",
"void",
"autoMap",
"(",
"final",
"Datastore",
"datastore",
")",
"{",
"setDatastore",
"(",
"datastore",
")",
";",
"try",
"(",
"DatastoreConnection",
"con",
"=",
"datastore",
".",
"openConnection",
"(",
")",
")",
"{",
"final",
"SchemaNavigator",
"schem... | Automatically maps all unmapped paths by looking them up in a datastore.
@param schemaNavigator | [
"Automatically",
"maps",
"all",
"unmapped",
"paths",
"by",
"looking",
"them",
"up",
"in",
"a",
"datastore",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/configuration/SourceColumnMapping.java#L74-L86 |
26,381 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphLinkPainter.java | JobGraphLinkPainter.endLink | public boolean endLink(final Object endVertex, final MouseEvent mouseEvent) {
logger.debug("endLink({})", endVertex);
boolean result = false;
if (_startVertex != null && endVertex != null) {
if (mouseEvent.getButton() == MouseEvent.BUTTON1) {
final boolean created = c... | java | public boolean endLink(final Object endVertex, final MouseEvent mouseEvent) {
logger.debug("endLink({})", endVertex);
boolean result = false;
if (_startVertex != null && endVertex != null) {
if (mouseEvent.getButton() == MouseEvent.BUTTON1) {
final boolean created = c... | [
"public",
"boolean",
"endLink",
"(",
"final",
"Object",
"endVertex",
",",
"final",
"MouseEvent",
"mouseEvent",
")",
"{",
"logger",
".",
"debug",
"(",
"\"endLink({})\"",
",",
"endVertex",
")",
";",
"boolean",
"result",
"=",
"false",
";",
"if",
"(",
"_startVer... | If startVertex is non-null this method will attempt to end the
link-painting at the given endVertex
@return true if a link drawing was ended or false if it wasn't started | [
"If",
"startVertex",
"is",
"non",
"-",
"null",
"this",
"method",
"will",
"attempt",
"to",
"end",
"the",
"link",
"-",
"painting",
"at",
"the",
"given",
"endVertex"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphLinkPainter.java#L188-L202 |
26,382 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphLinkPainter.java | JobGraphLinkPainter.scopeUpdatePermitted | private boolean scopeUpdatePermitted(final AnalysisJobBuilder sourceAnalysisJobBuilder,
final ComponentBuilder componentBuilder) {
if (sourceAnalysisJobBuilder != componentBuilder.getAnalysisJobBuilder()) {
if (componentBuilder.getInput().length > 0 || componentBuilder.getComponentRequir... | java | private boolean scopeUpdatePermitted(final AnalysisJobBuilder sourceAnalysisJobBuilder,
final ComponentBuilder componentBuilder) {
if (sourceAnalysisJobBuilder != componentBuilder.getAnalysisJobBuilder()) {
if (componentBuilder.getInput().length > 0 || componentBuilder.getComponentRequir... | [
"private",
"boolean",
"scopeUpdatePermitted",
"(",
"final",
"AnalysisJobBuilder",
"sourceAnalysisJobBuilder",
",",
"final",
"ComponentBuilder",
"componentBuilder",
")",
"{",
"if",
"(",
"sourceAnalysisJobBuilder",
"!=",
"componentBuilder",
".",
"getAnalysisJobBuilder",
"(",
... | This will check if components are in a different scope, and ask the user
for permission to change the scope of the target component
@return true if permitted or irrelevant, false if user refused a
necessary scope change. | [
"This",
"will",
"check",
"if",
"components",
"are",
"in",
"a",
"different",
"scope",
"and",
"ask",
"the",
"user",
"for",
"permission",
"to",
"change",
"the",
"scope",
"of",
"the",
"target",
"component"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/widgets/visualization/JobGraphLinkPainter.java#L344-L362 |
26,383 | datacleaner/DataCleaner | desktop/api/src/main/java/org/datacleaner/util/WidgetUtils.java | WidgetUtils.colorBetween | public static Color colorBetween(final Color c1, final Color c2) {
final int red = (c1.getRed() + c2.getRed()) / 2;
final int green = (c1.getGreen() + c2.getGreen()) / 2;
final int blue = (c1.getBlue() + c2.getBlue()) / 2;
return new Color(red, green, blue);
} | java | public static Color colorBetween(final Color c1, final Color c2) {
final int red = (c1.getRed() + c2.getRed()) / 2;
final int green = (c1.getGreen() + c2.getGreen()) / 2;
final int blue = (c1.getBlue() + c2.getBlue()) / 2;
return new Color(red, green, blue);
} | [
"public",
"static",
"Color",
"colorBetween",
"(",
"final",
"Color",
"c1",
",",
"final",
"Color",
"c2",
")",
"{",
"final",
"int",
"red",
"=",
"(",
"c1",
".",
"getRed",
"(",
")",
"+",
"c2",
".",
"getRed",
"(",
")",
")",
"/",
"2",
";",
"final",
"int... | Creates a color that is in between two colors, in terms of RGB balance.
@param c1
@param c2
@return | [
"Creates",
"a",
"color",
"that",
"is",
"in",
"between",
"two",
"colors",
"in",
"terms",
"of",
"RGB",
"balance",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/api/src/main/java/org/datacleaner/util/WidgetUtils.java#L516-L521 |
26,384 | datacleaner/DataCleaner | desktop/api/src/main/java/org/datacleaner/util/WidgetUtils.java | WidgetUtils.decorateWithShadow | public static DCPanel decorateWithShadow(final JComponent comp, final boolean outline, final int margin) {
final DCPanel panel = new DCPanel();
panel.setLayout(new BorderLayout());
Border border = BORDER_SHADOW;
if (outline) {
border = new CompoundBorder(border, BORDER_THIN);... | java | public static DCPanel decorateWithShadow(final JComponent comp, final boolean outline, final int margin) {
final DCPanel panel = new DCPanel();
panel.setLayout(new BorderLayout());
Border border = BORDER_SHADOW;
if (outline) {
border = new CompoundBorder(border, BORDER_THIN);... | [
"public",
"static",
"DCPanel",
"decorateWithShadow",
"(",
"final",
"JComponent",
"comp",
",",
"final",
"boolean",
"outline",
",",
"final",
"int",
"margin",
")",
"{",
"final",
"DCPanel",
"panel",
"=",
"new",
"DCPanel",
"(",
")",
";",
"panel",
".",
"setLayout"... | Decorates a JComponent with a nice shadow border. Since not all JComponents handle opacity correctly, they will
be wrapped inside a DCPanel, which actually has the border.
@param comp
@param outline
@param margin
@return | [
"Decorates",
"a",
"JComponent",
"with",
"a",
"nice",
"shadow",
"border",
".",
"Since",
"not",
"all",
"JComponents",
"handle",
"opacity",
"correctly",
"they",
"will",
"be",
"wrapped",
"inside",
"a",
"DCPanel",
"which",
"actually",
"has",
"the",
"border",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/api/src/main/java/org/datacleaner/util/WidgetUtils.java#L615-L628 |
26,385 | datacleaner/DataCleaner | desktop/api/src/main/java/org/datacleaner/util/WidgetUtils.java | WidgetUtils.findCompatibleFont | public static Font findCompatibleFont(final String text, final Font fallbackFont) {
final String[] searchFonts = new String[] { Font.SANS_SERIF, Font.SERIF, "Verdana", "Arial Unicode MS",
"MS UI Gothic", "MS Mincho", "MS Gothic", "Osaka" };
for (final String fontName : searchFonts) {
... | java | public static Font findCompatibleFont(final String text, final Font fallbackFont) {
final String[] searchFonts = new String[] { Font.SANS_SERIF, Font.SERIF, "Verdana", "Arial Unicode MS",
"MS UI Gothic", "MS Mincho", "MS Gothic", "Osaka" };
for (final String fontName : searchFonts) {
... | [
"public",
"static",
"Font",
"findCompatibleFont",
"(",
"final",
"String",
"text",
",",
"final",
"Font",
"fallbackFont",
")",
"{",
"final",
"String",
"[",
"]",
"searchFonts",
"=",
"new",
"String",
"[",
"]",
"{",
"Font",
".",
"SANS_SERIF",
",",
"Font",
".",
... | Finds a font that is capable of displaying the provided text.
@param text the text to display.
@param fallbackFont the font to fall back to in case no capable font was found
@return a font suitable for displaying the text | [
"Finds",
"a",
"font",
"that",
"is",
"capable",
"of",
"displaying",
"the",
"provided",
"text",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/api/src/main/java/org/datacleaner/util/WidgetUtils.java#L637-L655 |
26,386 | datacleaner/DataCleaner | engine/env/cluster/src/main/java/org/datacleaner/cluster/DistributedAnalysisRunner.java | DistributedAnalysisRunner.findOrderByColumn | private InputColumn<?> findOrderByColumn(final AnalysisJobBuilder jobBuilder) {
final Table sourceTable = jobBuilder.getSourceTables().get(0);
// preferred strategy: Use the primary key
final List<Column> primaryKeys = sourceTable.getPrimaryKeys();
if (primaryKeys.size() == 1) {
... | java | private InputColumn<?> findOrderByColumn(final AnalysisJobBuilder jobBuilder) {
final Table sourceTable = jobBuilder.getSourceTables().get(0);
// preferred strategy: Use the primary key
final List<Column> primaryKeys = sourceTable.getPrimaryKeys();
if (primaryKeys.size() == 1) {
... | [
"private",
"InputColumn",
"<",
"?",
">",
"findOrderByColumn",
"(",
"final",
"AnalysisJobBuilder",
"jobBuilder",
")",
"{",
"final",
"Table",
"sourceTable",
"=",
"jobBuilder",
".",
"getSourceTables",
"(",
")",
".",
"get",
"(",
"0",
")",
";",
"// preferred strategy... | Finds a source column which is appropriate for an ORDER BY clause in the
generated paginated queries
@param jobBuilder
@return | [
"Finds",
"a",
"source",
"column",
"which",
"is",
"appropriate",
"for",
"an",
"ORDER",
"BY",
"clause",
"in",
"the",
"generated",
"paginated",
"queries"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/env/cluster/src/main/java/org/datacleaner/cluster/DistributedAnalysisRunner.java#L276-L325 |
26,387 | datacleaner/DataCleaner | components/html-rendering/src/main/java/org/datacleaner/result/renderer/TableBodyElement.java | TableBodyElement.getCellValue | protected String getCellValue(final HtmlRenderingContext context, final int row, final int col,
final Object value) {
final String stringValue = LabelUtils.getValueLabel(value);
return context.escapeHtml(stringValue);
} | java | protected String getCellValue(final HtmlRenderingContext context, final int row, final int col,
final Object value) {
final String stringValue = LabelUtils.getValueLabel(value);
return context.escapeHtml(stringValue);
} | [
"protected",
"String",
"getCellValue",
"(",
"final",
"HtmlRenderingContext",
"context",
",",
"final",
"int",
"row",
",",
"final",
"int",
"col",
",",
"final",
"Object",
"value",
")",
"{",
"final",
"String",
"stringValue",
"=",
"LabelUtils",
".",
"getValueLabel",
... | Overrideable method for defining a cell's literal HTML value in the table
@param context
@param row
@param col
@param value
@return | [
"Overrideable",
"method",
"for",
"defining",
"a",
"cell",
"s",
"literal",
"HTML",
"value",
"in",
"the",
"table"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/components/html-rendering/src/main/java/org/datacleaner/result/renderer/TableBodyElement.java#L151-L155 |
26,388 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/actions/OpenAnalysisJobActionListener.java | OpenAnalysisJobActionListener.openAnalysisJob | public Injector openAnalysisJob(final FileObject file) {
final JaxbJobReader reader = new JaxbJobReader(_configuration);
try {
final AnalysisJobBuilder ajb = reader.create(file);
return openAnalysisJob(file, ajb);
} catch (final NoSuchComponentException e) {
... | java | public Injector openAnalysisJob(final FileObject file) {
final JaxbJobReader reader = new JaxbJobReader(_configuration);
try {
final AnalysisJobBuilder ajb = reader.create(file);
return openAnalysisJob(file, ajb);
} catch (final NoSuchComponentException e) {
... | [
"public",
"Injector",
"openAnalysisJob",
"(",
"final",
"FileObject",
"file",
")",
"{",
"final",
"JaxbJobReader",
"reader",
"=",
"new",
"JaxbJobReader",
"(",
"_configuration",
")",
";",
"try",
"{",
"final",
"AnalysisJobBuilder",
"ajb",
"=",
"reader",
".",
"create... | Opens a job file
@param file
@return | [
"Opens",
"a",
"job",
"file"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/actions/OpenAnalysisJobActionListener.java#L189-L250 |
26,389 | datacleaner/DataCleaner | desktop/ui/src/main/java/org/datacleaner/actions/OpenAnalysisJobActionListener.java | OpenAnalysisJobActionListener.openAnalysisJob | public Injector openAnalysisJob(final FileObject fileObject, final AnalysisJobBuilder ajb) {
final File file = VFSUtils.toFile(fileObject);
if (file != null) {
_userPreferences.setAnalysisJobDirectory(file.getParentFile());
_userPreferences.addRecentJobFile(fileObject);
... | java | public Injector openAnalysisJob(final FileObject fileObject, final AnalysisJobBuilder ajb) {
final File file = VFSUtils.toFile(fileObject);
if (file != null) {
_userPreferences.setAnalysisJobDirectory(file.getParentFile());
_userPreferences.addRecentJobFile(fileObject);
... | [
"public",
"Injector",
"openAnalysisJob",
"(",
"final",
"FileObject",
"fileObject",
",",
"final",
"AnalysisJobBuilder",
"ajb",
")",
"{",
"final",
"File",
"file",
"=",
"VFSUtils",
".",
"toFile",
"(",
"fileObject",
")",
";",
"if",
"(",
"file",
"!=",
"null",
")"... | Opens a job builder
@param fileObject
@param ajb
@return | [
"Opens",
"a",
"job",
"builder"
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/desktop/ui/src/main/java/org/datacleaner/actions/OpenAnalysisJobActionListener.java#L259-L273 |
26,390 | datacleaner/DataCleaner | engine/core/src/main/java/org/datacleaner/util/VFSUtils.java | VFSUtils.getFileSystemManager | public static FileSystemManager getFileSystemManager() {
try {
final FileSystemManager manager = VFS.getManager();
if (manager.getBaseFile() == null) {
// if no base file exists, set the working directory to base
// dir.
((DefaultFileSystem... | java | public static FileSystemManager getFileSystemManager() {
try {
final FileSystemManager manager = VFS.getManager();
if (manager.getBaseFile() == null) {
// if no base file exists, set the working directory to base
// dir.
((DefaultFileSystem... | [
"public",
"static",
"FileSystemManager",
"getFileSystemManager",
"(",
")",
"{",
"try",
"{",
"final",
"FileSystemManager",
"manager",
"=",
"VFS",
".",
"getManager",
"(",
")",
";",
"if",
"(",
"manager",
".",
"getBaseFile",
"(",
")",
"==",
"null",
")",
"{",
"... | Gets the file system manager to use in typical scenarios.
@return | [
"Gets",
"the",
"file",
"system",
"manager",
"to",
"use",
"in",
"typical",
"scenarios",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/core/src/main/java/org/datacleaner/util/VFSUtils.java#L44-L56 |
26,391 | datacleaner/DataCleaner | engine/xml-config/src/main/java/org/datacleaner/configuration/JaxbConfigurationReader.java | JaxbConfigurationReader.createCustomElement | private <E> E createCustomElement(final CustomElementType customElementType, final Class<E> expectedClazz,
final DataCleanerConfiguration configuration, final boolean initialize) {
final InjectionManager injectionManager =
configuration.getEnvironment().getInjectionManagerFactory().g... | java | private <E> E createCustomElement(final CustomElementType customElementType, final Class<E> expectedClazz,
final DataCleanerConfiguration configuration, final boolean initialize) {
final InjectionManager injectionManager =
configuration.getEnvironment().getInjectionManagerFactory().g... | [
"private",
"<",
"E",
">",
"E",
"createCustomElement",
"(",
"final",
"CustomElementType",
"customElementType",
",",
"final",
"Class",
"<",
"E",
">",
"expectedClazz",
",",
"final",
"DataCleanerConfiguration",
"configuration",
",",
"final",
"boolean",
"initialize",
")"... | Creates a custom component based on an element which specified just a class name and an optional set of
properties.
@param <E>
@param customElementType the JAXB custom element type
@param expectedClazz an expected class or interface that the component should honor
@param configuration the DataCleaner configuration (ma... | [
"Creates",
"a",
"custom",
"component",
"based",
"on",
"an",
"element",
"which",
"specified",
"just",
"a",
"class",
"name",
"and",
"an",
"optional",
"set",
"of",
"properties",
"."
] | 9aa01fdac3560cef51c55df3cb2ac5c690b57639 | https://github.com/datacleaner/DataCleaner/blob/9aa01fdac3560cef51c55df3cb2ac5c690b57639/engine/xml-config/src/main/java/org/datacleaner/configuration/JaxbConfigurationReader.java#L1563-L1568 |
26,392 | spring-projects/spring-loaded | springloaded/src/main/java/org/springsource/loaded/RTH.java | RTH.collapse | public static Object[] collapse(String aString, int anInt) {
return new Object[] { aString, Integer.valueOf(anInt) };
} | java | public static Object[] collapse(String aString, int anInt) {
return new Object[] { aString, Integer.valueOf(anInt) };
} | [
"public",
"static",
"Object",
"[",
"]",
"collapse",
"(",
"String",
"aString",
",",
"int",
"anInt",
")",
"{",
"return",
"new",
"Object",
"[",
"]",
"{",
"aString",
",",
"Integer",
".",
"valueOf",
"(",
"anInt",
")",
"}",
";",
"}"
] | Collapse a String and int into an array
@param aString some string
@param anInt some int
@return the collapsed array | [
"Collapse",
"a",
"String",
"and",
"int",
"into",
"an",
"array"
] | 59b32f957a05c6d9f149148158053605e2a6205a | https://github.com/spring-projects/spring-loaded/blob/59b32f957a05c6d9f149148158053605e2a6205a/springloaded/src/main/java/org/springsource/loaded/RTH.java#L40-L42 |
26,393 | spring-projects/spring-loaded | springloaded/src/main/java/org/springsource/loaded/ri/ReloadedTypeInvoker.java | ReloadedTypeInvoker.createJavaMethod | @Override
public Method createJavaMethod() {
Class<?> clazz = rtype.getClazz();
String name = methodMember.getName();
String methodDescriptor = methodMember.getDescriptor();
ClassLoader classLoader = rtype.getTypeRegistry().getClassLoader();
try {
Class<?>[] params = Utils.toParamClasses(methodDescriptor... | java | @Override
public Method createJavaMethod() {
Class<?> clazz = rtype.getClazz();
String name = methodMember.getName();
String methodDescriptor = methodMember.getDescriptor();
ClassLoader classLoader = rtype.getTypeRegistry().getClassLoader();
try {
Class<?>[] params = Utils.toParamClasses(methodDescriptor... | [
"@",
"Override",
"public",
"Method",
"createJavaMethod",
"(",
")",
"{",
"Class",
"<",
"?",
">",
"clazz",
"=",
"rtype",
".",
"getClazz",
"(",
")",
";",
"String",
"name",
"=",
"methodMember",
".",
"getName",
"(",
")",
";",
"String",
"methodDescriptor",
"="... | Create a 'mock' Java Method which is dependent on ReflectiveInterceptor to catch calls to invoke. | [
"Create",
"a",
"mock",
"Java",
"Method",
"which",
"is",
"dependent",
"on",
"ReflectiveInterceptor",
"to",
"catch",
"calls",
"to",
"invoke",
"."
] | 59b32f957a05c6d9f149148158053605e2a6205a | https://github.com/spring-projects/spring-loaded/blob/59b32f957a05c6d9f149148158053605e2a6205a/springloaded/src/main/java/org/springsource/loaded/ri/ReloadedTypeInvoker.java#L61-L79 |
26,394 | spring-projects/spring-loaded | springloaded/src/main/java/org/springsource/loaded/ISMgr.java | ISMgr.setValue | public void setValue(ReloadableType rtype, Object instance, Object value, String name)
throws IllegalAccessException {
// System.err.println(">setValue(rtype=" + rtype + ",instance=" + instance + ",value=" + value + ",name=" + name + ")");
// Look up through our reloadable hierarchy to find it
FieldMember fi... | java | public void setValue(ReloadableType rtype, Object instance, Object value, String name)
throws IllegalAccessException {
// System.err.println(">setValue(rtype=" + rtype + ",instance=" + instance + ",value=" + value + ",name=" + name + ")");
// Look up through our reloadable hierarchy to find it
FieldMember fi... | [
"public",
"void",
"setValue",
"(",
"ReloadableType",
"rtype",
",",
"Object",
"instance",
",",
"Object",
"value",
",",
"String",
"name",
")",
"throws",
"IllegalAccessException",
"{",
"//\t\tSystem.err.println(\">setValue(rtype=\" + rtype + \",instance=\" + instance + \",value=\"... | Set the value of a field.
@param rtype the reloadabletype
@param instance the instance upon which to set the field
@param value the value to put into the field
@param name the name of the field
@throws IllegalAccessException if there is a problem setting the field value | [
"Set",
"the",
"value",
"of",
"a",
"field",
"."
] | 59b32f957a05c6d9f149148158053605e2a6205a | https://github.com/spring-projects/spring-loaded/blob/59b32f957a05c6d9f149148158053605e2a6205a/springloaded/src/main/java/org/springsource/loaded/ISMgr.java#L168-L201 |
26,395 | spring-projects/spring-loaded | springloaded/src/main/java/org/springsource/loaded/ri/GetMethodsLookup.java | GetMethodsLookup.collectAll | private void collectAll(MethodProvider methodProvider, Map<String, Invoker> found) {
// We do this in inverse order as in 'GetMethodLookup'. This is because GetMethodLookup
// is lazy and wants to stop when a method is found, but here we instead collect
// everything bottom up and 'overwrite' earlier results so t... | java | private void collectAll(MethodProvider methodProvider, Map<String, Invoker> found) {
// We do this in inverse order as in 'GetMethodLookup'. This is because GetMethodLookup
// is lazy and wants to stop when a method is found, but here we instead collect
// everything bottom up and 'overwrite' earlier results so t... | [
"private",
"void",
"collectAll",
"(",
"MethodProvider",
"methodProvider",
",",
"Map",
"<",
"String",
",",
"Invoker",
">",
"found",
")",
"{",
"// We do this in inverse order as in 'GetMethodLookup'. This is because GetMethodLookup",
"// is lazy and wants to stop when a method is fou... | Collect all public methods from methodProvider and its supertypes into the 'found' hasmap, indexed by
"name+descriptor". | [
"Collect",
"all",
"public",
"methods",
"from",
"methodProvider",
"and",
"its",
"supertypes",
"into",
"the",
"found",
"hasmap",
"indexed",
"by",
"name",
"+",
"descriptor",
"."
] | 59b32f957a05c6d9f149148158053605e2a6205a | https://github.com/spring-projects/spring-loaded/blob/59b32f957a05c6d9f149148158053605e2a6205a/springloaded/src/main/java/org/springsource/loaded/ri/GetMethodsLookup.java#L40-L65 |
26,396 | spring-projects/spring-loaded | springloaded/src/main/java/org/springsource/loaded/SystemClassReflectionRewriter.java | SystemClassReflectionGenerator.generateJLObjectStream_hasStaticInitializer | public static void generateJLObjectStream_hasStaticInitializer(
ClassWriter cw, String classname) {
FieldVisitor fv = cw.visitField(ACC_PUBLIC + ACC_STATIC, jloObjectStream_hasInitializerMethod,
"Ljava/lang/reflect/Method;", null, null);
fv.visitEnd();
MethodVisitor mv = cw.visitMethod(ACC_PRIVATE + ACC_S... | java | public static void generateJLObjectStream_hasStaticInitializer(
ClassWriter cw, String classname) {
FieldVisitor fv = cw.visitField(ACC_PUBLIC + ACC_STATIC, jloObjectStream_hasInitializerMethod,
"Ljava/lang/reflect/Method;", null, null);
fv.visitEnd();
MethodVisitor mv = cw.visitMethod(ACC_PRIVATE + ACC_S... | [
"public",
"static",
"void",
"generateJLObjectStream_hasStaticInitializer",
"(",
"ClassWriter",
"cw",
",",
"String",
"classname",
")",
"{",
"FieldVisitor",
"fv",
"=",
"cw",
".",
"visitField",
"(",
"ACC_PUBLIC",
"+",
"ACC_STATIC",
",",
"jloObjectStream_hasInitializerMetho... | Create a method that can be used to intercept the calls to hasStaticInitializer made in the ObjectStreamClass.
The method will ask SpringLoaded whether the type has a static initializer. SpringLoaded will be able to answer
if it is a reloadable type. If it is not a reloadable type then springloaded will throw an except... | [
"Create",
"a",
"method",
"that",
"can",
"be",
"used",
"to",
"intercept",
"the",
"calls",
"to",
"hasStaticInitializer",
"made",
"in",
"the",
"ObjectStreamClass",
".",
"The",
"method",
"will",
"ask",
"SpringLoaded",
"whether",
"the",
"type",
"has",
"a",
"static"... | 59b32f957a05c6d9f149148158053605e2a6205a | https://github.com/spring-projects/spring-loaded/blob/59b32f957a05c6d9f149148158053605e2a6205a/springloaded/src/main/java/org/springsource/loaded/SystemClassReflectionRewriter.java#L679-L715 |
26,397 | spring-projects/spring-loaded | springloaded/src/main/java/org/springsource/loaded/MethodInvokerRewriter.java | MethodInvokerRewriter.checkNotTheSame | @SuppressWarnings("unused")
private static void checkNotTheSame(byte[] bs, byte[] bytes) {
if (bs.length == bytes.length) {
System.out.println("same length!");
boolean same = true;
for (int i = 0; i < bs.length; i++) {
if (bs[i] != bytes[i]) {
same = false;
break;
}
}
if (same) {
... | java | @SuppressWarnings("unused")
private static void checkNotTheSame(byte[] bs, byte[] bytes) {
if (bs.length == bytes.length) {
System.out.println("same length!");
boolean same = true;
for (int i = 0; i < bs.length; i++) {
if (bs[i] != bytes[i]) {
same = false;
break;
}
}
if (same) {
... | [
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"private",
"static",
"void",
"checkNotTheSame",
"(",
"byte",
"[",
"]",
"bs",
",",
"byte",
"[",
"]",
"bytes",
")",
"{",
"if",
"(",
"bs",
".",
"length",
"==",
"bytes",
".",
"length",
")",
"{",
"System",
... | method useful when debugging | [
"method",
"useful",
"when",
"debugging"
] | 59b32f957a05c6d9f149148158053605e2a6205a | https://github.com/spring-projects/spring-loaded/blob/59b32f957a05c6d9f149148158053605e2a6205a/springloaded/src/main/java/org/springsource/loaded/MethodInvokerRewriter.java#L415-L436 |
26,398 | spring-projects/spring-loaded | springloaded/src/main/java/org/springsource/loaded/agent/SpringLoadedPreProcessor.java | SpringLoadedPreProcessor.ensurePreparedForInjection | private void ensurePreparedForInjection() {
if (!prepared) {
try {
Class<ReflectiveInterceptor> clazz = ReflectiveInterceptor.class;
method_jlcgdfs = clazz.getDeclaredMethod("jlClassGetDeclaredFields", Class.class);
method_jlcgdf = clazz.getDeclaredMethod("jlClassGetDeclaredField", Class.class, String.... | java | private void ensurePreparedForInjection() {
if (!prepared) {
try {
Class<ReflectiveInterceptor> clazz = ReflectiveInterceptor.class;
method_jlcgdfs = clazz.getDeclaredMethod("jlClassGetDeclaredFields", Class.class);
method_jlcgdf = clazz.getDeclaredMethod("jlClassGetDeclaredField", Class.class, String.... | [
"private",
"void",
"ensurePreparedForInjection",
"(",
")",
"{",
"if",
"(",
"!",
"prepared",
")",
"{",
"try",
"{",
"Class",
"<",
"ReflectiveInterceptor",
">",
"clazz",
"=",
"ReflectiveInterceptor",
".",
"class",
";",
"method_jlcgdfs",
"=",
"clazz",
".",
"getDec... | Cache the Method objects that will be injected. | [
"Cache",
"the",
"Method",
"objects",
"that",
"will",
"be",
"injected",
"."
] | 59b32f957a05c6d9f149148158053605e2a6205a | https://github.com/spring-projects/spring-loaded/blob/59b32f957a05c6d9f149148158053605e2a6205a/springloaded/src/main/java/org/springsource/loaded/agent/SpringLoadedPreProcessor.java#L548-L579 |
26,399 | spring-projects/spring-loaded | springloaded/src/main/java/org/springsource/loaded/agent/FileSystemWatcher.java | FileSystemWatcher.ensureWatchThreadRunning | private void ensureWatchThreadRunning() {
if (!threadRunning) {
thread = new Thread(watchThread);
thread.setDaemon(true);
thread.start();
watchThread.setThread(thread);
watchThread.updateName();
threadRunning = true;
}
} | java | private void ensureWatchThreadRunning() {
if (!threadRunning) {
thread = new Thread(watchThread);
thread.setDaemon(true);
thread.start();
watchThread.setThread(thread);
watchThread.updateName();
threadRunning = true;
}
} | [
"private",
"void",
"ensureWatchThreadRunning",
"(",
")",
"{",
"if",
"(",
"!",
"threadRunning",
")",
"{",
"thread",
"=",
"new",
"Thread",
"(",
"watchThread",
")",
";",
"thread",
".",
"setDaemon",
"(",
"true",
")",
";",
"thread",
".",
"start",
"(",
")",
... | Start the thread if it isn't already started. | [
"Start",
"the",
"thread",
"if",
"it",
"isn",
"t",
"already",
"started",
"."
] | 59b32f957a05c6d9f149148158053605e2a6205a | https://github.com/spring-projects/spring-loaded/blob/59b32f957a05c6d9f149148158053605e2a6205a/springloaded/src/main/java/org/springsource/loaded/agent/FileSystemWatcher.java#L57-L66 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.