code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static <T> T getPropertyValue(final Object instance, final String fieldName) {
try {
return (T) PropertyUtils.getProperty(instance, fieldName);
} catch (final Exception e) {
throw new RuntimeException(e);
}
} } | public class class_name {
public static <T> T getPropertyValue(final Object instance, final String fieldName) {
try {
return (T) PropertyUtils.getProperty(instance, fieldName);
// depends on control dependency: [try], data = [none]
} catch (final Exception e) {
throw new RuntimeException(e);
}
// dep... |
public class class_name {
public CaseExecutionEntity getCaseExecution() {
if (caseExecutionId != null) {
return Context
.getCommandContext()
.getCaseExecutionManager()
.findCaseExecutionById(caseExecutionId);
}
return null;
} } | public class class_name {
public CaseExecutionEntity getCaseExecution() {
if (caseExecutionId != null) {
return Context
.getCommandContext()
.getCaseExecutionManager()
.findCaseExecutionById(caseExecutionId); // depends on control dependency: [if], data = [none]
}
return... |
public class class_name {
public String getEditorParameter(CmsObject cms, String editor, String param) {
String path = OpenCms.getSystemInfo().getConfigFilePath(cms, "editors/" + editor + ".properties");
CmsVfsMemoryObjectCache cache = CmsVfsMemoryObjectCache.getVfsMemoryObjectCache();
CmsPara... | public class class_name {
public String getEditorParameter(CmsObject cms, String editor, String param) {
String path = OpenCms.getSystemInfo().getConfigFilePath(cms, "editors/" + editor + ".properties");
CmsVfsMemoryObjectCache cache = CmsVfsMemoryObjectCache.getVfsMemoryObjectCache();
CmsPara... |
public class class_name {
private void validateExtensions(StatusLine statusLine, Map<String, List<String>> headers) throws WebSocketException
{
// Get the values of Sec-WebSocket-Extensions.
List<String> values = headers.get("Sec-WebSocket-Extensions");
if (values == null || values.size() ... | public class class_name {
private void validateExtensions(StatusLine statusLine, Map<String, List<String>> headers) throws WebSocketException
{
// Get the values of Sec-WebSocket-Extensions.
List<String> values = headers.get("Sec-WebSocket-Extensions");
if (values == null || values.size() ... |
public class class_name {
public String getValue(CmsUser user) {
String value = null;
if (isAdditionalInfo()) {
value = (String)user.getAdditionalInfo(getAddInfoKey());
} else {
try {
PropertyUtilsBean propUtils = new PropertyUtilsBean();
... | public class class_name {
public String getValue(CmsUser user) {
String value = null;
if (isAdditionalInfo()) {
value = (String)user.getAdditionalInfo(getAddInfoKey()); // depends on control dependency: [if], data = [none]
} else {
try {
PropertyUtilsBea... |
public class class_name {
@Override
public INDArray[] exec(CustomOp op) {
Nd4j.getExecutioner().commit();
//
if (op.numOutputArguments() == 0 && !op.isInplaceCall()) {
try {
val list = this.calculateOutputShape(op);
if (list.isEmpty())
... | public class class_name {
@Override
public INDArray[] exec(CustomOp op) {
Nd4j.getExecutioner().commit();
//
if (op.numOutputArguments() == 0 && !op.isInplaceCall()) {
try {
val list = this.calculateOutputShape(op);
if (list.isEmpty())
... |
public class class_name {
public InetAddress discoverHost (int udpPort, int timeoutMillis) {
DatagramSocket socket = null;
try {
socket = new DatagramSocket();
broadcast(udpPort, socket);
socket.setSoTimeout(timeoutMillis);
DatagramPacket packet = discoveryHandler.onRequestNewDatagramPacket();
try {... | public class class_name {
public InetAddress discoverHost (int udpPort, int timeoutMillis) {
DatagramSocket socket = null;
try {
socket = new DatagramSocket(); // depends on control dependency: [try], data = [none]
broadcast(udpPort, socket); // depends on control dependency: [try], data = [none]
socket.s... |
public class class_name {
public Canal findCanal(String destination) {
FindCanalEvent event = new FindCanalEvent();
event.setDestination(destination);
try {
Object obj = delegate.callManager(event);
if (obj != null && obj instanceof Canal) {
return (Canal... | public class class_name {
public Canal findCanal(String destination) {
FindCanalEvent event = new FindCanalEvent();
event.setDestination(destination);
try {
Object obj = delegate.callManager(event);
if (obj != null && obj instanceof Canal) {
return (Canal... |
public class class_name {
private static void resetJavaLibraryPath() {
synchronized (Runtime.getRuntime()) {
try {
Field field = ClassLoader.class.getDeclaredField("usr_paths");
field.setAccessible(true);
field.set(null, null);
field ... | public class class_name {
private static void resetJavaLibraryPath() {
synchronized (Runtime.getRuntime()) {
try {
Field field = ClassLoader.class.getDeclaredField("usr_paths");
field.setAccessible(true); // depends on control dependency: [try], data = [none]
... |
public class class_name {
private static long parseDateTimeString(String str, int offset) {
int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0;
boolean isUTC = false;
boolean isValid = false;
do {
if (str == null) {
break;
}
... | public class class_name {
private static long parseDateTimeString(String str, int offset) {
int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0;
boolean isUTC = false;
boolean isValid = false;
do {
if (str == null) {
break;
}
... |
public class class_name {
public boolean checkRead()
{
if (!inActive) {
return false;
}
if (state != State.ACTIVE && state != State.WAITING_FOR_DELIMITER) {
return false;
}
// Check if there's an item in the pipe.
if (!inpipe.checkRead()) {... | public class class_name {
public boolean checkRead()
{
if (!inActive) {
return false; // depends on control dependency: [if], data = [none]
}
if (state != State.ACTIVE && state != State.WAITING_FOR_DELIMITER) {
return false; // depends on control dependency: [if], d... |
public class class_name {
public LibrarySet[] getActiveLibrarySets(final LinkerDef[] defaultProviders, final int index) {
if (isReference()) {
return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef"))
.getActiveUserLibrarySets(defaultProviders, index);
}
final Project p = getProject(... | public class class_name {
public LibrarySet[] getActiveLibrarySets(final LinkerDef[] defaultProviders, final int index) {
if (isReference()) {
return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef"))
.getActiveUserLibrarySets(defaultProviders, index); // depends on control dependency: [if],... |
public class class_name {
protected void processDigits(List<Span> contextTokens, char compare, HashMap rule, int matchBegin, int currentPosition,
LinkedHashMap<String, ConTextSpan> matches) {
mt = pdigit.matcher(contextTokens.get(currentPosition).text);
if (mt.find()) {... | public class class_name {
protected void processDigits(List<Span> contextTokens, char compare, HashMap rule, int matchBegin, int currentPosition,
LinkedHashMap<String, ConTextSpan> matches) {
mt = pdigit.matcher(contextTokens.get(currentPosition).text);
if (mt.find()) {... |
public class class_name {
@Override
public CPDefinitionOptionRel fetchByC_SC_Last(long CPDefinitionId,
boolean skuContributor,
OrderByComparator<CPDefinitionOptionRel> orderByComparator) {
int count = countByC_SC(CPDefinitionId, skuContributor);
if (count == 0) {
return null;
}
List<CPDefinitionOptio... | public class class_name {
@Override
public CPDefinitionOptionRel fetchByC_SC_Last(long CPDefinitionId,
boolean skuContributor,
OrderByComparator<CPDefinitionOptionRel> orderByComparator) {
int count = countByC_SC(CPDefinitionId, skuContributor);
if (count == 0) {
return null; // depends on control depende... |
public class class_name {
public ArgumentOptions withMaxUsageWidth(int maxWidth) {
if (tty.isInteractive()) {
this.usageWidth = Math.min(maxWidth, tty.getTerminalSize().cols);
} else {
this.usageWidth = maxWidth;
}
return this;
} } | public class class_name {
public ArgumentOptions withMaxUsageWidth(int maxWidth) {
if (tty.isInteractive()) {
this.usageWidth = Math.min(maxWidth, tty.getTerminalSize().cols); // depends on control dependency: [if], data = [none]
} else {
this.usageWidth = maxWidth; // depends o... |
public class class_name {
@Override
public void setSize(float width, float height)
{
if (view != null)
{
view.setSize(width, height);
}
} } | public class class_name {
@Override
public void setSize(float width, float height)
{
if (view != null)
{
view.setSize(width, height); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@SuppressWarnings("unused")
public void selectItem(int position, boolean invokeListeners) {
IOperationItem item = mOuterAdapter.getItem(position);
IOperationItem oldHidedItem = mOuterAdapter.getItem(mRealHidedPosition);
int realPosition = mOuterAdapter.normalizePo... | public class class_name {
@SuppressWarnings("unused")
public void selectItem(int position, boolean invokeListeners) {
IOperationItem item = mOuterAdapter.getItem(position);
IOperationItem oldHidedItem = mOuterAdapter.getItem(mRealHidedPosition);
int realPosition = mOuterAdapter.normalizePo... |
public class class_name {
public static boolean isLog4jConfigurationAvailable()
{
String log4jConfiguration = System.getProperty(LOG4J_CONFIGURATION);
String resource = log4jConfiguration != null ? log4jConfiguration : LOG4J_PROPERTIES;
URL url = null;
try
{
url = new URL(reso... | public class class_name {
public static boolean isLog4jConfigurationAvailable()
{
String log4jConfiguration = System.getProperty(LOG4J_CONFIGURATION);
String resource = log4jConfiguration != null ? log4jConfiguration : LOG4J_PROPERTIES;
URL url = null;
try
{
url = new URL(reso... |
public class class_name {
private synchronized void onStateChange(PrimitiveState state) {
if (this.state != state) {
if (state == PrimitiveState.EXPIRED) {
if (connected) {
onStateChange(PrimitiveState.SUSPENDED);
recover();
} else {
log.debug("State changed: {}"... | public class class_name {
private synchronized void onStateChange(PrimitiveState state) {
if (this.state != state) {
if (state == PrimitiveState.EXPIRED) {
if (connected) {
onStateChange(PrimitiveState.SUSPENDED); // depends on control dependency: [if], data = [none]
recover(); //... |
public class class_name {
public void visit(Term term)
{
if (isEnteringContext())
{
SymbolKey key = currentSymbolTable.getSymbolKey(currentPosition);
term.setSymbolKey(key);
}
if (delegate != null)
{
delegate.visit(term);
}
} ... | public class class_name {
public void visit(Term term)
{
if (isEnteringContext())
{
SymbolKey key = currentSymbolTable.getSymbolKey(currentPosition);
term.setSymbolKey(key); // depends on control dependency: [if], data = [none]
}
if (delegate != null)
... |
public class class_name {
public boolean hasInputVariable(String name) {
for (InputVariable inputVariable : this.inputVariables) {
if (inputVariable.getName().equals(name)) {
return true;
}
}
return false;
} } | public class class_name {
public boolean hasInputVariable(String name) {
for (InputVariable inputVariable : this.inputVariables) {
if (inputVariable.getName().equals(name)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return fa... |
public class class_name {
public void setConstraintDetails(java.util.Collection<ConstraintDetail> constraintDetails) {
if (constraintDetails == null) {
this.constraintDetails = null;
return;
}
this.constraintDetails = new java.util.ArrayList<ConstraintDetail>(constraint... | public class class_name {
public void setConstraintDetails(java.util.Collection<ConstraintDetail> constraintDetails) {
if (constraintDetails == null) {
this.constraintDetails = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], da... |
public class class_name {
public Observable<ServiceResponse<Page<DetectorResponseInner>>> listHostingEnvironmentDetectorResponsesNextWithServiceResponseAsync(final String nextPageLink) {
return listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResp... | public class class_name {
public Observable<ServiceResponse<Page<DetectorResponseInner>>> listHostingEnvironmentDetectorResponsesNextWithServiceResponseAsync(final String nextPageLink) {
return listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResp... |
public class class_name {
private static RgroupStructure buildMoleculefromPeptideOrRNA(final String id, final List<Monomer> validMonomers) throws BuilderMoleculeException, ChemistryException {
try {
String input = null;
AbstractMolecule currentMolecule = null;
input = getInput(validMonomers.g... | public class class_name {
private static RgroupStructure buildMoleculefromPeptideOrRNA(final String id, final List<Monomer> validMonomers) throws BuilderMoleculeException, ChemistryException {
try {
String input = null;
AbstractMolecule currentMolecule = null;
input = getInput(validMonomers.g... |
public class class_name {
private static JavaDumper createInstance() {
try {
// Try to find IBM Java dumper class.
Class<?> dumpClass = Class.forName("com.ibm.jvm.Dump");
try {
// Try to find the IBM Java 7.1 dump methods.
Class<?>[] paramType... | public class class_name {
private static JavaDumper createInstance() {
try {
// Try to find IBM Java dumper class.
Class<?> dumpClass = Class.forName("com.ibm.jvm.Dump");
try {
// Try to find the IBM Java 7.1 dump methods.
Class<?>[] paramType... |
public class class_name {
public OrderlessRouter<T> addRoute(String pathPattern, T target) {
PathPattern p = new PathPattern(pathPattern);
if (routes.containsKey(p)) {
return this;
}
routes.put(p, target);
addReverseRoute(target, p);
return this;
} } | public class class_name {
public OrderlessRouter<T> addRoute(String pathPattern, T target) {
PathPattern p = new PathPattern(pathPattern);
if (routes.containsKey(p)) {
return this; // depends on control dependency: [if], data = [none]
}
routes.put(p, target);
addRev... |
public class class_name {
protected void postPublishEvent(Collection<EntryEventData> eventDataIncludingValues,
Collection<EntryEventData> eventDataExcludingValues) {
// publish event data of interest to query caches; since query cache listener registrations
// includ... | public class class_name {
protected void postPublishEvent(Collection<EntryEventData> eventDataIncludingValues,
Collection<EntryEventData> eventDataExcludingValues) {
// publish event data of interest to query caches; since query cache listener registrations
// includ... |
public class class_name {
public BoxTransform concatenate(BoxTransform src)
{
if (src.isEmpty())
return this;
else if (this.isEmpty())
return src;
else
{
BoxTransform ret = new BoxTransform(this);
ret.transform = new AffineTransform(tr... | public class class_name {
public BoxTransform concatenate(BoxTransform src)
{
if (src.isEmpty())
return this;
else if (this.isEmpty())
return src;
else
{
BoxTransform ret = new BoxTransform(this);
ret.transform = new AffineTransform(tr... |
public class class_name {
@Override
public void addServiceManagementBean(ServiceContext serviceContext) {
GatewayManagementBean gatewayManagementBean = getLocalGatewayManagementBean();
ServiceManagementBean serviceManagementBean = serviceManagmentBeanFactory.newServiceManagementBean(
... | public class class_name {
@Override
public void addServiceManagementBean(ServiceContext serviceContext) {
GatewayManagementBean gatewayManagementBean = getLocalGatewayManagementBean();
ServiceManagementBean serviceManagementBean = serviceManagmentBeanFactory.newServiceManagementBean(
... |
public class class_name {
public static List<InetSocketAddress> getJobMasterRpcAddresses(AlluxioConfiguration conf) {
// First check whether job rpc addresses are explicitly configured.
if (conf.isSet(PropertyKey.JOB_MASTER_RPC_ADDRESSES)) {
return parseInetSocketAddresses(
conf.getList(Propert... | public class class_name {
public static List<InetSocketAddress> getJobMasterRpcAddresses(AlluxioConfiguration conf) {
// First check whether job rpc addresses are explicitly configured.
if (conf.isSet(PropertyKey.JOB_MASTER_RPC_ADDRESSES)) {
return parseInetSocketAddresses(
conf.getList(Propert... |
public class class_name {
public Pattern getPattern()
{
if(pattern == null) {
pattern = constructPattern();
if (this instanceof SIFMiner && idFetcher != null && idMap != null) {
pattern.add(new HasAnID(idFetcher, idMap), ((SIFMiner) this).getSourceLabel());
pattern.add(new HasAnID(idFetcher, idMap), (... | public class class_name {
public Pattern getPattern()
{
if(pattern == null) {
pattern = constructPattern(); // depends on control dependency: [if], data = [none]
if (this instanceof SIFMiner && idFetcher != null && idMap != null) {
pattern.add(new HasAnID(idFetcher, idMap), ((SIFMiner) this).getSourceLabe... |
public class class_name {
public java.util.List<ECSService> getEcsServices() {
if (ecsServices == null) {
ecsServices = new com.amazonaws.internal.SdkInternalList<ECSService>();
}
return ecsServices;
} } | public class class_name {
public java.util.List<ECSService> getEcsServices() {
if (ecsServices == null) {
ecsServices = new com.amazonaws.internal.SdkInternalList<ECSService>(); // depends on control dependency: [if], data = [none]
}
return ecsServices;
} } |
public class class_name {
public Number optNumber(int index, Number defaultValue) {
Object val = this.opt(index);
if (JSONObject.NULL.equals(val)) {
return defaultValue;
}
if (val instanceof Number){
return (Number) val;
}
if (val instanc... | public class class_name {
public Number optNumber(int index, Number defaultValue) {
Object val = this.opt(index);
if (JSONObject.NULL.equals(val)) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
if (val instanceof Number){
return (N... |
public class class_name {
private String readNmtoken(boolean isName) throws SAXException, IOException {
char c;
nameBufferPos = 0;
// Read the first character.
while (true) {
c = readCh();
switch (c) {
case '%':
case '<':
... | public class class_name {
private String readNmtoken(boolean isName) throws SAXException, IOException {
char c;
nameBufferPos = 0;
// Read the first character.
while (true) {
c = readCh();
switch (c) {
case '%':
case '<':
... |
public class class_name {
protected TemplateEngine getTemplateEngine() {
if (cachedTemplateEngine != null) {
return cachedTemplateEngine;
}
synchronized (this) {
if (cachedTemplateEngine != null) {
return cachedTemplateEngine;
}
ca... | public class class_name {
protected TemplateEngine getTemplateEngine() {
if (cachedTemplateEngine != null) {
return cachedTemplateEngine; // depends on control dependency: [if], data = [none]
}
synchronized (this) {
if (cachedTemplateEngine != null) {
ret... |
public class class_name {
private boolean insert(T element) {
if (!entries.containsKey(element)) {
head = createEntry(element, head);
entries.put(element, head);
return true;
}
return false;
} } | public class class_name {
private boolean insert(T element) {
if (!entries.containsKey(element)) {
head = createEntry(element, head); // depends on control dependency: [if], data = [none]
entries.put(element, head); // depends on control dependency: [if], data = [none]
retur... |
public class class_name {
public static boolean isClazzExists(String name) {
try {
Class.forName(name, false, Decisions.class.getClassLoader());
} catch (ClassNotFoundException e) {
return false;
}
return true;
} } | public class class_name {
public static boolean isClazzExists(String name) {
try {
Class.forName(name, false, Decisions.class.getClassLoader());
} catch (ClassNotFoundException e) {
return false;
} // depends on control dependency: [catch], data = [none]
return true;
} } |
public class class_name {
private GeneralizedCounter<K> conditionalizeHelper(K o) {
if (depth > 1) {
GeneralizedCounter<K> next = ErasureUtils.<GeneralizedCounter<K>>uncheckedCast(map.get(o));
if (next == null) // adds a new GeneralizedCounter if needed
{
map.put(o, (next = new Gener... | public class class_name {
private GeneralizedCounter<K> conditionalizeHelper(K o) {
if (depth > 1) {
GeneralizedCounter<K> next = ErasureUtils.<GeneralizedCounter<K>>uncheckedCast(map.get(o));
if (next == null) // adds a new GeneralizedCounter if needed
{
map.put(o, (next = new Gener... |
public class class_name {
protected void descriminateType(
EntityDesc entityDesc, EntityPropertyDesc propertyDesc, ColumnMeta columnMeta) {
String defaultClassName = dialect.getMappedPropertyClassName(columnMeta);
if (Byte.class.getName().equals(defaultClassName)
|| Short.class.getName().equals(d... | public class class_name {
protected void descriminateType(
EntityDesc entityDesc, EntityPropertyDesc propertyDesc, ColumnMeta columnMeta) {
String defaultClassName = dialect.getMappedPropertyClassName(columnMeta);
if (Byte.class.getName().equals(defaultClassName)
|| Short.class.getName().equals(d... |
public class class_name {
private static boolean isEmpty(@Nonnull final File file, @Nonnull final Charset charset) {
try {
return FileUtil.isEmpty(file, charset);
} catch (final IOException e) {
throw new IllegalStateOfArgumentException("The given file could not be read.", e);
}
} } | public class class_name {
private static boolean isEmpty(@Nonnull final File file, @Nonnull final Charset charset) {
try {
return FileUtil.isEmpty(file, charset); // depends on control dependency: [try], data = [none]
} catch (final IOException e) {
throw new IllegalStateOfArgumentException("The given file c... |
public class class_name {
public Routes setBaseViewPath(String baseViewPath) {
if (StrKit.isBlank(baseViewPath)) {
throw new IllegalArgumentException("baseViewPath can not be blank");
}
baseViewPath = baseViewPath.trim();
if (! baseViewPath.startsWith("/")) { // add prefix "/"
baseViewPath = ... | public class class_name {
public Routes setBaseViewPath(String baseViewPath) {
if (StrKit.isBlank(baseViewPath)) {
throw new IllegalArgumentException("baseViewPath can not be blank");
}
baseViewPath = baseViewPath.trim();
if (! baseViewPath.startsWith("/")) { // add prefix "/"
baseViewPath = ... |
public class class_name {
private float[] getData50002(RandomAccessFile raf, Grib2Drs.Type50002 gdrs) throws IOException {
BitReader reader;
reader = new BitReader(raf, startPos + 5);
int[] groupWidth = new int[gdrs.p1];
for (int i = 0; i < gdrs.p1; i++) {
groupWidth[i] = (int) reader.bits2UInt... | public class class_name {
private float[] getData50002(RandomAccessFile raf, Grib2Drs.Type50002 gdrs) throws IOException {
BitReader reader;
reader = new BitReader(raf, startPos + 5);
int[] groupWidth = new int[gdrs.p1];
for (int i = 0; i < gdrs.p1; i++) {
groupWidth[i] = (int) reader.bits2UInt... |
public class class_name {
public VTimeZone loadVTimeZone(String id) throws IOException, ParserException, ParseException {
Validate.notBlank(id, "Invalid TimeZone ID: [%s]", id);
if (!cache.containsId(id)) {
final URL resource = ResourceLoader.getResource(resourcePrefix + id + ".ics");
... | public class class_name {
public VTimeZone loadVTimeZone(String id) throws IOException, ParserException, ParseException {
Validate.notBlank(id, "Invalid TimeZone ID: [%s]", id);
if (!cache.containsId(id)) {
final URL resource = ResourceLoader.getResource(resourcePrefix + id + ".ics");
... |
public class class_name {
@CanIgnoreReturnValue
public static boolean removeAll(Iterator<?> removeFrom, Collection<?> elementsToRemove) {
checkNotNull(elementsToRemove);
boolean result = false;
while (removeFrom.hasNext()) {
if (elementsToRemove.contains(removeFrom.next())) {
removeFrom.rem... | public class class_name {
@CanIgnoreReturnValue
public static boolean removeAll(Iterator<?> removeFrom, Collection<?> elementsToRemove) {
checkNotNull(elementsToRemove);
boolean result = false;
while (removeFrom.hasNext()) {
if (elementsToRemove.contains(removeFrom.next())) {
removeFrom.rem... |
public class class_name {
public static boolean templateTagAction(
String element,
String elementlist,
boolean checkall,
boolean checknone,
ServletRequest req) {
if (elementlist != null) {
CmsFlexController controller = CmsFlexController.getController(req);... | public class class_name {
public static boolean templateTagAction(
String element,
String elementlist,
boolean checkall,
boolean checknone,
ServletRequest req) {
if (elementlist != null) {
CmsFlexController controller = CmsFlexController.getController(req);... |
public class class_name {
@SuppressLint("DrawAllocation")
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
final int restore = canvas.save();
final int cx = getMeasuredWidth() / 2;
final int cy = getMeasuredHeight() / 2;
final int radius = getMeas... | public class class_name {
@SuppressLint("DrawAllocation")
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
final int restore = canvas.save();
final int cx = getMeasuredWidth() / 2;
final int cy = getMeasuredHeight() / 2;
final int radius = getMeas... |
public class class_name {
private void processGroups(ConfigurationAdmin configAdmin,
String roleName,
Dictionary<String, Object> roleProps, Set<String> pids) {
String[] groupPids = (String[]) roleProps.get(CFG_KEY_GROUP);
if (groupPids == n... | public class class_name {
private void processGroups(ConfigurationAdmin configAdmin,
String roleName,
Dictionary<String, Object> roleProps, Set<String> pids) {
String[] groupPids = (String[]) roleProps.get(CFG_KEY_GROUP);
if (groupPids == n... |
public class class_name {
protected void directRefreshTree() {
int[] rowCounts;
DefaultMutableTreeNode propertiesNode;
// Added: (weconsultants@users) Moved tableNode here for visibiity nd new DECFM
DefaultMutableTreeNode tableNode;
DecimalFormat DECFMT = new ... | public class class_name {
protected void directRefreshTree() {
int[] rowCounts;
DefaultMutableTreeNode propertiesNode;
// Added: (weconsultants@users) Moved tableNode here for visibiity nd new DECFM
DefaultMutableTreeNode tableNode;
DecimalFormat DECFMT = new ... |
public class class_name {
protected boolean isLeftmostNode() {
@SuppressWarnings("unchecked")
K node = (K) this;
while (node != null) {
K parent = node.getParent();
if (parent != null && parent.leftChild != node)
return false;
node = parent;
... | public class class_name {
protected boolean isLeftmostNode() {
@SuppressWarnings("unchecked")
K node = (K) this;
while (node != null) {
K parent = node.getParent();
if (parent != null && parent.leftChild != node)
return false;
node = parent; /... |
public class class_name {
public void writeEndElement() throws SAXException {
processStartElement();
final QName qName = elementStack.remove(); // pop
transformer.endElement(qName.uri, qName.localName, qName.qName);
for (final NamespaceMapping p: qName.mappings) {
if (p.newM... | public class class_name {
public void writeEndElement() throws SAXException {
processStartElement();
final QName qName = elementStack.remove(); // pop
transformer.endElement(qName.uri, qName.localName, qName.qName);
for (final NamespaceMapping p: qName.mappings) {
if (p.newM... |
public class class_name {
public static <T extends Enum<T> & FieldNameProvider> List<Order> parse(final Class<T> enumType,
final String sortString) throws SortParameterSyntaxErrorException {
final List<Order> parsedSortings = new ArrayList<>();
// scan the sort tuples e.g. field:direction
... | public class class_name {
public static <T extends Enum<T> & FieldNameProvider> List<Order> parse(final Class<T> enumType,
final String sortString) throws SortParameterSyntaxErrorException {
final List<Order> parsedSortings = new ArrayList<>();
// scan the sort tuples e.g. field:direction
... |
public class class_name {
protected ItemData getItemByName(NodeData parent, String parentId, QPathEntry name, ItemType itemType)
throws RepositoryException, IllegalStateException
{
checkIfOpened();
try
{
ResultSet item = null;
try
{
item = findItemByNam... | public class class_name {
protected ItemData getItemByName(NodeData parent, String parentId, QPathEntry name, ItemType itemType)
throws RepositoryException, IllegalStateException
{
checkIfOpened();
try
{
ResultSet item = null;
try
{
item = findItemByNam... |
public class class_name {
public void setAllowedValues(java.util.Collection<String> allowedValues) {
if (allowedValues == null) {
this.allowedValues = null;
return;
}
this.allowedValues = new java.util.ArrayList<String>(allowedValues);
} } | public class class_name {
public void setAllowedValues(java.util.Collection<String> allowedValues) {
if (allowedValues == null) {
this.allowedValues = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Timer add(long interval, TimerHandler handler, Object... args)
{
if (handler == null) {
return null;
}
return new Timer(timer.add(interval, handler, args));
} } | public class class_name {
public Timer add(long interval, TimerHandler handler, Object... args)
{
if (handler == null) {
return null; // depends on control dependency: [if], data = [none]
}
return new Timer(timer.add(interval, handler, args));
} } |
public class class_name {
public String getOriginalParams() {
if (m_originalParams == null) {
m_originalParams = CmsEncoder.decode(CmsRequestUtil.encodeParams(getJsp().getRequest()));
}
return m_originalParams;
} } | public class class_name {
public String getOriginalParams() {
if (m_originalParams == null) {
m_originalParams = CmsEncoder.decode(CmsRequestUtil.encodeParams(getJsp().getRequest())); // depends on control dependency: [if], data = [none]
}
return m_originalParams;
} } |
public class class_name {
public java.util.List<PolicyAttributeDescription> getPolicyAttributeDescriptions() {
if (policyAttributeDescriptions == null) {
policyAttributeDescriptions = new com.amazonaws.internal.SdkInternalList<PolicyAttributeDescription>();
}
return policyAttributeD... | public class class_name {
public java.util.List<PolicyAttributeDescription> getPolicyAttributeDescriptions() {
if (policyAttributeDescriptions == null) {
policyAttributeDescriptions = new com.amazonaws.internal.SdkInternalList<PolicyAttributeDescription>(); // depends on control dependency: [if], d... |
public class class_name {
public void addRecord(Rec record, boolean bMainQuery)
{
if (record == null)
return;
if (this.contains(record))
{ // Don't add this twice.
if (!bMainQuery)
return;
this.removeRecord(record); // Change order
... | public class class_name {
public void addRecord(Rec record, boolean bMainQuery)
{
if (record == null)
return;
if (this.contains(record))
{ // Don't add this twice.
if (!bMainQuery)
return;
this.removeRecord(record); // Change order //... |
public class class_name {
public static void dispose() {
if (xml2containerMap != null) {
for (SpringContainer container : xml2containerMap.values()) {
container.dispose();
}
xml2containerMap.clear();
}
} } | public class class_name {
public static void dispose() {
if (xml2containerMap != null) {
for (SpringContainer container : xml2containerMap.values()) {
container.dispose(); // depends on control dependency: [for], data = [container]
}
xml2containerMap.clear(); // depends on control depend... |
public class class_name {
private String getCurrentSSpaceFileName() {
// REMINDER: This instruction is expected to be rare, so rather than
// save the name and require a lookup every time the current sspace
// is needed, we use an O(n) call to find the name as necessary
for (Map.Entry<S... | public class class_name {
private String getCurrentSSpaceFileName() {
// REMINDER: This instruction is expected to be rare, so rather than
// save the name and require a lookup every time the current sspace
// is needed, we use an O(n) call to find the name as necessary
for (Map.Entry<S... |
public class class_name {
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/{alertId}/triggers/{triggerId}")
@Description("Returns a trigger by its ID.")
public TriggerDto getTriggerById(@Context HttpServletRequest req, @PathParam("alertId") BigInteger alertId,
@PathParam("triggerId") BigInteger trigger... | public class class_name {
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/{alertId}/triggers/{triggerId}")
@Description("Returns a trigger by its ID.")
public TriggerDto getTriggerById(@Context HttpServletRequest req, @PathParam("alertId") BigInteger alertId,
@PathParam("triggerId") BigInteger trigger... |
public class class_name {
protected void buildConstructorWithFields(ClassVisitor cw,
ClassDefinition classDef,
Collection<FieldDefinition> fieldDefs) {
Type[] params = new Type[fieldDefs.size()];
int index = 0... | public class class_name {
protected void buildConstructorWithFields(ClassVisitor cw,
ClassDefinition classDef,
Collection<FieldDefinition> fieldDefs) {
Type[] params = new Type[fieldDefs.size()];
int index = 0... |
public class class_name {
public void setWidth(String width) {
try {
m_width = Integer.parseInt(width);
} catch (NumberFormatException e) {
m_width = -1;
}
} } | public class class_name {
public void setWidth(String width) {
try {
m_width = Integer.parseInt(width); // depends on control dependency: [try], data = [none]
} catch (NumberFormatException e) {
m_width = -1;
} // depends on control dependency: [catch], data = [none]
... |
public class class_name {
@Override
public void process(Writer writer)
{
try
{
template.process(data, writer);
}
catch (IOException e)
{
throw new RuntimeException("Error writing template to writer", e);
}
catch (TemplateException e)
{
throw new RuntimeException(e.getMessage(), e);
}
} } | public class class_name {
@Override
public void process(Writer writer)
{
try
{
template.process(data, writer); // depends on control dependency: [try], data = [none]
}
catch (IOException e)
{
throw new RuntimeException("Error writing template to writer", e);
} // depends on control dependency: [cat... |
public class class_name {
private CoreContainer createCoreContainer() {
CoreContainer container = null;
try {
// get the core container
// still no core container: create it
container = CoreContainer.createAndLoad(
Paths.get(m_solrConfig.getHome()),
... | public class class_name {
private CoreContainer createCoreContainer() {
CoreContainer container = null;
try {
// get the core container
// still no core container: create it
container = CoreContainer.createAndLoad(
Paths.get(m_solrConfig.getHome()),
... |
public class class_name {
private int quantifiersMemoryInfo(Node node) {
int info = 0;
switch(node.getType()) {
case NodeType.LIST:
case NodeType.ALT:
ListNode can = (ListNode)node;
do {
int v = quantifiersMemoryInfo(can.value);
i... | public class class_name {
private int quantifiersMemoryInfo(Node node) {
int info = 0;
switch(node.getType()) {
case NodeType.LIST:
case NodeType.ALT:
ListNode can = (ListNode)node;
do {
int v = quantifiersMemoryInfo(can.value);
i... |
public class class_name {
public Datatype.Builder setRebuildableType(Optional<? extends TypeClass> rebuildableType) {
if (rebuildableType.isPresent()) {
return setRebuildableType(rebuildableType.get());
} else {
return clearRebuildableType();
}
} } | public class class_name {
public Datatype.Builder setRebuildableType(Optional<? extends TypeClass> rebuildableType) {
if (rebuildableType.isPresent()) {
return setRebuildableType(rebuildableType.get()); // depends on control dependency: [if], data = [none]
} else {
return clearRebuildableType(); //... |
public class class_name {
protected boolean isSlopDead(Cluster cluster, Set<String> storeNames, Slop slop) {
// destination node , no longer exists
if(!cluster.getNodeIds().contains(slop.getNodeId())) {
return true;
}
// destination store, no longer exists
if(!store... | public class class_name {
protected boolean isSlopDead(Cluster cluster, Set<String> storeNames, Slop slop) {
// destination node , no longer exists
if(!cluster.getNodeIds().contains(slop.getNodeId())) {
return true; // depends on control dependency: [if], data = [none]
}
//... |
public class class_name {
public void EBEsAssignAxialForces(int hi){
AxialForcei_ = new double[numberOfElements_];
AxialForcej_ = new double[numberOfElements_];
for(int el=0;el<numberOfElements_;el++){
AxialForcei_[el] = Efforti_[aX_][el][hi];
AxialForcej_[el] = Effortj_[aX_][el][hi];
}
... | public class class_name {
public void EBEsAssignAxialForces(int hi){
AxialForcei_ = new double[numberOfElements_];
AxialForcej_ = new double[numberOfElements_];
for(int el=0;el<numberOfElements_;el++){
AxialForcei_[el] = Efforti_[aX_][el][hi]; // depends on control dependency: [for], data = [el]
... |
public class class_name {
public Object getBean(String name) {
Bean bean = beans.get(name);
if (null == bean) {
return null;
}
return bean.object;
} } | public class class_name {
public Object getBean(String name) {
Bean bean = beans.get(name);
if (null == bean) {
return null; // depends on control dependency: [if], data = [none]
}
return bean.object;
} } |
public class class_name {
public final double toDoubleSafe(String toParseParam) {
if (toParseParam == null || toParseParam.trim().isEmpty()) {
return 0D;
}
try {
return Double.parseDouble(toParseParam);
} catch (NumberFormatException e) {
return 0D;
}
} } | public class class_name {
public final double toDoubleSafe(String toParseParam) {
if (toParseParam == null || toParseParam.trim().isEmpty()) {
return 0D; // depends on control dependency: [if], data = [none]
}
try {
return Double.parseDouble(toParseParam); // depends on control dependency: [try], data = [n... |
public class class_name {
public void submit(CmsUser user, CmsObject cms, Runnable afterWrite, boolean force) {
try {
if (isValid() | force) {
if (force) {
removeValidators();
}
m_binder.commit();
PropertyUtilsBean... | public class class_name {
public void submit(CmsUser user, CmsObject cms, Runnable afterWrite, boolean force) {
try {
if (isValid() | force) {
if (force) {
removeValidators(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
boolean hasValidTimes() {
if ((getEnd() > 0L) && (getEnd() < System.currentTimeMillis())) {
return false;
}
return ((getEnd() == 0) | (getStart() == 0)) || (getEnd() >= getStart());
} } | public class class_name {
boolean hasValidTimes() {
if ((getEnd() > 0L) && (getEnd() < System.currentTimeMillis())) {
return false; // depends on control dependency: [if], data = [none]
}
return ((getEnd() == 0) | (getStart() == 0)) || (getEnd() >= getStart());
} } |
public class class_name {
private void generateCallToClassHandler(MutableClass mutableClass, MethodNode originalMethod,
String originalMethodName, RobolectricGeneratorAdapter generator) {
decorator.decorateMethodPreClassHandler(mutableClass, originalMethod, originalMethodName, generator);
int planLocalV... | public class class_name {
private void generateCallToClassHandler(MutableClass mutableClass, MethodNode originalMethod,
String originalMethodName, RobolectricGeneratorAdapter generator) {
decorator.decorateMethodPreClassHandler(mutableClass, originalMethod, originalMethodName, generator);
int planLocalV... |
public class class_name {
@SafeVarargs
public static <T> HashSet<T> newHashSet(boolean isSorted, T... ts) {
if (null == ts) {
return isSorted ? new LinkedHashSet<T>() : new HashSet<T>();
}
int initialCapacity = Math.max((int) (ts.length / .75f) + 1, 16);
HashSet<T> set = isSorted ? new LinkedHashSet<... | public class class_name {
@SafeVarargs
public static <T> HashSet<T> newHashSet(boolean isSorted, T... ts) {
if (null == ts) {
return isSorted ? new LinkedHashSet<T>() : new HashSet<T>();
// depends on control dependency: [if], data = [none]
}
int initialCapacity = Math.max((int) (ts.length / .75f) + 1, ... |
public class class_name {
protected void checkFormPropertyConflictingWithRegisteredData(ActionRuntime runtime, WebContext context, String propertyName) {
if (context.getVariableNames().contains(propertyName)) {
throwThymeleafFormPropertyConflictingWithRegisteredDataException(runtime, context, prope... | public class class_name {
protected void checkFormPropertyConflictingWithRegisteredData(ActionRuntime runtime, WebContext context, String propertyName) {
if (context.getVariableNames().contains(propertyName)) {
throwThymeleafFormPropertyConflictingWithRegisteredDataException(runtime, context, prope... |
public class class_name {
public static void decodeUISelectOne(FacesContext facesContext, UIComponent component)
{
if (!(component instanceof EditableValueHolder))
{
throw new IllegalArgumentException("Component "
+ component.getClientId(facesContext)
... | public class class_name {
public static void decodeUISelectOne(FacesContext facesContext, UIComponent component)
{
if (!(component instanceof EditableValueHolder))
{
throw new IllegalArgumentException("Component "
+ component.getClientId(facesContext)
... |
public class class_name {
protected Cassandra.Client getConnection(Object connection)
{
if (connection != null)
{
return ((IPooledConnection) connection).getAPI();
}
throw new KunderaException("Invalid configuration!, no available pooled connection found for:"
... | public class class_name {
protected Cassandra.Client getConnection(Object connection)
{
if (connection != null)
{
return ((IPooledConnection) connection).getAPI(); // depends on control dependency: [if], data = [none]
}
throw new KunderaException("Invalid configuration!... |
public class class_name {
private void updateFirstKey(PageModificationContext context) {
BTreePage page = context.getPageWrapper().getPage();
assert page.getConfig().isIndexPage() : "expected index page";
if (page.getCount() > 0) {
page.setFirstKey(generateMinKey());
}
}... | public class class_name {
private void updateFirstKey(PageModificationContext context) {
BTreePage page = context.getPageWrapper().getPage();
assert page.getConfig().isIndexPage() : "expected index page";
if (page.getCount() > 0) {
page.setFirstKey(generateMinKey()); // depends on c... |
public class class_name {
private void pushRight( int row ) {
if( isOffZero(row))
return;
// B = createB();
// B.print();
rotatorPushRight(row);
int end = N-2-row;
for( int i = 0; i < end && bulge != 0; i++ ) {
rotatorPushRight2(row,i+2);
}... | public class class_name {
private void pushRight( int row ) {
if( isOffZero(row))
return;
// B = createB();
// B.print();
rotatorPushRight(row);
int end = N-2-row;
for( int i = 0; i < end && bulge != 0; i++ ) {
rotatorPushRight2(row,i+2); // depend... |
public class class_name {
public void insert_us(final int[] argIn) {
attributeValue_5.data_format = AttrDataFormat.FMT_UNKNOWN;
final short[] values = new short[argIn.length];
for (int i = 0; i < argIn.length; i++) {
values[i] = (short) (argIn[i] & 0xFFFF);
}
attributeValue_5.w_dim.dim_x = argIn.length... | public class class_name {
public void insert_us(final int[] argIn) {
attributeValue_5.data_format = AttrDataFormat.FMT_UNKNOWN;
final short[] values = new short[argIn.length];
for (int i = 0; i < argIn.length; i++) {
values[i] = (short) (argIn[i] & 0xFFFF); // depends on control dependency: [for], data = [... |
public class class_name {
protected void handleTCPSrvRqst(SrvRqst srvRqst, Socket socket)
{
// Match scopes, RFC 2608, 11.1
if (!scopes.weakMatch(srvRqst.getScopes()))
{
tcpSrvRply.perform(socket, srvRqst, SLPError.SCOPE_NOT_SUPPORTED);
return;
}
Ser... | public class class_name {
protected void handleTCPSrvRqst(SrvRqst srvRqst, Socket socket)
{
// Match scopes, RFC 2608, 11.1
if (!scopes.weakMatch(srvRqst.getScopes()))
{
tcpSrvRply.perform(socket, srvRqst, SLPError.SCOPE_NOT_SUPPORTED); // depends on control dependency: [if], da... |
public class class_name {
private static MethodHandle findMethod(Class<?> clazz, String methodName, boolean staticMethod,
Class<?> expectedReturnType, Class<?>... expectedParameterTypes) {
MethodHandle methodHandle = null;
try {
Method method = clazz.getMethod(methodName, expectedParameterTypes);
... | public class class_name {
private static MethodHandle findMethod(Class<?> clazz, String methodName, boolean staticMethod,
Class<?> expectedReturnType, Class<?>... expectedParameterTypes) {
MethodHandle methodHandle = null;
try {
Method method = clazz.getMethod(methodName, expectedParameterTypes);
... |
public class class_name {
public Object getValue(float fraction) {
// Special-case optimization for the common case of only two keyframes
if (mNumKeyframes == 2) {
if (mInterpolator != null) {
fraction = mInterpolator.getInterpolation(fraction);
}
re... | public class class_name {
public Object getValue(float fraction) {
// Special-case optimization for the common case of only two keyframes
if (mNumKeyframes == 2) {
if (mInterpolator != null) {
fraction = mInterpolator.getInterpolation(fraction); // depends on control depend... |
public class class_name {
public boolean hasOverride(String operation) {
boolean result = false;
if (this.overrideOnce.containsKey(operation) == true || this.override.containsKey(operation) == true) {
result = true;
}
return result;
} } | public class class_name {
public boolean hasOverride(String operation) {
boolean result = false;
if (this.overrideOnce.containsKey(operation) == true || this.override.containsKey(operation) == true) {
result = true;
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static CompletionException combineErrors( Throwable error1, Throwable error2 )
{
if ( error1 != null && error2 != null )
{
Throwable cause1 = completionExceptionCause( error1 );
Throwable cause2 = completionExceptionCause( error2 );
... | public class class_name {
public static CompletionException combineErrors( Throwable error1, Throwable error2 )
{
if ( error1 != null && error2 != null )
{
Throwable cause1 = completionExceptionCause( error1 );
Throwable cause2 = completionExceptionCause( error2 );
... |
public class class_name {
public static void profile(String profileApp, String code, String message) {
if (openTrace) {
try {
tracer.profile(profileApp, code, message);
} catch (Exception e) {
if (LOGGER.isWarnEnabled()) {
LOGGER.warn(... | public class class_name {
public static void profile(String profileApp, String code, String message) {
if (openTrace) {
try {
tracer.profile(profileApp, code, message); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
if (LOG... |
public class class_name {
public static EvaluationResult evaluation(String resultText, String standardText, String perfectResult, String wrongResult) {
long start = System.currentTimeMillis();
int perfectLineCount=0;
int wrongLineCount=0;
int perfectCharCount=0;
int wrongCharCou... | public class class_name {
public static EvaluationResult evaluation(String resultText, String standardText, String perfectResult, String wrongResult) {
long start = System.currentTimeMillis();
int perfectLineCount=0;
int wrongLineCount=0;
int perfectCharCount=0;
int wrongCharCou... |
public class class_name {
public synchronized WorkManager createWorkManager(String id, String name)
{
if (id == null || id.trim().equals(""))
throw new IllegalArgumentException("The id of WorkManager is invalid: " + id);
// Check for an active work manager
if (activeWorkmanagers.keySet()... | public class class_name {
public synchronized WorkManager createWorkManager(String id, String name)
{
if (id == null || id.trim().equals(""))
throw new IllegalArgumentException("The id of WorkManager is invalid: " + id);
// Check for an active work manager
if (activeWorkmanagers.keySet()... |
public class class_name {
private String createMailToLink(String to, String bcc, String cc,
String subject, String body) {
Validate.notNull(to, "You must define a to-address");
final StringBuilder urlBuilder = new StringBuilder("mailto:");
addEncodedValue(urlBuilder, "to", to);
... | public class class_name {
private String createMailToLink(String to, String bcc, String cc,
String subject, String body) {
Validate.notNull(to, "You must define a to-address");
final StringBuilder urlBuilder = new StringBuilder("mailto:");
addEncodedValue(urlBuilder, "to", to);
... |
public class class_name {
public static List<Field> retrievePropertyList(final Class<?> cls) {
final List<Field> propertyList = new ArrayList<>();
for (final Field f : cls.getFields()) {
propertyList.add(f);
}
return propertyList;
} } | public class class_name {
public static List<Field> retrievePropertyList(final Class<?> cls) {
final List<Field> propertyList = new ArrayList<>();
for (final Field f : cls.getFields()) {
propertyList.add(f); // depends on control dependency: [for], data = [f]
}
return proper... |
public class class_name {
public static <E> Optional<E> get(final Iterable<E> iterable, final int position) {
checkNotNull(iterable, "Get requires an iterable");
if (position < 0) {
return Optional.empty();
}
int iterablePosition = 0;
for (E anIterable : iterable) {... | public class class_name {
public static <E> Optional<E> get(final Iterable<E> iterable, final int position) {
checkNotNull(iterable, "Get requires an iterable");
if (position < 0) {
return Optional.empty(); // depends on control dependency: [if], data = [none]
}
int iterabl... |
public class class_name {
public static String encodePassword(final String password) {
if (password == null) {
return null;
}
return encodePassword(password.toCharArray());
} } | public class class_name {
public static String encodePassword(final String password) {
if (password == null) {
return null; // depends on control dependency: [if], data = [none]
}
return encodePassword(password.toCharArray());
} } |
public class class_name {
public RiakSet getSet(BinaryValue key)
{
if (entries.containsKey(key))
{
for (RiakDatatype dt : entries.get(key))
{
if (dt.isSet())
{
return dt.getAsSet();
}
}
}... | public class class_name {
public RiakSet getSet(BinaryValue key)
{
if (entries.containsKey(key))
{
for (RiakDatatype dt : entries.get(key))
{
if (dt.isSet())
{
return dt.getAsSet(); // depends on control dependency: [if], d... |
public class class_name {
public static RequestContext handle(final HttpServletRequest request, final HttpServletResponse response) {
try {
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
} catch (final Exception e) {
LOGGER.log(Level.E... | public class class_name {
public static RequestContext handle(final HttpServletRequest request, final HttpServletResponse response) {
try {
request.setCharacterEncoding("UTF-8"); // depends on control dependency: [try], data = [none]
response.setCharacterEncoding("UTF-8"); // depends on... |
public class class_name {
public int getMnemonic() {
int mnemonic = KeyEvent.VK_UNDEFINED;
if (!MAC_OS_X) {
int index = getMnemonicIndex();
if ((index >= 0) && ((index + 1) < myAnnotatedString.length())) {
mnemonic = Character.toUpperCase(myAnnotatedString.charAt... | public class class_name {
public int getMnemonic() {
int mnemonic = KeyEvent.VK_UNDEFINED;
if (!MAC_OS_X) {
int index = getMnemonicIndex();
if ((index >= 0) && ((index + 1) < myAnnotatedString.length())) {
mnemonic = Character.toUpperCase(myAnnotatedString.charAt... |
public class class_name {
public @Nullable Apikey getApikeyOrNull(@Nullable String apikey) {
if (apikey != null) {
try {
return decode(apikey);
} catch (Exception e) { // any exception, also parsing ones
// nothing to do
}
}
return null;
} } | public class class_name {
public @Nullable Apikey getApikeyOrNull(@Nullable String apikey) {
if (apikey != null) {
try {
return decode(apikey); // depends on control dependency: [try], data = [none]
} catch (Exception e) { // any exception, also parsing ones
// nothing to do
} // depends on control ... |
public class class_name {
int guessPayloadLength() {
int length = 0;
// Total guess at average size of stream entry
try {
List<Object> payload = getBodyList();
length = payload.size() * 40;
}
catch (UnsupportedEncodingException e) {
// No FFDC code needed
// hmm... how do we... | public class class_name {
int guessPayloadLength() {
int length = 0;
// Total guess at average size of stream entry
try {
List<Object> payload = getBodyList();
length = payload.size() * 40; // depends on control dependency: [try], data = [none]
}
catch (UnsupportedEncodingException e) {... |
public class class_name {
private String toPostParameters(String getRequestUri, CmsSearch search) {
StringBuffer result;
String formname = "";
if (!m_formCache.containsKey(getRequestUri)) {
result = new StringBuffer();
int index = getRequestUri.indexOf('?');
... | public class class_name {
private String toPostParameters(String getRequestUri, CmsSearch search) {
StringBuffer result;
String formname = "";
if (!m_formCache.containsKey(getRequestUri)) {
result = new StringBuffer(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void insertEJBRefInEJBJar(Element ejb, EJBInfo ei, String ejbLinkValue, Document ejbDoc) {
List ejbRefArray = DomUtils.getChildElementsByName(ejb, "ejb-ref");
String insertedEjbRefName = ei.getRefName();
Node nextSibling = null;
for (int j = ejbRefArr... | public class class_name {
private void insertEJBRefInEJBJar(Element ejb, EJBInfo ei, String ejbLinkValue, Document ejbDoc) {
List ejbRefArray = DomUtils.getChildElementsByName(ejb, "ejb-ref");
String insertedEjbRefName = ei.getRefName();
Node nextSibling = null;
for (int j = ejbRefArr... |
public class class_name {
@Override
public void sendInternal(NotificationType type, String... messages) throws NotificationException {
if (producer == null) {
createProducer();
}
sendInternalToProducer(producer, type, messages);
} } | public class class_name {
@Override
public void sendInternal(NotificationType type, String... messages) throws NotificationException {
if (producer == null) {
createProducer(); // depends on control dependency: [if], data = [none]
}
sendInternalToProducer(producer, type, message... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.