Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
private static BCELComparator bcelComparator = new BCELComparator() {
return bcelComparator;
bcelComparator = comparator;
return bcelComparator.equals(this, obj);
return bcelComparator.hashCode(this); | 0 |
import org.apache.aurora.scheduler.config.splitters.CommaSplitter;
description = "Guice module for customizing the TaskAssignerImpl's OfferSelector.",
splitter = CommaSplitter.class) | 0 |
import org.apache.bcel.classfile.Annotations;
import org.apache.bcel.generic.AnnotationEntryGen;
import org.apache.bcel.generic.ElementValuePairGen;
ElementValuePairGen nvGen = new ElementValuePairGen("id", evg,
AnnotationEntryGen a = new AnnotationEntryGen(t, elements, true, cp);
ElementValuePairGen nvGen = new ... | 0 |
private final String authenticateHeaderValue;
public NtlmType2MessageOnlyResponseHandler(final String type2Message) {
this.authenticateHeaderValue = "NTLM " + type2Message;
}
response.setHeader(HttpHeaders.WWW_AUTHENTICATE, authenticateHeaderValue);
this.localSe... | 0 |
package org.apache.atlas;
import org.apache.atlas.web.service.EmbeddedServer;
private static final String METADATA_HOME = "atlas.home";
private static final String METADATA_LOG_DIR = "atlas.log.dir";
new PropertiesConfiguration("atlas-buildinfo.properties");
String appPath = "webapp/targ... | 0 |
super(org.apache.commons.bcel6.Const.FALOAD); | 0 |
+ getNamespace()
+ "; "
+ getAttributes().get(BundleRevision.PACKAGE_NAMESPACE); | 1 |
* 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 may not... | 0 |
"Configuring holder {0} with change count {1}", null, holder,
config.getChangeCount());
"Configuring holder {0} with change count {1}", null, holder,
singleton.getChangeCount()... | 0 |
(ServiceReference<S>[]) getServiceReferences(clazz.getName(), filter); | 0 |
ProtocolVersion getProtocolVersion(); | 0 |
public static final String ENTITYTYPE_EDGE_LABEL = PROPERTY_PREFIX + ".entitytype"; | 0 |
package org.apache.hc.core5.http.nio;
public int consume(final ByteBuffer src) throws IOException {
return dataConsumer.consume(src); | 1 |
connectionFactory.setAutoCommitOnReturn(getAutoCommitOnReturn()); | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
/**
* A filter that ages off key/value pairs based on the Key's column and timestamp. It removes an entry if its timestamp is less than currentTime - threshold.
* Different thresholds are set for each column.
*/ | 0 |
import org.springframework.context.annotation.Lazy;
@Lazy | 0 |
public final Long oldestScan;
this.oldestScan = oldest < 0 ? null : oldest; | 0 |
package org.apache.beam.runners.spark.streaming;
import org.apache.beam.runners.spark.io.CreateStream;
import org.apache.beam.runners.spark.EvaluationResult;
import org.apache.beam.runners.spark.SparkPipelineRunner;
import org.apache.beam.runners.spark.streaming.utils.DataflowAssertStreaming; | 0 |
import org.apache.commons.collections4.map.LRUMap; | 0 |
try (final Socket accepted = serverSocket.accept()) { | 0 |
import org.apache.beam.runners.flink.FlinkPipelineOptions;
import org.apache.beam.runners.flink.metrics.DoFnRunnerWithMetricsUpdate;
private final String stepName;
private final Coder<WindowedValue<InputT>> inputCoder;
String stepName,
this.stepName = stepName;
if ((serializedOptions.getPipelineOptio... | 0 |
List<Configuration> configs = new LinkedList<>();
clientConfPaths = new LinkedList<>(); | 0 |
String entityName = HiveMetaStoreBridge.getTableName(CLUSTER_NAME, DEFAULT_DB, tableName);
Assert.assertEquals(tableRef.get(HiveDataModelGenerator.NAME), entityName);
@Test
String table1Id = assertTableIsRegistered(DEFAULT_DB, table1);
String table2Id = assertTableIsRegistered(db2, ... | 0 |
return Utils.getNamespaceId(env.getInstance(), tableId, TableOperation.COMPACT_CANCEL,
this.namespaceId);
return Utils.reserveNamespace(getNamespaceId(env), tid, false, true,
TableOperation.COMPACT_CANCEL)
String zCompactID = Constants.ZROOT + "/" + environment.getInstance().getInstanceID()
... | 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 |
import org.apache.ambari.server.state.stack.UpgradePack.PrerequisiteCheckConfig;
PrerequisiteCheckConfig prerequisiteCheckConfig = upgrade.getPrerequisiteCheckConfig();
assertNotNull(prerequisiteCheckConfig);
assertNotNull(prerequisiteCheckConfig.globalProperties);
assertTrue(prerequisiteCheckConfig.get... | 0 |
"org.apache.hc.core5.http.impl.io",
"org.apache.hc.core5.http.io",
"org.apache.hc.core5.http.bootstrap.io", | 1 |
.add(DisplayData.item("compressionType", compressionType.toString()))
.addIfNotDefault(DisplayData.item("validation", validate), true)
.addIfNotNull(DisplayData.item("filePattern", filepattern));
.addIfNotNull(DisplayData.item("filePrefix", filenamePrefix))
.a... | 0 |
TriggerContext c, OnElementEvent<IntervalWindow> e) throws Exception {
public MergeResult onMerge(TriggerContext c, OnMergeEvent<IntervalWindow> e)
TriggerContext c,
TriggerContext c, | 0 |
import com.twitter.aurora.scheduler.storage.entities.ILock;
ILock lock = ILock.build(new Lock()
.setKey(LockKey.job(JobKeys.from("testRole", "testEnv", "testJob").newBuilder()))
.setToken("lockId")
.setUser("testUser")
.setTimestampMs(12345L));
.setLocks(ILock.toBuildersSet(I... | 0 |
package org.apache.beam.sdk;
import org.apache.beam.sdk.runners.TransformTreeNode; | 0 |
import org.apache.hc.core5.net.NamedEndpoint;
* @param remoteEndpoint name of the remote host.
* @param localAddress local socket address. Can be {@code null},
NamedEndpoint remoteEndpoint, | 0 |
public static void write(final MetaData metaData, final File file)
} catch (final SAXException e) { | 0 |
import org.apache.accumulo.test.functional.ConfigurableMacBase;
public class ReplicationIT extends ConfigurableMacBase { | 0 |
import org.apache.beam.runners.gearpump.translators.utils.DoFnRunnerFactory;
import org.apache.beam.runners.gearpump.translators.utils.NoOpAggregatorFactory;
private final TupleTag<OutputT> mainTag = new TupleTag<OutputT>() {};
private final DoFnRunnerFactory<InputT, OutputT> doFnRunnerFactory;
private DoFnRunner... | 0 |
@Override
public TimerInternals timerInternals() {
throw new UnsupportedOperationException("Batch mode cannot return timerInternals");
} | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; | 0 |
Map<Type,Hook> hooks;
List<Hook> allHooks;
if (allHooks != null) {
for (Hook hook : allHooks) {
Object r = hook.convert(type, o);
if (r != null)
return r;
}
}
if (hooks != null) {
Hook hook = hooks.get(type);
if (hook != null) {
Object value = hook.convert(type, o);
if (value ... | 0 |
public static ViewEntity getViewEntity(ViewConfig viewConfig, Configuration ambariConfig,
ClassLoader cl, String archivePath) throws Exception{
ViewRegistry registry = ViewRegistry.getInstance();
return registry.createViewDefinition(viewConfig, ambariConfig, cl, archivePa... | 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 port <= 0 ? defaultPort : port; | 0 |
package org.apache.commons.collections4.trie.analyzer;
import org.apache.commons.collections4.trie.KeyAnalyzer;
public class ShortKeyAnalyzer extends KeyAnalyzer<Short> {
/** A singleton instance of {@link ShortKeyAnalyzer}. */
/** The length of an {@link Short} in bits. */
/** A bit mask where the first b... | 0 |
* This class to holds a batch scan configuration for a table. It contains all the properties needed to specify how rows should be returned from the table.
public BatchScanConfig() {}
* Creates a batch scan config object out of a previously serialized batch scan config object.
* @param input
* th... | 0 |
@Deprecated
public static void writeCharToUtf8(final char c, final OutputStream out) throws IOException {
if (c < 0x80) {
out.write(c);
return;
}
if (c >= 0xD800 && c <= 0xDBFF || c >= 0xDC00 && c <= 0xDFFF) {
//No Surrogates in sun java
... | 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 |
* A filter converting a {@link PositionedOutput} {@code OutputStream} to a {@code PositionedOutput}
* {@code DataOutputStream}
public <StreamType extends OutputStream & PositionedOutput> PositionedDataOutputStream(
StreamType type) { | 0 |
import java.util.Optional;
Optional<TaskGroupKey> reservedGroup = Optional.ofNullable( | 0 |
import org.apache.accumulo.harness.SharedMiniClusterIT;
SharedMiniClusterIT.startMiniCluster(); | 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 |
@org.junit.jupiter.api.Test | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/AbstractListDecorator.java,v 1.2 2003/05/05 23:25:22 rwaldhoff Exp $
* @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:22 $ | 0 |
import com.twitter.mesos.gen.Identity;
private static final String ROLE_PARAM = "role";
String role = req.getParameter(ROLE_PARAM);
if (role == null) {
template.setAttribute("exception", "Please specify a role.");
Identity identity = new Identity(role, user);
template.setAtt... | 0 |
Environment environment = getEnvironment();
Map<PtyMode, Integer> ptyModes = environment.getPtyModes();
int opcode = modes[i++] & 0x00FF;
PtyMode mode = PtyMode.fromInt(opcode);
/**
* According to section 8 of RFC 4254:
* "Opcodes 160 to 255 ... | 0 |
/*
* Copyright 1999-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 |
public static CommandLine parse(final String line, final Map substitutionMap) {
final String[] tmp = translateCommandline(line);
final CommandLine cl = new CommandLine(tmp[0]);
public CommandLine(final String executable) {
public CommandLine(final File executable) {
public Comman... | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/UnmodifiableEntrySet.java,v 1.2 2003/12/05 20:23:57 scolebourne Exp $
import org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator;
* @version $Revision: 1.2 $ $Da... | 0 |
private int maxWait = (int)Math.min(Integer.MAX_VALUE, | 0 |
if (System.getProperties().containsKey("path_validator_class")) {
try {
options.setPathValidatorClass((Class) Class.forName(
System.getProperty("path_validator_class")));
} catch (ClassNotFoundException e) {
throw new RuntimeException("Unable to find validator class", e);
... | 0 |
import org.apache.ambari.server.state.Clusters;
import org.apache.ambari.server.state.cluster.ClustersImpl;
Clusters clusters = new TestClusters();
ClusterService clusterService = new TestClusterService(clusters, "clusterName");
clusterService = new TestClusterService(clusters, null);
clusterService = n... | 0 |
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.util.Args;
Args.notNull(header, "Header");
Args.notNull(origin, "Cookie origin");
Args.notNull(cookie, "Cookie");
Args.notEmpty(cookies, "List of cookies"); | 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 |
private final AtomicLong fsyncThresholdExceedCount = new AtomicLong(0);
public static interface Provider {
ServerMetrics.getMetrics().UPDATE_LATENCY.add(latency);
ServerMetrics.getMetrics().READ_LATENCY.add(latency);
ServerMetrics.getMetrics().resetAll(); | 0 |
// extendedAtts.add(BIDI_LEVEL); | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Suppliers;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableSet; | 0 |
clientEventListener.await(connNo, 10000);
clientEventListener.await(connNo, 10000);
clientEventListener.await(connNo, 10000);
clientEventListener.await(connNo, 10000); | 0 |
responseChannel.sendInformation(new BasicHttpResponse(HttpStatus.SC_CONTINUE), context);
clientEndpoint.execute(new OutgoingExchangeHandler(targetHost, clientEndpoint, exchangeState), context);
responseChannel.sendResponse(outgoingResponse, exEntityDet... | 0 |
import org.apache.accumulo.core.metadata.schema.MetadataTime;
public abstract MetadataTime getMetadataTime();
public abstract MetadataTime getMetadataTime(long time);
public static TabletTime getInstance(MetadataTime metadataTime) throws IllegalArgumentException {
if (metadataTime.getType().equals(TimeType.LO... | 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 |
* Copyright 2001-2005 The Apache Software Foundation | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger LOG = LoggerFactory.getLogger(ViewDirectoryWatcher.class); | 1 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/security/interfaces/RSAKey.java,v 1.6 2006/03/14 01:20:30 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... | 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 |
Session session = getSession();
listener.startFolderEvent(session, FileOperation.RECEIVE, path, perms);
listener.endFolderEvent(session, FileOperation.RECEIVE, path, perms, e);
listener.endFolderEvent(session, FileOperation.RECEIVE, path, perms, null);
Session session = ... | 0 |
import cz.seznam.euphoria.core.client.io.Collector;
void apply(LEFT left, RIGHT right, Collector<OUT> context); | 0 |
package org.apache.commons.vfs2.provider.local;
import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.provider.AbstractRandomAccessContent;
import org.apache.commons.vfs2.util.RandomAccessMode; | 1 |
import org.apache.accumulo.core.crypto.CryptoServiceFactory.ClassloaderType;
CryptoServiceFactory.newInstance(accumuloConfiguration, ClassloaderType.JAVA));
defaultConf, CryptoServiceFactory.newInstance(defaultConf, ClassloaderType.JAVA)); | 0 |
@Override
@Override
@Override
@Override | 0 |
long heapSize(); | 0 |
import java.util.Map.Entry;
import org.apache.accumulo.core.conf.Property;
expect(tops.getProperties(myMetadataTable)).andReturn((Iterable<Entry<String,String>>) Collections.<Entry<String,String>> emptyList());
tops.setProperty(myMetadataTable, Property.TABLE_FORMATTER_CLASS.getKey(), ReplicationTableUtil.STATU... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/TestBeanPublicSubclass.java,v 1.3 2003/10/05 13:33:29 rdonkin Exp $
* $Revision: 1.3 $
* $Date: 2003/10/05 13:33:29 $
*
* Copyright (c) 2001-2003 The Apache Software Foundation. ... | 0 |
* Options that can be used to configure the Dataflow examples. | 0 |
public Coder<K> getKeyCoder() {
return keyCoder;
}
public Coder<V> getValueCoder() {
return valueCoder;
} | 0 |
pos = findWrapPos(text, width, 0); | 0 |
import cz.seznam.euphoria.core.client.operator.Join;
return Join.of(left, right)
public void JoinOnSessionWindowingNoEarlyTriggering() {
Join.of(left, right)
Join.of(left, right) | 0 |
*
*
/**
* @return all operations associated with the fileObject
* @throws FileSystemException
*/
Class[] getOperations() throws FileSystemException;
/**
* @return a operation implementing the given <code>operationClass</code>
* @throws FileSystemException
*/
FileOperation... | 0 |
* @version CVS $Id: ValidationRuleValidator.java,v 1.4 2004/05/07 13:42:09 mpo Exp $
throw new IllegalArgumentException("Widget '" + widget.getRequestParameterName() + "' is not ValidationErrorAware"); | 0 |
* os-depend-fact = {IANA assigned OS name} "." token | 1 |
@Processing(Processing.Type.BOUNDED)
@Test
public void keyHashCollisionBroadcastHashJoin() {
final String sameHashCodeKey1 = "FB";
final String sameHashCodeKey2 = "Ea";
execute(new JoinTest.JoinTestCase<String, Integer, Pair<String, String>>() {
@Override
protected Dataset<Pair<String, St... | 0 |
import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
@Contract(threading = ThreadingBehavior.IMMUTABLE) | 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 |
/*
* Copyright 2000-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 |
/** The file location strategy. */
private final FileLocationStrategy locationStrategy;
locationStrategy = builder.locationStrategy;
* Returns the {@code FileLocationStrategy} to be used for locating the
* referenced file. If no specific {@code FileLocationStrategy} has been
* set, resul... | 0 |
} catch (Exception ex) {
} catch (Exception ex) { | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/Pointer.java,v 1.5 2003/01/11 05:41:22 dmitri Exp $
* $Revision: 1.5 $
* $Date: 2003/01/11 05:41:22 $
* and ({@link JXPathContext#iteratePointers(java.lang.String)
* iteratePointers()},... | 1 |
import org.apache.beam.runners.dataflow.worker.TestOperationContext.TestDataflowExecutionState;
new TestDataflowExecutionState(
new TestDataflowExecutionState( | 0 |
@Override | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.