id stringlengths 24 24 | repo stringlengths 7 59 | path stringlengths 11 234 | func_name stringlengths 3 140 | url stringlengths 102 339 | split stringclasses 3
values | language stringclasses 1
value | docstring stringlengths 1 34k | code stringlengths 63 466k | text stringlengths 101 467k | token_count int32 22 125k | doc_chars int32 1 34k | code_chars int32 63 466k | license_basis stringclasses 1
value | source stringclasses 1
value | added stringdate 2026-12-05 00:00:00 2026-12-05 00:00:00 | record_sha256 stringlengths 64 64 | license stringclasses 18
values | license_class stringclasses 4
values | license_source stringlengths 45 101 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da8bf785777e308e6aa7dc8e | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/Check.java | Check.stateIsTrue | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/Check.java#L3308-L3313 | train | java | Ensures that a given state is {@code true}.
@param expression
an expression that must be {@code true} to indicate a valid state
@param description
will be used in the error message to describe why the arguments caused an invalid state
@throws IllegalStateOfArgumentException
if the given arguments caused an invalid sta... | @Throws(IllegalStateOfArgumentException.class)
public static void stateIsTrue(final boolean expression, @Nonnull final String description) {
if (!expression) {
throw new IllegalStateOfArgumentException(description);
}
} | Ensures that a given state is {@code true}.
@param expression
an expression that must be {@code true} to indicate a valid state
@param description
will be used in the error message to describe why the arguments caused an invalid state
@throws IllegalStateOfArgumentException
if the given arguments caused an invalid sta... | 112 | 322 | 228 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5e619074167f4932976386147f2c68b4d116d6ccf055707028e8a51d51600a77 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
76e62accbd35d8c72df8fc06 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/Check.java | Check.stateIsTrue | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/Check.java#L3327-L3333 | train | java | Ensures that a given state is {@code true}
@param expression
an expression that must be {@code true} to indicate a valid state
@param descriptionTemplate
format string template that explains why the state is invalid
@param descriptionTemplateArgs
format string template arguments to explain why the state is invalid
@th... | @Throws(IllegalStateOfArgumentException.class)
public static void stateIsTrue(final boolean expression, @Nonnull final String descriptionTemplate,
final Object... descriptionTemplateArgs) {
if (!expression) {
throw new IllegalStateOfArgumentException(descriptionTemplate, descriptionTemplateArgs);
}
} | Ensures that a given state is {@code true}
@param expression
an expression that must be {@code true} to indicate a valid state
@param descriptionTemplate
format string template that explains why the state is invalid
@param descriptionTemplateArgs
format string template arguments to explain why the state is invalid
@th... | 137 | 403 | 313 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 19eb58741a77dc2649da29f25f7e3a7ea721aba38ab66499125a5a407ca7cc42 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
c1196544a5ff6f929b4d2c5d | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.contains | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L110-L116 | train | java | Ensures that an element {@code needle} is contained in a collection {@code haystack}.
<p>
This is in particular useful if you want to check whether an enum value is contained in an {@code EnumSet}. The
check is implemented using {@link java.util.Collection#contains(Object)}.
<p>
The condition must evaluate to {@code ... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalNotContainedArgumentException.class })
public static <T extends Object> void contains(final boolean condition, @Nonnull final Collection<T> haystack, @Nonnull final T needle) {
if (condition) {
Check.contains(haystack, needle);
}
} | Ensures that an element {@code needle} is contained in a collection {@code haystack}.
<p>
This is in particular useful if you want to check whether an enum value is contained in an {@code EnumSet}. The
check is implemented using {@link java.util.Collection#contains(Object)}.
<p>
The condition must evaluate to {@code ... | 249 | 869 | 312 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9c83580bde7560acccd7a7ba98ce19167a8b0b969e96fb4d8824fe322d0ca952 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
eacd5f1e28c662285018bb92 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.hasAnnotation | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L691-L701 | train | java | Ensures that a passed class has an annotation of a specific type
@param condition
condition must be {@code true}^ so that the check will be performed
@param clazz
the class that must have a required annotation
@param annotation
the type of annotation that is required on the class
@throws IllegalMissingAnnotationExcep... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalMissingAnnotationException.class })
public static void hasAnnotation(final boolean condition, @Nonnull final Class<?> clazz,
@Nonnull final Class<? extends Annotation> annotation) {
Check.notNull(clazz, "clazz");
Check.notNull(annotation, "... | Ensures that a passed class has an annotation of a specific type
@param condition
condition must be {@code true}^ so that the check will be performed
@param clazz
the class that must have a required annotation
@param annotation
the type of annotation that is required on the class
@throws IllegalMissingAnnotationExcep... | 161 | 385 | 403 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d3966e8c69d5daa19d2660a575bcec1d484ebe8ee3f31c0d84d0338ef8f4264e | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
ebac98704516842ff09bbf95 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.isNull | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L795-L800 | train | java | Ensures that a given argument is {@code null}.
Normally, the usage of {@code null} arguments is disregarded by the authors of quality-check. Still, there are
certain circumstances where null is required, e.g. the primary key of an entity before it is written to the
database for the first time. In such cases it is ok t... | @Throws(IllegalNotNullArgumentException.class)
public static void isNull(final boolean condition, @Nullable final Object reference, @Nullable final String name) {
if (condition) {
Check.isNull(reference, name);
}
} | Ensures that a given argument is {@code null}.
Normally, the usage of {@code null} arguments is disregarded by the authors of quality-check. Still, there are
certain circumstances where null is required, e.g. the primary key of an entity before it is written to the
database for the first time. In such cases it is ok t... | 208 | 733 | 223 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 309fe35fd072323c57993c0156c854fad4830050dcf3a39debbd41bbb62ae596 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
b97d038428ed5c1798bebe7b | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.isNumber | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L812-L818 | train | java | Ensures that a String argument is a number.
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
value which must be a number
@throws IllegalNumberArgumentException
if the given argument {@code value} is not a number | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalNumberArgumentException.class })
public static void isNumber(final boolean condition, @Nonnull final String value) {
if (condition) {
Check.isNumber(value);
}
} | Ensures that a String argument is a number.
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
value which must be a number
@throws IllegalNumberArgumentException
if the given argument {@code value} is not a number
@ArgumentsChecked
@Throws({ IllegalNullArgumentExceptio... | 109 | 262 | 241 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 70ae48b8a286a13e9d762046bdeff92345bbf11f3d89b99d986cd4baf7597fd6 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
718c62cf6ffdb4c9149f77eb | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.isNumber | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L835-L841 | train | java | Ensures that a String argument is a number. This overload supports all subclasses of {@code Number}. The number
is first converted to a BigInteger
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
value which must be a number
@param type
requested return value type, must... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalNumberArgumentException.class })
public static <T extends Number> void isNumber(final boolean condition, @Nonnull final String value, @Nonnull final Class<T> type) {
if (condition) {
Check.isNumber(value, type);
}
} | Ensures that a String argument is a number. This overload supports all subclasses of {@code Number}. The number
is first converted to a BigInteger
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
value which must be a number
@param type
requested return value type, must... | 183 | 528 | 296 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 77f3757b8ba1a433b8c49a5965664c8b1122e815809bdb257514183e001d8e97 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
f860dd1e52a6a82b6edd569e | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.isNumeric | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L910-L916 | train | java | Ensures that a readable sequence of {@code char} values is numeric. Numeric arguments consist only of the
characters 0-9 and may start with 0 (compared to number arguments, which must be valid numbers - think of a bank
account number).
<p>
We recommend to use the overloaded method {@link Check#isNumeric(CharSequence, ... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalNumberArgumentException.class })
public static <T extends CharSequence> void isNumeric(final boolean condition, @Nonnull final T value) {
if (condition) {
Check.isNumeric(value);
}
} | Ensures that a readable sequence of {@code char} values is numeric. Numeric arguments consist only of the
characters 0-9 and may start with 0 (compared to number arguments, which must be valid numbers - think of a bank
account number).
<p>
We recommend to use the overloaded method {@link Check#isNumeric(CharSequence, ... | 201 | 670 | 263 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d27a7c414ed2808a5605364eb652f4b2c87af554663b15487a37eee1876969e9 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
4223f590bb540780ea3ca056 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.isNumeric | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L933-L939 | train | java | Ensures that a readable sequence of {@code char} values is numeric. Numeric arguments consist only of the
characters 0-9 and may start with 0 (compared to number arguments, which must be valid numbers - think of a bank
account number).
@param condition
condition must be {@code true}^ so that the check will be performe... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalNumericArgumentException.class })
public static <T extends CharSequence> void isNumeric(final boolean condition, @Nonnull final T value, @Nullable final String name) {
if (condition) {
Check.isNumeric(value, name);
}
} | Ensures that a readable sequence of {@code char} values is numeric. Numeric arguments consist only of the
characters 0-9 and may start with 0 (compared to number arguments, which must be valid numbers - think of a bank
account number).
@param condition
condition must be {@code true}^ so that the check will be performe... | 185 | 543 | 299 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 45f0b04cc2e5026478e8082f3fbc6a7945fe09d7e14a3448d45b4a2d17c9c260 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
cbc70bbbae657d8db1562a9a | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.lesserThan | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L985-L995 | train | java | Ensures that a passed {@code Comparable} is less than another {@code Comparable}. The comparison is made using
{@code expected.compareTo(check) <= 0}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expected
Expected value
@param check
Comparable to be checked
@param message... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalNotLesserThanException.class })
public static <T extends Comparable<T>> void lesserThan(final boolean condition, @Nonnull final T expected, @Nonnull final T check,
final String message) {
Check.notNull(expected, "expected");
Check.notNull(c... | Ensures that a passed {@code Comparable} is less than another {@code Comparable}. The comparison is made using
{@code expected.compareTo(check) <= 0}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expected
Expected value
@param check
Comparable to be checked
@param message... | 225 | 603 | 409 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1f762b6759302c35e8eddb50719c7bd91bf3b7b3452ba77e39e6ea389ce39c1c | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
524f85605ca5eec32f49a54b | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.matchesPattern | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1017-L1024 | train | java | Ensures that a readable sequence of {@code char} values matches a specified pattern. If the given character
sequence does not match against the passed pattern, an {@link IllegalPatternArgumentException} will be thrown.
<p>
We recommend to use the overloaded method {@link Check#matchesPattern(Pattern, CharSequence, Str... | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
public static <T extends CharSequence> void matchesPattern(final boolean condition, @Nonnull final Pattern pattern,
@Nonnull final T chars) {
if (condition) {
Check.matchesPattern(pattern, chars);
}
} | Ensures that a readable sequence of {@code char} values matches a specified pattern. If the given character
sequence does not match against the passed pattern, an {@link IllegalPatternArgumentException} will be thrown.
<p>
We recommend to use the overloaded method {@link Check#matchesPattern(Pattern, CharSequence, Str... | 236 | 855 | 275 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2c9af2e497ff848084537310b8f1c354ae7525f06c85f37a1762526eee9e909b | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
b3c74bcb8873348dd1864c19 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.matchesPattern | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1044-L1051 | train | java | Ensures that a readable sequence of {@code char} values matches a specified pattern. If the given character
sequence does not match against the passed pattern, an {@link IllegalPatternArgumentException} will be thrown.
@param condition
condition must be {@code true}^ so that the check will be performed
@param pattern
... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalPatternArgumentException.class })
public static <T extends CharSequence> void matchesPattern(final boolean condition, @Nonnull final Pattern pattern,
@Nonnull final T chars, @Nullable final String name) {
if (condition) {
Check.matchesPatt... | Ensures that a readable sequence of {@code char} values matches a specified pattern. If the given character
sequence does not match against the passed pattern, an {@link IllegalPatternArgumentException} will be thrown.
@param condition
condition must be {@code true}^ so that the check will be performed
@param pattern
... | 222 | 714 | 353 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f22567dc9a64c38af609b04a3eb270762ce00978a0a8490ed2db2bb5d3db0905 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
6b0dacab8ad06e1ea5bd5f24 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.noNullElements | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1068-L1074 | train | java | Ensures that an iterable reference is neither {@code null} nor contains any elements that are {@code null}.
<p>
We recommend to use the overloaded method {@link Check#noNullElements(Iterable, String)} and pass as second
argument the name of the parameter to enhance the exception message.
@param condition
condition mu... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalNullElementsException.class })
public static <T extends Iterable<?>> void noNullElements(final boolean condition, @Nonnull final T iterable) {
if (condition) {
Check.noNullElements(iterable);
}
} | Ensures that an iterable reference is neither {@code null} nor contains any elements that are {@code null}.
<p>
We recommend to use the overloaded method {@link Check#noNullElements(Iterable, String)} and pass as second
argument the name of the parameter to enhance the exception message.
@param condition
condition mu... | 177 | 569 | 276 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 66c2c1e84643a76fbed39f27a212439a413a992cd6f1e0989c01a448ab12fa62 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
e08588998720c04eb6b28f89 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.noNullElements | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1112-L1118 | train | java | Ensures that an array does not contain {@code null}.
<p>
We recommend to use the overloaded method {@link Check#noNullElements(Object[], String)} and pass as second
argument the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that the check will be performed... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalNullElementsException.class })
public static <T> void noNullElements(final boolean condition, @Nonnull final T[] array) {
if (condition) {
Check.noNullElements(array);
}
} | Ensures that an array does not contain {@code null}.
<p>
We recommend to use the overloaded method {@link Check#noNullElements(Object[], String)} and pass as second
argument the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that the check will be performed... | 155 | 451 | 252 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 85a557d69a07dc433f2277ca6979d8893ccee0862dfb40c617ebb1b7425eeaa7 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
246c98f900d37ac87c409a0a | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.noNullElements | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1133-L1139 | train | java | Ensures that an array does not contain {@code null}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param array
reference to an array
@param name
name of object reference (in source code)
@throws IllegalNullElementsException
if the given argument {@code array} contains {@code nu... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalNullElementsException.class })
public static <T> void noNullElements(final boolean condition, @Nonnull final T[] array, @Nullable final String name) {
if (condition) {
Check.noNullElements(array, name);
}
} | Ensures that an array does not contain {@code null}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param array
reference to an array
@param name
name of object reference (in source code)
@throws IllegalNullElementsException
if the given argument {@code array} contains {@code nu... | 138 | 323 | 287 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d6e0ac2cba5967af61edaa9912bc5731aca328bcaf50ceebfffd2ec4e221d867 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
ba45a0ad001fc8fc73a83dec | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEmpty | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1160-L1166 | train | java | Ensures that a passed parameter of the calling method is not empty, using the passed expression to evaluate the
emptiness.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(boolean, String)} and pass as second argument the
name of the parameter to enhance the exception message.
@param condition
cond... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class })
public static void notEmpty(final boolean condition, final boolean expression) {
if (condition) {
Check.notEmpty(expression);
}
} | Ensures that a passed parameter of the calling method is not empty, using the passed expression to evaluate the
emptiness.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(boolean, String)} and pass as second argument the
name of the parameter to enhance the exception message.
@param condition
cond... | 196 | 708 | 242 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fcc5828ea0dbae7d604158b59a252915b210b7062aa4884254422b8ecd51a605 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
a64b3d2c36a42749207efe31 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEmpty | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1183-L1189 | train | java | Ensures that a passed parameter of the calling method is not empty, using the passed expression to evaluate the
emptiness.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expression
the result of the expression to verify the emptiness of a reference ({@code true} means empty... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class })
public static void notEmpty(final boolean condition, final boolean expression, @Nullable final String name) {
if (condition) {
Check.notEmpty(expression, name);
}
} | Ensures that a passed parameter of the calling method is not empty, using the passed expression to evaluate the
emptiness.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expression
the result of the expression to verify the emptiness of a reference ({@code true} means empty... | 162 | 494 | 277 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e12ec0da7ef2db68390651f5f2ca6b63a655572e4b86e97e9baa743e0cc6a588 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
75f89c6b109d954af6f3428a | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEmpty | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1208-L1214 | train | java | Ensures that a passed string as a parameter of the calling method is not empty.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(CharSequence, String)} and pass as second
argument the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that th... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class })
public static <T extends CharSequence> void notEmpty(final boolean condition, @Nonnull final T chars) {
if (condition) {
Check.notEmpty(chars);
}
} | Ensures that a passed string as a parameter of the calling method is not empty.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(CharSequence, String)} and pass as second
argument the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that th... | 181 | 608 | 260 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1477f4fc9a8780f2c535246c83b7a208e7435d1fc936c922a94557b7d4d7b27e | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
2e7862308f335d24e08d0a95 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEmpty | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1233-L1239 | train | java | Ensures that a passed collection as a parameter of the calling method is not empty.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(Collection, String)} and pass as second argument
the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that ... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class })
public static <T extends Collection<?>> void notEmpty(final boolean condition, @Nonnull final T collection) {
if (condition) {
Check.notEmpty(collection);
}
} | Ensures that a passed collection as a parameter of the calling method is not empty.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(Collection, String)} and pass as second argument
the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that ... | 174 | 587 | 271 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 910b740a3123f91fd8914bfaffd6d660669bb22c90f4f5c63ddff1071818b663 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
94abc4a8b39d9b8984336126 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEmpty | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1258-L1264 | train | java | Ensures that a passed map as a parameter of the calling method is not empty.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(Collection, String)} and pass as second argument
the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that the che... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class })
public static <T extends Map<?, ?>> void notEmpty(final boolean condition, @Nonnull final T map) {
if (condition) {
Check.notEmpty(map);
}
} | Ensures that a passed map as a parameter of the calling method is not empty.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(Collection, String)} and pass as second argument
the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that the che... | 175 | 552 | 253 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4e5c854125e1910be471e71fa86108363bd5d3a9348e7a9f327593fe8e67c18e | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
e21f8e1cd1b84a53a4451e36 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEmpty | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1296-L1303 | train | java | Ensures that an object reference passed as a parameter to the calling method is not empty. The passed boolean
value is the result of checking whether the reference is empty or not.
<p>
The following example describes how to use it.
<pre>
@ArgumentsChecked
public setText(String text) {
ConditionalCheck.notEmpty(t... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class })
public static <T> void notEmpty(final boolean condition, @Nonnull final T reference, final boolean expression,
@Nullable final String name) {
if (condition) {
Check.notEmpty(reference, expression, name);
}... | Ensures that an object reference passed as a parameter to the calling method is not empty. The passed boolean
value is the result of checking whether the reference is empty or not.
<p>
The following example describes how to use it.
<pre>
@ArgumentsChecked
public setText(String text) {
ConditionalCheck.notEmpty(t... | 268 | 920 | 323 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 737c7db36bd2161091ea768e49755d9923b65a4066e4069e3f4be71c61d8173f | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
b95afa3826a38e4a74d00385 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEmpty | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1415-L1421 | train | java | Ensures that a passed map as a parameter of the calling method is not empty.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(Object[], String)} and pass as second argument
the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that the check... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class })
public static <T> void notEmpty(final boolean condition, @Nonnull final T[] array) {
if (condition) {
Check.notEmpty(array);
}
} | Ensures that a passed map as a parameter of the calling method is not empty.
<p>
We recommend to use the overloaded method {@link Check#notEmpty(Object[], String)} and pass as second argument
the name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^ so that the check... | 173 | 556 | 241 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bdacaa6c3689dc0455027d42f9c904300144ce10f7d1e65116e3d03d1a13eb76 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
dc623e09f3a8282a8caa8bac | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEquals | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1464-L1469 | train | java | Ensures that a passed boolean is not equal to another boolean. The comparison is made using
<code>expected == check</code>.
<p>
We recommend to use the overloaded method {@link ConditionalCheck#notEquals(condition,boolean, boolean, String)}
and pass as second argument the name of the parameter to enhance the exception... | @Throws(IllegalEqualException.class)
public static void notEquals(final boolean condition, final boolean expected, final boolean check) {
if (condition) {
Check.notEquals(expected, check);
}
} | Ensures that a passed boolean is not equal to another boolean. The comparison is made using
<code>expected == check</code>.
<p>
We recommend to use the overloaded method {@link ConditionalCheck#notEquals(condition,boolean, boolean, String)}
and pass as second argument the name of the parameter to enhance the exception... | 160 | 550 | 201 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b856c1d788361a2db77cf760c6056eb298ad69f25599d7559c8c3265bcee1b20 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
e08542ce05662dcc614f17be | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEquals | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1488-L1493 | train | java | Ensures that a passed boolean is not equal to another boolean. The comparison is made using
<code>expected == check</code>.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expected
Expected value
@param check
boolean to be checked
@param message
an error message describing w... | @Throws(IllegalEqualException.class)
public static void notEquals(final boolean condition, final boolean expected, final boolean check, @Nonnull final String message) {
if (condition) {
Check.notEquals(expected, check, message);
}
} | Ensures that a passed boolean is not equal to another boolean. The comparison is made using
<code>expected == check</code>.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expected
Expected value
@param check
boolean to be checked
@param message
an error message describing w... | 153 | 465 | 241 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4062b0259412485853961c2bcf71ceb8b14d28cee75d1f4e44bbb1ada22149c7 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
ad223cc8e07cc44886a41190 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notEquals | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1755-L1764 | train | java | Ensures that a passed {@code Comparable} is not equal to another {@code Comparable}. The comparison is made using
{@code expected.compareTo(check) == 0}.
<p>
We recommend to use the overloaded method
{@link ConditionalCheck#notEquals(condition,Comparable, Comparable, String)} and pass as second argument the name
of th... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEqualException.class })
public static <T extends Comparable<T>> void notEquals(final boolean condition, @Nonnull final T expected, @Nonnull final T check) {
Check.notNull(expected, "expected");
Check.notNull(check, "check");
if (condition) ... | Ensures that a passed {@code Comparable} is not equal to another {@code Comparable}. The comparison is made using
{@code expected.compareTo(check) == 0}.
<p>
We recommend to use the overloaded method
{@link ConditionalCheck#notEquals(condition,Comparable, Comparable, String)} and pass as second argument the name
of th... | 205 | 589 | 365 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | be48b150a2180c8ea5d8a978214c0a9eb89637df44d131eaf7a9c528ad68989b | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
8b822b3fbd805dd5426b68e9 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notNaN | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1891-L1896 | train | java | Ensures that a double argument is not NaN (not a number).
@see java.lang.Double#NaN
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
value which should not be NaN
@param name
name of object reference (in source code)
@throws IllegalNaNArgumentException
if the given ar... | @Throws(IllegalNaNArgumentException.class)
public static void notNaN(final boolean condition, final double value, @Nullable final String name) {
if (condition) {
Check.notNaN(value, name);
}
} | Ensures that a double argument is not NaN (not a number).
@see java.lang.Double#NaN
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
value which should not be NaN
@param name
name of object reference (in source code)
@throws IllegalNaNArgumentException
if the given ar... | 127 | 347 | 201 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 43a43a54de22e056fecac149db56763196d48b9b07054d560d24052eaca414d3 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
ac6b642ab31e9bc4215eabbd | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notNegative | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L1979-L1984 | train | java | Ensures that an integer reference passed as a parameter to the calling method is not smaller than {@code 0}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
a number
@param name
name of the number reference (in source code)
@throws IllegalNullArgumentException
if the ... | @Throws(IllegalNegativeArgumentException.class)
public static void notNegative(final boolean condition, final int value, @Nullable final String name) {
if (condition) {
Check.notNegative(value, name);
}
} | Ensures that an integer reference passed as a parameter to the calling method is not smaller than {@code 0}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
a number
@param name
name of the number reference (in source code)
@throws IllegalNullArgumentException
if the ... | 131 | 378 | 213 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2912056d3003d71beed607069e9709779580490f989c7f4de5ea3f6feb47a82d | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
1a4925575b88e40777820d65 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notNull | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L2001-L2006 | train | java | Ensures that an object reference passed as a parameter to the calling method is not {@code null}.
<p>
We recommend to use the overloaded method {@link Check#notNull(Object, String)} and pass as second argument the
name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^... | @Throws(IllegalNullArgumentException.class)
public static <T> void notNull(final boolean condition, @Nonnull final T reference) {
if (condition) {
Check.notNull(reference);
}
} | Ensures that an object reference passed as a parameter to the calling method is not {@code null}.
<p>
We recommend to use the overloaded method {@link Check#notNull(Object, String)} and pass as second argument the
name of the parameter to enhance the exception message.
@param condition
condition must be {@code true}^... | 145 | 487 | 185 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8d648cbbadbba959974b0b763afaa618e935e968e0ef254eeed6ed09d28a1723 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
f90dfdd8f07332101dab7fb6 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notNull | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L2021-L2026 | train | java | Ensures that an object reference passed as a parameter to the calling method is not {@code null}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param reference
an object reference
@param name
name of object reference (in source code)
@throws IllegalNullArgumentException
if the ... | @Throws(IllegalNullArgumentException.class)
public static <T> void notNull(final boolean condition, @Nonnull final T reference, @Nullable final String name) {
if (condition) {
Check.notNull(reference, name);
}
} | Ensures that an object reference passed as a parameter to the calling method is not {@code null}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param reference
an object reference
@param name
name of object reference (in source code)
@throws IllegalNullArgumentException
if the ... | 129 | 368 | 220 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2c4292176d9328e13b6feaeab0f498b3bacb32dd1b43e2e4cb2c53cf10053bb1 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
0e09489c64b64701de8a184f | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.notPositive | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L2063-L2068 | train | java | Ensures that an integer reference passed as a parameter to the calling method is not greater than {@code 0}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
a number
@param name
name of the number reference (in source code)
@throws IllegalNullArgumentException
if the ... | @Throws(IllegalPositiveArgumentException.class)
public static void notPositive(final boolean condition, final int value, @Nullable final String name) {
if (condition) {
Check.notPositive(value, name);
}
} | Ensures that an integer reference passed as a parameter to the calling method is not greater than {@code 0}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param value
a number
@param name
name of the number reference (in source code)
@throws IllegalNullArgumentException
if the ... | 131 | 378 | 213 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6696c577ed79e99fd02456388ef0936608635061dbd595dfb626e4ad3f8ebc6e | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
0d0b82a105700a28b254c5dc | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.positionIndex | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L2084-L2089 | train | java | Ensures that a given position index is valid within the size of an array, list or string ...
@param condition
condition must be {@code true}^ so that the check will be performed
@param index
index of an array, list or string
@param size
size of an array list or string
@throws IllegalPositionIndexException
if the inde... | @Throws(IllegalPositionIndexException.class)
public static void positionIndex(final boolean condition, final int index, final int size) {
if (condition) {
Check.positionIndex(index, size);
}
} | Ensures that a given position index is valid within the size of an array, list or string ...
@param condition
condition must be {@code true}^ so that the check will be performed
@param index
index of an array, list or string
@param size
size of an array list or string
@throws IllegalPositionIndexException
if the inde... | 140 | 405 | 201 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a60ddcc84c024c45878556927f0171ad5005f6c5dc98c6d2ef013fc93e0e846b | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
4ab6a3663b7399af7d908a59 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.range | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L2116-L2121 | train | java | Ensures that the given arguments are a valid range.
A range (<em>start</em>, <em>end</em>, <em>size</em>) is valid if the following conditions are {@code true}:
<ul>
<li>start <= size</li>
<li>end <= size</li>
<li>start <= end</li>
<li>size >= 0</li>
<li>start >= 0</li>
<li>end >= 0</li>
</ul>
@param condition
condit... | @Throws(IllegalRangeException.class)
public static void range(final boolean condition, @Nonnegative final int start, @Nonnegative final int end, @Nonnegative final int size) {
if (condition) {
Check.range(start, end, size);
}
} | Ensures that the given arguments are a valid range.
A range (<em>start</em>, <em>end</em>, <em>size</em>) is valid if the following conditions are {@code true}:
<ul>
<li>start <= size</li>
<li>end <= size</li>
<li>start <= end</li>
<li>size >= 0</li>
<li>start >= 0</li>
<li>end >= 0</li>
</ul>
@param condition
condit... | 253 | 683 | 236 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9a1ec7fe8333714ff02607c4b3dbf299288198f8f41135351163f0b3fe237bf0 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
b0d0df099b404efb84ce747f | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.stateIsTrue | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L2163-L2170 | train | java | Ensures that a given state is {@code true} and allows to specify the class of exception which is thrown in case
the state is not {@code true}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expression
an expression that must be {@code true} to indicate a valid state
@param ... | @ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, RuntimeInstantiationException.class })
public static void stateIsTrue(final boolean condition, final boolean expression, final Class<? extends RuntimeException> clazz) {
if (condition) {
Check.stateIsTrue(expression, clazz);
}
} | Ensures that a given state is {@code true} and allows to specify the class of exception which is thrown in case
the state is not {@code true}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expression
an expression that must be {@code true} to indicate a valid state
@param ... | 210 | 698 | 303 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a3a1264a5f5bfd8270eba8886c8f2d3f6ae5b8f56950744b85ea9af38963c41c | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
19c0d25da5b2febe1ed5351f | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java | ConditionalCheck.stateIsTrue | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/ConditionalCheck.java#L2184-L2189 | train | java | Ensures that a given state is {@code true}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expression
an expression that must be {@code true} to indicate a valid state
@param description
will be used in the error message to describe why the arguments caused an invalid state... | @Throws(IllegalStateOfArgumentException.class)
public static void stateIsTrue(final boolean condition, final boolean expression, @Nonnull final String description) {
if (condition) {
Check.stateIsTrue(expression, description);
}
} | Ensures that a given state is {@code true}.
@param condition
condition must be {@code true}^ so that the check will be performed
@param expression
an expression that must be {@code true} to indicate a valid state
@param description
will be used in the error message to describe why the arguments caused an invalid state... | 135 | 407 | 239 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 98e53009cfcfcd62ede3b51097ac5adff6b8dc8db81d0df075999c3b3d0369b8 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
6dd88ad277689c4ed5332d0d | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java | LogService.removeAllWriter | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java#L269-L277 | train | java | Removes all registered log writer from this log service.
<p>
@param close should the writers be closed before removal | public void removeAllWriter(boolean close)
{
if (close)
synchronized (writers) {
for (final Iterator i = writers.iterator(); i.hasNext();)
((LogWriter) i.next()).close();
}
writers = new Vector();
} | Removes all registered log writer from this log service.
<p>
@param close should the writers be closed before removal
public void removeAllWriter(boolean close)
{
if (close)
synchronized (writers) {
for (final Iterator i = writers.iterator(); i.hasNext();)
((LogWriter) i.next()).close();
}
... | 80 | 118 | 227 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b1260863506acbee6957a48671df6a3cc9299ed9b6aa1e156d3fa8d9b53d28c9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5002d3c57f212c6be1586011 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java | LogService.warn | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java#L320-L323 | train | java | Offers <code>msg</code> and the <code>throwable</code> object with log level
{@link LogLevel#WARN}.
<p>
@param msg log information
@param t throwable object | public void warn(String msg, Throwable t)
{
log(LogLevel.WARN, msg, t);
} | Offers <code>msg</code> and the <code>throwable</code> object with log level
{@link LogLevel#WARN}.
<p>
@param msg log information
@param t throwable object
public void warn(String msg, Throwable t)
{
log(LogLevel.WARN, msg, t);
} | 64 | 157 | 80 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 89217cdc9ffc84b592dd88f02363f2258bcc2c8047f5c6d776dc8d0c2f0683c9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0cce47e8ba3193cab398c240 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java | LogService.error | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java#L344-L347 | train | java | Offers <code>msg</code> and the <code>throwable</code> object with log level
{@link LogLevel#ERROR}.
<p>
@param msg log information
@param t throwable object | public void error(String msg, Throwable t)
{
log(LogLevel.ERROR, msg, t);
} | Offers <code>msg</code> and the <code>throwable</code> object with log level
{@link LogLevel#ERROR}.
<p>
@param msg log information
@param t throwable object
public void error(String msg, Throwable t)
{
log(LogLevel.ERROR, msg, t);
} | 63 | 158 | 82 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bf4620a87fe7ff2fa88fefd1bf8b400cceb158b738623a2125b61246c57652b7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d5627d205760a42ec851cfa9 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java | LogService.fatal | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java#L368-L371 | train | java | Offers <code>msg</code> and the <code>throwable</code> object with log level
{@link LogLevel#FATAL}.
<p>
@param msg log information
@param t throwable object | public void fatal(String msg, Throwable t)
{
log(LogLevel.FATAL, msg, t);
} | Offers <code>msg</code> and the <code>throwable</code> object with log level
{@link LogLevel#FATAL}.
<p>
@param msg log information
@param t throwable object
public void fatal(String msg, Throwable t)
{
log(LogLevel.FATAL, msg, t);
} | 65 | 158 | 82 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d222addb7f92a230ad693b3d72ca8a7384a916025c85b2a27ae121d8eb3a4a27 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
220929d1e2b8425e16a4dc34 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java | LogService.log | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java#L380-L384 | train | java | Offers <code>msg</code> with log <code>level</code>.
<p>
@param level log level for this message
@param msg log information | public void log(LogLevel level, String msg)
{
if (level != LogLevel.OFF && level.level <= logLevel.level)
logger.add(writers, name, level, msg, null);
} | Offers <code>msg</code> with log <code>level</code>.
<p>
@param level log level for this message
@param msg log information
public void log(LogLevel level, String msg)
{
if (level != LogLevel.OFF && level.level <= logLevel.level)
logger.add(writers, name, level, msg, null);
} | 75 | 124 | 163 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d6ff4fb562f28e939a6c85022bc96e302b29a42b2775dfa4b44dd1d7c8aa8f45 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
74bb8db442dfc82c56010d4a | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java | LogService.log | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/log/LogService.java#L395-L399 | train | java | Offers <code>msg</code> and the <code>throwable</code> object with log
<code>level</code>.
<p>
@param level log level for this message and throwable
@param msg log information
@param t throwable object | public void log(LogLevel level, String msg, Throwable t)
{
if (level != LogLevel.OFF && level.level <= logLevel.level)
logger.add(writers, name, level, msg, t);
} | Offers <code>msg</code> and the <code>throwable</code> object with log
<code>level</code>.
<p>
@param level log level for this message and throwable
@param msg log information
@param t throwable object
public void log(LogLevel level, String msg, Throwable t)
{
if (level != LogLevel.OFF && level.level <= logLevel... | 97 | 202 | 173 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | dc3c43132dd3cd5c6d6d6bec72cb577d7ec2b55bd1bcc2f52731bfd4d0c14456 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
2a4b88dee6330793860f6710 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalMissingAnnotationException.java | IllegalMissingAnnotationException.format | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalMissingAnnotationException.java#L71-L78 | train | java | Returns the formatted string {@link IllegalMissingAnnotationException#MESSAGE_WITH_ANNOTATION} with the given
{@code annotation}.
@param annotation
the name of the required annotation
@return a formatted string of message with the given argument name | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
private static String format(@Nonnull final Class<? extends Annotation> annotation) {
if (annotation == null) {
throw new IllegalNullArgumentException("annotation");
}
return String.format(MESSAGE_WITH_ANNOTATION, annotation.getName());
} | Returns the formatted string {@link IllegalMissingAnnotationException#MESSAGE_WITH_ANNOTATION} with the given
{@code annotation}.
@param annotation
the name of the required annotation
@return a formatted string of message with the given argument name
@ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
pri... | 112 | 251 | 312 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9355e19538294da3b97176cbd1adcc70dc2189962e6b3d46228114746fdec715 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
047588ec9a4da750b1e452e9 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalMissingAnnotationException.java | IllegalMissingAnnotationException.format | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalMissingAnnotationException.java#L90-L102 | train | java | Returns the formatted string {@link IllegalMissingAnnotationException#MESSAGE_WITH_ANNOTATION_AND_CLASS} with the
given {@code annotation} and {@code clazz}.
@param annotation
the required annotation
@param clazz
the name of the class which does not have the required annotation
@return a formatted string of message wi... | @ArgumentsChecked
@Throws(IllegalNullArgumentException.class)
private static String format(@Nonnull final Class<? extends Annotation> annotation, @Nullable final Class<?> clazz) {
if (annotation == null) {
throw new IllegalNullArgumentException("annotation");
}
if (clazz != null) {
return String.format(M... | Returns the formatted string {@link IllegalMissingAnnotationException#MESSAGE_WITH_ANNOTATION_AND_CLASS} with the
given {@code annotation} and {@code clazz}.
@param annotation
the required annotation
@param clazz
the name of the class which does not have the required annotation
@return a formatted string of message wi... | 165 | 346 | 441 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | cd1174dfe7b8976a201e89c6b1157006f9cb2ad4bb3f5ed1dc3836705dcbc661 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
6332493e7619204772ebe0c7 | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/Trajectory.java | Trajectory.subList | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/Trajectory.java#L79-L87 | train | java | Generates a sub-trajectory | @Override
public Trajectory subList(int fromIndex, int toIndex) {
Trajectory t = new Trajectory(dimension);
for(int i = fromIndex; i < toIndex; i++){
t.add(this.get(i));
}
return t;
} | Generates a sub-trajectory
@Override
public Trajectory subList(int fromIndex, int toIndex) {
Trajectory t = new Trajectory(dimension);
for(int i = fromIndex; i < toIndex; i++){
t.add(this.get(i));
}
return t;
} | 67 | 26 | 199 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 495345590e1f4a1d56d4baecee091b8b829537bfc22c2ed3bd5c3bcfd4b73b9c | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
b1e7293e6f887e9a7b591865 | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/Trajectory.java | Trajectory.getPositionsAsArray | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/Trajectory.java#L117-L130 | train | java | Converts the positions to a 2D double array
@return 2d double array [i][j], i=Time index, j=coordinate index | public double[][] getPositionsAsArray(){
double[][] posAsArr = new double[size()][3];
for(int i = 0; i < size(); i++){
if(get(i)!=null){
posAsArr[i][0] = get(i).x;
posAsArr[i][1] = get(i).y;
posAsArr[i][2] = get(i).z;
}
else{
posAsArr[i] = null;
}
}
return posAsArr;
} | Converts the positions to a 2D double array
@return 2d double array [i][j], i=Time index, j=coordinate index
public double[][] getPositionsAsArray(){
double[][] posAsArr = new double[size()][3];
for(int i = 0; i < size(); i++){
if(get(i)!=null){
posAsArr[i][0] = get(i).x;
posAsArr[i][1] = get(i).y;
... | 146 | 108 | 305 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f469466b70d3b94c100c75b962b3d896ff45062ad5c44d9f2a68f4c7ccc08347 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
31493d75a070c819f1863b6b | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/Trajectory.java | Trajectory.scale | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/Trajectory.java#L160-L164 | train | java | Multiplies all positions with a factor v
@param v Multiplication factor | public void scale(double v){
for(int i = 0; i < this.size(); i++){
this.get(i).scale(v);;
}
} | Multiplies all positions with a factor v
@param v Multiplication factor
public void scale(double v){
for(int i = 0; i < this.size(); i++){
this.get(i).scale(v);;
}
} | 49 | 71 | 101 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f982648386e1af290f4726041671e77d1741d41ac1d19c6a07beb5565b49b3bc | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
68423b16740dd00f539ee447 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyNumberUtils.java | MyNumberUtils.randomIntBetween | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyNumberUtils.java#L34-L37 | train | java | Returns an integer between interval
@param min Minimum value
@param max Maximum value
@return int number | public static int randomIntBetween(int min, int max) {
Random rand = new Random();
return rand.nextInt((max - min) + 1) + min;
} | Returns an integer between interval
@param min Minimum value
@param max Maximum value
@return int number
public static int randomIntBetween(int min, int max) {
Random rand = new Random();
return rand.nextInt((max - min) + 1) + min;
} | 58 | 104 | 138 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a000caccfab787e1a1769abde1e765ea654a2a38c4be365a4c4ff44fe1cf73d7 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
f959431c3b3ba20037e9ab76 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyNumberUtils.java | MyNumberUtils.randomLongBetween | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyNumberUtils.java#L46-L49 | train | java | Returns a long between interval
@param min Minimum value
@param max Maximum value
@return long number | public static long randomLongBetween(long min, long max) {
Random rand = new Random();
return min + (long) (rand.nextDouble() * (max - min));
} | Returns a long between interval
@param min Minimum value
@param max Maximum value
@return long number
public static long randomLongBetween(long min, long max) {
Random rand = new Random();
return min + (long) (rand.nextDouble() * (max - min));
} | 59 | 101 | 153 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 347266aa9bc8197ffb19e93e95138255b650561ce5abb6b0c59af97317b7eace | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
bd0fe50333ba3c80b3f15eb4 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/SearchResponse.java | SearchResponse.toByteArray | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/SearchResponse.java#L165-L172 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream) | byte[] toByteArray(ByteArrayOutputStream os)
{
byte[] buf = desc.getDevice().toByteArray();
os.write(buf, 0, buf.length);
buf = desc.getServiceFamilies().toByteArray();
os.write(buf, 0, buf.length);
return os.toByteArray();
} | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream)
byte[] toByteArray(ByteArrayOutputStream os)
{
byte[] buf = desc.getDevice().toByteArray();
os.write(buf, 0, buf.length);
buf = desc.getServiceFamilies().toByteArray();
os.write(buf, 0,... | 95 | 119 | 244 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | adc756b701b1b9f2680d816702e9f7cb06c3f0e97373f511c283095d184c1582 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5058aef3ad365e865c942c4f | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java | MyImageUtils.trim | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java#L55-L66 | train | java | Trims an image (removes all leading and trailing white spaces)
@param img Image in memory
@return Trimmed image | public static BufferedImage trim(BufferedImage img) {
int width = getTrimmedWidth(img);
int height = getTrimmedHeight(img);
int xStart = getTrimmedXStart(img);
int yStart = getTrimmedYStart(img);
BufferedImage newImg = new BufferedImage(width - xStart, height - yStart, BufferedImage.TYPE_INT_ARGB);... | Trims an image (removes all leading and trailing white spaces)
@param img Image in memory
@return Trimmed image
public static BufferedImage trim(BufferedImage img) {
int width = getTrimmedWidth(img);
int height = getTrimmedHeight(img);
int xStart = getTrimmedXStart(img);
int yStart = getTrimmedYStart(i... | 136 | 111 | 438 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5b9623b273671219a19e94620fb8d2adc9520950e4f986326dde15f6b016165f | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
6407d700aa6cd97c8049890a | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java | MyImageUtils.getTrimmedXStart | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java#L73-L88 | train | java | Get the first non-white X point
@param img Image n memory
@return the x start | private static int getTrimmedXStart(BufferedImage img) {
int height = img.getHeight();
int width = img.getWidth();
int xStart = width;
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
if (img.getRGB(j, i) != Color.WHITE.getRGB() && j < xStart) {
xStart = j;
... | Get the first non-white X point
@param img Image n memory
@return the x start
private static int getTrimmedXStart(BufferedImage img) {
int height = img.getHeight();
int width = img.getWidth();
int xStart = width;
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
if (im... | 130 | 77 | 383 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 421396fff926823e686bc97ebdd750c425ea035ef65a0949c51139588eeca7fd | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
ace563317a47ba7013bb1f59 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java | MyImageUtils.getTrimmedWidth | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java#L96-L111 | train | java | Get the last non-white X point
@param img Image in memory
@return the trimmed width | private static int getTrimmedWidth(BufferedImage img) {
int height = img.getHeight();
int width = img.getWidth();
int trimmedWidth = 0;
for (int i = 0; i < height; i++) {
for (int j = width - 1; j >= 0; j--) {
if (img.getRGB(j, i) != Color.WHITE.getRGB() && j > trimmedWidth) {
t... | Get the last non-white X point
@param img Image in memory
@return the trimmed width
private static int getTrimmedWidth(BufferedImage img) {
int height = img.getHeight();
int width = img.getWidth();
int trimmedWidth = 0;
for (int i = 0; i < height; i++) {
for (int j = width - 1; j >= 0; j--) {
... | 133 | 83 | 407 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | cbf1b361b65fbcfe58339259cc813e9a01a79b333798f711abd01fe8ddd031bf | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
ab1fe9e1bf4ee03759b7460c | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java | MyImageUtils.getTrimmedYStart | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java#L118-L133 | train | java | Get the first non-white Y point
@param img Image in memory
@return the trimmed y start | private static int getTrimmedYStart(BufferedImage img) {
int width = img.getWidth();
int height = img.getHeight();
int yStart = height;
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
if (img.getRGB(i, j) != Color.WHITE.getRGB() && j < yStart) {
yStart = j;
... | Get the first non-white Y point
@param img Image in memory
@return the trimmed y start
private static int getTrimmedYStart(BufferedImage img) {
int width = img.getWidth();
int height = img.getHeight();
int yStart = height;
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
... | 131 | 86 | 384 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 19c8de722112267f6594cee12d659bd02fb56da500f2d3f5a3d30cd3469b095d | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
9d8b1d693f0baa3e37830c94 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java | MyImageUtils.getTrimmedHeight | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java#L141-L156 | train | java | Get the last non-white Y point
@param img Image in memory
@return The trimmed height | private static int getTrimmedHeight(BufferedImage img) {
int width = img.getWidth();
int height = img.getHeight();
int trimmedHeight = 0;
for (int i = 0; i < width; i++) {
for (int j = height - 1; j >= 0; j--) {
if (img.getRGB(i, j) != Color.WHITE.getRGB() && j > trimmedHeight) {
... | Get the last non-white Y point
@param img Image in memory
@return The trimmed height
private static int getTrimmedHeight(BufferedImage img) {
int width = img.getWidth();
int height = img.getHeight();
int trimmedHeight = 0;
for (int i = 0; i < width; i++) {
for (int j = height - 1; j >= 0; j--) {... | 133 | 84 | 412 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 49994bb7476cb2bc5987e5d73060bc11a460f5a21aa8636d4d0f028f74bb246f | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
946cc3fee4fc59eafeddf318 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java | MyImageUtils.resizeToHeight | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java#L165-L182 | train | java | Resizes an image to the specified height, changing width in the same proportion
@param originalImage Image in memory
@param heightOut The height to resize
@return New Image in memory | public static BufferedImage resizeToHeight(BufferedImage originalImage, int heightOut) {
int width = originalImage.getWidth();
int height = originalImage.getHeight();
int heightPercent = (heightOut * 100) / height;
int newWidth = (width * heightPercent) / 100;
BufferedImage resizedImage =
... | Resizes an image to the specified height, changing width in the same proportion
@param originalImage Image in memory
@param heightOut The height to resize
@return New Image in memory
public static BufferedImage resizeToHeight(BufferedImage originalImage, int heightOut) {
int width = originalImage.getWidth();
... | 161 | 182 | 553 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8a81e5473d5fe28084d6285647403ea40d24a4af92bc21efaa0011e67828b8c9 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
407e9bf62788676d419e032c | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java | MyImageUtils.resizeToWidth | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java#L190-L207 | train | java | Resizes an image to the specified width, changing width in the same proportion
@param originalImage Image in memory
@param widthOut The width to resize
@return New Image in memory | public static BufferedImage resizeToWidth(BufferedImage originalImage, int widthOut) {
int width = originalImage.getWidth();
int height = originalImage.getHeight();
int widthPercent = (widthOut * 100) / width;
int newHeight = (height * widthPercent) / 100;
BufferedImage resi... | Resizes an image to the specified width, changing width in the same proportion
@param originalImage Image in memory
@param widthOut The width to resize
@return New Image in memory
public static BufferedImage resizeToWidth(BufferedImage originalImage, int widthOut) {
int width = originalImage.getWidth();
... | 167 | 179 | 573 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 67b7db4129efbc1a20c805e2ee05712a6c96e49be9d8a118aef11036e1a89b4f | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
8e0edc9a4b0125a49ef08115 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java | MyImageUtils.joinImages | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyImageUtils.java#L218-L271 | train | java | Join images
@param images Images to join
@param lines Total of lines
@param height Image height to scale
@param minHeight Minimum height of image.
@param scale If should scale images to fit
@return Joined image | public static BufferedImage joinImages(List<BufferedImage> images, int lines, int height, int minHeight, boolean scale) {
// Array of input images.
List<BufferedImage> input = new ArrayList<BufferedImage>();
int actualHeight = height;
// if not scale, start from 1, so will use the max height ... | Join images
@param images Images to join
@param lines Total of lines
@param height Image height to scale
@param minHeight Minimum height of image.
@param scale If should scale images to fit
@return Joined image
public static BufferedImage joinImages(List<BufferedImage> images, int lines, int height, int minHeight, boo... | 397 | 210 | 1,645 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9400f5f7c96aff527b7c22babe9b4654ae79af47377eafd3729c1928917259e4 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
65383829d1f66fc2862f9c28 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator2ByteUnsigned.java | DPTXlator2ByteUnsigned.getData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator2ByteUnsigned.java#L285-L370 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int) | public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) & ~0x01;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/**
* Sets the first translation item value from input of unit millisecond.
* <p>
* The method i... | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int)
public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) & ~0x01;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/**
* Sets the fi... | 813 | 83 | 2,659 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e1c8dcce1f8305aac1436ce83200ae4bb3b563a54368169e207066defbcc828f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
85fde2c414e2c9d7c421d392 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.getLine | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L471-L482 | train | java | Gets a specific line of a text (String)
@param content text
@param line line to get
@return the specified line | public static String getLine(String content, int line) {
if (content == null) {
return null;
}
String[] contentSplit = content.replace("\r\n", "\n").split("\n");
if (contentSplit.length < line) {
return null;
}
return contentSplit[line - 1];
} | Gets a specific line of a text (String)
@param content text
@param line line to get
@return the specified line
public static String getLine(String content, int line) {
if (content == null) {
return null;
}
String[] contentSplit = content.replace("\r\n", "\n").split("\n");
if (contentSplit.lengt... | 97 | 110 | 283 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a464c31bf7a489c8d49459ae05e97f0b952cb437db1e5ffee1927886d32f52ba | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
045c5e2c3ea0abe19eee3ded | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.regexFindFirst | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L490-L492 | train | java | Gets the first group of a regex
@param pattern Pattern
@param str String to find
@return the matching group | public static String regexFindFirst(String pattern, String str) {
return regexFindFirst(Pattern.compile(pattern), str, 1);
} | Gets the first group of a regex
@param pattern Pattern
@param str String to find
@return the matching group
public static String regexFindFirst(String pattern, String str) {
return regexFindFirst(Pattern.compile(pattern), str, 1);
} | 53 | 107 | 130 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9513b17f7195872b53aa84fba13412e46076c44fe9e89e027e0e9189687941b4 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
da36ca2ebfc7c8478b2441f9 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.asListLines | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L694-L702 | train | java | Split string content into list
@param content String content
@return list | public static List<String> asListLines(String content) {
List<String> retorno = new ArrayList<String>();
content = content.replace(CARRIAGE_RETURN, RETURN);
content = content.replace(RETURN, CARRIAGE_RETURN);
for (String str : content.split(CARRIAGE_RETURN)) {
retorno.add(str);
}
return re... | Split string content into list
@param content String content
@return list
public static List<String> asListLines(String content) {
List<String> retorno = new ArrayList<String>();
content = content.replace(CARRIAGE_RETURN, RETURN);
content = content.replace(RETURN, CARRIAGE_RETURN);
for (String str : co... | 91 | 73 | 330 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 84d2d170e2b86f8404f337fe666bfb74cd53b4fdf4c9f5a47f0cd0cef55cab05 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
b62c2b6daa58f6bf2589bb9e | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.asListLinesIgnore | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L710-L720 | train | java | Split string content into list, ignoring matches of the pattern
@param content String content
@param ignorePattern Pattern to ignore
@return list | public static List<String> asListLinesIgnore(String content, Pattern ignorePattern) {
List<String> retorno = new ArrayList<String>();
content = content.replace(CARRIAGE_RETURN, RETURN);
content = content.replace(RETURN, CARRIAGE_RETURN);
for (String str : content.split(CARRIAGE_RETURN)) {
if (!ign... | Split string content into list, ignoring matches of the pattern
@param content String content
@param ignorePattern Pattern to ignore
@return list
public static List<String> asListLinesIgnore(String content, Pattern ignorePattern) {
List<String> retorno = new ArrayList<String>();
content = content.replace(CARRI... | 122 | 145 | 420 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f5dda3ddf12142174332f3be0c401ff3b1bfb978e33702478c3fbd9fd963634e | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
d442b824671422854f7626ff | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.getContentMap | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L800-L812 | train | java | Get content of a file as a Map<String, String>, using separator to split values
@param file File to get content
@param separator The separator
@return The map with the values
@throws IOException I/O Error | public static Map<String, String> getContentMap(File file, String separator) throws IOException {
List<String> content = getContentLines(file);
Map<String, String> map = new LinkedHashMap<String, String>();
for (String line : content) {
String[] spl = line.split(separator);
if (line.trim(... | Get content of a file as a Map<String, String>, using separator to split values
@param file File to get content
@param separator The separator
@return The map with the values
@throws IOException I/O Error
public static Map<String, String> getContentMap(File file, String separator) throws IOException {
List<S... | 153 | 210 | 433 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 095826d3ffecfc3454371326ee0357e5a3e43e320d151a7ad6ca19c9be0c1232 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
129f3d622d989294db02e05e | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.saveContentMap | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L820-L830 | train | java | Save map to file
@param map Map to save
@param file File to save
@throws IOException I/O error | public static void saveContentMap(Map<String, String> map, File file) throws IOException {
FileWriter out = new FileWriter(file);
for (String key : map.keySet()) {
if (map.get(key) != null) {
out.write(key.replace(":", "#escapedtwodots#") + ":"
+ map.get(key).replace(":", "#escapedtwo... | Save map to file
@param map Map to save
@param file File to save
@throws IOException I/O error
public static void saveContentMap(Map<String, String> map, File file) throws IOException {
FileWriter out = new FileWriter(file);
for (String key : map.keySet()) {
if (map.get(key) != null) {
out.write... | 120 | 94 | 373 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 65548512e4609a3461e5d3b170e519bd7c695962c4a5f955f56151ebc45a36f2 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
32b9c8d4da40c9f8ad9dc0f8 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.getContent | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L987-L996 | train | java | Returns content for the given URL
@param stringUrl URL
@return Response content | public static String getContent(String stringUrl) {
if (stringUrl.equalsIgnoreCase("clipboard")) {
try {
return getFromClipboard();
} catch (Exception e) {
//it's ok.
}
}
return getContent(stringUrl, null);
} | Returns content for the given URL
@param stringUrl URL
@return Response content
public static String getContent(String stringUrl) {
if (stringUrl.equalsIgnoreCase("clipboard")) {
try {
return getFromClipboard();
} catch (Exception e) {
//it's ok.
}
}
return getContent(stri... | 72 | 79 | 256 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 76b975fad0285f8d54cb3a3ffd8d4443e2d10c7f0ef9d7a2f815bb1dcfe44395 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
0d0d21e893a872c54163f030 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.getContent | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L1004-L1026 | train | java | Returns content for the given URL
@param stringUrl URL
@param requestProperties Properties
@return Response content | public static String getContent(String stringUrl, Map<String, String> requestProperties) {
try {
URL url = new URL(stringUrl);
URLConnection conn = url.openConnection();
if (requestProperties != null) {
for (Entry<String, String> entry : requestProperties.entrySet()) {
con... | Returns content for the given URL
@param stringUrl URL
@param requestProperties Properties
@return Response content
public static String getContent(String stringUrl, Map<String, String> requestProperties) {
try {
URL url = new URL(stringUrl);
URLConnection conn = url.openConnection();
if (... | 156 | 115 | 675 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fa24df96a2ff4d381b38278fa06e7080293ec9f22091dd41cdfed451a0bce8a1 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
19126d4290db4cce69f6e6de | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.trimClean | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L1773-L1794 | train | java | /*
Removed - use https://github.com/rrice/java-string-similarity public static double
similarScore(String str1, String str2) { SimilarityStrategy strategy = new
JaroWinklerStrategy(); StringSimilarityService service = new StringSimilarityServiceImpl(
strategy);
return service.score(str1, str2); } public static String[... | public static String trimClean(String text) {
while (text.contains(CARRIAGE_RETURN)) {
text = text.replace(CARRIAGE_RETURN, " ");
}
while (text.contains(CARRIAGE)) {
text = text.replace(CARRIAGE, " ");
}
while (text.contains(RETURN)) {
text = text.replace(RETURN, " ");
}
... | /*
Removed - use https://github.com/rrice/java-string-similarity public static double
similarScore(String str1, String str2) { SimilarityStrategy strategy = new
JaroWinklerStrategy(); StringSimilarityService service = new StringSimilarityServiceImpl(
strategy);
return service.score(str1, str2); } public static String[... | 339 | 887 | 466 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9503215e2cc3deea194d2f4cee8755975d4649998c2b902dfefe7ba552fdc6cf | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
631784b7d75e026263b494d7 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.getTabularData | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L2007-L2048 | train | java | Return tabular data
@param labels Labels array
@param data Data bidimensional array
@param padding Total space between fields
@return String | public static String getTabularData(String[] labels, String[][] data, int padding) {
int[] size = new int[labels.length];
for (int i = 0; i < labels.length; i++) {
size[i] = labels[i].length() + padding;
}
for (String[] row : data) {
for (int i = 0; i < labels.length; i++) {
... | Return tabular data
@param labels Labels array
@param data Data bidimensional array
@param padding Total space between fields
@return String
public static String getTabularData(String[] labels, String[][] data, int padding) {
int[] size = new int[labels.length];
for (int i = 0; i < labels.length; i++) {
... | 337 | 140 | 1,121 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a66180d8886983ce300924e31c8f7c7e648c32c7c959f24e5300c4f351b99f8d | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
1b23be758d0702b9a6a20f4d | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java | MyStringUtils.replaceHtmlEntities | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStringUtils.java#L2096-L2107 | train | java | Replace HTML entities
@param content Content
@param map Map
@return Replaced content | public static String replaceHtmlEntities(String content, Map<String, Character> map) {
for (Entry<String, Character> entry : escapeStrings.entrySet()) {
if (content.indexOf(entry.getKey()) != -1) {
content = content.replace(entry.getKey(), String.valueOf(entry.getValue()));
}
... | Replace HTML entities
@param content Content
@param map Map
@return Replaced content
public static String replaceHtmlEntities(String content, Map<String, Character> map) {
for (Entry<String, Character> entry : escapeStrings.entrySet()) {
if (content.indexOf(entry.getKey()) != -1) {
conten... | 89 | 84 | 354 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | db63a69d7e298b0d7433fbba6c743627625adf8ec7bfe5e9a08f6c1f7c1014a0 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
af3bfc79fed6d67f24ec7a1c | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java | LinkerBinderManager.add | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java#L64-L67 | train | java | Add the declarationBinderRef to the ImportersManager, create the corresponding.
BinderDescriptor.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder
@throws InvalidFilterException | public void add(ServiceReference<S> declarationBinderRef) throws InvalidFilterException {
BinderDescriptor binderDescriptor = new BinderDescriptor(declarationBinderRef);
declarationBinders.put(declarationBinderRef, binderDescriptor);
} | Add the declarationBinderRef to the ImportersManager, create the corresponding.
BinderDescriptor.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder
@throws InvalidFilterException
public void add(ServiceReference<S> declarationBinderRef) throws InvalidFilterException {
... | 85 | 222 | 255 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 44b31f54fbebfb3cb4004d5f2735c6fb02c6dccc18972ce2b59e17aaf1d1b02f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d1860258d0a04a5418f63098 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java | LinkerBinderManager.modified | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java#L83-L85 | train | java | Update the BinderDescriptor of the declarationBinderRef.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder | public void modified(ServiceReference<S> declarationBinderRef) throws InvalidFilterException {
declarationBinders.get(declarationBinderRef).update(declarationBinderRef);
} | Update the BinderDescriptor of the declarationBinderRef.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder
public void modified(ServiceReference<S> declarationBinderRef) throws InvalidFilterException {
declarationBinders.get(declarationBinderRef).update(declarationB... | 61 | 151 | 183 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0bff1b015f133275d1a722fe41e21a61180ba968578377b6a21e778660eebfb1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ed9d19b1da5691d1ee10dd31 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java | LinkerBinderManager.createLinks | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java#L123-L129 | train | java | Create all the links possible between the DeclarationBinder and all the ImportDeclaration matching the.
ImportDeclarationFilter of the Linker.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder | public void createLinks(ServiceReference<S> declarationBinderRef) {
for (D declaration : linkerManagement.getMatchedDeclaration()) {
if (linkerManagement.canBeLinked(declaration, declarationBinderRef)) {
linkerManagement.link(declaration, declarationBinderRef);
}
... | Create all the links possible between the DeclarationBinder and all the ImportDeclaration matching the.
ImportDeclarationFilter of the Linker.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder
public void createLinks(ServiceReference<S> declarationBinderRef) {
for (D... | 102 | 236 | 327 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fb6cb84f7a2d6fdef154078faa684fdab84d96aebf40145761a0bb4956826e42 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
92bc968f645af4031c524b03 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java | LinkerBinderManager.updateLinks | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java#L136-L146 | train | java | Update all the links of the DeclarationBinder.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder | public void updateLinks(ServiceReference<S> serviceReference) {
for (D declaration : linkerManagement.getMatchedDeclaration()) {
boolean isAlreadyLinked = declaration.getStatus().getServiceReferencesBounded().contains(serviceReference);
boolean canBeLinked = linkerManagement.canBeLinked(... | Update all the links of the DeclarationBinder.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder
public void updateLinks(ServiceReference<S> serviceReference) {
for (D declaration : linkerManagement.getMatchedDeclaration()) {
boolean isAlreadyLinked = dec... | 139 | 140 | 632 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | dcf936fd3bc3a4a06ee7f895b84235226621d4c8e7d90cbc7403ef17ffadec16 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f3a1565e63f946dce2fe91a8 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java | LinkerBinderManager.removeLinks | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java#L153-L159 | train | java | Remove all the existing links of the DeclarationBinder.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder | public void removeLinks(ServiceReference<S> declarationBinderRef) {
for (D declaration : linkerManagement.getMatchedDeclaration()) {
if (declaration.getStatus().getServiceReferencesBounded().contains(declarationBinderRef)) {
linkerManagement.unlink(declaration, declarationBinderRef);... | Remove all the existing links of the DeclarationBinder.
@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder
public void removeLinks(ServiceReference<S> declarationBinderRef) {
for (D declaration : linkerManagement.getMatchedDeclaration()) {
if (declaration.... | 88 | 149 | 350 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0b56968adef04e947b6bd4b0528e6652841bed4f0f7c32860d915cdfa577b1e5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
91365257f131e3966e3021bc | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java | LinkerBinderManager.getMatchedDeclarationBinder | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java#L166-L174 | train | java | Return a set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.
@return a Set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker. | public Set<S> getMatchedDeclarationBinder() {
Set<S> bindedSet = new HashSet<S>();
for (Map.Entry<ServiceReference<S>, BinderDescriptor> e : declarationBinders.entrySet()) {
if (e.getValue().match) {
bindedSet.add(getDeclarationBinder(e.getKey()));
}
}
... | Return a set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.
@return a Set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.
public Set<S> getMatchedDeclarationBinder() {
Set<S> bindedSet = new HashSet<S>();
for (Map.Entry<ServiceReference<S>, Bi... | 109 | 181 | 348 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 961608a923ce2624ce4ee6316118f34e32d150dade4bc87b9cfef76064312a7b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0bcd85dd4071490c6abcdf9d | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java | LinkerBinderManager.applyFilterChanges | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/LinkerBinderManager.java#L204-L225 | train | java | Compute and apply all the modifications bring by the modification of the DeclarationBinderFilter.
<p/>
Find all the DeclarationBinder that are now matching the filter and all that are no more matching the filter.
<ul>
<li>Remove all the links of the ones which are no more matching the DeclarationBinderFilter.</li>
<li>... | public void applyFilterChanges(Filter binderServiceFilter) {
this.binderServiceFilter = binderServiceFilter;
Set<ServiceReference<S>> added = new HashSet<ServiceReference<S>>();
Set<ServiceReference<S>> removed = new HashSet<ServiceReference<S>>();
for (Map.Entry<ServiceReference<S>, B... | Compute and apply all the modifications bring by the modification of the DeclarationBinderFilter.
<p/>
Find all the DeclarationBinder that are now matching the filter and all that are no more matching the filter.
<ul>
<li>Remove all the links of the ones which are no more matching the DeclarationBinderFilter.</li>
<li>... | 278 | 439 | 992 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b8f39a54e59bb77c43ac3d55c1a66f9797abed8136f52b4d6e521a0db81c2c02 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c27222efe52b0fdfacbbda7b | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBinarySensorCommandClass.java | ZWaveBinarySensorCommandClass.handleApplicationCommandRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveBinarySensorCommandClass.java#L97-L127 | train | java | {@inheritDoc} | @Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle Message Sensor Binary Request");
logger.debug(String.format("Received Sensor Binary Request for Node ID = %d", this.getNode().getNodeId()));
int command = serialMessage.getM... | {@inheritDoc}
@Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle Message Sensor Binary Request");
logger.debug(String.format("Received Sensor Binary Request for Node ID = %d", this.getNode().getNodeId()));
int command = ser... | 305 | 13 | 1,302 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4c31731ffe7b3740322bfe5f8e7945aba0b426a6e639e02df48903d6a806c90e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
43b8322be206b20860c1ac2a | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyZipUtils.java | MyZipUtils.extract | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyZipUtils.java#L43-L83 | train | java | Extracts the zip file to the output folder
@param zipFile ZIP File to extract
@param outputFolder Output Folder
@return A Collection with the extracted files
@throws IOException I/O Error | public static List<File> extract(File zipFile, File outputFolder) throws IOException {
List<File> extracted = new ArrayList<File>();
byte[] buffer = new byte[2048];
if (!outputFolder.exists()) {
outputFolder.mkdir();
}
ZipInputStream zipInput = new ZipInputStream(new FileInputStream(zipFile... | Extracts the zip file to the output folder
@param zipFile ZIP File to extract
@param outputFolder Output Folder
@return A Collection with the extracted files
@throws IOException I/O Error
public static List<File> extract(File zipFile, File outputFolder) throws IOException {
List<File> extracted = new ArrayList<Fi... | 250 | 188 | 985 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 36eb8820931df94ea6d7f09a312ac775f3b7d6bd971cbbd32b46003837bb173a | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
51858c0693df161e407e53ca | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyZipUtils.java | MyZipUtils.validateZip | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyZipUtils.java#L93-L107 | train | java | Checks if a Zip is valid navigating through the entries
@param file File to validate
@throws IOException I/O Error | public static void validateZip(File file) throws IOException {
ZipInputStream zipInput = new ZipInputStream(new FileInputStream(file));
ZipEntry zipEntry = zipInput.getNextEntry();
while (zipEntry != null) {
zipEntry = zipInput.getNextEntry();
}
try {
if (zipInput != null) {
zi... | Checks if a Zip is valid navigating through the entries
@param file File to validate
@throws IOException I/O Error
public static void validateZip(File file) throws IOException {
ZipInputStream zipInput = new ZipInputStream(new FileInputStream(file));
ZipEntry zipEntry = zipInput.getNextEntry();
while (zi... | 110 | 115 | 383 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 43f8bcd3922a734ca6966122bcc1a46606ffe40c6965772ccad5ffc1e84b5f51 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
3afd2b6d6d643f543061a04d | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyZipUtils.java | MyZipUtils.compress | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyZipUtils.java#L116-L126 | train | java | Compress a directory into a zip file
@param dir Directory
@param zipFile ZIP file to create
@throws IOException I/O Error | public static void compress(File dir, File zipFile) throws IOException {
FileOutputStream fos = new FileOutputStream(zipFile);
ZipOutputStream zos = new ZipOutputStream(fos);
recursiveAddZip(dir, zos, dir);
zos.finish();
zos.close();
} | Compress a directory into a zip file
@param dir Directory
@param zipFile ZIP file to create
@throws IOException I/O Error
public static void compress(File dir, File zipFile) throws IOException {
FileOutputStream fos = new FileOutputStream(zipFile);
ZipOutputStream zos = new ZipOutputStream(fos);
recursi... | 86 | 122 | 261 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 81641d3052f1c87657c044610c86315c39d6c7eab82ad4577ed124671f1d3754 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
2a25bfcd2955801e614f5a2c | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyZipUtils.java | MyZipUtils.recursiveAddZip | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyZipUtils.java#L136-L167 | train | java | Recursively add files to a ZipOutputStream
@param parent Parent file
@param zout ZipOutputStream to append
@param fileSource The file source
@throws IOException I/O Error | public static void recursiveAddZip(File parent, ZipOutputStream zout, File fileSource)
throws IOException {
File[] files = fileSource.listFiles();
for (int i = 0; i < files.length; i++) {
if (files[i].isDirectory()) {
recursiveAddZip(parent, zout, files[i]);
continue;
}
... | Recursively add files to a ZipOutputStream
@param parent Parent file
@param zout ZipOutputStream to append
@param fileSource The file source
@throws IOException I/O Error
public static void recursiveAddZip(File parent, ZipOutputStream zout, File fileSource)
throws IOException {
File[] files = fileSource.li... | 218 | 171 | 779 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | babe632bba72330d716fdee4d8fe4c880e1e9789469fcb7def59e70892e74532 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
54a9378ad0c9bf17fa95bedf | ow2-chameleon/fuchsia | examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/TimerService.java | TimerService.getStateVariable | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/TimerService.java#L100-L106 | train | java | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPService#getStateVariable(java.lang.String) | public UPnPStateVariable getStateVariable(String name) {
if (name.equals("Time"))
return time;
else if (name.equals("Result"))
return result;
else return null;
} | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPService#getStateVariable(java.lang.String)
public UPnPStateVariable getStateVariable(String name) {
if (name.equals("Time"))
return time;
else if (name.equals("Result"))
return result;
else return null;
} | 65 | 90 | 174 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f083192ad1ebcb3e774c43b308520dd785fda8d3d8d96d659c1a9f001aa1bf51 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
9380de2a62fb2d2f2096e2ff | ow2-chameleon/fuchsia | bases/protobuffer/cxf-protobuf/src/main/java/com/google/code/cxf/protobuf/binding/ProtobufBindingFactory.java | ProtobufBindingFactory.createBindingInfo | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/protobuffer/cxf-protobuf/src/main/java/com/google/code/cxf/protobuf/binding/ProtobufBindingFactory.java#L69-L79 | train | java | /*
The concept of BindingInfo can not be applied to protocol buffers. Here
we create BindingInfo merely to make this compatible with CXF framework. | public BindingInfo createBindingInfo(Service service, String namespace,
Object obj) {
ServiceInfo si = new ServiceInfo();
si.setTargetNamespace(ProtobufBindingFactory.PROTOBUF_BINDING_ID);
BindingInfo info = new BindingInfo(si,
ProtobufB... | /*
The concept of BindingInfo can not be applied to protocol buffers. Here
we create BindingInfo merely to make this compatible with CXF framework.
public BindingInfo createBindingInfo(Service service, String namespace,
Object obj) {
ServiceInfo si = new ServiceInfo();... | 99 | 147 | 383 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 38585cf680e19279381dadf184d4d5008689b17045b0638098962a03e5a43756 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
2638d091a4d3671ef6b56426 | usc/wechat-mp-sdk | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/ReplyUtil.java | ReplyUtil.getDummyTextReplyDetailWarpper | https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/ReplyUtil.java#L65-L71 | train | java | dummy reply. please according to your own situation to build ReplyDetailWarpper, and remove those code in production. | public static ReplyDetailWarpper getDummyTextReplyDetailWarpper() {
ReplyDetail replyDetail = new ReplyDetail();
replyDetail.setDescription("欢迎订阅javatech,这是微信公众平台开发模式的一个尝试,更多详情请见 https://github.com/usc/wechat-mp-sdk \n" +
"Welcome subscribe javatech, this is an attempt to development mod... | dummy reply. please according to your own situation to build ReplyDetailWarpper, and remove those code in production.
public static ReplyDetailWarpper getDummyTextReplyDetailWarpper() {
ReplyDetail replyDetail = new ReplyDetail();
replyDetail.setDescription("欢迎订阅javatech,这是微信公众平台开发模式的一个尝试,更多详情请见 https:... | 160 | 117 | 506 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 06741d22f533aacd446154e9eb27388e6675404f91bcddba57e0ec4398da7b17 | Apache-2.0 | permissive | https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt |
ecafbf87f4cbfd3e586ad36c | usc/wechat-mp-sdk | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/ReplyUtil.java | ReplyUtil.getDummyNewsReplyDetailWarpper | https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/ReplyUtil.java#L76-L90 | train | java | dummy reply. please according to your own situation to build ReplyDetailWarpper, and remove those code in production. | public static ReplyDetailWarpper getDummyNewsReplyDetailWarpper() {
ReplyDetail replyDetail1 = new ReplyDetail();
replyDetail1.setTitle("fork me");
replyDetail1.setMediaUrl("http://c.hiphotos.baidu.com/baike/c%3DbaikeA4%2C10%2C95/sign=c1767bbf4b36acaf4de0c1ad15b2e851/29381f30e924b899a39841be6e06... | dummy reply. please according to your own situation to build ReplyDetailWarpper, and remove those code in production.
public static ReplyDetailWarpper getDummyNewsReplyDetailWarpper() {
ReplyDetail replyDetail1 = new ReplyDetail();
replyDetail1.setTitle("fork me");
replyDetail1.setMediaUrl("htt... | 296 | 117 | 940 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1ddba803ceb759625096d83a9fa42494372b739e172abb131b2ea4bc8f9dd220 | Apache-2.0 | permissive | https://github.com/usc/wechat-mp-sdk/blob/master/LICENSE.txt |
a8baf319f8b8c40b33fea332 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/medium/RawFrameFactory.java | RawFrameFactory.create | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/medium/RawFrameFactory.java#L87-L104 | train | java | Creates a raw frame out of a byte array for the specified communication medium.
<p>
This method just invokes one of the other medium type specific creation methods
according the given medium type.
@param mediumType KNX communication medium, one of the media types declared in
{@link KNXMediumSettings}
@param data byte ... | public static RawFrame create(int mediumType, byte[] data, int offset)
throws KNXFormatException
{
switch (mediumType) {
case KNXMediumSettings.MEDIUM_TP0:
throw new KNXFormatException("TP0 raw frame not supported yet");
case KNXMediumSettings.MEDIUM_TP1:
return createTP1(data, offset);
case KN... | Creates a raw frame out of a byte array for the specified communication medium.
<p>
This method just invokes one of the other medium type specific creation methods
according the given medium type.
@param mediumType KNX communication medium, one of the media types declared in
{@link KNXMediumSettings}
@param data byte ... | 299 | 619 | 673 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 77fe473011d549a8d95a21c088339dade564a5681a59ae75895405495d409344 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
032d870bad374f0b027abc53 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/medium/RawFrameFactory.java | RawFrameFactory.createPL110 | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/medium/RawFrameFactory.java#L140-L145 | train | java | Creates a raw frame out of a byte array for the PL110 communication medium.
<p>
@param data byte array containing the PL110 raw frame structure
@param offset start offset of frame structure in <code>data</code>, 0 <=
offset < <code>data.length</code>
@return the created PL110 raw frame
@throws KNXFormatException... | public static RawFrame createPL110(byte[] data, int offset) throws KNXFormatException
{
if ((data[0] & 0x10) == 0x10)
return new PL110LData(data, offset);
return new PL110Ack(data, offset);
} | Creates a raw frame out of a byte array for the PL110 communication medium.
<p>
@param data byte array containing the PL110 raw frame structure
@param offset start offset of frame structure in <code>data</code>, 0 <=
offset < <code>data.length</code>
@return the created PL110 raw frame
@throws KNXFormatException... | 145 | 348 | 205 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 42db8300ec59e7319ea4a3737dcd3af87db7237c8c10960b05a55f3eb32fb1e2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0318894b9a20c4a224d1a38b | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/medium/RawFrameFactory.java | RawFrameFactory.createPL132 | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/medium/RawFrameFactory.java#L157-L162 | train | java | Creates a raw frame out of a byte array for the PL132 communication medium.
<p>
@param data byte array containing the PL132 raw frame structure
@param offset start offset of frame structure in <code>data</code>, 0 <=
offset < <code>data.length</code>
@return the created PL132 raw frame
@throws KNXFormatException... | public static RawFrame createPL132(byte[] data, int offset) throws KNXFormatException
{
if (data.length - offset == 2)
return new PL132Ack(data, offset);
return new PL132LData(data, offset);
} | Creates a raw frame out of a byte array for the PL132 communication medium.
<p>
@param data byte array containing the PL132 raw frame structure
@param offset start offset of frame structure in <code>data</code>, 0 <=
offset < <code>data.length</code>
@return the created PL132 raw frame
@throws KNXFormatException... | 137 | 348 | 206 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fe7609d161638f3b64f63cd00b4ed93445746ebc550456db485513e41270e4e8 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
926c29a1662d69798747c190 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/Datapoint.java | Datapoint.create | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/Datapoint.java#L176-L186 | train | java | Creates a new datapoint from XML input.
<p>
If the current XML element position is no start tag, the next element tag is read.
The datapoint element is then expected to be the current element in the reader.
@param r a XML reader
@return the created datapoint, either of type {@link StateDP} or {@link CommandDP}
@throws... | public static Datapoint create(XMLReader r) throws KNXMLException
{
if (r.getPosition() != XMLReader.START_TAG)
r.read();
if (r.getPosition() == XMLReader.START_TAG) {
if (readDPType(r))
return new StateDP(r);
return new CommandDP(r);
}
throw new KNXMLException("no KNX datapoint", null, r... | Creates a new datapoint from XML input.
<p>
If the current XML element position is no start tag, the next element tag is read.
The datapoint element is then expected to be the current element in the reader.
@param r a XML reader
@return the created datapoint, either of type {@link StateDP} or {@link CommandDP}
@throws... | 185 | 401 | 342 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6c7f8fcab3be1922d485564ce83607d56317222628ab9465a07216b55e4dd9e6 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d382bf76c5fa57c153bda966 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/Datapoint.java | Datapoint.save | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/Datapoint.java#L306-L325 | train | java | Saves this datapoint in XML format to the supplied XML writer.
<p>
@param w a XML writer
@throws KNXMLException on error saving this datapoint | public void save(XMLWriter w) throws KNXMLException
{
/* XML layout:
<datapoint stateBased=[true|false] name=string mainNumber=int dptID=string
priority=string>
knxAddress
...
</datapoint>
*/
final List att = new ArrayList();
att.add(new Attribute(ATTR_STATEBASED, Boolean.toString(stat... | Saves this datapoint in XML format to the supplied XML writer.
<p>
@param w a XML writer
@throws KNXMLException on error saving this datapoint
public void save(XMLWriter w) throws KNXMLException
{
/* XML layout:
<datapoint stateBased=[true|false] name=string mainNumber=int dptID=string
priority=string>
... | 216 | 143 | 673 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fb30467f0216c11c132ca851eab2a29c5cf47725e12901756bc4e8de13b2882c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
7178ac67c0580d21fce0e753 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/Datapoint.java | Datapoint.readDPType | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/datapoint/Datapoint.java#L348-L357 | train | java | /* returns true for state based DP, false for command based DP | private static boolean readDPType(XMLReader r) throws KNXMLException
{
final String a = r.getCurrent().getAttribute(ATTR_STATEBASED);
if ("false".equalsIgnoreCase(a))
return false;
if ("true".equalsIgnoreCase(a))
return true;
throw new KNXMLException("malformed attribute " + ATTR_STATEBASED, a, r
... | /* returns true for state based DP, false for command based DP
private static boolean readDPType(XMLReader r) throws KNXMLException
{
final String a = r.getCurrent().getAttribute(ATTR_STATEBASED);
if ("false".equalsIgnoreCase(a))
return false;
if ("true".equalsIgnoreCase(a))
return true;
throw ne... | 98 | 62 | 346 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c5ba6b253d6c184c91f3bbfdf0e0872615b3d9121168c12187119e48f82a9dc7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3dbb3034f71ff84a625c7da0 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStreamUtils.java | MyStreamUtils.readContent | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStreamUtils.java#L42-L58 | train | java | Gets string content from InputStream
@param is InputStream to read
@return InputStream content | public static String readContent(InputStream is) {
String ret = "";
try {
String line;
BufferedReader in = new BufferedReader(new InputStreamReader(is));
StringBuffer out = new StringBuffer();
while ((line = in.readLine()) != null) {
out.append(line).append(CARRIAGE_RETURN);
... | Gets string content from InputStream
@param is InputStream to read
@return InputStream content
public static String readContent(InputStream is) {
String ret = "";
try {
String line;
BufferedReader in = new BufferedReader(new InputStreamReader(is));
StringBuffer out = new StringBuffer();
... | 106 | 95 | 434 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7209fc3b545c96a24abad289c28e1a426f6358b199f29425026ee50a403bd482 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
bdcbf165c45115bd3ba98727 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStreamUtils.java | MyStreamUtils.streamHasText | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyStreamUtils.java#L89-L116 | train | java | Checks if the InputStream have the text
@param in InputStream to read
@param text Text to check
@return whether the inputstream has the text | public static boolean streamHasText(InputStream in, String text) {
final byte[] readBuffer = new byte[8192];
StringBuffer sb = new StringBuffer();
try {
if (in.available() > 0) {
int bytesRead = 0;
while ((bytesRead = in.read(readBuffer)) != -1) {
sb.append(new String(readBu... | Checks if the InputStream have the text
@param in InputStream to read
@param text Text to check
@return whether the inputstream has the text
public static boolean streamHasText(InputStream in, String text) {
final byte[] readBuffer = new byte[8192];
StringBuffer sb = new StringBuffer();
try {
if (i... | 182 | 141 | 667 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 81b3492bc3209fb4a0197a7af04d18fa5b9cc9a38058a9d676a0f5af6e83a6b9 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
ea9972e906c5c83ac13a4e7b | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator2ByteFloat.java | DPTXlator2ByteFloat.getData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator2ByteFloat.java#L301-L384 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int) | public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) & ~0x01;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
* @see tuwien.auto.calimero.dptxlator.DPTXlator#getSubTypes()
*/
public Map getS... | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int)
public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) & ~0x01;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
... | 763 | 83 | 2,276 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 205e104f8ab220c2010c76589af79acec9254a85478f4f80118cb76f123fb975 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3f60c3288c65b3da35a666eb | ow2-chameleon/fuchsia | discoveries/philips-hue/src/main/java/org/ow2/chameleon/fuchsia/discovery/philipshue/PhilipsPreference.java | PhilipsPreference.tryWritePreferenceOnDisk | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/discoveries/philips-hue/src/main/java/org/ow2/chameleon/fuchsia/discovery/philipshue/PhilipsPreference.java#L69-L75 | train | java | This ensures that we are able to use the default preference from JSDK, to check basically if we are in Android or Not
@param preference
@throws BackingStoreException | private static void tryWritePreferenceOnDisk(Preferences preference) throws BackingStoreException {
final String DUMMY_PROP="dummywrite";
instance.put(DUMMY_PROP,"test");
instance.flush();
instance.remove(DUMMY_PROP);
instance.flush();
} | This ensures that we are able to use the default preference from JSDK, to check basically if we are in Android or Not
@param preference
@throws BackingStoreException
private static void tryWritePreferenceOnDisk(Preferences preference) throws BackingStoreException {
final String DUMMY_PROP="dummywrite";
... | 90 | 165 | 281 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c6cd3ebada424ea2c28519ec1fd6f7753524b197fc5de815a0b69d2fb0876eaa | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f253d7a242ed4b565349f11b | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java | KNXNetworkLinkFT12.sendRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java#L253-L257 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#sendRequest
(tuwien.auto.calimero.KNXAddress, tuwien.auto.calimero.Priority, byte[]) | public void sendRequest(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXTimeoutException, KNXLinkClosedException
{
doSend(createEMI(CEMILData.MC_LDATA_REQ, dst, p, nsdu), false, dst);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#sendRequest
(tuwien.auto.calimero.KNXAddress, tuwien.auto.calimero.Priority, byte[])
public void sendRequest(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXTimeoutException, KNXLinkClosedException
{
doSend(createEMI(CEMILData.MC_LDATA_REQ, dst,... | 108 | 147 | 198 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2aa50c6f79246a129a0547cb85aff17212651cfb71fec5fc506c46609f50e70c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
bacc38829fd4983023c9efe9 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java | KNXNetworkLinkFT12.sendRequestWait | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java#L263-L267 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#sendRequestWait
(tuwien.auto.calimero.KNXAddress, tuwien.auto.calimero.Priority, byte[]) | public void sendRequestWait(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXTimeoutException, KNXLinkClosedException
{
doSend(createEMI(CEMILData.MC_LDATA_REQ, dst, p, nsdu), true, dst);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#sendRequestWait
(tuwien.auto.calimero.KNXAddress, tuwien.auto.calimero.Priority, byte[])
public void sendRequestWait(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXTimeoutException, KNXLinkClosedException
{
doSend(createEMI(CEMILData.MC_LDATA_R... | 110 | 151 | 201 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9802ebd7df96745044ca84ddab8b7edd6909a66bd03ceaf133e4b18e9d1aee63 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
07bcdc205e85bce3350d7c49 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java | KNXNetworkLinkFT12.send | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java#L273-L277 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#send
(tuwien.auto.calimero.cemi.CEMILData, boolean) | public void send(CEMILData msg, boolean waitForCon) throws KNXTimeoutException,
KNXLinkClosedException
{
doSend(createEMI(msg), waitForCon, msg.getDestination());
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#send
(tuwien.auto.calimero.cemi.CEMILData, boolean)
public void send(CEMILData msg, boolean waitForCon) throws KNXTimeoutException,
KNXLinkClosedException
{
doSend(createEMI(msg), waitForCon, msg.getDestination());
} | 85 | 114 | 174 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5740fdf85f18fd3e4297f39c85a4faea49e466e5df9b6a4a2198284aceb75d87 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1e0e10eac1de577568cc77eb | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java | KNXNetworkLinkFT12.close | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java#L298-L313 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#close() | public void close()
{
synchronized (this) {
if (closed)
return;
closed = true;
}
try {
normalMode();
}
catch (final KNXException e) {
logger.error("could not switch BCU back to normal mode", e);
}
conn.close();
notifier.quit();
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#close()
public void close()
{
synchronized (this) {
if (closed)
return;
closed = true;
}
try {
normalMode();
}
catch (final KNXException e) {
logger.error("could not switch BCU back to normal mode", e);
}
conn.cl... | 102 | 70 | 278 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | da721ca66b7b31c3b9c8b522545aec56c7d4931b8a198eac3f818bc00c7755bd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1d279742e02e80105b98fb2f | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java | KNXNetworkLinkFT12.doSend | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkFT12.java#L377-L393 | train | java | dst is just for log information | private void doSend(byte[] msg, boolean wait, KNXAddress dst)
throws KNXAckTimeoutException, KNXLinkClosedException
{
if (closed)
throw new KNXLinkClosedException("link closed");
try {
logger.info("send message to " + dst + (wait ? ", wait for ack" : ""));
logger.trace("EMI " + DataUnitBuilder.to... | dst is just for log information
private void doSend(byte[] msg, boolean wait, KNXAddress dst)
throws KNXAckTimeoutException, KNXLinkClosedException
{
if (closed)
throw new KNXLinkClosedException("link closed");
try {
logger.info("send message to " + dst + (wait ? ", wait for ack" : ""));
logger.... | 171 | 31 | 604 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7f33e80a2071881fc2dabd8a57247a0a42e2b6c3e6d512961bdad069674eb955 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ecb8a412a3120cd2aeb64b58 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/SerialMessage.java | SerialMessage.bb2hex | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/SerialMessage.java#L192-L198 | train | java | Converts a byte array to a hexadecimal string representation
@param bb the byte array to convert
@return string the string representation | static public String bb2hex(byte[] bb) {
String result = "";
for (int i=0; i<bb.length; i++) {
result = result + String.format("%02X ", bb[i]);
}
return result;
} | Converts a byte array to a hexadecimal string representation
@param bb the byte array to convert
@return string the string representation
static public String bb2hex(byte[] bb) {
String result = "";
for (int i=0; i<bb.length; i++) {
result = result + String.format("%02X ", bb[i]);
}
return result;
} | 80 | 137 | 174 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 19bdd855af556ce2e7dfa72f4affef8fed272e4e6e81c30cd9f05952932fc917 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.