Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import static org.apache.ambari.server.stack.upgrade.Task.Type.REGENERATE_KEYTABS;
import org.apache.ambari.server.stack.upgrade.Direction;
import org.apache.ambari.server.stack.upgrade.UpgradePack;
import org.apache.ambari.server.stack.upgrade.UpgradeType;
import org.apache.ambari.server.stack.upgrade.orchestrate.Upgr... | 0 |
* Copyright (c) OSGi Alliance (2001, 2013). All Rights Reserved.
* @author $Id: e04a2beb3de2afff4cb01747e589c04b5e0f0cc8 $ | 0 |
fam.start(); | 0 |
import org.apache.atlas.typesystem.exception.SchemaNotFoundException;
LOG.error("entity not found for guid={}", guid);
LOG.error("table entity not found for {}", guid);
} catch (SchemaNotFoundException e) {
LOG.error("schema not found for {}", guid);
throw new Web... | 0 |
package cz.seznam.euphoria.core.client.io;
import cz.seznam.euphoria.core.util.Settings;
import java.net.URI;
/**
* Factory of {@code DataSource} from URI and settings.
*/
public abstract class IORegistry {
private static final String REGISTRY_IMPL_CONF = "euphoria.io.registry.impl";
public static IORegi... | 0 |
import org.junit.Ignore;
@Test @Ignore("TODO FIX") | 0 |
@SuppressWarnings("serial") | 0 |
eventType = new EventType<>(null, "TEST"); | 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument;
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkNotNull;
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState;
import org.apache.bea... | 0 |
* @deprecated since 1.7.0 use {@link #getTablet()}
*/
@Deprecated
public abstract org.apache.accumulo.core.data.KeyExtent getExtent();
/**
* @return tablet the scan is running against, if a batch scan may be one of many or null | 0 |
import java.util.Comparator;
private final Map<String, List<String>> mapOrderingRules = new HashMap<>();
private final Map<String, Comparator<?>> arrayOrderingRules = new HashMap<>();
public JsonWriterFactory orderMap(String path, List<String> keyOrder) {
mapOrderingRules.put(path, keyOrder);
... | 0 |
"CR05015202001026284066",
"LC55HEMM000100010012001200023015", | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
import org.apache.felix.dm.DependencyManager;
Component sp = m.createComponent()
.setInterface(ServiceInterface.class.getName(), null)
.setImplementation(new ServiceProvider(e));
Component sp2 = m.createComponent()
.setInterface(ServiceInterface2.class.getName(), null)
... | 0 |
String SVG_EVENT_MOUSEOVER = "mouseover"; | 0 |
requests.add(getRequest(Collections.emptyMap())); | 0 |
// This concrete implementation is provided for binary compatibility with 1.6; it can be removed in 2.0. See ACCUMULO-3789. | 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 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; | 0 |
public Job analyzeTable(String databaseName, String tableName, Boolean shouldAnalyzeColumns, JobResourceManager resourceManager) throws ServiceException {
AnalyzeTableQueryGenerator queryGenerator = new AnalyzeTableQueryGenerator(databaseName, tableName, shouldAnalyzeColumns); | 0 |
import org.junit.Assert; | 0 |
Document document = XMLUtils.read(sourceDocument, false);
StAX2DOM.readDoc(securityStreamReader);
Document document = XMLUtils.read(sourceDocument, false);
StAX2DOM.readDoc(securityStreamReader);
Document document = XMLUtils.read(sourceDocument, false);
St... | 0 |
if (Streaming.Async.equals(streaming)) {
invertedIn = new ChannelOutputStream(this, remoteWindow, log, SshConstants.SSH_MSG_CHANNEL_DATA, true); | 0 |
import org.apache.ambari.server.topology.Blueprint;
Blueprint blueprint = createNiceMock(Blueprint.class);
expect(topology.getBlueprint()).andReturn(blueprint).anyTimes();
expect(blueprint.shouldSkipFailure()).andReturn(true).anyTimes();
blueprint, | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
package org.apache.felix.sigil.core.repository;
import org.apache.felix.sigil.model.eclipse.ISigilBundle;
import org.apache.felix.sigil.repository.AbstractBundleRepository;
import org.apache.felix.sigil.repository.IRepositoryVisitor; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/bidimap/TestDualTreeBidiMap.java,v 1.1 2003/11/16 20:35:46 scolebourne Exp $
package org.apache.commons.collections.bidimap;
import org.apache.commons.collections.BulkTest;
* @ve... | 0 |
/**
* EvenListener type wrapper.
* @version 1.0 <i>(SVN $Revision$)</i>
*/ | 0 |
ValueStorage(String name, Class clz, RuntimeContext context) {
"euphoria-state::" + name,
ListStorage(String name, Class clz, RuntimeContext context) {
"euphoria-state::" + name,
public <T> ValueStateStorage<T> getValueStorage(String name, Class<T> what) {
return (ValueStateStorage) n... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/functors/IfClosure.java,v 1.2 2004/01/02 01:36:51 psteitz Exp $
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* @version $Revision: 1.2 $ $Date: 2004/01/0... | 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 |
package org.apache.beam.sdk.nexmark.model;
import org.apache.beam.sdk.nexmark.NexmarkUtils; | 0 |
Copyright 2001 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 |
import javax.inject.Inject;
import javax.inject.Singleton;
| 1 |
XMLSecNamespace getAttributeNamespace(); | 0 |
return SecurityUtils.getKeyPairGenerator(KeyUtils.RSA_ALGORITHM);
return SecurityUtils.getKeyFactory(KeyUtils.RSA_ALGORITHM); | 0 |
// starting the dependency above might have triggered another state change, so
// we have to fetch the current state again
oldState = m_state;
// starting the dependency above might have triggered another state change, so
// we have to fetch the current state ... | 0 |
public List getRoles(String filter) {
Role[] roles = m_store.getRoles(sanitizeFilter(filter));
Role[] roles = m_store.getRoles(criteria);
/**
* Sanitizes the given filter string.
*
* @param filter the filter string to sanitize, can be <code>null</code>.
* @return the sanitized fi... | 0 |
import static java.util.Arrays.asList;
import java.io.Serializable;
import java.util.List;
import java.util.Objects; | 0 |
@Test
public void testIsLoaded() throws Exception {
ViewEntity viewDefinition = getViewEntity();
viewDefinition.setStatus(ViewDefinition.ViewStatus.PENDING);
Assert.assertFalse(viewDefinition.isLoaded());
viewDefinition.setStatus(ViewDefinition.ViewStatus.LOADING);
Assert.assertFalse(viewDefi... | 0 |
FileOutputStream fos = new FileOutputStream(clazz);
IPojoPluginConfiguration.getLogger().log(Level.INFO, "Put the file " + clazz.getAbsolutePath() + " in the jar file");
} catch (Exception e) { System.err.println("Problem to write the adapted class on the file system " + " [ ... | 0 |
.setIntParameter(HttpConnectionParams.SO_TIMEOUT, 15000) | 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 ... | 1 |
import org.apache.felix.scr.Component;
private static final int STATE_MASK = Component.STATE_UNSATISFIED | Component.STATE_ACTIVATING
| Component.STATE_ACTIVE | Component.STATE_REGISTERED | Component.STATE_FACTORY;
private void serviceRemoved( ServiceReference reference )
// if the dependency is... | 0 |
import java.util.LinkedHashMap;
Map<String, ConfigPlacement> mergedConfigPlacements = new LinkedHashMap<String, ConfigPlacement>();
} | 0 |
return (sendCommand(POP3Command.CAPA) == POP3Reply.OK);
if (sendCommand(POP3Command.AUTH, method.getAuthName()) | 0 |
package org.apache.commons.ognl;
import org.apache.commons.ognl.enhance.ExpressionCompiler;
import org.apache.commons.ognl.enhance.UnsupportedCompilationException;
+ ")org.apache.commons.ognl.OgnlOps.toArray(" + parmString + ", " + parms[i].getComponentType().ge... | 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 |
outputDebugMessage("LsEntry: %s", f);
outputDebugMessage("%s: %s", extName, extValue);
outputDebugMessage("Symlink %s => %s", remLinkPath, remSrcPath); | 0 |
if (((access & ACC_STATIC) == 0) && (!name.startsWith("class$"))) {
// The constructor is manipulated separately
if (name.equals("<init>")) {
Type[] args = Type.getArgumentTypes(newDesc);
String id = "$init";
for (int i = 0; i <... | 0 |
/*
* Copyright 2001-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 applica... | 0 |
import org.apache.ambari.server.topology.PersistedState;
bind(PersistedState.class).toInstance(createNiceMock(PersistedState.class)); | 0 |
* Constructor. | 0 |
public void startVector(List<?> v, String tag) throws IOException;
public void endVector(List<?> v, String tag) throws IOException;
public void startMap(TreeMap<?,?> v, String tag) throws IOException;
public void endMap(TreeMap<?,?> v, String tag) throws IOException; | 0 |
import org.apache.felix.http.base.internal.runtime.dto.state.FilterState;
public class FilterHandler implements Comparable<FilterHandler>, FilterState | 0 |
import org.apache.accumulo.fate.zookeeper.ZooUtil; | 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 applica... | 0 |
/**
* Global disable flag for AmbariServer Metrics.
*/
@Markdown(description = "Global disable flag for AmbariServer Metrics.")
public static final ConfigurationProperty<Boolean> AMBARISERVER_METRICS_DISABLE = new ConfigurationProperty<>(
"ambariserver.metrics.disable", false);
| 0 |
import java.util.*;
attrMap = new HashMap();
public List getDefinitionSet(List defSet){
if (defSet == null)
defSet = new LinkedList(); | 0 |
Rectangle2D runBounds = textRunLayout.getBounds2D();
if (runBounds != null) {
if (bounds == null)
bounds = runBounds;
else
bounds = bounds.createUnion(runBounds);
}
| 0 |
.setTypeDescriptor(getOldFn().getOutputTypeDescriptor());
outputs.get(mainOutputTag).setTypeDescriptor(getOldFn().getOutputTypeDescriptor()); | 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 |
.apply("WriteCounts", TextIO.write().to(options.getOutput())) | 0 |
/**
* Create new config builder.
* @param prefix String for properties of this file system.
* @since 2.0
*/ | 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 |
Number parsedNumber = numberFormat.parse(stringValue, parsePosition); | 0 |
import org.apache.aurora.scheduler.offers.HostOffer; | 0 |
int var_index = access.contains("static") ? 0 : 1;
if (str.contains(old)) { // `old' found in str | 0 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
} | 0 |
public boolean accept(final File pathname)
public FileSystemView createFileSystemView(final User user) throws FtpException
final FileSystemView fsView = super.createFileSystemView(user); | 0 |
// Remove the reference to this flush file, run the GC which should not trim it from the candidates, and assert that it's gone
// Removing a reference to a file that wasn't in the candidates should do nothing
// Remove the reference to a file in the candidates should cause it to be removed
// Adding mor... | 0 |
state.setTerminated();
Cancellable cancellable = state.getCancellable();
if (cancellable != null) {
cancellable.cancel();
}
|| state.getResponseState().compareTo(MessageState.INIT) > 0) {
... | 0 |
import org.apache.beam.runners.core.StateInternals; | 0 |
import org.apache.hc.core5.annotation.Internal;
/**
* Protocol agnostic client side I/O session initiator.
*
* @since 5.0
*/
@Internal | 0 |
* </p> | 0 |
import org.apache.hc.core5.http.nio.support.BasicRequestProducer;
import org.apache.hc.core5.http.nio.support.BasicResponseConsumer;
.setExceptionCallback(LoggingExceptionCallback.INSTANCE)
.setIOSessionListener(LoggingIOSessionListener.INSTANCE)
server.close(Clos... | 0 |
private final ConnectionPoolDataSource cpds;
private final String validationQuery;
private final int validationQueryTimeout;
private final boolean rollbackAfterValidation;
private KeyedObjectPool<UserPassKey,PooledConnectionAndInfo> pool;
this.cpds = cpds;
this.validationQuery = vali... | 0 |
private static String constructString(final int [] unicodeChars) { | 0 |
* @version CVS $Id: StructJXPathBinding.java,v 1.5 2004/02/03 12:22:08 joerg Exp $
public void doLoad(Widget frmModel, JXPathContext jxpc) throws BindingException { | 0 |
import cz.seznam.euphoria.flink.streaming.StreamingElement;
extends AbstractStreamOperator<StreamingElement<WID, Pair<?, ?>>>
implements OneInputStreamOperator<I, StreamingElement<WID, Pair<?, ?>>>,
/**
* Extracts the data element from the input stream record.
*
* @param record input stream r... | 0 |
@Contract(threading = ThreadingBehavior.STATELESS) | 0 |
import com.google.common.base.Predicate;
public void getProperties(Map<String,String> props, Predicate<String> filter) {
if (filter.apply(prop.getKey()))
if (filter.apply(prop.getKey())) | 0 |
PutArtifactMetadata putMetadata =
PutArtifactMetadata.newBuilder()
.setMetadata(metadata)
.setStagingSessionToken(stagingSessionToken)
.build();
return new AutoValue_ArtifactServiceStager_StagingResult(null, failures); | 1 |
*
public class HdfsFileProvider extends AbstractOriginatingFileProvider {
protected static final Collection<Capability> CAPABILITIES = Collections.unmodifiableCollection(Arrays.asList(new Capability[] {Capability.GET_TYPE,
Capability.READ_CONTENT, Capability.URI, Capability.GET_LAST_MODIFIED, Capability.ATTRIB... | 0 |
Method method = Felix.class.getDeclaredMethod("cleanMavenVersion", new Class [] {StringBuilder.class});
StringBuilder sb = new StringBuilder(in); | 0 |
package org.apache.accumulo.server.test.randomwalk.concurrent;
import java.util.Properties;
import org.apache.accumulo.server.test.randomwalk.State;
import org.apache.accumulo.server.test.randomwalk.Test;
public class StartAll extends Test {
@Override
public void visit(State state, Properties props) throws Ex... | 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 |
import static org.apache.accumulo.core.conf.Property.INSTANCE_CRYPTO_PREFIX;
public static AccumuloConfiguration getAccumuloConfig(String cryptoOn) {
ConfigurationCopy cfg = new ConfigurationCopy(DefaultConfiguration.getInstance());
switch (cryptoOn) {
case CryptoTest.CRYPTO_ON_CONF:
cfg.set(Pro... | 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument;
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkNotNull;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Objects;
import org.apache.beam.vendor.guava.v20_0.com... | 0 |
/*
* Copyright 2001-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 applica... | 0 |
// @formatter:off
private ColumnToClassMapping<org.apache.accumulo.core.iterators.aggregation.Aggregator>
aggregators;
// @formatter:on | 0 |
if (!EXCLUDE.contains(getId(test))) {
addTests(child, tests);
}
"bridge/error/transform",
// exclude additional failures appearing under JDK 1.8.0_152 on MacOS
"Bug4389.renderingCheck",
"Bug4389.ContextrenderingCheck",
"Bug6535.ContextrenderingCheck",
"Bug17965.render... | 0 |
@Deprecated
@Override
ColumnUpdate upd = (ColumnUpdate) obj;
return Arrays.equals(getColumnFamily(), upd.getColumnFamily()) && Arrays.equals(getColumnQualifier(), upd.getColumnQualifier())
&& Arrays.equals(getColumnVisibility(), upd.getColumnVisibility()) && isDeleted() == upd.isDeleted() && Arra... | 1 |
import org.apache.ambari.server.state.ConfigHelper;
@Inject
private ConfigHelper configHelper;
Map<String, Map<String, String>> hostConfigTags = configHelper.getEffectiveDesiredTags(cluster, hostName);
Map<String, Map<String, String>> hostConfigurations = configHelper.getEffectiveConfigProperties(cluste... | 0 |
import org.apache.gearpump.DefaultMessage;
new DefaultMessage( | 0 |
import org.apache.felix.dm.annotation.api.dependency.ResourceDependency;
import org.apache.felix.dm.annotation.api.dependency.ServiceDependency; | 0 |
* Copyright 1999-2005 The Apache Software Foundation.
boolean isTerminatedAfterShutdown(); | 0 |
String ONLY_KEYTAB_WRITE = "only_keytab_write"; | 1 |
import org.apache.atlas.ApplicationProperties;
import org.apache.atlas.ha.HAConfiguration;
import org.apache.atlas.listener.ActiveStateChangeHandler;
import org.apache.commons.configuration.Configuration;
public class GraphBackedSearchIndexer implements SearchIndexer, ActiveStateChangeHandler {
AtlasExcepti... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.