Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.beam.sdk.io.Write; | 0 |
import org.osgi.framework.Version;
ResourceImpl f1 = new ResourceImpl("F1", IdentityNamespace.TYPE_FRAGMENT, Version.emptyVersion);
ResourceImpl f2 = new ResourceImpl("F2", IdentityNamespace.TYPE_FRAGMENT, Version.emptyVersion); | 0 |
import org.apache.aurora.scheduler.storage.db.DbUtil;
storage = DbUtil.createStorage(); | 0 |
if (this == n)
throw createDOMException
(DOMException.HIERARCHY_REQUEST_ERR,
"add.self", new Object[] { getNodeName() });
| 0 |
* A general {@link GroupAlsoByWindowsAggregators}. This delegates all of the logic to the
GroupAlsoByWindowsAggregators.DROPPED_DUE_TO_CLOSED_WINDOW_COUNTER, Sum.ofLongs());
createAggregator(
GroupAlsoByWindowsAggregators.DROPPED_DUE_TO_LATENESS_COUNTER, Sum.ofLongs()); | 0 |
* in the form of an Object[].
*
* <p>The first time the Introspector sees a class it creates a class method map
* This mapping is performed for all the public methods of a class and stored.</p>
* | 0 |
File conf = folder1.newFile("accumulo.properties");
out.append("general.classpaths=\n");
out.append("general.vfs.classpaths=\n");
File conf = folder1.newFile("accumulo.properties");
out.append("general.classpaths=\n");
out.append(
"general.vfs.classpaths=" + new File(folder1.getRoot(), "HelloWorld.jar").toURI() + "\n");
File conf = folder1.newFile("accumulo.properties");
out.append("general.classpaths=\n");
out.append("general.vfs.classpaths=\n");
File conf = folder1.newFile("accumulo.properties");
out.append("general.classpaths=\n");
out.append(AccumuloVFSClassLoader.VFS_CACHE_DIR + "=" + cacheDir + "\n"); | 0 |
if (!tls.extent.getTableId().equals(tableId)) {
break;
}
if (pr != null && (tls.extent.getPrevEndRow() == null || !tls.extent.getPrevEndRow().equals(pr)))
if (tls.extent.getPrevEndRow() != null && extent.getEndRow() != null && tls.extent.getPrevEndRow().compareTo(extent.getEndRow()) > 0) { | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* version 1.1, a copy of which has been included with this distribution in *
* the LICENSE file. *
*****************************************************************************/
package org.apache.batik.bridge;
/**
* A tagging interface that all bridges must implement.
*
* @author <a href="mailto:Thierry.Kormann@sophia.inria.fr">Thierry Kormann</a>
* @version $Id$
*/
public interface Bridge {
} | 1 |
SimpleRequestProducer.create(request, null),
SimpleResponseConsumer.create(), | 0 |
Cache<String,Long> fileLenCache = tabletResources.getTabletServerResourceManager()
.getFileLenCache();
getTabletServer().getFileSystem(), tableConfiguration, sc, ic, fileLenCache, context); | 0 |
protected boolean encodeCharacters = true;
if (isCdataElement(local)) {
this.encodeCharacters = false;
}
if (isCdataElement(local)) {
this.encodeCharacters = true;
}
/**
* script and style are CDATA sections by default, so no encoding
* @param localName The local name of the element.
* @return If the element should be serialized without encoding.
*/
protected boolean isCdataElement(String localName) {
String upperCase = localName.toUpperCase();
return "SCRIPT".equals(upperCase) || "STYLE".equals(upperCase);
}
/**
* Encode and write a specific part of an array of characters.
*/
protected void encode(char data[], int start, int length)
throws SAXException {
if (this.encodeCharacters) {
super.encode(data, start, length);
} else {
this.write(data, start, length);
}
} | 0 |
// GCSUtil.expand() should not fail for non-existent single files or directories, since GCS file
// listing is only eventually consistent.
@Test
public void testNonExistent() throws IOException {
GcsOptions pipelineOptions = PipelineOptionsFactory.as(GcsOptions.class);
pipelineOptions.setGcpCredential(Mockito.mock(Credential.class));
GcsUtil gcsUtil = pipelineOptions.getGcsUtil();
Storage mockStorage = Mockito.mock(Storage.class);
gcsUtil.setStorageClient(mockStorage);
Storage.Objects mockStorageObjects = Mockito.mock(Storage.Objects.class);
Storage.Objects.List mockStorageList = Mockito.mock(Storage.Objects.List.class);
Objects modelObjects = new Objects();
List<StorageObject> items = new ArrayList<>();
// A directory
items.add(new StorageObject().setBucket("testbucket").setName("testdirectory/"));
modelObjects.setItems(items);
when(mockStorage.objects()).thenReturn(mockStorageObjects);
when(mockStorageObjects.list("testbucket")).thenReturn(mockStorageList);
when(mockStorageList.execute()).thenReturn(modelObjects);
{
GcsPath pattern = GcsPath.fromUri("gs://testbucket/testdirectory/nonexistentfile");
List<GcsPath> expectedFiles =
ImmutableList.of(GcsPath.fromUri("gs://testbucket/testdirectory/nonexistentfile"));
assertThat(expectedFiles, contains(gcsUtil.expand(pattern).toArray()));
}
{
GcsPath pattern = GcsPath.fromUri("gs://testbucket/testdirectory/nonexistentdirectory/");
List<GcsPath> expectedFiles =
ImmutableList.of(GcsPath.fromUri("gs://testbucket/testdirectory/nonexistentdirectory/"));
assertThat(expectedFiles, contains(gcsUtil.expand(pattern).toArray()));
}
} | 0 |
Map<String, Set<String>> overriddenProperties = new HashMap<String, Set<String>>();
if (property.getValue() == null) {
continue;
}
// if (clusterConfigs == null || (!clusterConfigs.getProperties().containsKey(property.getName()) && property.getPropertyAmbariUpgradeBehavior().isAdd())) {
// LOG.info("Config " + property.getName() + " from " + configType + " from xml configurations" +
// " will be added...");
// if (!newProperties.containsKey(configType)) {
// newProperties.put(configType, new HashSet<String>());
// }
// newProperties.get(configType).add(property.getName());
// } else if (clusterConfigs.getProperties().containsKey(property.getName())) {
// if (property.getPropertyAmbariUpgradeBehavior().isDelete()) {
// LOG.info("Config " + property.getName() + " from " + configType + " from xml configurations" +
// " will be removed...");
// continue;
// } else if (property.getPropertyAmbariUpgradeBehavior().isChange()) {
// LOG.info("Config " + property.getName() + " from " + configType + " from xml configurations" +
// " will be overridden...");
// if (!overriddenProperties.containsKey(configType)) {
// overriddenProperties.put(configType, new HashSet<String>());
// }
// overriddenProperties.get(configType).add(property.getName());
// }
// }
for (Entry<String, Set<String>> overriddenProperty : overriddenProperties.entrySet()) {
updateConfigurationPropertiesWithValuesFromXml(overriddenProperty.getKey(), overriddenProperty.getValue(), true, true);
} | 0 |
// this setting only works for DOM, so no JDOM tests :|
protected JXPathContext createContext(String model) {
return context;
}
protected void doTest(String xpath, String model, String expected) {
assertXPathValue(createContext(model), xpath, expected);
doTest("/ElementA/B:ElementB", model, "MY VALUE");
}
protected void doTestCreateAndSetAttribute(String model) {
assertXPathCreatePathAndSetValue(createContext(model),
"/ElementA/@A:newAttr", "newValue", "/ElementA[1]/@A:newAttr");
public void testCreateAndSetAttributeDOM() {
doTestCreateAndSetAttribute(DocumentContainer.MODEL_DOM);
}
| 0 |
import org.apache.http.client.RoutedRequest;
import org.apache.http.conn.HttpRoute;
final HttpRoute route = new HttpRoute(target, null, false);
final RoutedRequest roureq = new RoutedRequest.Impl(req, route);
HttpResponse rsp = client.execute(roureq, null); | 0 |
* This implementation for the <code>ScriptSecurity</code> interface. | 0 |
import org.apache.beam.vendor.grpc.v1_13_1.com.google.protobuf.ByteString; | 0 |
* @version $Id$
init(cr, bounds, cm, sm,
cr.getTileGridXOffset(), cr.getTileGridYOffset(),
| 0 |
import org.apache.felix.dm.annotation.api.ServiceDependency; | 0 |
* @author William Farner | 0 |
package org.apache.xml.security.stax.impl.algorithms;
import org.apache.xml.security.stax.ext.XMLSecurityException; | 0 |
System.out.println("\"" + methodName + "\" callback not found on component instances "
m_logger.log(LogService.LOG_ERROR, "\"" + methodName + "\" callback not found on component instances " | 0 |
import com.google.common.collect.Iterables;
import java.util.Objects;
ImmutableList.<TaggedPValue>builder()
.add(Iterables.getOnlyElement(pc.expand()))
ImmutableList.Builder<TaggedPValue> builder = ImmutableList.builder();
builder.addAll(pcollections);
builder.add(Iterables.getOnlyElement(pc.expand()));
return new PCollectionList<>(pipeline, builder.build());
@SuppressWarnings("unchecked") // Type-safe by construction
PCollection<T> value = (PCollection<T>) pcollections.get(index).getValue();
return value;
ImmutableList.Builder<PCollection<T>> res = ImmutableList.builder();
for (TaggedPValue value : pcollections) {
@SuppressWarnings("unchecked") // Type-safe by construction
PCollection<T> typedValue = (PCollection<T>) value.getValue();
res.add(typedValue);
}
return res.build();
// ImmutableMap has a defined iteration order.
final List<TaggedPValue> pcollections;
this(pipeline, ImmutableList.<TaggedPValue>of());
PCollectionList(Pipeline pipeline, List<TaggedPValue> values) {
this.pcollections = ImmutableList.copyOf(values);
public List<TaggedPValue> expand() {
for (TaggedPValue tpv : pcollections) {
@SuppressWarnings("unchecked")
PCollection<T> pc = (PCollection<T>) tpv.getValue();
for (TaggedPValue pc : pcollections) {
pc.getValue().finishSpecifying();
for (TaggedPValue pc : pcollections) {
pc.getValue().finishSpecifyingOutput();
@Override
public boolean equals(Object other) {
if (!(other instanceof PCollectionList)) {
return false;
}
PCollectionList that = (PCollectionList) other;
return this.pipeline.equals(that.pipeline) && this.pcollections.equals(that.pcollections);
}
@Override
public int hashCode() {
return Objects.hash(this.pipeline, this.pcollections);
} | 0 |
pmtCount = currentPmtCount; | 0 |
@Override
public ComparisonPredicate<T> copy(String propertyId) {
return new EqualsPredicate<T>(propertyId, getValue());
} | 0 |
Map<String, Object> map = new TreeMap<>(); | 1 |
chooseMaximumNumberOfThreads(options), THREAD_EXPIRATION_TIME_SEC, TimeUnit.SECONDS,
private static int chooseMaximumNumberOfThreads(DataflowWorkerHarnessOptions pipelineOptions) {
if (pipelineOptions.getNumberOfWorkerHarnessThreads() != 0) {
return pipelineOptions.getNumberOfWorkerHarnessThreads();
}
return MAX_PROCESSING_THREADS;
}
+ "/" + workUnitExecutor.getMaximumPoolSize() + "<br>"); | 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 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
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
if (args.length < 2) {
err.println("'ls2' has been deprecated. "
+ "Please use 'ls [-s] path' instead."); | 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.jelly;
/**
* Mock class providing the declarations required to compile the Cocoon code when
* the actual library is not present.
*
* @version $Id$
*/
public class JellyTagException extends JellyException {
public JellyTagException() {
}
} | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Lists;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.util.concurrent.Uninterruptibles; | 0 |
import org.apache.sshd.util.test.JUnitTestSupport;
public class NoCloseWriterTest extends JUnitTestSupport { | 0 |
package org.apache.beam.sdk.extensions.euphoria.beam.testkit;
import org.apache.beam.sdk.extensions.euphoria.operator.test.FlatMapTest;
import org.apache.beam.sdk.extensions.euphoria.operator.test.UnionTest;
import org.apache.beam.sdk.extensions.euphoria.operator.test.junit.ExecutorProvider;
import org.apache.beam.sdk.extensions.euphoria.operator.test.junit.ExecutorProviderRunner;
* This is a copy of {@link org.apache.beam.sdk.extensions.euphoria.operator.test.AllOperatorsSuite} to allow us track | 0 |
// Implementation methods | 0 |
import java.util.Map;
protected ExecutionScheduleManager executionScheduleManager;
* @param properties
protected abstract void doWork(Map<String, Object> properties) throws
AmbariException;
doWork(context.getMergedJobDataMap().getWrappedMap());
| 0 |
* this iterator. For example, if this method returns ROW_COLFAM, then {@link #transformKeys()} may be changing the column qualifier, column visibility, or | 0 |
setupTestEnv();
ensureNames.add("InMemoryDataTree");
+ ",name1=replica." + i + ",name2=");
ensureNames.add("name0=ReplicatedServer_id" + i);
| 0 |
private static final String MAVEN_SYMBOLICNAME = "maven-symbolicname";
properties.put( MAVEN_SYMBOLICNAME, bsn ); | 0 |
package org.apache.felix.ipojo.test.scenarios.lifecycle.callback;
import org.apache.felix.ipojo.test.scenarios.lifecycle.callback.service.CheckService;
fooProvider = Utils.getComponentInstance(context, "LFCB-FooProviderType-1", p2);
instance = Utils.getComponentInstance(context, "LFCB-ParentCallbackCheckService", p1); | 0 |
item -> Protos.Parameter.newBuilder().setKey(item.getName())
.setValue(item.getValue()).build()); | 0 |
@Override
java.util.Scanner file = null;
try {
file = new java.util.Scanner(new File(f), UTF_8.name());
while (file.hasNextLine()) {
line = file.nextLine();
if (!line.isEmpty()) {
splits.add(decode ? new Text(Base64.decodeBase64(line.getBytes(UTF_8))) : new Text(line));
}
}
} finally {
if (file != null) {
file.close(); | 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.cocoon.components.web3;
import com.sap.mw.jco.JCO;
import org.xml.sax.SAXException;
import org.xml.sax.ContentHandler;
/**
* The standard interface for Web3Producer.
*
* @since 2.1
* @version $Id$
*/
public interface Web3Streamer {
String ROLE = Web3Streamer.class.getName();
void stream(JCO.Function function,
ContentHandler contentHandler) throws SAXException;
} | 0 |
import junit.framework.Assert;
| 0 |
* or if the connection was aborted
throws HttpException, IOException | 0 |
public abstract FileBasedReader<T> createSingleFileReader(PipelineOptions options,
ExecutionContext executionContext);
public final Reader<T> createReader(PipelineOptions options,
ExecutionContext executionContext) throws IOException {
options, executionContext));
return createSingleFileReader(options, executionContext); | 0 |
/*
* Copyright (c) OSGi Alliance (2010, 2015). 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Http Runtime DTO Package Version 1.0.
*
* <p>
* Bundles wishing to use this package must list the package in the
* Import-Package header of the bundle's manifest. This package has two types of
* users: the consumers that use the API in this package and the providers that
* implement the API in this package.
*
* <p>
* Example import for consumers using the API in this package:
* <p>
* {@code Import-Package: org.osgi.service.http.runtime.dto; version="[1.0,2.0)"}
* <p>
* Example import for providers implementing the API in this package:
* <p>
* {@code Import-Package: org.osgi.service.http.runtime.dto; version="[1.0,1.1)"}
*
* @author $Id$
*/
@Version("1.1")
package org.osgi.service.http.runtime.dto;
import org.osgi.annotation.versioning.Version;
| 0 |
super(SftpConstants.EXT_CHECK_FILE_HANDLE, client, raw, extras); | 1 |
import org.apache.accumulo.server.fs.VolumeManager.FileType;
private String metaReference; // something like ../2/d-00000/A00001.rf
private Path fullReference; // something like hdfs://nn:9001/accumulo/tables/2/d-00000/A00001.rf
private Path suffix;
this(key.getColumnQualifier().toString(), fs.getFullPath(key));
this.suffix = extractSuffix(fullReference);
this(path, new Path(path));
static Path extractSuffix(Path path) {
String pstr = path.toString();
int index = pstr.lastIndexOf(FileType.TABLE.getDirectory());
if (index < 0)
throw new IllegalArgumentException("Invalid table path " + pstr);
try {
Path parent = path.getParent().getParent();
if (!parent.getName().equals(FileType.TABLE.getDirectory()) && !parent.getParent().getName().equals(FileType.TABLE.getDirectory()))
throw new IllegalArgumentException("Invalid table path " + pstr);
} catch (NullPointerException npe) {
throw new IllegalArgumentException("Invalid table path " + pstr);
}
return new Path(pstr.substring(index + FileType.TABLE.getDirectory().length() + 1));
}
return suffix.compareTo(o.suffix);
return suffix.hashCode(); | 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* @version CVS $Id: AttributeNode.java,v 1.3 2004/03/05 13:02:20 bdelacretaz Exp $ | 1 |
public abstract class AbstractNamespaceURIBasedRulesModule
public AbstractNamespaceURIBasedRulesModule( /* @Nullable */String namespaceURI ) | 0 |
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
CopyOnAccessInMemoryStateInternals stateInternals = stepContext.stateInternals();
Iterable<WindowedValue<V>> dropExpiredWindows(
return StreamSupport.stream(elements.spliterator(), false)
.flatMap(wv -> StreamSupport.stream(wv.explodeWindows().spliterator(), false))
})
.collect(Collectors.toList()); | 0 |
else if (componentName.equals("STORM_REST_API"))
return "8745"; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/TypedSortedBag.java,v 1.3 2003/08/31 12:56:23 scolebourne Exp $
* a specified <code>Class</code>. If an object cannot be added to the
* @version $Revision: 1.3 $ $Date: 2003/08/31 12:56:23 $ | 0 |
import org.apache.commons.lang.ArrayUtils;
public String getThreadsStacktraces(Collection<Long> ids) {
errBuilder.append(getThreadsStacktraces(Arrays.asList(ArrayUtils.toObject(ids))));
boolean hasRunning = false;
State state = monTh.getState();
if (state != State.TERMINATED && state != State.NEW) {
}
if (state == State.RUNNABLE || state == State.TIMED_WAITING) {
hasRunning = true;
break;
}
} else if (!hasRunning) {
List<Long> tIds = new ArrayList<Long>();
for (Thread monitoredThread : monitoredThreads) {
State state = monitoredThread.getState();
if (state == State.WAITING || state == State.BLOCKED) {
tIds.add(monitoredThread.getId());
}
errBuilder.append(getThreadsStacktraces(tIds));
errorMessages.add(errBuilder.toString());
deadlocked = true;
break; | 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 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 distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License. | 0 |
/**
* TODO Add javadoc
*
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
* @version $Rev$, $Date$
*/ | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/event/Attic/StandardModificationHandler.java,v 1.3 2003/08/31 21:09:49 scolebourne Exp $
* @version $Revision: 1.3 $ $Date: 2003/08/31 21:09:49 $
public synchronized Object[] getModificationListeners() {
Object[] lnrs = new Object[holders.length];
public void addModificationListener(Object listener) {
addModificationListener((StandardModificationListener) listener, -1, -1);
public synchronized void addModificationListener(StandardModificationListener listener, int preMask, int postMask) {
array[oldSize] = new Holder(listener, preMask, postMask);
public synchronized void removeModificationListener(Object listener) { | 0 |
import org.apache.hadoop.metrics2.sink.timeline.ContainerMetric;
public TimelinePutResponse putContainerMetrics(List<ContainerMetric> metrics)
throws SQLException, IOException {
return new TimelinePutResponse();
}
@Override | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/core/ChooseTag.java,v 1.7 2002/10/30 19:16:20 jstrachan Exp $
* $Revision: 1.7 $
* $Date: 2002/10/30 19:16:20 $
* Copyright (c) 2002 The Apache Software Foundation. All rights
* $Id: ChooseTag.java,v 1.7 2002/10/30 19:16:20 jstrachan Exp $
* @version $Revision: 1.7 $ | 0 |
case OpCode.createTTL:
return "createTtl"; | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; | 0 |
import java.io.File;
| 0 |
public RequestStatus deleteResources(Request request, Predicate predicate) | 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 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. | 0 |
Method removeAlertDuplicates = UpgradeCatalog250.class.getDeclaredMethod("removeAlertDuplicates");
.addMockedMethod(removeAlertDuplicates)
upgradeCatalog250.removeAlertDuplicates();
expectLastCall().once();
| 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 use this file except in compliance with
* the License. You may obtain a copy of the License at | 0 |
StackId stackId = null;
if (null != cluster) {
stackId = cluster.getDesiredStackVersion();
}
ExecuteCommandJson jsons = customCommandExecutionHelper.getCommandJson(actionExecContext, cluster, stackId); | 0 |
import org.apache.beam.sdk.runners.TransformHierarchy;
public CompositeBehavior enterCompositeTransform(TransformHierarchy.Node node) {
public void leaveCompositeTransform(TransformHierarchy.Node node) {}
public void visitPrimitiveTransform(TransformHierarchy.Node node) {
public void visitValue(PValue value, TransformHierarchy.Node producer) {} | 0 |
* Autogenerated by Thrift Compiler (0.12.0)
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)")
@org.apache.thrift.annotation.Nullable
@org.apache.thrift.annotation.Nullable
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
@org.apache.thrift.annotation.Nullable
@org.apache.thrift.annotation.Nullable | 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 use this file except in compliance
* with the License. You may obtain a copy of the License at | 0 |
stateManager.insertPendingTasks(storeProvider, task, instanceIds);
storage.write(new Storage.MutateWork.NoResult.Quiet() {
@Override
protected void execute(Storage.MutableStoreProvider storeProvider) {
for (String taskId : deferredLaunch.get().activeTaskIds) {
stateManager.changeState(
storeProvider,
taskId,
Optional.<ScheduleStatus>absent(),
KILLING,
KILL_AUDIT_MESSAGE);
}
}
});
storage.write(new Storage.MutateWork.NoResult.Quiet() {
@Override
protected void execute(Storage.MutableStoreProvider storeProvider) {
stateManager.insertPendingTasks(
storeProvider,
deferredLaunch.get().task,
deferredLaunch.get().instanceIds);
}
});
| 0 |
import org.apache.accumulo.core.util.shell.Token; | 0 |
AccumuloInputFormat.setZooKeeperInstance(job.getConfiguration(), args[0], args[1]);
AccumuloInputFormat.setInputInfo(job.getConfiguration(), args[2], args[3].getBytes(), args[4], new Authorizations());
AccumuloInputFormat.addIterator(job.getConfiguration(), regex); | 0 |
fail();
assertFalse(iter.hasTop());
assertEquals(expectedSample, readAll(iter));
assertEquals(expectedSample, readAll(dc));
assertEquals(expectedAll, readAll(iter)); | 0 |
import java.io.IOException;
import org.apache.felix.webconsole.json.JSONWriter;
void mergeWithMetaType( Dictionary props, ObjectClassDefinition ocd, JSONWriter json, Set ignoreAttrIds )
throws IOException | 0 |
conf.clear(); | 0 |
* @version $Revision: 1.4 $ $Date: 2003/02/21 13:08:59 $ | 0 |
import org.apache.beam.sdk.transforms.SerializableFunctions;
return pinput
.getPipeline()
.begin()
.apply(Create.of(rows))
.setSchema(schema, SerializableFunctions.identity(), SerializableFunctions.identity()); | 0 |
@Test
public void testContextPath() throws Exception {
ViewInstanceDefinition viewInstanceDefinition = getViewInstanceDefinition();
Assert.assertEquals(ViewInstanceDefinition.VIEWS_CONTEXT_PATH_PREFIX + "MY_VIEW/INSTANCE1",
viewInstanceDefinition.getContextPath());
}
| 0 |
public void testDecode() { | 0 |
public final class TransformType{ | 0 |
package org.apache.jute.compiler.generated;
import org.apache.jute.compiler.*; | 0 |
import org.apache.felix.sigil.model.ModelElementFactory;
import org.apache.felix.sigil.model.osgi.IRequiredBundle;
IRequiredBundle bundle = ModelElementFactory.getInstance().newModelElement(IRequiredBundle.class); | 0 |
import com.google.cloud.dataflow.sdk.coders.CoderRegistry;
import com.google.cloud.dataflow.sdk.coders.KvCoder;
CoderRegistry registry = new CoderRegistry();
registry.registerStandardCoders();
AppliedCombineFn<String, Long, ?, Long> appliedCombineFn = AppliedCombineFn.withInputCoder(
combineFn.asKeyedFn(), registry, KvCoder.of(StringUtf8Coder.of(), BigEndianLongCoder.of()));
appliedCombineFn);
AppliedCombineFn<String, Long, ?, Long> combineFn) {
StreamingGroupAlsoByWindowsDoFn.create(windowingStrategy, combineFn, StringUtf8Coder.of()); | 0 |
public void encode(T value, OutputStream outStream) throws IOException {
throws IOException {
public T decode(InputStream inStream) throws IOException {
public T decode(InputStream inStream, Context context) throws IOException {
CloseIgnoringInputStream(InputStream in) {
CloseIgnoringOutputStream(OutputStream out) {
public void close() { | 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 use this file except in compliance with
* the License. You may obtain a copy of the License at | 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 use this file except in compliance with
* the License. You may obtain a copy of the License at | 1 |
private List<String> m_warnings = new ArrayList<String>();
private List<String> m_errors = new ArrayList<String>();
return m_errors;
return m_warnings; | 0 |
new HashSet<>(Arrays.asList(new String[]{
COMPONENT_CLUSTER_NAME_PROPERTY_ID,
COMPONENT_SERVICE_NAME_PROPERTY_ID,
COMPONENT_COMPONENT_NAME_PROPERTY_ID}));
Set<Resource> resources = new HashSet<>();
final Set<ServiceComponentHostRequest> requests = new HashSet<>();
Map<String,List<ServiceComponentHostResponse>> serviceToComponentMap = new HashMap<>();
Map<String, Map<String, String>> configurations = new TreeMap<>();
Map<String, Long> configVersions = new TreeMap<>();
Map<String, Map<String, Map<String, String>>> configurationAttributes = new TreeMap<>();
Map<String, String> props = new HashMap<>(clusterConfig.getProperties());
Map<String, Map<String, String>> configTags = new HashMap<>();
Map<String, Map<String, String>> attrs = new TreeMap<>();
TreeMap<String, String> hostLevelParams = new TreeMap<>();
new ArrayList<>();
Map<String, Object> commandParams = new HashMap<>();
List<Map<String, String>> xmlConfigs = new LinkedList<>();
List<Map<String, String>> envConfigs = new LinkedList<>();
List<Map<String, String>> propertiesConfigs = new LinkedList<>();
Map<String, String> fileDict = new HashMap<>();
Map<String, Object> jsonContent = new TreeMap<>();
List<ServiceOsSpecific> foundedOSSpecifics = new ArrayList<>(); | 1 |
* 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* @version CVS $Id: NOPCacheValidity.java,v 1.2 2004/03/05 13:02:38 bdelacretaz Exp $ | 1 |
})).setWindowingStrategyInternal(outputStrategy).setCoder(input.getCoder()); | 0 |
* @param leftPos The position of the character in the code, counting from left to right
* @param rightPos The positionof the character in the code, counting from right to left
protected int weightedValue(int charValue, int leftPos, int rightPos) {
boolean oddPosition = (rightPos % 2 == 1); | 0 |
@Override
@Override
@Override
@Override | 0 |
public int hashCode() {
// uncomment when JDK 1.4 is required
// assert false : "hashCode not designed";
return 45;
} | 0 |
* Autogenerated by Thrift Compiler (0.9.3) | 0 |
import org.apache.commons.vfs.Capability;
* @version $Revision: 1.2 $ $Date: 2002/11/23 00:32:12 $
FileObject getBaseTestFolder( FileSystemManager manager ) throws Exception;
* Returns the expected file system capabilities.
//Capability[] getExpectedCapabilities(); | 0 |
* @version $Revision: 1.5 $ $Date: 2004/05/17 20:13:19 $
public class NullFilesCache extends AbstractFilesCache
public void close()
super.close(); | 0 |
*
* This class is immutable and thread-safe. | 0 |
public ExportedPackage[] getExportedPackages(String name)
{
return m_felix.getExportedPackages(name);
}
| 0 |
package org.apache.aurora.scheduler.preemptor;
import org.apache.aurora.scheduler.offers.OfferManager;
import org.apache.aurora.scheduler.preemptor.Preemptor.PreemptorImpl;
import static org.apache.aurora.scheduler.preemptor.PreemptorMetrics.slotValidationStatName;
import static org.apache.aurora.scheduler.preemptor.PreemptorMetrics.successStatName; | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.