Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @version $Revision$ $Date$
0
throw new BadLocationStateException("found two assignments for the same extent " + key.getRow() + ": " + future + " and " + location, entry.getKey().getRow()); throw new BadLocationStateException("found two locations for the same extent " + key.getRow() + ": " + current + " and " + location, entry.g...
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger log = LoggerFactory.getLogger(QueryMetadataTable.class); log.error("Table '{}' not found.", MetadataTable.NAME, e);
0
import org.apache.cocoon.portal.services.PortalManager; pm.render(xmlConsumer, this.properties);
0
log.error("{} trying to convert bytes to long, but byte array isn't length 8", LongSummation.class.getSimpleName());
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestSetUtils.java,v 1.7 2003/08/31 17:28:43 scolebourne Exp $ * $Revision: 1.7 $ * $Date: 2003/08/31 17:28:43 $ * any, must include the following acknowledgement: * Alter...
0
* @version $Revision$
0
import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; private final CountDownLatch accessibleLatch = new CountDownLatch(1); if (implementationAccessible) { accessibleLatch.countDown(); } try { if (accessibleLatch.await(...
0
import org.apache.hc.core5.http.protocol.HttpProcessorBuilder; @Override protected HttpProcessor createClientHttpProcessor() { return HttpProcessorBuilder.create().addAll( new RequestContent(), new RequestTargetHost(), new RequestConnControl(), ...
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
package org.apache.beam.runners.spark.translation; import org.apache.beam.runners.spark.EvaluationResult; public void computeOutputs() {
0
/** * Returns a filter that accepts files in addition to the {@link File} objects accepted by the given filter. * * @param fileFilter a base filter to add to * @return a filter that accepts files */ /** * Returns a filter that accepts directories in addition to the {@link File} o...
1
import java.util.concurrent.TimeUnit; * @param tunit ignored long timeout, TimeUnit tunit) {
0
import org.apache.ambari.view.pig.persistence.DataStoreStorage; import java.util.HashMap; import java.util.Map; private Storage storageInstance = null; private static Map<String, StorageUtil> viewSingletonObjects = new HashMap<String, StorageUtil>(); public static StorageUtil getInstance(ViewContext context) { ...
0
import java.util.HashMap; import java.util.Map; import org.apache.avro.reflect.Nullable;
0
SerializableUtils.clone(supplier).get(), Matchers.containsInAnyOrder(otherWindow, window)); WindowSupplier.of(new FailingCoder(), Collections.singleton(window));
0
public final class FilterMapping extends AbstractMapping public void register(HttpService httpService) if (httpService instanceof ExtHttpService) { register((ExtHttpService) httpService); } else { // Warn the user that something strange is going on... ...
0
import cz.seznam.euphoria.flink.FlinkElement; .returns((Class) FlinkElement.class)
0
log( "Error reading configuration PID " + pid, e ); if ( value.getClass().getComponentType().isPrimitive() ) { final int len = Array.getLength(value); final Object[] tmp = new Object[...
0
import org.apache.accumulo.server.HighlyAvailableService; public class Monitor implements HighlyAvailableService { public static HighlyAvailableService HA_SERVICE_INSTANCE = null; // Servlets need access to limit requests when the monitor is not active, but Servlets are instantiated // via reflection. Expose ...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/ResultSetDynaClass.java,v 1.9 2003/01/15 21:59:39 rdonkin Exp $ * $Revision: 1.9 $ * $Date: 2003/01/15 21:59:39 $ * Copyright (c) 1999-2003 The Apache Software Foundation. All righ...
0
import org.apache.atlas.typesystem.exception.EntityNotFoundException; import org.apache.atlas.typesystem.exception.TypeNotFoundException; import org.apache.atlas.utils.ParamChecker; import java.util.Arrays; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertTrue; Referenceable ...
0
* @version $Revision$
0
package org.apache.beam.sdk.io.hdfs; * Tests for HDFSFileSource. public class HDFSFileSourceTest { HDFSFileSource<IntWritable, Text> source = HDFSFileSource.from(file.toString(), SequenceFileInputFormat.class, HDFSFileSource<IntWritable, Text> source = HDFSFileSource.from(new File(file1.getPare...
0
/** "http://issues.apache.org/bugzilla/show_bug.cgi?id=12400" */
0
public class DefaultListeningIOReactor extends AbstractIOReactorBase implements IOReactorService, ConnectionAcceptor { IOWorkers.Selector getWorkerSelector() { return workerSelector; } @Override
0
if (prefix != null) { String namespaceURI = context.getJXPathContext() .getNamespaceURI(prefix);
0
// modify metadata ZooKeeperInstance zki = new ZooKeeperInstance(new ClientConfiguration().withInstance(opts.iname).withZkHosts(opts.keepers)); AccumuloServerContext context = new AccumuloServerContext(new ServerConfigurationFactory(zki)); TServerUtils.startTServer(context.getConfiguration(), HostAndPo...
1
log.error("{}", e.getMessage(), e);
0
* @deprecated To implement a coder, do not use any {@code Context}. Just implement only those * abstract methods which do not accept a {@code Context} and leave the default implementations * for methods accepting a {@code Context}. * same, then it must be the case that {@code structuralValue(x).equals(struc...
0
package org.apache.xml.security.test.dom.keys.content.x509;
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
boolean useCache = null != getContext().getFileSystemManager().getFilesCache();
0
import org.apache.sshd.common.PropertyResolverUtils; PropertyResolverUtils.updateProperty(client, FactoryManager.MAX_PACKET_SIZE, 1024 * 16); PropertyResolverUtils.updateProperty(client, FactoryManager.WINDOW_SIZE, 1024 * 8);
0
import org.apache.aurora.scheduler.configuration.executor.ExecutorSettings; public static ResourceBag bagFromTask(ITaskConfig task, ExecutorSettings executorSettings) { return bagFromResources(task.getResources(), RESOURCE_TO_TYPE, QUANTIFY_RESOURCE) .add(executorSettings.getExecutorOverhead(task)); }
0
try { connState.reset(); } catch (IOException ex) { if (this.eventListener != null) { this.eventListener.fatalIOException(ex, conn); } } public void finishInput() throws IOException { public void finishOutput() throws IOExceptio...
0
throw new InterruptedIOException("Connection has been shut down"); throw new ConnectionShutdownException();
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
* 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
import org.apache.cocoon.forms.FormsException; if (!(definition instanceof RepeaterActionDefinition)) { throw new FormsException("Ancestor definition " + definition.getClass().getName() + " is not a RepeaterActionDefinition.", getLocation()); } Re...
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(FlinkBatchPipelineTranslator.class); LOG.info(genSpaces(this.depth) + "enterCompositeTransform- " + formatNodeName(node)); LOG.info(genSpaces(this.depth) + "doingCompositeTransform- " + form...
0
import com.google.cloud.dataflow.sdk.util.WindowingStrategy; final Object windowingStrategy = "serialized windowing strategy"); if (!(windowingStrategy instanceof WindowingStrategy)) { "unexpected kind of WindowingStrategy: " + windowingStrategy.getClass().getName()); final AssignWindo...
0
final List<Boolean> list = new ArrayList<>();
1
package org.apache.felix.sigil.utils.properties;
0
return 1f; return 1f;
0
String tablesDir = instance.getConfiguration().get(Property.INSTANCE_DFS_DIR) + "/tables";
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
// Note that the above list is in UPPER case. // The code currently converts strings to lower case (as per the tables below)
0
@Override public SlidingStats load(Method method) {
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
private static final Arg<Module> AUTH_MODULE = Arg.create(new UnsecureAuthModule()); ImmutableList.of(SessionValidator.class, CapabilityValidator.class);
0
Utils.checkTableDoesNotExist(environment.getContext(), cloneInfo.tableName, cloneInfo.tableId, Tables.clearCache(environment.getContext()); Tables.clearCache(environment.getContext());
0
/** * Copyright 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 applicab...
0
package org.apache.atlas.discovery.graph; import org.apache.atlas.MetadataException; import org.apache.atlas.query.Expressions; import org.apache.atlas.query.GraphPersistenceStrategies; import org.apache.atlas.query.GraphPersistenceStrategies$class; import org.apache.atlas.query.TypeUtils; import org.apache.atlas.repos...
0
package org.apache.commons.vfs.util; import org.apache.commons.vfs.util.OsFamily;
0
import org.apache.felix.resolver.util.CopyOnWriteSet; private final OpenHashMap<Resource, Object> m_populateResultCache; Map<Resource, WrappedResource> wrappedHosts, OpenHashMap<Resource, Object> populateResultCache, m_populateResultCache = new OpenHashMap<Resource, Object>(); m_subt...
0
import org.apache.ambari.server.actionmanager.HostRoleCommandFactory; import org.apache.ambari.server.stageplanner.RoleGraphFactory; import org.apache.ambari.server.state.stack.upgrade.Grouping; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; * Used by some {@link Grouping}s to ge...
0
import com.google.common.io.Resources;
0
super(null, route, Mockito.mock(HttpConnection.class), timeToLive, tunit); super(null, route, conn, timeToLive, tunit);
0
package org.apache.ambari.infra.solr.commands; import org.apache.ambari.infra.solr.AmbariSolrCloudClient; import org.apache.ambari.infra.solr.domain.AmbariSolrState;
0
package org.apache.beam.sdk.extensions.euphoria.beam.common; import org.apache.beam.sdk.extensions.euphoria.core.client.functional.UnaryFunction;
0
import cz.seznam.euphoria.core.client.operator.hint.ComputationHint; import org.apache.spark.storage.StorageLevel; List<DataSink<?>> translateInto(Flow flow, StorageLevel storageLevel) { if (dag.getNode(op).getChildren().size() > 1 && op.getHints().contains(ComputationHint.EXPENSIVE)) { ...
0
long finishAt = System.currentTimeMillis() + (seconds * 1000L);
0
import javax.xml.parsers.DocumentBuilder; private DocumentBuilder db; db = XMLUtils.createDocumentBuilder(false); Document doc = db.newDocument(); Document doc = db.newDocument();
0
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString;
0
import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE; import static com.fasterxml.jackson.annotation.JsonAutoDet...
0
import java.nio.charset.Charset; import org.apache.http.Consts; final byte[] content = "Message content".getBytes(Consts.ISO_8859_1); final byte[] bytes = "Message content".getBytes(Consts.ISO_8859_1); final byte[] bytes = "Message content".getBytes(Consts.ISO_8859_1); final byte[] conte...
0
setFormats(new DateFormat[]{format});
0
import org.apache.http.annotation.Immutable;
0
public TriggerResult onElement(TriggerContext<W> c, OnElementEvent<W> e) throws Exception { Instant delayUntil = c.lookup(DELAYED_UNTIL_TAG, e.window()); delayUntil = computeTargetTimestamp(e.eventTimestamp()); c.setTimer(e.window(), delayUntil, TimeDomain.EVENT_TIME); c.store(DELAYED_...
0
* * * /** throw new Exception( msg ); throw new Exception( msg );
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
if (Artifact.SCOPE_COMPILE.equals(artifact.getScope()) || Artifact.SCOPE_SYSTEM.equals(artifact.getScope()) || Artifact.SCOPE_PROVIDED.equals(artifact.getScope())) {
0
public Multiplicity(int lower, int upper, boolean isUnique) {
0
@org.junit.jupiter.api.Test
0
package org.apache.felix.gogo.runtime;
0
return this.readUnsignedByte() != 0;
0
c14nAndCompare(fileIn, fileRef, fileOut, c14nURI, xpath)); c14nAndCompare(fileIn, fileRef, fileOut, c14nURI, xpath)); c14nAndCompare(fileIn, fileRef, fileOut, c14nURI, xpath)); c14nAndCompare(fileIn, fileRef, fileOut, c14nURI, xpath)); ...
0
counter++;
0
* Copyright 2016-2017 Seznam.cz, a.s.
0
package org.apache.bcel.classfile;
1
input -> { assertEquals(path, input.getFileLocation()); assertFalse(input.isSuccess()); assertTrue(input.getError() instanceof TikaException); return null;
0
* @see PrivateKeyEntryDecoder#getSupportedKeyTypes() ValidateUtils.checkNotNullAndNotEmpty(decoder.getSupportedKeyTypes(), "No supported key type");
0
import org.apache.commons.configuration.convert.DefaultListDelimiterHandler;
0
import org.apache.accumulo.core.client.admin.ScanType; *
0
final Future<IOSession> sessionFuture = connPool.getSession(target, connectTimeout, new FutureCallback<IOSession>() {
0
return; return;
0
import org.apache.accumulo.core.Constants; return sb.toString().getBytes(Constants.UTF8); String[] longstrs = new String(b, Constants.UTF8).split(",");
0
request.setHeader(new Header("User-Agent", "Elemental HTTP client"));
0
import org.apache.batik.dom.svg.SVGOMElement; ImageNode imgNode = (ImageNode)instantiateGraphicsNode(); // System.out.println("Bounds: " + bounds); // System.out.println("ImgB: " + imgBounds); imgNode.setVisible(CSSUtilities.convertVisibility(e)); /** * Returns false a...
0
* @author <a href="mailto:deweese@apache.org">deweese</a>
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/EmailTest.java,v 1.6 2003/01/20 06:50:26 turner Exp $ * $Revision: 1.6 $ * $Date: 2003/01/20 06:50:26 $ * @version $Revision: 1.6 $ $Date: 2003/01/20 06:50:26 $ * <p>Tests the e...
0
import org.apache.cocoon.core.container.spring.avalon.AvalonEnvironment; import org.apache.cocoon.core.container.spring.avalon.ComponentInfo; import org.apache.cocoon.core.container.spring.avalon.ConfigurationInfo; if ( info.getRootLogger() != null ) { logger = env.logger.getChildLogger(info...
0
description = "merge small tablets even if merging them to larger" + " tablets might cause a split")
0
package com.twitter.aurora.scheduler.periodic; import com.twitter.aurora.gen.AssignedTask; import com.twitter.aurora.gen.ScheduledTask; import com.twitter.aurora.gen.TaskQuery; import com.twitter.aurora.scheduler.base.Query; import com.twitter.aurora.scheduler.base.ScheduleException; import com.twitter.aurora.scheduler...
1
import org.apache.beam.sdk.state.ValueState; import org.apache.beam.sdk.transforms.windowing.Sessions; import org.apache.beam.sdk.transforms.windowing.Window; import org.joda.time.Duration; * * <p>Implements {@link Serializable} because it is caught in closures. private void verifyMergingStatefulParDoRejected(Pipel...
0
final SequencesComparator<Character> comparator = final ExecutionVisitor<Character> ev = new ExecutionVisitor<Character>(); final String[] shadokAlph = new String[] { final List<String> sentenceBefore = new ArrayList<String>(); final List<String> sentenceAfter = new ArrayLis...
0
import org.apache.http.protocol.HttpCoreContext; final HttpCoreContext context = HttpCoreContext.create(); registry.lookup(request, context); final HttpCoreContext context = HttpCoreContext.create(); h = registry.lookup(new BasicHttpRequest("GET", "/that.view?param=value"), context); ...
0
} public void test_create_hmac_sha1_40_exclusive_c14n_comments_detached() } private void test_create_hmac_sha1_exclusive_c14n_comments_detached(boolean fortyBit) (CanonicalizationMethod.EXCLUSIVE_WITH_COMMENTS, fac.newSignatureMethod(SignatureMethod.HMAC_SHA1, spec), ...
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...
1