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
(historyBrowserInterface.createNodeInsertedCommand
(targetNode.getParentNode(),
targetNode.getNextSibling(),
targetNode)); | 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 CreditCardType that participates in the card
* for analyzing the general form of the card number because
* <code>CreditCardValidator</code> performs those checks before
* length and prefix of the number to determine if it's the correct
* type.
private static class Visa implements CreditCardType {
private static class Amex implements CreditCardType {
private static class Discover implements CreditCardType {
private static class Mastercard implements CreditCardType { | 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.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node; | 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 = false;
}
if(round[1] != 0){
finish0.release();
flag = false;
}
if(!start0.tryAcquire(4000, java.util.concurrent.TimeUnit.MILLISECONDS))
fail("First leader election failed"); | 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 (hostSummary.haveAllComponentsFinishedAdvertisingVersion() &&
ServiceComponentHostSummary.haveSameVersion(versionedHostComponents)) {
if (hostSummary.haveAllComponentsFinishedAdvertisingVersion() &&
ServiceComponentHostSummary.haveSameVersion(versionedHostComponents)) {
if (hostVersionEntity.getState().equals(RepositoryVersionState.INSTALLED) && versionedHostComponents.size() > 0 &&
!ServiceComponentHostSummary.haveSameVersion(versionedHostComponents)) { | 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 not use this file except in compliance
* with the License. You may obtain a copy of the License at | 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.UNASSIGNED && state == TabletState.HOSTED) {
if (serversToShutdown.equals(currentTServers.keySet())) {
if (dependentWatcher != null && dependentWatcher.assignedOrHosted() > 0) {
goal = TabletGoalState.HOSTED;
}
}
}
private int assignedOrHosted() {
int result = 0;
for (TableCounts counts : stats.getLast().values()) {
result += counts.assigned() + counts.hosted();
}
return result;
}
watchers.add(new TabletGroupWatcher(stores[2], null));
watchers.add(new TabletGroupWatcher(stores[1], watchers.get(0)));
watchers.add(new TabletGroupWatcher(stores[0], watchers.get(1))); | 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(final SimpleHttpRequest request) {
return new SimpleRequestProducer(request, entityProducer); | 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(int val);
public int getConnectionFreezeTime();
public void setConnectionFreezeTime(int val);
public double getConnectionDropIncrease();
public void setConnectionDropIncrease(double val);
public double getConnectionDropDecrease();
public void setConnectionDropDecrease(double val);
public double getConnectionDecreaseRatio();
public void setConnectionDecreaseRatio(double val);
| 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 [%s,%d:%d]", content, location, lineNumber, columnNumber ) );
}
| 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, final Map<K, V>[] composited, final Map<? extends K, ? extends V> t) { | 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 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.dbcp.datasources;
import java.sql.SQLException;
import javax.sql.PooledConnection;
/**
* Methods to manage PoolableConnections and the connection pools that source them.
*
* @since 1.3
* @version $Revision$ $Date$
*/
interface PooledConnectionManager {
/**
* Close the PooledConnection and remove it from the connection pool
* to which it belongs, adjusting pool counters.
*
* @param pc PooledConnection to be invalidated
* @throws SQLException if an SQL error occurs closing the connection
*/
void invalidate(PooledConnection pc) throws SQLException;
/**
* Sets the databsase password used when creating connections.
*
* @param password password used when authenticating to the database
*/
void setPassword(String password);
/**
* Closes the connection pool associated with the given user.
*
* @param username user name
* @throws SQLException if an error occurs closing idle connections in the pool
*/
void closePool(String username) throws SQLException;
} | 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 options.
* @return the FileObject.
* @throws FileSystemException if an error occurs. | 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)arg0[i]);
return mda.digest(); | 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 = getDefaultStopTimeout();
timeout = ( Long ) config.get( PROP_STOP_TIMEOUT );
stopTimeout = timeout == null? DEFAULT_STOP_TIMEOUT_MILLISECONDS: timeout;
public long stopTimeout()
{
return stopTimeout;
}
private long getDefaultStopTimeout()
{
String val = bundleContext.getProperty( PROP_STOP_TIMEOUT);
if ( val == null)
{
return DEFAULT_STOP_TIMEOUT_MILLISECONDS;
}
return Long.parseLong( val );
}
| 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 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 RouteInfo | 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 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 distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.webconsole.plugins.scriptconsole.internal;
import org.osgi.framework.BundleContext;
import org.osgi.service.log.LogService;
import org.osgi.util.tracker.ServiceTracker;
class Logger extends ServiceTracker
{
public Logger(BundleContext context)
{
super(context, LogService.class.getName(), null);
super.open();
}
public void log(int level, String message)
{
LogService log = getLog();
if (log != null)
{
log.log(level, message);
}
}
public void log(int level, String message, Throwable exception)
{
LogService log = getLog();
if (log != null)
{
log.log(level, message, exception);
}
}
private LogService getLog()
{
return (LogService) getService();
}
} | 0 |
calculateExportedPackages(module, modulePkgMap, candidateMap);
calculateExportedPackages(cap.getModule(), modulePkgMap, candidateMap);
calculateExportedPackages(candCap.getModule(), modulePkgMap, candidateMap);
Module module, Map<Module, Packages> modulePkgMap,
Map<Requirement, Set<Capability>> candidateMap)
// Grab all exported packages that are not also imported.
// Grab all imported packages for which the module imports from itself.
for (Requirement req : module.getRequirements())
{
if (req.getNamespace().equals(Capability.PACKAGE_NAMESPACE))
{
Set<Capability> cands = candidateMap.get(req);
if ((cands != null) && (cands.size() > 0))
{
Capability cand = cands.iterator().next();
if (cand.getModule().equals(module))
{
packages.m_exportedPkgs.put(
(String) cand.getAttribute(Capability.PACKAGE_ATTR).getValue(),
new Blame(cand, null));
}
}
}
}
// Grab all exported packages.
// Grab all required and reexported required packages. | 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 bytes in the array <i>myData</i>.
* @author Chuck McManis
* @see CharacterEncoder
* @see Base64Decoder
int i;
byte a = -1, b = -1, c = -1, d = -1;
if ((l == 1) &&
| 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 Object[][] { { System.getProperty("java.home") } });
}
public JDKGenericDumpTestCase(final String javaHome) {
this.javaHome = javaHome;
}
private String javaHome;
// System.out.println("Method: " + m);
if (c == null) {
assertArrayEquals(name + ": " + m.toString(), src, out);
System.out.println(name + ": " + m.toString() + " " + src.length + " " + out.length);
final File javaLib = new File(javaHome + "/lib");
int i = 0; | 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 is no input, the combine outputs null. This can occur when the input
// is in discarding mode with speculative triggers consuming all input prior to
// on-time or GC firing. There is no reason that the input coder would necessarily
// support nulls.
.setCoder(
KvCoder.of(
keyedCoder.getKeyCoder(), NullableCoder.of(keyedCoder.getValueCoder())));
| 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);
(SVG_NAMESPACE_URI, SVG_FONT_FACE_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> instance
*/
/**
* Holds exception happened during initialization (if any)
*/
/**
* Avalon application context
*/
/**
* Default value for {@link #allowReload} parameter (false)
*/
protected static final boolean ALLOW_RELOAD = false;
/**
* Allow reloading of cocoon by specifying the <code>cocoon-reload=true</code> parameter with a request
*/
/**
* Allow adding processing time to the response
*/
/**
* If true, processing time will be added as an HTML comment
*/
/**
* Default value for {@link #enableUploads} parameter (false)
*/
/**
* Allow processing of upload requests (mime/multipart)
*/
private int maxUploadSize;
if (value != null) {
this.allowReload = value.equalsIgnoreCase("yes") || value.equalsIgnoreCase("true");
} else {
this.allowReload = ALLOW_RELOAD;
log.debug("allow-reload was not set - defaulting to " + ALLOW_RELOAD); | 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(TimeDomain timeDomain) throws IOException {
delegate.deleteTimer(timeDomain);
public void setTimer(Instant timestamp, TimeDomain timeDomain) throws IOException {
delegate.setTimer(timestamp, timeDomain);
public void deleteTimer(TimeDomain timeDomain) throws IOException {
delegate.deleteTimer(timeDomain);
public void setTimer(Instant timestamp, TimeDomain timeDomain) throws IOException {
delegate.setTimer(timestamp, timeDomain);
public void deleteTimer(TimeDomain timeDomain) throws IOException {
delegate.deleteTimer(timeDomain); | 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 $Revision: 1.4 $ $Date: 2003/10/02 22:14:31 $
public class TestCollectionIntCollection extends AbstractTestObject { | 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 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/ | 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(CollectionUtils.forAllButLastDo((Iterator<String>) null, (Closure<String>) 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 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ | 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.AbstractProviderTestConfig;
import org.apache.commons.vfs2.test.ProviderTestConfig;
import org.apache.commons.vfs2.test.ProviderTestSuite; | 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: 2003/10/05 23:10:31 $ | 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* @version CVS $Id: SitemapNodeBuilder.java,v 1.3 2004/03/05 13:02:52 bdelacretaz Exp $ | 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 by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.mortbay.jetty.servlet;
import org.mortbay.http.HttpResponse;
public class DummyServletHttpResponse
extends
ServletHttpResponse
{
public DummyServletHttpResponse(ServletHttpRequest request,
HttpResponse response)
{
super(request, response);
}
}
| 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 may not use this file except in compliance with
* the License. You may obtain a copy of the License at | 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 in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ | 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 $
currentNodePointer = parentContext.getCurrentNodePointer(); | 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 use this file except in compliance with
* the License. You may obtain a copy of the License at | 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
* value and the specified value is inappropriate
* 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.FullWindowedValueCoder<T> windowCoder =
WindowedValue.FullWindowedValueCoder.of(coder, GlobalWindow.Coder.INSTANCE);
for (Iterable<TimestampedValue<T>> tv : values) {
Iterables.transform(
tv,
new com.google.common.base.Function<TimestampedValue<T>, WindowedValue<T>>() {
@Override
public WindowedValue<T> apply(@Nonnull TimestampedValue<T> timestampedValue) {
return WindowedValue.of(
timestampedValue.getValue(),
timestampedValue.getTimestamp(),
GlobalWindow.INSTANCE,
PaneInfo.NO_FIRING);
}
}); | 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) {
return;
released = true;
unmarkReusable();
try {
shutdown();
} catch (IOException ignore) {
}
connManager.releaseConnection(this, duration, TimeUnit.MILLISECONDS); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.