Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @deprecated Replaced by the new {@link ArrayConverter} implementation
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
import com.twitter.aurora.scheduler.storage.entities.IScheduledTask; IScheduledTask task = IScheduledTask.build(new ScheduledTask() .setAssignedTask(new AssignedTask().setTaskId(taskId))); private static IScheduledTask makeTask( String taskId, ScheduleStatus status, long stateEnteredMs) ...
0
import java.util.concurrent.Callable; *
0
* {@link org.apache.http.HttpResponse}s.
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; * An implementation of the {@code ConfigurationErrorListener} interface * @author <a * href="http://commons.apache.org/configuration/team-list.html">Commons * Configuration team</a> assertEquals("Error events received", ...
0
package org.apache.hc.client5.http.impl.async; import org.apache.hc.client5.http.impl.Wire; class LoggingIOSession implements TlsCapableIOSession {
0
* Provides programs to analyze metadata mutations written to write ahead logs. * * which write ahead logs contain metadata mutations is to grep the tablet server logs. * Grep for events where walogs were added to metadata tablets, then take the unique set * To use these programs, use IndexMeta to index the metadat...
0
* @version CVS $Id: IteratorHelper.java,v 1.2 2003/03/16 17:49:12 vgritsenko Exp $
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument; import org.apache.beam.vendor.grpc.v1p21p0.com.google.protobuf.ByteString;
0
for (AtlasStructType.AtlasAttribute attributeInfo : entityType.getOwnedRefAttributes()) {
0
System.out.println("----------------------------------------");
0
private final EvaluationContext evaluationContext; WindowEvaluatorFactory(EvaluationContext evaluationContext) { this.evaluationContext = evaluationContext; } @Nullable CommittedBundle<?> inputBundle ) (AppliedPTransform) application, inputBundle); CommittedBundle<?> inputBundle) {
0
private static final org.slf4j.Logger LOG =
1
String DEFAULT_VALUE_FILTER_X = "-10%"; String DEFAULT_VALUE_FILTER_Y = "-10%"; String DEFAULT_VALUE_FILTER_WIDTH = "120%"; String DEFAULT_VALUE_FILTER_HEIGHT = "120%"; String DEFAULT_VALUE_MASK_X = "-10%"; String DEFAULT_VALUE_MASK_Y = "-10%"; String DEFAULT_VALUE_MASK_WIDTH = "120%"; ...
0
import org.apache.beam.sdk.coders.CustomCoder; * A {@link Coder} encodes {@link BeamSQLRow}. public class BeamSqlRowCoder extends CustomCoder<BeamSQLRow> { private BeamSQLRecordType tableSchema; public BeamSqlRowCoder(BeamSQLRecordType tableSchema) { this.tableSchema = tableSchema; BeamSQLRow record = new...
0
long droppedValues = container .getCounter( MetricName.named( LateDataDroppingDoFnRunner.class, LateDataDroppingDoFnRunner.DROPPED_DUE_TO_LATENESS)) .getCumulative(); droppedValues = container .getCounter...
0
import org.apache.hc.core5.http.HttpResponse; import org.apache.hc.core5.http.HttpVersion; public StatusLine(final HttpResponse response) { super(); Args.notNull(response, "Response"); this.protoVersion = response.getVersion() != null ? response.getVersion() : HttpVersion.HTTP_1_1; t...
0
* @version CVS $Id: EPName.java,v 1.2 2003/03/11 19:05:01 vgritsenko Exp $
0
import org.apache.ambari.server.orm.entities.ViewInstanceDataEntity; /** * Merge the state of the given entity data into the current persistence context. * * @param viewInstanceDataEntity entity to merge * @return the merged entity */ @Transactional public ViewInstanceDataEntity mergeData(ViewIns...
0
* * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> public class FilterService implements Component { public FilterService(Component service) { public Component add(Dependency dependency) { public Component add(List dependencies) { if (ad != null) { public void addStateLi...
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.hc.core5.http.HttpResponse;
0
static Iterable<? extends Module> getModules(String clusterName, String serverSetPath) { // TODO(Kevin Sweeney): Push these bindings down into a "production" module. install(new BackupModule(SnapshotStoreImpl.class)); .addAll(getModules(CLUSTER_NAME.get(), SERVERSET_PATH.get()))
0
extends AbstractSVGFilterPrimitiveElementBridge { * Returns 'feBlend'. */ public String getLocalName() { return SVG_FE_BLEND_TAG; } /**
0
.setFrameworkId(storeProvider.getSchedulerStore().fetchFrameworkId().orElse(null))
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/ExtendedProperties.java,v 1.19 2004/01/05 22:46:33 scolebourne Exp $ * Copyright (c) 2001-2004 The Apache Software Foundation. All rights * @version $Revision: 1.19 $ $Date: 200...
0
* TODO fix version
0
return new Byte((byte)0); return ASTAddNode.unwiden(new Long(v));
0
import org.apache.ambari.view.pig.utils.HdfsApi; String userScriptsPath = context.getProperties().get("scripts.dir"); String msg = "scripts.dir is not configured!"; throw new MisconfigurationFormattedException("scripts.dir"); "/%s-%s%s.pig", normalizedName, timestamp, (checkId == 0)?"":"_"...
0
import static com.google.common.base.Preconditions.checkArgument; checkArgument(
0
exchangeHandler.consumePromise(request, response, entityDetails, context);
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
protected Socket __openDataConnection(int command, String arg)
0
import org.apache.ambari.server.controller.metrics.MetricsServiceProvider.MetricsService;
0
/** * Method engineResolveSecretKey * * @param element * @param BaseURI * @param storage * @return * @throws KeyResolverException */ public javax.crypto.SecretKey engineResolveSecretKey( Element element, String BaseURI, StorageResolver storage) throws KeyR...
0
package org.apache.metadata.types; public final class Multiplicity { public final int lower; public final int upper; public final boolean isUnique; private Multiplicity(int lower, int upper, boolean isUnique) { assert lower >= 0; assert upper >= 1; assert upper >= lower; ...
0
ComponentConstructor<T> getConstructor();
0
provider.deleteResources(createNiceMock(Request.class), null);
0
* * * try (PreparedStatement ps = conn.prepareStatement("select 'c' from dual")) { } Thread.sleep(100); inner1.clearParameters(); inner2.clearParameters(); inner3.clearParameters(); // PreparedStatement cache should be different depending on th...
0
import org.apache.http.conn.params.ConnConnectionPNames; ConnConnectionPNames.MAX_STATUS_LINE_GARBAGE, Integer.MAX_VALUE);
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
/** This exception {@code serialVersionUID}. */ * @param missingOptions the list of missing options and groups * Returns the list of options or option groups missing in the command line parsed. * @return the missing options, consisting of String instances for simple * options, and Option...
0
outputWindowedValue(output, null, null, PaneInfo.NO_FIRING); outputWindowedValue(output, timestamp, null, PaneInfo.NO_FIRING); sideOutputWindowedValue(tag, output, null, null, PaneInfo.NO_FIRING); sideOutputWindowedValue(tag, output, timestamp, null, PaneInfo.NO_FIRING);
0
* @version CVS $Id: JavaScriptJXPathBinding.java,v 1.7 2004/02/03 12:26:21 joerg Exp $ public JavaScriptJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts, String id, String path, Script loadScript, Script saveScript) {
0
* @version CVS $Id: Notifier.java,v 1.5 2004/05/27 13:14:36 cziegeler Exp $
0
final ConnectionEndpoint endpoint1 = connRequest1.get(Timeout.ofSeconds(1)); final ConnectionEndpoint endpoint1 = connRequest1.get(Timeout.ofSeconds(1)); connRequest1.get(Timeout.ofSeconds(1)); connRequest1.get(Timeout.ofSeconds(1)); final ConnectionEndpoint endpoint1 = connReque...
0
import org.apache.hc.core5.annotation.Immutable; import org.apache.hc.core5.util.Args; import org.apache.hc.core5.util.LangUtils;
1
import org.apache.commons.collections.map.MultiValueMap; * <li>{@link #multiValueMap( Map )} * <li>{@link #multiValueMap( Map, Class )} * <li>{@link #multiValueMap( Map, Factory )} * @author <a href="mailto:jcarman@apache.org">James Carman</a> /** * Creates a mult-value map backed by the given map which...
0
import java.io.IOException; protected void doParse() throws ParseException, IOException { current = reader.read(); protected void parseLength() throws ParseException, IOException { current = reader.read(); current = reader.read(); current = reader.read(); ...
0
/* * Copyright 2003-2005 The Apache Software Foundation public abstract class GroupTestCase extends OptionTestCase { public abstract void testProcessOptions() throws OptionException;
0
testDir = new File(baseDir, TestUpgradePathForWALogs.class.getName());
0
BridgeContext ctx = evt.getBridgeContext(); SVGElement svgElement = (SVGElement) evt.getElement(); CSSStyleDeclaration cssDecl = ctx.getViewCSS().getComputedStyle(svgElement, null); UnitProcessor.Context uctx = new DefaultUnitProcessorContext(ctx, cssDecl); ...
0
import com.twitter.common.inject.TimedInterceptor.Timed; import com.twitter.common.stats.RequestStats; @Timed("scheduler_log_native_read_from") @Timed("scheduler_log_native_append") @Timed("scheduler_log_native_truncate_before")
0
* @deprecated replace with a {@link DefaultJobBundleFactory} when appropriate if the {@link
0
import java.awt.event.KeyEvent; import java.util.Hashtable; import java.util.Map; import javax.swing.border.Border; import org.apache.batik.ext.swing.JGridBagPanel;
0
import org.apache.batik.gvt.GraphicsNode; * Bridge class for the &lt;feFlood> element. * @author <a href="mailto:tkormann@apache.org">Thierry Kormann</a> public class SVGFeFloodElementBridge extends SVGAbstractFilterPrimitiveElementBridge { /** * Constructs a new bridge for the &lt;feFlood> element. ...
0
* * * * @version CVS $Id$ {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; * Encode a path as required by the URL specification (<a href="http://www.ietf.org/rfc/rfc1738.txt"> * @return The filename extension (with starting dot!) or null if filename extension i...
0
* @version CVS $Id: CopletDataReferenceFieldHandler.java,v 1.4 2003/08/19 14:09:34 cziegeler Exp $
0
import org.apache.accumulo.core.client.Instance; import org.apache.accumulo.core.client.TableNotFoundException; import org.apache.accumulo.core.security.thrift.AuthInfo; final protected Instance instance; final protected AuthInfo auths; public MetaDataStateStore(Instance instance, AuthInfo auths, CurrentState sta...
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
@Parameter( names = "--config-file", description = "Read the given client config file. If omitted, the path searched can be specified with $ACCUMULO_CLIENT_CONF_PATH, which defaults to ~/.accumulo/config:$ACCUMULO_CONF_DIR/client.conf:/etc/accumulo/client.conf")
0
snapshot.setTasks(store.getTaskStore().fetchTasks(Query.unscoped()));
0
synchronized (random) { synchronized (random) { synchronized (random) { synchronized (random) { random.fill(buffer.array(), buffer.wpos() - pad, pad); } synchronized (random) { random.fill(buffer.array(), p, SshConstants.MSG_KEX_CO...
0
static final String CRON_STORE_SIZE = "mem_storage_cron_size"; statsProvider.makeGauge(CRON_STORE_SIZE, jobs::size);
0
public static class EmptyTestContext extends MapContext implements JexlContext.NamespaceResolver { public static int log(Object fmt, Object... arr) { //System.out.println(String.format(fmt.toString(), arr)); return arr == null ? 0 : arr.length; } public static int l...
0
if (distance < 0) distance = 1000000000000l; if (sleepTime > 0) UtilWaitThread.sleep(sleepTime);
1
import org.apache.beam.runners.flink.translation.utils.SerializedPipelineOptions; private final SerializedPipelineOptions serializedOptions; this.serializedOptions = new SerializedPipelineOptions(options); return serializedOptions.getPipelineOptions();
0
import org.apache.felix.scr.impl.manager.PrototypeServiceFactoryComponentManager; manager = PSFLoader.newPSFComponentManager(this, m_componentMethods); private static class PSFLoader { static <S> AbstractComponentManager<S> newPSFComponentManager(ConfigurableComponentHolder<S> holder, ...
0
Assert.assertEquals(toKeySet(m1, m2, m3, m4), toKeySet(partitioned[0])); Assert.assertEquals(toKeySet(m3, m4), toKeySet(partitioned[1])); Assert.assertEquals(toKeySet(m4, m5), toKeySet(partitioned[2])); private Set<Key> toKeySet(List<Mutation> mutations) { private Set<Key> toKeyS...
0
public synchronized void startAll(ServerType server) throws IOException { start(server, null); } @Override @Override public synchronized void stopAll(ServerType server) throws IOException { stop(server); }
0
private static final long serialVersionUID = 0; private static final long serialVersionUID = 0;
0
final TaskQuery query = Query.shardScoped(role, jobName, shards).active().get(); Query.jobScoped(job.getOwner().getRole(), job.getName()).active().get());
0
public void testReuseOptionsTwice() throws Exception { Options opts = new Options(); opts.addOption(OptionBuilder.isRequired().create('v')); GnuParser parser = new GnuParser(); // first parsing parser.parse(opts, new String[] { "-v" }); try { // second ...
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
* 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
protected HeaderGroup headergroup; protected HttpParams params;
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
if(element.hasAttributeNS(null, XR_VALUE_ATTRIBUTE)){ String value = element.getAttributeNS(null, XR_VALUE_ATTRIBUTE); Constructor constructor = cl.getDeclaredConstru...
0
import org.apache.beam.sdk.values.TimestampedValue; new Function<TimestampedValue<OutputT>, OutputT>() { public OutputT apply(TimestampedValue<OutputT> input) { public List<TimestampedValue<OutputT>> peekOutputElementsWithTimestamp() { new Function<WindowedValue<OutputT>, TimestampedValue<Ou...
0
import org.apache.felix.framework.util.StringMap; new MutablePropertyResolverImpl(new StringMap(configProps, false)),
0
implements PTransformOverrideFactory<PCollection<InputT>, PDone, Write<InputT>> { public PTransform<PCollection<InputT>, PDone> getReplacementTransform( Write<InputT> transform) { return transform.withSharding(new LogElementShardsWithDrift<InputT>());
0
import org.apache.http.HttpEntityEnclosingRequest; import org.apache.http.HttpRequest; HttpRequest request = (HttpRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST); boolean idempotent = !(request instanceof HttpEntityEnclosingRequest); if (idempotent) { ...
0
ServiceReference sr = e.getServiceReference(); Filter filter = (Filter) sr.getProperty(UPnPEventListener.UPNP_FILTER); removeListener(sr); if (filter == null) addNewListener(sr); else { if (filter.mat...
0
private JobKeys() { // Utility class. }
0
package org.apache.beam.sdk.extensions.euphoria.core.translate; import java.util.Optional; import org.apache.beam.sdk.Pipeline; /** Simple interface that allows user to define translation of his own. */ public interface TranslatorProvider { static TranslatorProvider of(Pipeline pipeline) { return pipeline.getOpti...
0
return cancelled? false : (cancelled = true); protected boolean isCancelled() { return cancelled | Thread.currentThread().isInterrupted();
0
* Copyright 2002-2005 The Apache Software Foundation.
0
HttpMessage message = new DummyHttpMessage(); HttpMessage message = new DummyHttpMessage(); HttpMessage message = new DummyHttpMessage(); HttpMessage message = new DummyHttpMessage(); HttpMessage message = new DummyHttpMessage(); HttpMessage message = new DummyHttpMessage...
0
import org.apache.aurora.scheduler.app.local.simulator.events.Started; Futures.getUnchecked(schedulerFuture).resourceOffers(this, allOffers); this, private final TaskInfo taskInfo; private Task(Offer offer, TaskInfo taskInfo) { this.taskInfo = taskInfo; return taskInfo;
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
/*sch1.updateActualConfigs(new HashMap<String, Map<String,String>>() {{ }});*/ /*s1.getServiceComponent(componentName1).getServiceComponentHost(host1).updateActualConfigs(actualConfig); s1.getServiceComponent(componentName3).getServiceComponentHost(host2).updateActualConfigs(actualConfig);*/ /*s1.ge...
0
public static <T> Predicate<T> identityPredicate(T object) {
0
import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @RunWith(Parameterized.class) private final String sourceVersion; public UpgradeTest(String sourceVersion) { this.sourceVersion = sourceVersion; injector = Guice.createInjector(new ControllerModule(properties)); LOG.info("Testing ...
0
for (int i = 0; i < 30; i++) { try { zk.create("/test", "test".getBytes(), ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT); break; } catch(KeeperException.ConnectionLossException e) { Thread.sleep(1000); ...
0
TemporalServiceDependency,
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.commons.jexl2.util;
0
private volatile boolean running = false; running = true; running = false; public boolean isRunning(){ return bookie.isRunning() && nioServerFactory.isRunning() && running;
0
import org.apache.ambari.logsearch.common.PropertiesHelper; String collectorHosts = PropertiesHelper.getProperty("logsearch.solr.metrics.collector.hosts"); int solrJmxPort = PropertiesHelper.getIntProperty("logsearch.solr.jmx.port"); String zkConnectString = PropertiesHelper.getProperty("logsearch.sol...
0