method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
@Override public void execute() throws BuildException { try { Configuration cfg = getConfiguration(); getSchemaValidator(cfg).validate(); } catch (HibernateException e) { throw new BuildException("Schema text failed: " + e.getMessage(), e); } catch (FileNotFoundException e) { throw new Buil...
void function() throws BuildException { try { Configuration cfg = getConfiguration(); getSchemaValidator(cfg).validate(); } catch (HibernateException e) { throw new BuildException(STR + e.getMessage(), e); } catch (FileNotFoundException e) { throw new BuildException(STR + e.getMessage(), e); } catch (IOException e) { t...
/** * Execute the task */
Execute the task
execute
{ "repo_name": "kevin-chen-hw/LDAE", "path": "com.huawei.soa.ldae/src/main/java/org/hibernate/tool/hbm2ddl/SchemaValidatorTask.java", "license": "lgpl-2.1", "size": 5315 }
[ "java.io.FileNotFoundException", "java.io.IOException", "org.apache.tools.ant.BuildException", "org.hibernate.HibernateException", "org.hibernate.cfg.Configuration" ]
import java.io.FileNotFoundException; import java.io.IOException; import org.apache.tools.ant.BuildException; import org.hibernate.HibernateException; import org.hibernate.cfg.Configuration;
import java.io.*; import org.apache.tools.ant.*; import org.hibernate.*; import org.hibernate.cfg.*;
[ "java.io", "org.apache.tools", "org.hibernate", "org.hibernate.cfg" ]
java.io; org.apache.tools; org.hibernate; org.hibernate.cfg;
603,940
public void testLearn() { WeightedMostFrequentLearner<Boolean> instance = new WeightedMostFrequentLearner<Boolean>(); ArrayList<DefaultWeightedInputOutputPair<Vector2, Boolean>> examples = new ArrayList<DefaultWeightedInputOutputPair<Vector2, Boolean>>(); ...
void function() { WeightedMostFrequentLearner<Boolean> instance = new WeightedMostFrequentLearner<Boolean>(); ArrayList<DefaultWeightedInputOutputPair<Vector2, Boolean>> examples = new ArrayList<DefaultWeightedInputOutputPair<Vector2, Boolean>>(); ConstantEvaluator<Boolean> result = instance.learn(examples); assertNull...
/** * Test of learn method, of class WeightedMostFrequentLearner. */
Test of learn method, of class WeightedMostFrequentLearner
testLearn
{ "repo_name": "codeaudit/Foundry", "path": "Components/LearningCore/Test/gov/sandia/cognition/learning/algorithm/baseline/WeightedMostFrequentLearnerTest.java", "license": "bsd-3-clause", "size": 3960 }
[ "gov.sandia.cognition.learning.data.DefaultWeightedInputOutputPair", "gov.sandia.cognition.learning.function.ConstantEvaluator", "gov.sandia.cognition.math.matrix.mtj.Vector2", "java.util.ArrayList" ]
import gov.sandia.cognition.learning.data.DefaultWeightedInputOutputPair; import gov.sandia.cognition.learning.function.ConstantEvaluator; import gov.sandia.cognition.math.matrix.mtj.Vector2; import java.util.ArrayList;
import gov.sandia.cognition.learning.data.*; import gov.sandia.cognition.learning.function.*; import gov.sandia.cognition.math.matrix.mtj.*; import java.util.*;
[ "gov.sandia.cognition", "java.util" ]
gov.sandia.cognition; java.util;
448,229
void ackBatch(List<String> ackIds) throws IOException { pubsubClient.get().acknowledge(subscription, ackIds); ackedIds.add(ackIds); }
void ackBatch(List<String> ackIds) throws IOException { pubsubClient.get().acknowledge(subscription, ackIds); ackedIds.add(ackIds); }
/** * Acks the provided {@code ackIds} back to Pubsub, blocking until all of the messages are * ACKed. * * <p>CAUTION: May be invoked from a separate thread. * * <p>CAUTION: Retains {@code ackIds}. */
Acks the provided ackIds back to Pubsub, blocking until all of the messages are ACKed
ackBatch
{ "repo_name": "shakamunyi/beam", "path": "sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubUnboundedSource.java", "license": "apache-2.0", "size": 52346 }
[ "java.io.IOException", "java.util.List" ]
import java.io.IOException; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,934,546
public static <T> EventListenerSupport<T> create(Class<T> listenerInterface) { return new EventListenerSupport<T>(listenerInterface); } public EventListenerSupport(Class<L> listenerInterface) { this(listenerInterface, Thread.currentThread().getContextClassLoader()); ...
static <T> EventListenerSupport<T> function(Class<T> listenerInterface) { return new EventListenerSupport<T>(listenerInterface); } public EventListenerSupport(Class<L> listenerInterface) { this(listenerInterface, Thread.currentThread().getContextClassLoader()); } public EventListenerSupport(Class<L> listenerInterface, ...
/** * Creates an EventListenerSupport object which supports the specified * listener type. * * @param listenerInterface the type of listener interface that will receive * events posted using this class. * * @return an EventListenerSupport object which supports the spec...
Creates an EventListenerSupport object which supports the specified listener type
create
{ "repo_name": "SpoonLabs/astor", "path": "examples/Lang-issue-428/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java", "license": "gpl-2.0", "size": 11802 }
[ "org.apache.commons.lang3.Validate" ]
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.*;
[ "org.apache.commons" ]
org.apache.commons;
1,714,141
protected void configureContext(Context context, ServletContextInitializer[] initializers) { TomcatStarter starter = new TomcatStarter(initializers); if (context instanceof TomcatEmbeddedContext) { // Should be true ((TomcatEmbeddedContext) context).setStarter(starter); } context.addServletContainer...
void function(Context context, ServletContextInitializer[] initializers) { TomcatStarter starter = new TomcatStarter(initializers); if (context instanceof TomcatEmbeddedContext) { ((TomcatEmbeddedContext) context).setStarter(starter); } context.addServletContainerInitializer(starter, NO_CLASSES); for (LifecycleListener...
/** * Configure the Tomcat {@link Context}. * @param context the Tomcat context * @param initializers initializers to apply */
Configure the Tomcat <code>Context</code>
configureContext
{ "repo_name": "minmay/spring-boot", "path": "spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java", "license": "apache-2.0", "size": 32397 }
[ "org.apache.catalina.Context", "org.apache.catalina.LifecycleListener", "org.apache.catalina.Valve", "org.springframework.boot.context.embedded.MimeMappings", "org.springframework.boot.web.servlet.ErrorPage", "org.springframework.boot.web.servlet.ServletContextInitializer" ]
import org.apache.catalina.Context; import org.apache.catalina.LifecycleListener; import org.apache.catalina.Valve; import org.springframework.boot.context.embedded.MimeMappings; import org.springframework.boot.web.servlet.ErrorPage; import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.apache.catalina.*; import org.springframework.boot.context.embedded.*; import org.springframework.boot.web.servlet.*;
[ "org.apache.catalina", "org.springframework.boot" ]
org.apache.catalina; org.springframework.boot;
384,722
String getDisplayedFileName(String fullPath) { if (fullPath == null || !partialName.isSelected()) return fullPath; Integer number = (Integer) numberOfFolders.getValueAsNumber(); return UIUtilities.getDisplayedFileName(fullPath, number); }
String getDisplayedFileName(String fullPath) { if (fullPath == null !partialName.isSelected()) return fullPath; Integer number = (Integer) numberOfFolders.getValueAsNumber(); return UIUtilities.getDisplayedFileName(fullPath, number); }
/** * Returns the name to display for a file. * * @param fullPath * The file's absolute path. * @return See above. */
Returns the name to display for a file
getDisplayedFileName
{ "repo_name": "emilroz/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/fsimporter/chooser/ImportDialog.java", "license": "gpl-2.0", "size": 46691 }
[ "org.openmicroscopy.shoola.util.ui.UIUtilities" ]
import org.openmicroscopy.shoola.util.ui.UIUtilities;
import org.openmicroscopy.shoola.util.ui.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
217,982
public boolean isApplicationCDIEnabled(ApplicationMetaData applicationMetaData);
boolean function(ApplicationMetaData applicationMetaData);
/** * Returns whether CDI is enabled for the given application. * * @param applicationMetaData the ApplicationMetaData for the application * @return true if CDI is enabled for the application, otherwise false * @throws CDIException if there is a problem finding the application */
Returns whether CDI is enabled for the given application
isApplicationCDIEnabled
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIRuntime.java", "license": "epl-1.0", "size": 5995 }
[ "com.ibm.ws.runtime.metadata.ApplicationMetaData" ]
import com.ibm.ws.runtime.metadata.ApplicationMetaData;
import com.ibm.ws.runtime.metadata.*;
[ "com.ibm.ws" ]
com.ibm.ws;
2,821,988
private void grow(final int required) { if (required > this.maxSize) { this.maxSize = ((this.maxSize * 3) >>> 1) + 1; this.data = Arrays.copyOf(this.data, this.maxSize); } }
void function(final int required) { if (required > this.maxSize) { this.maxSize = ((this.maxSize * 3) >>> 1) + 1; this.data = Arrays.copyOf(this.data, this.maxSize); } }
/** * Grows this list if required. * * @param required * Minimum size required. */
Grows this list if required
grow
{ "repo_name": "rjeschke/neetutils-base", "path": "src/main/java/com/github/rjeschke/neetutils/lists/ShortList.java", "license": "apache-2.0", "size": 9717 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,682,153
private static int parseId3Header(ParsableByteArray id3Buffer) throws ParserException { int id1 = id3Buffer.readUnsignedByte(); int id2 = id3Buffer.readUnsignedByte(); int id3 = id3Buffer.readUnsignedByte(); if (id1 != 'I' || id2 != 'D' || id3 != '3') { throw new ParserException(String.format(Lo...
static int function(ParsableByteArray id3Buffer) throws ParserException { int id1 = id3Buffer.readUnsignedByte(); int id2 = id3Buffer.readUnsignedByte(); int id3 = id3Buffer.readUnsignedByte(); if (id1 != 'I' id2 != 'D' id3 != '3') { throw new ParserException(String.format(Locale.US, STRID3\STR%c%c%c\".", id1, id2, id3...
/** * Parses an ID3 header. * * @param id3Buffer A {@link ParsableByteArray} from which data should be read. * @return The size of ID3 frames in bytes, excluding the header and footer. * @throws ParserException If ID3 file identifier != "ID3". */
Parses an ID3 header
parseId3Header
{ "repo_name": "amirlotfi/Nikagram", "path": "app/src/main/java/ir/nikagram/messenger/exoplayer/metadata/id3/Id3Parser.java", "license": "gpl-2.0", "size": 10535 }
[ "ir.nikagram.messenger.exoplayer.ParserException", "ir.nikagram.messenger.exoplayer.util.ParsableByteArray", "java.util.Locale" ]
import ir.nikagram.messenger.exoplayer.ParserException; import ir.nikagram.messenger.exoplayer.util.ParsableByteArray; import java.util.Locale;
import ir.nikagram.messenger.exoplayer.*; import ir.nikagram.messenger.exoplayer.util.*; import java.util.*;
[ "ir.nikagram.messenger", "java.util" ]
ir.nikagram.messenger; java.util;
2,503,915
@Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (PickerbatchPackage.Literals.MAPPING__PICKERS, PickerbatchFactory.eINSTANCE.creat...
void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (PickerbatchPackage.Literals.MAPPING__PICKERS, PickerbatchFactory.eINSTANCE.createPicker())); }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object.
collectNewChildDescriptors
{ "repo_name": "TristanFAURE/pickerExplorer", "path": "plugins/org.topcased.pickerexplorer.batch/src/org/topcased/pickerexplorer/batch/pickerbatch/provider/MappingItemProvider.java", "license": "epl-1.0", "size": 6132 }
[ "java.util.Collection", "org.topcased.pickerexplorer.batch.pickerbatch.PickerbatchFactory", "org.topcased.pickerexplorer.batch.pickerbatch.PickerbatchPackage" ]
import java.util.Collection; import org.topcased.pickerexplorer.batch.pickerbatch.PickerbatchFactory; import org.topcased.pickerexplorer.batch.pickerbatch.PickerbatchPackage;
import java.util.*; import org.topcased.pickerexplorer.batch.pickerbatch.*;
[ "java.util", "org.topcased.pickerexplorer" ]
java.util; org.topcased.pickerexplorer;
2,028,183
public TaskClientDto getPendingTasksList() { List<Task> taskModels = this.dao.getPendingTasks(); TaskClientDto taskList = new TaskClientDto(); TaskDto taskDto; for (Task task : taskModels) { taskDto = new TaskDto(); taskDto.setId(task.getId()); ta...
TaskClientDto function() { List<Task> taskModels = this.dao.getPendingTasks(); TaskClientDto taskList = new TaskClientDto(); TaskDto taskDto; for (Task task : taskModels) { taskDto = new TaskDto(); taskDto.setId(task.getId()); taskDto.setUserId(task.getUserId()); taskDto.setName(task.getName()); taskDto.setPhase(task.g...
/** * Method used to retrieve list of pending tasks. * @return List<Task> - list of Tasks. */
Method used to retrieve list of pending tasks
getPendingTasksList
{ "repo_name": "swingfox/cloudhub-master", "path": "src/taskmanagement/service/TaskService.java", "license": "gpl-2.0", "size": 12128 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
566,311
public static Socket createSocket(String server, int defaultPort, boolean ssl) throws IOException { int port = defaultPort; // IPv6: RFC 2732 format is '[a:b:c:d:e:f:g:h]' or // '[a:b:c:d:e:f:g:h]:port' // RFC 2396 format is 'a.b.c.d' or 'a.b.c.d:port' or 'hostname' or ...
static Socket function(String server, int defaultPort, boolean ssl) throws IOException { int port = defaultPort; int startIndex = server.startsWith("[") ? server.indexOf(']') : 0; int idx = server.indexOf(':', startIndex); if (idx >= 0) { port = Integer.decode(server.substring(idx + 1)); server = server.substring(0, id...
/** * Create a client socket that is connected to the given address and port. * * @param server to connect to (including an optional port) * @param defaultPort the default port (if not specified in the server * address) * @param ssl if SSL should be used * @return the socke...
Create a client socket that is connected to the given address and port
createSocket
{ "repo_name": "miloszpiglas/h2mod", "path": "src/main/org/h2/util/NetUtils.java", "license": "mpl-2.0", "size": 9017 }
[ "java.io.IOException", "java.net.InetAddress", "java.net.Socket" ]
import java.io.IOException; import java.net.InetAddress; import java.net.Socket;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
2,845,045
final ApplicationFrame frame = new ApplicationFrame(title); final ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); frame.setContentPane(chartPanel); frame.pack(); frame.setLocationByPlatform(true); frame.toFront(); frame.setVisible(true...
final ApplicationFrame frame = new ApplicationFrame(title); final ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); frame.setContentPane(chartPanel); frame.pack(); frame.setLocationByPlatform(true); frame.toFront(); frame.setVisible(true); }
/** * Zobrazi graf v novem okne. * @param chart Zobrazovany graf * @param title Titulek grafu */
Zobrazi graf v novem okne
showChart
{ "repo_name": "chatoooo/SIN", "path": "src/cz/vutbr/fit/sin/MainRunner.java", "license": "mit", "size": 1841 }
[ "org.jfree.chart.ChartPanel", "org.jfree.ui.ApplicationFrame" ]
import org.jfree.chart.ChartPanel; import org.jfree.ui.ApplicationFrame;
import org.jfree.chart.*; import org.jfree.ui.*;
[ "org.jfree.chart", "org.jfree.ui" ]
org.jfree.chart; org.jfree.ui;
939,761
return ReplayCommand.DATA_STRUCTURE_TYPE; }
return ReplayCommand.DATA_STRUCTURE_TYPE; }
/** * Return the type of Data Structure we marshal * * @return short representation of the type data structure */
Return the type of Data Structure we marshal
getDataStructureType
{ "repo_name": "apache/activemq-openwire", "path": "openwire-legacy/src/main/java/org/apache/activemq/openwire/codec/v9/ReplayCommandMarshaller.java", "license": "apache-2.0", "size": 4137 }
[ "org.apache.activemq.openwire.commands.ReplayCommand" ]
import org.apache.activemq.openwire.commands.ReplayCommand;
import org.apache.activemq.openwire.commands.*;
[ "org.apache.activemq" ]
org.apache.activemq;
1,723,167
boolean match = false; if (StringUtils.equalsIgnoreCase(value, matchValue)) { match = true; } else { String chartCode = (String) otherKeyFieldValues.get(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE); match = SpringContext.getBean(OrganizationService.class).isP...
boolean match = false; if (StringUtils.equalsIgnoreCase(value, matchValue)) { match = true; } else { String chartCode = (String) otherKeyFieldValues.get(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE); match = SpringContext.getBean(OrganizationService.class).isParentOrganization(chartCode, value, chartCode, matchValue); }...
/** * Matches org values based on org hierarchy * * @see org.kuali.kfs.sec.service.impl.AccessPermissionEvaluatorImpl#isMatch(java.lang.String, java.lang.String) */
Matches org values based on org hierarchy
isMatch
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/sec/service/impl/DescendOrganizationAccessPermissionEvaluatorImpl.java", "license": "agpl-3.0", "size": 1970 }
[ "org.apache.commons.lang.StringUtils", "org.kuali.kfs.coa.service.OrganizationService", "org.kuali.kfs.sys.KFSPropertyConstants", "org.kuali.kfs.sys.context.SpringContext" ]
import org.apache.commons.lang.StringUtils; import org.kuali.kfs.coa.service.OrganizationService; import org.kuali.kfs.sys.KFSPropertyConstants; import org.kuali.kfs.sys.context.SpringContext;
import org.apache.commons.lang.*; import org.kuali.kfs.coa.service.*; import org.kuali.kfs.sys.*; import org.kuali.kfs.sys.context.*;
[ "org.apache.commons", "org.kuali.kfs" ]
org.apache.commons; org.kuali.kfs;
1,953,621
@Override public void reset() throws IOException { throw new IOException(); }
void function() throws IOException { throw new IOException(); }
/** * Reset the position of the stream to the last marked position. This * implementation overrides the supertype implementation and always throws * an {@link IOException IOException} when called. * * @throws IOException * if the method is called */
Reset the position of the stream to the last marked position. This implementation overrides the supertype implementation and always throws an <code>IOException IOException</code> when called
reset
{ "repo_name": "webos21/xi", "path": "java/jcl/src/java/java/util/zip/InflaterInputStream.java", "license": "apache-2.0", "size": 8799 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,861,052
public void selectionChanged(JavaTextSelection selection) { try { setEnabled(RefactoringAvailabilityTester.isMoveStaticAvailable(selection)); } catch (JavaScriptModelException e) { setEnabled(false); } }
void function(JavaTextSelection selection) { try { setEnabled(RefactoringAvailabilityTester.isMoveStaticAvailable(selection)); } catch (JavaScriptModelException e) { setEnabled(false); } }
/** * Note: This method is for internal use only. Clients should not call this method. */
Note: This method is for internal use only. Clients should not call this method
selectionChanged
{ "repo_name": "boniatillo-com/PhaserEditor", "path": "source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/refactoring/actions/MoveStaticMembersAction.java", "license": "epl-1.0", "size": 5265 }
[ "org.eclipse.wst.jsdt.core.JavaScriptModelException", "org.eclipse.wst.jsdt.internal.corext.refactoring.RefactoringAvailabilityTester", "org.eclipse.wst.jsdt.internal.ui.javaeditor.JavaTextSelection" ]
import org.eclipse.wst.jsdt.core.JavaScriptModelException; import org.eclipse.wst.jsdt.internal.corext.refactoring.RefactoringAvailabilityTester; import org.eclipse.wst.jsdt.internal.ui.javaeditor.JavaTextSelection;
import org.eclipse.wst.jsdt.core.*; import org.eclipse.wst.jsdt.internal.corext.refactoring.*; import org.eclipse.wst.jsdt.internal.ui.javaeditor.*;
[ "org.eclipse.wst" ]
org.eclipse.wst;
1,589,350
public ClassNamePersistence getClassNamePersistence() { return classNamePersistence; }
ClassNamePersistence function() { return classNamePersistence; }
/** * Returns the class name persistence. * * @return the class name persistence */
Returns the class name persistence
getClassNamePersistence
{ "repo_name": "gamerson/liferay-blade-samples", "path": "maven/apps/service-builder/adq/adq-service/src/main/java/com/liferay/blade/samples/servicebuilder/adq/service/base/BarServiceBaseImpl.java", "license": "apache-2.0", "size": 13803 }
[ "com.liferay.portal.kernel.service.persistence.ClassNamePersistence" ]
import com.liferay.portal.kernel.service.persistence.ClassNamePersistence;
import com.liferay.portal.kernel.service.persistence.*;
[ "com.liferay.portal" ]
com.liferay.portal;
784,310
@Test public void listenerThrowShouldNotPreventOtherListenersFromBeingNotified() throws Http2Exception { final boolean[] calledArray = new boolean[128]; // The following setup will ensure that clientListener throws exceptions, and marks a value in an array // such that clientListener2 wi...
void function() throws Http2Exception { final boolean[] calledArray = new boolean[128]; int methodIndex = 0; doAnswer(new ListenerExceptionThrower(calledArray, methodIndex)) .when(clientListener).onStreamAdded(any(Http2Stream.class)); doAnswer(new ListenerVerifyCallAnswer(calledArray, methodIndex++)) .when(clientListen...
/** * We force {@link #clientListener} methods to all throw a {@link RuntimeException} and verify the following: * <ol> * <li>all listener methods are called for both {@link #clientListener} and {@link #clientListener2}</li> * <li>{@link #clientListener2} is notified after {@link #clientListener}</l...
We force <code>#clientListener</code> methods to all throw a <code>RuntimeException</code> and verify the following: all listener methods are called for both <code>#clientListener</code> and <code>#clientListener2</code> <code>#clientListener2</code> is notified after <code>#clientListener</code> <code>#clientListener2...
listenerThrowShouldNotPreventOtherListenersFromBeingNotified
{ "repo_name": "gerdriesselmann/netty", "path": "codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionTest.java", "license": "apache-2.0", "size": 26989 }
[ "io.netty.buffer.ByteBuf", "io.netty.buffer.Unpooled", "org.mockito.Mockito" ]
import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import org.mockito.Mockito;
import io.netty.buffer.*; import org.mockito.*;
[ "io.netty.buffer", "org.mockito" ]
io.netty.buffer; org.mockito;
588,612
public Module amplifier(Module input, double level) { return new Amplifier(settings, input, level); }
Module function(Module input, double level) { return new Amplifier(settings, input, level); }
/** * Create a new module which amplifies the input with the given level. * * @param input The input module. * @param level The amplification level. A level of 1.0 doesn't change the input signal. * @return A new amplifier. */
Create a new module which amplifies the input with the given level
amplifier
{ "repo_name": "jonas-lj/MOSEF", "path": "src/dk/jonaslindstrom/mosef/MOSEF.java", "license": "gpl-3.0", "size": 14397 }
[ "dk.jonaslindstrom.mosef.modules.Module", "dk.jonaslindstrom.mosef.modules.amplifier.Amplifier" ]
import dk.jonaslindstrom.mosef.modules.Module; import dk.jonaslindstrom.mosef.modules.amplifier.Amplifier;
import dk.jonaslindstrom.mosef.modules.*; import dk.jonaslindstrom.mosef.modules.amplifier.*;
[ "dk.jonaslindstrom.mosef" ]
dk.jonaslindstrom.mosef;
2,550,297
void style(File f, boolean saveBackup); Styler EMPTY = new Styler() { @Override public void style(File f, boolean saveBackup) {}
void style(File f, boolean saveBackup); Styler EMPTY = new Styler() { @Override void function(File f, boolean saveBackup) {}
/** * Styles a source file. * * @param f the file to style * @param saveBackup whether to save a backup */
Styles a source file
style
{ "repo_name": "JaredMiller/Wave", "path": "src/org/waveprotocol/pst/style/Styler.java", "license": "apache-2.0", "size": 1078 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,743,230
public static boolean initForJUnitTest(Config defaultConfig) { try { getConfig(); return false; } catch (IllegalStateException ex) { ElementaryFluxModes.setImpl(new SequentialDoubleDescriptionImpl(defaultConfig, new NullspaceEfmModelFactory(), new InCoreMemoryFactory())); traceArgs(Loggers.getRootL...
static boolean function(Config defaultConfig) { try { getConfig(); return false; } catch (IllegalStateException ex) { ElementaryFluxModes.setImpl(new SequentialDoubleDescriptionImpl(defaultConfig, new NullspaceEfmModelFactory(), new InCoreMemoryFactory())); traceArgs(Loggers.getRootLogger(), Level.INFO, STR, defaultCon...
/** * Initializes elementary flux mode calculation for junit tests. If there is * already a configuration, false is returned. Otherwise, binary nullspace * implementation is initalized with the specified default configuration. * * @return true if configured as specified, false if an existing * config...
Initializes elementary flux mode calculation for junit tests. If there is already a configuration, false is returned. Otherwise, binary nullspace implementation is initalized with the specified default configuration
initForJUnitTest
{ "repo_name": "mpgerstl/tEFMA", "path": "ch/javasoft/metabolic/efm/config/Config.java", "license": "bsd-2-clause", "size": 37828 }
[ "ch.javasoft.metabolic.efm.ElementaryFluxModes", "ch.javasoft.metabolic.efm.impl.SequentialDoubleDescriptionImpl", "ch.javasoft.metabolic.efm.memory.incore.InCoreMemoryFactory", "ch.javasoft.metabolic.efm.model.nullspace.NullspaceEfmModelFactory", "ch.javasoft.util.logging.Loggers", "java.util.logging.Lev...
import ch.javasoft.metabolic.efm.ElementaryFluxModes; import ch.javasoft.metabolic.efm.impl.SequentialDoubleDescriptionImpl; import ch.javasoft.metabolic.efm.memory.incore.InCoreMemoryFactory; import ch.javasoft.metabolic.efm.model.nullspace.NullspaceEfmModelFactory; import ch.javasoft.util.logging.Loggers; import java...
import ch.javasoft.metabolic.efm.*; import ch.javasoft.metabolic.efm.impl.*; import ch.javasoft.metabolic.efm.memory.incore.*; import ch.javasoft.metabolic.efm.model.nullspace.*; import ch.javasoft.util.logging.*; import java.util.logging.*;
[ "ch.javasoft.metabolic", "ch.javasoft.util", "java.util" ]
ch.javasoft.metabolic; ch.javasoft.util; java.util;
101,177
@Override public void enterEveryRule(ParserRuleContext ctx) { }
@Override public void enterEveryRule(ParserRuleContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitIdentifier
{ "repo_name": "yongli82/dsl", "path": "src/main/java/com/dsl/hr/accounting/AccountingBaseListener.java", "license": "mit", "size": 12709 }
[ "org.antlr.v4.runtime.ParserRuleContext" ]
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.*;
[ "org.antlr.v4" ]
org.antlr.v4;
2,177,566
public static List<Map<String, String>> getCloudDisksByGroup(String group) throws Exception { List<Map<String, String>> cloudDisks = new ArrayList<Map<String, String>>(); List<String> disks = VolumeManager.getPhysicalVolumeNames(group); if (disks != null && disks.size()>0) { for (String disk : dis...
static List<Map<String, String>> function(String group) throws Exception { List<Map<String, String>> cloudDisks = new ArrayList<Map<String, String>>(); List<String> disks = VolumeManager.getPhysicalVolumeNames(group); if (disks != null && disks.size()>0) { for (String disk : disks) { if (isCloudDevice(disk)) { cloudDis...
/** * Obtiene un listado de discos cloud a partir de su dispositivo fisico * @param device * @return * @throws Exception */
Obtiene un listado de discos cloud a partir de su dispositivo fisico
getCloudDisksByGroup
{ "repo_name": "WhiteBearSolutions/WBSAirback", "path": "src/com/whitebearsolutions/imagine/wbsairback/disk/CloudManager.java", "license": "apache-2.0", "size": 32220 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map" ]
import java.util.ArrayList; import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,470,949
EReference getMovieStart_End();
EReference getMovieStart_End();
/** * Returns the meta object for the reference '{@link org.lunifera.doc.dsl.doccompiler.MovieStart#getEnd <em>End</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference '<em>End</em>'. * @see org.lunifera.doc.dsl.doccompiler.MovieStart#getEnd() * @see #getMovi...
Returns the meta object for the reference '<code>org.lunifera.doc.dsl.doccompiler.MovieStart#getEnd End</code>'.
getMovieStart_End
{ "repo_name": "lunifera/lunifera-doc", "path": "org.lunifera.doc.dsl.semantic/src/org/lunifera/doc/dsl/doccompiler/DocCompilerPackage.java", "license": "epl-1.0", "size": 267430 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
428,062
private void testStateAndTimerCleanupAtGarbageCollectionWithPurgingTriggerAndMergingWindows(final TimeDomainAdaptor timeAdaptor) throws Exception { WindowAssigner<Integer, TimeWindow> mockAssigner = mockMergingAssigner(); timeAdaptor.setIsEventTime(mockAssigner); Trigger<Integer, TimeWindow> mockTrigger = mock...
void function(final TimeDomainAdaptor timeAdaptor) throws Exception { WindowAssigner<Integer, TimeWindow> mockAssigner = mockMergingAssigner(); timeAdaptor.setIsEventTime(mockAssigner); Trigger<Integer, TimeWindow> mockTrigger = mockTrigger(); InternalWindowFunction<Iterable<Integer>, Void, Integer, TimeWindow> mockWin...
/** * Verify that we correctly clean up even when a purging trigger has purged * window state. */
Verify that we correctly clean up even when a purging trigger has purged window state
testStateAndTimerCleanupAtGarbageCollectionWithPurgingTriggerAndMergingWindows
{ "repo_name": "bowenli86/flink", "path": "flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorContractTest.java", "license": "apache-2.0", "size": 122268 }
[ "java.util.Arrays", "org.apache.flink.streaming.api.windowing.assigners.WindowAssigner", "org.apache.flink.streaming.api.windowing.triggers.Trigger", "org.apache.flink.streaming.api.windowing.windows.TimeWindow", "org.apache.flink.streaming.runtime.operators.windowing.functions.InternalWindowFunction", "o...
import java.util.Arrays; import org.apache.flink.streaming.api.windowing.assigners.WindowAssigner; import org.apache.flink.streaming.api.windowing.triggers.Trigger; import org.apache.flink.streaming.api.windowing.windows.TimeWindow; import org.apache.flink.streaming.runtime.operators.windowing.functions.InternalWindowF...
import java.util.*; import org.apache.flink.streaming.api.windowing.assigners.*; import org.apache.flink.streaming.api.windowing.triggers.*; import org.apache.flink.streaming.api.windowing.windows.*; import org.apache.flink.streaming.runtime.operators.windowing.functions.*; import org.apache.flink.streaming.util.*; imp...
[ "java.util", "org.apache.flink", "org.junit", "org.mockito" ]
java.util; org.apache.flink; org.junit; org.mockito;
1,596,716
public void setWorld(World p_70029_1_) { this.worldObj = p_70029_1_; }
void function(World p_70029_1_) { this.worldObj = p_70029_1_; }
/** * Sets the reference to the World object. */
Sets the reference to the World object
setWorld
{ "repo_name": "TheHecticByte/BananaJ1.7.10Beta", "path": "src/net/minecraft/Server1_7_10/entity/Entity.java", "license": "gpl-3.0", "size": 78382 }
[ "net.minecraft.Server1_7_10" ]
import net.minecraft.Server1_7_10;
import net.minecraft.*;
[ "net.minecraft" ]
net.minecraft;
1,100,703
//simplifying the name of the variables to make the formula below more readable BigDecimal i = interestRateForEveryPeriod; BigDecimal p = capitalToPayBack; int n = numberPaymentPeriods; //periodic payment //BigDecimal periodicPayment = BigDecimal.valueOf(p*(i+(i/(Math.pow(1+i,n)-1)))); BigDecimal pe...
BigDecimal i = interestRateForEveryPeriod; BigDecimal p = capitalToPayBack; int n = numberPaymentPeriods; BigDecimal periodicPayment = p.multiply(i.add(i.divide(BigDecimal.ONE.add(i).pow(n).subtract(BigDecimal.ONE),MathContext.DECIMAL128))); return periodicPayment; }
/** * When calling this method, make sure that the interest rate corresponds to the payment period. For instance, if the * interest rate is referred to a year and the payment happens every month, the interest rate must be changed to a * monthly basis before being passed into this method. * * @param interestR...
When calling this method, make sure that the interest rate corresponds to the payment period. For instance, if the interest rate is referred to a year and the payment happens every month, the interest rate must be changed to a monthly basis before being passed into this method
workOutPeriodicPayment
{ "repo_name": "fjab76/loan-calc", "path": "src/main/java/fjab/loancalc/service/LoanServiceImp.java", "license": "mit", "size": 11094 }
[ "java.math.BigDecimal", "java.math.MathContext" ]
import java.math.BigDecimal; import java.math.MathContext;
import java.math.*;
[ "java.math" ]
java.math;
165,550
@SmallTest @Feature({"Preferences"}) public void testCookiesNotBlocked() throws Exception { Preferences preferenceActivity = startContentSettingsCategory(ContentPreferences.COOKIES_KEY); setCookiesEnabled(preferenceActivity, true); preferenceActivity.finish(); ...
@Feature({STR}) void function() throws Exception { Preferences preferenceActivity = startContentSettingsCategory(ContentPreferences.COOKIES_KEY); setCookiesEnabled(preferenceActivity, true); preferenceActivity.finish(); final String url = TestHttpServerClient.getUrl(STR); loadUrl(url + STR); assertEquals("\"\STRgetCook...
/** * Allows cookies to be set and ensures that they are. */
Allows cookies to be set and ensures that they are
testCookiesNotBlocked
{ "repo_name": "CTSRD-SOAAP/chromium-42.0.2311.135", "path": "chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/ContentPreferencesTest.java", "license": "bsd-3-clause", "size": 15088 }
[ "org.chromium.base.test.util.Feature", "org.chromium.chrome.browser.preferences.Preferences", "org.chromium.chrome.test.util.TestHttpServerClient" ]
import org.chromium.base.test.util.Feature; import org.chromium.chrome.browser.preferences.Preferences; import org.chromium.chrome.test.util.TestHttpServerClient;
import org.chromium.base.test.util.*; import org.chromium.chrome.browser.preferences.*; import org.chromium.chrome.test.util.*;
[ "org.chromium.base", "org.chromium.chrome" ]
org.chromium.base; org.chromium.chrome;
1,667,263
public static boolean FSOUND_3D_GetAttributes(int channel, FloatBuffer pos, FloatBuffer vel) { if(pos != null && !pos.isDirect()) { throw new NonDirectBufferException(); } if(vel != null && !vel.isDirect()) { throw new NonDirectBufferException(); } return FmodJNI.FSOUND_3D_GetAttributes(channel, pos...
static boolean function(int channel, FloatBuffer pos, FloatBuffer vel) { if(pos != null && !pos.isDirect()) { throw new NonDirectBufferException(); } if(vel != null && !vel.isDirect()) { throw new NonDirectBufferException(); } return FmodJNI.FSOUND_3D_GetAttributes(channel, pos, BufferUtils.getPositionInBytes(pos), vel...
/** * <br><b>Remarks :</b><br> * A 'distance unit' is specified by FSOUND_3D_SetDistanceFactor. By default this is set to meters which is a distance scale of 1.0. <br> * See FSOUND_3D_SetDistanceFactor for more on this.<br> * ___________________<br> * Supported on the following platforms : Win32, WinCE, Linux...
Remarks : A 'distance unit' is specified by FSOUND_3D_SetDistanceFactor. By default this is set to meters which is a distance scale of 1.0. See FSOUND_3D_SetDistanceFactor for more on this. ___________________ Supported on the following platforms : Win32, WinCE, Linux, Macintosh, XBox, PlayStation 2, GameCube
FSOUND_3D_GetAttributes
{ "repo_name": "jerome-jouvie/NativeFmod", "path": "src-java/org/jouvieje/Fmod/Fmod.java", "license": "lgpl-2.1", "size": 364285 }
[ "java.nio.FloatBuffer", "org.jouvieje.Fmod" ]
import java.nio.FloatBuffer; import org.jouvieje.Fmod;
import java.nio.*; import org.jouvieje.*;
[ "java.nio", "org.jouvieje" ]
java.nio; org.jouvieje;
606,220
public boolean isEmpty() throws RemoteException { try { JServerRmiAdapter.logMethodCall(adaptee.getFullName() + ".VectorPropertyRmiAdapter", "isEmpty()"); return adaptee.isEmpty(); } catch(Throwable t) { JServerUtilities.logError(adaptee.getFullName(), "Error occurred during remo...
boolean function() throws RemoteException { try { JServerRmiAdapter.logMethodCall(adaptee.getFullName() + STR, STR); return adaptee.isEmpty(); } catch(Throwable t) { JServerUtilities.logError(adaptee.getFullName(), STR, t); if(t instanceof Error) throw (Error)t; else throw new RemoteException(STR + adaptee.getFullName(...
/** * Checkes if this VectorProperty is empty. * * @return true if the VectorProperty has no items, otherwise false. */
Checkes if this VectorProperty is empty
isEmpty
{ "repo_name": "tolo/JServer", "path": "src/java/com/teletalk/jserver/rmi/adapter/VectorPropertyRmiAdapter.java", "license": "apache-2.0", "size": 9392 }
[ "com.teletalk.jserver.JServerUtilities", "java.rmi.RemoteException" ]
import com.teletalk.jserver.JServerUtilities; import java.rmi.RemoteException;
import com.teletalk.jserver.*; import java.rmi.*;
[ "com.teletalk.jserver", "java.rmi" ]
com.teletalk.jserver; java.rmi;
1,639,038
public static void warmUp(Context context) { synchronized (ChildProcessLauncher.class) { assert !ThreadUtils.runningOnUiThread(); if (sSpareSandboxedConnection == null) { sSpareSandboxedConnection = allocateBoundConnection(context, null, true); } }...
static void function(Context context) { synchronized (ChildProcessLauncher.class) { assert !ThreadUtils.runningOnUiThread(); if (sSpareSandboxedConnection == null) { sSpareSandboxedConnection = allocateBoundConnection(context, null, true); } } }
/** * Should be called early in startup so the work needed to spawn the child process can be done * in parallel to other startup work. Must not be called on the UI thread. Spare connection is * created in sandboxed child process. * @param context the application context used for the connection. ...
Should be called early in startup so the work needed to spawn the child process can be done in parallel to other startup work. Must not be called on the UI thread. Spare connection is created in sandboxed child process
warmUp
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java", "license": "gpl-3.0", "size": 24252 }
[ "android.content.Context", "org.chromium.base.ThreadUtils" ]
import android.content.Context; import org.chromium.base.ThreadUtils;
import android.content.*; import org.chromium.base.*;
[ "android.content", "org.chromium.base" ]
android.content; org.chromium.base;
739,873
public void addDesireFormulationConfiguration(DesireKey key, ConfigurationWithCommand<K> configuration) { addDesireFormulationConfiguration(key, (CommonConfiguration) configuration); commandsByKey.put(key, configuration.getCommandCreationStrategy()); } }
void function(DesireKey key, ConfigurationWithCommand<K> configuration) { addDesireFormulationConfiguration(key, (CommonConfiguration) configuration); commandsByKey.put(key, configuration.getCommandCreationStrategy()); } }
/** * Add configuration for desire * * @param key * @param configuration */
Add configuration for desire
addDesireFormulationConfiguration
{ "repo_name": "honzaMaly/kusanagi", "path": "mas-framework/src/main/java/cz/jan/maly/model/metadata/agents/DesireFormulation.java", "license": "mit", "size": 5349 }
[ "cz.jan.maly.model.metadata.DesireKey", "cz.jan.maly.model.metadata.agents.configuration.CommonConfiguration", "cz.jan.maly.model.metadata.agents.configuration.ConfigurationWithCommand" ]
import cz.jan.maly.model.metadata.DesireKey; import cz.jan.maly.model.metadata.agents.configuration.CommonConfiguration; import cz.jan.maly.model.metadata.agents.configuration.ConfigurationWithCommand;
import cz.jan.maly.model.metadata.*; import cz.jan.maly.model.metadata.agents.configuration.*;
[ "cz.jan.maly" ]
cz.jan.maly;
2,331,736
public void processStatusReports(List<ComponentStatus> componentStatuses, String hostname) throws AmbariException { Set<Cluster> clusters = clusterFsm.getClustersForHost(hostname); for (Cluster cl : clusters) { for (ComponentStatus status : componentStatuses) { if (status.getClusterId().equals(c...
void function(List<ComponentStatus> componentStatuses, String hostname) throws AmbariException { Set<Cluster> clusters = clusterFsm.getClustersForHost(hostname); for (Cluster cl : clusters) { for (ComponentStatus status : componentStatuses) { if (status.getClusterId().equals(cl.getClusterId())) { try { Service svc = cl...
/** * Process reports of status commands * @throws AmbariException */
Process reports of status commands
processStatusReports
{ "repo_name": "sekikn/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/agent/HeartbeatProcessor.java", "license": "apache-2.0", "size": 32918 }
[ "com.google.gson.annotations.SerializedName", "java.util.List", "java.util.Map", "java.util.Set", "org.apache.ambari.server.AmbariException", "org.apache.ambari.server.ServiceComponentHostNotFoundException", "org.apache.ambari.server.ServiceComponentNotFoundException", "org.apache.ambari.server.Servic...
import com.google.gson.annotations.SerializedName; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.ServiceComponentHostNotFoundException; import org.apache.ambari.server.ServiceComponentNotFoundException; import org.apac...
import com.google.gson.annotations.*; import java.util.*; import org.apache.ambari.server.*; import org.apache.ambari.server.state.*; import org.apache.ambari.server.state.fsm.*; import org.apache.ambari.server.state.host.*;
[ "com.google.gson", "java.util", "org.apache.ambari" ]
com.google.gson; java.util; org.apache.ambari;
1,444,049
public ArrayList<LinePoint> getPoints() { return mPoints; } public Line(Context context) { init(context); }
ArrayList<LinePoint> function() { return mPoints; } public Line(Context context) { init(context); }
/** * Getter for points which creates line. * * @return points */
Getter for points which creates line
getPoints
{ "repo_name": "Erzer/polonium-chart-view", "path": "library/src/com/polonium/linechart/Line.java", "license": "mit", "size": 11678 }
[ "android.content.Context", "java.util.ArrayList" ]
import android.content.Context; import java.util.ArrayList;
import android.content.*; import java.util.*;
[ "android.content", "java.util" ]
android.content; java.util;
1,861,000
void massUpdateWithSession(@Param("record") CustomerFeedbackWithBLOBs record, @Param("primaryKeys") List primaryKeys);
void massUpdateWithSession(@Param(STR) CustomerFeedbackWithBLOBs record, @Param(STR) List primaryKeys);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table s_customer_feedback * * @mbggenerated Tue Sep 08 09:15:20 ICT 2015 */
This method was generated by MyBatis Generator. This method corresponds to the database table s_customer_feedback
massUpdateWithSession
{ "repo_name": "onlylin/mycollab", "path": "mycollab-services/src/main/java/com/esofthead/mycollab/common/dao/CustomerFeedbackMapper.java", "license": "agpl-3.0", "size": 5039 }
[ "com.esofthead.mycollab.common.domain.CustomerFeedbackWithBLOBs", "java.util.List", "org.apache.ibatis.annotations.Param" ]
import com.esofthead.mycollab.common.domain.CustomerFeedbackWithBLOBs; import java.util.List; import org.apache.ibatis.annotations.Param;
import com.esofthead.mycollab.common.domain.*; import java.util.*; import org.apache.ibatis.annotations.*;
[ "com.esofthead.mycollab", "java.util", "org.apache.ibatis" ]
com.esofthead.mycollab; java.util; org.apache.ibatis;
345,468
public boolean hasAdvancedProperties() { if (CollectionUtils.isNotEmpty(properties)) { for (AbstractProperty property : properties) { if (property.isAdvanced()) { return true; } } } return false; } /** * Gets {@link #name}. * * @return {@link #name}
boolean function() { if (CollectionUtils.isNotEmpty(properties)) { for (AbstractProperty property : properties) { if (property.isAdvanced()) { return true; } } } return false; } /** * Gets {@link #name}. * * @return {@link #name}
/** * Returns <code>true</code> if at least one property in this section is marked as advanced, * <code>false</code> otherwise. * * @return Returns <code>true</code> if at least one property in this section is marked as * advanced, <code>false</code> otherwise. */
Returns <code>true</code> if at least one property in this section is marked as advanced, <code>false</code> otherwise
hasAdvancedProperties
{ "repo_name": "MarioRose/inspectIT", "path": "CommonsCS/src/info/novatec/inspectit/cmr/property/configuration/PropertySection.java", "license": "agpl-3.0", "size": 3092 }
[ "org.apache.commons.collections.CollectionUtils" ]
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.*;
[ "org.apache.commons" ]
org.apache.commons;
2,274,943
void read() throws IOException, BufferOverflowException { int count; if (mReadBuffer.position() == mReadBuffer.capacity()) { if (mReadBuffer.capacity() * 2 > MAX_BUF_SIZE) { Log.e("ddms", "Exceeded MAX_BUF_SIZE!"); throw new BufferOverflowExcepti...
void read() throws IOException, BufferOverflowException { int count; if (mReadBuffer.position() == mReadBuffer.capacity()) { if (mReadBuffer.capacity() * 2 > MAX_BUF_SIZE) { Log.e("ddms", STR); throw new BufferOverflowException(); } Log.d("ddms", STR + mReadBuffer.capacity() * 2); ByteBuffer newBuffer = ByteBuffer.allo...
/** * Read data from our channel. * * This is called when data is known to be available, and we don't yet * have a full packet in the buffer. If the buffer is at capacity, * expand it. */
Read data from our channel. This is called when data is known to be available, and we don't yet have a full packet in the buffer. If the buffer is at capacity, expand it
read
{ "repo_name": "utds3lab/SMVHunter", "path": "dynamic/src/com/android/ddmlib/Client.java", "license": "gpl-2.0", "size": 29151 }
[ "java.io.IOException", "java.nio.BufferOverflowException", "java.nio.ByteBuffer" ]
import java.io.IOException; import java.nio.BufferOverflowException; import java.nio.ByteBuffer;
import java.io.*; import java.nio.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
835,704
public List<ResideMenuItem> getMenuItems(int direction) { if (direction == DIRECTION_LEFT) return leftMenuItems; else return rightMenuItems; }
List<ResideMenuItem> function(int direction) { if (direction == DIRECTION_LEFT) return leftMenuItems; else return rightMenuItems; }
/** * get the menu items; * * @return */
get the menu items
getMenuItems
{ "repo_name": "khacpv/calc-market", "path": "Android/app/src/main/java/com/oic/calcmarket/common/widgets/residemenu/ResideMenu.java", "license": "mit", "size": 20442 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,124,831
Cipher buildDecryptionCipher(byte[] iv) { return buildCipher(iv); }
Cipher buildDecryptionCipher(byte[] iv) { return buildCipher(iv); }
/** * Returns a cipher that can be used to decrypt data. * * @param iv the initialization vector used when encrypting the data that we wish to decrypt * @return a cipher that can be used to decrypt data */
Returns a cipher that can be used to decrypt data
buildDecryptionCipher
{ "repo_name": "akm799/imprint-demo", "path": "app/src/main/java/uk/co/akm/imprintdemo/utils/CipherBuilder.java", "license": "gpl-3.0", "size": 4665 }
[ "javax.crypto.Cipher" ]
import javax.crypto.Cipher;
import javax.crypto.*;
[ "javax.crypto" ]
javax.crypto;
1,431,732
@Test public void testAbortNewFileAfterFlush() throws IOException { AtomicFileOutputStream fos = new AtomicFileOutputStream(dstFile); fos.write(TEST_STRING.getBytes()); fos.flush(); fos.abort(); assertEquals(0, testDir.list().length); }
void function() throws IOException { AtomicFileOutputStream fos = new AtomicFileOutputStream(dstFile); fos.write(TEST_STRING.getBytes()); fos.flush(); fos.abort(); assertEquals(0, testDir.list().length); }
/** * Ensure the tmp file is cleaned up and dstFile is not created when * aborting a new file. */
Ensure the tmp file is cleaned up and dstFile is not created when aborting a new file
testAbortNewFileAfterFlush
{ "repo_name": "maoling/zookeeper", "path": "zookeeper-server/src/test/java/org/apache/zookeeper/test/AtomicFileOutputStreamTest.java", "license": "apache-2.0", "size": 6753 }
[ "java.io.IOException", "org.apache.zookeeper.common.AtomicFileOutputStream", "org.junit.jupiter.api.Assertions" ]
import java.io.IOException; import org.apache.zookeeper.common.AtomicFileOutputStream; import org.junit.jupiter.api.Assertions;
import java.io.*; import org.apache.zookeeper.common.*; import org.junit.jupiter.api.*;
[ "java.io", "org.apache.zookeeper", "org.junit.jupiter" ]
java.io; org.apache.zookeeper; org.junit.jupiter;
2,298,594
public void onScroll(PLA_AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount); } public PLA_AbsListView(Context context) { super(context); initAbsListView(); setVerticalScrollBarEnabled(true); TypedArray a = context.obtainStyledAttributes(R.styleable.View); initialize...
void function(PLA_AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount); } public PLA_AbsListView(Context context) { super(context); initAbsListView(); setVerticalScrollBarEnabled(true); TypedArray a = context.obtainStyledAttributes(R.styleable.View); initializeScrollbars(a); a.recycle(); } ...
/** * Callback method to be invoked when the list or grid has been scrolled. This will be * called after the scroll has completed * @param view The view whose scroll state is being reported * @param firstVisibleItem the index of the first visible cell (ignore if * visibleItemCount == 0) * @para...
Callback method to be invoked when the list or grid has been scrolled. This will be called after the scroll has completed
onScroll
{ "repo_name": "daimajia/EverMemo", "path": "libraries/ExGridView/src/com/huewu/pla/lib/internal/PLA_AbsListView.java", "license": "mit", "size": 91245 }
[ "android.content.Context", "android.content.res.TypedArray", "android.graphics.drawable.Drawable", "android.util.AttributeSet", "android.view.View" ]
import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.View;
import android.content.*; import android.content.res.*; import android.graphics.drawable.*; import android.util.*; import android.view.*;
[ "android.content", "android.graphics", "android.util", "android.view" ]
android.content; android.graphics; android.util; android.view;
2,368,020
public void setFinancialDocumentCashAmount(KualiDecimal financialDocumentCashAmount) { this.financialDocumentCashAmount = financialDocumentCashAmount; }
void function(KualiDecimal financialDocumentCashAmount) { this.financialDocumentCashAmount = financialDocumentCashAmount; }
/** * Sets the financialDocumentCashAmount attribute. * * @param financialDocumentCashAmount The financialDocumentCashAmount to set. */
Sets the financialDocumentCashAmount attribute
setFinancialDocumentCashAmount
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/fp/businessobject/CashieringDocument.java", "license": "apache-2.0", "size": 10584 }
[ "org.kuali.rice.core.api.util.type.KualiDecimal" ]
import org.kuali.rice.core.api.util.type.KualiDecimal;
import org.kuali.rice.core.api.util.type.*;
[ "org.kuali.rice" ]
org.kuali.rice;
751,120
public Pair<Double,Double> runTwoSidedTest() { Pair<Long,USet> uPair = calculateTwoSidedU(observations); long u = uPair.getLeft(); int n = uPair.getRight() == USet.SET1 ? sizeSet1 : sizeSet2; int m = uPair.getRight() == USet.SET1 ? sizeSet2 : sizeSet1; if ( n == 0 || m == 0 )...
Pair<Double,Double> function() { Pair<Long,USet> uPair = calculateTwoSidedU(observations); long u = uPair.getLeft(); int n = uPair.getRight() == USet.SET1 ? sizeSet1 : sizeSet2; int m = uPair.getRight() == USet.SET1 ? sizeSet2 : sizeSet1; if ( n == 0 m == 0 ) { return new MutablePair<>(Double.NaN, Double.NaN); } return...
/** * Runs the standard two-sided test, * returns the u-based z-approximate and p values. * @return a pair holding the u and p-value. */
Runs the standard two-sided test, returns the u-based z-approximate and p values
runTwoSidedTest
{ "repo_name": "tomwhite/hellbender", "path": "src/main/java/org/broadinstitute/hellbender/utils/MannWhitneyU.java", "license": "bsd-3-clause", "size": 19507 }
[ "org.apache.commons.lang3.tuple.MutablePair", "org.apache.commons.lang3.tuple.Pair" ]
import org.apache.commons.lang3.tuple.MutablePair; import org.apache.commons.lang3.tuple.Pair;
import org.apache.commons.lang3.tuple.*;
[ "org.apache.commons" ]
org.apache.commons;
63,146
protected boolean handleAuthentication(HttpServletRequest request, HttpServletResponse response, String address) throws ServletException, IOException { return true; }
boolean function(HttpServletRequest request, HttpServletResponse response, String address) throws ServletException, IOException { return true; }
/** * <p>Handles the authentication before setting up the tunnel to the remote server.</p> * <p>The default implementation returns true.</p> * * @param request the HTTP request * @param response the HTTP response * @param address the address of the remote server in the form {@code host:p...
Handles the authentication before setting up the tunnel to the remote server. The default implementation returns true
handleAuthentication
{ "repo_name": "thomasbecker/jetty-spdy", "path": "jetty-server/src/main/java/org/eclipse/jetty/server/handler/ConnectHandler.java", "license": "apache-2.0", "size": 30481 }
[ "java.io.IOException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
1,631,824
EAttribute getExpr_E2();
EAttribute getExpr_E2();
/** * Returns the meta object for the attribute '{@link com.euclideanspace.spad.editor.Expr#getE2 <em>E2</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>E2</em>'. * @see com.euclideanspace.spad.editor.Expr#getE2() * @see #getExpr() * @gener...
Returns the meta object for the attribute '<code>com.euclideanspace.spad.editor.Expr#getE2 E2</code>'.
getExpr_E2
{ "repo_name": "martinbaker/euclideanspace", "path": "com.euclideanspace.spad/src-gen/com/euclideanspace/spad/editor/EditorPackage.java", "license": "agpl-3.0", "size": 593321 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,228,763
public void initGUI(){ this.visualizer.setPreferredSize(new Dimension(cWidth, cHeight)); this.getContentPane().add(visualizer, BorderLayout.CENTER); Container controlContainer = new Container(); controlContainer.setLayout(new BorderLayout()); this.showPolicy = new JCheckBox("Show Policy"); th...
void function(){ this.visualizer.setPreferredSize(new Dimension(cWidth, cHeight)); this.getContentPane().add(visualizer, BorderLayout.CENTER); Container controlContainer = new Container(); controlContainer.setLayout(new BorderLayout()); this.showPolicy = new JCheckBox(STR); this.showPolicy.setSelected(false); this.show...
/** * Initializes the GUI and presents it to the user. */
Initializes the GUI and presents it to the user
initGUI
{ "repo_name": "ryanlinnane/burlap", "path": "src/burlap/behavior/singleagent/auxiliary/valuefunctionvis/ValueFunctionVisualizerGUI.java", "license": "lgpl-3.0", "size": 7343 }
[ "java.awt.BorderLayout", "java.awt.Container", "java.awt.Dimension", "javax.swing.JCheckBox" ]
import java.awt.BorderLayout; import java.awt.Container; import java.awt.Dimension; import javax.swing.JCheckBox;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,300,077
protected Schema getSchema(Path path, FileSystem fs) throws IOException { return AvroStorageUtils.getSchema(path, fs); }
Schema function(Path path, FileSystem fs) throws IOException { return AvroStorageUtils.getSchema(path, fs); }
/** * This method is called by {@link #getAvroSchema}. The default implementation * returns the schema of an avro file; or the schema of the last file in a first-level * directory (it does not contain sub-directories). * * @param path path of a file or first level directory * @param fs f...
This method is called by <code>#getAvroSchema</code>. The default implementation returns the schema of an avro file; or the schema of the last file in a first-level directory (it does not contain sub-directories)
getSchema
{ "repo_name": "aglne/Cubert", "path": "src/main/java/com/linkedin/cubert/pig/piggybank/storage/avro/AvroStorage.java", "license": "apache-2.0", "size": 32836 }
[ "java.io.IOException", "org.apache.avro.Schema", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path" ]
import java.io.IOException; import org.apache.avro.Schema; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path;
import java.io.*; import org.apache.avro.*; import org.apache.hadoop.fs.*;
[ "java.io", "org.apache.avro", "org.apache.hadoop" ]
java.io; org.apache.avro; org.apache.hadoop;
999,114
public void addTransaction(List<Item> transaction, int RTU) { UPNode currentNode = root; int i = 0; int RemainingUtility = 0; int size = transaction.size(); // For each item in the transaction for (i = 0; i < size; i++) { for (int k = i + 1; k < transaction.size(); k++) { // remaining ut...
void function(List<Item> transaction, int RTU) { UPNode currentNode = root; int i = 0; int RemainingUtility = 0; int size = transaction.size(); for (i = 0; i < size; i++) { for (int k = i + 1; k < transaction.size(); k++) { RemainingUtility += transaction.get(k).getUtility(); } int item = transaction.get(i).getName(); ...
/** * Method for adding a transaction to the up-tree (for the initial * construction of the UP-Tree). * * @param transaction reorganised transaction * @param RTU reorganised transaction utility */
Method for adding a transaction to the up-tree (for the initial construction of the UP-Tree)
addTransaction
{ "repo_name": "matheusmmcs/SPMF-UseSkill", "path": "src/ca/pfv/spmf/algorithms/frequentpatterns/upgrowth_ihup/UPTree.java", "license": "mit", "size": 8229 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,401,486
public void setRecordingModeAsync(boolean isRecording) { mFmServiceHandler.removeMessages(FmRadioListener.MSGID_RECORD_MODE_CHANED); final int bundleSize = 1; Bundle bundle = new Bundle(bundleSize); bundle.putBoolean(OPTION, isRecording); Message msg = mFmServiceHandler.obtai...
void function(boolean isRecording) { mFmServiceHandler.removeMessages(FmRadioListener.MSGID_RECORD_MODE_CHANED); final int bundleSize = 1; Bundle bundle = new Bundle(bundleSize); bundle.putBoolean(OPTION, isRecording); Message msg = mFmServiceHandler.obtainMessage(FmRadioListener.MSGID_RECORD_MODE_CHANED); msg.setData(...
/** * Set recording mode * * @param isRecording true, enter recoding mode; false, exit recording mode */
Set recording mode
setRecordingModeAsync
{ "repo_name": "darklord4822/android_device_smart_sprint4g", "path": "mtk/FmRadio/src/com/mediatek/fmradio/FmRadioService.java", "license": "gpl-2.0", "size": 105643 }
[ "android.os.Bundle", "android.os.Message" ]
import android.os.Bundle; import android.os.Message;
import android.os.*;
[ "android.os" ]
android.os;
222,004
private Metadata createMetadata(String tableName) { Metadata metadata = new Metadata(); if (tableName != null) { metadata.put(GRPC_RESOURCE_PREFIX_KEY, tableName); } return metadata; } // Scanner methods
Metadata function(String tableName) { Metadata metadata = new Metadata(); if (tableName != null) { metadata.put(GRPC_RESOURCE_PREFIX_KEY, tableName); } return metadata; }
/** * Creates a {@link Metadata} that contains pertinent headers. */
Creates a <code>Metadata</code> that contains pertinent headers
createMetadata
{ "repo_name": "kevinsi4508/cloud-bigtable-client", "path": "bigtable-client-core-parent/bigtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/BigtableDataGrpcClient.java", "license": "apache-2.0", "size": 19472 }
[ "io.grpc.Metadata" ]
import io.grpc.Metadata;
import io.grpc.*;
[ "io.grpc" ]
io.grpc;
14,627
public void setPackageAssertionStatus(String name, boolean flag) { if (name == null) { name = ""; } Class.disableAssertions = false; synchronized (definedPackages) { if (packageAssertionStatus == null) { packageAssertionStatus = new Hashtable<S...
void function(String name, boolean flag) { if (name == null) { name = ""; } Class.disableAssertions = false; synchronized (definedPackages) { if (packageAssertionStatus == null) { packageAssertionStatus = new Hashtable<String, Boolean>(); } } packageAssertionStatus.put(name, Boolean.valueOf(flag)); }
/** * Empty string is used to denote default package. */
Empty string is used to denote default package
setPackageAssertionStatus
{ "repo_name": "freeVM/freeVM", "path": "enhanced/java/drlvm/vm/vmcore/src/kernel_classes/javasrc/java/lang/ClassLoader.java", "license": "apache-2.0", "size": 33029 }
[ "java.util.Hashtable" ]
import java.util.Hashtable;
import java.util.*;
[ "java.util" ]
java.util;
2,530,923
public void createPipeline(ReplicationType replicationType, String pipelineID, List<DatanodeDetails> datanodes) throws IOException { PipelineManager manager = getPipelineManager(replicationType); Preconditions.checkNotNull(manager, "Found invalid pipeline manager"); LOG.debug("Creating a pipeline: {...
void function(ReplicationType replicationType, String pipelineID, List<DatanodeDetails> datanodes) throws IOException { PipelineManager manager = getPipelineManager(replicationType); Preconditions.checkNotNull(manager, STR); LOG.debug(STR, pipelineID, datanodes.stream().map(DatanodeDetails::toString) .collect(Collector...
/** * Creates a pipeline from a specified set of Nodes. */
Creates a pipeline from a specified set of Nodes
createPipeline
{ "repo_name": "ChetnaChaudhari/hadoop", "path": "hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipelines/PipelineSelector.java", "license": "apache-2.0", "size": 9220 }
[ "com.google.common.base.Preconditions", "java.io.IOException", "java.util.List", "java.util.stream.Collectors", "org.apache.hadoop.hdds.protocol.DatanodeDetails", "org.apache.hadoop.hdds.protocol.proto.HddsProtos" ]
import com.google.common.base.Preconditions; import java.io.IOException; import java.util.List; import java.util.stream.Collectors; import org.apache.hadoop.hdds.protocol.DatanodeDetails; import org.apache.hadoop.hdds.protocol.proto.HddsProtos;
import com.google.common.base.*; import java.io.*; import java.util.*; import java.util.stream.*; import org.apache.hadoop.hdds.protocol.*; import org.apache.hadoop.hdds.protocol.proto.*;
[ "com.google.common", "java.io", "java.util", "org.apache.hadoop" ]
com.google.common; java.io; java.util; org.apache.hadoop;
2,734,106
protected void registerHandlers(Map handlerMap) throws BeansException { Assert.notNull(handlerMap, "Handler Map must not be null"); for (Iterator it = handlerMap.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry) it.next(); registerHandler(entry.getKey(), entry.getValue()); } }
void function(Map handlerMap) throws BeansException { Assert.notNull(handlerMap, STR); for (Iterator it = handlerMap.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry) it.next(); registerHandler(entry.getKey(), entry.getValue()); } }
/** * Register all handlers specified in the Portlet mode map for the corresponding modes. * @param handlerMap Map with lookup keys as keys and handler beans or bean names as values * @throws BeansException if the handler couldn't be registered */
Register all handlers specified in the Portlet mode map for the corresponding modes
registerHandlers
{ "repo_name": "mattxia/spring-2.5-analysis", "path": "src/org/springframework/web/portlet/handler/AbstractMapBasedHandlerMapping.java", "license": "apache-2.0", "size": 4950 }
[ "java.util.Iterator", "java.util.Map", "org.springframework.beans.BeansException", "org.springframework.util.Assert" ]
import java.util.Iterator; import java.util.Map; import org.springframework.beans.BeansException; import org.springframework.util.Assert;
import java.util.*; import org.springframework.beans.*; import org.springframework.util.*;
[ "java.util", "org.springframework.beans", "org.springframework.util" ]
java.util; org.springframework.beans; org.springframework.util;
1,118,088
//------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF public static LogMoneynessStrike.Meta meta() { return LogMoneynessStrike.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(LogMoneynessStrike.Meta.INSTANCE); } private static final long serialVersi...
static LogMoneynessStrike.Meta function() { return LogMoneynessStrike.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(LogMoneynessStrike.Meta.INSTANCE); } private static final long serialVersionUID = 1L; private LogMoneynessStrike( double value) { this.value = value; }
/** * The meta-bean for {@code LogMoneynessStrike}. * @return the meta-bean, not null */
The meta-bean for LogMoneynessStrike
meta
{ "repo_name": "nssales/Strata", "path": "modules/market/src/main/java/com/opengamma/strata/market/option/LogMoneynessStrike.java", "license": "apache-2.0", "size": 8824 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
2,275,816
static MessageEvent getMessage(final byte[] data) { final ChannelBuffer buf = ChannelBuffers.wrappedBuffer(data); return getMessage(buf); }
static MessageEvent getMessage(final byte[] data) { final ChannelBuffer buf = ChannelBuffers.wrappedBuffer(data); return getMessage(buf); }
/** * Generate a mock MessageEvent from a byte array * @param data The data to pass on * @return The event to hand to messageReceived( */
Generate a mock MessageEvent from a byte array
getMessage
{ "repo_name": "manolama/asynchbase", "path": "test/TestRegionClientDecode.java", "license": "bsd-3-clause", "size": 87435 }
[ "org.jboss.netty.buffer.ChannelBuffer", "org.jboss.netty.buffer.ChannelBuffers", "org.jboss.netty.channel.MessageEvent" ]
import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.MessageEvent;
import org.jboss.netty.buffer.*; import org.jboss.netty.channel.*;
[ "org.jboss.netty" ]
org.jboss.netty;
2,898,924
// miniguava: Modified not to use Ordering#onResultOf(). public ImmutableMap<K, V> build() { switch (size) { case 0: return of(); case 1: return of(entries[0].getKey(), entries[0].getValue()); default: if (valueComparator != null) { ...
ImmutableMap<K, V> function() { switch (size) { case 0: return of(); case 1: return of(entries[0].getKey(), entries[0].getValue()); default: if (valueComparator != null) { if (entriesUsed) { entries = ObjectArrays.arraysCopyOf(entries, size); } Arrays.sort( entries, 0, size, mapValueComparator(valueComparator)); } entr...
/** * Returns a newly-created immutable map. * * @throws IllegalArgumentException if duplicate keys were added */
Returns a newly-created immutable map
build
{ "repo_name": "ypresto/miniguava", "path": "miniguava-collect-immutables/src/main/java/net/ypresto/miniguava/collect/immutables/ImmutableMap.java", "license": "apache-2.0", "size": 21266 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
430,865
@Test public void testPublicCloneable() { CandlestickRenderer r1 = new CandlestickRenderer(); assertTrue(r1 instanceof PublicCloneable); }
void function() { CandlestickRenderer r1 = new CandlestickRenderer(); assertTrue(r1 instanceof PublicCloneable); }
/** * Verify that this class implements {@link PublicCloneable}. */
Verify that this class implements <code>PublicCloneable</code>
testPublicCloneable
{ "repo_name": "oskopek/jfreechart-fse", "path": "src/test/java/org/jfree/chart/renderer/xy/CandlestickRendererTest.java", "license": "lgpl-2.1", "size": 8725 }
[ "org.jfree.chart.util.PublicCloneable", "org.junit.Assert" ]
import org.jfree.chart.util.PublicCloneable; import org.junit.Assert;
import org.jfree.chart.util.*; import org.junit.*;
[ "org.jfree.chart", "org.junit" ]
org.jfree.chart; org.junit;
2,337,198
private List<Tuple2<Integer, Integer>> randomPairs(int n, int nPairs, long seed) { if (nPairs > BATCH_SIZE) nPairs = BATCH_SIZE; Random r = new Random(seed); Set<Tuple2<Integer,Integer>> set = new HashSet<>(nPairs); int i = 0; int t = 0; while (i < nPairs && t < (3 * nPairs)) { t++; int j = r.n...
List<Tuple2<Integer, Integer>> function(int n, int nPairs, long seed) { if (nPairs > BATCH_SIZE) nPairs = BATCH_SIZE; Random r = new Random(seed); Set<Tuple2<Integer,Integer>> set = new HashSet<>(nPairs); int i = 0; int t = 0; while (i < nPairs && t < (3 * nPairs)) { t++; int j = r.nextInt(n); int k = r.nextInt(n); if ...
/** * Returns random pairs of indices for the pairwise comparison. * @param n * @param nPairs * @param seed * @return */
Returns random pairs of indices for the pairwise comparison
randomPairs
{ "repo_name": "roaderj/QuickStructureSearch", "path": "src/main/java/org/rcsb/project8/TestSetCreatorP8.java", "license": "lgpl-2.1", "size": 5854 }
[ "java.util.ArrayList", "java.util.HashSet", "java.util.List", "java.util.Random", "java.util.Set" ]
import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Random; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,030,573
public CustomDnsConfigPropertiesFormat withIpAddresses(List<String> ipAddresses) { this.ipAddresses = ipAddresses; return this; }
CustomDnsConfigPropertiesFormat function(List<String> ipAddresses) { this.ipAddresses = ipAddresses; return this; }
/** * Set a list of private ip addresses of the private endpoint. * * @param ipAddresses the ipAddresses value to set * @return the CustomDnsConfigPropertiesFormat object itself. */
Set a list of private ip addresses of the private endpoint
withIpAddresses
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/CustomDnsConfigPropertiesFormat.java", "license": "mit", "size": 1845 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,862,208
public void onFileDelete(File file) { mojo.getLog().info(EMPTY_STRING); mojo.getLog().info("The watcher has detected a deleted file: " + file.getAbsolutePath()); mojo.getLog().info(EMPTY_STRING); for (Watcher watcher : watchers) { if (watcher.accept(file)) { ...
void function(File file) { mojo.getLog().info(EMPTY_STRING); mojo.getLog().info(STR + file.getAbsolutePath()); mojo.getLog().info(EMPTY_STRING); for (Watcher watcher : watchers) { if (watcher.accept(file)) { cleanupErrorFile(watcher); boolean continueProcessing; try { continueProcessing = watcher.fileDeleted(file); } c...
/** * The FAM has detected a file deletion. It dispatches this event to the watchers plugged on the current * pipeline. * * @param file the deleted file */
The FAM has detected a file deletion. It dispatches this event to the watchers plugged on the current pipeline
onFileDelete
{ "repo_name": "torito/wisdom", "path": "core/wisdom-maven-plugin/src/main/java/org/wisdom/maven/pipeline/Pipeline.java", "license": "apache-2.0", "size": 11553 }
[ "java.io.File", "org.wisdom.maven.Watcher", "org.wisdom.maven.WatchingException" ]
import java.io.File; import org.wisdom.maven.Watcher; import org.wisdom.maven.WatchingException;
import java.io.*; import org.wisdom.maven.*;
[ "java.io", "org.wisdom.maven" ]
java.io; org.wisdom.maven;
1,754,029
public StackableItem getAmmunition() { final String[] slots = { "lhand", "rhand" }; for (final String slot : slots) { final StackableItem item = (StackableItem) getEquippedItemClass( slot, "ammunition"); if (item != null) { return item; } } return null; }
StackableItem function() { final String[] slots = { "lhand", "rhand" }; for (final String slot : slots) { final StackableItem item = (StackableItem) getEquippedItemClass( slot, STR); if (item != null) { return item; } } return null; }
/** * Gets the stack of ammunition (arrows or similar) that this entity is * holding in its hands. * * @return The ammunition, or null if this entity is not holding ammunition. * If the entity has ammunition in each hand, returns the ammunition * in its left hand. */
Gets the stack of ammunition (arrows or similar) that this entity is holding in its hands
getAmmunition
{ "repo_name": "markuskeunecke/stendhal", "path": "src/games/stendhal/server/entity/RPEntity.java", "license": "gpl-2.0", "size": 87393 }
[ "games.stendhal.server.entity.item.StackableItem" ]
import games.stendhal.server.entity.item.StackableItem;
import games.stendhal.server.entity.item.*;
[ "games.stendhal.server" ]
games.stendhal.server;
1,020,614
@TmfSignalHandler public void traceOpened(TmfTraceOpenedSignal signal) { assert (signal != null); fTrace = signal.getTrace(); System.out.println("TmfAdbPlugin.traceOpened "+ signal); }
void function(TmfTraceOpenedSignal signal) { assert (signal != null); fTrace = signal.getTrace(); System.out.println(STR+ signal); }
/** * Handles trace opened signal. Loads histogram if new trace time range is not * equal <code>TmfTimeRange.NULL_RANGE</code> * @param signal the trace opened signal */
Handles trace opened signal. Loads histogram if new trace time range is not equal <code>TmfTimeRange.NULL_RANGE</code>
traceOpened
{ "repo_name": "rhchen/etrakr", "path": "tmf/net.sf.etrakr.tmf.remote.adb.ui/src/net/sf/etrakr/tmf/remote/adb/ui/TmfAdbPlugin.java", "license": "epl-1.0", "size": 7035 }
[ "org.eclipse.tracecompass.tmf.core.signal.TmfTraceOpenedSignal" ]
import org.eclipse.tracecompass.tmf.core.signal.TmfTraceOpenedSignal;
import org.eclipse.tracecompass.tmf.core.signal.*;
[ "org.eclipse.tracecompass" ]
org.eclipse.tracecompass;
2,759,508
return primitives; } /** * Returns the array of debug TBN primitives, or null if not created - create by calling * {@link #createDebugTBNPrimitives(GLES20Wrapper, Primitive[])}
return primitives; } /** * Returns the array of debug TBN primitives, or null if not created - create by calling * {@link #createDebugTBNPrimitives(GLES20Wrapper, Primitive[])}
/** * Returns the array of primitives for this Mesh * * @return */
Returns the array of primitives for this Mesh
getPrimitives
{ "repo_name": "rsahlin/graphics-by-opengl", "path": "graphics-by-opengl-j2se/src/main/java/com/nucleus/scene/gltf/Mesh.java", "license": "apache-2.0", "size": 5546 }
[ "com.nucleus.opengl.GLES20Wrapper" ]
import com.nucleus.opengl.GLES20Wrapper;
import com.nucleus.opengl.*;
[ "com.nucleus.opengl" ]
com.nucleus.opengl;
1,956,287
public static String getUniqueLegalName(final String packageName, final String name, final String ext, final String prefix, final ResourceRe...
static String function(final String packageName, final String name, final String ext, final String prefix, final ResourceReader src) { final String newName = prefix + "_" + NON_ALPHA_REGEX.matcher(name).replaceAll("_"); if (ext.equals("java")) return newName + "_" + generateUUID(); final String fileName = packageName.r...
/** * Takes a given name and makes sure that its legal and doesn't already exist. If the file exists it increases counter appender untill it is unique. * <p/> * * @param packageName * @param name * @param ext * @return */
Takes a given name and makes sure that its legal and doesn't already exist. If the file exists it increases counter appender untill it is unique.
getUniqueLegalName
{ "repo_name": "yurloc/drools", "path": "drools-compiler/src/main/java/org/drools/rule/builder/dialect/DialectUtil.java", "license": "apache-2.0", "size": 42998 }
[ "org.drools.commons.jci.readers.ResourceReader", "org.drools.core.util.StringUtils" ]
import org.drools.commons.jci.readers.ResourceReader; import org.drools.core.util.StringUtils;
import org.drools.commons.jci.readers.*; import org.drools.core.util.*;
[ "org.drools.commons", "org.drools.core" ]
org.drools.commons; org.drools.core;
1,627,600
public void addIncludes(Collection<Include> includes) { }
void function(Collection<Include> includes) { }
/** * empty public method */
empty public method
addIncludes
{ "repo_name": "mozartframework/cms", "path": "src/com/mozartframework/xml/transformer/XSLTFile.java", "license": "gpl-3.0", "size": 10041 }
[ "com.mozartframework.cache.Include", "java.util.Collection" ]
import com.mozartframework.cache.Include; import java.util.Collection;
import com.mozartframework.cache.*; import java.util.*;
[ "com.mozartframework.cache", "java.util" ]
com.mozartframework.cache; java.util;
1,242,767
public boolean setFetchMode(Env env, int fetchMode, Value[] args) { _fetchMode = PDO.FETCH_BOTH; _fetchModeArgs = NULL_VALUES; int fetchStyle = fetchMode; boolean isGroup = (fetchMode & PDO.FETCH_GROUP) != 0; boolean isUnique = (fetchMode & PDO.FETCH_UNIQUE) != 0; if (isGroup) throw...
boolean function(Env env, int fetchMode, Value[] args) { _fetchMode = PDO.FETCH_BOTH; _fetchModeArgs = NULL_VALUES; int fetchStyle = fetchMode; boolean isGroup = (fetchMode & PDO.FETCH_GROUP) != 0; boolean isUnique = (fetchMode & PDO.FETCH_UNIQUE) != 0; if (isGroup) throw new UnimplementedException(STR); if (isUnique) ...
/** * Sets the fetch mode, the default is {@link PDO.FETCH_BOTH}. */
Sets the fetch mode, the default is <code>PDO.FETCH_BOTH</code>
setFetchMode
{ "repo_name": "mdaniel/svn-caucho-com-resin", "path": "modules/quercus/src/com/caucho/quercus/lib/db/PDOStatement.java", "license": "gpl-2.0", "size": 27406 }
[ "com.caucho.quercus.UnimplementedException", "com.caucho.quercus.env.Env", "com.caucho.quercus.env.Value" ]
import com.caucho.quercus.UnimplementedException; import com.caucho.quercus.env.Env; import com.caucho.quercus.env.Value;
import com.caucho.quercus.*; import com.caucho.quercus.env.*;
[ "com.caucho.quercus" ]
com.caucho.quercus;
921,463
Set<Long> deleteTag(long objectID, @Nullable Long artifactID, long tagID, boolean stillTagged) { DBLock.lock(); try { //"DELETE FROM tags WHERE tag_id = ? deleteTagStmt.clearParameters(); deleteTagStmt.setLong(1, tagID); deleteTagStmt.executeUpdate(); ...
Set<Long> deleteTag(long objectID, @Nullable Long artifactID, long tagID, boolean stillTagged) { DBLock.lock(); try { deleteTagStmt.clearParameters(); deleteTagStmt.setLong(1, tagID); deleteTagStmt.executeUpdate(); return markEventsTagged(objectID, artifactID, stillTagged); } catch (SQLException ex) { LOGGER.log(Level....
/** * mark any events with the given object and artifact ids as tagged, and * record the tag it self. * * @param objectID the obj_id that this tag applies to, the id of the * content that the artifact is derived from for artifact * tags * @para...
mark any events with the given object and artifact ids as tagged, and record the tag it self
deleteTag
{ "repo_name": "mhmdfy/autopsy", "path": "Core/src/org/sleuthkit/autopsy/timeline/db/EventDB.java", "license": "apache-2.0", "size": 55923 }
[ "java.sql.SQLException", "java.util.Collections", "java.util.Set", "java.util.logging.Level", "javax.annotation.Nullable" ]
import java.sql.SQLException; import java.util.Collections; import java.util.Set; import java.util.logging.Level; import javax.annotation.Nullable;
import java.sql.*; import java.util.*; import java.util.logging.*; import javax.annotation.*;
[ "java.sql", "java.util", "javax.annotation" ]
java.sql; java.util; javax.annotation;
515,381
public ServiceCall<List<Pet>> findPetsByTagsAsync(final ServiceCallback<List<Pet>> serviceCallback) { return ServiceCall.create(findPetsByTagsWithServiceResponseAsync(), serviceCallback); }
ServiceCall<List<Pet>> function(final ServiceCallback<List<Pet>> serviceCallback) { return ServiceCall.create(findPetsByTagsWithServiceResponseAsync(), serviceCallback); }
/** * Finds Pets by tags. * Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @return the {@link ServiceCall} object */
Finds Pets by tags. Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing
findPetsByTagsAsync
{ "repo_name": "yugangw-msft/autorest", "path": "Samples/petstore/Java/implementation/SwaggerPetstoreImpl.java", "license": "mit", "size": 99949 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback", "java.util.List" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback; import java.util.List;
import com.microsoft.rest.*; import java.util.*;
[ "com.microsoft.rest", "java.util" ]
com.microsoft.rest; java.util;
2,094,076
public Component getCustomEditor() { if (getParentDialog() != null) { getParentDialog().removeWindowListener(m_WindowAdapter); getParentDialog().addWindowListener(m_WindowAdapter); } else if (getParentFrame() != null) { getParentFrame().removeWindowListener(m_WindowAdapter); getPar...
Component function() { if (getParentDialog() != null) { getParentDialog().removeWindowListener(m_WindowAdapter); getParentDialog().addWindowListener(m_WindowAdapter); } else if (getParentFrame() != null) { getParentFrame().removeWindowListener(m_WindowAdapter); getParentFrame().addWindowListener(m_WindowAdapter); } ret...
/** * Returns the array editing component. * * @return itself */
Returns the array editing component
getCustomEditor
{ "repo_name": "automenta/adams-core", "path": "src/main/java/adams/gui/goe/GenericArrayEditor.java", "license": "gpl-3.0", "size": 31194 }
[ "java.awt.Component", "java.awt.event.WindowAdapter" ]
import java.awt.Component; import java.awt.event.WindowAdapter;
import java.awt.*; import java.awt.event.*;
[ "java.awt" ]
java.awt;
2,552,459
// initialize skating rink and skaters SkatingRink skatingRink = SkatingRink.getInstance(); for (int i = 0; i < Properties.PLAYER_COUNT; i++) { Skater skater = new Skater(skatingRink); skatingRink.addSkater(skater); } // simulate skating rounds skatingRink.letThemSkate(); // plot to graph final ...
SkatingRink skatingRink = SkatingRink.getInstance(); for (int i = 0; i < Properties.PLAYER_COUNT; i++) { Skater skater = new Skater(skatingRink); skatingRink.addSkater(skater); } skatingRink.letThemSkate(); final String title = STR; final String xLabel = STR; final String yLabel = STR + Properties.PLAYER_COUNT + STR; f...
/** * Starting point for the simulation. * * @param args * ignored */
Starting point for the simulation
main
{ "repo_name": "hnunner/reinforcement-torus", "path": "src/main/java/nl/uu/mal/Simulation.java", "license": "apache-2.0", "size": 1198 }
[ "org.jfree.ui.RefineryUtilities" ]
import org.jfree.ui.RefineryUtilities;
import org.jfree.ui.*;
[ "org.jfree.ui" ]
org.jfree.ui;
49,314
public JSONArray put(int index, Collection value) throws JSONException { put(index, new JSONArray(value)); return this; }
JSONArray function(int index, Collection value) throws JSONException { put(index, new JSONArray(value)); return this; }
/** * Put a value in the JSONArray, where the value will be a * JSONArray which is produced from a Collection. * @param index The subscript. * @param value A Collection value. * @return this. * @throws JSONException If the index is negative or if the value is * not finite...
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection
put
{ "repo_name": "jettison-json/jettison", "path": "src/main/java/org/codehaus/jettison/json/JSONArray.java", "license": "apache-2.0", "size": 30295 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,890,670
public static KeyValue[] generateArray(int length, String key) { Random rnd = new Random(); KeyValue[] arr = new KeyValue[length]; for (int i = 0; i < length - 1; i++) { arr[i] = new KeyValue(String.valueOf(rnd.nextInt()), String.valueOf(rnd.nextInt())); } arr[len...
static KeyValue[] function(int length, String key) { Random rnd = new Random(); KeyValue[] arr = new KeyValue[length]; for (int i = 0; i < length - 1; i++) { arr[i] = new KeyValue(String.valueOf(rnd.nextInt()), String.valueOf(rnd.nextInt())); } arr[length - 1] = new KeyValue(key, String.valueOf(rnd.nextInt())); return ...
/** * Generate an array of a certain length containing random keys and values * AND the given key with a given value right at the end. * * @param length * Length of the generated array. * @param key * Key to ensure present. An element with this key will be added ...
Generate an array of a certain length containing random keys and values AND the given key with a given value right at the end
generateArray
{ "repo_name": "liviutudor/Java8ParallelFind", "path": "src/main/java/liv/App.java", "license": "apache-2.0", "size": 1977 }
[ "java.util.Random" ]
import java.util.Random;
import java.util.*;
[ "java.util" ]
java.util;
112,770
@Override public List<StreamletBaseImpl<?>> getChildren() { return real.getChildren(); }
List<StreamletBaseImpl<?>> function() { return real.getChildren(); }
/** * Gets all the children of this streamlet. * Children of a streamlet are streamlets that are resulting from transformations of elements of * this and potentially other streamlets. * @return The kid streamlets */
Gets all the children of this streamlet. Children of a streamlet are streamlets that are resulting from transformations of elements of this and potentially other streamlets
getChildren
{ "repo_name": "twitter/heron", "path": "heron/api/src/java/org/apache/heron/streamlet/impl/StreamletShadow.java", "license": "apache-2.0", "size": 4155 }
[ "java.util.List", "org.apache.heron.streamlet.impl.StreamletBaseImpl" ]
import java.util.List; import org.apache.heron.streamlet.impl.StreamletBaseImpl;
import java.util.*; import org.apache.heron.streamlet.impl.*;
[ "java.util", "org.apache.heron" ]
java.util; org.apache.heron;
1,201,313
protected final Map<String, Integer> inputFieldIndexes(String[] header, Collection<String> inputFields) { List<String> headerList = Arrays.asList(header); // TODO header could be empty Map<String, Integer> fieldIndexes = new HashMap<>(); for (String field : inputFields) { int ...
final Map<String, Integer> function(String[] header, Collection<String> inputFields) { List<String> headerList = Arrays.asList(header); Map<String, Integer> fieldIndexes = new HashMap<>(); for (String field : inputFields) { int index = headerList.indexOf(field); if (index >= 0) { fieldIndexes.put(field, index); } } ret...
/** * Find the indexes of the input fields from the header */
Find the indexes of the input fields from the header
inputFieldIndexes
{ "repo_name": "gfyoung/elasticsearch", "path": "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/writer/AbstractDataToProcessWriter.java", "license": "apache-2.0", "size": 13545 }
[ "java.util.Arrays", "java.util.Collection", "java.util.HashMap", "java.util.List", "java.util.Map" ]
import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
875,963
@PropertySetter(value = "src", bindable = false, description = "The path of the module to load.") public void setSrc(String src) { if (!areEqual(src = trimify(src), this.src)) { this.src = src; if (src != null) { loadModule(src); } ...
@PropertySetter(value = "src", bindable = false, description = STR) void function(String src) { if (!areEqual(src = trimify(src), this.src)) { this.src = src; if (src != null) { loadModule(src); } } }
/** * Sets the module's path. * * @param src The module's path. */
Sets the module's path
setSrc
{ "repo_name": "fujion/fujion-framework", "path": "fujion-core/src/main/java/org/fujion/component/Module.java", "license": "apache-2.0", "size": 1840 }
[ "org.fujion.annotation.Component" ]
import org.fujion.annotation.Component;
import org.fujion.annotation.*;
[ "org.fujion.annotation" ]
org.fujion.annotation;
1,564,312
public static List<Integer> convertIntegerCOSArrayToList(COSArray intArray) { List<Integer> retval = null; if (intArray != null) { List<Integer> numbers = new ArrayList<Integer>(); for (int i = 0; i < intArray.size(); i++) { COSNumber n...
static List<Integer> function(COSArray intArray) { List<Integer> retval = null; if (intArray != null) { List<Integer> numbers = new ArrayList<Integer>(); for (int i = 0; i < intArray.size(); i++) { COSNumber num; if (intArray.get(i) instanceof COSObject) { num = (COSNumber) ((COSObject) intArray.get(i)).getObject(); } ...
/** * This will take an array of COSNumbers and return a COSArrayList of * java.lang.Integer values. * * @param intArray The existing integer Array. * * @return A list that is part of the core Java collections. */
This will take an array of COSNumbers and return a COSArrayList of java.lang.Integer values
convertIntegerCOSArrayToList
{ "repo_name": "TomRoush/PdfBox-Android", "path": "library/src/main/java/com/tom_roush/pdfbox/pdmodel/common/COSArrayList.java", "license": "apache-2.0", "size": 18353 }
[ "com.tom_roush.pdfbox.cos.COSArray", "com.tom_roush.pdfbox.cos.COSNumber", "com.tom_roush.pdfbox.cos.COSObject", "java.util.ArrayList", "java.util.List" ]
import com.tom_roush.pdfbox.cos.COSArray; import com.tom_roush.pdfbox.cos.COSNumber; import com.tom_roush.pdfbox.cos.COSObject; import java.util.ArrayList; import java.util.List;
import com.tom_roush.pdfbox.cos.*; import java.util.*;
[ "com.tom_roush.pdfbox", "java.util" ]
com.tom_roush.pdfbox; java.util;
2,125,679
private Object[] getChildren(TreeViewer tree, Object item){ return ((ITreeContentProvider)tree.getContentProvider()).getChildren(item); }
Object[] function(TreeViewer tree, Object item){ return ((ITreeContentProvider)tree.getContentProvider()).getChildren(item); }
/** * Access to tree viewer. * * @param tree * @param item * @return */
Access to tree viewer
getChildren
{ "repo_name": "jgaupp/arx", "path": "src/gui/org/deidentifier/arx/gui/view/impl/common/ClipboardHandlerTree.java", "license": "apache-2.0", "size": 5734 }
[ "org.eclipse.jface.viewers.ITreeContentProvider", "org.eclipse.jface.viewers.TreeViewer" ]
import org.eclipse.jface.viewers.ITreeContentProvider; import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
325,574
private static void applyInvokeWithSecurityPolicy(Arguments args, Credentials peer) throws ZygoteSecurityException { int peerUid = peer.getUid(); if (args.invokeWith != null && peerUid != 0) { throw new ZygoteSecurityException("Peer is not permitted to specify " ...
static void function(Arguments args, Credentials peer) throws ZygoteSecurityException { int peerUid = peer.getUid(); if (args.invokeWith != null && peerUid != 0) { throw new ZygoteSecurityException(STR + STR); } }
/** * Applies zygote security policy. * Based on the credentials of the process issuing a zygote command: * <ol> * <li> uid 0 (root) may specify --invoke-with to launch Zygote with a * wrapper command. * <li> Any other uid may not specify any invoke-with argument. * </ul> * ...
Applies zygote security policy. Based on the credentials of the process issuing a zygote command: uid 0 (root) may specify --invoke-with to launch Zygote with a wrapper command. Any other uid may not specify any invoke-with argument.
applyInvokeWithSecurityPolicy
{ "repo_name": "mateor/pdroid", "path": "android-4.0.3_r1/trunk/frameworks/base/core/java/com/android/internal/os/ZygoteConnection.java", "license": "gpl-3.0", "size": 36939 }
[ "android.net.Credentials" ]
import android.net.Credentials;
import android.net.*;
[ "android.net" ]
android.net;
2,169,559
@RequestMapping(method=RequestMethod.GET, value="/appium/start/{appiumHost}/{appiumPort}/{platform}/{nodeConfig}") public String startAppiumServer( @PathVariable("appiumHost") String host, @PathVariable("appiumPort") String port, @PathVariable("platform") String platform, ...
@RequestMapping(method=RequestMethod.GET, value=STR) String function( @PathVariable(STR) String host, @PathVariable(STR) String port, @PathVariable(STR) String platform, @PathVariable(STR) String json) { return appium.startAppiumServer(host, port, json, platform); }
/** * Start appium instance * @param host * @param port * @param platform * @param json * @return response */
Start appium instance
startAppiumServer
{ "repo_name": "GiannisPapadakis/seletestUtils", "path": "src/main/java/com/seletestUtils/controllers/AppiumController.java", "license": "bsd-3-clause", "size": 3099 }
[ "org.springframework.web.bind.annotation.PathVariable", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.RequestMethod" ]
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.*;
[ "org.springframework.web" ]
org.springframework.web;
2,823,123
void addResetHandler(@NonNull Resettable handler) { mResetHandlers.add(handler); }
void addResetHandler(@NonNull Resettable handler) { mResetHandlers.add(handler); }
/** * Registers a new Resettable. */
Registers a new Resettable
addResetHandler
{ "repo_name": "AndroidX/androidx", "path": "recyclerview/recyclerview-selection/src/main/java/androidx/recyclerview/selection/ResetManager.java", "license": "apache-2.0", "size": 3397 }
[ "androidx.annotation.NonNull" ]
import androidx.annotation.NonNull;
import androidx.annotation.*;
[ "androidx.annotation" ]
androidx.annotation;
93,797
public static void createDexAction( RuleContext ruleContext, Artifact jarToDex, Artifact classesDex, List<String> dexOptions, boolean multidex, Artifact mainDexList) { List<String> args = new ArrayList<>(); args.add("--dex"); // Multithreaded dex does not work when using --multi-dex. ...
static void function( RuleContext ruleContext, Artifact jarToDex, Artifact classesDex, List<String> dexOptions, boolean multidex, Artifact mainDexList) { List<String> args = new ArrayList<>(); args.add("--dex"); if (!multidex) { args.add(STR); } args.addAll(dexOptions); if (multidex) { args.add(STR); if (mainDexList !=...
/** * Creates an action that converts {@code jarToDex} to a dex file. The output will be stored in * the {@link com.google.devtools.build.lib.actions.Artifact} {@code dxJar}. */
Creates an action that converts jarToDex to a dex file. The output will be stored in the <code>com.google.devtools.build.lib.actions.Artifact</code> dxJar
createDexAction
{ "repo_name": "juhalindfors/bazel-patches", "path": "src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java", "license": "apache-2.0", "size": 43906 }
[ "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.actions.ResourceSet", "com.google.devtools.build.lib.analysis.RuleContext", "com.google.devtools.build.lib.analysis.actions.SpawnAction", "java.util.ArrayList", "java.util.List" ]
import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.actions.ResourceSet; import com.google.devtools.build.lib.analysis.RuleContext; import com.google.devtools.build.lib.analysis.actions.SpawnAction; import java.util.ArrayList; import java.util.List;
import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.analysis.actions.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
476,293
public boolean getSample(SampleHolder holder) { boolean foundEligibleSample = advanceToEligibleSample(); if (!foundEligibleSample) { return false; } // Write the sample into the holder. rollingBuffer.readSample(holder); needKeyframe = false; lastReadTimeUs = holder.timeUs; return...
boolean function(SampleHolder holder) { boolean foundEligibleSample = advanceToEligibleSample(); if (!foundEligibleSample) { return false; } rollingBuffer.readSample(holder); needKeyframe = false; lastReadTimeUs = holder.timeUs; return true; }
/** * Removes the next sample from the head of the queue, writing it into the provided holder. * <p> * The first sample returned is guaranteed to be a keyframe, since any non-keyframe samples * queued prior to the first keyframe are discarded. * * @param holder A {@link SampleHolder} into which the sa...
Removes the next sample from the head of the queue, writing it into the provided holder. The first sample returned is guaranteed to be a keyframe, since any non-keyframe samples queued prior to the first keyframe are discarded
getSample
{ "repo_name": "ppamorim/ExoPlayer", "path": "library/src/main/java/com/google/android/exoplayer/extractor/DefaultTrackOutput.java", "license": "apache-2.0", "size": 9066 }
[ "com.google.android.exoplayer.SampleHolder" ]
import com.google.android.exoplayer.SampleHolder;
import com.google.android.exoplayer.*;
[ "com.google.android" ]
com.google.android;
2,291,266
@Generated @Selector("referenceNodeWithFileNamed:") public static native SKReferenceNode referenceNodeWithFileNamed(String fileName);
@Selector(STR) static native SKReferenceNode function(String fileName);
/** * Create a reference node with a url */
Create a reference node with a url
referenceNodeWithFileNamed
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/spritekit/SKReferenceNode.java", "license": "apache-2.0", "size": 8101 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
1,054,274
public static ArrayList<Measurement> outputRegressionResults( File outputFile, double[] trueValues, double[] predValues) { System.out.println("Outputing regression results to " + outputFile); ArrayList<Measurement> measurements = null; try { Bu...
static ArrayList<Measurement> function( File outputFile, double[] trueValues, double[] predValues) { System.out.println(STR + outputFile); ArrayList<Measurement> measurements = null; try { BufferedWriter writer = IOUtils.getBufferedWriter(outputFile); RegressionEvaluation eval = new RegressionEvaluation(trueValues, pre...
/** * Output regression results. * * @param outputFile The output file * @param trueValues List of true values * @param predValues List of predicted values * @return */
Output regression results
outputRegressionResults
{ "repo_name": "vietansegan/segan", "path": "src/util/PredictionUtils.java", "license": "apache-2.0", "size": 40346 }
[ "java.io.BufferedWriter", "java.io.File", "java.util.ArrayList" ]
import java.io.BufferedWriter; import java.io.File; import java.util.ArrayList;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
871,719
void bitcoinSerializeToStream(OutputStream stream) throws IOException { stream.write(new VarInt(data.length).encode()); stream.write(data); Utils.uint32ToByteStreamLE(hashFuncs, stream); Utils.uint32ToByteStreamLE(nTweak, stream); stream.write(nFlags); }
void bitcoinSerializeToStream(OutputStream stream) throws IOException { stream.write(new VarInt(data.length).encode()); stream.write(data); Utils.uint32ToByteStreamLE(hashFuncs, stream); Utils.uint32ToByteStreamLE(nTweak, stream); stream.write(nFlags); }
/** * Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize(). */
Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize()
bitcoinSerializeToStream
{ "repo_name": "testzcrypto/animecoinj", "path": "core/src/main/java/com/google/bitcoin/core/BloomFilter.java", "license": "apache-2.0", "size": 11923 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,242,325
void writePublishHistory(CmsDbContext dbc, CmsUUID publishId, CmsPublishedResource resource) throws CmsDataAccessException;
void writePublishHistory(CmsDbContext dbc, CmsUUID publishId, CmsPublishedResource resource) throws CmsDataAccessException;
/** * Inserts an entry in the publish history for a published VFS resource.<p> * * @param dbc the current database context * @param publishId the ID of the current publishing process * @param resource the state of the resource *before* it was published * * @throws CmsDataAccessExcepti...
Inserts an entry in the publish history for a published VFS resource
writePublishHistory
{ "repo_name": "victos/opencms-core", "path": "src/org/opencms/db/I_CmsProjectDriver.java", "license": "lgpl-2.1", "size": 27344 }
[ "org.opencms.file.CmsDataAccessException", "org.opencms.util.CmsUUID" ]
import org.opencms.file.CmsDataAccessException; import org.opencms.util.CmsUUID;
import org.opencms.file.*; import org.opencms.util.*;
[ "org.opencms.file", "org.opencms.util" ]
org.opencms.file; org.opencms.util;
1,630,551
public static void send(MaterialData materialdata, Location location, float xDev, float yDev, float zDev, float speed, int amount) { send(materialdata, location, xDev, yDev, zDev, speed, amount, location.getWorld().getPlayers().toArray(new Player[0])); } }
static void function(MaterialData materialdata, Location location, float xDev, float yDev, float zDev, float speed, int amount) { send(materialdata, location, xDev, yDev, zDev, speed, amount, location.getWorld().getPlayers().toArray(new Player[0])); } }
/** * Send a Particle once, with the specified options. Any players * within range of the particles will be able to see them. * * @param materialdata The material data of the block that should be used * to create the particle(s). * @param locatio...
Send a Particle once, with the specified options. Any players within range of the particles will be able to see them
send
{ "repo_name": "ewized/CommonUtils", "path": "src/main/java/com/archeinteractive/dev/commonutils/effects/particle/ParticleEffect.java", "license": "gpl-3.0", "size": 13679 }
[ "org.bukkit.Location", "org.bukkit.entity.Player", "org.bukkit.material.MaterialData" ]
import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.material.MaterialData;
import org.bukkit.*; import org.bukkit.entity.*; import org.bukkit.material.*;
[ "org.bukkit", "org.bukkit.entity", "org.bukkit.material" ]
org.bukkit; org.bukkit.entity; org.bukkit.material;
1,731,558
public PlansSubsystemModule getPlansSubsystemModule() { return plansSubsystemModule; }
PlansSubsystemModule function() { return plansSubsystemModule; }
/** * Gets the Plans Subsystem Module. * * @return the Plans Subsystem Module. */
Gets the Plans Subsystem Module
getPlansSubsystemModule
{ "repo_name": "rgudwin/cst", "path": "src/main/java/br/unicamp/cst/core/entities/Mind.java", "license": "lgpl-3.0", "size": 8252 }
[ "br.unicamp.cst.bindings.soar.PlansSubsystemModule" ]
import br.unicamp.cst.bindings.soar.PlansSubsystemModule;
import br.unicamp.cst.bindings.soar.*;
[ "br.unicamp.cst" ]
br.unicamp.cst;
2,278,238
public void onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock) { EnumFacing enumfacing = (EnumFacing)state.getValue(FACING); if (!worldIn.getBlockState(pos.offset(enumfacing.getOpposite())).getBlock().getMaterial().isSolid()) { this.dr...
void function(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock) { EnumFacing enumfacing = (EnumFacing)state.getValue(FACING); if (!worldIn.getBlockState(pos.offset(enumfacing.getOpposite())).getBlock().getMaterial().isSolid()) { this.dropBlockAsItem(worldIn, pos, state, 0); worldIn.setBlockToAir(pos)...
/** * Called when a neighboring block changes. */
Called when a neighboring block changes
onNeighborBlockChange
{ "repo_name": "TorchPowered/CraftBloom", "path": "src/net/minecraft/block/BlockWallSign.java", "license": "mit", "size": 2860 }
[ "net.minecraft.block.state.IBlockState", "net.minecraft.util.BlockPos", "net.minecraft.util.EnumFacing", "net.minecraft.world.World" ]
import net.minecraft.block.state.IBlockState; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.world.World;
import net.minecraft.block.state.*; import net.minecraft.util.*; import net.minecraft.world.*;
[ "net.minecraft.block", "net.minecraft.util", "net.minecraft.world" ]
net.minecraft.block; net.minecraft.util; net.minecraft.world;
214,714
public void sender(String to, String subject, String body) { final Properties properties = EmailConfiguration.getConfiguration().getProperties(); EmailSender.Builder builder = new EmailSender.Builder(properties); builder.setFrom(PASchedulerProperties.EMAIL_NOTIFICATIONS_SENDER_ADDRESS.getVa...
void function(String to, String subject, String body) { final Properties properties = EmailConfiguration.getConfiguration().getProperties(); EmailSender.Builder builder = new EmailSender.Builder(properties); builder.setFrom(PASchedulerProperties.EMAIL_NOTIFICATIONS_SENDER_ADDRESS.getValueAsString()); builder.addRecipie...
/** * Throws EmailException whenever configuration is wrong * * @param to recipient * @param subject email subject * @param body email body */
Throws EmailException whenever configuration is wrong
sender
{ "repo_name": "paraita/scheduling", "path": "scheduler/scheduler-server/src/main/java/org/ow2/proactive/scheduler/util/SendMail.java", "license": "agpl-3.0", "size": 4307 }
[ "java.util.Properties", "org.ow2.proactive.addons.email.EmailSender", "org.ow2.proactive.scheduler.core.properties.PASchedulerProperties" ]
import java.util.Properties; import org.ow2.proactive.addons.email.EmailSender; import org.ow2.proactive.scheduler.core.properties.PASchedulerProperties;
import java.util.*; import org.ow2.proactive.addons.email.*; import org.ow2.proactive.scheduler.core.properties.*;
[ "java.util", "org.ow2.proactive" ]
java.util; org.ow2.proactive;
1,115,260
@ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkPublicIpInner getPublicIp( String resourceGroupName, String privateCloudName, String publicIpId) { return getPublicIpAsync(resourceGroupName, privateCloudName, publicIpId).block(); }
@ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkPublicIpInner function( String resourceGroupName, String privateCloudName, String publicIpId) { return getPublicIpAsync(resourceGroupName, privateCloudName, publicIpId).block(); }
/** * Get a Public IP Block by id in a private cloud workload network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @param publicIpId NSX Public IP Block identifier. Generally the same as the Pu...
Get a Public IP Block by id in a private cloud workload network
getPublicIp
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksClientImpl.java", "license": "mit", "size": 538828 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkPublicIpInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkPublicIpInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.avs.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,416,593
String parse(String queryText) throws ParseException;
String parse(String queryText) throws ParseException;
/** * Delegates query parsing to some external mechanizm. * @param queryText query text to parse * @return response received from the other mechanizm conforming <i>Lucene</i> * query syntax. * @throws org.apache.lucene.queryParser.ParseException if unable to parse term */
Delegates query parsing to some external mechanizm
parse
{ "repo_name": "usgin/usgin-geoportal", "path": "src/com/esri/gpt/catalog/lucene/IParserProxy.java", "license": "apache-2.0", "size": 1467 }
[ "org.apache.lucene.queryParser.ParseException" ]
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.*;
[ "org.apache.lucene" ]
org.apache.lucene;
2,634,282
@Test @Verifies(value = "should ignore voided patients", method = "isIdentifierInUseByAnotherPatient(PatientIdentifier)") public void isIdentifierInUseByAnotherPatient_shouldIgnoreVoidedPatients() throws Exception { { // patient 999 should be voided and have a non-voided identifier of // XYZ Patient p =...
@Verifies(value = STR, method = STR) void function() throws Exception { { Patient p = patientService.getPatient(999); Assert.assertNotNull(p); Assert.assertTrue(p.isVoided()); boolean found = false; for (PatientIdentifier id : p.getIdentifiers()) { if (id.getIdentifier().equals("XYZ") && id.getIdentifierType().getId() ...
/** * Regression test for http://dev.openmrs.org/ticket/790 * * @see PatientService#isIdentifierInUseByAnotherPatient(PatientIdentifier) */
Regression test for HREF
isIdentifierInUseByAnotherPatient_shouldIgnoreVoidedPatients
{ "repo_name": "macorrales/openmrs-core", "path": "api/src/test/java/org/openmrs/api/PatientServiceTest.java", "license": "mpl-2.0", "size": 143658 }
[ "org.junit.Assert", "org.openmrs.Patient", "org.openmrs.PatientIdentifier", "org.openmrs.PatientIdentifierType", "org.openmrs.test.Verifies" ]
import org.junit.Assert; import org.openmrs.Patient; import org.openmrs.PatientIdentifier; import org.openmrs.PatientIdentifierType; import org.openmrs.test.Verifies;
import org.junit.*; import org.openmrs.*; import org.openmrs.test.*;
[ "org.junit", "org.openmrs", "org.openmrs.test" ]
org.junit; org.openmrs; org.openmrs.test;
271,771
// TODO move this method OUT of FSUtils. No dependencies to HMaster public static int getTotalTableFragmentation(final HMaster master) throws IOException { Map<String, Integer> map = getTableFragmentation(master); return map != null && map.size() > 0 ? map.get("-TOTAL-") : -1; }
static int function(final HMaster master) throws IOException { Map<String, Integer> map = getTableFragmentation(master); return map != null && map.size() > 0 ? map.get(STR) : -1; }
/** * Returns the total overall fragmentation percentage. Includes hbase:meta and * -ROOT- as well. * * @param master The master defining the HBase root and file system. * @return A map for each table and its percentage. * @throws IOException When scanning the directory fails. */
Returns the total overall fragmentation percentage. Includes hbase:meta and -ROOT- as well
getTotalTableFragmentation
{ "repo_name": "mapr/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java", "license": "apache-2.0", "size": 70673 }
[ "java.io.IOException", "java.util.Map", "org.apache.hadoop.hbase.master.HMaster" ]
import java.io.IOException; import java.util.Map; import org.apache.hadoop.hbase.master.HMaster;
import java.io.*; import java.util.*; import org.apache.hadoop.hbase.master.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
652,252
static Class<?> comparableClassFor(Object x) { if(x instanceof Comparable) { Class<?> c; Type[] ts, as; Type t; ParameterizedType p; if((c = x.getClass()) == String.class) // bypass checks return c; if((ts = c.getGeneric...
static Class<?> comparableClassFor(Object x) { if(x instanceof Comparable) { Class<?> c; Type[] ts, as; Type t; ParameterizedType p; if((c = x.getClass()) == String.class) return c; if((ts = c.getGenericInterfaces()) != null) { for (int i = 0; i < ts.length; ++i) { if(((t = ts[i]) instanceof ParameterizedType) && ((p =...
/** * Returns x's Class if it is of the form "class C implements * Comparable<C>", else null. */
Returns x's Class if it is of the form "class C implements Comparable", else null
comparableClassFor
{ "repo_name": "mAzurkovic/concourse", "path": "concourse-server/src/main/java/org/cinchapi/vendor/jsr166e/ConcurrentHashMapV8.java", "license": "apache-2.0", "size": 265899 }
[ "java.lang.reflect.ParameterizedType", "java.lang.reflect.Type" ]
import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,274,448
public ServiceResponseWithHeaders<Void, LROsDeleteAsyncRetryFailedHeaders> deleteAsyncRetryFailed() throws CloudException, IOException, InterruptedException { Response<ResponseBody> result = service.deleteAsyncRetryFailed(this.client.getAcceptLanguage()).execute(); return client.getAzureClient().get...
ServiceResponseWithHeaders<Void, LROsDeleteAsyncRetryFailedHeaders> function() throws CloudException, IOException, InterruptedException { Response<ResponseBody> result = service.deleteAsyncRetryFailed(this.client.getAcceptLanguage()).execute(); return client.getAzureClient().getPostOrDeleteResultWithHeaders(result, new...
/** * Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. * * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization ...
Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status
deleteAsyncRetryFailed
{ "repo_name": "sharadagarwal/autorest", "path": "AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/LROsOperationsImpl.java", "license": "mit", "size": 315973 }
[ "com.google.common.reflect.TypeToken", "com.microsoft.azure.CloudException", "com.microsoft.rest.ServiceResponseWithHeaders", "java.io.IOException" ]
import com.google.common.reflect.TypeToken; import com.microsoft.azure.CloudException; import com.microsoft.rest.ServiceResponseWithHeaders; import java.io.IOException;
import com.google.common.reflect.*; import com.microsoft.azure.*; import com.microsoft.rest.*; import java.io.*;
[ "com.google.common", "com.microsoft.azure", "com.microsoft.rest", "java.io" ]
com.google.common; com.microsoft.azure; com.microsoft.rest; java.io;
2,700,848
public InterestResultPolicy getInterestResultPolicy() { return this.policy; }
InterestResultPolicy function() { return this.policy; }
/** * Get the <code>InterestResultPolicy</code> of this register/unregister * operation. * * @return the <code>InterestResultPolicy</code> of this request. */
Get the <code>InterestResultPolicy</code> of this register/unregister operation
getInterestResultPolicy
{ "repo_name": "robertgeiger/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/cache/operations/RegisterInterestOperationContext.java", "license": "apache-2.0", "size": 2396 }
[ "com.gemstone.gemfire.cache.InterestResultPolicy" ]
import com.gemstone.gemfire.cache.InterestResultPolicy;
import com.gemstone.gemfire.cache.*;
[ "com.gemstone.gemfire" ]
com.gemstone.gemfire;
2,077,267
public UniqueId addColumn(String name) { ArgumentChecker.notEmpty(name, "name"); ConfigSearchRequest<ViewColumn> searchRequest = new ConfigSearchRequest<>(); searchRequest.setType(ViewColumn.class); searchRequest.setName(name); ConfigSearchResult<ViewColumn> searchResult = _configMaster.search(se...
UniqueId function(String name) { ArgumentChecker.notEmpty(name, "name"); ConfigSearchRequest<ViewColumn> searchRequest = new ConfigSearchRequest<>(); searchRequest.setType(ViewColumn.class); searchRequest.setName(name); ConfigSearchResult<ViewColumn> searchResult = _configMaster.search(searchRequest); if (!searchResult...
/** * Adds a new column. * * @param name the column name, not empty * @return the */
Adds a new column
addColumn
{ "repo_name": "jeorme/OG-Platform", "path": "sesame/sesame-web/src/main/java/com/opengamma/sesame/web/functionconfig/ColumnConfigResource.java", "license": "apache-2.0", "size": 15589 }
[ "com.opengamma.DataDuplicationException", "com.opengamma.core.config.impl.ConfigItem", "com.opengamma.id.UniqueId", "com.opengamma.master.config.ConfigDocument", "com.opengamma.master.config.ConfigSearchRequest", "com.opengamma.master.config.ConfigSearchResult", "com.opengamma.sesame.config.ViewColumn",...
import com.opengamma.DataDuplicationException; import com.opengamma.core.config.impl.ConfigItem; import com.opengamma.id.UniqueId; import com.opengamma.master.config.ConfigDocument; import com.opengamma.master.config.ConfigSearchRequest; import com.opengamma.master.config.ConfigSearchResult; import com.opengamma.sesame...
import com.opengamma.*; import com.opengamma.core.config.impl.*; import com.opengamma.id.*; import com.opengamma.master.config.*; import com.opengamma.sesame.config.*; import com.opengamma.util.*; import java.util.*;
[ "com.opengamma", "com.opengamma.core", "com.opengamma.id", "com.opengamma.master", "com.opengamma.sesame", "com.opengamma.util", "java.util" ]
com.opengamma; com.opengamma.core; com.opengamma.id; com.opengamma.master; com.opengamma.sesame; com.opengamma.util; java.util;
783,398
protected void initPaints() { mCirclePaint = new Paint(); mCirclePaint.setAntiAlias(true); mCirclePaint.setDither(true); mCirclePaint.setColor(mCircleColor); mCirclePaint.setStrokeWidth(mCircleStrokeWidth); mCirclePaint.setStyle(Paint.Style.STROKE); mCirclePaint.setStrokeJoin(Paint.Join.ROUND); ...
void function() { mCirclePaint = new Paint(); mCirclePaint.setAntiAlias(true); mCirclePaint.setDither(true); mCirclePaint.setColor(mCircleColor); mCirclePaint.setStrokeWidth(mCircleStrokeWidth); mCirclePaint.setStyle(Paint.Style.STROKE); mCirclePaint.setStrokeJoin(Paint.Join.ROUND); mCirclePaint.setStrokeCap(Paint.Cap....
/** * Initializes the {@code Paint} objects with the appropriate styles. */
Initializes the Paint objects with the appropriate styles
initPaints
{ "repo_name": "Zackratos/PureMusic", "path": "app/src/main/java/org/zack/music/CircularSeekBar.java", "license": "apache-2.0", "size": 37710 }
[ "android.graphics.BlurMaskFilter", "android.graphics.Paint" ]
import android.graphics.BlurMaskFilter; import android.graphics.Paint;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
2,183,476