Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
public StatsIterator(SortedKeyValueIterator<Key,Value> source, AtomicLong seekCounter, AtomicLong readCounter) { public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException {
0
final ProtocolVersion version = request.getVersion() != null ? request.getVersion() : HttpVersion.HTTP_1_1;
0
import com.google.common.base.Preconditions; import com.google.inject.Inject; import com.twitter.common.application.Lifecycle; import com.twitter.common.base.Command; bind(Command.class).to(LifecycleHook.class); static class LifecycleHook implements Command { private final Lifecycle lifecycle; @Inject L...
0
* {@link CloseableHttpClient} builder. public final HttpClientBuilder setSslcontext(final SSLContext sslcontext) { this.sslcontext = sslcontext; return this; } public final HttpClientBuilder disableCookieManagement() { this.cookieManagementDisabled = true; return this; ...
0
clientProps.setProperty(ClientProperty.AUTH_PRINCIPAL.getKey(), proxyPrincipal); ClientProperty.setKerberosKeytab(clientProps, proxyKeytab.getCanonicalPath());
0
if (ret == null) return ret;
0
if (entry.getValue().isEmpty()) { throw new IllegalArgumentException("Group " + entry.getKey() + " is empty");
0
if (extension == null || extension.isEmpty()) {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/SqlDateConverter.java,v 1.4 2003/01/15 21:59:40 rdonkin Exp $ * $Revision: 1.4 $ * $Date: 2003/01/15 21:59:40 $ * Copyright (c) 1999-2003 The Apache Software Foundation. ...
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
CompressionCodec codec = (CompressionCodec) ReflectionUtils.newInstance(Class.forName(clazz), myConf); CompressionCodec codec = (CompressionCodec) ReflectionUtils.newInstance(Class.forName(clazz), myConf); Assert.assertNotEquals(al + " should have created a new codec, but did not...
0
* <pre><code> * urlToDocs.apply(ParDo.of(new DoFn<KV<String, Iterable<Doc>>, R>() { * {@literal @}ProcessElement * </code></pre>
0
Request request = PropertyHelper.getCreateRequest(propertySet, Collections.emptyMap()); Request request = PropertyHelper.getCreateRequest(propertySet, Collections.emptyMap()); Request request = PropertyHelper.getCreateRequest(propertySet, Collections.emptyMap());
0
private final CountDownLatch latch; WebhookOnThrowableHandler(AsyncHandler<T> handler, CountDownLatch latch) { this.latch = latch; void waitForOnThrowableToFinish() { latch.await(); WebhookOnThrowableHandler<T> wrapped = new WebhookOnThrowableHandler<>( handler, new C...
0
KeyPairProvider provider = session.getKeyPairProvider();
0
import org.apache.cocoon.portal.om.CopletInstance;
0
* Empty constructor needed for Instruction.readInstruction. * Not to be used otherwise.
0
public final void doFilter(@Nonnull final ServletRequest req, @Nonnull final ServletResponse res) throws IOException, ServletException
0
import org.apache.accumulo.core.client.admin.TableOperations; * @see TableOperations#splitRangeByTablets(String, Range, int)
0
public class ASTThisVarRef extends ASTVarRef public ASTThisVarRef( int id ) super( id ); public ASTThisVarRef( OgnlParser p, int id ) super( p, id ); protected Object getValueBody( OgnlContext context, Object source ) protected void setValueBody( OgnlContext context, Object target, O...
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 applic...
0
* $Header: /cvshome/build/org.osgi.service.useradmin/src/org/osgi/service/useradmin/UserAdminPermission.java,v 1.13 2006/07/12 21:21:33 hargrave Exp $ * Copyright (c) OSGi Alliance (2001, 2006). All Rights Reserved. import java.security.*; import java.util.Hashtable; * Permission to configure and access the {@link R...
0
/* * $Id$ * * 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 * "Lice...
0
* Retrun the current views creates in the pipepline. * public SparkPCollectionView getPViews() { * public void putPView( PCollectionView<?> view, pviews.putPView(view, value, coder);
0
actualSqlTable.getSchema()
0
} else { if (getLogger().isDebugEnabled()) { getLogger().debug ("redirect: session mode completed, id = " + session.getId() ); }
0
SessionInterval createSpanned(SessionInterval that) { mergeCandidate.getGroup(), mergeCandidate.getLabel().createSpanned(w.getLabel()),
0
InputT, OutputT, RestrictionT, TrackerT extends RestrictionTracker<RestrictionT, ?>> public RestrictionTracker<?, ?> restrictionTracker() {
0
ClientConfiguration clientConf = ClientConfiguration.create().with(Property.GENERAL_SECURITY_CREDENTIAL_PROVIDER_PATHS.getKey(), absPath); ClientConfiguration clientConf = ClientConfiguration.create(); ClientConfiguration clientConf = ClientConfiguration.create().with(Property.GENERAL_SECURITY_CREDENTIAL_PR...
0
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
public <R,P> R accept(NodeVisitor<? extends R, ? super P> visitor, P data) { return visitor.visit(this, data); }
0
bind(ConfigHelper.class).toProvider(Providers.<ConfigHelper>of(null));
0
import org.apache.http.io.SessionInputBuffer; public abstract class AbstractHttpDataReceiver implements SessionInputBuffer {
0
Pipeline getPipeline(); Collection<? extends PValue> expand(); void finishSpecifying();
0
throws AlgorithmAlreadyRegisteredException, ClassNotFoundException, InvalidTransformException { }
0
* http://www.apache.org/licenses/LICENSE-2.0
0
import com.google.cloud.dataflow.sdk.util.WindowingStrategy; ((PCollection<?>) value).getWindowingStrategy().getWindowFn().windowCoder()); translateFn(transform.getFn(), context.getInput(transform).getWindowingStrategy(), translateFn( transform.getFn(), ...
0
import org.apache.commons.vfs.provider.DefaultFileContent; * Called from {@link DefaultFileContent#getLastModifiedTime}. * The default is to just throw an exception so filesystems must * override it to use it. */ protected long doGetLastModifiedTime() throws Exception { return entry....
0
* @version CVS $Id: ContextSourceFactory.java,v 1.2 2003/03/16 17:49:13 vgritsenko Exp $
0
import com.google.common.collect.Maps; import com.google.gson.Gson; import com.google.inject.Binder; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.Module; import com.google.inject.Provider; import javax.persistence.EntityManager; import java.lang.reflect.Method; import java...
0
* * * * @version CVS $Id$
0
* Converts <code>String</code>s into <code>Node</code>s and visa versa. This requires Xalan to * work properly.
0
AdminResource adminResource = new AdminResource(serviceState, null, null, null, null, null, null, null); AdminResource adminResource = new AdminResource(serviceState, null, null, null, null, null, null, null);
0
import org.apache.atlas.model.impexp.MigrationStatus; import org.apache.atlas.repository.graphdb.janus.migration.ReaderStatusManager; @Override public MigrationStatus getMigrationStatus() { return AtlasJanusGraphDatabase.getMigrationStatus(); }
0
public void atestArchitecture() { // TODO fix and reactivate the method.
0
LOG.debug("Empty metrics insert request.");
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"); yo...
0
public void testUpdate() throws IOException { options.setUpdate(true); public void testUpdateNonExistentPipeline() throws IOException { options.setUpdate(true);
0
@Override public void visit(State state, Properties props) throws Exception { @SuppressWarnings("unchecked") ArrayList<String> tables = (ArrayList<String>) state.get("tableList"); if (tables.isEmpty()) return; Random rand = new Random(); String srcTableName = tables.remove(rand.nextInt(t...
1
import com.google.cloud.dataflow.sdk.util.StateFetcher.SideInputState; when(execContext.issueSideInputFetch( eq(view), any(BoundedWindow.class), eq(SideInputState.UNKNOWN))) .thenReturn(true); when(execContext.issueSideInputFetch( eq(view), any(BoundedWindow.class), eq(SideInpu...
0
import org.apache.accumulo.core.data.TableId; KeyExtent ke = new KeyExtent(TableId.of("1"), null, null); assertFail(tabletMeta, new KeyExtent(TableId.of("1"), null, new Text("m")), tsi); assertFail(tabletMeta, new KeyExtent(TableId.of("1"), new Text("r"), new Text("m")), tsi);
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 ...
0
String home = System.getProperty("HOME"); if (home == null) home = System.getenv("HOME"); final String histDir = home + "/.accumulo"; shellState.getReader().printString(counter + " " + Line + "\n");
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...
0
List<KV<String, KV<Long, String>>> expectedResult; PCollection<KV<String, KV<Long, String>>> output = Join.leftOuterJoin( expectedResult.add(KV.of("Key1", KV.of(5L, "foo"))); expectedResult.add(KV.of("Key2", KV.of(4L, "bar"))); PCollection<KV<String, KV<Long, String>>> output = Join.leftOuterJoin( ...
0
import java.awt.Color;
0
put("timeline.metrics.host.aggregator.ttl", String.valueOf(3 * 86400)); put("timeline.metrics.cluster.aggregator.interpolation.enabled", String.valueOf(true));
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
return resourceProviderFactory.getServiceResourceProvider(propertyIds, keyPropertyIds, managementController); return resourceProviderFactory.getComponentResourceProvider(propertyIds, keyPropertyIds, managementController);
0
import org.apache.accumulo.core.cli.BatchWriterOpts; import org.apache.accumulo.core.client.Connector; import org.junit.Test; public class FateStarvationIT extends MacTest { @Test(timeout=60*1000) Connector c = getConnector(); c.tableOperations().create("test_ingest"); c.tableOperations().addSplits("test_...
0
import org.apache.http.protocol.UriHttpRequestHandlerMapper; private final UriHttpRequestHandlerMapper reqistry; this.reqistry = new UriHttpRequestHandlerMapper();
0
package org.apache.accumulo.miniclusterImpl;
0
private final Vector observers = new Vector(1); final Enumeration e = observers.elements(); final Thread t = new Thread(this, "WATCHDOG"); } catch (final InterruptedException e) {
0
? null } } }
0
import org.apache.accumulo.core.security.tokens.PasswordToken;
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
public class PermissionInvocation extends RepeatableInvocation { public PermissionInvocation( RuntimeWrapper runtimeWrapper ) throws Exception { super( runtimeWrapper ); public PermissionInvocation( RuntimeWrapper runtimeWrapper, int times ) throws Exception { super(...
0
remaining -= chunk; channel.write(buffer); if (remaining <= 0 && buffer.position() == 0) {
0
import org.apache.beam.sdk.transforms.OldDoFn; * Returns a basic implementation of {@link DoFnRunner} that works for most {@link OldDoFn DoFns}. * <p>It invokes {@link OldDoFn#processElement} for each input. OldDoFn<InputT, OutputT> fn, * Returns a basic implementation of {@link DoFnRunner} that works f...
0
log.error("Error writing mutations to update replication Status" + " messages in StatusSection, will retry", e); log.error("Error writing mutations to update replication Status" + " messages in StatusSection, will retry", e);
0
import org.apache.hadoop.metadata.GraphTransaction; @GraphTransaction
0
import org.apache.avalon.framework.service.ServiceException; import org.apache.avalon.framework.service.ServiceManager; * @version $Id: EventAwareCacheImpl.java,v 1.8 2004/02/07 15:20:09 joerg Exp $ public class EventAwareCacheImpl extends CacheImpl implements Initializable, ...
0
import org.apache.beam.sdk.testing.TestPipeline; TestPipeline.testingPipelineOptions().as(TestDataflowPipelineOptions.class);
0
public void setInterceptors(final List list) { if (list == null) { return; } if (this.requestInterceptors != null) { this.requestInterceptors.clear(); } if (this.responseInterceptors != null) { this.responseInterceptors.clear(); } ...
0
@Override
0
import org.apache.accumulo.harness.AccumuloITBase; public class KerberosRenewalIT extends AccumuloITBase {
0
fnInvoker.invokeStartBundle(new TestStartBundleContext()); public DoFn<InputT, OutputT>.StartBundleContext startBundleContext( DoFn<InputT, OutputT> doFn) { "Not expected to access DoFn.StartBundleContext from @ProcessElement"); } @Override ...
0
* http://www.apache.org/licenses/LICENSE-2.0
0
package org.apache.hc.client5.http.impl.classic; import org.apache.hc.client5.http.HttpResponseException;
0
private void succesfulRun(final FileWriterWithEncoding fw21) throws Exception { private void writeTestPayload(final FileWriter fw1, final FileWriterWithEncoding fw2) throws IOException {
0
// FIXME: source.exists() returns true in the case of an OSGI bundle uri, // For example if uri=bundle://11/../mount-table.xml, exists() returns true // but the Source is unusable
0
public synchronized BufferedImage getOffScreen() { if (treeRoot != null) {
0
import org.apache.http.impl.DefaultConnectionReuseStrategy; /** * @deprecated (4.3) use {@link HttpAsyncRequester#HttpAsyncRequester(HttpProcessor, * ConnectionReuseStrategy)} */ this(httppocessor, reuseStrategy); } /** * Creates new instance of HttpAsyncRequester. * ...
0
import org.apache.accumulo.core.clientImpl.Namespace;
0
private final String author; private final long revision; private final String message; private final Calendar date; private final String path;
0
public static MetricHostAggregate createMetricHostAggregate(double max, double min, int numberOfSamples, double sum) { MetricHostAggregate expectedAggregate = new MetricHostAggregate();
0
return;
0
return sha2Crypt(keyBytes, salt, SHA256_PREFIX, SHA256_BLOCKSIZE, MessageDigestAlgorithms.SHA_256); return sha2Crypt(keyBytes, salt, SHA512_PREFIX, SHA512_BLOCKSIZE, MessageDigestAlgorithms.SHA_512);
0
import org.apache.ambari.view.utils.hdfs.HdfsApi;
0
* * * import org.apache.commons.jelly.JellyTagException; /** * @version $Revision: 1.5 $ //------------------------------------------------------------------------- } //------------------------------------------------------------------------- }
1
package org.apache.commons.ognl;
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
1
/* * 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 applica...
0
sink.withPrepareDataset(d ->
0
import org.apache.hc.core5.annotation.NotThreadSafe;
0
import org.apache.hc.core5.reactor.TlsCapableIOSession; final TlsCapableIOSession ioSession, context.setAttribute(HttpCoreContext.SSL_SESSION, getSSLSession());
0
import org.apache.cocoon.portal.coplet.CopletInstance; import org.apache.cocoon.portal.event.layout.LayoutAddedEvent; import org.apache.cocoon.portal.event.layout.LayoutRemovedEvent; import org.apache.cocoon.portal.event.layout.RemoveLayoutEvent; protected final Map layouts = new HashMap(); this.portalServi...
0
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a> * @param executors The {@link CloseableExecutorService} to use for spawning threads. * If {@code null} then an internal service is allocated - in which case it * is automatically shutdown
0
import org.apache.accumulo.server.ServerContext; ServerContext context = ServerContext.getInstance(); this.path = context.getZooKeeperRoot() + Constants.ZMONITOR_LOG4J_ADDR; this.zooCache = new ZooCacheFactory().getZooCache(context.getZooKeepers(), context.getZooKeepersSessionTimeOut...
0
import static org.apache.aurora.scheduler.thrift.Fixtures.IDENTITY; assertOkResponse(thrift.createJob(makeProdJob(), null)); new JobConfiguration().setKey(JOB_KEY.newBuilder()).setOwner(IDENTITY); .setOwner(IDENTITY) .setJob(JOB_KEY.newBuilder()); .setMaxTaskFailures(0); ...
0