Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
long rounded = round(progress.setScale(0, BigDecimal.ROUND_UP).floatValue() / 10); for (long i = 0; i < 10; i++) { done = true;
0
* @version $Revision$
0
package org.apache.accumulo.monitor.rest.api.table; /** * * Generates a list of compactions as a JSON object * * @since 2.0.0 * */ // Variable names become JSON keys /** * Generate a compation list * * @param running * Number of running compactions * @param queued * Number ...
0
ts.exec("config -s " + Property.VFS_CONTEXT_CLASSPATH_PROPERTY + FAKE_CONTEXT + "=" + FAKE_CONTEXT_CLASSPATH); ts.exec("config -t t -s table.classpath.context=" + FAKE_CONTEXT); ts.exec("setscaniter -n reverse -t t -p 21 -class org.apache.accumulo.test.functional.ValueReversingIterator"); ts.exec("confi...
0
import net.jcip.annotations.ThreadSafe; @ThreadSafe protected final SchemeRegistry schemeRegistry; // class is @ThreadSafe
0
Integer n = collatingIterator2.next();
0
Service sc3 = m.createService().setImplementation(new MyClient(e, true, 9)); // add the provider first, then add the consumer which initially will have no dependencies // but via the init() method an optional dependency with a callback method will be added // remove the consumer...
0
System.err.println("Running " + t.getName());
0
import org.apache.accumulo.monitor.util.celltypes.PreciseNumberType;
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...
0
* @version CVS $Id: MailContentHandlerDelegate.java,v 1.3 2003/03/12 09:35:36 cziegeler Exp $ *@version CVS Version: $Id: MailContentHandlerDelegate.java,v 1.3 2003/03/12 09:35:36 cziegeler Exp $ implements XMLizable { *@version CVS Version: $Id: MailContentHandlerDelegate.java,v 1.3 2003/...
0
import org.apache.http.params.BasicHttpParams; HttpParams params = new BasicHttpParams(null);
0
String commandDetail, String customCommandName, String outputLog, String errorLog) { super(taskId, stageId, hostName, role, command, status, customCommandName, outputLog, errorLog);
1
import org.apache.aurora.common.util.Clock;
0
@Override public int hashCode() { int result = 17; String algorithm = getAlgorithm(); if (algorithm != null) { result = 31 * result + algorithm.hashCode(); } AlgorithmParameterSpec spec = getParameterSpec(); if (spec != null) { result ...
0
* @version $Revision$
0
if (encoding == null) { // Obtain access logger // FIXME This used to be configurable via "servlet-logger" parameter in web.xml this.log = ((Logger) this.cocoonBeanFactory.getBean(AvalonUtils.LOGGER_ROLE)).getChildLogger("access"); this.processor = getProcessor(); return ...
0
package org.apache.beam.runners.core.fn;
0
public class MappedTestBean {
0
* @version CVS $Id: QuartzJobExecutor.java,v 1.2 2003/09/04 09:03:39 cziegeler Exp $ * @since 2.1.1
0
void onSuccess(List<String> callbackIds); void onFailure(List<String> callbackIds);
0
import static org.junit.Assert.assertEquals;
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
package org.apache.hc.core5.http.impl.bootstrap;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/test/org/apache/commons/digester/xmlrules/DigesterLoaderTest.java,v 1.15 2003/10/09 21:09:50 rdonkin Exp $ * $Revision: 1.15 $ * $Date: 2003/10/09 21:09:50 $ * Alternately, this acknowledgement may appear in the s...
0
/** /** Characters which are safe to use in userinfo, /** Characters which are safe to use in a path, /** Characters which are safe to use in a query or a fragment, /** * This list is the same as the {@code reserved} list in /** * * * * * * * * ...
0
import java.util.EnumSet; import org.apache.ambari.logsearch.conf.ApplicationConfig; import org.eclipse.jetty.servlet.FilterHolder; import org.eclipse.jetty.servlet.ServletHolder; import org.springframework.web.context.ContextLoaderListener; import org.springframework.web.context.request.RequestContextListener; import ...
0
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; @SuppressFBWarnings(value = "PATH_TRAVERSAL_IN", justification = "path provided by test") @SuppressFBWarnings(value = "PATH_TRAVERSAL_IN", justification = "path provided by test")
0
import org.apache.accumulo.core.client.impl.ClientConfConverter; sslParams = SslConnectionParams.forClient(ClientConfConverter.toAccumuloConf(clientConf)); saslParams = new SaslServerConnectionParams(ClientConfConverter.toProperties(clientConf), token, null);
0
public boolean keepAlive( final HttpRequest request, final HttpResponse response, final HttpContext context) {
0
import org.apache.hc.core5.http.nio.support.BasicResponseProducer;
0
import org.apache.batik.util.ParsedURL; ParsedURL purl = new ParsedURL(documentURI, uri); Document doc = documentLoader.loadDocument(purl.toString()); String ref = purl.getRef(); if (ref != null) return doc;
0
}, false);
0
import org.apache.accumulo.core.security.tokens.PasswordToken; import org.apache.accumulo.core.security.tokens.SecurityToken;
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
xmlEventWriter = XMLSecurityConstants.xmlOutputFactory.createXMLEventWriter(outputStream, encoding);
0
* Information about a file, that is used to select files during the traversal of a hierarchy. public interface FileSelectInfo { * * *
1
if (entry == null) return; if (numSearchTerms < 2) numSearchTerms = 2; if (!sawDocID) throw new Exception("Did not see doc " + docID + " in index. terms:" + searchTerms + " " + indexTableName + " " + dataTableName); if (!iter.hasNext()) return null;
1
public void actionPerformed( final java.awt.event.ActionEvent e ) { public VerifyDialog(final java.awt.Dialog owner) { public VerifyDialog(final java.awt.Dialog owner, final String title) { public VerifyDialog(final java.awt.Dialog owner, final String title, final boolean modal) { public VerifyD...
0
document = XMLUtils.parse(in, false, secureValidation);
0
import org.apache.commons.jelly.util.ClassLoaderUtils; * @version $Revision: 1.57 $ return ClassLoaderUtils.getClassLoader(classLoader, useContextClassLoader, getClass());
0
Factory factory, factory2, factory3; factory3 = Utils.getFactoryByName(context, "under-providers-lifecycle"); public void testLifecycleCompliance() throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException { // First ex...
0
import junitx.framework.ListAssert; String string = "The quick brown fox"; String defaultValue = "jumps over the lazy dog"; public void testGetInterpolatedList() { config.addProperty("number", "1"); config.addProperty("array", "${number}"); config.addProperty("array", "${...
0
import org.springframework.context.annotation.DependsOn; @DependsOn(value = {"atlasTypeDefStoreInitializer", "atlasTypeDefGraphStoreV1"})
0
* @version $Id$
0
package org.apache.hc.client5.http.impl.classic;
0
protected final Map beanMap = new HashMap();
0
import org.apache.cocoon.core.container.CoreServiceManager; private final CoreServiceManager delegate; this.delegate = new CoreServiceManager(null);
0
void resetClasspath(IProgressMonitor monitor, boolean forceResolve) throws CoreException; IRepositoryManager getRepositoryManager();
0
implements RepositoryVersioningHelper, Serviceable, Disposable {
0
import org.apache.http.impl.nio.DefaultNHttpServerConnection; import org.apache.http.nio.protocol.HttpAsyncServiceExchange; httpproc, new DefaultConnectionReuseStrategy(), reqistry, params) { NHttpConnectionFactory<DefaultNHttpServerConnection> connFactory; final HttpAsyncService...
0
* This protocol interceptor is responsible for adding the {@code Connection} * header to the outgoing requests, which is essential for managing persistence * of {@code HTTP/1.0} connections.
0
import java.io.File; import org.apache.hadoop.conf.Configuration; Configuration conf = new Configuration(); conf.set("mapreduce.cluster.local.dir", new File(System.getProperty("user.dir"), "target/mapreduce-tmp").getAbsolutePath()); assertEquals(0, ToolRunner.run(conf, new MRTester(), args));
0
* Copyright 2017 Seznam.cz, a.s.
0
public int getInt(DescriptorParam param) { String value = getString(param, null); if (value != null) { try { return Integer.parseInt(value); } catch (NumberFormatException e) { throw new IllegalAr...
0
prov.put("instance.name","FooProvider"); i3.put("instance.name","Object"); i4.put("instance.name","Ref"); i5.put("instance.name","Both");
0
@Override public BeamSqlPrimitive evaluate(BeamSqlRow inputRow) {
0
/** * Finds the appropriate {@code ClassLoader} to be used by the {@link ServiceLoader#load} call, * which by default would use the context {@code ClassLoader} which can be null. The fallback is * as follow: context ClassLoader, class ClassLoader and finaly the system ClassLoader. */ static ClassLoader ...
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
/** Utils to help with SqlTypes. */ * Finds an operand with provided type. Returns Optional.absent() if no operand found with * matching type * Finds an operand with the type in typesToFind. Returns Optional.absent() if no operand found * with matching type
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
* @version CVS $Id: VariableResolver.java,v 1.2 2003/03/16 17:49:13 vgritsenko Exp $
0
public static final Version V1_0 = new Version("1.0.0"); // "1.1.0" component.version = V1_0;
0
public ConstantFieldref(final ConstantFieldref c) { ConstantFieldref(final DataInput input) throws IOException { public ConstantFieldref(final int class_index, final int name_and_type_index) { public void accept( final Visitor v ) {
0
import org.apache.ambari.server.audit.AuditLoggerModule; injector = Guice.createInjector(new AuditLoggerModule(), new AuthorizationTestModule());
1
setProperty(vertexWithIdentity, Constants.VERSION_PROPERTY_KEY, Long.valueOf(typedInstance.getId().version)); getVersion(vertex).intValue(), dataTypeName, public static Long getVersion(AtlasElement element) { return element.getProperty(Constants.VERSION_PROPERTY_KEY, Long.class);
1
setFile(id); } public void setFile(String id) {
0
import org.apache.felix.dm.Service;
0
/** An implementation of {@link GroupAlsoByWindow} for the Spark runner. */ implements FlatMapFunction< WindowedValue<KV<K, Iterable<WindowedValue<InputT>>>>, private void fireEligibleTimers( InMemoryTimerInternals timerInternals, ReduceFnRunner<K, InputT, Iterable<InputT>, W> reduceFnRunner) ...
1
private static final Logger log = LoggerFactory.getLogger(FateMetricValues.class);
0
// Trace.enter(this, "sampleAt", new Object[] { Float.valueOf(parentSimpleTime) } ); try { // Trace.enter(this, "computeInterval", new Object[] { new Boolean(first), new Boolean(fixedBegin), Float.valueOf(beginAfter)} ); try {
0
@ObjectCreate.List( @ObjectCreate( pattern = "catalog" ) ) public final class Catalog { @SetNext( { AudioVisual.class, Book.class } ) public void addItem( Item item ) { this.items.add( item ); public List<Item> getItems() { public boolean equals( Object obj ) { if ( this == o...
1
public DLOAD(final int n) { public void accept( final Visitor v ) {
0
import org.apache.cocoon.portal.om.CopletInstance;
0
allResponse.add(new UserResponse("User100", false, true, false));
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
package org.apache.bcel.generic; super(org.apache.bcel.Const.LNEG);
1
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; @SuppressFBWarnings(value = "WEAK_MESSAGE_DIGEST_MD5", justification = "md5 is okay for testing")
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/bidimap/TestAll.java,v 1.3 2003/12/03 14:03:35 scolebourne Exp $ * @version $Revision: 1.3 $ $Date: 2003/12/03 14:03:35 $ suite.addTest(TestUnmodifiableOrderedBidiMap.suit...
0
import org.apache.aurora.scheduler.storage.Snapshotter; class LogPersistence implements Persistence { private final Snapshotter snapshotter; LogPersistence(LogManager logManager, Snapshotter snapshotter) { this.snapshotter = requireNonNull(snapshotter); /** * Saves a snapshot to the log stream. * * @...
0
public class AuthProperty implements Comparable<AuthProperty>{ public int hashCode() { return key.hashCode(); } public boolean equals(Object o) { if (o instanceof AuthProperty) return ((AuthProperty) o).key.equals(key); return false; } @Override public int ...
0
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals;
0
* * @version $Id$
0
import org.apache.accumulo.miniclusterImpl.MiniAccumuloConfigImpl;
0
boolean initialActive = oldTracker != null && oldTracker.isActive(); ServiceTracker<T, RefPair<T>> tracker = new ServiceTracker<T, RefPair<T>>( m_componentManager.getActivator().getBundleContext(), m_targetFilter, customizer, initialActive );
0
import java.util.Dictionary; public boolean isPropagated(); public Dictionary getProperties();
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(ServiceResourceProvider.class);
0
Map<String, Object> serializableOptions = Maps.newHashMap(handler.jsonOptions); new ProxyInvocationHandler(Maps.newHashMap(), fields).as(PipelineOptions.class);
0
class ServiceResourceProvider extends AbstractControllerResourceProvider {
0
import java.nio.channels.SelectionKey; import org.apache.http.nio.reactor.IOSession; final ConnectingIOReactor ioReactor = new DefaultConnectingIOReactor(); BasicNIOConnPool pool = new BasicNIOConnPool(ioReactor); IOSession session = entry.getConnection(); session.setAttribute("e...
0
* <b>DOM</b>: Implements DOMImplementation#createDocumentType(String,String,String).
0
} else { try { zooKeeper.getStatus(event.getPath(), this); } catch (Exception ex) { lw.failedToAcquireLock(ex); }
0
* http://www.apache.org/licenses/LICENSE-2.0
0
* if (offsetInBits % LENGTH != 0 || otherOffsetInBits % LENGTH != 0 public boolean isPrefix(final String prefix, final int offsetInBits,
0
import org.apache.accumulo.core.clientImpl.DelegationTokenImpl; import org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode; import org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException; import org.apache.accumulo.core.securityImpl.thrift.TCredentials;
0
import org.apache.beam.runners.core.construction.Environments; Environment env = Environments.createDockerEnvironment("foo");
0
* @version CVS $Id: JavaScriptInterpreter.java,v 1.3 2003/03/16 17:49:12 vgritsenko Exp $
0
import org.apache.beam.sdk.transforms.display.DisplayData; @Override public void populateDisplayData(DisplayData.Builder builder) { builder .add("numQuantiles", numQuantiles) .add("comparer", compareFn.getClass()); }
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