Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.accumulo.miniclusterImpl.MiniAccumuloClusterImpl.ProcessInfo; Process p = cluster.exec(clz, args).getProcess(); ProcessInfo pi = cluster.exec(clz, args); exitCode = pi.getProcess().waitFor(); return Maps.immutableEntry(exitCode, pi.readStdOut()); Process p = cluster.exec(Admin.cl...
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 ma...
0
PTransformTranslation.COMBINE_PER_KEY_TRANSFORM_URN, new CombinePerKeyTranslatorBatch());
0
* The following parameters can be used to customize the behavior of this * class: * * Creates a new instance of this class to be used for dispatching I/O event * notifications to the given protocol handler using the given * {@link SSLContext}. This I/O dispatcher will transparently handle SSL *...
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
PowerMock.expectNew(CredentialProvider.class, null, null, configuration).andReturn(credentialProvider);
0
.satisfies(new VerifyStreamFrequencies<>(coder, distinctElems, frequencies)); .satisfies(new VerifyStreamFrequencies<>(coder, distinctElems, frequencies)); new SketchFrequencies.CountMinSketchCoder<>(), cMSketch);
0
if (configs.getJavaVersion() >= 8) { System.setProperty("jdk.tls.ephemeralDHKeySize", String.valueOf(configs.getTlsEphemeralDhKeySize())); }
0
return setTableProperty(context.getZooReaderWriter(), context.getZooKeeperRoot(), tableId, property, value); public static boolean setTableProperty(ZooReaderWriter zoo, String zkRoot, Table.ID tableId, String property, String value) throws KeeperException, InterruptedException { zoo.putPersisten...
0
int i = 0, j = 0; int maxCountforFileResourceAmbaridb = 0, maxCountforUdfAmbaridb = 0, maxCountforSavequeryAmbaridb = 0; for (int l = 0; l < usernames.length; l++) { logger.info("No queries has been selected for the user " + username + " between dates: " + startDate + " - " + endDate); ...
0
* @throws IllegalArgumentException if no property name is specified * @throws IllegalAccessException if the Class or the appropriate * @throws InstantiationException if this Class represents an abstract
0
import org.osgi.service.component.ComponentServiceObjects; public static final Class<?> COMPONENTS_SERVICE_OBJECTS_CLASS; serviceObjectsClass = ComponentServiceObjects.class; COMPONENTS_SERVICE_OBJECTS_CLASS = serviceObjectsClass;
0
import org.codehaus.plexus.util.StringUtils; String mergedInstruction = StringUtils.replace( instruction, MAVEN_DEPENDENCIES, mavenDependencies );
0
import org.apache.xml.security.utils.XMLUtils; import javax.xml.parsers.ParserConfigurationException; public static Document readDoc(XMLStreamReader xmlStreamReader) throws XMLStreamException, ParserConfigurationException { Document document = XMLUtils.newDocument();
0
import org.apache.ambari.logsearch.model.request.impl.AuditServiceLoadRequest; import org.apache.ambari.logsearch.solr.SolrConstants; import org.apache.commons.lang.StringUtils; import org.springframework.data.solr.core.query.SimpleFacetQuery; @Override public void appendFacetQuery(SimpleFacetQuery facetQuery, Aud...
0
import org.apache.beam.sdk.extensions.sql.impl.BeamSqlEnv; public class BeamSetOperatorRelBaseTest extends BaseRelTest { PCollection<BeamRecord> rows = compilePipeline(sql, pipeline, sqlEnv); compilePipeline(sql, pipeline1, sqlEnv);
0
import com.google.cloud.dataflow.sdk.transforms.windowing.Window; import com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn; import com.google.cloud.dataflow.sdk.util.AssignWindows; import com.google.cloud.dataflow.sdk.util.WindowingStrategy; } else if (transform instanceof Window.Bound) { return (Ou...
0
/** * 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 in writing, software * distribu...
0
* @return The violated permission as {@link Pair} where {@link Pair#getClass()} * is a loggable message and {@link Pair#getSecond()} is the offending object * - e.g., {@link PosixFilePermission} or {@link String} for owner. Return * value is {@code null} if no violations detected
0
@Version("1.0.8")
0
import org.apache.http.conn.SchemeSet; * It uses a {@link SchemeSet SchemeSet} to look up /** The scheme set for looking up socket factories. */ protected SchemeSet schemeSet; /** * Creates a new client connection operator. * Uses {@link SchemeSet#DEFAULT SchemeSet.DEFAULT} * as the scheme ...
0
import java.util.Collection; import java.util.SortedSet; import com.google.common.collect.ImmutableSortedSet; private static final InitialTableState DEFAULT_CREATION_MODE = InitialTableState.ONLINE; private InitialTableState initialTableState = DEFAULT_CREATION_MODE; private final Map<String,String> iteratorPro...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractShortArrayList.java,v 1.4 2002/10/12 22:36:21 scolebourne Exp $ * $Revision: 1.4 $ * $Date: 2002/10/12 22:36:21 $ import org.apache.commons.collectio...
0
config = zkAdmin.reconfigure(joiningServers, leavingServers, zkAdminArr[1].reconfigure(null, leavingServers, null, -1, this, results);
0
import org.apache.hc.core5.http.nio.CapacityChannel; protected abstract void consumeData(ByteBuffer src) throws IOException; public final void updateCapacity(final CapacityChannel capacityChannel) throws IOException { capacityChannel.update(Integer.MAX_VALUE); } @Override consumeData(sr...
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
import java.io.InputStream; import java.util.ArrayList; import java.util.Collection; * @version $Id: FileUtils.java,v 1.16 2003/10/17 20:15:46 matth Exp $ Collection files = new ArrayList(); File currentDir = new File(directory); File currentFile = new java.io.File(currentFileName); ...
1
public void testDefaultServiceState_DISABLED() throws Exception{ ServiceComponentHostResponse shr1 = new ServiceComponentHostResponse("C1", "MAPREDUCE", "JOBTRACKER", "Host100", "DISABLED", "", null, null, null);
0
/** * Represents any custom command */ /** * Represents any action */
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.MoreObjects; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
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
LinkStyle { values.put(SVG_SPACE_ATTRIBUTE, VALUE_PRESERVE); if (!getType().equals("text/css")) { } StringBuffer sb = new StringBuffer(); sb.append(n.getNodeValue()); CSSDocumentHandler.parseRules(ss, sb.toString()); return X...
0
import org.apache.ambari.server.topology.ConfigRecommendationStrategy; assertEquals(ConfigRecommendationStrategy.defaultForAddService(), request.getRecommendationStrategy()); assertEquals(ConfigRecommendationStrategy.defaultForAddService(), request.getRecommendationStrategy()); assertEquals(ConfigRecommenda...
0
import org.apache.sshd.common.util.SecurityUtils; import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider; if (SecurityUtils.isBouncyCastleRegistered()) { setUp(new AES192CBC.Factory()); runTest(); } if (SecurityUtils.isBouncyCastleRegistered()) { ...
0
Copyright 2001-2006 The Apache Software Foundation * @throws IllegalArgumentException when the result of getBaseURI() * cannot be used as an URL. if (getXblBoundElement() != null) { return null; } String bu = getBaseURI(); if (bu == null) { ...
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.accumulo.server.conf.TableConfiguration; public static ConstraintChecker load(TableConfiguration conf) throws IOException { log.debug("Loaded constraint " + clazz.getName() + " for " + conf.getTableId());
1
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
0
if (i == 10) continue; if (fs != null) fs.delete(new Path("manyMaps"), true); if (i == 10) continue; if (i == 10) continue;
1
import org.apache.accumulo.core.client.AccumuloClient; AccumuloClient conn = AccumuloClient.builder().usingClientInfo(info).build(); result = AccumuloClient.builder().usingClientInfo(info) .usingToken(info.getPrincipal(), token).info(); return Connector.from(getConnector(implementingClas...
0
import java.security.SecureRandom; private static final Random random = new SecureRandom();
0
Map<String, Object> attributes = new HashMap<>(); Map<String, Object> attributes = new HashMap<>(); Map<String, Object> updatedAttributes = new HashMap<>(attributes); Map<String, Object> addedAttributes = new HashMap<>(updatedAttributes); Map<String, Object> attributes = new HashMap<>(); Map<Str...
0
private final List<AnnotationEntryGen> annotation_vec= new ArrayList<>();
0
if ( ctorValue != null )
0
import static org.easymock.EasyMock.createNiceMock; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.controller.MaintenanceStateHelper; import org.apache.ambari.server.state.Service; public void testGetPostProcessors() throws AmbariException { MaintenanceStateHelper maintenanceStat...
0
* {@link jline.Completor} for features not installed yet. public class AvailableFeatureCompleter extends FeatureCompleterSupport { @Override protected boolean acceptsFeature(Feature feature) { return !featuresService.isInstalled(feature);
0
import java.util.Objects; public int hashCode() { return Objects.hashCode(tserverInstance); } @Override
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 * "Lice...
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
package org.apache.http.impl.io; import org.apache.http.io.HttpDataReceiver;
0
Library getEnclosingLibrary(); void setEnclosingLibrary(Library lib);
0
subBidiLevel = ((Integer)o); int cbidi = 0; if (bidiLevel != null) cbidi = bidiLevel.intValue(); // We don't care if it was embed or override we just want // it's level here. So map override to positive value. if (cbidi < 0) cbidi = -cbidi; ...
1
import org.apache.xml.security.utils.XMLUtils; super(doc); XMLUtils.addReturnToElement(this._constructionElement); super(element, BaseURI); XMLUtils.addReturnToElement(this._constructionElement); XMLUtils.addReturnToElement(this._constructionElement); XMLUtils.addReturnToElement(this...
0
} else { // must be a new scan so re-initialize the counters log.info("reseting counters"); resetCounters(); protected void resetCounters() { yieldNexts.set(0); yieldSeeks.set(0); rebuilds.set(0); yieldNextKey.set(false); yieldSeekKey.set(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 ...
0
public class DefaultBranding extends Branding { private String[] defaultBanner = { " __ __ ____", " / //_/____ __________ _/ __/", " / ,< / __ `/ ___/ __ `/ /_", " / /| |/ /_/ / / / /_/ / __/", " /_/ |_|\\__,_/_/ \\__,_/_/" public DefaultBranding() { banner = d...
0
package org.apache.commons.ognl; * http://www.apache.org/licenses/LICENSE-2.0
0
* Gets an {@link UpgradeEntity} if there is an upgrade in progress or an * upgrade that has been suspended. This will return the associated * {@link UpgradeEntity} if it exists. * * @return an upgrade which will either be in progress or suspended, or * {@code null} if none. * UpgradeEnt...
0
final HttpRequest promise, final AsyncPushProducer pushProducer, final HttpContext httpContext) throws HttpException, IOException {
0
private final String failureMsg; public FaultyHttpRequestExecutor(String failureMsg) { this.failureMsg = failureMsg; } throw new IOException(failureMsg); private final String failureMsg; public FaultyHttpClient() { ...
0
* Asynchronous, fully streaming HTTP/1.1 reverse proxy.
0
* <li><p> * </p></li> * * <li><p> * </p></li> * @throws IOException If invalid format found
0
import java.util.Collections; import java.util.List; import org.apache.ambari.view.ResourceProvider;
0
if (closed) { log.debug("Window {} has been closed", name); } else { log.debug("Space available for {}", name); } if (closed) { log.debug("Window {} has been closed", name); } else...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/DefaultMapEntry.java,v 1.15 2003/12/05 20:23:57 scolebourne Exp $ * @version $Revision: 1.15 $ $Date: 2003/12/05 20:23:57 $ * @deprecated Use the version in the keyvalue subpacka...
0
try { conn.setSocketTimeout(timeout); } catch (RuntimeException ex) { session.shutdown(); throw ex; } NHttpServerIOTarget conn = (NHttpServerIOTarget) session.getAttribute( ExecutionContext.HTTP_CONNECTION); try { NH...
0
if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) {
0
} else if ("HEAD".equalsIgnoreCase(method)) { return new BasicHttpRequest(requestline);
0
* * @since 4.0
0
/** * 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 in writing, software * distribu...
0
import org.apache.beam.sdk.options.PipelineOptionsFactory; SparkPipelineOptions options = PipelineOptionsFactory.as(SparkPipelineOptions.class); options.setRunner(SparkPipelineRunner.class);
0
* @param <I> the input type * @param <O> the output type return (Transformer<I, O>) (defaultTransformer == null ? ConstantTransformer.<I, O>nullTransformer() : defaultTransformer); * @param <I> the input type * @para...
0
* * * * @version CVS $Id$ node.setInternalErrorHandler(config.getAttributeAsBoolean("internal-error-handling", false));
0
package org.apache.felix.sigil.eclipse.ui.internal.editors.project; import org.apache.felix.sigil.eclipse.ui.internal.form.SigilPage; import org.apache.felix.sigil.eclipse.ui.internal.form.SigilSection;
0
import org.apache.felix.framework.util.manifestparser.*;
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...
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
exchangeHandler.failed(new ConnectionClosedException());
0
import org.apache.http.HttpVersion; import org.apache.http.HttpStatus; import org.apache.http.Header; public void testSLFormatting() throws Exception { StatusLine statusline = new BasicStatusLine(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK"); String s = BasicLineFormatter.formatStatusLine(statu...
0
Copyright 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 applicable law...
0
* $Source: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbcp/src/java/org/apache/commons/dbcp/DelegatingCallableStatement.java,v $ * $Revision: 1.11 $ * $Date: 2003/08/22 16:08:31 $ * Copyright (c) 1999-2003 The Apache Software Foundation. All rights * any, must include the follo...
0
import java.util.Map;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/InfoSetUtil.java,v 1.3 2002/06/16 03:22:21 dmitri Exp $ * $Revision: 1.3 $ * $Date: 2002/06/16 03:22:21 $ * Type conversions, XPath style. * * @version $Revision: 1.3 $ $Date: 2002/0...
1
Script compiledScript = cx.compileReader(reader,
0
public boolean equals(Object obj) { if (obj instanceof MethodKey) { MethodKey key = (MethodKey) obj;
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
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
endpoint, additionalEndpoints, status, ServerSet.JSON_CODEC); ServiceInstance instance = ServerSets.deserializeServiceInstance(data, ServerSet.JSON_CODEC);
0
// The position has changed, so close and destroy the object to induce a re-creation on the next // call to read() s3Object = null;
0
public static Boolean coerceBoolean(Object val) {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Digester.java,v 1.76 2003/04/25 10:24:08 rdonkin Exp $ * $Revision: 1.76 $ * $Date: 2003/04/25 10:24:08 $ * @version $Revision: 1.76 $ $Date: 2003/04/25 10:24:08 $ * @return the ...
0
import static org.apache.ambari.logsearch.doc.DocConstants.StatusOperationDescriptions.EVENT_HISTORY_STATUS_OD; @Named("solrEventHistoryState") private SolrCollectionState solrEventHistoryState; response.put("eventHistory", solrEventHistoryState); @Path("/history") @ApiOperation(EVENT_HISTORY_STATUS_OD) p...
0
import org.junit.Assert;
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
current_class = classNamesJList.getSelectedValue();
0
/* * Copyright (C) 2014 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
public final class ServletInfo extends WhiteboardServiceInfo<Servlet>
0
import org.apache.accumulo.monitor.util.celltypes.PreciseNumberType;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//cli/src/java/org/apache/commons/cli/OptionBuilder.java,v 1.13 2002/11/18 08:41:26 jkeyes Exp $ * $Revision: 1.13 $ * $Date: 2002/11/18 08:41:26 $ return create( null );
0