Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* 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 |
package org.apache.accumulo.core.client.mock;
import org.apache.accumulo.core.client.BatchWriter;
import org.apache.accumulo.core.client.MutationsRejectedException;
import org.apache.accumulo.core.data.Mutation;
public class MockBatchWriter implements BatchWriter {
final String tablename;
final MockAccum... | 1 |
when(bundle.getState()).thenReturn(Bundle.ACTIVE);
when(b.getState()).thenReturn(Bundle.ACTIVE); | 0 |
case serviceObjects : obj = ((ComponentServiceObjectsHelper)key.getComponentServiceObjectsHelper()).getServiceObjects(refPair.getRef()); break; | 0 |
* Tests that commands created for {@link org.apache.ambari.server.state.stack.upgrade.StageWrapper.Type#RU_TASKS} set the | 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 |
if (m_services.size() == 1 && m_services.contains(service)) {
m_services.remove(service);
sb.append(' '); | 0 |
String compareName = qualifiedName(name); | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
public Map<String,EnumSet<IteratorScope>> listIterators(String tableName) throws AccumuloSecurityException, AccumuloException, TableNotFoundException; | 0 |
Map<String, String> commandParams = new HashMap<>();
ConcurrentMap<String, Object> requestSharedDataContext = new ConcurrentHashMap<>(); | 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 |
*
* @deprecated use {@link DefaultHttpRequestParser}
@SuppressWarnings("unchecked")
@Deprecated | 0 |
firstTask.getAssignedTask().getTask().unsetInstanceId(); | 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 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.conn.ConnectTimeoutException; | 0 |
@Override | 0 |
public String toString() { | 0 |
import javax.security.auth.login.Configuration;
import javax.security.auth.login.LoginException;
| 0 |
StringBuilder sb = new StringBuilder();
@Override public int hashCode() {
return toString().hashCode();
} | 0 |
import java.util.Collections;
import java.util.Map;
@Override
public final Map<TupleTag<?>, PValue> expand() {
return Collections.<TupleTag<?>, PValue>singletonMap(tag, this);
}
/**
* A local {@link TupleTag} used in the expansion of this {@link PValueBase}.
*/
private final TupleTag<?> tag = new T... | 0 |
for (Iterator i = children.iterator(); i.hasNext();) { | 0 |
/*
* $Id$
* 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... | 0 |
package org.apache.beam.sdk.extensions.sql.planner;
import org.apache.beam.sdk.extensions.sql.rel.BeamRelNode;
import org.apache.beam.sdk.extensions.sql.rule.BeamAggregationRule;
import org.apache.beam.sdk.extensions.sql.rule.BeamFilterRule;
import org.apache.beam.sdk.extensions.sql.rule.BeamIOSinkRule;
import org.apac... | 0 |
DfsLogger alog = new DfsLogger(tserver.getServerConfig(), syncCounter, flushCounter);
log.debug("Created next WAL " + alog.getFileName());
log.info("Our WAL was not used for 12 hours: " + alog.getFileName());
log.error("{}", t.getMessage(), t); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/bean/src/test/org/apache/commons/jelly/tags/bean/Product.java,v 1.2 2003/10/09 21:21:15 rdonkin Exp $
* $Revision: 1.2 $
* $Date: 2003/10/09 21:21:15 $
* any, must include the following acknowledgement:
* ... | 0 |
opts.setClientInfo(getClientInfo());
vopts.setClientInfo(getClientInfo()); | 0 |
* delivers a file-not-folder exception which happens when trying to issue
* {@link org.apache.commons.vfs.FileObject#getChildren()} on a file.
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a>
} | 0 |
package org.apache.felix.ipojo.test.scenarios.component;
public class ReconfigurableSimpleType {
private String prop; // Property.
public void start () {
if (prop == null || prop.equals("KO")) {
throw new IllegalStateException("Bad Configuration : " + prop);
}
System.out.println("OK !!!!");
}
} | 0 |
public class ProcessingException extends LocatedException { | 0 |
import java.util.concurrent.FutureTask;
* This class schedules message execution execution and processing
* as {@link FutureTask}s with the provided {@link ExecutorService}.
public <T> FutureTask<T> execute(
public <T> FutureTask<T> execute( | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/PredicatedList.java,v 1.3 2003/05/11 13:14:51 scolebourne Exp $
* @version $Revision: 1.3 $ $Date: 2003/05/11 13:14:51 $
public Object remove(int index) {
... | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Maps; | 0 |
* {@code null}, {@code null} and {@code false}, respectively.
* @return the Content-Type header, or {@code null}
* @return the Content-Encoding header, or {@code null}
* {@code null} to unset
* {@code null} to unset
* ... | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
this(httpProcessor, pushHandlerFactory, null, null, streamListener);
this(httpProcessor, null, streamListener);
pushHandlerFactory, h2Config, charCodingConfig, streamListener); | 0 |
* Copyright (c) 2002, 2003 The Apache Software Foundation. All rights | 0 |
public static void registerExtension(DHFactory extension) {
public static SortedSet<DHFactory> getRegisteredExtensions() {
public static DHFactory unregisterExtension(String name) {
public static BuiltinDHFactories fromFactoryName(String name) {
public static ParseResult parseDHFactoriesList(String ... | 0 |
import org.apache.accumulo.core.data.NamespaceId;
public static boolean setNamespaceProperty(ServerContext context, NamespaceId namespaceId,
public static void removeNamespaceProperty(ServerContext context, NamespaceId namespaceId,
private static String getPath(ServerContext context, NamespaceId namespaceId) { | 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 |
if (this.getDataSource() == null) { | 0 |
super(Type.ClusterKerberosDescriptor, PROPERTY_IDS, KEY_PROPERTY_IDS, managementController); | 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.commons.lang.StringUtils;
mapIds.put(Resource.Type.User, StringUtils.lowerCase(userName)); | 0 |
BeanMap.defaultTransformers.putAll(new HashMap<>()); | 0 |
* Create new index
* @param indexName The name of the index to be created
* @param tableName The database table the index to be created on
* @param columnNames The columns included into the index
* @param isUnique Specifies whether unique index is to be created.
* @throws SQLException Exception in cas... | 0 |
new HashMap<>();
Map<String, String> queryParameters = new HashMap<>(); | 0 |
import org.apache.aurora.scheduler.storage.mem.MemStorageModule;
storage = MemStorageModule.newEmptyStorage();
storage = MemStorageModule.newEmptyStorage();
storage = MemStorageModule.newEmptyStorage(); | 0 |
response.setParams(params); | 0 |
import java.util.TreeSet;
private String[] locales;
TreeSet localeSet = new TreeSet();
if ( name.length() > 0 )
{
localeSet.add( name );
locales = ( String[] ) localeSet.toArray( new String[localeSet.size()] );
return ( locales.leng... | 0 |
/*
* $Id$
* 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... | 0 |
* The annotations are not interpreted in runtime.
package org.apache.felix.scr.annotations; | 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 |
OptionalMethodBuilder<WindowByBuilder<OutputT>, Builders.Output<OutputT>>,
Builders.Output<OutputT> {
default Builders.Output<OutputT> applyIf(
boolean cond, UnaryFunction<WindowByBuilder<OutputT>, Builders.Output<OutputT>> fn) {
extends Builders.WindowedOutput<WindowedOutputBuilde... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/bidimap/TestDualHashBidiMap.java,v 1.2 2003/11/18 22:37:16 scolebourne Exp $
* @version $Revision: 1.2 $ $Date: 2003/11/18 22:37:16 $
public BidiMap makeEmptyBidiMap() {
p... | 0 |
/*
* $Id$
*
* 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
* "Lice... | 0 |
if (getValidate() && table != null && table.isAccessible() && table.get().getProjectId()
!= null) {
.setTableDescription("")
/** Table description. Default is empty. */
abstract String getTableDescription();
// We must have a destination to write to!
input.apply("PrepareW... | 0 |
import org.apache.beam.sdk.runners.AppliedPTransform; | 0 |
package org.apache.commons.net.ftp; | 0 |
* Abstract text entity content consumer.
*
*
* @param <T> entity representation.
/**
* Triggered to signal beginning of entity content stream.
*
* @param contentType the entity content type
*/
/**
* Triggered to generate entity representation.
*
* @return the entity conten... | 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.batik.util.SVGTypes;
* Implements {@link ValueManager#isAnimatableProperty()}.
*/
public boolean isAnimatableProperty() {
return true;
}
/**
* Implements {@link ValueManager#isAdditiveProperty()}.
*/
public boolean isAdditiveProperty() {
return fals... | 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 |
return f.toURI().toURL().toString(); | 0 |
* @since 1.11.2 | 0 |
short CAPTURING_PHASE = 1;
short AT_TARGET = 2;
short BUBBLING_PHASE = 3;
String getType();
EventTarget getTarget();
EventTarget getCurrentTarget();
short getEventPhase();
boolean getBubbles();
boolean getCancelable();
long getTimeStamp();
... | 0 |
import org.apache.hc.core5.annotation.Immutable; | 0 |
* limitations under the License. | 0 |
if (sendAuthEvent) {
if (saslLoginFailed) { | 0 |
* limitations under the License. | 0 |
HierarchicalTypeDefinition B = createTraitTypeDef("B", ImmutableSet.of("A"),
createTraitTypeDef("C", ImmutableSet.of("A"), createOptionalAttrDef("c", DataTypes.BYTE_TYPE));
HierarchicalTypeDefinition D = createTraitTypeDef("D", ImmutableSet.of("B", "C"),
TraitType DType = getType... | 0 |
import org.apache.sshd.common.impl.AbstractFactoryManager; | 0 |
* @param pollingInterval The initial polling interval given.
* @param retries The number of retries made
private void checkValidInterval(Duration pollingInterval, int retries, long timeSleptMillis) {
for (int i = 0; i < retries; i++) {
pollingInterval.getMillis()
* Math.pow(DataflowPipel... | 0 |
package org.apache.accumulo.test.functional; | 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 p.apply(Create.of(values).withCoder(StringUtf8Coder.of()));
return p.apply(Create.of(values).withCoder(BigEndianIntegerCoder.of())); | 0 |
public void debugDump(StringBuilder sb);
| 0 |
* A provider of the "current" timestamp aiming to decouple the "current" time consumers and their
* corresponding producers.
* Retrieves he current moment of time (timestamp of "now") with given offset added
* Retrieves the current moment of time with a precision of a day. This is basically the timestamp
* o... | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.URL;
String dockerHostFromUri = System.getProperty("docker.host") != null ? System.getProperty("docker.host") : "localhost";... | 0 |
import org.apache.atlas.repository.graphdb.utils.IteratorToIterableAdapter; | 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.client.dataset.Dataset;
import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.Datasets;
import org.apac... | 0 |
import org.apache.ambari.server.topology.TopologyManager;
@Inject
private TopologyManager topologyManager;
topologyManager.removeHostRequests(hostname); | 0 |
public void testStringFunctions() throws Exception {
SqlExpressionChecker checker =
new SqlExpressionChecker()
.addExpr("'hello' || ' world' = 'hello world'")
.addExpr("CHAR_LENGTH('hello') = 5")
.addExpr("CHARACTER_LENGTH('hello') = 5")
.addExpr("INITCAP('h... | 0 |
* <tt>HttpAsyncRequestExecutor</tt> is a fully asynchronous HTTP client side
* <tt>HttpAsyncRequestExecutor</tt> translates individual events fired through
* the {@link NHttpClientEventHandler} interface into logically related HTTP
* <tt>HttpAsyncRequestExecutor</tt> relies on {@link HttpProcessor}
* returns <code... | 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.
* permission of the Apache Software Foundation.
* @version $Revision: 1.7 $ $Date: 2003/10/13 08:42:45 $ | 0 |
import org.apache.ambari.server.AmbariException;
import org.apache.ambari.server.H2DatabaseCleaner;
public void tearDown() throws AmbariException, SQLException {
H2DatabaseCleaner.clearDatabaseAndStopPersistenceService(injector); | 0 |
import org.ow2.chameleon.testing.helpers.TimeUtils;
long d = delay * TimeUtils.TIME_FACTOR;
System.out.println("Start sleeping for " + d);
Thread.sleep(d);
if (end - begin < d) {
Thread.sleep(d - (end - begin)); | 0 |
* Copyright (c) OSGi Alliance (2010, 2015). All Rights Reserved.
* @author $Id: b4eb0df09a8354afdb46f013926f81f70f817f43 $
@Override
@Override
@Override
@Override | 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 |
DirectStepContext stepContext, | 0 |
URL url = bundle.getCurrentModule().getEntry(name);
// Some JAR files do not contain directory entries, so if
// the entry wasn't found and is a directory, scan the entries
// to see if we should synthesize an entry for it.
if ((url == null) && name.endsWith("/") && !name.equal... | 0 |
* @version CVS $Id: JavascriptLanguage.java,v 1.1 2004/03/10 12:58:08 stephan Exp $ | 0 |
public void testAllRequiresRestart() throws AmbariException{
}
}
| 0 |
@Test(timeout = 30 * 1000) | 0 |
import org.apache.ambari.logsearch.conf.AuthConfig;
private AuthConfig authConfig;
@Inject
if (!authConfig.isAuthFileEnabled()) { | 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 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.