method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public String getActionListAsHtml() {
List<String> allActionNames = getAllActionNames();
int totalColumns = 4;
int rowsPerCol = calculateRowsPerCol(allActionNames.size(), totalColumns);
return convertActionListToHtml(allActionNames, rowsPerCol, totalColumns);
} | String function() { List<String> allActionNames = getAllActionNames(); int totalColumns = 4; int rowsPerCol = calculateRowsPerCol(allActionNames.size(), totalColumns); return convertActionListToHtml(allActionNames, rowsPerCol, totalColumns); } | /**
* Returns the possible servlet requests list as html.
*/ | Returns the possible servlet requests list as html | getActionListAsHtml | {
"repo_name": "Mynk96/teammates",
"path": "src/main/java/teammates/ui/pagedata/AdminActivityLogPageData.java",
"license": "gpl-2.0",
"size": 15824
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 145,228 |
@Override public void start() {
assert cacheFlushFreq != 0 || cacheMaxSize != 0;
if (stopping.compareAndSet(true, false)) {
if (log.isDebugEnabled())
log.debug("Starting write-behind store for cache '" + cacheName + '\'');
cacheCriticalSize = (int)(cacheMaxS... | @Override void function() { assert cacheFlushFreq != 0 cacheMaxSize != 0; if (stopping.compareAndSet(true, false)) { if (log.isDebugEnabled()) log.debug(STR + cacheName + '\''); cacheCriticalSize = (int)(cacheMaxSize * CACHE_OVERFLOW_RATIO); if (cacheCriticalSize == 0) cacheCriticalSize = CacheConfiguration.DFLT_WRITE_... | /**
* Performs all the initialization logic for write-behind cache store.
* This class must not be used until this method returns.
*/ | Performs all the initialization logic for write-behind cache store. This class must not be used until this method returns | start | {
"repo_name": "afinka77/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/store/GridCacheWriteBehindStore.java",
"license": "apache-2.0",
"size": 33801
} | [
"org.apache.ignite.configuration.CacheConfiguration",
"org.apache.ignite.internal.util.worker.GridWorker",
"org.apache.ignite.thread.IgniteThread",
"org.jsr166.ConcurrentLinkedHashMap"
] | import org.apache.ignite.configuration.CacheConfiguration; import org.apache.ignite.internal.util.worker.GridWorker; import org.apache.ignite.thread.IgniteThread; import org.jsr166.ConcurrentLinkedHashMap; | import org.apache.ignite.configuration.*; import org.apache.ignite.internal.util.worker.*; import org.apache.ignite.thread.*; import org.jsr166.*; | [
"org.apache.ignite",
"org.jsr166"
] | org.apache.ignite; org.jsr166; | 2,077,537 |
EReference getFunctionalInterface_Data(); | EReference getFunctionalInterface_Data(); | /**
* Returns the meta object for the containment reference list '{@link functionalarchitecture.FunctionalInterface#getData <em>Data</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Data</em>'.
* @see functionalarchitecture.FunctionalI... | Returns the meta object for the containment reference list '<code>functionalarchitecture.FunctionalInterface#getData Data</code>'. | getFunctionalInterface_Data | {
"repo_name": "viatra/VIATRA-Generator",
"path": "Tests/hu.bme.mit.inf.dslreasoner.application.FAMTest/src/functionalarchitecture/FunctionalarchitecturePackage.java",
"license": "epl-1.0",
"size": 32782
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,452,775 |
public static GridField[] createFields (Properties ctx, int WindowNo, int TabNo,
int AD_Tab_ID)
{
ArrayList<GridFieldVO> listVO = new ArrayList<GridFieldVO>();
int AD_Window_ID = 0;
boolean readOnly = false;
String sql = GridFieldVO.getSQL(ctx);
PreparedStatement pstmt = null;
try
{
... | static GridField[] function (Properties ctx, int WindowNo, int TabNo, int AD_Tab_ID) { ArrayList<GridFieldVO> listVO = new ArrayList<GridFieldVO>(); int AD_Window_ID = 0; boolean readOnly = false; String sql = GridFieldVO.getSQL(ctx); PreparedStatement pstmt = null; try { pstmt = DB.prepareStatement(sql, null); pstmt.s... | /**************************************************************************
* Create Fields.
* Used by APanel.cmd_find and Viewer.cmd_find
* @param ctx context
* @param WindowNo window
* @param TabNo tab no
* @param AD_Tab_ID tab
* @return array of all fields in display order
*/ | Create Fields. Used by APanel.cmd_find and Viewer.cmd_find | createFields | {
"repo_name": "arthurmelo88/palmetalADP",
"path": "palmetal_to_lbrk/base/src/org/compiere/model/GridField.java",
"license": "gpl-2.0",
"size": 50026
} | [
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.util.ArrayList",
"java.util.Properties",
"java.util.logging.Level",
"org.compiere.util.DB"
] | import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.Properties; import java.util.logging.Level; import org.compiere.util.DB; | import java.sql.*; import java.util.*; import java.util.logging.*; import org.compiere.util.*; | [
"java.sql",
"java.util",
"org.compiere.util"
] | java.sql; java.util; org.compiere.util; | 797,962 |
@Autowired
public void setJcifsServicePrincipal(@Value("${cas.spnego.service.principal:HTTP/cas.example.com@EXAMPLE.COM}")
final String jcifsServicePrincipal) {
if (StringUtils.isNotBlank(jcifsServicePrincipal)) {
logger.debug("jcifsServicePrincipal i... | void function(@Value(STR) final String jcifsServicePrincipal) { if (StringUtils.isNotBlank(jcifsServicePrincipal)) { logger.debug(STR, jcifsServicePrincipal); Config.setProperty(JCIFS_PROP_SERVICE_PRINCIPAL, jcifsServicePrincipal); } } | /**
* Sets the jcifs service principal.
*
* @param jcifsServicePrincipal the new jcifs service principal
*/ | Sets the jcifs service principal | setJcifsServicePrincipal | {
"repo_name": "y1011/cas-server",
"path": "cas-server-support-spnego/src/main/java/org/jasig/cas/support/spnego/authentication/handler/support/JcifsConfig.java",
"license": "apache-2.0",
"size": 11706
} | [
"org.apache.commons.lang3.StringUtils",
"org.springframework.beans.factory.annotation.Value"
] | import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; | import org.apache.commons.lang3.*; import org.springframework.beans.factory.annotation.*; | [
"org.apache.commons",
"org.springframework.beans"
] | org.apache.commons; org.springframework.beans; | 1,523,599 |
EReference getFeature_Semantics();
| EReference getFeature_Semantics(); | /**
* Returns the meta object for the reference '{@link org.dresdenocl.pivotmodel.Feature#getSemantics <em>Semantics</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for the reference '<em>Semantics</em>'.
* @see org.dresdenocl.pivotmodel.Feature#getSemantics()
* @see #ge... | Returns the meta object for the reference '<code>org.dresdenocl.pivotmodel.Feature#getSemantics Semantics</code>'. | getFeature_Semantics | {
"repo_name": "dresden-ocl/dresdenocl",
"path": "plugins/org.dresdenocl.pivotmodel/src/org/dresdenocl/pivotmodel/PivotModelPackage.java",
"license": "lgpl-3.0",
"size": 98285
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 672,015 |
public void replayHistory() {
int tabIndex = tabFolder.getSelectionIndex();
int idx = wFields.get(tabIndex).getSelectionIndex();
if (idx >= 0) {
String fields[] = wFields.get(tabIndex).getItem(idx);
int batchId = Const.toInt(fields[0], -1);
// String dateString = fields[13];
// Da... | void function() { int tabIndex = tabFolder.getSelectionIndex(); int idx = wFields.get(tabIndex).getSelectionIndex(); if (idx >= 0) { String fields[] = wFields.get(tabIndex).getItem(idx); int batchId = Const.toInt(fields[0], -1); List<JobEntryCopyResult> results = null; boolean gotResults = false; if (jeLogTable.isDefin... | /**
* Public for XUL.
*/ | Public for XUL | replayHistory | {
"repo_name": "lihongqiang/kettle-4.4.0-stable",
"path": "src-ui/org/pentaho/di/ui/spoon/job/JobHistoryDelegate.java",
"license": "apache-2.0",
"size": 32577
} | [
"java.util.ArrayList",
"java.util.List",
"org.eclipse.swt.widgets.MessageBox",
"org.pentaho.di.core.Const",
"org.pentaho.di.core.database.Database",
"org.pentaho.di.core.database.DatabaseMeta",
"org.pentaho.di.core.logging.JobEntryLogTable",
"org.pentaho.di.core.logging.LogTableField",
"org.pentaho.... | import java.util.ArrayList; import java.util.List; import org.eclipse.swt.widgets.MessageBox; import org.pentaho.di.core.Const; import org.pentaho.di.core.database.Database; import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.di.core.logging.JobEntryLogTable; import org.pentaho.di.core.logging.LogTable... | import java.util.*; import org.eclipse.swt.widgets.*; import org.pentaho.di.core.*; import org.pentaho.di.core.database.*; import org.pentaho.di.core.logging.*; import org.pentaho.di.core.row.*; import org.pentaho.di.i18n.*; import org.pentaho.di.job.entry.*; import org.pentaho.di.ui.core.dialog.*; import org.pentaho.d... | [
"java.util",
"org.eclipse.swt",
"org.pentaho.di"
] | java.util; org.eclipse.swt; org.pentaho.di; | 1,843,447 |
public void onLivingUpdate()
{
super.onLivingUpdate();
if (!this.worldObj.isRemote)
{
int i = MathHelper.floor_double(this.posX);
int j = MathHelper.floor_double(this.posY);
int k = MathHelper.floor_double(this.posZ);
if (this.isWet())
... | void function() { super.onLivingUpdate(); if (!this.worldObj.isRemote) { int i = MathHelper.floor_double(this.posX); int j = MathHelper.floor_double(this.posY); int k = MathHelper.floor_double(this.posZ); if (this.isWet()) { this.attackEntityFrom(DamageSource.drown, 1.0F); } if (this.worldObj.getBiome(new BlockPos(i, 0... | /**
* Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons
* use this to react to sunlight and start to burn.
*/ | Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn | onLivingUpdate | {
"repo_name": "F1r3w477/CustomWorldGen",
"path": "build/tmp/recompileMc/sources/net/minecraft/entity/monster/EntitySnowman.java",
"license": "lgpl-3.0",
"size": 6829
} | [
"net.minecraft.block.material.Material",
"net.minecraft.init.Blocks",
"net.minecraft.util.DamageSource",
"net.minecraft.util.math.BlockPos",
"net.minecraft.util.math.MathHelper"
] | import net.minecraft.block.material.Material; import net.minecraft.init.Blocks; import net.minecraft.util.DamageSource; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.MathHelper; | import net.minecraft.block.material.*; import net.minecraft.init.*; import net.minecraft.util.*; import net.minecraft.util.math.*; | [
"net.minecraft.block",
"net.minecraft.init",
"net.minecraft.util"
] | net.minecraft.block; net.minecraft.init; net.minecraft.util; | 1,653,361 |
@Test
public void oldSaslScramPlaintextClientWithoutSaslAuthenticateHeader() throws Exception {
verifySaslAuthenticateHeaderInterop(true, false, SecurityProtocol.SASL_PLAINTEXT, "SCRAM-SHA-256");
} | void function() throws Exception { verifySaslAuthenticateHeaderInterop(true, false, SecurityProtocol.SASL_PLAINTEXT, STR); } | /**
* Tests good path SASL/SCRAM authentication over PLAINTEXT with old version of client
* that does not support SASL_AUTHENTICATE headers and new version of server.
*/ | Tests good path SASL/SCRAM authentication over PLAINTEXT with old version of client that does not support SASL_AUTHENTICATE headers and new version of server | oldSaslScramPlaintextClientWithoutSaslAuthenticateHeader | {
"repo_name": "MyPureCloud/kafka",
"path": "clients/src/test/java/org/apache/kafka/common/security/authenticator/SaslAuthenticatorTest.java",
"license": "apache-2.0",
"size": 64909
} | [
"org.apache.kafka.common.security.auth.SecurityProtocol"
] | import org.apache.kafka.common.security.auth.SecurityProtocol; | import org.apache.kafka.common.security.auth.*; | [
"org.apache.kafka"
] | org.apache.kafka; | 2,392,661 |
@Private
@Unstable
public interface ApplicationHistoryManager {
@Public
@Unstable
ApplicationReport getApplication(ApplicationId appId) throws YarnException,
IOException; | interface ApplicationHistoryManager { ApplicationReport function(ApplicationId appId) throws YarnException, IOException; | /**
* This method returns Application {@link ApplicationReport} for the specified
* {@link ApplicationId}.
*
* @param appId
*
* @return {@link ApplicationReport} for the ApplicationId.
* @throws YarnException
* @throws IOException
*/ | This method returns Application <code>ApplicationReport</code> for the specified <code>ApplicationId</code> | getApplication | {
"repo_name": "simbadzina/hadoop-fcfs",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/ApplicationHistoryManager.java",
"license": "apache-2.0",
"size": 4646
} | [
"java.io.IOException",
"org.apache.hadoop.yarn.api.records.ApplicationId",
"org.apache.hadoop.yarn.api.records.ApplicationReport",
"org.apache.hadoop.yarn.exceptions.YarnException"
] | import java.io.IOException; import org.apache.hadoop.yarn.api.records.ApplicationId; import org.apache.hadoop.yarn.api.records.ApplicationReport; import org.apache.hadoop.yarn.exceptions.YarnException; | import java.io.*; import org.apache.hadoop.yarn.api.records.*; import org.apache.hadoop.yarn.exceptions.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 1,787,065 |
@Test
public void dateParseLoc() {
try {
Locale locale = new Locale("en");
Date date = new Date(4156111665112L);
Calendar cal = Calendar.getInstance(locale);
cal.setTime(date);
Expression expression = getExpressionWithFunctionContext("date_parse_loc(4156111665112, \"en\")");
assertEquals(Expres... | void function() { try { Locale locale = new Locale("en"); Date date = new Date(4156111665112L); Calendar cal = Calendar.getInstance(locale); cal.setTime(date); Expression expression = getExpressionWithFunctionContext(STRen\")"); assertEquals(ExpressionType.DATE, expression.getExpressionType()); assertEquals(cal.getTime... | /**
* DateParseWithLocale tests
*/ | DateParseWithLocale tests | dateParseLoc | {
"repo_name": "transwarpio/rapidminer",
"path": "rapidMiner/rapidminer-studio-core/src/test/java/com/rapidminer/tools/expression/internal/function/AntlrParserConversionTest.java",
"license": "gpl-3.0",
"size": 34902
} | [
"com.rapidminer.tools.expression.Expression",
"com.rapidminer.tools.expression.ExpressionException",
"com.rapidminer.tools.expression.ExpressionType",
"java.util.Calendar",
"java.util.Date",
"java.util.Locale",
"org.junit.Assert"
] | import com.rapidminer.tools.expression.Expression; import com.rapidminer.tools.expression.ExpressionException; import com.rapidminer.tools.expression.ExpressionType; import java.util.Calendar; import java.util.Date; import java.util.Locale; import org.junit.Assert; | import com.rapidminer.tools.expression.*; import java.util.*; import org.junit.*; | [
"com.rapidminer.tools",
"java.util",
"org.junit"
] | com.rapidminer.tools; java.util; org.junit; | 2,746,075 |
requireNonNull(config, "config");
distStatCfg = config;
}
/**
* Returns the {@link DistributionStatisticConfig} to use when the factory methods in {@link MoreMeters} | requireNonNull(config, STR); distStatCfg = config; } /** * Returns the {@link DistributionStatisticConfig} to use when the factory methods in {@link MoreMeters} | /**
* Sets the {@link DistributionStatisticConfig} to use when the factory methods in {@link MoreMeters} create
* a {@link Timer} or a {@link DistributionSummary}.
*/ | Sets the <code>DistributionStatisticConfig</code> to use when the factory methods in <code>MoreMeters</code> create a <code>Timer</code> or a <code>DistributionSummary</code> | setDistributionStatisticConfig | {
"repo_name": "anuraaga/armeria",
"path": "core/src/main/java/com/linecorp/armeria/common/metric/MoreMeters.java",
"license": "apache-2.0",
"size": 8189
} | [
"io.micrometer.core.instrument.distribution.DistributionStatisticConfig"
] | import io.micrometer.core.instrument.distribution.DistributionStatisticConfig; | import io.micrometer.core.instrument.distribution.*; | [
"io.micrometer.core"
] | io.micrometer.core; | 2,865,244 |
protected static void appendCloseReasonWithTruncation(ByteBuffer msg,
String reason) {
// Once the close code has been added there are a maximum of 123 bytes
// left for the reason phrase. If it is truncated then care needs to be
// taken to ensure the bytes are not truncated in ... | static void function(ByteBuffer msg, String reason) { byte[] reasonBytes = reason.getBytes(StandardCharsets.UTF_8); if (reasonBytes.length <= 123) { msg.put(reasonBytes); } else { int remaining = 123 - ELLIPSIS_BYTES_LEN; int pos = 0; byte[] bytesNext = reason.substring(pos, pos + 1).getBytes( StandardCharsets.UTF_8); ... | /**
* Use protected so unit tests can access this method directly.
*/ | Use protected so unit tests can access this method directly | appendCloseReasonWithTruncation | {
"repo_name": "kabir/jbw-play",
"path": "src/main/java/org/apache/tomcat/websocket/WsSession.java",
"license": "apache-2.0",
"size": 20141
} | [
"java.nio.ByteBuffer",
"java.nio.charset.StandardCharsets"
] | import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; | import java.nio.*; import java.nio.charset.*; | [
"java.nio"
] | java.nio; | 67,752 |
public static String getPath(String pathSoFar, String currentElement, String seekedElement, DTD document) {
if (currentElement.equalsIgnoreCase(seekedElement)) { //base case if we have it
if (pathSoFar.length() > 0) {
return pathSoFar + "." + seekedElement;
} else {
return seekedElement;
}
} els... | static String function(String pathSoFar, String currentElement, String seekedElement, DTD document) { if (currentElement.equalsIgnoreCase(seekedElement)) { if (pathSoFar.length() > 0) { return pathSoFar + "." + seekedElement; } else { return seekedElement; } } else { String[] children = DTDParser.getTokens(document.get... | /**
* Returns a textual representation of a tree path of an element
* @param pathSoFar - accumulator of string path
* @param currentElement - the current element that is looked at
* @param seekedElement - the element whose path has to be returned
* @param document - DTD
* @return tree path
*/ | Returns a textual representation of a tree path of an element | getPath | {
"repo_name": "tomtau/xml_normaliser",
"path": "src/uk/ac/ed/inf/proj/xmlnormaliser/validator/XNFValidator.java",
"license": "mit",
"size": 8061
} | [
"uk.ac.ed.inf.proj.xmlnormaliser.parser.dtd.DTDParser"
] | import uk.ac.ed.inf.proj.xmlnormaliser.parser.dtd.DTDParser; | import uk.ac.ed.inf.proj.xmlnormaliser.parser.dtd.*; | [
"uk.ac.ed"
] | uk.ac.ed; | 2,211,734 |
private static int[][] canonicalArrayForm(Vector ranges) {
return (int[][]) ranges.toArray (new int[ranges.size()][]);
}
protected SetOfIntegerSyntax(int[][] members) {
this.members = parse (members);
} | static int[][] function(Vector ranges) { return (int[][]) ranges.toArray (new int[ranges.size()][]); } protected SetOfIntegerSyntax(int[][] members) { this.members = parse (members); } | /**
* Convert the given vector of int[] objects to canonical array form.
*/ | Convert the given vector of int[] objects to canonical array form | canonicalArrayForm | {
"repo_name": "TheTypoMaster/Scaper",
"path": "openjdk/jdk/src/share/classes/javax/print/attribute/SetOfIntegerSyntax.java",
"license": "gpl-2.0",
"size": 20969
} | [
"java.util.Vector"
] | import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 2,228,257 |
public void addFooterView(@NonNull View v, int position) {
if (mFooterContainer == null) {
mFooterContainer = new LinearLayout(mContext);
mFooterContainer.setOrientation(LinearLayout.VERTICAL);
mFooterContainer.setLayoutParams(new RecyclerView.LayoutParams(MA... | void function(@NonNull View v, int position) { if (mFooterContainer == null) { mFooterContainer = new LinearLayout(mContext); mFooterContainer.setOrientation(LinearLayout.VERTICAL); mFooterContainer.setLayoutParams(new RecyclerView.LayoutParams(MATCH_PARENT, WRAP_CONTENT)); } if (position > 0 && position < mHeaderConta... | /**
* add footerView to the footerContainer
* @param v footerView
* @param position insert position
*/ | add footerView to the footerContainer | addFooterView | {
"repo_name": "ShonLin/QuickDevFramework",
"path": "framework/src/main/java/com/linxiao/framework/list/BaseRecyclerViewAdapter.java",
"license": "apache-2.0",
"size": 15992
} | [
"android.view.View",
"android.widget.LinearLayout",
"androidx.annotation.NonNull",
"androidx.recyclerview.widget.RecyclerView"
] | import android.view.View; import android.widget.LinearLayout; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; | import android.view.*; import android.widget.*; import androidx.annotation.*; import androidx.recyclerview.widget.*; | [
"android.view",
"android.widget",
"androidx.annotation",
"androidx.recyclerview"
] | android.view; android.widget; androidx.annotation; androidx.recyclerview; | 1,978,921 |
public void onClick(View v) {
if (v.getId() == R.id.btn_speak) {
startVoiceRecognitionActivity();
}
} | void function(View v) { if (v.getId() == R.id.btn_speak) { startVoiceRecognitionActivity(); } } | /**
* Handle the click on the start recognition button.
*/ | Handle the click on the start recognition button | onClick | {
"repo_name": "JimSeker/speech",
"path": "speech2text/app/src/main/java/edu/cs4730/speech2text/MainFragment.java",
"license": "apache-2.0",
"size": 9268
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 940,716 |
Command buildCreateNodeCommandFromTool(DDiagramElementContainer container, NodeCreationDescription tool); | Command buildCreateNodeCommandFromTool(DDiagramElementContainer container, NodeCreationDescription tool); | /**
* Create a command that creates a node.
*
* @param container
* container element in which the command should put the created
* node.
* @param tool
* {@link NodeCreationDescription} used to build the command.
* @return a command able to create... | Create a command that creates a node | buildCreateNodeCommandFromTool | {
"repo_name": "FTSRG/iq-sirius-integration",
"path": "host/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/tools/api/command/IDiagramCommandFactory.java",
"license": "epl-1.0",
"size": 18424
} | [
"org.eclipse.emf.common.command.Command",
"org.eclipse.sirius.diagram.DDiagramElementContainer",
"org.eclipse.sirius.diagram.description.tool.NodeCreationDescription"
] | import org.eclipse.emf.common.command.Command; import org.eclipse.sirius.diagram.DDiagramElementContainer; import org.eclipse.sirius.diagram.description.tool.NodeCreationDescription; | import org.eclipse.emf.common.command.*; import org.eclipse.sirius.diagram.*; import org.eclipse.sirius.diagram.description.tool.*; | [
"org.eclipse.emf",
"org.eclipse.sirius"
] | org.eclipse.emf; org.eclipse.sirius; | 1,985,312 |
return StudyCondition.class;
}
| return StudyCondition.class; } | /**
* Get the Class representation of the domain object that this DAO is representing.
*
* @return Class representation of the domain object that this DAO is representing.
*/ | Get the Class representation of the domain object that this DAO is representing | domainClass | {
"repo_name": "NCIP/caaers",
"path": "caAERS/software/core/src/main/java/gov/nih/nci/cabig/caaers/dao/StudyConditionDao.java",
"license": "bsd-3-clause",
"size": 1121
} | [
"gov.nih.nci.cabig.caaers.domain.StudyCondition"
] | import gov.nih.nci.cabig.caaers.domain.StudyCondition; | import gov.nih.nci.cabig.caaers.domain.*; | [
"gov.nih.nci"
] | gov.nih.nci; | 934,593 |
@Override
protected void onPostExecute(EPG epgPassed) {
pb.setVisibility(View.GONE);
epg = epgPassed;
addAllChannelsInformationToLayout();
}
} | void function(EPG epgPassed) { pb.setVisibility(View.GONE); epg = epgPassed; addAllChannelsInformationToLayout(); } } | /**
* Add the channels information when the EPG is fetched
*/ | Add the channels information when the EPG is fetched | onPostExecute | {
"repo_name": "Z-app/zmote",
"path": "src/se/z_app/zmote/gui/ChannelInformationFragment.java",
"license": "bsd-2-clause",
"size": 14441
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 2,634,403 |
@ApiModelProperty(example = "null", required = true, value = "remainder_points number")
public Float getRemainderPoints() {
return remainderPoints;
} | @ApiModelProperty(example = "null", required = true, value = STR) Float function() { return remainderPoints; } | /**
* remainder_points number
*
* @return remainderPoints
**/ | remainder_points number | getRemainderPoints | {
"repo_name": "GoldenGnu/eve-esi",
"path": "src/main/java/net/troja/eve/esi/model/CharacterResearchAgentsResponse.java",
"license": "apache-2.0",
"size": 5497
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 1,652,651 |
public void setParameters(Map<String, String[]> parameters); | void function(Map<String, String[]> parameters); | /**
* Initializes the lookup with the given Map of parameters.
*
* @param parameters
*/ | Initializes the lookup with the given Map of parameters | setParameters | {
"repo_name": "mztaylor/rice-git",
"path": "rice-middleware/kns/src/main/java/org/kuali/rice/kns/lookup/Lookupable.java",
"license": "apache-2.0",
"size": 8341
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 737,493 |
int totalWordsToPop = getTotalWords(elementsToPop);
switch (totalWordsToPop) {
case 1:
return Opcodes.POP;
case 2:
return Opcodes.POP2;
default:
throw new IllegalStateException(
String.format(
"Expected either 1 or 2 words to be popped, but actua... | int totalWordsToPop = getTotalWords(elementsToPop); switch (totalWordsToPop) { case 1: return Opcodes.POP; case 2: return Opcodes.POP2; default: throw new IllegalStateException( String.format( STR + STR, totalWordsToPop, elementsToPop)); } } | /**
* Returns the operation code for pop operations with a single instruction support by their type
* sizes on stack top
*/ | Returns the operation code for pop operations with a single instruction support by their type sizes on stack top | getTypeSizeAlignedPopOpcode | {
"repo_name": "dslomov/bazel",
"path": "src/tools/android/java/com/google/devtools/build/android/desugar/langmodel/LangModelHelper.java",
"license": "apache-2.0",
"size": 17723
} | [
"org.objectweb.asm.Opcodes"
] | import org.objectweb.asm.Opcodes; | import org.objectweb.asm.*; | [
"org.objectweb.asm"
] | org.objectweb.asm; | 2,305,775 |
@Override
public Map<String, String> getJQueryEventParameterListsForAjax() {
return null;
} | Map<String, String> function() { return null; } | /**
* Returns the subset of the parameter list of jQuery and other non-standard JS callbacks which is sent to the server via AJAX.
* If there's no parameter list for a certain event, the default is simply null.
*
* @return A hash map containing the events. May be null.
*/ | Returns the subset of the parameter list of jQuery and other non-standard JS callbacks which is sent to the server via AJAX. If there's no parameter list for a certain event, the default is simply null | getJQueryEventParameterListsForAjax | {
"repo_name": "mtvweb/BootsFaces-OSP",
"path": "src/main/java/net/bootsfaces/component/image/Image.java",
"license": "apache-2.0",
"size": 3589
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,886,755 |
static InputStream unzip(InputStream in) throws IOException {
ZipInputStream zip = new ZipInputStream(in);
zip.getNextEntry();
return zip;
} | static InputStream unzip(InputStream in) throws IOException { ZipInputStream zip = new ZipInputStream(in); zip.getNextEntry(); return zip; } | /**
* input must be in zip format, i.e. first a local header, and then the data
* segment.
*
*/ | input must be in zip format, i.e. first a local header, and then the data segment | unzip | {
"repo_name": "thiloplanz/v7files",
"path": "src/main/java/v7db/files/Compression.java",
"license": "agpl-3.0",
"size": 4008
} | [
"java.io.IOException",
"java.io.InputStream",
"java.util.zip.ZipInputStream"
] | import java.io.IOException; import java.io.InputStream; import java.util.zip.ZipInputStream; | import java.io.*; import java.util.zip.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 1,945,834 |
public static double motifSize(
DGraph<String> graph, DGraph<String> sub)
{
double bits = 0.0;
// * Store the structure
bits += EdgeListCompressor.directed(sub);
// * Store the labels
OnlineModel<String> model = new OnlineModel<String>(graph.labels());
for(DNode<String> node : sub.nodes())
... | static double function( DGraph<String> graph, DGraph<String> sub) { double bits = 0.0; bits += EdgeListCompressor.directed(sub); OnlineModel<String> model = new OnlineModel<String>(graph.labels()); for(DNode<String> node : sub.nodes()) bits += - Functions.log2(model.observe(node.label())) ; return bits; } | /**
* The cost of storing the motif
*
* @param graph
* @param sub
* @return
*/ | The cost of storing the motif | motifSize | {
"repo_name": "Data2Semantics/nodes",
"path": "nodes/src/main/java/org/nodes/motifs/MotifCompressor.java",
"license": "mit",
"size": 16604
} | [
"nl.peterbloem.kit.Functions",
"nl.peterbloem.kit.OnlineModel",
"org.nodes.DGraph",
"org.nodes.DNode",
"org.nodes.compression.EdgeListCompressor",
"org.nodes.compression.Functions"
] | import nl.peterbloem.kit.Functions; import nl.peterbloem.kit.OnlineModel; import org.nodes.DGraph; import org.nodes.DNode; import org.nodes.compression.EdgeListCompressor; import org.nodes.compression.Functions; | import nl.peterbloem.kit.*; import org.nodes.*; import org.nodes.compression.*; | [
"nl.peterbloem.kit",
"org.nodes",
"org.nodes.compression"
] | nl.peterbloem.kit; org.nodes; org.nodes.compression; | 1,846,419 |
@Test
void withAssertions_assertThat_local_date_Test() {
assertThat(LocalDate.now()).isNotNull();
} | void withAssertions_assertThat_local_date_Test() { assertThat(LocalDate.now()).isNotNull(); } | /**
* Test that the delegate method is called.
*/ | Test that the delegate method is called | withAssertions_assertThat_local_date_Test | {
"repo_name": "hazendaz/assertj-core",
"path": "src/test/java/org/assertj/core/api/WithAssertions_delegation_Test.java",
"license": "apache-2.0",
"size": 25178
} | [
"java.time.LocalDate",
"org.junit.jupiter.api.Test"
] | import java.time.LocalDate; import org.junit.jupiter.api.Test; | import java.time.*; import org.junit.jupiter.api.*; | [
"java.time",
"org.junit.jupiter"
] | java.time; org.junit.jupiter; | 1,576,450 |
public Observable<ServiceResponseWithHeaders<Void, ProductGetEntityTagHeaders>> getEntityTagWithServiceResponseAsync(String resourceGroupName, String serviceName, String productId) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and ... | Observable<ServiceResponseWithHeaders<Void, ProductGetEntityTagHeaders>> function(String resourceGroupName, String serviceName, String productId) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (serviceName == null) { throw new IllegalArgumentException(STR); } if (productId == null) { t... | /**
* Gets the entity state (Etag) version of the product specified by its identifier.
*
* @param resourceGroupName The name of the resource group.
* @param serviceName The name of the API Management service.
* @param productId Product identifier. Must be unique in the current API Management se... | Gets the entity state (Etag) version of the product specified by its identifier | getEntityTagWithServiceResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/apimanagement/mgmt-v2019_12_01/src/main/java/com/microsoft/azure/management/apimanagement/v2019_12_01/implementation/ProductsInner.java",
"license": "mit",
"size": 103688
} | [
"com.microsoft.azure.management.apimanagement.v2019_12_01.ProductGetEntityTagHeaders",
"com.microsoft.rest.ServiceResponseWithHeaders"
] | import com.microsoft.azure.management.apimanagement.v2019_12_01.ProductGetEntityTagHeaders; import com.microsoft.rest.ServiceResponseWithHeaders; | import com.microsoft.azure.management.apimanagement.v2019_12_01.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 2,117,555 |
public void setVelocityConstraintSolverIterations(int velocityConstraintSolverIterations) {
if (velocityConstraintSolverIterations < 1) throw new IllegalArgumentException(Messages.getString("dynamics.settings.invalidVelocityIterations"));
this.velocityConstraintSolverIterations = velocityConstraintSolverIterat... | void function(int velocityConstraintSolverIterations) { if (velocityConstraintSolverIterations < 1) throw new IllegalArgumentException(Messages.getString(STR)); this.velocityConstraintSolverIterations = velocityConstraintSolverIterations; } | /**
* Sets the number of iterations used to solve velocity constraints.
* <p>
* Increasing the number will increase accuracy but decrease performance.
* <p>
* Valid values are in the range [1, ∞]
* @param velocityConstraintSolverIterations the number of iterations used to solve velocity constrai... | Sets the number of iterations used to solve velocity constraints. Increasing the number will increase accuracy but decrease performance. Valid values are in the range [1, ∞] | setVelocityConstraintSolverIterations | {
"repo_name": "satishbabusee/dyn4j",
"path": "src/org/dyn4j/dynamics/Settings.java",
"license": "bsd-3-clause",
"size": 29709
} | [
"org.dyn4j.resources.Messages"
] | import org.dyn4j.resources.Messages; | import org.dyn4j.resources.*; | [
"org.dyn4j.resources"
] | org.dyn4j.resources; | 1,166,727 |
public List<E> range(final Bounds bounds, final Filter<E> filter) {
List<E> elements = new ArrayList<>();
if (
this.size() == 0
|| bounds == null
|| filter == null
|| !this.intersects(bounds)
) {
return elements;
}
for (E element: this.elements... | List<E> function(final Bounds bounds, final Filter<E> filter) { List<E> elements = new ArrayList<>(); if ( this.size() == 0 bounds == null filter == null !this.intersects(bounds) ) { return elements; } for (E element: this.elements) { if (!filter.include(element)) { continue; } if (RectangleTree.intersects(element, bou... | /**
* Find all elements within the range of the specified bounds.
*
* @param bounds The bounds to search for elements within.
* @param filter The filter to apply to the range search.
* @return All elements within range of the specified bounds.
*/ | Find all elements within the range of the specified bounds | range | {
"repo_name": "kasperisager/kelvin-maps",
"path": "src/main/java/dk/itu/kelvin/util/RectangleTree.java",
"license": "mit",
"size": 24326
} | [
"dk.itu.kelvin.util.function.Filter",
"java.util.ArrayList",
"java.util.List"
] | import dk.itu.kelvin.util.function.Filter; import java.util.ArrayList; import java.util.List; | import dk.itu.kelvin.util.function.*; import java.util.*; | [
"dk.itu.kelvin",
"java.util"
] | dk.itu.kelvin; java.util; | 78,400 |
public Set getKeysForPattern( String pattern ) {
RE regex = new RE( pattern );
Set result = new HashSet();
Iterator it = super.keySet().iterator();
while ( it.hasNext() ) {
String key = (String) it.next();
if ( regex.match( key ) )
result.add( key );
}
return result;
} | Set function( String pattern ) { RE regex = new RE( pattern ); Set result = new HashSet(); Iterator it = super.keySet().iterator(); while ( it.hasNext() ) { String key = (String) it.next(); if ( regex.match( key ) ) result.add( key ); } return result; } | /**
* Returns property keys matching regular expression pattern.
*
* @param pattern interpreted as regular expression
* @return Set contains String objects
*/ | Returns property keys matching regular expression pattern | getKeysForPattern | {
"repo_name": "nezbo/neat4speed2",
"path": "src/com/anji/util/Properties.java",
"license": "gpl-2.0",
"size": 22220
} | [
"java.util.HashSet",
"java.util.Iterator",
"java.util.Set"
] | import java.util.HashSet; import java.util.Iterator; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 577,698 |
public MessageDestinationRefType<T> removeMessageDestinationRefName()
{
childNode.removeChildren("message-destination-ref-name");
return this;
}
// --------------------------------------------------------------------------------------------------------||
// ClassName: MessageDestinationRef... | MessageDestinationRefType<T> function() { childNode.removeChildren(STR); return this; } | /**
* Removes the <code>message-destination-ref-name</code> element
* @return the current instance of <code>MessageDestinationRefType<T></code>
*/ | Removes the <code>message-destination-ref-name</code> element | removeMessageDestinationRefName | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/javaee6/MessageDestinationRefTypeImpl.java",
"license": "epl-1.0",
"size": 16577
} | [
"org.jboss.shrinkwrap.descriptor.api.javaee6.MessageDestinationRefType"
] | import org.jboss.shrinkwrap.descriptor.api.javaee6.MessageDestinationRefType; | import org.jboss.shrinkwrap.descriptor.api.javaee6.*; | [
"org.jboss.shrinkwrap"
] | org.jboss.shrinkwrap; | 842,818 |
public BoxComment changeCommentMessage(String commentId, String message) {
try {
LOG.debug("Changing comment(id={}) message={}", commentId, message);
if (commentId == null) {
throw new IllegalArgumentException("Parameter 'commentId' can not be null");
}
... | BoxComment function(String commentId, String message) { try { LOG.debug(STR, commentId, message); if (commentId == null) { throw new IllegalArgumentException(STR); } if (message == null) { throw new IllegalArgumentException(STR); } BoxComment comment = new BoxComment(boxConnection, commentId); return comment.changeMess... | /**
* Change comment message.
*
* @param commentId - the id of comment to change.
* @param message - the new message for the comment.
* @return The comment with changed message.
*/ | Change comment message | changeCommentMessage | {
"repo_name": "pax95/camel",
"path": "components/camel-box/camel-box-api/src/main/java/org/apache/camel/component/box/api/BoxCommentsManager.java",
"license": "apache-2.0",
"size": 7055
} | [
"com.box.sdk.BoxAPIException",
"com.box.sdk.BoxComment",
"org.apache.camel.RuntimeCamelException"
] | import com.box.sdk.BoxAPIException; import com.box.sdk.BoxComment; import org.apache.camel.RuntimeCamelException; | import com.box.sdk.*; import org.apache.camel.*; | [
"com.box.sdk",
"org.apache.camel"
] | com.box.sdk; org.apache.camel; | 982,705 |
public Set<Resource> getAvfRestrictions() {
Set<Resource> restrictions = new HashSet<>();
for (OwlClass r : avfRestrictions) {
restrictions.add(r.getURI());
}
return restrictions;
} | Set<Resource> function() { Set<Resource> restrictions = new HashSet<>(); for (OwlClass r : avfRestrictions) { restrictions.add(r.getURI()); } return restrictions; } | /**
* Get all allValuesFrom restrictions on this class
*/ | Get all allValuesFrom restrictions on this class | getAvfRestrictions | {
"repo_name": "isper3at/incubator-rya",
"path": "extras/rya.reasoning/src/main/java/mvm/rya/reasoning/OwlClass.java",
"license": "apache-2.0",
"size": 15951
} | [
"java.util.HashSet",
"java.util.Set",
"org.openrdf.model.Resource"
] | import java.util.HashSet; import java.util.Set; import org.openrdf.model.Resource; | import java.util.*; import org.openrdf.model.*; | [
"java.util",
"org.openrdf.model"
] | java.util; org.openrdf.model; | 1,320,769 |
protected String runInstance(AmazonEC2Client client,
ProcessDefinition template) {
RunInstancesRequest request = new RunInstancesRequest();
request.setImageId(template.getImage());
request.setInstanceType(template.getType());
request.setPlacement(new Placement().withAvailabilityZone(template.getZone()));... | String function(AmazonEC2Client client, ProcessDefinition template) { RunInstancesRequest request = new RunInstancesRequest(); request.setImageId(template.getImage()); request.setInstanceType(template.getType()); request.setPlacement(new Placement().withAvailabilityZone(template.getZone())); request.setKeyName(template... | /**
* Requests that EC2 create a new AMI instance.
*
* @param client
* The connection over which to send the request.
* @param template
* The information needed to create the new instance.
*
* @return The AMI ID of the new instance.
*/ | Requests that EC2 create a new AMI instance | runInstance | {
"repo_name": "deleidos/digitaledge-platform",
"path": "commons-cloud/src/main/java/com/deleidos/rtws/commons/cloud/platform/aws/SimpleAwsServiceImpl.java",
"license": "apache-2.0",
"size": 90799
} | [
"com.amazonaws.services.ec2.AmazonEC2Client",
"com.amazonaws.services.ec2.model.Instance",
"com.amazonaws.services.ec2.model.Placement",
"com.amazonaws.services.ec2.model.RunInstancesRequest",
"com.amazonaws.services.ec2.model.RunInstancesResult",
"com.deleidos.rtws.commons.cloud.beans.ProcessDefinition",... | import com.amazonaws.services.ec2.AmazonEC2Client; import com.amazonaws.services.ec2.model.Instance; import com.amazonaws.services.ec2.model.Placement; import com.amazonaws.services.ec2.model.RunInstancesRequest; import com.amazonaws.services.ec2.model.RunInstancesResult; import com.deleidos.rtws.commons.cloud.beans.Pr... | import com.amazonaws.services.ec2.*; import com.amazonaws.services.ec2.model.*; import com.deleidos.rtws.commons.cloud.beans.*; import java.util.*; import org.apache.commons.lang.*; | [
"com.amazonaws.services",
"com.deleidos.rtws",
"java.util",
"org.apache.commons"
] | com.amazonaws.services; com.deleidos.rtws; java.util; org.apache.commons; | 360,219 |
@LogMessage(level = WARN)
@Message(id = 1, value = "Duplicate Persistence Unit definition for %s " +
"in application. One of the duplicate persistence.xml should be removed from the application." +
" Application deployment will continue with the persistence.xml definitions from %s used. " +
... | @LogMessage(level = WARN) @Message(id = 1, value = STR + STR + STR + STR) void duplicatePersistenceUnitDefinition(String puName, String ogPuName, String dupPuName); | /**
* Logs a warning message indicating duplicate persistence.xml files were found.
*
* @param puName the persistence XML file.
* @param ogPuName the original persistence.xml file.
* @param dupPuName the duplicate persistence.xml file.
*/ | Logs a warning message indicating duplicate persistence.xml files were found | duplicatePersistenceUnitDefinition | {
"repo_name": "jstourac/wildfly",
"path": "jpa/subsystem/src/main/java/org/jboss/as/jpa/messages/JpaLogger.java",
"license": "lgpl-2.1",
"size": 35947
} | [
"org.jboss.logging.annotations.LogMessage",
"org.jboss.logging.annotations.Message"
] | import org.jboss.logging.annotations.LogMessage; import org.jboss.logging.annotations.Message; | import org.jboss.logging.annotations.*; | [
"org.jboss.logging"
] | org.jboss.logging; | 186,184 |
private static void setNodeLabelAndSmbInfo(Map<String, IfCollector> collectorMap, DbNodeEntry dbNodeEntry, DbNodeEntry currNodeEntry, InetAddress currPrimarySnmpIf) {
boolean labelSet = false;
InetAddress primaryIf = null;
if (!labelSet) {
if (currPrimaryS... | static void function(Map<String, IfCollector> collectorMap, DbNodeEntry dbNodeEntry, DbNodeEntry currNodeEntry, InetAddress currPrimarySnmpIf) { boolean labelSet = false; InetAddress primaryIf = null; if (!labelSet) { if (currPrimarySnmpIf != null) { primaryIf = currPrimarySnmpIf; } else { primaryIf = determinePrimaryI... | /**
* Primarily, this method is responsible for assigning the node's nodeLabel
* value using information collected from the node's various interfaces.
* Additionally, if the node talks NetBIOS/SMB, then the node's NetBIOS name
* and operating system fields are assigned.
*
* @param collect... | Primarily, this method is responsible for assigning the node's nodeLabel value using information collected from the node's various interfaces. Additionally, if the node talks NetBIOS/SMB, then the node's NetBIOS name and operating system fields are assigned | setNodeLabelAndSmbInfo | {
"repo_name": "vishwaAbhinav/OpenNMS",
"path": "opennms-services/src/main/java/org/opennms/netmgt/capsd/RescanProcessor.java",
"license": "gpl-2.0",
"size": 164395
} | [
"java.net.InetAddress",
"java.util.Collection",
"java.util.Iterator",
"java.util.Map",
"org.opennms.core.utils.InetAddressUtils",
"org.opennms.netmgt.capsd.snmp.SystemGroup"
] | import java.net.InetAddress; import java.util.Collection; import java.util.Iterator; import java.util.Map; import org.opennms.core.utils.InetAddressUtils; import org.opennms.netmgt.capsd.snmp.SystemGroup; | import java.net.*; import java.util.*; import org.opennms.core.utils.*; import org.opennms.netmgt.capsd.snmp.*; | [
"java.net",
"java.util",
"org.opennms.core",
"org.opennms.netmgt"
] | java.net; java.util; org.opennms.core; org.opennms.netmgt; | 364,188 |
@Internal
SingleFileReport getXml(); | SingleFileReport getXml(); | /**
* The JaCoCo (single file) XML report
*
* @return The JaCoCo (single file) XML report
*/ | The JaCoCo (single file) XML report | getXml | {
"repo_name": "gstevey/gradle",
"path": "subprojects/jacoco/src/main/java/org/gradle/testing/jacoco/tasks/JacocoReportsContainer.java",
"license": "apache-2.0",
"size": 1568
} | [
"org.gradle.api.reporting.SingleFileReport"
] | import org.gradle.api.reporting.SingleFileReport; | import org.gradle.api.reporting.*; | [
"org.gradle.api"
] | org.gradle.api; | 2,734,405 |
public static void zoomScale(IsChart chart, ScaleId scaleId, ScaleRange range) {
zoomScale(chart, scaleId, range, null);
}
| static void function(IsChart chart, ScaleId scaleId, ScaleRange range) { zoomScale(chart, scaleId, range, null); } | /**
* Zooms the chart scale on demand, programmatically.
*
* @param chart chart instance to invoke
* @param scaleId scale id to zoom
* @param range range (min/max) of scale to zoom
*/ | Zooms the chart scale on demand, programmatically | zoomScale | {
"repo_name": "pepstock-org/Charba",
"path": "src/org/pepstock/charba/client/zoom/ZoomPlugin.java",
"license": "apache-2.0",
"size": 11391
} | [
"org.pepstock.charba.client.IsChart",
"org.pepstock.charba.client.options.ScaleId"
] | import org.pepstock.charba.client.IsChart; import org.pepstock.charba.client.options.ScaleId; | import org.pepstock.charba.client.*; import org.pepstock.charba.client.options.*; | [
"org.pepstock.charba"
] | org.pepstock.charba; | 2,534,462 |
private boolean isWildcardWithoutBounds() {
if (this.type instanceof WildcardType) {
WildcardType wt = (WildcardType) this.type;
if (wt.getLowerBounds().length == 0) {
Type[] upperBounds = wt.getUpperBounds();
if (upperBounds.length == 0 || (upperBounds.length == 1 && Object.class == upperBounds[0]))... | boolean function() { if (this.type instanceof WildcardType) { WildcardType wt = (WildcardType) this.type; if (wt.getLowerBounds().length == 0) { Type[] upperBounds = wt.getUpperBounds(); if (upperBounds.length == 0 (upperBounds.length == 1 && Object.class == upperBounds[0])) { return true; } } } return false; } /** * R... | /**
* Determine whether the underlying type represents a wildcard
* without specific bounds (i.e., equal to {@code ? extends Object}).
*/ | Determine whether the underlying type represents a wildcard without specific bounds (i.e., equal to ? extends Object) | isWildcardWithoutBounds | {
"repo_name": "lj654548718/ispring",
"path": "src/main/java/io/ispring/ori/core/ResolvableType.java",
"license": "apache-2.0",
"size": 56184
} | [
"java.lang.reflect.Type",
"java.lang.reflect.WildcardType",
"java.util.Map"
] | import java.lang.reflect.Type; import java.lang.reflect.WildcardType; import java.util.Map; | import java.lang.reflect.*; import java.util.*; | [
"java.lang",
"java.util"
] | java.lang; java.util; | 462,166 |
public ProblemResourceInfo[] getProblemResources(long begin, long end, Set<AppdefEntityID> permitted, PageControl pc); | ProblemResourceInfo[] function(long begin, long end, Set<AppdefEntityID> permitted, PageControl pc); | /**
* Return the resources having problems in a timeframe with stats on alerts,
* oob conditions and when within the timeframe the problem awareness
* begins.
* @param begin the early boundary of the timeframe of interest
* @param end the late boundary of the timeframe of interest
* @retur... | Return the resources having problems in a timeframe with stats on alerts, oob conditions and when within the timeframe the problem awareness begins | getProblemResources | {
"repo_name": "cc14514/hq6",
"path": "hq-server/src/main/java/org/hyperic/hq/measurement/shared/ProblemMetricManager.java",
"license": "unlicense",
"size": 2959
} | [
"java.util.Set",
"org.hyperic.hq.appdef.shared.AppdefEntityID",
"org.hyperic.hq.measurement.ext.ProblemResourceInfo",
"org.hyperic.util.pager.PageControl"
] | import java.util.Set; import org.hyperic.hq.appdef.shared.AppdefEntityID; import org.hyperic.hq.measurement.ext.ProblemResourceInfo; import org.hyperic.util.pager.PageControl; | import java.util.*; import org.hyperic.hq.appdef.shared.*; import org.hyperic.hq.measurement.ext.*; import org.hyperic.util.pager.*; | [
"java.util",
"org.hyperic.hq",
"org.hyperic.util"
] | java.util; org.hyperic.hq; org.hyperic.util; | 817,831 |
interface Memento {
ObjectNode toObjectNode();
} | interface Memento { ObjectNode toObjectNode(); } | /**
* Returns a JSON representation of this memento.
*
* @return memento state as object node
*/ | Returns a JSON representation of this memento | toObjectNode | {
"repo_name": "VinodKumarS-Huawei/ietf96yang",
"path": "apps/demo/cord-gui/src/main/java/org/onosproject/cord/gui/model/XosFunction.java",
"license": "apache-2.0",
"size": 1887
} | [
"com.fasterxml.jackson.databind.node.ObjectNode"
] | import com.fasterxml.jackson.databind.node.ObjectNode; | import com.fasterxml.jackson.databind.node.*; | [
"com.fasterxml.jackson"
] | com.fasterxml.jackson; | 2,131,260 |
public JDialog getDialog() {return mDialog;} | public JDialog getDialog() {return mDialog;} | /**
* Sets a dialog window.
*
* @param d a {@link javax.swing.JDialog} object.
*/ | Sets a dialog window | setDialog | {
"repo_name": "ttsudipto/smartIO",
"path": "src/project/pc/net/ServerThread.java",
"license": "gpl-3.0",
"size": 11352
} | [
"javax.swing.JDialog"
] | import javax.swing.JDialog; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 72,011 |
public void testSorted() {
final String json = RESOURCE.getJSON();
@SuppressWarnings("unchecked")
final Map<String, Object[]> map = (Map<String, Object[]>) JSON.parse(json);
assertEquals(map.size(), 1);
final Object[] names = map.get("types");
assertEquals(names.length, 4);
final Object[] ... | void function() { final String json = RESOURCE.getJSON(); @SuppressWarnings(STR) final Map<String, Object[]> map = (Map<String, Object[]>) JSON.parse(json); assertEquals(map.size(), 1); final Object[] names = map.get("types"); assertEquals(names.length, 4); final Object[] copy = new Object[4]; System.arraycopy(names, 0... | /**
* Tests that the list of names is sorted.
*/ | Tests that the list of names is sorted | testSorted | {
"repo_name": "McLeodMoores/starling",
"path": "projects/web/src/test/java/com/opengamma/web/valuerequirementname/WebValueRequirementNamesResourceTest.java",
"license": "apache-2.0",
"size": 1719
} | [
"java.util.Arrays",
"java.util.Map",
"org.eclipse.jetty.util.ajax.JSON",
"org.testng.Assert",
"org.testng.internal.junit.ArrayAsserts"
] | import java.util.Arrays; import java.util.Map; import org.eclipse.jetty.util.ajax.JSON; import org.testng.Assert; import org.testng.internal.junit.ArrayAsserts; | import java.util.*; import org.eclipse.jetty.util.ajax.*; import org.testng.*; import org.testng.internal.junit.*; | [
"java.util",
"org.eclipse.jetty",
"org.testng",
"org.testng.internal"
] | java.util; org.eclipse.jetty; org.testng; org.testng.internal; | 725,021 |
public static CalcitePrepare.ConvertResult convert(
final CalciteConnection connection, final CalciteSchema schema,
final List<String> schemaPath, final String sql) {
final CalcitePrepare prepare = CalcitePrepare.DEFAULT_FACTORY.apply();
final ImmutableMap<CalciteConnectionProperty, String> propVa... | static CalcitePrepare.ConvertResult function( final CalciteConnection connection, final CalciteSchema schema, final List<String> schemaPath, final String sql) { final CalcitePrepare prepare = CalcitePrepare.DEFAULT_FACTORY.apply(); final ImmutableMap<CalciteConnectionProperty, String> propValues = ImmutableMap.of(); fi... | /** Parses and validates a SQL query and converts to relational algebra. For
* use within Calcite only. */ | Parses and validates a SQL query and converts to relational algebra. For | convert | {
"repo_name": "julianhyde/calcite",
"path": "core/src/main/java/org/apache/calcite/schema/Schemas.java",
"license": "apache-2.0",
"size": 22302
} | [
"com.google.common.collect.ImmutableMap",
"java.util.List",
"org.apache.calcite.config.CalciteConnectionProperty",
"org.apache.calcite.jdbc.CalciteConnection",
"org.apache.calcite.jdbc.CalcitePrepare",
"org.apache.calcite.jdbc.CalciteSchema"
] | import com.google.common.collect.ImmutableMap; import java.util.List; import org.apache.calcite.config.CalciteConnectionProperty; import org.apache.calcite.jdbc.CalciteConnection; import org.apache.calcite.jdbc.CalcitePrepare; import org.apache.calcite.jdbc.CalciteSchema; | import com.google.common.collect.*; import java.util.*; import org.apache.calcite.config.*; import org.apache.calcite.jdbc.*; | [
"com.google.common",
"java.util",
"org.apache.calcite"
] | com.google.common; java.util; org.apache.calcite; | 228,684 |
public static boolean isBundleActive(final Bundle b) {
if ( b.getState() == Bundle.ACTIVE ) {
return true;
}
if ( b.getState() == Bundle.STARTING && isLazyActivatian(b) ) {
return true;
}
return ( getFragmentHostHeader(b) != null );
} | static boolean function(final Bundle b) { if ( b.getState() == Bundle.ACTIVE ) { return true; } if ( b.getState() == Bundle.STARTING && isLazyActivatian(b) ) { return true; } return ( getFragmentHostHeader(b) != null ); } | /**
* Check if the bundle is active.
* This is true if the bundle has the active state or of the bundle
* is in the starting state and has the lazy activation policy.
* Or if the bundle is a fragment, it's considered active as well
*/ | Check if the bundle is active. This is true if the bundle has the active state or of the bundle is in the starting state and has the lazy activation policy. Or if the bundle is a fragment, it's considered active as well | isBundleActive | {
"repo_name": "dulvac/sling",
"path": "installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/BundleUtil.java",
"license": "apache-2.0",
"size": 2780
} | [
"org.osgi.framework.Bundle"
] | import org.osgi.framework.Bundle; | import org.osgi.framework.*; | [
"org.osgi.framework"
] | org.osgi.framework; | 2,477,405 |
public File getConfigFile() {
// I believe the easiest way to get the base folder (e.g craftbukkit set via -P) for plugins to use
// is to abuse the plugin object we already have
// plugin.getDataFolder() => base/plugins/PluginA/
// pluginsFolder => base/plugins/
// The ... | File function() { File pluginsFolder = plugin.getDataFolder().getParentFile(); return new File(new File(pluginsFolder, STR), STR); } | /**
* Gets the File object of the config file that should be used to store data such as the GUID and opt-out status
*
* @return the File object for the config file
*/ | Gets the File object of the config file that should be used to store data such as the GUID and opt-out status | getConfigFile | {
"repo_name": "syamn/Likes",
"path": "src/main/java/syam/likes/util/Metrics.java",
"license": "lgpl-3.0",
"size": 21708
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 2,743,943 |
List<IotAlertType> value(); | List<IotAlertType> value(); | /**
* Gets the value property: List data.
*
* @return the value value.
*/ | Gets the value property: List data | value | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotAlertTypeList.java",
"license": "mit",
"size": 746
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,138,679 |
protected void configureCacheFactory(Configuration cfg) {
cfg.setProperty(SharedCacheInstanceManager.CACHE_RESOURCE_PROP, JBC_CONFIG);
}
| void function(Configuration cfg) { cfg.setProperty(SharedCacheInstanceManager.CACHE_RESOURCE_PROP, JBC_CONFIG); } | /**
* Apply any region-factory specific configurations.
*
* @param the Configuration to update.
*/ | Apply any region-factory specific configurations | configureCacheFactory | {
"repo_name": "codeApeFromChina/resource",
"path": "frame_packages/java_libs/hibernate-distribution-3.6.10.Final/project/hibernate-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/MVCCConcurrentWriteTest.java",
"license": "unlicense",
"size": 21045
} | [
"org.hibernate.cache.jbc.builder.SharedCacheInstanceManager",
"org.hibernate.cfg.Configuration"
] | import org.hibernate.cache.jbc.builder.SharedCacheInstanceManager; import org.hibernate.cfg.Configuration; | import org.hibernate.cache.jbc.builder.*; import org.hibernate.cfg.*; | [
"org.hibernate.cache",
"org.hibernate.cfg"
] | org.hibernate.cache; org.hibernate.cfg; | 469,061 |
public Lock getLock() {
return this.lock;
} | Lock function() { return this.lock; } | /**
* Returns lock.
*
* @return Lock
*/ | Returns lock | getLock | {
"repo_name": "roman-sd/java-a-to-z",
"path": "chapter_007/src/main/java/ru/sdroman/bomberman/Cell.java",
"license": "apache-2.0",
"size": 808
} | [
"java.util.concurrent.locks.Lock"
] | import java.util.concurrent.locks.Lock; | import java.util.concurrent.locks.*; | [
"java.util"
] | java.util; | 377,756 |
public RunningJob submitJob(String jobFile) throws FileNotFoundException,
InvalidJobConfException,
IOException {
// Load in the submitted job details
JobConf job = new JobConf(jobFile);
return submi... | RunningJob function(String jobFile) throws FileNotFoundException, InvalidJobConfException, IOException { JobConf job = new JobConf(jobFile); return submitJob(job); } | /**
* Submit a job to the MR system.
*
* This returns a handle to the {@link RunningJob} which can be used to track
* the running-job.
*
* @param jobFile the job configuration.
* @return a handle to the {@link RunningJob} which can be used to track the
* running-job.
* @throws FileN... | Submit a job to the MR system. This returns a handle to the <code>RunningJob</code> which can be used to track the running-job | submitJob | {
"repo_name": "ZhangXFeng/hadoop",
"path": "src/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java",
"license": "apache-2.0",
"size": 39030
} | [
"java.io.FileNotFoundException",
"java.io.IOException"
] | import java.io.FileNotFoundException; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 210,074 |
void clear() {
if (mViewTypeCount == 1) {
final ArrayList<View> scrap = mCurrentScrap;
final int scrapCount = scrap.size();
for (int i = 0; i < scrapCount; i++) {
removeDetachedView(scrap.remove(scrapCount - 1 - i), false);
... | void clear() { if (mViewTypeCount == 1) { final ArrayList<View> scrap = mCurrentScrap; final int scrapCount = scrap.size(); for (int i = 0; i < scrapCount; i++) { removeDetachedView(scrap.remove(scrapCount - 1 - i), false); } } else { final int typeCount = mViewTypeCount; for (int i = 0; i < typeCount; i++) { final Arr... | /**
* Clears the scrap heap.
*/ | Clears the scrap heap | clear | {
"repo_name": "tiankun/YmPaoPao",
"path": "app/src/main/java/com/yeming/paopao/views/third/staggeredgridview/ExtendableListView.java",
"license": "apache-2.0",
"size": 92129
} | [
"android.view.View",
"java.util.ArrayList"
] | import android.view.View; import java.util.ArrayList; | import android.view.*; import java.util.*; | [
"android.view",
"java.util"
] | android.view; java.util; | 1,194,028 |
public String toString() {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
pw.println("=== BaseRequest ===");
pw.println("method = " + method.toString());
pw.println("protocol = " + protocol.toString());
pw.println("request... | String function() { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); pw.println(STR); pw.println(STR + method.toString()); pw.println(STR + protocol.toString()); pw.println(STR + requestURI.toString()); pw.println(STR + remoteAddr.toString()); pw.println(STR + remoteHost.toString()); pw.print... | /**
* ** SLOW ** for debugging only!
*/ | SLOW ** for debugging only | toString | {
"repo_name": "johnaoahra80/JBOSSWEB_7_5_0_FINAL",
"path": "src/main/java/org/apache/tomcat/util/http/BaseRequest.java",
"license": "apache-2.0",
"size": 9229
} | [
"java.io.PrintWriter",
"java.io.StringWriter"
] | import java.io.PrintWriter; import java.io.StringWriter; | import java.io.*; | [
"java.io"
] | java.io; | 1,321,802 |
public void onConnect(View view) {
Optional<InetSocketAddress> mAddr = getConnectAddr();
if (!mAddr.isPresent()) {
showErrorDialog("Invalid hostname/port");
return;
}
if (!haveNetwork()) {
showErrorDialog("Not connected to a network!");
... | void function(View view) { Optional<InetSocketAddress> mAddr = getConnectAddr(); if (!mAddr.isPresent()) { showErrorDialog(STR); return; } if (!haveNetwork()) { showErrorDialog(STR); return; } if (mAddr.get().isUnresolved()) { showErrorDialog(STR); return; } if (app.getWifiOnlyOption() && !haveWiFi()) { log.debug(STR);... | /**
* Validates the input and connects to the specified server,
* possibly after letting the user choose a key file.
* @param view The view from which this method was called.
*/ | Validates the input and connects to the specified server, possibly after letting the user choose a key file | onConnect | {
"repo_name": "niklasb/pse-broadcast-encryption",
"path": "modules/client/src/main/java/cryptocast/client/MainActivity.java",
"license": "gpl-3.0",
"size": 7886
} | [
"android.view.View",
"com.google.common.base.Optional",
"java.io.File",
"java.net.InetSocketAddress"
] | import android.view.View; import com.google.common.base.Optional; import java.io.File; import java.net.InetSocketAddress; | import android.view.*; import com.google.common.base.*; import java.io.*; import java.net.*; | [
"android.view",
"com.google.common",
"java.io",
"java.net"
] | android.view; com.google.common; java.io; java.net; | 677,881 |
@Override
public VRegistration rename(String name) {
return new VRegistration(DSL.name(name), null);
} | VRegistration function(String name) { return new VRegistration(DSL.name(name), null); } | /**
* Rename this table
*/ | Rename this table | rename | {
"repo_name": "jottyfan/CampOrganizer",
"path": "src/main/jooq/de/jottyfan/camporganizer/db/jooq/tables/VRegistration.java",
"license": "unlicense",
"size": 5150
} | [
"org.jooq.impl.DSL"
] | import org.jooq.impl.DSL; | import org.jooq.impl.*; | [
"org.jooq.impl"
] | org.jooq.impl; | 1,985,464 |
public ServiceResponse<Void> delete204Succeeded() throws CloudException, IOException, InterruptedException {
Response<ResponseBody> result = service.delete204Succeeded(this.client.acceptLanguage(), this.client.userAgent()).execute();
return client.getAzureClient().getPostOrDeleteResult(result, new T... | ServiceResponse<Void> function() throws CloudException, IOException, InterruptedException { Response<ResponseBody> result = service.delete204Succeeded(this.client.acceptLanguage(), this.client.userAgent()).execute(); return client.getAzureClient().getPostOrDeleteResult(result, new TypeToken<Void>() { }.getType()); } | /**
* Long running delete request, service returns a 204 to the initial request, indicating success.
*
* @throws CloudException exception thrown from REST call
* @throws IOException exception thrown from serialization/deserialization
* @throws InterruptedException exception thrown when long run... | Long running delete request, service returns a 204 to the initial request, indicating success | delete204Succeeded | {
"repo_name": "yaqiyang/autorest",
"path": "src/generator/AutoRest.Java.Azure.Tests/src/main/java/fixtures/lro/implementation/LROSADsImpl.java",
"license": "mit",
"size": 244275
} | [
"com.google.common.reflect.TypeToken",
"com.microsoft.azure.CloudException",
"com.microsoft.rest.ServiceResponse",
"java.io.IOException"
] | import com.google.common.reflect.TypeToken; import com.microsoft.azure.CloudException; import com.microsoft.rest.ServiceResponse; import java.io.IOException; | import com.google.common.reflect.*; import com.microsoft.azure.*; import com.microsoft.rest.*; import java.io.*; | [
"com.google.common",
"com.microsoft.azure",
"com.microsoft.rest",
"java.io"
] | com.google.common; com.microsoft.azure; com.microsoft.rest; java.io; | 2,798,954 |
public void testServerRestartWithNewTypes() throws Exception {
IgniteEx node1 = start(1, KeyClass.class, ValueClass.class);
assertTypes(node1, ValueClass.class);
IgniteEx node2 = startClientNoCache(2);
assertTypes(node2);
node2.cache(CACHE_NAME);
assertTypes(node2, ... | void function() throws Exception { IgniteEx node1 = start(1, KeyClass.class, ValueClass.class); assertTypes(node1, ValueClass.class); IgniteEx node2 = startClientNoCache(2); assertTypes(node2); node2.cache(CACHE_NAME); assertTypes(node2, ValueClass.class); stopGrid(1); | /**
* Test client reconnect after server restart accompanied by schema change.
*
* @throws Exception If failed.
*/ | Test client reconnect after server restart accompanied by schema change | testServerRestartWithNewTypes | {
"repo_name": "dream-x/ignite",
"path": "modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/index/SchemaExchangeSelfTest.java",
"license": "apache-2.0",
"size": 18934
} | [
"org.apache.ignite.internal.IgniteEx"
] | import org.apache.ignite.internal.IgniteEx; | import org.apache.ignite.internal.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 2,774,393 |
@Override
public List<String> getProperties() {
return propertiesFiles;
} | List<String> function() { return propertiesFiles; } | /**
* If the module(s) called by this launcher require properties files, return their qualified path from
* here.Take note that the first added properties files will take precedence over subsequent ones if they
* contain conflicting keys.
*
* @return The list of properties file we need to add ... | If the module(s) called by this launcher require properties files, return their qualified path from here.Take note that the first added properties files will take precedence over subsequent ones if they contain conflicting keys | getProperties | {
"repo_name": "debrecenics/ICMT2016",
"path": "hu.bme.mit.inf.acceleo.ecore2alloy/src/hu/bme/mit/inf/acceleo/ecore2alloy/main/GenerateAlloy.java",
"license": "epl-1.0",
"size": 18269
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,454,781 |
static boolean isWbSeries(IOFSwitch sw) {
if (! isNoviSwitch(sw)) {
return false;
}
if (E_SWITCH_MANUFACTURER_DESCRIPTION.equalsIgnoreCase(getManufacturer(sw))) {
return true;
}
Optional<SwitchDescription> description = Optional.ofNullable(sw.getSwit... | static boolean isWbSeries(IOFSwitch sw) { if (! isNoviSwitch(sw)) { return false; } if (E_SWITCH_MANUFACTURER_DESCRIPTION.equalsIgnoreCase(getManufacturer(sw))) { return true; } Optional<SwitchDescription> description = Optional.ofNullable(sw.getSwitchDescription()); return E_SWITCH_HARDWARE_DESCRIPTION_REGEX.matcher( ... | /**
* Noviflow Switch WB Series (also known as E-switches). Has several restrictions comparing with NS Series.
*/ | Noviflow Switch WB Series (also known as E-switches). Has several restrictions comparing with NS Series | isWbSeries | {
"repo_name": "jonvestal/open-kilda",
"path": "src-java/floodlight-service/floodlight-modules/src/main/java/org/openkilda/floodlight/feature/NoviflowSpecificFeature.java",
"license": "apache-2.0",
"size": 3060
} | [
"java.util.Optional",
"net.floodlightcontroller.core.IOFSwitch",
"net.floodlightcontroller.core.SwitchDescription"
] | import java.util.Optional; import net.floodlightcontroller.core.IOFSwitch; import net.floodlightcontroller.core.SwitchDescription; | import java.util.*; import net.floodlightcontroller.core.*; | [
"java.util",
"net.floodlightcontroller.core"
] | java.util; net.floodlightcontroller.core; | 1,192,208 |
public static CCSMatrix fromBinary(byte[] array) {
ByteBuffer buffer = ByteBuffer.wrap(array);
if (buffer.get() != MATRIX_TAG) {
throw new IllegalArgumentException("Can not decode CCSMatrix from the given byte array.");
}
int rows = buffer.getInt();
int columns ... | static CCSMatrix function(byte[] array) { ByteBuffer buffer = ByteBuffer.wrap(array); if (buffer.get() != MATRIX_TAG) { throw new IllegalArgumentException(STR); } int rows = buffer.getInt(); int columns = buffer.getInt(); int cardinality = buffer.getInt(); int[] rowIndices = new int[cardinality]; double[] values = new ... | /**
* Decodes {@link CCSMatrix} from the given byte {@code array}.
*
* @param array the byte array representing a matrix
*
* @return a decoded matrix
*/ | Decodes <code>CCSMatrix</code> from the given byte array | fromBinary | {
"repo_name": "luttero/Maud",
"path": "src/org/la4j/matrix/sparse/CCSMatrix.java",
"license": "bsd-3-clause",
"size": 31350
} | [
"java.nio.ByteBuffer"
] | import java.nio.ByteBuffer; | import java.nio.*; | [
"java.nio"
] | java.nio; | 1,462,150 |
@Test(timeout = 300000)
public void testMaxWithValidRangeBeginningAtOddTime() throws Throwable {
int TIME_BASELINE =
(int) ((new GregorianCalendar(2014, 10, 10, 2, 15, 0).getTime().getTime()) / 1000);
int TIME_LIMIT =
(int) ((new GregorianCalendar(2014, 10, 10, 4, 0, 0).getTime().getTime()) ... | @Test(timeout = 300000) void function() throws Throwable { int TIME_BASELINE = (int) ((new GregorianCalendar(2014, 10, 10, 2, 15, 0).getTime().getTime()) / 1000); int TIME_LIMIT = (int) ((new GregorianCalendar(2014, 10, 10, 4, 0, 0).getTime().getTime()) / 1000); TimeseriesAggregationClient aClient = new TimeseriesAggre... | /**
* give maxs for a valid range in the table.
* @throws Throwable
*/ | give maxs for a valid range in the table | testMaxWithValidRangeBeginningAtOddTime | {
"repo_name": "juwi/HBase-TAggregator",
"path": "src/test/java/org/apache/hadoop/hbase/coprocessor/TestTimeseriesAggregateProtocol.java",
"license": "apache-2.0",
"size": 30929
} | [
"java.util.GregorianCalendar",
"java.util.Map",
"java.util.concurrent.ConcurrentSkipListMap",
"org.apache.hadoop.hbase.client.Scan",
"org.apache.hadoop.hbase.client.coprocessor.LongColumnInterpreter",
"org.apache.hadoop.hbase.coprocessor.client.TimeseriesAggregationClient",
"org.apache.hadoop.hbase.prot... | import java.util.GregorianCalendar; import java.util.Map; import java.util.concurrent.ConcurrentSkipListMap; import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.client.coprocessor.LongColumnInterpreter; import org.apache.hadoop.hbase.coprocessor.client.TimeseriesAggregationClient; import org.apac... | import java.util.*; import java.util.concurrent.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.client.coprocessor.*; import org.apache.hadoop.hbase.coprocessor.client.*; import org.apache.hadoop.hbase.protobuf.generated.*; import org.junit.*; | [
"java.util",
"org.apache.hadoop",
"org.junit"
] | java.util; org.apache.hadoop; org.junit; | 332,404 |
DataSet vectorize(); | DataSet vectorize(); | /**
* Vectorizes the input source in to a dataset
* @return Adam Gibson
*/ | Vectorizes the input source in to a dataset | vectorize | {
"repo_name": "shuodata/deeplearning4j",
"path": "deeplearning4j-core/src/main/java/org/deeplearning4j/datasets/vectorizer/Vectorizer.java",
"license": "apache-2.0",
"size": 1121
} | [
"org.nd4j.linalg.dataset.DataSet"
] | import org.nd4j.linalg.dataset.DataSet; | import org.nd4j.linalg.dataset.*; | [
"org.nd4j.linalg"
] | org.nd4j.linalg; | 196,752 |
public Iterator<NodeId> merge(SessionInfo sessionInfo, NodeId nodeId, String srcWorkspaceName, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException; | Iterator<NodeId> function(SessionInfo sessionInfo, NodeId nodeId, String srcWorkspaceName, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException; | /**
* Merge the node identified by the given <code>NodeId</code> and its subtree
* with the corresponding node present in the workspace with the name of
* <code>srcWorkspaceName</code>.
*
* @param sessionInfo
* @param nodeId
* @param srcWorkspaceName
* @param bestEffort
* @r... | Merge the node identified by the given <code>NodeId</code> and its subtree with the corresponding node present in the workspace with the name of <code>srcWorkspaceName</code> | merge | {
"repo_name": "apache/jackrabbit",
"path": "jackrabbit-spi/src/main/java/org/apache/jackrabbit/spi/RepositoryService.java",
"license": "apache-2.0",
"size": 65221
} | [
"java.util.Iterator",
"javax.jcr.AccessDeniedException",
"javax.jcr.InvalidItemStateException",
"javax.jcr.MergeException",
"javax.jcr.NoSuchWorkspaceException",
"javax.jcr.RepositoryException",
"javax.jcr.lock.LockException"
] | import java.util.Iterator; import javax.jcr.AccessDeniedException; import javax.jcr.InvalidItemStateException; import javax.jcr.MergeException; import javax.jcr.NoSuchWorkspaceException; import javax.jcr.RepositoryException; import javax.jcr.lock.LockException; | import java.util.*; import javax.jcr.*; import javax.jcr.lock.*; | [
"java.util",
"javax.jcr"
] | java.util; javax.jcr; | 1,428,729 |
public static String getAliasedEscapedColumnName(
IntrospectedColumn introspectedColumn) {
if (stringHasValue(introspectedColumn.getTableAlias())) {
StringBuilder sb = new StringBuilder();
sb.append(introspectedColumn.getTableAlias());
sb.append('.');
... | static String function( IntrospectedColumn introspectedColumn) { if (stringHasValue(introspectedColumn.getTableAlias())) { StringBuilder sb = new StringBuilder(); sb.append(introspectedColumn.getTableAlias()); sb.append('.'); sb.append(getEscapedColumnName(introspectedColumn)); return sb.toString(); } else { return get... | /**
* Calculates the string to use in select phrases in SqlMaps.
*
* @param introspectedColumn
* the introspected column
* @return the aliased escaped column name
*/ | Calculates the string to use in select phrases in SqlMaps | getAliasedEscapedColumnName | {
"repo_name": "victzero/ezjs-generator",
"path": "generator/src/main/java/me/ezjs/generator/mybatis/codegen/ibatis2/Ibatis2FormattingUtilities.java",
"license": "apache-2.0",
"size": 8051
} | [
"me.ezjs.generator.mybatis.api.IntrospectedColumn"
] | import me.ezjs.generator.mybatis.api.IntrospectedColumn; | import me.ezjs.generator.mybatis.api.*; | [
"me.ezjs.generator"
] | me.ezjs.generator; | 2,145,841 |
@Override
public List<TCostCenterBean> loadByNumber(String number) {
Criteria crit = new Criteria();
crit.add(COSTCENTERNUMBER, number);
try {
return convertTorqueListToBeanList(doSelect(crit));
} catch(Exception e) {
LOGGER.error("Getting the costcenters by number " + " failed with " + e.getMessage()... | List<TCostCenterBean> function(String number) { Criteria crit = new Criteria(); crit.add(COSTCENTERNUMBER, number); try { return convertTorqueListToBeanList(doSelect(crit)); } catch(Exception e) { LOGGER.error(STR + STR + e.getMessage()); return null; } } | /**
* Loads cost centers by label
* @param number
* @return
*/ | Loads cost centers by label | loadByNumber | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/persist/TCostCenterPeer.java",
"license": "gpl-3.0",
"size": 5261
} | [
"com.aurel.track.beans.TCostCenterBean",
"java.util.List",
"org.apache.torque.util.Criteria"
] | import com.aurel.track.beans.TCostCenterBean; import java.util.List; import org.apache.torque.util.Criteria; | import com.aurel.track.beans.*; import java.util.*; import org.apache.torque.util.*; | [
"com.aurel.track",
"java.util",
"org.apache.torque"
] | com.aurel.track; java.util; org.apache.torque; | 1,500,266 |
void focusProperty() {
Vector propertyFields = getPropertyFields();
Enumeration e = propertyFields.elements();
while (e.hasMoreElements()) {
PropertyField propField = (PropertyField) e.nextElement();
if (!propField.isHidden()) {
propField.focus();
return;
}
}
logger.warning("there is no pr... | void focusProperty() { Vector propertyFields = getPropertyFields(); Enumeration e = propertyFields.elements(); while (e.hasMoreElements()) { PropertyField propField = (PropertyField) e.nextElement(); if (!propField.isHidden()) { propField.focus(); return; } } logger.warning(STR); } | /**
* ### param not yet used, instead the first property is fosused
*
* @see TopicmapEditorModel#focusType
*/ | ### param not yet used, instead the first property is fosused | focusProperty | {
"repo_name": "mukil/deepamehta2",
"path": "develop/src/de/deepamehta/client/PropertyPanel.java",
"license": "gpl-3.0",
"size": 58794
} | [
"java.util.Enumeration",
"java.util.Vector"
] | import java.util.Enumeration; import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 2,759,647 |
return new Builder(registry);
}
public enum LoggingLevel {TRACE, DEBUG, INFO, WARN, ERROR}
public static class Builder {
private final MetricRegistry registry;
private Logger logger;
private LoggingLevel loggingLevel;
private Marker marker;
private String prefi... | return new Builder(registry); } public enum LoggingLevel {TRACE, DEBUG, INFO, WARN, ERROR} public static class Builder { private final MetricRegistry registry; private Logger logger; private LoggingLevel loggingLevel; private Marker marker; private String prefix; private TimeUnit rateUnit; private TimeUnit durationUnit... | /**
* Returns a new {@link Builder} for {@link Slf4jReporter}.
*
* @param registry the registry to report
* @return a {@link Builder} instance for a {@link Slf4jReporter}
*/ | Returns a new <code>Builder</code> for <code>Slf4jReporter</code> | forRegistry | {
"repo_name": "gburton1/metrics",
"path": "metrics-core/src/main/java/com/codahale/metrics/Slf4jReporter.java",
"license": "apache-2.0",
"size": 12106
} | [
"java.util.concurrent.TimeUnit",
"org.slf4j.Logger",
"org.slf4j.LoggerFactory",
"org.slf4j.Marker"
] | import java.util.concurrent.TimeUnit; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.slf4j.Marker; | import java.util.concurrent.*; import org.slf4j.*; | [
"java.util",
"org.slf4j"
] | java.util; org.slf4j; | 86,239 |
public CreditBalanceSummary balanceSummary() {
return this.balanceSummary;
} | CreditBalanceSummary function() { return this.balanceSummary; } | /**
* Get the balanceSummary property: Summary of balances associated with this credit summary.
*
* @return the balanceSummary value.
*/ | Get the balanceSummary property: Summary of balances associated with this credit summary | balanceSummary | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/fluent/models/CreditSummaryProperties.java",
"license": "mit",
"size": 4555
} | [
"com.azure.resourcemanager.consumption.models.CreditBalanceSummary"
] | import com.azure.resourcemanager.consumption.models.CreditBalanceSummary; | import com.azure.resourcemanager.consumption.models.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 2,717,044 |
private void startPassCodeActivity() {
Intent intent = new Intent(LoginActivity.this, PassCodeActivity.class);
intent.putExtra(Constants.INTIAL_LOGIN, true);
startActivity(intent);
finish();
} | void function() { Intent intent = new Intent(LoginActivity.this, PassCodeActivity.class); intent.putExtra(Constants.INTIAL_LOGIN, true); startActivity(intent); finish(); } | /**
* Starts {@link PassCodeActivity} with {@code Constans.INTIAL_LOGIN} as true
*/ | Starts <code>PassCodeActivity</code> with Constans.INTIAL_LOGIN as true | startPassCodeActivity | {
"repo_name": "therajanmaurya/self-service-app",
"path": "app/src/main/java/org/mifos/mobilebanking/ui/activities/LoginActivity.java",
"license": "mpl-2.0",
"size": 4378
} | [
"android.content.Intent",
"org.mifos.mobilebanking.utils.Constants"
] | import android.content.Intent; import org.mifos.mobilebanking.utils.Constants; | import android.content.*; import org.mifos.mobilebanking.utils.*; | [
"android.content",
"org.mifos.mobilebanking"
] | android.content; org.mifos.mobilebanking; | 1,379,041 |
private Map<String, List<Method>> createSchemeMethods(final String scheme) throws FileSystemException
{
final FileSystemConfigBuilder fscb = getManager().getFileSystemConfigBuilder(scheme);
if (fscb == null)
{
throw new FileSystemException("vfs.provider/no-config-builder.erro... | Map<String, List<Method>> function(final String scheme) throws FileSystemException { final FileSystemConfigBuilder fscb = getManager().getFileSystemConfigBuilder(scheme); if (fscb == null) { throw new FileSystemException(STR, scheme); } final Map<String, List<Method>> schemeMethods = new TreeMap<>(); final Method[] met... | /**
* create the list of all set*() methods for the given scheme
*/ | create the list of all set*() methods for the given scheme | createSchemeMethods | {
"repo_name": "distribuitech/datos",
"path": "datos-vfs/src/main/java/com/datos/vfs/util/DelegatingFileSystemOptionsBuilder.java",
"license": "apache-2.0",
"size": 15691
} | [
"com.datos.vfs.FileSystemConfigBuilder",
"com.datos.vfs.FileSystemException",
"java.lang.reflect.Method",
"java.lang.reflect.Modifier",
"java.util.ArrayList",
"java.util.List",
"java.util.Map",
"java.util.TreeMap"
] | import com.datos.vfs.FileSystemConfigBuilder; import com.datos.vfs.FileSystemException; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.TreeMap; | import com.datos.vfs.*; import java.lang.reflect.*; import java.util.*; | [
"com.datos.vfs",
"java.lang",
"java.util"
] | com.datos.vfs; java.lang; java.util; | 1,002,965 |
public void clear() {
final Object[] items = this.items;
final ReentrantLock lock = this.lock;
lock.lock();
try {
int k = count;
if (k > 0) {
final int putIndex = this.putIndex;
int i = takeIndex;
do {
... | void function() { final Object[] items = this.items; final ReentrantLock lock = this.lock; lock.lock(); try { int k = count; if (k > 0) { final int putIndex = this.putIndex; int i = takeIndex; do { items[i] = null; } while ((i = inc(i)) != putIndex); takeIndex = putIndex; count = 0; if (itrs != null) itrs.queueIsEmpty(... | /**
* Atomically removes all of the elements from this queue.
* The queue will be empty after this call returns.
*/ | Atomically removes all of the elements from this queue. The queue will be empty after this call returns | clear | {
"repo_name": "hambroperks/j2objc",
"path": "jre_emul/android/libcore/luni/src/main/java/java/util/concurrent/ArrayBlockingQueue.java",
"license": "apache-2.0",
"size": 47765
} | [
"java.util.concurrent.locks.ReentrantLock"
] | import java.util.concurrent.locks.ReentrantLock; | import java.util.concurrent.locks.*; | [
"java.util"
] | java.util; | 1,712,720 |
default String getBlacklistExplanationHTML() {
return CodeInsightBundle.message("inlay.hints.blacklist.pattern.explanation");
} | default String getBlacklistExplanationHTML() { return CodeInsightBundle.message(STR); } | /**
* Text explaining black list patterns.
*/ | Text explaining black list patterns | getBlacklistExplanationHTML | {
"repo_name": "leafclick/intellij-community",
"path": "platform/lang-api/src/com/intellij/codeInsight/hints/InlayParameterHintsProvider.java",
"license": "apache-2.0",
"size": 3336
} | [
"com.intellij.codeInsight.CodeInsightBundle"
] | import com.intellij.codeInsight.CodeInsightBundle; | import com.intellij.*; | [
"com.intellij"
] | com.intellij; | 1,120,008 |
@Test
public void resilencyTest6() {
build4RouterTopo(true, false, false, false, 10);
List<Constraint> constraints = new LinkedList<Constraint>();
CostConstraint costConstraint = new CostConstraint(COST);
constraints.add(costConstraint);
BandwidthConstraint localBwConst ... | void function() { build4RouterTopo(true, false, false, false, 10); List<Constraint> constraints = new LinkedList<Constraint>(); CostConstraint costConstraint = new CostConstraint(COST); constraints.add(costConstraint); BandwidthConstraint localBwConst = new BandwidthConstraint(Bandwidth.bps(10)); constraints.add(localB... | /**
* Tests resilency when egress device is down.
*/ | Tests resilency when egress device is down | resilencyTest6 | {
"repo_name": "Shashikanth-Huawei/bmp",
"path": "apps/pce/app/src/test/java/org/onosproject/pce/pceservice/PceManagerTest.java",
"license": "apache-2.0",
"size": 65722
} | [
"java.util.HashSet",
"java.util.LinkedList",
"java.util.List",
"java.util.Set",
"org.hamcrest.MatcherAssert",
"org.hamcrest.core.Is",
"org.onlab.util.Bandwidth",
"org.onosproject.event.Event",
"org.onosproject.net.intent.Constraint",
"org.onosproject.net.intent.constraint.BandwidthConstraint",
"... | import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Set; import org.hamcrest.MatcherAssert; import org.hamcrest.core.Is; import org.onlab.util.Bandwidth; import org.onosproject.event.Event; import org.onosproject.net.intent.Constraint; import org.onosproject.net.intent.constra... | import java.util.*; import org.hamcrest.*; import org.hamcrest.core.*; import org.onlab.util.*; import org.onosproject.event.*; import org.onosproject.net.intent.*; import org.onosproject.net.intent.constraint.*; import org.onosproject.net.link.*; import org.onosproject.net.topology.*; import org.onosproject.pce.pceser... | [
"java.util",
"org.hamcrest",
"org.hamcrest.core",
"org.onlab.util",
"org.onosproject.event",
"org.onosproject.net",
"org.onosproject.pce"
] | java.util; org.hamcrest; org.hamcrest.core; org.onlab.util; org.onosproject.event; org.onosproject.net; org.onosproject.pce; | 1,179,421 |
private List<Long> getMutatedGenes() {
List<Long> mutatedGenes = new ArrayList<Long>();
config.getChromosomeLength();
for (int i = 0; i < config.getChromosomeLength(); i++)
mutatedGenes.add(selectGene(i));
return mutatedGenes;
} | List<Long> function() { List<Long> mutatedGenes = new ArrayList<Long>(); config.getChromosomeLength(); for (int i = 0; i < config.getChromosomeLength(); i++) mutatedGenes.add(selectGene(i)); return mutatedGenes; } | /**
* choose mutated genes.
*
* @return Gene primary keys
*/ | choose mutated genes | getMutatedGenes | {
"repo_name": "irudyak/ignite",
"path": "modules/ml/src/main/java/org/apache/ignite/ml/genetic/MutateTask.java",
"license": "apache-2.0",
"size": 5954
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,248,935 |
private List<String> getCacheNames()
{
try ( InputStream input = new ClassPathResource( FILENAME_CACHE_NAMES ).getInputStream() )
{
return IOUtils.readLines( input );
}
catch ( IOException ex )
{
throw new UncheckedIOException( ex );
... | List<String> function() { try ( InputStream input = new ClassPathResource( FILENAME_CACHE_NAMES ).getInputStream() ) { return IOUtils.readLines( input ); } catch ( IOException ex ) { throw new UncheckedIOException( ex ); } } | /**
* Returns a list of names of all Hibernate caches.
*/ | Returns a list of names of all Hibernate caches | getCacheNames | {
"repo_name": "uonafya/jphes-core",
"path": "dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/DefaultHibernateConfigurationProvider.java",
"license": "bsd-3-clause",
"size": 14507
} | [
"java.io.IOException",
"java.io.InputStream",
"java.io.UncheckedIOException",
"java.util.List",
"org.apache.commons.io.IOUtils",
"org.springframework.core.io.ClassPathResource"
] | import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; import java.util.List; import org.apache.commons.io.IOUtils; import org.springframework.core.io.ClassPathResource; | import java.io.*; import java.util.*; import org.apache.commons.io.*; import org.springframework.core.io.*; | [
"java.io",
"java.util",
"org.apache.commons",
"org.springframework.core"
] | java.io; java.util; org.apache.commons; org.springframework.core; | 176,572 |
@SuppressWarnings("unchecked")
public void testAttributeMap()
{
UIXSelectMany component = createSelectMany();
assertEquals(null, component.getValueBinding("validators"));
Map<String, Object> attributes = component.getAttributes();
Validator[] validators = (Validator[]) attributes.get("validators")... | @SuppressWarnings(STR) void function() { UIXSelectMany component = createSelectMany(); assertEquals(null, component.getValueBinding(STR)); Map<String, Object> attributes = component.getAttributes(); Validator[] validators = (Validator[]) attributes.get(STR); assertEquals(0, validators.length); component.addValidator(ne... | /**
* Test a few generic properties of the attribute Map.
* (These tests really should be at a higher level...)
*/ | Test a few generic properties of the attribute Map. (These tests really should be at a higher level...) | testAttributeMap | {
"repo_name": "adamrduffy/trinidad-1.0.x",
"path": "trinidad-api/src/test/java/org/apache/myfaces/trinidad/component/UIXSelectManyTest.java",
"license": "apache-2.0",
"size": 3785
} | [
"java.util.Map",
"javax.faces.validator.Validator"
] | import java.util.Map; import javax.faces.validator.Validator; | import java.util.*; import javax.faces.validator.*; | [
"java.util",
"javax.faces"
] | java.util; javax.faces; | 2,255,061 |
protected static String runServer(Map<String, String> serverArgs,
String mode) throws Exception {
// Assign default values for some arguments
assignDefault(serverArgs, "webroot", "src/main/webapp");
assignDefault(serverArgs, "httpPort", "" + serverPort);
assignDefault(se... | static String function(Map<String, String> serverArgs, String mode) throws Exception { assignDefault(serverArgs, STR, STR); assignDefault(serverArgs, STR, STRcontextSTRSTRslowdownSTR/run/APP/PUBLISHED/js_label.js"); int port = serverPort; try { port = Integer.parseInt(serverArgs.get(STR)); } catch (NumberFormatExceptio... | /**
* Run the server with specified arguments.
*
* @param serverArgs
* @return
* @throws Exception
* @throws Exception
*/ | Run the server with specified arguments | runServer | {
"repo_name": "Darsstar/framework",
"path": "uitest/src/main/java/com/vaadin/launcher/DevelopmentServerLauncher.java",
"license": "apache-2.0",
"size": 17218
} | [
"java.io.File",
"java.net.URLClassLoader",
"java.util.ArrayList",
"java.util.EnumSet",
"java.util.List",
"java.util.Map",
"javax.servlet.DispatcherType",
"org.eclipse.jetty.server.Connector",
"org.eclipse.jetty.server.Server",
"org.eclipse.jetty.server.ServerConnector",
"org.eclipse.jetty.util.s... | import java.io.File; import java.net.URLClassLoader; import java.util.ArrayList; import java.util.EnumSet; import java.util.List; import java.util.Map; import javax.servlet.DispatcherType; import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.ServerConnector;... | import java.io.*; import java.net.*; import java.util.*; import javax.servlet.*; import org.eclipse.jetty.server.*; import org.eclipse.jetty.util.ssl.*; import org.eclipse.jetty.webapp.*; | [
"java.io",
"java.net",
"java.util",
"javax.servlet",
"org.eclipse.jetty"
] | java.io; java.net; java.util; javax.servlet; org.eclipse.jetty; | 1,076,068 |
public ServiceFuture<TriggerInner> createOrUpdateAsync(String deviceName, String name, String resourceGroupName, TriggerInner trigger, final ServiceCallback<TriggerInner> serviceCallback) {
return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, trigger)... | ServiceFuture<TriggerInner> function(String deviceName, String name, String resourceGroupName, TriggerInner trigger, final ServiceCallback<TriggerInner> serviceCallback) { return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, trigger), serviceCallback); } | /**
* Creates or updates a trigger.
*
* @param deviceName Creates or updates a trigger
* @param name The trigger name.
* @param resourceGroupName The resource group name.
* @param trigger The trigger.
* @param serviceCallback the async ServiceCallback to handle successful and failed r... | Creates or updates a trigger | createOrUpdateAsync | {
"repo_name": "navalev/azure-sdk-for-java",
"path": "sdk/edgegateway/mgmt-v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/TriggersInner.java",
"license": "mit",
"size": 49893
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 1,328,828 |
public Socket createSocket(InetAddress address, int port) throws IOException {
return new Socket(address, port);
} | Socket function(InetAddress address, int port) throws IOException { return new Socket(address, port); } | /***
* Creates a Socket connected to the given host and port.
* <p>
*
* @param address
* The address of the host to connect to.
* @param port
* The port to connect to.
* @return A Socket connected to the given host and port.
* @exception IOException
* If an I/O ... | Creates a Socket connected to the given host and port. | createSocket | {
"repo_name": "jreadstone/zsyproject",
"path": "src/org/g4studio/core/net/DefaultSocketFactory.java",
"license": "gpl-2.0",
"size": 5321
} | [
"java.io.IOException",
"java.net.InetAddress",
"java.net.Socket"
] | import java.io.IOException; import java.net.InetAddress; import java.net.Socket; | import java.io.*; import java.net.*; | [
"java.io",
"java.net"
] | java.io; java.net; | 844,098 |
public ExpressRouteCircuitPeeringConfig microsoftPeeringConfig() {
return this.microsoftPeeringConfig;
} | ExpressRouteCircuitPeeringConfig function() { return this.microsoftPeeringConfig; } | /**
* Get the Microsoft peering configuration.
*
* @return the microsoftPeeringConfig value
*/ | Get the Microsoft peering configuration | microsoftPeeringConfig | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/ExpressRouteCrossConnectionPeeringInner.java",
"license": "mit",
"size": 11847
} | [
"com.microsoft.azure.management.network.v2020_05_01.ExpressRouteCircuitPeeringConfig"
] | import com.microsoft.azure.management.network.v2020_05_01.ExpressRouteCircuitPeeringConfig; | import com.microsoft.azure.management.network.v2020_05_01.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 2,633,295 |
public String buildCalendarMonth(Locale calendarLocale) {
Calendar calendar = new GregorianCalendar(calendarLocale);
int year = calendar.get(Calendar.YEAR);
int month = calendar.get(Calendar.MONTH);
// get date parameters from request
String yearParam = getJsp().getRequest()... | String function(Locale calendarLocale) { Calendar calendar = new GregorianCalendar(calendarLocale); int year = calendar.get(Calendar.YEAR); int month = calendar.get(Calendar.MONTH); String yearParam = getJsp().getRequest().getParameter(PARAM_YEAR); String monthParam = getJsp().getRequest().getParameter(PARAM_MONTH); if... | /**
* Builds the HTML output to create a basic calendar overview of the current month or the month based on request parameters
* if present, including a month navigation row.<p>
*
* @param calendarLocale the Locale for the calendar to determine the start day of the weeks
* @return the HTML out... | Builds the HTML output to create a basic calendar overview of the current month or the month based on request parameters if present, including a month navigation row | buildCalendarMonth | {
"repo_name": "gallardo/alkacon-oamp",
"path": "com.alkacon.opencms.calendar/src/com/alkacon/opencms/calendar/CmsCalendarMonthBean.java",
"license": "gpl-3.0",
"size": 22947
} | [
"java.util.Calendar",
"java.util.GregorianCalendar",
"java.util.Locale",
"org.opencms.util.CmsStringUtil"
] | import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Locale; import org.opencms.util.CmsStringUtil; | import java.util.*; import org.opencms.util.*; | [
"java.util",
"org.opencms.util"
] | java.util; org.opencms.util; | 280,706 |
Map<String, ?> describe( GistQuery query ); | Map<String, ?> describe( GistQuery query ); | /**
* Describes the query execution without actually running the query.
*
* @param query a not yet {@link #plan(GistQuery)}ned query
* @return a description of the query execution
*/ | Describes the query execution without actually running the query | describe | {
"repo_name": "dhis2/dhis2-core",
"path": "dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/gist/GistService.java",
"license": "bsd-3-clause",
"size": 3904
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,772,780 |
protected void prepareView(View view) {
// Take requested dimensions from child, but apply default gravity.
FrameLayout.LayoutParams requested = (FrameLayout.LayoutParams)view.getLayoutParams();
if (requested == null) {
requested = new FrameLayout.LayoutParams(LayoutParams.MATCH_... | void function(View view) { FrameLayout.LayoutParams requested = (FrameLayout.LayoutParams)view.getLayoutParams(); if (requested == null) { requested = new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); } requested.gravity = Gravity.CENTER; view.setLayoutParams(requested); } | /**
* Prepare the given view to be shown. This might include adjusting
* {@link FrameLayout.LayoutParams} before inserting.
*/ | Prepare the given view to be shown. This might include adjusting <code>FrameLayout.LayoutParams</code> before inserting | prepareView | {
"repo_name": "syslover33/ctank",
"path": "java/android-sdk-linux_r24.4.1_src/sources/android-23/android/appwidget/AppWidgetHostView.java",
"license": "gpl-3.0",
"size": 24745
} | [
"android.view.Gravity",
"android.view.View",
"android.widget.FrameLayout"
] | import android.view.Gravity; import android.view.View; import android.widget.FrameLayout; | import android.view.*; import android.widget.*; | [
"android.view",
"android.widget"
] | android.view; android.widget; | 196,557 |
static void convertSongToMxt()
{
List<Path> songFiles = new ArrayList<>();
boolean error;
Path path = FileHelper.getDirectory(FileHelper.SERVER_MUSIC_FOLDER, Side.SERVER);
PathMatcher filter = FileHelper.getDatMatcher(path);
try (Stream<Path> paths = Files.list(path))
... | static void convertSongToMxt() { List<Path> songFiles = new ArrayList<>(); boolean error; Path path = FileHelper.getDirectory(FileHelper.SERVER_MUSIC_FOLDER, Side.SERVER); PathMatcher filter = FileHelper.getDatMatcher(path); try (Stream<Path> paths = Files.list(path)) { songFiles = paths .filter(filter::matches) .colle... | /**
* A one time update for SNAPSHOT x to 29+
* Song#getMml input = MML@I=1536t240v12l8dfa&adab&b;MML@I=1537t240v12l8<dfa&adab&b;MML@I=1613t240v12l8>dfa&adab&b;
*/ | A one time update for SNAPSHOT x to 29+ Song#getMml input = MML@I=1536t240v12l8dfa&adab&b;MML@I=1537t240v12l8dfa&adab&b | convertSongToMxt | {
"repo_name": "Aeronica/mxTune",
"path": "src/main/java/net/aeronica/mods/mxtune/managers/Update.java",
"license": "apache-2.0",
"size": 9669
} | [
"java.io.IOException",
"java.nio.file.Files",
"java.nio.file.Path",
"java.nio.file.PathMatcher",
"java.util.ArrayList",
"java.util.List",
"java.util.stream.Collectors",
"java.util.stream.Stream",
"net.aeronica.mods.mxtune.caches.FileHelper",
"net.aeronica.mods.mxtune.gui.mml.ImportHelper",
"net.... | import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.PathMatcher; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import net.aeronica.mods.mxtune.caches.FileHelper; import net.aeronica.mods.mxtune.g... | import java.io.*; import java.nio.file.*; import java.util.*; import java.util.stream.*; import net.aeronica.mods.mxtune.caches.*; import net.aeronica.mods.mxtune.gui.mml.*; import net.aeronica.mods.mxtune.managers.records.*; import net.aeronica.mods.mxtune.mxt.*; import net.aeronica.mods.mxtune.util.*; import net.mine... | [
"java.io",
"java.nio",
"java.util",
"net.aeronica.mods",
"net.minecraft.nbt",
"net.minecraft.util",
"net.minecraftforge.fml"
] | java.io; java.nio; java.util; net.aeronica.mods; net.minecraft.nbt; net.minecraft.util; net.minecraftforge.fml; | 170,927 |
@Override
public void addOrUpdateGroupEntry(Group group) {
// check if this new entry is an update to an existing entry
StoredGroupEntry existing = getStoredGroupEntry(group.deviceId(),
group.id());
GroupEvent event = null;
... | void function(Group group) { StoredGroupEntry existing = getStoredGroupEntry(group.deviceId(), group.id()); GroupEvent event = null; if (existing != null) { log.trace(STR + STR, group.id(), group.deviceId()); synchronized (existing) { existing.setLife(group.life()); existing.setPackets(group.packets()); existing.setByt... | /**
* Stores a new group entry, or updates an existing entry.
*
* @param group group entry
*/ | Stores a new group entry, or updates an existing entry | addOrUpdateGroupEntry | {
"repo_name": "ravikumaran2015/ravikumaran201504",
"path": "core/store/dist/src/main/java/org/onosproject/store/group/impl/DistributedGroupStore.java",
"license": "apache-2.0",
"size": 41903
} | [
"org.onosproject.net.group.Group",
"org.onosproject.net.group.GroupEvent",
"org.onosproject.net.group.StoredGroupEntry"
] | import org.onosproject.net.group.Group; import org.onosproject.net.group.GroupEvent; import org.onosproject.net.group.StoredGroupEntry; | import org.onosproject.net.group.*; | [
"org.onosproject.net"
] | org.onosproject.net; | 2,178,358 |
@NotNull
public Builder withDeviceUID(@NotNull String uid) {
ENGINE.deviceUID = uid;
return this;
} | Builder function(@NotNull String uid) { ENGINE.deviceUID = uid; return this; } | /**
* Set the {@link #deviceUID} value. This value will be used to start
* the correct simulator.
* @param uid {@link String} value.
* @return {@link Builder} instance.
*/ | Set the <code>#deviceUID</code> value. This value will be used to start the correct simulator | withDeviceUID | {
"repo_name": "protoman92/XTestKit",
"path": "src/main/java/org/swiften/xtestkit/ios/IOSEngine.java",
"license": "apache-2.0",
"size": 8108
} | [
"org.jetbrains.annotations.NotNull"
] | import org.jetbrains.annotations.NotNull; | import org.jetbrains.annotations.*; | [
"org.jetbrains.annotations"
] | org.jetbrains.annotations; | 126,621 |
public static Object readRequestBodyFromServletRequest(HttpServletRequest request, Exchange exchange) throws IOException {
InputStream is = HttpConverter.toInputStream(request, exchange);
return readResponseBodyFromInputStream(is, exchange);
} | static Object function(HttpServletRequest request, Exchange exchange) throws IOException { InputStream is = HttpConverter.toInputStream(request, exchange); return readResponseBodyFromInputStream(is, exchange); } | /**
* Reads the response body from the given http servlet request.
*
* @param request http servlet request
* @param exchange the exchange
* @return the request body, can be <tt>null</tt> if no body
* @throws IOException is thrown if error reading response body
*/ | Reads the response body from the given http servlet request | readRequestBodyFromServletRequest | {
"repo_name": "curso007/camel",
"path": "components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java",
"license": "apache-2.0",
"size": 22890
} | [
"java.io.IOException",
"java.io.InputStream",
"javax.servlet.http.HttpServletRequest",
"org.apache.camel.Exchange"
] | import java.io.IOException; import java.io.InputStream; import javax.servlet.http.HttpServletRequest; import org.apache.camel.Exchange; | import java.io.*; import javax.servlet.http.*; import org.apache.camel.*; | [
"java.io",
"javax.servlet",
"org.apache.camel"
] | java.io; javax.servlet; org.apache.camel; | 1,307,942 |
void update(Object oldValue, Object newValue, CachedQueryEntry entry, QueryableEntry entryToStore,
IndexOperationStats operationStats); | void update(Object oldValue, Object newValue, CachedQueryEntry entry, QueryableEntry entryToStore, IndexOperationStats operationStats); | /**
* Updates the existing entry mapping in this index by remapping it from the
* given old value to the new given value.
* <p>
* The update operation is logically equivalent to removing the old mapping
* and inserting the new one.
*
* @param oldValue the value to remap the entr... | Updates the existing entry mapping in this index by remapping it from the given old value to the new given value. The update operation is logically equivalent to removing the old mapping and inserting the new one | update | {
"repo_name": "jerrinot/hazelcast",
"path": "hazelcast/src/main/java/com/hazelcast/query/impl/IndexStore.java",
"license": "apache-2.0",
"size": 10877
} | [
"com.hazelcast.internal.monitor.impl.IndexOperationStats"
] | import com.hazelcast.internal.monitor.impl.IndexOperationStats; | import com.hazelcast.internal.monitor.impl.*; | [
"com.hazelcast.internal"
] | com.hazelcast.internal; | 2,452,184 |
public void setSSLSocketFactory(SSLSocketFactory sslSocketFactory) {
this.httpClient.getConnectionManager().getSchemeRegistry().register(new Scheme("https", sslSocketFactory, 443));
} | void function(SSLSocketFactory sslSocketFactory) { this.httpClient.getConnectionManager().getSchemeRegistry().register(new Scheme("https", sslSocketFactory, 443)); } | /**
* Sets the SSLSocketFactory to user when making requests. By default,
* a new, default SSLSocketFactory is used.
* @param sslSocketFactory the socket factory to use for https requests.
*/ | Sets the SSLSocketFactory to user when making requests. By default, a new, default SSLSocketFactory is used | setSSLSocketFactory | {
"repo_name": "zoozooll/MyExercise",
"path": "meep/MeepOTA/src/com/loopj/android/http/AsyncHttpClient.java",
"license": "apache-2.0",
"size": 27035
} | [
"org.apache.http.conn.scheme.Scheme",
"org.apache.http.conn.ssl.SSLSocketFactory"
] | import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.ssl.SSLSocketFactory; | import org.apache.http.conn.scheme.*; import org.apache.http.conn.ssl.*; | [
"org.apache.http"
] | org.apache.http; | 1,177,230 |
public void closeDialog() {
final AmazonWebView childView = this.inAppWebView;
// The JS protects against multiple calls, so this should happen only when
// closeDialog() is called by other native code.
if (childView == null) {
return;
} | void function() { final AmazonWebView childView = this.inAppWebView; if (childView == null) { return; } | /**
* Closes the dialog
*/ | Closes the dialog | closeDialog | {
"repo_name": "chompunut/8Can.InAppBrowser",
"path": "src/amazon/InAppBrowser.java",
"license": "apache-2.0",
"size": 36194
} | [
"com.amazon.android.webkit.AmazonWebView"
] | import com.amazon.android.webkit.AmazonWebView; | import com.amazon.android.webkit.*; | [
"com.amazon.android"
] | com.amazon.android; | 2,162,143 |
LogSchemaDto findLogSchemaById(String id); | LogSchemaDto findLogSchemaById(String id); | /**
* Find log schema by id.
*
* @param id the log schema id
* @return the log schema dto
*/ | Find log schema by id | findLogSchemaById | {
"repo_name": "sashadidukh/kaa",
"path": "server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/LogSchemaService.java",
"license": "apache-2.0",
"size": 2201
} | [
"org.kaaproject.kaa.common.dto.logs.LogSchemaDto"
] | import org.kaaproject.kaa.common.dto.logs.LogSchemaDto; | import org.kaaproject.kaa.common.dto.logs.*; | [
"org.kaaproject.kaa"
] | org.kaaproject.kaa; | 931,544 |
private String findThinAddress() {
for (ClusterNode n : ignite().cluster().forClients().nodes()) {
if (n.isLocal())
continue;
// try to find non-localhost address of this node
for (String addr : n.addresses()) {
if (!addr.equals("127.0.0.1... | String function() { for (ClusterNode n : ignite().cluster().forClients().nodes()) { if (n.isLocal()) continue; for (String addr : n.addresses()) { if (!addr.equals(STR) && !addr.equals(STR) && !addr.equals(STR)) { println(STR + addr); return addr; } } println(STR); return STR; } throw new RuntimeException(STR); } | /**
* Find address of client node, that thin driver should use.
*
* @return Address for thin driver.
*/ | Find address of client node, that thin driver should use | findThinAddress | {
"repo_name": "samaitra/ignite",
"path": "modules/yardstick/src/main/java/org/apache/ignite/yardstick/jdbc/AbstractJdbcBenchmark.java",
"license": "apache-2.0",
"size": 5853
} | [
"org.apache.ignite.cluster.ClusterNode",
"org.yardstickframework.BenchmarkUtils"
] | import org.apache.ignite.cluster.ClusterNode; import org.yardstickframework.BenchmarkUtils; | import org.apache.ignite.cluster.*; import org.yardstickframework.*; | [
"org.apache.ignite",
"org.yardstickframework"
] | org.apache.ignite; org.yardstickframework; | 156,547 |
private void showJsonDataView() {
mErrorMessageDisplay.setVisibility(View.INVISIBLE);
mSearchResultsTextView.setVisibility(View.VISIBLE);
} | void function() { mErrorMessageDisplay.setVisibility(View.INVISIBLE); mSearchResultsTextView.setVisibility(View.VISIBLE); } | /**
* This method will make the View for the JSON data visible and
* hide the error message.
* <p>
* Since it is okay to redundantly set the visibility of a View, we don't
* need to check whether each view is currently visible or invisible.
*/ | This method will make the View for the JSON data visible and hide the error message. Since it is okay to redundantly set the visibility of a View, we don't need to check whether each view is currently visible or invisible | showJsonDataView | {
"repo_name": "achiwhane/ud851-Exercises",
"path": "Lesson05b-Smarter-GitHub-Repo-Search/T05b.01-Exercise-SaveResults/app/src/main/java/com/example/android/asynctaskloader/MainActivity.java",
"license": "apache-2.0",
"size": 6018
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 2,566,202 |
public FeatureResultSet queryFeaturesForChunk(boolean distinct,
BoundingBox boundingBox, Projection projection,
Map<String, Object> fieldValues, int limit) {
return queryFeaturesForChunk(distinct, boundingBox, projection,
fieldValues, getPkColumnName(), limit);
} | FeatureResultSet function(boolean distinct, BoundingBox boundingBox, Projection projection, Map<String, Object> fieldValues, int limit) { return queryFeaturesForChunk(distinct, boundingBox, projection, fieldValues, getPkColumnName(), limit); } | /**
* Query for features within the bounding box in the provided projection
* ordered by id, starting at the offset and returning no more than the
* limit
*
* @param distinct
* distinct rows
* @param boundingBox
* bounding box
* @param projection
* projection
* @p... | Query for features within the bounding box in the provided projection ordered by id, starting at the offset and returning no more than the limit | queryFeaturesForChunk | {
"repo_name": "ngageoint/geopackage-java",
"path": "src/main/java/mil/nga/geopackage/extension/rtree/RTreeIndexTableDao.java",
"license": "mit",
"size": 349361
} | [
"java.util.Map",
"mil.nga.geopackage.BoundingBox",
"mil.nga.geopackage.features.user.FeatureResultSet",
"mil.nga.proj.Projection"
] | import java.util.Map; import mil.nga.geopackage.BoundingBox; import mil.nga.geopackage.features.user.FeatureResultSet; import mil.nga.proj.Projection; | import java.util.*; import mil.nga.geopackage.*; import mil.nga.geopackage.features.user.*; import mil.nga.proj.*; | [
"java.util",
"mil.nga.geopackage",
"mil.nga.proj"
] | java.util; mil.nga.geopackage; mil.nga.proj; | 1,962,588 |
public static Date ToDate(final String datetime) throws ParseException {
final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.SSS'Z'");
format.setTimeZone(TimeZone.getTimeZone("UTC"));
return format.parse(datetime);
} | static Date function(final String datetime) throws ParseException { final SimpleDateFormat format = new SimpleDateFormat(STR); format.setTimeZone(TimeZone.getTimeZone("UTC")); return format.parse(datetime); } | /**
* Converts a datetime string as returned from the Ripple REST API into a java date object. The string is the UTC time in format
* yyyy-MM-dd'T'hh:mm:ss.SSS'Z' e.g. 2015-06-13T11:45:20.102Z
*
* @throws ParseException
*/ | Converts a datetime string as returned from the Ripple REST API into a java date object. The string is the UTC time in format yyyy-MM-dd'T'hh:mm:ss.SSS'Z' e.g. 2015-06-13T11:45:20.102Z | ToDate | {
"repo_name": "nivertech/XChange",
"path": "xchange-ripple/src/main/java/com/xeiam/xchange/ripple/RippleExchange.java",
"license": "mit",
"size": 3347
} | [
"java.text.ParseException",
"java.text.SimpleDateFormat",
"java.util.Date",
"java.util.TimeZone"
] | import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; | import java.text.*; import java.util.*; | [
"java.text",
"java.util"
] | java.text; java.util; | 1,197,530 |
IPath getSourceAttachmentRootPath();
| IPath getSourceAttachmentRootPath(); | /**
* Returns the path within the source archive or folder where package fragments
* are located. An empty path indicates that packages are located at
* the root of the source archive or folder. Returns a non-<code>null</code> value
* if and only if {@link #getSourceAttachmentPath} returns
* a non-<code>null<... | Returns the path within the source archive or folder where package fragments are located. An empty path indicates that packages are located at the root of the source archive or folder. Returns a non-<code>null</code> value if and only if <code>#getSourceAttachmentPath</code> returns a non-<code>null</code> value | getSourceAttachmentRootPath | {
"repo_name": "elucash/eclipse-oxygen",
"path": "org.eclipse.jdt.core/src/org/eclipse/jdt/core/IClasspathEntry.java",
"license": "epl-1.0",
"size": 22383
} | [
"org.eclipse.core.runtime.IPath"
] | import org.eclipse.core.runtime.IPath; | import org.eclipse.core.runtime.*; | [
"org.eclipse.core"
] | org.eclipse.core; | 1,615,564 |
protected Object string_to_object(String description)
{
return new PersistentContext(orb, new File(description), reset);
} | Object function(String description) { return new PersistentContext(orb, new File(description), reset); } | /**
* This method restores the PersistenContext. The description line is
* interpreted as the folder name, absolute path.
*/ | This method restores the PersistenContext. The description line is interpreted as the folder name, absolute path | string_to_object | {
"repo_name": "taciano-perez/JamVM-PH",
"path": "src/classpath/tools/gnu/classpath/tools/orbd/PersistentContextMap.java",
"license": "gpl-2.0",
"size": 3300
} | [
"java.io.File",
"org.omg.CORBA"
] | import java.io.File; import org.omg.CORBA; | import java.io.*; import org.omg.*; | [
"java.io",
"org.omg"
] | java.io; org.omg; | 1,903,212 |
@Override
protected void buildInnerString(StringBuilder sb)
{
sb.append(getNamespaceReferenceAsString());
sb.append(' ');
if (isStatic())
{
sb.append(IASKeywordConstants.STATIC);
sb.append(' ');
}
sb.append(IASKeywordConstants.FUNCTIO... | void function(StringBuilder sb) { sb.append(getNamespaceReferenceAsString()); sb.append(' '); if (isStatic()) { sb.append(IASKeywordConstants.STATIC); sb.append(' '); } sb.append(IASKeywordConstants.FUNCTION); sb.append(' '); sb.append(getBaseName()); sb.append('('); IParameterDefinition[] params = getParameters(); int... | /**
* For debugging only. Produces a string such as
* <code>public function f(int, String):void</code>.
*/ | For debugging only. Produces a string such as <code>public function f(int, String):void</code> | buildInnerString | {
"repo_name": "greg-dove/flex-falcon",
"path": "compiler/src/main/java/org/apache/flex/compiler/internal/definitions/FunctionDefinition.java",
"license": "apache-2.0",
"size": 22394
} | [
"org.apache.flex.compiler.constants.IASKeywordConstants",
"org.apache.flex.compiler.definitions.IParameterDefinition"
] | import org.apache.flex.compiler.constants.IASKeywordConstants; import org.apache.flex.compiler.definitions.IParameterDefinition; | import org.apache.flex.compiler.constants.*; import org.apache.flex.compiler.definitions.*; | [
"org.apache.flex"
] | org.apache.flex; | 2,275,762 |
private ArrayList<ContentProviderOperation> processClearAllSessions(
ContentResolver resolver, long calendarId) {
ArrayList<ContentProviderOperation> batch = new ArrayList<ContentProviderOperation>();
// Unable to find the Calendar associated with the user. Stop here.
if (calen... | ArrayList<ContentProviderOperation> function( ContentResolver resolver, long calendarId) { ArrayList<ContentProviderOperation> batch = new ArrayList<ContentProviderOperation>(); if (calendarId == INVALID_CALENDAR_ID) { Log.e(TAG, STR); return batch; } batch.add(ContentProviderOperation .newDelete(CalendarContract.Event... | /**
* Removes all calendar entries associated with Google I/O 2013.
*/ | Removes all calendar entries associated with Google I/O 2013 | processClearAllSessions | {
"repo_name": "lokling/AndroiditoJZ",
"path": "android/src/main/java/com/google/samples/apps/iosched/service/SessionCalendarService.java",
"license": "apache-2.0",
"size": 18654
} | [
"android.content.ContentProviderOperation",
"android.content.ContentResolver",
"android.provider.CalendarContract",
"android.util.Log",
"com.google.samples.apps.iosched.Config",
"com.google.samples.apps.iosched.provider.ScheduleContract",
"java.util.ArrayList"
] | import android.content.ContentProviderOperation; import android.content.ContentResolver; import android.provider.CalendarContract; import android.util.Log; import com.google.samples.apps.iosched.Config; import com.google.samples.apps.iosched.provider.ScheduleContract; import java.util.ArrayList; | import android.content.*; import android.provider.*; import android.util.*; import com.google.samples.apps.iosched.*; import com.google.samples.apps.iosched.provider.*; import java.util.*; | [
"android.content",
"android.provider",
"android.util",
"com.google.samples",
"java.util"
] | android.content; android.provider; android.util; com.google.samples; java.util; | 1,557,766 |
public GeoDistanceBuilder distanceType(GeoDistance distanceType) {
this.distanceType = distanceType;
return this;
} | GeoDistanceBuilder function(GeoDistance distanceType) { this.distanceType = distanceType; return this; } | /**
* Set the {@link GeoDistance distance type} to use, defaults to
* {@link GeoDistance#SLOPPY_ARC}.
*/ | Set the <code>GeoDistance distance type</code> to use, defaults to <code>GeoDistance#SLOPPY_ARC</code> | distanceType | {
"repo_name": "dantuffery/elasticsearch",
"path": "src/main/java/org/elasticsearch/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder.java",
"license": "apache-2.0",
"size": 7784
} | [
"org.elasticsearch.common.geo.GeoDistance"
] | import org.elasticsearch.common.geo.GeoDistance; | import org.elasticsearch.common.geo.*; | [
"org.elasticsearch.common"
] | org.elasticsearch.common; | 909,826 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.