Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
} catch (final Exception e) { | 0 |
final List<ComponentContainer> components = new ArrayList<ComponentContainer>();
for(final ComponentContainer container : module.getComponents()) {
if (!container.getComponentDescription().isCreateDs()) {
logger.debug("Ignoring descriptor for DS : " + container);
... | 0 |
* Copyright 2001-2005 The Apache Software Foundation
* @throws IOException when an error occurs.
* @throws IOException if there is no more data available.
* @throws MalformedStreamException if the stream ends unexpecetedly or
* fails to follow required syntax.
... | 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 |
package org.apache.xml.security.stax.test;
import org.apache.xml.security.stax.ext.stax.XMLSecEvent;
import org.apache.xml.security.stax.impl.transformer.canonicalizer.Canonicalizer11_OmitCommentsTransformer;
import org.apache.xml.security.stax.test.utils.XMLSecEventAllocator; | 0 |
import org.apache.http.client.methods.HttpRequestWrapper; | 0 |
* @version $Revision: 1.12 $ $Date: 2004/03/07 15:28:36 $
private String _catalog = null;
try {
_catalog = conn.getCatalog();
} catch (SQLException e) { }
try {
_catalog = conn.getCatalog();
} catch (SQLException e) { }
try {
_catalog = co... | 0 |
import org.apache.beam.sdk.coders.Coder;
import org.apache.beam.sdk.transforms.display.DisplayData;
import org.joda.time.Duration; | 0 |
import org.apache.ambari.server.configuration.Configuration;
import org.apache.ambari.server.security.authorization.jwt.JwtAuthenticationProperties;
private Configuration configuration;
public AmbariErrorHandler(@Named("prettyGson") Gson prettyGson, Configuration configuration) {
this.configuration = configurat... | 0 |
Copyright 2001,2003 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 l... | 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 |
public class LambdaExpressionTest
extends OgnlTestCase
{
// Lambda expressions
{ null, "#a=:[33](20).longValue().{0}.toArray().length", new Integer( 33 ) },
{ null, "#fact=:[#this<=1? 1 : #fact(#this-1) * #this], #fact(30)", new Integer( 1409286144 ) },
{ null, "#fact=:[#this<=1? 1 :... | 0 |
* @version CVS $Id: TreeBuilder.java,v 1.6 2004/06/09 09:41:15 cziegeler Exp $
* Build a processing tree from a <code>Source</code>. | 0 |
import java.util.Collections;
import org.apache.zookeeper.data.Stat;
options.addOption("s", false, "stat");
super("ls", "[-s] [-w] path");
boolean withStat = cl.hasOption("s");
try {
Stat stat = new Stat();
List<String> children;
if (withStat) {
... | 0 |
public void processElement(
@Element KV<K, Iterable<TimestampedValue<V>>> element,
OutputReceiver<KV<K, TimestampedValue<V>>> r) {
K key = element.getKey();
for (TimestampedValue<V> value : element.getValue()) {
... | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Objects;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; | 0 |
import org.apache.commons.ognl.test.objects.*;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import java.util.ArrayList;
import java.util.Collection;
@RunWith(value = Parameterized.class)
@Parameters
public static Collection<Object[]... | 0 |
private Factory<? extends Digest> factory;
public DHG(Factory<? extends Digest> digestFactory) throws Exception {
public DHG(Factory<? extends Digest> digestFactory, BigInteger pValue, BigInteger gValue) throws Exception { | 0 |
import com.thinkaurelius.titan.core.TitanGraph;
import org.apache.hadoop.metadata.repository.graph.GraphProvider;
private TitanGraph graph;
public RexsterGraphResource(GraphProvider<TitanGraph> graphProvider) {
this.graph = graphProvider.get();
return graph;
return graph.getIndexedKeys(... | 0 |
import org.apache.felix.framework.BundleRevisionImpl;
import org.apache.felix.framework.wiring.FelixBundleWire;
import org.osgi.framework.wiring.BundleCapability;
import org.osgi.framework.wiring.BundleRevision;
* Converts a revision identifier to a bundle identifier. Revision IDs
public static long getBundleI... | 0 |
.apply(NexmarkQueryUtil.JUST_BIDS) | 0 |
Assert.assertEquals(PassiveState.PASSIVE, scHost.getPassiveState());
Assert.assertEquals(PassiveState.PASSIVE, scHost.getPassiveState());
Assert.assertEquals(PassiveState.ACTIVE, scHost.getPassiveState());
Assert.assertEquals(PassiveState.ACTIVE, scHost.getPassiveState()); | 0 |
import org.apache.batik.css.engine.value.ValueManager; | 1 |
import org.apache.cocoon.portal.PortalService;
* @version CVS $Id: CopletSourceFactory.java,v 1.4 2003/07/18 14:41:44 cziegeler Exp $
PortalService service = null;
service = (PortalService)this.manager.lookup(PortalService.ROLE);
coplet = service.getComponentManager().getProfileManager(... | 0 |
* @version CVS $Id$
public interface JdoPMF { | 0 |
package org.apache.beam.sdk.values;
import org.apache.beam.sdk.Pipeline;
* {@link org.apache.beam.sdk.transforms.PTransform}.
* being used as an input to a {@link org.apache.beam.sdk.transforms.PTransform}. | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger log = LoggerFactory.getLogger(CleanUpIT.class); | 0 |
* @version CVS $Id: Constants.java,v 1.13 2004/05/27 13:14:36 cziegeler Exp $ | 0 |
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
new Uberspect(LogFactory.getLog(JexlEngine.class), JexlUberspect.JEXL_STRATEGY);
protected final Log logger;
this.logger = conf.logger() == null ? LogFactory.getLog(JexlEngine.class) : conf.logger();
pu... | 0 |
TreeMap<String,String> props = new TreeMap<>();
options = new HashMap<>();
List<IterInfo> ssiList = new ArrayList<>();
Map<String,Map<String,String>> ssio = new HashMap<>();
List<IterInfo> iters = new ArrayList<>(ssiList);
Map<String,Map<String,String>> allOptions = new HashMap<>();
So... | 0 |
IN, WIN, KIN, KEY, OUT, WLABEL, W extends WindowContext<WLABEL>,
String name, Flow flow, Windowing<WIN, WLABEL, W> windowing /* optional */, | 0 |
public void testNonAscii() throws VisibilityParseException {
VisibilityEvaluator ct = new VisibilityEvaluator(new Authorizations("五", "六", "八", "九", "五十"));
assertTrue(ct.evaluate(new ColumnVisibility(quote("五") + "|" + quote("四"))));
assertFalse(ct.evaluate(new ColumnVisibility(quote("五") + "&" + quote("... | 0 |
* @see org.apache.batik.gvt.text.TextSpanLayout | 0 |
public class Partition<T> extends PTransform<PCollection<T>, PCollectionList<T>> {
/////////////////////////////////////////////////////////////////////////////
public PartitionDoFn(int numPartitions, PartitionFn<? super X> partitionFn) { | 0 |
buf.append(this.incoming.getRequest().getPath()); | 0 |
try (AccumuloClient c = createAccumuloClient()) { | 0 |
ClientSession s = client.connect("test", "localhost", port).await().getSession();
ClientSession s = client.connect("test", "localhost", port).await().getSession();
s.addPasswordIdentity("test");
s.auth().verify();
ClientSession s = client.connect("test", "localhost", port).await(... | 0 |
import org.apache.beam.sdk.extensions.sql.meta.provider.test.TestTableUtils;
Schema beamSQLSchema = TestTableUtils.buildBeamSqlSchema(args);
this.rows.addAll(TestTableUtils.buildRows(type, Arrays.asList(args)));
this.rows.addAll(TestTableUtils.buildRows(type, args)); | 0 |
final String IMAP_LOGIN = "LOGIN";
if (IMAP_LOGIN.equalsIgnoreCase(cmd)) { // IMAP
String msg = event.getMessage();
msg=msg.substring(0, msg.indexOf(IMAP_LOGIN)+IMAP_LOGIN.length());
__writer.print(msg);
__wr... | 0 |
timestampOpt = new Option("st", "show-timestamps", false, "display timestamps");
disablePaginationOpt = new Option("np", "no-pagination", false, "disable pagination of output");
showFewOpt = new Option("f", "show few", true, "show only a specified number of characters"); | 0 |
/**
* Copyright 2013 Apache Software Foundation | 0 |
result = impl.makeRequestCompliant(req);
HttpEntityEnclosingRequest req =
| 0 |
// Set initial clip
g.clip(nodeRenderContext.getAreaOfInterest());
| 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.accumulo.examples.wikisearch.parser.RangeCalculator;
return Collections.singletonList(new Range()); | 0 |
buffer = session.createBuffer(SshConstants.SSH_MSG_USERAUTH_REQUEST, 0);
bs.putByte(SshConstants.SSH_MSG_USERAUTH_REQUEST);
byte cmd = buffer.getByte();
if (cmd == SshConstants.SSH_MSG_USERAUTH_SUCCESS) {
log.info("Received SSH_MSG_USERAUTH_SUCCESS... | 0 |
out = new ChannelOutputStream(this, remoteWindow, log, SshConstants.SSH_MSG_CHANNEL_DATA);
invertedIn = out;
in = pis;
invertedOut = in; | 1 |
return n.intValue() != 0 ? Boolean.TRUE : Boolean.FALSE;
childKey == null ? "null" : childKey,
return map == null || map.isEmpty(); | 0 |
*
* @since 4.0
* @version $Id$
public static <K, C> IndexedCollection<K, C> uniqueIndexedCollection(final Collection<C> coll,
final Transformer<C, K> keyTransformer) { | 0 |
* </p> | 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 |
TestUtils.sleep(testDelayMillis);
tailer = new Tailer(file, listener, delay, false);
writeString(file, "Line");
TestUtils.sleep(delay * 2);
List<String> lines = listener.getLines();
assertEquals("1 line count", 0, lines.size());
writeString(file, " one\n");
... | 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... | 1 |
Map<String, Host> hostsForCluster = new HashMap<>();
Map<String, Map<String, String>> hostConfigTags = new HashMap<>();
Set<Map<String, Object>> propertySet = new LinkedHashSet<>();
Map<String, Object> properties = new LinkedHashMap<>();
Map<String, Host> hostsForCluster = new HashMap<>();
Map<S... | 1 |
import java.nio.charset.StandardCharsets;
this.visibility = new String(visibility, StandardCharsets.UTF_8); | 0 |
ViewURLStreamProvider urlStreamProvider2 = createNiceMock(ViewURLStreamProvider.class);
expect(viewRegistry.createURLStreamProvider(viewContext)).andReturn(urlStreamProvider2);
// make sure the the provider is not cached
Assert.assertEquals(urlStreamProvider2, viewContext.getURLStreamProvider()); | 0 |
return application.getDefaultFontFamily(); | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 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... | 1 |
/**
* Is the minimal response parameter specified as true.
*
* @return true if the minimal response parameter is specified as true
*/
public boolean isMinimal(); | 0 |
import org.junit.Ignore;
@Ignore | 0 |
/* (non-Javadoc)
* @see java.lang.Object#clone()
*/
protected Object clone() throws CloneNotSupportedException {
CopletInstanceData clone = (CopletInstanceData)super.clone();
clone.copletData = this.copletData;
clone.attributes = new HashMap(this.attributes);
... | 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 |
* Space complexity of an operator's state in each window
* depending on the size of input.
public enum StateComplexity {
LINEAR,
SUBLINEAR,
CONSTANT,
ZERO,
CONSTANT_IF_COMBINABLE, | 0 |
* @version $Revision$ $Date$ | 0 |
* @since 2.1 | 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 this.cause; | 0 |
package org.apache.hc.core5.http.impl.nio;
import org.apache.hc.core5.http.nio.NHttpConnectionFactory;
import org.apache.hc.core5.http.nio.NHttpServerEventHandler; | 1 |
this.encoding = calculateRawEncoding(bomEnc, xmlGuessEnc, xmlEnc);
xmlGuessEnc, xmlEnc, lenient);
String xmlEnc) throws IOException {
String bomEnc, String xmlGuessEnc, String xmlEnc,
encoding = calculateRawEncoding(bomEnc, xmlGuessEnc, xmlEnc); | 0 |
/** The property value class. */
protected final Class<?> valueClass;
* @param value the value to assign to the property
public static PropertySetExecutor discover(Introspector is, Class<?> clazz, String property, Object value) {
java.lang.reflect.Method method = discoverSet(is, clazz, pro... | 0 |
request.setRepositoryVersion(null);
hmmc2.config = config;
Assert.assertFalse(hmmc2.isApplicable(request)); | 0 |
import org.apache.sshd.common.util.Transformer; | 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 |
@Override | 0 |
ArrayList<String> result = new ArrayList<>();
ArrayList<String> result = new ArrayList<>(); | 0 |
pool.setDefaultMaxPerRoute(2);
pool.setMaxTotal(2); | 0 |
@Override
@Override | 0 |
SaveCronJob cronJob = new SaveCronJob().setJobConfig(new JobConfiguration());
builder.add(createTransaction(Op.saveCronJob(cronJob)));
storageUtil.jobStore.saveAcceptedJob(IJobConfiguration.build(cronJob.getJobConfig()));
SaveTasks saveTasks = new SaveTasks(ImmutableSet.of(new ScheduledTask()));
bui... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/NodePointer.java,v 1.10 2002/08/10 16:13:03 dmitri Exp $
* $Revision: 1.10 $
* $Date: 2002/08/10 16:13:03 $
* @version $Revision: 1.10 $ $Date: 2002/08/10 16:13:03 $
Obje... | 0 |
import org.apache.beam.sdk.metrics.MetricsOptions;
MetricsOptions pipelineOptions,
.withArg(MetricsOptions.class, pipelineOptions) | 0 |
import org.apache.hadoop.metadata.types.AttributeDefinition;
import org.apache.hadoop.metadata.types.ClassType;
import org.apache.hadoop.metadata.types.DataTypes;
import org.apache.hadoop.metadata.types.EnumTypeDefinition;
import org.apache.hadoop.metadata.types.EnumValue;
import org.apache.hadoop.metadata.types.Hierar... | 1 |
public static void loadScripts(BridgeContext ctx, Element element) {
Document doc = element.getOwnerDocument();
NodeList list = element.getElementsByTagNameNS(SVG_NAMESPACE_URI,
SVG_SCRIPT_TAG); | 0 |
* Enforces security on the client side by requiring user credentials.
* @see <a href=https://accumulo.apache.org/docs/2.x/getting-started/clients>Accumulo Client
* Documentation</a>
* @see <a href=https://accumulo.apache.org/docs/2.x/configuration/client-properties>Client
* properties documentati... | 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 |
* <code>String --> type</code> conversion. | 0 |
boolean isRunning() {
return self.isRunning() && zk.isRunning();
} | 0 |
import org.apache.aurora.scheduler.configuration.ConfigurationManager;
private final ConfigurationManager configurationManager;
ConfigurationManager configurationManager,
this.configurationManager = requireNonNull(configurationManager);
configurationManager, | 0 |
Assert.fail("c not declared as variable");
Assert.assertTrue(msg.indexOf("c") > 0); | 0 |
IS_CONFIGURED, PRINCIPAL, TOKEN, TOKEN_CLASS | 0 |
/**
* Returns the number of hosts that form the cluster identified by the given name.
* @param clusterName the name that identifies the cluster
* @return number of hosts that form the cluster
*/
int getClusterSize(String clusterName);
| 0 |
public interface Render
{
void render( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException; | 0 |
* Implementation of the {@code NodePointerFactory} interface for
* @author <a
* href="http://commons.apache.org/configuration/team-list.html">Commons
* Configuration team</a> | 0 |
package org.apache.beam.sdk.coders;
import static org.apache.beam.sdk.util.Structs.addBoolean;
import org.apache.beam.sdk.util.CloudObject;
import org.apache.beam.sdk.util.PropertyNames; | 0 |
new HashMap<>();
Collection<String> processedServices = new HashSet<>();
missingHostGroupPropsMap = new HashMap<>();
missingHostGroupTypeProps = new HashSet<>(); | 1 |
package org.apache.bcel.generic;
super(org.apache.bcel.Const.L2D); | 1 |
case UPGRADED:
case CURRENT:{ | 0 |
* Copyright 2016-2017 Seznam.cz, a.s. | 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 |
fooProvider = Utils.getFactoryByName(getContext(), "BazProviderType");
Factory factory = Utils.getFactoryByName(getContext(), "composite.export.1");
assertEquals("Check no foo service", Utils.getServiceReferences(getContext(), FooService.class.getName(), null).length, 0);
ServiceReference ref = Utils.getService... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.