code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public ISynchronizationPoint<IOException> write(char[] chars, int offset, int length) {
ISynchronizationPoint<IOException> last = lastWrite;
if (length == 0) return last;
if (last.isUnblocked()) {
lastWrite = stream.writeAsync(chars, offset, length);
return lastWrite;
}
... | public class class_name {
public ISynchronizationPoint<IOException> write(char[] chars, int offset, int length) {
ISynchronizationPoint<IOException> last = lastWrite;
if (length == 0) return last;
if (last.isUnblocked()) {
lastWrite = stream.writeAsync(chars, offset, length);
// depends on control depend... |
public class class_name {
public boolean createDictionaryEntry(String key, long count, SuggestionStage staging) {
if (count <= 0) {
if (this.countThreshold > 0) {
return false; // no point doing anything if count is zero, as it can't change anything
}
count = 0;
}
long countPrevio... | public class class_name {
public boolean createDictionaryEntry(String key, long count, SuggestionStage staging) {
if (count <= 0) {
if (this.countThreshold > 0) {
return false; // no point doing anything if count is zero, as it can't change anything // depends on control dependency: [if], data = [non... |
public class class_name {
@Override
protected List<Runner> getChildren() {
// one runner for each parameter
List<Runner> runners = super.getChildren();
List<Runner> proxyRunners = new ArrayList<>(runners.size());
for (Runner runner : runners) {
// if the next line fails then the internal of Par... | public class class_name {
@Override
protected List<Runner> getChildren() {
// one runner for each parameter
List<Runner> runners = super.getChildren();
List<Runner> proxyRunners = new ArrayList<>(runners.size());
for (Runner runner : runners) {
// if the next line fails then the internal of Par... |
public class class_name {
public boolean canAcceptChild() {
if (maxChildren == 0) {
rejectReason = getDisplayName() + " does not accept any children.";
} else if (getChildCount() >= maxChildren) {
rejectReason = "Maximum child count exceeded for " + getDisplayName() + ".";
... | public class class_name {
public boolean canAcceptChild() {
if (maxChildren == 0) {
rejectReason = getDisplayName() + " does not accept any children."; // depends on control dependency: [if], data = [none]
} else if (getChildCount() >= maxChildren) {
rejectReason = "Maximum chil... |
public class class_name {
@Override
public ClassLoader getClassLoader() {
ClassLoader classLoader = this.initialClass.getClassLoader();
if (classLoader == null) {
classLoader = application.getClassLoader();
}
return classLoader;
} } | public class class_name {
@Override
public ClassLoader getClassLoader() {
ClassLoader classLoader = this.initialClass.getClassLoader();
if (classLoader == null) {
classLoader = application.getClassLoader(); // depends on control dependency: [if], data = [none]
}
return c... |
public class class_name {
@Override
public void stopped() {
// Clear endpoints
writeLock.lock();
try {
listeners.clear();
} finally {
// Clear caches
emitterCache.clear();
broadcasterCache.clear();
localBroadcasterCache.clear();
writeLock.unlock();
}
} } | public class class_name {
@Override
public void stopped() {
// Clear endpoints
writeLock.lock();
try {
listeners.clear(); // depends on control dependency: [try], data = [none]
} finally {
// Clear caches
emitterCache.clear();
broadcasterCache.clear();
localBroadcasterCache.clear();
write... |
public class class_name {
public void sync(List<Dml> dmls) {
List<Dml> dmlList = new ArrayList<>();
for (Dml dml : dmls) {
String destination = StringUtils.trimToEmpty(dml.getDestination());
String database = dml.getDatabase();
MirrorDbConfig mirrorDbConfig = mirrorD... | public class class_name {
public void sync(List<Dml> dmls) {
List<Dml> dmlList = new ArrayList<>();
for (Dml dml : dmls) {
String destination = StringUtils.trimToEmpty(dml.getDestination());
String database = dml.getDatabase();
MirrorDbConfig mirrorDbConfig = mirrorD... |
public class class_name {
protected void setError(int newPosition, String error,
boolean currentExisting) {
if (!currentExisting) {
newBasicValueSumList[newPosition] = operations.getZero1();
newBasicValueNList[newPosition] = 0;
}
newErrorNumber[newPosition]++;
if (newErrorList[newPosi... | public class class_name {
protected void setError(int newPosition, String error,
boolean currentExisting) {
if (!currentExisting) {
newBasicValueSumList[newPosition] = operations.getZero1(); // depends on control dependency: [if], data = [none]
newBasicValueNList[newPosition] = 0; // depends on c... |
public class class_name {
public void deleteTemplate(File templateFile) {
ThymeLeafTemplateImplementation template = getTemplateByFile(templateFile);
if (template != null) {
deleteTemplate(template);
}
} } | public class class_name {
public void deleteTemplate(File templateFile) {
ThymeLeafTemplateImplementation template = getTemplateByFile(templateFile);
if (template != null) {
deleteTemplate(template); // depends on control dependency: [if], data = [(template]
}
} } |
public class class_name {
private void writeRequestJoinResponse(
int hostId,
JoinAcceptor.PleaDecision decision,
SocketChannel socket,
MessagingChannel messagingChannel) throws Exception {
JSONObject jsObj = new JSONObject();
jsObj.put(SocketJoiner.ACCE... | public class class_name {
private void writeRequestJoinResponse(
int hostId,
JoinAcceptor.PleaDecision decision,
SocketChannel socket,
MessagingChannel messagingChannel) throws Exception {
JSONObject jsObj = new JSONObject();
jsObj.put(SocketJoiner.ACCE... |
public class class_name {
@Nullable
@WorkerThread
private LottieComposition fetchFromCache() {
Pair<FileExtension, InputStream> cacheResult = networkCache.fetch();
if (cacheResult == null) {
return null;
}
FileExtension extension = cacheResult.first;
InputStream inputStream = cacheResult... | public class class_name {
@Nullable
@WorkerThread
private LottieComposition fetchFromCache() {
Pair<FileExtension, InputStream> cacheResult = networkCache.fetch();
if (cacheResult == null) {
return null; // depends on control dependency: [if], data = [none]
}
FileExtension extension = cacheR... |
public class class_name {
@Override
public void finalizeFirstPassE() {
double s = 1. / wsum;
for(int i = 0; i < mean.length; i++) {
mean[i] *= s;
}
} } | public class class_name {
@Override
public void finalizeFirstPassE() {
double s = 1. / wsum;
for(int i = 0; i < mean.length; i++) {
mean[i] *= s; // depends on control dependency: [for], data = [i]
}
} } |
public class class_name {
protected Collection<Asset> getFilteredAssets(Collection<ResourceType> types, Collection<String> productIds, Visibility visibility, Collection<String> productVersions,
boolean unboundedMaxVersion) throws IOException, RequestFailureException {
... | public class class_name {
protected Collection<Asset> getFilteredAssets(Collection<ResourceType> types, Collection<String> productIds, Visibility visibility, Collection<String> productVersions,
boolean unboundedMaxVersion) throws IOException, RequestFailureException {
... |
public class class_name {
public void marshall(HostKeyAttributes hostKeyAttributes, ProtocolMarshaller protocolMarshaller) {
if (hostKeyAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(h... | public class class_name {
public void marshall(HostKeyAttributes hostKeyAttributes, ProtocolMarshaller protocolMarshaller) {
if (hostKeyAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(h... |
public class class_name {
public Date getDataAttrAsDate(String dPath, String dateTimeFormat) {
Lock lock = lockForRead();
try {
return DPathUtils.getDate(dataJson, dPath, dateTimeFormat);
} finally {
lock.unlock();
}
} } | public class class_name {
public Date getDataAttrAsDate(String dPath, String dateTimeFormat) {
Lock lock = lockForRead();
try {
return DPathUtils.getDate(dataJson, dPath, dateTimeFormat); // depends on control dependency: [try], data = [none]
} finally {
lock.unlock();
... |
public class class_name {
protected void processUnit (Object unit)
{
long start = System.nanoTime();
// keep track of the largest queue size we've seen
int queueSize = _evqueue.size();
if (queueSize > _current.maxQueueSize) {
_current.maxQueueSize = queueSize;
}... | public class class_name {
protected void processUnit (Object unit)
{
long start = System.nanoTime();
// keep track of the largest queue size we've seen
int queueSize = _evqueue.size();
if (queueSize > _current.maxQueueSize) {
_current.maxQueueSize = queueSize; // depend... |
public class class_name {
public DescribeClustersRequest withClusters(String... clusters) {
if (this.clusters == null) {
setClusters(new com.amazonaws.internal.SdkInternalList<String>(clusters.length));
}
for (String ele : clusters) {
this.clusters.add(ele);
}
... | public class class_name {
public DescribeClustersRequest withClusters(String... clusters) {
if (this.clusters == null) {
setClusters(new com.amazonaws.internal.SdkInternalList<String>(clusters.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : cluste... |
public class class_name {
public static <T> Map<? extends String, T> toMap(List<Tag<T>> tags) {
ImmutableMap.Builder<String, T> tagsMapBuilder = ImmutableMap.builder();
for (Tag<T> tag : tags) {
tagsMapBuilder.put(tag.getKey(), tag.getValue());
}
return tagsMapBuilder.build();
} } | public class class_name {
public static <T> Map<? extends String, T> toMap(List<Tag<T>> tags) {
ImmutableMap.Builder<String, T> tagsMapBuilder = ImmutableMap.builder();
for (Tag<T> tag : tags) {
tagsMapBuilder.put(tag.getKey(), tag.getValue()); // depends on control dependency: [for], data = [tag]
}
... |
public class class_name {
public List<PathValidator> getValidatorsForPathParam(final PathParameter param)
{
List<PathValidator> result = new ArrayList<PathValidator>();
for (PathValidator pv : pathValidators)
{
if (pv.getIndex() == param.getPosition())
{
result.add(pv... | public class class_name {
public List<PathValidator> getValidatorsForPathParam(final PathParameter param)
{
List<PathValidator> result = new ArrayList<PathValidator>();
for (PathValidator pv : pathValidators)
{
if (pv.getIndex() == param.getPosition())
{
result.add(pv... |
public class class_name {
public static void addFileToZipOutputStream(File file, ZipOutputStream zipOs) throws IOException {
String fileName = file.getName();
try (FileInputStream fos = new FileInputStream(file)) {
ZipEntry zipEntry = new ZipEntry(fileName);
zipEntry.setSize(fil... | public class class_name {
public static void addFileToZipOutputStream(File file, ZipOutputStream zipOs) throws IOException {
String fileName = file.getName();
try (FileInputStream fos = new FileInputStream(file)) {
ZipEntry zipEntry = new ZipEntry(fileName);
zipEntry.setSize(fil... |
public class class_name {
public OIndex<?> createIndex(ODatabaseDocumentInternal database, final String iName, String type,
final OIndexDefinition indexDefinition, final int[] clusterIdsToIndex, OProgressListener progressListener, ODocument metadata,
String algorithm) {
if (database.getTransaction().is... | public class class_name {
public OIndex<?> createIndex(ODatabaseDocumentInternal database, final String iName, String type,
final OIndexDefinition indexDefinition, final int[] clusterIdsToIndex, OProgressListener progressListener, ODocument metadata,
String algorithm) {
if (database.getTransaction().is... |
public class class_name {
public final int read(byte[] dst, int offset, int length) throws IOException
{
if (!is_byte_data()) {
throw new IOException("byte read is not support over character sources");
}
int remaining = length;
while (remaining > 0 && !isEOF()) {
... | public class class_name {
public final int read(byte[] dst, int offset, int length) throws IOException
{
if (!is_byte_data()) {
throw new IOException("byte read is not support over character sources");
}
int remaining = length;
while (remaining > 0 && !isEOF()) {
... |
public class class_name {
public ChannelSpecification withSupportedInputModes(String... supportedInputModes) {
if (this.supportedInputModes == null) {
setSupportedInputModes(new java.util.ArrayList<String>(supportedInputModes.length));
}
for (String ele : supportedInputModes) {
... | public class class_name {
public ChannelSpecification withSupportedInputModes(String... supportedInputModes) {
if (this.supportedInputModes == null) {
setSupportedInputModes(new java.util.ArrayList<String>(supportedInputModes.length)); // depends on control dependency: [if], data = [none]
}... |
public class class_name {
private final void readKerning(FontFileReader in) throws IOException {
// Read kerning
kerningTab = new java.util.HashMap();
ansiKerningTab = new java.util.HashMap();
TTFDirTabEntry dirTab = (TTFDirTabEntry)dirTabs.get("kern");
if (dirTab != null) {
... | public class class_name {
private final void readKerning(FontFileReader in) throws IOException {
// Read kerning
kerningTab = new java.util.HashMap();
ansiKerningTab = new java.util.HashMap();
TTFDirTabEntry dirTab = (TTFDirTabEntry)dirTabs.get("kern");
if (dirTab != null) {
... |
public class class_name {
protected String describe(final Every every, final boolean and) {
String description;
if (every.getPeriod().getValue() > 1) {
description = String.format("%s %s ", bundle.getString(EVERY), nominalValue(every.getPeriod())) + " %p ";
} else {
desc... | public class class_name {
protected String describe(final Every every, final boolean and) {
String description;
if (every.getPeriod().getValue() > 1) {
description = String.format("%s %s ", bundle.getString(EVERY), nominalValue(every.getPeriod())) + " %p "; // depends on control dependency:... |
public class class_name {
List<Action> lookupImplicitAction(ElementPath elementPath, Attributes attributes,
InterpretationContext ec) {
int len = implicitActions.size();
for (int i = 0; i < len; i++) {
ImplicitAction ia = (ImplicitAction) implicitActions.get(i);
if (ia.isApplicable(elementP... | public class class_name {
List<Action> lookupImplicitAction(ElementPath elementPath, Attributes attributes,
InterpretationContext ec) {
int len = implicitActions.size();
for (int i = 0; i < len; i++) {
ImplicitAction ia = (ImplicitAction) implicitActions.get(i);
if (ia.isApplicable(elementP... |
public class class_name {
@Override
public D get()
{
try
{
if (field != null)
{
return (D) field.get(getBase());
}
else
{
return (D) getter.invoke(getBase());
}
}
... | public class class_name {
@Override
public D get()
{
try
{
if (field != null)
{
return (D) field.get(getBase());
// depends on control dependency: [if], data = [none]
}
else
{
return (D) gette... |
public class class_name {
protected final void firePropertyChange(String propertyName,
Object oldValue,
Object newValue) {
PropertyChangeSupport aChangeSupport = this.changeSupport;
if (aChangeSupport == null) {
return;
}
aChangeSupport.firePropertyCh... | public class class_name {
protected final void firePropertyChange(String propertyName,
Object oldValue,
Object newValue) {
PropertyChangeSupport aChangeSupport = this.changeSupport;
if (aChangeSupport == null) {
return; // depends on control dependency: [if], data = ... |
public class class_name {
public static <T> void permutations(List<List<T>> result, List<T> args, int index) {
if (index == args.size() - 2) {
List<T> temp1 = new ArrayList<>(args.size());
temp1.addAll(args);
Collections.swap(temp1, index, index + 1);
result.add(... | public class class_name {
public static <T> void permutations(List<List<T>> result, List<T> args, int index) {
if (index == args.size() - 2) {
List<T> temp1 = new ArrayList<>(args.size());
temp1.addAll(args); // depends on control dependency: [if], data = [none]
Collections.... |
public class class_name {
public static Module loadModule(InputStream in) throws IOException {
Module module;
DataInputStream din;
byte[] xm_header, s3m_header, mod_header, output_buffer;
int frames;
din = new DataInputStream(in);
module = null;
xm_header = new byte[ 60 ];
din.readFully( xm_header )... | public class class_name {
public static Module loadModule(InputStream in) throws IOException {
Module module;
DataInputStream din;
byte[] xm_header, s3m_header, mod_header, output_buffer;
int frames;
din = new DataInputStream(in);
module = null;
xm_header = new byte[ 60 ];
din.readFully( xm_header )... |
public class class_name {
public void addHistory(History history) {
if (disableHistoryWrite) {
return;
}
PreparedStatement statement = null;
try (Connection sqlConnection = sqlService.getConnection()) {
statement = sqlConnection.prepareStatement("INSERT INTO " +... | public class class_name {
public void addHistory(History history) {
if (disableHistoryWrite) {
return; // depends on control dependency: [if], data = [none]
}
PreparedStatement statement = null;
try (Connection sqlConnection = sqlService.getConnection()) {
state... |
public class class_name {
private static Chronology of0(String id) {
Chronology chrono = CHRONOS_BY_ID.get(id);
if (chrono == null) {
chrono = CHRONOS_BY_TYPE.get(id);
}
return chrono;
} } | public class class_name {
private static Chronology of0(String id) {
Chronology chrono = CHRONOS_BY_ID.get(id);
if (chrono == null) {
chrono = CHRONOS_BY_TYPE.get(id); // depends on control dependency: [if], data = [none]
}
return chrono;
} } |
public class class_name {
public static void unZip(File inFile, File unzipDir) throws IOException {
Enumeration<? extends ZipEntry> entries;
ZipFile zipFile = new ZipFile(inFile);
try {
entries = zipFile.entries();
while (entries.hasMoreElements()) {
ZipEntry entry = entries.nextElemen... | public class class_name {
public static void unZip(File inFile, File unzipDir) throws IOException {
Enumeration<? extends ZipEntry> entries;
ZipFile zipFile = new ZipFile(inFile);
try {
entries = zipFile.entries();
while (entries.hasMoreElements()) {
ZipEntry entry = entries.nextElemen... |
public class class_name {
public static String capitalize(final String property) {
final String rest = property.substring(1);
// Funky rule so that names like 'pNAME' will still work.
if (Character.isLowerCase(property.charAt(0)) && (rest.length() > 0) && isUpperCase(rest.charAt(0))) {
... | public class class_name {
public static String capitalize(final String property) {
final String rest = property.substring(1);
// Funky rule so that names like 'pNAME' will still work.
if (Character.isLowerCase(property.charAt(0)) && (rest.length() > 0) && isUpperCase(rest.charAt(0))) {
... |
public class class_name {
public void bindView(final MessageCenterFragment fragment, final MessageCenterRecyclerViewAdapter adapter, final Composer composer) {
title.setText(composer.title);
title.setContentDescription(composer.title);
closeButton.setOnClickListener(guarded(new View.OnClickListener() {
publi... | public class class_name {
public void bindView(final MessageCenterFragment fragment, final MessageCenterRecyclerViewAdapter adapter, final Composer composer) {
title.setText(composer.title);
title.setContentDescription(composer.title);
closeButton.setOnClickListener(guarded(new View.OnClickListener() {
publi... |
public class class_name {
static protected String escapeForRegExp(String s){
String r = s;
if (r != null && r.length() > 0){
for (String c: new String[]{"\\", "|", "&", "?", "*", "+", "{", "}",
"[", "]", "~", ".", "#", "@", "\"", "(", ")", "<", ">",
"^"}){
r = r.replace(c, "\\" + c);
}
... | public class class_name {
static protected String escapeForRegExp(String s){
String r = s;
if (r != null && r.length() > 0){
for (String c: new String[]{"\\", "|", "&", "?", "*", "+", "{", "}",
"[", "]", "~", ".", "#", "@", "\"", "(", ")", "<", ">",
"^"}){
r = r.replace(c, "\\" + c);
// de... |
public class class_name {
public void writeState(FacesContext context,
Object state) throws IOException {
SerializedView view;
if (state instanceof SerializedView) {
view = (SerializedView) state;
}
else {
if (state instanceof Object[]) {
Object[] stateArray = (Obj... | public class class_name {
public void writeState(FacesContext context,
Object state) throws IOException {
SerializedView view;
if (state instanceof SerializedView) {
view = (SerializedView) state;
}
else {
if (state instanceof Object[]) {
Object[] stateArray = (Obj... |
public class class_name {
public void marshall(ConfigRuleComplianceSummaryFilters configRuleComplianceSummaryFilters, ProtocolMarshaller protocolMarshaller) {
if (configRuleComplianceSummaryFilters == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(ConfigRuleComplianceSummaryFilters configRuleComplianceSummaryFilters, ProtocolMarshaller protocolMarshaller) {
if (configRuleComplianceSummaryFilters == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
public List<WorkerSlot> getAvailableSlots() {
List<WorkerSlot> slots = new ArrayList<>();
for (SupervisorDetails supervisor : this.supervisors.values()) {
slots.addAll(this.getAvailableSlots(supervisor));
}
return slots;
} } | public class class_name {
public List<WorkerSlot> getAvailableSlots() {
List<WorkerSlot> slots = new ArrayList<>();
for (SupervisorDetails supervisor : this.supervisors.values()) {
slots.addAll(this.getAvailableSlots(supervisor)); // depends on control dependency: [for], data = [supervisor]... |
public class class_name {
public Set<Role> findRoles(final User user)
{
final Set<Role> result = new HashSet<Role>();
for(final RoleMapping mapping : this.getRoleMappings())
{
final Object source = mapping.getSource();
if((user != null) && user.... | public class class_name {
public Set<Role> findRoles(final User user)
{
final Set<Role> result = new HashSet<Role>();
for(final RoleMapping mapping : this.getRoleMappings())
{
final Object source = mapping.getSource();
if((user != null) && user.... |
public class class_name {
public void addType(final UUID... _uuid)
throws EFapsException
{
final Set<Type> typesTmp = new HashSet<>();
for (final UUID uuid : _uuid) {
typesTmp.add(Type.get(uuid));
}
addType(typesTmp.toArray(new Type[typesTmp.size()]));
} } | public class class_name {
public void addType(final UUID... _uuid)
throws EFapsException
{
final Set<Type> typesTmp = new HashSet<>();
for (final UUID uuid : _uuid) {
typesTmp.add(Type.get(uuid)); // depends on control dependency: [for], data = [uuid]
}
addType(t... |
public class class_name {
private Map<String, String> buildShortNameToFullNameMap(Set<String> classSet) {
Map<String, String> result = new HashMap<>();
for (String className : classSet) {
String shortClassName = getShortClassName(className);
result.put(shortClassName, className)... | public class class_name {
private Map<String, String> buildShortNameToFullNameMap(Set<String> classSet) {
Map<String, String> result = new HashMap<>();
for (String className : classSet) {
String shortClassName = getShortClassName(className);
result.put(shortClassName, className)... |
public class class_name {
public SqlBuilder having(String having) {
if (StrUtil.isNotBlank(having)) {
sql.append(" HAVING ").append(having);
}
return this;
} } | public class class_name {
public SqlBuilder having(String having) {
if (StrUtil.isNotBlank(having)) {
sql.append(" HAVING ").append(having);
// depends on control dependency: [if], data = [none]
}
return this;
} } |
public class class_name {
public static Locale localeFromIcuLocaleId(String localeId) {
// @ == ULOC_KEYWORD_SEPARATOR_UNICODE (uloc.h).
final int extensionsIndex = localeId.indexOf('@');
Map<Character, String> extensionsMap = Collections.EMPTY_MAP;
Map<String, String> unicodeKeywordsMap = Collections... | public class class_name {
public static Locale localeFromIcuLocaleId(String localeId) {
// @ == ULOC_KEYWORD_SEPARATOR_UNICODE (uloc.h).
final int extensionsIndex = localeId.indexOf('@');
Map<Character, String> extensionsMap = Collections.EMPTY_MAP;
Map<String, String> unicodeKeywordsMap = Collections... |
public class class_name {
public final void setSelected(boolean selected) {
if (isExclusiveGroupMember()) {
boolean oldState = isSelected();
exclusiveController.handleSelectionRequest(this, selected);
// set back button state if controller didn't change this command;
// needed b/c of natural button check... | public class class_name {
public final void setSelected(boolean selected) {
if (isExclusiveGroupMember()) {
boolean oldState = isSelected();
exclusiveController.handleSelectionRequest(this, selected); // depends on control dependency: [if], data = [none]
// set back button state if controller didn't change ... |
public class class_name {
public static void hideOnlyChannels(Object... channels){
for(LogRecordHandler handler : handlers){
if(handler instanceof VisibilityHandler){
VisibilityHandler visHandler = (VisibilityHandler) handler;
visHandler.showAll();
for (Object channel : channels)... | public class class_name {
public static void hideOnlyChannels(Object... channels){
for(LogRecordHandler handler : handlers){
if(handler instanceof VisibilityHandler){
VisibilityHandler visHandler = (VisibilityHandler) handler;
visHandler.showAll();
// depends on control dependency: [if],... |
public class class_name {
protected Object getValue(String propertyName, Type propertyType, boolean optional, String defaultString) {
Object value = null;
assertNotClosed();
SourcedValue sourced = getSourcedValue(propertyName, propertyType);
if (sourced != null) {
value = s... | public class class_name {
protected Object getValue(String propertyName, Type propertyType, boolean optional, String defaultString) {
Object value = null;
assertNotClosed();
SourcedValue sourced = getSourcedValue(propertyName, propertyType);
if (sourced != null) {
value = s... |
public class class_name {
private Object defaultToOutput(EvaluationContext ctx, FEEL feel) {
Map<String, Object> values = ctx.getAllValues();
if ( outputs.size() == 1 ) {
Object value = feel.evaluate( outputs.get( 0 ).getDefaultValue(), values );
return value;
} else {
... | public class class_name {
private Object defaultToOutput(EvaluationContext ctx, FEEL feel) {
Map<String, Object> values = ctx.getAllValues();
if ( outputs.size() == 1 ) {
Object value = feel.evaluate( outputs.get( 0 ).getDefaultValue(), values );
return value; // depends on cont... |
public class class_name {
public boolean match( VersionID vid )
{
if ( _isCompound )
{
if ( !_rest.match( vid ) )
{
return false;
}
}
return ( _usePrefixMatch )
? this.isPrefixMatch( vid )
: ( _useGr... | public class class_name {
public boolean match( VersionID vid )
{
if ( _isCompound )
{
if ( !_rest.match( vid ) )
{
return false; // depends on control dependency: [if], data = [none]
}
}
return ( _usePrefixMatch )
... |
public class class_name {
public static ResourceBundle getResourceBundle() {
final Locale currentLocale = getCurrentLocale();
if (Locale.ENGLISH.getLanguage().equals(currentLocale.getLanguage())) {
// there is no translations_en.properties because translations.properties is in English
// but if user is E... | public class class_name {
public static ResourceBundle getResourceBundle() {
final Locale currentLocale = getCurrentLocale();
if (Locale.ENGLISH.getLanguage().equals(currentLocale.getLanguage())) {
// there is no translations_en.properties because translations.properties is in English
// but if user is E... |
public class class_name {
public Double parseDefault(String input, Double defaultValue) {
if (input == null) {
return defaultValue;
}
Double answer = defaultValue;
try {
answer = Double.parseDouble(input);
} catch (NumberFormatException ignored) {
... | public class class_name {
public Double parseDefault(String input, Double defaultValue) {
if (input == null) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
Double answer = defaultValue;
try {
answer = Double.parseDouble(input); // ... |
public class class_name {
protected long edgeCount() {
long degreeSum = 0L;
for (N node : nodes()) {
degreeSum += degree(node);
}
// According to the degree sum formula, this is equal to twice the number of edges.
checkState((degreeSum & 1) == 0);
return degreeSum >>> 1;
} } | public class class_name {
protected long edgeCount() {
long degreeSum = 0L;
for (N node : nodes()) {
degreeSum += degree(node); // depends on control dependency: [for], data = [node]
}
// According to the degree sum formula, this is equal to twice the number of edges.
checkState((degreeSum & ... |
public class class_name {
private Object getEnumSet(Class c, JsonObject<String, Object> jsonObj)
{
Object[] items = jsonObj.getArray();
if (items == null || items.length == 0)
{
return newInstance(c, jsonObj);
}
JsonObject item = (JsonObject) items[0];
St... | public class class_name {
private Object getEnumSet(Class c, JsonObject<String, Object> jsonObj)
{
Object[] items = jsonObj.getArray();
if (items == null || items.length == 0)
{
return newInstance(c, jsonObj); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
void processEvent(Event e) {
assert !_processed;
// Event e = _events[idx];
if (e.isSend()) {
_sends.put(e, new ArrayList<TimelineSnapshot.Event>());
for (Event otherE : _events) {
if ((otherE != null) && (otherE != e) && (!otherE.equals(e)) && otherE._blocked
... | public class class_name {
void processEvent(Event e) {
assert !_processed;
// Event e = _events[idx];
if (e.isSend()) {
_sends.put(e, new ArrayList<TimelineSnapshot.Event>()); // depends on control dependency: [if], data = [none]
for (Event otherE : _events) {
if ((otherE != null) && (o... |
public class class_name {
public void marshall(VideoDetail videoDetail, ProtocolMarshaller protocolMarshaller) {
if (videoDetail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(videoDetail.getHeig... | public class class_name {
public void marshall(VideoDetail videoDetail, ProtocolMarshaller protocolMarshaller) {
if (videoDetail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(videoDetail.getHeig... |
public class class_name {
public static File siblingDirectory(final File f, final String siblingDirName) {
checkNotNull(f);
checkNotNull(siblingDirName);
checkArgument(!siblingDirName.isEmpty());
final File parent = f.getParentFile();
if (parent != null) {
return new File(parent, siblingDirN... | public class class_name {
public static File siblingDirectory(final File f, final String siblingDirName) {
checkNotNull(f);
checkNotNull(siblingDirName);
checkArgument(!siblingDirName.isEmpty());
final File parent = f.getParentFile();
if (parent != null) {
return new File(parent, siblingDirN... |
public class class_name {
final void closeAndRemoveAllDatabaseHandles() {
for (Database databaseHandle : this.databaseHandles) {
try {
databaseHandle.close();
} catch (EnvironmentFailureException | IllegalStateException ex) {
LOGGER.log(Level.SEVERE,
... | public class class_name {
final void closeAndRemoveAllDatabaseHandles() {
for (Database databaseHandle : this.databaseHandles) {
try {
databaseHandle.close(); // depends on control dependency: [try], data = [none]
} catch (EnvironmentFailureException | IllegalStateExcept... |
public class class_name {
public boolean isNewerThan(VersionComparator comparator) {
if (this.major > comparator.getMajor()) {
return true;
} else if (this.major == comparator.getMajor() && this.minor > comparator.getMinor()) {
return true;
} else if (this.major == comp... | public class class_name {
public boolean isNewerThan(VersionComparator comparator) {
if (this.major > comparator.getMajor()) {
return true; // depends on control dependency: [if], data = [none]
} else if (this.major == comparator.getMajor() && this.minor > comparator.getMinor()) {
... |
public class class_name {
public static void upgradeProcessInstanceByNodeNames(
KieRuntime kruntime,
Long fromProcessId,
String toProcessId,
Map<String, String> nodeNamesMapping) {
Map<String, Long> nodeIdMapping = new HashMap<String, Long>();
String fr... | public class class_name {
public static void upgradeProcessInstanceByNodeNames(
KieRuntime kruntime,
Long fromProcessId,
String toProcessId,
Map<String, String> nodeNamesMapping) {
Map<String, Long> nodeIdMapping = new HashMap<String, Long>();
String fr... |
public class class_name {
protected void markMerge(int regionA, int regionB) {
int dA = mergeList.data[regionA];
int dB = mergeList.data[regionB];
// Quick check to see if they reference the same node
if( dA == dB ) {
return;
}
// search down to the root node (set-find)
int rootA = regionA;
whil... | public class class_name {
protected void markMerge(int regionA, int regionB) {
int dA = mergeList.data[regionA];
int dB = mergeList.data[regionB];
// Quick check to see if they reference the same node
if( dA == dB ) {
return; // depends on control dependency: [if], data = [none]
}
// search down to t... |
public class class_name {
private List<HashMap<String, String>> createSegmentListFromMessage(String msg) {
List<HashMap<String, String>> segmentList = new ArrayList<HashMap<String, String>>();
boolean quoteNext = false;
int startPosi = 0;
for (int i = 0; i < msg.length(); i++) {
... | public class class_name {
private List<HashMap<String, String>> createSegmentListFromMessage(String msg) {
List<HashMap<String, String>> segmentList = new ArrayList<HashMap<String, String>>();
boolean quoteNext = false;
int startPosi = 0;
for (int i = 0; i < msg.length(); i++) {
... |
public class class_name {
public static <T> List<T> getList(final ContentValues[] values, final Class<T> klass) {
final List<T> objects = new ArrayList<T>();
for (int i = 0; i < values.length; i++) {
final T object = getObject(values[i], klass);
if (object != null) {
... | public class class_name {
public static <T> List<T> getList(final ContentValues[] values, final Class<T> klass) {
final List<T> objects = new ArrayList<T>();
for (int i = 0; i < values.length; i++) {
final T object = getObject(values[i], klass);
if (object != null) {
... |
public class class_name {
public void marshall(MatchedPlayerSession matchedPlayerSession, ProtocolMarshaller protocolMarshaller) {
if (matchedPlayerSession == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(MatchedPlayerSession matchedPlayerSession, ProtocolMarshaller protocolMarshaller) {
if (matchedPlayerSession == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
@Override
protected PersistedNodeData loadNodeRecord(QPath parentPath, String cname, String cid, String cpid, int cindex,
int cversion, int cnordernumb, AccessControlList parentACL) throws RepositoryException, SQLException
{
ResultSet ptProp = findNodeMainPropertiesByParentI... | public class class_name {
@Override
protected PersistedNodeData loadNodeRecord(QPath parentPath, String cname, String cid, String cpid, int cindex,
int cversion, int cnordernumb, AccessControlList parentACL) throws RepositoryException, SQLException
{
ResultSet ptProp = findNodeMainPropertiesByParentI... |
public class class_name {
public static Type getPropertyType(Class<?> beanClass, String field) {
try {
return INSTANCE.findPropertyType(beanClass, field);
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
throw handleReflectionException(bea... | public class class_name {
public static Type getPropertyType(Class<?> beanClass, String field) {
try {
return INSTANCE.findPropertyType(beanClass, field); // depends on control dependency: [try], data = [none]
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetExcepti... |
public class class_name {
public final void shutdown() {
try {
onComplete();
executor.shutdown();
requestTaskExecutor.shutdown();
}
catch (Throwable t) {
onError(Operators.onOperatorError(t, currentContext()));
}
} } | public class class_name {
public final void shutdown() {
try {
onComplete(); // depends on control dependency: [try], data = [none]
executor.shutdown(); // depends on control dependency: [try], data = [none]
requestTaskExecutor.shutdown(); // depends on control dependency: [try], data = [none]
}
catch (... |
public class class_name {
public static void executeSqlScript(Connection connection, EncodedResource resource, boolean continueOnError,
boolean ignoreFailedDrops, String commentPrefix, String separator, String blockCommentStartDelimiter,
S... | public class class_name {
public static void executeSqlScript(Connection connection, EncodedResource resource, boolean continueOnError,
boolean ignoreFailedDrops, String commentPrefix, String separator, String blockCommentStartDelimiter,
S... |
public class class_name {
public static String replace(final String message, final KeyValue... keyValue) {
if (keyValue == null) {
return message;
}
final Map<String, String> map = new HashMap<String, String>();
for (final KeyValue kv : keyValue) {
if (kv.g... | public class class_name {
public static String replace(final String message, final KeyValue... keyValue) {
if (keyValue == null) {
return message;
// depends on control dependency: [if], data = [none]
}
final Map<String, String> map = new HashMap<String, String>();
for ... |
public class class_name {
static DirectQuickSelectSketch writableWrap(final WritableMemory srcMem, final long seed) {
final int preambleLongs = extractPreLongs(srcMem); //byte 0
final int lgNomLongs = extractLgNomLongs(srcMem); //byte 3
final int lgArrLongs = extractLgArr... | public class class_name {
static DirectQuickSelectSketch writableWrap(final WritableMemory srcMem, final long seed) {
final int preambleLongs = extractPreLongs(srcMem); //byte 0
final int lgNomLongs = extractLgNomLongs(srcMem); //byte 3
final int lgArrLongs = extractLgArr... |
public class class_name {
public void setQualificationRequests(java.util.Collection<QualificationRequest> qualificationRequests) {
if (qualificationRequests == null) {
this.qualificationRequests = null;
return;
}
this.qualificationRequests = new java.util.ArrayList<Qual... | public class class_name {
public void setQualificationRequests(java.util.Collection<QualificationRequest> qualificationRequests) {
if (qualificationRequests == null) {
this.qualificationRequests = null; // depends on control dependency: [if], data = [none]
return; // depends on control ... |
public class class_name {
public static List<String> getValues(String csvRow) {
List<String> values = new ArrayList<String>();
StringReader in = new StringReader(csvRow);
String value;
try {
value = nextValue(in);
while (true) {
values.add(value);
value = nextValue(in);
}
} catch (IOExceptio... | public class class_name {
public static List<String> getValues(String csvRow) {
List<String> values = new ArrayList<String>();
StringReader in = new StringReader(csvRow);
String value;
try {
value = nextValue(in); // depends on control dependency: [try], data = [none]
while (true) {
values.add(value)... |
public class class_name {
public static InputStream getRequiredResourceAsStream(Class<?> clzz, String location) {
InputStream resourceStream = clzz.getResourceAsStream(location);
if (resourceStream == null) {
// Try with a leading "/"
if (!location.startsWith("/")) {
... | public class class_name {
public static InputStream getRequiredResourceAsStream(Class<?> clzz, String location) {
InputStream resourceStream = clzz.getResourceAsStream(location);
if (resourceStream == null) {
// Try with a leading "/"
if (!location.startsWith("/")) {
... |
public class class_name {
@SuppressWarnings("unchecked")
public void setWriterPostProcessor(String writerPostProcessor) {
if (writePostProcessors == null) {
writePostProcessors = new LinkedList<>();
}
try {
writePostProcessors.add((Class<IPostProcessor>) Class.forNam... | public class class_name {
@SuppressWarnings("unchecked")
public void setWriterPostProcessor(String writerPostProcessor) {
if (writePostProcessors == null) {
writePostProcessors = new LinkedList<>(); // depends on control dependency: [if], data = [none]
}
try {
writeP... |
public class class_name {
public final int getNumberOfCommandLineArgs() {
if (commandLine == null) {
return 0;
}
List<?> args = commandLine.getArgList();
if (args == null) {
return 0;
}
return args.size();
} } | public class class_name {
public final int getNumberOfCommandLineArgs() {
if (commandLine == null) {
return 0; // depends on control dependency: [if], data = [none]
}
List<?> args = commandLine.getArgList();
if (args == null) {
return 0; // depends on control dep... |
public class class_name {
public static List<String> getParamNames(Constructor<?> constructor) {
try {
int size = constructor.getParameterTypes().length;
if (size == 0)
return new ArrayList<String>(0);
List<String> list = ClassMetaReader.getParamNames(constr... | public class class_name {
public static List<String> getParamNames(Constructor<?> constructor) {
try {
int size = constructor.getParameterTypes().length;
if (size == 0)
return new ArrayList<String>(0);
List<String> list = ClassMetaReader.getParamNames(constr... |
public class class_name {
public final Collection<SNIMatcher> getSNIMatchers() {
if (sniMatchers != null) {
if (!sniMatchers.isEmpty()) {
return Collections.<SNIMatcher>unmodifiableList(
new ArrayList<>(sniMatchers.values()));
} el... | public class class_name {
public final Collection<SNIMatcher> getSNIMatchers() {
if (sniMatchers != null) {
if (!sniMatchers.isEmpty()) {
return Collections.<SNIMatcher>unmodifiableList(
new ArrayList<>(sniMatchers.values())); // depends on co... |
public class class_name {
public User incrementInvalidLoginForUser(User userParam)
{
if(userParam != null && this.serviceTicket != null)
{
userParam.setServiceTicket(this.serviceTicket);
}
return new User(this.postJson(
userParam,
WS.Path... | public class class_name {
public User incrementInvalidLoginForUser(User userParam)
{
if(userParam != null && this.serviceTicket != null)
{
userParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [none]
}
return new User(this.postJs... |
public class class_name {
public static boolean sleep(long milliseconds, int nanoseconds) {
try {
Thread.sleep(milliseconds, nanoseconds);
return true;
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
return false;
}
} } | public class class_name {
public static boolean sleep(long milliseconds, int nanoseconds) {
try {
Thread.sleep(milliseconds, nanoseconds); // depends on control dependency: [try], data = [none]
return true; // depends on control dependency: [try], data = [none]
}
catch (InterruptedException e) ... |
public class class_name {
public String build(final InternalKnowledgePackage pkg,
final FunctionDescr functionDescr,
final TypeResolver typeResolver,
final Map<String, LineMappings> lineMappings,
final List<KnowledgeBuilder... | public class class_name {
public String build(final InternalKnowledgePackage pkg,
final FunctionDescr functionDescr,
final TypeResolver typeResolver,
final Map<String, LineMappings> lineMappings,
final List<KnowledgeBuilder... |
public class class_name {
public static <T> List<Tag<T>> fromMap(Map<? extends String, T> tagsMap) {
ImmutableList.Builder<Tag<T>> tagsBuilder = ImmutableList.builder();
for (Map.Entry<? extends String, T> entry : tagsMap.entrySet()) {
tagsBuilder.add(new Tag<>(entry));
}
return tagsBuilder.build... | public class class_name {
public static <T> List<Tag<T>> fromMap(Map<? extends String, T> tagsMap) {
ImmutableList.Builder<Tag<T>> tagsBuilder = ImmutableList.builder();
for (Map.Entry<? extends String, T> entry : tagsMap.entrySet()) {
tagsBuilder.add(new Tag<>(entry)); // depends on control dependency: ... |
public class class_name {
@Override
public void publish() {
try {
String destination = String.format(DESTINATION, vip);
executePost(destination, createJsonFromConfig(config));
} catch (JSONException e) {
/* forget it */
}
} } | public class class_name {
@Override
public void publish() {
try {
String destination = String.format(DESTINATION, vip);
executePost(destination, createJsonFromConfig(config)); // depends on control dependency: [try], data = [none]
} catch (JSONException e) {
/* f... |
public class class_name {
public String retrieveData(String token) {
try {
RetrievedContent data = this.s3StorageProvider.getContent(this.hiddenSpaceName, token);
return IOUtil.readStringFromStream(data.getContentStream());
} catch (NotFoundException ex) {
retur... | public class class_name {
public String retrieveData(String token) {
try {
RetrievedContent data = this.s3StorageProvider.getContent(this.hiddenSpaceName, token);
return IOUtil.readStringFromStream(data.getContentStream());
// depends on control dependency: [try], data = [none]
... |
public class class_name {
private boolean isQuery(HttpServerExchange serverExchange) {
if (serverExchange.getRequestMethod().toString().equalsIgnoreCase("GET") || serverExchange.getRequestMethod().toString().equalsIgnoreCase("HEAD")) {
// all GET requests are considered queries
return t... | public class class_name {
private boolean isQuery(HttpServerExchange serverExchange) {
if (serverExchange.getRequestMethod().toString().equalsIgnoreCase("GET") || serverExchange.getRequestMethod().toString().equalsIgnoreCase("HEAD")) {
// all GET requests are considered queries
return t... |
public class class_name {
@Override
public void cacheResult(List<CommerceDiscountRule> commerceDiscountRules) {
for (CommerceDiscountRule commerceDiscountRule : commerceDiscountRules) {
if (entityCache.getResult(
CommerceDiscountRuleModelImpl.ENTITY_CACHE_ENABLED,
CommerceDiscountRuleImpl.class,
... | public class class_name {
@Override
public void cacheResult(List<CommerceDiscountRule> commerceDiscountRules) {
for (CommerceDiscountRule commerceDiscountRule : commerceDiscountRules) {
if (entityCache.getResult(
CommerceDiscountRuleModelImpl.ENTITY_CACHE_ENABLED,
CommerceDiscountRuleImpl.class,
... |
public class class_name {
public static <T extends Comparable<? super T>> void descDeep(final T[] comparableArray) {
if (ArrayUtils.isEmpty(comparableArray)) {
return;
}
descByReflex(comparableArray);
} } | public class class_name {
public static <T extends Comparable<? super T>> void descDeep(final T[] comparableArray) {
if (ArrayUtils.isEmpty(comparableArray)) {
return; // depends on control dependency: [if], data = [none]
}
descByReflex(comparableArray);
} } |
public class class_name {
public Source withSourceDetails(SourceDetail... sourceDetails) {
if (this.sourceDetails == null) {
setSourceDetails(new com.amazonaws.internal.SdkInternalList<SourceDetail>(sourceDetails.length));
}
for (SourceDetail ele : sourceDetails) {
this.... | public class class_name {
public Source withSourceDetails(SourceDetail... sourceDetails) {
if (this.sourceDetails == null) {
setSourceDetails(new com.amazonaws.internal.SdkInternalList<SourceDetail>(sourceDetails.length)); // depends on control dependency: [if], data = [none]
}
for ... |
public class class_name {
@Override
public Date getScheduleTime() {
if (nextScheduleTimeAdd < 0) {
return null;
}
long current = System.currentTimeMillis();
Date nextSchedule = new Date(current + nextScheduleTimeAdd);
logger.debug("Next schedule for job {} is set to {}", this.getClass().getSimpleNa... | public class class_name {
@Override
public Date getScheduleTime() {
if (nextScheduleTimeAdd < 0) {
return null; // depends on control dependency: [if], data = [none]
}
long current = System.currentTimeMillis();
Date nextSchedule = new Date(current + nextScheduleTimeAdd);
logger.debug("Next schedule... |
public class class_name {
public void signal(String conditionId, int maxSignalCount, String objectName) {
if (waiters == null) {
return;
}
Set<WaitersInfo.ConditionWaiter> waiters;
WaitersInfo condition = this.waiters.get(conditionId);
if (condition == null) {
... | public class class_name {
public void signal(String conditionId, int maxSignalCount, String objectName) {
if (waiters == null) {
return; // depends on control dependency: [if], data = [none]
}
Set<WaitersInfo.ConditionWaiter> waiters;
WaitersInfo condition = this.waiters.ge... |
public class class_name {
private Object readEmbeddedProperty(String column) {
String[] split = split( column );
Node embeddedNode = node;
for ( int i = 0; i < split.length - 1; i++ ) {
String relType = split[i];
Iterator<Relationship> rels = embeddedNode.getRelationships( Direction.OUTGOING, withName( rel... | public class class_name {
private Object readEmbeddedProperty(String column) {
String[] split = split( column );
Node embeddedNode = node;
for ( int i = 0; i < split.length - 1; i++ ) {
String relType = split[i];
Iterator<Relationship> rels = embeddedNode.getRelationships( Direction.OUTGOING, withName( rel... |
public class class_name {
@Override
public void close() throws IOException {
List<Exception> closeExceptions = new ArrayList<>(delegates.size());
for (Writer delegate : delegates) {
try {
delegate.close();
} catch (IOException | RuntimeException closeExceptio... | public class class_name {
@Override
public void close() throws IOException {
List<Exception> closeExceptions = new ArrayList<>(delegates.size());
for (Writer delegate : delegates) {
try {
delegate.close(); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public void disableSearchTab() {
if (m_resultsTab != null) {
m_tabbedPanel.disableTab(m_resultsTab, Messages.get().key(Messages.GUI_GALLERY_NO_PARAMS_0));
}
} } | public class class_name {
public void disableSearchTab() {
if (m_resultsTab != null) {
m_tabbedPanel.disableTab(m_resultsTab, Messages.get().key(Messages.GUI_GALLERY_NO_PARAMS_0)); // depends on control dependency: [if], data = [(m_resultsTab]
}
} } |
public class class_name {
private void go() throws IOException {
long start = System.currentTimeMillis();
System.out.println("Decompressing image file: " + inputFile + " to "
+ outputFile);
DataInputStream in = null;
DataOutputStream out = null;
try {
// setup in
PositionTracki... | public class class_name {
private void go() throws IOException {
long start = System.currentTimeMillis();
System.out.println("Decompressing image file: " + inputFile + " to "
+ outputFile);
DataInputStream in = null;
DataOutputStream out = null;
try {
// setup in
PositionTracki... |
public class class_name {
@Override
public void put(String key, String val) {
if (key == null) {
throw new IllegalArgumentException("key cannot be null");
}
Map<String, String> map = inheritableThreadLocal.get();
if (map == null) {
map = new HashMap<>();
... | public class class_name {
@Override
public void put(String key, String val) {
if (key == null) {
throw new IllegalArgumentException("key cannot be null");
}
Map<String, String> map = inheritableThreadLocal.get();
if (map == null) {
map = new HashMap<>(); // d... |
public class class_name {
@Override
public void visitCode(Code obj) {
try {
userValues = new HashMap<>();
loops = new HashMap<>();
isInstanceMethod = !getMethod().isStatic();
super.visitCode(obj);
} finally {
userValues = null;
... | public class class_name {
@Override
public void visitCode(Code obj) {
try {
userValues = new HashMap<>(); // depends on control dependency: [try], data = [none]
loops = new HashMap<>(); // depends on control dependency: [try], data = [none]
isInstanceMethod = !getMethod(... |
public class class_name {
public static List<CommerceWishListItem> toModels(
CommerceWishListItemSoap[] soapModels) {
if (soapModels == null) {
return null;
}
List<CommerceWishListItem> models = new ArrayList<CommerceWishListItem>(soapModels.length);
for (CommerceWishListItemSoap soapModel : soapModels)... | public class class_name {
public static List<CommerceWishListItem> toModels(
CommerceWishListItemSoap[] soapModels) {
if (soapModels == null) {
return null; // depends on control dependency: [if], data = [none]
}
List<CommerceWishListItem> models = new ArrayList<CommerceWishListItem>(soapModels.length);
... |
public class class_name {
private void addPostParams(final Request request) {
if (identifier != null) {
request.addPostParam("Identifier", identifier);
}
if (friendlyName != null) {
request.addPostParam("FriendlyName", friendlyName);
}
if (proxyIdentifi... | public class class_name {
private void addPostParams(final Request request) {
if (identifier != null) {
request.addPostParam("Identifier", identifier); // depends on control dependency: [if], data = [none]
}
if (friendlyName != null) {
request.addPostParam("FriendlyName... |
public class class_name {
private static int origin(Alignment alignment,
int cellOrigin,
int cellSize,
int componentSize) {
if (alignment == RIGHT || alignment == BOTTOM) {
return cellOrigin + cellSize - componentSize;
} else if (alignment == CENTER) {
... | public class class_name {
private static int origin(Alignment alignment,
int cellOrigin,
int cellSize,
int componentSize) {
if (alignment == RIGHT || alignment == BOTTOM) {
return cellOrigin + cellSize - componentSize; // depends on control dependency: [if], data... |
public class class_name {
protected @Nonnull <T> Collection<BeanDefinition> findBeanCandidatesForInstance(@Nonnull T instance) {
ArgumentUtils.requireNonNull("instance", instance);
if (LOG.isDebugEnabled()) {
LOG.debug("Finding candidate beans for instance: {}", instance);
}
... | public class class_name {
protected @Nonnull <T> Collection<BeanDefinition> findBeanCandidatesForInstance(@Nonnull T instance) {
ArgumentUtils.requireNonNull("instance", instance);
if (LOG.isDebugEnabled()) {
LOG.debug("Finding candidate beans for instance: {}", instance); // depends on con... |
public class class_name {
public void marshall(GameSessionConnectionInfo gameSessionConnectionInfo, ProtocolMarshaller protocolMarshaller) {
if (gameSessionConnectionInfo == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(GameSessionConnectionInfo gameSessionConnectionInfo, ProtocolMarshaller protocolMarshaller) {
if (gameSessionConnectionInfo == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
@Override
protected String resolvePlaceholder(String placeholder, Properties props) {
String resolvedPlaceholder = super.resolvePlaceholder(placeholder, props);
if (null == resolvedPlaceholder) {
LOGGER.trace("could not resolve place holder for key: " + placeholder + ".... | public class class_name {
@Override
protected String resolvePlaceholder(String placeholder, Properties props) {
String resolvedPlaceholder = super.resolvePlaceholder(placeholder, props);
if (null == resolvedPlaceholder) {
LOGGER.trace("could not resolve place holder for key: " + placeholder + ".... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.