Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.ambari.logsearch.config.api.LogSearchPropertyDescription;
import static org.apache.ambari.logsearch.common.LogSearchConstants.LOGSEARCH_PROPERTIES_FILE;
@LogSearchPropertyDescription(
name = "hadoop.security.credential.provider.path",
description = "Path to interrogate for protected creden... | 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.ambari.server.security.authorization.AuthorizationException;
@Test
public void testHandleRequest__AuthorizationFailure() throws Exception {
Request request = createMock(Request.class);
RequestBody body = createMock(RequestBody.class);
ResourceInstance resource = createMock(ResourceInst... | 0 |
public class FnApiControlClientPoolService extends BeamFnControlGrpc.BeamFnControlImplBase | 0 |
protected CloudObject initializeCloudObject() {
CloudObject result = CloudObject.forClass(getClass()); | 0 |
super(sql, null, columnIndexes);
super(sql, null, columnNames); | 0 |
package org.apache.commons.ognl; | 0 |
package org.apache.felix.sigil.ui.eclipse.classpath;
import org.apache.felix.sigil.eclipse.SigilCore;
import org.apache.felix.sigil.eclipse.job.ThreadProgressMonitor;
import org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel; | 0 |
/** A lock object for guarding access to the detail events counter. */
private final Object lockDetailEventsCount = new Object();
synchronized (lockDetailEventsCount)
synchronized (lockDetailEventsCount) | 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 not... | 0 |
public class MetricCalculator implements Runnable {
public enum MetricCategory { | 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 |
return getAnimatedLengthAttribute
(null, SVG_X_ATTRIBUTE, SVG_CURSOR_X_DEFAULT_VALUE,
SVGOMAnimatedLength.HORIZONTAL_LENGTH);
return getAnimatedLengthAttribute
(null, SVG_Y_ATTRIBUTE, SVG_CURSOR_Y_DEFAULT_VALUE,
SVGOMAnimatedLength.VERTICAL_LENGTH);
ret... | 0 |
final long[] counts = new long[threads]; | 0 |
* Copyright 2002,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 |
private final SessionRequestCallback callback;
final Object attachment,
final SessionRequestCallback callback) {
this.callback = callback; | 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.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Parameter;
@Parameter( property = "groupId" )
@Parameter( property = "artifactId" )
@Parameter( property = "version" )
@Parameter( property = "packaging" )
@Parameter( property = "classifier" )
@Pa... | 0 |
protected static final String RESOURCES = | 0 |
import java.util.*;
@Test
public void testMergeRoleCommandOrder() throws Exception {
StackInfo stack = stackManager.getStack("HDP", "2.1.1");
// merged role command order with parent stacks
Map<String, Object> roleCommandOrder = stack.getRoleCommandOrder().getContent();
assertTrue(roleCommandOrder.c... | 0 |
if (LOG.isDebugEnabled()) {
if (LOG.isDebugEnabled()) { | 0 |
* principal and keytab (via atlas-application.properties). | 0 |
* A (command parameter) property name used to hold the URL for the LDAP interface to the KDC.
* This value may be null.
*/
public static final String KDC_LDAP_URL = "kdc_ldap_url";
/**
* A (command parameter) property name used to hold the distinguished name (DN) of the container
* in which to store... | 0 |
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights | 0 |
if (this.allNodesMustHaveSameParent && this.getLength() > 0
&& this.item(0).getParentNode() != node.getParentNode()) {
throw new IllegalArgumentException("Nodes have not the same Parent"); | 0 |
verifyFieldTypeSupported(fieldType.getCollectionElementType()); | 0 |
List<String> files = new ArrayList<>();
Set<Integer> tabletIds = new HashSet<>(); | 0 |
@SuppressWarnings("serial") | 0 |
final byte actualPaddingByte = codec.pad; | 0 |
this.addValue(Settings.KEY_LAZY_MODE, s.isLazyMode()); | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.executor.io;
import org.apache.beam.sdk.extensions.euphoria.core.client.io.ExternalIterable;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import static org.junit.Assert.assertEquals;
import static org... | 0 |
assertTrue("invalidBoolean getter method is isInvalidBoolean or getInvalidBoolean",
Arrays.asList("isInvalidBoolean", "getInvalidBoolean")
.contains(pd.getReadMethod().getName())); | 0 |
*
* @version $Id$ | 0 |
ClientContext context =
new ClientContext(instance, new Credentials(principal, token), clientConf);
List<Range> ranges =
autoAdjust ? Range.mergeOverlapping(tableConfig.getRanges()) : tableConfig.getRanges();
BatchInputSplit split =
new BatchInputS... | 0 |
import org.apache.zookeeper.txn.MultiTxn;
import org.apache.zookeeper.txn.Txn;
import java.util.List;
} else if (txn instanceof MultiTxn) {
MultiTxn multiTxn = ((MultiTxn) txn);
List<Txn> txnList = multiTxn.getTxns();
for (int i = 0; i < txnList.size(); i++ ) {
... | 0 |
/**
* @see org.apache.avalon.framework.activity.Disposable#dispose()
*/
/**
* Generate the status information in XML format.
super.contentHandler.startDocument();
super.contentHandler.startPrefixMapping("", NAMESPACE);
super.contentHandler.startPrefixMapping(XLINK_PREFIX, ... | 0 |
String namespaceName = WalkingSecurity.get(state).getNamespaceName();
boolean hasPermission = WalkingSecurity.get(state).canAlterTable(WalkingSecurity.get(state).getSysCredentials(), tableName, namespaceName); | 1 |
import org.apache.cocoon.portal.coplet.CopletInstance;
CopletInstance coplet = null;
CopletInstance coplet, | 0 |
package org.apache.jcp.xml.dsig.internal.dom; | 0 |
import org.apache.xml.security.utils.ClassLoaderUtils;
(Class<SecurityTokenFactory>) ClassLoaderUtils.loadClass(stf, SecurityTokenFactory.class); | 0 |
package org.apache.http.entity.mime.content;
import org.apache.http.entity.mime.MIME; | 0 |
if(src == null){
throw new IllegalArgumentException();
} | 0 |
public void testExactlyOnceSink() {
LOG.warn(
"testExactlyOnceSink() is disabled as Kafka client version does not support transactions."); | 0 |
package org.apache.atlas.repository; | 1 |
* Copyright 2002,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 applic... | 0 |
private List<X509Certificate> certs = new ArrayList<>();
List<String> al = new ArrayList<>(); | 0 |
* or more contributor license agreements. See the NOTICE file
* regarding copyright ownership. The ASF licenses this file
* with the License. You may obtain a copy of the License at
* KIND, either express or implied. See the License for the | 0 |
import org.apache.ambari.server.controller.utilities.PredicateHelper;
import org.apache.ambari.server.controller.utilities.PropertyHelper;
private final Map<Resource.Type, PropertyId> keyPropertyIds;
this.keyPropertyIds = keyPropertyIds;
Set<PropertyId> propertyIds = PropertyHelper.getRequestPropertyIds(this.... | 0 |
}
if (db != null) { | 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 |
private boolean inherit = false;
private boolean export = false;
/** Should we export tag libraries to our parents context */
private boolean exportLibraries = true;
isInherit() ) {
if ( isExport() ) {
if (isExportLibraries() && parent != null) {
... | 0 |
@Nullable abstract Integer minNumberOfSplits();
* It's possible that system.size_estimates isn't populated or that the number of splits
* computed by Beam is still to low for Cassandra to handle it.
* This setting allows to enforce a minimum number of splits in case Beam cannot compute
* it corr... | 0 |
* @version $Id$ | 0 |
public void open(KerberosCredential administratorCredentials, String defaultRealm, Map<String, String> kerberosConfiguration) throws KerberosOperationException { | 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.sshd.common.file.FileSystemAware;
import org.apache.sshd.common.file.FileSystemView;
import org.apache.sshd.common.file.SshFile; | 0 |
@Override
public List<String> getActiveLogs(TInfo tinfo, TCredentials credentials) throws TException {
return null;
} | 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 |
* @since 3.0
* @since 3.3 | 0 |
registerBeanFactory( "progressBar", JProgressBar.class ); | 0 |
data = (data == null)? "null".getBytes() : data; | 0 |
.setProxy(new HttpHost("myproxy", 8080))
.setProxy(new HttpHost("myotherproxy", 8080)) | 0 |
package org.apache.atlas.query;
import org.apache.atlas.query.Expressions.Expression;
public class GremlinTranslator {
private Expression expression;
public GremlinTranslator(Expression expression) {
this.expression = expression;
public GremlinQuery translate() {
GremlinQuery ret = null;
... | 1 |
* $Header: /cvshome/build/org.osgi.framework/src/org/osgi/framework/Filter.java,v 1.16 2007/02/21 16:49:05 hargrave Exp $
* Copyright (c) OSGi Alliance (2000, 2007). All Rights Reserved.
* "(cn=Babs Jensen)"
* "(!(cn=Tim Howes))"
* "(&(" + Constants.OBJECTCLASS + "=Person)... | 0 |
return a.version.equals(this.version); | 1 |
String row = new KeyExtent(Table.ID.of(tableId), endRow == null ? null : new Text(endRow), null).getMetadataEntry().toString();
String row = new KeyExtent(Table.ID.of(tableId), endRow == null ? null : new Text(endRow), null).getMetadataEntry().toString();
gce.tableIds.add(Table.ID.of("4"));
tids.add... | 1 |
public void resolve(ComponentModule parent, Map<String, StackModule> allStacks,
Map<String, ServiceModule> commonServices, Map<String, ExtensionModule> extensions) { | 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 com.jcraft.jsch.JSch;
new Object[]{BuiltinCiphers.aes128cbc, com.jcraft.jsch.jce.AES128CBC.class, NUM_LOADTEST_ROUNDS},
new Object[]{BuiltinCiphers.tripledescbc, com.jcraft.jsch.jce.TripleDESCBC.class, NUM_LOADTEST_ROUNDS},
new Object[]{BuiltinCiphers.b... | 1 |
frameworkEvent(new FrameworkEvent(FrameworkEvent.STARTED, m_bctx.getBundle(), null)); | 0 |
settings.getReloadDelay("config")); | 0 |
* @throws NullPointerException if map or factory is null
* @throws NullPointerException if map or factory is null
* @throws NullPointerException if map or factory is null
throw new NullPointerException("Factory must not be null");
* @throws NullPointerException if map or factory is null
... | 0 |
connector = getInstance().getConnector(getCredentials()); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestAll.java,v 1.8 2003/09/09 03:03:57 psteitz Exp $
* @version $Revision: 1.8 $ $Date: 2003/09/09 03:03:57 $
suite.addTest(TestPredicatedBag.suite());
... | 0 |
import org.apache.accumulo.harness.AccumuloClusterHarness;
public class DeleteEverythingIT extends AccumuloClusterHarness { | 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 |
protected Long decodeUnchecked(byte[] data, int offset, int len) {
return super.decodeUnchecked(data, offset, len) ^ 0x8000000000000000l; | 0 |
public ServiceManager getManager() {
return manager;
}
public void setManager(ServiceManager manager) {
this.manager = manager;
} | 0 |
return resolveURI(uri, contextBase, null);
public Source resolveURI(String uri, String base, Map params) throws MalformedURLException, IOException {
return resolveURI(uri.substring("context://".length()), this.contextBase, params);
URL baseURL = new URL(base);
URL url = n... | 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 |
public synchronized boolean transactionAlive(String txType, long tid) throws Exception { | 0 |
client = ThriftUtil.getTServerClient(location, instance.getConfiguration(), timeoutTracker.getTimeOut()); | 0 |
// TODO(wfarner): Enable this if we decide to use this instead of pushing it into the mesos
// core.
//private final ResourceScanner resourceScanner;
//this.resourceScanner = new LinuxProcScraper();
/*
for (Task task : taskManager.getTaskRunners()) {
if (task instanceof TaskRunner) {
... | 0 |
* This class makes use of <a href="https://commons.apache.org/jxpath/"> Commons | 0 |
import org.apache.sshd.server.command.Command; | 0 |
return true;
return CSSConstants.CSS_FONT_SIZE_ADJUST_PROPERTY;
switch (lu.getLexicalUnitType()) {
case LexicalUnit.SAC_INHERIT:
return ValueConstants.INHERIT_VALUE;
if (lu.getStringValue().equalsIgnoreCase
return ValueConstants.NONE_VALUE;
... | 1 |
pipeTest("test", "test1/test.xml");
pipeTest("test2", "test2/test.xml");
}
public void testBlockSource3() throws Exception {
pipeTest("test3", "test1/test.xml");
}
public void testBlockSourceSub1() throws Exception {
pipeTest("sub/test", "test1/sub/test.xml");
}
... | 0 |
import com.google.common.base.Preconditions;
Preconditions.checkNotNull(filename, "log4j configuration filename must not be null");
usingProperties = filename.endsWith(".properties"); | 0 |
import org.apache.beam.sdk.values.Schema;
protected Schema schema;
public BaseBeamTable(Schema schema) {
this.schema = schema;
@Override public Schema getSchema() {
return schema; | 0 |
import org.apache.accumulo.core.client.AccumuloClient;
TableOptions from(AccumuloClient conn);
private AccumuloClient conn;
public TableOptions from(AccumuloClient conn) { | 0 |
List<String> files = new ArrayList<>(); | 1 |
import org.apache.ambari.server.state.ServiceInfo;
ServiceInfo.ServiceAdvisorType serviceAdvisorType,
super(recommendationsDir, recommendationsArtifactsLifetime, serviceAdvisorType, requestId, saRunner, metaInfo); | 0 |
import org.apache.beam.dsls.sql.schema.BeamSqlRow;
PCollection<BeamSqlRow> outputStream = BeamSqlCli.compilePipeline(sql, pipeline);
PCollection<BeamSqlRow> outputStream = BeamSqlCli.compilePipeline(sql, pipeline);
PCollection<BeamSqlRow> outputStream = BeamSqlCli.compilePipeline(sql, pipeline);
PCollec... | 0 |
/**
*
*
return
* | 0 |
* @return the entity content as a String | 0 |
import com.google.common.base.Strings;
* {@link Builder#withoutStrictParsing()}. Empty or null arguments will be ignored whether
* or not strict parsing is enabled.
* {@link Builder#withoutStrictParsing()}. Empty or null arguments will be ignored whether
* or not strict parsing is enabled.
* name or ... | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Joiner;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Ordering; | 0 |
public static int log(Object fmt, Object... arr) {
//System.out.println(String.format(fmt.toString(), arr));
return arr == null ? 0 : arr.length;
public static int log(Object fmt, int... arr) {
//System.out.println(String.format(fmt.toString(), arr));
retu... | 0 |
import java.io.Serializable;
import org.apache.beam.sdk.transforms.SerializableFunction;
import org.apache.beam.sdk.values.Row;
public static <T> SchemaCoder<T> of(
Class<T> clazz,
Schema schema,
SerializableFunction<T, Row> toRowFunction,
SerializableFunction<Row, T> fromRowFunction) throws N... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.