Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.beam.sdk.nexmark.queries.NexmarkQueryTransform; public class SqlQuery5 extends NexmarkQueryTransform<AuctionCount> {
0
*/ public int getIndex(); public void setIndex( int index ); }
0
/** * Returns parameters for RCA database * * @return the map with parameters for RCA db * */ public Map<String, String> getRcaParameters();
0
// TODO: Decouple from eventcache block. this.response = null; } catch (IOException e) { throw new SourceException("Failure getting input stream", e);
0
* @version CVS $Id: Pagesheet.java,v 1.5 2004/05/17 13:44:47 unico Exp $ implements Cloneable, Modifiable {
0
ZooStore<String> zs = new ZooStore<>(ZooUtil.getRoot(instance) + Constants.ZFATE, zk);
0
if (!"Reference".equals(name) || !XMLSignature.XMLNS.equals(namespace)) {
0
@Override @Override @Override return "INSERT INTO ds_pigscript_" + id + " values (?,'1970-01-17 20:28:55.586000 +00:00:00','f',?,?,'','',?)"; @Override @Override protected String getSqlSequenceNoFromAmbariSequence(int id) { return "select sequence_value from ambari_sequences where sequence_name ='ds...
0
import java.util.stream.Collectors; import org.apache.beam.model.pipeline.v1.RunnerApi.Components; static ImmutableExecutableStage ofFullComponents( Components components, Environment environment, PCollectionNode input, Collection<PCollectionNode> sideInputs, Collection<PTransformNode> t...
0
import org.apache.accumulo.core.trace.TraceSamplers; import org.apache.htrace.impl.ProbabilitySampler; ProbabilitySampler sampler = TraceSamplers.probabilitySampler(tracePercent);
0
* This is an alternative implementation of the {@link java.io.ByteArrayOutputStream}
0
import org.apache.accumulo.core.clientImpl.Table; import org.apache.accumulo.core.clientImpl.Tables; import org.apache.accumulo.core.dataImpl.KeyExtent;
0
import org.apache.xml.security.exceptions.XMLSecurityException;
0
/** * 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 applicable law or agreed to in writing, software * distribu...
0
import org.apache.aurora.scheduler.state.ClusterStateImpl;
0
import org.apache.accumulo.server.ServerContext; final private ServerContext context; public TraceServer(ServerContext context, String hostname) throws Exception { this.serverConfiguration = context.getServerConfFactory(); ServerContext context = ServerContext.getInstance(); Accumulo.init(context.getVol...
0
import java.util.Collections; import java.util.Set; @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { return Collections.singleton(new SubResourceDefinition( Resource.Type.StackServiceComponentDependency)); }
0
@Override @Override
0
* <p> * Note that a JexlUberspect allways uses a copy of a JexlSandbox when built to avoid synchronization and/or * concurrent modifications at runtime. * </p> public final class JexlSandbox { public JexlSandbox() { protected JexlSandbox(Map<String, Permissions> map) { * @return a copy of this sandbox ...
0
/** * Returns the Class of the class which acts as a factory for this Service. The default method * factory name is "create". If you need to invoke another method, then you can use the * <code>factoryMethod</code> attribute. * @return the factory Class name. */ Class<?> factory() ...
0
public TransformIterator(final Iterator<? extends I> iterator) { public TransformIterator(final Iterator<? extends I> iterator, final Transformer<? super I, ? extends O> transformer) { public void setIterator(final Iterator<? extends I> iterator) { public void setTransformer(final Transformer<? super I,...
0
* @return an instance of some Rules implementation that the plugged-in class shall use to match its private parsing * rules.
0
final private ServerConfiguration serverConfiguration; public TraceServer(ServerConfiguration serverConfiguration, String hostname) throws Exception { this.serverConfiguration = serverConfiguration; AccumuloConfiguration conf = serverConfiguration.getConfiguration(); connector = serverConfiguration....
1
private static final long serialVersionUID = -7086398485908701455L;
0
log.warn(String.format("Check for long GC pauses not called in a timely fashion. Expected every %.1f seconds but was %.1f seconds since last check", TIME_BETWEEN_GC_CHECKS / 1000., diff / 1000.));
0
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import com.google.common.eventbus.AllowConcurrentEvents; import com.google.common.eventbus.Subscribe; import com.google.inject.Inject; import com.google.inject.Singleton; ...
0
import org.apache.ambari.server.security.SecurityHelper; import org.apache.ambari.server.security.SecurityHelperImpl; // TODO : we should @Inject this. private SecurityHelper securityHelper = SecurityHelperImpl.getInstance(); return securityHelper.getCurrentUserName(); public String getCurrentUserName() { ...
0
* Autogenerated by Thrift Compiler (0.9.0) import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; @SuppressWarnings("all") public class ConstraintViolationException extends TException implements org.apache.thrift.TBase<ConstraintViolationExcep...
0
/* * Set the value of credentialStore enabled before sending the command to agent. */ Cluster cluster = clusterFsm.getCluster(ec.getClusterName()); Service service = cluster.getService(ec.getServiceName()); if (service != null) { ec...
0
import org.apache.beam.sdk.transforms.splittabledofn.Backlog; HBaseQuery query, ByteKeyRange range, Backlog backlog, OutputReceiver<ByteKeyRange> receiver)
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 ma...
0
package org.apache.beam.sdk.extensions.euphoria.core.client.dataset.windowing; import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; import org.apache.beam.sdk.extensions.euphoria.core.client.io.Collector; import org.apache.beam.sdk.extensions.euphoria.core.client.triggers.TimeTrigger; impor...
0
import org.apache.beam.sdk.fn.function.ThrowingRunnable;
0
* * * * * * * *
0
String path = URLEncoder.encode("http://localhost.com:8080/api/v1/clusters/c1", "UTF-8"); String query = URLEncoder.encode("foo=foo-value&bar=bar-value", "UTF-8"); URI uri = new URI(path + "?" + query);
0
String DEFAULT_X11_BIND_HOST = SshdSocketAddress.LOCALHOST_IPV4;
0
ServiceComponent sc4 = s.addServiceComponent("sc4"); Assert.assertNotNull(s.getServiceComponent(sc4.getName())); Assert.assertEquals(State.INIT, s.getServiceComponent("sc4").getDesiredState()); sc4.persist(); Assert.assertEquals(4, s.getServiceComponents().size()); sc4.setDesiredStat...
0
int maxMemoryElements = settings.getInt(CFG_LIST_STORAGE_MAX_MEMORY_ELEMS_KEY, CFG_LIST_STORAGE_MAX_MEMORY_ELEMS_DEFAULT);
0
String tableId = ke.getKey().getTableId().toString(); Set<SecurityErrorCode> secCodes = tables.get(tableId); tables.put(tableId, secCodes);
0
// It's important to perform snapshot creation in a write lock to ensure all upstream callers // are correctly synchronized (e.g. during backup creation). return storage.write(new MutateWork.Quiet<Snapshot>() { public Snapshot apply(MutableStoreProvider storeProvider) {
0
* @version $Id: CopyStreamException.java,v 1.4 2003/01/26 00:21:41 dfs Exp $
0
* any, must include the following acknowledgement: * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknowledgements normally appear. * permission of the Apache Software Foundation.
0
package org.apache.ambari.resource.statemachine; import org.apache.ambari.event.AbstractEvent; public class ClusterEvent extends AbstractEvent<ClusterEventType> { private Cluster cluster; private Service service; public ClusterEvent(ClusterEventType type, Cluster cluster) { super(type); this.cluster = c...
0
readOnlyPermissionEntity.addAuthorization(readOnlyRoleAuthorizationEntity); privilegedPermissionEntity.addAuthorization(readOnlyRoleAuthorizationEntity); privilegedPermissionEntity.addAuthorization(privilegedRoleAuthorizationEntity); administratorPermissionEntity.addAuthorization(readOnlyRoleAuthorizati...
0
import com.twitter.aurora.scheduler.storage.entities.ITaskConfig; Function<ITaskConfig, Display> toKey = new Function<ITaskConfig, Display>() { @Override public Display apply(ITaskConfig task) { Function<ITaskConfig, Display> toKey = new Function<ITaskConfig, Display>() { @Override public Display ap...
0
/* * Copyright 2005 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
import org.apache.beam.sdk.transforms.reflect.DoFnInvoker.ArgumentProvider; import org.apache.beam.sdk.transforms.reflect.DoFnInvoker.FakeArgumentProvider; private ArgumentProvider<String, String> argumentProvider =
0
@Override public ClassLoader classLoader() { return session.classLoader(); }
0
import java.util.Set; import org.apache.hc.core5.http.EntityDetails; import org.apache.hc.core5.http.HttpHeaders; import org.apache.hc.core5.http.message.HttpResponseWrapper; final EntityDetails entityDetails, final HttpResponse response = new BasicHttpResponse(HttpStatus.SC_OK); final HttpR...
0
import java.util.List; import javax.persistence.EntityManager; import javax.persistence.TypedQuery; import org.apache.ambari.server.orm.RequiresSession; import org.apache.ambari.server.orm.entities.ResourceTypeEntity;
0
final InetSocketAddress socketaddr = ((InetSocketAddress) socketAddress); final InetAddress inetaddr = socketaddr.getAddress();
0
public HttpResponse receiveResponseHeader() return wrappedConnection.receiveResponseHeader();
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
/** * 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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Digester.java,v 1.68 2002/10/02 19:23:12 rdonkin Exp $ * $Revision: 1.68 $ * $Date: 2002/10/02 19:23:12 $ * @version $Revision: 1.68 $ $Date: 2002/10/02 19:23:12 $ // the actu...
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 u...
0
return new CompositeCollection<>(); return new HashSet<>(); final CompositeCollection<E> compositeCollection = new CompositeCollection<>(); final Collection<E> summand = new HashSet<>(); final Collection<E> collection = new HashSet<>(); c = new CompositeCollection<>()...
1
import org.apache.http.params.DefaultedHttpParams; response.setParams( new DefaultedHttpParams(response.getParams(), this.params)); request.setParams( new DefaultedHttpParams(request.getParams(), this.params)); response.setParams( ...
0
public BasicDynaClass(final String name, final Class<?> dynaBeanClass) { public BasicDynaClass(final String name, Class<?> dynaBeanClass, final DynaProperty[] properties) { public DynaProperty getDynaProperty(final String name) { } catch (final InvocationTargetException e) ...
0
import com.google.protobuf.ByteString; import org.apache.mesos.Protos.Credential; help = "Address for the mesos master, can be a socket address or zookeeper path.") @CmdLine(name = "framework_authentication_principal", help = "Principal used to authenticate to the Mesos master.") private static ...
0
import org.apache.beam.sdk.common.runner.v1.RunnerApi; RunnerApi.FunctionSpec.getDefaultInstance(), RunnerApi.FunctionSpec.getDefaultInstance(), RunnerApi.FunctionSpec.newBuilder().setParameter(
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 u...
0
* * @version $Id: ValidationRule.java,v 1.4 2004/02/11 09:53:43 antonio Exp $
0
Copyright 2000-2004,2006 The Apache Software Foundation import org.apache.batik.anim.AnimationTargetListener; // Constants for percentage interpretation. static final int PERCENTAGE_FONT_SIZE = 0; static final int PERCENTAGE_VIEWPORT_WIDTH = 1; static final int PERCENTAGE_VIEWPORT_HEIGHT = ...
1
case HttpStatus.SC_OK: case HttpStatus.SC_NON_AUTHORITATIVE_INFORMATION: case HttpStatus.SC_MULTIPLE_CHOICES: case HttpStatus.SC_MOVED_PERMANENTLY: case HttpStatus.SC_GONE: // these response codes MAY be cached cacheable = true;...
0
Map<String, List<? extends SingularAttribute<?, ?>>> mapping = new HashMap<>();
0
? ThreadUtils.newSingleThreadExecutor("ChannelAgentForwarding[" + authSocket + "]") : ThreadUtils.noClose(service); int copyBufSize = this.getIntProperty(FORWARDER_BUFFER_SIZE, DEFAULT_FORWARDER_BUF_SIZE); .close(super.getInnerCloseable()) .run(toStrin...
0
package org.apache.http.io;
0
import com.twitter.mesos.auth.AuthModule; import com.twitter.mesos.scheduler.thrift.auth.ThriftAuthModule; install(ThriftAuthModule.userCapabilityModule()); install(new ThriftAuthModule());
0
sslContextFactory.setIncludeCipherSuites(includedCiphers.split(",")); sslContextFactory.setExcludeCipherSuites(excludedCiphers.split(",")); sslContextFactory.setIncludeProtocols(includeProtocols.split(","));
0
new HashSet<>( public boolean isSupportedFileAttributeView(Class<? extends FileAttributeView> type) {
0
TreeNode<Resource> clusterNode = new TreeNodeImpl<>(null, clusterResource, "cluster");
0
@Test public void testMaxConnLifetimeExceeded() throws Exception { try { StackMessageLog.lock(); ds.setMaxConnLifetimeMillis(100); Connection conn = ds.getConnection(); assertEquals(1, ds.getNumActive()); Thread.sleep(500); con...
0
* @version $Id$
0
private static final String SET_PERMISSIONS = "find %s -type f -exec chmod 700 {} +"; command = String.format(SET_PERMISSIONS,srvrKstrDir); runCommand(command);
0
/** An operator base class. All operators extends this class. */ /** Name of the operator. */ /** Associated Flow. */ /** @return a collection of all input datasets */ /** @return the output dataset */
0
* @version CVS $Id: TreeBuilder.java,v 1.3 2003/08/07 08:42:20 sylvain Exp $ /** * Add an attribute. Useful to transmit information between distant (in the tree) node builders */ void setAttribute(String name, Object value); /** * Get the value of an attribute. */ Object g...
0
* Copyright 2002-2005 The Apache Software Foundation.
0
import org.apache.ambari.server.api.services.NamedPropertySet; import org.apache.ambari.server.api.services.RequestBody; import org.apache.ambari.server.controller.spi.ClusterController; import org.apache.ambari.server.controller.spi.NoSuchParentResourceException; import org.apache.ambari.server.controller.spi.NoSuchRe...
0
obj = m.remove(ONE);
0
private String componentCategory; public ServiceComponentRequest(String clusterName, String serviceName, String componentName, String desiredState) { this.clusterName = clusterName; this.serviceName = serviceName; this.componentName = componentName; this.desiredStat...
0
import org.apache.zookeeper.server.quorum.flexible.QuorumVerifier; new NIOServerCnxn.Factory( new InetSocketAddress(clientPort)), new NIOServerCnxn.Factory(new InetSocketAddress(clientPort)), quorumConfig); public void setClientPortAddress(...
0
private <R extends Rule, RB extends AbstractBackToLinkedRuleBuilder<R>> RB addProvider( RB provider )
0
import org.apache.http.params.BasicHttpParams; HttpParams params = new BasicHttpParams();
0
protected void map(Text k, PeekingIterator<Entry<Key,Value>> v, Context context) { protected void cleanup(Context context) {
0
/** Tests for Top. */ p.apply(Create.of(Arrays.asList(COLLECTION))) createInputTable(p) createInputTable(p)
0
import org.apache.accumulo.harness.AccumuloClusterIT; import org.apache.hadoop.conf.Configuration; public class BulkIT extends AccumuloClusterIT { private Configuration origConf; public void saveConf() { origConf = CachedConfiguration.getInstance(); public void restoreConf() { if (null != origConf) { ...
0
import org.ops4j.pax.exam.junit.PaxExam; import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy; import org.ops4j.pax.exam.spi.reactors.PerMethod; @RunWith(PaxExam.class) @ExamReactorStrategy(PerMethod.class)
0
import com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn; /** * For internal use only. */ public WindowFn getWindowFnInternal();
0
* {@link #preProcess preprocessed}
0
* Autogenerated by Thrift Compiler (0.9.1) import org.apache.thrift.async.AsyncMethodCallback; import org.apache.thrift.server.AbstractNonblockingServer.*; @SuppressWarnings("all") public class TCondition implements org.apache.thrift.TBase<TCondition, TCondition._Fields>, java.io.Serializable, Cloneable, Comparable<TC...
0
import org.apache.ambari.server.orm.dao.MemberDAO; import org.apache.ambari.server.orm.dao.PrivilegeDAO; import org.apache.ambari.server.orm.entities.MemberEntity; import org.apache.ambari.server.orm.entities.PrivilegeEntity; import java.util.LinkedList; import java.util.List; MemberDAO memberDAO; PrivilegeDAO priv...
0
@Column(name = "credential_store_supported", nullable = false, insertable = true, updatable = true) private short credentialStoreSupported = 0; @Column(name = "credential_store_enabled", nullable = false, insertable = true, updatable = true) private short credentialStoreEnabled = 0; /** * Gets a value in...
0
public ClusterBlueprint() { }
0
StageResourceProvider provider = new StageResourceProvider(managementController); Map<String, Object> requestProps = new HashMap<String, Object>(); requestProps.put(StageResourceProvider.STAGE_STATUS, HostRoleStatus.ABORTED.name()); Request request = PropertyHelper.getUpdateRequest(requestProps, null); ...
0
try { rable.run(); } catch (Throwable t) { // Might be nice to notify someone directly. // But this is more or less what Swing does. t.printStackTrace(); }
1
import java.util.Collections; import static org.powermock.api.easymock.PowerMock.mockStatic; import static org.powermock.api.easymock.PowerMock.replay; import static org.powermock.api.easymock.PowerMock.verifyAll; }
0
* This method has the same thread safety guarantees as {@link #write(Iterator)}
0
import org.apache.batik.util.DoublyIndexedTable;
0
import java.util.function.Function; import javax.servlet.ServletContext; public Function<ServletContext, Module> getChildServletModule() { return (servletContext) -> new ServletModule() {
0