Diff stringlengths 5 2k | FaultInducingLabel int64 0 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 ... | 0 |
throw new FileSystemException( "vfs.provider/get-attribute-not-supported.error" );
throw new FileSystemException( "vfs.provider/set-attribute-not-supported.error" ); | 0 |
return 0;
return 0;
return new byte[length]; | 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.accumulo.core.file.blockfile.cache.BlockCacheManager;
import org.apache.accumulo.core.file.blockfile.cache.CacheType;
private final BlockCacheManager cacheManager;
try {
cacheManager = BlockCacheManager.getInstance(acuConf);
} catch (Exception e) {
throw new RuntimeException("Err... | 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 applicable la... | 0 |
static class Consumer extends WorkItemConsumer<Object> { | 0 |
/** {@link org.apache.beam.sdk.transforms.windowing.WindowFn.AssignContext} for Flink functions. */ | 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 |
data = new TreeMap<>(); | 0 |
import org.apache.felix.framework.wiring.BundleCapabilityImpl;
import org.apache.felix.framework.wiring.BundleRequirementImpl;
private final BundleRequirementImpl m_req;
private final BundleCapabilityImpl m_cap;
public WireImpl(Module importer, BundleRequirementImpl ip,
Module exporter, BundleCapabi... | 0 |
import org.apache.beam.sdk.util.TimerInternals.TimerData;
for (TimerData timer : workItem.timersIterable()) {
reduceFnRunner.onTimer(timer);
} | 0 |
@TableGenerator(name = "alert_group_id_generator", table = "ambari_sequences", pkColumnName = "sequence_name", valueColumnName = "sequence_value", pkColumnValue = "alert_group_id_seq", initialValue = 0, allocationSize = 1) | 0 |
import org.apache.accumulo.core.util.MetadataTable;
m.put(MetadataTable.CURRENT_LOCATION_COLUMN_FAMILY, asColumnQualifier(), asMutationValue());
m.put(MetadataTable.FUTURE_LOCATION_COLUMN_FAMILY, asColumnQualifier(), asMutationValue());
m.put(MetadataTable.LAST_LOCATION_COLUMN_FAMILY, asColumnQualifier(), a... | 0 |
Class< ? > rawClass;
CollectionHandler(Class< ? > rawClass, Type componentType) {
throw new IllegalArgumentException("Unknown interface type for collection: " + rawClass);
@Override
void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception {
Iterable< ? > collection = (I... | 0 |
* @version CVS $Id: CommandLineContextTestCase.java,v 1.5 2003/05/31 12:42:39 jefft Exp $
new File(commandLineContextDir, "foo"+File.separator+"bar").mkdirs();
public void tearDown() throws Exception {
new File(commandLineContextDir, "foo"+File.separator+"bar").delete();
new File(commandLin... | 0 |
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a> | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/container/ContainerPointer.java,v 1.8 2003/01/11 05:41:25 dmitri Exp $
* $Revision: 1.8 $
* $Date: 2003/01/11 05:41:25 $
* @version $Revision: 1.8 $ $Date: 2003/01/11 05:41:25 $
... | 1 |
public interface NodeEventTarget
extends org.apache.batik.dom.dom3.events.EventTarget { | 0 |
stringCoder.encode(value.getTableDescription(), outStream, context.nested()); | 0 |
import org.apache.cocoon.SitemapComponentTestCase;
* @version CVS $Id: LexicalTransformerTestCase.java,v 1.4 2003/11/26 16:27:23 stephan Exp $
public class LexicalTransformerTestCase extends SitemapComponentTestCase { | 0 |
/*
* Copyright 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 appl... | 0 |
/**
* Returns true if the XML parser must be in validation mode, false
* otherwise depending on the SVGUserAgent.
*/
public boolean isXMLParserValidating() {
if (svgUserAgent != null) {
return svgUserAgent.isXMLParserValidating();
}
return false;
}
| 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$ $Date$ | 0 |
import org.apache.sshd.common.util.closeable.AbstractCloseable;
public class Nio2Session extends AbstractCloseable implements IoSession { | 0 |
import org.apache.accumulo.core.trace.TraceUtil;
stats = client.getMasterStats(TraceUtil.traceInfo(), | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 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 |
System.err.println("Auto-properties install: "
+ ex + ((ex.getCause() != null) ? " - " + ex.getCause() : ""));
System.err.println("Auto-properties start: "
+ ex + ((ex.getCause() != null) ? " - " + ex.getCause() : "")); | 0 |
super.addScanIterator(new IteratorSetting(Integer.MAX_VALUE, BatchDeleter.class.getName() + ".NOVALUE", SortedKeyIterator.class)); | 0 |
return Integer.parseInt(configValue(AmbariServerConfigurationKey.SERVER_PORT));
return secondaryServerPort == null ? 0 : Integer.parseInt(secondaryServerPort); | 0 |
checkArgument(connectionFactory != null, "connectionFactory can not be null");
checkArgument(queue != null, "queue can not be null");
checkArgument(topic != null, "topic can not be null");
checkArgument(username != null, "username can not be null");
checkArgument(password != null, "passwor... | 0 |
// INITIAL HAVE_LOCK SAFE_MODE NORMAL UNLOAD_META UNLOAD_ROOT STOP
/* INITIAL */ {X, X, O, O, O, O, X},
/* HAVE_LOCK */ {O, X, X, X, O, O, X},
/* SAFE_MODE */ ... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestReferenceMap.java,v 1.2 2002/10/12 22:36:21 scolebourne Exp $
* $Revision: 1.2 $
* $Date: 2002/10/12 22:36:21 $
import java.util.Map;
import junit.framework.Test;
* @versio... | 0 |
import cz.seznam.euphoria.core.client.io.Collector;
public void flush(Collector<V> ctx) { | 0 |
import org.apache.beam.sdk.values.TypeDescriptor;
TypeDescriptor<K> keyTypeDescriptor) {
return by(TypeAwareUnaryFunction.of(leftKeyExtractor, keyTypeDescriptor),
TypeAwareUnaryFunction.of(rightKeyExtractor, keyTypeDescriptor));
BinaryFunctor<LeftT, RightT, OutputT> joinFunc,
Typ... | 0 |
import org.apache.beam.sdk.util.DoFnInfo; | 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.MoreObjects;
import org.apache.beam.vendor.guava.v20_0.com.google.common.hash.BloomFilter;
import org.apache.beam.vendor.guava.v20_0.com.google.common.has... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/IteratorByteIterator.java,v 1.3 2003/11/07 20:08:15 rwaldhoff Exp $
*
* @deprecated This code has been moved to Jakarta Commons Primitives (http://jaka... | 0 |
import com.google.common.collect.ImmutableSet;
public static final Map<Resource.Type, String> keyPropertyIds = ImmutableMap.<Resource.Type, String>builder()
protected static final Set<String> propertyIds = ImmutableSet.of( | 0 |
* @param state the state
* @param route the route
* @param state the state
* @return the entry request | 0 |
final List<RequestProtocolError> theErrors = new ArrayList<>();
final List<HeaderElement> outElts = new ArrayList<>();
List<HeaderElement> expectElementsThatAreNot100Continue = new ArrayList<>();
expectElementsThatAreNot100Continue = new ArrayList<>(); | 0 |
import org.apache.beam.sdk.state.TimeDomain;
import org.apache.beam.sdk.state.TimerSpec;
import org.apache.beam.sdk.state.TimerSpecs; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CollectionUtils.java,v 1.35 2003/08/31 17:26:44 scolebourne Exp $
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may appear in the s... | 0 |
package org.apache.zookeeper.server;
import org.apache.zookeeper.KeeperException; | 0 |
import org.apache.commons.configuration.BaseHierarchicalConfiguration;
import org.apache.commons.configuration.tree.ImmutableNode;
BaseHierarchicalConfiguration defConfig =
BasicConfigurationBuilder<? extends HierarchicalConfiguration<ImmutableNode>> defBuilder = | 0 |
private final Dataset<LEFT> left;
private final Dataset<RIGHT> right; | 0 |
cal.set(Calendar.MILLISECOND, 0); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/ValidatorAction.java,v 1.21 2004/04/08 23:29:31 dgraham Exp $
* $Revision: 1.21 $
* $Date: 2004/04/08 23:29:31 $ | 0 |
* Copyright 2002-2005 The Apache Software Foundation. | 0 |
package org.apache.felix.ipojo.runtime.core.test.components;
import org.apache.felix.ipojo.annotations.Bind;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Requires;
import org.apache.felix.ipojo.annotations.Unbind;
import org.apache.felix.ipojo.runtime.core.test.service... | 0 |
final int rnd = new Random().nextInt(acceptableCodes.length); | 0 |
import org.slf4j.Logger;
log.debug(
"Storing updated tasks to log: {}",
Maps.transformValues(tasksById, IScheduledTask::getStatus)); | 0 |
import org.apache.felix.dm.annotation.api.ServiceDependency; | 0 |
* This interface marks an event as an event for a coplet definition (or
* for all coplet instances).
/**
* Return the coplet definition this event is for.
* @return The coplet definition.
*/ | 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 |
* @version $Id: JexlTest.java,v 1.23 2002/10/26 09:26:38 jstrachan Exp $
assertExpression(jc, "foo.substring(0,(size(foo)-3))", "abc");
assertExpression(jc, "foo.substring(0,size(foo)-3)", "abc"); | 0 |
import org.apache.hc.core5.util.Asserts; | 1 |
private List<ServiceReference> serviceReferencesList;
serviceReferencesList = m_dependency.getTracker().getServiceReferencesList();
if (serviceReferencesList != null) {
for (ServiceReference reference : serviceReferencesList) {
TransformedServiceReference ... | 0 |
suite.addTest(TestDigestAuth.suite()); | 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... | 0 |
env.isUserCompaction();
throw new RuntimeException(
"Test failed - Expected to throw IllegalStateException when checking compaction on a scan.");
env.isFullMajorCompaction();
throw new RuntimeException(
"Test failed - Expected to throw IllegalStateException when c... | 0 |
* Returns 'path'.
*/
public String getLocalName() {
return SVG_PATH_TAG;
}
/** | 0 |
* @version $Id: EffectPipe.java,v 1.6 2004/04/12 21:43:39 mpo Exp $
public final AttributesImpl attrs;
if (loc == null && raw == null) {
this.attrs = null; // prefix-mapping use of this class doesn't need attrs
} else {
this.attrs = new At... | 0 |
* @version CVS $Id$ | 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.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap; | 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 |
package org.apache.felix.httplite.servlet;
import org.apache.felix.httplite.osgi.Logger; | 0 |
// We already have resolved our sitemap, so our context is the
// directory of this sitemap.
this.environmentHelper = new EnvironmentHelper(new URL(this.source.getURI().substring(0, pos + 1))); | 0 |
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a> | 0 |
* @version CVS $Id$
private boolean debug = true; | 0 |
import org.apache.ambari.server.topology.validators.HiveServiceValidator;
topologyValidators = ImmutableList.of(new RequiredPasswordValidator(defaultPassword),
new ClusterConfigTypeValidator(), new HiveServiceValidator()); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/output/ByteArrayOutputStreamTestCase.java,v 1.5 2003/12/30 15:25:22 jeremias Exp $
* $Revision: 1.5 $
* $Date: 2003/12/30 15:25:22 $
private static final byte[] DATA; | 0 |
import org.apache.beam.sdk.extensions.euphoria.core.client.type.TypeUtils;
import org.apache.beam.sdk.values.TypeDescriptor;
Set<OutputHint> outputHints,
TypeDescriptor<InputT> outputType) {
super(name, flow, input, outputHints, outputType);
getName(), getFlow(), input, (i, c) -> c.collect(i... | 0 |
XMLUtils.read(inputSource, false); | 0 |
// no need to lock again
if (s_transactionalLocks.get().contains(annotation)) {
return;
}
| 1 |
import org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder;
public class ReverseLexicoder<T> extends AbstractLexicoder<T> { | 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 ... | 0 |
package org.apache.zookeeper.server.quorum;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.server.Request;
import org.apache.zookeeper.server.RequestProcessor;
import org.apache.zookeeper.server.SyncRequestProcessor; | 0 |
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
import static com.fasterxml.jackson.annotatio... | 0 |
.load(
ReflectHelpers.findClassLoader(
typeInformation.getMethod().getDeclaringClass().getClassLoader()),
ClassLoadingStrategy.Default.INJECTION)
.load(
ReflectHelpers.findClassLoader(
typeInformation.getMethod().getDeclar... | 0 |
/** Test for IO-217 FileUtils.copyDirectoryToDirectory makes infinite loops */
public void testCopyDirectoryToItself() throws Exception {
File dir = new File(getTestDirectory(), "itself");
dir.mkdirs();
FileUtils.copyDirectoryToDirectory(dir, dir);
assertEquals(1, LIST_WALKER.lis... | 0 |
int[] counts = new int[paths.length]; | 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 java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import java.util.Vector;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.xml.security.c14n.CanonicalizationException;
import org.apache.xml.security.c14n.InvalidCanonicalizerException;
import org.apache.xml.security.util... | 0 |
implements Serviceable, ProfileLS, ThreadSafe, Disposable { | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 0 |
package org.apache.beam.sdk.values;
import org.apache.beam.sdk.transforms.Combine;
import org.apache.beam.sdk.transforms.GroupByKey;
import org.apache.beam.sdk.transforms.PTransform;
import org.apache.beam.sdk.transforms.SerializableComparator;
import java.util.Comparator; | 0 |
package org.apache.hadoop.metadata.repository; | 0 |
/**
* Query 10, but slow and small for debugging.
*/
SMALL_LOGGER(smallLogger()),
private static List<NexmarkConfiguration> smallLogger() {
NexmarkConfiguration configuration = NexmarkConfiguration.DEFAULT.copy();
configuration.query = NexmarkQueryName.LOG_TO_SHARDED_FILES;
configuration.isR... | 0 |
* Copyright 2016 Seznam.cz, a.s. | 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 |
value = cssEngine.parsePropertyValue
(SVGStylableElement.this, property, text);
value = cssEngine.parsePropertyValue
(SVGStylableElement.this, prop, attr.getValue());
value = cssEngine.parsePropertyValue
... | 0 |
import org.apache.http.conn.LayeredSocketFactory;
implements LayeredSocketFactory {
public final static LayeredSocketFactory INSTANCE = | 0 |
public PCollection<Row> buildIOReader(PBegin begin) {
return begin.apply("MockedBoundedTable_Reader_" + COUNTER.incrementAndGet(), Create.of(rows));
public POutput buildIOWriter(PCollection<Row> input) {
input.apply(
ParDo.of(
new DoFn<Row, Void>() {
@ProcessElement
... | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/util/EmptyStackException.java,v 1.6 2006/03/14 01:20:26 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 may n... | 0 |
/**
* Triggered to signal the ability of the underlying request channel
* to accept a request messages. The data producer can choose to send
* a request message immediately inside the call or asynchronously
* at some later point.
*
* @param channel the request channel capable to accept... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.