Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* Returns the table to read, or {@code null} if reading from a query instead. * <p>If the table's project is not specified, use the executing project. if (table != null && Strings.isNullOrEmpty(table.getProjectId())) { @Nullable this.jsonTable = toJsonString(table); this.jsonQuer...
0
Copyright 2000-2003 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...
0
cnxn.enableRecv();
0
Converter ca = converter.newConverterBuilder(). rule(Foo.class, String.class, Foo::tsFun, v -> Foo.fsFun(v)).build();
0
conn.tableOperations().create(ReplicationTable.NAME); BatchWriter bw = conn.createBatchWriter(ReplicationTable.NAME, new BatchWriterConfig()); bw = conn.createBatchWriter(ReplicationTable.NAME, new BatchWriterConfig()); conn.tableOperations().create(ReplicationTable.NAME); BatchWriter bw = conn.crea...
0
import com.google.cloud.dataflow.sdk.transforms.DoFn; DoFn<?, KV<K, Iterable<V>>>.ProcessContext context, context.windowingInternals().writeToTagList( context.windowingInternals().deleteTagList( Iterable<V> result = context.windowingInternals().readTagList(tag);
0
if (aoi != null) { if (r.intersects(aoiR) == false) return null;
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 la...
0
import static org.easymock.EasyMock.anyString; expect(cluster.getClusterName()).andReturn("Cluster100").anyTimes(); expect(cluster.isConfigTypeExists(anyString())).andReturn(true).anyTimes();
0
LOG.info("Deletion request ignored for non-existent entity with guid {}", guid);
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v20_0.com.google.common.util.concurrent.MoreExecutors; import org.apache.beam.vendor.guava.v20_0.com.google.common.util.concurrent.ThreadFactoryBuilder;
0
EventDispatcher dispatcher = EventDispatcher.getDispatcher(); if (dispatcher != null) { // getDispatcher returns null if not enable. dispatcher.addListener(itf, listener); EventDispatcher dispatcher = EventDispatcher.getDispatcher(); if (dispatcher == ...
0
import org.apache.http.util.Args; Args.notNull(ioreactor, "I/O reactor"); Args.notNull(connFactory, "Connection factory"); Args.positive(defaultMaxPerRoute, "Max per route value"); Args.positive(maxTotal, "Max total value"); Args.notNull(route, "Route"); Args.notNull(tuni...
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
import com.twitter.mesos.gen.AssignedTask; private final ExceptionalFunction<FileCopyRequest, File, IOException> fileCopier; private final SocketManager socketManager; private final ExceptionalFunction<Integer, Boolean, HealthCheckException> healthChecker; private final ExceptionalClosure<KillCommand, KillExcep...
0
package org.apache.commons.dbcp2.datasources;
1
.apply(Window.<String>into(Sessions.withGapDuration(Duration.standardMinutes(1)))) .apply(Count.<String>perElement());
0
@Test public void testNonAscii() throws VisibilityParseException { VisibilityEvaluator ct = new VisibilityEvaluator(ByteArraySet.fromStrings("五", "六", "八", "九")); assertTrue(ct.evaluate(new ColumnVisibility(quote("五") + "|" + quote("四")))); assertFalse(ct.evaluate(new ColumnVisibility(quote("五")...
0
sampledSumSquares - (2 * mean * sampledSum) + (sampledElements * mean * mean);
0
import org.apache.hc.core5.http.MessageHead; public interface NHttpMessageParserFactory<T extends MessageHead> {
0
private int style = SWT.NULL;
0
import org.apache.beam.sdk.values.KV; c.output(KV.of(key, outCollector.get())); c.output(KV.of(key, outCollector.get()));
0
/* public void start( int options ) { } public void stop( int options ) { }
0
* @version CVS $Id: CharsetFactory.java,v 1.1 2003/09/04 12:42:35 cziegeler Exp $
0
public LanguageGuessingTest(final String name, final String language) {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/IntegerConverter.java,v 1.3 2002/07/13 02:22:08 craigmcc Exp $ * $Revision: 1.3 $ * $Date: 2002/07/13 02:22:08 $ * @version $Revision: 1.3 $ $Date: 2002/07/13 02:22:08 $ ...
0
throw new RuntimeException("Error parsing regular expression.", e);
0
registerTag("style", StyleTag.class);
0
URL url = new File(testProperties).toURI().toURL(); conf.save(testSaveConf.toURI().toURL()); checkConfig.registerEntityId(publicId, dtdFile.toURI().toURL());
0
public Result process( ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) throws Exception {
0
conn.tableOperations().addSplits(MetadataTable.NAME, new TreeSet<>(Collections.singleton(new Text("~")))); conn.tableOperations().addSplits(MetadataTable.NAME, new TreeSet<>(metadataSplits)); SortedSet<Text> splits = new TreeSet<>(); SortedSet<Text> splits = new TreeSet<>();
1
package org.apache.commons.digester3;
1
import org.apache.beam.sdk.values.PCollectionTuple; return PCollectionTuple.empty(pipeline).apply(sqlEnv.parseQuery(queryString));
0
public synchronized void bind(
0
package org.apache.felix.sigil.model;
0
* Returns the timestamp of the next window.
0
/* $Id: RegexRules.java,v 1.9 2004/05/10 06:52:50 skitching Exp $ * Copyright 2003-2004 The Apache Software Foundation.
0
Mockito.when(this.exchangeHandler.isDone()).thenReturn(Boolean.TRUE); public void testResponseContentOutputCompletedHandlerNotDone() throws Exception { final State state = new HttpAsyncRequestExecutor.State(); final HttpRequest request = new BasicHttpRequest("GET", "/"); state.setReq...
0
* @return An array of NewsgroupInfo instances containing the information * for each newsgroup served by the NNTP server corresponding to the * supplied pattern. If no such newsgroups are served, a zero length * array will be returned. If the command fails, null will be returned.
0
import java.util.concurrent.TimeUnit; ProxyConnPool connPool = new ProxyConnPool(connectingIOReactor, 3, TimeUnit.SECONDS); clientHandler); serviceHandler); public ProxyConnPool(final ConnectingIOReactor ioreactor, int connectTimeout, final TimeUnit tunit)...
0
VAL_REPO_ID, VAL_REPO_NAME, null, null); VAL_REPO_ID, VAL_REPO_NAME, null, null); properties.put(RepositoryResourceProvider.REPOSITORY_BASE_URL_PROPERTY_ID, "http://garbage.eu.co");
0
import org.apache.zookeeper.Transaction; * Test write operations using multi request. */ @Test(timeout = 90000) public void testMultiTransaction() throws Exception { CountdownWatcher watcher = new CountdownWatcher(); ZooKeeper zk = new ZooKeeper(qu.getConnString(), CONNECTION_TIMEOUT, ...
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
package org.apache.accumulo.server.monitor.util.celltypes; import org.apache.accumulo.core.master.state.tables.TableState; public class TableStateType extends CellType<TableState> { @Override public String alignment() { return "center"; } @Override public String format(Object obj) { TableState state = obj ...
1
BigQueryServices.DatasetService datasetService = bqServices.getDatasetService(bqOptions); Table table = datasetService.getTable(tableToExtract); String bqLocation = BigQueryHelpers.getDatasetLocation( datasetService, tableToExtract.getProjectId(), tableToExtract.getDatasetId()); ...
0
this.security = SecurityConfiguration.of(entity.getSecurityType(), entity.getSecurityDescriptorReference(), null);
0
List<Predicate> predicateList = new LinkedList<>();
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Predicate; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.FluentIterable;
0
public class ServiceLogSearchCriteria extends CommonServiceLogSearchCriteria {
0
import static org.junit.Assert.fail;
0
throw new FileSystemException("Invalid base FileName."); } if (name == null) { throw new FileSystemException("Invalid name String.");
0
beginRead(true); beginWrite(true); beginRead(true); beginWrite(true); beginWrite(true); beginRead(true); beginRead(true); beginRead(true); beginRead(true); beginRead(true); beginRead(true); beginWrite(true); if (opti...
0
return compareTo((IndexEntry) o) == 0;
0
TestStreams.withOnNext(onNextWasCalled::set).build().onNext(true); .withOnError(onErrorWasCalled::add)
0
package org.apache.bcel.generic; super(org.apache.bcel.Const.BALOAD);
1
public WidgetDefinition buildWidgetDefinition(Element widgetElement, WidgetDefinitionBuilderContext context) throws Exception { setupDefinition(widgetElement, definition, context); protected void setupDefinition(Element widgetElement, ImageMapDefinition definition, WidgetDefinitionBuilderContext co...
0
feConvolveMatrixDef.setAttribute(SVG_ORDER_ATTRIBUTE,
0
public synchronized void initComponentMethods( ComponentMetadata componentMetadata, Class implementationObjectClass ) m_activateMethod = new ActivateMethod( componentMetadata.getActivate(), componentMetadata m_deactivateMethod = new DeactivateMethod( componentMetadata.getDeactivate(), m_modi...
0
* @version $Revision$ $Date$
0
} catch (AccumuloException e) {} } catch (AccumuloException e) {} } catch (AccumuloException e) {}
0
byte b = in.readByte(); byte c = in.readByte(); byte d = in.readByte();
0
import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.windowing.Window; @Nullable WindowingDesc<Object, W> windowing, @Nullable Windowing euphoriaWindowing) { this(name, flow, input, keyExtractor, valueExtractor, windowing, euphoriaWindowing, Collections.emptySet()); @Nullable...
0
/* * ==================================================================== * * Copyright (c) 2001-2003 The Apache Software Foundation. All rights * notice, this list of conditions and the following disclaimer. * if any, must include the following acknowledgement: * "This product includes software ...
0
import org.apache.hc.core5.reactor.TlsCapableIOSession; public IOEventHandler createHandler(final TlsCapableIOSession ioSession, final Object attachment) { protected ServerHttp1StreamDuplexer createStreamDuplexer(final TlsCapableIOSession ioSession) { if (tlsStrategy != null) { ioSes...
0
TransformResult<T> result,
0
LOG.debug("Read action definition = {}", ad); new StringBuilder("Error while parsing action definition. ").append(ad).append(" --- "); + ad);
1
return getInitializedMac(HmacAlgorithms.HMAC_MD5, key); return getInitializedMac(HmacAlgorithms.HMAC_SHA_1, key); return getInitializedMac(HmacAlgorithms.HMAC_SHA_256, key); return getInitializedMac(HmacAlgorithms.HMAC_SHA_384, key); return getInitializedMac(HmacAlgorithms.HMAC_S...
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 la...
0
import org.apache.sshd.common.util.ValidateUtils; private final Map<Integer, Buffer> messages = new HashMap<>(); private final Map<String,byte[]> extensions = new TreeMap<String,byte[]>(String.CASE_INSENSITIVE_ORDER); this.clientSession = ValidateUtils.checkNotNull(clientSession, "No client session", Ge...
0
* @param suboptionData - the sequence received, without IAC SB &amp; IAC SE * will add IAC SB &amp; IAC SE. null means no response * will add IAC SB &amp; IAC SE. null means no subnegotiation. * will add IAC SB &amp; IAC SE. null means no subnegotiation.
0
import org.apache.beam.sdk.annotations.Experimental; @Experimental
0
context.invokeNext(profile);
0
import static com.google.common.base.Preconditions.checkArgument; checkArgument(
0
// suppress importDirectory deprecated since this tests legacy failure directory @SuppressWarnings("deprecation")
0
import org.apache.ambari.server.controller.internal.AlertGroupResourceProvider; import org.apache.ambari.server.controller.internal.AlertTargetResourceProvider; AlertGroupResourceProvider.init(injector); AlertTargetResourceProvider.init(injector);
0
import java.lang.reflect.Method; import java.util.List; public void registerBuiltinUdf(Map<String, List<Method>> methods) { for (Map.Entry<String, List<Method>> entry : methods.entrySet()) { for (Method method : entry.getValue()) { defaultSchema.add(entry.getKey(), ScalarFunctionImpl.create(method))...
0
package org.apache.cocoon.portal.wsrp.consumer; import oasis.names.tc.wsrp.v1.types.UserContext; /** * Extends the <tt>UserContext</tt>-class with the supportedLocales. * Without these extension the supportedLocales can only be set global for * the consumerEnvironment. In that case all users have the same locale. ...
0
* * One more, we are checking if all components has only one host * component state. If some component has more, it can cause issues public static void checkHostComponentStates() { String GET_HOST_COMPONENT_STATE_DUPLICATES_QUERY = "select component_name, host_id from hostcomponentstate group by component_n...
0
import org.apache.commons.io.filefilter.WildcardFileFilter; new WildcardFileFilter("*.*"), new WildcardFileFilter("*")); new WildcardFileFilter("*.*"), ...
0
return source.getOutputCoder(); return source.getOutputCoder();
0
import com.twitter.aurora.gen.TaskConfig; public static final Function<AssignedTask, TaskConfig> ASSIGNED_TO_INFO = new Function<AssignedTask, TaskConfig>() { @Override public TaskConfig apply(AssignedTask task) { public static final Function<ScheduledTask, TaskConfig> SCHEDULED_TO_INFO = public sta...
0
import org.apache.batik.anim.dom.SVGOMTextPositioningElement;
0
* @version $Revision$
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 not...
0
* If you set the dataTimeout to {@code null} no dataTimeout will be set on the
0
int l; if (this.length < 0) { // consume until EOF while ((l = instream.read(buffer)) != -1) { outstream.write(buffer, 0, l); } } else { // consume no more than length long remaining = this.length; while (rem...
0
public void testTableQueryConfigSerialization() {
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
String key = opt.getOpt(); if( " ".equals(key) ) { key = opt.getLongOpt(); } if( options.get( key ) != null ) { ((java.util.List)options.get( key )).add( opt ); options.put( key, new java.util.ArrayList() ); ((java.util.List)options.get( ke...
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.vendor.guava.v20_0.com.google.common.collect.ImmutableMap; 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.Maps; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Sets;
0
import org.apache.hc.core5.http.impl.BasicHttpTransportMetrics; final BasicHttpTransportMetrics inTransportMetrics; final BasicHttpTransportMetrics outTransportMetrics; this.inTransportMetrics = new BasicHttpTransportMetrics(); this.outTransportMetrics = new BasicHttpTransportMetrics(); ...
1
private static final int SLAVE_ID = 5; private static SlaveOffer makeOffer(int slaveId, int cpus, long ramBytes) {
0
public void testExamples() { ColognePhonetic koellePhon = new ColognePhonetic(); String[][] data = { { "Müller-Lüdenscheidt", "65752682" }, { "Breschnew", "17863" }, { "Wikipedia", "3412" } }; for (int i = 0; i < data.length; i++) { assertEquals(data[i][1], koell...
0
if ( !invokeInitMethod(componentContext) ) { m_componentManager.log( LogService.LOG_DEBUG, "For dependency {0}, failed to initialize object", new Object[] {getName()}, null ); return false; } * Calls the optional init referenc...
0
private static final String KEY_EXCHANGE_ALGORITHM = _PREFIX + ".KEY_EXCHANGE_ALGORITHM"; /** HTTP Proxy. */ public static final ProxyType PROXY_HTTP = new ProxyType("http"); /** * @param opts The FileSystem options. * @return the option value for spesific key exchange algori...
0
import org.apache.hc.core5.http.impl.nio.DefaultHttpClientIOEventHandlerFactory; import org.apache.hc.core5.http.nio.NHttpConnectionFactory; import org.apache.hc.core5.reactor.IOReactorConfig; private final HttpAsyncRequester executor; private final IOReactorThread thread; final HttpProcessor httpPr...
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
0
package org.apache.aurora.scheduler.thrift.aop; import org.apache.aurora.gen.ResponseCode;
0
@Parameter(names = "--dirTable", description = "a table to hold the directory information") @Parameter(names = "--indexTable", description = "an index over the ingested data") @Parameter(names = "--dataTable", description = "the file data, chunked into parts") @Parameter(names = "--vis", descrip...
0