code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected String getSerializerClass(String resource, String urlLastElement) {
String serializerClass = null;
String extension = this.utils.getExtension(urlLastElement);
if (extension != null) {
SerializerFinder finder = new SerializerFinder(config, extension);
serializerClass = fi... | public class class_name {
protected String getSerializerClass(String resource, String urlLastElement) {
String serializerClass = null;
String extension = this.utils.getExtension(urlLastElement);
if (extension != null) {
SerializerFinder finder = new SerializerFinder(config, extension);
serializerClass = fi... |
public class class_name {
public static String getInput(String prompt) {
System.out.print(prompt);
try {
BufferedReader in =
new BufferedReader(new InputStreamReader(System.in));
return in.readLine();
} catch(IOException e) {
return null;
... | public class class_name {
public static String getInput(String prompt) {
System.out.print(prompt);
try {
BufferedReader in =
new BufferedReader(new InputStreamReader(System.in));
return in.readLine(); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public boolean accept(Message message) {
Content content = message.getContent();
if (!userPredicate.test(message.getSender())) {
return false;
}
if (endPredicate != null && endPredicate.test(context, content)) {
end();
retu... | public class class_name {
public boolean accept(Message message) {
Content content = message.getContent();
if (!userPredicate.test(message.getSender())) {
return false; // depends on control dependency: [if], data = [none]
}
if (endPredicate != null && endPredicate.test(co... |
public class class_name {
@Override
public void moveObject(final FedoraSession session, final String source, final String destination) {
final Session jcrSession = getJcrSession(session);
try {
final FedoraResource srcResource = find(session, source);
final Node sourceNode =... | public class class_name {
@Override
public void moveObject(final FedoraSession session, final String source, final String destination) {
final Session jcrSession = getJcrSession(session);
try {
final FedoraResource srcResource = find(session, source);
final Node sourceNode =... |
public class class_name {
public boolean skipUntil(long txid) throws IOException {
while (true) {
FSEditLogOp op = readOp();
if (op == null) {
return false;
}
if (op.getTransactionId() >= txid) {
cachedOp = op;
return true;
}
}
} } | public class class_name {
public boolean skipUntil(long txid) throws IOException {
while (true) {
FSEditLogOp op = readOp();
if (op == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (op.getTransactionId() >= txid) {
cachedOp = op; // depends... |
public class class_name {
public void setDataFormat(final String pattern, final CellFormatter cellFormatter) {
String currentPattern = POIUtils.getCellFormatPattern(cell, cellFormatter);
if(currentPattern.equalsIgnoreCase(pattern)) {
// 既に書式が同じ場合
return;
}
... | public class class_name {
public void setDataFormat(final String pattern, final CellFormatter cellFormatter) {
String currentPattern = POIUtils.getCellFormatPattern(cell, cellFormatter);
if(currentPattern.equalsIgnoreCase(pattern)) {
// 既に書式が同じ場合
return;
// depends on con... |
public class class_name {
public final BELScriptParser.argument_return argument() throws RecognitionException {
BELScriptParser.argument_return retval = new BELScriptParser.argument_return();
retval.start = input.LT(1);
Object root_0 = null;
BELScriptParser.param_return param62 = null... | public class class_name {
public final BELScriptParser.argument_return argument() throws RecognitionException {
BELScriptParser.argument_return retval = new BELScriptParser.argument_return();
retval.start = input.LT(1);
Object root_0 = null;
BELScriptParser.param_return param62 = null... |
public class class_name {
@Override
public Boolean parameterAsBoolean(String name, boolean defaultValue) {
// We have to check if the map contains the key, as the retrieval method returns false on missing key.
if (!request.params().contains(name)) {
return defaultValue;
}
... | public class class_name {
@Override
public Boolean parameterAsBoolean(String name, boolean defaultValue) {
// We have to check if the map contains the key, as the retrieval method returns false on missing key.
if (!request.params().contains(name)) {
return defaultValue; // depends on co... |
public class class_name {
static boolean arraySame(Object[] array1, Object[] array2)
{
if (array1 == null || array2 == null || array1.length != array2.length) {
throw new IllegalArgumentException("array1 and array2 cannot be null and should have same length");
}
for (int i = 0;... | public class class_name {
static boolean arraySame(Object[] array1, Object[] array2)
{
if (array1 == null || array2 == null || array1.length != array2.length) {
throw new IllegalArgumentException("array1 and array2 cannot be null and should have same length");
}
for (int i = 0;... |
public class class_name {
public static <S extends Sequence<S>> S wildcardsToRandomBasic(S sequence, long seed) {
Alphabet<S> alphabet = sequence.getAlphabet();
SequenceBuilder<S> sequenceBuilder = alphabet.createBuilder().ensureCapacity(sequence.size());
for (int i = 0; i < sequence.size(); ++... | public class class_name {
public static <S extends Sequence<S>> S wildcardsToRandomBasic(S sequence, long seed) {
Alphabet<S> alphabet = sequence.getAlphabet();
SequenceBuilder<S> sequenceBuilder = alphabet.createBuilder().ensureCapacity(sequence.size());
for (int i = 0; i < sequence.size(); ++... |
public class class_name {
private void createQuickBox() {
if (hasQuickSearch() || hasQuickFilter()) {
m_quickSearch = new CmsTextBox();
// m_quickFilter.setVisible(hasQuickFilter());
m_quickSearch.addStyleName(DIALOG_CSS.quickFilterBox());
m_quickSearch.setTri... | public class class_name {
private void createQuickBox() {
if (hasQuickSearch() || hasQuickFilter()) {
m_quickSearch = new CmsTextBox(); // depends on control dependency: [if], data = [none]
// m_quickFilter.setVisible(hasQuickFilter());
m_quickSearch.addStyleName(DIALOG_C... |
public class class_name {
@SuppressWarnings("WeakerAccess")
public static void reverse(int[] order, int offset, int length) {
for (int i = 0; i < length / 2; i++) {
int t = order[offset + i];
order[offset + i] = order[offset + length - i - 1];
order[offset + length - i -... | public class class_name {
@SuppressWarnings("WeakerAccess")
public static void reverse(int[] order, int offset, int length) {
for (int i = 0; i < length / 2; i++) {
int t = order[offset + i];
order[offset + i] = order[offset + length - i - 1]; // depends on control dependency: [for]... |
public class class_name {
private void afterIndexFsync(Result<Boolean> result,
FsyncType fsyncType,
ArrayList<SegmentFsyncCallback> fsyncListeners)
{
try {
// completePendingEntries(_position);
if (fsyncType.isClose()) {
_isClosed ... | public class class_name {
private void afterIndexFsync(Result<Boolean> result,
FsyncType fsyncType,
ArrayList<SegmentFsyncCallback> fsyncListeners)
{
try {
// completePendingEntries(_position);
if (fsyncType.isClose()) {
_isClosed ... |
public class class_name {
public StrPosition getBeforeOfWithDetails(String srcStr, String token) {
final StrPosition retVal = new StrPosition();
if (isBlank(srcStr) || isBlank(token)) {
return retVal;
}
int tokenStartIndex = srcStr.indexOf(token);
if (tok... | public class class_name {
public StrPosition getBeforeOfWithDetails(String srcStr, String token) {
final StrPosition retVal = new StrPosition();
if (isBlank(srcStr) || isBlank(token)) {
return retVal;
// depends on control dependency: [if], data = [none]
}
int tok... |
public class class_name {
public static <T> Predicate<T> isEqual( final Object obj ) {
if (obj == null) {
return new Predicate<T>() {
@Override
public boolean test( T input ) {
return input == null;
}
};
}
... | public class class_name {
public static <T> Predicate<T> isEqual( final Object obj ) {
if (obj == null) {
return new Predicate<T>() {
@Override
public boolean test( T input ) {
return input == null;
}
}; // depends on c... |
public class class_name {
public String ensureHeadingIds(String content, String idSeparator) {
Element body = parseContent(content);
// first find all existing IDs (to avoid generating duplicates)
List<Element> idElems = body.select("*[id]");
Set<String> ids = new HashSet<String>();
boolean modified = fa... | public class class_name {
public String ensureHeadingIds(String content, String idSeparator) {
Element body = parseContent(content);
// first find all existing IDs (to avoid generating duplicates)
List<Element> idElems = body.select("*[id]");
Set<String> ids = new HashSet<String>();
boolean modified = fa... |
public class class_name {
public static String readRequestBodyFromStream(final HttpServletRequest request) throws IOException {
String charEncoding = request.getCharacterEncoding();
if (charEncoding == null) {
charEncoding = JoddCore.encoding;
}
CharArrayWriter charArrayWriter = new CharArrayWriter();
Buf... | public class class_name {
public static String readRequestBodyFromStream(final HttpServletRequest request) throws IOException {
String charEncoding = request.getCharacterEncoding();
if (charEncoding == null) {
charEncoding = JoddCore.encoding;
}
CharArrayWriter charArrayWriter = new CharArrayWriter();
Buf... |
public class class_name {
@Override
public void process(GrayF32 intensityImage, @Nullable QueueCorner localMin, @Nullable QueueCorner localMax) {
if( localMin != null )
localMin.reset();
if( localMax != null )
localMax.reset();
// the defines the region that can be processed
int endX = intensityImage.... | public class class_name {
@Override
public void process(GrayF32 intensityImage, @Nullable QueueCorner localMin, @Nullable QueueCorner localMax) {
if( localMin != null )
localMin.reset();
if( localMax != null )
localMax.reset();
// the defines the region that can be processed
int endX = intensityImage.... |
public class class_name {
@JsonIgnore
public void encodeAndSetContent(byte[] byteContent) {
if (byteContent == null) {
this.content = null;
return;
}
this.content = Base64.getEncoder().encodeToString(byteContent);
encoding = "base64";
} } | public class class_name {
@JsonIgnore
public void encodeAndSetContent(byte[] byteContent) {
if (byteContent == null) {
this.content = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.co... |
public class class_name {
private JsonEncoding getJsonEncoding(MediaType contentType) {
if (contentType != null && contentType.getCharset() != null) {
Charset charset = contentType.getCharset();
for (JsonEncoding encoding : JsonEncoding.values()) {
if (charset.name().equals(encoding.getJavaName())) {
... | public class class_name {
private JsonEncoding getJsonEncoding(MediaType contentType) {
if (contentType != null && contentType.getCharset() != null) {
Charset charset = contentType.getCharset();
for (JsonEncoding encoding : JsonEncoding.values()) {
if (charset.name().equals(encoding.getJavaName())) {
... |
public class class_name {
public static Long safeJsonToLong(Object obj) {
Long longValue = null;
try {
String str = safeJsonToString(obj);
longValue = str != null ? Long.parseLong(str) : null;
} catch (NumberFormatException e) {
LOGGER.warn("Safe JSON conver... | public class class_name {
public static Long safeJsonToLong(Object obj) {
Long longValue = null;
try {
String str = safeJsonToString(obj);
longValue = str != null ? Long.parseLong(str) : null; // depends on control dependency: [try], data = [none]
} catch (NumberFormatE... |
public class class_name {
public List<FogbugzEvent> getEventsForCase(int id) {
try {
HashMap<String, String> params = new HashMap<String, String>(); // Hashmap defaults to <String, String>
params.put("cmd", "search");
params.put("q", Integer.toString(id));
param... | public class class_name {
public List<FogbugzEvent> getEventsForCase(int id) {
try {
HashMap<String, String> params = new HashMap<String, String>(); // Hashmap defaults to <String, String>
params.put("cmd", "search"); // depends on control dependency: [try], data = [none]
p... |
public class class_name {
public EClass getIfcShapeModel() {
if (ifcShapeModelEClass == null) {
ifcShapeModelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(511);
}
return ifcShapeModelEClass;
} } | public class class_name {
public EClass getIfcShapeModel() {
if (ifcShapeModelEClass == null) {
ifcShapeModelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(511);
// depends on control dependency: [if], data = [none]
}
return ifcShapeModelECl... |
public class class_name {
public List<Excerpt> getAccessorAnnotations() {
if (accessorAnnotations instanceof ImmutableList) {
accessorAnnotations = new ArrayList<>(accessorAnnotations);
}
return Collections.unmodifiableList(accessorAnnotations);
} } | public class class_name {
public List<Excerpt> getAccessorAnnotations() {
if (accessorAnnotations instanceof ImmutableList) {
accessorAnnotations = new ArrayList<>(accessorAnnotations); // depends on control dependency: [if], data = [none]
}
return Collections.unmodifiableList(accessorAnnotations);
... |
public class class_name {
private void injectCache(DoubleConsumer cacheAware) {
if (cacheAware instanceof CacheAware) {
((CacheAware) cacheAware).injectCache(registry.getComponent(Cache.class));
}
} } | public class class_name {
private void injectCache(DoubleConsumer cacheAware) {
if (cacheAware instanceof CacheAware) {
((CacheAware) cacheAware).injectCache(registry.getComponent(Cache.class)); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private static int determineCommandNameWidth(List<Command.Descriptor> descriptors) {
int max = 0;
for (Command.Descriptor d : descriptors) {
max = Math.max(max, d.getName().length());
}
return max;
} } | public class class_name {
private static int determineCommandNameWidth(List<Command.Descriptor> descriptors) {
int max = 0;
for (Command.Descriptor d : descriptors) {
max = Math.max(max, d.getName().length()); // depends on control dependency: [for], data = [d]
}
return max;
} } |
public class class_name {
public UTF8String translate(Map<Character, Character> dict) {
String srcStr = this.toString();
StringBuilder sb = new StringBuilder();
for(int k = 0; k< srcStr.length(); k++) {
if (null == dict.get(srcStr.charAt(k))) {
sb.append(srcStr.charAt(k));
} else if ('... | public class class_name {
public UTF8String translate(Map<Character, Character> dict) {
String srcStr = this.toString();
StringBuilder sb = new StringBuilder();
for(int k = 0; k< srcStr.length(); k++) {
if (null == dict.get(srcStr.charAt(k))) {
sb.append(srcStr.charAt(k)); // depends on cont... |
public class class_name {
public int numberOfRunsAdjustment() {
int ans = 0;
if (BufferUtil.isBackedBySimpleArray(bitmap)) {
long[] b = bitmap.array();
long nextWord = b[0];
for (int i = 0; i < b.length - 1; i++) {
final long word = nextWord;
nextWord = b[i + 1];
ans ... | public class class_name {
public int numberOfRunsAdjustment() {
int ans = 0;
if (BufferUtil.isBackedBySimpleArray(bitmap)) {
long[] b = bitmap.array();
long nextWord = b[0];
for (int i = 0; i < b.length - 1; i++) {
final long word = nextWord;
nextWord = b[i + 1]; // depends o... |
public class class_name {
public BaseLuceneStorage setIndexManager(IndexManager indexManager) {
if (this.indexManager != null && myOwnIndexManager) {
this.indexManager.close();
myOwnIndexManager = false;
}
this.indexManager = indexManager;
return this;
} } | public class class_name {
public BaseLuceneStorage setIndexManager(IndexManager indexManager) {
if (this.indexManager != null && myOwnIndexManager) {
this.indexManager.close(); // depends on control dependency: [if], data = [none]
myOwnIndexManager = false; // depends on control depende... |
public class class_name {
public Action getAction(String url, String[] urlPara) {
Action action = mapping.get(url);
if (action != null) {
return action;
}
// --------
int i = url.lastIndexOf('/');
if (i != -1) {
action = mapping.get(url.substring(0, i));
if (action != null) {
url... | public class class_name {
public Action getAction(String url, String[] urlPara) {
Action action = mapping.get(url);
if (action != null) {
return action;
// depends on control dependency: [if], data = [none]
}
// --------
int i = url.lastIndexOf('/');
if (i != -1) {
action = mapping.get(ur... |
public class class_name {
protected String getLanguageSimpleName() {
final String name = getGrammar().getName();
final int index = name.lastIndexOf('.');
if (index > 0) {
return name.substring(index + 1);
}
return name;
} } | public class class_name {
protected String getLanguageSimpleName() {
final String name = getGrammar().getName();
final int index = name.lastIndexOf('.');
if (index > 0) {
return name.substring(index + 1); // depends on control dependency: [if], data = [(index]
}
return name;
} } |
public class class_name {
@FFDCIgnore(NoSuchMethodException.class)
public Object activateEndpoint(WSMessageEndpointFactory mef,
@Sensitive Properties activationProperties,
String authenticationAlias,
String des... | public class class_name {
@FFDCIgnore(NoSuchMethodException.class)
public Object activateEndpoint(WSMessageEndpointFactory mef,
@Sensitive Properties activationProperties,
String authenticationAlias,
String des... |
public class class_name {
public static String toStringPart(Field field) {
String getterName;
if (field.isMap()) {
getterName = getMapGetterName(field);
} else if (field.isRepeated()) {
getterName = getRepeatedFieldGetterName(field);
} else {
getterNa... | public class class_name {
public static String toStringPart(Field field) {
String getterName;
if (field.isMap()) {
getterName = getMapGetterName(field); // depends on control dependency: [if], data = [none]
} else if (field.isRepeated()) {
getterName = getRepeatedFieldGe... |
public class class_name {
private boolean isSelectMany(String textToCheckParam) {
if(textToCheckParam == null || textToCheckParam.trim().isEmpty()) {
return false;
}
String toCheckLower = textToCheckParam.toLowerCase();
return toCheckLower.startsWith(SELECT_MANY.toLowerCase());
} } | public class class_name {
private boolean isSelectMany(String textToCheckParam) {
if(textToCheckParam == null || textToCheckParam.trim().isEmpty()) {
return false; // depends on control dependency: [if], data = [none]
}
String toCheckLower = textToCheckParam.toLowerCase();
return toCheckLower.startsWith(SE... |
public class class_name {
static ArrayList<DbStats> getDbStats() {
ArrayList<DbStats> dbStatsList = new ArrayList<DbStats>();
for (SQLiteDatabase db : getActiveDatabases()) {
db.collectDbStats(dbStatsList);
}
return dbStatsList;
} } | public class class_name {
static ArrayList<DbStats> getDbStats() {
ArrayList<DbStats> dbStatsList = new ArrayList<DbStats>();
for (SQLiteDatabase db : getActiveDatabases()) {
db.collectDbStats(dbStatsList); // depends on control dependency: [for], data = [db]
}
return dbStat... |
public class class_name {
public synchronized File getLogFile() {
File dir = getStorageDir();
if (dir == null) {
Log.e(TAG, "Unable to open log file from external storage");
return null;
}
switch (wraper.nameFormat) {
case WrapFormatter.NAME_FORMAT_... | public class class_name {
public synchronized File getLogFile() {
File dir = getStorageDir();
if (dir == null) {
Log.e(TAG, "Unable to open log file from external storage"); // depends on control dependency: [if], data = [none]
return null; // depends on control dependency: [if... |
public class class_name {
public JobUpdateOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null;
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate);
}
return this;
} } | public class class_name {
public JobUpdateOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null; // depends on control dependency: [if], data = [none]
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate); // depends on control dependency: [if], data ... |
public class class_name {
public int run(String argv[]) throws Exception {
if (argv.length < 1) {
printUsage("");
return -1;
}
int exitCode = -1;
int i = 0;
String cmd = argv[i++];
//
// verify that we have enough command line parameters
//
if ("-showConfig".equals(cmd... | public class class_name {
public int run(String argv[]) throws Exception {
if (argv.length < 1) {
printUsage("");
return -1;
}
int exitCode = -1;
int i = 0;
String cmd = argv[i++];
//
// verify that we have enough command line parameters
//
if ("-showConfig".equals(cmd... |
public class class_name {
static void decrementKey(byte[] key)
{
for (int i = key.length - 1; i >= 0; i--) {
int v = key[i] & 0xff;
if (v > 0) {
key[i] = (byte) (v - 1);
return;
}
key[i] = (byte) 0xff;
}
} } | public class class_name {
static void decrementKey(byte[] key)
{
for (int i = key.length - 1; i >= 0; i--) {
int v = key[i] & 0xff;
if (v > 0) {
key[i] = (byte) (v - 1); // depends on control dependency: [if], data = [(v]
return; // depends on control dependency: [if], data = [... |
public class class_name {
private static byte[] digest(final byte[] input, final String algorithm, final byte[] salt, final int iterations) {
try {
MessageDigest digest = MessageDigest.getInstance(algorithm);
if (salt != null) {
digest.update(salt);
}
byte[] result = digest.digest(input);
for (... | public class class_name {
private static byte[] digest(final byte[] input, final String algorithm, final byte[] salt, final int iterations) {
try {
MessageDigest digest = MessageDigest.getInstance(algorithm);
if (salt != null) {
digest.update(salt); // depends on control dependency: [if], data = [(salt]
... |
public class class_name {
public String create( JClassType interfaceClass ) throws UnableToCompleteException {
// We concatenate the name of all the enclosing class.
StringBuilder builder = new StringBuilder( interfaceClass.getSimpleSourceName() + "Impl" );
JClassType enclosingType = interfaceC... | public class class_name {
public String create( JClassType interfaceClass ) throws UnableToCompleteException {
// We concatenate the name of all the enclosing class.
StringBuilder builder = new StringBuilder( interfaceClass.getSimpleSourceName() + "Impl" );
JClassType enclosingType = interfaceC... |
public class class_name {
@SuppressWarnings("resource")
@Override
public Reader createResource(GeneratorContext context) {
String path = context.getPath();
StopWatch stopWatch = null;
if (PERF_LOGGER.isDebugEnabled()) {
stopWatch = new StopWatch("Generating resource '" + path + "' with " + getName() + " ge... | public class class_name {
@SuppressWarnings("resource")
@Override
public Reader createResource(GeneratorContext context) {
String path = context.getPath();
StopWatch stopWatch = null;
if (PERF_LOGGER.isDebugEnabled()) {
stopWatch = new StopWatch("Generating resource '" + path + "' with " + getName() + " ge... |
public class class_name {
private UndiGraph<Var, Void> computeVariableNamesInterferenceGraph(
ControlFlowGraph<Node> cfg, Set<? extends Var> escaped) {
UndiGraph<Var, Void> interferenceGraph = LinkedUndirectedGraph.create();
// First create a node for each non-escaped variable. We add these nodes in the... | public class class_name {
private UndiGraph<Var, Void> computeVariableNamesInterferenceGraph(
ControlFlowGraph<Node> cfg, Set<? extends Var> escaped) {
UndiGraph<Var, Void> interferenceGraph = LinkedUndirectedGraph.create();
// First create a node for each non-escaped variable. We add these nodes in the... |
public class class_name {
@Deprecated
public static DiscordRecords series2DiscordsDeprecated(double[] series, int discordsNumToReport,
int windowSize, int paaSize, int alphabetSize, SlidingWindowMarkerAlgorithm markerAlgorithm,
NumerosityReductionStrategy strategy, double nThreshold) throws Exception {
... | public class class_name {
@Deprecated
public static DiscordRecords series2DiscordsDeprecated(double[] series, int discordsNumToReport,
int windowSize, int paaSize, int alphabetSize, SlidingWindowMarkerAlgorithm markerAlgorithm,
NumerosityReductionStrategy strategy, double nThreshold) throws Exception {
... |
public class class_name {
public String processLink(final String src) {
if (newAction) {
if (bundleId == null) {
bundleId = bundlesManager.registerNewBundleId();
bundleId += '.' + bundleContentType;
}
sources.add(src);
}
if (firstScriptTag) {
// this is the first tag, change the url to point... | public class class_name {
public String processLink(final String src) {
if (newAction) {
if (bundleId == null) {
bundleId = bundlesManager.registerNewBundleId(); // depends on control dependency: [if], data = [none]
bundleId += '.' + bundleContentType; // depends on control dependency: [if], data = [none]... |
public class class_name {
private static void updateOptionDescriptions() {
Collection<Option> allOptions = options.getOptions();
for (Option option : allOptions) {
String key = option.getOpt();
if (key == null) {
key = option.getLongOpt();
}
if (key != null) {
String description = I18n.getMessa... | public class class_name {
private static void updateOptionDescriptions() {
Collection<Option> allOptions = options.getOptions();
for (Option option : allOptions) {
String key = option.getOpt();
if (key == null) {
key = option.getLongOpt(); // depends on control dependency: [if], data = [none]
}
if ... |
public class class_name {
public Policies withLBCookieStickinessPolicies(LBCookieStickinessPolicy... lBCookieStickinessPolicies) {
if (this.lBCookieStickinessPolicies == null) {
setLBCookieStickinessPolicies(new com.amazonaws.internal.SdkInternalList<LBCookieStickinessPolicy>(lBCookieStickinessPoli... | public class class_name {
public Policies withLBCookieStickinessPolicies(LBCookieStickinessPolicy... lBCookieStickinessPolicies) {
if (this.lBCookieStickinessPolicies == null) {
setLBCookieStickinessPolicies(new com.amazonaws.internal.SdkInternalList<LBCookieStickinessPolicy>(lBCookieStickinessPoli... |
public class class_name {
public <T extends Serializable> List<T> dequeueFromBuffer(String topic, Class<T> type, int timeout, int limit) {
List<T> result = new ArrayList<T>();
long cutoff = System.currentTimeMillis() + timeout;
BlockingQueue<String> queue = _topics.get(topic).getMessages();
... | public class class_name {
public <T extends Serializable> List<T> dequeueFromBuffer(String topic, Class<T> type, int timeout, int limit) {
List<T> result = new ArrayList<T>();
long cutoff = System.currentTimeMillis() + timeout;
BlockingQueue<String> queue = _topics.get(topic).getMessages();
... |
public class class_name {
@Override
public void addTypeParamInfo(Content classInfoTree) {
if (!utils.getTypeParamTrees(typeElement).isEmpty()) {
Content typeParam = (new ParamTaglet()).getTagletOutput(typeElement,
getTagletWriterInstance(false));
Content dl = Htm... | public class class_name {
@Override
public void addTypeParamInfo(Content classInfoTree) {
if (!utils.getTypeParamTrees(typeElement).isEmpty()) {
Content typeParam = (new ParamTaglet()).getTagletOutput(typeElement,
getTagletWriterInstance(false));
Content dl = Htm... |
public class class_name {
public static MediaType parse(String string) {
if (string == null) {
return null;
}
// Optimization for the common cases
synchronized (SIMPLE_TYPES) {
MediaType type = SIMPLE_TYPES.get(string);
if (type == null) {
... | public class class_name {
public static MediaType parse(String string) {
if (string == null) {
return null; // depends on control dependency: [if], data = [none]
}
// Optimization for the common cases
synchronized (SIMPLE_TYPES) {
MediaType type = SIMPLE_TYPES.g... |
public class class_name {
public void popRTFContext()
{
int previous=m_last_pushed_rtfdtm.pop();
if(null==m_rtfdtm_stack)
return;
if(m_which_rtfdtm==previous)
{
if(previous>=0) // guard against none-active
{
boolean isEmpty=((SAX2RTFDTM)(m_rtfdtm_stack.elementAt(previous))).popRewindM... | public class class_name {
public void popRTFContext()
{
int previous=m_last_pushed_rtfdtm.pop();
if(null==m_rtfdtm_stack)
return;
if(m_which_rtfdtm==previous)
{
if(previous>=0) // guard against none-active
{
boolean isEmpty=((SAX2RTFDTM)(m_rtfdtm_stack.elementAt(previous))).popRewindM... |
public class class_name {
public void pushParameterStack(Map parameters)
{
if (parameters == null)
{
_paramStack.push(null);
} else {
_paramStack.push(((Hashtable)parameters).clone());
}
} } | public class class_name {
public void pushParameterStack(Map parameters)
{
if (parameters == null)
{
_paramStack.push(null); // depends on control dependency: [if], data = [null)]
} else {
_paramStack.push(((Hashtable)parameters).clone()); // depends on control depen... |
public class class_name {
private static String dealName(String fullName) {
Matcher matcher = SUPER_PATTERN.matcher(fullName);
String name;
if (matcher.find()) {
name = matcher.group(1);
} else {
matcher = EXTENDS_PATTERN.matcher(fullName);
if (matche... | public class class_name {
private static String dealName(String fullName) {
Matcher matcher = SUPER_PATTERN.matcher(fullName);
String name;
if (matcher.find()) {
name = matcher.group(1); // depends on control dependency: [if], data = [none]
} else {
matcher = EXT... |
public class class_name {
private static int indexOfBlock(Block block, List<Block> blocks)
{
int position = 0;
for (Block child : blocks) {
if (child == block) {
return position;
}
++position;
}
return -1;
} } | public class class_name {
private static int indexOfBlock(Block block, List<Block> blocks)
{
int position = 0;
for (Block child : blocks) {
if (child == block) {
return position; // depends on control dependency: [if], data = [none]
}
++position;... |
public class class_name {
private void sendOneAsyncHint(final ByteArray slopKey,
final Versioned<byte[]> slopVersioned,
final List<Node> nodesToTry) {
Node nodeToHostHint = null;
boolean foundNode = false;
while(nodesToTry.size... | public class class_name {
private void sendOneAsyncHint(final ByteArray slopKey,
final Versioned<byte[]> slopVersioned,
final List<Node> nodesToTry) {
Node nodeToHostHint = null;
boolean foundNode = false;
while(nodesToTry.size... |
public class class_name {
@Override
public void actionPerformed(ActionEvent event) {
if (event.getSource().equals(LED_BLINKING_TIMER)) {
currentLedImage = ledOn == true ? getLedImageOn() : getLedImageOff();
ledOn ^= true;
repaint();
}
} } | public class class_name {
@Override
public void actionPerformed(ActionEvent event) {
if (event.getSource().equals(LED_BLINKING_TIMER)) {
currentLedImage = ledOn == true ? getLedImageOn() : getLedImageOff(); // depends on control dependency: [if], data = [none]
ledOn ^= true; // depe... |
public class class_name {
public java.util.List<String> getRuleNames() {
if (ruleNames == null) {
ruleNames = new com.amazonaws.internal.SdkInternalList<String>();
}
return ruleNames;
} } | public class class_name {
public java.util.List<String> getRuleNames() {
if (ruleNames == null) {
ruleNames = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return ruleNames;
} } |
public class class_name {
public void setScope(java.util.Collection<String> scope) {
if (scope == null) {
this.scope = null;
return;
}
this.scope = new java.util.ArrayList<String>(scope);
} } | public class class_name {
public void setScope(java.util.Collection<String> scope) {
if (scope == null) {
this.scope = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.scope = new java.util.... |
public class class_name {
public static synchronized void setDescription(URL descriptionURL) {
if (descriptionURL == null) {
return;
}
try {
setDescription(descriptionURL.openStream());
ConsoleWriter.writeSystem(MessageFormat.format("Loaded logspace configur... | public class class_name {
public static synchronized void setDescription(URL descriptionURL) {
if (descriptionURL == null) {
return; // depends on control dependency: [if], data = [none]
}
try {
setDescription(descriptionURL.openStream()); // depends on control dependen... |
public class class_name {
public void changeBase(Permutation newBase) {
PermutationGroup h = new PermutationGroup(newBase);
int firstDiffIndex = base.firstIndexOfDifference(newBase);
for (int j = firstDiffIndex; j < size; j++) {
for (int a = 0; a < size; a++) {
Per... | public class class_name {
public void changeBase(Permutation newBase) {
PermutationGroup h = new PermutationGroup(newBase);
int firstDiffIndex = base.firstIndexOfDifference(newBase);
for (int j = firstDiffIndex; j < size; j++) {
for (int a = 0; a < size; a++) {
Per... |
public class class_name {
@Override
public final Scene moveDown(final Layer layer)
{
if ((null != layer) && (LienzoCore.IS_CANVAS_SUPPORTED))
{
final int size = getElement().getChildCount();
if (size < 2)
{
return this;
}
... | public class class_name {
@Override
public final Scene moveDown(final Layer layer)
{
if ((null != layer) && (LienzoCore.IS_CANVAS_SUPPORTED))
{
final int size = getElement().getChildCount();
if (size < 2)
{
return this; // depends on control ... |
public class class_name {
private static <K, V> Collection<Entry<K, V>> unmodifiableEntries(
Collection<Entry<K, V>> entries) {
if (entries instanceof Set) {
return Maps.unmodifiableEntrySet((Set<Entry<K, V>>) entries);
}
return new Maps.UnmodifiableEntries<>(Collections.unmodifiableCollection(... | public class class_name {
private static <K, V> Collection<Entry<K, V>> unmodifiableEntries(
Collection<Entry<K, V>> entries) {
if (entries instanceof Set) {
return Maps.unmodifiableEntrySet((Set<Entry<K, V>>) entries); // depends on control dependency: [if], data = [none]
}
return new Maps.Unm... |
public class class_name {
public static Class<?> isTypeOf(TypeMirror type, List<Class<?>> classList) {
for (Class<?> c : classList) {
if (isTypeOf(type, c)) {
return c;
}
}
return null;
} } | public class class_name {
public static Class<?> isTypeOf(TypeMirror type, List<Class<?>> classList) {
for (Class<?> c : classList) {
if (isTypeOf(type, c)) {
return c; // depends on control dependency: [if], data = [none]
}
}
return null;
} } |
public class class_name {
public static Validator validKeyStoreType() {
return (s, o) -> {
if (!(o instanceof String)) {
throw new ConfigException(s, o, "Must be a string.");
}
String keyStoreType = o.toString();
try {
KeyStore.getInstance(keyStoreType);
} catch (KeyS... | public class class_name {
public static Validator validKeyStoreType() {
return (s, o) -> {
if (!(o instanceof String)) {
throw new ConfigException(s, o, "Must be a string.");
}
String keyStoreType = o.toString();
try {
KeyStore.getInstance(keyStoreType); // depends on contr... |
public class class_name {
public static ExpiringCode getExpiringCode(
ExpiringCodeStore codeStore,
String userId,
String email,
String clientId,
String redirectUri,
ExpiringCodeType intent,
String currentZoneId) {
Assert.notNul... | public class class_name {
public static ExpiringCode getExpiringCode(
ExpiringCodeStore codeStore,
String userId,
String email,
String clientId,
String redirectUri,
ExpiringCodeType intent,
String currentZoneId) {
Assert.notNul... |
public class class_name {
static String toStringImpl(final Collection<?> collection) {
StringBuilder sb = newStringBuilderForCollection(collection.size()).append('[');
boolean first = true;
for (Object o : collection) {
if (!first) {
sb.append(", ");
}
first = false;
if (o =... | public class class_name {
static String toStringImpl(final Collection<?> collection) {
StringBuilder sb = newStringBuilderForCollection(collection.size()).append('[');
boolean first = true;
for (Object o : collection) {
if (!first) {
sb.append(", "); // depends on control dependency: [if], da... |
public class class_name {
public static Object buildObjectInstance(Class<?> clazz) {
Object rets = null;
try {
rets = clazz.newInstance();
} catch (Exception e) {
throw new BundlingProcessException(e.getMessage() + " [The custom class " + clazz.getName()
+ " could not be instantiated, check whether it... | public class class_name {
public static Object buildObjectInstance(Class<?> clazz) {
Object rets = null;
try {
rets = clazz.newInstance(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
throw new BundlingProcessException(e.getMessage() + " [The custom class " + clazz.getName... |
public class class_name {
public double probability(int x) {
double ret;
if (x < 0 || x > numberOfTrials) {
ret = 0.0;
} else {
ret = FastMath.exp(SaddlePointExpansion.logBinomialProbability(x, numberOfTrials, probabilityOfSuccess,
1.0 - prob... | public class class_name {
public double probability(int x) {
double ret;
if (x < 0 || x > numberOfTrials) {
ret = 0.0; // depends on control dependency: [if], data = [none]
} else {
ret = FastMath.exp(SaddlePointExpansion.logBinomialProbability(x, numberOfTrials, probab... |
public class class_name {
public void plusNanoSeconds(long delta)
{
if (delta != 0)
{
long result = getNanoSecond() + delta;
setNanoSecond((int) Math.floorMod(result, 1000000000));
plusSeconds(Math.floorDiv(result, 1000000000));
}
} } | public class class_name {
public void plusNanoSeconds(long delta)
{
if (delta != 0)
{
long result = getNanoSecond() + delta;
setNanoSecond((int) Math.floorMod(result, 1000000000));
// depends on control dependency: [if], data = [0)]
plusSeconds(Math.floorDi... |
public class class_name {
public void setFocus(CmsAttributeValueView target) {
if (m_currentFocus == target) {
return;
}
if ((m_currentFocus != null)) {
m_currentFocus.toggleFocus(false);
}
m_currentFocus = target;
m_currentFocus.toggl... | public class class_name {
public void setFocus(CmsAttributeValueView target) {
if (m_currentFocus == target) {
return;
// depends on control dependency: [if], data = [none]
}
if ((m_currentFocus != null)) {
m_currentFocus.toggleFocus(false);
// depends on contr... |
public class class_name {
private void showParams(List<CmsSearchParamPanel> paramPanels) {
m_params.clear();
if ((paramPanels == null) || (paramPanels.size() == 0)) {
m_params.setVisible(false);
updateListSize();
return;
}
m_params.setVisible(true);
... | public class class_name {
private void showParams(List<CmsSearchParamPanel> paramPanels) {
m_params.clear();
if ((paramPanels == null) || (paramPanels.size() == 0)) {
m_params.setVisible(false); // depends on control dependency: [if], data = [none]
updateListSize(); // depends ... |
public class class_name {
private static void configureCredentialDetailTypeMapping(ObjectMapper objectMapper) {
List<NamedType> subtypes = new ArrayList<>();
for (CredentialType type : CredentialType.values()) {
subtypes.add(new NamedType(type.getModelClass(), type.getValueType()));
}
registerSubtypes(obje... | public class class_name {
private static void configureCredentialDetailTypeMapping(ObjectMapper objectMapper) {
List<NamedType> subtypes = new ArrayList<>();
for (CredentialType type : CredentialType.values()) {
subtypes.add(new NamedType(type.getModelClass(), type.getValueType())); // depends on control depend... |
public class class_name {
@Override
public void removeByG_C_C_DS(long groupId, long classNameId, long classPK,
boolean defaultShipping) {
for (CommerceAddress commerceAddress : findByG_C_C_DS(groupId,
classNameId, classPK, defaultShipping, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null)) {
remove(commerceA... | public class class_name {
@Override
public void removeByG_C_C_DS(long groupId, long classNameId, long classPK,
boolean defaultShipping) {
for (CommerceAddress commerceAddress : findByG_C_C_DS(groupId,
classNameId, classPK, defaultShipping, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null)) {
remove(commerceA... |
public class class_name {
@Override
public EClass getIfcBuildingElementPart() {
if (ifcBuildingElementPartEClass == null) {
ifcBuildingElementPartEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(59);
}
return ifcBuildingElementPartEClass;
} } | public class class_name {
@Override
public EClass getIfcBuildingElementPart() {
if (ifcBuildingElementPartEClass == null) {
ifcBuildingElementPartEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(59);
// depends on control dependency: [if], data = [non... |
public class class_name {
void processClaimInjections(@Observes ProcessInjectionPoint pip) {
log.debugf("pipRaw: %s", pip.getInjectionPoint());
InjectionPoint ip = pip.getInjectionPoint();
if (ip.getAnnotated().isAnnotationPresent(Claim.class)) {
Claim claim = ip.getAnnotated().getA... | public class class_name {
void processClaimInjections(@Observes ProcessInjectionPoint pip) {
log.debugf("pipRaw: %s", pip.getInjectionPoint());
InjectionPoint ip = pip.getInjectionPoint();
if (ip.getAnnotated().isAnnotationPresent(Claim.class)) {
Claim claim = ip.getAnnotated().getA... |
public class class_name {
public BulkResponse tryFlush() {
BulkResponse bulkResult = null;
boolean trackingArrayExpanded = false;
String bulkLoggingID = createDebugTxnID();
try {
// double check data - it might be a false flush (called on clean-up)
if (data.leng... | public class class_name {
public BulkResponse tryFlush() {
BulkResponse bulkResult = null;
boolean trackingArrayExpanded = false;
String bulkLoggingID = createDebugTxnID();
try {
// double check data - it might be a false flush (called on clean-up)
if (data.leng... |
public class class_name {
public int freeMemory() {
int size = 0;
for (int m = 0; m < memory.length; m++) {
size += memory[m].length;
memory[m] = null;
}
memory = null;
return size;
} } | public class class_name {
public int freeMemory() {
int size = 0;
for (int m = 0; m < memory.length; m++) {
size += memory[m].length; // depends on control dependency: [for], data = [m]
memory[m] = null; // depends on control dependency: [for], data = [m]
}
memor... |
public class class_name {
@Override
public Character fromString(Class targetClass, String s)
{
try
{
if (s == null)
{
log.error("Can't convert String " + s + " to character");
throw new PropertyAccessException("Can't convert String " + s +... | public class class_name {
@Override
public Character fromString(Class targetClass, String s)
{
try
{
if (s == null)
{
log.error("Can't convert String " + s + " to character");
throw new PropertyAccessException("Can't convert String " + s +... |
public class class_name {
public DescribeComplianceByResourceRequest withComplianceTypes(String... complianceTypes) {
if (this.complianceTypes == null) {
setComplianceTypes(new com.amazonaws.internal.SdkInternalList<String>(complianceTypes.length));
}
for (String ele : complianceTyp... | public class class_name {
public DescribeComplianceByResourceRequest withComplianceTypes(String... complianceTypes) {
if (this.complianceTypes == null) {
setComplianceTypes(new com.amazonaws.internal.SdkInternalList<String>(complianceTypes.length)); // depends on control dependency: [if], data = [n... |
public class class_name {
boolean scanNoParse() {
while (true) {
switch (state) {
case 300:
if (peek() == '#' && next() == '[' && next() == '[') {
state = 301;
continue ;
}
return fail();
case 301:
for (char c=next(); true; c=next()) {
if (c == ']' && buf[forward + ... | public class class_name {
boolean scanNoParse() {
while (true) {
switch (state) {
case 300:
if (peek() == '#' && next() == '[' && next() == '[') {
state = 301;
// depends on control dependency: [if], data = [none]
continue ;
}
return fail();
case 301:
for (char c=next(); ... |
public class class_name {
private static boolean checkAboutNormalization(String args[]) {
boolean normalize = false ;
if (args.length == 4) {
if (args[3].equals("TRUE")) {
normalize = true;
} else if (args[3].equals("FALSE")) {
normalize = false;
} else {
throw new JMe... | public class class_name {
private static boolean checkAboutNormalization(String args[]) {
boolean normalize = false ;
if (args.length == 4) {
if (args[3].equals("TRUE")) {
normalize = true; // depends on control dependency: [if], data = [none]
} else if (args[3].equals("FALSE")) {
n... |
public class class_name {
private List<Collection<QueryResult>> lookupGPXEntries(List<Observation> gpxList,
EdgeFilter edgeFilter) {
final List<Collection<QueryResult>> gpxEntryLocations = new ArrayList<>();
for (Observation gpxEntry : gpxList... | public class class_name {
private List<Collection<QueryResult>> lookupGPXEntries(List<Observation> gpxList,
EdgeFilter edgeFilter) {
final List<Collection<QueryResult>> gpxEntryLocations = new ArrayList<>();
for (Observation gpxEntry : gpxList... |
public class class_name {
private PersistenceBrokerException createException(final Exception ex, String message, final Object objectToIdentify, Class topLevelClass, Class realClass, Object[] pks)
{
final String eol = SystemUtils.LINE_SEPARATOR;
StringBuffer msg = new StringBuffer();
if(... | public class class_name {
private PersistenceBrokerException createException(final Exception ex, String message, final Object objectToIdentify, Class topLevelClass, Class realClass, Object[] pks)
{
final String eol = SystemUtils.LINE_SEPARATOR;
StringBuffer msg = new StringBuffer();
if(... |
public class class_name {
private CompletableFuture<Boolean> isTableSegmentEmpty(DirectSegmentAccess segment, TimeoutTimer timer) {
// Get a snapshot of the Tail Index and identify all bucket removals.
val tailHashes = this.cache.getTailHashes(segment.getSegmentId());
val tailRemovals = tailHas... | public class class_name {
private CompletableFuture<Boolean> isTableSegmentEmpty(DirectSegmentAccess segment, TimeoutTimer timer) {
// Get a snapshot of the Tail Index and identify all bucket removals.
val tailHashes = this.cache.getTailHashes(segment.getSegmentId());
val tailRemovals = tailHas... |
public class class_name {
@NotNull
public PaginatedResult<Person> listPeople() {
PaginatedResult<Person> result = restAdapter.listPeople();
for (Person person : result.getData()) {
person.setAdapter(restAdapter);
}
return result;
} } | public class class_name {
@NotNull
public PaginatedResult<Person> listPeople() {
PaginatedResult<Person> result = restAdapter.listPeople();
for (Person person : result.getData()) {
person.setAdapter(restAdapter); // depends on control dependency: [for], data = [person]
}
return result;
} } |
public class class_name {
public Map getStringDecodedMap(final Map encodedMap, final Map defaults) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getStringDecodedMap", new Object[] {encodedMap,defaults});
}
final Map<String,Object... | public class class_name {
public Map getStringDecodedMap(final Map encodedMap, final Map defaults) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getStringDecodedMap", new Object[] {encodedMap,defaults}); // depends on control dependency: [if], da... |
public class class_name {
public static boolean isTinyType(Class<?> candidate) {
for (MetaTinyType meta : metas) {
if (meta.isMetaOf(candidate)) {
return true;
}
}
return false;
} } | public class class_name {
public static boolean isTinyType(Class<?> candidate) {
for (MetaTinyType meta : metas) {
if (meta.isMetaOf(candidate)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
public void getPersistentData(ObjectOutputStream dout)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getPersistentData", dout);
try
{
dout.writeUTF(remoteMEId.toString());
dout.writeUTF(streamId.toString());
String ... | public class class_name {
public void getPersistentData(ObjectOutputStream dout)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getPersistentData", dout);
try
{
dout.writeUTF(remoteMEId.toString()); // depends on control dependency: [try], data = [none]
... |
public class class_name {
private void copyRecursive(File source, File destination, FileFilter filter) {
if (source.isDirectory()) {
boolean okay = destination.mkdir();
if (!okay) {
throw new FileCreationFailedException(destination.getAbsolutePath(), true);
}
File[] children;
... | public class class_name {
private void copyRecursive(File source, File destination, FileFilter filter) {
if (source.isDirectory()) {
boolean okay = destination.mkdir();
if (!okay) {
throw new FileCreationFailedException(destination.getAbsolutePath(), true);
}
File[] children;
... |
public class class_name {
public static <T, R> Stream<R> zip(final Collection<? extends Stream<? extends T>> c, final Function<? super List<? extends T>, R> zipFunction) {
if (N.isNullOrEmpty(c)) {
return Stream.empty();
}
final int len = c.size();
final List<Iterator... | public class class_name {
public static <T, R> Stream<R> zip(final Collection<? extends Stream<? extends T>> c, final Function<? super List<? extends T>, R> zipFunction) {
if (N.isNullOrEmpty(c)) {
return Stream.empty();
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public String format( Date date, String... args ) {
if( date == null ) {
return "";
}
if( args.length == 0 ) {
throw new JGivenWrongUsageException( String.format( "A SimpleDateFormat pattern is expected as first argument" ) );
... | public class class_name {
@Override
public String format( Date date, String... args ) {
if( date == null ) {
return ""; // depends on control dependency: [if], data = [none]
}
if( args.length == 0 ) {
throw new JGivenWrongUsageException( String.format( "A SimpleDate... |
public class class_name {
@Override
protected void onSelectionChanged(final int selStart, final int selEnd) {
// Handle case where there is only one cursor (i.e. not selecting a range, just moving cursor)
if (selStart == selEnd) {
if (!onCursorChanged(selStart)) {
super.... | public class class_name {
@Override
protected void onSelectionChanged(final int selStart, final int selEnd) {
// Handle case where there is only one cursor (i.e. not selecting a range, just moving cursor)
if (selStart == selEnd) {
if (!onCursorChanged(selStart)) {
super.... |
public class class_name {
public final void mDELETE() throws RecognitionException {
try {
int _type = DELETE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// druidG.g:596:17: ( ( 'DELETE' | 'delete' ) )
// druidG.g:596:18: ( 'DELETE' | 'delete' )
{
// druidG.g:596:18: ( 'DELETE' | 'delete' )
int alt12=... | public class class_name {
public final void mDELETE() throws RecognitionException {
try {
int _type = DELETE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// druidG.g:596:17: ( ( 'DELETE' | 'delete' ) )
// druidG.g:596:18: ( 'DELETE' | 'delete' )
{
// druidG.g:596:18: ( 'DELETE' | 'delete' )
int alt12=... |
public class class_name {
protected AptControlInterface initControlInterface()
{
TypeMirror controlType = _fieldDecl.getType();
if (! (controlType instanceof DeclaredType))
{
_ap.printError( _fieldDecl, "control.field.bad.type" );
return null;
}
//
... | public class class_name {
protected AptControlInterface initControlInterface()
{
TypeMirror controlType = _fieldDecl.getType();
if (! (controlType instanceof DeclaredType))
{
_ap.printError( _fieldDecl, "control.field.bad.type" );
return null; // depends on control d... |
public class class_name {
public static List<File> getResourcesInnPackage(String root) {
try {
logger.debug("getResourcesInnPackage for package: " + root);
ClassLoader loader = Thread.currentThread().getContextClassLoader();
URL url = loader.getResource(root);
if (url != null) {
logger.debug(" ... | public class class_name {
public static List<File> getResourcesInnPackage(String root) {
try {
logger.debug("getResourcesInnPackage for package: " + root);
// depends on control dependency: [try], data = [none]
ClassLoader loader = Thread.currentThread().getContextClassLoader();
URL url = loader.getReso... |
public class class_name {
public static String decode(Style style) {
if (style != null) {
if (style instanceof ShapeStyle) {
return decode((ShapeStyle) style);
} else if (style instanceof FontStyle) {
return decode((FontStyle) style);
} else if (style instanceof PictureStyle) {
return decode((Pi... | public class class_name {
public static String decode(Style style) {
if (style != null) {
if (style instanceof ShapeStyle) {
return decode((ShapeStyle) style); // depends on control dependency: [if], data = [none]
} else if (style instanceof FontStyle) {
return decode((FontStyle) style); // depends on ... |
public class class_name {
protected boolean containWildcard(Object value)
{
if (!(value instanceof String))
{
return false;
}
String casted = (String) value;
return casted.contains(LIKE_WILDCARD.toString());
} } | public class class_name {
protected boolean containWildcard(Object value)
{
if (!(value instanceof String))
{
return false; // depends on control dependency: [if], data = [none]
}
String casted = (String) value;
return casted.contains(LIKE_WILDCARD.toString());
... |
public class class_name {
public void unregisterExceptionMonitor( ExceptionMonitor monitor )
{
synchronized( this )
{
if( monitor == null || !monitor.equals( m_exceptionMonitor ) )
{
return;
}
m_exceptionMonitor = null;
}
}... | public class class_name {
public void unregisterExceptionMonitor( ExceptionMonitor monitor )
{
synchronized( this )
{
if( monitor == null || !monitor.equals( m_exceptionMonitor ) )
{
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void setScale(float x, float y, float z) {
getTransform().setScale(x, y, z);
if (mTransformCache.setScale(x, y, z)) {
onTransformChanged();
}
} } | public class class_name {
public void setScale(float x, float y, float z) {
getTransform().setScale(x, y, z);
if (mTransformCache.setScale(x, y, z)) {
onTransformChanged(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public EClass getIfcIonConcentrationMeasure() {
if (ifcIonConcentrationMeasureEClass == null) {
ifcIonConcentrationMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(690);
}
return ifcIonConcentrationMeasureEClas... | public class class_name {
public EClass getIfcIonConcentrationMeasure() {
if (ifcIonConcentrationMeasureEClass == null) {
ifcIonConcentrationMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(690);
// depends on control dependency: [if], data ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.