Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @version CVS $Id: Verifier.java,v 1.1 2003/09/04 12:42:36 cziegeler Exp $
0
List<String> namespaces = (List<String>) state.get("namespaces");
0
step = firstStep(plan); } else if (plan.getHopCount() > 1) { step = proxiedStep(plan, fact); } else { step = directStep(plan, fact); } return UNREACHABLE; } { return UNREACHABLE; } return UNREACHABLE...
0
* Architecture service must published this property telling which instance they are representing. */ public static final String ARCHITECTURE_INSTANCE = "architecture.instance"; /**
0
import org.apache.commons.vfs.provider.UriParser;
0
Objects.equals(relationGuid, that.relationGuid); return Objects.hash(glossaryGuid, relationGuid);
0
import org.apache.batik.css.engine.value.ValueManager;
0
UserGroupInformation.setConfiguration(conf);
0
package org.apache.felix.sigil.ui.eclipse.ui.wizard.repository; import org.apache.felix.sigil.eclipse.model.repository.IRepositoryModel;
0
* A {@link Reiterator} that forwards to another {@code Reiterator}, useful for
0
* Start a new table, create many splits, and offline before they can rebalance. Then try to have a * different table balance public void setupTables() throws AccumuloException, AccumuloSecurityException, TableExistsException, TableNotFoundException { Assume.assumeTrue("Not enough tservers to run test", ...
0
public AbstractConverter() { public AbstractConverter(Object defaultValue) { protected abstract Class getDefaultType();
0
import java.util.Map; import org.apache.sshd.common.kex.KexProposalOption; default void sessionCreated(Session session) { // ignored } /** * Signals the start of the negotiation options handling * * @param session The referenced {@link Session} * @param clientProposal The clien...
0
import org.apache.felix.framework.searchpolicy.PackageSource; import org.apache.felix.framework.searchpolicy.ResolvedPackage;
0
* * @deprecated (4.2)
0
conf.setClass("value.class", Row.class, Object.class);
0
import static com.google.common.base.Charsets.UTF_8; ConsoleReader reader = new ConsoleReader(this, new OutputStreamWriter(output, UTF_8)); this.shell = new Shell(reader, new PrintWriter(new OutputStreamWriter(output, UTF_8)));
0
public HeaderElement[] parseElements(final CharSequence buffer, final ParserCursor cursor) { Args.notNull(buffer, "Char sequence"); public HeaderElement parseHeaderElement(final CharSequence buffer, final ParserCursor cursor) { Args.notNull(buffer, "Char sequence"); public NameValuePair[] pa...
0
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; @SuppressFBWarnings(value = "PATH_TRAVERSAL_IN", justification = "intput determined by test")
0
// stringKey starts and ends with a slash. We don't need to seperate it from prefix, because // the prefix is guaranteed to be unique and non-overlapping. We separate it from the // StateTag ID by a '+' (which is guaranteed not to be in the stringKey) because the // ID comes from the use...
0
import java.io.File;
0
/** Get Comparator object used in the equals() method to determine * equality of instructions. * * @return currently used comparator for equals() * @deprecated use the built in comparator, or wrap this class in another object that implements these methods */ @Deprecated public stati...
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.mockito.Matchers.anyString; import static org.mockito.Mockito.atLeastOnce; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import org.apache...
0
return (OutputT) Pipeline.applyTransform((PBegin) input, Create.of()); private static class StreamingBoundedRead<T> extends PTransform<PBegin, PCollection<T>> { public final PCollection<T> apply(PBegin input) {
0
import org.apache.beam.sdk.extensions.euphoria.core.client.accumulators.AccumulatorProvider; private final AccumulatorProvider accumulators; private final String operatorName; public SingleValueCollector(AccumulatorProvider accumulators, String operatorName) { this.accumulators = accumulators; this.operat...
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
package org.apache.felix.ipojo.test.scenarios.service.dependency; import org.apache.felix.ipojo.test.scenarios.service.dependency.service.CheckService;
0
testCreateResources(TestAuthenticationFactory.createClusterAdministrator()); testCreateResources(TestAuthenticationFactory.createServiceAdministrator()); testGetResources(TestAuthenticationFactory.createClusterAdministrator()); testGetResources(TestAuthenticationFactory.createServiceAdministrator()); ...
0
import org.apache.ambari.server.state.alert.AlertDefinition; @Test public void testAlertsJson() throws Exception { ServiceInfo svc = metaInfo.getService(STACK_NAME_HDP, "2.0.5", "HDFS"); Assert.assertNotNull(svc); Assert.assertNotNull(svc.getAlertsFile()); svc = metaInfo.getService(STACK_NAME_HD...
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
// attribute::node() assertXPathValueIterator( context, "vendor/product/price:amount/attribute::node()", //use a set because DOM returns attrs sorted by name, JDOM by occurrence order: set("10%", "20%"));
0
final ContentLengthInputStream in = new ContentLengthInputStream( new SessionInputBufferMock(new byte[] {}), 0); in.close(); new SessionInputBufferMock(new byte[] {1, 2, 3}), 3L); in.close(); try { in.close(); Assert.fail("Connectio...
0
import junit.framework.TestCase;
0
* /path/to/foo/.temp-beam-$uuid. private final UUID tempUUID = UUID.randomUUID(); // Temp directory has a random UUID postfix (BEAM-7689) String tempDirName = String.format(TEMP_DIRECTORY_PREFIX + "-%s", tempUUID);
0
public void connectionClosed(NHttpConnection conn) { public void connectionClosed(NHttpConnection conn) {
0
"WHERE mapping.clusterId = :clusterId AND config.stack = :stack"), @NamedQuery(name = "ClusterConfigEntity.findLatestClusterConfigsByTypes", query = "SELECT cc FROM ClusterConfigEntity cc " + "JOIN ClusterConfigMappingEntity ccm " + "ON cc.clusterId = ccm.clusterId AND cc.type = ccm.ty...
0
package org.apache.hc.client5.http.sync.methods;
0
public String tableID; * @param tableId public ProblemSummaryInformation(String tableName, Table.ID tableId, Integer fileRead, Integer fileWrite, Integer tableLoad) { this.tableID = tableId.canonicalID();
0
public void pageBody(HttpServletRequest req, HttpServletResponse resp, StringBuilder sb) throws Exception { Range range = new Range(new Text("start:" + Long.toHexString(startTime)), new Text("start:" + Long.toHexString(endTime)));
0
import cz.seznam.euphoria.core.client.operator.state.ListStorage; import cz.seznam.euphoria.core.client.operator.state.ListStorageDescriptor; import cz.seznam.euphoria.core.client.operator.state.StorageProvider; final ListStorage<Integer> data; SortState( StorageProvider storageProvider) { ...
0
if (svgElement == null) { if (element instanceof SVGSVGElement) { svgElement = (SVGSVGElement)element; } else { // Disable scripting return; } }
0
@XmlTransient private File alertsFile = null; /** * @param file the file containing the alert definitions */ public void setAlertsFile(File file) { alertsFile = file; } /** * @return the alerts file, or <code>null</code> if none exists */ public File getAlertsFile() { return ale...
0
import org.apache.beam.sdk.values.Schema; protected Schema schema; public BeamTextCSVTableIOWriter(Schema schema, this.schema = schema;
0
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
import org.apache.atlas.services.IBootstrapTypesRegistrar; import org.apache.atlas.services.ReservedTypesRegistrar; bind(IBootstrapTypesRegistrar.class).to(ReservedTypesRegistrar.class);
0
import org.apache.beam.sdk.runners.AppliedPTransform;
0
"&fq=-type%3A%28hst_agent+system_message%29&fq=type%3Amycomponent&fq=level%3A%28WARN+ERROR+FATAL%29&fq=cluster%3Acl1" +
0
import org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken; private AbstractInboundSecurityToken securityToken = null; @SuppressWarnings("unchecked") this.securityToken = new AbstractInboundSecurityToken( private byte[] decryptedKey = ...
0
/** * Copyright 2013 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
public String getURI(final HttpHost h, final HttpRequest req) { public String getURI(final HttpHost h, final HttpRequest req) { public String getURI(final HttpHost h, final HttpRequest req) { public String getURI(final HttpHost h, final HttpRequest req) { publ...
0
ResultImpl(TitanIndexQuery.Result<Vertex> source) {
1
import org.apache.accumulo.core.client.Accumulo; try (AccumuloClient client = Accumulo.newClient().from(opts.getClientProps()).build()) {
0
import org.apache.commons.codec.EncoderException; * @version $Revision: 1.10 $ $Date: 2003/12/10 00:04:46 $ void encodeAll(String[] strings, String expectedEncoding) { for (int i = 0; i < strings.length; i++) { assertEquals(expectedEncoding, this.getEncoder().encode(strings[i])); } ...
0
import com.google.api.client.http.HttpRequestInitializer; import com.google.auth.http.HttpCredentialsAdapter; import com.google.cloud.hadoop.util.ChainingHttpRequestInitializer; import com.google.common.collect.ImmutableList; import org.apache.beam.sdk.extensions.gcp.auth.NullCredentialInitializer; import org.apache.be...
0
protected Driver driver; driver = createMock(Driver.class); stateManager.start(driver);
0
HttpResponse rsp = client.execute(target, req, null);
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 applicabl...
0
return Collections.singletonMap(NAME,
0
package org.apache.accumulo.master.tableOps.create; import org.apache.accumulo.master.tableOps.MasterRepo; import org.apache.accumulo.master.tableOps.TableInfo; import org.apache.accumulo.master.tableOps.Utils; if (tableInfo.getInitialTableState() == InitialTableState.OFFLINE) { env.getContext().getTableManag...
0
/* * $HeadURL$ * $Revision$ * $Date$ * * ==================================================================== * * 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...
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Joiner;
0
if (!conn.securityOperations().hasSystemPermission(conn.whoami(), SystemPermission.OBTAIN_DELEGATION_TOKEN)) { log.error( "{} doesn't have the {} SystemPermission neccesary to obtain a delegation token. MapReduce tasks cannot automatically use the client's" ...
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
@Test public void testGetAllPropertiesWithPrefix() { ClientConfiguration conf = new ClientConfiguration(); conf.addProperty(ClientProperty.TRACE_SPAN_RECEIVER_PREFIX.getKey() + "first", "1st"); conf.addProperty(ClientProperty.TRACE_SPAN_RECEIVER_PREFIX.getKey() + "second", "2nd"); conf.addProperty(...
0
public void checkReservedNamespaces() throws Exception { assertEquals(c.namespaceOperations().defaultNamespace(), Namespaces.DEFAULT_NAMESPACE); assertEquals(c.namespaceOperations().systemNamespace(), Namespaces.ACCUMULO_NAMESPACE); } @Test
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 ...
1
import org.apache.accumulo.core.client.impl.Table; final Table.ID tableId = new Table.ID(conn.tableOperations().tableIdMap().get(tableName)); final Table.ID tableId = new Table.ID(conn.tableOperations().tableIdMap().get(tableName)); final Table.ID tableId = new Table.ID(conn.tableOperations().tableIdMap().g...
1
package org.apache.felix.karaf.commons.osgi;
0
private static final int STACK_VERSIONS_CNT = 8; .setDesiredStackVersion(new StackId("HDP-2.0.6"));
0
final int bufsize, public void setInputState(final int inputState) { public void setOutputState(final int outputState) { public void setExpectationFailed(final boolean b) {
0
private ClosureUtils() {}
0
* An optional short url for this instance */ private String shortUrl; /** /** * Get the short URL * @return short URL */ public String getShortUrl() { return shortUrl; } /** * Set the short URL * @param shortUrl */ public void setShortUrl(String shortUrl) { this.shortUr...
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.clientImpl.AccumuloClientImpl; AuthenticationToken userToken = ((AccumuloClientImpl) shellState.getAccumuloClient()).token();
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
System.out.printf("rate : %06.2f%n", ranges.size() / ((t2 - t1) / 1000.0));
0
import org.apache.accumulo.core.client.NamespaceNotFoundException; public class DeleteNamespace extends Test { conn.namespaceOperations().delete(namespace, true); log.debug("Deleted namespace " + namespace); } catch (NamespaceNotFoundException e) {
0
import java.util.Map; import com.google.common.collect.Iterables; Map<String, Object> first = Iterables.getFirst(request.getBody().getPropertySets(), null); return first != null && first.containsKey(UserResourceProvider.USER_ADMIN_PROPERTY_ID); Map<String, Object> first = Iterables.getFirst(request.getBody(...
0
Builder builder; Map<Instruction,Map<String,String>> make; Map<Instruction,Map<String,String>> make = getMakeHeader(); for (Map.Entry<Instruction,Map<String,String>> entry : make.entrySet()) { Map<String,String> arguments = replace(m, entry.getValue()); builder.trace("Made " + source + " from ar...
0
* @version $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
static void runTfIdf(Options options) throws Exception { public static void main(String[] args) throws Exception { Options options = PipelineOptionsFactory.fromArgs(args).withValidation().as(Options.class); runTfIdf(options); }
0
* @param errorMessageKey a message key, to be translated by the I18nTransformer * @param errorMessageKey a message key, to be translated by the I18nTransformer * @param parameters parameters to be substituted in the errorMessage (will be * done by the I18nTransformer) /** * @param errorMess...
0
sb.append(s);
0
package org.apache.felix.scr.impl.metadata; * @param serviceBundle <code>Bundle</code> to the registered public boolean matchesTarget( Bundle serviceBundle )
0
package org.apache.felix.scrplugin.xml; import org.apache.felix.scrplugin.om.Component; import org.apache.felix.scrplugin.om.Components; import org.apache.felix.scrplugin.om.Implementation; import org.apache.felix.scrplugin.om.Interface; import org.apache.felix.scrplugin.om.Property; import org.apache.felix.scrplugin.o...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/Attic/BeanComparatorTestCase.java,v 1.4 2003/10/05 13:33:28 rdonkin Exp $ * $Revision: 1.4 $ * $Date: 2003/10/05 13:33:28 $ * * Copyright (c) 2001-2003 The Apache Software Foundat...
0
import org.janusgraph.diskstorage.StandardStoreManager; addHBase2Support(); private static void addHBase2Support() { try { Field field = StandardStoreManager.class.getDeclaredField("ALL_MANAGER_CLASSES"); field.setAccessible(true); Field modifiersField = Field.c...
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
* Response data model for {@link org.apache.ambari.server.api.services.RootServiceComponentConfigurationService} public interface RootServiceComponentConfigurationResponseSwagger extends ApiModel { @ApiModelProperty(name = "Configuration") RootServiceComponentConfigurationResponseInfo getRootServiceComponentConfig...
0
import org.apache.felix.framework.cache.Content;
0
package org.apache.ambari.metrics.adservice.seriesgenerator;
0
Configurable, Disposable, Initializable {
0
* * * ds.setDefaultMaxWaitMillis(50); ds.setDefaultMaxIdle(2); * KeyedCPDSConnectionFactory factory = PooledConnection pcon1 = PooledConnection pcon2 = PooledConnection pcon3 =
0
* * @param data the buffer to send * @param length the length of the data in the buffer * @param host the target host * @see #send(byte[], int, InetAddress, int) * @throws IOException if an error occurs * @param data the buffer to send * @param host the target host * @see #send(...
1
* protected final LinkOption[] options; public ModifiableFileWatcher(Path file, LinkOption... options) { return -1L; * if (size >= 0L && modifiedTime != null) {
1
import org.apache.atlas.repository.store.graph.AtlasRelationshipDefStore; import org.apache.atlas.repository.store.graph.v1.*; bind(AtlasRelationshipDefStore.class).to(AtlasRelationshipDefStoreV1.class).asEagerSingleton();
0
package org.apache.atlas.security; return String.format("/target/atlas-webapp-%s.war",
0
/** * WebConsoleConstants provides some common constants that are used by plugin * developers. */
0
p.apply(TFRecordIO.read().from("foo.*").withoutValidation()).getName()); p.apply("MyRead", TFRecordIO.read().from("foo.*").withoutValidation()).getName()); TFRecordIO.Read read = TFRecordIO.read() TFRecordIO.Read read = TFRecordIO.read().from(filename); TFRecordIO.Read read = TFRecordIO.read...
0