Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* * @return the list of RuleFinder objects * * @param the list of RuleFinder objects * * @return the namespace for the xml attribute which indicates which class is to be plugged in. * * @return the namespace for the xml attribute which indicates which class is to be plugged in. ...
0
import java.lang.annotation.Repeatable; * or an array if the value is multi-valued. You can apply this annotation on a component class multiple times * (it's a java8 repeatable property). * Eight primitive types are supported: * @Component * @Property(name="p1", value="v") // String va...
0
* @author Enver Haase
0
/** Parse tree for {@code CREATE EXTERNAL TABLE} statement. */
0
if (elem.getWindows().size() <= 1 || (!RequiresWindowAccess.class.isAssignableFrom(fn.getClass()) && context.sideInputs.getAll().isEmpty())) {
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 ...
0
/** Utilities useful when executing a pipeline on a single machine. */
1
// Make sure no splits occurred in the table
0
* Implementations are encouraged to return * the URI that was initially requested.
0
package org.apache.aurora.scheduler.offers; import org.apache.aurora.scheduler.offers.OfferManager.OfferReturnDelay;
0
protected final JexlEngine JEXL; this(name, new JexlEngine()); } protected JexlTestCase(String name, JexlEngine jexl) { JEXL = jexl; this(new JexlEngine()); } protected JexlTestCase(JexlEngine jexl) { JEXL = jexl;
0
assertDatabaseIsRegistered(dbName); //There should be just one entity per dbname runCommand("drop database " + dbName); runCommand("create database " + dbName);
0
import org.apache.accumulo.core.tabletserver.thrift.ReplicationFailedException; import org.apache.commons.lang.NotImplementedException; @Override public boolean replicateData(TInfo tinfo, TCredentials credentials, String file, long offset, long count) throws ThriftSecurityException, ReplicationFailedEx...
0
import org.apache.accumulo.core.security.tokens.AuthenticationToken;
0
if (ba.isRemovalPending()) { ba.purge(); } // TODO: OSGi R4.3 - We can probably do this in a more efficient way once // BundleWiring.getCapabilities() returns the proper result. We probably // Won't even need this method.
0
import static org.junit.Assert.assertEquals;
0
* @author $Id$
0
* @author <a href="mailto:bluetkemeier@s-und-n.de">Bj&ouml;rn L&uuml;tkemeier</a> * @version CVS $Id: CopletDataReferenceFieldHandler.java,v 1.3 2003/07/10 13:16:56 cziegeler Exp $
0
if (!isZKServerRunning()) {
0
extends LegacyReaderIterator<WindowedValue<KV<K, Reiterable<V>>>> {
0
pojoization.disableAnnotationProcessing();
0
if ( id == null || id.length() == 0 ) { throw new IllegalArgumentException( "ObjectClassDefinition ID must not be null or empty" ); } MetaTypeProvider mtp = ( MetaTypeProvider ) this.metaTypeProviders.get( id ); if ( mtp == null ) { throw new Ill...
0
public class SharedOutputBuffer extends ExpandableBuffer implements ContentOutputBuffer {
0
* Copyright 2016-2017 Seznam.cz, a.s.
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
* Autogenerated by Thrift Compiler (0.9.1) import org.apache.thrift.async.AsyncMethodCallback; import org.apache.thrift.server.AbstractNonblockingServer.*; @SuppressWarnings("all") public class TCredentials implements org.apache.thrift.TBase<TCredentials, TCredentials._Fields>, java.io.Serializable, Cloneable, Compara...
0
&& (!"user".equals(update.getName().getOrigin().toLowerCase())
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
"Content-Type: application/octet-stream\r\n" + "Content-Type: application/octet-stream\r\n" +
0
} catch (AccumuloException e) { // expected, ignore }
0
* @version CVS $Id$ private final static Vector returnNames; return RealPathModule.returnNames.iterator();
0
import org.apache.sshd.agent.SshAgentFactory; protected SshAgentFactory agentFactory; public SshAgentFactory getAgentFactory() { return agentFactory; } public void setAgentFactory(SshAgentFactory agentFactory) { this.agentFactory = agentFactory; }
0
if ("id".equals(NName)) {
0
* Copyright 2000-2009 The Apache Software Foundation
0
package org.apache.bcel.classfile; import org.apache.bcel.Const;
1
import java.util.Map; import com.google.common.collect.ImmutableMap; private static final TaskGroupKey GROUP_KEY = TaskGroupKey.from(TASK_A.getAssignedTask().getTask()); private static final Map<String, TaskGroupKey> NO_RESERVATION = ImmutableMap.of(); private BiCache<String, TaskGroupKey> reservations; ...
0
@Override
0
public ConstantDouble(final double bytes) { public ConstantDouble(final ConstantDouble c) { ConstantDouble(final DataInput file) throws IOException { public void accept( final Visitor v ) { public final void dump( final DataOutputStream file ) throws IOException { public final void setBytes( fin...
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 org.apache.aurora.scheduler.cron.CronException; import org.apache.aurora.scheduler.cron.CronJobManager; import org.apache.aurora.scheduler.cron.CrontabEntry; import org.apache.aurora.scheduler.cron.SanitizedCronJob; sanitized.getJobConfig().getInstanceCount(), JobKeys.canonicalString(job.getKey()))...
0
public IntegerArrayConverter(final Object defaultValue) { public Object convert(final Class type, final Object value) { final String[] values = (String[]) value; final int[] results = new int[values.length]; } catch (final Exception e) { final List list = ...
0
Collections.unmodifiableSet(EnumSet.of(ClientChannelEvent.OPENED, ClientChannelEvent.CLOSED));
0
import static org.junit.Assert.assertNull; import static org.junit.Assert.fail; grace(); grace(); grace(); grace(); grace(); grace(); grace(); grace(); grace(); grace(); grace(); grace(); ...
0
Map<String,String> siteConfig = new HashMap<String,String>(); cfg.setSiteConfig(siteConfig);
0
import org.apache.hc.core5.pool.PoolReusePolicy; this(getDefaultRegistry(), null, null ,null, PoolReusePolicy.LIFO, null, timeToLive); this(socketFactoryRegistry, connFactory, null, dnsResolver, PoolReusePolicy.LIFO, null, TimeValue.NEG_ONE_MILLISECONDS); final PoolReusePolicy poolReusePolic...
0
import org.xml.sax.Attributes; public Tag createTag(String name, Attributes attributes) {
0
package org.apache.http.impl.io;
0
package org.apache.bcel.verifier.structurals; import org.apache.bcel.Const; import org.apache.bcel.classfile.Constant; import org.apache.bcel.classfile.ConstantClass; import org.apache.bcel.classfile.ConstantDouble; import org.apache.bcel.classfile.ConstantFloat; import org.apache.bcel.classfile.ConstantInteger; import...
1
* 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
params, request[i], host,
0
expect(storageUtil.storeProvider.getTaskStore()).andReturn(storageUtil.taskStore); storageUtil.expectRead(); storageUtil.expectTaskFetch(TASK_ID, makeTask(TASK_ID, ASSIGNED)); assertEquals(0, timedOutTaskCounter.intValue()); expect(storageUtil.storeProvider.getTaskStore()).andReturn(storageUtil.task...
0
int cmd = req.getUByte();
0
+ " " + MoreObjects.firstNonNull(LEVELS.get(record.getLevel()),
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...
1
import org.apache.sshd.agent.SshAgentFactory; import org.apache.sshd.common.PropertyResolverUtils; String channelType = PropertyResolverUtils.getStringProperty(session, SshAgentFactory.PROXY_AUTH_CHANNEL_TYPE, SshAgentFactory.DEFAULT_PROXY_AUTH_CHANNEL_TYPE); buffer.putString(channelType);
0
* * package org.apache.ambari.logsearch.conf; import org.apache.solr.client.solrj.SolrClient; import java.util.EnumMap; import java.util.Map; public class SolrClientsHolder { private Map<CollectionType, SolrClient> clientsMap = new EnumMap<>(CollectionType.class); public enum CollectionType { SERVICE, AUD...
0
import java.util.Objects; this.parser = Objects.requireNonNull(parser, "No public keys extractor");
0
return creator.connect(hostConfig);
0
package org.apache.aurora.scheduler.quota; import org.apache.aurora.scheduler.base.JobKeys; import org.apache.aurora.scheduler.base.Query; import org.apache.aurora.scheduler.base.Tasks; import org.apache.aurora.scheduler.quota.QuotaManager.QuotaManagerImpl; import org.apache.aurora.scheduler.state.JobFilter; import org...
0
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString; import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.Server; import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.inprocess.InProcessServerBuilder; import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.stub.StreamObserver; import org.apache.beam.vendor...
0
Status status = entity.getStatus(); if (status == null) { status = Status.ACTIVE; } Referenceable referenceable = new Referenceable(entity.getGuid(), entity.getTypeName(), status.name(),
0
PCollection<KeyedWorkItem<K, V>>, PCollection<KV<K, Iterable<V>>>, PCollection<KeyedWorkItem<K, V>>, PCollection<KV<K, Iterable<V>>>, PCollection<KeyedWorkItem<K, V>>, PCollection<KV<K, Iterable<V>>>,
0
private boolean isSupportDeleteViaUI; isSupportDeleteViaUI = service.isSupportDeleteViaUI(); public boolean isSupportDeleteViaUI(){ return isSupportDeleteViaUI; }
0
if (dataSource != null && !options.isIsolated()) { } else if (dataSource != null) {
0
import org.apache.felix.sigil.common.repository.IRepositoryChangeListener; import org.apache.felix.sigil.common.repository.RepositoryChangeEvent;
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/io/Attic/CharIteratorReader.java,v 1.2 2003/08/31 17:21:21 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this ackn...
0
final void writeAttribute( Attribute attribute, String anchor ) { final void writeAttribute( Attribute attribute, String anchor, int method_number ) {
0
p.apply(TextIO.read().from("gs://apache-beam-samples/shakespeare/*"))
0
Collections.emptyList(), false, false, false, false)).andReturn(stageContainer).once(); RequestStageContainer requestStages = provider.updateHostComponents(null, requests, requestProperties, runSmokeTest, false, false);
0
* @param referenceType Type of the reference * @param fieldType Type of the field final String referenceType, final String fieldType, createMethod(writer, className, referenceName, referenceType, fieldName, fieldType, true); ...
0
import org.apache.sshd.util.test.Utils; try (SshClient client = setupTestClient()) { try (SshClient client = setupTestClient()) {
0
* Copyright (c) 2002, 2003 The Apache Software Foundation. All rights * @version $Revision: 1.4 $ $Date: 2003/02/12 07:56:19 $
0
package org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.reinterpret; import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlExpression; import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlPrimitive; * {@code BeamSqlExpression} for Reinterpret call. * <p>Current...
0
reduceFnRunner.onTimers(workItem.timersIterable());
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
package org.apache.accumulo.examples.simple.filedata;
0
public Requirement(String namespace, R4Directive[] directives, R4Attribute[] attributes)
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/TestValidator.java,v 1.11 2003/08/26 15:18:56 rleland Exp $ * $Revision: 1.11 $ * $Date: 2003/08/26 15:18:56 $ * @version $Revision: 1.11 $ $Date: 2003/08/26 15:18:56 $ * Checks...
0
Collection<Resource> relatedResources = rc.findRelatedResources(resource); m_session.setRelatedResources(resource, relatedResources); for (Resource relatedResource : relatedResources) if (m_session.isValidRelatedResource(relatedResource)) ...
0
import com.google.api.services.bigquery.model.TableRow; import com.google.common.collect.ImmutableList; import java.util.List;
0
* Generated data to check that the wire format has not changed. To regenerate, see {@link * org.apache.beam.sdk.coders.PrintBase64Encodings}. private static final List<String> TEST_ENCODINGS = Arrays.asList("AAAAAA", "AAAAAv____8PA2ZvbwFoZWxsbw"); @Rule public ExpectedException thrown = ExpectedExceptio...
1
HashMap<String,String> properties = new HashMap<>();
0
public void getTimeoutFactor() {
0
package org.apache.accumulo.shell.commands; import org.apache.accumulo.shell.Shell; import org.apache.accumulo.shell.Shell.Command;
0
* Creates an instance of {@code AuthSchemeBase} with the given challenge
0
import com.google.api.services.bigquery.model.Table; import com.google.api.services.bigquery.model.TableDataInsertAllRequest; import com.google.api.services.bigquery.model.TableDataInsertAllRequest.Rows; import java.util.List; import java.util.Map; import java.util.stream.Collectors; * <p>Execute a query with retries:...
0
private static final String SERVER_STALE_CONFIG_CACHE_EXPIRATION_DEFAULT = "600";
0
String host = requestURI.getHost(); if (host == null) {
0
log.info("Tablet seems to be already assigned to {}",
0
new PoolableConnectionFactory(connectionFactory); poolableConnectionFactory.setDefaultReadOnly(false); poolableConnectionFactory.setDefaultAutoCommit(true);
0
JobConfiguration service = createJob("serviceJob" + i, mesosUser); service.getTaskConfig().setIsService(true); submitJob(service);
0
import org.slf4j.Logger;
0
* * * /** * * * */ project.setProperty("ant.file", /** if ( name.equals("fileScanner") ) { ); if ( name.equals("setProperty") ) { );
1
import java.util.ArrayList; import java.util.Collection; * @param <T> the type of nodes this class can handle public class NodeAddData<T> private final T parent; * Stores a list with the names of nodes that are on the path between the * parent node and the new node. private final List<String> pathNod...
0
Assert.assertEquals(serverFactory.getZooKeeperServer()
0
if (info.multiplicity.upper > 1 && !( info.dataType().getTypeCategory() == DataTypes.TypeCategory.MAP || info.dataType().getTypeCategory() == DataTypes.TypeCategory.ARRAY)) { throw new MetadataException( String.format("A...
0
boolean isLastFilePart = no == 1;
0
package org.apache.commons.ognl.test; import org.apache.commons.ognl.Ognl; import org.apache.commons.ognl.OgnlContext; import org.apache.commons.ognl.OgnlException; import org.apache.commons.ognl.OgnlRuntime; import org.apache.commons.ognl.SimpleNode;
0
package org.apache.accumulo.monitor.rest.tservers;
0