Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
package org.apache.http.impl.cookie;
0
import java.sql.ResultSet; * Execute select query * @param query * @return * @throws SQLException */ ResultSet executeSelect(String query) 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
} else if (validityPolicy.isRevalidatable(entry) && !(entry.getStatusCode() == HttpStatus.SC_NOT_MODIFIED
0
public abstract class AbstractRandomAccessContent implements RandomAccessContent { protected AbstractRandomAccessContent(final RandomAccessMode mode) { * @throws IOException if an error occurs. public String readLine() throws IOException { public void write(final byte[] b) throws IOException { publ...
1
assertEquals("Hive", serviceInfo.getDisplayName()); assertEquals("Hive Metastore", components.get(0).getDisplayName());
0
import org.apache.beam.runners.core.AssignWindowsDoFn; import org.apache.beam.runners.core.GroupAlsoByWindowsViaOutputBufferDoFn; import org.apache.beam.runners.core.GroupByKeyViaGroupByKeyOnly.GroupAlsoByWindow; import org.apache.beam.runners.core.GroupByKeyViaGroupByKeyOnly.GroupByKeyOnly; import org.apache.beam.runn...
0
log.trace("doRead({})[id={}]({})[offset={}] - req={}, max={}, effective={}",
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
/** * Marks the rule be invoked when {@code begin} or {@code end} events match. */ boolean fireOnBegin() default false;
0
public class OverflowFactory extends AbstractIdentifierFactory implements ValueConstants { values.put(CSS_AUTO_VALUE, AUTO_VALUE); values.put(CSS_HIDDEN_VALUE, HIDDEN_VALUE); values.put(CSS_SCROLL_VALUE, SCROLL_VALUE); values.put(CSS_VISIBLE_VALUE, VISIBLE_VALUE); return CSS_OVERFLOW_PROPERTY;
0
/* * Copyright 2001-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 applica...
0
* @version CVS $Id: PlainIntegerConvertor.java,v 1.3 2004/01/30 00:31:48 joerg Exp $
0
// Skip to next one continue;
0
clone.copletInstanceData = null; public Layout copy() { if ( this.copletInstanceData != null ) { clone.copletInstanceData = this.copletInstanceData.copy();
0
* Autogenerated by Thrift Compiler (0.12.0) @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)") public @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent extent; // required public @org.apache.thrift.annotation.Nullable ActionStats majors; // req...
0
import java.lang.reflect.InvocationTargetException; @SuppressWarnings("WeakerAccess") T t = type.getDeclaredConstructor().newInstance(); } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { @SuppressWarnings("WeakerAccess...
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 by ap...
0
try { switch (event.getType()) { case IResourceChangeEvent.PRE_REFRESH: handleRefresh(event); break; case IResourceChangeEvent.POST_BUILD: handleBuild(event); break; ...
0
public static final int DEFAULT_COMPILED_QUERY_CACHE_EVICTION_WARNING_THROTTLE = 0; public static final int DEFAULT_COMPILED_QUERY_CACHE_CAPACITY = 1000; return ApplicationProperties.getClass(config, return ApplicationProperties.getClass(config, public static final String COMPILED_...
0
expected.offer.offerStaticBanCacheMaxSize = 42L; "-offer_static_ban_cache_max_size=42",
0
import cz.seznam.euphoria.core.client.io.Reader; private static class EndOfStreamException extends Exception {} final Reader<T> r; try { this.r = partition.openReader(); } catch (IOException e) { throw new RuntimeException("Failed to open reader for partition: " + partition); } ...
0
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
// Use an old version of the event admin to avoid import package issues on KF mavenBundle("org.apache.felix", "org.apache.felix.eventadmin", "1.2.10"),
0
* @version CVS $Id: HttpSession.java,v 1.2 2003/12/23 15:28:32 joerg Exp $ * @see #setMaxInactiveInterval(int)
0
import org.apache.accumulo.core.conf.ClientConfiguration; conn = new ZooKeeperInstance(new ClientConfiguration().withInstance(instanceName).withZkHosts(zookeepers)).getConnector(user, new PasswordToken(password));
0
extends DoFnOperator<KeyedWorkItem<byte[], KV<InputT, RestrictionT>>, OutputT> { DoFn<KeyedWorkItem<byte[], KV<InputT, RestrictionT>>, OutputT> doFn, Coder<WindowedValue<KeyedWorkItem<byte[], KV<InputT, RestrictionT>>>> inputCoder, KeySelector<WindowedValue<KeyedWorkItem<byte[], KV<InputT, Restric...
0
List<String> currentFile = new ArrayList<>(); List<String> expectedElements = new ArrayList<>(elems.length); List<String> actualElements = BoundedSource<String> source = prepareSource(file.getBytes()); BoundedSource<String> remainder;
0
import org.apache.hc.core5.http.protocol.HttpContext; public void sendResponse(final ResponseChannel responseChannel, final HttpContext httpContext) throws HttpException, IOException { responseChannel.sendResponse(response, dataProducer, httpContext);
0
public void setHAState(String status);
0
import java.net.MalformedURLException; import java.net.URL; import java.security.CodeSource; import java.security.cert.Certificate; public BundleProtectionDomain(Felix felix, FelixBundle bundle) throws MalformedURLException super(new CodeSource(new URL(new URL(null, "location:", new Fa...
0
/** * A utility for merging visibilities into the form {@code (VIS1)|(VIS2)|...|(VISN)}. Used by the {@link ChunkCombiner}. */
0
tmp.put(id, new IdSoftRef(e, id)); elementsById = tmp; Node next = n.getNextSibling(); // todo: Jlint says: n can be NULL String prefix = a.getPrefix(); // todo : this breaks when a is null
0
private void sawError() { sawError(); sawError(); sawError(); sawError(); sawError(); sawError();
0
* * @param <K> the type of the keys in this map * @param <V> the type of the values in this map *
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/UnmodifiableList.java,v 1.6 2003/11/16 00:39:37 scolebourne Exp $ * @version $Revision: 1.6 $ $Date: 2003/11/16 00:39:37 $ * @deprecated TO BE REMOVED BEFORE v3....
0
List<String> messages = new ArrayList<>(); List<String> errorMessages = new ArrayList<>(); TreeMap<String, String> foreignKeys = new TreeMap<>();
1
* Copyright 2003-2005 The Apache Software Foundation import org.apache.commons.cli2.commandline.WriteableCommandLineImpl; assertTrue(option.canProcess(new WriteableCommandLineImpl(option,null), "-?")); assertFalse(option.canProcess(new WriteableCommandLineImpl(option,null), "-H"));
0
@Override protected int defaultTimeoutSeconds() { return 90; } @Test
0
import org.apache.xml.security.test.utils.resolver.OfflineResolver; public void test_coreFeatures_signatures_manifestSignature_core() throws Exception { String filename = gregorsDir + "coreFeatures/signatures/manifestSignature.xml"; ResourceResolverSpi resolver = nul...
0
import com.google.common.base.Preconditions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.ldap.core.DirContextAdapter; import org.springframework.ldap.core.DistinguishedName; import org.springframework.security.ldap.LdapUtils; import javax.naming.Name; private static final Logg...
0
@JsonProperty("clusters")
1
@Override props.put( Constants.SERVICE_DESCRIPTION, "Configuration Admin Service Specification 1.6 Implementation" ); @Override @Override @Override @Override @Override @Override @Override @Override
0
import java.util.Collections; import java.util.Map; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.Option; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap.Builder; public static Map<String,String> parseMapOpt(CommandLine cl, Option opt) { if...
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 ...
0
NFileEntity body = new NFileEntity(file, ContentType.create("text/html"));
0
import org.apache.ambari.logsearch.config.api.ShipperConfigElementDescription; import org.apache.ambari.logsearch.config.api.ShipperConfigTypeDescription; @ShipperConfigTypeDescription( name = "Filter", description = "The filter element in the [input configuration](inputConfig.md) contains a list of filter descript...
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
/** * @return */ public IPackageExport getOldExport() { return oldExport; } /** * @return */ public IPackageExport getNewExport() { return newExport; } public ISigilProjectModel getProject() { return sigil; }
0
public class JDBCPropertyProviderTest {
0
import org.apache.commons.bcel6.generic.BranchHandle; import org.apache.commons.bcel6.generic.ConstantPoolGen; import org.apache.commons.bcel6.generic.GOTO; import org.apache.commons.bcel6.generic.IFEQ; import org.apache.commons.bcel6.generic.InstructionConstants; import org.apache.commons.bcel6.generic.InstructionList...
1
final String zkHostGroupName = "zk_host_group"; Collection<String> hg1Components = new HashSet<>(); hg1Components.add("KAFKA_BROKER"); hg1Components.add("HBASE_MASTER"); TestHostGroup group1 = new TestHostGroup(expectedHostGroupName, hg1Components, hosts); // Place ZOOKEEPER_SERVER in separate ...
0
List<TaskWrapper> collection = new ArrayList<>(); Set<String> effectiveHosts = new HashSet<>();
1
import org.apache.atlas.authorize.AtlasAuthorizationUtils; import org.apache.atlas.authorize.AtlasEntityAccessRequest; import org.apache.atlas.authorize.AtlasPrivilege; import org.apache.atlas.model.instance.AtlasEntity.AtlasEntityWithExtInfo; AtlasEntityHeader entity = entityRetriever.toAtlasEntityHeaderWithCl...
0
int currentVersion; } else if (currentVersion != firstVersion) {
0
return Combine.perKey(new CountFn<V>()); .apply(Count.perKey());
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
.setTypeDescriptor(new TypeDescriptor<KV<String, Integer>>() {});
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbcp/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java,v 1.6 2003/08/21 19:00:26 dirkv Exp $ * $Revision: 1.6 $ * $Date: 2003/08/21 19:00:26 $ * @version $Revision: 1.6 $ $Date: 2003/08/21 19:00:26 $ ra = ref.g...
0
package com.twitter.aurora.scheduler.thrift;
0
Mockito.when(conn.isResponseAvailable(Mockito.anyInt())).thenReturn(Boolean.TRUE); Mockito.when(conn.isResponseAvailable(Mockito.anyInt())).thenReturn(Boolean.TRUE); Mockito.when(conn.isResponseAvailable(Mockito.anyInt())).thenReturn(Boolean.TRUE); Mockito.when(conn.isResponseAvailable(M...
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
package org.apache.felix.sigil.eclipse.ui.internal.editors.project;
0
private static final org.slf4j.Logger LOG =
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
if ( !contextHandlerList.isEmpty() ) { contextHandlers.add(contextHandlerList.get(0)); }
0
List<String> list = new LinkedList<>();
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/ShortConverter.java,v 1.2 2002/04/11 19:50:06 craigmcc Exp $ * $Revision: 1.2 $ * $Date: 2002/04/11 19:50:06 $ * @version $Revision: 1.2 $ $Date: 2002/04/11 19:50:06 $ ...
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
/** * 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 java.util.regex.Pattern; import org.apache.commons.lang.StringUtils; protected static final Pattern CONTAINS_API_VERSION_PATTERN = Pattern.compile("^/?" + DEFAULT_API_PATH+ ".*"); WebResource webResource = extendApiResource(ambariWebResource, relativeUri); response = extendApiResource(ambariWebResou...
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 javax.persistence.NamedQueries; import javax.persistence.NamedQuery; @NamedQueries({ @NamedQuery(name = "RoleSuccessCriteriaEntity.removeByRequestStageIds", query = "DELETE FROM RoleSuccessCriteriaEntity criteria WHERE criteria.stageId = :stageId AND criteria.requestId = :requestId") })
0
message += String.format("Argument %s (%s) does not match %s%n", i, args[i],
0
* A {@link PTransform} that writes to a {@link Sink}. A write begins with a sequential global * A {@link PTransform} that writes to a {@link Sink}. See {@link Write} and {@link Sink} for
0
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
import org.apache.http.protocol.HttpRequestHandler; final HttpRequestHandler requestHandler, new RequestHandlerResolver(new BufferingAsyncRequestHandler(requestHandler)), executeStandardTest(new RequestHandler(), requestExecutionHandler); executeStandardTest(new RequestHandle...
0
class ASTSelectFirst extends SimpleNode public ASTSelectFirst( int id ) { super( id ); public ASTSelectFirst( OgnlParser p, int id ) { super( p, id ); protected Object getValueBody( OgnlContext context, Object source ) throws OgnlException Node expr = _children[0]...
0
import org.apache.accumulo.server.ServerContext; import org.apache.accumulo.server.iterators.SystemIteratorEnvironment; public class TabletIteratorEnvironment implements SystemIteratorEnvironment { private final ServerContext context; public TabletIteratorEnvironment(ServerContext context, IteratorScope scope, ...
0
/* * $Header: /cvshome/build/ee.foundation/src/java/net/ContentHandlerFactory.java,v 1.6 2006/03/14 01:20:23 hargrave Exp $ * * (C) Copyright 2001 Sun Microsystems, Inc. * Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may ...
0
public Object jsFunction_getParent() {
0
package org.apache.hc.client5.http.sync.methods;
0
try (AccumuloClient c = createClient()) {
0
* @deprecated use {@link java.util.ArrayDeque} instead (available from Java 1.6) @Deprecated
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 org.apache.hadoop.conf.Configuration; public static final String VIEWFS_CLASSNAME = "org.apache.hadoop.fs.viewfs.ViewFileSystem"; public static boolean isViewFSSupported() { try { Class.forName(VIEWFS_CLASSNAME); return true; } catch (ClassNotFoundException e) { return false; ...
0
.set("runtimeSec", nexmarkPerf1.runtimeSec).set("eventsPerSec", nexmarkPerf1.eventsPerSec) .set("numResults", (int) nexmarkPerf1.numResults); .set("runtimeSec", nexmarkPerf2.runtimeSec).set("eventsPerSec", nexmarkPerf2.eventsPerSec) .set("numResults", (int) nexmarkPerf2.numResults);
0
import java.util.HashMap; // Map of tserver -> timestamp, used by the GCWriteAheadLogs to track state of when a tablet server went down final Map<HostAndPort,Long> firstSeenDead = new HashMap<>(); GarbageCollectWriteAheadLogs walogCollector = new GarbageCollectWriteAheadLogs(this, fs, isUsingTrash(), f...
0
import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.verify; import java.util.concurrent.Callable; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util....
0
ResourceType.initializeEmptyCliArgsForTest();
0
/* * Copyright (c) OSGi Alliance (2010, 2016). All Rights Reserved. * * 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 re...
0
package org.apache.accumulo.core.util.shell.commands; import org.apache.accumulo.core.util.shell.Shell;
0
int maskContentUnitsType; try { maskContentUnitsType = SVGUtilities.parseCoordinateSystem(maskContentUnits); } catch (IllegalArgumentException ex) { throw new IllegalAttributeValueException( Messages.formatMessage("mask.maskContentUnits.inv...
0
* @param connTTL maximum lifetime of this entry, &lt;=0 implies "infinity"
0
/* * Copyright 2013 Twitter, Inc. * * 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 t...
0
private static final long serialVersionUID = 8782512160909720199L;
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
0
TestMergeContext<T, W> tmc = new TestMergeContext<>(windowSet, windowFn); windowFn.mergeWindows(tmc); TestAssignContext<T, W> tac = new TestAssignContext<>(timestampedValue, windowFn); return windowFn.assignWindows(tac);
0
import com.google.cloud.dataflow.sdk.runners.dataflow.TestCountingSource; new TestCountingSource(1), options))) TestCountingSource.setFinalizeTracker(finalizeTracker);
0