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
public void testDrawWithNullMeanHorizontal() { boolean success = false; try { DefaultStatisticalCategoryDataset dataset = new DefaultStatisticalCategoryDataset(); dataset.add(1.0, 2.0, "S1", "C1"); dataset.add(null, new Double(4.0), "S1", "C2")...
void function() { boolean success = false; try { DefaultStatisticalCategoryDataset dataset = new DefaultStatisticalCategoryDataset(); dataset.add(1.0, 2.0, "S1", "C1"); dataset.add(null, new Double(4.0), "S1", "C2"); CategoryPlot plot = new CategoryPlot(dataset, new CategoryAxis(STR), new NumberAxis("Value"), new Stati...
/** * Draws the chart with a <code>null</code> mean value to make sure that * no exceptions are thrown (particularly by code in the renderer). See * bug report 1779941. */
Draws the chart with a <code>null</code> mean value to make sure that no exceptions are thrown (particularly by code in the renderer). See bug report 1779941
testDrawWithNullMeanHorizontal
{ "repo_name": "ilyessou/jfreechart", "path": "tests/org/jfree/chart/renderer/category/junit/StatisticalBarRendererTests.java", "license": "lgpl-2.1", "size": 10813 }
[ "org.jfree.chart.JFreeChart", "org.jfree.chart.axis.CategoryAxis", "org.jfree.chart.axis.NumberAxis", "org.jfree.chart.plot.CategoryPlot", "org.jfree.chart.plot.PlotOrientation", "org.jfree.chart.renderer.category.StatisticalBarRenderer", "org.jfree.data.statistics.DefaultStatisticalCategoryDataset" ]
import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.renderer.category.StatisticalBarRenderer; import org.jfree.data.statistics.DefaultStatistical...
import org.jfree.chart.*; import org.jfree.chart.axis.*; import org.jfree.chart.plot.*; import org.jfree.chart.renderer.category.*; import org.jfree.data.statistics.*;
[ "org.jfree.chart", "org.jfree.data" ]
org.jfree.chart; org.jfree.data;
2,445,350
@Programmatic Iterator<String> iterator();
Iterator<String> iterator();
/** * Iterates over the property names of this configuration. */
Iterates over the property names of this configuration
iterator
{ "repo_name": "niv0/isis", "path": "core/metamodel/src/main/java/org/apache/isis/core/commons/config/IsisConfiguration.java", "license": "apache-2.0", "size": 6832 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,000,460
public int countEntries( String name ) { int count = 0; int i; for ( i = 0; i < nrJobEntries(); i++ ) { // Look at all the hops; JobEntryCopy je = getJobEntry( i ); if ( je.getName().equalsIgnoreCase( name ) ) { count++; } } return count; }
int function( String name ) { int count = 0; int i; for ( i = 0; i < nrJobEntries(); i++ ) { JobEntryCopy je = getJobEntry( i ); if ( je.getName().equalsIgnoreCase( name ) ) { count++; } } return count; }
/** * Count entries. * * @param name * the name * @return the int */
Count entries
countEntries
{ "repo_name": "GauravAshara/pentaho-kettle", "path": "engine/src/org/pentaho/di/job/JobMeta.java", "license": "apache-2.0", "size": 88838 }
[ "org.pentaho.di.job.entry.JobEntryCopy" ]
import org.pentaho.di.job.entry.JobEntryCopy;
import org.pentaho.di.job.entry.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,144,886
public static boolean encodeToFile(byte[] dataToEncode, String filename) { boolean success = false; Base64OutputStream bos = null; try { bos = new Base64OutputStream(new FileOutputStream(filename), ENCODE); bos.write(dataToEncode); success = true; } catch (IOException e) { LOG...
static boolean function(byte[] dataToEncode, String filename) { boolean success = false; Base64OutputStream bos = null; try { bos = new Base64OutputStream(new FileOutputStream(filename), ENCODE); bos.write(dataToEncode); success = true; } catch (IOException e) { LOG.error(STR + filename, e); success = false; } finally ...
/** * Convenience method for encoding data to a file. * * @param dataToEncode byte array of data to encode in base64 form * @param filename Filename for saving encoded data * @return <tt>true</tt> if successful, <tt>false</tt> otherwise * * @since 2.1 */
Convenience method for encoding data to a file
encodeToFile
{ "repo_name": "gustavoanatoly/hbase", "path": "hbase-common/src/main/java/org/apache/hadoop/hbase/util/Base64.java", "license": "apache-2.0", "size": 60105 }
[ "java.io.FileOutputStream", "java.io.IOException" ]
import java.io.FileOutputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
903,780
public static byte[] compressForZlib(String stringToCompress) { byte[] returnValues = null; try { returnValues = compressForZlib(stringToCompress.getBytes("UTF-8")); } catch (UnsupportedEncodingException uee) { uee.printStackTrace(); } return returnV...
static byte[] function(String stringToCompress) { byte[] returnValues = null; try { returnValues = compressForZlib(stringToCompress.getBytes("UTF-8")); } catch (UnsupportedEncodingException uee) { uee.printStackTrace(); } return returnValues; }
/** * zlib compress 2 byte * * @param stringToCompress * @return */
zlib compress 2 byte
compressForZlib
{ "repo_name": "DesignQu/MVPFrames", "path": "Common/src/main/java/com/tool/common/utils/ZipUtils.java", "license": "apache-2.0", "size": 5344 }
[ "java.io.UnsupportedEncodingException" ]
import java.io.UnsupportedEncodingException;
import java.io.*;
[ "java.io" ]
java.io;
1,888,375
public boolean offer(E e, long timeout, TimeUnit unit) { xfer(e, true, ASYNC, 0); return true; }
boolean function(E e, long timeout, TimeUnit unit) { xfer(e, true, ASYNC, 0); return true; }
/** * Inserts the specified element at the tail of this queue. * As the queue is unbounded, this method will never block or * return {@code false}. * * @return {@code true} (as specified by * {@link java.util.concurrent.BlockingQueue#offer(Object,long,TimeUnit) * BlockingQueue.offer...
Inserts the specified element at the tail of this queue. As the queue is unbounded, this method will never block or return false
offer
{ "repo_name": "h2oai/h2o-3", "path": "h2o-core/src/main/java/jsr166y/LinkedTransferQueue.java", "license": "apache-2.0", "size": 55445 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,287,356
@Override protected void startInternal() throws LifecycleException { taskqueue = new TaskQueue(maxQueueSize); TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority()); executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUn...
void function() throws LifecycleException { taskqueue = new TaskQueue(maxQueueSize); TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority()); executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf); if (prestartminSpareThread...
/** * Start the component and implement the requirements * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}. * * @exception LifecycleException if this component detects a fatal error * that prevents this component from being used */
Start the component and implement the requirements of <code>org.apache.catalina.util.LifecycleBase#startInternal()</code>
startInternal
{ "repo_name": "plumer/codana", "path": "tomcat_files/8.0.0/StandardThreadExecutor.java", "license": "mit", "size": 9258 }
[ "java.util.concurrent.TimeUnit", "org.apache.catalina.LifecycleException", "org.apache.catalina.LifecycleState", "org.apache.tomcat.util.threads.TaskQueue", "org.apache.tomcat.util.threads.TaskThreadFactory", "org.apache.tomcat.util.threads.ThreadPoolExecutor" ]
import java.util.concurrent.TimeUnit; import org.apache.catalina.LifecycleException; import org.apache.catalina.LifecycleState; import org.apache.tomcat.util.threads.TaskQueue; import org.apache.tomcat.util.threads.TaskThreadFactory; import org.apache.tomcat.util.threads.ThreadPoolExecutor;
import java.util.concurrent.*; import org.apache.catalina.*; import org.apache.tomcat.util.threads.*;
[ "java.util", "org.apache.catalina", "org.apache.tomcat" ]
java.util; org.apache.catalina; org.apache.tomcat;
1,275,434
@Message(id=16851, value = "Invalid TransformerFactory implementation. Must implement '%s'.") SwitchYardException invalidTransformerFactory(String transformerFactoryClassName);
@Message(id=16851, value = STR) SwitchYardException invalidTransformerFactory(String transformerFactoryClassName);
/** * invalidTransformerFactory method definition. * @param transformerFactoryClassName transformerFactoryClassName * @return SwitchYardException */
invalidTransformerFactory method definition
invalidTransformerFactory
{ "repo_name": "cunningt/switchyard", "path": "core/transform/src/main/java/org/switchyard/transform/internal/TransformMessages.java", "license": "apache-2.0", "size": 22568 }
[ "org.jboss.logging.annotations.Message", "org.switchyard.SwitchYardException" ]
import org.jboss.logging.annotations.Message; import org.switchyard.SwitchYardException;
import org.jboss.logging.annotations.*; import org.switchyard.*;
[ "org.jboss.logging", "org.switchyard" ]
org.jboss.logging; org.switchyard;
2,377,685
Collection<MimeBodyPart> getAttachmentParts(MailAttachment[] attachments) throws MessagingException;
Collection<MimeBodyPart> getAttachmentParts(MailAttachment[] attachments) throws MessagingException;
/** * Creates collection of {@link MimeBodyPart} from the passed {@link MailAttachment}s. Also constrains the size of * the attachments. The max size of the attachment is configurable (check system configurations). Primary used in * mails building process. * * @param attachments * array of attach...
Creates collection of <code>MimeBodyPart</code> from the passed <code>MailAttachment</code>s. Also constrains the size of the attachments. The max size of the attachment is configurable (check system configurations). Primary used in mails building process
getAttachmentParts
{ "repo_name": "SirmaITT/conservation-space-1.7.0", "path": "docker/sirma-platform/platform/seip-parent/extensions/mail-sender/src/main/java/com/sirma/itt/seip/mail/attachments/MailAttachmentService.java", "license": "lgpl-3.0", "size": 1714 }
[ "java.util.Collection", "javax.mail.MessagingException", "javax.mail.internet.MimeBodyPart" ]
import java.util.Collection; import javax.mail.MessagingException; import javax.mail.internet.MimeBodyPart;
import java.util.*; import javax.mail.*; import javax.mail.internet.*;
[ "java.util", "javax.mail" ]
java.util; javax.mail;
2,069,114
public void analysisResultsLoaded(AnalysisResultsItem analysis) { if (analysis == null) return; analysis.notifyLoading(false); model.removeAnalysisResultsLoading(analysis); //now display results. }
void function(AnalysisResultsItem analysis) { if (analysis == null) return; analysis.notifyLoading(false); model.removeAnalysisResultsLoading(analysis); }
/** * Implemented as specified by the {@link Editor} interface. * @see Editor#analysisResultsLoaded(AnalysisResultsItem) */
Implemented as specified by the <code>Editor</code> interface
analysisResultsLoaded
{ "repo_name": "stelfrich/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/editor/EditorComponent.java", "license": "gpl-2.0", "size": 35936 }
[ "org.openmicroscopy.shoola.agents.metadata.util.AnalysisResultsItem" ]
import org.openmicroscopy.shoola.agents.metadata.util.AnalysisResultsItem;
import org.openmicroscopy.shoola.agents.metadata.util.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
1,642,752
@Override public void setFontWeight(float fontWeight) { dic.setFloat(COSName.FONT_WEIGHT, fontWeight); }
void function(float fontWeight) { dic.setFloat(COSName.FONT_WEIGHT, fontWeight); }
/** * Set the weight of the font. * * @param fontWeight The new weight of the font. */
Set the weight of the font
setFontWeight
{ "repo_name": "sencko/NALB", "path": "nalb2013/src/org/apache/pdfbox/pdmodel/font/PDFontDescriptorDictionary.java", "license": "gpl-2.0", "size": 13861 }
[ "org.apache.pdfbox.cos.COSName" ]
import org.apache.pdfbox.cos.COSName;
import org.apache.pdfbox.cos.*;
[ "org.apache.pdfbox" ]
org.apache.pdfbox;
2,325,147
public jsx3.xml.CdfDocument getColumnProfileDocument() { String extension = "getColumnProfileDocument()."; try { java.lang.reflect.Constructor<jsx3.xml.CdfDocument> ctor = jsx3.xml.CdfDocument.class.getConstructor(Context.class, String.class); return ctor.newInsta...
jsx3.xml.CdfDocument function() { String extension = STR; try { java.lang.reflect.Constructor<jsx3.xml.CdfDocument> ctor = jsx3.xml.CdfDocument.class.getConstructor(Context.class, String.class); return ctor.newInstance(this, extension); } catch (Exception ex) { throw new IllegalArgumentException(STR + jsx3.xml.CdfDocum...
/** * Returns a clone of the CDF document used internally to define the Columns (text, order, mapped attributes, etc). The order of the records in this document reflects the order of the columns in the Table. If the column profile document defined by getColumnProfile is not a valid XML document, an empty CDF Docu...
Returns a clone of the CDF document used internally to define the Columns (text, order, mapped attributes, etc)
getColumnProfileDocument
{ "repo_name": "burris/dwr", "path": "ui/gi/generated/java/jsx3/gui/Table.java", "license": "apache-2.0", "size": 111945 }
[ "org.directwebremoting.io.Context" ]
import org.directwebremoting.io.Context;
import org.directwebremoting.io.*;
[ "org.directwebremoting.io" ]
org.directwebremoting.io;
258,374
public VM getVM(Connection c) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = "VTPM.get_VM"; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)}; Map ...
VM function(Connection c) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)}; Map response = c.dispatch(method_call, method_params); Object result = resp...
/** * Get the VM field of the given VTPM. * * @return value of the field */
Get the VM field of the given VTPM
getVM
{ "repo_name": "guzy/OnceCenter", "path": "src/com/once/xenapi/VTPM.java", "license": "apache-2.0", "size": 9674 }
[ "com.once.xenapi.Types", "java.util.Map", "org.apache.xmlrpc.XmlRpcException" ]
import com.once.xenapi.Types; import java.util.Map; import org.apache.xmlrpc.XmlRpcException;
import com.once.xenapi.*; import java.util.*; import org.apache.xmlrpc.*;
[ "com.once.xenapi", "java.util", "org.apache.xmlrpc" ]
com.once.xenapi; java.util; org.apache.xmlrpc;
2,660,314
public void removeMetadata(Id.Program programId) throws IOException, UnauthenticatedException, NotFoundException, BadRequestException, UnauthorizedException { removeMetadata(programId, constructPath(programId)); }
void function(Id.Program programId) throws IOException, UnauthenticatedException, NotFoundException, BadRequestException, UnauthorizedException { removeMetadata(programId, constructPath(programId)); }
/** * Removes metadata from a program. * * @param programId program to remove metadata from */
Removes metadata from a program
removeMetadata
{ "repo_name": "caskdata/cdap", "path": "cdap-common/src/main/java/co/cask/cdap/common/metadata/AbstractMetadataClient.java", "license": "apache-2.0", "size": 48748 }
[ "co.cask.cdap.common.BadRequestException", "co.cask.cdap.common.NotFoundException", "co.cask.cdap.common.UnauthenticatedException", "co.cask.cdap.proto.Id", "co.cask.cdap.security.spi.authorization.UnauthorizedException", "java.io.IOException" ]
import co.cask.cdap.common.BadRequestException; import co.cask.cdap.common.NotFoundException; import co.cask.cdap.common.UnauthenticatedException; import co.cask.cdap.proto.Id; import co.cask.cdap.security.spi.authorization.UnauthorizedException; import java.io.IOException;
import co.cask.cdap.common.*; import co.cask.cdap.proto.*; import co.cask.cdap.security.spi.authorization.*; import java.io.*;
[ "co.cask.cdap", "java.io" ]
co.cask.cdap; java.io;
1,381,903
public S3FileTransferResultsDto uploadDirectory(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto) throws InterruptedException;
S3FileTransferResultsDto function(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto) throws InterruptedException;
/** * Uploads a local directory of files into S3. * * @param s3FileTransferRequestParamsDto the S3 file transfer request parameters. The S3 bucket name and S3 key prefix are for the target of the copy. The * local path is the local file to be copied. * * @return the results. * @throws...
Uploads a local directory of files into S3
uploadDirectory
{ "repo_name": "seoj/herd", "path": "herd-code/herd-dao/src/main/java/org/finra/herd/dao/S3Dao.java", "license": "apache-2.0", "size": 10523 }
[ "org.finra.herd.model.dto.S3FileTransferRequestParamsDto", "org.finra.herd.model.dto.S3FileTransferResultsDto" ]
import org.finra.herd.model.dto.S3FileTransferRequestParamsDto; import org.finra.herd.model.dto.S3FileTransferResultsDto;
import org.finra.herd.model.dto.*;
[ "org.finra.herd" ]
org.finra.herd;
857,035
final StringBuilder meminfo = new StringBuilder(); BufferedReader bufferedReader = null; try { final List<String> commandLine = new ArrayList<String>(); commandLine.add("dumpsys"); commandLine.add("meminfo"); commandLine.add(Integer.toString(andr...
final StringBuilder meminfo = new StringBuilder(); BufferedReader bufferedReader = null; try { final List<String> commandLine = new ArrayList<String>(); commandLine.add(STR); commandLine.add(STR); commandLine.add(Integer.toString(android.os.Process.myPid())); final Process process = Runtime.getRuntime().exec(commandLin...
/** * Collect results of the <code>dumpsys meminfo</code> command restricted to * this application process. * * @return The execution result. */
Collect results of the <code>dumpsys meminfo</code> command restricted to this application process
collectMemInfo
{ "repo_name": "pjdelport/acra", "path": "src/main/java/org/acra/collector/DumpSysCollector.java", "license": "apache-2.0", "size": 2358 }
[ "android.util.Log", "java.io.BufferedReader", "java.io.IOException", "java.io.InputStreamReader", "java.util.ArrayList", "java.util.List", "org.acra.ACRAConstants" ]
import android.util.Log; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import org.acra.ACRAConstants;
import android.util.*; import java.io.*; import java.util.*; import org.acra.*;
[ "android.util", "java.io", "java.util", "org.acra" ]
android.util; java.io; java.util; org.acra;
2,285,361
private void jbInit() throws Exception { this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); this.setResizable(false); this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.getContentPane().add(Box.createVerticalStrut(8), BorderLayout.NORTH); this.getContentPane().add(Box.c...
void function() throws Exception { this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); this.setResizable(false); this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.getContentPane().add(Box.createVerticalStrut(8), BorderLayout.NORTH); this.getContentPane().add(Box.createHorizontalStrut(...
/** * Static Layout * @throws Exception */
Static Layout
jbInit
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/client/src/main/java-legacy/org/compiere/apps/Waiting.java", "license": "gpl-2.0", "size": 7598 }
[ "java.awt.BorderLayout", "java.awt.Cursor", "java.awt.Image", "javax.swing.Box", "javax.swing.ImageIcon", "javax.swing.JLabel", "javax.swing.UIManager", "javax.swing.WindowConstants", "org.adempiere.plaf.MetasFreshTheme", "org.compiere.Adempiere" ]
import java.awt.BorderLayout; import java.awt.Cursor; import java.awt.Image; import javax.swing.Box; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.UIManager; import javax.swing.WindowConstants; import org.adempiere.plaf.MetasFreshTheme; import org.compiere.Adempiere;
import java.awt.*; import javax.swing.*; import org.adempiere.plaf.*; import org.compiere.*;
[ "java.awt", "javax.swing", "org.adempiere.plaf", "org.compiere" ]
java.awt; javax.swing; org.adempiere.plaf; org.compiere;
2,655,399
public Similarity getSimilarity() { return similarity; }
Similarity function() { return similarity; }
/** * Returns the {@link org.apache.lucene.search.similarities.Similarity} used for indexing and searching. */
Returns the <code>org.apache.lucene.search.similarities.Similarity</code> used for indexing and searching
getSimilarity
{ "repo_name": "phani546/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/engine/EngineConfig.java", "license": "apache-2.0", "size": 17459 }
[ "org.apache.lucene.search.similarities.Similarity" ]
import org.apache.lucene.search.similarities.Similarity;
import org.apache.lucene.search.similarities.*;
[ "org.apache.lucene" ]
org.apache.lucene;
2,348,988
public List<RankedDocument> embeddedness(int topN) { int nRank = topN; if (embeddedness == null) { //if not already computed computeEmbededdness(); } if ((topN == 0) || (topN > g.getEdgeCount())) { nRank = g.getEdgeCount(); } MinHeap<RankedDoc...
List<RankedDocument> function(int topN) { int nRank = topN; if (embeddedness == null) { computeEmbededdness(); } if ((topN == 0) (topN > g.getEdgeCount())) { nRank = g.getEdgeCount(); } MinHeap<RankedDocument> minHeap = new MinHeap<>(nRank); for (Integer edge : g.getEdges()) { RankedDocument doc = new RankedDocument(ed...
/** * Returns topN of edges sorted by embeddedness value. If topN = 0, returns * all edges, sorted by embeddedness value. * * @param topN number of top edges to retrieve. * @return list of top N edges with score */
Returns topN of edges sorted by embeddedness value. If topN = 0, returns all edges, sorted by embeddedness value
embeddedness
{ "repo_name": "guillermoruizalv/DataMining", "path": "bmi-p4-03/src/es/uam/eps/bmi/social/graph/SocialGraph.java", "license": "gpl-3.0", "size": 18085 }
[ "es.uam.eps.bmi.search.ranking.graph.RankedDocument", "es.uam.eps.bmi.util.MinHeap", "java.util.List" ]
import es.uam.eps.bmi.search.ranking.graph.RankedDocument; import es.uam.eps.bmi.util.MinHeap; import java.util.List;
import es.uam.eps.bmi.search.ranking.graph.*; import es.uam.eps.bmi.util.*; import java.util.*;
[ "es.uam.eps", "java.util" ]
es.uam.eps; java.util;
893,266
Collection<? extends FileItem> files();
Collection<? extends FileItem> files();
/** * Gets the collection of uploaded files. * * @return the collection of files, {@literal empty} if no files. */
Gets the collection of uploaded files
files
{ "repo_name": "torito/wisdom", "path": "core/wisdom-api/src/main/java/org/wisdom/api/http/Context.java", "license": "apache-2.0", "size": 11863 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,661,254
@NonNull public DartExecutor getDartExecutor() { return dartExecutor; }
DartExecutor function() { return dartExecutor; }
/** * The Dart execution context associated with this {@code FlutterEngine}. * * <p>The {@link DartExecutor} can be used to start executing Dart code from a given entrypoint. * See {@link DartExecutor#executeDartEntrypoint(DartExecutor.DartEntrypoint)}. * * <p>Use the {@link DartExecutor} to connect a...
The Dart execution context associated with this FlutterEngine. The <code>DartExecutor</code> can be used to start executing Dart code from a given entrypoint. See <code>DartExecutor#executeDartEntrypoint(DartExecutor.DartEntrypoint)</code>. Use the <code>DartExecutor</code> to connect any desired message channels and m...
getDartExecutor
{ "repo_name": "cdotstout/sky_engine", "path": "shell/platform/android/io/flutter/embedding/engine/FlutterEngine.java", "license": "bsd-3-clause", "size": 17294 }
[ "io.flutter.embedding.engine.dart.DartExecutor" ]
import io.flutter.embedding.engine.dart.DartExecutor;
import io.flutter.embedding.engine.dart.*;
[ "io.flutter.embedding" ]
io.flutter.embedding;
1,673,938
public static UnicodeScript of(int codePoint) { if (!isValidCodePoint(codePoint)) throw new IllegalArgumentException(); int type = getType(codePoint); // leave SURROGATE and PRIVATE_USE for table lookup if (type == UNASSIGNED) retur...
static UnicodeScript function(int codePoint) { if (!isValidCodePoint(codePoint)) throw new IllegalArgumentException(); int type = getType(codePoint); if (type == UNASSIGNED) return UNKNOWN; int index = Arrays.binarySearch(scriptStarts, codePoint); if (index < 0) index = -index - 2; return scripts[index]; } /** * Return...
/** * Returns the enum constant representing the Unicode script of which * the given character (Unicode code point) is assigned to. * * @param codePoint the character (Unicode code point) in question. * @return The {@code UnicodeScript} constant representing the ...
Returns the enum constant representing the Unicode script of which the given character (Unicode code point) is assigned to
of
{ "repo_name": "google/j2objc", "path": "jre_emul/android/platform/libcore/ojluni/src/main/java/java/lang/Character.java", "license": "apache-2.0", "size": 276990 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,012,967
public IDataset getCritical_energy();
IDataset function();
/** * <p> * <b>Type:</b> NX_FLOAT * <b>Units:</b> NX_ENERGY * </p> * * @return the value. */
Type: NX_FLOAT Units: NX_ENERGY
getCritical_energy
{ "repo_name": "willrogers/dawnsci", "path": "org.eclipse.dawnsci.nexus/src/org/eclipse/dawnsci/nexus/NXbending_magnet.java", "license": "epl-1.0", "size": 4078 }
[ "org.eclipse.dawnsci.analysis.api.dataset.IDataset" ]
import org.eclipse.dawnsci.analysis.api.dataset.IDataset;
import org.eclipse.dawnsci.analysis.api.dataset.*;
[ "org.eclipse.dawnsci" ]
org.eclipse.dawnsci;
1,380,947
public static List<String> getWords(String text) { List<String> words = new ArrayList<String>(); TextStream stream = new TextStream(text); while (!stream.atEnd()) { String word = stream.nextWord(); if (word != null) { words.add(word); } } return words; }
static List<String> function(String text) { List<String> words = new ArrayList<String>(); TextStream stream = new TextStream(text); while (!stream.atEnd()) { String word = stream.nextWord(); if (word != null) { words.add(word); } } return words; }
/** * Tokenize the sentence into its words. */
Tokenize the sentence into its words
getWords
{ "repo_name": "BOTlibre/BOTlibre", "path": "ai-engine/source/org/botlibre/util/Utils.java", "license": "epl-1.0", "size": 57729 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,707,750
if (filter != null && filter.filterAllRemaining()) { return MatchCode.DONE_SCAN; } byte [] bytes = kv.getBuffer(); int offset = kv.getOffset(); int initialOffset = offset; int keyLength = Bytes.toInt(bytes, offset, Bytes.SIZEOF_INT); offset += KeyValue.ROW_OFFSET; short rowLength = ...
if (filter != null && filter.filterAllRemaining()) { return MatchCode.DONE_SCAN; } byte [] bytes = kv.getBuffer(); int offset = kv.getOffset(); int initialOffset = offset; int keyLength = Bytes.toInt(bytes, offset, Bytes.SIZEOF_INT); offset += KeyValue.ROW_OFFSET; short rowLength = Bytes.toShort(bytes, offset, Bytes.SI...
/** * Determines if the caller should do one of several things: * - seek/skip to the next row (MatchCode.SEEK_NEXT_ROW) * - seek/skip to the next column (MatchCode.SEEK_NEXT_COL) * - include the current KeyValue (MatchCode.INCLUDE) * - ignore the current KeyValue (MatchCode.SKIP) * - got to the next r...
Determines if the caller should do one of several things: - seek/skip to the next row (MatchCode.SEEK_NEXT_ROW) - seek/skip to the next column (MatchCode.SEEK_NEXT_COL) - include the current KeyValue (MatchCode.INCLUDE) - ignore the current KeyValue (MatchCode.SKIP) - got to the next row (MatchCode.DONE)
match
{ "repo_name": "lichongxin/hbase-snapshot", "path": "src/main/java/org/apache/hadoop/hbase/regionserver/ScanQueryMatcher.java", "license": "apache-2.0", "size": 9981 }
[ "org.apache.hadoop.hbase.KeyValue", "org.apache.hadoop.hbase.filter.Filter", "org.apache.hadoop.hbase.util.Bytes" ]
import org.apache.hadoop.hbase.KeyValue; import org.apache.hadoop.hbase.filter.Filter; import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.filter.*; import org.apache.hadoop.hbase.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,910,370
public void run() { Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); MetadataEditor wizard = new MetadataEditor(); wizard.init(PlatformUI.getWorkbench(), null, obj); WizardDialog dialog = new WizardDialog(shell, wizard); dialog.open(); }
void function() { Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); MetadataEditor wizard = new MetadataEditor(); wizard.init(PlatformUI.getWorkbench(), null, obj); WizardDialog dialog = new WizardDialog(shell, wizard); dialog.open(); }
/** * Opens the Metadata editor. * * @see seg.jUCMNav.views.wizards.metadata.MetadataEditor * @see org.eclipse.jface.action.IAction#run() */
Opens the Metadata editor
run
{ "repo_name": "gmussbacher/seg.jUCMNav", "path": "src/seg/jUCMNav/actions/metadata/EditMetadataAction.java", "license": "epl-1.0", "size": 1856 }
[ "org.eclipse.jface.wizard.WizardDialog", "org.eclipse.swt.widgets.Shell", "org.eclipse.ui.PlatformUI" ]
import org.eclipse.jface.wizard.WizardDialog; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.PlatformUI;
import org.eclipse.jface.wizard.*; import org.eclipse.swt.widgets.*; import org.eclipse.ui.*;
[ "org.eclipse.jface", "org.eclipse.swt", "org.eclipse.ui" ]
org.eclipse.jface; org.eclipse.swt; org.eclipse.ui;
251,189
public void writeVLong(long i) throws IOException { assert i >= 0; while ((i & ~0x7F) != 0) { writeByte((byte) ((i & 0x7f) | 0x80)); i >>>= 7; } writeByte((byte) i); }
void function(long i) throws IOException { assert i >= 0; while ((i & ~0x7F) != 0) { writeByte((byte) ((i & 0x7f) 0x80)); i >>>= 7; } writeByte((byte) i); }
/** * Writes an long in a variable-length format. Writes between one and nine * bytes. Smaller values take fewer bytes. Negative numbers are not * supported. */
Writes an long in a variable-length format. Writes between one and nine bytes. Smaller values take fewer bytes. Negative numbers are not supported
writeVLong
{ "repo_name": "Flipkart/elasticsearch", "path": "src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java", "license": "apache-2.0", "size": 13516 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
882,615
@VisibleForTesting static Map<byte[], Integer> createFamilyBlockSizeMap(Configuration conf) { Map<byte[], String> stringMap = createFamilyConfValueMap(conf, BLOCK_SIZE_FAMILIES_CONF_KEY); Map<byte[], Integer> blockSizeMap = new TreeMap<>(Bytes.BYTES_COMPARATOR); for (Map.Entry<byte[], String> e ...
static Map<byte[], Integer> createFamilyBlockSizeMap(Configuration conf) { Map<byte[], String> stringMap = createFamilyConfValueMap(conf, BLOCK_SIZE_FAMILIES_CONF_KEY); Map<byte[], Integer> blockSizeMap = new TreeMap<>(Bytes.BYTES_COMPARATOR); for (Map.Entry<byte[], String> e : stringMap.entrySet()) { Integer blockSize...
/** * Runs inside the task to deserialize column family to block size * map from the configuration. * * @param conf to read the serialized values from * @return a map from column family to the configured block size */
Runs inside the task to deserialize column family to block size map from the configuration
createFamilyBlockSizeMap
{ "repo_name": "francisliu/hbase", "path": "hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java", "license": "apache-2.0", "size": 39402 }
[ "java.util.Map", "java.util.TreeMap", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.util.Bytes" ]
import java.util.Map; import java.util.TreeMap; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.util.Bytes;
import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.util.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,578,273
static public String ExportResource(String resourceName) throws Exception { InputStream stream = null; OutputStream resStreamOut = null; String jarFolder; try { stream = App.class.getResourceAsStream(resourceName);//note that each / is a directory down in the "jar tree"...
static String function(String resourceName) throws Exception { InputStream stream = null; OutputStream resStreamOut = null; String jarFolder; try { stream = App.class.getResourceAsStream(resourceName); if(stream == null) { throw new Exception(STRSTR\STR); } int readBytes; byte[] buffer = new byte[4096]; jarFolder = new...
/** * Export a resource embedded into a Jar file to the local file path. * * @param resourceName ie.: "/SmartLibrary.dll" * @return The path to the exported resource * @throws Exception */
Export a resource embedded into a Jar file to the local file path
ExportResource
{ "repo_name": "Fireblade/DM-my-DnD", "path": "src/com/mclama/App.java", "license": "gpl-2.0", "size": 95702 }
[ "java.io.File", "java.io.FileOutputStream", "java.io.InputStream", "java.io.OutputStream" ]
import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,661,106
public final OwnCloudClient getClient() { return mClient; }
final OwnCloudClient function() { return mClient; }
/** * Returns the current client instance to access the remote server. * * @return Current client instance to access the remote server. */
Returns the current client instance to access the remote server
getClient
{ "repo_name": "ironsquishy/ACM_Pi_Cloud", "path": "src/com/owncloud/android/lib/common/operations/RemoteOperation.java", "license": "mit", "size": 13937 }
[ "com.owncloud.android.lib.common.OwnCloudClient" ]
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.*;
[ "com.owncloud.android" ]
com.owncloud.android;
1,301,516
public void setSelectedFeatures(List<Feature> features) { selectedFeatures.clear(); selectedFeatures.addAll(features); EditManager.INSTANCE.invalidateEditingView(); }
void function(List<Feature> features) { selectedFeatures.clear(); selectedFeatures.addAll(features); EditManager.INSTANCE.invalidateEditingView(); }
/** * Forces a feature selection. * <p/> * <p>Previous selections are cleared and a redrawing is triggered. * * @param features the new features to select. */
Forces a feature selection. Previous selections are cleared and a redrawing is triggered
setSelectedFeatures
{ "repo_name": "tghoward/geopaparazzi", "path": "geopaparazzi_core/src/main/java/eu/geopaparazzi/core/maptools/tools/PointOnSelectionToolGroup.java", "license": "gpl-3.0", "size": 16422 }
[ "eu.geopaparazzi.library.features.EditManager", "eu.geopaparazzi.library.features.Feature", "java.util.List" ]
import eu.geopaparazzi.library.features.EditManager; import eu.geopaparazzi.library.features.Feature; import java.util.List;
import eu.geopaparazzi.library.features.*; import java.util.*;
[ "eu.geopaparazzi.library", "java.util" ]
eu.geopaparazzi.library; java.util;
386,381
@Path("/form-providers") @GET @NoCache @Produces(MediaType.APPLICATION_JSON) public List<Map<String, Object>> getFormProviders() { auth.realm().requireViewRealm(); List<ProviderFactory> factories = session.getKeycloakSessionFactory().getProviderFactories(FormAuthenticator.class); ...
@Path(STR) @Produces(MediaType.APPLICATION_JSON) List<Map<String, Object>> function() { auth.realm().requireViewRealm(); List<ProviderFactory> factories = session.getKeycloakSessionFactory().getProviderFactories(FormAuthenticator.class); return buildProviderMetadata(factories); }
/** * Get form providers * * Returns a list of form providers. */
Get form providers Returns a list of form providers
getFormProviders
{ "repo_name": "mbaluch/keycloak", "path": "services/src/main/java/org/keycloak/services/resources/admin/AuthenticationManagementResource.java", "license": "apache-2.0", "size": 43381 }
[ "java.util.List", "java.util.Map", "javax.ws.rs.Path", "javax.ws.rs.Produces", "javax.ws.rs.core.MediaType", "org.keycloak.authentication.FormAuthenticator", "org.keycloak.provider.ProviderFactory" ]
import java.util.List; import java.util.Map; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.keycloak.authentication.FormAuthenticator; import org.keycloak.provider.ProviderFactory;
import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.keycloak.authentication.*; import org.keycloak.provider.*;
[ "java.util", "javax.ws", "org.keycloak.authentication", "org.keycloak.provider" ]
java.util; javax.ws; org.keycloak.authentication; org.keycloak.provider;
168,751
public Value getDefaultValue() { return CSSValueConstants.NORMAL_VALUE; }
Value function() { return CSSValueConstants.NORMAL_VALUE; }
/** * Implements {@link * org.apache.batik.css.engine.value.ValueManager#getDefaultValue()}. */
Implements <code>org.apache.batik.css.engine.value.ValueManager#getDefaultValue()</code>
getDefaultValue
{ "repo_name": "sguan-actuate/birt", "path": "engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/css/FontStyleManager.java", "license": "epl-1.0", "size": 2147 }
[ "org.eclipse.birt.report.engine.css.engine.value.Value" ]
import org.eclipse.birt.report.engine.css.engine.value.Value;
import org.eclipse.birt.report.engine.css.engine.value.*;
[ "org.eclipse.birt" ]
org.eclipse.birt;
734,809
@TargetApi(Build.VERSION_CODES.LOLLIPOP) protected Notification createPublicNotification(Context context) { // Use a non-compat builder because we want the default small icon behaviour. ChromeNotificationBuilder builder = NotificationBuilderFactory .create...
@TargetApi(Build.VERSION_CODES.LOLLIPOP) Notification function(Context context) { ChromeNotificationBuilder builder = NotificationBuilderFactory .createChromeNotificationBuilder(false , mChannelId) .setContentText(context.getString( org.chromium.chrome.R.string.notification_hidden_text)) .setSmallIcon(org.chromium.chro...
/** * Creates a public version of the notification to be displayed in sensitive contexts, such as * on the lockscreen, displaying just the site origin and badge or generated icon. */
Creates a public version of the notification to be displayed in sensitive contexts, such as on the lockscreen, displaying just the site origin and badge or generated icon
createPublicNotification
{ "repo_name": "endlessm/chromium-browser", "path": "chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java", "license": "bsd-3-clause", "size": 26322 }
[ "android.annotation.TargetApi", "android.app.Notification", "android.content.Context", "android.graphics.Bitmap", "android.graphics.drawable.Icon", "android.os.Build", "org.chromium.components.browser_ui.notifications.ChromeNotificationBuilder" ]
import android.annotation.TargetApi; import android.app.Notification; import android.content.Context; import android.graphics.Bitmap; import android.graphics.drawable.Icon; import android.os.Build; import org.chromium.components.browser_ui.notifications.ChromeNotificationBuilder;
import android.annotation.*; import android.app.*; import android.content.*; import android.graphics.*; import android.graphics.drawable.*; import android.os.*; import org.chromium.components.browser_ui.notifications.*;
[ "android.annotation", "android.app", "android.content", "android.graphics", "android.os", "org.chromium.components" ]
android.annotation; android.app; android.content; android.graphics; android.os; org.chromium.components;
200,372
private Object callAnonymizingFunctionFor(final Connection dbConn, final ResultSet row, final Column column, final String vendor) throws SQLException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, ...
Object function(final Connection dbConn, final ResultSet row, final Column column, final String vendor) throws SQLException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { final List<Parameter> parms = column.getParameters(); if (parms != null) { ...
/** * Calls the anonymization function for the given Column, and returns its * anonymized value. * * @param dbConn * @param row * @param column * @return anonymized value * @throws NoSuchMethodException * @throws SecurityException * @throws IllegalAccessException ...
Calls the anonymization function for the given Column, and returns its anonymized value
callAnonymizingFunctionFor
{ "repo_name": "armenak/DataAnonymizer", "path": "src/main/java/com/strider/datadefender/DatabaseAnonymizer.java", "license": "apache-2.0", "size": 29296 }
[ "com.strider.datadefender.requirement.Column", "com.strider.datadefender.requirement.Parameter", "java.lang.reflect.InvocationTargetException", "java.sql.Connection", "java.sql.ResultSet", "java.sql.SQLException", "java.util.List" ]
import com.strider.datadefender.requirement.Column; import com.strider.datadefender.requirement.Parameter; import java.lang.reflect.InvocationTargetException; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List;
import com.strider.datadefender.requirement.*; import java.lang.reflect.*; import java.sql.*; import java.util.*;
[ "com.strider.datadefender", "java.lang", "java.sql", "java.util" ]
com.strider.datadefender; java.lang; java.sql; java.util;
1,564,808
public static void publish(EventMessage msg) { if (logger.isDebugEnabled()) { logger.debug("publish(EventMessage) - start: " + msg.getClass().getName()); } if (!isMessaging()) { startMessaging(); } if (msg != null) { synchronized (ACTIONS) ...
static void function(EventMessage msg) { if (logger.isDebugEnabled()) { logger.debug(STR + msg.getClass().getName()); } if (!isMessaging()) { startMessaging(); } if (msg != null) { synchronized (ACTIONS) { List handlers = (List) ACTIONS.get(msg.getClass()); if (handlers != null && handlers.size() > 0) { logger.debug(ST...
/** * Publish a new message * Each message is wrapped in a ActionExecutor instance * @param msg EventMessage to publish to queue. */
Publish a new message Each message is wrapped in a ActionExecutor instance
publish
{ "repo_name": "colloquium/spacewalk", "path": "java/code/src/com/redhat/rhn/common/messaging/MessageQueue.java", "license": "gpl-2.0", "size": 10487 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
247,733
ArrayList<String> value = new ArrayList(); BreakIterator boundary = BreakIterator.getSentenceInstance(); boundary.setText(text); int start = boundary.first(); for (int end = boundary.next(); end != BreakIterator.DONE; start = end, end = boundary.next()) { String word = text.substring(start, end); value...
ArrayList<String> value = new ArrayList(); BreakIterator boundary = BreakIterator.getSentenceInstance(); boundary.setText(text); int start = boundary.first(); for (int end = boundary.next(); end != BreakIterator.DONE; start = end, end = boundary.next()) { String word = text.substring(start, end); value.add(word); } ret...
/** * Pareses text into sentences. * * @param text {@link String} which represents the text * @return {@link ArrayList} of {@link String} instances representing the sentences */
Pareses text into sentences
parseSentences
{ "repo_name": "Chaiavi/TextToEmotion", "path": "src/main/java/org/chaiware/emotion/util/ParsingUtility.java", "license": "gpl-2.0", "size": 2529 }
[ "java.text.BreakIterator", "java.util.ArrayList" ]
import java.text.BreakIterator; import java.util.ArrayList;
import java.text.*; import java.util.*;
[ "java.text", "java.util" ]
java.text; java.util;
2,327,336
public RawFrameGrabber getRawFrameGrabber(int width, int height, int input, int std) throws V4L4JException { if (deviceInfo == null) throw new ImageFormatException("No DeviceInfo could be obtained. The device is probably used by another application"); return getRawFrameGrabber(width, height, input, std, devic...
RawFrameGrabber function(int width, int height, int input, int std) throws V4L4JException { if (deviceInfo == null) throw new ImageFormatException(STR); return getRawFrameGrabber(width, height, input, std, deviceInfo.getFormatList().getNativeFormats().get(0)); }
/** * This method returns a {@link RawFrameGrabber} associated with this video * device. Captured frames will be handed out in the same format as received * from the driver. The chosen format is the one returned by * <code>getDeviceInfo().getFormatList().getNativeFormats().get(0)</code>. * The {@link RawFrame...
This method returns a <code>RawFrameGrabber</code> associated with this video device. Captured frames will be handed out in the same format as received from the driver. The chosen format is the one returned by <code>getDeviceInfo().getFormatList().getNativeFormats().get(0)</code>. The <code>RawFrameGrabber</code> must ...
getRawFrameGrabber
{ "repo_name": "mailmindlin/v4l4j", "path": "src/au/edu/jcu/v4l4j/VideoDevice.java", "license": "gpl-3.0", "size": 72177 }
[ "au.edu.jcu.v4l4j.exceptions.ImageFormatException", "au.edu.jcu.v4l4j.exceptions.V4L4JException" ]
import au.edu.jcu.v4l4j.exceptions.ImageFormatException; import au.edu.jcu.v4l4j.exceptions.V4L4JException;
import au.edu.jcu.v4l4j.exceptions.*;
[ "au.edu.jcu" ]
au.edu.jcu;
2,103,591
public void addAttachment (DataSource dataSource) { if (dataSource == null) return; if (m_attachments == null) m_attachments = new ArrayList<Object>(); m_attachments.add(dataSource); } // addAttachment
void function (DataSource dataSource) { if (dataSource == null) return; if (m_attachments == null) m_attachments = new ArrayList<Object>(); m_attachments.add(dataSource); }
/** * Add arbitrary Attachment * @param dataSource content to attach */
Add arbitrary Attachment
addAttachment
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempiere_360/base/src/org/compiere/util/EMail.java", "license": "gpl-2.0", "size": 28523 }
[ "java.util.ArrayList", "javax.activation.DataSource" ]
import java.util.ArrayList; import javax.activation.DataSource;
import java.util.*; import javax.activation.*;
[ "java.util", "javax.activation" ]
java.util; javax.activation;
2,787,726
private boolean checkServiceParameters(Map<String, Object> parameters) { if (!parameters.containsKey(inParam)) { RequirementImportPlugin.log(Messages.getString("TTM2RequirementService.3"), IStatus.ERROR); //$NON-NLS-1$ return false; } if (!parameters.cont...
boolean function(Map<String, Object> parameters) { if (!parameters.containsKey(inParam)) { RequirementImportPlugin.log(Messages.getString(STR), IStatus.ERROR); return false; } if (!parameters.containsKey(outParam)) { RequirementImportPlugin.log(Messages.getString(STR), IStatus.ERROR); return false; } if (!parameters.co...
/** * Checks service parameters for this import. * * @param parameters A map of required parameters */
Checks service parameters for this import
checkServiceParameters
{ "repo_name": "pgaufillet/topcased-req", "path": "plugins/org.topcased.requirement.import/src/org/topcased/requirement/service/TTM2RequirementService.java", "license": "epl-1.0", "size": 8273 }
[ "java.util.Map", "org.eclipse.core.runtime.IPath", "org.eclipse.core.runtime.IStatus", "org.topcased.requirement.internal.Messages", "org.topcased.requirement.internal.RequirementImportPlugin" ]
import java.util.Map; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IStatus; import org.topcased.requirement.internal.Messages; import org.topcased.requirement.internal.RequirementImportPlugin;
import java.util.*; import org.eclipse.core.runtime.*; import org.topcased.requirement.internal.*;
[ "java.util", "org.eclipse.core", "org.topcased.requirement" ]
java.util; org.eclipse.core; org.topcased.requirement;
443,447
public Writer write(Writer writer) throws JSONException { return this.write(writer, 0, 0); }
Writer function(Writer writer) throws JSONException { return this.write(writer, 0, 0); }
/** * Write the contents of the JSONObject as JSON text to a writer. For * compactness, no whitespace is added. * <p/> * Warning: This method assumes that the data structure is acyclical. * * @return The writer. * @throws JSONException */
Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added. Warning: This method assumes that the data structure is acyclical
write
{ "repo_name": "yaronyg/thali", "path": "Prototype/YaronG/LiveConnectPrototype/LiveConnectPrototype/src/com/codeplex/peerly/org/json/JSONObject.java", "license": "apache-2.0", "size": 54548 }
[ "java.io.Writer" ]
import java.io.Writer;
import java.io.*;
[ "java.io" ]
java.io;
2,899,345
@Before public void setUp() { session = SessionHelper.createDatabaseSession(NoSQLTestSuite.modelProject); setupOrderDescriptor(session); }
void function() { session = SessionHelper.createDatabaseSession(NoSQLTestSuite.modelProject); setupOrderDescriptor(session); }
/** * Initialize this test suite. */
Initialize this test suite
setUp
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "foundation/eclipselink.extension.oracle.nosql.test/src/org/eclipse/persistence/testing/tests/eis/nosql/NoSQLModelTest.java", "license": "epl-1.0", "size": 6394 }
[ "org.eclipse.persistence.testing.tests.nosql.SessionHelper" ]
import org.eclipse.persistence.testing.tests.nosql.SessionHelper;
import org.eclipse.persistence.testing.tests.nosql.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
2,853,596
public int getTaskIndex(ReadOnlyTask targetTask) { List<ReadOnlyTask> tasksInList = getListView().getItems(); for (int i = 0; i < tasksInList.size(); i++) { if(tasksInList.get(i).getTitle().equals(targetTask.getTitle())) { return i; } } return ...
int function(ReadOnlyTask targetTask) { List<ReadOnlyTask> tasksInList = getListView().getItems(); for (int i = 0; i < tasksInList.size(); i++) { if(tasksInList.get(i).getTitle().equals(targetTask.getTitle())) { return i; } } return NOT_FOUND; }
/** * Returns the position of the task given, {@code NOT_FOUND} if not found in the list. */
Returns the position of the task given, NOT_FOUND if not found in the list
getTaskIndex
{ "repo_name": "CS2103AUG2016-F09-C1/main", "path": "src/test/java/guitests/guihandles/TaskListPanelHandle.java", "license": "mit", "size": 5826 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,478,827
public void setNaming(NamingScheme namingScheme) { config.namingScheme = namingScheme; if (!config.namingScheme.getValue().equals(NamingScheme.BASEJARNAME) && config.baseJarName != null) { throw new BuildException("The basejarname attribute is not " + "compati...
void function(NamingScheme namingScheme) { config.namingScheme = namingScheme; if (!config.namingScheme.getValue().equals(NamingScheme.BASEJARNAME) && config.baseJarName != null) { throw new BuildException(STR + STR + config.namingScheme.getValue() + STR); } }
/** * Set the naming scheme used to determine the name of the generated jars * from the deployment descriptor * * @param namingScheme the naming scheme to be used */
Set the naming scheme used to determine the name of the generated jars from the deployment descriptor
setNaming
{ "repo_name": "BIORIMP/biorimp", "path": "BIO-RIMP/test_data/code/antapache/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java", "license": "gpl-2.0", "size": 21410 }
[ "org.apache.tools.ant.BuildException" ]
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.*;
[ "org.apache.tools" ]
org.apache.tools;
2,525,267
@Function(name = "[Symbol.asyncIterator]", symbol = BuiltinSymbol.asyncIterator, arity = 0) public static Object asyncIterator(ExecutionContext cx, Object thisValue) { return thisValue; } }
@Function(name = STR, symbol = BuiltinSymbol.asyncIterator, arity = 0) static Object function(ExecutionContext cx, Object thisValue) { return thisValue; } }
/** * %AsyncIteratorPrototype% [ @@asyncIterator ] ( ) * * @param cx * the execution context * @param thisValue * the function this-value * @return the this-value */
%AsyncIteratorPrototype% [ @@asyncIterator ] ( )
asyncIterator
{ "repo_name": "jugglinmike/es6draft", "path": "src/main/java/com/github/anba/es6draft/runtime/objects/async/iteration/AsyncIteratorPrototype.java", "license": "mit", "size": 2002 }
[ "com.github.anba.es6draft.runtime.ExecutionContext", "com.github.anba.es6draft.runtime.internal.Properties", "com.github.anba.es6draft.runtime.types.BuiltinSymbol" ]
import com.github.anba.es6draft.runtime.ExecutionContext; import com.github.anba.es6draft.runtime.internal.Properties; import com.github.anba.es6draft.runtime.types.BuiltinSymbol;
import com.github.anba.es6draft.runtime.*; import com.github.anba.es6draft.runtime.internal.*; import com.github.anba.es6draft.runtime.types.*;
[ "com.github.anba" ]
com.github.anba;
2,222,992
private Object setRequest(ic9engine eng, HttpServletRequest request, String target) throws NoSuchMethodException, ScriptException { Invocable inv = (Invocable) eng.getScriptEngine(); Object obj = inv.invokeFunction("newHttpServerRequest"); inv.invokeMethod(obj, "init", request, target); ...
Object function(ic9engine eng, HttpServletRequest request, String target) throws NoSuchMethodException, ScriptException { Invocable inv = (Invocable) eng.getScriptEngine(); Object obj = inv.invokeFunction(STR); inv.invokeMethod(obj, "init", request, target); return obj; }
/** * Creates a new JS HTTP request object and then calls init * on it providing the native HttpServletRequest instance. * @param eng is the ic9engine instance. * @param request is a HttpServletRequest object to handle. * @param target is a String with the target requested resource. * @return A JS HTTP req...
Creates a new JS HTTP request object and then calls init on it providing the native HttpServletRequest instance
setRequest
{ "repo_name": "ic9/ic9", "path": "src/com/lehman/ic9/net/httpServer.java", "license": "apache-2.0", "size": 14645 }
[ "javax.script.Invocable", "javax.script.ScriptException", "javax.servlet.http.HttpServletRequest" ]
import javax.script.Invocable; import javax.script.ScriptException; import javax.servlet.http.HttpServletRequest;
import javax.script.*; import javax.servlet.http.*;
[ "javax.script", "javax.servlet" ]
javax.script; javax.servlet;
262,046
public RequestResponse setRequestHeaders(Map<String, Object> requestHeaders) { this.requestHeaders = requestHeaders; return this; }
RequestResponse function(Map<String, Object> requestHeaders) { this.requestHeaders = requestHeaders; return this; }
/** * HTTP request headers. * * @param requestHeaders * @return */
HTTP request headers
setRequestHeaders
{ "repo_name": "DDTH/ddth-commons", "path": "ddth-commons-core/src/main/java/com/github/ddth/commons/jsonrpc/RequestResponse.java", "license": "mit", "size": 9122 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
842,610
private static String getValidName(final String fileNameStr, final boolean isMp3Device, final IOSManager osManager) { String fileName = fileNameStr; if (osManager.isWindows() || isMp3Device) { fileName = fileName.replace("\"", "'"); fileName = fileName.replace("?", "_"); // Replace all ":" excep...
static String function(final String fileNameStr, final boolean isMp3Device, final IOSManager osManager) { String fileName = fileNameStr; if (osManager.isWindows() isMp3Device) { fileName = fileName.replace("\"STR'STR?STR_STR:STR-STR<STR-STR>STR-STR STR-STR*STR-STR STR-"); } return fileName; }
/** * Gets the valid name. * * @param fileNameStr * the file name * @param isMp3Device * the is mp3 device * * @return the valid name */
Gets the valid name
getValidName
{ "repo_name": "PDavid/aTunes", "path": "aTunes/src/main/java/net/sourceforge/atunes/utils/FileNameUtils.java", "license": "gpl-2.0", "size": 7040 }
[ "net.sourceforge.atunes.model.IOSManager" ]
import net.sourceforge.atunes.model.IOSManager;
import net.sourceforge.atunes.model.*;
[ "net.sourceforge.atunes" ]
net.sourceforge.atunes;
2,000,875
public boolean hasConflictingCodeLabel(CommandBuffer commands, CommandIterator iter) { for (int address = iter.getAddress() + 1, count = 1; count < iter.getCommand().getSize(); address++, count++) { if (commands.hasCodeLabel(address)) { return true; } } return false; }
boolean function(CommandBuffer commands, CommandIterator iter) { for (int address = iter.getAddress() + 1, count = 1; count < iter.getCommand().getSize(); address++, count++) { if (commands.hasCodeLabel(address)) { return true; } } return false; }
/** * Is there at least one code label pointing to the argument of the current opcode / command? * * @param commands command buffer * @param iter command iterator */
Is there at least one code label pointing to the argument of the current opcode / command
hasConflictingCodeLabel
{ "repo_name": "markusheiden/c64dt", "path": "reassembler/src/main/java/de/heiden/c64dt/reassembler/detector/LabelDetector.java", "license": "gpl-3.0", "size": 3052 }
[ "de.heiden.c64dt.reassembler.command.CommandBuffer", "de.heiden.c64dt.reassembler.command.CommandIterator" ]
import de.heiden.c64dt.reassembler.command.CommandBuffer; import de.heiden.c64dt.reassembler.command.CommandIterator;
import de.heiden.c64dt.reassembler.command.*;
[ "de.heiden.c64dt" ]
de.heiden.c64dt;
2,614,705
public Timestamp getCreated(); public static final String COLUMNNAME_CreatedBy = "CreatedBy";
Timestamp function(); public static final String COLUMNNAME_CreatedBy = STR;
/** Get Created. * Date this record was created */
Get Created. Date this record was created
getCreated
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/I_R_IssueSystem.java", "license": "gpl-2.0", "size": 5723 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,755,913
public void updateAppWidgetOptions(Bundle options) { AppWidgetManager.getInstance(mContext).updateAppWidgetOptions(mAppWidgetId, options); }
void function(Bundle options) { AppWidgetManager.getInstance(mContext).updateAppWidgetOptions(mAppWidgetId, options); }
/** * Specify some extra information for the widget provider. Causes a callback to the * AppWidgetProvider. * @see AppWidgetProvider#onAppWidgetOptionsChanged(Context, AppWidgetManager, int, Bundle) * * @param options The bundle of options information. */
Specify some extra information for the widget provider. Causes a callback to the AppWidgetProvider
updateAppWidgetOptions
{ "repo_name": "haikuowuya/android_system_code", "path": "src/android/appwidget/AppWidgetHostView.java", "license": "apache-2.0", "size": 24982 }
[ "android.os.Bundle" ]
import android.os.Bundle;
import android.os.*;
[ "android.os" ]
android.os;
2,462,590
public Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>> backendHealthWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be nul...
Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>> function(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (applicationGatewayName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionI...
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation ...
Gets the backend health of the specified application gateway in a resource group
backendHealthWithServiceResponseAsync
{ "repo_name": "martinsawicki/azure-sdk-for-java", "path": "azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewaysInner.java", "license": "mit", "size": 125097 }
[ "com.google.common.reflect.TypeToken", "com.microsoft.rest.ServiceResponse" ]
import com.google.common.reflect.TypeToken; import com.microsoft.rest.ServiceResponse;
import com.google.common.reflect.*; import com.microsoft.rest.*;
[ "com.google.common", "com.microsoft.rest" ]
com.google.common; com.microsoft.rest;
639,418
public void setGeometryType(GeometryType geometryType) { String geometryTypeName = null; if (geometryType != null) { geometryTypeName = geometryType.getName(); } setValue(getGeometryTypeNameColumnIndex(), geometryTypeName); }
void function(GeometryType geometryType) { String geometryTypeName = null; if (geometryType != null) { geometryTypeName = geometryType.getName(); } setValue(getGeometryTypeNameColumnIndex(), geometryTypeName); }
/** * Set the geometry type * * @param geometryType geometry type */
Set the geometry type
setGeometryType
{ "repo_name": "ngageoint/geopackage-android", "path": "geopackage-sdk/src/main/java/mil/nga/geopackage/extension/nga/style/StyleMappingRow.java", "license": "mit", "size": 2809 }
[ "mil.nga.sf.GeometryType" ]
import mil.nga.sf.GeometryType;
import mil.nga.sf.*;
[ "mil.nga.sf" ]
mil.nga.sf;
458,376
FilterCriterion parse(String dql);
FilterCriterion parse(String dql);
/** * Parses a DQL string into a Filter object. * @param dql the droid query language to parse * @return a FilterCriterion object */
Parses a DQL string into a Filter object
parse
{ "repo_name": "Det-Kongelige-Bibliotek/droid", "path": "droid-command-line/src/main/java/uk/gov/nationalarchives/droid/command/filter/DqlFilterParser.java", "license": "bsd-3-clause", "size": 2130 }
[ "uk.gov.nationalarchives.droid.core.interfaces.filter.FilterCriterion" ]
import uk.gov.nationalarchives.droid.core.interfaces.filter.FilterCriterion;
import uk.gov.nationalarchives.droid.core.interfaces.filter.*;
[ "uk.gov.nationalarchives" ]
uk.gov.nationalarchives;
2,768,142
public Job getJobLite( int jobID) throws SQLException, InvalidIDException { return getJob(jobID, false); }
Job function( int jobID) throws SQLException, InvalidIDException { return getJob(jobID, false); }
/** * Get the given Job from the database. Returns a "Liter-re" version of PercolatorJob * @param jobID * @return * @throws Exception */
Get the given Job from the database. Returns a "Liter-re" version of PercolatorJob
getJobLite
{ "repo_name": "yeastrc/msdapl", "path": "MSDaPl_Web_App/src/org/yeastrc/jobqueue/MSJobFactory.java", "license": "apache-2.0", "size": 17113 }
[ "java.sql.SQLException", "org.yeastrc.data.InvalidIDException" ]
import java.sql.SQLException; import org.yeastrc.data.InvalidIDException;
import java.sql.*; import org.yeastrc.data.*;
[ "java.sql", "org.yeastrc.data" ]
java.sql; org.yeastrc.data;
202,591
// File filter FileFilter fileFilter = new FileFilter() {
FileFilter fileFilter = new FileFilter() {
/** * Finds and returns all XML files in the Roommate diretcory. * * @return */
Finds and returns all XML files in the Roommate diretcory
getAllXmlFiles
{ "repo_name": "stenosis/roommate-app", "path": "src/roommateapp/info/io/DirFileChecker.java", "license": "gpl-3.0", "size": 4911 }
[ "java.io.FileFilter" ]
import java.io.FileFilter;
import java.io.*;
[ "java.io" ]
java.io;
2,212,167
EList<PathElementCS> getPath();
EList<PathElementCS> getPath();
/** * Returns the value of the '<em><b>Path</b></em>' containment reference list. * The list contents are of type {@link uk.ac.york.cs.asbh.lang.cs2as.source.PathElementCS}. * It is bidirectional and its opposite is '{@link uk.ac.york.cs.asbh.lang.cs2as.source.PathElementCS#getPathName <em>Path Name</em>}'. * <...
Returns the value of the 'Path' containment reference list. The list contents are of type <code>uk.ac.york.cs.asbh.lang.cs2as.source.PathElementCS</code>. It is bidirectional and its opposite is '<code>uk.ac.york.cs.asbh.lang.cs2as.source.PathElementCS#getPathName Path Name</code>'. If the meaning of the 'Path' contain...
getPath
{ "repo_name": "adolfosbh/cs2as", "path": "uk.ac.york.cs.asbh.lang.cs2as/emf-gen/uk/ac/york/cs/asbh/lang/cs2as/source/PathNameCS.java", "license": "epl-1.0", "size": 1473 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,866,905
moRadGroupFilterType = new javax.swing.ButtonGroup(); jbGrpOrderBy = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jPanel11 = new javax.swing.JPanel(); jlDateCut = new javax.swing.JLabel(); moDateDateCut = n...
moRadGroupFilterType = new javax.swing.ButtonGroup(); jbGrpOrderBy = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jPanel11 = new javax.swing.JPanel(); jlDateCut = new javax.swing.JLabel(); moDateDateCut = new sa.lib.gui.bean.SBeanFieldDate(); jPanel14 = new java...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "swaplicado/siie32", "path": "src/erp/mod/hrs/form/SDialogRepVacationsFileCsv.java", "license": "mit", "size": 16745 }
[ "java.awt.BorderLayout" ]
import java.awt.BorderLayout;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,937,063
@Override protected void cacheWriteBeforePut(EntryEventImpl event, Set netWriteRecipients, CacheWriter localWriter, boolean requireOldValue, Object expectedOldValue) throws CacheWriterException, TimeoutException { final boolean isDebugEnabled = logger.isDebugEnabled(); // retur...
void function(EntryEventImpl event, Set netWriteRecipients, CacheWriter localWriter, boolean requireOldValue, Object expectedOldValue) throws CacheWriterException, TimeoutException { final boolean isDebugEnabled = logger.isDebugEnabled(); if (event.inhibitAllNotifications()) { if (isDebugEnabled) { logger.debug(STR, ev...
/** * Invoke the cache writer before a put is performed. Each * BucketRegion delegates to the CacheWriter on the PartitionedRegion * meaning that CacheWriters on a BucketRegion should only be used for internal * purposes. * * @see BucketRegion#cacheWriteBeforePut(EntryEventImpl, Set, CacheWriter, bool...
Invoke the cache writer before a put is performed. Each BucketRegion delegates to the CacheWriter on the PartitionedRegion meaning that CacheWriters on a BucketRegion should only be used for internal purposes
cacheWriteBeforePut
{ "repo_name": "robertgeiger/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegion.java", "license": "apache-2.0", "size": 426773 }
[ "com.gemstone.gemfire.cache.CacheWriter", "com.gemstone.gemfire.cache.CacheWriterException", "com.gemstone.gemfire.cache.TimeoutException", "java.util.Set" ]
import com.gemstone.gemfire.cache.CacheWriter; import com.gemstone.gemfire.cache.CacheWriterException; import com.gemstone.gemfire.cache.TimeoutException; import java.util.Set;
import com.gemstone.gemfire.cache.*; import java.util.*;
[ "com.gemstone.gemfire", "java.util" ]
com.gemstone.gemfire; java.util;
318,023
public Future<Lease> getLease(String partitionId);
Future<Lease> function(String partitionId);
/** * Return the lease info for the specified partition. Can return null if no lease has been * created in the store for the specified partition. * * @param partitionId id of partition to get lease for * @return lease info for the partition, or null */
Return the lease info for the specified partition. Can return null if no lease has been created in the store for the specified partition
getLease
{ "repo_name": "vinayakapte/azure_event_hub_sample", "path": "azure-eventhubs-eph/src/main/java/com/microsoft/azure/eventprocessorhost/ILeaseManager.java", "license": "mit", "size": 5335 }
[ "java.util.concurrent.Future" ]
import java.util.concurrent.Future;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
142,899
public final void testNull() throws IOException { final File impossibleLog = FileHelper.createTempDirectory(); try { final LogStream ls = new LogFile(impossibleLog); assertNull(ls.stream()); ls.removeLog(); } finally { FileHelper.deleteAll(impossibleLog); } }
final void function() throws IOException { final File impossibleLog = FileHelper.createTempDirectory(); try { final LogStream ls = new LogFile(impossibleLog); assertNull(ls.stream()); ls.removeLog(); } finally { FileHelper.deleteAll(impossibleLog); } }
/** * Test method for {@link com.rtg.util.io.LogFile}. * @throws IOException */
Test method for <code>com.rtg.util.io.LogFile</code>
testNull
{ "repo_name": "RealTimeGenomics/rtg-tools", "path": "test/com/rtg/util/io/LogFileTest.java", "license": "bsd-2-clause", "size": 2878 }
[ "com.rtg.util.test.FileHelper", "java.io.File", "java.io.IOException" ]
import com.rtg.util.test.FileHelper; import java.io.File; import java.io.IOException;
import com.rtg.util.test.*; import java.io.*;
[ "com.rtg.util", "java.io" ]
com.rtg.util; java.io;
505,562
public Origin getOrigin() { return originImpl; }
Origin function() { return originImpl; }
/** * Returns information about the originator of the session. This corresponds * to the o= field of the SDP data. * * @return the originator data. */
Returns information about the originator of the session. This corresponds to the o= field of the SDP data
getOrigin
{ "repo_name": "chenxiuheng/rtsp-proxy", "path": "src/main/java/gov/nist/javax/sdp/SessionDescriptionImpl.java", "license": "gpl-2.0", "size": 26046 }
[ "javax.sdp.Origin" ]
import javax.sdp.Origin;
import javax.sdp.*;
[ "javax.sdp" ]
javax.sdp;
105,743
@Override protected void runBegin(AST runAST) { JPNode runNode = (JPNode) runAST; // Expect a FileName at the top of semantic stack; String fileName = (String) wipExpression.getValue(); Call call = new Call(runNode); call.setRunArgument(fileName); runNode.setCall(call); wipCalls.addFirst(call)...
void function(AST runAST) { JPNode runNode = (JPNode) runAST; String fileName = (String) wipExpression.getValue(); Call call = new Call(runNode); call.setRunArgument(fileName); runNode.setCall(call); wipCalls.addFirst(call); }
/** Called by the tree parser at the beginning of a RUN statement. * @author pcd */
Called by the tree parser at the beginning of a RUN statement
runBegin
{ "repo_name": "consultingwerk/proparse", "path": "src/org/prorefactor/treeparser01/TP01Support.java", "license": "epl-1.0", "size": 41606 }
[ "org.prorefactor.core.JPNode", "org.prorefactor.treeparser.Call" ]
import org.prorefactor.core.JPNode; import org.prorefactor.treeparser.Call;
import org.prorefactor.core.*; import org.prorefactor.treeparser.*;
[ "org.prorefactor.core", "org.prorefactor.treeparser" ]
org.prorefactor.core; org.prorefactor.treeparser;
400,487
@Override public int compareTo(int rowId, byte[] compareValue) { int currentDataOffset = getOffSet(rowId);; int length = getLength(rowId, currentDataOffset); // as this class handles this variable length data, so filter value can be // smaller or bigger than than actual data, so we need to take the ...
int function(int rowId, byte[] compareValue) { int currentDataOffset = getOffSet(rowId);; int length = getLength(rowId, currentDataOffset); int compareResult; int compareLength = Math.min(length , compareValue.length); for (int i = 0; i < compareLength; i++) { compareResult = (CarbonUnsafe.getUnsafe().getByte(dataPageM...
/** * to compare the two byte array * * @param rowId index of first byte array * @param compareValue value of to be compared * @return compare result */
to compare the two byte array
compareTo
{ "repo_name": "jatin9896/incubator-carbondata", "path": "core/src/main/java/org/apache/carbondata/core/datastore/chunk/store/impl/unsafe/UnsafeVariableLengthDimensionDataChunkStore.java", "license": "apache-2.0", "size": 11921 }
[ "org.apache.carbondata.core.memory.CarbonUnsafe" ]
import org.apache.carbondata.core.memory.CarbonUnsafe;
import org.apache.carbondata.core.memory.*;
[ "org.apache.carbondata" ]
org.apache.carbondata;
820,544
@Override public Iterator<E> iterator() { return new Iterator<E>() { private E position = null; private E minValueTree = root.value; private E maxValueTree = root.value; boolean findMinMax = true;
Iterator<E> function() { return new Iterator<E>() { private E position = null; private E minValueTree = root.value; private E maxValueTree = root.value; boolean findMinMax = true;
/** * method return object iterator, for the passage through the tree. * * @return Iterator. */
method return object iterator, for the passage through the tree
iterator
{ "repo_name": "greensnow25/javaaz", "path": "chapter5/tree/src/mian/java/greensnow25/com/SimpleTree.java", "license": "apache-2.0", "size": 6518 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,290,910
public static List<GroupBy> getGroupByItems(ApplyOption applyOption) { return getItems(applyOption, e -> e.getKind() == ApplyItem.Kind.GROUP_BY, GroupBy.class); }
static List<GroupBy> function(ApplyOption applyOption) { return getItems(applyOption, e -> e.getKind() == ApplyItem.Kind.GROUP_BY, GroupBy.class); }
/** * Get's {@link GroupBy} list from {@link ApplyOption} option. * * @param applyOption * apply option * @return item list */
Get's <code>GroupBy</code> list from <code>ApplyOption</code> option
getGroupByItems
{ "repo_name": "Hevelian/hevelian-olastic", "path": "olastic-core/src/main/java/com/hevelian/olastic/core/utils/ApplyOptionUtils.java", "license": "apache-2.0", "size": 2931 }
[ "java.util.List", "org.apache.olingo.server.api.uri.queryoption.ApplyItem", "org.apache.olingo.server.api.uri.queryoption.ApplyOption", "org.apache.olingo.server.api.uri.queryoption.apply.GroupBy" ]
import java.util.List; import org.apache.olingo.server.api.uri.queryoption.ApplyItem; import org.apache.olingo.server.api.uri.queryoption.ApplyOption; import org.apache.olingo.server.api.uri.queryoption.apply.GroupBy;
import java.util.*; import org.apache.olingo.server.api.uri.queryoption.*; import org.apache.olingo.server.api.uri.queryoption.apply.*;
[ "java.util", "org.apache.olingo" ]
java.util; org.apache.olingo;
1,763,094
@SuppressWarnings("unchecked") public void testPropertyTypes() throws Exception { ArrayList<String> listProperty = new ArrayList<String>(2); listProperty.add("ABC"); listProperty.add("DEF"); Path pathProperty = new Path(); pathProperty.append(new Path...
@SuppressWarnings(STR) void function() throws Exception { ArrayList<String> listProperty = new ArrayList<String>(2); listProperty.add("ABC"); listProperty.add("DEF"); Path pathProperty = new Path(); pathProperty.append(new Path.SelfElement()).append(new Path.AttributeElement(TYPE_QNAME_TEST_CONTENT)); Map<QName, Serial...
/** * Check that properties go in and come out in the correct format. * @see #getCheckPropertyValues(Map) */
Check that properties go in and come out in the correct format
testPropertyTypes
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/repository/source/test-java/org/alfresco/repo/node/BaseNodeServiceTest.java", "license": "lgpl-3.0", "size": 160678 }
[ "java.io.Serializable", "java.util.ArrayList", "java.util.Collection", "java.util.Date", "java.util.HashMap", "java.util.Locale", "java.util.Map", "org.alfresco.service.cmr.repository.ContentData", "org.alfresco.service.cmr.repository.MLText", "org.alfresco.service.cmr.repository.NodeRef", "org....
import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.Date; import java.util.HashMap; import java.util.Locale; import java.util.Map; import org.alfresco.service.cmr.repository.ContentData; import org.alfresco.service.cmr.repository.MLText; import org.alfresco.service.cmr...
import java.io.*; import java.util.*; import org.alfresco.service.cmr.repository.*; import org.alfresco.service.namespace.*;
[ "java.io", "java.util", "org.alfresco.service" ]
java.io; java.util; org.alfresco.service;
498,395
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.add_player: addPlayer(); setCommanderInfo(-1); addPlayerView(mPlayers.get(mPlayers.size() - 1)); ret...
boolean function(MenuItem item) { switch (item.getItemId()) { case R.id.add_player: addPlayer(); setCommanderInfo(-1); addPlayerView(mPlayers.get(mPlayers.size() - 1)); return true; case R.id.remove_player: showDialog(DIALOG_REMOVE_PLAYER); return true; case R.id.announce_life: announceLifeTotals(); return true; case R...
/** * Handle menu items being selected * * @param item The menu item selected * @return true if the selection was acted upon, false otherwise */
Handle menu items being selected
onOptionsItemSelected
{ "repo_name": "fenfir/mtg-familiar", "path": "mobile/src/main/java/com/gelakinetic/mtgfam/fragments/LifeCounterFragment.java", "license": "mit", "size": 46110 }
[ "android.view.MenuItem" ]
import android.view.MenuItem;
import android.view.*;
[ "android.view" ]
android.view;
2,833,464
public OperationsClient getOperations() { return this.operations; } private final EmergingIssuesClient emergingIssues;
OperationsClient function() { return this.operations; } private final EmergingIssuesClient emergingIssues;
/** * Gets the OperationsClient object to access its operations. * * @return the OperationsClient object. */
Gets the OperationsClient object to access its operations
getOperations
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/main/java/com/azure/resourcemanager/resourcehealth/implementation/MicrosoftResourceHealthImpl.java", "license": "mit", "size": 12195 }
[ "com.azure.resourcemanager.resourcehealth.fluent.EmergingIssuesClient", "com.azure.resourcemanager.resourcehealth.fluent.OperationsClient" ]
import com.azure.resourcemanager.resourcehealth.fluent.EmergingIssuesClient; import com.azure.resourcemanager.resourcehealth.fluent.OperationsClient;
import com.azure.resourcemanager.resourcehealth.fluent.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
2,169,172
protected void sequence_ExactScope(ISerializationContext context, ExactScope semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, SolverLanguagePackage.Literals.SCOPE_DECLARATION__TYPE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFea...
void function(ISerializationContext context, ExactScope semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, SolverLanguagePackage.Literals.SCOPE_DECLARATION__TYPE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Sol...
/** * Contexts: * Statement returns ExactScope * ScopeDeclaration returns ExactScope * ExactScope returns ExactScope * * Constraint: * (type=[Symbol|QualifiedName] size=INT) */
Contexts: Statement returns ExactScope ScopeDeclaration returns ExactScope ExactScope returns ExactScope Constraint: (type=[Symbol|QualifiedName] size=INT)
sequence_ExactScope
{ "repo_name": "viatra/VIATRA-Generator", "path": "Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/serializer/SolverLanguageSemanticSequencer.java", "license": "epl-1.0", "size": 90825 }
[ "org.eclipse.viatra.solver.language.solverLanguage.ExactScope", "org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage", "org.eclipse.xtext.serializer.ISerializationContext", "org.eclipse.xtext.serializer.acceptor.SequenceFeeder", "org.eclipse.xtext.serializer.sequencer.ITransientValueServ...
import org.eclipse.viatra.solver.language.solverLanguage.ExactScope; import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; import org.eclipse.xtext.serializer.ISerializationContext; import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; import org.eclipse.xtext.serializer.sequencer.ITran...
import org.eclipse.viatra.solver.language.*; import org.eclipse.xtext.serializer.*; import org.eclipse.xtext.serializer.acceptor.*; import org.eclipse.xtext.serializer.sequencer.*;
[ "org.eclipse.viatra", "org.eclipse.xtext" ]
org.eclipse.viatra; org.eclipse.xtext;
192,570
void jobToBeExecuted(JobExecutionContext context);
void jobToBeExecuted(JobExecutionContext context);
/** * <p> * Called by the <code>{@link Scheduler}</code> when a <code>{@link org.quartz.jobs.JobDetail}</code> is about to be executed (an associated * <code>{@link Trigger}</code> has occurred). * </p> * <p> * This method will not be invoked if the execution of the Job was vetoed by a <code>{@link Tr...
Called by the <code><code>Scheduler</code></code> when a <code><code>org.quartz.jobs.JobDetail</code></code> is about to be executed (an associated <code><code>Trigger</code></code> has occurred). This method will not be invoked if the execution of the Job was vetoed by a <code><code>TriggerListener</code></code>.
jobToBeExecuted
{ "repo_name": "wentixiaogege/Sundial", "path": "src/main/java/org/quartz/listeners/JobListener.java", "license": "apache-2.0", "size": 2612 }
[ "org.quartz.core.JobExecutionContext" ]
import org.quartz.core.JobExecutionContext;
import org.quartz.core.*;
[ "org.quartz.core" ]
org.quartz.core;
1,581,558
public static void wakeup( @Nonnull final Stream<IAgent<?>> p_agents, @Nonnull final String p_data ) { final Set<ITerm> l_term = parsestringterm( p_data ).collect( Collectors.toSet() ); p_agents.parallel().forEach( i -> i.wakeup( l_term.stream() ) ); }
static void function( @Nonnull final Stream<IAgent<?>> p_agents, @Nonnull final String p_data ) { final Set<ITerm> l_term = parsestringterm( p_data ).collect( Collectors.toSet() ); p_agents.parallel().forEach( i -> i.wakeup( l_term.stream() ) ); }
/** * runs wake-up calls * * @param p_agents agent stream * @param p_data any optional data */
runs wake-up calls
wakeup
{ "repo_name": "LightJason/REST", "path": "src/main/java/org/lightjason/rest/provider/CAgentExecution.java", "license": "lgpl-3.0", "size": 11473 }
[ "java.util.Set", "java.util.stream.Collectors", "java.util.stream.Stream", "javax.annotation.Nonnull", "org.lightjason.agentspeak.agent.IAgent", "org.lightjason.agentspeak.language.ITerm" ]
import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; import javax.annotation.Nonnull; import org.lightjason.agentspeak.agent.IAgent; import org.lightjason.agentspeak.language.ITerm;
import java.util.*; import java.util.stream.*; import javax.annotation.*; import org.lightjason.agentspeak.agent.*; import org.lightjason.agentspeak.language.*;
[ "java.util", "javax.annotation", "org.lightjason.agentspeak" ]
java.util; javax.annotation; org.lightjason.agentspeak;
1,684,471
private void compareResults(AttachmentTO[] contentIn, AttachmentTO[] contentOut) throws IOException { for (int i = 0; i < contentIn.length; i++) { ByteArrayOutputStream outStream = new ByteArrayOutputStream(); contentIn[i].write(outStream); byte[] in = ...
void function(AttachmentTO[] contentIn, AttachmentTO[] contentOut) throws IOException { for (int i = 0; i < contentIn.length; i++) { ByteArrayOutputStream outStream = new ByteArrayOutputStream(); contentIn[i].write(outStream); byte[] in = outStream.toByteArray(); outStream = new ByteArrayOutputStream(); contentOut[i].w...
/** * Compares, whether two BinaryContentTO arrays are equal * * @param contentIn * A BinaryContentTO array. * @param contentOut * A BinaryContentTO array to compare with. * @param logger * A Logger to log the result. * @throws IOExc...
Compares, whether two BinaryContentTO arrays are equal
compareResults
{ "repo_name": "Communote/communote-server", "path": "communote/tests/all-versions/integration/src/test/java/com/communote/server/core/attachment/FilesystemConnectorTest.java", "license": "apache-2.0", "size": 6549 }
[ "com.communote.server.core.vo.content.AttachmentTO", "java.io.ByteArrayOutputStream", "java.io.IOException", "org.testng.Assert" ]
import com.communote.server.core.vo.content.AttachmentTO; import java.io.ByteArrayOutputStream; import java.io.IOException; import org.testng.Assert;
import com.communote.server.core.vo.content.*; import java.io.*; import org.testng.*;
[ "com.communote.server", "java.io", "org.testng" ]
com.communote.server; java.io; org.testng;
1,386,491
public double nextChiSquare(double df) { return new ChiSquaredDistribution(getRan(), df, ChiSquaredDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY).sample(); }
double function(double df) { return new ChiSquaredDistribution(getRan(), df, ChiSquaredDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY).sample(); }
/** * Generates a random value from the {@link ChiSquaredDistribution ChiSquare Distribution}. * * @param df the degrees of freedom of the ChiSquare distribution * @return random value sampled from the ChiSquare(df) distribution */
Generates a random value from the <code>ChiSquaredDistribution ChiSquare Distribution</code>
nextChiSquare
{ "repo_name": "charles-cooper/idylfin", "path": "src/org/apache/commons/math3/random/RandomDataGenerator.java", "license": "apache-2.0", "size": 31656 }
[ "org.apache.commons.math3.distribution.ChiSquaredDistribution" ]
import org.apache.commons.math3.distribution.ChiSquaredDistribution;
import org.apache.commons.math3.distribution.*;
[ "org.apache.commons" ]
org.apache.commons;
2,509,292
@Override public CorrelationAttribute.Type getCorrelationTypeById(int typeId) throws EamDbException { Connection conn = connect(); CorrelationAttribute.Type aType; PreparedStatement preparedStatement = null; ResultSet resultSet = null; String sql = "SELECT * FROM correla...
CorrelationAttribute.Type function(int typeId) throws EamDbException { Connection conn = connect(); CorrelationAttribute.Type aType; PreparedStatement preparedStatement = null; ResultSet resultSet = null; String sql = STR; try { preparedStatement = conn.prepareStatement(sql); preparedStatement.setInt(1, typeId); result...
/** * Get the EamArtifact.Type that has the given Type.Id. * * @param typeId Type.Id of Correlation Type to get * * @return EamArtifact.Type or null if it doesn't exist. * * @throws EamDbException */
Get the EamArtifact.Type that has the given Type.Id
getCorrelationTypeById
{ "repo_name": "APriestman/autopsy", "path": "Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/AbstractSqlEamDb.java", "license": "apache-2.0", "size": 98929 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,165,957
public SVGAnimatedEnumeration getLengthAdjust() { return lengthAdjust; }
SVGAnimatedEnumeration function() { return lengthAdjust; }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGTextContentElement#getLengthAdjust()}. */
DOM: Implements <code>org.w3c.dom.svg.SVGTextContentElement#getLengthAdjust()</code>
getLengthAdjust
{ "repo_name": "sflyphotobooks/crp-batik", "path": "sources/org/apache/batik/dom/svg/SVGOMTextContentElement.java", "license": "apache-2.0", "size": 10477 }
[ "org.w3c.dom.svg.SVGAnimatedEnumeration" ]
import org.w3c.dom.svg.SVGAnimatedEnumeration;
import org.w3c.dom.svg.*;
[ "org.w3c.dom" ]
org.w3c.dom;
488,562
private void handleDeleteFromPermissionForm(HttpServletRequest request, SearchPermissionBean searchPermissionBean, Integer permissionId) throws BusinessException{ logger.debug("handleDeleteFromPermissionForm - START - "); Integer[] permissions = new Integer[1]; permissions[0] = permissionId; ...
void function(HttpServletRequest request, SearchPermissionBean searchPermissionBean, Integer permissionId) throws BusinessException{ logger.debug(STR); Integer[] permissions = new Integer[1]; permissions[0] = permissionId; searchPermissionBean.setPermissionId(permissions); handleDeleteAllSimple(request, searchPermissio...
/** * Deletets a permission that comes from a permission form * * @author Adelina * * @param request * @param searchPermissionBean * @param permissionId * @throws BusinessException */
Deletets a permission that comes from a permission form
handleDeleteFromPermissionForm
{ "repo_name": "CodeSphere/termitaria", "path": "TermitariaOM/JavaSource/ro/cs/om/web/controller/form/PermissionSearchController.java", "license": "agpl-3.0", "size": 20010 }
[ "javax.servlet.http.HttpServletRequest", "ro.cs.om.entity.SearchPermissionBean", "ro.cs.om.exception.BusinessException" ]
import javax.servlet.http.HttpServletRequest; import ro.cs.om.entity.SearchPermissionBean; import ro.cs.om.exception.BusinessException;
import javax.servlet.http.*; import ro.cs.om.entity.*; import ro.cs.om.exception.*;
[ "javax.servlet", "ro.cs.om" ]
javax.servlet; ro.cs.om;
1,157,604
public SymmetricAlgorithm generate() { return SymmetricAlgorithm.newInstance(algorithm.getSpec(), algParamSpec); }
SymmetricAlgorithm function() { return SymmetricAlgorithm.newInstance(algorithm.getSpec(), algParamSpec); }
/** * Generates a symmetric cipher algorithm from decoded state data. * * @return Symmetric cipher instance. */
Generates a symmetric cipher algorithm from decoded state data
generate
{ "repo_name": "vdemeester/vt-crypt-tests", "path": "src/main/java/edu/vt/middleware/crypt/pkcs/PBES2CipherGenerator.java", "license": "apache-2.0", "size": 3376 }
[ "edu.vt.middleware.crypt.symmetric.SymmetricAlgorithm" ]
import edu.vt.middleware.crypt.symmetric.SymmetricAlgorithm;
import edu.vt.middleware.crypt.symmetric.*;
[ "edu.vt.middleware" ]
edu.vt.middleware;
1,597,694
void deleteByIdWithResponse(String id, Context context);
void deleteByIdWithResponse(String id, Context context);
/** * Deletes a server. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is reje...
Deletes a server
deleteByIdWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/models/Servers.java", "license": "mit", "size": 8596 }
[ "com.azure.core.util.Context" ]
import com.azure.core.util.Context;
import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
2,249,267
public JSONArray put(int index, Collection value) throws JSONException { this.put(index, new JSONArray(value)); return this; }
JSONArray function(int index, Collection value) throws JSONException { this.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 * ...
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection
put
{ "repo_name": "RoyalDev/PlayerMetrics", "path": "src/org/royaldev/playermetrics/json/JSONArray.java", "license": "gpl-3.0", "size": 29928 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
814,207
@Override public void dispatchError(ActorStream handler, ActorStream toSource, ActorError error) { toSource.queryError(getId(), getFrom(), getTo(), getValue(), error); }
void function(ActorStream handler, ActorStream toSource, ActorError error) { toSource.queryError(getId(), getFrom(), getTo(), getValue(), error); }
/** * SPI method to dispatch the packet to the proper handler */
SPI method to dispatch the packet to the proper handler
dispatchError
{ "repo_name": "christianchristensen/resin", "path": "modules/resin/src/com/caucho/hemp/packet/QuerySet.java", "license": "gpl-2.0", "size": 2976 }
[ "com.caucho.bam.ActorError", "com.caucho.bam.ActorStream" ]
import com.caucho.bam.ActorError; import com.caucho.bam.ActorStream;
import com.caucho.bam.*;
[ "com.caucho.bam" ]
com.caucho.bam;
1,963,095
EEnum getSourceProjectType();
EEnum getSourceProjectType();
/** * Returns the meta object for enum '{@link nexcore.tool.mda.model.developer.reverseTransformation.SourceProjectType <em>Source Project Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for enum '<em>Source Project Type</em>'. * @see nexcore.tool.m...
Returns the meta object for enum '<code>nexcore.tool.mda.model.developer.reverseTransformation.SourceProjectType Source Project Type</code>'.
getSourceProjectType
{ "repo_name": "SK-HOLDINGS-CC/NEXCORE-UML-Modeler", "path": "nexcore.tool.mda.model/src/java/nexcore/tool/mda/model/developer/reverseTransformation/ReverseTransformationPackage.java", "license": "epl-1.0", "size": 46728 }
[ "org.eclipse.emf.ecore.EEnum" ]
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,726,377
public void contextDeleted(Context context);
void function(Context context);
/** * Called whenever a new context is deleted. */
Called whenever a new context is deleted
contextDeleted
{ "repo_name": "lightsey/zaproxy", "path": "src/org/parosproxy/paros/model/Session.java", "license": "apache-2.0", "size": 52794 }
[ "org.zaproxy.zap.model.Context" ]
import org.zaproxy.zap.model.Context;
import org.zaproxy.zap.model.*;
[ "org.zaproxy.zap" ]
org.zaproxy.zap;
642,650
public void getProperties(final Properties properties) { properties.put(PROPERTY_KEY_RED, getRedExpression()); properties.put(PROPERTY_KEY_GREEN, getGreenExpression()); properties.put(PROPERTY_KEY_BLUE, getBlueExpression()); if (!getAlphaExpression().equals("")) { propert...
void function(final Properties properties) { properties.put(PROPERTY_KEY_RED, getRedExpression()); properties.put(PROPERTY_KEY_GREEN, getGreenExpression()); properties.put(PROPERTY_KEY_BLUE, getBlueExpression()); if (!getAlphaExpression().equals(STRtrueSTRfalse"); } else { properties.remove(PROPERTY_KEY_INTERNAL); } }
/** * Sets profile properties and accoringly sets them in the given property map. * * @param properties the property map which receives the properties of this profiles */
Sets profile properties and accoringly sets them in the given property map
getProperties
{ "repo_name": "valgur/snap-engine", "path": "snap-core/src/main/java/org/esa/snap/framework/datamodel/RGBImageProfile.java", "license": "gpl-3.0", "size": 19414 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
2,129,731
@Override public Something rename(Name name) { return new Something(name, null); } // ------------------------------------------------------------------------- // Row11 type methods // -------------------------------------------------------------------------
Something function(Name name) { return new Something(name, null); }
/** * Rename this table */
Rename this table
rename
{ "repo_name": "jklingsporn/vertx-jooq", "path": "vertx-jooq-generate/src/test/java/generated/classic/jdbc/guice/vertx/tables/Something.java", "license": "mit", "size": 6217 }
[ "org.jooq.Name" ]
import org.jooq.Name;
import org.jooq.*;
[ "org.jooq" ]
org.jooq;
1,325,080
@SuppressWarnings({ "rawtypes", "unchecked" }) synchronized final InstanceParameter<?> _take() { final ArrayListView<DefinitionElement> alv; LinkedHashMap<String, DefinitionElement> al; al = this.m_choices; this.m_choices = null; alv = this.normalize(ArrayListView.collectionToView(al.values())...
@SuppressWarnings({ STR, STR }) synchronized final InstanceParameter<?> _take() { final ArrayListView<DefinitionElement> alv; LinkedHashMap<String, DefinitionElement> al; al = this.m_choices; this.m_choices = null; alv = this.normalize(ArrayListView.collectionToView(al.values())); al = null; return new InstanceParamete...
/** * take the result * * @return the result */
take the result
_take
{ "repo_name": "optimizationBenchmarking/utils-base", "path": "src/main/java/org/optimizationBenchmarking/utils/config/InstanceParameterBuilder.java", "license": "gpl-3.0", "size": 2511 }
[ "java.util.LinkedHashMap" ]
import java.util.LinkedHashMap;
import java.util.*;
[ "java.util" ]
java.util;
992,076
public void setOnPullEventListener(OnPullEventListener<T> listener);
void function(OnPullEventListener<T> listener);
/** * Set OnPullEventListener for the Widget * * @param listener - Listener to be used when the Widget has a pull event to * propogate. */
Set OnPullEventListener for the Widget
setOnPullEventListener
{ "repo_name": "ShawnDongAi/AEASSISTANT", "path": "AEAssistant/src/com/zzn/aeassistant/view/pulltorefresh/IPullToRefresh.java", "license": "apache-2.0", "size": 7525 }
[ "com.zzn.aeassistant.view.pulltorefresh.PullToRefreshBase" ]
import com.zzn.aeassistant.view.pulltorefresh.PullToRefreshBase;
import com.zzn.aeassistant.view.pulltorefresh.*;
[ "com.zzn.aeassistant" ]
com.zzn.aeassistant;
1,121,768
public TokenSet getKeywordTokens() { return myKeywordTokens; }
TokenSet function() { return myKeywordTokens; }
/** * Returns all element types of Python dialects that are language keywords. */
Returns all element types of Python dialects that are language keywords
getKeywordTokens
{ "repo_name": "caot/intellij-community", "path": "python/src/com/jetbrains/python/PythonDialectsTokenSetProvider.java", "license": "apache-2.0", "size": 4704 }
[ "com.intellij.psi.tree.TokenSet" ]
import com.intellij.psi.tree.TokenSet;
import com.intellij.psi.tree.*;
[ "com.intellij.psi" ]
com.intellij.psi;
710,503
private native void closeFile(int fd) throws IOException;
native void function(int fd) throws IOException;
/** * Closes the device file and any other held resources. * @throws IOException */
Closes the device file and any other held resources
closeFile
{ "repo_name": "richkadel/flip.tv", "path": "cc4j/src/main/java/com/knowbout/cc4j/VBIDevice.java", "license": "apache-2.0", "size": 4861 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
377,811
@Test public void testMissingArgument() throws Exception { boolean isTestPassed = false; String script = "require;"; try { JUnitUtils.interpret(JUnitUtils.createMail(), script); } catch (SyntaxException e) { isTestPassed = true; } Assert.a...
void function() throws Exception { boolean isTestPassed = false; String script = STR; try { JUnitUtils.interpret(JUnitUtils.createMail(), script); } catch (SyntaxException e) { isTestPassed = true; } Assert.assertTrue(isTestPassed); }
/** * Test for Command 'require' for missing argument */
Test for Command 'require' for missing argument
testMissingArgument
{ "repo_name": "linagora/james-jsieve", "path": "core/src/test/java/org/apache/jsieve/RequireTest.java", "license": "apache-2.0", "size": 6958 }
[ "org.apache.jsieve.exception.SyntaxException", "org.apache.jsieve.utils.JUnitUtils", "org.junit.Assert" ]
import org.apache.jsieve.exception.SyntaxException; import org.apache.jsieve.utils.JUnitUtils; import org.junit.Assert;
import org.apache.jsieve.exception.*; import org.apache.jsieve.utils.*; import org.junit.*;
[ "org.apache.jsieve", "org.junit" ]
org.apache.jsieve; org.junit;
2,663,533
public static String getProp(String name, String defaultValue) { String value = null; try { value = PrefsPropsUtil.getString(name); } catch (SystemException e) { return defaultValue; } if (value == null || value.length() < 1) { value = Port...
static String function(String name, String defaultValue) { String value = null; try { value = PrefsPropsUtil.getString(name); } catch (SystemException e) { return defaultValue; } if (value == null value.length() < 1) { value = PortletProps.get(name); } if (value == null value.length() < 1) { return defaultValue; } retu...
/** * Get a project property. If the property is overridden in portal-ext.properties, the override is used. If not * the default value from portlet.properties is used. If Neither exist defaultValue is used. * @param name property name * @param defaultValue default value to use if property not found....
Get a project property. If the property is overridden in portal-ext.properties, the override is used. If not the default value from portlet.properties is used. If Neither exist defaultValue is used
getProp
{ "repo_name": "elmozgo/PortalMirror", "path": "portalmirror-refresher-portlet/src/main/java/org/portalmirror/refresher/common/portlet/CustomPropsUtil.java", "license": "gpl-3.0", "size": 1883 }
[ "com.liferay.portal.kernel.exception.SystemException", "com.liferay.portal.kernel.util.PrefsPropsUtil", "com.liferay.util.portlet.PortletProps" ]
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.util.PrefsPropsUtil; import com.liferay.util.portlet.PortletProps;
import com.liferay.portal.kernel.exception.*; import com.liferay.portal.kernel.util.*; import com.liferay.util.portlet.*;
[ "com.liferay.portal", "com.liferay.util" ]
com.liferay.portal; com.liferay.util;
606,132
public static String readAsciiLine(InputStream in) throws IOException { // TODO: support UTF-8 here instead StringBuilder result = new StringBuilder(80); while (true) { int c = in.read(); if (c == -1) { throw new EOFException(); } else if ...
static String function(InputStream in) throws IOException { StringBuilder result = new StringBuilder(80); while (true) { int c = in.read(); if (c == -1) { throw new EOFException(); } else if (c == '\n') { break; } result.append((char) c); } int length = result.length(); if (length > 0 && result.charAt(length - 1) == '\...
/** * Returns the ASCII characters up to but not including the next "\r\n", or * "\n". * * @throws java.io.EOFException if the stream is exhausted before the next newline * character. */
Returns the ASCII characters up to but not including the next "\r\n", or "\n"
readAsciiLine
{ "repo_name": "Jav-Xu/PicsArt", "path": "app/src/main/java/com/xuzhihui/picsart/cache/DiskLruCache.java", "license": "apache-2.0", "size": 33485 }
[ "java.io.EOFException", "java.io.IOException", "java.io.InputStream" ]
import java.io.EOFException; import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
903,961
public Properties getProperties() { final Properties props = new Properties(super.getProperties()); // Base version of the test uses the MemStore. props.setProperty(Options.BUFFER_MODE, BufferMode.MemStore.toString()); // quads mode: quads=true, sids=false, axioms...
Properties function() { final Properties props = new Properties(super.getProperties()); props.setProperty(Options.BUFFER_MODE, BufferMode.MemStore.toString()); props.setProperty(Options.QUADS_MODE, "true"); props.setProperty(Options.JUSTIFY, "false"); props.setProperty(Options.QUERY_TIME_EXPANDER, "false"); props.setPr...
/** * Note: This method may be overridden in order to run the test suite * against other variations of the bigdata backend. */
Note: This method may be overridden in order to run the test suite against other variations of the bigdata backend
getProperties
{ "repo_name": "smalyshev/blazegraph", "path": "bigdata-sails/src/test/com/bigdata/rdf/sail/tck/BigdataSPARQLUpdateTest2.java", "license": "gpl-2.0", "size": 36382 }
[ "com.bigdata.journal.BufferMode", "com.bigdata.rdf.sail.BigdataSail", "java.util.Properties" ]
import com.bigdata.journal.BufferMode; import com.bigdata.rdf.sail.BigdataSail; import java.util.Properties;
import com.bigdata.journal.*; import com.bigdata.rdf.sail.*; import java.util.*;
[ "com.bigdata.journal", "com.bigdata.rdf", "java.util" ]
com.bigdata.journal; com.bigdata.rdf; java.util;
1,738,528
public void handleResult(Object result) { if (index == IMAGE) viewer.setImageEnumerations((Map) result); else viewer.setChannelEnumerations((Map) result); }
void function(Object result) { if (index == IMAGE) viewer.setImageEnumerations((Map) result); else viewer.setChannelEnumerations((Map) result); }
/** * Feeds the result back to the viewer. * @see EditorLoader#handleResult(Object) */
Feeds the result back to the viewer
handleResult
{ "repo_name": "rleigh-dundee/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/EnumerationLoader.java", "license": "gpl-2.0", "size": 3417 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
543,510
int deleteByExample(BillingAccountExample example);
int deleteByExample(BillingAccountExample example);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table s_account * * @mbggenerated Mon Sep 21 13:52:02 ICT 2015 */
This method was generated by MyBatis Generator. This method corresponds to the database table s_account
deleteByExample
{ "repo_name": "maduhu/mycollab", "path": "mycollab-services/src/main/java/com/esofthead/mycollab/module/user/dao/BillingAccountMapper.java", "license": "agpl-3.0", "size": 4752 }
[ "com.esofthead.mycollab.module.user.domain.BillingAccountExample" ]
import com.esofthead.mycollab.module.user.domain.BillingAccountExample;
import com.esofthead.mycollab.module.user.domain.*;
[ "com.esofthead.mycollab" ]
com.esofthead.mycollab;
1,958,411
public static TimelineEntity createEntityToBeReturned( TimelineEntityDocument timelineEntityDocument, TimelineDataToRetrieve dataToRetrieve) { TimelineEntity entityToBeReturned = createTimelineEntity( timelineEntityDocument.getType(), timelineEntityDocument.fetchTimelineEntity()); ...
static TimelineEntity function( TimelineEntityDocument timelineEntityDocument, TimelineDataToRetrieve dataToRetrieve) { TimelineEntity entityToBeReturned = createTimelineEntity( timelineEntityDocument.getType(), timelineEntityDocument.fetchTimelineEntity()); entityToBeReturned.setIdentifier(new TimelineEntity.Identifie...
/** * Creates the final entity to be returned as the result. * @param timelineEntityDocument * which has all the information for the entity * @param dataToRetrieve * specifies filters and fields to retrieve * @return {@link TimelineEntity} as the result *...
Creates the final entity to be returned as the result
createEntityToBeReturned
{ "repo_name": "lukmajercak/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-documentstore/src/main/java/org/apache/hadoop/yarn/server/timelineservice/documentstore/DocumentStoreUtils.java", "license": "apache-2.0", "size": 19160 }
[ "org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity", "org.apache.hadoop.yarn.server.timelineservice.documentstore.collection.document.entity.TimelineEntityDocument", "org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve" ]
import org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity; import org.apache.hadoop.yarn.server.timelineservice.documentstore.collection.document.entity.TimelineEntityDocument; import org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve;
import org.apache.hadoop.yarn.api.records.timelineservice.*; import org.apache.hadoop.yarn.server.timelineservice.documentstore.collection.document.entity.*; import org.apache.hadoop.yarn.server.timelineservice.reader.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
605,606
private void copyDataBase() throws IOException{ //Open your local db as the input stream InputStream myInput = myContext.getAssets().open(DB_NAME); // Path to the just created empty db String outFileName = DB_PATH + DB_NAME; //Open the empty db as the output stream OutputStream m...
void function() throws IOException{ InputStream myInput = myContext.getAssets().open(DB_NAME); String outFileName = DB_PATH + DB_NAME; OutputStream myOutput = new FileOutputStream(outFileName); byte[] buffer = new byte[1024]; int length; while ((length = myInput.read(buffer))>0){ myOutput.write(buffer, 0, length); } my...
/** * Copies your database from your local assets-folder to the just created empty database in the * system folder, from where it can be accessed and handled. * This is done by transfering bytestream. * */
Copies your database from your local assets-folder to the just created empty database in the system folder, from where it can be accessed and handled. This is done by transfering bytestream
copyDataBase
{ "repo_name": "wildintellect/android-roadkill", "path": "src/edu/ucdavis/cros/roadkill/DataBaseHelper.java", "license": "gpl-3.0", "size": 4302 }
[ "java.io.FileOutputStream", "java.io.IOException", "java.io.InputStream", "java.io.OutputStream" ]
import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
535,040
@SuppressWarnings("unchecked") public Type to(ExchangePattern pattern, Iterable<Endpoint> endpoints) { for (Endpoint endpoint : endpoints) { addOutput(new ToDefinition(endpoint, pattern)); } return (Type) this; } /** * <a href="http://camel.apache.org/exchange-p...
@SuppressWarnings(STR) Type function(ExchangePattern pattern, Iterable<Endpoint> endpoints) { for (Endpoint endpoint : endpoints) { addOutput(new ToDefinition(endpoint, pattern)); } return (Type) this; } /** * <a href="http: * set the {@link ExchangePattern} into the {@link Exchange}. * <p/> * The pattern set on the {@...
/** * Sends the exchange to a list of endpoints * * @param pattern the pattern to use for the message exchanges * @param endpoints list of endpoints to send to * @return the builder */
Sends the exchange to a list of endpoints
to
{ "repo_name": "gilfernandes/camel", "path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java", "license": "apache-2.0", "size": 165071 }
[ "org.apache.camel.Endpoint", "org.apache.camel.Exchange", "org.apache.camel.ExchangePattern" ]
import org.apache.camel.Endpoint; import org.apache.camel.Exchange; import org.apache.camel.ExchangePattern;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
2,369,410
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<ContainersListBlobHierarchySegmentResponse> listBlobHierarchySegmentWithRestResponseAsync(String containerName, String delimiter, Context context) { final String prefix = null; final String marker = null; final Integer maxresults = ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<ContainersListBlobHierarchySegmentResponse> function(String containerName, String delimiter, Context context) { final String prefix = null; final String marker = null; final Integer maxresults = null; final Integer timeout = null; final String requestId = null; final Str...
/** * [Update] The List Blobs operation returns a list of the blobs under the specified container. * * @param containerName The container name. * @param delimiter When the request includes this parameter, the operation returns a BlobPrefix element in the response body that acts as a placeholder for ...
[Update] The List Blobs operation returns a list of the blobs under the specified container
listBlobHierarchySegmentWithRestResponseAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ContainersImpl.java", "license": "mit", "size": 58992 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.util.Context", "com.azure.storage.blob.implementation.models.ContainersListBlobHierarchySegmentResponse" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; import com.azure.storage.blob.implementation.models.ContainersListBlobHierarchySegmentResponse;
import com.azure.core.annotation.*; import com.azure.core.util.*; import com.azure.storage.blob.implementation.models.*;
[ "com.azure.core", "com.azure.storage" ]
com.azure.core; com.azure.storage;
1,385,487
protected void determineDeploymentTypeIfRequired() { if(deploymentType != null) { return; } determiningDeploymentType = true; try { final IsisConfigurationBuilder isisConfigurationBuilder = createConfigBuilder(); final IsisConfiguration configurat...
void function() { if(deploymentType != null) { return; } determiningDeploymentType = true; try { final IsisConfigurationBuilder isisConfigurationBuilder = createConfigBuilder(); final IsisConfiguration configuration = isisConfigurationBuilder.getConfiguration(); String deploymentTypeFromConfig = configuration.getString...
/** * Made protected visibility for easy (informal) pluggability. */
Made protected visibility for easy (informal) pluggability
determineDeploymentTypeIfRequired
{ "repo_name": "howepeng/isis", "path": "core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketApplication.java", "license": "apache-2.0", "size": 33539 }
[ "org.apache.isis.core.commons.config.IsisConfiguration", "org.apache.isis.core.commons.config.IsisConfigurationBuilder" ]
import org.apache.isis.core.commons.config.IsisConfiguration; import org.apache.isis.core.commons.config.IsisConfigurationBuilder;
import org.apache.isis.core.commons.config.*;
[ "org.apache.isis" ]
org.apache.isis;
2,617,963