code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected void registerNamespace(
SqlValidatorScope usingScope,
String alias,
SqlValidatorNamespace ns,
boolean forceNullable) {
namespaces.put(ns.getNode(), ns);
if (usingScope != null) {
usingScope.addChild(ns, alias, forceNullable);
}
} } | public class class_name {
protected void registerNamespace(
SqlValidatorScope usingScope,
String alias,
SqlValidatorNamespace ns,
boolean forceNullable) {
namespaces.put(ns.getNode(), ns);
if (usingScope != null) {
usingScope.addChild(ns, alias, forceNullable); // depends on control dependency: [if], da... |
public class class_name {
public void marshall(GetJobRequest getJobRequest, ProtocolMarshaller protocolMarshaller) {
if (getJobRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getJobRequest... | public class class_name {
public void marshall(GetJobRequest getJobRequest, ProtocolMarshaller protocolMarshaller) {
if (getJobRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getJobRequest... |
public class class_name {
public List<Database> getInternalDatabases() {
List<Database> returnList = new ArrayList<>();
for (SortedSet<Database> set : internalDatabases.values()) {
returnList.add(set.iterator().next());
}
return returnList;
} } | public class class_name {
public List<Database> getInternalDatabases() {
List<Database> returnList = new ArrayList<>();
for (SortedSet<Database> set : internalDatabases.values()) {
returnList.add(set.iterator().next()); // depends on control dependency: [for], data = [set]
}
... |
public class class_name {
public void setHeader(String name, String value) {
if(logger.isDebugEnabled()) {
logger.debug("setHeader - name=" + name + ", value=" + value);
}
if(name == null) {
throw new NullPointerException ("name parameter is null");
}
if(value == null) {
throw new NullP... | public class class_name {
public void setHeader(String name, String value) {
if(logger.isDebugEnabled()) {
logger.debug("setHeader - name=" + name + ", value=" + value); // depends on control dependency: [if], data = [none]
}
if(name == null) {
throw new NullPointerException ("name parameter i... |
public class class_name {
public static FloatMatrix gemv(float alpha, FloatMatrix a,
FloatMatrix x, float beta, FloatMatrix y) {
if (false) {
NativeBlas.sgemv('N', a.rows, a.columns, alpha, a.data, 0, a.rows, x.data, 0,
1, beta, y.data, 0, 1);
} else {
if (beta != 0.0f) {
for (int i = 0; i < y.le... | public class class_name {
public static FloatMatrix gemv(float alpha, FloatMatrix a,
FloatMatrix x, float beta, FloatMatrix y) {
if (false) {
NativeBlas.sgemv('N', a.rows, a.columns, alpha, a.data, 0, a.rows, x.data, 0,
1, beta, y.data, 0, 1); // depends on control dependency: [if], data = [none]
} else... |
public class class_name {
public EjbLocalRefType<WebFragmentDescriptor> getOrCreateEjbLocalRef()
{
List<Node> nodeList = model.get("ejb-local-ref");
if (nodeList != null && nodeList.size() > 0)
{
return new EjbLocalRefTypeImpl<WebFragmentDescriptor>(this, "ejb-local-ref", model, nodeList... | public class class_name {
public EjbLocalRefType<WebFragmentDescriptor> getOrCreateEjbLocalRef()
{
List<Node> nodeList = model.get("ejb-local-ref");
if (nodeList != null && nodeList.size() > 0)
{
return new EjbLocalRefTypeImpl<WebFragmentDescriptor>(this, "ejb-local-ref", model, nodeList... |
public class class_name {
public static synchronized void update(Map<String, Object> newConfig) {
if (newConfig == null)
throw new NullPointerException("Updated config must not be null");
// Update the logging configuration
LogProviderConfig config = loggingConfig.get();
if... | public class class_name {
public static synchronized void update(Map<String, Object> newConfig) {
if (newConfig == null)
throw new NullPointerException("Updated config must not be null");
// Update the logging configuration
LogProviderConfig config = loggingConfig.get();
if... |
public class class_name {
@Override
public void preparePaint(final Request request) {
if (windowId == null) {
super.preparePaint(request);
} else {
// Get the window component
ComponentWithContext target = WebUtilities.getComponentById(windowId, true);
if (target == null) {
throw new SystemExcepti... | public class class_name {
@Override
public void preparePaint(final Request request) {
if (windowId == null) {
super.preparePaint(request); // depends on control dependency: [if], data = [none]
} else {
// Get the window component
ComponentWithContext target = WebUtilities.getComponentById(windowId, true)... |
public class class_name {
@SuppressWarnings("unchecked")
public <T extends Annotation> T getParameterAnnotation(Class<T> annotationType) {
Annotation[] anns = getParameterAnnotations();
for (Annotation ann : anns) {
if (annotationType.isInstance(ann)) {
return (T) ann;
... | public class class_name {
@SuppressWarnings("unchecked")
public <T extends Annotation> T getParameterAnnotation(Class<T> annotationType) {
Annotation[] anns = getParameterAnnotations();
for (Annotation ann : anns) {
if (annotationType.isInstance(ann)) {
return (T) ann; /... |
public class class_name {
@Override
public Map<DependencyDescriptor, Set<DependencyDescriptor>> getDependencies() {
if (dependencyMap == null) {
dependencyMap = GradleDependencyResolutionHelper.determineProjectDependencies(project, "runtimeClasspath", true);
}
return dependencyM... | public class class_name {
@Override
public Map<DependencyDescriptor, Set<DependencyDescriptor>> getDependencies() {
if (dependencyMap == null) {
dependencyMap = GradleDependencyResolutionHelper.determineProjectDependencies(project, "runtimeClasspath", true); // depends on control dependency: [i... |
public class class_name {
public CallTreeNode getOrAddChild(String name) {
CallTreeNode child = getChild(name);
if (child == null) {
child = addChild(name);
}
return child;
} } | public class class_name {
public CallTreeNode getOrAddChild(String name) {
CallTreeNode child = getChild(name);
if (child == null) {
child = addChild(name);
// depends on control dependency: [if], data = [none]
}
return child;
} } |
public class class_name {
public static SimpleModule createJacksonModule(boolean serializeLinksAsObjects) {
SimpleModule simpleModule = new SimpleModule(JSON_API_JACKSON_MODULE_NAME,
new Version(1, 0, 0, null, null, null));
simpleModule.addSerializer(new ErrorDataSerializer());
simpleModule.addDeserializer(E... | public class class_name {
public static SimpleModule createJacksonModule(boolean serializeLinksAsObjects) {
SimpleModule simpleModule = new SimpleModule(JSON_API_JACKSON_MODULE_NAME,
new Version(1, 0, 0, null, null, null));
simpleModule.addSerializer(new ErrorDataSerializer());
simpleModule.addDeserializer(E... |
public class class_name {
private Glyph createGlyph(Entity e)
{
String id = convertID(e.getUri());
if (glyphMap.containsKey(id))
return glyphMap.get(id);
// Create its glyph and register
Glyph g = createGlyphBasics(e, true);
glyphMap.put(g.getId(), g);
//TODO: export metadata (e.g., from bpe.getAnnot... | public class class_name {
private Glyph createGlyph(Entity e)
{
String id = convertID(e.getUri());
if (glyphMap.containsKey(id))
return glyphMap.get(id);
// Create its glyph and register
Glyph g = createGlyphBasics(e, true);
glyphMap.put(g.getId(), g);
//TODO: export metadata (e.g., from bpe.getAnnot... |
public class class_name {
@Override
public void contextInitialized(ServletContextEvent servletContextEvent) {
otherListeners.addAll(getDefaultOtherListeners());
contextInitialized(servletContextEvent.getServletContext());
for(ServletContextListener listener : otherListeners) {
try {
liste... | public class class_name {
@Override
public void contextInitialized(ServletContextEvent servletContextEvent) {
otherListeners.addAll(getDefaultOtherListeners());
contextInitialized(servletContextEvent.getServletContext());
for(ServletContextListener listener : otherListeners) {
try {
liste... |
public class class_name {
public ClassSymbol makeFunctionalInterfaceClass(Env<AttrContext> env, Name name, List<Type> targets, long cflags) {
if (targets.isEmpty()) {
return null;
}
Symbol descSym = findDescriptorSymbol(targets.head.tsym);
Type descType = findDescriptorType(... | public class class_name {
public ClassSymbol makeFunctionalInterfaceClass(Env<AttrContext> env, Name name, List<Type> targets, long cflags) {
if (targets.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
Symbol descSym = findDescriptorSymbol(targets.h... |
public class class_name {
public void urlEquals(double seconds, String expectedURL) {
double end = System.currentTimeMillis() + (seconds * 1000);
try {
WebDriverWait wait = new WebDriverWait(app.getDriver(), (long) seconds, DEFAULT_POLLING_INTERVAL);
wait.until(ExpectedCondition... | public class class_name {
public void urlEquals(double seconds, String expectedURL) {
double end = System.currentTimeMillis() + (seconds * 1000);
try {
WebDriverWait wait = new WebDriverWait(app.getDriver(), (long) seconds, DEFAULT_POLLING_INTERVAL);
wait.until(ExpectedCondition... |
public class class_name {
public static BasicTagList copyOf(Iterable<String> tags) {
SmallTagMap.Builder builder = SmallTagMap.builder();
for (String tag : tags) {
builder.add(Tags.parseTag(tag));
}
return new BasicTagList(builder.result());
} } | public class class_name {
public static BasicTagList copyOf(Iterable<String> tags) {
SmallTagMap.Builder builder = SmallTagMap.builder();
for (String tag : tags) {
builder.add(Tags.parseTag(tag)); // depends on control dependency: [for], data = [tag]
}
return new BasicTagList(builder.result());
... |
public class class_name {
public static String encode(byte[] binaryData) {
if (binaryData.length != 16)
return null;
char[] buffer = new char[32];
for (int i = 0; i < 16; i++) {
int low = (int) (binaryData[i] & 0x0f);
int high = (int) ((binaryData[i] & 0xf0... | public class class_name {
public static String encode(byte[] binaryData) {
if (binaryData.length != 16)
return null;
char[] buffer = new char[32];
for (int i = 0; i < 16; i++) {
int low = (int) (binaryData[i] & 0x0f);
int high = (int) ((binaryData[i] & 0xf0... |
public class class_name {
protected void redirectSystemOutAndErr(boolean force) {
if (force || !(System.out instanceof ConsolePrintStream)) {
System.setOut(new ConsolePrintStream(out));
}
if (force || !(System.err instanceof ConsoleErrorPrintStream)) {
System.setErr(new ... | public class class_name {
protected void redirectSystemOutAndErr(boolean force) {
if (force || !(System.out instanceof ConsolePrintStream)) {
System.setOut(new ConsolePrintStream(out)); // depends on control dependency: [if], data = [none]
}
if (force || !(System.err instanceof Cons... |
public class class_name {
public void process(ProjectFile file, FixedData fixedData, Var2Data varData, Map<Integer, FontBase> fontBases)
{
int groupCount = fixedData.getItemCount();
for (int groupLoop = 0; groupLoop < groupCount; groupLoop++)
{
byte[] groupFixedData = fixedData.getByteArr... | public class class_name {
public void process(ProjectFile file, FixedData fixedData, Var2Data varData, Map<Integer, FontBase> fontBases)
{
int groupCount = fixedData.getItemCount();
for (int groupLoop = 0; groupLoop < groupCount; groupLoop++)
{
byte[] groupFixedData = fixedData.getByteArr... |
public class class_name {
private List<XColor> getColorListFromDPTWithValueList(
final List<CTDPt> dptList, final List<ParsedCell> cells,
final ThemesTable themeTable, final ChartObject ctObj) {
List<XColor> colors = new ArrayList<>();
if ((dptList != null) && (cells != null)) {
for (int index = 0;... | public class class_name {
private List<XColor> getColorListFromDPTWithValueList(
final List<CTDPt> dptList, final List<ParsedCell> cells,
final ThemesTable themeTable, final ChartObject ctObj) {
List<XColor> colors = new ArrayList<>();
if ((dptList != null) && (cells != null)) {
for (int index = 0;... |
public class class_name {
public SipCall makeCall(String to, String viaNonProxyRoute, String body, String contentType,
String contentSubType, ArrayList<String> additionalHeaders,
ArrayList<String> replaceHeaders) {
try {
return makeCall(to, viaNonProxyRoute,
toHeader(additionalHeaders, ... | public class class_name {
public SipCall makeCall(String to, String viaNonProxyRoute, String body, String contentType,
String contentSubType, ArrayList<String> additionalHeaders,
ArrayList<String> replaceHeaders) {
try {
return makeCall(to, viaNonProxyRoute,
toHeader(additionalHeaders, ... |
public class class_name {
protected StyledString text(SarlAction element) {
final JvmIdentifiableElement jvmElement = this.jvmModelAssociations.getDirectlyInferredOperation(element);
final String simpleName = element.getName();
if (simpleName != null) {
final QualifiedName qnName = QualifiedName.create(simple... | public class class_name {
protected StyledString text(SarlAction element) {
final JvmIdentifiableElement jvmElement = this.jvmModelAssociations.getDirectlyInferredOperation(element);
final String simpleName = element.getName();
if (simpleName != null) {
final QualifiedName qnName = QualifiedName.create(simple... |
public class class_name {
public boolean canSendPacket(RTMPMessage message, long pending) {
IRTMPEvent packet = message.getBody();
boolean result = true;
// We currently only drop video packets.
if (packet instanceof VideoData) {
VideoData video = (VideoData) packet;
... | public class class_name {
public boolean canSendPacket(RTMPMessage message, long pending) {
IRTMPEvent packet = message.getBody();
boolean result = true;
// We currently only drop video packets.
if (packet instanceof VideoData) {
VideoData video = (VideoData) packet;
... |
public class class_name {
public Property getProperty( Object target,
String propertyName,
String label,
String category,
String description,
Object... al... | public class class_name {
public Property getProperty( Object target,
String propertyName,
String label,
String category,
String description,
Object... al... |
public class class_name {
public static final synchronized KnowledgeRuntimeManager getRuntimeManager(QName serviceDomainName, QName serviceName) {
if (serviceDomainName == null) {
serviceDomainName = ROOT_DOMAIN;
}
Map<QName, KnowledgeRuntimeManager> reg = REGISTRY.get(serviceDomain... | public class class_name {
public static final synchronized KnowledgeRuntimeManager getRuntimeManager(QName serviceDomainName, QName serviceName) {
if (serviceDomainName == null) {
serviceDomainName = ROOT_DOMAIN; // depends on control dependency: [if], data = [none]
}
Map<QName, Kno... |
public class class_name {
public RequestDispatcher getNamedDispatcher(String name)
{
if (name == null || name.length()==0)
name=__DEFAULT_SERVLET;
try { return new Dispatcher(ServletHandler.this,name); }
catch(Exception e) {LogSupport.ignore(log,e);}
return nul... | public class class_name {
public RequestDispatcher getNamedDispatcher(String name)
{
if (name == null || name.length()==0)
name=__DEFAULT_SERVLET;
try { return new Dispatcher(ServletHandler.this,name); } // depends on control dependency: [try], data = [none]
catch(Exception e) ... |
public class class_name {
public Yoke listen(int port, @NotNull String address, final Handler<Boolean> handler) {
HttpServer server = vertx.createHttpServer();
listen(server);
if (handler != null) {
server.listen(port, address, new Handler<AsyncResult<HttpServer>>() {
... | public class class_name {
public Yoke listen(int port, @NotNull String address, final Handler<Boolean> handler) {
HttpServer server = vertx.createHttpServer();
listen(server);
if (handler != null) {
server.listen(port, address, new Handler<AsyncResult<HttpServer>>() {
... |
public class class_name {
public final OrderSpecifier<T> asc() {
if (asc == null) {
asc = new OrderSpecifier<T>(Order.ASC, mixin);
}
return asc;
} } | public class class_name {
public final OrderSpecifier<T> asc() {
if (asc == null) {
asc = new OrderSpecifier<T>(Order.ASC, mixin); // depends on control dependency: [if], data = [none]
}
return asc;
} } |
public class class_name {
private ODocument getEdgeWithPossibleId(String start, String end, List<String> ids) {
List<ODocument> edges = getEdgesBetweenModels(start, end);
for (ODocument edge : edges) {
if (ids.contains(OrientModelGraphUtils.getIdFieldValue(edge))) {
return e... | public class class_name {
private ODocument getEdgeWithPossibleId(String start, String end, List<String> ids) {
List<ODocument> edges = getEdgesBetweenModels(start, end);
for (ODocument edge : edges) {
if (ids.contains(OrientModelGraphUtils.getIdFieldValue(edge))) {
return e... |
public class class_name {
@Override
public T next() {
/* If the item is null and we are complete then calling this is a programming error. */
if (next == null && complete) {
throw new NoSuchElementException("The stream has completed. There are no more items.");
}
/* If... | public class class_name {
@Override
public T next() {
/* If the item is null and we are complete then calling this is a programming error. */
if (next == null && complete) {
throw new NoSuchElementException("The stream has completed. There are no more items.");
}
/* If... |
public class class_name {
public void parseSequenceFlowConditionExpression(Element seqFlowElement, TransitionImpl seqFlow) {
Element conditionExprElement = seqFlowElement.element(CONDITION_EXPRESSION);
if (conditionExprElement != null) {
Condition condition = parseConditionExpression(conditionExprElement... | public class class_name {
public void parseSequenceFlowConditionExpression(Element seqFlowElement, TransitionImpl seqFlow) {
Element conditionExprElement = seqFlowElement.element(CONDITION_EXPRESSION);
if (conditionExprElement != null) {
Condition condition = parseConditionExpression(conditionExprElement... |
public class class_name {
@Override
public CompletableFuture<Tuple2<List<String>, ExecutionInfo>> getListJSONAsyncWithStats() {
final RuntimeEngine rte = getRte();
final CassandraOptions options = getOptions();
final StatementWrapper statementWrapper = getInternalBoundStatementWrapper();
... | public class class_name {
@Override
public CompletableFuture<Tuple2<List<String>, ExecutionInfo>> getListJSONAsyncWithStats() {
final RuntimeEngine rte = getRte();
final CassandraOptions options = getOptions();
final StatementWrapper statementWrapper = getInternalBoundStatementWrapper();
... |
public class class_name {
private static String toSingleLoopLineMmCifString(Object record, Field[] fields, int[] sizes) {
StringBuilder str = new StringBuilder();
Class<?> c = record.getClass();
if(fields == null)
fields = getFields(c);
if (sizes.length!=fields.length)
throw new IllegalArgumentExcept... | public class class_name {
private static String toSingleLoopLineMmCifString(Object record, Field[] fields, int[] sizes) {
StringBuilder str = new StringBuilder();
Class<?> c = record.getClass();
if(fields == null)
fields = getFields(c);
if (sizes.length!=fields.length)
throw new IllegalArgumentExcept... |
public class class_name {
public static String getMimeTypeForFile(URL url) {
if (url == null) {
//The input url is null so we can't retrieve a mimetype, therefore we return null.
return null;
}
String external = url.toExternalForm();
if (external.indexOf('.') == ... | public class class_name {
public static String getMimeTypeForFile(URL url) {
if (url == null) {
//The input url is null so we can't retrieve a mimetype, therefore we return null.
return null; // depends on control dependency: [if], data = [none]
}
String external = url.t... |
public class class_name {
public static int parseNumericAddress(String ipaddr) {
Matcher m = IP_ADDRESS_PATTERN.matcher(ipaddr);
int ipInt = 0;
if (m.find()) {
for (int i = 1;i < 5;i++)
try {
int ipVal = Integer.valueOf(m.group(i)).intValue();
if ( ipVal < 0 || ipVal > 25... | public class class_name {
public static int parseNumericAddress(String ipaddr) {
Matcher m = IP_ADDRESS_PATTERN.matcher(ipaddr);
int ipInt = 0;
if (m.find()) {
for (int i = 1;i < 5;i++)
try {
int ipVal = Integer.valueOf(m.group(i)).intValue();
if ( ipVal < 0 || ipVal > 25... |
public class class_name {
public final void registerConfiguration(URL nextLocation) {
BindingConfiguration configuration = BindingXmlLoader.load(nextLocation);
for (Provider nextProvider : configuration.getProviders()) {
try {
registerConverterP... | public class class_name {
public final void registerConfiguration(URL nextLocation) {
BindingConfiguration configuration = BindingXmlLoader.load(nextLocation);
for (Provider nextProvider : configuration.getProviders()) {
try {
registerConverterP... |
public class class_name {
public void marshall(SimpleEmailPart simpleEmailPart, ProtocolMarshaller protocolMarshaller) {
if (simpleEmailPart == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(simpleE... | public class class_name {
public void marshall(SimpleEmailPart simpleEmailPart, ProtocolMarshaller protocolMarshaller) {
if (simpleEmailPart == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(simpleE... |
public class class_name {
public static long nextThursdayMidnightPlus(long now, long plus) {
long next = (now + timeZoneOffset) / WEEK * WEEK - timeZoneOffset;
next += plus;
if (next < now) {
next += WEEK;
}
return next;
} } | public class class_name {
public static long nextThursdayMidnightPlus(long now, long plus) {
long next = (now + timeZoneOffset) / WEEK * WEEK - timeZoneOffset;
next += plus;
if (next < now) {
next += WEEK;
// depends on control dependency: [if], data = [none]
}
return next;
} } |
public class class_name {
static public String normalize(String path) {
if (path == null || path.length() == 0) return ROOT;
if (path.charAt(0) != PATH_SEPARATOR) {
throw new IllegalArgumentException(
"Network Location path does not start with "
... | public class class_name {
static public String normalize(String path) {
if (path == null || path.length() == 0) return ROOT;
if (path.charAt(0) != PATH_SEPARATOR) {
throw new IllegalArgumentException(
"Network Location path does not start with "
... |
public class class_name {
private ConcurrentHashMap<JobVertexID, TaskStateStats> createEmptyTaskStateStatsMap() {
ConcurrentHashMap<JobVertexID, TaskStateStats> taskStatsMap = new ConcurrentHashMap<>(jobVertices.size());
for (ExecutionJobVertex vertex : jobVertices) {
TaskStateStats taskStats = new TaskStateSta... | public class class_name {
private ConcurrentHashMap<JobVertexID, TaskStateStats> createEmptyTaskStateStatsMap() {
ConcurrentHashMap<JobVertexID, TaskStateStats> taskStatsMap = new ConcurrentHashMap<>(jobVertices.size());
for (ExecutionJobVertex vertex : jobVertices) {
TaskStateStats taskStats = new TaskStateSta... |
public class class_name {
void updateGCcounters(){
long gccount = 0;
long gctime = 0;
for(GarbageCollectorMXBean gc :
ManagementFactory.getGarbageCollectorMXBeans()) {
long count = gc.getCollectionCount();
if(count >= 0) {
gccount += count;
}
long ... | public class class_name {
void updateGCcounters(){
long gccount = 0;
long gctime = 0;
for(GarbageCollectorMXBean gc :
ManagementFactory.getGarbageCollectorMXBeans()) {
long count = gc.getCollectionCount();
if(count >= 0) {
gccount += count; // depends on control depe... |
public class class_name {
public boolean hasRelation(Interval interval1, Interval interval2) {
if (interval1 == null || interval2 == null) {
return false;
}
Long minStart1 = interval1.getMinimumStart();
Long maxStart1 = interval1.getMaximumStart();
Long minFinish1 = ... | public class class_name {
public boolean hasRelation(Interval interval1, Interval interval2) {
if (interval1 == null || interval2 == null) {
return false; // depends on control dependency: [if], data = [none]
}
Long minStart1 = interval1.getMinimumStart();
Long maxStart1 = i... |
public class class_name {
public String getPath() {
String path = getFullPath();
if (m_relativeTo != null) {
path = getResource().getRootPath();
if (path.startsWith(m_relativeTo)) {
path = path.substring(m_relativeTo.length());
if (path.length() ... | public class class_name {
public String getPath() {
String path = getFullPath();
if (m_relativeTo != null) {
path = getResource().getRootPath(); // depends on control dependency: [if], data = [none]
if (path.startsWith(m_relativeTo)) {
path = path.substring(m_re... |
public class class_name {
public void marshall(ResetServiceSettingRequest resetServiceSettingRequest, ProtocolMarshaller protocolMarshaller) {
if (resetServiceSettingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... | public class class_name {
public void marshall(ResetServiceSettingRequest resetServiceSettingRequest, ProtocolMarshaller protocolMarshaller) {
if (resetServiceSettingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... |
public class class_name {
public boolean deleteApplication(String appName, String key) {
Utils.require(!m_restClient.isClosed(), "Client has been closed");
Utils.require(appName != null && appName.length() > 0, "appName");
try {
// Send a DELETE request to "/_applicati... | public class class_name {
public boolean deleteApplication(String appName, String key) {
Utils.require(!m_restClient.isClosed(), "Client has been closed");
Utils.require(appName != null && appName.length() > 0, "appName");
try {
// Send a DELETE request to "/_applicati... |
public class class_name {
public Pair<List<SuggestedReplacement>, SortedMap<String, Float>> computeFeatures(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos) {
if (suggestions.isEmpty()) {
return Pair.of(Collections.emptyList(), Collections.emptySortedMap());
}
if (topN ... | public class class_name {
public Pair<List<SuggestedReplacement>, SortedMap<String, Float>> computeFeatures(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos) {
if (suggestions.isEmpty()) {
return Pair.of(Collections.emptyList(), Collections.emptySortedMap()); // depends on contr... |
public class class_name {
public static Token makeReferenceToken(String bean, String template, String parameter,
String attribute, String property) {
Token token;
if (bean != null) {
token = new Token(TokenType.BEAN, bean);
} else if (templ... | public class class_name {
public static Token makeReferenceToken(String bean, String template, String parameter,
String attribute, String property) {
Token token;
if (bean != null) {
token = new Token(TokenType.BEAN, bean); // depends on control de... |
public class class_name {
public static String filterStackTraces(String txt) {
// Check for stack traces, which we may want to trim
StackTraceFlags stackTraceFlags = traceFlags.get();
// We have a little thread-local state machine here with four states controlled by two
// booleans. Our... | public class class_name {
public static String filterStackTraces(String txt) {
// Check for stack traces, which we may want to trim
StackTraceFlags stackTraceFlags = traceFlags.get();
// We have a little thread-local state machine here with four states controlled by two
// booleans. Our... |
public class class_name {
protected Map<String, List<Object>> buildImmutableAttributeMap(final Map<String, List<Object>> attributes) {
final Map<String, List<Object>> immutableValuesBuilder = this.createImmutableAttributeMap(attributes.size());
final Pattern arrayPattern = Pattern.compile("\\{(.*)\\}")... | public class class_name {
protected Map<String, List<Object>> buildImmutableAttributeMap(final Map<String, List<Object>> attributes) {
final Map<String, List<Object>> immutableValuesBuilder = this.createImmutableAttributeMap(attributes.size());
final Pattern arrayPattern = Pattern.compile("\\{(.*)\\}")... |
public class class_name {
public java.util.List<String> getUpdateStatus() {
if (updateStatus == null) {
updateStatus = new com.amazonaws.internal.SdkInternalList<String>();
}
return updateStatus;
} } | public class class_name {
public java.util.List<String> getUpdateStatus() {
if (updateStatus == null) {
updateStatus = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return updateStatus;
} } |
public class class_name {
public static boolean checkPositionInside(Element element, int x, int y) {
// ignore x / left-right values for x == -1
if (x != -1) {
// check if the mouse pointer is within the width of the target
int left = CmsDomUtil.getRelativeX(x, element);
... | public class class_name {
public static boolean checkPositionInside(Element element, int x, int y) {
// ignore x / left-right values for x == -1
if (x != -1) {
// check if the mouse pointer is within the width of the target
int left = CmsDomUtil.getRelativeX(x, element);
... |
public class class_name {
@Override
public void addExtraState(EntityEntryExtraState extraState) {
if ( next == null ) {
next = extraState;
}
else {
next.addExtraState( extraState );
}
} } | public class class_name {
@Override
public void addExtraState(EntityEntryExtraState extraState) {
if ( next == null ) {
next = extraState; // depends on control dependency: [if], data = [none]
}
else {
next.addExtraState( extraState ); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static void register(ContentViewer handler) {
if (handler.isEditor()) {
String[] types = handler.getTypes();
for (String element : types) {
s_editors.put(element, handler);
}
}
String[] types = handler.getTypes... | public class class_name {
public static void register(ContentViewer handler) {
if (handler.isEditor()) {
String[] types = handler.getTypes();
for (String element : types) {
s_editors.put(element, handler); // depends on control dependency: [for], data = [element]
... |
public class class_name {
public static void heapSort(int[] arrays) {
// 将待排序的序列构建成一个大顶堆
for (int i = arrays.length / ValueConsts.TWO_INT; i >= 0; i--) {
heapAdjust(arrays, i, arrays.length);
}
// 逐步将每个最大值的根节点与末尾元素交换,并且再调整二叉树,使其成为大顶堆
for (int i = arrays.length - 1; i... | public class class_name {
public static void heapSort(int[] arrays) {
// 将待排序的序列构建成一个大顶堆
for (int i = arrays.length / ValueConsts.TWO_INT; i >= 0; i--) {
heapAdjust(arrays, i, arrays.length); // depends on control dependency: [for], data = [i]
}
// 逐步将每个最大值的根节点与末尾元素交换,并且再调整二... |
public class class_name {
@Override
protected void visitLetContentNode(LetContentNode node) {
String generatedVarName = node.getUniqueVarName();
Expression generatedVar = id(generatedVarName);
// Generate code to define the local var.
jsCodeBuilder.pushOutputVar(generatedVarName);
visitChildren... | public class class_name {
@Override
protected void visitLetContentNode(LetContentNode node) {
String generatedVarName = node.getUniqueVarName();
Expression generatedVar = id(generatedVarName);
// Generate code to define the local var.
jsCodeBuilder.pushOutputVar(generatedVarName);
visitChildren... |
public class class_name {
private String simpleServiceNames(Collection<Service> services) {
StringBuilder buffer = new StringBuilder();
for (Service service : services) {
if (buffer.length() > 0) {
buffer.append(",");
}
buffer.append(service.get... | public class class_name {
private String simpleServiceNames(Collection<Service> services) {
StringBuilder buffer = new StringBuilder();
for (Service service : services) {
if (buffer.length() > 0) {
buffer.append(",");
// depends on control dependency: [if], data = [none... |
public class class_name {
public int getSize() {
if (size < 0) {
size = 0;
for (byte[] cache: start) {
size += new RemoteOneFileCache(cache).getSize();
}
for (byte[] cache: end) {
size += new RemoteOneFileCache(cache).getSize();
}
}
return size;
} } | public class class_name {
public int getSize() {
if (size < 0) {
size = 0; // depends on control dependency: [if], data = [none]
for (byte[] cache: start) {
size += new RemoteOneFileCache(cache).getSize(); // depends on control dependency: [for], data = [cache]
}
for (byte[] cache: end) {
size +=... |
public class class_name {
private void showToast(@Nullable final String text) {
if (toast != null) {
toast.cancel();
}
toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);
toast.show();
} } | public class class_name {
private void showToast(@Nullable final String text) {
if (toast != null) {
toast.cancel(); // depends on control dependency: [if], data = [none]
}
toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);
toast.show();
} } |
public class class_name {
public <S> List<S> select(List<EvaluatedCandidate<S>> population,
boolean naturalFitnessScores,
int selectionSize,
Random rng)
{
// Record the cumulative fitness scores. It doesn't matter wh... | public class class_name {
public <S> List<S> select(List<EvaluatedCandidate<S>> population,
boolean naturalFitnessScores,
int selectionSize,
Random rng)
{
// Record the cumulative fitness scores. It doesn't matter wh... |
public class class_name {
public int updateExpirationTime(Object id, long oldExpirationTime, int size, long newExpirationTime, long newValidatorExpirationTime) {
int returnCode = this.htod.updateExpirationTime(id, oldExpirationTime, size, newExpirationTime, newValidatorExpirationTime);
if (returnCode =... | public class class_name {
public int updateExpirationTime(Object id, long oldExpirationTime, int size, long newExpirationTime, long newValidatorExpirationTime) {
int returnCode = this.htod.updateExpirationTime(id, oldExpirationTime, size, newExpirationTime, newValidatorExpirationTime);
if (returnCode =... |
public class class_name {
public static <A> double[] toPrimitiveDoubleArray(A data, NumberArrayAdapter<?, A> adapter) {
if(adapter == DoubleArrayAdapter.STATIC) {
return ((double[]) data).clone();
}
final int len = adapter.size(data);
double[] x = new double[len];
for(int i = 0; i < len; i++)... | public class class_name {
public static <A> double[] toPrimitiveDoubleArray(A data, NumberArrayAdapter<?, A> adapter) {
if(adapter == DoubleArrayAdapter.STATIC) {
return ((double[]) data).clone(); // depends on control dependency: [if], data = [none]
}
final int len = adapter.size(data);
double[]... |
public class class_name {
public void addChildren( Iterable<PlanNode> otherChildren ) {
assert otherChildren != null;
for (PlanNode planNode : otherChildren) {
this.addLastChild(planNode);
}
} } | public class class_name {
public void addChildren( Iterable<PlanNode> otherChildren ) {
assert otherChildren != null;
for (PlanNode planNode : otherChildren) {
this.addLastChild(planNode); // depends on control dependency: [for], data = [planNode]
}
} } |
public class class_name {
private void cacheFieldRefKey(String fieldCacheKey,String idCacheKey,long expired){
if(nullValueCache){
getCacheProvider().set(fieldCacheKey, idCacheKey, expired);
}else{
getCacheProvider().setStr(fieldCacheKey, idCacheKey, expired);
}
} } | public class class_name {
private void cacheFieldRefKey(String fieldCacheKey,String idCacheKey,long expired){
if(nullValueCache){
getCacheProvider().set(fieldCacheKey, idCacheKey, expired);
// depends on control dependency: [if], data = [none]
}else{
getCacheProvider().setStr(fieldCacheKey, idCacheKey, e... |
public class class_name {
public static ServiceReference<Application> getApplicationServiceRef(BundleContext bundleContext, String applicationName) {
ServiceReference<Application> appRef = null;
if (FrameworkState.isValid()) {
Collection<ServiceReference<Application>> appRefs;
... | public class class_name {
public static ServiceReference<Application> getApplicationServiceRef(BundleContext bundleContext, String applicationName) {
ServiceReference<Application> appRef = null;
if (FrameworkState.isValid()) {
Collection<ServiceReference<Application>> appRefs;
... |
public class class_name {
public void marshall(SqlQueryDatasetAction sqlQueryDatasetAction, ProtocolMarshaller protocolMarshaller) {
if (sqlQueryDatasetAction == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(SqlQueryDatasetAction sqlQueryDatasetAction, ProtocolMarshaller protocolMarshaller) {
if (sqlQueryDatasetAction == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
@Override
public Response createApplication( Application app ) {
this.logger.fine( "Request: create application " + app + "." );
Response result;
try {
String tplName = app.getTemplate() == null ? null : app.getTemplate().getName();
String tplQualifier = app.getTemplate() == nul... | public class class_name {
@Override
public Response createApplication( Application app ) {
this.logger.fine( "Request: create application " + app + "." );
Response result;
try {
String tplName = app.getTemplate() == null ? null : app.getTemplate().getName();
String tplQualifier = app.getTemplate() == nul... |
public class class_name {
public static double volumeUnionScaled(SpatialComparable box1, SpatialComparable box2, double scale) {
final int dim = assertSameDimensionality(box1, box2);
double volume = 1.;
for(int i = 0; i < dim; i++) {
final double min = Math.min(box1.getMin(i), box2.getMin(i));
... | public class class_name {
public static double volumeUnionScaled(SpatialComparable box1, SpatialComparable box2, double scale) {
final int dim = assertSameDimensionality(box1, box2);
double volume = 1.;
for(int i = 0; i < dim; i++) {
final double min = Math.min(box1.getMin(i), box2.getMin(i));
... |
public class class_name {
public OverlayIcon withOverlay(ImageIcon ... overlays) {
if(overlays != null) {
for(ImageIcon overlay : overlays) {
this.overlays.add(overlay);
}
}
return this;
} } | public class class_name {
public OverlayIcon withOverlay(ImageIcon ... overlays) {
if(overlays != null) {
for(ImageIcon overlay : overlays) {
this.overlays.add(overlay); // depends on control dependency: [for], data = [overlay]
}
}
return this;
} } |
public class class_name {
public static Partitions parse(String nodes) {
Partitions result = new Partitions();
try {
List<RedisClusterNode> mappedNodes = TOKEN_PATTERN.splitAsStream(nodes).filter(s -> !s.isEmpty())
.map(ClusterPartitionParser::parseNode).collect(Collect... | public class class_name {
public static Partitions parse(String nodes) {
Partitions result = new Partitions();
try {
List<RedisClusterNode> mappedNodes = TOKEN_PATTERN.splitAsStream(nodes).filter(s -> !s.isEmpty())
.map(ClusterPartitionParser::parseNode).collect(Collect... |
public class class_name {
private static ThreadPoolExecutor build(ExecutorBuilder builder) {
final int corePoolSize = builder.corePoolSize;
final int maxPoolSize = builder.maxPoolSize;
final long keepAliveTime = builder.keepAliveTime;
final BlockingQueue<Runnable> workQueue;
if (null != builder.workQueu... | public class class_name {
private static ThreadPoolExecutor build(ExecutorBuilder builder) {
final int corePoolSize = builder.corePoolSize;
final int maxPoolSize = builder.maxPoolSize;
final long keepAliveTime = builder.keepAliveTime;
final BlockingQueue<Runnable> workQueue;
if (null != builder.workQueu... |
public class class_name {
private Date getRunDate(GitHubRepo repo, boolean firstRun) {
if (firstRun) {
int firstRunDaysHistory = settings.getFirstRunHistoryDays();
if (firstRunDaysHistory > 0) {
return getDate(new Date(), -firstRunDaysHistory, 0);
} else {
... | public class class_name {
private Date getRunDate(GitHubRepo repo, boolean firstRun) {
if (firstRun) {
int firstRunDaysHistory = settings.getFirstRunHistoryDays();
if (firstRunDaysHistory > 0) {
return getDate(new Date(), -firstRunDaysHistory, 0); // depends on control d... |
public class class_name {
private Set<String> validateJobHealthCheck(final Job job) {
final HealthCheck healthCheck = job.getHealthCheck();
if (healthCheck == null) {
return emptySet();
}
final Set<String> errors = Sets.newHashSet();
if (healthCheck instanceof ExecHealthCheck) {
fina... | public class class_name {
private Set<String> validateJobHealthCheck(final Job job) {
final HealthCheck healthCheck = job.getHealthCheck();
if (healthCheck == null) {
return emptySet(); // depends on control dependency: [if], data = [none]
}
final Set<String> errors = Sets.newHashSet();
if... |
public class class_name {
private void decodeSubmittedValues(final FacesContext context, final Sheet sheet, final String jsonData) {
if (LangUtils.isValueBlank(jsonData)) {
return;
}
try {
// data comes in as a JSON Object with named properties for the row and columns
... | public class class_name {
private void decodeSubmittedValues(final FacesContext context, final Sheet sheet, final String jsonData) {
if (LangUtils.isValueBlank(jsonData)) {
return; // depends on control dependency: [if], data = [none]
}
try {
// data comes in as a JSON ... |
public class class_name {
public ApplicationGetOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null;
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate);
}
return this;
} } | public class class_name {
public ApplicationGetOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null; // depends on control dependency: [if], data = [none]
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate); // depends on control dependency: [if], ... |
public class class_name {
@Override
public void deregisterFactory(String name) {
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
if (bTrace && tc.isDebugEnabled()) {
Tr.debug(tc, "Removing factory registration: " + name);
}
Class<?> factory = null;
s... | public class class_name {
@Override
public void deregisterFactory(String name) {
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
if (bTrace && tc.isDebugEnabled()) {
Tr.debug(tc, "Removing factory registration: " + name); // depends on control dependency: [if], data = [none... |
public class class_name {
static String dbgBuffer(ByteBuffer b, int size) {
StringBuilder sb = new StringBuilder();
byte[] bytes = b.array();
for (int i = 0; i < size; i++) {
char ch = (char) bytes[i];
if (Character.isWhitespace(ch) || Character.isLetterOrDigit(ch)) {
sb.append(ch);
... | public class class_name {
static String dbgBuffer(ByteBuffer b, int size) {
StringBuilder sb = new StringBuilder();
byte[] bytes = b.array();
for (int i = 0; i < size; i++) {
char ch = (char) bytes[i];
if (Character.isWhitespace(ch) || Character.isLetterOrDigit(ch)) {
sb.append(ch); // ... |
public class class_name {
public Observable<ServiceResponse<InputStream>> downloadQueryLogsWithServiceResponseAsync(UUID appId) {
if (this.client.endpoint() == null) {
throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");
}
if (appId... | public class class_name {
public Observable<ServiceResponse<InputStream>> downloadQueryLogsWithServiceResponseAsync(UUID appId) {
if (this.client.endpoint() == null) {
throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");
}
if (appId... |
public class class_name {
protected void fillRemainingFlowCapacityAndLastDispatchedTime(final ExecutorInfo stats) {
final AzkabanExecutorServer server = AzkabanExecutorServer.getApp();
if (server != null) {
final FlowRunnerManager runnerMgr = AzkabanExecutorServer.getApp().getFlowRunnerManager();
... | public class class_name {
protected void fillRemainingFlowCapacityAndLastDispatchedTime(final ExecutorInfo stats) {
final AzkabanExecutorServer server = AzkabanExecutorServer.getApp();
if (server != null) {
final FlowRunnerManager runnerMgr = AzkabanExecutorServer.getApp().getFlowRunnerManager();
... |
public class class_name {
@NonNull
public final synchronized ChronosListener getListener(final int id) {
ChronosListener chronosListener = mListeners.get(id);
if (chronosListener == null) {
chronosListener = new ChronosListener(id);
mListeners.put(id, chronosListener);
... | public class class_name {
@NonNull
public final synchronized ChronosListener getListener(final int id) {
ChronosListener chronosListener = mListeners.get(id);
if (chronosListener == null) {
chronosListener = new ChronosListener(id); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(AttachThingPrincipalRequest attachThingPrincipalRequest, ProtocolMarshaller protocolMarshaller) {
if (attachThingPrincipalRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(AttachThingPrincipalRequest attachThingPrincipalRequest, ProtocolMarshaller protocolMarshaller) {
if (attachThingPrincipalRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public java.util.List<MetricDataQuery> getMetricDataQueries() {
if (metricDataQueries == null) {
metricDataQueries = new com.amazonaws.internal.SdkInternalList<MetricDataQuery>();
}
return metricDataQueries;
} } | public class class_name {
public java.util.List<MetricDataQuery> getMetricDataQueries() {
if (metricDataQueries == null) {
metricDataQueries = new com.amazonaws.internal.SdkInternalList<MetricDataQuery>(); // depends on control dependency: [if], data = [none]
}
return metricDataQuer... |
public class class_name {
@Override
public int compareTo(SAXRecord o) {
int a = this.occurrences.size();
int b = o.getIndexes().size();
if (a == b) {
return 0;
}
else if (a > b) {
return 1;
}
return -1;
} } | public class class_name {
@Override
public int compareTo(SAXRecord o) {
int a = this.occurrences.size();
int b = o.getIndexes().size();
if (a == b) {
return 0; // depends on control dependency: [if], data = [none]
}
else if (a > b) {
return 1; // depends on control dependency: [if], d... |
public class class_name {
@Override
public void generateSerializeOnXml(BindTypeContext context, MethodSpec.Builder methodBuilder, String serializerName, TypeName beanClass, String beanName, BindProperty property) {
XmlType xmlType = property.xmlInfo.xmlType;
if (property.isNullable() && !property.isInCollection(... | public class class_name {
@Override
public void generateSerializeOnXml(BindTypeContext context, MethodSpec.Builder methodBuilder, String serializerName, TypeName beanClass, String beanName, BindProperty property) {
XmlType xmlType = property.xmlInfo.xmlType;
if (property.isNullable() && !property.isInCollection(... |
public class class_name {
private boolean findAndMoveParentWithChildren(
Set<CmsResource> originalSet,
ResourceMap reachability,
ResourceMap result) {
for (CmsResource parent : originalSet) {
Set<CmsResource> reachableResources = reachability.get(parent);
Set<Cm... | public class class_name {
private boolean findAndMoveParentWithChildren(
Set<CmsResource> originalSet,
ResourceMap reachability,
ResourceMap result) {
for (CmsResource parent : originalSet) {
Set<CmsResource> reachableResources = reachability.get(parent);
Set<Cm... |
public class class_name {
private static String getAnnotationAttributeValueFrom(
final Class<?> annotationType,
final String attributeName,
final List<JavaAnnotation> annotations) {
// QDox uses the fully qualified class name of the annotation for comparison.
// Ext... | public class class_name {
private static String getAnnotationAttributeValueFrom(
final Class<?> annotationType,
final String attributeName,
final List<JavaAnnotation> annotations) {
// QDox uses the fully qualified class name of the annotation for comparison.
// Ext... |
public class class_name {
private DSAParametersGenerator getGenerator(String hint)
{
if (hint == null || "SHA-1".equals(hint)) {
return new DSAParametersGenerator();
}
DigestFactory factory;
try {
factory = this.manager.getInstance(DigestFactory.class, hint... | public class class_name {
private DSAParametersGenerator getGenerator(String hint)
{
if (hint == null || "SHA-1".equals(hint)) {
return new DSAParametersGenerator(); // depends on control dependency: [if], data = [none]
}
DigestFactory factory;
try {
factor... |
public class class_name {
Map getTrmProperties() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getTrmProperties");
}
final Map trmProperties = new HashMap();
final String trmBusName = getBusName();
if ((trmBusNam... | public class class_name {
Map getTrmProperties() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getTrmProperties"); // depends on control dependency: [if], data = [none]
}
final Map trmProperties = new HashMap();
final St... |
public class class_name {
public byte[] toByteArray(final ArrayOfItemsSerDe<? super T> serDe) {
if (itemsSeen_ == 0) {
// null class is ok since empty -- no need to call serDe
return toByteArray(serDe, null);
} else {
return toByteArray(serDe, data_.get(0).getClass());
}
} } | public class class_name {
public byte[] toByteArray(final ArrayOfItemsSerDe<? super T> serDe) {
if (itemsSeen_ == 0) {
// null class is ok since empty -- no need to call serDe
return toByteArray(serDe, null); // depends on control dependency: [if], data = [none]
} else {
return toByteArray(se... |
public class class_name {
public void clientInboundTrailers(Metadata trailers) {
for (StreamTracer tracer : tracers) {
((ClientStreamTracer) tracer).inboundTrailers(trailers);
}
} } | public class class_name {
public void clientInboundTrailers(Metadata trailers) {
for (StreamTracer tracer : tracers) {
((ClientStreamTracer) tracer).inboundTrailers(trailers); // depends on control dependency: [for], data = [tracer]
}
} } |
public class class_name {
@GwtIncompatible("Unnecessary")
private static void maybeCreateDirsForPath(String pathPrefix) {
if (!Strings.isNullOrEmpty(pathPrefix)) {
String dirName =
pathPrefix.charAt(pathPrefix.length() - 1) == File.separatorChar
? pathPrefix.substring(0, pathPrefix.... | public class class_name {
@GwtIncompatible("Unnecessary")
private static void maybeCreateDirsForPath(String pathPrefix) {
if (!Strings.isNullOrEmpty(pathPrefix)) {
String dirName =
pathPrefix.charAt(pathPrefix.length() - 1) == File.separatorChar
? pathPrefix.substring(0, pathPrefix.... |
public class class_name {
public XidImpl getXidImpl(boolean createIfAbsent) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getXidImpl", new Object[] { this, createIfAbsent });
if (createIfAbsent && (_xid == null)) {
// Create an XID as this transaction identifier.
_xid = ... | public class class_name {
public XidImpl getXidImpl(boolean createIfAbsent) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getXidImpl", new Object[] { this, createIfAbsent });
if (createIfAbsent && (_xid == null)) {
// Create an XID as this transaction identifier.
_xid = ... |
public class class_name {
private static <T> void batchReject(T[] array, int start, int end, FastListRejectProcedure<T> castProcedure)
{
for (int i = start; i < end; i++)
{
castProcedure.value(array[i]);
}
} } | public class class_name {
private static <T> void batchReject(T[] array, int start, int end, FastListRejectProcedure<T> castProcedure)
{
for (int i = start; i < end; i++)
{
castProcedure.value(array[i]); // depends on control dependency: [for], data = [i]
}
} } |
public class class_name {
private void splitDays(ProjectCalendar calendar, LinkedList<TimephasedWork> list)
{
LinkedList<TimephasedWork> result = new LinkedList<TimephasedWork>();
for (TimephasedWork assignment : list)
{
while (assignment != null)
{
Date startDay = Da... | public class class_name {
private void splitDays(ProjectCalendar calendar, LinkedList<TimephasedWork> list)
{
LinkedList<TimephasedWork> result = new LinkedList<TimephasedWork>();
for (TimephasedWork assignment : list)
{
while (assignment != null)
{
Date startDay = Da... |
public class class_name {
synchronized void addInterestedByClass(Class<?> clazz, Collection<ProbeListener> newListeners) {
Set<ProbeListener> currentListeners = listenersByClass.get(clazz);
if (currentListeners == null) {
currentListeners = new HashSet<ProbeListener>();
listener... | public class class_name {
synchronized void addInterestedByClass(Class<?> clazz, Collection<ProbeListener> newListeners) {
Set<ProbeListener> currentListeners = listenersByClass.get(clazz);
if (currentListeners == null) {
currentListeners = new HashSet<ProbeListener>(); // depends on contro... |
public class class_name {
@Override
public boolean collide(final Collidable collidable, final Collidable collidable2) {
// check if bounding boxes intersect
if (!RECTANGLE_COLLISION_CHECKER.collide(collidable, collidable2)) {
return false;
}
final Point position = colli... | public class class_name {
@Override
public boolean collide(final Collidable collidable, final Collidable collidable2) {
// check if bounding boxes intersect
if (!RECTANGLE_COLLISION_CHECKER.collide(collidable, collidable2)) {
return false; // depends on control dependency: [if], data = ... |
public class class_name {
@Override
public void queueDeployed(LocalQueue queue)
{
try
{
if (jmxAgent != null)
jmxAgent.register(new ObjectName(JMXAgent.JMX_DOMAIN+":type=Engines,engine="+engine.getName()+",children=queues,name="+queue.getName()), queue);
}
catch (Exception e)
... | public class class_name {
@Override
public void queueDeployed(LocalQueue queue)
{
try
{
if (jmxAgent != null)
jmxAgent.register(new ObjectName(JMXAgent.JMX_DOMAIN+":type=Engines,engine="+engine.getName()+",children=queues,name="+queue.getName()), queue);
}
catch (Exception e)
... |
public class class_name {
void checkComplete() {
if ((groupId != null && artifactId != null && version != null) || releaseId != null) {
return;
} else if (releaseId == null) {
if (groupId == null) {
throw new IllegalStateException("No groupId has been set yet.");... | public class class_name {
void checkComplete() {
if ((groupId != null && artifactId != null && version != null) || releaseId != null) {
return; // depends on control dependency: [if], data = [none]
} else if (releaseId == null) {
if (groupId == null) {
throw new ... |
public class class_name {
private void drawPoint(BufferedImage image) {
if (this.pointPower == -1) {
return;
}
Random r = new Random();
Graphics2D g2 = (Graphics2D) image.getGraphics();
int max = this.w * this.h / this.pointPower;
for (int i = 0; i < max; i++... | public class class_name {
private void drawPoint(BufferedImage image) {
if (this.pointPower == -1) {
return; // depends on control dependency: [if], data = [none]
}
Random r = new Random();
Graphics2D g2 = (Graphics2D) image.getGraphics();
int max = this.w * this.h /... |
public class class_name {
public List<GroupedDiagnositcs> getGroupedErrors() {
List<GroupedDiagnositcs> grouped = new ArrayList<>();
Diagnostic previousError = null;
GroupedDiagnositcs group = null;
for (Diagnostic theError : getErrors()) {
boolean isNewField = ((previousError == null) || (previousError.ge... | public class class_name {
public List<GroupedDiagnositcs> getGroupedErrors() {
List<GroupedDiagnositcs> grouped = new ArrayList<>();
Diagnostic previousError = null;
GroupedDiagnositcs group = null;
for (Diagnostic theError : getErrors()) {
boolean isNewField = ((previousError == null) || (previousError.ge... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.