Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
Copyright 2000-2001,2003 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 applicabl...
0
import org.apache.accumulo.core.security.thrift.Credential; private Credential credentials; MetadataLocationObtainer(Credential credentials, Instance instance) {
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...
1
import org.apache.http.annotation.NotThreadSafe;
0
public Header decodeHeader(final ByteBuffer src) throws HPackException { try { while (src.hasRemaining()) { final int b = peekByte(src); if ((b & 0x80) == 0x80) { return decodeIndexedHeader(src); } else if ((b & 0xc0) == 0x40) {...
0
import org.apache.zookeeper.MultiTransactionRecord; import org.apache.zookeeper.Op; if ((request.type != OpCode.create && request.type != OpCode.create2 && request.type != OpCode.multi) || if (OpCode.multi == request.type) { MultiTransactionRecord multiTransactionRecord = new MultiTransacti...
0
SslFilterRequest sreq = new SslFilterRequest(req, null); SslFilterRequest sreq = new SslFilterRequest(req, null); SslFilterRequest sreq = new SslFilterRequest(req, null);
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 ap...
0
Long value, OutputStream outStream) throws IOException { public Long decode(InputStream inStream) throws IOException {
0
* <pre><code> * </code></pre>
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.xml.security.utils.XMLUtils; javax.xml.parsers.DocumentBuilder db = XMLUtils.createDocumentBuilder(false);
0
testKexOpcodeName(KeyExchange.SIMPLE_KEX_OPCODES_MAP, KeyExchange::getSimpleKexOpcodeName); testKexOpcodeName(KeyExchange.GROUP_KEX_OPCODES_MAP, KeyExchange::getGroupKexOpcodeName);
0
* * @param results ValidatorResults to merge. * * @param field The field validated. * @param validatorName The name of the validator. * @param result The result of the validation. * * @param field The field validated. * @param validatorName The name of the validator. * ...
1
import javax.inject.Inject;
1
* @deprecated since 1.4, replaced by {@link org.apache.accumulo.core.iterators.user.SummingArrayCombiner} with * {@link org.apache.accumulo.core.iterators.user.SummingArrayCombiner.Type#VARLEN}
0
* * * /** return createTestSuite(TestJSLSuite.class, "suite.jelly");
1
package org.apache.batik.ext.awt.image;
0
import org.apache.atlas.ocf.properties.beans.Connection;
0
import org.apache.accumulo.core.iterators.user.ReqVisFilter; IteratorSetting setting = new IteratorSetting(priority, name, classname, options); shellState.getConnector().tableOperations().attachIterator(tableName, setting, scopes);
0
public int ranking = 0; public long serviceId;
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.io.ByteStreams; import org.apache.beam.vendor.guava.v20_0.com.google.common.io.CountingOutputStream;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//fileupload/src/java/org/apache/commons/fileupload/FileUpload.java,v 1.23 2003/06/24 05:45:43 martinc Exp $ * $Revision: 1.23 $ * $Date: 2003/06/24 05:45:43 $ * @version $Id: FileUpload.java,v 1.23 2003/06/24 05:45:43 martinc Exp ...
0
* @version $Id: AbstractOjbImpl.java,v 1.3 2004/06/25 14:49:56 cziegeler Exp $ throws Exception { throws ServiceException {
0
package aQute.bnd.component; import java.io.*; import aQute.bnd.osgi.*; import aQute.lib.tag.*; class TagResource extends WriteResource { final Tag tag; public TagResource(Tag tag) { this.tag = tag; } public void write(OutputStream out) throws UnsupportedEncodingException { OutputStreamWriter ow = new Outp...
0
for (Entry e : (Set<Entry>)map.entrySet()) { put(e.getKey().toString(), e.getValue()); }
0
* limitations under the License.
0
case LOCAL_HOST_MACRO: {
0
* @param directAdjacent the direct adjacent selector * equals to org.w3c.dom.Node.ELEMENT_NODE
0
for (Connection element : c) { element.close(); for (Connection element : c) { element.close(); for (Connection element : c) { element.close(); for (Connection element : c) { element.close(); for (Connection element : c) { ...
0
package org.apache.felix.sigil.eclipse.ui.internal.quickfix;
0
import com.google.cloud.spanner.DatabaseAdminClient; public abstract ValueProvider<String> getProjectId(); public abstract ValueProvider<String> getInstanceId(); public abstract ValueProvider<String> getDatabaseId(); public abstract String getHost(); DatabaseAdminClient databaseAdminClient = spanner.getData...
0
* Copyright (c) 2002, 2003 The Apache Software Foundation. All rights * @version $Revision: 1.3 $ $Date: 2003/02/12 07:56:09 $
0
@Override @Override @Override @Override
0
* @see java.awt.GradientPaint * @see java.awt.TexturePaint * @param x x coordinate of the origin of the rotation * @param y y coordinate of the origin of the rotation * {@link java.awt.Graphics#setClip(Shape) setClip} with a * <code>null</code> argument, the specified <code>Shape</code> be...
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
public Response handleRequest(HttpHeaders headers, UriInfo ui, RequestType requestType, MediaType mediaType, String resourceId) { getMediaType(mediaType), createResource(resourceId)); throw new IllegalArgumentException("Unknown resource type ...
0
.apply(BigQueryIO.write()
0
final String id = ioSession.getId(); sessionLog.debug(id + " " + connection + " connected"); sessionLog.debug(id + " " + connection + " disconnected"); sessionLog.error(id + " " + ex.getMessage(), ex); return supe...
0
import org.apache.beam.sdk.annotations.Experimental; import org.apache.beam.sdk.annotations.Experimental.Kind; @Experimental(Kind.FILESYSTEM)
0
proxyManifest.getLocationList().stream()
0
RPC_SSL_KEYSTORE_PATH("rpc.javax.net.ssl.keyStore", "", PropertyType.PATH, "Path of the keystore file for the servers' priva:q" + "te SSL key"), RPC_SSL_TRUSTSTORE_PATH("rpc.javax.net.ssl.trustStore", "", PropertyType.PATH, "Path of the truststore file for the root cert"),
0
import org.apache.beam.sdk.transforms.DoFn; import org.apache.beam.sdk.transforms.windowing.BoundedWindow; new DoFn<KV<String, Long>, CompletionCandidate>() { @ProcessElement extends DoFn<KV<String, List<CompletionCandidate>>, CompletionCandidate> { @ProcessElement * A DoFn th...
0
doc = XMLUtils.parse(is, false); doc = XMLUtils.parse(is, false);
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
profile("log").version("1.3.0"), profile("felix.config").version("1.0.10"),
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
/* for (int i = 0; i < m_configurableProperties.size(); i++) { m_updated.call(instance, new Object[] {props});
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//collections/src/java/org/apache/commons/collections/bag/AbstractMapBag.java,v 1.10 2004/01/02 01:36:51 psteitz Exp $ * Copyright (c) 2002-2004 The Apache Software Foundation. All rights * @version $Revision: 1.10 $ $Date: 2004/01...
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
Config config = cluster.getConfig(configType, cr.getVersionTag()); if (null != config) { configs.add(config); }
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Sets; import org.apache.beam.vendor.guava.v20_0.com.google.common.util.concurrent.Uninterrupti...
0
} catch (XMLSecurityException e) { if (log.isDebugEnabled()) { log.debug(e); } }
0
import java.util.concurrent.CountDownLatch; import org.apache.sshd.common.SshConstants; import org.apache.sshd.common.session.AbstractSession; import org.apache.sshd.server.Command; sshd.setShellFactory(new TestEchoShellFactory()); @Test public void testClientDisconnect() throws Exception { Test...
0
import java.util.Optional; this(offer, attributes, Optional.empty());
0
* A WindowSet where windows are never merged or deleted. This allows us to improve upon the default * {@link BufferingWindowSet} by not maintaining a merge tree (or the list of active windows at all) * and by blindly using tag lists to store elements. class NonMergingBufferingWindowSet<K, V, W extends BoundedWindow>...
0
* Euphoria operators test suite, see * {@link cz.seznam.euphoria.operator.test.AllOperatorsSuite}. package cz.seznam.euphoria.operator.test;
0
_output_.write(NULL_CHAR);
0
@Override
0
public TaskResourceDefinition() { super(Resource.Type.Task);
1
/* * Copyright 2002-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 b...
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 l...
0
return href.equals(name) || href.equals(fileName.getPath());
0
* Copyright (c) 2004 The Apache Software Foundation. All rights * @version $Id: FTPFileList.java,v 1.6 2004/01/01 21:04:18 scohen Exp $
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 (isMultipart() || (part.getContent() != null && part.getContent() instanceof Part))
0
.put(TypeName.BYTES, str -> BaseEncoding.base64().decode(str)) return BaseEncoding.base64().encode((byte[]) fieldValue);
0
/** * Sets the filter for the services that should be tracked. Any service object * matching the filter will be returned, without any additional filter on the * class. * * @param serviceFilter the filter condition * @return this service dependency */ ServiceDependency se...
0
final ConnectTimeoutException ctx = new ConnectTimeoutException(null, null); final ConnectTimeoutException ctx = new ConnectTimeoutException(cause, null); final ConnectTimeoutException ctx = new ConnectTimeoutException(cause, target); final HttpHostConnectException ctx = new HttpHostConn...
0
import org.apache.accumulo.core.client.Accumulo; try (AccumuloClient c = Accumulo.newClient().from(getClientProps()).build()) { try (AccumuloClient c = Accumulo.newClient().from(getClientProps()).build()) { try (AccumuloClient c = Accumulo.newClient().from(getClientProps()).build()) {
0
StageUtils.setConfiguration(injector.getInstance(Configuration.class));
0
* The 'mode' attribute values. protected final static String[] MODE_VALUES = { "", SVG_NORMAL_VALUE, SVG_MULTIPLY_VALUE, SVG_SCREEN_VALUE, SVG_DARKEN_VALUE, SVG_LIGHTEN_VALUE }; return getAnimatedStringAttribute(null, SVG_IN_ATTRIBUTE); return...
0
/* @XmlElement(name="unlimitedKeyJCERequired") private UnlimitedKeyJCERequirement unlimitedKeyJCERequired; unlimitedKeyJCERequired = prototype.unlimitedKeyJCERequired; public UnlimitedKeyJCERequirement getUnlimitedKeyJCERequired() { return unlimitedKeyJCERequired; } public void setUnlimitedKeyJCEReq...
0
import org.apache.accumulo.core.util.shell.Shell.TableOperation; public class RevokeCommand extends TableOperation { private Option systemOpt, userOpt; private String user; private String[] permission; public int execute(String fullCommand, CommandLine cl, Shell shellState) throws Exception { user = cl.hasO...
0
try (AccumuloClient accumuloClient = getClient()) { String tableName = getUniqueNames(1)[0]; ReadWriteIT.ingest(accumuloClient, getClientInfo(), ROWS, COLS, 50, 0, tableName); ReadWriteIT.verify(accumuloClient, getClientInfo(), ROWS, COLS, 50, 0, tableName); accumuloClient.tableOperations()....
0
* * @version $Id$
0
builder.environment().put("ACCUMULO_CONF_DIR", config.getConfDir().getAbsolutePath());
0
/** * Signals corrupt HTTP/2 frame. * * @since 5.0 */
0
import org.apache.accumulo.shell.ShellOptions; userOpt = new Option(ShellOptions.userOption, "user", true, "user to operate on");
1
import org.apache.ambari.server.state.UriInfo; * A special {@link JMXHostProvider} that resolves JMX URIs based on cluster configuration.
0
import org.apache.hc.core5.io.CloseMode; client.shutdown(CloseMode.GRACEFUL);
0
* * @version $Id$ /** * Translates a List of Interpreter.Argument objects into a classic
0
// don't allow instantiation String parentName = attr.getOwnerElement().getTagName(); String attrValue = attr.getValue(); Object exArgs[] = { parentName, nodeAttrName, attrValue };
0
import static org.junit.Assert.assertTrue; public class SignedEncryptedTest { assertTrue(xmlSignatureVerifier.checkSignatureValue(pub)); }
0
* $Id: TestCollectionUtils.java,v 1.10 2002/12/08 15:29:26 scolebourne Exp $ * $Revision: 1.10 $ * $Date: 2002/12/08 15:29:26 $ * @version $Revision: 1.10 $ $Date: 2002/12/08 15:29:26 $ public void testCountMatches() { List list = new ArrayList(); list.add("One"); list.add("Two"); ...
0
write(Op.saveJobUpdateEvent(new SaveJobUpdateEvent(event.newBuilder(), key.newBuilder()))); new SaveJobInstanceUpdateEvent(event.newBuilder(), key.newBuilder())));
0
* limitations under the License.
0
import org.apache.xml.security.utils.XMLUtils; DocumentBuilder db = XMLUtils.createDocumentBuilder(false); DocumentBuilder builder = XMLUtils.createDocumentBuilder(false); document = StAX2DOM.readDoc(XMLUtils.createDocumentBuilder(false), securityStreamReader); DocumentBuilder builder = ...
0
package org.apache.batik.dom.svg; import org.apache.batik.util.CSSConstants;
0
/** * An {@link Int2IntFunction} that returns same value as input */ Int2IntFunction IDENTITY = new Int2IntFunction() { @Override public int apply(int value) { return value; } }; final class Utils { throw new UnsupportedOperationException("No i...
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
import org.apache.accumulo.core.client.impl.Table; public static final Validator<Table.ID> VALID_ID = new Validator<Table.ID>() { public boolean test(Table.ID tableId) { && (RootTable.ID.equals(tableId) || MetadataTable.ID.equals(tableId) || ReplicationTable.ID.equals(tableId) || tableId.canonicalID().m...
1
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
0
* Merge the given accumulators according to the underlying combiner. AccumT mergeAccumulators(Iterable<AccumT> accumulators);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java,v 1.6 2003/05/06 11:32:23 rdonkin Exp $ * $Revision: 1.6 $ * $Date: 2003/05/06 11:32:23 $ * @version $Revision: 1.6 $ $Date: 2003/05/06 11:32:23 $ private...
0
public class DataflowServiceException extends DataflowJobException { DataflowServiceException(DataflowPipelineJob job, String message) { DataflowServiceException(DataflowPipelineJob job, String message, @Nullable Throwable cause) {
0
public abstract class AbstractListHandler<T> implements ResultSetHandler<List<T>> { public List<T> handle(ResultSet rs) throws SQLException { List<T> rows = new ArrayList<T>(); protected abstract T handleRow(ResultSet rs) throws SQLException;
0
@Test(timeout=30*1000)
1
import org.apache.http.HttpEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.impl.client.CloseableHttpClient; import static org.easymock.EasyMock.expectLastCall; private CloseableHttpClient httpClient; httpClient = createMock(CloseableHttpClient.class); CloseableHttpR...
0