Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.beam.model.pipeline.v1.RunnerApi; | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.io.ByteStreams; | 0 |
* The comma separated list of tokens to exclude when processing sources.
* All entries should be relative to the project directory
*
* @parameter alias="excludes"
*/
private String sourceExcludes;
/**
this.pro... | 0 |
package cz.seznam.euphoria.operator.test.junit;
import cz.seznam.euphoria.guava.shaded.com.google.common.base.Preconditions;
import cz.seznam.euphoria.operator.test.junit.Processing.Type;
DataSource<I> dataSource = inputData.asListDataSource(bounded);
public ListDataSource<T> asListDataSource(boolean bounded... | 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 |
protected final Object id;
public BufferedIoOutputStream(Object id, IoOutputStream out) {
this.id = id;
}
public Object getId() {
return id;
IoWriteFutureImpl future = new IoWriteFutureImpl(getId(), buffer);
IoWriteFutureImpl future = writes.peek();
if (future ==... | 0 |
public RequestStatus deleteResourcesAuthorized(Request request, Predicate predicate) | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/text/CharacterIterator.java,v 1.6 2006/03/14 01:20:30 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... | 0 |
package org.apache.commons.digester3; | 1 |
private final SimpleFunction<Row, String> myValueTranslate = new SimpleFunction<Row, String>() { | 0 |
createNoMessagesStreamManager().commit(ImmutableList.of());
streamManager.commit(ImmutableList.of(saveFrameworkId, deleteJob));
streamManager.commit(ImmutableList.of(saveFrameworkId)); | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger log = LoggerFactory.getLogger(UtilWaitThread.class); | 0 |
out.println(" BundleId Component Name Default State");
out.println(" Component Id State PIDs (Factory PID)");
out.println( String.format( " [%1$4d] %2$s %3$s", desc.bundle.id, desc.name, desc.defaultEnabled ? "enabled" : "disabled" ) );
Collections.sort( configs, CONFI... | 0 |
public Integer createPrincipal(String principal, String password, boolean serivce) throws KerberosOperationException{
public boolean removePrincipal(String principal) throws KerberosOperationException { | 0 |
import org.apache.accumulo.server.cli.ClientOpts;
import com.beust.jcommander.Parameter;
static class Opts extends ClientOpts {
@Parameter(names="--readonly", description="read only")
boolean readonly = false;
@Parameter(names="--tables", description="number of tables to create")
int tables = 5;
... | 0 |
} catch (Throwable e) {
} catch (Throwable t) {
if (e instanceof IOException) {
throw (IOException) e;
} else if (e instanceof RuntimeException) {
throw (RuntimeException) e;
} else {
throw new IOException("Failed ("... | 0 |
import org.apache.hc.core5.http.ClassicHttpRequest;
import org.apache.hc.core5.http.ClassicHttpResponse;
import org.apache.hc.core5.http.impl.HttpProcessors;
import org.apache.hc.core5.http.io.entity.ByteArrayEntity;
import org.apache.hc.core5.http.io.entity.ContentType;
import org.apache.hc.core5.http.io.entity.Entity... | 1 |
/**
* TODO Add javadoc
*
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
* @version $Rev$, $Date$
*/ | 0 |
import org.apache.accumulo.core.client.Accumulo;
try (AccumuloClient c = Accumulo.newClient().from(getClientProperties()).build()) { | 0 |
* @since Commons IO 2.0
* @since Commons IO 2.0
* @since Commons IO 2.0 | 0 |
import org.apache.ambari.server.scheduler.ExecutionScheduler;
import org.apache.ambari.server.scheduler.ExecutionSchedulerImpl;
import org.apache.ambari.server.state.scheduler.RequestExecution;
import org.apache.ambari.server.state.scheduler.RequestExecutionFactory;
import org.apache.ambari.server.state.scheduler.Reque... | 0 |
import org.apache.cocoon.AbstractTestCase;
public abstract class ContainerTestCase extends AbstractTestCase {
super.setUp();
* @see org.apache.cocoon.AbstractTestCase#createBeanFactory()
*/
protected void createBeanFactory()
throws Exception {
super.createBeanFactory();
this.p... | 0 |
private static void expEqual(final Object o1, final Object o2)
private static void expNE(final Object o1, final Object o2)
final DefaultExpressionEngineSymbols s2 =
final DefaultExpressionEngineSymbols s1 =
final DefaultExpressionEngineSymbols symbols = builder().create();
final ... | 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 u... | 0 |
import org.apache.atlas.AtlasConfiguration;
public static final String ATLAS_HOOK_TOPIC = AtlasConfiguration.NOTIFICATION_HOOK_TOPIC_NAME.getString();
public static final String ATLAS_ENTITIES_TOPIC = AtlasConfiguration.NOTIFICATION_ENTITIES_TOPIC_NAME.getString(); | 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 |
* Executor based on {@link BeamSqlExpression} and {@link BeamSqlPrimitive}. {@code
* BeamSqlFnExecutor} converts a {@link BeamRelNode} to a {@link BeamSqlExpression}, which can be
* evaluated against the {@link Row}.
* {@link #buildExpression(RexNode)} visits the operands of {@link RexNode} recursively, and
* ... | 0 |
import org.apache.xml.security.exceptions.XMLSecurityException; | 0 |
byte[] bytes = content.getBytes("US-ASCII"); | 0 |
channel.waitFor(EnumSet.of(ClientChannel.ClientChannelEvent.CLOSED), TimeUnit.SECONDS.toMillis(35L)); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/Variables.java,v 1.3 2002/05/08 23:02:42 dmitri Exp $
* $Revision: 1.3 $
* $Date: 2002/05/08 23:02:42 $
* XPath can reference variables using the <code>"$varname"</code> syntax.
* To use... | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; | 0 |
private transient Object rootNode;
return name.toUpperCase(Locale.ENGLISH).startsWith(lang.toUpperCase(Locale.ENGLISH)); | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Predicates.notNull;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.FluentIterable; | 0 |
package org.apache.felix.dm.lambda.callbacks;
import java.util.Objects;
import org.apache.felix.dm.Component;
import org.osgi.framework.ServiceReference;
/**
* Represents a callback(Component, ServiceReference, Service, ServiceReference, Service) that is invoked on a Component implementation class.
* The type of ... | 0 |
import org.apache.commons.lang.StringUtils;
import static org.apache.commons.lang.StringUtils.defaultString;
@javax.persistence.Table(name = "servicecomponentdesiredstate")
@Column(name = "cluster_id", nullable = false, insertable = false, updatable = false, length = 10)
@Id
@Column(name = "service_name", nulla... | 0 |
/**
* type of conditional dependency
*/
protected String type = this.getClass().getSimpleName();
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
| 0 |
values.put(CSSConstants.CSS_VISIBLE_VALUE,
values.put(CSSConstants.CSS_HIDDEN_VALUE,
values.put(CSSConstants.CSS_COLLAPSE_VALUE,
return true;
return CSSConstants.CSS_VISIBILITY_PROPERTY; | 1 |
public AtlasRelationship getOrCreate(AtlasRelationship relationship) throws AtlasBaseException {
if (LOG.isDebugEnabled()) {
LOG.debug("==> getOrCreate({})", relationship);
}
validateRelationship(relationship);
AtlasVertex end1Vertex = getVertexFromEndPoint(relati... | 0 |
if (!builder.isSetExecutorConfig()) { | 0 |
public JSErrorReporter(Logger logger) { | 0 |
import java.util.List;
public List createHandlerTasks(final Event event)
private void handleEvent(List managers,
if (managers != null && managers.size() > 0 ) | 0 |
* Factory for {@link Request} instances.
/**
* Create a request instance.
*
* @param headers http headers
* @param uriInfo uri information
* @param requestType http request type
* @param resourceDefinition associated resource definition
* @return a new Request instan... | 1 |
import org.apache.cocoon.el.objectmodel.ObjectModel; | 0 |
* @version $Id$ | 0 |
checkCredentialProviders(conf, new HashMap<>()); | 0 |
import static org.apache.ambari.server.upgrade.UpgradeCatalog270.REQUEST_USER_NAME_COLUMN;
// updateRequestTable
Capture<DBAccessor.DBColumnInfo> updateRequestTableCapture = newCapture(CaptureType.ALL);
dbAccessor.addColumn(eq(REQUEST_TABLE), capture(updateRequestTableCapture));
expectLastCall().once();... | 0 |
package org.apache.ambari.view.commons.exceptions; | 0 |
import org.apache.felix.dm.DependencyManager;
mavenBundle().groupId("org.osgi").artifactId("org.osgi.compendium").version(Base.OSGI_SPEC_VERSION), | 0 |
* {@link CredentialHelper#asBase64String(TCredentials)}.
* the path to a file in the configured file system, containing the serialized, base-64 encoded {@link AuthenticationToken} with the user's
* authentication
* @see #setConnectorInfo(Job, String, AuthenticationToken)
* @see #setConn... | 0 |
handleGlobalsBackwardsCompability(request, propertiesAttributes);
Config config = createConfig(cluster, request.getType(), request.getProperties(),
request.getVersionTag(), propertiesAttributes);
return new ConfigurationResponse(cluster.getClusterName(), config.getType(), config.getTag(), confi... | 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 |
/*
* 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 |
* 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/DynaClass.java,v 1.3 2001/12/28 00:33:56 craigmcc Exp $
* $Revision: 1.3 $
* $Date: 2001/12/28 00:33:56 $
* @author Paulo Gaspar
* @version $Revision: 1.3 $ $Date: 2001/12/28 00:33... | 0 |
public SessionInputBufferImpl(
final HttpTransportMetricsImpl metrics,
final int buffersize) {
this(metrics, buffersize, buffersize, null, null);
}
| 0 |
@NamedQuery(name = "HostRoleCommandEntity.findTaskIdsByRequestStageIds", query = "SELECT command.taskId FROM HostRoleCommandEntity command WHERE command.stageId = :stageId AND command.requestId = :requestId"),
@NamedQuery(name = "HostRoleCommandEntity.removeByTaskIds", query = "DELETE FROM HostRoleCommandEntity... | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Lists;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.reflect.Invokable;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.reflect.Parameter;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.reflect.Typ... | 0 |
protected Class<?> getExpectedType() { | 0 |
* Copyright 2004-2005 The Apache Software Foundation.
package org.apache.cocoon.portal.coplets.basket.events;
import org.apache.cocoon.portal.coplets.basket.ContentStore;
* Remove an item from the content store
* @version CVS $Id: RemoveItemEvent.java 30941 2004-07-29 19:56:58Z vgritsenko $
public class RemoveItemE... | 0 |
try {
} catch (FileUploadException expected) { | 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... | 0 |
import org.apache.batik.anim.dom.SVGDOMImplementation; | 0 |
* </p>
* </p> | 0 |
/**
* Sets the completed status of this decoder. Normally this is not necessary
* (the decoder will automatically complete when the underlying channel
* returns EOF). It is useful to mark the decoder as completed if you have
* some other means to know all the necessary data has been read an... | 0 |
Boolean next(ServerSession session, Buffer buffer) throws Exception; | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap; | 0 |
return new FluentIterable<E>() {
return new FluentIterable<E>() {
return new FluentIterable<E>() {
return new FluentIterable<E>() {
if (IterableUtils.isEmpty(iterable)) {
return new FluentIterable<E>() {
return new FluentIterable<O>() {
... | 0 |
* Copyright 2001-2005 The Apache Software Foundation | 0 |
/** @deprecated Use commons logging */ | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
* @version $Id: ConfigurationKey.java,v 1.7 2004/12/23 18:42:25 oheger Exp $
/** Constant for a property delimiter.*/
public static final char PROPERTY_DELIMITER = '.';
/**
* Checks if this key is an attribute key.
*
* @return a flag if this key is an attribute key
*/
public ... | 0 |
package org.apache.felix.ipojo.runtime.core.test.components;
import foo.Foo;
@Foo(bar="bar")
public class OnlyFoo {
} | 0 |
Copyright 2000-2003 The Apache Software Foundation
String bu= "";
bu = getBaseURI();
String msg = "MalformedURLException:" + ex.getMessage() + ':' + bu;
throw new IllegalArgumentException( msg ); | 0 |
LoggerFactory.getLogger(AmbariActionExecutionHelper.class);
/*
* TODO Execution command field population should be (partially?)
* combined with the same code at createHostAction()
*/ | 0 |
* ./gradlew integrationTest -p sdks/java/io/elasticsearch -DintegrationTestPipelineOptions='[
* "--elasticsearchServer=1.2.3.4",
* "--elasticsearchHttpPort=9200"]'
* --tests org.apache.beam.sdk.io.elasticsearch.ElasticsearchIOIT
* -DintegrationTestRunner=direct | 0 |
throw new LocalVariableInfoInconsistentException("At bytecode offset '"+offset+
"' a local variable has two different names: '"+getName(offset)+"' and '"+name+"'.");
throw new LocalVariableInfoInconsistentException("At bytecode offset '"+offset+
"'... | 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 |
WindowedValue<Iterable<?>> sideInputValue =
(WindowedValue<Iterable<?>>) unionValue.getValue();
sideInputReader.addSideInputValue(sideInput, sideInputValue);
| 0 |
try (Scanner scan = conn.createScanner(RootTable.NAME, Authorizations.EMPTY)) { | 0 |
* @version $Revision$, $Date$ | 0 |
* A {@link OldDoFn} that does nothing with provided elements. Used for testing
* methods provided by the OldDoFn abstract class.
class NoOpDoFn<InputT, OutputT> extends OldDoFn<InputT, OutputT> {
public void processElement(OldDoFn<InputT, OutputT>.ProcessContext c) throws Exception {
public OldDoFn<InputT, Output... | 0 |
import org.apache.http.HttpEntity;
import org.apache.http.nio.entity.EntityAsyncContentProducer;
import org.apache.http.nio.entity.HttpAsyncContentProducer;
private final HttpEntity entity;
private final HttpAsyncContentProducer contentProducer;
final HttpEntity entity,
if (entity instanceof... | 0 |
MockScannerBase.MockIteratorEnvironment env =
new MockScannerBase.MockIteratorEnvironment(Authorizations.EMPTY); | 0 |
import org.apache.beam.runners.direct.DirectRunner.CommittedBundle;
import org.apache.beam.runners.direct.DirectRunner.UncommittedBundle; | 0 |
return new DefaultKeyValue<>(null, null);
return new DefaultKeyValue<>(key, value);
DefaultKeyValue<K, V> kv = new DefaultKeyValue<>();
kv = new DefaultKeyValue<>((K) key, (V) value);
final DefaultKeyValue<K, V> kv2 = new DefaultKeyValue<>(kv);
final Map<K, V> map = new H... | 1 |
} catch (IllegalArgumentException ex) {
throw new MalformedPathException(ex.getMessage()); | 0 |
setAttributeNS(XMLSupport.XML_NAMESPACE_URI,
XMLSupport.XML_LANG_ATTRIBUTE,
lang);
setAttributeNS(XMLSupport.XML_NAMESPACE_URI,
XMLSupport.XML_SPACE_ATTRIBUTE,
space); | 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 |
/*
* 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 u... | 0 |
active(ComponentConfigurationDTO.ACTIVE, true, true, true);
/**
* Set the activation failure reason
* @param e The exception which caused the activation to fail
*/
final StringWriter sw = new StringWriter();
final PrintWriter pw = new PrintWriter(sw);
e.printStackTrace... | 0 |
ViewConfig viewConfig = archiveUtility.getViewConfigFromExtractedArchive(extractedArchiveDirPath,
configuration.isViewValidationEnabled()); | 0 |
* @version $Id$ | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/test/org/apache/commons/digester/RuleTestCase.java,v 1.5 2001/10/11 00:28:42 craigmcc Exp $
* $Revision: 1.5 $
* $Date: 2001/10/11 00:28:42 $
* @version $Revision: 1.5 $ $Date: 2001/10/11 00:28:42 $
* It should ... | 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 org.apache.atlas.glossary.GlossaryService;
import org.apache.atlas.repository.ogm.profiles.AtlasSavedSearchDTO;
import org.apache.atlas.repository.ogm.profiles.AtlasUserProfileDTO;
import org.apache.atlas.repository.ogm.DTORegistry;
import org.apache.atlas.repository.ogm.DataAccess;
import org.apache.atlas.repos... | 0 |
* @author <a href="mailto:cjolif@ilog.fr">Christophe Jolif</a> | 1 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
import org.apache.accumulo.core.data.NamespaceId;
import org.apache.accumulo.core.data.TableId;
NamespaceId namespaceId = Namespaces.getNamespaceId(shellState.getContext(),
for (TableId tableId : Namespaces.getTableIds(shellState.getContext(), namespaceId)) { | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.