Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @version $Id: FTPFileList.java,v 1.3 2002/05/03 14:52:29 brekke Exp $ * @return vector containing all the raw input lines returned from the FTP * server * create an iterator over this list using the parser with which this list * was initally created * create an iterator over this list usin...
0
private static final Map<Integer,Value> resultsByWorker = new ConcurrentHashMap<>(); Set<Long> scanIds = new HashSet<>(); SortedSet<Text> splits = new TreeSet<>();
0
import static org.junit.jupiter.api.Assertions.assertEquals; @org.junit.jupiter.api.Test
0
package org.apache.commons.net;
0
log.debug("Received SSH_FXP_INIT (version={})", id); // see https://filezilla-project.org/specs/draft-ietf-secsh-filexfer-02.txt - section 4 - Protocol Initialization if (length < 5) { // we don't care about extensions throw new IllegalArgumentExceptio...
0
count = Integer.valueOf(0);
0
zipFile.getInputStream(zipFile.getEntry("appConfig-default.json")), zipFile.getInputStream(zipFile.getEntry("resources-default.json")),
0
import org.apache.accumulo.core.util.shell.commands.PingCommand; Command[] debuggingCommands = {new ClasspathCommand(), new DebugCommand(), new ListScansCommand(), new ListCompactionsCommand(), new TraceCommand(), new PingCommand()};
0
* Closes the given filesystem. * <p> * If you use VFS as singleton it is VERY dangerous to call this method. *
0
public static <T> Read.Bounded<T> readFromSource(
0
* @param attrName attribute name. * @param attrValue attribute value. AtlasSearchResult searchUsingBasicQuery(String query, String type, String classification, String attrName, String attrValue, int limit, int offset) throws AtlasBaseException;
0
import org.junit.Rule; import org.junit.rules.ExpectedException; @Rule public ExpectedException thrown = ExpectedException.none(); @Test thrown.expect(UnrecoverableKeyException.class); @Test thrown.expect(SSLHandshakeException.class); @Test thrown.expect(IOException.cla...
0
import org.apache.accumulo.core.client.Durability; String durability = null; case DEFAULT: log.warn("unexpected durability " + logWork.durability, new Throwable()); durability = logWork.durability.toString(); durability = logWork.durability.toString(); ...
1
* Implementation of {@link CredentialsProvider} backed by standard * JRE {@link Authenticator}.
0
String[] tableNames = getUniqueNames(2);
0
import org.apache.ambari.logfeeder.input.cache.LRUCache; import org.apache.ambari.logfeeder.util.DateUtil; private OutputLineFilter outputLineFilter = new OutputLineFilter(); if (FilterLogData.INSTANCE.isAllowed(jsonObj, inputMarker) && !outputLineFilter.apply(jsonObj, inputMarker.input)) {
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
/* * 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
assertEquals("Must have ten sessions. Failure indicates a synchronization" + " block within the sweep mechanism", 10, sessionsFound);
0
@Override
0
* <b>DOM</b>: Implements {@link SVGTextPositioningElement#getX()}. * <b>DOM</b>: Implements {@link SVGTextPositioningElement#getY()}. * <b>DOM</b>: Implements {@link SVGTextPositioningElement#getDx()}. * <b>DOM</b>: Implements {@link SVGTextPositioningElement#getDy()}. * <b>DOM</b>: Implements...
0
/** Interface of Samza translator for BEAM {@link PTransform}. */ void translate(T transform, TransformHierarchy.Node node, TranslationContext ctx);
1
final Object[][] rows = new Object[][] { { null } final SqlNullCheckedResultSet ncrs = new SqlNullCheckedResultSet(rs);
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
* The constructor for a FTPFileEntryParserImpl object.
0
StackInfo stack = ambariMetaInfo.getStack(stackId.getStackName(),
0
import org.apache.accumulo.core.security.TableNamespacePermission; public boolean hasTableNamespacePermission(final String principal, final String tableNamespace, final TableNamespacePermission perm) throws AccumuloException, AccumuloSecurityException { ArgumentChecker.notNull(principal, tableNamespace, perm); ...
0
* <p> * </p>
0
/** {@inheritDoc} */
0
* Default : true boolean architecture() default true; * default: true
0
import net.jcip.annotations.NotThreadSafe; @NotThreadSafe // RequestWrapper is @NotThreadSafe protected final RequestWrapper request; // @NotThreadSafe protected final HttpRoute route; // @Immutable
0
package org.apache.aurora.scheduler.async; import org.apache.aurora.scheduler.async.TaskGroups.GroupKey;
0
this.listener = definition.getProcessingPhaseListener(); this.phase = ProcessingPhase.PROCESSING_INITIALIZE;
0
import org.apache.http.params.SimpleParamStack; req.setParams(new SimpleParamStack(req.getParams(), params)); rsp.setParams(new SimpleParamStack(rsp.getParams(), params));
0
public FileSKVIterator openReader(FileRef ref) throws IOException {
0
factory = new ConfigurationFactory(); File nonExistingFile = new File("conf/nonexisting.xml"); factory.setConfigurationURL(nonExistingFile.toURL()); try { factory.getConfiguration(); fail("Could load non existing file!"); } catch(C...
0
import org.apache.http.HttpHost; String hostname; if (remoteAddress instanceof HttpInetSocketAddress) { hostname = ((HttpInetSocketAddress) remoteAddress).getHost().getHostName(); } else { hostname = remoteAddress.getHostName(); } sslsock = (SSLSocke...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
0
import static org.junit.Assert.fail; // Test that we can't write to a closed stream. try { consumer.accept( valueInGlobalWindow( new byte[BeamFnDataBufferingOutboundObserver.DEFAULT_BUFFER_LIMIT_BYTES - 50])); fail("Writing after close should be prohibited."); } catch (I...
0
if (contentproducer == null) {
0
if (closeConn) { } if (closeConn) { }
0
Buffer modes = new ByteArrayBuffer(GenericUtils.size(ptyModes) * (1 + (Integer.SIZE / Byte.SIZE)) + Long.SIZE, false);
0
if (request != null) { String method = request.getRequestLine().getMethod(); if (HEAD_METHOD.equalsIgnoreCase(method)) { return false; }
0
public static <K, V> OrderedBidiMap<K, V> unmodifiableOrderedBidiMap( final OrderedBidiMap<? extends K, ? extends V> map) { @SuppressWarnings("unchecked") // safe to upcast final OrderedBidiMap<K, V> tmpMap = (OrderedBidiMap<K, V>) map; return tmpMap; @SuppressWar...
0
public TabletLocations lookupTablet(TabletLocation src, Text row, Text stopRow, TabletLocator parent, TCredentials credentials) throws AccumuloSecurityException { ...
0
org.apache.commons.logging.LogFactory.getLog(JCEMapper.class);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/util/ValueUtils.java,v 1.8 2002/10/12 20:57:44 dmitri Exp $ * $Revision: 1.8 $ * $Date: 2002/10/12 20:57:44 $ * @version $Revision: 1.8 $ $Date: 2002/10/12 20:57:44 $ Object colle...
0
import static org.apache.beam.sdk.extensions.sql.jdbc.BeamSqlLineTestingUtils.buildArgs; import static org.apache.beam.sdk.extensions.sql.jdbc.BeamSqlLineTestingUtils.toLines;
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
m_isValid = true; m_isValid = false;
0
* @version CVS $Id: WidgetReplacingPipe.java,v 1.19 2003/12/23 08:46:17 mpo Exp $ protected WoodyPipelineConfig pipeContext; public void init(Widget newContextWidget, WoodyPipelineConfig newPipeContext) {
0
return new IntAttributeStore(i); return new LongAttributeStore(i); return new FloatAttributeStore(i); return new DoubleAttributeStore(i); return new BigIntStore(i); return new BigDecimalStore(i); ...
0
import java.util.TimeZone; public static ThreadLocal<DateFormat> dateFormat = new ThreadLocal() { @Override public DateFormat initialValue() { DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); return d...
0
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; private static final Log LOG = LogFactory.getLog(ClientParamsStack.class); if (LOG.isDebugEnabled()) { LOG.debug("'" + name + "': " + result); }
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
super(org.apache.commons.bcel6.Const.IFLE, target);
0
* * has 0700 access and the file 0600. <B>Note:</B> for <I>Windows</I> it * does not check these permissions public DefaultAuthorizedKeysAuthenticator(Path path, boolean strict, LinkOption... options) { public DefaultAuthorizedKeysAuthenticator(String user, Path path, bool...
1
import org.apache.beam.sdk.values.WindowingStrategy;
0
import static org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables.getOnlyElement;
0
Copyright 2000-2003,2005 The Apache Software Foundation import org.apache.batik.dom.events.EventSupport; /** * Creates an EventSupport object for a given node. */ public EventSupport createEventSupport(AbstractNode n) { return new EventSupport(n); }
1
public static <E> TransformedBuffer<E> transformingBuffer(final Buffer<E> buffer, final Transformer<? super E, ? extends E> transformer) { public static <E> TransformedBuffer<E> transformedBuffer(final Buffer<E> buffer, ...
0
public void accept( final Visitor v ) {
0
FileSKVIterator reader = FileOperations.getInstance().openReader(path.toString(), true, ns, ns.getConf(), null, conf);
1
import org.apache.atlas.RequestContextV1; Map<String, List<AtlasClassification>> addedPropagations = RequestContextV1.get().getAddedPropagations(); Map<String, List<AtlasClassification>> removedPropagations = RequestContextV1.get().getRemovedPropagations(); if (addedPropagations.containsKey(e...
0
import java.util.Collections; import java.util.Set; import javax.management.JMException; import javax.security.auth.login.AppConfigurationEntry; import org.apache.zookeeper.Login; return cnxns.size(); // Connection set is relied on heavily by four letter commands // Construct a ConcurrentHashSet using ...
0
import org.apache.accumulo.core.security.thrift.TCredentials; public TabletLocation locateTablet(Text row, boolean skipRow, boolean retry, TCredentials credentials) throws AccumuloException, AccumuloSecurityException, TableNotFoundException { public void binMutations(List<Mutation> mutations, Map<String,TabletS...
0
@Override public void visit(State state, Properties props) throws Exception { String indexTableName = (String) state.get("indexTableName"); Collection<Text> splits = state.getConnector().tableOperations().getSplits(indexTableName); SortedSet<Text> splitSet = new TreeSet<Text>(splits); log.debug("...
1
public void testUnknownHost() throws Exception { session.close();
0
System.err.println("Expected to find HTML info for "+ asciiTld); while (line.matches("^\\s*$")) { // extra blank lines introduced line = br.readLine(); } // System.out.println("Ignored: " + typ + " " +...
0
if (value instanceof PCollectionView) { views.add((PCollectionView<?>) value); } if (!producers.containsKey(value)) { producers.put(value, appliedTransform); }
0
List<Referenceable> partKeys = getColumns(hiveTable.getPartitionKeys());; tableRef.set("partitionKeys", partKeys);
0
WebContinuation kont = continuationsHolder.get(id); WebContinuation wk = continuationsHolder.get(idsIter.next());
0
import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.fail;
0
* * @deprecated since 2.0. This class maintained for backwards compatibility please do not remove. * New users should use org.apache.accumulo.hadoop.mapred.AccumuloOutputFormat @Deprecated
0
Mutation m = new Mutation(new Text(ReplicationSection.getRowPrefix() + file));
0
* * @param mode The default running mode. * @return The current running mode. * Currently this method does not check anything. All modes (apart from null) * are valid. * @param mode Check if the mode is a valid mode. if ( mode == null ) { throw new IllegalArgumentExcept...
0
this.log.debug("Garbage in response: " + this.lineBuf.toString());
0
import org.apache.felix.service.command.CommandSession; import org.apache.felix.service.command.Function;
0
Provider<ConfigHelper> m_configHelperProvider; ServiceConfigDAO m_serviceConfigDAO;
0
// Next look for custom property providers Iterator i = s.getPropertyProviders().iterator(); while ( i.hasNext() ) { final String className = (String)i.next(); try { PropertyProvider provider = (PropertyProvider)ClassUtils.newInstance(className); ...
0
import java.text.MessageFormat; * Returns <code>true</code> if logging for the given level is enabled. */ public boolean isLogEnabled( int level ) { return m_logLevel >= level; } /** * Method to actually emit the log message. If the LogService is available, * the message wi...
0
public static final String HS2_PROXY_USER = "hive.server2.proxy.user";
0
import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.ResolutionScope; @Mojo( name = "ant", requiresDependencyResolution = ResolutionScope.TEST )
0
import org.apache.felix.ipojo.runtime.core.services.Job; props.put("packageStaticInner", new PackageStaticNested().doSomething()); static class PackageStaticNested implements Job { private Map map = new HashMap(); public Map doSomething() { map.put("static", new Boolean(true));...
0
import org.apache.beam.sdk.state.BagState; import org.apache.beam.sdk.state.CombiningState; import org.apache.beam.sdk.state.MapState; import org.apache.beam.sdk.state.ReadableState; import org.apache.beam.sdk.state.SetState; import org.apache.beam.sdk.state.State; import org.apache.beam.sdk.state.StateContext; import ...
0
super(operands, SqlTypeName.DOUBLE);
0
glyphPositions = new Point2D.Float [numGlyphs+1]; glyphOutlines = new Shape [numGlyphs]; glyphVisualBounds = new Shape [numGlyphs]; glyphLogicalBounds = new Shape [numGlyphs]; glyphVisible = new boolean [numGlyphs]; g...
0
return true; }
0
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import static org.mockito.Matchers.eq; RemotePeerBean remotePeerBean = new RemotePeerBean(null, peer); @Test @SuppressWarnings("unchecked...
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
* 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
final String clusterPath = "/api/v1/clusters/Test"; expect(clusterStreamProvider.readFrom(eq( clusterPath + "?fields=services/ServiceInfo,hosts,Clusters"), expect(clusterStreamProvider.readFrom(eq(clusterPath + "/configurations?(type=test-site&tag=TAG)"), RemoteAmbariCluster cluster = new RemoteAmbariCl...
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
Pipeline p = FlinkTestPipeline.createForBatch();
0
meta = new File(m_project.getBasedir() + File.separator + "metadata.xml");
0
/** An abstract class that contains common configuration options for creating resources. */ /** Returns a {@link GcsCreateOptions.Builder}. */ /** A builder for {@link GcsCreateOptions}. */
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
/** * 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
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
0
private static final DateTime DATE_MINUS_2_SEC = DATE.minusSeconds(2);
0