Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
public <R,P> R accept(NodeVisitor<? extends R, ? super P> visitor, P data) { return visitor.visit(this, data); }
0
@Override
0
synchQ = new ArrayBlockingQueue<>(1);
1
ProtocolVersion getProtocolVersion();
0
throw new RuntimeException(e.getCause());
0
public final transient TestPipeline testPipeline = TestPipeline.create();
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 org.apache.commons.collections.Transformer; public class BeanMap extends AbstractMap<Object, Object> implements Cloneable { @SuppressWarnings("unchecked") // The set actually contains strings; however, because it cannot be // modified there is no danger in selling it as Set<Object> public Set<Obj...
0
/** * Encodes a {@link ServiceInstance} as a JSON object. */ public class JsonCodec implements Codec<ServiceInstance> { /** * The encoding for service instance data in ZooKeeper expected by Aurora clients. */ public static final Codec<ServiceInstance> INSTANCE = new JsonCodec(); private JsonCodec() {
0
final ArrayList<E> copyOfList1 = new ArrayList<E>(list1); if (copyOfList1.contains(e)) { copyOfList1.remove(e);
0
import org.apache.commons.bcel6.Const; super(Const.T_UNKNOWN, "Long_Upper");
0
return getAttributeNS(null, SVG_GLYPH_REF_ATTRIBUTE); setAttributeNS(null, SVG_GLYPH_REF_ATTRIBUTE, glyphRef); return getAttributeNS(null, SVG_FORMAT_ATTRIBUTE); setAttributeNS(null, SVG_FORMAT_ATTRIBUTE, format); return Float.parseFloat(getAttributeNS(null, SVG_X_ATTRIBUTE)); ...
0
LOG.error("Bad request: ", e);
0
import org.apache.aurora.common.application.Application; public class SchedulerMain implements Application {
0
/** * Copyright 2016 Seznam a.s. * * 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 org.apache.avalon.framework.service.ServiceException; import org.apache.avalon.framework.service.ServiceManager; * @version CVS $Id: CIncludeTransformer.java,v 1.7 2003/10/21 12:39:16 cziegeler Exp $ * @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceM...
0
* <p>Implementation object representing an <strong>item</strong> in the
0
import org.apache.felix.scr.impl.manager.AbstractComponentManager; public abstract class ComponentActivatorTask implements Runnable
0
// only STANDARD types don't have a parent if (entity.getType() == RepositoryType.STANDARD) {
0
* @return The Accumulo instance. * @return The Accumulo instance.
0
JXPathContext jxobjectModel = JXPathContext.newContext(objectModel.get(ObjectModel.CONTEXTBEAN)); jxobjectModel.setNamespaceContextPointer(new NamespacesTablePointer((NamespacesTable)objectModel.get(ObjectModel.NAMESPACE)));
0
* Copyright 2016 Seznam.cz, a.s.
0
.apply(CreateDataflowView.<ElemT, ViewT>forStreaming(view));
0
HashSet<String> closed = null; closed = getClosedLogs(conn); log.info("Found " + closed.size() + " WALs referenced in metadata in " + sw.toString()); recordsClosed = updateReplicationEntries(conn, closed); protected HashSet<String> getClosedLogs(Connector conn) { HashSet<String> result = new H...
0
* * * * @version CVS $Id$ public final class CocoonComponentManager extends ExcaliburComponentManager { super(manager, loader); super(manager); public Component lookup(final String role) if(null == role) { throws ComponentException { public void initialize() throws Excepti...
0
import cz.seznam.euphoria.shadow.com.google.common.base.Preconditions;
0
import org.junit.Ignore; public Map<Resource.Type, PropertyId> getKeyPropertyIds() { return keyPropertyIds; @Ignore // Assert.assertEquals(, controller.getSchema(Resource.Type.Host)); @Override public List<PropertyProvider> getPropertyProviders(Resource.Type type) { return propertyProvider...
0
throw new H2ConnectionException(H2Error.INTERNAL_ERROR, "Unexpected executable command");
0
public class FactoryConfigurationAdapterAnnotationTest extends TestBase { public FactoryConfigurationAdapterAnnotationTest() { super(true /* start test components bundle */); }
0
* * * /** * @version $Revision: 1.5 $ //------------------------------------------------------------------------- //------------------------------------------------------------------------- /** /**
1
import org.apache.commons.bcel6.ExceptionConst; ExceptionConst.ILLEGAL_MONITOR_STATE
0
* http://www.apache.org/licenses/LICENSE-2.0
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
private static final Set<String> pkPropertyIds = new HashSet<>(
0
import org.apache.beam.sdk.annotations.Experimental;
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 ma...
0
expected.app.allowedJobEnvironments = "^(foo|bar|zaa)$"; "-allowed_job_environments=^(foo|bar|zaa)$",
0
* Generates authentication header for the proxy host, if required, * based on the actual state of the HTTP authentication context. * public void process(final HttpRequest request, final HttpContext context)
0
* @param <T> Result type
0
if (clientConf.hasSasl()) {
0
this.bws = new HashMap<>(); HashMap<String,Set<SecurityErrorCode>> tables = new HashMap<>(); secCodes = new HashSet<>();
0
NUMERIC_DEFAULTS.put( BigInteger.class, BigInteger.ZERO ); NUMERIC_DEFAULTS.put( BigDecimal.class, BigDecimal.ZERO );
0
/* import org.apache.ambari.server.security.authorization.Users; import java.util.Collection; protected static final String PRIVILEGE_PRIVILEGE_ID_PROPERTY_ID = PrivilegeResourceProvider.PRIVILEGE_ID_PROPERTY_ID; protected static final String PRIVILEGE_PRINCIPAL_NAME_PROPERTY_ID = PrivilegeResourceProvider.PRINCIPA...
0
if (!result) { return (v instanceof Boolean) && (Boolean) v; return !(Boolean) v;
0
import org.apache.sshd.common.scp.ScpStreamResolverFactory; private ScpStreamResolverFactory scpStreamFactory; public ScpStreamResolverFactory getScpStreamResolverFactory() { return scpStreamFactory; } @Override public void setScpStreamResolverFactory(ScpStreamResolverFactory factory) { ...
0
import org.apache.excalibur.source.Source; Source source = DynamicSelectionList list = new DynamicSelectionList(datatype, null, xmlizer, sourceResolver, null); DOMBuilder dest = new DOMBuilder(); dest.startDocument(); dest.endDocument(); Document destDocument = ...
0
public MergeState nextMergeState(Connector connector, CurrentState master) throws Exception { if (verifyMergeConsistency(connector, master)) state = MergeState.MERGING; else log.info("Merge consistency check failed " + info.getRange()); private boolean verifyMergeConsiste...
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
EasyMock.expect(context.getClient()).andReturn(accumuloClient).anyTimes(); assertEquals(MergeState.WAITING_FOR_OFFLINE, stats.nextMergeState(accumuloClient, state)); assertEquals(MergeState.WAITING_FOR_CHOPPED, stats.nextMergeState(accumuloClient, state)); assertEquals(MergeState.WAITING_FOR_OFFLINE, st...
0
public class MBeanServerTracker extends ServiceTracker<MBeanServer, MBeanContainer> super(context, MBeanServer.class, null); public MBeanContainer addingService(ServiceReference<MBeanServer> reference) if ( server != null ) { MBeanContainer mBeanContainer = new MBeanContainer(ser...
0
import java.util.ArrayList; import org.apache.ambari.server.state.StackInfo; final AmbariMetaInfo mockAmbariMetaInfo = easyMockSupport.createNiceMock(AmbariMetaInfo.class); final StackInfo mockStackInfo = easyMockSupport.createNiceMock(StackInfo.class); final RepositoryInfo mockRepositoryInfo = easyMockSupp...
0
import org.apache.ambari.server.orm.entities.RepositoryVersionEntity; import org.apache.ambari.server.state.repository.ClusterVersionSummary; import org.apache.ambari.server.state.repository.VersionDefinitionXml; import org.junit.Before; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.Mocki...
0
package org.w3c.dom.svg; public interface SVGLinearGradientElement extends SVGGradientElement { public SVGAnimatedLength getX1( ); public SVGAnimatedLength getY1( ); public SVGAnimatedLength getX2( ); public SVGAnimatedLength getY2( ); }
1
import org.apache.felix.dependencymanager.test2.components.AspectAnnotation.ServiceAspect1; import org.apache.felix.dependencymanager.test2.components.AspectAnnotation.ServiceAspect2; import org.apache.felix.dependencymanager.test2.components.AspectAnnotation.ServiceAspect3; import org.apache.felix.dependencymanager.te...
0
import com.twitter.mesos.scheduler.TaskState;
0
import org.apache.sshd.common.session.Session;
0
private TaskStateMachine stateMachine; stateMachine = makeStateMachine("test", makeTask(false)); private TaskStateMachine makeStateMachine(String taskId, ScheduledTask task) { return new TaskStateMachine(taskId, taskId /* Job key */, task, isJobUpdating, workSink, taskTimeoutFilter, clock, INIT); ...
0
import java.io.InputStream; * @author <a href="mailto:a.saglimbeni@pro-netics.com">Alfio Saglimbeni</a> * @version CVS $Id: SQLTransformer.java,v 1.7 2003/07/18 14:46:30 gianugo Exp $ public static final String CLOB_ENCODING = "clob-encoding"; /** Encoding we use for CLOB field */ protected String clobEncodin...
0
import org.w3c.css.sac.InputSource; URL durl = doc.getURLObject(); durl, InputSource is = new InputSource(url.toString()); result.setUserAgentStyleSheet(result.parseStyleSheet(is, url, "all"));
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
* The category under which the Memory Usage Web Console Plugin * is listed. */ static final String CATEGORY = "Web Console"; /**
0
* {@link org.apache.beam.sdk.coders.VoidCoder}. We need this because Flink does not
0
private void validateExpiration(final Map<String, String> map, final long timeout) {
0
public synchronized static boolean isValidTablePropertyKey(String key) { if (validTableProperties == null) { validTableProperties = new HashSet<String>(); for (Property p : Property.values()) { if (!p.getType().equals(PropertyType.PREFIX) && p.getKey().startsWith(Property.TABLE_PREFIX.g...
0
* Copyright 2001-2006 The Apache Software Foundation
0
import java.util.Collection; void init(ClientSession session, String service, Collection<?> identities) throws Exception;
0
import java.io.File; final ProviderTestSuite testSuite = new ProviderTestSuite(new LocalProviderTestCase()); testSuite.addTests(FileNameTests.class); public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception return manager.toFileObject(testDir);
0
package com.twitter.mesos.scheduler.storage.stream; import com.twitter.mesos.scheduler.BaseSchedulerCoreImplTest; import com.twitter.mesos.scheduler.JobManager; import com.twitter.mesos.scheduler.storage.Storage; expect(persistenceLayer.fetch()).andReturn(null).times(2);
0
return Row.withSchema(getters.rowType()).addValues(fieldValues).build();
0
public FileName createName(final String path, final FileType type) protected void appendRootUri(final StringBuilder buffer, final boolean addPassword)
1
private static final long TIMEOUT = 30; private static final long LONG_TIMEOUT = 60;
0
import org.apache.http.nio.NHttpServerEventHandler; public class LoggingNHttpServiceHandler implements NHttpServerEventHandler { private final NHttpServerEventHandler handler; public LoggingNHttpServiceHandler(final NHttpServerEventHandler handler) { public void connected( final NHttpServerConne...
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
/* * $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...
0
private transient PersistenceBroker broker = null; public PersistenceFlow() { PBFactory factory = (PBFactory)getComponent(PBFactory.ROLE); broker = factory.defaultPersistenceBroker(); releaseComponent(factory); } public void doInsertEmployee() throws BindingException {
0
package org.apache.accumulo.cloudtrace.thrift;
0
@Override public String toString() { return "stack " + getStackId(); }
0
* Create a name filter containing the names of the files
0
enum MessageState { IDLE, HEADERS, ACK, BODY, COMPLETE }
0
private final Map<String, Object> map; this.map = new HashMap<String, Object>(); @Deprecated public synchronized void setHandlers(final Map<String, Object> map) { public synchronized void setObjects(final Map<String, Object> map) { for (Iterator<String> it = this.map.keySet().iterato...
0
import org.apache.commons.vfs2.impl.DefaultFileSystemManager; import org.apache.commons.vfs2.provider.FileProvider; // TODO: VFS-360 - Remove this manual registration of http4 once http4 becomes part of standard providers. boolean httpClient4Available = false; try { Class.forName("...
0
public class DaoUtils {
0
import org.apache.beam.sdk.values.Row; PCollection<Row> rows = compilePipeline(sql, pipeline, sqlEnv);
0
package org.apache.beam.sdk.options; import org.apache.beam.sdk.util.CredentialFactory; import org.apache.beam.sdk.util.GcpCredentialFactory; import org.apache.beam.sdk.util.InstanceBuilder;
0
if (PTransformTranslation.COMBINE_PER_KEY_TRANSFORM_URN.equals(
0
LOG.debug("setElement(\"{}\", \"{}\")", element.getTagName(), baseURI); LOG.debug("setElement({}, \"{}\")", element.getTagName(), baseURI);
0
package org.apache.atlas.typesystem.types; import org.apache.atlas.MetadataException; import org.apache.atlas.typesystem.ITypedStruct; import org.apache.atlas.typesystem.Struct;
0
public class MonitorInputStream extends BufferedInputStream { public MonitorInputStream(final InputStream in) { * public synchronized int available() throws IOException { if (finished.get()) { * public int read() throws IOException { if (finished.get()) { if (ch != EOF_CH...
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...
0
PCollection<T> input = p.apply(Create.of(Arrays.asList((T[]) users)) .withCoder((Coder<T>) AvroCoder.of(User.class)));
0
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
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
* * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
0
* <strong>NOTE:</strong> Caching of servlet: source is broken in some cases. See thread * http://news.gmane.org/find-root.php?group=gmane.text.xml.cocoon.devel&article=72801 private String location; private ServletConnection servletConnection; /* (non-Javadoc) * @see org.apache.excalibur.sour...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/bsf/src/java/org/apache/commons/jelly/tags/bsf/JPythonTagLibrary.java,v 1.1 2003/01/08 05:02:48 dion Exp $ * $Date: 2003/01/08 05:02:48 $ * $Id: JPythonTagLibrary.java,v 1.1 2003/01/08 05:02:48 dion Exp $
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/MultipleTests.java,v 1.12 2003/08/26 16:12:47 rleland Exp $ * $Revision: 1.12 $ * $Date: 2003/08/26 16:12:47 $ * @version $Revision: 1.12 $ $Date: 2003/08/26 16:12:47 $ valid...
0
List<String> lines = IOUtils.readLines(in); List<String> lines = IOUtils.readLines(in, "UTF-8"); List<String> lines = IOUtils.readLines(in);
0
public final class Messages { private Messages() { public static String getString(final String code) { * @param code The message code. * @param param The message parameter. public static String getString(final String code, final Object param) { return getString(code, new Object[] { param }...
1
import org.apache.avalon.framework.service.ServiceException; * @version CVS $Id: VelocityGenerator.java,v 1.8 2003/09/04 09:38:33 cziegeler Exp $ public class VelocityGenerator extends ServiceableGenerator } catch (ServiceException e) { this.manager.release(parser);
0
try { factory.checkAcceptability(m_configuration); } catch (UnacceptableConfiguration e) { + e.getMessage()); return false; } catch (MissingHandlerException e) { ...
0