Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken.Properties;
0
import org.apache.hc.client5.http.impl.AuthSupport; AuthSupport.extractFromAuthority(authority, (CredentialsStore) credsProvider); final HttpHost target = AuthSupport.resolveAuthTarget(request, route);
0
import org.apache.commons.exec.CommandLine; protected CommandLine getProcEnvCommand() { CommandLine commandLine = new CommandLine(); commandLine.setExecutable("show"); commandLine.addArgument("logical"); return commandLine;
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
public void visitLocalVariableInstruction( LocalVariableInstruction i ) { public void visitArrayInstruction( ArrayInstruction i ) { public void visitFieldInstruction( FieldInstruction i ) { public void visitInvokeInstruction( InvokeInstruction i ) { public void visitAllocationInstruction( Allocation...
0
windowToString((IntervalWindow) window(0, 10), windowCoder), new Instant(9), "k"))); runner.processElement(WindowedValue.valueInEmptyWindows( TimerOrElement.<KV<String, String>>timer( // TODO: To simplify tests, create a timer manager that can sweep a watermark past some timers ...
0
@Override @Override @Override @Override @Override @Override @Override @Override @Override @Override
0
cnxnFactory.start();
0
import org.apache.hc.core5.http.HttpVersion; import org.apache.hc.core5.http.ProtocolVersion; import org.apache.hc.core5.http.message.RequestLine; ProtocolVersion transportVersion = message.getVersion(); if (transportVersion == null || transportVersion.greaterEquals(HttpVersion.HTTP_2_0)) { ...
0
for (Object o : targets.entrySet()) { Map.Entry e = (Map.Entry) o; (DoublyIndexedTable.Entry) j.next(); targetListener); targetListener); for (Map.Entry e : targetEntries) { (DoublyIndexed...
0
@Override @Override @Override
0
reportError("character.unexpected", new Object[] { new Integer(current) });
0
private final static Set<String> KEYWORDS = new HashSet<>( Arrays.asList("abstract", "continue", "for", "new", "switch", "super", "while")); public void set(CommandSession session, String[] argv) { for (String key : new TreeSet<>(Shell.getVariables(session))) { ...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.MoreObjects;
0
import org.apache.hc.core5.http.ConnectionClosedException; if (sock == null) { throw new ConnectionClosedException("Connection is closed"); }
0
import com.google.common.collect.ImmutableSet; import org.apache.aurora.gen.Metadata; .setMetadata(ImmutableSet.<Metadata>of())
0
* * * @return FileObject representing the base folder. * @return The FileObject. * @return The depth of the file relative to the base folder.
0
Set<Pair<Text,Text>> fetchedColumns = new HashSet<>(); fetchedColumns.add(new Pair<>(new Text("colf1"), new Text("colq1"))); fetchedColumns.add(new Pair<>(new Text("colf2"), new Text("colq2"))); ArrayList<IteratorSetting> iterators = new ArrayList<>();
0
SortedMap<String,TableInfo> tableStats = new TreeMap<>(Monitor.getMmi().tableMap);
0
String.format("Cannot provide a coder for wildcard type %s.", type), ReasonCode.UNKNOWN);
0
__input.close(); __output.close();
0
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.fail; @org.junit.jup...
0
* Copyright (C) 2015 Google Inc.
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 junit.framework.TestCase;
0
* @version CVS $Id: ObjectModelHelper.java,v 1.2 2003/03/17 02:28:12 vgritsenko Exp $ /** Key for the expiration value (Long) in the object model. */ /** * Key for a {@link Map} containing information from * a parent request provided to a sub-request (internal processing) */
0
import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Lob; import javax.persistence.Table;
0
byte[] data = Base64.decodeBase64(merges.getBytes());
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/MapUtils.java,v 1.23 2003/05/09 18:41:34 scolebourne Exp $ * Copyright (c) 2001-2003 The Apache Software Foundation. All rights * any, must include the following acknowledgme...
0
import javax.inject.Singleton;
1
* {@link KeySelector} that retrieves a key from a {@link KV}. This will return the key as encoded * by the provided {@link Coder} in a {@link ByteBuffer}. This ensures that all key * comparisons/hashing happen on the encoded form. implements KeySelector<WindowedValue<KV<K, V>>, ByteBuffer>, ResultTypeQueryable<B...
1
import java.io.IOException; import javax.xml.parsers.ParserConfigurationException; import org.xml.sax.SAXException; Document inputDoc = null; if (input.getSubNode() != null) { inputDoc = XMLUtils.getOwnerDocument(input.getSubNode()); } else { inputDoc = XMLUtils.getOwnerDocument(...
0
static <W, T> Dataset<Pair<W, T>> extractWindowsToPair(Dataset<T> input, Class<W> expectedWindowType) { return FlatMap.of(input) .using((UnaryFunctor<T, Pair<W, T>>) (elem, context) -> { Object actualWindow = context.getWindow(); if (actualWindow != null && !expectedWindowType.isAss...
0
package org.apache.ambari.server.state; import org.apache.ambari.server.state.DeployState; import org.apache.ambari.server.state.State; public class DeployStateTest { State s1 = new State(); State s2 = new State(); s1.setState(DeployState.INSTALLED);
0
package org.apache.batik.gvt.filter; import org.apache.batik.ext.awt.image.GraphicsUtil;
0
* number of elements in the vector or array, where −2147483648 * (Integer.MIN_INT) describes an unbounded Vector and 2147483647 * (Integer.MAX_INT) describes an unbounded array. If the cardinality is * zero, the property is a scalar value. If the defined value of the * property is set in the va...
0
final InstructionHandle toThis = ih;
1
// Implementation methods
0
@Override @Override @Override @Override @Override @Override @Override @Override
0
public void acceptOffers(Protos.OfferID offerId, Collection<Protos.Offer.Operation> operations, Protos.Filters filter) {
0
final Integer elta = new Integer(17); // Cannot use valueOf here final Integer eltb = new Integer(17);
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
/** The engine for this expression. */ protected final JexlEngine jexl; public ScriptImpl(JexlEngine engine, String scriptText, ASTJexlScript scriptTree) { jexl = engine; Interpreter interpreter = jexl.createInterpreter(context); return interpreter.interpret(parsedScript, jexl.isSile...
0
static final String[] functions = { "telnetd" };
0
*/ public I2S() { super(org.apache.bcel.Constants.I2S); } /** * Call corresponding visitor method(s). The order is: * Call visitor methods of implemented interfaces first, then * call methods according to the class hierarchy in descending order, * i.e., the most specific visitX...
0
* import org.apache.bcel.classfile.ConstantModule; import org.apache.bcel.classfile.ConstantPackage; /** @since 6.1 */ public int constantModuleCount = 0; /** @since 6.1 */ public int constantPackageCount = 0; // TODO Auto-generated method stub // TODO Auto-generated method stub }...
0
* @version $Revision$
0
throw new RuntimeException(e);
0
/** * Get a blueprint * @response.representation.200.doc Get a blueprint * @response.representation.200.mediaType application/json * @param blueprintName Name of the blueprint * @param revision The optional blueprint revision to get * @return blueprint...
0
import org.apache.aurora.scheduler.storage.durability.ThriftBackfill;
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
* 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
/* * 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 org.apache.aurora.gen.Container; import org.apache.aurora.gen.MesosContainer; import org.apache.aurora.scheduler.base.TaskTestUtil; .setTaskConfig(makeTaskConfig())); private static TaskConfig makeTaskConfig() { TaskConfig config = TaskTestUtil.makeConfig(JOB_KEY).newBuilder(); config.setIsSe...
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
public ConfigurationResponse createConfiguration(ConfigurationRequest request) * Get service config version history * @param requests service config version requests * @return service config versions * @throws AmbariException */ Set<ServiceConfigVersionResponse> getServiceConfigVersions(Set<ServiceCo...
0
/** * Copyright 2016-2017 Seznam.cz, a.s. * * 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 ...
0
import org.apache.zookeeper.client.ZKClientConfig; System.setProperty(ZKClientConfig.LOGIN_CONTEXT_NAME_KEY, "MyZookeeperClient"); System.setProperty(ZKClientConfig.ENABLE_CLIENT_SASL_KEY, "false"); System.setProperty(ZKClientConfig.ENABLE_CLIENT_SASL_KEY, ...
0
* @version $Id$
0
/** * Invoked if the user configured usage of a proprietary heartbeat mechanism. * <B>Note:</B> by default throws {@code UnsupportedOperationException} so * users who configure a proprietary heartbeat mechanism option must provide * an implementation for this method. * * @param servic...
0
public class ComponentLayoutRecommendationCommand extends public ComponentLayoutRecommendationCommand(File recommendationsDir, String stackAdvisorScript, int requestId, StackAdviso...
0
Kind value() default Kind.UNSPECIFIED; enum Kind {
0
authSocket = this.getString(SshAgent.SSH_AUTHSOCKET_ENV_NAME); final int copyBufSize = this.getIntProperty(FORWARDER_BUFFER_SIZE, DEFAULT_FORWARDER_BUF_SIZE);
0
throw new MojoExecutionException("getExternalFieldByName not supported for this class."); throw new MojoExecutionException("getReferencedClass not supported for this 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 may not...
1
@NamedQuery(name = "principalByPrivilegeId", query = "SELECT principal FROM PrincipalEntity principal JOIN principal.privileges privilege WHERE privilege.permission.id=:permission_id"), @NamedQuery(name = "principalByPrincipalType", query = "SELECT principal FROM PrincipalEntity principal WHERE principal.principalT...
0
Map<String, String> commandParams = actionExecContext.getParameters() != null ? actionExecContext.getParameters() : new TreeMap<>();
0
import org.apache.felix.dependencymanager.test2.components.Ensure; import org.apache.felix.dependencymanager.test2.integration.common.TestBase; import org.ops4j.pax.exam.junit.PaxExam;
0
import org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy; return createHttp2Minimal(h2Config, ioReactorConfig, DefaultClientTlsStrategy.getDefault());
0
import org.junit.Rule; import org.junit.rules.ExpectedException; @Rule public ExpectedException thrown = ExpectedException.none(); public void testVerifyCompatibility() throws IncompatibleWindowException { SlidingWindows.of(new Duration(10)).verifyCompatibility(SlidingWindows.of(new Duration(10))); thrown...
0
import java.sql.Connection; * @version CVS $Id: PervasiveEsqlQuery.java,v 1.3 2003/03/20 21:51:43 tcurdt Exp $ public PervasiveEsqlQuery(Connection connection, String query) {
0
* @version CVS $Id: TreeProcessor.java,v 1.32 2004/05/26 01:31:06 joerg Exp $
0
shellState.getAccumuloClient().namespaceOperations().create(namespace); if (shellState.getAccumuloClient().namespaceOperations().exists(namespace)) { configuration = shellState.getAccumuloClient().namespaceOperations().getProperties(copy); shellState.getAccumuloClient().namespaceOperations()...
0
/** Major version number of class files for Java 9. * @see #MINOR_9 public static final short MAJOR_9 = 53; /** Minor version number of class files for Java 9. * @see #MAJOR_9 public static final short MINOR_9 = 0; /** * @deprecated Use {@link #MAJOR_9} instead */ @Deprecated public static ...
0
import org.apache.cocoon.forms.datatype.convertor.ConversionResult; * @version $Id: AbstractDatatype.java,v 1.5 2004/05/06 14:59:44 bruno Exp $ public ConversionResult convertFromString(String value, Locale locale) {
0
LOG.debug(ShellCommandUtil.hideOpenSslPassword(command));
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/FilterListIterator.java,v 1.3 2003/08/31 17:25:49 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowledgement may app...
0
import org.apache.accumulo.server.security.SecurityOperationImpl; security = SecurityOperationImpl.getInstance();
0
if (isKnopflerfish()) { return; // Test disabled on KF }
0
* @since 6.0
0
public void testDebuggerConfig() throws IOException { final String cdbgVersion = "test-v1"; DataflowPipelineOptions options = buildPipelineOptions(); options.setCdbgVersion(cdbgVersion); String expectedConfig = "{\"version\":\"test-v1\"}"; Pipeline p = buildPipeline(options); p.traverseTopolo...
0
package org.apache.beam.sdk.extensions.sql.planner; import org.apache.beam.sdk.extensions.sql.BeamSqlEnv; import org.apache.beam.sdk.extensions.sql.rel.BeamLogicalConvention; import org.apache.beam.sdk.extensions.sql.rel.BeamRelNode; import org.apache.beam.sdk.extensions.sql.schema.BaseBeamTable; import org.apache.beam...
0
p.apply(Create.of(Arrays.asList(TABLE)).withCoder( KvCoder.of(StringUtf8Coder.of(), BigEndianIntegerCoder.of()))); p.apply(Create.of(Arrays.asList(EMPTY_TABLE)).withCoder( KvCoder.of(StringUtf8Coder.of(), BigEndianIntegerCoder.of())));
0
* @version CVS $Id: PlainFloatConvertor.java,v 1.2 2004/01/30 00:40:34 joerg Exp $ return new Float(value); return Float.class;
0
* @version CVS $Id: PortletRequest.java,v 1.1 2004/02/23 15:14:01 cziegeler Exp $
0
import org.apache.ambari.server.state.HostHealthStatus; import org.apache.ambari.server.state.HostState; import org.apache.ambari.server.state.HostHealthStatus.HealthStatus;
0
import org.apache.beam.sdk.transforms.OldDoFn; .apply("Identity", ParDo.of(new OldDoFn<T, T>() {
0
package org.apache.jute;
0
ZooKeeper zk = new ZooKeeper(HOSTPORT, CONNECTION_TIMEOUT, this);
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
/** * Extracts the array of SubjectAlt DNS names from an X509Certificate. * Returns null if there aren't any. * <p/> * Note: Java doesn't appear able to extract international characters * from the SubjectAlts. It can only extract international characters * from the CN field. * <...
0
* of RFC 977.
0
int result = 17; if (id != null) { result = 31 * result + id.hashCode(); } if (encoding != null) { result = 31 * result + encoding.hashCode(); } if (mimeType != null) { result = 31 * result + mimeType.hashCode(); } resul...
0
/** Generate {@link Schema} from {@code RelDataType} which is used to create table. */
0
handleRequest(request, connState, conn); connState.setOutputState(ServerConnState.RESPONSE_DONE); connState.resetOutput(); connState.resetInput(); connState.setOutputState(ServerConnState.RESPONSE...
0
import org.apache.batik.css.engine.value.ValueManager;
0
class BHttpConnectionBase implements BHttpConnection { final SessionInputBufferImpl inbuffer; final SessionOutputBufferImpl outbuffer; final MessageConstraints messageConstraints; final HttpConnectionMetricsImpl connMetrics; final AtomicReference<Socket> socketHolder; BHttpConnectionBase( ...
0
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; @SuppressFBWarnings("NN_NAKED_NOTIFY") @Override
0
@Override protected void setUp() throws Exception { listener = new CollectionFilesystemListener(true); super.setUp(); }
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/map/TestFlat3Map.java,v 1.1 2003/11/18 23:23:05 scolebourne Exp $ package org.apache.commons.collections.map; import org.apache.commons.collections.BulkTest; * @version $Revision:...
0