Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
public class AudioVisual
implements Item
{
public void setYearMade( int yearMade )
{
public void setCategory( String category )
{
public void setName( String name )
{
public void setDesc( String desc )
{
public void setRuntime( Integer runtime )
{
public void setType( String type )
{
public void print()
{
System.out.println( "AudioVisual:" );
System.out.println( " type=" + type );
System.out.println( " yearMade=" + yearMade );
System.out.println( " category=" + category );
System.out.println( " name=" + name );
System.out.println( " desc=" + desc );
System.out.println( " runtime=" + runtime );
} | 0 |
import org.apache.http.util.Args;
Args.notNull(authscope, "Scope"); | 0 |
return PCollection.<T>createPrimitiveOutputInternal(
input.getPipeline(), windowingStrategy, input.isBounded()); | 0 |
* @author <a href="mailto:bill.haneman@ireland.sun.com">Bill Haneman</a> | 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/test/org/apache/commons/jelly/tags/junit/SuiteTag.java,v 1.3 2003/10/09 21:21:31 rdonkin Exp $
* $Revision: 1.3 $
* $Date: 2003/10/09 21:21:31 $
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
* permission of the Apache Software Foundation.
* $Id: SuiteTag.java,v 1.3 2003/10/09 21:21:31 rdonkin Exp $
* @version $Revision: 1.3 $ | 0 |
package org.apache.hadoop.metadata.repository.graph; | 1 |
import com.google.cloud.dataflow.sdk.util.common.worker.StateSampler;
public ExecutionContext.StepContext createStepContext(
String stepName, String transformName, StateSampler stateSampler) { | 0 |
query.setParameter("mpackId", mpackId); | 0 |
} finally { //NOPMD | 0 |
public void handleInformationResponse(
final HttpResponse response) throws HttpException, IOException {
asyncExecCallback.handleInformationResponse(response);
}
@Override | 0 |
for (Object o : styleMap.keySet()) {
String styleName = (String) o;
if (element.getAttributeNS(null, styleName).length() == 0) {
(String) styleMap.get(styleName)); | 0 |
* The default {@link TcpipForwarderFactory} implementation.
* @see {@link DefaultTcpipForwarder}
public class DefaultTcpipForwarderFactory implements TcpipForwarderFactory {
public static final DefaultTcpipForwarderFactory INSTANCE = new DefaultTcpipForwarderFactory();
public DefaultTcpipForwarderFactory() {
super();
}
@Override
public TcpipForwarder create(ConnectionService service) {
return new DefaultTcpipForwarder(service);
} | 0 |
/** Internal translators for running Beam pipelines on Spark. */ | 1 |
@JsonProperty("repeat_tolerance")
private int repeatTolerance;
@JsonProperty("repeat_tolerance_enabled")
private Boolean repeatToleranceEnabled;
public int getRepeatTolerance() {
return repeatTolerance;
}
public void setRepeatTolerance(int repeatTolerance) {
this.repeatTolerance = repeatTolerance;
}
public Boolean getRepeatToleranceEnabled() {
return repeatToleranceEnabled;
}
public void setRepeatToleranceEnabled(Boolean repeatToleranceEnabled) {
this.repeatToleranceEnabled = repeatToleranceEnabled;
}
| 0 |
public void accept( final Visitor v ) { | 0 |
StateTag<?, ?> fooVarInt1 = StateTags.value("foo", VarIntCoder.of());
StateTag<?, ?> fooVarInt2 = StateTags.value("foo", VarIntCoder.of());
StateTag<?, ?> fooBigEndian = StateTags.value("foo", BigEndianIntegerCoder.of());
StateTag<?, ?> barVarInt = StateTags.value("bar", VarIntCoder.of());
StateTag<?, ?> fooVarInt1 = StateTags.bag("foo", VarIntCoder.of());
StateTag<?, ?> fooVarInt2 = StateTags.bag("foo", VarIntCoder.of());
StateTag<?, ?> fooBigEndian = StateTags.bag("foo", BigEndianIntegerCoder.of());
StateTag<?, ?> barVarInt = StateTags.bag("bar", VarIntCoder.of());
StateTag<?, ?> foo1 = StateTags.watermarkStateInternal(
StateTag<?, ?> foo2 = StateTags.watermarkStateInternal(
StateTag<?, ?> bar = StateTags.watermarkStateInternal(
StateTag<?, ?> bar2 = StateTags.watermarkStateInternal(
StateTag<?, ?> fooCoder1Max1 = StateTags.combiningValueFromInputInternal("foo", input1, maxFn);
StateTag<?, ?> fooCoder1Max2 = StateTags.combiningValueFromInputInternal("foo", input1, maxFn);
StateTag<?, ?> fooCoder1Min = StateTags.combiningValueFromInputInternal("foo", input1, minFn);
StateTag<?, ?> fooCoder2Max = StateTags.combiningValueFromInputInternal("foo", input2, maxFn);
StateTag<?, ?> barCoder1Max = StateTags.combiningValueFromInputInternal("bar", input1, maxFn); | 0 |
reason = "invalid character @" + i; | 0 |
import org.apache.batik.bridge.FilterPrimitiveBridge;
* @author <a href="mailto:Thierry.Kormann@sophia.inria.fr">Thierry Kormann</a>
public class SVGFeColorMatrixElementBridge implements FilterPrimitiveBridge,
SVGConstants { | 0 |
import java.util.HashMap;
import java.util.Map;
Map<String,String> variantMap = new HashMap<String,String>(src.getVariantMap());
variantMap.put(variantURI, variantURI);
variantMap);
resource);
for(String variantUri : root.getVariantMap().values()) { | 0 |
int offset, String tableName) throws Exception {
private static void verify(Connector connector, ConnectionInfo info, int rows, int cols,
int width, int offset, String colf, String tableName) throws Exception { | 0 |
import org.apache.accumulo.core.clientImpl.BaseIteratorEnvironment; | 0 |
} catch (Exception e) {
} catch (Exception e) { | 0 |
package org.apache.beam.runners.dataflow.util; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/ObjectCreateRule.java,v 1.8 2002/01/04 05:32:11 sanders Exp $
* $Revision: 1.8 $
* $Date: 2002/01/04 05:32:11 $
* @version $Revision: 1.8 $ $Date: 2002/01/04 05:32:11 $
if (digester.log.isDebugEnabled())
digester.log.debug("New " + realClassName);
if (digester.log.isDebugEnabled())
digester.log.debug("Pop " + top.getClass().getName()); | 0 |
import java.awt.Color;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
* @version CVS $Id: SVGSerializer.java,v 1.3 2003/03/24 14:33:57 stefano Exp $ | 0 |
import org.apache.beam.harness.test.TestExecutors;
import org.apache.beam.harness.test.TestExecutors.TestExecutorService; | 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ | 0 |
// IIS allows GET even if the file is non existend - so changed to COPY
// if (method.equals("GET"))
if (method.equals("COPY"))
// Again to be IIS compatible
// return hasAllowedMethods("POST");
return hasAllowedMethods("COPY"); | 0 |
@Test
public void authsTest() throws Exception {
Shell.log.debug("Starting auths test --------------------------");
exec("setauths x,y,z", false, "Missing required option");
exec("setauths -s x,y,z -u notauser", false, "user does not exist");
exec("setauths -s x,y,z", true);
exec("getauths -u notauser", false,"user does not exist");
exec("getauths", true,"y,z,x");
exec("addauths -u notauser", false,"Missing required option");
exec("addauths -u notauser -s foo", false,"user does not exist");
exec("addauths -s a", true);
exec("getauths", true, "y,z,a,x");
exec("setauths -c", true);
}
@Test
public void userTest() throws Exception {
Shell.log.debug("Starting user test --------------------------");
//exec("createuser root", false, "user exists");
} | 0 |
package org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.date;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.BeamSqlFnExecutorTestBase;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlExpression;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlPrimitive; | 0 |
package org.apache.cocoon.el.impl.javascript;
import org.apache.cocoon.components.expression.javascript.JavaScriptCompiler; | 0 |
/* $Id$
* | 0 |
import cz.seznam.euphoria.core.client.type.TypeAwareReduceFunctor;
import cz.seznam.euphoria.core.client.type.TypeAwareUnaryFunction;
import cz.seznam.euphoria.core.client.type.TypeHint;
public class ReduceByKey<IN, KEY, VALUE, OUT, W extends Window<W>>
@Override
public <KEY> DatasetBuilder2<IN, KEY> keyBy(
UnaryFunction<IN, KEY> keyExtractor, TypeHint<KEY> typeHint) {
return new DatasetBuilder2<>(name, input, TypeAwareUnaryFunction.of(keyExtractor, typeHint));
}
return reduceBy((Stream<VALUE> in, Collector<OUT> ctx) -> ctx.collect(reducer.apply(in)));
<OUT> SortableDatasetBuilder4<IN, KEY, VALUE, OUT> reduceBy(ReduceFunctor<VALUE, OUT> reducer);
default DatasetBuilder4<IN, KEY, VALUE, VALUE> combineBy(
CombinableReduceFunction<VALUE> reducer, TypeHint<VALUE> typeHint) {
return reduceBy(TypeAwareReduceFunctor.of(toReduceFunctor(reducer), typeHint));
}
public <VALUE> DatasetBuilder3<IN, KEY, VALUE> valueBy(
UnaryFunction<IN, VALUE> valueExtractor, TypeHint<VALUE> typeHint) {
return valueBy(TypeAwareUnaryFunction.of(valueExtractor, typeHint));
}
public <W extends Window<W>>
public static class DatasetBuilder5<IN, KEY, VALUE, OUT, W extends Window<W>>
| 0 |
return run(getOptions());
}
/** Like {@link #run} but with the given potentially modified options. */
public PipelineResult run(PipelineOptions options) {
pipelineResult = super.run(options); | 0 |
assertTrue(ioreactor.getStatus().compareTo(IOReactorStatus.SHUTTING_DOWN) >= 0); | 0 |
/*
Copyright 2002-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 or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.batik.dom.svg12;
import org.apache.batik.dom.AbstractDocument;
import org.apache.batik.dom.svg.SVGStylableElement;
import org.apache.batik.util.SVG12Constants;
import org.w3c.dom.Node;
/**
* This class implements the flowDiv element from SVG 1.2
*
* @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
* @version $Id$
*/
public class SVGOMFlowDivElement extends SVGStylableElement {
/**
* Creates a new BatikRegularPolygonElement object.
*/
protected SVGOMFlowDivElement() {
}
/**
* Creates a new BatikRegularPolygonElement object.
* @param prefix The namespace prefix.
* @param owner The owner document.
*/
public SVGOMFlowDivElement(String prefix, AbstractDocument owner) {
super(prefix, owner);
}
/**
* <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
*/
public String getLocalName() {
return SVG12Constants.SVG_FLOW_DIV_TAG;
}
/**
* Returns a new uninitialized instance of this object's class.
*/
protected Node newNode() {
return new SVGOMFlowDivElement();
}
} | 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 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 distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.cauldron.sigil.handlers;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IResource;
public interface IResourceCommandHandler {
Object execute(IResource[] resources, ExecutionEvent event) throws ExecutionException;
} | 0 |
public static MasterGoalState findByValue(int value) { | 0 |
public class TestAllPredicate extends AbstractTestAnyAllOnePredicate<Integer> { | 0 |
this.clusterName = clusterName;
this.serviceName = serviceName;
this.componentName = componentName;
this.desiredState = desiredState;
String desiredState, String componentCategory) {
return String.format("[clusterName=%s, serviceName=%s, componentName=%s, desiredState=%s, componentCategory=%s]",
clusterName, serviceName, clusterName, desiredState, componentCategory); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestList.java,v 1.9 2002/06/18 01:14:23 mas Exp $
* $Revision: 1.9 $
* $Date: 2002/06/18 01:14:23 $
* @version $Id: TestList.java,v 1.9 2002/06/18 01:14:23 mas Exp $
protected Collection makeConfirmedCollection() {
ArrayList list = new ArrayList();
return list;
}
protected Collection makeConfirmedFullCollection() {
ArrayList list = new ArrayList();
list.addAll(Arrays.asList(getFullElements()));
return list;
} | 0 |
.windowBy(Time.of(Duration.ofHours(1))) | 0 |
import com.google.common.collect.ImmutableList;
import com.twitter.mesos.scheduler.periodic.BootstrapTaskLauncher;
import com.twitter.mesos.scheduler.periodic.BootstrapTaskLauncher.Bootstrap;
import com.twitter.mesos.scheduler.periodic.GcExecutorLauncher;
import com.twitter.mesos.scheduler.periodic.GcExecutorLauncher.GcExecutor;
import com.twitter.mesos.scheduler.periodic.PeriodicTaskModule;
@CmdLine(name = "executor_gc_interval",
help = "Interval on which to run the GC executor on a host to clean up dead tasks.")
private static final Arg<Amount<Long, Time>> EXECUTOR_GC_INTERVAL =
Arg.create(Amount.of(1L, Time.HOURS));
@CmdLine(name = "gc_executor_path", help = "Path to the gc executor launch script.")
private static final Arg<String> GC_EXECUTOR_PATH = Arg.create(null);
bind(new TypeLiteral<Optional<String>>() {
}).annotatedWith(GcExecutor.class)
.toInstance(Optional.fromNullable(GC_EXECUTOR_PATH.get()));
bind(new TypeLiteral<PulseMonitor<String>>() {})
.annotatedWith(GcExecutor.class)
.toInstance(new PulseMonitorImpl<String>(EXECUTOR_GC_INTERVAL.get()));
bind(new TypeLiteral<PulseMonitor<String>>() {})
.annotatedWith(Bootstrap.class)
.toInstance(new PulseMonitorImpl<String>(EXECUTOR_DEAD_THRESHOLD.get()));
bind(new TypeLiteral<Supplier<Set<String>>>() {})
.to(new TypeLiteral<PulseMonitor<String>>() {});
@Provides
@Singleton
List<TaskLauncher> provideTaskLaunchers(
BootstrapTaskLauncher bootstrapLauncher,
GcExecutorLauncher gcLauncher,
SchedulerCore scheduler) {
return ImmutableList.of(bootstrapLauncher, gcLauncher, scheduler);
} | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbutils/src/java/org/apache/commons/dbutils/DbUtils.java,v 1.3 2004/01/11 22:30:38 dgraham Exp $
* $Revision: 1.3 $
* $Date: 2004/01/11 22:30:38 $
* Copyright (c) 2002-2004 The Apache Software Foundation. All rights | 0 |
* <p>Allows to set arbitrary username as HDFS user, which is used for reading Avro from HDFS. | 0 |
* <p>The {@link DatastoreIO} class provides an API to Read and Write a
* <p>Datastore is a fully managed NoSQL data storage service.
* <p>To use {@link DatastoreIO}, users must use gcloud to get credential for Datastore:
* <p>Note that the environment variable CLOUDSDK_EXTRA_SCOPES must be set
* <p>To read a {@link PCollection} from a query to Datastore, use
* <p>or:
* <p>Timestamped records are currently not supported.
* <p>Must be set, or it may result in an I/O error when querying | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
public Collection<HostComponentConfigMappingEntity> getHostComponentConfigMappingEntities() { | 0 |
// get the Document and make all namespace nodes visible in DOM space
XMLUtils.circumventBug2650(document);
*
* We don't use the factory because direct instantiation should be a
* little bit faster... | 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 this file except in compliance with
the License. You may obtain a copy of the License at | 0 |
Collections.sort(spanList, (o1, o2) -> (int) (o1.start - o2.start)); | 0 |
package org.apache.commons.vfs2.provider.local;
import org.apache.commons.vfs2.FileName;
import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.FileType;
import org.apache.commons.vfs2.provider.AbstractFileNameParser;
import org.apache.commons.vfs2.provider.UriParser;
import org.apache.commons.vfs2.provider.VfsComponentContext; | 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongListList.java,v 1.2 2003/04/13 22:30:56 rwaldhoff Exp $
import org.apache.commons.collections.primitives.RandomAccessLongList;
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:56 $
List list = LongListList.wrap(new RandomAccessLongList() { | 0 |
target.addEventListener("DOMActivate", activateListener, false);
svgAbortListener, false);
target.removeEventListener("DOMActivate", activateListener, false); | 0 |
public Class<?>[] getExceptions() {
Class<?>[] cs = new Class[1 + ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.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 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.yarn.server.applicationhistoryservice.timeline;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
import org.apache.hadoop.service.Service;
@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface TimelineStore extends
Service, TimelineReader, TimelineWriter {
} | 0 |
public static final String SOLR_IMPLICIT_ROUTING_PROPERTY = "logfeeder.solr.implicit.routing"; | 0 |
* @param <J> the type of the keys to put in this map
* @param <K> the type of the keys to get in this map
* @param <U> the type of the values to put in this map
* @param <V> the type of the values to get in this map | 0 |
// We cannot import the default package, so return null in that case.
if (pkgName.length() == 0)
{
return null;
}
| 0 |
CleanupTimer<InputT> cleanupTimer, | 0 |
private static final Logger LOG = LoggerFactory.getLogger(HiveActor.class);
@Override
final public void onReceive(Object message) throws Exception {
HiveMessage hiveMessage = new HiveMessage(message);
if (LOG.isDebugEnabled()) {
LOG.debug("Received message: " + message.getClass().getName() + ", generated id: " + hiveMessage.getId() +
" sent by: " + sender() + ", recieved by" + self());
handleMessage(hiveMessage);
if (LOG.isDebugEnabled()) {
LOG.debug("Message submitted: " + hiveMessage.getId());
}
}
public abstract void handleMessage(HiveMessage hiveMessage); | 0 |
new String(decryptBytes, "ASCII")); | 0 |
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.apache.xml.security.exceptions.XMLSecurityException;
import org.apache.xml.security.stax.ext.stax.XMLSecAttribute;
import org.apache.xml.security.stax.ext.stax.XMLSecEvent;
import org.apache.xml.security.stax.ext.stax.XMLSecEventFactory;
import org.apache.xml.security.stax.ext.stax.XMLSecNamespace;
import org.apache.xml.security.stax.ext.stax.XMLSecStartElement; | 0 |
import org.apache.beam.sdk.transforms.windowing.TimestampCombiner;
// The TimestampCombiner is set to ensure the GroupByKey does not shift elements forwards in
// time.
.withTimestampCombiner(TimestampCombiner.EARLIEST) | 0 |
this.handleBeanInclude(parserContext, Constants.CLASSPATH_SPRING_CONFIGURATION_LOCATION, true);
this.handleBeanInclude(parserContext, Constants.CLASSPATH_SPRING_CONFIGURATION_LOCATION + "/" + runningMode, true);
this.handleBeanInclude(parserContext, springConfigLocation, true);
this.handleBeanInclude(parserContext, springConfigLocation + "/" + runningMode, true); | 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 this file except in compliance with
* the License. You may obtain a copy of the License at | 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. | 0 |
String baseURI = profile.getBaseURI(); | 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.xml.security.transforms;
/**
*
* @author $Author$
*/
public interface TransformParam {
} | 0 |
import com.google.cloud.dataflow.sdk.io.BigQueryIO.Write.WriteDisposition;
.withCreateDisposition(CreateDisposition.CREATE_IF_NEEDED)
.withWriteDisposition(WriteDisposition.WRITE_APPEND)); | 0 |
/** @param workerWorkingDirectory */
* Clean up the files that have been created on the local worker file system. Without this expect
* both performance issues and eventual failure
*
LOG.info(
String.format(
"Log Files for process: %s outFile was: %s errFile was: %s",
params, outFileLocation, errFileLocation)); | 1 |
*/
public abstract class JsrInstruction extends BranchInstruction implements UnconditionalBranch,
TypedInstruction, StackProducer {
JsrInstruction(short opcode, InstructionHandle target) {
super(opcode, target);
}
/**
* Empty constructor needed for the Class.newInstance() statement in
* Instruction.readInstruction(). Not to be used otherwise.
*/
JsrInstruction() {
}
/** @return return address type
*/
public Type getType( ConstantPoolGen cp ) {
return new ReturnaddressType(physicalSuccessor());
}
/**
* Returns an InstructionHandle to the physical successor
* of this JsrInstruction. <B>For this method to work,
* this JsrInstruction object must not be shared between
* multiple InstructionHandle objects!</B>
* Formally, there must not be InstructionHandle objects
* i, j where i != j and i.getInstruction() == this ==
* j.getInstruction().
* @return an InstructionHandle to the "next" instruction that
* will be executed when RETurned from a subroutine.
*/
public InstructionHandle physicalSuccessor() {
InstructionHandle ih = this.target;
// Rewind!
while (ih.getPrev() != null) {
ih = ih.getPrev();
}
// Find the handle for "this" JsrInstruction object.
while (ih.getInstruction() != this) {
ih = ih.getNext();
}
InstructionHandle toThis = ih;
while (ih != null) {
ih = ih.getNext();
if ((ih != null) && (ih.getInstruction() == this)) {
throw new RuntimeException("physicalSuccessor() called on a shared JsrInstruction.");
}
}
// Return the physical successor
return toThis.getNext(); | 0 |
public static final String RELATIONSHIPTYPE_LABEL_KEY = "relationshipLabel"; | 0 |
import org.apache.hc.core5.http.ContentType;
request.setEntity(new InputStreamEntity(new ByteArrayInputStream(new byte[] {'a'}), -1, ContentType.DEFAULT_TEXT));
request.setEntity(new InputStreamEntity(new ByteArrayInputStream(new byte[] {'a'}), -1, ContentType.DEFAULT_TEXT)); | 0 |
actions.set(Actions.INVOKE_BUNDLE_EVENT_HOOK, eh, event, contexts); | 0 |
if (log.isDebugEnabled()) {
log.debug("Waiting for {} bytes on {}", Integer.valueOf(len), name);
} | 0 |
* or more contributor license agreements. See the NOTICE file
* regarding copyright ownership. The ASF licenses this file
* with the License. You may obtain a copy of the License at
* KIND, either express or implied. See the License for the | 0 |
lu.getStringValue().equalsIgnoreCase(CSS_NORMAL_VALUE)) {
!value.equalsIgnoreCase(CSS_NORMAL_VALUE)) { | 0 |
package org.apache.felix.sigil.model.common; | 0 |
HdfsApi api = HdfsApi.connectToHDFSApi(context); | 0 |
* @version $Id$ | 0 |
private <ReturnT> ReturnT getProviderResult(Function<SchemaProvider, ReturnT> f)
throws NoSuchSchemaException {
ReturnT result = f.apply(provider); | 0 |
import cz.seznam.euphoria.core.client.functional.UnaryFunction;
/**
* Window time assigner extracts timestamp from given element.
*/
UnaryFunction<IN, Long> getEventTimeAssigner();
| 0 |
package cz.seznam.euphoria.flink.batch;
import cz.seznam.euphoria.core.client.io.DataSource;
import cz.seznam.euphoria.core.executor.FlowUnfolder;
import cz.seznam.euphoria.flink.FlinkOperator;
import cz.seznam.euphoria.flink.batch.io.DataSourceWrapper;
import org.apache.flink.api.java.DataSet;
class InputTranslator implements BatchOperatorTranslator<FlowUnfolder.InputOperator> {
@Override
public DataSet translate(FlinkOperator<FlowUnfolder.InputOperator> operator,
BatchExecutorContext context)
{
// get original datasource from operator
DataSource<?> ds = operator.output().getSource();
return context.getExecutionEnvironment()
.createInput(new DataSourceWrapper<>(ds))
.setParallelism(operator.getParallelism());
}
} | 0 |
import java.lang.reflect.InvocationTargetException;
conf = (Configuration) Class.forName(className).getDeclaredConstructor().newInstance();
} catch (InstantiationException
| IllegalAccessException
| NoSuchMethodException
| InvocationTargetException e) { | 0 |
* org.w3c.dom.svg.SVGAnimatedLength} interface. | 0 |
@XmlElement(name = "NodeRangeExpressions", required = true) | 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 this file except in compliance with
* the License. You may obtain a copy of the License at | 0 |
public interface SshAgent extends java.nio.channels.Channel { | 0 |
*
*
*
/**
* A tag which creates a List implementation and optionally
* The exact implementation of List can be specified via the
*
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
| 1 |
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
* permission of the Apache Software Foundation. | 0 |
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly; | 0 |
import org.apache.felix.http.base.internal.dispatch.DispatcherServlet; | 0 |
instanceName =
InstanceOperationsImpl.lookupInstanceName(zooCache, UUID.fromString(getInstanceID())); | 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* @version CVS $Id: PlainIntegerConvertor.java,v 1.4 2004/03/05 13:02:28 bdelacretaz Exp $ | 1 |
import java.sql.Timestamp;
private Timestamp timestamp = null;
| 0 |
package org.apache.felix.bundlerepository; | 1 |
PTransform<PCollection<T>, PCollection<List<T>>> of(int count, C compareFn) {
PTransform<PCollection<T>, PCollection<List<T>>> smallest(int count) {
PTransform<PCollection<T>, PCollection<List<T>>> largest(int count) { | 0 |
PaneInfo.ON_TIME_AND_ONLY_FIRING); | 0 |
indexer.commit(management);
graph.commit(); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.