code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public CharSequence readSource(JavaFileObject filename) {
try {
inputFiles.add(filename);
return filename.getCharContent(false);
} catch (IOException e) {
log.error("error.reading.file", filename, JavacFileManager.getMessage(e));
... | public class class_name {
public CharSequence readSource(JavaFileObject filename) {
try {
inputFiles.add(filename); // depends on control dependency: [try], data = [none]
return filename.getCharContent(false); // depends on control dependency: [try], data = [none]
} catch (IOExc... |
public class class_name {
public SDVariable[] generateOutputVariableForOp(DifferentialFunction function, String baseName, boolean isImport) {
//xyz ops only have 1 output
//if there is already a base name defined, use that
if (baseName == null || baseName.isEmpty() && getBaseNameForFunction(fun... | public class class_name {
public SDVariable[] generateOutputVariableForOp(DifferentialFunction function, String baseName, boolean isImport) {
//xyz ops only have 1 output
//if there is already a base name defined, use that
if (baseName == null || baseName.isEmpty() && getBaseNameForFunction(fun... |
public class class_name {
protected void repaint(final int ms, final Rectangle bounds)
{
if (container != null)
{
container.repaint(ms, bounds.x, bounds.y, bounds.width, bounds.height);
}
} } | public class class_name {
protected void repaint(final int ms, final Rectangle bounds)
{
if (container != null)
{
container.repaint(ms, bounds.x, bounds.y, bounds.width, bounds.height); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static void invokeWriteMethodOptional(
Object bean, String propertyName, Object value)
{
Class<?> c = bean.getClass();
Method method = getWriteMethodOptional(c, propertyName);
if (method != null)
{
Methods.invokeOptional(me... | public class class_name {
public static void invokeWriteMethodOptional(
Object bean, String propertyName, Object value)
{
Class<?> c = bean.getClass();
Method method = getWriteMethodOptional(c, propertyName);
if (method != null)
{
Methods.invokeOptional(me... |
public class class_name {
public static Object getPrimitiveDefaultValue(final Class<?> type) {
Objects.requireNonNull(type, "type should not be null.");
if(!type.isPrimitive()) {
return null;
} else if(boolean.class.isAssignableFrom(type)) {
... | public class class_name {
public static Object getPrimitiveDefaultValue(final Class<?> type) {
Objects.requireNonNull(type, "type should not be null.");
if(!type.isPrimitive()) {
return null;
// depends on control dependency: [if], data = [none]
... |
public class class_name {
public GoogleMapShapeMarkers addShapeToMapAsMarkers(GoogleMap map,
GoogleMapShape shape, MarkerOptions markerOptions,
MarkerOptions polylineMarkerOptions,
... | public class class_name {
public GoogleMapShapeMarkers addShapeToMapAsMarkers(GoogleMap map,
GoogleMapShape shape, MarkerOptions markerOptions,
MarkerOptions polylineMarkerOptions,
... |
public class class_name {
@SuppressWarnings("resource")
public static <R> Stream<R> zip(final Collection<? extends CharStream> c, final CharNFunction<R> zipFunction) {
if (N.isNullOrEmpty(c)) {
return Stream.empty();
}
final int len = c.size();
final CharIterator... | public class class_name {
@SuppressWarnings("resource")
public static <R> Stream<R> zip(final Collection<? extends CharStream> c, final CharNFunction<R> zipFunction) {
if (N.isNullOrEmpty(c)) {
return Stream.empty();
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static long getEstimatedMemoryUsage (Iterator<BufferedImage> iter)
{
long size = 0;
while (iter.hasNext()) {
BufferedImage image = iter.next();
size += getEstimatedMemoryUsage(image);
}
return size;
} } | public class class_name {
public static long getEstimatedMemoryUsage (Iterator<BufferedImage> iter)
{
long size = 0;
while (iter.hasNext()) {
BufferedImage image = iter.next();
size += getEstimatedMemoryUsage(image); // depends on control dependency: [while], data = [none]
... |
public class class_name {
@CheckForNull
public static String getFirstIdent(@Nonnull final DetailAST pAst)
{
String result = null;
DetailAST ast = pAst.findFirstToken(TokenTypes.IDENT);
if (ast != null) {
result = ast.getText();
}
return result;
} } | public class class_name {
@CheckForNull
public static String getFirstIdent(@Nonnull final DetailAST pAst)
{
String result = null;
DetailAST ast = pAst.findFirstToken(TokenTypes.IDENT);
if (ast != null) {
result = ast.getText(); // depends on control dependency: [if], data = ... |
public class class_name {
public static void setBeanInfoSearchPath(String[] path) {
if (System.getSecurityManager() != null) {
System.getSecurityManager().checkPropertiesAccess();
}
searchPath = path;
} } | public class class_name {
public static void setBeanInfoSearchPath(String[] path) {
if (System.getSecurityManager() != null) {
System.getSecurityManager().checkPropertiesAccess(); // depends on control dependency: [if], data = [none]
}
searchPath = path;
} } |
public class class_name {
public Observable<ServiceResponse<Page<UsageInner>>> listMultiRoleUsagesNextWithServiceResponseAsync(final String nextPageLink) {
return listMultiRoleUsagesNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<UsageInner>>, Observable<ServiceResponse<... | public class class_name {
public Observable<ServiceResponse<Page<UsageInner>>> listMultiRoleUsagesNextWithServiceResponseAsync(final String nextPageLink) {
return listMultiRoleUsagesNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<UsageInner>>, Observable<ServiceResponse<... |
public class class_name {
public BsonNumber getNumber(final Object key, final BsonNumber defaultValue) {
if (!containsKey(key)) {
return defaultValue;
}
return get(key).asNumber();
} } | public class class_name {
public BsonNumber getNumber(final Object key, final BsonNumber defaultValue) {
if (!containsKey(key)) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
return get(key).asNumber();
} } |
public class class_name {
public Collection<Parameter<?>> getParameters(Metadata... characteristics) {
if ((characteristics == null) || (characteristics.length == 0)) {
return Collections.<Parameter<?>>emptySet();
}
EnumSet<Metadata> metadataSet = null;
int length =... | public class class_name {
public Collection<Parameter<?>> getParameters(Metadata... characteristics) {
if ((characteristics == null) || (characteristics.length == 0)) {
return Collections.<Parameter<?>>emptySet();
}
EnumSet<Metadata> metadataSet = null;
int length =... |
public class class_name {
public String getTitle() {
String operationName = operation.getSummary();
if (isBlank(operationName)) {
operationName = getMethod().toString() + " " + getPath();
}
return operationName;
} } | public class class_name {
public String getTitle() {
String operationName = operation.getSummary();
if (isBlank(operationName)) {
operationName = getMethod().toString() + " " + getPath(); // depends on control dependency: [if], data = [none]
}
return operationName;
} } |
public class class_name {
protected void sendMessage(String dest, Message message) {
if (LOG.isTraceEnabled()) {
LOG.trace("Sends message {} to {}.",
TextFormat.shortDebugString(message),
dest);
}
this.transport.send(dest, message);
} } | public class class_name {
protected void sendMessage(String dest, Message message) {
if (LOG.isTraceEnabled()) {
LOG.trace("Sends message {} to {}.",
TextFormat.shortDebugString(message),
dest); // depends on control dependency: [if], data = [none]
}
this.transport.sen... |
public class class_name {
public static boolean isEmpty(final String test) {
boolean result;
if (test == null) {
result = true;
} else {
result = test.trim().length() == 0;
}
return result;
} } | public class class_name {
public static boolean isEmpty(final String test) {
boolean result;
if (test == null) {
result = true; // depends on control dependency: [if], data = [none]
} else {
result = test.trim().length() == 0; // depends on control dependency: [if], data = [none]
}
retu... |
public class class_name {
public static void setInternalStateFromContext(Object object, Object context, Object[] additionalContexts) {
setInternalStateFromContext(object, context, FieldMatchingStrategy.MATCHING);
if (additionalContexts != null && additionalContexts.length > 0) {
for (Object... | public class class_name {
public static void setInternalStateFromContext(Object object, Object context, Object[] additionalContexts) {
setInternalStateFromContext(object, context, FieldMatchingStrategy.MATCHING);
if (additionalContexts != null && additionalContexts.length > 0) {
for (Object... |
public class class_name {
@TargetApi(24)
public String getMobileNetworkType() {
String resultUnknown = "unknown";
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
return resultUnknown;
}
if (getTelephonyManager() == null) {
return resultUnknown;
... | public class class_name {
@TargetApi(24)
public String getMobileNetworkType() {
String resultUnknown = "unknown";
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
return resultUnknown; // depends on control dependency: [if], data = [none]
}
if (getTelephonyManager(... |
public class class_name {
public static String substringBefore(final String str, final String separator) {
if (Strings.isNullOrEmpty(str)) {
return str;
}
final int pos = str.indexOf(separator);
if (pos == -1) {
return str;
}
return str.substring(... | public class class_name {
public static String substringBefore(final String str, final String separator) {
if (Strings.isNullOrEmpty(str)) {
return str; // depends on control dependency: [if], data = [none]
}
final int pos = str.indexOf(separator);
if (pos == -1) {
... |
public class class_name {
public void addHostEventHandler(IHostEventHandler hostEventHandler) {
synchronized (hostEventHandlers) {
if (!hostEventHandlers.contains(hostEventHandler)) {
hostEventHandlers.add(hostEventHandler);
}
}
} } | public class class_name {
public void addHostEventHandler(IHostEventHandler hostEventHandler) {
synchronized (hostEventHandlers) {
if (!hostEventHandlers.contains(hostEventHandler)) {
hostEventHandlers.add(hostEventHandler); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void drawLine(Object parent, String name, LineString line, ShapeStyle style) {
if (isAttached()) {
Element element = helper.createOrUpdateElement(parent, name, "path", style);
if (line != null) {
Dom.setElementAttribute(element, "d", SvgPathDecoder.decode(line));
}
}
... | public class class_name {
public void drawLine(Object parent, String name, LineString line, ShapeStyle style) {
if (isAttached()) {
Element element = helper.createOrUpdateElement(parent, name, "path", style);
if (line != null) {
Dom.setElementAttribute(element, "d", SvgPathDecoder.decode(line)); // depends... |
public class class_name {
public static boolean delete(final File aDir) {
if (aDir.exists() && aDir.listFiles() != null) {
for (final File file : aDir.listFiles()) {
if (file.isDirectory()) {
if (!delete(file)) {
LOGGER.error(MessageCodes.... | public class class_name {
public static boolean delete(final File aDir) {
if (aDir.exists() && aDir.listFiles() != null) {
for (final File file : aDir.listFiles()) {
if (file.isDirectory()) {
if (!delete(file)) {
LOGGER.error(MessageCodes.... |
public class class_name {
@Override
public int getNumberSubscribers(String topic) {
if (map.containsKey(topic)) {
return map.get(topic).size();
}
return 0;
} } | public class class_name {
@Override
public int getNumberSubscribers(String topic) {
if (map.containsKey(topic)) {
return map.get(topic).size();
// depends on control dependency: [if], data = [none]
}
return 0;
} } |
public class class_name {
private static String[] decodeAuthAmqPlain(String response) {
Logger logger = LoggerFactory.getLogger(SERVICE_AMQP_PROXY_LOGGER);
String[] credentials = null;
if ((response != null) && (response.trim().length() > 0)) {
ByteBuffer buffer = ByteBuff... | public class class_name {
private static String[] decodeAuthAmqPlain(String response) {
Logger logger = LoggerFactory.getLogger(SERVICE_AMQP_PROXY_LOGGER);
String[] credentials = null;
if ((response != null) && (response.trim().length() > 0)) {
ByteBuffer buffer = ByteBuff... |
public class class_name {
@Nullable
public static <T> T getLast(Iterable<? extends T> iterable, @Nullable T defaultValue) {
if (iterable instanceof Collection) {
Collection<? extends T> c = Collections2.cast(iterable);
if (c.isEmpty()) {
return defaultValue;
} else if (iterable instance... | public class class_name {
@Nullable
public static <T> T getLast(Iterable<? extends T> iterable, @Nullable T defaultValue) {
if (iterable instanceof Collection) {
Collection<? extends T> c = Collections2.cast(iterable); // depends on control dependency: [if], data = [none]
if (c.isEmpty()) {
r... |
public class class_name {
protected Criterion addToCriteria(Criterion c) {
if (!logicalExpressionStack.isEmpty()) {
logicalExpressionStack.get(logicalExpressionStack.size() - 1).args.add(c);
}
else {
criteria.add(c);
}
return c;
} } | public class class_name {
protected Criterion addToCriteria(Criterion c) {
if (!logicalExpressionStack.isEmpty()) {
logicalExpressionStack.get(logicalExpressionStack.size() - 1).args.add(c); // depends on control dependency: [if], data = [none]
}
else {
criteria.add(c); ... |
public class class_name {
public String nextGroup() {
int currentPosition = this.position;
do {
char currentCharacter = this.characters[currentPosition];
if (currentCharacter == '[') {
currentPosition = NucleotideParser.getMatchingBracketPosition(this.characters, currentPosition, '[', ']')... | public class class_name {
public String nextGroup() {
int currentPosition = this.position;
do {
char currentCharacter = this.characters[currentPosition];
if (currentCharacter == '[') {
currentPosition = NucleotideParser.getMatchingBracketPosition(this.characters, currentPosition, '[', ']')... |
public class class_name {
public static Throwable getRootCause(Throwable throwable) {
// Keep a second pointer that slowly walks the causal chain. If the fast pointer ever catches
// the slower pointer, then there's a loop.
Throwable slowPointer = throwable;
boolean advanceSlowPointer = false;
Thr... | public class class_name {
public static Throwable getRootCause(Throwable throwable) {
// Keep a second pointer that slowly walks the causal chain. If the fast pointer ever catches
// the slower pointer, then there's a loop.
Throwable slowPointer = throwable;
boolean advanceSlowPointer = false;
Thr... |
public class class_name {
public static String stackTraceToString(Throwable cause) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
PrintStream pout = new PrintStream(out);
cause.printStackTrace(pout);
pout.flush();
try {
return new String(out.toByteArray()... | public class class_name {
public static String stackTraceToString(Throwable cause) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
PrintStream pout = new PrintStream(out);
cause.printStackTrace(pout);
pout.flush();
try {
return new String(out.toByteArray()... |
public class class_name {
@SuppressWarnings("unchecked")
public static Object getMapEntry(final Map<String, ?> iMap, final Object iKey) {
if (iMap == null || iKey == null)
return null;
if (iKey instanceof String) {
String iName = (String) iKey;
int pos = iName.indexOf('.');
i... | public class class_name {
@SuppressWarnings("unchecked")
public static Object getMapEntry(final Map<String, ?> iMap, final Object iKey) {
if (iMap == null || iKey == null)
return null;
if (iKey instanceof String) {
String iName = (String) iKey;
int pos = iName.indexOf('.');
i... |
public class class_name {
@Override
public synchronized void dispose() {
if (saslServer != null) {
try {
saslServer.dispose();
} catch (SaslException e) {
// ignore
} finally {
saslServer = null;
}
}
} } | public class class_name {
@Override
public synchronized void dispose() {
if (saslServer != null) {
try {
saslServer.dispose(); // depends on control dependency: [try], data = [none]
} catch (SaslException e) {
// ignore
} finally { // depends on control dependency: [catch], data... |
public class class_name {
public static Element removeScriptTags(Element element) {
NodeList<Element> scriptTags = element.getElementsByTagName(Tag.script.name());
// iterate backwards over list to ensure all tags get removed
for (int i = scriptTags.getLength() - 1; i >= 0; i--) {
... | public class class_name {
public static Element removeScriptTags(Element element) {
NodeList<Element> scriptTags = element.getElementsByTagName(Tag.script.name());
// iterate backwards over list to ensure all tags get removed
for (int i = scriptTags.getLength() - 1; i >= 0; i--) {
... |
public class class_name {
public void close()
{
CloseHelper.close(sharedRunner);
CloseHelper.close(sharedNetworkRunner);
CloseHelper.close(receiverRunner);
CloseHelper.close(senderRunner);
CloseHelper.close(conductorRunner);
CloseHelper.close(sharedInvoker);
... | public class class_name {
public void close()
{
CloseHelper.close(sharedRunner);
CloseHelper.close(sharedNetworkRunner);
CloseHelper.close(receiverRunner);
CloseHelper.close(senderRunner);
CloseHelper.close(conductorRunner);
CloseHelper.close(sharedInvoker);
... |
public class class_name {
public static MultiPolygon of(Iterable<Polygon> polygons) {
MultiDimensionalPositions.Builder positionsBuilder = MultiDimensionalPositions.builder();
for(Polygon polygon : polygons) {
positionsBuilder.addAreaPosition(polygon.positions());
}
return ... | public class class_name {
public static MultiPolygon of(Iterable<Polygon> polygons) {
MultiDimensionalPositions.Builder positionsBuilder = MultiDimensionalPositions.builder();
for(Polygon polygon : polygons) {
positionsBuilder.addAreaPosition(polygon.positions()); // depends on control depe... |
public class class_name {
private void copyCookies(final Message message) {
if (message instanceof HttpMessage) {
this.cookies.putAll(((HttpMessage) message).getCookiesMap());
}
} } | public class class_name {
private void copyCookies(final Message message) {
if (message instanceof HttpMessage) {
this.cookies.putAll(((HttpMessage) message).getCookiesMap()); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void marshall(DeregisterInstanceRequest deregisterInstanceRequest, ProtocolMarshaller protocolMarshaller) {
if (deregisterInstanceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(DeregisterInstanceRequest deregisterInstanceRequest, ProtocolMarshaller protocolMarshaller) {
if (deregisterInstanceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public static void main(String[] args) {
try{
if (args.length < 1 || args.length > 3){
System.out.println("Usage: PdfContentReaderTool <pdf file> [<output file>|stdout] [<page num>]");
return;
}
P... | public class class_name {
public static void main(String[] args) {
try{
if (args.length < 1 || args.length > 3){
System.out.println("Usage: PdfContentReaderTool <pdf file> [<output file>|stdout] [<page num>]");
// depends on control dependency: [if], data = [none]
... |
public class class_name {
public Clustering<Model> run(Database database, Relation<O> relation) {
StepProgress stepprog = LOG.isVerbose() ? new StepProgress("LSDBC", 3) : null;
final int dim = RelationUtil.dimensionality(relation);
final double factor = FastMath.pow(2., alpha / dim);
final DBIDs ids =... | public class class_name {
public Clustering<Model> run(Database database, Relation<O> relation) {
StepProgress stepprog = LOG.isVerbose() ? new StepProgress("LSDBC", 3) : null;
final int dim = RelationUtil.dimensionality(relation);
final double factor = FastMath.pow(2., alpha / dim);
final DBIDs ids =... |
public class class_name {
public static byte[] encode(Serializable object)
{
Parameters.checkNotNull(object);
ObjectOutputStream oos = null;
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
oos = new ObjectOutputStream(out);
oos.writeObject(object);
oos.flush();
return out.toByteArr... | public class class_name {
public static byte[] encode(Serializable object)
{
Parameters.checkNotNull(object);
ObjectOutputStream oos = null;
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
oos = new ObjectOutputStream(out); // depends on control dependency: [try], data = [none]
oos.write... |
public class class_name {
public SyntacticCategory getWithoutFeatures() {
if (isAtomic()) {
return createAtomic(value, DEFAULT_FEATURE_VALUE, -1);
} else {
return createFunctional(getDirection(), returnType.getWithoutFeatures(),
argumentType.getWithoutFeatures());
}
} } | public class class_name {
public SyntacticCategory getWithoutFeatures() {
if (isAtomic()) {
return createAtomic(value, DEFAULT_FEATURE_VALUE, -1); // depends on control dependency: [if], data = [none]
} else {
return createFunctional(getDirection(), returnType.getWithoutFeatures(),
argume... |
public class class_name {
public AbstractPrintQuery addMsgPhrase(final SelectBuilder _selectBldr,
final CIMsgPhrase... _ciMsgPhrases)
throws EFapsException
{
final Set<MsgPhrase> msgPhrases = new HashSet<>();
for (final CIMsgPhrase ciMsgPhrase : _c... | public class class_name {
public AbstractPrintQuery addMsgPhrase(final SelectBuilder _selectBldr,
final CIMsgPhrase... _ciMsgPhrases)
throws EFapsException
{
final Set<MsgPhrase> msgPhrases = new HashSet<>();
for (final CIMsgPhrase ciMsgPhrase : _c... |
public class class_name {
public EClass getIfcBoxedHalfSpace() {
if (ifcBoxedHalfSpaceEClass == null) {
ifcBoxedHalfSpaceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(53);
}
return ifcBoxedHalfSpaceEClass;
} } | public class class_name {
public EClass getIfcBoxedHalfSpace() {
if (ifcBoxedHalfSpaceEClass == null) {
ifcBoxedHalfSpaceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(53);
// depends on control dependency: [if], data = [none]
}
return ifcBo... |
public class class_name {
protected void expandDependency(IntDependency dependency, double count) {
//if (Test.prunePunc && pruneTW(dependency.arg))
// return;
if (dependency.head == null || dependency.arg == null) {
return;
}
if (dependency.arg.word != STOP_WORD_INT) {
expand... | public class class_name {
protected void expandDependency(IntDependency dependency, double count) {
//if (Test.prunePunc && pruneTW(dependency.arg))
// return;
if (dependency.head == null || dependency.arg == null) {
return;
// depends on control dependency: [if], data = [none]
}
if ... |
public class class_name {
public void showHint() {
final int[] screenPos = new int[2];
final Rect displayFrame = new Rect();
getLocationOnScreen(screenPos);
getWindowVisibleDisplayFrame(displayFrame);
final Context context = getContext();
final int width = getWidth();
final int height = get... | public class class_name {
public void showHint() {
final int[] screenPos = new int[2];
final Rect displayFrame = new Rect();
getLocationOnScreen(screenPos);
getWindowVisibleDisplayFrame(displayFrame);
final Context context = getContext();
final int width = getWidth();
final int height = get... |
public class class_name {
public static final byte[] asByteArray(long sampleCount, double[] sample) {
int b_len = (int) sampleCount
* (SC_AUDIO_FORMAT.getSampleSizeInBits() / 8);
byte[] buffer = new byte[b_len];
int in;
for (int i = 0; i < sample.length; i++) {
... | public class class_name {
public static final byte[] asByteArray(long sampleCount, double[] sample) {
int b_len = (int) sampleCount
* (SC_AUDIO_FORMAT.getSampleSizeInBits() / 8);
byte[] buffer = new byte[b_len];
int in;
for (int i = 0; i < sample.length; i++) {
... |
public class class_name {
static void createRegularGrid( List<List<NodeInfo>> gridByRows , Grid g) {
g.reset();
g.columns = gridByRows.get(0).size();
g.rows = gridByRows.size();
for (int row = 0; row < g.rows; row++) {
List<NodeInfo> list = gridByRows.get(row);
for (int i = 0; i < g.columns; i++) {
... | public class class_name {
static void createRegularGrid( List<List<NodeInfo>> gridByRows , Grid g) {
g.reset();
g.columns = gridByRows.get(0).size();
g.rows = gridByRows.size();
for (int row = 0; row < g.rows; row++) {
List<NodeInfo> list = gridByRows.get(row);
for (int i = 0; i < g.columns; i++) {
... |
public class class_name {
public static <T extends TemporalProposition> List<T> getView(
List<T> params, Long minValid, Long maxValid) {
if (params != null) {
if (minValid == null && maxValid == null) {
return params;
} else {
int min = minVal... | public class class_name {
public static <T extends TemporalProposition> List<T> getView(
List<T> params, Long minValid, Long maxValid) {
if (params != null) {
if (minValid == null && maxValid == null) {
return params; // depends on control dependency: [if], data = [none]... |
public class class_name {
protected void flushIfPossible() throws IOException {
// TODO: do not flush if wasn't requested by underlying application
if (null != bufferedServletOutputStream) bufferedServletOutputStream.setLastChunk();
if (null != writer) writer.flushIfOpen();
else if (n... | public class class_name {
protected void flushIfPossible() throws IOException {
// TODO: do not flush if wasn't requested by underlying application
if (null != bufferedServletOutputStream) bufferedServletOutputStream.setLastChunk();
if (null != writer) writer.flushIfOpen();
else if (n... |
public class class_name {
public static boolean loadDat(String path, String customDicPath[], DoubleArrayTrie<CoreDictionary.Attribute> dat)
{
try
{
if (isDicNeedUpdate(path, customDicPath))
{
return false;
}
ByteArray byteArray = ByteA... | public class class_name {
public static boolean loadDat(String path, String customDicPath[], DoubleArrayTrie<CoreDictionary.Attribute> dat)
{
try
{
if (isDicNeedUpdate(path, customDicPath))
{
return false; // depends on control dependency: [if], data = [none]... |
public class class_name {
public void evaluateAndSet(Object target, Object value) {
try {
Ognl.setValue(getCompiledExpression(), target, value);
}
catch (OgnlException e) {
throw new RuntimeException(e);
}
} } | public class class_name {
public void evaluateAndSet(Object target, Object value) {
try {
Ognl.setValue(getCompiledExpression(), target, value); // depends on control dependency: [try], data = [none]
}
catch (OgnlException e) {
throw new RuntimeException(e);
} //... |
public class class_name {
@Override
public CPMeasurementUnit fetchByG_P_T_First(long groupId, boolean primary,
int type, OrderByComparator<CPMeasurementUnit> orderByComparator) {
List<CPMeasurementUnit> list = findByG_P_T(groupId, primary, type, 0,
1, orderByComparator);
if (!list.isEmpty()) {
return li... | public class class_name {
@Override
public CPMeasurementUnit fetchByG_P_T_First(long groupId, boolean primary,
int type, OrderByComparator<CPMeasurementUnit> orderByComparator) {
List<CPMeasurementUnit> list = findByG_P_T(groupId, primary, type, 0,
1, orderByComparator);
if (!list.isEmpty()) {
return li... |
public class class_name {
private int renderStructured() {
if(LOGGER.isDebugEnabled() && _padContext != null)
LOGGER.debug("\ncurrentIndex: " + _currentIndex + "\n" +
"checkMaxRepeat: " + _padContext.checkMaxRepeat(_currentIndex) + "\n" +
"checkMinRepeat: " +... | public class class_name {
private int renderStructured() {
if(LOGGER.isDebugEnabled() && _padContext != null)
LOGGER.debug("\ncurrentIndex: " + _currentIndex + "\n" +
"checkMaxRepeat: " + _padContext.checkMaxRepeat(_currentIndex) + "\n" +
"checkMinRepeat: " +... |
public class class_name {
public void marshall(DeleteEntityRecognizerRequest deleteEntityRecognizerRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteEntityRecognizerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DeleteEntityRecognizerRequest deleteEntityRecognizerRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteEntityRecognizerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
@Nullable
private static AnonymousSocks5Server configureSessionWithProxy(@Nonnull final ProxyConfig proxyConfig,
@Nonnull final Session session,
@Nullable final TransportStrategy transportStrategy) {
if (!proxyConfig.requiresProxy()) {
LOGGER.trace(... | public class class_name {
@Nullable
private static AnonymousSocks5Server configureSessionWithProxy(@Nonnull final ProxyConfig proxyConfig,
@Nonnull final Session session,
@Nullable final TransportStrategy transportStrategy) {
if (!proxyConfig.requiresProxy()) {
LOGGER.trace(... |
public class class_name {
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ServicesAttachment servicesAttachment = deploymentUnit.getAttachment(Attachments.SERVICES);
... | public class class_name {
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ServicesAttachment servicesAttachment = deploymentUnit.getAttachment(Attachments.SERVICES);
... |
public class class_name {
static <K>
MapMakerInternalMap<K, Dummy, ? extends InternalEntry<K, Dummy, ?>, ?> createWithDummyValues(
MapMaker builder) {
if (builder.getKeyStrength() == Strength.STRONG
&& builder.getValueStrength() == Strength.STRONG) {
return new MapMakerInternalMap<>(b... | public class class_name {
static <K>
MapMakerInternalMap<K, Dummy, ? extends InternalEntry<K, Dummy, ?>, ?> createWithDummyValues(
MapMaker builder) {
if (builder.getKeyStrength() == Strength.STRONG
&& builder.getValueStrength() == Strength.STRONG) {
return new MapMakerInternalMap<>(b... |
public class class_name {
public Trie lookup(CharSequence s) {
Trie t = this;
for (int i = 0, n = s.length(); i < n; ++i) {
t = t.lookup(s.charAt(i));
if (null == t) { break; }
}
return t;
} } | public class class_name {
public Trie lookup(CharSequence s) {
Trie t = this;
for (int i = 0, n = s.length(); i < n; ++i) {
t = t.lookup(s.charAt(i)); // depends on control dependency: [for], data = [i]
if (null == t) { break; }
}
return t;
} } |
public class class_name {
private boolean isNotInput(String action, String expected, String extra) {
// wait for element to be displayed
if (!is.input()) {
reporter.fail(action, expected, extra + prettyOutput() + NOT_AN_INPUT);
// indicates element not an input
retur... | public class class_name {
private boolean isNotInput(String action, String expected, String extra) {
// wait for element to be displayed
if (!is.input()) {
reporter.fail(action, expected, extra + prettyOutput() + NOT_AN_INPUT); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static boolean checkMergePolicySupportsInMemoryFormat(String name, Object mergePolicy, InMemoryFormat inMemoryFormat,
boolean failFast, ILogger logger) {
if (inMemoryFormat != NATIVE) {
return true;
}
if (mergePolicy instanceof SplitBrain... | public class class_name {
public static boolean checkMergePolicySupportsInMemoryFormat(String name, Object mergePolicy, InMemoryFormat inMemoryFormat,
boolean failFast, ILogger logger) {
if (inMemoryFormat != NATIVE) {
return true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private final String nGetLoaderPath() {
ClassLoader currentLoader = this;
final StringBuffer buffer = new StringBuffer();
buffer.append(this.name);
while ((currentLoader = currentLoader.getParent()) != null) {
if (currentLoader.getClass() == CClassLoader.class) {
buffer.insert... | public class class_name {
private final String nGetLoaderPath() {
ClassLoader currentLoader = this;
final StringBuffer buffer = new StringBuffer();
buffer.append(this.name);
while ((currentLoader = currentLoader.getParent()) != null) {
if (currentLoader.getClass() == CClassLoader.class) {
buffer.insert... |
public class class_name {
static boolean compareValues(Object v1, Object v2) {
if (v1.equals(v2)) {
return true;
}
if (isValue(v1) && isValue(v2)
&& Obj.equals(((Map<String, Object>) v1).get("@value"),
((Map<String, Object>) v2).get("@value")... | public class class_name {
static boolean compareValues(Object v1, Object v2) {
if (v1.equals(v2)) {
return true; // depends on control dependency: [if], data = [none]
}
if (isValue(v1) && isValue(v2)
&& Obj.equals(((Map<String, Object>) v1).get("@value"),
... |
public class class_name {
public Versioned<V> addChild(String name, V newValue, long newVersion) {
DefaultDocumentTreeNode<V> child = (DefaultDocumentTreeNode<V>) children.get(name);
if (child != null) {
return child.value();
}
children.put(name, new DefaultDocumentTreeNode<>(
new Documen... | public class class_name {
public Versioned<V> addChild(String name, V newValue, long newVersion) {
DefaultDocumentTreeNode<V> child = (DefaultDocumentTreeNode<V>) children.get(name);
if (child != null) {
return child.value(); // depends on control dependency: [if], data = [none]
}
children.put(na... |
public class class_name {
private void parseExtras(Bundle icicle){
Intent intent = getIntent();
if(intent != null){
mXmlConfigId = intent.getIntExtra(EXTRA_CONFIG, -1);
mTitle = intent.getStringExtra(EXTRA_TITLE);
}
if(icicle != null){
mXmlConfigId ... | public class class_name {
private void parseExtras(Bundle icicle){
Intent intent = getIntent();
if(intent != null){
mXmlConfigId = intent.getIntExtra(EXTRA_CONFIG, -1); // depends on control dependency: [if], data = [none]
mTitle = intent.getStringExtra(EXTRA_TITLE); // depends... |
public class class_name {
public void init(Record recLayout, PrintWriter out)
{
boolean bFirstTime = false;
boolean bNewRecord = false;
if (out == null)
{ // First time
bFirstTime = true;
if (recLayout == null)
{
recLayout = new La... | public class class_name {
public void init(Record recLayout, PrintWriter out)
{
boolean bFirstTime = false;
boolean bNewRecord = false;
if (out == null)
{ // First time
bFirstTime = true; // depends on control dependency: [if], data = [none]
if (recLayout == ... |
public class class_name {
@Override
public void incrementDocCount(String word, long howMuch) {
T element = extendedVocabulary.get(word);
if (element != null) {
element.incrementSequencesCount();
}
} } | public class class_name {
@Override
public void incrementDocCount(String word, long howMuch) {
T element = extendedVocabulary.get(word);
if (element != null) {
element.incrementSequencesCount(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static WebSocketExtension parse(String string)
{
if (string == null)
{
return null;
}
// Split the string by semi-colons.
String[] elements = string.trim().split("\\s*;\\s*");
if (elements.length == 0)
{
... | public class class_name {
public static WebSocketExtension parse(String string)
{
if (string == null)
{
return null; // depends on control dependency: [if], data = [none]
}
// Split the string by semi-colons.
String[] elements = string.trim().split("\\s*;\\s*");... |
public class class_name {
public ExcelWriter autoSizeColumnAll() {
final int columnCount = this.getColumnCount();
for (int i = 0; i < columnCount; i++) {
autoSizeColumn(i);
}
return this;
} } | public class class_name {
public ExcelWriter autoSizeColumnAll() {
final int columnCount = this.getColumnCount();
for (int i = 0; i < columnCount; i++) {
autoSizeColumn(i);
// depends on control dependency: [for], data = [i]
}
return this;
} } |
public class class_name {
public <T> Collector<T> createSegmentBasedCollector(long id, Map<Address, Collection<Integer>> backups, int topologyId) {
if (backups.isEmpty()) {
return new PrimaryOwnerOnlyCollector<>();
}
SegmentBasedCollector<T> collector = new SegmentBasedCollector<>(id, backup... | public class class_name {
public <T> Collector<T> createSegmentBasedCollector(long id, Map<Address, Collection<Integer>> backups, int topologyId) {
if (backups.isEmpty()) {
return new PrimaryOwnerOnlyCollector<>(); // depends on control dependency: [if], data = [none]
}
SegmentBasedCollector... |
public class class_name {
public String stripPluralParticiple(String word) {
b = word.toCharArray();
k = word.length() - 1;
if (k > 1 && !word.equalsIgnoreCase("is") && !word.equalsIgnoreCase("was") && !word.equalsIgnoreCase("has") && !word.equalsIgnoreCase("his") && !word.equalsIgnoreCase("th... | public class class_name {
public String stripPluralParticiple(String word) {
b = word.toCharArray();
k = word.length() - 1;
if (k > 1 && !word.equalsIgnoreCase("is") && !word.equalsIgnoreCase("was") && !word.equalsIgnoreCase("has") && !word.equalsIgnoreCase("his") && !word.equalsIgnoreCase("th... |
public class class_name {
@SuppressWarnings("unchecked")
public void loadCache() {
if (!cacheManager.isNeedPersist()) {
return;
}
File file = getSaveFile();
if (null == file) {
return;
}
if (!file.exists()) {
return;
... | public class class_name {
@SuppressWarnings("unchecked")
public void loadCache() {
if (!cacheManager.isNeedPersist()) {
return;
// depends on control dependency: [if], data = [none]
}
File file = getSaveFile();
if (null == file) {
return;
// depends o... |
public class class_name {
protected void updateResourceType(Window window) {
if (!((CmsModuleRow)m_table.getValue()).equals(
new CmsModuleRow(OpenCms.getModuleManager().getModule(m_type.getModuleName())))) {
CmsModule newModule = ((CmsModuleRow)m_table.getValue()).getModule().clone();
... | public class class_name {
protected void updateResourceType(Window window) {
if (!((CmsModuleRow)m_table.getValue()).equals(
new CmsModuleRow(OpenCms.getModuleManager().getModule(m_type.getModuleName())))) {
CmsModule newModule = ((CmsModuleRow)m_table.getValue()).getModule().clone();
... |
public class class_name {
private void fillParams(final Map<String, String[]> params, final String queryString, Charset charset) {
if (StringUtils.hasText(queryString)) {
final StringTokenizer tokenizer = new StringTokenizer(queryString, "&");
while (tokenizer.hasMoreTokens()) {
... | public class class_name {
private void fillParams(final Map<String, String[]> params, final String queryString, Charset charset) {
if (StringUtils.hasText(queryString)) {
final StringTokenizer tokenizer = new StringTokenizer(queryString, "&");
while (tokenizer.hasMoreTokens()) {
... |
public class class_name {
public void marshall(ListVoiceConnectorTerminationCredentialsRequest listVoiceConnectorTerminationCredentialsRequest, ProtocolMarshaller protocolMarshaller) {
if (listVoiceConnectorTerminationCredentialsRequest == null) {
throw new SdkClientException("Invalid argument pas... | public class class_name {
public void marshall(ListVoiceConnectorTerminationCredentialsRequest listVoiceConnectorTerminationCredentialsRequest, ProtocolMarshaller protocolMarshaller) {
if (listVoiceConnectorTerminationCredentialsRequest == null) {
throw new SdkClientException("Invalid argument pas... |
public class class_name {
public synchronized void stop() {
running = false;
pool.shutdown();
try {
if (!pool.awaitTermination(60, TimeUnit.SECONDS))
pool.shutdownNow();
if (!serverSocket.isClosed())
this.serverSocket.close();
} catch (IOException e) {
DBP.printerror("Error closing Socket.");
... | public class class_name {
public synchronized void stop() {
running = false;
pool.shutdown();
try {
if (!pool.awaitTermination(60, TimeUnit.SECONDS))
pool.shutdownNow();
if (!serverSocket.isClosed())
this.serverSocket.close();
} catch (IOException e) {
DBP.printerror("Error closing Socket.");
... |
public class class_name {
public static void iterate(int dimension, int n, int[] size, int[] res, int dimension2, int n2, int[] size2,
int[] res2, CoordinateFunction func) {
if (dimension >= n || dimension2 >= n2) {
// stop clause
func.process(ArrayUtil.to... | public class class_name {
public static void iterate(int dimension, int n, int[] size, int[] res, int dimension2, int n2, int[] size2,
int[] res2, CoordinateFunction func) {
if (dimension >= n || dimension2 >= n2) {
// stop clause
func.process(ArrayUtil.to... |
public class class_name {
public int computeCrossings(
int crossings,
int x0, int y0,
int x1, int y1) {
int numCrosses =
Segment2ai.calculatesCrossingsRectangleShadowSegment(crossings,
this.boundingMinX,
this.bo... | public class class_name {
public int computeCrossings(
int crossings,
int x0, int y0,
int x1, int y1) {
int numCrosses =
Segment2ai.calculatesCrossingsRectangleShadowSegment(crossings,
this.boundingMinX,
this.bo... |
public class class_name {
public Plugin stopPlugin(final String pluginName) {
synchronized (pluginMap) {
Plugin plugin = (Plugin) pluginMap.get(pluginName);
if (plugin == null) {
return null;
}
// shutdown the plugin
plugin.shutdown(... | public class class_name {
public Plugin stopPlugin(final String pluginName) {
synchronized (pluginMap) {
Plugin plugin = (Plugin) pluginMap.get(pluginName);
if (plugin == null) {
return null; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Tags and(@Nullable String... keyValues) {
if (keyValues == null || keyValues.length == 0) {
return this;
}
return and(Tags.of(keyValues));
} } | public class class_name {
public Tags and(@Nullable String... keyValues) {
if (keyValues == null || keyValues.length == 0) {
return this; // depends on control dependency: [if], data = [none]
}
return and(Tags.of(keyValues));
} } |
public class class_name {
public static long calculateExpirationWithDelay(long timeInMillis, long delayMillis, boolean backup) {
checkNotNegative(timeInMillis, "timeInMillis can't be negative");
if (backup) {
long delayedTime = timeInMillis + delayMillis;
// check for a potenti... | public class class_name {
public static long calculateExpirationWithDelay(long timeInMillis, long delayMillis, boolean backup) {
checkNotNegative(timeInMillis, "timeInMillis can't be negative");
if (backup) {
long delayedTime = timeInMillis + delayMillis;
// check for a potenti... |
public class class_name {
public static synchronized void removeChannel(String channelId) {
try {
if (_removeChannel(channelId)) {
save();
}
} catch (Exception ex) {
Log.e(WonderPush.TAG, "Unexpected error while removing channel " + channelId, ex);
... | public class class_name {
public static synchronized void removeChannel(String channelId) {
try {
if (_removeChannel(channelId)) {
save(); // depends on control dependency: [if], data = [none]
}
} catch (Exception ex) {
Log.e(WonderPush.TAG, "Unexpect... |
public class class_name {
public long getTotalRevenueTimeForTrips (Collection<Trip> trips) {
TIntList times = new TIntArrayList();
for (Trip trip : trips) {
StopTime first;
StopTime last;
Spliterator<StopTime> stopTimes = feed.getOrderedStopTimesForTrip(trip.trip_id)... | public class class_name {
public long getTotalRevenueTimeForTrips (Collection<Trip> trips) {
TIntList times = new TIntArrayList();
for (Trip trip : trips) {
StopTime first;
StopTime last;
Spliterator<StopTime> stopTimes = feed.getOrderedStopTimesForTrip(trip.trip_id)... |
public class class_name {
@SuppressWarnings("unchecked")
public final T[] filter(final T[] objects) {
final Collection<T> filtered = filter(Arrays.asList(objects));
try {
return filtered.toArray((T[]) Array.newInstance(objects
.getClass(), filtered.size()));
... | public class class_name {
@SuppressWarnings("unchecked")
public final T[] filter(final T[] objects) {
final Collection<T> filtered = filter(Arrays.asList(objects));
try {
return filtered.toArray((T[]) Array.newInstance(objects
.getClass(), filtered.size())); // depen... |
public class class_name {
private static String convertToStandardName(String internalName) {
if (internalName.equals("SHA")) {
return "SHA-1";
} else if (internalName.equals("SHA224")) {
return "SHA-224";
} else if (internalName.equals("SHA256")) {
return "SH... | public class class_name {
private static String convertToStandardName(String internalName) {
if (internalName.equals("SHA")) {
return "SHA-1"; // depends on control dependency: [if], data = [none]
} else if (internalName.equals("SHA224")) {
return "SHA-224"; // depends on contro... |
public class class_name {
public void saveProperties(Command afterSaveCommand) {
Map<String, String> properties = new HashMap<String, String>();
for (Widget property : m_propertiesPanel) {
CmsPropertyForm form = ((CmsPropertyForm)property);
if (form.isChanged()) {
... | public class class_name {
public void saveProperties(Command afterSaveCommand) {
Map<String, String> properties = new HashMap<String, String>();
for (Widget property : m_propertiesPanel) {
CmsPropertyForm form = ((CmsPropertyForm)property);
if (form.isChanged()) {
... |
public class class_name {
public List<String[]> getAllMatches(String string) {
Matcher matcher = pattern.matcher(string);
List<String[]> matched = new ArrayList<String[]>();
while(matcher.find()) {
int count = matcher.groupCount();
String [] strings = new String[count];
for(int i = 0; i < count; ++i) {
... | public class class_name {
public List<String[]> getAllMatches(String string) {
Matcher matcher = pattern.matcher(string);
List<String[]> matched = new ArrayList<String[]>();
while(matcher.find()) {
int count = matcher.groupCount();
String [] strings = new String[count];
for(int i = 0; i < count; ++i) {
... |
public class class_name {
private StringBuilder queryProcessing(TmdbParameters params) {
StringBuilder urlString = new StringBuilder();
// Append the suffix of the API URL
if (submethod != MethodSub.NONE) {
urlString.append("/").append(submethod.getValue());
}
// A... | public class class_name {
private StringBuilder queryProcessing(TmdbParameters params) {
StringBuilder urlString = new StringBuilder();
// Append the suffix of the API URL
if (submethod != MethodSub.NONE) {
urlString.append("/").append(submethod.getValue()); // depends on control d... |
public class class_name {
@SuppressWarnings("unchecked")
public Map<String, String> getPartials() {
final View view = this.getView();
if (view != null && view instanceof MustacheView) {
MustacheView mustacheView = (MustacheView) view;
return mustacheView.getAliases();
} else {
final Object object = get... | public class class_name {
@SuppressWarnings("unchecked")
public Map<String, String> getPartials() {
final View view = this.getView();
if (view != null && view instanceof MustacheView) {
MustacheView mustacheView = (MustacheView) view;
return mustacheView.getAliases(); // depends on control dependency: [if],... |
public class class_name {
public void close() {
if (watchdog != null) {
watchdog.cancel();
watchdog = null;
}
disconnect();
// clear nodes collection and send queue
for (Object listener : this.zwaveEventListeners.toArray()) {
if (!(listener instanceof ZWaveNode))
continue;
this.zwav... | public class class_name {
public void close() {
if (watchdog != null) {
watchdog.cancel(); // depends on control dependency: [if], data = [none]
watchdog = null; // depends on control dependency: [if], data = [none]
}
disconnect();
// clear nodes collection and send queue
for (Object listener : t... |
public class class_name {
@Override
protected void afterPaint(final RenderContext renderContext) {
super.afterPaint(renderContext);
if (profileBtn.isPressed()) {
// UIC serialization stats
UicStats stats = new UicStats(UIContextHolder.getCurrent());
WComponent currentComp = this.getCurrentComponent();
... | public class class_name {
@Override
protected void afterPaint(final RenderContext renderContext) {
super.afterPaint(renderContext);
if (profileBtn.isPressed()) {
// UIC serialization stats
UicStats stats = new UicStats(UIContextHolder.getCurrent());
WComponent currentComp = this.getCurrentComponent();
... |
public class class_name {
public void marshall(UpdateUserPoolDomainRequest updateUserPoolDomainRequest, ProtocolMarshaller protocolMarshaller) {
if (updateUserPoolDomainRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(UpdateUserPoolDomainRequest updateUserPoolDomainRequest, ProtocolMarshaller protocolMarshaller) {
if (updateUserPoolDomainRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
@Override
public EClass getIfcProduct() {
if (ifcProductEClass == null) {
ifcProductEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(454);
}
return ifcProductEClass;
} } | public class class_name {
@Override
public EClass getIfcProduct() {
if (ifcProductEClass == null) {
ifcProductEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(454);
// depends on control dependency: [if], data = [none]
}
return ifcProductEClass;
... |
public class class_name {
public Configuration fromFile(String path) throws ConfigurationLoadException {
PropertiesConfiguration propertiesConfiguration =
setupConfiguration(new PropertiesConfiguration());
propertiesConfiguration.setFileName(path);
try {
propertiesConfiguration.load();
} ... | public class class_name {
public Configuration fromFile(String path) throws ConfigurationLoadException {
PropertiesConfiguration propertiesConfiguration =
setupConfiguration(new PropertiesConfiguration());
propertiesConfiguration.setFileName(path);
try {
propertiesConfiguration.load();
} ... |
public class class_name {
public Expression add(String field, JsonNode value) {
try {
((ObjectNode) node).set(field, value);
return this;
} catch (ClassCastException e) {
throw new RuntimeException("Object node expected while adding " + field);
}
} } | public class class_name {
public Expression add(String field, JsonNode value) {
try {
((ObjectNode) node).set(field, value); // depends on control dependency: [try], data = [none]
return this; // depends on control dependency: [try], data = [none]
} catch (ClassCastException e) ... |
public class class_name {
private CmsADESessionCache getSessionCache() {
if (m_sessionCache == null) {
m_sessionCache = CmsADESessionCache.getCache(getRequest(), getCmsObject());
}
return m_sessionCache;
} } | public class class_name {
private CmsADESessionCache getSessionCache() {
if (m_sessionCache == null) {
m_sessionCache = CmsADESessionCache.getCache(getRequest(), getCmsObject()); // depends on control dependency: [if], data = [none]
}
return m_sessionCache;
} } |
public class class_name {
@Override
public LoginCredential getLoginCredential() {
return LaRequestUtil
.getOptionalRequest()
.map(request -> {
final HttpServletResponse response = LaResponseUtil.getResponse();
final SpnegoHttpServletRe... | public class class_name {
@Override
public LoginCredential getLoginCredential() {
return LaRequestUtil
.getOptionalRequest()
.map(request -> {
final HttpServletResponse response = LaResponseUtil.getResponse();
final SpnegoHttpServletRe... |
public class class_name {
static synchronized Accessor accessorFor(Class<?> type, Method method,
Configuration configuration, String name) {
PropertyInfoKey key = new PropertyInfoKey(type, name, configuration);
Accessor accessor = ACCESSOR_CACHE.get(key);
if (accessor == null) {
accessor =... | public class class_name {
static synchronized Accessor accessorFor(Class<?> type, Method method,
Configuration configuration, String name) {
PropertyInfoKey key = new PropertyInfoKey(type, name, configuration);
Accessor accessor = ACCESSOR_CACHE.get(key);
if (accessor == null) {
accessor =... |
public class class_name {
public static String serialize(Object[] objs)
{
StringBuffer buff = new StringBuffer();
for(int i = 0; i < objs.length; i++)
{
if(objs[i] != null)
{
buff.append(objs[i].toString());
if(i != objs.length-1)
... | public class class_name {
public static String serialize(Object[] objs)
{
StringBuffer buff = new StringBuffer();
for(int i = 0; i < objs.length; i++)
{
if(objs[i] != null)
{
buff.append(objs[i].toString()); // depends on control dependency: [if], dat... |
public class class_name {
public DBInstance withEnabledCloudwatchLogsExports(String... enabledCloudwatchLogsExports) {
if (this.enabledCloudwatchLogsExports == null) {
setEnabledCloudwatchLogsExports(new java.util.ArrayList<String>(enabledCloudwatchLogsExports.length));
}
for (Strin... | public class class_name {
public DBInstance withEnabledCloudwatchLogsExports(String... enabledCloudwatchLogsExports) {
if (this.enabledCloudwatchLogsExports == null) {
setEnabledCloudwatchLogsExports(new java.util.ArrayList<String>(enabledCloudwatchLogsExports.length)); // depends on control depend... |
public class class_name {
public void uninstallBundle(final String symbolicName, final String version) {
Bundle bundle = bundleDeployerService.getExistingBundleBySymbolicName(symbolicName, version, null);
if (bundle != null) {
stateChanged = true;
Logger.info("Uninstalling bundl... | public class class_name {
public void uninstallBundle(final String symbolicName, final String version) {
Bundle bundle = bundleDeployerService.getExistingBundleBySymbolicName(symbolicName, version, null);
if (bundle != null) {
stateChanged = true; // depends on control dependency: [if], dat... |
public class class_name {
public void setAnimationBackend(@Nullable T animationBackend) {
mAnimationBackend = animationBackend;
if (mAnimationBackend != null) {
applyBackendProperties(mAnimationBackend);
}
} } | public class class_name {
public void setAnimationBackend(@Nullable T animationBackend) {
mAnimationBackend = animationBackend;
if (mAnimationBackend != null) {
applyBackendProperties(mAnimationBackend); // depends on control dependency: [if], data = [(mAnimationBackend]
}
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.