Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
public class LicensePolicy implements ILicensePolicy { private LicenseManager licenseManager; public LicensePolicy( LicenseManager licenseManager ) { this.licenseManager = licenseManager; } public boolean accept( ISigilBundle bundle ) { return true; } public void ...
0
/* ==================================================================== * Copyright (c) 2003-2004 The Apache Software Foundation. All rights * @version $Revision: 1.5 $ $Date: 2004/01/14 21:43:18 $
0
import java.net.MalformedURLException; import java.net.URL; URL reqURL; try { reqURL = new URL(theUri); } catch (MalformedURLException mue) { log.error("Couldn't transform request into valid URL"); return; ...
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
Exception ex1 = new Exception();
0
* Copyright (c) 2002, 2003 The Apache Software Foundation. All rights
0
installArgs.packageURI = getAppsFolderPath() + "/" + configs.get("application.def").getAsString();
0
static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(
1
* @version CVS $Id: EP_Monochrome.java,v 1.3 2003/09/05 07:31:40 cziegeler Exp $
0
Map<Resource.Type,String> mapIds = new HashMap<>();
1
package org.apache.accumulo.cloudtrace.instrument.receivers;
0
* turn it accounts for their affects through modifications to the * turn it accounts for their affects through modifications to the
1
"{\"" + ArtifactResourceProvider.ARTIFACT_DATA_PROPERTY + "\": " + descriptor + "}"); @Override public LogicalRequest call() throws Exception { LogicalRequest logicalRequest = processAndPersistTopologyRequest(request, topology, requestId); return logicalRequest; ...
0
this.mimeTypes = null; this.required = false;
0
result = this._c14n.canonicalizeXPathNodeSet(input.getNodeSet());
0
* Copyright 2002,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
default void setExecutionHints(Map<String,String> hints) { throw new UnsupportedOperationException(); }
0
import org.apache.beam.sdk.extensions.sql.meta.provider.test.TestBoundedTable; TestBoundedTable.of( TestBoundedTable.of(
0
import org.apache.accumulo.fate.zookeeper.IZooReaderWriter; import org.apache.accumulo.fate.zookeeper.ZooUtil.NodeMissingPolicy;
1
public ConnectorImpl(AccumuloClientImpl impl) throws AccumuloSecurityException, AccumuloException {
0
private static final Arg<String> ENABLE_CORS_FOR = Arg.create(null); if (ENABLE_CORS_FOR.get() != null) {
0
import org.apache.beam.model.pipeline.v1.RunnerApi; import org.apache.beam.model.pipeline.v1.RunnerApi.Components;
0
public FileName parseURI(final String uri) throws FileSystemException public FileObject toFileObject(final File file)
1
SelectionList selectionList; if (src.length() > 0) { boolean cache = DomHelper.getAttributeAsBoolean(selectionListElement, "cache", true); if (cache) { selectionListElement = readSelectionList(src); selectionList = Selection...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestHashBag.java,v 1.7 2003/11/16 22:15:09 scolebourne Exp $ import org.apache.commons.collections.bag.AbstractTestBag; * @version $Revision: 1.7 $ $Date: 2003/11/16 22:15:09 $
0
log.error("Ignoring command {} while waiting for {}", cmd, SshConstants.Message.SSH_MSG_KEXINIT); log.debug("Welcome banner: {}", welcome);
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
List<ServiceInfo> services = stackExtensionHelper.getAllApplicableServices(stack); String stackHooksToUse = stackExtensionHelper.resolveHooksFolder(stack);
0
import org.apache.beam.sdk.extensions.sql.impl.ParseException; @Test(expected = ParseException.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
"The update request attempted to update specific instances," + " but some are irrelevant to the update and current job state: "
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
.apply(GroupByKey.create());
0
* try (AccumuloClient client = Accumulo.newClient() * .forInstance(instanceName, zookeepers) * .usingPassword(user, password).build()) * { * // use the client * }
0
.withSvc(Service.class, srv -> srv.add(instance::added).remove(instance::removed)));
0
* This forces the scoping policy to be STRICT.
0
* * When true, generate the manifest by rebuilding the full bundle in memory protected void execute( MavenProject project, Map<String, String> instructions, Properties properties, Jar[] classpath ) return getManifest( project, new LinkedHashMap<String, String>(), new Properties(), classpath ); pub...
0
Text mdrow = new Text(TabletsSection.getRow(MetadataTable.ID, null));
0
checkState( !(recordStart.compareTo(range.getStartKey()) < 0), checkState( !(position != null && recordStart.compareTo(position) < 0), * <p>Always returns false, so that it can be used in an implementation of {@link * BoundedReader#start()} or {@link BoundedReader#advance()} as follows: ...
1
import org.apache.accumulo.core.util.LocalityGroupUtil.LocalityGroupConfigurationError; try { memTable = new InMemoryMap(acuTableConf); } catch (LocalityGroupConfigurationError e) { throw new RuntimeException(e); } try { memTable = new InMemoryMap(acuTableConf); } c...
0
requireNonNull(solr, "No solr query was specified for archiving job!");
0
import org.apache.commons.codec.binary.Base64; return Either.right(RSAKey.createFromData(Base64.decodeBase64(encodedKey))); return Either.right(DSSKey.createFromData(Base64.decodeBase64(encodedKey))); } catch (NegativeArraySizeException e) { // TODO(John Sirois): Patch jaramiko to handle and ...
0
package org.apache.felix.connect.felix.framework.capabilityset;
0
* @version CVS $Id: SourceUtil.java,v 1.9 2003/10/20 08:47:29 cziegeler Exp $ * @deprecated Use the {@link #toSAX(ServiceManager, Source, String, ContentHandler) * method instead. * Generates SAX events from the given source * <b>NOTE</b> : if the implementation can produce lexical even...
0
implements CacheableProcessingComponent, Configurable { throws ProcessingException, SAXException, IOException {
0
package org.apache.atlas.repository; import org.apache.atlas.MetadataException;
1
package org.apache.accumulo.monitor.servlets.trace; import org.apache.accumulo.monitor.servlets.BasicServlet;
1
socket.connect(toEndpoint(targetHost), socketConfig.getConnectTimeout().toMillisIntBound());
0
package org.apache.http.impl.io;
0
* @author <a href="mailto:haul@apache.org">Christian Haul</a> * @version CVS $Id: MapMetaModule.java,v 1.2 2004/02/15 21:30:00 haul Exp $
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; }
0
import org.apache.cocoon.xml.AttributesImpl; fieldAttrs.addCDATAAttribute("id", getFullyQualifiedId());
0
import org.apache.ambari.server.agent.HostInfo; boolean isPersisted(); void persist(); void refresh(); void importHostInfo(HostInfo hostInfo);
0
import org.apache.atlas.typesystem.IStruct; IStruct getTraitDefinition(String guid, String traitName) throws AtlasException;
0
import org.apache.http.entity.ByteArrayEntity; import org.apache.http.util.EncodingUtils; context.setAttribute(HttpExecutionContext.HTTP_REQUEST, request); context.setAttribute(HttpExecutionContext.HTTP_RESPONSE, response); byte[] msg = EncodingUtils.getAsciiBytes(ex.getMessage()); Byte...
0
{/* ignored */}
0
* @version $Id$
0
import java.util.SortedSet; import java.util.TreeSet; SortedSet<String> ecfs = new TreeSet<String>();
0
import org.apache.accumulo.minicluster.ServerType; import org.apache.accumulo.minicluster.impl.ProcessReference; // Run the process in the master which writes replication records from metadata to replication // repeatedly without pause // We want to kill the GC so it doesn't come along and close Status reco...
0
import org.apache.ambari.server.controller.spi.ResourceProvider; /** * Associated resource provider. */ private ResourceProvider resourceProvider; /** * The last visited predicate. */ /** * Constructor. * * @param provider associated resource provider */ public SimplifyingPredicateV...
0
package org.apache.cocoon.woody.formmodel; import org.w3c.dom.Element; import org.apache.cocoon.woody.util.DomHelper; import org.apache.cocoon.woody.Constants; import org.apache.cocoon.woody.datatype.Datatype; /** * Builds {@link OutputDefinition}s. */ public class OutputDefinitionBuilder extends AbstractDatatypeWi...
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.accumulo.core.conf.SiteConfiguration; SiteConfiguration siteConfig = SiteConfiguration.create(); ServerContext context = new ServerContext(siteConfig, opts.iname, opts.keepers, zkTimeOut);
0
public class ByteArrayCoder extends StructuredCoder<byte[]> {
0
package org.apache.cocoon.portal.om; import org.apache.cocoon.portal.PortalException; * Base class for all layout related exceptions.
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...
1
CommonAttributes commonAtts = JXpathBindingBuilderBase.getCommonAttributes(bindingElm); new SetAttributeJXPathBinding(commonAtts, attName, attValue);
0
import org.apache.cocoon.components.ContextHelper; import org.apache.cocoon.environment.Request; import org.springframework.beans.factory.BeanFactoryAware; import org.springframework.beans.factory.config.ConfigurableBeanFactory; implements BeanFactoryAware { protected ConfigurableBeanFactory beanFactory; ...
0
private static final long serialVersionUID = 1L;
0
Map<String, DesiredConfig> desiredConfigMap = new HashMap<>(); userGroupsMap.put("zookeeperUser", new HashSet<>(Arrays.asList("zookeeperGroup"))); Map<String, String> hostAttributes = new HashMap<>(); Set<ServiceRequest> requests = new HashSet<>(); new HashSet<>(); new HashSet<>();
1
* process. Please note that this test does not run on * java-gjc
0
package org.apache.commons.jexl3.internal.introspection;
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
import org.apache.aurora.gen.JobUpdateQuery; public void testStartUpdateFailsTooManyPerInstanceFailures() throws Exception { control.replay(); JobUpdateRequest updateRequest = buildServiceJobUpdateRequest(); updateRequest.getSettings() .setMaxPerInstanceFailures(SchedulerThriftInterface.MAX_UPDAT...
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
* * * * @version $Revision: 1.5 $ private Expression value; private String var; private String scope; /** Creates a new instance of SetLocaleTag */ public SetTimeZoneTag() { } /** * Evaluates this tag after all the tags properties have been initialized. * */ publi...
0
// Always add the default version if not specified. if ((v == null) && (sv == null)) { v = new R4Attribute( Constants.VERSION_ATTRIBUTE, Version.emptyVersion, false); }
0
import org.apache.hc.core5.http.HttpStatus; if (response.getStatusLine().getStatusCode() >= HttpStatus.SC_OK) {
0
* Allows specify the attribute containing an override class name if it is present. * * @return The attribute containing an override class name if it is present * @since 3.0 */ String attributeName() default ""; /**
0
// Need volatile keyword to ensure double-checked locking works as intended private static volatile ZooCache tablePropCache = null; @Override public void invalidateCache() { if (null != tablePropCache) { synchronized (TableConfiguration.class) { if (null != tablePropCache) { tablePr...
0
package org.apache.accumulo.server.thrift; import org.apache.accumulo.server.util.Halt; TimedProcessor timedProcessor = new TimedProcessor(service.getConfiguration(), processor, serverName, threadName); options.processorFactory(new ClientInfoProcessorFactory(clientAddress, processor)); /** * Start the appr...
0
PointsParser p = new PointsParser();
0
public int log(final CommitSession commitSession, final long tabletSeq, final Mutation m, final Durability durability) throws IOException { public void minorCompactionFinished(final CommitSession commitSession, final String fullyQualifiedFileName, final long walogSeq, final Durability durability) public long mino...
0
List<PrivilegeEntity> privilegeEntities = new LinkedList<>(); List<PrincipalEntity> principalEntities = new LinkedList<>(); List<UserEntity> userEntities = new LinkedList<>();
0
return new User(userName, "password", Collections.<GrantedAuthority>emptyList());
0
import org.apache.calcite.sql.type.SqlTypeName; .withArrayField("f_stringArr", SqlTypeName.VARCHAR) .withArrayField("f_arr", SqlTypeName.VARCHAR) .withArrayField("f_stringArr", SqlTypeName.VARCHAR) .withArrayField("f_arrElem", SqlTypeName.VARCHAR) public void testSingleElem...
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
flushBufferAndCallbackAfterHeader(subOutputProcessorChain, getXmlSecEventBuffer()); protected void flushBufferAndCallbackAfterHeader(OutputProcessorChain outputProcessorChain, Deque<XMLSecEvent> xmlSecEventDeque) this.processHeaderEvent(outputProc...
0
import java.util.HashMap; HashMap<Long,QuorumServer> peers = new HashMap<Long,QuorumServer>(count); peers.put(Long.valueOf(i), new QuorumServer(i, new InetSocketAddress("127.0.0.1", baseport+100+i))); QuorumPeer peer = new QuorumPeer(peers, tmpdir[i], tmpdir[i], port[i], 0, i, 2, 2, 2);
0
* @since 3.4
1
package org.apache.hc.core5.http.io; import org.apache.hc.core5.http.protocol.HttpCoreContext; import org.apache.hc.core5.http.protocol.UriPatternMatcher;
1
import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; primitives.add(next.asText());
0
protected void updateCommitTime(long commitTime) {
0
import org.apache.ambari.server.events.HostRemovedEvent; import org.apache.ambari.server.events.publishers.AmbariEventPublisher; /** * Used to publish events relating to cluster CRUD operations. */ @Inject private AmbariEventPublisher eventPublisher; if (!hosts.containsKey(host)) { } else {...
0
* Copyright 2001-2005 The Apache Software Foundation
0
public class LDAPParseException extends Exception { private static final String LINE_SEPARATOR = System.getProperty( "line.separator", "\\r\\n" ); public LDAPParseException( String message, ParseState ps ) { super( message ); public LDAPParseException( String message ) { super( me...
0
package org.apache.bcel; import org.apache.bcel.classfile.JavaClass; import org.apache.bcel.classfile.Method; import org.apache.bcel.generic.InstructionHandle; import org.apache.bcel.generic.InstructionList; import org.apache.bcel.util.InstructionFinder;
0
* @author <a href="mailto:felix-dev@incubator.apache.org">Felix Project Team</a>
0
if ( !handler.getServletInfo().isResource() ) final String servletName = handler.getName(); List<ServletHandler> list = this.servletsByName.get(servletName); if ( list == null ) { list = new ArrayList<ServletHandler>(); list.add(han...
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