Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
/* * 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
* or more contributor license agreements. See the NOTICE file * regarding copyright ownership. The ASF licenses this file * with the License. You may obtain a copy of the License at * KIND, either express or implied. See the License for the
0
/* ==================================================================== * @version $Id: DualTreeBidiMap.java,v 1.11 2004/01/14 21:43:16 scolebourne Exp $
0
* Copyright 2001-2005 The Apache Software Foundation.
0
CommandLineParser parser = CommandLineParserFactory.newParser(); CommandLine line = parser.parse( options, args );
0
package org.apache.beam.sdk.extensions.sql.impl.schema;
0
* @version CVS $Id$
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
import org.apache.beam.sdk.util.ReleaseInfo; // A common user agent token that indicates that this request was originated from Apache Beam. private static final String USER_AGENT_PREFIX = "Apache_Beam_Java"; SpannerOptions.Builder builder = SpannerOptions.newBuilder(); if (spannerConfig.getProjectId() != n...
0
*/ /** Multiply floats */ public FMUL() { super(org.apache.bcel.Constants.FMUL); } /** * 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, ...
0
Long populateHostsId(ResultSet resultSet) throws SQLException {
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
return new KeyExtent(Table.ID.of(table), toText(end), toText(prev));
1
private final CuratorFramework client; this.client = client; LeaderLatch leaderLatch = new LeaderLatch(client, groupPath, endpoint.getHostName());
0
for(int i = 0; i < 1 /* was 16 */; i++) { zk.create(path + '/' + i, data, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT); // empty if (zk != null) { }
0
import org.apache.http.annotation.Obsolete; * <p> * Please do not use attributes marked as @Obsolete. They have been rendered * obsolete by RFC 6265. @Obsolete @Obsolete @Obsolete @Obsolete @Obsolete
0
@OneToOne(mappedBy = "clusterEntity", cascade = CascadeType.REMOVE)
0
* @param listener
0
* @author <a href="mailto:Thomas.DeWeese@Kodak.com">Thomas DeWeese</a> * of its rendering attribute into account. That is, exclusive of any clipping,
1
* The scheme registry.
0
import org.apache.sshd.common.PropertyResolver; public PipeDataReceiver(PropertyResolver resolver, Window localWindow) { ChannelPipedInputStream in = new ChannelPipedInputStream(resolver, localWindow);
0
final static String CFG_MAX_MEMORY_ELEMENTS = "euphoria.flink.batch.state.max.memory.elements";
0
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class MailContext extends DefaultContext { private final Log logger = LogFactory.getLog(getClass()); protected Log getLogger() {
0
package org.apache.felix.karaf.admin;
0
import org.apache.atlas.AtlasException; void defineEnums(TypeSystem ts) throws AtlasException { protected void fillStruct(Struct s) throws AtlasException { protected Struct createStructWithEnum(String typeName) throws AtlasException { protected Referenceable createInstanceWithEnum(String typeName) throw...
0
Assert.assertEquals("stuff", new String(b1, 0, len, Consts.ASCII)); Assert.assertEquals("more stuff", new String(b2, 0, len, Consts.ASCII)); buffer.write("stuff".getBytes(Consts.ASCII)); buffer.write("more ".getBytes(Consts.ASCII)); buffer.write("stuff".getBytes(Consts.ASCII)); ...
0
shards.add(input.subList(i * input.size() / numShards, (i + 1) * input.size() / numShards)); private static <T> List<List<T>> shardExponentially(List<T> input, double base) {
1
/** * This iterator facilitates document-partitioned indexing. It is an example of extending the IntersectingIterator to customize the placement of the term and * docID. It expects a table structure of the following form: * * row: shardID, colfam: docColf\0type, colqual: docID, value: doc * * row: shardID, colf...
0
.setParameter(CoreProtocolPNames.ORIGIN_SERVER, "HttpComponents/1.1") .setParameter(CoreProtocolPNames.USER_AGENT, "HttpComponents/1.1");
0
/* $Id$
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
protected CoreUtil coreUtil; this.coreUtil = new CoreUtil(env, cliContext);
0
* * @version $Id$ public abstract class MagicNumberRegistryEntry extends AbstractRegistryEntry * this magic number compairison. boolean isMatch(InputStream is) public boolean isCompatibleStream(InputStream is) if (magicNumbers[i].isMatch(is))
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/SetTopRule.java,v 1.16 2003/02/02 16:09:53 rdonkin Exp $ * $Revision: 1.16 $ * $Date: 2003/02/02 16:09:53 $ * Copyright (c) 1999-2003 The Apache Software Foundation. All rights * @v...
0
public static class Action extends ComparableType<Action> { public Action(String name) { super(name); public static final AlgorithmUsage Sym_Key_Wrap = new AlgorithmUsage("Sym_Key_Wrap"); public static final AlgorithmUsage Asym_Key_Wrap = new AlgorithmUsage("Asym_Key_Wrap"); public s...
0
* This class is a helper to <code>PNGTranscoder</code> that writes PNG images
0
activateInternal( ); activateInternal();
0
import org.apache.sshd.client.SshClient; import org.apache.sshd.client.channel.ClientChannel; import org.apache.sshd.client.session.ClientSession; import org.apache.sshd.server.SshServer;
0
for (ScheduledTask task : Storage.Util.weaklyConsistentFetchTasks(storage, Query.roleScoped(role))) {
0
.apply(Create.of((Void) null).withCoder(VoidCoder.of()))
0
@RequiresSession @RequiresSession
0
import org.apache.ambari.server.configuration.Configuration; private static Configuration config; if (serReq.getLocalPort() != config.getTwoWayAuthPort()) { public static void init(Configuration instance) { config = instance; }
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/pointers/Attic/ContainerPointer.java,v 1.5 2002/04/12 02:28:06 dmitri Exp $ * $Revision: 1.5 $ * $Date: 2002/04/12 02:28:06 $ * @version $Revision: 1.5 $ $Date: 2002/04/12 02:28:06 $
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/bean/src/java/org/apache/commons/jelly/tags/bean/BeanTagLibrary.java,v 1.4 2003/02/25 22:54:22 jstrachan Exp $ * $Revision: 1.4 $ * $Date: 2003/02/25 22:54:22 $ * $Id: BeanTagLibrary.java,v 1.4 2003/02/25 22:54:2...
0
protected final JexlInfo info; public JexlException(JexlInfo dbg, String msg) { public JexlException(JexlInfo dbg, String msg, Throwable cause) {
0
Map<String,Long> totalBlocks = new HashMap<>(); Map<String,Long> localBlocks = new HashMap<>(); ArrayList<String> files = new ArrayList<>();
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java,v 1.7 2003/09/29 03:56:12 psteitz Exp $ * Implements a {@link ListIterator} over an array of objects. * @version $Revision: 1.7 $ $Date: 20...
0
public interface ClientSession extends Session, ClientAuthenticationManager {
0
import org.apache.aurora.gen.CronCollisionPolicy; for (CronCollisionPolicy policy : CronCollisionPolicy.values()) { enumValueMapper.addEnumValue("cron_policies", policy.getValue(), policy.name()); }
0
case HOST_SVCCOMP_STOPPED: return new ServiceComponentHostStoppedEvent(serviceComponentName, hostName, opTimestamp); case HOST_SVCCOMP_STARTED: return new ServiceComponentHostStartedEvent(serviceComponentName, hostName, opTimestamp);
0
public int getSocketTimeoutMillis() { public void setSocketTimeoutMillis(final int timeout) {
0
Schema.builder() .addArrayField("pojos", FieldType.array(FieldType.row(SIMPLE_POJO_SCHEMA))) .build();
0
return attrName;
0
public void informationResponse(final HttpResponse response) throws HttpException, IOException { } @Override
0
} catch (final IOException | HttpException ex) {
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
/** * Copyright 2016 Seznam 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 agreed to...
0
import com.google.common.base.Optional; import com.twitter.mesos.gen.JobKey; import com.twitter.mesos.scheduler.base.JobKeys; private final Multimap<JobKey, String> tasksByJobKey = Multimaps.synchronizedSetMultimap(HashMultimap.<JobKey, String>create()); private Multimap<JobKey, String> taskIdsByJobKey(Iterab...
0
/* $Id: TestConfigurablePluginAttributes.java,v 1.4 2004/05/07 01:30:00 skitching 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 may...
0
import java.util.Optional; import org.apache.beam.sdk.transforms.windowing.Window; /** Operator working on some context. */ public abstract class ShuffleOperator<InputT, KeyT, OutputT> extends Operator<OutputT> implements TypeAware.Key<KeyT>, TypeAware.Output<OutputT>, WindowAware<InputT> { private final UnaryFun...
0
* See {@link #ObjectParamRule(int paramIndex, String attributeName, Object param)}
0
/* * Copyright 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 ...
0
* @version $Revision: 1.2 $, $Date: 2004/10/18 10:44:31 $ String string = (String) value; if (string.startsWith("0x")) { return new Byte((byte) Integer.parseInt(string.substring(2), 16)); } else { ...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/beans/LangAttributePointer.java,v 1.8 2003/01/11 05:41:24 dmitri Exp $ * $Revision: 1.8 $ * $Date: 2003/01/11 05:41:24 $ * @version $Revision: 1.8 $ $Date: 2003/01/11 05:41:24 $ ...
1
/* * 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
private static <InputT, OutputT> TransformEvaluator<ParDo.MultiOutput<InputT, OutputT>> parDo() { JavaPairDStream<TupleTag<?>, WindowedValue<?>> all = dStream.transformToPair( new Function< JavaRDD<WindowedValue<InputT>>, JavaPairRD...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
0
import org.apache.commons.io.filefilter.FileFilterTestCase; suite.addTest(new TestSuite(FileSystemUtilsTestCase.class));
0
CipherOutputStream cos = new CipherOutputStream(outputStream, cipher);
0
try (AccumuloClient client = createClient()) {
0
catch (final RuntimeException e)
0
for (byte b : bytes) { if (b == c) { return true; }
0
/** Gets the {@link PTransformMatcher} to identify {@link PTransform PTransforms} to replace. */ /** Gets the {@link PTransformOverrideFactory} of this override. */
1
Set<String> namespaces = null; namespaces = connector.namespaceOperations().list(); log.debug("Unable to obtain list of namespaces", e); namespaces = Collections.emptySet(); Set<String> modifiedNamespaces = new HashSet<String>(); for (String a : namespaces) modifiedNamespaces.add(a.r...
0
import org.apache.sshd.common.util.closeable.AbstractCloseable; public class SocksProxy extends AbstractCloseable implements IoHandler {
0
paramsCasted.windowFn = Objects.requireNonNull(windowing); /** * Trigger defining operator builder. */ /** * {@link WindowingStrategy.AccumulationMode} defining operator builder. */ * Last builder in a chain. It concludes this operators creation by calling {@link * #output(OutputHint...)}.
0
UserIdAuthentication auth; if (authentication instanceof UserIdAuthentication) { auth = (UserIdAuthentication) authentication; return auth.getUserId();
0
private NetUtils() { // Do not allow utility class to be instantiated. }
0
import org.slf4j.Logger;
0
this.connectTimeout = TimeValue.of(connectTimeout, timeUnit); this.soTimeout = TimeValue.of(soTimeout, timeUnit); this.soLinger = TimeValue.of(soLinger, timeUnit);
0
* @version $Id$
1
this.checkLifecycleMethod(activateName, true, component.getActivate() != null); this.checkLifecycleMethod(deactivateName, false, component.getDeactivate() != null); * @param isActivate Whether this is the activate or deactivate method. * @param isSpecified Whether this method h...
0
import org.apache.avalon.framework.service.ServiceException; import org.apache.avalon.framework.service.ServiceManager; import org.apache.avalon.framework.service.Serviceable; * @version CVS $Id: AbstractContentEventAspect.java,v 1.3 2003/10/20 13:36:42 cziegeler Exp $ implements EventAspect, ThreadSafe, Serviceab...
0
public static final String ENSURE = "AdapterAnnotation.autoConfig"; @ServiceDependency(filter = "(name=" + ENSURE + ")") public final static String ENSURE = "AdapterAnnotation.autoConfig.field"; @ServiceDependency(filter = "(name=" + ENSURE + ")") public final static St...
0
* new OldDoFn<KV<K, CoCombineResult>, T>() { * new OldDoFn<CoCombineResult, T>() {
0
managedConn.open(route, context, defaultParams);
0
result = new BigDecimal(s.substring(0, last)); break; } case 'f': case 'F': { rclass = Float.class; result = Float.valueOf(s.substring(0, last)); result = Double.valueOf(s.substring(0, last)); ...
0
final HttpHost target = new HttpHost("localhost"); final HttpRoute route = new HttpRoute(target); final CPoolEntry entry = new CPoolEntry(LogFactory.getLog(getClass()), "id", route, conn, final ConnectionRequest connRequest1 = mgr.requestConnection(route, null); final HttpClientC...
0
continue; // skip element as <pattern> can contain <defs>... /* */
0
import com.fasterxml.jackson.core.type.TypeReference;
0
import org.apache.accumulo.core.client.ZooKeeperInstance; * @deprecated since 2.0.0; Use org.apache.accumulo.hadoop.mapreduce instead from the * accumulo-hadoop-mapreduce.jar return InputConfigurator.unwrapAuthenticationToken(context, token); * @param instanceName * the Accumulo instanc...
0
* * @version CVS $Id: MillisDateConvertor.java,v 1.2 2003/12/31 17:15:46 vgritsenko Exp $
0
import org.apache.hc.core5.annotation.NotThreadSafe; import org.apache.hc.core5.util.Args;
1
package org.apache.hadoop.metadata.hive;
0
import org.apache.accumulo.start.spi.KeywordExecutable; import com.google.auto.service.AutoService; @AutoService(KeywordExecutable.class) public class Admin implements KeywordExecutable { new Admin().execute(args); } @Override public String keyword() { return "admin"; } @Override public void execu...
0
import org.apache.accumulo.core.security.tokens.SecurityToken; * <li>{@link AccumuloOutputFormat#setConnectorInfo(Job, SecurityToken)} OR {@link AccumuloOutputFormat#setConnectorInfo(Job, Path)} * @throws AccumuloSecurityException public static void setConnectorInfo(Job job, SecurityToken token) throws AccumuloS...
0
private static final int STACKS_CNT = 3; for (StackInfo stackInfo: ambariMetaInfo.getStacks(STACK_NAME)) { StackInfo stackInfo = ambariMetaInfo.getStack(STACK_NAME, STACK_VERSION); stackInfo = ambariMetaInfo.getStack(STACK_NAME, STACK_VERSION);
0
@Override protected boolean containsKeyInternal(String key) return getPropertyInternal(key) != null;
0