Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
try { graphProvider.get().shutdown(); } catch (Exception e) { e.printStackTrace(); }
0
tableRef.set("tableType", hiveTable.getTableType().name());
0
Element defs = domFactory.createElement(SVG_DEFS_TAG);
0
import static org.apache.beam.sdk.io.common.FileBasedIOITHelper.readFileBasedIOITPipelineOptions; import org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions; FileBasedIOTestPipelineOptions options = readFileBasedIOITPipelineOptions(); .write() .to(filenamePrefix) .withCompression(compress...
0
package org.apache.hc.core5.reactor;
1
import org.apache.bcel.generic.InstructionHandle;
0
/* * $Header: $ * $Revision$ * $Date$ * * ==================================================================== * * 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. * Yo...
0
public void testSynchronized() throws Exception { Map<String, Object> ns = new TreeMap<String, Object>(); JexlContext jc = new SynchronizedContext(new MapContext()); JexlEngine jexl = new JexlBuilder().namespaces(ns).create(); JexlScript js0 = jexl.createScript("@synchronized(y) {ret...
1
components = new TreeMap<>(); List<Map<String, Object>> list = new ArrayList<>();
1
Factory<UserAuthFactory> factory = NamedResource.findByName(name, String.CASE_INSENSITIVE_ORDER, VALUES);
0
/* * Copyright 2006 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 ...
0
pipeline.apply("Create base", Create.of(40)).apply(View.asSingleton()); return Collections.emptyList(); .apply(WithKeys.of("k"))
0
import com.twitter.mesos.scheduler.base.JobKeys; import com.twitter.mesos.scheduler.base.Query;
0
int DOM_KEY_LOCATION_STANDARD = 0x00; int DOM_KEY_LOCATION_LEFT = 0x01; int DOM_KEY_LOCATION_RIGHT = 0x02; int DOM_KEY_LOCATION_NUMPAD = 0x03; String getKeyIdentifier(); int getKeyLocation(); boolean getCtrlKey(); boolean getShiftKey(); boolean getAltKey(); boolean getMe...
0
return new ChainedClosure<E>(FunctorUtils.copy(closures));
0
@SuppressWarnings("deprecation") String fsUri = sconf.get(Property.INSTANCE_DFS_URI); if (fsUri.equals("")) printInitializeFailureMessages(sconf); @SuppressWarnings("deprecation") static void printInitializeFailureMessages(SiteConfiguration sconf) { String instanceDfsDir = sconf.get(Property...
0
package org.apache.batik.bridge;
0
import java.util.Collection; import org.apache.commons.vfs.Capability;
0
* Copyright 2001-2006 The Apache Software Foundation
0
eq(mapRequestProps), eq(false))).andReturn(response).once();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestFixedSizeSortedMap.java,v 1.4 2003/10/02 23:01:09 scolebourne Exp $ import org.apache.commons.collections.AbstractTestSortedMap; * @version $Revision: 1.4 $ $...
0
import com.google.inject.persist.UnitOfWork; private UnitOfWork unitOfWork; unitOfWork = injector.getInstance(UnitOfWork.class); new HostsMap((String) null), null, unitOfWork); new ActionDBInMemoryImpl(), new HostsMap((String) null), null, unitOfWork);
0
* @throws IOException if an error occurs * @throws ClassNotFoundException if an error occurs
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CollectionUtils.java,v 1.32 2003/05/11 14:12:46 scolebourne Exp $ * @version $Revision: 1.32 $ $Date: 2003/05/11 14:12:46 $
0
private String user = "_db";
0
// Test that sequential filenames are being created correctly, // with 0-padding in the filename public void testSequentialNodeNames() throws IOException, InterruptedException, KeeperException { String path = "/SEQUENCE"; String file = "TEST"; String filepath = path + "/" + file; ZooKeeper z...
0
@Test(expected = AmbariException.class) users.createUser("admin2", "admin2"); users.promoteToAdmin(user); user = users.getLocalUser("admin2"); user = users.getLocalUser("admin2"); users.demoteAdmin(user); @Test(expected = AmbariException.class) public void testRemoveUser() throws Excep...
0
logs.put(new Path(log).toString(), logEntry.extent.getTableId().toString());
0
tester.assertHasOnlyGlobalAndFinishedSetsFor(firstWindow); tester.assertHasOnlyGlobalAndFinishedSetsFor(firstWindow); tester.assertHasOnlyGlobalAndFinishedSetsFor(firstWindow); tester.assertHasOnlyGlobalAndFinishedSetsFor(firstWindow); tester.assertHasOnlyGlobalAndFinishedSetsFor(); tester.as...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/priv/PrivateIndirect.java,v 1.2 2001/12/15 19:19:24 craigmcc Exp $ * $Revision: 1.2 $ * $Date: 2001/12/15 19:19:24 $ * @version $Revision: 1.2 $ $Date: 2001/12/15 19:19:24 $ /**...
0
if (isRemoveSupported() == false) { return; } if (isFailFastExpected() == false) { return; } if (isRemoveSupported() == false) { return; } if (isFailFastExpected() == false) { return; } if (isRemoveSu...
0
* AccumuloClassLoader loads jars from locations in general.classpaths. Usually the URLs for HADOOP_HOME, ZOOKEEPER_HOME, ACCUMULO_HOME/lib and their associated directories
0
public final long sessionId; public final int cxid; public final int type; public final ByteBuffer request; public final ServerCnxn cnxn; public final List<Id> authInfo; public final long createTime = System.currentTimeMillis(); sb.append("sessionid:0x").append(Long.toHexString(sess...
0
* Partial update a single entity using its guid. * @param entityType type of the entity * @param guid Entity guid * @return EntityMutationResponse details of the updates performed by this call * @throws AtlasBaseException * */ EntityMutationResponse updateByGuid(AtlasEntityType en...
0
import org.apache.cocoon.woody.event.AbstractFormHandler; import org.apache.cocoon.woody.event.ValueChangedEvent; * This implementation currently doesn't do anything interesting. public class Form1Handler extends AbstractFormHandler { public void handleActionEvent(ActionEvent actionEvent) { //System.out.pr...
0
.setIsDaemon(true) .setIsDaemon(true)
0
/* * Copyright 1999,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 by...
0
private Object createInstance(Class clazz) throws SecurityException, NoSuchMethodException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { return constructor.newInstance(null);
0
import org.osgi.resource.Capability; private final Set<Capability> m_capSet = new HashSet<Capability>(); public Set<Capability> match(SimpleFilter sf, boolean obeyMandatory) Set<Capability> matches = match(m_capSet, sf); private Set<Capability> match(Set<Capability> caps, SimpleFilter sf) Se...
1
if (args != null) { for (int a = 0; a < args.length; ++a) { Object arg = args[a]; if (arg instanceof Number) { Number narg = (Number) arg; Number narrow = narrow(narg); if (!narg.equals(narrow)) { ...
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
if (version != null) { version = version.trim(); }
0
protected final DefaultCloseFuture gracefulFuture; gracefulFuture = new DefaultCloseFuture(discriminator, lock); return new AbstractIoWriteFuture(req, null) { Session s = getSession(); return new AbstractIoWriteFuture(s.toString(), null) {
0
class DoFnFunction<I, O> implements FlatMapFunction<Iterator<I>, O> {
0
private final boolean m_propagate; public ResourceAdapterImpl(Object impl, Class iface, boolean propagate) { m_propagate = propagate; .setPropagate(m_propagate)
0
if (SecurityHelper.getSysPerm(state, username, SystemPermission.DROP_TABLE) || SecurityHelper.getTabPerm(state, username, TablePermission.DROP_TABLE)) hasPermission = true; if (hasPermission) throw new AccumuloException("Got a security exception when I should have had permission.", ae); ...
1
return new Person(id, name, email, creditCard, city, state, timestamp.toInstant(), extra);
0
import org.apache.hc.client5.http.async.methods.SimpleHttpRequests; final SimpleHttpRequest request = SimpleHttpRequests.GET.create(target, requestUri);
0
import java.util.HashMap; import org.apache.beam.sdk.extensions.sql.meta.provider.TableProvider; abstract Map<String, TableProvider> tableProviderMap(); tableProviderMap().forEach(sqlEnv::addSchema); .setTableProviderMap(Collections.emptyMap()) public SqlTransform withTableProvider(String name, TablePr...
0
setSessionClosing(s.sessionId); // Return false, if the session doesn't exists or marked as closing if (s == null || s.isClosing()) { SessionSet set = sessionSets.get(s.tickTime); // Session expiration has been removing the sessions if(set !...
0
* @version $Id$
0
new HttpHost("http", "localhost", 8080), null, null), new HttpHost("http", "test-httpd", 8080), new HttpHost("localhost", 8888), null), new HttpHost("http", "test-httpd", 8080), new HttpHost("localhost", 8889), new HttpHost(...
0
import cz.seznam.euphoria.core.client.operator.Builders.Output; Output<S>> output)
0
/* * $Header: /cvshome/build/org.osgi.framework/src/org/osgi/framework/BundleListener.java,v 1.10 2006/03/14 01:21:02 hargrave Exp $ * * Copyright (c) OSGi Alliance (2000, 2005). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
0
import org.apache.accumulo.core.util.SimpleThreadPool; sendThreadPool = new SimpleThreadPool(numSendThreads, this.getClass().getName());
0
public AtlasEntityHeader toAtlasEntityHeaderWithClassifications(String guid) throws AtlasBaseException { return toAtlasEntityHeaderWithClassifications(getEntityVertex(guid), Collections.emptySet()); } public AtlasEntityHeader toAtlasEntityHeaderWithClassifications(AtlasVertex entityVertex) throws A...
0
import org.apache.beam.sdk.transforms.OldDoFn; private final OldDoFn<InputT, OutputT> mFunction; public DoFnFunction(OldDoFn<InputT, OutputT> fn, ProcCtxt(OldDoFn<InputT, OutputT> fn, SparkRuntimeContext runtimeContext, Map<TupleTag<?>,
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 Configuration configuration;
0
import java.util.Base64; byte[] data = Base64.getDecoder().decode(migrations.getBytes(UTF_8)); byte[] data = Base64.getDecoder().decode(merges.getBytes(UTF_8)); String encoded = new String(Base64.getEncoder().encode(Arrays.copyOf(buffer.getData(), buffer.getLength())), UTF_8); String encoded = new S...
0
case RELATIONSHIP: ret = ((AtlasRelationshipType) type).getRelationshipDef(); break;
0
* @since 3.0
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.io.Serializable; public interface JXPathBeanInfo extends Serializable {
0
return Collections.<T>emptyList(); List<T> valueList = new ArrayList<>(tagList.getValuesCount()); valueList.add(elemCoder.decode(inputStream, Coder.Context.OUTER)); return Collections.unmodifiableList(valueList);
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
int desiredBundleSizeBytes = 2000;
0
* @version CVS $Id: ExpiresCachingProcessingPipeline.java,v 1.1 2003/09/04 12:42:42 cziegeler Exp $
0
Thread updateRequester = null; if (progressUpdatePeriodMs != 0) { updateRequester = new Thread() { @Override public void run() { while (true) { isProgressUpdateRequested.set(true); try { Thread.sleep(progressUpdatePeriodMs);...
0
public interface FileName extends Comparable<FileName>
0
package org.apache.batik.anim.dom; import org.apache.batik.dom.svg.SVGZoomAndPanSupport;
0
import org.apache.commons.jelly.JellyTagException; import org.dom4j.DocumentException; import org.xml.sax.SAXException; public SAXReader getSAXReader() { protected abstract SAXReader createSAXReader(); protected Document parseBody() throws JellyTagException { try { handler.startDocument(); ...
0
new ArrayList<>(requests.size()); new ArrayList<>(requests.size());
0
import javax.inject.Qualifier; @Qualifier
0
private static final Logger LOG = LoggerFactory.getLogger(LoggingRequestHelperImpl.class); LOG.debug("Attempting to connect to LogSearch server at {}", logSearchURI); LOG.debug("For componentName = {}, log file name is = {}", componentName, lineOne.getLogFilePath()); LOG.debug("Attempting to connect...
1
package com.twitter.mesos.scheduler;
0
JexlEngine jexl = new JexlBuilder().create(); JxltEngine uel = jexl.createJxltEngine(); expr = jexl.createExpression(expr.getParsedText()); expr = jexl.createExpression(expr.getParsedText()); expr = jexl.createExpression(expr.getParsedText()); expr = jexl.createExpres...
1
JAVA_TO_CALCITE_MAPPING.put(Types.DATE, SqlTypeName.DATE);
0
package org.apache.accumulo.core.util.shell.commands; import org.apache.accumulo.core.util.shell.Shell; import org.apache.accumulo.core.util.shell.Shell.Command;
0
private synchronized <T> void addColumn(String title, CellType<T> type, String legend, boolean sortable) { boolean sortAscending = !"false".equals(BasicServlet.getCookieValue(req, "tableSort." + BasicServlet.encode(page) + "." + BasicServlet.encode(tableName) + "." + "sortAsc")); String sortCo...
0
import javax.management.JMException; import org.apache.zookeeper.jmx.ManagedUtil; try { ManagedUtil.registerLog4jMBeans(); } catch (JMException e) { LOG.warn("Unable to register log4j JMX control", e); }
0
* @return The InboundSecurityContext InboundSecurityContext getSecurityContext();
0
if (!cookie.isExpired(now)) {
0
import aQute.bnd.build.*; private String bndResourceName; public boolean isProjectFile() { return Project.BNDFILE.equals(getBndResourceName()); public boolean isBndrun() { return getBndResourceName().endsWith(Constants.DEFAULT_BNDRUN_EXTENSION); public String getBndResourceName() { if (bndResourc...
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
AccumuloOutputFormat.setZooKeeperInstance(job.getConfiguration(), args[0], args[1]); AccumuloOutputFormat.setOutputInfo(job.getConfiguration(), args[2], args[3].getBytes(), true, args[6]);
0
package org.apache.beam.sdk.extensions.gcp.options; import org.apache.beam.sdk.extensions.gcp.auth.CredentialFactory; import org.apache.beam.sdk.extensions.gcp.auth.GcpCredentialFactory; import org.apache.beam.sdk.options.Default; import org.apache.beam.sdk.options.DefaultValueFactory; import org.apache.beam.sdk.option...
0
Iterable<Resource> iterable = new HashSet<>(); Iterable<Resource> iterable = new HashSet<>(); Iterable<Resource> iterable = new HashSet<>(); Iterable<Resource> iterable = new HashSet<>();
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 ...
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.sshd.common.util.KeyUtils; final String keyAlg = KeyUtils.getKeyType(serverKey); if (keyAlg == null) {
0
/* * Copyright 2003-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
/* * Copyright 2006 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 applicabl...
0
private boolean closed; if (this.closed) { return; } this.closed = true; return this.closed;
0
public void checkEncoding(final String expected, final String source) throws EncoderException { protected void checkEncodings(final String[][] data) throws EncoderException { for (final String[] element : data) { protected void checkEncodingVariations(final String expected, final String data[]) thro...
1
logger.debug("Register FactoryBean=" + itfName + " hint=" + hint + " service=" + service); this.bundleContext.registerService(itfName, service, properties);
0
package org.apache.accumulo.monitor.servlets.trace;
1
String TAG_METADATA = "metadata"; String TAG_TSPAN = "tspan";
0
* @version $Revision$
0
import org.apache.beam.sdk.values.Row; public BeamSqlPrimitive evaluate(Row inputRow, BoundedWindow window) {
0