Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
buffer.append(isCompleted());
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
Map result = WildcardMatcherHelper.match("ab/cd*/end", "ab/cdxx/end"); Map result = WildcardMatcherHelper.match("a*/cd*/end", "ab/cdxx/end"); Map result = WildcardMatcherHelper.match("a**/cd*/end", "ab/yy/cdxx/end"); Map result = WildcardMatcherHelper.match("a**/cd*/end/*", "ab/yy/cdxx/e...
0
* * @version $Id$
0
* Autogenerated by Thrift Compiler (0.9.3) import javax.annotation.Generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2015-12-16") public class RemoteReplicationException extends TException implements org.apache.thr...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractIntArrayList.java,v 1.11 2003/08/31 17:21:15 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowledgeme...
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
public static enum CompressionType { GZIP(".gz"), BZIP2(".bz2");
0
@Deprecated * @deprecated since 2.0.0; this is implementation for public API deprecated in 2.0.0
0
suite.addTest(TestDelegatingDatabaseMetaData.suite());
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/xml/Attic/XMLTagLibrary.java,v 1.12 2002/09/30 08:05:45 jstrachan Exp $ * $Revision: 1.12 $ * $Date: 2002/09/30 08:05:45 $ * * $Id: XMLTagLibrary.java,v 1.12 2002/09/30 08:05:45 jstra...
0
USERINFO_CHARS_REGEX + "+" + // At least one character for the name "(?::" + USERINFO_CHARS_REGEX + "*)?@"; // colon and password may be absent
0
package cz.seznam.euphoria.beam.common; import cz.seznam.euphoria.core.client.functional.UnaryFunction; import org.apache.beam.sdk.transforms.DoFn; import org.apache.beam.sdk.values.KV; public class InputToKvDoFn<InputT, K> extends DoFn<InputT, KV<K, InputT>> { private final UnaryFunction<InputT, K> keyExtractor; ...
0
private static final long serialVersionUID = 8950662842175091068L;
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 org.apache.hc.core5.http.HttpHost; import org.apache.hc.core5.http.HttpRequest; import org.apache.hc.core5.http.HttpResponse; import org.apache.hc.core5.http.HttpStatus; import org.apache.hc.core5.http.HttpVersion; import org.apache.hc.core5.http.config.Registry; import org.apache.hc.core5.http.config.RegistryBu...
0
* @version $Id$
0
pool.free(entry1, true); pool.free(entry2, false); pool.free(entry3, true); Assert.assertNotNull(pool.getFree(null)); Assert.assertNotNull(pool.getFree(null)); Assert.assertNull(pool.getFree(null)); pool.free(entry1, true); pool.free(entry2, true); ...
0
* name length exceeds {@link #getMaxFileNameLength()}, then the name is truncated to {@link #getMaxFileNameLength()}. /** * Checks if a candidate file name (without a path) * such as {@code "filename.ext"} or {@code "filename"} * is a potentially legal file name. * If the file name length ...
0
public void launch(ISelection arg0, String arg1) public void launch(IEditorPart arg0, String arg1)
0
out.collect(KV.of(k, new CoGbkResult(schema, result)));
0
import cz.seznam.euphoria.core.client.dataset.WindowContext; public class Distinct<IN, WLABEL, W extends WindowContext<?, WLABEL>, OUT> public <WLABEL, W extends WindowContext<?, WLABEL>> OutputBuilder<IN, WLABEL, W> public static class OutputBuilder<IN, WLABEL, W extends WindowContext<?, WLABEL>>
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 applica...
0
scans.add(String.format("%21s |%21s |%9s |%9s |%7s |%6s |%8s |%8s |%10s |%20s |%10s |%20s |%10s | %s", tserver, as.getClient(), Duration.format(as.getAge(), "", "-"), Duration.format(as.getLastContactTime(), "", "-"), as.getState(), as.getType(), as.getUser(), as.getTable(), as.get...
0
public void refreshPackages(Bundle[] bundles) synchronized (this) // Save our request parameters and notify all. if (m_reqBundles == null) { m_reqBundles = new Bundle[][] { bundles }; } else { Bundle[][] ...
1
* Copyright 2016 Seznam.cz, a.s.
0
import org.apache.sshd.common.ForwardingFilter; sshd.setTcpipForwardingFilter(ForwardingFilter.AcceptAllForwardingFilter.INSTANCE);
0
if (! event.isEmulated() && // Emulated events anyway can not provide actual repo version ! (repositoryVersion == null || hostVersion.getRepositoryVersion().getVersion().equals(repositoryVersion))) {
0
import org.apache.accumulo.server.cli.ClientOnRequiredTable; long row = ((r.nextLong() & 0x7fffffffffffffffl) % opts.num) + opts.start;
0
import org.apache.http.util.Args; Args.notNull(data, "byte[]");
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 static org.junit.Assert.assertEquals; assertEquals(rsaCert, cert); assertEquals(cardNumber, cc);
0
private Long taskId; public Long getTaskId() { public void setTaskId(Long taskId) {
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 ...
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
* Implements a {@link java.util.ListIterator} over an array. * <b>Note:</b> {@link java.util.ListIterator} implementations that support * once per call to <code>next()</code> or <code>previous</code> (see the {@link java.util.ListIterator}
0
import static org.apache.ambari.server.utils.VersionUtils.DEV_VERSION; Assert.assertTrue(VersionUtils.areVersionsEqual(DEV_VERSION, "1.2.3", false)); Assert.assertTrue(VersionUtils.areVersionsEqual(DEV_VERSION, "", true)); Assert.assertTrue(VersionUtils.areVersionsEqual(DEV_VERSION, null, true)); Asser...
0
package org.apache.beam.runners.core; import org.apache.beam.sdk.util.WindowingStrategy;
0
public void deleteAllUpdatesAndEvents() { throw new UnsupportedOperationException( "Unsupported since casual storage users should never be doing this."); } @Override public JobUpdateStore.Mutable getJobUpdateStore() {
0
* Copyright 1999-2005 The Apache Software Foundation. * * * * @version $Id$ * Cache for avoiding unnecessary checks of namespaces abilities. * It associates a Boolean to the transformer class name. private static final Map needsNamespaceCache = new HashMap(); * The trax <code>TransformerFactory<...
0
package org.apache.accumulo.core.metadata; /** * DFS location relative to the Accumulo directory */ /** * ZK path relative to the instance directory for information about the root tablet */
1
/** * Position that this @GroupingShuffleSourceIterator is guaranteed * not to stop before reaching (inclusive); @promisedPosition can * only increase monotonically and is updated when advancing to a * new group of records (either in the most recent call to next() * or when peeked at in has...
0
* @version CVS $Id: FOM_Cocoon.java,v 1.26 2004/01/21 14:31:25 vgritsenko Exp $ request.setPrototype(getClassPrototype(getParentScope(), context.setPrototype(getClassPrototype(getParentScope(), response.setPrototype(getClassPrototype(getParentScope(), if (k == null) { ...
0
int consumeStack( ConstantPoolGen cpg );
0
* @version CVS $Id: PortalManager.java,v 1.10 2003/08/27 09:08:12 cziegeler Exp $ Object k = keys.nextElement(); if ( k instanceof String ) { currentKey = (String)k; if (currentKey.startsWith(delete)) { ...
0
* @version $Revision$ $Date$
0
import java.io.IOException; import org.apache.accumulo.core.security.crypto.CryptoModule; import org.apache.accumulo.core.security.crypto.SecretKeyEncryptionStrategy; if (!cryptoModule.equals(NULL_CRYPTO_MODULE)) { verifyValidClassName(key, cryptoModule, CryptoModule.class); } if (!se...
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
/* @Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
0
assertEquals("Create.TimestampedValues", Create.timestamped(Collections.emptyList()).getName());
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
* @author $Id: 1ea7d4297e6ed805ce147d32614f23bb9145b24c $ @ConsumerType
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.beam.sdk.transforms.display.DisplayData; @Test public void populateDisplayDataDelegates() { DisplayData.Builder builder = mock(DisplayData.Builder.class); doThrow(RuntimeException.class).when(delegate).populateDisplayData(builder); thrown.expect(RuntimeException.class); forwardin...
0
* A {@link Source} that accommodates Spark's micro-batch oriented nature and wraps an {@link * UnboundedSource}. .expireAfterAccess(readerCacheInterval, TimeUnit.MILLISECONDS) .removalListener(new ReaderCacheRemovalListener()) .build(); * Divide the given number of records...
1
public void service(ServiceManager serviceManager) super.service(serviceManager);
0
import com.google.common.collect.ImmutableMap; import com.google.common.collect.Sets; /** * The key property ids for a ExtensionVersion resource. */ private static Map<Resource.Type, String> keyPropertyIds = ImmutableMap.<Resource.Type, String>builder() .put(Type.Extension, EXTENSION_NAME_PROPERTY_ID) ...
0
EvaluationContext evaluationContext) { EvaluationContext evaluationContext) { TransformEvaluator<InT> parDoEvaluator = ParDoEvaluator.create(evaluationContext,
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.Map; private Map<String, XMLStructure> signatureIdMap;
0
import org.apache.accumulo.core.data.TableId; private TableId tableId; public CompleteBulkImport(TableId tableId, String source, String bulk, String error) {
0
for (ElementValue datum : datums) { evalues.add(ElementValueGen.copy(datum, cpool, true)); for (ElementValue element : in) { evalues.add(ElementValueGen.copy(element, cpool, copyPoolEntries));
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 applica...
0
properties.put("bit_depth", bitDepth); properties.put("gamma", gamma); properties.put("white_point_x", chromaticity[0]); properties.put("white_point_y", chromaticity[1]); properties.put("red_x", chromaticity[2]); properties.put("red_y", chromat...
0
import org.apache.bcel.generic.InstructionHandle; import org.apache.bcel.generic.ObjectType;
0
import org.apache.sshd.common.session.SessionContext; public Iterable<KeyPair> loadKeys(SessionContext session) { return (providers == null) ? Collections.emptyIterator() : new MultiKeyIdentityIterator(session, providers);
0
LOGGER_DIR("logger.dir.walog", "walogs", PropertyType.PATH, "The directory used to store write-ahead logs on the local filesystem. It is possible to specify a comma-separated list of directories."), TABLE_BLOOM_KEY_FUNCTOR( "table.bloom.key.functor", "org.apache.accumulo.core.file.keyfunctor.RowFu...
0
package org.apache.hadoop.metadata.repository.memory; import org.apache.hadoop.metadata.repository.RepositoryException; import org.apache.hadoop.metadata.typesystem.persistence.Id; import org.apache.hadoop.metadata.typesystem.persistence.ReferenceableInstance; import org.apache.hadoop.metadata.typesystem.persistence.St...
0
try (AccumuloClient c = createAccumuloClient()) {
0
package org.apache.accumulo.server.test; import java.nio.ByteBuffer; import org.apache.accumulo.core.data.KeyExtent; import org.apache.accumulo.core.data.Mutation; import org.apache.accumulo.core.security.thrift.AuthInfo; import org.apache.accumulo.core.tabletserver.thrift.TabletClientService; import org.apache.accum...
1
import org.apache.beam.model.pipeline.v1.RunnerApi;
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * *...
0
public void prefetchOnElement(StateContext state) { state.access(DELAYED_UNTIL_TAG).get(); } @Override public void prefetchOnMerge(MergingStateContext state) { state.mergingAccess(DELAYED_UNTIL_TAG).get(); } @Override c.state().mergingAccess(DELAYED_UNTIL_TAG); public...
0
* @return a non null <code>Command</code>
0
* An alternative to Mock Accumulo called MiniAccumuloCluster was introduced in Accumulo 1.5. MiniAccumuloCluster spins up actual Accumulo server processes, can * be used for unit testing, and its behavior should match Accumulo. The drawback of MiniAccumuloCluster is that it starts more slowly than Mock Accumulo.
0
/** The name of the property holding the class for a XML parser * @deprecated Cocoon now uses the system's JAXP parser to load its configuration */ /** The name of the class for the default XML parser to use * @deprecated Cocoon now uses the system's JAXP parser to load its configuration *...
0
import com.fasterxml.jackson.annotation.JsonIgnore; import org.apache.beam.sdk.options.Default; import org.apache.beam.sdk.options.PipelineOptions; private interface Options extends PipelineOptions { @Default.String("package.OuterClass$InnerClass#method()") String getString(); @JsonIgnore Object get...
0
.apply("testPartialFields", BeamSql.query(sql)); .apply("testPartialFieldsInMultipleRow", BeamSql.query(sql)); .apply("testPartialFieldsInRows", BeamSql.query(sql)); .apply("testLiteralField", BeamSql.query(sql)); .apply("testProjectUnknownField", BeamSql.quer...
0
private final Log log = LogFactory.getLog(getClass());
0
package org.apache.hc.core5.http.nio.support; import org.apache.hc.core5.function.Supplier;
0
LOG.log(Level.SEVERE, "Status update failed due to scheduler exception: " + e, e); // We re-throw the exception here in an effort to NACK the status update and trigger an // abort of the driver. Previously we directly issued driver.abort(), but the re-entrancy // guarantees of that are uncertai...
0
* @version $Id$
0
* A Set guaranteed to contain all possible DisplaySetting values * A Set guaranteed to contain no DisplaySetting values * Indicates that optional child groups should be displayed in square * brackets. */ public static final DisplaySetting DISPLAY_OPTIONAL_CHILD_GROUP = new DisplaySe...
0
import org.apache.batik.css.engine.CSSEngineEvent; import org.apache.batik.dom.svg.SVGContext; import org.apache.batik.dom.svg.SVGOMElement; public class SVGTextElementBridge extends AbstractGraphicsNodeBridge { TextNode node = (TextNode)super.createGraphicsNode(ctx, e); if (node == null) { // s...
0
import org.apache.cocoon.SitemapTestCase; public class VirtualPipelineGeneratorTestCase extends SitemapTestCase {
0
List<TabletStats> onlineTabletsForTable = client.getTabletStats(Tracer.traceInfo(), SecurityConstants.getSystemCredentials(), tableId);
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
* Apache-HttpClient (Java 1.5)</li>
0
import org.apache.ambari.server.configuration.AmbariServerConfiguration; import org.apache.ambari.server.security.encryption.Encryptor; import com.google.inject.TypeLiteral; import com.google.inject.name.Names; bind(new TypeLiteral<Encryptor<AmbariServerConfigurati...
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private final static Logger LOG = LoggerFactory.getLogger(SecurityFilter.class); LOG.debug("Filtering {} for security purposes", reqUrl); LOG.debug("Request can continue on secure port {}", serReq.getLocalPort()); e);
1
List<Node> nodes = new ArrayList<>();
0
cm = GraphicsUtil.Linear_sRGB_Pre; cm = GraphicsUtil.sRGB_Pre;
0
public LongLocaleConverter(final boolean locPattern) { public LongLocaleConverter(final Locale locale) { public LongLocaleConverter(final Locale locale, final boolean locPattern) { public LongLocaleConverter(final Locale locale, final String pattern) { public LongLocaleConverter(final Locale locale,...
0
((Process) entity).setName(name);
0
final String exchangeId = String.format("ex-%08X", ExecSupport.getNextExecNumber());
0
import org.apache.batik.util.DoublyIndexedTable;
0
* Returns the size of a px CSS unit in millimeters. float getPixelUnitToMillimeter(); /** * Returns the size of a px CSS unit in millimeters. * This will be removed after next release. * @see #getPixelUnitToMillimeter(); */ float getPixelToMillimeter();
0
* <p>Concepts: Using the same pipeline in both streaming and batch, combiners, * composite transforms. * <p>To execute this pipeline using the Dataflow service in batch mode, * <p>To execute this pipeline using the Dataflow service in streaming mode, * <p>This will update the datastore every 10 second...
0
import org.apache.hadoop.metrics2.sink.timeline.TopNConfig; Long endTime, Precision precision, Integer limit, boolean groupedByHost, TopNConfig topNConfig) throws SQLException,
0