Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
//todo exception is wrong. We don't miss a signature when we are decrypting but we miss EncryptedData | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestAll.java,v 1.6 2003/10/01 21:54:54 scolebourne Exp $
* $Revision: 1.6 $
* $Date: 2003/10/01 21:54:54 $
* @version $Id: TestAll.java,v 1.6 2003/10/01 21:54:54 scole... | 0 |
import org.apache.hc.core5.io.GracefullyCloseable;
public abstract class ConnectionEndpoint implements GracefullyCloseable { | 1 |
package org.apache.beam.sdk.extensions.euphoria.core.client.operator;
import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience;
import org.apache.beam.sdk.extensions.euphoria.core.annotation.operator.Derived;
import org.apache.beam.sdk.extensions.euphoria.core.annotation.operator.StateComplexity... | 0 |
import com.twitter.mesos.scheduler.base.JobKeys;
import com.twitter.mesos.scheduler.base.Query; | 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 to You under the Apache License, Version 2.0
* (the "License"); you may not... | 0 |
public HttpRequest receiveRequestHeader() throws HttpException, IOException {
final Socket socket = ensureOpen();
final HttpRequest request = this.requestParser.parse(this.inbuffer, socket.getInputStream());
final Socket socket = ensureOpen();
final HttpEntity entity = createIncoming... | 1 |
import org.apache.hc.core5.util.Timeout;
Future<AsyncClientEndpoint> future = requester.connect(target, Timeout.ofSeconds(5)); | 0 |
if (zk == null || !zk.getState().isAlive()) { | 0 |
// Improve the log message because of FELIX-4455, we will see if we get better feedback.
"[" + m_name + "] iPOJO did not find a suitable constructor to create the " +
"object: " + e.getMessage(), e); | 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 |
/*
* 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 |
class ConverterBuilderImpl implements ConverterBuilder { | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/observed/Attic/ObservableBuffer.java,v 1.3 2003/10/13 21:18:56 scolebourne Exp $
* @version $Revision: 1.3 $ $Date: 2003/10/13 21:18:56 $
* A {@link org.apache.commons.collec... | 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 java.io.File;
import org.apache.felix.sigil.eclipse.PathUtil;
IPath p = PathUtil.newPathIfExists(getBundle().getLocation()); | 0 |
str = str.trim();
} finally {
try { br.close(); } catch (IOException ioe) { } | 0 |
final CopletInstance original = this.portalService.getProfileManager().getCopletInstance(ci.getCopletId());
layout.setCopletInstanceId(cid.getId());
CopletInstance cid = this.portalService.getProfileManager().getCopletInstance(ci.getCopletId());
... | 0 |
import java.util.Arrays;
import java.util.List; | 0 |
* @param state the maintenance state
public void setMaintenanceState(MaintenanceState state);
* @return the maintenance state
public MaintenanceState getMaintenanceState(); | 0 |
private static Map<String, Class<?>> algorithmsClassMapInOut;
private static Map<String, Class<?>> algorithmsClassMapIn;
private static Map<String, Class<?>> algorithmsClassMapOut;
algorithmsClassMapInOut = new HashMap<String, Class<?>>();
algorithmsClassMapIn = new HashMap<String, Class<?>>... | 0 |
public class BasicClientExchangeHandler<T> implements AsyncClientExchangeHandler { | 0 |
JSONArray guids = metadataServiceClient.createEntity(entityJSON);
System.out.println("created instance for type " + typeName + ", guid: " + guids);
return new Id(guids.getString(0), referenceable.getId().getVersion(), referenceable.getTypeName());
JSONArray results = metadataServiceC... | 1 |
private static final boolean DISPLAY_THREAD_DETAILS=
Boolean.valueOf(System.getProperty("TestConnectionPool.display.thread.details", "false")).booleanValue();
// To pass this to a Maven test, use:
// mvn test -DargLine="-DTestConnectionPool.display.thread.details=true"
// @see http://jira.codeha... | 0 |
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.transforms.ParDo;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
public void testConflictingNames() {
final PipelineOptions options = TestPipeline.testingPipelineOptions();
final Pipeline p = Pipeline.create(options);
... | 0 |
new LocalizableSupport(RESOURCES, Messages.class.getClassLoader()); | 1 |
package iterator;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.accumulo.core.conf.AccumuloConfiguration;
import org.apache.accumulo.core.data.Key;
import org.apache.accumulo.core.data.Value;
import org.apache.accumulo.core.file.map... | 1 |
/**
* Microsoft Windows specific user principal implementation. | 0 |
public DualHashBidiMap(final Map<K, V> map) {
protected DualHashBidiMap(final Map<K, V> normalMap, final Map<V, K> reverseMap, final BidiMap<V, K> inverseBidiMap) {
protected BidiMap<V, K> createBidiMap(final Map<V, K> normalMap, final Map<K, V> reverseMap, final BidiMap<K, V> inverseBidiMap) {
private ... | 0 |
public class NoopTriggerScheduler<W extends Window, K> implements TriggerScheduler<W, K> {
public void cancelAll() {}
public void cancel(long stamp, KeyedWindow<W, K> window) {}
public void close() {} | 0 |
cfg.setProperty(Property.INSTANCE_ZK_TIMEOUT, "15s"); | 0 |
* Copyright 1999-2006 The Apache Software Foundation | 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 |
* Exception thrown if a property is attempted to be extracted from an object that does not have such a property.
public class NoSuchPropertyException
extends OgnlException
private Object target;
private Object name;
super( getReason( target, name ) );
super( getReason( target, name ), reas... | 0 |
Assert.assertEquals(Arrays.asList("xx", "jp", "ac.jp", "*.tokyo.jp", "no", "h\u00E5.no"), suffixList.getRules()); | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bidimap/AbstractBidiMapDecorator.java,v 1.2 2003/12/03 14:03:35 scolebourne Exp $
* @version $Revision: 1.2 $ $Date: 2003/12/03 14:03:35 $
protected AbstractBidiMapDecorator(B... | 0 |
import net.sf.ehcache.config.PersistenceConfiguration.Strategy; | 0 |
private static HashMap<String,String> response= new HashMap<>(); | 0 |
TabletStateChangeIterator.setMigrations(tabletChange, state.migrationsSnapshot()); | 0 |
import java.util.HashMap;
import org.codehaus.jackson.annotate.JsonProperty;
private Map<String, String> params = new HashMap<String, String>();
private Map<String, List<String>> clusterHostInfo =
new HashMap<String, List<String>>();
@JsonProperty("commandId")
@JsonProperty("commandId")
... | 1 |
import org.apache.zookeeper.server.quorum.flexible.QuorumVerifier;
import org.apache.zookeeper.server.quorum.flexible.QuorumMaj;
/**
* QuorumVerifier implementation; default (majority).
*/
private QuorumVerifier quorumConfig;
/**
* For backward compatibility purposes, we i... | 0 |
try (BigQueryTableRowIterator iterator = BigQueryTableRowIterator.of(
try (BigQueryTableRowIterator iterator = BigQueryTableRowIterator.of(
try (BigQueryTableRowIterator iterator = BigQueryTableRowIterator.of(
try (BigQueryTableRowIterator iterator = BigQueryTableRowIterator.of(
try (BigQueryTableRo... | 0 |
import java.io.PrintStream;
// Cache the original System.err, because the logging infrastructure modifies it and redirects
// it to a logger.
private static final PrintStream originalStandardError = System.err;
public void uncaughtException(Thread thread, Throwable e) {
try {
LOG.error("U... | 0 |
package org.apache.commons.ognl.test.enhance;
import org.apache.commons.ognl.Node;
import org.apache.commons.ognl.Ognl;
import org.apache.commons.ognl.OgnlContext;
import org.apache.commons.ognl.enhance.ExpressionCompiler;
import org.apache.commons.ognl.enhance.OgnlExpressionCompiler;
import org.apache.commons.ognl.tes... | 0 |
// tarFile = createTarFile(this.file);
finally
{
closeCommunicationLink();
}
/**
* will be called after all file-objects closed their streams.
*/
protected void notifyAllStreamsClosed()
{
closeCommunicationLink();
} | 0 |
public java.util.List getDefinitionSet(){ | 0 |
package org.apache.aurora.scheduler.base;
import org.apache.aurora.gen.JobKey;
import org.apache.aurora.gen.TaskQuery;
import org.apache.aurora.scheduler.storage.entities.IJobConfiguration;
import org.apache.aurora.scheduler.storage.entities.IJobKey;
import org.apache.aurora.scheduler.storage.entities.ITaskConfig; | 0 |
if (batches < 0) { | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.MoreObjects.firstNonNull;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState;
import stat... | 0 |
String subparts[] = ((parts[i].split(";"))[0]).split(":");
String clientPort = (parts[i].split(";"))[1]; | 0 |
*
* @version $Id$ | 0 |
@SuppressWarnings("unchecked")
void add(AccState<VALUE> other) {
MapElements.of(firstStep).using(Pair::getSecond).output(); | 0 |
requestDate, responseDate, response);
new Date(), new Date(), response);
new Date(), new Date(), response);
new Date(), new Date(), response);
new Date(), response);
twoSecondsAgo, oneSecondAgo, response);
tw... | 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")... | 0 |
* "Apache" nor may "Apache" appear in their name without prior
* @version $Revision: 1.4 $ $Date: 2003/10/05 21:45:49 $ | 0 |
* Callback for initializing the reference (field references)
/**
* Initialize the reference. This is usually setting the value of a field.
* @param componentInstance The component instance
* @param logger The logger
* @return {@code true} if initialization succeeded
*/
boolean init( Ob... | 0 |
import org.apache.accumulo.core.client.AccumuloClient;
private AccumuloClient c;
c = getAccumuloClient();
AccumuloClient user1Con = c.changeUser(u1, user1.getToken()); | 0 |
ret.setEntityGuid(AtlasGraphUtilsV2.getEncodedProperty(classificationVertex, CLASSIFICATION_ENTITY_GUID, String.class));
String strValidityPeriods = AtlasGraphUtilsV2.getEncodedProperty(classificationVertex, CLASSIFICATION_VALIDITY_PERIODS_KEY, String.class); | 0 |
if (isOpen()) {
session.close(true);
} | 0 |
@Override
@Override
public Lock getLock() {
return ioSession.getLock();
}
@Override
return ioSession.getLock();
... | 0 |
import java.util.List;
protected List textRuns;
public List getTextRuns() {
return textRuns;
}
public void setTextRuns(List textRuns) {
this.textRuns = textRuns;
}
beginMark = rc.getTextPainter().selectFirst(x, y, aci, this, rc);
endMark = rc.getTextPainter().se... | 0 |
private Map<String, Alert> m_alertCache = new ConcurrentHashMap<>(); | 1 |
.setName(PORTS.getMesosName()) | 0 |
/**
* Copyright 2003-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 app... | 0 |
import static org.apache.commons.collections4.functors.NullPredicate.*; | 0 |
* https://issues.apache.org/jira/browse/ZOOKEEPER-1343 | 0 |
"TableCell can hold arbitrary instances, which may be non-deterministic."); | 0 |
return convertCollectionToSingleValue(targetAsClass);
} else if (object instanceof Map.Entry) {
return convertMapEntryToSingleValue(targetAsClass);
return convertArrayToSingleValue(targetAsClass);
@SuppressWarnings("rawtypes")
private Object convertMapEntryToSingleVal... | 0 |
import org.apache.sshd.common.session.Session;
public void startFileEvent(
Session session, FileOperation op, Path file, long length, Set<PosixFilePermission> perms)
throws IOException {
log.trace("startFileEvent({})[{}] - length={}, permissions={}, file={}", session, op, len... | 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 |
/**
* Provide a String representaion of this file filter.
*
* @return a String representaion
*/
public String toString() {
String condition = acceptOlder ? "<=" : ">";
return super.toString() + "(" + condition + cutoff + ")";
} | 0 |
@SuppressWarnings("serial")
@SuppressWarnings("serial") | 0 |
tableRow(sb, (highlight = !highlight), "<a href='/tservers'>Tablet Servers</a>", NumberType.commas(info.tServerInfo.size(), 1, Long.MAX_VALUE));
tableRow(sb, (highlight = !highlight), "<a href='/tservers'>Dead Tablet Servers</a>", NumberType.commas(info.deadTabletServers.size(), 0, 0));
... | 0 |
import com.google.common.collect.ImmutableSet;
| 0 |
import org.apache.http.util.Args;
Args.notNull(requestExecutor, "HTTP request executor");
Args.notNull(retryStrategy, "Retry strategy"); | 0 |
* @version CVS $Id: EPNames.java,v 1.4 2004/01/31 08:50:39 antonio Exp $
public class EPNames extends BaseElementProcessor {
public EPNames() {
} // end public class EPNames | 0 |
import org.apache.accumulo.core.client.impl.Credentials;
import org.apache.accumulo.core.data.impl.KeyExtent; | 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... | 0 |
throw new IllegalStateException(
"Security module currently cannot support Kerberos/SASL instances");
if (WalkingSecurity.get(state, env)
.userExists(WalkingSecurity.get(state, env).getTabUserName())) { | 0 |
if ( m_userConfig.isRemoteFile() )
{
m_logger.info( "Deploying " + resourceURI );
}
else
{
m_logger.info( "Installing " + resourceURI );
}
| 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.slf4j.LoggerFactory;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
// Reduce pax exam log level.
Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
root.setLevel(Level.WARN); | 0 |
* Sets the hdfs file name to use, containing a newline separated list of Base64 encoded split
* points that represent ranges for partitioning | 0 |
throw new RuntimeException(e); | 0 |
((DefaultContext)this.context).makeReadOnly();
/* (non-Javadoc)
* @see org.apache.avalon.framework.activity.Disposable#dispose() | 0 |
package org.apache.beam.runners.direct;
import org.apache.beam.runners.direct.InProcessPipelineRunner.CommittedBundle;
import org.apache.beam.runners.direct.InProcessPipelineRunner.UncommittedBundle; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/UnsignedIntArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $
* $Revision: 1.2 $
* $Date: 2002/08/13 19:41:36 $
* A list of unsigned 32-bit values, stored in ... | 0 |
* A host was registered with the server.
*/
HOST_REGISTERED,
/** | 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.aurora.scheduler.cron.quartz.CronModule;
// TODO(Suman Karumuri): Pass in AUTH as extra module
modules.add(Modules.wrapInPrivateModule(AUTH_MODULE.get(), AUTH_MODULE_CLASSES));
.add(new CronModule()) | 0 |
* @since Commons IO 2.0
* @since Commons IO 2.0 | 0 |
ServletContextHelper.class.getName(), | 0 |
import org.apache.aurora.common.stats.StatsProvider;
import org.apache.aurora.common.util.Clock;
import org.apache.aurora.common.util.testing.FakeClock; | 0 |
import org.apache.beam.sdk.values.TypeDescriptor;
@Test
public void testGenericStandardCoderFallsBackToT() throws Exception {
Assert.assertThat(
new Foo<String>().getEncodedTypeDescriptor().getType(),
CoreMatchers.not(TypeDescriptor.of(String.class).getType()));
}
@Test
public void testG... | 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 |
String NO_OPTIONS_VALUE = "none";
if (NO_OPTIONS_VALUE.equalsIgnoreCase(propValue)) {
return false;
}
| 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 javax.persistence.LockModeType;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public WidgetLayoutEntity mergeWithFlush(WidgetLayoutEntity widgetLayoutEntity) {
EntityManager entityManager = entityManagerProvider.get();
widgetLayoutEntity = en... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.