Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import com.twitter.mesos.gen.RewriteConfigsRequest;
import com.twitter.mesos.gen.RewriteConfigsResponse;
@Override
public RewriteConfigsResponse rewriteConfigs(RewriteConfigsRequest request, SessionKey session) {
// TODO(William Farner): Implement this.
return new RewriteConfigsResponse()
.setMessa... | 0 |
* limitations under the License. | 0 |
= "org.osgi.framework.startlevel"; | 0 |
@SuppressWarnings("serial") | 0 |
@Service(provides = { ServiceProvider2.class }, factoryMethod="create") | 0 |
* This is an implementation of the {@link Settings} object.
* The value can either be set using the various setter methods
* or through properties ({@link #configure(Properties)}.
*
* The object can be set to read-only using {@link #makeReadOnly()}. From that
* on the object is immutable and can't be changed anym... | 0 |
* Bridge class for the <feDiffuseLighting> element.
* Constructs a new bridge for the <feDiffuseLighting> element. | 0 |
* Parser Utility Methods.
* This class contains helper method to parse iPOJO metadata.
* Parses the iPOJO string form of an array as {a, b, c}
* or [a, b, c].
* @param str the string form
* Parses the string form of an array as {a, b, c}
* or [a, b, c] as a list.
* @param str the string ... | 0 |
package org.apache.ambari.server.api.resources; | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
public class BaltimoreXPathFilter2ThreeTest extends org.junit.Assert {
public BaltimoreXPathFilter2ThreeTest() {
String fs = System.getProperty("file.separator");
String base = System.getProperty("basedir") == null ? "./": System.getProperty("basedir");
base += fs + "data"
+ fs +... | 0 |
.addIfNotDefault(DisplayData.item("host", host)
.withLabel("Datastore Service"), DEFAULT_HOST)
.addIfNotNull(DisplayData.item("dataset", datasetId)
.withLabel("Input Dataset"))
.addIfNotNull(DisplayData.item("namespace", namespace)
.withLabel("App Engine... | 0 |
if (literal == null || clazz == null || Double.isNaN(literal.doubleValue())) {
return "NaN";
}
}
StringBuilder strb = new StringBuilder(literal.toString());
if (clazz != null) {
if (Float.class.equals(clazz)) {
strb.append('f');
... | 1 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Optional;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Supplier;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
... | 0 |
import java.util.Arrays;
import java.util.Dictionary;
import org.osgi.framework.BundleContext;
* Registers all unnamed dependencies into a given service. Named dependencies are | 0 |
/*******************************************************************************
* Copyright (C) 2014 Google Inc.
*
* 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.... | 0 |
tmpMap.put(_Fields.TINFO, new org.apache.thrift.meta_data.FieldMetaData("tinfo", org.apache.thrift.TFieldRequirementType.DEFAULT,
tmpMap.put(_Fields.CREDENTIALS, new org.apache.thrift.meta_data.FieldMetaData("credentials", org.apache.thrift.TFieldRequirementType.DEFAULT,
if (schemeField.type == or... | 0 |
import java.util.HashMap;
import java.util.Map;
* @version CVS $Id: Form.java,v 1.16 2004/02/04 17:25:57 sylvain Exp $
private Map attributes;
public Object getAttribute(String name) {
return this.attributes == null ? null : this.attributes.get(name);
}
public void setAttribute(String... | 0 |
import java.util.Collections;
import org.apache.ambari.server.orm.entities.UserAuthenticationEntity;
UserAuthenticationEntity userAuthenticationEntity = new UserAuthenticationEntity();
userAuthenticationEntity.setAuthenticationType(UserAuthenticationType.LOCAL);
userAuthenticationEntity.setAuthenticationK... | 0 |
import org.apache.beam.runners.core.construction.SerializablePipelineOptions;
SerializablePipelineOptions options,
super(options, sideInputs, windowingStrategy); | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.MoreObjects.firstNonNull;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull; | 0 |
lastChange = new ChangeRecord(-1, path, n.stat, children.size(), | 0 |
Copyright 2002 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 or a... | 0 |
.withMinNumberOfSplits(20) | 0 |
* @param filter BufferedImageOp filter to be converted | 1 |
package org.apache.beam.sdk.extensions.sql.impl.rule;
import org.apache.beam.sdk.extensions.sql.impl.rel.BeamIntersectRel;
import org.apache.beam.sdk.extensions.sql.impl.rel.BeamLogicalConvention; | 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 |
@Test
public void testWindowGetName() {
assertEquals("Window.Into(FixedWindows, DefaultTrigger, DISCARDING_FIRED_PANES)",
Window.<String>into(FixedWindows.of(Duration.standardMinutes(10))).getName());
} | 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 |
final TimeValue timeValue = PoolingAsyncClientConnectionManager.this.validateAfterInactivity;
if (TimeValue.isPositive(timeValue) && connection != null &&
poolEntry.getUpdated() + timeValue.toMillis() <= System.currentTimeMillis()) { | 0 |
return new MesosSchedulerDriver(
scheduler,
frameworkInfo,
master,
false, // Disable implicit acknowledgements.
credentials.get());
return new MesosSchedulerDriver(
scheduler,
frameworkInfo,
master,
false); // Disable ... | 0 |
// ignored | 0 |
ServiceComponent serviceComponent = cluster.getService(serviceName).getServiceComponent(componentName);
ServiceComponentHost serviceComponentHost = serviceComponent.getServiceComponentHost(hostname);
if( !serviceComponent.isClientComponent()) {
if (currentDesiredState != State.STARTED)... | 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 applica... | 0 |
Document document = XMLUtils.newDocument(false); | 0 |
super(org.apache.commons.bcel6.Const.DASTORE); | 0 |
import org.apache.cocoon.spring.impl.ResourceUtils; | 0 |
import org.apache.aurora.scheduler.app.SchedulerMain;
import org.apache.mesos.v1.scheduler.V0Mesos;
import org.apache.mesos.v1.scheduler.V1Mesos;
import static com.google.common.base.Preconditions.checkState;
private final SchedulerMain.DriverKind kind;
public LibMesosLoadingModule(SchedulerMain.DriverKind kind)... | 0 |
* Sets the name of the input table, over which this job will scan. At least one table is
* required before calling store(Job)
/**
* Finish configuring, verify and serialize options into the JobConf or Job
*/
void store(T j) throws AccumuloException, AccumuloSecurityException;
interface In... | 0 |
* $Source: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbcp/src/test/org/apache/commons/dbcp/TestDelegatingPreparedStatement.java,v $
* $Revision: 1.3 $
* $Date: 2003/08/22 16:08:32 $
* Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* any, must include the fo... | 0 |
import org.apache.ambari.logsearch.model.request.impl.query.HostLogFilesQueryRequest;
HostLogFilesRequest request = new HostLogFilesQueryRequest();
HostLogFilesRequest request = new HostLogFilesQueryRequest(); | 0 |
package org.apache.commons.ognl; | 0 |
// use some jar: URL
config.setURL(new URL("jar:" + new File("conf/resources.jar").getAbsoluteFile().toURL() + "!/test-jar.xml")); | 0 |
import static com.google.common.base.Charsets.UTF_8;
alg.update(uuid.getBytes(UTF_8)); | 0 |
* @version $Revision$ | 0 |
final String specials="/abcd!$&*()_-+.,=:;'~@[]?<>|#^%\"{}\\\u00a3`\u00ac\u00a6xyz"; // N.B. excludes space
final String specials="/ abcd!$&*()_-+.,=:;'~<>/@[]|#^%\"{}\\`xyz"; // N.B. excludes \u00a3`\u00ac\u00a6 | 0 |
// System.out.println("cx : " + cx + " fx : " + fx +
// " cy : " + cy + " fy : " + fy + " r: " + r);
// System.out.println("gradientTransform : " + at);
// System.out.println("shearX : " + at.getShearX());
// System.out.println("offset[" + i +... | 0 |
import java.util.Set;
| 0 |
import org.apache.accumulo.core.client.AccumuloClient;
try (AccumuloClient client = getClient()) {
log.info("Creating table");
log.info("splitting metadata table");
client.tableOperations().create(tableName);
SortedSet<Text> splits = new TreeSet<>();
for (byte b : "123456789abcde".getB... | 0 |
throw new IllegalArgumentException("Null Source for Filter Chain"); | 0 |
import org.apache.beam.vendor.grpc.v1_13_1.com.google.protobuf.ByteString; | 0 |
// NOTE:We would like to use 'x' & 'y' here instead of
// '0', '0' but this will fail on MacOSX. Since it
// doesn't have an effect on other JVMs.
raster = raster.createWritableChild
(raster.getMinX(), raster.getMinY(), w, h, 0, 0, nul... | 0 |
/**
* 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 or agreed to in writing, software
* distribu... | 0 |
public List<Object> getList(String key, List<?> defaultValue)
// This is okay because we just return this list to the caller
@SuppressWarnings("unchecked")
List<Object> resultList = (List<Object>) defaultValue;
return resultList; | 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 SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may... | 0 |
/** A set of helper functions and classes used by {@link BigQueryIO}. */
/** Status of a BigQuery job or request. */
/** Return a displayable string representation for a {@link TableReference}. */
static ValueProvider<String> displayTable(@Nullable ValueProvider<TableReference> table) {
/** Returns a canonical ... | 0 |
try (final HttpAsyncResponseProducer responseProducer = outgoing.getProducer()) { | 0 |
* @version CVS $Id: CopletSource.java,v 1.3 2003/07/03 08:00:00 cziegeler Exp $
* @see org.apache.excalibur.xml.sax.XMLizable#toSAX(ContentHandler) | 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 |
to.initialize(); | 0 |
private static final long serialVersionUID = -5802191977296683162L; | 0 |
* @deprecated Either use {@link #getContent()} and call {@link java.io.InputStream#close()} on that;
* otherwise call {@link #writeTo(OutputStream)} which is required to free the resources.
public void consumeContent() throws IOException { | 0 |
* A wrapper around a byte[] that uses structural, value-based equality rather than byte[]'s normal
* object identity. | 1 |
public Coder<T> getOutputCoder() { | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.client.io;
import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestPredicatedSortedMap.java,v 1.2 2003/09/20 17:05:36 scolebourne Exp $
import java.util.Map;
import junit.framework.Test;
import junit.framework.TestSuite;
* @... | 0 |
import org.apache.xml.security.transforms.params.XPathContainer; | 0 |
String JOB_STATE_UNKNOWN = "UNKNOWN";
String JOB_STATE_INITIALIZED = "INITIALIZED";
String JOB_STATE_RUNNING = "RUNNING";
String JOB_STATE_FINISHED = "SUCCEEDED";
String JOB_STATE_CANCELED = "CANCELED";
String JOB_STATE_CLOSED = "CLOSED";
String JOB_STATE_ERROR = "ERROR";
String JOB_STATE_PENDING = "PEN... | 0 |
void setSideInputAccessorFromProcessContext(DoFn<?, ?>.ProcessContext context) { | 0 |
import org.apache.http.params.CoreProtocolPNames;
request.getParams().setBooleanParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE, true); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/TransformIterator.java,v 1.2 2002/10/12 22:15:21 scolebourne Exp $
* $Revision: 1.2 $
* $Date: 2002/10/12 22:15:21 $ | 0 |
if (!(e instanceof AccumuloException) || !(e.getCause() instanceof TableNotFoundException)
|| !(e.getCause().getCause() instanceof NamespaceNotFoundException))
if (!(e instanceof TableNotFoundException) || !(e.getCause() instanceof NamespaceNotFoundException)) | 0 |
String componentName = m_factories[j].getComponentTypeName();
if (conf.get("component") != null && (conf.get("component").equals(componentClass) || conf.get("component").equals(factoryName)) || conf.get("component").equals(componentName)) { | 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 |
ServiceComponentDesiredStateDAO componentDesiredStateDAO =
injector.getInstance(ServiceComponentDesiredStateDAO.class);
componentDesiredStateDAO.create(componentDesiredStateEntity);
| 0 |
* @since 3.0 | 0 |
return Collections.enumeration(m_map.values());
return Collections.enumeration(m_map.keySet()); | 0 |
if (table.matches(cl.getOptionValue(optTablePattern.getOpt())))
tablesToFlush.add(table); | 1 |
@Override
@Override
@Override | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
Node child = new XMLNode(attr.getName(),
node.addAttribute(child);
if (isAttribute())
if (isAttribute())
if (newNode.isAttribute())
List attrs = node.getAttributes(name);
elem.removeAttribute(name);
... | 0 |
import static org.apache.accumulo.monitor.util.ParameterValidator.HOSTNAME_PORT_REGEX;
@QueryParam("server") @NotNull @Pattern(regexp = HOSTNAME_PORT_REGEX) String server) {
@PathParam("address") @NotNull @Pattern(regexp = HOSTNAME_PORT_REGEX) String tserverAddress)
MessageDigest digester = MessageDig... | 0 |
protected Map<String,Object> additionalProperties = new HashMap<>(); | 0 |
import org.apache.sshd.common.PtyMode;
private final Map<String, String> env;
private final Map<PtyMode, Integer> ptyModes;
ptyModes = new ConcurrentHashMap<PtyMode, Integer>();
public Map<PtyMode, Integer> getPtyModes() {
return ptyModes;
}
getEnvir... | 0 |
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.google.inject.Gu... | 0 |
import org.osgi.service.upnp.UPnPLocalStateVariable;
public class StatusStateVariable implements UPnPLocalStateVariable{
private LightModel model;
public StatusStateVariable(LightModel model){
this.model= model;
public Object getCurrentValue() {
return Boolean.valueOf(model.getStatus());
} | 0 |
assertEquals(-1,
commonPrefixHelper(new String("aaa"), new ArrayByteSequence("aaa").toString()));
assertEquals(-1,
commonPrefixHelper("abababababab".substring(3, 6), "ccababababcc".substring(3, 6)));
RelativeKey.SkippR skippr = RelativeKey.fastSkip(in, seekKey, value, prevKey, currKey,
... | 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 |
final ImmediateComponentManager cm = createComponentManager();
final ComponentInstance instance = cm.getComponentInstance();
m_componentInstances.put( cm, instance );
return instance; | 0 |
public Jira359TestCase(final String name) {
public static void main(final String[] args) {
final ArrayConverter converter = new ArrayConverter(String[].class, new StringConverter());
final BeanUtilsBean utils = new BeanUtilsBean();
final SimplePojoData simplePojo = new SimplePojoData();
... | 0 |
package org.apache.felix.framework.util.ldap; | 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
... | 0 |
public static File[] convertFileCollectionToFileArray(Collection<File> files) {
return files.toArray(new File[files.size()]);
private static void innerListFiles(Collection<File> files, File directory,
public static Collection<File> listFiles(
Collection<File> files = new java.util.LinkedLis... | 0 |
@Deprecated | 0 |
// we ignore include-beans if this is a child context as this has already been
// processed by the sitemap element
if ( this.isRootContext ) {
this.handleBeanInclude(contextURI, componentConfig);
} | 0 |
volatile Map<String,String> attributes;
Map<String,String> attributes) {
case EXTERNAL :
case REPO :
files.add(file);
return true;
case PROJECT :
File[] fs = project.build();
reporter.getInfo(project);
if (fs == null)
return false;
for (File f : fs)
files.add(f);
retu... | 0 |
// Implementstion methods | 0 |
import org.apache.commons.vfs2.VFS;
String scheme = UriParser.extractScheme(context.getFileSystemManager().getSchemes(), uri, name); | 0 |
/*if (Continuation.currentContinuation() != null)
throw new RuntimeException("Conitnuation should not exist");*/
public boolean doSimpleTest() {
}
public void doNewTest() {
Locale locale = null;
public void doCatchTest() {
public void doAbstractTest() {
public void do... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.