Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
@Override
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
* http://www.apache.org/licenses/LICENSE-2.0
0
import org.apache.hc.core5.annotation.Contract; import org.apache.hc.core5.annotation.ThreadingBehavior; @Contract(threading = ThreadingBehavior.IMMUTABLE)
0
* A style reference describes which GraphicsNode and which property * of this GraphicsNode should be updated when a style element (for * example a filter) changes due to a modification of the DOM. * @version $Id$ */
0
* <br/> * <b>WARNING:</b> Handling of default parameters is currently * subject to discussions, and may be changed signifcantly. public class BasicHttpParams extends AbstractHttpParams implements HttpParams, Serializable { static final long serialVersionUID = 4571099216197814749L; private HashMap paramet...
0
BaseHierarchicalConfiguration hc = (BaseHierarchicalConfiguration) ConfigurationUtils .convertToHierarchical(conf); HierarchicalConfiguration hc = ConfigurationUtils HierarchicalConfiguration hc = ConfigurationUtils HierarchicalConfiguration hc = C...
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
assertEquals(POJO_SCHEMA, new AvroRecordSchema().schemaFor(TypeDescriptor.of(AvroPojo.class)));
0
import java.util.Collection; import org.apache.ambari.server.metrics.system.impl.AbstractMetricsSource; public interface MetricsService{ void start(); /** * Get Configured sources * @return */ Collection<AbstractMetricsSource> getSources();
0
import org.apache.http.nio.reactor.SessionInputBuffer;
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
* @see org.apache.felix.inventory.ZipAttachmentProvider#addAttachments(java.util.zip.ZipOutputStream, * java.lang.String) public void addAttachments(final ZipOutputStream zos, final String namePrefix) throws IOException ((ZipAttachmentProvider) printer).addAttachments(zos, namePrefix);
0
import static org.ops4j.pax.exam.container.def.PaxRunnerOptions.repository; mavenBundle().groupId("org.ow2.chameleon").artifactId("transaction-geronimo").version(asInProject()), ), repository("http://maven.ow2.org/maven2-snapshot/"), osgi.waitForServic...
0
this.localServer = new LocalTestServer(null, null); this.localServer.registerDefaultHandlers(); this.localServer.start(); this.httpclient = new DefaultHttpClient(); response = this.httpclient.execute(httpget); response = this.httpclient.execute(target, httpget);
0
boolean completed = false; completed = true; if (completed) { throw new IOReactorException(ex.getMessage(), ex); }
0
private MetadataTime time; public MetadataTime getTime() { te.time = MetadataTime.parse(val);
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 (formDefinition != null) { classDefinition = formDefinition.getWidgetDefinition(getId()); if (classDefinition == null) { // not found in local form, try library } } if (classDefinition == null && getEnclosingLibrary() != null) { // not found in ...
0
* @author <a href="mailto:haul@apache.org">Christian Haul</a> * @version CVS $Id: FormValidatorAction.java,v 1.4 2004/02/15 21:30:00 haul Exp $
0
public final class ByteConverter extends NumberConverter<Byte> { protected Class<Byte> getDefaultType() {
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 2001-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
public Response startJobUpdate(JobUpdateRequest request, String message, SessionKey session) return delegate.startJobUpdate(request, message, session); public Response pauseJobUpdate(JobUpdateKey key, String message, SessionKey session) throws TException { return delegate.pauseJobUpdate(key, message,...
0
options.getGcpCredential(), ImmutableList.of(404), new UploadIdResponseInterceptor()))
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
DataflowExecutionContext<?> executionContext,
0
import java.util.HashSet;
0
* public static boolean deploy(InputStream inputStream, jin = new JarInputStream(inputStream);
0
import org.kohsuke.args4j.spi.ExplicitBooleanOptionHandler; usage = "When true, remove each job's staged artifacts when it completes", // Allows setting boolean parameters to false which default to true handler = ExplicitBooleanOptionHandler.class) private boolean cleanArtifactsPerJob = true...
0
LoggingUtils.generateMnemonicMap(SshAgentConstants.class, f -> { String name = f.getName(); return !name.startsWith("SSH_AGENT_CONSTRAIN") && (name.startsWith("SSH_AGENT") || name.startsWith("SSH2_AGENT")); }); private LazyMessages...
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 ap...
0
assertThat(coder, Matchers.equalTo(otherCoder)); AppliedPTransform.of( transform, Collections.emptyList()); AppliedPTransform.of( AppliedPTransform.of( Collections.emptyList()); Collections.singletonList(childTransform)); AppliedPTransform.of( Appl...
0
} @Override public final void updateDatabaseSchemaVersion() {
0
this.limitingCos = Math.cos( Math.toRadians( limitingConeAngle ) );
0
import org.apache.http.annotation.NotThreadSafe; @NotThreadSafe
0
package org.apache.felix.ipojo.test.scenarios.component; import java.util.Properties; import org.apache.felix.ipojo.annotations.Component; import org.apache.felix.ipojo.annotations.Provides; import org.apache.felix.ipojo.test.scenarios.annotations.service.BarService; import org.apache.felix.ipojo.test.scenarios.annot...
0
log.debug("{} is a directory, ignoring.", fileStatus.getPath()); log.debug("{} does not have a valid extension, ignoring", fileStatus.getPath());
0
import org.apache.commons.jelly.expression.Expression; // for example <manifest> inside a <jar> should be a nested object, where as if ( ! ( parentObject instanceof Task ) && project.getTaskDefinitions().containsKey( tagName ) ) { log.debug( "Creating an ant Task for name: ...
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 by appl...
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
/* * $HeadURL$ * $Revision$ * $Date$ * * ==================================================================== * 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...
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...
0
* Copyright 2003,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...
0
private final ServiceRegistry m_registry; private ServiceRegistration<StartLevel> m_slReg; m_registry = registry; } void start() { m_slReg = m_registry.registerService(m_felix._getBundleContext(), new String[] { StartLevel.class.getName() }, new Start...
0
prov.put("instance.name","FooProvider"); i1.put("instance.name","Simple"); i2.put("instance.name","Void"); i3.put("instance.name","Object"); i4.put("instance.name","Ref"); i5.put("instance.name","Both");
0
private Log log; protected Log getLogger() setupComponent(this.globalConfiguration); vfsComponent.setLogger(getLogger()); setGlobalConfiguration(new GlobalConfiguration());
0
"gs://apache-beam-samples/wikipedia_edits/wiki_data-000000000000.json"; private static final String DEFAULT_OUTPUT_CHECKSUM = "13347784d49129bade295c371e30f9eb5325318a";
0
public class GraphBackedMetadataRepository implements MetadataRepository { LoggerFactory.getLogger(GraphBackedMetadataRepository.class); public static final String NAME = GraphBackedMetadataRepository.class.getSimpleName();
0
* @version CVS $Id: OutputStreamListener.java,v 1.8 2004/05/10 12:28:27 sylvain Exp $ // Flush the writer, but don't close the underlying stream. writer.flush();
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.felix.framework.util.VersionRange; String versionAttr = imported.getAttribute( Constants.VERSION_ATTRIBUTE ); if ( versionAttr == null ) { // no specific version required, this export surely satisfies it return true; } ...
0
import org.osgi.annotation.versioning.ConsumerType; @ConsumerType
0
toRet.initialize(context, initialize); toRet.initialize(context, initialize); zooCache = new ZooCache(context);
0
flinkOptions.setRunner(TestFlinkPipelineRunner.class);
0
* @version $Id$
0
* {@link FilterHandlerMapping} instances are immutable. public final class FilterHandlerMapping * Creates a new, empty, {@link FilterHandlerMapping} instance. public FilterHandlerMapping() * Creates a new {@link FilterHandlerMapping} instance for the given elements. private FilterHandlerMapping(@Nonn...
0
TcpipForwarder create(ConnectionService service);
0
package org.apache.sshd.common.forward; import org.apache.sshd.common.ForwardingAcceptorFactory; import org.apache.sshd.common.Session; public NioSocketAcceptor createNioSocketAcceptor(Session s) {
0
* Authentication scheme registry that can be used to obtain the corresponding * authentication scheme implementation for a given type of authorization challenge. public final class AuthSchemeRegistry { public final static AuthSchemeRegistry DEFAULT = new AuthSchemeRegistry();
0
import static org.easymock.EasyMock.createStrictMock; import java.util.Set; ConfigHelper configHelper = createStrictMock(ConfigHelper.class); expect(injector.getInstance(ConfigHelper.class)).andReturn(configHelper).anyTimes(); configHelper.updateAgentConfigs(anyObject(Set.class)); expectLastCall(); ...
0
import org.apache.accumulo.core.file.blockfile.impl.CachableBlockFile; import org.apache.accumulo.core.file.rfile.RFile; import org.apache.accumulo.core.file.rfile.RFile.Reader; import org.apache.accumulo.server.tabletserver.compaction.WriteParameters; import org.apache.hadoop.conf.Configuration; import org.apache.hado...
0
import org.apache.hc.core5.http.ClassicHttpRequest; final ClassicHttpRequest req1 = new BasicClassicHttpRequest("GET","/"); final ClassicHttpRequest req2 = new BasicClassicHttpRequest("GET","/"); execute(req1); final HttpResponse result = execute(req2); final ClassicHttpRequest r...
0
private final int connectTimeoutMillis; final SftpFileSystemConfigBuilder builder = SftpFileSystemConfigBuilder.getInstance(); this.connectTimeoutMillis = builder.getConnectTimeoutMillis(fileSystemOptions); channel.connect(connectTimeoutMillis); channel.connect(conne...
0
p.apply("ReadMyFile", TextIO.read().from("gs://bucket/object")) .apply(TextIO.read().from(options.getInput())) PCollection<String> unconsumed = p.apply(TextIO.read().from(options.getInput())); p.apply("ReadMyNonGcsFile", TextIO.read().from(tmpFolder.newFile().getPath())); p.apply("ReadMyGcsFile"...
0
import com.google.cloud.dataflow.sdk.testing.PAssert; PAssert.that(output) PAssert.that(output).empty();
0
import org.springframework.stereotype.Service; @Service
0
import java.util.Optional;
0
assertEquals(11, definitions.size()); assertEquals(2, hostAlertCount); assertEquals(11, definitions.size()); assertEquals(10, definitions.size()); assertEquals(11, definitions.size()); assertEquals(10, definitions.size()); assertEquals(12, definitions.size());
0
public TransformResult<Object> finishBundle() throws Exception { public TransformResult<Object> finishBundle() throws Exception {
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
/** Subclass this class to have the whole suite operate on your executor of choice. */ BroadcastHashJoinTest.class, CountByKeyTest.class, DistinctTest.class, FilterTest.class, FlatMapTest.class, JoinTest.class, JoinWindowEnforcementTest.class, MapElementsTest.class, ReduceByKeyTest.class, ReduceStat...
0
import java.io.StringWriter; import org.apache.commons.jelly.XMLOutput; import org.dom4j.io.HTMLWriter; import org.dom4j.io.OutputFormat; import org.dom4j.io.XMLWriter; import org.xml.sax.SAXException; * @version $Revision: 1.3 $ assertEquals("target/testFileTag.tmp", "<html xmlns=\"http://www.w3.org/1999/xhtm...
0
import java.text.DateFormat; import java.util.Date; import org.apache.commons.vfs.FileContent; import org.apache.commons.vfs.VFS; * @version $Revision: 1.3 $ $Date: 2003/06/28 10:49:21 $ System.out.println( "ls [-R] [path] Lists contents of a file or folder." ); final FileObject file; f...
0
Copyright 2001,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 l...
0
import org.apache.accumulo.start.classloader.vfs.MiniDFSUtil; private MiniDFSCluster miniDFS = null; private List<Process> cleanup = new ArrayList<Process>(); Process proc = exec(clazz, Collections.singletonList("-Xmx" + config.getDefaultMemory()), args); cleanup.add(proc); return proc; File dfs =...
0
package org.apache.felix.sigil.model;
0
Map<String, Object> p = PropertyHelper.getProperties(resource); for (String key : p.keySet()) { if (!properties.contains(key)) { System.out.printf(key); } }
0
Connector conn = master.getConnector(); Instance instance = master.getInstance(); return ("" + flushID + encodedIterators).getBytes(); return ("" + flushID + encodedIterators).getBytes();
1
log.debug("Replicating {} to {} using {}", filePath, target, replica.getClass().getName());
0
import java.util.Locale; this.host = host.toLowerCase(Locale.ENGLISH);
0
package org.apache.atlas.web.resources; import org.apache.atlas.MetadataServiceClient; import org.apache.atlas.ParamChecker; import org.apache.atlas.discovery.DiscoveryException; import org.apache.atlas.discovery.LineageService; import org.apache.atlas.repository.EntityNotFoundException; import org.apache.atlas.web.ut...
0
* limitations under the License.
0
import org.apache.beam.model.pipeline.v1.Endpoints;
0
public static final String ENCRYPTIONSPECIFICATION_URL = /** The namespace of the public static final String EncryptionSpecNS = public static final String EncryptionSpec11NS = public static final String TYPE_MEDIATYPE = public static final String ALGO_ID_BLOCKCIPHER_T...
1
@Override public boolean isReversed() { return false; } @Override public void maybeReverse(boolean mirror) { }
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
* @version $Revision$
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
case OpCode.createTTL: case OpCode.createTTL: case OpCode.createTTL: return "createTtl";
0
* "License"); you may not use this file except in compliance * distributed under the License is distributed on an "AS IS" BASIS,
0
URL url = f.toURI().toURL();
0
return (TestReportProcessor)XMLReflect.buildObject(element); new Object[] { element.getAttributeNS(null, XR_CLASS_ATTRIBUTE), testSuite.addTest( XMLTestSuiteLoader.loadTestSuite(suiteHref) );
0
/* * Copyright 1999-2005 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...
0
// If COLORS is changed, please also make changes in // release/src/main/groovy/MobileGamingCommands.COLORS
0
public static <T extends Serializable> T clone(T value) { @SuppressWarnings("unchecked") T copy = (T) deserializeFromByteArray(serializeToByteArray(value), value.toString()); return copy; }
0
/** * This is the name of the property that can point to other * properties file for including other properties files. * <p> * If the file is absent, processing continues normally. * </p> */ private static String includeOptional = "includeoptional"; * Gets the property 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...
0
import java.util.HashMap; import org.apache.beam.sdk.coders.Coder; Map<TupleTag<?>, Coder<?>> outputCoders = new HashMap<>(); for (Map.Entry<TupleTag<?>, PValue> entry : outputs.entrySet()) { TupleTag<?> tag = entry.getKey(); if (entry.getValue() instanceof PCollection) { PCollection<?> pCol...
0