Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.beam.runners.direct.DirectRunner.CommittedBundle;
0
@Override
1
package org.apache.batik.css.engine.value; import org.apache.batik.css.engine.CSSEngine; import org.apache.batik.css.engine.CSSStylableElement; import org.apache.batik.css.engine.StyleMap; import org.apache.batik.css.parser.ExtendedParser; import org.w3c.dom.DOMException; * This interface is implemented by objects w...
0
@Override public String toString() { return "SlidingWindow{" + "startTime=" + startTime + ", duration=" + duration + '}'; } @Override public String toString() { return "TimeSliding{" + "duration=" + duration + ", step=" + st...
0
if (!canShutdown()) {
0
* @param converter new TypeConverter * @return TypeConverter * @param object object to test * @param toType target class * @return boolean * @param object object to convert * @param toType target class * @return resulting Object
0
abstract long getLastReadTime(); final long deadline = getLastReadTime() + timeout;
0
import java.util.Map;
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
* This method gives meaningful results only for c >= 0.
0
import javax.annotation.Nonnull; public T apply(@Nonnull WindowedValue<T> t) {
0
* @version CVS $Id: Widget.java,v 1.15 2004/05/11 12:55:53 vgritsenko Exp $ * @deprecated getWidget got removed, use lookupWidget or getChild instead.
0
public static class MalformedStreamException public static class IllegalBoundaryException
0
* Copyright 2001-2006 The Apache Software Foundation
0
import org.apache.accumulo.harness.AccumuloClusterHarness; public class LogicalTimeIT extends AccumuloClusterHarness {
0
public void paint(Graphics2D g2d) { markerGroup.paint(g2d);
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
* The XSLT stylesheet processor. * <p>This Transformer is used to transform the incoming SAX stream using * * <p><b>In the map:sitemap/map:components/map:transformers:</b> * @cocoon.sitemap.component.documentation * The XSLT stylesheet processor * @cocoon.sitemap.component.name xslt * @cocoon.sitemap.componen...
0
import java.util.concurrent.locks.Lock; CacheEntry getBlockNoStats(String blockName); /** * Return a lock used for loading data not in the cache. Should always return the same lock for * the same block name. Can return different locks for different block names. Its ok to return * null if locking is not ...
0
"ftps://vfsusr:vfs%2f%25\\te:st@" + ip + "/vfstest");
0
throws CanonicalizationException, IOException super(xi.getOctetStream(), xi.getSourceURI(), xi.getMIMEType());
1
* @throws IllegalArgumentException * when a {@link NoSuchAlgorithmException} is caught. throw new IllegalArgumentException(e); * @throws IllegalArgumentException * when a {@link NoSuchAlgorithmException} is caught, which should never happen because MD5 is a *...
0
Table.ID tid = Table.ID.of("8");
1
/** Stream to write debug output to */ private PrintStream debugStream;
0
* http://www.apache.org/licenses/LICENSE-2.0
0
import org.apache.cocoon.Processor; * The <code>Processor</code> instance protected Processor processor; this.processor = this.coreUtil.createProcessor(); this.processor = null; this.processor = this.coreUtil.getProcessor(request.getPathInfo(), request.getParameter...
0
private final SizedSideInputReader subReader; private final Cache<PCollectionViewWindow<?>, Sized<Object>> cache; } catch (ExecutionException checkedException) { // The call to subReader.getSized() is not permitted to throw any checked exceptions, // so the Callable created above should not th...
0
// Numeric value of fixed window duration, in minutes // The default window duration values work well if you're running the default // input // The default trigger first emits output when the system's watermark passes // the end ...
0
/** * @throws SQLException */ /** * @throws SQLException */ /** * @throws SQLException */ /** * @throws SQLException */
0
import org.apache.beam.runners.dataflow.BlockingDataflowRunner; options.setRunner(BlockingDataflowRunner.class);
0
Key decryptionKey = inboundSecurityToken.getSecretKey(algorithmURI, XMLSecurityConstants.Enc, encryptedDataType.getId()); decryptionKey = XMLSecurityUtils.prepareSecretKey(algorithmURI, decryptionKey.getEncoded()); decryptionThread.setSecretKey(decry...
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
// @formatter:off org.apache.accumulo.core.iterators.conf.PerColumnIteratorConfig ac3 = new org.apache.accumulo.core.iterators.conf.PerColumnIteratorConfig(colf, "com.foo.SuperAgg"); org.apache.accumulo.core.iterators.conf.PerColumnIteratorConfig ac4 = org.apache.accumulo.core.iterators.conf.Per...
0
properties.load(new StringReader("key = F\"1137191584\"\n")); assertEquals(400.333f, properties.get("key")); } public void testWriteTypedPropsFloat2() throws IOException { TypedProperties properties = new TypedProperties(); assertEquals("key = F\"400.333\"\n", sw.toString())...
0
public ReadEvaluatorFactory(EvaluationContext context, PipelineOptions options) { static <T> InputProvider<T> inputProvider(EvaluationContext context, PipelineOptions options) {
1
/* (non-Javadoc) * @see org.apache.cocoon.serialization.AbstractTextSerializer#init() */ public void init() throws Exception { super.init(); this.format.put(OutputKeys.METHOD, "text"); }
0
configs.getAmbariProperties()))); configs.getAmbariProperties())));
0
import java.awt.Font; protected GVTFontFace fontFace; protected Font font; /** * Constructs an AWTFontFamily with the specified familyName. * * @param familyName The name of the font family. */ public AWTFontFamily(GVTFontFace fontFace) { this.fontFace = fontFace; } ...
0
* * if (System.getProperty("os.name").contains("Windows")) { builderParameters.add("cmd"); builderParameters.add("/c"); } else { builderParameters.add("sh"); builderParameters.add("-c"); }
0
/* * Copyright (C) 2015 Google Inc. * * 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
import java.util.Map.Entry; for (Entry<E, MutableInteger> entry : map.entrySet()) { for (E element : map.keySet()) { for (Entry<E, MutableInteger> entry : map.entrySet()) {
0
import org.apache.ambari.server.utils.StageUtils; public void testInstallAndStartService() throws Exception { LOG.info("Stage Details for Install Service" + ", stageId="+ stage.getStageId() + ", actionId=" + stage.getActionId()); for (String host : stage.getHosts()) { LOG.info...
0
List<Object> arrayElements = verifyArray(value, type.getCollectionElementType(), fieldName); private List<Object> verifyArray(Object value, FieldType collectionElementType, verifiedList.add(verify(listValue, collectionElementType, fieldName));
0
import org.apache.http.util.Args; Args.notNull(unit, "Time unit");
0
import org.apache.beam.runners.spark.aggregators.SparkAggregators; SparkAggregators.getNamedAggregators(context.getSparkContext()); SparkAggregators.getNamedAggregators(context.getSparkContext()); SparkAggregators.getNamedAggregators(context.getSparkContext()); SparkAgg...
0
import static org.apache.ambari.server.controller.metrics.MetricsServiceProvider.MetricsService.TIMELINE_METRICS; public Set<Resource> populateResourcesWithProperties(Set<Resource> resources, Request request, Set<String> propertyIds) throws SystemException { getMetricsRequests(resources, request,...
0
import org.apache.ambari.server.stack.StackDirectory; private String widgetsFileName = StackDirectory.WIDGETS_DESCRIPTOR_FILE_NAME; private String metricsFileName = StackDirectory.SERVICE_METRIC_FILE_NAME; private String configDir = StackDirectory.SERVICE_CONFIG_FOLDER_NAME; private String themesDir = StackDire...
0
* @version $Revision$
0
+ this.username + (password==null?", password = null":"") + "]. Check values in ejb-jar.xml"); + this.username + (password==null?", password = null":"") + "]. Check values in ejb-jar.xml"); log.info("Connecting to [instanceName = " + this.instanceName + ", zookeepers = " + this.zooKeepers + ",...
0
public class TestBasicScheme extends TestCase { public TestBasicScheme(final String testName) throws IOException { String[] testCaseName = { TestBasicScheme.class.getName() }; TestSuite suite = new TestSuite(TestBasicScheme.class);
0
* @version $Revision: 1.4 $ $Date: 2002/10/23 13:09:10 $ private static Map messages = new HashMap();
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
criteria.setIncludeMessage(StringEscapeUtils.unescapeXml(request.getiMessage())); criteria.setExcludeMessage(StringEscapeUtils.unescapeXml(request.getgEMessage())); criteria.setMustBe(request.getMustBe()); criteria.setMustNot(request.getMustNot()); criteria.setExcludeQuery(StringEscapeUtils.unescape...
0
*/ @Rule public TestPipeline pipeline = TestPipeline.create(); readConnectionConfiguration = ElasticsearchIOITCommon.getConnectionConfiguration( options, ElasticsearchIOITCommon.IndexMode.READ); writeConnectionConfiguration = ElasticsearchIOITCommon.getConnectionConfiguration( ...
1
import org.apache.ambari.server.topology.LogicalRequest; LogicalRequest logicalRequest = topologyManager.getRequest(entity.getRequestId()); CalculatedStatus status = CalculatedStatus.statusFromStageSummary(summary, summary.keySet()); if (summary.isEmpty() && (logicalRequest == null || logicalRequest.hasCom...
0
protected static Dictionary<String, Object> copyTo( Dictionary<String, Object> target, Dictionary<String, ?> source ) protected static Dictionary<String, Object> copyTo( Dictionary<String, Object> target, final Dictionary<String, ?> source, final boolean allProps )
0
import static org.easymock.EasyMock.anyObject; import static org.easymock.EasyMock.createMock; import static org.easymock.EasyMock.createNiceMock; import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.replay; import static org.easymock.EasyMock.verify; import java.io.File; import java.util.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 may ...
0
if (cfSet.contains(entry.getKey())) { } else if (!inclusive) { } lgr.seek(range, EMPTY_CF_SET, false); addSource(lgr);
0
if (serialized == null) {
0
Collection<String> bigqueryScope = Lists.newArrayList(BigqueryScopes.all());
0
* @throws NullPointerException if queue is null
0
super.registerRule( pattern, rule );
0
private final AtomicLong totalResourceOffers = Stats.exportLong("scheduler_resource_offers"); private final AtomicLong totalFailedStatusUpdates = Stats.exportLong("scheduler_status_updates"); private final AtomicLong totalFrameworkDisconnects = private final AtomicLong totalFrameworkReregisters = private fina...
0
/** * 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 * distribu...
0
* @return * @return * @return
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger log = LoggerFactory.getLogger(LogReader.class);
0
@Deprecated @Deprecated @Deprecated @Deprecated
0
__getReply(true); // default to tagged response } private void __getReply(boolean wantTag) throws IOException { if (wantTag) { while(IMAPReply.isUntagged(line)) { if (line == null) { throw new EOFException("Connection closed without indication...
0
package org.apache.commons.beanutils2.bugs; import org.apache.commons.beanutils2.PropertyUtils;
1
Scanner scanner = conn.createScanner(opts.getTableName(), opts.auths); BatchWriter bw = conn.createBatchWriter(opts.getTableName(), bwOpts.getBatchWriterConfig());
0
* Represents a time value as a {@code long} time and {@link TimeUnit}.
0
private static native void singleUpdate(long nmPointer, byte[] row, byte[] cf, byte[] cq, byte[] cv, long ts, boolean del, byte[] value, int mutationCount); private static native void update(long nmPointer, long updateID, byte[] cf, byte[] cq, byte[] cv, ...
0
* Autogenerated by Thrift Compiler (0.11.0)
0
SetPropertiesRuleProvider ruleProvider = ruleSet.getProvider(annotation.pattern(), SetPropertiesRuleProvider.class);
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...
0
import java.net.URI; import java.net.URL; import java.util.ArrayList; import org.apache.ambari.server.orm.dao.RepositoryVersionDAO; import org.apache.ambari.server.state.StackId; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.Validate; @Inject protected static RepositoryVersionDAO repository...
0
widgetDAO.findByName(clusterEntity.getClusterId(), layoutInfo.getWidgetName(), user, layoutInfo.getDefaultSectionName()); widgetEntity.setDefaultSectionName(layoutInfo.getDefaultSectionName()); createdEntities = widgetDAO.findByName(clusterEntity.getClusterId(), layoutInfo.getWidgetName(...
0
/** * Test the following command line * * cmd.exe /C c:\was51\Web Sphere\AppServer\bin\versionInfo.bat */ public void testParseRealLifeCommandLine_1() { String commandline = "cmd.exe /C \"c:\\was51\\Web Sphere\\AppServer\\bin\\versionInfo.bat\""; CommandLine cmdl = CommandL...
0
.setBufferSize(config.getBufferSize()) .setFragmentSizeHint(config.getFragmentSizeHint())
0
Copyright 2001-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
package org.apache.hadoop.metrics2.sink.timeline.query;
0
import org.apache.batik.bridge.FilterPrimitiveBridge; * @author <a href="mailto:Thierry.Kormann@sophia.inria.fr">Thierry Kormann</a> public class SVGFeTurbulenceElementBridge implements FilterPrimitiveBridge,
0
import org.apache.beam.sdk.values.WindowingStrategy;
0
import org.apache.batik.bridge.BridgeMutationEvent; import org.apache.batik.bridge.GraphicsNodeBridge; import org.apache.batik.refimpl.gvt.renderer.DynamicRendererFactory; import org.w3c.dom.Element; import org.w3c.dom.events.EventListener; import org.w3c.dom.events.MutationEvent; * The bridge context. */ ...
0
if (!hosts.containsKey(hostname)) { throw new HostNotFoundException(hostname); } public synchronized void mapHostsToCluster(Set<String> hostnames,
0
import com.tinkerpop.blueprints.Compare; public final class GraphHelper { private static final Logger LOG = LoggerFactory.getLogger(GraphHelper.class); private GraphHelper() { return createVertex(graph, typedInstance.getTypeName(), typedInstanceId); } public static Vertex createVertex(Graph gra...
1
/** * @deprecated since 1.4 * @use org.apache.accumulo.core.iterators.user.MaxCombiner with MaxCombiner.Type.STRING */
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
* 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...
1
public static class BouncyCastleRandomFactory implements NamedFactory<Random> { public static final BouncyCastleRandomFactory INSTANCE = new BouncyCastleRandomFactory(); public BouncyCastleRandomFactory() { super(); } @Override @Override @Override @Overri...
0
import org.apache.avalon.framework.service.ServiceException; import org.apache.cocoon.acting.ServiceableAction; * @version CVS $Id: LoginAction.java,v 1.3 2003/10/15 20:47:15 cziegeler Exp $ extends ServiceableAction } catch (ServiceException ce) {
0
this.handleBeanInclude(parserContext, null, Constants.DEFAULT_SITEMAP_SPRING_CONFIGURATION_LOCATION + "/" + runningMode, "*.xml", true); // TODO do we really need both src/dir attributes? The // quiet precedence of 'src' over 'dir...
0
@Override @Override @Override @Override @Override @Override @Override @Override @Override
1
= localRefElement.getElementsByTagNameNS(SVG_NAMESPACE_URI, SVG_GLYPH_REF_TAG); = localRefElement.getElementsByTagNameNS (SVG_NAMESPACE_URI, SVG_ALT_GLYPH_ITEM_TAG); = altGlyphItemElement.getElementsByTagNameNS (SVG_NAMESPACE_U...
0
import com.google.common.collect.ImmutableList; import com.google.common.hash.Hashing; import java.io.IOException; import java.util.ArrayList; import java.util.List;
0
Copyright 2001-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
* <pre> * SortedSet set = * PredicatedSortedSet.predicatedSortedSet(new TreeSet(), * NotNullPredicate.notNullPredicate()); * </pre> final SortedSet<E> head = decorated().headSet(toElement); return new PredicatedSortedSet<E>(head, predicate); final...
0
import org.apache.sshd.common.io.IoWriteFuture; protected IoWriteFuture sendClientIdentification() { clientVersion = resolveIdentificationString(ClientFactoryManager.CLIENT_IDENTIFICATION); return sendIdentification(clientVersion); }
0
stopTestBundle();
0