Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
wrappedBundle(mavenBundle().groupId("org.apache.httpcomponents.core5")
.artifactId("httpcore5") | 0 |
import java.net.URI;
import java.net.URISyntaxException;
private final Integer connectTimeoutMsec;
private final URI targetURI;
* Returns URI where to post events.
* @return URI
URI getTargetURI() {
return targetURI;
Integer getConnectonTimeoutMsec() {
return connectTimeoutMsec;
@JsonProper... | 0 |
import org.w3c.dom.Document;
public Interpreter getInterpreter(Document document, String language); | 0 |
* {@link LayeredSocketFactory} mockup implementation. | 0 |
import static org.apache.ambari.server.controller.internal.RequestResourceProvider.HAS_RESOURCE_FILTERS;
if (resourceFilters != null && resourceFilters.isEmpty() &&
actionRequest.getParameters().containsKey(HAS_RESOURCE_FILTERS) &&
actionRequest.getParameters().get(HAS_RESOURCE_FILTERS).equa... | 0 |
private XMLSignatureInputDebugger() {
* @param xmlSignatureInput the signatur to pretty print
public XMLSignatureInputDebugger(
* @param xmlSignatureInput the signatur to pretty print
public XMLSignatureInputDebugger(
this(xmlSignatureInput); | 0 |
last = iterator.next(); | 0 |
return new TextSource(ValueProvider.StaticValueProvider.of(path.toString())); | 0 |
Job job = Job.getInstance(getConf());
job.setJobName(TokenFileWordCount.class.getName()); | 0 |
* @version $Revision$ | 0 |
public List<Stage> getFirstStageInProgressPerRequest() {
List<StageEntity> stageEntities = stageDAO.findFirstStageByStatus(
List<Stage> stages = new ArrayList<>(stageEntities.size());
for (StageEntity stageEntity : stageEntities) {
stages.add(stageFactory.createExisting(stageEntity));
}
re... | 0 |
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.util.Timer;
import org.apache.beam.sdk.util.TimerSpec;
import org.apache.beam.sdk.util.TimerSpecs;
import org.apache.beam.sdk.util.state.StateSpec;
import org.apache.beam.sdk.util.state.StateSpecs;
new DoFn<String, KV<String, Integer... | 0 |
throw new IllegalArgumentException(error); | 0 |
import org.apache.felix.scr.impl.logger.ComponentLogger;
public ComponentLogger getLogger() | 0 |
import org.apache.atlas.type.AtlasTypeRegistry;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import javax.inject.Inject;
searchIndexer = new GraphBackedSearchIndexer(new AtlasGraphProvider(), ApplicationProperties.get(), new AtlasTypeRegistry()); | 0 |
* @version CVS $Id: StatusGenerator.java,v 1.6 2004/05/19 08:44:27 cziegeler Exp $
this.store_persistent = (Store)this.manager.lookup(Store.ROLE); | 0 |
/* $Id: LoaderFromStream.java,v 1.4 2004/05/10 06:30:08 skitching Exp $
* | 0 |
import com.google.cloud.dataflow.sdk.testing.RunnableOnService;
@Category(RunnableOnService.class)
@Category(RunnableOnService.class)
@Category(RunnableOnService.class)
@Category(RunnableOnService.class)
@Category(RunnableOnService.class)
@Category(RunnableOnService.class)
@Category(RunnableOnService.clas... | 0 |
(Set<Class<? extends Operator<?, ?>>>)
new HashSet<>(
(List) Arrays.asList(MyInputOperator.class, MySingleInputOperator.class))); | 0 |
public static final String REQUEST = "tcpip-forward";
if (REQUEST.equals(request)) { | 0 |
import org.apache.accumulo.core.data.impl.KeyExtent; | 1 |
pr.saveToZooKeeper(context);
pr.removeFromZooKeeper(context);
pri.next().removeFromZooKeeper(context);
return ProblemReport.decodeZooKeeperEntry(context, getIter1().next()); | 0 |
long curTime = System.currentTimeMillis();
long endTime = Long.MAX_VALUE - timeoutMillis < curTime ? Long.MAX_VALUE : curTime + timeoutMillis; | 0 |
"hostname", "hardwareProfile", "installedRoleStates", "installScriptHash",
"actionResults", "idle"}) | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Predicate;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Predicates;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Throwables; | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/security/InvalidAlgorithmParameterException.java,v 1.6 2006/03/14 01:20:27 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 "Lice... | 0 |
* @deprecated Use the OSGi annotations from org.osgi.service.component.annotations.*
@Deprecated | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting; | 0 |
package org.apache.felix.ipojo.test.scenarios.component;
import org.apache.felix.ipojo.annotations.Bind;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Requires;
import org.apache.felix.ipojo.annotations.Unbind;
import org.apache.felix.ipojo.test.scenarios.annotations.se... | 0 |
case RoleAuthorization:
resourceDefinition = new SimpleResourceDefinition(Resource.Type.RoleAuthorization, "authorization", "authorizations");
break;
case UserAuthorization:
resourceDefinition = new SimpleResourceDefinition(Resource.Type.UserAuthorization, "authorization", "authoriz... | 0 |
package org.apache.aurora.scheduler.mesos;
import org.apache.aurora.scheduler.ResourceSlot;
import org.apache.aurora.scheduler.mesos.MesosTaskFactory.ExecutorConfig;
import org.apache.aurora.scheduler.mesos.MesosTaskFactory.MesosTaskFactoryImpl; | 0 |
* Use <code>instantiateFactory</code> if you want that.
* Use <code>instantiateFactory</code> if you want that. | 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 |
* @since 1.6 | 0 |
package org.apache.felix.framework.ext; | 1 |
* <p>
* A file replicator may also implement {@link VfsComponent}. | 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 |
private static final int SESSION_TIMEOUT = 60000; | 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 |
Copyright 2002-2003 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 l... | 0 |
sch -> true); | 0 |
import cz.seznam.euphoria.core.executor.TriggerScheduler;
import java.io.Serializable;
* A windowing policy of a dataset.
* You can either override method `assignWindowsToElement` if you want
* to operate on the {@code WindowedElement}, or override
* `assignWindows` if you want to operate on raw data. There is no... | 0 |
import org.apache.log4j.PropertyConfigurator;
import java.net.URL;
private static final String VIEW_LOG_FILE = "view.log4j.properties";
configureViewLogging(viewDefinition,cl);
private void configureViewLogging(ViewEntity viewDefinition,ClassLoader cl) {
URL resourceURL = cl.getResource(VIEW_LOG_FILE);
... | 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 |
public static final String LIMIT = "limit";
public static final String OFFSET = "offset";
* Search using dsl/full text
* @param limit number of rows to be returned in the result, used for pagination. maxlimit > limit > 0. -1 maps to atlas.search.defaultlimit property value
* @param offset offset ... | 0 |
values.stream() | 0 |
import org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker;
InputT, OutputT, RestrictionT, TrackerT extends RestrictionTracker<RestrictionT, ?>>
InputT, OutputT, RestrictionT, TrackerT>> {
SplittableParDoViaKeyedWorkItems.ProcessElements<InputT, OutputT, RestrictionT, Tracke... | 0 |
requestConns.await(); | 0 |
import com.google.common.base.MoreObjects;
import java.util.Collection;
import java.util.Collections;
import java.util.Objects;
import java.util.UUID;
* Returns the {@link Aggregator Aggregators} created by this {@code DoFn}.
*/
Collection<Aggregator<?, ?>> getAggregators() {
return Collections.<Aggregator<... | 0 |
import java.util.ArrayList;
import java.util.List;
/** List of imports for spring configurations. */
private final List imports = new ArrayList();
public void addImport(String uri) {
this.imports.add(uri);
}
public List getImports() {
return this.imports;
} | 0 |
private AccumuloClient client;
client = createMock(AccumuloClient.class);
assigner = new UnorderedWorkAssigner(conf, client);
expect(client.getInstanceID()).andReturn("id");
replay(cache, client);
verify(cache, client); | 0 |
private static final org.slf4j.Logger LOG =
org.slf4j.LoggerFactory.getLogger(NameSpaceSymbTable.class);
try {
symb = (SymbMap) initialMap.clone();
} catch (CloneNotSupportedException e) {
LOG.error("Error cloning the initial map");
}
try {
... | 0 |
import java.io.IOException;
import javax.ws.rs.DELETE;
import org.apache.ambari.view.slider.SliderAppsViewController;
import org.apache.hadoop.yarn.exceptions.YarnException;
@Inject
SliderAppsViewController sliderAppsViewController;
@DELETE
@Path("{appId}")
public void deleteApp(@Context HttpHeaders headers, @Con... | 0 |
import java.util.concurrent.TimeUnit;
public interface ConnPoolControl<T> extends ConnPoolStats<T> {
void closeIdle(long idletime, TimeUnit tunit);
void closeExpired(); | 0 |
protected TreeMap<Text,TabletLocation> metaCache = new TreeMap<>(endRowComparator);
private TreeSet<KeyExtent> badExtents = new TreeSet<>();
private HashSet<Pair<String,String>> okLocks = new HashSet<>();
private HashSet<Pair<String,String>> invalidLocks = new HashSet<>();
Pair<String,String> lock = n... | 1 |
public void test_optional_single_dynamic() throws Exception
public void test_required_single_dynamic() throws Exception
public void test_optional_multiple_dynamic() throws Exception
public void test_required_multiple_dynamic() throws Exception
public void test_required_multiple_dynamic_factory() thr... | 0 |
throw new XAException("Connection is closed"); | 0 |
public interface ClassCacheEntryFactory<T>
extends CacheEntryFactory<Class<?>, T> | 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 |
* 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 |
public class TestSingletonIterator2<E> extends AbstractTestIterator<E> {
@SuppressWarnings("unchecked")
public SingletonIterator<E> makeEmptyIterator() {
SingletonIterator<E> iter = new SingletonIterator<E>((E) testValue);
@SuppressWarnings("unchecked")
public SingletonIterator<E> makeObject() {... | 0 |
@Override | 0 |
return k.getColumnQualifier().toString();
public static Mutation add(Mutation m, String tableId, Value v) {
m.put(NAME, new Text(tableId), v);
public static Mutation add(Mutation m, String tableId, Value v) {
m.put(NAME, new Text(tableId), v); | 0 |
user.setHomeDirectory(getTestDirectory()); | 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... | 1 |
* Copyright 2001-2005 The Apache Software Foundation | 0 |
* <p>
* Originally taken from the Velocity tree so we can be self-sufficient.
* </p> | 0 |
import cz.seznam.euphoria.core.client.io.DataSink;
import cz.seznam.euphoria.flink.translation.io.DataSinkWrapper;
import java.util.ArrayList;
import java.util.List;
* @return List of {@link DataSink} processed in given flow (leaf nodes)
public List<DataSink<?>> translateInto(Flow flow,
... | 0 |
* @version CVS $Id$ | 0 |
return (CallableStatement) (_pstmtPool.borrowObject(createKey(sql, StatementType.CALLABLE_STATEMENT)));
resultSetConcurrency, StatementType.CALLABLE_STATEMENT)));
* @param stmtType statement type
protected PStmtKey createKey(String sql, int resultSetType, int resultSetCo... | 0 |
import cz.seznam.euphoria.core.client.dataset.windowing.Window;
import org.apache.flink.runtime.state.KvState;
public class FlinkValueStorage<T, W extends Window> implements ValueStorage<T> {
private final W window;
public FlinkValueStorage(ValueState<T> state, W window) {
this.window = window;
setNamespace... | 0 |
import java.util.concurrent.ThreadFactory;
executor = Executors.newSingleThreadExecutor(new ThreadFactory() {
@Override
public Thread newThread(Runnable runnable) {
return new Thread(runnable, "Gogo shell");
}
}); | 0 |
import org.apache.commons.configuration.event.EventListener;
import org.apache.commons.configuration.reloading.ReloadingEvent;
@SuppressWarnings("unchecked")
controller.addEventListener(EasyMock.eq(ReloadingEvent.ANY),
EasyMock.anyObject(EventListener.class));
assertNotNull("No liste... | 0 |
* Each {@code Configuration} object derived from
* {@link org.apache.commons.configuration2.AbstractConfiguration AbstractConfiguration} | 0 |
@Override
public int hashCode() { return initialized.hashCode(); }
@Override
public boolean equals(Object o){ | 0 |
import org.apache.felix.framework.wiring.BundleRequirementImpl;
import org.osgi.framework.wiring.BundleCapability;
import org.osgi.framework.wiring.BundleRevision;
Map<BundleRevision, List<ResolverWire>> resolve(
ResolverState state, BundleRevision revision, Set<BundleRevision> optional);
Map<BundleRevi... | 1 |
package org.apache.ambari.funtest.server.api.service;
import org.apache.ambari.funtest.server.AmbariHttpWebRequest;
import org.apache.ambari.funtest.server.ConnectionParams; | 0 |
import org.apache.hc.core5.http.impl.bootstrap.HttpServer;
import org.apache.hc.core5.http.impl.bootstrap.ServerBootstrap; | 0 |
* @return the name of the property
*
* @return the property type
*
* @return <code>true</code> if the property is indexed (i.e. is a List or
* array), otherwise <code>false</code>
*
* @return <code>true</code> if the property is a Map
* otherwise <code>false</code> | 0 |
Copyright 2002-2003 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 law... | 0 |
static org.slf4j.Logger LOG =
LOG.error("Verification crashed for " + filename);
LOG.error("Verification crashed for " + filename);
LOG.error("Verification failed for " + filename);
LOG.error("Core validation crashed for " + filename);
LOG.error("Core vali... | 0 |
ArrayList<ThriftTransportKey> servers = new ArrayList<>(); | 0 |
.setOwner(new Identity().setRole(role)) | 0 |
ShellPluginConfigurationCommand(final String typeName, final Property tableProp, final String classOpt) {
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {
final String tableName = OptUtil.getTableOpt(cl, shellState);
final Iterator<Entry<String,... | 0 |
String ROLE = ObjectModel.class.getName();
String CONTEXTBEAN = "contextBean";
String NAMESPACE = "namespace";
String PARAMETERS_PATH = "cocoon/parameters";
MultiMap getAll();
Object put(Object key, Object value);
void putAll(Map mapToCopy);
void markLocalContext();
void cleanupLoca... | 0 |
import java.nio.channels.FileChannel;
import org.apache.http.nio.FileContentEncoder;
public class LengthDelimitedEncoder extends AbstractContentEncoder
implements FileContentEncoder {
public long write(final FileChannel fileChannel, long position, long count) throws IOException {
if (fileChannel ==... | 0 |
private String state;
* @return the state
*/
public String getState() {
return state;
}
/**
* @param state the State to set
*/
public void setState(String state) {
this.state = state;
}
/**
.append(", state=").append(state) | 0 |
List<KeyExtent> candidates =
findTablets(context, !opts.selectFarTablets, opts.getTableName(), tabletLocations);
boolean isLocal =
HostAndPort.fromString(entry.getValue()).getHost().equals(localaddress.getHostName());
SortedKeyValueIterator<Key,Value> visFilter =
VisibilityFi... | 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
... | 0 |
// FIXME - we should ensure that the context is never null!
if ( this.context != null ) {
try {
this.core = (Core)this.context.get(Core.ROLE);
} catch (ContextException ignore) {
// this can never happen
}
final Settings set... | 0 |
import org.apache.accumulo.core.security.NamespacePermission;
* Verify the user has a particular namespace permission
* @param namespace
* the name of the namespace to query about
* the namespace permission to check for
public boolean hasNamespacePermission(String principal,... | 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 2006-2009 The Apache Software Foundation. | 0 |
// Initialize component handlers. This is done in no particular order, but initializing a
// handler may indirectly initialize another handler through a call to lookup().
// This isn't a problem as a handler's initialize() method can be called several times.
// We copy the list of handl... | 0 |
import org.apache.cocoon.core.container.util.ClassLoaderUtils; | 0 |
boolean debugEnabled = log.isDebugEnabled();
if (debugEnabled) {
if (debugEnabled) {
boolean debugEnabled = log.isDebugEnabled();
if (debugEnabled) { | 0 |
* @throws SAXException
* @throws SAXException
* @throws SAXException | 0 |
public synchronized void assign(final Collection<TopicPartition> assigned) {
public synchronized Map<TopicPartition, OffsetAndTimestamp> offsetsForTimes(
Duration.ZERO,
.withCreateTime(Duration.ZERO)
public synchronized void flush() {
@Override
@Sup... | 0 |
* {@link SerializableOptions#bufferSize}.
* {@link SerializableOptions#references}.
* {@link SerializableOptions#registrationRequired}.
* {@link KryoCoder#instanceId}.
* {@link KryoCoder#options}.
* {@link KryoCoder#registrars}. | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.