Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.hc.core5.util.Args; | 1 |
PCollection<Integer> output = outputs.apply(Flatten.pCollections()); | 0 |
/*
* $Source: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbcp/src/java/org/apache/commons/dbcp/datasources/PoolKey.java,v $
* $Revision: 1.2 $
* $Date: 2003/08/22 16:08:32 $
*
*
* Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* 3. The end-user documentation ... | 0 |
entry = new InternEntry<>(t, association); | 0 |
private boolean asymmetric = false;
return asymmetric;
if (key instanceof PrivateKey) {
this.asymmetric = true;
}
this.asymmetric = true; | 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 |
storage,
// Safe to pass false here to default to the non-experimental task store
// during restore from backup procedure.
false /** useDbSnapshotForTaskStore */); | 0 |
// !!! for convenience, bring over jdk compatibility information from the stack
protected static final String VERSION_DEF_MIN_JDK = "VersionDefinition/min_jdk";
protected static final String VERSION_DEF_MAX_JDK = "VersionDefinition/max_jdk";
VERSION_DEF_MIN_JDK,
VERS... | 0 |
import static com.google.cloud.dataflow.sdk.transforms.display.DisplayDataMatchers.hasNamespace;
public void testHasNamespace() {
Matcher<DisplayData> matcher = hasDisplayItem(hasNamespace(SampleTransform.class));
assertFalse(matcher.matches(DisplayData.from(
new PTransform<PCollection<String>, PColl... | 0 |
import java.util.HashMap;
import java.util.Map; | 0 |
* @param method the {@link AUTH_METHOD} to use
* @param username the user name
* @param password the password
public boolean auth(AUTH_METHOD method,
if (sendCommand(authCommand, method.getAuthName())
switch(method) {
case PLAIN:
// the server sends an empt... | 0 |
* @version $Id$
public class UniqueFilterIteratorTest<E> extends AbstractIteratorTest<E> {
public UniqueFilterIteratorTest(String testName) { | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
class BeamSqlExample { | 0 |
private final String __subject;
private final String __from;
private final String __to;
* Must not be null.
* May be null
* May be null
if (from == null) {
throw new IllegalArgumentException("From cannot be null");
}
h... | 0 |
* {@link #setNamespaceContextPointer(NodePointer) setNamespaceContextPointer}. | 0 |
ReadWriteIT.ingest(connector, getConnectionInfo(), ROWS, COLS, 50, 0, tableName);
ReadWriteIT.verify(connector, getConnectionInfo(), ROWS, COLS, 50, 0, tableName); | 0 |
labRat = (SequencedHashMap) makeEmptyMap();
public Map makeEmptyMap() {
} | 0 |
@Override
@Override | 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 |
* 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 |
* {@link BasicConnFactory#BasicConnFactory(SSLSocketFactory, int, SocketConfig, ConnectionConfig)}.
* {@link BasicConnFactory#BasicConnFactory(int, SocketConfig, ConnectionConfig)}. | 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 |
import org.apache.ambari.logsearch.config.api.LogSearchConfigServer;
import org.apache.ambari.logsearch.configurer.LogSearchConfigConfigurer;
private LogSearchConfigState logSearchConfigState;
@Inject
private LogSearchConfigConfigurer logSearchConfigConfigurer;
public LogSearchConfigServer getLogSearchConfig()... | 0 |
private void tryClose(ServerSocketChannel s) {
try {
s.close();
} catch (IOException sse) {
LOG.error("Error while closing server socket.", sse);
}
}
public void reconfigure(InetSocketAddress addr) {
this.ss = ServerSocketChannel.open();
... | 0 |
@Override | 0 |
return entry.getValue() != null;
key2 = keyType == ReferenceStrength.HARD ? key2 : ((Reference<K>) key2).get();
return key1 == key2 || key1.equals(key2);
return (K) (parent.keyType == ReferenceStrength.HARD ? key : ((Reference<K>) key).get());
return (V) (parent.valueType... | 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... | 0 |
import org.apache.beam.runners.core.PerKeyCombineFnRunner; | 0 |
Map<String, String> checkProperties = new HashMap<>();
Map<String, Service> services = new HashMap<>();
Map<String, String> checkProperties = new HashMap<>();
Map<String, Service> services = new HashMap<>();
Map<String, String> checkProperties = new HashMap<>();
Map<String, Service> services = n... | 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 |
private Charset charset;
/**
* @since 4.4
*/
public URIBuilder setCharset(final Charset charset) {
this.charset = charset;
return this;
}
/**
* @since 4.4
*/
public Charset getCharset() {
return charset;
}
this.queryParams = parseQuery(ur... | 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 ap... | 0 |
FileSystem ns = fs.getFileSystemByPath(root); | 0 |
* Cache PCollection if SparkPipelineOptions.isCacheDisabled is false or transform isn't
* GroupByKey transformation and PCollection is used more then once in Pipeline.
public boolean shouldCache(PTransform<?, ? extends PValue> transform, PValue pvalue) {
if (serializableOptions.get().as(SparkPipelineOptions... | 0 |
import org.apache.hc.core5.http.nio.command.RequestExecutionCommand;
ioSession.enqueue(new RequestExecutionCommand(exchangeHandler, context), Command.Priority.NORMAL); | 0 |
import org.apache.cocoon.woody.util.I18nMessage;
validationError = new ValidationError(new I18nMessage("multivaluefield.conversionfailed", Constants.I18N_CATALOGUE)); | 0 |
import org.apache.atlas.AtlasErrorCode;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
throw new AtlasBaseException(AtlasErrorCode.INCOMPATIBLE_SUPERTYPE, superTypeName,
entit... | 0 |
package org.apache.ambari.server.stack.upgrade;
import org.apache.ambari.server.stack.upgrade.UpgradePack.OrderService;
import org.apache.ambari.server.stack.upgrade.UpgradePack.ProcessingComponent;
import org.apache.ambari.server.stack.upgrade.orchestrate.StageWrapper;
import org.apache.ambari.server.stack.upgrade.orc... | 0 |
package org.apache.accumulo.test.mapred;
import org.apache.accumulo.core.client.mapred.AccumuloInputFormat;
import org.apache.accumulo.core.client.mapred.AccumuloRowInputFormat;
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken;
import org.apache.accumulo.harness.AccumuloClusterHarness;
import ... | 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 |
/*
* ====================================================================
* 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 |
* @param <E> the type of elements in this collection | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/axes/RootContext.java,v 1.14 2004/01/18 01:43:29 dmitri Exp $
* $Revision: 1.14 $
* $Date: 2004/01/18 01:43:29 $
* @version $Revision: 1.14 $ $Date: 2004/01/18 01:43:29 $
p... | 0 |
public void execute(Storage.MutableStoreProvider storeProvider) {
public void execute(Storage.MutableStoreProvider storeProvider) {
public void execute(Storage.MutableStoreProvider storeProvider) {
public void execute(Storage.MutableStoreProvider storeProvider) {
public void execute(Storag... | 0 |
private void configTest(final XMLConfiguration config)
final FileHandler handler = new FileHandler(config);
final FileHandler handler = new FileHandler(config);
final FileHandler handler = new FileHandler(config);
final FileHandler handler = new FileHandler(config);
final Fil... | 0 |
import junit.framework.Test;
import org.apache.commons.collections4.BulkTest;
public static Test suite() {
return BulkTest.makeSuite(TreeBagTest.class);
}
//-----------------------------------------------------------------------
// Bag<T> bag = makeObject();
// bag = makeFullCollect... | 0 |
public final class TimeInterval extends Window implements Comparable<TimeInterval> {
private final long endMillis;
public TimeInterval(long startMillis, long endMillis) {
this.endMillis = endMillis;
return endMillis;
}
/**
* Returns {@code true} if this window intersects the given window.
*/
bo... | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
import org.apache.accumulo.core.data.ArrayByteSequence;
import com.google.common.base.Preconditions;
private static final ArrayByteSequence COLF_BYTE_SEQ = new ArrayByteSequence(COLF.toString());
/**
* Extract the table ID from the colfam (inefficiently if called repeatedly)
* @param k Key to extrac... | 0 |
import org.apache.http.protocol.HttpExpectationVerifier;
private HttpExpectationVerifier expectationVerifier;
public void setExpectationVerifier(final HttpExpectationVerifier expectationVerifier) {
this.expectationVerifier = expectationVerifier;
}
if (!ver.lessEquals(HttpVersion.HTTP_1_1))... | 0 |
import org.apache.ambari.server.state.CheckHelper;
import org.apache.ambari.spi.ClusterInformation;
import org.apache.ambari.spi.RepositoryType;
import org.apache.ambari.spi.RepositoryVersion;
import org.apache.ambari.spi.upgrade.UpgradeCheckRequest;
import org.apache.ambari.spi.upgrade.UpgradeCheckResult;
import org.a... | 0 |
package org.apache.batik.gvt.filter; | 0 |
public boolean isRegistered(String sessionId) {
return registeredHosts.containsKey(sessionId);
}
| 1 |
* Copyright 2016 Seznam.cz, a.s. | 0 |
@Test
public void clearSupported() {
final WeakList<Object> list = new WeakList<Object>();
list.add("hello");
assertEquals(1, list.size());
list.clear();
assertEquals(0, list.size());
}
| 0 |
"This service is removed from the new release and must be removed before the upgrade can continue.").build()); | 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 |
CodedTupleTag<T> codedTriggerIdTag = codedTriggerIdTag(tag, window);
keyedState.lookup(codedTriggerIdTag);
keyedState.store(codedTriggerIdTag, value);
CodedTupleTag<T> codedTriggerIdTag = codedTriggerIdTag(tag, window);
keyedState.lookup(codedTriggerIdTag);
keyedState.remove(codedTri... | 0 |
final String normalizedHost = host.toLowerCase(Locale.ROOT);
final String normalizedCn = cn.toLowerCase(Locale.ROOT);
if (!matchIdentityStrict(normalizedHost, normalizedCn, publicSuffixMatcher)) { | 0 |
import java.util.LinkedHashMap;
layoutData = new LinkedHashMap(); | 0 |
import org.apache.commons.vfs.util.UserAuthenticatorUtils;
public static HttpClient createConnection(String hostname, int port, char[] username, char[] password, FileSystemOptions fileSystemOptions) throws FileSystemException
final HttpURL url = new HttpURL(
UserAuthenticatorUtils.toString(username)... | 0 |
passwords = ClientSession.passwordIteratorOf(session); | 0 |
import org.apache.aurora.scheduler.async.preemptor.PreemptorModule;
install(new PreemptorModule()); | 0 |
/**
* Copyright 2016 Seznam a.s.
*
* 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... | 0 |
import com.google.cloud.dataflow.sdk.transforms.Combine;
* Wrapper that wraps a {@link com.google.cloud.dataflow.sdk.transforms.Combine.CombineFn}
public class SerializableFnAggregatorWrapper<AI, AO> implements Aggregator<AI, AO>, Accumulator<AI, Serializable> {
private Combine.CombineFn<AI, ?, AO> combiner;
public ... | 0 |
this.uniquePoolEntry = new PoolEntry();
uniquePoolEntry = new PoolEntry();
protected PoolEntry() {
super(SingleClientConnManager.this.connOperator, null); | 0 |
@Override
@Override
@Override
@Override | 0 |
* @param pool {@link KeyedObjectPool} of {@link PreparedStatement}s | 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.AfterClass
public static void cleanup() throws Exception {
Security.removeProvider("org.bouncycastle.jce.provider.BouncyCastleProvider");
}
| 0 |
* This is called by the ResultPostProcessor during post processing of a result.
* This is called by the ResultPostProcessor during post processing of a result. | 0 |
@Override
@Override | 0 |
/** Used in user defined functions to access environment methods. */
public interface Context extends Environment {} | 0 |
/*
* Copyright (C) 2015 Google Inc.
*
* 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 ... | 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 CliCommand parse(String[] cmdArgs) throws CliParseException {
CommandLine cl;
try {
cl = parser.parse(options, cmdArgs);
} catch (ParseException ex) {
throw new CliParseException(ex);
}
throw new CliParseException(getUsageStr());
public ... | 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 boolean includeClassificationAttributes;
* @return True if classification attributes are included in search result.
*/
public boolean getIncludeClassificationAttributes() {
return includeClassificationAttributes;
}
/**
* Include classificatio attributes in search result.
... | 0 |
private static final transient Logger log = LoggerFactory.getLogger(LogInputProcessor.class);
log.trace(stringWriter.toString()); | 0 |
String server = req.getParameter("server"); | 0 |
import org.apache.accumulo.server.AccumuloServerContext;
void removeFromMetadataTable(AccumuloServerContext context) throws Exception {
MetadataTableUtil.getMetadataTable(context).update(m);
void saveToMetadataTable(AccumuloServerContext context) throws Exception {
MetadataTableUtil.getMetadataTable(contex... | 1 |
DataflowPipelineWorkerPoolOptions, BigQueryOptions, | 0 |
.setInstructionId("1L")
.setInstructionId("1L")
.setInstructionId("2L")
.setInstructionId("2L")
.setInstructionId("3L")
.setInstructionId("3L") | 0 |
"Registering consumer for instruction {} and transform {}",
inputLocation.getPTransformId());
"Creating output consumer for instruction {} and transform {}",
outputLocation.getPTransformId()); | 0 |
import java.util.function.Predicate;
if (filter.test(entry.getKey())) { | 0 |
@Parameter(names = "--vis")
| 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 1 |
*
*
*
* @version CVS $Id$ | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/LongIteratorIterator.java,v 1.3 2003/11/07 20:08:15 rwaldhoff Exp $
*
* @deprecated This code has been moved to Jakarta Commons Primitives (http://jaka... | 0 |
import org.junit.Test;
public class MethodPropertyTest {
@Test | 0 |
flinkStreamEnv.getCheckpointConfig().setCheckpointTimeout(
options.getCheckpointTimeoutMillis()); | 0 |
import org.apache.sshd.common.util.NumberUtils;
default void update(byte[] input) throws Exception {
update(input, 0, NumberUtils.length(input));
} | 0 |
* @param paramTypeNames The Java classes names that represent the parameter types of the method arguments | 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 applic... | 0 |
* TODO(wfarner): Move this and other mass-delete methods to an interface that is only
* accessible by SnapshotStoreImpl. | 0 |
import java.io.InterruptedIOException;
import org.apache.http.nio.reactor.IOEventDispatch;
private IOReactorExceptionHandler exceptionHandler = null;
private IOEventDispatch eventDispatch = null;
public void execute(
final IOEventDispatch eventDispatch) throws InterruptedIOException, IOReactorEx... | 0 |
import java.net.IDN;
return IDN.toASCII(input); | 0 |
private void runTest(List<Range> ranges, TabletLocatorImpl tab1TabletCache,
runTest(ranges, tab1TabletCache, expected, failures);
private void runTest(List<Range> ranges, TabletLocatorImpl tab1TabletCache,
runTest(ranges, metaCache, expected);
runTest(ranges, metaCache, expected);
runTest(ranges, me... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.