Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.cocoon.components.source.util.SourceUtil;
0
public void in(String propertyName, Collection<?> values) {
0
} final int timeout = config.getSocketTimeout(); if (timeout >= 0) { managedConn.setSocketTimeout(timeout);
0
package org.apache.bcel.verifier.tests;
1
/** Gearpump {@link FlatMapFunction} wrapper over Beam {@link DoFn}. */ public class DoFnFunction<InputT, OutputT> extends FlatMapFunction<List<RawUnionValue>, RawUnionValue> { this.doFnRunnerFactory = new DoFnRunnerFactory<>( pipelineOptions, doFn, sideInputs, ...
1
Query.instanceScoped(jobKey, shard).active(), Query.Builder query = Query.instanceScoped(jobKey, shards).active(); Query.instanceScoped(jobKey, changedShards).active(),
0
if (this.status.compareTo(IOReactorStatus.INACTIVE) == 0) { this.status = IOReactorStatus.SHUT_DOWN; cancelRequests(); this.selector.close(); return; }
0
* @throws IllegalArgumentException if comparator is null of criterion is invalid * @see java.util.Comparator#compare(java.lang.Object first, java.lang.Object second)
0
private static final String LOGSEARCH_GET_LOG_LEVELS_PATH = "/api/v1/service/logs/levels/counts";
0
import org.apache.hc.core5.http2.HttpVersionPolicy; import org.apache.hc.core5.http2.impl.nio.bootstrap.H2RequesterBootstrap; import org.apache.hc.core5.http2.protocol.H2RequestConnControl; import org.apache.hc.core5.http2.protocol.H2RequestContent; import org.apache.hc.core5.http2.protocol.H2RequestTargetHost; ...
0
import org.apache.ambari.server.agent.ExecutionCommand; import org.apache.ambari.server.state.StackId; clusters.addCluster(CLUSTER1, new StackId("HDP-0.1"));
0
final class Utils { public static <S extends OptionalFeature,T,E extends NamedFactory<T>> List<NamedFactory<T>> setUpTransformedFactories( public static <T,E extends NamedFactory<T> & OptionalFeature> List<NamedFactory<T>> setUpBuiltinFactories(
0
return experiments != null && experiments.contains("beam_fn_api");
0
@Override
0
MONTOR_WEBSERVER, DECOMMISSION_DATANODE
0
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
0
package org.apache.accumulo.core.util.shell.commands; import org.apache.accumulo.core.util.shell.Shell; import org.apache.accumulo.core.util.shell.Shell.Command; import org.apache.commons.cli.CommandLine; public class SleepCommand extends Command { @Override public int execute(String fullCommand, CommandLin...
1
List<String> directories = new ArrayList<>();
1
private JaxbMapKeyList() {}
1
package org.apache.commons.ognl.internal.entry; /** * User: Maurizio Cucchiara * Date: 10/15/11 * Time: 1:54 PM */ public class MethodCacheEntry implements CacheEntry { public Class<?> targetClass; public MethodCacheEntry( Class<?> targetClass ) { this.targetClass = targetClass; } }
0
KERBEROS_CONFIGURATIONS("kerberos-configurations"),
0
helper.createStack(stackId);
0
* Copyright (c) 2002 The Apache Software Foundation. All rights
0
HttpEntity entity = new StringEntity("stuff");
0
/** * Test get and set of Setting object. */ @Test public void testSetGetSetting() { BlueprintEntity entity = new BlueprintEntity(); Collection<BlueprintSettingEntity> setting = Collections.emptyList(); entity.setSettings(setting); assertSame(setting, entity.getSettings()); }
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.regex.MatchResult; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; protected Matcher _matcher_ = null; //matcher_ = new Perl5Matcher(); pattern = Pattern.compile(regex); catch (PatternSyntaxException ...
0
/** * Copyright 2016 Seznam a.s. * * 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.nio.charset.StandardCharsets; new String[] {"stuff;", "more stuff"}, StandardCharsets.US_ASCII); final SessionInputBuffer inbuf = new SessionInputBufferImpl(1024, 256, StandardCharsets.US_ASCII); new String[] {"stuff;", "more stuff"}, StandardCharsets.US_ASCII); ...
0
import org.apache.flink.runtime.checkpoint.OperatorSubtaskState; null, null, VarIntCoder.of(), /* key coder */ WindowedValue::getValue); VarIntCoder.of(), /* key coder */ WindowedValue::getValue); StringUtf8Coder.of(), /* key coder */ ...
0
public int capacity() {
1
* 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
thrown.expectMessage(p.getRunner().getClass().getName()); thrown.expectMessage("does not support Splittable DoFn"); thrown.expectMessage(p.getRunner().getClass().getName()); thrown.expectMessage("does not support Splittable DoFn");
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/ListIteratorWrapper.java,v 1.1 2002/08/15 23:13:51 pjack Exp $ * $Revision: 1.1 $ * $Date: 2002/08/15 23:13:51 $ package org.apache.commons.collections.iterators; * @v...
0
// URI Characters that are possible in local filenames, but must be escaped // for proper URI handling. // // How reserved URI chars were selected: // // URIs can contain :, /, ?, #, @ // See http://download.oracle.com/javase/6/docs/api/java/net/URI.html // http://tools.ietf.org/html/rfc...
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
public String getResponse(String url, Map<String, String> headers, String authType) { HttpURLConnection connection; if(authType == null || authType.equalsIgnoreCase("simple")) { connection = provider.getConnection(url, "GET", (String) null, headers); } else { connection = provider.ge...
0
p1.put("instance.name","FooProvider-1"); p2.put("instance.name","FooProvider-2"); p3.put("instance.name","FooProvider-3");
0
if (bytesRead == -1) { }
0
org.apache.commons.logging.LogFactory.getLog(RetrievalMethodResolver.class);
0
/* * $Source: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbcp/src/java/org/apache/commons/dbcp/datasources/InstanceKeyDataSource.java,v $ * $Revision: 1.4 $ * $Date: 2003/08/22 16:08:32 $ * * ==================================================================== * * Copyright (c) 1...
0
package org.apache.commons.beanutils2; import org.apache.commons.beanutils2.BeanUtils; import org.apache.commons.beanutils2.MappedPropertyDescriptor;
1
import org.apache.bcel.Constants; import org.apache.bcel.Repository; import org.apache.bcel.classfile.Attribute; import org.apache.bcel.classfile.ClassParser; import org.apache.bcel.classfile.Code; import org.apache.bcel.classfile.ConstantValue; import org.apache.bcel.classfile.Deprecated; import org.apache.bcel.classf...
0
Component s1 = component(m).impl(configurator).withSvc(ConfigurationAdmin.class).build(); .factoryPid("MyFactoryPid").impl(adapterImplClass).update(adapterUpdate).propagate().provides(AdapterService.class, "foo", "bar") .withSvc(AdapterExtraDependency.class) .impl...
0
public Object convert( final String pid, final Object value, final File filePath = Util.extractFile(bundle, pid, path); final File filePath = Util.extractFile(bundle, pid, paths[i]);
0
protected void doParse() throws ParseException {
0
import org.apache.accumulo.core.clientImpl.ClientInfo;
0
public final class XMLByteStreamCompiler extends AbstractXMLByteStreamCompiler { super(); protected void initOutput() { super.initOutput(); super.recycle(); protected void write( final int b ) {
0
return Base64.decodeBigIntegerFromString( ).getNodeValue()
0
* the keys will be saved. The nodes selected by the prefix (it is possible * that multiple nodes are selected) are mapped to the root node of the * returned configuration, i.e. their children and attributes will become * children and attributes of the new root node. However a value of the root ...
0
SessionOutputBuffer outbuf = new SessionOutputBufferImpl(1024, 128); SessionOutputBuffer outbuf = new SessionOutputBufferImpl(1024, 16); SessionOutputBuffer outbuf = new SessionOutputBufferImpl(16, 16); SessionOutputBuffer outbuf = new SessionOutputBufferImpl(16, 16); SessionOutp...
0
.apply("testCompositeFilter", BeamSql.query(sql)); .apply("testNoReturnFilter", BeamSql.query(sql)); .apply("testFromInvalidTableName1", BeamSql.query(sql)); exceptions.expectMessage("Use PCOLLECTION as table name" + " when selecting from single P...
0
if (instance == null) instance = new UniqueNameAllocator();
1
private final ArrayList<FileObject> resources = new ArrayList<>(); final List<URL> result = new ArrayList<>(2);
0
.apply("Consume", Filter.by(SerializableFunctions.constant(false))) .apply(View.asIterable()); return materialized.apply(Reshuffle.viaRandomKey());
0
Coder<K> keyCoder = context.getKeyCoder(operator); Coder<LeftT> leftCoder = context.getCoderBasedOnDatasetElementType(operator.getLeft()); Coder<RightT> rightCoder = context.getCoderBasedOnDatasetElementType(operator.getRight()); left, operator.getLeftKeyExtractor(), keyCoder, leftCoder, ":extr...
0
/* * Copyright 2005 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 applica...
0
if (!this.connStrategy.keepAlive(response, this.context)) {
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
* 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
@Override @Override @Override
0
package org.apache.hc.core5.http.examples; import org.apache.hc.core5.http.nio.DefaultHttpClientIODispatch; import org.apache.hc.core5.http.nio.pool.BasicNIOConnPool; import org.apache.hc.core5.http.nio.reactor.DefaultConnectingIOReactor;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/SetNextRule.java,v 1.11 2002/01/23 21:25:22 sanders Exp $ * $Revision: 1.11 $ * $Date: 2002/01/23 21:25:22 $ * @version $Revision: 1.11 $ $Date: 2002/01/23 21:25:22 $ ...
0
* @version $Revision$ $Date$
0
public ResolveProjectsJob(IWorkspace workspace) super("Resolving Sigil projects"); setRule(workspace.getRoot()); super("Resolving Sigil projects"); setRule(workspace.getRoot()); super("Resolving Sigil project"); setRule(project.getProject().getWorkspace().getRoot());...
0
"&facet.mincount=1&facet.limit=-1&facet.pivot=myfield%2Crepo",
0
DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent(); Gateway selectedGateway = null; if ( node != null && node != top) { selectedGateway = (Gateway) node.getUserObject(); } Gateway newGateway = null; try { newGateway = Gateway.new...
0
/* $Id: SetPropertiesRule.java,v 1.21 2004/09/27 06:20:38 skitching Exp $ // The BeanUtils.populate method silently ignores items in // the map (ie xml entities) which have no corresponding // setter method, so here we check whether each xml attribute // d...
0
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
0
* row1 refs uid1\0a A&amp;B V0 * row1 refs uid2\0b C&amp;D V0 * row1 ~chunk 0 A&amp;B V1 * row1 ~chunk 0 C&amp;D V1 * row1 ~chunk 0 E&amp;F V1 * row1 ~chunk 0 G&amp;H V1 * row1 refs uid1\0a A&amp;B V0 * row1 refs uid2\0b C&amp;D V0 * row1 ~chunk 0 (A&amp;B)|(C&amp;D) V1
0
String p = shellState.readMaskedLine("Enter password for user " + user + ": ", '*');
0
import org.apache.accumulo.core.security.thrift.TCredentials; public static List<String> bulkLoad(AccumuloConfiguration conf, Instance instance, TCredentials creds, long tid, String tableId, List<String> files, private TCredentials credentials; public BulkImporter(AccumuloConfiguration conf, Instance instance, TC...
1
* Don't use {@code synchronized} for that purpose! * @param tunit the unit for the {@code timeout}, * may be {@code null} only if there is no timeout * @param reusable {@code true} if the entry is deemed * reusable, {@code false} otherwise. * @param tunit...
0
import java.text.AttributedString; import java.util.Map;
0
* @version $Revision: 1.4 $ $Date: 2004/03/13 17:17:03 $ /** * Gets the predicate in use. * @return the predicate * @since Commons Collections 3.1 */ public Predicate getPredicate() { return iPredicate; } /** * Gets the closure. * @return the closure * @since...
0
if ((felix.getState() == Bundle.ACTIVE) || (felix.getState() == Bundle.STARTING))
0
* */ @Test public void testFindAllEnabled() { List<AlertDefinitionEntity> definitions = dao.findAll(); assertNotNull(definitions); assertEquals(15, definitions.size()); List<AlertDefinitionEntity> enabledDefinitions = dao.findAllEnabled(clusterId); assertNotNull(enabledDefinitions); ass...
0
public interface FileItem extends Serializable { InputStream getInputStream() throws IOException; String getString(String encoding) throws UnsupportedEncodingException;
0
import org.apache.http.conn.SocketClientConnection; private SocketClientConnection conn; conn = Mockito.mock(SocketClientConnection.class); Mockito.verify(conn, Mockito.times(2)).bind(socket); Mockito.verify(conn, Mockito.times(3)).bind(socket); Mockito.verify(conn).bind(socket);
0
import java.io.DataInput; StackMapTable(int name_index, int length, DataInput file, ConstantPool constant_pool)
0
ResultSetHandler<List<String>> h = new ColumnListHandler<String>(); List<String> results = h.handle(this.rs); ResultSetHandler<List<String>> h = new ColumnListHandler<String>(2); List<String> results = h.handle(this.rs); ResultSetHandler<List<Integer>> h = new ColumnListHandler<I...
0
StateInternalsFactory<K> stateInternalsFactory = key -> { // this will implicitly be keyed by the key of the incoming // element or by the key of a firing timer return (StateInternals) keyedStateInternals; }; TimerInternalsFactory<K> timerInternalsFactory = ...
0
@SuppressWarnings("serial") @Override protected final List<T> decodeToIterable(List<T> decodedElements) { return decodedElements; }
0
* @version $Revision: 1.5 $ $Date: 2002/11/21 04:25:58 $
0
byte[] b = null; public CachedBlockRead(CacheEntry cb, byte[] buf) {
0
public class FlatResolver implements JexlExprResolver { * Flag to return NO_VALUE on null from context. * Default CTOR. public FlatResolver() { * noValOnNull, which is true. (jexl gets a shot after if null) * * @param noValOnNull Whether NO_VALUE will be returned instead of null. pub...
0
for (final Constructor<?> ctor2 : ctors) {
0
long getRefreshRateMs() { return refreshRateMs; } long intervalStartMs = nowMs - settings.getRefreshRateMs();
0
if (!testLatch.await(10, TimeUnit.SECONDS))
0
* Note that this log level is not used with an R7 LogService implementation.
0
/* $Id: VariableAttributes.java,v 1.5 2004/05/10 06:30:08 skitching Exp $ *
0
assertEquals(1000, tm.size()); assertEquals(100, size); assertEquals(50, size); assertEquals(0, size); assertEquals(1000, tm.size()); assertEquals(900, size); assertEquals(450, size); assertEquals(100, size); assertEquals(1000, tm.size()); assertEquals(900, size); assertEqual...
0
public void testCannotProxyAbstractAndConcreteClasses() {
0
T initValue = initialValue(context); LOG.info("Obtained initial value : {} for key : {}",initValue,key); instances.put(key, initValue);
0
String[] atlasServerUri = configuration.getStringArray(AtlasConstants.ATLAS_REST_ADDRESS_KEY); if (atlasServerUri == null || atlasServerUri.length == 0) { atlasServerUri = new String[] { AtlasConstants.DEFAULT_ATLAS_REST_ADDRESS }; } atlasClient = new AtlasClient(atlasSe...
0
import cz.seznam.euphoria.core.client.operator.state.ListStorage; import cz.seznam.euphoria.core.client.operator.state.ListStorageDescriptor; import cz.seznam.euphoria.core.client.operator.state.StorageProvider; import cz.seznam.euphoria.core.client.operator.state.ValueStorage; import cz.seznam.euphoria.core.client.ope...
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
queue = new PriorityQueue<>(10, (Bid b1, Bid b2) -> b1.dateTime.compareTo(b2.dateTime));
0
@Override @Override
0
import org.apache.ambari.logsearch.common.StatusMessage; import org.apache.solr.client.solrj.response.UpdateResponse; public StatusMessage deleteLogs(ServiceLogRequest request) { SimpleQuery solrQuery = conversionService.convert(request, SimpleQuery.class); UpdateResponse updateResponse = serviceLogsSolrDao....
0