Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @param <E> the type held in the multiset
0
import com.twitter.common.inject.TimedInterceptor.Timed; @Timed("scheduler_resource_offers") @Timed("scheduler_status_update") @Timed("scheduler_framework_message")
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
* * * "cp1251",
0
BatchInputSplit split = new BatchInputSplit("table", "1", Arrays.asList(ranges), new String[] {"localhost"}); BatchInputSplit split = new BatchInputSplit("table", "1", Arrays.asList(ranges), new String[] {"localhost"}); Assert.assertEquals(DeprecationUtil.isMockInstanceSet(split), De...
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
0
* @version $Revision: 1.12 $ $Date: 2004/06/30 19:06:38 $ public static final Capability SET_LAST_MODIFIED_FILE = new Capability("SET_LAST_MODIFIED_FILE"); /** * folder set last-modified time is supported. */ public static final Capability SET_LAST_MODIFIED_FOLDER = new Capability("SET_LAST_MODI...
0
package org.apache.commons.ognl.test.objects;
0
import java.util.Collection; public static final String VALIDATE_CONFIG_DIRECTIVE = "validate_config"; @Override public Collection<String> getCreateDirectives() { Collection<String> directives = super.getCreateDirectives(); directives.add(VALIDATE_CONFIG_DIRECTIVE); return directives; }
0
import org.codehaus.jettison.json.JSONException; lineageService.getInputsGraph(tableName); JSONObject results = getInputsGraph("sales_fact_monthly_mv"); JSONObject results = getInputsGraph("table2"); public void testGetOutputsGraphForEntityInvalidArguments(final String tableId, Strin...
0
public AsyncEchoShellFactory() { super(); } public EchoShell() { super(); } String s = buffer.substring(0, i + 1); byte[] bytes = s.getBytes(StandardCharsets.UTF_8);
0
PCollectionView<Iterable<Void>> cleanupSignalView = outputs.get(cleanupSignal) .apply(View.<Void>asIterable());
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...
1
* @version $Id: DocumentHelper.java,v 1.3 2004/03/01 20:54:30 cziegeler Exp $ protected static DocumentBuilder createBuilder() throws ParserConfigurationException {
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
* 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
import org.apache.atlas.AtlasConfiguration; int maxLimit = AtlasConfiguration.SEARCH_MAX_LIMIT.getInt(); int defaultLimit = AtlasConfiguration.SEARCH_DEFAULT_LIMIT.getInt();
0
public Map<String, Set<PropertyInfo>> getDefaultProperties(StackId stack, Cluster cluster) Map<String, Set<PropertyInfo>> defaultPropertiesByType = new HashMap<String, Set<PropertyInfo>>(); defaultPropertiesByType.put(type, new HashSet<PropertyInfo>()); defaultPropertiesByType.get(type).add(stackDef...
0
@Inject RequestScheduleDAO requestScheduleDAO; public void setSourceScheduleForRequest(long requestId, long scheduleId) { RequestEntity requestEntity = requestDAO.findByPK(requestId); if (requestEntity != null) { RequestScheduleEntity scheduleEntity = requestScheduleDAO.findById(scheduleId); i...
1
import com.google.gson.GsonBuilder; import org.apache.ambari.logfeeder.common.LogEntryParseTester; import org.apache.commons.io.FileUtils; import org.apache.log4j.LogManager; import org.springframework.boot.Banner; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.buil...
0
if (file != null) { file.close(); }
0
* @version $Revision$
0
import org.w3c.dom.svg.SVGPathSegList;
0
package org.apache.felix.rootcause;
0
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString;
0
* @param conn The connection to execute the query in. * @param sql The query to execute. * @param param The replacement parameter. * @param rsh The handler that converts the results into an object.
0
Set<String> propertyIds = new HashSet<>(); Map<Resource.Type, String> keyPropertyIds = new HashMap<>();
0
package com.twitter.mesos.scheduler.state; import com.twitter.mesos.scheduler.base.ScheduleException;
0
public SocketFactoryMockup(final String name) { final Socket sock, final InetSocketAddress remoteAddress, final InetSocketAddress localAddress, final HttpParams params) throws IOException, UnknownHostException, ConnectTimeoutException { public boolean isSecure(fin...
0
@SuppressWarnings("serial") @SuppressWarnings("serial")
0
jsonObject.add(((MapFieldDescriptorImpl)m).getJsonName(), context.serialize(m));
0
private static final ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP", 1, 1);
0
import java.util.stream.Collectors; return peekOutputElementsWithTimestamp() .stream() .map(TimestampedValue::getValue) .collect(Collectors.toList()); return getImmutableOutput(mainOutputTag) .stream() .map(input -> TimestampedValue.of(input.getValue(), input.getTimestamp...
0
* 3. The end-user documentation included with the redistribution, if * any, must include the following acknowlegement: * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * 4. The names "The Jakarta Project", "Commons", ...
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
1
public @interface NotifyDelegate { } @NotifyDelegate SchedulingFilter delegate,
0
public class SVGLine extends SVGGraphicObjectConverter { * @param generatorContext used to build Elements public SVGLine(SVGGeneratorContext generatorContext) { super(generatorContext); public Element toSVG(Line2D line) { Element svgLine = generatorContext.domFactory.createEleme...
0
LOG.info("Received killTask request for " + taskID);
0
public static final String UPGRADE_CLUSTER_NAME = "Upgrade/cluster_name"; public static final String UPGRADE_VERSION = "Upgrade/repository_version"; public static final String UPGRADE_TYPE = "Upgrade/upgrade_type"; public static final String UPGRADE_PACK = "Upgrade/pack"; public static final String UPGRADE_RE...
1
"You may try --auto-fix-database flag to attempt to fix issues automatically. " +
0
import static com.google.common.base.Preconditions.checkState; import org.apache.beam.sdk.coders.Coder; import org.apache.beam.sdk.io.BoundedSource; import org.apache.beam.sdk.io.CountingSource; import org.apache.beam.sdk.io.Read; public void splitsInputs() { Pipeline p = getPipeline(); PCollection<Long> long...
0
import org.apache.hc.core5.http.config.Http1Config; private final Http1Config http1Config; final Http1Config http1Config, this.http1Config = http1Config != null ? http1Config : Http1Config.DEFAULT; http1Config,
0
import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; private ScheduledExecutorService executor; executor = createMock(ScheduledExecutorService.class); expect(executor.schedule( eq(penaltyMs), eq(TimeUnit.MILLISECONDS))) .andReturn(null);
0
import org.apache.accumulo.core.data.TableId; TableId tableId = TableId.of(client.tableOperations().tableIdMap().get(tablename)); group = group.substring(tableId.canonical().length() + 1).substring(0, 2);
0
import org.apache.sshd.common.session.SessionContext; * <U>appended</U> to the standard {@link SessionContext#DEFAULT_SSH_VERSION_PREFIX}. return SessionContext.DEFAULT_SSH_VERSION_PREFIX + (GenericUtils.isEmpty(ident) ? manager.getVersion() : ident); for (byte[] data = new byte[SessionContext.MAX_...
0
if (!(prefix.equals(""))) {
0
* @version CVS $Id: EPAttribute.java,v 1.2 2003/03/11 19:05:01 vgritsenko Exp $
0
checkNotNull(timestamp); checkNotNull(windows);
0
* @version $Id$
0
// Implementstion methods
0
* @param data the buffer containing the Base64-encoded data * @param off the start offset (zero-based) * @param length the number of bytes to convert * @param out the output stream to hold the decoded bytes *
0
splits.add((r.nextLong() & 0x7fffffffffffffffL) % 1000000000000L);
0
import org.apache.sshd.common.util.helper.LazyMatchingTypeIterable; return LazyMatchingTypeIterable.lazySelectMatchingTypes(identities, KeyPair.class); return LazyMatchingTypeIterable.lazySelectMatchingTypes(identities, String.class); return LazyMatchingTypeIterable.lazyS...
0
import org.apache.accumulo.server.conf.ServerConfigurationFactory; AccumuloConfiguration config = new ServerConfigurationFactory(HdfsZooInstance.getInstance()).getConfiguration();
1
Cipher cipher = DefaultCryptoModuleUtils.getCipher(params.getAllOptions().get(Property.CRYPTO_DEFAULT_KEY_STRATEGY_CIPHER_SUITE.getKey()), params.getSecurityProvider());
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting;
0
import org.apache.http.nio.reactor.SessionRequest; /** * Session request handle class used by I/O reactor implementations to keep * a reference to a {@link SessionRequest} along with the time the request * was made. */
0
import com.google.common.collect.LinkedListMultimap; import com.google.common.collect.ListMultimap; import java.util.Iterator; private final ListMultimap<String, JobConfiguration> jobs = LinkedListMultimap.create(); public MapStorage(PersistenceLayer<NonVolatileSchedulerState> persistenceLayer) { return j...
0
* @version $Revision: $
0
* @version CVS $Id: HttpEnvironment.java,v 1.18 2004/07/05 07:42:50 cziegeler Exp $
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
// If the BouncyCastle provider is not installed, then try to load it InputStream sourceDocument = final XMLStreamReader xmlStreamReader = XMLStreamReader securityStreamReader = InputStream sourceDocument = final XMLStreamReader xmlStreamReader = ...
1
import java.util.List; /** * {@inheritDoc}. * * <p>A {@link PValue} always expands into itself. Calling {@link #expand()} on a PValue is almost * never appropriate. */ @Deprecated List<TaggedPValue> expand();
0
public class BeamSqlRow implements Serializable { private BeamSqlRecordType dataType; public BeamSqlRow(BeamSqlRecordType dataType) { public BeamSqlRow(BeamSqlRecordType dataType, List<Object> dataValues) { public void updateWindowRange(BeamSqlRow upstreamRecord, BoundedWindow window){ public BeamSqlRecordTyp...
0
public void testTeardownCalledAfterExceptionInSetup() { public void testTeardownCalledAfterExceptionInStartBundle() { public void testTeardownCalledAfterExceptionInProcessElement() { public void testTeardownCalledAfterExceptionInFinishBundle() {
0
<RestrictionT, PositionT> RestrictionTracker<RestrictionT, PositionT> invokeNewTracker(
0
* * ...
0
private static final ImmutableMap<Integer, String> EXPECTED_HASHES =
0
configure(cfg); public void configure(MiniAccumuloConfig cfg) { }
0
import org.apache.beam.sdk.values.KV; new AbstractTestCase<Integer, KV<Integer, Long>>() { protected Dataset<KV<Integer, Long>> getOutput(Dataset<Integer> input) { public ListDataSink<KV<Integer, Long>> modifySink(ListDataSink<KV<Integer, Long>> sink) { .keyBy(p -> p.ge...
0
import org.apache.cocoon.util.AbstractLogEnabled;
0
/** Examples on how to use Beam SQL. */
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/Attic/ValidatorUtil.java,v 1.11 2003/08/21 19:40:13 rleland Exp $ * $Revision: 1.11 $ * $Date: 2003/08/21 19:40:13 $ * Copyright (c) 2001-2003 The Apache Software Foundation. All ...
0
public void onClassificationsDeleted(AtlasEntity entity, List<AtlasClassification> classifications) throws AtlasBaseException {
0
import org.apache.accumulo.core.replication.ReplicationSchema; final String replRowPrefix = ReplicationSchema.ReplicationSection.getRowPrefix();
0
import org.apache.ambari.server.events.listeners.alerts.AlertServiceStateListener; import org.apache.ambari.server.events.listeners.alerts.AlertStateChangedListener;
0
instanceDataByUser.put(entity.getUser(), new HashMap<>());
0
package org.apache.felix.http.base.internal.runtime.dto.state; public interface FilterState { static final Comparator<FilterState> COMPARATOR = new Comparator<FilterState>() public int compare(final FilterState o1, final FilterState o2)
0
columns.add(new DBAccessor.DBColumnInfo("config_data", char[].class, null, null, false));
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables;
0
* Thrown when a Decoder has encountered a failure condition during a decode. * @author Gary Gregory * @version $Id: DecoderException.java,v 1.4 2003/08/14 07:40:17 ggregory Exp $ * Creates a DecoderException
0
String filter = requirement.getFilter().replaceAll("\\(mandatory\\:\\<\\*[^\\)]*\\)", ""). replaceAll("objectclass", "objectClass");
0
import java.util.Objects; /** * Session; never null. * <p> * DCL pattern requires that the ivar be volatile. * </p> */ private volatile Session session; this.session = Objects.requireNonNull(session, "session"); this.connectTimeoutMillis = SftpFileSystemConfigBuilder.ge...
0
/** * Create a new NodeSetContext. * @param parentContext parent context * @param nodeSet associated NodeSet */ /** * {@inheritDoc} */ /** * {@inheritDoc} */ /** * {@inheritDoc} */ /** * {@inheritDoc} */ /** * {@inheritDoc} *...
0
List<AlertDefinitionEntity> hiveAlertDefinitions = new ArrayList<>();
0
throw new RuntimeException(e);
0
Assert.assertNotEquals(replicated, unreplicated);
0
/* * Copyright 2001-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 applicable la...
0
.append("c.contype as CONSTRAINT_TYPE ") public StringBuilder writeDropPrimaryKeyStatement(StringBuilder builder, String constraintName, boolean cascade){ return builder.append("DROP CONSTRAINT ").append(constraintName + (cascade ? " CASCADE" : ""));
0
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception { boolean tables = cl.hasOption(OptUtil.tableOpt().getOpt()) || !shellState.getTableName().isEmpty(); if (!shellState.getConnector().namespaceOperations() .listIterators(OptUti...
0
connPool.freeEntry(e3, true, -1, null); connPool.freeEntry(e1, true, -1, null); connPool.freeEntry(e2, true, -1, null); connPool.freeEntry(e3, true, -1, null); connPool.freeEntry(e4, true, -1, null); connPool.freeEntry(e5, true, -1, null); ...
0
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights * @version $Id: ReverseComparator.java,v 1.10 2003/01/07 23:26:47 rwaldhoff Exp $
0
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
return true; }
0
/* * $Header: /cvshome/build/ee.foundation/src/java/lang/ArrayStoreException.java,v 1.6 2006/03/14 01:20:25 hargrave Exp $ * * (C) Copyright 2001 Sun Microsystems, Inc. * Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
0
import java.util.Objects; @Override @Override @Override @Override @Override Objects.requireNonNull(session, "No client session provided"); @Override
0
MetaDataTableScanner metaDataTableScanner = new MetaDataTableScanner(environment.getInstance(), SecurityConstants.getSystemCredentials(), tableRange, null);
0
import static org.apache.beam.sdk.extensions.sql.utils.RowAsserts.matchesScalar; import org.apache.beam.sdk.values.Row; import org.apache.beam.sdk.values.RowType; private PCollection<Row> boundedInput; RowType rowType = RowSqlType.builder() List<Row> rowsInTableB = .apply(Create.of(r...
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.accumulo.core.security.tokens.SecurityToken; private static List<KeyExtent> findTablets(boolean selectLocalTablets, SecurityToken token, String table, Instance zki, private static List<String> getTabletFiles(SecurityToken token, Instance zki, String tableId, KeyExtent ke) {
0