Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
throw new BundleException("Not implemented yet.");
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/expression/ExpressionFactory.java,v 1.7 2003/10/09 21:21:27 rdonkin Exp $ * $Revision: 1.7 $ * $Date: 2003/10/09 21:21:27 $ * any, must include the following acknowledgement: * Alter...
0
public class R4Wire implements IWire /* (non-Javadoc) * @see org.apache.felix.framework.searchpolicy.IWire#getImportingModule() */ public IModule getImporter() /* (non-Javadoc) * @see org.apache.felix.framework.searchpolicy.IWire#getExportingModule() */ public IModule getExporter() ...
0
import java.util.ListIterator; if (MapUtils.isEmpty(softRefVal)) { return softRefVal; } else { if (CollectionUtils.isEmpty(softRefVal)) { return softRefVal; } else { if (CollectionUtils.isEmpty(arrayElements)) { return arrayElements; }
0
import org.apache.xml.security.stax.securityToken.SecurityToken; public class DefaultTokenSecurityEvent extends TokenSecurityEvent<SecurityToken> {
0
// Implementstion methods
0
<T> ValueState<T> bindValue(String id, StateSpec<ValueState<T>> spec, Coder<T> coder); <T> BagState<T> bindBag(String id, StateSpec<BagState<T>> spec, Coder<T> elemCoder); <T> SetState<T> bindSet(String id, StateSpec<SetState<T>> spec, Coder<T> elemCoder); String id, StateSpec<WatermarkHoldState> spec, Time...
1
* thus the root element should be a <code>fd:selection-list</code> * attribute and the contents of the <code>fd:label</code> child element * of every <code>fd:item</code> in the list.
0
* @version $Id$ public class DualHashBidiMapTest<K, V> extends AbstractBidiMapTest<K, V> { return BulkTest.makeSuite(DualHashBidiMapTest.class); public DualHashBidiMapTest(String testName) { return new String[] { "DualHashBidiMapTest.bulkTestInverseMap.bulkTestInverseMap" };
0
suite.addTest(CustomValidatorResourcesTest.suite()); suite.addTestSuite(GenericValidatorTest.class); suite.addTest(ParameterTest.suite()); suite.addTest(ValidatorResultsTest.suite());
0
if (recdPort == port) { // must not use the control port here TFTPErrorPacket error = new TFTPErrorPacket(recdAddress, recdPort, TFTPErrorPacket.UNKNOWN_TID, "INCORRECT SOURCE PORT...
0
import static org.apache.ambari.server.controller.internal.HostComponentResourceProvider.STALE_CONFIGS; String predicateProperty = STALE_CONFIGS + "=true"; if (predicateEntry.getKey().equals(STALE_CONFIGS)) {
0
package org.apache.beam.sdk.extensions.sql; import static org.apache.beam.sdk.extensions.sql.rel.BeamJoinRelBoundedVsBoundedTest.ORDER_DETAILS1; import static org.apache.beam.sdk.extensions.sql.rel.BeamJoinRelBoundedVsBoundedTest.ORDER_DETAILS2; import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRow; import org.ap...
0
import org.apache.accumulo.core.metadata.schema.MetadataSchema.TabletsSection.ReplicationColumnFamily; private static final HashSet<ColumnFQ> validColumnQuals = new HashSet<ColumnFQ>(Arrays.asList( TabletsSection.ServerColumnFamily.LOCK_COLUMN, TabletsSection.ServerColumnFamily.FLUSH_COLUMN, TabletsSection.Serv...
0
/** * The shape associated with this painter */ protected Shape shape; public CompositeShapePainter(Shape shape) { if(shape == null){ throw new IllegalArgumentException(); } this.shape = shape; } if(this.shape != shapePainter.getShape()){ ...
0
import cz.seznam.euphoria.core.client.dataset.windowing.Window; public class Join<LEFT, RIGHT, KEY, OUT, W extends Window> Either<LEFT, RIGHT>, KEY, Pair<KEY, OUT>, W, Join<LEFT, RIGHT, KEY, OUT, W>> public <W extends Window> OutputBuilder<LEFT, RIGHT, KEY, OUT, W> windowBy(Windowing<Either<LEFT, RI...
0
this.typeSystem = TypeSystem.getInstance();
0
* $Id$ * package org.apache.commons.ognl.internal;
0
import org.apache.cocoon.core.Settings;
0
import com.google.cloud.dataflow.sdk.io.TextIO.Read; import com.google.cloud.dataflow.sdk.transforms.Create; * {@code PBegin} is used as the "input" to a root {@link PTransform} that is the first * operation in a {@link Pipeline}, such as {@link Read TextIO.Read} or {@link Create}. * <p>Typically created by calling ...
0
* Autogenerated by Thrift Compiler (0.12.0) @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)") public @org.apache.thrift.annotation.Nullable java.util.Set<java.nio.ByteBuffer> authorizations; // optional public @org.apache.thrift.annotation.Nullable Durability durability; // optional ...
0
package org.apache.felix.dm;
0
import com.tinkerpop.blueprints.GraphQuery; import java.util.Iterator; @Override public List<String> getEntityList(String entityType) throws RepositoryException { LOG.info("Retrieving entity list for type={}", entityType); GraphQuery query = graphService.getBlueprintsGraph().query() ...
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
if (supportTrustedProxy && doAsUser != null && !doAsUser.equals(httpRequest.getRemoteUser())) {
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
1
* @version CVS $Id: ForwardRedirector.java,v 1.4 2003/06/24 15:20:28 upayavira Exp $ public class ForwardRedirector extends AbstractLogEnabled implements Redirector, PermanentRedirector { public void permanentRedirect(boolean sessionMode, String url) throws IOException, ProcessingException { if (getLogger(...
0
import java.nio.charset.Charset; private static final Charset utf8 = Charset.forName("UTF8"); byte typeBytes[] = type.name().getBytes(utf8);
0
* Filters files based on the suffix (what the file name ends with). This is used /** The file name suffixes to search for. */ * Checks to see if the file name ends with the suffix. * @return true if the file name ends with one of our suffixes
0
import org.apache.accumulo.proxy.thrift.BatchScanOptions; import org.apache.accumulo.proxy.thrift.ScanOptions; BatchScanOptions options = new BatchScanOptions(); options.ranges = Collections.singletonList(new Range(null, false, stop, false)); String cookie = tpc.proxy().createBatchScanner(userpass, testtabl...
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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
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
private final Set<String> language; private final Pattern lContext; private final String logical; private final String pattern; private final String phoneme; private final Pattern rContext;
0
protected SolrDocumentList groupList; groupList = new SolrDocumentList();
0
* @deprecated (4.2) use {@link org.apache.http.pool.AbstractConnPool} * @deprecated (4.1) use {@link RouteSpecificPool#RouteSpecificPool(HttpRoute, ConnPerRoute)}
0
* * String param = he.getName();
0
* @param eventsEnabled Whether the GVT tree should be reactive
1
package org.apache.felix.sigil.eclipse.ui.internal.wizard;
0
return jexl.parse(expression, null); return jexl.parse(expression, info);
0
import org.apache.commons.lang.StringUtils; for (ServiceRequest serviceRequest : request) { if (StringUtils.isEmpty(serviceRequest.getClusterName()) || StringUtils.isEmpty(serviceRequest.getServiceName())) { // FIXME throw correct error throw new AmbariException("invalid arguments"); } ...
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.atlas.typesystem.exception.EntityNotFoundException; import org.apache.atlas.utils.ParamChecker;
1
private Reader xmlTestReader() {
0
@Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append(this.response); if (this.producer != null) { buf.append(" ").append(this.producer); } return buf.toString(); }
0
sshPort = sshd.getPort(); acceptor.bind(new InetSocketAddress(0)); echoPort = acceptor.getLocalAddress().getPort();
0
package org.apache.accumulo.server.tabletserver.mastermessage; import org.apache.accumulo.core.data.KeyExtent; import org.apache.accumulo.core.master.thrift.TabletLoadState; import org.apache.accumulo.core.master.thrift.MasterClientService.Iface; import org.apache.accumulo.core.security.thrift.AuthInfo; import org.apa...
1
import org.apache.beam.sdk.extensions.sql.SqlTransform; query = SqlTransform.query(queryString);
0
import com.sun.jersey.client.urlconnection.URLConnectionClientHandler; import org.apache.commons.configuration.PropertiesConfiguration; import org.apache.hadoop.metadata.security.SecureClientUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static org.apache.hadoop.metadata.security.SecurityPropert...
0
assertEquals(42L, cu.getTimestamp()); assertEquals(42L, cu.getTimestamp());
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
import org.junit.Ignore; private void assertNotEmpty(BeiderMorseEncoder bmpm, final String value) throws EncoderException { Assert.assertFalse(value, bmpm.encode(value).equals("")); } @Ignore @Test public void testAsciiEncodeNotEmpty1Letter() throws EncoderException { BeiderMorseEnc...
0
import org.apache.cocoon.spring.configurator.WebAppContextUtils;
0
import org.apache.commons.beanutils.BeanUtils; protected static Class<?> definePropertyType(Object target, String name, String propName) protected static Object convert(Class<?> type, int index, Object value, String pattern) { protected static Object convert(Class<?> type, int index, Object value) {
0
/** * Copyright 2013 Apache Software Foundation
0
package org.apache.felix.gogo.api; import org.apache.felix.service.command.CommandSession;
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.accumulo.core.client.Instance; Instance mockInstance = new org.apache.accumulo.core.client.mock.MockInstance(INSTANCE_NAME);
0
package org.apache.http.nio.integration;
0
* @version $Revision$ $Date$
0
String trashDir = api.getTrashDirPath(request.path); if (api.rename(request.path, trashDir)) { result = Response.ok(getApi(context).fileStatusToJSON(api .getFileStatus(trashDir)));
0
// TODO Collections.<TupleTag<?>, Coder<?>>emptyMap(),
0
prepareStateBackend(key); prepareStateBackend(key); prepareStateBackend(key); private void prepareStateBackend(K key) { // Key for state request is shipped already encoded as ByteString, // this is mostly a wrapping with ByteBuffer. We still follow the ...
0
PCollection<UserT>, WriteFilesResult<DestinationT>, PCollection<UserT>, WriteFilesResult<DestinationT>, PCollection<T>, WriteFilesResult<DestinationT>, PCollection<T>, WriteFilesResult<DestinationT>, ...
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(ServicesCheck.class); @Reference(policyOption = ReferencePolicyOption.GREEDY) @Reference(policyOption = ReferencePolicyOption.GREEDY) LOG.debug("Activated Services HC for servicesList=...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/AbstractFloatListList.java,v 1.3 2003/11/07 20:09:15 rwaldhoff Exp $ * * @deprecated This code has been moved to Jakarta Commons Primitives (http://jak...
0
import com.twitter.common.testing.easymock.EasyMockTest;
0
ApplicationContext parent = null; if(env.servletContext != null) { parent = (ApplicationContext)env.servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE); }
0
// System.err.println( this + " OtherAntTag.setAttribute(" + name + ", " + value + ")" );
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...
1
import org.apache.aurora.scheduler.storage.mem.MemStorageModule; storage = MemStorageModule.newEmptyStorage();
0
/** * Copyright 2016 Seznam a.s. * * 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
LogManager logManager = new LogManager(log, Amount.of(1, Data.GB), false);
0
if (XML_LANG_URI.equals(N.getNamespaceURI())) {
0
.addTransition(State.INIT, State.INSTALLING, .addTransition(State.INSTALLING, .addTransition(State.INSTALLING, .addTransition(State.INSTALL_FAILED, .addTransition(State.INSTALL_FAILED, .addTransition(State.INSTALLED, State.STARTING, .addTransition(State.INSTALLED, .addTransition(State.INSTAL...
0
30000);
0
/** * Copyright 2016 Seznam a.s. * * 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
assertNotNull("No root node", cc2.getModel().getNodeHandler() .getRootNode()); assertTrue("Root node was constructed", config.getModel() .getNodeHandler().getRootNode().getChildren().isEmpty());
0
@Override public boolean doUpdate() { return false; }
0
ENTITY_NOTIFICATION_V1, ENTITY_NOTIFICATION_V2
1
/** @inheritDoc */ /** @inheritDoc */ /** @inheritDoc */ /** @inheritDoc */ * @inheritDoc * @inheritDoc new CachedXPathFuncHereAPI(input.getCachedXPathAPI().getCachedXPathAPI()); Element xpathElement = XMLUtils.selectNode(transformElement.getFirstChild(), ...
0
* @version $Revision: 1.23 $ $Date: 2004/08/21 21:00:15 $ /** * Returns a String representation of this object. * * @return String */ public String toString() { return _stmt.toString(); }
0
import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.Option; import org.apache.commons.cli.Options; private boolean wait; private Option waitOpt; @Override shellState.getConnector().tableOperations().online(tableName, wait); Shell.log.info("Online of table " + tableName + (wa...
1
import org.apache.hadoop.io.Text; JavaPairRDD<T, Void> last = ((JavaRDDLike<T, ?>) context.getInputRDD(transform)) .mapToPair(new PairFunction<T, T, Void>() { } }); int shardCount = transform.getNumShards(); if (shardCount == 0) { /...
0
import java.util.ArrayList; import java.util.List; import javax.annotation.Nullable; @JsonProperty("properties") private List<String> properties; @Nullable public List<String> getProperties() { return properties; } public void setProperties(List<String> properties) { this.properties = properties...
0
super(buffersize, chardecoder, charencoder, constraints, incomingContentStrategy, outgoingContentStrategy,
0
import org.apache.commons.jexl3.introspection.JexlSandbox; * The sandbox. */ protected JexlSandbox sandbox = null; /** /** * Sets the sandbox the engine will use. * @param box the sandbox * @return this builder */ public JexlBuilder sandbox(JexlSandbox box) { t...
0
String tableId = "t";
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 ...
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...
1
protected static final String USER_GROUPS_PROPERTY_ID = PropertyHelper.getPropertyId("Users", "groups"); setResourceProperty(resource, USER_GROUPS_PROPERTY_ID, userResponse.getGroups(), requestedIds);
0
log( LogService.LOG_DEBUG, "Updating target filters", null ); updateTargets( getProperties() ); public abstract void setServiceProperties( Dictionary<String, ?> serviceProperties );
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
* Copyright 2001-2005 The Apache Software Foundation
0
import static org.ops4j.pax.exam.CoreOptions.felix; import static org.ops4j.pax.exam.CoreOptions.equinox; import static org.ops4j.pax.exam.CoreOptions.knopflerfish; import static org.ops4j.pax.exam.MavenUtils.asInProject; felix(), equinox(), knopflerfish(), maven...
0
import org.apache.beam.sdk.util.BackOffAdapter; bigqueryClient, queryContent, Sleeper.DEFAULT, BackOffAdapter.toGcpBackOff(BACKOFF_FACTORY.backoff()));
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
/* int key = dwIsAldus; */ /* short hmf = */ readShort( is ); /* short left = */ readShort( is ); /* short top = */ readShort( is ); /* short right = */ readShort( is ); /* short bottom = */ readShort( is ); /*...
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 java.util.concurrent.TimeUnit; public void releaseConnection(long validDuration, TimeUnit timeUnit) { connManager.releaseConnection(this, validDuration, timeUnit); releaseConnection(-1, null);
0
* Copyright 2016-2017 Seznam.cz, a.s.
0