Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
/** * Gathers the Kerberos-related data from configurations and stores it in a new KerberosDetails * instance. * * @param cluster the relevant Cluster * @param manageIdentities a Boolean value indicating how to override the configured behavior * of managing Kerber...
0
* <p>This example shows how to use DatastoreIO to read from Cloud Datastore and * data to Cloud Datastore, which may incur charge for Cloud Datastore operations. * <p>To run this example, users need to use gcloud to get credential for Cloud Datastore: @Description("Path of the file to read from and store to Clou...
0
package org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.string; import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlExpression; import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlPrimitive;
0
import org.apache.excalibur.xml.xpath.XPathProcessor; * @version CVS $Id: SessionContextImpl.java,v 1.6 2003/12/18 14:29:03 cziegeler Exp $ /** The XPath Processor */ private XPathProcessor xpathProcessor; PortalManager portal, XPathProcessor xpa...
0
* Abstract asynchronous server side message exchange handler that acts as a request consumer * and a response producer. public interface AsyncServerExchangeHandler extends AsyncDataConsumer, AsyncDataProducer {
0
private static final long serialVersionUID = 3631422087512832211L;
0
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights
0
private static boolean ignore(char c) { public static int decode(byte[] data, int off, int length, OutputStream out) throws IOException {
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
* @version CVS $Id: Compiler.java,v 1.3 2004/04/19 18:49:58 pier Exp $ out.println("/*"); out.println(" * Copyright 1999-2004 The Apache Software Foundation."); out.println(" *"); out.println(" * Licensed under the Apache License, Version 2.0 (the \"License\");"); out.println(" ...
0
this.script = ctx.compileString(getExpression(), "", 1, null);
0
import org.apache.hc.client5.http.methods.RoutedHttpRequest; import org.apache.hc.core5.http.ClassicHttpRequest; import org.apache.hc.core5.http.ClassicHttpResponse; import org.apache.hc.core5.http.message.BasicClassicHttpResponse; private ClassicHttpRequest request; private ClassicHttpResponse response = new B...
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
if (this == o) { // Notify other threads that they may have // to provide this resource now. cache.notifyAll(); } else { }
0
private final String _sql; private final Integer _resultSetType; private final Integer _resultSetConcurrency; private final String _catalog; private final byte _stmtType; this(sql, null, PoolingConnection.STATEMENT_PREPAREDSTMT); this(sql, catalog, PoolingConnection.STATEMENT_PREPARE...
0
import org.osgi.service.coordinator.Coordination; import org.osgi.service.coordinator.Participant; * crd participants <coordination> ��� * crd details <coordination> ��� * id ��� the Coordination id * name ��� the Coordination name. Must be unique * bundle ��� Must translate to a...
0
private volatile HttpExpectationVerifier expectationVerifier; private volatile Thread listener;
0
import java.nio.charset.StandardCharsets; import org.apache.hc.core5.annotation.NotThreadSafe; import org.apache.hc.core5.http.HttpHost; import org.apache.hc.core5.http.HttpRequest; import org.apache.hc.core5.http.NameValuePair; import org.apache.hc.core5.http.protocol.HttpContext; import org.apache.hc.core5.util.Args;...
0
return new EqualsPredicate<>(prop, val);
1
import org.apache.ambari.logsearch.query.model.SearchCriteria; import javax.inject.Inject; @Inject @Inject public enum Condition {
0
import java.util.concurrent.locks.Lock; public Lock lock() { return this.session.lock(); } @Override
0
package org.apache.ambari.server.api.resources; import org.apache.ambari.server.api.query.Query; import org.apache.ambari.server.api.services.Request; import org.apache.ambari.server.api.util.TreeNode; import org.apache.ambari.server.api.services.ResultPostProcessor;
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
m_state = UNRESOLVED; m_matchingRefs.clear(); /** * Unfreezes the dependency. * This method must be overide by concrete dependency to support * the static binding policy. This method is called after tracking restarting. */ public void unfreeze() { // nothing...
0
import org.apache.commons.net.ftp.FTPFileEntryParserImpl; * @version $Id: VMSFTPEntryParser.java,v 1.15 2004/01/10 16:01:49 scohen Exp $ public class VMSFTPEntryParser extends FTPFileEntryParserImpl
0
import com.google.inject.persist.jpa.AmbariJpaPersistService; AmbariJpaPersistService persistService = injector.getInstance(AmbariJpaPersistService.class); .withConstructor(TEST_CONFIGURATION, publisher, persistService) AmbariJpaPersistService persistService = injector.getInstance(AmbariJpaPersistServic...
0
listVolumes( new AccumuloServerContext(new ServerConfigurationFactory(HdfsZooInstance.getInstance()))); if (entry.getKey().getColumnFamily() .equals(MetadataSchema.TabletsSection.DataFileColumnFamily.NAME)) { } else if (entry.getKey().getColumnFamily() .equals(MetadataSchema....
0
* @version CVS $Id: FOM_JavaScriptInterpreter.java,v 1.24 2004/02/24 10:33:33 joerg Exp $ * @param redirector
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
0
import org.apache.beam.sdk.fn.function.ThrowingRunnable;
0
* Copyright 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 by applic...
1
return result != null ? ImmutableList.copyOf(result) : Collections.emptyList(); return result != null ? ImmutableList.copyOf(result) : Collections.emptyList(); return result != null ? ImmutableList.copyOf(result) : Collections.emptyList(); : Collections.emptyList(); ...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BeanMap.java,v 1.12 2002/08/10 02:05:20 pjack Exp $ * $Revision: 1.12 $ * $Date: 2002/08/10 02:05:20 $ * Puts all of the writeable properties from the given BeanMap into th...
0
package org.apache.ambari.server.state.live.svccomphost;
0
* @see <a href="http://en.wikipedia.org/wiki/Byte_order_mark">Wikipedia - Byte Order Mark</a>
0
import org.apache.accumulo.core.data.TableId; private TableId tableId; public ProblemReport(TableId tableId, ProblemType problemType, String resource, String server, public ProblemReport(TableId tableId, ProblemType problemType, String resource, String server, public ProblemReport(TableId tableId, ProblemType p...
0
import org.apache.commons.collections.AbstractTestObject; public class TestMultiValueMap extends AbstractTestObject { //----------------------------------------------------------------------- // Manual serialization testing as this class cannot easily // extend the AbstractTestMap //------------------...
0
import javax.inject.Inject;
1
public ConfigHelper getConfigHelper() { return configHelper; } @Override
0
import cz.seznam.euphoria.core.client.operator.hint.OutputHint; public static class TestHint implements OutputHint { @Override public int hashCode() { return 0; } @Override public boolean equals(Object obj) { return obj instanceof TestHint; } } public static class TestHint...
0
import com.beust.jcommander.ParameterException; import org.apache.aurora.scheduler.http.api.security.ShiroIniConverter.ExtraSectionsException; import org.apache.aurora.scheduler.http.api.security.ShiroIniConverter.MissingSectionsException; public class ShiroIniConverterTest { private ShiroIniConverter parser; publi...
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")...
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 applica...
0
import java.nio.ByteBuffer;
0
package org.apache.beam.sdk.nexmark.queries; import org.apache.beam.sdk.nexmark.NexmarkConfiguration; import org.apache.beam.sdk.nexmark.NexmarkUtils; import org.apache.beam.sdk.nexmark.model.AuctionBid; import org.apache.beam.sdk.nexmark.model.Event; import org.apache.beam.sdk.nexmark.model.KnownSize;
0
public List<T> getOutput(int partition) { return outputs.get(partition); }
0
* @version $Id$
0
import org.apache.beam.sdk.annotations.Internal; * <b><i>For internal use only; no backwards-compatibility guarantees.</i></b> * * <p>A {@link PTransformMatcher} and associated {@link PTransformOverrideFactory} to replace all @Internal
0
* Default implementation of the <code>TestSuite</code> interface. * Adds a <code>Test</code> to the suite * Removes a <code>Test</code> from the suite.
0
return SVGValueConstants.CSS_STROKE_DASHARRAY_PROPERTY; return createStringValue(CSSPrimitiveValue.CSS_IDENT, CSS_NONE_VALUE); !value.equalsIgnoreCase(CSS_NONE_VALUE)) {
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
case ASSIGNED:
0
import org.apache.accumulo.hadoop.mapreduce.InputFormatBuilder; import org.apache.accumulo.hadoopImpl.mapreduce.InputFormatBuilderImpl; * @see org.apache.accumulo.hadoop.mapreduce.AccumuloRowInputFormat private static final Class<AccumuloRowInputFormat> CLASS = AccumuloRowInputFormat.class; public static InputForm...
0
package org.apache.zookeeper.server; import org.apache.jute.Index; import org.apache.jute.InputArchive; import org.apache.jute.OutputArchive; import org.apache.jute.Record; import org.apache.zookeeper.data.ACL; import org.apache.zookeeper.data.Stat;
0
* $Revision$
0
//****************************************************************************************************************** //****************************************************************************************************************** //************************************************************************...
0
package org.apache.felix.converter.impl.json;
0
import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSocket; import javax.net.ssl.SSLSocketFactory; import org.apache.log4j.Logger; import org.apache.zookeeper.common.X509Exception.SSLContextException; import org.apache.zookeeper.common.X509Util; * @throws SSLContextException throws IOException, ...
0
Assert.assertEquals(1, results.size()); Assert.assertEquals("94", results.get(0).getKey()); Assert.assertEquals(Integer.valueOf(29), results.get(0).getValue()); Assert.assertEquals(0, output.size());
0
import java.util.List; public RootedPath(RootedFileSystem fileSystem, String root, List<String> names) {
0
@Override @Override @Override @Override @Override @Override @Override @Override
1
map = new HashMap<>(); ArrayList<Long> ret = new ArrayList<>(vals.size());
1
package org.apache.accumulo.server.tabletserver.compaction; import java.io.IOException; import java.util.List; import org.apache.accumulo.core.data.Key; import org.apache.accumulo.core.data.Value; import org.apache.accumulo.core.file.FileSKVWriter; public class DefaultWriter implements CompactionStrategy.Writer { ...
0
*/ /** Store byte or boolean into array */ public BASTORE() { super(org.apache.bcel.Constants.BASTORE); } /** * Call corresponding visitor method(s). The order is: * Call visitor methods of implemented interfaces first, then * call methods according to the class hierarchy i...
0
String role = task.getTask().getOwner().getRole(); LOG.info("Launching as role " + role); commands.add(String.format("chown -R %s .", role)); // Run as the role account. commands.add(String.format("su %s -c \"bash %s\"", role, RUN_SCRIPT_NAME)); // Execute the launch script containin...
0
Long aclL; synchronized(n) { aclL = n.acl; } PrepRequestProcessor.checkACL(zks, zks.dataTree.convertLong(aclL), Long aclG; synchronized(n) { aclG = n.acl; } ...
0
boolean chunked = entity.isChunked() || entity.getContentLength() < 0; if (chunked && ver.lessEquals(HttpVersion.HTTP_1_0)) { if (chunked) {
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 applicable la...
0
if (contains(propertyIds, COMPONENT_STATE_PROPERTY_ID)) {
0
protected boolean sameFile(ParsedURLData other) { if (this == other) return true; // Check if the rest of the two PURLs matche other than // the 'ref' if ((port == other.port) && ((path == other.path) || ((path!=null) && path.equals(other.path))) &...
0
public void stop() { System.setErr(err.dflt); System.setOut(out.dflt); System.setIn(in.dflt); }
0
import com.twitter.aurora.scheduler.storage.entities.ITaskConfig; private static final ITaskConfig TASK = ITaskConfig.build(new TaskConfig() .setDiskMb(1024));
0
* that retries {@code 503} (Service Unavailable) responses for a fixed number of times
0
import org.apache.accumulo.core.security.thrift.ThriftSecurityException;
0
for (Map.Entry<String, Object> me : this.parameters.entrySet()) { target.setParameter(me.getKey(), me.getValue()); }
0
import org.apache.felix.dm.InvocationUtil;
0
import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Enum used for testing PipelineOptions CLI parsing. */ public enum TestEnum { Value, Value2 } TestEnum getEnum(); void setEnum(TestEnum value); "--classValue=" + PipelineOptionsFactoryTest.class.getName(), ...
0
import org.apache.calcite.avatica.AvaticaFactory; import org.apache.calcite.jdbc.CalciteFactory; protected AvaticaFactory createFactory() { return JdbcFactory.wrap((CalciteFactory) super.createFactory()); } @Override public Connection connect(String url, Properties info) throws SQLException { return Jd...
0
this.testFilters = new ArrayList<>(); this.testTrueResults = new ArrayList<>(); this.testFalseResults = new ArrayList<>(); this.testFileResults = new ArrayList<>(); this.testFilenameResults = new ArrayList<>(); final List<IOFileFilter> filters = new ArrayList<>(); final List<IOFileFilter...
0
m_secureAction.invokeServiceListenerHookRemoved(lh, removed); m_secureAction.invokeServiceListenerHookAdded(lh, added); m_secureAction.invokeServiceListenerHookRemoved(lh, removed); m_secureAction.invokeServiceListenerHookAdded( ...
0
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
* @return a {@link java.lang.reflect.Field} or null if it does not exist or is not accessible * @return a {@link java.lang.reflect.Method} * or null if no unambiguous method could be found through introspection. protected final Method getMethod(Class<?> c, String name, Object[] params) { * ...
0
package org.apache.hc.core5.http.nio; * Abstract asynchronous data exchange handler that acts as a data consumer * and a data producer. * public interface AsyncDataExchangeHandler extends AsyncDataConsumer, AsyncDataProducer { void failed(Exception cause);
0
import org.apache.cocoon.forms.validation.ValidationError; * @version $Id: RegExpValidationRule.java,v 1.2 2004/03/09 14:58:45 cziegeler Exp $
0
if (!feedback.hasRemaining() || PING_MESSAGE[i] != feedback.get()) {
0
cd.setActivate(m.getAnnotatedMethod().getName()); cd.setDeactivate(m.getAnnotatedMethod().getName()); cd.setModified(m.getAnnotatedMethod().getName()); describedClass.getSource()); ref.setBind(ad.getAnnotatedMethod().get...
0
import org.apache.hc.core5.http.ExceptionListener; final ExceptionListener errorListener = new InternalHttpErrorListener(sessionLog);
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ComparisonChain; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Ordering;
0
public static final DefaultClassResolver DEFAULT_CLASS_RESOLVER = new DefaultClassResolver();
0
package org.apache.cocoon.template.jxtg.instructions; import org.apache.cocoon.template.jxtg.script.event.Characters; import org.apache.cocoon.template.jxtg.script.event.Event; import org.apache.cocoon.template.jxtg.script.event.IgnorableWhitespace; import org.apache.cocoon.template.jxtg.script.event.StartElement; impo...
0
import org.apache.ambari.server.controller.PreUpgradeCheckRequest; import org.apache.ambari.server.state.UpgradeCheckHelper; public static final String UPGRADE_CHECK_ID_PROPERTY_ID = PropertyHelper.getPropertyId("UpgradeChecks", "id"); public static final String UPGRADE_CHECK_CHECK_PROPERTY_ID ...
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.security.thrift.TCredentials; TCredentials creds; private static void stopServer(Instance instance, final TCredentials credentials, final boolean tabletServersToo) throws AccumuloException, AccumuloSecurityException { private static void stopTabletServer(Instance instance, fina...
1
//check event clusterId = event.getClusterId();
0
* Autogenerated by Thrift Compiler (0.11.0) @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)")
0
package org.apache.accumulo.test.proxy; import org.apache.accumulo.proxy.Proxy;
0
try { String newPath = zk.create(path, data, acl, flags); err.println("Created " + newPath); } catch(KeeperException.EphemeralOnLocalSessionException e) { err.println("Unable to create ephemeral node on a local session"); return false; }
0
Rectangle2D bounds = layout.getBounds(); double tx = location.getX(); double ty = location.getY(); if (anchor == Anchor.MIDDLE) { tx -= bounds.getWidth()/2; } else if (anchor == Anchor.END) { tx -= bounds.getWidth(); AffineTransform t = AffineTran...
0
@Test public void testSaveAttributesEmpty() { assertEquals(Optional.of(IHostAttributes.build(attributes)), read(HOST_A));
0
SessionHandlerConfigurer sessionHandlerConfigurer = new SessionHandlerConfigurer(); sessionHandlerConfigurer.configuration = configuration; sessionHandlerConfigurer.configureSessionHandler(sessionHandler); sessionHandlerConfigurer.configureSessionHandler(sessionHandler);
0