Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
jsonContent.put("serviceName", serviceName);
jsonContent.put("role", componentName); | 0 |
public class DefaultFileSystemConfigBuilder extends FileSystemConfigBuilder {
public static DefaultFileSystemConfigBuilder getInstance() {
*
throws FileSystemException {
public UserAuthenticator getUserAuthenticator(final FileSystemOptions opts) {
abstract static class DefaultFileSystem im... | 1 |
// ----- Object overrides --------------------------------------------------
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
for (Predicate predicate : predicates) {
boolean arrayPredicate = predicate instanceof ArrayPredicate;
if (sb.length() > 0) {
... | 0 |
public void consume(final ByteBuffer src) throws IOException {
entityConsumer.consume(src); | 0 |
reader = microbatchSource.getOrCreateReader(runtimeContext.getPipelineOptions(),
checkpointMark); | 0 |
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
* permission of the Apache Software Foundation. | 0 |
import static org.junit.Assert.fail;
@Test
public void testLegalCharacters() {
new Authorizations("_");
new Authorizations(".");
new Authorizations("A_/a.QO0D-l1");
new Authorizations("/");
new Authorizations("a");
new Authorizations("A");
try {
new Authorizations("|");
fail(... | 0 |
import org.apache.sshd.common.util.io.LoggingFilterOutputStream; | 0 |
import static org.apache.accumulo.core.security.ColumnVisibility.quote;
import static org.junit.Assert.assertEquals;
@Test
public void testToString() {
ColumnVisibility cv = new ColumnVisibility(quote("a"));
assertEquals("[a]", cv.toString());
// multi-byte
cv = new ColumnVisibility(quo... | 0 |
public <T> boolean matches(final T node, final NodeHandler<T> handler,
final String criterion)
public <T> boolean matches(final T node, final NodeHandler<T> handler,
final String criterion) | 0 |
/*
* Copyright 2000-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 ... | 0 |
* Get the cluster id associated with the request. Can be <code>null</code>.
* @return associated cluster id
public Long getClusterId(); | 0 |
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
* permission of the Apache Software Foundation. | 0 |
public Jira87TestCase(final String name) {
public static void main(final String[] args) {
final Jira87BeanFactory.PublicMappedInterface bean = Jira87BeanFactory.createMappedPropertyBean();
} catch (final Throwable t) { | 0 |
import org.apache.ambari.server.state.stack.upgrade.UpgradeScope;
private UpgradeScope m_scope = UpgradeScope.ANY;
public void setScope(UpgradeScope scope) {
m_scope = scope;
}
public boolean isScoped(UpgradeScope scope) {
return m_scope.isScoped(scope);
} | 0 |
package org.apache.felix.dm.impl.index; | 0 |
* @version $Id: SoundexTest.java,v 1.17 2004/04/19 01:14:29 ggregory Exp $ | 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.commons.bcel6.Const;
if (attribute.getTag() == Const.ATTR_CONSTANT_VALUE) { | 0 |
ServiceComponentHost createNew(ServiceComponent serviceComponent, String hostName); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/test/org/apache/commons/digester/RulesBaseTestCase.java,v 1.6 2002/07/10 18:12:33 rdonkin Exp $
* $Revision: 1.6 $
* $Date: 2002/07/10 18:12:33 $
* @version $Revision: 1.6 $ $Date: 2002/07/10 18:12:33 $
// Te... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BeanMap.java,v 1.19 2003/05/11 14:15:23 scolebourne Exp $
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* @version $Revision: 1.19 $ $Date: 2003/05/11 14:... | 0 |
/** Utilities for dealing with movement of files from object stores and workers. */
public static String copyFileFromWorkerToGCS(
SubProcessConfiguration configuration, Path fileToUpload) throws Exception {
LOG.error(
String.format("Error copying file from %s to %s", sourceFile, destinationFile... | 1 |
String TAG_TEXTPATH = "textPath";
String ATTR_METHOD = "method";
String ATTR_SPACING = "spacing";
String ATTR_START_OFFSET = "startOffset";
String ATTR_TEXT_LENGTH = "textLength";
String VALUE_ALIGN = "align";
String VALUE_EXACT = "exact";
String VALUE_STRETCH = "stretch"; | 0 |
throw new RuntimeException("COMPACTION_FINISH (without preceding"
+ " COMPACTION_START) not followed by successful minor compaction");
throw new RuntimeException("COMPACTION_FINISH (without preceding"
+ " COMPACTION_START) is not followed by a successful minor compaction."); | 0 |
log(ioex);
log(ioex);
protected void log(Exception ex) { | 0 |
bind(LeaderRedirectFilter.class).in(Singleton.class);
filter("/scheduler").through(LeaderRedirectFilter.class); | 0 |
* @version $Id$ | 0 |
public interface IModelElement extends Cloneable
{
void setMeta( Map<Object, Object> meta );
<T extends IModelElement> T getAncestor( Class<T> type );
void setProperty( String name, Object value ) throws NoSuchMethodException;
void addProperty( String name, Object value ) throws NoSu... | 0 |
import org.apache.http.client.protocol.HttpClientContext;
HttpClientContext clientContext = HttpClientContext.adapt(context);
AuthState targetAuthState = clientContext.getTargetAuthState();
context.setAttribute(ClientContext.TARGET_AUTH_STATE, targetAuthState);
AuthState proxyAuthSt... | 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 |
/**
* 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 |
import org.apache.beam.sdk.transforms.DoFn;
return input.apply(ParDo.of(new DoFn<TimestampedValue<T>, T>() {
@ProcessElement | 0 |
import static org.apache.felix.sigil.common.runtime.Runtime.ADDRESS_PROPERTY;
import static org.apache.felix.sigil.common.runtime.Runtime.PORT_PROPERTY;
import java.util.Properties;
import org.apache.felix.sigil.common.runtime.cli.CommandLine;
import org.apache.felix.sigil.common.runtime.cli.HelpFormatter;
import org... | 0 |
public StructDump(@CacheTemplates boolean cacheTemplates, Storage storage) { | 0 |
final byte[] beginning = "beginning; ".getBytes(Consts.ASCII); | 0 |
package org.apache.commons.dbcp2; | 1 |
* Copyright (C) 2015 Google Inc. | 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 |
OutputStream stdout = getOutputStream(); | 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
@Override
@Override | 0 |
import org.apache.hc.core5.http.impl.IncomingEntityDetails;
final EntityDetails entityDetails = endStream ? null : new IncomingEntityDetails(request, -1); | 0 |
.pruningPrefix("com.google.bigtable.v1")
.pruningPrefix("com.google.cloud.bigtable.config")
.pruningPrefix("com.google.cloud.bigtable.grpc.Bigtable*Name") | 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 may not... | 0 |
package org.apache.bcel;
import org.apache.bcel.classfile.JavaClass; | 0 |
* @param ih where to append the instruction list | 0 |
import org.apache.http.protocol.HttpProcessor;
* Returns {@link HttpProcessor} implementation to be used to process
* HTTP request and response messages for protocol compliance.
*
* @return HTTP protocol processor.
*/
HttpProcessor getHttpProcessor();
/**
* Returns {@link Con... | 0 |
port = TServerUtils.startTServer(result, processor, this.getClass().getSimpleName(), "GC Monitor Service", 2, 1000, maxMessageSize).address.getPort(); | 0 |
public class ClassCacheImpl
implements ClassCache
{
public void setClassInspector( ClassCacheInspector inspector )
for ( int i = 0; i < _table.length; i++ )
public final Object get( Class key )
for ( Entry entry = _table[i]; entry != null; entry = entry.next )
if ( entry.key =... | 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 |
import org.junit.Assert; | 0 |
sslsock.connect(remoteAddress, connTimeout); | 0 |
return GenericUtils.map(paths, p -> new ClientIdentityFileWatcher(p, loader, provider, strict)); | 0 |
final PCollection<Long> estimate = input.apply(ApproximateUnique.globally(sampleSize));
final PCollection<Long> approximate = input.apply(ApproximateUnique.globally(sampleSize));
input.apply(Distinct.create()).apply(Count.globally()).apply(View.asSingleton());
final PCollection<Long> estimat... | 0 |
synchronized (lock) {
this.size = size;
this.maxSize = size;
this.packetSize = packetSize;
lock.notifyAll();
} | 0 |
import uno.perk.forward.Forward;
@Forward({
SchedulerStore.class,
CronJobStore.class,
TaskStore.class,
LockStore.class,
QuotaStore.class,
AttributeStore.class,
JobUpdateStore.class})
class WriteAheadStorage extends WriteAheadStorageForwarder implements | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/CharacterConverter.java,v 1.3 2002/07/13 02:22:08 craigmcc Exp $
* $Revision: 1.3 $
* $Date: 2002/07/13 02:22:08 $
* @version $Revision: 1.3 $ $Date: 2002/07/13 02:22:08 ... | 0 |
DistributedTrace.enable("localhost", "testTrace", getConnectionInfo().getProperties()); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/pointers/Attic/PropertyPointer.java,v 1.4 2002/04/10 03:40:20 dmitri Exp $
* $Revision: 1.4 $
* $Date: 2002/04/10 03:40:20 $
* @version $Revision: 1.4 $ $Date: 2002/04/10 03:40:20 $
... | 0 |
return new LazyMap<>(map, factory);
return new LazyMap<>(map, factory); | 1 |
@Override
@Override
@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... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//codec/src/java/org/apache/commons/codec/binary/Base64.java,v 1.7 2003/07/30 22:34:17 tobrien Exp $
* $Revision: 1.7 $
* $Date: 2003/07/30 22:34:17 $
* @author <a href="mailto:dlr@apache.org">Daniel Rall</a>
* @author <a href="... | 0 |
package org.apache.commons.jocl2; | 1 |
import com.google.common.annotations.VisibleForTesting;
@VisibleForTesting
AtlasEntityWithExtInfo createOrUpdateTopic(String topic) throws Exception {
@VisibleForTesting
AtlasEntity getTopicEntity(String topic, AtlasEntity topicEntity) {
@VisibleForTesting
static String getTopicQualifiedName(Str... | 0 |
import org.apache.sshd.util.test.BaseTestSupport; | 0 |
* @param baseURI the URI where the XML instance was stored
public Transforms(Element element, String baseURI)
super(element, baseURI); | 0 |
import com.twitter.mesos.gen.GetJobsResponse;
GetJobsResponse getJobs(String ownerRole);
| 0 |
@Override
@Override | 0 |
+ self.getQuorumAddress().getPort(), e);
LOG.info("NEWLEADER proposal has Zxid of "
+ Long.toHexString(newLeaderProposal.packet.getZxid()));
LOG.warn("Ignoring unexpected exception during close",e); | 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 |
Map<String, Map<String, String>> kerberosConfigurations = new HashMap<>();
clusterEnvProperties = new HashMap<>();
Map<String, Set<String>> configurationsToRemove = new HashMap<>();
configurationsToRemove.put(entry.getKey(), new HashSet<>(entry.getValue().keySet()));
Set<String> visitedS... | 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 |
public DefaultServerIODispatch(
final NHttpServiceHandler handler,
final SSLContext sslcontext,
final HttpParams params) {
this(handler, sslcontext, null, params);
}
| 0 |
import org.apache.beam.sdk.options.Default;
*
* Define expected output file checksum to verify WordCount pipeline result with customized input.
@Default.String("c04722202dee29c442b55ead54c6000693e85e77")
String getOutputChecksum();
void setOutputChecksum(String value);
new FileChecksumMatcher(... | 0 |
import java.util.Objects;
super(Objects.toString(acceptanceAddress, ""));
| 0 |
return new KerberosToken(getAdminPrincipal(), keytab, true); | 1 |
if (entry.mustRevalidate()
|| (isSharedCache() && entry.proxyRevalidate())) {
return new BasicHttpResponse(HTTP_1_1, HttpStatus.SC_GATEWAY_TIMEOUT, "Gateway Timeout");
} else {
HttpResponse response = responseGenerator.generateR... | 0 |
* Copyright (c) OSGi Alliance (2004, 2016). All Rights Reserved.
* @author $Id: b3072b2d058e70389a52e342ed5f8647b930b8f1 $
* The Framework has stopped and the framework requires a new class loader
* to restart.
* <p>
* This event is fired when the Framework has been stopped because of a stop
* operation on... | 1 |
import org.apache.batik.css.engine.CSSEngineEvent;
import org.w3c.dom.events.MutationEvent;
* Interface for objects interested in being notified of updates.
* Invoked when an MutationEvent of type 'DOMAttrModified' is fired.
*/
void handleDOMAttrModifiedEvent(MutationEvent evt);
/**
* Invoked ... | 0 |
*
*
*
/**
*
* @version $Revision: 1.5 $
//-------------------------------------------------------------------------
/**
* Sets the name of the method to invoke on the bean.
//-------------------------------------------------------------------------
| 1 |
* Copyright 2002-2005 The Apache Software Foundation. | 0 |
private Map m_exportedPackages = new HashMap();
m_exportedPackages.put( packageName, artifacts );
protected Map getExportedPackages()
return m_exportedPackages; | 0 |
Calendar working = (Calendar) serverTime.clone();
Calendar now = (Calendar) serverTime.clone();// Copy this, because we may change it
now.setTimeZone(this.getServerTimeZone());
String year = Integer.toString(now.get(Calendar.YEAR));
String timeStampStrPlusYear = ... | 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 may not use ... | 1 |
import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
@Contract(threading = ThreadingBehavior.IMMUTABLE) | 0 |
Init.init(this.getClass().getClassLoader().getResource("security-config.xml").toURI(),
this.getClass()); | 0 |
package org.apache.batik.svggen;
* @see org.apache.batik.svggen.DOMTreeManager
* @see org.apache.batik.svggen.SVGDescriptor | 0 |
public void execute(MutableStoreProvider storeProvider) {
public void execute(MutableStoreProvider storeProvider) {
public void execute(MutableStoreProvider storeProvider) {
public void execute(MutableStoreProvider storeProvider) {
public void execute(MutableStoreProvider storeProvider) ... | 0 |
import com.google.gson.JsonObject;
public ViewStatus getViewStatus();
/**
* Provides information about requested Slider App.
*
* @param applicationId
* @param properties
* Identifies specific properties to show up. Provide
* <code>null</code> for default properties.
* @return... | 0 |
/** Internal implementation of the Beam runner for Apache Flink. */ | 1 |
package org.apache.beam.runners.core.construction;
/** Utilities for working with classpath resources for pipelines. */
public class PipelineResources { | 0 |
import org.apache.accumulo.core.security.thrift.SecurityErrorCode; | 0 |
proxy.read((char[])null);
proxy.read(null, 0, 0);
proxy.read((CharBuffer)null); | 0 |
public static void dumpHex(SimplifiedLog logger, Level level, String prefix, PropertyResolver resolver, char sep, byte... data) {
public static void dumpHex(SimplifiedLog logger, Level level, String prefix, char sep, int chunkSize, byte... data) {
public static <A extends Appendable> A appendHex(A sb, char ... | 0 |
* {@link org.apache.commons.fileupload.disk.DiskFileItem}. | 0 |
import org.apache.beam.sdk.transforms.PTransform;
/** A {@link RelNode} that can also give a {@link PTransform} that implements the expression. */
* A {@link BeamRelNode} is a recursive structure, the {@code BeamQueryPlanner} visits it with a
* DFS(Depth-First-Search) algorithm.
PTransform<PCollectionTuple, PCo... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.