Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.beam.sdk.extensions.sql.SqlTransform;
PCollection<Row> rows = getTestPCollection().apply(SqlTransform.query(sql)); | 0 |
*/
/**
* Empty constructor needed for the Class.newInstance() statement in
* Instruction.readInstruction(). Not to be used otherwise.
*/
IF_ACMPNE() {
}
public IF_ACMPNE(InstructionHandle target) {
super(org.apache.bcel.Constants.IF_ACMPNE, target);
}
/**
* @ret... | 0 |
*
* @deprecated use {@link RedirectStrategy}
@Deprecated | 0 |
import com.yahoo.zookeeper.ZooDefs;
if(request.type == ZooDefs.OpCode.sync){
if(zks.leader.syncHandler.containsKey(request.sessionId)){
zks.leader.processSync(request);
}
else{
nextProcessor.processRequest(request);
zks.commitProcessor.commit(request);
... | 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//digester/src/java/org/apache/commons/digester/xmlrules/DigesterRulesSource.java,v 1.4 2003/10/05 14:59:33 rdonkin Exp $
* $Revision: 1.4 $
* $Date: 2003/10/05 14:59:33 $
* =========================================================... | 0 |
Future<?> task = service.submit((Runnable) () -> {
try {
closeable.close();
} catch (IOException e) {
throw new RuntimeException(e); | 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 ap... | 1 |
package org.apache.beam.runners.core.construction; | 0 |
import org.apache.accumulo.core.conf.DefaultConfiguration;
.forFile(files.toString() + "/bulk_" + i + "." + RFile.EXTENSION, fs, fs.getConf()).withTableConfiguration(DefaultConfiguration.getInstance())
.build(); | 0 |
import org.apache.ambari.server.security.authorization.UserType;
userEntity = userDAO.findUserByNameAndType(userName, UserType.JWT);
}
if (userEntity == null) { | 0 |
public boolean meet = true; | 0 |
targethost = new HttpHost(virtualhost,
targethost.getPort(), targethost.getScheme()); | 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 |
@Test
public void testCreateTableHiveProcessNameAttribute() throws Exception {
//test if \n is trimmed from name attribute of the process entity
String tableName = tableName();
String tableName2 = tableName();
String name = String.format("create table %s (id string)", tableName2);... | 0 |
public PCollectionTuple expand(PCollection<InputT> input) {
public PCollection<KeyedWorkItem<KeyT, InputT>> expand(PCollection<KV<KeyT, InputT>> input) {
public PCollectionTuple expand( | 0 |
* @version $Revision$ $Date$ | 0 |
final String app = "tracer";
Accumulo.setupLogging(app); | 0 |
for (int statusCode : statusCodes) {
HttpVersion.HTTP_1_1, statusCode, "Unreasonable"); | 0 |
* A {@link PTransformMatcher} which matches a {@link Flatten.PCollections} which
return (application.getTransform() instanceof Flatten.PCollections) | 0 |
package org.apache.accumulo.core.util.shell.commands;
import java.io.IOException;
import java.util.Map;
import java.util.Set;
import org.apache.accumulo.core.client.AccumuloException;
import org.apache.accumulo.core.client.AccumuloSecurityException;
import org.apache.accumulo.core.util.shell.Shell;
import org.apache.... | 1 |
* @version CVS $Id: AbstractSAXTransformer.java,v 1.13 2004/06/18 14:28:56 vgritsenko Exp $
this.stack.push(format == null? XMLUtils.createPropertiesForXML(false): format); | 0 |
private static final ResourceBundle resources = new CombinedResources("org.apache.commons.vfs2.Resources"); | 0 |
definition.setHostIgnored(entity.isHostIgnored());
entity.setHostIgnored(definition.isHostIgnored()); | 0 |
import java.io.InputStream;
import java.net.URLConnection;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.ConfigurationUtils;
import org.apache.commons.configuration.FileSystem;
import org.apache.commons.lang.text.StrSubstitutor;
import org.apache.commons.logging... | 0 |
new TypeToken<AtlasNotificationMessage<HookNotification.HookNotificationMessage>>(){}.getType();
Type ENTITY_VERSIONED_MESSAGE_TYPE = new TypeToken<AtlasNotificationMessage<EntityNotification>>(){}.getType(); | 0 |
public class SequenceFileSource<K, V> extends HadoopFileSource<K, V> { | 0 |
context = new StepContext() { | 0 |
package org.apache.felix.shell.impl;
import org.apache.felix.shell.Command; | 1 |
* {@link #get()} at execution time (after a call to {@link org.apache.beam.sdk.Pipeline#run}), | 0 |
import javax.net.ssl.SSLHandshakeException;
@Test(expected=SSLHandshakeException.class) | 0 |
m_namespace = namespace.intern();
m_dirs.put(name.intern(), value);
m_attrs.put(name.intern(), value); | 0 |
private HttpEntity entity = null;
return this.entity;
this.entity = entity; | 0 |
* .withCoder(KvCoder.of(BigEndianIntegerCoder.of(), StringUtf8Coder.of()))
* );
* .withCoder(KvCoder.of(BigEndianIntegerCoder.of(), StringUtf8Coder.of()))
* );
* public void setParameters(KV<Integer, String> element, PreparedStatement query)
* throws SQLException {
* );
public Read<T> ... | 0 |
import java.util.concurrent.TimeUnit;
import static com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly;
sleepUninterruptibly(250, TimeUnit.MILLISECONDS); | 1 |
import org.apache.cocoon.template.expression.Subst;
private Subst targetNamespace;
Subst macroNameExpression = (Subst) macro; | 0 |
import java.util.Objects;
Pair<KeyPair, String> pp = Objects.requireNonNull(getKeyPair(keys, key), "Key not found");
keys.add(new Pair<>(Objects.requireNonNull(key, "No key"), comment)); | 0 |
import java.util.Collection;
| 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 may not... | 0 |
private static final IJobKey JOB_KEY = JobKeys.from(JIM.getRole(), "devel", MY_JOB);
.setEnvironment("devel") | 0 |
* Copyright 2001-2006 The Apache Software Foundation | 0 |
/*
public static final Map<String, Object> MAP_VALUE;
public static final Map<String, Object> MAP_VALUE_SPARSE;
static {
MAP_VALUE = new TreeMap<String, Object>();
MAP_VALUE.put("value", "user@_REALM");
MAP_VALUE.put("configuration", "service-site/service.component.kerberos.https.principal");
MAP... | 0 |
public class TrueFileFilter implements IOFileFilter, Serializable { | 0 |
.setInstanceCount(5) | 0 |
import org.apache.ambari.server.H2DatabaseCleaner;
H2DatabaseCleaner.clearDatabaseAndStopPersistenceService(injector); | 0 |
/**
* Set the field, type etc.
* @param f The field
* @param component The component instance
* @param value The value to set
* @param logger The logger
*/
public static void setField( final Field f,
final Object component,
final Object value,
final SimpleLogger lo... | 0 |
import org.apache.hadoop.metadata.security.BaseSecurityTest; | 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkNotNull;
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Optional;
import org.apache.beam.vendor.guava.v20_0.com.google.c... | 0 |
* @version $Id$ | 0 |
assertThat(
emptyMessages.killedByRemoteUser(Optional.empty()).get(),
assertThat(presentMessages.killedByRemoteUser(Optional.empty()).get(), containsString("shiro"));
Optional.of("Test message")).get(),
assertEquals(messages.killedByRemoteUser(Optional.empty()).get(), "Killed by shiro"); | 0 |
case 'T': | 0 |
* The state of a file or directory, capturing the following {@link File} attributes at a point in time.
* | 0 |
suite.addTest(TestRequestLine.suite()); | 0 |
private static final long serialVersionUID = 2093272772688460551L;
| 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState;
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting; | 0 |
// to support PAssert
// this is used for "fake" transformations like with PAssert | 0 |
import org.apache.accumulo.core.conf.ClientProperty;
cfg.setClientProperty(ClientProperty.INSTANCE_ZOOKEEPERS_TIMEOUT, "15s"); | 0 |
import static org.junit.Assert.assertSame;
@Test
public void testFromRowWithGetters() throws NoSuchSchemaException {
SchemaRegistry registry = SchemaRegistry.createDefault();
SimplePojo pojo = new SimplePojo("string", (byte) 1, (short) 2, 3, 4L,true,
DateTime.parse("1979-03-14"), "bytearray".getByt... | 0 |
package org.apache.zookeeper.jmx; | 0 |
String configFiles = LogFeederUtil.getStringProperty("logfeeder.config.files");
logger.info("logfeeder.config.files=" + configFiles); | 0 |
import java.nio.charset.StandardCharsets;
at = new PasswordToken(conf.get(p).getBytes(StandardCharsets.UTF_8)); | 0 |
* @version $Revision: 1.10 $ $Date: 2004/05/10 20:09:45 $
protected FileObject resolveFile(final String uri)
if (manager == null)
manager.setLogger(new AntLogger());
getProject().addBuildListener(new CloseListener());
return manager.resolveFile(getProject().getBaseDir(), uri... | 0 |
import org.apache.ambari.server.security.authorization.ResourceType;
resourceTypeEntity.setId(ResourceType.CLUSTER.getId());
resourceTypeEntity.setName(ResourceType.CLUSTER.name()); | 0 |
HttpRequestFactory requestFactory = DefaultHttpRequestFactory.INSTANCE;
HttpRequestFactory requestFactory = DefaultHttpRequestFactory.INSTANCE;
HttpRequestFactory requestFactory = DefaultHttpRequestFactory.INSTANCE;
HttpRequestFactory requestFactory = DefaultHttpRequestFactory.INSTANCE;
... | 0 |
final HashMap map = new HashMap();
final Iterator iterator =
final Map.Entry entry = (Map.Entry) iterator.next();
final Object key = entry.getKey(); | 0 |
if (in != null) {
in.close();
}
}
in.close();
} | 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 ... | 0 |
/*
* Copyright 1999-2005 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 |
// Try to warn the user about what the actual problem is
Configuration fsConf = fs.getConf();
final String defaultFsUri = "file:///";
String fsDefaultName = fsConf.get("fs.default.name", defaultFsUri), fsDefaultFS = fsConf.get("fs.defaultFS", defaultFsUri);
// Try to d... | 0 |
DynaProperty[] origDescriptors =
PropertyDescriptor[] origDescriptors =
DynaProperty[] descriptors =
PropertyDescriptor[] descriptors =
Object[] subscript = new Object[1];
Object[] keyArray = new Object[1];
PropertyDescriptor[] desc... | 0 |
import org.apache.http.Header;
boolean isAuthenticationRequested(
HttpResponse response,
HttpContext context);
Map<String, Header> getChallenges(
HttpResponse response,
HttpContext context) throws MalformedChallengeException;
AuthScheme selectScheme(
... | 0 |
import org.apache.accumulo.fate.util.LoggingRunnable;
nextLogMaker.submit(new LoggingRunnable(log, new Runnable() {
tserver.addNewLogMarker(alog);
})); | 0 |
import org.apache.beam.sdk.io.common.NetworkTestHelper;
public static void beforeClass() throws Exception {
port = NetworkTestHelper.getAvailableLocalPort();
public static void afterClass() { | 0 |
package org.apache.beam.runners.direct.portable.job;
import org.apache.beam.runners.direct.portable.artifact.LocalFileSystemArtifactStagerService;
return new ReferenceRunnerJobService(serverFactory, filesTempDirectory());
LocalFileSystemArtifactStagerService.forRootDirectory(stagingPathSupplier.call().toFil... | 0 |
import org.apache.accumulo.server.ServerContext;
private final ServerContext context;
private DfsLogger(ServerContext context, ServerResources conf) {
this.context = context;
public DfsLogger(ServerContext context, ServerResources conf, AtomicLong syncCounter,
AtomicLong flushCounter) throws IOException... | 0 |
private boolean configError = false;
ShellCompletor userCompletor = null;
private String getDefaultPrompt() { | 0 |
FinishedTriggersSet.fromSet(new HashSet<ExecutableTrigger>()));
FinishedTriggersSet.fromSet(new HashSet<ExecutableTrigger>()));
FinishedTriggersSet.fromSet(new HashSet<ExecutableTrigger>()); | 0 |
* <p>The input file defaults to {@code gs://apache-beam-samples/shakespeare/kinglear.txt}
* and can be overridden with {@code --inputFile}. | 0 |
import org.apache.ambari.server.security.authentication.jwt.JwtAuthenticationPropertiesProvider;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger LOG = LoggerFactory.getLogger(AmbariErrorHandler.class);
private JwtAuthenticationProper... | 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 |
/**
* Marker interface used to match any service types. When you set the {@link ServiceDependency#service} attribute to this class,
* it means that the dependency will return any services (matching the {@link ServiceDependency#filter()} attribute if it is specified).
*/
public interface Any { }
* (or the... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/test/org/apache/commons/digester/RuleTestCase.java,v 1.21 2002/09/24 20:50:07 rdonkin Exp $
* $Revision: 1.21 $
* $Date: 2002/09/24 20:50:07 $
* @version $Revision: 1.21 $ $Date: 2002/09/24 20:50:07 $
/**
* ... | 0 |
* @version $Revision: 1.8 $
if (bodyScript instanceof ScriptBlock) {
* @version $Revision: 1.8 $ | 0 |
import org.apache.beam.sdk.nexmark.queries.NexmarkQueryTransform;
public class SqlQuery2 extends NexmarkQueryTransform<AuctionPrice> { | 0 |
public void testExecutePreDMLUpdates() throws Exception {
Method executeStackPreDMLUpdates = UpgradeCatalog210.class.getDeclaredMethod("executeStackPreDMLUpdates");
UpgradeCatalog210 upgradeCatalog210 = createMockBuilder(UpgradeCatalog210.class)
.addMockedMethod( executeStackPreDMLUpdates) .createMoc... | 0 |
@Override
@Override
@Override
@Override
@Override | 0 |
* @version CVS $Id: TreeProcessor.java,v 1.9 2003/07/28 18:09:48 cziegeler Exp $
CocoonComponentManager.enterEnvironment(environment, this.sitemapComponentManager, this); | 0 |
* A RuleLoader which invokes a static method on a target class, leaving that method to actually instantiate and add new
* rules to a Digester instance.
*
public class LoaderFromClass
extends RuleLoader
{
public LoaderFromClass( Class<?> rulesClass, Method rulesMethod )
{
public LoaderFromClass( ... | 1 |
/*
* Copyright 2001-2006 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 |
import org.apache.beam.sdk.testing.PAssert;
import org.apache.beam.sdk.transforms.Sum;
@Description("Whether to send output to checksum Transform.")
@Default.Boolean(true)
Boolean getOutputToChecksum();
void setOutputToChecksum(Boolean value);
@Description("Expected result of the checksum transfor... | 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 |
private final Class<F> fromClass;
private final Class<T> toClass;
private final ConvertFunction<F,T> toFun;
/**
* Create a bidirectional rule.
*
* @param fromCls The class from which to convert. If {@link Object} is
* specified then this functions as a wildcard for generic
* c... | 0 |
String precisionTtl = getDaysInSeconds(metricsConf.get(PRECISION_TABLE_TTL, "1")); //1 day
String hostMinTtl = getDaysInSeconds(metricsConf.get(HOST_MINUTE_TABLE_TTL, "7")); //7 days
String hostHourTtl = getDaysInSeconds(metricsConf.get(HOST_HOUR_TABLE_TTL, "30")); //30 days
... | 0 |
values.put(CSSConstants.CSS_EVENODD_VALUE,
values.put(CSSConstants.CSS_NONZERO_VALUE,
return true;
return CSSConstants.CSS_FILL_RULE_PROPERTY; | 1 |
import java.util.Map;
/**
* Set this Query's requestInfoProperties from the original request. This will contain information
* such as directives.
*
* @param requestInfoProperties a map a request info properties
*/
void setRequestInfoProps(Map<String, String> requestInfoProperties);
/**
* Get ... | 0 |
* When implementing CryptoModule, it is recommended that any {@link CipherOutputStream} uses {@link RFileCipherOutputStream} instead. | 0 |
import org.apache.zookeeper.server.ExitCode;
System.exit(ExitCode.QUORUM_PACKET_ERROR.getValue());
System.exit(ExitCode.QUORUM_PACKET_ERROR.getValue()); | 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/UnboundedFifoBuffer.java,v 1.11 2003/10/14 18:06:41 scolebourne Exp $
* @version $Revision: 1.11 $ $Date: 2003/10/14 18:06:41 $
public class UnboundedFifoBuffer extends AbstractCo... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.