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 static Route fromJSON(JSONObject json, RoadMap map) throws JSONException {
LinkedList<Road> roads = new LinkedList<>();
JSONObject jsontarget = json.getJSONObject("target");
JSONObject jsonsource = json.getJSONObject("source");
RoadPoint target = RoadPoint.fromJSON(jsontarget... | static Route function(JSONObject json, RoadMap map) throws JSONException { LinkedList<Road> roads = new LinkedList<>(); JSONObject jsontarget = json.getJSONObject(STR); JSONObject jsonsource = json.getJSONObject(STR); RoadPoint target = RoadPoint.fromJSON(jsontarget, map); RoadPoint source = RoadPoint.fromJSON(jsonsour... | /**
* Creates a {@link Route} object from its JSON representation.
*
* @param json JSON representation of the {@link Route}.
* @param map {@link RoadMap} object as the reference of {@link RoadPoint}s and {@link Road}s.
* @return {@link Route} object.
* @throws JSONException thrown on JSON ... | Creates a <code>Route</code> object from its JSON representation | fromJSON | {
"repo_name": "bmwcarit/barefoot",
"path": "src/main/java/com/bmwcarit/barefoot/roadmap/Route.java",
"license": "apache-2.0",
"size": 7862
} | [
"java.util.LinkedList",
"org.json.JSONArray",
"org.json.JSONException",
"org.json.JSONObject"
] | import java.util.LinkedList; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; | import java.util.*; import org.json.*; | [
"java.util",
"org.json"
] | java.util; org.json; | 98,091 |
@Override
public void layoutContainer(final Container target) {
super.layoutContainer(target);
int maxX = 0;
int maxY = 0;
for (int i = 0; i < target.getComponentCount(); i++) {
final Component cmp = target.getComponent(i);
if (!cmp.isVisible()) {
continue;
}
... | void function(final Container target) { super.layoutContainer(target); int maxX = 0; int maxY = 0; for (int i = 0; i < target.getComponentCount(); i++) { final Component cmp = target.getComponent(i); if (!cmp.isVisible()) { continue; } final Rectangle b = cmp.getBounds(); if (b.x + b.width > maxX) { maxX = b.x + b.widt... | /**
* Lays out the container using the FlowLayout. If the components as laid
* out do not fit in the size of then cause tree to be layout again unless
* this is a recursive call.
*/ | Lays out the container using the FlowLayout. If the components as laid out do not fit in the size of then cause tree to be layout again unless this is a recursive call | layoutContainer | {
"repo_name": "ethaneldridge/vassal",
"path": "src/VASSAL/tools/WrapLayout.java",
"license": "lgpl-2.1",
"size": 6578
} | [
"java.awt.Component",
"java.awt.Container",
"java.awt.Dimension",
"java.awt.Rectangle",
"javax.swing.JComponent"
] | import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Rectangle; import javax.swing.JComponent; | import java.awt.*; import javax.swing.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 526,586 |
public Table url(String url) throws IOException {
return url(new URL(url));
} | Table function(String url) throws IOException { return url(new URL(url)); } | /**
* Reads the given URL into a table using default options Uses appropriate converter based on
* mime-type Use {@link #usingOptions(ReadOptions) usingOptions} to use non-default options
*/ | Reads the given URL into a table using default options Uses appropriate converter based on mime-type Use <code>#usingOptions(ReadOptions) usingOptions</code> to use non-default options | url | {
"repo_name": "axkr/symja_android_library",
"path": "symja_android_library/matheclipse-io/src/main/java/tech/tablesaw/io/DataFrameReader.java",
"license": "gpl-3.0",
"size": 6641
} | [
"java.io.IOException",
"tech.tablesaw.api.Table"
] | import java.io.IOException; import tech.tablesaw.api.Table; | import java.io.*; import tech.tablesaw.api.*; | [
"java.io",
"tech.tablesaw.api"
] | java.io; tech.tablesaw.api; | 2,146,463 |
public void _setMax() {
boolean result = true ;
oObj.setMax(new Date((short)18, (short)9, (short)2117)) ;
Date date = oObj.getMax();
result = date.Day == 18 && date.Month == 9 && date.Year == 2117;
tRes.tested("setMax()", result) ;
} | void function() { boolean result = true ; oObj.setMax(new Date((short)18, (short)9, (short)2117)) ; Date date = oObj.getMax(); result = date.Day == 18 && date.Month == 9 && date.Year == 2117; tRes.tested(STR, result) ; } | /**
* Sets a new value and checks if it was correctly set. <p>
* Has <b> OK </b> status if set and get values are equal.
* The following method tests are to be completed successfully before :
* <ul>
* <li> <code> getMax </code> </li>
* </ul>
*/ | Sets a new value and checks if it was correctly set. Has OK status if set and get values are equal. The following method tests are to be completed successfully before : <code> getMax </code> | _setMax | {
"repo_name": "sbbic/core",
"path": "qadevOOo/tests/java/ifc/awt/_XDateField.java",
"license": "gpl-3.0",
"size": 9333
} | [
"com.sun.star.util.Date"
] | import com.sun.star.util.Date; | import com.sun.star.util.*; | [
"com.sun.star"
] | com.sun.star; | 154,426 |
@Name("vpx_codec_version_str")
protected native static long vpx_codec_version_str$2();
public static Pointer<Byte > vpx_codec_version_extra_str() {
return Pointer.pointerToAddress(vpx_codec_version_extra_str$2(), Byte.class);
} | @Name(STR) native static long vpx_codec_version_str$2(); public static Pointer<Byte > function() { return Pointer.pointerToAddress(vpx_codec_version_extra_str$2(), Byte.class); } | /**
* \brief Return the version information (as a string)<br>
* * Returns a printable "extra string". This is the component of the string returned<br>
* by vpx_codec_version_str() following the three digit version number.<br>
* Original signature : <code>char* vpx_codec_version_extra_str()</code><br>
* <i>nat... | \brief Return the version information (as a string) Returns a printable "extra string". This is the component of the string returned by vpx_codec_version_str() following the three digit version number. Original signature : <code>char* vpx_codec_version_extra_str()</code> native declaration : include\vpx\vpx_codec.h:251 | vpx_codec_version_extra_str | {
"repo_name": "Exiliot/video-conference",
"path": "ClientSystem/src/sys/vp8/lib/Vp8Library.java",
"license": "gpl-2.0",
"size": 68612
} | [
"org.bridj.Pointer",
"org.bridj.ann.Name"
] | import org.bridj.Pointer; import org.bridj.ann.Name; | import org.bridj.*; import org.bridj.ann.*; | [
"org.bridj",
"org.bridj.ann"
] | org.bridj; org.bridj.ann; | 2,331,833 |
private void setAggregators(@NotNull Set<String> aggregators)
{
Preconditions.checkNotNull(aggregators);
for (String aggregator : aggregators) {
Preconditions.checkNotNull(aggregator);
}
this.aggregators = Sets.newHashSet(aggregators);
} | void function(@NotNull Set<String> aggregators) { Preconditions.checkNotNull(aggregators); for (String aggregator : aggregators) { Preconditions.checkNotNull(aggregator); } this.aggregators = Sets.newHashSet(aggregators); } | /**
* This is a helper method which sets and validates the aggregations performed
* on the value across all dimensions combinations.
*
* @param aggregators The aggregations performed on the value across all dimensions combinations.
*/ | This is a helper method which sets and validates the aggregations performed on the value across all dimensions combinations | setAggregators | {
"repo_name": "ananthc/apex-malhar",
"path": "library/src/main/java/org/apache/apex/malhar/lib/appdata/schemas/DimensionalConfigurationSchema.java",
"license": "apache-2.0",
"size": 108286
} | [
"com.google.common.base.Preconditions",
"com.google.common.collect.Sets",
"java.util.Set",
"javax.validation.constraints.NotNull"
] | import com.google.common.base.Preconditions; import com.google.common.collect.Sets; import java.util.Set; import javax.validation.constraints.NotNull; | import com.google.common.base.*; import com.google.common.collect.*; import java.util.*; import javax.validation.constraints.*; | [
"com.google.common",
"java.util",
"javax.validation"
] | com.google.common; java.util; javax.validation; | 522,239 |
@Test
public void testIteratorNonEmptyStoreGet() throws Exception {
this.store = new FakeStore(this.getTestStoreEntries());
final InternalCache<String, String> ehcache = this.getEhcache();
assertThat(ehcache.iterator(), is(notNullValue()));
} | void function() throws Exception { this.store = new FakeStore(this.getTestStoreEntries()); final InternalCache<String, String> ehcache = this.getEhcache(); assertThat(ehcache.iterator(), is(notNullValue())); } | /**
* Tests {@link Ehcache#iterator()} on a non-empty cache.
*/ | Tests <code>Ehcache#iterator()</code> on a non-empty cache | testIteratorNonEmptyStoreGet | {
"repo_name": "akomakom/ehcache3",
"path": "core/src/test/java/org/ehcache/core/EhcacheBasicIteratorTest.java",
"license": "apache-2.0",
"size": 10636
} | [
"org.hamcrest.Matchers",
"org.junit.Assert"
] | import org.hamcrest.Matchers; import org.junit.Assert; | import org.hamcrest.*; import org.junit.*; | [
"org.hamcrest",
"org.junit"
] | org.hamcrest; org.junit; | 2,067,598 |
protected boolean parseComment(final KeyValue keyValue, final List<String> comment) {
if (keyValue.getKeyword() == Keyword.COMMENT) {
comment.add(keyValue.getValue());
return true;
} else {
return false;
}
} | boolean function(final KeyValue keyValue, final List<String> comment) { if (keyValue.getKeyword() == Keyword.COMMENT) { comment.add(keyValue.getValue()); return true; } else { return false; } } | /** Parse a comment line.
* @param keyValue key=value pair containing the comment
* @param comment placeholder where the current comment line should be added
* @return true if the line was a comment line and was parsed
*/ | Parse a comment line | parseComment | {
"repo_name": "wardev/orekit",
"path": "src/main/java/org/orekit/files/ccsds/ODMParser.java",
"license": "apache-2.0",
"size": 22765
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,493,634 |
void setVariables(Map<String, String> variables); | void setVariables(Map<String, String> variables); | /**
* Updates the variables that are provided by this Process Group
*
* @param variables the variables to provide
* @throws IllegalStateException if the Process Group is not in a state that allows the variables to be updated
*/ | Updates the variables that are provided by this Process Group | setVariables | {
"repo_name": "InspurUSA/nifi",
"path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/groups/ProcessGroup.java",
"license": "apache-2.0",
"size": 33748
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,821,291 |
public WebChromeClient getWebChromeClient() {
return webChromeClient;
} | WebChromeClient function() { return webChromeClient; } | /**
* Non-Android accessor.
*
* @return webChromeClient
*/ | Non-Android accessor | getWebChromeClient | {
"repo_name": "qx/FullRobolectricTestSample",
"path": "src/main/java/org/robolectric/shadows/ShadowWebView.java",
"license": "mit",
"size": 8676
} | [
"android.webkit.WebChromeClient"
] | import android.webkit.WebChromeClient; | import android.webkit.*; | [
"android.webkit"
] | android.webkit; | 605,692 |
public List<ScheduledTermination> popOverdueInstances() {
List<ScheduledTermination> effectuatedTerminations = Lists.newArrayList();
DateTime now = UtcTime.now();
ScheduledTermination[] orderedArray = this.scheduledTerminations.toArray(new ScheduledTermination[0]);
Arrays.sort(ordere... | List<ScheduledTermination> function() { List<ScheduledTermination> effectuatedTerminations = Lists.newArrayList(); DateTime now = UtcTime.now(); ScheduledTermination[] orderedArray = this.scheduledTerminations.toArray(new ScheduledTermination[0]); Arrays.sort(orderedArray); for (ScheduledTermination nextInstanceTermina... | /**
* Dequeues all {@link ScheduledTermination}'s for which termination is due.
*
* @return The list of {@link ScheduledTermination}s that are due.
*/ | Dequeues all <code>ScheduledTermination</code>'s for which termination is due | popOverdueInstances | {
"repo_name": "Eeemil/scale.cloudpool",
"path": "commons/src/main/java/com/elastisys/scale/cloudpool/commons/termqueue/TerminationQueue.java",
"license": "apache-2.0",
"size": 7162
} | [
"com.elastisys.scale.commons.util.time.UtcTime",
"com.google.common.collect.Lists",
"java.util.Arrays",
"java.util.List",
"org.joda.time.DateTime"
] | import com.elastisys.scale.commons.util.time.UtcTime; import com.google.common.collect.Lists; import java.util.Arrays; import java.util.List; import org.joda.time.DateTime; | import com.elastisys.scale.commons.util.time.*; import com.google.common.collect.*; import java.util.*; import org.joda.time.*; | [
"com.elastisys.scale",
"com.google.common",
"java.util",
"org.joda.time"
] | com.elastisys.scale; com.google.common; java.util; org.joda.time; | 926,003 |
EReference getExtraParentWidgetTransformer_ParentNamespace(); | EReference getExtraParentWidgetTransformer_ParentNamespace(); | /**
* Returns the meta object for the reference '{@link com.odcgroup.page.transformmodel.ExtraParentWidgetTransformer#getParentNamespace <em>Parent Namespace</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Parent Namespace</em>'.
* @see com.odcgroup.p... | Returns the meta object for the reference '<code>com.odcgroup.page.transformmodel.ExtraParentWidgetTransformer#getParentNamespace Parent Namespace</code>'. | getExtraParentWidgetTransformer_ParentNamespace | {
"repo_name": "debabratahazra/DS",
"path": "designstudio/components/page/core/com.odcgroup.page.transformmodel/src/generated/java/com/odcgroup/page/transformmodel/TransformModelPackage.java",
"license": "epl-1.0",
"size": 69832
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,975,671 |
@SuppressWarnings("unchecked")
public static <T> Optional<T> getResultForMatcher(
ChromeTraceEventMatcher<T> matcher, Map<ChromeTraceEventMatcher<?>, Object> results) {
T result = (T) results.get(matcher);
return Optional.ofNullable(result);
} | @SuppressWarnings(STR) static <T> Optional<T> function( ChromeTraceEventMatcher<T> matcher, Map<ChromeTraceEventMatcher<?>, Object> results) { T result = (T) results.get(matcher); return Optional.ofNullable(result); } | /**
* Designed for use with the result of {@link ChromeTraceParser#parse(Path, Set)}. Helper function
* to avoid some distasteful casting logic.
*/ | Designed for use with the result of <code>ChromeTraceParser#parse(Path, Set)</code>. Helper function to avoid some distasteful casting logic | getResultForMatcher | {
"repo_name": "shybovycha/buck",
"path": "src/com/facebook/buck/util/trace/ChromeTraceParser.java",
"license": "apache-2.0",
"size": 5955
} | [
"java.util.Map",
"java.util.Optional"
] | import java.util.Map; import java.util.Optional; | import java.util.*; | [
"java.util"
] | java.util; | 2,181,776 |
private Integer parseInteger(String valueString, String bindingConfig) throws BindingConfigParseException {
try {
return Integer.parseInt(valueString);
} catch (Exception ex) {
throw new BindingConfigParseException("Invalid binding, value " + valueString + " is not a number: "
+ bindingConfig);
}
}... | Integer function(String valueString, String bindingConfig) throws BindingConfigParseException { try { return Integer.parseInt(valueString); } catch (Exception ex) { throw new BindingConfigParseException(STR + valueString + STR + bindingConfig); } } private class WeatherBindingConfigHelper { public String locationId; pu... | /**
* Parse a string to a integer value.
*/ | Parse a string to a integer value | parseInteger | {
"repo_name": "paulianttila/openhab",
"path": "bundles/binding/org.openhab.binding.weather/src/main/java/org/openhab/binding/weather/internal/bus/BindingConfigParser.java",
"license": "epl-1.0",
"size": 6540
} | [
"org.openhab.model.item.binding.BindingConfigParseException"
] | import org.openhab.model.item.binding.BindingConfigParseException; | import org.openhab.model.item.binding.*; | [
"org.openhab.model"
] | org.openhab.model; | 2,866,882 |
public MaxSize copy
(BitSet set)
{
return (MaxSize) super.copy (set);
} | MaxSize function (BitSet set) { return (MaxSize) super.copy (set); } | /**
* Change this set to be a copy of the given set.
*
* @param set Set to copy.
*
* @return This set.
*
* @exception NullPointerException
* (unchecked exception) Thrown if <TT>set</TT> is null.
*/ | Change this set to be a copy of the given set | copy | {
"repo_name": "JimiHFord/pj2",
"path": "lib/edu/rit/pj2/vbl/BitSetVbl.java",
"license": "lgpl-3.0",
"size": 36732
} | [
"edu.rit.util.BitSet"
] | import edu.rit.util.BitSet; | import edu.rit.util.*; | [
"edu.rit.util"
] | edu.rit.util; | 2,409,323 |
public Set getExtendedKeyUsage()
{
if (keyPurposeSet == null || keyPurposeSet.isEmpty())
{
return keyPurposeSet;
}
Set returnSet = new HashSet();
Iterator iter = keyPurposeSet.iterator();
while (iter.hasNext())
{
returnSet.add(iter... | Set function() { if (keyPurposeSet == null keyPurposeSet.isEmpty()) { return keyPurposeSet; } Set returnSet = new HashSet(); Iterator iter = keyPurposeSet.iterator(); while (iter.hasNext()) { returnSet.add(iter.next().toString()); } return Collections.unmodifiableSet(returnSet); } | /**
* Returns the extendedKeyUsage criterion. The <code>X509Certificate</code>
* must allow the specified key purposes in its extended key usage
* extension. If the <code>keyPurposeSet</code> returned is empty or
* <code>null</code>, no extendedKeyUsage check will be done. Note that
* an <code>... | Returns the extendedKeyUsage criterion. The <code>X509Certificate</code> must allow the specified key purposes in its extended key usage extension. If the <code>keyPurposeSet</code> returned is empty or <code>null</code>, no extendedKeyUsage check will be done. Note that an <code>X509Certificate</code> that has no exte... | getExtendedKeyUsage | {
"repo_name": "partheinstein/bc-java",
"path": "prov/src/main/jdk1.3/org/bouncycastle/jce/cert/X509CertSelector.java",
"license": "mit",
"size": 92784
} | [
"java.util.Collections",
"java.util.HashSet",
"java.util.Iterator",
"java.util.Set"
] | import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 460,287 |
public void assertContains(AssertionInfo info, double[] actual, double[] values) {
arrays.assertContains(info, failures, actual, values);
} | void function(AssertionInfo info, double[] actual, double[] values) { arrays.assertContains(info, failures, actual, values); } | /**
* Asserts that the given array contains the given values, in any order.
*
* @param info contains information about the assertion.
* @param actual the given array.
* @param values the values that are expected to be in the given array.
* @throws NullPointerException if the array of values is {@code... | Asserts that the given array contains the given values, in any order | assertContains | {
"repo_name": "hazendaz/assertj-core",
"path": "src/main/java/org/assertj/core/internal/DoubleArrays.java",
"license": "apache-2.0",
"size": 18154
} | [
"org.assertj.core.api.AssertionInfo"
] | import org.assertj.core.api.AssertionInfo; | import org.assertj.core.api.*; | [
"org.assertj.core"
] | org.assertj.core; | 1,687,367 |
public void createOAuthRequestToken(String consumerKey, String oauthToken, String oauthSecret,
String userCallback, String scope) throws IdentityOAuthAdminException {
final String OUT_OF_BAND = "oob";
if (userCallback == null || OUT_OF_BAND.equals(userCallback... | void function(String consumerKey, String oauthToken, String oauthSecret, String userCallback, String scope) throws IdentityOAuthAdminException { final String OUT_OF_BAND = "oob"; if (userCallback == null OUT_OF_BAND.equals(userCallback)) { userCallback = getCallbackURLOfApp(consumerKey); } Connection connection = null;... | /**
* Creates a new OAuth token.
*
* @param consumerKey Consumer Key
* @param oauthToken OAuth Token, a unique identifier
* @param oauthSecret OAuth Secret
* @param userCallback Where the user should be redirected once the approval completed.
* @param scope Resource or the ... | Creates a new OAuth token | createOAuthRequestToken | {
"repo_name": "laki88/carbon-identity",
"path": "components/oauth/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/dao/OAuthConsumerDAO.java",
"license": "apache-2.0",
"size": 20965
} | [
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.SQLException",
"org.wso2.carbon.identity.base.IdentityException",
"org.wso2.carbon.identity.core.persistence.JDBCPersistenceManager",
"org.wso2.carbon.identity.core.util.IdentityDatabaseUtil",
"org.wso2.carbon.identity.oauth.IdentityOAuthAdm... | import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import org.wso2.carbon.identity.base.IdentityException; import org.wso2.carbon.identity.core.persistence.JDBCPersistenceManager; import org.wso2.carbon.identity.core.util.IdentityDatabaseUtil; import org.wso2.carbon.identity.oa... | import java.sql.*; import org.wso2.carbon.identity.base.*; import org.wso2.carbon.identity.core.persistence.*; import org.wso2.carbon.identity.core.util.*; import org.wso2.carbon.identity.oauth.*; | [
"java.sql",
"org.wso2.carbon"
] | java.sql; org.wso2.carbon; | 1,386,945 |
public Color getTextNonSelectionColor() {
return textNonSelectionColor;
} | Color function() { return textNonSelectionColor; } | /**
* Returns the color the text is drawn with when the node isn't selected.
*
* @return DOCUMENT ME!
*/ | Returns the color the text is drawn with when the node isn't selected | getTextNonSelectionColor | {
"repo_name": "cismet/cids-navigator",
"path": "src/main/java/Sirius/navigator/ui/tree/SearchSelectionTree.java",
"license": "gpl-3.0",
"size": 21730
} | [
"java.awt.Color"
] | import java.awt.Color; | import java.awt.*; | [
"java.awt"
] | java.awt; | 386,315 |
public TechNode addRequirementsAny(Collection<String> reqAny) {
for (String id : reqAny) {
addRequirementAny(id);
}
return this;
} | TechNode function(Collection<String> reqAny) { for (String id : reqAny) { addRequirementAny(id); } return this; } | /**
* Adds many requirements at once for this tech node.
*
* The node requires ANY requirementAny to be valid.
* */ | Adds many requirements at once for this tech node. The node requires ANY requirementAny to be valid | addRequirementsAny | {
"repo_name": "Dinglydell/TechResearch",
"path": "src/main/java/dinglydell/techresearch/techtree/TechNode.java",
"license": "mit",
"size": 11188
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 1,582,639 |
void dispatchUpgradeContent(@NonNull SQLiteDatabase db, int oldVersion, int newVersion, @NonNull Context context); | void dispatchUpgradeContent(@NonNull SQLiteDatabase db, int oldVersion, int newVersion, @NonNull Context context); | /**
* Called to upgrade a content of this database entity within the specified database.
* <p>
* This is called from the Database to which is this entity assigned, from within
* {@link Database#onUpgradeContent(SQLiteDatabase, int, int, Context)}.
*
* @param db SQLite database within which to insert... | Called to upgrade a content of this database entity within the specified database. This is called from the Database to which is this entity assigned, from within <code>Database#onUpgradeContent(SQLiteDatabase, int, int, Context)</code> | dispatchUpgradeContent | {
"repo_name": "android-libraries/android_database",
"path": "library/src/main/java/com/albedinsky/android/database/DatabaseEntity.java",
"license": "apache-2.0",
"size": 12955
} | [
"android.content.Context",
"android.database.sqlite.SQLiteDatabase",
"android.support.annotation.NonNull"
] | import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.support.annotation.NonNull; | import android.content.*; import android.database.sqlite.*; import android.support.annotation.*; | [
"android.content",
"android.database",
"android.support"
] | android.content; android.database; android.support; | 293,700 |
public SubjectIdentifier getPatientId() {
return patientId;
} | SubjectIdentifier function() { return patientId; } | /**
* Method description
*
*
* @return
*/ | Method description | getPatientId | {
"repo_name": "kef/hieos",
"path": "src/xdsbridge/src/main/java/com/vangent/hieos/services/xds/bridge/model/SubmitDocumentRequest.java",
"license": "apache-2.0",
"size": 2109
} | [
"com.vangent.hieos.subjectmodel.SubjectIdentifier"
] | import com.vangent.hieos.subjectmodel.SubjectIdentifier; | import com.vangent.hieos.subjectmodel.*; | [
"com.vangent.hieos"
] | com.vangent.hieos; | 552,237 |
public final void addPlatformBundle(Path bundlePath) {
platformBundles.add(bundlePath);
} | final void function(Path bundlePath) { platformBundles.add(bundlePath); } | /**
* Adds a bundle present at a known location at the target container nodes.
* Note that the set of platform bundles cannot change during the jdisc container's lifetime.
*
* @param bundlePath usually an absolute path, e.g. '$VESPA_HOME/lib/jars/foo.jar'
*/ | Adds a bundle present at a known location at the target container nodes. Note that the set of platform bundles cannot change during the jdisc container's lifetime | addPlatformBundle | {
"repo_name": "vespa-engine/vespa",
"path": "config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java",
"license": "apache-2.0",
"size": 28152
} | [
"java.nio.file.Path"
] | import java.nio.file.Path; | import java.nio.file.*; | [
"java.nio"
] | java.nio; | 2,241,174 |
public DrawerBuilder withFooter(@NonNull View footerView) {
this.mFooterView = footerView;
return this;
} | DrawerBuilder function(@NonNull View footerView) { this.mFooterView = footerView; return this; } | /**
* Add a footer to the DrawerBuilder ListView. This can be any view
*
* @param footerView
* @return
*/ | Add a footer to the DrawerBuilder ListView. This can be any view | withFooter | {
"repo_name": "natodemon/Lunary-Ethereum-Wallet",
"path": "materialdrawer/src/main/java/com/mikepenz/materialdrawer/DrawerBuilder.java",
"license": "gpl-3.0",
"size": 67146
} | [
"android.support.annotation.NonNull",
"android.view.View"
] | import android.support.annotation.NonNull; import android.view.View; | import android.support.annotation.*; import android.view.*; | [
"android.support",
"android.view"
] | android.support; android.view; | 2,366,631 |
private static List<String> getPrincipalNames(final IWindowsIdentity windowsIdentity,
final PrincipalFormat principalFormat) {
final List<String> principals = new ArrayList<>();
switch (principalFormat) {
case FQN:
principals.add(windowsIdentity.getFqn());
... | static List<String> function(final IWindowsIdentity windowsIdentity, final PrincipalFormat principalFormat) { final List<String> principals = new ArrayList<>(); switch (principalFormat) { case FQN: principals.add(windowsIdentity.getFqn()); break; case SID: principals.add(windowsIdentity.getSidString()); break; case BOT... | /**
* Returns a list of user principal objects.
*
* @param windowsIdentity
* Windows identity.
* @param principalFormat
* Principal format.
* @return A list of user principal objects.
*/ | Returns a list of user principal objects | getPrincipalNames | {
"repo_name": "dblock/waffle",
"path": "Source/JNA/waffle-tomcat7/src/main/java/waffle/apache/GenericWindowsPrincipal.java",
"license": "epl-1.0",
"size": 5662
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,766,494 |
private void onVehicleLeaveMiss(final Player player, final MovingData data, final MovingConfig cc) {
if (cc.debug) {
LogUtil.logWarning("[NoCheatPlus] VehicleExitEvent missing for: " + player.getName());
}
onPlayerVehicleLeave(player, null);
// if (BlockProperties.isRails(pFrom.getTypeId())) {
... | void function(final Player player, final MovingData data, final MovingConfig cc) { if (cc.debug) { LogUtil.logWarning(STR + player.getName()); } onPlayerVehicleLeave(player, null); data.noFallSkipAirCheck = true; data.sfLowJump = false; data.clearNoFallData(); } | /**
* Called from player-move checking, if vehicle-leave has not been called after entering, but the player is not inside of a vehicle anymore.
* @param player
* @param data
* @param cc
*/ | Called from player-move checking, if vehicle-leave has not been called after entering, but the player is not inside of a vehicle anymore | onVehicleLeaveMiss | {
"repo_name": "MyPictures/NoCheatPlus",
"path": "NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java",
"license": "gpl-3.0",
"size": 63675
} | [
"fr.neatmonster.nocheatplus.logging.LogUtil",
"org.bukkit.entity.Player"
] | import fr.neatmonster.nocheatplus.logging.LogUtil; import org.bukkit.entity.Player; | import fr.neatmonster.nocheatplus.logging.*; import org.bukkit.entity.*; | [
"fr.neatmonster.nocheatplus",
"org.bukkit.entity"
] | fr.neatmonster.nocheatplus; org.bukkit.entity; | 2,080,954 |
private static void getViews(View p, Hashtable<Integer,View> vh) {
// Get the view ID and add it to collection if not already present.
final int id = p.getId();
if (id != View.NO_ID && !vh.containsKey(id)) {
vh.put(id, p);
}
// If it's a ViewGroup, then process children recursively.
if (p insta... | static void function(View p, Hashtable<Integer,View> vh) { final int id = p.getId(); if (id != View.NO_ID && !vh.containsKey(id)) { vh.put(id, p); } if (p instanceof ViewGroup) { final ViewGroup g = (ViewGroup)p; final int nChildren = g.getChildCount(); for(int i = 0; i < nChildren; i++) { getViews(g.getChildAt(i), vh)... | /**
* Passed a parent view, add it and all children view (if any) to the passed collection
*
* @param p Parent View
* @param vh Collection
*/ | Passed a parent view, add it and all children view (if any) to the passed collection | getViews | {
"repo_name": "Imkal/Book-Catalogue",
"path": "src/com/eleybourn/bookcatalogue/utils/Utils.java",
"license": "gpl-3.0",
"size": 62860
} | [
"android.view.View",
"android.view.ViewGroup",
"java.util.Hashtable"
] | import android.view.View; import android.view.ViewGroup; import java.util.Hashtable; | import android.view.*; import java.util.*; | [
"android.view",
"java.util"
] | android.view; java.util; | 216,648 |
public Observable<ServiceResponse<Page<BatchAccountInner>>> listNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
} | Observable<ServiceResponse<Page<BatchAccountInner>>> function(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException(STR); } | /**
* Gets information about the Batch accounts associated with the subscription.
*
ServiceResponse<PageImpl<BatchAccountInner>> * @param nextPageLink The NextLink from the previous successful call to List operation.
* @return the PagedList<BatchAccountInner> object wrapped in {@link ServiceRes... | Gets information about the Batch accounts associated with the subscription | listNextSinglePageAsync | {
"repo_name": "pomortaz/azure-sdk-for-java",
"path": "azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/BatchAccountsInner.java",
"license": "mit",
"size": 77183
} | [
"com.microsoft.azure.Page",
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse; | import com.microsoft.azure.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 1,896,268 |
private boolean canLink(DataObject node, long userID, GroupData group,
long loggedUserID, boolean isAdmin, boolean userIsAdmin)
{
//data owner
if (node.getOwner().getId() == userID) return true;
if (!node.canLink()) return false; //handle private group case.
PermissionData permissions = group.ge... | boolean function(DataObject node, long userID, GroupData group, long loggedUserID, boolean isAdmin, boolean userIsAdmin) { if (node.getOwner().getId() == userID) return true; if (!node.canLink()) return false; PermissionData permissions = group.getPermissions(); if (permissions.getPermissionsLevel() == GroupData.PERMIS... | /**
* Returns <code>true</code> if the user currently selected
* can link data to the selected object, <code>false</code> otherwise.
*
* @param node The node to handle.
* @param userID The id of the selected user.
* @param group The selected group.
* @param loggedUserID the if of the user currently logge... | Returns <code>true</code> if the user currently selected can link data to the selected object, <code>false</code> otherwise | canLink | {
"repo_name": "emilroz/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/agents/fsimporter/chooser/LocationDialog.java",
"license": "gpl-2.0",
"size": 52206
} | [
"java.util.Iterator",
"java.util.Set"
] | import java.util.Iterator; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,963,121 |
SQLStatementEvent map(SQLStatement sqlStatement); | SQLStatementEvent map(SQLStatement sqlStatement); | /**
* Map SQL statement to SQL statement event.
*
* @param sqlStatement SQL statement
* @return SQL statement event
*/ | Map SQL statement to SQL statement event | map | {
"repo_name": "apache/incubator-shardingsphere",
"path": "shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/mapper/SQLStatementEventMapper.java",
"license": "apache-2.0",
"size": 1312
} | [
"org.apache.shardingsphere.infra.metadata.mapper.event.SQLStatementEvent",
"org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement"
] | import org.apache.shardingsphere.infra.metadata.mapper.event.SQLStatementEvent; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; | import org.apache.shardingsphere.infra.metadata.mapper.event.*; import org.apache.shardingsphere.sql.parser.sql.common.statement.*; | [
"org.apache.shardingsphere"
] | org.apache.shardingsphere; | 2,778,688 |
public void deleteIconDefault(FeatureRow featureRow) {
featureStyleExtension.deleteIconDefault(featureRow);
} | void function(FeatureRow featureRow) { featureStyleExtension.deleteIconDefault(featureRow); } | /**
* Delete the feature row default icon
*
* @param featureRow
* feature row
*/ | Delete the feature row default icon | deleteIconDefault | {
"repo_name": "ngageoint/geopackage-java",
"path": "src/main/java/mil/nga/geopackage/extension/nga/style/FeatureTableStyles.java",
"license": "mit",
"size": 33447
} | [
"mil.nga.geopackage.features.user.FeatureRow"
] | import mil.nga.geopackage.features.user.FeatureRow; | import mil.nga.geopackage.features.user.*; | [
"mil.nga.geopackage"
] | mil.nga.geopackage; | 2,421,027 |
public void setXAttrs(Map<String, byte[]> xAttrs) {
this.xAttrs = xAttrs;
} | void function(Map<String, byte[]> xAttrs) { this.xAttrs = xAttrs; } | /**
* Sets optional xAttrs.
*
* @param xAttrs Map containing all xAttrs
*/ | Sets optional xAttrs | setXAttrs | {
"repo_name": "ronny-macmaster/hadoop",
"path": "hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/CopyListingFileStatus.java",
"license": "apache-2.0",
"size": 12481
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 39,046 |
byte[] buf = ZabbixUtils.zbx_format(message);
log.debug("Zorka send: {}", new String(buf));
OutputStream out = socket.getOutputStream();
out.write(buf);
out.flush();
} // send() | byte[] buf = ZabbixUtils.zbx_format(message); log.debug(STR, new String(buf)); OutputStream out = socket.getOutputStream(); out.write(buf); out.flush(); } | /**
* Sends message
*
* @param message response value
* @throws IOException if I/O error occurs
*/ | Sends message | send | {
"repo_name": "jitlogic/zorka",
"path": "zorka-core/src/main/java/com/jitlogic/zorka/core/integ/zabbix/ZabbixActiveRequest.java",
"license": "gpl-3.0",
"size": 3792
} | [
"java.io.OutputStream"
] | import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 430,656 |
ItemType getItemType(); | ItemType getItemType(); | /**
* Gets the {@link ItemType} this {@link Statistic} measures.
*
* @return The item type this statistic measures
*/ | Gets the <code>ItemType</code> this <code>Statistic</code> measures | getItemType | {
"repo_name": "frogocomics/SpongeAPI",
"path": "src/main/java/org/spongepowered/api/stats/ItemStatistic.java",
"license": "mit",
"size": 1626
} | [
"org.spongepowered.api.item.ItemType"
] | import org.spongepowered.api.item.ItemType; | import org.spongepowered.api.item.*; | [
"org.spongepowered.api"
] | org.spongepowered.api; | 677,553 |
@RequestMapping("/makeSticky")
@ResponseBody
public String makeSticky(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
SessionMap<String, Object> sessionMap = getSessionMap(request);
Long commentId = WebUtil.readLongParam(request, CommentConstants.ATTR... | @RequestMapping(STR) String function(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { SessionMap<String, Object> sessionMap = getSessionMap(request); Long commentId = WebUtil.readLongParam(request, CommentConstants.ATTR_COMMENT_ID); Boolean sticky = WebUtil.readBooleanPar... | /**
* Make a topic sticky - the topic should be level 1 only.
*
* @throws ServletException
*/ | Make a topic sticky - the topic should be level 1 only | makeSticky | {
"repo_name": "lamsfoundation/lams",
"path": "lams_central/src/java/org/lamsfoundation/lams/comments/web/CommentController.java",
"license": "gpl-2.0",
"size": 28286
} | [
"com.fasterxml.jackson.databind.node.JsonNodeFactory",
"com.fasterxml.jackson.databind.node.ObjectNode",
"java.io.IOException",
"javax.servlet.ServletException",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse",
"org.lamsfoundation.lams.comments.Comment",
"org.lamsfoun... | import com.fasterxml.jackson.databind.node.JsonNodeFactory; import com.fasterxml.jackson.databind.node.ObjectNode; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.lamsfoundation.lams.comments.Comme... | import com.fasterxml.jackson.databind.node.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import org.lamsfoundation.lams.comments.*; import org.lamsfoundation.lams.comments.dto.*; import org.lamsfoundation.lams.usermanagement.*; import org.lamsfoundation.lams.util.*; import org.lamsfoundation... | [
"com.fasterxml.jackson",
"java.io",
"javax.servlet",
"org.lamsfoundation.lams",
"org.springframework.web"
] | com.fasterxml.jackson; java.io; javax.servlet; org.lamsfoundation.lams; org.springframework.web; | 1,176,395 |
@Override
protected void updateStatsRow(Object rowKey, Object rowValues[]) {
super.updateStatsRow(rowKey, rowValues);
rowValues[columnNameToIndex.get("PARTITION_ID")] = m_partitionId;
long totalTimedExecutionTime = m_totalPlanningTime;
long minExecutionTime = m_minPlanningTime;
... | void function(Object rowKey, Object rowValues[]) { super.updateStatsRow(rowKey, rowValues); rowValues[columnNameToIndex.get(STR)] = m_partitionId; long totalTimedExecutionTime = m_totalPlanningTime; long minExecutionTime = m_minPlanningTime; long maxExecutionTime = m_maxPlanningTime; long cache1Level = m_cache1Level; l... | /**
* Update the rowValues array with the latest statistical information.
* This method is overrides the super class version
* which must also be called so that it can update its columns.
* @param values Values of each column of the row of stats. Used as output.
*/ | Update the rowValues array with the latest statistical information. This method is overrides the super class version which must also be called so that it can update its columns | updateStatsRow | {
"repo_name": "kobronson/cs-voltdb",
"path": "src/frontend/org/voltdb/PlannerStatsCollector.java",
"license": "agpl-3.0",
"size": 11438
} | [
"org.voltcore.utils.CoreUtils"
] | import org.voltcore.utils.CoreUtils; | import org.voltcore.utils.*; | [
"org.voltcore.utils"
] | org.voltcore.utils; | 2,282,767 |
public void setShape(Shape shape, boolean notify) {
this.shape = shape;
if (notify) {
notifyListeners(new RendererChangeEvent(this));
}
}
/**
* Sets the shape used for a series and sends a {@link RendererChangeEvent} | void function(Shape shape, boolean notify) { this.shape = shape; if (notify) { notifyListeners(new RendererChangeEvent(this)); } } /** * Sets the shape used for a series and sends a {@link RendererChangeEvent} | /**
* Sets the shape for ALL series and, if requested, sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param shape the shape (<code>null</code> permitted).
* @param notify notify listeners?
*/ | Sets the shape for ALL series and, if requested, sends a <code>RendererChangeEvent</code> to all registered listeners | setShape | {
"repo_name": "opensim-org/opensim-gui",
"path": "Gui/opensim/jfreechart/src/org/jfree/chart/renderer/AbstractRenderer.java",
"license": "apache-2.0",
"size": 98153
} | [
"java.awt.Shape",
"org.jfree.chart.event.RendererChangeEvent"
] | import java.awt.Shape; import org.jfree.chart.event.RendererChangeEvent; | import java.awt.*; import org.jfree.chart.event.*; | [
"java.awt",
"org.jfree.chart"
] | java.awt; org.jfree.chart; | 1,950,229 |
@Override
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) {
if (msg instanceof FullHttpMessage) {
FullHttpMessage httpMsg = (FullHttpMessage) msg;
boolean hasData = httpMsg.content().isReadable();
boolean httpMsgNeedRelease = true;
... | void function(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) { if (msg instanceof FullHttpMessage) { FullHttpMessage httpMsg = (FullHttpMessage) msg; boolean hasData = httpMsg.content().isReadable(); boolean httpMsgNeedRelease = true; SimpleChannelPromiseAggregator promiseAggregator = null; try { int st... | /**
* Handles conversion of a {@link FullHttpMessage} to HTTP/2 frames.
*/ | Handles conversion of a <code>FullHttpMessage</code> to HTTP/2 frames | write | {
"repo_name": "firebase/netty",
"path": "codec-http2/src/main/java/io/netty/handler/codec/http2/HttpToHttp2ConnectionHandler.java",
"license": "apache-2.0",
"size": 4312
} | [
"io.netty.channel.ChannelHandlerContext",
"io.netty.channel.ChannelPromise",
"io.netty.handler.codec.http.FullHttpMessage",
"io.netty.handler.codec.http2.Http2CodecUtil"
] | import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelPromise; import io.netty.handler.codec.http.FullHttpMessage; import io.netty.handler.codec.http2.Http2CodecUtil; | import io.netty.channel.*; import io.netty.handler.codec.http.*; import io.netty.handler.codec.http2.*; | [
"io.netty.channel",
"io.netty.handler"
] | io.netty.channel; io.netty.handler; | 404,709 |
public void getScreenshotAsFile(File outputFile) throws Exception {
Class<? extends WebDriver> driverClass = driver.getClass();
// Check if the driver is implementing the interface TakesScreenshot
if(TakesScreenshot.class.isAssignableFrom(driverClass)) {
TakesScreenshot screenshotDriver = (TakesScreenshot) ... | void function(File outputFile) throws Exception { Class<? extends WebDriver> driverClass = driver.getClass(); if(TakesScreenshot.class.isAssignableFrom(driverClass)) { TakesScreenshot screenshotDriver = (TakesScreenshot) driver; File screenFile = screenshotDriver.getScreenshotAs(OutputType.FILE); FileUtils.copyFile(scr... | /**
* Generate a screenshot of the current view of the WebDriver and save it as a file
*
* @param outputFile
* @throws Exception
*/ | Generate a screenshot of the current view of the WebDriver and save it as a file | getScreenshotAsFile | {
"repo_name": "mbordas/qualify",
"path": "src/main/java/qualify/tools/TestToolSelenium.java",
"license": "bsd-3-clause",
"size": 25061
} | [
"java.io.File",
"org.apache.commons.io.FileUtils",
"org.openqa.selenium.OutputType",
"org.openqa.selenium.TakesScreenshot",
"org.openqa.selenium.WebDriver"
] | import java.io.File; import org.apache.commons.io.FileUtils; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; | import java.io.*; import org.apache.commons.io.*; import org.openqa.selenium.*; | [
"java.io",
"org.apache.commons",
"org.openqa.selenium"
] | java.io; org.apache.commons; org.openqa.selenium; | 2,157,539 |
public void setStoragePolicy(final Path src, final String policyName)
throws IOException {
dfs.setStoragePolicy(src, policyName);
} | void function(final Path src, final String policyName) throws IOException { dfs.setStoragePolicy(src, policyName); } | /**
* Set the source path to the specified storage policy.
*
* @param src The source path referring to either a directory or a file.
* @param policyName The name of the storage policy.
*/ | Set the source path to the specified storage policy | setStoragePolicy | {
"repo_name": "wenxinhe/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/HdfsAdmin.java",
"license": "apache-2.0",
"size": 23713
} | [
"java.io.IOException",
"org.apache.hadoop.fs.Path"
] | import java.io.IOException; import org.apache.hadoop.fs.Path; | import java.io.*; import org.apache.hadoop.fs.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 109,160 |
buttonGroup1 = new javax.swing.ButtonGroup();
jLabel1 = new javax.swing.JLabel();
jSeparator1 = new javax.swing.JSeparator();
jLabel2 = new javax.swing.JLabel();
txtHost = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
txtPort = new javax.swing.... | buttonGroup1 = new javax.swing.ButtonGroup(); jLabel1 = new javax.swing.JLabel(); jSeparator1 = new javax.swing.JSeparator(); jLabel2 = new javax.swing.JLabel(); txtHost = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); txtPort = new javax.swing.JFormattedTextField(); jLabel4 = new javax.swing.JLabel(... | /**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/ | This method is called from within the constructor to initialize the form. regenerated by the Form Editor | initComponents | {
"repo_name": "giangnb/eproject2",
"path": "src/com/project2/mybudget/views/DatabaseSetup.java",
"license": "gpl-3.0",
"size": 21568
} | [
"javax.swing.JPasswordField"
] | import javax.swing.JPasswordField; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 232,137 |
public static final AdGroupCriterionSimulationServiceClient create(
AdGroupCriterionSimulationServiceSettings settings) throws IOException {
return new AdGroupCriterionSimulationServiceClient(settings);
} | static final AdGroupCriterionSimulationServiceClient function( AdGroupCriterionSimulationServiceSettings settings) throws IOException { return new AdGroupCriterionSimulationServiceClient(settings); } | /**
* Constructs an instance of AdGroupCriterionSimulationServiceClient, using the given settings.
* The channels are created based on the settings passed in, or defaults for any settings that are
* not set.
*/ | Constructs an instance of AdGroupCriterionSimulationServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set | create | {
"repo_name": "googleads/google-ads-java",
"path": "google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/services/AdGroupCriterionSimulationServiceClient.java",
"license": "apache-2.0",
"size": 13874
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,071,861 |
public boolean awaitQuiescence(long timeout, TimeUnit unit) {
long nanos = unit.toNanos(timeout);
ForkJoinWorkerThread wt;
Thread thread = Thread.currentThread();
if ((thread instanceof ForkJoinWorkerThread) &&
(wt = (ForkJoinWorkerThread)thread).pool == this) {
helpQuiescePool(wt.workQu... | boolean function(long timeout, TimeUnit unit) { long nanos = unit.toNanos(timeout); ForkJoinWorkerThread wt; Thread thread = Thread.currentThread(); if ((thread instanceof ForkJoinWorkerThread) && (wt = (ForkJoinWorkerThread)thread).pool == this) { helpQuiescePool(wt.workQueue); return true; } long startTime = System.n... | /**
* If called by a ForkJoinTask operating in this pool, equivalent
* in effect to {@link ForkJoinTask#helpQuiesce}. Otherwise,
* waits and/or attempts to assist performing tasks until this
* pool {@link #isQuiescent} or the indicated timeout elapses.
*
* @param timeout the maximum time to wait
* ... | If called by a ForkJoinTask operating in this pool, equivalent in effect to <code>ForkJoinTask#helpQuiesce</code>. Otherwise, waits and/or attempts to assist performing tasks until this pool <code>#isQuiescent</code> or the indicated timeout elapses | awaitQuiescence | {
"repo_name": "squirrelala/Rainfall-core",
"path": "src/main/java/jsr166e/ForkJoinPool.java",
"license": "apache-2.0",
"size": 131908
} | [
"java.util.concurrent.TimeUnit"
] | import java.util.concurrent.TimeUnit; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 2,477,012 |
public void ensureRoleHighEnoughToDisassociateOtherUserFromDocument(
final Document.Role role, final String username,
final String documentId) throws ServiceException {
Document.Role otherUserRole = getHighestDocumentRoleForUserForDocument(username, documentId);
if(role.compare(otherUserRole) < 0) {... | void function( final Document.Role role, final String username, final String documentId) throws ServiceException { Document.Role otherUserRole = getHighestDocumentRoleForUserForDocument(username, documentId); if(role.compare(otherUserRole) < 0) { throw new ServiceException( ErrorCode.DOCUMENT_INSUFFICIENT_PERMISSIONS, ... | /**
* Verifies that a given role has enough permissions to disassociate a
* document and a user based on the user's role with the document.
*
* @param role The maximum role of the user that is attempting to
* disassociate the class and document.
*
* @param username The other user's username.
*... | Verifies that a given role has enough permissions to disassociate a document and a user based on the user's role with the document | ensureRoleHighEnoughToDisassociateOtherUserFromDocument | {
"repo_name": "HaiJiaoXinHeng/server-1",
"path": "src/org/ohmage/service/UserDocumentServices.java",
"license": "apache-2.0",
"size": 18458
} | [
"org.ohmage.annotator.Annotator",
"org.ohmage.domain.Document",
"org.ohmage.exception.ServiceException"
] | import org.ohmage.annotator.Annotator; import org.ohmage.domain.Document; import org.ohmage.exception.ServiceException; | import org.ohmage.annotator.*; import org.ohmage.domain.*; import org.ohmage.exception.*; | [
"org.ohmage.annotator",
"org.ohmage.domain",
"org.ohmage.exception"
] | org.ohmage.annotator; org.ohmage.domain; org.ohmage.exception; | 575,293 |
public static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, final int scrollX,
final int deltaY, final int scrollY, final int scrollRange, final int fuzzyThreshold,
final float scaleFactor, final boolean isTouchEvent) {
final int deltaValue, currentScrollValue, scrollValue;
switch (... | static void function(final PullToRefreshBase<?> view, final int deltaX, final int scrollX, final int deltaY, final int scrollY, final int scrollRange, final int fuzzyThreshold, final float scaleFactor, final boolean isTouchEvent) { final int deltaValue, currentScrollValue, scrollValue; switch (view.getPullToRefreshScro... | /**
* Helper method for Overscrolling that encapsulates all of the necessary
* function. This is the advanced version of the call.
*
* @param view - PullToRefreshView that is calling this.
* @param deltaX - Change in X in pixels, passed through from from
* overScrollBy call
* @param scrollX - ... | Helper method for Overscrolling that encapsulates all of the necessary function. This is the advanced version of the call | overScrollBy | {
"repo_name": "0359xiaodong/GotyeSDK-Android",
"path": "GotyeSDK/src/com/gotye/sdk/handmark/pulltorefresh/library/OverscrollHelper.java",
"license": "apache-2.0",
"size": 7933
} | [
"android.util.Log",
"com.gotye.sdk.handmark.pulltorefresh.library.PullToRefreshBase"
] | import android.util.Log; import com.gotye.sdk.handmark.pulltorefresh.library.PullToRefreshBase; | import android.util.*; import com.gotye.sdk.handmark.pulltorefresh.library.*; | [
"android.util",
"com.gotye.sdk"
] | android.util; com.gotye.sdk; | 1,607,725 |
@NotNull
Set<String> getDefaultBlackList(); | Set<String> getDefaultBlackList(); | /**
* Default list of patterns for which hints should not be shown
*/ | Default list of patterns for which hints should not be shown | getDefaultBlackList | {
"repo_name": "goodwinnk/intellij-community",
"path": "platform/lang-api/src/com/intellij/codeInsight/hints/InlayParameterHintsProvider.java",
"license": "apache-2.0",
"size": 3009
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 303,447 |
public Component.BaselineResizeBehavior getBaselineResizeBehavior(
JComponent c) {
if (c == null) {
throw new NullPointerException("Component must be non-null");
}
return Component.BaselineResizeBehavior.OTHER;
} | Component.BaselineResizeBehavior function( JComponent c) { if (c == null) { throw new NullPointerException(STR); } return Component.BaselineResizeBehavior.OTHER; } | /**
* Returns an enum indicating how the baseline of he component
* changes as the size changes. This method is primarily meant for
* layout managers and GUI builders.
* <p>
* This method returns <code>BaselineResizeBehavior.OTHER</code>.
* Subclasses that support a baseline should overri... | Returns an enum indicating how the baseline of he component changes as the size changes. This method is primarily meant for layout managers and GUI builders. This method returns <code>BaselineResizeBehavior.OTHER</code>. Subclasses that support a baseline should override appropriately | getBaselineResizeBehavior | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk/jdk/src/share/classes/javax/swing/plaf/ComponentUI.java",
"license": "mit",
"size": 15402
} | [
"java.awt.Component",
"javax.swing.JComponent"
] | import java.awt.Component; import javax.swing.JComponent; | import java.awt.*; import javax.swing.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 876,037 |
private PresentationObject getAdminView(IWContext iwc) {
Table T = new Table();
T.setCellpadding(0);
T.setCellpadding(0);
if (this.topics != null && this.topics.size() > 0) {
T.add(getAddLink(this.core.getImage("/shared/create.gif", "Send")), 1, 1);
}
if (getCategoryIds().length > 0 && getICObjectInst... | PresentationObject function(IWContext iwc) { Table T = new Table(); T.setCellpadding(0); T.setCellpadding(0); if (this.topics != null && this.topics.size() > 0) { T.add(getAddLink(this.core.getImage(STR, "Send")), 1, 1); } if (getCategoryIds().length > 0 && getICObjectInstanceID() > 0) { T.add(getSetupLink(this.core.ge... | /**
* Gets the adminView of the NewsLetter object
*
* @return The admin view value
*/ | Gets the adminView of the NewsLetter object | getAdminView | {
"repo_name": "idega/platform2",
"path": "src/com/idega/block/email/presentation/NewsLetter.java",
"license": "gpl-3.0",
"size": 18183
} | [
"com.idega.presentation.IWContext",
"com.idega.presentation.PresentationObject",
"com.idega.presentation.Table"
] | import com.idega.presentation.IWContext; import com.idega.presentation.PresentationObject; import com.idega.presentation.Table; | import com.idega.presentation.*; | [
"com.idega.presentation"
] | com.idega.presentation; | 1,427,378 |
void waitAndQueuePacket(DFSPacket packet) throws IOException {
synchronized (dataQueue) {
try {
// If queue is full, then wait till we have enough space
boolean firstWait = true;
try {
while (!streamerClosed && dataQueue.size() + ackQueue.size() >
dfsClient.ge... | void waitAndQueuePacket(DFSPacket packet) throws IOException { synchronized (dataQueue) { try { boolean firstWait = true; try { while (!streamerClosed && dataQueue.size() + ackQueue.size() > dfsClient.getConf().getWriteMaxPackets()) { if (firstWait) { Span span = Tracer.getCurrentSpan(); if (span != null) { span.addTim... | /**
* wait for space of dataQueue and queue the packet
*
* @param packet the DFSPacket to be queued
* @throws IOException
*/ | wait for space of dataQueue and queue the packet | waitAndQueuePacket | {
"repo_name": "leechoongyon/HadoopSourceAnalyze",
"path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java",
"license": "apache-2.0",
"size": 69486
} | [
"java.io.IOException",
"java.nio.channels.ClosedChannelException",
"org.apache.htrace.core.Span",
"org.apache.htrace.core.Tracer"
] | import java.io.IOException; import java.nio.channels.ClosedChannelException; import org.apache.htrace.core.Span; import org.apache.htrace.core.Tracer; | import java.io.*; import java.nio.channels.*; import org.apache.htrace.core.*; | [
"java.io",
"java.nio",
"org.apache.htrace"
] | java.io; java.nio; org.apache.htrace; | 990,582 |
public EClass getBasePower() {
if (basePowerEClass == null) {
basePowerEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI).getEClassifiers().get(11);
}
return basePowerEClass;
} | EClass function() { if (basePowerEClass == null) { basePowerEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI).getEClassifiers().get(11); } return basePowerEClass; } | /**
* Returns the meta object for class '{@link CIM15.IEC61970.Core.BasePower <em>Base Power</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Base Power</em>'.
* @see CIM15.IEC61970.Core.BasePower
* @generated
*/ | Returns the meta object for class '<code>CIM15.IEC61970.Core.BasePower Base Power</code>'. | getBasePower | {
"repo_name": "SES-fortiss/SmartGridCoSimulation",
"path": "core/cim15/src/CIM15/IEC61970/Core/CorePackage.java",
"license": "apache-2.0",
"size": 304427
} | [
"org.eclipse.emf.ecore.EClass",
"org.eclipse.emf.ecore.EPackage"
] | import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EPackage; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 507,341 |
public static XSingleComponentFactory __getComponentFactory( String sImplementationName ) {
XSingleComponentFactory xFactory = null;
if ( sImplementationName.equals( ProtocolHandlerAddonImpl.class.getName() ) )
xFactory = Factory.createComponentFactory(ProtocolHandlerAddonImpl.class,
... | static XSingleComponentFactory function( String sImplementationName ) { XSingleComponentFactory xFactory = null; if ( sImplementationName.equals( ProtocolHandlerAddonImpl.class.getName() ) ) xFactory = Factory.createComponentFactory(ProtocolHandlerAddonImpl.class, ProtocolHandlerAddonImpl.getServiceNames()); return xFa... | /** Gives a factory for creating the service.
* This method is called by the <code>JavaLoader</code>
* <p>
* @return Returns a <code>XSingleServiceFactory</code> for creating the
* component.
* @see com.sun.star.comp.loader.JavaLoader
* @param sImplementationName The implementation name of... | Gives a factory for creating the service. This method is called by the <code>JavaLoader</code> | __getComponentFactory | {
"repo_name": "beppec56/core",
"path": "odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/ProtocolHandlerAddon.java",
"license": "gpl-3.0",
"size": 10702
} | [
"com.sun.star.lang.XSingleComponentFactory",
"com.sun.star.lib.uno.helper.Factory"
] | import com.sun.star.lang.XSingleComponentFactory; import com.sun.star.lib.uno.helper.Factory; | import com.sun.star.lang.*; import com.sun.star.lib.uno.helper.*; | [
"com.sun.star"
] | com.sun.star; | 2,360,554 |
if (TextUtils.isEmpty(signedData) || TextUtils.isEmpty(base64PublicKey) ||
TextUtils.isEmpty(signature)) {
Log.e(TAG, "Purchase verification failed: missing data.");
return false;
}
PublicKey key = Security.generatePublicKey(base64PublicKey);
return Secur... | if (TextUtils.isEmpty(signedData) TextUtils.isEmpty(base64PublicKey) TextUtils.isEmpty(signature)) { Log.e(TAG, STR); return false; } PublicKey key = Security.generatePublicKey(base64PublicKey); return Security.verify(key, signedData, signature); } | /**
* Verifies that the data was signed with the given signature, and returns
* the verified purchase. The data is in JSON format and signed
* with a private key. The data also contains the {@link PurchaseState}
* and product ID of the purchase.
* @param base64PublicKey the base64-encoded publi... | Verifies that the data was signed with the given signature, and returns the verified purchase. The data is in JSON format and signed with a private key. The data also contains the <code>PurchaseState</code> and product ID of the purchase | verifyPurchase | {
"repo_name": "abubakarm94/Beat-Box",
"path": "src/com/payment/helper/Security.java",
"license": "cc0-1.0",
"size": 5008
} | [
"android.text.TextUtils",
"android.util.Log",
"java.security.PublicKey"
] | import android.text.TextUtils; import android.util.Log; import java.security.PublicKey; | import android.text.*; import android.util.*; import java.security.*; | [
"android.text",
"android.util",
"java.security"
] | android.text; android.util; java.security; | 502,204 |
public Iterator<JDefinedClass> classes() {
return classes.values().iterator();
} | Iterator<JDefinedClass> function() { return classes.values().iterator(); } | /**
* Returns an iterator that walks the top-level classes defined in this
* package.
*/ | Returns an iterator that walks the top-level classes defined in this package | classes | {
"repo_name": "samskivert/ikvm-openjdk",
"path": "build/linux-amd64/impsrc/com/sun/codemodel/internal/JPackage.java",
"license": "gpl-2.0",
"size": 13906
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 1,543,676 |
@Override
@DebugLog
public void onStreamReady(Torrent torrent) {
mVideoLocation = torrent.getVideoFile().toString();
startPlayer(mVideoLocation);
} | void function(Torrent torrent) { mVideoLocation = torrent.getVideoFile().toString(); startPlayer(mVideoLocation); } | /**
* Called when torrent buffering has reached 100%
*
* @param torrent
*/ | Called when torrent buffering has reached 100% | onStreamReady | {
"repo_name": "Chonlakant/popcorn-android",
"path": "base/src/main/java/pct/droid/base/fragments/BaseStreamLoadingFragment.java",
"license": "gpl-3.0",
"size": 11770
} | [
"com.github.sv244.torrentstream.Torrent"
] | import com.github.sv244.torrentstream.Torrent; | import com.github.sv244.torrentstream.*; | [
"com.github.sv244"
] | com.github.sv244; | 1,449,656 |
void removeQuotaFromNamespace(String ns) throws Exception {
QuotaSettings removeQuota = QuotaSettingsFactory.removeNamespaceSpaceLimit(ns);
Admin admin = testUtil.getAdmin();
admin.setQuota(removeQuota);
LOG.debug("Space quota settings removed from the namespace ", ns);
} | void removeQuotaFromNamespace(String ns) throws Exception { QuotaSettings removeQuota = QuotaSettingsFactory.removeNamespaceSpaceLimit(ns); Admin admin = testUtil.getAdmin(); admin.setQuota(removeQuota); LOG.debug(STR, ns); } | /**
* Removes the space quota from the given namespace
*/ | Removes the space quota from the given namespace | removeQuotaFromNamespace | {
"repo_name": "mahak/hbase",
"path": "hbase-server/src/test/java/org/apache/hadoop/hbase/quotas/SpaceQuotaHelperForTests.java",
"license": "apache-2.0",
"size": 27369
} | [
"org.apache.hadoop.hbase.client.Admin"
] | import org.apache.hadoop.hbase.client.Admin; | import org.apache.hadoop.hbase.client.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 2,442,650 |
public final byte[] store(long pageAddr, int idx, L row, byte[] rowBytes, boolean needRowBytes)
throws IgniteCheckedException {
int off = offset(idx);
if (rowBytes == null) {
storeByOffset(pageAddr, off, row);
if (needRowBytes)
rowBytes = PageUtils.g... | final byte[] function(long pageAddr, int idx, L row, byte[] rowBytes, boolean needRowBytes) throws IgniteCheckedException { int off = offset(idx); if (rowBytes == null) { storeByOffset(pageAddr, off, row); if (needRowBytes) rowBytes = PageUtils.getBytes(pageAddr, off, getItemSize()); } else putBytes(pageAddr, off, rowB... | /**
* Store the needed info about the row in the page. Leaf and inner pages can store different info.
*
* @param pageAddr Page address.
* @param idx Index.
* @param row Lookup or full row.
* @param rowBytes Row bytes.
* @param needRowBytes If we need stored row bytes.
* @return S... | Store the needed info about the row in the page. Leaf and inner pages can store different info | store | {
"repo_name": "ascherbakoff/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/tree/io/BPlusIO.java",
"license": "apache-2.0",
"size": 14090
} | [
"org.apache.ignite.IgniteCheckedException",
"org.apache.ignite.internal.pagemem.PageUtils"
] | import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.internal.pagemem.PageUtils; | import org.apache.ignite.*; import org.apache.ignite.internal.pagemem.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 479,399 |
Format getFormatFromComponent(final Class<?> componentClass);
/**
* {@code Format} lookup method using the {@code Reader} component
*
* @param readerClass the class of the {@code Reader} component for the
* desired {@code Format} | Format getFormatFromComponent(final Class<?> componentClass); /** * {@code Format} lookup method using the {@code Reader} component * * @param readerClass the class of the {@code Reader} component for the * desired {@code Format} | /**
* Returns the Format compatible with this component class, or null if no
* matching Format can be found.
*/ | Returns the Format compatible with this component class, or null if no matching Format can be found | getFormatFromComponent | {
"repo_name": "scifio/scifio",
"path": "src/main/java/io/scif/services/FormatService.java",
"license": "bsd-2-clause",
"size": 10996
} | [
"io.scif.Format",
"io.scif.Reader"
] | import io.scif.Format; import io.scif.Reader; | import io.scif.*; | [
"io.scif"
] | io.scif; | 1,652,929 |
public static boolean delete(File dir) {
// Log failure by default
return delete(dir, true);
}
| static boolean function(File dir) { return delete(dir, true); } | /**
* Delete the specified directory, including all of its contents and
* sub-directories recursively. Any failure will be logged.
*
* @param dir File object representing the directory to be deleted
* @return <code>true</code> if the deletion was successful
*/ | Delete the specified directory, including all of its contents and sub-directories recursively. Any failure will be logged | delete | {
"repo_name": "IAMTJW/Tomcat-8.5.20",
"path": "tomcat-8.5.20/java/org/apache/catalina/startup/ExpandWar.java",
"license": "apache-2.0",
"size": 15029
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 836,396 |
public double getImpliedVolatility(final double evaluationTime, final AnalyticModel model, final VolatilitySurface.QuotingConvention quotingConvention) {
double lowerBound = Double.MAX_VALUE;
double upperBound = -Double.MAX_VALUE;
for(int periodIndex=0; periodIndex<schedule.getNumberOfPeriods(); periodIndex++)... | double function(final double evaluationTime, final AnalyticModel model, final VolatilitySurface.QuotingConvention quotingConvention) { double lowerBound = Double.MAX_VALUE; double upperBound = -Double.MAX_VALUE; for(int periodIndex=0; periodIndex<schedule.getNumberOfPeriods(); periodIndex++) { final double fixingDate =... | /**
* Returns the value of this cap in terms of an implied volatility (of a flat caplet surface).
*
* @param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.
* @param model The model under which the product is valued.
* @param quotingConvention The quo... | Returns the value of this cap in terms of an implied volatility (of a flat caplet surface) | getImpliedVolatility | {
"repo_name": "finmath/finmath-lib",
"path": "src/main/java8/net/finmath/marketdata/products/Cap.java",
"license": "apache-2.0",
"size": 13804
} | [
"net.finmath.marketdata.model.AnalyticModel",
"net.finmath.marketdata.model.volatilities.CapletVolatilities",
"net.finmath.marketdata.model.volatilities.VolatilitySurface",
"net.finmath.optimizer.GoldenSectionSearch"
] | import net.finmath.marketdata.model.AnalyticModel; import net.finmath.marketdata.model.volatilities.CapletVolatilities; import net.finmath.marketdata.model.volatilities.VolatilitySurface; import net.finmath.optimizer.GoldenSectionSearch; | import net.finmath.marketdata.model.*; import net.finmath.marketdata.model.volatilities.*; import net.finmath.optimizer.*; | [
"net.finmath.marketdata",
"net.finmath.optimizer"
] | net.finmath.marketdata; net.finmath.optimizer; | 1,888,747 |
public static String getPath(Path p) {
return p.toUri().getPath();
} | static String function(Path p) { return p.toUri().getPath(); } | /**
* Return the 'path' component of a Path. In Hadoop, Path is an URI. This
* method returns the 'path' component of a Path's URI: e.g. If a Path is
* <code>hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir</code>,
* this method returns <code>/hbase_trunk/TestTable/compaction.dir</code>.
* ... | Return the 'path' component of a Path. In Hadoop, Path is an URI. This <code>hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir</code>, this method returns <code>/hbase_trunk/TestTable/compaction.dir</code>. This method is useful if you want to print out a Path without qualifying Filesystem instance | getPath | {
"repo_name": "lifeng5042/RStore",
"path": "src/org/apache/hadoop/hbase/util/FSUtils.java",
"license": "gpl-2.0",
"size": 32784
} | [
"org.apache.hadoop.fs.Path"
] | import org.apache.hadoop.fs.Path; | import org.apache.hadoop.fs.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,024,014 |
String createCommandFile() throws ComponentNotReadyException {
try {
if (commandURL != null) {
commandFile = getFile(commandURL);
if (commandFile.exists()) {
return commandFile.getCanonicalPath();
} else {
commandFile.createNewFile();
}
} else {
commandFile = createTempFile(MYSQ... | String createCommandFile() throws ComponentNotReadyException { try { if (commandURL != null) { commandFile = getFile(commandURL); if (commandFile.exists()) { return commandFile.getCanonicalPath(); } else { commandFile.createNewFile(); } } else { commandFile = createTempFile(MYSQL_FILE_NAME_PREFIX, CONTROL_FILE_NAME_SUF... | /**
* Create file that contains LOAD DATA INFILE command and return its name.
*
* @return name of the command file
* @throws ComponentNotReadyException when command file isn't created
*/ | Create file that contains LOAD DATA INFILE command and return its name | createCommandFile | {
"repo_name": "CloverETL/CloverETL-Engine",
"path": "cloveretl.bulkloader/src/org/jetel/component/MysqlDataWriter.java",
"license": "lgpl-2.1",
"size": 49022
} | [
"java.io.IOException",
"org.jetel.exception.ComponentNotReadyException"
] | import java.io.IOException; import org.jetel.exception.ComponentNotReadyException; | import java.io.*; import org.jetel.exception.*; | [
"java.io",
"org.jetel.exception"
] | java.io; org.jetel.exception; | 2,840,736 |
public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation) {
this.accountingDocumentForValidation = accountingDocumentForValidation;
} | void function(AccountingDocument accountingDocumentForValidation) { this.accountingDocumentForValidation = accountingDocumentForValidation; } | /**
* Sets the accountingDocumentForValidation attribute value.
*
* @param accountingDocumentForValidation The accountingDocumentForValidation to set.
*/ | Sets the accountingDocumentForValidation attribute value | setAccountingDocumentForValidation | {
"repo_name": "quikkian-ua-devops/will-financials",
"path": "kfs-core/src/main/java/org/kuali/kfs/fp/document/validation/impl/DisbursementVoucherNonEmployeeTravelCompanyValidation.java",
"license": "agpl-3.0",
"size": 6277
} | [
"org.kuali.kfs.sys.document.AccountingDocument"
] | import org.kuali.kfs.sys.document.AccountingDocument; | import org.kuali.kfs.sys.document.*; | [
"org.kuali.kfs"
] | org.kuali.kfs; | 1,645,448 |
public void deserialize(InputStream is, FiberScheduler scheduler) {
} | void function(InputStream is, FiberScheduler scheduler) { } | /**
* Deserializes and restarts a serialized fiber.
* @param is
* @param scheduler
*/ | Deserializes and restarts a serialized fiber | deserialize | {
"repo_name": "tbrooks8/quasar",
"path": "quasar-core/src/main/java/co/paralleluniverse/fibers/FiberSerializer.java",
"license": "gpl-3.0",
"size": 1578
} | [
"java.io.InputStream"
] | import java.io.InputStream; | import java.io.*; | [
"java.io"
] | java.io; | 86,393 |
private void updateEditor() {
EditorTableModel editorTableModel = (EditorTableModel) editorTable
.getModel();
editorTableModel.fireTableDataChanged();
editorTable.setEnabled(pixelMatrixImageNode != null);
}
private class EditorTableModel extends AbstractTableMod... | void function() { EditorTableModel editorTableModel = (EditorTableModel) editorTable .getModel(); editorTableModel.fireTableDataChanged(); editorTable.setEnabled(pixelMatrixImageNode != null); } private class EditorTableModel extends AbstractTableModel { | /**
* Update editor.
*/ | Update editor | updateEditor | {
"repo_name": "automenta/java_dann",
"path": "src/syncleus/dann/solve/visionworld/node/editor/PixelMatrixImageNodeTableEditor.java",
"license": "agpl-3.0",
"size": 11160
} | [
"javax.swing.table.AbstractTableModel"
] | import javax.swing.table.AbstractTableModel; | import javax.swing.table.*; | [
"javax.swing"
] | javax.swing; | 471,289 |
private void updateName(String documentId, String name) throws DataAccessException {
if(name == null) {
return;
}
// Update the document's name.
String extension = getExtension(name);
try {
getJdbcTemplate().update(SQL_UPDATE_NAME, new Object[] { name, extension, documentId });
}
catch(org.spr... | void function(String documentId, String name) throws DataAccessException { if(name == null) { return; } String extension = getExtension(name); try { getJdbcTemplate().update(SQL_UPDATE_NAME, new Object[] { name, extension, documentId }); } catch(org.springframework.dao.DataAccessException e) { errorExecutingSql(SQL_UPD... | /**
* Updates the name associated with the document or does nothing if the
* name is null. Also, updates the extension for the file.
*
* @param documentId The unique identifier for the document whose name is
* being updated.
*
* @param name The new name for the document with an extension.
*/ | Updates the name associated with the document or does nothing if the name is null. Also, updates the extension for the file | updateName | {
"repo_name": "HaiJiaoXinHeng/server-1",
"path": "src/org/ohmage/query/impl/DocumentQueries.java",
"license": "apache-2.0",
"size": 49677
} | [
"org.ohmage.exception.DataAccessException"
] | import org.ohmage.exception.DataAccessException; | import org.ohmage.exception.*; | [
"org.ohmage.exception"
] | org.ohmage.exception; | 1,819,034 |
default void addLogcatErrorsListener(Consumer<Throwable> handler) {
getLogcatClient().addErrorHandler(handler);
} | default void addLogcatErrorsListener(Consumer<Throwable> handler) { getLogcatClient().addErrorHandler(handler); } | /**
* Adds a new log broadcasting errors handler.
* Several handlers might be assigned to a single server.
* Multiple calls to this method will cause such handler
* to be called multiple times.
*
* @param handler a function, which accepts a single argument, which is the actual exception in... | Adds a new log broadcasting errors handler. Several handlers might be assigned to a single server. Multiple calls to this method will cause such handler to be called multiple times | addLogcatErrorsListener | {
"repo_name": "SrinivasanTarget/java-client",
"path": "src/main/java/io/appium/java_client/android/ListensToLogcatMessages.java",
"license": "apache-2.0",
"size": 5184
} | [
"java.util.function.Consumer"
] | import java.util.function.Consumer; | import java.util.function.*; | [
"java.util"
] | java.util; | 834,788 |
public void setStructureId(CmsUUID structureId) {
m_structureId = structureId;
}
| void function(CmsUUID structureId) { m_structureId = structureId; } | /**
* Sets the structure id for the resource.<p>
*
* @param structureId the new structure id
*/ | Sets the structure id for the resource | setStructureId | {
"repo_name": "ggiudetti/opencms-core",
"path": "src/org/opencms/gwt/shared/CmsResourceStatusRelationBean.java",
"license": "lgpl-2.1",
"size": 5333
} | [
"org.opencms.util.CmsUUID"
] | import org.opencms.util.CmsUUID; | import org.opencms.util.*; | [
"org.opencms.util"
] | org.opencms.util; | 1,140,415 |
public int getIndex(RegularTimePeriod period) {
if (period == null) {
throw new IllegalArgumentException("Null 'period' argument.");
}
TimeSeriesDataItem dummy = new TimeSeriesDataItem(
period, Integer.MIN_VALUE);
return Collections.binarySearch(this.data, ... | int function(RegularTimePeriod period) { if (period == null) { throw new IllegalArgumentException(STR); } TimeSeriesDataItem dummy = new TimeSeriesDataItem( period, Integer.MIN_VALUE); return Collections.binarySearch(this.data, dummy); } | /**
* Returns the index for the item (if any) that corresponds to a time
* period.
*
* @param period the time period (<code>null</code> not permitted).
*
* @return The index.
*/ | Returns the index for the item (if any) that corresponds to a time period | getIndex | {
"repo_name": "opensim-org/opensim-gui",
"path": "Gui/opensim/jfreechart/src/org/jfree/data/time/TimeSeries.java",
"license": "apache-2.0",
"size": 35493
} | [
"java.util.Collections"
] | import java.util.Collections; | import java.util.*; | [
"java.util"
] | java.util; | 1,732,270 |
private NameID createNameID(String format, String value) {
return createNameID(null, format, value);
} | NameID function(String format, String value) { return createNameID(null, format, value); } | /**
* Creates the name id.
*
* @param format the format
* @param value the value
* @return the name id
*/ | Creates the name id | createNameID | {
"repo_name": "AurionProject/Aurion",
"path": "Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/callback/openSAML/OpenSAML2ComponentBuilder.java",
"license": "bsd-3-clause",
"size": 33078
} | [
"org.opensaml.saml2.core.NameID"
] | import org.opensaml.saml2.core.NameID; | import org.opensaml.saml2.core.*; | [
"org.opensaml.saml2"
] | org.opensaml.saml2; | 2,262,387 |
@SuppressWarnings("unchecked")
public void registerListenerContainer(NatsListenerEndpoint endpoint, NatsListenerContainerFactory factory,
boolean startImmediately) {
Assert.notNull(endpoint, "Endpoint must not be null");
Assert.notNull(factory, "Factory must not be null");
String id = endpoint.ge... | @SuppressWarnings(STR) void function(NatsListenerEndpoint endpoint, NatsListenerContainerFactory factory, boolean startImmediately) { Assert.notNull(endpoint, STR); Assert.notNull(factory, STR); String id = endpoint.getId(); Assert.hasText(id, STR); synchronized (this.listenerContainers) { Assert.state(!this.listenerCo... | /**
* Create a message listener container for the given {@link NatsListenerEndpoint}.
* <p>This create the necessary infrastructure to honor that endpoint
* with regards to its configuration.
* <p>The {@code startImmediately} flag determines if the container should be
* started immediately.
* @param endpoin... | Create a message listener container for the given <code>NatsListenerEndpoint</code>. This create the necessary infrastructure to honor that endpoint with regards to its configuration. The startImmediately flag determines if the container should be started immediately | registerListenerContainer | {
"repo_name": "dstrelec/nats",
"path": "nats-enabler/src/main/java/dstrelec/nats/config/NatsListenerEndpointRegistry.java",
"license": "apache-2.0",
"size": 10582
} | [
"java.util.ArrayList",
"java.util.List",
"org.springframework.util.Assert",
"org.springframework.util.StringUtils"
] | import java.util.ArrayList; import java.util.List; import org.springframework.util.Assert; import org.springframework.util.StringUtils; | import java.util.*; import org.springframework.util.*; | [
"java.util",
"org.springframework.util"
] | java.util; org.springframework.util; | 1,675,291 |
private void initializeView() {
mMainView = new FrameLayout(mActivity);
if (!BuildConfig.IS_VIVALDI)
mMainView.setBackgroundColor(SemanticColorUtils.getDefaultBgColor(mActivity));
FrameLayout.LayoutParams listParams = new FrameLayout.LayoutParams(
FrameLayout.LayoutP... | void function() { mMainView = new FrameLayout(mActivity); if (!BuildConfig.IS_VIVALDI) mMainView.setBackgroundColor(SemanticColorUtils.getDefaultBgColor(mActivity)); FrameLayout.LayoutParams listParams = new FrameLayout.LayoutParams( FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT); listPar... | /**
* Creates the top level layout for download home including the toolbar.
* TODO(crbug.com/880468) : Investigate if it is better to do in XML.
*/ | Creates the top level layout for download home including the toolbar. TODO(crbug.com/880468) : Investigate if it is better to do in XML | initializeView | {
"repo_name": "ric2b/Vivaldi-browser",
"path": "chromium/chrome/browser/download/internal/android/java/src/org/chromium/chrome/browser/download/home/DownloadManagerCoordinatorImpl.java",
"license": "bsd-3-clause",
"size": 8705
} | [
"android.view.Gravity",
"android.widget.FrameLayout",
"org.chromium.build.BuildConfig",
"org.chromium.components.browser_ui.styles.SemanticColorUtils"
] | import android.view.Gravity; import android.widget.FrameLayout; import org.chromium.build.BuildConfig; import org.chromium.components.browser_ui.styles.SemanticColorUtils; | import android.view.*; import android.widget.*; import org.chromium.build.*; import org.chromium.components.browser_ui.styles.*; | [
"android.view",
"android.widget",
"org.chromium.build",
"org.chromium.components"
] | android.view; android.widget; org.chromium.build; org.chromium.components; | 1,075,522 |
@Nullable public String className() {
return clsName;
} | @Nullable String function() { return clsName; } | /**
* Gets queried class name.
* <p>
* Applicable for {@code SQL} and @{code full text} queries.
*
* @return Queried class name.
*/ | Gets queried class name. Applicable for SQL and @{code full text} queries | className | {
"repo_name": "nizhikov/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/events/CacheQueryReadEvent.java",
"license": "apache-2.0",
"size": 8940
} | [
"org.jetbrains.annotations.Nullable"
] | import org.jetbrains.annotations.Nullable; | import org.jetbrains.annotations.*; | [
"org.jetbrains.annotations"
] | org.jetbrains.annotations; | 413,257 |
@Override
public void notifyChanged(Notification notification)
{
updateChildren(notification);
switch (notification.getFeatureID(LocationPredicate.class))
{
case PredicatesPackage.LOCATION_PREDICATE__PATTERN:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifie... | void function(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(LocationPredicate.class)) { case PredicatesPackage.LOCATION_PREDICATE__PATTERN: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notif... | /**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>. | notifyChanged | {
"repo_name": "peterkir/org.eclipse.oomph",
"path": "plugins/org.eclipse.oomph.predicates.edit/src/org/eclipse/oomph/predicates/provider/LocationPredicateItemProvider.java",
"license": "epl-1.0",
"size": 4449
} | [
"org.eclipse.emf.common.notify.Notification",
"org.eclipse.emf.edit.provider.ViewerNotification",
"org.eclipse.oomph.predicates.LocationPredicate",
"org.eclipse.oomph.predicates.PredicatesPackage"
] | import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.edit.provider.ViewerNotification; import org.eclipse.oomph.predicates.LocationPredicate; import org.eclipse.oomph.predicates.PredicatesPackage; | import org.eclipse.emf.common.notify.*; import org.eclipse.emf.edit.provider.*; import org.eclipse.oomph.predicates.*; | [
"org.eclipse.emf",
"org.eclipse.oomph"
] | org.eclipse.emf; org.eclipse.oomph; | 1,483,304 |
public UpdateBuilder with(Object iri) {
if (iri == null) {
with = null;
}
Node n = makeNode(iri);
if (n.isLiteral()) {
throw new IllegalArgumentException(String.format("IRI '%s' must not be a literal", iri));
}
with = n;
return this;
... | UpdateBuilder function(Object iri) { if (iri == null) { with = null; } Node n = makeNode(iri); if (n.isLiteral()) { throw new IllegalArgumentException(String.format(STR, iri)); } with = n; return this; } | /**
* Specify the graph for all inserts and deletes.
*
*
* @see Quad#defaultGraphNodeGenerated
* @param iri the IRI for the graph to use.
* @return this builder for chaining.
*/ | Specify the graph for all inserts and deletes | with | {
"repo_name": "apache/jena",
"path": "jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/UpdateBuilder.java",
"license": "apache-2.0",
"size": 37124
} | [
"org.apache.jena.graph.Node"
] | import org.apache.jena.graph.Node; | import org.apache.jena.graph.*; | [
"org.apache.jena"
] | org.apache.jena; | 323,392 |
List<Long> count = jdbcTemplate.query("" +
"select count(*) from sys.systriggers t " +
"join sys.sysschemas s on s.schemaid=t.schemaid " +
"where triggername=? and schemaname=CURRENT SCHEMA", triggerName.toUpperCase());
return count.get(0);
} | List<Long> count = jdbcTemplate.query(STRselect count(*) from sys.systriggers t STRjoin sys.sysschemas s on s.schemaid=t.schemaid STRwhere triggername=? and schemaname=CURRENT SCHEMA", triggerName.toUpperCase()); return count.get(0); } | /**
* Count number of defined triggers with the specified name.
*/ | Count number of defined triggers with the specified name | count | {
"repo_name": "splicemachine/spliceengine",
"path": "splice_machine/src/test/java/com/splicemachine/test_dao/TriggerDAO.java",
"license": "agpl-3.0",
"size": 3255
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,092,656 |
public SearchSourceBuilder fetchSource(@Nullable String include, @Nullable String exclude) {
return fetchSource(include == null ? Strings.EMPTY_ARRAY : new String[]{include}, include == null ? Strings.EMPTY_ARRAY : new String[]{exclude});
} | SearchSourceBuilder function(@Nullable String include, @Nullable String exclude) { return fetchSource(include == null ? Strings.EMPTY_ARRAY : new String[]{include}, include == null ? Strings.EMPTY_ARRAY : new String[]{exclude}); } | /**
* Indicate that _source should be returned with every hit, with an "include" and/or "exclude" set which can include simple wildcard
* elements.
*
* @param include An optional include (optionally wildcarded) pattern to filter the returned _source
* @param exclude An optional exclude (optiona... | Indicate that _source should be returned with every hit, with an "include" and/or "exclude" set which can include simple wildcard elements | fetchSource | {
"repo_name": "exercitussolus/yolo",
"path": "src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java",
"license": "agpl-3.0",
"size": 27772
} | [
"org.elasticsearch.common.Nullable",
"org.elasticsearch.common.Strings"
] | import org.elasticsearch.common.Nullable; import org.elasticsearch.common.Strings; | import org.elasticsearch.common.*; | [
"org.elasticsearch.common"
] | org.elasticsearch.common; | 967,180 |
protected void createConfigServerService() {
if (configServerService == null) {
//create a new one
ccServerUrl = Constants.getServerUrl(ccServerUrl);
Assert.hasLength(ccServerUrl, "property 'ccServerUrl' is blank.");
proxy = new OperationTimeoutMc... | void function() { if (configServerService == null) { ccServerUrl = Constants.getServerUrl(ccServerUrl); Assert.hasLength(ccServerUrl, STR); proxy = new OperationTimeoutMcpackRpcProxyFactoryBean(); proxy.setServiceUrl(ccServerUrl); proxy.setServiceInterface(ExtConfigServerService.class); proxy.setConnectionTimeout(conne... | /**
* create a new {@link ConfigServerService} instance by proxy.
*/ | create a new <code>ConfigServerService</code> instance by proxy | createConfigServerService | {
"repo_name": "sdgdsffdsfff/configcenter-client",
"path": "src/main/java/com/baidu/cc/spring/ConfigCenterPropertyPlaceholderConfigurer.java",
"license": "apache-2.0",
"size": 19617
} | [
"com.baidu.bjf.remoting.mcpack.OperationTimeoutMcpackRpcProxyFactoryBean",
"com.baidu.cc.Constants",
"com.baidu.cc.interfaces.ExtConfigServerService",
"org.springframework.util.Assert"
] | import com.baidu.bjf.remoting.mcpack.OperationTimeoutMcpackRpcProxyFactoryBean; import com.baidu.cc.Constants; import com.baidu.cc.interfaces.ExtConfigServerService; import org.springframework.util.Assert; | import com.baidu.bjf.remoting.mcpack.*; import com.baidu.cc.*; import com.baidu.cc.interfaces.*; import org.springframework.util.*; | [
"com.baidu.bjf",
"com.baidu.cc",
"org.springframework.util"
] | com.baidu.bjf; com.baidu.cc; org.springframework.util; | 871,223 |
public Set<HostCpu> getHostCPUs(Connection c) throws
BadServerResponse,
XenAPIException,
XmlRpcException {
String method_call = "host.get_host_CPUs";
String session = c.getSessionReference();
Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(t... | Set<HostCpu> function(Connection c) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)}; Map response = c.dispatch(method_call, method_params); Object res... | /**
* Get the host_CPUs field of the given host.
*
* @return value of the field
*/ | Get the host_CPUs field of the given host | getHostCPUs | {
"repo_name": "cinderella/incubator-cloudstack",
"path": "deps/XenServerJava/com/xensource/xenapi/Host.java",
"license": "apache-2.0",
"size": 105838
} | [
"com.xensource.xenapi.Types",
"java.util.Map",
"java.util.Set",
"org.apache.xmlrpc.XmlRpcException"
] | import com.xensource.xenapi.Types; import java.util.Map; import java.util.Set; import org.apache.xmlrpc.XmlRpcException; | import com.xensource.xenapi.*; import java.util.*; import org.apache.xmlrpc.*; | [
"com.xensource.xenapi",
"java.util",
"org.apache.xmlrpc"
] | com.xensource.xenapi; java.util; org.apache.xmlrpc; | 625,195 |
@Test
public void testRemoveEventListenerNullRegistration()
{
assertFalse("Wrong result", list.removeEventListener(null));
} | void function() { assertFalse(STR, list.removeEventListener(null)); } | /**
* Tests that removeEventListener() can handle a null registration object.
*/ | Tests that removeEventListener() can handle a null registration object | testRemoveEventListenerNullRegistration | {
"repo_name": "mohanaraosv/commons-configuration",
"path": "src/test/java/org/apache/commons/configuration2/event/TestEventListenerList.java",
"license": "apache-2.0",
"size": 20553
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 2,555,612 |
public final synchronized VetoableChangeListener[] getVetoableChangeListeners(String propertyName) {
if (vetoSupport == null) {
return new VetoableChangeListener[0];
}
return vetoSupport.getVetoableChangeListeners(propertyName);
}
/**
* Creates and returns... | final synchronized VetoableChangeListener[] function(String propertyName) { if (vetoSupport == null) { return new VetoableChangeListener[0]; } return vetoSupport.getVetoableChangeListeners(propertyName); } /** * Creates and returns a PropertyChangeSupport for the given bean. * Invoked by the first call to {@link #addPr... | /**
* Returns an array of all the listeners which have been associated
* with the named property.
*
* @param propertyName the name of the property to lookup listeners
* @return all of the {@code VetoableChangeListeners} associated with
* the named property or an empty array... | Returns an array of all the listeners which have been associated with the named property | getVetoableChangeListeners | {
"repo_name": "rosariopfernandes/systembuilderlib",
"path": "src/com/jgoodies/common/bean/Bean.java",
"license": "apache-2.0",
"size": 33495
} | [
"java.beans.PropertyChangeSupport",
"java.beans.VetoableChangeListener"
] | import java.beans.PropertyChangeSupport; import java.beans.VetoableChangeListener; | import java.beans.*; | [
"java.beans"
] | java.beans; | 1,942,477 |
private static boolean isApplicable(Method method, Class[] classes)
{
Class[] methodArgs = method.getParameterTypes();
if (methodArgs.length > classes.length)
{
// if there's just one more methodArg than class arg
// and the last methodArg is an array, then treat... | static boolean function(Method method, Class[] classes) { Class[] methodArgs = method.getParameterTypes(); if (methodArgs.length > classes.length) { if (methodArgs.length == classes.length + 1 && methodArgs[methodArgs.length - 1].isArray()) { for (int i = 0; i < classes.length; i++) { if (!isConvertible(methodArgs[i], ... | /**
* Returns true if the supplied method is applicable to actual
* argument types.
*
* @param method method that will be called
* @param classes arguments to method
* @return true if method is applicable to arguments
*/ | Returns true if the supplied method is applicable to actual argument types | isApplicable | {
"repo_name": "diydyq/velocity-engine",
"path": "velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/MethodMap.java",
"license": "apache-2.0",
"size": 14272
} | [
"java.lang.reflect.Method"
] | import java.lang.reflect.Method; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 650,567 |
private Dimension[] parseResolutions(Pad pad) {
Caps caps = pad.getCaps();
format = findPreferredFormat(caps);
LOG.debug("Best format is {}", format);
Dimension r = null;
Structure s = null;
String mime = null;
final int n = caps.size();
int i = 0;
Map<String, Dimension> map = ... | Dimension[] function(Pad pad) { Caps caps = pad.getCaps(); format = findPreferredFormat(caps); LOG.debug(STR, format); Dimension r = null; Structure s = null; String mime = null; final int n = caps.size(); int i = 0; Map<String, Dimension> map = new HashMap<String, Dimension>(); do { s = caps.getStructure(i++); LOG.deb... | /**
* Use GStreamer to get all possible resolutions.
*
* @param pad the pad to get resolutions from
* @return Array of resolutions supported by device connected with pad
*/ | Use GStreamer to get all possible resolutions | parseResolutions | {
"repo_name": "sarxos/webcam-capture",
"path": "webcam-capture-drivers/driver-gstreamer/src/main/java/com/github/sarxos/webcam/ds/gstreamer/GStreamerDevice.java",
"license": "mit",
"size": 9886
} | [
"java.awt.Dimension",
"java.util.ArrayList",
"java.util.HashMap",
"java.util.Map",
"org.gstreamer.Caps",
"org.gstreamer.Pad",
"org.gstreamer.Structure"
] | import java.awt.Dimension; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import org.gstreamer.Caps; import org.gstreamer.Pad; import org.gstreamer.Structure; | import java.awt.*; import java.util.*; import org.gstreamer.*; | [
"java.awt",
"java.util",
"org.gstreamer"
] | java.awt; java.util; org.gstreamer; | 1,086,583 |
@Override
public ResourceLocator getResourceLocator() {
return ((IChildCreationExtender) adapterFactory).getResourceLocator();
} | ResourceLocator function() { return ((IChildCreationExtender) adapterFactory).getResourceLocator(); } | /**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | Return the resource locator for this item provider's resources. | getResourceLocator | {
"repo_name": "kopl/SPLevo",
"path": "VPM/org.splevo.vpm.edit/src-gen/org/splevo/vpm/variability/provider/IdentifierItemProvider.java",
"license": "epl-1.0",
"size": 5346
} | [
"org.eclipse.emf.common.util.ResourceLocator",
"org.eclipse.emf.edit.provider.IChildCreationExtender"
] | import org.eclipse.emf.common.util.ResourceLocator; import org.eclipse.emf.edit.provider.IChildCreationExtender; | import org.eclipse.emf.common.util.*; import org.eclipse.emf.edit.provider.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,848,749 |
public List<VpnGatewayTunnelingProtocol> vpnProtocols() {
return this.vpnProtocols;
} | List<VpnGatewayTunnelingProtocol> function() { return this.vpnProtocols; } | /**
* Get vPN protocols for the VpnServerConfiguration.
*
* @return the vpnProtocols value
*/ | Get vPN protocols for the VpnServerConfiguration | vpnProtocols | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/network/v2020_06_01/implementation/VpnServerConfigurationInner.java",
"license": "mit",
"size": 15081
} | [
"com.microsoft.azure.management.network.v2020_06_01.VpnGatewayTunnelingProtocol",
"java.util.List"
] | import com.microsoft.azure.management.network.v2020_06_01.VpnGatewayTunnelingProtocol; import java.util.List; | import com.microsoft.azure.management.network.v2020_06_01.*; import java.util.*; | [
"com.microsoft.azure",
"java.util"
] | com.microsoft.azure; java.util; | 2,907,070 |
public int showAudioDevSelector(List<String> deviceNames);
| int function(List<String> deviceNames); | /**
* Returns index of selected device name
*
* @param deviceNames
* @return
*/ | Returns index of selected device name | showAudioDevSelector | {
"repo_name": "kinokocchi/Ttada",
"path": "parent/core/src/main/java/info/pinlab/ttada/core/view/PlayerTopView.java",
"license": "mit",
"size": 1275
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 308,664 |
public void setCompression(int compression)
{
try {
isSessionAlive();
float f = PixelsServicesFactory.getCompressionQuality(compression);
rndDef.setCompression(f);
servant.setCompressionLevel(f);
this.compression = compression;
Iterator<RenderingControl> i = slaves.iterator();
while (i.hasNext(... | void function(int compression) { try { isSessionAlive(); float f = PixelsServicesFactory.getCompressionQuality(compression); rndDef.setCompression(f); servant.setCompressionLevel(f); this.compression = compression; Iterator<RenderingControl> i = slaves.iterator(); while (i.hasNext()) i.next().setCompression(compression... | /**
* Implemented as specified by {@link RenderingControl}.
* @see RenderingControl#setCompression(int)
*/ | Implemented as specified by <code>RenderingControl</code> | setCompression | {
"repo_name": "stelfrich/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java",
"license": "gpl-2.0",
"size": 64513
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 1,746,363 |
public static <T> List<T> bagToList(final Bag bag) {
if ( null == bag ) {
throw new IllegalArgumentException( "Parameter bag cannot be null" );
}
final ArrayList<T> ret = new ArrayList<T>();
for (final Object o : bag) {
ret.add( (T) o );
}
return ret;
}
| static <T> List<T> function(final Bag bag) { if ( null == bag ) { throw new IllegalArgumentException( STR ); } final ArrayList<T> ret = new ArrayList<T>(); for (final Object o : bag) { ret.add( (T) o ); } return ret; } | /**
* Typesafely creates a {@link java.util.List} from the specified Mason <code>Bag</code>.
*
* <p>
* Usage:
* </p>
*
* <pre>
* CrisisMasonUtils.<Contract> bagToList( myMasonBagWithContract )
* </pre>
*
* @param bag the bag instance to convert; cannot be <code>null</code>
*... | Typesafely creates a <code>java.util.List</code> from the specified Mason <code>Bag</code>. Usage: <code> CrisisMasonUtils.<Contract> bagToList( myMasonBagWithContract ) </code> | bagToList | {
"repo_name": "crisis-economics/CRISIS",
"path": "CRISIS/src/eu/crisis_economics/abm/CrisisMasonUtils.java",
"license": "gpl-3.0",
"size": 2919
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,070,024 |
static boolean isValid(final List<MathTransform> steps) {
boolean wasLinear = false;
for (final MathTransform step : steps) {
if (step instanceof LinearTransform) {
if (wasLinear) return false;
wasLinear = true;
} else {
wasLine... | static boolean isValid(final List<MathTransform> steps) { boolean wasLinear = false; for (final MathTransform step : steps) { if (step instanceof LinearTransform) { if (wasLinear) return false; wasLinear = true; } else { wasLinear = false; } } return true; } | /**
* Makes sure that the given list does not contains two consecutive linear transforms
* (because their matrices should have been multiplied together).
* This is used for assertion purposes only.
*/ | Makes sure that the given list does not contains two consecutive linear transforms (because their matrices should have been multiplied together). This is used for assertion purposes only | isValid | {
"repo_name": "apache/sis",
"path": "core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/transform/MathTransforms.java",
"license": "apache-2.0",
"size": 37611
} | [
"java.util.List",
"org.opengis.referencing.operation.MathTransform"
] | import java.util.List; import org.opengis.referencing.operation.MathTransform; | import java.util.*; import org.opengis.referencing.operation.*; | [
"java.util",
"org.opengis.referencing"
] | java.util; org.opengis.referencing; | 237,669 |
public void clearValues() {
setData(new ListGridRecord[] {});
idByValue.clear();
newRows = 0;
} | void function() { setData(new ListGridRecord[] {}); idByValue.clear(); newRows = 0; } | /**
* Empty the grid, thereby removing all rows. It does not clear the header though.
*/ | Empty the grid, thereby removing all rows. It does not clear the header though | clearValues | {
"repo_name": "geomajas/geomajas-project-client-gwt",
"path": "client/src/main/java/org/geomajas/gwt/client/widget/AttributeListGrid.java",
"license": "agpl-3.0",
"size": 15713
} | [
"com.smartgwt.client.widgets.grid.ListGridRecord"
] | import com.smartgwt.client.widgets.grid.ListGridRecord; | import com.smartgwt.client.widgets.grid.*; | [
"com.smartgwt.client"
] | com.smartgwt.client; | 197,437 |
Set<ClientProxyMembershipID> getProxyIDs(Set mixedDurableAndNonDurableIDs) {
Set<ClientProxyMembershipID> result = ConcurrentHashMap.newKeySet();
for (Object id : mixedDurableAndNonDurableIDs) {
if (id instanceof String) {
CacheClientProxy clientProxy = getClientProxy((String) id, true);
... | Set<ClientProxyMembershipID> getProxyIDs(Set mixedDurableAndNonDurableIDs) { Set<ClientProxyMembershipID> result = ConcurrentHashMap.newKeySet(); for (Object id : mixedDurableAndNonDurableIDs) { if (id instanceof String) { CacheClientProxy clientProxy = getClientProxy((String) id, true); if (clientProxy != null) { resu... | /**
* processes the given collection of durable and non-durable client identifiers, returning a
* collection of non-durable identifiers of clients connected to this VM
*/ | processes the given collection of durable and non-durable client identifiers, returning a collection of non-durable identifiers of clients connected to this VM | getProxyIDs | {
"repo_name": "davinash/geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CacheClientNotifier.java",
"license": "apache-2.0",
"size": 82063
} | [
"java.util.Set",
"java.util.concurrent.ConcurrentHashMap"
] | import java.util.Set; import java.util.concurrent.ConcurrentHashMap; | import java.util.*; import java.util.concurrent.*; | [
"java.util"
] | java.util; | 581,059 |
HdfsFileStatus getFileInfo(String src) throws IOException {
if (isPermissionEnabled) {
checkTraverse(src);
}
return dir.getFileInfo(src);
} | HdfsFileStatus getFileInfo(String src) throws IOException { if (isPermissionEnabled) { checkTraverse(src); } return dir.getFileInfo(src); } | /** Get the file info for a specific file.
* @param src The string representation of the path to the file
* @throws IOException if permission to access file is denied by the system
* @return object containing information regarding the file
* or null if file not found
*/ | Get the file info for a specific file | getFileInfo | {
"repo_name": "andy8788/hadoop-hdfs",
"path": "src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java",
"license": "apache-2.0",
"size": 214042
} | [
"java.io.IOException",
"org.apache.hadoop.hdfs.protocol.HdfsFileStatus"
] | import java.io.IOException; import org.apache.hadoop.hdfs.protocol.HdfsFileStatus; | import java.io.*; import org.apache.hadoop.hdfs.protocol.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 1,530,272 |
public Set<Resource<L>> getRootResources() {
graphLockRead.lock();
try {
Set<Resource<L>> roots = new HashSet<>();
Set<Resource<L>> allResources = resourcesGraph.vertexSet();
for (Resource<L> resource : allResources) {
if (neighborIndex.predecessor... | Set<Resource<L>> function() { graphLockRead.lock(); try { Set<Resource<L>> roots = new HashSet<>(); Set<Resource<L>> allResources = resourcesGraph.vertexSet(); for (Resource<L> resource : allResources) { if (neighborIndex.predecessorsOf(resource).isEmpty()) { roots.add(resource); } } return Collections.unmodifiableSet(... | /**
* Returns an immutable {@link Set} of {@link Resource}s that are at the top of the hierarchy (that is, they do not
* have a parent).
*
* @return a {@link Set} of root {@link Resource}s
*/ | Returns an immutable <code>Set</code> of <code>Resource</code>s that are at the top of the hierarchy (that is, they do not have a parent) | getRootResources | {
"repo_name": "jpkrohling/hawkular-agent",
"path": "hawkular-wildfly-agent/src/main/java/org/hawkular/agent/monitor/inventory/ResourceManager.java",
"license": "apache-2.0",
"size": 19597
} | [
"java.util.Collections",
"java.util.HashSet",
"java.util.Set"
] | import java.util.Collections; import java.util.HashSet; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,144,166 |
public static void saveLibraryRepositories() {
if (libraryRepositories == null || libraryRepositories.size() == 0) {
return;
}
XMLMemento memento = XMLMemento.createWriteRoot(LIBRARY_REPOSITORIES);
if (memento != null) {
memento.putBoolean(CACHE_USE, cacheUse)... | static void function() { if (libraryRepositories == null libraryRepositories.size() == 0) { return; } XMLMemento memento = XMLMemento.createWriteRoot(LIBRARY_REPOSITORIES); if (memento != null) { memento.putBoolean(CACHE_USE, cacheUse); Writer writer = null; try { writer = new StringWriter(); for (LibraryRepository rep... | /**
* Save Plugin to set the library group.<br/>
*/ | Save Plugin to set the library group | saveLibraryRepositories | {
"repo_name": "azkaoru/migration-tool",
"path": "src/tubame.wsearch/src/tubame/wsearch/Activator.java",
"license": "apache-2.0",
"size": 56325
} | [
"java.io.IOException",
"java.io.StringWriter",
"java.io.Writer",
"org.eclipse.ui.IMemento",
"org.eclipse.ui.XMLMemento"
] | import java.io.IOException; import java.io.StringWriter; import java.io.Writer; import org.eclipse.ui.IMemento; import org.eclipse.ui.XMLMemento; | import java.io.*; import org.eclipse.ui.*; | [
"java.io",
"org.eclipse.ui"
] | java.io; org.eclipse.ui; | 448,118 |
public void setBase(ScaleTwoDecimal base) {
this.base = base;
} | void function(ScaleTwoDecimal base) { this.base = base; } | /**
* Setter for property base.
*
* @param base New value of property base.
*/ | Setter for property base | setBase | {
"repo_name": "blackcathacker/kc.preclean",
"path": "coeus-code/src/main/java/org/kuali/coeus/s2sgen/impl/budget/IndirectCostDetailsDto.java",
"license": "apache-2.0",
"size": 2960
} | [
"org.kuali.coeus.sys.api.model.ScaleTwoDecimal"
] | import org.kuali.coeus.sys.api.model.ScaleTwoDecimal; | import org.kuali.coeus.sys.api.model.*; | [
"org.kuali.coeus"
] | org.kuali.coeus; | 769,030 |
public Grid2D backproject(Grid2D sino, int[] recoSize, double[] spacing)
{
Grid2D result = new Grid2D(recoSize[0], recoSize[1]);
result.setSpacing(spacing[0], spacing[1]);
for(int p = 0; p < numProjs; p++)
{
//First, compute the rotation angle beta and pre-compute cos(beta), sin(beta)
float beta = ... | Grid2D function(Grid2D sino, int[] recoSize, double[] spacing) { Grid2D result = new Grid2D(recoSize[0], recoSize[1]); result.setSpacing(spacing[0], spacing[1]); for(int p = 0; p < numProjs; p++) { float beta = (float) (betaIncrement * p); float cosBeta = (float) Math.cos(beta); float sinBeta = (float) Math.sin(beta); ... | /**
* A pixel driven backprojection algorithm. Cosine, Redundancy and Ramp filters need to be applied separately beforehand
* @param sino the filtered sinogram
* @param recoSize the dimension of the output image
* @param spacing the spacing of the output image
* @return the reconstruction
*/ | A pixel driven backprojection algorithm. Cosine, Redundancy and Ramp filters need to be applied separately beforehand | backproject | {
"repo_name": "PhilippSchlieper/CONRAD",
"path": "src/edu/stanford/rsl/tutorial/dmip/DMIP_FanBeamBackProjector2D.java",
"license": "gpl-3.0",
"size": 11178
} | [
"edu.stanford.rsl.conrad.data.numeric.Grid1D",
"edu.stanford.rsl.conrad.data.numeric.Grid2D",
"edu.stanford.rsl.conrad.data.numeric.InterpolationOperators",
"edu.stanford.rsl.conrad.data.numeric.NumericPointwiseOperators",
"edu.stanford.rsl.conrad.geometry.shapes.simple.PointND",
"edu.stanford.rsl.conrad.... | import edu.stanford.rsl.conrad.data.numeric.Grid1D; import edu.stanford.rsl.conrad.data.numeric.Grid2D; import edu.stanford.rsl.conrad.data.numeric.InterpolationOperators; import edu.stanford.rsl.conrad.data.numeric.NumericPointwiseOperators; import edu.stanford.rsl.conrad.geometry.shapes.simple.PointND; import edu.sta... | import edu.stanford.rsl.conrad.data.numeric.*; import edu.stanford.rsl.conrad.geometry.shapes.simple.*; import edu.stanford.rsl.conrad.numerics.*; | [
"edu.stanford.rsl"
] | edu.stanford.rsl; | 608,594 |
public Uni<List<generated.mutiny.reactive.regular.tables.pojos.Something>> findManyBySomecustomjsonobject(Collection<SomeJsonPojo> values) {
return findManyByCondition(Something.SOMETHING.SOMECUSTOMJSONOBJECT.in(values));
} | Uni<List<generated.mutiny.reactive.regular.tables.pojos.Something>> function(Collection<SomeJsonPojo> values) { return findManyByCondition(Something.SOMETHING.SOMECUSTOMJSONOBJECT.in(values)); } | /**
* Find records that have <code>someCustomJsonObject IN (values)</code>
* asynchronously
*/ | Find records that have <code>someCustomJsonObject IN (values)</code> asynchronously | findManyBySomecustomjsonobject | {
"repo_name": "jklingsporn/vertx-jooq",
"path": "vertx-jooq-generate/src/test/java/generated/mutiny/reactive/regular/tables/daos/SomethingDao.java",
"license": "mit",
"size": 15190
} | [
"io.github.jklingsporn.vertx.jooq.generate.converter.SomeJsonPojo",
"io.smallrye.mutiny.Uni",
"java.util.Collection",
"java.util.List"
] | import io.github.jklingsporn.vertx.jooq.generate.converter.SomeJsonPojo; import io.smallrye.mutiny.Uni; import java.util.Collection; import java.util.List; | import io.github.jklingsporn.vertx.jooq.generate.converter.*; import io.smallrye.mutiny.*; import java.util.*; | [
"io.github.jklingsporn",
"io.smallrye.mutiny",
"java.util"
] | io.github.jklingsporn; io.smallrye.mutiny; java.util; | 1,190,815 |
public static boolean isOnConstructor(DetailAST blockComment) {
return isOnPlainToken(blockComment, TokenTypes.CTOR_DEF, TokenTypes.IDENT)
|| isOnTokenWithModifiers(blockComment, TokenTypes.CTOR_DEF)
|| isOnTokenWithAnnotation(blockComment, TokenTypes.CTOR_DEF);
} | static boolean function(DetailAST blockComment) { return isOnPlainToken(blockComment, TokenTypes.CTOR_DEF, TokenTypes.IDENT) isOnTokenWithModifiers(blockComment, TokenTypes.CTOR_DEF) isOnTokenWithAnnotation(blockComment, TokenTypes.CTOR_DEF); } | /**
* Node is on constructor.
* @param blockComment DetailAST
* @return true if node is before constructor
*/ | Node is on constructor | isOnConstructor | {
"repo_name": "baratali/checkstyle",
"path": "src/main/java/com/puppycrawl/tools/checkstyle/utils/BlockCommentPosition.java",
"license": "lgpl-2.1",
"size": 9463
} | [
"com.puppycrawl.tools.checkstyle.api.DetailAST",
"com.puppycrawl.tools.checkstyle.api.TokenTypes"
] | import com.puppycrawl.tools.checkstyle.api.DetailAST; import com.puppycrawl.tools.checkstyle.api.TokenTypes; | import com.puppycrawl.tools.checkstyle.api.*; | [
"com.puppycrawl.tools"
] | com.puppycrawl.tools; | 1,052,782 |
public boolean isDateInInterval(Date date) {
final int dayOfWeek = DateUtil.getDayOfWeek(date);
boolean isInInterval = false;
if (getNumberOfDays() == 1) {
if (mStartDay == dayOfWeek) {
isInInterval = true;
}
} else {
if (dayOfWeek ... | boolean function(Date date) { final int dayOfWeek = DateUtil.getDayOfWeek(date); boolean isInInterval = false; if (getNumberOfDays() == 1) { if (mStartDay == dayOfWeek) { isInInterval = true; } } else { if (dayOfWeek >= mStartDay && dayOfWeek <= mEndDay) { isInInterval = true; } } return isInInterval; } | /**
* checks if the date is in open times interval
*
* @param date date to check
* @return true if it is in interval
*/ | checks if the date is in open times interval | isDateInInterval | {
"repo_name": "Berlin-Vegan/berlin-vegan-guide",
"path": "app/src/main/java/org/berlin_vegan/bvapp/data/OpeningHoursInterval.java",
"license": "gpl-2.0",
"size": 3102
} | [
"java.util.Date",
"org.berlin_vegan.bvapp.helpers.DateUtil"
] | import java.util.Date; import org.berlin_vegan.bvapp.helpers.DateUtil; | import java.util.*; import org.berlin_vegan.bvapp.helpers.*; | [
"java.util",
"org.berlin_vegan.bvapp"
] | java.util; org.berlin_vegan.bvapp; | 927,880 |
public synchronized void toRCSString(StringBuffer s, String EOL)
{
Iterator i = deltas_.iterator();
while (i.hasNext())
{
((Delta) i.next()).toRCSString(s, EOL);
}
} | synchronized void function(StringBuffer s, String EOL) { Iterator i = deltas_.iterator(); while (i.hasNext()) { ((Delta) i.next()).toRCSString(s, EOL); } } | /**
* Converts this revision into its RCS style string representation.
*
* @param s
* a {@link StringBuffer StringBuffer} to which the string
* representation will be appended.
* @param EOL
* the string to use as line separator.
*/ | Converts this revision into its RCS style string representation | toRCSString | {
"repo_name": "eemirtekin/Sakai-10.6-TR",
"path": "rwiki/rwiki-util/jrcs/src/java/org/apache/commons/jrcs/diff/Revision.java",
"license": "apache-2.0",
"size": 7351
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 2,357,778 |
public void flipUV(boolean u, boolean v) {
if (faceUVCoords != null) {
for (Entry<String, List<Vector2f>> entry : faceUVCoords.entrySet()) {
for (Vector2f uv : entry.getValue()) {
uv.set(u ? 1 - uv.x : uv.x, v ? 1 - uv.y : uv.y);
}
... | void function(boolean u, boolean v) { if (faceUVCoords != null) { for (Entry<String, List<Vector2f>> entry : faceUVCoords.entrySet()) { for (Vector2f uv : entry.getValue()) { uv.set(u ? 1 - uv.x : uv.x, v ? 1 - uv.y : uv.y); } } } } | /**
* Flips UV coordinates.
* @param u
* indicates if U coords should be flipped
* @param v
* indicates if V coords should be flipped
*/ | Flips UV coordinates | flipUV | {
"repo_name": "yetanotherindie/jMonkey-Engine",
"path": "jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/Face.java",
"license": "bsd-3-clause",
"size": 24560
} | [
"com.jme3.math.Vector2f",
"java.util.List",
"java.util.Map"
] | import com.jme3.math.Vector2f; import java.util.List; import java.util.Map; | import com.jme3.math.*; import java.util.*; | [
"com.jme3.math",
"java.util"
] | com.jme3.math; java.util; | 577,900 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.