Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
char[] value = CredentialProviderFactoryShim.getValueFromCredentialProvider(hadoopConf, key); String value = staticConfigs.containsKey(key) ? staticConfigs.get(key) : getXmlConfig().get(key); char[] value = CredentialProviderFactoryShim.getValueFromCredentialProvider(hadoopConf, key);
0
* * @deprecated since 2.0. This class maintained for backwards compatibility please do not remove. * New users see org.apache.accumulo.hadoop.mapreduce.AccumuloInputFormat @Deprecated
0
public Service createAdapterService(Class serviceInterface, String serviceFilter, String adapterInterface, Object adapterImplementation, Dictionary adapterProperties) { return m_manager.createAdapterService(serviceInterface, serviceFilter, adapterInterface, adapterImplementation, adapterProperties); } public Service createAdapterService(Class serviceInterface, String serviceFilter, String[] adapterInterface, Object adapterImplementation, Dictionary adapterProperties) { public Service createResourceAdapter(String resourceFilter, String adapterInterface, Dictionary adapterProperties, Object adapterImplementation, boolean propagate) { return m_manager.createResourceAdapterService(resourceFilter, adapterInterface, adapterProperties, adapterImplementation, propagate); } public Service createResourceAdapter(String resourceFilter, String[] adapterInterface, Dictionary adapterProperties, Object adapterImplementation, boolean propagate) { public Service createBundleAdapterService(int bundleStateMask, String bundleFilter, Object adapterImplementation, String[] adapterInterface, Dictionary adapterProperties, boolean propagate) { return m_manager.createBundleAdapterService(bundleStateMask, bundleFilter, adapterImplementation, adapterInterface, adapterProperties, propagate); }
0
@Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override
0
import org.apache.accumulo.test.constraints.NumericValueConstraint;
0
import org.apache.hc.core5.http.nio.ContentInputBuffer;
1
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting; import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Joiner; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists; import org.apache.beam.vendor.guava.v20_0.com.google.common.io.CharStreams;
0
* * @deprecated Use * {@link #DiskFileItemFactory(FileCleaningTracker, int, File)}. * @deprecated Use * {@link #DiskFileItemFactory(FileCleaningTracker, int, File)}. * @param tracker The tracker, which is responsible to delete * temporary files. public DiskFileItemFactory(FileCleaningTracker tracker, int sizeThreshold, File repository) { * @param pTracker An instance of {@link FileCleaningTracker}, public void setFileCleaningTracker(FileCleaningTracker pTracker) { fileCleaningTracker = pTracker;
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.BiMap; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableSet; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Sets;
0
* @deprecated
0
* <p> * </p> * * <p> * This class is thread-safe. * </p>
0
Boolean isHttpMode = context.getProperties().get("hive.transport.mode").equalsIgnoreCase("http"); String port; if(isHttpMode){ port = context.getProperties().get("hive.http.port"); }else{ port = context.getProperties().get("hive.port"); } return port; params.put(Utils.HiveAuthenticationParams.TRANSPORT_MODE,context.getProperties().get("hive.transport.mode")); params.put(Utils.HiveAuthenticationParams.HTTP_PATH,context.getProperties().get("hive.http.path"));
0
} else if (reader.getWatermark().isBefore(BoundedWindow.TIMESTAMP_MAX_VALUE)) { // If the reader had no elements available, but the shard is not done, reuse it later resultBuilder.addUnprocessedElements( Collections.<WindowedValue<?>>singleton( element.withValue( UnboundedSourceShard.of( shard.getSource(), shard.getDeduplicator(), reader, shard.getCheckpoint()))));
0
Map<String, Object> props = createScaleClusterPropertiesGroup1_HostName(CLUSTER_NAME, BLUEPRINT_NAME); addSingleHostByName(props); addSingleHostByName(replaceWithPlainHostNameKey(props)); } private void addSingleHostByName(Map<String, Object> props) throws InvalidTopologyTemplateException { ScaleClusterRequest scaleClusterRequest = new ScaleClusterRequest(Collections.singleton(props)); addMultipleHostsByName(propertySet); for (Map<String, Object> props : propertySet) { replaceWithPlainHostNameKey(props); } addMultipleHostsByName(propertySet); } private void addMultipleHostsByName(Set<Map<String, Object>> propertySet) throws InvalidTopologyTemplateException { // reset default host resource provider expectations to none since no host predicate is used reset(hostResourceProvider); replay(hostResourceProvider); properties.remove(HostResourceProvider.HOST_HOST_NAME_PROPERTY_ID); properties.put(HostResourceProvider.HOST_HOST_NAME_PROPERTY_ID, HOST1_NAME); return properties; } // include host name under "host_name" key instead of "Hosts/host_name" private static Map<String, Object> replaceWithPlainHostNameKey(Map<String, Object> properties) { Object value = properties.remove(HostResourceProvider.HOST_HOST_NAME_PROPERTY_ID); properties.put(HostResourceProvider.HOST_NAME_PROPERTY_ID, value); properties.put(HostResourceProvider.HOST_HOST_NAME_PROPERTY_ID, HOST2_NAME);
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 law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.xml.security.signature; import org.w3c.dom.Node; /** * An interface to tell to the c14n if a node is included or not in the output * @author raul * */ public interface NodeFilter { /** * Tells if a node must be outputed in c14n. * @param n * @return true if node must be outputed, false otherwise. */ public boolean isNodeInclude(Node n); }
0
import org.apache.commons.jxpath.JXPathInvalidSyntaxException; throw new JXPathInvalidSyntaxException( throw new JXPathInvalidSyntaxException(
0
private boolean isDynAttribute = false; private boolean isDynAttributeEvalTrigger = false; break; break; break; break; public boolean getIsDynAttribute() { return isDynAttribute; } public void setIsDynAttribute(boolean isDynAttribute){ this.isDynAttribute = isDynAttribute; } public boolean getIsDynAttributeEvalTrigger() { return isDynAttributeEvalTrigger; } public void setIsDynAttributeEvalTrigger(boolean isDynAttributeEvalTrigger) { this.isDynAttributeEvalTrigger = isDynAttributeEvalTrigger; }
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/DefaultMapBag.java,v 1.6 2002/10/12 22:15:19 scolebourne Exp $ * $Revision: 1.6 $ * $Date: 2002/10/12 22:15:19 $
0
public class TestCacheKeyGenerator { CacheKeyGenerator extractor; extractor = new CacheKeyGenerator(); extractor = new CacheKeyGenerator() { extractor = new CacheKeyGenerator() { extractor = new CacheKeyGenerator() { extractor = new CacheKeyGenerator() { extractor = new CacheKeyGenerator() { extractor = new CacheKeyGenerator() {
0
import com.google.cloud.dataflow.sdk.util.WindowingStrategy.AccumulationMode; tester = TriggerTester.buffering( windowFn, AfterEach.inOrder(mockTrigger1, mockTrigger2), AccumulationMode.DISCARDING_FIRED_PANES); .orFinally(AfterPane.<IntervalWindow>elementCountAtLeast(7))), AccumulationMode.DISCARDING_FIRED_PANES);
0
if (LOG.isDebugEnabled()) { LOG.debug("graph commit"); }
0
long timeout = acuConf.getTimeInMillis(Property.TSERV_CLIENT_TIMEOUT); bresult = scanSession.nextBatchTask.get(timeout, TimeUnit.MILLISECONDS); sessionManager.removeIfNotAccessed(scanID, timeout);
0
import org.junit.Assert; import org.junit.Test; public class TestCookieBestMatchSpec { @Test @Test Assert.fail("MalformedCookieException exception should have been thrown"); @Test Assert.fail("MalformedCookieException exception should have been thrown"); @Test Assert.assertEquals("localhost", cookie.getDomain()); Assert.assertFalse(cookie instanceof SetCookie2); @Test Assert.assertEquals("localhost.local", cookie.getDomain()); Assert.assertTrue(cookie instanceof SetCookie2); @Test Assert.assertTrue(cookiespec.match(cookie, origin)); @Test Assert.assertFalse(cookiespec.match(cookie, origin)); Assert.assertTrue(cookiespec.match(cookie, origin)); @Test Assert.assertNotNull(headers); Assert.assertEquals(1, headers.size()); Assert.assertEquals("name1=value1; name2=value2", header.getValue()); @Test Assert.assertNotNull(headers); Assert.assertEquals(1, headers.size()); Assert.assertEquals("$Version=1; name1=\"value1\"; $Path=\"/\"; $Domain=\".domain.com\"; " + @Test Assert.fail("IllegalArgumentException must have been thrown"); Assert.fail("IllegalArgumentException must have been thrown"); Assert.fail("IllegalArgumentException must have been thrown"); Assert.fail("IllegalArgumentException must have been thrown");
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 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 in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ambari.server.actionmanager; import org.apache.ambari.server.agent.ExecutionCommand; /** * The {@link ExecutionCommandWrapperFactory} is used to create instances of * {@link ExecutionCommandWrapper} that have Guice injected members set. */ public interface ExecutionCommandWrapperFactory { ExecutionCommandWrapper createFromJson(String jsonExecutionCommand); ExecutionCommandWrapper createFromCommand(ExecutionCommand executionCommand); }
0
package org.apache.hadoop.metadata.typesystem.types.store; import org.apache.hadoop.metadata.typesystem.TypesDef; import org.apache.hadoop.metadata.typesystem.types.ClassType; import org.apache.hadoop.metadata.typesystem.types.DataTypes; import org.apache.hadoop.metadata.typesystem.types.HierarchicalTypeDefinition; import org.apache.hadoop.metadata.typesystem.types.StructTypeDefinition; import org.apache.hadoop.metadata.typesystem.types.TraitType; import org.apache.hadoop.metadata.typesystem.types.TypeSystem; import static org.apache.hadoop.metadata.typesystem.types.utils.TypesUtil.createClassTypeDef; import static org.apache.hadoop.metadata.typesystem.types.utils.TypesUtil.createRequiredAttrDef; public class HdfsStoreTest extends BaseTest { Assert.assertEquals("database", typeDef.get("falcon").classTypesAsJavaList().get(0).typeName);
0
public static Map<String, PropertyDescriptor> getPropertyDescriptors( Class<?> targetClass ) Map<String, PropertyDescriptor> result; if ( ( result = _propertyDescriptorCache.get( targetClass ) ) == null ) result = new HashMap<String, PropertyDescriptor>( 101 ); return getPropertyDescriptors( targetClass ).get( propertyName );
0
import org.apache.beam.sdk.extensions.gcp.auth.TestCredential;
0
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ServiceComponentHostResponse that = (ServiceComponentHostResponse) o; if (clusterName != null ? !clusterName.equals(that.clusterName) : that.clusterName != null) { return false; } if (serviceName != null ? !serviceName.equals(that.serviceName) : that.serviceName != null) { return false; } if (componentName != null ? !componentName.equals(that.componentName) : that.componentName != null){ return false; } if (hostname != null ? !hostname.equals(that.hostname) : that.hostname != null) { return false; } return true; } @Override public int hashCode() { int result = clusterName != null ? clusterName.hashCode() : 0; result = 71 * result + (serviceName != null ? serviceName.hashCode() : 0); result = 71 * result + (componentName != null ? componentName.hashCode():0); result = 71 * result + (hostname != null ? hostname.hashCode() : 0); return result; }
0
import org.apache.accumulo.core.clientImpl.TabletLocator;
0
for (String type : emails.keySet()) { for (Address addr : addresses) {
0
* @param <K> the type of the keys in this map * @param <V> the type of the values in this map
0
TimeValue.ofMilliseconds(500), TimeValue.ofSeconds(3)); TimeValue.ofMilliseconds(500), null);
0
package org.apache.accumulo.shell.commands; import org.apache.accumulo.shell.Shell; import org.apache.accumulo.shell.Shell.Command;
0
List<String> list = new ArrayList<>(); Collection<Object> props = new ArrayList<>(); props = new ArrayList<>(); Map<String, Lookup> prefixLookups = new HashMap<>(); List<Lookup> defLookups = new ArrayList<>();
0
if (object != null && !definition.getDatatype().getTypeClass().isAssignableFrom(object.getClass()))
0
import org.apache.cocoon.forms.validation.ValidationErrorAware; import org.apache.cocoon.forms.validation.ValidationError; * @version $Id: BooleanField.java,v 1.11 2004/07/02 09:17:08 jeremy Exp $ public class BooleanField extends AbstractWidget implements ValidationErrorAware, ValueChangedListenerEnabled { protected ValidationError validationError; validationError = null; //return true; return super.validate(); } /** * Returns the validation error, if any. There will always be a validation error in case the * {@link #validate()} method returned false. */ public ValidationError getValidationError() { return validationError; } /** * Set a validation error on this field. This allows fields to be externally marked as invalid by * application logic. * * @param error the validation error */ public void setValidationError(ValidationError error) { this.validationError = error; private static final String VALIDATION_MSG_EL = "validation-message"; // validation message element: only present if the value is not valid if (validationError != null) { contentHandler.startElement(Constants.INSTANCE_NS, VALIDATION_MSG_EL, Constants.INSTANCE_PREFIX_COLON + VALIDATION_MSG_EL, XMLUtils.EMPTY_ATTRIBUTES); validationError.generateSaxFragment(contentHandler); contentHandler.endElement(Constants.INSTANCE_NS, VALIDATION_MSG_EL, Constants.INSTANCE_PREFIX_COLON + VALIDATION_MSG_EL); }
0
private String roundtrip( final String msg ) throws IOException { private String roundtrip( final String msg, final boolean ensure ) throws IOException {
0
if (!this.blueprints.containsKey(blueprintName)) { String msg = "Blueprint ["+blueprintName+"] is not defined"; throw new WebApplicationException ((new ExceptionResponse(msg, Response.Status.BAD_REQUEST)).get()); } if (!this.blueprints.get(blueprintName).containsKey(revision)) {
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 use this file except in compliance with the License. You may obtain a copy of the License at
0
import cz.seznam.euphoria.core.client.operator.InnerJoin; InnerJoin.of(left, right) .using((Pair<String, Long> l, Pair<String, Long> r, Collector<Triple<TimeInterval, String, String>> c) ->
0
import org.apache.accumulo.core.metadata.MetadataTable;
1
import org.apache.commons.configuration.event.ConfigurationEvent; import org.apache.commons.configuration.event.EventListener; @SuppressWarnings("unchecked") EventListener<ConfigurationEvent> cl = EasyMock.createMock(EventListener.class); source.addEventListener(ConfigurationEvent.ANY, cl); assertFalse("Wrong result (1)", source.removeEventListener(ConfigurationEvent.ANY, cl)); source.addEventListener(ConfigurationEvent.ANY, null);
0
Object sm = System.getSecurityManager(); if (sm != null) { try { ((SecurityManager) sm).checkPermission(new AdminPermission(this, AdminPermission.RESOURCE)); } catch (Exception e) { return null; // No permission } }
1
this.doClose(); this.doClose();
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 use this file except in compliance with * the License. You may obtain a copy of the License at
1
* limitations under the License.
0
package org.apache.ambari.api.handlers; import org.apache.ambari.api.query.Query; import org.apache.ambari.api.resource.ResourceDefinition; import org.apache.ambari.api.services.Request; import org.apache.ambari.api.services.Result; import org.junit.Test; import java.util.HashSet; import java.util.Set; import static org.easymock.EasyMock.*; import static org.junit.Assert.assertSame; /** * Created with IntelliJ IDEA. * User: john * Date: 9/12/12 * Time: 12:45 PM * To change this template use File | Settings | File Templates. */ public class ReadHandlerTest { @Test public void testHandlerRequest() throws Exception { Request request = createStrictMock(Request.class); ResourceDefinition resourceDefinition = createStrictMock(ResourceDefinition.class); Query query = createMock(Query.class); Result result = createStrictMock(Result.class); Set<String> setPartialResponseFields = new HashSet<String>(); setPartialResponseFields.add("foo"); setPartialResponseFields.add("bar/c"); setPartialResponseFields.add("bar/d/e"); //expectations expect(request.getResourceDefinition()).andReturn(resourceDefinition); expect(resourceDefinition.getQuery()).andReturn(query); expect(request.getPartialResponseFields()).andReturn(setPartialResponseFields); query.addProperty(null, "foo"); query.addProperty("bar", "c"); query.addProperty("bar/d", "e"); expect(query.execute()).andReturn(result); replay(request, resourceDefinition, query, result); //test ReadHandler handler = new ReadHandler(); assertSame(result, handler.handleRequest(request)); verify(request, resourceDefinition, query, result); } }
1
import org.apache.ambari.server.orm.dao.PrivilegeDAO; * Data access object used to obtain privilege entities. protected static PrivilegeDAO privilegeDAO; * @param privilegeDAO ViewInstanceDAO viewInstanceDAO, PrivilegeDAO privilegeDAO) { GroupPrivilegeResourceProvider.privilegeDAO = privilegeDAO; final Set<PrivilegeEntity> privileges = groupEntity.getPrincipal().getPrivileges(); Set<PrivilegeEntity> allViewPrivilegesWithClusterPermission = ClusterInheritedPermissionHelper.getViewPrivilegesWithClusterPermission(viewInstanceDAO, privilegeDAO, privileges); privileges.addAll(allViewPrivilegesWithClusterPermission);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/beans/BeanAttributeIterator.java,v 1.5 2003/01/11 05:41:24 dmitri Exp $ * $Revision: 1.5 $ * $Date: 2003/01/11 05:41:24 $ * @version $Revision: 1.5 $ $Date: 2003/01/11 05:41:24 $ public BeanAttributeIterator(PropertyOwnerPointer parent, QName name) { super( parent, (name.getPrefix() == null && (name.getName() == null || name.getName().equals("*"))) ? null : name.toString(), false, null); (name.getPrefix() != null && name.getPrefix().equals("xml")) && (name.getName().equals("lang") || name.getName().equals("*")); public NodePointer getNodePointer() { if (includeXmlLang && position == 1) { public int getPosition() { public boolean setPosition(int position) { if (includeXmlLang) { if (position == 1) {
1
public static void init(HeartBeatHandler instance) {
0
import com.google.api.services.pubsub.Pubsub; import com.google.api.services.pubsub.model.PublishRequest; import com.google.api.services.pubsub.model.PubsubMessage; import com.google.common.collect.ImmutableMap; import java.io.IOException; import java.util.Arrays;
0
public int consumeContent(final ContentDecoder decoder) throws IOException { return -1; this.mutex.notifyAll(); if (totalRead > 0) { return totalRead; } else { if (this.endOfStream) { return -1; } else { return 0; } }
0
package org.apache.beam.sdk.util;
0
import org.apache.xml.security.algorithms.JCEMapper; import org.apache.xml.security.algorithms.SignatureAlgorithmSpi; import org.apache.xml.security.signature.XMLSignatureException; import org.apache.xml.security.utils.Base64; import org.apache.xml.security.utils.Constants; return SignatureDSA._URI; JCEMapper.translateURItoJCEID(SignatureDSA._URI);
0
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import javax.annotation.Nonnull; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterators; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Maps; org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Function< @SuppressFBWarnings( value = "NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION", justification = "https://github.com/google/guava/issues/920") public KV<K, V> apply(@Nonnull Tuple2<K, V> t2) { org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Function< @SuppressFBWarnings( value = "NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION", justification = "https://github.com/google/guava/issues/920") public WindowedValue<KV<K, V>> apply(@Nonnull KV<K, WindowedValue<V>> kv) {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/bean/src/java/org/apache/commons/jelly/tags/bean/BeanPropertyTag.java,v 1.5 2003/01/25 23:34:42 morgand Exp $ * $Revision: 1.5 $ * $Date: 2003/01/25 23:34:42 $ * $Id: BeanPropertyTag.java,v 1.5 2003/01/25 23:34:42 morgand Exp $ * @version $Revision: 1.5 $
0
@SuppressWarnings("checkstyle:MethodCount")
0
import org.apache.cocoon.portal.event.CopletInstanceEvent; * @version CVS $Id: URICopletAdapter.java,v 1.12 2004/02/09 12:14:20 cziegeler Exp $ if ( uri == null ) { throw new SAXException("No URI for coplet data "+coplet.getCopletData().getId()+" found."); } List list = (List) portalService.getTemporaryAttribute(URICopletAdapter.class.getName()); return CopletInstanceEvent.class; CopletInstanceEvent event = (CopletInstanceEvent)e;
0
* @version $Id: TestBaseConfiguration.java,v 1.2 2003/12/24 14:28:21 epugh Exp $ * now add another and get a List assertTrue("This returns array", ( eprop.getList("number") instanceof java.util.List ) ); * when we access a list valued property assertTrue("This returns list", ( eprop.getList("prop.string") instanceof java.util.List ) ); .getList("string") instanceof java.util.List) );
0
return new SessionFactory(this);
0
repositoryVersion.setResolved(true); repositoryVersion = repositoryVersionDAO.merge(repositoryVersion);
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 law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ * @version CVS $Id: FormattingIntegerConvertor.java,v 1.3 2004/03/05 13:02:28 bdelacretaz Exp $
1
DO_NOT_INJECT_INVALID_DOCS
0
expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn( expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn(
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 use this file except in compliance * with the License. You may obtain a copy of the License at * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.atlas.omrs.topicconnectors.kafka; import org.apache.atlas.ocf.ConnectorProviderBase; /** * KafkaOMRSTopicProvider provides implementation of the connector provider for the KafkaOMRSTopicConnector. */ public class KafkaOMRSTopicProvider extends ConnectorProviderBase { /** * Constructor used to initialize the ConnectorProviderBase with the Java class name of the specific * OMRS Connector implementation. */ public KafkaOMRSTopicProvider() { Class connectorClass = KafkaOMRSTopicConnector.class; super.setConnectorClassName(connectorClass.getName()); } }
0
private int _autoGeneratedKeys = 1; public TesterPreparedStatement(final Connection conn, final String sql, final int autoGeneratedKeys) { super(conn); _sql = sql; _autoGeneratedKeys = autoGeneratedKeys; try { _catalog = conn.getCatalog(); } catch (final SQLException e) { // Ignored } } public String getSql() { return _sql; } public int getAutoGeneratedKeys() { return _autoGeneratedKeys; }
0
final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class ); final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class ); final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class ); final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class );
0
* * @author <a href="mailto:[email protected]">Felix Project Team</a>
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/util/Attic/UtilTagLibrary.java,v 1.6 2002/11/13 12:59:35 jstrachan Exp $ * $Revision: 1.6 $ * $Date: 2002/11/13 12:59:35 $ * $Id: UtilTagLibrary.java,v 1.6 2002/11/13 12:59:35 jstrachan Exp $ * @version $Revision: 1.6 $ registerTag("available", AvailableTag.class);
0
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken; import org.apache.accumulo.core.client.security.tokens.PasswordToken;
1
opTimer.stop("Found master at " + (loc == null ? null : new String(loc, Constants.UTF8)) + " in %DURATION%"); return Collections.singletonList(new String(loc, Constants.UTF8)); opTimer.stop("Found root tablet at " + (loc == null ? null : new String(loc, Constants.UTF8)) + " in %DURATION%"); return new String(loc, Constants.UTF8).split("\\|")[0];
0
(BeamFnApi.Elements t) -> { inboundServerValues.add(t); waitForInboundServerValuesCompletion.countDown(); }) .build();
0
import org.apache.accumulo.core.security.Credentials; boolean hasPermission = WalkingSecurity.get(state).canAskAboutUser(new Credentials(principal, token).toThrift(state.getInstance()), target);
0
import org.apache.accumulo.core.conf.ClientProperty; cfg.setClientProperty(ClientProperty.INSTANCE_ZOOKEEPERS_TIMEOUT, "15s");
0
return new Timeout(scalingFactor * 10 * 60 * 1000);
0
properties.setProperty("maxWaitMillis", "500");
0
final RelProtoDataType protoRowType = a0 -> a0.builder() .add("col_tinyint", SqlTypeName.TINYINT) .add("col_smallint", SqlTypeName.SMALLINT) .add("col_integer", SqlTypeName.INTEGER) .add("col_bigint", SqlTypeName.BIGINT) .add("col_float", SqlTypeName.FLOAT) .add("col_double", SqlTypeName.DOUBLE) .add("col_decimal", SqlTypeName.DECIMAL) .add("col_string_varchar", SqlTypeName.VARCHAR) .add("col_time", SqlTypeName.TIME) .add("col_timestamp", SqlTypeName.TIMESTAMP) .add("col_boolean", SqlTypeName.BOOLEAN) .build();
0
for (final String confPid : confPids ) boolean created = false; if ( !created ) { return false; } else { return false; } } else { return false; return !confPids.isEmpty();
0
"/org/apache/beam/model/fnexecution/v1/standard_coders.yaml";
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 use this file except in compliance with * the License. You may obtain a copy of the License at
0
Set<Resource> setResources = new HashSet<>(); Set<Resource> setResources = new HashSet<>();
1
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists; import org.apache.beam.vendor.guava.v20_0.com.google.common.io.Files; import org.apache.beam.vendor.guava.v20_0.com.google.common.io.LineReader; import org.apache.beam.vendor.guava.v20_0.com.google.common.util.concurrent.MoreExecutors;
0
import java.awt.Font; import org.apache.batik.util.SwingInitializer; Font font = new Font("Dialog", Font.PLAIN, 10); SwingInitializer.swingDefaultsFontInit(font);
0
@Override public String toString() { return "RepositoryRequest [repoId=" + repoId + ", baseUrl=" + baseUrl + ", verify=" + verify + ", getOsType()=" + getOsType() + ", getRepositoryVersionId()=" + getRepositoryVersionId() + ", getStackVersion()=" + getStackVersion() + ", getStackName()=" + getStackName() + "]"; }
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 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 in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
0
* @version $Revision: 1.4 $ $Date: 2004/02/27 00:25:14 $ public void testClone() { CaseInsensitiveMap map = new CaseInsensitiveMap(10); map.put("1", "1"); Map cloned = (Map) map.clone(); assertEquals(map.size(), cloned.size()); assertSame(map.get("1"), cloned.get("1")); }
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 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 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/CollectionDoubleCollection.java,v 1.2 2003/08/31 17:21:17 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknowledgements normally appear. * @version $Revision: 1.2 $ $Date: 2003/08/31 17:21:17 $
0
* @version $Id: Action.java,v 1.3 2004/03/09 13:08:45 cziegeler Exp $ contentHandler.startElement(Constants.INSTANCE_NS, ACTION_EL, Constants.INSTANCE_PREFIX_COLON + ACTION_EL, buttonAttrs); contentHandler.endElement(Constants.INSTANCE_NS, ACTION_EL, Constants.INSTANCE_PREFIX_COLON + ACTION_EL);
0
private List<Predicate> predicates = new LinkedList<>(); addPredicate(new EqualsPredicate<>(propertyId, value)); addPredicate(new GreaterPredicate<>(propertyId, value)); addPredicate(new GreaterEqualsPredicate<>(propertyId, value)); addPredicate(new LessPredicate<>(propertyId, value)); addPredicate(new LessEqualsPredicate<>(propertyId, value));
1
import org.slf4j.LoggerFactory; import org.slf4j.Logger; private final Logger connLog = LoggerFactory.getLogger("org.apache.hc.core5.http.connection");
0
package org.apache.aurora.scheduler.offers; import org.apache.aurora.scheduler.offers.OfferManager.OfferManagerImpl; import org.apache.aurora.scheduler.offers.OfferManager.OfferReturnDelay;
0
import org.junit.Assert; import org.junit.Test; public class UncategorizedTest extends org.junit.Assert {
0
protected boolean isCorrectClass(final String className) { protected InstanceKeyDataSource getNewInstance(final Reference ref) {
0
public void encode(PubsubMessage value, OutputStream outStream) throws IOException { encode(value, outStream, Context.NESTED); } @Override public PubsubMessage decode(InputStream inStream) throws IOException { return decode(inStream, Context.NESTED); } @Override
0
private GrpcFnServer(Server server, ServiceT service, ApiServiceDescriptor apiServiceDescriptor) {
0
public boolean consistentWithEquals() { return true; } @Override
0
void onInit(Config config, SamzaPipelineOptions options);
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 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 in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ambari.server.state.scheduler; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.scheduler.AbstractLinearExecutionJob; import org.apache.ambari.server.scheduler.ExecutionScheduleManager; public class BatchRequestJob extends AbstractLinearExecutionJob { public BatchRequestJob(ExecutionScheduleManager executionScheduleManager) { super(executionScheduleManager); } @Override protected void doWork() throws AmbariException { } }
0
* {@inheritDoc} * {@inheritDoc}
0