Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
/* * Copyright 2002-2006 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
new UsernamePasswordCredentials("test", "test".toCharArray()));
0
import java.io.IOException; Collection exportedPackages; if ( isOsgi( osgiJar ) ) { /* if it is already an OSGi jar copy it as is */ getLog().info( "Using existing OSGi bundle for " + project.getGroupId() + ":" + project...
0
Collections.sort(sortedInput, (o1, o2) -> Iterables.getOnlyElement(o1.getWindows()).maxTimestamp() .compareTo(Iterables.getOnlyElement(o2.getWindows()).maxTimestamp()));
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables;
0
package org.apache.atlas.typesystem.types; import org.apache.atlas.MetadataException; import org.apache.atlas.typesystem.persistence.DownCastStructInstance;
1
Iterator<KeyExtent> newTabletIter(Text startRow);
0
package org.apache.accumulo.trace.instrument.impl;
0
if (Modifier.isPublic(clazz.getModifiers())) { return (method); } String name = method.getName(); Class[] parameterTypes = method.getParameterTypes(); while (clazz != null) { name, parameterTypes); if (Modifier.isPublic(cla...
0
* A {@link GroupBalancer} that groups tablets using a configurable regex. To use this balancer * configure the following settings for your table then configure this balancer for your table. * <li>Set {@code table.custom.balancer.group.regex.pattern} to a regular expression. This regular * expression must have one g...
0
import org.apache.atlas.model.notification.HookNotification; import org.apache.atlas.v1.model.instance.Referenceable; import org.apache.atlas.v1.model.notification.HookNotificationV1.EntityDeleteRequest; import org.apache.atlas.v1.model.notification.HookNotificationV1.EntityPartialUpdateRequest; import org.apache.atlas...
1
import org.apache.felix.utils.version.VersionRange; this.version = VersionRange.ANY_VERSION; return VersionRange.parseVersionRange(unquote(value.substring(begin))); return VersionRange.parseVersionRange(unquote(value.substring(begin, end)));
0
import org.apache.cocoon.environment.impl.AbstractSession; * @version CVS $Id$ extends AbstractSession {
0
import org.apache.accumulo.core.client.IteratorSetting; /** * @deprecated since 1.4 {@link #attachIterator(String, IteratorSetting)} */
0
* <p>This provides {@link #writeToShard}, which takes a shard number for * <p>The channel is considered open if all downstream channels are open, and * <p>This does not change the current output shard. * <p>Same as calling {@code writeToShard(ALL_SHARDS, buf)}.
0
import java.util.Hashtable; Hashtable<String, String> headers = new Hashtable<>(); Hashtable<String, String> headers = new Hashtable<>();
0
protected static final String ALERT_DEF_UUID = "AlertDefinition/uuid"; setResourceProperty(resource, ALERT_DEF_UUID, entity.getHash(), requestedIds);
0
private static final SimpleDateFormat formatsTemplate[] = { new SimpleDateFormat(HttpConstants.HTTP_DATE_FORMAT, Locale.US), new SimpleDateFormat("EEEEEE, dd-MMM-yy HH:mm:ss zzz", Locale.US), new SimpleDateFormat("EEE MMMM d HH:mm:ss yyyy", Locale.US) }; for (int x =...
0
import java.util.List; @Inject DaoUtils daoUtils; public List<RoleSuccessCriteriaEntity> findAll() { return daoUtils.selectAll(entityManagerProvider.get(), RoleSuccessCriteriaEntity.class); } @Transactional
0
return factory; return getDefaultBeanFactory();
0
config.setMaxWaitMillis(0);
0
/** * Helper class to determine the environment variable * for VMS. */ /** * Find the list of environment variables for this process. * * @return a amp containing the environment variables * @throws IOException the operation failed */ protected synchronized Map createProcEnvironm...
0
closure.session().threadIO().setStreams(in, out, err); closure.session().threadIO().close();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbcp/src/java/org/apache/commons/dbcp/DelegatingStatement.java,v 1.2 2002/03/19 06:05:34 craigmcc Exp $ * $Revision: 1.2 $ * $Date: 2002/03/19 06:05:34 $ // ------------------- JDBC 3.0 ---------------------------------------...
0
import org.apache.felix.framework.resolver.Wire; import org.osgi.framework.BundleContext; List<Wire> hostWires = module.getWires(); for (int i = 0; (hostWires != null) && (i < hostWires.size()); i++) Bundle b = hostWires.get(i).getExporter().getBundle(); ...
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
program, getLogger(), context, manager, new DefaultConfiguration("", "GeneratorSelector"));
0
AutoCloseable closable = stageContext) { // DoFnOperator generates another "bundle" for the final watermark -- see BEAM-5816 for more context super.dispose(); }
0
* @return the configuration properties
0
final Factory<C> collectionFactory) { protected <C extends Collection<V>> MultiValueMap(final Map<K, ? super C> map, final Factory<C> collectionFactory) {
0
// outline.subtract(new Area(clipPath));
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 m...
0
mavenBundle().groupId("org.osgi").artifactId("org.osgi.compendium").version(Base.OSGI_SPEC_VERSION),
0
new WeakHashMap<>(); private final Map<Connection, XAResource> xaResources = new WeakHashMap<>();
1
import org.apache.accumulo.core.clientImpl.Namespace; import org.apache.accumulo.core.clientImpl.Table; import org.apache.accumulo.core.dataImpl.KeyExtent;
0
import org.apache.beam.vendor.protobuf.v3.com.google.protobuf.Struct;
0
import java.util.function.Function; import java.util.stream.Collectors; return af.keySet().stream().map(TabletIdImpl.TID_2_KE_OLD).collect(Collectors.toList());
0
public class TestDefaultIOReactors extends TestCase { public TestDefaultIOReactors(String testName) { String[] testCaseName = { TestDefaultIOReactors.class.getName() }; return new TestSuite(TestDefaultIOReactors.class);
0
import java.io.IOException; public EmbeddedServer(int port, String path) throws IOException { public static EmbeddedServer newServer(int port, String path, boolean secure) throws IOException { protected Connector getConnector(int port) throws IOException {
0
private int minCount; private int maxCount; public void setMinCount(int minCount) { this.minCount = minCount; } public void setMaxCount(int maxCount) { this.maxCount = maxCount; }
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.xml.security.utils.JavaUtils; * Registers implementing class of the SignatureAlgorithm with algorithmURI * @param algorithmURI algorithmURI URI representation of <code>SignatureAlgorithm</code>. * @throws XMLSignatureException * @throws SecurityException if a security manager is in...
0
if (!pa.resolveBundles(bundles))
0
private VisibilityFilter(SortedKeyValueIterator<Key,Value> iterator, Authorizations authorizations, byte[] defaultVisibility) { return new VisibilityFilter(getSource().deepCopy(env), authorizations, defaultVisibility.toArray()); public static SortedKeyValueIterator<Key,Value> wrap(SortedKeyValueIt...
0
* This commands provide SCP support on both server and client side. * Permissions and preservation of access / modification times on files * are not supported.
0
List<ServiceTestInvocation> listInvocations = new ArrayList<>(); Map<String, Object> mapRootProps = new LinkedHashMap<>(); Map<String, Object> mapCategoryProps = new LinkedHashMap<>(); HashMap<String, Object> mapRootProps = new HashMap<>(); HashMap<String, Object> mapCategoryProps = new HashMap<>();...
0
HostComponent, Configuration
0
import com.google.common.collect.ImmutableList; import com.google.inject.Module; import org.apache.aurora.auth.UnsecureAuthModule; import org.apache.aurora.scheduler.app.Modules; import static java.util.Objects.requireNonNull; @CmdLine(name = "auth_module", help = "A Guice module to provide auth bindings. NOTE...
0
protected static final HashMap _pools = new HashMap(); throw (SQLException) new SQLException("Could not parse configuration file").initCause(e); throw (SQLException) new SQLException("Could not load configuration file").initCause(e); throw (SQLException) new S...
0
if (!ConsumerSpEL.hasHeaders()) { if (!ConsumerSpEL.hasHeaders()) { !ConsumerSpEL.hasHeaders() ? null : value.getHeaders(),
0
public void testResolveReq() throws Exception { RepositoryAdminImpl repoAdmin = createRepositoryAdmin(); repoAdmin.addRepository(getClass().getResource("/repo_for_resolvertest.xml")); Resolver resolver = repoAdmin.resolver(); resolver.add(repoAdmin.requirement("package", "(pack...
0
private static boolean limitFileSizeTo250Gb = false; @Deprecated
0
import org.apache.beam.runners.flink.translation.types.KvKeySelector; new CoderTypeInformation<>( inputDataSet.groupBy(new KvKeySelector<InputT, K>(inputCoder.getKeyCoder())); groupCombine.groupBy(new KvKeySelector<List<InputT>, K>(inputCoder.getKeyCoder())); context.getTypeInf...
0
Disposable, Initializable { treeBuilder.getContainer(),
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.beam.sdk.transforms.Reshuffle;
0
private transient org.apache.bcel.util.Repository repository =
0
file.toString(), newfile.toString());
0
/** Test {@link BoundedEventSource}. */ return new GeneratorConfig(NexmarkConfiguration.DEFAULT, System.currentTimeMillis(), 0, n, 0); SourceTestUtils.assertSourcesEqualReferenceSource(source, source.split(10, options), options);
1
* @author <a href="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
0
import java.net.InetSocketAddress; import org.apache.http.conn.scheme.LayeredSchemeSocketFactory; import org.apache.http.conn.scheme.SchemeSocketFactory; * a {@link SchemeRegistry} to look up {@link SchemeSocketFactory} objects. Scheme schm = schemeRegistry.getScheme(target.getSchemeName()); SchemeSock...
0
import org.apache.xml.security.utils.XMLUtils; LOG.debug("Calculated Digest: {}", XMLUtils.encodeToString(calculatedDigest)); LOG.debug("Stored Digest: {}", XMLUtils.encodeToString(referenceType.getDigestValue()));
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
/* * $Header: /cvshome/build/ee.foundation/src/java/lang/reflect/Constructor.java,v 1.6 2006/03/14 01:20:30 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 n...
0
} catch (final IllegalArgumentException e) { } catch (final IllegalArgumentException e) { final HttpVersion ver1 = new HttpVersion(1, 1); final HttpVersion ver2 = new HttpVersion(1, 1); final HttpVersion orig = HttpVersion.HTTP_1_1; final HttpVersion clone = (HttpVersion)...
0
public class WatchTheWatchCountIT extends ConfigurableMacBase {
0
@Override @Override @Override @Override
0
/** * Abstract blocking connection pool. * * @param <T> route * @param <C> connection object * @param <E> pool entry * * @since 4.2 */
0
import org.apache.accumulo.core.replication.StatusUtil; Status expectedStatus = StatusUtil.openWithUnknownLength(); if (!expectedStatus.equals(Status.parseFrom(entry.getValue().get()))) { Assert.assertEquals("Expected to find a replication entry that is open with infinite length", expectedStatus, Status...
0
protected Iterator<? extends Entry<K, V>> nextIterator(int count) { public V setValue(V value) { private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException {
0
* Copyright 2016 Seznam.cz, a.s.
0
* href="https://commons.apache.org/configuration/team-list.html">Commons
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ExpressionContext.java,v 1.4 2002/04/24 04:05:41 dmitri Exp $ * $Revision: 1.4 $ * $Date: 2002/04/24 04:05:41 $ import java.util.List;
0
ContextManager cm = new ContextManager(vfs, ClassLoader::getSystemClassLoader); cm.setContextConfig(context -> { if (context.equals("CX1")) { return new ContextConfig(uri1, true); } else if (context.equals("CX2")) { return new ContextConfig(uri2, true); return null; Context...
0
Copyright 2002-2003 The Apache Software Foundation new LocalizableSupport(BUNDLE_CLASSNAME, throw new IllegalArgumentException("unexpected ctx:" + ctx ); return LexicalUnits.NAME; return LexicalUnits.NAME; return LexicalUnits.NAME; return type = LexicalUnits.N...
0
values.put(CSSConstants.CSS_AUTO_VALUE, values.put(CSSConstants.CSS_ALPHABETIC_VALUE, values.put(CSSConstants.CSS_CENTRAL_VALUE, values.put(CSSConstants.CSS_HANGING_VALUE, values.put(CSSConstants.CSS_IDEOGRAPHIC_VALUE, values.put(CSSConstants.CSS_MATHEMATICAL_VALUE, ...
1
* http://www.apache.org/licenses/LICENSE-2.0
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Lists;
0
import cz.seznam.euphoria.core.annotation.audience.Audience; @Audience(Audience.Type.CLIENT)
0
* Execute the given class against the cluster with the provided arguments and waits for completion. Returns the exit code of the process. */ int exec(Class<?> clz, String[] args) throws IOException; /** * Issue an orderly shutdown of the cluster */ void adminStopAll() throws IOException; /** voi...
0
@Override @Override
0
package org.apache.commons.digester3.plugins; import org.apache.commons.digester3.Digester; import org.apache.commons.digester3.plugins.PluginCreateRule; import org.apache.commons.digester3.plugins.PluginDeclarationRule; import org.apache.commons.digester3.plugins.PluginRules;
1
/** * The iPOJO Extender logger. */ private Logger m_logger;
0
int selected = selector.selectVersion(getClientSession(), current, new ArrayList<>(available));
0
/* * $Header: /cvshome/build/ee.foundation/src/javax/microedition/io/StreamConnectionNotifier.java,v 1.6 2006/03/14 01:20:29 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 "Licens...
0
this(new ConsoleReader(), new PrintWriter(new OutputStreamWriter(System.out, System.getProperty("jline.WindowsTerminal.output.encoding", System.getProperty("file.encoding"))))); * * *
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.Cache; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.CacheBuilder; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common....
0
* @version $Revision$
0
suite.addTest(TestGrowthList.suite());
0
/* * Copyright 1999-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...
0
static class RepeaterJXPathSorter implements RepeaterSorter { static class NormalOrderJXPathSorter implements RepeaterSorter {
0
public class BinaryFormatter extends DefaultFormatter { checkState(true); return formatEntry(getScannerIterator().next(), isDoTimestamps()); // it would be great if we were able to combine code with DefaultFormatter.formatEntry, but that currently does not respect the showLength option. Key key = entry.ge...
0
RootGraphicsNode root = ctx.getGVTFactory().createRootGraphicsNode(); root.getChildren().add(treeRoot); return root;
0
* For example<br> * IMAPMail imaps://username:password@imap.mail.yahoo.com/<br> * or<br> * IMAPMail imaps://username:password@imap.googlemail.com/
0
* {@link SerializableFunction}).
0
String cachedKeytabFilePath = (!cachedKeytabFile.exists())
0
@java.lang.Deprecated
0
import org.apache.accumulo.harness.AccumuloClusterHarness; public class BatchWriterFlushIT extends AccumuloClusterHarness {
0
* * The service manager for the processor that we are building. * namespace = config.getNamespace(); return new LocationImpl(desc.toString(), rawLoc.getURI(), rawLoc.getLineNumber(), rawLo...
0
/** * TODO Add javadoc * * @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a> * @version $Rev$, $Date$ */
0