Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.aurora.gen.SlaPolicy;
import org.apache.aurora.scheduler.maintenance.MaintenanceController;
static final String SLA_DRAIN_HOSTS = STAT_PREFIX + "slaDrainHosts";
@VisibleForTesting
private final AtomicLong slaDrainHostsCounter;
this.slaDrainHostsCounter = statsProvider.makeCounter(SLA_DRAIN_H... | 0 |
import java.util.ListIterator;
FTPFileList ffl = FTPFileList.create(listStream, this);
/**
* Implement hook provided for those implementers (such as
* VMSVersioningFTPEntryParser, and possibly others) which return
* multiple files with the same name to remove the duplicates by
* defin... | 0 |
/**
* Copyright 2016 Seznam a.s.
*
* 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 |
/**
* The handler description.
*/
private ProvidedServiceHandlerDescription m_description;
// Initialize the description.
m_description = new ProvidedServiceHandlerDescription(this, m_providedServices);
return m_description; | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/security/KeyException.java,v 1.6 2006/03/14 01:20:27 hargrave Exp $
*
* (C) Copyright 2001 Sun Microsystems, Inc.
* Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 0 |
import java.util.Set;
private static final String THERMOS_CONFIG = "config";
.setThermosConfig(THERMOS_CONFIG.getBytes())
.setLimit(1)))))))
assertEquals(
ConfigurationManager.applyDefaultsIfUnset(MINIMUM_VIABLE_TASK), unclean.getTaskConfig());
public... | 0 |
import org.apache.accumulo.core.util.shell.commands.ExportTableCommand;
import org.apache.accumulo.core.util.shell.commands.ImportTableCommand;
new DUCommand(), new ExportTableCommand(), new ImportTableCommand(), new OfflineCommand(), new OnlineCommand(), new RenameTableCommand(),
new TablesCommand()}; | 0 |
InvokeContext errorContext = new InvokeContext(context, this.manager); | 0 |
final String tarFilePath = AbstractVfsTestCase.getTestResource("nested.tar").getAbsolutePath(); | 0 |
* A managed connection operates like any other connection when no global | 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 |
@Override
@Override | 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 |
import com.google.common.collect.Iterators;
return Iterators.size(((Iterable<?>) s).iterator()); | 0 |
final String methodName = method.getName();
final int col = ((Integer) args[0]).intValue() - 1;
final int col = ((Integer) args[0]).intValue() - 1; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/RequiredIfTest.java,v 1.12 2004/01/11 23:30:21 dgraham Exp $
* $Revision: 1.12 $
* $Date: 2004/01/11 23:30:21 $
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights... | 0 |
tester.bufferTag(firstWindow),
// Still holding the earliest element, waiting to fire
tester.earliestElement(firstWindow))); | 0 |
package org.apache.ambari.server;
import java.util.Map;
/**
* ServiceComponent Interface for representing components of the various
* products in the Hadoop eco-system such as NAMENODE, DATANODE for HDFS.
*/
public interface ServiceComponent {
/**
* @return Name of the ServiceComponent Instance
*/
publi... | 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 |
return SPLITTABLE_PROCESS_URN; | 0 |
for (String variationURL : variationURLs) {
addVariationURL(variationURL); | 0 |
* @version CVS $Id: UserHandler.java,v 1.9 2003/07/01 19:26:40 cziegeler Exp $
public UserHandler(HandlerConfiguration handler, AuthenticationContext context) {
this.context = context;
this.context.init(this); | 0 |
import org.apache.felix.hc.api.FormattingResultLog; | 0 |
import org.apache.ambari.logsearch.conf.SolrServiceLogPropsConfig;
private SolrServiceLogPropsConfig solrServiceLogPropsConfig;
public NodeListResponse getTreeExtension(ServiceLogSearchCriteria searchCriteria) {
public NodeListResponse getHostListByComponent(ServiceLogSearchCriteria searchCriteria) {
public Nam... | 0 |
import org.apache.parquet.hadoop.metadata.CompressionCodecName;
* <p>By default, {@link ParquetIO.Sink} produces output files that are compressed using the {@link
* org.apache.parquet.format.CompressionCodec#SNAPPY}. This default can be changed or overridden
* using {@link ParquetIO.Sink#withCompressionCodec(Compres... | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/lang/ref/PhantomReference.java,v 1.6 2006/03/14 01:20:26 hargrave Exp $
*
* (C) Copyright 2001 Sun Microsystems, Inc.
* Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... | 0 |
public final String toString() {
default:
throw new IllegalStateException("Type of ConstValue invalid: " + c); | 0 |
package org.apache.felix.ipojo.test.scenarios.component.inner;
public interface MyFilter {
public String authenticate();
} | 0 |
package org.apache.accumulo.core.iterators.filter;
import java.util.Map;
import org.apache.accumulo.core.data.Key;
import org.apache.accumulo.core.data.Value;
/**
* @deprecated since 1.4
* @use accumulo.core.iterators.Filter
**/
public interface Filter {
public void init(Map<String, String> options);
public bo... | 1 |
@Deprecated | 0 |
/**
* This tests deprecated mapreduce code in core jar
*/
@Deprecated
AccumuloOutputFormat.setZooKeeperInstance(job, ci.getInstanceName(), ci.getZooKeepers());
AccumuloInputFormat.setZooKeeperInstance(job, info.getInstanceName(), info.getZooKeepers());
AccumuloOutputFormat.setZooKeeperInstance(job, ... | 0 |
import org.apache.http.util.CharArrayBuffer; | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull; | 0 |
* @version $Revision: 1.5 $
public boolean isEqualsCheckable() {
return false;
}
public String getCompatibilityVersion() {
return "3.1";
}
// public void testCreate() throws Exception {
// Buffer buffer = BlockingBuffer.decorate(new UnboundedFifoBuffer());
// writeEx... | 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 |
import org.easymock.EasyMock;
expect(factory.getServiceResourceProvider(EasyMock.<Set<String>>anyObject(),
EasyMock.<Map<Resource.Type, String>>anyObject(),
assertEquals(Collections.emptySet(), resource.getReadDirectives()); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestAll.java,v 1.7 2003/09/03 23:54:25 scolebourne Exp $
* @version $Revision: 1.7 $ $Date: 2003/09/03 23:54:25 $ | 0 |
* The second example uses the <code>FTPClient.listFiles()</code> | 1 |
private StackMapEntry[] map; // Table of stack map entries // TODO could be final (setter unused)
this.map = map;
public final void setStackMap( StackMapEntry[] map ) { // TODO unused | 0 |
/**
* this is to avoid the jvm bug:
* NullPointerException in Selector.open()
* http://bugs.sun.com/view_bug.do?bug_id=6427854
*/
try {
Selector.open().close();
} catch(IOException ie) {
LOG.error("Exception while opening a selector"... | 0 |
String clusterId = "1";
ExecutionCommand executionCommand = createMockExecutionCommand(clusterId, clusterName, commandParams);
String clusterId = "1";
ExecutionCommand executionCommand = createMockExecutionCommand(clusterId, clusterName, commandParams);
private ExecutionCommand createMockExecutionComm... | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
package org.apache.beam.examples.subprocess.configuration; | 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 |
String UNLIMITED_KEY_JCE_REQUIRED = "unlimited_key_jce_required"; | 0 |
return new OfBuilder("FullJoin").of(left, right); | 0 |
public class Device { | 0 |
* @deprecated (4.2) use {@link #NFileEntity(File, ContentType, boolean)}
* @deprecated (4.2) use {@link #NFileEntity(File, ContentType)}
* @deprecated (4.2) use {@link #close()} | 0 |
List<String> errorMessages = new ArrayList<>(); | 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 ma... | 0 |
CommandSessionImpl session = (CommandSessionImpl) createSession(System.in,
System.out, System.err); | 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 |
if (env.getAuthorizations().equals(AUTHS)) | 0 |
import static org.ops4j.pax.exam.CoreOptions.felix;
systemPackages("org.apache.felix.karaf.jaas.boot;version=1.99"),
equinox(), felix() | 0 |
if (baseStr == null)
return parseURL(urlStr);
if (baseURL == null)
return parseURL(urlStr);
| 0 |
protected static class Pair<L,R> {
protected L left;
protected R right;
public Pair(L left, R right) {
this.left = left;
this.right = right;
}
} | 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 |
/** Collection of tst utility classes. */ | 0 |
import org.apache.hc.core5.util.Args; | 1 |
runTest(Map.of("executor", "E1"), "E1", "E1");
runTest(Map.of("single_executor", "E2"), "E2", dname);
runTest(Map.of("multi_executor", "E3"), dname, "E3");
runTest(Map.of("executor", "E1", "single_executor", "E2"), "E2", "E1");
runTest(Map.of("executor", "E1", "multi_executor", "E3"), "E1", "E3");
... | 0 |
private String stackName;
private String stackVersion;
public String getStackName() {
return stackName;
}
public void setStackName(String stackName) {
this.stackName = stackName;
}
public String getStackVersion() {
return stackVersion;
}
public void setStackVersion(String stackVersion) ... | 0 |
private static Logger LOG = Logger.getLogger(ExecutorHub.class.getName()); | 0 |
import org.apache.commons.logging.Log;
import org.apache.commons.logging.impl.NoOpLog;
/** Stores the logger.*/
private Log log;
/**
* Creates a new instance of <code>AbstractConfiguration</code>.
*/
protected AbstractConfiguration()
{
setLogger(null);
}
* Returns th... | 0 |
if (!nextObjectSet && !setNextObject()) {
throw new NoSuchElementException(); | 0 |
* Test {@link AlertDefinitionHash#isHashCached(String,String)}. | 0 |
private static class MyWatcher implements Watcher {
| 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/test/org/apache/commons/jxpath/Attic/TestFunctions.java,v 1.2 2002/04/10 03:40:21 dmitri Exp $
* $Revision: 1.2 $
* $Date: 2002/04/10 03:40:21 $
* @version $Revision: 1.2 $ $Date: 2002/04/10 03:40:21 $
public TestF... | 0 |
/*
* Copyright 1999-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 ap... | 0 |
new LocalizableSupport(BUNDLE_CLASSNAME, Main.class.getClassLoader()); | 1 |
package aQute.bnd.osgi;
import aQute.bnd.header.*; | 0 |
import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.inprocess.InProcessChannelBuilder;
import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.stub.StreamObserver; | 0 |
final JavaRDD<SparkElement> input = (JavaRDD) context.getSingleInput(operator);
JavaPairRDD<Integer, SparkElement> pairs = input.mapToPair(
private static class TupleByPartition
implements PairFunction<SparkElement, Integer, SparkElement> {
public Tuple2<Integer, SparkElement> call(SparkElement ... | 0 |
public String usage() {
return "jar <jar> [<main class>] args";
}
@Override
public String description() {
return "Run Java <main class> in <jar> using Accumulo classpath";
}
| 0 |
*
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
import org.apache.commons.vfs.FileName;
* @version $Revision: 1.3 $ $Date: 2003/02/12 02:05:19 $
super( scheme, hostName, port, userInfo, path );
/** Returns the default port for this file name. */
public String getDefaultPort()
{
return "21";
}
/**
* Factory method for creat... | 0 |
public final ServiceManager serviceManager;
public final Context context;
public final Logger logger;
public final RoleManager roleManager;
public final LoggerManager loggerManager;
private final ClassLoader classLoader;
public ComponentEnvironment(ClassLoader classLoader, Logger logger, Rol... | 0 |
package org.apache.atlas.bridge.hivelineage.hook;
import org.apache.atlas.bridge.hivelineage.hook.HiveLineage.CreateColumns;
import org.apache.atlas.bridge.hivelineage.hook.HiveLineage.GroupBy;
import org.apache.atlas.bridge.hivelineage.hook.HiveLineage.QueryColumns;
import org.apache.atlas.bridge.hivelineage.hook.Hive... | 0 |
final HttpRoutedConnection conn = (HttpRoutedConnection) context.getAttribute(
final HttpRoute route = conn.getRoute();
final AuthState authState = (AuthState) context.getAttribute( | 0 |
package org.apache.http.nio.impl.reactor; | 0 |
// Add some splits to make the server's life easier
conn.tableOperations().addSplits(tableName, splits);
log.debug("created " + splits.size() + " splits on " + tableName); | 0 |
package org.apache.accumulo.examples.simple.dirlist;
import org.apache.accumulo.examples.simple.filedata.FileDataQuery; | 0 |
Set<SubResourceDefinition> setChildren = new HashSet<>(); | 1 |
* @version $Revision: 1.2 $ $Date: 2002/08/22 02:42:46 $
this.entryName = file.getName().getPath(); | 0 |
import java.util.Map;
import org.apache.accumulo.core.client.AccumuloSecurityException;
import org.apache.accumulo.core.conf.ConfigurationCopy;
private AccumuloConfiguration config;
config = new ConfigurationCopy(conn.instanceOperations().getSiteConfiguration());
String tablesDir = Constants.getTablesDir(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 |
import org.apache.felix.inventory.Format;
import org.apache.felix.inventory.InventoryPrinter;
props.put(InventoryPrinter.NAME, "duplicate_exports"); //$NON-NLS-1$
props.put(InventoryPrinter.TITLE, "Duplicate Exports"); //$NON-NLS-1$
props.put(InventoryPrinter.FORMAT, new String[] { Format.TEXT.t... | 0 |
* <li>cachable</li>
* "cachable" : {
* "description": "Indicates whether the generated keytab is allowed to be cached by the
* Ambari server (true) or not (false)",
* "type": "boolean"
* }
* A boolean value indicating whether the generated keytab is allo... | 0 |
* @version CVS $Id: CompositeContentAspect.java,v 1.4 2003/08/19 14:09:34 cziegeler Exp $
XMLUtils.startElement(handler, config.tagName); | 0 |
import org.apache.atlas.typesystem.types.TypeUtils.Pair;
/* (non-Javadoc)
* @see org.apache.atlas.services.MetadataService#deleteEntities(java.lang.String)
*/
@Override
public List<String> deleteEntities(List<String> deleteCandidateGuids) throws AtlasException {
ParamChecker.notEmpty(de... | 0 |
package aQute.lib.deployer.obr;
import org.xml.sax.SAXException;
public class StopParseException extends SAXException {
private static final long serialVersionUID = 1L;
} | 0 |
* @noinspection SynchronizeOnNonFinalField
/** Store for pipeline locks (optional) */
String storeRole = params.getParameter("store-role", Store.TRANSIENT_STORE);
// Get a lock object from the store
String lockKey = PIPELOCK_PREFIX + key;
Object lock;
loc... | 0 |
sb.append(", language='").append(language).append('\''); | 0 |
* @version CVS $Id: FormattingFloatConvertor.java,v 1.3 2004/05/06 14:59:44 bruno Exp $
public ConversionResult convertFromString(String value, Locale locale, Convertor.FormatCache formatCache) {
return new ConversionResult(decimalValue);
return new ConversionResult(new Float(decima... | 0 |
import org.apache.beam.sdk.values.BeamRecordType;
protected BeamKafkaTable(BeamRecordType beamRowType) {
super(beamRowType);
public BeamKafkaTable(BeamRecordType beamRowType, String bootstrapServers,
super(beamRowType);
public BeamKafkaTable(BeamRecordType beamRowType,
super(beamRowType); | 0 |
for (int fontSize : fontSizes) {
Font.PLAIN,
fontSize);
g.translate(width * 1.2, 0);
for (String fontFamily : fontFamilies) {
Font font = new Font(fontFamily, Font.PLAIN, 18);
double height = font.createGlyphVector(frc, fontFami... | 0 |
package org.apache.ambari.metrics.adservice.seriesgenerator; | 0 |
import org.apache.cocoon.spring.ResourceUtils; | 0 |
* <p> Note that, unless the behavior is overriden,
* atomic coders are presumed to be deterministic
* and all instances are considered equal.
public abstract class AtomicCoder<T> extends DeterministicStandardCoder<T> { | 0 |
if (this.credentials.getPrincipal().equals(principal)) { | 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... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.