Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
InputStream instream = entry.getResource().getInputStream();
0
* @version $Id: Base64.java,v 1.14 2003/11/24 00:11:56 ggregory Exp $
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
writePipeline.apply("createSchemaView", Create.of(schemaMap)).apply(View.asMap()); writePipeline .apply(Create.of(values))
0
import org.apache.sshd.client.channel.ClientChannelEvent; Collection<ClientChannelEvent> result = channel.waitFor(EnumSet.of(ClientChannelEvent.CLOSED), TimeUnit.SECONDS.toMillis(15L)); assertFalse("Timeout while waiting for channel closure...
0
package org.apache.hadoop.metadata.repository.graph;
1
import org.apache.zookeeper.PortAssignment; if (v == null){ switch (i) { } else { } catch (Exception e) { peers.put(Long.valueOf(i), new QuorumServer(i, new InetSocketAddress(Por...
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 $Revision: 1.5 $ /** The Jelly parser */ private XMLParser jellyParser; //------------------------------------------------------------------------- else { //------------------------------------------------------------------------- return jellyParser; //-...
0
Copyright 2001-2003,2005 The Apache Software Foundation import java.io.OutputStream; import org.apache.batik.ext.awt.image.spi.ImageWriter; import org.apache.batik.ext.awt.image.spi.ImageWriterRegistry; ImageWriter writer = ImageWriterRegistry.getInstance() .getWriterFor("image/...
0
public class ValueProviders {
0
private Log log = LogFactory.getLog(DecimalLocaleConverter.class);
0
import org.apache.beam.sdk.transforms.PTransform; @Override public PTransform<PCollectionTuple, PCollection<Row>> toPTransform() { return new Transform(); } private class Transform extends PTransform<PCollectionTuple, PCollection<Row>> { @Override public PCollection<Row> expand(PCollectionTuple inpu...
0
public void testNoEmailProperties() {
0
import org.apache.atlas.model.glossary.AtlasGlossaryTerm; import org.apache.atlas.model.instance.AtlasRelatedObjectId; /** * This is upon adding a new term to an entity. * * @param term the term * @param entities list of entities to which the term is assigned */ void onTermAdded(At...
0
* @since 3.0
0
Object value = props.get(name); if (value == null) { return value != null ? String.valueOf(value) : defValue; if (value != null) {
0
@Nullable String timestampAttribute, @Nullable String idAttribute, PubsubOptions options) @Nullable String timestampAttribute, @Nullable String idAttribute, PubsubOptions options) @Nullable String timestampAttribute, @Nullable String idAttribute, PubsubOptions options)
0
import java.util.List; import java.util.ListIterator; /** * Preparse the list to discard "total nnn" lines */ @Override public List<String> preParse(List<String> original) { ListIterator<String> iter = original.listIterator(); while (iter.hasNext()) { String entry = ite...
0
* @version CVS $Id: SQLTransformer.java,v 1.6 2003/06/11 00:28:31 joerg Exp $ protected void serializeData(ComponentManager manager, String value) throws SQLException, SAXException { if (transformer.parser == null) { if (transformer.compiler == n...
0
public abstract interface Accumulator<InputT, AccumT, OutputT> {
0
package org.apache.felix.sigil.common.osgi;
0
Map<Entry<String,String>,String> table1Expectations = new HashMap<>(); Map<Entry<String,String>,String> table2Expectations = new HashMap<>(); Map<Entry<String,String>,String> actual = new HashMap<>(); actual = new HashMap<>(); Map<Entry<String,String>,String> expectations = new HashMap<>()...
1
package org.apache.bcel.generic; import org.apache.bcel.classfile.AnnotationEntry; import org.apache.bcel.classfile.Attribute; import org.apache.bcel.classfile.ConstantUtf8; import org.apache.bcel.classfile.ElementValuePair; import org.apache.bcel.classfile.RuntimeInvisibleAnnotations; import org.apache.bcel.classfile....
1
/* * Copyright (c) 2000 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed...
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 u...
0
import org.apache.accumulo.core.clientImpl.ClientInfo;
0
StringBuilder result = new StringBuilder();
0
import org.mortbay.jetty.nio.SelectChannelConnector; private static final String DEFAULT_ADDRESS = "0.0.0.0"; private String address; this(System.getProperty("zookeeper.admin.serverAddress", DEFAULT_ADDRESS), Integer.getInteger( "zookeeper.admin.serverPort", DEFAULT_PORT)...
0
import org.apache.beam.sdk.values.WindowingStrategy;
0
Copyright 2000-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
if (sd.isRequired()) { configureImplementation(sd.getInterface(), sd.getService(), sd.getAutoConfigName()); } else { // for optional services, we do an "ad-hoc" lookup to inject the service if it is ...
0
/* * Copyright (C) 2014 Google 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 to ...
0
public String decode(final String str, final String charsetName) throws DecoderException, UnsupportedEncodingException {
0
update(connectionProperties, KEY_USER, username); update(connectionProperties, KEY_PASSWORD, pass); update(connectionProperties, KEY_PASSWORD, v); update(connectionProperties, KEY_USER, v); private void update(final Properties properties, final String key, final ...
0
* <p> * </p> * <p> * </p>
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
private static <T> TransformEvaluator<Flatten.PCollections<T>> flattenPColl() { return new TransformEvaluator<Flatten.PCollections<T>>() { public void evaluate(Flatten.PCollections<T> transform, EvaluationContext context) { EVALUATORS.put(Flatten.PCollections.class, flattenPColl());
0
* @param _msgID public ReferenceNotInitializedException(String _msgID) { super(_msgID); * @param _msgID public ReferenceNotInitializedException(String _msgID, Object exArgs[]) { super(_msgID, exArgs); * @param _msgID public ReferenceNotInitializedException(String _msgID, ...
0
this(taskId, taskReader, workSink, missingTaskGracePeriod, Clock.SYSTEM_CLOCK); final Clock clock) { .initialState(State.create(INIT)) // Have we been waiting too long on this task? long lastEventAgeMillis = clock.nowMillis() - Iterables....
0
import org.apache.accumulo.core.security.thrift.SecurityErrorCode; import org.apache.accumulo.core.security.thrift.ThriftSecurityException; import org.apache.accumulo.core.security.tokens.AuthenticationToken; import org.apache.accumulo.core.security.tokens.PasswordToken;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/AbstractHashedMap.java,v 1.8 2004/01/05 22:04:19 scolebourne Exp $ * Copyright (c) 2003-2004 The Apache Software Foundation. All rights * @version $Revision: 1.8 $ $Date: 20...
0
public class Form extends AbstractWidget {
0
import java.nio.charset.Charset; String jaasConfig = FileUtils.readFileToString(jaasConfigFile, Charset.defaultCharset()); FileUtils.writeStringToFile(oldJaasConfigFile, jaasConfig, Charset.defaultCharset()); FileUtils.writeStringToFile(jaasConfigFile, jaasConfig, Charset.defaultCharset());
0
import org.apache.ambari.spi.upgrade.UpgradeType;
0
private final Transaction wrappedTransaction;
0
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
import com.google.inject.assistedinject.Assisted; import com.google.inject.assistedinject.AssistedInject; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.EnumMap; import java.util.EnumSet; import java.util.HashMap; import java.util.HashSet...
0
method = new PropFindMethod(toUrlString(name), nameSet, DavMethod method = new MkColMethod(toUrlString((URLFileName) getName())); DavMethod method = new DeleteMethod(toUrlString((URLFileName) getName())); String url = encodePath(toUrlString((URLFileName) getName())); ...
0
* @version $Id$
0
@Override public String toString() {
0
protected abstract FileObject createFile(final AbstractFileName name) throws Exception; file = createFile((AbstractFileName) name);
0
public synchronized void checkAndUpdateNode (String name, Date hearbeatTime) throws Exception {
0
Set<Resource> expected = new HashSet<>(); Set<String> names = new HashSet<>(); Set<String> requestedIds = new HashSet<>();
1
import cz.seznam.euphoria.core.client.dataset.partitioning.HashPartitioner; import cz.seznam.euphoria.core.client.dataset.partitioning.HashPartitioning;
0
TSERV_WAL_SYNC_METHOD("tserver.wal.sync.method", "hsync", PropertyType.STRING, "The method to invoke when sync'ing WALs. HSync will provide " + "resiliency in the face of unexpected power outages, at the cost of speed. If method is not available, the legacy 'sync' method " + "will be used to ensure backwa...
0
startTimer(initNode); stopTimer(initNode); startTimer(nextNode); stopTimer(nextNode); private void startTimer(final Node initNode) { while (!runningLong.get()) { try { systemTime = System.currentTimeMillis(); synchronized (timer) { ...
0
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class RecoveryStatus implements org.apache.thrift.TBase<RecoveryStatus, RecoveryStatus._Fields>, java.io.Serializable, Cloneable, Comparable<RecoveryStatus> { public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
* Returns {@link TlsCapableIOSession} instance created as a result of this request TlsCapableIOSession getSession();
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions; import org.apache.beam.vendor.guava.v20_0.com.google.common.primitives.Ints;
0
Set<DisplayData> displayData = evaluator.displayDataForPrimitiveSourceTransforms(read); Set<DisplayData> displayData = evaluator.displayDataForPrimitiveSourceTransforms(read);
0
package org.apache.batik.bridge; import org.apache.batik.gvt.ConcreteGVTFactory; import org.apache.batik.parser.ParserFactory; import org.apache.batik.bridge.BufferedDocumentLoader; import org.apache.batik.bridge.BufferedDocumentLoader; import org.apache.batik.gvt.filter.ConcreteGraphicsNodeRableFactory; import org.apa...
0
* @version $Revision: 1.5 $ $Date: 2004/05/16 11:47:38 $ * Executes the closure until the predicate is false. * * @param input the input object * * *
0
/** * Get the global configuration */ GlobalConfiguration getGlobalConfiguration();
0
* <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> import javax.inject.Inject; public class BridgeManagerTest { @Inject MetadataRepository repo; @Test(enabled = false) public void testLoadPropertiesFile() throws Exception { BridgeManager bm = new BridgeManager(repo); System...
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
@Override @Override
0
public static final Object NO_VALUE = new Object(); private Object m_value = NO_VALUE; throw new ConfigurationException("Security execption in setValue on " + type + " : " + e.getMessage()); /** * Gets the NO VALUE Object. * This method returns the object to inje...
0
Iterable<Window> windows = windowing.assignWindowsToElement(element); Iterable<Window> windows = windowing.assignWindowsToElement(element);
0
/** * Thrown if serialization or deserialization of an {@link HttpCacheEntry} * fails. */
0
System.out.println("instance set: " + conf.get(INSTANCE_HAS_BEEN_SET));
0
public enum ReferenceScope {bundle, prototype} private static final Set<String> CARDINALITY_VALID; private static final Set<String> POLICY_VALID; private static final Set<String> POLICY_OPTION_VALID; private String m_scopeName; private ReferenceScope m_scope = ReferenceScope.bundle; // F...
0
* @return a operation implementing the given {@code operationClass} * @return if a operation {@code operationClass} is available
0
import org.apache.accumulo.core.client.ConnectionInfo; import org.apache.accumulo.core.client.impl.ClientConfConverter; private ConnectionInfo info; public StandaloneAccumuloCluster(ConnectionInfo info, Path tmp, List<ClusterUser> users) { this.info = info; return info.getInstanceName(); return info.get...
0
public LocalVariableGen(final int index, final String name, final Type type, final InstructionHandle start, final InstructionHandle end) { public LocalVariable getLocalVariable( final ConstantPoolGen cp ) { public void setIndex( final int index ) { public void setName( final String name ) { ...
0
this.charencoder.onMalformedInput(HttpProtocolParams.getMalformedInputAction(params)); this.charencoder.onUnmappableCharacter(HttpProtocolParams.getUnmappableInputAction(params));
0
package com.twitter.nexus.scheduler; import com.twitter.nexus.gen.NexusSchedulerManager; import nexus.NexusSchedulerDriver; @Option(name = "nexus_scheduler_ns", required = true, usage = "The name service name for the nexus scheduler thrift server.") String nexusSchedulerNameSpec; @Option(name = ...
0
import java.util.Map; String value = get(getTablePropCache(), key); private String get(ZooCache zc, String key) { byte[] v = zc.get(zPath); public void getProperties(Map<String,String> props, PropertyFilter filter) { parent.getProperties(props, filter); ZooCache zc = getTablePropCache(); List...
0
Set<String> centos5Cnt = new HashSet<>(); Set<String> centos6Cnt = new HashSet<>(); Set<String> redhat6cnt = new HashSet<>(); Set<String> redhat5cnt = new HashSet<>(); LinkedList<String> failedMetrics = new LinkedList<>();
1
* @return This loader instance, useful to chain methods. * @return This loader instance, useful to chain methods. * or null if not substitution of these values is to be performed. * @return This loader instance, useful to chain methods. * @return This loader instance, useful to chain met...
0
import static org.apache.ambari.logsearch.query.SearchCriteriaConstants.PARAM_FROM; import static org.apache.ambari.logsearch.query.SearchCriteriaConstants.PARAM_STACK_BY; import static org.apache.ambari.logsearch.query.SearchCriteriaConstants.PARAM_TO; import static org.apache.ambari.logsearch.query.SearchCriteriaCons...
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
IteratorEnumeration<String> enumeration = new IteratorEnumeration<>(iterator);
1
import com.google.inject.Inject; @Inject
0
/** * An optional ID which can be used to uniquely identified any execution * stage. */
0
public void testCloseQuietlyNullSelector() { public void testCloseQuietlySelector() { public void testCloseQuietlySelectorIOException() { public void testCloseQuietlySelectorTwice() {
0
package cz.seznam.euphoria.flink.streaming; import cz.seznam.euphoria.flink.FlinkOperator; class InputTranslator implements StreamingOperatorTranslator<FlowUnfolder.InputOperator> { StreamingExecutorContext context)
0
for (ListIterator i = m_rollback.listIterator(m_commit.size()); i.hasPrevious();) { for (ListIterator i = m_commit.listIterator(m_commit.size()); i.hasPrevious();) {
0
cleanCaches(),
0
/** Test case for {@link DoubleCoder}. */ private static final List<Double> TEST_VALUES = Arrays.asList( 0.0, -0.5, 0.5, 0.3, -0.3, 1.0, -43.89568740, Math.PI, Double.MAX_VALUE, Double.MIN_VALUE, Double...
1
* -Dexec.args="... \ * --workerLogLevelOverrides={\\\"com.google.cloud.dataflow.examples\\\":\\\"DEBUG\\\"}"
0
import org.apache.felix.serializer.Deserializing; import org.apache.felix.serializer.Parser; import org.apache.felix.serializer.Serializer; import org.apache.felix.serializer.Serializing; import org.apache.felix.serializer.Writer;
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; public class IndexedDocIteratorTest { @Before @Test @Test @Test @Test
0
* * TODO: This field will be final in 2.0. protected String charset; /** * The <code>String</code> encoding used for decoding and encoding. * * @return Returns the encoding. * * @deprecated Use {@link #getDefaultCharset()}, will be removed in 2.0. */ public String ...
0
public interface IRepositoryConfig { static final String REPOSITORY_PROVIDER = "provider"; static final String REPOSITORY_LEVEL = "level"; /** * get properties with which to instantiate repositories. * The key REPOSITORY_PROVIDER will be set to the fully qualified class name of the IRepositoryP...
0
for (FieldObserver observer : observers ) { observer.notify(this);
0
import org.apache.ambari.server.controller.internal.AbstractProviderModule; import org.apache.ambari.server.controller.spi.ResourceProvider; * A provider module implementation that uses the JDBC resource provider. public class JDBCProviderModule extends AbstractProviderModule { protected ResourceProvider createResou...
0
Object value = child.getValue(); if (value != null && !(value instanceof Map) && !(value instanceof Configuration)) if (it.hasNext() && (value == null || value instanceof List)) out.println(); out.println(";"); String quoteString(String s)
0
package org.apache.felix.ipojo.test.scenarios.component; import java.util.Properties; import org.apache.felix.ipojo.test.scenarios.manipulation.service.CheckService; public class NoEmptyConstructor implements CheckService { private String name; public NoEmptyConstructor(final String n) { ...
0
public synchronized Map<String, String> load(final String path) throws IOException { protected Map<String, String> loadQueries(final String path) throws IOException { public synchronized void unload(final String path) {
0