Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
if (tm.isValid()) listTemporalMetrics.add(tm); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/IteratorCharIterator.java,v 1.2 2003/08/31 17:21:16 scolebourne Exp $
* any, must include the following acknowledgement:
* Alternately, this ackno... | 0 |
*/
public abstract class LoadInstruction extends LocalVariableInstruction implements PushInstruction {
/**
* Empty constructor needed for the Class.newInstance() statement in
* Instruction.readInstruction(). Not to be used otherwise.
* tag and length are defined in readInstruction and initFromFile, ... | 0 |
private SignatureValidator validator; | 1 |
ret = typeDefStore.createEntityDef(entityDef); | 0 |
public ModifiedMethod( final AbstractComponentManager componentManager, final String methodName,
final Class componentClass )
super( componentManager, methodName, methodName != null, componentClass );
protected String getMethodNamePrefix()
{
return "modified";
} | 0 |
package org.apache.commons.configuration;
* @version $Id: TestCompositeConfiguration.java,v 1.8 2004/06/04 12:58:53 ebourg Exp $
String[] values = cc.getStringArray("test.short");
assertEquals("Number of values before add is wrong!", 1, values.length);
assertEquals("Number of values is wrong!... | 0 |
/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package org.apache.accumulo.core.master.thrift;
import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;
public enum MasterState implements org.apache.thrift.TEnum {
INITIAL(0),
HAVE_L... | 1 |
import org.apache.aurora.gen.storage.SaveCronJob;
import org.apache.aurora.scheduler.storage.CronJobStore;
CronJobStore.Mutable,
private final CronJobStore.Mutable jobStore;
CronJobStore.Mutable jobStore,
write(Op.saveCronJob(new SaveCronJob(jobConfig.newBuilder())));
public CronJobStore.Mutable getCr... | 0 |
* @version CVS $Id: EPSelections.java,v 1.3 2003/09/05 07:31:40 cziegeler Exp $ | 0 |
package org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.string;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.BeamSqlFnExecutorTestBase;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlExpression;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.Be... | 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 |
* @see #getStringList(int, Charset)
* @see #getAvailableStrings()
* @param count The <U>exact</U> number of strings to read - can be zero
* @param count The <U>exact</U> number of strings to read - can be zero
* @see #getString(Charset)
* @param i The 16-bit value
* @param i The 64-... | 0 |
package org.apache.ambari.server.state.live;
* Initial state for the Job.
* State when the job is triggered on the cluster,
* Job failed to complete successfully | 0 |
public int hashCode() {
return Objects.hash(termGuid, relationGuid, description, expression, steward, source, status);
}
@Override | 0 |
DoFnRunnerWithMetrics(
String stepName,
DoFnRunner<InputT, OutputT> delegate,
Accumulator<SparkMetricsContainer> metricsAccum) {
try (Closeable ignored = MetricsEnvironment.scopedMetricsContainer(metricsContainer())) {
delegate.startBundle();
} catch (IOException e) {
throw new R... | 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 org.apache.felix.http.base.internal.handler.holder.FilterHolder;
import org.apache.felix.http.base.internal.registry.PathResolution;
PathResolution pr = registry.resolveServlet(path);
if ( pr == null )
{
// TODO what do we return?
return null;
}
Fil... | 0 |
* Copyright 2006-2010 The Apache Software Foundation.
import javax.xml.crypto.URIDereferencer;
private final URIDereferencer ud;
ud = new LocalHttpCacheURIDereferencer();
(file, new KeySelectors.KeyValueKeySelector(), ud);
(file, new KeySelectors.CollectionKeySelector(dir), ud);
(file, new K... | 0 |
mavenBundle("org.apache.felix", "org.apache.felix.configadmin", "1.8.0"),
protected void warn(String msg, Object ... params) {
if (LOG_LEVEL >= LogService.LOG_WARNING) {
log(LogService.LOG_WARNING, params.length > 0 ? String.format(msg, params) : msg);
}
protected void info(String msg, Ob... | 0 |
private final String strNow = AtlasBaseTypeDef.getDateFormatter().format(now); | 0 |
* @version $Id$ | 0 |
Optional.absent());
Optional.absent(),
Optional.absent());
Optional.absent(),
Optional.absent()); | 0 |
import org.apache.felix.sigil.eclipse.ui.actions.RefreshRepositoryAction;
new RefreshRepositoryAction(rep).run(); | 0 |
Provider<EntityManager> m_entityManagerProvider; | 0 |
* @throws NullPointerException - if hostname is {@code}null{@code} | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/io/CharArrayWriter.java,v 1.6 2006/03/14 01:20:23 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 use... | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s.
class ReduceByKeyTranslator implements OperatorTranslator<ReduceByKey> {
// final MapElements<IN, KV<KEY, VALUE>> extractor = MapElements
// .into(TypeUtils.kvOf(keyType, valueType))
// .via(e -> KV.of(keyExtractor.apply(e), valueExtractor.apply(e)));
// ext... | 0 |
if (task.getPackagesSize() > 0) { | 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 m... | 0 |
* Copyright 1999-2006 The Apache Software Foundation | 0 |
request.addHeader(new Header(
HTTP.EXPECT_DIRECTIVE, HTTP.EXPECT_CONTINUE, true)); | 0 |
@SuppressWarnings("unchecked") | 0 |
/**
* Update classification(s)
*/
void updateClassifications(String guid, List<AtlasClassification> classifications) throws AtlasBaseException;
| 0 |
log.warn("Ignoring property {} it is null, an invalid format, or not capable of being changed in zookeeper", property); | 0 |
* Tests whether all child builders can be obtained.
*/
@Test
public void testGetChildBuilders() throws ConfigurationException
{
builder.configure(new FileBasedBuilderParametersImpl()
.setFile(TEST_FILE));
builder.getConfiguration();
Collection<ConfigurationB... | 0 |
* Copyright 2002,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 applic... | 0 |
/**
* TODO move this and other final static / constants into a constants class ?
*/
private static final String LINE_SEPARATOR = System.getProperty("line.separator");
try {
} catch ( NoSuchMethodException e ) {
} catch ( IllegalAccessException e ) {
} ca... | 0 |
* Abstract {@link ContentEncoder} that serves as a base for all content
*
final WritableByteChannel channel,
}
}
| 0 |
import static org.easymock.EasyMock.eq;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
commandparams.put(KerberosServerAction.DATA_DIRECTORY, createTestKeytabData(agentCommandsPublisher, false).getAbsolutePath());
commandparams.put(KerberosServerAction.DATA_DIRECT... | 0 |
String schema = AvroSource.readMetadataFromFile(fileMetadata.resourceId()).getSchemaString();
// Add "" to the schema to make sure it is not interned.
AvroSource<GenericRecord> sourceA = AvroSource.from(filename).withSchema("" + schema);
AvroSource<GenericRecord> sourceB = AvroSource.from(filename).with... | 0 |
* Default implementation of an {@link HttpRoutePlanner}. This implementation
* is based on {@link org.apache.http.conn.params.ConnRoutePNames parameters}.
* It will not make use of any Java system properties, nor of system or
* browser proxy settings.
* <p>
* The following parameters can be used to customize th... | 0 |
@DefaultAnnotation(NonNull.class)
import edu.umd.cs.findbugs.annotations.DefaultAnnotation;
import edu.umd.cs.findbugs.annotations.NonNull; | 0 |
public boolean accept(File dir, String name) {
public boolean accept(File dir, String name) { | 0 |
sb.append("{" + " clusterName=").append(clusterName)
.append(", serviceName=").append(serviceName)
.append(", componentName=").append(componentName)
.append(", hostname=").append(hostname)
.append(", desiredState=").append(desiredState)
.append(", desiredStackId=").append(desiredStackI... | 0 |
PartialNiceMockBinder.newBuilder().addClustersBinding(mockAmbariManagementController).addLdapBindings().build().configure(binder());
.addLdapBindings().build().configure(binder()); | 0 |
Util.deepCopier(); | 0 |
conn.tableOperations().clone(tableName, tableName + "_clone", true, new HashMap<>(), new HashSet<>());
conn.tableOperations().clone(tableName, tableName + "_clone", true, new HashMap<>(), new HashSet<>()); | 0 |
protected final Map<HttpRoute, RouteSpecificPool> routeToPool;
protected Map<HttpRoute, RouteSpecificPool> createRouteToPoolMap() {
return new HashMap<HttpRoute, RouteSpecificPool>();
protected RouteSpecificPool newRouteSpecificPool(HttpRoute route) {
protected RouteSpecificPool getRoutePool(Htt... | 0 |
* Returns the index of the first element in the specified iterable that
* matches the given predicate.
* <p>
* A <code>null</code> or empty iterable returns -1.
*
* @param <E> the element type
* @param iterable the iterable to search, may be null
* @param predicate the predicat... | 0 |
import org.apache.accumulo.server.ServerContext;
private final ServerContext context;
NamespaceConfWatcher(ServerContext context) {
this.context = context;
namespacesPrefix = context.getZooKeeperRoot() + Constants.ZNAMESPACES + "/";
scf = new ServerConfigurationFactory(context);
ServerConfigur... | 0 |
KinesisReaderCheckpoint generate(SimplifiedKinesisClient client)
throws TransientKinesisException; | 0 |
final long newExpiry; | 0 |
*
*
*
*
*
* | 1 |
package org.apache.beam.sdk.coders;
import org.apache.beam.sdk.testing.CoderProperties;
import org.apache.beam.sdk.util.CoderUtils;
* {@link org.apache.beam.sdk.coders.PrintBase64Encodings}. | 0 |
log.warn("Failed to load table balancer class " + clazzName + " for table " + table, e);
log.info("Loaded class " + clazzName + " for table " + table);
log.warn("Failed to load table balancer class " + clazzName + " for table " + table, e);
tops = configuration.getInstance().getConnect... | 0 |
CacheEntry ce = cache.getBlock(block.blockName);
assertTrue(ce != null);
assertEquals(ce.getBuffer().length, block.buf.length);
CacheEntry ce = cache.getBlock(block.blockName);
assertTrue(ce != null);
assertEquals(ce.getBuffer().length, block.buf.length);
assertEquals(cache.get... | 0 |
? nullMethod.invoke(this, (Object[]) null) | 0 |
ZooReaderWriter.getInstance().recursiveDelete(tserversPath + "/" + child,
NodeMissingPolicy.SKIP);
private static void zapDirectory(IZooReaderWriter zoo, String path, Opts opts)
throws KeeperException, InterruptedException { | 0 |
additionalInputs.put(sideInput.getTagInternal(), sideInput.getPCollection());
additionalInputs.put(sideInput.getTagInternal(), sideInput.getPCollection()); | 0 |
import java.io.ByteArrayOutputStream;
public void testUtf() throws Exception {
int chunk=1<<16; int j=0;
ByteArrayOutputStream charByCharOs=new ByteArrayOutputStream();
ByteArrayOutputStream strOs=new ByteArrayOutputStream();
System.out.println("DDD"+chunk);
int ch=(chunk*j)+i;
if (ch==0xDBFF) {
c... | 0 |
import com.google.common.base.Optional;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.SettableFuture;
import org.apache.aurora.scheduler.mesos.DriverFactory;
import org.apache.mesos.Protos;
import static org.apache.mesos.Protos.FrameworkInfo;
public class FakeMaster impleme... | 0 |
import org.junit.AfterClass;
import org.junit.BeforeClass;
private static Injector injector;
private static Provider<EntityManager> entityManagerProvider = createStrictMock(Provider.class);
private static EntityManager entityManager = createNiceMock(EntityManager.class);
private static UpgradeCatalogHelper upgr... | 0 |
tasks = new LinkedList(); | 0 |
this._x509childNodes = XMLUtils.selectDsNodes(element.getFirstChild(), | 0 |
@Override
protected String[] getProvidedServices()
return new String[] { ComponentFactory.class.getName() }; | 0 |
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (obj == this) {
return true;
}
if (! (obj instanceof CustomCommandDefinition)) {
re... | 0 |
private Object collect(Decoder isr, @SuppressWarnings("unused") char close) throws Exception { | 0 |
throws Exception {
public void testUpgradeSpecificHandling() throws Exception {
public void testComponentUpgradeCompleteReport() throws Exception {
public void testComponentUpgradeFailReport() throws Exception {
public void testComponentUpgradeInProgressReport() throws Exception { | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/SetRootRule.java,v 1.2 2002/01/11 01:22:13 sanders Exp $
* $Revision: 1.2 $
* $Date: 2002/01/11 01:22:13 $
* @version $Revision: 1.2 $ $Date: 2002/01/11 01:22:13 $
* Construct a ... | 0 |
log.error(entry.message, entry.location, entry.lineNumber, entry.columnNumber);
log.warn(entry.message, entry.location, entry.lineNumber, entry.columnNumber);
log.error(entry.message, entry.location, entry.lineNumber, entry.columnNumber);
log.warn(entry.me... | 0 |
* @version CVS $Id: CompositeLayoutImpl.java,v 1.3 2003/11/15 04:21:30 joerg Exp $
* @param index index for the position inside the list
* @param item item to add
* @param item item to add | 0 |
Capture<List<DBAccessor.DBColumnInfo>> capturedViewUrlColums = EasyMock.newCapture();
dbAccessor.createTable(eq(UpgradeCatalog240.VIEWURL_TABLE), capture(capturedViewUrlColums),eq("url_id"));
expect(dbAccessor.getConnection()).andReturn(connection);
expect(connection.createStatement()).andReturn(stateme... | 0 |
import org.apache.hadoop.metrics2.sink.timeline.Precision; | 0 |
package org.apache.commons.net.smtp;
| 0 |
* @version $Revision$ | 1 |
import org.junit.After;
import org.junit.Before;
@Override
@Before
public void setUp() throws Exception
@After
public void tearDown() throws Exception
@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 |
public static final String WEB_CONSOLE_CATEGORY = "Status"; //$NON-NLS-1$ | 0 |
provider.deleteHosts(requests, false, false);
}
public static DeleteStatusMetaData deleteHosts(AmbariManagementController controller,
Set<HostRequest> requests, boolean dryRun, boolean forceDelete)
throws AmbariException {
TopologyManager topologyManag... | 0 |
import org.apache.aurora.scheduler.cron.CronException;
import org.apache.aurora.scheduler.cron.CronJobManager;
import org.apache.aurora.scheduler.cron.CrontabEntry;
import org.apache.aurora.scheduler.cron.SanitizedCronJob;
private static final JobConfiguration CRON_JOB = makeJob().setCronSchedule("* * * * *");
cr... | 0 |
import java.net.MalformedURLException;
* @version CVS $Revision: 1.17 $ $Date: 2004/07/02 09:49:14 $
final Document confDoc = DocumentCache.getDocument(configuration, null);
String systemURI = null;
try {
systemURI = docFile.toURL().toExternalForm();
... | 0 |
import org.junit.Assert;
boolean passed = false;
for (int i = 0; i < 50 && !passed; i++) {
try {
exec("getauths", true, "foo", true);
exec("getauths", true, "bar", true);
passed = true;
} catch (Exception e) {
UtilWaitThread.sleep(300);
}
}
Assert.assert... | 0 |
import com.twitter.mesos.scheduler.storage.StorageModule;
install(new StorageModule()); | 0 |
package org.apache.beam.runners.spark;
import static org.apache.beam.runners.spark.io.hadoop.ShardNameBuilder.getOutputDirectory;
import static org.apache.beam.runners.spark.io.hadoop.ShardNameBuilder.getOutputFilePrefix;
import static org.apache.beam.runners.spark.io.hadoop.ShardNameBuilder.getOutputFileTemplate;
imp... | 0 |
package org.apache.beam.sdk.extensions.sql.mock;
import org.apache.beam.sdk.extensions.sql.schema.BaseBeamTable;
import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRow;
import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRowType; | 0 |
import java.util.LinkedHashMap;
Map<String, Layout> mergedLayouts = new LinkedHashMap<String, Layout>();
Map<String, WidgetEntry> mergedWidgets = new LinkedHashMap<String, WidgetEntry>();
} | 0 |
import org.apache.batik.util.CSSConstants; | 0 |
import org.apache.beam.model.fnexecution.v1.BeamFnApi;
import org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleRequest;
import org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest;
import org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest.Builder;
import org.apache.beam.model.fnexecution.v1.B... | 0 |
import org.apache.accumulo.core.security.thrift.SecurityErrorCode;
import org.apache.accumulo.core.security.tokens.AuthenticationToken; | 0 |
* @deprecated since 1.5, use {@link #getConnector(Properties)}
@Deprecated
* @deprecated since 1.5, use {@link #getConnector(Properties)}
@Deprecated
* @deprecated since 1.5, use {@link #getConnector(Properties)}
@Deprecated
/**
* @param principal
* The principal the authentication to... | 0 |
import org.apache.accumulo.core.util.HostAndPort; | 1 |
import com.google.common.collect.Iterators;
Iterators.size(((Iterable<?>) scanner).iterator());
Iterators.size(((Iterable<?>) scanner).iterator()); | 0 |
* A simple implementation of the <code>TestReportProcessor</code> interface
* that prints out the <code>TestReport</code> to the standard output.
* Sets the <code>PrintWriter</code> this processor should use | 0 |
Rectangle2D bounds = getBounds2D();
if (outputRgn.intersects(bounds) == false)
return new Rectangle2D.Float();
// Intersect with output region
outputRgn = outputRgn.createIntersection(bounds);
Rectangle2D bounds = getBounds2D();
if... | 0 |
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Dictionary;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.StringTokenizer;
* @return A new... | 0 |
package org.apache.commons.digester3.plugins.strategies; | 1 |
import java.util.Arrays;
this.keepRegion = this.boundary.length;
public byte readByte() throws IOException {
if(notifier != null) {
notifier.noteBytesRead(tail);
}
if (makeAvailable() == 0) {
tail = pad;
... | 0 |
import org.osgi.service.http.whiteboard.Preprocessor;
this.filterReg = context.registerService(Preprocessor.class.getName(), filter, properties); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.