Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
package org.apache.accumulo.wikisearch.iterator; import org.apache.accumulo.wikisearch.parser.EventFields; import org.apache.accumulo.wikisearch.parser.QueryEvaluator;
0
package cz.seznam.euphoria.kafka; import cz.seznam.euphoria.core.client.io.DataSink; import cz.seznam.euphoria.core.client.io.Writer; import java.io.IOException; import java.io.PrintStream; import java.util.Objects; public class PrintStreamSink<T> extends DataSink<T> { static abstract class AbstractWriter<T> exte...
0
/** The scheme registry for looking up socket factories. */ * as the scheme registry. * Creates a new client connection operator for the given scheme registry. * @param schemes the scheme registry, or <code>null</code> to use } // class DefaultClientConnectionOperator
0
import org.apache.aurora.common.quantity.Amount; import org.apache.aurora.common.quantity.Time; import org.apache.aurora.common.stats.StatsProvider; import org.apache.aurora.common.testing.easymock.EasyMockTest; import org.apache.aurora.common.util.testing.FakeClock;
0
Triple.of(Instant.parse("2016-12-19T12:00:00.000Z"), Type.VEGETABLE, 1L)); } execute(new AbstractTestCase<Pair<Instant, String>, Triple<Instant, Instant, Integer>>(3) {
0
* @version CVS $Id: FormsPipelineConfig.java,v 1.3 2004/03/18 21:04:39 joerg Exp $ public class FormsPipelineConfig { * Default key under which the Cocoon Forms form instance is stored in the JXPath context. public static final String CFORMSKEY = "CocoonFormsInstance"; private FormsPipelineConfig(JXPathCo...
0
package org.apache.felix.shell.impl; import org.apache.felix.shell.Command; org.apache.felix.shell.Command.class.getName())) org.apache.felix.shell.Command.class.getName()))
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
/* * 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 java.sql.SQLException; public void testClosePool() throws Exception { new TesterDriver(); ConnectionFactory connFactory = new DriverManagerConnectionFactory( "jdbc:apache:commons:testdriver","u1","p1"); ObjectPool connPool = new GenericObjectPool(); Keyed...
0
import org.apache.accumulo.core.Constants; import org.apache.accumulo.core.security.tokens.UserPassToken; @Override @Override AccumuloInputFormat.setConnectorInfo(job, new UserPassToken(args[0], args[1])); AccumuloInputFormat.setInputTableName(job, args[2]); AccumuloInputFormat.setScanAuthorizations(j...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/UnmodifiableList.java,v 1.3 2003/05/07 11:20:21 scolebourne Exp $ * @version $Revision: 1.3 $ $Date: 2003/05/07 11:20:21 $ /** * Gets the list being deco...
0
* @cocoon.sitemap.component.documentation * The filter transformer can be used to let only an amount of elements through in * a given block. * @cocoon.sitemap.component.name filter * @cocoon.sitemap.component.documentation.caching Yes * public class FilterTransformer extends AbstractTransformer ...
0
// Note: The Working Group (in conjunction with XHTML working // group) has decided that multiple line elements collapse. int prevLN = 0; Iterator lnIter = lnLocs.iterator(); if (nextLN == prevLN) continue; ret.addAttribute(FLOW_LINE_BREAK, ...
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 no...
0
@Override
0
import org.osgi.framework.wiring.BundleCapability; import org.osgi.framework.wiring.BundleRevision; private final BundleRevision m_host; public HostedCapability(BundleRevision host, BundleCapabilityImpl cap) super(host, cap.getNamespace(), cap.getDirectives(), cap.getAttributes()); m_host = host...
0
import org.apache.felix.dm.lambda.FluentProperty; public ComponentBuilderImpl provides(Class<?> iface, FluentProperty ... properties) { public ComponentBuilderImpl provides(Class<?>[] ifaces, FluentProperty ... properties) { public ComponentBuilderImpl provides(String iface, FluentProperty ... properties) ...
0
* The system property ({@value}) which can be used to override the system type.<br/> * If defined, the value will be used to create any automatically created parsers. * * The name of an optional systemType properties file ({@value}), which is loaded * using {@link Class#getResourceAsStream(Stri...
0
* @see org.apache.batik.ext.awt.g2d.GraphicContext
0
* @since 1.0
0
* @version $Revision: 1.11 $ $Date: 2004/05/07 23:11:04 $ /** * Validates a key value pair. * * @param key the key to validate * @param value the value to validate * @throws IllegalArgumentException if invalid */ protected void validate(Object key, Object value) { if (k...
0
import com.google.common.base.Optional; import org.apache.ambari.server.topology.ConfigRecommendationStrategy; * configuration recommendation strategy property name */ public static final String CONFIG_RECOMMENDATION_STRATEGY = "config_recommendation_strategy"; /** /** * configuration recommendation str...
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
public class DefaultBHttpServerConnection extends BHttpConnectionBase implements HttpServerConnection {
0
import com.google.cloud.dataflow.sdk.util.state.StateContext; static final StateTag<Object, ValueState<PaneInfo>> PANE_INFO_TAG = public void clear(StateContext<?> state) {
0
* <p>This class is immutable and thread-safe.</p>
0
@Override
0
* A {@link Combine.CombineFn} that computes the latest element from a set of inputs.
0
import org.apache.felix.bundlerepository.Resource; public Resource getResource()
0
case Code.IncorrectParameterException: return new BKIncorrectParameterException(); int IncorrectParameterException = -14; case Code.IncorrectParameterException: return "Incorrect parameter input"; public static class BKIncorrectParameterException extends...
0
Element group = domFactory.createElementNS(SVG_NAMESPACE_URI, SVG_G_TAG); Element testGroup = domFactory.createElementNS(SVG_NAMESPACE_URI, SVG_G_TAG); testGroup.setAttributeNS(null, ATTR_ID, testName); Element testRect = domFactory.createElementNS(SVG_NAMESPACE_URI, TAG_...
0
if (name.equals(REQUEST_BLOB_TITLE)) { propertySet.getProperties().put(PropertyHelper.getPropertyId(path, name), child.toString()); } else { processNode(child, path.isEmpty() ? name : path + '/' + name, propertySet, requestInfoProps); }
0
import org.apache.felix.scr.integration.components.Felix4350Component; import org.osgi.service.component.runtime.dto.ComponentDescriptionDTO; final ComponentDescriptionDTO main = findComponentDescriptorByName(componentName); TestCase.assertNotNull(main); asyncEnable(main); //needs to b...
0
import org.apache.batik.anim.dom.AnimationTarget;
0
private static final long serialVersionUID = 0; private static final long serialVersionUID = 0; private static final long serialVersionUID = 0; private static final long serialVersionUID = 0;
0
* @param mimeType the mime type, not {@code null}
0
// First remove the registered service. // Fire the service event which gives all client bundles the // opportunity to unget their service object. // Now forcibly unget the service object for all stubborn clients. synchronized (this) { Bundle[] clients = getU...
0
import org.apache.atlas.type.AtlasRelationshipType; import java.util.List; } else if (type instanceof AtlasRelationshipType) { addRelationshipType((AtlasRelationshipType)type, context); addRelationshipTypes(entityType, context); private void addRelationshipType(AtlasRelationshipType...
0
private int timeStyle = -1; int timeStyle = this.timeStyle != -1 ? this.timeStyle : style; dateFormat = (SimpleDateFormat)DateFormat.getTimeInstance(timeStyle, locale); dateFormat = (SimpleDateFormat)DateFormat.getDateTimeInstance(style, timeStyle, locale); /** * Sets the st...
0
null);
0
private final CacheEntryFactory cacheEntryFactory; this(new CacheEntryFactory(new HeapResourceFactory())); CacheEntryUpdater(final CacheEntryFactory cacheEntryFactory) {
0
* Copyright 2004,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
import java.util.Map; import org.apache.cocoon.environment.ObjectModelHelper; return checkPatterns(expression, host, false);
0
boolean resume = true;
0
* @version CVS $Id: NetUtils.java,v 1.11 2004/04/18 23:17:39 ugo Exp $ // Added this check to satisfy NetUtilsTestCase. I cannot ascertain whether // this is correct or not, since the description of this method is not very // clear. [Ugo Cei <ugo@apache.org> 2004-04-19] if (uri...
0
public Parameters getPipelineParameters() { return this.processingPipelineParameters; } public String getPipelineType() { return this.processingPipelineName; }
0
task,
0
* @version CVS $Id: AbstractProcessingPipeline.java,v 1.7 2003/08/06 10:07:30 cziegeler Exp $ this.parameters = params;
0
import static com.google.cloud.dataflow.sdk.runners.worker.ReaderTestUtils.positionFromSplitResult; import static com.google.cloud.dataflow.sdk.runners.worker.ReaderTestUtils.splitRequestAtByteOffset; import static com.google.cloud.dataflow.sdk.runners.worker.ReaderTestUtils.splitRequestAtPosition; assertNull(i...
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
/* * 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 applica...
0
@Override @Override @Override
0
import org.junit.Rule; import org.junit.rules.ExpectedException; @Rule public ExpectedException exception = ExpectedException.none(); @Test public void testTypes() { Properties props = new Properties(); props.setProperty(ClientProperty.BATCH_WRITER_LATENCY_MAX.getKey(), "10s"); Long value = Client...
0
FileHandlerReloadingDetector fileHandlerReloadingDetector = (refreshDelay != null) ? new FileHandlerReloadingDetector( fileHandlerReloadingDetector.refresh(); return fileHandlerReloadingDetector;
0
qcm.queueResult(new Result(toe, qcm, (server == null ? null : server.toString())));
0
* Copyright 2004,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
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; @org.junit.jupiter.api.Test assertTrue(coreValidity, "Signature failed core validation"); @org.junit.jupiter.api.Test assertTrue(coreValidity, "Signature failed core validation"); ...
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
/** Transform - XPath Filter */ /** Transform - XPath Filter CHGP private*/ Element []transforms; if (log.isDebugEnabled()) { log.debug("Preform the (" + i + ")th " + t.getURI() + " transform"); } public int getLength() if (transforms==null) { transforms=...
0
import org.apache.atlas.ApplicationProperties; org.apache.commons.configuration.Configuration configuration = getApplicationConfiguration(); protected void doServiceLogin(Configuration hadoopConfig, org.apache.commons.configuration.Configuration configuration) { private String getHostname(or...
0
* @since 2.4
0
private final boolean masterComponent; String hostName, boolean recoveryEnabled, boolean masterComponent) { this.masterComponent = masterComponent; public boolean isMasterComponent() { return masterComponent; } buffer.append("clusterId=").append(m_clusterId);
0
package org.apache.felix.scr.annotations;
0
implements Windowing<T, TimeInterval> { public Set<TimeInterval> assignWindowsToElement( Set<TimeInterval> ret = new HashSet<>(); ret.add(new TimeInterval(start, start + this.duration)); public Trigger<T, TimeInterval> getTrigger() { return new TimeTrigger<>();
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<String, ScheduledTask> coalesced = Maps.newHashMap(); for (ScheduledTask task : prior.getTasks()) { coalesced.put(task.getAssignedTask().getTaskId(), task); } for (ScheduledTask task : next.getTasks()) { coalesced.put(task.getAssignedTask()...
0
import org.osgi.framework.Constants; out.println(m_context.getBundle(0).getHeaders(Constants.BUNDLE_VERSION)); }
0
/** TODO add package comment. */
0
* Copyright (c) 2002 The Apache Software Foundation. All rights
0
this.zk = master.getContext().getZooReaderWriter();
0
package org.apache.felix.sigil.ui.eclipse.ui; import org.apache.felix.sigil.eclipse.SigilCore;
0
* $HeadURL$ * $Revision$ * $Date$ public void setConnectionsPerRoute(final ConnPerRouteBean connPerRoute) { params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, connPerRoute); }
0
final byte[] bytes = "Message content".getBytes(Consts.ASCII.name()); final InputStreamEntity httpentity = new InputStreamEntity(new ByteArrayInputStream(bytes), -1); final BufferedHttpEntity bufentity = new BufferedHttpEntity(httpentity); final byte[] bytes = "Message content".getBytes(...
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
* @version $Id$ public interface ThreadPool { String ROLE = ThreadPool.class.getName(); String getBlockPolicy(); long getKeepAliveTime(); int getMaximumPoolSize(); int getMaximumQueueSize(); int getMinimumPoolSize(); String getName(); int getPoolSize(); int getPriority(); int g...
0
{ Filter filter = null; if (filterString != null) { try { filter = m_context.createFilter(filterString); } catch (InvalidSyntaxException e) { Assert.fail("Could not create filter for resource handler:...
0
import org.apache.sshd.server.auth.hostbased.HostBasedAuthenticator; private HostBasedAuthenticator hostBasedAuthenticator; public HostBasedAuthenticator getHostBasedAuthenticator() { return hostBasedAuthenticator; } @Override public void setHostBasedAuthenticator(HostBasedAuthenticator hos...
0
* Copyright 2002-2005 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 ...
0
import java.util.Iterator; asserter.assertExpression("5L", new Long(5)); public static class IterableContainer implements Iterable<Integer> { private final Set<Integer> values; public IterableContainer(int[] is) { values = new HashSet<Integer>(); for (int value : is)...
0
* public static final String ACCUMULO_CLASSPATH_VALUE = "$ACCUMULO_CONF_DIR,\n" + "$ACCUMULO_HOME/lib/[^.].*.jar,\n" + "$ZOOKEEPER_HOME/zookeeper[^.].*.jar,\n" + "$HADOOP_CONF_DIR,\n" + "$HADOOP_PREFIX/[^.].*.jar,\n" + "$HADOOP_PREFIX/lib/[^.].*.jar,\n" + "$HADOOP_PREFIX/share/hadoop/common/.*.jar,\n" ...
0
import org.apache.ambari.server.state.RepositoryType; Mockito.when(m_repositoryVersion.getType()).thenReturn(RepositoryType.STANDARD);
0
this(false, null, null, false, false, 0, false, null, null,
0
public EchoShell() { super(); } thread.setDaemon(true);
0
package org.apache.beam.sdk.extensions.euphoria.fluent; import org.apache.beam.sdk.extensions.euphoria.core.client.io.DataSource; import org.apache.beam.sdk.extensions.euphoria.core.util.Settings; import static java.util.Objects.requireNonNull; private final org.apache.beam.sdk.extensions.euphoria.core.client.flow.Fl...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Digester.java,v 1.78 2003/05/22 17:00:55 rdonkin Exp $ * $Revision: 1.78 $ * $Date: 2003/05/22 17:00:55 $ * @version $Revision: 1.78 $ $Date: 2003/05/22 17:00:55 $ * <p> * <...
0
* @param <InputT> the type of the (main) input elements of the DoFn * @param <OutputT> the type of the (main) output elements of the DoFn public class DoFnInfo<InputT, OutputT> implements Serializable { private final DoFn<InputT, OutputT> doFn; private final Coder<InputT> inputCoder; public DoFnInfo(DoFn<InputT...
0
import org.apache.hc.core5.http.HeaderElements; import org.apache.hc.core5.http.HttpHeaders; if (new BasicHeader(HttpHeaders.EXPECT, HeaderElements.CONTINUE).equals(request.getHeader(HttpHeaders.EXPECT))) {
0
final List<MatchResult> expected = ImmutableList.of( MatchResult.create( Status.OK, ImmutableList.of( Metadata.builder() .setResourceId(testPath("testFileAA")) .setIsReadSeekEfficient(true) ...
0
* <p> * Large streams (over 2GB) will return an inaccurate result count as the * type is an int. The copy will complete correctly however. * <p> * Large streams (over 2GB) will return an inaccurate result count as the * type is an int. The copy will complete correctly however.
0
return new ConfigurationNodePointer<>(getParent(), subNodes List<T> result = new ArrayList<>(); List<T> prefixChildren = new ArrayList<>(children.size());
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
0
import javax.servlet.http.HttpSession; HttpSession session = request.getSession(true);
0
return SecurityUtils.isDHOakelyGroupSupported(1024) && BuiltinDigests.sha1.isSupported(); return SecurityUtils.isDHOakelyGroupSupported(2048) && BuiltinDigests.sha1.isSupported(); return SecurityUtils.isDHGroupExchangeSupported() && BuiltinDigests.sha1.isSupported(); retu...
0
return m_bundle.getInfo().getCurrentModule() .getContentLoader().getResourceFromContent(entryName);
0
|| oldSchState == State.STOP_FAILED || oldSchState == State.STOPPING) { || oldState == State.UPGRADING || oldState == State.STOPPING) { || oldState == State.STARTED || oldState == State.STOPPING) {
0
* @version $Revision$ $Date$
0
* Copyright 2000-2009 The Apache Software Foundation
0
final boolean release = m_componentManager.obtainReadLock( "DependencyManager.serviceChanged.1" ); m_componentManager.releaseReadLock( "DependencyManager.serviceChanged.1" );
0