code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public ManagementStage getStage(final int index) {
if (index >= 0 && index < this.stages.size()) {
return this.stages.get(index);
}
return null;
} } | public class class_name {
public ManagementStage getStage(final int index) {
if (index >= 0 && index < this.stages.size()) {
return this.stages.get(index); // depends on control dependency: [if], data = [(index]
}
return null;
} } |
public class class_name {
public static Ix<Integer> range(int start, int count) {
if (count == 0) {
return empty();
}
if (count == 1) {
return just(start);
}
if (count < 0) {
throw new IllegalArgumentException("count >= 0 required but it was "... | public class class_name {
public static Ix<Integer> range(int start, int count) {
if (count == 0) {
return empty(); // depends on control dependency: [if], data = [none]
}
if (count == 1) {
return just(start); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void dump(OutputStream out){
hydrate();
PrintWriter p = new PrintWriter(out);
for(Model m : delegate){
p.write(m.toString());
p.write('\n');
}
p.flush();
} } | public class class_name {
public void dump(OutputStream out){
hydrate();
PrintWriter p = new PrintWriter(out);
for(Model m : delegate){
p.write(m.toString()); // depends on control dependency: [for], data = [m]
p.write('\n'); // depends on control dependency: [for], data... |
public class class_name {
public BinaryString toUpperCase() {
if (javaObject != null) {
return toUpperCaseSlow();
}
if (sizeInBytes == 0) {
return EMPTY_UTF8;
}
int size = segments[0].size();
SegmentAndOffset segmentAndOffset = startSegmentAndOffset(size);
byte[] bytes = new byte[sizeInBytes];
by... | public class class_name {
public BinaryString toUpperCase() {
if (javaObject != null) {
return toUpperCaseSlow(); // depends on control dependency: [if], data = [none]
}
if (sizeInBytes == 0) {
return EMPTY_UTF8; // depends on control dependency: [if], data = [none]
}
int size = segments[0].size();
S... |
public class class_name {
protected void paint(SeaGlassContext context, Graphics g) {
Rectangle clip = g.getClipBounds();
Rectangle bounds = table.getBounds();
// Account for the fact that the graphics has already been translated
// into the table's bounds.
bounds.x = bounds.y ... | public class class_name {
protected void paint(SeaGlassContext context, Graphics g) {
Rectangle clip = g.getClipBounds();
Rectangle bounds = table.getBounds();
// Account for the fact that the graphics has already been translated
// into the table's bounds.
bounds.x = bounds.y ... |
public class class_name {
@SuppressWarnings("unchecked")
private void collectDrilldownOptions(final Options options) {
List<? extends IProcessableOption> drilldownPoints = options.getMarkedForProcessing(DrilldownPoint.PROCESSING_KEY);
for (DrilldownPoint drilldownPoint : (List<DrilldownPoint>) drilldownPoints) {
... | public class class_name {
@SuppressWarnings("unchecked")
private void collectDrilldownOptions(final Options options) {
List<? extends IProcessableOption> drilldownPoints = options.getMarkedForProcessing(DrilldownPoint.PROCESSING_KEY);
for (DrilldownPoint drilldownPoint : (List<DrilldownPoint>) drilldownPoints) {
... |
public class class_name {
public void onConfigurationChanged() {
final Collection<PropertyWidget<?>> widgets = getWidgets();
if (logger.isDebugEnabled()) {
final StringBuilder sb = new StringBuilder();
sb.append("id=");
sb.append(System.identityHashCode(this));
... | public class class_name {
public void onConfigurationChanged() {
final Collection<PropertyWidget<?>> widgets = getWidgets();
if (logger.isDebugEnabled()) {
final StringBuilder sb = new StringBuilder();
sb.append("id="); // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override public float progress(){
if(UKV.get(dest()) == null)return 0;
DeepLearningModel m = UKV.get(dest());
if (m != null && m.model_info()!=null ) {
final float p = (float) Math.min(1, (m.epoch_counter / m.model_info().get_params().epochs));
return cv_progress(p);
... | public class class_name {
@Override public float progress(){
if(UKV.get(dest()) == null)return 0;
DeepLearningModel m = UKV.get(dest());
if (m != null && m.model_info()!=null ) {
final float p = (float) Math.min(1, (m.epoch_counter / m.model_info().get_params().epochs));
return cv_progress(p); ... |
public class class_name {
@SuppressWarnings("unchecked")
public static <M extends PMessage<M,F>, F extends PField, B extends PMessageBuilder<M,F>>
List<B> mutateAll(Collection<M> messages) {
if (messages == null) {
return null;
}
return (List<B>) messages.stream()
... | public class class_name {
@SuppressWarnings("unchecked")
public static <M extends PMessage<M,F>, F extends PField, B extends PMessageBuilder<M,F>>
List<B> mutateAll(Collection<M> messages) {
if (messages == null) {
return null; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
private void configureButtonBarDialogBuilder(
@NonNull final AbstractButtonBarDialogBuilder builder) {
if (shouldNegativeButtonBeShown()) {
builder.setNegativeButton(getNegativeButtonText(), createNegativeButtonListener());
}
if (shouldNeutralB... | public class class_name {
private void configureButtonBarDialogBuilder(
@NonNull final AbstractButtonBarDialogBuilder builder) {
if (shouldNegativeButtonBeShown()) {
builder.setNegativeButton(getNegativeButtonText(), createNegativeButtonListener()); // depends on control dependency: [if... |
public class class_name {
public <T> T contextRem(Class<T> key)
{
synchronized (TypeCheckInfo.class)
{
Stack<T> contextStack = lookupListForType(key);
if (contextStack != null)
{
return contextStack.pop();
}
}
return null;
} } | public class class_name {
public <T> T contextRem(Class<T> key)
{
synchronized (TypeCheckInfo.class)
{
Stack<T> contextStack = lookupListForType(key);
if (contextStack != null)
{
return contextStack.pop(); // depends on control dependency: [if], data = [none]
}
}
return null;
} } |
public class class_name {
public Element toElement(final CsvDatastore datastore, final String filename) {
final Element datastoreElement = getDocument().createElement("csv-datastore");
datastoreElement.setAttribute("name", datastore.getName());
final String description = datastore.getDescripti... | public class class_name {
public Element toElement(final CsvDatastore datastore, final String filename) {
final Element datastoreElement = getDocument().createElement("csv-datastore");
datastoreElement.setAttribute("name", datastore.getName());
final String description = datastore.getDescripti... |
public class class_name {
public CmsJspResourceWrapper getFolder() {
CmsJspResourceWrapper result;
if (isFolder()) {
result = this;
} else {
result = readResource(getSitePathFolder());
}
return result;
} } | public class class_name {
public CmsJspResourceWrapper getFolder() {
CmsJspResourceWrapper result;
if (isFolder()) {
result = this; // depends on control dependency: [if], data = [none]
} else {
result = readResource(getSitePathFolder()); // depends on control dependenc... |
public class class_name {
public String[] getParameterValues(String name)
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
parseParameters();
// 321485
String[] values = (String[]) SRTServletRequestThreadData.getInstance().getPa... | public class class_name {
public String[] getParameterValues(String name)
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse(); // depends on control dependency: [if], data = [none]
}
parseParameters();
// 321485
String[] values = (Str... |
public class class_name {
public final static void replaceMonomer(HELM2Notation helm2notation, String polymerType, String existingMonomerID,
String newMonomerID) throws NotationException, MonomerException,
ChemistryException, CTKException, IOException, JDOMException {
validateMonomerReplacement(polymerTyp... | public class class_name {
public final static void replaceMonomer(HELM2Notation helm2notation, String polymerType, String existingMonomerID,
String newMonomerID) throws NotationException, MonomerException,
ChemistryException, CTKException, IOException, JDOMException {
validateMonomerReplacement(polymerTyp... |
public class class_name {
public void validateCriteriaAndAddStrategy(final IBaseResource theResource) {
String criteria = mySubscriptionCanonicalizer.getCriteria(theResource);
try {
SubscriptionMatchingStrategy strategy = mySubscriptionStrategyEvaluator.determineStrategy(criteria);
mySubscriptionCanonicalize... | public class class_name {
public void validateCriteriaAndAddStrategy(final IBaseResource theResource) {
String criteria = mySubscriptionCanonicalizer.getCriteria(theResource);
try {
SubscriptionMatchingStrategy strategy = mySubscriptionStrategyEvaluator.determineStrategy(criteria);
mySubscriptionCanonicalize... |
public class class_name {
@Override
protected List<ConfigIssue> init() {
List<ConfigIssue> issues = super.init();
errorRecordHandler = new DefaultErrorRecordHandler(getContext()); // NOSONAR
conf.basic.init(getContext(), Groups.HTTP.name(), BASIC_CONFIG_PREFIX, issues);
conf.dataFormatConfig.init(ge... | public class class_name {
@Override
protected List<ConfigIssue> init() {
List<ConfigIssue> issues = super.init();
errorRecordHandler = new DefaultErrorRecordHandler(getContext()); // NOSONAR
conf.basic.init(getContext(), Groups.HTTP.name(), BASIC_CONFIG_PREFIX, issues);
conf.dataFormatConfig.init(ge... |
public class class_name {
protected Iterable<ItemHolder> items(final Object socketOrChannel)
{
final CompositePollItem aggregate = items.get(socketOrChannel);
if (aggregate == null) {
return Collections.emptySet();
}
return aggregate.holders;
} } | public class class_name {
protected Iterable<ItemHolder> items(final Object socketOrChannel)
{
final CompositePollItem aggregate = items.get(socketOrChannel);
if (aggregate == null) {
return Collections.emptySet(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public List<Date> parse(String language)
{
language = words2numbers(language);
List<Date> result = new ArrayList<Date>();
List<com.joestelmach.natty.DateGroup> groups = parser.parse(language);
for (com.joestelmach.natty.DateGroup group : groups) {
result.a... | public class class_name {
public List<Date> parse(String language)
{
language = words2numbers(language);
List<Date> result = new ArrayList<Date>();
List<com.joestelmach.natty.DateGroup> groups = parser.parse(language);
for (com.joestelmach.natty.DateGroup group : groups) {
result.a... |
public class class_name {
public Content getNonBreakResource(String key) {
String text = configuration.getText(key);
Content c = configuration.newContent();
int start = 0;
int p;
while ((p = text.indexOf(" ", start)) != -1) {
c.addContent(text.substring(start, p));
... | public class class_name {
public Content getNonBreakResource(String key) {
String text = configuration.getText(key);
Content c = configuration.newContent();
int start = 0;
int p;
while ((p = text.indexOf(" ", start)) != -1) {
c.addContent(text.substring(start, p)); /... |
public class class_name {
@Override
public void logout() {
if (bot.isRunning()) {
String url = String.format("%s/webwxlogout", bot.session().getUrl());
this.client.send(new StringRequest(url)
.add("redirect", 1)
.add("type", 1)
... | public class class_name {
@Override
public void logout() {
if (bot.isRunning()) {
String url = String.format("%s/webwxlogout", bot.session().getUrl());
this.client.send(new StringRequest(url)
.add("redirect", 1)
.add("type", 1)
... |
public class class_name {
private static void processItems(Map<DisconfKey, List<IDisconfUpdate>> inverseMap,
DisconfUpdateService disconfUpdateService, IDisconfUpdate iDisconfUpdate) {
List<String> itemKeys = Arrays.asList(disconfUpdateService.itemKeys());
// 反索引
... | public class class_name {
private static void processItems(Map<DisconfKey, List<IDisconfUpdate>> inverseMap,
DisconfUpdateService disconfUpdateService, IDisconfUpdate iDisconfUpdate) {
List<String> itemKeys = Arrays.asList(disconfUpdateService.itemKeys());
// 反索引
... |
public class class_name {
public List<String> replaceRunOnWords(final String original) {
final List<String> candidates = new ArrayList<String>();
String wordToCheck = original;
if (!dictionaryMetadata.getInputConversionPairs().isEmpty()) {
wordToCheck = DictionaryLookup.applyReplacements(original... | public class class_name {
public List<String> replaceRunOnWords(final String original) {
final List<String> candidates = new ArrayList<String>();
String wordToCheck = original;
if (!dictionaryMetadata.getInputConversionPairs().isEmpty()) {
wordToCheck = DictionaryLookup.applyReplacements(original... |
public class class_name {
public static CharSequence[] escapeKeys(CharSequence... keys) {
CharSequence[] escapedKeys = new CharSequence[keys.length];
for (int index = 0; index < keys.length; index++) {
escapedKeys[index] = escapeKeys(keys[index]);
}
return escapedKeys;
} } | public class class_name {
public static CharSequence[] escapeKeys(CharSequence... keys) {
CharSequence[] escapedKeys = new CharSequence[keys.length];
for (int index = 0; index < keys.length; index++) {
escapedKeys[index] = escapeKeys(keys[index]); // depends on control dependency: [for], data = [index]
}
... |
public class class_name {
public synchronized boolean updateNodeFrameParameters(int streamID, int newPriority, int newParentStreamID, boolean exclusive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "updateNodeFrameParameters entry: streamID to udpate: " + strea... | public class class_name {
public synchronized boolean updateNodeFrameParameters(int streamID, int newPriority, int newParentStreamID, boolean exclusive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "updateNodeFrameParameters entry: streamID to udpate: " + strea... |
public class class_name {
private static long getCachedLastModified(ServletContext servletContext, HeaderAndPath hap) {
// Get the cache
@SuppressWarnings("unchecked")
Map<HeaderAndPath,GetLastModifiedCacheValue> cache = (Map<HeaderAndPath,GetLastModifiedCacheValue>)servletContext.getAttribute(GET_LAST_MODIFIED_... | public class class_name {
private static long getCachedLastModified(ServletContext servletContext, HeaderAndPath hap) {
// Get the cache
@SuppressWarnings("unchecked")
Map<HeaderAndPath,GetLastModifiedCacheValue> cache = (Map<HeaderAndPath,GetLastModifiedCacheValue>)servletContext.getAttribute(GET_LAST_MODIFIED_... |
public class class_name {
private void delete(ReflectedHandle<K, V> n) {
if (n.inner == null && free != n) {
throw new IllegalArgumentException("Invalid handle!");
}
if (free == n) {
free = null;
} else {
// delete from inner queue
Addres... | public class class_name {
private void delete(ReflectedHandle<K, V> n) {
if (n.inner == null && free != n) {
throw new IllegalArgumentException("Invalid handle!");
}
if (free == n) {
free = null; // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public void addEntry(LocalVariable localVar) {
String varName = localVar.getName();
if (varName != null) {
ConstantUTFInfo name = ConstantUTFInfo.make(mCp, varName);
ConstantUTFInfo descriptor =
ConstantUTFInfo.make(mCp, localVar.getTyp... | public class class_name {
public void addEntry(LocalVariable localVar) {
String varName = localVar.getName();
if (varName != null) {
ConstantUTFInfo name = ConstantUTFInfo.make(mCp, varName);
ConstantUTFInfo descriptor =
ConstantUTFInfo.make(mCp, localVar.getTyp... |
public class class_name {
public P load(final BaseEntity<?> ent, final LoadContext ctx) {
try {
// The context needs to know the root entity for any given point
ctx.setCurrentRoot(Key.create((com.google.cloud.datastore.Key)ent.getKey()));
final EntityValue entityValue = makeLoadEntityValue(ent);
return ... | public class class_name {
public P load(final BaseEntity<?> ent, final LoadContext ctx) {
try {
// The context needs to know the root entity for any given point
ctx.setCurrentRoot(Key.create((com.google.cloud.datastore.Key)ent.getKey())); // depends on control dependency: [try], data = [none]
final EntityV... |
public class class_name {
public void registerAny(Metric2Set metrics) {
for (Map.Entry<MetricName, Metric> entry : metrics.getMetrics().entrySet()) {
registerNewMetrics(entry.getKey(), entry.getValue());
}
} } | public class class_name {
public void registerAny(Metric2Set metrics) {
for (Map.Entry<MetricName, Metric> entry : metrics.getMetrics().entrySet()) {
registerNewMetrics(entry.getKey(), entry.getValue()); // depends on control dependency: [for], data = [entry]
}
} } |
public class class_name {
public void marshall(AdminRemoveUserFromGroupRequest adminRemoveUserFromGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (adminRemoveUserFromGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(AdminRemoveUserFromGroupRequest adminRemoveUserFromGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (adminRemoveUserFromGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
public String getRatioHeightPercentage() {
if (m_ratioHeightPercentage == null) {
m_ratioHeightPercentage = calcRatioHeightPercentage(getScaler().getWidth(), getScaler().getHeight());
}
return m_ratioHeightPercentage;
} } | public class class_name {
public String getRatioHeightPercentage() {
if (m_ratioHeightPercentage == null) {
m_ratioHeightPercentage = calcRatioHeightPercentage(getScaler().getWidth(), getScaler().getHeight()); // depends on control dependency: [if], data = [none]
}
return m_ratioH... |
public class class_name {
public ComplexFloat addi(ComplexFloat c, ComplexFloat result) {
if (this == result) {
r += c.r;
i += c.i;
} else {
result.r = r + c.r;
result.i = i + c.i;
}
return result;
} } | public class class_name {
public ComplexFloat addi(ComplexFloat c, ComplexFloat result) {
if (this == result) {
r += c.r; // depends on control dependency: [if], data = [none]
i += c.i; // depends on control dependency: [if], data = [none]
} else {
result.r = r + c.r; // depends on control de... |
public class class_name {
private void put(PrintStream p, String s) {
if (s == null) {
// nl();
put(p, " ");
return;
}
if (wasPreviousField) {
p.print(separator);
}
if (trim) {
s = s.trim();
}
if (s.ind... | public class class_name {
private void put(PrintStream p, String s) {
if (s == null) {
// nl();
put(p, " "); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
if (wasPreviousField) {
... |
public class class_name {
public ReturnCode go() {
try {
// obtaining a lock for the server (with timeout)
serverLock.obtainServerLock();
// IFF we can obtain the server lock....
// Ensure that the server state directory has been cleared prior to start
... | public class class_name {
public ReturnCode go() {
try {
// obtaining a lock for the server (with timeout)
serverLock.obtainServerLock(); // depends on control dependency: [try], data = [none]
// IFF we can obtain the server lock....
// Ensure that the server s... |
public class class_name {
public static ImageView createImageInstance(Context context) {
if (sImageClass != null) {
if (imageViewConstructor == null) {
try {
imageViewConstructor = sImageClass.getConstructor(Context.class);
} catch (NoSuchMethodEx... | public class class_name {
public static ImageView createImageInstance(Context context) {
if (sImageClass != null) {
if (imageViewConstructor == null) {
try {
imageViewConstructor = sImageClass.getConstructor(Context.class); // depends on control dependency: [try]... |
public class class_name {
public void setUserPolicyList(java.util.Collection<PolicyDetail> userPolicyList) {
if (userPolicyList == null) {
this.userPolicyList = null;
return;
}
this.userPolicyList = new com.amazonaws.internal.SdkInternalList<PolicyDetail>(userPolicyList... | public class class_name {
public void setUserPolicyList(java.util.Collection<PolicyDetail> userPolicyList) {
if (userPolicyList == null) {
this.userPolicyList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private Object parseObjectString(Class<?> objectType, final String objectString) {
Object res;
if (ResourceParams.class.isAssignableFrom(objectType)) {
// Setup the default object
if (this.object instanceof List<?>) {
ResourceParams rp =... | public class class_name {
private Object parseObjectString(Class<?> objectType, final String objectString) {
Object res;
if (ResourceParams.class.isAssignableFrom(objectType)) {
// Setup the default object
if (this.object instanceof List<?>) {
ResourceParams rp =... |
public class class_name {
private static boolean[] findIncludedColumns(List<OrcProto.Type> types,
Configuration conf) {
String includedStr =
conf.get(ColumnProjectionUtils.READ_COLUMN_IDS_CONF_STR);
if (includedStr == null || includedStr.trim().length() ==... | public class class_name {
private static boolean[] findIncludedColumns(List<OrcProto.Type> types,
Configuration conf) {
String includedStr =
conf.get(ColumnProjectionUtils.READ_COLUMN_IDS_CONF_STR);
if (includedStr == null || includedStr.trim().length() ==... |
public class class_name {
public void putInGlobalScope(String name, Object obj) {
if (getGlobalScope() == null) {
initialScopeValues.put(name, obj);
} else {
try {
Context.enter();
getGlobalScope().put(name, programScope, Context.javaToJS(obj, pro... | public class class_name {
public void putInGlobalScope(String name, Object obj) {
if (getGlobalScope() == null) {
initialScopeValues.put(name, obj); // depends on control dependency: [if], data = [none]
} else {
try {
Context.enter(); // depends on control depend... |
public class class_name {
public static void queueException(final Throwable e) {
if (e != null) {
try {
LogAppender<LogEvent> appender = LogManager.getAppender();
if (appender != null) {
appender.append(LogEvent.newBuilder().level("ERROR").message(e.getMessage()).exception(e).build());
}
} c... | public class class_name {
public static void queueException(final Throwable e) {
if (e != null) {
try {
LogAppender<LogEvent> appender = LogManager.getAppender();
if (appender != null) {
appender.append(LogEvent.newBuilder().level("ERROR").message(e.getMessage()).exception(e).build()); // depends o... |
public class class_name {
public boolean remove()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "remove");
boolean reply = iterator.remove();
if (reply)
{
size--;
}
if (TraceComponent.isAnyTracingEnabled() && ... | public class class_name {
public boolean remove()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "remove");
boolean reply = iterator.remove();
if (reply)
{
size--; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public static boolean isEqualOrNull( Object s1,
Object s2 ) {
if ( s1 == null
&& s2 == null ) {
return true;
} else if ( s1 != null
&& s2 != null
&& s1.equals( s2 ) ) {
... | public class class_name {
public static boolean isEqualOrNull( Object s1,
Object s2 ) {
if ( s1 == null
&& s2 == null ) {
return true; // depends on control dependency: [if], data = [none]
} else if ( s1 != null
&& s2 ... |
public class class_name {
public void sumUp() {
int offset=0;
int tmp=0;
for (int i = 0; i < numChunks; i++) {
int[] chunk = chunks[i];
if (chunk==null) throw new IllegalStateException("Chunks are not continous, null fragement at offset "+i);
for (int j = 0; ... | public class class_name {
public void sumUp() {
int offset=0;
int tmp=0;
for (int i = 0; i < numChunks; i++) {
int[] chunk = chunks[i];
if (chunk==null) throw new IllegalStateException("Chunks are not continous, null fragement at offset "+i);
for (int j = 0; ... |
public class class_name {
private static boolean match(String string, String pattern) {
if (string == null || string.isEmpty()) {
return false;
}
String[] wcs = tokenize(pattern);
boolean anyChars = false;
int textIdx = 0;
int wcsIdx = 0;
Stack<int[]> backtrack = new Stack<int[]>();
// ... | public class class_name {
private static boolean match(String string, String pattern) {
if (string == null || string.isEmpty()) {
return false;
// depends on control dependency: [if], data = [none]
}
String[] wcs = tokenize(pattern);
boolean anyChars = false;
int textIdx = 0;
int wcsIdx = 0;
... |
public class class_name {
public void updateUserProfile(String firstName, String lastName,
boolean married) {
// Get the timestamp we'll use to set the value of the profile_updated
// action.
long ts = System.currentTimeMillis();
// Construct the key we'll use to fetch the user.
PartitionKey... | public class class_name {
public void updateUserProfile(String firstName, String lastName,
boolean married) {
// Get the timestamp we'll use to set the value of the profile_updated
// action.
long ts = System.currentTimeMillis();
// Construct the key we'll use to fetch the user.
PartitionKey... |
public class class_name {
public void setThreatIntelIndicators(java.util.Collection<ThreatIntelIndicator> threatIntelIndicators) {
if (threatIntelIndicators == null) {
this.threatIntelIndicators = null;
return;
}
this.threatIntelIndicators = new java.util.ArrayList<Thre... | public class class_name {
public void setThreatIntelIndicators(java.util.Collection<ThreatIntelIndicator> threatIntelIndicators) {
if (threatIntelIndicators == null) {
this.threatIntelIndicators = null; // depends on control dependency: [if], data = [none]
return; // depends on control ... |
public class class_name {
private void addNewArtifactsItems(List<BaseArtifact> baseArtifacts, List<ArtifactItem> existingArtifactItems, ArtifactoryCollector collector) {
long start = System.currentTimeMillis();
List<BinaryArtifact> binaryArtifacts = new ArrayList<>();
int count = 0;
... | public class class_name {
private void addNewArtifactsItems(List<BaseArtifact> baseArtifacts, List<ArtifactItem> existingArtifactItems, ArtifactoryCollector collector) {
long start = System.currentTimeMillis();
List<BinaryArtifact> binaryArtifacts = new ArrayList<>();
int count = 0;
... |
public class class_name {
protected int computeZoneOffset(long millis, int millisInDay) {
int[] offsets = new int[2];
long wall = millis + millisInDay;
if (zone instanceof BasicTimeZone) {
int duplicatedTimeOpt = (repeatedWallTime == WALLTIME_FIRST) ? BasicTimeZone.LOCAL_FORMER : Ba... | public class class_name {
protected int computeZoneOffset(long millis, int millisInDay) {
int[] offsets = new int[2];
long wall = millis + millisInDay;
if (zone instanceof BasicTimeZone) {
int duplicatedTimeOpt = (repeatedWallTime == WALLTIME_FIRST) ? BasicTimeZone.LOCAL_FORMER : Ba... |
public class class_name {
private void addInfoForNoSuchElementException(NoSuchElementException cause) {
if (parent == null) {
throw cause;
}
BasicPageImpl page = this.parent.getCurrentPage();
if (page == null) {
throw cause;
}
String resolvedPa... | public class class_name {
private void addInfoForNoSuchElementException(NoSuchElementException cause) {
if (parent == null) {
throw cause;
}
BasicPageImpl page = this.parent.getCurrentPage();
if (page == null) {
throw cause;
}
String resolvedPa... |
public class class_name {
public static String makeRelative(String basePath, String targetPath) {
// Ensure the paths are both absolute or both relative.
if (isAbsolute(basePath) !=
isAbsolute(targetPath)) {
throw new IllegalArgumentException(
"Paths must both be relative or both absolu... | public class class_name {
public static String makeRelative(String basePath, String targetPath) {
// Ensure the paths are both absolute or both relative.
if (isAbsolute(basePath) !=
isAbsolute(targetPath)) {
throw new IllegalArgumentException(
"Paths must both be relative or both absolu... |
public class class_name {
public synchronized void invalidate(boolean appInvoked) {
if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[INVALIDATE], appInvoked... | public class class_name {
public synchronized void invalidate(boolean appInvoked) {
if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[INVALIDATE], appInvoked... |
public class class_name {
private int getColor(Point p1, Point p2) {
float d = distance(p1, p2);
float dx = (p2.getX() - p1.getX()) / d;
float dy = (p2.getY() - p1.getY()) / d;
int error = 0;
float px = p1.getX();
float py = p1.getY();
boolean colorModel = image.get(p1.getX(), p1.getY());... | public class class_name {
private int getColor(Point p1, Point p2) {
float d = distance(p1, p2);
float dx = (p2.getX() - p1.getX()) / d;
float dy = (p2.getY() - p1.getY()) / d;
int error = 0;
float px = p1.getX();
float py = p1.getY();
boolean colorModel = image.get(p1.getX(), p1.getY());... |
public class class_name {
public static boolean matches(Matcher<?> matcher, Object item, Description mismatch) {
if (mismatch instanceof Description.NullDescription) {
return matcher.matches(item);
}
if (matcher instanceof QuickDiagnosingMatcher) {
return ((QuickDia... | public class class_name {
public static boolean matches(Matcher<?> matcher, Object item, Description mismatch) {
if (mismatch instanceof Description.NullDescription) {
return matcher.matches(item);
// depends on control dependency: [if], data = [none]
}
if (matcher instanceof Qu... |
public class class_name {
public void append( int bits , int numberOfBits , boolean swapOrder ) {
if( numberOfBits > 32 )
throw new IllegalArgumentException("Number of bits exceeds the size of bits");
int indexTail = size;
growArray(numberOfBits,true);
if( swapOrder ) {
for (int i = 0; i < numberOfBits;... | public class class_name {
public void append( int bits , int numberOfBits , boolean swapOrder ) {
if( numberOfBits > 32 )
throw new IllegalArgumentException("Number of bits exceeds the size of bits");
int indexTail = size;
growArray(numberOfBits,true);
if( swapOrder ) {
for (int i = 0; i < numberOfBits;... |
public class class_name {
@Nonnull
public ConsumerRecords<byte[], byte[]> pollNext() throws Exception {
synchronized (lock) {
while (next == null && error == null) {
lock.wait();
}
ConsumerRecords<byte[], byte[]> n = next;
if (n != null) {
next = null;
lock.notifyAll();
return n;
}
... | public class class_name {
@Nonnull
public ConsumerRecords<byte[], byte[]> pollNext() throws Exception {
synchronized (lock) {
while (next == null && error == null) {
lock.wait(); // depends on control dependency: [while], data = [none]
}
ConsumerRecords<byte[], byte[]> n = next;
if (n != null) {
... |
public class class_name {
@Override
protected void visitHtmlCloseTagNode(HtmlCloseTagNode node) {
// This case occurs in the case where we encounter the end of a keyed element. If the open tag
// mapped to this close tag contains a key node, pop the keyCounterStack to return
// to the state before enteri... | public class class_name {
@Override
protected void visitHtmlCloseTagNode(HtmlCloseTagNode node) {
// This case occurs in the case where we encounter the end of a keyed element. If the open tag
// mapped to this close tag contains a key node, pop the keyCounterStack to return
// to the state before enteri... |
public class class_name {
public void sendStatus(Status status) {
if (connection != null) {
final boolean andReturn = !status.getCode().equals(StatusCodes.NS_DATA_START);
final Invoke event = new Invoke();
if (andReturn) {
final PendingCall call = new Pe... | public class class_name {
public void sendStatus(Status status) {
if (connection != null) {
final boolean andReturn = !status.getCode().equals(StatusCodes.NS_DATA_START);
final Invoke event = new Invoke();
if (andReturn) {
final PendingCall call = new Pe... |
public class class_name {
@Override
public void actionEdit(HttpServletRequest request) throws JspException {
// save initialized instance of this class in request attribute for included sub-elements
getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this);
try {
// sav... | public class class_name {
@Override
public void actionEdit(HttpServletRequest request) throws JspException {
// save initialized instance of this class in request attribute for included sub-elements
getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this);
try {
// sav... |
public class class_name {
public void stop() {
try {
if (server != null) {
server.stop();
server.join();
}
} catch (Exception e) {
LOG.warn("Got exception shutting down proxy", e);
}
} } | public class class_name {
public void stop() {
try {
if (server != null) {
server.stop(); // depends on control dependency: [if], data = [none]
server.join(); // depends on control dependency: [if], data = [none]
}
} catch (Exception e) {
LOG.warn("Got exception shutting down ... |
public class class_name {
public static Trades adaptTrades(CexIOTrade[] cexioTrades, CurrencyPair currencyPair) {
List<Trade> tradesList = new ArrayList<>();
long lastTradeId = 0;
for (CexIOTrade trade : cexioTrades) {
long tradeId = trade.getTid();
if (tradeId > lastTradeId) {
lastTra... | public class class_name {
public static Trades adaptTrades(CexIOTrade[] cexioTrades, CurrencyPair currencyPair) {
List<Trade> tradesList = new ArrayList<>();
long lastTradeId = 0;
for (CexIOTrade trade : cexioTrades) {
long tradeId = trade.getTid();
if (tradeId > lastTradeId) {
lastTra... |
public class class_name {
public BinaryString reverse() {
ensureMaterialized();
if (inFirstSegment()) {
byte[] result = new byte[this.sizeInBytes];
// position in byte
int byteIdx = 0;
while (byteIdx < sizeInBytes) {
int charBytes = numBytesForFirstByte(getByteOneSegment(byteIdx));
segments[0].... | public class class_name {
public BinaryString reverse() {
ensureMaterialized();
if (inFirstSegment()) {
byte[] result = new byte[this.sizeInBytes];
// position in byte
int byteIdx = 0;
while (byteIdx < sizeInBytes) {
int charBytes = numBytesForFirstByte(getByteOneSegment(byteIdx));
segments[0].... |
public class class_name {
protected String _signature(XCastedExpression castExpression, boolean typeAtEnd) {
if (castExpression instanceof SarlCastedExpression) {
final JvmOperation delegate = ((SarlCastedExpression) castExpression).getFeature();
if (delegate != null) {
return _signature(delegate, typeAtEn... | public class class_name {
protected String _signature(XCastedExpression castExpression, boolean typeAtEnd) {
if (castExpression instanceof SarlCastedExpression) {
final JvmOperation delegate = ((SarlCastedExpression) castExpression).getFeature();
if (delegate != null) {
return _signature(delegate, typeAtEn... |
public class class_name {
public ResourceEnvRefType<ApplicationDescriptor> getOrCreateResourceEnvRef()
{
List<Node> nodeList = model.get("resource-env-ref");
if (nodeList != null && nodeList.size() > 0)
{
return new ResourceEnvRefTypeImpl<ApplicationDescriptor>(this, "resource-env-ref", ... | public class class_name {
public ResourceEnvRefType<ApplicationDescriptor> getOrCreateResourceEnvRef()
{
List<Node> nodeList = model.get("resource-env-ref");
if (nodeList != null && nodeList.size() > 0)
{
return new ResourceEnvRefTypeImpl<ApplicationDescriptor>(this, "resource-env-ref", ... |
public class class_name {
@Override
public void setSortDirection(final SortDirection _sortDirection)
{
super.setSortDirection(_sortDirection);
for (final UIStructurBrowser child : this.children) {
child.setSortDirectionInternal(_sortDirection);
}
} } | public class class_name {
@Override
public void setSortDirection(final SortDirection _sortDirection)
{
super.setSortDirection(_sortDirection);
for (final UIStructurBrowser child : this.children) {
child.setSortDirectionInternal(_sortDirection); // depends on control dependency: [for... |
public class class_name {
public void setThings(java.util.Collection<ThingDocument> things) {
if (things == null) {
this.things = null;
return;
}
this.things = new java.util.ArrayList<ThingDocument>(things);
} } | public class class_name {
public void setThings(java.util.Collection<ThingDocument> things) {
if (things == null) {
this.things = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.things = ne... |
public class class_name {
public static long syncCurrentTime() throws Exception {
// The time protocol sets the epoch at 1900,
// the java Date class at 1970. This number
// converts between them.
long differenceBetweenEpochs = 2208988800L;
// If you'd rather not use the magic ... | public class class_name {
public static long syncCurrentTime() throws Exception {
// The time protocol sets the epoch at 1900,
// the java Date class at 1970. This number
// converts between them.
long differenceBetweenEpochs = 2208988800L;
// If you'd rather not use the magic ... |
public class class_name {
public static <K, V> ImmutableListMultimap<K, V> index(
Iterator<V> values, Function<? super V, K> keyFunction) {
checkNotNull(keyFunction);
ImmutableListMultimap.Builder<K, V> builder = ImmutableListMultimap.builder();
while (values.hasNext()) {
V value = values.next(... | public class class_name {
public static <K, V> ImmutableListMultimap<K, V> index(
Iterator<V> values, Function<? super V, K> keyFunction) {
checkNotNull(keyFunction);
ImmutableListMultimap.Builder<K, V> builder = ImmutableListMultimap.builder();
while (values.hasNext()) {
V value = values.next(... |
public class class_name {
public int hash(String symbol) {
int code = 0;
int length = symbol.length();
for (int i = 0; i < length; i++) {
code = code * 37 + symbol.charAt(i);
}
return code & 0x7FFFFFF;
} } | public class class_name {
public int hash(String symbol) {
int code = 0;
int length = symbol.length();
for (int i = 0; i < length; i++) {
code = code * 37 + symbol.charAt(i); // depends on control dependency: [for], data = [i]
}
return code & 0x7FFFFFF;
} } |
public class class_name {
@SuppressWarnings("unchecked")
void dispose()
{
log.debug("dispose IndexMerger");
// get mutex for index replacements
try
{
indexReplacement.acquire();
}
catch (InterruptedException e)
{
log.warn("Interrupted while acquiring in... | public class class_name {
@SuppressWarnings("unchecked")
void dispose()
{
log.debug("dispose IndexMerger");
// get mutex for index replacements
try
{
indexReplacement.acquire(); // depends on control dependency: [try], data = [none]
}
catch (InterruptedException e)
... |
public class class_name {
private String fetchPath(){
StringBuffer sb = new StringBuffer();
boolean first = true;
for(String path : paths){
if(!first){
sb.append(".");
}
sb.append(path);
first = false;
}
return sb.t... | public class class_name {
private String fetchPath(){
StringBuffer sb = new StringBuffer();
boolean first = true;
for(String path : paths){
if(!first){
sb.append("."); // depends on control dependency: [if], data = [none]
}
sb.append(path); //... |
public class class_name {
public Bbox applyMargins(Bbox bounds) {
Bbox applied = (Bbox) bounds.clone();
Coordinate c = getUpperLeftCorner();
Double x = c.getX();
Double y = c.getY();
if (null != group && group instanceof MapAddon && group != this) {
Coordinate pc = ((MapAddon) group).getUpperLeftCorner();... | public class class_name {
public Bbox applyMargins(Bbox bounds) {
Bbox applied = (Bbox) bounds.clone();
Coordinate c = getUpperLeftCorner();
Double x = c.getX();
Double y = c.getY();
if (null != group && group instanceof MapAddon && group != this) {
Coordinate pc = ((MapAddon) group).getUpperLeftCorner();... |
public class class_name {
public EEnum getIfcBenchmarkEnum() {
if (ifcBenchmarkEnumEEnum == null) {
ifcBenchmarkEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(785);
}
return ifcBenchmarkEnumEEnum;
} } | public class class_name {
public EEnum getIfcBenchmarkEnum() {
if (ifcBenchmarkEnumEEnum == null) {
ifcBenchmarkEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(785);
// depends on control dependency: [if], data = [none]
}
return ifcBenchmar... |
public class class_name {
public @NotNull ByteAssert isGreaterThan(byte other) {
// TODO check for NPE
if (actual > other) {
return this;
}
failIfCustomMessageIsSet();
throw failure(unexpectedLessThanOrEqualTo(actual, other));
} } | public class class_name {
public @NotNull ByteAssert isGreaterThan(byte other) {
// TODO check for NPE
if (actual > other) {
return this; // depends on control dependency: [if], data = [none]
}
failIfCustomMessageIsSet();
throw failure(unexpectedLessThanOrEqualTo(actual, other));
} } |
public class class_name {
public static void addLayerToMap(@NonNull MapboxMap mapboxMap, @NonNull Layer layer,
@Nullable String idBelowLayer) {
if (layer != null && mapboxMap.getStyle().getLayer(layer.getId()) != null) {
return;
}
if (idBelowLayer == null) {
m... | public class class_name {
public static void addLayerToMap(@NonNull MapboxMap mapboxMap, @NonNull Layer layer,
@Nullable String idBelowLayer) {
if (layer != null && mapboxMap.getStyle().getLayer(layer.getId()) != null) {
return; // depends on control dependency: [if], data ... |
public class class_name {
public void setFleetCapacity(java.util.Collection<FleetCapacity> fleetCapacity) {
if (fleetCapacity == null) {
this.fleetCapacity = null;
return;
}
this.fleetCapacity = new java.util.ArrayList<FleetCapacity>(fleetCapacity);
} } | public class class_name {
public void setFleetCapacity(java.util.Collection<FleetCapacity> fleetCapacity) {
if (fleetCapacity == null) {
this.fleetCapacity = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected void handleTCPSrvReg(SrvReg srvReg, Socket socket)
{
try
{
boolean update = srvReg.isUpdating();
ServiceInfo givenService = ServiceInfo.from(srvReg);
ServiceInfoCache.Result<ServiceInfo> result = cacheService(givenService, upda... | public class class_name {
protected void handleTCPSrvReg(SrvReg srvReg, Socket socket)
{
try
{
boolean update = srvReg.isUpdating();
ServiceInfo givenService = ServiceInfo.from(srvReg);
ServiceInfoCache.Result<ServiceInfo> result = cacheService(givenService, upda... |
public class class_name {
public static void parseInputAttributes(
final List<CellFormAttributes> clist,
final String controlAttrs) {
// only one type control allowed for one cell.
clist.clear();
if (controlAttrs != null) {
String[] cattrs = controlAttrs.split(
TieConstants.SPLIT_SPACE_SEPER... | public class class_name {
public static void parseInputAttributes(
final List<CellFormAttributes> clist,
final String controlAttrs) {
// only one type control allowed for one cell.
clist.clear();
if (controlAttrs != null) {
String[] cattrs = controlAttrs.split(
TieConstants.SPLIT_SPACE_SEPER... |
public class class_name {
public double nextGaussian() {
// See Knuth, ACP, Section 3.4.1 Algorithm C.
if (haveNextNextGaussian) {
haveNextNextGaussian = false;
return nextNextGaussian;
} else {
double v1, v2, s;
do {
v1 = 2 * next... | public class class_name {
public double nextGaussian() {
// See Knuth, ACP, Section 3.4.1 Algorithm C.
if (haveNextNextGaussian) {
haveNextNextGaussian = false; // depends on control dependency: [if], data = [none]
return nextNextGaussian; // depends on control dependency: [if],... |
public class class_name {
public BitSet getMatchingParameters(BitSet nullArgSet) {
BitSet result = new BitSet();
for (int i = 0; i < 32; ++i) {
result.set(i, nullArgSet.get(i) && hasProperty(i));
}
return result;
} } | public class class_name {
public BitSet getMatchingParameters(BitSet nullArgSet) {
BitSet result = new BitSet();
for (int i = 0; i < 32; ++i) {
result.set(i, nullArgSet.get(i) && hasProperty(i)); // depends on control dependency: [for], data = [i]
}
return result;
} } |
public class class_name {
public void marshall(ListTerminologiesRequest listTerminologiesRequest, ProtocolMarshaller protocolMarshaller) {
if (listTerminologiesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(ListTerminologiesRequest listTerminologiesRequest, ProtocolMarshaller protocolMarshaller) {
if (listTerminologiesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
private byte[] getMMapBytes(long offset)
throws IOException {
//Read the first 4 bytes to get the size of the data
ByteBuffer buf = getDataBuffer(offset);
int maxLen = (int) Math.min(5, dataSize - offset);
int size;
if (buf.remaining() >= maxLen) {
//Continuou... | public class class_name {
private byte[] getMMapBytes(long offset)
throws IOException {
//Read the first 4 bytes to get the size of the data
ByteBuffer buf = getDataBuffer(offset);
int maxLen = (int) Math.min(5, dataSize - offset);
int size;
if (buf.remaining() >= maxLen) {
//Continuou... |
public class class_name {
@GET
@Path("/{dataSourceName}/intervals/{interval}/serverview")
@Produces(MediaType.APPLICATION_JSON)
@ResourceFilters(DatasourceResourceFilter.class)
public Response getSegmentDataSourceSpecificInterval(
@PathParam("dataSourceName") String dataSourceName,
@PathParam("inte... | public class class_name {
@GET
@Path("/{dataSourceName}/intervals/{interval}/serverview")
@Produces(MediaType.APPLICATION_JSON)
@ResourceFilters(DatasourceResourceFilter.class)
public Response getSegmentDataSourceSpecificInterval(
@PathParam("dataSourceName") String dataSourceName,
@PathParam("inte... |
public class class_name {
public void destroy() {
try {
super.destroy();
} finally {
try {
saveLastFetchedId(lastFetchedId);
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
}
RocksDbUtils.closeRocksObj... | public class class_name {
public void destroy() {
try {
super.destroy(); // depends on control dependency: [try], data = [none]
} finally {
try {
saveLastFetchedId(lastFetchedId); // depends on control dependency: [try], data = [none]
} catch (Excepti... |
public class class_name {
protected static <P extends ParaObject> Map<String, AttributeValue> toRow(P so, Class<? extends Annotation> filter) {
HashMap<String, AttributeValue> row = new HashMap<>();
if (so == null) {
return row;
}
for (Map.Entry<String, Object> entry : ParaObjectUtils.getAnnotatedFields(so,... | public class class_name {
protected static <P extends ParaObject> Map<String, AttributeValue> toRow(P so, Class<? extends Annotation> filter) {
HashMap<String, AttributeValue> row = new HashMap<>();
if (so == null) {
return row; // depends on control dependency: [if], data = [none]
}
for (Map.Entry<String, ... |
public class class_name {
@Override
public Enumeration getEnumeration() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getEnumeration");
Enumeration vEnum = null;
// Synchronize here so that you can't create an enum... | public class class_name {
@Override
public Enumeration getEnumeration() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getEnumeration");
Enumeration vEnum = null;
// Synchronize here so that you can't create an enum... |
public class class_name {
@Override
public EClass getIfcStructuralLoadLinearForce() {
if (ifcStructuralLoadLinearForceEClass == null) {
ifcStructuralLoadLinearForceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(644);
}
return ifcStructuralLoadL... | public class class_name {
@Override
public EClass getIfcStructuralLoadLinearForce() {
if (ifcStructuralLoadLinearForceEClass == null) {
ifcStructuralLoadLinearForceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(644);
// depends on control dependency... |
public class class_name {
@Override
public void connectionRecovered(IManagedConnectionEvent<C> event) {
// physical connection is already set free
if (!event.getManagedConnection().hasCoreConnection()) {
return;
}
IPhynixxConnection con = event.getManagedConnection()
.getCoreConnection();
if (con == ... | public class class_name {
@Override
public void connectionRecovered(IManagedConnectionEvent<C> event) {
// physical connection is already set free
if (!event.getManagedConnection().hasCoreConnection()) {
return; // depends on control dependency: [if], data = [none]
}
IPhynixxConnection con = event.getManag... |
public class class_name {
public SkewedInfo withSkewedColumnNames(String... skewedColumnNames) {
if (this.skewedColumnNames == null) {
setSkewedColumnNames(new java.util.ArrayList<String>(skewedColumnNames.length));
}
for (String ele : skewedColumnNames) {
this.skewedCol... | public class class_name {
public SkewedInfo withSkewedColumnNames(String... skewedColumnNames) {
if (this.skewedColumnNames == null) {
setSkewedColumnNames(new java.util.ArrayList<String>(skewedColumnNames.length)); // depends on control dependency: [if], data = [none]
}
for (String... |
public class class_name {
public double dotProduct(ConcatVector other) {
if (loadedNative) {
return dotProductNative(other);
} else {
double sum = 0.0f;
for (int i = 0; i < Math.min(pointers.length, other.pointers.length); i++) {
if (pointers[i] == null || other.pointers[i] == null) c... | public class class_name {
public double dotProduct(ConcatVector other) {
if (loadedNative) {
return dotProductNative(other); // depends on control dependency: [if], data = [none]
} else {
double sum = 0.0f;
for (int i = 0; i < Math.min(pointers.length, other.pointers.length); i++) {
i... |
public class class_name {
public boolean add(int left, int right) {
if (line[left] == null) {
line[left] = new IntBitSet();
} else {
if (line[left].contains(right)) {
return false;
}
}
line[left].add(right);
return true;
}... | public class class_name {
public boolean add(int left, int right) {
if (line[left] == null) {
line[left] = new IntBitSet(); // depends on control dependency: [if], data = [none]
} else {
if (line[left].contains(right)) {
return false; // depends on control depend... |
public class class_name {
public EEnum getIfcColumnTypeEnum() {
if (ifcColumnTypeEnumEEnum == null) {
ifcColumnTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(795);
}
return ifcColumnTypeEnumEEnum;
} } | public class class_name {
public EEnum getIfcColumnTypeEnum() {
if (ifcColumnTypeEnumEEnum == null) {
ifcColumnTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(795);
// depends on control dependency: [if], data = [none]
}
return ifcColum... |
public class class_name {
public TimeSlot insertSlot(long newSlotTimeout, TimeSlot slot) {
// this routine assumes the list is not empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
retSlot.nextEntry = slot;
retSlot.prevEntry = slot.prevEntry;
if (retSlot.prevEntry != null... | public class class_name {
public TimeSlot insertSlot(long newSlotTimeout, TimeSlot slot) {
// this routine assumes the list is not empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
retSlot.nextEntry = slot;
retSlot.prevEntry = slot.prevEntry;
if (retSlot.prevEntry != null... |
public class class_name {
private void cleanupSubscription(SubscriptionItemStream stream)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "cleanupSubscription", stream);
try
{
// Indicate that we don't want the asynch deletion thread restarted if the
// subscription fails to delete, ... | public class class_name {
private void cleanupSubscription(SubscriptionItemStream stream)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "cleanupSubscription", stream);
try
{
// Indicate that we don't want the asynch deletion thread restarted if the
// subscription fails to delete, ... |
public class class_name {
public void close() {
if (this.xaConnection != null) {
this.xaConnection.doClose();
}
this.closed = true;
this.notifyClosed();
if (LOG.isDebugEnabled()) {
LOG.debug("PhynixxXAResource[" + this.getId() + "]:closed ");
}
... | public class class_name {
public void close() {
if (this.xaConnection != null) {
this.xaConnection.doClose(); // depends on control dependency: [if], data = [none]
}
this.closed = true;
this.notifyClosed();
if (LOG.isDebugEnabled()) {
LOG.debug("Phynixx... |
public class class_name {
public long expire(long time) {
for (int logSize = (Long.SIZE - 1) - numberOfLeadingZeros(last); logSize >= 0; logSize--) {
boolean live = false;
for (int i = min_l(logSize); i < max_l(logSize); i++) {
long end = boxes[i];
if (end != MIN_VALUE) {
if (... | public class class_name {
public long expire(long time) {
for (int logSize = (Long.SIZE - 1) - numberOfLeadingZeros(last); logSize >= 0; logSize--) {
boolean live = false;
for (int i = min_l(logSize); i < max_l(logSize); i++) {
long end = boxes[i];
if (end != MIN_VALUE) {
if (... |
public class class_name {
void migrateMemberships(Node oldUserNode) throws Exception
{
Session session = oldUserNode.getSession();
NodeIterator iterator = ((ExtendedNode)oldUserNode).getNodesLazily();
while (iterator.hasNext())
{
Node oldMembershipNode = iterator.nextNode();
... | public class class_name {
void migrateMemberships(Node oldUserNode) throws Exception
{
Session session = oldUserNode.getSession();
NodeIterator iterator = ((ExtendedNode)oldUserNode).getNodesLazily();
while (iterator.hasNext())
{
Node oldMembershipNode = iterator.nextNode();
... |
public class class_name {
public static synchronized STSSessionCredentialsProvider getSessionCredentialsProvider(AWSCredentials longTermCredentials,
String serviceEndpoint,
... | public class class_name {
public static synchronized STSSessionCredentialsProvider getSessionCredentialsProvider(AWSCredentials longTermCredentials,
String serviceEndpoint,
... |
public class class_name {
public void getGoogleApiClient(final BraintreeResponseListener<GoogleApiClient> listener) {
waitForConfiguration(new ConfigurationListener() {
@Override
public void onConfigurationFetched(Configuration configuration) {
GoogleApiClient googleApiC... | public class class_name {
public void getGoogleApiClient(final BraintreeResponseListener<GoogleApiClient> listener) {
waitForConfiguration(new ConfigurationListener() {
@Override
public void onConfigurationFetched(Configuration configuration) {
GoogleApiClient googleApiC... |
public class class_name {
public static Collection<CollisionCategory> imports(Xml root)
{
Check.notNull(root);
final Collection<Xml> childrenCategory = root.getChildren(NODE_CATEGORY);
final Collection<CollisionCategory> categories = new ArrayList<>(childrenCategory.size());
... | public class class_name {
public static Collection<CollisionCategory> imports(Xml root)
{
Check.notNull(root);
final Collection<Xml> childrenCategory = root.getChildren(NODE_CATEGORY);
final Collection<CollisionCategory> categories = new ArrayList<>(childrenCategory.size());
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.