Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
@Override public void cleanup() {}
0
T getResult();
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.lang.reflect.Method; ensureCauseChainIsSet(cause); private static Method INIT_CAUSE_METHOD = null; static { try { INIT_CAUSE_METHOD = Throwable.class.getMethod("initCause", new Class[] { Throwable.class} ); } catch(Exception e) { // JDK < 1.4: ignore ...
0
import com.google.common.net.HostAndPort; String peerTserverStr; peerTserverStr = ReplicationClient.executeCoordinatorWithReturn(peerContext, new ClientExecReturn<String,ReplicationCoordinator.Client>() { if (null == peerTserverStr) { final HostAndPort peerTserver = HostAndPort.fromStr...
0
* The contentType, contentEncoding and chunked attributes of the created object are set to * <code>null</code>, <code>null</code> and <code>false</code>, respectively.
0
public class RFileClientTest {
0
* Factory for {@link ManagedHttpClientConnection} instances.
0
import org.apache.cocoon.el.parsing.StringTemplateParser;
0
import org.apache.ambari.server.orm.dao.PrincipalDAO; import org.apache.ambari.server.orm.dao.PrincipalTypeDAO; import org.apache.ambari.server.orm.entities.PrincipalEntity; import org.apache.ambari.server.orm.entities.PrincipalTypeEntity; protected PrincipalDAO principalDAO; @Inject protected PrincipalTypeDAO pr...
0
XMLStreamReader xmlStreamReader = null; try (InputStream is = new ByteArrayInputStream(baos.toByteArray())) { xmlStreamReader = xmlInputFactory.createXMLStreamReader(is); } XMLStreamReader xmlStreamReader = null; try (InputStream is = new ByteArrayInp...
0
* Get locks that are waiting to be acquired by non existent FATE transactions. These are table
0
import org.apache.beam.vendor.grpc.v1.io.grpc.ClientInterceptor; import org.apache.beam.vendor.grpc.v1.io.grpc.Metadata; import org.apache.beam.vendor.grpc.v1.io.grpc.Metadata.Key; import org.apache.beam.vendor.grpc.v1.io.grpc.stub.MetadataUtils;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/ClassConverter.java,v 1.4 2003/10/05 13:34:53 rdonkin Exp $ * $Revision: 1.4 $ * $Date: 2003/10/05 13:34:53 $ * * Copyright (c) 2001-2003 The Apache Software Foundation...
0
* $Revision: 1.12 $ * $Date: 2003/12/26 15:48:40 $ * @version $Id: PooledConnectionImpl.java,v 1.12 2003/12/26 15:48:40 dirkv Exp $ public void activateObject(Object key, Object obj) throws Exception {
0
import org.apache.ambari.annotations.ApiIgnore; @POST @ApiIgnore // until documented @POST @ApiIgnore // until documented
0
import java.util.Iterator; for (final Iterator<Header> it = request.headerIterator(); it.hasNext();) { final Header header = it.next();
0
interface ModelEnforcementFactory {
0
@Override @Override
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...
0
lgSeekCache.lastColumnFamilies = (cfSet == null ? ImmutableSet.copyOf(columnFamilies) : cfSet);
0
AttributeAggregate.EMPTY,
0
* @param caps The Capabilities to add.
0
@Override public void close() { scanner.close(); }
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
entityManager.remove(entity);
1
@Test public void testWhere() throws Exception { useWhereMethodToDefineTypeParam(new TypeDescriptor<String>() {}); } private <T> void useWhereMethodToDefineTypeParam(TypeDescriptor<T> parameterType) { TypeDescriptor<Set<T>> typeDescriptor = new TypeDescriptor<Set<T>>() {}.where( new TypeParame...
0
/** * An Executor for fluent requests * <p/> * A {@link PoolingClientConnectionManager} with maximum 100 connections per route and * a total maximum of 200 connections is used internally. */ /** * Executes the request. Please Note that response content must be processed * or discarded using {@link R...
0
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws AccumuloException, AccumuloSecurityException, IOException { final Map<String,String> tableIds = shellState.getConnector().tableOperations().tableIdMap(); for (String tableName : shellState.getConnector().tabl...
0
for (String element : ignored) { list.add(prefix + bulk + element); list.add(prefix + bulk + bulk + element);
0
import org.apache.aurora.scheduler.resources.ResourceBag; private final ResourceBag offer; public UnusedResource(ResourceBag offer, IHostAttributes attributes) { public ResourceBag getResourceSlot() {
0
package org.apache.batik.anim.dom;
0
import org.apache.ambari.server.state.CommandScriptDefinition; import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static Logger LOG = LoggerFactory.getLogger(ServiceCheckGrouping.class); // create stages for everything else, as long it is valid if (clusterServices.containsKey(service)) { ...
0
* Autogenerated by Thrift Compiler (0.12.0) @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)") @org.apache.thrift.annotation.Nullable
0
* Copyright 2001-2006 The Apache Software Foundation.
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractLongCollection.java,v 1.2 2003/08/31 17:28:40 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowle...
0
import org.apache.beam.sdk.schemas.Schema.FieldType; import org.apache.beam.sdk.schemas.Schema.FieldTypeDescriptor; .typeDescriptor(FieldTypeDescriptor.of(FieldType.INT32)) .typeDescriptor(FieldTypeDescriptor.of(FieldType.STRING))
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/Functions.java,v 1.3 2002/06/16 03:22:22 dmitri Exp $ * $Revision: 1.3 $ * $Date: 2002/06/16 03:22:22 $ * A group of Function objects sharing a common namespace or a set of * common name...
1
protected static final transient Logger LOG = LoggerFactory.getLogger(OutputProcessorChainImpl.class); protected static final transient boolean isDebugEnabled = LOG.isDebugEnabled(); LOG.debug("Added " + newOutputProcessor.getClass().getName() + " to output chain: "); LOG.debug("Name...
0
tracker.track(result.getTempFile(), result);
0
import org.apache.accumulo.core.client.mapreduce.AccumuloFileOutputFormat; import org.apache.accumulo.core.client.rfile.RFile; * Bulk import all the files in a directory into a table. Files can be created using {@link AccumuloFileOutputFormat} and {@link RFile#newWriter()}
0
* Do not let this be generally instantiated with a 'new'. * @param engine the interpreter to evaluate the expression }
0
documentLoader.halt(); gvtTreeBuilder.halt(); svgLoadEventDispatcher.halt();
0
/** * * @version CVS $Id: TestBeanAction.java,v 1.2 2003/03/16 18:03:54 vgritsenko Exp $ */
0
final FileLocator locator = FileLocatorUtils.fileLocator().create(); private static void checkLocator(final FileLocator locator) final FileLocator locator = final FileLocator locatorSrc = final FileLocator locator = final FileLocator loc1 = final FileLocator loc = ...
0
import org.apache.hc.core5.http.EntityDetails; final EntityDetails entityDetails, this.contentType = entityDetails != null ? ContentType.parse(entityDetails.getContentType()) : 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 ...
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
return JobKeys.toPath(lockKey.getJob());
0
import java.util.Collection; * @param dataTypes data type public void onAdd(Collection<? extends IDataType> dataTypes) throws MetadataException { for(IDataType dataType : dataTypes) { LOG.info("Creating indexes for type name={}, definition={}", dataType.getName(), dataType.getClass()); ...
0
Collections.emptyMap(), Collections.emptyMap(), Collections.emptyMap(),
0
Nodes.getInstance().checkAndUpdateNode(node_name, epoch);
0
import org.apache.ambari.server.utils.StageUtils; StageUtils.useAmbariJdkInCommandParams(commandParams, configs);
0
TriggerContext<W> compositeContext, int index, OnElementEvent<W> e) throws Exception { subTrigger.onElement(childContext, e)); TriggerContext<W> compositeContext, int index, OnTimerEvent<W> e) throws Exception { childContext, index, subTriggers.get(index).onTimer(childContext, e)); ...
0
public int JJTSIZEMETHOD = 40; public int JJTREFERENCE = 41; "SizeMethod",
0
final URICollection redirects = context.getRedirectLocations(); final URICollection redirects = context.getRedirectLocations(); final URI redirect = URIUtils.rewriteURI(new URI("/newlocation/"), target); final Throwable cause = ex.getCause();
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
* 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
import org.apache.ambari.server.controller.metrics.MetricPropertyProviderFactory; /** * {@inheritDoc} */ @Override public MetricPropertyProviderFactory getMetricPropertyProviderFactory() { return injector.getInstance(MetricPropertyProviderFactory.class); }
0
import org.apache.accumulo.core.client.AccumuloClient; private void checkSum(String tableName, AccumuloClient c) throws Exception { AccumuloClient c = getAccumuloClient();
0
protected void appendDedupSep(StringBuilder sb, CharSequence s) { protected String globToRegex(String pattern) {
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
import javax.ws.rs.DELETE; import javax.ws.rs.PUT; * Deletes a repository version. Handles: DELETE /repository_version/{repositoryVersionId} requests. * * @param headers http headers * @param ui uri info * @param repositoryVersionId the repository version id * @retur...
0
PtyMode(int v) { put(c.toInt(), c); return commands.get(0x00FF & (b + 0x100));
0
* @version CVS $Id: I18nTransformer.java,v 1.3 2003/03/16 17:49:15 vgritsenko Exp $
0
System.gc(); Thread.sleep(500);
0
// check for existing proxy final ExtPersistenceManager pmProxy = getProxyForPersistenceManager(service); if ( pmProxy != null ) pmList.add(pmProxy); if ( service instanceof NotCachablePersist...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/jms/src/java/org/apache/commons/jelly/tags/jms/OnMessageTag.java,v 1.4 2003/10/09 21:21:20 rdonkin Exp $ * $Revision: 1.4 $ * $Date: 2003/10/09 21:21:20 $ * any, must include the following acknowledgement: * ...
0
* @version CVS $Id: I18nTransformer.java,v 1.10 2003/08/06 14:42:46 bruno Exp $ /* A MirrorRecorder containing the contents of {@link #untranslated}. */ private MirrorRecorder untranslatedRecorder; if (untranslated != null) { untranslatedRecorder = new MirrorRecorder(); ...
0
import com.google.inject.Provider; import junit.framework.Assert;
0
* The {@link WidgetDefinition} part of a Action widget, see {@link Action} for more information. public class ActionDefinition extends AbstractWidgetDefinition { return new Action(this);
0
import org.apache.beam.runners.fnexecution.provisioning.JobInfo; JobInfo jobInfo = JobInfo.create( invocationId, samzaPipelineOptions.getJobName(), retrievalToken, PipelineOptionsTranslation.toProto(samzaPipeline...
0
import org.apache.http.HttpRuntime; throw new HttpRuntime.FatalError("HttpClient requires ASCII support"); throw new HttpRuntime.FatalError("HttpClient requires ASCII support");
0
* @version CVS $Id: SourceHandlerImpl.java,v 1.2 2003/03/16 17:49:10 vgritsenko Exp $
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.8 $ $Date: 2003/10/13 08:44:42 $
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
package org.apache.felix.sigil.ui.eclipse.ui.wizard.project; import org.apache.felix.sigil.eclipse.SigilCore; import org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel; import org.apache.felix.sigil.model.eclipse.ISigilBundle;
0
* A handler for determining if an HttpRequest should be retried after a * data must be synchronized as methods of this interface may be executed * * @param executionCount the number of times this method has been *
0
import org.osgi.framework.SynchronousBundleListener; // Once the dependency is started, access to fields must be synchronized. synchronized (this) { if (getBindingPolicy() == STATIC_BINDING_POLICY && m_handler.getInstanceManager().getPojoObjects() != null) { m_isFrozen = true...
0
Copyright 2000-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
public static final String STRING_UTF8_CODER_URN = getUrn(StandardCoders.Enum.STRING_UTF8); STRING_UTF8_CODER_URN,
0
/** @return the state complexity */ StateComplexity state(); /** @return the number of global repartition operations */
0
* limitations under the License.
0
import static java.util.Objects.requireNonNull; private final cz.seznam.euphoria.core.client.flow.Flow wrap; Flow(cz.seznam.euphoria.core.client.flow.Flow wrap) { this.wrap = requireNonNull(wrap); }
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/PropertyUtils.java,v 1.2 2001/04/16 16:30:13 craigmcc Exp $ * $Revision: 1.2 $ * $Date: 2001/04/16 16:30:13 $ import java.util.Collections; import java.util.Map; * @version $Revisio...
0
public class SocketConfig {
0
Base64.encodeBase64StringUnChunked(("\000" + username + "\000" + password).getBytes()) Base64.encodeBase64StringUnChunked(toEncode))); Base64.encodeBase64StringUnChunked(username.getBytes())))) { Base64.encodeBase64StringUnChunked(password.getBytes()))...
0
package org.apache.felix.sigil.ui.eclipse.ui.preferences.repository; import org.apache.felix.sigil.eclipse.SigilCore; import org.apache.felix.sigil.eclipse.model.repository.IRepositoryConfiguration; import org.apache.felix.sigil.eclipse.model.repository.IRepositorySet; import org.apache.felix.sigil.eclipse.model.reposi...
0
DoFnSignature signature = DoFnSignatures.INSTANCE.getSignature((Class) fn.getClass()); .getSignature(fn.getClass())
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
/** * Resets the counts * */ void reset();
0
import org.apache.hc.core5.io.CloseMode; client.shutdown(CloseMode.GRACEFUL);
0
m_context = ((BundleImpl) framework).getBundleContext();
1
BundleAdapterService,
0
public Entry<? super A,? super B> toMapEntry() { public Pair<? super B,? super A> swap() { public static <K2,V2,K1 extends K2,V1 extends V2> Pair<K2,V2> fromEntry(Entry<K1,V1> entry) { return new Pair<K2,V2>(entry.getKey(), entry.getValue());
0
import org.apache.commons.vfs2.FileObject; import org.apache.commons.vfs2.FileSystemException; import org.apache.commons.vfs2.FileSystemOptions; import org.apache.commons.vfs2.FileType;
0
poolableConnectionFactory.setDefaultReadOnly(Boolean.FALSE); poolableConnectionFactory.setDefaultAutoCommit(Boolean.TRUE);
0
import org.apache.accumulo.core.trace.TraceUtil; stats = client.getMasterStats(TraceUtil.traceInfo(),
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
"Only element values of type enum can be built with this ctor - type specified: " + type);
0