Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
package com.twitter.aurora.scheduler.configuration;
import com.twitter.aurora.gen.Constraint;
import com.twitter.aurora.gen.CronCollisionPolicy;
import com.twitter.aurora.gen.Identity;
import com.twitter.aurora.gen.JobConfiguration;
import com.twitter.aurora.gen.LimitConstraint;
import com.twitter.aurora.gen.TaskConstr... | 1 |
import java.io.Serializable; | 0 |
Collections.emptyMap(), | 0 |
import org.apache.atlas.graph.GraphSandboxUtil;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
GraphSandboxUtil.create();
| 0 |
final String pid0 = createFactoryConfiguration( factoryPid, "?" );
final String pid1 = createFactoryConfiguration( factoryPid, "?" ); | 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 applica... | 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.apache.commons.configuration.sync.NoOpSynchronizer;
import org.apache.commons.configuration.sync.Synchronizer; | 0 |
Number getValue(); | 0 |
import java.util.Collections;
import org.apache.http.auth.AuthScheme;
import org.apache.http.auth.params.AuthPNames;
import org.apache.http.impl.auth.BasicScheme;
import org.apache.http.impl.auth.BasicSchemeFactory;
import org.apache.http.impl.client.TargetAuthenticationStrategy;
import org.apache.http.params.HttpParam... | 0 |
/**
* Returns <code>false</code> if this configuration contains configuration
* properties. Otherwise <code>true</code> is returned and this is a
* newly creted configuration object whose {@link #update(Dictionary)}
* method has never been called.
*/ | 0 |
private final Dictionary m_dict;
if (!caseSensitive)
m_dict = null;
m_map = new StringMap(caseSensitive);
if (dict != null)
Enumeration keys = dict.keys();
while (keys.hasMoreElements())
O... | 0 |
for (String key : map.keySet()) {
JaxbMapKeyList jaxbMap = new JaxbMapKeyList(key, map.get(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
... | 0 |
public Write withMaxBatchSize(int batchSize) { | 0 |
* @version $Revision$ $Date$ | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Rule.java,v 1.2 2001/05/12 17:25:54 sanders Exp $
* $Revision: 1.2 $
* $Date: 2001/05/12 17:25:54 $
import org.xml.sax.Attributes;
* @version $Revision: 1.2 $ $Date: 2001/05/12 17:25:... | 0 |
package org.apache.batik.gvt.filter; | 0 |
* Constructs a new ConnectionClosedException with the specified detail message.
*
* @param format The exception detail message format; see {@link String#format(String, Object...)}.
* @param args The exception detail message arguments; see {@link String#format(String, Object...)}.
*
* @sinc... | 0 |
import java.nio.charset.StandardCharsets;
data.add(String.valueOf(i).getBytes(StandardCharsets.UTF_8)); | 0 |
import javax.annotation.Nullable;
@Nullable | 0 |
new DirectGroupByKey.DirectGroupByKeyOnly<>()); | 0 |
import org.apache.cocoon.portal.services.impl.AbstractPortalService;
* This extension of the {@link AbstractPortalService} uses Spring
extends AbstractPortalService
/** The application context. */
* @see org.apache.cocoon.portal.services.impl.AbstractPortalService#getService(java.lang.String) | 0 |
import com.google.common.collect.Sets; | 0 |
} catch (IllegalArgumentException xarg) {
return TRY_FAILED;// fail | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/axes/PrecedingOrFollowingContext.java,v 1.9 2002/11/26 01:20:06 dmitri Exp $
* $Revision: 1.9 $
* $Date: 2002/11/26 01:20:06 $
* @version $Revision: 1.9 $ $Date: 2002/11/26 01:20:06 $ | 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 java.sql.Driver;
@SuppressWarnings("unused") // Ensure TesterDriver is registered
Driver d = new TesterDriver();
@SuppressWarnings("unused") // Ensure TesterDriver is registered
Driver d = new TesterDriver();
@SuppressWarnings("unused") // Ensure TesterDriver is registered... | 0 |
* @throws java.nio.charset.UnsupportedCharsetException | 0 |
//A composite is the one whose lifecycle is dependent on the enclosing type and is not just a reference | 1 |
* 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... | 1 |
p.replaceAll(
DirectRunner.fromOptions(TestPipeline.testingPipelineOptions())
.defaultTransformOverrides()); | 0 |
for (String jar : "accumulo-core accumulo-server-base accumulo-fate accumulo-trace commons-math3 libthrift htrace-core".split(" ")) { | 0 |
try (AccumuloClient accumuloClient = createClient()) {
try (AccumuloClient c = createClient()) { | 0 |
* but it's a good practice to specify a more informative explicit
* name when applying the transform. For example: | 0 |
Object[] listeners = eventListeners.toArray();
for (int i = 0; i < listeners.length; i++) {
((ConnectionEventListener) listeners[i]).connectionClosed(event); | 0 |
HttpResponse rsp = conn.receiveResponseHeader(); | 0 |
DefaultConnectionReuseStrategy.INSTANCE,
DefaultConnectionReuseStrategy.INSTANCE, | 0 |
handleProcessingException(e);
handleProcessingException(e);
try {
doFn.teardown();
} catch (Exception e) {
LOG.error(
"Suppressing teardown exception that occurred after processing entire input", e);
}
private void hand... | 0 |
import org.apache.http.client.URICollection;
public class RedirectLocations implements URICollection {
/**
* @since 4.3
*/
public Set<URI> getUnique() {
return new HashSet<URI>(this.unique);
}
/**
* @since 4.3
*/
public Iterator<URI> iterator() {
return getAll().... | 0 |
mockConfiguration.getProperties();
mockConfigurationControl.setReturnValue( new Hashtable() ); | 0 |
Map<String, Map<String, Map<String, String>>> requestConfigurations = new HashMap<>();
Map<String, Map<String, String>> properties = new HashMap<>();
Map<String, String> configurationProperties = configuration.getValue();
configurationProperties = Collections.emptyMap();
... | 0 |
private static org.slf4j.Logger log =
org.slf4j.LoggerFactory.getLogger(SingleKeyResolver.class); | 1 |
AuthenticationTokenIdentifier identifier = new AuthenticationTokenIdentifier("user", 1, 1000l,
2000l, "instanceid");
DelegationTokenImpl token = new DelegationTokenImpl(new byte[] {'f', 'a', 'k', 'e'},
identifier);
AuthenticationTokenIdentifier identifier = new AuthenticationTokenIdentifier(... | 0 |
* <code>Service</code>
*
* contains all service information of a component.
/** Flag for the service factory. */
private boolean isServiceFactory;
private final List<Interface> interfaces = new ArrayList<Interface>();
* Is this a service factory?
public boolean isServiceFactory() {
retu... | 0 |
public static void main(String[] args) { | 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... | 1 |
import cz.seznam.euphoria.shaded.guava.com.google.common.collect.Sets; | 0 |
package org.apache.ambari.server.fsm;
import org.apache.ambari.server.ActionState;
import org.apache.ambari.server.fsm.StateMachineFactory;
public class ActionFSMImpl implements ActionFSM {
private static final StateMachineFactory
<ActionFSMImpl, ActionState, ActionEventType, ActionEvent>
stateMachineFac... | 0 |
/**
* Compute Murmur3Hash 16 byte UUID for a Metric-App-Instance.
* @param timelineClusterMetric input metric
* @param maxLength Max length of returned UUID. (Will always be 16 for this technique)
* @return 16 byte UUID.
*/ @Override
/**
* Compute Murmur3Hash 4 byte UUID for a String.
* @param... | 0 |
import org.apache.commons.digester3.rule.CallParamRule;
import org.apache.commons.digester3.rule.RulesBinder; | 0 |
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString; | 0 |
return GlobalConfiguration.loadConfiguration()
.getInteger(ConfigConstants.DEFAULT_PARALLELISM_KEY, 1); | 0 |
stringBuilder.append(new String(arg0, arg1, arg2, java.nio.charset.StandardCharsets.UTF_8)); | 1 |
SyntheticRepository rep =(SyntheticRepository)
instances.get( defaultPath );
if(rep == null) {
rep = new SyntheticRepository(); // adds itself to instances
}
return rep; | 0 |
Matchers.equalTo(retryOptionsBuilder.build()));
Matchers.equalTo(retryOptionsBuilder.build())); | 0 |
import java.util.TreeMap;
import org.apache.sshd.common.PropertyResolver;
import org.apache.sshd.common.PropertyResolverUtils;
Map<String, Object> options = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
if ((i + 1) >= numArgs) {
if ((i + 1) >= numArgs) {
PropertyResolver ... | 0 |
gi.init(new SortedMapIterator(input), is.getOptions(), null);
gi.init(new SortedMapIterator(input), is.getOptions(), null);
gi.init(new SortedMapIterator(input), is.getOptions(), null); | 0 |
import org.apache.accumulo.fate.zookeeper.ZooUtil;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@SuppressFBWarnings(value = "PATH_TRAVERSAL_IN", justification = "paths provided by test") | 0 |
@Test
public void testWriteRetryValidRequest() throws Exception {
elasticsearchIOTestCommon.setPipeline(pipeline);
elasticsearchIOTestCommon.testWriteRetryValidRequest();
} | 0 |
* Copyright 2000-2009 The Apache Software Foundation | 0 |
int mutationCount;
public MemKey(byte[] row, byte[] cf, byte[] cq, byte[] cv, long ts, boolean del, boolean copy, int mc) {
super(row, cf, cq, cv, ts, del, copy);
this.mutationCount = mc;
}
public MemKey() {
super();
this.mutationCount = Integer.MAX_VALUE;
}
public MemKey(Key key... | 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 not ... | 0 |
import org.apache.cocoon.portal.coplet.CopletInstanceData;
import org.apache.cocoon.portal.event.impl.FullScreenCopletEvent;
import org.apache.cocoon.portal.layout.impl.CopletLayout;
import org.apache.cocoon.portal.pluto.om.PortletWindowImpl;
* @version CVS $Id: PortletURLProviderImpl.java,v 1.4 2004/03/16 15:56:43 cz... | 0 |
* @version CVS $Id: AvalonToCocoonSource.java,v 1.2 2003/03/16 17:49:11 vgritsenko Exp $ | 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... | 1 |
List usedByTracker = null;
if (m_tracker != null) {
usedByTracker = m_tracker.getUsedServiceReferences();
} | 0 |
private long timeOut;
Range range, int size, long timeOut, ScannerOptions options, boolean isolated, | 0 |
* @deprecated since 1.7, use org.apache.htrace.impl.CountSampler instead | 0 |
Method m = getMethod( targetClass, getMethodName(), null, acceptPrivate, acceptPackage );
if ( m != null ) {
return m;
}
if ( singleParameterMethod == null && ex != null ) | 0 |
public static KeyExchangeFactory newFactory(DHFactory delegate) {
@SuppressWarnings("checkstyle:VariableDeclarationUsageDistance")
String keyAlg = KeyUtils.getKeyType(serverKey);
throw new SshException("Unsupported server key type: " + serverKey.getAlgorithm()); | 0 |
public ActivateMethod( final SimpleLogger logger, final String methodName,
final boolean methodRequired, final Class componentClass, final boolean isDS11, final boolean isDS12Felix )
super( logger, methodName, methodRequired, componentClass, isDS11, isDS12Felix );
getLogger().log( L... | 0 |
package org.apache.hc.client5.http.classic.methods; | 0 |
UserAuthorization,
VersionDefinition;
public static final Type VersionDefinition = InternalType.VersionDefinition.getType(); | 0 |
import org.apache.hc.core5.io.ShutdownType;
import org.apache.hc.core5.util.TimeValue;
mgr.release(endpoint1, null, TimeValue.ofMillis(100));
mgr.release(endpoint1, null, TimeValue.ofMillis(100));
mgr.release(endpoint1, "some other state", TimeValue.ofMillis(10000));
mgr.release(endpoint... | 1 |
import org.apache.ambari.server.state.live.Clusters;
private final Clusters fsm;
public ActionManager(long schedulerSleepTime, long actionTimeout,
ActionQueue aq, Clusters fsm) {
scheduler = new ActionScheduler(schedulerSleepTime, actionTimeout, db,
actionQueue, fsm, 2);
this.fsm = fsm;
d... | 0 |
public static <E> PredicatedSet<E> predicatedSet(final Set<E> set, final Predicate<? super E> predicate) {
protected PredicatedSet(final Set<E> set, final Predicate<? super E> predicate) { | 0 |
if ( m_factoryPidIndex == null ||
(m_componentMetadata.isObsoleteFactoryComponentFactory() && !m_componentMetadata.isConfigurationRequired())) | 0 |
private static final String OPTION_NAME__PREEMPTIVE_AUTHENTICATION = "preemptiveAuth";
protected HttpFileSystemConfigBuilder(String prefix)
/**
* Determines if the FileSystemOptions indicate that preemptive
* authentication is requested.
* @param opts The FileSystemOptions.
* @re... | 0 |
import org.apache.aurora.common.testing.easymock.EasyMockTest; | 0 |
setDefaults(defaults); // perform ancestor check
// check we're not becoming our own defaults, directly or indirectly
// that would trigger an endless loop when looking up an unknown param
HttpParams ancestor = params;
while (ancestor != null) {
// check for object i... | 0 |
* a MetaType xml file under OSGI-INF/metatype/metatype.xml and is used to configure
public @interface Properties
Property[] properties(); | 0 |
FlowUnfolder.InputOperator<T> operator, TranslationContext context) {
static <T> PCollection<T> doTranslate(DataSource<T> source, TranslationContext context) {
FlowUnfolder.InputOperator operator, TranslationContext context) { | 0 |
List<String> args = new LinkedList<String>();
command = args.get(0); | 0 |
* <p>NOTE, because this implementation is memory based, the metadata is NOT persistent. for tables
* which created, you need to create again every time you launch the {@link
* org.apache.beam.sdk.extensions.sql.BeamSqlCli}.
@Override
public String getTableType() {
@Override
public void createTable(Table tabl... | 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.batik.svggen; | 0 |
package org.apache.felix.dm.test.integration.api;
import org.apache.felix.dm.test.components.Ensure;
import org.apache.felix.dm.test.integration.common.TestBase; | 0 |
void stop() throws IOException; | 0 |
import org.apache.zookeeper.server.admin.AdminServer.AdminServerException;
} catch (AdminServerException e) {
LOG.error("Unable to start AdminServer, exiting abnormally", e);
System.err.println("Unable to start AdminServer, exiting abnormally");
System.exit(4);
throws... | 1 |
Referenceable dbReferenceable = dgiBridge.registerDatabase(oldTable.getDbName());
LOG.info("Updating entity name {}.{} to {}",
oldTable.getDbName(), oldTable.getTableName(), newTable.getTableName());
newTable.getTableName().toLowerCase());
Referenceable db... | 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... | 1 |
import org.apache.batik.css.engine.value.URIValue;
return new URIValue(lu.getStringValue(),
resolveURI(engine.getCSSBaseURI(),
lu.getStringValue()));
return new URIValue(value,
resolveURI(e... | 0 |
import javax.validation.constraints.NotNull;
@NotNull
public LSServerFields() {
}
| 0 |
HashMap _resolverProperties = null;
List _perManifestResolvers = null;
if (resolver == null) {
return;
if (_perManifestResolvers==null)
_perManifestResolvers = new ArrayList();
this._perManifestResolvers.add(resolver);
if (resolverSpi == null) {
return;
if... | 0 |
* When a tablet is assigned, we mark its future location. When the tablet is opened, we set its
* current location. A tablet should never have both a future and current location.
* A tablet server is always associated with a unique session id. If the current tablet server has a
* different session, we know the loca... | 0 |
package org.w3c.dom.svg;
public interface SVGFontFaceUriElement extends
SVGElement {
} | 1 |
public static <E> TransformedCollection<E> transformingCollection(final Collection<E> coll,
final Transformer<? super E, ? extends E> transformer) {
public static <E> TransformedCollection<E> transformedCollection(final Collection<E> collecti... | 0 |
import org.apache.ambari.server.api.services.AmbariMetaInfo;
import org.apache.ambari.server.state.ComponentInfo;
import com.google.inject.Provider;
@Inject
Provider<AmbariMetaInfo> ambariMetaInfo;
AmbariMetaInfo metaInfo = ambariMetaInfo.get();
ComponentInfo componentInfo = metaInfo.getComponent(clust... | 0 |
import java.util.Map;
import java.util.Set;
public void testParameterizedDefaultListCoder() throws Exception {
public void testParameterizedDefaultMapCoder() throws Exception {
CoderRegistry registry = getStandardRegistry();
TypeDescriptor<Map<Integer, String>> mapToken = new TypeDescriptor<Map<Integer, Str... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.