code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static String handleLuceneSpecialChars(String condition){
if(condition == null || condition.equals("")){
return condition;
}
condition = condition.replace(":","/:");
condition = condition.replace("-","/-");
condition = condition.replace("+","/+");
condition = condition.r... | public class class_name {
public static String handleLuceneSpecialChars(String condition){
if(condition == null || condition.equals("")){
return condition; // depends on control dependency: [if], data = [none]
}
condition = condition.replace(":","/:");
condition = condition.replace("-","/-");
condition = ... |
public class class_name {
private static void createLanguageAliases(TypeSpec.Builder type, Map<String, String> languageAliases) {
MethodSpec.Builder method = MethodSpec.methodBuilder("registerLanguageAliases")
.addModifiers(PRIVATE, STATIC);
for (Map.Entry<String, String> entry : languageAliases.e... | public class class_name {
private static void createLanguageAliases(TypeSpec.Builder type, Map<String, String> languageAliases) {
MethodSpec.Builder method = MethodSpec.methodBuilder("registerLanguageAliases")
.addModifiers(PRIVATE, STATIC);
for (Map.Entry<String, String> entry : languageAliases.e... |
public class class_name {
public static VCProjectHolder getVCProjectHolder( File inputFile, boolean isSolution )
{
VCProjectHolder vcProjectHolder = VCPROJECT_HOLDERS.get( inputFile );
if ( vcProjectHolder == null )
{
vcProjectHolder = new VCProjectHolder( inputFile, is... | public class class_name {
public static VCProjectHolder getVCProjectHolder( File inputFile, boolean isSolution )
{
VCProjectHolder vcProjectHolder = VCPROJECT_HOLDERS.get( inputFile );
if ( vcProjectHolder == null )
{
vcProjectHolder = new VCProjectHolder( inputFile, is... |
public class class_name {
public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert convert, int iDisplayFieldDesc, Map<String, Object> properties)
{
ScreenComponent sField = null;
Converter converter = this.getNextConverter();
if (converter != nul... | public class class_name {
public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert convert, int iDisplayFieldDesc, Map<String, Object> properties)
{
ScreenComponent sField = null;
Converter converter = this.getNextConverter();
if (converter != nul... |
public class class_name {
private static boolean isCallToFail(StatementTree then, VisitorState state) {
while (then.getKind() == BLOCK) {
List<? extends StatementTree> statements = ((BlockTree) then).getStatements();
if (statements.size() != 1) {
return false;
}
then = getOnlyElemen... | public class class_name {
private static boolean isCallToFail(StatementTree then, VisitorState state) {
while (then.getKind() == BLOCK) {
List<? extends StatementTree> statements = ((BlockTree) then).getStatements(); // depends on control dependency: [while], data = [none]
if (statements.size() != 1) {... |
public class class_name {
protected void rehash(final int newN) {
final char key[] = this.key;
final char value[] = this.value;
final int mask = newN - 1; // Note that this is used by the hashing macro
final char newKey[] = new char[newN + 1];
final char newValue[] = new char[ne... | public class class_name {
protected void rehash(final int newN) {
final char key[] = this.key;
final char value[] = this.value;
final int mask = newN - 1; // Note that this is used by the hashing macro
final char newKey[] = new char[newN + 1];
final char newValue[] = new char[ne... |
public class class_name {
protected void writeNull(Type type) {
if (logMode == MODE_DELETE) {
write(BYTES_IS);
} else if (isWritten) {
write(',');
}
isWritten = true;
write(BYTES_NULL);
} } | public class class_name {
protected void writeNull(Type type) {
if (logMode == MODE_DELETE) {
write(BYTES_IS); // depends on control dependency: [if], data = [none]
} else if (isWritten) {
write(','); // depends on control dependency: [if], data = [none]
}
isWr... |
public class class_name {
@Override
public void setValue(ELContext context, Object base, Object property,
Object value) {
if (context == null) {
throw new NullPointerException();
}
if (base == null && property instanceof String) {
String bea... | public class class_name {
@Override
public void setValue(ELContext context, Object base, Object property,
Object value) {
if (context == null) {
throw new NullPointerException();
}
if (base == null && property instanceof String) {
String bea... |
public class class_name {
public void setIpSets(java.util.Collection<IpSet> ipSets) {
if (ipSets == null) {
this.ipSets = null;
return;
}
this.ipSets = new java.util.ArrayList<IpSet>(ipSets);
} } | public class class_name {
public void setIpSets(java.util.Collection<IpSet> ipSets) {
if (ipSets == null) {
this.ipSets = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.ipSets = new java.u... |
public class class_name {
static <T> Callable<T> threadRenaming(final Callable<T> callable,
final Supplier<String> nameSupplier) {
checkNotNull(nameSupplier);
checkNotNull(callable);
return new Callable<T>() {
@Override public T call() throws Exception {
Thread currentThread = Thread.cu... | public class class_name {
static <T> Callable<T> threadRenaming(final Callable<T> callable,
final Supplier<String> nameSupplier) {
checkNotNull(nameSupplier);
checkNotNull(callable);
return new Callable<T>() {
@Override public T call() throws Exception {
Thread currentThread = Thread.cu... |
public class class_name {
public static Resource create(File root, String path)
{
FileResourceProvider frp = null;
try
{
frp = new FileResourceProvider(root);
}
catch(IOException e)
{
throw new RuntimeException(e);
}
return frp.createResource(path);
} } | public class class_name {
public static Resource create(File root, String path)
{
FileResourceProvider frp = null;
try
{
frp = new FileResourceProvider(root); // depends on control dependency: [try], data = [none]
}
catch(IOException e)
{
throw new RuntimeException(e);
} // de... |
public class class_name {
public int getAge() {
int ret = 0;
Date now = new Date(System.currentTimeMillis());
Date filmDate = getAgeAsDate();
if (filmDate != null) {
ret = Math.round((now.getTime() - filmDate.getTime()) / (1000));
if (ret < 0) {
r... | public class class_name {
public int getAge() {
int ret = 0;
Date now = new Date(System.currentTimeMillis());
Date filmDate = getAgeAsDate();
if (filmDate != null) {
ret = Math.round((now.getTime() - filmDate.getTime()) / (1000)); // depends on control dependency: [if], data... |
public class class_name {
private String getGroupAccessId(String groupName) {
try {
SecurityService securityService = securityServiceRef.getService();
UserRegistryService userRegistryService = securityService.getUserRegistryService();
UserRegistry userRegistry = userRegistry... | public class class_name {
private String getGroupAccessId(String groupName) {
try {
SecurityService securityService = securityServiceRef.getService();
UserRegistryService userRegistryService = securityService.getUserRegistryService();
UserRegistry userRegistry = userRegistry... |
public class class_name {
@Override
public boolean isVisible() {
if (!super.isVisible()) {
return false;
}
Video[] video = getVideo();
return video != null && video.length > 0;
} } | public class class_name {
@Override
public boolean isVisible() {
if (!super.isVisible()) {
return false; // depends on control dependency: [if], data = [none]
}
Video[] video = getVideo();
return video != null && video.length > 0;
} } |
public class class_name {
@Override
protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders)
{
JsonDocument doc = handler.getDocumentFromEntity(entityMetadata, entity, kunderaMetadata);
if (!isUpdate)
{
bucket.insert(... | public class class_name {
@Override
protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders)
{
JsonDocument doc = handler.getDocumentFromEntity(entityMetadata, entity, kunderaMetadata);
if (!isUpdate)
{
bucket.insert(... |
public class class_name {
public final void mRULE_INT() throws RecognitionException {
try {
int _type = RULE_INT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalSimpleAntlr.g:1734:10: ( ( '0' .. '9' )+ )
// InternalSimpleAntlr.g:1734:12: ( '0' .. '9' )+
... | public class class_name {
public final void mRULE_INT() throws RecognitionException {
try {
int _type = RULE_INT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalSimpleAntlr.g:1734:10: ( ( '0' .. '9' )+ )
// InternalSimpleAntlr.g:1734:12: ( '0' .. '9' )+
... |
public class class_name {
public static void addLibraryPath(String pathToAdd) throws Exception {
Field usrPathsField = ClassLoader.class.getDeclaredField("usr_paths");
usrPathsField.setAccessible(true);
// get array of paths
final String[] paths = (String[]) usrPathsField.get(null);
// check if the path to... | public class class_name {
public static void addLibraryPath(String pathToAdd) throws Exception {
Field usrPathsField = ClassLoader.class.getDeclaredField("usr_paths");
usrPathsField.setAccessible(true);
// get array of paths
final String[] paths = (String[]) usrPathsField.get(null);
// check if the path to... |
public class class_name {
private void checkSelection() {
m_okButton.disable(Messages.get().key(Messages.GUI_UPLOAD_BUTTON_OK_DISABLE_CHECKING_0));
if (!m_selectionDone) {
m_firstContentHeight = CmsDomUtil.getCurrentStyleInt(m_scrollPanel.getElement(), CmsDomUtil.Style.height);
... | public class class_name {
private void checkSelection() {
m_okButton.disable(Messages.get().key(Messages.GUI_UPLOAD_BUTTON_OK_DISABLE_CHECKING_0));
if (!m_selectionDone) {
m_firstContentHeight = CmsDomUtil.getCurrentStyleInt(m_scrollPanel.getElement(), CmsDomUtil.Style.height); // depends... |
public class class_name {
public Set<CoreDocumentSynchronizationConfig> getSynchronizedDocuments(
final MongoNamespace namespace
) {
this.waitUntilInitialized();
try {
ongoingOperationsGroup.enter();
return this.syncConfig.getSynchronizedDocuments(namespace);
} finally {
ongoingOp... | public class class_name {
public Set<CoreDocumentSynchronizationConfig> getSynchronizedDocuments(
final MongoNamespace namespace
) {
this.waitUntilInitialized();
try {
ongoingOperationsGroup.enter(); // depends on control dependency: [try], data = [none]
return this.syncConfig.getSynchroniz... |
public class class_name {
public void marshall(DeleteRepositoryPolicyRequest deleteRepositoryPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteRepositoryPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DeleteRepositoryPolicyRequest deleteRepositoryPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteRepositoryPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static boolean isClassOrInterface(Type type) {
if (!(type instanceof Class)) {
return false;
}
Class clazz = (Class) type;
return !clazz.isPrimitive() && !clazz.isAnnotation() && !clazz.isArray() && !clazz.isEnum()
&& !clazz.isAnonymousClass();
} } | public class class_name {
public static boolean isClassOrInterface(Type type) {
if (!(type instanceof Class)) {
return false; // depends on control dependency: [if], data = [none]
}
Class clazz = (Class) type;
return !clazz.isPrimitive() && !clazz.isAnnotation() && !clazz.isArray() && !clazz.isE... |
public class class_name {
static ExecutionStatus updatedFlowExecutionStatus(ExecutionStatus jobExecutionStatus,
ExecutionStatus currentFlowExecutionStatus) {
// if any job failed or flow has failed then return failed status
if (currentFlowExecutionStatus == ExecutionStatus.FAILED ||
jobExecution... | public class class_name {
static ExecutionStatus updatedFlowExecutionStatus(ExecutionStatus jobExecutionStatus,
ExecutionStatus currentFlowExecutionStatus) {
// if any job failed or flow has failed then return failed status
if (currentFlowExecutionStatus == ExecutionStatus.FAILED ||
jobExecution... |
public class class_name {
private boolean runQueuedTask(boolean hasPermit) {
if (!hasPermit && beginRequest(paused) == RunResult.REJECTED) {
return false;
}
QueuedTask task = null;
if (!paused) {
task = taskQueue.poll();
} else {
//the contain... | public class class_name {
private boolean runQueuedTask(boolean hasPermit) {
if (!hasPermit && beginRequest(paused) == RunResult.REJECTED) {
return false; // depends on control dependency: [if], data = [none]
}
QueuedTask task = null;
if (!paused) {
task = taskQu... |
public class class_name {
public static byte[] readStream(InputStream stream) {
ByteArrayOutputStream ostream = null;
try {
ostream = new ByteArrayOutputStream(stream.available());
byte data[] = new byte[BUFFER_SIZE];
int count;
while ((count = stream.rea... | public class class_name {
public static byte[] readStream(InputStream stream) {
ByteArrayOutputStream ostream = null;
try {
ostream = new ByteArrayOutputStream(stream.available()); // depends on control dependency: [try], data = [none]
byte data[] = new byte[BUFFER_SIZE];
... |
public class class_name {
@Override
public void onReceive(final Object message) throws Exception {
final Class<?> klass = message.getClass();
final State state = fsm.state();
if (logger.isInfoEnabled()) {
logger.info(" ********** Connection Current State: " + state.toString());... | public class class_name {
@Override
public void onReceive(final Object message) throws Exception {
final Class<?> klass = message.getClass();
final State state = fsm.state();
if (logger.isInfoEnabled()) {
logger.info(" ********** Connection Current State: " + state.toString());... |
public class class_name {
public static DoubleVector addUnmodified(DoubleVector vector1,
DoubleVector vector2) {
if (vector2.length() != vector1.length())
throw new IllegalArgumentException(
"Vectors of different sizes cannot be added... | public class class_name {
public static DoubleVector addUnmodified(DoubleVector vector1,
DoubleVector vector2) {
if (vector2.length() != vector1.length())
throw new IllegalArgumentException(
"Vectors of different sizes cannot be added... |
public class class_name {
public void setOptionGroupsList(java.util.Collection<OptionGroup> optionGroupsList) {
if (optionGroupsList == null) {
this.optionGroupsList = null;
return;
}
this.optionGroupsList = new com.amazonaws.internal.SdkInternalList<OptionGroup>(option... | public class class_name {
public void setOptionGroupsList(java.util.Collection<OptionGroup> optionGroupsList) {
if (optionGroupsList == null) {
this.optionGroupsList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [non... |
public class class_name {
public void setAttributeNames(java.util.Collection<String> attributeNames) {
if (attributeNames == null) {
this.attributeNames = null;
return;
}
this.attributeNames = new com.amazonaws.internal.SdkInternalList<String>(attributeNames);
} } | public class class_name {
public void setAttributeNames(java.util.Collection<String> attributeNames) {
if (attributeNames == null) {
this.attributeNames = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
void replaceArgsWithArray(String desc) {
Type[] methodArgs = Type.getArgumentTypes(desc);
createObjectArray(methodArgs.length); // [target] args... array
for (int i = methodArgs.length - 1; i >= 0; i--) {
if (methodArgs[i].getSize() == 2) {
... | public class class_name {
void replaceArgsWithArray(String desc) {
Type[] methodArgs = Type.getArgumentTypes(desc);
createObjectArray(methodArgs.length); // [target] args... array
for (int i = methodArgs.length - 1; i >= 0; i--) {
if (methodArgs[i].getSize() == 2) {
... |
public class class_name {
synchronized public void setEnabledProtocols(String[] protocols) {
enabledProtocols = new ProtocolList(protocols);
if ((handshaker != null) && !handshaker.activated()) {
handshaker.setEnabledProtocols(enabledProtocols);
}
} } | public class class_name {
synchronized public void setEnabledProtocols(String[] protocols) {
enabledProtocols = new ProtocolList(protocols);
if ((handshaker != null) && !handshaker.activated()) {
handshaker.setEnabledProtocols(enabledProtocols); // depends on control dependency: [if], data ... |
public class class_name {
public List<java.lang.Object> getStartPageOrEndPageOrMedlinePgn() {
if (startPageOrEndPageOrMedlinePgn == null) {
startPageOrEndPageOrMedlinePgn = new ArrayList<java.lang.Object>();
}
return this.startPageOrEndPageOrMedlinePgn;
} } | public class class_name {
public List<java.lang.Object> getStartPageOrEndPageOrMedlinePgn() {
if (startPageOrEndPageOrMedlinePgn == null) {
startPageOrEndPageOrMedlinePgn = new ArrayList<java.lang.Object>(); // depends on control dependency: [if], data = [none]
}
return this.startPa... |
public class class_name {
private void performClearOperation(ModelElementInstanceImpl modelElement, Collection<DomElement> elementsToRemove) {
Collection<ModelElementInstance> modelElements = ModelUtil.getModelElementCollection(elementsToRemove, modelElement.getModelInstance());
for (ModelElementInstance eleme... | public class class_name {
private void performClearOperation(ModelElementInstanceImpl modelElement, Collection<DomElement> elementsToRemove) {
Collection<ModelElementInstance> modelElements = ModelUtil.getModelElementCollection(elementsToRemove, modelElement.getModelInstance());
for (ModelElementInstance eleme... |
public class class_name {
synchronized void unlink(final OtpErlangPid from, final OtpErlangPid to) {
links.removeLink(from, to);
try {
super.sendUnlink(from, to);
} catch (final IOException e) {
}
} } | public class class_name {
synchronized void unlink(final OtpErlangPid from, final OtpErlangPid to) {
links.removeLink(from, to);
try {
super.sendUnlink(from, to); // depends on control dependency: [try], data = [none]
} catch (final IOException e) {
} // depends on control d... |
public class class_name {
public Snapshot load( InputStream load )
throws IOException
{
final BufferedReader reader = new BufferedReader( new InputStreamReader( load ) );
final List<SnapshotElement> elements = new ArrayList<SnapshotElement>();
try
{
String line =... | public class class_name {
public Snapshot load( InputStream load )
throws IOException
{
final BufferedReader reader = new BufferedReader( new InputStreamReader( load ) );
final List<SnapshotElement> elements = new ArrayList<SnapshotElement>();
try
{
String line =... |
public class class_name {
private int getColIndex(String colName, String tabName) {
int ordPos = 0;
try {
if (cConn == null) {
return -1;
}
if (dbmeta == null) {
dbmeta = cConn.getMetaData();
}
ResultSet col... | public class class_name {
private int getColIndex(String colName, String tabName) {
int ordPos = 0;
try {
if (cConn == null) {
return -1; // depends on control dependency: [if], data = [none]
}
if (dbmeta == null) {
dbmeta = cConn.g... |
public class class_name {
@Override
public boolean sendImg(String toUserName, String filePath) {
DateUtils.sendSleep();
String mediaId = this.uploadMedia(toUserName, filePath).getMediaId();
if (StringUtils.isEmpty(mediaId)) {
log.warn("Media为空");
return false;
... | public class class_name {
@Override
public boolean sendImg(String toUserName, String filePath) {
DateUtils.sendSleep();
String mediaId = this.uploadMedia(toUserName, filePath).getMediaId();
if (StringUtils.isEmpty(mediaId)) {
log.warn("Media为空"); // depends on control dependency... |
public class class_name {
private void removeViewHolders(@Nullable Collection<ViewHolder> toRemove) {
if (toRemove != null) {
for (ViewHolder holder : toRemove) {
mViewHolders.remove(holder.getRowIndex(), holder.getColumnIndex());
}
}
} } | public class class_name {
private void removeViewHolders(@Nullable Collection<ViewHolder> toRemove) {
if (toRemove != null) {
for (ViewHolder holder : toRemove) {
mViewHolders.remove(holder.getRowIndex(), holder.getColumnIndex()); // depends on control dependency: [for], data = [hol... |
public class class_name {
@Override
public EClass getIfcMaterialSelect() {
if (ifcMaterialSelectEClass == null) {
ifcMaterialSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1140);
}
return ifcMaterialSelectEClass;
} } | public class class_name {
@Override
public EClass getIfcMaterialSelect() {
if (ifcMaterialSelectEClass == null) {
ifcMaterialSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1140);
// depends on control dependency: [if], data = [none]
}
ret... |
public class class_name {
public int min() {
int min = Integer.MAX_VALUE;
for (E key : map.keySet()) {
min = Math.min(min, getIntCount(key));
}
return min;
} } | public class class_name {
public int min() {
int min = Integer.MAX_VALUE;
for (E key : map.keySet()) {
min = Math.min(min, getIntCount(key));
// depends on control dependency: [for], data = [key]
}
return min;
} } |
public class class_name {
protected Query buildPrefetchQuery(Collection ids)
{
CollectionDescriptor cds = getCollectionDescriptor();
QueryByCriteria query = buildPrefetchQuery(ids, cds.getForeignKeyFieldDescriptors(getItemClassDescriptor()));
// check if collection must be ordered
... | public class class_name {
protected Query buildPrefetchQuery(Collection ids)
{
CollectionDescriptor cds = getCollectionDescriptor();
QueryByCriteria query = buildPrefetchQuery(ids, cds.getForeignKeyFieldDescriptors(getItemClassDescriptor()));
// check if collection must be ordered
... |
public class class_name {
@Override
public int get(TemporalField field) {
if (field instanceof ChronoField) {
switch ((ChronoField) field) {
case INSTANT_SECONDS:
throw new UnsupportedTemporalTypeException("Invalid field 'InstantSeconds' for get() method, use... | public class class_name {
@Override
public int get(TemporalField field) {
if (field instanceof ChronoField) {
switch ((ChronoField) field) {
case INSTANT_SECONDS:
throw new UnsupportedTemporalTypeException("Invalid field 'InstantSeconds' for get() method, use... |
public class class_name {
public static CRLReason getRevocationReason(X509CRLEntry crlEntry) {
try {
byte[] ext = crlEntry.getExtensionValue("2.5.29.21");
if (ext == null) {
return null;
}
DerValue val = new DerValue(ext);
byte[] data ... | public class class_name {
public static CRLReason getRevocationReason(X509CRLEntry crlEntry) {
try {
byte[] ext = crlEntry.getExtensionValue("2.5.29.21");
if (ext == null) {
return null; // depends on control dependency: [if], data = [none]
}
DerV... |
public class class_name {
@Override
public void endElement(String uri, String localName, String name) throws SAXException {
if ("name".equals(name)) {
final String itemName = this.chars.toString().trim();
if (this.currentTable == null) {
this.currentTable = itemName... | public class class_name {
@Override
public void endElement(String uri, String localName, String name) throws SAXException {
if ("name".equals(name)) {
final String itemName = this.chars.toString().trim();
if (this.currentTable == null) {
this.currentTable = itemName... |
public class class_name {
@SuppressWarnings("unchecked")
private static Map<String, Boolean> getRenderedScriptResources(FacesContext facesContext)
{
Map<String, Boolean> map = (Map<String, Boolean>) facesContext.getAttributes().get(
RENDERED_SCRIPT_RESOURCES_SET);
if (map == nul... | public class class_name {
@SuppressWarnings("unchecked")
private static Map<String, Boolean> getRenderedScriptResources(FacesContext facesContext)
{
Map<String, Boolean> map = (Map<String, Boolean>) facesContext.getAttributes().get(
RENDERED_SCRIPT_RESOURCES_SET);
if (map == nul... |
public class class_name {
public void setAlias(String alias)
{
if (alias == null || alias.trim().equals(""))
{
m_alias = null;
}
else
{
m_alias = alias;
}
// propagate to SelectionCriteria,not to Criteria
for (int i = 0; i < m_criteria.size(); i++)
{
if (!(m_criteria.elementA... | public class class_name {
public void setAlias(String alias)
{
if (alias == null || alias.trim().equals(""))
{
m_alias = null;
// depends on control dependency: [if], data = [none]
}
else
{
m_alias = alias;
// depends on control dependency: [if], data = [none]
}
// propagate to Selecti... |
public class class_name {
public int getColumnIndex(final String name) {
for (int i = 0; i < this.columnsValues.size(); i++) {
final JKTableColumnValue value = this.columnsValues.get(i);
if (value.getTableColumn().getName().toLowerCase().equals(name.toLowerCase())) {
return i;
}
}
return -1;
... | public class class_name {
public int getColumnIndex(final String name) {
for (int i = 0; i < this.columnsValues.size(); i++) {
final JKTableColumnValue value = this.columnsValues.get(i);
if (value.getTableColumn().getName().toLowerCase().equals(name.toLowerCase())) {
return i;
// depends on control de... |
public class class_name {
public void runIntoJTP(final JRebirthRunnable runnable) {
if (getFacade().executorService().checkAvailability(runnable.priority())) {
getFacade().executorService().execute(runnable);
LOGGER.log(JTP_QUEUED, runnable.toString());
} else {
get... | public class class_name {
public void runIntoJTP(final JRebirthRunnable runnable) {
if (getFacade().executorService().checkAvailability(runnable.priority())) {
getFacade().executorService().execute(runnable); // depends on control dependency: [if], data = [none]
LOGGER.log(JTP_QUEUED, ... |
public class class_name {
public void setAttributes (Attributes atts)
{
int length = atts.getLength ();
super.setAttributes (atts);
declared = new boolean [length];
specified = new boolean [length];
if (atts instanceof Attributes2) {
Attributes2 a2 = (Attributes2) atts;
for... | public class class_name {
public void setAttributes (Attributes atts)
{
int length = atts.getLength ();
super.setAttributes (atts);
declared = new boolean [length];
specified = new boolean [length];
if (atts instanceof Attributes2) {
Attributes2 a2 = (Attributes2) atts;
for... |
public class class_name {
@Override
public boolean showCarbon(IAtom atom, IAtomContainer container, RendererModel model) {
Integer massNumber = atom.getMassNumber();
if (massNumber != null) {
try {
Integer expectedMassNumber = Isotopes.getInstance().getMajorIsotope(atom... | public class class_name {
@Override
public boolean showCarbon(IAtom atom, IAtomContainer container, RendererModel model) {
Integer massNumber = atom.getMassNumber();
if (massNumber != null) {
try {
Integer expectedMassNumber = Isotopes.getInstance().getMajorIsotope(atom... |
public class class_name {
private <T> void renderSoapHeader(final Marshallable<T> marshallable, final Map<String, String> context, T xmlContext) {
try {
final Marshaller marshaller = jaxbContext.createMarshaller();
marshallable.marshal(marshaller, TpicMap.wrap(context), xmlContext);
} catch (JAXBException e)... | public class class_name {
private <T> void renderSoapHeader(final Marshallable<T> marshallable, final Map<String, String> context, T xmlContext) {
try {
final Marshaller marshaller = jaxbContext.createMarshaller();
marshallable.marshal(marshaller, TpicMap.wrap(context), xmlContext); // depends on control depen... |
public class class_name {
private static void convertVals(final Object[] convertedVals,
final Set<ReferenceEqualityKey<Object>> visitedOnPath,
final Set<ReferenceEqualityKey<Object>> standardObjectVisited, final ClassFieldCache classFieldCache,
final Map<ReferenceEqualityKey<Object>... | public class class_name {
private static void convertVals(final Object[] convertedVals,
final Set<ReferenceEqualityKey<Object>> visitedOnPath,
final Set<ReferenceEqualityKey<Object>> standardObjectVisited, final ClassFieldCache classFieldCache,
final Map<ReferenceEqualityKey<Object>... |
public class class_name {
public static void writeState(String fname) {
try {
persData.store(new FileOutputStream(fname), Calendar.getInstance().getTime().toString());
} catch (FileNotFoundException e1) {
e1.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
} } | public class class_name {
public static void writeState(String fname) {
try {
persData.store(new FileOutputStream(fname), Calendar.getInstance().getTime().toString()); // depends on control dependency: [try], data = [none]
} catch (FileNotFoundException e1) {
e1.printStackTrace();
} catch (IOEx... |
public class class_name {
public AuthorizationHeader createAuthorizationHeader() throws HawkException {
String hmac = this.generateHmac();
AuthorizationBuilder headerBuilder = AuthorizationHeader
.authorization().ts(ts).nonce(nonce).id(getId()).mac(hmac);
if (hasExt()) {
headerBuilder.ext(getExt());
}... | public class class_name {
public AuthorizationHeader createAuthorizationHeader() throws HawkException {
String hmac = this.generateHmac();
AuthorizationBuilder headerBuilder = AuthorizationHeader
.authorization().ts(ts).nonce(nonce).id(getId()).mac(hmac);
if (hasExt()) {
headerBuilder.ext(getExt());
}... |
public class class_name {
protected Method findGetter(Object data, String property) throws IntrospectionException {
Class<?> clazz = getClass(data);
String key = clazz.getName() + ":" + property;
Method method = methods.get(key);
if (method == null) {
Method newMethod = null;
PropertyDescri... | public class class_name {
protected Method findGetter(Object data, String property) throws IntrospectionException {
Class<?> clazz = getClass(data);
String key = clazz.getName() + ":" + property;
Method method = methods.get(key);
if (method == null) {
Method newMethod = null;
PropertyDescri... |
public class class_name {
public void addNextValue(Object val) {
String valCountStr = val.toString();
int pos = valCountStr.lastIndexOf("\t");
String valStr = valCountStr;
String countStr = "1";
if (pos >= 0) {
valStr = valCountStr.substring(0, pos);
countStr = valCountStr.substring(pos... | public class class_name {
public void addNextValue(Object val) {
String valCountStr = val.toString();
int pos = valCountStr.lastIndexOf("\t");
String valStr = valCountStr;
String countStr = "1";
if (pos >= 0) {
valStr = valCountStr.substring(0, pos); // depends on control dependency: [if], da... |
public class class_name {
public static ArrayList<String> listBucketNames(Map<String, Object> m) {
ArrayList<String> acc = new ArrayList<String>();
for(Map.Entry<String, Object> entry : m.entrySet()) {
if( isValidBucket(entry.getValue()) ) {
acc.add(entry.getKey());
... | public class class_name {
public static ArrayList<String> listBucketNames(Map<String, Object> m) {
ArrayList<String> acc = new ArrayList<String>();
for(Map.Entry<String, Object> entry : m.entrySet()) {
if( isValidBucket(entry.getValue()) ) {
acc.add(entry.getKey()); // depen... |
public class class_name {
private String[] parseClassNames(String propertyName) {
String hands = getProperty(propertyName);
if (hands == null) {
return new String[0];
}
hands = hands.trim();
int ix = 0;
Vector<String> result = new Vector<>();
while (i... | public class class_name {
private String[] parseClassNames(String propertyName) {
String hands = getProperty(propertyName);
if (hands == null) {
return new String[0]; // depends on control dependency: [if], data = [none]
}
hands = hands.trim();
int ix = 0;
Ve... |
public class class_name {
private static void splitRowsOnGaps(Row row, final SDocumentGraph graph,
long startTokenIndex, long endTokenIndex)
{
ListIterator<GridEvent> itEvents = row.getEvents().listIterator();
while (itEvents.hasNext())
{
GridEvent event = itEvents.next();
int lastTokenI... | public class class_name {
private static void splitRowsOnGaps(Row row, final SDocumentGraph graph,
long startTokenIndex, long endTokenIndex)
{
ListIterator<GridEvent> itEvents = row.getEvents().listIterator();
while (itEvents.hasNext())
{
GridEvent event = itEvents.next();
int lastTokenI... |
public class class_name {
private void extractXPathValidateExpressions(
Element validateElement, Map<String, Object> validateXpathExpressions) {
//check for xpath validation - old style with direct attribute
String pathExpression = validateElement.getAttribute("path");
if (StringUti... | public class class_name {
private void extractXPathValidateExpressions(
Element validateElement, Map<String, Object> validateXpathExpressions) {
//check for xpath validation - old style with direct attribute
String pathExpression = validateElement.getAttribute("path");
if (StringUti... |
public class class_name {
public void insertRule(final String rule, final int index) throws DOMException {
try {
final CSSOMParser parser = new CSSOMParser();
parser.setParentStyleSheet(this);
parser.setErrorHandler(ThrowCssExceptionErrorHandler.INSTANCE);
final ... | public class class_name {
public void insertRule(final String rule, final int index) throws DOMException {
try {
final CSSOMParser parser = new CSSOMParser();
parser.setParentStyleSheet(this);
parser.setErrorHandler(ThrowCssExceptionErrorHandler.INSTANCE);
final ... |
public class class_name {
@Override
public void changeTriggerState(String groupName, String jobName, final String triggerGroup, final String triggerName) throws SchedulerException {
if (!config.isChangetTriggerStateAllowed()) {
LOGGER.warn("not allowed to change any trigger state");
return;
}
Trigge... | public class class_name {
@Override
public void changeTriggerState(String groupName, String jobName, final String triggerGroup, final String triggerName) throws SchedulerException {
if (!config.isChangetTriggerStateAllowed()) {
LOGGER.warn("not allowed to change any trigger state");
return;
}
Trigge... |
public class class_name {
static int getAndCheckPreLongs(final Memory mem) {
final long cap = mem.getCapacity();
if (cap < 8) { throwNotBigEnough(cap, 8); }
final int preLongs = mem.getByte(0) & 0x3F;
final int required = Math.max(preLongs << 3, 8);
if (cap < required) { throwNotBigEnough(cap, requ... | public class class_name {
static int getAndCheckPreLongs(final Memory mem) {
final long cap = mem.getCapacity();
if (cap < 8) { throwNotBigEnough(cap, 8); } // depends on control dependency: [if], data = [(cap]
final int preLongs = mem.getByte(0) & 0x3F;
final int required = Math.max(preLongs << 3, 8);... |
public class class_name {
public static PricingService getPricingService() {
if (pricingService == null) {
try {
Class clazz = Class.forName(PRICING_SERVICE);
pricingService = (PricingService) clazz.newInstance();
} catch (ClassNotFoundException | InstantiationException | IllegalAccessE... | public class class_name {
public static PricingService getPricingService() {
if (pricingService == null) {
try {
Class clazz = Class.forName(PRICING_SERVICE);
pricingService = (PricingService) clazz.newInstance();
} catch (ClassNotFoundException | InstantiationException | IllegalAccessE... |
public class class_name {
public static String unresolvedHostToNormalizedString(String host) {
// Return loopback interface address if host is null
// This represents the behavior of {@code InetAddress.getByName } and RFC 3330
if (host == null) {
host = InetAddress.getLoopbackAddress().getHostAddress();
} e... | public class class_name {
public static String unresolvedHostToNormalizedString(String host) {
// Return loopback interface address if host is null
// This represents the behavior of {@code InetAddress.getByName } and RFC 3330
if (host == null) {
host = InetAddress.getLoopbackAddress().getHostAddress(); // de... |
public class class_name {
public static StringPool readStringPool(ByteBuffer buffer, StringPoolHeader stringPoolHeader) {
long beginPos = buffer.position();
int[] offsets = new int[stringPoolHeader.getStringCount()];
// read strings offset
if (stringPoolHeader.getStringCount() > 0) {
... | public class class_name {
public static StringPool readStringPool(ByteBuffer buffer, StringPoolHeader stringPoolHeader) {
long beginPos = buffer.position();
int[] offsets = new int[stringPoolHeader.getStringCount()];
// read strings offset
if (stringPoolHeader.getStringCount() > 0) {
... |
public class class_name {
private void setRowAttribute(AttributeSet attributes, int r)
{
if (r >= rowAttributes.size())
{
for (int i = rowAttributes.size(); i <= r; i++)
{
rowAttributes.add(null);
}
}
rowAttributes.set(r, attribut... | public class class_name {
private void setRowAttribute(AttributeSet attributes, int r)
{
if (r >= rowAttributes.size())
{
for (int i = rowAttributes.size(); i <= r; i++)
{
rowAttributes.add(null); // depends on control dependency: [for], data = [none]
... |
public class class_name {
@XmlTransient
public static List<Role> convertToObjects(String roleListingParam)
{
if(roleListingParam == null || roleListingParam.trim().isEmpty())
{
return null;
}
String[] listOfRoles = roleListingParam.split(UtilGlobal.REG_EX_COMMA);
... | public class class_name {
@XmlTransient
public static List<Role> convertToObjects(String roleListingParam)
{
if(roleListingParam == null || roleListingParam.trim().isEmpty())
{
return null; // depends on control dependency: [if], data = [none]
}
String[] listOfRoles... |
public class class_name {
String scanForDriver(String url) {
try {
// already registered
Driver driver;
if ((driver = findRegisteredDriver(url)) != null) {
return driver.getClass().getCanonicalName();
}
scanDrivers();
if ((driver = findRegisteredDriver(url)) != null) {... | public class class_name {
String scanForDriver(String url) {
try {
// already registered
Driver driver;
if ((driver = findRegisteredDriver(url)) != null) {
return driver.getClass().getCanonicalName(); // depends on control dependency: [if], data = [none]
}
scanDrivers(); // d... |
public class class_name {
public boolean isSet(String propName) {
if (propName.equals("nickName")) {
return isSetNickName();
}
if (propName.equals("street")) {
return isSetStreet();
}
if (propName.equals("city")) {
return isSetCity();
... | public class class_name {
public boolean isSet(String propName) {
if (propName.equals("nickName")) {
return isSetNickName(); // depends on control dependency: [if], data = [none]
}
if (propName.equals("street")) {
return isSetStreet(); // depends on control dependency: [... |
public class class_name {
protected boolean excluded(String url) {
for (final Pattern urlPattern : this.excludedUrls) {
final Matcher matcher = urlPattern.matcher(url);
if (matcher.matches()) {
if (this.logger.isDebugEnabled()) {
this.logger.debug("Ex... | public class class_name {
protected boolean excluded(String url) {
for (final Pattern urlPattern : this.excludedUrls) {
final Matcher matcher = urlPattern.matcher(url);
if (matcher.matches()) {
if (this.logger.isDebugEnabled()) {
this.logger.debug("Ex... |
public class class_name {
public void add(double value, double weight)
{
writeLock.lock();
try
{
average.addDeg(value, weight);
double fast = average.averageDeg();
stats.accept(fast);
check();
}
finally
{
... | public class class_name {
public void add(double value, double weight)
{
writeLock.lock();
try
{
average.addDeg(value, weight);
// depends on control dependency: [try], data = [none]
double fast = average.averageDeg();
stats.accept(fast);
// depen... |
public class class_name {
private boolean checkDeadLoop(Object value)
{
int n = 0;
Object obj = value;
while (obj != null)
{
Record rec = objRecordMap.get(obj);
if (rec != null && rec.exp != null)
{
obj = rec.exp.getTarget();
}
else
{
break;
}
if (obj != null && (obj.getClas... | public class class_name {
private boolean checkDeadLoop(Object value)
{
int n = 0;
Object obj = value;
while (obj != null)
{
Record rec = objRecordMap.get(obj);
if (rec != null && rec.exp != null)
{
obj = rec.exp.getTarget(); // depends on control dependency: [if], data = [none]
}
else
... |
public class class_name {
@Nonnull
private BallColor calculateBallColor() {
if (owner instanceof TemplateDrivenMultiBranchProject
&& ((TemplateDrivenMultiBranchProject) owner).isDisabled()) {
return BallColor.DISABLED;
}
BallColor c = BallColor.DISABLED;
... | public class class_name {
@Nonnull
private BallColor calculateBallColor() {
if (owner instanceof TemplateDrivenMultiBranchProject
&& ((TemplateDrivenMultiBranchProject) owner).isDisabled()) {
return BallColor.DISABLED; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Observable<ServiceResponse<Page<ResourceMetricDefinitionInner>>> listWorkerPoolInstanceMetricDefinitionsNextWithServiceResponseAsync(final String nextPageLink) {
return listWorkerPoolInstanceMetricDefinitionsNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<Ser... | public class class_name {
public Observable<ServiceResponse<Page<ResourceMetricDefinitionInner>>> listWorkerPoolInstanceMetricDefinitionsNextWithServiceResponseAsync(final String nextPageLink) {
return listWorkerPoolInstanceMetricDefinitionsNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<Ser... |
public class class_name {
public static Selector selectAs( final String propName, final String alias,
final Function transform) {
return new Selector( propName, alias ) {
@Override
public void handleRow( int index, Map<String, Object> row,
... | public class class_name {
public static Selector selectAs( final String propName, final String alias,
final Function transform) {
return new Selector( propName, alias ) {
@Override
public void handleRow( int index, Map<String, Object> row,
... |
public class class_name {
public static void setModel(IRubyObject p, IRubyObject input, IRubyObject model) {
Ruby runtime = p.getRuntime();
Parser parser = (Parser)p.dataGetStructChecked();
parser.handler(new RubyLoadHandler(runtime, ((YAMLExtra)runtime.getModule("YAML").dataGetStruct())));
... | public class class_name {
public static void setModel(IRubyObject p, IRubyObject input, IRubyObject model) {
Ruby runtime = p.getRuntime();
Parser parser = (Parser)p.dataGetStructChecked();
parser.handler(new RubyLoadHandler(runtime, ((YAMLExtra)runtime.getModule("YAML").dataGetStruct())));
... |
public class class_name {
public void setVal(String val) {
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(val)) {
m_value = val.trim();
} else {
m_value = val;
}
} } | public class class_name {
public void setVal(String val) {
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(val)) {
m_value = val.trim(); // depends on control dependency: [if], data = [none]
} else {
m_value = val; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private void waitForInstances(String flowletId, int expectedInstances) throws InterruptedException, TimeoutException {
int numRunningFlowlets = getNumberOfProvisionedInstances(flowletId);
int secondsWaited = 0;
while (numRunningFlowlets != expectedInstances) {
LOG.debug("wai... | public class class_name {
private void waitForInstances(String flowletId, int expectedInstances) throws InterruptedException, TimeoutException {
int numRunningFlowlets = getNumberOfProvisionedInstances(flowletId);
int secondsWaited = 0;
while (numRunningFlowlets != expectedInstances) {
LOG.debug("wai... |
public class class_name {
void initializeFromRectIsotropic(Envelope2D src, Envelope2D dest) {
if (src.isEmpty() || dest.isEmpty() || 0 == src.getWidth()
|| 0 == src.getHeight())
setZero();
else {
yx = 0;
xy = 0;
xx = dest.getWidth() / src.getWidth();
yy = dest.getHeight() / src.getHeight();
... | public class class_name {
void initializeFromRectIsotropic(Envelope2D src, Envelope2D dest) {
if (src.isEmpty() || dest.isEmpty() || 0 == src.getWidth()
|| 0 == src.getHeight())
setZero();
else {
yx = 0; // depends on control dependency: [if], data = [none]
xy = 0; // depends on control dependency: [... |
public class class_name {
public StyleSet setBackgroundColor(IndexedColors backgroundColor, boolean withHeadCell) {
if (withHeadCell) {
StyleUtil.setColor(this.headCellStyle, backgroundColor, FillPatternType.SOLID_FOREGROUND);
}
StyleUtil.setColor(this.cellStyle, backgroundColor, FillPatternType.SOLID_FOR... | public class class_name {
public StyleSet setBackgroundColor(IndexedColors backgroundColor, boolean withHeadCell) {
if (withHeadCell) {
StyleUtil.setColor(this.headCellStyle, backgroundColor, FillPatternType.SOLID_FOREGROUND);
// depends on control dependency: [if], data = [none]
}
StyleUtil.setColor(this... |
public class class_name {
public void addControls( final Model model )
{
final URIBuilder pagedURL;
try {
pagedURL = new URIBuilder( fragmentURL );
}
catch ( URISyntaxException e ) {
throw new IllegalArgumentException( e );
}
final Resource f... | public class class_name {
public void addControls( final Model model )
{
final URIBuilder pagedURL;
try {
pagedURL = new URIBuilder( fragmentURL ); // depends on control dependency: [try], data = [none]
}
catch ( URISyntaxException e ) {
throw new IllegalArgu... |
public class class_name {
public void introspectPathParams() throws DeploymentException {
//Section 4.3 JSR 356 - The allowed types for the @PathParam parameters are String, any Java primitive type, or boxed version thereof.
Class<?>[] pathParamTypesAllowed = { String.class, char.class, Character.clas... | public class class_name {
public void introspectPathParams() throws DeploymentException {
//Section 4.3 JSR 356 - The allowed types for the @PathParam parameters are String, any Java primitive type, or boxed version thereof.
Class<?>[] pathParamTypesAllowed = { String.class, char.class, Character.clas... |
public class class_name {
@Override
public String format(LogRecord record) {
String msg = record.getMessage();
if(msg.length() > 0) {
if (record instanceof ProgressLogRecord) {
return msg;
}
if(msg.endsWith(OutputStreamLogger.NEWLINE)) {
return msg;
}
}
return ... | public class class_name {
@Override
public String format(LogRecord record) {
String msg = record.getMessage();
if(msg.length() > 0) {
if (record instanceof ProgressLogRecord) {
return msg; // depends on control dependency: [if], data = [none]
}
if(msg.endsWith(OutputStreamLogger.NEW... |
public class class_name {
static Matcher convertEmptyCharClassToFalse(Matcher matcher) {
if (matcher instanceof CharClassMatcher) {
return matcher.<CharClassMatcher>as().set().isEmpty()
? FalseMatcher.INSTANCE
: matcher;
}
return matcher;
} } | public class class_name {
static Matcher convertEmptyCharClassToFalse(Matcher matcher) {
if (matcher instanceof CharClassMatcher) {
return matcher.<CharClassMatcher>as().set().isEmpty()
? FalseMatcher.INSTANCE
: matcher; // depends on control dependency: [if], data = [none]
}
retu... |
public class class_name {
private List<Triplet<URI, URI, Object>> parseSpoUpdates(JsonElement jsonSpoEntries) {
if (jsonSpoEntries == null || jsonSpoEntries.isJsonNull()) {
return ImmutableList.of();
}
ImmutableList.Builder<Triplet<URI, URI, Object>> result = ImmutableList.builder... | public class class_name {
private List<Triplet<URI, URI, Object>> parseSpoUpdates(JsonElement jsonSpoEntries) {
if (jsonSpoEntries == null || jsonSpoEntries.isJsonNull()) {
return ImmutableList.of(); // depends on control dependency: [if], data = [none]
}
ImmutableList.Builder<Tri... |
public class class_name {
public static <T> List<List<T>> divideAsList(List<T> coll) {
List<List<T>> result = new ArrayList<>();
for (T t : coll) {
List<T> list = new ArrayList<>();
list.add(t);
result.add(list);
}
return result;
} } | public class class_name {
public static <T> List<List<T>> divideAsList(List<T> coll) {
List<List<T>> result = new ArrayList<>();
for (T t : coll) {
List<T> list = new ArrayList<>();
list.add(t);
// depends on control dependency: [for], data = [t]
result.add(list);
// depends on control dependency: [... |
public class class_name {
public static void runIntoJTPSync(final JRebirthRunnable runnable, final long... timeout) {
final SyncRunnable sync = new SyncRunnable(runnable);
if (JRebirth.isJTPSlot()) {
// We are into a JTP slot so just run it synchronously
sync.run();
... | public class class_name {
public static void runIntoJTPSync(final JRebirthRunnable runnable, final long... timeout) {
final SyncRunnable sync = new SyncRunnable(runnable);
if (JRebirth.isJTPSlot()) {
// We are into a JTP slot so just run it synchronously
sync.run(); // depends ... |
public class class_name {
protected void parseColumnsAndConstraints( DdlTokenStream tokens,
AstNode tableNode ) throws ParsingException {
assert tokens != null;
assert tableNode != null;
if (!tokens.matches(L_PAREN)) {
return;
... | public class class_name {
protected void parseColumnsAndConstraints( DdlTokenStream tokens,
AstNode tableNode ) throws ParsingException {
assert tokens != null;
assert tableNode != null;
if (!tokens.matches(L_PAREN)) {
return;
... |
public class class_name {
@Override
public void renderTile(Graphic g, MapTile map, Tile tile, int x, int y)
{
final int tx = tile.getInTileX();
final int ty = tile.getInTileY();
final Tile fogTile = mapFogged.getTile(tx, ty);
if (fogMap && fogTile != null && fogTile.getNumber()... | public class class_name {
@Override
public void renderTile(Graphic g, MapTile map, Tile tile, int x, int y)
{
final int tx = tile.getInTileX();
final int ty = tile.getInTileY();
final Tile fogTile = mapFogged.getTile(tx, ty);
if (fogMap && fogTile != null && fogTile.getNumber()... |
public class class_name {
public boolean isInvite() {
if (message == null) {
return false;
}
return (((Request) message).getMethod().equals(Request.INVITE));
} } | public class class_name {
public boolean isInvite() {
if (message == null) {
return false; // depends on control dependency: [if], data = [none]
}
return (((Request) message).getMethod().equals(Request.INVITE));
} } |
public class class_name {
public Version getDetailedVersion(String version) {
prepareDetailedVersions();
if (detailedVersions.containsKey(version)) {
return detailedVersions.get(version);
}
return null;
} } | public class class_name {
public Version getDetailedVersion(String version) {
prepareDetailedVersions();
if (detailedVersions.containsKey(version)) {
return detailedVersions.get(version); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public ListProvisionedProductPlansResult withProvisionedProductPlans(ProvisionedProductPlanSummary... provisionedProductPlans) {
if (this.provisionedProductPlans == null) {
setProvisionedProductPlans(new java.util.ArrayList<ProvisionedProductPlanSummary>(provisionedProduct... | public class class_name {
public ListProvisionedProductPlansResult withProvisionedProductPlans(ProvisionedProductPlanSummary... provisionedProductPlans) {
if (this.provisionedProductPlans == null) {
setProvisionedProductPlans(new java.util.ArrayList<ProvisionedProductPlanSummary>(provisionedProduct... |
public class class_name {
private SslContext getSslContext() {
final SslContext sslCtx;
if (clientConfig.isEnableTls()) {
try {
SslContextBuilder clientSslCtxBuilder = SslContextBuilder.forClient();
if (Strings.isNullOrEmpty(clientConfig.getTrustStore())) {
... | public class class_name {
private SslContext getSslContext() {
final SslContext sslCtx;
if (clientConfig.isEnableTls()) {
try {
SslContextBuilder clientSslCtxBuilder = SslContextBuilder.forClient();
if (Strings.isNullOrEmpty(clientConfig.getTrustStore())) {
... |
public class class_name {
@Weight(value = Weight.Unit.VARIABLE, comment = "Depends on the current call stack depth")
public static void checkPoints() {
final long time = System.currentTimeMillis();
final int stackDepth = ThreadUtils.stackDepth();
final List<TimeData> list = REGISTRY.get();
final Ite... | public class class_name {
@Weight(value = Weight.Unit.VARIABLE, comment = "Depends on the current call stack depth")
public static void checkPoints() {
final long time = System.currentTimeMillis();
final int stackDepth = ThreadUtils.stackDepth();
final List<TimeData> list = REGISTRY.get();
final Ite... |
public class class_name {
public Type wildLowerBound(Type t) {
if (t.hasTag(WILDCARD)) {
WildcardType w = (WildcardType) t;
return w.isExtendsBound() ? syms.botType : wildLowerBound(w.type);
}
else return t;
} } | public class class_name {
public Type wildLowerBound(Type t) {
if (t.hasTag(WILDCARD)) {
WildcardType w = (WildcardType) t;
return w.isExtendsBound() ? syms.botType : wildLowerBound(w.type); // depends on control dependency: [if], data = [none]
}
else return t;
} } |
public class class_name {
public void setAllowSelection(boolean allowSelection) {
if (this.allowSelection == allowSelection) {
return;
}
this.allowSelection = allowSelection;
setCaretInternal();
firePropertyChange("allowSelection", !allowSelection, allowSelection);
... | public class class_name {
public void setAllowSelection(boolean allowSelection) {
if (this.allowSelection == allowSelection) {
return; // depends on control dependency: [if], data = [none]
}
this.allowSelection = allowSelection;
setCaretInternal();
firePropertyChange... |
public class class_name {
public static void initialiseAcceptListenerFactory(AcceptListenerFactory _acceptListenerFactory)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initialiseAcceptListenerFactory", _acceptListenerFactory);
Class clientImpl = i... | public class class_name {
public static void initialiseAcceptListenerFactory(AcceptListenerFactory _acceptListenerFactory)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initialiseAcceptListenerFactory", _acceptListenerFactory);
Class clientImpl = i... |
public class class_name {
public java.util.List<ParameterStringFilter> getParameterFilters() {
if (parameterFilters == null) {
parameterFilters = new com.amazonaws.internal.SdkInternalList<ParameterStringFilter>();
}
return parameterFilters;
} } | public class class_name {
public java.util.List<ParameterStringFilter> getParameterFilters() {
if (parameterFilters == null) {
parameterFilters = new com.amazonaws.internal.SdkInternalList<ParameterStringFilter>(); // depends on control dependency: [if], data = [none]
}
return param... |
public class class_name {
private final boolean checkRef(ComponentTag tag) {
boolean ok = false;
if (!tag.getName().equals("a")) {
IValueMap attributes = tag.getAttributes();
String ref = attributes.getString("href");
if (ref == null) {
ref = attributes.getString("src");
}
if ((ref != null)
... | public class class_name {
private final boolean checkRef(ComponentTag tag) {
boolean ok = false;
if (!tag.getName().equals("a")) {
IValueMap attributes = tag.getAttributes();
String ref = attributes.getString("href");
if (ref == null) {
ref = attributes.getString("src"); // depends on control dependen... |
public class class_name {
public String convert(Long theMoney, Long theKopeiki) {
if (theMoney == null) {
throw new IllegalArgumentException("theMoney is null");
}
if (theKopeiki == null) {
throw new IllegalArgumentException("theKopeiki is null");
}
Strin... | public class class_name {
public String convert(Long theMoney, Long theKopeiki) {
if (theMoney == null) {
throw new IllegalArgumentException("theMoney is null");
}
if (theKopeiki == null) {
throw new IllegalArgumentException("theKopeiki is null");
}
Strin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.