Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
response.addHeader(HeaderConstants.WARNING, "111 localhost \"Revalidation failed\""); | 0 |
switch (authExchange.getState()) {
case CHALLENGED:
case HANDSHAKE:
this.log.debug("Authentication succeeded");
authExchange.setState(AuthExchange.State.SUCCESS);
updateCache(host, authExchange.getAuthScheme(), clientContext);
break;
case S... | 0 |
/*
* Copyright 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 required by... | 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 applic... | 0 |
if ("Manifest".equals(tag) && XMLSignature.XMLNS.equals(namespace)) {
} else if ("SignatureProperties".equals(tag) && XMLSignature.XMLNS.equals(namespace)) {
} else if ("X509Data".equals(tag) && XMLSignature.XMLNS.equals(namespace)) { | 0 |
UniqueNameAllocator namer = master.getContext().getUniqueNameAllocator(); | 0 |
// move to the next ideal wrap point | 0 |
import org.junit.FixMethodOrder;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING) | 0 |
* Context used for generating a name based on shard number, and num shards.
* Context used for generating a name based on window, pane, shard number, and num shards. | 0 |
/**
* Copyright 2013 Apache Software Foundation | 0 |
/**
* @deprecated Use {@link #getDefaultMaxPerRoute()} instead
*/ | 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.assertNotNull;
import static org.junit.Assert.assertTrue;
import com.google.common.collect.Iterables;
import org.junit.Test;
assertTimeWindowing(Time.of(Duration.ofSeconds(100)), 100 * 1000, null);
Time.of(Duration.ofSeconds(4)).ea... | 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 |
* 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 |
if (options.isIsolated()) {
if (options.isIsolated()) {
results = tablet.nextBatch(iter, range, options.getNum(), options.getColumnSet());
if (results.getResults() == null) {
} else if (results.getContinueKey() == null) {
return new ScanBatch(results.getResults(), false);
ran... | 1 |
EqualsPredicate ep1 = new EqualsPredicate<>("foo", "one");
EqualsPredicate ep2 = new EqualsPredicate<>("foo", "two");
EqualsPredicate ep3 = new EqualsPredicate<>("foo", "3");
EqualsPredicate ep1 = new EqualsPredicate<>("HostRoles/host_name", "host1");
EqualsPredicate ep2 = new EqualsPredicate<>("Hos... | 0 |
* @param stack Stack id (e.g., HDP-2.2)
* @param version Repository version (e.g., 2.2.0.1-995)
* @param stack Stack id (e.g., HDP-2.2)
* @param version Repository version (e.g., 2.2.0.1-995) | 0 |
import org.apache.cocoon.sitemap.SitemapParameters;
* @version CVS $Id: AbstractProcessingNodeBuilder.java,v 1.4 2004/03/08 12:07:39 cziegeler Exp $
// TODO Optimize this
return new SitemapParameters.ExtendedHashMap(config);
Map params = new SitemapParameters.ExtendedHashMap(config, chi... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/core/ExprTag.java,v 1.10 2002/10/30 19:16:20 jstrachan Exp $
* $Revision: 1.10 $
* $Date: 2002/10/30 19:16:20 $
* Copyright (c) 2002 The Apache Software Foundation. All rights
* $Id:... | 0 |
public class DOMMutationEvent
extends AbstractEvent
implements org.apache.batik.dom.dom3.events.MutationEvent {
/**
* <b>DOM</b>: Initializes this event object.
*/
public void initMutationEventNS(String namespaceURIArg,
String typeArg,
... | 0 |
assertTrue( "Default TMPDIR parameter correctly read", dw.tmpDir.getAbsolutePath().equals(
new File(System.getProperty("java.io.tmpdir"), "fileinstall").getAbsolutePath()) ); | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger log = LoggerFactory.getLogger(CountingVerifyingReceiver.class);
private static final Logger log = LoggerFactory.getLogger(CountingVerifyingReceiver.class); | 0 |
import org.apache.sshd.common.util.buffer.Buffer; | 0 |
import java.util.Collections;
return MatchResult.create(Status.OK, ImmutableList.of(toMetadata(file)));
return MatchResult.create(Status.NOT_FOUND, Collections.<Metadata>emptyList());
return MatchResult.create(Status.OK, result); | 0 |
public final class HttpAsyncClients { | 0 |
package org.apache.cocoon.components.store.impl;
* @version CVS $Id: JCSDefaultStore.java,v 1.1 2004/05/17 14:02:50 cziegeler Exp $
extends AbstractJCSStore
int maxobjects = parameters.getParameterAsInteger("maxobjects", -1);
if (maxobjects != -1) {
String key = "jcs.region." + region +... | 0 |
public final static int DEFAULT_SOCKET_TIMEOUT_IN_MSECS = 1 * 60 * 1000; // 1 minute
setTimeouts(conn, DEFAULT_SOCKET_TIMEOUT_IN_MSECS);
return newSslConnConfigurator(DEFAULT_SOCKET_TIMEOUT_IN_MSECS, conf); | 0 |
* Classes marked with this annotation will be instantiated as singletons. They | 0 |
import org.apache.felix.scr.impl.ScrCommand;
public static final String PROP_INFO_SERVICE = "ds.info.service";
private boolean infoAsService;
private ScrCommand scrCommand;
public void setScrCommand(ScrCommand scrCommand)
{
this.scrCommand = scrCommand;
scrComman... | 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 |
* Scans the given file line-by-line (ignoring empty lines) and returns a list containing those
* lines. If decode is set to true, every line is decoded using
* {@link Base64#decodeBase64(byte[])} from the UTF-8 bytes of that line before inserting in the
* list. | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Splitter; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//cli/src/java/org/apache/commons/cli/Parser.java,v 1.9 2002/11/25 23:43:40 jkeyes Exp $
* $Revision: 1.9 $
* $Date: 2002/11/25 23:43:40 $
* @version $Revision: 1.9 $
else {
try {
opt... | 0 |
private final Settings settings;
public ConfigurationBuilder(Settings s) {
this.settings = s;
finishedConfiguration.setValue( PropertyHelper.replace(finishedValue, this.settings) );
configuration.setAttribute( name, PropertyHelper.replace(value, this.settings) ); | 0 |
public static String readAll(MiniAccumuloClusterImpl c, Class<?> klass, Process p) throws Exception { | 0 |
* @version $Id$ | 0 |
StructTypeDefinition addressDetails =
createStructTypeDef("Address", createRequiredAttrDef("street", DataTypes.STRING_TYPE),
createRequiredAttrDef("city", DataTypes.STRING_TYPE));
HierarchicalTypeDefinition<ClassType> deptTypeDef = createClassTypeDef("Department"... | 0 |
super(method, uri, ver); | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
/*
* Copyright 2000-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 applic... | 0 |
* @see org.apache.sshd.common.util.security.SecurityUtils#getKeyPairResourceParser() | 0 |
* @version CVS $Id: JXTemplateGenerator.java,v 1.28 2004/01/04 20:40:26 coliver Exp $
final static String EVAL = "eval";
static class StartEval extends StartInstruction {
StartEval(StartElement raw, Expression value) {
super(raw);
this.value = value;
}
final Exp... | 0 |
package com.twitter.aurora.scheduler.configuration;
import com.twitter.aurora.scheduler.configuration.Resources.InsufficientResourcesException; | 1 |
public interface Options extends PipelineOptions { | 0 |
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
final StringEntity entity = new StringEntity(message, ContentType.TEXT_PLAIN); | 0 |
import java.util.Arrays;
import org.apache.sshd.common.cipher.CipherNone;
import org.apache.sshd.common.future.DefaultSshFuture;
import org.apache.sshd.common.future.SshFuture;
import org.apache.sshd.common.session.AbstractConnectionService;
@Override
public SshFuture switchToNoneCipher() throws IOException {
... | 0 |
import org.junit.Ignore;
@Ignore("https://issues.apache.org/jira/browse/BEAM-4110") | 0 |
new HierarchicalTypeDefinition<>(ClassType.class, PARTITION_TYPE, null, null, | 0 |
package org.apache.accumulo.test.randomwalk.concurrent;
import org.apache.accumulo.test.randomwalk.State;
import org.apache.accumulo.test.randomwalk.Test; | 0 |
* Copyright 2005-2010 The Apache Software Foundation.
content.add(DOMKeyValue.unmarshal(childElem)); | 0 |
* @author <a href="mailto:vhardy@apache.org">Vincent Hardy</a> | 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 b... | 0 |
* Default Context for scripts. This is used only for efficiency
* reason.
protected Vector contexts = new Vector();
defaultContext = enterContext();
Context ctx = defaultContext;
Context ctx = Context.enter();
// Hopefully, we are not switching threads too
... | 0 |
filter = maskedNode.getGraphicsNodeRable(true); | 0 |
/**
* Name of service which config group is wired to
*/ | 0 |
try {
stopWorkers(500);
} catch (InterruptedException ex) {
throw new InterruptedIOException(ex.getMessage());
} | 0 |
BatchWriter batchWriter =
opts.getConnector().createBatchWriter(opts.getTableName(), new BatchWriterConfig()); | 0 |
import java.sql.SQLException;
import javax.persistence.EntityManager;
import org.apache.ambari.server.AmbariException;
import org.apache.ambari.server.H2DatabaseCleaner;
public void teardown() throws AmbariException, SQLException {
H2DatabaseCleaner.clearDatabase(m_injector.getProvider(EntityManager.class).get()... | 0 |
* Copyright (c) 2004 The Apache Software Foundation. All rights | 0 |
import org.apache.beam.sdk.runners.AppliedPTransform; | 0 |
if (currentTime - k.getTimestamp() > threshold)
return false;
if (options == null)
throw new IllegalArgumentException(TTL + " must be set for AgeOffFilter");
if (ttl == null)
throw new IllegalArgumentException(TTL + " must be set for AgeOffFilter");
if (time != null)
currentTime ... | 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 |
this.minorQueued = summary.minors != null ? summary.minors.queued : null;
this.majorQueued = summary.majors != null ? summary.majors.queued : null; | 0 |
import org.apache.accumulo.harness.SharedMiniClusterBase;
public class TabletStateChangeIteratorIT extends SharedMiniClusterBase { | 0 |
if (isZKServerRunning()) { | 1 |
private ServiceLogsSolrDao serviceLogsSolrDao;
private AuditSolrDao auditSolrDao;
if (serviceLogsSolrDao.getSolrCollectionState().isSolrCollectionReady()) {
CloudSolrClient serviceSolrClient = (CloudSolrClient) serviceLogsSolrDao.getSolrTemplate().getSolrClient();
if (auditSolrDao.getSolrCollectionSt... | 0 |
import org.junit.Rule;
@Rule
public final transient TestPipeline p = TestPipeline.create();
p.enableAbandonedNodeEnforcement(false);
p.enableAbandonedNodeEnforcement(false); | 0 |
this(Objects.requireNonNull(file, "No file to watch").toPath());
this.file = Objects.requireNonNull(file, "No path to watch"); | 0 |
SVG_FILTER_UNITS_ATTRIBUTE,
SVG_MASK_UNITS_ATTRIBUTE,
String xStr = filterElement.getAttributeNS(null, SVG_X_ATTRIBUTE);
String yStr = filterElement.getAttributeNS(null, SVG_Y_ATTRIBUTE);
String wStr = filterElement.getAttributeNS(null, S... | 0 |
String portOption, BufferedReader stdin, Level level, PrintStream stdout, PrintStream stderr, String... args)
SshClient client = setupClient(
options, ciphers, macs, compressions, identities,
stdin, stdout, stderr, level, args);
public static SshClient setupDefaultClient(... | 0 |
* @author <a href="mailto:Henri.Ruini@nokia.com">Henri Ruini</a>
/** Default quality value. A value of -1 means disabled. */
* Returns true if f is a File. <code>f</code> is found to be a file if | 1 |
package org.apache.aurora.scheduler.http; | 0 |
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.createNiceMock;
import static org.easymock.EasyMock.createStrictMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
import static org.junit.Assert.ass... | 0 |
package org.apache.felix.ipojo.runtime.core.components;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface SubMarker {
String subname();
} | 0 |
keySelector,
DoFnSchemaInformation.create());
keySelector,
DoFnSchemaInformation.create()); | 0 |
* Signals memcached operation timeout.
*
* @since 4.1
public class MemcachedOperationTimeoutException extends ResourceIOException { | 0 |
return executorService.submit(this.update(conn, false, sql, new Object[]{param}));
return executorService.submit(this.update(conn, true, sql, new Object[]{param})); | 0 |
import javax.xml.bind.annotation.adapters.XmlAdapter;
import org.apache.ambari.common.rest.entities.agent.Action.Signal;
@XmlType(name = "", propOrder = {"responseId","timestamp", "clusterId",
"hostname", "stackId", "hardwareProfile",
"actionResults", "serversStatus", "idle"})
@XmlElement
private boolean... | 0 |
* Copyright 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 by ap... | 0 |
"Cluster102", "Service100", "Component100", "Host100", "INSTALLED", "", "", "", null));
property(HostComponentResourceProvider.HOST_COMPONENT_STATE_PROPERTY_ID).equals("INSTALLED").and(). | 0 |
import com.google.cloud.dataflow.sdk.values.TypeDescriptor;
* The TypeDescriptor argument allows specification of generic types. For example,
* {@code ofType(new TypeDescriptor<List<String>>(){})}.
public static <T> InstanceBuilder<T> ofType(TypeDescriptor<T> token) { | 0 |
public abstract class QuerySetHueDb {
public PreparedStatement getUserName(Connection connection, int id) throws SQLException {
PreparedStatement prSt = connection.prepareStatement(fetchUserNameSql());
prSt.setInt(1, id);
return prSt;
}
return "select user_id, pig_script,title,date_created,saved,arg... | 0 |
@SuppressWarnings("unused")
@SuppressWarnings("unused") | 0 |
import static com.google.common.base.Charsets.UTF_8;
create(root, "", UTF_8.name().toLowerCase());
byte[] data = value.getBytes(UTF_8); | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastTreeMap1.java,v 1.4 2002/08/13 04:34:09 pjack Exp $
* $Revision: 1.4 $
* $Date: 2002/08/13 04:34:09 $
* @version $Id: TestFastTreeMap1.java,v 1.4 2002/08/13 04:34:09 pja... | 0 |
import java.io.StreamCorruptedException;
// Protect against malicious or corrupted packets
if (len < 0) {
throw new StreamCorruptedException("Illogical message length: " + len);
}
e.getClass().getSimpleName(), cmd, e.getMessage()); | 0 |
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class Condition implements org.apache.thrift.TBase<Condition, Condition._Fields>, java.io.Serializable, Cloneable, Comparable<Condition> {
public enum _Fields implements org.apache.thrift.TFieldIdEnum { | 0 |
Monitor.getContext().getZooKeeperRoot() + Constants.ZDEADTSERVERS); | 0 |
import javax.servlet.http.Cookie;
Cookie mockCookie = new Cookie("cookieName", "cookieValue");
Cookie mockCookie = new Cookie("cookieName", "cookieValue"); | 0 |
package org.apache.ambari.server;
/**
* TODO
* Meta-data object for ServiceComponent
*/
public interface ServiceComponentType {
} | 0 |
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.apache.cocoon.woody.event.WidgetListener;
import org.apache.cocoon.woody.event.WidgetListenerBuilderUtil;
protected List buildEventListeners(Element widgetElement, Strin... | 0 |
AccumuloInputFormat.setInputInfo(job.getConfiguration(), args[0], args[1].getBytes(), args[2], new Authorizations());
AccumuloInputFormat.setZooKeeperInstance(job.getConfiguration(), args[3], args[4]); | 0 |
files.put(new FileRef("hdfs://nn1/accumulo/tables/5/t-0001/" + (String) objs[i]), new DataFileValue(((Number) objs[i + 1]).longValue(), 0));
for (String string : strings)
result.add("hdfs://nn1/accumulo/tables/5/t-0001/" + string); | 0 |
import org.apache.beam.sdk.transforms.OldDoFn;
* Benchmarks for {@link OldDoFn} and {@link DoFnWithContext} invocations, specifically
private OldDoFn<String, String> doFn = new UpperCaseDoFn();
private OldDoFn<String, String> adaptedDoFnWithContext;
private static class UpperCaseDoFn extends OldDoFn<String, Stri... | 0 |
KILL_TASK_WITH_RESERVATION_AND_EVALUATE_ON_STATE_CHANGE(
Optional.of(InstanceAction.KILL_TASK_AND_RESERVE), NO_FAILURE), | 0 |
if (null != this.manager) {
this.manager.release(this.cacheManager);
super.dispose();
super.recycle(); | 0 |
import org.apache.accumulo.core.client.security.SecurityErrorCode;
if (ae.getSecurityErrorCode().equals(SecurityErrorCode.PERMISSION_DENIED)) {
} else if (ae.getSecurityErrorCode().equals(SecurityErrorCode.BAD_CREDENTIALS)) { | 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 applicable la... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.