Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* @version $Id$ | 0 |
GraphHelper.setProperty(instanceVertex, Constants.MODIFIED_BY_KEY, RequestContext.get().getUser());
GraphHelper.setProperty(instanceVertex, Constants.MODIFIED_BY_KEY, RequestContext.get().getUser()); | 0 |
import java.util.Arrays;
import java.util.Iterator;
import java.util.Map.Entry;
for (Iterator<Entry<String, Set<Method>>> it = keys.entrySet().iterator(); it.hasNext(); ) {
Entry<String, Set<Method>> entry = it.next();
boolean zeroArgFound = false;
for (Method md : entry.get... | 0 |
final boolean reload = (request.getPathInfo() == null && request.getParameter(Constants.RELOAD_PARAM) != null);
this.processor = this.coreUtil.getProcessor(reload); | 0 |
import org.apache.beam.sdk.io.gcp.pubsub.PubsubIO;
import org.apache.beam.sdk.io.gcp.pubsub.PubsubMessageWithAttributesCoder;
import org.apache.beam.sdk.transforms.SimpleFunction;
* Suppress application of {@link PubsubUnboundedSource#expand} in streaming mode so that we can
* instead defer to Windmill's implemen... | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 0 |
long mutationsApplied = 0L;
long mutationsCopied = 0L; | 0 |
public static StaticSelectionList build(Element selectionListElement, Datatype datatype) throws Exception { | 0 |
private static final String MASTER_HOSTS_FILE = "masters", GC_HOSTS_FILE = "gc", TSERVER_HOSTS_FILE = "tservers", TRACER_HOSTS_FILE = "tracers", | 0 |
private ColumnToClassMapping<org.apache.accumulo.core.iterators.aggregation.Aggregator> aggregators;
@Override
private void aggregateRowColumn(org.apache.accumulo.core.iterators.aggregation.Aggregator aggr) throws IOException {
org.apache.accumulo.core.iterators.aggregation.Aggregator aggr = aggregators.get... | 0 |
import org.apache.batik.ext.awt.image.codec.util.SeekableStream; | 0 |
* href="http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#AppA"
* >Appendix A in the Java Cryptography Architecture Reference Guide</a> for information about standard
* algorithm names. | 0 |
import org.apache.cocoon.woody.datatype.Datatype;
import org.apache.cocoon.woody.datatype.DatatypeManager;
* @version CVS $Id: IntegerTypeBuilder.java,v 1.2 2004/03/01 03:50:58 antonio Exp $ | 0 |
if (!MetricFiltering.matches(filter, metricKey)) {
// Skip unmatched metrics early.
// This code is not robust to evolutions in the types of metrics that can be returned, so
// wrap it in a try-catch and log errors.
try {
String metricName = metricKey.metricName().name();
... | 0 |
register("/test/1", servlet1);
register("/test/2", servlet2);
register("/test/.*", filter);
assertContent("1.1", createURL("/test/1"));
assertContent("2.1", createURL("/test/2"));
assertContent("2.2", createURL("/test/2"));
assertContent("1.2", createURL("/test/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
... | 0 |
@NamedQuery(name = "AlertCurrentEntity.findByDefinitionId", query = "SELECT alert FROM AlertCurrentEntity alert WHERE alert.alertDefinition.definitionId = :definitionId"), | 0 |
int capacity(); | 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 com.twitter.mesos.scheduler.configuration.ConfigurationManager;
// TODO(ksweeney): Create a configuration validator module so this can be injected.
.toInstance(ConfigurationManager.MAX_TASKS_PER_JOB.get() * 2); | 0 |
TypeInformation<KV<K, VI>> kvCoderTypeInformation = new KvCoderTypeInformation<>(inputCoder);
Grouping<KV<K, VI>> inputGrouping = new UnsortedGrouping<>(inputDataSet, new Keys.ExpressionKeys<>(new String[]{"key"}, kvCoderTypeInformation));
FlinkPartialReduceFunction<K, VI, VA> partialReduceFunction = new Flink... | 0 |
synchronized T getTotalAggregate() {
return aggregate;
}
synchronized T getDeltaAggregate() {
return deltaAggregate;
}
synchronized long getTotalCount() {
return count;
}
synchronized long getDeltaCount() {
return deltaCount;
} | 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 static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class MutationTest {
/*
* Test constructing a Mutation using a byte buffer. The byte array returned as the row is converted to a hexadecimal string for... | 0 |
package org.apache.accumulo.core.client;
import org.apache.accumulo.core.conf.Property;
import org.apache.accumulo.core.conf.PropertyType;
*
* @since 1.6.0 | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables; | 0 |
ZooKeeperInstance inst = new ZooKeeperInstance(accumulo.getClientConfig()); | 0 |
/** Utilities for working with JSON and other human-readable string formats. */
* <p>Uses a simple strategy of converting each byte to a single char, except for non-printable
* chars, non-ASCII chars, and '%', '\', and '"', which are encoded as three chars in '%xx'
* format, where 'xx' is the hexadecimal encod... | 1 |
m_hosts = hosts == null ? new ConcurrentHashMap<>()
m_configurations = configurations == null ? new ConcurrentHashMap<>()
configGroupEntity.setConfigGroupHostMappingEntities(new HashSet<>());
configGroupEntity.setConfigGroupConfigMappingEntities(new HashSet<>()); | 0 |
* 22 metrics for 2hours in SECONDS (10 second data)
* => Reasonable upper bound on the limit such that our Precision calculation for a given time range makes sense.
private static final int METRICS_PER_MINUTE = 22;
private static final int POINTS_PER_MINUTE = 6;
public static int RESULTSET_LIMIT = (int)Time... | 0 |
* Sets the FileSystem to use for the created CombinedConfiguration and
* @param fileSystem The FileSystem
*/
public void setFileSystem(FileSystem fileSystem)
{
FileSystem.setDefaultFileSystem(fileSystem);
}
/** | 0 |
+ Arrays.toString(instances));
+ Arrays.toString(instances)); | 0 |
assertTrue("Expected one of password or keytab", password != null || keytab != null);
assertTrue("Expected one of password or keytab", password != null || keytab != null);
if (password != null) {
if (keytab != null) { | 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.
* @version $Revision: 1.4 $ $Date: 2003/10/13 07:03:50 $ | 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 |
* $Revision$ | 0 |
implements SVGFilterElement,
OverrideStyleElement,
ExtendedElementCSSInlineStyle,
ElementNonCSSPresentationalHints {
// ElementNonCSSPresentationalHints ////////////////////////////////////
/**
* Returns the translation of the non-CSS hints to the corresponding
* C... | 0 |
* Interface that may be required by some (internal) {@link DoFn}s to implement windowing. It should
* not be necessary for general user code to interact with this at all.
* Unsupported state internals. The key type is unknown. It is up to the user to use the correct
* type of key.
/** Output the value at the ... | 1 |
@SuppressWarnings("deprecation")
Class<?> mockClass = org.apache.accumulo.core.client.mock.MockInstance.class;
assertEquals(mockClass.getSimpleName(), conf.get(ConfiguratorBase.enumToConfKey(this.getClass(), ConfiguratorBase.InstanceOpts.TYPE)));
assertEquals(mockClass.getName(), instance.getClass().getNa... | 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 |
/** Result of {@link WinningBids} transform. */
public static final Coder<AuctionBid> CODER =
new CustomCoder<AuctionBid>() {
@Override
public void encode(AuctionBid value, OutputStream outStream)
throws CoderException, IOException {
Auction.CODER.encode(value.auction, outS... | 1 |
import de.flapdoodle.embed.mongo.MongodProcess;
import java.net.ServerSocket;
private static final transient MongodStarter mongodStarter = MongodStarter.getDefaultInstance();
private static transient MongodProcess mongodProcess;
private static int port;
try (ServerSocket serverSocket = new ServerSocket(0)) ... | 0 |
if (element == null) {
return null;
}
Element dsaKeyElement=null;
boolean isKeyValue = XMLUtils.elementIsInSignatureSpace(element,
Constants._TAG_KEYVALUE);
boolean isDSAKeyValue = XMLUtils.elementIsInSignatureSpace(element,
... | 0 |
public static synchronized Status openWithUnknownLength(long timeCreated) { | 0 |
context.addValueOnlyOutput(PropertyNames.OUTPUT, context.getOutput(transform));
context.addInput(PropertyNames.PARALLEL_INPUT, context.getInput(transform)); | 0 |
public void inform(CopletInstanceAddedEvent event) {
public void inform(CopletDefinitionAddedEvent event) {
public void inform(CopletInstanceRemovedEvent event) {
public void inform(LayoutAddedEvent event) {
public void inform(LayoutInstanceAddedEvent event) {
public void inform(LayoutRemovedEve... | 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 |
Map<String,String> props = new HashMap<>(); | 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 |
String[] leadingParts = leading.split("\\."); | 0 |
final BasicAsyncClientExchangeHandler exchangeHandler = (BasicAsyncClientExchangeHandler) this.connContext.getAttribute(
exchangeHandler.responseCompleted();
final BasicAsyncClientExchangeHandler exchangeHandler = (BasicAsyncClientExchangeHandler) this.connContext.getAttribute(
final Bas... | 0 |
public class SQLTransformer extends AbstractSAXTransformer
implements Disposable, Configurable {
for (Enumeration e = query_parts.elements(); e.hasMoreElements();) {
Object object = e.nextElement();
if (object instanceof String) {
... | 0 |
* <p>{@link ParDo} registers its internal {@link DoFn} as a subcomponent for display data. | 0 |
cfg.setProperty(Property.INSTANCE_ZK_TIMEOUT, "3s"); | 0 |
@SuppressWarnings("TypeParameterShadowing") | 0 |
CodeExceptionGen h = handlers[i];
String type = (h.getCatchType() == null)?
"null" : BCELifier.printType(h.getCatchType());
type + ");"); | 0 |
private UriInfo uri = null;
public UriInfo getUri() { | 0 |
private String includePropertyName = null;
/**
* This is the default name of the property that can point to other
* properties file for including other properties files.
*
* @deprecated Use getInclude() and setInclude() methods which operate
* on an instance variable from v3.3. Due to... | 0 |
Assert.assertEquals(3, subResourceDefinitions.size());
Assert.assertTrue(type.name().equals("sub1") || type.name().equals("sub2") || type.equals(Resource.Type.ViewPrivilege)); | 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 long isReady(long tid, Master environment) { | 0 |
* @version $Revision$ | 0 |
public static final int TACACS_USER_IDENTIFICATION = 26;
private static final int __FIRST_OPTION = BINARY;
private static final int __LAST_OPTION = EXTENDED_OPTIONS_LIST; | 0 |
@Requires(optional = true, specification = Architecture.class)
@Requires(optional = true, specification = Factory.class)
@Requires(optional = true, specification = HandlerFactory.class)
private String readTemplate(final String templateFile) { | 0 |
public static final JavaSparkContext EMPTY_CONTEXT = null;
| 0 |
session.addFirst(new ShutdownCommand(ShutdownType.GRACEFUL)); | 0 |
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import org.apache.bcel.classfile.Attribute;
import org.apache.bcel.classfile.Code;
import org.apache.bcel.classfile.CodeException;
import org.apache.bcel.classfile.ConstantFieldref;
import org.apache.bcel.classfile.ConstantInterfac... | 0 |
uniqueSet = UnmodifiableSet.<E> unmodifiableSet(map.keySet()); | 0 |
* Copyright 1999-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 ... | 1 |
@Override | 0 |
private VisibilityEvaluator ve;
private Text defaultVisibility;
private LRUMap cache;
private Text tmpVis;
private static final Logger log = Logger.getLogger(VisibilityFilter.class);
public VisibilityFilter(Authorizations authorizations, byte[] defaultVisibility) {
this.ve = new VisibilityEvaluato... | 1 |
* @since 1.0.0 | 0 |
List<RoleAuthorizationEntity> authorizationEntities = new ArrayList<>();
List<RoleAuthorizationEntity> authorizationEntities = new ArrayList<>();
List<RoleAuthorizationEntity> authorizationEntities = new ArrayList<>(); | 1 |
for (Map.Entry<String, Map<String, Metric>> metricByCategory : metricDefinition.getMetricsByCategory().entrySet()) {
Iterator<Map.Entry<String, Metric>> iterator = metricByCategory.getValue().entrySet().iterator();
Map<String, Metric> newMetricsToAdd = new HashMap<>();
... | 0 |
import org.osgi.framework.ServiceRegistration;
// The registration of the security decorator factory (i.e., the service)
private volatile ServiceRegistration m_registration;
m_registration = context.registerService(EventAdmin.class.getName(),
// We need to unregister manually
m_regi... | 0 |
* @param id unique operation ID or {@code null}.
String id,
* @param id unique operation ID or {@code null}.
String id, | 0 |
new ConfigurationNodePointer<>(nd, Locale.ENGLISH,
new ConfigurationAttributePointer<>(parent, | 0 |
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.when;
import com.google.cloud.dataflow.sdk.util.gcsfs.GcsPath;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
@Mock private GcsUtil mockGcsUtil;
public void setUp() throws Except... | 0 |
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
... | 0 |
public List<ACL> aclForNode(DataNode n) {
return dataTree.getACL(n);
}
return dataTree.aclCacheSize(); | 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 void setRepository( org.apache.commons.bcel6.util.Repository repository ) { // TODO make protected? | 0 |
import static org.junit.Assert.assertFalse;
@Test
public void testHasExperiment() {
DataflowPipelineDebugOptions options =
PipelineOptionsFactory.as(DataflowPipelineDebugOptions.class);
options.setExperiments(null);
assertFalse(DataflowRunner.hasExperiment(options, "foo"));
options.setExp... | 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 |
tlsSession.startTls(
sslContext,
host,
sslBufferManagement, | 0 |
System.err.println("Auto-properties install: " + location + " ("
+ ex + ((ex.getCause() != null) ? " - " + ex.getCause() : "") + ")");
if (ex.getCause() != null)
ex.printStackTrace();
System.err.println("Auto-properties start: " + location + " ("
... | 0 |
public static class AttrTypeInfo implements TypeInfo { | 0 |
Set<Entry<ServerType,Collection<ProcessReference>>> procs =
getCluster().getProcesses().entrySet(); | 0 |
package org.apache.felix.sigil.common.junit; | 0 |
private SubnetInfo() {}
public boolean isInRange(String address) { return isInRange(toInteger(address)); }
private boolean isInRange(int address) { return ((address-low()) <= (high()-low())); }
public String getBroadcastAddress() { return format(toArray(broadcast())); }
public String getNetworkAddr... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BufferUnderflowException.java,v 1.8 2003/10/09 20:58:52 scolebourne Exp $
* @version $Revision: 1.8 $ $Date: 2003/10/09 20:58:52 $
* @param exception the root cause of the e... | 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 |
initializeThreadPool(master); | 0 |
* @version CVS $Id: WidgetEventMulticaster.java,v 1.2 2004/06/15 07:33:43 sylvain Exp $
//-- Create ---------------------------------------------------------------
public static CreateListener add(CreateListener a, CreateListener b) {
return (CreateListener)addInternal(a, b);
}
public... | 0 |
import org.apache.beam.model.pipeline.v1.RunnerApi; | 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.cocoon.CocoonTestCase;
public class FieldTestCase extends CocoonTestCase { | 0 |
import org.apache.hc.client5.http.impl.sync.RoutedHttpRequest; | 0 |
import com.google.common.collect.Lists;
import com.google.common.collect.Maps; | 0 |
public void loadFiles(TInfo tinfo, TCredentials credentials, long tid, String dir,
Map<TKeyExtent,Map<String,MapFileInfo>> fileMap, boolean setTime) {} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.