Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
package com.twitter.aurora.scheduler;
import com.twitter.aurora.gen.ScheduleStatus;
import com.twitter.aurora.scheduler.async.OfferQueue;
import com.twitter.aurora.scheduler.base.Conversions;
import com.twitter.aurora.scheduler.base.Query;
import com.twitter.aurora.scheduler.base.SchedulerException;
import com.twitter.... | 1 |
loadPlugins(this.latestDefinition); | 0 |
upgradeEntity.setUpgradePackStackId(new StackId((String) null)); | 0 |
* @version $Revision$ | 0 |
/* ====================================================================
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* @version $Revision: 1.2 $ $Date: 2004/01/14 21:43:09 $ | 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 ap... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Digester.java,v 1.69 2002/12/16 02:14:15 craigmcc Exp $
* $Revision: 1.69 $
* $Date: 2002/12/16 02:14:15 $
import java.lang.reflect.InvocationTargetException;
* @version $Revision: 1.... | 0 |
private final InstructionFactory _factory;
private final ConstantPoolGen _cp;
private final ClassGen _cg; | 0 |
private String getUserToRunAs() {
String user = viewContext.getProperties().get(PROPERTY_SLIDER_USER);
if (user == null || user.trim().length() < 1) {
return "yarn";
} else if ("${username}".equals(user)) {
return viewContext.getUsername();
} else {
return user;
}
}
bo... | 0 |
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
public static Document parseXml(File file) throws IOException, SAXException {
InputStream is = null;
try {
is = new BufferedInputStream(new FileInputStream(file));
return parseXml(is);
... | 0 |
public class Window extends AbstractLoggingBean implements java.nio.channels.Channel, ChannelHolder, PropertyResolver {
private final AbstractChannel channelInstance;
this.channelInstance = ValidateUtils.checkNotNull(channel, "No channel provided");
this.suffix = (client ? "client" : "server") + "/"... | 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 |
if (sock.connect(addr)) {
sendThread.primeConnection();
} | 0 |
//reverse iteration -> From current element namespaces to parent namespaces
for (int i = comparableNamespaceList.size() - 1; i >= 0; i--) { | 0 |
import org.apache.ambari.server.actionmanager.StageFactoryImpl;
import org.apache.ambari.server.stageplanner.RoleGraphFactory;
import org.apache.ambari.server.stageplanner.RoleGraphFactoryImpl;
/**
* Bind classes to their Factories, which can be built on-the-fly.
* Often, will also have to edit AgentResourceTes... | 0 |
import org.apache.ambari.server.topology.GPLLicenseNotAcceptedException;
} catch (InvalidTopologyException | GPLLicenseNotAcceptedException e) { | 0 |
package org.apache.ambari.view.filebrowser.utils; | 0 |
new AuthorizeHeaderToken("Basic " + ALADDIN_OPEN_SESAME); | 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 |
Key key = source.getTopKey(); | 0 |
package org.apache.beam.sdk.extensions.sql.interpreter.operator.string;
import org.apache.beam.sdk.extensions.sql.interpreter.BeamSqlFnExecutorTestBase;
import org.apache.beam.sdk.extensions.sql.interpreter.operator.BeamSqlExpression;
import org.apache.beam.sdk.extensions.sql.interpreter.operator.BeamSqlPrimitive; | 0 |
import com.twitter.aurora.scheduler.storage.entities.IQuota;
IQuota currentUsage = Quotas.fromProductionTasks(
IQuota additionalRequested = Quotas.subtract(Quotas.fromJob(job), currentUsage); | 0 |
* Get additional properties.
protected Properties getAdditionalProperties(Element rootElement)
final Element[] properties = DomHelper.getChildElements(rootElement, rootElement.getNamespaceURI(), "property");
if ( properties != null && properties.length > 0 ) {
variables = new Proper... | 0 |
import org.apache.commons.configuration.builder.ConfigurationBuilderEvent;
import org.apache.commons.configuration.event.EventListener;
defBuilder.addEventListener(ConfigurationBuilderEvent.RESET,
new EventListener<ConfigurationBuilderEvent>()
@Override
public void onEven... | 0 |
* This package contains implementations for the {@link java.util.Queue Queue} interface.
* <p>
* The following implementations are provided in the package:
* <ul>
* <li>CircularFifoQueue - implements a queue with a fixed size that discards oldest when full
* </ul> | 0 |
* ResponseServer is responsible for adding <code>Server</code> header. This
* interceptor is recommended for server side protocol processors.
* The following parameters can be used to customize the behavior of this
* class:
*
public void process(final HttpResponse response, final HttpContext context)
| 0 |
@GraphTransaction | 0 |
@SuppressWarnings("rawtypes") | 0 |
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
assertNotNull("Could not get table ID", tableId);
assertTrue("File archive directory didn't exist", fs.exists(fileArchiveDir));
assertTrue("File doesn't exists in archive directory: " + archivedFile,
assertNotNull(... | 0 |
out = new ChannelOutputStream(this, remoteWindow, log, SshConstants.SSH_MSG_CHANNEL_DATA); | 0 |
boolean canWrite = WalkingSecurity.get(state).canWrite(WalkingSecurity.get(state).getTabAuthInfo(), tableName);
// For now, just wait a second and go again if they can write!
if (!canWrite)
return;
| 0 |
import org.apache.beam.model.fnexecution.v1.BeamFnApi; | 0 |
private static Method getMostSpecific(List<Method> methods, Class<?>[] classes)
Class<?>[] appArgs = app.getParameterTypes();
private static int moreSpecific(Class<?>[] c1, Class<?>[] c2) {
private static LinkedList<Method> getApplicables(List<Method> methods, Class<?>[] classes) {
private s... | 0 |
@Override
@Override | 0 |
import java.text.SimpleDateFormat;
import java.util.Date;
import org.quartz.CronTrigger;
import org.quartz.SimpleTrigger;
* @version CVS $Id: QuartzJobSchedulerEntry.java,v 1.3 2003/09/05 10:22:21 giacomo Exp $
/** The data map */
private final JobDataMap m_data;
/** The detail */
private final JobDe... | 0 |
"Incompatible data version " + dataVersion); | 0 |
/* ====================================================================
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* @version $Revision: 1.6 $ $Date: 2004/01/14 21:34:34 $ | 0 |
@SuppressWarnings("deprecation")
AccumuloOutputFormat.setConnectorInfo(job, user, tokenFile);
try (PrintStream out = new PrintStream(tf)) {
getClientInfo().getProperties().store(out, "Credentials for " + getClass().getName()); | 0 |
public class ApexStateInternals<K> implements StateInternals {
public <T extends State> T state(StateNamespace namespace, StateTag<T> address) {
StateNamespace namespace, StateTag<T> address, final StateContext<?> c) {
return address.bind(new ApexStateBinder(namespace, address, c));
private class ApexStat... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Digester.java,v 1.80 2003/08/02 09:54:06 rdonkin Exp $
* $Revision: 1.80 $
* $Date: 2003/08/02 09:54:06 $
* @version $Revision: 1.80 $ $Date: 2003/08/02 09:54:06 $
* Add a "call ... | 0 |
try (AccumuloClient c = createAccumuloClient()) { | 0 |
authState.reset();
authState.reset();
authState.reset();
authState.reset();
authState.reset(); | 0 |
import org.apache.accumulo.core.data.impl.KeyExtent; | 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
... | 0 |
out(4, "Major Compacting %d", info.majors == null ? 0 : info.majors.running);
out(4, "Queued for Major Compaction %d", info.majors == null ? 0 : info.majors.queued);
out(4, "Minor Compacting %d", info.minors == null ? 0 : info.minors.running);
out(4, "Queued for Minor Com... | 0 |
hdfs.close();
| 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 |
* 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 |
/**
* 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 |
private XMLSignatureInput input = null;
/**
* @param filename
public ResolverAnonymous(String filename) throws FileNotFoundException, IOException {
this.input = new XMLSignatureInput(new FileInputStream(filename));
}
/**
* @param is
public ResolverAnonymous(InputStream is) {
... | 0 |
import org.apache.felix.das.util.Util;
import org.apache.felix.dm.Component;
import org.apache.felix.dm.DependencyActivatorBase;
import org.apache.felix.dm.DependencyManager;
private void startDeviceManager() {
final String driverFilter = Util.createFilterString( "(%s=%s)", new String[]
{ org.os... | 0 |
MASTER_MINTHREADS("master.server.threads.minimum", "2", PropertyType.COUNT, "The minimum number of threads to use to handle incoming requests."),
+ " limits the number of long running scans that can run concurrently per tserver."),
TSERV_MINTHREADS("tserver.server.threads.minimum", "2", PropertyType.COUNT... | 0 |
public static final String SERVER_HTTP_REQUEST_HEADER_SIZE = "server.http.request.header.size";
public static final String SERVER_HTTP_RESPONSE_HEADER_SIZE = "server.http.response.header.size";
public static final int SERVER_HTTP_REQUEST_HEADER_SIZE_DEFAULT = 64*1024;
public static final int SERVER_HTTP_RESPONS... | 0 |
//position now be between -1 and 1 | 0 |
lst.add(s.getBytes()); | 1 |
import org.apache.hc.core5.annotation.Immutable;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.util.Args;
import org.apache.hc.core5.util.LangUtils; | 0 |
Injector injector = Guice.createInjector(new ControllerModule()); | 0 |
constraintViolated(o, "Referenced method '"+o.getMethodName(cpg)+"' with expected signature not found in class '"+jc.getClassName()+"'. The native verifier does allow the method to be declared in some superinterface, which the Java Virtual Machine Specification, Second Edition does not.");
constraintViolated(o,... | 0 |
* @since 3.0
* @since 3.1
* @since 3.1
* @since 3.1 | 0 |
public void testCallParamRule() throws Exception {
URL rules = ClassLoader.getSystemResource
("org/apache/commons/digester/xmlrules/test-call-param-rules.xml");
String xml = "<?xml version='1.0' ?>"
+ "<root><foo attr='long'><bar>short</bar><foobar><pin... | 0 |
class IntWindow extends Window<IntWindow> { | 0 |
import org.junit.Ignore;
@Ignore("https://issues.apache.org/jira/browse/BEAM-6352") | 0 |
((DelegatingConnection<?>) c[0]).getDelegate().close();
DelegatingConnection<?> con = (DelegatingConnection<?>) ds.getConnection();
DelegatingConnection<Connection> con2 = new DelegatingConnection<>(inner); | 0 |
* Get the synclimit
* Set the synclimit | 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.ambari.server.state.stack.RepoTag;
ArrayNode tagsNode = factory.arrayNode();
for (RepoTag repoTag : repo.getTags()) {
tagsNode.add(repoTag.toString());
}
repoElement.put(PropertyHelper.getPropertyName(
RepositoryResourceProvider.REPOSITORY_TAGS_PR... | 0 |
import cz.seznam.euphoria.core.client.operator.state.State;
import cz.seznam.euphoria.core.client.operator.state.ListStateStorage;
import cz.seznam.euphoria.core.client.operator.state.StateStorageProvider;
import org.apache.flink.shaded.com.google.common.collect.Lists;
//testBatchSort(),
final ListStateStor... | 0 |
public class NestedZipTestCase extends AbstractProviderTestConfig {
public static Test suite() throws Exception {
public void prepare(final DefaultFileSystemManager manager) throws Exception {
public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception { | 1 |
public CPDSConnectionFactory(final ConnectionPoolDataSource cpds,
final String validationQuery,
final int validationQueryTimeout,
final boolean rollbackAfterValidation,
final String us... | 0 |
* @param <K> the type of the keys in the map
* @param <V> the type of the values in the map
* | 0 |
KeyPairProvider provider = Objects.requireNonNull(getKeyPairProvider(), "No host keys provider"); | 0 |
import org.apache.commons.vfs.VFS;
if (VFS.isUriStyle())
{
if (stat.charAt(0) == 'd' && nameBuf.charAt(nameBuf.length()-1) != '/')
{
nameBuf.append("/");
}
}
if (name.equals(".") || name.equals("..") || n... | 0 |
*
* @version $Id: FTPFileList.java,v 1.13 2004/04/21 23:30:33 scohen Exp $
* @deprecated This class is deprecated as of version 1.2 and will be
public class FTPFileList
* @param stream The input stream created by reading the socket on which
*
}
*
*
*
*
* @return vector containi... | 0 |
package org.apache.felix.fileinstall.internal;
import org.apache.felix.fileinstall.internal.BundleTransformer; | 0 |
Objects.requireNonNull(location, "No location to update"); | 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
private static final ParDoFnFactory parDoFnFactory = new CombineValuesFn.Factory();
return parDoFnFactory.create( | 0 |
public void multipleErrorPagesForSameErrorCodeChoosenByServiceRankingRules() throws InterruptedException
assertEquals(0, defaultContext.errorPageDTOs[1].errorCodes.length);
assertEquals(0, failedErrorPageDTO.exceptions.length); | 0 |
shutdownForwarder = service != forwardService || isShutdownOnExit(); | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
* href="http://commons.apache.org/lang">Commons Lang</a>. By extending
* href="http://commons.apache.org/configuration/team-list.html">Commons | 0 |
package org.apache.xml.security.stax.ext;
import org.apache.xml.security.stax.ext.stax.XMLSecEvent;
import org.apache.xml.security.stax.ext.stax.XMLSecStartElement; | 0 |
if ( ref.getCardinality() == null ) {
ref.setCardinality("1..1");
}
if ( ref.getPolicy() == null ) {
ref.setPolicy("static");
}
// if this is a field with a single cardinality,
// we look for the bind/unbind methods
... | 0 |
import static org.apache.beam.sdk.io.common.FileBasedIOITHelper.readFileBasedIOITPipelineOptions;
import org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions;
FileBasedIOTestPipelineOptions options = readFileBasedIOITPipelineOptions();
PCollection<String> testFiles = pipeline
.apply("Generate sequ... | 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 |
final Set<Map<String, Object>> propertySet = new LinkedHashSet<>();
final Map<String, Object> properties = new LinkedHashMap<>();
final Set<Map<String, Object>> propertySet = new LinkedHashSet<>();
final Map<String, Object> properties = new LinkedHashMap<>();
final Set<Map<String, Object>> propertyS... | 0 |
throw new RuntimeException(I18n.translate("endorsed.jdk1.4.0")/*,*/+ex); | 0 |
return ValueConstants.CSS_FONT_FAMILY_PROPERTY; | 0 |
actorSystem = ActorSystem.create("TestingActorSystem");
expect(jobImpl.getDateSubmitted()).andReturn(0L).times(1);
expect(jobImpl.getDateSubmitted()).andReturn(0L).times(2); | 0 |
TWO_HOURS_OF_MILLISECONDS, | 0 |
import java.io.File;
import java.net.URL;
| 0 |
public void testBinary() {
Text colf = new Text();
Text colq = new Text();
for (int i = 0; i < 256; i++) {
colf.append(new byte[] {(byte) i}, 0, 1);
colq.append(new byte[] {(byte) (255 - i)}, 0, 1);
runTest(colf, colq);
runTest(colf);
}
public void testBasic() {
runTest(new ... | 1 |
* @deprecated (3.3) Use {@link #_openDataConnection_(FTPCmd, String)} instead | 0 |
import java.net.Socket;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSession;
public SSLSession getSSLSession() {
if (!isOpen())
return null;
SSLSession result = null;
Socket sock = wrappedConnection.getSocket();
if (sock instanceof SSLSocket) {
... | 0 |
package org.apache.accumulo.shell.commands;
import org.apache.accumulo.shell.Shell;
import org.apache.accumulo.shell.Shell.Command; | 0 |
/**
* @since Mar 14, 2002
* @version CVS $Id: Context.java,v 1.2 2003/03/16 17:49:04 vgritsenko Exp $ | 0 |
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE}) | 0 |
import org.apache.aurora.GuavaUtils;
import org.apache.aurora.scheduler.AppStartup;
import org.apache.aurora.scheduler.app.LifecycleModule;
injector.getInstance(Key.get(GuavaUtils.ServiceManagerIface.class, AppStartup.class))
.startAsync().awaitHealthy(); | 0 |
import org.apache.accumulo.core.client.admin.SamplerConfiguration;
List<IterInfo> ssiList, Map<String,Map<String,String>> ssio, AtomicBoolean interruptFlag, SamplerConfiguration samplerConfig, long batchTimeOut)
throws IOException {
ScanDataSource dataSource = new ScanDataSource(this, authorizations, th... | 1 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists; | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.