Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
public AdapterServiceImpl(DependencyManager dm, Class adapteeInterface, String adapteeFilter, String autoConfig, String add, String change, String remove, String swap) {
super(dm.createComponent()); // This service will be filtered by our super class, allowing us to take control.
m_component.setImpl... | 0 |
import org.apache.commons.vfs.provider.webdav.WebdavFileProvider;
* @version $Revision: 1.2 $ $Date: 2003/02/17 09:22:16 $
manager.addProvider( "webdav", new WebdavFileProvider() ); | 0 |
* @version CVS $Id: EPTop.java,v 1.5 2004/01/31 08:50:39 antonio Exp $
public class EPTop extends BaseElementProcessor {
private NumericResult _style;
private ColorCode _color;
private boolean _color_fetched;
private static final String _style_attribute = "Style";
private static final String _color... | 0 |
/**
* @see org.apache.commons.jci.monitor.FilesystemAlterationListener#onStart()
*/
// nothing to do
/**
* @see org.apache.commons.jci.monitor.FilesystemAlterationListener#onStop()
*/
return null;
// only invoke if pipeline is not internally
if ( !... | 0 |
if ("empty".equals(pattern)) {
Map returnMap = new HashMap(); | 0 |
* See java.util.regex.Pattern for regex matching rules. | 0 |
return task.getInstanceIdDEPRECATED(); | 0 |
protected boolean useAA;
setUseAntialiasedClip(false);
}
public ClipRable8Bit(Filter src, Shape clipPath, boolean useAA) {
super(src, null);
setClipPath(clipPath);
setUseAntialiasedClip(useAA);
* Set the default behaviour of anti-aliased clipping.
* for this clip ... | 0 |
* {@code Coder<X>} to decode each record into a value of type {@code X}. Does not modify
* @param <X> the type of the decoded elements, and the
public <X> Bound<X> withCoder(Coder<X> coder) {
* but that uses the given {@code Coder<X>} to encode each of
* the elements of the input {@co... | 0 |
private boolean supportsAutoSkipOnFailure;
supportsAutoSkipOnFailure = false;
supportsAutoSkipOnFailure = stageEntity.isAutoSkipOnFailureSupported();
stageEntity.setAutoSkipFailureSupported(supportsAutoSkipOnFailure);
boolean isHostRoleCommandAutoSkippable = autoSkipFailure && supportsAutoSkipOnFail... | 0 |
public List<TezVertexId> getVerticesForDAGId(String dagId) {
JSONObject entities = delegate.tezVerticesListForDAG(dagId);
JSONArray vertices = (JSONArray) entities.get("entities");
List<TezVertexId> parsedVertices = new LinkedList<TezVertexId>();
for(Object vertex : vertices) {
try {
Te... | 0 |
package org.apache.http.impl.client.integration;
import org.apache.http.client.protocol.ClientContext;
import org.apache.http.impl.client.HttpClientBuilder;
public class TestCookie2Support extends IntegrationTestBase {
startServer();
this.httpclient = new HttpClientBuilder().build(); | 0 |
return isTableEmpty(
new TableReference().setProjectId(projectId).setDatasetId(datasetId).setTableId(tableId),
backoff,
Sleeper.DEFAULT);
}
@VisibleForTesting
boolean isTableEmpty(TableReference tableRef, BackOff backoff, Sleeper sleeper)
throws IOException, Inte... | 0 |
// A transform is allowed to not have unique_name set, but, obviously,
// there can be only one such transform with an empty name.
// It's allowed for the (only) root transform to have the empty unique_name.
"%s: Transforms %s and %s both have unique_name \"%s\"",
"%s: PC... | 0 |
import org.apache.cocoon.sitemap.SitemapErrorHandler;
/** The error handler for the pipeline. */
protected SitemapErrorHandler errorHandler;
this.processingPipeline.setErrorHandler(this.errorHandler);
/**
* Set the error handler for the pipeline.
*/
public void setErrorHandler(Si... | 0 |
throw new ResourceResolverException(ex, context.uriToResolve, context.baseUri, "generic.EmptyMessage");
throw new ResourceResolverException(ex, context.uriToResolve, context.baseUri, "generic.EmptyMessage");
throw new ResourceResolverException(ex, context.uriToResolve, context.baseUr... | 0 |
public Threadable thread(Iterable<? extends Threadable> messages) {
| 0 |
ExtendedSelector {
ancestorSelector = ancestor;
simpleSelector = simple;
return ((ExtendedSelector)ancestorSelector).getSpecificity() +
((ExtendedSelector)simpleSelector).getSpecificity();
*/
return ancestorSelector;
*/
return simpleSelecto... | 1 |
public void runFromConfig(ServerConfig config)
throws IOException, AdminServerException { | 0 |
String autoConfigField = m_metaData.getString(Params.autoConfig, null);
Dependency dp = createResourceDependency(dm, added, changed, removed, required, filter,
propagate, autoConfigField, instanceBound);
String changed, String removed, boolean re... | 0 |
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString;
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.InvalidProtocolBufferException; | 0 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 1 |
/*
* Copyright 2002,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 0 |
package org.apache.felix.dm; | 0 |
synchronized (lock)
{
defaultRealmName = newDefaultRealmName;
recreateConfigs();
} | 0 |
// register for configuration
try
{
MemoryUsageConfigurator tdp = new MemoryUsageConfigurator(support);
Dictionary<String, Object> properties = new Hashtable<String, Object>();
properties.put(Constants.SERVICE_PID, MemoryUsageConfigurator.NAME);
r... | 0 |
import aQute.bnd.osgi.*; | 0 |
pp.parse(s); | 0 |
import org.apache.sshd.common.util.Int2IntFunction;
protected void ensureCapacity(int capacity) {
ensureCapacity(capacity, BufferUtils.DEFAULT_BUFFER_GROWTH_FACTOR);
}
/**
* @param capacity The requires capacity
* @param growthFactor An {@link Int2IntFunction} that is invoked
* if th... | 0 |
log.debug("Failed to connect to master={}, will retry... ", master, tte); | 0 |
return cacheEntryFactory != null && v == null; | 0 |
PrereqCheckRequest req = new PrereqCheckRequest("cluster");
req.addResult(CheckDescription.SERVICES_NAMENODE_HA, PrereqCheckStatus.FAIL);
Mockito.when(cluster.getService("YARN")).thenReturn(service);
Assert.assertFalse(servicesMapReduceDistributedCacheCheck.isApplicable(req));
req.addResult(CheckDe... | 0 |
import java.util.SortedMap;
SortedMap<String, SortedMap<String, SortedMap<String, String>>> requestConfigurations = new TreeMap<>();
SortedMap<String, SortedMap<String, String>> properties = new TreeMap<>();
SortedMap<String, String> configurationProperties = new TreeMap<>(configuration.getVal... | 0 |
import org.apache.batik.util.resources.ResourceFormatException;
import org.apache.batik.util.resources.ResourceManager;
| 0 |
// ensure db behavior is same as shared cache
databaseLogin.setTransactionIsolation(DatabaseLogin.TRANSACTION_READ_COMMITTED); | 0 |
String propertyFile = System.getProperty(ACCUMULO_IT_PROPERTIES_FILE);
clusterTypeValue = System.getProperty(ACCUMULO_CLUSTER_TYPE_KEY);
clientConf = System.getProperty(ACCUMULO_CLUSTER_CLIENT_CONF_KEY);
String propertyFile = System.getProperty(ACCUMULO_IT_PROPERTIES_FILE);
loadFromProperties(pr... | 0 |
public List<Long> getRequestsByStatus(RequestStatus status, int maxResults,
boolean ascOrder) {
return hostRoleCommandDAO.getRequestsByTaskStatus(statuses, match,
checkAllTasks, maxResults, ascOrder); | 1 |
import static com.twitter.aurora.gen.apiConstants.CURRENT_API_VERSION; | 0 |
import java.util.List;
List<String> tables = (List<String>) state.get("tableList"); | 0 |
import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/IfTag.java,v 1.3 2003/10/09 21:21:26 rdonkin Exp $
* $Revision: 1.3 $
* $Date: 2003/10/09 21:21:26 $
* any, must include the following acknowledgement:
* Alte... | 0 |
* Copyright (c) 2004 The Apache Software Foundation. All rights | 0 |
private boolean configured = false;
/**
* Checks the Digester instance has been configured.
*
* @return true, if the Digester instance has been configured, false otherwise
* @since 3.0
*/
public boolean isConfigured() {
return configured;
}
| 0 |
*
* @throws Exception
/*
* (non-Javadoc)
*
* @see java.lang.Runnable#run()
*/
/**
*
*/
/**
* @return
*/
// TODO Auto-generated method stub
/**
*
*/
/**
* @param output
*/
/**
* @param metricsList
*/ | 0 |
import org.apache.http.cookie.CookieSpecProvider;
import org.apache.http.protocol.HttpContext;
* {@link CookieSpecProvider} implementation that creates and initializes
@SuppressWarnings("deprecation")
public class NetscapeDraftSpecFactory implements CookieSpecFactory, CookieSpecProvider {
private final String[] d... | 0 |
import org.apache.hc.client5.http.impl.sync.CloseableHttpResponse;
import org.apache.hc.core5.http.impl.io.DefaultHttpResponseParser;
import org.apache.hc.core5.http.impl.io.DefaultHttpResponseParserFactory;
import org.apache.hc.core5.http.io.HttpConnectionFactory;
return new DefaultHttpResponseParser(l... | 0 |
LOG.info("Defined Index instances");
for (Id id : hImporter.getIndexInstances()) {
ITypedReferenceableInstance instance = mr.get(id);
bw.write(instance.toString());
}
LOG.info("Defined Process instances");
for (Id id : hImporter.getProcessInstances()) {
... | 0 |
if (LOG.isDebugEnabled()) {
if (LOG.isDebugEnabled()) {
if (LOG.isDebugEnabled()) {
if (LOG.isDebugEnabled()) { | 0 |
* or more contributor license agreements. See the NOTICE file
* regarding copyright ownership. The ASF licenses this file
* with the License. You may obtain a copy of the License at
* KIND, either express or implied. See the License for the | 0 |
private static final String OPERATION_PROPERTY = "operation";
private static final String OPERATION_DETAILS_PROPERTY = "operation_details";
protected static final String USER_CONTEXT_OPERATION_PROPERTY = "user_context/operation";
protected static final String USER_CONTEXT_OPERATION_DETAILS_PROPERTY = "user_con... | 0 |
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | 0 |
public class InMemoryBagUserStateFactory<K, V, W extends BoundedWindow>
implements StateRequestHandlers.BagUserStateHandlerFactory<K, V, W> {
public StateRequestHandlers.BagUserStateHandler<K, V, W> forUserState(
String pTransformId,
String userStateId,
Coder<K> keyCoder,
Coder<V> valueCod... | 0 |
private final boolean hasStreamingSideInput;
private Receiver[] receivers;
this.hasStreamingSideInput =
options.as(StreamingOptions.class).isStreaming() && !sideInputReader.isEmpty();
public void startBundle(Receiver... receivers) throws Exception {
this.receivers = receivers;
if (hasStreaming... | 0 |
.using(e -> 1L)) // ~ force event time | 0 |
@Override | 0 |
* Copyright 2000-2009 The Apache Software Foundation | 0 |
Artifact kernel = factory.createArtifact("org.apache.felix.karaf", "apache-felix-karaf", kernelVersion, Artifact.SCOPE_PROVIDED, "pom"); | 0 |
Long startTime, Long endTime, Integer limit,
instanceId, startTime, endTime, limit, groupedByHosts);
Long endTime, Integer limit)
applicationId, instanceId, startTime, endTime, limit, true) | 0 |
import org.apache.ambari.view.huetoambarimigration.controller.configurationcheck.ConfigurationCheck;
import org.apache.ambari.view.huetoambarimigration.service.configurationcheck.ConfFileReader; | 0 |
* Copyright 1999-2005 The Apache Software Foundation.
*
*
*
*
* @version $Id$
* @since 2.2
implements XMLConsumer {
| 0 |
Method updateRecoveryConfigurationDML = UpgradeCatalog240.class.getDeclaredMethod("updateRecoveryConfigurationDML");
.addMockedMethod(updateRecoveryConfigurationDML)
upgradeCatalog240.updateRecoveryConfigurationDML(); | 0 |
boolean isEnabled()
{
return m_internalEnabled;
}
//--------- State classes | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestMap.java,v 1.30 2003/10/02 22:48:40 scolebourne Exp $
* $Revision: 1.30 $
* $Date: 2003/10/02 22:48:40 $
* @version $Revision: 1.30 $ $Date: 2003/10/02 22:48:40 $
... | 0 |
/**
* Tests nullSafeLookup() if a lookup object was provided.
*/
@Test
public void testNullSafeLookupExisting()
{
Lookup look = EasyMock.createMock(Lookup.class);
EasyMock.replay(look);
assertSame("Wrong result", look,
ConfigurationInterpolator.nullSafe... | 0 |
import java.net.InetSocketAddress;
NIOServerCnxn.Factory factory = new NIOServerCnxn.Factory(
new InetSocketAddress(PORT)); | 0 |
import static org.junit.Assert.assertThat;
import com.google.cloud.dataflow.sdk.WindowMatchers;
assertThat(tester.advanceProcessingTime(new Instant(10)), Matchers.emptyIterable());
assertThat(tester.advanceProcessingTime(new Instant(11)), Matchers.emptyIterable());
assertThat(tester.advanceProcessingTime(... | 0 |
private final Configuration hadoopConf;
AccumuloConfiguration conf, Configuration hadoopConf) {
this.hadoopConf = hadoopConf;
Configuration hadoopConf = new Configuration();
Volume defaultLocalVolume = VolumeConfiguration.create(FileSystem.getLocal(hadoopConf),
localBasePath);
defaul... | 0 |
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not... | 0 |
protected String getKindString() {
return "PubsubIO.Read";
}
protected String getKindString() {
return "PubsubIO.Write";
} | 0 |
import static org.junit.Assert.assertThat;
import org.apache.beam.sdk.runners.PipelineRunner;
import org.hamcrest.Matchers;
public void defaultRunnerLoaded() {
assertThat(InProcessPipelineRunner.class,
Matchers.<Class<? extends PipelineRunner>>equalTo(PipelineOptionsFactory.create()
.getRunner... | 0 |
import org.apache.felix.scr.impl.TargetedPID;
private TargetedPID m_targetedPID;
m_targetedPID = null;
public void configurationUpdated( String pid, Dictionary<String, Object> configuration, long changeCount, TargetedPID targetedPid )
if ( m_targetedPID != null && !m_targetedPID.equals( tar... | 0 |
public static <K, V> BidiMap<K, V> unmodifiableBidiMap(BidiMap<K, V> map) {
return UnmodifiableEntrySet.unmodifiableEntrySet(set);
return UnmodifiableSet.unmodifiableSet(set);
return UnmodifiableCollection.unmodifiableCollection(coll);
return UnmodifiableMapIterator.unmodifiableMapIt... | 0 |
public StringMap getIdentifiers() { | 0 |
* @version $Id$ | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Splitter; | 0 |
final FileInfo expectedFileInfo = buildExpectedStructure();
final FileObject actualFolder = getReadFolder();
assertSameContent(expectedFileInfo, actualFolder); | 0 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 0 |
// prevent java.lang.UnsupportedOperationException at sun.nio.cs.ext.ISO2022_CN.newEncoder.
if (Charset.forName(csName).canEncode()) {
testBufferedRead(TEST_STRING, csName);
} | 0 |
if (i == j || (i == 0 && j == 1) || (i == 1 && j == 0))
assertTrue(col[i].equals(col[j]));
else
assertFalse(col[i].equals(col[j]));
if (i == j || (i == 0 && j == 1) || (i == 1 && j == 0))
assertTrue(col[i].compareTo(col[j]) == 0);
else
assertFalse(... | 1 |
private static volatile SecurityManagerEx m_sm = null;
private static volatile URLHandlers m_handler = null;
public synchronized URLStreamHandler createURLStreamHandler(String protocol)
if (m_streamHandlerCache == null)
{
m_streamHandlerCache = new HashMap();
}
... | 0 |
* Copyright (c) OSGi Alliance (2005, 2008). All Rights Reserved. | 0 |
import org.apache.cocoon.forms.FormsException;
import org.w3c.dom.Element;
throw new FormsException("The button widget has been renamed to action. Please update your form definition files.",
DomHelper.getLocationObject(widgetElement)); | 0 |
return windowFn.assignWindows(assignContext); | 0 |
condition.setStatement(String.format(GET_METRIC_AGGREGATE_ONLY_SQL, METRICS_AGGREGATE_HOURLY_TABLE_NAME));
condition.setStatement(String.format(GET_METRIC_AGGREGATE_ONLY_SQL, METRICS_AGGREGATE_DAILY_TABLE_NAME));
condition.setStatement(String.format(GET_METRIC_AGGREGATE_ONLY_SQL, METRICS_AGGREGATE_MINUTE_TA... | 0 |
List<ServiceTestInvocation> listInvocations = new ArrayList<>(); | 1 |
@Override | 0 |
* A {@link DoFn} that returns up to limit elements from the side input PCollection.
private static class SampleAnyDoFn<T> extends DoFn<Void, T> {
@ProcessElement | 0 |
public AddServiceInfo withNewServices(Map<String, Map<String, Set<String>>> services) {
return new AddServiceInfo(request, clusterName, stack, config, stages, services);
}
| 0 |
import org.apache.commons.bcel6.Repository;
import org.apache.commons.bcel6.classfile.JavaClass;
import org.apache.commons.bcel6.classfile.Method;
import org.apache.commons.bcel6.generic.ConstantPoolGen;
import org.apache.commons.bcel6.generic.InstructionHandle;
import org.apache.commons.bcel6.generic.InstructionList;
... | 1 |
public void init(final FilterConfig filterConfig) throws ServletException
// nothing to do
throws IOException, ServletException
pr.handler.getMultipartConfig());
public void destroy()
}); | 0 |
package org.apache.felix.sigil.eclipse.ui.internal.editors.project;
import org.apache.felix.sigil.eclipse.ui.internal.form.SigilPage; | 0 |
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | 0 |
private boolean bcInstalled;
if (cons != null) {
bcInstalled = true;
if (!bcInstalled) {
return;
} | 0 |
return firstMatch ? getSingleNodePointerForSteps(context) : evalSteps(context); | 1 |
import org.apache.excalibur.source.SourceResolver;
* @version CVS $Id: DefaultContextManager.java,v 1.7 2004/03/19 14:16:55 cziegeler Exp $
/** The source resolver */
private SourceResolver resolver;
this.resolver = (SourceResolver)this.manager.lookup(SourceResolver.ROLE);
context ... | 0 |
this.httpclient = new DefaultHttpClient();
this.httpclient.getConnectionManager().getSchemeRegistry().register(https);
HttpResponse response = this.httpclient.execute(target, httpget);
this.httpclient.getConnectionManager().getSchemeRegistry().register(https);
this.httpclient.exe... | 0 |
int clientX;
int clientY;
int clientX, int clientY,
this.clientX = clientX;
this.clientY = clientY;
* source graphics node.
* @return x a float indicating horizontal position relative to the node
*/
public float getClientX() {
return... | 0 |
import java.util.SortedSet;
import java.util.TreeSet;
public static SortedSet<Text> splits(String [] splits) {
SortedSet<Text> result = new TreeSet<Text>();
for (String split : splits)
result.add(new Text(split));
return result;
} | 0 |
final ServerContext context = new ServerContext();
ServerContext context = new ServerContext(); | 0 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.