Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
activeWindowToStateAddressWindows.entrySet().removeIf(entry -> entry.getValue().isEmpty()); | 0 |
import java.util.Map;
import org.apache.batik.bridge.BridgeMutationEvent;
import org.apache.batik.bridge.FilterBridge;
import org.apache.batik.gvt.filter.FilterRegion;
import org.apache.batik.gvt.filter.GraphicsNodeRable;
import org.apache.batik.gvt.filter.GraphicsNodeRableFactory;
* Returns the <tt>Filter</tt> th... | 0 |
import static org.apache.beam.sdk.values.Schema.toSchema;
import org.apache.beam.sdk.values.Schema;
private Schema outSchema;
public MergeAggregationRecord(Schema outSchema, List<AggregateCall> aggList
this.outSchema = outSchema;
.withRowType(outSchema)
Schema typeOfKey = exTypeOf... | 0 |
testfile.setLength(pos);
} | 0 |
* Execution Context for the {@link DirectRunner}.
* Step Context for the {@link DirectRunner}. | 0 |
import java.lang.reflect.*;
* @see org.apache.felix.ipojo.MethodInterceptor#onEntry(java.lang.Object, java.lang.reflect.Member, java.lang.Object[])
public void onEntry(Object pojo, Member method, Object[] args) {
* @see org.apache.felix.ipojo.MethodInterceptor#onError(java.lang.Object, java.lang.reflect.M... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/impl/TagScript.java,v 1.38 2003/10/09 21:21:28 rdonkin Exp $
* $Revision: 1.38 $
* $Date: 2003/10/09 21:21:28 $
* any, must include the following acknowledgement:
* Alternately, this... | 0 |
import org.apache.ambari.server.state.State; | 0 |
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
static final Logger LOGGER = LogManager.getLogger(SandboxTest.class.getName()); | 1 |
public ZooSessionInfo(ZooKeeper zooKeeper) {
zsi = new ZooSessionInfo(connect(zooKeepers, timeout, scheme, auth, watcher)); | 0 |
* @version $Id$ | 0 |
package org.apache.sshd.client; | 0 |
private final Map plugins;
this.plugins = new HashMap();
plugin = ( Plugin ) plugins.get( label );
Map getLocalizedLabelMap( final ResourceBundleManager resourceBundleManager, final Locale locale )
final Map map = new HashMap();
oldPlugin = ( Plugin ) plugins.remove( ... | 0 |
import org.apache.accumulo.core.client.impl.Table;
Table.ID tableId = new Table.ID(c.tableOperations().tableIdMap().get(tableName)); | 1 |
if (this.request == null && !this.closed) {
handler.requestReady(this);
}
| 0 |
import org.apache.accumulo.core.client.IteratorSetting;
/**
* Encode the terms to match against in the iterator
*
* @param si
* ScanIterator config to be updated
* @param rowTerm
* the pattern to match against the Key's row. Not used if null.
* @param cfTerm
* the p... | 0 |
import org.json.simple.JSONObject;
* HDFS Status
* @return status
*/
@GET
@Path("/hdfsStatus")
@Produces(MediaType.APPLICATION_JSON)
public Response hdfsStatus(){
HdfsService.hdfsSmokeTest(context);
return getOKResponse();
}
private Response getOKResponse() {
JSONObject response = new ... | 0 |
import org.apache.batik.bridge.CursorManager;
SVGAElementBridge.CursorHolder ch;
ch = new SVGAElementBridge.CursorHolder
(CursorManager.DEFAULT_CURSOR);
new SVGAElementBridge.AnchorListener(ua,ch),
... | 0 |
@Override
@Override
@Override | 0 |
shuffleWriterConfig, SHUFFLE_WRITER_BUFFER_SIZE, addCounterMutator); | 0 |
* @return {@code true} if the task execution could be scheduled, {@code false} otherwise.
public boolean executeTask(final Runnable task) {
return true;
return false; | 0 |
*
*
*
*
* | 0 |
if (!s.typeName.equals(structType.getName())) { | 0 |
public static final <S extends OptionalFeature,T,E extends NamedFactory<T>> List<NamedFactory<T>> setUpTransformedFactories(
boolean ignoreUnsupported, Collection<? extends S> preferred, Transformer<? super S,? extends E> xform) {
List<NamedFactory<T>> avail=new ArrayList<>(prefer... | 0 |
/**
* A {@code SerializableFunction} that computes the sum of an
* {@code Iterable} of {@code Integer}s, useful as an argument to
* {@link Combine#globally} or {@link Combine#perKey}.
*/
/**
* A {@code SerializableFunction} that computes the sum of an
* {@code Iterable} of {@code Long}s, useful as... | 0 |
scanner.setRange(new KeyExtent(tableId, end, start).toMetadataRange()); | 0 |
import org.apache.log4j.Logger;
private static final Logger log = Logger.getLogger(VerifyTabletAssignments.class);
log.error("Failure on tablet server '"+entry.getKey()+".", e); | 0 |
import org.apache.felix.http.base.internal.whiteboard.WhiteboardManager;
public HttpSessionAttributeListenerTracker(final BundleContext context, final WhiteboardManager manager) | 0 |
import java.util.LinkedHashMap;
class HashMapCache extends LinkedHashMap { | 0 |
sshd.setSessionFactory(new SessionFactory(sshd) {
protected ServerSessionImpl doCreateSession(IoSession ioSession) throws Exception { | 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 |
import org.springframework.beans.factory.BeanDefinitionStoreException;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.su... | 0 |
import javax.annotation.Nullable;
import org.apache.beam.sdk.values.PCollectionView;
class NaiveSpannerReadFn extends AbstractSpannerFn<ReadOperation, Struct> {
private final SpannerConfig config;
@Nullable private final PCollectionView<Transaction> transaction;
NaiveSpannerReadFn(SpannerConfig config, @Nullable ... | 0 |
@Override
@Override | 0 |
private Map<String, String> attributeMap = new HashMap<>(); | 0 |
import org.apache.sshd.client.ScpClient;
import org.apache.sshd.client.scp.DefaultScpClient;
public ScpClient createScpClient() {
return new DefaultScpClient(this);
}
| 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 |
Configuration conf = cluster.getServerContext().getHadoopConf(); | 0 |
String pkgs = m_secureAction.getSystemProperty(STREAM_HANDLER_PACKAGE_PROP, "");
String pkgs = m_secureAction.getSystemProperty(CONTENT_HANDLER_PACKAGE_PROP, ""); | 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 |
import org.apache.felix.scr.impl.config.ScrConfiguration;
private static final String CONFIG_CMD = "config";
private final ScrConfiguration scrConfiguration;
ScrCommand( BundleContext bundleContext, ScrService scrService, ScrConfiguration scrConfiguration )
this.scrConfiguration = scrConfiguration;
... | 0 |
return DelegateCoder.of(VarIntCoder.of(), input -> input.current, CounterMark::new); | 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 |
map.put( DynamicSubscript.DS_FIRST, new Integer( 99 ) ); | 0 |
import org.apache.accumulo.core.security.tokens.PasswordToken; | 0 |
* @version CVS $Id: ClearCacheAction.java,v 1.3 2003/10/15 20:47:14 cziegeler Exp $
public class ClearCacheAction extends ServiceableAction implements ThreadSafe { | 0 |
* </p>
* </p> | 0 |
import org.apache.beam.sdk.testing.TestPipeline;
public final TestPipeline pipeline = TestPipeline.create();
PCollection<GenericRecord> input = pipeline.apply(
pipeline.run(); | 0 |
import org.apache.beam.runners.core.DoFnRunner;
import org.apache.beam.runners.core.DoFnRunners;
import org.apache.beam.runners.core.PushbackSideInputDoFnRunner; | 0 |
import java.util.Objects;
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EqualUrnPTransformMatcher that = (EqualUrnPTransformMatcher) o;
return urn.equals(that.urn);
... | 0 |
import org.apache.http.testserver.SimpleEventListener;
import org.apache.http.testserver.SimpleHttpRequestHandlerResolver; | 0 |
try {
subComponent.populateDisplayData(this);
} catch (Throwable e) {
String msg = String.format("Error while populating display data for component: %s",
namespace);
throw new RuntimeException(msg, e);
}
| 0 |
import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.stub.StreamObserver; | 0 |
* For example, an address like nobody@noplace.somedog will pass validator, even though there
* is no TLD "somedog"
private static final String TLD_PATTERN = "/^([a-zA-Z]+)$/";
// TODO: the tld should be checked against some sort of configurable
// list
Strin... | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
import com.google.common.collect.ImmutableMap;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map; | 0 |
private static final Logger LOG = LoggerFactory.getLogger(UpgradeCheckRegistry.class);
LOG.debug("Adding service check jar to classpath: {}", url); | 1 |
boolean contains(ByteSequence auth); | 0 |
Disposable, ThreadSafe, Component {
libraryManager = new LibraryManagerImpl();
widgetDefinitionBuilderSelector.enableLogging(getLogger());
this.cacheManager = (CacheManager) manager.lookup(CacheManager.ROLE);
libraryManager.service(new FormServi... | 0 |
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@BeforeEach | 0 |
package org.apache.aurora.scheduler.storage;
import org.apache.aurora.scheduler.storage.entities.ILock;
import org.apache.aurora.scheduler.storage.entities.ILockKey; | 0 |
p.apply(TextIO.read().from("gs://apache-beam-samples/shakespeare/*")) | 0 |
if (j == null) {
throw new RuntimeException("Incorrent format of InputArchive when deserialize DataTree - missing acls");
} | 0 |
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
| 0 |
import javax.inject.Named;
@Named | 0 |
private int ranking;
private LoginModuleControlFlag flag;
private String realmName;
configure();
}
public void configure() {
ranking = PropertiesUtil.toInteger(serviceReference.getProperty(Constants.SERVICE_RANKING), 0);
flag = ControlFlag.from((String) serviceReference.get... | 0 |
import org.apache.commons.logging.Log;
public class WebContinuation implements Comparable {
/**
* Logger to be used in {@link #display()}.
*
* <p>Not using here <code>org.apache.cocoon.util.AbstractLogEnabled</code>
* because there is no dependency on cocoon-util, and want to avoid
* calli... | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
package aQute.libg.gzip;
import java.io.BufferedInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;
public class GZipUtils {
/**
* Determines whether the specified stream contains gzipped data, by
* checking for the GZIP magic ... | 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 |
/**
* Create a temporary file.
*
* @param directory
* the directory in which to create the file. Can be null, in
* which case the system TMP directory is used
* @param pattern
* the filename prefix pattern. Must be at least 3 characters
* long
* @param suff... | 0 |
if (debug > 0 && e != null)
{
e.printStackTrace(System.out);
} | 0 |
import org.apache.sshd.server.SshServer;
assertTrue("Failed to switch to NONE cipher on time", session.switchToNoneCipher().await(5L, TimeUnit.SECONDS)); | 0 |
if(topModelsDirContents != null) {
Arrays.sort(topModelsDirContents);
for (File modelDir : topModelsDirContents) {
if (modelDir.exists() && modelDir.isDirectory()) {
ret = getFileContents(modelDir, fileName);
if (ret != null) {
... | 0 |
/** Mock implemenation of {@link AmazonKinesis} for testing. */
this(
new String(record.getData().array(), StandardCharsets.UTF_8),
return new Record()
.withApproximateArrivalTimestamp(arrivalTimestamp.toDate())
.withData(ByteBuffer.wrap(data.getBytes(StandardCharsets.UTF_8)))
... | 1 |
import com.twitter.common.testing.easymock.EasyMockTest; | 0 |
import io.gearpump.streaming.dsl.javaapi.JavaStream;
import io.gearpump.streaming.dsl.javaapi.functions.FlatMapFunction; | 0 |
import java.util.Map;
private Map<String, HashSet<Assigned>> assignments = new HashMap<String, HashSet<Assigned>>();
private Map<String, Assigned> instanceToAssignment = new HashMap<String, Assigned>();
Map<String, HashSet<Assigned>> newAssignments = new HashMap<String, HashSet<Assigned>>(); | 0 |
if (o1.intValue() % 2 == 0 ^ o2.intValue() % 2 == 0) {
return false;
} else {
return true;
} | 0 |
/** A {@link TransformEvaluatorFactory} for {@link ParDo.MultiOutput}. */
AppliedPTransform<PCollection<InputT>, PCollectionTuple, ParDo.MultiOutput<InputT, OutputT>>
PCollection<InputT>, PCollectionTuple, ParDo.MultiOutput<InputT, OutputT>>)
ParDo.MultiOutput<InputT, OutputT> transform = pa... | 0 |
if (numAdded > 1) {
if (numContained > 1) { | 0 |
* @version $Id$ | 0 |
* Signals that a job run by a {@link BlockingDataflowRunner} was updated during execution. | 0 |
service.addAttribute(new Attribute("service.id", m_providedServices[i].getServiceReference()
.getProperty(Constants.SERVICE_ID).toString()));
// Service Properties.
// Service Controller.
if (m_providedServices[i].getController() !... | 0 |
public final class ServiceDiscoveryBindings {
public @interface ZooKeeper { } | 0 |
import org.apache.sshd.server.auth.pubkey.AcceptAllPublickeyAuthenticator;
import org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator;
import org.apache.sshd.server.auth.pubkey.RejectAllPublickeyAuthenticator;
import org.apache.sshd.server.auth.pubkey.StaticPublickeyAuthenticator;
testStaticPublickeyAuthe... | 0 |
import com.google.cloud.dataflow.sdk.util.DataflowTransport;
return DataflowTransport.newDataflowClient(
options.as(DataflowPipelineOptions.class)).build(); | 0 |
final CopletInstance cid = service.getProfileManager().getCopletInstance(copletid); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestIteratorUtils.java,v 1.12 2003/12/01 22:49:00 scolebourne Exp $
* @version $Revision: 1.12 $ $Date: 2003/12/01 22:49:00 $ | 0 |
package org.apache.commons.net.examples.mail; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/map/Attic/AbstractTestAMap.java,v 1.2 2003/12/01 22:48:59 scolebourne Exp $
import org.apache.commons.collections.MapIterator;
* @version $Revision: 1.2 $ $Date: 2003/12/01 22:48:... | 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 |
private void doSomethingPrivately() {
}
private boolean flag;
boolean getFlag() {
return flag;
}
private String test = "";
public void bar() {
if (! getFlag()) {
test.charAt(0);
}
}
| 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 |
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.xml.security.utils.XMLUtils;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
String prefix;
prefix = E.getPrefix();
prefix=XMLNS;
prefix=XMLNS;
visiblyUtilized.add(prefix);
... | 0 |
* for the requested property or reached top. If still no value found and the key
* starts with "org.apache.sshd" then the system properties are also
* consulted
if (key.startsWith("org.apache.sshd")) {
return System.getProperty(key);
}
| 0 |
private final String resourceSuffix; | 0 |
checkOutstandingTimer(ASSIGNED, tick.as(Time.MILLISECONDS) * 3); | 0 |
import com.twitter.aurora.scheduler.events.PubsubEventModule;
PubsubEventModule.bindSubscriber(binder(), CronJobManager.class); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.