code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public Map<String,Object> handleUpdateFilterMap(Map<String,Object> propFilter)
{
if (propFilter != null)
{
Object bookmark = propFilter.get(ADD_BOOKMARK);
if (bookmark != null)
{
if (CLEAR_BOOKMARKS.equals(bookmark))
... | public class class_name {
public Map<String,Object> handleUpdateFilterMap(Map<String,Object> propFilter)
{
if (propFilter != null)
{
Object bookmark = propFilter.get(ADD_BOOKMARK);
if (bookmark != null)
{
if (CLEAR_BOOKMARKS.equals(bookmark))
... |
public class class_name {
public static void scale(GVRMesh mesh, float x, float y, float z) {
final float [] vertices = mesh.getVertices();
final int vsize = vertices.length;
for (int i = 0; i < vsize; i += 3) {
vertices[i] *= x;
vertices[i + 1] *= y;
ve... | public class class_name {
public static void scale(GVRMesh mesh, float x, float y, float z) {
final float [] vertices = mesh.getVertices();
final int vsize = vertices.length;
for (int i = 0; i < vsize; i += 3) {
vertices[i] *= x; // depends on control dependency: [for], data = ... |
public class class_name {
CharSequence render()
{
StringBuilder stringBuilder = new StringBuilder();
for (JsStatement statement : statements)
{
stringBuilder.append("\t");
stringBuilder.append(statement.render());
stringBuilder.append("\n");
}
return stringBuilder;
} } | public class class_name {
CharSequence render()
{
StringBuilder stringBuilder = new StringBuilder();
for (JsStatement statement : statements)
{
stringBuilder.append("\t"); // depends on control dependency: [for], data = [none]
stringBuilder.append(statement.render()); // depends on control dependency: [fo... |
public class class_name {
private <T> void invoke(Map<Object, Set<Method>> methods, T instance) {
for (Map.Entry<Object, Set<Method>> entry : methods.entrySet()) {
Object listener = entry.getKey();
Set<Method> listenerMethods = entry.getValue();
if (listenerMethods != null) ... | public class class_name {
private <T> void invoke(Map<Object, Set<Method>> methods, T instance) {
for (Map.Entry<Object, Set<Method>> entry : methods.entrySet()) {
Object listener = entry.getKey();
Set<Method> listenerMethods = entry.getValue();
if (listenerMethods != null) ... |
public class class_name {
public void marshall(CreatePartitionRequest createPartitionRequest, ProtocolMarshaller protocolMarshaller) {
if (createPartitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(CreatePartitionRequest createPartitionRequest, ProtocolMarshaller protocolMarshaller) {
if (createPartitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
public Boolean getLifecycleInitRequiredDefault() {
String property = getProperty(LIFECYCLE_INITREQUIREDDEFAULT);
if (property != null) {
return Boolean.parseBoolean(property);
}
return null;
} } | public class class_name {
public Boolean getLifecycleInitRequiredDefault() {
String property = getProperty(LIFECYCLE_INITREQUIREDDEFAULT);
if (property != null) {
return Boolean.parseBoolean(property); // depends on control dependency: [if], data = [(property]
}
return n... |
public class class_name {
public List<Object> getEntities(String name) {
List<Object> entitiesList = new LinkedList<Object>();
for (Result result : results) {
if (result.getResultName().equals(name)) {
entitiesList.add(result.getObject());
}
}
return entitiesList;
} } | public class class_name {
public List<Object> getEntities(String name) {
List<Object> entitiesList = new LinkedList<Object>();
for (Result result : results) {
if (result.getResultName().equals(name)) {
entitiesList.add(result.getObject()); // depends on control dependency: [if], data = [none]
}
}
r... |
public class class_name {
public void explore() {
if (isLeaf) return;
if (isGeneric) return;
removeAllChildren();
try {
String addressPath = addressPath();
ModelNode resourceDesc = executor.doCommand(addressPath + ":read-resource-description");
resou... | public class class_name {
public void explore() {
if (isLeaf) return;
if (isGeneric) return;
removeAllChildren();
try {
String addressPath = addressPath();
ModelNode resourceDesc = executor.doCommand(addressPath + ":read-resource-description");
resou... |
public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
public void setupLookAndFeel(PropertyOwner propertyOwner)
{
Map<String,Object> properties = null;
if (propertyOwner == null)
propertyOwner = this.retrieveUserProperties(Params.SCREEN);
if (propertyOwner... | public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
public void setupLookAndFeel(PropertyOwner propertyOwner)
{
Map<String,Object> properties = null;
if (propertyOwner == null)
propertyOwner = this.retrieveUserProperties(Params.SCREEN);
if (propertyOwner... |
public class class_name {
boolean scanSpecialIdentifier(String identifier) {
int length = identifier.length();
if (limit - currentPosition < length) {
return false;
}
for (int i = 0; i < length; i++) {
int character = identifier.charAt(i);
if (cha... | public class class_name {
boolean scanSpecialIdentifier(String identifier) {
int length = identifier.length();
if (limit - currentPosition < length) {
return false; // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < length; i++) {
int ... |
public class class_name {
protected LinkedList<ModificationRecord> getModificationRecords(ClassDoc classDoc) {
ClassDoc superClass = classDoc.superclass();
if (superClass == null) {
return new LinkedList<ModificationRecord>();
}
LinkedList<ModificationRecord> result = this.getModificationRecords(superClass)... | public class class_name {
protected LinkedList<ModificationRecord> getModificationRecords(ClassDoc classDoc) {
ClassDoc superClass = classDoc.superclass();
if (superClass == null) {
return new LinkedList<ModificationRecord>(); // depends on control dependency: [if], data = [none]
}
LinkedList<ModificationRe... |
public class class_name {
public boolean setRxMasterKey(byte[] key) {
boolean res = false;
if ((key.length == MASTER_KEY_SIZE_32_BYTES)
|| (key.length == MASTER_KEY_SIZE_16_BYTES)) {
rxMasterKey = null;
rxMasterKey = platform.getUtils().copy(key);
res = true;
logDebug("setRxMasterKey "
+ platf... | public class class_name {
public boolean setRxMasterKey(byte[] key) {
boolean res = false;
if ((key.length == MASTER_KEY_SIZE_32_BYTES)
|| (key.length == MASTER_KEY_SIZE_16_BYTES)) {
rxMasterKey = null; // depends on control dependency: [if], data = [none]
rxMasterKey = platform.getUtils().copy(key); // ... |
public class class_name {
@Override
public void onCreate(SQLiteDatabase db) {
for (TableHelper th : getTableHelpers()) {
th.onCreate(db);
}
} } | public class class_name {
@Override
public void onCreate(SQLiteDatabase db) {
for (TableHelper th : getTableHelpers()) {
th.onCreate(db); // depends on control dependency: [for], data = [th]
}
} } |
public class class_name {
@Deprecated
public <T> Collection<Class<? extends T>> discover( Class<T> spi ) {
Set<Class<? extends T>> result = new HashSet<>();
for (PluginWrapper p : activePlugins) {
Service.load(spi, p.classLoader, result);
}
return result;
} } | public class class_name {
@Deprecated
public <T> Collection<Class<? extends T>> discover( Class<T> spi ) {
Set<Class<? extends T>> result = new HashSet<>();
for (PluginWrapper p : activePlugins) {
Service.load(spi, p.classLoader, result); // depends on control dependency: [for], data =... |
public class class_name {
private ClassTemplateSpec createFromDataSchema(DataSchema schema)
{
if (schema instanceof MapDataSchema)
{
return new CourierMapTemplateSpec((MapDataSchema) schema);
}
return ClassTemplateSpec.createFromDataSchema(schema);
} } | public class class_name {
private ClassTemplateSpec createFromDataSchema(DataSchema schema)
{
if (schema instanceof MapDataSchema)
{
return new CourierMapTemplateSpec((MapDataSchema) schema); // depends on control dependency: [if], data = [none]
}
return ClassTemplateSpec.createFromDataSchema(s... |
public class class_name {
public EClass getIfcVertexLoop() {
if (ifcVertexLoopEClass == null) {
ifcVertexLoopEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(635);
}
return ifcVertexLoopEClass;
} } | public class class_name {
public EClass getIfcVertexLoop() {
if (ifcVertexLoopEClass == null) {
ifcVertexLoopEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(635);
// depends on control dependency: [if], data = [none]
}
return ifcVertexLoopECl... |
public class class_name {
public static <T> List<Optional<LocalProperty<T>>> normalize(List<? extends LocalProperty<T>> localProperties)
{
List<Optional<LocalProperty<T>>> normalizedProperties = new ArrayList<>(localProperties.size());
Set<T> constants = new HashSet<>();
for (LocalProperty<... | public class class_name {
public static <T> List<Optional<LocalProperty<T>>> normalize(List<? extends LocalProperty<T>> localProperties)
{
List<Optional<LocalProperty<T>>> normalizedProperties = new ArrayList<>(localProperties.size());
Set<T> constants = new HashSet<>();
for (LocalProperty<... |
public class class_name {
public Sequence[] getWorkerSequences()
{
final Sequence[] sequences = new Sequence[workProcessors.length + 1];
for (int i = 0, size = workProcessors.length; i < size; i++)
{
sequences[i] = workProcessors[i].getSequence();
}
sequences[seq... | public class class_name {
public Sequence[] getWorkerSequences()
{
final Sequence[] sequences = new Sequence[workProcessors.length + 1];
for (int i = 0, size = workProcessors.length; i < size; i++)
{
sequences[i] = workProcessors[i].getSequence(); // depends on control dependenc... |
public class class_name {
public static void remove(Object mock) {
if (mock instanceof Class<?>) {
if (newSubstitutions.containsKey(mock)) {
newSubstitutions.remove(mock);
}
if (classMocks.containsKey(mock)) {
classMocks.remove(mock);
}
} else if (instanceMocks.containsKey(mock)) {
instanceM... | public class class_name {
public static void remove(Object mock) {
if (mock instanceof Class<?>) {
if (newSubstitutions.containsKey(mock)) {
newSubstitutions.remove(mock); // depends on control dependency: [if], data = [none]
}
if (classMocks.containsKey(mock)) {
classMocks.remove(mock); // depends ... |
public class class_name {
static IDataSet toDataSet(final IDataModel dataModel) {
if (dataModel == null) { return null; }
IDataSet dataSet = new DataSet(dataModel.getName());
if (dataModel.rowCount() == 0) { return dataSet; }
for (IDmRow dmRow : dataModel) {
... | public class class_name {
static IDataSet toDataSet(final IDataModel dataModel) {
if (dataModel == null) { return null; } // depends on control dependency: [if], data = [none]
IDataSet dataSet = new DataSet(dataModel.getName());
if (dataModel.rowCount() == 0) { return dataSet; } // dep... |
public class class_name {
public EClass getIfcRelNests() {
if (ifcRelNestsEClass == null) {
ifcRelNestsEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(476);
}
return ifcRelNestsEClass;
} } | public class class_name {
public EClass getIfcRelNests() {
if (ifcRelNestsEClass == null) {
ifcRelNestsEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(476);
// depends on control dependency: [if], data = [none]
}
return ifcRelNestsEClass;
}... |
public class class_name {
public static IDifference difference(IChemObject first, IChemObject second) {
if (!(first instanceof IChemObject && second instanceof IChemObject)) {
return null;
}
IChemObject firstElem = (IChemObject) first;
IChemObject secondElem = (IChemObject) ... | public class class_name {
public static IDifference difference(IChemObject first, IChemObject second) {
if (!(first instanceof IChemObject && second instanceof IChemObject)) {
return null; // depends on control dependency: [if], data = [none]
}
IChemObject firstElem = (IChemObject) ... |
public class class_name {
public DescribeFleetHistoryResult withHistoryRecords(HistoryRecordEntry... historyRecords) {
if (this.historyRecords == null) {
setHistoryRecords(new com.amazonaws.internal.SdkInternalList<HistoryRecordEntry>(historyRecords.length));
}
for (HistoryRecordEnt... | public class class_name {
public DescribeFleetHistoryResult withHistoryRecords(HistoryRecordEntry... historyRecords) {
if (this.historyRecords == null) {
setHistoryRecords(new com.amazonaws.internal.SdkInternalList<HistoryRecordEntry>(historyRecords.length)); // depends on control dependency: [if],... |
public class class_name {
public void hasLastKey(@NullableDecl Object key) {
if (actualAsNavigableMap().isEmpty()) {
failWithActual("expected to have last key", key);
return;
}
if (!Objects.equal(actualAsNavigableMap().lastKey(), key)) {
if (actualAsNavigableMap().containsKey(key)) {
... | public class class_name {
public void hasLastKey(@NullableDecl Object key) {
if (actualAsNavigableMap().isEmpty()) {
failWithActual("expected to have last key", key); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
if (!Obje... |
public class class_name {
final private String printBalance(Integer p, N n) {
StringBuilder text = new StringBuilder();
if (n != null) {
text.append(printBalance((p + 1), n.leftChild));
String format = "%" + (3 * p) + "s";
text.append(String.format(format, ""));
if (n.left == n.right) {... | public class class_name {
final private String printBalance(Integer p, N n) {
StringBuilder text = new StringBuilder();
if (n != null) {
text.append(printBalance((p + 1), n.leftChild)); // depends on control dependency: [if], data = [none]
String format = "%" + (3 * p) + "s";
text.append(Stri... |
public class class_name {
public final void addElement(Object value)
{
if ((m_firstFree + 1) >= m_mapSize)
{
m_mapSize += m_blocksize;
Object newMap[] = new Object[m_mapSize];
System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);
m_map = newMap;
}
m_map[m_firstFree] = v... | public class class_name {
public final void addElement(Object value)
{
if ((m_firstFree + 1) >= m_mapSize)
{
m_mapSize += m_blocksize; // depends on control dependency: [if], data = [none]
Object newMap[] = new Object[m_mapSize];
System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1); //... |
public class class_name {
@Override
public synchronized void invalidate() {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) {
LoggingUtil.SESSION_LOGGER_CORE.entering(methodClassName, methodNames[INVALIDATE], appNameAndIdStrin... | public class class_name {
@Override
public synchronized void invalidate() {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) {
LoggingUtil.SESSION_LOGGER_CORE.entering(methodClassName, methodNames[INVALIDATE], appNameAndIdStrin... |
public class class_name {
static void pullDataSourceProperties(String name, DataSource dataSource) {
// CHECKSTYLE:ON
final String dataSourceClassName = dataSource.getClass().getName();
if ("org.apache.tomcat.dbcp.dbcp.BasicDataSource".equals(dataSourceClassName)
&& dataSource instanceof BasicDataSource)... | public class class_name {
static void pullDataSourceProperties(String name, DataSource dataSource) {
// CHECKSTYLE:ON
final String dataSourceClassName = dataSource.getClass().getName();
if ("org.apache.tomcat.dbcp.dbcp.BasicDataSource".equals(dataSourceClassName)
&& dataSource instanceof BasicDataSource)... |
public class class_name {
public void setRoundedCorners(final boolean ROUNDED) {
if (null == roundedCorners) {
_roundedCorners = ROUNDED;
fireTileEvent(REDRAW_EVENT);
} else {
roundedCorners.set(ROUNDED);
}
} } | public class class_name {
public void setRoundedCorners(final boolean ROUNDED) {
if (null == roundedCorners) {
_roundedCorners = ROUNDED; // depends on control dependency: [if], data = [none]
fireTileEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none]
} el... |
public class class_name {
public void close() {
try {
// Request BMP to create a new HAR for this Proxy
HttpDelete shutdownProxyDELETE = new HttpDelete(requestURIBuilder()
.setPath(proxyURIPath())
.build());
// Execute request
... | public class class_name {
public void close() {
try {
// Request BMP to create a new HAR for this Proxy
HttpDelete shutdownProxyDELETE = new HttpDelete(requestURIBuilder()
.setPath(proxyURIPath())
.build());
// Execute request
... |
public class class_name {
public static int hashBytes(byte[] bytes, int offset, int length) {
int hash = 1;
for (int i = offset; i < offset + length; i++) {
hash = (31 * hash) + bytes[i];
}
return hash;
} } | public class class_name {
public static int hashBytes(byte[] bytes, int offset, int length) {
int hash = 1;
for (int i = offset; i < offset + length; i++) {
hash = (31 * hash) + bytes[i]; // depends on control dependency: [for], data = [i]
}
return hash;
} } |
public class class_name {
@SuppressWarnings("rawtypes")
public static Collection createConcreteCollection(Class interfaceType) {
Collection elements;
if (interfaceType.equals(List.class) || interfaceType.equals(Collection.class)) {
elements = new ArrayList();
}
else if (... | public class class_name {
@SuppressWarnings("rawtypes")
public static Collection createConcreteCollection(Class interfaceType) {
Collection elements;
if (interfaceType.equals(List.class) || interfaceType.equals(Collection.class)) {
elements = new ArrayList(); // depends on control depen... |
public class class_name {
public static Object[] transformArgs(Val<Expression>[] args) {
Object[] objects = new Object[args.length];
for (int i = 0; i < args.length; i++) {
objects[i] = args[i].object();
}
return objects;
} } | public class class_name {
public static Object[] transformArgs(Val<Expression>[] args) {
Object[] objects = new Object[args.length];
for (int i = 0; i < args.length; i++) {
objects[i] = args[i].object(); // depends on control dependency: [for], data = [i]
}
return objects;
... |
public class class_name {
private static void parseOptions(String args[])
{
if (!(args.length == 14 || args.length == 12 || args.length == 5)) {
usage();
}
/*
* As described in usage():
* -s dfs-server
* -p dfs-port [-t [create|create-write|stat|readdir|read|rename|delete]
* -a... | public class class_name {
private static void parseOptions(String args[])
{
if (!(args.length == 14 || args.length == 12 || args.length == 5)) {
usage(); // depends on control dependency: [if], data = [none]
}
/*
* As described in usage():
* -s dfs-server
* -p dfs-port [-t [create|c... |
public class class_name {
private void writeFields(String objectName, FieldContainer container, FieldType[] fields) throws IOException
{
m_writer.writeStartObject(objectName);
for (FieldType field : fields)
{
Object value = container.getCurrentValue(field);
if (value != null)
... | public class class_name {
private void writeFields(String objectName, FieldContainer container, FieldType[] fields) throws IOException
{
m_writer.writeStartObject(objectName);
for (FieldType field : fields)
{
Object value = container.getCurrentValue(field);
if (value != null)
... |
public class class_name {
@Override
public String getCloneID() {
if (allowedProps != null) {
return (String) allowedProps.get(CFG_CLONE_ID);
}
return null;
} } | public class class_name {
@Override
public String getCloneID() {
if (allowedProps != null) {
return (String) allowedProps.get(CFG_CLONE_ID); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
boolean lock(final Integer permit, final long timeout, final TimeUnit unit) {
boolean result = false;
try {
result = lockInterruptibly(permit, timeout, unit);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
... | public class class_name {
boolean lock(final Integer permit, final long timeout, final TimeUnit unit) {
boolean result = false;
try {
result = lockInterruptibly(permit, timeout, unit); // depends on control dependency: [try], data = [none]
} catch (InterruptedException e) {
... |
public class class_name {
void onPatternChange() {
PatternType patternType = m_model.getPatternType();
boolean isSeries = !patternType.equals(PatternType.NONE);
setSerialOptionsVisible(isSeries);
m_seriesCheckBox.setChecked(isSeries);
if (isSeries) {
m_groupPattern.... | public class class_name {
void onPatternChange() {
PatternType patternType = m_model.getPatternType();
boolean isSeries = !patternType.equals(PatternType.NONE);
setSerialOptionsVisible(isSeries);
m_seriesCheckBox.setChecked(isSeries);
if (isSeries) {
m_groupPattern.... |
public class class_name {
private void initStandardCommands() {
finishCommand = new ActionCommand(getFinishCommandId()) {
public void doExecuteCommand() {
boolean result = onFinish();
if (result) {
if (getDisplayFinishSuccessMessage()) {
showFinishSuccessMessageDialog();
}
executeClos... | public class class_name {
private void initStandardCommands() {
finishCommand = new ActionCommand(getFinishCommandId()) {
public void doExecuteCommand() {
boolean result = onFinish();
if (result) {
if (getDisplayFinishSuccessMessage()) {
showFinishSuccessMessageDialog(); // depends on control d... |
public class class_name {
static void rcvCloseProducerSess(CommsByteBuffer request, Conversation conversation,
int requestNumber, boolean allocatedFromBufferPool,
boolean partOfExchange)
{
if (TraceComponent.isAnyTracingEnabled() && ... | public class class_name {
static void rcvCloseProducerSess(CommsByteBuffer request, Conversation conversation,
int requestNumber, boolean allocatedFromBufferPool,
boolean partOfExchange)
{
if (TraceComponent.isAnyTracingEnabled() && ... |
public class class_name {
public static OExecutionPlan get(String statement, OCommandContext ctx, ODatabaseDocumentInternal db) {
if (db == null) {
throw new IllegalArgumentException("DB cannot be null");
}
if (statement == null) {
return null;
}
OExecutionPlanCache resource = db.getSh... | public class class_name {
public static OExecutionPlan get(String statement, OCommandContext ctx, ODatabaseDocumentInternal db) {
if (db == null) {
throw new IllegalArgumentException("DB cannot be null");
}
if (statement == null) {
return null; // depends on control dependency: [if], data = [no... |
public class class_name {
public static BufferedImage watersheds(GrayS32 segments , BufferedImage output , int radius ) {
if( output == null )
output = new BufferedImage(segments.width,segments.height,BufferedImage.TYPE_INT_RGB);
if( radius <= 0 ) {
for (int y = 0; y < segments.height; y++) {
for (int x... | public class class_name {
public static BufferedImage watersheds(GrayS32 segments , BufferedImage output , int radius ) {
if( output == null )
output = new BufferedImage(segments.width,segments.height,BufferedImage.TYPE_INT_RGB);
if( radius <= 0 ) {
for (int y = 0; y < segments.height; y++) {
for (int x... |
public class class_name {
protected <T> T initialize(final T object, final Map<?, ?> parameters) {
if (object instanceof ParameterizedInitable) {
((ParameterizedInitable) object).init(parameters);
return object;
}
else {
return initialize(object, parameters.values());
}
} } | public class class_name {
protected <T> T initialize(final T object, final Map<?, ?> parameters) {
if (object instanceof ParameterizedInitable) {
((ParameterizedInitable) object).init(parameters); // depends on control dependency: [if], data = [none]
return object; // depends on control dependency: [if... |
public class class_name {
public ConsumerDispatcher getConsumerDispatcher()
{
if (tc.isEntryEnabled())
{
SibTr.entry(tc, "getConsumerDispatcher");
SibTr.exit(tc, "getConsumerDispatcher", consumerDispatcher);
}
return consumerDispatcher;
} } | public class class_name {
public ConsumerDispatcher getConsumerDispatcher()
{
if (tc.isEntryEnabled())
{
SibTr.entry(tc, "getConsumerDispatcher"); // depends on control dependency: [if], data = [none]
SibTr.exit(tc, "getConsumerDispatcher", consumerDispatcher); // depends on control dependency... |
public class class_name {
static TypedConstant getConstant(Object value) {
if (value == null) {
return CstKnownNull.THE_ONE;
} else if (value instanceof Boolean) {
return CstBoolean.make((Boolean) value);
} else if (value instanceof Byte) {
return CstByte.mak... | public class class_name {
static TypedConstant getConstant(Object value) {
if (value == null) {
return CstKnownNull.THE_ONE; // depends on control dependency: [if], data = [none]
} else if (value instanceof Boolean) {
return CstBoolean.make((Boolean) value); // depends on contro... |
public class class_name {
private static boolean applySingletonSubstitution(Function functionalTerm, SingletonSubstitution substitution) {
List<Term> innerTerms = functionalTerm.getTerms();
boolean innerchanges = false;
// TODO this ways of changing inner terms in functions is not
// op... | public class class_name {
private static boolean applySingletonSubstitution(Function functionalTerm, SingletonSubstitution substitution) {
List<Term> innerTerms = functionalTerm.getTerms();
boolean innerchanges = false;
// TODO this ways of changing inner terms in functions is not
// op... |
public class class_name {
private boolean waitTheMinimalDurationToExecuteTheNextProvisioningRequest() {
if (m_lastGetShardIteratorRequestTime != null) {
long delay = m_durationBetweenRequests.get() - (System.currentTimeMillis() - m_lastGetShardIteratorRequestTime);
if (delay > 0) {
... | public class class_name {
private boolean waitTheMinimalDurationToExecuteTheNextProvisioningRequest() {
if (m_lastGetShardIteratorRequestTime != null) {
long delay = m_durationBetweenRequests.get() - (System.currentTimeMillis() - m_lastGetShardIteratorRequestTime);
if (delay > 0) {
... |
public class class_name {
public void setSeverityNormalized(java.util.Collection<NumberFilter> severityNormalized) {
if (severityNormalized == null) {
this.severityNormalized = null;
return;
}
this.severityNormalized = new java.util.ArrayList<NumberFilter>(severityNorma... | public class class_name {
public void setSeverityNormalized(java.util.Collection<NumberFilter> severityNormalized) {
if (severityNormalized == null) {
this.severityNormalized = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], da... |
public class class_name {
public boolean saveEncryptionKeyData(KeyData data) {
JSONObject objectToSave = new JSONObject();
try {
objectToSave.put(KEY_DPK, DPKEncryptionUtil.byteArrayToHexString(data
.getEncryptedDPK()));
objectToSave.put(KEY_IV, DPKEncryption... | public class class_name {
public boolean saveEncryptionKeyData(KeyData data) {
JSONObject objectToSave = new JSONObject();
try {
objectToSave.put(KEY_DPK, DPKEncryptionUtil.byteArrayToHexString(data
.getEncryptedDPK())); // depends on control dependency: [try], data = [n... |
public class class_name {
@SuppressWarnings("unchecked")
public static final <C> FieldModel<C> get(Field f, FieldAccess<C> fieldAccess) {
String fieldModelKey = (fieldAccess.getClass().getSimpleName() + ":" + f.getClass().getName() + "#" + f.getName());
FieldModel<C> fieldModel = (FieldModel<C>)fieldModels.g... | public class class_name {
@SuppressWarnings("unchecked")
public static final <C> FieldModel<C> get(Field f, FieldAccess<C> fieldAccess) {
String fieldModelKey = (fieldAccess.getClass().getSimpleName() + ":" + f.getClass().getName() + "#" + f.getName());
FieldModel<C> fieldModel = (FieldModel<C>)fieldModels.g... |
public class class_name {
public DescribePipelinesResult withPipelineDescriptionList(PipelineDescription... pipelineDescriptionList) {
if (this.pipelineDescriptionList == null) {
setPipelineDescriptionList(new com.amazonaws.internal.SdkInternalList<PipelineDescription>(pipelineDescriptionList.lengt... | public class class_name {
public DescribePipelinesResult withPipelineDescriptionList(PipelineDescription... pipelineDescriptionList) {
if (this.pipelineDescriptionList == null) {
setPipelineDescriptionList(new com.amazonaws.internal.SdkInternalList<PipelineDescription>(pipelineDescriptionList.lengt... |
public class class_name {
protected boolean checkCitationIds(List<String> citationIds, ItemDataProvider provider) {
for (String id : citationIds) {
if (provider.retrieveItem(id) == null) {
String message = "unknown citation id: " + id;
//find alternatives
List<String> availableIds = Arrays.asList... | public class class_name {
protected boolean checkCitationIds(List<String> citationIds, ItemDataProvider provider) {
for (String id : citationIds) {
if (provider.retrieveItem(id) == null) {
String message = "unknown citation id: " + id;
//find alternatives
List<String> availableIds = Arrays.asList... |
public class class_name {
public static BufferedImage composeMaskedImage (
ImageCreator isrc, Shape mask, BufferedImage base)
{
int wid = base.getWidth();
int hei = base.getHeight();
// alternate method for composition:
// 1. create WriteableRaster with base data
//... | public class class_name {
public static BufferedImage composeMaskedImage (
ImageCreator isrc, Shape mask, BufferedImage base)
{
int wid = base.getWidth();
int hei = base.getHeight();
// alternate method for composition:
// 1. create WriteableRaster with base data
//... |
public class class_name {
public static void annotateRoot(String... keyValueSequence) {
TracyThreadContext ctx = threadContext.get();
if (isValidContext(ctx)) {
ctx.annotateRoot(keyValueSequence);
}
} } | public class class_name {
public static void annotateRoot(String... keyValueSequence) {
TracyThreadContext ctx = threadContext.get();
if (isValidContext(ctx)) {
ctx.annotateRoot(keyValueSequence); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static RSAPublicKey getRSAPublicKeyFromPEM(Provider provider, String pem) {
try {
KeyFactory keyFactory = KeyFactory.getInstance("RSA", provider);
return (RSAPublicKey) keyFactory.generatePublic(new X509EncodedKeySpec(getKeyBytesFromPEM(pem)));
}... | public class class_name {
public static RSAPublicKey getRSAPublicKeyFromPEM(Provider provider, String pem) {
try {
KeyFactory keyFactory = KeyFactory.getInstance("RSA", provider);
return (RSAPublicKey) keyFactory.generatePublic(new X509EncodedKeySpec(getKeyBytesFromPEM(pem))); // depend... |
public class class_name {
public void doBrowse(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
if (!common.checkGet(request, response)) return;
User user = common.getLoggedInUser(request);
if (user == null) {
common.pa... | public class class_name {
public void doBrowse(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
if (!common.checkGet(request, response)) return;
User user = common.getLoggedInUser(request);
if (user == null) {
common.pa... |
public class class_name {
public void marshall(StartImportRequest startImportRequest, ProtocolMarshaller protocolMarshaller) {
if (startImportRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(StartImportRequest startImportRequest, ProtocolMarshaller protocolMarshaller) {
if (startImportRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
private Set<Integer> getSuccessors(Graph g, Integer vertex) {
if (g instanceof DirectedGraph) {
DirectedGraph<?> dg = (DirectedGraph)g;
return dg.successors(vertex);
}
else
return Collections.<Integer>emptySet();
} } | public class class_name {
private Set<Integer> getSuccessors(Graph g, Integer vertex) {
if (g instanceof DirectedGraph) {
DirectedGraph<?> dg = (DirectedGraph)g;
return dg.successors(vertex); // depends on control dependency: [if], data = [none]
}
else
return... |
public class class_name {
private static void arcConstructor(CDKRGraph graph, IAtomContainer ac1, IAtomContainer ac2) throws CDKException {
// each node is incompatible with itself
for (int i = 0; i < graph.getGraph().size(); i++) {
CDKRNode rNodeX = graph.getGraph().get(i);
rNo... | public class class_name {
private static void arcConstructor(CDKRGraph graph, IAtomContainer ac1, IAtomContainer ac2) throws CDKException {
// each node is incompatible with itself
for (int i = 0; i < graph.getGraph().size(); i++) {
CDKRNode rNodeX = graph.getGraph().get(i);
rNo... |
public class class_name {
protected void fireAfterPersist() {
PersistableListener l = _listener;
if(l != null) {
try {
l.afterPersist();
} catch(Exception e) {
_log.error("failure on calling afterPersist", e);
}
}
... | public class class_name {
protected void fireAfterPersist() {
PersistableListener l = _listener;
if(l != null) {
try {
l.afterPersist(); // depends on control dependency: [try], data = [none]
} catch(Exception e) {
_log.error("failure on ... |
public class class_name {
public <T> void forAllDo
(final Collection<? extends T> collection,
final Closure<T> closure)
{
for (final T current : collection)
{
closure.execute(current);
}
} } | public class class_name {
public <T> void forAllDo
(final Collection<? extends T> collection,
final Closure<T> closure)
{
for (final T current : collection)
{
closure.execute(current); // depends on control dependency: [for], data = [current]
... |
public class class_name {
public com.google.privacy.dlp.v2.UnwrappedCryptoKey getUnwrapped() {
if (sourceCase_ == 2) {
return (com.google.privacy.dlp.v2.UnwrappedCryptoKey) source_;
}
return com.google.privacy.dlp.v2.UnwrappedCryptoKey.getDefaultInstance();
} } | public class class_name {
public com.google.privacy.dlp.v2.UnwrappedCryptoKey getUnwrapped() {
if (sourceCase_ == 2) {
return (com.google.privacy.dlp.v2.UnwrappedCryptoKey) source_; // depends on control dependency: [if], data = [none]
}
return com.google.privacy.dlp.v2.UnwrappedCryptoKey.getDefaultI... |
public class class_name {
public int drainTo(Collection<? super E> collection, int maxElements)
{
if (collection == null)
{
throw new IllegalArgumentException("The 'collection' parameter may not be null.");
}
if (collection == this)
{
throw new Illeg... | public class class_name {
public int drainTo(Collection<? super E> collection, int maxElements)
{
if (collection == null)
{
throw new IllegalArgumentException("The 'collection' parameter may not be null.");
}
if (collection == this)
{
throw new Illeg... |
public class class_name {
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final EEResourceReferenceProcessorRegistry registry = deploymentUnit.getAttachment(Attachments.RESOURCE_RE... | public class class_name {
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final EEResourceReferenceProcessorRegistry registry = deploymentUnit.getAttachment(Attachments.RESOURCE_RE... |
public class class_name {
@SuppressWarnings("ConstantConditions")
private List<JBBPAbstractField> parseStruct(final JBBPBitInputStream inStream, final JBBPIntCounter positionAtCompiledBlock, final JBBPVarFieldProcessor varFieldProcessor, final JBBPNamedNumericFieldMap namedNumericFieldMap, final JBBPIntCounter posit... | public class class_name {
@SuppressWarnings("ConstantConditions")
private List<JBBPAbstractField> parseStruct(final JBBPBitInputStream inStream, final JBBPIntCounter positionAtCompiledBlock, final JBBPVarFieldProcessor varFieldProcessor, final JBBPNamedNumericFieldMap namedNumericFieldMap, final JBBPIntCounter posit... |
public class class_name {
@Nullable
public DnsQueryCacheResult tryToResolve(DnsQuery query) {
CachedDnsQueryResult cachedResult = cache.get(query);
if (cachedResult == null) {
logger.trace("{} cache miss", query);
return null;
}
DnsResponse result = cachedResult.response;
assert result != null; // r... | public class class_name {
@Nullable
public DnsQueryCacheResult tryToResolve(DnsQuery query) {
CachedDnsQueryResult cachedResult = cache.get(query);
if (cachedResult == null) {
logger.trace("{} cache miss", query); // depends on control dependency: [if], data = [none]
return null; // depends on control depe... |
public class class_name {
public static boolean contains(Iterable<?> iterable, Object value)
{
if (iterable instanceof Collection)
{
return ((Collection<?>) iterable).contains(value);
}
if (iterable instanceof RichIterable)
{
return ((RichIterable<?>)... | public class class_name {
public static boolean contains(Iterable<?> iterable, Object value)
{
if (iterable instanceof Collection)
{
return ((Collection<?>) iterable).contains(value); // depends on control dependency: [if], data = [none]
}
if (iterable instanceof RichIte... |
public class class_name {
private static int readDataBlock(String text, int offset, int length, List<byte[]> blocks)
{
int bytes = length / 2;
byte[] data = new byte[bytes];
for (int index = 0; index < bytes; index++)
{
data[index] = (byte) Integer.parseInt(text.substring(offset, o... | public class class_name {
private static int readDataBlock(String text, int offset, int length, List<byte[]> blocks)
{
int bytes = length / 2;
byte[] data = new byte[bytes];
for (int index = 0; index < bytes; index++)
{
data[index] = (byte) Integer.parseInt(text.substring(offset, o... |
public class class_name {
public Color getColorForBond(IBond bond, RendererModel model) {
if (this.overrideColor != null) {
return overrideColor;
}
Color color = model.getParameter(ColorHash.class).getValue().get(bond);
if (color == null) {
return model.getParam... | public class class_name {
public Color getColorForBond(IBond bond, RendererModel model) {
if (this.overrideColor != null) {
return overrideColor; // depends on control dependency: [if], data = [none]
}
Color color = model.getParameter(ColorHash.class).getValue().get(bond);
... |
public class class_name {
private File findFile(final SecurityContext securityContext, final HttpServletRequest request, final String path) throws FrameworkException {
List<Linkable> entryPoints = findPossibleEntryPoints(securityContext, request, path);
// If no results were found, try to replace whitespace by '... | public class class_name {
private File findFile(final SecurityContext securityContext, final HttpServletRequest request, final String path) throws FrameworkException {
List<Linkable> entryPoints = findPossibleEntryPoints(securityContext, request, path);
// If no results were found, try to replace whitespace by '... |
public class class_name {
public void sendRequestPacket(String nodeID, Context ctx) {
FastBuildTree msg = new FastBuildTree(11);
// Add basic properties (version, sender's nodeID, etc.)
msg.putUnsafe("ver", PROTOCOL_VERSION);
msg.putUnsafe("sender", this.nodeID);
msg.putUnsafe("id", ctx.id);
msg.pu... | public class class_name {
public void sendRequestPacket(String nodeID, Context ctx) {
FastBuildTree msg = new FastBuildTree(11);
// Add basic properties (version, sender's nodeID, etc.)
msg.putUnsafe("ver", PROTOCOL_VERSION);
msg.putUnsafe("sender", this.nodeID);
msg.putUnsafe("id", ctx.id);
msg.pu... |
public class class_name {
public void massage( T input , T output ) {
if( clip ) {
T inputAdjusted = clipInput(input, output);
// configure a simple change in scale for both axises
transform.a11 = input.width / (float) output.width;
transform.a22 = input.height / (float) output.height;
// this change... | public class class_name {
public void massage( T input , T output ) {
if( clip ) {
T inputAdjusted = clipInput(input, output);
// configure a simple change in scale for both axises
transform.a11 = input.width / (float) output.width; // depends on control dependency: [if], data = [none]
transform.a22 = i... |
public class class_name {
@Override
public void transferTo(Decoder newDecoder) {
super.transferTo(newDecoder);
if (remainingBytesLength > 0) {
if (currentBuffer == null || !currentBuffer.hasRemaining())
currentBuffer = ByteBuffer.wrap(remainingBytes, 0, remainingBytesLength);
else {
byte[] b = new b... | public class class_name {
@Override
public void transferTo(Decoder newDecoder) {
super.transferTo(newDecoder);
if (remainingBytesLength > 0) {
if (currentBuffer == null || !currentBuffer.hasRemaining())
currentBuffer = ByteBuffer.wrap(remainingBytes, 0, remainingBytesLength);
else {
byte[] b = new b... |
public class class_name {
public void setDateProperty(String pstrSection, String pstrProp,
Date pdtVal, String pstrComments)
{
INISection objSec = null;
objSec = (INISection) this.mhmapSections.get(pstrSection);
if (objSec == null)
{
ob... | public class class_name {
public void setDateProperty(String pstrSection, String pstrProp,
Date pdtVal, String pstrComments)
{
INISection objSec = null;
objSec = (INISection) this.mhmapSections.get(pstrSection);
if (objSec == null)
{
ob... |
public class class_name {
public synchronized long nextId() {
long timestamp = timeGen();
if (timestamp < lastTimestamp) {
throw new RuntimeException(
String.format("Clock moved backwards. Refusing to generate id for %d milliseconds", lastTimestamp - timestamp));
... | public class class_name {
public synchronized long nextId() {
long timestamp = timeGen();
if (timestamp < lastTimestamp) {
throw new RuntimeException(
String.format("Clock moved backwards. Refusing to generate id for %d milliseconds", lastTimestamp - timestamp));
... |
public class class_name {
public void setVolumeStatuses(java.util.Collection<VolumeStatusItem> volumeStatuses) {
if (volumeStatuses == null) {
this.volumeStatuses = null;
return;
}
this.volumeStatuses = new com.amazonaws.internal.SdkInternalList<VolumeStatusItem>(volume... | public class class_name {
public void setVolumeStatuses(java.util.Collection<VolumeStatusItem> volumeStatuses) {
if (volumeStatuses == null) {
this.volumeStatuses = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public String join(List<String> list) {
if (list == null) {
return null;
}
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String s : list) {
if (s == null) {
if (convertEmptyToNull) {
... | public class class_name {
public String join(List<String> list) {
if (list == null) {
return null; // depends on control dependency: [if], data = [none]
}
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String s : list) {
if (s == nu... |
public class class_name {
public DependencyExplorerOutput explore(GinjectorBindings origin) {
DependencyExplorerOutput output = new DependencyExplorerOutput();
DependencyGraph.Builder builder = new DependencyGraph.Builder(origin);
for (Dependency edge : origin.getDependencies()) {
Preconditions.... | public class class_name {
public DependencyExplorerOutput explore(GinjectorBindings origin) {
DependencyExplorerOutput output = new DependencyExplorerOutput();
DependencyGraph.Builder builder = new DependencyGraph.Builder(origin);
for (Dependency edge : origin.getDependencies()) {
Preconditions.... |
public class class_name {
public static String getRepoPropertiesFileLocation() {
String installDirPath = Utils.getInstallDir().getAbsolutePath();
String overrideLocation = System.getProperty(InstallConstants.OVERRIDE_PROPS_LOCATION_ENV_VAR);
//Gets the repository properties file path from the d... | public class class_name {
public static String getRepoPropertiesFileLocation() {
String installDirPath = Utils.getInstallDir().getAbsolutePath();
String overrideLocation = System.getProperty(InstallConstants.OVERRIDE_PROPS_LOCATION_ENV_VAR);
//Gets the repository properties file path from the d... |
public class class_name {
public static String join(String[] array, String sep) {
if (array == null) {
return null;
}
int arraySize = array.length;
int sepSize = 0;
if (sep != null && !sep.equals("")) {
sepSize = sep.length();
}
int bufS... | public class class_name {
public static String join(String[] array, String sep) {
if (array == null) {
return null; // depends on control dependency: [if], data = [none]
}
int arraySize = array.length;
int sepSize = 0;
if (sep != null && !sep.equals("")) {
... |
public class class_name {
public Object getLock(Object key)
{
int index = (key.hashCode() & 0x7FFFFFFF) % locks.length;
// Double-checked locking. Safe since Object has no state.
Object lock = locks[index];
if (lock == null)
{
synchronized (this)
{
... | public class class_name {
public Object getLock(Object key)
{
int index = (key.hashCode() & 0x7FFFFFFF) % locks.length;
// Double-checked locking. Safe since Object has no state.
Object lock = locks[index];
if (lock == null)
{
synchronized (this) // depends on ... |
public class class_name {
@Nullable
public ResultStrength getAddressRisk() {
if (addressRisk == null) {
return null;
}
return ResultStrength.toEnum(addressRisk.toLowerCase());
} } | public class class_name {
@Nullable
public ResultStrength getAddressRisk() {
if (addressRisk == null) {
return null; // depends on control dependency: [if], data = [none]
}
return ResultStrength.toEnum(addressRisk.toLowerCase());
} } |
public class class_name {
public static CacheKeyGenerator getCacheKeyGenerator(BeanManager beanManager, Class<? extends CacheKeyGenerator> methodCacheKeyGeneratorClass, CacheDefaults cacheDefaultsAnnotation) {
assertNotNull(beanManager, "beanManager parameter must not be null");
Class<? extends CacheKeyGe... | public class class_name {
public static CacheKeyGenerator getCacheKeyGenerator(BeanManager beanManager, Class<? extends CacheKeyGenerator> methodCacheKeyGeneratorClass, CacheDefaults cacheDefaultsAnnotation) {
assertNotNull(beanManager, "beanManager parameter must not be null");
Class<? extends CacheKeyGe... |
public class class_name {
private void firePropertyReset(T property)
{
PropertyEvent<T> event = null;
for (PropertyListener<T> l : listeners)
{
if (event == null)
{
event = new PropertyEvent<T>(this, property);
}
l... | public class class_name {
private void firePropertyReset(T property)
{
PropertyEvent<T> event = null;
for (PropertyListener<T> l : listeners)
{
if (event == null)
{
event = new PropertyEvent<T>(this, property);
// depends on control dependen... |
public class class_name {
public static String convertEOL(String input, EOLType type) {
if (null == input || 0 == input.length()) {
return input;
}
// Convert line endings to Unix LF,
// which also sets up the string for other conversions
input = input.replace("\r\n"... | public class class_name {
public static String convertEOL(String input, EOLType type) {
if (null == input || 0 == input.length()) {
return input; // depends on control dependency: [if], data = [none]
}
// Convert line endings to Unix LF,
// which also sets up the string for ... |
public class class_name {
public Option getOption(String name) {
if (shortOpts.containsKey(name)) {
return shortOpts.get(name);
}
return longOpts.get(name);
} } | public class class_name {
public Option getOption(String name) {
if (shortOpts.containsKey(name)) {
return shortOpts.get(name); // depends on control dependency: [if], data = [none]
}
return longOpts.get(name);
} } |
public class class_name {
public static String getKeyManagerFactoryAlgorithm() {
if (keyManagerFactoryAlgorithm == null) {
keyManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
... | public class class_name {
public static String getKeyManagerFactoryAlgorithm() {
if (keyManagerFactoryAlgorithm == null) {
keyManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
... |
public class class_name {
public void setMetricDataResults(java.util.Collection<MetricDataResult> metricDataResults) {
if (metricDataResults == null) {
this.metricDataResults = null;
return;
}
this.metricDataResults = new com.amazonaws.internal.SdkInternalList<MetricDat... | public class class_name {
public void setMetricDataResults(java.util.Collection<MetricDataResult> metricDataResults) {
if (metricDataResults == null) {
this.metricDataResults = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], da... |
public class class_name {
public void setSelectableDateRange(Date min, Date max) {
if (min == null) {
minSelectableDate = defaultMinSelectableDate;
} else {
minSelectableDate = min;
}
if (max == null) {
maxSelectableDate = defaultMaxSelectableDate;
} else {
maxSelectableDate = max;
}
if (maxS... | public class class_name {
public void setSelectableDateRange(Date min, Date max) {
if (min == null) {
minSelectableDate = defaultMinSelectableDate; // depends on control dependency: [if], data = [none]
} else {
minSelectableDate = min; // depends on control dependency: [if], data = [none]
}
if (max == nu... |
public class class_name {
protected Object toJavaType(FieldWithAnnotation<Facebook> fieldWithAnnotation, JsonObject jsonObject,
String facebookFieldName) {
Class<?> type = fieldWithAnnotation.getField().getType();
JsonValue rawValue = jsonObject.get(facebookFieldName);
// Short-circuit right off the... | public class class_name {
protected Object toJavaType(FieldWithAnnotation<Facebook> fieldWithAnnotation, JsonObject jsonObject,
String facebookFieldName) {
Class<?> type = fieldWithAnnotation.getField().getType();
JsonValue rawValue = jsonObject.get(facebookFieldName);
// Short-circuit right off the... |
public class class_name {
@Override
public void report() {
for (Map.Entry<KeyType, Map<String, Map<String, List<SourceInfo>>>> entry : parmInfo.entrySet()) {
KeyType type = entry.getKey();
Map<String, Map<String, List<SourceInfo>>> typeMap = entry.getValue();
for (Map<S... | public class class_name {
@Override
public void report() {
for (Map.Entry<KeyType, Map<String, Map<String, List<SourceInfo>>>> entry : parmInfo.entrySet()) {
KeyType type = entry.getKey();
Map<String, Map<String, List<SourceInfo>>> typeMap = entry.getValue();
for (Map<S... |
public class class_name {
SchemaFactory createInstance( String className ) {
try {
if (debug) debugPrintln("instantiating "+className);
Class clazz;
if( classLoader!=null )
clazz = classLoader.loadClass(className);
else
clazz = Cla... | public class class_name {
SchemaFactory createInstance( String className ) {
try {
if (debug) debugPrintln("instantiating "+className);
Class clazz;
if( classLoader!=null )
clazz = classLoader.loadClass(className);
else
clazz = Cla... |
public class class_name {
public static RC5CBCParameter getInstance(Object obj)
{
if (obj instanceof RC5CBCParameter) {
return (RC5CBCParameter) obj;
}
if (obj != null) {
return new RC5CBCParameter(ASN1Sequence.getInstance(obj));
}
return null;
} ... | public class class_name {
public static RC5CBCParameter getInstance(Object obj)
{
if (obj instanceof RC5CBCParameter) {
return (RC5CBCParameter) obj; // depends on control dependency: [if], data = [none]
}
if (obj != null) {
return new RC5CBCParameter(ASN1Sequence.ge... |
public class class_name {
private Expression handleThisSuffix(Java7Parser.PrimaryContext primaryContext, AdapterParameters adapterParameters) {
/*
thisSuffix
locals [int operationType]
: (LBRACKET expression RBRACKET)+ {$operationType = 1;}
... | public class class_name {
private Expression handleThisSuffix(Java7Parser.PrimaryContext primaryContext, AdapterParameters adapterParameters) {
/*
thisSuffix
locals [int operationType]
: (LBRACKET expression RBRACKET)+ {$operationType = 1;}
... |
public class class_name {
public static boolean startDefaultHandlers(HttpServerExchange httpServerExchange) {
// check if defaultHandlers is empty
if(defaultHandlers != null && defaultHandlers.size() > 0) {
httpServerExchange.putAttachment(CHAIN_ID, "defaultHandlers");
httpServerExchange.putAttachment(CHAIN_... | public class class_name {
public static boolean startDefaultHandlers(HttpServerExchange httpServerExchange) {
// check if defaultHandlers is empty
if(defaultHandlers != null && defaultHandlers.size() > 0) {
httpServerExchange.putAttachment(CHAIN_ID, "defaultHandlers"); // depends on control dependency: [if], da... |
public class class_name {
private JSONObject appendDebugParams(JSONObject originalParams) {
try {
if (originalParams != null && deeplinkDebugParams_ != null) {
if (deeplinkDebugParams_.length() > 0) {
PrefHelper.Debug("You're currently in deep link debug mode. Pl... | public class class_name {
private JSONObject appendDebugParams(JSONObject originalParams) {
try {
if (originalParams != null && deeplinkDebugParams_ != null) {
if (deeplinkDebugParams_.length() > 0) {
PrefHelper.Debug("You're currently in deep link debug mode. Pl... |
public class class_name {
public void marshall(StartLambdaFunctionFailedEventAttributes startLambdaFunctionFailedEventAttributes, ProtocolMarshaller protocolMarshaller) {
if (startLambdaFunctionFailedEventAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)"... | public class class_name {
public void marshall(StartLambdaFunctionFailedEventAttributes startLambdaFunctionFailedEventAttributes, ProtocolMarshaller protocolMarshaller) {
if (startLambdaFunctionFailedEventAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)"... |
public class class_name {
@Override
public IndividualHelper externalIndividual(final URI uri) {
Individual<?, ?> individual=null;
if(uri.isAbsolute()) {
individual=this.dataSet.individual(uri, ExternalIndividual.class);
} else {
individual=this.dataSet.individual(uri, NewIndividual.class);
}
return ne... | public class class_name {
@Override
public IndividualHelper externalIndividual(final URI uri) {
Individual<?, ?> individual=null;
if(uri.isAbsolute()) {
individual=this.dataSet.individual(uri, ExternalIndividual.class); // depends on control dependency: [if], data = [none]
} else {
individual=this.dataSet... |
public class class_name {
private static synchronized Database getDatabaseObject(String type,
String path, HsqlProperties props) {
Database db;
String key = path;
// A VoltDB extension to work around ENG-6044
/* disable 13 lines ...
HashMap databaseMap;
... | public class class_name {
private static synchronized Database getDatabaseObject(String type,
String path, HsqlProperties props) {
Database db;
String key = path;
// A VoltDB extension to work around ENG-6044
/* disable 13 lines ...
HashMap databaseMap;
... |
public class class_name {
@Override
public void removeByUuid_C(String uuid, long companyId) {
for (CPDefinition cpDefinition : findByUuid_C(uuid, companyId,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinition);
}
} } | public class class_name {
@Override
public void removeByUuid_C(String uuid, long companyId) {
for (CPDefinition cpDefinition : findByUuid_C(uuid, companyId,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinition); // depends on control dependency: [for], data = [cpDefinition]
}
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.