code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private MutateRowsRequest createRetryRequest(List<Integer> indiciesToRetry) {
MutateRowsRequest.Builder updatedRequest = MutateRowsRequest.newBuilder()
.setTableName(originalRequest.getTableName());
mapToOriginalIndex = new int[indiciesToRetry.size()];
for (int i = 0; i < ... | public class class_name {
private MutateRowsRequest createRetryRequest(List<Integer> indiciesToRetry) {
MutateRowsRequest.Builder updatedRequest = MutateRowsRequest.newBuilder()
.setTableName(originalRequest.getTableName());
mapToOriginalIndex = new int[indiciesToRetry.size()];
for (int i = 0; i < ... |
public class class_name {
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
if (m_isDone == true) {
return false;
}
m_isDone = true;
if (m_pendingException != null) {
return false;
}
m_cancelResult = m_schedFuture.cancel(false... | public class class_name {
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
if (m_isDone == true) {
return false; // depends on control dependency: [if], data = [none]
}
m_isDone = true;
if (m_pendingException != null) {
return false; // depen... |
public class class_name {
public void setRecordColumnUpdates(java.util.Collection<RecordColumn> recordColumnUpdates) {
if (recordColumnUpdates == null) {
this.recordColumnUpdates = null;
return;
}
this.recordColumnUpdates = new java.util.ArrayList<RecordColumn>(recordCo... | public class class_name {
public void setRecordColumnUpdates(java.util.Collection<RecordColumn> recordColumnUpdates) {
if (recordColumnUpdates == null) {
this.recordColumnUpdates = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if]... |
public class class_name {
private void addToUsedVariables(final java.util.List<VariableAndValue> usedVariables, final MethodAndParameter top, final Variable variable) {
VariableAndValue variableAndValue = new VariableAndValue(variable, top.getParameter());
if (!usedVariables.contains(variableAndValue))... | public class class_name {
private void addToUsedVariables(final java.util.List<VariableAndValue> usedVariables, final MethodAndParameter top, final Variable variable) {
VariableAndValue variableAndValue = new VariableAndValue(variable, top.getParameter());
if (!usedVariables.contains(variableAndValue))... |
public class class_name {
public void addItem(String text, T value, OptGroup optGroup) {
if (!values.contains(value)) {
values.add(value);
optGroup.add(buildOption(text, value));
}
} } | public class class_name {
public void addItem(String text, T value, OptGroup optGroup) {
if (!values.contains(value)) {
values.add(value); // depends on control dependency: [if], data = [none]
optGroup.add(buildOption(text, value)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public ArrayList<Permission> getEffectivePermissions(List<Permission> permissions, String codeBase) {
ArrayList<Permission> effectivePermissions = new ArrayList<Permission>();
// Add the granted permissions to an arraylist
effectivePermissions.addAll(grantedPermission... | public class class_name {
public ArrayList<Permission> getEffectivePermissions(List<Permission> permissions, String codeBase) {
ArrayList<Permission> effectivePermissions = new ArrayList<Permission>();
// Add the granted permissions to an arraylist
effectivePermissions.addAll(grantedPermission... |
public class class_name {
public static CodeAnalysisResult countingCode(File file,
CodeAnalysisConf conf) {
if (!Files.isFile(file)) {
throw new RuntimeException("file is not a File, can't analysis it.");
}
if (null == conf) {
... | public class class_name {
public static CodeAnalysisResult countingCode(File file,
CodeAnalysisConf conf) {
if (!Files.isFile(file)) {
throw new RuntimeException("file is not a File, can't analysis it.");
}
if (null == conf) {
... |
public class class_name {
@Override
public EClass getIfcTankType() {
if (ifcTankTypeEClass == null) {
ifcTankTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(699);
}
return ifcTankTypeEClass;
} } | public class class_name {
@Override
public EClass getIfcTankType() {
if (ifcTankTypeEClass == null) {
ifcTankTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(699);
// depends on control dependency: [if], data = [none]
}
return ifcTankTypeECla... |
public class class_name {
@NotNull
public OptionalLong findFirst() {
if (iterator.hasNext()) {
return OptionalLong.of(iterator.nextLong());
}
return OptionalLong.empty();
} } | public class class_name {
@NotNull
public OptionalLong findFirst() {
if (iterator.hasNext()) {
return OptionalLong.of(iterator.nextLong()); // depends on control dependency: [if], data = [none]
}
return OptionalLong.empty();
} } |
public class class_name {
@Override
public void startElement(String namespaceURI, String lName,
String qName, Attributes attrs) throws SAXException {
if (qName.equals(RULE)) {
translations.clear();
id = attrs.getValue("id");
if (!(inRuleGroup && defaultOff)) {
defaultOff = "off".e... | public class class_name {
@Override
public void startElement(String namespaceURI, String lName,
String qName, Attributes attrs) throws SAXException {
if (qName.equals(RULE)) {
translations.clear();
id = attrs.getValue("id");
if (!(inRuleGroup && defaultOff)) {
defaultOff = "off".e... |
public class class_name {
private static HttpRequestBase addParamsGet(AsyncRequest asyncRequest) {
HttpGet get = new HttpGet(asyncRequest.getUrl());
Parameters parameter = asyncRequest.getParameter();
if (parameter != null && parameter.getNameValuePair() != null) {
try {
... | public class class_name {
private static HttpRequestBase addParamsGet(AsyncRequest asyncRequest) {
HttpGet get = new HttpGet(asyncRequest.getUrl());
Parameters parameter = asyncRequest.getParameter();
if (parameter != null && parameter.getNameValuePair() != null) {
try {
... |
public class class_name {
private ScheduledPair scheduleOneTask(long nodeWait, long rackWait) {
if (!nodeManager.existRunnableNodes(type)) {
return null;
}
Queue<PoolGroupSchedulable> poolGroupQueue =
poolGroupManager.getScheduleQueue();
while (!poolGroupQueue.isEmpty()) {
PoolGrou... | public class class_name {
private ScheduledPair scheduleOneTask(long nodeWait, long rackWait) {
if (!nodeManager.existRunnableNodes(type)) {
return null; // depends on control dependency: [if], data = [none]
}
Queue<PoolGroupSchedulable> poolGroupQueue =
poolGroupManager.getScheduleQueue();
... |
public class class_name {
public Summary toSummary(String query) {
List<Term> parse = NlpAnalysis.parse(query).getTerms();
List<Keyword> keywords = new ArrayList<>();
for (Term term : parse) {
if (FILTER_SET.contains(term.natrue().natureStr)) {
continue;
... | public class class_name {
public Summary toSummary(String query) {
List<Term> parse = NlpAnalysis.parse(query).getTerms();
List<Keyword> keywords = new ArrayList<>();
for (Term term : parse) {
if (FILTER_SET.contains(term.natrue().natureStr)) {
continue;
... |
public class class_name {
@Override
public EClass getIfcExternallyDefinedTextFont() {
if (ifcExternallyDefinedTextFontEClass == null) {
ifcExternallyDefinedTextFontEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(250);
}
return ifcExternallyDefin... | public class class_name {
@Override
public EClass getIfcExternallyDefinedTextFont() {
if (ifcExternallyDefinedTextFontEClass == null) {
ifcExternallyDefinedTextFontEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(250);
// depends on control dependency... |
public class class_name {
public static String toNamedString(Object object, Object... components) {
StringBuilder b = new StringBuilder(components.length * 5 + 2);
if (object != null) {
b.append(object.getClass().getSimpleName()).append(' ');
}
b.append('{');
for (in... | public class class_name {
public static String toNamedString(Object object, Object... components) {
StringBuilder b = new StringBuilder(components.length * 5 + 2);
if (object != null) {
b.append(object.getClass().getSimpleName()).append(' '); // depends on control dependency: [if], data = [... |
public class class_name {
public static <T> void fire(final HasSlideStartHandlers<T> source, final T value) {
if (TYPE != null) {
SlideStartEvent<T> event = new SlideStartEvent<T>(value);
source.fireEvent(event);
}
} } | public class class_name {
public static <T> void fire(final HasSlideStartHandlers<T> source, final T value) {
if (TYPE != null) {
SlideStartEvent<T> event = new SlideStartEvent<T>(value);
source.fireEvent(event); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static String getRealm(ChallengeRequest challengeRequest) {
String authenticationParameters = challengeRequest.getAuthenticationParameters();
if ( authenticationParameters == null) {
return null;
}
Matcher m = REALM_PATTERN.matcher(authentica... | public class class_name {
public static String getRealm(ChallengeRequest challengeRequest) {
String authenticationParameters = challengeRequest.getAuthenticationParameters();
if ( authenticationParameters == null) {
return null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private <T> T withWhiteboardDtoService(Function<WhiteboardDtoService, T> function) {
final BundleContext bundleContext = serviceBundle.getBundleContext();
ServiceReference<WhiteboardDtoService> ref = bundleContext.getServiceReference(WhiteboardDtoService.class);
if (ref != null) {
Wh... | public class class_name {
private <T> T withWhiteboardDtoService(Function<WhiteboardDtoService, T> function) {
final BundleContext bundleContext = serviceBundle.getBundleContext();
ServiceReference<WhiteboardDtoService> ref = bundleContext.getServiceReference(WhiteboardDtoService.class);
if (ref != null) {
Wh... |
public class class_name {
public void setExceptionProblemDestination(String value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setExceptionProblemDestination", value);
boolean wasEmpty = (getHdr2().getChoiceField(JsHdr2Access.EXCEPTION) == JsHdr... | public class class_name {
public void setExceptionProblemDestination(String value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setExceptionProblemDestination", value);
boolean wasEmpty = (getHdr2().getChoiceField(JsHdr2Access.EXCEPTION) == JsHdr... |
public class class_name {
public java.lang.String getUploadPathRegex() {
java.lang.Object ref = uploadPathRegex_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.S... | public class class_name {
public java.lang.String getUploadPathRegex() {
java.lang.Object ref = uploadPathRegex_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref; // depends on control dependency: [if], data = [none]
} else {
com.google.protobuf.ByteString bs =
(... |
public class class_name {
public synchronized boolean contains(EvidenceType type, Confidence confidence) {
if (null == type) {
return false;
}
final Set<Evidence> col;
switch (type) {
case VENDOR:
col = vendors;
break;
... | public class class_name {
public synchronized boolean contains(EvidenceType type, Confidence confidence) {
if (null == type) {
return false; // depends on control dependency: [if], data = [none]
}
final Set<Evidence> col;
switch (type) {
case VENDOR:
... |
public class class_name {
void addClassInfo(final ClassInfo classInfo) {
if (memberClassNameToClassInfo == null) {
memberClassNameToClassInfo = new HashMap<>();
}
memberClassNameToClassInfo.put(classInfo.getName(), classInfo);
} } | public class class_name {
void addClassInfo(final ClassInfo classInfo) {
if (memberClassNameToClassInfo == null) {
memberClassNameToClassInfo = new HashMap<>(); // depends on control dependency: [if], data = [none]
}
memberClassNameToClassInfo.put(classInfo.getName(), classInfo);
... |
public class class_name {
public void marshall(PurchaseOfferingRequest purchaseOfferingRequest, ProtocolMarshaller protocolMarshaller) {
if (purchaseOfferingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(PurchaseOfferingRequest purchaseOfferingRequest, ProtocolMarshaller protocolMarshaller) {
if (purchaseOfferingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public static Optional<Class<?>> getClassWithAnnotation(final Class<?> source,
final Class<? extends Annotation> annotationClass) {
Class<?> nextSource = source;
while (nextSource != Object.class) {
if (nextSource.isAnnotationPresent(annotationClass)) {
... | public class class_name {
public static Optional<Class<?>> getClassWithAnnotation(final Class<?> source,
final Class<? extends Annotation> annotationClass) {
Class<?> nextSource = source;
while (nextSource != Object.class) {
if (nextSource.isAnnotationPresent(annotationClass)) {
... |
public class class_name {
boolean isDefault() {
if (entries.size() == 1) {
StartupEntry sue = entries.get(0);
if (sue.isBuiltIn && sue.name.equals(DEFAULT_STARTUP_NAME)) {
return true;
}
}
return false;
} } | public class class_name {
boolean isDefault() {
if (entries.size() == 1) {
StartupEntry sue = entries.get(0);
if (sue.isBuiltIn && sue.name.equals(DEFAULT_STARTUP_NAME)) {
return true; // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
public EventSelector withDataResources(DataResource... dataResources) {
if (this.dataResources == null) {
setDataResources(new com.amazonaws.internal.SdkInternalList<DataResource>(dataResources.length));
}
for (DataResource ele : dataResources) {
... | public class class_name {
public EventSelector withDataResources(DataResource... dataResources) {
if (this.dataResources == null) {
setDataResources(new com.amazonaws.internal.SdkInternalList<DataResource>(dataResources.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public final <T> T getOption(String name)
{
if (arguments == null)
{
throw new IllegalStateException("setArgs not called");
}
Object value = options.get(name);
if (value == null)
{
Option opt = map.get(name);... | public class class_name {
public final <T> T getOption(String name)
{
if (arguments == null)
{
throw new IllegalStateException("setArgs not called");
}
Object value = options.get(name);
if (value == null)
{
Option opt = map.get(name);... |
public class class_name {
private SortedMap<String, List<QueryResult>> splitQueryResultsByTime(Iterable<QueryResult> results) {
SortedMap<String, List<QueryResult>> resultsByTime = new TreeMap<String, List<QueryResult>>();
for (QueryResult result : results) {
String epoch = String.valueOf(... | public class class_name {
private SortedMap<String, List<QueryResult>> splitQueryResultsByTime(Iterable<QueryResult> results) {
SortedMap<String, List<QueryResult>> resultsByTime = new TreeMap<String, List<QueryResult>>();
for (QueryResult result : results) {
String epoch = String.valueOf(... |
public class class_name {
private Set<String> parseIncludeNode(Set<String> origResult, File serverFile, Element node,
List<File> updatedParsedXmls) {
Set<String> result = origResult;
String includeFileName = node.getAttribute("location");
if (includeFileName == null || includeFileNa... | public class class_name {
private Set<String> parseIncludeNode(Set<String> origResult, File serverFile, Element node,
List<File> updatedParsedXmls) {
Set<String> result = origResult;
String includeFileName = node.getAttribute("location");
if (includeFileName == null || includeFileNa... |
public class class_name {
static PathFileObject createSimplePathFileObject(JavacPathFileManager fileManager,
final Path path) {
return new PathFileObject(fileManager, path) {
@Override
String inferBinaryName(Iterable<? extends Path> paths) {
Path absPath = pa... | public class class_name {
static PathFileObject createSimplePathFileObject(JavacPathFileManager fileManager,
final Path path) {
return new PathFileObject(fileManager, path) {
@Override
String inferBinaryName(Iterable<? extends Path> paths) {
Path absPath = pa... |
public class class_name {
public String getFormattedStatus() {
final StringBuilder sb = new StringBuilder();
final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS");
sb.append(format.format(new Date(timestamp)));
sb.append(SPACE);
sb.append(getThreadName(... | public class class_name {
public String getFormattedStatus() {
final StringBuilder sb = new StringBuilder();
final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS");
sb.append(format.format(new Date(timestamp)));
sb.append(SPACE);
sb.append(getThreadName(... |
public class class_name {
public static Call fromRequest(final Request request) {
Call call = new Call();
call.request = request;
call.method = request.getMethod();
call.authorization = request.getAuthorization();
call.uri = request.getRequestURI();
call.contentType = r... | public class class_name {
public static Call fromRequest(final Request request) {
Call call = new Call();
call.request = request;
call.method = request.getMethod();
call.authorization = request.getAuthorization();
call.uri = request.getRequestURI();
call.contentType = r... |
public class class_name {
public final SgField findFieldByName(final String name) {
if (name == null) {
throw new IllegalArgumentException("The argument 'name' cannot be null!");
}
for (int i = 0; i < fields.size(); i++) {
final SgField field = fields.get(i);
... | public class class_name {
public final SgField findFieldByName(final String name) {
if (name == null) {
throw new IllegalArgumentException("The argument 'name' cannot be null!");
}
for (int i = 0; i < fields.size(); i++) {
final SgField field = fields.get(i);
... |
public class class_name {
@SuppressWarnings("unchecked")
public <T extends DmnDecisionRequirementsGraph> T transformDecisionRequirementsGraph() {
try {
Definitions definitions = modelInstance.getDefinitions();
return (T) transformDefinitions(definitions);
}
catch (Exception e) {
throw L... | public class class_name {
@SuppressWarnings("unchecked")
public <T extends DmnDecisionRequirementsGraph> T transformDecisionRequirementsGraph() {
try {
Definitions definitions = modelInstance.getDefinitions();
return (T) transformDefinitions(definitions); // depends on control dependency: [try], data... |
public class class_name {
public <E extends Test> List<List<Object>> getJavaScriptConfig(final E[] tests) {
final Map<String, TestBucket> buckets = getProctorResult().getBuckets();
final List<List<Object>> groups = new ArrayList<List<Object>>(tests.length);
for (final E test : tests) {
... | public class class_name {
public <E extends Test> List<List<Object>> getJavaScriptConfig(final E[] tests) {
final Map<String, TestBucket> buckets = getProctorResult().getBuckets();
final List<List<Object>> groups = new ArrayList<List<Object>>(tests.length);
for (final E test : tests) {
... |
public class class_name {
public static List<FactoryModel> factories(BundleContext context) {
List<FactoryModel> factories = new ArrayList<FactoryModel>();
try {
for (ServiceReference ref : context.getServiceReferences(Factory.class, null)) {
factories.add(new FactoryModel((... | public class class_name {
public static List<FactoryModel> factories(BundleContext context) {
List<FactoryModel> factories = new ArrayList<FactoryModel>();
try {
for (ServiceReference ref : context.getServiceReferences(Factory.class, null)) {
factories.add(new FactoryModel((... |
public class class_name {
@Nullable
public DBObject tryNext() {
if (cursor == null) {
FindOperation<DBObject> operation = getQueryOperation(decoder);
if (!operation.getCursorType().isTailable()) {
throw new IllegalArgumentException("Can only be used with a tailable c... | public class class_name {
@Nullable
public DBObject tryNext() {
if (cursor == null) {
FindOperation<DBObject> operation = getQueryOperation(decoder);
if (!operation.getCursorType().isTailable()) {
throw new IllegalArgumentException("Can only be used with a tailable c... |
public class class_name {
private String buildMessage( final ChangeSummary summary, final Collection<String> paths )
{
final StringBuilder message =
new StringBuilder().append( summary.getSummary() );
if ( config.isCommitFileManifestsEnabled() )
{
message... | public class class_name {
private String buildMessage( final ChangeSummary summary, final Collection<String> paths )
{
final StringBuilder message =
new StringBuilder().append( summary.getSummary() );
if ( config.isCommitFileManifestsEnabled() )
{
message... |
public class class_name {
public void syncPersistExistingDirectory(Supplier<JournalContext> context, InodeDirectoryView dir)
throws IOException, InvalidPathException, FileDoesNotExistException {
RetryPolicy retry =
new ExponentialBackoffRetry(PERSIST_WAIT_BASE_SLEEP_MS, PERSIST_WAIT_MAX_SLEEP_MS,
... | public class class_name {
public void syncPersistExistingDirectory(Supplier<JournalContext> context, InodeDirectoryView dir)
throws IOException, InvalidPathException, FileDoesNotExistException {
RetryPolicy retry =
new ExponentialBackoffRetry(PERSIST_WAIT_BASE_SLEEP_MS, PERSIST_WAIT_MAX_SLEEP_MS,
... |
public class class_name {
@SuppressWarnings("unchecked")
private Map<String, Object> toMap(final Object o) {
if (o instanceof Map) {
return (Map<String, Object>) o;
}
return BeanAccessor.asMap(o);
} } | public class class_name {
@SuppressWarnings("unchecked")
private Map<String, Object> toMap(final Object o) {
if (o instanceof Map) {
return (Map<String, Object>) o; // depends on control dependency: [if], data = [none]
}
return BeanAccessor.asMap(o);
} } |
public class class_name {
public boolean isInstance(Object o) {
Class c = rawType();
if (c.isInstance(o)) {
return true;
}
Class p = $.primitiveTypeOf(c);
if (null != p && p.isInstance(o)) {
return true;
}
Class w = $.wrapperClassOf(c);
... | public class class_name {
public boolean isInstance(Object o) {
Class c = rawType();
if (c.isInstance(o)) {
return true; // depends on control dependency: [if], data = [none]
}
Class p = $.primitiveTypeOf(c);
if (null != p && p.isInstance(o)) {
return tru... |
public class class_name {
public TableDescription createTable(ProvisionedThroughput throughput) {
final CreateTableRequest request = mapper.generateCreateTableRequest(model.targetType());
request.setProvisionedThroughput(throughput);
if (request.getGlobalSecondaryIndexes() != null) {
... | public class class_name {
public TableDescription createTable(ProvisionedThroughput throughput) {
final CreateTableRequest request = mapper.generateCreateTableRequest(model.targetType());
request.setProvisionedThroughput(throughput);
if (request.getGlobalSecondaryIndexes() != null) {
... |
public class class_name {
public String getProperty(String category, String key, String defaultValue) {
category = (this.compressedSpaces ? category.replaceAll("\\s+", " ") : category).trim();
if (Strings.isNullOrEmpty(category)) category = "Main";
key = (this.compressedSpaces ? key.replaceAll("\\s+", " ") : key... | public class class_name {
public String getProperty(String category, String key, String defaultValue) {
category = (this.compressedSpaces ? category.replaceAll("\\s+", " ") : category).trim();
if (Strings.isNullOrEmpty(category)) category = "Main";
key = (this.compressedSpaces ? key.replaceAll("\\s+", " ") : key... |
public class class_name {
private void computeIJTable(InfoTree it, int subtreePreorder,
int subtreeRevPreorder, int subtreeSize, int aStrategy, int treeSize) {
int change;
int[] post2pre = it.info[POST2_PRE];
int[] rpost2post = it.info[RPOST2_POST];
if (aStrategy == LEFT) {
for (int x = 0; x < subtree... | public class class_name {
private void computeIJTable(InfoTree it, int subtreePreorder,
int subtreeRevPreorder, int subtreeSize, int aStrategy, int treeSize) {
int change;
int[] post2pre = it.info[POST2_PRE];
int[] rpost2post = it.info[RPOST2_POST];
if (aStrategy == LEFT) {
for (int x = 0; x < subtree... |
public class class_name {
public void addMember(JSConsumerKey key) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addMember", key);
super.addMember(key); // superclass method does most of the work
synchronized (criteriaLock)
{
... | public class class_name {
public void addMember(JSConsumerKey key) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addMember", key);
super.addMember(key); // superclass method does most of the work
synchronized (criteriaLock)
{
... |
public class class_name {
public void notifySipApplicationSessionListeners(SipApplicationSessionEventType sipApplicationSessionEventType) {
List<SipApplicationSessionListener> listeners =
sipContext.getListeners().getSipApplicationSessionListeners();
if(listeners.size() > 0) {
ClassLoader oldClassLoader ... | public class class_name {
public void notifySipApplicationSessionListeners(SipApplicationSessionEventType sipApplicationSessionEventType) {
List<SipApplicationSessionListener> listeners =
sipContext.getListeners().getSipApplicationSessionListeners();
if(listeners.size() > 0) {
ClassLoader oldClassLoader ... |
public class class_name {
private void write0(int b) throws IOException {
if (this.currentChar != -1) {
b &= 0xff;
if (this.currentChar == b) {
if (++this.runLength > 254) {
writeRun();
this.currentChar = -1;
th... | public class class_name {
private void write0(int b) throws IOException {
if (this.currentChar != -1) {
b &= 0xff;
if (this.currentChar == b) {
if (++this.runLength > 254) {
writeRun(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public InlineMorph with(String line) {
if (scriptBuilder.length() == 0) {
appendBoilerplate(line);
}
scriptBuilder
.append(line)
.append("\n");
return this;
} } | public class class_name {
public InlineMorph with(String line) {
if (scriptBuilder.length() == 0) {
appendBoilerplate(line); // depends on control dependency: [if], data = [none]
}
scriptBuilder
.append(line)
.append("\n");
return this;
} ... |
public class class_name {
private PBKey buildDefaultKey()
{
List descriptors = connectionRepository().getAllDescriptor();
JdbcConnectionDescriptor descriptor;
PBKey result = null;
for (Iterator iterator = descriptors.iterator(); iterator.hasNext();)
{
desc... | public class class_name {
private PBKey buildDefaultKey()
{
List descriptors = connectionRepository().getAllDescriptor();
JdbcConnectionDescriptor descriptor;
PBKey result = null;
for (Iterator iterator = descriptors.iterator(); iterator.hasNext();)
{
desc... |
public class class_name {
protected void append(Options options, CharSequence sequence) {
TextSupport textSupport = this.textSupport;
if (textSupport == null || isUnescapeVariable(options)) {
options.append(sequence);
} else {
try {
textSupport.appendEsca... | public class class_name {
protected void append(Options options, CharSequence sequence) {
TextSupport textSupport = this.textSupport;
if (textSupport == null || isUnescapeVariable(options)) {
options.append(sequence); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
@SneakyThrows
public static String dumps(@NonNull Map<String, ?> map) {
Resource strResource = new StringResource();
try (JsonWriter writer = new JsonWriter(strResource)) {
writer.beginDocument();
for (Map.Entry<String, ?> entry : map.entrySet()) {
... | public class class_name {
@SneakyThrows
public static String dumps(@NonNull Map<String, ?> map) {
Resource strResource = new StringResource();
try (JsonWriter writer = new JsonWriter(strResource)) {
writer.beginDocument();
for (Map.Entry<String, ?> entry : map.entrySet()) {
... |
public class class_name {
public void initialize(Context context, String appGUID, String pushClientSecret,MFPPushNotificationOptions options) {
try {
if (MFPPushUtils.validateString(pushClientSecret) && MFPPushUtils.validateString(appGUID)) {
// Get the applicationId and backend route from core
... | public class class_name {
public void initialize(Context context, String appGUID, String pushClientSecret,MFPPushNotificationOptions options) {
try {
if (MFPPushUtils.validateString(pushClientSecret) && MFPPushUtils.validateString(appGUID)) {
// Get the applicationId and backend route from core
... |
public class class_name {
public ZipkinRule storeSpans(List<Span> spans) {
try {
storage.accept(spans).execute();
} catch (IOException e) {
throw Platform.get().uncheckedIOException(e);
}
return this;
} } | public class class_name {
public ZipkinRule storeSpans(List<Span> spans) {
try {
storage.accept(spans).execute(); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
throw Platform.get().uncheckedIOException(e);
} // depends on control dependency: [catch], data = [n... |
public class class_name {
public void initializeSession()
{
ApplicationSessionInitializer asi = getApplicationSessionInitializer();
if (asi != null)
{
asi.initializeSession();
Map<String, Object> sessionAttributes = asi.getSessionAttributes();
if (session... | public class class_name {
public void initializeSession()
{
ApplicationSessionInitializer asi = getApplicationSessionInitializer();
if (asi != null)
{
asi.initializeSession(); // depends on control dependency: [if], data = [none]
Map<String, Object> sessionAttributes... |
public class class_name {
public String readUntil(char c) throws IOException {
if (lookaheadChar == UNDEFINED) {
lookaheadChar = super.read();
}
line.clear(); // reuse
while (lookaheadChar != c && lookaheadChar != END_OF_STREAM) {
line.append((char) lookaheadChar... | public class class_name {
public String readUntil(char c) throws IOException {
if (lookaheadChar == UNDEFINED) {
lookaheadChar = super.read();
}
line.clear(); // reuse
while (lookaheadChar != c && lookaheadChar != END_OF_STREAM) {
line.append((char) lookaheadChar... |
public class class_name {
protected void addCancelButton() {
if (m_editorDialog != null) {
m_cancelButton = new CmsPushButton();
m_cancelButton.setText(Messages.get().key(Messages.GUI_BUTTON_CANCEL_TEXT_0));
m_cancelButton.setUseMinWidth(true);
m_cancelButton.se... | public class class_name {
protected void addCancelButton() {
if (m_editorDialog != null) {
m_cancelButton = new CmsPushButton(); // depends on control dependency: [if], data = [none]
m_cancelButton.setText(Messages.get().key(Messages.GUI_BUTTON_CANCEL_TEXT_0)); // depends on control de... |
public class class_name {
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
throws IOException, ServletException {
filterChain.doFilter(servletRequest, new HttpServletResponseWrapper((HttpServletResponse) servletResponse) {
... | public class class_name {
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
throws IOException, ServletException {
filterChain.doFilter(servletRequest, new HttpServletResponseWrapper((HttpServletResponse) servletResponse) {
... |
public class class_name {
public boolean isAccessible(@Nonnull JavaModelElement e) {
if (!(e instanceof JavaMethodParameterElement) && !isAccessibleByModifier(e.getDeclaringElement())) {
return false;
}
JavaModelElement parent = e.getParent();
if (e instanceof JavaTypeElem... | public class class_name {
public boolean isAccessible(@Nonnull JavaModelElement e) {
if (!(e instanceof JavaMethodParameterElement) && !isAccessibleByModifier(e.getDeclaringElement())) {
return false; // depends on control dependency: [if], data = [none]
}
JavaModelElement parent =... |
public class class_name {
public static <E> Apply<E> buildAst(List<Expression<E>> rpn) {
if (rpn.isEmpty()) {
return null;
}
Stack<Apply<E>> stack = new Stack<Apply<E>>();
for (Expression<E> tok : rpn) {
if (tok instanceof Arg<?>) {
stack.push((A... | public class class_name {
public static <E> Apply<E> buildAst(List<Expression<E>> rpn) {
if (rpn.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
Stack<Apply<E>> stack = new Stack<Apply<E>>();
for (Expression<E> tok : rpn) {
if (... |
public class class_name {
public static <K1, V1, K2, V2> ImmutableMap<K2, V2> copyWithTransformedEntries(Map<K1, V1> input,
Function<? super K1, K2> keyInjection, Function<? super V1, V2> valueFunction) {
final ImmutableMap.Builder<K2, V2> ret = ImmutableMap.builder();
for (final Map.Entry<K1, V1> entry... | public class class_name {
public static <K1, V1, K2, V2> ImmutableMap<K2, V2> copyWithTransformedEntries(Map<K1, V1> input,
Function<? super K1, K2> keyInjection, Function<? super V1, V2> valueFunction) {
final ImmutableMap.Builder<K2, V2> ret = ImmutableMap.builder();
for (final Map.Entry<K1, V1> entry... |
public class class_name {
protected Action processVariables(Action origAction, Event cause) {
final ActionResource newAction = new ActionResource();
final Map<UUID, String> newParameters = new HashMap<>();
newAction.setAppliesToActionDefinition(origAction.getAppliesToActionDefinition());
for (UUID key : ori... | public class class_name {
protected Action processVariables(Action origAction, Event cause) {
final ActionResource newAction = new ActionResource();
final Map<UUID, String> newParameters = new HashMap<>();
newAction.setAppliesToActionDefinition(origAction.getAppliesToActionDefinition());
for (UUID key : ori... |
public class class_name {
@Override
public void messageReceived(NextFilter nextFilter, IoSession session,
Object message) throws Exception {
LOGGER.debug("Processing a MESSAGE_RECEIVED for session {}", session.getId());
if (!(message instanceof IoBuffer)) {
nextFilter.messa... | public class class_name {
@Override
public void messageReceived(NextFilter nextFilter, IoSession session,
Object message) throws Exception {
LOGGER.debug("Processing a MESSAGE_RECEIVED for session {}", session.getId());
if (!(message instanceof IoBuffer)) {
nextFilter.messa... |
public class class_name {
protected void setFieldNameValueSeparator(String fieldNameValueSeparator) {
if (fieldNameValueSeparator == null) {
fieldNameValueSeparator = StringUtils.EMPTY;
}
this.fieldNameValueSeparator = fieldNameValueSeparator;
} } | public class class_name {
protected void setFieldNameValueSeparator(String fieldNameValueSeparator) {
if (fieldNameValueSeparator == null) {
fieldNameValueSeparator = StringUtils.EMPTY; // depends on control dependency: [if], data = [none]
}
this.fieldNameValueSeparator = fieldNameV... |
public class class_name {
@Override
public CPDefinitionLocalization fetchByCPDefinitionId_Last(
long CPDefinitionId,
OrderByComparator<CPDefinitionLocalization> orderByComparator) {
int count = countByCPDefinitionId(CPDefinitionId);
if (count == 0) {
return null;
}
List<CPDefinitionLocalization> list... | public class class_name {
@Override
public CPDefinitionLocalization fetchByCPDefinitionId_Last(
long CPDefinitionId,
OrderByComparator<CPDefinitionLocalization> orderByComparator) {
int count = countByCPDefinitionId(CPDefinitionId);
if (count == 0) {
return null; // depends on control dependency: [if], da... |
public class class_name {
public void releaseWakeLock() {
if(mWakeLock != null && mWakeLock.isHeld()) {
mWakeLock.release();
mWakeLock = null;
Log.d(mTag, "Wake lock released");
}
} } | public class class_name {
public void releaseWakeLock() {
if(mWakeLock != null && mWakeLock.isHeld()) {
mWakeLock.release(); // depends on control dependency: [if], data = [none]
mWakeLock = null; // depends on control dependency: [if], data = [none]
Log.d(mTag, "Wake lock r... |
public class class_name {
private void addCreatedSplit(List<InputSplit> splitList,
List<String> locations,
ArrayList<OneBlockInfo> validBlocks) {
// create an input split
Path[] fl = new Path[validBlocks.size()];
long[] offset = new long[valid... | public class class_name {
private void addCreatedSplit(List<InputSplit> splitList,
List<String> locations,
ArrayList<OneBlockInfo> validBlocks) {
// create an input split
Path[] fl = new Path[validBlocks.size()];
long[] offset = new long[valid... |
public class class_name {
public void setCredentials(@Nonnull List<ServiceClientCredentials> credentials) {
credentialsProvider.clear();
for (final ServiceClientCredentials cred : credentials) {
final URI uri = cred.getBaseUri();
credentialsProvider.setCredentials(new AuthScope(
new ... | public class class_name {
public void setCredentials(@Nonnull List<ServiceClientCredentials> credentials) {
credentialsProvider.clear();
for (final ServiceClientCredentials cred : credentials) {
final URI uri = cred.getBaseUri();
credentialsProvider.setCredentials(new AuthScope(
new ... |
public class class_name {
public static List<ExecutionEntity> orderFromRootToLeaf(Collection<ExecutionEntity> executions) {
List<ExecutionEntity> orderedList = new ArrayList<ExecutionEntity>(executions.size());
// Root elements
HashSet<String> previousIds = new HashSet<String>();
for (ExecutionEntity ... | public class class_name {
public static List<ExecutionEntity> orderFromRootToLeaf(Collection<ExecutionEntity> executions) {
List<ExecutionEntity> orderedList = new ArrayList<ExecutionEntity>(executions.size());
// Root elements
HashSet<String> previousIds = new HashSet<String>();
for (ExecutionEntity ... |
public class class_name {
@Override
public List<WorkUnit> getWorkunits(SourceState state) {
List<WorkUnit> workUnits = Lists.newArrayList();
Config config = ConfigUtils.propertiesToConfig(state.getProperties());
Config sourceConfig = ConfigUtils.getConfigOrEmpty(config, DATASET_CLEANER_SOURCE_PREFIX);
... | public class class_name {
@Override
public List<WorkUnit> getWorkunits(SourceState state) {
List<WorkUnit> workUnits = Lists.newArrayList();
Config config = ConfigUtils.propertiesToConfig(state.getProperties());
Config sourceConfig = ConfigUtils.getConfigOrEmpty(config, DATASET_CLEANER_SOURCE_PREFIX);
... |
public class class_name {
public static void createIfNotExists(
CuratorFramework curatorFramework,
String path,
CreateMode mode,
byte[] rawBytes,
int maxZnodeBytes
) throws Exception
{
verifySize(path, rawBytes, maxZnodeBytes);
if (curatorFramework.checkExists().forPath(path)... | public class class_name {
public static void createIfNotExists(
CuratorFramework curatorFramework,
String path,
CreateMode mode,
byte[] rawBytes,
int maxZnodeBytes
) throws Exception
{
verifySize(path, rawBytes, maxZnodeBytes);
if (curatorFramework.checkExists().forPath(path)... |
public class class_name {
public void highlight(Object control)
{
// Manage highlighting of controls.
if (this.currentControl == control)
return; // same thing selected
// Turn off highlight if on.
if (this.currentControl != null)
{
this.currentContr... | public class class_name {
public void highlight(Object control)
{
// Manage highlighting of controls.
if (this.currentControl == control)
return; // same thing selected
// Turn off highlight if on.
if (this.currentControl != null)
{
this.currentContr... |
public class class_name {
public String getEffectiveConstructorScope() {
if ("smart".equals(constructorScope)) {
return isTypeFinal() ? "private " : "protected ";
} else if ("package".equals(constructorScope)) {
return "";
} else if ("public@ConstructorProperties".equals... | public class class_name {
public String getEffectiveConstructorScope() {
if ("smart".equals(constructorScope)) {
return isTypeFinal() ? "private " : "protected "; // depends on control dependency: [if], data = [none]
} else if ("package".equals(constructorScope)) {
return ""; //... |
public class class_name {
public UpdateNFSFileShareRequest withClientList(String... clientList) {
if (this.clientList == null) {
setClientList(new com.amazonaws.internal.SdkInternalList<String>(clientList.length));
}
for (String ele : clientList) {
this.clientList.add(el... | public class class_name {
public UpdateNFSFileShareRequest withClientList(String... clientList) {
if (this.clientList == null) {
setClientList(new com.amazonaws.internal.SdkInternalList<String>(clientList.length)); // depends on control dependency: [if], data = [none]
}
for (String ... |
public class class_name {
public C fillLockMutation(MutationBatch m, Long time, Integer ttl) {
if (lockColumn != null) {
if (!lockColumn.equals(columnStrategy.generateLockColumn()))
throw new IllegalStateException("Can't change prefix or lockId after acquiring the lock");
}
... | public class class_name {
public C fillLockMutation(MutationBatch m, Long time, Integer ttl) {
if (lockColumn != null) {
if (!lockColumn.equals(columnStrategy.generateLockColumn()))
throw new IllegalStateException("Can't change prefix or lockId after acquiring the lock");
}
... |
public class class_name {
static boolean less(int i, int j, IAtom[] atoms, Point2d center) {
Point2d a = atoms[i].getPoint2d();
Point2d b = atoms[j].getPoint2d();
if (a.x - center.x >= 0 && b.x - center.x < 0) return true;
if (a.x - center.x < 0 && b.x - center.x >= 0) return false;
... | public class class_name {
static boolean less(int i, int j, IAtom[] atoms, Point2d center) {
Point2d a = atoms[i].getPoint2d();
Point2d b = atoms[j].getPoint2d();
if (a.x - center.x >= 0 && b.x - center.x < 0) return true;
if (a.x - center.x < 0 && b.x - center.x >= 0) return false;
... |
public class class_name {
public ApplicationDefinition refreshSchema() {
try {
// Send a GET request to "/_applications/{application}
StringBuilder uri = new StringBuilder("/_applications/");
uri.append(Utils.urlEncode(m_appDef.getAppName()));
RESTResponse ... | public class class_name {
public ApplicationDefinition refreshSchema() {
try {
// Send a GET request to "/_applications/{application}
StringBuilder uri = new StringBuilder("/_applications/");
uri.append(Utils.urlEncode(m_appDef.getAppName()));
// depends on control dep... |
public class class_name {
public void validate(Object submittedValue, VariableMap submittedValues, FormFieldHandler formFieldHandler, VariableScope variableScope) {
try {
FormFieldValidatorContext context = new DefaultFormFieldValidatorContext(variableScope, config, submittedValues, formFieldHandler);
... | public class class_name {
public void validate(Object submittedValue, VariableMap submittedValues, FormFieldHandler formFieldHandler, VariableScope variableScope) {
try {
FormFieldValidatorContext context = new DefaultFormFieldValidatorContext(variableScope, config, submittedValues, formFieldHandler);
... |
public class class_name {
@Override public void onStageTransition(JobExecutionState state, String previousStage, String newStage) {
if (this.filter.apply(state.getJobSpec())) {
this.delegate.onStageTransition(state, previousStage, newStage);
}
} } | public class class_name {
@Override public void onStageTransition(JobExecutionState state, String previousStage, String newStage) {
if (this.filter.apply(state.getJobSpec())) {
this.delegate.onStageTransition(state, previousStage, newStage); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public boolean apply(final Class<?> type, final Object value, final List<ValidationFailure> validationFailures) {
if (getRequiredValueType().isAssignableFrom(value.getClass())) {
validate(type, value, validationFailures);
return true;
}
return f... | public class class_name {
public boolean apply(final Class<?> type, final Object value, final List<ValidationFailure> validationFailures) {
if (getRequiredValueType().isAssignableFrom(value.getClass())) {
validate(type, value, validationFailures); // depends on control dependency: [if], data = [non... |
public class class_name {
private Region findRegion() {
boolean regionProvided = !Validator.isBlank(this.region);
if(!regionProvided) {
// Determine region from where application is running, or fall back to default region
Region currentRegion = Regions.getCurrentRegion();
if(currentRegion != ... | public class class_name {
private Region findRegion() {
boolean regionProvided = !Validator.isBlank(this.region);
if(!regionProvided) {
// Determine region from where application is running, or fall back to default region
Region currentRegion = Regions.getCurrentRegion();
if(currentRegion != ... |
public class class_name {
protected void resetStickyFooterSelection() {
if (mStickyFooterView instanceof LinearLayout) {
for (int i = 0; i < (mStickyFooterView).getChildCount(); i++) {
(mStickyFooterView).getChildAt(i).setActivated(false);
(mStickyFooterView).getChil... | public class class_name {
protected void resetStickyFooterSelection() {
if (mStickyFooterView instanceof LinearLayout) {
for (int i = 0; i < (mStickyFooterView).getChildCount(); i++) {
(mStickyFooterView).getChildAt(i).setActivated(false); // depends on control dependency: [for], da... |
public class class_name {
@Async
public Future<ImmutableSet<MarketplaceEntry>> loadMarketplaceEntriesFor(
final IPerson user, final Set<PortletCategory> categories) {
final IAuthorizationPrincipal principal =
AuthorizationPrincipalHelper.principalFromUser(user);
List<I... | public class class_name {
@Async
public Future<ImmutableSet<MarketplaceEntry>> loadMarketplaceEntriesFor(
final IPerson user, final Set<PortletCategory> categories) {
final IAuthorizationPrincipal principal =
AuthorizationPrincipalHelper.principalFromUser(user);
List<I... |
public class class_name {
public boolean isUnloadedAtDestination() {
for (HandlingEvent event : deliveryHistory().eventsOrderedByCompletionTime()) {
if (Type.UNLOAD.equals(event.getType()) && getDestination().equals(event.getLocation())) {
return true;
}
}
return false;
} } | public class class_name {
public boolean isUnloadedAtDestination() {
for (HandlingEvent event : deliveryHistory().eventsOrderedByCompletionTime()) {
if (Type.UNLOAD.equals(event.getType()) && getDestination().equals(event.getLocation())) {
return true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public IServiceReference[] getServiceReferences(String clazz, String filter) throws PlatformServicesException {
final String sourceMethod = "getServiceReferences"; //$NON-NLS-1$
boolean isTraceLogging = log.isLoggable(Level.FINER);
if (isTraceLogging) {
log.entering(P... | public class class_name {
@Override
public IServiceReference[] getServiceReferences(String clazz, String filter) throws PlatformServicesException {
final String sourceMethod = "getServiceReferences"; //$NON-NLS-1$
boolean isTraceLogging = log.isLoggable(Level.FINER);
if (isTraceLogging) {
log.entering(P... |
public class class_name {
private IndexType getIndexTypeFromString(String indexTypeAsString)
{
IndexType indexType;
try
{
indexType = IndexType.findByValue(new Integer(indexTypeAsString));
}
catch (NumberFormatException e)
{
try
{... | public class class_name {
private IndexType getIndexTypeFromString(String indexTypeAsString)
{
IndexType indexType;
try
{
indexType = IndexType.findByValue(new Integer(indexTypeAsString)); // depends on control dependency: [try], data = [none]
}
catch (NumberFor... |
public class class_name {
private void sendEntireMessage(JsMessage jsMessage, List<DataSlice> messageSlices)
throws UnsupportedEncodingException, MessageCopyFailedException,
IncorrectMessageTypeException, MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnab... | public class class_name {
private void sendEntireMessage(JsMessage jsMessage, List<DataSlice> messageSlices)
throws UnsupportedEncodingException, MessageCopyFailedException,
IncorrectMessageTypeException, MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnab... |
public class class_name {
synchronized public static String getOldCookieDate(long time) {
if (OLD_COOKIE.getTimeZone() != GMT_TIMEZONE) {
// ensure GMT is used as time zone for the header generation
OLD_COOKIE.setTimeZone(GMT_TIMEZONE);
}
try {
return OLD_C... | public class class_name {
synchronized public static String getOldCookieDate(long time) {
if (OLD_COOKIE.getTimeZone() != GMT_TIMEZONE) {
// ensure GMT is used as time zone for the header generation
OLD_COOKIE.setTimeZone(GMT_TIMEZONE); // depends on control dependency: [if], data = [G... |
public class class_name {
public void marshall(ListFleetsRequest listFleetsRequest, ProtocolMarshaller protocolMarshaller) {
if (listFleetsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(l... | public class class_name {
public void marshall(ListFleetsRequest listFleetsRequest, ProtocolMarshaller protocolMarshaller) {
if (listFleetsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(l... |
public class class_name {
public boolean isIdentity() {
for (int i = 0; i < this.values.length; i++) {
if (this.values[i] != i) {
return false;
}
}
return true;
} } | public class class_name {
public boolean isIdentity() {
for (int i = 0; i < this.values.length; i++) {
if (this.values[i] != i) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
private static void appendAuroraCommandOptions(List<String> auroraCmd, boolean isVerbose) {
// Append verbose if needed
if (isVerbose) {
auroraCmd.add("--verbose");
}
// Append batch size.
// Note that we can not use "--no-batching" since "restart" command does not ... | public class class_name {
private static void appendAuroraCommandOptions(List<String> auroraCmd, boolean isVerbose) {
// Append verbose if needed
if (isVerbose) {
auroraCmd.add("--verbose"); // depends on control dependency: [if], data = [none]
}
// Append batch size.
// Note that we can not... |
public class class_name {
private void addIndex(final Object connection, final AttributeWrapper wrapper, final String rowKey,
final EntityMetadata metadata)
{
Indexer indexer = indexManager.getIndexer();
if (indexer != null && indexer.getClass().getSimpleName().equals("RedisIndexer"))... | public class class_name {
private void addIndex(final Object connection, final AttributeWrapper wrapper, final String rowKey,
final EntityMetadata metadata)
{
Indexer indexer = indexManager.getIndexer();
if (indexer != null && indexer.getClass().getSimpleName().equals("RedisIndexer"))... |
public class class_name {
public void setTextForNullSelection(String text) {
// do nothing if there's no null option
CmsLabelSelectCell cell = m_selectCells.get("");
if (cell == null) {
return;
}
cell.setText(text);
// if the null option is selected, we stil... | public class class_name {
public void setTextForNullSelection(String text) {
// do nothing if there's no null option
CmsLabelSelectCell cell = m_selectCells.get("");
if (cell == null) {
return; // depends on control dependency: [if], data = [none]
}
cell.setText(tex... |
public class class_name {
public List<ImmutableFunctionalTerm> getBodyURIPredicates(PredicateObjectMap pom) {
List<ImmutableFunctionalTerm> predicateAtoms = new ArrayList<>();
// process PREDICATEMAP
for (PredicateMap pm : pom.getPredicateMaps()) {
String pmConstant = pm.getConstant().toString();
if (pmC... | public class class_name {
public List<ImmutableFunctionalTerm> getBodyURIPredicates(PredicateObjectMap pom) {
List<ImmutableFunctionalTerm> predicateAtoms = new ArrayList<>();
// process PREDICATEMAP
for (PredicateMap pm : pom.getPredicateMaps()) {
String pmConstant = pm.getConstant().toString();
if (pmC... |
public class class_name {
private long getOrInsertStyle(StyleRow style) {
long styleId;
if (style.hasId()) {
styleId = style.getId();
} else {
StyleDao styleDao = getStyleDao();
styleId = styleDao.create(style);
}
return styleId;
} } | public class class_name {
private long getOrInsertStyle(StyleRow style) {
long styleId;
if (style.hasId()) {
styleId = style.getId(); // depends on control dependency: [if], data = [none]
} else {
StyleDao styleDao = getStyleDao();
styleId = styleDao.create(s... |
public class class_name {
public void put(int key, Object value) {
if (key < 0) Kit.codeBug();
int index = ensureIndex(key, false);
if (values == null) {
values = new Object[1 << power];
}
values[index] = value;
} } | public class class_name {
public void put(int key, Object value) {
if (key < 0) Kit.codeBug();
int index = ensureIndex(key, false);
if (values == null) {
values = new Object[1 << power]; // depends on control dependency: [if], data = [none]
}
values[index] = value;
... |
public class class_name {
@Override
public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
for (AttributeAccess attr : attributes.values()) {
resourceRegistration.registerReadOnlyAttribute(attr.getAttributeDefinition(), null);
}
} } | public class class_name {
@Override
public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
for (AttributeAccess attr : attributes.values()) {
resourceRegistration.registerReadOnlyAttribute(attr.getAttributeDefinition(), null); // depends on control dependency: [fo... |
public class class_name {
private List<ConnectionFuture<StatefulRedisPubSubConnection<String, String>>> potentiallyConnectSentinels() {
List<ConnectionFuture<StatefulRedisPubSubConnection<String, String>>> connectionFutures = new ArrayList<>();
for (RedisURI sentinel : sentinels) {
if (pu... | public class class_name {
private List<ConnectionFuture<StatefulRedisPubSubConnection<String, String>>> potentiallyConnectSentinels() {
List<ConnectionFuture<StatefulRedisPubSubConnection<String, String>>> connectionFutures = new ArrayList<>();
for (RedisURI sentinel : sentinels) {
if (pu... |
public class class_name {
private StatisticsMapReduce<?> initStatisticsMapReduce(GraqlCompute.Statistics.Value query,
Set<LabelId> targetTypes,
AttributeType.DataType<?> targetDataType) {
Graql... | public class class_name {
private StatisticsMapReduce<?> initStatisticsMapReduce(GraqlCompute.Statistics.Value query,
Set<LabelId> targetTypes,
AttributeType.DataType<?> targetDataType) {
Graql... |
public class class_name {
protected List<Command> buildCommandChain(Config rootConfig, String configKey, Command finalChild, boolean ignoreNotifications) {
Preconditions.checkNotNull(rootConfig);
Preconditions.checkNotNull(configKey);
Preconditions.checkNotNull(finalChild);
List<? extends Config> comma... | public class class_name {
protected List<Command> buildCommandChain(Config rootConfig, String configKey, Command finalChild, boolean ignoreNotifications) {
Preconditions.checkNotNull(rootConfig);
Preconditions.checkNotNull(configKey);
Preconditions.checkNotNull(finalChild);
List<? extends Config> comma... |
public class class_name {
final LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> createRequestMap() {
if (unmappedMatchers != null) {
throw new IllegalStateException(
"An incomplete mapping was found for "
+ unmappedMatchers
+ ". Try completing it with something like requestUrls().<so... | public class class_name {
final LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> createRequestMap() {
if (unmappedMatchers != null) {
throw new IllegalStateException(
"An incomplete mapping was found for "
+ unmappedMatchers
+ ". Try completing it with something like requestUrls().<so... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.