Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.ambari.server.configuration.Configuration; @Inject private Configuration configs; int maxTaskTimeout = Integer.parseInt(configs.getDefaultAgentTaskTimeout(false)); if(maxTaskTimeout < actionContext.getTimeout()) { commandParams.put(COMMAND_TIMEOUT, Integer.toString(maxTaskTimeo...
0
* Copyright (c) 2004 The Apache Software Foundation. All rights
0
import org.w3c.css.sac.SiblingSelector;
0
import org.apache.beam.sdk.testing.ValidatesRunner; @Category(ValidatesRunner.class) @Category(ValidatesRunner.class) @Category(ValidatesRunner.class)
0
return clone();
0
protected final byte type; public static final ObjectType OBJECT = ObjectType.getInstance("java.lang.Object"); public static final ObjectType CLASS = ObjectType.getInstance("java.lang.Class"); public static final ObjectType STRING = ObjectType.getInstance("java.lang.String"); public static final Obj...
0
package org.apache.batik.bridge; import org.apache.batik.gvt.font.GVTFontFamily;
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 ...
1
String qName = (prefix == null || prefix.length() == 0) ? tag : prefix + ":" + tag;
0
import org.apache.accumulo.server.AccumuloServerContext; private final AccumuloServerContext context; * @param context * the collection server's context GarbageCollectWriteAheadLogs(AccumuloServerContext context, VolumeManager fs, boolean useTrash) throws IOException { this.context = context; ...
1
import org.apache.aurora.scheduler.offers.HostOffer;
0
@SuppressWarnings({"rawtypes", "unchecked"})
0
readWriteLock.writeLock().lock(); try { this.configGroupEntity.setGroupName(name); } finally { readWriteLock.writeLock().unlock(); } readWriteLock.writeLock().lock(); try { this.configGroupEntity.setTag(tag); } finally { readWriteLock.writeLock().unlock(); } ...
0
import org.apache.atlas.AtlasServiceException; @Test(expectedExceptions = AtlasServiceException.class)
0
/** * Makes any necessary but nonexistent parent directories for a given File. If the parent directory cannot be * created then an IOException is thrown. * * @param file * file with parent to create, must not be {@code null} * @throws NullPointerException * ...
0
import java.util.Arrays; import java.util.concurrent.ExecutionException; /** Test {@code FlatMap} operator's integration with beam. */ final ListDataSource<Integer> input = ListDataSource.unbounded(Arrays.asList(1, 2, 3), Arrays.asList(2, 3, 4)); MapElements.of(flow.createInput(input)).using(i -> i + 1)...
0
package org.apache.xml.security.algorithms.encryption.implementations.BC; import org.apache.xml.security.utils.EncryptionConstants; /** * * @author $Author$ */ public class BlockEncryptionImpl_AES128_BC extends BlockEncryptionImpl { public int engineGetIvLength() { return 16; } public String getImplement...
0
int indexOfHash = line.indexOf('#'); if (indexOfHash >= 0) { line = line.substring(0, indexOfHash); } line = line.trim();
0
* @version $Revision$
0
import org.apache.accumulo.core.clientImpl.AcceptableThriftTableOperationException; import org.apache.accumulo.core.clientImpl.Namespace; import org.apache.accumulo.core.clientImpl.Table; import org.apache.accumulo.core.clientImpl.thrift.TableOperation; import org.apache.accumulo.core.clientImpl.thrift.TableOperationEx...
0
import org.apache.cocoon.components.expression.ExpressionContext; import org.apache.cocoon.template.jxtg.environment.ExecutionContext; import org.apache.cocoon.template.jxtg.script.Invoker; import org.apache.cocoon.xml.XMLConsumer; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; public Event ...
0
import org.apache.atlas.repository.graphdb.janus.migration.RelationshipCacheGenerator; import org.apache.atlas.v1.typesystem.types.utils.TypesUtil; import static org.apache.atlas.model.typedef.AtlasRelationshipDef.PropagateTags.ONE_TO_TWO; import static org.apache.atlas.model.typedef.AtlasRelationshipDef.PropagateTags....
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 $Id: SourceRepository.java,v 1.6 2004/03/27 22:01:22 unico Exp $
0
node -> node.getTransform() instanceof PAssert.GroupThenAssert || node.getTransform() instanceof PAssert.GroupThenAssertForSingleton || node.getTransform() instanceof PAssert.OneSideInputAssert;
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.ambari.logsearch.config.api.ShipperConfigElementDescription; import org.apache.ambari.logsearch.config.api.ShipperConfigTypeDescription; @ShipperConfigTypeDescription( name = "Fields", description = "Describes a the fields which's value should be met in order to match a filter to an input elem...
0
int type = buffer.getUByte(); int type = buffer.getUByte(); int type = buffer.getUByte(); int type = buffer.getUByte(); int type = buffer.getUByte(); attrs.type = buffer.getUByte(); buffer.putByte((byte) attributes.type); int type = buffer.getUByte...
0
private static final InvocationHandler stub = new InvocationHandler() { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return null; } }; public void testCreateConnection() { assertNotNull(ProxyFactory.instance().createConne...
0
* Autogenerated by Thrift Compiler (0.10.0) public enum TableOperationExceptionType implements org.apache.thrift.TEnum {
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
0
Service srv = dm.createResourceAdapterService(filter, propagate, null, changed); srv.setInterface(provides, properties);
0
try (BatchScanner bs = client.createBatchScanner(tableName)) {
0
@Parameter(names = "--inputDir", required = true) @Parameter(names = "--workDir", required = true)
0
import org.apache.http.params.CoreProtocolPNames; CoreProtocolPNames.ORIGIN_SERVER);
0
if (!isNullOrEmpty(dataflowOptions.getSaveProfilesToGcs())) {
0
import org.apache.accumulo.core.client.Accumulo; try (AccumuloClient client = Accumulo.newClient().from(getClientProperties()).build()) {
0
InputProcessorChain subInputProcessorChain = inputProcessorChain.createSubChain(this, false); // copy all processor back to main chain for finalization inputProcessorChain.getProcessors().clear(); inputProcessorChain.getProcessors().addAll...
0
String uuid = getConnector().getInstance().getInstanceID(); String uuid = getConnector().getInstance().getInstanceID(); String zpath = ZooUtil.getRoot(getConnector().getInstance()) + RootTable.ZROOT_TABLET_PATH; String zpath = ZooUtil.getRoot(getConnector().getInstance()) + RootTable.ZROOT_TABLET_PATH;
0
() -> { ready.countDown(); try { start.await(); } catch (InterruptedException e) { try { byte[] encoded = CoderUtils.encodeToByteArray(coder, elem); assertEquals( new TestType("abc", index), CoderUtils...
0
List<ByteBuffer> bbList = Collections.< ByteBuffer>singletonList(ByteBuffer.wrap(bs.getBackingArray(), bs.offset(), bs.length()));
0
* http://www.apache.org/licenses/LICENSE-2.0
0
import cz.seznam.euphoria.shaded.guava.com.google.common.base.Preconditions;
0
/* * Gets the component type version. * @return the component type version or * <code>null</code> if not set. */ public String getVersion() { return m_factory.getVersion(); } /** String name = pd.getName(); * Computes the default service properties to publish :...
0
* @version $Revision: 1.5 $ $Date: 2003/03/14 03:48:37 $ assertTrue( "file exists", file.getType() != FileType.IMAGINARY ); assertTrue( "folder exists", file.getType() != FileType.IMAGINARY ); assertTrue( "unknown file does not exist", file.getType() == FileType.IMAGINARY );...
0
* @return the hash value
0
byte[] octets = pubReader.read(Short.MAX_VALUE); // reasonable max. allowed size
0
import org.apache.accumulo.harness.UnmanagedAccumuloIT; import org.apache.log4j.Logger; public class LogicalTimeIT extends UnmanagedAccumuloIT { private static final Logger log = Logger.getLogger(LogicalTimeIT.class); String tableName = getUniqueNames(1)[0];
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...
0
import org.apache.accumulo.core.util.MetadataTable; if (MetadataTable.PREV_ROW_COLUMN.equals(new Text(cu.getColumnFamily()), new Text(cu.getColumnQualifier())) && count > 0) {
0
import org.apache.beam.sdk.PipelineResult; import org.apache.beam.sdk.values.PCollection; import org.apache.beam.sdk.values.PValue;
0
import org.apache.ambari.server.orm.entities.AlertTargetEntity; import org.codehaus.jackson.annotate.JsonProperty; private Long m_id; @JsonProperty("id") public Long getId() { public void setId(Long id) { @JsonProperty("name") @JsonProperty("description") @JsonProperty("notification_type") @JsonProper...
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.HashMap; private HashMap namespaces = new HashMap(); System.out.println("will parse this: " + args[0]); // parse schemeName in prefix and localName String schemeNamespace = null, schemeLocalName = null; int colonPos = schemeName.indexOf(':'); if (colonPos != -1) { ...
0
* @param parameterName - name of parameter * @param methodName - calling method String parameterName, String typeDefGUID, String methodName) throws TypeErrorException; String attri...
0
private static final Object lock = new Object();
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
Map<String,TabletBalancer> perTableBalancers = new HashMap<>(); Map<String,Map<KeyExtent,TServerInstance>> groupedUnassigned = new HashMap<>(); tableUnassigned = new HashMap<>(); Map<KeyExtent,TServerInstance> newAssignments = new HashMap<>(); ArrayList<TabletMigration> newMigrations = new Arr...
0
import org.apache.accumulo.tserver.log.DfsLogger.ServerResources; final ServerResources conf = tserver.getServerConfig(); final VolumeManager fs = conf.getFileSystem(); DfsLogger alog = null; alog = new DfsLogger(conf, syncCounter, flushCounter); String fileName = alog....
0
bundle(dummyJar.toURI().toURL().toExternalForm()) );
0
info.setRole(role);
0
import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.ManagedChannel; import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.Server; import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.stub.CallStreamObserver; import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.stub.StreamObserver; import org.apache.beam.vendor.grpc.v1p13p1.io....
0
static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(TransformXSLTTest.class.getName());
1
import org.apache.atlas.web.security.BaseSecurityTest; import org.eclipse.jetty.server.Server;
0
* @version CVS $Id: AbstractConstrainedTransformer.java,v 1.3 2003/11/15 04:21:29 joerg Exp $ *@since 14 May 2002
0
/* * Copyright 1999-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...
0
import java.util.concurrent.atomic.AtomicReference; import javax.net.ssl.SSLContext; import org.apache.hc.core5.http.config.SocketConfig; import org.apache.hc.core5.io.ShutdownType; private final SSLContext sslContext; private final SocketConfig socketConfig; private final AtomicReference<HttpRequester> re...
0
while (i < len && subject.charAt(i) >= '0' && subject.charAt(i) <= '9') { } && subject.charAt(i + 1) == ':') { if ("(no subject)".equals(simplifiedSubject)) { } while (end...
1
* @version CVS $Id: XMLDBGenerator.java,v 1.3 2003/10/29 14:27:07 vgritsenko Exp $ getLogger().error("Unable to connect to the XML:DB database"); getLogger().error("There was a problem setting up the connection"); getLogger().error("Make sure that your driver is available"); ...
0
? entryName.lastIndexOf('/', endIdx - 1) + 1
0
p.apply(GenerateSequence.from(0).to(10))
0
switch (ae.getSecurityErrorCode()) { switch (ae.getSecurityErrorCode()) {
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
Element element = ElementProxy.createElementForFamily( _contextDocument, EncryptionConstants.EncryptionSpecNS, EncryptionConstants._TAG_CARRIEDKEYNAME); Node node = _contextDocument.createTextNode(carriedName); ...
0
import org.apache.accumulo.core.client.impl.Tables; if (!testTableName.matches(Tables.VALID_NAME_REGEX)) {
0
@Deprecated
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/NonSerializableFloatCollectionCollection.java,v 1.2 2003/08/31 17:21:17 scolebourne Exp $ * any, must include the following acknowledgement: * Alt...
0
* * * * Sets the name of the new DynaClass
1
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class TableInfo implements org.apache.thrift.TBase<TableInfo, TableInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TableInfo> { public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
if (res != null) { }
0
Assert.assertEquals(true, basicScheme.isProxy()); } @Test public void testSerializationUnchallenged() throws Exception { final BasicScheme basicScheme = new BasicScheme(); final ByteArrayOutputStream buffer = new ByteArrayOutputStream(); final ObjectOutputStream out = new Ob...
0
import org.apache.avalon.framework.parameters.Parameters; /** The context */ private Context context; this.context = this.setupContext( conf.getChild( "context" ) ); conf.getChild( "roles" )); final Configuration confRM) ecMa...
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...
0
import org.apache.http.HttpMutableEntity; EntityWriter entitywriter = new DefaultEntityWriter(); entitywriter.write( request.getEntity(), request.getRequestLine().getHttpVersion(), this.datatransmitter); HttpMutableEntity entity = entitygen.generat...
0
compositeFilter.setAttribute(ATTR_FILTER_UNITS, SVG_OBJECT_BOUNDING_BOX_VALUE); feComposite.setAttribute(SVG_IN_ATTRIBUTE, input1); feComposite.setAttribute(SVG_IN2_ATTRIBUTE, input2); feMergeNodeFlood.setAttribute(SVG_IN_ATTRIBUTE, VALUE_FLOOD); feMergeNodeComposite.setAttribute...
0
import org.slf4j.Logger;
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 m...
0
expectedChar = (Character.valueOf(refLine.charAt(cn))).toString(); foundChar = (Character.valueOf(newLine.charAt(cn))).toString();
0
* * */ * @return The converted value * @throws ParseException if an error occurs parsing a String to a Number
0
private final Collection<AbstractBackToLinkedRuleBuilder<? extends Rule>> providers = new LinkedList<AbstractBackToLinkedRuleBuilder<? extends Rule>>(); private final Map<Key, Collection<AbstractBackToLinkedRuleBuilder<? extends Rule>>> providersIndex = new HashMap<Key, Collection<AbstractBackTo...
0
import org.apache.commons.vfs.FileSystemException; private final ZipFileSystem fs; // protected final ZipFile file; ZipFileSystem fs, boolean zipExists) throws FileSystemException this.fs = fs; if (!zipExists) return fs.getZipFile().getIn...
0
import com.google.inject.persist.PersistService; import junit.framework.Assert;
0
if (namespaceId.equals(Constants.DEFAULT_NAMESPACE_ID) || namespaceId.equals(Constants.ACCUMULO_NAMESPACE_ID)) {
1
accClientConf.getProperties(props, x -> true);
0
final Header[] origheaders = request.getAllHeaders(); } catch (final IOException ex) {
0
EasyMock.expect(context.getClient()).andReturn(conn); EasyMock.expect(context.getClient()).andReturn(conn); EasyMock.expect(context.getClient()).andReturn(conn);
0
import org.apache.beam.sdk.io.Read; import org.apache.beam.sdk.io.TextIO; import org.apache.beam.sdk.transforms.Aggregator; import org.apache.beam.sdk.transforms.Count; import org.apache.beam.sdk.transforms.DoFn; import org.apache.beam.sdk.transforms.Filter; import org.apache.beam.sdk.transforms.Flatten; import org.apa...
0
return parameters != null ? new ArrayList<>(parameters) : parameters = new LinkedList<>();
0
"org.apache.felix.webconsole.internal.compendium.LogServlet",
0
@Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override
0