Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
package org.w3c.dom.svg; import org.w3c.dom.events.EventTarget; public interface SVGElementInstance extends EventTarget { public SVGElement getCorrespondingElement( ); public SVGUseElement getCorrespondingUseElement( ); public SVGElementInstance getParentNode( ); public SVGElementInstanceList...
1
import org.apache.ambari.server.state.StackId; configHelper.updateConfigType(anyObject(Cluster.class), anyObject(StackId.class), anyObject(AmbariManagementController.class), configHelper.updateConfigType(anyObject(Cluster.class), anyObject(StackId.class), anyObject(AmbariManagementController.class),
0
@Inject private ExecutorCore executor;
0
* * <li>Defines united API among all the {@link Operator Operators}. * <li>Enables to share related javadoc. * <li>Allows for mandatory chaining of some builders. See {@link WindowBy}. * dataset's elements * <p>It consumes {@link WindowFn} and it is followed by {@link TriggeredBy} and {@link ...
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
// In Accumulo's current code only one thread will ever call this method. However if multiple threads called this method concurrently it could result in // sessions being lost. This method synchronizes on idleSessions to prevent the loss. Its not expected that anything else will synchronize on idleSessions. ...
0
@Provides @Singleton public SocketManager provideSocketManager() { String[] portRange = options.managedPortRange.split("-"); if (portRange.length != 2) { throw new IllegalArgumentException("Malformed managed port range value: " + options.managedPortRange); } return new SocketManager(Intege...
0
import org.apache.felix.bundlerepository.impl.FileUtil; out.println(" " + caps[i].getPropertiesAsMap());
0
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
setZooKeeperInstance(job, ClientConfiguration.create().withInstance(instanceName).withZkHosts(zooKeepers));
0
/* $Id$
0
@Override
0
package org.apache.felix.sigil.eclipse.ui.internal.editors.project; import org.apache.felix.sigil.eclipse.ui.internal.form.SigilPage;
0
import org.apache.commons.lang.StringUtils; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.Map; import java.util.Set; public static final String PROPERTY_DISPLAY_NAME_PROPERTY_ID = PropertyHelper .getPropertyId("StackLevelConfigurations", "property_display_nam...
0
package org.apache.beam.sdk.state;
0
p.apply(TextIO.Read.from("gs://apache-beam-samples/shakespeare/*"))
0
assertTrue(!new BooleanComparator().equals(new BooleanComparator(true))); assertTrue(!new BooleanComparator(true).equals(new BooleanComparator(false)));
0
import org.apache.commons.jelly.JellyException; public Tag createTag(String name, Attributes attributes) throws JellyException { try { return (Tag) tagClass.newInstance(); } catch (InstantiationException e) { throw new JellyException(e.toString()); } catch (IllegalAcces...
0
* </p>
0
// a DoFn (defined in-line) on each element that tokenizes the text line into individual // unique word in the text. The associated value is the occurrence count for that word. // printable string, suitable for writing to an output file.
0
/* DomoWare UPnP Base Driver is an implementation of the OSGi UnP Device Spcifaction Copyright (C) 2004 Matteo Demuru, Francesco Furfari, Stefano "Kismet" Lenzi This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Fre...
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 applicable la...
0
import com.thinkaurelius.titan.core.schema.Mapping; createCompositeAndMixedIndex(Constants.TRAIT_NAMES_INDEX, Constants.TRAIT_NAMES_PROPERTY_KEY, String.class, false, Cardinality.SET); createFullTextIndex(); private void createFullTextIndex() { TitanManagement management = ti...
0
enum Type { Result process(); ResourceInstance getResource(); String getURI(); Type getRequestType(); int getAPIVersion(); Predicate getQueryPredicate(); Map<String, TemporalInfo> getFields(); RequestBody getBody(); Map<String, List<String>> getHttpHeaders(); PageRequest getPageRequest(); SortRe...
1
@Override @Override @Override @Override
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 ma...
0
@Transactional @Transactional entityManagerProvider.get().remove(merge(hostComponentStateEntity));
1
// if the form has an ID, it is used as part of the submitId too // this has ID has to be cut off if(this.getId() != null) { submitId = submitId.substring(submitId.indexOf('.')+1); }
0
public class MultiValuedHashMap<K, V> extends AbstractMultiValuedMap<K, V> {
0
import com.google.common.annotations.VisibleForTesting; import java.io.IOException; import java.util.ArrayList; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import javax.annotation.Nullable; import javax.jms.Connection; imp...
0
import org.apache.http.conn.HttpRoute; import org.apache.http.conn.SchemeRegistry;
0
import org.apache.accumulo.core.client.BatchWriterConfig; BatchWriter bw = conn.createBatchWriter(table, new BatchWriterConfig());
0
static final int MESSAGES_POLLING_ATTEMPTS = 12;
0
import com.google.common.collect.ImmutableMap; private static final Set<String> propertyIds = ImmutableSet.<String>builder() .add(SETTING_NAME_PROPERTY_ID) .add(SETTING_SETTING_TYPE_PROPERTY_ID) .add(SETTING_CONTENT_PROPERTY_ID) .add(SETTING_UPDATED_BY_PROPERTY_ID) .add(SETTING_UPDATE_TIMESTAMP_PR...
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...
0
import org.apache.hadoop.metadata.classification.InterfaceAudience; @InterfaceAudience.Private * This is only used for testing purposes. Not intended for public use. @InterfaceAudience.Private
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...
0
import junit.framework.TestCase; * @version $Id$ static final String TEST_DIR = ConfigurationAssert.TEST_DIR_NAME;
0
import org.apache.beam.sdk.fn.data.FnDataReceiver;
0
* This bean describes a persistence type. It is used by the {@link Converter} and * the {@link ProfileStore} to load and save parts of the portal profile. * references during loading/saving keyed maps can be provided. * * This is a list of maps that should be set for the persistence types: * PROFILETYPE_LAYOUT: "...
0
import org.apache.sshd.common.util.buffer.Buffer; import org.apache.sshd.common.util.buffer.ByteArrayBuffer; @Override @Override Buffer buf = new ByteArrayBuffer(data, off, len); buf = new ByteArrayBuffer(buf.getCompactData());
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
/** * Tests whether the default lookup is called for variables with a prefix * when the lookup that was registered for this prefix is not able to * resolve the variable. */ public void testLookupDefaultAfterPrefixFails() { final String varName = TEST_PREFIX + ':' + TEST_NAME + "...
0
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken.AuthenticationTokenSerializer; import org.apache.accumulo.core.security.Credentials; Connector conn = instance.getConnector(user, AuthenticationTokenSerializer.deserialize(tokenClass, password)); scanner = new OfflineScanner(in...
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 java.text.MessageFormat; // TODO, this assumes that the display name is unique, but neither the code nor the DB schema enforces this. return findByStackNameAndVersion(stackId.getStackName(), version); return findByStackNameAndVersion(stackEntity.getStackName(), version); * Retrieves repository ver...
0
import com.google.cloud.dataflow.sdk.transforms.windowing.PaneInfo; PaneInfo.DEFAULT);
0
* @author <a href="mailto:uv@upaya.co.uk">Upayavira</a> * @version CVS $Id: CocoonBean.java,v 1.7 2003/06/04 13:48:50 upayavira Exp $ private String defaultFilename = Constants.INDEX_URI; * @return a <code>Collection</code> containing all links found, as
0
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState;
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 java.util.concurrent.CompletionStage; import org.apache.beam.sdk.util.MoreFutures; List<CompletionStage<T>> futures = new ArrayList<>(tasks.size()); futures.add(MoreFutures.supplyAsync(() -> task.call(), executorService)); return MoreFutures.get(MoreFutures.allAsList(futures));
0
try (AbstractSession serverSession = GenericUtils.head(sshd.getActiveSessions())) { try (Channel channel = GenericUtils.head(channels)) {
0
//moved this down synchronized (this) { m_services.remove(service); }
0
import static com.google.common.base.Charsets.UTF_8; zoo.putPersistentData(ZKUserPath, principal.getBytes(UTF_8), NodeExistsPolicy.FAIL);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/SetPropertiesRule.java,v 1.3 2001/08/15 20:35:43 craigmcc Exp $ * $Revision: 1.3 $ * $Date: 2001/08/15 20:35:43 $ * @version $Revision: 1.3 $ $Date: 2001/08/15 20:35:43 $ ...
0
package org.apache.hc.core5.http.pool.nio;
1
* @version SVN $Id$ * Get the mount path of the block */ public String getMountPath(); /**
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.9 2002/10/30 19:16:23 jstrachan Exp $ * $Revision: 1.9 $ * $Date: 2002/10/30 19:16:23 $ * Copyright (c) 2002 The Apache Software Foundation. All rights * $I...
0
package org.apache.commons.digester3.examples.api.addressbook;
0
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.Struct;
0
* @version $Id: HierarchicalDOM4JConfiguration.java,v 1.3 2004/02/24 13:08:03 epugh Exp $
0
public static final String TABLE_ALIAS_LIST = "aliases"; new AttributeDefinition(TABLE_ALIAS_LIST, DataTypes.arrayTypeName(DataTypes.STRING_TYPE.getName()), Multiplicity.OPTIONAL, true, null),
0
boolean horizontal = true; result.put(GVTAttributedCharacterIterator. horizontal = false; if (horizontal) { f = UnitProcessor.cssHorizontalCoordinateToUserSpace (v, CSS_LETTER_SPACING_PROPERTY, uctx); } else { f = ...
0
// Tuple2[Key, Window] => Reduced Value // Order of items in this Tuple2 is reversed compared to the // order in KeySelector. This is made on purpose because // all values in this reducer have the same hash code. // Reversing the order will lead to better performance // whe...
0
if(processedGuids.contains(h.getGuid())) { continue; }
0
private final ServletInfo servletInfo; this.servletInfo = new ServletInfo(this); public ServletInfo getServletInfo() { return this.servletInfo; }
0
Iterators.size( getConnector().createScanner(MetadataTable.NAME, Authorizations.EMPTY).iterator());
0
factory.getReplacementTransform(null);
0
/* * (non-Javadoc) * * @see org.apache.accumulo.core.client.admin.InstanceOperations#ping(java.lang.String) */ @Override public void ping(String tserver) throws AccumuloException { // TODO Auto-generated method stub }
0
public static final String USE_HIVE_INTERACTIVE_MODE = "use.hive.interactive.mode"; if (property.equals(USE_HIVE_INTERACTIVE_MODE)) { String value = viewInstanceDefinition.getPropertyMap().get(USE_HIVE_INTERACTIVE_MODE); if (!("true".equalsIgnoreCase(value) || "false".equalsIgnoreCase(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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/ValidatorAction.java,v 1.20 2004/02/21 17:10:29 rleland Exp $ * $Revision: 1.20 $ * $Date: 2004/02/21 17:10:29 $ * Copyright 2001-2004 The Apache Software Foundation * Licensed un...
0
* $Header: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/beanshell/TestBeanShellEL.java,v 1.7 2002/05/17 15:18:14 jstrachan Exp $ * $Revision: 1.7 $ * $Date: 2002/05/17 15:18:14 $ * $Id: TestBeanShellEL.java,v 1.7 2002/05/17 15:18:14 jstrachan Exp $ * @version $Revision: 1.7 $
0
return SVG_FE_FUNC_B_TAG;
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
/** * Exception to throw if an operation is attempted on a table that doesn't exist. * */ private static final long serialVersionUID = 1L; private String tableName; /** * @param tableId * the internal id of the table that was sought * @param tableName * the visible ...
1
import org.apache.accumulo.core.clientImpl.ClientContext; import org.apache.accumulo.core.clientImpl.Credentials; import org.apache.accumulo.core.clientImpl.Namespace; import org.apache.accumulo.core.clientImpl.Namespaces; import org.apache.accumulo.core.clientImpl.Table; import org.apache.accumulo.core.clientImpl.Tabl...
0
import org.apache.avalon.framework.component.Component; * @version CVS $Id: SlideRepositoryImpl.java,v 1.2 2003/12/03 12:06:05 unico Exp $ Contextualizable, Disposable, Component, ThreadSafe {
0
import org.apache.ambari.server.controller.internal.RequestStatusImpl; expect(controller.createResources(Resource.Type.Component, serverRequest)).andReturn(new RequestStatusImpl(null));
1
* Copyright (c) OSGi Alliance (2004, 2009). All Rights Reserved. * @Immutable * @version $Revision: 6492 $ private final String type; private final String[] args; * Constructs a <code>ConditionInfo</code> from the specified type and args. * @throws NullPointerException If <code>type</code> is <code>null</code>...
0
private static final long serialVersionUID = 0; @Override public Boolean apply(CompletionCandidate c) { return c.getValue().length() == minPrefix; } })))
0
import org.apache.beam.sdk.transforms.SerializableFunctions; return JavaBeanUtils.schemaFromJavaBeanClass( typeDescriptor.getRawType(), SerializableFunctions.identity()); UserTypeCreatorFactory schemaTypeCreatorFactory() { return new SetterBasedCreatorFactory(new JavaBeanSetterFactory());
0
else if (numClass != null && numClass.isArray()) e.printStackTrace(); }
0
import org.joda.time.Instant; public Instant getWatermarkCutoff(W window) { return window.maxTimestamp(); } @Override
0
public void provideConfiguration( ServiceReference<ManagedServiceFactory> reference, final ConfigurationImpl config, final Dictionary<String, ?> rawProps ) public void removeConfiguration( ServiceReference<ManagedServiceFactory> reference, final ConfigurationImpl config )
0
return new PredicatedQueue<>(Queue, predicate);
1
* public class HdfsFileSystemConfigBuilder extends FileSystemConfigBuilder { private static final HdfsFileSystemConfigBuilder BUILDER = new HdfsFileSystemConfigBuilder(); /** * @return HdfsFileSystemConfigBuilder instance */ public static HdfsFileSystemConfigBuilder getInstance() { return BUILDER; } ...
0
if ( metaData != null ) {
0
import java.util.Set; import java.util.concurrent.CompletableFuture;
0
* @see DefaultTcpipForwarder2 return new DefaultTcpipForwarder2( session );
0
private static boolean useC14N11 = ((Boolean) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return new Boolean(Boolean.getBoolean ("com.sun.org.apache.xml.internal.security.useC14N11")); } })).booleanValue();
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
package org.apache.beam.learning.katas.commontransforms.filter.pardo;
0
* @see ScpHelper#SCP_COMMAND_PREFIX
0
import org.apache.accumulo.server.replication.ReplicationTable; private BatchWriter writer; if (null == writer) { writer = conn.createBatchWriter(ReplicationTable.NAME, new BatchWriterConfig()); } writer = null; writer = null; writer.addMutation(m); writ...
0
/* * Copyright (C) 2015 Google Inc. * * 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 law or agreed to ...
0
import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; Stream<String> types = Arrays.stream(PropertyType.values()).map(v -> v.name()); List<String> typesTested = Arrays.stream(this.getClass().getMethods()).map(m -> m.getName()).filter(m -> m.startsWith("testType")).map(m -> ...
0
/** public Collection<BundleCapability> findProviders(final Requirement requirement) { return m_felix.findProviders(requirement);
0
public final class ClassConverter implements Converter {
0
* @version $Id$
0