Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger logger = LoggerFactory
0
private boolean xincludeAware = false;
0
} catch (AccumuloException | TableNotFoundException e) {
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
* Returns the transform from the current user space (as defined * by the top node of the GVT tree) to the device space.
0
@Override @Override @Override @Override
0
import java.util.Collection; public AuthScheme selectScheme( @SuppressWarnings("unchecked") Collection<String> authPrefs = (Collection<String>) context.getAttribute( for (String id: authPrefs) {
0
* * @version $Id$ Configuration repoConfiguration = (Configuration) this.repos.get(hint); if (getLogger().isDebugEnabled()) { getLogger().debug("Loading class" + className); }
0
import static org.junit.Assert.assertEquals; /** * Tests the common base event type for error events. */ @Test public void testBaseErrorEventType() { assertEquals("Wrong super type", Event.ANY, ConfigurationErrorEvent.ANY.getSuperType()); } /** * Helper m...
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 applic...
0
case Alert: resourceDefinition = new AlertResourceDefinition(); break;
0
Config config = cluster.getConfig( Config config = clusters.getClusterById(getClusterId()).getConfig(
0
private Collection castorSupportedLocales = new ArrayList(); this.castorSupportedLocales = castorSupportedLocales;
0
* Used {@code retryCount} and {@code requestSentRetryEnabled} to determine
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestArrayStack.java,v 1.8 2003/02/19 20:33:11 scolebourne Exp $ * $Revision: 1.8 $ * $Date: 2003/02/19 20:33:11 $ import java.util.EmptyStackException; import java.util.List; im...
0
int DATA_REFERENCE = 0x00000001; int KEY_REFERENCE = 0x00000002; void add(Reference reference); void remove(Reference reference); int size(); boolean isEmpty(); Iterator<Reference> getReferences(); Reference newDataReference(String uri); Reference newKeyReference(String uri);
1
* test condition reported as bug 20259 => NET-106.
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
import org.apache.beam.sdk.extensions.sql.SqlTransform; query = SqlTransform.query(queryString);
0
* @version CVS $Id: StoreEventRegistryImpl.java,v 1.6 2004/02/28 22:01:55 ghoward Exp $
0
* Factory method to create a BatchScanner with all of user's authorizations and the number of * query threads configured when AccumuloClient was created. If no query threads were configured, * defaults will be used. * * @param tableName * the name of the table to query * * @return Batch...
0
windowBy(Windowing<IN, W> windowing, ExtractEventTime<IN> eventTimeAssigner) { private final ExtractEventTime<IN> eventTimeAssigner; @Nullable ExtractEventTime<IN> eventTimeAssigner) { @Nullable ExtractEventTime<IN> eventTimeAssigner) {
0
* String url,
0
* Basic implementation of an HTTP request that can be modified. *
0
input12 -> input12)) input1 -> { for (TimestampedValue<TimestampedValue<String>> elem : input1) { Instant originalTimestamp = elem.getValue().getTimestamp(); Instant afterReshuffleTimestamp = elem.getTimestamp(); assertThat( ...
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 appl...
0
package org.apache.commons.ognl.internal.entry; /* * $Id$ */
0
* Copyright (C) 2015 Google Inc.
0
import org.apache.accumulo.core.client.impl.Credentials; import org.apache.accumulo.core.data.impl.KeyExtent;
1
private static final int DEFAULT_BLOCK_SIZE = 4096; this(file, DEFAULT_BLOCK_SIZE, Charset.defaultCharset()); this(file, DEFAULT_BLOCK_SIZE, charset);
0
package org.apache.felix.ipojo.test.scenarios.component; import org.apache.felix.ipojo.test.scenarios.eh.service.CheckService;
0
* Tests for {@code PoolingHttpClientConnectionManager} that do require a server
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
package org.apache.felix.sigil.ui.eclipse.ui.util;
0
Assert.assertTrue(new MasterKeyServiceImpl("dummyKey").initializeMasterKeyFile(f, "blahblah!"));
0
if (isCancelled()) if (localRQ == null) { int st = state.get(); String stateStr; switch (st) { case ADDED: stateStr = "ADDED"; break; case CANCELED: stateStr = "CANCELED"; break; case INITIAL: stateStr = "INITIAL"; ...
0
* The XSLT stylesheet processor * <p>This Transformer is used to transform the incoming SAX stream using * @cocoon.sitemap.component.documentation * The XSLT stylesheet processor * @cocoon.sitemap.component.name xslt * @cocoon.sitemap.component.documentation.caching Yes. * Uses the last modification date of th...
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
* Copyright 2016-2017 Seznam.cz, a.s.
0
log.warn(" marked " + dest + " failed", ex); log.error("Unable to create failure flag file " + dest, e);
0
import static org.junit.Assert.fail; try { inputFormat.getSplits(job); fail("An IOException should have been thrown"); } catch (IOException e) {} .auths(Authorizations.EMPTY).ranges(ranges).autoAdjustRanges(false).offlineScan(true) .store(job); .auths(Authorizations.EMPTY).b...
0
import java.nio.channels.ClosedChannelException; } catch (DfsLogger.LogClosedException | ClosedChannelException ex) {
0
package org.apache.felix.sigil.eclipse.ui.internal.preferences.repository;
0
for (String longOpt : longOpts.keySet()) { if (longOpt.startsWith(opt)) {
0
import org.apache.felix.dm.annotation.api.FactoryConfigurationAdapterService; import org.apache.felix.dm.annotation.api.ServiceDependency;
0
import java.math.BigInteger; import java.security.InvalidKeyException; import java.security.Key; import java.security.KeyFactory; import java.security.MessageDigest; import java.security.PrivateKey; import java.security.SecureRandom; import java.security.Security; import java.security.spec.KeySpec; import java.security...
0
* When all content is finished, the producer <b>MUST</b> call * {@link ContentEncoder#complete()}. Failure to do so may cause the entity * to be incorrectly delimited.
0
import org.apache.hadoop.metrics2.sink.timeline.UnableToConnectException; } catch (UnableToConnectException uce) { LOG.warn("Unable to send metrics to collector by address:" + uce.getConnectUrl());
0
* <p> * <b>Note:</b> from version 4.1 onwards this method requires the input * collections and equator to be of compatible type (using bounded wildcards). * Providing incompatible arguments (e.g. by casting to their rawtypes) * will result in a {@code ClassCastException} thrown at runtime. ...
0
@Override public boolean consistentWithEquals() { return true; }
0
public class And extends AbstractExpr
0
objectsCF = new HashSet<>(); objectsCol = new HashSet<>(); return new Pair<>(decode(cols[0]), null); return new Pair<>(decode(cols[0]), decode(cols[1]));
1
@Override
0
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
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
* The following parameters can be used to customize the behavior * of this method: * <ul> * <li>{@link org.apache.http.params.CoreConnectionPNames#MAX_HEADER_COUNT}</li> * <li>{@link org.apache.http.params.CoreConnectionPNames#MAX_LINE_LENGTH}</li> * </ul>
0
public final static String AUTH_METHOD_PROP_START_WITH = "logsearch.auth."; LDAP, FILE, EXTERNAL_AUTH, SIMPLE * GET Default GrantedAuthority * * @return List<GrantedAuthority> /** * Check authentication provider is enable or disable for specified method * * @param method * @return boolean...
0
* Manage watchers and handle events generated by the ClientCnxn object. * @throws KeeperException.InvalidACLException
0
/** * Copyright 2016-2017 Seznam.cz, 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 ...
0
import org.apache.commons.vfs.provider.LayeredFileName; /* public FileName parseUri(final String uri) */ new LayeredFileName(scheme, file.getName(), FileName.ROOT_PATH);
0
import java.io.BufferedReader; BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); while ((line = r.readLine()) != null) { if (line.length() == 1 && line.charAt(0) == '\n') { break; }
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
package org.apache.batik.svggen;
0
this.base64 = new Base64(false);
0
* the main input. * <p> Authors of custom {@code WindowFn}s should override this. public abstract W getSideInputWindow(final BoundedWindow window);
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
} else if (proposed != current && isParent(current, proposed)) { current = proposed;
0
<T> T get( Class<?> key ); <T> T put( Class<?> key, T value );
0
if (m_elem == null && ! m_elements.isEmpty()) { if (! m_containsComponentAnnotation) { m_ignoredBecauseOfMissingComponent = true; return; }
0
super(org.apache.commons.bcel6.Const.ARRAYLENGTH, (short) 1);
0
import org.apache.cocoon.ProcessingException; import org.apache.cocoon.portal.event.Event; import org.apache.cocoon.portal.event.Publisher; import org.apache.cocoon.portal.event.impl.CopletJXPathEvent; * @version CVS $Id: CopletSetDataAction.java,v 1.4 2004/06/21 11:09:45 cziegeler Exp $ f...
0
import org.apache.log4j.Logger; private static Logger log = Logger.getLogger(CountTest.class); log.error("Could not add mutations in initializer.", e);
0
private String type = "BAD-CallbackCheckService"; elem = ManifestMetadataParser.parseHeaderMetadata(header);
0
import java.awt.image.ComponentColorModel;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/Form.java,v 1.12 2004/01/11 23:30:20 dgraham Exp $ * $Revision: 1.12 $ * $Date: 2004/01/11 23:30:20 $ * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/quartz/Attic/CronTriggerTag.java,v 1.2 2002/10/23 16:35:36 jstrachan Exp $ * $Revision: 1.2 $ * $Date: 2002/10/23 16:35:36 $ * Copyright (c) 2002 The Apache Software Foundation. All r...
0
import java.util.List; import org.apache.ambari.server.orm.dao.AlertsDAO; import org.apache.ambari.server.orm.entities.AlertCurrentEntity; import org.apache.ambari.server.orm.entities.AlertHistoryEntity; import org.apache.commons.lang.StringUtils; * Used for querying current alerts when an alert definition changes. ...
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
import org.osgi.service.converter.StandardConverter; import org.osgi.service.serializer.Serializer; private final Map<String, Object> configuration = new ConcurrentHashMap<>(); private final Converter converter = new StandardConverter();
0
import org.apache.accumulo.core.crypto.CryptoServiceFactory; FileSKVWriter bmfw = FileOperations.getInstance().newWriterBuilder() .forFile(fname, fs, conf, CryptoServiceFactory.newDefaultInstance()) FileSKVIterator bmfr = FileOperations.getInstance().newReaderBuilder() .forFile(fname, fs, conf, ...
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
import java.nio.file.Path; import org.joda.time.Instant; import org.joda.time.format.DateTimeFormat; try { IOChannelFactory factory = IOChannelUtils.getFactory(prefix); return factory.resolve(prefix, suffix); } catch (IOException e) { throw new RuntimeException(e); } this...
0
log.trace("using top key to seek for doc: {}", topKey.toString()); log.debug("got doc key: {}", docSource.getTopKey().toString()); log.debug("got doc value: {}", value.toString()); log.trace("building doc key for {} {}", currentPartition, currentDocID); log.trace("{} {}", zeroIndex, currentDoc...
0
new HashSet<>(PK_PROPERTY_MAP.values()) Set<Resource> resources = new HashSet<>();
1
import org.apache.accumulo.core.client.impl.ServerConfigurationUtil; import org.apache.accumulo.core.conf.AccumuloConfiguration; import org.apache.accumulo.core.conf.DefaultConfiguration; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.conf.SiteConfiguration; // Automatically try to ...
0
import org.apache.atlas.RequestContextV1; import org.apache.atlas.model.instance.AtlasEntity; import org.apache.atlas.model.instance.AtlasEntity.AtlasEntityWithExtInfo; private void doFullTextMapping(List<AtlasEntityHeader> entityHeaders) { if (CollectionUtils.isEmpty(entityHeaders)) { for (AtlasEnt...
0
SchedulerMetadata metadata = new SchedulerMetadata().setFrameworkId(frameworkId);
0
import org.w3c.dom.Element; setupDefinition(widgetElement, definition); if (definition.getSelectionList() == null) throw new Exception("Error: multivaluefield always require a selectionlist at " + DomHelper.getLocation(widgetElement)); definition.makeImmutable();
0
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/TypeBean.java,v 1.5 2004/02/21 17:10:30 rleland Exp $ * $Revision: 1.5 $ * $Date: 2004/02/21 17:10:30 $ * Copyright 2001-2004 The Apache Software Foundation * Licensed under the Ap...
0
import org.apache.hc.core5.annotation.Immutable; import org.apache.hc.core5.util.Args; import org.apache.hc.core5.util.CharArrayBuffer; import org.apache.hc.core5.util.TextUtils;
1
@SuppressWarnings("unchecked")
0
package cz.seznam.euphoria.core.client.operator; import cz.seznam.euphoria.core.client.dataset.Dataset; import cz.seznam.euphoria.core.client.flow.Flow; import java.util.Arrays; import java.util.Collection; /** * Operator with single input. */ public abstract class SingleInputOperator<IN, OUT, TYPE extends Datase...
0
String zookeepers[] = ServerConfiguration.getSiteConfiguration().get(Property.INSTANCE_ZK_HOST).split(",");
1
package org.apache.cocoon.portal.services.impl; import org.apache.cocoon.portal.LayoutException; import org.apache.cocoon.portal.services.CopletFactory; import org.apache.cocoon.portal.services.LayoutFactory; * @see org.apache.cocoon.portal.services.LayoutFactory#newInstance(java.lang.String) * @see org.apach...
0
* Removes a property from a table. Note that it may take a short period of time (a second) to propagate the change everywhere. * Gets properties of a table. Note that recently changed properties may not be available immediately. * @return all properties visible by this table (system a...
0
Parameter.StateParameter.class); paramErrors.checkArgument(paramT.equals(expectedProcessContextT), "ProcessContext argument must have type %s", paramErrors.checkArgument(paramT.equals(expectedContextT), "Context argument must have type %s", paramErrors.checkArgument( ...
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 applic...
0
cacheInvalidator = new CacheInvalidator(uriExtractor, storageCopy, config.isHeadResponseCachingEnabled());
0
private static final String ID_CONTROL = "abc123"; assertEquals(ID_CONTROL, derEncodedKeyValue.getId()); assertEquals(ID_CONTROL, derEncodedKeyValue.getId()); assertEquals(ID_CONTROL, derEncodedKeyValue.getId()); derEncodedKeyValue.setId(ID_CONTROL); assertEquals(ID_CONTROL,...
0