Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
String header = (String) getContext().getBundle().getHeaders().get("iPOJO-Components"); ComponentFactory cf = new ComponentFactory(getContext(), getNothing()); ComponentFactory cf = new ComponentFactory(getContext(), getNoField()); ComponentFactory cf = new ComponentFactory(g...
0
import org.apache.zookeeper.AsyncCallback.MultiCallback; public void commit(MultiCallback cb, Object ctx) { zk.multi(ops, cb, ctx); }
0
String inAttr = filterElement.getAttributeNS(null, SVG_IN_ATTRIBUTE);
0
static final TimelineMetricReadHelper TIMELINE_METRIC_READ_HELPER = new TimelineMetricReadHelper(); static ObjectMapper mapper = new ObjectMapper(); static TypeReference<TreeMap<Long, Double>> metricValuesTypeRef = new TypeReference<TreeMap<Long, Double>>() {};
0
import org.apache.cocoon.core.Settings;
0
@Override @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 u...
0
final CRC32 crc32 = new CRC32(); final StringEntity wrapped = new StringEntity("1234567890", "ASCII"); final ChecksumEntity entity = new ChecksumEntity(wrapped, crc32); final String s = EntityUtils.toString(entity); final InputStream in1 = entity.getContent(); final Input...
0
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 use this file except in compliance with the License. You may obta...
0
@Deprecated
0
extends AbstractSVGGradientElementBridge { * Returns 'linearGradient'. */ public String getLocalName() { return SVG_LINEAR_GRADIENT_TAG; } /**
0
import org.apache.commons.vfs2.provider.AbstractFileName; protected WebdavFileObject(final AbstractFileName name, final WebdavFileSystem fileSystem)
0
private String salesDBName; @Test public void testSchemaForDB() throws Exception { WebResource resource = service.path(BASE_URI).path(salesDBName).path("schema"); ClientResponse clientResponse = resource.accept(Servlets.JSON_MEDIA_TYPE).type(Servlets.JSON_MEDIA_TYPE) .method(Htt...
0
import java.util.ArrayList; import java.util.List; import org.apache.xml.security.utils.resolver.ResourceResolverSpi; import org.apache.xml.security.utils.resolver.implementations.ResolverDirectHTTP; import org.apache.xml.security.utils.resolver.implementations.ResolverFragment; import org.apache.xml.security.utils.res...
0
throw new UnsupportedOperationException("loadKeys(files) Iterator#remove() N/A");
0
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
private int writeTimeout; this.writeTimeout = 0; request.setWriteTimeout(this.writeTimeout); public void setWriteTimeout(int writeTimeout) { this.writeTimeout = writeTimeout; }
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
// If values are not defined in stack (null), we skip them // Or if values in old stack and in new stack are the same, and value // in current config is different, skip it if (!(newStackVal == null && oldStackVal == null) && !newStackVal.equals(savedVal) &&
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
import org.apache.commons.vfs.provider.http.HttpFileNameParser; setFileNameParser(HttpFileNameParser.getInstance());
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 java.util.Objects; import org.slf4j.Logger; import org.slf4j.LoggerFactory; // release all references to external objects rootMetricsContext.gauges.clear(); private final ConcurrentMap<String, Gauge> gauges = new ConcurrentHashMap<>(); // no hierarchy yet public void r...
0
LogService.LOG_DEBUG,
0
import com.google.auto.value.AutoValue; return new AutoValue_AvroIO_Read.Builder<T>().build(); return new AutoValue_AvroIO_Read.Builder<GenericRecord>() .setRecordClass(GenericRecord.class) .setSchema(schema) .build(); @AutoValue public abstract static class Read<T> extends PTransfor...
0
// super type attributes referenceable.set("inputs", inputTables); referenceable.set("outputs", outputTables);
0
if (!(obj instanceof User)) { return false; }
0
/** import org.apache.ambari.server.security.authorization.ClusterInheritedPermissionHelper; import com.google.common.collect.FluentIterable; List<String> permissions = autoInstanceConfig.getPermissions(); addClusterInheritedPermissions(viewInstanceEntity, permissions); * Validates principalTypes and...
0
* @version CVS $Id: EffectWidgetReplacingPipe.java,v 1.9 2004/04/12 14:05:09 tim 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 ...
0
public int hashCode() { // uncomment when JDK 1.4 is required // assert false : "hashCode not designed"; return 51; }
0
* Copyright (c) OSGi Alliance (2010, 2017). All Rights Reserved. * @author $Id: a2bc7aac583601ace28b252fdf4ae9a53ce32a9a $ throw new IllegalArgumentException("invalid filter", e); @Override map.put("id", Long.valueOf(bundle.getBundleId()));
1
SerializableFunction<Row, T> fromRowFunction) { SerializableFunction<Row, T> fromRowFunction) {
0
* Copyright 2015 Google Inc. All Rights Reserved.
0
LOG.debug("Creating type with definition {} ", typeDefinition);
0
sessions.remove(session); // Create a copy, as calling session.close() will remove the session from the map CommandSession[] toClose = this.sessions.keySet().toArray(new CommandSession[this.sessions.size()]); for (CommandSession session : toClose) // Just in c...
0
public static final String ID_PREFIX_IMAGE = "image"; public static final String ID_PREFIX_IMAGE_DEFS = "imageDefs"; public static final String DATA_PROTOCOL_PNG_PREFIX = "data:image/png;base64,";
0
import org.apache.beam.sdk.options.PipelineOptionsFactory; @Test public void testUserScoreOptions() { PipelineOptionsFactory.as(HourlyTeamScore.Options.class); }
0
final AccumuloClient client = context.getClient(); final String tableId = client.tableOperations().tableIdMap().get(tableName); final AccumuloClient client = getClient(); final Table.ID tableId = Table.ID.of(client.tableOperations().tableIdMap().get(tableName)); try (Scanner s = client.createScanner...
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
Copyright 2000-2001 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
* @version $Id$
0
* @param beanClass to register * @param beanClass to register * @param dynamicPropertyHandlerClass to handle beanClass public static void registerDynamicClass(Class beanClass, Class dynamicPropertyHandlerClass) { * Creates and registers a JXPathBeanInfo object for the supplied class....
0
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
0
* {@link org.apache.beam.sdk.transforms.windowing.Window.Assign}.
0
* Copyright 2001-2005 The Apache Software Foundation. import java.util.Iterator; for (Iterator it = node.getAttributes().iterator(); it.hasNext();) Node child = (Node) it.next(); if (child.getValue() != null) String attr = child.getName(); ret...
0
if (decoderLength < 5 || decoderLength > (256 * 1024)) {
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
* @param dStart gradient start point, in user space * @param dEnd gradient end point, in user space
0
import org.apache.cocoon.forms.transformation.FormPipelineConfig; this.wrapperContextMap.put(FormPipelineConfig.COCOONFORM, this.form);
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
0
final AbstractSession s = this; log.info("Session {}@{} closed", s.getUsername(), s.getIoSession().getRemoteAddress()); log.debug("Closing session"); log.debug("Send SSH_MSG_NEWKEYS"); log.debug("Received SSH_MSG_CHANNEL_OPEN_CONFIRMATION on channel {}", channel....
0
/** * * @version $Id$ */
0
import org.apache.cocoon.configuration.MutableSettings;
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
void guaranteeThatElementInCorrectSpace(ElementProxy expected, Element actual) boolean isNamespaceElement(Node el, String type, String ns);
1
List<String> valueList = new ArrayList<String>(); array[i] = Boolean.valueOf( valueList[i] );
0
import java.util.function.Predicate; if (filter.test(entry.getKey())) {
0
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
import java.io.Writer; import org.apache.commons.io.output.WriterOutputStream; import org.apache.commons.cli.CommandLine; /** * Will only be set if you use either the Writer constructor or the setWriter(Writer) method * @deprecated since 1.6.0; use out */ @Deprecated protected Writer writer = null; ...
0
/** Returns the current range. */ public synchronized ByteKeyRange getRange() { return range; } if (position == null) { range = range.withStartKey(recordStart); }
0
import java.util.logging.Logger; private static final Logger LOG = Logger.getLogger(DefaultJDBCLock.class.getName()); LOG.addHandler(BootstrapLogManager.getDefaultHandler()); LOG.warning("Could not obtain connection: " + e.getMessage()); LOG.severe("Cleaning up DB connection....
0
BenchmarkConnection conn = new BenchmarkConnection(stats, request.getParams()); conn.bind(socket);
0
upgradeCatalog.updateConfigurationProperties("oozie-env", Collections.singletonMap("oozie_admin_port", "11001"), false, false); expectLastCall();
0
import org.apache.ambari.server.stack.upgrade.UpgradeType;
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 java.util.Map; import java.util.Set; factory.getConfiguration(true); factory.getConfiguration(true); System.getProperties().remove("Id");
0
protected volatile boolean running; LOG.warn("unable to parse zxid string into long: " + nameParts[1]); FileInputStream snapFIS = new FileInputStream(f); try { InputStream snapIS = new BufferedInputStream(snapFIS); try {...
0
import org.apache.accumulo.core.client.IteratorSetting; static private final String SLEEP_TIME = "sleepTime"; public static void setSleepTime(IteratorSetting is, long millis) { is.addOption(SLEEP_TIME, Long.toString(millis)); } sleepTime = Long.parseLong(options.get(SLEEP_TIME));
0
/* * Copyright 2000-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
package org.apache.felix.karaf.shell.ssh;
0
return ADD_PRECEDENCE;
0
import org.apache.accumulo.core.conf.DefaultConfiguration; private static final long CACHE_BLOCK_SIZE = DefaultConfiguration.getInstance().getAsBytes(Property.TSERV_DEFAULT_BLOCKSIZE); DefaultConfiguration.getInstance())));
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
events = events.apply(name + ".CpuDelay", NexmarkUtils.cpuDelay(name, configuration.cpuDelayMs)); events = events.apply(name + ".DiskBusy", NexmarkUtils.diskBusy(configuration.diskBusyBytes));
0
super(message); exception = null; exception = e; super(message); exception = e; String message = super.getMessage(); if (message == null && exception != null) { return exception.getMessage(); } else { return message; ...
1
package org.apache.beam.sdk.extensions.euphoria.fluent; import org.apache.beam.sdk.extensions.euphoria.core.util.Settings; public static <T> Dataset<T> lift(org.apache.beam.sdk.extensions.euphoria.core.client.dataset.Dataset<T> xs) {
0
* <p>Currently this implementation is specific to how Calcite parses 'TIMESTAMPDIFF(..)'. It * converts the TIMESTAMPDIFF() call into infix minus and normalizes it with corresponding * TimeUnit's multiplier. /** Requires exactly 2 operands. One should be a timestamp, another an interval */ Period period = ...
0
@ManyToOne(cascade = CascadeType.PERSIST)
0
/* * $HeadURL$ * $Revision$ * $Date$ * ==================================================================== * * Copyright 1999-2006 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 ma...
0
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkNotNull; import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists; import org.apache.beam.vendor.guava.v20_0.com.g...
0
import org.apache.accumulo.core.util.UnsynchronizedBuffer; final byte[] timeBuffer = new byte[9]; UnsynchronizedBuffer.writeVLong(out, timeBuffer, systemTime);
0
List<Order> sortOrders = new ArrayList<>(sortProperties.size());
0
public final synchronized void setLogLevel(int i) public final synchronized int getLogLevel()
0
import java.util.ArrayList; import java.util.Collection; import java.util.List; Collection<T> build(Collection<? extends ServletState> whiteboardServices, long servletContextId) { List<T> dtoList = new ArrayList<T>(); for (ServletState whiteboardService : whiteboardServices) { ...
0
if (!tokenizer.hasMoreElements()) { } if (!tokenizer.hasMoreElements()) { } if (!tokenizer.hasMoreElements()) { } if (!tokenizer.hasMoreElements()) { } if (getState() != AUTHORIZATION_STATE) { } if (sendCommand(POP3C...
1
* @author William Farner * TODO(William Farner): During a rollback, need to get the updated set of shard IDs since the update * TODO(William Farner): Need to make sure to issue a kill command to shards that are being removed. // TODO(William Farner): Can/should we do anything if this fails?
0
reuseStrategy = DefaultConnectionReuseStrategy.INSTANCE;
0
for (int bIndex = 0, uIndex = 0; (bIndex < builtin.size()) || (uIndex < unknown.size());) {
0
package com.twitter.aurora.scheduler.async; import com.twitter.aurora.scheduler.async.TaskGroups.GroupKey; private final GroupKey key; GroupKey getKey() { return key; } return key.toString();
1
import org.mockito.Mockito; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import java.util.LinkedHashMap; when(stepContext .lookup(Mockito.<CodedTupleTag<Map<IntervalWindow, Set<Windmill.GlobalDataRequest>>>>any())) .thenReturn(blockedMap); when(stepContext....
0
@Test public void testTableDecoratorStripping() { TableDestination tableDestination = tableDestination = new TableDestination( "project:dataset.table$decorator", ""); assertEquals("project:dataset.table", tableDestination.getStrippedTableSpec()); tableDestination = new TableDestination("projec...
0
package org.apache.commons.vfs2;
1
import org.apache.batik.constants.XMLConstants;
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/converters/URLConverterTestCase.java,v 1.3 2003/10/09 20:39:15 rdonkin Exp $ * $Revision: 1.3 $ * $Date: 2003/10/09 20:39:15 $ * Alternately, this acknowledgement may appear in t...
0
import org.apache.ambari.server.stack.StackManagerFactory; private OsFamily osFamily; private AlertDefinitionDAO alertDefinitionDao; /** * Factory for injecting {@link StackManager} instances. */ private StackManagerFactory stackManagerFactory; /** * Singleton instance of the stack manager. */ p...
0
ResourceResolverSpi resolver = new OfflineResolver();; ResourceResolverSpi resolver = new OfflineResolver();
0
String hash(String storageKey);
0
* http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing...
0