Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.beam.sdk.metrics.MetricKey;
0
/* * Copyright 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 ...
0
import static java.util.Objects.requireNonNull; requireNonNull(name); requireNonNull(credentialProviders);
0
AdminResource adminResource = new AdminResource(serviceState, null, null, null, null, null, null); AdminResource adminResource = new AdminResource(serviceState, null, null, null, null, null, null);
0
return currentTransform.getOutputs().entrySet().stream()
0
import java.util.concurrent.ScheduledExecutorService; public static final String MAX_CONCURRENT_SESSIONS = "max-concurrent-sessions"; public static final String SERVER_IDENTIFICATION = "server-identification"; /** * Key used to retrieve the value in the configuration properties map * of the maximu...
0
return !m_nextEntries.isEmpty(); if (m_nextEntries.isEmpty()) while ((m_moduleIndex < m_enumerations.size()) && m_nextEntries.isEmpty()) && m_nextEntries.isEmpty()) if (!m_dirEntries.contains(entryName) && (m_recurse || (dirSlashIdx < 0...
0
* ExtensionFileComparator.EXTENSION_COMPARATOR.sort(list); * ExtensionFileComparator.EXTENSION_INSENSITIVE_REVERSE.sort(array); public class ExtensionFileComparator extends AbstractFileComparator implements Serializable {
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
/* * 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 u...
0
* $ cwd /qsys.lib/rpgunit.lib/rpgunitc1.file * $ dir * $ cwd /qsys.lib/rpgunit.lib * $ dir rpgunit.file * $ cwd /home/raddatz * $ dir test* * &lt;echo/&gt; * &lt;echo&gt;Listing members of a file:&lt;/echo&gt; * &gt; * &lt;include name="run*.mbr" /&gt; * &lt;/fileset...
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
long lastStart = lastStartFor(timestamp); /** * Return the earliest window that contains the end of the main-input window. */ @Override public IntervalWindow getSideInputWindow(final BoundedWindow window) { if (window instanceof GlobalWindow) { throw new IllegalArgumentException( "At...
0
mappers.add(context.deserialize(m.getValue(), MapDateDescriptorImpl.class)); mappers.add(context.deserialize(m.getValue(), MapFieldCopyDescriptorImpl.class)); mappers.add(context.deserialize(m.getValue(), MapFieldNameDescriptorImpl.class)); mappers.add(context.deserialize(m.getVa...
0
throw new ConversionException("No value specified"); throw new ConversionException(value.toString(), e); throw new ConversionException(value.toString(), e);
0
package org.apache.commons.jexl2;
0
setPosition(getPosition() + offset); // Additional offset caused by preceding SWITCHs, GOTOs, etc.
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
import org.apache.accumulo.server.security.AuditedSecurityOperation; AuditedSecurityOperation.getInstance().grantTablePermission(SecurityConstants.getSystemCredentials(), cloneInfo.user, cloneInfo.tableId, permission); AuditedSecurityOperation.getInstance().deleteTable(SecurityConstants.getSystemCredentials...
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...
0
import org.apache.sshd.common.session.SessionContext; public Iterable<KeyPair> loadKeys(SessionContext session) { return loadKeys(session, null); protected Iterable<KeyPair> loadKeys(SessionContext session, Predicate<? super KeyPair> filter) { return ClientIdentityProvider.lazyKeysLoader(provide...
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
entry = getClusterControl().execWithStdout(QueryUtil.class, new String[] {"-i", instance, "-z", keepers, "-p", passwd, "-u", user, "-t", indexTable, "--auths", auths, "--search", "--path", "accumulo-site.xml"}); goodExec(TeraSortIngest.class, "--count", (1000 * 1000) + "", "-nk", "10", "-xk", "10", "-nv...
0
Element element, String baseURI, StorageResolver storage RSAKeyValue rsaKeyValue = new RSAKeyValue(rsaKeyElement, baseURI); Element element, String baseURI, StorageResolver storage Element element, String baseURI, StorageResolver storage
0
* Core HTTP protocol interceptors.
0
import org.apache.hc.client5.http.impl.async.MinimalHttpAsyncClient; final MinimalHttpAsyncClient client = HttpAsyncClients.createMinimal(H2Config.DEFAULT, ioReactorConfig); final SimpleHttpRequest request = SimpleHttpRequest.get(target, requestUri);
0
package org.apache.accumulo.core.clientImpl.mapreduce.lib;
0
import org.apache.http.annotation.Immutable;
0
import org.apache.xml.security.stax.impl.securityToken.OutboundSecurityToken; final OutboundSecurityToken wrappingSecurityToken = wrappingSecurityTokenProvider.getSecurityToken(); signatureAlgorithm.engineInitSign(wrappingSecurityToken.getSecretKey(getSecurityProperties().getSignatureAlgorithm())); ...
0
* An {@code AtomicCoder} is a {@link Coder} that has no component * {@link Coder}s or other state. * * <p> All instances of its class are equal.
0
* String dayString = DateTimeFormat.forPattern("yyyy_MM_dd").parseDateTime( * ((DaysWindow) window).getStartDate()); * return "my-project:output.output_table_" + dayString;
0
* only so that you may easily implement your own NNTP client if * can also throw a * the reply received from the server deviates enough from the protocol * @exception IOException If an I/O error occurs while * A convenience method to send the AUTHINFO USER command to the server, * return a ...
0
System.out.println("[client->proxy] " + this.httpExchange.getId() + " suspend client input"); System.out.println("[client->proxy] " + this.httpExchange.getId() + " request origin output"); if (this.httpExchange.getOriginIOControl() != null) { ...
0
expect(vDAO.merge(capture(captureViewEntity))).andReturn(null); expect(vDAO.merge(capture(captureViewEntity))).andThrow(new IllegalArgumentException("Expected exception.")); expect(viewInstanceDAO.merge(viewInstanceEntity)).andReturn(null); expect(viewInstanceDAO.merge(viewInstanceEntity)).andReturn(nul...
0
import org.apache.commons.bcel6.Const; Const.ACC_PUBLIC | Const.ACC_SUPER, new String[] { }); MethodGen method = new MethodGen(Const.ACC_PUBLIC, Type.VOID, Type.NO_ARGS, new String[] { }, il.append(_factory.createInvoke("java.lang.Object", "<init>", Type.VOID, Type.NO_ARGS, Const.INVOKESPECIAL)); ...
0
package org.apache.http.impl.client;
0
import org.apache.http.conn.SocketClientConnection; private SocketClientConnection conn; private HttpConnectionFactory<SocketClientConnection> connFactory; conn = Mockito.mock(SocketClientConnection.class);
0
import java.util.List; protected static final List<SerializableFunction<Instant, Instant>> IDENTITY = private final List<SerializableFunction<Instant, Instant>> timestampMappers; List<SerializableFunction<Instant, Instant>> timestampMappers) { protected abstract T newWith(List<SerializableFunction<Instant,...
0
package org.apache.felix.karaf.client; System.out.println("Apache Felix Karaf client");
0
public static synchronized JavaSparkContext getSparkContext(String master, String appName) { sparkContext = createSparkContext(master, appName); return createSparkContext(master, appName); private static JavaSparkContext createSparkContext(String master, String appName) { conf.setAppName(appName);
0
* Constructs a new <code>LiveAttributeException</code> with the specified
0
package org.apache.ambari.infra.solr.commands; import org.apache.ambari.infra.solr.AmbariSolrCloudClient;
0
/* * Copyright (c) OSGi Alliance (2012, 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
import aQute.bnd.version.*;
0
import org.apache.hadoop.fs.FsShell; FsShell fsShell = new FsShell(fs.getConf()); assertEquals("Failed to chmod " + rootPath, 0, fsShell.run(new String[] {"-chmod", "-R", "777", rootPath.toString()}));
0
c1.update(5L); c2.update(4L); c1.update(8L); c1.update(2L); c2.update(4L); c1.update(3L); c1.update(8L);
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 applicabl...
0
import com.google.cloud.dataflow.sdk.util.state.StateInternals; // It is the responsibility of the user of GroupAlsoByWindowsViaWindowSet to only // provide a WindowingInternals instance with the appropriate key type for StateInternals. @SuppressWarnings("unchecked") StateInternals<K> stateInternals = ...
0
import org.apache.commons.httpclient.params.HttpMethodParams;
0
return new TestSuite(Jira61TestCase.class);
0
private final InstructionFactory _factory; private final ConstantPoolGen _cp; private final ClassGen _cg;
0
import org.apache.hc.core5.http.MessageHeaders; * {@link MessageHeaders} or a subclass public interface HttpMessageParser<T extends MessageHeaders> { * Generates an instance of {@link MessageHeaders} from the given input stream..
0
files.add(new String(KeyExtent.tableOfMetadataRow(key.getRow())) + slash(key.getColumnQualifier().toString())); private static String slash(String path) { if (path.startsWith("/")) return path; return "/" + path; }
0
// Loop through each fragment verifying it does no conflict, // adding its package and bundle dependencies if they do not // conflict and removing the fragment if it does conflict. Map ipFragment = new HashMap(); Map rbFragment = new HashMap(); Map fra...
0
import org.apache.cocoon.portal.om.PortalUser;
0
package aQute.bnd.annotation; import java.lang.annotation.*; @Retention(RetentionPolicy.CLASS) @Target({ElementType.PACKAGE}) public @interface Version { String value(); }
0
import org.apache.felix.http.base.internal.handler.ResourceServletHandler; import org.apache.felix.http.base.internal.handler.WhiteboardServletHandler; try ServletHandler handler = new WhiteboardServletHandler(contextHandler.getContextInfo(), contextHandler.getServletContext(servletI...
0
private static final int MAX_PUBLISH_BATCH_BYTE_SIZE_DEFAULT = 10 * 1024 * 1024;
0
import org.apache.accumulo.core.client.impl.Credentials;
1
* Assigns {@code Server} response header value.
0
public synchronized Terminal getTerminal() throws Exception { public void init() throws Exception { if ("jline.UnsupportedTerminal".equals(System.getProperty("jline.terminal"))) { term = new UnsupportedTerminal(); return; } if (term != null) { ...
0
private final String relPath; final SftpFileSystem fileSystem) throws FileSystemException relPath = UriParser.decode(fileSystem.getRootName().getRelativeName(name)); attrs = channel.stat(relPath); channel.mkdir(relPath); channel.setStat(relPat...
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
ds.getConnection("foo", "bar"); // old password
0
Copyright 2002-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
/* * 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.hc.core5.annotation.Contract; import org.apache.hc.core5.annotation.ThreadingBehavior; @Contract(threading = ThreadingBehavior.STATELESS)
0
package org.apache.commons.configuration; * the classloader from. The properties file will be attempted to be loaded * first from the classes package directory and then from the class path in * @version $Id: ClassPropertiesConfiguration.java,v 1.7 2004/06/23 11:15:45 ebourg Exp $ public class ClassPropertiesConfigu...
0
import org.objectweb.asm.ClassAdapter; public void addMethods(final String propertyName, final String className, final boolean createBind, final boolean createUnbind) // remove existing implementation von previous builds ...
0
if ( dep.isReferencedProject() && !inPdeMode )
0
package org.apache.accumulo.test.randomwalk; import org.apache.accumulo.test.randomwalk.Framework; import org.apache.accumulo.test.randomwalk.Module; import org.apache.accumulo.test.randomwalk.State; import org.apache.accumulo.test.randomwalk.Test; import org.apache.accumulo.test.randomwalk.unit.CreateTable; assert...
0
* from the pool, hold it for {@code holdTime} ms, and then return it to the pool. If {@code loopOnce} is false, * threads will continue this process indefinitely. If {@code expectError} is true, exactly 1/2 of the * threads are expected to either throw exceptions or fail to complete. If {@code expectEr...
0
import org.apache.accumulo.core.crypto.CryptoServiceFactory;
0
* <li>{@link org.apache.http.params.CoreProtocolPNames#STRICT_TRANSFER_ENCODING}</li> * <li>{@link org.apache.http.params.CoreConnectionPNames#MAX_HEADER_COUNT}</li> HttpResponse response = super.receiveResponseHeader(); if (log.isDebugEnabled()) { log.debug("Receiving response: " + response.g...
0
return new InvokerTransformer<I, O>(methodName, paramTypes, args);
0
this.chain.dispose( this.manager ); this.chain = null; this.chain.configure(this.manager, this.configuration.getChild("event-aspects"));
0
import com.twitter.common.quantity.Amount; import com.twitter.common.quantity.Data; import org.apache.aurora.scheduler.configuration.Resources; import org.apache.aurora.scheduler.mesos.MesosTaskFactory.ExecutorSettings; import static org.apache.aurora.scheduler.ResourceSlot.EXECUTOR_OVERHEAD_CPUS; import static org.apa...
0
* @param formatter the line formatter If {@code null}
0
private final Set<LdapGroupDto> groupsToBecomeLdap = new HashSet<>(); private final Set<LdapGroupDto> groupsToBeCreated = new HashSet<>(); private final Set<LdapGroupDto> groupsToBeRemoved = new HashSet<>(); private final Set<LdapGroupDto> groupsProcessedInternal = new HashSet<>(); private final Set<LdapUserD...
0
Set<Integer> instances = ImmutableSet.copyOf( Sets.union(expandInstanceIds(instructions.getInitialState()), desiredInstances));
0
@Deprecated
0
public final class DefaultPartitioning<T> implements Partitioning<T> {
0
expectedException.expectMessage(JobKeys.canonicalString(key));
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
logicalTask.setOriginalStartTime(physicalTask.getOriginalStartTime()); entity.setOriginalStartTime(physicalTask.getOriginalStartTime());
1
DirectTestOptions testOptions = options.as(DirectTestOptions.class); if (testOptions.isRunnerDeterminedSharding()) {
0
@Deprecated
0
List<ClientConfigFileDefinition> clientConfigs = new ArrayList<>(); List<ClientConfigFileDefinition> clientConfigs2 = new ArrayList<>(); List<DependencyInfo> dependencies = new ArrayList<>(); List<DependencyInfo> dependencies2 = new ArrayList<>(); List<CustomCommandDefinition> commands = new ArrayLi...
1
import org.apache.sshd.util.test.NoIoTestCase; import org.junit.experimental.categories.Category; @Category({ NoIoTestCase.class })
0
/** * Get the transforms that perform processing within this {@link ExecutableStage}. */
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
public SimpleGeneratorHostKeyProvider() { } public SimpleGeneratorHostKeyProvider(String path) { super(path); } public SimpleGeneratorHostKeyProvider(String path, String algorithm) { super(path, algorithm); } public SimpleGeneratorHostKeyProvider(String path, String algori...
0
public static final Transformer NULL_INSTANCE = new ConstantTransformer<>(null); return new ConstantTransformer<>(constantToReturn);
1
protected static final String HOST_RECOVERY_REPORT_PROPERTY_ID = PropertyHelper.getPropertyId("Hosts", "recovery_report"); protected static final String HOST_RECOVERY_SUMMARY_PROPERTY_ID = PropertyHelper.getPropertyId("Hosts", "recovery_summary"); setResourceProperty(resource, HOST_RECOVERY_REPOR...
0
log.warn("Unhandled: {}", event);
0
import java.util.Map; public Map<Long, String> getRequestContext(List<Long> requestIds) { return db.getRequestContext(requestIds); } public String getRequestContext(long requestId) { return db.getRequestContext(requestId); }
1
import org.w3c.dom.Attr; import org.w3c.dom.Document; import org.w3c.dom.Element;
1
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Sets;
0
return PropertyListConfiguration.parseDate(s);
0
* Generate a directory listing for the current directory using the MSLD command. * * @return the array of file entries * @throws IOException * @since 3.0 */ public FTPFile[] mlistDir() throws IOException { return mlistDir(null); } /** FTPListParseEngine eng...
0