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
Value copyOperation(AbstractInsnNode insn, Value value) throws AnalyzerException;
Value copyOperation(AbstractInsnNode insn, Value value) throws AnalyzerException;
/** * Interprets a bytecode instruction that moves a value on the stack or to * or from local variables. This method is called for the following opcodes: * * ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, * ASTORE, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, SWAP * ...
Interprets a bytecode instruction that moves a value on the stack or to or from local variables. This method is called for the following opcodes: ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, SWAP
copyOperation
{ "repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs", "path": "plugins/org.eclipse.persistence.asm/src/org/eclipse/persistence/internal/libraries/asm/tree/analysis/Interpreter.java", "license": "epl-1.0", "size": 9099 }
[ "org.eclipse.persistence.internal.libraries.asm.tree.AbstractInsnNode" ]
import org.eclipse.persistence.internal.libraries.asm.tree.AbstractInsnNode;
import org.eclipse.persistence.internal.libraries.asm.tree.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
1,504,666
public static void removeConsecutiveSeparators(JPopupMenu popupMenu) { for (int i = 1; i < popupMenu.getComponentCount(); i++) { if (isPopupMenuSeparator(popupMenu.getComponent(i))) { if (isPopupMenuSeparator(popupMenu.getComponent(i - 1))) { popupMenu.remove(...
static void function(JPopupMenu popupMenu) { for (int i = 1; i < popupMenu.getComponentCount(); i++) { if (isPopupMenuSeparator(popupMenu.getComponent(i))) { if (isPopupMenuSeparator(popupMenu.getComponent(i - 1))) { popupMenu.remove(i); i--; } } } }
/** * Removes all consecutive separators from the given menu. * <p> * For example, calling the method on the given menu: * <pre> * Menu Entry * Separator * Menu Entry * Separator * Separator * Menu Entry * </pre> * would result in: * <pr...
Removes all consecutive separators from the given menu. For example, calling the method on the given menu: <code> Menu Entry Separator Menu Entry Separator Separator Menu Entry </code> would result in: <code> Menu Entry Separator Menu Entry Separator Menu Entry </code>
removeConsecutiveSeparators
{ "repo_name": "j4nnis/bproxy", "path": "src/org/zaproxy/zap/view/popup/PopupMenuUtils.java", "license": "apache-2.0", "size": 20454 }
[ "javax.swing.JPopupMenu" ]
import javax.swing.JPopupMenu;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,393,972
public String toString() { StringBuilder sb = new StringBuilder(256); sb.append("UnicastResponse[") .append(host) .append(":") .append(port) .append(", ") .append(Arrays.asList(groups)) .append(", ") .append(registrar) .append("]"); return sb.toString(); }
String function() { StringBuilder sb = new StringBuilder(256); sb.append(STR) .append(host) .append(":") .append(port) .append(STR) .append(Arrays.asList(groups)) .append(STR) .append(registrar) .append("]"); return sb.toString(); }
/** * Returns a string representation of this response. * * @return a string representation of this response */
Returns a string representation of this response
toString
{ "repo_name": "pfirmstone/JGDMS", "path": "JGDMS/jgdms-platform/src/main/java/org/apache/river/discovery/UnicastResponse.java", "license": "apache-2.0", "size": 3757 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,639,334
public final void queueRequests( Vector<ThreadRequest> reqList) { m_queue.addRequests( reqList); }
final void function( Vector<ThreadRequest> reqList) { m_queue.addRequests( reqList); }
/** * Queue a number of requests to the thread pool for processing * * @param reqList Vector<ThreadRequest> */
Queue a number of requests to the thread pool for processing
queueRequests
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/alfresco-jlan/source/java/org/alfresco/jlan/server/thread/ThreadRequestPool.java", "license": "lgpl-3.0", "size": 13787 }
[ "java.util.Vector" ]
import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
264,239
private JPanel buildBody() { JPanel p = new JPanel(); double[][] size = {{TableLayout.FILL, TableLayout.FILL}, {TableLayout.PREFERRED, TableLayout.PREFERRED}}; p.setLayout(new TableLayout(size)); p.add(UIUtilities.setTextFont("Password:"), "0, 0"); p.add(field, "0, 1, 1, 1"); return UIUtilities...
JPanel function() { JPanel p = new JPanel(); double[][] size = {{TableLayout.FILL, TableLayout.FILL}, {TableLayout.PREFERRED, TableLayout.PREFERRED}}; p.setLayout(new TableLayout(size)); p.add(UIUtilities.setTextFont(STR), STR); p.add(field, STR); return UIUtilities.buildComponentPanel(p); }
/** * Builds the main pane. * * @return See above. */
Builds the main pane
buildBody
{ "repo_name": "simleo/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/treeviewer/util/PasswordDialog.java", "license": "gpl-2.0", "size": 6498 }
[ "info.clearthought.layout.TableLayout", "javax.swing.JPanel", "org.openmicroscopy.shoola.util.ui.UIUtilities" ]
import info.clearthought.layout.TableLayout; import javax.swing.JPanel; import org.openmicroscopy.shoola.util.ui.UIUtilities;
import info.clearthought.layout.*; import javax.swing.*; import org.openmicroscopy.shoola.util.ui.*;
[ "info.clearthought.layout", "javax.swing", "org.openmicroscopy.shoola" ]
info.clearthought.layout; javax.swing; org.openmicroscopy.shoola;
2,737,558
public ActionForward copyAllCurrencyAndCoin(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { CashReceiptForm crForm = (CashReceiptForm) form; CashReceiptDocument crDoc = crForm.getCashReceiptDocument(); crDoc.getConfirmedCu...
ActionForward function(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { CashReceiptForm crForm = (CashReceiptForm) form; CashReceiptDocument crDoc = crForm.getCashReceiptDocument(); crDoc.getConfirmedCurrencyDetail().copyAmounts(crDoc.getCurrencyDetail...
/** * Copies all original currency and coin amounts to cash manager confirmed currency and coin amounts. * * @param mapping * @param form * @param request * @param response * @return ActionForward * @throws Exception */
Copies all original currency and coin amounts to cash manager confirmed currency and coin amounts
copyAllCurrencyAndCoin
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-core/src/main/java/org/kuali/kfs/fp/document/web/struts/CashReceiptAction.java", "license": "agpl-3.0", "size": 19642 }
[ "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.apache.struts.action.ActionForm", "org.apache.struts.action.ActionForward", "org.apache.struts.action.ActionMapping", "org.kuali.kfs.fp.document.CashReceiptDocument", "org.kuali.kfs.sys.KFSConstants" ]
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.kuali.kfs.fp.document.CashReceiptDocument; import org.kuali.kfs.sys.KFSConstan...
import javax.servlet.http.*; import org.apache.struts.action.*; import org.kuali.kfs.fp.document.*; import org.kuali.kfs.sys.*;
[ "javax.servlet", "org.apache.struts", "org.kuali.kfs" ]
javax.servlet; org.apache.struts; org.kuali.kfs;
2,588,962
@Override public PullImageCmd pullImageCmd(String repository) { return new PullImageCmdImpl(getDockerCmdExecFactory().createPullImageCmdExec(), dockerClientConfig.effectiveAuthConfig(repository), repository); }
PullImageCmd function(String repository) { return new PullImageCmdImpl(getDockerCmdExecFactory().createPullImageCmdExec(), dockerClientConfig.effectiveAuthConfig(repository), repository); }
/** * * IMAGE API * */
IMAGE API
pullImageCmd
{ "repo_name": "ollie314/docker-java", "path": "src/main/java/com/github/dockerjava/core/DockerClientImpl.java", "license": "apache-2.0", "size": 19985 }
[ "com.github.dockerjava.api.command.PullImageCmd", "com.github.dockerjava.core.command.PullImageCmdImpl" ]
import com.github.dockerjava.api.command.PullImageCmd; import com.github.dockerjava.core.command.PullImageCmdImpl;
import com.github.dockerjava.api.command.*; import com.github.dockerjava.core.command.*;
[ "com.github.dockerjava" ]
com.github.dockerjava;
1,688,121
public synchronized static String get(final String aKey) { final String tmpResult = (String)provider.getMessages().get(aKey); if (tmpResult == null) { Exception e = new Exception("ResourceProviderME.get no value for " + "key=" + aKey); System.err.println(e.getMessage()); e.printStackTrace(); ...
synchronized static String function(final String aKey) { final String tmpResult = (String)provider.getMessages().get(aKey); if (tmpResult == null) { Exception e = new Exception(STR + "key=" + aKey); System.err.println(e.getMessage()); e.printStackTrace(); Logger logger = Logger.getLogger(STR); logger.severe(e.getMessag...
/** * Returns message identified by given key. * @param aKey * @return message identified by given key */
Returns message identified by given key
get
{ "repo_name": "ckaestne/LEADT", "path": "workspace/MobileRSSReader_Benchmark/src/cz/cacek/ebook/util/ResourceProviderME.java", "license": "gpl-3.0", "size": 10354 }
[ "net.sf.jlogmicro.util.logging.Logger" ]
import net.sf.jlogmicro.util.logging.Logger;
import net.sf.jlogmicro.util.logging.*;
[ "net.sf.jlogmicro" ]
net.sf.jlogmicro;
1,415,293
@VisibleForTesting void recordNewServerWithLock(final ServerName serverName, final ServerMetrics sl) { LOG.info("Registering regionserver=" + serverName); this.onlineServers.put(serverName, sl); this.rsAdmins.remove(serverName); }
void recordNewServerWithLock(final ServerName serverName, final ServerMetrics sl) { LOG.info(STR + serverName); this.onlineServers.put(serverName, sl); this.rsAdmins.remove(serverName); }
/** * Adds the onlineServers list. onlineServers should be locked. * @param serverName The remote servers name. */
Adds the onlineServers list. onlineServers should be locked
recordNewServerWithLock
{ "repo_name": "Eshcar/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java", "license": "apache-2.0", "size": 47935 }
[ "org.apache.hadoop.hbase.ServerMetrics", "org.apache.hadoop.hbase.ServerName" ]
import org.apache.hadoop.hbase.ServerMetrics; import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,512,786
public static String jsonExtractSubnetMask(String fmJson) throws IOException { String subnet_mask = ""; MappingJsonFactory f = new MappingJsonFactory(); JsonParser jp; try { jp = f.createJsonParser(fmJson); } catch (JsonParseException e) { throw new I...
static String function(String fmJson) throws IOException { String subnet_mask = STRExpected START_OBJECTSTRExpected FIELD_NAMESTRSTRsubnet-mask") { subnet_mask = jp.getText(); break; } } return subnet_mask; }
/** * Extracts subnet mask from a JSON string * @param fmJson The JSON formatted string * @return The subnet mask * @throws IOException If there was an error parsing the JSON */
Extracts subnet mask from a JSON string
jsonExtractSubnetMask
{ "repo_name": "hgupta2/floodlight2", "path": "src/main/java/net/floodlightcontroller/firewall/FirewallResource.java", "license": "apache-2.0", "size": 4177 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
76,280
boolean offer(Serializable event);
boolean offer(Serializable event);
/** * Offers an event to the client. * @param event the subject event * @return {@code true} if the client's queue accepted the event, * {@code false} if the client's queue is full */
Offers an event to the client
offer
{ "repo_name": "OuZhencong/logback", "path": "logback-core/src/main/java/ch/qos/logback/core/net/server/RemoteReceiverClient.java", "license": "mit", "size": 1327 }
[ "java.io.Serializable" ]
import java.io.Serializable;
import java.io.*;
[ "java.io" ]
java.io;
316,993
public boolean addComponentParts(World worldIn, Random randomIn, StructureBoundingBox structureBoundingBoxIn) { if (this.averageGroundLvl < 0) { this.averageGroundLvl = this.getAverageGroundLevel(worldIn, structureBoundingBoxIn); ...
boolean function(World worldIn, Random randomIn, StructureBoundingBox structureBoundingBoxIn) { if (this.averageGroundLvl < 0) { this.averageGroundLvl = this.getAverageGroundLevel(worldIn, structureBoundingBoxIn); if (this.averageGroundLvl < 0) { return true; } this.boundingBox.offset(0, this.averageGroundLvl - this.bo...
/** * second Part of Structure generating, this for example places Spiderwebs, Mob Spawners, it closes * Mineshafts at the end, it adds Fences... */
second Part of Structure generating, this for example places Spiderwebs, Mob Spawners, it closes Mineshafts at the end, it adds Fences..
addComponentParts
{ "repo_name": "Severed-Infinity/technium", "path": "build/tmp/recompileMc/sources/net/minecraft/world/gen/structure/StructureVillagePieces.java", "license": "gpl-3.0", "size": 136529 }
[ "java.util.Random", "net.minecraft.block.BlockLadder", "net.minecraft.block.BlockStairs", "net.minecraft.block.material.Material", "net.minecraft.block.state.IBlockState", "net.minecraft.init.Blocks", "net.minecraft.util.EnumFacing", "net.minecraft.world.World" ]
import java.util.Random; import net.minecraft.block.BlockLadder; import net.minecraft.block.BlockStairs; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.util.EnumFacing; import net.minecraft.world.World;
import java.util.*; import net.minecraft.block.*; import net.minecraft.block.material.*; import net.minecraft.block.state.*; import net.minecraft.init.*; import net.minecraft.util.*; import net.minecraft.world.*;
[ "java.util", "net.minecraft.block", "net.minecraft.init", "net.minecraft.util", "net.minecraft.world" ]
java.util; net.minecraft.block; net.minecraft.init; net.minecraft.util; net.minecraft.world;
1,691,396
public static <T> ComposableFuture<T> doubleDispatch(final long duration, final TimeUnit unit, final FutureAction<T> action) { return EagerComposableFuture.doubleDispatch(action, duration, unit, getScheduler()); }
static <T> ComposableFuture<T> function(final long duration, final TimeUnit unit, final FutureAction<T> action) { return EagerComposableFuture.doubleDispatch(action, duration, unit, getScheduler()); }
/** * creates a future that fires the first future immediately and a second one after a specified time period * if result hasn't arrived yet. * should be used with eager futures. * * @param duration time to wait until the second future is fired * @param unit the duration time unit * @param acti...
creates a future that fires the first future immediately and a second one after a specified time period if result hasn't arrived yet. should be used with eager futures
doubleDispatch
{ "repo_name": "outbrain/ob1k", "path": "ob1k-concurrent/src/main/java/com/outbrain/ob1k/concurrent/ComposableFutures.java", "license": "apache-2.0", "size": 33207 }
[ "com.outbrain.ob1k.concurrent.eager.EagerComposableFuture", "com.outbrain.ob1k.concurrent.handlers.FutureAction", "java.util.concurrent.TimeUnit" ]
import com.outbrain.ob1k.concurrent.eager.EagerComposableFuture; import com.outbrain.ob1k.concurrent.handlers.FutureAction; import java.util.concurrent.TimeUnit;
import com.outbrain.ob1k.concurrent.eager.*; import com.outbrain.ob1k.concurrent.handlers.*; import java.util.concurrent.*;
[ "com.outbrain.ob1k", "java.util" ]
com.outbrain.ob1k; java.util;
2,562,413
public void testWhitespacePattern() throws IOException { // Split on whitespace patterns, do not lowercase, no stopwords PatternAnalyzer a = new PatternAnalyzer(Pattern.compile("\\s+"), false, null); assertAnalyzesTo(a, "The quick brown Fox,the abcd1234 (56.78) dc.", new String[] {...
void function() throws IOException { PatternAnalyzer a = new PatternAnalyzer(Pattern.compile("\\s+"), false, null); assertAnalyzesTo(a, STR, new String[] { "The", "quick", "brown", STR, STR, STR, "dc." }); PatternAnalyzer b = new PatternAnalyzer(Pattern.compile("\\s+"), true, EnglishAnalyzer.ENGLISH_STOP_WORDS_SET); as...
/** * Test PatternAnalyzer when it is configured with a whitespace pattern. * Behavior can be similar to WhitespaceAnalyzer (depending upon options) */
Test PatternAnalyzer when it is configured with a whitespace pattern. Behavior can be similar to WhitespaceAnalyzer (depending upon options)
testWhitespacePattern
{ "repo_name": "robin13/elasticsearch", "path": "modules/analysis-common/src/test/java/org/elasticsearch/analysis/common/PatternAnalyzerTests.java", "license": "apache-2.0", "size": 4791 }
[ "java.io.IOException", "java.util.regex.Pattern", "org.apache.lucene.analysis.en.EnglishAnalyzer" ]
import java.io.IOException; import java.util.regex.Pattern; import org.apache.lucene.analysis.en.EnglishAnalyzer;
import java.io.*; import java.util.regex.*; import org.apache.lucene.analysis.en.*;
[ "java.io", "java.util", "org.apache.lucene" ]
java.io; java.util; org.apache.lucene;
783,458
public static Date add(Date date, Duration duration) { Calendar c = Calendar.getInstance(); c.setTime(date); c.add(Calendar.YEAR, (duration.m_positive ? 1 : -1) * duration.m_years); c.add(Calendar.MONTH, (duration.m_positive ? 1 : -1) * duration.m_months); c.add(Calendar.DATE, ...
static Date function(Date date, Duration duration) { Calendar c = Calendar.getInstance(); c.setTime(date); c.add(Calendar.YEAR, (duration.m_positive ? 1 : -1) * duration.m_years); c.add(Calendar.MONTH, (duration.m_positive ? 1 : -1) * duration.m_months); c.add(Calendar.DATE, (duration.m_positive ? 1 : -1) * duration.m_...
/** * Add a duration to a date and return the date plus the specified increment. * * @param date - the initial date * @param duration - the duration to add on to the date (the duration may be negative) * @return the adjusted date. */
Add a duration to a date and return the date plus the specified increment
add
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/data-model/source/java/org/alfresco/service/cmr/repository/datatype/Duration.java", "license": "lgpl-3.0", "size": 32645 }
[ "java.util.Calendar", "java.util.Date" ]
import java.util.Calendar; import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,573,123
//----------------------------------------------------------------------- public MetaProperty<Currency> currency() { return _currency; }
MetaProperty<Currency> function() { return _currency; }
/** * The meta-property for the {@code currency} property. * @return the meta-property, not null */
The meta-property for the currency property
currency
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Core/src/main/java/com/opengamma/core/marketdatasnapshot/YieldCurveKey.java", "license": "apache-2.0", "size": 11958 }
[ "com.opengamma.util.money.Currency", "org.joda.beans.MetaProperty" ]
import com.opengamma.util.money.Currency; import org.joda.beans.MetaProperty;
import com.opengamma.util.money.*; import org.joda.beans.*;
[ "com.opengamma.util", "org.joda.beans" ]
com.opengamma.util; org.joda.beans;
2,567,551
public static RegistrationSummaryDTO toRegistrationSummaryDTO(RegistrationSummary registrationSummary) { RegistrationSummaryDTO registrationSummaryDTO = new RegistrationSummaryDTO(); registrationSummaryDTO.setKeyManagerInfo(toKeyManagerInfoDTO(registrationSummary)); registrationSummaryDTO.se...
static RegistrationSummaryDTO function(RegistrationSummary registrationSummary) { RegistrationSummaryDTO registrationSummaryDTO = new RegistrationSummaryDTO(); registrationSummaryDTO.setKeyManagerInfo(toKeyManagerInfoDTO(registrationSummary)); registrationSummaryDTO.setAnalyticsInfo(toAnalyticsDTO(registrationSummary))...
/** * Converts the Gateway registration summary into RegistrationSummaryDTO * * @param registrationSummary the registration summary required by gateway * @return RegistrationSummaryDTO */
Converts the Gateway registration summary into RegistrationSummaryDTO
toRegistrationSummaryDTO
{ "repo_name": "abimarank/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.core/src/main/java/org/wso2/carbon/apimgt/rest/api/core/utils/MappingUtil.java", "license": "apache-2.0", "size": 15421 }
[ "org.wso2.carbon.apimgt.core.models.RegistrationSummary", "org.wso2.carbon.apimgt.rest.api.core.dto.RegistrationSummaryDTO" ]
import org.wso2.carbon.apimgt.core.models.RegistrationSummary; import org.wso2.carbon.apimgt.rest.api.core.dto.RegistrationSummaryDTO;
import org.wso2.carbon.apimgt.core.models.*; import org.wso2.carbon.apimgt.rest.api.core.dto.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
2,327,841
public ArrayList getDatabases();
ArrayList function();
/** * Get an ArrayList of defined DatabaseInfo objects. * * @return an ArrayList of defined DatabaseInfo objects. */
Get an ArrayList of defined DatabaseInfo objects
getDatabases
{ "repo_name": "ontometrics/ontokettle", "path": "src/be/ibridge/kettle/trans/HasDatabasesInterface.java", "license": "lgpl-2.1", "size": 3023 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,371,291
public java.util.List<fr.lip6.move.pnml.symmetricnet.terms.hlapi.VariableHLAPI> getSubterm_terms_VariableHLAPI(){ java.util.List<fr.lip6.move.pnml.symmetricnet.terms.hlapi.VariableHLAPI> retour = new ArrayList<fr.lip6.move.pnml.symmetricnet.terms.hlapi.VariableHLAPI>(); for (Term elemnt : getSubterm()) { ...
java.util.List<fr.lip6.move.pnml.symmetricnet.terms.hlapi.VariableHLAPI> function(){ java.util.List<fr.lip6.move.pnml.symmetricnet.terms.hlapi.VariableHLAPI> retour = new ArrayList<fr.lip6.move.pnml.symmetricnet.terms.hlapi.VariableHLAPI>(); for (Term elemnt : getSubterm()) { if(elemnt.getClass().equals(fr.lip6.move.pn...
/** * This accessor return a list of encapsulated subelement, only of VariableHLAPI kind. * WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of VariableHLAPI kind. WARNING : this method can creates a lot of new object in memory
getSubterm_terms_VariableHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/integers/hlapi/NumberConstantHLAPI.java", "license": "epl-1.0", "size": 94704 }
[ "fr.lip6.move.pnml.symmetricnet.terms.Term", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.symmetricnet.terms.Term; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.symmetricnet.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
1,041,952
public static String getOutputValueName(@Nullable final String outputPrefix, @Nonnull final Map<String, String> outputMapper, @Nonnull final Field field) { String name = outputMapper.get(field.getName()); if (nam...
static String function(@Nullable final String outputPrefix, @Nonnull final Map<String, String> outputMapper, @Nonnull final Field field) { String name = outputMapper.get(field.getName()); if (name == null) { name = field.getName(); if (!Strings.isNullOrEmpty(outputPrefix) && !outputPrefix.trim().isEmpty()) { name = out...
/** * Calculate the name of the output value. * * @param outputPrefix a nullable prefix to prepend to the name if non-null and non-empty * @param outputMapper the name mapper * @param field the field containing the value */
Calculate the name of the output value
getOutputValueName
{ "repo_name": "Galigeo/mapfish-print", "path": "core/src/main/java/org/mapfish/print/processor/ProcessorUtils.java", "license": "bsd-2-clause", "size": 6629 }
[ "com.google.common.base.Strings", "java.lang.reflect.Field", "java.util.Map", "javax.annotation.Nonnull", "javax.annotation.Nullable" ]
import com.google.common.base.Strings; import java.lang.reflect.Field; import java.util.Map; import javax.annotation.Nonnull; import javax.annotation.Nullable;
import com.google.common.base.*; import java.lang.reflect.*; import java.util.*; import javax.annotation.*;
[ "com.google.common", "java.lang", "java.util", "javax.annotation" ]
com.google.common; java.lang; java.util; javax.annotation;
590,713
@Test public void testDeletePlateAcquisitionWithNonSharableAnnotations() throws Exception { Plate p; PlateAcquisition pa = null; StringBuilder sb; ParametersI param; List<Long> annotationIds = new ArrayList<Long>(); p = (Plate) iUpdate.saveAndReturnObj...
void function() throws Exception { Plate p; PlateAcquisition pa = null; StringBuilder sb; ParametersI param; List<Long> annotationIds = new ArrayList<Long>(); p = (Plate) iUpdate.saveAndReturnObject(mmFactory.createPlate(1, 1, 1, 1, false)); sb = new StringBuilder(); param = new ParametersI(); param.addLong(STR, p.getI...
/** * Test to delete a plate with sharable annotations linked to the well and * well samples and plate with Plate acquisition and annotation. * * @throws Exception * Thrown if an error occurred. */
Test to delete a plate with sharable annotations linked to the well and well samples and plate with Plate acquisition and annotation
testDeletePlateAcquisitionWithNonSharableAnnotations
{ "repo_name": "manics/openmicroscopy", "path": "components/tools/OmeroJava/test/integration/DeleteServiceTest.java", "license": "gpl-2.0", "size": 157640 }
[ "java.util.ArrayList", "java.util.List", "org.testng.Assert" ]
import java.util.ArrayList; import java.util.List; import org.testng.Assert;
import java.util.*; import org.testng.*;
[ "java.util", "org.testng" ]
java.util; org.testng;
1,793,564
private final IMatrix __computeExperimentSet(final IExperimentSet data, final Logger logger) { final IMatrix[] matrices; final ArrayList<Future<IMatrix>> tasks; final IMatrix result; String name; name = null; if ((logger != null) && (logger.isLoggable(Level.FINER))) { name = this....
final IMatrix function(final IExperimentSet data, final Logger logger) { final IMatrix[] matrices; final ArrayList<Future<IMatrix>> tasks; final IMatrix result; String name; name = null; if ((logger != null) && (logger.isLoggable(Level.FINER))) { name = this.getNameForLogging(); logger.finer(STR + name + '.'); } tasks ...
/** * Compute the aggregate per experiment set * * @param data * the data * @param logger * the logger * @return the aggregated data */
Compute the aggregate per experiment set
__computeExperimentSet
{ "repo_name": "optimizationBenchmarking/evaluator-attributes", "path": "src/main/java/org/optimizationBenchmarking/evaluator/attributes/functions/aggregation2D/Aggregation2D.java", "license": "gpl-3.0", "size": 21465 }
[ "java.util.ArrayList", "java.util.concurrent.Future", "java.util.logging.Level", "java.util.logging.Logger" ]
import java.util.ArrayList; import java.util.concurrent.Future; import java.util.logging.Level; import java.util.logging.Logger;
import java.util.*; import java.util.concurrent.*; import java.util.logging.*;
[ "java.util" ]
java.util;
2,633,719
public static boolean isRemoteIndex(final String index) { return index.indexOf(RemoteClusterAware.REMOTE_CLUSTER_INDEX_SEPARATOR) != -1; }
static boolean function(final String index) { return index.indexOf(RemoteClusterAware.REMOTE_CLUSTER_INDEX_SEPARATOR) != -1; }
/** * Predicate to test if the index name represents the name of a remote index. * * @param index the index name * @return true if the collection of indices contains a remote index, otherwise false */
Predicate to test if the index name represents the name of a remote index
isRemoteIndex
{ "repo_name": "robin13/elasticsearch", "path": "x-pack/plugin/core/src/main/java/org/elasticsearch/license/RemoteClusterLicenseChecker.java", "license": "apache-2.0", "size": 12927 }
[ "org.elasticsearch.transport.RemoteClusterAware" ]
import org.elasticsearch.transport.RemoteClusterAware;
import org.elasticsearch.transport.*;
[ "org.elasticsearch.transport" ]
org.elasticsearch.transport;
726,256
public static void deleteLocalDataLoadFolderLocation(String tempLocationKey, String tableName) { // form local store location final String localStoreLocations = CarbonProperties.getInstance().getProperty(tempLocationKey); if (localStoreLocations == null) { throw new RuntimeException("Store location...
static void function(String tempLocationKey, String tableName) { final String localStoreLocations = CarbonProperties.getInstance().getProperty(tempLocationKey); if (localStoreLocations == null) { throw new RuntimeException(STR + tempLocationKey); }
/** * * This method will delete the local data load folder location after data load is complete * * @param tempLocationKey temporary location set in carbon properties * @param tableName */
This method will delete the local data load folder location after data load is complete
deleteLocalDataLoadFolderLocation
{ "repo_name": "manishgupta88/carbondata", "path": "processing/src/main/java/org/apache/carbondata/processing/loading/TableProcessingOperations.java", "license": "apache-2.0", "size": 6711 }
[ "org.apache.carbondata.core.util.CarbonProperties" ]
import org.apache.carbondata.core.util.CarbonProperties;
import org.apache.carbondata.core.util.*;
[ "org.apache.carbondata" ]
org.apache.carbondata;
2,211,320
@Override public Object lookupLink(Name name) throws NamingException { return lookup(name, false); }
Object function(Name name) throws NamingException { return lookup(name, false); }
/** * Retrieves the named object, following links except for the terminal * atomic component of the name. If the object bound to name is not a * link, returns the object itself. * * @param name the name of the object to look up * @return the object bound to name, not following the te...
Retrieves the named object, following links except for the terminal atomic component of the name. If the object bound to name is not a link, returns the object itself
lookupLink
{ "repo_name": "Nipuni/carbon-jndi", "path": "components/org.wso2.carbon.jndi/src/main/java/org/wso2/carbon/jndi/internal/impl/NamingContext.java", "license": "apache-2.0", "size": 34178 }
[ "javax.naming.Name", "javax.naming.NamingException" ]
import javax.naming.Name; import javax.naming.NamingException;
import javax.naming.*;
[ "javax.naming" ]
javax.naming;
2,758,117
@Override protected String doExecute() { String result; Object fileObj; File file; FileReader freader; BufferedReader breader; Yaml yaml; Object obj; result = null; fileObj = m_InputToken.getPayload(); if (fileObj instanceof File) file = (File) fileObj; else...
String function() { String result; Object fileObj; File file; FileReader freader; BufferedReader breader; Yaml yaml; Object obj; result = null; fileObj = m_InputToken.getPayload(); if (fileObj instanceof File) file = (File) fileObj; else file = new PlaceholderFile((String) fileObj); freader = null; breader = null; try ...
/** * Executes the flow item. * * @return null if everything is fine, otherwise error message */
Executes the flow item
doExecute
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-yaml/src/main/java/adams/flow/transformer/YamlFileReader.java", "license": "gpl-3.0", "size": 6749 }
[ "java.io.BufferedReader", "java.io.File", "java.io.FileReader", "java.util.List", "java.util.Map", "org.yaml.snakeyaml.Yaml" ]
import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.util.List; import java.util.Map; import org.yaml.snakeyaml.Yaml;
import java.io.*; import java.util.*; import org.yaml.snakeyaml.*;
[ "java.io", "java.util", "org.yaml.snakeyaml" ]
java.io; java.util; org.yaml.snakeyaml;
937,805
public void init(Stage.Context context, String prefix, List<Stage.ConfigIssue> issues) { // Load JDBC driver try { Class.forName(hiveJDBCDriver); } catch (ClassNotFoundException e) { issues.add(context.createConfigIssue( Groups.HIVE.name(), JOINER.join(prefix, "hiveJDBCDriv...
void function(Stage.Context context, String prefix, List<Stage.ConfigIssue> issues) { try { Class.forName(hiveJDBCDriver); } catch (ClassNotFoundException e) { issues.add(context.createConfigIssue( Groups.HIVE.name(), JOINER.join(prefix, STR), Errors.HIVE_15, hiveJDBCDriver )); } File hiveConfDir = new File(confDir); i...
/** * Initialize and validate configuration options. */
Initialize and validate configuration options
init
{ "repo_name": "studanshu/datacollector", "path": "hive-protolib/src/main/java/com/streamsets/pipeline/stage/lib/hive/HiveConfigBean.java", "license": "apache-2.0", "size": 8495 }
[ "com.streamsets.datacollector.security.HadoopSecurityUtil", "com.streamsets.pipeline.api.Stage", "com.streamsets.pipeline.api.impl.Utils", "java.io.File", "java.util.List", "java.util.Map", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.CommonConfigurationKeys", "org.apache.hadoop.fs....
import com.streamsets.datacollector.security.HadoopSecurityUtil; import com.streamsets.pipeline.api.Stage; import com.streamsets.pipeline.api.impl.Utils; import java.io.File; import java.util.List; import java.util.Map; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.CommonConfigurationKeys; im...
import com.streamsets.datacollector.security.*; import com.streamsets.pipeline.api.*; import com.streamsets.pipeline.api.impl.*; import java.io.*; import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hive.conf.*; import org.apache.hadoop.security.*;
[ "com.streamsets.datacollector", "com.streamsets.pipeline", "java.io", "java.util", "org.apache.hadoop" ]
com.streamsets.datacollector; com.streamsets.pipeline; java.io; java.util; org.apache.hadoop;
2,448,642
List<String> getParameterList(String name);
List<String> getParameterList(String name);
/** * Get a multi-value query parameter by name. */
Get a multi-value query parameter by name
getParameterList
{ "repo_name": "barchart/barchart-netty4", "path": "server/src/main/java/com/barchart/netty/server/http/request/HttpServerRequest.java", "license": "bsd-3-clause", "size": 3309 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,791,609
public Reading getReadingConstraint(int position) { Reading constraint = sentence.getReadingConstraint(position); if (constraint != null) { Reading invertedConstraint = new Reading(constraint.start, constraint.length, TextUtil.invertKanaCase(constraint.text)); return invertedConstraint; }...
Reading function(int position) { Reading constraint = sentence.getReadingConstraint(position); if (constraint != null) { Reading invertedConstraint = new Reading(constraint.start, constraint.length, TextUtil.invertKanaCase(constraint.text)); return invertedConstraint; } return null; }
/** * Gets a reading constraint set on the currently analysed text * * @param position The index within the sentence to get the constraint at * @return The constraint */
Gets a reading constraint set on the currently analysed text
getReadingConstraint
{ "repo_name": "aymkam/lucene-gosen", "path": "src/java/net/java/sen/ReadingProcessor.java", "license": "lgpl-2.1", "size": 20299 }
[ "net.java.sen.dictionary.Reading", "net.java.sen.util.TextUtil" ]
import net.java.sen.dictionary.Reading; import net.java.sen.util.TextUtil;
import net.java.sen.dictionary.*; import net.java.sen.util.*;
[ "net.java.sen" ]
net.java.sen;
879,066
public IO_Bundle sendStuffToMap(String avatar_name, Enum key_command, int width, int height, String optional_text) { if (!who_I_am_providing_internet_to_.isUsingInternet()) { System.err.println("Impossible exception - Controller is using internet and not using internet"); System.exit...
IO_Bundle function(String avatar_name, Enum key_command, int width, int height, String optional_text) { if (!who_I_am_providing_internet_to_.isUsingInternet()) { System.err.println(STR); System.exit(-87); } if (!is_internet_connected) { final int error_code = makeConnectionUsingIP_Address(STR); if (error_code == 0) { }...
/** * Use this function to send commands to the Map over TCP/UDP sockets * * @author John-Michael Reed * @param avatar_name - name of the avatar to control * @param key_command - command that the map will execute * @param width - width from center of map to rightmost or leftmost edge. ...
Use this function to send commands to the Map over TCP/UDP sockets
sendStuffToMap
{ "repo_name": "JohnReedLOL/Nineteen_Characters", "path": "src/src/Not_part_of_iteration_2_requirements/ControllerInternet_NEW.java", "license": "apache-2.0", "size": 10838 }
[ "java.net.DatagramPacket" ]
import java.net.DatagramPacket;
import java.net.*;
[ "java.net" ]
java.net;
1,865,002
public static <T> T splitEachLine(InputStream stream, Pattern pattern, String charset, Closure<T> closure) throws IOException { return splitEachLine(new BufferedReader(new InputStreamReader(stream, charset)), pattern, closure); }
static <T> T function(InputStream stream, Pattern pattern, String charset, Closure<T> closure) throws IOException { return splitEachLine(new BufferedReader(new InputStreamReader(stream, charset)), pattern, closure); }
/** * Iterates through the given InputStream line by line using the specified * encoding, splitting each line using the given separator Pattern. The list of tokens * for each line is then passed to the given closure. Finally, the stream * is closed. * * @param stream an InputStream ...
Iterates through the given InputStream line by line using the specified encoding, splitting each line using the given separator Pattern. The list of tokens for each line is then passed to the given closure. Finally, the stream is closed
splitEachLine
{ "repo_name": "xien777/yajsw", "path": "yajsw/wrapper/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "lgpl-2.1", "size": 704150 }
[ "groovy.lang.Closure", "java.io.BufferedReader", "java.io.IOException", "java.io.InputStream", "java.io.InputStreamReader", "java.util.regex.Pattern" ]
import groovy.lang.Closure; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.regex.Pattern;
import groovy.lang.*; import java.io.*; import java.util.regex.*;
[ "groovy.lang", "java.io", "java.util" ]
groovy.lang; java.io; java.util;
2,416,074
// read last update time of products integrationState = IntegrationState.getIntegrationStateFor(AnwSalesOrderDto.class); // get SAP Anywhere sales order List<AnwSalesOrderDto> anwSalesOrders = new ArrayList<AnwSalesOrderDto>(); List<AnwSalesOrderDto> anwSalesOrdersPage = new ArrayList<A...
integrationState = IntegrationState.getIntegrationStateFor(AnwSalesOrderDto.class); List<AnwSalesOrderDto> anwSalesOrders = new ArrayList<AnwSalesOrderDto>(); List<AnwSalesOrderDto> anwSalesOrdersPage = new ArrayList<AnwSalesOrderDto>(); int offset = 0; do { UrlBuilder urlBuilder = new UrlBuilder() .append(AnwUrlUtil.g...
/** * Get list of SAP Anywhere sales order data transfer objects ordered by updateTime. * * @return List<AnwSalesOrderDto> * @throws Exception */
Get list of SAP Anywhere sales order data transfer objects ordered by updateTime
getAnwSalesOrders
{ "repo_name": "sapanywhereai/anywhere-api-sample", "path": "IntegrationDemoApp/src/main/java/com/sap/integration/salesorder/SalesOrderService.java", "license": "apache-2.0", "size": 4852 }
[ "com.sap.integration.anywhere.AccessTokenGetter", "com.sap.integration.anywhere.AnwErrorCode", "com.sap.integration.anywhere.AnwErrorObject", "com.sap.integration.anywhere.AnwSimpleResponse", "com.sap.integration.anywhere.IntegrationState", "com.sap.integration.anywhere.url.AnwUrlUtil", "com.sap.integra...
import com.sap.integration.anywhere.AccessTokenGetter; import com.sap.integration.anywhere.AnwErrorCode; import com.sap.integration.anywhere.AnwErrorObject; import com.sap.integration.anywhere.AnwSimpleResponse; import com.sap.integration.anywhere.IntegrationState; import com.sap.integration.anywhere.url.AnwUrlUtil; im...
import com.sap.integration.anywhere.*; import com.sap.integration.anywhere.url.*; import com.sap.integration.salesorder.model.*; import com.sap.integration.utils.*; import com.sap.integration.utils.configuration.*; import java.util.*; import org.apache.commons.httpclient.*; import org.apache.commons.lang.*; import org....
[ "com.sap.integration", "java.util", "org.apache.commons", "org.apache.http", "org.springframework.util" ]
com.sap.integration; java.util; org.apache.commons; org.apache.http; org.springframework.util;
659,286
public static SensorParserConfig fromBytes(byte[] config) throws IOException { SensorParserConfig ret = JSONUtils.INSTANCE.load(new String(config, StandardCharsets.UTF_8), SensorParserConfig.class); ret.init(); return ret; }
static SensorParserConfig function(byte[] config) throws IOException { SensorParserConfig ret = JSONUtils.INSTANCE.load(new String(config, StandardCharsets.UTF_8), SensorParserConfig.class); ret.init(); return ret; }
/** * Creates a SensorParserConfig from the raw bytes of a Json string. * * @param config The raw bytes value of the config as a Json string * @return SensorParserConfig containing the configuration * @throws IOException If the config cannot be loaded */
Creates a SensorParserConfig from the raw bytes of a Json string
fromBytes
{ "repo_name": "JonZeolla/metron", "path": "metron-platform/metron-common/src/main/java/org/apache/metron/common/configuration/SensorParserConfig.java", "license": "apache-2.0", "size": 17080 }
[ "java.io.IOException", "java.nio.charset.StandardCharsets", "org.apache.metron.common.utils.JSONUtils" ]
import java.io.IOException; import java.nio.charset.StandardCharsets; import org.apache.metron.common.utils.JSONUtils;
import java.io.*; import java.nio.charset.*; import org.apache.metron.common.utils.*;
[ "java.io", "java.nio", "org.apache.metron" ]
java.io; java.nio; org.apache.metron;
154,402
public static VectorGenerator parallelogram(Vector bounds, long seed) { A.ensure(bounds.size() != 0, "bounds.size() != 0"); UniformRandomProducer[] producers = new UniformRandomProducer[bounds.size()]; for (int i = 0; i < producers.length; i++) producers[i] = new UniformRandomPr...
static VectorGenerator function(Vector bounds, long seed) { A.ensure(bounds.size() != 0, STR); UniformRandomProducer[] producers = new UniformRandomProducer[bounds.size()]; for (int i = 0; i < producers.length; i++) producers[i] = new UniformRandomProducer(-bounds.get(i), bounds.get(i), seed *= 2); return RandomProduce...
/** * Returns vector generator of vectors from multidimension uniform distribution around zero. * * @param bounds Parallelogram bounds. * @param seed Seed. * @return Generator. */
Returns vector generator of vectors from multidimension uniform distribution around zero
parallelogram
{ "repo_name": "ilantukh/ignite", "path": "modules/ml/src/main/java/org/apache/ignite/ml/util/generators/primitives/vector/VectorGeneratorPrimitives.java", "license": "apache-2.0", "size": 5598 }
[ "org.apache.ignite.internal.util.typedef.internal.A", "org.apache.ignite.ml.math.primitives.vector.Vector", "org.apache.ignite.ml.util.generators.primitives.scalar.RandomProducer", "org.apache.ignite.ml.util.generators.primitives.scalar.UniformRandomProducer" ]
import org.apache.ignite.internal.util.typedef.internal.A; import org.apache.ignite.ml.math.primitives.vector.Vector; import org.apache.ignite.ml.util.generators.primitives.scalar.RandomProducer; import org.apache.ignite.ml.util.generators.primitives.scalar.UniformRandomProducer;
import org.apache.ignite.internal.util.typedef.internal.*; import org.apache.ignite.ml.math.primitives.vector.*; import org.apache.ignite.ml.util.generators.primitives.scalar.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,133,287
public Result execute(Result previousResult, int nr) { Result result = previousResult; result.setNrErrors(0); result.setResult(true); return result; }
Result function(Result previousResult, int nr) { Result result = previousResult; result.setNrErrors(0); result.setResult(true); return result; }
/** * Execute this job entry and return the result. * In this case it means, just set the result boolean in the Result class. * @param previousResult The result of the previous execution * @return The Result of the execution. */
Execute this job entry and return the result. In this case it means, just set the result boolean in the Result class
execute
{ "repo_name": "jjeb/kettle-trunk", "path": "engine/src/org/pentaho/di/job/entries/success/JobEntrySuccess.java", "license": "apache-2.0", "size": 3478 }
[ "org.pentaho.di.core.Result" ]
import org.pentaho.di.core.Result;
import org.pentaho.di.core.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,084,941
List<Integer> getSelectedChildIndices(@NonNull GroupType group); /** * Returns a list, which contains the indices of all currently selected child items of the * group, which belongs to a specific index. * * @param groupIndex * The index of the group, the child items, whose indi...
List<Integer> getSelectedChildIndices(@NonNull GroupType group); /** * Returns a list, which contains the indices of all currently selected child items of the * group, which belongs to a specific index. * * @param groupIndex * The index of the group, the child items, whose indices should be returned, belong to, * as an...
/** * Returns a list, which contains the indices of all currently selected child items of a * specific group. * * @param group * The group, the child items, whose indices should be returned, belong to, as an * instance of the generic type GroupType. The group may not be nul...
Returns a list, which contains the indices of all currently selected child items of a specific group
getSelectedChildIndices
{ "repo_name": "michael-rapp/AndroidAdapters", "path": "library/src/main/java/de/mrapp/android/adapter/MultipleChoiceExpandableListAdapter.java", "license": "apache-2.0", "size": 38938 }
[ "androidx.annotation.NonNull", "java.util.List" ]
import androidx.annotation.NonNull; import java.util.List;
import androidx.annotation.*; import java.util.*;
[ "androidx.annotation", "java.util" ]
androidx.annotation; java.util;
2,887,644
public String getKeyAtIndex(int index) { PairedTextEncodedStringNullTerminated text = (PairedTextEncodedStringNullTerminated) getObject(DataTypes.OBJ_TEXT); return text.getValue().getMapping().get(index).getKey(); }
String function(int index) { PairedTextEncodedStringNullTerminated text = (PairedTextEncodedStringNullTerminated) getObject(DataTypes.OBJ_TEXT); return text.getValue().getMapping().get(index).getKey(); }
/** * Get key at index * * @param index * @return value at index */
Get key at index
getKeyAtIndex
{ "repo_name": "craigpetchell/Jaudiotagger", "path": "src/org/jaudiotagger/tag/id3/framebody/FrameBodyIPLS.java", "license": "lgpl-2.1", "size": 7275 }
[ "org.jaudiotagger.tag.datatype.DataTypes", "org.jaudiotagger.tag.datatype.PairedTextEncodedStringNullTerminated" ]
import org.jaudiotagger.tag.datatype.DataTypes; import org.jaudiotagger.tag.datatype.PairedTextEncodedStringNullTerminated;
import org.jaudiotagger.tag.datatype.*;
[ "org.jaudiotagger.tag" ]
org.jaudiotagger.tag;
591,187
private JarFile getJarFromUrl(URL locationUrl) throws IOException { URLConnection con = locationUrl.openConnection(); if (con instanceof JarURLConnection) { // Should usually be the case for traditional JAR files. JarURLConnection jarCon = (JarURLConnection) con; jarCon.setUseCaches(false); ...
JarFile function(URL locationUrl) throws IOException { URLConnection con = locationUrl.openConnection(); if (con instanceof JarURLConnection) { JarURLConnection jarCon = (JarURLConnection) con; jarCon.setUseCaches(false); return jarCon.getJarFile(); } String urlFile = locationUrl.getFile(); int separatorIndex = urlFile...
/** * Retrieves the Jar file represented by this URL. * * @param locationUrl The URL of the jar. * @return The jar file. * @throws IOException when the jar could not be resolved. */
Retrieves the Jar file represented by this URL
getJarFromUrl
{ "repo_name": "avaje-common/avaje-classpath-scanner", "path": "src/main/java/org/avaje/classpath/scanner/internal/scanner/classpath/JarFileClassPathLocationScanner.java", "license": "apache-2.0", "size": 3745 }
[ "java.io.IOException", "java.net.JarURLConnection", "java.net.URISyntaxException", "java.net.URLConnection", "java.util.jar.JarFile" ]
import java.io.IOException; import java.net.JarURLConnection; import java.net.URISyntaxException; import java.net.URLConnection; import java.util.jar.JarFile;
import java.io.*; import java.net.*; import java.util.jar.*;
[ "java.io", "java.net", "java.util" ]
java.io; java.net; java.util;
2,836,640
protected void enterBy(Token node) throws ParseException { }
void function(Token node) throws ParseException { }
/** * Called when entering a parse tree node. * * @param node the node being entered * * @throws ParseException if the node analysis discovered errors */
Called when entering a parse tree node
enterBy
{ "repo_name": "richb-hanover/mibble-2.9.2", "path": "src/java/net/percederberg/mibble/asn1/Asn1Analyzer.java", "license": "gpl-2.0", "size": 275483 }
[ "net.percederberg.grammatica.parser.ParseException", "net.percederberg.grammatica.parser.Token" ]
import net.percederberg.grammatica.parser.ParseException; import net.percederberg.grammatica.parser.Token;
import net.percederberg.grammatica.parser.*;
[ "net.percederberg.grammatica" ]
net.percederberg.grammatica;
447,387
public IndexRequest source(XContentBuilder sourceBuilder) { source = sourceBuilder.bytes(); return this; }
IndexRequest function(XContentBuilder sourceBuilder) { source = sourceBuilder.bytes(); return this; }
/** * Sets the content source to index. */
Sets the content source to index
source
{ "repo_name": "jchampion/elasticsearch", "path": "core/src/main/java/org/elasticsearch/action/index/IndexRequest.java", "license": "apache-2.0", "size": 23350 }
[ "org.elasticsearch.common.xcontent.XContentBuilder" ]
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
1,507,833
public static String dateToIso8601String(Date date) { SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.ENGLISH); return df.format(date); } private static final Map<String, Boolean> localAddrMap = Collections .synchronizedMap(new HashMap<String, Boolean>());
static String function(Date date) { SimpleDateFormat df = new SimpleDateFormat(STR, Locale.ENGLISH); return df.format(date); } private static final Map<String, Boolean> localAddrMap = Collections .synchronizedMap(new HashMap<String, Boolean>());
/** * Converts a Date into an ISO-8601 formatted datetime string. */
Converts a Date into an ISO-8601 formatted datetime string
dateToIso8601String
{ "repo_name": "plusplusjiajia/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java", "license": "apache-2.0", "size": 38937 }
[ "java.text.SimpleDateFormat", "java.util.Collections", "java.util.Date", "java.util.HashMap", "java.util.Locale", "java.util.Map" ]
import java.text.SimpleDateFormat; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.Locale; import java.util.Map;
import java.text.*; import java.util.*;
[ "java.text", "java.util" ]
java.text; java.util;
1,682,578
EAttribute getLabel_Posicion();
EAttribute getLabel_Posicion();
/** * Returns the meta object for the attribute '{@link visualizacionMetricas3.visualizacion.Label#getPosicion <em>Posicion</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Posicion</em>'. * @see visualizacionMetricas3.visualizacion.Label#getPosicion()...
Returns the meta object for the attribute '<code>visualizacionMetricas3.visualizacion.Label#getPosicion Posicion</code>'.
getLabel_Posicion
{ "repo_name": "lfmendivelso10/AppModernization", "path": "source/i2/VisualizacionMetricas3/src/visualizacionMetricas3/visualizacion/VisualizacionPackage.java", "license": "mit", "size": 96014 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,504,811
public int read(byte[] buf, int offset, int length) throws IOException { if (_stream != null) return _stream.read(buf, offset, length); else return -1; }
int function(byte[] buf, int offset, int length) throws IOException { if (_stream != null) return _stream.read(buf, offset, length); else return -1; }
/** * Read data from the connection. If the request hasn't yet been sent * to the server, send it. */
Read data from the connection. If the request hasn't yet been sent to the server, send it
read
{ "repo_name": "CleverCloud/Bianca", "path": "bianca/src/main/java/com/clevercloud/vfs/HttpStreamWrapper.java", "license": "gpl-2.0", "size": 5271 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,694,403
public static boolean isJsonValid(String schemaText, String jsonText) throws IOException { List<String> errors = validateJson(schemaText, jsonText); if (!errors.isEmpty()) { log.debug("Get validation errors, returning false"); return false; } return true; }
static boolean function(String schemaText, String jsonText) throws IOException { List<String> errors = validateJson(schemaText, jsonText); if (!errors.isEmpty()) { log.debug(STR); return false; } return true; }
/** * Check if a Json object is valid against the given OpenAPI schema specification. * @param schemaText The OpenAPI schema specification as a string * @param jsonText The Json object as a string * @return True if Json object is valid, false otherwise * @throws IOException if string representations...
Check if a Json object is valid against the given OpenAPI schema specification
isJsonValid
{ "repo_name": "microcks/microcks", "path": "commons/util/src/main/java/io/github/microcks/util/openapi/OpenAPISchemaValidator.java", "license": "apache-2.0", "size": 12098 }
[ "java.io.IOException", "java.util.List" ]
import java.io.IOException; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,229,090
public Mode getMode();
Mode function();
/** * Get the mode that this view has been set to. If this returns * <code>Mode.BOTH</code>, you can use <code>getCurrentMode()</code> to * check which mode the view is currently in * * @return Mode that the view has been set to */
Get the mode that this view has been set to. If this returns <code>Mode.BOTH</code>, you can use <code>getCurrentMode()</code> to check which mode the view is currently in
getMode
{ "repo_name": "g977284333/KwPresent", "path": "kw_support/src/main/java/com/kw_support/thirdlib/pulltorefresh/IPullToRefresh.java", "license": "mit", "size": 8865 }
[ "com.kw_support.thirdlib.pulltorefresh.PullToRefreshBase" ]
import com.kw_support.thirdlib.pulltorefresh.PullToRefreshBase;
import com.kw_support.thirdlib.pulltorefresh.*;
[ "com.kw_support.thirdlib" ]
com.kw_support.thirdlib;
1,926,160
public Set<JWEAlgorithm> getAcceptedAlgorithms();
Set<JWEAlgorithm> function();
/** * Gets the names of the accepted JWE algorithms. These correspond to * the {@code alg} JWE header parameter. * * @return The accepted JWE algorithms as a read-only set, empty set if * none. */
Gets the names of the accepted JWE algorithms. These correspond to the alg JWE header parameter
getAcceptedAlgorithms
{ "repo_name": "gesellix/Nimbus-JOSE-JWT", "path": "src/main/java/com/nimbusds/jose/JWEHeaderFilter.java", "license": "apache-2.0", "size": 1626 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
329,818
public static String toString(Readable r) throws IOException { StringBuilder sb = new StringBuilder(); copy(r, sb); return sb.toString(); } /** * Copies all characters between the {@link Readable} and {@link Appendable}
static String function(Readable r) throws IOException { StringBuilder sb = new StringBuilder(); copy(r, sb); return sb.toString(); } /** * Copies all characters between the {@link Readable} and {@link Appendable}
/** * Reads all characters from a {@link Readable} object into a {@link String}. * Does not close the {@code Readable}. * * @param r the object to read from * @return a string containing all the characters * @throws IOException if an I/O error occurs */
Reads all characters from a <code>Readable</code> object into a <code>String</code>. Does not close the Readable
toString
{ "repo_name": "hexmind/togglz", "path": "core/src/main/java/org/togglz/core/util/IOUtils.java", "license": "apache-2.0", "size": 2657 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
362,638
@IgniteSpiConfiguration(optional = true) public void setClientReconnectDisabled(boolean clientReconnectDisabled) { this.clientReconnectDisabled = clientReconnectDisabled; }
@IgniteSpiConfiguration(optional = true) void function(boolean clientReconnectDisabled) { this.clientReconnectDisabled = clientReconnectDisabled; }
/** * Sets client reconnect disabled flag. * <p> * If {@code true} client does not try to reconnect after * server detected client node failure. * * @param clientReconnectDisabled Client reconnect disabled flag. */
Sets client reconnect disabled flag. If true client does not try to reconnect after server detected client node failure
setClientReconnectDisabled
{ "repo_name": "vsisko/incubator-ignite", "path": "modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpi.java", "license": "apache-2.0", "size": 68315 }
[ "org.apache.ignite.spi.IgniteSpiConfiguration" ]
import org.apache.ignite.spi.IgniteSpiConfiguration;
import org.apache.ignite.spi.*;
[ "org.apache.ignite" ]
org.apache.ignite;
583,423
public ProtectionDomain getProtectionDomain() { return null; }
ProtectionDomain function() { return null; }
/** * Returns null. */
Returns null
getProtectionDomain
{ "repo_name": "indashnet/InDashNet.Open.UN2000", "path": "android/libcore/libart/src/main/java/java/lang/Class.java", "license": "apache-2.0", "size": 67908 }
[ "java.security.ProtectionDomain" ]
import java.security.ProtectionDomain;
import java.security.*;
[ "java.security" ]
java.security;
1,163,093
public void configureForRecentTabsPage() { mHorizontalModeEnabled = false; setBackgroundResource(R.color.ntp_bg); TextView title = (TextView) findViewById(R.id.title); title.setText(R.string.sign_in_to_chrome); // Remove the border above the button, swap in a new button wit...
void function() { mHorizontalModeEnabled = false; setBackgroundResource(R.color.ntp_bg); TextView title = (TextView) findViewById(R.id.title); title.setText(R.string.sign_in_to_chrome); View buttonBarSeparator = findViewById(R.id.button_bar_separator); buttonBarSeparator.setVisibility(View.GONE); LinearLayout buttonCon...
/** * Changes the visuals slightly for when this view appears in the recent tabs page instead of * in first run. For example, the title text is changed as well as the button style. */
Changes the visuals slightly for when this view appears in the recent tabs page instead of in first run. For example, the title text is changed as well as the button style
configureForRecentTabsPage
{ "repo_name": "mou4e/zirconium", "path": "chrome/android/java/src/org/chromium/chrome/browser/firstrun/AccountFirstRunView.java", "license": "bsd-3-clause", "size": 19095 }
[ "android.graphics.Color", "android.view.Gravity", "android.view.View", "android.widget.LinearLayout", "android.widget.TextView", "org.chromium.chrome.browser.widget.ButtonCompat" ]
import android.graphics.Color; import android.view.Gravity; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import org.chromium.chrome.browser.widget.ButtonCompat;
import android.graphics.*; import android.view.*; import android.widget.*; import org.chromium.chrome.browser.widget.*;
[ "android.graphics", "android.view", "android.widget", "org.chromium.chrome" ]
android.graphics; android.view; android.widget; org.chromium.chrome;
741,387
public final void enableConnection(final int fromLayer, final int fromNeuron, final int toNeuron, final boolean enable) { final double value = getWeight(fromLayer, fromNeuron, toNeuron); if (enable) { if (!this.structure.isConnectionLimited()) { return; } if (Math.abs(value) < this.structu...
final void function(final int fromLayer, final int fromNeuron, final int toNeuron, final boolean enable) { final double value = getWeight(fromLayer, fromNeuron, toNeuron); if (enable) { if (!this.structure.isConnectionLimited()) { return; } if (Math.abs(value) < this.structure.getConnectionLimit()) { setWeight(fromLaye...
/** * Enable, or disable, a connection. * * @param fromLayer * The layer that contains the from neuron. * @param fromNeuron * The source neuron. * @param toNeuron * The target connection. * @param enable * True to enable, false to disable. */
Enable, or disable, a connection
enableConnection
{ "repo_name": "larhoy/SentimentProjectV2", "path": "SentimentAnalysisV2/encog-core-3.1.0/src/main/java/org/encog/neural/networks/BasicNetwork.java", "license": "mit", "size": 21126 }
[ "org.encog.mathutil.randomize.RangeRandomizer" ]
import org.encog.mathutil.randomize.RangeRandomizer;
import org.encog.mathutil.randomize.*;
[ "org.encog.mathutil" ]
org.encog.mathutil;
2,775,667
private WorkflowComponent getWorkflowComponent(String engineId) { WorkflowComponent component = registry.getWorkflowComponent(engineId); if (component == null) { throw new WorkflowException("Workflow Component for engine id '" + engineId + "' is not registered"); } re...
WorkflowComponent function(String engineId) { WorkflowComponent component = registry.getWorkflowComponent(engineId); if (component == null) { throw new WorkflowException(STR + engineId + STR); } return component; }
/** * Gets the Workflow Component registered against the specified BPM Engine * Id * * @param engineId engine id */
Gets the Workflow Component registered against the specified BPM Engine Id
getWorkflowComponent
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/repository/source/java/org/alfresco/repo/workflow/WorkflowServiceImpl.java", "license": "lgpl-3.0", "size": 54613 }
[ "org.alfresco.service.cmr.workflow.WorkflowException" ]
import org.alfresco.service.cmr.workflow.WorkflowException;
import org.alfresco.service.cmr.workflow.*;
[ "org.alfresco.service" ]
org.alfresco.service;
340,894
public DossierProcBookmarkPersistence getDossierProcBookmarkPersistence() { return dossierProcBookmarkPersistence; }
DossierProcBookmarkPersistence function() { return dossierProcBookmarkPersistence; }
/** * Returns the dossier proc bookmark persistence. * * @return the dossier proc bookmark persistence */
Returns the dossier proc bookmark persistence
getDossierProcBookmarkPersistence
{ "repo_name": "openegovplatform/OEPv2", "path": "oep-dossier-portlet/docroot/WEB-INF/src/org/oep/dossiermgt/service/base/DossierProcBookmarkServiceBaseImpl.java", "license": "apache-2.0", "size": 49450 }
[ "org.oep.dossiermgt.service.persistence.DossierProcBookmarkPersistence" ]
import org.oep.dossiermgt.service.persistence.DossierProcBookmarkPersistence;
import org.oep.dossiermgt.service.persistence.*;
[ "org.oep.dossiermgt" ]
org.oep.dossiermgt;
2,400,434
public static List<Buddy> fromBuddyDetailsList(List<BuddyDetails> detailsList) { // Create new list of buddies List<Buddy> buddies = new ArrayList<Buddy>(); // Iterate through details and create buddy based on that for (BuddyDetails details : detailsList) { buddies.add(B...
static List<Buddy> function(List<BuddyDetails> detailsList) { List<Buddy> buddies = new ArrayList<Buddy>(); for (BuddyDetails details : detailsList) { buddies.add(Buddy.fromBuddyDetails(details)); } return buddies; }
/** * Factory method which creates new list of Buddies from the list of BuddyDetails * * @param detailsList list of buddy details * @return List<Buddy> of buddies */
Factory method which creates new list of Buddies from the list of BuddyDetails
fromBuddyDetailsList
{ "repo_name": "marcelmika/lims", "path": "docroot/WEB-INF/src/com/marcelmika/lims/portal/domain/Buddy.java", "license": "mit", "size": 12668 }
[ "com.marcelmika.lims.api.entity.BuddyDetails", "java.util.ArrayList", "java.util.List" ]
import com.marcelmika.lims.api.entity.BuddyDetails; import java.util.ArrayList; import java.util.List;
import com.marcelmika.lims.api.entity.*; import java.util.*;
[ "com.marcelmika.lims", "java.util" ]
com.marcelmika.lims; java.util;
2,864,309
static String opToStr(int operator) { switch (operator) { case Token.BITOR: return "|"; case Token.OR: return "||"; case Token.BITXOR: return "^"; case Token.AND: return "&&"; case Token.BITAND: return "&"; case Token.SHEQ: return "==="; case Token.EQ: return "=="; ...
static String opToStr(int operator) { switch (operator) { case Token.BITOR: return " "; case Token.OR: return " "; case Token.BITXOR: return "^"; case Token.AND: return "&&"; case Token.BITAND: return "&"; case Token.SHEQ: return "==="; case Token.EQ: return "=="; case Token.NOT: return "!"; case Token.NE: return "!=";...
/** * Converts an operator's token value (see {@link Token}) to a string * representation. * * @param operator the operator's token value to convert * @return the string representation or {@code null} if the token value is * not an operator */
Converts an operator's token value (see <code>Token</code>) to a string representation
opToStr
{ "repo_name": "PengXing/closure-compiler", "path": "src/com/google/javascript/jscomp/NodeUtil.java", "license": "apache-2.0", "size": 99223 }
[ "com.google.javascript.rhino.Token" ]
import com.google.javascript.rhino.Token;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
2,825,324
public static Request buildCreateVisitRequest(@NonNull String userId) { return new Request.Builder(Request.Method.POST) .setUri(Uri.parse(VISITS_RESOURCE.format(new Object[]{userId}))) .build(); }
static Request function(@NonNull String userId) { return new Request.Builder(Request.Method.POST) .setUri(Uri.parse(VISITS_RESOURCE.format(new Object[]{userId}))) .build(); }
/** * Creates the create visit request. * * @param userId Id of the visited user. * @return Request object ready to be executed. */
Creates the create visit request
buildCreateVisitRequest
{ "repo_name": "CiprianU/xing-android-sdk", "path": "sdk/src/main/java/com/xing/android/sdk/network/request/ProfileVisitsRequests.java", "license": "mit", "size": 7435 }
[ "android.net.Uri", "android.support.annotation.NonNull" ]
import android.net.Uri; import android.support.annotation.NonNull;
import android.net.*; import android.support.annotation.*;
[ "android.net", "android.support" ]
android.net; android.support;
2,167,013
public PollResult<OutputT> withWatermark(Instant watermark) { checkNotNull(watermark, "watermark"); return new PollResult<>(outputs, watermark); }
PollResult<OutputT> function(Instant watermark) { checkNotNull(watermark, STR); return new PollResult<>(outputs, watermark); }
/** * Sets the watermark - an approximate lower bound on timestamps of future new outputs from * this {@link PollFn}. */
Sets the watermark - an approximate lower bound on timestamps of future new outputs from this <code>PollFn</code>
withWatermark
{ "repo_name": "tgroh/incubator-beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Watch.java", "license": "apache-2.0", "size": 49416 }
[ "com.google.common.base.Preconditions", "org.joda.time.Instant" ]
import com.google.common.base.Preconditions; import org.joda.time.Instant;
import com.google.common.base.*; import org.joda.time.*;
[ "com.google.common", "org.joda.time" ]
com.google.common; org.joda.time;
936,726
void closed(Socket socket);
void closed(Socket socket);
/** * Called when a created socket has been closed. * The process of destroying the double has already started. * * @param socket the closed socked. */
Called when a created socket has been closed. The process of destroying the double has already started
closed
{ "repo_name": "trevorbernard/jeromq", "path": "src/main/java/org/zeromq/ZActor.java", "license": "mpl-2.0", "size": 22332 }
[ "org.zeromq.ZMQ" ]
import org.zeromq.ZMQ;
import org.zeromq.*;
[ "org.zeromq" ]
org.zeromq;
626,485
public default GraphTraversal<S, Path> path() { return this.asAdmin().addStep(new PathStep<>(this.asAdmin())); }
default GraphTraversal<S, Path> function() { return this.asAdmin().addStep(new PathStep<>(this.asAdmin())); }
/** * Map the {@link Traverser} to its {@link Path} history via {@link Traverser#path}. * * @return the traversal with an appended {@link PathStep}. */
Map the <code>Traverser</code> to its <code>Path</code> history via <code>Traverser#path</code>
path
{ "repo_name": "rmagen/incubator-tinkerpop", "path": "gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java", "license": "apache-2.0", "size": 56488 }
[ "org.apache.tinkerpop.gremlin.process.traversal.Path", "org.apache.tinkerpop.gremlin.process.traversal.step.map.PathStep" ]
import org.apache.tinkerpop.gremlin.process.traversal.Path; import org.apache.tinkerpop.gremlin.process.traversal.step.map.PathStep;
import org.apache.tinkerpop.gremlin.process.traversal.*; import org.apache.tinkerpop.gremlin.process.traversal.step.map.*;
[ "org.apache.tinkerpop" ]
org.apache.tinkerpop;
1,089,453
public BufferedImage getEdgesImage() { return edgesImage; }
BufferedImage function() { return edgesImage; }
/** * Obtains an image containing the edges detected during the last call to * the process method. The buffered image is an opaque image of type * BufferedImage.TYPE_INT_ARGB in which edge pixels are white and all other * pixels are black. * * @return an image containing the detected edges, or null i...
Obtains an image containing the edges detected during the last call to the process method. The buffered image is an opaque image of type BufferedImage.TYPE_INT_ARGB in which edge pixels are white and all other pixels are black
getEdgesImage
{ "repo_name": "Neeqstock/ImageAlgorithms", "path": "src/canny/CannyEdgeDetector.java", "license": "gpl-2.0", "size": 18670 }
[ "java.awt.image.BufferedImage" ]
import java.awt.image.BufferedImage;
import java.awt.image.*;
[ "java.awt" ]
java.awt;
2,493,751
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = "False") @SimpleProperty public void AboveRangeEventEnabled(boolean enabled) { boolean handlerWasNeeded = isHandlerNeeded(); aboveRangeEventEnabled = enabled; boolean handlerIsNeeded = isHandlerNeeded(); i...
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = "False") void function(boolean enabled) { boolean handlerWasNeeded = isHandlerNeeded(); aboveRangeEventEnabled = enabled; boolean handlerIsNeeded = isHandlerNeeded(); if (handlerWasNeeded && !handlerIsNeeded) { handler.removeCall...
/** * Specifies whether the AboveRange event should fire when the sound level * goes above the TopOfRange. */
Specifies whether the AboveRange event should fire when the sound level goes above the TopOfRange
AboveRangeEventEnabled
{ "repo_name": "satgod/appinventor", "path": "appinventor/components/src/com/google/appinventor/components/runtime/NxtSoundSensor.java", "license": "mit", "size": 10661 }
[ "com.google.appinventor.components.annotations.DesignerProperty", "com.google.appinventor.components.common.PropertyTypeConstants" ]
import com.google.appinventor.components.annotations.DesignerProperty; import com.google.appinventor.components.common.PropertyTypeConstants;
import com.google.appinventor.components.annotations.*; import com.google.appinventor.components.common.*;
[ "com.google.appinventor" ]
com.google.appinventor;
2,087,608
SpawnStrategyRegistry.Builder setDefaultStrategies(List<String> defaultStrategies);
SpawnStrategyRegistry.Builder setDefaultStrategies(List<String> defaultStrategies);
/** * Explicitly sets the identifiers of default strategies to use if a spawn matches no filters. * * <p>Note that if this method is not called on the builder, all registered strategies are * considered default strategies, in registration order. See also the {@linkplain Builder class * document...
Explicitly sets the identifiers of default strategies to use if a spawn matches no filters. Note that if this method is not called on the builder, all registered strategies are considered default strategies, in registration order. See also the Builder class documentation
setDefaultStrategies
{ "repo_name": "akira-baruah/bazel", "path": "src/main/java/com/google/devtools/build/lib/exec/SpawnStrategyRegistry.java", "license": "apache-2.0", "size": 29373 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,931,374
Group addGroup(Group group) throws AuthorizationAccessException;
Group addGroup(Group group) throws AuthorizationAccessException;
/** * Adds a new group. * * @param group the Group to add * @return the added Group * @throws AuthorizationAccessException if there was an unexpected error performing the operation * @throws IllegalStateException if a group with the same name already exists */
Adds a new group
addGroup
{ "repo_name": "mcgilman/nifi", "path": "nifi-framework-api/src/main/java/org/apache/nifi/authorization/ConfigurableUserGroupProvider.java", "license": "apache-2.0", "size": 7040 }
[ "org.apache.nifi.authorization.exception.AuthorizationAccessException" ]
import org.apache.nifi.authorization.exception.AuthorizationAccessException;
import org.apache.nifi.authorization.exception.*;
[ "org.apache.nifi" ]
org.apache.nifi;
2,344,504
public void finishMediaUpdate() throws RemoteException { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_finishMediaUpdate, ...
void function() throws RemoteException { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_finishMediaUpdate, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
/** * Call into MountService by PackageManager to notify that its done * processing the media status update request. */
Call into MountService by PackageManager to notify that its done processing the media status update request
finishMediaUpdate
{ "repo_name": "doctang/TestPlatform", "path": "AutoTest/src/android/os/storage/IMountService.java", "license": "apache-2.0", "size": 54707 }
[ "android.os.Parcel", "android.os.RemoteException" ]
import android.os.Parcel; import android.os.RemoteException;
import android.os.*;
[ "android.os" ]
android.os;
898,675
public boolean waitForAssignment(HRegionInfo regionInfo) throws InterruptedException { while (!regionStates.isRegionOnline(regionInfo)) { if (regionStates.isRegionInState(regionInfo, State.FAILED_OPEN) || this.server.isStopped()) { return false; } // We should receive a ...
boolean function(HRegionInfo regionInfo) throws InterruptedException { while (!regionStates.isRegionOnline(regionInfo)) { if (regionStates.isRegionInState(regionInfo, State.FAILED_OPEN) this.server.isStopped()) { return false; } regionStates.waitForUpdate(100); } return true; }
/** * Waits until the specified region has completed assignment. * <p> * If the region is already assigned, returns immediately. Otherwise, method * blocks until the region is assigned. * @param regionInfo region to wait on assignment for * @throws InterruptedException */
Waits until the specified region has completed assignment. If the region is already assigned, returns immediately. Otherwise, method blocks until the region is assigned
waitForAssignment
{ "repo_name": "Jackygq1982/hbase_src", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java", "license": "apache-2.0", "size": 167470 }
[ "org.apache.hadoop.hbase.HRegionInfo", "org.apache.hadoop.hbase.master.RegionState" ]
import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.master.RegionState;
import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.master.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,284,953
private void manageRequest(DataInputStream in, DataOutputStream out) throws IOException, SOCKSException { int command = in.readByte() & 0xff; switch (command) { case Command.CONNECT: break; case Command.BIND: _log.debug("BIND command is not supported!"); ...
void function(DataInputStream in, DataOutputStream out) throws IOException, SOCKSException { int command = in.readByte() & 0xff; switch (command) { case Command.CONNECT: break; case Command.BIND: _log.debug(STR); sendRequestReply(Reply.CONNECTION_REFUSED, InetAddress.getByName(STR), 0, out); throw new SOCKSException(ST...
/** * SOCKS4a request management. This method assumes that all the * stuff preceding or enveloping the actual request * has been stripped out of the input/output streams. */
SOCKS4a request management. This method assumes that all the stuff preceding or enveloping the actual request has been stripped out of the input/output streams
manageRequest
{ "repo_name": "NoYouShutup/CryptMeme", "path": "CryptMeme/src/java/net/i2p/i2ptunnel/socks/SOCKS4aServer.java", "license": "mit", "size": 12161 }
[ "java.io.DataInputStream", "java.io.DataOutputStream", "java.io.IOException", "java.net.InetAddress" ]
import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.net.InetAddress;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
581,612
@Nullable public final PSXPathBoundDiagnostic getBoundDiagnosticOfID (@Nullable final String sID) { return m_aBoundDiagnostics.get (sID); }
final PSXPathBoundDiagnostic function (@Nullable final String sID) { return m_aBoundDiagnostics.get (sID); }
/** * Get the bound diagnostic matching the passed ID * * @param sID * The ID to be resolved. May be <code>null</code>. * @return <code>null</code> if the passed ID could not be resolved. */
Get the bound diagnostic matching the passed ID
getBoundDiagnosticOfID
{ "repo_name": "phax/ph-schematron", "path": "ph-schematron-pure/src/main/java/com/helger/schematron/pure/bound/xpath/PSXPathBoundAssertReport.java", "license": "apache-2.0", "size": 4714 }
[ "javax.annotation.Nullable" ]
import javax.annotation.Nullable;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
841,046
private JSONObject getHubConfiguration(String ... parameters) throws Exception{ String hubApi = "http://" + nodeConfig.getConfiguration().get(RegistrationRequest.HUB_HOST) + ":" + nodeConfig.getConfiguration().get(RegistrationRequest.HUB_PORT) + "/grid/api/hub"; HttpClient client = ht...
JSONObject function(String ... parameters) throws Exception{ String hubApi = STR/grid/api/hubSTRGETSTRconfiguration", keys); r.setEntity(new StringEntity(j.toString())); HttpResponse response = client.execute(host, r); JSONObject o = extractObject(response); return o; }
/** * uses the hub API to get some of its configuration. * @param parameters list of the parameter to be retrieved from the hub * @return * @throws Exception */
uses the hub API to get some of its configuration
getHubConfiguration
{ "repo_name": "qamate/iOS-selenium-server", "path": "java/server/src/org/openqa/grid/internal/utils/SelfRegisteringRemote.java", "license": "apache-2.0", "size": 12559 }
[ "org.apache.http.HttpResponse", "org.apache.http.entity.StringEntity", "org.json.JSONObject" ]
import org.apache.http.HttpResponse; import org.apache.http.entity.StringEntity; import org.json.JSONObject;
import org.apache.http.*; import org.apache.http.entity.*; import org.json.*;
[ "org.apache.http", "org.json" ]
org.apache.http; org.json;
586,027
public AuthUser findOneByEmployeeId(final Integer employeeId) throws NoResultException, QueryTimeoutException { TypedQuery<AuthUser> query = this.entityManager.createQuery("FROM AuthUser WHERE EmployeeId = :employeeId", this.getEntityClass()); query.setParameter("employeeId", employeeId); query.setMaxResult...
AuthUser function(final Integer employeeId) throws NoResultException, QueryTimeoutException { TypedQuery<AuthUser> query = this.entityManager.createQuery(STR, this.getEntityClass()); query.setParameter(STR, employeeId); query.setMaxResults(1); query.setHint(STR, true); query.setHint(STR, STR); try { return query.getSin...
/** * Searches for a persisted JPA Entity with the specified employeeId value. * * @param employeeId The employeeId value to search for. * @return AuthUser JPA Entity instances * @throws NoResultException If no results are returned from the persistence unit * @throws QueryTimeoutException If the que...
Searches for a persisted JPA Entity with the specified employeeId value
findOneByEmployeeId
{ "repo_name": "ssmits/DML", "path": "src/main/java/de/dml/application/persistence/core/entityDao/AuthUserDao.java", "license": "gpl-2.0", "size": 25514 }
[ "de.dml.application.persistence.core.entity.AuthUser", "de.dml.application.persistence.util.JpaEntityDaoErrorMessageUtil", "java.util.HashMap", "javax.persistence.NoResultException", "javax.persistence.QueryTimeoutException", "javax.persistence.TypedQuery" ]
import de.dml.application.persistence.core.entity.AuthUser; import de.dml.application.persistence.util.JpaEntityDaoErrorMessageUtil; import java.util.HashMap; import javax.persistence.NoResultException; import javax.persistence.QueryTimeoutException; import javax.persistence.TypedQuery;
import de.dml.application.persistence.core.entity.*; import de.dml.application.persistence.util.*; import java.util.*; import javax.persistence.*;
[ "de.dml.application", "java.util", "javax.persistence" ]
de.dml.application; java.util; javax.persistence;
69,328
public java.util.List<fr.lip6.move.pnml.symmetricnet.cyclicEnumerations.hlapi.PredecessorHLAPI> getSubterm_cyclicEnumerations_PredecessorHLAPI(){ java.util.List<fr.lip6.move.pnml.symmetricnet.cyclicEnumerations.hlapi.PredecessorHLAPI> retour = new ArrayList<fr.lip6.move.pnml.symmetricnet.cyclicEnumerations.hlap...
java.util.List<fr.lip6.move.pnml.symmetricnet.cyclicEnumerations.hlapi.PredecessorHLAPI> function(){ java.util.List<fr.lip6.move.pnml.symmetricnet.cyclicEnumerations.hlapi.PredecessorHLAPI> retour = new ArrayList<fr.lip6.move.pnml.symmetricnet.cyclicEnumerations.hlapi.PredecessorHLAPI>(); for (Term elemnt : getSubterm(...
/** * This accessor return a list of encapsulated subelement, only of PredecessorHLAPI kind. * WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of PredecessorHLAPI kind. WARNING : this method can creates a lot of new object in memory
getSubterm_cyclicEnumerations_PredecessorHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/finiteIntRanges/hlapi/FiniteIntRangeConstantHLAPI.java", "license": "epl-1.0", "size": 94739 }
[ "fr.lip6.move.pnml.symmetricnet.terms.Term", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.symmetricnet.terms.Term; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.symmetricnet.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
192,503
public static void logException( Logger logger, Level logLevel, Throwable t, String message ) { if( logger.isLoggable( logLevel )) { StringBuilder sb = new StringBuilder(); if( message != null ) { sb.append( message ); sb.append( "\n" ); } sb.append( writeExceptionButDoNotUseItForLogging( t )...
static void function( Logger logger, Level logLevel, Throwable t, String message ) { if( logger.isLoggable( logLevel )) { StringBuilder sb = new StringBuilder(); if( message != null ) { sb.append( message ); sb.append( "\n" ); } sb.append( writeExceptionButDoNotUseItForLogging( t )); logger.log( logLevel, sb.toString()...
/** * Logs an exception with the given logger and the given level. * <p> * Writing a stack trace may be time-consuming in some environments. * To prevent useless computing, this method checks the current log level * before trying to log anything. * </p> * * @param logger the logger * @param t an excep...
Logs an exception with the given logger and the given level. Writing a stack trace may be time-consuming in some environments. To prevent useless computing, this method checks the current log level before trying to log anything.
logException
{ "repo_name": "vincent-zurczak/roboconf-platform", "path": "core/roboconf-core/src/main/java/net/roboconf/core/utils/Utils.java", "license": "apache-2.0", "size": 35555 }
[ "java.util.logging.Level", "java.util.logging.Logger" ]
import java.util.logging.Level; import java.util.logging.Logger;
import java.util.logging.*;
[ "java.util" ]
java.util;
2,560,729
@JsonIgnore public Response setStats (KrillStats stats) { this.stats = stats; // Move messages from the stats return (Response) this.moveNotificationsFrom(stats); };
Response function (KrillStats stats) { this.stats = stats; return (Response) this.moveNotificationsFrom(stats); };
/** * Set a new {@link KrillStats} object. * * @param stats * A {@link KrillStats} object. * @return The {@link Response} object for chaining */
Set a new <code>KrillStats</code> object
setStats
{ "repo_name": "KorAP/Krill", "path": "src/main/java/de/ids_mannheim/korap/response/Response.java", "license": "bsd-2-clause", "size": 16267 }
[ "de.ids_mannheim.korap.KrillStats" ]
import de.ids_mannheim.korap.KrillStats;
import de.ids_mannheim.korap.*;
[ "de.ids_mannheim.korap" ]
de.ids_mannheim.korap;
1,902,263
Observable<ServiceResponse<Void>> getTenBillionWithServiceResponseAsync();
Observable<ServiceResponse<Void>> getTenBillionWithServiceResponseAsync();
/** * Get '10000000000' 64 bit integer value. * * @return the {@link ServiceResponse} object if successful. */
Get '10000000000' 64 bit integer value
getTenBillionWithServiceResponseAsync
{ "repo_name": "yugangw-msft/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/url/Queries.java", "license": "mit", "size": 53223 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,955,294
@Test(timeout=100000) public void testBalancerWithExcludeList() throws Exception { final Configuration conf = new HdfsConfiguration(); initConf(conf); Set<String> excludeHosts = new HashSet<String>(); excludeHosts.add( "datanodeY"); excludeHosts.add( "datanodeZ"); doTest(conf, new long[]{CAP...
@Test(timeout=100000) void function() throws Exception { final Configuration conf = new HdfsConfiguration(); initConf(conf); Set<String> excludeHosts = new HashSet<String>(); excludeHosts.add( STR); excludeHosts.add( STR); doTest(conf, new long[]{CAPACITY, CAPACITY}, new String[]{RACK0, RACK1}, CAPACITY, RACK2, new Hos...
/** * Test a cluster with even distribution, * then three nodes are added to the cluster, * runs balancer with two of the nodes in the exclude list */
Test a cluster with even distribution, then three nodes are added to the cluster, runs balancer with two of the nodes in the exclude list
testBalancerWithExcludeList
{ "repo_name": "dilaver/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java", "license": "apache-2.0", "size": 58618 }
[ "java.util.HashSet", "java.util.Set", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hdfs.HdfsConfiguration", "org.apache.hadoop.hdfs.server.balancer.Balancer", "org.junit.Test" ]
import java.util.HashSet; import java.util.Set; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hdfs.HdfsConfiguration; import org.apache.hadoop.hdfs.server.balancer.Balancer; import org.junit.Test;
import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.server.balancer.*; import org.junit.*;
[ "java.util", "org.apache.hadoop", "org.junit" ]
java.util; org.apache.hadoop; org.junit;
1,426,527
protected void processOutContent(String location, FragmentBuilder builder, int hashCode) { if (builder.isOutBufferActive(hashCode)) { processOut(location, null, builder.getOutData(hashCode)); } else if (log.isLoggable(Level.FINEST)) { log.finest("processOutContent: location=[...
void function(String location, FragmentBuilder builder, int hashCode) { if (builder.isOutBufferActive(hashCode)) { processOut(location, null, builder.getOutData(hashCode)); } else if (log.isLoggable(Level.FINEST)) { log.finest(STR + location + STR + hashCode + STR); } }
/** * This method processes the out content if available. * * @param location The instrumentation location * @param builder The builder * @param hashCode The hash code, or -1 to ignore the hash code */
This method processes the out content if available
processOutContent
{ "repo_name": "hawkular/hawkular-btm", "path": "client/collector/src/main/java/org/hawkular/apm/client/collector/internal/DefaultTraceCollector.java", "license": "apache-2.0", "size": 61575 }
[ "org.hawkular.apm.api.logging.Logger" ]
import org.hawkular.apm.api.logging.Logger;
import org.hawkular.apm.api.logging.*;
[ "org.hawkular.apm" ]
org.hawkular.apm;
1,589,869
public TaskAgent getAgent( final int poolId, final int agentId, final Boolean includeCapabilities, final Boolean includeAssignedRequest, final List<String> propertyFilters) { final UUID locationId = UUID.fromString("e298ef32-5878-4cab-993c-043836571f42"); //$NON...
TaskAgent function( final int poolId, final int agentId, final Boolean includeCapabilities, final Boolean includeAssignedRequest, final List<String> propertyFilters) { final UUID locationId = UUID.fromString(STR); final ApiResourceVersion apiVersion = new ApiResourceVersion(STR); final Map<String, Object> routeValues =...
/** * [Preview API 3.1-preview.1] * * @param poolId * * @param agentId * * @param includeCapabilities * * @param includeAssignedRequest * * @param propertyFilters * * @return TaskAgent ...
[Preview API 3.1-preview.1]
getAgent
{ "repo_name": "Microsoft/vso-httpclient-java", "path": "Rest/alm-distributedtask-client/src/main/generated/com/microsoft/alm/teamfoundation/distributedtask/webapi/TaskAgentHttpClientBase.java", "license": "mit", "size": 129237 }
[ "com.microsoft.alm.client.HttpMethod", "com.microsoft.alm.client.VssMediaTypes", "com.microsoft.alm.client.VssRestRequest", "com.microsoft.alm.client.model.NameValueCollection", "com.microsoft.alm.teamfoundation.distributedtask.webapi.TaskAgent", "com.microsoft.alm.visualstudio.services.webapi.ApiResource...
import com.microsoft.alm.client.HttpMethod; import com.microsoft.alm.client.VssMediaTypes; import com.microsoft.alm.client.VssRestRequest; import com.microsoft.alm.client.model.NameValueCollection; import com.microsoft.alm.teamfoundation.distributedtask.webapi.TaskAgent; import com.microsoft.alm.visualstudio.services.w...
import com.microsoft.alm.client.*; import com.microsoft.alm.client.model.*; import com.microsoft.alm.teamfoundation.distributedtask.webapi.*; import com.microsoft.alm.visualstudio.services.webapi.*; import java.util.*;
[ "com.microsoft.alm", "java.util" ]
com.microsoft.alm; java.util;
581
void enterCode(@NotNull MarkdownParser.CodeContext ctx); void exitCode(@NotNull MarkdownParser.CodeContext ctx);
void enterCode(@NotNull MarkdownParser.CodeContext ctx); void exitCode(@NotNull MarkdownParser.CodeContext ctx);
/** * Exit a parse tree produced by {@link MarkdownParser#code}. * @param ctx the parse tree */
Exit a parse tree produced by <code>MarkdownParser#code</code>
exitCode
{ "repo_name": "mar9000/antmark", "path": "src/org/mar9000/antmark/grammar/MarkdownParserListener.java", "license": "gpl-3.0", "size": 28587 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,322,620
public final HttpExchange single() { return requireSingleCaptured().exchange; }
final HttpExchange function() { return requireSingleCaptured().exchange; }
/** * Get a single http exchange, fails if there are none or more than one exchange. */
Get a single http exchange, fails if there are none or more than one exchange
single
{ "repo_name": "pyranja/asio", "path": "test/src/main/java/at/ac/univie/isc/asio/web/CaptureHttpExchange.java", "license": "apache-2.0", "size": 3961 }
[ "com.sun.net.httpserver.HttpExchange" ]
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.*;
[ "com.sun.net" ]
com.sun.net;
2,376,518
protected IFigure setupContentPane(IFigure nodeShape) { return nodeShape; // use nodeShape itself as contentPane }
IFigure function(IFigure nodeShape) { return nodeShape; }
/** * Default implementation treats passed figure as content pane. * Respects layout one may have set for generated figure. * @param nodeShape instance of generated figure class * @generated */
Default implementation treats passed figure as content pane. Respects layout one may have set for generated figure
setupContentPane
{ "repo_name": "sohaniwso2/devstudio-tooling-esb", "path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/URLRewriteMediatorOutputConnectorEditPart.java", "license": "apache-2.0", "size": 15241 }
[ "org.eclipse.draw2d.IFigure" ]
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.*;
[ "org.eclipse.draw2d" ]
org.eclipse.draw2d;
715,011
protected final boolean callbackCreateOptionsMenu(Menu menu) { if (DEBUG) Log.d(TAG, "[callbackCreateOptionsMenu] menu: " + menu); boolean result = true; if (mActivity instanceof OnCreatePanelMenuListener) { OnCreatePanelMenuListener listener = (OnCreatePanelMenuListener)mActivi...
final boolean function(Menu menu) { if (DEBUG) Log.d(TAG, STR + menu); boolean result = true; if (mActivity instanceof OnCreatePanelMenuListener) { OnCreatePanelMenuListener listener = (OnCreatePanelMenuListener)mActivity; result = listener.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu); } else if (mActivity ins...
/** * Internal method to trigger the menu creation process. * * @return {@code true} if menu creation should proceed. */
Internal method to trigger the menu creation process
callbackCreateOptionsMenu
{ "repo_name": "thoinv/kaorisan", "path": "trunk/C_Source_Code/quangcao/actionbarsherlock/src/com/actionbarsherlock/ActionBarSherlock.java", "license": "gpl-3.0", "size": 29826 }
[ "android.util.Log", "android.view.Window", "com.actionbarsherlock.view.Menu" ]
import android.util.Log; import android.view.Window; import com.actionbarsherlock.view.Menu;
import android.util.*; import android.view.*; import com.actionbarsherlock.view.*;
[ "android.util", "android.view", "com.actionbarsherlock.view" ]
android.util; android.view; com.actionbarsherlock.view;
2,565,449
private void copyNodeInfoNoChildren(AccessibilityNodeInfoCompat dest, AccessibilityNodeInfoCompat src) { final Rect rect = mTmpRect; src.getBoundsInParent(rect); dest.setBoundsInParent(rect); src.getBoundsInScreen(rect...
void function(AccessibilityNodeInfoCompat dest, AccessibilityNodeInfoCompat src) { final Rect rect = mTmpRect; src.getBoundsInParent(rect); dest.setBoundsInParent(rect); src.getBoundsInScreen(rect); dest.setBoundsInScreen(rect); dest.setVisibleToUser(src.isVisibleToUser()); dest.setPackageName(src.getPackageName()); de...
/** * This should really be in AccessibilityNodeInfoCompat, but there unfortunately * seem to be a few elements that are not easily cloneable using the underlying API. * Leave it private here as it's not general-purpose useful. */
This should really be in AccessibilityNodeInfoCompat, but there unfortunately seem to be a few elements that are not easily cloneable using the underlying API. Leave it private here as it's not general-purpose useful
copyNodeInfoNoChildren
{ "repo_name": "foxundermoon/jnswAndroidClient", "path": "UI/src/main/java/android/support/v4/widget/StickDrawerLayout.java", "license": "gpl-2.0", "size": 76969 }
[ "android.graphics.Rect", "android.support.v4.view.accessibility.AccessibilityNodeInfoCompat" ]
import android.graphics.Rect; import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
import android.graphics.*; import android.support.v4.view.accessibility.*;
[ "android.graphics", "android.support" ]
android.graphics; android.support;
530,057
public final ImmutableList<Parameter> getParameters() { Type[] parameterTypes = getGenericParameterTypes(); Annotation[][] annotations = getParameterAnnotations(); ImmutableList.Builder<Parameter> builder = ImmutableList.builder(); for (int i = 0; i < parameterTypes.length; i++) { builder.add(ne...
final ImmutableList<Parameter> function() { Type[] parameterTypes = getGenericParameterTypes(); Annotation[][] annotations = getParameterAnnotations(); ImmutableList.Builder<Parameter> builder = ImmutableList.builder(); for (int i = 0; i < parameterTypes.length; i++) { builder.add(new Parameter(this, i, TypeToken.of(pa...
/** * Returns all declared parameters of this {@code Invokable}. Note that if this is a constructor * of a non-static inner class, unlike {@link Constructor#getParameterTypes}, the hidden * {@code this} parameter of the enclosing class is excluded from the returned parameters. */
Returns all declared parameters of this Invokable. Note that if this is a constructor of a non-static inner class, unlike <code>Constructor#getParameterTypes</code>, the hidden this parameter of the enclosing class is excluded from the returned parameters
getParameters
{ "repo_name": "deerwalk/voltdb", "path": "third_party/java/src/com/google_voltpatches/common/reflect/Invokable.java", "license": "agpl-3.0", "size": 13449 }
[ "com.google_voltpatches.common.collect.ImmutableList", "java.lang.annotation.Annotation", "java.lang.reflect.Type" ]
import com.google_voltpatches.common.collect.ImmutableList; import java.lang.annotation.Annotation; import java.lang.reflect.Type;
import com.google_voltpatches.common.collect.*; import java.lang.annotation.*; import java.lang.reflect.*;
[ "com.google_voltpatches.common", "java.lang" ]
com.google_voltpatches.common; java.lang;
1,828,838
public Permission getPermissions( Resource res ) throws XMLDBException;
Permission function( Resource res ) throws XMLDBException;
/** * Get permissions for the specified resource * *@param res Description of the Parameter *@return The permissions value *@exception XMLDBException Description of the Exception */
Get permissions for the specified resource
getPermissions
{ "repo_name": "shabanovd/exist", "path": "src/org/exist/xmldb/UserManagementService.java", "license": "lgpl-2.1", "size": 12212 }
[ "org.exist.security.Permission", "org.xmldb.api.base.Resource", "org.xmldb.api.base.XMLDBException" ]
import org.exist.security.Permission; import org.xmldb.api.base.Resource; import org.xmldb.api.base.XMLDBException;
import org.exist.security.*; import org.xmldb.api.base.*;
[ "org.exist.security", "org.xmldb.api" ]
org.exist.security; org.xmldb.api;
309,382
public void setConfirmedQty (BigDecimal ConfirmedQty);
void function (BigDecimal ConfirmedQty);
/** Set Confirmed Quantity. * Confirmation of a received quantity */
Set Confirmed Quantity. Confirmation of a received quantity
setConfirmedQty
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempiere_360/base/src/org/compiere/model/I_M_MovementLine.java", "license": "gpl-2.0", "size": 9848 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,391,250
public void write_wchar_array(char[] chars, int offset, int length) { try { if (giop.until_inclusive(1, 1)) align(2); if (wide_native) { for (int i = offset; i < offset + length; i++) { b.writeShort(chars [ i ]); ...
void function(char[] chars, int offset, int length) { try { if (giop.until_inclusive(1, 1)) align(2); if (wide_native) { for (int i = offset; i < offset + length; i++) { b.writeShort(chars [ i ]); } } else { OutputStreamWriter ow = new OutputStreamWriter((OutputStream) b, wide_charset); ow.write(chars, offset, length);...
/** * Write the array of wide chars. * * @param chars the array of wide chars * @param offset offset * @param length length * * The char array is always written using the native UTF-16BE charset because * the character size under arbitrary encoding is not evident. */
Write the array of wide chars
write_wchar_array
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/gnu/CORBA/CDR/AbstractCdrOutput.java", "license": "gpl-2.0", "size": 24277 }
[ "java.io.IOException", "java.io.OutputStreamWriter", "org.omg.CORBA" ]
import java.io.IOException; import java.io.OutputStreamWriter; import org.omg.CORBA;
import java.io.*; import org.omg.*;
[ "java.io", "org.omg" ]
java.io; org.omg;
451,241
public void resizeToPhantom() { resizeBrowser( BrowserType.PHANTOM); }
void function() { resizeBrowser( BrowserType.PHANTOM); }
/** * Resize to mobile. */
Resize to mobile
resizeToPhantom
{ "repo_name": "krickert/hugegherkin", "path": "src/test/java/com/hugeinc/gherkin/api/SeleniumHelperImpl.java", "license": "mit", "size": 19213 }
[ "com.hugeinc.gherkin.framework.BrowserType" ]
import com.hugeinc.gherkin.framework.BrowserType;
import com.hugeinc.gherkin.framework.*;
[ "com.hugeinc.gherkin" ]
com.hugeinc.gherkin;
2,590,973
public static BufferedWriter newWriter(File file) throws IOException { return new BufferedWriter(new FileWriter(file)); }
static BufferedWriter function(File file) throws IOException { return new BufferedWriter(new FileWriter(file)); }
/** * Create a buffered writer for this file. * * @param file a File * @return a BufferedWriter * @throws IOException if an IOException occurs. * @since 1.0 */
Create a buffered writer for this file
newWriter
{ "repo_name": "paulk-asert/groovy", "path": "src/main/java/org/codehaus/groovy/runtime/ResourceGroovyMethods.java", "license": "apache-2.0", "size": 119457 }
[ "java.io.BufferedWriter", "java.io.File", "java.io.FileWriter", "java.io.IOException" ]
import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,598,835
protected void assertThatLocatorThrew(Class<? extends Throwable> throwableClass) { assertThat(threwBindException.get()).isTrue(); }
void function(Class<? extends Throwable> throwableClass) { assertThat(threwBindException.get()).isTrue(); }
/** * Please leave unused parameter throwableClass for improved readability. */
Please leave unused parameter throwableClass for improved readability
assertThatLocatorThrew
{ "repo_name": "PurelyApplied/geode", "path": "geode-core/src/integrationTest/java/org/apache/geode/distributed/LocatorLauncherRemoteIntegrationTestCase.java", "license": "apache-2.0", "size": 9194 }
[ "org.assertj.core.api.Assertions" ]
import org.assertj.core.api.Assertions;
import org.assertj.core.api.*;
[ "org.assertj.core" ]
org.assertj.core;
1,210,105
public void addAll(ResourceProperties other) { for (Iterator iNames = other.getPropertyNames(); iNames.hasNext();) { String name = (String) iNames.next(); // use the general accessor for String or List return Object value = other.get(name); if (value != null) { // Strings are immutable s...
void function(ResourceProperties other) { for (Iterator iNames = other.getPropertyNames(); iNames.hasNext();) { String name = (String) iNames.next(); Object value = other.get(name); if (value != null) { if (value instanceof String) { m_props.put(name, value); } else if (value instanceof List) { List list = new Vector()...
/** * Add all the properties from the other ResourceProperties object. * * @param other * The ResourceProperties to add. */
Add all the properties from the other ResourceProperties object
addAll
{ "repo_name": "marktriggs/nyu-sakai-10.4", "path": "kernel/kernel-util/src/main/java/org/sakaiproject/util/BaseResourceProperties.java", "license": "apache-2.0", "size": 23747 }
[ "java.util.Iterator", "java.util.List", "java.util.Vector", "org.sakaiproject.entity.api.ResourceProperties" ]
import java.util.Iterator; import java.util.List; import java.util.Vector; import org.sakaiproject.entity.api.ResourceProperties;
import java.util.*; import org.sakaiproject.entity.api.*;
[ "java.util", "org.sakaiproject.entity" ]
java.util; org.sakaiproject.entity;
1,802,480
public Map<AbstractProject,DependencyChange> getDependencyChanges(AbstractBuild from) { if (from==null) return Collections.emptyMap(); // make it easy to call this from views FingerprintAction n = this.getAction(FingerprintAction.class); FingerprintAction o = from.getAction(Finge...
Map<AbstractProject,DependencyChange> function(AbstractBuild from) { if (from==null) return Collections.emptyMap(); FingerprintAction n = this.getAction(FingerprintAction.class); FingerprintAction o = from.getAction(FingerprintAction.class); if (n==null o==null) return Collections.emptyMap(); Map<AbstractProject,Intege...
/** * Gets the changes in the dependency between the given build and this build. */
Gets the changes in the dependency between the given build and this build
getDependencyChanges
{ "repo_name": "rwaldron/jenkins", "path": "core/src/main/java/hudson/model/AbstractBuild.java", "license": "mit", "size": 46957 }
[ "hudson.scm.ChangeLogSet", "hudson.tasks.Fingerprinter", "java.util.Collections", "java.util.HashMap", "java.util.Map" ]
import hudson.scm.ChangeLogSet; import hudson.tasks.Fingerprinter; import java.util.Collections; import java.util.HashMap; import java.util.Map;
import hudson.scm.*; import hudson.tasks.*; import java.util.*;
[ "hudson.scm", "hudson.tasks", "java.util" ]
hudson.scm; hudson.tasks; java.util;
648,091
public void setUp() throws SQLException { stmt_ = createStatement(); ResultSet rs = stmt_.executeQuery("VALUES(1)"); rs.close(); object_ = rs; }
void function() throws SQLException { stmt_ = createStatement(); ResultSet rs = stmt_.executeQuery(STR); rs.close(); object_ = rs; }
/** * Sets up the test. Creates a result set and closes it. * * @exception SQLException if an error occurs */
Sets up the test. Creates a result set and closes it
setUp
{ "repo_name": "trejkaz/derby", "path": "java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ClosedObjectTest.java", "license": "apache-2.0", "size": 31420 }
[ "java.sql.ResultSet", "java.sql.SQLException" ]
import java.sql.ResultSet; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,983,643
public DataCiteMetadata.FundingReferences.Builder<_B> addFundingReference( DataCiteMetadata.FundingReferences.FundingReference... fundingReference) { addFundingReference(Arrays.asList(fundingReference)); return this; }
DataCiteMetadata.FundingReferences.Builder<_B> function( DataCiteMetadata.FundingReferences.FundingReference... fundingReference) { addFundingReference(Arrays.asList(fundingReference)); return this; }
/** * Adds the given items to the value of "fundingReference" * * @param fundingReference Items to add to the value of the "fundingReference" property */
Adds the given items to the value of "fundingReference"
addFundingReference
{ "repo_name": "gbif/gbif-doi", "path": "src/main/java/org/gbif/doi/metadata/datacite/DataCiteMetadata.java", "license": "apache-2.0", "size": 732108 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
480,746
public static ims.core.admin.pas.domain.objects.ExtendedAdmissionDetail extractExtendedAdmissionDetail(ims.domain.ILightweightDomainFactory domainFactory, ims.core.vo.ExtendedAdmissionDetailVo valueObject) { return extractExtendedAdmissionDetail(domainFactory, valueObject, new HashMap()); }
static ims.core.admin.pas.domain.objects.ExtendedAdmissionDetail function(ims.domain.ILightweightDomainFactory domainFactory, ims.core.vo.ExtendedAdmissionDetailVo valueObject) { return extractExtendedAdmissionDetail(domainFactory, valueObject, new HashMap()); }
/** * Create the domain object from the value object. * @param domainFactory - used to create existing (persistent) domain objects. * @param valueObject - extract the domain object fields from this. */
Create the domain object from the value object
extractExtendedAdmissionDetail
{ "repo_name": "open-health-hub/openmaxims-linux", "path": "openmaxims_workspace/ValueObjects/src/ims/core/vo/domain/ExtendedAdmissionDetailVoAssembler.java", "license": "agpl-3.0", "size": 21685 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
562,484
public static String saveEquipmentDB() { return getGson().toJson(EquipmentDB.getInstance()); }
static String function() { return getGson().toJson(EquipmentDB.getInstance()); }
/** * Serializes the EquipmentDB singleton and returns it as a json string. * @return json string version of EquipmentDB singleton. */
Serializes the EquipmentDB singleton and returns it as a json string
saveEquipmentDB
{ "repo_name": "CIS-Extra/mazes_and_minotaurs", "path": "MazesAndMinotaurs/app/src/main/java/com/example/cis/mazeminotaurs/serialization/SaveAndLoadPerformer.java", "license": "gpl-3.0", "size": 7954 }
[ "com.example.cis.mazeminotaurs.EquipmentDB" ]
import com.example.cis.mazeminotaurs.EquipmentDB;
import com.example.cis.mazeminotaurs.*;
[ "com.example.cis" ]
com.example.cis;
773,718
public static MozuClient<com.mozu.api.contracts.productadmin.FacetSet> getFacetCategoryListClient(Integer categoryId) throws Exception { return getFacetCategoryListClient( categoryId, null, null, null); }
static MozuClient<com.mozu.api.contracts.productadmin.FacetSet> function(Integer categoryId) throws Exception { return getFacetCategoryListClient( categoryId, null, null, null); }
/** * Retrieves a list of the facets defined for the specified category. * <p><pre><code> * MozuClient<com.mozu.api.contracts.productadmin.FacetSet> mozuClient=GetFacetCategoryListClient( categoryId); * client.setBaseAddress(url); * client.executeRequest(); * FacetSet facetSet = client.Result(); * ...
Retrieves a list of the facets defined for the specified category. <code><code> MozuClient mozuClient=GetFacetCategoryListClient( categoryId); client.setBaseAddress(url); client.executeRequest(); FacetSet facetSet = client.Result(); </code></code>
getFacetCategoryListClient
{ "repo_name": "johngatti/mozu-java", "path": "mozu-java-core/src/main/java/com/mozu/api/clients/commerce/catalog/admin/FacetClient.java", "license": "mit", "size": 10638 }
[ "com.mozu.api.MozuClient" ]
import com.mozu.api.MozuClient;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
418,406
private Animation outToLeftAnimation() { Animation outtoLeft = new TranslateAnimation( Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); return setProperties(outtoLeft); }
Animation function() { Animation outtoLeft = new TranslateAnimation( Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); return setProperties(outtoLeft); }
/** * Custom animation that animates out to the left * * @return Animation the Animation object */
Custom animation that animates out to the left
outToLeftAnimation
{ "repo_name": "bernagg/arcowabungaproject", "path": "ARcowabungaproject/src/org/escoladeltreball/arcowabungaproject/activities/MenuActivity.java", "license": "gpl-3.0", "size": 15686 }
[ "android.view.animation.Animation", "android.view.animation.TranslateAnimation" ]
import android.view.animation.Animation; import android.view.animation.TranslateAnimation;
import android.view.animation.*;
[ "android.view" ]
android.view;
1,296,217
public List<Edge> adj(int v) { return adj[v]; }
public List<Edge> adj(int v) { return adj[v]; }
/** * Returns the number of vertices in this graph. */
Returns the number of vertices in this graph
V
{ "repo_name": "zhouyulian17/Course", "path": "Java/Algorithms Design and Analysis, Part 1/src/shortestPath/EdgeWeightedGraph.java", "license": "mit", "size": 2057 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,253,865
@Test public void firstDerivativeEndpointsTest() { double eps = 1.0e-5; double[][] xValues = new double[][] { {1., 2., 3., 4., 5., 6. }, {2., 3.6, 5., 5.1, 7.12, 8.8 } }; double[][] yValues = new double[][] { {1., 1.1, 3., 4., 6.9, 9. }, {1., 1.6, 4., 1.1, 5.32, 7.8 } }; int dim = xValues.length; ...
void function() { double eps = 1.0e-5; double[][] xValues = new double[][] { {1., 2., 3., 4., 5., 6. }, {2., 3.6, 5., 5.1, 7.12, 8.8 } }; double[][] yValues = new double[][] { {1., 1.1, 3., 4., 6.9, 9. }, {1., 1.6, 4., 1.1, 5.32, 7.8 } }; int dim = xValues.length; Interpolator1D interp = new TimeSquareInterpolator1D();...
/** * Test first derivative values at end points */
Test first derivative values at end points
firstDerivativeEndpointsTest
{ "repo_name": "codeaudit/OG-Platform", "path": "projects/OG-Analytics/src/test/java/com/opengamma/analytics/math/interpolation/TimeSquareInterpolator1DTest.java", "license": "apache-2.0", "size": 9007 }
[ "com.opengamma.analytics.math.interpolation.data.Interpolator1DDataBundle", "org.testng.AssertJUnit" ]
import com.opengamma.analytics.math.interpolation.data.Interpolator1DDataBundle; import org.testng.AssertJUnit;
import com.opengamma.analytics.math.interpolation.data.*; import org.testng.*;
[ "com.opengamma.analytics", "org.testng" ]
com.opengamma.analytics; org.testng;
1,343,208
public String readStatement(String prompt) throws IOException { return null; } /** * {@inheritDoc}
String function(String prompt) throws IOException { return null; } /** * {@inheritDoc}
/** * Do nothing in this implementation * * @return null; */
Do nothing in this implementation
readStatement
{ "repo_name": "acontes/scheduling", "path": "src/common/org/ow2/proactive/utils/console/StdOutConsole.java", "license": "agpl-3.0", "size": 4403 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,385,928
private static boolean putOrPost(String urlString, String content, InputStream contentIs, String user, String pass, boolean robustM...
static boolean function(String urlString, String content, InputStream contentIs, String user, String pass, boolean robustMode, boolean isPut) { URLConnection conn = null; try { conn = openConnection(urlString, user, pass, isPut ? PUT : POST, content, contentIs, robustMode); } catch (MalformedURLException e) { e.printSt...
/** * Put or post method. * * @param urlString * the url string * @param content * the content * @param user * the user * @param pass * the pass * @return true, if successful */
Put or post method
putOrPost
{ "repo_name": "moravianlibrary/MEditor", "path": "editor-confutils/src/main/java/cz/mzk/editor/server/util/RESTHelper.java", "license": "gpl-2.0", "size": 15453 }
[ "java.io.IOException", "java.io.InputStream", "java.net.MalformedURLException", "java.net.URLConnection" ]
import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URLConnection;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
199,447