Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
public OutputStream bindStream( final OutputStream output )
final OutputStream stream = m_streams.get();
final OutputStream output = m_streams.get();
final OutputStream output = m_streams.get();
public void write( final int ch )
final OutputStream output = m_streams.get(); | 1 |
import java.util.Map;
private Map m_headerMap = null;
private ICapability[] m_capabilities = null;
private IRequirement[] m_requirements = null;
private IRequirement[] m_dynamicRequirements = null;
Map headerMap, ICapability[] capabilities, IRequirement[] requirements,
m_headerMap = head... | 0 |
BufferedReader reader =
new BufferedReader(new InputStreamReader(new FileInputStream(log), UTF_8));
BufferedReader reader =
new BufferedReader(new InputStreamReader(new FileInputStream(masterLog), UTF_8));
BatchScanner bscanner =
conn.createBatchScanner(opts.getTableN... | 0 |
* @version CVS $Id: SimpleSessionContext.java,v 1.4 2003/05/01 09:37:30 cziegeler Exp $ | 0 |
import org.apache.atlas.AtlasBaseClient;
import org.apache.atlas.AtlasClient;
import static org.apache.atlas.AtlasClientV2.API_V2.DELETE_ENTITY_BY_ATTRIBUTE;
import static org.apache.atlas.AtlasClientV2.API_V2.UPDATE_ENTITY;
import static org.apache.atlas.AtlasClientV2.API_V2.UPDATE_ENTITY_BY_ATTRIBUTE;
... | 0 |
log.debug("State information: ");
for (String key : new TreeSet<String>(state.getMap().keySet())) {
Object value = state.getMap().get(key);
log.debug(" " + key + ": " + value + ' ' + (value != null && ! (value instanceof String)? ((value.getClass().equals(byte[].class))? ne... | 0 |
@Ignore | 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 |
* Copyright 2000-2009 The Apache Software Foundation | 0 |
@Override | 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 com.google.common.io.ByteStreams;
import org.apache.beam.sdk.util.CloudObject;
import org.apache.beam.sdk.util.Structs;
import org.apache.beam.sdk.util.VarInt; | 0 |
import org.apache.felix.scrplugin.description.ReferencePolicyOption;
ref.setPolicyOption(rd.getPolicyOption());
if ( ref.getPolicyOption() != ReferencePolicyOption.RELUCTANT ) {
component.setSpecVersion(SpecVersion.VERSION_1_2);
}
// updated requires 1... | 0 |
import org.apache.accumulo.core.util.AddressUtil;
this(AddressUtil.parseAddress(address), Long.toHexString(session));
this(AddressUtil.parseAddress(new String(address.get())), session.toString()); | 0 |
* Factory method to create an AnnotionEntry from a DataInput | 0 |
protected void processCommandReports(
HeartBeat heartbeat, String hostname, Clusters clusterFsm, long now)
if (RoleCommand.ACTIONEXECUTE.equals(report.getRoleCommand())) {
continue;
}
if (service == null || service.isEmpty()) {
", component " + scHost.getServiceCompo... | 1 |
@Setup
public void setup() throws Exception {
}
@StartBundle
public void startBundle(Context c) {
bigtableWriter.flush();
@Teardown
public void tearDown() throws Exception {
bigtableWriter.close();
bigtableWriter = null;
}
| 0 |
public void handle(Callback[] callbacks) { | 0 |
class SmbFileObject | 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 |
* @param msgID
public InvalidDigestValueException(String msgID) {
super(msgID);
* @param msgID
public InvalidDigestValueException(String msgID, Object exArgs[]) {
super(msgID, exArgs);
* @param msgID
* @param originalException
public InvalidDigestValueException(String msgID,
... | 0 |
package org.apache.beam.sdk.util;
import org.apache.beam.sdk.transforms.Aggregator;
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.transforms.DoFn.ProcessContext;
import org.apache.beam.sdk.values.KV; | 0 |
private final Vars vars = new Vars();
/**
* Gets a reference to the vars.
*
* @return State manager variables.
*/
public Vars getVars() {
return vars;
}
/**
* Vars layer to handle delayed export.
*/ | 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 |
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 |
protected static final String USER_TYPE_PROPERTY_ID = PropertyHelper.getPropertyId("Users", "user_type");
setResourceProperty(resource, USER_TYPE_PROPERTY_ID,
userResponse.getUserType(), requestedIds);
| 0 |
* @version CVS $Id: LDAPTransformer.java,v 1.6 2003/09/20 17:13:33 cziegeler Exp $
protected void start(String name, AttributesImpl attr) throws SAXException {
protected void end(String name) throws SAXException {
protected void data(String data) throws SAXException {
if (data != null) {
} | 0 |
private static final String B64_FILEDATA = Base64.encodeBase64String("line1".getBytes(UTF_8)) + "\n\n" + Base64.encodeBase64String("line2".getBytes(UTF_8));
FileUtils.writeStringToFile(testFile, B64_FILEDATA);
assertEquals(ImmutableList.of(new Text("line1"), new Text("line2")), output); | 0 |
new ConcreteTextLayoutFactory();
new FontRenderContext(new AffineTransform(), true, true);
new FontRenderContext(new AffineTransform(), false, true);
if (beginMark == null) {
return null;
} else {
return hitTest(x, y, beginMark.getTextNode());
}
... | 1 |
private static final long serialVersionUID = -3370601314380922368L; | 0 |
import org.apache.felix.hc.core.impl.util.HealthCheckFilter;
/** Runs health checks asynchronously, either via cron or via interval. */
final ServiceReference[] healthCheckReferences = healthCheckFilter.getHealthCheckServiceReferences(HealthCheckSelector.empty(), false); | 0 |
import org.apache.ambari.view.hive2.AuthParams;
HiveConnectionWrapper hiveConnectionWrapper = new HiveConnectionWrapper(connectionConfig.getJdbcUrl(), connectionConfig.getUsername(), pass,new AuthParams(context)); | 0 |
p.put("instance.name","importer");
p.put("instance.name","foo");
p2.put("instance.name","foo2");
p.put("instance.name","foo");
p2.put("instance.name","foo2"); | 0 |
LinkedBeanPropertySetterBuilder beanPropertySetter(); | 0 |
}
if (authority.getUserInfo() != null) {
authority = new URIAuthority(authority.getHostName(), authority.getPort()); | 0 |
import org.apache.beam.sdk.transforms.windowing.BoundedWindow;
import org.apache.beam.sdk.transforms.windowing.Trigger;
import org.apache.beam.sdk.transforms.windowing.Trigger.OnceTrigger; | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
this.id = String.format("i/o-%08X", COUNT.getAndIncrement()); | 0 |
.pruningPrefix("org.apache.beam.vendor.") | 0 |
* @version $Id$ | 0 |
* @version CVS $Id: PortalManagerImpl.java,v 1.2 2004/02/06 15:13:54 cziegeler Exp $
Object k = keys.nextElement();
if ( k instanceof String ) {
currentKey = (String)k;
if (deleteGlobal != null && currentKey.equals(deleteGlobal)) {... | 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 |
* The catalog is by default loaded from "WEB-INF/entities/catalog".
* This can be configured by the "catalog" parameter in the cocoon.xconf:
* <entity-resolver>
* <parameter name="catalog" value="mycatalog"/>
* </entity-resolver>
*
* @version CVS $Id: DefaultResolver.java,v 1.2 2003/03/12 10... | 0 |
*
*
return Arrays.toString(columnFamily) + ":" + Arrays.toString(columnQualifier) + " [" + Arrays.toString(columnVisibility) + "] "
+ (hasTimestamp ? timestamp : "NO_TIME_STAMP") + " " + Arrays.toString(val) + " " + deleted;
| 0 |
buf.append(Constants.getAccessName(i)).append(" ");
buf.append("\t\t<").append(Constants.getTypeName(bytes.readByte())).append(">");
if (Constants.getNoOfOperands(opcode) > 0) {
if (Constants.getTypeName(i).equals(type)) {
buf.append(Constants.... | 0 |
if(gnBounds != null){
x = gnBounds.getX() + x*gnBounds.getWidth();
y = gnBounds.getY() + y*gnBounds.getHeight();
w *= gnBounds.getWidth();
h *= gnBounds.getHeight();
}
else{
x = 0;
y = 0;... | 0 |
@Deprecated
public TransformationException(String msgID, Exception originalException) {
this(originalException, msgID);
}
@Deprecated
public TransformationException(String msgID, Object[] exArgs, Exception originalException) {
this(originalException, msgID, exArgs);
} | 0 |
import java.util.Arrays;
import java.util.List;
GroovyExpression falseValue) {
context.append(")?(");
context.append("):(");
@Override
public List<GroovyExpression> getChildren() {
return Arrays.asList(booleanExpr, trueValue, falseValue);
}
... | 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
... | 0 |
* Copyright (c) 2003-2004 The Apache Software Foundation. All rights | 0 |
import org.apache.accumulo.examples.wikisearch.ingest.WikipediaInputFormat.WikipediaInputSplit;
WikipediaInputSplit split = new WikipediaInputSplit(new FileSplit(p, 0, f.length(), null),0);
WikipediaInputSplit split = new WikipediaInputSplit(new FileSplit(p, 0, f.length(), null),0);
WikipediaInputSplit spli... | 0 |
public abstract class State<IN, OUT> implements Closeable { | 0 |
throws BindingException; | 0 |
import org.apache.beam.sdk.PipelineResult;
import org.apache.beam.sdk.options.BigQueryOptions;
import org.apache.beam.sdk.options.PipelineOptions;
import org.apache.beam.sdk.options.PubsubOptions;
import org.apache.beam.sdk.util.AttemptBoundedExponentialBackOff;
import org.apache.beam.sdk.util.Transport; | 0 |
package org.apache.http.impl.cookie; | 0 |
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
import org.apache.accumulo.server.ServerConstants;
import org.apache.accumulo.server.fs.FileRef;
import org.apache.accumulo.server.fs.VolumeManager;
import org.apache.hadoop.fs.Path;
private VolumeManager fs;
FileManager(ServerConfiguration conf, VolumeManager fs, int maxOpen, BlockCache dataCache, BlockCache index... | 1 |
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class ArgumentIsOptionTest
@Before
@Test
@Test
@Test | 0 |
closeFuture.addListener(future -> run.run()); | 0 |
@Override
public AtlasVertexQuery<Titan0Vertex, Titan0Edge> label(String label) {
vertexQuery.labels(label);
return this;
}
@Override
public AtlasVertexQuery<Titan0Vertex, Titan0Edge> has(String key, Object value) {
vertexQuery.has(key, value);
return this;
} | 1 |
ServiceReference sr = e.getServiceReference();
Filter filter = (Filter) sr.getProperty(UPnPEventListener.UPNP_FILTER);
removeListener(sr);
if (filter == null)
addNewListener(sr);
else {
if (filter.mat... | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument; | 0 |
@Override | 0 |
initializeScriptingEnvironment(bridgeContext);
// Any BridgeContexts for resource documents that exist
// when initializing the scripting environment for the
// primary document also need to have their scripting
// environments initialized.
BridgeContext[] children = ctx... | 0 |
import org.apache.hc.client5.http.sync.methods.HttpGet;
import org.apache.hc.client5.http.sync.methods.HttpHead;
import org.apache.hc.client5.http.impl.sync.RoutedHttpRequest; | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Optional;
import org.apache.beam.vendor.guava.v20_0.com.google.common.cache.CacheBuilder;
import org.apache.beam.vendor.guava.v20_0.com.google.common.cache.CacheLoader;
import org.apache.beam.vendor.guava.v20_0.com.google.common.cache.LoadingCache;
import... | 0 |
import java.util.Base64;
byte[] tokenBytes = Base64.getDecoder().decode(base64TokenBytes);
out.writeUTF(new String(Base64.getEncoder().encode(AuthenticationTokenSerializer.serialize(token)), UTF_8)); | 0 |
public boolean domainMatch(final String host, final String domain) { | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory; | 0 |
import org.apache.cocoon.el.objectmodel.ObjectModel; | 0 |
import org.springframework.web.context.ServletContextAware;
ServletContextAware,
/** The servlet context. */
protected ServletContext servletContext;
* @see org.springframework.web.context.ServletContextAware#setServletContext(javax.servlet.ServletContext)
public void setServletContext(... | 0 |
* @version $Id$ | 0 |
/** @since 3.0 */
public String toFormattedString(){
StringBuilder sb = new StringBuilder();
sb.append(getName());
sb.append(' ');
sb.append(getSize());
sb.append(' ');
sb.append(getTimestamp().getTime().toString());
return sb.toString();
} | 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 |
* If you serialize this constant on Windows, and deserialize on Unix, or vice | 0 |
public void startBundle(StartBundleContext c) throws IOException {
public void finishBundle() throws IOException { | 0 |
private static final long serialVersionUID = 8495971186433816161L; | 0 |
* Empty constructor needed for Instruction.readInstruction.
* Not to be used otherwise. | 0 |
c -> c.getValue().length() == minPrefix))) | 0 |
Thread.currentThread().interrupt();
Thread.currentThread().interrupt(); | 0 |
@Deprecated | 0 |
public FCONST(final float f) {
public Type getType( final ConstantPoolGen cp ) {
public void accept( final Visitor v ) { | 0 |
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
private final Logger log = LoggerFactory.getLogger(getClass());
InputStream input = getClass().getClassLoader().getResourceAsStream("org/apache/sshd/sshd-version.properties");
log.warn("Unable to load version from resources. Missing ... | 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.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
} | 0 |
/* This method is added to handle that JXPath have two access
methods getValue and getNode, where getNode gives direct access
to the object while getValue might do some conversion of the
object. I would prefer to get rid of the getNode method, but
have not yet figured out how to get wor... | 0 |
* @version $Id$ | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/test/org/apache/commons/digester/EBRTestCase.java,v 1.4 2002/03/23 17:45:59 rdonkin Exp $
* $Revision: 1.4 $
* $Date: 2002/03/23 17:45:59 $
* @version $Revision: 1.4 $ $Date: 2002/03/23 17:45:59 $
digester.ad... | 0 |
import org.apache.cocoon.components.flow.FlowHelper;
* @version CVS $Id: FlowVelocityGenerator.java,v 1.9 2003/05/18 16:36:41 vgritsenko Exp $
final Object bean = FlowHelper.getContextObject(objectModel);
final WebContinuation kont = FlowHelper.getWebContinuation(objectModel); | 0 |
import org.apache.http.message.BasicHeader;
return new Header[] { new BasicHeader("Cookie", buffer.toString()) }; | 0 |
import org.apache.http.util.CharArrayBuffer; | 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.beam.vendor.guava.v26_0_jre.com.google.common.base.Joiner; | 0 |
long ephemeralOwner, long zxid, long time) throws KeeperException.NoNodeException, KeeperException.NodeExistsException {
throw new KeeperException.NoNodeException();
throw new KeeperException.NodeExistsException();
public void deleteNode(String path) throws KeeperException.No... | 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 |
TSERV_SLOW_FILEPERMIT_MILLIS("tserver.slow.filepermit.time", "100ms", PropertyType.TIMEDURATION,
"If a thread blocks more than this period of time waiting to get file permits,"
+ " debugging information will be written."),
Property.TABLE_FAILURES_IGNORE, Property.TABLE_SCAN_MAXMEM,
Propert... | 0 |
import org.apache.hc.core5.io.SocketTimeoutExceptionFactory; | 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 static org.junit.Assert.assertNull;
public void testResolve() {
public void testResolveHandleBadInputs() {
public void testResolveInvalidInputs() {
public void testResolveInvalidNotDirectory() {
public void testGetCurrentDirectory() {
public void testIsDirectory() {
public void testInvalidGcsPath()... | 0 |
scanner.setRange(new Range(new Text(String.format("row_%010d", opts.startRow)), null));
if (!entry.getKey().getRow().toString().equals(String.format("row_%010d", i))) {
log.error("unexpected row key " + entry.getKey().getRow().toString() + " expected " + String.format("row_%010d", i));
if ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.