Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
o.addOption(OptUtil.startRowOpt()); | 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 |
// This must be an administrative action?
// TODO: Perform authorization check for this? | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
* @author Stephen Kestle
@RunWith(Suite.class)
@SuiteClasses({
org.apache.commons.collections.TestAll.class,
org.apache.commons.collections.bag.TestAll.class,
org.apache.commons.collections.bidimap... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/TransformedBag.java,v 1.2 2003/08/31 17:24:46 scolebourne Exp $
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may ... | 0 |
import com.twitter.mesos.scheduler.thrift.auth.CapabilityValidator.Capability;
import com.twitter.mesos.scheduler.thrift.auth.Requires;
@Requires(whitelist = Capability.PROVISIONER) | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/test/org/apache/commons/jxpath/ri/model/beans/BeanModelTest.java,v 1.3 2003/01/20 00:00:28 dmitri Exp $
* $Revision: 1.3 $
* $Date: 2003/01/20 00:00:28 $
* @version $Revision: 1.3 $ $Date: 2003/01/20 00:00:28 $
public ... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/AbstractDoubleListList.java,v 1.2 2003/08/31 17:21:17 scolebourne Exp $
* any, must include the following acknowledgement:
* Alternately, this ack... | 0 |
private final static String PROP_CACHESTATE ="cacheState";
PROP_CACHESTATE,
value = properties.getProperty(PROP_CACHESTATE);
if (value != null) {
dataSource.setCacheState(Boolean.valueOf(value).booleanValue());
}
| 0 |
return new UnmodifiableList<>(list);
return new UnmodifiableList<>(sub); | 1 |
} else if (LOG.isDebugEnabled()) { | 0 |
// Defensive coding as this should not happen in practice | 0 |
* @version $Revision: 1.6 $
AttainTag attainTag =
(AttainTag) findAncestorWithClass(AttainTag.class);
if (attainTag == null) {
session = new JellySession(output);
}
else {
Project project = getProject();
if (project == null) {
... | 0 |
import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.context.ContextException;
import org.apache.avalon.framework.context.Contextualizable;
import org.apache.cocoon.components.ContextHelper;
* @version CVS $Id: AspectRenderer.java,v 1.4 2003/12/12 10:13:34 cziegeler Exp $
implemen... | 0 |
public void setAutoCommit(final boolean autoCommit)
final File script = ConfigurationAssert.getTestFile("testdb.script");
public DatabaseBuilderParameters setUpMultiParameters(final String configName)
public <T extends DatabaseConfiguration> T createConfig(final Class<T> configCls,
final... | 0 |
*
*
*/
private static final char MODEL[] = new char[0];
* @return the converted value
if (MODEL.getClass() == value.getClass()) { | 0 |
assertNull(reduce.valueComparator);
@Test
public void testBuild_sortedValues() {
Flow flow = Flow.create("TEST");
Dataset<String> dataset = Util.createMockDataset(flow, 2);
Dataset<Pair<String, Long>> reduced = ReduceByKey.of(dataset)
.keyBy(s -> s)
.valueBy(s -> 1L)
... | 0 |
import java.util.stream.Collectors;
NamedFactory<UserAuth> factory = NamedResource.findByName(m, String.CASE_INSENSITIVE_ORDER, userAuthFactories);
s, NamedResource.getNames(userAuthFactories));
Factory<UserAuth> factory = NamedResource.findByName(method, String.CASE_IN... | 0 |
@Test
// In 1.6.0, multiple start's did not throw an exception as advertised
accumulo.start(); | 0 |
4. The names "Apache Cocoon" and "Apache Software Foundation" must not be
Stefano Mazzocchi <stefano@apache.org>. For more information on the Apache
Software Foundation, please see <http://www.apache.org/>.
* @version $Id: Action.java,v 1.2 2004/03/01 20:11:17 joerg Exp $ | 0 |
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState)
throws AccumuloException, AccumuloSecurityException {
connector.securityOperations().changeUserAuthorizations(user,
ScanCommand.parseAuthorizations(userAuths.substring(0, userAuths.length() - 1)));
publi... | 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.core.security.tokens.UserPassToken;
private static final UserPassToken TEST_TOKEN = new UserPassToken(TEST_USER, TEST_PASS);
getConnector().securityOperations().createUser(TEST_TOKEN);
test_user_conn.securityOperations().createUser(TEST_TOKEN);
root_conn.security... | 0 |
return TableState.ONLINE == Tables.getTableState((ClientContext) client, ID); | 0 |
GANGLIA_CLUSTER_NAMES.add("HDPSlaves"); | 0 |
import static com.google.common.base.Charsets.UTF_8;
if (!security.canScan(credentials, new String(textent.getTable(), UTF_8)))
tables.add(new String(keyExtent.getTable(), UTF_8));
if (!security.canWrite(credentials, new String(tkeyExtent.getTable(), UTF_8)))
String tableId = new String(ByteBu... | 0 |
Class<?> safeModeAction;
safeModeAction = Class.forName("org.apache.hadoop.hdfs.protocol.HdfsConstants$SafeModeAction");
safeModeAction = Class.forName("org.apache.hadoop.hdfs.protocol.FSConstants$SafeModeAction"); | 0 |
@Test
public void testFindProperClassLoaderIfContextClassLoaderIsNull() throws InterruptedException {
final ClassLoader[] classLoader = new ClassLoader[1];
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
classLoader[0] = ReflectHelpers.findClassLoader();
... | 0 |
* @return {@code true} if {@code wrapped} should be closed,
* @return {@code true} if {@code wrapped} should be closed,
* @return {@code true} if {@code wrapped} should be closed, | 0 |
* Custom windmill_main binary to use with the streaming runner.
*/
@Description("Custom windmill_main binary to use with the streaming runner")
String getOverrideWindmillBinary();
void setOverrideWindmillBinary(String value);
/** | 0 |
Collection<V> get(K key);
boolean putAll(Map<? extends K, ? extends V> map);
boolean putAll(MultiValuedMap<? extends K, ? extends V> map);
boolean removeMapping(Object key, Object item); | 0 |
import java.util.Collections;
import org.apache.ambari.server.api.resources.ResourceInstance;
import org.apache.ambari.server.controller.spi.Resource; | 0 |
import org.apache.commons.collections4.set.UnmodifiableSet;
* @throws NullPointerException if the argument is null
throw new NullPointerException("Get must not be null");
return get instanceof IterableMap ?
((IterableMap<K, V>) get) :
MapUtils.iterabl... | 0 |
package org.apache.felix.karaf.gshell.features.management;
} | 0 |
public void testGetDomainRoot() throws Exception {
Assert.assertEquals("example.xx", matcher.getDomainRoot("example.XX"));
Assert.assertEquals("example.xx", matcher.getDomainRoot("www.example.XX"));
Assert.assertEquals("example.xx", matcher.getDomainRoot("www.blah.blah.example.XX"));
... | 0 |
import org.apache.commons.vfs2.provider.AbstractFileName;
protected FileObject createFile(final AbstractFileName name) throws FileSystemException | 0 |
// Taken from Version 2018092800, Last Updated Fri Sep 28 07:07:02 2018 UTC
// "boots", // boots THE BOOTS COMPANY PLC
"charity", // charity Corn Lake, LLC
// "goodhands", // goodhands Allstate Fire and Casualty Insurance Company
"inc", // inc Intercap Holdings Inc.
// "iwc"... | 0 |
package org.apache.felix.sigil.ui.eclipse.ui.form; | 0 |
throw new XMLSecurityException("signature.Transform.UnknownTransform",
new Object[] {algoURI}); | 0 |
synchronized (this) {
// close old Spring application context
if(log.isDebugEnabled()) {
this.log.debug("Removing old application context: " + oldAc);
log.debug("Reloading Spring application context: "... | 0 |
import org.apache.cocoon.template.jxtg.instruction.MacroContext;
ExecutionContext executionContext, MacroContext macroContext, | 0 |
package org.apache.felix.framework.searchpolicy; | 1 |
import org.apache.ambari.groovy.client.AmbariClient;
import org.apache.ambari.shell.converter.BlueprintConverter;
import org.apache.ambari.shell.converter.HostConverter;
import org.springframework.beans.factory.annotation.Autowired;
@Autowired
private AmbariClient client;
@Bean
Converter blueprintConverter() ... | 0 |
import org.apache.cocoon.portal.factory.ProducibleDescription;
* @version CVS $Id: LayoutDescription.java,v 1.2 2003/05/20 14:06:43 cziegeler Exp $
public interface LayoutDescription
extends ProducibleDescription { | 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 |
* @version CVS $Id$ | 0 |
Copyright 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 applicable law or a... | 0 |
parser.parse( _options, args);
parser.parse(_options, args); | 0 |
private final boolean fileOwned;
private final String file_name; | 0 |
import com.google.cloud.dataflow.sdk.util.common.worker.StateSampler.StateKind;
protected StateKind getStateSamplerStateKind() {
return StateKind.FRAMEWORK;
}
@Override
// This code path is only used in tests.
this.readState = stateSampler.stateForName("shuffle", StateSampler.StateKind.FRAMEW... | 0 |
import org.apache.atlas.model.legacy.EntityResult;
import org.apache.atlas.repository.converters.AtlasFormatConverter.ConverterContext; | 0 |
float[] fl = new float[n];
if (purl.equals(iter.next()))
public static Float[] convertSVGNumberOptionalNumber(Element elem,
(filterElement, null,
(filterElement,
String dxStr = filterElement.getAttributeNS(null,
* specified differential coordinates.
... | 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.http.util.EntityUtils;
EntityUtils.consume(entity); | 0 |
public ServletInfo(final ServiceReference<Servlet> ref)
this.servlet = null; | 0 |
import javax.ws.rs.core.*; | 0 |
* Returns the last sampled document time.
*/
public float getCurrentTime() {
return lastSampleTime;
}
/**
public void seekTo(float time, boolean hyperlinking) {
lastSampleTime = time;
es[i].sampleAt(time, hyperlinking);
es[i].sampleAt(time, hype... | 0 |
import org.apache.felix.framework.util.*;
private final static SecureAction m_secureAction = new SecureAction();
String pkgs = m_secureAction.getProperty(STREAM_HANDLER_PACKAGE_PROP, "");
if (m_secureAction.forName(className) != null)
String pkgs = m_secureAc... | 0 |
private static final Logger LOG = LoggerFactory.getLogger(ViewRegistry.class); | 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 |
public void unspecifiedStringKeys() throws Exception {
SpannerSchema.Builder builder = SpannerSchema.builder();
builder.addColumn("test", "key", "STRING");
builder.addKeyPart("test", "key", false);
builder.addColumn("test", "keydesc", "STRING");
builder.addKeyPart("test", "keydesc", true);
... | 0 |
*
+ ", strictMode=" + strictMode
+ ", specVersion=" + specVersion); | 0 |
private final Window<T> transform;
public AssignWindows(Window<T> transform) { | 0 |
import static org.junit.Assert.assertNotNull;
* Tests a successful locate() operation.
*/
@Test
public void testLocateSuccess() throws ConfigurationException
{
FileHandler handler = new FileHandler();
handler.setFileName(TEST_FILENAME);
assertTrue("Wrong result", handler.lo... | 0 |
return listSplits(tableName);
}
@Override
public Collection<Text> getSplits(String tableName, int maxSplits) throws TableNotFoundException {
return listSplits(tableName);
}
@Override
public Collection<Text> listSplits(String tableName) throws TableNotFoundException {
public Collection<Text>... | 0 |
import java.util.Collection;
import org.osgi.framework.InvalidSyntaxException;
public boolean matches(Map<String, ?> map)
{
return false;
}
public <S> ServiceRegistration<S> registerService(Class<S> clazz, S service, Dictionary<String, ?> properties)
{
... | 0 |
// configuration pid in 1.2
if ( componentDesc.getConfigurationPid() != null && !componentDesc.getConfigurationPid().equals(componentDesc.getName())) {
comp.setConfigurationPid(componentDesc.getConfigurationPid());
comp.setSpecVersion(SpecVersion.VERSION_1_2);
}
| 0 |
package org.apache.felix.examples.spellcheckservice;
public interface SpellCheckService | 0 |
import java.util.Collection;
MetadataCollector collector = new MetadataCollector();
cr.accept(collector, 0);
if (collector.isIgnoredBecauseOfMissingComponent()) {
warn("Annotation processing ignored in " + collector.getClassName() + " - @Component missing");
} else i... | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; | 0 |
import aQute.lib.osgi.Constants;
String[] removeHeaders = builder.getProperty( Constants.REMOVEHEADERS, "" ).split( "," );
properties.put( Constants.REMOVEHEADERS, Analyzer.INCLUDE_RESOURCE + ',' + Analyzer.PRIVATE_PACKAGE ); | 0 |
import java.util.List;
public class WatermarkTriggering extends AbstractTriggering {
private final long watermarkDuration;
private long currentWatermark;
super();
final List<TriggerTask> activeTasks;
activeTasks = new ArrayList<>(getScheduledTriggers().values());
this.cancelAll();
fo... | 0 |
import org.apache.commons.vfs.FileSystem;
protected Class<? extends FileSystem> getConfigClass() | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/decorators/Attic/BaseUnmodifiableIntListIteratorTest.java,v 1.2 2003/08/31 17:28:45 scolebourne Exp $
* any, must include the following acknowledgement:
* Altern... | 0 |
int length = contextNodes.getLength();
for (int i = 0; i < length; i++) { | 0 |
// We don't count the broadcast address as usable
@SuppressWarnings("unused")
SubnetUtils utils = new SubnetUtils("192.168.0.1/0");
fail("Mask /0 should have generated an IllegalArgumentException");
catch (IllegalArgumentException expected) { | 0 |
import java.util.Map;
import org.apache.accumulo.core.iterators.IteratorUtil;
Map<String,String> opts = IteratorUtil.generateInitialTableProperties(true);
for (Entry<String,String> e : opts.entrySet()) {
zoo.putPersistentData(zPath + Constants.ZNAMESPACE_CONF + "/" + e.getKey(), e.getValue().getBytes... | 0 |
import org.apache.commons.digester3.rule.AbstractRulesModule; | 0 |
import org.apache.beam.sdk.schemas.Schema; | 0 |
import org.apache.accumulo.core.clientImpl.ClientContext;
FunctionalTestUtils.assertNoDanglingFateLocks((ClientContext) c, getCluster());
FunctionalTestUtils.assertNoDanglingFateLocks((ClientContext) c, getCluster()); | 0 |
import org.xml.sax.Attributes;
* {@inheritDoc}
public List<Rule> match( String namespaceURI, String path, String name, Attributes attributes )
matches = parent.match( namespaceURI, path, name, attributes );
matches = decoratedRules.match( namespaceURI, path, name, attributes ); | 0 |
/*
* @author <a href="mailto:felix-dev@incubator.apache.org">Felix Project Team</a>
*/ | 0 |
if (len > 0 && this.linebuffer.byteAt(len - 1) == Chars.CR) {
len--; | 0 |
import org.apache.ambari.server.state.Host;
public HostOfferResponse offer(Host host) {
if (hostGroupName == null) {
outstandingHostRequests.clear();
} else {
outstandingHostRequests.removeAll(pendingHostRequests);
}
requestsWithReservedHosts.keySet().removeAll(pendingReservedHostNames);
... | 0 |
* @version CVS $Id$ | 0 |
* @see <A HREF="https://github.com/openssh/openssh-portable/blob/master/PROTOCOL">OpenSSH - section 3.4</A> | 0 |
import org.w3c.dom.events.CustomEvent;
public class DOMCustomEvent extends DOMEvent implements CustomEvent {
* The custom detail associated with this event.
protected Object detail;
* Returns the custom detail of this event.
public Object getDetail() {
return detail;
... | 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 |
* <p>This class is immutable and thread-safe.</p> | 0 |
SimpleRequestProducer.create(request, null),
SimpleResponseConsumer.create(), | 0 |
import org.apache.ambari.server.controller.HostRequest;
import org.apache.ambari.server.controller.HostResponse;
return getRootServiceHostComponents(
// Get the root service host components for the given set of requests
protected Set<RootServiceHostComponentResponse> getRootServiceHostComponents(
Set<... | 0 |
Object parentObject = findBeanAncestor();
if (log.isDebugEnabled()) {
log.debug("About to set the: " + tagName
+ " property on: " + parentObject + " to value: "
+ nested + " with type: " + nested.getClass()
... | 0 |
/*
* Copyright 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 |
(new org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI(), 1); | 0 |
* @version $Revision$ $Date$ | 0 |
// private DTMManager m_dtmManager = null;
// private DTMManager _oldDTMManager = null; | 0 |
-10,
Node nextSibling, prevSibling;
if (nodeValue == null) {
nodeValue = "";
}
childNodes = new NodeList() {
public int getLength() {
return nodeList.size();
... | 0 |
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.transforms.DoFnAdapters;
import org.apache.beam.sdk.transforms.reflect.DoFnSignatures;
DoFn<InputT, OutputT> doFn,
this.doFn = DoFnAdapters.toOldDoFn(doFn);
this.requiresWindowAccess =
DoFnSignatures.signatureForDoFn(doFn).proc... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.