Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.accumulo.core.client.impl.Tables; import org.apache.accumulo.core.metadata.MetadataServicer; TreeMap<KeyExtent,String> tabletLocations = new TreeMap<KeyExtent,String>(); String tableId = Tables.getNameToIdMap(inst).get(tableName); TCredentials credentials = CredentialHelper.create(opts.pri...
1
import org.apache.accumulo.core.util.RootTable; LocatorKey key = new LocatorKey(instance.getInstanceID(), tableId); if (tableId.toString().equals(RootTable.ID)) { tl = new RootTabletLocator(instance); } else if (tableId.toString().equals(MetadataTable.ID)) { tl = new TabletLocatorImpl(ne...
0
private static ThreadPoolExecutor readaheadPool = new ThreadPoolExecutor(0, Integer.MAX_VALUE, 3l, TimeUnit.SECONDS, new SynchronousQueue<>(),
0
public class TestSuiteRunner extends Suite { LOG.info(String.format("Testkit will schedule tests in '%s'.", testClass)); LOG.info(String.format("Test method found '%s' it will be scheduled to run.", method)); if (!isOperatorTest) { addRunner(runners, testClass, method, null, paramsList...
0
import org.apache.ambari.server.orm.dao.StackDAO; import org.apache.ambari.server.orm.entities.StackEntity; * Data access object for retrieving stack instances. */ @Inject private StackDAO stackDAO; /** StackEntity desiredStackEntity = serviceDesiredStateEntity.getDesiredStack(); if( null != de...
0
} catch (final IOException ex) { } catch (final IOException ex) { } catch (final IOException ex) { } catch (final IOException ex) { } catch (final IOException ex) {
0
if (uri.startsWith("file:") || baseURI != null && baseURI.startsWith("file:")) {
0
public void testOnMergeFiresNotAlreadyFinished() throws Exception { setUp(Sessions.withGapDuration(Duration.millis(10))); when(mockTrigger1.onElement(Mockito.<Trigger<IntervalWindow>.OnElementContext>any())) .thenReturn(TriggerResult.CONTINUE); when(mockTrigger2.onElement(Mockito.<Trigger<Interva...
0
public String getVfsContextClasspathProperty(String key) { return getConfiguration().getArbitrarySystemProperty(Property.VFS_CONTEXT_CLASSPATH_PROPERTY, key);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/ValidatorResult.java,v 1.11 2004/02/21 17:10:29 rleland Exp $ * $Revision: 1.11 $ * $Date: 2004/02/21 17:10:29 $ * Copyright 2001-2004 The Apache Software Foundation * Licensed un...
0
private static final Collection<ByteSequence> EMPTY_SET = new HashSet<>(); TreeMap<Key,Value> tm1 = new TreeMap<>(); TreeMap<Key,Value> tm2 = new TreeMap<>(); HashSet<ByteSequence> colfams = new HashSet<>(); TreeMap<Key,Value> tm1 = new TreeMap<>(); HashSet<ByteSequence> allColfams = new HashSet<>...
0
import com.google.common.collect.FluentIterable; FluentIterable<TaskConfig> tasks = FluentIterable .from(configs) .transform(taskExtractor) .filter(Predicates.notNull()); return Quotas.fromProductionTasks(tasks); Quota quota = Quotas.fromProductionTasks(...
0
for (E e : this) { out.writeObject(e);
0
ChoppedColumnFamily.NAME, ClonedColumnFamily.NAME));
0
private static AssignedTask makeTask(String startCommand, Set<String> requestedPorts) { .setRequestedPorts(requestedPorts) assertEquals(ports.size(), task.getTask().getRequestedPortsSize()); AssignedTask task = makeTask("echo '%port:http%'", ImmutableSet.of("http")); AssignedTask task = makeTa...
0
public interface WindowAware<IN, W extends Window<W>> {
0
public class PointerEventsFactory extends AbstractIdentifierFactory implements SVGValueConstants { values.put(CSS_ALL_VALUE, ALL_VALUE); values.put(CSS_FILL_VALUE, FILL_VALUE); values.put(CSS_FILLSTROKE_VALUE, FILLSTROKE_VALUE); values.put(CSS_NONE_VALUE, ...
0
public static final String ID_REPOSITORY_VIEW = "org.apache.felix.sigil.ui.repositoryBrowser"; public static final String ID_DEPENDENCY_VIEW = "org.apache.felix.sigil.ui.bundleDependencyView";
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
* @see #setSecurityProvider(String) * Except, all your encrypted files now contain a setting that says "hey I was encrypted by the default strategy, so find decrypt my key using that, not the * key management server". This setting signals the {@link CryptoModule} that it should ignore the setting in the file a...
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
// LONG[] --> StringBuffer try { msg = "LONG[] --> StringBuffer"; Object result = arrayConverter.convert(StringBuffer.class, LONGArray); assertEquals(msg, StringBuffer.class, result.getClass()); assertEquals(msg, stringB, result.toString()); } catc...
0
import org.apache.aurora.scheduler.events.EventSink; import org.apache.aurora.scheduler.events.PubsubEvent.SchedulerActive; ACTIVE, DriverFactory driverFactory, NonVolatileStorage storage, Lifecycle lifecycle, Driver driver, DriverReference driverRef, Clock clock, EventSink...
0
* Copyright 2002-2006 The Apache Software Foundation. * * * * Not equal to. Use '!=' or 'ne', do not use <>. * * @author <a href="mailto:geirm@apache.org">Geir Magnusson Jr.</a> * @version $Id$ public class ASTNENode extends SimpleNode { public ASTNENode(int id) { public ASTNENode(Parser p, int id) { ...
0
Copyright 2002 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 a...
0
import org.apache.commons.configuration.tree.DefaultExpressionEngineSymbols; static final String ATTR_NAME = DefaultExpressionEngineSymbols.DEFAULT_ATTRIBUTE_START + DefaultExpressionEngineSymbols.DEFAULT_ATTRIBUTE_END; static final String ATTR_AT_RES = DefaultExpressionEngineSymbols.DEFAULT_ATTRIBU...
0
int numComps = GenericUtils.length(comps); String pathArg = (numComps <= 0) ? null : GenericUtils.trimToEmpty(comps[numComps - 1]); String flags = (numComps >= 2) ? GenericUtils.trimToEmpty(comps[0]) : null; // ignore all flags if ((GenericUtils.length(pathArg...
0
ProcessBundleHandler processBundleHandler = new ProcessBundleHandler( options, fnApiRegistry::getById, beamFnDataMultiplexer, null /* beamFnStateClient */);
0
void sendInformation(HttpResponse response) throws HttpException, IOException;
0
// test per-table classpath + user specified compaction strategy target.mkdirs();
0
Cookie[] cookies = request.getCocoonCookies();
0
Map<String, Map<String, Object>> propertyMap = new HashMap<String, Map<String, Object>>(); propertyMap.put(null, mapRootProps); propertyMap.put("category", mapCategoryProps); expect(resource.getPropertiesMap()).andReturn(propertyMap).anyTimes();
0
import org.apache.accumulo.core.client.impl.Table; Path getFullPath(Table.ID tableId, String path);
1
* @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 ...
0
import org.apache.avalon.framework.service.ServiceException; import org.apache.avalon.framework.service.ServiceManager; import org.apache.cocoon.environment.internal.EnvironmentHelper; * @version CVS $Id: SourceRepository.java,v 1.5 2004/05/25 07:28:25 cziegeler Exp $ private static ServiceManager manager; ma...
0
import org.apache.sshd.common.session.Session; void init(Session session, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception;
0
session.put(PROPERTY_CONFIG_PID, null); session.put(PROPERTY_CONFIG_PROPS, null);
0
* Copyright 2002-2005 The Apache Software Foundation.
0
public IntegerConverterTestCase(final String name) { protected NumberConverter makeConverter(final Object defaultValue) { final String[] message= { final Object[] input = { final Integer[] expected = { final Converter converter = makeConverter(); final Class<?> clazz = In...
0
import static org.junit.Assert.assertEquals; import org.junit.Test;
0
new HashMap<String,String>() {{ put("a", "b"); }}, new HashMap<>()); }}, new HashMap<>()); }}, new HashMap<>());
0
import org.apache.accumulo.core.security.tokens.AuthenticationToken; * <li>{@link AccumuloInputFormat#setConnectorInfo(JobConf, String, AuthenticationToken)} OR {@link AccumuloInputFormat#setConnectorInfo(JobConf, Path)}
0
abstract class EarlyTriggeredWindowContext<GROUP, LABEL> extends WindowContext<GROUP, LABEL> { private final Trigger earlyTrigger; public EarlyTriggeredWindowContext( WindowID<GROUP, LABEL> windowID, Duration interval, long endOfWindow) { super(windowID); } else { this.earlyTrigger = n...
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
throw new IOException("Could not initialize key encryption cache," + " malformed key encryption key file. Expected key of lengh " + keyEncryptionKeyLength + " but file contained " + (fs.getFileStatus(pathToKey).getLen() - 4) + "bytes for key encryption key."); ...
0
import org.apache.accumulo.core.util.HostAndPort;
1
import aQute.bnd.annotation.ConsumerType; @ConsumerType
0
CacheEntry updatedEntry = impl.doGetUpdatedParentEntry(null, entry, variantURI);
0
private List<Object> m_failedDetail = new ArrayList<Object>(); public List<Object> getFailedDetail() { return m_failedDetail; }
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/Attic/IOTestSuite.java,v 1.6 2003/08/21 18:56:12 jeremias Exp $ * $Revision: 1.6 $ * $Date: 2003/08/21 18:56:12 $ suite.addTest( new TestSuite( CopyUtilsTest.class ) ); suite.addTe...
0
public static final String CONFIGURATION_TYPE_RANGER_HIVE_PLUGIN_PROPERTIES = "ranger-hive-plugin-properties"; public static final String PROPERTY_RANGER_HIVE_PLUGIN_ENABLED = "ranger-hive-plugin-enabled";
0
ResourceType resourceType = ResourceType.translate(typeName); if(resourceType != null) { switch (resourceType) { case AMBARI: // there is nothing special to add for this case break; case CLUSTER: ClusterEntity clusterEntity = (ClusterEntity) r...
0
package util; import org.apache.accumulo.core.data.Key; public class KeyParser extends BaseKeyParser { public static final String SELECTOR_FIELD = "selector"; public static final String DATATYPE_FIELD = "dataType"; public static final String FIELDNAME_FIELD = "fieldName"; public static final String UI...
1
import javax.annotation.Nullable; import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.windowing.Window;
0
package org.apache.hc.client5.http.impl.io; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import org.apache.hc.core5.http.impl.io.SocketHolder; class LoggingSocketHolder extends SocketHolder { private final Wire wire; LoggingSocketHolder(final Socket socket, final Wire wire...
0
HttpHost target = new HttpHost("localhost", 80, "http"); new AuthScope(target.getHostName(), target.getPort()), .setDefaultCredentialsProvider(credsProvider) .build(); authCache.put(target, digestAuth); System.out.println("Executing request...
0
finishFunctions::add, null /* splitListener */);
0
if ( ReferenceMetadata.FIELD_VALUE_TYPE_SERVICE.equals(metadata.getFieldCollectionType()) ) else if ( ReferenceMetadata.FIELD_VALUE_TYPE_REFERENCE.equals(metadata.getFieldCollectionType()) ) else if ( ReferenceMetadata.FIELD_VALUE_TYPE_SERVICEOBJECTS.equals(metadata.getFieldCollectio...
0
* * * * *
0
import java.util.function.Consumer; * @param parameterSetter Consumer to populate the template. Consumer<StringTemplate> parameterSetter) throws TemplateException { parameterSetter.accept(stringTemplate);
0
import static org.apache.beam.sdk.extensions.sql.SqlTypeCoders.INTEGER; import static org.apache.beam.sdk.extensions.sql.SqlTypeCoders.VARCHAR; Column.builder().name("id").coder(INTEGER).primaryKey(true).build(), Column.builder().name("name").coder(VARCHAR).primaryKey(false).build()
0
import org.apache.cocoon.xml.XMLUtils; * @version CVS $Id: WidgetReplacingPipe.java,v 1.3 2004/03/09 13:17:26 cziegeler Exp $ contentHandler.startElement(Constants.INSTANCE_NS, STYLING_EL, Constants.INSTANCE_PREFIX_COLON + STYLING_EL, XMLUtils.EMPTY_ATTRIBUTES);
0
* Annotates a method returning the list of objects which are part of a Component implementation. * When implementing complex Components, you often need to use more than one object instances. * Moreover, several of these instances might want to have dependencies injected, as was as lifecycle * callbacks invoked, li...
0
private final transient PCollection<T> originalOutput; private static class StreamingPubsubIOWriteOverrideFactory
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
package org.apache.beam.sdk.util; import org.apache.beam.sdk.io.BigQueryIO; import org.apache.beam.sdk.transforms.Aggregator; import org.apache.beam.sdk.transforms.Combine.CombineFn; import org.apache.beam.sdk.transforms.Sum;
0
public void addComponent( final String role,
0
* @version $Id$
0
* @version $Revision: 1.6 $ $Date: 2004/05/10 20:09:44 $
0
private static final long serialVersionUID = 1L;
0
import java.util.Map; public boolean areEqualValues(Object val1, Object val2, Map<String, String> guidAssignments) { if (!elementType.areEqualValues(Array.get(val1, i), Array.get(val2, i), guidAssignments)) { if (elementType.areEqualValues(elem1, elem2, guidAssign...
0
import java.util.Collection; import org.apache.http.client.config.AuthSchemes; import org.apache.http.client.config.RequestConfig; abstract class AuthenticationStrategyImpl implements AuthenticationStrategy { AuthSchemes.SPNEGO, AuthSchemes.KERBEROS, AuthSchemes.NTLM, ...
0
* * @version $Id$
0
import org.apache.felix.sigil.common.osgi.VersionRange; import org.apache.felix.sigil.common.osgi.VersionRangeBoundingRule;
0
/* * Copyright (c) 2015, Cloudera, Inc. All Rights Reserved. * * Cloudera, Inc. 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-...
0
dbAccessor.dropPKConstraint(HOSTS_TABLE, "hosts_pkey", "host_name", true); dbAccessor.dropPKConstraint(CONFIG_GROUP_HOST_MAPPING_TABLE, "configgrouphostmapping_pkey", HOST_NAME_COL, true); dbAccessor.dropPKConstraint(CLUSTER_HOST_MAPPING_TABLE, "clusterhostmapping_pkey",HOST_NAME_COL, true); dbA...
0
Copyright 1999-2003 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...
0
public HashedMap(final Map<? extends K, ? extends V> map) {
0
* http://www.apache.org/licenses/LICENSE-2.0
0
List<ServiceTestInvocation> listInvocations = new ArrayList<>();
1
Collections.unmodifiableSet(EnumSet.of(SftpClient.OpenMode.Read)); Collections.unmodifiableSet( EnumSet.of( SftpClient.OpenMode.Write, SftpClient.OpenMode.Append, SftpClient.OpenMode.Create, SftpClient.OpenMode.Truncate));
0
// Exclusive requests changes dbAccessor.addColumn("request", new DBColumnInfo( "exclusive_execution", Integer.class, 1, 0, false));
0
XMLSignatureInput result = new XMLSignatureInput(input.getSubNode()); XMLSignatureInput result = new XMLSignatureInput(resultSet);
0
package org.apache.commons.ognl.enhance; import org.apache.commons.ognl.Node; import org.apache.commons.ognl.OgnlContext;
0
private final SortedKeyValueIterator<Key,Value> source; private final boolean continueOnError;
0
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a>
0
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
Assert.assertEquals(200, response.getCode()); Assert.assertEquals(200, response.getCode()); Assert.assertEquals(200, response.getCode()); Assert.assertEquals(200, response.getCode()); Assert.assertEquals(200, response.getCode());
0
import java.io.File; import java.io.FilePermission; import java.util.Collection; public LocalFileSystem(final FileName rootName, final String rootFile) super(rootName, null, null); protected FileObject createFile(final FileName name) return new LocalFile(this, fileNam...
0
/** The property, may be null. */ if (obj != null && objectClass.equals(obj.getClass()) // ensure method name matches the property name && method != null && ((property == null && key == null) || (property != null && property.equals(key)))) {
0
this(validateAndConvertToMillis(timeToLive, timeUnit)); return TimeUnit.MILLISECONDS.convert(timeToLive, timeUnit);
0
@Test Response.ResponseBuilder responseBuilderMock = PowerMock.createMock(ResponseBuilderImpl.class); Response responseMock = createMock(ResponseImpl.class); InputStream es = new ByteArrayInputStream("error".getBytes()); PowerMock.mockStatic(Response.class); expect(urlConnectionMock.getResponseCod...
0
import cz.seznam.euphoria.flink.FlinkElement; implements FlatMapFunction<FlinkElement<WID, IN>, FlinkElement<WID, OUT>>, ResultTypeQueryable<FlinkElement<WID, OUT>> { public void flatMap(FlinkElement<WID, IN> value, Collector<FlinkElement<WID, OUT>> out) out.coll...
0
import org.apache.beam.sdk.coders.AtomicCoder; import org.apache.beam.sdk.coders.Coder; import org.apache.beam.sdk.coders.CoderException; import org.apache.beam.sdk.coders.StringUtf8Coder; import org.apache.beam.sdk.coders.VarLongCoder;
0
* Copyright 2002,2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
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...
0
* Copyright 2001-2004 The Apache Software Foundation. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
0
* Copyright 2001-2005 The Apache Software Foundation
0
if (null == tableConf) { log.trace("Could not get configuration for table {} (it no longer exists)", table); continue; }
0