Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
private static final org.slf4j.Logger LOG = | 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... | 0 |
when(plugin.getRequiredComponents()).thenReturn(null); | 0 |
* @version CVS $Id: Continuation.java,v 1.2 2004/04/23 23:07:07 joerg Exp $ | 0 |
package com.twitter.aurora.scheduler.async;
import com.twitter.aurora.gen.MaintenanceMode;
import com.twitter.aurora.scheduler.Driver;
import com.twitter.aurora.scheduler.async.OfferQueue.LaunchException;
import com.twitter.aurora.scheduler.async.OfferQueue.OfferQueueImpl;
import com.twitter.aurora.scheduler.async.Offe... | 1 |
if (!prop.isExperimental() && !prop.getType().equals(PropertyType.PREFIX))
if (prop.isExperimental())
if (prefix.isExperimental())
if (prefix.isExperimental())
if (prop.isExperimental()) | 0 |
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.cocoon.util.location.Location;
import org.apache.cocoon.util.location.LocationImpl;
import org.apache.cocoon.util.location.LocationUtils;
// Register the locatio... | 0 |
add(quotaInfo.getProdConsumption(), additionalRequested)); | 0 |
Map<String,String> siteConfig = new HashMap<String,String>();
| 0 |
/** Processing nodes that need to be disposed with this processor */
}
for (int i = this.disposableNodes.size() - 1; i > -1; i--) {
((Disposable) disposableNodes.get(i)).dispose();
} catch (IOException e) {
throw e;
} catch (ProcessingException... | 0 |
import org.apache.beam.examples.complete.game.utils.WriteToText;
* --tempLocation=YOUR_TEMP_DIRECTORY
* --runner=YOUR_RUNNER
* --output=YOUR_OUTPUT_DIRECTORY
* Create a map of information that describes how to write pipeline output to text. This map
* is passed to the {@link WriteToText} constructor to w... | 0 |
Map<String,String> opts = new HashMap<>();
Map<String,String> opts = new HashMap<>();
Map<String,String> opts = new HashMap<>();
Map<String,String> opts = new HashMap<>();
Map<String,String> opts = new HashMap<>();
Map<String,String> opts = new HashMap<>(); | 1 |
public static final boolean IS_SECURITY_ENABLED =
(System.getSecurityManager() != null);
| 0 |
import javax.servlet.ServletContextEvent;
import org.apache.atlas.repository.graph.AtlasGraphProvider;
import org.apache.atlas.repository.graphdb.AtlasGraph;
import com.google.inject.Module;
import com.thinkaurelius.titan.core.util.TitanCleanup;
AtlasGraph graph = AtlasGraphProvider.getGraphInstance();
... | 1 |
import org.apache.aurora.scheduler.discovery.ServiceGroupMonitor.MonitorException; | 0 |
final String s = this.chunks[this.chunkCount]; | 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 SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may... | 0 |
lastChange = zks.outstandingChangesForPath.get(path);
/*
*/
zks.outstandingChangesForPath.put(c.path, c); | 0 |
import org.apache.ambari.server.state.repository.ClusterVersionSummary;
import org.apache.ambari.server.state.repository.VersionDefinitionXml;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
@RunWith(MockitoJUnitRunner.class)
@Mock
private ClusterVersionSumma... | 0 |
* @param generatorContext used by converter to handle precision
* or to create elements.
*/
public SVGBasicStroke(SVGGeneratorContext generatorContext) {
super(generatorContext);
}
/**
public final SVGStrokeDescriptor toSVG(BasicStroke stroke)
private final String dash... | 0 |
final String[] parts = localityInfo.split("=", 2); | 0 |
private Boolean propagate = null;
public Boolean isPropagate() {
public void setPropagate(Boolean propagate) {
return Objects.equals(propagate, that.propagate) && | 0 |
// TODO: terminate faster based on processed assertion vs. auto-shutdown
final TupleTag<String> mainOutputTag = new TupleTag<>("main");
final TupleTag<Void> sideOutputTag = new TupleTag<>("sideOutput"); | 0 |
assertNotNull(tr); | 0 |
package org.apache.beam.sdk; | 0 |
import java.net.Socket;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
private final Logger log = LoggerFactory.getLogger(getClass());
final NioSocketAcceptor nio = (NioSocketAcceptor) acceptor;
nio.setReuseAddress(reuseAddress);
nio.setBacklog(backlog);
... | 0 |
package org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.aggregators; | 0 |
// TODO
// this.servletRuntimes = createServletServiceIdMap(servletRegistryRuntime.getServletRuntimes());
// this.resourceRuntimes = createServletServiceIdMap(servletRegistryRuntime.getResourceRuntimes());
/* TODO
*/
/* TODO
*/ | 0 |
else
{
cur.add(job);
}
private final List<Job> children = new ArrayList<>();
List<Job> children;
synchronized (this.children)
{
children = new ArrayList<>(this.children);
}
for (Job jo... | 0 |
import com.fasterxml.jackson.databind.Module;
import org.apache.beam.sdk.options.PipelineOptions;
import org.apache.beam.sdk.util.common.ReflectHelpers;
/**
* Use an {@link ObjectMapper} configured with any {@link Module}s in the class path allowing
* for user specified configuration injection into the ObjectMa... | 0 |
import org.apache.http.message.BasicHeader;
if (entity.getContentType() != null && !request.containsHeader(HttpHeaders.CONTENT_TYPE)) {
request.addHeader(new BasicHeader(HttpHeaders.CONTENT_TYPE, entity.getContentType()));
if (entity.getContentEncoding() != null && !request.conta... | 0 |
import org.apache.ambari.server.ldap.domain.AmbariLdapConfiguration;
import org.apache.ambari.server.ldap.domain.AmbariLdapConfigurationKeys;
@Inject
AmbariLdapConfiguration ldapConfiguration;
public void setUp() throws Exception {
injector = Guice.createInjector(new AuthorizationTestModule(), new AuditLogger... | 0 |
if (e instanceof HiddenChildElement) {
return ((HiddenChildElement)e).getParentElement();
} | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/ValidatorResult.java,v 1.8 2003/08/21 19:40:13 rleland Exp $
* $Revision: 1.8 $
* $Date: 2003/08/21 19:40:13 $
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights... | 0 |
protected TransactionRegistry transactionRegistry; // TODO make private?
protected ConnectionFactory connectionFactory; // TODO make private? | 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
... | 0 |
import static org.mockito.Mockito.mock;
import org.apache.beam.runners.core.metrics.ExecutionStateTracker;
PCollectionConsumerRegistry consumers = new PCollectionConsumerRegistry(metricsContainerRegistry);
new PTransformFunctionRegistry(
mock(MetricsContainerStepMap.class), mock(ExecutionStateTr... | 0 |
import org.apache.accumulo.core.security.tokens.SecurityToken;
@SuppressWarnings("deprecation")
* @deprecated @since 1.5, use {@link #getConnector(SecurityToken)}
public Connector getConnector(SecurityToken token) throws AccumuloException, AccumuloSecurityException {
* @deprecated @since 1.5, use {@link #getCon... | 0 |
import org.apache.accumulo.harness.AccumuloClusterHarness;
public class BulkSplitOptimizationIT extends AccumuloClusterHarness { | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.client.operator;
import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience;
import org.apache.beam.sdk.extensions.euphoria.core.annotation.operator.Recommended;
import org.apache.beam.sdk.extensions.euphoria.core.annotation.operator.StateComple... | 0 |
public class PlainSocketFactory implements SocketFactory {
private static final PlainSocketFactory DEFAULT_FACTORY = new PlainSocketFactory();
public static PlainSocketFactory getSocketFactory() {
private PlainSocketFactory() {
return ((obj != null) && obj.getClass().equals(PlainSocketFactory.class)... | 0 |
* This comparator follows OSGi Ranking policy.
* Compares two service reference.
* @param ref1 the reference 1
* @param ref2 the reference 2
* @return <code>-1</code> if the reference 1
* is 'higher' than the reference 2, <code>1</code> otherwise.
* (higher is term of ranking means a lo... | 0 |
throws Exception {
Object out = unwrap(outputStream);
if (!(out instanceof OutputStream)) {
throw new JavaScriptException("expected a java.io.OutputStream instead of " + out);
(OutputStream)out); | 0 |
import org.apache.accumulo.core.client.ClientInfo;
protected ClientInfo getClientInfo() { | 0 |
private Map<String, ViewEntity> viewDefinitions = new HashMap<>();
new HashMap<>();
new ConcurrentHashMap<>();
new ConcurrentHashMap<>();
new ConcurrentHashMap<>();
instanceDefinitions = new HashMap<>();
Map<String, ParameterConfig> parameterConfigMap = new HashMap<>();
Collection<View... | 1 |
import org.apache.cocoon.portal.coplet.CopletInstance;
protected CopletInstance copletInstanceData;
public void service(ServiceManager aManager) throws ServiceException {
this.manager = aManager; | 0 |
package org.apache.beam.sdk.extensions.sql.interpreter.operator.math;
import org.apache.beam.sdk.extensions.sql.interpreter.operator.BeamSqlExpression;
import org.apache.beam.sdk.extensions.sql.interpreter.operator.BeamSqlPrimitive;
import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRow; | 0 |
*
*
import org.apache.cocoon.forms.datatype.convertor.Convertor;
public ValueJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
String widgetId,
String xpath,
JXPathBindingBase[] updateBindings,
... | 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 |
import org.apache.accumulo.tracer.TraceFormatter; | 1 |
conf.set("mapred.map.tasks.speculative.execution", "false");
| 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 |
super(org.apache.commons.bcel6.Const.ICONST_0, (short) 1);
super.setOpcode((short) (org.apache.commons.bcel6.Const.ICONST_0 + i)); // Even works for i == -1 | 0 |
writer.println("request.getParameter(\"xyz\"): " + request.getParameter("xyz")); | 0 |
import org.apache.atlas.typesystem.exception.EntityNotFoundException;
@Test(expectedExceptions = EntityNotFoundException.class)
Assert.assertEquals(GraphHelper.getIdFromVertex(TestUtils.TABLE_TYPE, tableVertex), expected);
Assert.assertEquals(GraphHelper.getTypeName(tableVertex), TestUtils.TABLE_TYP... | 1 |
* @version $Revision$ | 1 |
Map<TreeSet<String>,Long> diskUsage = TableDiskUsage.getDiskUsage(tableIds, fs, context); | 0 |
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.spec.MGF1ParameterSpec;
import java.util.Base... | 0 |
* @version CVS $Id: ProxyReader.java,v 1.3 2003/09/09 18:52:33 joerg Exp $ | 0 |
import com.google.cloud.dataflow.sdk.values.TimestampedValue;
tester.injectElements(
TimestampedValue.of(1, new Instant(1)),
TimestampedValue.of(2, new Instant(9)));
tester.injectElements(
TimestampedValue.of(6, new Instant(2)));
tester.injectElements(
TimestampedValue.of(1, ... | 0 |
shellState.getReader().printString(String.format("Unknown command \"%s\". Enter \"help\" for a list possible commands.%n", cmd)); | 0 |
import com.google.common.collect.ImmutableList;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable; | 0 |
private static final Set<String> VALID_OPTIONS = Set.of("hasher", "modulus"); | 0 |
Languages ls = Languages.getInstance(s);
public static List<Rule> getInstance(NameType nameType, RuleType rt, Languages.LanguageSet langs) {
return langs.isSingleton() ? getInstance(nameType, rt, langs.getAny()) : getInstance(nameType, rt, Languages.ANY);
public static List<Rule> getInst... | 0 |
import org.apache.hc.core5.testing.classic.LoggingConnPoolListener;
import org.apache.hc.core5.testing.classic.LoggingHttp1StreamListener; | 0 |
TreeMap<Key,Value> copy = new TreeMap<>(tabletMeta);
TreeMap<Key,Value> tabletMeta = new TreeMap<>();
TreeMap<Key,Value> copy = new TreeMap<>(tabletMeta);
copy = new TreeMap<>(tabletMeta);
copy = new TreeMap<>(tabletMeta); | 0 |
import org.apache.avalon.framework.component.Component;
import org.apache.avalon.framework.component.ComponentException;
import org.apache.avalon.framework.component.ComponentManager;
import org.apache.avalon.framework.component.Composable;
import org.apache.avalon.framework.logger.AbstractLogEnabled;
import org.apache... | 0 |
* @version $Id$
*/
* Construct a luminance image from src.
linearToSRGBLut[i] = (int)Math.round(value*255.0);
matrix[2][0] = 1; // Blu
float [][] matrix = null;
switch (srcSM.getNumBands()) {
case 1:
matrix = new flo... | 0 |
* @see org.apache.commons.exec.Executor | 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
... | 1 |
TimestampPolicy<String, String> policy, Instant now, List<Long> timestampOffsets) {
.stream()
.map(
ts -> {
Instant result =
policy.getTimestampForRecord(
null,
new KafkaRecord<>(
"top... | 1 |
import org.apache.xml.security.utils.XMLUtils;
import org.w3c.dom.Element;
selectedElem = doc.getElementById(id);
if (secureValidation) {
Element start = uri.getOwnerDocument().getDocumentElement();
if (!XMLUtils.protectAgainstWrappingAttack(start, 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 not... | 0 |
* @version $Id$ | 0 |
* @param request the request to process
* @param entity the request entity details or {@code null} if not available
void process(HttpRequest request, EntityDetails entity, HttpContext context) throws HttpException, IOException; | 0 |
import org.apache.http.message.LazyLaxLineParser;
this.lineParser = lineParser != null ? lineParser : LazyLaxLineParser.INSTANCE;
this.responseFactory = responseFactory != null ? responseFactory : DefaultHttpResponseFactory.INSTANCE; | 0 |
return new SimpleGeneratorHostKeyProvider("target/hostkey.rsa", "RSA"); | 0 |
* Copyright 2000-2009 The Apache Software Foundation | 0 |
public static final String IS_MERGING_WINDOW_FN = "is_merging_window_fn"; | 0 |
import javax.xml.parsers.DocumentBuilder;
DocumentBuilder db = XMLUtils.createDocumentBuilder(false, secureValidation);
db.setErrorHandler(new org.apache.xml.security.utils.IgnoreAllErrorHandler());
Document doc = db.parse(this.getOctetStream());
Document document = db.p... | 0 |
public ConcreteAffineRable(Filter src, AffineTransform affine) { | 0 |
import java.util.function.Predicate; | 0 |
super(org.apache.commons.bcel6.Const.LRETURN); | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 0 |
import org.apache.felix.gogo.api.CommandSessionListener; | 0 |
* @version CVS $Id: DefaultSessionManager.java,v 1.6 2004/03/17 12:09:51 cziegeler Exp $
this.getLogger().debug("END getContextFragment documentFragment=" + (frag == null ? "null" : XMLUtils.serializeNode(frag, XMLUtils.createPropertiesForXML(false))));
", fragment=" + (fragment == null ? "n... | 0 |
import org.apache.beam.sdk.extensions.sql.impl.interpreter.BeamSqlExpressionEnvironments;
.evaluate(NULL_ROW, NULL_WINDOW, BeamSqlExpressionEnvironments.empty()) | 0 |
Builder<String,String> builder = ImmutableMap.builder();
builder.put(optKey, v);
Map<String,String> opts = builder.build();
newDispatcher.init(() -> opts); | 0 |
@SuppressWarnings("resource") | 0 |
import org.apache.aurora.scheduler.cron.CronJobManager; | 0 |
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A> | 0 |
@Override
@Override
@Override
@Override | 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 |
* @deprecated (4.2) use {@link DefaultListeningIOReactor#DefaultListeningIOReactor(IOReactorConfig, ThreadFactory)}
@Deprecated
* @deprecated (4.2) use {@link DefaultListeningIOReactor#DefaultListeningIOReactor(IOReactorConfig)}
@Deprecated | 0 |
/*
* Copyright 2002, 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 requi... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayIntList.java,v 1.4 2003/01/09 13:40:11 rwaldhoff Exp $
* $Revision: 1.4 $
* $Date: 2003/01/09 13:40:11 $
import org.apache.commons.collections.primitive... | 0 |
clusters = fsmObject;
for (Map.Entry<String, RoleStats> entry : roleStats.entrySet()) {
String role = entry.getKey();
LOG.debug("Stats for role: {}, stats={}", role, stats);
// only fail the request if the role failed and the stage is not
// skippable
if... | 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.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.discovery.TimelineMetricMetadataKey;
@Override
public Map<String, TimelineMetricMetadataKey> getUuids() throws SQLException, IOException {
return null;
}
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.