Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
"org.apache.batik.parser.resources.Messages"; return current; localizableSupport.setLocale(l); errorHandler = handler; switch (current) { default: break wsp1; case 0x20: case 0x9: case 0xD: case 0xA: ...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/IteratorLongIterator.java,v 1.3 2003/11/07 20:08:15 rwaldhoff Exp $ * * @deprecated This code has been moved to Jakarta Commons Primitives (http://jaka...
0
import static org.mockito.Mockito.times; // To make sure that we retry requests, each invocation below throws an IOException first time // they are invoked. .thenThrow(new IOException()) MockLowLevelHttpResponse response = new MockLowLevelHttpResponse() ....
0
String base = System.getProperty("basedir") == null ? "./": System.getProperty("basedir"); base += fs + "data" + fs + "com";
0
package org.apache.zookeeper.server.quorum; public class LeaderElectionBean implements LeaderElectionMXBean, ZKMBeanInfo { private final Date startTime = new Date();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Bag.java,v 1.12 2003/12/28 18:08:54 scolebourne Exp $ * @version $Revision: 1.12 $ $Date: 2003/12/28 18:08:54 $ // The following is not part of the formal Bag interface, howev...
0
public static final String topNDownSamplerKey = "topn"; public static final String eventDownSamplerKey = "event"; if (StringUtils.isNotEmpty(type) && type.equalsIgnoreCase(topNDownSamplerKey)) { if (StringUtils.isNotEmpty(type) && type.equalsIgnoreCase(eventDownSamplerKey)) { return EventMetricDownSam...
0
import org.apache.ambari.server.orm.entities.HostComponentDesiredStateEntity; HostComponentDesiredStateEntity hostComponentDesiredStateEntity = sch.getDesiredStateEntity(); return isStaleConfigs(sch, requestDesiredConfigs, hostComponentDesiredStateEntity); } public boolean isStaleConfigs(ServiceComponentHo...
0
package org.apache.cocoon.portal.om;
0
/* * Copyright 2013 Twitter, 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 t...
0
import org.apache.ambari.server.orm.OrmTestHelper; private OrmTestHelper helper; helper = injector.getInstance(OrmTestHelper.class); helper.getOrCreateRepositoryVersion(c.getDesiredStackVersion().getStackName(), c.getDesiredStackVersion().getStackVersion());
0
* @since 1.11.0 * @since 1.11.0
0
import org.apache.accumulo.server.ServerContext; ServerContext context; context = EasyMock.createMock(ServerContext.class);
0
private static final List<String> TEST_VALUES = Arrays.asList( "", "a", "13", "hello", null, "a longer string with spaces and all that", "a string with a \n newline", "スタリング");
0
HttpRoute route, HttpClientConnection conn, HttpRoute route, HttpContext context) throws IOException; void routeComplete( HttpClientConnection conn, HttpRoute route,
0
* @since 1.4
1
public final long id; public Id(long id, int version, String className) { this(- System.currentTimeMillis(), 0, className); return id < 0; } public String toString() { return String.format("(type: %s, id: %s)", className, isUnassigned() ? "<unassigned>" : "" + id);
0
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception { final String tableName = OptUtil.getTableOpt(cl, shellState); final Text startRow = OptUtil.getStartRow(cl); final Text endRow = OptUtil.getEndRow(cl); if (cl.hasOption(verboseOpt.getOpt())) {...
0
COMPARE_CONTAINS, COMPARE_IS_NULL, COMPARE_NOT_NULL
0
List<Long> clusterIds = new ArrayList<>();
1
/* * $Header: /cvshome/build/ee.foundation/src/java/security/SignedObject.java,v 1.6 2006/03/14 01:20:26 hargrave Exp $ * * (C) Copyright 2001 Sun Microsystems, Inc. * Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
0
* @version CVS $Id: Evaluation.java,v 1.3 2004/03/24 18:54:23 joerg Exp $ * @param context
0
sslsock.setReuseAddress(HttpConnectionParams.getSoReuseaddr(params));
0
import org.apache.http.client.utils.DateUtils;
0
import org.apache.hc.core5.http.protocol.HttpProcessor; import org.apache.hc.core5.util.Args; private final HttpProcessor httpProcessor; final HttpProcessor httpProcessor, this.httpProcessor = Args.notNull(httpProcessor, "HTTP processor"); this.exchangeHandlerFactory = Args.notNull(excha...
0
import com.google.common.collect.ImmutableList; import org.apache.hadoop.metadata.types.AttributeDefinition; import org.apache.hadoop.metadata.types.ClassType; import org.apache.hadoop.metadata.types.HierarchicalTypeDefinition; import org.apache.hadoop.metadata.types.IDataType; import org.apache.hadoop.metadata.types.M...
0
* --runner=BlockingDataflowRunner
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
* 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
@SuppressWarnings("deprecation")
0
String expected = NamedResource.getNames(BuiltinCompressions.VALUES); String expected = NamedResource.getNames(BuiltinCiphers.VALUES); String expected = NamedResource.getNames(BuiltinMacs.VALUES); String expected = NamedResource.getNames(BuiltinSignatures.VALUES);
0
* http://www.apache.org/licenses/LICENSE-2.0
0
if (!isSymlink(file)) { size += sizeOf(file); }
0
public String apply(RepoDefinitionEntity input) {
0
m_name = name; m_p = mp; capability.setAttribute( "name", getName() ); for ( int i = 0; i < getP().size(); i++ ) capability.appendChild( ( ( PElement ) ( getP().get( i ) ) ).getNode( father ) );
0
import com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn; import java.util.ArrayList; import java.util.List; private WindowFn<Object, W> windowFn; WindowFn<Object, W> windowFn, KeyedCombineFn<K, InputT, AccumT, OutputT> combineFn) { this.windowFn = windowFn; final K key = c.element().getKey();...
0
private static final long serialVersionUID = 5236493427411303394L;
0
import javax.annotation.Nullable; import com.google.common.collect.Maps; /** * Gets all versions of the desired configurations for the cluster. * @return a map of type-to-configuration information. */ @Override public Map<String, Set<DesiredConfig>> getAllDesiredConfigVersions() { return getDesiredCo...
0
private final Set<Capability> m_capSet = new HashSet<Capability>(); m_capSet.add(cap); if (m_capSet.remove(cap)) Set<Capability> matches = match(m_capSet, sf);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCharListIteratorListIterator.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately...
0
DoFnSignatures.getSignature(BadTypeVariables.class); DoFnSignatures.getSignature(new DoFn<String, String>() {}.getClass()); DoFnSignatures.getSignature( DoFnSignatures.getSignature( DoFnSignatures.getSignature(GoodTypeVariables.class); DoFnSignatures.getSignature(new IdentityFn<String>() {}.getC...
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
result.getNodeModel().setRootNode(cn);
0
ver.put("version", "0.9.0");
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
* @version $Id$
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; public class TestJNDIEnvironmentValues @Before...
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.junit.Before; import org.junit.Test; public class IteratorUtilsTest { /** * Collection ...
0
* <li>{@link #getCreateCount() numActive} &gt; {@link #getMaxActive() maxActive} - 3</li>
0
for (final PropertyDescriptor descriptor : descriptors) {
0
* Get a blueprint's revisions * @param revision Revision of the blueprint * @param locationURL URL pointing to the location of the blueprint
0
* @version $Id: Union.java,v 1.11 2004/05/07 16:43:43 mpo Exp $ caseWidget = ((ContainerWidget)getParent()).getChild(caseWidgetId); if ((widget = getChild(value)) != null) if ((widget = getChild(value)) != null) public Widget getChild(String id) { return super.getChild(id);
0
import org.apache.felix.dm.DependencyManager;
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
.put( PTransformMatchers.stateOrTimerParDoMulti(), .put( PTransformMatchers.stateOrTimerParDoSingle(), PTransformMatchers.classEqualTo(Combine.GloballyAsSingletonView.class), new BatchViewOverrides.BatchCombineGloballyAsSingletonViewFactory(thi...
0
import org.apache.ambari.server.controller.PassiveStateHelper; PassiveState newState = PassiveState.valueOf(request.getPassiveState()); PassiveState oldState = h.getPassiveState(c.getClusterId()); if (!newState.equals(oldState)) { if (newState.equals(PassiveState.IMPLIED)) { ...
0
@Override @Override
0
final int minArgs = 2; final int maxArgs = 3; assertArgRange(minArgs, maxArgs); final int argCount = 3; assertArgCount(argCount); final int minArgs = 2; final int maxArgs = 3; assertArgRange(minArgs, maxArgs); if (getArgumentCount() == maxArgs) {
0
import static org.apache.aurora.scheduler.state.StateChangeResult.ILLEGAL; import static org.apache.aurora.scheduler.state.StateChangeResult.INVALID_CAS_STATE; import static org.apache.aurora.scheduler.state.StateChangeResult.NOOP; import static org.apache.aurora.scheduler.state.StateChangeResult.SUCCESS; assertEqu...
0
import org.joda.time.DateTime; DateTime time = str2DateTime("2017-05-22 16:17:18");
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableListIterator.java,v 1.2 2003/12/03 12:27:37 scolebourne Exp $ * @version $Revision: 1.2 $ $Date: 2003/12/03 12:27:37 $ private UnmodifiableListIterator(L...
0
// Poke the iterator so we can test dynamic splitting. assertTrue(iter.hasNext()); // Poke the iterator so we can test dynamic splitting. assertTrue(iter.hasNext()); assertNotNull(dynamicSplitResult);
0
HiveMetaStoreBridge hiveMetaStoreBridge = new HiveMetaStoreBridge(ApplicationProperties.get(), new HiveConf(), atlasClient);
0
import java.util.Collections; import java.util.Set;
0
List children = cgn.getChildren(); if (children.size() == 0) return null; gn = (GraphicsNode)children.get(0); * Informs the user agent that the text selection should changed. /** * Informs the user agent that the text selection should changed. * @...
0
if (password != null) { } else if (keytab != null) { if (keytab == null) { if (other.keytab != null) { if (password == null) { if (other.password != null) {
0
* implement the @{@link #makeObject()}, {@link #makeConfirmedCollection()} * and {@link #makeConfirmedFullCollection()} methods. * You might want to override some of the additional public methods as well:
0
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
this(sslcontext, sslHandler, DefaultHttpRequestFactory.INSTANCE, HeapByteBufferAllocator.INSTANCE, params);
0
package org.apache.felix.karaf.jaas.config.impl; import org.apache.felix.karaf.jaas.config.KeystoreInstance;
0
* garbage collector status
0
names.put(Integer.toString(offset), name); types.put(Integer.toString(offset), t); return names.get(Integer.toString(offset));
0
import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.metadata.typesystem.persistence.Id; final Id sdId = (Id) tableRef.get("sd"); Referenceable sdRef = dgiCLient.getEntity(sdId.id); Assert.assertEquals(sdRef.get(HiveDataModelGenerator.STORAGE_IS_STORED_AS_SUB_D...
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
/* * Created on Sep 15, 2003 * */ package org.apache.commons.jelly.test.xml; import org.apache.commons.jelly.Jelly; import org.apache.commons.jelly.JellyContext; import org.apache.commons.jelly.Script; import org.apache.commons.jelly.XMLOutput; import junit.framework.TestCase; /** * @author mdelagrange * */ pu...
0
, initialValue = 8
0
import org.apache.beam.model.pipeline.v1.RunnerApi; import org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec;
0
final Iterator<Entry<String,String>> iter = shellState.getAccumuloClient().tableOperations() shellState.getAccumuloClient().tableOperations().setProperty(tableName, tableProp.toString(), shellState.getAccumuloClient().tableOperations().removeProperty(tableName, tableProp.toString()); props =...
0
import static org.easymock.EasyMock.anyObject; import static org.easymock.EasyMock.expect; import java.util.Collections; import org.apache.ambari.server.ldap.domain.AmbariLdapConfiguration; import org.apache.ambari.server.ldap.service.AmbariLdapConfigurationProvider; import org.easymock.EasyMockRule; import org.easymoc...
0
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.PREV_ROW; .fetch(PREV_ROW).build(ctx).stream().limit(100).map(TabletMetadata::getExtent);
0
import com.google.common.base.MoreObjects; return MoreObjects.toStringHelper(this)
0
@SuppressWarnings("deprecation")
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/IdentityMap.java,v 1.3 2004/01/05 22:04:19 scolebourne Exp $ * Copyright (c) 2003-2004 The Apache Software Foundation. All rights * @version $Revision: 1.3 $ $Date: 2004/01/...
0
import org.apache.http.auth.CredentialsProvider;
0
import org.eclipse.jetty.server.session.SessionHandler; binder.bind(SessionHandler.class).toInstance(EasyMock.createNiceMock(SessionHandler.class));
0
Map<State, List<Service>> changedServices, if (changedServices != null) { for (Entry<State, List<Service>> entry : changedServices.entrySet()) { if (State.STARTED != entry.getKey()) { continue; } for (Service s : entry.getValue()) { if (State.INSTALLED ...
0
* @version CVS $Id: XMLUtils.java,v 1.2 2003/03/12 15:11:15 cziegeler Exp $ if ( node.getNodeType() != Node.DOCUMENT_NODE ) { transformerHandler.startDocument(); } if ( node.getNodeType() != Node.DOCUMENT_NODE ) { transformerHandler.endDocument(); ...
0
import org.apache.batik.util.SVGTypes; * Implements {@link ValueManager#isAnimatableProperty()}. */ public boolean isAnimatableProperty() { return true; } /** * Implements {@link ValueManager#isAdditiveProperty()}. */ public boolean isAdditiveProperty() { return fals...
1
* 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
public void updateKerberosCredentials(String clientConfigFile) { boolean saslEnabled = false; if (clientConfigFile != null) { saslEnabled = Connector.builder().usingProperties(clientConfigFile).info().saslEnabled(); updateKerberosCredentials(saslEnabled); } public void updateKerberosCredentials...
0
return "parsed=" + NamedResource.getNames(getParsedResources())
0
import org.apache.hadoop.metadata.web.util.Servlets; .accept(Servlets.JSON_MEDIA_TYPE) .type(Servlets.JSON_MEDIA_TYPE) .accept(Servlets.JSON_MEDIA_TYPE) .type(Servlets.JSON_MEDIA_TYPE)
0
import org.apache.beam.model.pipeline.v1.Endpoints;
0
public void testParseShortPastDates1() throws Exception { GregorianCalendar now = new GregorianCalendar(2001, Calendar.MAY, 30, 12, 0); checkShortParse("2001-5-30",now,now); // should always work checkShortParse("2001-5-30 -1 week",now,target); checkShortParse("2001-5-30 -13 weeks",n...
0
* Copyright 2016 Seznam.cz, a.s.
0
public Shape getPaintedArea(){
0
* @version CVS $Id: AbstractCopletAdapter.java,v 1.9 2004/03/03 14:35:49 cziegeler Exp $ Exception error = null; error = exception; if ( !this.renderErrorContent(coplet, contentHandler, error)) { * @param coplet The coplet instance data * @param handler The conten...
0
public void start(MutateWork.NoResult.Quiet initilizationLogic) { public <T, E extends Exception> T doInWriteTransaction(MutateWork<T, E> work) throws StorageException, E { return storage.doInWriteTransaction(work); } @Override
0
final DoFn<InputT, OutputT>.ProcessContext processContext = createProcessContext(elem); } catch (Exception ex) { throw wrapUserCodeException(ex);
0
* Default {@link org.apache.http.message.LineFormatter} implementation. void formatProtocolVersion(final CharArrayBuffer buffer, final ProtocolVersion version) { buffer.append(version.getProtocol()); buffer.append('/'); buffer.append(Integer.toString(version.getMajor())); buffer.app...
0