Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.codehaus.plexus.util.PropertyUtils; for ( Iterator i = currentProject.getFilters().iterator(); i.hasNext(); ) { File filterFile = new File( ( String ) i.next() ); if ( filterFile.isFile() ) { properties.putAll( PropertyUtils.loadProperties(...
0
public NameFileFilter(List<String> names) { public NameFileFilter(List<String> names, IOCase caseSensitivity) { this.names = names.toArray(new String[names.size()]);
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
@Override public boolean equals(Object other) { return other != null && other.getClass().equals(this.getClass()); } @Override public int hashCode() { return getClass().hashCode(); } @Override public boolean equals(Object other) { return other != null && other.getClas...
0
* @version $Id$
0
/* * Copyright (c) 2000 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed...
1
Convertor build(Element configElement) throws Exception;
0
/** Factory for creating files for spilling. */ * Invoked to request a unique path to a new spill file. * * @return the path to a new spill file File newSpillFile(); /** The default spill file factory to create new files in the current working directory. */ private DefaultSpillFileFactory() {}
0
package org.apache.beam.sdk.coders; import org.apache.beam.sdk.values.TypeDescriptor;
0
import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.avalon.framework.context.Context; import org.apache.avalon.framework.service.ServiceException; import org.apache.cocoon.core.Core; import org.apache.cocoon.core.cont...
0
* * @deprecated no longer used @Deprecated
0
package org.apache.beam.sdk.transforms.join;
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
throws WebApplicationException, AmbariException, InvalidStateTransitionException { RegistrationResponse response = hh.handleRegistration(message); LOG.debug("Sending registration response " + response);
0
import java.math.BigInteger; addValue(new BigInteger(value)); addValue(new BigDecimal(value));
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
private static final Map<String,TableConfiguration> tableInstances = new HashMap<String,TableConfiguration>(1);
0
private static <T> Write<T> write() { /** Returns A {@link PTransform} that writes to a Google Cloud Pub/Sub stream. */ public static Write<PubsubMessage> writePubsubMessages() { return PubsubIO.<PubsubMessage>write().withFormatFn(new IdentityMessageFn()); }
0
public ServiceOsSpecific() { } public ServiceOsSpecific(String osFamily) { this.osFamily = osFamily; } public void addPackages(List<Package> packages) { this.packages.addAll(packages); }
0
Set<IScheduledTask> res = Storage.Util.fetchTasks(storage, Query.taskScoped(task.getAncestorId()));
0
* @version $Revision: 1.18 $ $Date: 2004/07/09 21:02:52 $ * Returns the name of the root file of this file system. */ FileName getRootName(); /**
0
boolean success = false; // TabletServer hosting this table must see the constraint update before insert will fail properly for (int i = 0; i < 9 && !success; i++) { try { exec("insert a b c d -l foo", false, "does not have authorization", true, new ErrorMessageCallback() { public St...
0
model.put("redirect", null);
0
import java.util.Iterator; import org.apache.cocoon.forms.event.ProcessingPhaseListener; import org.apache.cocoon.forms.event.ValueChangedListener; Iterator iter = buildEventListeners(formElement, "on-processing-phase", ProcessingPhaseListener.class).iterator(); while (iter.hasNext()) { ...
0
scanner.setRange(range);
0
context = new ServerContext(new SiteConfiguration()); context = new ServerContext(new SiteConfiguration(), getClientInfo());
0
import org.apache.ambari.server.state.stack.OsFamily; binder.bind(OsFamily.class).toInstance(createNiceMock(OsFamily.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 ...
0
import org.apache.zookeeper.server.persistence.FileTxnSnapLog.DatadirException; } catch (DatadirException e) { LOG.error("Unable to access datadir, exiting abnormally", e); System.err.println("Unable to access datadir, exiting abnormally"); System.exit(3);
0
if (this.cachedResponse != null && this.toCacheSourceValidities != null) {
0
import org.apache.ambari.server.orm.RequiresSession; @RequiresSession @RequiresSession @RequiresSession
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
* 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.ambari.server.state.alert.SourceType; private SourceType sourceType; /** * Gets the type of alert. * * @return the sourceType */ @JsonProperty("source_type") public SourceType getSourceType() { return sourceType; } /** * Sets the type of alert. * * @param sourceTy...
0
exportSink = new ZipSink(httpServletResponse.getOutputStream()); httpServletResponse.addHeader("Content-Encoding","gzip"); httpServletResponse.setHeader("Transfer-Encoding", "chunked"); httpServletResponse.getOutputStream().flush();
0
super(doc); super(element, BaseURI); public String getBaseLocalName() { return EncryptionConstants._TAG_DATAREFERENCE; }
0
return (Attribute) clone();
0
new AtomicReference<>(RejectAllPublickeyAuthenticator.INSTANCE);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/ValidatorResult.java,v 1.12 2004/04/08 23:05:39 dgraham Exp $ * $Revision: 1.12 $ * $Date: 2004/04/08 23:05:39 $
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...
1
package org.apache.commons.beanutils2.locale.converters; * <p>Standard {@link org.apache.commons.beanutils2.locale.LocaleConverter} * {@link org.apache.commons.beanutils2.ConversionException} * Create a {@link org.apache.commons.beanutils2.locale.LocaleConverter} * that will throw a {@link org.apache.common...
1
* One element of an HTTP {@link Header header} value consisting of * * * Returns header element value. * /** * /** * * * *
0
* see https://issues.apache.org/jira/browse/ZOOKEEPER-1789
0
import com.google.common.collect.ImmutableMap; import org.apache.aurora.gen.ResourceAggregate; import org.apache.aurora.scheduler.storage.entities.IResourceAggregate; public void testWritesUnderTransaction() { final IResourceAggregate quota = IResourceAggregate .build(new ResourceAggregate().setDiskMb...
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
* * @param rs ResultSet that supplies the bean data * @param type Class from which to create the bean instance * @throws SQLException - if a database access error occurs * @return the newly created bean * * @param rs ResultSet that supplies the bean data * @param type Class from ...
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 org.apache.excalibur.xml.dom.DOMParser; import org.apache.cocoon.util.AbstractLogEnabled; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Text; implements Parameterizable, Deli, Serviceable, Disposable, Initializable,...
0
package org.apache.beam.sdk.io.gcp.pubsub; import org.apache.beam.sdk.options.ApplicationNameOptions; import org.apache.beam.sdk.options.Default; import org.apache.beam.sdk.options.Description; import org.apache.beam.sdk.options.GcpOptions; import org.apache.beam.sdk.options.Hidden; import org.apache.beam.sdk.options....
0
private final Log log = LogFactory.getLog(getClass());
0
import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.security.Key; import java.security.KeyStore; import java.security.PrivateKey; import java.security.Provider; import java.security.Security; import java.security.cert.Certificate; import java.security.cert....
0
verboseOption = new Option("v", "verbose", false, "display command prompt as commands are executed"); }
0
new HashMap<>() : new HashMap<>() :
0
requestStageContainer = handle(cluster, kerberosDescriptor, defaultRealm, kdcType, kerberosEnvProperties, requestStageContainer, enableKerberosHandler); requestStageContainer = handle(cluster, kerberosDescriptor, defaultRealm, kdcType, kerberosEnvProperties, requestStageContainer, disableKerberosHandler...
0
import org.apache.http.HttpConnection; import org.apache.http.protocol.HttpCoreContext; * Embedded HTTP/1.1 file server based on a classic (blocking) I/O model. HttpCoreContext coreContext = HttpCoreContext.adapt(context); HttpConnection conn = coreContext.getConnection(HttpConnection.c...
0
import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; public void testEntrySetValue() throws Exception { properties.put(KEY1, VALUE1); ByteArrayOutputStream baos = new ByteArrayOutputStream(); properties.save(baos); properties = new Properties(); prope...
0
* * * * * * * * *
0
import org.apache.cocoon.portal.om.CopletInstance;
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Sets;
0
import static org.apache.beam.runners.core.construction.BeamUrns.getUrn; import org.apache.beam.model.pipeline.v1.RunnerApi.StandardPTransforms; getUrn(StandardPTransforms.Primitives.PAR_DO); getUrn(StandardPTransforms.Primitives.FLATTEN); getUrn(StandardPTransforms.Primitives.GROUP_BY_KEY); public ...
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
entry.close();
0
localClient = new AtlasClient(atlasUrls, new String[]{"admin", "admin"}); localClient = new AtlasClient(atlasUrls);
0
* The translation mode of the Beam Pipeline. /** Uses the batch mode of Flink. */ /** Uses the streaming mode of Flink. */ }
0
import java.util.List;
0
import org.apache.flink.configuration.Configuration; for (WindowedValue<InputT> explodedValue : value.explodeWindows()) { @Override public void open(Configuration parameters) throws Exception { doFn.setup(); } @Override public void close() throws Exception { doFn.teardown(); }
0
import java.io.InputStream; import org.apache.batik.ext.awt.image.GraphicsUtil;
0
import com.google.inject.Inject; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql....
0
* Copyright (c) 2002 The Apache Software Foundation. All rights
0
/* * Copyright 2000-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 ...
0
private static <E> Iterator<E> createTypesafeIterator(final Iterator<? extends E> iterator) {
0
* This class provides an implementation of the {@link * org.w3c.dom.svg.SVGMatrix} interface.
0
* @since Commons Collections 3.2 * @since Commons Collections 3.2
0
* Copyright 2001-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 applic...
0
c.tableOperations().addSplits(tableName, new TreeSet<>(Arrays.asList(new Text("efg"))));
0
* @throws ConversionException if conversion cannot be performed
0
protected final Queue<BasicPoolEntry> freeConnections; protected Queue<BasicPoolEntry> createFreeConnQueue() { return new LinkedList<BasicPoolEntry>(); freeConnections.add(entry); BasicPoolEntry entry = freeConnections.remove();
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ArrayListMultimap; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Multimap; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Multimaps;
0
* http://www.apache.org/licenses/LICENSE-2.0
0
Set<String> requestProperties = new HashSet<>(); List<AlertCurrentEntity> currents = new ArrayList<>(total);
1
new JettyServerModule(false));
0
import org.apache.accumulo.core.client.Instance; private Instance instance; instance = new org.apache.accumulo.core.client.mock.MockInstance(name.getMethodName());
0
* @version $Id: NewDefinitionBuilder.java,v 1.2 2004/04/12 14:05:09 tim Exp $
0
import java.io.StringWriter; import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.Log; import org.apache.commons.logging.impl.Log4JLogger; import org.apache.log4j.WriterAppender; import org.apache.log4j.Logger; import org.apache.log4j.Level; import org.apache.log4j.SimpleLayout; private s...
0
null, null, createDefaultHostParams(cluster)); private TreeMap<String, String> createDefaultHostParams(Cluster cluster) { StackId stackId = cluster.getDesiredStackVersion(); TreeMap<String, String> hostLevelParams = new TreeMap<String, String>(); hostLevelParams.put(JDK_LOCATION, getJdkResour...
0
import com.google.inject.persist.UnitOfWork; private UnitOfWork unitOfWork; unitOfWork = injector.getInstance(UnitOfWork.class); clusters, db, new HostsMap((String) null), null, unitOfWork); clusters, db, new HostsMap((String) null), null, unitOfWork); ActionManager manager = new ActionManager...
0
@Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof MethodCacheEntry ) ) { return false; } MethodCacheEntry that = (MethodCacheEntry) o; if ( !targetClass.equals( that....
0
/* * $Header: /cvshome/build/ee.foundation/src/java/lang/IllegalArgumentException.java,v 1.6 2006/03/14 01:20:24 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 ...
0
* @return Validator Action name. * @param name Validator Action name. * @return Class name of the validator Action. * @param classname Class name of the validator Action. * @return The method name. * @param method The method name. * @return Method's parameters. * @return The vali...
1
protected final static Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays.asList(new Capability[] public Collection<Capability> getCapabilities()
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
/** * 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
import org.apache.hc.core5.http.config.H1Config; H1Config.custom().setMaxEmptyLineCount(3).build()); H1Config.custom().setMaxEmptyLineCount(3).build());
1
if ( component instanceof AvalonPoolable ) { ((AvalonPoolable)component).putBackIntoAvalonPool(); }
0
// explicitly use C14N 1.1 when generating signature Boolean c14n11 = (Boolean) context.getProperty("org.apache.xml.security.useC14N11"); String c14nalg = null; if (context instanceof XMLSignContext && c14n11 != null && c14n11.booleanValue() == true) { c...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/list/CursorableLinkedList.java,v 1.3 2004/01/08 22:37:31 scolebourne Exp $ * The <code>Cursor</code> class is provided partly for backwards compatibility * @version $Revision: 1....
0
import org.apache.beam.sdk.PipelineRunner;
0
* Defines {@link org.apache.beam.sdk.transforms.PTransform}s for transforming * <p>A {@link org.apache.beam.sdk.transforms.PTransform} is an operation that takes an * {@code InputT} (some subtype of {@link org.apache.beam.sdk.values.PInput}) * {@code OutputT} (some subtype of {@link org.apache.beam.sdk.values.POutp...
0
rexBuilder.makeExactLiteral(BigDecimal.ZERO))))); rexBuilder.makeBigintLiteral(BigDecimal.ONE), rexBuilder.makeBigintLiteral(BigDecimal.ONE) BigDecimal.TEN, rexBuilder.makeExactLiteral(BigDecimal.ONE), BigDecimal.TEN,
0
this(file, contentType, file != null ? file.getName() : null);
0