Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
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
* Construct object from input stream. * @param input Input stream PMGClass(int name_index, int length, DataInput input, ConstantPool constant_pool) this(name_index, length, input.readUnsignedShort(), input.readUnsignedShort(), constant_pool);
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
/* * 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 void setSourceResolver(SourceResolver resolver) {
0
* @param file the file to check (ignored) * @param dir the directory to check (ignored) * @param name the filename (ignored)
0
for (Map.Entry<?, ?> entry : ((Map<?, ?>) orig).entrySet()) {
0
hdfs.getServiceComponent(Role.DATANODE.name()).getServiceComponentHost(hostname1).setDesiredState(State.INSTALLED); hdfs.getServiceComponent(Role.NAMENODE.name()).getServiceComponentHost(hostname1).setDesiredState(State.INSTALLED); hdfs.getServiceComponent(Role.SECONDARY_NAMENODE.name()).getServiceComponent...
0
import javax.ws.rs.DELETE; import org.apache.ambari.logsearch.common.StatusMessage; public ServiceLogResponse searchServiceLogs(@BeanParam ServiceLogRequest request) { @DELETE @Produces({"application/json"}) @ApiOperation(PURGE_LOGS_OD) public StatusMessage deleteServiceLogs(@BeanParam ServiceLogRequest reque...
0
FileSKVIterator dataIter; } else { dataIter = iter;
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
/** * Session callback interface used internally by I/O reactor implementations. */
0
import org.apache.accumulo.core.clientImpl.Namespace; import org.apache.accumulo.core.clientImpl.Table; import org.apache.accumulo.core.clientImpl.Tables;
0
map.put(HostComponentResourceProvider.COMPONENT_NAME, "MYCOMPONENT");
0
* @version $Id$
0
@Override
0
import java.awt.Paint; import java.awt.Stroke; import java.awt.font.TextAttribute; import java.text.AttributedCharacterIterator;
0
* limitations under the License.
0
import org.apache.accumulo.cloudtrace.instrument.Span; import org.apache.accumulo.cloudtrace.instrument.Trace;
0
private SignedInfoProcessor signedInfoProcessor;
1
* @version $Id: ConfigurationConverter.java,v 1.4 2004/06/02 16:42:24 ebourg Exp $ Configuration config = new BaseConfiguration(); Configuration config = new BaseConfiguration();
0
import java.io.UncheckedIOException; import org.apache.accumulo.fate.zookeeper.ZooReaderWriter; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; @SuppressFBWarnings(value = "UNENCRYPTED_SERVER_SOCKET", justification = "not obvious what credentials could be used to set up this log receiver" ...
0
import org.apache.beam.sdk.transforms.Combine.BinaryCombineFn; import org.apache.beam.sdk.transforms.display.DisplayData;
0
context.setTargetHost(new HttpHost("foo.example.com"));
0
private final ConfigurationNodePointer<T> parentPointer; private final List<String> attributeNames;
0
/* public class OsgiServletHandler extends ServletHandler public void addOsgiServletHolder( String pathSpec, ServletHolder holder ) super.addServletHolder( pathSpec, holder ); public OsgiServletHolder removeOsgiServletHolder( String pathSpec ) OsgiServletHolder holder = ( OsgiServletHolder ) su...
0
* @see FileFilterUtils#falseFileFilter()
0
* Component Instance State : STOPPED. * The component instance is not started. */ int STOPPED = 0; /** /** * @return true if getState return 1 or 2. */ boolean isStarted();
0
/* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/comparators/TestComparatorChain.java,v 1.7 2003/10/01 22:14:48 scolebourne Exp $ * * 3. The end-user documentation included with the redistribution, if * any, must include...
0
import static org.hamcrest.Matchers.is; assertThat("Resolved file isDirectory()", file1.isDirectory(), is(false)); assertThat("Resolved file isDirectory()", file2.isDirectory(), is(false)); assertThat("Resolved file isDirectory()", file2a.isDirectory(), is(false)); assertThat("Resolved directory isDirec...
0
* {@inheritDoc} * {@inheritDoc} * {@inheritDoc} * {@inheritDoc}
0
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
0
* @version CVS $Id: RedirectToNodeBuilder.java,v 1.3 2003/04/29 08:25:19 sylvain Exp $
0
assertTrue(ratioFirst < 3); assertTrue(ratioFirst > 0.3);
0
* @version $Id: CompositeConfiguration.java,v 1.19 2004/10/05 22:56:58 ebourg Exp $ return new Vector(getList(key, defaultValue)); // interpolate the strings String[] tokens = new String[list.size()]; for (int i = 0; i < tokens.length; i++) { tokens[i] = interpolat...
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 l...
0
@Parameter(names = {"-s", "--size"}, description = "merge goal size", converter = MemoryConverter.class) @Parameter(names = {"-f", "--force"}, description = "merge small tablets even if merging them to larger tablets might cause a split") @Parameter(names = {"-b", "--begin"}, description = "...
0
private final ControlClientPool.ClientSink<? super FnApiControlClient> clientPool; ControlClientPool.ClientSink<? super FnApiControlClient> clientPool, HeaderAccessor headerAccessor) { ControlClientPool.ClientSink<? super FnApiControlClient> clientPool, HeaderAccessor headerAccessor) { } c...
0
MetricsEnvironment.setCurrentContainer(null); MetricsEnvironment.setCurrentContainer(container); MetricsEnvironment.setCurrentContainer(container);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/dynabeans/DynaBeanPointer.java,v 1.2 2002/11/26 01:20:07 dmitri Exp $ * $Revision: 1.2 $ * $Date: 2002/11/26 01:20:07 $ import org.apache.commons.jxpath.ri.model.beans.PropertyOwn...
0
import com.twitter.aurora.auth.CapabilityValidator.AuditCheck; return Optional.of( sessionValidator.checkAuthorized(session, Capability.ROOT, AuditCheck.REQUIRED)); context = sessionValidator.checkAuthorized(session, Capability.ROOT, AuditCheck.REQUIRED);
0
for (Entry<String,String> entry : DefaultConfiguration.getInstance())
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/RandomAccessLongList.java,v 1.2 2003/08/31 17:21:14 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowledgemen...
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 ...
1
/** * @version $Id$ */ * @throws Exception if test fails * @throws Exception if test fails * @throws Exception if test fails * @throws Exception if test fails * @throws Exception if test fails
0
private static final Charset UNICODE_LITTLE_UNMARKED = Charset.forName("UnicodeLittleUnmarked");
0
if (windowingStrategy.getWindowFn().isNonMerging()
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 u...
0
import org.apache.beam.sdk.transforms.OldDoFn; static class FormatResults extends OldDoFn<TableRow, String> {
0
cocoon.pushCallContext(this, redirector, avalonContext, null); context.setErrorReporter(new JSErrorReporter()); cocoon.pushCallContext(this, redirector, avalonContext, wk);
0
if (collectorHost == null) { LOG.warn("No live collector to send metrics to. Metrics to be sent will be discarded."); return false; }
0
if ((heartbeatType == null) || (heartbeatType == HeartbeatType.NONE) || (interval <= 0L)) { * @return {@code true} if heartbeat successfully sent protected boolean sendHeartBeat() { if ((heartbeatType == null) || (heartbeatType == HeartbeatType.NONE) || (interval <= 0L) || (hear...
0
@Deprecated @Deprecated
0
import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.replay; import static org.easymock.EasyMock.reset; import static org.easymock.EasyMock.verify; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java....
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
public class CopletSourceFactory coplet); // nothing to do
0
* Copyright 2001-2006 The Apache Software Foundation
0
* Send a CAPA command to the POP3 server. * @return True if the command was successful, false if not. * @exception IOException If a network I/O error occurs in the process of * sending the CAPA command. ***/ public boolean capa() throws IOException { if (sendCommand(POP3C...
0
import org.apache.http.ssl.SSLContexts;
0
* {@code null} if no such comment has been defined. * Returns the expiration {@link Date} of the cookie, or {@code null} * @return Expiration {@link Date}, or {@code null}. * Returns {@code false} if the cookie should be discarded at the end * of the "session"; {@code true} otherwise. * @r...
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
import org.apache.avalon.framework.activity.Disposable; import org.apache.avalon.framework.activity.Initializable; import org.apache.avalon.framework.thread.ThreadSafe; * * TODO: CacheManager expects to be a singleton. So configuring * multiple EHStore intances could lead to errors. public class EHStore extends Abs...
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
cat.debug("SignatureMethodURI = " + SignatureMethodURI); cat.debug("jceSigID = " + jceSigID);
0
import org.apache.accumulo.core.util.StringUtil; HashSet<String> nameSpacesReferenced = new HashSet<String>(); if (file.contains(":") && parts.length > 3) { List<String> base = Arrays.asList(Arrays.copyOf(parts, parts.length - 3)); nameSpacesReferenced.add(StringUtil.join(base, "/"...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Function; 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.Ordering; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Sets; import org.apache....
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState; import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Throwables.getStackTraceAsString; import org.apache.beam.vendor.grpc.v1p21p0.com.google.protobuf.ByteString; import org.apache.beam.vendor.gua...
0
Map<TServerInstance,Long> toAssign = new HashMap<>(); List<TServerInstance> tServerArray = new ArrayList<>(); Map<TServerInstance,Long> numTablets = new HashMap<>(); List<TServerInstance> underCapacityTServer = new ArrayList<>();
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
Base64.getMimeDecoder().decode("ZHVtbXkxMjM=".getBytes("UTF-8"))); Base64.getMimeDecoder().decode("ZHVtbXkxMjM=".getBytes("UTF-8"))); Base64.getMimeDecoder().decode("ZHVtbXkxMjM=".getBytes("UTF-8"))); XMLStreamWriter xmlStreamWriter = outboundXMLSec.processOutMess...
0
* Filters file names for a certain name. /** The file names to search for */ * Checks to see if the file name matches. * @return true if the file name matches * Checks to see if the file name matches. * @param name the file name * @return true if the file name matches
0
private static org.slf4j.Logger log = * @param input The <code>EncryptedType</code> object to read ResourceResolver resolver = }
1
pipeline .apply(Create.of(1, 2, 3)) // This is the function that needs to propagate the input T to output T .apply("Polymorphic Identity", MapElements.via(new PolymorphicSimpleFunction<>())) // This is a consumer to ensure that all coder inference logic is executed. .apply( ...
0
* @version $Revision: 1.6 $ $Date: 2004/05/16 11:16:01 $ * Evaluates the predicate returning true if the input object is of the correct type. * * @param object the input object * @return true if input is of stored type *
0
public byte[] getValue() { return value; } public K getKey() { return key; } public List<V> getValue() { return values; } public long getSize() { return size; } public K getKey() { return key; } ...
0
this.interrupt();
0
/* $Id$ *
0
import org.apache.ambari.server.orm.RequiresSession; @RequiresSession @RequiresSession @RequiresSession
0
private static final byte pem_array[] = new byte[256]; public void close() public int available() public int read(byte []out, int offset, int len) if ((decode_buffer[in] != '\n') &&
0
/* * Copyright 1999-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 by ap...
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 ap...
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
import org.eclipse.persistence.internal.helper.DatabaseField; import org.eclipse.persistence.mappings.DirectToFieldMapping; import javax.persistence.EntityTransaction; import java.sql.Clob; import java.sql.Types; rollbackTransaction(em.getTransaction()); rollbackTransaction(em.getTransaction()); ...
0
* Validates the given configuration entries. A valid configuration contains only valid properties * (i.e., defined or otherwise valid) that are not prefixes and whose values are formatted * correctly for their property types. A valid configuration also contains a value for property fatal(PREFIX + "impr...
0
* Autogenerated by Thrift Compiler (0.11.0) @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)")
0
import java.nio.Buffer; import org.apache.zookeeper.server.quorum.BufferStats; new Field("max_file_descriptor_count", Long.class), new Field("last_client_response_size", Integer.class), new Field("max_client_response_size", Integer.class), ...
1
package com.twitter.aurora.scheduler.storage.mem; import com.twitter.aurora.gen.JobKey; import com.twitter.aurora.gen.JobUpdateConfiguration; import com.twitter.aurora.scheduler.base.Tasks; import com.twitter.aurora.scheduler.storage.UpdateStore;
1
* @version CVS $Id: ValidatorActionResult.java,v 1.2 2003/03/16 17:49:11 vgritsenko Exp $
0
* http://www.apache.org/licenses/LICENSE-2.0
0
assertEquals("AvroIO.Read", AvroIO.read(String.class).from("/tmp/foo*/baz").getName()); assertEquals("AvroIO.Write", AvroIO.write(String.class).to("/tmp/foo/baz").getName()); .to("/tmp/foo/baz"); .to("/tmp/foo/baz") .to("/tmp/foo/baz") .to("/tmp/foo/baz")
0
import com.google.common.io.ByteStreams; import org.apache.beam.sdk.util.CloudObject; import org.apache.beam.sdk.util.Structs; import org.apache.beam.sdk.util.VarInt;
0
* @version $Revision$ $Date$
0
import org.apache.atlas.AtlasConstants; public final String version; this.version = AtlasConstants.DEFAULT_TYPE_VERSION; } public AbstractDataType(String name, String description, String version) { super(); this.name = name; this.description = description; this.ver...
0
* @see <A HREF="https://tools.ietf.org/html/rfc5480#section-2.2">RFC-5480 - section 2.2</A>
0
import org.apache.beam.sdk.transforms.windowing.GlobalWindow; import org.apache.beam.sdk.transforms.windowing.PaneInfo; import org.apache.beam.sdk.values.ValueInSingleWindow; List<ValueInSingleWindow<TableRow>> rows = new ArrayList<>(); rows.add(ValueInSingleWindow.of(rawRow("foo", 1234), GlobalWindow.TIMESTA...
0
public CustomCommandDefinition getCustomCommandByName(String commandName){ for(CustomCommandDefinition ccd : getCustomCommands()){ if (ccd.getName().equals(commandName)){ return ccd; } } return null; }
0
import org.apache.beam.sdk.transforms.DoFnSchemaInformation; DoFnSchemaInformation doFnSchemaInformation; doFnSchemaInformation = ParDoTranslation.getSchemaInformation(context.getCurrentTransform()); outputCoderMap, doFnSchemaInformation); outputCoderMap, ...
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
UpgradeContext upgradeContext = EasyMock.createNiceMock(UpgradeContext.class); EasyMock.expect(upgradeContext.getCluster()).andReturn(cluster).anyTimes(); EasyMock.expect(upgradeContext.getType()).andReturn(UpgradeType.ROLLING).anyTimes(); EasyMock.expect(upgradeContext.getDirection()).andReturn(Directi...
0
import org.apache.accumulo.core.util.AddressUtil; int unknownHostTries = 3; log.warn("Unable to connect to HDFS", ex); } catch (IllegalArgumentException exception) { /* Unwrap the UnknownHostException so we can deal with it directly */ if (exception.getCause() instanceof UnknownHostExc...
0