Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
new String[] {"java.awt.event.ActionListener"}); "Ljava/io/PrintStream;"); "(Ljava/lang/Object;)V"); new Type[] { new ObjectType("java.awt.event.ActionEvent") }, null, "actionPerformed", "foo", il, cp); ...
0
import com.google.common.base.Preconditions;
0
import org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.loadsimulator.util.RandomMetricsProvider; import org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.loadsimulator.util.TimeStampProvider; import org.slf4j.Logger; import org.slf4j.LoggerFactory;
0
import org.apache.http.protocol.HttpExpectationVerifier; private HttpExpectationVerifier expectationVerifier; public void setExpectationVerifier(final HttpExpectationVerifier expectationVerifier) { this.expectationVerifier = expectationVerifier; } HttpVersion ver = request.getRequestLine()....
0
class SynchronizedBagSet extends SynchronizedCollection<E> implements Set<E> {
0
import cz.seznam.euphoria.core.annotation.audience.Audience; import java.io.Serializable; @Audience(Audience.Type.CLIENT) public interface StateContext extends Serializable { * @return {@code StorageProvider} implementation. * @return {@code SpillTools} for possible externalization of data to local storage.
0
import com.twitter.mesos.scheduler.storage.log.testing.LogOpMatcher; import com.twitter.mesos.scheduler.storage.log.testing.LogOpMatcher.StreamMatcher; private StreamMatcher streamMatcher; streamMatcher = LogOpMatcher.matcherFor(logStream); LogEntry.transaction(new Transaction().setOps( Immuta...
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
import org.apache.xml.security.utils.XMLUtils; DocumentBuilder builder = XMLUtils.createDocumentBuilder(false); document = StAX2DOM.readDoc(XMLUtils.createDocumentBuilder(false), securityStreamReader); DocumentBuilder builder = XMLUtils.createDocumentBuilder(false); StAX2DOM.readDoc(...
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
filter.seek(new Range(), Set.of(cf), true); filter.seek(new Range("4"), Set.of(cf), true);
0
if (!Character.isWhitespace(currentChar)) { state = VALUE; } else { currentPosition++; } if (currentChar == '\\' ) { if (escaped) ...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ByteIterator.java,v 1.2 2003/08/31 17:21:14 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowledgement may ap...
0
import org.apache.ambari.server.ldap.LdapModule; injector = Guice.createInjector(new AuditLoggerModule(), new AuthorizationTestModule(), new LdapModule());
0
import org.apache.beam.runners.core.construction.TransformInputs; return (InputT) Iterables.getOnlyElement( TransformInputs.nonAdditionalInputs(getCurrentTransform(transform)));
0
final String s = new String(buffer.buffer(), 0, buffer.length()); final String tmp = s + "\r\n"; final String tmp = s + "\r\n";
0
public abstract class AbstractWindowing<T, GROUP, LABEL, W extends Window<GROUP, LABEL>> implements Windowing<T, GROUP, LABEL, W>
0
import org.apache.ambari.server.audit.event.kerberos.CreateKeyTabKerberosAuditEvent; import org.junit.Test;
0
@Override
0
protected AbstractSetValuedMap(final Map<K, ? extends Set<V>> map) { public Set<V> remove(final Object key) { public boolean equals(final Object other) {
0
* @version $Revision$ $Date$
0
public SimpleHttpResponse(final int code) { this(code, null, null); }
0
if (actualConfig == null && actualConfigType.equals("core-site")) { continue; }
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
import org.apache.beam.sdk.values.TypeDescriptor; /** * TODO: complete javadoc. */ private TypeAwareUnaryFunction(UnaryFunction<InT, OutT> function, TypeDescriptor<OutT> resultType) { UnaryFunction<InT, OutT> function, TypeDescriptor<OutT> typeHint) {
0
import org.apache.beam.sdk.schemas.Schema;
0
import org.apache.accumulo.harness.AccumuloClusterIT; public class BadIteratorMincIT extends AccumuloClusterIT {
0
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a>
0
/* * Copyright (c) OSGi Alliance (2012). 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 required...
0
Expression e = JEXL.createExpression("for(item : list) ;"); Expression e = JEXL.createExpression("for(item : list) 1+1"); Expression e = JEXL.createExpression("for(item : list) item"); Expression e = JEXL.createExpression("for(item : list) item"); Expression e = JEXL.createExpres...
0
package org.apache.bcel.verifier.structurals; import org.apache.bcel.generic.ATHROW; import org.apache.bcel.generic.BranchInstruction; import org.apache.bcel.generic.GotoInstruction; import org.apache.bcel.generic.Instruction; import org.apache.bcel.generic.InstructionHandle; import org.apache.bcel.generic.JsrInstructi...
1
* ResponseDate is responsible for adding <code>Date</code> header to the
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BufferOverflowException.java,v 1.4 2002/10/13 12:57:12 scolebourne Exp $ * $Revision: 1.4 $ * $Date: 2002/10/13 12:57:12 $ * @author Avalon * @author Paul Jack * @author Steph...
0
import com.twitter.common.net.http.handlers.StringTemplateServlet.CacheTemplates; import com.twitter.mesos.gen.TaskEvent; import static com.twitter.mesos.gen.ScheduleStatus.ASSIGNED; .put(RUNNING, EnumSet.of(ASSIGNED, STARTING, RUNNING)) Iterable<TaskEvent> taskAEvents = taskA.getScheduledTask().get...
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
/* * Copyright (C) 2015 Google 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 to ...
0
private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormat.forPattern("MMdd HH:mm:ss.SSS").withZone(DateTimeZone.UTC);
0
evaluate = new TestEvaluate()
0
import org.apache.hc.core5.http.config.H1Config; final SessionInputBuffer inbuf = new SessionInputBufferImpl(1024, 256, H1Config.DEFAULT, StandardCharsets.US_ASCII); final SessionInputBuffer inbuf = new SessionInputBufferImpl(1024, 256, H1Config.DEFAULT, StandardCharsets.US_ASCII); final Session...
0
* @version $Revision: 1.9 $ $Date: 2004/05/19 19:34:06 $ caps.addAll(HttpFileProvider.capabilities);
0
return URLEncodedUtils.encUserInfo(userInfo, Consts.UTF_8); return URLEncodedUtils.encFragment(fragment, Consts.UTF_8);
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.ambari.server.security.authorization.AuthorizationException; import org.apache.ambari.server.security.authorization.AuthorizationHelper; import org.apache.ambari.server.security.authorization.ResourceType; import org.apache.ambari.server.security.authorization.RoleAuthorization; * For testing purpo...
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
public ProvisionClusterRequest createProvisionClusterRequest(Map<String, Object> properties, SecurityConfiguration securityConfiguration) throws InvalidTopologyTemplateException;
0
public static final Bag<Object> EMPTY_BAG = UnmodifiableBag.unmodifiableBag(new HashBag<Object>()); public static final Bag<Object> EMPTY_SORTED_BAG = UnmodifiableSortedBag.unmodifiableSortedBag(new TreeBag<Object>()); return SynchronizedBag.synchronizedBag(bag); return UnmodifiableBag.unmodifia...
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
* @version $Id: HierarchicalConfiguration.java,v 1.6 2004/03/28 14:43:04 epugh Exp $ } /* if */
0
* * <p>Note that for Java 8 and above, this method no longer return * IndexedPropertyDescriptor for {@link List}-typed properties, only for * properties typed as native array. (BEANUTILS-492).
0
* Parses a URI. protected FileName parseUri( final String uri ) return new LocalFileUri( uri, parser ); protected FileSystem doCreateFileSystem( final FileName name ) final LocalFileUri fileUri = (LocalFileUri)name; final FileName rootName = fileUri.resolveName( FileName.ROOT_PATH )...
0
private static final SamplerConfiguration SAMPLER_CONFIG = new SamplerConfiguration(RowSampler.class.getName()).addOption("hasher", "murmur3_32") .addOption("modulus", "3"); public TemporaryFolder folder = new TemporaryFolder(new File(System.getProperty("user.dir") + "/target"));
0
import java.util.HashMap; expect(viewContext.getProperties()).andReturn(new HashMap<String, String>()).anyTimes(); expect(connect.getConnectable(anyObject(AuthParams.class))).andReturn(connectionWrapper); expect(viewContext.getProperties()).andReturn(new HashMap<String, String>()).anyTimes(); expect(con...
0
Expression e = JEXL.createExpression("foreach (item in list) ;"); Expression e = JEXL.createExpression("foreach (item in list) 1+1"); Expression e = JEXL.createExpression("foreach (item in list) item"); Expression e = JEXL.createExpression("foreach (item in list) item"); Expressi...
0
public SimpleLearnerZooKeeperServer(FileTxnSnapLog ftsl, QuorumPeer self) throws IOException { super(ftsl, 2000, 2000, 2000, new ZKDatabase(ftsl), self); zk = new SimpleLearnerZooKeeperServer(ftsl, self);
0
* Implementations may accept {@code null} * Implementations may accept {@code null}.
0
public void testRequestTargetHostConnectHttp11() throws Exception { HttpContext context = new BasicHttpContext(null); HttpHost host = new HttpHost("somehost", 8080, "http"); context.setAttribute(ExecutionContext.HTTP_TARGET_HOST, host); BasicHttpRequest request = new BasicHttpRequest...
0
import org.apache.accumulo.core.cli.ClientOpts; static class Opts extends ClientOpts { @Parameter(names = "--table", description = "table to use") String tableName = "trace"; Scanner scanner = client.createScanner(opts.tableName, opts.auths); Scanner scanner = client.createScanner(opts.tableName...
0
import org.apache.aurora.scheduler.base.JobKeys; import org.apache.aurora.scheduler.storage.entities.IAssignedTask; import org.apache.aurora.scheduler.storage.entities.IJobKey; preemptedStatName(false), preemptedStatName(true), static String attemptsByJobStatName(IJobKey jobKey) { return "preempti...
0
import org.apache.ambari.server.ldap.service.AmbariLdapConfigurationProvider; binder.bind(AmbariLdapConfigurationProvider.class).toInstance(createMock(AmbariLdapConfigurationProvider.class));
0
import javax.xml.crypto.dom.DOMCryptoContext; import org.w3c.dom.Document; Attr attr = refElem.getAttributeNodeNS(null, "Id"); if (attr != null) { this.id = attr.getValue(); refElem.setIdAttributeNode(attr, true); } else { this.id = null; } public...
0
protected SVGUpdateOverlay updateOverlay; // = new SVGUpdateOverlay(20, 4); if (updateOverlay != null) getOverlays().add(updateOverlay); if (updateOverlay != null) { updateOverlay.addRect(r); ...
0
expectLastCall().andAnswer(() -> { ran.set(true); return null;
0
} else if (PTransformTranslation.MULTIMAP_SIDE_INPUT.equals(accessPattern.getUrn())) {
0
/** * Resolve the given {@code other} against the {@code path}. * <p> * If the {@code other} parameter is an absolute path then this method trivially returns other. * If {@code other} is an empty path then this method trivially returns the given {@code path}. * Otherwise this method considers the give...
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 applicable la...
0
public abstract class Type {
1
CloseableResource<Foo> resource = CloseableResource.of(foo, ignored -> {}); foo -> { foo -> { new Foo(), unused -> fail("Transferred resource should not be closed"))) { CloseableResource<Foo> original = CloseableResource.of(new Foo(), unused -> closed.set(true)); Closeabl...
0
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
import org.apache.http.nio.NHttpClientIOTarget; extends NHttpConnectionBase implements NHttpClientIOTarget {
0
LOG.debug("Exception shutting down released connection.", } // class ThreadSafeClientConnManager
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.Arrays;
0
context.setAttribute(HttpCoreContext.CONNECTION_ENDPOINT, conn.getEndpointDetails());
0
import org.apache.hc.core5.annotation.NotThreadSafe;
1
package org.apache.felix.bundlerepository.impl;
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 a list for intermediate stacks for cross-stack upgrade, or null if no any *
0
.apply(TextIO.write().to("gs://YOUR_OUTPUT_BUCKET/AND_OUTPUT_PREFIX"));
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
* @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 may not...
0
import org.apache.beam.sdk.extensions.sql.impl.planner.BeamRuleSets; import org.apache.calcite.plan.RelOptRule; for (RelOptRule rule : BeamRuleSets.getRuleSets()[0]) { planner.addRule(rule); }
0
/** Flag to stall processing readers' elements. */ private transient volatile boolean haltEmission; /** Halts emission of elements until {@code continueEmission} is invoked. */ void haltEmission() { haltEmission = true; } /** Continues processing elements after {@code haltEmission} was invoked. */ v...
0
package org.apache.hadoop.metadata.bridge.hivelineage.hook; import org.apache.hadoop.hive.ql.parse.ParseException; import org.apache.hadoop.hive.ql.parse.SemanticException; import com.google.gson.Gson; public class HiveLineageInfoTest { public static String parseQuery(String query) throws SemanticException, Pars...
0
import org.apache.accumulo.core.clientImpl.Table;
0
public DeferredFileOutputStream(final int threshold, final File outputFile) public DeferredFileOutputStream(final int threshold, final String prefix, final String suffix, final File directory) private DeferredFileOutputStream(final int threshold, final File outputFile, final String prefix, final String suff...
1
import org.apache.beam.runners.dataflow.BlockingDataflowRunner; options.setRunner(BlockingDataflowRunner.class);
0
HiveMetaStoreBridge hiveMetaStoreBridge = new HiveMetaStoreBridge(ApplicationProperties.get(), new HiveConf(), atlasClient);
0
directory = VolumeUtil.switchRootTableVolume(MetadataTableUtil.getRootTabletDir()); Path location = new Path(directory);
0
package org.apache.atlas.authorize.simple; import static org.testng.AssertJUnit.assertEquals; import org.apache.atlas.authorize.AtlasActionTypes; import org.apache.atlas.authorize.AtlasResourceTypes; import org.apache.atlas.authorize.simple.PolicyDef; import org.apache.atlas.authorize.simple.PolicyParser; acce...
0
super("sftp."); return getString(opts, "compression"); return getString(opts, "StrictHostKeyChecking"); return getBoolean(opts, USER_DIR_IS_ROOT); return getInteger(opts, TIMEOUT); return getString(opts, "proxyHost"); return getInteger(opts, "proxyPort", 0);
0
public AppCookieManager getAppCookieManager() { return appCookieManager; }
0
* @since 4.0 * Iterator&lt;Node&gt; iterator = IteratorUtils.nodeListIterator(node); * for(Node childNode : IteratorUtils.asIterable(iterator)) { * @since 4.0
0
class CommonsServiceGroupMonitor implements ServiceGroupMonitor { CommonsServiceGroupMonitor(DynamicHostSet<ServiceInstance> serverSet) {
0
final static Set<String> MAJOR_HEADERS = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); final static Set<String> IGNORE_HEADERS = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); } finally { anewer.setJar(newer); return tree(anewer); } finally { * @param infos return new Element(Type.BUNDLE...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/quartz/src/java/org/apache/commons/jelly/tags/quartz/JobTag.java,v 1.2 2003/01/26 07:01:35 morgand Exp $ * $Revision: 1.2 $ * $Date: 2003/01/26 07:01:35 $ import org.apache.commons.jelly.JellyTagException; import ...
0
import org.apache.hive.service.cli.thrift.TSessionHandle; private ConnectionController hiveConnection; ConnectionController hiveConnection, this.hiveConnection = hiveConnection; OperationHandleController handleController = hiveConnection.executeQuery(getSession(), query); hiveCo...
0
AccumuloInputFormat.setConnectorInfo(job, user, new PasswordToken(pass));
1
package org.apache.commons.dbcp2;
1
throw new IOException("Packet len " + len + " is out of range!");
0