Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.beam.sdk.transforms.OldDoFn; * Returns a {@code Combine.Context} that wraps a {@code OldDoFn.ProcessContext}. public static Context createFromProcessContext(final OldDoFn<?, ?>.ProcessContext c) {
0
import java.util.Set; import org.apache.accumulo.test.functional.ConfigurableMacIT; public class AuditMessageIT extends ConfigurableMacIT { for (MiniAccumuloCluster.LogWriter lw : getCluster().getLogWriters()) { for (File file : getCluster().getConfig().getLogDir().listFiles()) { conn = getConnector(); ...
0
assertEquals(13, allServices.size());
0
import org.apache.beam.sdk.coders.AtomicCoder; import org.apache.beam.sdk.coders.Coder; import org.apache.beam.sdk.coders.CoderException;
0
assertTrue(ScanState.RUNNING.equals(scan.getState()) || ScanState.QUEUED.equals(scan.getState()));
0
import java.util.Collections; return Collections.EMPTY_LIST;
0
import org.apache.accumulo.core.security.tokens.PasswordToken;
0
LOG.debug("Scheduler properties: \n{}", properties); LOG.debug("Using quartz properties: {}", properties);
1
import org.apache.excalibur.source.SourceResolver; * @version CVS $Id: SitemapSource.java,v 1.13 2003/10/19 13:59:21 cziegeler Exp $ /** SourceResolver (for the redirect source) */ private SourceResolver sourceResolver; if ( this.sourceResolver == null ) { this.sourceRe...
0
@Override
0
import org.apache.ambari.server.controller.spi.SystemException; import org.apache.ambari.server.state.Host; String getPublicHostName(String clusterName, String hostName); * Get cluster host info given the host name * @param clusterName * @param hostName the host name * @return the host info {@link Host}...
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
* @version $Id$
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.junit.Before; import org.junit.Test; public class TestDefaultConfigurationKey @Before pu...
0
protected volatile GenericObjectPool<Connection> connectionPool = null;
0
import org.apache.beam.sdk.annotations.Experimental;
0
private String baseURI; public ResolverHttp(String uri, String baseURI) { this.baseURI = baseURI; public ResourceResolverLookup canResolve(String uri, String baseURI) { if (uri == null) { return null; } if (pattern.matcher(uri).matches() || (baseURI != null && pat...
0
* @param values The source values - ignored if {@code null}
0
* (Sandbox) A wrapper to an FileObject to get a {@link javax.mail.internet.SharedInputStream}. private SharedRandomContentInputStream(final Set<SharedRandomContentInputStream> createdStreams, final FileObject fo, final long fileStart, final long fileEnd, ...
0
4, false);
0
public void accept( final Visitor v ) {
0
public void exception(final IOSession session, final Exception cause) { streamMultiplexer.onException(cause); } @Override
0
private final BasicAuthTokenExtractor authTokenExtractor; public RequestBasicAuth() { super(); this.authTokenExtractor = new BasicAuthTokenExtractor(); } context.setAttribute("creds", this.authTokenExtractor.extract(request));
0
* @since 1.6
0
* --tempLocation=gs://YOUR_TEMP_DIRECTORY
0
// Our injected dependency manager
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatListList.java,v 1.3 2003/08/31 17:28:38 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowle...
0
* @version CVS $Id: ContinuationsManager.java,v 1.5 2003/08/26 09:05:15 mpo Exp $ * @param disposer a <code>ContinuationsDisposer</code> instance to called when * the continuation gets cleaned up. int timeToLive, ...
0
// So this: if (!dfs.setSafeMode(SafeModeAction.SAFEMODE_GET)) return (Boolean) setSafeMode.invoke(dfs, get);
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
* 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 class ClientH2StreamMultiplexer extends AbstractH2StreamMultiplexer { public ClientH2StreamMultiplexer( final H2StreamListener streamListener) { public ClientH2StreamMultiplexer( public ClientH2StreamMultiplexer( H2StreamHandler createLocallyInitiatedStream( final H2Stream...
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
TableState tableState = TableManager.getInstance().getTableState(table); if (tableState == null) return null; if (tableState.equals(TableState.ONLINE))
0
import org.apache.accumulo.core.clientImpl.lexicoder.AbstractLexicoderTest;
0
* @version $Revision: 1.14 $ $Date$ throw new SQLNestedException("Cannot get a connection, pool error " + e.getMessage(), e);
0
@Override @Override
0
/** * Sets if this node is visible or not depending on the specified value. * Don't fire a graphicsNodeChange event because this doesn't really * effect us (it effects our children through CSS inheritence). * * @param isVisible If true this node is visible */ public void setVisible...
0
package org.apache.ambari.server.controller.jdbc;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/functions/MethodFunction.java,v 1.8 2003/02/07 00:51:41 dmitri Exp $ * $Revision: 1.8 $ * $Date: 2003/02/07 00:51:41 $ import java.lang.reflect.InvocationTargetException; import org.apache...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/PropertyUtils.java,v 1.12 2001/09/19 13:58:38 craigmcc Exp $ * $Revision: 1.12 $ * $Date: 2001/09/19 13:58:38 $ * @version $Revision: 1.12 $ $Date: 2001/09/19 13:58:38 $ Int...
0
import org.apache.accumulo.core.clientImpl.ClientContext; import org.apache.accumulo.core.clientImpl.ServerClient; import org.apache.accumulo.core.clientImpl.Table; import org.apache.accumulo.core.clientImpl.TabletLocator; import org.apache.accumulo.core.clientImpl.TabletLocator.TabletLocation; import org.apache.accumu...
0
* $Header: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/beanshell/JellyInterpreter.java,v 1.1 2002/03/07 02:46:04 jstrachan Exp $ * $Date: 2002/03/07 02:46:04 $ * $Id: JellyInterpreter.java,v 1.1 2002/03/07 02:46:04 jstrachan Exp $ import org.apache.commons.jelly.JellyContext; /** I...
0
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; private final Logger log = LogManager.getLogger(getClass());
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
import org.apache.accumulo.core.client.admin.SamplerConfiguration; @Override public void setSamplerConfiguration(SamplerConfiguration samplerConfig) {} @Override public SamplerConfiguration getSamplerConfiguration() { return null; } @Override public void clearSamplerConfiguration() {}
1
package org.w3c.dom.svg; public interface SVGGlyphElement extends SVGElement, SVGStylable { }
1
import com.google.cloud.dataflow.sdk.transforms.DoFn; protected final DoFn<?, KV<K, VO>>.ProcessContext context; DoFn<?, KV<K, VO>>.ProcessContext context, context.windowingInternals().outputWindowedValue(
0
* The {@link UpgradeCheckDescription} is used to provide information about an upgrade public class UpgradeCheckDescription { * The default key to use when creating a new {@link UpgradeCheckDescription} failure. public static final String DEFAULT = "default"; /** * All of the instantiated {@link UpgradeCheck...
0
// Spec says we should return null when resources not found, // even though ClassLoader.getResources() returns empty enumeration. Enumeration e = getFramework().getBundleResources(this, name); return ((e == null) || !e.hasMoreElements()) ? null : e;
1
@Override @Override
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/impl/ScriptBlock.java,v 1.11 2003/01/24 05:26:13 morgand Exp $ * $Revision: 1.11 $ * $Date: 2003/01/24 05:26:13 $ * $Id: ScriptBlock.java,v 1.11 2003/01/24 05:26:13 morgand Exp $ * @versi...
0
import org.apache.http.params.CoreConnectionPNames; import org.apache.http.params.CoreProtocolPNames; .setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 5000) .setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, 8 * 1024) .setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION...
0
synchronized (this) { // remove logs related to minor compacting data candidates.removeAll(otherLogs); // remove logs related to tablets in memory data candidates.removeAll(currentLogs); // remove logs related to minor compaction file being added to the metadata table candidates....
0
public BeamSqlPrimitive<Boolean> evaluate(BeamSqlRow inputRow) { Object leftValue = operands.get(0).evaluate(inputRow).getValue(); Object rightValue = operands.get(1).evaluate(inputRow).getValue();
0
* Copyright 1999-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 ...
1
* cluster id protected Long clusterId; public Long getClusterId() { return clusterId;
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
import org.apache.hadoop.metadata.web.util.Servlets; Assert.assertNotNull(response.get(Servlets.REQUEST_ID)); JSONObject results = response.getJSONObject(Servlets.RESULTS); Assert.assertNotNull(response.get(Servlets.REQUEST_ID)); Assert.assertNotNull(response.get(Servlets.REQUEST_ID)); ...
0
import org.apache.accumulo.harness.SharedMiniClusterIT; public class CleanUpIT extends SharedMiniClusterIT {
0
// Check if the system tmp dir exists File tmp = new File(System.getProperty("java.io.tmpdir")); if (tmp != null && ! tmp.exists()) { tmp.mkdirs(); }
0
private final HttpServletRequest request;
0
TypeSystem.getInstance().getDataType(ClassType.class, i.dataType().getName());
0
* @version CVS $Id: XSPRequestHelper.java,v 1.1 2004/03/10 12:58:05 stephan Exp $
0
import org.apache.commons.lang.StringEscapeUtils; * @version CVS $Id: SQLTransformer.java,v 1.19 2004/03/28 14:28:04 antonio Exp $ substitute = StringEscapeUtils.escapeSql(substitute); value = StringEscapeUtils.escapeSql(value); value = StringUtils.replace( value, "\\", ...
0
// Don't actually close the connection if in a transaction. The // connection will be closed by the transactionComplete method. super.close(); super.close(); // way to report the error.
0
throw new ConfigurationException(e.getMessage(), e);
0
/** Pattern for PASV mode responses. Groups: (n,n,n,n),(n),(n) */ private static final java.util.regex.Pattern __PARMS_PAT; __PARMS_PAT = java.util.regex.Pattern.compile( "(\\d{1,3},\\d{1,3},\\d{1,3},\\d{1,3}),(\\d{1,3}),(\\d{1,3})"); java.util.regex.Matcher m = __PARMS_PAT.match...
0
import org.apache.aurora.common.testing.easymock.EasyMockTest;
0
* * * * @version $Revision: 1.10 $ /** */ //------------------------------------------------------------------------- /**
1
import org.apache.commons.bcel6.Const; super(Const.CONSTANT_Long);
0
import java.util.Collection; import org.apache.ambari.server.orm.entities.RepositoryVersionEntity; import org.apache.ambari.server.orm.entities.ServiceComponentDesiredStateEntity; import org.apache.ambari.server.state.UpgradeState; /** * {@inheritDoc} */ @Override public boolean isRepositoryVersionCorrect(...
0
// Force the descriptor version (since 1.4.1) public static final String COMPONENT_DS_SPEC_VERSION = "specVersion"; // Specification version identifier for SCR 1.0 (R 4.1) public static final String COMPONENT_DS_SPEC_VERSION_10 = "1.0"; // Specification version identifier for SCR 1.1 (R 4.2) p...
0
import java.util.concurrent.CopyOnWriteArrayList; private List<DiskInfo> disksInfo = new CopyOnWriteArrayList<DiskInfo>();
0
runTMP = cl.loadClass("org.apache.accumulo.server.init.Initialize");
0
@Override @Override @Override @Override
0
import org.apache.cocoon.portal.event.coplet.AbstractCopletInstanceEvent; extends AbstractCopletInstanceEvent {
0
import org.apache.accumulo.core.client.AccumuloClient; AccumuloClient conn = AccumuloClient.builder().usingClientInfo(getClientInfo())
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$ $Date$
0
/** * Test the <code>flush()</code> method. * @throws Exception */ @Test public void testFlush() throws Exception { try (ClosedOutputStream cos = new ClosedOutputStream()) { cos.flush(); fail("flush()"); } catch (final IOException e) { // ex...
0
return SVGValueConstants.CSS_FILL_PROPERTY; return new CSSOMReadOnlyValue (new ImmutableRGBColor(new CSSOMReadOnlyValue(SVGValueConstants.NUMBER_0), new CSSOMReadOnlyValue(SVGValueConstants.NUMBER_0), new CSSOMReadOnlyValue(SVGValueCons...
0
Config amsEnv = cluster.getDesiredConfigByType(AMS_ENV); if (amsHbaseEnv != null) { Map<String, String> amsHbaseEnvProperties = amsEnv.getProperties(); String content = amsHbaseEnvProperties.get("content"); Map<String, String> newProperties = new HashMap<>(); ...
0
<T> OutputReceiver<T> get(TupleTag<T> tag);
0
.setSoTimeout(params.getIntParameter(CoreConnectionPNames.SO_TIMEOUT, 0)) .setSoReuseAddress(params.getBooleanParameter(CoreConnectionPNames.SO_REUSEADDR, false)) .setSoKeepAlive(params.getBooleanParameter(CoreConnectionPNames.SO_KEEPALIVE, false)) .setSoL...
0
import org.apache.cocoon.util.AbstractLogEnabled; * @version $Id$ implements CronJob, Serviceable {
0
* A restricted implementation of {@link Map.Entry} that prevents * the {@link Map.Entry} contract from being broken. * @version $Id$
0
static final String SUCCESSFUL_OPERATION = "Successful operation"; static final String REQUEST_ACCEPTED = "Request is accepted, but not completely processed yet"; static final String INVALID_ARGUMENTS = "Invalid arguments"; static final String CLUSTER_NOT_FOUND = "Cluster not found"; static final String CLUST...
0
// TODO(wfarner): Provide status information about cron jobs here. try { .setMessage("Tasks will be killed."); } catch (ScheduleException e) { response.setResponseCode(ResponseCode.INVALID_REQUEST) .setMessage(e.getMessage());
0
public Bridge getInstance(){ return this; }
0
* Implementation of the {@link DynamicPropertyHandler} interface that provides * access to attributes of a {@link PageScopeContext}.
1
import static org.apache.ambari.server.events.AlertDefinitionEventType.CREATE; import org.apache.ambari.server.events.AlertDefinitionEventType; import org.apache.ambari.server.events.AlertDefinitionsAgentUpdateEvent; public class AlertDefinitionsHolder extends AgentHostDataHolder<AlertDefinitionsAgentUpdateEvent> { 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
* @version CVS $Id: DefaultPortalComponentManager.java,v 1.2 2003/10/06 15:22:36 vgritsenko Exp $ if (this.manager != null) { while (i.hasNext()) { this.rendererSelector.release((Component) i.next()); this.manager.release((Component)this.copletFactory); ...
0
getTabletServer().getFileSystem(), tableConfiguration, sc, ic, context); tableConfiguration, context); MajorCompactionReason.USER, tableConfiguration, context);
0
* @version CVS $Id: GIFSourceInspector.java,v 1.5 2003/09/24 22:34:53 cziegeler Exp $ int w1 = (buf[6] & 0xff) | (buf[6] & 0x80); int w2 = (buf[7] & 0xff) | (buf[7] & 0x80); int h1 = (buf[8] & 0xff) | (buf[8] & 0x80); int h2 = (buf[9] & 0xff) | (buf[9] & 0x80);
0
import com.google.gson.Gson; import com.google.inject.Scopes; import com.google.inject.assistedinject.FactoryModuleBuilder; import com.google.inject.persist.jpa.JpaPersistModule; import org.apache.ambari.server.configuration.Configuration; import org.apache.ambari.server.state.*; import org.apache.ambari.server.state.c...
0
import com.twitter.aurora.gen.storage.storageConstants; new Transaction(ImmutableList.copyOf(ops), storageConstants.CURRENT_SCHEMA_VERSION));
0
package org.apache.bcel.generic; import org.apache.bcel.Const; import org.apache.bcel.ExceptionConst;
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