Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
ClientInfo clientInfo = getClientInfo(job);
String principal = clientInfo.getPrincipal();
AuthenticationToken token = clientInfo.getAuthenticationToken();
try (AccumuloClient c = Accumulo.newClient().from(clientInfo.getProperties()).build()) { | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/TestCommon.java,v 1.2 2003/09/06 05:22:47 rleland Exp $
* $Revision: 1.2 $
* $Date: 2003/09/06 05:22:47 $
abstract public class TestCommon extends TestCase { | 0 |
* Creates a upload progress listener that emits relevant statistics about the | 0 |
private final String headerName; | 0 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
* @version $Id$
public class TestBasicDataSourceFactory {
@Test
@Test | 0 |
import org.apache.accumulo.core.security.tokens.PasswordToken; | 0 |
public class MemoryIterator extends WrappingIterator implements InterruptibleIterator { | 1 |
* shutdown the connection. Use #shutdown() instead. | 0 |
//TODO : consider using getOpCode
//TODO : fix bug on double-space
//TODO : use a logger
//TODO : merge this class with another class only static method.
//TODO use logger. | 0 |
LOG.debug("Created transform for algorithm: {}", getAlgorithm());
LOG.debug("ApacheData = true");
LOG.debug("isNodeSet() = true");
LOG.debug("DOMSubTreeData = true");
LOG.debug("isNodeSet() = false"); | 0 |
import org.apache.commons.digester3.internal.DigesterImpl; | 0 |
* @throws IOException If an error occurs while fetching the time.
* @throws IOException If an error occurs while fetching the time. | 0 |
static Map<File,WeakReference<Workspace>> cache = newHashMap();
final Map<String,Project> models = newHashMap();
final Map<String,Action> commands = newMap();
@Override
public void propertiesChanged() {
}
catch (Exception e) {
public void fillActions(Map<String,Action> all) {
}
catch (Ex... | 0 |
* Copyright 2004-2006 The Apache Software Foundation.
import org.apache.commons.configuration.event.ConfigurationEvent;
import org.apache.commons.configuration.event.ConfigurationListener;
public void testClone()
{
MapConfiguration config = (MapConfiguration) getConfiguration();
MapConfigurat... | 0 |
import org.apache.accumulo.core.security.thrift.SecurityErrorCode;
import org.apache.accumulo.core.security.thrift.ThriftSecurityException; | 0 |
public int compare(final File file1, final File file2) {
final long result = file1.lastModified() - file2.lastModified(); | 1 |
private Map<HostAndPort,Long> firstSeenDead;
firstSeenDead = new HashMap<>();
gcwal = new GarbageCollectWriteAheadLogs(context, volMgr, false, firstSeenDead);
ReplicationGCWAL(AccumuloServerContext context, VolumeManager fs, boolean useTrash, Map<HostAndPort,Long> firstSeenDead, List<Entry<Key,Value>> rep... | 0 |
String attrName = evt.getAttrName();
if (attrName.equals(SVG_X1_ATTRIBUTE) ||
attrName.equals(SVG_Y1_ATTRIBUTE) ||
attrName.equals(SVG_X2_ATTRIBUTE) ||
attrName.equals(SVG_Y2_ATTRIBUTE)) { | 0 |
import com.google.common.collect.Lists; | 0 |
@Override
public void visit(State state, Properties props) throws Exception {
Connector conn = state.getConnector();
Random rand = (Random) state.get("rand");
@SuppressWarnings("unchecked")
List<String> tableNames = (List<String>) state.get("tables");
String tableName = tableNames.g... | 1 |
log( LogService.LOG_DEBUG, "Disabling Component", cm[i].getComponentMetadata(), 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/plugins/PluginRules.java,v 1.5 2003/11/02 23:26:59 rdonkin Exp $
* $Revision: 1.5 $
* $Date: 2003/11/02 23:26:59 $
throw new PluginAssertionFailure(
throw new P... | 0 |
import java.util.Arrays;
import org.junit.Before;
import org.junit.Test;
import com.twitter.mesos.gen.Identity;
first.getAssignedTask().getTask().setOwner(new Identity("A", "A"));
second.getAssignedTask().getTask().setOwner(new Identity("B", "B"));
new TwitterTaskInfo()
.setOwner(new Iden... | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/WrapDynaBean.java,v 1.7 2003/10/09 20:43:15 rdonkin Exp $
* $Revision: 1.7 $
* $Date: 2003/10/09 20:43:15 $
* Alternately, this acknowledgement may appear in the software itself,... | 0 |
import java.util.Map;
case ENUM8:
case ENUM16:
return Schema.FieldType.STRING;
ENUM8,
ENUM16,
public abstract Map<String, Integer> enumValues();
@Nullable
public ColumnType withNullable(boolean nullable) {
return toBuilder().nullable(nullable).build();
}
public s... | 0 |
* @param conn the {@link java.sql.Connection Connection} from which I was created | 0 |
bar1Factory = (ComponentFactory) Utils.getFactoryByName(getContext(), "composite.bar.3");
Factory fact = Utils.getFactoryByName(getContext(), "composite.empty");
ComponentFactory fact1 = (ComponentFactory) Utils.getFactoryByName(getContext(), "COMPO-FooBarProviderType-1");
ComponentFactory fact2 = (ComponentFac... | 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 |
return getResourcesLocal(name); | 0 |
import org.apache.ambari.server.state.SecurityType;
ClusterRequest r = new ClusterRequest(null, clusterName, State.INSTALLED.name(), SecurityType.NONE, stackName, null); | 0 |
int lastColon = a.lastIndexOf(':'); | 0 |
TimelineMetric counterMetric = new TimelineMetric();
counterMetric.setMetricName("TestMetric");
counterMetric.setHostName("TestHost");
counterMetric.setAppId("TestAppId");
counterMetric.setMetricValues(metricValues);
counterMetric.setType("COUNTER");
Map<TimelineClusterMetric, Double> timel... | 0 |
/** -1 is reserved for the http service servlet context. */
private final AtomicLong idCounter = new AtomicLong(-1); | 0 |
String[][] data = {
{"a", "0"},
{"e", "0"},
{"i", "0"},
{"o", "0"},
{"u", "0"},
{"\u00E4", "0"},
{"\u00F6", "0"},
{"\u00FC", "0"},
{"aa", "0"},
{"ha", "0"},
{"h", ""},
... | 1 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.MoreObjects; | 0 |
* @version $Id$ | 0 |
out.println(" " + caps[i].getName() + ":" + caps[i].getPropertiesAsMap()); | 0 |
import org.apache.flink.streaming.api.functions.source.ParallelSourceFunction;
import org.apache.flink.streaming.api.functions.source.SourceFunction;
public class UnboundedFlinkSource<T> extends UnboundedSource<T, UnboundedSource.CheckpointMark> {
private final SourceFunction<T> flinkSource;
public UnboundedFlinkSo... | 0 |
*
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
patternDef.setAttributeNS(null, SVG_PATTERN_UNITS_ATTRIBUTE, | 0 |
import org.apache.hc.client5.http.impl.sync.RoutedHttpRequest; | 0 |
Element[] handlers = m_elements[0].getElements("Handler");
Element[] all = new Element[components.length + composites.length + handlers.length];
for (int i = 0; i < handlers.length; i++) {
all[l] = handlers[i];
l++;
} | 0 |
* @see org.apache.cocoon.portal.profile.ProfileManager#getLayout(java.lang.String)
public Layout getLayout(String layoutID) {
final String layoutKey = this.portalService.getDefaultLayoutKey(); | 0 |
options.getBar();
options.getBar(); | 0 |
hiveSiteProperties.put("hive.cluster.delegation.token.store.zookeeper.connectString", expectedHostName + ":" + expectedPortNum + "," + expectedHostNameTwo + ":" + expectedPortNum);
assertEquals("hive zookeeper connectString property not properly exported",
createExportedAddress(expectedPortNum, expectedHo... | 0 |
.append( ret ) | 0 |
/*
* Copyright (C) 2016 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 |
private final CommandLauncher launcher; | 0 |
import org.apache.commons.configuration.sync.NoOpSynchronizer; | 0 |
import org.apache.accumulo.server.fs.VolumeChooserEnvironment;
VolumeChooserEnvironment chooserEnv = new VolumeChooserEnvironment(Optional.empty());
logPath = fs.choose(chooserEnv, ServerConstants.getBaseUris()) + Path.SEPARATOR + ServerConstants.WAL_DIR + Path.SEPARATOR + logger + Path.SEPARATOR
+ file... | 0 |
@Nullable PTransform<PCollection<UserT>, PCollectionView<Integer>> computeNumShards);
@Nullable ValueProvider<Integer> numShardsProvider);
private final @Nullable PCollectionView<Integer> numShardsView;
@Nullable PCollectionView<Integer> numShardsView) { | 0 |
stackInfo = new StackInfo();
} else {
}
stackInfo.setLibraryClassLoader(stackDirectory.getLibraryClassLoader());
if (service.getModuleInfo().getRoleCommandOrder() == null) {
}
errorSet.addAll(errors); | 0 |
setDocument(doc);
setElement(XMLUtils.createElementInSignatureSpace(doc,
this.getBaseLocalName())); | 0 |
import org.apache.beam.sdk.transforms.SerializableFunction;
/**
* register {@link SerializableFunction} as a UDF function used in this query.
* Note, {@link SerializableFunction} must have a constructor without arguments.
*/
public QueryTransform withUdf(String functionName, SerializableFun... | 0 |
response.setEntity(new NStringEntity(message, ContentType.DEFAULT_TEXT));
response.setEntity(new NStringEntity(message, ContentType.DEFAULT_TEXT)); | 0 |
if (colon + 1 < host.length()) {
try {
port = Integer.parseInt(host.substring(colon + 1));
} catch (NumberFormatException ex) {
}
ho... | 0 |
* get only the name from the filename.
int index = fullFilename.lastIndexOf('/'); // Given path
* get the path from the filename. | 0 |
package org.apache.felix.dependencymanager.impl; | 0 |
if (shape == null)
if (shapePainter == null)
primitiveBounds = shape.getBounds2D();
else
primitiveBounds = shapePainter.getPaintedBounds2D(); | 0 |
import org.apache.excalibur.source.Source;
public static final ThreadLocal PARENT_CONTEXT = new ThreadLocal();
// TODO: use default includes, global variables and directories
buffer.append("<avalon:sitemap location=\"sitemap.xmap\" uriPrefix=\"");
public static CocoonWebApplicationContext creat... | 0 |
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompaction, ActiveCompaction._Fields>, java.io.Serializable, Cloneable, Comparable<ActiveCompaction> {
public enum _Fields implements org.apache.thrift.TFieldIdEnum { | 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 com.google.common.util.concurrent.ThreadFactoryBuilder; | 0 |
* <pre>{@code
* }</pre> | 0 |
// TODO: PROBABLY INCORRECT. Fix it. | 0 |
protected Object serializeDeserialize(Object obj) throws Exception {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(buffer);
out.writeObject(obj);
out.close();
ObjectInputStream in = new ObjectInputStream(new ByteA... | 0 |
import org.apache.accumulo.core.tabletserver.thrift.TDurability;
client.update(Tracer.traceInfo(), ai.toThrift(instance), extent.toThrift(), m.toThrift(), TDurability.DEFAULT); | 1 |
package org.apache.beam.sdk.extensions.sql.transform;
import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRow; | 0 |
import static com.google.common.base.Preconditions.checkNotNull;
private final DoFn.ProcessContinuation continuation;
@Nullable RestrictionT residualRestriction,
DoFn.ProcessContinuation continuation,
Instant futureOutputWatermark) {
this.continuation = checkNotNull(continuation);
... | 0 |
/*
import org.xml.sax.helpers.XMLReaderFactory;
* Pojoization allows creating an iPOJO bundle from a "normal" bundle.
System.err.println(mes);
* @param metadata the iPOJO metadata input stream.
* @param metadataFile the iPOJO metadata file (XML).
}
JarEntry je... | 0 |
"-rw-r--r-- 1 ftp group with spaces in it as allowed in cygwin see bug 38634 83853 Jan 22 2001 zxJDBC-1.2.4.tar.gz",
// Bug 38634 => NET-16 | 0 |
kerberosDescriptorFactory, Collections.emptySet(), Collections.emptyMap(), null);
kerberosDescriptorFactory, Collections.emptySet(), Collections.emptyMap(), null);
kerberosDescriptorFactory, Collections.emptySet(), Collections.emptyMap(), null); | 0 |
package org.apache.accumulo.test.functional; | 0 |
public class ToStringOutputArchive implements OutputArchive {
/** Creates a new instance of ToStringOutputArchive */
public ToStringOutputArchive(OutputStream out)
stream.print(escapeString(s));
public void writeBuffer(byte[] buf, String tag)
stream.print(escapeBuffer(buf));
private st... | 0 |
/*
* Copyright 2002-2005 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 b... | 0 |
* test pipelines. Meanwhile it is valid for multiple {@link PubsubTestClient}s to be created
* from the same client factory and run in parallel. Thus we can't enforce aliasing of the
* following data structures over all clients and must resort to a static.
* Publish mode only: Messages which should throw ... | 0 |
import org.apache.ambari.server.ldap.service.AmbariLdapConfigurationProvider;
bind(AmbariLdapConfigurationProvider.class).toInstance(createMock(AmbariLdapConfigurationProvider.class)); | 0 |
public Rectangle2D getPrimitiveBounds() {
public Rectangle2D getGeometryBounds() {
public Shape getOutline() { | 0 |
import org.apache.accumulo.server.test.MiniAccumuloCluster; | 0 |
import static org.apache.aurora.scheduler.storage.Storage.MutableStoreProvider;
* @param storeProvider Storage provider.
MutableStoreProvider storeProvider,
private TaskInfo assign(MutableStoreProvider storeProvider, Offer offer, IScheduledTask task) {
storeProvider,
MutableStoreProvider ... | 0 |
*
*
*
* @version CVS $Id: InterpreterSelector.java,v 1.4 2004/06/03 12:37:56 vgritsenko Exp $
implements Configurable, ThreadSafe {
private String defaultLanguage;
public void configure(Configuration config) throws ConfigurationException {
super.configure(config);
this.defaultLanguag... | 0 |
impl.execute(route, req1, context, null);
final HttpResponse result = impl.execute(route, req2, context, null);
impl.execute(route, req1, context, null);
impl.execute(route, req2, context, null);
impl.execute(route, req1, context, null);
final HttpResponse result = impl.e... | 0 |
import org.apache.accumulo.core.security.thrift.ThriftSecurityException;
import org.apache.accumulo.server.security.SecurityOperationImpl;
SecurityOperationImpl.getInstance().deleteTable(SecurityConstants.getSystemCredentials(), tableId);
} catch (ThriftSecurityException e) { | 1 |
@Override
public Object getTableObject() {
return table;
} | 0 |
import org.apache.beam.runners.core.SimplePushbackSideInputDoFnRunner;
SimplePushbackSideInputDoFnRunner.create(underlying, sideInputs, sideInputReader); | 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 |
* Copyright 1999-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 ... | 1 |
return new HashMap<>(); | 0 |
import org.apache.beam.sdk.transforms.windowing.Window.Assign;
@Override
public String getUrn(Assign<?> transform) {
return PTransforms.WINDOW_TRANSFORM_URN;
}
| 0 |
* {@link org.apache.commons.net.SocketClient}. | 0 |
import org.apache.beam.dsls.sql.schema.BeamSqlRowType;
BeamSqlRowType resultType = BeamSqlRowType.create(Arrays.asList("f_int2", "size"),
BeamSqlRowType resultType = BeamSqlRowType.create(
BeamSqlRowType resultType = BeamSqlRowType.create(Arrays.asList("f_int", "f_long"),
BeamSqlRowType resultType = Bea... | 0 |
import org.apache.beam.sdk.values.PCollectionTuple;
* A new method {@link #buildBeamPipeline(PCollectionTuple)} is added, it's
* A {@link BeamRelNode} is a recursive structure, the
* {@link BeamPipelineCreator} visits it with a DFS(Depth-First-Search)
* algorithm.
PCollection<BeamSQLRow> buildBeamPipeline(P... | 0 |
reportUnexpectedCharacterError( current );
reportUnexpectedCharacterError( current );
reportUnexpectedCharacterError( current );
reportUnexpectedCharacterError( current );
reportUnexpectedCharacterError( current );
reportUnexpec... | 0 |
assert false : "hashCode not designed"; | 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 |
* The namespace URI for which this Rule is relevant, if any.
*
* @since 3.0
*/
String namespaceURI() default "";
/** | 0 |
* @since 2.0 | 1 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.