Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
List<Range> ranges = new ArrayList<>(batch.size()); Set<Text> rowsSeen = new HashSet<>(); HashSet<Text> copy1 = new HashSet<>(rowsSeen); HashSet<Text> copy2 = new HashSet<>(batch); private static HashSet<Text> rowsToQuery = new HashSet<>(); HashSet<Text> ret = new HashSet<>();
1
* @version $Revision$ $Date$
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
private byte[] bytes; * @param bytes the raw bytes that represents this byte array */ public final void setBytes( byte[] bytes ) { this.bytes = bytes; } /**
0
import java.util.HashMap; protected java.util.Map _properties = null; if (_properties==null) { _properties=new HashMap(); } if (_properties==null) { return null; } if (properties!=null) { if (_properties==null) { _properties=new HashMap(); } this._properties.putAll(properties);...
0
import org.apache.atlas.AtlasException; } catch (AtlasException e) { public String getOutputs(String tableName) throws AtlasException { public String getOutputsGraph(String tableName) throws AtlasException { public String getInputs(String tableName) throws AtlasException { public String getInput...
0
return Objects.equal(offer, other.offer) && mode == other.mode;
0
import cz.seznam.euphoria.core.client.dataset.windowing.WindowedElement; public class DataSinkWrapper<T> extends RichSinkFunction<WindowedElement<?, ?, T>> { public void invoke(WindowedElement<?, ?, T> elem) throws Exception { writer.write(elem.get());
0
String classifier = this.comparisonClassifier != null ? this.comparisonClassifier : project.getArtifact().getClassifier();
0
protected Request createControllerRequest(Map<PropertyId, Object> properties) {
0
Set<ScheduledTask> tasks = Storage.Util.weaklyConsistentFetchTasks(storage, Query.unscoped());
0
import org.apache.sshd.common.scp.ScpFileOpenerHolder; public interface ScpClientCreator extends ScpFileOpenerHolder {
0
self.maxSessionTimeout, self.clientPortListenBacklog, zkDb);
0
ntcredentials.getNetbiosDomain(), ntcredentials.getWorkstation(), ntlmFlags); ntcredentials.getNetbiosDomain(),
0
private static Map<Resource.Type, String> keyPropertyIds = new HashMap<>(); private static Set<String> propertyIds = new HashSet<>(); private final Map<Long, LdapSyncEventEntity> events = new ConcurrentSkipListMap<>(); private final Queue<LdapSyncEventEntity> eventQueue = new LinkedList<>(); Set<LdapSyncEve...
1
if (!str.isEmpty()) {
0
import org.apache.sshd.common.FactoryManager; window.init(FactoryManager.DEFAULT_WINDOW_SIZE, FactoryManager.DEFAULT_MAX_PACKET_SIZE, null); window.init(FactoryManager.DEFAULT_WINDOW_SIZE, FactoryManager.DEFAULT_MAX_PACKET_SIZE, null);
0
/** * @since Mar 18, 2002 * @version CVS $Id: AbstractPreceptor.java,v 1.2 2003/03/16 17:49:05 vgritsenko Exp $
0
* @return The result of the asynchronous operation - or {@code null} * if none set. public Object getValue() {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMAttributePointer.java,v 1.10 2003/01/11 05:41:25 dmitri Exp $ * $Revision: 1.10 $ * $Date: 2003/01/11 05:41:25 $ * @version $Revision: 1.10 $ $Date: 2003/01/11 05:41:25 $ ...
1
import org.apache.beam.runners.dataflow.DataflowRunner; * {@link DataflowRunner} specific tests for {@link PubsubIO} transforms.
0
// @formatter:off public static <K extends WritableComparable<?>,V extends Writable> SortedKeyValueIterator<K,V> loadIterators( // @formatter:on IteratorScope scope, SortedKeyValueIterator<K,V> source, KeyExtent extent, AccumuloConfiguration conf, List<IterInfo> ssiList, Map<String,Map<Str...
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
* Id attribute (if found) * else use the annotation package name. * Parent attribute (if found) * else use the annotation package name. /** * Build the element object from the given descriptor. * @param desc : annotation descriptor * @return the package of the annotation ...
0
private static final String POLICY_SWITCH = "-p"; return "start [-t | -p] <id> [<id> <URL> ...]"; // Default switch values. int options = 0; options |= Bundle.START_TRANSIENT; } // Check for "start policy" switch. if (tokens.contains(POLICY_SWITCH)) ...
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.dsls.sql.utils.CalciteUtils; return CalciteUtils.toBeamRecordType(builder.build());
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 applicable law o...
0
if (prerequisiteChecks == null) { return new ArrayList<String>(); } if (prerequisiteChecks == null) { return new PrerequisiteCheckConfig(); }
0
* @version $Revision: 6967 $ Collection/* <BundleContext> */contexts);
0
/** * Tests that the cause of a conversion exception is kept. */ @Test public void testConversionExceptionCause() { try { conf.get(Integer.TYPE, "uri.string"); fail("No conversion exception thrown!"); } catch (ConversionException cex) ...
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Test;
0
public Service createResourceAdapterService(String resourceFilter, Class iface2, Object impl, boolean propagate) { .setImplementation(new ResourceAdapterImpl(impl, iface2, propagate))
0
import java.util.function.IntUnaryOperator; public void ensureCapacity(int capacity, IntUnaryOperator growthFactor) { int actual = growthFactor.applyAsInt(minimum);
0
package org.apache.http.impl.client; import static org.junit.Assert.*; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.HttpVersion; import org.apache.http.message.BasicHttpResponse; import org.junit.Before; import org.junit.Test; public class TestNullBackoffStrategy { ...
0
import org.apache.felix.sigil.eclipse.SigilCore; import org.eclipse.jface.preference.IPreferenceStore; private IPreferenceStore prefs; private StringFieldEditor nameEditor; nameEditor.setEmptyStringAllowed(false); addField(nameEditor); int cols = 0; if (e instanceof S...
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
public void provideConfiguration( ServiceReference<ManagedService> service, final ConfigurationImpl config, Dictionary<String, ?> properties ) public void removeConfiguration( ServiceReference<ManagedService> service, final ConfigurationImpl config )
0
import java.util.Dictionary; import java.util.Hashtable; Dictionary<String, Object> p3 = new Hashtable<String, Object>(); p3 = new Hashtable<String, Object>(); Dictionary<String, Object> p3 = new Hashtable<String, Object>(); p3 = new Hashtable<String, Object>();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/jms/src/java/org/apache/commons/jelly/tags/jms/StopwatchTag.java,v 1.2 2003/01/26 06:24:47 morgand Exp $ * $Revision: 1.2 $ * $Date: 2003/01/26 06:24:47 $ * $Id: StopwatchTag.java,v 1.2 2003/01/26 06:24:47 morgan...
0
return new HttpCacheEntry(elevenSecondsAgo, nineSecondsAgo, HttpStatus.SC_OK, headers, mockResource); new HttpCacheEntry(null, new Date(), HttpStatus.SC_OK, new Header[]{}, mockResource); new HttpCacheEntry(new Date(), null, HttpStatus.SC_OK, new Header[]{}, mockResource); ne...
0
public static final String ATTR_FILEUPLOAD = "org.apache.felix.webconsole.fileupload"; String adminTitle = "OSGi Management Console"; // ServletEngine.VERSION.getFullProductName(); String productName = "Felix"; // ServletEngine.VERSION.getShortProductName(); String productWeb = "http://felix...
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
import org.apache.aurora.scheduler.async.TaskGroups.GroupKey; private static final GroupKey GROUP_A = new GroupKey(TASK_A.getAssignedTask().getTask()); private static final GroupKey GROUP_B = new GroupKey(TASK_B.getAssignedTask().getTask()); assignAndAssert(Result.FAILURE, GROUP_B, OFFER, firstAssignment); ...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting;
0
import org.apache.http.annotation.NotThreadSafe;
0
out.writeObject(decorated()); setCollection((Collection<E>) in.readObject());
0
protected synchronized Map.Entry<K, V> current() {
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
// Ignore this exception and attempt to shut down the reactor // in an orderly fashion. An I/O exception will result in the // reactor is an inconsistent state
0
@Test
0
import java.util.HashMap; import java.util.Map; // collect filters // collect error pages final Map<Long, ServletState> servletStates = new HashMap<Long, ServletState>(); final Map<Long, Map<Integer, FailureServletState>> failureServletStates = new HashMap<Long, Map<Integer,FailureServle...
0
super(string, timeInMillis, SCHEME, (USER + ":" + secret).getBytes());
0
// TODO should this throw?
0
import org.apache.beam.runners.core.TimerInternals.TimerData;
0
assertEquals(4, outStages.size());
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(TestPubsubSignal.class); LOG.warn("Error while polling for result: %s", e.getStatus());
0
import java.io.FileInputStream; import org.apache.accumulo.core.Constants; import org.apache.accumulo.server.cli.ClientOnDefaultTable; BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(log), Constants.UTF8)); this.tablet = tablet; this.endRow = er; this.prevEnd...
0
import org.apache.accumulo.core.trace.wrappers.TraceRunnable; import org.apache.accumulo.core.trace.Tracer;
1
import java.nio.charset.StandardCharsets; byte[] keyBytes = "abcdefghijklmnopqrstuvwx".getBytes(StandardCharsets.US_ASCII); byte[] keyBytes = "abcdefghijklmnopqrstuvwxyz012345".getBytes(StandardCharsets.US_ASCII); byte[] keyBytes = "abcdefghijklmnopqrstuvwx".getBytes(StandardCharsets.US_ASCII); ...
1
* Copyright 2006 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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/beans/PropertyIterator.java,v 1.5 2002/10/12 21:02:24 dmitri Exp $ * $Revision: 1.5 $ * $Date: 2002/10/12 21:02:24 $ * @version $Revision: 1.5 $ $Date: 2002/10/12 21:02:24 $ ...
0
checkState(!getWindowedWrites() || (getFilenamePolicy() != null), "When using windowed writes, a filename policy must be set via withFilenamePolicy().");
0
import java.util.Arrays; import java.util.List; import org.apache.felix.dm.ServiceDependency; List extra = Arrays.asList(new ServiceDependency[] { dm.createServiceDependency() // this dependency is available at this point .setInstanceBound(true) ...
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
private Option optSplitsFile, base64Opt; public int execute(String fullCommand, CommandLine cl, Shell shellState) throws Exception { String tableName = OptUtil.configureTableOpt(cl, shellState); o.addOption(OptUtil.tableOpt("name of the table to add split points to"));
0
return new GrowthList<>(); final List<E> list = new ArrayList<>(); final GrowthList<Integer> grower = new GrowthList<>(); final Collection<Integer> coll = new ArrayList<>(); final GrowthList<Integer> grower = new GrowthList<>(); final GrowthList<Integer> grower = new Grow...
1
import org.apache.log4j.Logger; import com.google.common.cache.RemovalListener; import com.google.common.cache.RemovalNotification; public static final Logger logger = Logger.getLogger(ProxyServer.class); static protected class ScannerPlusIterator { static class CloseWriter implements RemovalListener<UUID,BatchWr...
0
beginRead(false); beginWrite(false); beginWrite(false);
0
import org.apache.accumulo.core.client.mock.MockInstance; return conn.getInstance() instanceof MockInstance || TableState.ONLINE == Tables.getTableState(conn.getInstance(), ID);
0
final long MINUTES = 3 * 60 * 1000; tServerList.addSortableColumn("Last&nbsp;Contact", new DurationType(0l, (long) Math.min(avgLastContact * 4, MINUTES)), null);
0
System.err.println("Starting SSHD on port " + port); sshd.start();
0
public TriggerResult onElement(OnElementContext c) TriggerResult result = c.subTrigger(REPEATED).invokeElement(c); c.forTrigger(c.subTrigger(REPEATED)).resetTree(c.window()); public MergeResult onMerge(OnMergeContext c) throws Exception { MergeResult mergeResult = c.subTrigger(REPEATED).invokeMerge(c)...
0
enum DataElement {
0
@Override public Authorizations getAuthorizations() { return authorizations; }
0
c.setCurrentStackVersion(stackId); c.setCurrentStackVersion(stackID);
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 processElement(ProcessContext c) { * c.output(KV.of(c.element().getKey(), callWebService(c.element().getValue()))); ProcessContext c, BoundedWindow window) { key.write(c.element().getKey()); batch.add(c.element().getValue()); flushBatch(c, key, batch, numElementsInBat...
0
contentLen = 0;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/util/Attic/UtilTagLibrary.java,v 1.4 2002/10/08 11:26:00 jstrachan Exp $ * $Revision: 1.4 $ * $Date: 2002/10/08 11:26:00 $ * $Id: UtilTagLibrary.java,v 1.4 2002/10/08 11:26:00 jstracha...
0
return this.data.getContent().length; return new ByteArrayInputStream(this.data.getContent()); this.data.setContent(new byte[0]);
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 abstract class AbstractOrderedMapTest<K, V> extends AbstractIterableMapTest<K, V> { public AbstractOrderedMapTest(String testName) { return AbstractOrderedMapTest.this.isRemoveSupported(); return AbstractOrderedMapTest.this.isGetStructuralModify(); return AbstractOrderedMa...
0
*/ /** * Empty constructor needed for the Class.newInstance() statement in * Instruction.readInstruction(). Not to be used otherwise. */ StackInstruction() { } /** * @param opcode instruction opcode */ protected StackInstruction(short opcode) { super(opcode, (short)...
0
import com.google.common.collect.Multimaps; // Access on views, or non-atomic operations on this map must synchronize on the map itself. // Please be careful to avoid securing any external locks when locking on this data structure, // however. private final Multimap<String, String> drainingTasksByHost =...
0
final String svcPath = "OSGI-INF/" + finalName; svcComp = ( svcComp == null ) ? svcPath : svcComp.contains(svcPath) ? svcComp : svcComp + ", " + svcPath;
0
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked") DataSink<T> dataSink = inputDataSet.output(new AvroOutputFormat<>(new Path PValue output = context.getOutput(transform); PValue input = context.getInput(transform);
0
private final BundleContext m_context; private final CompositeFactory m_factory; private HandlerManager[] m_handlers;
0
WindowingStrategyTranslation.fromProto(
0
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class TConstraintViolationSummary implements org.apache.thrift.TBase<TConstraintViolationSummary, TConstraintViolationSummary._Fields>, java.io.Serializable, Cloneable, Comparable<TConstraintViolationSummary> { public enum _Fields implements org....
0
/** Attribute name for dx attribute */ public static final String BATIK_EXT_DX_ATRIBUTE = "dx"; /** Attribute name for dy attribute */ public static final String BATIK_EXT_DY_ATRIBUTE = "dy"; /** Attribute name for dw attribute */ public static final String BATIK_EXT_DW...
0
import org.apache.http.HttpRequest; * @param request request failed die to an I/O exception. boolean retryRequest(HttpRequest request, IOException exception, int executionCount, HttpContext context);
0
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
* @param reqline the request line to format CharArrayBuffer formatRequestLine(CharArrayBuffer buffer, RequestLine reqline) * @param statline the status line to format CharArrayBuffer formatStatusLine(CharArrayBuffer buffer, ...
0
import org.apache.beam.sdk.transforms.Combine; PCollection<Long> count = windowed.apply(Combine.globally(Count.<Integer>combineFn()).withoutDefaults());
0
+ Iterables.transform(resources, Protobufs::toString)); .setName(JobKeys.canonicalString(Tasks.getJob(task)))
0
* @param propertyClass void addMixedIndex(String vertexIndex, AtlasPropertyKey propertyKey, Class propertyClass);
0
KvSwap.create()); KvSwap.create());
0
Map<String,String> properties = new TreeMap<>(); Map<ByteBuffer,List<ColumnUpdate>> cells = new TreeMap<>();
0