Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @param access_flags the class flags * * * @throws IOException if a failure from reading from the bytes argument occurs * * @throws ClassFormatException if the signature is for Void * @param chopit * @param vars if (str.indexOf(old) != -1) { // `old' found in str...
0
options.put(Finder.NOT+Finder.PATH, "*CVS*"); // finds one in file and also one in dir as // CVS needs a file in dir for people to commonly have it checked out assertEquals(2, files.length);
0
* Whether the component supports rolling restart. * */ private boolean rollingRestartSupported; /** rollingRestartSupported = component.getRollingRestartSupported(); * Get whether the component supports rolling restart * * @return whether the component supports rolling restart */ @ApiModelP...
0
Configuration c = (Configuration) conf.clone(); * the original are completely detached. XMLConfiguration c = (XMLConfiguration) conf.clone();
0
* @version CVS $Id: Tokenizer.java,v 1.3 2004/03/28 14:28:04 antonio Exp $ * @deprecated Use methos from org.apache.commons.lang instead
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/compiler/ProcessingInstructionTest.java,v 1.6 2003/03/11 00:59:22 dmitri Exp $ * $Revision: 1.6 $ * $Date: 2003/03/11 00:59:22 $ * Copyright (c) 1999-2003 The Apache Software Foundatio...
0
import org.apache.beam.runners.core.StateNamespaces.WindowNamespace;
0
@Column(name = "authenticated_user_id") private Integer authenticatedUserId; public Integer getAuthenticatedUserId() { return authenticatedUserId; } public void setAuthenticatedUserId(Integer authenticatedUser) { this.authenticatedUserId = authenticatedUser; }
0
protected int keyCode; protected char keyChar; /** * The key location. */ protected int keyLocation; * @param lockState bitmask indicating which key locks were activated * @param keyCode the Java key code * @param keyChar the generated character * @param keyLocation the lo...
0
int dx = xCurrent - xStart; int dy = yCurrent - yStart; if (dx < 0) { dx = -dx; xStart = xCurrent; } if (dy < 0) { dy = -dy; yStart = yCurrent; } float scaleX...
0
package org.apache.batik.anim.dom;
0
package org.apache.beam.sdk.io.gcp.testing; import org.apache.beam.sdk.testing.FastNanoClockAndSleeper;
0
AccumuloRowInputFormat.setClientInfo(job, getClientInfo());
0
BeamRecord .withRecordType(BID_ADAPTER.getRecordType()) .addValues(BID_ADAPTER.getFieldsValues(BID1_EUR)) .build(); BeamRecord .withRecordType(BID_ADAPTER.getRecordType()) .addValues(BID_ADAPTER.getFieldsValues(BID2_EUR)) .build();
0
import org.apache.batik.bridge.resources.Messages; import org.apache.batik.ext.awt.image.renderable.Clip; import org.apache.batik.ext.awt.image.renderable.ClipRable8Bit; import org.apache.batik.ext.awt.image.renderable.Filter; Viewport oldViewport = ctx.getViewport(); ctx.setViewport(new ObjectBound...
0
* @deprecated (4.1) use {@link #setObjects(Map)}
0
Table table = metaStore.getTables().get("person"); Table table = metaStore.getTables().get("person"); Table table = metaStore.getTables().get("person"); Table table = metaStore.getTables().get("person");
0
/* * @author <a href="mailto:felix-dev@incubator.apache.org">Felix Project Team</a> */
0
private final String instanceId; this.instanceId = instanceId;
0
package org.apache.beam.runners.core.metrics; import java.io.Serializable; import org.apache.beam.sdk.metrics.MetricQueryResults; import org.apache.beam.sdk.metrics.MetricResults; /** * Abstract base class for all metric sinks. */ public abstract class MetricsSink<OutputT> implements Serializable{ private Metri...
0
* @return The connection URI. * @return The Properties. * @return The user name.
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 may not...
0
StructType structType = ts.defineStructType("ts", true, createRequiredAttrDef("a", DataTypes.INT_TYPE), Struct s = createStructWithEnum("ts");
0
* @since 2.4
0
* * * defined in the parent class. All users (based on username) share a single * * When a <code>getConnection(username, password)</code> request is processed * throwing an exception, or -1 to wait indefinitely. Will fail * throwing an exception, or -1 to wait indefinitely. Will fail protected Pool...
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
case EXACT : // TODO exact version handing break;
0
/* ==================================================================== * Copyright (c) 2001-2004 The Apache Software Foundation. All rights * @version $Revision: 1.11 $ $Date: 2004/01/14 21:34:30 $
0
import org.apache.atlas.TestOnlyModule; @Guice(modules = TestOnlyModule.class)
0
if ((m_type != null) && m_type.equalsIgnoreCase(Resource.VERSION))
0
String fileName = "build/encryptedInfo.xml"; String fileName = "build/kek"; outputDocToFile(document, "build/decryptedInfo.xml");
0
* Extension of {@link AbstractTestCollection} for exercising the {@link TransformedCollection}
0
implements SynchronousBundleListener, FrameworkListener, ServiceListener{
0
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; import org.apache.atlas.utils.AtlasJson; callAPIWithResource(API_VERSION, resource, null, ObjectNode.class); ObjectNode response = callAPIWithResource(API_STATUS, resource, null, ObjectNode.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 ...
0
@Override @Override @Override @Override
0
import org.apache.http.params.CoreConnectionPNames; * Creates an instance of this class. * <p> * The following HTTP parameters affect the initialization: * <p> * {@link CoreConnectionPNames#MAX_HEADER_COUNT} parameter determines * the maximum HTTP header count allowed. If set to a positiv...
0
* @param cursor the parser cursor containing the current position and * CharArrayBuffer buffer, * @param cursor the parser cursor containing the current position and * @param cursor the parser cursor containing the current position and
0
c.accept("rp:" + k.getRowData().subSequence(0, 2)); c.accept("fp:" + k.getColumnFamilyData().subSequence(0, 2)); c.accept("qp:" + k.getColumnQualifierData().subSequence(0, 2));
0
import javax.xml.XMLConstants; @SuppressWarnings("unchecked") private static final ThreadLocal<DocumentBuilder> tl[][] = new ThreadLocal[2][2]; static { tl[0][0] = new MyThreadLocal(false, false); tl[0][1] = new MyThreadLocal(false, true); tl[1][0] = new MyThreadLocal(true, fals...
0
if(getProcessMyRequests() == true) {
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
* Copyright 2000-2009 The Apache Software Foundation
0
* Represents a disposable system resource used for handling * cached response bodies. /** * Returns an {@link InputStream} from which the response * body can be returned. * @throws IOException */ /** * Returns the length in bytes of the response body. */ /** * Indicates ...
0
* * * "IBM367", "cp367", "ascii7", "ANSI_X3.4-1986", "us", "646", "iso_646.irv:1983",
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/functions/ConstructorFunction.java,v 1.5 2002/04/26 03:28:37 dmitri Exp $ * $Revision: 1.5 $ * $Date: 2002/04/26 03:28:37 $ import org.apache.commons.jxpath.JXPathException; * @version $R...
0
import org.apache.http.entity.ByteArrayEntity; CacheEntry cacheEntry = new CacheEntry(new Date(), new Date(), new ProtocolVersion("HTTP",1,1), headers, new ByteArrayEntity(new byte[] {}), 200, "OK"); CacheEntry cacheEntry = new CacheEntry(new Date(), new Date(), ...
0
protected ClientConnectionOperator getOperator() {
0
if (transform.getNumShards() > 0) { last = last.mapToPair(new PairFunction<T, T, Void>() { @Override public Tuple2<T, Void> call(T t) throws Exception { return new Tuple2<>(t, null); }}) .repartition(transform.getNumShards()) ...
0
* $Id: VersionRange.java 46 2008-01-17 19:05:21Z peter.kriens@aqute.biz $ static String V = "[0-9]+(\\.[0-9]+(\\.[0-9]+(\\.[a-zA-Z0-9_-]+)?)?)?"; static Pattern RANGE = Pattern.compile("(\\(|\\[)\\s*(" + V + ")\\s*,\\s*(" + V + ")\\s*(\\)|\\])"); low = new Version(m.group(2)); high = new Version(m.group(6))...
0
/** literal value. */ /** * Create the node given an id. * * @param id node id. */ /** * Create a node with the given parser and id. * * @param p a parser. * @param id node id. */ /** {@inheritDoc} */ * * @param obj the object to evaluate against....
0
private synchronized void startListeningForLogService() {
0
final String method = getMethod(); final ProtocolVersion ver = getProtocolVersion(); final URI uri = getURI();
0
HashSet<Text> splits1 = new HashSet<>(env.getConnector().tableOperations().listSplits(indexTableName)); HashSet<Text> splits2 = new HashSet<>(env.getConnector().tableOperations().listSplits(tmpIndexTableName)); HashMap<String,String> props1 = new HashMap<>(); HashMap<String,String> props2 = new HashMap<...
1
private static final String AMS_SITE = "ams-site"; private static final String AMS_MODE = "timeline.metrics.service.operation.mode"; private static final String AMS_HBASE_SITE = "ams-hbase-site"; private static final String HBASE_ROOTDIR = "hbase.rootdir"; boolean isDistributed = false; Con...
0
import static org.apache.beam.sdk.io.common.IOITHelper.getHashForRecordCount; return getHashForRecordCount(rowCount, EXPECTED_HASHES);
0
import org.apache.excalibur.source.Source; public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String src, Parameters parameters) Source source = null; try { source = resolver.resolveURI(formSource); Form form = formManager.createForm(source); ...
0
import org.apache.accumulo.core.client.impl.Tables; import org.apache.accumulo.core.master.state.tables.TableState; import org.apache.accumulo.master.Master; private Master master; public ReplicationMetrics(Master master) throws MalformedObjectNameException, AccumuloException, AccumuloSecurityException { this.m...
1
if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) {
0
import java.nio.charset.StandardCharsets; import org.apache.hc.core5.annotation.NotThreadSafe; import org.apache.hc.core5.http.NameValuePair; import org.apache.hc.core5.http.entity.ContentType; import org.apache.hc.core5.http.entity.StringEntity; charset != null ? charset : StandardCharsets.ISO_8859_1),...
0
import com.google.common.collect.ImmutableMap; expect(storageUtil.quotaStore.fetchQuotas()) .andReturn(ImmutableMap.of("steve", Quotas.NO_QUOTA));
0
import java.util.Arrays; import java.util.List; * Project types which this plugin supports. * * @parameter */ private List supportedProjectTypes = Arrays.asList( new String[] { "jar", "bundle" } ); /** if ( !supportedProjectTypes.contains( project.getPackaging() ) ) ...
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
/* /** * Checks case when there are 2 cluster stack versions present (CURRENT and OUT_OF_SYNC), * and we add a new host to cluster. On a new host, both CURRENT and OUT_OF_SYNC host * versions should be present */
0
import org.apache.accumulo.harness.UnmanagedAccumuloIT; public class ConstraintIT extends UnmanagedAccumuloIT {
0
LoggingHttp1StreamListener.INSTANCE);
0
import org.apache.ambari.server.actionmanager.CustomActionDBAccessor; import org.apache.ambari.server.actionmanager.CustomActionDBAccessorImpl; bind(CustomActionDBAccessor.class).to(CustomActionDBAccessorImpl.class);
0
import org.mockito.junit.MockitoJUnitRunner;
0
* Copyright 2000-2009 The Apache Software Foundation
0
public class StrokeLinejoinFactory extends AbstractIdentifierFactory implements SVGValueConstants { values.put(CSS_MITER_VALUE, MITER_VALUE); values.put(CSS_ROUND_VALUE, ROUND_VALUE); values.put(CSS_BEVEL_VALUE, BEVEL_VALUE); return CSS_STROKE_LINEJOIN_PROPERTY;
0
StateTags.combiningValueFromInputInternal( "sumInteger", VarIntCoder.of(), new Sum.SumIntegerFn());
0
import java.util.Map; Map<TupleTag<?>, PValue> expand();
0
package org.apache.beam.sdk.extensions.sql.meta.provider.text; protected BeamTextTable(BeamRecordSqlType beamRecordSqlType, String filePattern) { super(beamRecordSqlType);
0
/** * Copyright 2008, Yahoo! 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 t...
0
throw new IllegalArgumentException("invalid option " + RADIX_OPTION + ":" + options.get(RADIX_OPTION));
1
public void prepare() { storage.prepare(); } @Override
0
import org.apache.accumulo.core.data.NamespaceId; import org.apache.accumulo.core.data.TableId; private final TableId tableId; private final NamespaceId namespaceId; public CompactRange(NamespaceId namespaceId, TableId tableId, byte[] startRow, byte[] endRow, throw new AcceptableThriftTableOperationExceptio...
0
import com.google.common.collect.ImmutableMultimap; import org.apache.aurora.scheduler.sla.SlaGroup.GroupType; import static org.apache.aurora.scheduler.sla.MetricCalculator.MetricCategory.JOB_UPTIMES; import static org.apache.aurora.scheduler.sla.MetricCalculator.MetricCategory.MEDIANS; import static org.apache.aurora...
0
public CopyOnAccessInMemoryStateInternals<K> commit() {
0
import org.springframework.beans.factory.support.*; * @param element Can be null. * @param info ConfigurationInfo. * @param registry BeanDefinitionRegistry. * @param reader Can be null. * @param resourceLoader ResourceLoader. * @throws Exception from called c...
0
package org.apache.felix.cm.impl.persistence; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import org.apache.felix.cm.impl.CaseInsensitiveDictionary; import org.apache.felix.cm.impl.Factory; import org.apache.felix.cm.impl.SimpleFilter; public class Cachi...
0
@SuppressWarnings("Finally")
0
assertEquals("Mismatched suffling selected for current=" + expected + ", available=" + available, expected, SftpVersionSelector.CURRENT.selectVersion(expected, available)); final int fixedValue = 7365; testVersionSelector(SftpVersionSelector.Utils.fixedVersionSele...
0
/** * Copyright 2008, Yahoo! 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 t...
0
Copyright 2003,2005 The Apache Software Foundation import org.apache.batik.ext.awt.image.spi.ImageWriter; import org.apache.batik.ext.awt.image.spi.ImageWriterRegistry; OutputStream out = new FileOutputStream(imgFile); try { saveImage(img, out); } finally { out.close...
0
import org.apache.http.nio.reactor.SessionInputBuffer; import org.apache.http.nio.reactor.SessionOutputBuffer; this.requestParser = createRequestParser(this.inbuf, requestFactory, params); this.responseWriter = createResponseWriter(this.outbuf, params); protected NHttpMessageParser createRequestPars...
0
try (AccumuloClient client = this.createClient()) {
0
import org.apache.beam.sdk.io.fs.MatchResult.Metadata; Metadata fileMetadata = FileSystems.matchSingleFileSpec(filename); String schemaA = AvroUtils.readMetadataFromFile(fileMetadata.resourceId()).getSchemaString(); String schemaB = AvroUtils.readMetadataFromFile(fileMetadata.resourceId()).getSchemaString()...
0
nodeRenderContext.setTransform(usr2dev); this.usr2dev = usr2dev; //nodeRenderContext.setTransform(usr2dev);
0
package org.apache.accumulo.core.cryptoImpl;
0
import org.apache.xml.security.utils.XMLUtils; DocumentBuilder documentBuilder = XMLUtils.createDocumentBuilder(false);
0
@Override @Override
0
public ServletInfo(final ResourceInfo resource)
0
import org.apache.atlas.AtlasErrorCode; import org.apache.atlas.model.typedef.AtlasBaseTypeDef; AtlasAttributeDef multiValuedAttribMinMax = new AtlasAttributeDef(); AtlasAttributeDef multiValuedAttribMin = new AtlasAttributeDef(); AtlasAttributeDef multiValuedAttribMax = new AtlasAttribute...
0
import org.apache.flink.api.common.functions.GroupCombineFunction; * Flink {@link org.apache.flink.api.common.functions.GroupCombineFunction} for executing a public class FlinkPartialReduceFunction<K, VI, VA> implements GroupCombineFunction<KV<K, VI>, KV<K, VA>> {
0
Buffer buf = ByteArrayBuffer.getCompactClone(data, off, len);
0
public class UncommittedBundleOutputManager implements OutputManager { public static UncommittedBundleOutputManager create( return new UncommittedBundleOutputManager(outputBundles); public UncommittedBundleOutputManager(Map<TupleTag<?>, UncommittedBundle<?>> bundles) {
0
else if (Tables.getTableState(context, tableId) == TableState.OFFLINE) Tables.getPrintableTableInfoFromId(context, tableId), tse);
0
import org.apache.ambari.server.agent.CommandRepository; import org.apache.ambari.server.controller.spi.SystemException; String repoInfoString; try { repoInfoString = repoVersionHelper.getRepoInfoString(cluster, component, host); } catch (SystemException e) { throw new RuntimeException...
0