Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
SortedSet<Text> splits = new TreeSet<>();
0
import java.util.List;
0
public interface EntityDeserializer {
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists;
0
DSVersion dsVersion = componentMetadata.getDSVersion(); if ( !dsVersion.isDS11() ) else if ( !dsVersion.isDS12() && !POLICY_OPTION_RELUCTANT.equals( m_policy_option ) ) if ( m_updated != null && !(dsVersion.isDS12() || dsVersion == DSVersion.DS11Felix) ) if ( !dsVersion.isDS...
0
public class FlinkWindowTrigger<T> extends Trigger<T, FlinkWindow> { public FlinkWindowTrigger(Windowing windowing, ExecutionConfig cfg) { FlinkWindow window, FlinkWindow window, FlinkWindow window, ...
0
List<T> rows = new ArrayList<>();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/DynaTag.java,v 1.7 2003/01/24 05:54:37 morgand Exp $ * $Revision: 1.7 $ * $Date: 2003/01/24 05:54:37 $ * $Id: DynaTag.java,v 1.7 2003/01/24 05:54:37 morgand Exp $ * @version $Revision: 1.7...
0
this.windmillServiceEnabled = options.isEnableStreamingEngine();
0
* Copyright 2016 Seznam.cz, a.s.
0
private static final long serialVersionUID = -7181529985408901328L;
0
import org.apache.accumulo.core.data.impl.KeyExtent;
1
long getLastEventTime() {
0
extends AbstractColorInterpolationRable devRect, 1/scaleX, 1/scaleY, isColorSpaceLinear());
0
/* * @author <a href="mailto:felix-dev@incubator.apache.org">Felix Project Team</a> */
0
import java.util.Objects; @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null) { return false; } if (o instanceof RowWithGetters) { RowWithGetters other = (RowWithGetters) o; return Objects.equals(getSchema(), other.getSchema()) ...
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
/* * Copyright 2002, 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...
0
* Autogenerated by Thrift Compiler (0.9.3) import javax.annotation.Generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2015-12-16") public class KeyValueAndPeek implements org.apache.thrift.TBase<KeyValueAndPeek, Key...
0
* {@code HttpAsyncResponseProducer} is a callback interface whose methods
0
ClassLoader viewClassLoader = viewEntity.getClassLoader(); Thread.currentThread().setContextClassLoader(contextClassLoader);
0
package org.apache.commons.digester3.annotations.catalog; import org.apache.commons.digester3.annotations.rules.ObjectCreate; import org.apache.commons.digester3.annotations.rules.SetNext;
1
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws AccumuloException, AccumuloSecurityException, IOException { Authorizations auths = shellState.getConnector().securityOperations() .getUserAuthorizations(user);
0
atLast = lastRepeatTime + d == currentInterval.getBegin() + repeatDuration; // cam, given that d can } else { // be infinite, nan or value // Interval previousInterval = (Interval) previousIntervals....
0
/* * Copyright (c) OSGi Alliance (2012, 2014). All Rights Reserved. * * 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 re...
0
package org.apache.beam.harness.test;
0
* @version $Revision$, $Date$
0
import org.apache.ambari.server.state.ServiceInfo; ServiceInfo hdfsService = new ServiceInfo(); hdfsService.setName("HDFS"); ServiceInfo mrService = new ServiceInfo(); mrService.setName("MAPREDUCE"); expect(stackInfo.getService("HDP", "1.3.3", "HDFS")).andReturn(hdfsService); expect(stackInfo.ge...
0
Map<String, String> configProps = Main.loadConfigProperties(); configProps = new HashMap<String, String>(); configProps.put(AutoProcessor.AUTO_DEPLOY_DIR_PROPERY, bundleDir); configProps.put(Constants.FRAMEWORK_STORAGE, cacheDir); String enableHook = configProps.get(S...
0
public WidgetDefinition buildWidgetDefinition(Element repeaterElement, WidgetDefinitionBuilderContext context) throws Exception { setupDefinition(repeaterElement, repeaterDefinition, context); Iterator i = buildEventListeners(repeaterElement, "on-repeater-modified", RepeaterListener.class).itera...
0
* * @deprecated (4.3) do not use. super();
0
public final HashSet<Column> columnSet = new HashSet<>();
0
import org.apache.accumulo.core.client.BatchWriterConfig; BatchWriter bw = c.createBatchWriter("testtable1", new BatchWriterConfig());
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Attic/CommonsLinkedList.java,v 1.9 2003/10/09 20:58:52 scolebourne Exp $ * @version $Revision: 1.9 $ $Date: 2003/10/09 20:58:52 $ * @author Rich Dougherty
0
* <p>Used to signal when the executor should be shut down (due to an exception).
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
* <p>For example, a Java POJO with a field that we don't want included in the schema: * {@literal @}DefaultSchema(JavaBeanSchema.class) * * {@literal @}SchemaIgnore * public String pleaseDontAddToSchema; * <p>In this case, the {@code pleaseDontAddToSchema} will be excluded from the schema, and * implicit...
0
@Override public boolean authenticateUser(AccumuloToken<?,?> token) throws AccumuloException, AccumuloSecurityException { MockUser user = acu.users.get(token.getPrincipal()); if (user == null) return false; return Arrays.equals(user.password, ((UserPassToken) token).getPassword()); }
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
return super.toString(verbose) + " " + org.apache.commons.bcel6.Constants.getTypeName(type);
0
/** * @return the XMLOutput from the stylesheet if available */ public XMLOutput getStylesheetOutput() { if (stylesheet instanceof JellyStylesheet) { JellyStylesheet jellyStyle = (JellyStylesheet) stylesheet; return jellyStyle.getOutput(); } return null; } /** * Sets the XMLOutput to use by the ...
0
* $Revision: 1.10 $ * $Date: 2003/09/20 14:29:59 $ * @version $Revision: 1.10 $ $Date: 2003/09/20 14:29:59 $ private static String CATALOG = "test catalog"; ds.setDefaultCatalog(CATALOG); public void testDefaultCatalog() throws Exception { Connection[] c = new Connection[getMaxActive()];...
0
public class SVGTextPathElementBridge extends AnimatableGenericSVGBridge throw new BridgeException(ctx, textPathElement, ERR_URI_BAD_TARGET, new Object[] {uri}); throw new BridgeException (ctx, pathElement, ERR_ATTRIBUTE_VALUE_MALFORMED...
1
AccumuloRowInputFormat.setInputInfo(job, user, pass.getBytes(), table, Constants.NO_AUTHS); AccumuloRowInputFormat.setMockInstance(job, "instance1");
0
* Ambari server temp dir * @return server temp dir */ public String getServerTempDir() { return properties.getProperty(SERVER_TMP_DIR_KEY, SERVER_TMP_DIR_DEFAULT); } /**
0
* Copyright (C) 2015 Google Inc.
0
Iterable<Resource> getIterable(); int getOffset(); Resource getPreviousResource(); Resource getNextResource(); Integer getTotalResourceCount();
0
return null; return ""; } String del = ""; StringBuilder sb = new StringBuilder(); for (int i = 1; i < args.length; i++) { File f = IO.getFile(base, args[i]); if (f.exists() && f.getParentFile().exists()) { sb.append(del); sb.append(f.getParentFile().getAbsolutePath()); del = ","; retur...
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 o...
0
import java.security.KeyStore; /** Felix specific property to override the type of keystore (JKS). */ private static final String FELIX_KEYSTORE_TYPE = "org.apache.felix.https.keystore.type"; /** Felix specific property to override the type of truststore (JKS). */ private static final String FELIX_TRUS...
0
import java.io.OutputStream; import java.util.Map.Entry; import aQute.lib.osgi.Resource; @Override manifest = getManifest( project, instructions, properties, classpath ); Jar jar = analyzer.getJar(); if ( unpackBundle ) { File outputFile = getOutputDirectory(); ...
0
import org.apache.beam.sdk.util.state.State; TypeDescriptor<? extends State> stateType = (TypeDescriptor<? extends State>)
0
getFtpClient().quit(); } finally try { getFtpClient().disconnect(); } finally { ftpClient = null; }
0
* Copyright (c) 2002 The Apache Software Foundation. All rights
0
import org.apache.accumulo.fate.util.LoggingRunnable;
1
PartialNiceMockBinder.newBuilder().addConfigsBindings().addFactoriesInstallBinding() .addPasswordEncryptorBindings().build().configure(binder);
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
import org.apache.http.ReasonPhraseCatalog; import org.apache.http.impl.EnglishReasonPhraseCatalog; /** The catalog for looking up reason phrases. */ protected final ReasonPhraseCatalog reasonCatalog; /** * Creates a new response factory with the given catalog. * * @param catalog the cat...
0
OutputReceiverFactory outputReceiverFactory, StateRequestHandler stateRequestHandler) { RemoteOutputReceiver.of((Coder) targetCoders.getValue(), outputReceiver));
0
* @version $Revision$ $Date$
0
Library getEnclosingLibary(); /** * sets the library this binding is a part of */ void setEnclosingLibary(Library lib);
0
import org.apache.sshd.common.util.ValidateUtils; AbstractSession session = ValidateUtils.checkNotNull( createSession(ioSession), "No session created for %s", ioSession); AbstractSession session = ValidateUtils.checkNotNull( AbstractSession.getSession(ioSession), "No abst...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting; import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions; import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Strings;
0
* * * /** * * @version $Revision: 1.43 $ /** * /** /** * @return a new TagScript based on whether * the given Tag class is a bean tag or DynaTag * Sets the optional namespaces prefix -> URI map of * This method must be called after the setTag() method //-------...
1
SVGGraphics2D svggen = new SVGGraphics2D(domFactory);
0
package org.apache.beam.examples.common; import org.apache.beam.sdk.options.DataflowPipelineOptions; import org.apache.beam.sdk.options.Default; import org.apache.beam.sdk.options.Description;
0
* any, must include the following acknowledgement: * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknowledgements normally appear. * permission of the Apache Software Foundation.
0
package cz.seznam.euphoria.core.client.dataset; import java.io.Serializable; /** * Triggering conditions that have to be met in order to fire an event. */ public interface Triggering extends Serializable { /** Fire specific trigger on given time. */ void scheduleOnce(long duration, Trigger trigger); /** Fi...
0
import org.apache.accumulo.core.client.impl.Namespace; import org.apache.accumulo.core.client.impl.Table; private Table.ID tableId; public TableParentConfiguration(Table.ID tableId, Instance inst, AccumuloConfiguration parent) { protected Namespace.ID getNamespaceId() {
1
import cz.seznam.euphoria.core.client.util.Pair;
0
/* * $HeadURL$ * $Revision$ * $Date$ * ==================================================================== * * Copyright 1999-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 ma...
0
// Tells whether SSL is enabled on this ServerCnxnFactory protected boolean secure; /** * @return true if the cnxn that contains the sessionId exists in this ServerCnxnFactory * and it's closed. Otherwise false. */ public abstract boolean closeSession(long sessionId); public...
0
* Aligns the time to be the smallest multiple of {@code period} greater than the epoch boundary * (aka {@code new Instant(0)}).
1
import org.apache.accumulo.core.protobuf.ProtobufUtil; String file = "file:///accumulo/wal/127.0.0.1+9997" + UUID.randomUUID(); Mutation m = ReplicationTableUtil.createUpdateMutation(file, ProtobufUtil.toValue(stat), extent); Assert.assertEquals(extent.getTableId(), new Text(col.getColumnFamily()));
0
import org.apache.aurora.scheduler.resources.ResourceSlot; import org.apache.aurora.scheduler.resources.Resources;
0
/** Provides utilities for Beam runner authors. */
1
Map<String,String> siteConfig = cfg.getSiteConfig();
0
import org.apache.ambari.server.controller.spi.Resource; protected StackAdvisorResourceProvider(Resource.Type type, Set<String> propertyIds, Map<Type, String> keyPropertyIds, AmbariManagementController managementController) { super(type, propertyIds, keyPropertyIds, manage...
0
* file name supplied in the constructor. * the configuration. You can also pull in files relative to the parent * configuration file. So if you have something like the following: * The properties in the included file are added to the parent configuration, * they do not replace existing properties with the ...
0
import org.apache.http.impl.conn.ConnRoute; protected final Map<ConnRoute, RouteSpecificPool> routeToPool; protected Map<ConnRoute,RouteSpecificPool> createRouteToPoolMap() { return new HashMap<ConnRoute, RouteSpecificPool>(); protected RouteSpecificPool newRouteSpecificPool(ConnRoute route) { p...
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...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/UnboundedFifoBuffer.java,v 1.8 2003/09/07 08:48:46 scolebourne Exp $ * @version $Revision: 1.8 $ $Date: 2003/09/07 08:48:46 $ * @author Federico Barbieri * @author Berin Loritsc...
0
req.setAttribute( WebConsoleConstants.ATTR_LABEL_MAP, labelMap ); req.setAttribute( WebConsoleConstants.ATTR_APP_ROOT, request.getContextPath() + request.getServletPath() );
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Splitter; import org.apache.beam.vendor.guava.v26_0...
0
if (serviceInfo.getVersion() == null) { serviceInfo.setVersion(parent.getVersion()); }
0
Class<?> referenceInterface() default AutoDetect.class; ReferenceCardinality cardinality() default ReferenceCardinality.MANDATORY_UNARY;
0
/* * Copyright (c) OSGi Alliance (2012, 2014). All Rights Reserved. * * 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 re...
0
for (int i = 0, size = contentCopy.size(); i < size; i++) { int length = nl.getLength(); List content = new ArrayList(length); for (int i = 0; i < length; i++) { String localName = childElem.getLocalName(); if (localName.equals("X509Certificate")) { content.add(unmarsh...
0
* * @param <T> the type of object to lookup in <code>coll1</code>.
0
* * * /** "First Name", {"Mary", "Campione", {"Alison", "Huml", if (col < 2) { + " (an instance of " if (data[0][col] instanceof Integer && !(value instanceof Integer)) { //With JFC/Swing 1.1 and JDK 1.2, we need t...
1
public void clear() { if(this.data != null) { this.data.clear(); } if(this.metrics != null) { this.metrics.clear(); } } public void clear() { if(this.typesDef!= null) { this.typesDef.clear(); } ...
0
package org.apache.beam.sdk.extensions.sql.interpreter.operator; import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRow;
0
import java.util.LinkedList; import java.util.List; import java.util.Map; import org.mozilla.javascript.*; * @version CVS $Id: FOM_Cocoon.java,v 1.3 2003/07/10 11:40:57 cziegeler Exp $
0
Number timedout, Number skippedFailed) { put(HostRoleStatus.SKIPPED_FAILED, skippedFailed); 0L, // timedout 0L // skippedFailed ); /** * For testing, set the number of {@link HostRoleStatus#SKIPPED_FAILED} tasks */ public HostRoleCommandStatusSummaryDTO skippedFailed(int co...
1
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
0
import org.apache.hadoop.metadata.repository.Constants;
0
@Test public void testPopulateResourcesTimeout() throws Exception { // Set the provider to take 100 millis to return the JMX values TestStreamProvider streamProvider = new TestStreamProvider(100L); TestJMXHostProvider hostProvider = new TestJMXHostProvider(true); Set<Resource> resources = new HashS...
0
import org.apache.xml.security.utils.resolver.ResourceResolver; import org.apache.xml.security.utils.resolver.ResourceResolverSpi; verifyUsingDOM(document, cert, secureParts, null); } /** * Verify the document using DOM */ protected void verifyUsingDOM( Document document, ...
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