Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import javax.inject.Inject;
@Inject
private Monitor monitor;
Map<HostAndPort,ScanStats> entry = monitor.getScans();
for (TabletServerStatus tserverInfo : monitor.getMmi().getTServerInfo()) { | 0 |
import java.io.IOException;
import java.util.Arrays; | 0 |
import java.util.Iterator;
import java.util.Properties;
return replace(value, null, settings);
}
/**
* Replace all property references in the string with the current value
* and return it.
*/
public static String replace(String value, Properties properties, Settings settings) {
... | 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 static org.junit.Assert.assertFalse;
/**
* When a service with components that don't advertise their versions
* is added to a cluster, all non-CURRENT host versions on
* all affected hosts (where host new components are installed)
* should NOT transition to OUT_OF_SYNC state
*/
@Test
public... | 0 |
import java.util.List;
public List<Triple<String, String, Integer>> getUnorderedOutput() {
return asList(
Triple.of("one", "one-999", 999),
Triple.of("two", "two", 10),
Triple.of("three", "3-three", 2));
protected List<Item> getInput() {
return asList(
... | 0 |
package org.osgi.util.converter; | 0 |
import java.util.concurrent.atomic.AtomicLong;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.conn.ManagedHttpClientConnection;
public class ManagedHttpClientConnectionFactory implements HttpConnectionFactory<ManagedHttpClientConnection> {
private static... | 0 |
if (hca.isOpen() && !hca.isMarkedReusable()) {
LOG.debug
("Released connection open but not marked reusable."); | 0 |
* @return The data source.
* @return The user name.
* @return The user password. | 0 |
/*******************************************************************************
* Copyright (C) 2014 Google Inc.
*
* 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.... | 0 |
DefaultDelayedActions(LeadingOptions leadingOptions, ScheduledExecutorService executorService) { | 0 |
import java.security.SecureRandom;
Random rand = new SecureRandom();
Random rand = new SecureRandom();
Random rand = new SecureRandom();
Random rand = new SecureRandom(); | 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 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 |
@Table(name = "confgroupclusterconfigmapping") | 0 |
String service = cluster.getServiceByConfigType(configType); | 0 |
import java.util.Arrays;
import org.apache.accumulo.server.cli.ClientOpts;
import com.beust.jcommander.Parameter;
static class Opts extends ClientOpts {
@Parameter(names="--old", description="old zookeeper password", password=true, hidden=true)
String oldPass;
@Parameter(names="--new", description="new z... | 0 |
public Class<?>[] getExceptions() { | 0 |
PCollectionView<WriteT> output = transform.getView();
// EVALUATORS.put(View.AsSingleton.class, viewAsSingleton());
// EVALUATORS.put(View.AsIterable.class, viewAsIter()); | 0 |
target = buildContext.newFileOutputStream( targetFile ); | 0 |
import java.util.Collection;
Collection<IPath> getSourcePaths();
Collection<String> getClasspathEntrys();
Collection<String> getPackages(); | 0 |
return new TestSuite(LazyDynaClassTestCase.class); | 0 |
import org.osgi.service.converter.ConversionException;
private volatile Object defaultValue;
private volatile boolean hasDefault;
defaultValue = defVal;
hasDefault = true;
Function<Object, Object> f = classRules.get(
new TypePair(object.getClas... | 0 |
import static java.util.Objects.requireNonNull;
requireNonNull(conf); | 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... | 0 |
PublicKey key = kp.getPublic();
log.debug("addPublicKeyIdentity({}) {}-{}",
this, KeyUtils.getKeyType(key), KeyUtils.getFingerPrint(key));
return resolveEffectiveProvider(ScpFileOpener.class, scpOpener, getFactoryManager().getScpFileOpener());
if (log.is... | 0 |
*/
return new ImageCacheEntry(checksum, data, SIGN_POUND + id); // <<<<<<<<<< error ??
String id = ctx.idGenerator.generateID(ID_PREFIX_IMAGE_DEFS);
try {
try {
return new ImageCacheEntry(checksum, imageFile, imageFile.getName... | 0 |
V create( K key ) | 0 |
/** The ZipEntry. */
protected ZipEntry entry;
* Attaches a child.
* @param childName The name of the child.
* @throws FileSystemException if an error occurs. | 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 ma... | 0 |
import org.apache.beam.model.fnexecution.v1.BeamFnApi;
import org.apache.beam.model.fnexecution.v1.BeamFnLoggingGrpc; | 0 |
org.apache.commons.logging.LogFactory.getLog(JavaUtils.class); | 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 |
int noRead = this.session.channel().read(getBuffer());
if (noRead == -1) {
this.closed = true;
}
if (noRead != 0) {
this.session.clearEvent(EventMask.READ);
this.mutex.notifyAll();
}
... | 0 |
"{ if (0) 1; else 2; }",
"{ if (0) { if (false) 1 else -3 } else 2; }"
JexlExpression e304 = jexlEngine.createExpression("overview.limit.var");
Object value = e304.evaluate(context);
value = e304.evaluate(context);
assertEquals(42, value);
String allkw = ... | 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 |
/**
* 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 |
/*
* 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.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; | 0 |
private void updateServiceComponentDesiredStateTableDDL() throws SQLException {
private void updateViewInstanceTable() throws SQLException { | 0 |
new ArrayList<AtlasStructDef.AtlasConstraintDef>() {{
add(new AtlasStructDef.AtlasConstraintDef(
AtlasConstraintDef.CONSTRAINT_TYPE_OWNED_REF));
}}
)); | 0 |
import org.apache.hc.core5.util.TimeValue;
void closeIdle(TimeValue idleTime); | 0 |
*
*
package org.apache.commons.vfs2.provider.zip.test;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystemManager;
import org.apache.commons.vfs2.impl.DefaultFileSystemManager;
import org.apache.commons.vfs2.provider.zip.ZipFileProvider;
import org.apache.commons.vfs2.test.AbstractPro... | 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 |
channel.position(offset);
long size = channel.size();
long curPos = channel.position();
long available = size - curPos;
if (available <= 0) {
return -1;
}
int bufLen = length;
if (bufLen > available) {
bufLen = (int) available; ... | 0 |
public synchronized boolean isEmpty() {
return this.set.isEmpty();
}
| 0 |
Map<String,String> props = new HashMap<>(); | 0 |
*
*
*/
* | 0 |
private Long clusterVersionId = null;
/**
* @param id the cluster version id for the request
*/
public void setClusterVersionId(Long id) {
clusterVersionId = id;
}
/**
* @return the cluster version id for the request
*/
public Long getClusterVersionId() {
return clusterVersionId;
}
| 0 |
/** The logger.*/
private static Log log = LogFactory.getLog(ConfigurationDynaClass.class);
/** Stores the associated configuration.*/
if (log.isTraceEnabled())
{
log.trace("ConfigurationDynaClass(" + configuration + ")");
} | 0 |
import org.apache.beam.sdk.testing.TestPipeline;
TestPipeline.create(),
private static class NotSerializableClass { | 0 |
private final PerKeyCombineFn<? super K, ? super InputT, ?, OutputT> fn;
builder.add(DisplayData.item("fanout", hotKeyFanout)
.withLabel("Key Fanout Size"));
private final PerKeyCombineFn<? super K, ? super InputT, ?, OutputT> fn;
builder.include(PerKeyWithHotKeyF... | 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 |
throw new AccumuloException(new IllegalArgumentException("iterator name conflict for " + setting.getName() + ": " + property.getKey() + "=" + property.getValue()));
throw new AccumuloException(new IllegalArgumentException("iterator priority conflict: " + property.getKey() + "=" + property.getV... | 0 |
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class YamlWriterFactory implements WriterFactory, WriterFactory.YamlWriterFactory {
private final Map<String, List<String>> orderingRules = new HashMap<>();
@Override
public YamlWriterFactory orderBy(String path, List<String> ke... | 0 |
public void start() {
hostObject.handleEvent(new HostStatusUpdatesReceivedEvent(hostname, now));
null));
else if (scHost.getState().equals(State.STARTING) && null != report.getConfigTags()) {
scHost.updateActualConfigs(report.getConfigTags());
}
... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Attic/SoftRefHashMap.java,v 1.7 2002/11/24 17:30:15 scolebourne Exp $
* $Revision: 1.7 $
* $Date: 2002/11/24 17:30:15 $
i.remove(); | 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 |
* Returns 'a'.
*/
public String getLocalName() {
return SVG_A_TAG;
}
/** | 0 |
MessageConstraints(final int maxLineLength, final int maxHeaderCount) {
public static MessageConstraints lineLen(final int max) {
public Builder setMaxLineLength(final int maxLineLength) {
public Builder setMaxHeaderCount(final int maxHeaderCount) { | 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 |
/*
* 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... | 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 |
final ByteBuffer src = ByteBuffer.wrap(buf.array(), 0, buf.length());
final ByteBuffer src = ByteBuffer.wrap(buf.array(), 0, buf.length()); | 0 |
package org.cauldron.sigil.obr;
import org.apache.felix.sigil.repository.IBundleRepository;
import org.apache.felix.sigil.repository.IRepositoryProvider;
import org.apache.felix.sigil.repository.RepositoryException; | 0 |
void persistEntities(ClusterServiceEntity serviceEntity) { | 0 |
private static final long serialVersionUID = 0;
private static final long serialVersionUID = 0;
private static final long serialVersionUID = 0;
private static final long serialVersionUID = 0;
| 0 |
import org.apache.accumulo.core.conf.ConfigurationTypeHelper;
limit = ConfigurationTypeHelper.getFixedMemoryAsBytes(options.get(SIZE_LIMIT_OPT)); | 0 |
import org.apache.beam.sdk.options.ValueProvider;
ValueProvider<String> filePatternOrSpec =
((FileBasedSource<?>) source).getFileOrPatternSpecProvider();
if (filePatternOrSpec.isAccessible()) {
context.getPipelineOptions()
.getPathValidator()
.validateIn... | 0 |
package org.apache.ambari.server.stack.upgrade; | 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... | 0 |
super(ancestor, simple);
return SAC_CHILD_SELECTOR;
SimpleSelector s = getSimpleSelector();
if (s.getSelectorType() == SAC_PSEUDO_ELEMENT_SELECTOR) {
return "" + getAncestorSelector() + s;
}
return getAncestorSelector() + " > " + s; | 1 |
private InetAddress __reportActiveExternalHost; // overrides __activeExternalHost in EPRT/PORT commands
__reportActiveExternalHost = null;
if (!FTPReply.isPositiveCompletion(eprt(getReportHostAddress(), server.getLocalPort()))) {
if (!FTPReply.isPositiveCompletion(po... | 0 |
*
* @param <T> the type of values in the graph
*
* @param <T> the type of the nodes
*
* @param rootElements the set of root elements to traverse
* and build up the DAG from
*
* @return the dag of the given root elements
*
* @param <T> the type of the elements/values in the new DAG
... | 0 |
* @version $Id: FTPFileList.java,v 1.2 2002/04/30 13:59:42 brekke Exp $
/**
* storage for the raw lines of input read from the FTP server
*/
/**
* the FTPFileEntryParser assigned to be used with this lister
*/
/**
* private status code for an empty directory
*/
* The only... | 0 |
if (!filePath.startsWith("/") && !filePath.startsWith(".")) {
filePath = "/" + filePath; // some servers strip double slashes in URL
}
| 0 |
return new Locale( locale.getLanguage(), "" ); //$NON-NLS-1$ | 0 |
import org.apache.ambari.server.serveraction.kerberos.stageutils.KerberosKeytabController;
KerberosKeytabController.setKerberosHelper(injector.getInstance(KerberosHelper.class)); | 0 |
Map<String,String> props = new HashMap<>();
Map<String,String> props = new HashMap<>(); | 0 |
* <li>{@link org.apache.http.params.CoreProtocolPNames#STRICT_TRANSFER_ENCODING}</li>
* <li>{@link org.apache.http.params.CoreProtocolPNames#HTTP_ELEMENT_CHARSET}</li>
* <li>{@link org.apache.http.params.CoreProtocolPNames#USE_EXPECT_CONTINUE}</li>
* <li>{@link org.apache.http.params.CoreProtocolPNames#WAIT_FOR... | 0 |
import org.apache.beam.model.pipeline.v1.MetricsApi.MonitoringInfo; | 0 |
/**
* @version $Id$
*/ | 0 |
public SWITCH(final int[] match, final InstructionHandle[] targets, final InstructionHandle target, final int max_gap) {
public SWITCH(final int[] match, final InstructionHandle[] targets, final InstructionHandle target) {
private void fillup( final int max_gap, final InstructionHandle target ) {
privat... | 0 |
package org.apache.beam.sdk.transforms.windowing;
import org.apache.beam.sdk.transforms.windowing.Trigger.OnceTrigger;
import org.apache.beam.sdk.util.ExecutableTrigger;
import org.apache.beam.sdk.util.TimeDomain;
* {@link org.apache.beam.sdk.io.PubsubIO} when using arrival times as event times), the
* {@link org.ap... | 0 |
return getRawCertificate(resource);
XMLSignatureInput resource = resRes.resolve(uri, BaseURI);
if (transforms != null) {
if (log.isDebugEnabled()) {
log.debug("We have Transforms");
}
resource = transforms.performTransforms(resource);
... | 0 |
public AlreadySelectedException(final String message)
public AlreadySelectedException(final OptionGroup group, final Option option) | 0 |
import org.junit.Assert; | 0 |
try (BatchWriter bw = primaryclient.createBatchWriter(primaryTable1)) {
for (int rows = 0; rows < 2500; rows++) {
Mutation m = new Mutation(primaryTable1 + rows);
for (int cols = 0; cols < 100; cols++) {
String value = Integer.toString(cols);
m.put(v... | 0 |
* It is dispatching requests to the http implementation.
* It does not start the http service, this needs to be done
* through the {@link HttpServiceController}.
private static final long serialVersionUID = -7692620012572476116L;
| 0 |
import org.apache.aurora.common.thrift.Status;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.data.ACL; | 0 |
private static final org.slf4j.Logger LOG = | 1 |
private static Set<String> propertyIds = new HashSet<>();
private static Map<Resource.Type, String> keyPropertyIds = new HashMap<>();
Map<Long, ClusterEntity> resourceEntities = new HashMap<>(); | 0 |
public Soundex(final char[] mapping) {
public Soundex(final String mapping) {
public int difference(final String s1, final String s2) throws EncoderException {
public Object encode(final Object obj) throws EncoderException {
public String encode(final String str) {
private char getMappingCode(fi... | 1 |
c.getValue() != null && c.getValue().length() > 0) {
hConstants.put(c.getName(), c.getValue());
} | 0 |
private static final Logger LOG = LoggerFactory.getLogger(HostOrderGrouping.class); | 1 |
@Override
public Range apply(Pair<Integer, Integer> range) { | 0 |
import java.awt.Color;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.geom.AffineTransform;
import java.awt.geom.NoninvertibleTransformException;
import java.awt.geom.Rectangle2D;
import java.awt.image.ColorModel; | 0 |
} // digits | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.