code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public Iterator<URL> getResources(String name) {
ArrayList<URL> collectedResources = new ArrayList<URL>();
for (IClassResolver resolver : resolvers) {
try {
Iterator<URL> iterator = resolver.getResources(name);
if (iterator == null) ... | public class class_name {
public Iterator<URL> getResources(String name) {
ArrayList<URL> collectedResources = new ArrayList<URL>();
for (IClassResolver resolver : resolvers) {
try {
Iterator<URL> iterator = resolver.getResources(name);
if (iterator == null) ... |
public class class_name {
protected void normalizeAndPrint(String s, boolean isAttValue) {
int len = (s != null) ? s.length() : 0;
for (int i = 0; i < len; i++) {
char c = s.charAt(i);
normalizeAndPrint(c, isAttValue);
}
} } | public class class_name {
protected void normalizeAndPrint(String s, boolean isAttValue) {
int len = (s != null) ? s.length() : 0;
for (int i = 0; i < len; i++) {
char c = s.charAt(i);
normalizeAndPrint(c, isAttValue); // depends on control dependency: [for], data = [no... |
public class class_name {
private void linearScan(Relation<? extends O> relation, DBIDIter iter, O obj, double range, ModifiableDoubleDBIDList result) {
final SquaredEuclideanDistanceFunction squared = SquaredEuclideanDistanceFunction.STATIC;
// Avoid a loss in numerical precision when using the squared radius... | public class class_name {
private void linearScan(Relation<? extends O> relation, DBIDIter iter, O obj, double range, ModifiableDoubleDBIDList result) {
final SquaredEuclideanDistanceFunction squared = SquaredEuclideanDistanceFunction.STATIC;
// Avoid a loss in numerical precision when using the squared radius... |
public class class_name {
public HystrixCommandExecutionHook getCommandExecutionHook() {
if (commandExecutionHook.get() == null) {
// check for an implementation from Archaius first
Object impl = getPluginImplementation(HystrixCommandExecutionHook.class);
if (impl == null) {... | public class class_name {
public HystrixCommandExecutionHook getCommandExecutionHook() {
if (commandExecutionHook.get() == null) {
// check for an implementation from Archaius first
Object impl = getPluginImplementation(HystrixCommandExecutionHook.class);
if (impl == null) {... |
public class class_name {
private void crossOutLinkerTables(){
String[] primaryKeys = model.getPrimaryAttributes();
if(primaryKeys != null && primaryKeys.length == 2){//there are only 2 primary keys
//if both primary keys look up to different table which is also a primary key
String[] hasOne = model.getHasOn... | public class class_name {
private void crossOutLinkerTables(){
String[] primaryKeys = model.getPrimaryAttributes();
if(primaryKeys != null && primaryKeys.length == 2){//there are only 2 primary keys
//if both primary keys look up to different table which is also a primary key
String[] hasOne = model.getHasOn... |
public class class_name {
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
if (this.isDrpc) {
declarer.declare(new Fields("id", this.emitFieldForRowKey, this.emitFieldForColumnName));
} else {
declarer.declare(new Fields(this.emitFieldForRowKey, thi... | public class class_name {
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
if (this.isDrpc) {
declarer.declare(new Fields("id", this.emitFieldForRowKey, this.emitFieldForColumnName)); // depends on control dependency: [if], data = [none]
} else {
de... |
public class class_name {
public void setNode(int number, Vector3D v) {
if (number <= 0) {
number = 0;
} else if (3 <= number) {
number = 3;
}
this.points[number * 3] = (float)v.getX();
this.points[number * 3 + 1] = (float)v.getY();
this.points[nu... | public class class_name {
public void setNode(int number, Vector3D v) {
if (number <= 0) {
number = 0; // depends on control dependency: [if], data = [none]
} else if (3 <= number) {
number = 3; // depends on control dependency: [if], data = [none]
}
this.points[... |
public class class_name {
static ImmutableSet<ExecutableElement> propertyMethodsIn(Set<ExecutableElement> abstractMethods) {
ImmutableSet.Builder<ExecutableElement> properties = ImmutableSet.builder();
for (ExecutableElement method : abstractMethods) {
if (method.getParameters().isEmpty()
&& me... | public class class_name {
static ImmutableSet<ExecutableElement> propertyMethodsIn(Set<ExecutableElement> abstractMethods) {
ImmutableSet.Builder<ExecutableElement> properties = ImmutableSet.builder();
for (ExecutableElement method : abstractMethods) {
if (method.getParameters().isEmpty()
&& me... |
public class class_name {
public void init() {
log.debug("Init scope: {} parent: {}", name, parent);
if (hasParent()) {
if (!parent.hasChildScope(name)) {
if (parent.addChildScope(this)) {
log.debug("Scope added to parent");
} else {... | public class class_name {
public void init() {
log.debug("Init scope: {} parent: {}", name, parent);
if (hasParent()) {
if (!parent.hasChildScope(name)) {
if (parent.addChildScope(this)) {
log.debug("Scope added to parent");
// depends on control de... |
public class class_name {
public static String replace(String s, Map<String, Object> map) {
StringBuilder ret = new StringBuilder((int) (s.length() * 1.5));
int cursor = 0;
for (int start, end; (start = s.indexOf("${", cursor)) != -1 && (end = s.indexOf("}", start)) != -1; ) {
r... | public class class_name {
public static String replace(String s, Map<String, Object> map) {
StringBuilder ret = new StringBuilder((int) (s.length() * 1.5));
int cursor = 0;
for (int start, end; (start = s.indexOf("${", cursor)) != -1 && (end = s.indexOf("}", start)) != -1; ) {
r... |
public class class_name {
private void readConfigFile() {
File configFile = new File(CONFIG_FILE_PATH);
/* config file is not there -> create config file with default */
if (!configFile.exists()) {
resetConfigToDefault();
}
try {
PropertiesConfiguration conf = new PropertiesCon... | public class class_name {
private void readConfigFile() {
File configFile = new File(CONFIG_FILE_PATH);
/* config file is not there -> create config file with default */
if (!configFile.exists()) {
resetConfigToDefault();
// depends on control dependency: [if], data = [none]
}
try {
... |
public class class_name {
public Histogram histogram(String id, int[] data, double[] breaks, Color color) {
if (base.dimension != 2) {
throw new IllegalArgumentException("Histogram can be only painted in a 2D canvas.");
}
Histogram histogram = new Histogram(data, breaks);
h... | public class class_name {
public Histogram histogram(String id, int[] data, double[] breaks, Color color) {
if (base.dimension != 2) {
throw new IllegalArgumentException("Histogram can be only painted in a 2D canvas.");
}
Histogram histogram = new Histogram(data, breaks);
h... |
public class class_name {
public List<String> getFileAsList(final String fileName,
final String encoding) throws IOException {
LOG.info("Get file as list. file: " + fileName);
List<String> result = new ArrayList<String>();
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamRea... | public class class_name {
public List<String> getFileAsList(final String fileName,
final String encoding) throws IOException {
LOG.info("Get file as list. file: " + fileName);
List<String> result = new ArrayList<String>();
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamRea... |
public class class_name {
public void openPopup() {
// If the component is disabled, do nothing.
if (!isEnabled()) {
return;
}
// If the show popup menu button is not shown, do nothing.
if (settings.getDisplayToggleTimeMenuButton() == false) {
return;
... | public class class_name {
public void openPopup() {
// If the component is disabled, do nothing.
if (!isEnabled()) {
return; // depends on control dependency: [if], data = [none]
}
// If the show popup menu button is not shown, do nothing.
if (settings.getDisplayTogg... |
public class class_name {
private void addTypeMessages(CmsExplorerTypeSettings setting, String moduleFolder)
throws CmsException, UnsupportedEncodingException {
Map<String, String> messages = new HashMap<String, String>();
CmsObject cms = getCms();
// check if any messages to set
i... | public class class_name {
private void addTypeMessages(CmsExplorerTypeSettings setting, String moduleFolder)
throws CmsException, UnsupportedEncodingException {
Map<String, String> messages = new HashMap<String, String>();
CmsObject cms = getCms();
// check if any messages to set
i... |
public class class_name {
public void close()
{
forwardEngine.close();
if (forwardEngine != reverseEngine)
reverseEngine.close();
Iterator<Map.Entry<Long, SRTCPCryptoContext>> iter
= contexts.entrySet().iterator();
while (iter.hasNext())
{
... | public class class_name {
public void close()
{
forwardEngine.close();
if (forwardEngine != reverseEngine)
reverseEngine.close();
Iterator<Map.Entry<Long, SRTCPCryptoContext>> iter
= contexts.entrySet().iterator();
while (iter.hasNext())
{
... |
public class class_name {
public boolean remove(String field) {
try {
return getJedisCommands(groupName).hdel(key, field).equals(RESP_OK);
} finally {
getJedisProvider(groupName).release();
}
} } | public class class_name {
public boolean remove(String field) {
try {
return getJedisCommands(groupName).hdel(key, field).equals(RESP_OK); // depends on control dependency: [try], data = [none]
} finally {
getJedisProvider(groupName).release();
}
} } |
public class class_name {
public static String removeEmptyLine(String str) {
assertStringNotNull(str);
final StringBuilder sb = new StringBuilder();
final List<String> lineList = splitList(str, "\n");
for (String line : lineList) {
if (is_Null_or_TrimmedEmpty(line)) {
... | public class class_name {
public static String removeEmptyLine(String str) {
assertStringNotNull(str);
final StringBuilder sb = new StringBuilder();
final List<String> lineList = splitList(str, "\n");
for (String line : lineList) {
if (is_Null_or_TrimmedEmpty(line)) {
... |
public class class_name {
@EventHandler
protected void onEvent(IncomingDataTransferReceivedEvent event,
@MetaData(value = CorrelationToken.KEY, required = false) CorrelationToken correlationToken) {
/*
* Handle the incoming datatransfer message here, to complete the loop... | public class class_name {
@EventHandler
protected void onEvent(IncomingDataTransferReceivedEvent event,
@MetaData(value = CorrelationToken.KEY, required = false) CorrelationToken correlationToken) {
/*
* Handle the incoming datatransfer message here, to complete the loop... |
public class class_name {
public void marshall(EntitlementValue entitlementValue, ProtocolMarshaller protocolMarshaller) {
if (entitlementValue == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(enti... | public class class_name {
public void marshall(EntitlementValue entitlementValue, ProtocolMarshaller protocolMarshaller) {
if (entitlementValue == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(enti... |
public class class_name {
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
void addScrapView(View scrap, int position, int viewType) {
// create a new Scrap
Scrap item = new Scrap(scrap, true);
if (viewTypeCount == 1) {
currentScraps.put(position, item);
} else {
scraps[viewType].put(position, item... | public class class_name {
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
void addScrapView(View scrap, int position, int viewType) {
// create a new Scrap
Scrap item = new Scrap(scrap, true);
if (viewTypeCount == 1) {
currentScraps.put(position, item); // depends on control dependency: [if], data = [n... |
public class class_name {
private static File[] findLPMFXmlFiles(File wlpInstallationDirectory) {
File lpmfDirectory = new File(wlpInstallationDirectory, "lib/fixes");
if (!lpmfDirectory.exists() || !lpmfDirectory.isDirectory()) {
return new File[0];
}
File[] lpmfFiles = lpm... | public class class_name {
private static File[] findLPMFXmlFiles(File wlpInstallationDirectory) {
File lpmfDirectory = new File(wlpInstallationDirectory, "lib/fixes");
if (!lpmfDirectory.exists() || !lpmfDirectory.isDirectory()) {
return new File[0]; // depends on control dependency: [if], ... |
public class class_name {
public static String getValue(Document document, String xPath) {
Node node = document.selectSingleNode(xPath);
if (node != null) {
// return the value
return node.getText();
} else {
return null;
}
} } | public class class_name {
public static String getValue(Document document, String xPath) {
Node node = document.selectSingleNode(xPath);
if (node != null) {
// return the value
return node.getText(); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public void marshall(UtilizationByTime utilizationByTime, ProtocolMarshaller protocolMarshaller) {
if (utilizationByTime == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(u... | public class class_name {
public void marshall(UtilizationByTime utilizationByTime, ProtocolMarshaller protocolMarshaller) {
if (utilizationByTime == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(u... |
public class class_name {
@Override
public final void makeOtherEntries(final Map<String, Object> pAddParam,
final Wage pEntity, final IRequestData pRequestData,
final boolean pIsNew) throws Exception {
String actionAdd = pRequestData.getParameter("actionAdd");
if ("fill".equals(actionAdd)) {
... | public class class_name {
@Override
public final void makeOtherEntries(final Map<String, Object> pAddParam,
final Wage pEntity, final IRequestData pRequestData,
final boolean pIsNew) throws Exception {
String actionAdd = pRequestData.getParameter("actionAdd");
if ("fill".equals(actionAdd)) {
... |
public class class_name {
protected void checkPauseAndWait() {
pauseLock.lock();
try {
while (paused && ! stopped) {
pausedCondition.await();
}
} catch (InterruptedException e) {
} finally {
pauseLock.unlock();
}
} } | public class class_name {
protected void checkPauseAndWait() {
pauseLock.lock();
try {
while (paused && ! stopped) {
pausedCondition.await(); // depends on control dependency: [while], data = [none]
}
} catch (InterruptedException e) {
} finally { // depends on control dependency: [catch], data = [no... |
public class class_name {
public void setRemotePath(String pRemotePath) {
if (StringUtil.isEmpty(pRemotePath)) {
pRemotePath = "";
}
else if (pRemotePath.charAt(0) != '/') {
pRemotePath = "/" + pRemotePath;
}
remotePath = pRemotePath;
} } | public class class_name {
public void setRemotePath(String pRemotePath) {
if (StringUtil.isEmpty(pRemotePath)) {
pRemotePath = "";
// depends on control dependency: [if], data = [none]
}
else if (pRemotePath.charAt(0) != '/') {
pRemotePath = "/" + pRemotePath;
// d... |
public class class_name {
private EvaluatorManager getNewEvaluatorManagerInstance(final String id, final EvaluatorDescriptor desc) {
LOG.log(Level.FINEST, "Creating Evaluator Manager for Evaluator ID {0}", id);
final Injector child = this.injector.forkInjector();
try {
child.bindVolatileParameter(Ev... | public class class_name {
private EvaluatorManager getNewEvaluatorManagerInstance(final String id, final EvaluatorDescriptor desc) {
LOG.log(Level.FINEST, "Creating Evaluator Manager for Evaluator ID {0}", id);
final Injector child = this.injector.forkInjector();
try {
child.bindVolatileParameter(Ev... |
public class class_name {
public static void recursivelyDeleteDirectoryOnExit(final File directory) {
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
try {
recursivelyDeleteDirectory(directory);
} catch (IOException e) {
throw new Ru... | public class class_name {
public static void recursivelyDeleteDirectoryOnExit(final File directory) {
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
try {
recursivelyDeleteDirectory(directory); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public void merge(MessageDestinationRef msgDestRef) throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "merge", msgDestRef);
ResourceImpl curAnnotation = (Resou... | public class class_name {
public void merge(MessageDestinationRef msgDestRef) throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "merge", msgDestRef);
ResourceImpl curAnnotation = (Resou... |
public class class_name {
public static SocketAddress resolve(InetSocketAddress inetSocketAddress, DnsResolver dnsResolver) {
try {
InetAddress inetAddress = dnsResolver.resolve(inetSocketAddress.getHostString())[0];
return new InetSocketAddress(inetAddress, inetSocketAddress.getPort()... | public class class_name {
public static SocketAddress resolve(InetSocketAddress inetSocketAddress, DnsResolver dnsResolver) {
try {
InetAddress inetAddress = dnsResolver.resolve(inetSocketAddress.getHostString())[0];
return new InetSocketAddress(inetAddress, inetSocketAddress.getPort()... |
public class class_name {
public static short bytesToShort(byte[] bytes, int offset) {
short result = 0x0;
for (int i = offset; i < offset + 2; ++i) {
result = (short) ((result) << 8);
result |= (bytes[i] & 0x00FF);
}
return result;
} } | public class class_name {
public static short bytesToShort(byte[] bytes, int offset) {
short result = 0x0;
for (int i = offset; i < offset + 2; ++i) {
result = (short) ((result) << 8); // depends on control dependency: [for], data = [none]
result |= (bytes[i] & 0x00FF); // depen... |
public class class_name {
private static Method[] getAllDeclaredMethods(Class<?> classHierarchy)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
Collection<MethodMap.MethodInfo> methodInfos = MethodMap.getAllDeclaredMethods(classHierarchy);
Method[] methods = new Method[m... | public class class_name {
private static Method[] getAllDeclaredMethods(Class<?> classHierarchy)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
Collection<MethodMap.MethodInfo> methodInfos = MethodMap.getAllDeclaredMethods(classHierarchy);
Method[] methods = new Method[m... |
public class class_name {
private List<Entry<V>> filterEntryList(List<Entry<V>> entryList, long minScn, long maxScn) {
List<Entry<V>> result = new ArrayList<Entry<V>>(entryList.size());
for (Entry<V> e : entryList) {
if (minScn <= e.getMinScn() && e.getMaxScn() <= maxScn) {
result.add(e);
}... | public class class_name {
private List<Entry<V>> filterEntryList(List<Entry<V>> entryList, long minScn, long maxScn) {
List<Entry<V>> result = new ArrayList<Entry<V>>(entryList.size());
for (Entry<V> e : entryList) {
if (minScn <= e.getMinScn() && e.getMaxScn() <= maxScn) {
result.add(e); // depe... |
public class class_name {
@Override
public void visitCode(Code obj) {
Method m = getMethod();
if (prescreen(m)) {
stack.resetForMethodEntry(this);
popStack.clear();
super.visitCode(obj);
}
} } | public class class_name {
@Override
public void visitCode(Code obj) {
Method m = getMethod();
if (prescreen(m)) {
stack.resetForMethodEntry(this); // depends on control dependency: [if], data = [none]
popStack.clear(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
protected void startLayerTranslation() {
if (USE_TRANSLATIONS && mHardwareLayersEnabled && !mLayerTypeHardware) {
mLayerTypeHardware = true;
mContentContainer.setLayerType(View.LAYER_TYPE_HARDWARE, null);
mSwipeBackContainer.setLayerType(V... | public class class_name {
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
protected void startLayerTranslation() {
if (USE_TRANSLATIONS && mHardwareLayersEnabled && !mLayerTypeHardware) {
mLayerTypeHardware = true; // depends on control dependency: [if], data = [none]
mContentContainer.setLayerType(View.LAYER_TYPE_... |
public class class_name {
public final Flux<T> startWith(Publisher<? extends T> publisher) {
if (this instanceof FluxConcatArray) {
FluxConcatArray<T> fluxConcatArray = (FluxConcatArray<T>) this;
return fluxConcatArray.concatAdditionalSourceFirst(publisher);
}
return concat(publisher, this);
} } | public class class_name {
public final Flux<T> startWith(Publisher<? extends T> publisher) {
if (this instanceof FluxConcatArray) {
FluxConcatArray<T> fluxConcatArray = (FluxConcatArray<T>) this;
return fluxConcatArray.concatAdditionalSourceFirst(publisher); // depends on control dependency: [if], data = [none... |
public class class_name {
public static void computeResidual(int[] data, int dataLen, int order, int[] residual) {
int idataLen = (int) dataLen;
switch (order) {
case 0 :
for (int i = 0; i < idataLen; i++) {
residual[i] = data[i];
... | public class class_name {
public static void computeResidual(int[] data, int dataLen, int order, int[] residual) {
int idataLen = (int) dataLen;
switch (order) {
case 0 :
for (int i = 0; i < idataLen; i++) {
residual[i] = data[i]; // depends on c... |
public class class_name {
public void setPhysicalResourceIdContext(java.util.Collection<PhysicalResourceIdContextKeyValuePair> physicalResourceIdContext) {
if (physicalResourceIdContext == null) {
this.physicalResourceIdContext = null;
return;
}
this.physicalResourceIdC... | public class class_name {
public void setPhysicalResourceIdContext(java.util.Collection<PhysicalResourceIdContextKeyValuePair> physicalResourceIdContext) {
if (physicalResourceIdContext == null) {
this.physicalResourceIdContext = null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void addSysControllerFilters() {
for(SystemRequest rq : SystemRequest.values()) {
ISystemFilterChain filterChain = new SysControllerFilterChain();
filterChain.addFilter("EzyFoxFilterChain#" + rq,
new BaseSysControllerFilter(appContext(), rq));
... | public class class_name {
public void addSysControllerFilters() {
for(SystemRequest rq : SystemRequest.values()) {
ISystemFilterChain filterChain = new SysControllerFilterChain();
filterChain.addFilter("EzyFoxFilterChain#" + rq,
new BaseSysControllerFilter(appContext(), rq)); /... |
public class class_name {
public String getProviderAddress() {
if (providerAddress!=null) {
Matcher matcher = HOST_PORT_PATTERN.matcher(providerAddress);
if (matcher.matches() && isValidPort(matcher.group(2))) {
return matcher.group(1);
}
}else if(pro... | public class class_name {
public String getProviderAddress() {
if (providerAddress!=null) {
Matcher matcher = HOST_PORT_PATTERN.matcher(providerAddress);
if (matcher.matches() && isValidPort(matcher.group(2))) {
return matcher.group(1); // depends on control dependency: ... |
public class class_name {
void deleteProperty(final String key, final Configuration config) {
if (config.containsKey(key)) {
logger.debug("deleting property key [" + key + "]");
config.clearProperty(key);
}
} } | public class class_name {
void deleteProperty(final String key, final Configuration config) {
if (config.containsKey(key)) {
logger.debug("deleting property key [" + key + "]"); // depends on control dependency: [if], data = [none]
config.clearProperty(key); // depends on control depen... |
public class class_name {
public Map<String, String> getQueryStringParams() {
try {
Map<String, String> params = new HashMap<String, String>();
String queryString = new URL(url).getQuery();
params.putAll(URLUtils.queryStringToMap(queryString));
params.putAll(this.querystringParams);
return params;
... | public class class_name {
public Map<String, String> getQueryStringParams() {
try {
Map<String, String> params = new HashMap<String, String>();
String queryString = new URL(url).getQuery();
params.putAll(URLUtils.queryStringToMap(queryString)); // depends on control dependency: [try], data = [none]
para... |
public class class_name {
public int estimateSize(Object message) {
if (message == null) {
return 8;
}
int answer = 8 + estimateSize(message.getClass(), null);
if (message instanceof IoBuffer) {
answer += ((IoBuffer) message).remaining();
} else if (mes... | public class class_name {
public int estimateSize(Object message) {
if (message == null) {
return 8; // depends on control dependency: [if], data = [none]
}
int answer = 8 + estimateSize(message.getClass(), null);
if (message instanceof IoBuffer) {
answer += ((... |
public class class_name {
public boolean setPublicAddress(String host, int port) {
try {
// set 'sentBy' in the listening point for outbound messages
parent.getSipProvider().getListeningPoints()[0].setSentBy(host + ":" + port);
// update my contact info
SipURI my_uri = (SipURI) contactInfo... | public class class_name {
public boolean setPublicAddress(String host, int port) {
try {
// set 'sentBy' in the listening point for outbound messages
parent.getSipProvider().getListeningPoints()[0].setSentBy(host + ":" + port); // depends on control dependency: [try], data = [none]
// update my ... |
public class class_name {
private static void copyValue(final Map<String, ?> sourceMap, final String sourceKey,
final Map<String, String> targetMap, final String targetKey) {
if (getOption(sourceKey, sourceMap) != null && String.class.isInstance(getOption(sourceKey, sourceMap... | public class class_name {
private static void copyValue(final Map<String, ?> sourceMap, final String sourceKey,
final Map<String, String> targetMap, final String targetKey) {
if (getOption(sourceKey, sourceMap) != null && String.class.isInstance(getOption(sourceKey, sourceMap... |
public class class_name {
private void startHandleChallenges(JSONObject jsonChallenges, Response response) {
ArrayList<String> challenges = getRealmsFromJson(jsonChallenges);
MCAAuthorizationManager authManager = (MCAAuthorizationManager) BMSClient.getInstance().getAuthorizationManager();
if ... | public class class_name {
private void startHandleChallenges(JSONObject jsonChallenges, Response response) {
ArrayList<String> challenges = getRealmsFromJson(jsonChallenges);
MCAAuthorizationManager authManager = (MCAAuthorizationManager) BMSClient.getInstance().getAuthorizationManager();
if ... |
public class class_name {
public java.util.List<String> getZoneIds() {
if (zoneIds == null) {
zoneIds = new com.amazonaws.internal.SdkInternalList<String>();
}
return zoneIds;
} } | public class class_name {
public java.util.List<String> getZoneIds() {
if (zoneIds == null) {
zoneIds = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return zoneIds;
} } |
public class class_name {
public void removePropertyChangeListener(String p, PropertyChangeListener l)
{
if (listeners == null)
{
return;
}
synchronized (listeners)
{
listeners.remove(l);
}
} } | public class class_name {
public void removePropertyChangeListener(String p, PropertyChangeListener l)
{
if (listeners == null)
{
return; // depends on control dependency: [if], data = [none]
}
synchronized (listeners)
{
listeners.remove(l);
... |
public class class_name {
@Override
protected void doPerform() {
org.openqa.selenium.Keys seleniumKeys = org.openqa.selenium.Keys.getKeyFromUnicode(keys.getKeyCode());
if (isSourceDocumentRoot()) {
keyboard().pressKey(seleniumKeys);
} else {
getActions().keyDown(getF... | public class class_name {
@Override
protected void doPerform() {
org.openqa.selenium.Keys seleniumKeys = org.openqa.selenium.Keys.getKeyFromUnicode(keys.getKeyCode());
if (isSourceDocumentRoot()) {
keyboard().pressKey(seleniumKeys); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public FacesConfigManagedBeanType<WebFacesConfigDescriptor> getOrCreateManagedBean()
{
List<Node> nodeList = model.get("managed-bean");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigManagedBeanTypeImpl<WebFacesConfigDescriptor>(this, "mana... | public class class_name {
public FacesConfigManagedBeanType<WebFacesConfigDescriptor> getOrCreateManagedBean()
{
List<Node> nodeList = model.get("managed-bean");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigManagedBeanTypeImpl<WebFacesConfigDescriptor>(this, "mana... |
public class class_name {
private void parseRequestSmugglingProtection(Map<Object, Object> props) {
// PK53193 - allow this to be disabled
Object value = props.get(HttpConfigConstants.PROPNAME_ENABLE_SMUGGLING_PROTECTION);
if (null != value) {
this.bEnableSmugglingProtection = conve... | public class class_name {
private void parseRequestSmugglingProtection(Map<Object, Object> props) {
// PK53193 - allow this to be disabled
Object value = props.get(HttpConfigConstants.PROPNAME_ENABLE_SMUGGLING_PROTECTION);
if (null != value) {
this.bEnableSmugglingProtection = conve... |
public class class_name {
public void marshall(DescribeWorkspacesRequest describeWorkspacesRequest, ProtocolMarshaller protocolMarshaller) {
if (describeWorkspacesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(DescribeWorkspacesRequest describeWorkspacesRequest, ProtocolMarshaller protocolMarshaller) {
if (describeWorkspacesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public short[] getShortArray(final String key, final short[] def) {
try {
final short[] result = getShortArray(key);
return result != null ? result : def;
} catch (final NumberFormatException nfe) {
return def;
}
} } | public class class_name {
public short[] getShortArray(final String key, final short[] def) {
try {
final short[] result = getShortArray(key);
return result != null ? result : def; // depends on control dependency: [try], data = [none]
} catch (final NumberFormatException nfe) {
return def;
} // depends... |
public class class_name {
static JobDef map(ResultSet rs, int colShift)
{
JobDef tmp = new JobDef();
try
{
tmp.id = rs.getInt(1 + colShift);
tmp.application = rs.getString(2 + colShift);
tmp.applicationName = rs.getString(3 + colShift);
tmp.c... | public class class_name {
static JobDef map(ResultSet rs, int colShift)
{
JobDef tmp = new JobDef();
try
{
tmp.id = rs.getInt(1 + colShift); // depends on control dependency: [try], data = [none]
tmp.application = rs.getString(2 + colShift); // depends on control de... |
public class class_name {
public DevState extractDevState() throws DevFailed {
manageExceptions("extractDevState");
if (use_union) {
// Check if saclar (State attribute itself !)
if (attributeValue_5.value.discriminator().value() == AttributeDataType._DEVICE_STATE) {
return attributeValue_5.valu... | public class class_name {
public DevState extractDevState() throws DevFailed {
manageExceptions("extractDevState");
if (use_union) {
// Check if saclar (State attribute itself !)
if (attributeValue_5.value.discriminator().value() == AttributeDataType._DEVICE_STATE) {
return attributeValue_5.valu... |
public class class_name {
@Trivial
private void transferOrReleasePermit() {
maxConcurrencyConstraint.release();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "expedites/maxConcurrency available",
expeditesAvailable, maxConcurre... | public class class_name {
@Trivial
private void transferOrReleasePermit() {
maxConcurrencyConstraint.release();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "expedites/maxConcurrency available",
expeditesAvailable, maxConcurre... |
public class class_name {
public static String unescape(String htmlStr) {
if (StrUtil.isBlank(htmlStr)) {
return htmlStr;
}
return htmlStr.replace(StrUtil.HTML_APOS, "'")//
.replace("'", "'")//
.replace("'", "'")//
.replace(StrUtil.HTML_LT, "<")//
.replace(StrUtil.HTML_GT, ">"... | public class class_name {
public static String unescape(String htmlStr) {
if (StrUtil.isBlank(htmlStr)) {
return htmlStr;
// depends on control dependency: [if], data = [none]
}
return htmlStr.replace(StrUtil.HTML_APOS, "'")//
.replace("'", "'")//
.replace("'", "'")//
.replace(StrU... |
public class class_name {
public Optional<TypeInformation<?>> getFieldType(String fieldName) {
if (fieldNameToIndex.containsKey(fieldName)) {
return Optional.of(fieldTypes[fieldNameToIndex.get(fieldName)]);
}
return Optional.empty();
} } | public class class_name {
public Optional<TypeInformation<?>> getFieldType(String fieldName) {
if (fieldNameToIndex.containsKey(fieldName)) {
return Optional.of(fieldTypes[fieldNameToIndex.get(fieldName)]); // depends on control dependency: [if], data = [none]
}
return Optional.empty();
} } |
public class class_name {
public void marshall(ProcessorParameter processorParameter, ProtocolMarshaller protocolMarshaller) {
if (processorParameter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(ProcessorParameter processorParameter, ProtocolMarshaller protocolMarshaller) {
if (processorParameter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
private void createIndexesTemplates() {
try {
initIndexesTemplates();
updateIndexesNames();
Executors.newScheduledThreadPool(1).scheduleAtFixedRate(this::updateIndexesNames, 0, 1, TimeUnit.HOURS);
} catch (Exception e) {
logger.e... | public class class_name {
private void createIndexesTemplates() {
try {
initIndexesTemplates(); // depends on control dependency: [try], data = [none]
updateIndexesNames(); // depends on control dependency: [try], data = [none]
Executors.newScheduledThreadPool(1).scheduleAtF... |
public class class_name {
public static Date parseDate(String dateStr, String pattern) {
try {
SimpleDateFormat format = null;
if (StringUtils.isBlank(dateStr))
return null;
if (StringUtils.isNotBlank(pattern)) {
format = new SimpleDateFormat(... | public class class_name {
public static Date parseDate(String dateStr, String pattern) {
try {
SimpleDateFormat format = null;
if (StringUtils.isBlank(dateStr))
return null;
if (StringUtils.isNotBlank(pattern)) {
format = new SimpleDateFormat(... |
public class class_name {
private void deleteLinkInverseValue(String targetObjID) {
int shardNo = m_tableDef.getShardNumber(m_dbObj);
if (shardNo > 0 && m_invLinkDef.isSharded()) {
m_dbTran.deleteShardedLinkValue(targetObjID, m_invLinkDef, m_dbObj.getObjectID(), shardNo);
} else... | public class class_name {
private void deleteLinkInverseValue(String targetObjID) {
int shardNo = m_tableDef.getShardNumber(m_dbObj);
if (shardNo > 0 && m_invLinkDef.isSharded()) {
m_dbTran.deleteShardedLinkValue(targetObjID, m_invLinkDef, m_dbObj.getObjectID(), shardNo);
// depends on ... |
public class class_name {
public String getDefault(final String key) {
if (defaultValues.containsKey(key)) {
return defaultValues.get(key);
}
return "";
} } | public class class_name {
public String getDefault(final String key) {
if (defaultValues.containsKey(key)) {
return defaultValues.get(key); // depends on control dependency: [if], data = [none]
}
return "";
} } |
public class class_name {
public String format(Style style, TimeZone tz, long date, Output<TimeType> timeType) {
String result = null;
if (timeType != null) {
timeType.value = TimeType.UNKNOWN;
}
boolean noOffsetFormatFallback = false;
switch (style) {
cas... | public class class_name {
public String format(Style style, TimeZone tz, long date, Output<TimeType> timeType) {
String result = null;
if (timeType != null) {
timeType.value = TimeType.UNKNOWN; // depends on control dependency: [if], data = [none]
}
boolean noOffsetFormatF... |
public class class_name {
public static void performCopy(String filename, SarlConfiguration configuration) {
if (filename.isEmpty()) {
return;
}
try {
final DocFile fromfile = DocFile.createFileForInput(configuration, filename);
final DocPath path = DocPath.create(fromfile.getName());
final DocFile ... | public class class_name {
public static void performCopy(String filename, SarlConfiguration configuration) {
if (filename.isEmpty()) {
return; // depends on control dependency: [if], data = [none]
}
try {
final DocFile fromfile = DocFile.createFileForInput(configuration, filename);
final DocPath path =... |
public class class_name {
public Vector3f getAxesAnglesRad() {
final double roll;
final double pitch;
double yaw;
final double test = w * x - y * z;
if (Math.abs(test) < 0.4999) {
roll = TrigMath.atan2(2 * (w * z + x * y), 1 - 2 * (x * x + z * z));
pitch ... | public class class_name {
public Vector3f getAxesAnglesRad() {
final double roll;
final double pitch;
double yaw;
final double test = w * x - y * z;
if (Math.abs(test) < 0.4999) {
roll = TrigMath.atan2(2 * (w * z + x * y), 1 - 2 * (x * x + z * z)); // depends on cont... |
public class class_name {
public void setAllowedHttpMethods(Collection<String> allowedHttpMethods) {
if (allowedHttpMethods == null) {
throw new IllegalArgumentException("allowedHttpMethods cannot be null");
}
if (allowedHttpMethods == ALLOW_ANY_HTTP_METHOD) {
this.allowedHttpMethods = ALLOW_ANY_HTTP_METHO... | public class class_name {
public void setAllowedHttpMethods(Collection<String> allowedHttpMethods) {
if (allowedHttpMethods == null) {
throw new IllegalArgumentException("allowedHttpMethods cannot be null");
}
if (allowedHttpMethods == ALLOW_ANY_HTTP_METHOD) {
this.allowedHttpMethods = ALLOW_ANY_HTTP_METHO... |
public class class_name {
protected boolean hasIndexProperty(final BeanProperty bp) {
if (bp.bean == null) {
return false;
}
String indexString = extractIndex(bp);
if (indexString == null) {
return hasSimpleProperty(bp);
}
Object resultBean = getSimpleProperty(bp);
if (resultBean == null) {
... | public class class_name {
protected boolean hasIndexProperty(final BeanProperty bp) {
if (bp.bean == null) {
return false; // depends on control dependency: [if], data = [none]
}
String indexString = extractIndex(bp);
if (indexString == null) {
return hasSimpleProperty(bp); // depends on control depend... |
public class class_name {
void destroy() {
for (DistributedObjectFuture future : proxies.values()) {
if (!future.isSetAndInitialized()) {
continue;
}
DistributedObject distributedObject = extractDistributedObject(future);
invalidate(distributedOb... | public class class_name {
void destroy() {
for (DistributedObjectFuture future : proxies.values()) {
if (!future.isSetAndInitialized()) {
continue;
}
DistributedObject distributedObject = extractDistributedObject(future);
invalidate(distributedOb... |
public class class_name {
public void setTempo(double bpm) {
if (bpm == 0.0) {
throw new IllegalArgumentException("Tempo cannot be zero.");
}
final double oldTempo = metronome.getTempo();
metronome.setTempo(bpm);
notifyBeatSenderOfChange();
if (isTempoMaste... | public class class_name {
public void setTempo(double bpm) {
if (bpm == 0.0) {
throw new IllegalArgumentException("Tempo cannot be zero.");
}
final double oldTempo = metronome.getTempo();
metronome.setTempo(bpm);
notifyBeatSenderOfChange();
if (isTempoMaste... |
public class class_name {
private boolean updateMemoryWithYieldInfo()
{
long memorySize = getSizeInMemory();
if (partial && maxPartialMemory.isPresent()) {
updateMemory(memorySize);
full = (memorySize > maxPartialMemory.getAsLong());
return true;
}
... | public class class_name {
private boolean updateMemoryWithYieldInfo()
{
long memorySize = getSizeInMemory();
if (partial && maxPartialMemory.isPresent()) {
updateMemory(memorySize); // depends on control dependency: [if], data = [none]
full = (memorySize > maxPartialMemory.g... |
public class class_name {
public static Rule getRule(final String value) {
Level thisLevel;
if (levelList.contains(value.toUpperCase())) {
thisLevel = Level.toLevel(value.toUpperCase());
} else {
thisLevel = UtilLoggingLevel.toLevel(value.toUpperCase());
}
... | public class class_name {
public static Rule getRule(final String value) {
Level thisLevel;
if (levelList.contains(value.toUpperCase())) {
thisLevel = Level.toLevel(value.toUpperCase()); // depends on control dependency: [if], data = [none]
} else {
thisLevel = UtilLog... |
public class class_name {
public AmazonWebServiceRequest getCloneRoot() {
AmazonWebServiceRequest cloneRoot = cloneSource;
if (cloneRoot != null) {
while (cloneRoot.getCloneSource() != null) {
cloneRoot = cloneRoot.getCloneSource();
}
}
return clo... | public class class_name {
public AmazonWebServiceRequest getCloneRoot() {
AmazonWebServiceRequest cloneRoot = cloneSource;
if (cloneRoot != null) {
while (cloneRoot.getCloneSource() != null) {
cloneRoot = cloneRoot.getCloneSource(); // depends on control dependency: [while],... |
public class class_name {
public void setCreatedTimestampMetadata(PropertyMetadata createdTimestampMetadata) {
if (this.createdTimestampMetadata != null) {
throwDuplicateAnnotationException(entityClass, CreatedTimestamp.class,
this.createdTimestampMetadata, createdTimestampMetadata);
}
this... | public class class_name {
public void setCreatedTimestampMetadata(PropertyMetadata createdTimestampMetadata) {
if (this.createdTimestampMetadata != null) {
throwDuplicateAnnotationException(entityClass, CreatedTimestamp.class,
this.createdTimestampMetadata, createdTimestampMetadata); // depends on ... |
public class class_name {
protected int getProximityPosition(int predicateIndex)
{
// A negative predicate index seems to occur with
// (preceding-sibling::*|following-sibling::*)/ancestor::*[position()]/*[position()]
// -sb
if(predicateIndex < 0)
return -1;
int count = m_proximityPo... | public class class_name {
protected int getProximityPosition(int predicateIndex)
{
// A negative predicate index seems to occur with
// (preceding-sibling::*|following-sibling::*)/ancestor::*[position()]/*[position()]
// -sb
if(predicateIndex < 0)
return -1;
int count = m_proximityPo... |
public class class_name {
public static String quote(final String value) {
if (value == null) {
return null;
}
String result = value;
if (!result.startsWith("\"")) {
result = "\"" + result;
}
if (!result.endsWith("\"")) {
result = resu... | public class class_name {
public static String quote(final String value) {
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
}
String result = value;
if (!result.startsWith("\"")) {
result = "\"" + result; // depends on contr... |
public class class_name {
protected void onOutboundComplete() {
if (log.isDebugEnabled()) {
log.debug(format(channel(), "[{}] User Handler requesting close connection"), formatName());
}
markPersistent(false);
terminate();
} } | public class class_name {
protected void onOutboundComplete() {
if (log.isDebugEnabled()) {
log.debug(format(channel(), "[{}] User Handler requesting close connection"), formatName()); // depends on control dependency: [if], data = [none]
}
markPersistent(false);
terminate();
} } |
public class class_name {
@PostConstruct
public void init() {
final String thumbnailPath = System.getProperty(Constants.FESS_THUMBNAIL_PATH);
if (thumbnailPath != null) {
baseDir = new File(thumbnailPath);
} else {
final String varPath = System.getProperty(Constants.... | public class class_name {
@PostConstruct
public void init() {
final String thumbnailPath = System.getProperty(Constants.FESS_THUMBNAIL_PATH);
if (thumbnailPath != null) {
baseDir = new File(thumbnailPath); // depends on control dependency: [if], data = [(thumbnailPath]
} else {
... |
public class class_name {
public static byte[] readBytes(String path)
{
try
{
if (IOAdapter == null) return readBytesFromFileInputStream(new FileInputStream(path));
InputStream is = IOAdapter.open(path);
if (is instanceof FileInputStream)
return ... | public class class_name {
public static byte[] readBytes(String path)
{
try
{
if (IOAdapter == null) return readBytesFromFileInputStream(new FileInputStream(path));
InputStream is = IOAdapter.open(path);
if (is instanceof FileInputStream)
return ... |
public class class_name {
private String listToString(List<String> stringList){
StringBuilder concat = new StringBuilder();
for(String str:stringList){
concat.append(str);
concat.append(System.getProperty("line.separator"));
}
return concat.toString();
} } | public class class_name {
private String listToString(List<String> stringList){
StringBuilder concat = new StringBuilder();
for(String str:stringList){
concat.append(str); // depends on control dependency: [for], data = [str]
concat.append(System.getProperty("line.separator"));
}
return concat.toString()... |
public class class_name {
@Override
public MoveSelector buildBaseMoveSelector(HeuristicConfigPolicy configPolicy,
SelectionCacheType minimumCacheType, boolean randomSelection) {
List<MoveSelector> moveSelectorList = new ArrayList<>(moveSelectorConfigList.size());
for (MoveSelectorConfig... | public class class_name {
@Override
public MoveSelector buildBaseMoveSelector(HeuristicConfigPolicy configPolicy,
SelectionCacheType minimumCacheType, boolean randomSelection) {
List<MoveSelector> moveSelectorList = new ArrayList<>(moveSelectorConfigList.size());
for (MoveSelectorConfig... |
public class class_name {
@Override
protected void initializeImpl()
{
//create properties from configuration (all javax mail properties will be defined in the fax4j properties)
this.mailConnectionProperties=new Properties();
Map<String,String> configuration=this.factoryConfigurationHold... | public class class_name {
@Override
protected void initializeImpl()
{
//create properties from configuration (all javax mail properties will be defined in the fax4j properties)
this.mailConnectionProperties=new Properties();
Map<String,String> configuration=this.factoryConfigurationHold... |
public class class_name {
public Direction direction() {
if (!Op.isFinite(slope) || Op.isEq(slope, 0.0)) {
return Direction.Zero;
}
if (Op.isGt(slope, 0.0)) {
return Direction.Positive;
}
return Direction.Negative;
} } | public class class_name {
public Direction direction() {
if (!Op.isFinite(slope) || Op.isEq(slope, 0.0)) {
return Direction.Zero; // depends on control dependency: [if], data = [none]
}
if (Op.isGt(slope, 0.0)) {
return Direction.Positive; // depends on control dependenc... |
public class class_name {
public void marshall(GetDataRetrievalPolicyRequest getDataRetrievalPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (getDataRetrievalPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(GetDataRetrievalPolicyRequest getDataRetrievalPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (getDataRetrievalPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
private boolean verifyRecordInRange(
final PartitionIdType partition,
final SequenceOffsetType recordOffset
)
{
// Verify that the record is at least as high as its currOffset.
final SequenceOffsetType currOffset = Preconditions.checkNotNull(
currOffsets.get(pa... | public class class_name {
private boolean verifyRecordInRange(
final PartitionIdType partition,
final SequenceOffsetType recordOffset
)
{
// Verify that the record is at least as high as its currOffset.
final SequenceOffsetType currOffset = Preconditions.checkNotNull(
currOffsets.get(pa... |
public class class_name {
public IconRow getIcon(String featureTable, long featureId,
GeometryType geometryType, boolean tableIcon) {
IconRow iconRow = null;
// Feature Icon
Icons icons = getIcons(featureTable, featureId);
if (icons != null) {
ic... | public class class_name {
public IconRow getIcon(String featureTable, long featureId,
GeometryType geometryType, boolean tableIcon) {
IconRow iconRow = null;
// Feature Icon
Icons icons = getIcons(featureTable, featureId);
if (icons != null) {
ic... |
public class class_name {
private void handleHeaders(HttpRequestBase httpRequest) {
for (HttpHeader header : headers.values()) {
httpRequest.addHeader(header.getName(), header.serializeValues());
}
} } | public class class_name {
private void handleHeaders(HttpRequestBase httpRequest) {
for (HttpHeader header : headers.values()) {
httpRequest.addHeader(header.getName(), header.serializeValues()); // depends on control dependency: [for], data = [header]
}
} } |
public class class_name {
public Optional<DeployKey> getOptionalDeployKey(Object projectIdOrPath, Integer keyId) {
try {
return (Optional.ofNullable(getDeployKey(projectIdOrPath, keyId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
... | public class class_name {
public Optional<DeployKey> getOptionalDeployKey(Object projectIdOrPath, Integer keyId) {
try {
return (Optional.ofNullable(getDeployKey(projectIdOrPath, keyId))); // depends on control dependency: [try], data = [none]
} catch (GitLabApiException glae) {
... |
public class class_name {
public Object getLastModified(int iHandleType)
{
Object varBookmark = null;
boolean[] rgbEnabled = null;
int iOrigOrder = DBConstants.MAIN_KEY_AREA;
boolean bOrigDirection = DBConstants.ASCENDING;
Record record = this.getCurrentTable().getRecord();
... | public class class_name {
public Object getLastModified(int iHandleType)
{
Object varBookmark = null;
boolean[] rgbEnabled = null;
int iOrigOrder = DBConstants.MAIN_KEY_AREA;
boolean bOrigDirection = DBConstants.ASCENDING;
Record record = this.getCurrentTable().getRecord();
... |
public class class_name {
public void fireRelationReadEvent(Relation relation)
{
if (m_projectListeners != null)
{
for (ProjectListener listener : m_projectListeners)
{
listener.relationRead(relation);
}
}
} } | public class class_name {
public void fireRelationReadEvent(Relation relation)
{
if (m_projectListeners != null)
{
for (ProjectListener listener : m_projectListeners)
{
listener.relationRead(relation); // depends on control dependency: [for], data = [listener]
}
... |
public class class_name {
private void fill() throws IOException
{
if (eof)
return;
// as long as we are not just starting up
if (count > 0)
{
// if the caller left the requisite amount spare in the buffer
if (count - pos == 2) {
// copy it back to the start of the buff... | public class class_name {
private void fill() throws IOException
{
if (eof)
return;
// as long as we are not just starting up
if (count > 0)
{
// if the caller left the requisite amount spare in the buffer
if (count - pos == 2) {
// copy it back to the start of the buff... |
public class class_name {
@Override
public Object getInstanceToSerialize(Object instance) {
if (this.conversionService.canConvert(instance.getClass(), this.beanType)) {
return this.conversionService.convert(instance, this.beanType);
} else {
return instance;
}
} ... | public class class_name {
@Override
public Object getInstanceToSerialize(Object instance) {
if (this.conversionService.canConvert(instance.getClass(), this.beanType)) {
return this.conversionService.convert(instance, this.beanType); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void stop() {
if (session == null) {
return;
}
sync.lock();
try {
if (session == null) {
return;
}
onBeforeStop();
session s = session;
session = null; // stop al... | public class class_name {
public void stop() {
if (session == null) {
return; // depends on control dependency: [if], data = [none]
}
sync.lock();
try {
if (session == null) {
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static User createInstance(String user) {
if (user.equals("$authenticated")) {
return new UserAuthenticated();
} else if (user.equals("$anonymous")) {
return new UserAnonymous();
} else if (user.equals("*")) {
return new UserA... | public class class_name {
public static User createInstance(String user) {
if (user.equals("$authenticated")) {
return new UserAuthenticated(); // depends on control dependency: [if], data = [none]
} else if (user.equals("$anonymous")) {
return new UserAnonymous(); // depends on... |
public class class_name {
public List<TimephasedWork> getTimephasedOvertimeWork()
{
if (m_timephasedOvertimeWork == null && m_timephasedWork != null && getOvertimeWork() != null)
{
double perDayFactor = getRemainingOvertimeWork().getDuration() / (getRemainingWork().getDuration() - getRemainingO... | public class class_name {
public List<TimephasedWork> getTimephasedOvertimeWork()
{
if (m_timephasedOvertimeWork == null && m_timephasedWork != null && getOvertimeWork() != null)
{
double perDayFactor = getRemainingOvertimeWork().getDuration() / (getRemainingWork().getDuration() - getRemainingO... |
public class class_name {
@Override
public final void setDefaultLocalAddresses(SocketAddress firstLocalAddress, SocketAddress... otherLocalAddresses) {
if (otherLocalAddresses == null) {
otherLocalAddresses = new SocketAddress[0];
}
Collection<SocketAddress> newLocalAddresses =... | public class class_name {
@Override
public final void setDefaultLocalAddresses(SocketAddress firstLocalAddress, SocketAddress... otherLocalAddresses) {
if (otherLocalAddresses == null) {
otherLocalAddresses = new SocketAddress[0]; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private RecyclerView.OnScrollListener createScrollListener() {
return new RecyclerView.OnScrollListener() {
/**
* True, if the view is currently scrolling up, false otherwise.
*/
private boolean scrollingUp;
@Override
... | public class class_name {
private RecyclerView.OnScrollListener createScrollListener() {
return new RecyclerView.OnScrollListener() {
/**
* True, if the view is currently scrolling up, false otherwise.
*/
private boolean scrollingUp;
@Override
... |
public class class_name {
@Override
public void setDestinationLookup(String _destinationLookup) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
SibTr.entry(this, TRACE, "setDestinationLookup", _destinationLookup);
}
if (!isValueCanBeSet(_destinationLooku... | public class class_name {
@Override
public void setDestinationLookup(String _destinationLookup) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
SibTr.entry(this, TRACE, "setDestinationLookup", _destinationLookup); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static Packet build(IoBuffer buffer) {
if (buffer.hasArray()) {
return new Packet(buffer.array());
}
byte[] buf = new byte[buffer.remaining()];
buffer.get(buf);
return new Packet(buf);
} } | public class class_name {
public static Packet build(IoBuffer buffer) {
if (buffer.hasArray()) {
return new Packet(buffer.array());
// depends on control dependency: [if], data = [none]
}
byte[] buf = new byte[buffer.remaining()];
buffer.get(buf);
return new Pa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.