Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import java.util.Map; import java.util.Set; * Obtain the properties of the query. * These are the properties that make up the select portion of the query for which * values are to be retrieved. * * @return the query properties */ public Map<String, Set<String>> getProperties(); /** public Pred...
0
/* * Created on 08-oct-2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package org.apache.cocoon.ojb.samples; import javax.jdo.PersistenceManager; import javax.jdo.Transaction; import org.apache.cocoon.ojb.jdo.components.JdoPMF; /** *...
0
* (in the namespace "http://cocoon.apache.org/schema/configurator"):
0
public static BasicType getType( byte type ) {
0
import org.apache.atlas.RequestContext; RequestContext.clear(); RequestContext requestContext = RequestContext.get(); RequestContext.clear();
1
* @since 5.0 Removed Charset constants, reuse Java 7's {@link java.nio.charset.StandardCharsets} class instead.
0
PYTHON
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
? new String[]{executableIpaGetKeytab, "-s", getAdminServerHost(true), "-p", principal, "-k", keytabFileDestinationPath} : new String[]{executableIpaGetKeytab, "-s", getAdminServerHost(true), "-e", encryptionTypeSpec, "-p", principal, "-k", keytabFileDestinationPath};
0
Util.deepCopier();
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 javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLStreamWriter; import javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpa...
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(Util.class);
0
package org.apache.accumulo.examples.wikisearch.util;
0
* A {@link Coder} that has no component {@link Coder Coders} or other state. * returns an empty list. * * <p>Because {@link AtomicCoder} has no components, always returns an empty list.
0
import org.apache.batik.dom.svg.SVGOMAnimatedPoints; SVGOMPolylineElement pe = (SVGOMPolylineElement) e; SVGOMAnimatedPoints _points = (SVGOMAnimatedPoints) pe.getSVGOMAnimatedPoints(); _points.check(); SVGPointList pl = _points.getAnimatedPoints();
0
* @version SVN $Id$
0
ResponseEntityProxy.enchance(response, execRuntime); return new CloseableHttpResponse(response, execRuntime);
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 applica...
0
/** * Project types which this plugin supports. * * @parameter */ protected List supportedProjectTypes = Arrays.asList( new String[] { "jar", "bundle" } ); if ( !supportedProjectTypes.contains( project.getArtifact().getType() ) ) { getLog().info("Skipping Baselin...
0
package aQute.bnd.component; import java.util.*; import aQute.bnd.service.*; import aQute.lib.osgi.*; import aQute.libg.header.*; /** * Analyze the class space for any classes that have an OSGi annotation for DS. * */ public class DSAnnotations implements AnalyzerPlugin { public boolean analyzeJar(Analyzer ana...
0
public class VolatileTaskState { public final int taskId; public ResourceConsumption resources; VolatileTaskState(VolatileTaskState toCopy) { this.taskId = toCopy.taskId; this.resources = toCopy.resources == null ? null : new ResourceConsumption(toCopy.resources); }
0
import java.util.*; import org.apache.felix.karaf.features.FeaturesListener; import org.apache.felix.karaf.features.FeaturesService; import org.apache.felix.karaf.features.Repository; import org.apache.felix.utils.manifest.Clause; import org.apache.felix.utils.manifest.Parser; import org.apache.felix.utils.version.Vers...
0
@Override
0
@Parameter(names = "--scan-batch-size", description="scanner batch size") int batch_size = -1;
0
* @deprecated (4.2) use {@link BasicAsyncRequestConsumer} or {@link BasicAsyncResponseConsumer}
0
package org.apache.commons.ognl; * $Id$ public <R, P> R accept( NodeVisitor<? extends R, ? super P> visitor, P data ) return visitor.visit( this, data );
0
protected FileObject createFile( final FileName name )
0
shellState.getConnector().securityOperations().changeUserAuthorizations(user, ScanCommand.parseAuthorizations(scanOpts));
1
import org.osgi.util.converter.TypeReference; new String [] {"a", "b", "c"}).to(new TypeReference<ArrayList<String>>() {})); new String [] {"a", "b", "c"}).to(new TypeReference<List<String>>() {}));
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/NameBean.java,v 1.5 2004/01/11 23:30:21 dgraham Exp $ * $Revision: 1.5 $ * $Date: 2004/01/11 23:30:21 $ * Copyright (c) 2001-2004 The Apache Software Foundation. All rights * Valu...
0
package org.apache.felix.sigil.ui.eclipse.ui.preferences.repository; import org.apache.felix.sigil.eclipse.SigilCore; import org.apache.felix.sigil.eclipse.model.repository.IRepositoryModel; import org.apache.felix.sigil.ui.eclipse.actions.RefreshRepositoryAction; import org.apache.felix.sigil.ui.eclipse.ui.util.Defaul...
0
@Category({category.KerberosTest.class}) static final String JSON_VALUE = private static final String JSON_VALUE_SPARSE = private static final Map<String, Object> MAP_VALUE_SPARSE; MAP_VALUE.put(KerberosPrincipalDescriptor.KEY_VALUE, "user@_REALM"); MAP_VALUE.put(KerberosPrincipalDescriptor.KEY_CONFIGURAT...
0
X509Certificate cert =
1
/** * indicates a variable-length encoding of a Long using {@link LongCombiner.VarLenEncoder} */ VARLEN, /** * indicates a fixed-length (8-byte) encoding of a Long using {@link LongCombiner.FixedLenEncoder} */ FIXEDLEN, /** * indicates a string representation of a Long using...
0
buffer.append(line.substring(toc + 1));
0
import org.apache.http.client.entity.DecompressingEntity; Assert.assertTrue(entity instanceof DecompressingEntity); Assert.assertTrue(entity instanceof DecompressingEntity); Assert.assertTrue(entity instanceof DecompressingEntity);
0
* @author James House * @version $Revision: 1.21 $ $Date: 2004/02/28 12:18:17 $
0
@Parameter(names = "--old", description = "old zookeeper password", password = true, hidden = true) @Parameter(names = "--new", description = "new zookeeper password", password = true, hidden = true) ZooReader zooReader = new ZooReaderWriter(inst.getZooKeepers(), inst.getZooKeepersSe...
0
new RequestExpectContinue()
0
/** * construct a temporary StructType for a Query Result. This is not registered in the typeSystem. * The attributes in the typeDefinition can only reference permanent types. * @param name * @param attrDefs * @return * @throws MetadataException */ public StructType defineQuer...
0
import org.apache.http.util.Args; Args.notNull(cookie, "Cookie"); Args.notNull(cookie, "Cookie"); Args.notNull(origin, "Cookie origin"); Args.notNull(cookie, "Cookie"); Args.notNull(origin, "Cookie origin");
0
package org.apache.beam.sdk.extensions.sql.interpreter.operator;
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.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger log = LoggerFactory.getLogger(ZKAuthorizor.class); log.error(e.getMessage(), e); log.error(e.getMessage(), e); log.error(e.getMessage(), e); log.error(e.getMessage(), e); log.error(e.getMessage(), e); ...
0
final String variantCacheKey = cacheKeyGenerator.generateKey(host, req, entry);
0
boolean anyContinue = false; anyContinue |= !result.isFire() && !result.isFinish();
0
import org.apache.atlas.groovy.CastExpression; import org.apache.atlas.groovy.TypeCoersionExpression; private static final String VERTEX_LIST_CLASS = "List<Vertex>"; private static final String VERTEX_ARRAY_CLASS = "Vertex[]"; private static final String LAST_METHOD = "last"; if (inSelect && parent ...
0
final File filePath; filePath = BinUtil.extractFile(bundle, pid, path); throw new IOException("Unable to read " + path + " and write to " + BinUtil.binDirectory + " : " + ioe.getMessage(), ioe); if ( filePath == null ) { thr...
0
* Configuring the federation services (OMRS Connection Manager and Enterprise OMRS Connector) with localRegistration.getRepositoryConnection()); Connection remoteConnection) ...
0
import org.osgi.framework.Bundle;
0
// cache configurations before loading configuration groups loadConfigGroups();
0
* {@link TransformResult} with no elements and a timestamp hold equal to public TransformResult finishBundle() throws Exception {
0
import java.io.PrintWriter; import java.io.Writer; public static class FrobozWriter extends PrintWriter { public FrobozWriter(Writer w) { super(w); } public void print(Froboz froboz) { super.print("froboz{"); super.print(froboz.value); ...
0
import org.apache.felix.http.base.internal.registry.HandlerRegistry; requestInfoDTO.servletContextId = pr.handler.getContextServiceId(); if (pr.handler.getServletInfo().isResource()) .buildDTO(pr.handler, pr.handler.getContextServiceId()); .buildDTO(pr.handler, pr...
0
import org.apache.accumulo.test.randomwalk.Environment; public void visit(State state, Environment env, Properties props) throws Exception { env.getConnector().tableOperations().flush(table, null, null, true);
0
* <p>To aid in assigning default {@code Coder}s for results of * <p>This is the normal way {@code TupleTag}s are constructed. * <p>It is up to the user to ensure that two {@code TupleTag}s * <p>Two {@code TupleTag}s with the same id are considered equal. * <p>{@code TupleTag}s are not ordered, i.e., the cl...
0
* @author <a href="mailto:volker.schmitt@basf-it-services.com">Volker Schmitt</a> * @version CVS $Id: IterationTag.java,v 1.2 2003/03/16 17:49:08 vgritsenko Exp $
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.sshd.common.util.AbstractLoggingBean; public class JaasPasswordAuthenticator extends AbstractLoggingBean implements PasswordAuthenticator { public JaasPasswordAuthenticator() { this(null); } public JaasPasswordAuthenticator(String domain) { this.domain = domain; } ...
1
Assert.assertEquals(record.getLong(0), ref0.evaluate(record, null).getValue()); Assert.assertEquals(record.getInteger(1), ref1.evaluate(record, null).getValue()); Assert.assertEquals(record.getDouble(2), ref2.evaluate(record, null).getValue()); Assert.assertEquals(record.getLong(3), ref3.evaluate(record...
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
* @version $Revision$
1
import java.util.function.Supplier; public class LruBlockCache extends SynchronousLoadingBlockCache implements BlockCache, HeapSize { super(); /* * This class exists so that every cache entry does not have a reference to the cache. */ private class LruCacheEntry implements CacheEntry { private final C...
0
* http://www.apache.org/licenses/LICENSE-2.0
0
import org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoderTest; import java.util.Arrays; public class PairLexicoderTest extends AbstractLexicoderTest { public void testDecodes() { PairLexicoder<String,String> plexc = new PairLexicoder<String,String>(new StringLexicoder(), new StringLexicoder()); ...
0
import org.apache.beam.vendor.grpc.v1p21p0.io.grpc.Server; import org.apache.beam.vendor.grpc.v1p21p0.io.grpc.ServerBuilder; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
0
* <p>Example of use: * <p>See also {@link #lessThan}, {@link #lessThanEq}, * <p>Example of use: * <p>See also {@link #lessThanEq}, {@link #greaterThanEq}, * <p>See also {@link #by}, which returns elements * <p>Example of use: * <p>See also {@link #greaterThanEq}, {@link #lessThan}, * <p>See also...
0
* <p> Run {@code com.google.cloud.dataflow.examples.complete.game.injector.Injector} to generate * pubsub data for this pipeline. The {@code Injector} documentation provides more detail.
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
return doc.createElementNS(Constants.SignatureSpecNS, elementName); return doc.createElementNS(Constants.SignatureSpecNS, namePrefix);
0
return new Bound<>(classToBind, rootElementName, baseOutputFilename.get()); return new Bound<>(classToBind, rootElementName, baseOutputFilename.get());
0
package org.apache.batik.gvt; org.apache.batik.ext.awt.image.GraphicsUtil.drawImage
0
* Copyright (c) 2002 The Apache Software Foundation. All rights
0
* Component Instance State : DISPOSED. The instance was destroyed. */ int DISPOSED = -1; /** /** * Add an instance state listener on the current instance. * @param listener : the listener to add. */ void addInstanceStateListener(InstanceStateListener listener); ...
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 use ...
1
* // CHECKSTYLE:OFF // CHECKSTYLE:ON
1
private final Boolean defaultSwitch; final int id, final Boolean switchDefault) { this.defaultSwitch = switchDefault; public void defaults(final WriteableCommandLine commandLine) { commandLine.setDefaultSwitch(this, defaultSwitch); }
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/RuleSet.java,v 1.2 2002/01/09 20:22:49 sanders Exp $ * $Revision: 1.2 $ * $Date: 2002/01/09 20:22:49 $ * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * @versio...
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
@Test public void testSupportDeleteViaUI() throws Exception { //Explicitly set to true String serviceInfoXml = "<metainfo>" + " <schemaVersion>2.0</schemaVersion>" + " <services>" + " <service>" + " <name>HDFS</name>" + " <displayName>HDFS</displayName>" + ...
0
} catch (Exception ex) {
0
* @version $Id: Constants.java,v 1.2 2004/03/09 11:31:12 joerg Exp $ // * The value returned by {@link org.apache.cocoon.forms.formmodel.Widget#getValue()}
0
import io.netty.util.concurrent.Future; this.eventLoopGroup = (group != null) ? group : new NioEventLoopGroup(); Future<?> shutdownFuture = eventLoopGroup.shutdownGracefully(); shutdownFuture.addListener(fut -> closeFuture.setClosed());
1
public interface IValidationListener { void validationMessage( String message, int level );
0
try { stopWorkers(500); } catch (InterruptedException ex) { throw new InterruptedIOException(ex.getMessage()); }
0
/* * Copyright 2015 Data Artisans GmbH * * 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 agr...
0
public boolean addGlobalSession(long id, int to) { return false; } @Override public boolean addSession(long id, int to) { // TODO Auto-generated method stub return false; } public int upgradeSession(long sessionId) { // T...
0
import static java.util.Arrays.asList; import org.apache.beam.sdk.extensions.euphoria.core.client.io.ListDataSource; import org.apache.beam.sdk.extensions.euphoria.core.translate.BeamFlow; import org.apache.beam.sdk.testing.PAssert; import org.apache.beam.sdk.testing.TestPipeline; import org.joda.time.Duration; import...
0
final Map<String,String> options = new HashMap<>(); final Map<String,String> localOptions = new HashMap<>(); final HashMap<String,String> localOptions = new HashMap<>();
0
* nor may "Apache" appear in their name, without * @version $Id: UnixFTPEntryParser.java,v 1.6 2003/01/26 00:21:44 dfs Exp $
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
if ( Util.isDevice( ref ) ) // only install if _we_ loaded the driver if ( !isInUse() && m_dynamic ) m_bundle.uninstall();
0
private final Map<FileSystem, Map<FileName, Reference<FileObject>>> filesystemCache = new HashMap<FileSystem, Map<FileName, Reference<FileObject>>>(); private final Map<Reference<FileObject>, FileSystemAndNameKey> refReverseMap = new HashMap<Reference<FileObject>, FileSystemAndNameKey>(100...
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
null,
0
public class PackageExportDialog extends ResourceSelectDialog { private Text versionText; private Version version; public PackageExportDialog( Shell parentShell, String title, IContentProvider content, ViewerFilter filter, Object scope ) { super( parentShell, content, filter, scope, ...
0
graph.getPerElementConsumers(created), graph.getPerElementConsumers(transformed), assertThat(graph.getPerElementConsumers(flattened), emptyIterable()); graph.getPerElementConsumers(created), assertThat(graph.getPerElementConsumers(flattened), emptyIterable());
0
public class TypeAwareUnaryFunctor<I, O> extends AbstractTypeAware<UnaryFunctor<I, O>, O> @Override public void apply(I elem, Collector<O> collector) { getDelegate().apply(elem, collector); }
0