Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.ambari.server.utils.VersionUtils; String agentVersion = register.getAgentVersion(); String serverVersion = ambariMetaInfo.getServerVersion(); if (!VersionUtils.areVersionsCompatible(serverVersion, agentVersion)) { LOG.warn("Received registration request from host with non compatible"...
0
if (entry.getName().equals("repository.xml") || entry.getName().equals("index.xml")) String repostr = url.toExternalForm(); if (repostr.endsWith("zip")) { repostr = "jar:".concat(repostr).concat("!/"); } else if (repostr.endsWith("....
0
log.warn("exceptionCaught({}) {}: {}", this, t.getClass().getSimpleName(), t.getMessage()); if (log.isDebugEnabled()) { log.debug("execeptionCaught(" + this + ") details", t); } log.warn(e.getClass().getSimpleName() + " while signal session " + toString() + " closed: " +...
0
* @version CVS $Id: NewJXPathBinding.java,v 1.2 2004/04/12 14:05:08 tim Exp $
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
import static org.easymock.EasyMock.createStrictMock; import org.apache.ambari.server.state.ConfigHelper; final ConfigHelper configHelper = injector.getInstance(ConfigHelper.class); configHelper.updateAgentConfigs(anyObject(Set.class)); expectLastCall().times(2); replay(configHelper); verify(clus...
0
* @param <I> Input type * @param <O> Output type
0
import org.apache.accumulo.core.iterators.SortedKeyValueIterator; import org.apache.accumulo.core.iterators.system.ColumnFamilySkippingIterator; ColumnFamilySkippingIterator cfsi = new ColumnFamilySkippingIterator(delIter); SortedKeyValueIterator<Key,Value> itr = iterEnv.getTopLevelIterator(IteratorUtil.lo...
0
public List<Long> findTaskIdsByStage(long requestId, long stageId) { TypedQuery<Long> query = entityManagerProvider.get().createQuery("SELECT hostRoleCommand.taskId " + "FROM HostRoleCommandEntity hostRoleCommand " + "WHERE hostRoleCommand.stage.requestId=?1 " + "AND hostRoleCommand.stage....
1
package cz.seznam.euphoria.flink.streaming.windowing; import cz.seznam.euphoria.core.client.dataset.windowing.WindowID; import cz.seznam.euphoria.flink.streaming.StreamingWindowedElement; import org.apache.flink.streaming.api.windowing.windows.Window; import java.util.Objects; public class AttachedWindow<GROUP, LABE...
0
import org.apache.batik.ext.awt.image.renderable.Filter;
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
public void testNoEventReceiver() throws Exception { this.eventManager.send(new Event1()); } public void testUnsubscribe() throws Exception { EventReceiver receiver = new EventReceiver(); this.eventManager.subscribe(receiver); assertEquals(0, receiver.receiveCount); ...
0
import org.apache.accumulo.core.data.TableId; ke = new KeyExtent(TableId.of(sa[0]), new Text(sa[1]), new Text(sa[2]));
0
* @version $Revision$
0
import static com.twitter.mesos.gen.ScheduleStatus.RESTARTING; public void testRestartShards() throws Exception { expectKillTask(2); control.replay(); buildScheduler(); scheduler.createJob(makeJob(OWNER_A, JOB_A, productionTask().setIsDaemon(true), 6)); changeStatus(Query.byJob(OWNER_A.role, JOB...
0
@SuppressWarnings("unchecked")
0
bundleSplitter.getBundleSizes(desiredNumBundles, this.getStartOffset(), this.getEndOffset())
0
* for the conversion. * if a conversion error occurs. An unlocalized pattern is used for the conversion. * if a conversion error occurs. An unlocalized pattern is used for the conversion. * @param pattern The conversion pattern * @param pattern The conversion pattern * for the ...
0
* <pre>{@code * --project=YOUR_PROJECT_ID * }</pre> * <pre>{@code * --output=[YOUR_LOCAL_FILE | gs://YOUR_OUTPUT_PREFIX] * }</pre> * <pre>{@code * --project=YOUR_PROJECT_ID * --stagingLocation=gs://YOUR_STAGING_DIRECTORY * --output=gs://YOUR_OUTPUT_PREFIX * }</pre> * <p> The default input is {@cod...
0
import io.gearpump.streaming.dsl.javaapi.JavaStream;
0
import org.apache.beam.sdk.extensions.sql.impl.interpreter.BeamSqlExpressionEnvironments; assertEquals( "aaa", expression .evaluate(NULL_ROW, NULL_WINDOW, BeamSqlExpressionEnvironments.empty()) .getValue()); assertNull( expression .evaluate(NULL_ROW, N...
0
List<ServiceTestInvocation> listInvocations = new ArrayList<>();
1
Map transformedInstructions = BundlePlugin.transformDirectives( instructions );
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 applic...
0
import org.apache.aurora.gen.AppcImage; import org.apache.aurora.gen.Image; import org.apache.aurora.gen.MesosContainer; import org.apache.aurora.gen.Mode; import org.apache.aurora.gen.Volume; import static org.apache.aurora.scheduler.configuration.ConfigurationManager.NO_CONTAINER_VOLUMES; true, tr...
0
import org.apache.beam.sdk.coders.StructuredCoder; public static class IntervalWindowCoder extends StructuredCoder<IntervalWindow> {
0
* Return a list of paths to files and dirs which are candidates for deletion from a given table, {@link RootTable#NAME} or {@link MetadataTable#NAME} * Fetch a list of paths for all bulk loads in progress (blip) from a given table, {@link RootTable#NAME} or {@link MetadataTable#NAME} * Fetches the references t...
0
* @version $Id: FileUploadBase.java,v 1.9 2004/10/11 05:06:33 martinc Exp $ if (!"post".equals(req.getMethod().toLowerCase())) { return false; }
0
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
0
public abstract static class Command {
0
import org.apache.accumulo.server.security.SecurityOperationImpl; SecurityOperation security = SecurityOperationImpl.getInstance(); SecurityOperationImpl.getInstance().deleteTable(SecurityConstants.getSystemCredentials(), tableInfo.tableId);
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 org.apache.beam.sdk.options.Validation; @Validation.Required
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
Map<String, TemporalInfo> temporalInfoMap = new HashMap<>();
1
public HttpMessageWriter<HttpRequest> create() { return new DefaultHttpRequestWriter(this.lineFormatter);
0
/* Generated By:JJTree&JavaCC: Do not edit this line. MiniParserConstants.java */ package Mini; public interface MiniParserConstants { int EOF = 0; int SINGLE_LINE_COMMENT = 7; int GT = 16; int LT = 17; int GEQ = 18; int LEQ = 19; int EQ = 20; int NEQ = 21; int NOT = 22; int FALSE = 23; int TRUE...
0
import java.nio.charset.StandardCharsets; import org.apache.sshd.common.util.GenericUtils; @Test public void testPutCharsWithNullOrEmptyValue() { Buffer buffer = new ByteArrayBuffer(Integer.SIZE); for (char[] chars : new char[][]{null, GenericUtils.EMPTY_CHAR_ARRAY}) { buffer.putCha...
0
AccumuloInputFormat.setConnectorInfo(job, getPrincipal(), getToken()); AccumuloOutputFormat.setConnectorInfo(job, getPrincipal(), getToken());
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOGGER = LoggerFactory.getLogger(JaasPasswordAuthenticator.class); LOGGER.error("Authentication failed with error", e);
0
repo.load();
0
* * * * it wraps. This implementation can cache the content either * 1) Synchronously. This means that the cached contents are checked for validity * * period in seconds, and optionally a cache key: * The second querystring parameter instructs that the cache key be extended with the string * This factory creat...
0
{ XMLPropertyListConfiguration copy = new XMLPropertyListConfiguration((HierarchicalConfiguration) config); StrictConfigurationComparator comp = new StrictConfigurationComparator(); assertTrue("Configurations are not equal", comp.compare(config, copy)); }
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.aurora.scheduler.resources.ResourceSlot;
0
List<ElementValuePairGen> out = new ArrayList<>(); evs = new ArrayList<>(); List<Attribute> newAttributes = new ArrayList<>(); List<Attribute> newAttributes = new ArrayList<>();
0
assertEquals(multiSet, synced);
0
package org.apache.felix.ipojo.runtime.core.services; public interface Service { public int count(); }
0
RandomAccessContent getRandomAccessContent(final RandomAccessMode mode) throws FileSystemException; FileContentInfo getContentInfo() throws FileSystemException; boolean isOpen();
0
* Copyright 2000-2009 The Apache Software Foundation
0
package org.apache.batik.anim.dom; import org.apache.batik.dom.svg.SVGMotionAnimatableElement;
0
import org.mozilla.javascript.Scriptable; Scriptable rootScope; return new JavaScriptExpression(language, expression, rootScope); } public Scriptable getRootScope() { return rootScope; } public void setRootScope(Scriptable rootScope) { this.rootScope = rootScope;
0
import java.util.List;
0
} if( localBuffer.size() == 0 ) { //If localBuffer is empty, then reset the timer lastDispatchTime = currTimeMS;
0
this.future = new BasicFuture<>(callback);
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists;
0
Preconditions.checkNotNull(inputWM); Preconditions.checkNotNull(inputWM); Preconditions.checkNotNull(inputWM); * Result of {@link #extractAndRelease}. */ public static class OldAndNewHolds { public final Instant oldHold; @Nullable public final Instant newHold; public OldAndNewHolds(...
0
import org.apache.accumulo.core.conf.DefaultConfiguration; import org.apache.accumulo.core.conf.SiteConfiguration; AccumuloConfiguration conf = SiteConfiguration.getInstance(DefaultConfiguration.getInstance());
0
import org.apache.hc.core5.http.HttpResponse; import org.apache.hc.core5.http.HttpStatus; /** * @since 5.0 */ public static boolean canResponseHaveBody(final String method, final HttpResponse response) { if ("HEAD".equalsIgnoreCase(method)) { return false; } final ...
0
return PaneInfo.NO_FIRING; return PaneInfo.NO_FIRING;
0
* @version $Id: AbstractContainerWidget.java,v 1.12 2004/05/07 16:43:42 mpo Exp $ public void addChild(Widget widget) { public boolean hasChild(String id) { public Widget getChild(String id) { return widgets.getWidget(id);
0
* @version CVS $Id: ProxyTransformer.java,v 1.10 2004/03/20 17:02:46 cziegeler Exp $ protected void processRequest() throws SAXException { } catch (MalformedURLException ex) { } catch (IOException ex) { } catch (SAXException se) { throw se; } catch (Exception ex)...
0
* @version CVS $Id: SourceDescriptionGenerator.java,v 1.3 2003/03/24 14:33:56 stefano Exp $ this.contentHandler.startPrefixMapping("", properties[i].getNamespace());
0
public void setTimeout(Short timeout) { this.timeout = timeout; }
0
import org.apache.http.conn.ConnectionRequest; import org.apache.http.impl.client.HttpClients; this.httpclient = HttpClients.custom().setConnectionManager(this.mgr).build();
0
* Standard authentication schemes supported by HttpClient.
0
package org.apache.commons.collections4.trie.analyzer; import org.apache.commons.collections4.trie.KeyAnalyzer; public class CharArrayKeyAnalyzer extends KeyAnalyzer<char[]> { /** A singleton instance of {@link CharArrayKeyAnalyzer}. */ /** The number of bits per {@link Character}. */ /** A bit mask where ...
0
try (PrintWriter file = new PrintWriter(new FileOutputStream(dir + class_name + ".html"))) { file.println("<HTML>\n" + "<HEAD><TITLE>Documentation for " + class_name + "</TITLE>" + "</HEAD>\n" + "<FRAMESET BORDER=1 cols=\"30%,*\">\n" + "<FRAMESET BORDER=1 rows=\"80%,*\">\n" ...
0
* Properties for type store graph */ public static final String TYPE_CATEGORY_PROPERTY_KEY = "type.category"; public static final String VERTEX_TYPE_PROPERTY_KEY = "type"; public static final String TYPENAME_PROPERTY_KEY = "type.name"; /**
0
logoutContext.putAll(Parameters.toProperties(par));
0
if ( file.equals( getOutputDirectory() ) ) { file.mkdirs(); } else { throw new FileNotFoundException( file.getPath() ); } analyzer.getJar().setManifest( analyzer.calcManifest() );
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
ArrayList<Text> rows = new ArrayList<>();
0
import org.apache.http.util.Asserts; Asserts.check(this.status.compareTo(IOReactorStatus.ACTIVE) <= 0, "I/O reactor has been shut down");
0
protected boolean syncEnabled = true; } else if (key.equals( "syncEnabled" )) { syncEnabled = Boolean.parseBoolean(value); dynamicConfigFileStr = value; public boolean getSyncEnabled() { return syncEnabled; }
0
import org.slf4j.LoggerFactory; LoggerFactory.getLogger(RenameTable.class).debug("Renamed table " + tableId + " " + oldTableName + " " + newTableName);
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
RequestStatus create(ResourceInstance resource, RequestBody requestBody) RequestStatus update(ResourceInstance resource, RequestBody requestBody) RequestStatus delete(ResourceInstance resource, RequestBody requestBody)
0
|| !fieldPresent( schema, ATTRIBUTES_FIELD, Schema.FieldType.map(VARCHAR.withNullable(false), VARCHAR)) return schema.hasField(field) && expectedType.equivalent( schema.getField(field).getType(), Schema.EquivalenceNullablePolicy.IGNORE);
0
* Session input buffer for non-blocking connections. boolean hasData(); int length();
0
// if nothing has matched and it is the last pipeline, then it's the right time // to throw an ResourceNotFoundException throw new ResourceNotFoundException("No pipeline matched request: " + env.getURIPrefix() + env.getURI());
0
// ~ just access the windows testifying their accessibility long firstWindowStart = assertOutput0(fs.subList(0, 4), 1000L, long secondWindowStart = assertOutput0(fs.subList(4, fs.size()), 1000L, private <F, S> long assertOutput0( assertOutput1(out.subList(0, 4), 1000L, "four", "one", "three"...
0
* {@code FilePersistenceManager} class.
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 org.apache.commons.vfs2.util.Os; import org.junit.Assume; if (Os.isFamily(Os.OS_FAMILY_WINDOWS)) { // We do not use newZipFile in the Assert message to avoid touching it before calling delete(). Assert.assertFalse("Could not delete file", newZipFile.delete(...
0
private String desiredStackId; // UPDATE * @return the desiredStackId */ public String getDesiredStackId() { return desiredStackId; } /** * @param desiredStackId the desiredStackId to set */ public void setDesiredStackId(String desiredStackId) { this.desiredStackId = desiredStackId; } ...
0
import org.apache.accumulo.core.metadata.schema.DataFileValue;
1
* @version CVS $Id: Web3Properties.java,v 1.2 2003/03/16 17:49:10 vgritsenko Exp $ }
0
class UnsupportedOperatorsVisitor extends SqlShuttle {
0
final DnsResolver dnsResolver) { this(socketFactoryRegistry, connFactory, null, dnsResolver, -1, TimeUnit.MILLISECONDS); } public PoolingHttpClientConnectionManager( final Registry<ConnectionSocketFactory> socketFactoryRegistry, final HttpConnectionFactory<SocketClie...
0
* @version CVS $Id: RequestModule.java,v 1.2 2003/03/16 17:49:12 vgritsenko Exp $
0
import org.apache.sshd.common.util.security.SecurityUtils;
0
* Optional, unary reference: No service required to be available for the * refernce to be satisfied. Only a single service is available through this * reference. OPTIONAL_UNARY("0..1"), * Mandatory, unary reference: At least one service must be available for * the reference to be satisfied....
0
/* * 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 ap...
1
* @version CVS $Id$
0
protected static final Random epochGen = new Random();
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
return getDH(new BigInteger(DHGroupData.getP1()), new BigInteger(DHGroupData.getG()));
0