Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.osgi.framework.BundleContext;
private volatile ConfigurationSupport optionalSupport;
@Override
public void deactivate() {
if ( this.optionalSupport != null )
{
this.optionalSupport.close();
this.optionalSupport = null;
}
super.deactivate()... | 0 |
import javax.annotation.Nullable;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Stream;
| 0 |
import java.util.HashMap;
import java.util.Map;
* The attribute-value map map.
*/
protected static Map attributeValues = new HashMap(3);
static {
Map values = new HashMap(2);
values.put("mode", "normal");
attributeValues.put(null, values);
}
/**
/**
* Return... | 0 |
import org.apache.ambari.server.orm.dao.RequestDAO; | 0 |
* <p>
* It is expected that <code>newStackIdentities</code> and <code>userIdentities</code> are not null.
* However, <code>previousStackIdentities</code> may be null in the event the user added a Kerberos
* identity that was then added in the new Kerberos descriptor. In this case, the user's values
* fo... | 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 |
protected InProcessStepContext createStepContext(String stepName, String transformName) { | 0 |
private final Class<? extends T> type;
public BeanHandler(Class<? extends T> type) {
public BeanHandler(Class<? extends T> type, RowProcessor convert) { | 0 |
public MagicNumberFileFilter(final byte[] magicNumber) {
public MagicNumberFileFilter(final String magicNumber) {
public MagicNumberFileFilter(final String magicNumber, final long offset) {
public MagicNumberFileFilter(final byte[] magicNumber, final long offset) {
public boolean accept(final File f... | 1 |
* Closes this random access file stream and releases any system resources associated with the stream. | 0 |
* @version $Id$
public class LoopingIteratorTest extends TestCase {
public LoopingIteratorTest(String testName) { | 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.accumulo.core.spi.cache.CacheEntry;
public <T extends Weighable> T getIndex(Supplier<T> indexSupplier) { | 0 |
private LocalVariable[] local_variable_table; // variables
public final void setLocalVariableTable( LocalVariable[] local_variable_table ) {
this.local_variable_table = local_variable_table;
}
| 0 |
if (getLogger().isDebugEnabled()) {
getLogger().debug("InsertBean performed."); | 0 |
.setOfflineScan(isOfflineScan(implementingClass, conf)); | 0 |
new HashSet<>(Arrays.asList(new String[]{
GROUP_GROUPNAME_PROPERTY_ID}));
final Set<GroupRequest> requests = new HashSet<>();
final Set<GroupRequest> requests = new HashSet<>();
Set<Resource> resources = new HashSet<>();
final Set<GroupRequest> requests = new HashSet<>();
final Set<Grou... | 1 |
/* (non-Javadoc)
* @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
*/
/*
<catalogues default="portalTools">
<catalogue id="portalTools" name="portalTools" location="cocoon:/i18n"/>
</catalogues... | 0 |
PrepRequestProcessor.checkACL(zks, zks.dataTree.convertLong(n.acl),
ZooDefs.Perms.READ,
PrepRequestProcessor.checkACL(zks, zks.dataTree.convertLong(n.acl),
ZooDefs.Perms.READ, | 0 |
ret.add(AtlasTypeUtil.getObjectId(entity));
AtlasEntity ret = toTableEntity(AtlasTypeUtil.getObjectId(dbEntity), table, entityExtInfo);
AtlasObjectId tableId = AtlasTypeUtil.getObjectId(ret);
ret.setRelationshipAttribute(ATTRIBUTE_STORAGEDESC, At... | 0 |
* From the Java documentation <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard
* charsets</a>:
public class CharEncoding {
* CharEncodingISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1. </p> | 0 |
File outputDirectory = new File( buildDirectory, "test-classes" );
File testFile = getTestFile( "target/test-classes/org.apache.maven.maven-model_1.0.0.0.jar" ); | 0 |
if (elemRefs)
{
getRoot().setReference(document.getDocumentElement());
}
* @param listDelimiter the delimiter for attributes with multiple values | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; | 0 |
import org.apache.accumulo.core.client.TableNamespaceNotFoundException;
import org.apache.accumulo.core.client.impl.TableNamespaces;
OpTimer opTimer = new OpTimer(log, Level.TRACE).start("Checking if table " + tableName + " exists...");
String namespace = Tables.extractNamespace(tableName);
if (!namespaceEx... | 0 |
protected final void useAnnotationHandlerFactory( AnnotationHandlerFactory annotationHandlerFactory )
protected final void bindRulesFrom( final Class<?> type )
@SuppressWarnings( "unchecked" ) | 0 |
* Copyright 2017 Seznam.cz, a.s. | 0 |
case ALTERDATABASE:
case ALTERDATABASE_OWNER:
alterDatabase(dgiBridge, event);
break;
private void alterDatabase(HiveMetaStoreBridge dgiBridge, HiveEvent event) throws Exception {
assert event.outputs != null && event.outputs.size() > 0;
for (WriteEntity wri... | 0 |
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlElements;
| 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/VariablePointer.java,v 1.14 2003/03/11 00:59:23 dmitri Exp $
* $Revision: 1.14 $
* $Date: 2003/03/11 00:59:23 $
* Copyright (c) 1999-2003 The Apache Software Foundation. All rig... | 0 |
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.util.SortedSet;
SortedSet<String> sigTypes = new TreeSet<>(pairsMap.keySet());
for (String kt : sigTypes) {
} else if (BuiltinIdentities.Constants.ED25519.equalsIgnoreCase(keyType)) {
re... | 0 |
if (tableManager == null)
tableManager = new TableManager();
if (oldData != null)
oldState = TableState.valueOf(new String(oldData));
if (!transition)
throw new IllegalTableTransitionException(oldState, newState);
if (zooStateCache.get(ZooUtil.getRoot(instan... | 1 |
@Override
@Override
@Override
@Override | 0 |
package org.apache.commons.dbcp2; | 1 |
LOG.warn("Exception while trying to get socket address for {}", hostPort, e);
LOG.info("Found matched server id {} with host port: {}", id, hostPort);
LOG.info("Could not find matching address entry for id: {}", id); | 0 |
private static long now(PubsubReader<?> reader) { | 0 |
Set<Map<String, Object>> propertySet = new LinkedHashSet<>();
Map<String, Object> properties = new LinkedHashMap<>();
Set<Map<String, Object>> propertySet = new LinkedHashSet<>();
Map<String, Object> properties = new LinkedHashMap<>();
Set<ConfigurationResponse> allResponse = new HashSet<>();
Se... | 1 |
/*
* Copyright 2003-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 applica... | 0 |
return new MultiSetIterator<>(this);
return new UniqueSet<>(this);
return new EntrySet<>(this); | 1 |
base64os.write(StringUtils.getBytesUtf8(STRING_FIXTURE));
base64os.close();
byte[] decodedBytes = Base64TestData.streamToBytes(ins, new byte[64]);
String str = StringUtils.newStringUtf8(decodedBytes); | 0 |
import static org.apache.beam.sdk.values.TypeDescriptors.integers;
import static org.apache.beam.sdk.values.TypeDescriptors.iterables;
import static org.apache.beam.sdk.values.TypeDescriptors.kvs;
import static org.apache.beam.sdk.values.TypeDescriptors.lists;
import static org.apache.beam.sdk.values.TypeDescriptors.se... | 0 |
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
* | 0 |
if (auths != null && auths.length() > 0)
if (auths != null && auths.length() > 0)
for (String a : auths.split(","))
authorizations.add(a); | 0 |
import org.apache.cocoon.components.flow.Interpreter.Argument;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
fom_wk.setLogger(logger);
result.setLogger(logger);
result.setLogger(logger); | 0 |
this.registerPropertyOverrideConfigurer(parserContext, Constants.DEFAULT_SPRING_SITEMAP_CONFIGURATION_FILES); | 0 |
*
*
*/
* @return The converted value
* @throws ParseException if an error occurs parsing a String to a Number | 0 |
package org.apache.beam.dsls.sql.planner;
import org.apache.beam.dsls.sql.rel.BeamRelNode;
import org.apache.beam.dsls.sql.schema.BaseBeamTable; | 0 |
import org.apache.bcel.generic.ConstantPoolGen;
import org.apache.bcel.generic.INVOKESTATIC;
import org.apache.bcel.generic.InstructionList;
import org.apache.bcel.generic.MethodGen;
import org.apache.bcel.generic.Type;
org.apache.bcel.Constants { | 0 |
* @return the iterator for the resolvers.
* @return true if there is more elements.
* @return the next element | 0 |
Method m;
m = c.getMethod("getName", (Class[]) null);
name = (String) m.invoke(felixCommand, (Object[]) null);
m = c.getMethod("getShortDescription", (Class[]) null);
help = (String) m.invoke(felixCommand, (Object[]) null);
m = c.getMethod("getUsage", (Class[]) null);
... | 0 |
/*
import org.apache.felix.ipojo.ComponentInstance;
import org.apache.felix.ipojo.test.scenarios.component.SimpleClass;
}
public void testWhenNoInterface() {
IPOJOHelper helper = new IPOJOHelper(this);
String factoryName = "org.apache.felix.ipojo.test.scenarios.component.SimpleClass";
ComponentIns... | 0 |
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.core.Context;
public Response performLogout(@Context HttpServletRequest servletRequest) {
servletRequest.getSession().invalidate(); | 0 |
final InputStream instream,
int buffersize,
final InputStream instream,
final byte[] bytes,
final byte[] bytes,
int buffersize,
final byte[] bytes,
final String s,
final String charset,
final HttpPar... | 0 |
public static ExecutorSettings thermosOnlyWithOverhead(Iterable<Resource> resources) {
executor.clearResources().addAllResources(resources); | 0 |
package org.apache.http.impl.client.cache; | 0 |
// FTPS Reply Codes
public static final int CODE_234 = 234;
public static final int CODE_235 = 235;
public static final int CODE_334 = 334;
public static final int CODE_335 = 335;
public static final int CODE_431 = 431;
public static final int CODE_533 = 533;
public static final int... | 0 |
import com.google.common.collect.ImmutableList;
import java.io.Serializable;
import java.util.List; | 0 |
import java.awt.RenderingHints;
/**
* Sets the specified rendering hints to be used for future renderings.
* @param rh the rendering hints to use
*/
void setRenderingHints(RenderingHints rh);
/**
* Returns the rendering hints this ImageRenderer is using for its
* rendering.
... | 0 |
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.ServiceSelector;
import org.apache.avalon.framework.service.Serviceable;
* @version CVS $Id: TagTransformer.java,v 1.5 2004/02/06 22:56:46 joerg Exp $
i... | 0 |
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* - Redistributions of source code must retain the above copyright
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the f... | 0 |
import org.apache.xml.security.stax.securityEvent.AlgorithmSuiteSecurityEvent;
checkEncryptionMethod(securityEventListener, "http://www.w3.org/2001/04/xmlenc#tripledes-cbc");
checkEncryptionMethod(securityEventListener, "http://www.w3.org/2001/04/xmlenc#tripledes-cbc");
checkEncryptionMethod(sec... | 0 |
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
private final Logger log = LoggerFactory.getLogger(getClass()); | 0 |
*
} else if (frame_type >= Const.SAME_LOCALS_1_STACK_ITEM_FRAME &&
}
} else if (frame_type == Const.FULL_FRAME) {
}
} else if (frame_type == Const.FULL_FRAME) {
} else if (frame_type == Const.FULL_FRAME) {
} else if (frame_type >= Const.SAME_LOCALS_1_... | 0 |
* <li>{@link AccumuloOutputFormat#setConnectorInfo(Job, String, String)}
* Gets the serialized token class from either the configuration or the token file.
* @deprecated since 1.6.0; Use {@link #getAuthenticationToken(JobContext)} instead.
@Deprecated
return getAuthenticationToken(context).getClass()... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.