Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.accumulo.fate.util.Retry; import org.apache.accumulo.fate.util.Retry.RetryFactory; createRetry = createRetryFactory.createRetry(); write(commitSession, mincFinish, writer, writeRetryFactory.createRetry()); write(sessions, mincFinish, writer, writeRetryFactory.createRetry());
0
Timestamp tsValue = (Timestamp) value; int nanos = tsValue.getNanos(); value = new java.sql.Timestamp(tsValue.getTime()); ((Timestamp) value).setNanos(nanos);
0
* @version CVS $Id: Sex.java,v 1.4 2003/11/08 14:27:03 joerg Exp $
0
assertEquals( "myPcollection", monitoringInfo.getLabelsOrDefault(SimpleMonitoringInfoBuilder.PCOLLECTION_LABEL, null));
0
public static final String STR_NAME = "~tab"; public static final Text NAME = new Text(STR_NAME); public static final String STR_NAME = "srv"; public static final Text NAME = new Text(STR_NAME); public static final String STR_NAME = "loc"; public static final Text NAME = new Text(STR...
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 ...
1
* The various copy methods all delegate the actual copying to one of the following methods: * <ul> * <li>{@link #copyLarge(InputStream, OutputStream, byte[])}</li> * <li>{@link #copyLarge(InputStream, OutputStream, long, long, byte[])}</li> * <li>{@link #copyLarge(Reader, Writer, char[])}</li> * <li>{@link #copyL...
0
private BlockManager blockManager; public BlockContext(BlockWiring wiring, BlockManager blockManager) { this.blockManager = blockManager; return this.blockManager.getProperty(name);
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
protected static void updateRootTabletDataFile(KeyExtent extent, FileRef path, FileRef mergeFile, DataFileValue dfv, String time, // unusedWalLogs will contain the location/name of each log in a log set // the log set is stored under one of the log names, but not both // find the entry under one of th...
0
public ConfigValidationResult validateTargetConfig(Map<String, Object> properties) { Map<String, Object> properties) {
0
@Command(scope = "log", name = "display-exception", description = "Displays the last occured exception from the log.")
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 ...
0
import org.apache.atlas.exception.NotFoundException;
1
package org.apache.beam.runners.core;
0
} catch (final InterruptedException ignore) {
0
if (isZKServerRunning()) {
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...
0
/** * Check that the element is the one expect * * @throws XMLSecurityException */ public void guaranteeThatElementInCorrectSpace(ElementProxy expected, Element actual) throws XMLSecurityException; public boolean isNamespaceElement(Node el, String type, String ns);
0
Bundle.ACTIVE|Bundle.STARTING|Bundle.STOPPING|Bundle.RESOLVED|Bundle.INSTALLED, final int state = bundle.getState(); (state == Bundle.ACTIVE || state == Bundle.STARTING) ) { SystemLogger.debug("Adding bundle " + getBundleIdentity(bundle) + " : " + ...
0
return ExceptionConstants.createExceptions(ExceptionConstants.EXCS.EXCS_INTERFACE_METHOD_RESOLUTION, ExceptionConstants.UNSATISFIED_LINK_ERROR, ExceptionConstants.ABSTRACT_METHOD_ERROR, ExceptionConstants.ILLEGAL_ACCESS_ERROR, ExceptionConstants.INCOMPATIBLE_CLASS...
0
import org.w3c.dom.Node;
0
Mockito.verify(cm, Mockito.atLeast(1)).closeExpired(); Mockito.verify(cm, Mockito.atLeast(1)).closeIdle(3000, TimeUnit.MILLISECONDS); Mockito.verify(cm, Mockito.atLeast(1)).closeExpired(); Mockito.verify(cm, Mockito.never()).closeIdle(Mockito.anyLong(), Mockito.<TimeUnit>any());
0
@Override @Override @Override @Override
0
return _replyLines.toArray(new String[0]);
0
import org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode; log.debug(credentials.getPrincipal() + " attempted to delete the " + namespaceId + " table namespace"); throw new AccumuloSecurityException(credentials.getPrincipal(), SecurityErrorCode.UNSUPPORTED_OPERATION);
0
import org.apache.accumulo.core.util.HostAndPort;
1
AvroIO.readGenericRecords(SCHEMA), AvroIO.readGenericRecords(SCHEMA), AvroIO.readGenericRecords(SCHEMA_STRING), AvroIO.readGenericRecords(SCHEMA_STRING),
0
import org.apache.http.message.ParserCursor; ParserCursor cursor = new ParserCursor(0, buffer.length()); StatusLine statusline = lineParser.parseStatusLine(buffer, cursor);
0
setFileNameParser(new WindowsFileNameParser()); setFileNameParser(new GenericFileNameParser()); return ((LocalFileNameParser) getFileNameParser()).isAbsoluteName(name);
0
import org.apache.accumulo.core.client.impl.Namespace; import org.apache.accumulo.core.client.impl.Table; Table.ID srcTableId; Table.ID tableId; Namespace.ID namespaceId; Namespace.ID srcNamespaceId;
1
package org.apache.beam.runners.flink;
0
packages = new Packages(module); private final Module m_module; public Packages(Module module) m_module = module; // Grab the module's actual exported packages. // Note that we ignore the calculated exported packages here, // because bundles that i...
0
Map<String,String> props = new java.util.HashMap<>(); List<String> children = new java.util.ArrayList<>(); Map<String,String> props = new java.util.HashMap<>(); Map<String,String> props = new java.util.HashMap<>(); List<String> children = new java.util.ArrayList<>(); Map<String,String> props = n...
0
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
0
private Set<String> loadedHeaders = new HashSet<>(); private Set<String> loadedCommands = new HashSet<>(); private Set<String> loadedExtensions = new TreeSet<>();
0
import org.apache.ambari.server.agent.stomp.AgentConfigsHolder; import org.apache.ambari.server.agent.stomp.MetadataHolder; MetadataHolder metadataHolder = injector.getInstance(MetadataHolder.class); AgentConfigsHolder agentConfigsHolder = injector.getInstance(AgentConfigsHolder.class); ...
0
package org.apache.beam.sdk.options;
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
String SVG_ALPHABETIC_ATTRIBUTE = "alphabetic";
0
FlinkExecutor executor = new TestFlinkExecutor(ModuloInputSplitAssigner::new) .setStateBackend(backend);
0
import org.apache.aurora.scheduler.storage.entities.IHostAttributes; IHostAttributes attributes = IHostAttributes.build(new HostAttributes() new Attribute().setName("rack").setValues(ImmutableSet.of(rackToReturn))))); .andReturn(Optional.<IHostAttributes>absent());
0
log.debug(String.format("Compaction %s %,d read | %,d written | %,6d entries/sec | %,6.3f secs | %,12d bytes | %9.3f byte/sec", extent, majCStats.getEntriesRead(), majCStats.getEntriesWritten(), (int) (majCStats.getEntriesRead() / ((t2 - t1) / 1000.0)), (t2 - t1) / 1000.0, mfwTmp.getLength(), ...
0
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
import org.apache.felix.framework.util.Util; private static final List<Wire> m_emptyWires = Util.m_emptyList; return Util.m_emptyList;
0
final String uri = "tbz2:file:" + tarFile.getAbsolutePath() + "!/";
0
package org.apache.commons.io.output; * @version $Id: LockableFileWriter.java,v 1.1 2002/11/11 19:34:02 bayard Exp $
0
/** * Find CLUSTER.OPERATE permission. * * @return a matching permission entity or null */ public PermissionEntity findClusterOperatePermission() { return findById(PermissionEntity.CLUSTER_OPERATE_PERMISSION); } /** * Find CLUSTER.READ permission. * * @return a matching permission ent...
0
if (valuesNotEmpty(values)) TreeData currentStructure = structure.get(); ModelTransaction tx = new ModelTransaction(currentStructure); NodeAddData<ImmutableNode> addData = resolver.resolveAddKey(currentStructure.getRoot(), key, ...
0
package org.apache.felix.karaf.deployer.blueprint;
0
@SuppressWarnings({"boxing"})
0
cocoon.getInterpreter().forwardTo(getTopLevelScope(cocoon), cocoon, redUri, unwrap(bizData), fom_wk == null ? null: fom_wk.getWebContinuation()...
0
* @version $Id$
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 CVS $Id: EP_Right.java,v 1.4 2004/01/31 08:50:39 antonio Exp $ public class EP_Right extends BaseElementProcessor { public EP_Right() { double getPoints() throws IOException { if (_points == null) { int getPrefUnit() throws IOException { if (_pref_unit == null) {
0
.fromArgs("--transformNameMapping={\"a\":\"b\",\"foo\":\"\",\"bar\":\"baz\"}")
0
import org.apache.sshd.common.util.GenericUtils; /** * The shared secret returned by {@link javax.crypto.KeyAgreement#generateSecret()} * is a byte array, which can (by chance, roughly 1 out of 256 times) begin * with zero byte (some JCE providers might strip this, though). In SSH, * the shared ...
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 applicabl...
0
import java.util.Collection; Collection<V> coll = map.remove(els[0]); assertNotNull(coll); assertEquals(0, coll.size());
0
Header header = new BasicHeader("Set-Cookie", "cookie-name=cookie-value;Version=1;Path=/commons;Domain=.apache.org;" + BasicClientCookie cookie = new BasicClientCookie("name", null); CookieOrigin origin = new CookieOrigin("alpha.beta.gamma.com", 80, "/", false); ...
0
* @throws FileSystemException if an error occurs.
0
package org.apache.commons.ognl.internal; * http://www.apache.org/licenses/LICENSE-2.0
0
import org.apache.beam.sdk.transforms.windowing.BoundedWindow; @Override public BeamSqlPrimitive evaluate(BeamRecord inputRow, BoundedWindow window) { String str = opValueEvaluated(0, inputRow, window);
0
/** * Tests whether variables can be queried. */ @Test public void testGetVariables() { ExprLookup.Variables vars = new ExprLookup.Variables(); vars.add(new ExprLookup.Variable("String", org.apache.commons.lang3.StringUtils.class)); ExprLookup lookup = new ExprLookup(va...
0
* An example that verifies word counts in Shakespeare and includes Beam best practices.
0
import java.util.HashSet; final Set<SubResourceDefinition> subResourceDefinitions = new HashSet<SubResourceDefinition>(); subResourceDefinitions.add(new SubResourceDefinition(Resource.Type.UserPrivilege)); return subResourceDefinitions;
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.CacheLoader; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.util.concurrent.MoreExecutors; import org.apache.beam.vendor.guava.v...
0
* Copyright 2002-2005 The Apache Software Foundation.
0
* @version CVS $Id: AbstractCachingProcessingPipeline.java,v 1.19 2004/04/26 21:28:39 ugo Exp $ environment.setContentLength(baos.size()); baos.writeTo(os); environment.setContentLength(os.size()); os.writeTo(environment.getOutputS...
0
for (String part : new String[] {"b", "bm", "c", "cm", "d", "dm", "e", "em", "f", "g", "h", "i", "j", "k", "l"}) { writer.append(new Key("dd", "cf", "cq1"), empty); Assert.assertEquals(5, overlaps.size()); Assert.assertEquals(new KeyExtent(tableId, new Text("a"), null), overlaps.get(0).tablet_extent); ...
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 org.apache.accumulo.core.data.NamespaceId; private NamespaceId namespaceId; public DeleteNamespace(NamespaceId namespaceId) {
0
action -> new SideEffect(action, Optional.absent());
0
* @param inputStream The input stream to read. public static String asString(InputStream inputStream) throws IOException { copy(inputStream, baos, true); * @param inputStream The input stream to read. * @param encoding The character encoding, typically "UTF-8". public static String asStri...
0
// hex, space, then either space or '*' followed by file name
0
import org.apache.accumulo.harness.AccumuloITBase; public class KerberosIT extends AccumuloITBase {
0
public List<Long> decode() {
0
assertIOException("incorrect padding, 4th byte", "Zg=a"); } @Test public void badPaddingLeading1() throws Exception { assertIOException("incorrect padding, first two bytes cannot be padding", "=A=="); } @Test public void badPaddingLeading2() throws Exception { assertIOE...
0
import org.apache.bcel.Constants; import org.apache.bcel.Repository; import org.apache.bcel.classfile.ClassParser; import org.apache.bcel.classfile.ConstantCP; import org.apache.bcel.classfile.ConstantClass; import org.apache.bcel.classfile.ConstantFieldref; import org.apache.bcel.classfile.ConstantInterfaceMethodref; ...
0
* public void processElement(ProcessContext c) throws Exception { * CoCombineResult e = c.element(); * c.output(...some T...);
0
* * * protected DelegatingConnection<?> _conn = null; // TODO make final and private? public DelegatingDatabaseMetaData(DelegatingConnection<?> c,
0
* {@link #addHostRoleExecutionCommand(String, Role, RoleCommand, ServiceComponentHostEvent, String, String, boolean, boolean)}
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
/** * read */ public static final RandomAccessMode READ = new RandomAccessMode(true, false); /** * read/write */ public static final RandomAccessMode READWRITE = new RandomAccessMode(true, true); private final boolean read; private final boolean write; private RandomAccessMode(final boolean read, fin...
0
import com.google.cloud.dataflow.sdk.testing.RunnableOnService; @Category(RunnableOnService.class)
0
/* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.commons.vfs.test; import org.apache.commo...
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
* in a pool of blocking {@link HttpClientConnection}s identified by * an {@link HttpHost} instance.
0
* <p>Note that currently integers are encoded as strings to match
0
private Long mockEstimateSizeBytes; return mockEstimateSizeBytes; public Source withMockEstimateSizeBytes(Long estimateSizeBytes) {
0
package org.apache.accumulo.gc;
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/testtools/FileBasedTestCase.java,v 1.4 2003/12/29 03:28:53 bayard Exp $ * $Revision: 1.4 $ * $Date: 2003/12/29 03:28:53 $ IOUtils.closeQuietly(output);
0
"-rw-r--r-- 1 root root 190144 Apr 27 2001 zxJDBC-2.0.1b1.zip", "drwxr-xr-x 2 root root 4096 Aug 26 20 zztpp", "drwxr-xr-x 2 root root 4096 Aug 26 201 zztpp", "drwxr-xr-x 2 root root 4096 Aug 26 201O zztpp", // OH not zero ...
0
/** * @return the cluster where this config belongs to */ Cluster getCluster();
0
void save(ClusterEntity clusterEntity) {
0
Copyright 2000-2003 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 applicable law...
0
* * * * @version CVS $Id$ public class EmbeddedXMLPipe extends AbstractXMLPipe { public void startDocument() throws SAXException { public void endDocument() throws SAXException {
0
import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.Context; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.Response; i...
0
import org.apache.cocoon.components.flow.javascript.JavaScriptFlowHelper; return JavaScriptFlowHelper.unwrap(result);
0
return _genericMethodParameterTypesCache.get( new GenericMethodParameterTypeCacheEntry( m, type ) );
0