Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.accumulo.core.metadata.schema.MetadataSchema.CurrentLogsSection;
cfg.setProperty(Property.INSTANCE_ZK_TIMEOUT, "5s");
s.setRange(CurrentLogsSection.getRange());
s.fetchColumnFamily(CurrentLogsSection.COLF);
String path = new Path(entry.getKey().getColumnQualifier().toString()).toStri... | 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 |
(null, SVGConstants.SVG_ONKEYUP_ATTRIBUTE).length() > 0) {
return true;
}
if (elt.getAttributeNS
(null, SVGConstants.SVG_ONKEYDOWN_ATTRIBUTE).length() > 0) {
return true;
}
if (elt.getAttributeNS
... | 0 |
* name of the callback method to invoke on swap.
*/
String swap() default "";
/** | 0 |
/** @since 1.0.9 */
/** @since 1.0.9 */
/** @since 1.0.9 */
/** @since 1.0.9 */ | 0 |
super.populateDisplayData(builder);
super.populateDisplayData(builder);
super.populateDisplayData(builder);
super.populateDisplayData(builder);
super.populateDisplayData(builder);
super.populateDisplayData(builder);
super.populateDisplayData(builder);
super.pop... | 0 |
provides, | 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 com.google.common.collect.Maps;
import com.twitter.mesos.gen.TaskQuery;
StateManager stateManager) {
Set<ScheduledTask> tasksOnHost =
stateManager.fetchTasks(new TaskQuery().setSlaveHost(offer.getHostname()));
AdjustRetainedTasks message = new AdjustRetainedTasks()
.setRetainedTasks... | 0 |
* @deprecated 1.1 Use <code>DiskFileItem</code> instead.
* @deprecated 1.1 Use <code>DiskFileItem</code> instead. | 0 |
package org.apache.commons.jexl2.util; | 0 |
return vertex.getProperty(Constants.GUID_PROPERTY_KEY, String.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 ... | 0 |
* Copyright 2004-2005 The Apache Software Foundation.
/** Constant for the prefix of hex numbers.*/
private static final String HEX_PREFIX = "0x";
/** Constant for the radix of hex numbers.*/
private static final int HEX_RADIX = 16;
* @return the converted value
* @return the converted val... | 0 |
* An exception that is thrown if the unique job name constraint of the Dataflow service is broken
* because an existing job with the same job name is currently active. The {@link
* DataflowPipelineJob} contained within this exception contains information about the pre-existing
* job.
public DataflowJobAlreadyExis... | 1 |
import org.apache.hc.core5.util.LangUtils;
int pendingCount = 0;
for (LeaseRequest<T, C, E> request: leasingRequests) {
if (LangUtils.equals(route, request.getRoute())) {
pendingCount++;
}
}
pendingCount + pool.g... | 0 |
public void execute(Executor exec) throws Exception { | 0 |
package org.apache.felix.ipojo.handler.transaction.services;
import javax.transaction.Transaction;
public interface CheckService {
public void doSomethingGood();
public void doSomethingBad() throws NullPointerException;
public void doSomethingBad2() throws UnsupportedOperationException;
... | 0 |
/*
* Copyright (C) 2015 Google Inc.
*
* 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 agreed to ... | 0 |
package com.twitter.mesos.scheduler.http; | 0 |
import org.apache.cocoon.components.expression.ExpressionContext;
import org.apache.cocoon.template.jxtg.environment.ExecutionContext;
import org.apache.cocoon.xml.XMLConsumer;
private final String name;
private final String namespace;
public Event execute(final XMLConsumer consumer,
... | 0 |
static org.slf4j.Logger log =
org.slf4j.LoggerFactory.getLogger(InteropTestBase.class);
Node n = iter.next(); | 1 |
* <p>
* <p>
package org.apache.atlas.typesystem.types;
/*
* this enum must be in package org.apache.atlas.typesystem.types, since vertex property in GraphDB has reference to this type
*/
public class DataTypes {
public enum TypeCategory {
PRIMITIVE,
ENUM,
ARRAY,
MAP,
STRU... | 1 |
import org.apache.beam.sdk.extensions.euphoria.core.client.operator.base.Operator;
import org.apache.beam.sdk.extensions.euphoria.core.client.operator.base.SingleInputOperator; | 0 |
import org.apache.beam.runners.core.construction.SerializablePipelineOptions;
context.getSerializableOptions(),
context.getSerializableOptions(),
final SerializablePipelineOptions options = context.getSerializableOptions();
new SparkKeyedCombineFn<>(fn... | 0 |
.setInstanceCount(1)); | 0 |
* by this BridgeExtension, these are added to the list of
* requiredExtensions that the User Agent supports for purposes
* of the 'switch' element in SVG. | 0 |
if (clientConf.hasSasl()) {
if (clientConf.hasSasl()) { | 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 |
public StorageResolverException(Exception ex) {
super(ex);
} | 0 |
e = JEXL.createScript("D[E[F]]");
vars = e.getVariables();
expect = mkref(new String[][]{{"D"}, {"E"}, {"F"}});
assertTrue(eq(expect, vars));
e = JEXL.createScript("D[E[F[G[H]]]]");
vars = e.getVariables();
expect = mkref(new String[][]{{"D"}, {"E"}, {"F"}, {"G"... | 0 |
import org.apache.http.auth.AUTH;
new RequestUserAgent()
String host = target.getHostName();
int port = target.getPort();
if (port < 0) {
port = 80;
}
StringBuilder buffer = new StringBuilder(host.length() + 6);
buffer.append(host);
bu... | 0 |
stderr.append("WARNING: ").append(e.getClass().getSimpleName()).append(": ").println(e.getMessage()); | 0 |
DirectionAttributes directionAtts = JXpathBindingBuilderBase.getDirectionAttributes(bindingElm);
return new InsertNodeJXPathBinding(directionAtts.loadEnabled, directionAtts.saveEnabled, domTemplate); | 0 |
return new NullIsTruePredicate<>(predicate); | 1 |
import org.apache.accumulo.core.util.HostAndPort; | 1 |
package org.apache.beam.harness.test;
import org.apache.beam.harness.test.TestExecutors.TestExecutorService; | 0 |
public Rectangle2D getPrimitiveBounds() { | 0 |
Iterator<RequestRequest> reqIterator = requests.iterator();
for (int i = 0; i < targets.size(); i++) {
org.apache.ambari.server.actionmanager.Request target = targets.get(i);
String reason = reqIterator.next().getAbortReason();
amc.getActionManager().cancelRequest(target.getRequestId(), reason... | 0 |
Object result = children[0].getValue( context, source );
for ( int i = 1; i < children.length; ++i )
result = OgnlOps.binaryAnd( result, children[i].getValue( context, source ) ); | 0 |
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "RoleToNodesMap") | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/GenericTypeValidator.java,v 1.4 2002/04/02 03:55:02 dwinterfeldt Exp $
* $Revision: 1.4 $
* $Date: 2002/04/02 03:55:02 $
* @version $Revision: 1.4 $ $Date: 2002/04/02 03:55:02 $
... | 0 |
final boolean open = connReleaseTrigger != null && !connReleaseTrigger.isReleased();
} catch (final SocketException ex) { | 0 |
package org.apache.felix.karaf.shell.admin; | 0 |
package org.apache.atlas.web.filters;
import org.apache.atlas.security.BaseSecurityTest;
import org.apache.atlas.web.service.EmbeddedServer;
@Test (enabled = false)
TestEmbeddedServer server = new TestEmbeddedServer(23001, "webapp/target/apache-atlas");
config.setProperty("atlas.http.authentication.... | 0 |
import org.apache.batik.anim.values.AnimatableValue;
* Updates the animated value with the gien {@link AnimatableValue}.
*/
protected abstract void updateAnimatedValue(AnimatableValue val);
/** | 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>A {@link PipelineRunner} will support some set of materializations, and will reject {@link
* ViewFn ViewFns} that require materializations it does not support. See {@link Materializations}
* for known implementations. | 1 |
} catch (final UnsupportedCharsetException ex) { | 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 |
package org.apache.beam.sdk.extensions.sql.rel;
import org.apache.beam.sdk.extensions.sql.BeamSqlCli;
import org.apache.beam.sdk.extensions.sql.BeamSqlEnv;
import org.apache.beam.sdk.extensions.sql.TestUtils;
import org.apache.beam.sdk.extensions.sql.mock.MockedBoundedTable;
import org.apache.beam.sdk.extensions.sql.sc... | 0 |
package aQute.bnd.osgi; | 0 |
public void testIsLdapEnabled_badConfiguration() {
EasyMock.expect(configuration.isLdapConfigured()).andReturn(true);
EasyMock.expect(populator.loadLdapTemplate().list(EasyMock. <String>anyObject())).andThrow(new NullPointerException()).once();
EasyMock.replay(populator.loadLdapTemplate(), configuration);... | 0 |
* @version $Revision: 1.13 $ $Date: 2004/03/27 17:47:34 $
throw new SQLException("ResultSet is closed."); | 0 |
private final String src; | 0 |
import org.apache.accumulo.core.client.sample.SamplerConfiguration; | 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.verifyReferences(); | 0 |
import java.io.Serializable;
public class VerhoeffCheckDigit implements CheckDigit, Serializable { | 0 |
public synchronized void close() throws IOException {
try {
close();
} catch(IOException e) {
throw new RuntimeException("Failed (" + e.getClass().getSimpleName() + ") to close agent: " + e.getMessage(), e);
} | 0 |
* Thrown by executors at flow submission time when an invalid flow set up is detected, requiring
* the user to explicitly provide a windowing strategy to a certain operator. | 0 |
package org.apache.atlas.web.listeners;
import org.apache.atlas.security.BaseSecurityTest;
config.setProperty("atlas.authentication.method", "kerberos");
config.setProperty("atlas.authentication.principal", "dgi@EXAMPLE.COM");
config.setProperty("atlas.authentication.keyt... | 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 |
package com.twitter.aurora.scheduler.state;
import java.util.Set;
import com.google.inject.Binder;
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.TypeLiteral;
import com.twitter.aurora.scheduler.events.PubsubEvent;
import com.twitter.aurora.scheduler.events.PubsubEventModul... | 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.2 $ $Date: 2003/10/09 21:31:39 $ | 0 |
*
*
*
* <p>So that the same mechanism used for parsing an <i>input</i> value
* <code>format()</code> methods are also provided. That is you can
private static final long serialVersionUID = 5867946581318211330L;
*
*
* @param strict <code>true</code> if strict
* <code>Locale</code>.
... | 0 |
return Pipeline.create(opts); | 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... | 0 |
import java.util.HashMap;
import java.util.Map;
public class MITKerberosOperationHandlerTest extends KerberosOperationHandlerTest {
private static final Map<String, String> KERBEROS_ENV_MAP = new HashMap<String, String>() {
{
put(MITKerberosOperationHandler.KERBEROS_ENV_ENCRYPTION_TYPES, null);
}
};
... | 0 |
import org.apache.batik.ext.awt.g2d.GraphicContext;
| 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.MoreObjects; | 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 |
* Copyright 2000-2009 The Apache Software Foundation | 0 |
package org.apache.felix.sigil.ui.eclipse.ui.editors.project;
import org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel;
import org.apache.felix.sigil.model.IModelElement;
import org.apache.felix.sigil.model.ModelElementFactory;
import org.apache.felix.sigil.model.eclipse.ISigilBundle;
import org.apache.fe... | 0 |
import java.io.IOException;
import java.util.Arrays;
import org.apache.accumulo.core.file.rfile.bcfile.Utils;
import org.apache.accumulo.core.security.crypto.CryptoUtils;
import org.apache.accumulo.core.security.crypto.impl.NoFileEncrypter;
import org.apache.hadoop.fs.FSDataInputStream;
printCryptoParams(path, fs... | 0 |
public static final String ATTRIBUTES_PROPERTY_KEY = "attributes";
public static final String RELATIONSHIP_ATTRIBUTES_PROPERTY_KEY = "relationshipAttributes";
if (isEntityType) {
attr = ((AtlasEntityType) structType).getRelationshipAttribute(attrName, nul... | 0 |
@Override
public TabletStateImpl clone() throws CloneNotSupportedException {
return (TabletStateImpl) super.clone();
} | 0 |
import java.io.File;
import org.apache.commons.beanutils.Converter;
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.tools.ant.types.Reference;
static {
// register standard converters for Ant types
ConvertUtils.register(
new Converter() {
... | 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.cookie.ClientCookie;
import org.apache.http.cookie.CommonCookieAttributeHandler;
public class RFC2965CommentUrlAttributeHandler implements CommonCookieAttributeHandler {
@Override
public String getAttributeName() {
return ClientCookie.COMMENTURL_ATTR;
}
} | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestShortList.java,v 1.4 2003/10/02 22:14:33 scolebourne Exp $
import org.apache.commons.collections.AbstractTestList;
* @version $Revision: 1.4 $ $Date: 2003/10/... | 0 |
createTypeDefinitionsV1();
JSONObject response = atlasClientV1.callAPIWithBodyAndParams(AtlasClient.API.NAME_LINEAGE_INPUTS_GRAPH, null, salesMonthlyTable, "inputs", "graph");
String tableId = atlasClientV1.getEntity(HIVE_TABLE_TYPE, AtlasClient.REFERENCEABLE_ATTRIBUTE_NAME,
JSONObject r... | 0 |
@SuppressWarnings("unchecked")
Class<T> clazz = (Class<T>) parameter;
throw new RuntimeException(
String.format("Unable to automatically infer a Coder for "
+ "the Kafka Deserializer %s: no coder registered for type %s",
... | 0 |
import org.junit.FixMethodOrder;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public void testRunFirstOutboundSignatureTimePerformance() throws Exception {
public void testRunSecondInboundSignatureTimePerformance() throws Exception {
public void testRunFirstOutboundE... | 0 |
import org.apache.sshd.common.FactoryManagerUtils;
channel.open().verify(FactoryManagerUtils.getLongProperty(this.service.getSession(), CHANNEL_OPEN_TIMEOUT_PROP, DEFAULT_CHANNEL_OPEN_TIMEOUT)); | 0 |
visitor.visitPrimitiveTransform(node); | 0 |
// Use %40 for @ in a URL | 0 |
.setName(JobKeys.canonicalString(Tasks.ASSIGNED_TO_JOB_KEY.apply(task))) | 0 |
import java.util.concurrent.CopyOnWriteArrayList;
import org.osgi.framework.ServiceReference;
private final List<ProxyConfiguration> proxyConfigurations = new CopyOnWriteArrayList<>();
new HttpClientBuilderConfigurator(context, proxyConfigurations, trustedHostConfiguration);
proxyConfig... | 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 |
// For VFS-412
// private static final String PROT =
*
// For VFS-412
// * | 0 |
import org.apache.aurora.scheduler.async.preemptor.BiCache.BiCacheSettings;
import org.apache.aurora.scheduler.async.preemptor.PreemptionSlotFinder.PreemptionSlot;
import org.apache.aurora.scheduler.base.TaskGroupKey;
bind(BiCacheSettings.class).toInstance(
new BiCacheSettings(PREEMPTION_SLOT_HO... | 0 |
import org.apache.ambari.server.orm.dao.HostRoleCommandDAO;
bind(HostRoleCommandDAO.class).toInstance(createNiceMock(HostRoleCommandDAO.class)); | 0 |
* Returns a copy of the current {@link Reiterator}. The copy's iteration state is logically
* independent of the current iterator; each may be advanced without affecting the other.
* <p>The returned {@code Reiterator} is not guaranteed to return referentially identical
* iteration results as the original {@... | 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 |
* CVS $Id: AbstractContainerWidget.java,v 1.4 2004/02/04 17:25:57 sylvain Exp $
public AbstractContainerWidget(AbstractWidgetDefinition definition) {
// Validate self only if child widgets are valid
if (widgets.validate(formContext)) {
return super.validate(formContext);
} else ... | 0 |
public static final String GANGLIA_HTTPS_KEY = "ganglia.https";
public static final String NAGIOS_HTTPS_KEY = "nagios.https";
* Get the property value for the given key.
*
* @return the property value
*/
public String getProperty(String key) {
return properties.getProperty(key);
}
/**
prot... | 0 |
public static enum TestCounts {
PASS, FAIL, ERROR
}
context.getCounter(TestCounts.ERROR);
context.getCounter(TestCounts.PASS);
context.getCounter(TestCounts.FAIL); | 0 |
@Description("Max records per micro-batch. For streaming sources only.")
@Default.Long(-1)
Long getMaxRecordsPerBatch();
void setMaxRecordsPerBatch(Long maxRecordsPerBatch);
| 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.