Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import java.awt.*; getContentPane().add( createURISelectionPanel(), BorderLayout.NORTH ); getContentPane().add( createButtonsPanel(), BorderLayout.SOUTH );
0
public class CoderTranslation {
0
* Copyright 2002-2005 The Apache Software Foundation.
0
ch.ethz.ssh2.log.Logger.enabled = true;
0
* @param index Index into the collection
0
import org.apache.accumulo.server.log.WalStateManager; WalStateManager wals = new WalStateManager(c.getInstance(), ZooReaderWriter.getInstance());
1
import org.apache.batik.util.resources.ResourceManager;
0
try (OutputStream out = Files.newOutputStream(idFile, options)) {
0
* @param systemID the system ID
0
public void testBuild_OptionalWindowing() { Flow flow = Flow.create("TEST"); Dataset<String> left = Util.createMockDataset(flow, 1); Dataset<String> right = Util.createMockDataset(flow, 1); Join.named("Join1") .of(left, right) .by(String::length, String::length) .using((String...
0
* Configuration facade for {@link HttpContext} instances. /** * @deprecated to be replaced with a special parameter in 4.1 */ @Deprecated
0
+ Base64.getEncoder().encodeToString(AuthenticationTokenSerializer.serialize(token))); return AuthenticationTokenSerializer.deserialize(args[0], Base64.getDecoder().decode(args[1]));
0
.getPerDestinationOutputFilenames().apply(Values.create()) .apply(Reshuffle.viaRandomKey()); .withSideInputs(consolidatedHashcode.apply(View.asSingleton())));
0
Cluster cluster = clusters.getCluster(clusterName); // [ type -> [ key, value ] ] Map<String, Map<String, String>> configurations = new TreeMap<String, Map<String,String>>(); // Do not use service config mappings. Instead, the rules are: // 1) Use the cluster desired config // 2) override...
0
import org.apache.atlas.repository.graph.TitanGraphProvider; initializeGraphTransaction(); initializeGraphTransaction(); initializeGraphTransaction(); protected void deleteResource(ResourceProvider provider, Request request) throws CatalogException { initializeGraphTransaction(); ...
0
if (appIds.length == 0) { }
0
if (list == null) { throw new NullPointerException("List must not be null."); }
0
* <p>This is intended for internal use only. The watermark will be held up based on the
0
private List<Element> m_metadata; m_metadata = new ArrayList<Element>(); m_metadata.add(metadata); for (Element metadata : m_metadata) { builder.append(m_renderer.render(metadata));
0
TreeSet<Text> splitsToAdd = new TreeSet<>(); List<Range> ranges = new ArrayList<>(); ranges = new ArrayList<>();
0
for (String component : hostGroup.getComponentNames()) { Collection<String> groupComponents = group.getComponentNames();
0
options.setProject("project-id");
0
import com.fasterxml.jackson.databind.ObjectMapper; import com.google.api.services.bigquery.Bigquery.Datasets.Delete; import com.google.api.services.storage.Storage;
0
package org.apache.commons.codec.digest; import static org.junit.Assert.assertNotNull; import org.junit.Test; public class Sha2CryptTest { @Test public void testCtor() { assertNotNull(new Sha2Crypt()); } }
0
/** * Save the layout * @param layoutKey */ void saveUserLayout(String layoutKey); /** * Save the coplet instance * @param layoutKey */ void saveUserCopletInstance(String layoutKey);
0
assertEquals(TestBean.Ordinal.THREE, row.getThree()); assertEquals(TestBean.Ordinal.SIX, row.getThree());
0
import net.jcip.annotations.Immutable; @Immutable
0
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.UndeclaredThrowableException; super(msg, unwrap(cause)); super(msg, unwrap(cause)); /** * Unwraps the cause of a throwable due to reflection. * @param xthrow the throwable * @return the cause */ ...
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
* 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
WebConsolePlugin(final InventoryPrinterManagerImpl inventoryPrinterManager, final InventoryPrinterManagerImpl manager, final Dictionary props = new Hashtable(); props.put(ConsoleConstants.PLUGIN_LABEL, "status-" + desc.getName()); props.put(ConsoleConstants.PLUGIN_CATEGORY, Conso...
0
/** * Prevent the instantiation of class. */ private CompareUtils() { // nothing } /** * A comparator to compare anything that implements {@link RawComparable} using a customized comparator. */ public static final class BytesComparator implements Comparator<RawComparable> { private RawC...
1
threadioRegistration = context.registerService(ThreadIO.class.getName(), threadio, null); public Object addingService(ServiceReference reference) { public void removedService(ServiceReference reference, Object service) { = new ConcurrentHashMap...
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 com.google.cloud.dataflow.sdk.util.state.AccumulatorCombiningState; import com.google.cloud.dataflow.sdk.util.state.ReadableState; public abstract ReadableState<Boolean> isEmpty(StateAccessor<K> context); public ReadableState<Boolean> isEmpty(StateAccessor<K> state) { private static final StateTag<Obje...
0
* @version $Id$ public abstract class AbstractBidiMapDecorator<K, V> extends AbstractMapDecorator<K, V> implements BidiMap<K, V> { /** * {@inheritDoc} */ /** * {@inheritDoc} */ /** * {@inheritDoc} */
0
import org.apache.accumulo.core.security.thrift.ThriftSecurityException;
0
public RequestStatus deleteResources(Request request, Predicate predicate)
0
return attr0.getLocalName().compareTo(attr1.getLocalName());
0
sftpSubsystem.doSetAttributes(file, attrs); super.close(); if (channel.isOpen()) { channel.close(); }
0
* Returns {@code true} if the entity has been transferred in its * @return {@code true} if all the content has been produced, * {@code false} otherwise.
0
import org.apache.sshd.util.test.NoIoTestCase; import org.junit.experimental.categories.Category; @Category({ NoIoTestCase.class })
0
import org.apache.felix.scr.impl.logger.ScrLogger; private final ScrLogger m_logger; public BundleComponentActivator(final ScrLogger logger, final ComponentRegistry componentRegistry, final ComponentActorThread componentActor, final BundleContext context, final Sc...
0
IOUtils.write(inData, writer, (String) null); IOUtils.write(csq, out, (String) null); IOUtils.write(str, out, (String) null); IOUtils.write(str.toCharArray(), out, (String) null); IOUtils.writeLines(list, "*", out, (String) null);
0
import org.apache.cocoon.portal.layout.renderer.aspect.RendererAspect; import org.apache.cocoon.portal.services.aspects.PortalManagerAspect; import org.apache.cocoon.portal.services.aspects.ProfileManagerAspect; this.registerBeanDefinitionParser("renderer-aspects", new AspectsBeanDefinitionParser(RendererAspect...
0
* * @since 4.0
0
package com.twitter.mesos.scheduler.httphandlers; import java.util.Collection; import com.google.common.base.Function; import com.google.common.base.Joiner; import com.google.common.collect.Iterables; import com.google.common.collect.Range; import com.twitter.mesos.gen.Package; import com.twitter.mesos.scheduler.Num...
0
expect(schemaFactory.getSchema(Resource.Type.Artifact)).andReturn(schema).anyTimes(); assertEquals(3, propertyTree.getChildren().size());
0
@Override public int read() throws IOException { @Override public int read(byte[] b, int off, int len) throws IOException { @Override public int read(byte[] b) throws IOException { @Override public int available() throws IOException { @Override public void close() throws IOException {
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...
1
public long getRepoVersionId() { public Boolean getPreInstalled() { public boolean isScoped() {
0
import junit.framework.Assert;
0
public class SingletonMapTest<K, V> extends AbstractOrderedMapTest<K, V> { public SingletonMapTest(String testName) { return BulkTest.makeSuite(SingletonMapTest.class); "SingletonMapTest.bulkTestMapIterator.testEmptyMapIterator", "SingletonMapTest.bulkTestOrderedMapIterator.testEmpty...
0
log.debug("New tablet servers noticed: {}", added); log.debug("Tablet servers removed: {}", deleted); log.debug("Removing {} WAL {}", stateFile.getFirst(), path); log.error("Unable to delete wal {}: ", path, ex);
0
import org.apache.felix.ipojo.architecture.Architecture; } else if (itf.equals(Architecture.class.getName())) { filter = "(" + "architecture.instance" + "=" + name + ")";
0
private int name_index; // TODO could be final (setter unused) private int access_flags; // TODO could be final (setter unused) public void setNameIndex(int name_index) { // TODO unused public void setAccessFlags(int access_flags) { // TODO unused
0
copy.setInstanceIdDEPRECATED(0); copy.unsetInstanceIdDEPRECATED();
0
public void encode(Holder<V> accumulator, OutputStream outStream) throws CoderException, IOException { encode(accumulator, outStream, Context.NESTED); } @Override public Holder<V> decode(InputStream inStream) throws CoderException, IOException { return decode(inStream, Context.NESTE...
0
import com.google.common.util.concurrent.ThreadFactoryBuilder;
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
public DeletingIterator(SortedKeyValueIterator<Key,Value> iterator, boolean propogateDeletes) throws IOException { public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { while (source.hasTop() && source.getTopKey().compareTo(range.getStartKey...
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 ap...
1
assertTrue(sqlTable instanceof BigQueryTable); BigQueryTable bqTable = (BigQueryTable) sqlTable; assertEquals("project:dataset.table", bqTable.bqLocation);
0
asserter.assertExpression("foo + 2", new Integer(4)); asserter.assertExpression("3 + 3", new Integer(6)); asserter.assertExpression("3 + 3 + foo", new Integer(8)); asserter.assertExpression("3 * 3", new Integer(9)); asserter.assertExpression("3 * 3 + foo", new Integer(11)); ...
0
for (final FileObject fo : foArray) for (final String extension : extensionSet) for (final FileObject fo : foArray)
1
/* * 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
private boolean m_needsInstance = true; m_needsInstance = prototype.needsInstance(); return setCallback(instance, callback, false); } public ConfigurationDependencyImpl setCallback(Object instance, String callback, boolean needsInstance) { m_needsInstance = needsInstance; return m...
0
/** * 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 in writing, software * distribu...
0
public XMLSecurityConfigurationException(Exception originalException, String msgID) { super(originalException, msgID);
0
/** * Does nothing - output to <code>/dev/null</code>. * @param idx The character to write */ /** * Does nothing - output to <code>/dev/null</code>. * @param chr The characters to write */ /** * Does nothing - output to <code>/dev/null</code>. * @param chr The charact...
0
public abstract class DateTimeConverter extends AbstractConverter { public DateTimeConverter() { super(); public DateTimeConverter(Object defaultValue) { super(defaultValue);
0
fullparams[1] = line;
0
/* * Copyright 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 required by applica...
0
"crw------- 1 root sys 109,767 Jul 2 2004 pci@1c,600000:devctl", //Solaris device "-rwxrwx--- 1 ftp ftp-admin 816026400 Oct 5 2008 bloplab 7 cd1.img", // NET-294 public void testNET294() { FTPFile f = getParser().parseFTPEntry( "-rwxrwx--- 1 ft...
0
import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.Set; import com.google.inject.assistedinject.Assisted; import com.google.inject.assistedinject.AssistedInject; import com.google.inject.persist.Transactional; protected static...
0
abstract class AbstractInputCheckedMapDecorator<K, V> extends AbstractMapDecorator<K, V> { protected AbstractInputCheckedMapDecorator(Map<K, V> map) { protected abstract V checkSetValue(V value); public Set<Map.Entry<K, V>> entrySet() { return map.entrySet(); @SuppressWarnings("serial") ...
0
Option tree = new Option( "tree", "tree representation" );
0
package org.apache.batik.gvt.filter;
0
Path path = AuthorizedKeyEntry.getDefaultAuthorizedKeysFile(); assertNotNull("No default location", path);
0
public interface VcsCommitListener {
1
IZooReaderWriter writer = context.getZooReaderWriter(); IZooReaderWriter writer = context.getZooReaderWriter(); IZooReaderWriter writer = context.getZooReaderWriter(); final IZooReader reader = context.getZooReaderWriter();
0
Collections.unmodifiableSet(EnumSet.allOf(WelcomeBannerPhase.class));
0
if ((className == null) || className.isEmpty()) {
0
return new HashMap<String, Service>(services);
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.io.InputStream; * @version CVS $Id: ImageReader.java,v 1.11 2004/06/24 06:28:00 cziegeler Exp $ protected void processStream(InputStream inputStream) throws IOException, ProcessingException { super.processStream(inputStream);
1
PublicSuffixListParser(final PublicSuffixFilter filter) { public void parse(final Reader list) throws IOException { private boolean readLine(final Reader r, final StringBuilder sb) throws IOException {
0
* $HeadURL$ * $Revision$ * $Date$ * @version $Revision$
0
Assert.assertNull(command.getRepositoryFile()); Assert.assertNull(command.getRepositoryFile()); Assert.assertNull(command.getRepositoryFile());
0
import org.junit.Assert; import org.junit.Test;
0
if(client.isConnected()) if(client.isConnected())
0
/** A {@link SparkPipelineOptions} for tests. */ @Description( "A watermark (time in millis) that causes a pipeline that reads " + "from an unbounded source to stop.") * A factory to provide the default watermark to stop a pipeline that reads from an unbounded * source.
1
Copyright 2001-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 l...
0
* Resets output state. This method can be used to prematurely terminate * processing of the incoming HTTP request. void resetInput(); /** * Resets input state. This method can be used to prematurely terminate * processing of the outgoing HTTP response. */ void resetOutput();
0
* is used to sort Strings by an encoding scheme such * @version $Id: StringEncoderComparator.java,v 1.10 2003/11/24 00:11:56 ggregory Exp $ * Constructs a new instance with the given algorithm. * @param stringEncoder the StringEncoder used for comparisons. public StringEncoderComparator(StringEncoder st...
0
* @version $Id$ /** Constant for parsing numbers in hex format. */ private static final int HEX = 16; private static final Log LOG = LogFactory.getLog(ConfigurationUtils.class); synchronized (lock) if (LOG.isDebugEnabled()) LOG.debug(buf.toString()); ...
0
import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.replay; import org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.TimelineMetricConfiguration; import org.easymock.EasyMock; import java.net.URISyntaxException; public void insertDummyRecords() throws IOException, S...
0
* Returns this user agent's CSS media. */ public String getMedia() { return "all"; } /**
0
/* * Copyright 1999-2002,2004-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 requ...
0
* @version $Id: DoubleMetaphone.java,v 1.18 2004/01/08 19:22:22 ggregory Exp $ if (this.primary.length() < this.maxLength) { this.primary.append(value); if (this.alternate.length() < this.maxLength) { this.alternate.append(value); int addChars = this....
0