Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
package org.apache.cocoon.spring.impl; | 0 |
import java.io.File;
import java.io.FileOutputStream;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PrivateKey;
import java.security.PublicKey;
import javax.crypto.SecretKey;
import javax.xml.parsers.DocumentBuilder;
import org.apache.xml.security.signature.XMLSignature;
im... | 0 |
public static final Comparator NATURAL_COMPARATOR = ComparableComparator.<Comparable>comparableComparator();
return BooleanComparator.booleanComparator(trueFirst); | 0 |
@Override
@Override
@Override | 0 |
import java.io.IOException;
public void testProcessURL_securityNotSetup() throws Exception {
URLStreamProvider urlStreamProvider = createMockBuilder(URLStreamProvider.class).
withConstructor(Integer.TYPE, Integer.TYPE, String.class, String.class, String.class).
withArgs(1000, 1000, null, null, nu... | 0 |
* .filter(new Predicate<Integer>() {
* @see org.apache.commons.collections4.iterators.CollatingIterator
* @see org.apache.commons.collections4.iterators.CollatingIterator
* FluentIterable<E> someIterable = ...; | 0 |
* Abstract server side message exchange handler.
*
/**
* Triggered to supply a request consumer to process the incoming request.
* @param request the request message.
* @param entityDetails the request entity details.
* @param context the actual execution context.
* @return the request co... | 0 |
@VisibleForTesting
class WrappedContext implements FlinkExecutableStageContext {
@VisibleForTesting FlinkExecutableStageContext context; | 0 |
public AbstractSVGAnimatedLength(AbstractElement elt,
String ns,
String ln,
short dir,
boolean nonneg) { | 0 |
assertTrue(reduce.getPartitioning().hasDefaultPartitioner());
assertTrue(!reduce.getPartitioning().hasDefaultPartitioner());
assertTrue(!reduce.getPartitioning().hasDefaultPartitioner());
assertTrue(reduce.getPartitioning().hasDefaultPartitioner());
assertTrue(!reduce.getPartitioning().hasDefaultPar... | 0 |
enum RequestProtocolError { | 0 |
import org.apache.http.annotation.NotThreadSafe;
@NotThreadSafe | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractShortArrayList.java,v 1.7 2003/01/11 21:28:02 rwaldhoff Exp $
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* any, must includ... | 0 |
* This <code>SignedInfo</code> element includes the canonicalization algorithm, | 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 |
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof VolumeChooserEnvironment)) {
return false;
}
VolumeChooserEnvironment other = (VolumeChooserEnvironment) obj;
if (other.hasTableId... | 0 |
public void testRunReturnDifferentRequestId() throws IOException {
thrown.expect(RuntimeException.class);
thrown.expectMessage(Matchers.containsString(
"If you want to submit a new job in parallel, try again with a different name."));
ArgumentCaptor<Job> jobCaptor = ArgumentCaptor.forClass(Job.cl... | 0 |
import javax.persistence.RollbackException;
import org.apache.ambari.server.orm.dao.HostConfigMappingDAO;
import org.apache.ambari.server.orm.entities.HostConfigMappingEntity;
import org.apache.ambari.server.state.DesiredConfig;
@Inject
private HostConfigMappingDAO hostConfigMappingDAO;
Collection<Clus... | 0 |
* @version $Revision$ | 0 |
}
public class T210 {
public void npe() {
throw new NullPointerException("NPE");
}
}
@Test
public void test210() throws Exception {
JexlContext jc = new MapContext();
jc.set("v210", new T210());
JexlEngine jexl;
JexlScript e;
Obj... | 0 |
final Location loc = new Location( sde.getSourceLocation(), -1, 0 ); | 0 |
Copyright 2002 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 a... | 0 |
package cz.seznam.euphoria.flink;
import cz.seznam.euphoria.core.client.dataset.Dataset;
import cz.seznam.euphoria.core.client.dataset.windowing.Time;
import cz.seznam.euphoria.core.client.dataset.windowing.Windowing;
import cz.seznam.euphoria.core.client.flow.Flow;
import cz.seznam.euphoria.core.client.io.ListDataSin... | 0 |
import org.apache.beam.sdk.values.BeamRecord;
@Override public BeamSqlPrimitive evaluate(BeamRecord inputRow) { | 0 |
package org.apache.felix.ipojo.test.scenarios.service.dependency.filter; | 0 |
} else {
throw new RuntimeException("Cannot infer schema from unparameterized collection.");
} else {
throw new RuntimeException("Cannot infer schema from unparameterized map."); | 0 |
package org.apache.cocoon.thread.impl; | 0 |
import java.util.TreeSet;
import org.apache.hadoop.io.Text;
private final TreeSet<Text> splits;
public CopyTable() {
splits = new TreeSet<Text>();
for (int i = 1; i < 10; i++) {
splits.add(new Text(Integer.toString(i)));
}
}
state.getConnector().tableOperations().addSplits(dstTableN... | 0 |
public static boolean isMethodInvocationConvertible(Class<?> formal,
Class<?> actual,
public static boolean isStrictMethodInvocationConvertible(Class<?> formal,
Class<?> actual,
} | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
package org.apache.atlas.typesystem.types;
import org.apache.atlas.MetadataException;
import org.apache.atlas.typesystem.ITypedInstance; | 1 |
import com.google.api.client.util.Base64;
import org.apache.beam.sdk.util.SerializableUtils; | 0 |
// Passing this exception forward so we can provide the more useful error message | 0 |
import org.apache.accumulo.server.rpc.TServerUtils; | 1 |
List<String> fail = client.bulkImportFiles(Tracer.traceInfo(), master.rpcCreds(), tid,
tableId.canonicalID(), attempt1, errorDir, setTime); | 0 |
public FileBasedBuilderParametersImpl(final FileHandler handler)
final Map<String, ?> params)
final Map<String, ?> params, final boolean createIfMissing)
public static FileBasedBuilderParametersImpl fromMap(final Map<String, ?> map)
final FileBasedBuilderParametersImpl params =
... | 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.Map;
// for(String aName : DType.fieldMapping().fields.keySet()) {
// System.out.println(String.format("nameToQualifiedName.put(\"%s\", \"%s\");", aName, DType.getQualifiedName(aName)));
// }
Map<String,String> nameToQualifiedName = new HashM... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//fileupload/src/java/org/apache/commons/fileupload/DefaultFileItem.java,v 1.13 2002/08/22 04:41:29 martinc Exp $
* $Revision: 1.13 $
* $Date: 2002/08/22 04:41:29 $
* request an {@link java.io.InputStream InputStream} with
* {@lin... | 0 |
log.warn("{} not shutdown; did you forget to call close()?", MultiTableBatchWriterImpl.class.getSimpleName());
log.error("{} internal error.", MultiTableBatchWriterImpl.class.getSimpleName() , mre);
log.error("Unexpected exception when fetching table id for {}", tableName);
log.error("Unexpect... | 0 |
private final Random random;
* @param initialBackoff the initial amount of time to backoff
* @param random An instance of the random util which can be used for applying jitter to backoff.
public TruncatedBinaryBackoff(
Amount<Long, Time> initialBackoff,
Amount<Long, Time> maxBackoff,
boolean... | 0 |
import org.apache.hc.core5.function.Decorator;
import org.apache.hc.core5.reactor.IOEventHandlerFactory;
private Decorator<IOSession> ioSessionDecorator;
* Assigns {@link IOSession} {@link Decorator} instance.
public final H2RequesterBootstrap setIOSessionDecorator(final Decorator<IOSession> ioSessionDecor... | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables; | 0 |
analyzer.setProperties( properties );
| 0 |
* @version $Id$ | 0 |
expect(clusterMock.getClusterName()).andReturn("clusterone").atLeastOnce();
assertTrue("URLConnection's URL did not have the expected query parameter string",
httpURLConnection.getURL().getQuery().contains("clusters=clusterone"));
expect(clusterMock.getClusterName()).andReturn("clusterone").atLeastOnc... | 0 |
*
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
import org.apache.accumulo.test.randomwalk.Environment;
protected void runLater(State state, Environment env) throws Exception {
BulkPlusOne.bulkLoadLots(log, state, env, negOne); | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables;
import org.apache.beam.vendor.guava.v26_0_jre.com.googl... | 0 |
String attributeName = attribute.getName();
AtlasType dataType = attribute.getAttributeType();
Object value = entityObj.getAttribute(attributeName);
String fieldName = objName + "." + attributeName;... | 0 |
contentLength, Long.valueOf(resource.length())); | 0 |
okEmptyResponse(notScheduledCronMessage(JOB_KEY)),
private static Response okEmptyResponse(String message) {
return Responses.empty()
.setResponseCode(OK)
.setDetails(ImmutableList.of(new ResponseDetail(message)));
}
| 0 |
addChannel(new ChannelEntry(channel, sessionRequest));
prepareSocket(socketChannel.socket()); | 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 |
import com.google.cloud.dataflow.sdk.values.PBegin;
public static class Read extends PTransform<PBegin, PCollection<Row>> {
public PCollection<Row> apply(PBegin input) {
public void validate(PBegin input) { | 0 |
public void testRequirementFilter() throws Exception
{
RequirementImpl r = new RequirementImpl();
r.setFilter("(&(package=foo.bar)(version>=0.0.0)(version<3.0.0))");
assertEquals("(&(package=foo.bar)(!(version>=3.0.0)))", r.getFilter());
r.setFilter("(&(package=javax.transactio... | 0 |
* @author $Id$ | 0 |
entitygen.deserialize(null, null);
entitygen.deserialize(new HttpDataReceiverMockup(new byte[] {}) , null);
HttpEntity entity = entitygen.deserialize(datareceiver, message);
entity = entitygen.deserialize(datareceiver, message);
HttpEntity entity = entitygen.deserialize(d... | 0 |
/* ====================================================================
* Copyright (c) 1999-2004 The Apache Software Foundation. All rights
* @version $Revision: 1.11 $ $Date: 2004/01/14 21:43:15 $ | 0 |
Collections.EMPTY_MAP, | 0 |
if ("1.6".compareTo(s) <= 0) {
outlinesPositioned = true;
drawGlyphVectorWorks = false; // [GA] not verified; needs further research
glyphVectorTransformWorks = true;
} else if ("1.4".compareTo(s) <= 0) { | 0 |
/**
* Copyright 2013 Apache Software Foundation | 0 |
/**
import org.apache.accumulo.core.iterators.user.IndexedDocIterator;
* This class remains here for backwards compatibility.
* @deprecated since 1.4
* @see org.apache.accumulo.core.iterators.user.IndexedDocIterator
public class FamilyIntersectingIterator extends IndexedDocIterator { | 0 |
* Autogenerated by Thrift Compiler (0.11.0)
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)") | 0 |
import org.apache.ambari.logfeeder.common.ConfigHandler;
import org.apache.ambari.logfeeder.conf.LogFeederProps;
import org.apache.ambari.logfeeder.loglevelfilter.LogLevelFilterHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
protec... | 0 |
import org.apache.cocoon.portal.impl.AbstractLogEnabled; | 0 |
List<E> subList = getCollection().subList(1, 3);
} catch (UnsupportedOperationException e) { | 0 |
.addByteField("f_byte")
.addInt16Field("f_int16")
.addInt32Field("f_int32")
.addInt64Field("f_int64")
.addDecimalField("f_decimal")
.addFloatField("f_float")
.addDoubleField("f_double")
.addStringField("f_string")
.addDateTimeField("f_datetime")
... | 0 |
* @author Gary Gregory
* @version $Id: Metaphone.java,v 1.9 2003/11/07 22:38:03 ggregory Exp $
while ((mtsz < this.getMaxCodeLen()) && (n < wdsz)) { // max code size of 4 works well
if (mtsz > this.getMaxCodeLen()) { code.setLength(this.getMaxCodeLen()); }
public String encode(String pString) ... | 0 |
private final StateSpec<ValueState<Integer>> intState = | 0 |
public boolean isRedirectRequested( | 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 2000-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 applic... | 0 |
* {@link org.apache.commons.net.nntp.NNTPReply#SERVICE_DISCONTINUED NNTPReply.SERVICE_DISCONTINUED }
* response (NNTP reply code 400) to a | 0 |
import org.apache.beam.sdk.PipelineResult;
import org.apache.beam.sdk.runners.AggregatorRetrievalException;
import org.apache.beam.sdk.runners.AggregatorValues;
import org.apache.beam.sdk.transforms.Aggregator;
* Result of executing a {@link org.apache.beam.sdk.Pipeline} with Flink. This
* {@link org.apache.beam.sdk.... | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
import org.apache.beam.vendor.guava.v20_0.com.google.common.hash.Hashing; | 0 |
import org.apache.beam.sdk.extensions.gcp.options.GcpOptions; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastTreeMap.java,v 1.2 2001/04/20 16:54:04 rwaldhoff Exp $
* $Revision: 1.2 $
* $Date: 2001/04/20 16:54:04 $
import java.util.Map;
* @version $Id: TestFastTreeMap.java,v 1.2... | 0 |
* Copyright 2001-2006 The Apache Software Foundation | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
import org.apache.accumulo.core.security.thrift.AuthInfo;
Connector conn = WalkingSecurity.get(state).getSystemConnector();
AuthInfo auth;
target = WalkingSecurity.get(state).getTabUserName();
auth = WalkingSecurity.get(state).getTabAuthInfo();
target = WalkingSecurity.get(state).getSysUs... | 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 |
* Commons chars used by HTTP/1.1 protocol.
* @since 5.0
public final class Chars {
private Chars() { | 0 |
* @version CVS $Id: Form.java,v 1.11 2004/04/23 23:33:48 joerg Exp $ | 0 |
* Copyright 2016 Seznam.cz, a.s. | 0 |
Assert.assertEquals(HttpStatus.SC_OK, response.getCode());
Assert.assertEquals(HttpStatus.SC_OK, response.getCode());
Assert.assertEquals(HttpStatus.SC_OK, response.getCode());
Assert.assertEquals(HttpStatus.SC_OK, response.getCode()); | 0 |
return this.aspectDataHandler.getPersistentAspectDatas(this); | 0 |
import org.apache.accumulo.core.client.MultiTableBatchWriter;
import org.apache.accumulo.core.client.MutationsRejectedException;
// We have resources we need to clean up
if (state.isMultiTableBatchWriterInitialized()) {
MultiTableBatchWriter mtbw = state.getMultiTableBatchWriter();
try {
mtb... | 0 |
import org.apache.http.nio.reactor.IOSession;
public class BasicNIOPoolEntry extends PoolEntry<HttpHost, IOSession> {
public BasicNIOPoolEntry(final String id, final HttpHost route, final IOSession conn) { | 0 |
X509AuthenticationProvider x509p = new X509AuthenticationProvider();
authenticationProviders.put(x509p.getScheme(), x509p); | 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.dataImpl.KeyExtent; | 0 |
import com.google.cloud.dataflow.sdk.util.NullSideInputReader;
DataflowExecutionContext executionContext,
DataflowExecutionContext executionContext,
DataflowExecutionContext executionContext,
NullSideInputReader.empty(), | 0 |
// TODO(William Farner): Consider using timestamps instead and allowing exposure of live
// TODO(William Farner): Upgrade this to CacheBuilder. Current use case will not cleanly
// translate to CacheBuilder until Guava R11, which will introduce CacheBuilder#build(). | 0 |
if ("bigDecimalProperty".equals(columnName)) {
} else if ("booleanProperty".equals(columnName)) {
} else if ("byteProperty".equals(columnName)) {
} else if ("dateProperty".equals(columnName)) {
} else if ("doubleProperty".equals(columnName)) {
} else if ("floatProperty".e... | 0 |
import java.security.Provider;
public DOMManifest(Element manElem, XMLCryptoContext context,
Provider provider) throws MarshalException {
refs.add(new DOMReference(refElem, context, provider)); | 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.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
import org.apache.hc.core5.http.io.ResponseHandler;
@Contract(threading = ThreadingBehavior.SAFE_CONDITIONAL) | 0 |
import cz.seznam.euphoria.core.client.functional.StateFactory;
import cz.seznam.euphoria.core.client.operator.state.State;
import cz.seznam.euphoria.core.client.operator.state.StateStorageProvider;
final StateStorageProvider storageProvider;
final StateFactory stateFactory;
StateFactory stateFactory,
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.