Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
throw new UnsupportedOperationException( "Extract for time unit: " + unit + " not supported!");
0
protected EditCommand(final T object) {
0
if (null == pi.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 ...
0
protected void populateIngestPrams(IngestParams params) { } public IngestParams getIngestPrams() { IngestParams params = new IngestParams(getClientProps(), tableName); populateIngestPrams(params);
0
package org.apache.felix.sigil.ui.eclipse;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java,v 1.2 2003/12/01 22:49:00 scolebourne Exp $ import org.apache.commons.collections.OrderedMapIterator; * @version $Revision: 1.2 $ $Da...
0
import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; new MultiInputStream(prologInputStream, decryptInputStream, epilogInputStream), StandardCharsets.UTF_8.name()); return new UnsyncByteArrayInputStream(stringBuilder.toString().getBytes(StandardCharsets.UTF_...
0
private static final int DEFAULT_MAX_SUBNEGOTIATION_LENGTH = 512; final int _maxSubnegotiationLength; this("VT100", DEFAULT_MAX_SUBNEGOTIATION_LENGTH); this(termtype, DEFAULT_MAX_SUBNEGOTIATION_LENGTH); } /** * Construct an instance with the specified max subnegotiation * len...
0
/** * An implementation of {@link ByteSequence} that uses a backing byte array. */ /** * Creates a new sequence. The given byte array is used directly as the * backing array, so later changes made to the array reflect into the new * sequence. * * @param data byte data */ /** * Creates a new s...
0
} synchronized (badServers) { Set<TServerInstance> deadBadServers = new HashSet<TServerInstance>(badServers.keySet()); deadBadServers.removeAll(currentServers); if (!badServers.isEmpty()) { log.debug("Forgetting about bad servers: " + badServers); badServers.entrySet().removeAll(...
0
/** Path to the wiring.xml relative to the context root directory */ public static final String WIRING = "wiring.xml"; public static final String BLOCK_META_DIR = "COB-INF"; }
0
import org.apache.cocoon.ProcessingUtil; this.manager = (ServiceManager)this.beanFactory.getBean(ProcessingUtil.SERVICE_MANAGER_ROLE);
0
HttpTransportMetrics getMetrics();
0
/* * Copyright 2003-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 appl...
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
_closed = true;
0
// FIXME non-combinable reduce function not supported without windowing if (!operator.isCombinable()) { throw new UnsupportedOperationException("Non-combinable reduce not supported yet"); }
0
import org.apache.http.conn.SchemeRegistry; private static SchemeRegistry supportedSchemes; //@@@ need better way to pass in the SchemeRegistry or operator supportedSchemes = new SchemeRegistry();
0
public Set<String> getAllowedMethods(final HttpResponse response) { Set<String> methods = new HashSet<String>();
0
* <p>The list of resources returned are required to exist and not represent abstract * resources such as symlinks and directories.
0
import java.awt.font.GlyphMetrics; private GVTGlyphMetrics metrics; this.glyphCode = glyphCode; this.position = new Point2D.Float(0,0); * Returns the metrics of this Glyph if it is used in a horizontal layout. public GVTGlyphMetrics getGlyphMetrics() { metrics = new GVTGlyphMetr...
0
public void testOptionalResolution() throws Exception { RepositoryAdminImpl repoAdmin = createRepositoryAdmin(); repoAdmin.addRepository(getClass().getResource("/repo_for_optional_resources.xml")); Resolver resolver = repoAdmin.resolver(); resolver.add(repoAdmin.requirement("bun...
0
__createParser(parserKey); // create and cache parser return initiateListParsing(__entryParser, pathname); } // package access for test purposes void __createParser(String parserKey) throws IOException { // Note: we don't check against a null parserKey (NET-544) if(__entryPa...
0
Copyright 2001,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 l...
0
return Constants.COMPONENT;
0
import java.security.PublicKey; public boolean verifyServerKey(ClientSession sshClientSession, SocketAddress remoteAddress, PublicKey serverKey) { log.trace("Accepting key for " + remoteAddress + " key=" + BufferUtils.printHex(serverKey.getEncoded()));
0
/** {@inheritDoc} */ /** {@inheritDoc} */
0
sendQueueSize.decrementAndGet(); sendQueueSize.decrementAndGet();
0
public AsyncQueryRunner(final ExecutorService executorService, final QueryRunner queryRunner) { public AsyncQueryRunner(final ExecutorService executorService) { public AsyncQueryRunner(final boolean pmdKnownBroken, final ExecutorService executorService) { public AsyncQueryRunner(final DataSource ds, fin...
0
@Test public void testPzxidUpdatedWhenDeletingNonExistNode() throws Exception { DataNode root = dt.getNode("/"); long currentPzxid = root.stat.getPzxid(); // pzxid updated with deleteNode on higher zxid long zxid = currentPzxid + 1; try { dt.deleteNode("/test...
0
* * * * * * * * * * * * * * * * * * * * * * * * @param value The user specific value. * * * * * * * * * * * * * * * @param va...
0
final HeaderIterator it = response.headerIterator("Allow"); final Set<String> methods = new HashSet<String>(); final Header header = it.nextHeader(); final HeaderElement[] elements = header.getElements(); for (final HeaderElement element : elements) {
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 HealthCheckExecutionOptions setForceInstantExecution(boolean forceInstantExecution) { return this; public HealthCheckExecutionOptions setCombineTagsWithOr(boolean combineTagsWithOr) { return this; public HealthCheckExecutionOptions setOverrideGlobalTimeout(int overrideGlobalTimeout) {...
0
import java.lang.reflect.Method; import org.apache.accumulo.server.test.MiniAccumuloCluster; import org.apache.accumulo.server.test.MiniAccumuloConfig; // use reflection to call this method so it does not need to be made public Method method = cluster.getClass().getDeclaredMethod("exec", Class.class, String[]....
0
package org.apache.atlas.bridge.hivelineage.hook; import org.apache.atlas.bridge.hivelineage.hook.HiveLineage.CreateColumns; import org.apache.atlas.bridge.hivelineage.hook.HiveLineage.GroupBy; import org.apache.atlas.bridge.hivelineage.hook.HiveLineage.QueryColumns; import org.apache.atlas.bridge.hivelineage.hook.Hive...
1
private final Class<? extends T> type; public BeanListHandler(Class<? extends T> type) { public BeanListHandler(Class<? extends T> type, RowProcessor convert) {
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
package org.apache.ambari.metrics.adservice.seriesgenerator;
0
import org.apache.ambari.server.controller.StackVersionResponse; @Override public int hashCode() { int result = 1; result = 31 + name.hashCode() + version.hashCode(); return result; } @Override public boolean equals(Object obj) { if (!(obj instanceof StackInfo)) { return false...
0
import com.twitter.mesos.scheduler.base.JobKeys; import com.twitter.mesos.scheduler.base.Query;
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 ...
0
* <p> * <strong>Note that CompositeMap is not synchronized and is not thread-safe.</strong> * If you wish to use this map from multiple threads concurrently, you must use * appropriate synchronization. The simplest approach is to wrap this map * using {@link java.util.Collections#synchronizedMap(Map)}. This class ...
0
public Rectangle2D getPadRect() { setPadRect(blurArea.getRegion()); return super.getPadRect(); }
0
/* * $Id$ * 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...
0
import org.apache.ambari.view.pig.utils.BadRequestFormattedException; import org.apache.ambari.view.pig.utils.NotFoundFormattedException; import org.apache.ambari.view.pig.utils.ServiceFormattedException; import org.junit.rules.ExpectedException; @Rule public ExpectedException thrown = ExpectedException.none(); ...
0
boolean upgrade(
0
* header-value := &lt;any ascii characters except CR &amp; LF&gt;<br>
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/Script.java,v 1.8 2003/01/24 05:26:13 morgand Exp $ * $Revision: 1.8 $ * $Date: 2003/01/24 05:26:13 $ * $Id: Script.java,v 1.8 2003/01/24 05:26:13 morgand Exp $ * @version $Revision: 1.8 $...
0
* Copyright 1999-2002,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 ...
1
if (xpath2filter.length() > 2 && !Character.isWhitespace(xpath2filter.charAt(0))) {
0
import org.apache.beam.vendor.grpc.v1p21p0.com.google.protobuf.ByteString;
0
* 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. * @version $Id: AbstractExecutor.java,v 1.2 2003/10/09 21:28:56 ...
0
CloudObject encodedCoder = FullWindowedValueCoder.of(FakeKeyedWorkItemCoder.of(coder), IntervalWindow.getCoder()) .asCloudObject(); .setRead( new ReadInstruction() .setSource( new Source() .setSpec(CloudObject.forCla...
0
Assert.assertTrue("Expected less time to be taken with immediate readahead (" + millisWithNoWait + ") than without immediate readahead (" + millisWithWait + ")", millisWithNoWait < millisWithWait);
0
* * * * * * * * *
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 applicable l...
0
import org.apache.beam.sdk.transforms.ParDo; private static final List<KV<String, String>> PARSED_EVENTS = Arrays.asList( KV.of("VM", "Date: 20141212, Actor1: LAOS, url: http://www.chicagotribune.com"), KV.of("BE", "Date: 20141213, Actor1: AFGHANISTAN, url: http://cnn.com"), KV.of(...
0
import java.util.concurrent.TimeUnit; validateConditionIsNotEmpty(condition); validateRowCountLimit(condition); private static void validateConditionIsNotEmpty(Condition condition) { if (condition.isEmpty()) { throw new IllegalArgumentException("Condition is empty."); } } private static vo...
0
import java.io.Serializable; public class GcsPath implements Path, Serializable { private transient FileSystem fs;
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
minSessionTimeout = minSessionTimeout == -1 ? tickTime * 2 : minSessionTimeout; maxSessionTimeout = maxSessionTimeout == -1 ? tickTime * 20 : maxSessionTimeout;
0
import static org.hamcrest.core.IsEqual.equalTo; import static org.junit.Assert.assertThat; import nl.jqno.equalsverifier.EqualsVerifier;
0
* @return {@code true} if there is data in the buffer, * {@code false} otherwise.
0
import java.util.concurrent.atomic.AtomicReference; import org.apache.hc.core5.function.Supplier; private final Supplier<AsyncEntityConsumer<T>> dataConsumerSupplier; private final AtomicReference<AsyncEntityConsumer<T>> dataConsumerRef; public BasicRequestConsumer(final Supplier<AsyncEntityConsumer<T>> dat...
0
import com.google.cloud.dataflow.sdk.testing.RestoreDataflowLoggingFormatter; @Rule public TestRule restoreMDC = new RestoreDataflowLoggingFormatter(); DataflowWorkerLoggingFormatter.setJobId("testJobId"); DataflowWorkerLoggingFormatter.setWorkerId("testWorkerId"); DataflowWorkerLoggingFormatter.setWorkId...
0
public static final Set<KexState> VALUES = Collections.unmodifiableSet(EnumSet.allOf(KexState.class));
0
import java.util.Arrays; import java.util.List; protected String op; @Override public List<GroovyExpression> getChildren() { return Arrays.asList(left, right); }
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
import org.apache.ambari.view.pig.utils.MisconfigurationFormattedException; import org.apache.ambari.view.pig.utils.ServiceFormattedException; hdfsApi = connectToHDFSApi(context); protected static HdfsApi connectToHDFSApi(ViewContext context) { HdfsApi api = null; Thread.currentThread().setContextClassL...
0
import java.util.concurrent.atomic.AtomicBoolean; private final AtomicBoolean started = new AtomicBoolean(false); public boolean isStarted() { return started.get(); } * Ignored if already {@link #isStarted() started} if (isStarted()) { return; } started.se...
0
* By default, propagated service properties don't override the component service properties. It means
0
public class UpdateThread implements Runnable private final ConfigurationManager configurationManager; // the thread's base name private final String workerBaseName; private final LinkedList updateTasks; // the actual thread private final Thread worker; public UpdateThread( final Configurat...
0
/** * Required by JDK1.6. */ public Object unwrap(Class iface) throws SQLException { return null; } /** * Required by JDK1.6. */ public boolean isWrapperFor(Class iface) throws SQLException { return false; }
0
final String normForm = "a&b&c"; normalized("b&c&a", normForm, "c&b&a", normForm, "a&(b&c)", normForm, "(a&c)&b", normForm); // this an expression that's basically `expr | expr` normalized("(d&c&b&a)|(b&c&a&d)", "a&b&c&d");
1
import com.google.common.base.Strings; private static final String ZK_HIVE_DYN_SERVICE_DISCOVERY_KEY = "hive.server2.support.dynamic.service.discovery"; private static final String ZK_HIVE_NAMESPACE_KEY = "hive.server2.zookeeper.namespace"; private static final String ZK_HIVE_QUORUM = "hive.zookeeper.quorum"; p...
0
LOG.debug("Cluster Metrics Vip Host : {}", clusterMetricserverVipHost); LOG.debug("jmxPortMap -> {}", jmxPortMap); LOG.debug("PROPERTY -> key: {}, value: {}", propName, value); LOG.debug("Detected JMX protocol is null for clusterName = {}, componentName = {}", clusterName, componentName); LO...
1
import org.apache.accumulo.core.iterators.system.MapFileIterator; import org.apache.hadoop.io.MapFile; FileSKVIterator iter = new FileCFSkippingIterator(new RangeIterator(new MapFileIterator(acuconf, fs, file, conf))); return fs.getFileStatus(new Path(file + "/" + MapFile.DATA_FILE_NAME)).getLen(); MapFileI...
0
@Override public boolean isCollectorHostExternal(String clusterName) { return false; }
0
public H2ServerTlsStrategy(final int... securePorts) {
0
* Interface to the Atlas notification framework. * <p> * Use this interface to create consumers and to send messages of a given notification type. * <ol> * <li>Atlas sends entity notifications * <li>Hooks send notifications to create/update types/entities. Atlas reads these messages * </ol>
0
import org.apache.accumulo.core.util.shell.Token; tableOpt = new Option(Shell.tableOption, "tableName", true, "table to delete");
0
import org.apache.cocoon.portal.event.Event; import org.apache.cocoon.portal.event.impl.FullScreenCopletEvent; * @version CVS $Id: PortletWindowAspect.java,v 1.6 2004/03/15 14:29:09 cziegeler Exp $ Event fullScreenEvent = null; if ( ws.equals(WindowState.MAXIMIZED) ) { ...
0
import org.junit.BeforeClass; } @BeforeClass public static void setUp() { PipelineOptionsFactory.register(TestPipelineOptions.class); options.getAppName(), options.getProject(), query, DEFAULT_OUTPUT_CHECKSUM));
0
import org.apache.ambari.server.ldap.service.AmbariLdapConfigurationProvider; protected AmbariLdapConfigurationProvider ldapConfigurationProvider; if (membershipsToCreate.isEmpty()) { LOG.debug("There are no new memberships for which to process administrator group mapping rules."); return; } ...
0
* A simple map reduce job that inserts word counts into accumulo. See the README for instructions * on how to run this. This version does not use the ClientOpts class to parse arguments as an * example of using AccumuloInputFormat and AccumuloOutputFormat directly. See README.mapred for * more details. Accumulo...
0
import org.apache.sshd.common.util.CloseableUtils; public abstract class AbstractFactoryManager extends CloseableUtils.AbstractCloseable implements FactoryManager {
0
import java.util.HashMap; JexlThreadedArithmetic.setLenient(flag); * <p>Note that the JexlContext is also used to try to solve top-level functions. This allows ObjectContext * derived instances to call methods on the wrapped object.</p> return createScript(scriptText, null, null); * I...
0
package org.apache.ambari.metrics.alertservice.common; public class MetricAnomaly { private String metricKey; private long timestamp; private double metricValue; private MethodResult methodResult; public MetricAnomaly(String metricKey, long timestamp, double metricValue, MethodResult methodResult...
0
unregister("/test");
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/xml/Attic/SetTag.java,v 1.12 2003/01/15 06:42:47 morgand Exp $ * $Revision: 1.12 $ * $Date: 2003/01/15 06:42:47 $ * $Id: SetTag.java,v 1.12 2003/01/15 06:42:47 morgand Exp $ import org...
0
* * WARNING: THIS CLASS DOES NOT WORK PROPERLY WITH NAMESPACES * @version CVS $Id: MirrorRecorder.java,v 1.2 2003/11/23 17:06:05 vgritsenko Exp $ static class NullEvent implements EventRecorder { throws SAXException { } static class StartEvent implements EventRecorder { private Strin...
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
boolean debugEnabled = log.isDebugEnabled(); if (debugEnabled) { username, session, e.getClass().getSimpleName(), e.getMessage()); if (debugEnabled) { if (debugEnabled) { if (debugEnabled) { username, session, subMethods, lang, ...
0
* {@link ValueState}, {@link BagState}, and {@link GroupingState}.
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
import org.apache.accumulo.core.client.Accumulo; try (AccumuloClient c = Accumulo.newClient().from(getClientProperties()).build()) { try (AccumuloClient c = Accumulo.newClient().from(getClientProperties()).build()) {
0
import org.apache.hc.core5.reactor.ProtocolIOSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; Assert.assertFalse(ioSession.isClosed()); Assert.assertFalse(ioSession.isClosed()); Assert.assertFalse(ioSession.isClosed()); Assert.assertTrue(ioSession.isClosed()); ...
0
import static java.nio.charset.StandardCharsets.UTF_8; import java.util.Collections; import org.apache.accumulo.core.Constants; String masterLocPath = getZooKeeperRoot() + Constants.ZMASTER_LOCK; OpTimer timer = null; if (log.isTraceEnabled()) { log.trace("tid={} Looking up master location in zookee...
0