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 text( Pcdata value, boolean needsSeparatingWhitespace ) throws IOException, SAXException, XMLStreamException;
void function( Pcdata value, boolean needsSeparatingWhitespace ) throws IOException, SAXException, XMLStreamException;
/** * Writes XML text with character escaping, if necessary. * * @param value * this string can contain characters that might need escaping * (such as '&' or '>') * @param needsSeparatingWhitespace */
Writes XML text with character escaping, if necessary
text
{ "repo_name": "samskivert/ikvm-openjdk", "path": "build/linux-amd64/impsrc/com/sun/xml/internal/bind/v2/runtime/output/XmlOutput.java", "license": "gpl-2.0", "size": 6800 }
[ "java.io.IOException", "javax.xml.stream.XMLStreamException", "org.xml.sax.SAXException" ]
import java.io.IOException; import javax.xml.stream.XMLStreamException; import org.xml.sax.SAXException;
import java.io.*; import javax.xml.stream.*; import org.xml.sax.*;
[ "java.io", "javax.xml", "org.xml.sax" ]
java.io; javax.xml; org.xml.sax;
924,506
@RequestMapping(value = "/projects/new", params = "_target1", method = RequestMethod.POST) public ModelAndView processZeroStep( final @ModelAttribute("command") NewProjectForm form, final Errors errors) { ModelAndView model = new ModelAndView("standalone/newProject1"); model.addObject("command", form); ...
@RequestMapping(value = STR, params = STR, method = RequestMethod.POST) ModelAndView function( final @ModelAttribute(STR) NewProjectForm form, final Errors errors) { ModelAndView model = new ModelAndView(STR); model.addObject(STR, form); return model; }
/** * First step handler in which the backlog in wiki markup can be provided. */
First step handler in which the backlog in wiki markup can be provided
processZeroStep
{ "repo_name": "tomtom-lodz/amelinium", "path": "amelinium-gae/src/main/java/com/tomtom/amelinium/web/standalone/controller/NewProjectController.java", "license": "gpl-2.0", "size": 3798 }
[ "com.tomtom.amelinium.web.standalone.model.NewProjectForm", "org.springframework.validation.Errors", "org.springframework.web.bind.annotation.ModelAttribute", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.RequestMethod", "org.springframework.web.servlet...
import com.tomtom.amelinium.web.standalone.model.NewProjectForm; import org.springframework.validation.Errors; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springfram...
import com.tomtom.amelinium.web.standalone.model.*; import org.springframework.validation.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.*;
[ "com.tomtom.amelinium", "org.springframework.validation", "org.springframework.web" ]
com.tomtom.amelinium; org.springframework.validation; org.springframework.web;
104,679
private void testExpressionParsing(String expr) throws RecognitionException, IOException{ logger.debug("-----" + expr + "-----"); LogicalExpression e = parseExpression(expr); String newStringExpr = serializeExpression(e); logger.debug(newStringExpr); LogicalExpression e2 = parseExpression(newStri...
void function(String expr) throws RecognitionException, IOException{ logger.debug("-----" + expr + "-----"); LogicalExpression e = parseExpression(expr); String newStringExpr = serializeExpression(e); logger.debug(newStringExpr); LogicalExpression e2 = parseExpression(newStringExpr); }
/** * Attempt to parse an expression. Once parsed, convert it to a string and then parse it again to make sure serialization works. * @param expr * @throws RecognitionException * @throws IOException */
Attempt to parse an expression. Once parsed, convert it to a string and then parse it again to make sure serialization works
testExpressionParsing
{ "repo_name": "pwong-mapr/incubator-drill", "path": "logical/src/test/java/org/apache/drill/common/expression/parser/TreeTest.java", "license": "apache-2.0", "size": 3965 }
[ "java.io.IOException", "org.antlr.runtime.RecognitionException", "org.apache.drill.common.expression.LogicalExpression" ]
import java.io.IOException; import org.antlr.runtime.RecognitionException; import org.apache.drill.common.expression.LogicalExpression;
import java.io.*; import org.antlr.runtime.*; import org.apache.drill.common.expression.*;
[ "java.io", "org.antlr.runtime", "org.apache.drill" ]
java.io; org.antlr.runtime; org.apache.drill;
2,911,356
protected NodeFigure createNodeFigure() { NodeFigure figure = createNodePlate(); figure.setLayoutManager(new StackLayout()); IFigure shape = createNodeShape(); figure.add(shape); contentPane = setupContentPane(shape); return figure; }
NodeFigure function() { NodeFigure figure = createNodePlate(); figure.setLayoutManager(new StackLayout()); IFigure shape = createNodeShape(); figure.add(shape); contentPane = setupContentPane(shape); return figure; }
/** * Creates figure for this edit part. * * Body of this method does not depend on settings in generation model * so you may safely remove <i>generated</i> tag and modify it. * * @generated */
Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may safely remove generated tag and modify it
createNodeFigure
{ "repo_name": "prabushi/devstudio-tooling-esb", "path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/MediatorFlow24EditPart.java", "license": "apache-2.0", "size": 7290 }
[ "org.eclipse.draw2d.IFigure", "org.eclipse.draw2d.StackLayout", "org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure" ]
import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.StackLayout; import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
import org.eclipse.draw2d.*; import org.eclipse.gmf.runtime.gef.ui.figures.*;
[ "org.eclipse.draw2d", "org.eclipse.gmf" ]
org.eclipse.draw2d; org.eclipse.gmf;
1,069,090
public RestoreSnapshotRequest source(Map source) { for (Map.Entry<String, Object> entry : ((Map<String, Object>) source).entrySet()) { String name = entry.getKey(); if (name.equals("indices")) { if (entry.getValue() instanceof String) { indices(Str...
RestoreSnapshotRequest function(Map source) { for (Map.Entry<String, Object> entry : ((Map<String, Object>) source).entrySet()) { String name = entry.getKey(); if (name.equals(STR)) { if (entry.getValue() instanceof String) { indices(Strings.splitStringByCommaToArray((String) entry.getValue())); } else if (entry.getVal...
/** * Parses restore definition * * @param source restore definition * @return this request */
Parses restore definition
source
{ "repo_name": "ThalaivaStars/OrgRepo1", "path": "core/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreSnapshotRequest.java", "license": "apache-2.0", "size": 22767 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map", "org.elasticsearch.action.support.IndicesOptions", "org.elasticsearch.common.Strings", "org.elasticsearch.common.xcontent.support.XContentMapValues" ]
import java.util.ArrayList; import java.util.List; import java.util.Map; import org.elasticsearch.action.support.IndicesOptions; import org.elasticsearch.common.Strings; import org.elasticsearch.common.xcontent.support.XContentMapValues;
import java.util.*; import org.elasticsearch.action.support.*; import org.elasticsearch.common.*; import org.elasticsearch.common.xcontent.support.*;
[ "java.util", "org.elasticsearch.action", "org.elasticsearch.common" ]
java.util; org.elasticsearch.action; org.elasticsearch.common;
1,464,715
public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException { log.finest("matchManagedConnections()"); ManagedConnection result = null; Iterator it = connectionSet.iterator(); while (re...
ManagedConnection function(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException { log.finest(STR); ManagedConnection result = null; Iterator it = connectionSet.iterator(); while (result == null && it.hasNext()) { ManagedConnection mc = (ManagedConnection)it.next(); if (mc in...
/** * Returns a matched connection from the candidate set of connections. * * @param connectionSet Candidate connection set * @param subject Caller's security information * @param cxRequestInfo Additional resource adapter specific connection request information * @throws ResourceException ...
Returns a matched connection from the candidate set of connections
matchManagedConnections
{ "repo_name": "jpkrohling/cassandra-driver-ra", "path": "resource-adapter/src/main/java/org/jboss/cassandra/ra/CassandraDriverManagedConnectionFactory.java", "license": "apache-2.0", "size": 7435 }
[ "java.util.Iterator", "java.util.Set", "javax.resource.ResourceException", "javax.resource.spi.ConnectionRequestInfo", "javax.resource.spi.ManagedConnection", "javax.security.auth.Subject" ]
import java.util.Iterator; import java.util.Set; import javax.resource.ResourceException; import javax.resource.spi.ConnectionRequestInfo; import javax.resource.spi.ManagedConnection; import javax.security.auth.Subject;
import java.util.*; import javax.resource.*; import javax.resource.spi.*; import javax.security.auth.*;
[ "java.util", "javax.resource", "javax.security" ]
java.util; javax.resource; javax.security;
1,337,258
public final String getAddPrintersActivityName() { return (String) Meta.invokeMethod(obj, "getAddPrintersActivityName"); }
final String function() { return (String) Meta.invokeMethod(obj, STR); }
/** * The add printers activity name. * * @return The add printers activity name. */
The add printers activity name
getAddPrintersActivityName
{ "repo_name": "WeAreJoinly/Joinly-App", "path": "plugins/cordova-plugin-printer/src/android/ext/PrintServiceInfo.java", "license": "gpl-3.0", "size": 2041 }
[ "de.appplant.cordova.plugin.printer.reflect.Meta" ]
import de.appplant.cordova.plugin.printer.reflect.Meta;
import de.appplant.cordova.plugin.printer.reflect.*;
[ "de.appplant.cordova" ]
de.appplant.cordova;
2,567,004
public static boolean containsPredicate(ExprNodeDesc source, ExprNodeDesc predicate) { if (source.isSame(predicate)) { return true; } if (FunctionRegistry.isOpAnd(source)) { if (containsPredicate(source.getChildren().get(0), predicate) || containsPredicate(source.getChildren().get(1)...
static boolean function(ExprNodeDesc source, ExprNodeDesc predicate) { if (source.isSame(predicate)) { return true; } if (FunctionRegistry.isOpAnd(source)) { if (containsPredicate(source.getChildren().get(0), predicate) containsPredicate(source.getChildren().get(1), predicate)) { return true; } } return false; }
/** * return true if predicate is already included in source */
return true if predicate is already included in source
containsPredicate
{ "repo_name": "BUPTAnderson/apache-hive-2.1.1-src", "path": "ql/src/java/org/apache/hadoop/hive/ql/plan/ExprNodeDescUtils.java", "license": "apache-2.0", "size": 26659 }
[ "org.apache.hadoop.hive.ql.exec.FunctionRegistry" ]
import org.apache.hadoop.hive.ql.exec.FunctionRegistry;
import org.apache.hadoop.hive.ql.exec.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,101,347
public void addPageNumberPlaceholder(PageNumberPlaceholder pPageNumberPlaceholder) { getCurrentPageTemplate().addPageNumberPlaceholder(pPageNumberPlaceholder); }
void function(PageNumberPlaceholder pPageNumberPlaceholder) { getCurrentPageTemplate().addPageNumberPlaceholder(pPageNumberPlaceholder); }
/** * Adds a placeholder for a page number. Page numbers are resolved during post-processing of the document when headers * and footers are resolved, as the total number of pages are known then. * @param pPageNumberPlaceholder */
Adds a placeholder for a page number. Page numbers are resolved during post-processing of the document when headers and footers are resolved, as the total number of pages are known then
addPageNumberPlaceholder
{ "repo_name": "Fivium/FOXopen", "path": "src/main/java/net/foxopen/fox/module/serialiser/pdf/pages/PageManager.java", "license": "gpl-3.0", "size": 13330 }
[ "net.foxopen.fox.module.serialiser.pdf.pages.pagenumbers.PageNumberPlaceholder" ]
import net.foxopen.fox.module.serialiser.pdf.pages.pagenumbers.PageNumberPlaceholder;
import net.foxopen.fox.module.serialiser.pdf.pages.pagenumbers.*;
[ "net.foxopen.fox" ]
net.foxopen.fox;
689,251
@JsonIgnore public Map<String, SmokeCOAlarm> getSmoke_co_alarms() { return (devices == null) ? null : devices.getSmoke_co_alarms(); }
Map<String, SmokeCOAlarm> function() { return (devices == null) ? null : devices.getSmoke_co_alarms(); }
/** * Convenience method so property specs don't have to include "devices." in each one. * * @return name-based map of smoke_co_alarms */
Convenience method so property specs don't have to include "devices." in each one
getSmoke_co_alarms
{ "repo_name": "rahulopengts/myhome", "path": "bundles/binding/org.openhab.binding.nest/src/main/java/org/openhab/binding/nest/internal/messages/DataModel.java", "license": "epl-1.0", "size": 16202 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,909,716
private void readHttpDataAllReceive(Channel channel) { List<InterfaceHttpData> datas = null; try { datas = decoder.getBodyHttpDatas(); } catch (NotEnoughDataDecoderException e1) { // Should not be! e1.printStackTrace(); responseContent.append(e...
void function(Channel channel) { List<InterfaceHttpData> datas = null; try { datas = decoder.getBodyHttpDatas(); } catch (NotEnoughDataDecoderException e1) { e1.printStackTrace(); responseContent.append(e1.getMessage()); writeResponse(channel); Channels.close(channel); return; } for (InterfaceHttpData data: datas) { wr...
/** * Example of reading all InterfaceHttpData from finished transfer * * @param channel */
Example of reading all InterfaceHttpData from finished transfer
readHttpDataAllReceive
{ "repo_name": "scalatra/netty-extension", "path": "src/main/java/org/jboss/netty/example/http/upload/HttpRequestHandler.java", "license": "lgpl-3.0", "size": 22222 }
[ "java.util.List", "org.jboss.netty.channel.Channel", "org.jboss.netty.channel.Channels", "org.jboss.netty.handler.codec.http2.HttpPostRequestDecoder", "org.jboss.netty.handler.codec.http2.InterfaceHttpData" ]
import java.util.List; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.Channels; import org.jboss.netty.handler.codec.http2.HttpPostRequestDecoder; import org.jboss.netty.handler.codec.http2.InterfaceHttpData;
import java.util.*; import org.jboss.netty.channel.*; import org.jboss.netty.handler.codec.http2.*;
[ "java.util", "org.jboss.netty" ]
java.util; org.jboss.netty;
2,766,888
public JEditorPane getEditorPane() { return htmlPane; } private class PrintAction extends AbstractAsynchronousAction { private DetailsFrame parent; public PrintAction(String name, DetailsFrame parent) { super(name); ...
JEditorPane function() { return htmlPane; } private class PrintAction extends AbstractAsynchronousAction { private DetailsFrame parent; public PrintAction(String name, DetailsFrame parent) { super(name); this.parent = parent; }
/** * Get the editor pane being displayed by this dialog * * @return The editor pane for the dialog */
Get the editor pane being displayed by this dialog
getEditorPane
{ "repo_name": "madebyjeffrey/TerraJ", "path": "src/main/java/com/alvermont/terraj/stargen/ui/PrintHTMLDialog.java", "license": "gpl-2.0", "size": 8550 }
[ "com.meghnasoft.async.AbstractAsynchronousAction", "javax.swing.JEditorPane" ]
import com.meghnasoft.async.AbstractAsynchronousAction; import javax.swing.JEditorPane;
import com.meghnasoft.async.*; import javax.swing.*;
[ "com.meghnasoft.async", "javax.swing" ]
com.meghnasoft.async; javax.swing;
252,536
@Nonnull public static ComponentBuilder trans(@Nonnull LangKey key, @Nonnull Locale loc) { return trans(key, loc, new Object[0]); }
static ComponentBuilder function(@Nonnull LangKey key, @Nonnull Locale loc) { return trans(key, loc, new Object[0]); }
/** * Creates an ComponentBuilder based on that LangKey<br> * Allows to specify a locale that should be used to translate * * @param key the lang key that should be translated * @param loc the locale that should be used to translate the key * @return the created component builder */
Creates an ComponentBuilder based on that LangKey Allows to specify a locale that should be used to translate
trans
{ "repo_name": "MiniDigger/VoxelGamesLib", "path": "api/src/main/java/me/minidigger/voxelgameslib/api/lang/Lang.java", "license": "mit", "size": 8784 }
[ "javax.annotation.Nonnull", "me.minidigger.voxelgameslib.libs.net.md_5.bungee.api.chat.ComponentBuilder" ]
import javax.annotation.Nonnull; import me.minidigger.voxelgameslib.libs.net.md_5.bungee.api.chat.ComponentBuilder;
import javax.annotation.*; import me.minidigger.voxelgameslib.libs.net.md_5.bungee.api.chat.*;
[ "javax.annotation", "me.minidigger.voxelgameslib" ]
javax.annotation; me.minidigger.voxelgameslib;
1,058,102
public void putQueryCacheChunk(String sql, Object []args, int startRow, ResultSetCacheChunk cacheChunk, ResultSetMetaData cacheMetaData) { QueryCacheKey key = new QueryCacheKey(); ...
void function(String sql, Object []args, int startRow, ResultSetCacheChunk cacheChunk, ResultSetMetaData cacheMetaData) { QueryCacheKey key = new QueryCacheKey(); Object []newArgs = new Object[args.length]; System.arraycopy(args, 0, newArgs, 0, args.length); key.init(sql, newArgs, startRow); _persistenceUnit.putQueryCh...
/** * Sets the cache chunk. * * @param sql the SQL for the cache chunk * @param args the filled parameters for the cache chunk * @param startRow the starting row for the cache chunk * @param cacheChunk the new value of the cache chunk */
Sets the cache chunk
putQueryCacheChunk
{ "repo_name": "mdaniel/svn-caucho-com-resin", "path": "modules/resin/src/com/caucho/amber/manager/AmberConnection.java", "license": "gpl-2.0", "size": 89822 }
[ "com.caucho.amber.query.QueryCacheKey", "com.caucho.amber.query.ResultSetCacheChunk", "java.sql.ResultSetMetaData" ]
import com.caucho.amber.query.QueryCacheKey; import com.caucho.amber.query.ResultSetCacheChunk; import java.sql.ResultSetMetaData;
import com.caucho.amber.query.*; import java.sql.*;
[ "com.caucho.amber", "java.sql" ]
com.caucho.amber; java.sql;
2,569,564
TaskQuery dueBefore(Date dueDate);
TaskQuery dueBefore(Date dueDate);
/** * Only select tasks which have a due date before the given date. */
Only select tasks which have a due date before the given date
dueBefore
{ "repo_name": "springvelocity/xbpm5", "path": "activiti-engine/src/main/java/org/activiti/engine/task/TaskQuery.java", "license": "apache-2.0", "size": 11281 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
786,962
private List<SbObj> getAllRoutes(final int[] routeIds, final int[] allowedWdmArray) throws Exception { final CidsServerSearch search = new AllGewBySb(routeIds, allowedWdmArray); final User user = SessionManager.getSession().getUser(); final ArrayList<ArrayList> attributes = (ArrayList<ArrayL...
List<SbObj> function(final int[] routeIds, final int[] allowedWdmArray) throws Exception { final CidsServerSearch search = new AllGewBySb(routeIds, allowedWdmArray); final User user = SessionManager.getSession().getUser(); final ArrayList<ArrayList> attributes = (ArrayList<ArrayList>)SessionManager.getProxy() .customSe...
/** * DOCUMENT ME! * * @param routeIds DOCUMENT ME! * @param allowedWdmArray DOCUMENT ME! * * @return DOCUMENT ME! * * @throws Exception DOCUMENT ME! */
DOCUMENT ME
getAllRoutes
{ "repo_name": "cismet/watergis-client", "path": "src/main/java/de/cismet/watergis/reports/SbHelper.java", "license": "lgpl-3.0", "size": 18698 }
[ "de.cismet.cids.custom.watergis.server.search.AllGewBySb", "de.cismet.cids.server.search.CidsServerSearch", "de.cismet.watergis.reports.types.SbObj", "java.util.ArrayList", "java.util.List" ]
import de.cismet.cids.custom.watergis.server.search.AllGewBySb; import de.cismet.cids.server.search.CidsServerSearch; import de.cismet.watergis.reports.types.SbObj; import java.util.ArrayList; import java.util.List;
import de.cismet.cids.custom.watergis.server.search.*; import de.cismet.cids.server.search.*; import de.cismet.watergis.reports.types.*; import java.util.*;
[ "de.cismet.cids", "de.cismet.watergis", "java.util" ]
de.cismet.cids; de.cismet.watergis; java.util;
384,048
private void recursion(SequentialPattern prefix, List<PseudoSequence> database, int k) throws IOException { // find frequent items of size 1 in the current projected database. Set<Pair> pairs = findAllFrequentPairs(database); // For each pair found (a pair is an item with a boolean indicating if it /...
void function(SequentialPattern prefix, List<PseudoSequence> database, int k) throws IOException { Set<Pair> pairs = findAllFrequentPairs(database); for(Pair pair : pairs){ if(pair.getCount() >= minsuppRelative){ SequentialPattern newPrefix; if(pair.isPostfix()){ newPrefix = appendItemToPrefixOfSequence(prefix, pair.ge...
/** * Method to recursively grow a given sequential pattern. * @param prefix the current sequential pattern that we want to try to grow * @param database the current projected sequence database * @param k the prefix length in terms of items * @throws IOException exception if there is an error writing t...
Method to recursively grow a given sequential pattern
recursion
{ "repo_name": "matheusmmcs/SPMF-UseSkill", "path": "src/ca/pfv/spmf/algorithms/sequentialpatterns/BIDE_and_prefixspan/AlgoFSGP.java", "license": "mit", "size": 29993 }
[ "ca.pfv.spmf.tools.MemoryLogger", "java.io.IOException", "java.util.List", "java.util.Set" ]
import ca.pfv.spmf.tools.MemoryLogger; import java.io.IOException; import java.util.List; import java.util.Set;
import ca.pfv.spmf.tools.*; import java.io.*; import java.util.*;
[ "ca.pfv.spmf", "java.io", "java.util" ]
ca.pfv.spmf; java.io; java.util;
1,206,342
public void setAfpSet(List<AFP> afpSet) { this.afpSet = afpSet; }
void function(List<AFP> afpSet) { this.afpSet = afpSet; }
/** * Set the set of AFPs for this alignment. * An AFP is a local ungapped alignment between the two peptides. * * AFPs are set before the final optimization step. To get the final * alignment, look at the aligned pairs from {@link #getOptAln()}. */
Set the set of AFPs for this alignment. An AFP is a local ungapped alignment between the two peptides. AFPs are set before the final optimization step. To get the final alignment, look at the aligned pairs from <code>#getOptAln()</code>
setAfpSet
{ "repo_name": "biojava/biojava", "path": "biojava-structure/src/main/java/org/biojava/nbio/structure/align/model/AFPChain.java", "license": "lgpl-2.1", "size": 30001 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,321,567
public Border createTitleBorder(String titleId, Object... args) { return new TitledBorder(' ' + textResource.getString(titleId, args) + ' '); }
Border function(String titleId, Object... args) { return new TitledBorder(' ' + textResource.getString(titleId, args) + ' '); }
/** * Creates a title border for the specified title. * @param titleId the id of the title * @param args the arguments * @return the title border */
Creates a title border for the specified title
createTitleBorder
{ "repo_name": "gogognome/gogoswing", "path": "src/main/java/nl/gogognome/lib/swing/WidgetFactory.java", "license": "apache-2.0", "size": 16011 }
[ "javax.swing.border.Border", "javax.swing.border.TitledBorder" ]
import javax.swing.border.Border; import javax.swing.border.TitledBorder;
import javax.swing.border.*;
[ "javax.swing" ]
javax.swing;
1,070,407
if (origin == null) { return null; } String host = origin.split(APIMgtConstants.WEB_PROTOCOL_SUFFIX)[1]; List<String> allowedOrigins = APIMConfigurationService.getInstance().getEnvironmentConfigurations() .getAllowedHosts(); if (allowedOrigins.contains(APIMgt...
if (origin == null) { return null; } String host = origin.split(APIMgtConstants.WEB_PROTOCOL_SUFFIX)[1]; List<String> allowedOrigins = APIMConfigurationService.getInstance().getEnvironmentConfigurations() .getAllowedHosts(); if (allowedOrigins.contains(APIMgtConstants.CORSAllowOriginConstants.ALLOW_ALL_ORIGINS) allowed...
/** * Check for allowed origin list from configurations and return origin if exists * * @param origin Origin to check with the allowed origin list * @return origin or null */
Check for allowed origin list from configurations and return origin if exists
getAllowedOrigin
{ "repo_name": "Minoli/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.core/src/main/java/org/wso2/carbon/apimgt/core/util/EnvironmentUtils.java", "license": "apache-2.0", "size": 1051 }
[ "java.util.List", "org.wso2.carbon.apimgt.core.configuration.APIMConfigurationService" ]
import java.util.List; import org.wso2.carbon.apimgt.core.configuration.APIMConfigurationService;
import java.util.*; import org.wso2.carbon.apimgt.core.configuration.*;
[ "java.util", "org.wso2.carbon" ]
java.util; org.wso2.carbon;
1,274,812
public String getMessageFolderRepoPath(Integer id) throws IOException { return getRepositoryService().getRepoPath(getMessageRepoFolder(id)); }
String function(Integer id) throws IOException { return getRepositoryService().getRepoPath(getMessageRepoFolder(id)); }
/** * Returns the repository URI for the message folder * @param id the id of the message * @return the associated repository URI */
Returns the repository URI for the message folder
getMessageFolderRepoPath
{ "repo_name": "dma-dk/MsiProxy", "path": "msiproxy-common/src/main/java/dk/dma/msiproxy/common/provider/AbstractProviderService.java", "license": "apache-2.0", "size": 14664 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
246,424
public void save( LanguageFile langFile ) throws IOException { File file = new File( root, langFile.getFilename() ); if (!file.exists()) { Properties prop = new Properties(); for (LanguageFile.KeyValuePair pair : langFile.getPairs()) prop.put( pair...
void function( LanguageFile langFile ) throws IOException { File file = new File( root, langFile.getFilename() ); if (!file.exists()) { Properties prop = new Properties(); for (LanguageFile.KeyValuePair pair : langFile.getPairs()) prop.put( pair.getKey(), pair.getValue() ); OutputStream outputStream = null; try { outpu...
/** * Writes the specified LanguageFile to the source tree. */
Writes the specified LanguageFile to the source tree
save
{ "repo_name": "marcokrikke/excelbundle", "path": "src/main/java/senselogic/excelbundle/LanguageTreeIO.java", "license": "apache-2.0", "size": 11956 }
[ "java.io.BufferedOutputStream", "java.io.BufferedReader", "java.io.File", "java.io.FileInputStream", "java.io.FileOutputStream", "java.io.IOException", "java.io.InputStreamReader", "java.io.OutputStream", "java.io.PrintStream", "java.util.ArrayList", "java.util.LinkedHashMap", "java.util.List"...
import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintStream; import java.util.ArrayList; import java.util.Li...
import java.io.*; import java.util.*; import java.util.regex.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,482,281
List<String> resolve(Context context, List<String> expressions); } final static class WildcardExpressionResolver implements ExpressionResolver {
List<String> resolve(Context context, List<String> expressions); } final static class WildcardExpressionResolver implements ExpressionResolver {
/** * Resolves the list of expressions into other expressions if possible (possible concrete indices and aliases, but * that isn't required). The provided implementations can also be left untouched. * * @return a new list with expressions based on the provided expressions */
Resolves the list of expressions into other expressions if possible (possible concrete indices and aliases, but that isn't required). The provided implementations can also be left untouched
resolve
{ "repo_name": "PhaedrusTheGreek/elasticsearch", "path": "core/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java", "license": "apache-2.0", "size": 40693 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
180,893
public void setMasterService(MasterService masterService) { this.masterService = masterService; }
void function(MasterService masterService) { this.masterService = masterService; }
/** * Set MasterService * * @param MasterService */
Set MasterService
setMasterService
{ "repo_name": "MarvinHsu/EASJavaJSFTemplate", "path": "EASJavaJSFTemplate/src/main/java/com/hsuforum/easjavatemplate/web/jsf/managed/detail/DetailManagedBean.java", "license": "apache-2.0", "size": 6666 }
[ "com.hsuforum.easjavatemplate.service.MasterService" ]
import com.hsuforum.easjavatemplate.service.MasterService;
import com.hsuforum.easjavatemplate.service.*;
[ "com.hsuforum.easjavatemplate" ]
com.hsuforum.easjavatemplate;
2,602,823
public static ImageDescriptor getImageDescriptor(final String path) { return imageDescriptorFromPlugin(PLUGIN_ID, path); }
static ImageDescriptor function(final String path) { return imageDescriptorFromPlugin(PLUGIN_ID, path); }
/** * Returns an image descriptor for the image file at the given * plug-in relative path * * @param path the path * @return the image descriptor */
Returns an image descriptor for the image file at the given plug-in relative path
getImageDescriptor
{ "repo_name": "theanuradha/debrief", "path": "org.mwc.debrief.data_feed/src/org/mwc/debrief/data_feed/DataFeedActivator.java", "license": "epl-1.0", "size": 2007 }
[ "org.eclipse.jface.resource.ImageDescriptor" ]
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
113,450
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<ResourceProviderOperationInner>> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<ResourceProviderOperationInner>> function(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException(STR)); } if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } final String acc...
/** * Get the next page of items. * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked excepti...
Get the next page of items
listNextSinglePageAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/OperationsClientImpl.java", "license": "mit", "size": 12601 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedResponse", "com.azure.core.http.rest.PagedResponseBase", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.desktopvirtualization.fluent.models.ResourceProviderOperationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.desktopvirtualization.fluent.models.ResourceProviderOperati...
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.desktopvirtualization.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,240,151
private static void makePartialVectors(Path input, Configuration baseConf, int maxNGramSize, Path dictionaryFilePath, Path output, ...
static void function(Path input, Configuration baseConf, int maxNGramSize, Path dictionaryFilePath, Path output, int dimension, boolean sequentialAccess, boolean namedVectors, int numReducers) throws IOException, InterruptedException, ClassNotFoundException { Configuration conf = new Configuration(baseConf); conf.set(S...
/** * Create a partial vector using a chunk of features from the input documents. The input documents has to be * in the {@link SequenceFile} format * * @param input * input directory of the documents in {@link SequenceFile} format * @param baseConf * job configuration * @para...
Create a partial vector using a chunk of features from the input documents. The input documents has to be in the <code>SequenceFile</code> format
makePartialVectors
{ "repo_name": "saradelrio/Chi-FRBCS-BigDataCS", "path": "src/org/apache/mahout/vectorizer/DictionaryVectorizer.java", "license": "apache-2.0", "size": 16750 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.filecache.DistributedCache", "org.apache.hadoop.fs.Path", "org.apache.hadoop.io.Text", "org.apache.hadoop.mapreduce.Job", "org.apache.hadoop.mapreduce.Mapper", "org.apache.hadoop.mapreduce.lib.input.FileInputFormat", "...
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.filecache.DistributedCache; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.mapreduce.Mapper; import org.apache.hadoop.mapreduce.lib.inpu...
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.filecache.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.io.*; import org.apache.hadoop.mapreduce.*; import org.apache.hadoop.mapreduce.lib.input.*; import org.apache.hadoop.mapreduce.lib.output.*; import org.apache.mahout.common.*;...
[ "java.io", "org.apache.hadoop", "org.apache.mahout" ]
java.io; org.apache.hadoop; org.apache.mahout;
772,571
public FeatureCursor queryFeaturesForChunk(String[] columns, String orderBy, int limit, long offset) { return featureDao.queryInForChunk(columns, queryIdsSQL(), orderBy, limit, offset); }
FeatureCursor function(String[] columns, String orderBy, int limit, long offset) { return featureDao.queryInForChunk(columns, queryIdsSQL(), orderBy, limit, offset); }
/** * Query for all features, starting at the offset and returning no more than * the limit * * @param columns columns * @param orderBy order by * @param limit chunk limit * @param offset chunk query offset * @return feature cursor * @since 6.2.0 */
Query for all features, starting at the offset and returning no more than the limit
queryFeaturesForChunk
{ "repo_name": "ngageoint/geopackage-android", "path": "geopackage-sdk/src/main/java/mil/nga/geopackage/extension/nga/index/FeatureTableIndex.java", "license": "mit", "size": 276322 }
[ "mil.nga.geopackage.features.user.FeatureCursor" ]
import mil.nga.geopackage.features.user.FeatureCursor;
import mil.nga.geopackage.features.user.*;
[ "mil.nga.geopackage" ]
mil.nga.geopackage;
347,127
public void startMonitoring(OnStateChangedListener listener) throws RcsException { assertAlive(); if (listener == null) { throw new NullPointerException("listener is null."); } nativeStartMonitoring(listener); }
void function(OnStateChangedListener listener) throws RcsException { assertAlive(); if (listener == null) { throw new NullPointerException(STR); } nativeStartMonitoring(listener); }
/** * Starts monitoring the resource. * <p> * Monitoring provides a feature to check the presence of a resource, even * when the server is not announcing Presence using startPresnece. * * @param listener * the listener to receive new state. * * @throws NullPointer...
Starts monitoring the resource. Monitoring provides a feature to check the presence of a resource, even when the server is not announcing Presence using startPresnece
startMonitoring
{ "repo_name": "iotivity/iotivity", "path": "service/resource-encapsulation/android/service/src/main/java/org/iotivity/service/client/RcsRemoteResourceObject.java", "license": "apache-2.0", "size": 17507 }
[ "org.iotivity.service.RcsException" ]
import org.iotivity.service.RcsException;
import org.iotivity.service.*;
[ "org.iotivity.service" ]
org.iotivity.service;
1,305,444
public void setCurrentSRA(URL coordinatorUrl) { try { init(coordinatorUrl); } catch (URISyntaxException e) { throw new GenericSRAException(coordinatorUrl, Response.Status.BAD_REQUEST.getStatusCode(), e.getMessage(), e); } }
void function(URL coordinatorUrl) { try { init(coordinatorUrl); } catch (URISyntaxException e) { throw new GenericSRAException(coordinatorUrl, Response.Status.BAD_REQUEST.getStatusCode(), e.getMessage(), e); } }
/** * Update the clients notion of the current coordinator. Warning all further operations will be performed * on the SRA manager that created the passed in coordinator. * * @param coordinatorUrl the full url of an SRA */
Update the clients notion of the current coordinator. Warning all further operations will be performed on the SRA manager that created the passed in coordinator
setCurrentSRA
{ "repo_name": "gytis/narayana", "path": "rts/sra/src/main/java/io/narayana/sra/client/SRAClient.java", "license": "lgpl-2.1", "size": 26409 }
[ "io.narayana.sra.annotation.Status", "java.net.URISyntaxException", "javax.ws.rs.core.Response" ]
import io.narayana.sra.annotation.Status; import java.net.URISyntaxException; import javax.ws.rs.core.Response;
import io.narayana.sra.annotation.*; import java.net.*; import javax.ws.rs.core.*;
[ "io.narayana.sra", "java.net", "javax.ws" ]
io.narayana.sra; java.net; javax.ws;
2,831,796
public boolean isFilesExist(File destination) { initFileNames(destination); return androidFile.exists() || iosHFile.exists() || iosMFile.exists() || csFile.exists() || javaseFile.exists() || jsFile.exists(); }
boolean function(File destination) { initFileNames(destination); return androidFile.exists() iosHFile.exists() iosMFile.exists() csFile.exists() javaseFile.exists() jsFile.exists(); }
/** * Returns true if native files might need overwriting */
Returns true if native files might need overwriting
isFilesExist
{ "repo_name": "codenameone/CodenameOne", "path": "maven/codenameone-maven-plugin/src/main/java/com/codename1/maven/StubGenerator.java", "license": "gpl-2.0", "size": 21774 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
713,058
public int getIntInput(String s, String cur) { String input = JOptionPane.showInputDialog(s, cur); if (input == null) return -1; else return Integer.parseInt(input); }
int function(String s, String cur) { String input = JOptionPane.showInputDialog(s, cur); if (input == null) return -1; else return Integer.parseInt(input); }
/** * It displays a JOptionPane.showInputDialog on top of the view's frame * asking an integer. The request message and current value are provided as * arguments. * * @param s * the message that is been displayed to the screen. * @param cur * the current value that the variable, t...
It displays a JOptionPane.showInputDialog on top of the view's frame asking an integer. The request message and current value are provided as arguments
getIntInput
{ "repo_name": "cal-r/sscctd", "path": "src/simulator/SimView.java", "license": "mpl-2.0", "size": 82038 }
[ "javax.swing.JOptionPane" ]
import javax.swing.JOptionPane;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,729,279
public void renderImage(Graphics2D g, final Image image, double x, double y) { renderImage(g, image, new Point2D.Double(x, y)); }
void function(Graphics2D g, final Image image, double x, double y) { renderImage(g, image, new Point2D.Double(x, y)); }
/** * Renders the specified image at the defined map location. * * @param g * The graphics object to render on. * @param image * The image to be rendered. * @param x * The x-coordinate of the image. * @param y * The y-coordinate of the image */
Renders the specified image at the defined map location
renderImage
{ "repo_name": "gurkenlabs/litiengine", "path": "core/src/main/java/de/gurkenlabs/litiengine/graphics/RenderEngine.java", "license": "mit", "size": 21096 }
[ "java.awt.Graphics2D", "java.awt.Image", "java.awt.geom.Point2D" ]
import java.awt.Graphics2D; import java.awt.Image; import java.awt.geom.Point2D;
import java.awt.*; import java.awt.geom.*;
[ "java.awt" ]
java.awt;
2,184,529
public void test_ValidateSerialGatewaySenderAttributes() { cache = new CacheFactory().create(); GatewaySenderFactory fact = cache.createGatewaySenderFactory(); fact.setManualStart(true); fact.setBatchConflationEnabled(true); fact.setBatchSize(200); fact.setBatchTimeInterval(300); fact.setP...
void function() { cache = new CacheFactory().create(); GatewaySenderFactory fact = cache.createGatewaySenderFactory(); fact.setManualStart(true); fact.setBatchConflationEnabled(true); fact.setBatchSize(200); fact.setBatchTimeInterval(300); fact.setPersistenceEnabled(false); fact.setDiskStoreName("FORNY"); fact.setMaxim...
/** * Test to validate that serial gateway sender attributes are correctly set * * @throws IOException */
Test to validate that serial gateway sender attributes are correctly set
test_ValidateSerialGatewaySenderAttributes
{ "repo_name": "gemxd/gemfirexd-oss", "path": "tests/core/src/main/java/com/gemstone/gemfire/internal/cache/wan/misc/WANConfigurationJUnitTest.java", "license": "apache-2.0", "size": 19442 }
[ "com.gemstone.gemfire.cache.AttributesFactory", "com.gemstone.gemfire.cache.CacheFactory", "com.gemstone.gemfire.cache.DataPolicy", "com.gemstone.gemfire.cache.Region", "com.gemstone.gemfire.cache.wan.GatewayEventFilter", "com.gemstone.gemfire.cache.wan.GatewaySender", "com.gemstone.gemfire.cache.wan.Ga...
import com.gemstone.gemfire.cache.AttributesFactory; import com.gemstone.gemfire.cache.CacheFactory; import com.gemstone.gemfire.cache.DataPolicy; import com.gemstone.gemfire.cache.Region; import com.gemstone.gemfire.cache.wan.GatewayEventFilter; import com.gemstone.gemfire.cache.wan.GatewaySender; import com.gemstone....
import com.gemstone.gemfire.cache.*; import com.gemstone.gemfire.cache.wan.*; import com.gemstone.gemfire.cache30.*; import java.util.*;
[ "com.gemstone.gemfire", "java.util" ]
com.gemstone.gemfire; java.util;
690,576
@Test public final void testGenerateByteArrayNullData() { // Setup the resources for the test. TestXBeePacket packet = new TestXBeePacket(); byte[] expectedByteArray = new byte[] {(byte)SpecialByte.HEADER_BYTE.getValue(), 0x00, 0x00,(byte)0xFF}; // Call the method under test. byte[] data = packet.generat...
final void function() { TestXBeePacket packet = new TestXBeePacket(); byte[] expectedByteArray = new byte[] {(byte)SpecialByte.HEADER_BYTE.getValue(), 0x00, 0x00,(byte)0xFF}; byte[] data = packet.generateByteArray(); assertThat(STR, data, is(not(equalTo(null)))); assertThat(STR, data.length, is(equalTo(expectedByteArra...
/** * Test method for {@link com.digi.xbee.api.packet.XBeePacket#generateByteArray()}. * * <p>Test the generate byte array method with null data.</p> */
Test method for <code>com.digi.xbee.api.packet.XBeePacket#generateByteArray()</code>. Test the generate byte array method with null data
testGenerateByteArrayNullData
{ "repo_name": "brucetsao/XBeeJavaLibrary", "path": "library/src/test/java/com/digi/xbee/api/packet/XBeePacketTest.java", "license": "mpl-2.0", "size": 37896 }
[ "com.digi.xbee.api.models.SpecialByte", "org.hamcrest.core.Is", "org.junit.Assert" ]
import com.digi.xbee.api.models.SpecialByte; import org.hamcrest.core.Is; import org.junit.Assert;
import com.digi.xbee.api.models.*; import org.hamcrest.core.*; import org.junit.*;
[ "com.digi.xbee", "org.hamcrest.core", "org.junit" ]
com.digi.xbee; org.hamcrest.core; org.junit;
105,868
public ViewPropertyAnimatorCompat translationXBy(float value) { View view; if ((view = mView.get()) != null) { IMPL.translationXBy(this, view, value); } return this; }
ViewPropertyAnimatorCompat function(float value) { View view; if ((view = mView.get()) != null) { IMPL.translationXBy(this, view, value); } return this; }
/** * This method will cause the View's <code>translationX</code> property to be animated by the * specified value. Animations already running on the property will be canceled. * * <p>Prior to API 14, this method will do nothing.</p> * * @param value The amount to be animated by, as an off...
This method will cause the View's <code>translationX</code> property to be animated by the specified value. Animations already running on the property will be canceled. Prior to API 14, this method will do nothing
translationXBy
{ "repo_name": "kingargyle/adt-leanback-support", "path": "support-v4/src/main/java/android/support/v4/view/ViewPropertyAnimatorCompat.java", "license": "apache-2.0", "size": 46989 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,718,872
public static boolean isInstalledThroughPlayStore(final Context context) { final PackageManager packageManager = context.getPackageManager(); final String packageInstallerName = packageManager.getInstallerPackageName(getPackageName(context)); if ("com.android.vending".equals(packageInstaller...
static boolean function(final Context context) { final PackageManager packageManager = context.getPackageManager(); final String packageInstallerName = packageManager.getInstallerPackageName(getPackageName(context)); if (STR.equals(packageInstallerName)) { return true; } return false; }
/** * Check whether the application is installed through the Play Store. * * @param context Context * @return true when the app is installed through the Play store, otherwise false */
Check whether the application is installed through the Play Store
isInstalledThroughPlayStore
{ "repo_name": "appfoundry/devoxx-2013-android-app-security", "path": "TamperDetectionProject/TamperDetection/src/main/java/be/idamf/android/tamperdetection/util/TamperDetectionUtils.java", "license": "apache-2.0", "size": 8732 }
[ "android.content.Context", "android.content.pm.PackageManager" ]
import android.content.Context; import android.content.pm.PackageManager;
import android.content.*; import android.content.pm.*;
[ "android.content" ]
android.content;
1,417,371
public final void registerCloseable(C closeable) throws IOException { if (null == closeable) { return; } synchronized (getSynchronizationLock()) { if (!closed) { doRegister(closeable, closeableToRef); return; } } ...
final void function(C closeable) throws IOException { if (null == closeable) { return; } synchronized (getSynchronizationLock()) { if (!closed) { doRegister(closeable, closeableToRef); return; } } IOUtils.closeQuietly(closeable); throw new IOException( STR); }
/** * Registers a {@link Closeable} with the registry. In case the registry is already closed, this * method throws an {@link IllegalStateException} and closes the passed {@link Closeable}. * * @param closeable Closeable tor register * @throws IOException exception when the registry was closed ...
Registers a <code>Closeable</code> with the registry. In case the registry is already closed, this method throws an <code>IllegalStateException</code> and closes the passed <code>Closeable</code>
registerCloseable
{ "repo_name": "clarkyzl/flink", "path": "flink-core/src/main/java/org/apache/flink/util/AbstractCloseableRegistry.java", "license": "apache-2.0", "size": 6112 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,086,100
private void makeListAbsoluteProject(List<String> list) { List<String> replace = new LinkedList<String>(); for (String fileName : list) { fileName = convertToAbsolute(fileName); replace.add(fileName); } list.clear(); list.addAll(replace); }
void function(List<String> list) { List<String> replace = new LinkedList<String>(); for (String fileName : list) { fileName = convertToAbsolute(fileName); replace.add(fileName); } list.clear(); list.addAll(replace); }
/** * Make the given list of pathnames absolute relative to the absolute path * of the project file. */
Make the given list of pathnames absolute relative to the absolute path of the project file
makeListAbsoluteProject
{ "repo_name": "jesusaplsoft/FindAllBugs", "path": "findbugs/src/java/edu/umd/cs/findbugs/Project.java", "license": "gpl-2.0", "size": 38363 }
[ "java.util.LinkedList", "java.util.List" ]
import java.util.LinkedList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
796,913
public static <E> ImmutableSortedMultiset<E> copyOf( Comparator<? super E> comparator, Iterator<? extends E> elements) { checkNotNull(comparator); return copyOfInternal(comparator, elements); }
static <E> ImmutableSortedMultiset<E> function( Comparator<? super E> comparator, Iterator<? extends E> elements) { checkNotNull(comparator); return copyOfInternal(comparator, elements); }
/** * Returns an immutable sorted multiset containing the given elements sorted by the given {@code * Comparator}. * * @throws NullPointerException if {@code comparator} or any of {@code elements} is null */
Returns an immutable sorted multiset containing the given elements sorted by the given Comparator
copyOf
{ "repo_name": "hceylan/guava", "path": "guava/src/com/google/common/collect/ImmutableSortedMultiset.java", "license": "apache-2.0", "size": 23011 }
[ "com.google.common.base.Preconditions", "java.util.Comparator", "java.util.Iterator" ]
import com.google.common.base.Preconditions; import java.util.Comparator; import java.util.Iterator;
import com.google.common.base.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
1,652,319
//------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF public static VarianceSwapLeg.Meta meta() { return VarianceSwapLeg.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(VarianceSwapLeg.Meta.INSTANCE); }
static VarianceSwapLeg.Meta function() { return VarianceSwapLeg.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(VarianceSwapLeg.Meta.INSTANCE); }
/** * The meta-bean for {@code VarianceSwapLeg}. * @return the meta-bean, not null */
The meta-bean for VarianceSwapLeg
meta
{ "repo_name": "McLeodMoores/starling", "path": "projects/financial-types/src/main/java/com/opengamma/financial/security/swap/VarianceSwapLeg.java", "license": "apache-2.0", "size": 4003 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
1,257,450
private final Runnable mSetFrontShutterRunnable = new Runnable() { @Override public void run() { mFlashView.setBackgroundColor(getResources().getColor(android.R.color.black)); mFlashView.setVisibility(View.VISIBLE); } };
final Runnable mSetFrontShutterRunnable = new Runnable() { public void function() { mFlashView.setBackgroundColor(getResources().getColor(android.R.color.black)); mFlashView.setVisibility(View.VISIBLE); } };
/** * Blackout the screen, like a shutter snap */
Blackout the screen, like a shutter snap
run
{ "repo_name": "AEFeinstein/Selfr", "path": "app/src/main/java/com/gelakinetic/selfr/CameraActivity.java", "license": "gpl-2.0", "size": 40435 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
3,273
public int[] getPorts(boolean includeExternal) { int len = publicAds.length + privateAds.length; if (includeExternal) { len += externalAds.length; } int[] result = new int[len]; int index = 0; for (InetSocketAddress i : publicAds) { result...
int[] function(boolean includeExternal) { int len = publicAds.length + privateAds.length; if (includeExternal) { len += externalAds.length; } int[] result = new int[len]; int index = 0; for (InetSocketAddress i : publicAds) { result[index++] = i.getPort(); } for (InetSocketAddress i : privateAds) { result[index++] = i....
/** * Return the port numbers used in this DirectSocketAddress. * * @param includeExternal * should external (NAT) addresses be included ? * @return the port numbers used in this DirectSocketAddress. */
Return the port numbers used in this DirectSocketAddress
getPorts
{ "repo_name": "kastur/interdroid-smartsockets", "path": "src/ibis/smartsockets/direct/DirectSocketAddress.java", "license": "bsd-3-clause", "size": 47420 }
[ "java.net.InetSocketAddress" ]
import java.net.InetSocketAddress;
import java.net.*;
[ "java.net" ]
java.net;
283,067
public LargeSet getLargeSet(Policy policy, Key key, String binName, String userModule);
LargeSet function(Policy policy, Key key, String binName, String userModule);
/** * Initialize large set operator. This operator can be used to create and manage a set * within a single bin. * <p> * This method is only supported by Aerospike 3 servers. * * @deprecated Use {@link #getLargeSet(WritePolicy policy, Key key, String binName, String userModule)} instead. * @param poli...
Initialize large set operator. This operator can be used to create and manage a set within a single bin. This method is only supported by Aerospike 3 servers
getLargeSet
{ "repo_name": "wgpshashank/aerospike-client-java", "path": "client/src/com/aerospike/client/IAerospikeClient.java", "license": "apache-2.0", "size": 41552 }
[ "com.aerospike.client.large.LargeSet", "com.aerospike.client.policy.Policy" ]
import com.aerospike.client.large.LargeSet; import com.aerospike.client.policy.Policy;
import com.aerospike.client.large.*; import com.aerospike.client.policy.*;
[ "com.aerospike.client" ]
com.aerospike.client;
1,984,747
Attribute fillAttribute(PerunSessionImpl perunSession, Facility facility, AttributeDefinition attribute);
Attribute fillAttribute(PerunSessionImpl perunSession, Facility facility, AttributeDefinition attribute);
/** * This method MAY fill an attribute at the specified resource. * * @param perunSession perun session * @param facility facility for which you want to check validity of attribute * @param attribute attribute to fill in * @return */
This method MAY fill an attribute at the specified resource
fillAttribute
{ "repo_name": "stavamichal/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/modules/attributes/FacilityAttributesModuleImplApi.java", "license": "bsd-2-clause", "size": 2999 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.AttributeDefinition", "cz.metacentrum.perun.core.api.Facility", "cz.metacentrum.perun.core.impl.PerunSessionImpl" ]
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.AttributeDefinition; import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.impl.PerunSessionImpl;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.impl.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
1,092,170
public static FloatBuffer createFloatBuffer(float[] coords) { // Allocate a direct ByteBuffer, using 4 bytes per float, and copy coords into it. ByteBuffer bb = ByteBuffer.allocateDirect(coords.length * SIZEOF_FLOAT); bb.order(ByteOrder.nativeOrder()); FloatBuffer fb = bb.asFloatBuff...
static FloatBuffer function(float[] coords) { ByteBuffer bb = ByteBuffer.allocateDirect(coords.length * SIZEOF_FLOAT); bb.order(ByteOrder.nativeOrder()); FloatBuffer fb = bb.asFloatBuffer(); fb.put(coords); fb.position(0); return fb; }
/** * Allocates a direct float buffer, and populates it with the float array data. */
Allocates a direct float buffer, and populates it with the float array data
createFloatBuffer
{ "repo_name": "wysaid/grafika", "path": "src/com/android/grafika/gles/GlUtil.java", "license": "apache-2.0", "size": 7034 }
[ "java.nio.ByteBuffer", "java.nio.ByteOrder", "java.nio.FloatBuffer" ]
import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
80,703
@Test public void testWithGlobalList() throws Exception { Scenario sc = new Scenario(); sc.getImports().addImport(new Import("java.util.List")); ArrayList testList = new ArrayList(); sc.getGlobals().add(new FactData("List", "testList", ...
void function() throws Exception { Scenario sc = new Scenario(); sc.getImports().addImport(new Import(STR)); ArrayList testList = new ArrayList(); sc.getGlobals().add(new FactData("List", STR, testList, false)); Expectation[] assertions = new Expectation[2]; assertions[0] = new VerifyFact(STR, ls(new VerifyField("empty...
/** * Check if global list is empty. */
Check if global list is empty
testWithGlobalList
{ "repo_name": "droolsjbpm/drools", "path": "drools-workbench-models/drools-workbench-models-test-scenarios/src/test/java/org/drools/workbench/models/testscenarios/backend/ScenarioRunnerTest.java", "license": "apache-2.0", "size": 37451 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List", "org.drools.workbench.models.testscenarios.shared.Expectation", "org.drools.workbench.models.testscenarios.shared.FactData", "org.drools.workbench.models.testscenarios.shared.Scenario", "org.drools.workbench.models.testscenarios.shared.VerifyF...
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.drools.workbench.models.testscenarios.shared.Expectation; import org.drools.workbench.models.testscenarios.shared.FactData; import org.drools.workbench.models.testscenarios.shared.Scenario; import org.drools.workbench.models.testscen...
import java.util.*; import org.drools.workbench.models.testscenarios.shared.*; import org.kie.soup.project.datamodel.imports.*; import org.mockito.*;
[ "java.util", "org.drools.workbench", "org.kie.soup", "org.mockito" ]
java.util; org.drools.workbench; org.kie.soup; org.mockito;
1,669,937
public static <T> Optional<T> before(String text, String before, Function<String, T> mapper) { String result = before(text, before); if (result == null) { return Optional.empty(); } else { return Optional.ofNullable(mapper.apply(result)); } }
static <T> Optional<T> function(String text, String before, Function<String, T> mapper) { String result = before(text, before); if (result == null) { return Optional.empty(); } else { return Optional.ofNullable(mapper.apply(result)); } }
/** * Returns an object before the given token * * @param text the text * @param before the token * @param mapper a mapping function to convert the string before the token to type T * @return an Optional describing the result of applying a mapping function to the text before the token. ...
Returns an object before the given token
before
{ "repo_name": "punkhorn/camel-upstream", "path": "core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java", "license": "apache-2.0", "size": 25966 }
[ "java.util.Optional", "java.util.function.Function" ]
import java.util.Optional; import java.util.function.Function;
import java.util.*; import java.util.function.*;
[ "java.util" ]
java.util;
1,216,321
public static OzoneException newError(OzoneException e, UserArgs args) { OzoneException err = new OzoneException(e.getHttpCode(), e.getShortMessage(), e.getMessage()); if (args != null) { err.setRequestId(args.getRequestID()); err.setResource(args.getResourceName...
static OzoneException function(OzoneException e, UserArgs args) { OzoneException err = new OzoneException(e.getHttpCode(), e.getShortMessage(), e.getMessage()); if (args != null) { err.setRequestId(args.getRequestID()); err.setResource(args.getResourceName()); err.setHostID(args.getHostName()); } return err; }
/** * Create new instance of Error. * * @param e - Error Template * @param args - Args * * @return Ozone Exception */
Create new instance of Error
newError
{ "repo_name": "xiao-chen/hadoop", "path": "hadoop-ozone/objectstore-service/src/main/java/org/apache/hadoop/ozone/web/exceptions/ErrorTable.java", "license": "apache-2.0", "size": 8566 }
[ "org.apache.hadoop.ozone.client.rest.OzoneException", "org.apache.hadoop.ozone.web.handlers.UserArgs" ]
import org.apache.hadoop.ozone.client.rest.OzoneException; import org.apache.hadoop.ozone.web.handlers.UserArgs;
import org.apache.hadoop.ozone.client.rest.*; import org.apache.hadoop.ozone.web.handlers.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,146,994
public Reference getReference() throws NamingException { String factoryName = "com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory"; Reference ref = new Reference(getClass().getName(), factoryName, null); ref.add(new StringRefAddr(NonRegisteringDriver.USER_PROPERTY_KEY, getUser())); ...
Reference function() throws NamingException { String factoryName = STR; Reference ref = new Reference(getClass().getName(), factoryName, null); ref.add(new StringRefAddr(NonRegisteringDriver.USER_PROPERTY_KEY, getUser())); ref.add(new StringRefAddr(NonRegisteringDriver.PASSWORD_PROPERTY_KEY, this.password)); ref.add(ne...
/** * Required method to support this class as a <CODE>Referenceable</CODE>. * * @return a Reference to this data source * * @throws NamingException * if a JNDI error occurs */
Required method to support this class as a <code>Referenceable</code>
getReference
{ "repo_name": "1fechner/FeatureExtractor", "path": "sources/FeatureExtractor/lib/mysql-connector-java-5.1.38/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java", "license": "lgpl-2.1", "size": 11507 }
[ "com.mysql.jdbc.NonRegisteringDriver", "java.sql.SQLException", "javax.naming.NamingException", "javax.naming.Reference", "javax.naming.StringRefAddr" ]
import com.mysql.jdbc.NonRegisteringDriver; import java.sql.SQLException; import javax.naming.NamingException; import javax.naming.Reference; import javax.naming.StringRefAddr;
import com.mysql.jdbc.*; import java.sql.*; import javax.naming.*;
[ "com.mysql.jdbc", "java.sql", "javax.naming" ]
com.mysql.jdbc; java.sql; javax.naming;
1,524,330
public void dropColumn(SQLColumn c) { startOfStatement(); print("<dropColumn "); print(getTableQualifier(c.getParent())); print(" columnName=\""); print(getName(c)); println("\"/>"); if (c.isAutoIncrement() && c.isAutoIncrementSequenceNameSet()) { print("<dropSequence sequenceName=\""); ...
void function(SQLColumn c) { startOfStatement(); print(STR); print(getTableQualifier(c.getParent())); print(STRSTR\"/>"); if (c.isAutoIncrement() && c.isAutoIncrementSequenceNameSet()) { print(STRSTR\"/>"); } endOfStatement(); endStatement(StatementType.XMLTAG, c); }
/** * Creates a <dropColumn> definition tag */
Creates a definition tag
dropColumn
{ "repo_name": "amitkr/power-architect", "path": "src/main/java/ca/sqlpower/architect/ddl/LiquibaseDDLGenerator.java", "license": "gpl-3.0", "size": 29092 }
[ "ca.sqlpower.architect.ddl.DDLStatement", "ca.sqlpower.sqlobject.SQLColumn" ]
import ca.sqlpower.architect.ddl.DDLStatement; import ca.sqlpower.sqlobject.SQLColumn;
import ca.sqlpower.architect.ddl.*; import ca.sqlpower.sqlobject.*;
[ "ca.sqlpower.architect", "ca.sqlpower.sqlobject" ]
ca.sqlpower.architect; ca.sqlpower.sqlobject;
555,386
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."> @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); ...
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
/** * Handles the HTTP <code>GET</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */
Handles the HTTP <code>GET</code> method
doGet
{ "repo_name": "Beroean/SQL_WEB_SERVLET", "path": "Holds/src/java/holds/Search.java", "license": "mit", "size": 6275 }
[ "java.io.IOException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
2,703,114
private boolean shouldUseWindowsSandbox(TriState requested, PathFragment binary) throws IOException { switch (requested) { case AUTO: return WindowsSandboxUtil.isAvailable(binary); case NO: return false; case YES: if (!WindowsSandboxUtil.isAvailable(binary)) { ...
boolean function(TriState requested, PathFragment binary) throws IOException { switch (requested) { case AUTO: return WindowsSandboxUtil.isAvailable(binary); case NO: return false; case YES: if (!WindowsSandboxUtil.isAvailable(binary)) { throw new IOException( STRSTR\STR); } return true; } throw new IllegalStateExcepti...
/** * Returns true if windows-sandbox should be used for this build. * * <p>Returns true if requested in ["auto", "yes"] and binary is valid. Throws an error if state * is "yes" and binary is not valid. * * @param requested whether windows-sandbox use was requested or not * @param binary path of th...
Returns true if windows-sandbox should be used for this build. Returns true if requested in ["auto", "yes"] and binary is valid. Throws an error if state is "yes" and binary is not valid
shouldUseWindowsSandbox
{ "repo_name": "ulfjack/bazel", "path": "src/main/java/com/google/devtools/build/lib/sandbox/SandboxModule.java", "license": "apache-2.0", "size": 24420 }
[ "com.google.devtools.build.lib.vfs.PathFragment", "com.google.devtools.common.options.TriState", "java.io.IOException" ]
import com.google.devtools.build.lib.vfs.PathFragment; import com.google.devtools.common.options.TriState; import java.io.IOException;
import com.google.devtools.build.lib.vfs.*; import com.google.devtools.common.options.*; import java.io.*;
[ "com.google.devtools", "java.io" ]
com.google.devtools; java.io;
2,169,990
public Observable<ServiceResponse<Page<PrivateLinkHubInner>>> listSinglePageAsync() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) ...
Observable<ServiceResponse<Page<PrivateLinkHubInner>>> function() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException(STR); }
/** * Returns a list of privateLinkHubs in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;PrivateLinkHubInner&gt; object wrapped in {@link ServiceResponse} if successful. */
Returns a list of privateLinkHubs in a subscription
listSinglePageAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/PrivateLinkHubsInner.java", "license": "mit", "size": 57290 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
1,859,682
public boolean getUpdateContent() { return ProtocolInvoker.getUpdateContent(_harvestRepository.getProtocol()); }
boolean function() { return ProtocolInvoker.getUpdateContent(_harvestRepository.getProtocol()); }
/** * Checks if 'deep harvest' is enabled. * @return <code>true</code> if 'deep harvest' is enabled */
Checks if 'deep harvest' is enabled
getUpdateContent
{ "repo_name": "GeoinformationSystems/GeoprocessingAppstore", "path": "src/com/esri/gpt/control/harvest/HarvestEditor.java", "license": "apache-2.0", "size": 14450 }
[ "com.esri.gpt.control.webharvest.protocol.ProtocolInvoker" ]
import com.esri.gpt.control.webharvest.protocol.ProtocolInvoker;
import com.esri.gpt.control.webharvest.protocol.*;
[ "com.esri.gpt" ]
com.esri.gpt;
1,213,221
@Override public void info(final Object message, final Throwable t) { getLogger().log(FQCN, Level.INFO, message, t); }
void function(final Object message, final Throwable t) { getLogger().log(FQCN, Level.INFO, message, t); }
/** * Logs a message with {@code org.apache.log4j.Priority.INFO}. * * @param message to log * @param t log this cause * @see org.apache.commons.logging.Log#info(Object, Throwable) */
Logs a message with org.apache.log4j.Priority.INFO
info
{ "repo_name": "apache/commons-logging", "path": "src/main/java/org/apache/commons/logging/impl/Log4JLogger.java", "license": "apache-2.0", "size": 10418 }
[ "org.apache.log4j.Level" ]
import org.apache.log4j.Level;
import org.apache.log4j.*;
[ "org.apache.log4j" ]
org.apache.log4j;
321,022
public void waitForElementToDisappear(By by) { WebDriverWait wait = new WebDriverWait(browser.driver, TestProperties.TEST_TIMEOUT); wait.until(ExpectedConditions.invisibilityOfElementLocated(by)); }
void function(By by) { WebDriverWait wait = new WebDriverWait(browser.driver, TestProperties.TEST_TIMEOUT); wait.until(ExpectedConditions.invisibilityOfElementLocated(by)); }
/** * Waits for element to be invisible or not present, or timeout. */
Waits for element to be invisible or not present, or timeout
waitForElementToDisappear
{ "repo_name": "Malkone/teammates", "path": "src/test/java/teammates/test/pageobjects/AppPage.java", "license": "gpl-2.0", "size": 39427 }
[ "org.openqa.selenium.By", "org.openqa.selenium.support.ui.ExpectedConditions", "org.openqa.selenium.support.ui.WebDriverWait" ]
import org.openqa.selenium.By; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.*; import org.openqa.selenium.support.ui.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
1,771,565
@SimpleEvent(description = "This event is raised when the recent messages " + "requested through <code>RequestDirectMessages</code> have " + "been retrieved. A list of the messages can then be found in the " + "<code>messages</code> parameter or the <code>Messages</code> " + "property.") pub...
@SimpleEvent(description = STR + STR + STR + STR + STR) void function(final List<String> messages) { EventDispatcher.dispatchEvent(this, STR, messages); }
/** * Indicates when all the direct messages requested through * {@link #RequestDirectMessages()} have been received. */
Indicates when all the direct messages requested through <code>#RequestDirectMessages()</code> have been received
DirectMessagesReceived
{ "repo_name": "shilpamagrawal15/appinventor-sources", "path": "appinventor/components/src/com/google/appinventor/components/runtime/Twitter.java", "license": "mit", "size": 38300 }
[ "com.google.appinventor.components.annotations.SimpleEvent", "java.util.List" ]
import com.google.appinventor.components.annotations.SimpleEvent; import java.util.List;
import com.google.appinventor.components.annotations.*; import java.util.*;
[ "com.google.appinventor", "java.util" ]
com.google.appinventor; java.util;
110,850
static boolean tieBreakLessThan(ShardRef first, ScoreDoc firstDoc, ShardRef second, ScoreDoc secondDoc) { final int firstShardIndex = first.getShardIndex(firstDoc); final int secondShardIndex = second.getShardIndex(secondDoc); // Tie break: earlier shard wins if (firstShardIndex < se...
static boolean tieBreakLessThan(ShardRef first, ScoreDoc firstDoc, ShardRef second, ScoreDoc secondDoc) { final int firstShardIndex = first.getShardIndex(firstDoc); final int secondShardIndex = second.getShardIndex(secondDoc); if (firstShardIndex < secondShardIndex) { return true; } else if (firstShardIndex > secondSha...
/** * if we need to tie-break since score / sort value are the same we first compare shard index (lower shard wins) * and then iff shard index is the same we use the hit index. */
if we need to tie-break since score / sort value are the same we first compare shard index (lower shard wins) and then iff shard index is the same we use the hit index
tieBreakLessThan
{ "repo_name": "winstonewert/elasticsearch", "path": "core/src/main/java/org/apache/lucene/search/grouping/CollapseTopFieldDocs.java", "license": "apache-2.0", "size": 9980 }
[ "org.apache.lucene.search.FieldComparator", "org.apache.lucene.search.FieldDoc", "org.apache.lucene.search.ScoreDoc", "org.apache.lucene.search.Sort", "org.apache.lucene.search.SortField", "org.apache.lucene.util.PriorityQueue" ]
import org.apache.lucene.search.FieldComparator; import org.apache.lucene.search.FieldDoc; import org.apache.lucene.search.ScoreDoc; import org.apache.lucene.search.Sort; import org.apache.lucene.search.SortField; import org.apache.lucene.util.PriorityQueue;
import org.apache.lucene.search.*; import org.apache.lucene.util.*;
[ "org.apache.lucene" ]
org.apache.lucene;
2,072,954
public static String referenceToString(Object obj, DOM dom) { if (obj instanceof String) { return (String) obj; } else if (obj instanceof DTMAxisIterator) { return dom.getStringValueX(((DTMAxisIterator)obj).reset().next()); } else if (obj instanceof Node) { return dom...
static String function(Object obj, DOM dom) { if (obj instanceof String) { return (String) obj; } else if (obj instanceof DTMAxisIterator) { return dom.getStringValueX(((DTMAxisIterator)obj).reset().next()); } else if (obj instanceof Node) { return dom.getStringValueX(((Node)obj).node); } else if (obj instanceof DOM) {...
/** * Utility function: used to convert reference to String. */
Utility function: used to convert reference to String
referenceToString
{ "repo_name": "TheTypoMaster/Scaper", "path": "openjdk/jaxp/drop_included/jaxp_src/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java", "license": "gpl-2.0", "size": 51020 }
[ "com.sun.org.apache.xml.internal.dtm.DTMAxisIterator" ]
import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator;
import com.sun.org.apache.xml.internal.dtm.*;
[ "com.sun.org" ]
com.sun.org;
1,965,342
private void decodeMultipartData(String boundary, byte[] fbuf, BufferedReader in, Properties parms, Properties files) throws InterruptedException { try { int[] bpositions = getBoundaryPositions(fbuf,boundary.getBytes()); int boundarycount = 1; String mpline = in.readLine(); while ( mplin...
void function(String boundary, byte[] fbuf, BufferedReader in, Properties parms, Properties files) throws InterruptedException { try { int[] bpositions = getBoundaryPositions(fbuf,boundary.getBytes()); int boundarycount = 1; String mpline = in.readLine(); while ( mpline != null ) { if (mpline.indexOf(boundary) == -1) s...
/** * Decodes the Multipart Body data and put it * into java Properties' key - value pairs. **/
Decodes the Multipart Body data and put it into java Properties' key - value pairs
decodeMultipartData
{ "repo_name": "s373/s373-processing-libs", "path": "apache/src/s373/apache/NanoHTTPD.java", "license": "lgpl-2.1", "size": 30675 }
[ "java.io.BufferedReader", "java.io.IOException", "java.util.Properties", "java.util.StringTokenizer" ]
import java.io.BufferedReader; import java.io.IOException; import java.util.Properties; import java.util.StringTokenizer;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
133,318
void setSpriteAlignment(HorizontalAlignment xAlign, VerticalAlignment yAlign) { this.xAlign = xAlign; this.yAlign = yAlign; }
void setSpriteAlignment(HorizontalAlignment xAlign, VerticalAlignment yAlign) { this.xAlign = xAlign; this.yAlign = yAlign; }
/** * Set the alignment of the sprite. * * @param xAlign horizontal position * @param yAlign vertical position */
Set the alignment of the sprite
setSpriteAlignment
{ "repo_name": "AntumDeluge/arianne-stendhal", "path": "src/games/stendhal/client/gui/j2d/entity/Entity2DView.java", "license": "gpl-2.0", "size": 23578 }
[ "games.stendhal.client.gui.j2d.entity.helpers.HorizontalAlignment", "games.stendhal.client.gui.j2d.entity.helpers.VerticalAlignment" ]
import games.stendhal.client.gui.j2d.entity.helpers.HorizontalAlignment; import games.stendhal.client.gui.j2d.entity.helpers.VerticalAlignment;
import games.stendhal.client.gui.j2d.entity.helpers.*;
[ "games.stendhal.client" ]
games.stendhal.client;
1,473,880
public BusinessDayConvention getBusinessDayConvention() { return _businessDayConvention; }
BusinessDayConvention function() { return _businessDayConvention; }
/** * Gets the _businessDayConvention field. * * @return the _businessDayConvention */
Gets the _businessDayConvention field
getBusinessDayConvention
{ "repo_name": "McLeodMoores/starling", "path": "projects/analytics/src/main/java/com/opengamma/analytics/financial/instrument/index/GeneratorSwapFixedInflationZeroCoupon.java", "license": "apache-2.0", "size": 8232 }
[ "com.opengamma.financial.convention.businessday.BusinessDayConvention" ]
import com.opengamma.financial.convention.businessday.BusinessDayConvention;
import com.opengamma.financial.convention.businessday.*;
[ "com.opengamma.financial" ]
com.opengamma.financial;
2,686,369
private void storeNameAndAddress(String name, String address) { if (name != null) { Settings.Secure.putString(mContentResolver, SECURE_SETTINGS_BLUETOOTH_NAME, name); mName = name; if (DBG) Log.d(TAG,"Stored Bluetooth name: " + Settings.Secure.getString(mC...
void function(String name, String address) { if (name != null) { Settings.Secure.putString(mContentResolver, SECURE_SETTINGS_BLUETOOTH_NAME, name); mName = name; if (DBG) Log.d(TAG,STR + Settings.Secure.getString(mContentResolver,SECURE_SETTINGS_BLUETOOTH_NAME)); } if (address != null) { Settings.Secure.putString(mCont...
/** * Save the Bluetooth name and address in the persistent store. * Only non-null values will be saved. * @param name * @param address */
Save the Bluetooth name and address in the persistent store. Only non-null values will be saved
storeNameAndAddress
{ "repo_name": "rex-xxx/mt6572_x201", "path": "frameworks/base/services/java/com/android/server/BluetoothManagerService.java", "license": "gpl-2.0", "size": 49195 }
[ "android.provider.Settings", "android.util.Log" ]
import android.provider.Settings; import android.util.Log;
import android.provider.*; import android.util.*;
[ "android.provider", "android.util" ]
android.provider; android.util;
1,991,993
public boolean supports(String wrapper) { return !CompassEnvironment.Converter.XmlContent.WRAPPER_SINGLETON.equals(wrapper); } /** * Uses dom4j <code>XPP3Reader</code> to convert the given xml string into a {@link org.compass.core.xml.dom4j.Dom4jAliasedXmlObject}. * * @param alias Th...
boolean function(String wrapper) { return !CompassEnvironment.Converter.XmlContent.WRAPPER_SINGLETON.equals(wrapper); } /** * Uses dom4j <code>XPP3Reader</code> to convert the given xml string into a {@link org.compass.core.xml.dom4j.Dom4jAliasedXmlObject}. * * @param alias The alias that will be associated with the {@...
/** * This converter does not support a singleton wrapper strategy. */
This converter does not support a singleton wrapper strategy
supports
{ "repo_name": "vthriller/opensymphony-compass-backup", "path": "src/main/src/org/compass/core/xml/dom4j/converter/XPP3ReaderXmlContentConverter.java", "license": "apache-2.0", "size": 2403 }
[ "org.compass.core.config.CompassEnvironment", "org.compass.core.xml.AliasedXmlObject", "org.compass.core.xml.dom4j.Dom4jAliasedXmlObject", "org.dom4j.io.XPP3Reader" ]
import org.compass.core.config.CompassEnvironment; import org.compass.core.xml.AliasedXmlObject; import org.compass.core.xml.dom4j.Dom4jAliasedXmlObject; import org.dom4j.io.XPP3Reader;
import org.compass.core.config.*; import org.compass.core.xml.*; import org.compass.core.xml.dom4j.*; import org.dom4j.io.*;
[ "org.compass.core", "org.dom4j.io" ]
org.compass.core; org.dom4j.io;
1,182,193
public final MetaProperty<ExecutorService> executor() { return _executor; }
final MetaProperty<ExecutorService> function() { return _executor; }
/** * The meta-property for the {@code executor} property. * @return the meta-property, not null */
The meta-property for the executor property
executor
{ "repo_name": "jeorme/OG-Platform", "path": "sesame/sesame-component/src/main/java/com/opengamma/sesame/component/ViewRunnerComponentFactory.java", "license": "apache-2.0", "size": 14370 }
[ "java.util.concurrent.ExecutorService", "org.joda.beans.MetaProperty" ]
import java.util.concurrent.ExecutorService; import org.joda.beans.MetaProperty;
import java.util.concurrent.*; import org.joda.beans.*;
[ "java.util", "org.joda.beans" ]
java.util; org.joda.beans;
224,732
public boolean options(int option, Value value) { return false; }
boolean function(int option, Value value) { return false; }
/** * Sets a mysqli option. */
Sets a mysqli option
options
{ "repo_name": "dlitz/resin", "path": "modules/quercus/src/com/caucho/quercus/lib/db/Mysqli.java", "license": "gpl-2.0", "size": 42236 }
[ "com.caucho.quercus.env.Value" ]
import com.caucho.quercus.env.Value;
import com.caucho.quercus.env.*;
[ "com.caucho.quercus" ]
com.caucho.quercus;
451,524
public static <S extends Storable> void tearDown(final Class<S> type, final String configuration) { if (type == null) return; final String conf = isEmpty(configuration) ? LuceneStoreConfig.DEFAULT_CONFIGURATION_NAME : configuration; tearDown(type, ConfigurationManager.getInstanceForConf(LuceneStoreConfig.c...
static <S extends Storable> void function(final Class<S> type, final String configuration) { if (type == null) return; final String conf = isEmpty(configuration) ? LuceneStoreConfig.DEFAULT_CONFIGURATION_NAME : configuration; tearDown(type, ConfigurationManager.getInstanceForConf(LuceneStoreConfig.class, conf)); }
/** * Tear down {@link LuceneStoreManager} state for given {@link Storable} type.<br> * This is just for removing initialized {@link LuceneStore} instance from internal storage.<br> * Tear down/cleanup for initialized {@link LuceneStore} instance should be done separately. * * @param type * {@li...
Tear down <code>LuceneStoreManager</code> state for given <code>Storable</code> type. This is just for removing initialized <code>LuceneStore</code> instance from internal storage. Tear down/cleanup for initialized <code>LuceneStore</code> instance should be done separately
tearDown
{ "repo_name": "Squadity/bb-kit", "path": "src/main/java/net/bolbat/kit/lucene/LuceneStoreManager.java", "license": "mit", "size": 5544 }
[ "net.bolbat.kit.config.ConfigurationManager", "net.bolbat.utils.lang.StringUtils" ]
import net.bolbat.kit.config.ConfigurationManager; import net.bolbat.utils.lang.StringUtils;
import net.bolbat.kit.config.*; import net.bolbat.utils.lang.*;
[ "net.bolbat.kit", "net.bolbat.utils" ]
net.bolbat.kit; net.bolbat.utils;
2,077,867
protected void addHeapMetrics(Collection<Metric<?>> result) { MemoryUsage memoryUsage = ManagementFactory.getMemoryMXBean() .getHeapMemoryUsage(); result.add(new Metric<Long>("heap.committed", memoryUsage.getCommitted() / 1024)); result.add(new Metric<Long>("heap.init", memoryUsage.getInit() / 1024)); re...
void function(Collection<Metric<?>> result) { MemoryUsage memoryUsage = ManagementFactory.getMemoryMXBean() .getHeapMemoryUsage(); result.add(new Metric<Long>(STR, memoryUsage.getCommitted() / 1024)); result.add(new Metric<Long>(STR, memoryUsage.getInit() / 1024)); result.add(new Metric<Long>(STR, memoryUsage.getUsed()...
/** * Add JVM heap metrics. */
Add JVM heap metrics
addHeapMetrics
{ "repo_name": "10045125/spring-boot", "path": "spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/SystemPublicMetrics.java", "license": "apache-2.0", "size": 4909 }
[ "java.lang.management.ManagementFactory", "java.lang.management.MemoryUsage", "java.util.Collection", "org.springframework.boot.actuate.metrics.Metric" ]
import java.lang.management.ManagementFactory; import java.lang.management.MemoryUsage; import java.util.Collection; import org.springframework.boot.actuate.metrics.Metric;
import java.lang.management.*; import java.util.*; import org.springframework.boot.actuate.metrics.*;
[ "java.lang", "java.util", "org.springframework.boot" ]
java.lang; java.util; org.springframework.boot;
1,628,208
public Set<Integer> getIndices() { return indicies; }
Set<Integer> function() { return indicies; }
/** * Gets all start indices. */
Gets all start indices
getIndices
{ "repo_name": "renespeck/fox-java", "path": "src/main/java/org/aksw/fox/data/Entity.java", "license": "gpl-2.0", "size": 3397 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,856,362
protected List<PurchaseOrderDocument> filterPurchaseOrderDocumentByAppDocStatus(Collection<PurchaseOrderDocument> purchaseOrderDocuments, String... appDocStatus) { List<String> appDocStatusList = Arrays.asList(appDocStatus); List<PurchaseOrderDocument> filteredPaymentRequestDocuments = new ArrayLi...
List<PurchaseOrderDocument> function(Collection<PurchaseOrderDocument> purchaseOrderDocuments, String... appDocStatus) { List<String> appDocStatusList = Arrays.asList(appDocStatus); List<PurchaseOrderDocument> filteredPaymentRequestDocuments = new ArrayList<PurchaseOrderDocument>(); for (PurchaseOrderDocument po : purc...
/** * This method queries financialSystemDocumentHeader and filter payment requests against the provided status. * * @param paymentRequestDocuments * @param appDocStatus * @return */
This method queries financialSystemDocumentHeader and filter payment requests against the provided status
filterPurchaseOrderDocumentByAppDocStatus
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/module/purap/document/service/impl/PurchaseOrderServiceImpl.java", "license": "agpl-3.0", "size": 129962 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.Collection", "java.util.List", "org.kuali.kfs.module.purap.document.PurchaseOrderDocument" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import org.kuali.kfs.module.purap.document.PurchaseOrderDocument;
import java.util.*; import org.kuali.kfs.module.purap.document.*;
[ "java.util", "org.kuali.kfs" ]
java.util; org.kuali.kfs;
232,280
public final <T> T Expect(String expectation, Supplier<T> term) { ExpectationFrame oldFrame = ctx.getExpectationFrame(); ExpectationFrame newFrame = ctx.setNewExpectationFrame(); try { return term.get(); } catch (NoMatchException e) { ctx.setExpectationFrame(o...
final <T> T function(String expectation, Supplier<T> term) { ExpectationFrame oldFrame = ctx.getExpectationFrame(); ExpectationFrame newFrame = ctx.setNewExpectationFrame(); try { return term.get(); } catch (NoMatchException e) { ctx.setExpectationFrame(oldFrame); oldFrame = null; ctx.registerExpectation(expectation, n...
/** * Match the supplied term. All expectations generated while matching the * term are dropped. If matching the term fails, the single specified * expectation is registered as expected at the input position farthest to * the right which has been reached. */
Match the supplied term. All expectations generated while matching the term are dropped. If matching the term fails, the single specified expectation is registered as expected at the input position farthest to the right which has been reached
Expect
{ "repo_name": "ruediste/lambda-peg-parser", "path": "src/main/java/com/github/ruediste/lambdaPegParser/Parser.java", "license": "apache-2.0", "size": 21255 }
[ "com.github.ruediste.lambdaPegParser.ParsingContext", "java.util.function.Supplier" ]
import com.github.ruediste.lambdaPegParser.ParsingContext; import java.util.function.Supplier;
import com.github.ruediste.*; import java.util.function.*;
[ "com.github.ruediste", "java.util" ]
com.github.ruediste; java.util;
1,906,587
Future<Image> apply(Image image);
Future<Image> apply(Image image);
/** * Applies filter asynchronously * * @param image the source image * @return a future result image */
Applies filter asynchronously
apply
{ "repo_name": "thumty/thumty", "path": "thumty-filter/src/main/java/org/eightlog/thumty/filter/AsyncFilter.java", "license": "gpl-3.0", "size": 1441 }
[ "io.vertx.core.Future", "org.eightlog.thumty.image.Image" ]
import io.vertx.core.Future; import org.eightlog.thumty.image.Image;
import io.vertx.core.*; import org.eightlog.thumty.image.*;
[ "io.vertx.core", "org.eightlog.thumty" ]
io.vertx.core; org.eightlog.thumty;
758,960
private boolean isDoneForBuild(@Nullable NodeEntry entry) { return entry != null && entry.isDone(); }
boolean function(@Nullable NodeEntry entry) { return entry != null && entry.isDone(); }
/** * Return true if the entry does not need to be re-evaluated this build. The entry will need to * be re-evaluated if it is not done, but also if it was not completely evaluated last build and * this build is keepGoing. */
Return true if the entry does not need to be re-evaluated this build. The entry will need to be re-evaluated if it is not done, but also if it was not completely evaluated last build and this build is keepGoing
isDoneForBuild
{ "repo_name": "rohitsaboo/bazel", "path": "src/main/java/com/google/devtools/build/skyframe/ParallelEvaluator.java", "license": "apache-2.0", "size": 91313 }
[ "javax.annotation.Nullable" ]
import javax.annotation.Nullable;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
1,576,749
@ServiceMethod(returns = ReturnType.SINGLE) SyncPoller<PollResult<ProfileInner>, ProfileInner> beginCreateOrUpdate( String profileName, String resourceGroupName, ProfileInner parameters);
@ServiceMethod(returns = ReturnType.SINGLE) SyncPoller<PollResult<ProfileInner>, ProfileInner> beginCreateOrUpdate( String profileName, String resourceGroupName, ProfileInner parameters);
/** * Creates an NetworkExperiment Profile. * * @param profileName The Profile identifier associated with the Tenant and Partner. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param parameters An Network Experiment Profile. * @throws IllegalArgumen...
Creates an NetworkExperiment Profile
beginCreateOrUpdate
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/NetworkExperimentProfilesClient.java", "license": "mit", "size": 15345 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.management.polling.PollResult", "com.azure.core.util.polling.SyncPoller", "com.azure.resourcemanager.frontdoor.fluent.models.ProfileInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.frontdoor.fluent.models.ProfileInner;
import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.frontdoor.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,060,296
public I error(Drawable drawable);
I function(Drawable drawable);
/** * Set an error image on the ImageView if the request fails to load * @param drawable * @return */
Set an error image on the ImageView if the request fails to load
error
{ "repo_name": "mfloresn90/AndroidStudioSources", "path": "ion/src/com/koushikdutta/ion/builder/ImageViewBuilder.java", "license": "mit", "size": 3406 }
[ "android.graphics.drawable.Drawable" ]
import android.graphics.drawable.Drawable;
import android.graphics.drawable.*;
[ "android.graphics" ]
android.graphics;
2,166,998
@Test public void testAvailableResources() { MetricValue mv = new MetricValue.Builder().load(50).add(); Set<String> diskSet = ImmutableSet.of("disk1", "disk2"); diskSet.forEach(disk -> DISK_METRICS.forEach(cmt -> testUpdateMetricWithResource(cmt, mv, disk))); S...
void function() { MetricValue mv = new MetricValue.Builder().load(50).add(); Set<String> diskSet = ImmutableSet.of("disk1", "disk2"); diskSet.forEach(disk -> DISK_METRICS.forEach(cmt -> testUpdateMetricWithResource(cmt, mv, disk))); Set<String> networkSet = ImmutableSet.of("eth0", "eth1"); networkSet.forEach(network ->...
/** * Tests available resource update and load function. */
Tests available resource update and load function
testAvailableResources
{ "repo_name": "sdnwiselab/onos", "path": "apps/cpman/app/src/test/java/org/onosproject/cpman/impl/ControlPlaneMonitorTest.java", "license": "apache-2.0", "size": 8629 }
[ "com.google.common.collect.ImmutableSet", "java.util.Set", "org.hamcrest.Matchers", "org.junit.Assert", "org.onosproject.cpman.ControlResource", "org.onosproject.cpman.MetricValue" ]
import com.google.common.collect.ImmutableSet; import java.util.Set; import org.hamcrest.Matchers; import org.junit.Assert; import org.onosproject.cpman.ControlResource; import org.onosproject.cpman.MetricValue;
import com.google.common.collect.*; import java.util.*; import org.hamcrest.*; import org.junit.*; import org.onosproject.cpman.*;
[ "com.google.common", "java.util", "org.hamcrest", "org.junit", "org.onosproject.cpman" ]
com.google.common; java.util; org.hamcrest; org.junit; org.onosproject.cpman;
2,680,604
private boolean createAggregator() { logger.debug("Creating new aggregator."); try { stats.startSetup(); this.aggregator = createAggregatorInternal(); return true; } catch (SchemaChangeException | ClassTransformationException | IOException ex) { context.fail(ex); container.cl...
boolean function() { logger.debug(STR); try { stats.startSetup(); this.aggregator = createAggregatorInternal(); return true; } catch (SchemaChangeException ClassTransformationException IOException ex) { context.fail(ex); container.clear(); incoming.kill(false); return false; } finally { stats.stopSetup(); } }
/** * Creates a new Aggregator based on the current schema. If setup fails, this method is responsible for cleaning up * and informing the context of the failure state, as well is informing the upstream operators. * * @return true if the aggregator was setup successfully. false if there was a failure. */
Creates a new Aggregator based on the current schema. If setup fails, this method is responsible for cleaning up and informing the context of the failure state, as well is informing the upstream operators
createAggregator
{ "repo_name": "mehant/drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/aggregate/StreamingAggBatch.java", "license": "apache-2.0", "size": 19080 }
[ "java.io.IOException", "org.apache.drill.exec.exception.ClassTransformationException", "org.apache.drill.exec.exception.SchemaChangeException" ]
import java.io.IOException; import org.apache.drill.exec.exception.ClassTransformationException; import org.apache.drill.exec.exception.SchemaChangeException;
import java.io.*; import org.apache.drill.exec.exception.*;
[ "java.io", "org.apache.drill" ]
java.io; org.apache.drill;
1,979,927
@Test public void testRequestWithSubstrings1Any1Final() { Dsmlv2Parser parser = null; try { parser = newParser(); parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_1_any_1_final.xml" ) .openStream(), "UTF-8...
void function() { Dsmlv2Parser parser = null; try { parser = newParser(); parser.setInput( SearchRequestTest.class.getResource( STR ) .openStream(), "UTF-8" ); parser.parse(); } catch ( Exception e ) { fail( e.getMessage() ); } SearchRequest searchRequest = ( SearchRequest ) parser.getBatchRequest().getCurrentRequest()...
/** * Test parsing of a request with a Substrings Filter with 1 Any and 1 Final elements */
Test parsing of a request with a Substrings Filter with 1 Any and 1 Final elements
testRequestWithSubstrings1Any1Final
{ "repo_name": "darranl/directory-shared", "path": "dsml/parser/src/test/java/org/apache/directory/api/dsmlv2/searchRequest/SearchRequestTest.java", "license": "apache-2.0", "size": 67826 }
[ "java.util.List", "org.apache.directory.api.dsmlv2.Dsmlv2Parser", "org.apache.directory.api.ldap.model.filter.ExprNode", "org.apache.directory.api.ldap.model.filter.SubstringNode", "org.apache.directory.api.ldap.model.message.SearchRequest", "org.junit.Assert" ]
import java.util.List; import org.apache.directory.api.dsmlv2.Dsmlv2Parser; import org.apache.directory.api.ldap.model.filter.ExprNode; import org.apache.directory.api.ldap.model.filter.SubstringNode; import org.apache.directory.api.ldap.model.message.SearchRequest; import org.junit.Assert;
import java.util.*; import org.apache.directory.api.dsmlv2.*; import org.apache.directory.api.ldap.model.filter.*; import org.apache.directory.api.ldap.model.message.*; import org.junit.*;
[ "java.util", "org.apache.directory", "org.junit" ]
java.util; org.apache.directory; org.junit;
1,657,020
public DictCollectionFinder getDictCollectionFinder() { return dictCollectionFinder; }
DictCollectionFinder function() { return dictCollectionFinder; }
/** * Returns the dictionary collection finder. * * @return the dictionary collection finder */
Returns the dictionary collection finder
getDictCollectionFinder
{ "repo_name": "thongdv/OEPv2", "path": "portlets/oep-core-datamgt-portlet/docroot/WEB-INF/src/org/oep/core/datamgt/dictionary/service/base/DictMetaDataServiceBaseImpl.java", "license": "apache-2.0", "size": 16263 }
[ "org.oep.core.datamgt.dictionary.service.persistence.DictCollectionFinder" ]
import org.oep.core.datamgt.dictionary.service.persistence.DictCollectionFinder;
import org.oep.core.datamgt.dictionary.service.persistence.*;
[ "org.oep.core" ]
org.oep.core;
2,240,722
// set up a basic logging configuration for the test environment BasicConfigurator.resetConfiguration(); BasicConfigurator.configure(new ConsoleAppender(new PatternLayout("%m%n"))); }
BasicConfigurator.resetConfiguration(); BasicConfigurator.configure(new ConsoleAppender(new PatternLayout("%m%n"))); }
/** * Initialize the Log4j basic logging environment to enable logging in unit tests. */
Initialize the Log4j basic logging environment to enable logging in unit tests
initLogging
{ "repo_name": "kopl/SPLevo", "path": "JaMoPPCartridge/org.splevo.jamopp.vpm.analyzer.programdependency.tests/src/org/splevo/jamopp/vpm/analyzer/programdependency/tests/TestUtil.java", "license": "epl-1.0", "size": 12410 }
[ "org.apache.log4j.BasicConfigurator", "org.apache.log4j.ConsoleAppender", "org.apache.log4j.PatternLayout" ]
import org.apache.log4j.BasicConfigurator; import org.apache.log4j.ConsoleAppender; import org.apache.log4j.PatternLayout;
import org.apache.log4j.*;
[ "org.apache.log4j" ]
org.apache.log4j;
409,551
@Override public void handleClick(DrawingTreeNode<?, ?> node, E controller, MouseControlContext context) { if (action != null) { if (action.handleClick(node, controller, context)) { context.consume(); } } }
void function(DrawingTreeNode<?, ?> node, E controller, MouseControlContext context) { if (action != null) { if (action.handleClick(node, controller, context)) { context.consume(); } } }
/** * Handle click event, by performing what is required here<br> * If event has been correctely handled, consume it. * * @param graphicalRepresentation * @param controller */
Handle click event, by performing what is required here If event has been correctely handled, consume it
handleClick
{ "repo_name": "openflexo-team/diana", "path": "diana-core/src/main/java/org/openflexo/diana/control/actions/MouseClickControlImpl.java", "license": "gpl-3.0", "size": 3736 }
[ "org.openflexo.diana.Drawing", "org.openflexo.diana.control.MouseControlContext" ]
import org.openflexo.diana.Drawing; import org.openflexo.diana.control.MouseControlContext;
import org.openflexo.diana.*; import org.openflexo.diana.control.*;
[ "org.openflexo.diana" ]
org.openflexo.diana;
319,595
public Dimension getMinimumSize() { measure(); return (new Dimension(maxAllowed, (numLines * (lineHeight + lineAscent + lineDescent)) + (2 * marginHeight))); }
Dimension function() { measure(); return (new Dimension(maxAllowed, (numLines * (lineHeight + lineAscent + lineDescent)) + (2 * marginHeight))); }
/** * This method is typically used by the layout manager, it reports the * absolute minimum space required to display the entire label. */
This method is typically used by the layout manager, it reports the absolute minimum space required to display the entire label
getMinimumSize
{ "repo_name": "ENGYS/HELYX-OS", "path": "src/eu/engys/util/ui/stepcomponent/MultiLineLabel.java", "license": "gpl-3.0", "size": 23082 }
[ "java.awt.Dimension" ]
import java.awt.Dimension;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,561,576
public Iterator<String[]> getStringRowIterator() { return new StringRowIterator(0, _numRows); }
Iterator<String[]> function() { return new StringRowIterator(0, _numRows); }
/** * Get a row iterator over the frame where all fields are encoded * as strings independent of their value types. * * @return string array iterator */
Get a row iterator over the frame where all fields are encoded as strings independent of their value types
getStringRowIterator
{ "repo_name": "dusenberrymw/systemml", "path": "src/main/java/org/apache/sysml/runtime/matrix/data/FrameBlock.java", "license": "apache-2.0", "size": 47199 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,835,769
@Override public SCM newInstance(StaplerRequest req, JSONObject formData) throws FormException { //Logger log = LogManager.getLogManager().getLogger("hudson.WebAppMain"); VssSCM scm = (VssSCM) super.newInstance(req, formData); // scm.brows...
SCM function(StaplerRequest req, JSONObject formData) throws FormException { VssSCM scm = (VssSCM) super.newInstance(req, formData); return scm; }
/** * Create new SCM instance. */
Create new SCM instance
newInstance
{ "repo_name": "patlau/vssj-plugin", "path": "src/main/java/org/jenkinsci/plugins/vssj/VssSCM.java", "license": "mit", "size": 15320 }
[ "net.sf.json.JSONObject", "org.kohsuke.stapler.StaplerRequest" ]
import net.sf.json.JSONObject; import org.kohsuke.stapler.StaplerRequest;
import net.sf.json.*; import org.kohsuke.stapler.*;
[ "net.sf.json", "org.kohsuke.stapler" ]
net.sf.json; org.kohsuke.stapler;
290,190
private void createReverseMapping() { reverseSourceMapping = new HashMap<>(); for (int targetLine = 0; targetLine < lines.size(); targetLine++) { ArrayList<Entry> entries = lines.get(targetLine); if (entries != null) { for (Entry entry : entries) { if (entry.getSourceFileId() !...
void function() { reverseSourceMapping = new HashMap<>(); for (int targetLine = 0; targetLine < lines.size(); targetLine++) { ArrayList<Entry> entries = lines.get(targetLine); if (entries != null) { for (Entry entry : entries) { if (entry.getSourceFileId() != UNMAPPED && entry.getSourceLine() != UNMAPPED) { String orig...
/** * Reverse the source map; the created mapping will allow us to quickly go * from a source file and line number to a collection of target * OriginalMappings. */
Reverse the source map; the created mapping will allow us to quickly go from a source file and line number to a collection of target OriginalMappings
createReverseMapping
{ "repo_name": "brad4d/closure-compiler", "path": "src/com/google/debugging/sourcemap/SourceMapConsumerV3.java", "license": "apache-2.0", "size": 20729 }
[ "com.google.debugging.sourcemap.Base64VLQ", "com.google.debugging.sourcemap.proto.Mapping", "java.util.ArrayList", "java.util.Collection", "java.util.HashMap", "java.util.Map" ]
import com.google.debugging.sourcemap.Base64VLQ; import com.google.debugging.sourcemap.proto.Mapping; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map;
import com.google.debugging.sourcemap.*; import com.google.debugging.sourcemap.proto.*; import java.util.*;
[ "com.google.debugging", "java.util" ]
com.google.debugging; java.util;
352,442
public MicrosoftPullRequest getPullRequest( String account, String collection, String repositoryId, String prId) throws ServerException, IOException, UnauthorizedException { return doGet( templates.pullRequestUrl(account, collection, repositoryId, prId), MicrosoftPullRequest.class); ...
MicrosoftPullRequest function( String account, String collection, String repositoryId, String prId) throws ServerException, IOException, UnauthorizedException { return doGet( templates.pullRequestUrl(account, collection, repositoryId, prId), MicrosoftPullRequest.class); }
/** * Returns a pull request with given {@code repositoryId} and {@code prId}. * * @param repositoryId the id of the repository * @param prId the pull request id * @throws IOException when any io error occurs * @throws ServerException when server responds with unexpected code * @throws Unauthorized...
Returns a pull request with given repositoryId and prId
getPullRequest
{ "repo_name": "codenvy/codenvy", "path": "plugins/plugin-microsoft/codenvy-plugin-microsoft-vsts-ext-server/src/main/java/org/eclipse/che/ide/ext/microsoft/server/MicrosoftVstsRestClient.java", "license": "epl-1.0", "size": 11150 }
[ "java.io.IOException", "org.eclipse.che.api.core.ServerException", "org.eclipse.che.api.core.UnauthorizedException", "org.eclipse.che.ide.ext.microsoft.shared.dto.MicrosoftPullRequest" ]
import java.io.IOException; import org.eclipse.che.api.core.ServerException; import org.eclipse.che.api.core.UnauthorizedException; import org.eclipse.che.ide.ext.microsoft.shared.dto.MicrosoftPullRequest;
import java.io.*; import org.eclipse.che.api.core.*; import org.eclipse.che.ide.ext.microsoft.shared.dto.*;
[ "java.io", "org.eclipse.che" ]
java.io; org.eclipse.che;
1,587,750
File convert(File source, File destination, DocumentFormat outFormat, FilterOption... options);
File convert(File source, File destination, DocumentFormat outFormat, FilterOption... options);
/** * Converts the specified document in the specified format. The format should be supported by the * converter. If an error occurs while converting the specified file, then a runtime exception * DocumentFormatConversionException is thrown. * @param source the document to convert. * @param destination t...
Converts the specified document in the specified format. The format should be supported by the converter. If an error occurs while converting the specified file, then a runtime exception DocumentFormatConversionException is thrown
convert
{ "repo_name": "SilverDav/Silverpeas-Core", "path": "core-library/src/main/java/org/silverpeas/core/contribution/converter/DocumentFormatConversion.java", "license": "agpl-3.0", "size": 3653 }
[ "java.io.File", "org.silverpeas.core.contribution.converter.option.FilterOption" ]
import java.io.File; import org.silverpeas.core.contribution.converter.option.FilterOption;
import java.io.*; import org.silverpeas.core.contribution.converter.option.*;
[ "java.io", "org.silverpeas.core" ]
java.io; org.silverpeas.core;
1,958,395
public void getCompositeData( ImportRuleInterface importRule );
void function( ImportRuleInterface importRule );
/** * Get the data from the composite controls and set them in the import rule provided. * * @param importRule * The import rule to update. */
Get the data from the composite controls and set them in the import rule provided
getCompositeData
{ "repo_name": "apratkin/pentaho-kettle", "path": "ui/src/org/pentaho/di/ui/imp/rule/ImportRuleCompositeInterface.java", "license": "apache-2.0", "size": 1899 }
[ "org.pentaho.di.imp.rule.ImportRuleInterface" ]
import org.pentaho.di.imp.rule.ImportRuleInterface;
import org.pentaho.di.imp.rule.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,985,115
public void registerObserver(Runnable observer) { if (!mObservers.addObserver(observer)) return; if (mStatus != null) { PostTask.postTask(UiThreadTaskTraits.DEFAULT, () -> { if (mObservers.hasObserver(observer)) observer.run(); }); return; ...
void function(Runnable observer) { if (!mObservers.addObserver(observer)) return; if (mStatus != null) { PostTask.postTask(UiThreadTaskTraits.DEFAULT, () -> { if (mObservers.hasObserver(observer)) observer.run(); }); return; } UpdateStatusProvider.getInstance().addObserver(mUpdateCallback); }
/** * Registers {@code observer} to be triggered whenever the menu state changes. This will always * be triggered at least once after registration. */
Registers observer to be triggered whenever the menu state changes. This will always be triggered at least once after registration
registerObserver
{ "repo_name": "endlessm/chromium-browser", "path": "chrome/android/java/src/org/chromium/chrome/browser/omaha/UpdateMenuItemHelper.java", "license": "bsd-3-clause", "size": 18714 }
[ "org.chromium.base.task.PostTask", "org.chromium.content_public.browser.UiThreadTaskTraits" ]
import org.chromium.base.task.PostTask; import org.chromium.content_public.browser.UiThreadTaskTraits;
import org.chromium.base.task.*; import org.chromium.content_public.browser.*;
[ "org.chromium.base", "org.chromium.content_public" ]
org.chromium.base; org.chromium.content_public;
645,551
List<Map.Entry<K, V>> itemsByCount(boolean ascending);
List<Map.Entry<K, V>> itemsByCount(boolean ascending);
/** * Returns the items as a sorted list by their counts. * * @param ascending True if the counts are sorted in ascending order, False if in descending order. * @return The sorted list of items. */
Returns the items as a sorted list by their counts
itemsByCount
{ "repo_name": "dbracewell/mango", "path": "src/main/java/com/davidbracewell/collection/counter/MultiCounter.java", "license": "apache-2.0", "size": 14493 }
[ "java.util.List", "java.util.Map" ]
import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,250,312
public void cleanupInvalidParts(Bucket bucket, String objectKey, String uploadId, int partNumber) throws Exception;
void function(Bucket bucket, String objectKey, String uploadId, int partNumber) throws Exception;
/** * Remove all non-latest parts for the given object key. Cleans-up the history in case parts are overwritten. * * @param bucket * @param objectKey * @throws Exception */
Remove all non-latest parts for the given object key. Cleans-up the history in case parts are overwritten
cleanupInvalidParts
{ "repo_name": "eethomas/eucalyptus", "path": "clc/modules/object-storage/src/main/java/com/eucalyptus/objectstorage/metadata/MpuPartMetadataManager.java", "license": "gpl-3.0", "size": 4713 }
[ "com.eucalyptus.objectstorage.entities.Bucket" ]
import com.eucalyptus.objectstorage.entities.Bucket;
import com.eucalyptus.objectstorage.entities.*;
[ "com.eucalyptus.objectstorage" ]
com.eucalyptus.objectstorage;
2,408,235
public Scene getContentScene() { return null; } public void setEnterTransition(Transition transition) {}
Scene function() { return null; } public void setEnterTransition(Transition transition) {}
/** * Retrieve the {@link Scene} representing this window's current content. * Requires {@link #FEATURE_CONTENT_TRANSITIONS}. * * <p>This method will return null if the current content is not represented by a Scene.</p> * * @return Current Scene being shown or null */
Retrieve the <code>Scene</code> representing this window's current content. Requires <code>#FEATURE_CONTENT_TRANSITIONS</code>. This method will return null if the current content is not represented by a Scene
getContentScene
{ "repo_name": "OmniEvo/android_frameworks_base", "path": "core/java/android/view/Window.java", "license": "gpl-3.0", "size": 77630 }
[ "android.transition.Scene", "android.transition.Transition" ]
import android.transition.Scene; import android.transition.Transition;
import android.transition.*;
[ "android.transition" ]
android.transition;
146,019
@Test public void readMultiBlockFile() throws Exception { String uniqPath = PathUtils.uniqPath(); int blockSizeByte = 10; int numBlocks = 10; AlluxioURI uri = new AlluxioURI(uniqPath); FileOutStream os = mFileSystem.createFile(uri, mWriteUnderStore); for (int i = 0; i < numBlocks; i++) { ...
void function() throws Exception { String uniqPath = PathUtils.uniqPath(); int blockSizeByte = 10; int numBlocks = 10; AlluxioURI uri = new AlluxioURI(uniqPath); FileOutStream os = mFileSystem.createFile(uri, mWriteUnderStore); for (int i = 0; i < numBlocks; i++) { for (int j = 0; j < blockSizeByte; j++) { os.write((by...
/** * Tests that reading a file consisting of more than one block from the underfs works. */
Tests that reading a file consisting of more than one block from the underfs works
readMultiBlockFile
{ "repo_name": "bf8086/alluxio", "path": "tests/src/test/java/alluxio/client/fs/RemoteReadIntegrationTest.java", "license": "apache-2.0", "size": 22015 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,401,332
void registerSubscriber(boolean bootstrap, int throttlePeriodMs, Subscriber<E> subscriber) throws AssetNotFoundException;
void registerSubscriber(boolean bootstrap, int throttlePeriodMs, Subscriber<E> subscriber) throws AssetNotFoundException;
/** * Add a subscription to this specific topic * * @param bootstrap to bootstrap * @param throttlePeriodMs {@code 0} for no throttling, otherwise the period of * throttling in milliseconds * @param subscriber to register @throws AssetNotFoundException...
Add a subscription to this specific topic
registerSubscriber
{ "repo_name": "lburgazzoli/Chronicle-Engine", "path": "src/main/java/net/openhft/chronicle/engine/api/pubsub/Publisher.java", "license": "lgpl-3.0", "size": 1892 }
[ "net.openhft.chronicle.engine.api.tree.AssetNotFoundException" ]
import net.openhft.chronicle.engine.api.tree.AssetNotFoundException;
import net.openhft.chronicle.engine.api.tree.*;
[ "net.openhft.chronicle" ]
net.openhft.chronicle;
379,843
private void _saveMailingList(ActionForm form, ActionRequest req, ActionResponse res, String mailingListInode) throws Exception { User user = _getUser(req); UserManagerListSearchForm mlForm = (UserManagerListSearchForm) form; // Saving mailing list MailingList ml = (MailingLi...
void function(ActionForm form, ActionRequest req, ActionResponse res, String mailingListInode) throws Exception { User user = _getUser(req); UserManagerListSearchForm mlForm = (UserManagerListSearchForm) form; MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class); String cmd = req.ge...
/** * Used to save a new mailing list from the results obtained of a user * search * * @param form * @param req * @param res * @param mailingListInode * @throws Exception */
Used to save a new mailing list from the results obtained of a user search
_saveMailingList
{ "repo_name": "austindlawless/dotCMS", "path": "src/com/dotmarketing/portlets/usermanager/action/ViewUserManagerListAction.java", "license": "gpl-3.0", "size": 79836 }
[ "com.dotcms.repackage.portlet.javax.portlet.ActionRequest", "com.dotcms.repackage.portlet.javax.portlet.ActionResponse", "com.dotcms.repackage.struts.org.apache.struts.action.ActionForm", "com.dotmarketing.db.HibernateUtil", "com.dotmarketing.factories.InodeFactory", "com.dotmarketing.portlets.mailinglist...
import com.dotcms.repackage.portlet.javax.portlet.ActionRequest; import com.dotcms.repackage.portlet.javax.portlet.ActionResponse; import com.dotcms.repackage.struts.org.apache.struts.action.ActionForm; import com.dotmarketing.db.HibernateUtil; import com.dotmarketing.factories.InodeFactory; import com.dotmarketing.por...
import com.dotcms.repackage.portlet.javax.portlet.*; import com.dotcms.repackage.struts.org.apache.struts.action.*; import com.dotmarketing.db.*; import com.dotmarketing.factories.*; import com.dotmarketing.portlets.mailinglists.model.*; import com.dotmarketing.portlets.usermanager.struts.*; import com.liferay.portal.m...
[ "com.dotcms.repackage", "com.dotmarketing.db", "com.dotmarketing.factories", "com.dotmarketing.portlets", "com.liferay.portal" ]
com.dotcms.repackage; com.dotmarketing.db; com.dotmarketing.factories; com.dotmarketing.portlets; com.liferay.portal;
2,792,926
public EventType getBaseEventType() { return baseEventType; }
EventType function() { return baseEventType; }
/** * Returns the base event type. * @return base type */
Returns the base event type
getBaseEventType
{ "repo_name": "mobile-event-processing/Asper", "path": "source/src/com/espertech/esper/event/vaevent/RevisionSpec.java", "license": "gpl-2.0", "size": 4991 }
[ "com.espertech.esper.client.EventType" ]
import com.espertech.esper.client.EventType;
import com.espertech.esper.client.*;
[ "com.espertech.esper" ]
com.espertech.esper;
586,879
public static List<PCMContainer> loadCSV(String fileName, PCMDirection pcmDir) throws IOException { return loadCSV(new File(fileName)); }
static List<PCMContainer> function(String fileName, PCMDirection pcmDir) throws IOException { return loadCSV(new File(fileName)); }
/** * A helper method to get a PCMContainer from a CSV file (limited in a sense we only retrieve the 1st element of containers) * @param fileName * @return * @throws IOException */
A helper method to get a PCMContainer from a CSV file (limited in a sense we only retrieve the 1st element of containers)
loadCSV
{ "repo_name": "OpenCompare/pcmdata-importers", "path": "pcmdata-importers/src/main/java/data_off/PCMUtil.java", "license": "apache-2.0", "size": 3905 }
[ "java.io.File", "java.io.IOException", "java.util.List", "org.opencompare.api.java.PCMContainer", "org.opencompare.api.java.io.PCMDirection" ]
import java.io.File; import java.io.IOException; import java.util.List; import org.opencompare.api.java.PCMContainer; import org.opencompare.api.java.io.PCMDirection;
import java.io.*; import java.util.*; import org.opencompare.api.java.*; import org.opencompare.api.java.io.*;
[ "java.io", "java.util", "org.opencompare.api" ]
java.io; java.util; org.opencompare.api;
783,143
private void createStatisticsStore(SynapseEnvironmentService synEnvService) { //Ignoring statistics report observers registration if {StatisticsReporterDisabled =true} ServerConfiguration config = ServerConfiguration.getInstance(); String confstatisticsReporterDisabled = config.getFirstProperty("...
void function(SynapseEnvironmentService synEnvService) { ServerConfiguration config = ServerConfiguration.getInstance(); String confstatisticsReporterDisabled = config.getFirstProperty(STR); if (!STRmediation-stat-collector-STRenabledSTRenabledSTREnabling mediation statistics persistence. Statistics will be STRstored a...
/** * Create the statistics store using the synapse environment and configuration context. * * @param synEnvService information about synapse runtime */
Create the statistics store using the synapse environment and configuration context
createStatisticsStore
{ "repo_name": "maheshika/carbon-mediation", "path": "components/mediation-monitor/mediation-statistics/org.wso2.carbon.mediation.statistics/src/main/java/org/wso2/carbon/mediation/statistics/MediationStatisticsServiceComponent.java", "license": "apache-2.0", "size": 14596 }
[ "org.wso2.carbon.base.ServerConfiguration", "org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService" ]
import org.wso2.carbon.base.ServerConfiguration; import org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService;
import org.wso2.carbon.base.*; import org.wso2.carbon.mediation.initializer.services.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
624,483
public Value getTerm(IV iv);
Value function(IV iv);
/** * Return the RDF {@link Value} given an internal value (non-batch api). * * @return the RDF value or <code>null</code> if there is no term with * that internal value in the index. */
Return the RDF <code>Value</code> given an internal value (non-batch api)
getTerm
{ "repo_name": "smalyshev/blazegraph", "path": "bigdata-rdf/src/java/com/bigdata/rdf/store/IRawTripleStore.java", "license": "gpl-2.0", "size": 11815 }
[ "org.openrdf.model.Value" ]
import org.openrdf.model.Value;
import org.openrdf.model.*;
[ "org.openrdf.model" ]
org.openrdf.model;
1,838,123