Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
requiresExecCmdDetails.put(host, new HashMap<>()); | 0 |
ClientContext context = new AccumuloServerContext(confFactory); | 0 |
* Test case for CForms's DynamicSelectionList datatype.
* @version CVS $Id: DynamicSelectionListTestCase.java,v 1.4 2004/03/11 02:56:32 joerg Exp $ | 0 |
public class ExerciseKafkaSource {
KafkaSource.Factory.class); | 0 |
setParameters(ps); | 0 |
/*
* Copyright 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 app... | 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 |
extends AbstractConnectionService
@Override
public AbstractServerSession getSession() {
return (AbstractServerSession) super.getSession();
} | 1 |
.withFetchSize(12) | 0 |
* <p> This is a convenient wrapper for
*
* <p> This uses reflection to invoke the method obtained from a call to
*
*
}
* <p>This uses reflection to invoke the method obtained from a call to
*
*
{
throw new NoSuchMethodException("No such accessible method:... | 0 |
private final long gracePeriod;
private final Object shutdownMutex;
this.gracePeriod = 500;
this.shutdownMutex = new Object();
for (int i = 0; i < this.dispatchers.length; i++) {
BaseIOReactor dispatcher = new BaseIOReactor(this.selectTimeout);
dispatcher.setExce... | 0 |
import org.apache.ambari.server.controller.internal.RequestResourceFilter;
Assert.assertEquals(null, ear.getCommandName());
Assert.assertEquals(1, ear.getResourceFilters().size());
RequestResourceFilter resourceFilter = ear.getResourceFilters().get(0);
Assert.assertEquals("NAGIOS", resourceFilter.getSe... | 0 |
Factory compFact = Utils.getFactoryByName(getContext(), "composite.requires.1");
fooProvider = Utils.getFactoryByName(getContext(), "COMPO-FooProviderType-1"); | 0 |
newInstance = this.getClass().getDeclaredConstructor().newInstance(); | 0 |
return CurrentWindowsCredentials.INSTANCE; | 0 |
public BaseRC4Cipher(int ivsize, int kdfSize, int keySize, int blkSize) {
super(ivsize, kdfSize, "ARCFOUR", keySize, "RC4", blkSize);
}
@Override
protected byte[] initializeIVData(Mode mode, byte[] iv, int reqLen) {
return iv; // not used in any way
protected javax.crypto.Cipher cr... | 0 |
* or more contributor license agreements. See the NOTICE file
* regarding copyright ownership. The ASF licenses this file
* with the License. You may obtain a copy of the License at
* KIND, either express or implied. See the License for the | 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 applicable law o... | 0 |
public void accept( final Visitor v ) { | 0 |
* @version CVS $Id$
public interface ElementProcessor { | 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 applicable law o... | 0 |
@Deprecated
@Override | 0 |
package org.apache.hc.core5.http.pool.io;
import org.apache.hc.core5.http.io.HttpClientConnection; | 1 |
package org.apache.commons.ognl.internal.entry;
import org.apache.commons.ognl.internal.CacheException; | 0 |
typeCategoriesToTypeNamesMap.put(DataTypes.TypeCategory.STRUCT, structDef.typeName); | 0 |
package org.apache.felix.bundlerepository.impl; | 0 |
import org.apache.ambari.server.state.ComponentInfo;
public class BlueprintValidatorImplTest {
@Mock(type = MockType.NICE)
private ComponentInfo dependencyComponentInfo;
expect(dependencyComponentInfo.isClient()).andReturn(true).anyTimes();
expect(stack.getComponentInfo("component3")).andReturn(dependencyC... | 0 |
this.getLogger().debug("Unable to load the configuraton", e); | 0 |
private Option mergeOptStartRow, mergeOptEndRow, verboseOpt, forceOpt, sizeOpt;
String tableName = OptUtil.configureTableOpt(cl, shellState);
o.addOption(OptUtil.tableOpt("table to be merged")); | 0 |
/** {@code BeamSqlExpression} for {@code =} operation. */
|| (leftValue != null
&& rightValue != null
&& leftValue.floatValue() == (rightValue).floatValue()); | 0 |
* Bridge class for the <feGaussianBlur> element.
* Constructs a new bridge for the <feGaussianBlur> element. | 0 |
* @see #getPixelUnitToMillimeter() | 0 |
* Cookie specification registry that can be used to obtain the corresponding
* cookie specification implementation for a given type of type or version of
* cookie.
public final class CookieSpecRegistry {
public final static CookieSpecRegistry DEFAULT = new CookieSpecRegistry();
public CookieSpecRegistry() ... | 0 |
super.populateDisplayData(builder); | 0 |
import org.apache.accumulo.server.metrics.Metrics;
abstract class TServerMetrics extends Metrics {
protected static final String TSERVER_NAME = "TabletServer";
protected TServerMetrics(String record) {
// this capitalization thing is just to preserve the capitalization difference between the
// "general"... | 0 |
write(new MutateWork.NoResult.Quiet() {
write(initializationLogic);
super.write(new MutateWork.NoResult<CodingException>() {
public synchronized <T, E extends Exception> T write(final MutateWork<T, E> work)
return super.write(work);
return super.write(new MutateWork<T, E>() {
return ... | 0 |
import org.apache.http.params.CoreConnectionPNames;
params.setIntParameter(CoreConnectionPNames.MAX_LINE_LENGTH, 0);
params.setIntParameter(CoreConnectionPNames.MAX_LINE_LENGTH, 15);
params.setIntParameter(CoreConnectionPNames.MAX_LINE_LENGTH, 0);
params.setIntParameter(CoreConnectionPNa... | 0 |
/*
* Copyright 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 appl... | 0 |
public ZooLock(String zookeepers, int timeInMillis, String scheme, byte[] auth, String path) {
this(new ZooCache(zookeepers, timeInMillis), ZooReaderWriter.getInstance(zookeepers, timeInMillis, scheme, auth), path); | 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 |
private Mutator<T> writer;
writer = new Mutator<>(spec, Mapper::saveAsync, "writes");
writer.mutate(c.element());
private Mutator<T> deleter;
deleter = new Mutator<>(spec, Mapper::deleteAsync, "deletes");
deleter.mutate(c.element());
private static class Mutator<T> { | 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 use... | 0 |
import org.apache.hadoop.metadata.repository.EntityNotFoundException;
} catch (EntityNotFoundException e) {
LOG.error("table entity not found for {}", tableName, e);
throw new WebApplicationException(
Servlets.getErrorResponse(e, Response.Status.NOT_FOUND));
}... | 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 |
private boolean secureValidation;
transformSpi.secureValidation = secureValidation;
public boolean isSecureValidation() {
return secureValidation;
}
public void setSecureValidation(boolean secureValidation) {
this.secureValidation = secureValidation;
}
| 0 |
import java.util.Map;
NamedResource resourceKey, PuttyKeyReader pubReader, PuttyKeyReader prvReader, Map<String, String> headers) | 0 |
* Copyright 2004,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 |
if (ranges.size() > 1) {
Collections.sort(ranges);
} | 0 |
import java.util.Properties;
public void setAccumuloConfigs(Job job) throws AccumuloException, AccumuloSecurityException {
final Properties clientProps = getClientProperties();
AccumuloInputFormat.configure().clientProperties(clientProps).table(tableName).auths(auths)
.store(job);
AccumuloOutputFo... | 0 |
import java.nio.charset.StandardCharsets;
byte correct[] = s.getBytes(StandardCharsets.UTF_8);
boolean equals = Arrays.equals(correct, a);
assertTrue(equals);
// 16bit chars against String.getBytes(StandardCharsets.UTF_8);
byte correct[] = str.getBytes(StandardCharsets.UTF_8)... | 0 |
hops = 1;
} else {
hops = proxyChain.length + 1;
}
result = this.proxyChain[hop];
} else {
result = this.targetHost;
}
return true;
}
return false;
}
cab.append('c');
... | 0 |
List<Object[]> list = new ArrayList<>();
addTests(list, KeyPairProvider.SSH_DSS, BuiltinSignatures.dsa, DSS_SIZES, DSSPublicKeyEntryDecoder.INSTANCE);
addTests(list, KeyPairProvider.SSH_RSA, BuiltinSignatures.rsa, RSA_SIZES, RSAPublicKeyDecoder.INSTANCE);
if (SecurityUtils.hasEcc()) {
... | 0 |
import org.apache.xml.security.samples.SampleUtils;
Element nscontext = SampleUtils.createDSctx(doc, "ds", | 0 |
import cz.seznam.euphoria.core.client.dataset.windowing.Windowing;
import cz.seznam.euphoria.core.client.dataset.windowing.WindowContext; | 0 |
default:
break; | 0 |
* @since 3.2
* @version $Id$ | 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 |
private Function<ClientBuilderImpl,T> builderFunction;
public ClientBuilderImpl(Function<ClientBuilderImpl,T> builderFunction) { | 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 |
* return <code>null</code> from a subsequent <code>get(Object)</code>, however
* This cannot be mandated due to backwards compatibility of this interface.
* This cannot be mandated due to backwards compatibility of this interface.
* Implementations typically return <code>null</code> from a subsequen... | 0 |
import org.apache.beam.sdk.values.RowType;
protected RowType rowType;
public BaseBeamTable(RowType rowType) {
this.rowType = rowType;
@Override public RowType getRowType() {
return rowType; | 0 |
package org.apache.beam.sdk.function; | 0 |
assertEquals("ParallelRead", createStep.getKind());
assertEquals("ParallelRead", createStep.getKind()); | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting; | 0 |
@Override
public int hashCode() {
return 0;
}
@Override
public boolean equals(Object obj) {
return obj instanceof TestHint;
}
@Override
public int hashCode() {
return 0;
}
@Override
public boolean equals(Object obj) {
return obj instanceof TestHint2... | 0 |
import java.util.Map;
private URL contextURL;
private Map properties;
private Map connections;
/*
* TODO It would probably be usefull to inherit context attribute from the
* surounding servlet context and also to be able to inject context
* attributes in the container
*/
... | 0 |
public class FormattingDecimalConvertorBuilder implements DecimalConvertorBuilder { | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverter.java,v 1.5 2003/10/09 20:41:41 rdonkin Exp $
* $Revision: 1.5 $
* $Date: 2003/10/09 20:41:41 $
* Alternately, this acknowledgement may appea... | 0 |
public class OffsetRange
implements Serializable, HasDefaultTracker<OffsetRange, OffsetRangeTracker> {
public OffsetRangeTracker newTracker() {
return new OffsetRangeTracker(this);
}
@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 ... | 1 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger LOG = LoggerFactory.getLogger(FlaggedZooKeeperConfig.class);
help = "DEPRECATED: Uses Apache Curator as the zookeeper client; otherwise a copy of Twitter "
private static final Arg<Boolean> USE_CURATOR = Arg.create(true);
... | 0 |
// Ignored | 0 |
package org.apache.cocoon.spring.configurator.impl; | 0 |
import java.util.logging.Level;
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("Instructing executor " + host + " to retain only tasks " + message);
} | 0 |
return this.attribHandlerMap.values().iterator(); | 0 |
* $HeadURL:https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/module-nio/src/test/java/org/apache/http/mockup/TestHttpClient.java $
* $Revision:575207 $
* $Date:2007-09-13 09:57:05 +0200 (Thu, 13 Sep 2007) $
if (this.thread != null) {
this.thread.join(500);
... | 0 |
this.args = (String[])aa.toArray(new String[aa.size()]); | 0 |
protected final NHttpMessageParser requestParser;
protected final NHttpMessageWriter responseWriter; | 0 |
* @version CVS $Id$
public interface LuceneXMLIndexer {
String ROLE = LuceneXMLIndexer.class.getName(); | 0 |
/**
* Safe object publishing is not required since we only care if the thread that set
* this field is equal to the thread also attempting to add a log entry.
*/
private Thread logEntryHandlerThread;
// only insert log records best effort.
if (Thread.currentThread() != logEntryHandler... | 0 |
* Copyright 1999-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 ... | 1 |
@Override | 0 |
* Parses and creates a new style-sheet.
* @param is The input source used to read the document.
* @param uri The base URI.
* @param media The target media of the style-sheet.
*/
public StyleSheet parseStyleSheet(InputSource is, URL uri, String media)
throws DOMException {
St... | 0 |
package org.apache.accumulo.core.client.impl; | 1 |
import org.apache.beam.sdk.options.PipelineOptions;
import org.apache.beam.sdk.options.PipelineOptionsFactory;
private final transient PipelineOptions options = PipelineOptionsFactory.create();
private final transient StateInternals stateInternals =
new StatefulParDoEvaluatorFactory<>(mockEvaluationContext,... | 0 |
package org.apache.ambari.server.agent; | 0 |
import com.twitter.aurora.scheduler.base.JobKeys;
private final Map<JobKey, JobUpdateConfiguration> configs = Maps.newConcurrentMap();
private JobKey key(JobKey jobKey) {
return JobKeys.assertValid(jobKey).deepCopy();
private JobKey key(JobUpdateConfiguration config) {
return key(config.getJobKey());
... | 0 |
import java.nio.charset.StandardCharsets;
return new String(v, StandardCharsets.UTF_8); | 0 |
return CredentialHelper.createSquelchError(getSysUserName(), getSysToken(), state.getInstance().getInstanceID());
return CredentialHelper.createSquelchError(getTabUserName(), getTabToken(), state.getInstance().getInstanceID());
}
public AuthenticationToken getSysToken() {
return new PasswordToken(get... | 0 |
thread.setDaemon( true ); | 0 |
import org.apache.http.HttpMessage;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
* Message parser base class.
private final SessionInputBuffer sessionBuffer;
private final int maxHeaderCount;
private final int maxLineLen;
public AbstractMessageParser(
... | 0 |
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.LOCATION;
import org.apache.accumulo.core.metadata.schema.Ample;
import org.apache.accumulo.core.metadata.schema.AmpleImpl;
import org.apache.accumulo.core.metadata.schema.TabletMetadata.Location;
import org.apache.accumulo.core.metadata.s... | 0 |
assertTrue(time == 15_000L - 1 || time == 25_000L - 1); | 0 |
return prefix + mangleMethodName(key);
}
static String mangleMethodName(String id) {
char[] array = id.toCharArray();
int out = 0;
boolean changed = false;
for (int i = 0; i < array.length; i++) {
if (match("$$", array, i) || match("__", array, i)) {
array[out++] = array[i++];
changed = true;
... | 0 |
import static java.util.Objects.requireNonNull;
return new Flow(
org.apache.beam.sdk.extensions.euphoria.core.client.flow.Flow.create(name, settings)); | 0 |
* @version $Revision: 1.16 $ $Date: 2004/04/12 12:01:38 $ | 0 |
* @param handler : handler.
public ProvidedServiceHandlerDescription(Handler handler) {
super(handler);
Element service = new Element("provides", null);
StringBuffer spec = new StringBuffer("[");
spec.append(m_providedServices[i].getServiceSpecification()[j])... | 0 |
import org.apache.commons.lang.BooleanUtils;
* @version CVS $Id: DatabaseCookieAuthenticatorAction.java,v 1.4 2004/03/28 20:51:23 antonio Exp $
if (create_session != null && BooleanUtils.toBoolean(create_session.trim())) {
if (append_session != null && BooleanUtils.toBoolean(append_session.trim... | 0 |
if (outputProducers.contains(this)) {
if (!parts.isEmpty() || outputProducers.size() > 1) {
Set<String> otherProducerNames = new HashSet<>();
for (Node outputProducer : outputProducers) {
if (outputProducer != this) {
otherProducerNames.add(outputProducer.getF... | 0 |
import org.apache.cocoon.components.source.SourceUtil;
* @version CVS $Id: SessionPostTransformer.java,v 1.3 2003/05/16 07:19:43 cziegeler Exp $
SourceUtil.parse(this.manager, resource, saxBuilder); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.