Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
*
ClassLoader classLoader = ClassLoader.getSystemClassLoader( );
result = classLoader.loadClass( className ); | 0 |
// if dir exist and is empty, then empty list is returned...
// hadoop 1.0 will return null if the file doesn't exist
// hadoop 2.0 will throw an exception if the file does not exist
FileStatus[] tabletDirs = null;
try {
tabletDirs = fs.listStatus(new Path(ServerConstants.getTables... | 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 |
* 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 |
return getPCollectionInputs().stream() | 0 |
import org.apache.xml.security.utils.resolver.ResourceResolverException;
import org.w3c.dom.Attr; | 0 |
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertNotNull;
import static junit.framework.Assert.assertNull;
import static org.easymock.EasyMock.anyObject;
import static org.easymock.EasyMock.capture;
import static org.easymock.EasyMock.createMockBuilder;
import static org.eas... | 0 |
<F, T> Adapter rule(Class<F> fromCls, Class<T> toCls,
SimpleConvertFunction<F,T> toFun,
SimpleConvertFunction<T,F> fromFun);
<F, T> Adapter rule(TypeReference<F> fromRef, TypeReference<T> toRef,
SimpleConvertFunction<F,T> toFun,
SimpleConvertFunction<T,F> fromFun);
<F, T> Adapter rule(Type fromType, Type... | 0 |
InetSocketAddress.createUnresolved("foo", 1234), makePortMap("http-admin", 8080));
Status.ALIVE);
Status.ALIVE);
Status.ALIVE);
Status.ALIVE);
server1.join(InetSocketAddress.createUnresolved("foo", 1000), server1Ports);
server2Ports);
server3.join(InetSocketAddres... | 0 |
public class AlertUpdateEvent extends STOMPEvent { | 1 |
import org.apache.zookeeper.KeeperException;
/**
* Place the host:port advertisement for the Monitor's Log4j listener in ZooKeeper
*
* @param conf
* configuration for the instance
* @param instanceId
* instanceId for the instance
* @param hostAddress
* Address... | 0 |
@SerializedName("url_suffix")
private String urlSuffix = "/jmx";
public String getUrlSuffix() {
return urlSuffix;
} | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
import java.nio.ByteBuffer; | 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 |
Map<String, String> namespace = new HashMap<>(); | 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 |
package org.apache.accumulo.core.trace;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import org.apache.accumulo.core.Constants;
import org.apache.accumulo.core.client.Instance;
import org.apache.accumulo.core.zookeeper.ZooReader;
import org.apache.accumulo.core.zookee... | 1 |
public void prepDelete(ZooStore<T> zs, IZooReaderWriter zk, String path, String txidStr) {
checkGlobalLock(zk, path);
public void prepFail(ZooStore<T> zs, IZooReaderWriter zk, String path, String txidStr) {
checkGlobalLock(zk, path);
public void checkGlobalLock(IZooReaderWriter zk, String path) {
try ... | 0 |
public Object newInstance() throws InstantiationException {
try {
return beanClass.newInstance();
} catch (IllegalAccessException e) {
throw new InstantiationException(e.toString());
} | 0 |
error(String.format("Failed to get %s row count: ", tableName), e);
error("Exception occurred during check for config selected more than once procedure: ", e);
error("Exception occurred during check for host without state procedure: ", e);
error("Exception occurred during topology request ta... | 0 |
* @see #getPixelUnitToMillimeter() | 0 |
private final boolean multiUser;
ExceptionalFunction<FileCopyRequest, File, IOException> fileCopier,
@MultiUserMode boolean multiUser) {
this.multiUser = multiUser;
pidFetcher, new File(executorRootDir, task.getTaskId()), task, fileCopier, multiUser); | 0 |
import static org.apache.aurora.scheduler.updater.StateEvaluator.Result.EVALUATE_AFTER_MIN_RUNNING_MS;
public class OneWayJobUpdateControllerTest extends EasyMockTest {
EVALUATE_AFTER_MIN_RUNNING_MS);
3, InstanceAction.EVALUATE_AFTER_MIN_RUNNING_MS)); | 0 |
import java.io.FileInputStream;
Document doc = XMLUtils.parse(new FileInputStream(new File(dir, file)), false, false); | 0 |
import org.apache.accumulo.core.client.admin.CompactionConfig;
import org.apache.accumulo.proxy.thrift.CompactionStrategyConfig;
List<org.apache.accumulo.proxy.thrift.IteratorSetting> iterators, boolean flush, boolean wait, CompactionStrategyConfig compactionStrategy)
CompactionConfig compactionConfig = new... | 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 ... | 0 |
Copyright 2001,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 applicable l... | 0 |
@Command(scope = "config", name = "list", description = "Lists existing configurations.")
@Argument(index = 0, name = "query", description = "Specify a LDAP query", required = false, multiValued = false) | 0 |
* @version $Revision$ $Date$ | 0 |
import static org.easymock.EasyMock.anyObject;
import static org.easymock.EasyMock.expect;
import org.easymock.EasyMockSupport;
import org.junit.Assert;
import org.junit.Test; | 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 |
protected Trigger getContinuationTrigger(List<Trigger> continuationTriggers) { | 0 |
final int size = stack.size();
final Field[] fields = _clazz.getFields();
for (final Field field : fields) {
final Method[] methods = _clazz.getMethods();
for (final Method method : methods) {
final Attribute[] attributes = _clazz.getAttributes();
for (final Attri... | 1 |
ASSIGN('='), PIPE('|'), SEMICOLON(';'), NEWLINE, ARRAY, CLOSURE, EXPR, EXECUTION, WORD, EOT;
final char push2;
final char pop2;
push2 = 0;
pop2 = 0;
if (peek() == '(') {
getch();
push2 = '(';
... | 0 |
import java.util.HashMap;
import java.util.Map;
import org.apache.ambari.server.orm.dao.RepositoryVersionDAO;
import org.apache.ambari.server.state.RepositoryType;
import com.google.inject.Provider;
private final RepositoryVersionDAO m_repositoryVersionDao = Mockito.mock(RepositoryVersionDAO.class);
m_check.rep... | 0 |
/**
* @deprecated since 1.4
*/ | 0 |
if (bean instanceof Element) {
if (bean instanceof Element) { | 1 |
package org.apache.felix.karaf.gshell.obr;
import org.apache.felix.karaf.gshell.core.OsgiCommandSupport; | 0 |
private List<String> supportedProjectTypes = Arrays.asList( new String[]
} catch (final SCRDescriptorFailureException sdfe) {
final List<Artifact> artifacts = this.project.getCompileArtifacts();
final ArrayList<URL> path = new ArrayList<URL>();
for (final Iterator<Artifact> ai = arti... | 0 |
return Arrays.toString(columnFamily) + ":" + Arrays.toString(columnQualifier) + " ["
+ Arrays.toString(columnVisibility) + "] " + (hasTimestamp ? timestamp : "NO_TIME_STAMP") + " " + Arrays.toString(val) + " " + deleted;
+ (hasTimestamp ? (Boolean.TRUE.hashCode() + Long.valueOf(timestamp).hashCode()... | 0 |
suite.addTest(TestNIOSSLHttp.suite()); | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull; | 0 |
import org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode;
return getInstance().getConnector(getCredentials());
if (this.principal == null || this.getToken() == null)
throw new AccumuloSecurityException("You must provide a user (-u) and password (-p)", SecurityErrorCode.BAD_CREDENTIALS); | 0 |
* Parameter names for HTTP cookie management classes.
* Defines valid date patterns to be used for parsing non-standard
* <code>expires</code> attribute. Only required for compatibility
* with non-compliant servers that still use <code>expires</code>
* defined in the Netscape draft instead of th... | 0 |
package org.apache.jcp.xml.dsig.internal.dom; | 0 |
private Set<String> memberAttributes = new HashSet<>(); | 1 |
return decodeInternal(base64, -1);
if (encoded == null)
return null;
byte []bytes=new byte[encoded.length()];
int len=getBytesInternal(encoded, bytes);
return decodeInternal(bytes, len);
protected static final int getBytesInternal(String s,byte[] result) {
int length=s.length... | 0 |
* Defines events fired by a Form object.
* @version CVS $Id: FormListener.java,v 1.2 2003/04/26 12:10:44 stephan Exp $
* This method is called before
* Semantically similar to that of the
* @param form
* Filters custom request parameter
* not refering to the model.
*
* @para... | 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 |
private static volatile AtlasPluginClassLoader me = null;
AtlasPluginClassLoader ret = me;
if (ret == null) {
synchronized (AtlasPluginClassLoader.class) {
ret = me;
if (ret == null) {
me = AccessController.doPrivileged(new PrivilegedE... | 0 |
TaskTag tag = new TaskTag( task );
tag.setTrim( true ); | 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 |
import com.google.cloud.dataflow.sdk.transforms.DoFn.RequiresWindowAccess;
private final class FormatCountsDoFn
extends DoFn<KV<String, Long>, String> implements RequiresWindowAccess {
@Override
public void processElement(ProcessContext c) {
c.output(c.element().getKey() + ":" + c.e... | 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 |
* package com.example;
*
* <p>If your enumerated type does not provide a {@link java.lang.Object#toString()}
* method, the enum convertor will use the fully qualified class name,
* followed by the name of the public static final field referring to
* each instance, i.e. "com.example.Sex.MALE", "com.example.Sex.FE... | 0 |
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A> | 0 |
workerThreadFactory, | 0 |
long timestamp, long startTime) { | 0 |
import org.apache.http.Consts;
byte[] bytes = "Message content".getBytes(Consts.ISO_8859_1.name());
byte[] bytes = "Message content".getBytes(Consts.ISO_8859_1.name());
String s = new String(bytes2, Consts.ISO_8859_1.name()); | 0 |
import org.apache.ambari.server.configuration.AmbariServerConfiguration;
bind(new TypeLiteral<Encryptor<AmbariServerConfiguration>>() {}).annotatedWith(Names.named("AmbariServerConfigurationEncryptor")).toInstance(Encryptor.NONE); | 0 |
package org.apache.beam.sdk.extensions.euphoria.operator.test.suite;
import org.apache.beam.sdk.extensions.euphoria.operator.test.FlatMapTest;
import org.apache.beam.sdk.extensions.euphoria.operator.test.JoinTest;
import org.apache.beam.sdk.extensions.euphoria.operator.test.ReduceByKeyTest;
import org.apache.beam.sdk.e... | 0 |
import org.junit.Assert; | 0 |
protected AbstractKerberosAuditEventBuilder(Class<? extends TBuilder> builderClass) {
super(builderClass);
}
return self();
return self();
return self();
return self(); | 0 |
Map<Resource.Type, String> mapIds = new HashMap<>();
Map<Resource.Type, String> mapIds = new HashMap<>(); | 0 |
private final String[] testArray = { "a", "b", "c" }; | 0 |
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
@NamedQueries({ @NamedQuery(name = "ClusterConfigEntity.findNextConfigVersion", query = "SELECT COALESCE(MAX(clusterConfig.version),0) + 1 as nextVersion FROM ClusterConfigEntity clusterConfig WHERE clusterConfig.type=:configType AND clusterCon... | 0 |
* @version CVS $Id: AbstractSAXTransformer.java,v 1.4 2003/06/19 11:19:25 jefft Exp $
//if (this.getLogger().isDebugEnabled()) {
// this.getLogger().debug("BEGIN startTransformingElement uri=" + uri + ", name=" + name + ", raw=" + raw + ", attr=" + attr + ")");
//}
//if (this.getLogg... | 0 |
import org.apache.accumulo.core.client.AccumuloClient;
AccumuloClient c = getAccumuloClient(); | 0 |
return String.join(",", builder.command()); | 0 |
import java.util.Arrays;
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SerializableThrowable that = (SerializableThrowable) o;
return Arrays.equals(stackTrace, that.stackTrace);
}
@... | 0 |
* @version $Id$ | 0 |
* Copyright (c) OSGi Alliance (2010, 2015). All Rights Reserved.
* Http Whiteboard Context Package Version 1.0. | 0 |
import org.apache.commons.lang.RandomStringUtils;
String oneWayPort = RandomStringUtils.randomNumeric(4);
String twoWayPort = RandomStringUtils.randomNumeric(4);
ambariProperties.setProperty(Configuration.SRVR_TWO_WAY_SSL_PORT_KEY, twoWayPort.toString());
ambariProperties.setProperty(Configura... | 0 |
import org.apache.http.client.utils.DateUtils; | 0 |
/*
* $Id: FilterImpl.java 44 2007-07-13 20:49:41Z hargrave@us.ibm.com $
*
* Copyright (c) OSGi Alliance (2002, 2006, 2007). All Rights Reserved.
* 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 Lice... | 0 |
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString; | 0 |
*
*/
private static final long serialVersionUID = 1L; | 1 |
import java.util.Properties;
import org.apache.accumulo.core.security.handler.Authenticator;
@Deprecated
* @return the canonical name of the helper class for the security token from the authenticator, if one exists.
* A known SecurityToken type. If uncertain which should be provided, use {@lin... | 0 |
* Autogenerated by Thrift Compiler (0.10.0)
public enum ScanType implements org.apache.thrift.TEnum { | 0 |
* An alert definition was updated.
*/
ALERT_DEFINITION_CHANGED,
/** | 0 |
* <li>{@link AccumuloInputFormat#setClientProperties(JobConf, java.util.Properties)} | 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.beam.sdk.state.TimeDomain; | 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... | 1 |
final Map<String, Header> challenges = new HashMap<>();
final Map<String, Header> challenges = new HashMap<>();
final Map<String, Header> challenges = new HashMap<>();
final Map<String, Header> challenges = new HashMap<>();
final Map<String, Header> challenges = new HashMap<>();
... | 0 |
* A <code>Selector</code> that matches a getMethod() of the HTTP request.
* | 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... | 0 |
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
private static final transient Logger LOG = LoggerFactory.getLogger(XIncludeHandler.class);
LOG.warn(e.getMessage(), e);
LOG.error(e.getMessage(), e);
LOG.error(e.getMessage(), e); | 0 |
import org.apache.commons.jexl3.JexlException;
&& objectClass.equals(obj.getClass())
// ensure method name matches the property name
&& method != null
&& ((property == null && key == null)
|| (property != null && property.equals(key)))) {
... | 0 |
package com.twitter.nexus.util;
import org.apache.commons.io.IOUtils;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import java.io.File;
import java.io.FileOu... | 0 |
return hasAggregators() && aggCount == items.length;
}
public boolean hasAggregators() {
return aggCount > 0; | 0 |
String SVG_EXTERNAL_RESOURCES_REQUIRED_ATTRIBUTE = "externalResourcesRequired"; | 0 |
assertIterableSize(step1res.getCounters(), 1);
assertIterableSize(step1res.getDistributions(), 1);
assertIterableSize(step1res.getGauges(), 1);
assertIterableSize(step2res.getCounters(), 1);
assertIterableSize(step2res.getDistributions(), 1);
assertIterableSize(step2res.getGauges(), 1);
asse... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/UnmodifiableEntrySet.java,v 1.4 2004/01/05 22:15:14 scolebourne Exp $
* Copyright (c) 2003-2004 The Apache Software Foundation. All rights
* @version $Revision: 1.4 $ $Date:... | 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 |
/*
* 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 |
LOG.debug("namenodeIDs " + namenodeIDs);
return !StringUtils.isEmpty(namenodeIDs); | 0 |
value, type.getMapKeyType(), type.getMapValueType(), field.getName());
private Map<Object, Object> verifyMap(Object value, TypeName keyTypeName,
FieldType valueType, String fieldName) {
switch (valueType.getTypeName()) {
case ARRAY:
verifiedMap.put(verifyPrimitiveTy... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.