Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
range =
new Range(acuKey, true, acuKey.followingKey(PartialKey.ROW_COLFAM_COLQUAL), false); | 0 |
} catch (final NumberFormatException ignore) { | 0 |
package org.apache.felix.log; | 0 |
import org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException;
import org.apache.accumulo.core.securityImpl.thrift.TCredentials; | 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... | 0 |
* @version $Revision$ $Date$ | 0 |
import org.apache.hc.core5.function.Decorator;
final Decorator<IOSession> ioSessionDecorator,
ioSessionDecorator, | 0 |
@Test(timeout = 90 * 1000)
@Test(timeout = 90 * 1000) | 0 |
import org.apache.beam.sdk.Pipeline; | 0 |
return this.clone(); | 0 |
import org.apache.commons.configuration.builder.BuilderEventListenerImpl;
import org.apache.commons.configuration.builder.ConfigurationBuilderEvent;
BuilderEventListenerImpl listener = new BuilderEventListenerImpl();
builder.addEventListener(ConfigurationBuilderEvent.RESET, listener);
Configurat... | 0 |
// handle the 'color-interpolation-filters' property
handleColorInterpolationFilters(turbulenceRable, filterElement);
| 0 |
if (cgn != null) {
cgn.setViewingTransform(at);
}
if (myCGN != null) {
myCGN.setViewingTransform(myAT);
} | 0 |
/**
* Create the node given an id.
*
* @param id node id.
*/
/**
* Create a node with the given parser and id.
*
* @param p a parser.
* @param id node id.
*/
/** {@inheritDoc} */
/** {@inheritDoc} */ | 0 |
package org.apache.commons.ognl;
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
/** Tests for {@link DirectTimerInternals}. */ | 1 |
import org.junit.Assert;
import org.junit.Test;
@SuppressWarnings({"UnnecessaryBoxing", "AssertEqualsBetweenInconvertibleTypes"})
public ExceptionTest() {
super("ExceptionTest");
@Test
Assert.fail("Should have thrown NPE");
Assert.assertEquals(NullPointerException.class, xth.getC... | 0 |
public boolean isFull() {
return this.len == this.buffer.length;
}
| 0 |
// this is a oneway call, so it does not throw exceptions
client.update(writer, mutation("row2", "cf", "cq", "value2"));
| 0 |
import org.osgi.framework.ServiceReference;
private volatile ServiceReference<HttpServiceRuntime> serviceReference;
RuntimeDTOBuilder runtimeDTOBuilder = new RuntimeDTOBuilder(runtime, this.serviceReference);
return attributes;
}
public void setServiceReference(
final ServiceRe... | 0 |
* @version CVS $Id: ElementEventListener.java,v 1.2 2003/03/16 18:03:55 vgritsenko Exp $ | 0 |
private ServiceComponentHostImpl createNewServiceComponentHost(long clusterId,
String svc,
String svcComponent,
ServiceComponentHostImpl impl = new ServiceComponentHostImpl(clusterId, svc,
svcComponent, hostName, isClient);
createNewServiceComponentHost(1, "svc", "svcComp", "h1", false);
... | 1 |
* @version CVS $Id: AbstractCompositeTestCase.java,v 1.8 2003/10/15 21:00:24 cziegeler Exp $
TransformerFactory factory = TransformerFactory.newInstance(); | 0 |
* @version CVS $Id: Pizza.java,v 1.2 2003/11/15 04:21:29 joerg Exp $
* @exception IOException | 0 |
import java.nio.charset.Charset;
private static final Charset UTF8 = Charset.forName("UTF-8");
this.type = LockType.valueOf(new String(lockData, 0, split, UTF8));
byte typeBytes[] = type.name().getBytes(UTF8);
log.info("Added lock entry " + entry + " userData " + new String(this.userData, UTF8) + ... | 0 |
log.error("server = " + tabLoc.tablet_location, e); | 0 |
if (!owner.getStrictErrorChecking()) {
return;
} | 1 |
final String location = request.getParameter(ConfigManager.LOCATION);
if ( location == null || location.trim().length() == 0 )
{
if ( config.getBundleLocation() != null )
{
config.setBundleLocation(null);
// work... | 0 |
doc = XMLUtils.read(is, false); | 0 |
import java.text.DecimalFormat;
import java.util.Collections;
import java.util.HashSet;
import org.apache.hadoop.metrics2.sink.timeline.TimelineMetric;
import org.apache.http.client.utils.URIBuilder;
private static final Set<String> PERCENTAGE_METRIC;
private static final DecimalFormat decimalFormat = new DecimalFo... | 0 |
import org.apache.ambari.api.controller.utilities.PropertyHelper;
Set<Map<PropertyId, String>> propertySet = request.getProperties();
for (Map<PropertyId, String> properties : propertySet) {
Set<Map<PropertyId, String>> propertySet = request.getProperties();
Map<PropertyId, String> prope... | 0 |
ArrayList<FileSKVIterator> filesToClose = new ArrayList<>();
this.openFiles = new HashMap<>();
this.reservedReaders = new HashMap<>();
ArrayList<OpenReader> openReaders = new ArrayList<>();
ArrayList<FileSKVIterator> ret = new ArrayList<>();
ofl = new ArrayList<>();
List<String> filesToO... | 0 |
* See {@link BasicDataSource#getTestOnCreate()}
* @return {@link BasicDataSource#getTestOnCreate()}
*/
boolean getTestOnCreate();
/** | 0 |
import java.util.Objects;
verifyDeterministic(this, "HeapCoder requires a deterministic list coder", listCoder);
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if (!(other instanceof BoundedHeapCoder)) {
return false;
}
Bo... | 0 |
final boolean inherited = getBoolean( componentTag, Constants.COMPONENT_INHERIT, true );
final OCD ocd = this.doComponent( componentTag, component, metaData,inherited, iLog );
protected OCD doComponent( final JavaTag tag,
final Component component,
final MetaData metaData,
... | 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 |
public class ChannelOutputStream extends OutputStream implements java.nio.channels.Channel, ChannelHolder {
private final AbstractChannel channelInstance;
this.channelInstance = ValidateUtils.checkNotNull(channel, "No channel");
@Override // co-variant return
public AbstractChannel getChannel() {
... | 0 |
* @version CVS $Id: JavaFlowTestCase.java,v 1.4 2004/06/26 18:29:30 stephan Exp $
assertEquals(3.3f, ((Float)map.getMap().get("result")).floatValue(), 0.1f);
assertEquals(3.3f, result.floatValue(), 0.1f);
assertEquals("cocoon:/getNumberA", getRedirector().getRedirect());
assertEquals("c... | 0 |
import org.apache.accumulo.core.client.impl.Table;
mdScanner.setRange(new KeyExtent(new Table.ID(tableId), null, null).toMetadataRange()); | 1 |
* @version CVS $Id: AbstractMarkupLanguage.java,v 1.1 2004/03/10 12:58:04 stephan Exp $ | 0 |
import com.google.cloud.dataflow.sdk.transforms.windowing.Trigger.WindowStatus; | 0 |
*/
public LADD() {
super(org.apache.bcel.Constants.LADD);
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visi... | 0 |
if (request instanceof HttpEntityEnclosingRequest) {
entity = ((HttpEntityEnclosingRequest)request).getEntity();
} | 0 |
return(SourceValidity.VALID); | 0 |
/**
buffer.append(this.cacheKeyParList.get(i)).append(":");
/** | 0 |
import org.apache.beam.sdk.transforms.DoFn;
* static class ExtractWordsFn extends DoFn<TableRow, String> {
new DoFn<CleanupOperation, Void>() {
@ProcessElement
private static class IdentityFn<T> extends DoFn<T, T> {
@ProcessElement
* static class FormatCountsFn extends DoFn... | 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 m... | 0 |
* @version $Id$ | 1 |
import static org.easymock.EasyMock.capture;
import static org.easymock.EasyMock.createNiceMock;
import static org.easymock.EasyMock.createStrictMock;
import static org.easymock.EasyMock.eq;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.expectLastCall;
import static org.easymock.EasyMo... | 0 |
* @version CVS $Id: Employee.java,v 1.1 2004/02/03 11:12:04 antonio Exp $ | 0 |
/**
* this test checks to see if the sessionid that was created for the
* first zookeeper client can be reused for the second one immidiately
* after the first client closes and the new client resues them.
* @throws IOException
* @throws InterruptedException
* @throws KeeperException... | 0 |
* @param <E> the type to iterate over
public interface ResettableListIterator<E> extends ListIterator<E>, ResettableIterator<E>, OrderedIterator<E> { | 0 |
import static org.apache.atlas.model.TypeCategory.*;
private final boolean isObjectRef;
private String relationshipName;
public AtlasAttribute(AtlasStructType definedInType, AtlasAttributeDef attrDef, AtlasType attributeType, String relationshipName, Stri... | 0 |
* @param <H> The generic handle type | 0 |
* Autogenerated by Thrift Compiler (0.12.0)
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)")
public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer colFamily; // required
public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer colQualifier; // required
public ... | 0 |
import javax.xml.parsers.DocumentBuilder;
DocumentBuilder builder = XMLUtils.createDocumentBuilder(false);
Document document = builder.parse(sourceDocument);
StAX2DOM.readDoc(XMLUtils.createDocumentBuilder(false), securityStreamReader);
DocumentBuilder builder = XMLUtils.createDocumentBu... | 0 |
* @version $Revision$ | 0 |
minorCompaction.data("extent", tablet.getExtent().toString());
minorCompaction.data("numEntries", Long.toString(this.stats.getNumEntries()));
minorCompaction.data("size", Long.toString(this.stats.getSize()));
minorCompaction.stop();
| 0 |
import org.apache.aurora.scheduler.app.MoreModules;
ImmutableSet.of(MoreModules.lazilyInstantiated(IniShiroRealmModule.class))); | 0 |
* Copyright 1999-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 ap... | 1 |
* @param <K> the type of the keys in this map
* @param <V> the type of the values in this map
* | 0 |
*
* <p>Implementation is not thread-safe. | 0 |
if ((pathElement == null) ||
(!SVG_NAMESPACE_URI.equals(pathElement.getNamespaceURI())) ||
(!pathElement.getLocalName().equals(SVG_PATH_TAG))) { | 0 |
import org.apache.batik.dom.AbstractNode;
import org.apache.batik.util.SVGConstants;
AbstractNode et = (AbstractNode) e; | 0 |
import org.apache.sshd.common.subsystem.sftp.SftpConstants;
if (e.getStatus() == SftpConstants.SSH_FX_LOCK_CONFLICT) { | 0 |
caps.addAll(ZipFileProvider.capabilities); | 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 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class CommandLineTest
@Test
@Test
@Test | 0 |
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import org.apache.accumulo.server.ServerContext;
import org.apache.accumulo.server.conf.ServerConfigurationFactory;
public void init() {
ServerContext context1 = createMockContext();
replay(context1);
final TestServer... | 0 |
@Override | 0 |
package org.apache.accumulo.shell.commands; | 0 |
package org.apache.felix.dm.lambda.callbacks;
import java.util.Objects;
/**
* Represents a callback(Service) that is invoked on a Component implementation class.
* The type of the class on which the callback is invoked on is represented by the T generic parameter.
*
* @author <a href="mailto:dev@felix.apache.or... | 0 |
import org.apache.beam.sdk.values.TypeDescriptor;
private final TypeDescriptor<T> typeDescriptor;
this.typeDescriptor = TypeDescriptor.of(jaxbClass);
@Override
public TypeDescriptor<T> getEncodedTypeDescriptor() {
return typeDescriptor;
}
| 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Strings; | 0 |
import java.util.Arrays;
import java.util.List;
/**
* Indicates that request failed.
*/
* List of errors which should not be consumed by fail-safe handler.
*/
private List<Integer> allowedErrors = Arrays.asList(HttpServletResponse.SC_FORBIDDEN);
/**
if (allowedErrors.contains(sc)) {
super.s... | 0 |
// nothing extra | 0 |
clusters.addCluster(clusterName, stackId);
cluster = clusters.getCluster(clusterName);
helper.getOrCreateRepositoryVersion(stackId, stackId.getStackVersion());
cluster.createClusterVersion(stackId, stackId.getStackVersion(), "admin",
RepositoryVersionState.UPGRADING);
sc.setDesiredStackVer... | 0 |
import org.apache.accumulo.tserver.log.DfsLogger.LogHeaderIncompleteException;
DataInputStream input = null;
public WalClientExecReturn(ReplicationTarget target, DataInputStream input, Path p, Status status, long sizeLimit, String remoteTableId,
TCredentials tcreds, Set<Integer> tids) {
public RFile... | 0 |
import org.apache.ambari.server.audit.AuditLogger;
EasyMock.replay(injector.getInstance(AuditLogger.class));
EasyMock.reset(injector.getInstance(AuditLogger.class)); | 1 |
import org.apache.log4j.PropertyConfigurator;
DOMConfigurator.configureAndWatch(logConfig, 5000);
// General purpose logging control independent from specific component log config
String propertyLogConfig = String.format("%s/conf/log4j.properties", System.getenv("ACCUMULO_HOME"));
PropertyConfigura... | 0 |
import org.apache.accumulo.core.conf.AccumuloConfiguration;
import org.apache.accumulo.core.conf.DefaultConfiguration;
import org.apache.accumulo.core.conf.Property;
import org.apache.accumulo.server.conf.TableConfiguration;
ServerConfigurationCopy config = new ServerConfigurationCopy(instance);
// Spoof out the... | 0 |
* This interface is used for the system which will be used for getting a users Authorizations. If
* the implementation does not support configuration through Accumulo, it should throw an
* AccumuloSecurityException with the error code UNSUPPORTED_OPERATION
void initializeSecurity(TCredentials credentials, String r... | 0 |
import java.io.InterruptedIOException;
import java.io.IOException;
import java.net.MalformedURLException;
public GraphicsNode build(BridgeContext ctx, Document svgDocument) {
public GraphicsNode build(BridgeContext ctx, Element element) {
Node first) {
// Check for in... | 0 |
* @version $Revision: 1.5 $ $Date: 2004/05/01 18:14:27 $
FileObject file = getManager().resolveFile(uri, readFolder.getFileSystem().getFileSystemOptions());
assertSame("file object", readFolder, file);
file = getManager().resolveFile(rootUri, readFolder.getFileSystem().getFileSystemOptions());
... | 0 |
final List<String> list = Arrays.asList("a");
final List<String> list = Arrays.asList("a", "b");
final List<String> list = Arrays.asList("a", "b");
final List<String> list = Arrays.asList("a", "b");
final List<String> list = new ArrayList<String>(Arrays.asList("a", "b", "c"));
... | 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 |
* Implementation of {@link Expression} for the operation "=". | 1 |
return treeRoot; | 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 |
protected HashMap<String, DynaProperty> propertiesMap = new HashMap<>(); | 0 |
import java.util.SortedMap;
private SortedMap<String, List<Map<String, String>>> repos;
public ChangeRepositoryVersionAuditEventBuilder withRepos(SortedMap<String, List<Map<String, String>>> repos) { | 0 |
other.getFields().stream()
getFields().stream() | 0 |
* 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 ap... | 0 |
package org.apache.felix.ipojo.test.scenarios.component.temporal;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.handler.temporal.Requires;
import org.apache.felix.ipojo.test.scenarios.annotations.service.FooService;
@Component
public class TemporalWithFilter {
@Requires(f... | 0 |
public static <K, T> Pair<K, T> entry(K k, T v) {
return new Pair<K, T>(k, v);
}
| 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 ... | 1 |
public String getModelAsJson() throws MetadataException {
createDataModel();
return getDataModelAsJSON();
}
System.out.println("hiveDataModelAsJSON = " + hiveDataModelGenerator.getModelAsJson()); | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableSet; | 0 |
* @throws Exception if any error occurs while creating the {@link AnnotationHandler} instance. | 0 |
//Alter users to store active widget layouts
dbAccessor.addColumn("users", new DBColumnInfo("active_widget_layouts", String.class, 1024, null, true)); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.