Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
public static <InputT> Builders.Output<InputT> of(PCollection<InputT>... pCollections) { public static <InputT> Builders.Output<InputT> of(List<PCollection<InputT>> pCollections) { public final <InputT> Builders.Output<InputT> of(PCollection<InputT>... pCollections) { public abstract <InputT> Builders.Outpu...
0
import org.apache.cocoon.portal.spi.RequestContextProvider; /** The request context provider. */ protected RequestContextProvider requestContextProvider; this.requestContextProvider = (RequestContextProvider)this.manager.lookup(RequestContextProvider.class.getName()); this.manager.release(t...
0
public static final String SESSION_CLOSED = "session is closed"; throw new IllegalStateException(SESSION_CLOSED);
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
/** * 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 java.io.IOException; import java.net.URLConnection; /** * Stream handler required to create URL. */ private static class VFSURLStreamHandler extends URLStreamHandler { /** The Protocol used */ private final String protocol; public VFSURLStreamHandler(FileName file)...
0
import org.apache.sshd.util.test.JUnit4ClassRunnerWithParametersFactory; import org.junit.runners.Parameterized.UseParametersRunnerFactory; @UseParametersRunnerFactory(JUnit4ClassRunnerWithParametersFactory.class)
0
@SuppressWarnings("deprecation")
0
* <code><b> &lt; @bar.com,@foo.com:foobar@foo.com &gt; </b></code>
1
Copyright 2003 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
File emptyFile = new File(getTestDirectory(), "C.xml"); FileUtils.touch(emptyFile); assertFiltering(filter, emptyFile, false); assertFiltering(filter, emptyFile, false);
0
package org.apache.felix.gogo.runtime.lang;
0
import static org.apache.beam.sdk.transforms.display.DisplayDataMatchers.hasKey; import static org.apache.beam.sdk.transforms.display.DisplayDataMatchers.hasLabel; import static org.apache.beam.sdk.transforms.display.DisplayDataMatchers.hasValue; import static org.hamcrest.Matchers.allOf; assertThat(displayData, h...
0
/* * $Id$ * 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...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/test/org/apache/commons/jxpath/ri/compiler/ContextDependencyTest.java,v 1.4 2003/10/09 21:31:43 rdonkin Exp $ * $Revision: 1.4 $ * $Date: 2003/10/09 21:31:43 $ * any, must include the following acknowledgement: * ...
0
package org.apache.felix.upnp.sample.binaryLight.statevariables;
0
* Get the identity repository factory.
0
* incrementing its capacity on the capacity channel if it is unable to * accept more data. Once the data consumer has handled accumulated data * or allocated more intermediate storage it can update its capacity * information on the capacity channel. void consume(ByteBuffer src) throws IOExceptio...
0
scanner.fetchColumnFamily(TabletsSection.SuspendLocationColumn.SUSPEND_COLUMN.getColumnFamily()); SuspendingTServer suspend = null; } else if (TabletsSection.SuspendLocationColumn.SUSPEND_COLUMN.equals(cf, cq)) { suspend = SuspendingTServer.fromValue(entry.getValue()); return new TabletLocatio...
1
* * SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) authentication *
0
import java.net.HttpURLConnection;
0
import org.apache.aurora.gen.ScheduleStatus; import static org.easymock.EasyMock.expectLastCall; new ScheduledTask() .setStatus(ScheduleStatus.PENDING) .setAssignedTask( new AssignedTask() .setInstanceId(5) .setTask(new TaskConfig() ...
0
for (Type arg_type : arg_types) { if (Type.VOID == arg_type) {
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 int uuidStart = 0; Builder setEnv(String env) { jobKey.setEnvironment(env); return this; } Builder setJob(String job) { jobKey.setName(job); return this; } Builder setUuidStart(int uuidStart) { this.uuidStart = uuidStart; String taskId = ...
0
private static final long serialVersionUID = 8814014909076826576L; public WritePendingException() { super(); } public WritePendingException(String message, Throwable cause) { super(message, cause); } public WritePendingException(String s) { super(s); } public W...
1
if (class_name.contains("$$BCEL$$")) {
0
@Override @SuppressWarnings("unchecked") public <T> T getUnsafeStoreAccess() { return (T) sessionFactory.getConfiguration().getEnvironment().getDataSource(); }
0
import org.apache.ambari.server.security.authorization.RoleAuthorization; import java.util.Set; private Set<RoleAuthorization> permissions; * @param permissions A set of permissions to use when verifiying authorization to execute this action TargetHostType targetType, Short defaultTi...
0
import org.apache.accumulo.core.client.AccumuloClient; protected Iterator<Size> getSizeIterator(AccumuloClient conn, String tablename, final Text start, final Text end) throws MergeException { protected void merge(AccumuloClient conn, String table, List<Size> sizes, int numToMerge)
0
import org.apache.zookeeper.server.ServerMetrics; if(self != null) { request.logLatency(ServerMetrics.getMetrics().PROPOSAL_ACK_CREATION_LATENCY); } else { }
0
* is private Map<String, ?> props = Collections.<String, Object>emptyMap(); public Map<String, ?> getProperties() { public void init(Map<String, ?> props) { FactoryManagerUtils.getIntProperty(props, FactoryManager.MAX_PACKET_SIZE, AbstractChannel.DEFAULT_PACKET_SIZE), props...
1
// URI Characters that are possible in local filenames, but must be escaped // URIs can contain :, /, ?, #, @ }
0
Copyright 2001,2003 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...
0
Defines types of threading behavior enforced at runtime. public enum ThreadingBehavior { /** * Instances of classes with the given contract are expected to be fully immutable * and thread-safe. */ IMMUTABLE, /** * Instances of classes with the given contract are expected to be immutab...
0
message.addHeader("Content-Type", "unknown"); message.addHeader("Transfer-Encoding", "identity, chunked"); message.addHeader("Content-Length", "plain wrong"); message.addHeader("Content-Type", "unknown"); message.addHeader("Transfer-Encoding", "identity"); message.addHead...
0
import org.apache.accumulo.minicluster.impl.MiniAccumuloConfigImpl; public void configure(MiniAccumuloConfigImpl cfg) {
0
* * * /** * Tell whether the method underlying this 'property' is alive by * checking to see if represents a successful name resolution * * @return boolean Whether 'property' is alive. */ boolean isAlive();
0
import org.apache.beam.sdk.values.PBegin; public PCollection<Row> expand(PInput input) { return sqlTable.buildIOReader((PBegin) input);
0
* @version $Revision$ $Date$
0
private int constantvalue_index; * @param constantvalue_index the index info the constant pool of this constant value */ public final void setConstantValueIndex( int constantvalue_index ) { this.constantvalue_index = constantvalue_index; } /**
0
private String serviceType; public String getServiceType() { return serviceType; } public void setServiceType(String serviceType) { this.serviceType = serviceType; } public String getVersion() { sb.append("\nService type:"); sb.append(serviceType);
0
import org.apache.beam.runners.dataflow.internal.IsmFormat; import org.apache.beam.runners.dataflow.internal.IsmFormat.IsmRecord; import org.apache.beam.runners.dataflow.internal.IsmFormat.IsmRecordCoder; import org.apache.beam.runners.dataflow.internal.IsmFormat.MetadataKeyCoder;
0
import java.io.FileNotFoundException; } catch (FileNotFoundException ex) { // ignored
0
import org.apache.http.annotation.ThreadSafe; @ThreadSafe
0
import org.apache.jute.BinaryInputArchive; import org.apache.jute.Record; static public void byteBuffer2Record(ByteBuffer bb, Record record) throws IOException { BinaryInputArchive ia; ia = BinaryInputArchive.getArchive(new ByteBufferInputStream(bb)); record.deserialize(ia, "req...
0
/* $Id: DigesterLoadingException.java,v 1.9 2004/05/10 06:30:08 skitching Exp $ *
0
import org.apache.beam.sdk.options.Default; import org.apache.beam.sdk.testing.BigqueryMatcher; @Default.String("ff54f6f42b2afeb146206c1e8e915deaee0362b4") String getChecksum(); void setChecksum(String value); String query = String.format("SELECT word, SUM(count) FROM [%s:%s.%s] GROUP BY word", ...
0
import org.apache.batik.dom.util.DoublyIndexedTable; * The attribute initializer. protected final static AttributeInitializer attributeInitializer; attributeInitializer = new AttributeInitializer(1); attributeInitializer.addAttribute(null, null, ...
0
.setSchema(schema, SerializableFunctions.identity(), SerializableFunctions.identity());
0
StateManager stateManager) { Optional<IJobConfiguration> config = storeProvider.getJobStore().fetchJob(key);
0
import static org.junit.Assert.assertEquals; import org.junit.After; import org.junit.Before; import org.junit.Test; public class RulesBaseTestCase { @Before @After @Test @Test @Test @Test @Test
0
import com.twitter.aurora.scheduler.state.LockManager; bindMock(LockManager.class);
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
if (!useAsITests) {
0
protected final ServiceInfo serviceInfo; protected final Context context; protected final ServiceManager serviceManager; protected Parameters parameters; protected final Logger logger; protected final LoggerManager loggerManager; protected final RoleManager roleManager; Logg...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/URLConverter.java,v 1.2 2003/10/05 13:34:53 rdonkin Exp $ * $Revision: 1.2 $ * $Date: 2003/10/05 13:34:53 $ * * Copyright (c) 2001-2003 The Apache Software Foundation. ...
0
tempBuffer = new ByteArrayBuffer(len + Long.SIZE, false);
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 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 in writing, software * distribu...
0
// Get target. Even if there's virtual host, we may need the target to set the port. URI requestURI = wrapper.getURI(); if (requestURI.isAbsolute()) { target = new HttpHost( requestURI.getHost(), requestURI.getPort(), requestUR...
0
return new SimpleOldDoFnRunner<>(
0
import java.util.HashMap; Map<String, String> attributes = new HashMap<>(); attributes.put("name", dbName); AtlasEntity dbEntity = entitiesClientV2.getEntityByAttribute(QuickStartV2.DATABASE_TYPE, attributes).getEntity(); Map<String, String> attributes = new HashMap<>(); attribut...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/comparators/TestBooleanComparator.java,v 1.6 2003/10/06 21:02:50 scolebourne Exp $ * @version $Revision: 1.6 $ $Date: 2003/10/06 21:02:50 $ return "3";
0
CompositeGraphicsNode gn = buildCompositeGraphicsNode(ctx, e, null); CompositeGraphicsNode gn) { buildCompositeGraphicsNode(ctx, e, (CompositeGraphicsNode)node); buildCompositeGraphicsNode(ctx, e, (CompositeGraphicsNode)node);
0
// Only increment the authentication failure count if the authentication filter declares to // do so. if(filter.shouldIncrementFailureCount()) { // Increment the user's consecutive authentication failure count. consecutiveFailures = users.incrementConsecutiveAuthenticationFailures(user...
0
int i=isVisibleElement(currentNode); if (i==-1) { sibling= currentNode.getNextSibling(); break; } currentNodeIsVisible=(i==1); } int isVisibleElement(Node currentNode) { if (nodeFilter!=null) { Iterator it=nodeFilter.iterator(); while (it.hasNext()) { int i=((Node...
0
import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; /** Test some basic features of flow. */ private static <X> Set<X> toSet(Collection<X> c) { return toSet(c.stream()); } private static <X> Set<X> toSet(Stream<X> s) { return s.collect(Collectors.toSet()); } ...
0
assertEquals(64, B64.B64T_ARRAY.length);
0
import org.apache.http.nio.reactor.IOReactorStatus; private volatile IOReactorStatus status; this.status = IOReactorStatus.INACTIVE; public IOReactorStatus getStatus() { this.status = IOReactorStatus.ACTIVE; if (this.status == IOReactorStatus.SHUT_DOWN) { if (this...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/rss/Attic/Channel.java,v 1.7 2003/08/16 18:18:26 craigmcc Exp $ * $Revision: 1.7 $ * $Date: 2003/08/16 18:18:26 $ * @version $Revision: 1.7 $ $Date: 2003/08/16 18:18:26 $ * Add a...
0
import org.apache.commons.vfs2.provider.AbstractFileName; public class ZipFileProvider extends AbstractLayeredFileProvider implements FileProvider final AbstractFileName rootName =
0
public CookieOrigin(final String host, final int port, final String path, final boolean secure) {
0
import org.apache.ambari.server.api.resources.ResourceInstance; ResourceInstance resourceDef = createStrictMock(ResourceInstance.class); ResourceInstance resourceDef = createStrictMock(ResourceInstance.class); ResourceInstance resourceDef = createStrictMock(ResourceInstance.class); ResourceInstance reso...
1
* 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
super(11); // CHECKSTYLE IGNORE MagicNumber return charValue * (9 - leftPos); // CHECKSTYLE IGNORE MagicNumber if (charValue == 10) { // CHECKSTYLE IGNORE MagicNumber return 10; // CHECKSTYLE IGNORE MagicNumber
0
* @version CVS $Id: EPStyleRegion.java,v 1.3 2003/09/05 07:31:40 cziegeler Exp $
0
StringBuffer buf = new StringBuffer(32); buf.append(access).append(signature).append(" ").append(name); buf.append(" = ").append(value);
0
value = Integer.valueOf(i); value = Integer.valueOf(s); value = Integer.valueOf(c); value = Integer.valueOf(b); value = Integer.valueOf(1);
0
Arrays.asList(Long.MIN_VALUE, 0xff1234567890abcdL, 0xffff1234567890abL, 0xffffff567890abcdL, 0xffffffff7890abcdL, 0xffffffffff90abcdL, 0xffffffffffffabcdL, 0xffffffffffffffcdL, -1L, 0L, 0x01L, 0x1234L, 0x123456L, 0x12345678L, 0x1234567890L, 0x1234567890abL, 0x1234567890abcdL,...
0
* @version $Id$
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
try (Scanner scanner = conn.createScanner(tableName, Authorizations.EMPTY)) { final IteratorSetting cfg = new IteratorSetting(100, SlowIterator.class); // Wait long enough to be sure we can catch it, but not indefinitely. SlowIterator.setSeekSleepTime(cfg, 60 * 1000); scanner.addScanIterato...
0
/* * Copyright 2004-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
import org.apache.hadoop.fs.CreateFlag; EnumSet<CreateFlag> set = EnumSet.of(CreateFlag.SYNC_BLOCK, CreateFlag.CREATE); log.debug("creating " + logPath + " with CreateFlag set: " + set); return fs.create(logPath, FsPermission.getDefault(), set, bufferSize, replication, blockSize, null);
0
* Copyright (c) 2004 The Apache Software Foundation. All rights
0
package org.apache.accumulo.test.continuous;
0
ContainerId containerId = ContainerId.newContainerId(appAttemptId, 1); ContainerId containerId = ContainerId.newContainerId(appAttemptId, 1); ContainerId containerId1 = ContainerId.newContainerId(appAttemptId, 2);
0
/** * This method retrieves all services registrations for the specified * bundle and invokes <tt>ServiceRegistration.unregister()</tt> on each * one. * @param bundle the bundle whose services should be unregistered. **/ // Unregister each service. regs[i].unregister();
0
* For Testing only. This is to be able to create Configuration object File passFile = new File(configsMap.get(SRVR_KSTR_DIR_KEY) + File.separator
1
* any, must include the following acknowledgement: * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknowledgements normally appear. * @version $Revision: 1.4 $ $Date: 2003/10/13 07:03:50 $
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.transforms.OldDoFn; private final OldDoFn<IN, OUTDF> doFn; public FlinkAbstractParDoWrapper(PipelineOptions options, WindowingStrategy<?, ?> windowingStrategy, OldDoFn<IN, OUTDF> doFn) { private class DoFnProcessContext extends OldDoFn<IN, OUTDF>.ProcessContext { private final OldDo...
0
/* ==================================================================== * Copyright (c) 1999-2004 The Apache Software Foundation. All rights * @version $Revision: 1.11 $ $Date: 2004/01/14 21:43:14 $
0
import static com.google.common.base.Preconditions.checkArgument; import com.google.common.base.Joiner; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.TreeSet;
0
protected String accumuloHome, clientAccumuloConfDir, serverAccumuloConfDir; this(user, System.getenv("ACCUMULO_HOME"), System.getenv("ACCUMULO_CONF_DIR"), System.getenv("ACCUMULO_CONF_DIR")); public StandaloneClusterControl(String user, String accumuloHome, String clientAccumuloConfDir, String serverAccumuloCo...
0
AccumuloClient c = context.getClient();
0
package org.apache.commons.ognl.enhance; import org.apache.commons.ognl.Node;
0
private Builder(String dbName) { return "jdbc:h2:mem:" + dbName + ";DB_CLOSE_DELAY=-1"; return new Builder(dbName);
0
private Blocks blocks; ServiceManager topServiceManager = new InterBlockServiceManager(this.blockWiring, this.blocks); public void setBlocks(Blocks blocks) { this.blocks = blocks; Block block = this.blocks.getBlock(superId); block = this.blocks.getBlock(blockId); B...
0