Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
protected Object interpolate(Object base) | 0 |
import java.nio.file.Files;
return Files.isSymbolicLink(file.toPath()); | 0 |
* Proxy attribute.
*/
private String m_proxy;
/**
if (arg0.equals("proxy")) {
m_proxy = arg1.toString();
return;
}
if (m_proxy != null) {
req.addAttribute(new Attribute("proxy", m_proxy));
... | 0 |
} catch (UnsupportedOperationException e) { | 0 |
protected boolean isElementOverlayEnabled;
if (panel == null || panel.document == null || true
/*|| panel.document.getDocumentElement() != el*/) {
tb.setFloatable(false);
historyBrowserInterface.addToCurrentCompoundCommand
(historyBrowserInterf... | 0 |
* By default, all supported card types are allowed. You can specify which
* cards should pass validation by configuring the validation options. For
* the CreditCardType interface and pass an instance into the
* CreditCardValidator.VISA + CreditCardValidator.AMEX to specify that
* Add an allowed Credit... | 0 |
* Copyright 2016-2017 Seznam.cz, a.s. | 0 |
task -> PreemptionVictim.fromTask(IAssignedTask.build(task.getAssignedTask()))).toSet();
veto::asSet); | 0 |
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Vector;
import org.apache.xml.security.c14n.CanonicalizationException;
import org.apache.xml.security.utils.Constants;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import org... | 0 |
Semaphore finish3, finish0;
finish0 = new Semaphore(0);
if(finish0.tryAcquire(1000, java.util.concurrent.TimeUnit.MILLISECONDS)){
//if(threads.get(0).peer.getPeerState() == ServerState.LEADING ){
LOG.info("Setting flag to false");
flag = fa... | 0 |
Path tempPath = fs.matchingFileSystem(new Path(sourceDir),
ServerConstants.getTablesDirs(context.getConfiguration())); | 0 |
import org.apache.ambari.server.state.svccomphost.ServiceComponentHostSummary;
final ServiceComponentHostSummary hostSummary = new ServiceComponentHostSummary(ambariMetaInfo, host, stack);
final Collection<HostComponentStateEntity> versionedHostComponents = hostSummary.getVersionedHostComponents();
if (ho... | 0 |
private final ByteBufferAllocator allocator; | 0 |
} catch (final NullPointerException ex) {} | 0 |
package org.apache.http.mockup; | 0 |
/** {@inheritDoc} */ | 0 |
if (cycleMethod == MultipleGradientPaint.NO_CYCLE) {
// Include overflow and underflow colors in transparency
// test.
transparencyTest &= gradientUnderflow;
transparencyTest &= gradientOverflow;
} | 0 |
import org.apache.accumulo.core.clientImpl.lexicoder.AbstractLexicoderTest; | 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 |
* @author <a href="mailto:Thomas.DeWeese@Kodak.com">Thomas DeWeese</a> | 1 |
case OpCode.getChildren2: | 0 |
import java.util.Collections;
import org.apache.beam.sdk.coders.CustomCoder;
public class WritableCoder<T extends Writable> extends CustomCoder<T> {
return Collections.emptyList(); | 0 |
final TabletGroupWatcher dependentWatcher;
TabletGroupWatcher(TabletStateStore store, TabletGroupWatcher dependentWatcher) {
this.dependentWatcher = dependentWatcher;
// if we are shutting down all the tabletservers, we have to do it in order
if (goal == TabletGoalState.UNASSI... | 0 |
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights | 0 |
import org.apache.hc.core5.http.nio.BasicRequestProducer;
public final class SimpleRequestProducer extends BasicRequestProducer {
SimpleRequestProducer(final SimpleHttpRequest request, final AsyncEntityProducer entityProducer) {
super(request, entityProducer);
public static SimpleRequestProducer create(... | 0 |
import aQute.bnd.osgi.Analyzer;
import aQute.bnd.osgi.Jar;
| 0 |
package org.apache.felix.inventory.impl;
import org.apache.felix.inventory.PrinterMode;
import org.apache.felix.inventory.StatusPrinterHandler;
import org.apache.felix.inventory.StatusPrinterManager; | 0 |
Predicate toPredicate(Predicate left, Predicate right); | 0 |
* {@literal --runner=BlockingDataflowRunner}.
* or {@code DataflowRunner} in the pipeline options. | 0 |
/* Connection throttling settings */
public int getConnectionMaxTokens();
public void setConnectionMaxTokens(int val);
public int getConnectionTokenFillTime();
public void setConnectionTokenFillTime(int val);
public int getConnectionTokenFillCount();
public void setConnectionTokenFillCount... | 0 |
import java.nio.channels.ClosedSelectorException;
} catch (ClosedSelectorException ex) { | 0 |
public void warn( String content, String location, int lineNumber, int columNumber )
{
warn( String.format( "%s [%s,%d:%d]", content, location, lineNumber , columNumber) );
}
public void error( String content, String location, int lineNumber, int columnNumber )
{
error( String.format( "%s... | 0 |
public void resolveCollision(final CompositeMap<K,V> composite,
final Map<K,V> existing,
final Map<K,V> added,
final Collection<K> intersect) {
public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited, final K key, final V value) {
public void putAll(final CompositeMap<K, V> map, ... | 0 |
AtlasExportResult result = exportService.run(exportSink, request, AtlasAuthorizationUtils.getCurrentUserName(),
result = importService.run(zipSource, request, AtlasAuthorizationUtils.getCurrentUserName(),
result = importService.run(request, AtlasAuthorizationUtils.getCurrentUserName(... | 0 |
// TODO(maximk): Remove thermosConfig during the MESOS-2635 cleanup stage
if (!config.isSetThermosConfig() && !config.isSetExecutorConfig()) { | 0 |
protected String getPropertyLocation() {
return "config/xconf";
} | 0 |
* Provides a single function to take an array of bytes and display it
* in hexadecimal form.
* Origin of code: POI.
* @author Scott Sanders
* @version $Id$ | 1 |
if (null != r) {
r.report("Client " + index + " connecting to " + hostPort);
} | 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 |
* The Resource provider.
/** The provider's capabilities */
protected static final Collection capabilities = Collections.unmodifiableCollection(Arrays.asList(new Capability[]
* @param baseFile The base file.
* @param uri The URI of the file to locate.
* @param fileSystemOptions The FileSystem op... | 0 |
* @version CVS $Id: Submit.java,v 1.2 2004/04/09 16:43:21 mpo Exp $ | 0 |
// System.out.println("doc: " + pDocURL);
// System.out.println("Purl: " + purl);
if (pDocURL.sameFile(purl)) {
// System.out.println("match");
} | 0 |
package org.apache.beam.runners.apex.translation;
import org.apache.beam.runners.apex.translation.operators.ApexReadUnboundedInputOperator;
import org.apache.beam.runners.apex.translation.utils.CollectionSource; | 0 |
import org.apache.accumulo.fate.Repo; | 1 |
final static org.apache.commons.logging.Log log =
org.apache.commons.logging.LogFactory.getLog(DigesterOutputStream.class.getName());
this.mda = mda;
StringBuilder sb = new StringBuilder(arg2);
for (int i = arg1; i < (arg1 + arg2); i++) {
sb.append((char)a... | 0 |
public static final String PROP_STOP_TIMEOUT = "ds.stop.timeout.milliseconds";
public static final long DEFAULT_STOP_TIMEOUT_MILLISECONDS = 60000;
private long stopTimeout = DEFAULT_STOP_TIMEOUT_MILLISECONDS;
stopTimeout = DEFAULT_STOP_TIMEOUT_MILLISECONDS;
stopTimeout =... | 0 |
import org.apache.beam.runners.core.construction.Coders;
CODER_SPEC =
BeamFnApi.Coder.newBuilder()
.setFunctionSpec(
BeamFnApi.FunctionSpec.newBuilder().setData(Any.pack(Coders.toProto(CODER))))
.build(); | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger LOG = LoggerFactory.getLogger(AMSReportPropertyProvider.class); | 0 |
public final class RouteTracker implements RouteInfo, Cloneable {
// non-JavaDoc, see interface RouteInfo
// non-JavaDoc, see interface RouteInfo
// non-JavaDoc, see interface RouteInfo
// non-JavaDoc, see interface RouteInfo
// non-JavaDoc, see interface RouteInfo
// non-JavaDoc, see interface... | 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 |
calculateExportedPackages(module, modulePkgMap, candidateMap);
calculateExportedPackages(cap.getModule(), modulePkgMap, candidateMap);
calculateExportedPackages(candCap.getModule(), modulePkgMap, candidateMap);
Module module, Map<Module, Packages> modulePkgMap,
Map<Requir... | 0 |
package org.apache.batik.util;
* Unlike some other encoding schemes there is nothing in this encoding that
* byte mydata[];
* Base64Decoder base64 = new Base64Decoder();
* mydata = base64.decodeBuffer(bufferString);
* This will decode the String in <i>bufferString</i> and give you an array
* of... | 0 |
* Copyright (c) OSGi Alliance (2002, 2008). All Rights Reserved.
* @version $Revision: 5673 $ | 0 |
import java.util.Arrays;
import java.util.Collection;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
@RunWith(Parameterized.class)
@Parameters(name = "{0}")
public static Collection<Object[]> data() {
return Arrays.asList(new O... | 0 |
doFnInvoker = Iterators.getOnlyElement(invokerReg).invokerFor(doFn, context); | 0 |
import org.apache.beam.sdk.coders.KvCoder;
import org.apache.beam.sdk.coders.NullableCoder;
PCollection<KV<IdT, T>> keyed = in.apply("KeyByRepresentativeValue", withKeys);
KvCoder<IdT, T> keyedCoder = (KvCoder<IdT, T>) keyed.getCoder();
keyed
}))
// When there ... | 0 |
* Compare two files using the {@link File#isDirectory()} method. | 0 |
throws IOException;
* Use {@link #releaseConnection()} for a graceful release.
throws IOException;
} | 0 |
SVG_GLYPH_REF_TAG);
(SVG_NAMESPACE_URI, SVG_ALT_GLYPH_ITEM_TAG);
(SVG_NAMESPACE_URI, SVG_GLYPH_REF_TAG);
(SVG_NAMESPACE_URI, SVG_FONT_FACE_TAG);
(SVG_NAMESPACE_URI, SVG_GLYPH_TAG)... | 1 |
* This class is immutable and thread-safe.
* | 0 |
* @version CVS $Id: CocoonServlet.java,v 1.5 2003/04/27 17:00:44 vgritsenko Exp $
// Processing time message
// Used by "show-time"
protected Logger log;
protected LogKitManager logKitManager;
/**
* The time the cocoon instance was created
*/
/**
* The <code>Cocoon</code> instan... | 0 |
public void setTimer(Instant timestamp, TimeDomain domain) throws IOException {
public void deleteTimer(TimeDomain domain) throws IOException {
public void setTimer(Instant timestamp, TimeDomain timeDomain) throws IOException {
delegate.setTimer(timestamp, timeDomain);
public void deleteTimer(Time... | 0 |
import javax.inject.Inject;
import javax.inject.Singleton;
| 1 |
* @version $Revision$ $Date$ | 0 |
* @version CVS $Id: ClearPersistentStoreAction.java,v 1.4 2004/05/19 08:44:26 cziegeler Exp $
Store store_persistent = (Store)this.manager.lookup(Store.ROLE); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionIntCollection.java,v 1.4 2003/10/02 22:14:31 scolebourne Exp $
import org.apache.commons.collections.AbstractTestObject;
* @version $Revisi... | 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 DefaultHttpResponseParserFactory(
final LineParser lineParser,
public DefaultHttpResponseParserFactory(
final HttpResponseFactory responseFactory) {
this(null, responseFactory);
}
| 0 |
System.out.println("Listening on " + listenerEndpoint.getAddress()); | 0 |
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
} | 0 |
assertNull(CollectionUtils.forAllButLastDo(strings, (Closure<String>) null));
assertNull(CollectionUtils.forAllButLastDo((Collection<String>) null, (Closure<String>) null));
assertNull(CollectionUtils.forAllButLastDo(col.iterator(), (Closure<List<? extends Number>>) null));
assertNull(Co... | 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.accumulo.fate.zookeeper.ZooUtil; | 0 |
*
*
package org.apache.commons.vfs2.provider.jar.test;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystemManager;
import org.apache.commons.vfs2.impl.DefaultFileSystemManager;
import org.apache.commons.vfs2.provider.jar.JarFileProvider;
import org.apache.commons.vfs2.test.AbstractPro... | 1 |
import org.apache.aurora.scheduler.config.splitters.CommaSplitter;
description = "Guice modules for custom preemption slot searching for pending tasks.",
splitter = CommaSplitter.class) | 0 |
@SuppressWarnings("StatementWithEmptyBody")
// Ignore CR on input | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/AbstractTestSortedBag.java,v 1.2 2003/10/05 23:10:31 scolebourne Exp $
* Abstract test class for {@link SortedBag} methods and contracts.
* @version $Revision: 1.2 $ $Date:... | 0 |
/** Tests for Max. */
testCombineFn(Max.ofIntegers(), Lists.newArrayList(1, 2, 3, 4), 4);
testCombineFn(Max.ofLongs(), Lists.newArrayList(1L, 2L, 3L, 4L), 4L);
testCombineFn(Max.ofDoubles(), Lists.newArrayList(1.0, 2.0, 3.0, 4.0), 4.0); | 1 |
import org.apache.sshd.common.io.IoSession; | 1 |
/**
* TODO Add javadoc
*
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
* @version $Rev$, $Date$
*/ | 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 2006 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 ... | 0 |
Map<String, String> config = StormTopologyUtil.getFieldValues(instance, true, null);
Map<String, String> flatConfigMap = StormTopologyUtil.getFieldValues(instance, true, null);
Map<String, String> flatConfigMap = StormTopologyUtil.getFieldValues(instance, true, null); | 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 ma... | 0 |
STRICT.verify("\u82b1\u5b50.foo.com", x509);
STRICT.verify("\u82b1\u5b50.bar.com", x509); | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/axes/AncestorContext.java,v 1.2 2001/09/03 01:22:30 dmitri Exp $
* $Revision: 1.2 $
* $Date: 2001/09/03 01:22:30 $
* @version $Revision: 1.2 $ $Date: 2001/09/03 01:22:30 $
... | 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 Reference Reference}s can be | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BidiMap.java,v 1.12 2004/01/05 22:46:33 scolebourne Exp $
* @version $Revision: 1.12 $ $Date: 2004/01/05 22:46:33 $
* value and the specified value is inappropriate
* ... | 0 |
HttpResponse response = this.responsefactory.newHttpResponse(statusline, null); | 0 |
columns.add(new DBColumnInfo("default_section_name", String.class, 255, null, true)); | 0 |
registerTransformTranslator(Window.Assign.class, new WindowAssignTranslator()); | 0 |
import org.apache.beam.sdk.extensions.sql.impl.interpreter.BeamSqlExpressionEnvironments;
minusExpression.evaluate(NULL_ROW, NULL_WINDOW, BeamSqlExpressionEnvironments.empty()); | 0 |
import javax.annotation.Nonnull;
import org.apache.beam.sdk.transforms.windowing.GlobalWindow;
import org.apache.beam.sdk.transforms.windowing.PaneInfo;
import org.apache.beam.sdk.values.TimestampedValue;
Queue<Iterable<TimestampedValue<T>>> values = transform.getBatches();
WindowedValue.FullWindowedVa... | 0 |
} catch (IOException e) {
} catch (IOException e) {
} catch (IOException e) { | 0 |
HBaseTimelineMetricsService metricStore = createNiceMock(HBaseTimelineMetricsService.class);
metricStore.putMetricsSkipCache(anyObject(TimelineMetrics.class));
expectLastCall().once();
HBaseTimelineMetricsService metricStore = createNiceMock(HBaseTimelineMetricsService.class); | 0 |
* Copyright 2016-2017 Seznam.cz, a.s. | 0 |
public ClusterNodes() {
}
| 0 |
protected synchronized void detach() {
public synchronized void releaseConnection() {
if (released) {
return;
released = true;
connManager.releaseConnection(this, duration, TimeUnit.MILLISECONDS);
public synchronized void abortConnection() {
if (released) {
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.