Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
/*
* $Header: /cvshome/build/ee.foundation/src/java/lang/Error.java,v 1.6 2006/03/14 01:20:25 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 not use this fi... | 0 |
static org.slf4j.Logger log =
org.slf4j.LoggerFactory.getLogger(Base64Test.class.getName()); | 1 |
return Lists.transform(splits, input -> new BoundedToUnboundedSourceAdapter<>(input)); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/CallMethodRule.java,v 1.28 2004/01/10 17:32:28 rdonkin Exp $
* $Revision: 1.28 $
* $Date: 2004/01/10 17:32:28 $
* nor may "Apache" appear in their names without prior
* @version ... | 0 |
webAppContext.addSystemClass("org.apache.velocity."); | 0 |
/*
* Copyright 2013 Twitter, Inc.
*
* 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 t... | 0 |
import org.apache.beam.sdk.transforms.display.DisplayData;
import org.apache.avro.reflect.Nullable;
* The desired maximum estimation error or null if not specified.
*/
@Nullable
private final Double maximumEstimationError;
/**
this.maximumEstimationError = null;
this.maximumEstimat... | 0 |
@Override
public boolean isRepeatExpression(GroovyExpression expr) {
if(!(expr instanceof FunctionCallExpression)) {
return false;
}
return ((FunctionCallExpression)expr).getFunctionName().equals(REPEAT_METHOD);
} | 0 |
/** {@link PushedBackElementsHandler} that stores elements in a Flink operator state list. */ | 1 |
* <p>
* </p> | 0 |
import org.apache.aurora.common.collections.Pair;
import org.apache.aurora.common.quantity.Amount;
import org.apache.aurora.common.quantity.Time;
import org.apache.aurora.common.util.Clock; | 0 |
Set<TServerInstance> result = new HashSet<>();
List<TServerInstance> currentServers = new ArrayList<>(getTServers(instance)); | 1 |
public void setStartPC( InstructionHandle start_pc ) { // TODO could be package-protected?
public void setEndPC( InstructionHandle end_pc ) { // TODO could be package-protected?
public void setHandlerPC( InstructionHandle handler_pc ) { // TODO could be package-protected?
public void setCatchType( Objec... | 0 |
* Defines common decoding methods for String decoders. | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/xml/src/test/org/apache/commons/jelly/tags/xml/TestJelly.java,v 1.2 2003/10/09 21:21:27 rdonkin Exp $
* $Revision: 1.2 $
* $Date: 2003/10/09 21:21:27 $
* any, must include the following acknowledgement:
* ... | 0 |
@SuppressWarnings({"unused"}) public enum ScanType implements org.apache.thrift.TEnum { | 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 |
public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options,
IteratorEnvironment env) throws IOException {
public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive)
throws IOException {
FileSKVIterator iter = new RangeIterator(new Map... | 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... | 0 |
import org.apache.ambari.server.StaticallyInject;
* Static injection replacement to wait Persistence Service start.
// !!! don't use this anti-pattern. Use @StaticallyInject | 0 |
// such as EvaluationResults returned by DirectRunner. | 0 |
suite.addTest(TestStatefulConnManagement.suite()); | 0 |
public DelegateFileFilter(final FilenameFilter filter) {
public DelegateFileFilter(final FileFilter filter) {
public boolean accept(final File file) {
public boolean accept(final File dir, final String name) {
final String delegate = fileFilter != null ? fileFilter.toString() : filenameFilter.to... | 1 |
import org.w3c.dom.events.MouseEvent;
MouseEvent me = (MouseEvent)evt;
Element newTarget = (Element)me.getRelatedTarget();
Cursor cursor = CursorManager.DEFAULT_CURSOR;
if (newTarget != null)
cursor = CSSUtilities.convertCursor
(newTarg... | 0 |
public class Merge extends SelectiveBulkTest {
| 0 |
ClientContext.COOKIE_STORE,
getState());
context.setAttribute(
ClientContext.CREDS_PROVIDER, | 0 |
// FELIX-593: immediate attribute does not default to true all the
// times hence we only set it if declared in the tag
if (tag.getNamedParameter(Constants.COMPONENT_IMMEDIATE) != null) {
component.setImmediate(Boolean.valueOf(getBoolean(tag,
Constants.COMPON... | 0 |
package org.apache.accumulo.core.util.shell.commands;
import org.apache.accumulo.core.util.shell.Shell;
import org.apache.accumulo.core.util.shell.Shell.Command;
import org.apache.accumulo.core.util.shell.Token; | 0 |
private static final long serialVersionUID = -2520878285698255956L; | 0 |
import org.apache.sshd.common.util.ValidateUtils;
this.factory = ValidateUtils.checkNotNull(factory, "No factory"); | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Attic/UniqueFilterIterator.java,v 1.4 2002/10/12 22:15:18 scolebourne Exp $
* $Revision: 1.4 $
* $Date: 2002/10/12 22:15:18 $
* @version $Id: UniqueFilterIterator.java,v 1.4 20... | 0 |
* executed by the FlinkRunner. | 0 |
import org.apache.http.HttpException;
void requestReceived(HttpRequest request) throws HttpException, IOException; | 0 |
String ATTR_X_CHANNEL_SELECTOR = "xChannelSelector";
String ATTR_Y_CHANNEL_SELECTOR = "yChannelSelector"; | 0 |
* @deprecated - no longer needed, as it is identical to PropertyIterator.
* @version $Id: DynamicPropertyIterator.java,v 1.4 2004/01/23 01:10:20 dmitri Exp $ | 0 |
if (!buffer().hasRemaining() && this.ioctrl != null) {
this.ioctrl.suspendInput(); | 0 |
verify(impl, Mockito.times(2)).digestToStorageKey(key1);
verify(impl, Mockito.times(2)).digestToStorageKey(key2);
verify(impl, Mockito.times(2)).digestToStorageKey(key1);
verify(impl, Mockito.times(2)).digestToStorageKey(key2); | 0 |
import org.apache.accumulo.core.client.admin.TableOperations; | 0 |
package com.twitter.aurora.scheduler.state;
import javax.inject.Inject;
import com.google.common.collect.Iterables;
import com.twitter.aurora.gen.JobConfiguration;
import com.twitter.aurora.gen.Quota;
import com.twitter.aurora.gen.TaskConfig;
import com.twitter.aurora.scheduler.base.Query;
import com.twitter.aurora.... | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
final Request request = ObjectModelHelper.getRequest(service.getProcessInfoProvider().getObjectModel()); | 0 |
import org.apache.cocoon.template.expression.Subst;
private final Subst value; | 0 |
TabletLocationState tlState = s.next();
s.close();
return tlState; | 0 |
return output.apply(Flatten.pCollections()); | 0 |
.apply(Combine.perKey(new MovingMeanSellingPrice(10))) | 0 |
final Long repoVersionID = request.getRepositoryVersionId();
if (null == repoVersion && null == repoVersionID) {
ambariContext.createAmbariResources(topology, clusterName, securityType, repoVersion, repoVersionID); | 0 |
package com.twitter.mesos.scheduler.local; | 0 |
Shell.log.info(" The {} is always online.", RootTable.NAME);
Shell.log.info("Online of table {} {}", tableName, wait ? " completed." : " initiated..."); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/DynaBeanUtilsTestCase.java,v 1.19 2003/10/05 13:33:29 rdonkin Exp $
* $Revision: 1.19 $
* $Date: 2003/10/05 13:33:29 $
*
* Copyright (c) 2001-2003 The Apache Software Foundation. ... | 0 |
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class WriterOptions implements org.apache.thrift.TBase<WriterOptions, WriterOptions._Fields>, java.io.Serializable, Cloneable, Comparable<WriterOptions> {
public enum _Fields implements org.apache.thrift.TFieldIdEnum { | 0 |
* @author John Sirois
// TODO(John Sirois): reconsider exposing the db in this way - obvious danger here | 0 |
/*
* Copyright (C) 2014 Google Inc.
*
* 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 ... | 0 |
import java.util.Map;
Map.Entry<String, byte[]> encoding = extractEncodedSignature(data);
String keyType = encoding.getKey();
data = encoding.getValue(); | 0 |
@SuppressWarnings("serial")
@SuppressWarnings("unused") | 0 |
return this.xpathNodeSet == null || this.xpathNodeSet.contains(currentNode); | 0 |
@Override
protected int defaultTimeoutSeconds() {
return 4 * 60;
}
@Test | 0 |
public class PluginInvalidInputException extends PluginException { | 0 |
log.info("Copying {} to {}", line, localTmpPath);
log.info("Moving {} to the import directory {}", tmpFile, importDir);
log.info("Got output from listscans:\n{}", currentScans);
log.info("Retaining scan: {}", currentScan);
log.info("Ignoring scan because of wrong table: {}"... | 0 |
List<String> command = new ArrayList<>();
List<String> kinit = new ArrayList<>(); | 0 |
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.bcel.Constants; | 0 |
import org.junit.Before;
@Before
public void setUp() {
ResourceType.initializeEmptyCliArgsForTest();
}
| 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 (value == null) {
return;
}
if (value == null) {
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 ... | 0 |
/**
* Copyright 2016 Seznam a.s.
*
* 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... | 0 |
import org.w3c.dom.Node;
protected SVGOMStopElement() {
/**
* Returns a new uninitialized instance of this object's class.
*/
protected Node newNode() {
return new SVGOMStopElement();
} | 0 |
class ApexStreamTupleCoder<T> extends StandardCoder<ApexStreamTuple<T>> { | 0 |
import org.apache.aurora.scheduler.offers.OfferManager; | 0 |
import org.apache.ambari.view.validation.Validator;
* The main view class name.
*/
@XmlElement(name="validator-class")
private String validator;
/**
* The view validator class.
*/
private Class<? extends Validator> validatorClass = null;
/**
* Get the view validator class name.
*
* @ret... | 0 |
import org.apache.beam.sdk.coders.CustomCoder;
import org.apache.beam.sdk.extensions.euphoria.core.client.functional.VoidFunction;
import org.objenesis.strategy.StdInstantiatorStrategy; | 0 |
import org.apache.ambari.view.pig.utils.ServiceFormattedException;
thrown.expect(ServiceFormattedException.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... | 1 |
import org.apache.accumulo.core.client.ClientConfiguration; | 0 |
*
public final class ExceptionConverter {
private ExceptionConverter() {
public static FileSystemException generate(final DavException davExc) throws FileSystemException {
throws FileSystemException {
if (davExc.hasErrorCondition()) {
try {
if (DomUtil.matches(e... | 1 |
*
* <p>See the <a href="https://cloud.google.com/dataflow/model/combine">documentation</a>
* for how to use the operations in this class.
private Combine() {
// do not instantiate
}
* <p>Useful when using a {@code CombineFn} separately from a
* {@code Combine} transform. Does not invoke the
... | 0 |
// FELIX-3648 validation must fail (instead of just ignore)
throw componentMetadata.validationFailure( "updated method declaration requires DS 1.2 or later namespace " ); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/ClassConverter.java,v 1.2 2002/07/22 00:24:44 craigmcc Exp $
* $Revision: 1.2 $
* $Date: 2002/07/22 00:24:44 $
* @version $Revision: 1.2 $ $Date: 2002/07/22 00:24:44 $
*... | 0 |
import org.apache.batik.util.DoublyIndexedTable; | 0 |
import org.apache.beam.vendor.grpc.v1_13_1.com.google.protobuf.ByteString; | 0 |
import static org.junit.Assert.assertNotSame;
import java.util.Collections;
import org.apache.commons.configuration.tree.DefaultConfigurationNode;
BaseHierarchicalConfiguration clone =
(BaseHierarchicalConfiguration) config.clone();
assertNotSame("Synchronizer was not cloned", config.ge... | 0 |
public class SVGLineElementBridge extends SVGDecoratedShapeElementBridge { | 0 |
/** TODO: complete javadoc. */ | 0 |
* @version $Revision$ | 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 |
import java.util.concurrent.locks.Lock;
import com.google.common.util.concurrent.Striped;
/**
* When config groups are created using Blueprints these are created when
* hosts join a hostgroup and are added to the corresponding config group.
* Since hosts join in parallel there might be a race condition in c... | 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 |
* Copyright (c) 2002 The Apache Software Foundation. All rights | 0 |
* http://www.apache.org/licenses/LICENSE-2.0
/**
* Configuration settings for the HdfsFileSystem.
*
* @since 2.1
*/
public class HdfsFileSystemConfigBuilder extends FileSystemConfigBuilder
{
private static final HdfsFileSystemConfigBuilder BUILDER = new HdfsFileSystemConfigBuilder();
/**
* @retu... | 0 |
* @version $Id: JNDIConfiguration.java,v 1.2 2003/12/24 14:28:22 epugh Exp $
* object that is not a String/List.
* object that is not a String/List of Strings.
'\'' + key + "' doesn't map to a String/List object");
* Get a List of strings associated with the given configuration key.
... | 0 |
* Do not use in pipelines directly: most users should use {@link AvroIO.Read}.
*
* <p>A {@link FileBasedSource} for reading Avro files. | 0 |
"host1", System.currentTimeMillis()), "cluster1", "HBASE", false, false);
"host2", System.currentTimeMillis()), "cluster1", "HBASE", false, false);
.toString(), "host3", System.currentTimeMillis()), "cluster1", "HBASE", false, false);
.toString(), "host4", System.currentT... | 1 |
package org.apache.batik.ext.awt.image.rendered;
import org.apache.batik.ext.awt.image.renderable.PadMode; | 0 |
@NamedQuery(name = "ServiceConfigEntity.findLatestServiceConfigsByStack", query = "SELECT serviceConfig FROM ServiceConfigEntity serviceConfig WHERE serviceConfig.clusterId = :clusterId AND (serviceConfig.groupId = null OR serviceConfig.groupId IN (SELECT cg.groupId from ConfigGroupEntity cg)) AND serviceConfig.ver... | 0 |
* @param safe whether the engine is in safe-navigation mode
public boolean isSafeLhs(boolean safe) {
return jjtGetChild(0).isSafeLhs(safe);
if (rsibling instanceof ASTMethodNode || rsibling instanceof ASTFunctionNode) {
if (rsibling instanceof ASTIdentifierAccess
... | 0 |
import org.apache.atlas.RequestContext;
RequestContext requestContext = RequestContext.createContext();
requestContext.setUser(messageUser);
RequestContext.clear(); | 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 CVS $Id: SendMailTransformer.java,v 1.11 2004/05/26 01:46:53 joerg Exp $
* <a href="http://java.sun.com/products/javamail/1.3/docs/javadocs/com/sun/mail/smtp/package-summary.html">Java Mail API</a> | 0 |
import static org.apache.beam.sdk.schemas.Schema.toSchema;
import org.apache.beam.sdk.schemas.Schema; | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.