Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
package com.dataartisans.flink.dataflow.translation.functions; * Encapsulates a {@link com.google.cloud.dataflow.sdk.transforms.DoFn} * inside a Flink {@link org.apache.flink.api.common.functions.RichMapPartitionFunction}.
0
public class BlockPropertyModule implements InputModule {
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
import org.apache.beam.sdk.io.hcatalog.HCatalogBeamSchema; private transient HCatalogBeamSchema metastoreSchema; private HCatalogTableProvider( HashMap<String, String> configuration, HCatalogBeamSchema metastoreSchema, DatabaseProvider defaultDBProvider) { this.defaultDBProvider = defaultDBPro...
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/Tag.java,v 1.12 2003/01/24 19:03:24 morgand Exp $ * $Revision: 1.12 $ * $Date: 2003/01/24 19:03:24 $ * $Id: Tag.java,v 1.12 2003/01/24 19:03:24 morgand Exp $ * @version $Revision: 1.12 $ ...
1
package org.apache.atlas.repository.store.graph.v2; import org.apache.atlas.RequestContext; import org.apache.atlas.repository.store.graph.v1.DeleteHandlerV1; RequestContext.clear(); RequestContext.get().setUser(TestUtilsV2.TEST_USER, null); entityStore = new AtlasEntityStoreV2(deleteHandler, ty...
1
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private final Logger log = LoggerFactory.getLogger(getClass());
0
* @since 2.0
1
public void brokenLinkFound(Target target, Throwable t);
0
* * <b>WARNING</b>: this method is subject to {@link ClassCastException} if * the returned object is not assignable to the generic type. * <b>WARNING</b>: this method is subject to {@link ClassCastException} if * the returned object is not assignable to the generic type. * * * <b...
0
import org.apache.accumulo.core.security.thrift.ThriftSecurityException; import org.apache.accumulo.core.security.tokens.AccumuloToken; import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper; public void initializeSecurity(InstanceTokenWrapper credentials, AccumuloToken<?,?> at) throws AccumuloSecurityE...
0
private boolean metricNamesNotCondition = false; @Override public void setMetricNamesNotCondition(boolean metricNamesNotCondition) { this.metricNamesNotCondition = metricNamesNotCondition; }
0
import java.util.Map; import org.apache.ambari.common.util.ExceptionUtil; import org.apache.ambari.resource.statemachine.ClusterFSM; import org.apache.ambari.resource.statemachine.StateMachineInvoker; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; private static Log LOG = LogFa...
0
public static List<String> readLines(Reader input) throws IOException { List<String> list = new ArrayList<String>();
0
private String id; private String title = ""; private String pigScript = ""; private String pythonScript = ""; private String templetonArguments = ""; private Date dateCreated; private String owner = ""; private boolean opened = false; public PigScript() { } public PigScript(Map<String, Object> st...
0
* @version CVS $Id: ElementProcessorFactory.java,v 1.2 2003/03/11 19:04:59 vgritsenko Exp $
0
// TODO: Remove this function! @Deprecated public RowCoder getRowCoder() {
0
private final String connectionUri; private final Driver driver; private final Properties properties; this.driver = driver; this.connectionUri = connectUri; this.properties = props; return driver.connect(connectionUri,properties); return this.getClass().getName() + ...
0
import java.util.concurrent.atomic.AtomicLong; logicalclock.get(), && (n.electionEpoch < logicalclock.get())){ logicalclock.get(), AtomicLong logicalclock = new AtomicLong(); /* Election instance ...
0
* @version $Id$
0
* @return {@code true}. This coder is injective. */ @Override public boolean consistentWithEquals() { return true; } /** * {@inheritDoc} *
0
setAttributeNS(XML_NAMESPACE_URI, XML_ID_QNAME, id);
0
impl = SVGDOMImplementation.getDOMImplementation(); impl = SVGDOMImplementation.getDOMImplementation(); bridgeContext = createBridgeContext(); isDynamicDocument = bridgeContext.isDynamicDocument(doc); bridgeContext.isInteractiveDocument(doc); } ...
1
package org.apache.commons.codec.language; import org.apache.commons.codec.EncoderException; import org.apache.commons.codec.StringEncoder;
1
package org.apache.ambari.server.fsm; public enum JobEventType { /** * Initial state for the action when triggered. */ ACTION_INIT, /** * Action still in progress. */ ACTION_IN_PROGRESS, /** * Action completed successfully. */ ACTION_COMPLETED, /** * Action failed to complete success...
0
static final String TYPE = "http://www.w3.org/2000/09/xmldsig#X509Data"; static final String RAW_X509_CERTIFICATE_TYPE =
0
Translation.set(translations, ReduceStateByKey.class, new ReduceStateByKeyTranslator(flowSettings));
0
* @version $Revision$ $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...
0
import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Table; import javax.persistence.TableGenerator; import javax.persistence.UniqueConstraint; @Table( name = "hostcomponentdesiredstate", uniqueConstraints = @UniqueConstraint( name = "UQ_hcdesiredstate_name...
0
import org.apache.cocoon.core.container.spring.CocoonXmlWebApplicationContext; /** Application Context for this sitemap. */ protected CocoonXmlWebApplicationContext applicationContext; this.sitemapExecutor = sitemapExecutor; public void setProcessorData(CocoonXmlWebApplicationContext appContext, ...
0
ByteBuffer login = ByteBuffer.wrap(CredentialHelper.asByteArray(credential)); getConnector(login); // check to make sure user exists return login;
0
StartLevelImpl(Felix felix)
0
private Map<String, DesiredConfig> actualConfigs; /** * @param actualConfigs the actual configs */ public void setActualConfigs(Map<String, DesiredConfig> configs) { actualConfigs = configs; } /** * @return the actual configs */ public Map<String, DesiredConfig> getActualConfigs() { ...
0
long droppedValues = container .getCounter( MetricName.named( StatefulDoFnRunner.class, StatefulDoFnRunner.DROPPED_DUE_TO_LATENESS_COUNTER)) .getCumulative();
0
* * @since 1.6
0
import org.apache.beam.sdk.annotations.Experimental; import org.apache.beam.sdk.annotations.Experimental.Kind; @Experimental(Kind.SCHEMAS)
0
* @since 4.0
0
import org.apache.sshd.util.test.NoIoTestCase; import org.junit.experimental.categories.Category; @Category({ NoIoTestCase.class })
0
import java.util.Map; addRelationshipType(type.getTypeName(), context); private void addRelationshipType(String relationshipTypeName, ExportService.ExportContext context) { if (!context.relationshipTypes.contains(relationshipTypeName)) { AtlasRelationshipType relationshipType = typeR...
0
* @version $Id$
0
List<String> responses = (num <= 0) ? Collections.emptyList() : new ArrayList<>(num);
0
import java.security.AccessController; import java.security.PrivilegedAction; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import org.osgi.service.cm.ConfigurationException; updated( service, configPid.toString(), props ); deleted( s...
0
public class Or implements LDAPExpr { public static LDAPExpr apply( LDAPExpr... terms ) { if ( terms == null ) { throw new NullPointerException( "terms cannot be null" ); else if ( terms.length == 0 ) { else if ( terms.length == 1 ) { for ( ...
0
/* * Copyright 2005 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 applicabl...
0
ITypedReferenceableInstance classInstance = RequestContext.get().getInstanceV1(guid);
0
* * @return an array of update counts containing one element for each command in the batch. * @throws Exception if a database access error occurs or one of the commands sent to the database fails. * @see PreparedStatement#executeBatch()
0
* Copyright 2004-2006 The Apache Software Foundation. import java.util.Iterator; private static final String RESOURCE_NAME = "config/deep/deeptest.properties"; /** * Tests whether the constructor behaves the same as setFileName() when the * configuration source is in the classpath. */ publ...
0
* @cocoon.sitemap.component.documentation * * @cocoon.sitemap.component.name cinclude * @cocoon.sitemap.component.logger sitemap.transformer.cinclude * @cocoon.sitemap.component.documentation.caching * See documentation for further information. * * @cocoon.sitemap.component.pooling.min 2 * @...
0
/** * @version $Id$ */
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
model.resetClasspath(monitor, true);
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
LOG.debug("Shutting down connection manager");
0
import org.apache.accumulo.core.conf.SiteConfiguration; SiteConfiguration siteConfig = SiteConfiguration.create(); ServerContext context = new ServerContext(siteConfig); creds = SystemCredentials.get(badInstanceID, siteConfig); creds = SystemCredentials.get(context.getInstanceID(), siteConfig);
0
import org.apache.felix.dm.Component; Component s = m_dm.createComponent(); ((Component) service).setServiceProperties(settings); m_dm.remove((Component) service); if (service instanceof Component) m_dm.remove((Component) service);
0
HostConfigMappingEntity.class); public List<HostConfigMappingEntity> findSelectedHostsByType(long clusterId, String type) { TypedQuery<HostConfigMappingEntity> query = entityManagerProvider.get().createQuery( "SELECT entity FROM HostConfigMappingEntity entity " + "WHERE entity.clus...
0
import java.lang.reflect.ParameterizedType; || returnType.getComponentType().isEnum())) || Collection.class.isAssignableFrom(returnType) || (returnType.equals(ValueProvider.class) && MAPPER.getTypeFactory().constructType( ...
0
static org.slf4j.Logger log =
1
public void storeCurrentPaneInfo(ReduceFn<?, ?, ?, ?>.Context context, PaneInfo currentPane) { context.state().access(PANE_INFO_TAG).set(currentPane); } long index = isFirst ? 0 : previousPane.getIndex() + 1; long nonSpeculativeIndex; Timing timing; if (isSpeculative) { timing = Timing.EA...
0
public Closer(ThriftTransportPool pool) { while (true) { new Daemon(new Closer(instance), "Thrift Connection Pool Checker").start();
0
public void add(String name, Class<?> type); public void add(String name, Class<?> type, boolean readable,
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
event -> event.newPerson != null; event -> event.newAuction != null; event -> event.bid != null;
0
throw (SQLException) new SQLException("Cannot create PoolableConnectionFactory (" + e.getMessage() + ")").initCause(e); throw (SQLException) new SQLException("Error preloading the connection pool").initCause(e); throw (SQLException) new SQLException(message).initCause(t); ...
0
* <li>{@link AccumuloRowInputFormat#setClientProperties(JobConf, java.util.Properties)}
0
@Test public void testMap2DTOView() { Map<String, Object> src = Collections.singletonMap("pong", 42); MyDTOWithMethods dto = converter.convert(src).target(MyDTO.class).to(MyDTOWithMethods.class); assertEquals(42, dto.pong); }
0
.using((String s, Collector<Pair<String, Long>> c) -> { .using((String s, Collector<Pair<String, Long>> c) -> { .using((String s, Collector<Pair<String, Long>> c) -> { Dataset<Pair<String, String>> pairs = MapElements.of(nonempty) .using(s -> { .keyBy(Pair::getFirst) ...
0
/** * Parameters of this operator used in builders. */ /** * Trigger defining operator builder. */ /** * {@link WindowingStrategy.AccumulationMode} defining operator builder. */ * Last builder in a chain. It concludes this operators creation by calling {@link * #output(OutputHint...)}.
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
/* * 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
AccumuloClient client = accumulo.getAccumuloClient("root", new PasswordToken("superSecret")); TableOperations tableops = client.tableOperations(); Scanner s = client.createScanner(TEST_TABLE, Authorizations.EMPTY);
0
private static final String EXPECTED_PROTOCOL = "http"; new LoggingRequestHelperImpl(EXPECTED_HOST_NAME, EXPECTED_PORT_NUMBER, EXPECTED_PROTOCOL, credentialStoreServiceMock, clusterMock, networkConnectionMock); new LoggingRequestHelperImpl(EXPECTED_HOST_NAME, EXPECTED_PORT_NUMBER, EXPECTED_PROTOCOL, cred...
0
* Creates a <code>DOMPGPData</code> containing the specified key packet. * @param keyPacket a PGP Key Material Packet as defined in section 5.5 of * <a href="http://www.ietf.org/rfc/rfc2440.txt"/>RFC 2440</a>. The * @throws NullPointerException if <code>keyPacket</code> is * @throws IllegalA...
0
artifact.setGroupId( "org.apache" ); artifact.setArtifactId( "org.apache.commons-logging" ); s = maven2Osgi.getBundleSymbolicName( artifact ); assertEquals( "org.apache.commons-logging", s );
0
import com.google.cloud.dataflow.sdk.testing.PAssert; PAssert.that(output).containsInAnyOrder(Bytes.asList(expected)); PAssert.that(output).containsInAnyOrder(expected); PAssert.that(output).containsInAnyOrder(expected); PAssert.that(output).containsInAnyOrder(Bytes.asList(expected));
0
// It must be possible to compute the output timestamp of a pane from the input timestamp // of the element with the earliest input timestamp. if (!strategy.getOutputTimeFn().dependsOnlyOnEarliestInputTimestamp()) { return false; } if (!(strategy.getMode().equals(AccumulationMode.DISCARDING_FI...
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 la...
0
/* * Copyright 2001-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
import org.apache.accumulo.server.security.SystemCredentials; MetaDataTableScanner rootScanner = new MetaDataTableScanner(instance, SystemCredentials.get().getAsThrift(), MetadataSchema.TabletsSection.getRange()); MetaDataTableScanner metaScanner = new MetaDataTableScanner(instance, SystemCredentials.get().getA...
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 * * "...
0
PipelineOptionsFactory.create(), cloudSource, new BatchModeExecutionContext(), null, null);
0
return HeapByteBufferAllocator.INSTANCE; return DefaultHttpRequestFactory.INSTANCE;
0
serverSideIteratorOptions, Constants.SCAN_BATCH_SIZE, Authorizations.EMPTY, 0L, null); serverSideIteratorOptions, Constants.SCAN_BATCH_SIZE, Authorizations.EMPTY, 0L, null);
0
@Version("2.0.8")
0
import org.apache.batik.ext.awt.image.codec.util.SeekableStream;
0
* @version $Id$
0
/** * Wraps SocketClient._input_ to facilitate the writing of text * to the FTP control connection. Do not access the control * connection via SocketClient._input_. This member starts * with a null value, is initialized in {@link #_connectAction_}, * and set to null in {@link #disconnect}...
0
"--runner=org.apache.beam.sdk.testing.CrashingRunner", assertEquals(CrashingRunner.class, options.getRunner());
0
if ( this instanceof ComponentFactoryImpl.ComponentFactoryConfiguredInstance ) { return Active.getInstance(); }
0
import org.apache.felix.sigil.eclipse.internal.repository.manager.EclipseRepositoryFactory.EclipseRepositoryProviderWrapper; String def = config.getRepositoryDefinition(name).toString(); IBundleRepository repo = buildRepository(def, name, props); // filter...
0
import org.apache.hadoop.conf.Configuration; public void configure(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) {
0
* @version CVS $Id: Processor.java,v 1.9 2004/05/26 01:31:06 joerg Exp $ * {@link InternalPipelineDescription#release()}.
0
return new TraceRepo<>(result);
0
package org.apache.commons.vfs2.provider.http.test; import org.apache.commons.vfs2.FileContent; import org.apache.commons.vfs2.FileObject; import org.apache.commons.vfs2.FileSystemException; import org.apache.commons.vfs2.FileSystemManager; import org.apache.commons.vfs2.VFS; import org.junit.Assert; import org.junit....
0
import org.apache.accumulo.core.iterators.SortedKeyValueIterator; private ArrayList<SortedKeyValueIterator<Key,Value>> topLevelIterators = new ArrayList<>(); ArrayList<SortedKeyValueIterator<Key,Value>> allIters = new ArrayList<>(topLevelIterators); this.readers = new ArrayList<>(); List<String> relFi...
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. * @version $Revision: 1.3 $ $Date: 2003/10/13 08:42:27 $
0
String key = entry.getKey();
0
@Override
0