Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import java.nio.charset.StandardCharsets; FileUtils.write(xmlFileB, xmlFileContent, StandardCharsets.UTF_8); FileUtils.write(xmlFileB, xmlFileContent, StandardCharsets.UTF_8); IOUtils.write(tarMagicNumber, tarFileAStream, StandardCharsets.UTF_8);
0
values.put(CSSConstants.CSS_EVENODD_VALUE, values.put(CSSConstants.CSS_NONZERO_VALUE, return true; return CSSConstants.CSS_CLIP_RULE_PROPERTY;
1
@SuppressWarnings("unchecked") DAG<FlinkOperator<Operator<?, ?>>> dag = flowToDag(flow); BatchExecutorContext executorContext = new BatchExecutorContext(env, (DAG) dag); Translation<Operator<?, ?>> tx = translations.get(originalOp.getClass());
0
final SocketChannel socketChannel;
0
import org.apache.hc.client5.http.impl.Operations; import org.apache.hc.core5.concurrent.Cancellable; public Cancellable acquireConnection( return Operations.cancellable(connPool.getSession( target, requestConfig.getConnectionTimeout(), new Fut...
0
public static final String HDFS_PATH_PREFIX = "hdfs://"; String strPath = path.toString(); if (strPath.startsWith(HDFS_PATH_PREFIX) && context.isConvertHdfsPathToLowerCase()) { strPath = strPath.toLowerCase(); } String name = Path.getPathWithou...
0
* Empty constructor needed for Instruction.readInstruction. * Not to be used otherwise. * Empty constructor needed for Instruction.readInstruction. * Also used by IINC()!
0
@Override public boolean supportsRestart() { return true; }
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory;
0
import java.util.HashMap; import java.util.Map; private Map<String, String> options; this(name, dataTypeName, multiplicity, false, false, true, null, null); this(name, dataTypeName, multiplicity, isComposite, false, false, reverseAttributeName, null); public AttributeDefinition(String name, Stri...
0
Set<StackConfigurationDependencyResponse> allResponse = new HashSet<>(); Set<String> propertyIds = new HashSet<>();
1
import org.apache.aurora.common.args.ArgScannerTest.StandardArgs.Optimizations; import org.apache.aurora.common.args.constraints.NotEmpty; import org.hamcrest.CoreMatchers; import org.junit.Before; import org.junit.Test;
0
FILE_MAPPING.put("8745", "storm_rest_api_jmx.json");
0
import com.thoughtworks.qdox.model.Annotation; * @see org.apache.felix.scrplugin.tags.annotation.AnnotationTagProvider#getTags(Annotation, org.apache.felix.scrplugin.tags.annotation.AnnotationJavaClassDescription, org.apache.felix.scrplugin.tags.JavaField) public List<JavaTag> getTags(Annotation annotation, ...
0
@SuppressWarnings("ReturnValueIgnored")
0
package org.apache.beam.sdk.transforms;
0
ObjectName OBJECT_NAME = null;
0
Component s1 = component(m).impl(configurator).withSvc(ConfigurationAdmin.class, true).build(); .withSvc(AdapterExtraDependency.class, true)
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
protected SftpPath create(String root, List<String> names) {
0
State lastComponentState = getState(); version, lastComponentState);
0
public boolean execTLS() throws IOException
0
/* * Copyright (C) 2015 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
import java.io.Serializable;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/FloatListList.java,v 1.3 2003/11/07 20:09:15 rwaldhoff Exp $ * * @deprecated This code has been moved to Jakarta Commons Primitives (http://jakarta.apa...
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
* http://www.apache.org/licenses/LICENSE-2.0
0
* * @return true, if <code>MethodUtils.invokeExactMethod</code> Should be used for the reflection, * false otherwise * * @param The <code>MethodUtils.invokeExactMethod</code> flag
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
public static final DateTimeFormatter SOLR_DATETIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSX");
0
EventTarget target = (EventTarget)doc; target.addEventListener("SVGUnload", l, false); ctx.storeEventListener(target, "SVGUnload", l, false);
0
import org.apache.felix.scrplugin.description.Validator; final Validator validator = new Validator(comp.getClassDescription(), comp, specVersion, project, options); if (bindValue == null && validator.findMethod(iLog, ref, "bind") == null) { ...
0
import com.google.common.collect.ImmutableSet; import org.apache.atlas.TestOnlyModule; import javax.inject.Inject; import java.text.SimpleDateFormat; import java.util.*; import static org.apache.atlas.typesystem.types.utils.TypesUtil.createClassTypeDef; import static org.apache.atlas.typesystem.types.utils.TypesUtil.c...
0
implements Serviceable, Configurable, CacheableProcessingComponent, Disposable {
0
import org.apache.accumulo.core.conf.Property; void wroteNothing() { void errorOccured(Exception e) { wroteNothing(); } if (timeoutTracker.getTimeOut() < instance.getConfiguration().getTimeInMillis(Property.GENERAL_RPC_TIMEOUT)) long totalCommitted = 0; tot...
0
KeyValue entries[] = new KeyValue[] {createKeyValue(OPEN, 0, -1, "1"), createKeyValue(DEFINE_TABLET, 1, 2, extent), createKeyValue(MUTATION, 2, 2, m1), createKeyValue(COMPACTION_START, 3, 2, compactionStartFile), createKeyValue(MUTATION, 4, 2, m2),};
0
if (!isRunning()) { LOG.debug("ZooKeeper server is not running, so not proceeding to shutdown!"); return; }
0
for (Entry<String,String> entry : ServerConfiguration.getSiteConfiguration()) {
1
package org.apache.accumulo.core.util.shell.commands; import org.apache.accumulo.core.util.shell.Shell;
0
import org.apache.accumulo.core.client.security.tokens.KerberosToken; import org.junit.Assume; import org.junit.Before; @Before public void checkNoKerberos() { Assume.assumeFalse(getToken() instanceof KerberosToken); }
1
if ( m == null )
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.HashBasedTable; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Table;
0
public ValueInGlobalWindow(V value) { super(value); } public ValueInEmptyWindows(V value) { super(value); }
0
public FakeCassandraWriter createWriter(CassandraIO.Write<Scientist> spec) { public FakeCassandraDeleter createDeleter(CassandraIO.Write<Scientist> spec) {
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
final LeaseRequest leaseRequest1 = this.connManager.lease("id1", route,null); try (final ClassicHttpResponse response1 = endpoint1.execute("id1", request, exec, context)) { final LeaseRequest leaseRequest2 = this.connManager.lease("id2", route,null); final LeaseRequest leaseRequest2 ...
0
/** * This is a discovery endpoint that advertises known live collector * instances. Note: It will always answer with current instance as live. * This can be utilized as a liveliness pinger endpoint since the instance * names are cached and thereby no synchronous calls result from this API * * @retu...
0
Row.withSchema(CalciteUtils.toBeamSchema(relDataType))
0
import java.util.LinkedHashMap; Map<String, BundleRevision> importedPkgsActual = new LinkedHashMap<String, BundleRevision>();
0
* by HTTP connections for creating {@link org.apache.http.HttpRequest} * objects.
0
import org.apache.commons.configuration.interpol.ConfigurationInterpolator; EntityResolverWithPropertiesTestImpl resolver = (EntityResolverWithPropertiesTestImpl) xmlConf .getEntityResolver(); assertFalse("No lookups", resolver.getInterpolator().getLookups() ...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/CaseTag.java,v 1.2 2003/01/25 17:56:53 morgand Exp $ * $Revision: 1.2 $ * $Date: 2003/01/25 17:56:53 $ * $Id: CaseTag.java,v 1.2 2003/01/25 17:56:53 morgand 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 ...
0
import java.util.Map; for (final Map.Entry<String, String> e : System.getenv().entrySet()) assertEquals("Wrong value for " + e.getKey(), e.getValue(), lookup.lookup(e.getKey()));
0
* Copyright 2000-2009 The Apache Software Foundation
0
import org.apache.ambari.logfeeder.input.InputFileMarker; import org.apache.ambari.logfeeder.plugin.input.InputMarker; import org.apache.ambari.logfeeder.plugin.output.Output; import org.apache.ambari.logfeeder.util.LogFeederUtil; import org.apache.ambari.logsearch.config.api.model.outputconfig.OutputProperties; public...
0
* @version $Id$ private static final String CVS_ID = "$Id$";
0
/** * {@inheritDoc} * * @return {@link BoundedWindow#TIMESTAMP_MAX_VALUE}: in batch mode, upstream processing * is already complete. */ @Override @Nullable public Instant currentSynchronizedProcessingTime() { return BoundedWindow.TIMESTAMP_MAX_VALUE; }
0
/* * Copyright 2002, 2003,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 requi...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/EvalContext.java,v 1.5 2001/09/26 23:37:38 dmitri Exp $ * $Revision: 1.5 $ * $Date: 2001/09/26 23:37:38 $ * @version $Revision: 1.5 $ $Date: 2001/09/26 23:37:38 $ Strin...
0
ExtendedSelector { simpleSelector = s; condition = c; return SAC_CONDITIONAL_SELECTOR; return ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE) && ((ExtendedCondition)getCondition()).match(e, pseudoE); ((ExtendedSelector)getSimpleSelecto...
1
protected Iterator<? extends Entry<K, V>> nextIterator(final int count) { public V setValue(final V value) { private void readObject(final ObjectInputStream is) throws IOException, ClassNotFoundException {
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Charsets;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/MapDynamicPropertyHandler.java,v 1.5 2003/10/09 21:31:38 rdonkin Exp $ * $Revision: 1.5 $ * $Date: 2003/10/09 21:31:38 $ * any, must include the following acknowledgement: * Altern...
0
import org.apache.hc.core5.io.CloseMode; server.close(CloseMode.GRACEFUL); requester.close(CloseMode.GRACEFUL);
0
public enum NamespacePermission { final private static NamespacePermission mapping[] = new NamespacePermission[8]; for (NamespacePermission perm : NamespacePermission.values()) private NamespacePermission(byte id) { NamespacePermission[] a = NamespacePermission.values(); for (NamespacePermission p : a) ...
0
import org.apache.batik.gvt.RootGraphicsNode; private ArrayList listeners; private GraphicsNode selectionNode; private RootGraphicsNode selectionNodeRoot; private GraphicsNode currentNode; if (selectionNode == null) { return; } if (node != end.getTextNode()) { ...
0
task -> task.getAssignedTask().getTask().getNumCpus() task -> task.getAssignedTask().getTask().getRamMb() task -> task.getAssignedTask().getTask().getDiskMb() return Multimaps.index(tasks, task -> "sla_cluster_"); result.putAll(entry.getKey(), Iterables.filter(tasks, task -> { ...
0
outputStream.write(this.buffer.array(), 0, len); final CharBuffer cbuf = CharBuffer.wrap(charbuffer.array(), 0, charbuffer.length());
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
/* ==================================================================== * Copyright (c) 2001-2004 The Apache Software Foundation. All rights * @version $Revision: 1.16 $ $Date: 2004/01/14 21:34:30 $
0
@Override @Override @Override @Override @Override @Override
0
private AtlasClassificationType classificationTypeT1; RequestContext.get().setImportInProgress(true); classificationTypeT1 = createNewClassification(); entityStore.addClassifications(TABLE_GUID, ImmutableList.of(classificationTypeT1.createDefaultValue())); createTypes(typeDefStore, ...
0
package org.osgi.service.command;
0
static org.slf4j.Logger LOG =
0
@SuppressWarnings("unchecked") Storage<T> s = store.get(key); @SuppressWarnings("unchecked") Storage<T> s = store.get(key);
0
* * * * * * * * *
0
import com.twitter.common_internal.util.HdfsUtils; return HdfsUtils.downloadFileFromHdfs(conf, copy.getSourcePath(), copy.getDestPath(), true);
0
* @see org.apache.felix.scrplugin.tags.JavaField#getInitializationExpression() * @see org.apache.felix.scrplugin.tags.JavaField#getName() * @see org.apache.felix.scrplugin.tags.JavaField#getTagByName(java.lang.String) * @see org.apache.felix.scrplugin.tags.JavaField#getType()
0
// artifact names public static final String KERBEROS_DESCRIPTOR = "kerberos_descriptor"; public static String toArtifactDataJson(Map<?,?> properties) { return String.format("{ \"%s\": %s }", ARTIFACT_DATA_PROPERTY, jsonSerializer.toJson(properties)); }
0
context.ungetService(devicesRefs[i]); context.ungetService(devicesRefs[i]); context.ungetService(devicesRefs[i]); context.ungetService(devicesRefs[i]);
0
private static final long serialVersionUID = 5132005214688990379L;
0
value = value == null ? "" : value; DisplayData displayData = DisplayData.from(value); for (DisplayData.Item<?> item : displayData.items()) {
0
* Default {@link org.apache.http.message.HeaderValueFormatter} implementation. private final static String SEPARATORS = " ;,:@()<>\\\"/[]?={}\t"; private final static String UNSAFE_CHARS = "\"\\"; public void formatElements( final CharArrayBuffer buffer, final HeaderElement[] elems, final boole...
0
thrown.expect(RuntimeException.class); thrown.expect(RuntimeException.class);
0
String tableId = extent.getTableId();
0
import org.apache.xml.security.exceptions.XMLSecurityException; throw new XMLSecurityException("stax.ecParametersNotSupported"); throw new XMLSecurityException("stax.namedCurveMissing"); throw new XMLSecurityException("stax.unsupportedKeyValue"); throw new XMLSecurity...
0
concat.apply(new ViewOverrideFactory.WriteView<>(createView));
0
package org.apache.xml.security.c14n.implementations; import java.io.ByteArrayOutputStream; import java.io.UnsupportedEncodingException; import java.util.Arrays; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; public class UtfHelperTest extends TestCase { public void ...
0
Object aType,
0
import org.apache.accumulo.harness.SharedMiniClusterIT; SharedMiniClusterIT.startMiniCluster();
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
0
import org.apache.accumulo.test.VerifyIngest.VerifyParams; VerifyParams params = new VerifyParams(getClientProperties(), tableName, 10_000); "--rows", "" + params.rows, "--table", tableName}); VerifyIngest.verifyIngest(c, params);
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
public double progress = 0d; * @param progress public TabletServerRecoveryInformation(String server, String log, int time, double progress) { this.progress = progress;
0
/** * @since 6.0 */
0
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class TIteratorSetting implements org.apache.thrift.TBase<TIteratorSetting, TIteratorSetting._Fields>, java.io.Serializable, Cloneable, Comparable<TIteratorSetting> { public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
String val = args[2]; "option " + option + " val " + val + " path " + path);
0
public static void updateFiles(ClientContext context, KeyExtent extent, String file, Status stat) { log.debug("Updating replication status for " + extent + " with " + file + " using " + ProtobufUtil.toString(stat)); update(context, createUpdateMutation(new Path(file), v, extent), extent);
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