Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @version $Id$
0
boolean validCollectorHost = true; if (collectorHost == null) { validCollectorHost = false; } if (validCollectorHost) { String jsonData = null; LOG.debug("EmitMetrics connectUrl = " + connectUrl); try { jsonData = mapper.writeValueAsString(metrics); } catch ...
0
client = ThriftUtil.getTServerClient(server, master.getContext(), timeInMillis); client.loadFiles(Tracer.traceInfo(), master.getContext().rpcCreds(), tid, Iterator<TabletMetadata> tabletIter = MetadataScanner.builder().from(master.getContext()) .scanMetadataTable().overRange(tableId,...
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
.withLabel("Output File Suffix"), "")
0
suite.addTest(FTPTimestampParserImplTest.suite());
0
/** Log stream. NOT USED */ private transient PrintWriter logWriter = null;
0
commandParams, null, 1200);
0
/** * @since 1.7.0 */ RPC_SASL_QOP("rpc.sasl.qop", "auth", PropertyType.STRING, "The quality of protection to be used with SASL. Valid values are 'auth', 'auth-int', and 'auth-conf'"), INSTANCE_RPC_SSL_ENABLED("instance.rpc.ssl.enabled", "false", PropertyType.BOOLEAN, "Use SSL for socket connect...
1
import java.io.OutputStream;
0
package com.google.cloud.dataflow.sdk.runners.inprocess; class ViewEvaluatorFactory implements TransformEvaluatorFactory {
0
return new TesterCallableStatement(this, sql); return new TesterCallableStatement(this, sql, resultSetType, resultSetConcurrency); checkOpen(); return new TesterPreparedStatement(this, sql, autoGeneratedKeys);
0
* @version CVS $Id: LifecycleHelper.java,v 1.6 2003/09/10 17:39:39 proyal Exp $ final Configuration configuration) { this(logger, context, null, componentManager, roles, configuration); final Configuration configuration) { this(logger, context, serv...
0
Map dependencyMap = m_componentManager.getDependencyMap(); Map referenceMap = null; if (dependencyMap != null) { referenceMap = ( Map ) dependencyMap.get( this ); } if ( referenceMap != null ) { ...
0
case StackArtifact: resourceDefinition = new BaseStacksResourceDefinition(Resource.Type.StackArtifact) { @Override public String getPluralName() { return "artifacts"; } @Override public String getSingularName() { return "artifact";...
0
.add(dpBuilder.createBundleResource().setUrl(getTestBundle("bundleapi1", "bundleapi1", "1.0.0"))) .add(dpBuilder.createBundleResource().setUrl(getTestBundle("bundleapi2", "bundleapi2", "2.0.0"))); .add(dpBuilder.createBundleResource().setUrl(getTestBundle("bundleapi1", "bundleapi1", ...
0
import org.apache.beam.runners.core.metrics.ExecutionStateTracker; import org.apache.beam.runners.core.metrics.ExecutionStateTracker.ExecutionState;
0
* @version CVS $Id: PostgresOldEsqlQuery.java,v 1.2 2003/03/11 17:44:19 vgritsenko Exp $
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: CocoonBean.java,v 1.40 2004/03/10 12:58:09 stephan Exp $ if (crawler.getRemainingCount()>=0) { if (!precompileOnly) { }
0
public class MetaData extends OptionalAttributes
0
import cz.seznam.euphoria.shadow.com.google.common.base.Preconditions; private Class<? extends SparkKryoRegistrator> registrator = null; public Builder kryoRegistrator(Class<? extends SparkKryoRegistrator> registrator) { this.registrator = registrator; return this; } /** * Only one Spa...
0
// this.memoryRulesBinder.install(new FromXmlRulesModule(fileName)); this.install(new FromXmlRulesModule(fileName)); this.install(rulesSource); private void install(RulesModule rulesModule) { // that's an hack, shall not be taken in consideration!!! :) rulesMo...
0
* @version $Revision$ $Date$
0
.convert( beamSqlPrimitive -> { GregorianCalendar date = (GregorianCalendar) beamSqlPrimitive.getValue(); return BeamSqlPrimitive.of(SqlTypeName.BIGINT, date.getTimeInMillis()); }) .build(); .convert( beamSqlPrimitiv...
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
import org.apache.felix.gogo.commands.Command; @Command(scope = "config", name = "proplist", description = "List properties from the edited configuration.")
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 TaggedOutputStream(final OutputStream proxy) { public boolean isCauseOf(final Exception exception) { public void throwIfCauseOf(final Exception exception) throws IOException { protected void handleIOException(final IOException e) throws IOException {
1
import org.apache.hc.core5.http.config.H1Config; HttpMessageParser<T> create(H1Config constraints);
1
import org.apache.cocoon.core.container.spring.CocoonRequestAttributes; import org.apache.cocoon.core.container.spring.Container; protected Container beanFactory; public void setProcessorData(Container container, this.classLoader = container.getClassLoader(); this.beanFactory = container; ...
0
package org.apache.aurora.scheduler.preemptor; import static org.apache.aurora.scheduler.preemptor.PreemptorMetrics.MISSING_ATTRIBUTES_NAME;
0
import static org.easymock.EasyMock.anyObject; import static org.easymock.EasyMock.capture; import static org.easymock.EasyMock.createMock; import static org.easymock.EasyMock.createMockBuilder; import static org.easymock.EasyMock.createNiceMock; import static org.easymock.EasyMock.createStrictMock; import static org.e...
0
StandaloneAccumuloCluster standaloneCluster = new StandaloneAccumuloCluster(conf.getInstance(), clientConf, conf.getTmpDirectory(), conf.getUsers(), conf.getAccumuloServerUser());
0
import com.google.inject.Singleton; @Singleton
1
atlasConf, doAsUser, ugi); } HiveMetaStoreBridge(String clusterName, Hive hiveClient, Configuration atlasConf, String doAsUser, UserGroupInformation ugi) { this.clusterName = clusterName; this.hiveClient = hiveClient; String baseUrls = atlasConf.g...
0
PowerMock.expectNew(URLStreamProvider.class, 20000, 15000, null, null, null).andReturn(streamProviderMock); PowerMock.expectNew(URLStreamProvider.class, 20000, 15000, null, null, null).andReturn(streamProviderMock); PowerMock.expectNew(URLStreamProvider.class, 20000, 15000, null, null, null).andReturn(strea...
0
if (canonicalTarget == null) { return; } if (relURL == null) { return; } if (absURL == null) { return false; } if (status < 200 || status > 299) { return; } if (reqURL == null) { return; } if (canonURL == null) { return; } if (entry =...
0
* Tests for the ApproximateUnique transform.
0
import org.apache.http.annotation.Immutable;
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 applic...
0
list.add(PrinterMode.ZIP_FILE_BIN.name());
0
* @see Cookie#isExpired()
0
import org.apache.sshd.common.scp.ScpException; Integer statusCode = null; if (e instanceof ScpException) { statusCode = ((ScpException) e).getExitStatus(); } exitValue = (statusCode == null) ? ScpHelper.ERROR : statusCode.intValue(); ...
0
import com.twitter.mesos.gen.UpdateConfigResponse; public UpdateConfigResponse getUpdateConfig(String updateToken) throws UpdateException;
0
+ cp.constantToString(super.getIndex(), org.apache.commons.bcel6.Constants.CONSTANT_Fieldref);
0
// todo
0
log.debug("Processing " + annotatedClass.getName()); final List<ScannedAnnotation> annotations = extractAnnotation(classNode, annotatedClass); if (annotations.size() > 0) { // process annotations and create descriptions aProcessor.process(new ScannedClass(...
0
* {@link PTransform Transforms} for reading from and writing to Google Cloud Bigtable.
0
TreeMap<Long, Double> metricValues = new TreeMap<Long, Double>(); TreeMap<Long, Double> metricValues = new TreeMap<Long, Double>();
0
catch (final MalformedURLException e)
1
if (s.length() > 0) { write(s.getBytes(this.charset)); }
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
FunctionThrowsException<F,T> toFun, FunctionThrowsException<T,F> fromFun); FunctionThrowsException<F,T> toFun, FunctionThrowsException<T,F> fromFun); FunctionThrowsException<F,T> toFun, FunctionThrowsException<T,F> fromFun);
0
package org.ognl.test.objects; /** * */ public class ComponentSubclass extends ComponentImpl { int _count = 0; public int getCount() { return _count; } public void setCount(int count) { _count = count; } }
0
import org.apache.sshd.common.forward.TcpipServerChannel; new TcpipServerChannel.DirectTcpipFactory()));
0
false, false, assertFalse(config.getCredentials().isPresent()); assertFalse(config.getCredentials().isPresent()); assertTrue(joeConfig.getCredentials().isPresent()); assertEquals(joeCreds, joeConfig.getCredentials().get()); ZooKeeperConfig config = ZooKeeperConfig.create(true, SE...
0
import java.io.Serializable; public class CookiePathComparator implements Serializable, Comparator<Cookie> { private static final long serialVersionUID = 7523645369616405818L;
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
if (obj != null && method != null && objectClass.equals(obj.getClass()) && ((property == null && key == null) || (property != null && key != null && property.getClass().equals(key.getClass())))) {
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
factory = (CompositeFactory) Utils.getFactoryByName(getContext(), "SCOPE-scope"); ServiceReference ref = Utils.getServiceReferenceByName(getContext(), Architecture.class.getName(), instance.getInstanceName()); Architecture arch = (Architecture) getContext().getService(ref); ServiceRefere...
0
Assert.assertThat(extractWordsFn.processBundle(row), Assert.assertTrue(extractWordsFn.processBundle(row).isEmpty()); List<TableRow> results = formatCountsFn.processBundle(empty); results = formatCountsFn.processBundle(input);
0
protected CollectionUtils() {}
0
* Copyright 1999-2009 The Apache Software Foundation.
0
* Gets the cluster stack versions service. * * @param request * the request * @param clusterName * the cluster name * * @return the cluster stack versions service */ @Path("{clusterName}/stack_versions") public ClusterStackVersionService getClusterStackVersionService(@Co...
0
package org.apache.http.impl.cookie;
0
import java.nio.charset.StandardCharsets; file, new KeySelectors.SecretKeySelector("secret".getBytes(StandardCharsets.US_ASCII))
1
* Extension of {@link AbstractTestCollection} for exercising the
0
* {@link DoFn.ProcessContext#sideInput}, the value of the view for {@code w} is * .of(new DoFn<UrlVisit, PageVisit>() { * {@link DoFn}. * consuming {@link DoFn}.
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
final HashMultiSet<Object> elements = new HashMultiSet<>();
1
import java.lang.reflect.Field; /** * @see org.apache.felix.scrplugin.tags.JavaClassDescription#getFields() */ final Field[] fields = this.clazz.getFields(); final JavaField[] javaFields = new JavaField[fields.length]; for (int i=0; i < fields.length; i++ ) { javaFields...
0
package org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.arithmetic; import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlExpression;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/Form.java,v 1.11 2003/08/21 21:43:05 rleland Exp $ * $Revision: 1.11 $ * $Date: 2003/08/21 21:43:05 $ * This contains a set of validation rules for a form/JavaBean. The informatio...
1
extends AbstractLayoutEvent implements ComparableEvent, ConvertableEvent { final Layout l = this.getTarget();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBufferUtils.java,v 1.6 2003/09/20 17:02:03 scolebourne Exp $ * $Revision: 1.6 $ * $Date: 2003/09/20 17:02:03 $ import org.apache.commons.collections.decorators.PredicatedBuff...
0
expect(topologyManager.getPendingHostComponents()).andReturn(
0
final Class<?> clazz = loadClass(className); private Class< ? > loadClass(final String className) throws ClassNotFoundException private Enumeration<URL> loadResources(final String name) throws IOException
0
* @since 2.0
1
import java.io.FileInputStream; import java.util.List; import java.util.Scanner; import org.apache.felix.karaf.shell.admin.InstanceSettings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final String FEATURES_CFG = "etc/org.apache.felix.karaf.features.cfg"; private void saveStorage(Pro...
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
import org.apache.ambari.server.events.HostComponentsUpdateEvent; import org.apache.ambari.server.events.RequestUpdateEvent; import com.google.inject.Inject; @Inject private RequestUpdateEventPublisher requestUpdateEventPublisher; @Inject private HostComponentUpdateEventPublisher hostComponentUpdateEventPublis...
1
return DefaultBundleCache.getSecureAction().getAbsolutePath(new File(m_refDir, libName));
0
import org.apache.commons.beanutils.ConvertUtils; Class<T> targetType = ConvertUtils.primitiveToWrapper(type);
0
import org.apache.cocoon.spring.configurator.ResourceUtils; import org.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor;
0
import java.util.concurrent.TimeUnit; return new Timeout(scalingFactor * 5, TimeUnit.MINUTES);
0
client.killTasks(null, null); expect(auroraAdmin.killTasks(null, new Lock().setMessage("1"))).andReturn(OK); expect(auroraAdmin.killTasks(null, new Lock().setMessage("2"))).andReturn(OK); expect(auroraAdmin.killTasks(adsScopedQuery, null)).andReturn(OK); getAuthenticatedClient(WFARNER).killTas...
0
* @version $Revision: 1.3 $ $Date: 2003/02/20 07:32:55 $ private HttpClient client; public WebDavFileSystem( final GenericFileName rootName ) protected HttpClient getClient() throws FileSystemException if ( client == null ) { // Create an Http client try ...
0
import java.util.Collections; import org.apache.beam.runners.core.DoFnRunner; import org.apache.beam.runners.core.DoFnRunners; import org.apache.beam.sdk.transforms.reflect.DoFnInvoker; import org.apache.beam.sdk.transforms.reflect.DoFnInvokers; import org.apache.flink.api.common.functions.RuntimeContext; * Encapsulat...
0
AtlasTypesDef typesToUpdate = getTypesToUpdate(typesDef, typeRegistry, false);
0
* * * @param name * Name of the cluster, used for configuring replication on tables * @param system * Type of system to be replicated to * * @param name * Unique name for the cluster * @param replicaType * {@link ReplicaSystem} class name to use to repl...
0
* myHadoopConfiguration.setClass(&quot;mapreduce.job.partitioner.class&quot;,
0
import java.util.Collection; public Bundle getBundle(String location) { checkValidity(); // CONCURRENCY NOTE: This is a check-then-act situation, // but we ignore it since the time window is small and // the result is the same as if the calling thread had // won the race...
0
public class FileExtensionSelectorTest { public static void setUpClass() throws Exception { public static void tearDownClass() throws Exception { if (BaseFolder != null) { public void testEmpty() throws Exception { public void testManyExtensions() throws Exception { for (final FileObject...
1
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull; import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState;
0
import com.twitter.aurora.gen.MesosAdmin; import com.twitter.aurora.scheduler.thrift.auth.DecoratedThrift; import com.twitter.aurora.scheduler.thrift.auth.Requires; @DecoratedThrift class SchedulerThriftInterface implements MesosAdmin.Iface { @Requires(whitelist = Capability.PROVISIONER)
0
/** Builder for the 'of' step. */ /** Builder for the 'mapped' step. */ /** Builder for the 'windowBy' step. */ /** Builder for the 'triggeredBy' step. */ /** Builder for the 'accumulationMode' step. */ /** Builder for 'windowed output' step. */ /** Builder for the 'output' step. */
0
iter.close(); ClientBase.recursiveDelete(tmpdir);
0
* Special version of {@link FlinkReduceFunction} that supports merging windows. K, InputT, AccumT, OutputT, W extends BoundedWindow> private final WindowingStrategy<Object, W> windowingStrategy; WindowingStrategy<Object, W> windowingStrategy, AbstractFlinkCombineRunner<K, InputT, AccumT, OutputT, W> re...
0