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 TrueTypeTable getTable (String tagString) { Object tableObj = this.tables.get (tagString); TrueTypeTable table = null; if (tableObj instanceof ByteBuffer) { // the table has not yet been parsed. Parse it, and add the // parsed version to the map of tables. ...
TrueTypeTable function (String tagString) { Object tableObj = this.tables.get (tagString); TrueTypeTable table = null; if (tableObj instanceof ByteBuffer) { ByteBuffer data = (ByteBuffer) tableObj; table = TrueTypeTable.createTable (this, tagString, data); addTable (tagString, table); } else { table = (TrueTypeTable) t...
/** * Get a table by name. This command causes the table in question * to be parsed, if it has not already been parsed. * * @param tagString the name of this table, as a 4 character string * (i.e. cmap or head) * @return a {@link org.loboevolution.pdfview.font.ttf.TrueTypeTable} ob...
Get a table by name. This command causes the table in question to be parsed, if it has not already been parsed
getTable
{ "repo_name": "oswetto/LoboEvolution", "path": "LoboPDF/src/main/java/org/loboevolution/pdfview/font/ttf/TrueTypeFont.java", "license": "gpl-3.0", "size": 14695 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
446,251
@SmallTest @Feature("MultiWindow") @TargetApi(Build.VERSION_CODES.LOLLIPOP) public void testTabbedActivity2TaskRunning() throws InterruptedException { ChromeTabbedActivity activity2 = createSecondChromeTabbedActivity(getActivity()); assertTrue(MultiWindowUtils.getInstance().getTabbedActi...
@Feature(STR) @TargetApi(Build.VERSION_CODES.LOLLIPOP) void function() throws InterruptedException { ChromeTabbedActivity activity2 = createSecondChromeTabbedActivity(getActivity()); assertTrue(MultiWindowUtils.getInstance().getTabbedActivity2TaskRunning()); activity2.finishAndRemoveTask(); MultiWindowUtils.getInstance...
/** * Tests that MultiWindowUtils properly tracks whether ChromeTabbedActivity2 is running. */
Tests that MultiWindowUtils properly tracks whether ChromeTabbedActivity2 is running
testTabbedActivity2TaskRunning
{ "repo_name": "danakj/chromium", "path": "chrome/android/javatests/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtilsTest.java", "license": "bsd-3-clause", "size": 8667 }
[ "android.annotation.TargetApi", "android.os.Build", "org.chromium.base.test.util.Feature", "org.chromium.chrome.browser.ChromeTabbedActivity" ]
import android.annotation.TargetApi; import android.os.Build; import org.chromium.base.test.util.Feature; import org.chromium.chrome.browser.ChromeTabbedActivity;
import android.annotation.*; import android.os.*; import org.chromium.base.test.util.*; import org.chromium.chrome.browser.*;
[ "android.annotation", "android.os", "org.chromium.base", "org.chromium.chrome" ]
android.annotation; android.os; org.chromium.base; org.chromium.chrome;
2,528,711
public native Blob toBlob() ;
native Blob function() ;
/** * Return the image as a blob object */
Return the image as a blob object
toBlob
{ "repo_name": "CraigAndrew/titanium4j", "path": "src/com/emitrom/ti4j/mobile/client/ui/ImageView.java", "license": "apache-2.0", "size": 13891 }
[ "com.emitrom.ti4j.mobile.client.blob.Blob" ]
import com.emitrom.ti4j.mobile.client.blob.Blob;
import com.emitrom.ti4j.mobile.client.blob.*;
[ "com.emitrom.ti4j" ]
com.emitrom.ti4j;
2,865,294
@Nullable public OutlookUser patch(@Nonnull final OutlookUser sourceOutlookUser) throws ClientException { return send(HttpMethod.PATCH, sourceOutlookUser); }
OutlookUser function(@Nonnull final OutlookUser sourceOutlookUser) throws ClientException { return send(HttpMethod.PATCH, sourceOutlookUser); }
/** * Patches this OutlookUser with a source * * @param sourceOutlookUser the source object with updates * @return the updated OutlookUser * @throws ClientException this exception occurs if the request was unable to complete for any reason */
Patches this OutlookUser with a source
patch
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/OutlookUserRequest.java", "license": "mit", "size": 6014 }
[ "com.microsoft.graph.core.ClientException", "com.microsoft.graph.http.HttpMethod", "com.microsoft.graph.models.OutlookUser", "javax.annotation.Nonnull" ]
import com.microsoft.graph.core.ClientException; import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.OutlookUser; import javax.annotation.Nonnull;
import com.microsoft.graph.core.*; import com.microsoft.graph.http.*; import com.microsoft.graph.models.*; import javax.annotation.*;
[ "com.microsoft.graph", "javax.annotation" ]
com.microsoft.graph; javax.annotation;
1,686,143
public void testWrongCharset_Win1251AsUtf8() throws SQLException { checkBulkLoadWithWrongCharset(BULKLOAD_CP1251_CSV_FILE, "windows-1251", "UTF-8"); }
void function() throws SQLException { checkBulkLoadWithWrongCharset(BULKLOAD_CP1251_CSV_FILE, STR, "UTF-8"); }
/** * Verifies that no error is reported and characters are converted improperly when we import * windows-1251 as UTF-8. * * @throws SQLException If failed. */
Verifies that no error is reported and characters are converted improperly when we import windows-1251 as UTF-8
testWrongCharset_Win1251AsUtf8
{ "repo_name": "irudyak/ignite", "path": "modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBulkLoadAbstractSelfTest.java", "license": "apache-2.0", "size": 30082 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
634,801
public String executePrivilegedOperation(List<String> prefixCommands, PrivilegedOperation operation, File workingDir, Map<String, String> env, boolean grabOutput, boolean inheritParentEnv) throws PrivilegedOperationException { String[] fullCommandArray = getPrivilegedOperationExecutionCommand ...
String function(List<String> prefixCommands, PrivilegedOperation operation, File workingDir, Map<String, String> env, boolean grabOutput, boolean inheritParentEnv) throws PrivilegedOperationException { String[] fullCommandArray = getPrivilegedOperationExecutionCommand (prefixCommands, operation); ShellCommandExecutor e...
/** * Executes a privileged operation. It is up to the callers to ensure that * each privileged operation's parameters are constructed correctly. The * parameters are passed verbatim to the container-executor binary. * * @param prefixCommands in some cases ( e.g priorities using nice ), * ...
Executes a privileged operation. It is up to the callers to ensure that each privileged operation's parameters are constructed correctly. The parameters are passed verbatim to the container-executor binary
executePrivilegedOperation
{ "repo_name": "ronny-macmaster/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/privileged/PrivilegedOperationExecutor.java", "license": "apache-2.0", "size": 10457 }
[ "java.io.File", "java.io.IOException", "java.util.Arrays", "java.util.List", "java.util.Map", "org.apache.hadoop.util.Shell" ]
import java.io.File; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.Map; import org.apache.hadoop.util.Shell;
import java.io.*; import java.util.*; import org.apache.hadoop.util.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
2,816,333
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<LogFileInner>> listByServerSinglePageAsync(String resourceGroupName, String serverName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<LogFileInner>> function(String resourceGroupName, String serverName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.getSubscriptionId() == null) { return Mono .error( new IllegalArgument...
/** * List all the log files in a given server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException ...
List all the log files in a given server
listByServerSinglePageAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/mysql/azure-resourcemanager-mysql/src/main/java/com/azure/resourcemanager/mysql/implementation/LogFilesClientImpl.java", "license": "mit", "size": 11530 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedResponse", "com.azure.core.http.rest.PagedResponseBase", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.mysql.fluent.models.LogFileInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.mysql.fluent.models.LogFileInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.mysql.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,743,328
public ConsumesRequestCondition getConsumesCondition() { return this.consumesCondition; }
ConsumesRequestCondition function() { return this.consumesCondition; }
/** * Returns the "consumes" condition of this {@link RequestMappingInfo}; * or instance with 0 consumes expressions, never {@code null}. */
Returns the "consumes" condition of this <code>RequestMappingInfo</code>; or instance with 0 consumes expressions, never null
getConsumesCondition
{ "repo_name": "boggad/jdk9-sample", "path": "sample-catalog/spring-jdk9/src/spring.web.reactive/org/springframework/web/reactive/result/method/RequestMappingInfo.java", "license": "mit", "size": 19488 }
[ "org.springframework.web.reactive.result.condition.ConsumesRequestCondition" ]
import org.springframework.web.reactive.result.condition.ConsumesRequestCondition;
import org.springframework.web.reactive.result.condition.*;
[ "org.springframework.web" ]
org.springframework.web;
2,674,918
private ResourceInfo checkWelcomeFiles(String pathname, DirContext resources) { String collectionName = pathname; if (!pathname.endsWith("/")) { collectionName += "/"; } // Refresh our currently defined set of welcome f...
ResourceInfo function(String pathname, DirContext resources) { String collectionName = pathname; if (!pathname.endsWith("/")) { collectionName += "/"; } synchronized (welcomes) { welcomes = (String[]) getServletContext().getAttribute (Globals.WELCOME_FILES_ATTR); if (welcomes == null) welcomes = new String[0]; } for (i...
/** * Check to see if a default page exists. * * @param pathname Pathname of the file to be served */
Check to see if a default page exists
checkWelcomeFiles
{ "repo_name": "c-rainstorm/jerrydog", "path": "src/main/java/org/apache/catalina/servlets/DefaultServlet.java", "license": "gpl-3.0", "size": 79068 }
[ "javax.naming.directory.DirContext", "org.apache.catalina.Globals" ]
import javax.naming.directory.DirContext; import org.apache.catalina.Globals;
import javax.naming.directory.*; import org.apache.catalina.*;
[ "javax.naming", "org.apache.catalina" ]
javax.naming; org.apache.catalina;
62,131
assertConditionColumnPatternGrouping( legacyDTModel ); GuidedDecisionTable52 newDTModel = new GuidedDecisionTable52(); newDTModel.setTableFormat( GuidedDecisionTable52.TableFormat.EXTENDED_ENTRY ); newDTModel.setTableName( legacyDTModel.tableName ); newDTModel.setParentName( l...
assertConditionColumnPatternGrouping( legacyDTModel ); GuidedDecisionTable52 newDTModel = new GuidedDecisionTable52(); newDTModel.setTableFormat( GuidedDecisionTable52.TableFormat.EXTENDED_ENTRY ); newDTModel.setTableName( legacyDTModel.tableName ); newDTModel.setParentName( legacyDTModel.parentName ); newDTModel.setRo...
/** * Convert the legacy Decision Table model to the new * @param legacyDTModel * @return The new DTModel */
Convert the legacy Decision Table model to the new
upgrade
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/drools-master/drools-workbench-models/drools-workbench-models-guided-dtable/src/main/java/org/drools/workbench/models/guided/dtable/backend/util/GuidedDecisionTableUpgradeHelper1.java", "license": "mit", "size": 13391 }
[ "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52", "org.drools.workbench.models.guided.dtable.shared.model.DescriptionCol52", "org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52"...
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52; import org.drools.workbench.models.guided.dtable.shared.model.DescriptionCol52; import org.drools.workbench.models.guided.dtable.shared.model.Gu...
import java.util.*; import org.drools.workbench.models.guided.dtable.shared.model.*; import org.drools.workbench.models.guided.dtable.shared.model.legacy.*;
[ "java.util", "org.drools.workbench" ]
java.util; org.drools.workbench;
274,856
public IndicesAliasesRequestBuilder addAlias(String index, String alias, Map<String, Object> filter) { request.addAlias(alias, filter, index); return this; }
IndicesAliasesRequestBuilder function(String index, String alias, Map<String, Object> filter) { request.addAlias(alias, filter, index); return this; }
/** * Adds an alias to the index. * * @param index The indices * @param alias The alias * @param filter The filter */
Adds an alias to the index
addAlias
{ "repo_name": "anti-social/elasticsearch", "path": "src/main/java/org/elasticsearch/action/admin/indices/alias/IndicesAliasesRequestBuilder.java", "license": "apache-2.0", "size": 5946 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,829,021
public Overlay setEnterAnimation(Animation enterAnimation){ mEnterAnimation = enterAnimation; return this; }
Overlay function(Animation enterAnimation){ mEnterAnimation = enterAnimation; return this; }
/** * Set enter animation * @param enterAnimation * @return return {@link Overlay} instance for chaining purpose */
Set enter animation
setEnterAnimation
{ "repo_name": "wsygwg/TourGuide", "path": "tourguide/src/main/java/tourguide/tourguide/Overlay.java", "license": "mit", "size": 4910 }
[ "android.view.animation.Animation" ]
import android.view.animation.Animation;
import android.view.animation.*;
[ "android.view" ]
android.view;
1,712,926
List<DataPoint<IN>> getDatapoints();
List<DataPoint<IN>> getDatapoints();
/** * Retrieve an immutable set of all received data points * @return */
Retrieve an immutable set of all received data points
getDatapoints
{ "repo_name": "bennidi/pips", "path": "src/main/java/net/engio/pips/data/IDataCollector.java", "license": "mit", "size": 1214 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,796,200
public String getSeriesLegendReference() { Ai ai = myseries.getLegendAi(); if( ai != null ) { return ai.getDefinition(); } return null; }
String function() { Ai ai = myseries.getLegendAi(); if( ai != null ) { return ai.getDefinition(); } return null; }
/** * returns the Legend Cell Reference, if any * * @return String Cell Address representing the Legend for this Series */
returns the Legend Cell Reference, if any
getSeriesLegendReference
{ "repo_name": "Maxels88/openxls", "path": "src/main/java/org/openxls/ExtenXLS/ChartSeriesHandle.java", "license": "gpl-3.0", "size": 14363 }
[ "org.openxls.formats.XLS" ]
import org.openxls.formats.XLS;
import org.openxls.formats.*;
[ "org.openxls.formats" ]
org.openxls.formats;
985,977
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Group group) throws ResourceNotExistsException, GroupNotExistsException;
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Group group) throws ResourceNotExistsException, GroupNotExistsException;
/** * Get group attributes which are required by services defined on specified resource * <p> * PRIVILEGE: Get only those required attributes principal has access to. * * @param resourceToGetServicesFrom getRequired attributes from services which are assigned on this resource * @return list of group's attri...
Get group attributes which are required by services defined on specified resource
getResourceRequiredAttributes
{ "repo_name": "zoraseb/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/AttributesManager.java", "license": "bsd-2-clause", "size": 265364 }
[ "cz.metacentrum.perun.core.api.exceptions.GroupNotExistsException", "cz.metacentrum.perun.core.api.exceptions.ResourceNotExistsException", "java.util.List" ]
import cz.metacentrum.perun.core.api.exceptions.GroupNotExistsException; import cz.metacentrum.perun.core.api.exceptions.ResourceNotExistsException; import java.util.List;
import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
1,122,814
private LocalsArraySet mergeWithOne(OneLocalsArray other) { OneLocalsArray newPrimary; ArrayList<LocalsArray> newSecondaries; boolean secondariesChanged = false; newPrimary = primary.merge(other.getPrimary()); newSecondaries = new ArrayList(secondaries.size()); int ...
LocalsArraySet function(OneLocalsArray other) { OneLocalsArray newPrimary; ArrayList<LocalsArray> newSecondaries; boolean secondariesChanged = false; newPrimary = primary.merge(other.getPrimary()); newSecondaries = new ArrayList(secondaries.size()); int sz = secondaries.size(); for (int i = 0; i < sz; i++) { LocalsArra...
/** * Merges this set with a {@code OneLocalsArray} instance. * * @param other {@code non-null;} to merge * @return {@code non-null;} this instance if merge was a no-op, or * new merged instance. */
Merges this set with a OneLocalsArray instance
mergeWithOne
{ "repo_name": "alibaba/atlas", "path": "atlas-gradle-plugin/dexpatch/src/main/java/com/taobao/android/dx/cf/code/LocalsArraySet.java", "license": "apache-2.0", "size": 13376 }
[ "com.taobao.android.dx.util.Hex", "java.util.ArrayList" ]
import com.taobao.android.dx.util.Hex; import java.util.ArrayList;
import com.taobao.android.dx.util.*; import java.util.*;
[ "com.taobao.android", "java.util" ]
com.taobao.android; java.util;
913,308
public URL findResource(String name) { try { File f = new File(loadDir, name); if (f.exists()) return new URL("file:" + f.getAbsolutePath()); else return null; } catch (java.net.MalformedURLException e) { return null; ...
URL function(String name) { try { File f = new File(loadDir, name); if (f.exists()) return new URL("file:" + f.getAbsolutePath()); else return null; } catch (java.net.MalformedURLException e) { return null; } }
/** * Finds the resource with the given name. Class loader * implementations should override this method to specify where to * find resources. * * @param name the resource name * @return a URL for reading the resource, or <code>null</code> * if the resource could not be found...
Finds the resource with the given name. Class loader implementations should override this method to specify where to find resources
findResource
{ "repo_name": "otmarjr/jtreg-fork", "path": "dist-with-aspectj/jtreg/lib/javatest/com/sun/javatest/util/DirectoryClassLoader.java", "license": "gpl-2.0", "size": 7752 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,631,200
public synchronized void showErrorMessage(String message) { Component parent = mainWindow; if (resultsWindow != null && resultsWindow.hasFocus()) { parent = resultsWindow; } JOptionPane.showMessageDialog(parent, message, "Error", JOptionPane.ERROR_MESSAGE); }
synchronized void function(String message) { Component parent = mainWindow; if (resultsWindow != null && resultsWindow.hasFocus()) { parent = resultsWindow; } JOptionPane.showMessageDialog(parent, message, "Error", JOptionPane.ERROR_MESSAGE); }
/** * Shows a panel with an error message * @param message specified error message */
Shows a panel with an error message
showErrorMessage
{ "repo_name": "chpatrick/jmt", "path": "src/jmt/gui/jmodel/controller/Mediator.java", "license": "gpl-2.0", "size": 120551 }
[ "java.awt.Component", "javax.swing.JOptionPane" ]
import java.awt.Component; import javax.swing.JOptionPane;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,120,353
protected EObject createObjectFromTypeName(EObject peekObject, String typeQName, EStructuralFeature feature) { String typeName = null; String prefix = ""; int index = typeQName.indexOf(':', 0); if (index > 0) { prefix = typeQName.substring(0, index); typeName ...
EObject function(EObject peekObject, String typeQName, EStructuralFeature feature) { String typeName = null; String prefix = STR") && helper.getURI(prefix) == null) { contextFeature = feature; EPackage ePackage = handleMissingPackage(null); contextFeature = null; if (ePackage == null) { error(new PackageNotFoundExcepti...
/** * Create an object from the given qualified type name. */
Create an object from the given qualified type name
createObjectFromTypeName
{ "repo_name": "romartin/kie-wb-common", "path": "kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-emf/src/main/java/org/eclipse/emf/ecore/xmi/resource/xml/XMLHandler.java", "license": "apache-2.0", "size": 99371 }
[ "org.eclipse.emf.ecore.EObject", "org.eclipse.emf.ecore.EPackage", "org.eclipse.emf.ecore.EStructuralFeature" ]
import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,605,439
EReference getDefValue_Type();
EReference getDefValue_Type();
/** * Returns the meta object for the containment reference '{@link org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.DefValue#getType <em>Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Type</em>'. * @see org.ecli...
Returns the meta object for the containment reference '<code>org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.DefValue#getType Type</code>'.
getDefValue_Type
{ "repo_name": "miklossy/xtext-core", "path": "org.eclipse.xtext.testlanguages/src-gen/org/eclipse/xtext/testlanguages/backtracking/beeLangTestLanguage/BeeLangTestLanguagePackage.java", "license": "epl-1.0", "size": 161651 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
682,264
protected final Map<String, Object> getFieldCache() { return this.fieldCache; }
final Map<String, Object> function() { return this.fieldCache; }
/** * Exposes the field cache to subclasses: * a Map from String field name to object value. */
Exposes the field cache to subclasses: a Map from String field name to object value
getFieldCache
{ "repo_name": "qobel/esoguproject", "path": "spring-framework/spring-core/src/main/java/org/springframework/core/Constants.java", "license": "apache-2.0", "size": 11721 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,095,177
Resources resources = context.getResources(); String languageCode = getLanguageCode(resources); // Get XML name using reflection Field field = null; String prefix = context.getString(R.string.xml_prefix); try { field = R.raw.class.getField(prefix + languageCode); } catch (NoSuchFieldException e) { /...
Resources resources = context.getResources(); String languageCode = getLanguageCode(resources); Field field = null; String prefix = context.getString(R.string.xml_prefix); try { field = R.raw.class.getField(prefix + languageCode); } catch (NoSuchFieldException e) { field = R.raw.class.getField(prefix + context.getStrin...
/** * Loads XML with quiz and returns {@link Quiz} object. * * @return quiz object * @throws Exception * when deserialization fails */
Loads XML with quiz and returns <code>Quiz</code> object
loadXml
{ "repo_name": "dogenkigen/Quiz", "path": "src/com/mlaskows/quiz/model/XmlDataLoader.java", "license": "gpl-2.0", "size": 2587 }
[ "android.content.res.Resources", "com.mlaskows.quiz.model.entity.Quiz", "java.io.InputStream", "java.lang.reflect.Field", "org.simpleframework.xml.Serializer", "org.simpleframework.xml.core.Persister" ]
import android.content.res.Resources; import com.mlaskows.quiz.model.entity.Quiz; import java.io.InputStream; import java.lang.reflect.Field; import org.simpleframework.xml.Serializer; import org.simpleframework.xml.core.Persister;
import android.content.res.*; import com.mlaskows.quiz.model.entity.*; import java.io.*; import java.lang.reflect.*; import org.simpleframework.xml.*; import org.simpleframework.xml.core.*;
[ "android.content", "com.mlaskows.quiz", "java.io", "java.lang", "org.simpleframework.xml" ]
android.content; com.mlaskows.quiz; java.io; java.lang; org.simpleframework.xml;
406,544
private void initData() { // Initialize ListView String[] cash = getResources().getStringArray(R.array.cash); for (int i = 0; i < cash.length - 1; i++) { listCash.add(new CurrencyInformer(cash[i])); } }
void function() { String[] cash = getResources().getStringArray(R.array.cash); for (int i = 0; i < cash.length - 1; i++) { listCash.add(new CurrencyInformer(cash[i])); } }
/** * Initialize data */
Initialize data
initData
{ "repo_name": "mogsev/CurrencyConvertor", "path": "app/src/main/java/com/mogsev/currencyconvertor/InformerFragment.java", "license": "apache-2.0", "size": 2745 }
[ "com.mogsev.util.CurrencyInformer" ]
import com.mogsev.util.CurrencyInformer;
import com.mogsev.util.*;
[ "com.mogsev.util" ]
com.mogsev.util;
2,507,099
public String getIndexFolderLSA(List<String> queryLanguages){ String LSAfolder=indexFolderLSA; List<String> queryLanguagesCopy= new ArrayList<String>(); queryLanguagesCopy.addAll(queryLanguages); Collections.sort(queryLanguagesCopy); String subFolder="/"; for (int i=0; i<queryLanguagesCopy.size(); i++){ ...
String function(List<String> queryLanguages){ String LSAfolder=indexFolderLSA; List<String> queryLanguagesCopy= new ArrayList<String>(); queryLanguagesCopy.addAll(queryLanguages); Collections.sort(queryLanguagesCopy); String subFolder="/"; for (int i=0; i<queryLanguagesCopy.size(); i++){ if (i!=0){ subFolder+="_"; } su...
/** * Gets the index folder lsa. * * @param queryLanguages the query languages * @return the index folder lsa */
Gets the index folder lsa
getIndexFolderLSA
{ "repo_name": "gabrielcc2/AStudyOnCrossLanguageInformationRetrievalSupportForAResearchPaperRecommender", "path": "src/clir/control/mgmt/LanguagesManager.java", "license": "apache-2.0", "size": 4405 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,477,448
@GET @Path("/{analysisId}/customizedFeatures") @Produces("application/json") @Consumes("application/json") public Response getCustomizedFeatures(@PathParam("analysisId") long analysisId, @QueryParam("limit") int limit, @QueryParam("offset") int offset) { ...
@Path(STR) @Produces(STR) @Consumes(STR) Response function(@PathParam(STR) long analysisId, @QueryParam("limit") int limit, @QueryParam(STR) int offset) { PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext(); int tenantId = carbonContext.getTenantId(); String userName = carbonCo...
/** * Get customized features of an analysis. * @param analysisId Unique id of the analysis * @param limit Number of features need to retrieve, from the starting index * @param offset Starting index * @return JSON array of {@link org.wso2.carbon.ml.commons.domain.MLCustomizedFeature} objects ...
Get customized features of an analysis
getCustomizedFeatures
{ "repo_name": "danula/carbon-ml", "path": "components/ml/org.wso2.carbon.ml.rest.api/src/main/java/org/wso2/carbon/ml/rest/api/AnalysisApiV10.java", "license": "apache-2.0", "size": 31159 }
[ "java.util.List", "javax.ws.rs.Consumes", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", "javax.ws.rs.QueryParam", "javax.ws.rs.core.Response", "org.wso2.carbon.context.PrivilegedCarbonContext", "org.wso2.carbon.ml.commons.domain.MLCustomizedFeature", "org.wso2.carbon.ml.core...
import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.Response; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.ml.commons.domain.MLCustomizedFeature; i...
import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.wso2.carbon.context.*; import org.wso2.carbon.ml.commons.domain.*; import org.wso2.carbon.ml.core.exceptions.*; import org.wso2.carbon.ml.core.utils.*; import org.wso2.carbon.ml.rest.api.model.*;
[ "java.util", "javax.ws", "org.wso2.carbon" ]
java.util; javax.ws; org.wso2.carbon;
2,489,775
return result; } /** * Sets the value of the result property. * * @param value * allowed object is * {@link Interaction }
return result; } /** * Sets the value of the result property. * * @param value * allowed object is * {@link Interaction }
/** * Gets the value of the result property. * * @return * possible object is * {@link Interaction } * */
Gets the value of the result property
getResult
{ "repo_name": "dushmis/Oracle-Cloud", "path": "PaaS_SaaS_Accelerator_RESTFulFacade/XJC_Beans/src/com/oracle/xmlns/apps/crmcommon/interactions/interactionservice/types/CreateInteractionAsyncResponse.java", "license": "bsd-3-clause", "size": 2108 }
[ "com.oracle.xmlns.apps.crmcommon.interactions.interactionservice.Interaction" ]
import com.oracle.xmlns.apps.crmcommon.interactions.interactionservice.Interaction;
import com.oracle.xmlns.apps.crmcommon.interactions.interactionservice.*;
[ "com.oracle.xmlns" ]
com.oracle.xmlns;
2,682,903
public byte []nextBuffer(int offset) throws IOException { _writeLength = 0; if (_source != null) _source.write(_writeBuffer, 0, offset, false); _position += offset; if (_implicitFlush) flush(); return _writeBuffer; }
public byte []nextBuffer(int offset) throws IOException { _writeLength = 0; if (_source != null) _source.write(_writeBuffer, 0, offset, false); _position += offset; if (_implicitFlush) flush(); return _writeBuffer; }
/** * Flushes and writes the buffer */
Flushes and writes the buffer
nextBuffer
{ "repo_name": "dwango/quercus", "path": "src/main/java/com/caucho/vfs/WriteStream.java", "license": "gpl-2.0", "size": 30795 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,258,136
public Observable<ServiceResponse<Page<ExpressRouteServiceProviderInner>>> listSinglePageAsync() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); }
Observable<ServiceResponse<Page<ExpressRouteServiceProviderInner>>> function() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); }
/** * Gets all the available express route service providers. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ExpressRouteServiceProviderInner&gt; object wrapped in {@link ServiceResponse} if successful. */
Gets all the available express route service providers
listSinglePageAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2017_10_01/src/main/java/com/microsoft/azure/management/network/v2017_10_01/implementation/ExpressRouteServiceProvidersInner.java", "license": "mit", "size": 15355 }
[ "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;
453,158
public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_) { p_149695_1_.scheduleBlockUpdate(p_149695_2_, p_149695_3_, p_149695_4_, this, this.tickRate(p_149695_1_)); }
void function(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_) { p_149695_1_.scheduleBlockUpdate(p_149695_2_, p_149695_3_, p_149695_4_, this, this.tickRate(p_149695_1_)); }
/** * Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are * their own) Args: x, y, z, neighbor Block */
Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor Block
onNeighborBlockChange
{ "repo_name": "CheeseL0ver/Ore-TTM", "path": "build/tmp/recompSrc/net/minecraft/block/BlockDragonEgg.java", "license": "lgpl-2.1", "size": 7209 }
[ "net.minecraft.world.World" ]
import net.minecraft.world.World;
import net.minecraft.world.*;
[ "net.minecraft.world" ]
net.minecraft.world;
1,238,370
Rotation getRotation();
Rotation getRotation();
/** * Gets the rotation values of this object. * @return the rotation value. */
Gets the rotation values of this object
getRotation
{ "repo_name": "rex-xxx/mt6572_x201", "path": "mediatek/frameworks/opt/ngin3d/java/com/mediatek/ngin3d/presentation/Presentation.java", "license": "gpl-2.0", "size": 11492 }
[ "com.mediatek.ngin3d.Rotation" ]
import com.mediatek.ngin3d.Rotation;
import com.mediatek.ngin3d.*;
[ "com.mediatek.ngin3d" ]
com.mediatek.ngin3d;
568,902
public void setMaterial (DecalMaterial material) { this.material = material; } final static Vector3 dir = new Vector3();
void function (DecalMaterial material) { this.material = material; } final static Vector3 dir = new Vector3();
/**Set material * * @param material custom material */
Set material
setMaterial
{ "repo_name": "alex-dorokhov/libgdx", "path": "gdx/src/com/badlogic/gdx/graphics/g3d/decals/Decal.java", "license": "apache-2.0", "size": 24384 }
[ "com.badlogic.gdx.math.Vector3" ]
import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.math.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
1,580,041
public Call<ResponseBody> postSwaggerGlobalValidAsync(final ServiceCallback<Void> serviceCallback) { if (this.client.getSubscriptionId() == null) { serviceCallback.failure(new ServiceException( new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required an...
Call<ResponseBody> function(final ServiceCallback<Void> serviceCallback) { if (this.client.getSubscriptionId() == null) { serviceCallback.failure(new ServiceException( new IllegalArgumentException(STR))); }
/** * POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to '1234-5678-9012-3456' to succeed * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. */
POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to '1234-5678-9012-3456' to succeed
postSwaggerGlobalValidAsync
{ "repo_name": "BretJohnson/autorest", "path": "AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/SubscriptionInCredentialsImpl.java", "license": "mit", "size": 14802 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceException", "com.squareup.okhttp.ResponseBody" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceException; import com.squareup.okhttp.ResponseBody;
import com.microsoft.rest.*; import com.squareup.okhttp.*;
[ "com.microsoft.rest", "com.squareup.okhttp" ]
com.microsoft.rest; com.squareup.okhttp;
2,204,960
public void handleTaskEvent(SchedulerEvent event, TaskInfo tInfo) { synchronized (this) { if (!lookAndNotifyMonitor(new TaskEventMonitor(event, tInfo))) { //no monitor notified, memorize event. addTaskEvent(event, tInfo); } } }
void function(SchedulerEvent event, TaskInfo tInfo) { synchronized (this) { if (!lookAndNotifyMonitor(new TaskEventMonitor(event, tInfo))) { addTaskEvent(event, tInfo); } } }
/** * Memorize or notify a waiter for a new task event received * @param event task event type * @param tInfo event's associated Job object */
Memorize or notify a waiter for a new task event received
handleTaskEvent
{ "repo_name": "laurianed/scheduling", "path": "scheduler/scheduler-server/src/test/java/functionaltests/monitor/SchedulerMonitorsHandler.java", "license": "agpl-3.0", "size": 20896 }
[ "org.ow2.proactive.scheduler.common.SchedulerEvent", "org.ow2.proactive.scheduler.common.task.TaskInfo" ]
import org.ow2.proactive.scheduler.common.SchedulerEvent; import org.ow2.proactive.scheduler.common.task.TaskInfo;
import org.ow2.proactive.scheduler.common.*; import org.ow2.proactive.scheduler.common.task.*;
[ "org.ow2.proactive" ]
org.ow2.proactive;
2,814,841
public static void configurePeriodicSync(Context context, int syncInterval, int flexTime) { Account account = getSyncAccount(context); String authority = context.getString(R.string.content_authority); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // we can enable ine...
static void function(Context context, int syncInterval, int flexTime) { Account account = getSyncAccount(context); String authority = context.getString(R.string.content_authority); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { SyncRequest request = new SyncRequest.Builder(). syncPeriodic(syncInterval, flex...
/** * Helper method to schedule the sync adapter periodic execution */
Helper method to schedule the sync adapter periodic execution
configurePeriodicSync
{ "repo_name": "ujjwal9895/GoUbiquitous", "path": "app/src/main/java/com/example/android/sunshine/app/sync/SunshineSyncAdapter.java", "license": "apache-2.0", "size": 33533 }
[ "android.accounts.Account", "android.content.ContentResolver", "android.content.Context", "android.content.SyncRequest", "android.os.Build", "android.os.Bundle" ]
import android.accounts.Account; import android.content.ContentResolver; import android.content.Context; import android.content.SyncRequest; import android.os.Build; import android.os.Bundle;
import android.accounts.*; import android.content.*; import android.os.*;
[ "android.accounts", "android.content", "android.os" ]
android.accounts; android.content; android.os;
803,001
public DrawableHand getDrawableHand() { return theHand; }
DrawableHand function() { return theHand; }
/** * Return the drawable hand that is used for this component * * @returns the drawable hand */
Return the drawable hand that is used for this component
getDrawableHand
{ "repo_name": "lsilvestre/Jogre", "path": "games/ninetynine/src/org/jogre/ninetynine/std/CardHandComponent.java", "license": "gpl-2.0", "size": 5264 }
[ "org.jogre.ninetynine.std.DrawableHand" ]
import org.jogre.ninetynine.std.DrawableHand;
import org.jogre.ninetynine.std.*;
[ "org.jogre.ninetynine" ]
org.jogre.ninetynine;
776,024
public Executor getConcurrentExecutor() { return this.concurrentExecutor; }
Executor function() { return this.concurrentExecutor; }
/** * Return the JDK 1.5 concurrent executor that this adapter * delegates to. */
Return the JDK 1.5 concurrent executor that this adapter delegates to
getConcurrentExecutor
{ "repo_name": "codeApeFromChina/resource", "path": "frame_packages/java_libs/spring-2.5.6-src/tiger/src/org/springframework/scheduling/concurrent/ConcurrentTaskExecutor.java", "license": "unlicense", "size": 3894 }
[ "java.util.concurrent.Executor" ]
import java.util.concurrent.Executor;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,569,720
@Test(groups = {"Enterprise-only"}) public void navigateToAdminTools() throws Exception { AdminConsolePage adminConsolePage = page.getNav().selectAdminTools().render(); Assert.assertEquals(adminConsolePage.getPageTitle(), "Admin Console"); }
@Test(groups = {STR}) void function() throws Exception { AdminConsolePage adminConsolePage = page.getNav().selectAdminTools().render(); Assert.assertEquals(adminConsolePage.getPageTitle(), STR); }
/** * Navigate to admin tools from the dashboard page. * * @throws Exception if error */
Navigate to admin tools from the dashboard page
navigateToAdminTools
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/share-po/src/test/java/org/alfresco/po/share/NavigationBarTest.java", "license": "lgpl-3.0", "size": 11341 }
[ "org.alfresco.po.share.admin.AdminConsolePage", "org.testng.Assert", "org.testng.annotations.Test" ]
import org.alfresco.po.share.admin.AdminConsolePage; import org.testng.Assert; import org.testng.annotations.Test;
import org.alfresco.po.share.admin.*; import org.testng.*; import org.testng.annotations.*;
[ "org.alfresco.po", "org.testng", "org.testng.annotations" ]
org.alfresco.po; org.testng; org.testng.annotations;
751,074
@Nonnull public static synchronized String getSetupJavaScript(@Nullable String cdnPrefix, @Nullable String urlPrefix) { if (requireConfigJavaScriptCdn == null) { Collection<String> prefixes = new ArrayList<>(2); prefixes.add(cdnPrefix); prefixes.add(urlPrefix); ...
static synchronized String function(@Nullable String cdnPrefix, @Nullable String urlPrefix) { if (requireConfigJavaScriptCdn == null) { Collection<String> prefixes = new ArrayList<>(2); prefixes.add(cdnPrefix); prefixes.add(urlPrefix); requireConfigJavaScriptCdn = generateSetupJavaScript(prefixes); } return requireConf...
/** * Returns the JavaScript that is used to setup the RequireJS config. This value is cached in memory so that all of the processing to get the String only has to happen once. * * @param urlPrefix The URL prefix where the WebJars can be downloaded from with a trailing slash, e.g. /webJars/ * @param...
Returns the JavaScript that is used to setup the RequireJS config. This value is cached in memory so that all of the processing to get the String only has to happen once
getSetupJavaScript
{ "repo_name": "webjars/webjars-locator", "path": "src/main/java/org/webjars/RequireJS.java", "license": "mit", "size": 26924 }
[ "java.util.ArrayList", "java.util.Collection", "javax.annotation.Nullable" ]
import java.util.ArrayList; import java.util.Collection; import javax.annotation.Nullable;
import java.util.*; import javax.annotation.*;
[ "java.util", "javax.annotation" ]
java.util; javax.annotation;
1,802,710
private void addAllAlreadySeenCampaigns( Collection<? extends CampaignImpression> values) { alreadySeenCampaigns_.addAll(values); }
void function( Collection<? extends CampaignImpression> values) { alreadySeenCampaigns_.addAll(values); }
/** * <pre> * a list of campaigns that have already been rendered by the client so that * service can filter them out while doing search of applicable messages * </pre> * * <code>repeated .inappmessaging.v1.sdkserving.CampaignImpression already_seen_campaigns = 1;</code> */
<code> a list of campaigns that have already been rendered by the client so that service can filter them out while doing search of applicable messages </code> <code>repeated .inappmessaging.v1.sdkserving.CampaignImpression already_seen_campaigns = 1;</code>
addAllAlreadySeenCampaigns
{ "repo_name": "wonderpush/wonderpush-android-sdk", "path": "sdk/src/main/java/com/wonderpush/sdk/inappmessaging/model/CampaignImpressionList.java", "license": "apache-2.0", "size": 5295 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,476,511
public List<Integer> getRanges() { return this.ranges; }
List<Integer> function() { return this.ranges; }
/** * Getter to get available keys of menu. * @return field ranges */
Getter to get available keys of menu
getRanges
{ "repo_name": "vladislavXXL/vivanov", "path": "chapter_002/src/main/java/ru/job4j2/tracker/MenuTracker.java", "license": "apache-2.0", "size": 9527 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,450,059
public static List<EventDetail> transform(FeedData feed, ResourceLoader rl) { return Collections.singletonList(EventDetail.newText(rl.getString("de_news_feed"), feed.title)); }
static List<EventDetail> function(FeedData feed, ResourceLoader rl) { return Collections.singletonList(EventDetail.newText(rl.getString(STR), feed.title)); }
/** * Transforms FeedData for presentation to the user * @param feed the data * @param rl resource loader for i18n * @return EventDetails for presentation */
Transforms FeedData for presentation to the user
transform
{ "repo_name": "OpenCollabZA/sakai", "path": "sitestats/sitestats-tool/src/java/org/sakaiproject/sitestats/tool/transformers/NewsResolvedRefTransformer.java", "license": "apache-2.0", "size": 1672 }
[ "java.util.Collections", "java.util.List", "org.sakaiproject.sitestats.api.event.detailed.EventDetail", "org.sakaiproject.sitestats.api.event.detailed.news.FeedData", "org.sakaiproject.util.ResourceLoader" ]
import java.util.Collections; import java.util.List; import org.sakaiproject.sitestats.api.event.detailed.EventDetail; import org.sakaiproject.sitestats.api.event.detailed.news.FeedData; import org.sakaiproject.util.ResourceLoader;
import java.util.*; import org.sakaiproject.sitestats.api.event.detailed.*; import org.sakaiproject.sitestats.api.event.detailed.news.*; import org.sakaiproject.util.*;
[ "java.util", "org.sakaiproject.sitestats", "org.sakaiproject.util" ]
java.util; org.sakaiproject.sitestats; org.sakaiproject.util;
2,063,482
public ConstantPoolEntry getClassSpecificPoolEntry(final int cp, final long desiredIndex, final String desiredClassName) throws Pack200Exception { final int index = (int) desiredIndex; int realIndex = -1; String array[] = null; if (cp == CP_FIELD) { array = bands....
ConstantPoolEntry function(final int cp, final long desiredIndex, final String desiredClassName) throws Pack200Exception { final int index = (int) desiredIndex; int realIndex = -1; String array[] = null; if (cp == CP_FIELD) { array = bands.getCpFieldClass(); } else if (cp == CP_METHOD) { array = bands.getCpMethodClass(...
/** * Subset the constant pool of the specified type to be just that which has the specified class name. Answer the * ConstantPoolEntry at the desiredIndex of the subsetted pool. * * @param cp type of constant pool array to search * @param desiredIndex index of the constant pool * @param d...
Subset the constant pool of the specified type to be just that which has the specified class name. Answer the ConstantPoolEntry at the desiredIndex of the subsetted pool
getClassSpecificPoolEntry
{ "repo_name": "apache/commons-compress", "path": "src/main/java/org/apache/commons/compress/harmony/unpack200/SegmentConstantPool.java", "license": "apache-2.0", "size": 12816 }
[ "org.apache.commons.compress.harmony.pack200.Pack200Exception", "org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry" ]
import org.apache.commons.compress.harmony.pack200.Pack200Exception; import org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry;
import org.apache.commons.compress.harmony.pack200.*; import org.apache.commons.compress.harmony.unpack200.bytecode.*;
[ "org.apache.commons" ]
org.apache.commons;
947,733
Set getDependencies(Object parent);
Set getDependencies(Object parent);
/** * Gets a collection of objects for any 'parent' object in the * uml model for which the tree structure must be recreated when * they are changed. * * @param parent the parent * @return the dependent objects */
Gets a collection of objects for any 'parent' object in the uml model for which the tree structure must be recreated when they are changed
getDependencies
{ "repo_name": "ckaestne/LEADT", "path": "workspace/argouml_critics/argouml-app/src/org/argouml/ui/explorer/rules/PerspectiveRule.java", "license": "gpl-3.0", "size": 2619 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
144,634
public BigInteger getP() { return this.p; }
BigInteger function() { return this.p; }
/** * Returns p for the DSA algorithm. * * @return Returns the requested BigInteger */
Returns p for the DSA algorithm
getP
{ "repo_name": "unofficial-opensource-apple/gcc_40", "path": "libjava/java/security/spec/DSAParameterSpec.java", "license": "gpl-2.0", "size": 2940 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
105,680
private void testSplit(InputSplit split, byte[]... columns) throws Exception { HLogRecordReader reader = new HLogRecordReader(); reader.initialize(split, MapReduceTestUtil.createDummyMapTaskAttemptContext(conf)); for (byte[] column : columns) { assertTrue(reader.nextKeyValue()); KeyValue kv =...
void function(InputSplit split, byte[]... columns) throws Exception { HLogRecordReader reader = new HLogRecordReader(); reader.initialize(split, MapReduceTestUtil.createDummyMapTaskAttemptContext(conf)); for (byte[] column : columns) { assertTrue(reader.nextKeyValue()); KeyValue kv = reader.getCurrentValue().getKeyValu...
/** * Create a new reader from the split, and match the edits against the passed columns. */
Create a new reader from the split, and match the edits against the passed columns
testSplit
{ "repo_name": "francisliu/hbase_namespace", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestHLogRecordReader.java", "license": "apache-2.0", "size": 8779 }
[ "org.apache.hadoop.hbase.KeyValue", "org.apache.hadoop.hbase.mapreduce.HLogInputFormat", "org.apache.hadoop.hbase.util.Bytes", "org.apache.hadoop.mapreduce.InputSplit", "org.apache.hadoop.mapreduce.MapReduceTestUtil", "org.junit.Assert" ]
import org.apache.hadoop.hbase.KeyValue; import org.apache.hadoop.hbase.mapreduce.HLogInputFormat; import org.apache.hadoop.hbase.util.Bytes; import org.apache.hadoop.mapreduce.InputSplit; import org.apache.hadoop.mapreduce.MapReduceTestUtil; import org.junit.Assert;
import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.mapreduce.*; import org.apache.hadoop.hbase.util.*; import org.apache.hadoop.mapreduce.*; import org.junit.*;
[ "org.apache.hadoop", "org.junit" ]
org.apache.hadoop; org.junit;
2,390,768
@Exported(visibility=2,name="url") public String getAbsoluteUrl() { return Jenkins.get().getRootUrl()+getUrl(); }
@Exported(visibility=2,name="url") String function() { return Jenkins.get().getRootUrl()+getUrl(); }
/** * Gets the absolute URL of this view. */
Gets the absolute URL of this view
getAbsoluteUrl
{ "repo_name": "rsandell/jenkins", "path": "core/src/main/java/hudson/model/View.java", "license": "mit", "size": 52084 }
[ "org.kohsuke.stapler.export.Exported" ]
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.*;
[ "org.kohsuke.stapler" ]
org.kohsuke.stapler;
2,509,629
private NodeList getXmlChildren(String html) { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder; try { builder = factory.newDocumentBuilder(); } catch (ParserConfigurationException e) { L.e(e); return n...
NodeList function(String html) { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder; try { builder = factory.newDocumentBuilder(); } catch (ParserConfigurationException e) { L.e(e); return null; } InputSource inputSource = new InputSource(new StringReader(STR + html + STR)); ...
/** * Parse the given HTML string and return a list of the immediate XML child nodes of that HTML. * * @param html HTML contents. * @return The list of XML child nodes, or null if there was an error. */
Parse the given HTML string and return a list of the immediate XML child nodes of that HTML
getXmlChildren
{ "repo_name": "anirudh24seven/apps-android-wikipedia", "path": "app/src/main/java/org/wikipedia/page/linkpreview/PageExtract.java", "license": "apache-2.0", "size": 2549 }
[ "java.io.StringReader", "javax.xml.parsers.DocumentBuilder", "javax.xml.parsers.DocumentBuilderFactory", "javax.xml.parsers.ParserConfigurationException", "org.w3c.dom.Document", "org.w3c.dom.NodeList", "org.wikipedia.util.log.L", "org.xml.sax.InputSource" ]
import java.io.StringReader; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.wikipedia.util.log.L; import org.xml.sax.InputSource;
import java.io.*; import javax.xml.parsers.*; import org.w3c.dom.*; import org.wikipedia.util.log.*; import org.xml.sax.*;
[ "java.io", "javax.xml", "org.w3c.dom", "org.wikipedia.util", "org.xml.sax" ]
java.io; javax.xml; org.w3c.dom; org.wikipedia.util; org.xml.sax;
2,848,390
protected void addKeyPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_StringToStringMap_key_feature"), getString("_UI_PropertyDescripto...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), BtsmodelPackage.Literals.STRING_TO_STRING_MAP__KEY, true, false, false, ItemPropertyDescriptor.GE...
/** * This adds a property descriptor for the Key feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Key feature.
addKeyPropertyDescriptor
{ "repo_name": "JKatzwinkel/bts", "path": "org.bbaw.bts.model.edit/src/org/bbaw/bts/btsmodel/provider/StringToStringMapItemProvider.java", "license": "lgpl-3.0", "size": 7965 }
[ "org.bbaw.bts.btsmodel.BtsmodelPackage", "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor" ]
import org.bbaw.bts.btsmodel.BtsmodelPackage; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.bbaw.bts.btsmodel.*; import org.eclipse.emf.edit.provider.*;
[ "org.bbaw.bts", "org.eclipse.emf" ]
org.bbaw.bts; org.eclipse.emf;
10,726
public ServerSecurityAlertPolicyInner withDisabledAlerts(List<String> disabledAlerts) { this.disabledAlerts = disabledAlerts; return this; }
ServerSecurityAlertPolicyInner function(List<String> disabledAlerts) { this.disabledAlerts = disabledAlerts; return this; }
/** * Set specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly. * * @param disabledAlerts the disabledAlerts value to set * @return the ServerSecurityAlertPolicyInner object itself. */
Set specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
withDisabledAlerts
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/mariadb/mgmt-v2020_01_01/src/main/java/com/microsoft/azure/management/mariadb/v2020_01_01/implementation/ServerSecurityAlertPolicyInner.java", "license": "mit", "size": 7033 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
883,047
public boolean removeText(TGMeasure measure,long start) { TGBeat beat = getBeat(measure, start); if(beat != null){ removeText(beat); return true; } return false; }
boolean function(TGMeasure measure,long start) { TGBeat beat = getBeat(measure, start); if(beat != null){ removeText(beat); return true; } return false; }
/** * Borra el texto en la position */
Borra el texto en la position
removeText
{ "repo_name": "yuan39/TuxGuitar", "path": "TuxGuitar/src/org/herac/tuxguitar/song/managers/TGMeasureManager.java", "license": "lgpl-2.1", "size": 73348 }
[ "org.herac.tuxguitar.song.models.TGBeat", "org.herac.tuxguitar.song.models.TGMeasure" ]
import org.herac.tuxguitar.song.models.TGBeat; import org.herac.tuxguitar.song.models.TGMeasure;
import org.herac.tuxguitar.song.models.*;
[ "org.herac.tuxguitar" ]
org.herac.tuxguitar;
189,347
private void generateFileListReport(FileReportModule fileReportModule, FileReportSettings fileReportSettings) throws IOException { if (fileReportModule != null && fileReportSettings != null && null != fileReportSettings.getFileProperties()) { String reportDir = createReportDirectory(fileReportMo...
void function(FileReportModule fileReportModule, FileReportSettings fileReportSettings) throws IOException { if (fileReportModule != null && fileReportSettings != null && null != fileReportSettings.getFileProperties()) { String reportDir = createReportDirectory(fileReportModule); List<FileReportDataTypes> enabled = new...
/** * Run the FileReportModules using a SwingWorker. * * @param fileReportModule * @param fileReportSettings settings for the file report */
Run the FileReportModules using a SwingWorker
generateFileListReport
{ "repo_name": "esaunders/autopsy", "path": "Core/src/org/sleuthkit/autopsy/report/infrastructure/ReportGenerator.java", "license": "apache-2.0", "size": 19597 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "java.util.Map", "org.openide.util.NbBundle", "org.sleuthkit.autopsy.report.ReportProgressPanel", "org.sleuthkit.datamodel.AbstractFile" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.openide.util.NbBundle; import org.sleuthkit.autopsy.report.ReportProgressPanel; import org.sleuthkit.datamodel.AbstractFile;
import java.io.*; import java.util.*; import org.openide.util.*; import org.sleuthkit.autopsy.report.*; import org.sleuthkit.datamodel.*;
[ "java.io", "java.util", "org.openide.util", "org.sleuthkit.autopsy", "org.sleuthkit.datamodel" ]
java.io; java.util; org.openide.util; org.sleuthkit.autopsy; org.sleuthkit.datamodel;
796,990
public void finalizeBucket() throws IOException, BinaryBlobAlreadyClosedException { if (_finalized) { throw new BinaryBlobAlreadyClosedException("Already finalized (closing blob)."); } finalizeBucket(true); }
void function() throws IOException, BinaryBlobAlreadyClosedException { if (_finalized) { throw new BinaryBlobAlreadyClosedException(STR); } finalizeBucket(true); }
/** * finalize the return bucket * @return * @throws IOException * @throws BinaryBlobAlreadyClosedException */
finalize the return bucket
finalizeBucket
{ "repo_name": "saces/fred", "path": "src/freenet/client/async/BinaryBlobWriter.java", "license": "gpl-2.0", "size": 5100 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
154,890
Type[] parameters = type.getActualTypeArguments(); if (parameters.length == 1 && parameters[0] instanceof Class) { return (Class<?>) parameters[0]; } else { logger.warn("The parameterized type does not have exactly one type parameter."); return null; } } ...
Type[] parameters = type.getActualTypeArguments(); if (parameters.length == 1 && parameters[0] instanceof Class) { return (Class<?>) parameters[0]; } else { logger.warn(STR); return null; } }
/** * Returns the generic parameter of a parameterized type, which must have just * one such parameter. Otherwise null is returned. * * @param type The parameterized type. * @return The generic parameter or null. */
Returns the generic parameter of a parameterized type, which must have just one such parameter. Otherwise null is returned
genericParameter
{ "repo_name": "NEUROINFORMATICS-GROUP-FAV-KIV-ZCU/layout-generator", "path": "src/main/java/cz/zcu/kiv/formgen/core/ReflectionUtils.java", "license": "apache-2.0", "size": 6322 }
[ "java.lang.reflect.Type" ]
import java.lang.reflect.Type;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,820,773
protected BasicHttpParams createHttpParams() { final BasicHttpParams params = new BasicHttpParams(); if (configuration.isCookiesEnabled()) { params.setParameter(AllClientPNames.COOKIE_POLICY, CookiePolicy.BEST_MATCH); } else { params.setParameter(AllClientPNames.COOK...
BasicHttpParams function() { final BasicHttpParams params = new BasicHttpParams(); if (configuration.isCookiesEnabled()) { params.setParameter(AllClientPNames.COOKIE_POLICY, CookiePolicy.BEST_MATCH); } else { params.setParameter(AllClientPNames.COOKIE_POLICY, CookiePolicy.IGNORE_COOKIES); } final Integer timeout = (int...
/** * Map the parameters in HttpClientConfiguration to a BasicHttpParams object * * @return a BasicHttpParams object from the HttpClientConfiguration */
Map the parameters in HttpClientConfiguration to a BasicHttpParams object
createHttpParams
{ "repo_name": "ericholscher/dropwizard", "path": "dropwizard-client/src/main/java/com/yammer/dropwizard/client/HttpClientBuilder.java", "license": "apache-2.0", "size": 6289 }
[ "org.apache.http.client.params.AllClientPNames", "org.apache.http.client.params.CookiePolicy", "org.apache.http.params.BasicHttpParams" ]
import org.apache.http.client.params.AllClientPNames; import org.apache.http.client.params.CookiePolicy; import org.apache.http.params.BasicHttpParams;
import org.apache.http.client.params.*; import org.apache.http.params.*;
[ "org.apache.http" ]
org.apache.http;
1,420,480
private static CxxPlatform buildPlatform(CxxToolProvider.Type type, boolean pchEnabled) { return CxxPlatformUtils.build(buildConfig(pchEnabled)) .withCpp( new PreprocessorProvider( new ConstantToolProvider( new HashedFileTool( PathSou...
static CxxPlatform function(CxxToolProvider.Type type, boolean pchEnabled) { return CxxPlatformUtils.build(buildConfig(pchEnabled)) .withCpp( new PreprocessorProvider( new ConstantToolProvider( new HashedFileTool( PathSourcePath.of( new FakeProjectFilesystem(), Paths.get(STR)))), type)); } static final CxxPlatform PLAT...
/** * Build a CxxPlatform for given preprocessor type. * * @return CxxPlatform containing a config which enables pch, and a preprocessor which may or may * not support PCH. */
Build a CxxPlatform for given preprocessor type
buildPlatform
{ "repo_name": "SeleniumHQ/buck", "path": "test/com/facebook/buck/cxx/PrecompiledHeaderFeatureTest.java", "license": "apache-2.0", "size": 18105 }
[ "com.facebook.buck.core.sourcepath.PathSourcePath", "com.facebook.buck.core.toolchain.tool.impl.HashedFileTool", "com.facebook.buck.core.toolchain.toolprovider.impl.ConstantToolProvider", "com.facebook.buck.cxx.toolchain.CxxPlatform", "com.facebook.buck.cxx.toolchain.CxxPlatformUtils", "com.facebook.buck....
import com.facebook.buck.core.sourcepath.PathSourcePath; import com.facebook.buck.core.toolchain.tool.impl.HashedFileTool; import com.facebook.buck.core.toolchain.toolprovider.impl.ConstantToolProvider; import com.facebook.buck.cxx.toolchain.CxxPlatform; import com.facebook.buck.cxx.toolchain.CxxPlatformUtils; import c...
import com.facebook.buck.core.sourcepath.*; import com.facebook.buck.core.toolchain.tool.impl.*; import com.facebook.buck.core.toolchain.toolprovider.impl.*; import com.facebook.buck.cxx.toolchain.*; import com.facebook.buck.io.filesystem.impl.*; import java.nio.file.*;
[ "com.facebook.buck", "java.nio" ]
com.facebook.buck; java.nio;
622,097
@Override public Date getRefresh() { Calendar cal = Calendar.getInstance(); //I really hope nobody wants to change //partitions every millisecond... if(frmtString.contains("S")){ cal.add(Calendar.MILLISECOND, 1); } //TODO: Need to zero out everything after the second, etc els...
Date function() { Calendar cal = Calendar.getInstance(); if(frmtString.contains("S")){ cal.add(Calendar.MILLISECOND, 1); } else if(frmtString.contains("s")){ cal.add(Calendar.SECOND, 1); cal.set(Calendar.MILLISECOND, 0); } else if(frmtString.contains("m")){ cal.set(Calendar.MILLISECOND, 0); cal.set(Calendar.SECOND, 0);...
/** * Returns the next time to refresh the partition */
Returns the next time to refresh the partition
getRefresh
{ "repo_name": "DemandCube/Scribengin", "path": "V1/src/main/java/com/neverwinterdp/scribengin/partitioner/DatePartitioner.java", "license": "agpl-3.0", "size": 3782 }
[ "java.util.Calendar", "java.util.Date" ]
import java.util.Calendar; import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
299,830
@Test public void testAdaptToCallableThrowsException() { Callable callable = () -> { throw new Exception("Test passed"); }; final ForkJoinTask task = ForkJoinTask.adapt(callable); final ForkJoinPool pool = new ForkJoinPool(1); try (ExecutorServiceAutoCloseable cleaner = new Exec...
void function() { Callable callable = () -> { throw new Exception(STR); }; final ForkJoinTask task = ForkJoinTask.adapt(callable); final ForkJoinPool pool = new ForkJoinPool(1); try (ExecutorServiceAutoCloseable cleaner = new ExecutorServiceAutoCloseable(pool)) { pool.execute(task); Integer result = (Integer)task.join(...
/** * adapt uses a Callable to perform a task, converting any checked exception into * RuntimeException */
adapt uses a Callable to perform a task, converting any checked exception into RuntimeException
testAdaptToCallableThrowsException
{ "repo_name": "google/desugar_jdk_libs", "path": "jdk11/src/libcore/luni/src/test/java/libcore/java/util/concurrent/ForkJoinTaskTest.java", "license": "gpl-2.0", "size": 3376 }
[ "java.util.concurrent.Callable", "java.util.concurrent.ForkJoinPool", "java.util.concurrent.ForkJoinTask", "org.junit.Assert" ]
import java.util.concurrent.Callable; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.ForkJoinTask; import org.junit.Assert;
import java.util.concurrent.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
2,646,858
public static boolean createBackupFile(File file) { if (file != null && file.isFile()) { File parent = file.getParentFile(); if (parent.isDirectory()) { String[] list = parent.list(); HashSet<String> set = new HashSet<String>(); set.add...
static boolean function(File file) { if (file != null && file.isFile()) { File parent = file.getParentFile(); if (parent.isDirectory()) { String[] list = parent.list(); HashSet<String> set = new HashSet<String>(); set.addAll(Arrays.asList(list)); String initialName = file.getName(); initialName += ".bak"; String name =...
/** * This method will try to create a backup file of the passed file. * @param file this is the file we want to copy as the backup. * @return true if it was properly copied and false otherwise. */
This method will try to create a backup file of the passed file
createBackupFile
{ "repo_name": "aptana/Pydev", "path": "bundles/org.python.pydev.shared_core/src/org/python/pydev/shared_core/io/FileUtils.java", "license": "epl-1.0", "size": 29455 }
[ "java.io.File", "java.util.Arrays", "java.util.HashMap", "java.util.HashSet", "java.util.Map", "java.util.Set" ]
import java.io.File; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
823,952
if (domain == null) { return null; } if (domain.startsWith(".")) { return null; } String domainName = null; String segment = domain.toLowerCase(Locale.ROOT); while (segment != null) { // An exception rule takes priority over any other ...
if (domain == null) { return null; } if (domain.startsWith(".")) { return null; } String domainName = null; String segment = domain.toLowerCase(Locale.ROOT); while (segment != null) { if (this.exceptions != null && this.exceptions.containsKey(IDN.toUnicode(segment))) { return segment; } if (this.rules.containsKey(IDN.t...
/** * Returns registrable part of the domain for the given domain name of {@code null} * if given domain represents a public suffix. * * @param domain * @return domain root */
Returns registrable part of the domain for the given domain name of null if given domain represents a public suffix
getDomainRoot
{ "repo_name": "byronka/xenos", "path": "lib/lib_src/httpcomponents_source/httpcomponents-client-4.4/httpclient/src/main/java/org/apache/http/conn/util/PublicSuffixMatcher.java", "license": "mit", "size": 4126 }
[ "java.net.IDN", "java.util.Locale" ]
import java.net.IDN; import java.util.Locale;
import java.net.*; import java.util.*;
[ "java.net", "java.util" ]
java.net; java.util;
1,518,194
@Test public final void testOnAlterActionHPadd() { final Player pl = PlayerTestHelper.createPlayer("bob"); pl.setAdminLevel(5000); pl.setBaseHP(100); pl.setHP(10); MockStendhalRPRuleProcessor.get().addPlayer(pl); final RPAction action = new RPAction(); action.put("type", "alter"); action.put("targ...
final void function() { final Player pl = PlayerTestHelper.createPlayer("bob"); pl.setAdminLevel(5000); pl.setBaseHP(100); pl.setHP(10); MockStendhalRPRuleProcessor.get().addPlayer(pl); final RPAction action = new RPAction(); action.put("type", "alter"); action.put(STR, "bob"); action.put("stat", "hp"); action.put("mod...
/** * Tests for onAlterActionHPadd. */
Tests for onAlterActionHPadd
testOnAlterActionHPadd
{ "repo_name": "markuskeunecke/stendhal", "path": "tests/games/stendhal/server/actions/AdministrationActionTest.java", "license": "gpl-2.0", "size": 28095 }
[ "games.stendhal.server.entity.player.Player", "games.stendhal.server.maps.MockStendhalRPRuleProcessor", "org.junit.Assert" ]
import games.stendhal.server.entity.player.Player; import games.stendhal.server.maps.MockStendhalRPRuleProcessor; import org.junit.Assert;
import games.stendhal.server.entity.player.*; import games.stendhal.server.maps.*; import org.junit.*;
[ "games.stendhal.server", "org.junit" ]
games.stendhal.server; org.junit;
2,112,612
void checkFormatOfShell(String shell, Attribute attribute) throws WrongAttributeValueException;
void checkFormatOfShell(String shell, Attribute attribute) throws WrongAttributeValueException;
/** * Check if shell has the right format. * Use regex ^(/[-_a-zA-Z0-9]+)+$ * * @param shell value of shell * @param attribute attribute which need to test shell (needed for right exception) * @throws WrongAttributeValueException if shell has bad format */
Check if shell has the right format. Use regex ^(/[-_a-zA-Z0-9]+)+$
checkFormatOfShell
{ "repo_name": "ondrocks/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/ModulesUtilsBl.java", "license": "bsd-2-clause", "size": 14201 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException" ]
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
1,763,393
public static boolean invokeOnConnection(String method, Object[] params, IPendingServiceCallback callback) { IConnection conn = Red5.getConnectionLocal(); if (conn != null) { log.debug("Connection for invoke: {}", conn); return invokeOnConnection(conn, method, params, callbac...
static boolean function(String method, Object[] params, IPendingServiceCallback callback) { IConnection conn = Red5.getConnectionLocal(); if (conn != null) { log.debug(STR, conn); return invokeOnConnection(conn, method, params, callback); } else { log.warn(STR); return false; } }
/** * Invoke a method on the current connection and handle result. * * @param method * name of the method to invoke * @param params * parameters to pass to the method * @param callback * object to notify when result is received * @return <pr...
Invoke a method on the current connection and handle result
invokeOnConnection
{ "repo_name": "maritelle/red5-server", "path": "src/main/java/org/red5/server/api/service/ServiceUtils.java", "license": "apache-2.0", "size": 13811 }
[ "org.red5.server.api.IConnection", "org.red5.server.api.Red5" ]
import org.red5.server.api.IConnection; import org.red5.server.api.Red5;
import org.red5.server.api.*;
[ "org.red5.server" ]
org.red5.server;
371,500
public void setSqlSessionFactoryBuilder(SqlSessionFactoryBuilder sqlSessionFactoryBuilder) { this.sqlSessionFactoryBuilder = sqlSessionFactoryBuilder; } /** * Set the MyBatis TransactionFactory to use. Default is {@code SpringManagedTransactionFactory}
void function(SqlSessionFactoryBuilder sqlSessionFactoryBuilder) { this.sqlSessionFactoryBuilder = sqlSessionFactoryBuilder; } /** * Set the MyBatis TransactionFactory to use. Default is {@code SpringManagedTransactionFactory}
/** * Sets the {@code SqlSessionFactoryBuilder} to use when creating the {@code SqlSessionFactory}. * * This is mainly meant for testing so that mock SqlSessionFactory classes can be injected. By * default, {@code SqlSessionFactoryBuilder} creates {@code DefaultSqlSessionFactory} instances. * */
Sets the SqlSessionFactoryBuilder to use when creating the SqlSessionFactory. This is mainly meant for testing so that mock SqlSessionFactory classes can be injected. By default, SqlSessionFactoryBuilder creates DefaultSqlSessionFactory instances
setSqlSessionFactoryBuilder
{ "repo_name": "seeyoui/kensite_cms", "path": "src/main/java/com/seeyoui/kensite/framework/system/mybatis/SqlSessionFactoryBean.java", "license": "apache-2.0", "size": 19308 }
[ "org.apache.ibatis.session.SqlSessionFactoryBuilder", "org.apache.ibatis.transaction.TransactionFactory", "org.mybatis.spring.transaction.SpringManagedTransactionFactory" ]
import org.apache.ibatis.session.SqlSessionFactoryBuilder; import org.apache.ibatis.transaction.TransactionFactory; import org.mybatis.spring.transaction.SpringManagedTransactionFactory;
import org.apache.ibatis.session.*; import org.apache.ibatis.transaction.*; import org.mybatis.spring.transaction.*;
[ "org.apache.ibatis", "org.mybatis.spring" ]
org.apache.ibatis; org.mybatis.spring;
2,208,320
public synchronized void loadForTenant(String tenant, List<File> libdirs) { Map<String, JarIdentification> tenantmap = writetenantlibmap.get(tenant); if (tenantmap == null) { // Adds the tenant to the plugins cache tenantmap = new HashMap<String, JarIdentification>(); writetenantlibmap.put(tenant, tenan...
synchronized void function(String tenant, List<File> libdirs) { Map<String, JarIdentification> tenantmap = writetenantlibmap.get(tenant); if (tenantmap == null) { tenantmap = new HashMap<String, JarIdentification>(); writetenantlibmap.put(tenant, tenantmap); } tenantmap.clear(); for (File libdir : libdirs) { try { int ...
/** * Loads libraries and plugins that apply to only one tenant. * * For each jar file in each directory, this method analyzes the file and * puts the jar info into a map indexed by artifactId. */
Loads libraries and plugins that apply to only one tenant. For each jar file in each directory, this method analyzes the file and puts the jar info into a map indexed by artifactId
loadForTenant
{ "repo_name": "deleidos/digitaledge-platform", "path": "webapp-ingestapi/src/main/java/com/deleidos/rtws/webapp/ingestapi/cache/PluginsCache.java", "license": "apache-2.0", "size": 18118 }
[ "com.deleidos.rtws.webapp.ingestapi.validator.ValidationUtils", "java.io.File", "java.io.IOException", "java.util.HashMap", "java.util.List", "java.util.Map", "org.apache.maven.shared.jar.identification.JarIdentification", "org.codehaus.plexus.util.FileUtils" ]
import com.deleidos.rtws.webapp.ingestapi.validator.ValidationUtils; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.maven.shared.jar.identification.JarIdentification; import org.codehaus.plexus.util.FileUtils;
import com.deleidos.rtws.webapp.ingestapi.validator.*; import java.io.*; import java.util.*; import org.apache.maven.shared.jar.identification.*; import org.codehaus.plexus.util.*;
[ "com.deleidos.rtws", "java.io", "java.util", "org.apache.maven", "org.codehaus.plexus" ]
com.deleidos.rtws; java.io; java.util; org.apache.maven; org.codehaus.plexus;
1,823,793
public Object lookup(String name) throws NamingException { Object object = this.jndiObjects.get(name); if (object == null) { throw new NamingException("Unexpected JNDI name '" + name + "': expecting " + this.jndiObjects.keySet()); } return object; }
Object function(String name) throws NamingException { Object object = this.jndiObjects.get(name); if (object == null) { throw new NamingException(STR + name + STR + this.jndiObjects.keySet()); } return object; }
/** * If the name is the expected name specified in the constructor, return the * object provided in the constructor. If the name is unexpected, a * respective NamingException gets thrown. */
If the name is the expected name specified in the constructor, return the object provided in the constructor. If the name is unexpected, a respective NamingException gets thrown
lookup
{ "repo_name": "kingtang/spring-learn", "path": "spring-test/src/main/java/org/springframework/mock/jndi/ExpectedLookupTemplate.java", "license": "gpl-3.0", "size": 2503 }
[ "javax.naming.NamingException" ]
import javax.naming.NamingException;
import javax.naming.*;
[ "javax.naming" ]
javax.naming;
977,520
public void display(Location center, float offsetX, float offsetY, float offsetZ, float speed, int amount, Player... players) { sendPacket(Arrays.asList(players), instantiatePacket(name, center, offsetX, offsetY, offsetZ, speed, amount)); }
void function(Location center, float offsetX, float offsetY, float offsetZ, float speed, int amount, Player... players) { sendPacket(Arrays.asList(players), instantiatePacket(name, center, offsetX, offsetY, offsetZ, speed, amount)); }
/** * Displays a particle effect which is only visible for the specified players * * @param center Center location of the effect * @param offsetX Maximum distance particles can fly away from the center on the x-axis * @param offsetY Maximum distance particles can fly away from the center on the y-axis * @p...
Displays a particle effect which is only visible for the specified players
display
{ "repo_name": "BuzzyOG/Dexoria-Hub", "path": "Copy of Dexoria Hub/src/me/lewys/particles/ParticleEffect.java", "license": "unlicense", "size": 24711 }
[ "java.util.Arrays", "org.bukkit.Location", "org.bukkit.entity.Player" ]
import java.util.Arrays; import org.bukkit.Location; import org.bukkit.entity.Player;
import java.util.*; import org.bukkit.*; import org.bukkit.entity.*;
[ "java.util", "org.bukkit", "org.bukkit.entity" ]
java.util; org.bukkit; org.bukkit.entity;
2,762,438
public ApplicationsClient getApplications() { return this.applications; } private final DeletedApplicationsClient deletedApplications;
ApplicationsClient function() { return this.applications; } private final DeletedApplicationsClient deletedApplications;
/** * Gets the ApplicationsClient object to access its operations. * * @return the ApplicationsClient object. */
Gets the ApplicationsClient object to access its operations
getApplications
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/implementation/GraphRbacManagementClientImpl.java", "license": "mit", "size": 7719 }
[ "com.azure.resourcemanager.authorization.fluent.ApplicationsClient", "com.azure.resourcemanager.authorization.fluent.DeletedApplicationsClient" ]
import com.azure.resourcemanager.authorization.fluent.ApplicationsClient; import com.azure.resourcemanager.authorization.fluent.DeletedApplicationsClient;
import com.azure.resourcemanager.authorization.fluent.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
1,834,136
public int getImeOptions() { return mEditor != null && mEditor.mInputContentType != null ? mEditor.mInputContentType.imeOptions : EditorInfo.IME_NULL; } /** * Change the custom IME action associated with the text view, which * will be reported to an IME with {@link EditorI...
int function() { return mEditor != null && mEditor.mInputContentType != null ? mEditor.mInputContentType.imeOptions : EditorInfo.IME_NULL; } /** * Change the custom IME action associated with the text view, which * will be reported to an IME with {@link EditorInfo#actionLabel}
/** * Get the type of the IME editor. * * @see #setImeOptions(int) * @see android.view.inputmethod.EditorInfo */
Get the type of the IME editor
getImeOptions
{ "repo_name": "szpaddy/android-4.1.2_r2-core", "path": "java/android/widget/TextView.java", "license": "apache-2.0", "size": 343588 }
[ "android.view.inputmethod.EditorInfo" ]
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.*;
[ "android.view" ]
android.view;
706,690
private boolean query(String query) { //logger.debug("Trying to execute query: " + query); Connection connection = null; Statement statement = null; try { // get connected connection = this.getDBConnection(); // create evaluation t...
boolean function(String query) { Connection connection = null; Statement statement = null; try { connection = this.getDBConnection(); statement = connection.createStatement(); statement.execute(query); return true; } catch (SQLException e) { logger.error(STR + e.getMessage()); } return false; }
/** * Executes the given SQL query */
Executes the given SQL query
query
{ "repo_name": "mucke/mucke", "path": "mucke-backend/src/main/java/at/tuwien/mucke/data/DBManager.java", "license": "gpl-3.0", "size": 8920 }
[ "java.sql.Connection", "java.sql.SQLException", "java.sql.Statement" ]
import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,235,604
private void checkUserBelongsToGroup(String owner, String group) throws IOException { List<String> groups = CommonUtils.getGroups(owner); if (groups == null || !groups.contains(group)) { throw new FailedPreconditionException("Owner " + owner + " does not belong to the group " + group); ...
void function(String owner, String group) throws IOException { List<String> groups = CommonUtils.getGroups(owner); if (groups == null !groups.contains(group)) { throw new FailedPreconditionException(STR + owner + STR + group); } } /** * Sets the file attribute. * * @param rpcContext the rpc context * @param inodePath t...
/** * Checks whether the owner belongs to the group. * * @param owner the owner to check * @param group the group to check * @throws FailedPreconditionException if owner does not belong to group */
Checks whether the owner belongs to the group
checkUserBelongsToGroup
{ "repo_name": "apc999/alluxio", "path": "core/server/master/src/main/java/alluxio/master/file/DefaultFileSystemMaster.java", "license": "apache-2.0", "size": 178081 }
[ "com.google.common.collect.Sets", "java.io.IOException", "java.util.List" ]
import com.google.common.collect.Sets; import java.io.IOException; import java.util.List;
import com.google.common.collect.*; import java.io.*; import java.util.*;
[ "com.google.common", "java.io", "java.util" ]
com.google.common; java.io; java.util;
190,850
private void checkDataSourceRef() { Object configuredDSR = _props.get("dataSourceRef"); if (configuredDSR == null) { if (tc.isDebugEnabled()) Tr.debug(tc, "dataSourceRef is not specified, log to filesys"); _isSQLRecoveryLog = false; } else { ...
void function() { Object configuredDSR = _props.get(STR); if (configuredDSR == null) { if (tc.isDebugEnabled()) Tr.debug(tc, STR); _isSQLRecoveryLog = false; } else { if (tc.isDebugEnabled()) Tr.debug(tc, STR); String suffixStr = (String) _props.get(STR); if (tc.isDebugEnabled()) Tr.debug(tc, STR + suffixStr + STR + su...
/** * Determine whether the server is configured to store Tran Logs in an RDBMS, */
Determine whether the server is configured to store Tran Logs in an RDBMS
checkDataSourceRef
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/JTMConfigurationProvider.java", "license": "epl-1.0", "size": 29135 }
[ "com.ibm.websphere.ras.Tr" ]
import com.ibm.websphere.ras.Tr;
import com.ibm.websphere.ras.*;
[ "com.ibm.websphere" ]
com.ibm.websphere;
2,028,192
public void doRemove(RunData data, Context context) { SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid()); // read the form - if rejected, leave things as they are if (!readAliasForm(data, state)) return; // go to remove confirm mode state.setAttri...
void function(RunData data, Context context) { SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid()); if (!readAliasForm(data, state)) return; state.setAttribute("mode", STR); }
/** * doRemove called when "eventSubmit_doRemove" is in the request parameters to confirm removal of the alias */
doRemove called when "eventSubmit_doRemove" is in the request parameters to confirm removal of the alias
doRemove
{ "repo_name": "hackbuteer59/sakai", "path": "alias/alias-tool/tool/src/java/org/sakaiproject/alias/tool/AliasesAction.java", "license": "apache-2.0", "size": 16189 }
[ "org.sakaiproject.cheftool.Context", "org.sakaiproject.cheftool.JetspeedRunData", "org.sakaiproject.cheftool.RunData", "org.sakaiproject.event.api.SessionState" ]
import org.sakaiproject.cheftool.Context; import org.sakaiproject.cheftool.JetspeedRunData; import org.sakaiproject.cheftool.RunData; import org.sakaiproject.event.api.SessionState;
import org.sakaiproject.cheftool.*; import org.sakaiproject.event.api.*;
[ "org.sakaiproject.cheftool", "org.sakaiproject.event" ]
org.sakaiproject.cheftool; org.sakaiproject.event;
1,959,985
private Object readResolve() throws InvalidObjectException { try { return WeekFields.of(firstDayOfWeek, minimalDays); } catch (IllegalArgumentException iae) { throw new InvalidObjectException("Invalid serialized WeekFields: " + iae.getMessage()); } }
Object function() throws InvalidObjectException { try { return WeekFields.of(firstDayOfWeek, minimalDays); } catch (IllegalArgumentException iae) { throw new InvalidObjectException(STR + iae.getMessage()); } }
/** * Return the singleton WeekFields associated with the * {@code firstDayOfWeek} and {@code minimalDays}. * @return the singleton WeekFields for the firstDayOfWeek and minimalDays. * @throws InvalidObjectException if the serialized object has invalid * values for firstDayOfWeek or minimal...
Return the singleton WeekFields associated with the firstDayOfWeek and minimalDays
readResolve
{ "repo_name": "google/desugar_jdk_libs", "path": "jdk11/src/java.base/share/classes/java/time/temporal/WeekFields.java", "license": "gpl-2.0", "size": 55834 }
[ "java.io.InvalidObjectException" ]
import java.io.InvalidObjectException;
import java.io.*;
[ "java.io" ]
java.io;
1,150,271
void putAll(List<Entry<K, V>> entries);
void putAll(List<Entry<K, V>> entries);
/** * Updates the mappings of the specified key-value {@code entries}. * * @param entries the updated mappings to put into this table. * @throws NullPointerException if any of the specified {@code entries} has {@code null} as key or value. */
Updates the mappings of the specified key-value entries
putAll
{ "repo_name": "TiVo/samza", "path": "samza-api/src/main/java/org/apache/samza/table/ReadWriteTable.java", "license": "apache-2.0", "size": 2659 }
[ "java.util.List", "org.apache.samza.storage.kv.Entry" ]
import java.util.List; import org.apache.samza.storage.kv.Entry;
import java.util.*; import org.apache.samza.storage.kv.*;
[ "java.util", "org.apache.samza" ]
java.util; org.apache.samza;
1,923,214
void onPodcastListStoreFailed(List<Podcast> podcastList, Uri outputFile, Exception exception);
void onPodcastListStoreFailed(List<Podcast> podcastList, Uri outputFile, Exception exception);
/** * Called on failure. * * @param podcastList Podcast list attempted to store. * @param outputFile The destination the list was not written to. * @param exception The reason for the failure. */
Called on failure
onPodcastListStoreFailed
{ "repo_name": "salema/Podcatcher-Deluxe-Android-Studio", "path": "app/src/main/java/com/podcatcher/deluxe/listeners/OnStorePodcastListListener.java", "license": "gpl-3.0", "size": 1664 }
[ "android.net.Uri", "com.podcatcher.deluxe.model.types.Podcast", "java.util.List" ]
import android.net.Uri; import com.podcatcher.deluxe.model.types.Podcast; import java.util.List;
import android.net.*; import com.podcatcher.deluxe.model.types.*; import java.util.*;
[ "android.net", "com.podcatcher.deluxe", "java.util" ]
android.net; com.podcatcher.deluxe; java.util;
114,461
public void testSetID() { assertEquals(27, this.person.getID()); assertEquals(27, this.restrictedPerson.getID()); this.restrictedPerson.setID(12); assertEquals(12, this.person.getID()); assertEquals(12, this.restrictedPerson.getID()); } pri...
void function() { assertEquals(27, this.person.getID()); assertEquals(27, this.restrictedPerson.getID()); this.restrictedPerson.setID(12); assertEquals(12, this.person.getID()); assertEquals(12, this.restrictedPerson.getID()); } private class DummySecurityContext implements ISecurityContext {
/** * Test that the RestrictedPerson setID method writes through * to the underlying IPerson. */
Test that the RestrictedPerson setID method writes through to the underlying IPerson
testSetID
{ "repo_name": "MichaelVose2/uPortal", "path": "uportal-war/src/test/java/org/apereo/portal/security/provider/RestrictedPersonTest.java", "license": "apache-2.0", "size": 8138 }
[ "org.apereo.portal.security.ISecurityContext" ]
import org.apereo.portal.security.ISecurityContext;
import org.apereo.portal.security.*;
[ "org.apereo.portal" ]
org.apereo.portal;
200,547
public static Connection connectToImpala(String impalaUrl) { Connection connection = null; try { // Connect to the impala server System.out.println(String.format("Connecting to impalad (%s)", impalaUrl)); connection = DriverManager.getConnection(impalaUrl); // Create a results database connection...
static Connection function(String impalaUrl) { Connection connection = null; try { System.out.println(String.format(STR, impalaUrl)); connection = DriverManager.getConnection(impalaUrl); connection.createStatement() .executeUpdate(String.format(STR, Tags.SEMPALA_RESULTS_DB_NAME)); } catch (SQLException e) { logger.fata...
/** * Connect to Impala and create a database for the tables where the result * of running queries is stored. * * @param impalaUrl url to Impala * @return initialized Imapala connection */
Connect to Impala and create a database for the tables where the result of running queries is stored
connectToImpala
{ "repo_name": "aschaetzle/Sempala", "path": "sempala-translator/src/main/java/de/uni_freiburg/informatik/dbis/sempala/translator/run/Main.java", "license": "apache-2.0", "size": 21276 }
[ "de.uni_freiburg.informatik.dbis.sempala.translator.Tags", "java.sql.Connection", "java.sql.DriverManager", "java.sql.SQLException" ]
import de.uni_freiburg.informatik.dbis.sempala.translator.Tags; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException;
import de.uni_freiburg.informatik.dbis.sempala.translator.*; import java.sql.*;
[ "de.uni_freiburg.informatik", "java.sql" ]
de.uni_freiburg.informatik; java.sql;
1,282,741
void onDIPScaleChanged(float dipScale); } private static final DisplayAndroidObserver[] EMPTY_OBSERVER_ARRAY = new DisplayAndroidObserver[0]; private final WeakHashMap<DisplayAndroidObserver, Object > mObservers; // Do NOT add strong references to objects with potentially complex l...
void onDIPScaleChanged(float dipScale); } private static final DisplayAndroidObserver[] EMPTY_OBSERVER_ARRAY = new DisplayAndroidObserver[0]; private final WeakHashMap<DisplayAndroidObserver, Object > mObservers; private final int mDisplayId; private Point mSize; private float mDipScale; private int mBitsPerPixel; priv...
/** * Called whenever the screen density changes. * * @param screen density, aka Density Independent Pixel scale. */
Called whenever the screen density changes
onDIPScaleChanged
{ "repo_name": "mogoweb/365browser", "path": "app/src/main/java/org/chromium/ui/display/DisplayAndroid.java", "license": "apache-2.0", "size": 7703 }
[ "android.graphics.Point", "java.util.WeakHashMap" ]
import android.graphics.Point; import java.util.WeakHashMap;
import android.graphics.*; import java.util.*;
[ "android.graphics", "java.util" ]
android.graphics; java.util;
2,376,905
@ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String vmName, Boolean forceDeletion);
@ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String vmName, Boolean forceDeletion);
/** * The operation to delete a virtual machine. * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). * @throws IllegalArgumentException...
The operation to delete a virtual machine
delete
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java", "license": "mit", "size": 119505 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.*;
[ "com.azure.core" ]
com.azure.core;
1,953,818
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<Void> deleteAsync(String resourceGroupName, String vpnSiteName) { return beginDeleteAsync(resourceGroupName, vpnSiteName).last().flatMap(this.client::getLroFinalResultOrError); }
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Void> function(String resourceGroupName, String vpnSiteName) { return beginDeleteAsync(resourceGroupName, vpnSiteName).last().flatMap(this.client::getLroFinalResultOrError); }
/** * Deletes a VpnSite. * * @param resourceGroupName The resource group name of the VpnSite. * @param vpnSiteName The name of the VpnSite being deleted. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is reje...
Deletes a VpnSite
deleteAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java", "license": "mit", "size": 70877 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.*;
[ "com.azure.core" ]
com.azure.core;
1,256,446
private static boolean domainExists(IUser user, String domainId) { for (IDomain domain : user.getDomains()) { if (domainId.equals(domain.getId())) { return true; } } return false; }
static boolean function(IUser user, String domainId) { for (IDomain domain : user.getDomains()) { if (domainId.equals(domain.getId())) { return true; } } return false; }
/** * Checks if there is a {@link IDomain} matching the specified domainId. */
Checks if there is a <code>IDomain</code> matching the specified domainId
domainExists
{ "repo_name": "jludvice/fabric8", "path": "fabric/fabric-openshift/src/main/java/io/fabric8/openshift/OpenshiftContainerProvider.java", "license": "apache-2.0", "size": 17793 }
[ "com.openshift.client.IDomain", "com.openshift.client.IUser" ]
import com.openshift.client.IDomain; import com.openshift.client.IUser;
import com.openshift.client.*;
[ "com.openshift.client" ]
com.openshift.client;
1,782,260
public void dump() { if (dumped) { return; } try { introspect(new TrDumpWriter(tc)); } finally { dumped = true; } } // dump
void function() { if (dumped) { return; } try { introspect(new TrDumpWriter(tc)); } finally { dumped = true; } }
/** * Dump the internal state of an object to the trace stream. <p> * * For more information, see {@link Dumpable#dump}. <p> **/
Dump the internal state of an object to the trace stream. For more information, see <code>Dumpable#dump</code>.
dump
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/Cache.java", "license": "epl-1.0", "size": 44642 }
[ "com.ibm.ws.ejbcontainer.diagnostics.TrDumpWriter" ]
import com.ibm.ws.ejbcontainer.diagnostics.TrDumpWriter;
import com.ibm.ws.ejbcontainer.diagnostics.*;
[ "com.ibm.ws" ]
com.ibm.ws;
2,139,603
protected void reportError(SyntaxTreeNode element, Parser parser, String errorCode, String message) { final ErrorMsg error = new ErrorMsg(errorCode, message, element); parser.reportError(Constants.ERROR, error); }
void function(SyntaxTreeNode element, Parser parser, String errorCode, String message) { final ErrorMsg error = new ErrorMsg(errorCode, message, element); parser.reportError(Constants.ERROR, error); }
/** * Report an error to the parser. * @param element The element in which the error occured (normally 'this' * but it could also be an expression/pattern/etc.) * @param parser The XSLT parser to report the error to. * @param error The error code (from util/ErrorMsg). * @param message Any ...
Report an error to the parser
reportError
{ "repo_name": "haikuowuya/android_system_code", "path": "src/com/sun/org/apache/xalan/internal/xsltc/compiler/SyntaxTreeNode.java", "license": "apache-2.0", "size": 33289 }
[ "com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg" ]
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg;
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.*;
[ "com.sun.org" ]
com.sun.org;
2,074,367
private void maybeSetOrUpdateTitle() { if (blipUi != null && editor != null) { CMutableDocument document = editor.getDocument(); ConversationBlip editBlip = views.getBlip(blipUi); if (editBlip.isRoot() && !TitleHelper.hasExplicitTitle(document)) { Range titleRange = TitleHelper.findImpli...
void function() { if (blipUi != null && editor != null) { CMutableDocument document = editor.getDocument(); ConversationBlip editBlip = views.getBlip(blipUi); if (editBlip.isRoot() && !TitleHelper.hasExplicitTitle(document)) { Range titleRange = TitleHelper.findImplicitTitle(document); TitleHelper.setImplicitTitle(docu...
/** * Sets or replaces an automatic title for the wave by annotating the first * line of the root blip with <code>conv/title</code> annotation. Has * effect only when the first line of the root blip is edited and no explicit * title is set. */
Sets or replaces an automatic title for the wave by annotating the first line of the root blip with <code>conv/title</code> annotation. Has effect only when the first line of the root blip is edited and no explicit title is set
maybeSetOrUpdateTitle
{ "repo_name": "vega113/incubator-wave", "path": "wave/src/main/java/org/waveprotocol/wave/client/wavepanel/impl/title/WaveTitleHandler.java", "license": "apache-2.0", "size": 3730 }
[ "org.waveprotocol.wave.client.editor.content.CMutableDocument", "org.waveprotocol.wave.model.conversation.ConversationBlip", "org.waveprotocol.wave.model.conversation.TitleHelper", "org.waveprotocol.wave.model.document.util.Range" ]
import org.waveprotocol.wave.client.editor.content.CMutableDocument; import org.waveprotocol.wave.model.conversation.ConversationBlip; import org.waveprotocol.wave.model.conversation.TitleHelper; import org.waveprotocol.wave.model.document.util.Range;
import org.waveprotocol.wave.client.editor.content.*; import org.waveprotocol.wave.model.conversation.*; import org.waveprotocol.wave.model.document.util.*;
[ "org.waveprotocol.wave" ]
org.waveprotocol.wave;
1,008,306
public void testApp() { assertTrue( true ); Configuration configurations = new Configuration( "global.properties", "UTF-8"); Properties properties = configurations.getProperties(); String test1 = properties.getProperty( "test1" ); String test2 = properties.getProper...
void function() { assertTrue( true ); Configuration configurations = new Configuration( STR, "UTF-8"); Properties properties = configurations.getProperties(); String test1 = properties.getProperty( "test1" ); String test2 = properties.getProperty( "test2" ); System.out.println( STR + test1 + "\n" + test2 + STR); Iterat...
/** * Rigourous Test :-) */
Rigourous Test :-)
testApp
{ "repo_name": "smilingliuwei/tools", "path": "configurator/src/test/java/com/smilingliuwei/configurator/AppTest.java", "license": "gpl-2.0", "size": 1325 }
[ "java.util.Iterator", "java.util.Properties" ]
import java.util.Iterator; import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
1,743,783
public void testSessionIsTemporary() { tester.startPage(LoginPage.class); tester.setupRequestAndResponse(); assertTrue(tester.getWicketSession().isTemporary()); tester.processRequestCycle(LoginPage.class); FormTester form = tester.newFormTester("signInPanel:signInForm"); form.setValue("username",...
void function() { tester.startPage(LoginPage.class); tester.setupRequestAndResponse(); assertTrue(tester.getWicketSession().isTemporary()); tester.processRequestCycle(LoginPage.class); FormTester form = tester.newFormTester(STR); form.setValue(STR, "test"); form.setValue(STR, "test"); tester.getWicketSession().bind(); ...
/** * Test if we can keep a session temporary. */
Test if we can keep a session temporary
testSessionIsTemporary
{ "repo_name": "Servoy/wicket", "path": "wicket/src/test/java/org/apache/wicket/stateless/TemporarySessionTest.java", "license": "apache-2.0", "size": 2966 }
[ "org.apache.wicket.Session", "org.apache.wicket.stateless.pages.HomePage", "org.apache.wicket.stateless.pages.LoginPage", "org.apache.wicket.util.tester.FormTester" ]
import org.apache.wicket.Session; import org.apache.wicket.stateless.pages.HomePage; import org.apache.wicket.stateless.pages.LoginPage; import org.apache.wicket.util.tester.FormTester;
import org.apache.wicket.*; import org.apache.wicket.stateless.pages.*; import org.apache.wicket.util.tester.*;
[ "org.apache.wicket" ]
org.apache.wicket;
2,562,298
public ServiceFuture<VirtualNetworkGatewayInner> beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, final ServiceCallback<VirtualNetworkGatewayInner> serviceCallback) { return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGa...
ServiceFuture<VirtualNetworkGatewayInner> function(String resourceGroupName, String virtualNetworkGatewayName, final ServiceCallback<VirtualNetworkGatewayInner> serviceCallback) { return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName), serviceCallback); }
/** * Updates a virtual network gateway tags. * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws Ill...
Updates a virtual network gateway tags
beginUpdateTagsAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/network/v2020_03_01/implementation/VirtualNetworkGatewaysInner.java", "license": "mit", "size": 304865 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
2,790,150
public void sendUrgentData (int data) throws IOException { if (!getImpl().supportsUrgentData ()) { throw new SocketException ("Urgent data not supported"); } getImpl().sendUrgentData (data); } /** * Enable/disable {@link SocketOptions#SO_OOBINLINE SO_OOBINLINE}
void function (int data) throws IOException { if (!getImpl().supportsUrgentData ()) { throw new SocketException (STR); } getImpl().sendUrgentData (data); } /** * Enable/disable {@link SocketOptions#SO_OOBINLINE SO_OOBINLINE}
/** * Send one byte of urgent data on the socket. The byte to be sent is the lowest eight * bits of the data parameter. The urgent byte is * sent after any preceding writes to the socket OutputStream * and before any future writes to the OutputStream. * @param data The byte of data to send ...
Send one byte of urgent data on the socket. The byte to be sent is the lowest eight bits of the data parameter. The urgent byte is sent after any preceding writes to the socket OutputStream and before any future writes to the OutputStream
sendUrgentData
{ "repo_name": "isaacl/openjdk-jdk", "path": "src/share/classes/java/net/Socket.java", "license": "gpl-2.0", "size": 71069 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,960,480
@Test public void testToArray() { // NOPMD (assert missing) for (int i=0;i<ARRAY_LENGTH;i++) { // initialize DiskUsageRecord record = new DiskUsageRecord(LONG_VALUES.get(i % LONG_VALUES.size()), STRING_VALUES.get(i % STRING_VALUES.size()), STRING_VALUES.get(i % STRING_VALUES.size()), DOUBLE_VALUES.get(i % DO...
void function() { for (int i=0;i<ARRAY_LENGTH;i++) { DiskUsageRecord record = new DiskUsageRecord(LONG_VALUES.get(i % LONG_VALUES.size()), STRING_VALUES.get(i % STRING_VALUES.size()), STRING_VALUES.get(i % STRING_VALUES.size()), DOUBLE_VALUES.get(i % DOUBLE_VALUES.size()), DOUBLE_VALUES.get(i % DOUBLE_VALUES.size()), D...
/** * Tests {@link DiskUsageRecord#TestDiskUsageRecord(String, String, long, long, long, String, int, int)}. */
Tests <code>DiskUsageRecord#TestDiskUsageRecord(String, String, long, long, long, String, int, int)</code>
testToArray
{ "repo_name": "HaStr/kieker", "path": "kieker-common/test-gen/kieker/test/common/junit/record/system/TestGeneratedDiskUsageRecord.java", "license": "apache-2.0", "size": 13302 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
35,848
public void setLegendItemLabelGenerator( CategorySeriesLabelGenerator generator);
void function( CategorySeriesLabelGenerator generator);
/** * Sets the legend item label generator and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param generator the generator (<code>null</code> not permitted). * * @see #getLegendItemLabelGenerator() * * @since 1.2.0 */
Sets the legend item label generator and sends a <code>RendererChangeEvent</code> to all registered listeners
setLegendItemLabelGenerator
{ "repo_name": "SpoonLabs/astor", "path": "examples/chart_11/source/org/jfree/chart/renderer/category/CategoryItemRenderer.java", "license": "gpl-2.0", "size": 64985 }
[ "org.jfree.chart.labels.CategorySeriesLabelGenerator" ]
import org.jfree.chart.labels.CategorySeriesLabelGenerator;
import org.jfree.chart.labels.*;
[ "org.jfree.chart" ]
org.jfree.chart;
1,678,490
public final Term parse(final String code) throws ParseException { return parse(code, defaultNamespace); }
final Term function(final String code) throws ParseException { return parse(code, defaultNamespace); }
/** * Parses the expression given in the code string. * Names in the code string are resolved using the default namespace. * * @param code the code string, for the syntax of valid expressions refer * to the class description * @throws ParseException if a parse reportError occur...
Parses the expression given in the code string. Names in the code string are resolved using the default namespace
parse
{ "repo_name": "arraydev/snap-engine", "path": "snap-core/src/main/java/com/bc/jexp/impl/ParserImpl.java", "license": "gpl-3.0", "size": 39007 }
[ "com.bc.jexp.ParseException", "com.bc.jexp.Term" ]
import com.bc.jexp.ParseException; import com.bc.jexp.Term;
import com.bc.jexp.*;
[ "com.bc.jexp" ]
com.bc.jexp;
2,122,516
public String getClassType() { return Dependable.SEQUENCE; }
String function() { return Dependable.SEQUENCE; }
/** * Get the provider's type. * * @return char The provider's type. */
Get the provider's type
getClassType
{ "repo_name": "kavin256/Derby", "path": "java/engine/org/apache/derby/iapi/sql/dictionary/SequenceDescriptor.java", "license": "apache-2.0", "size": 9177 }
[ "org.apache.derby.catalog.Dependable" ]
import org.apache.derby.catalog.Dependable;
import org.apache.derby.catalog.*;
[ "org.apache.derby" ]
org.apache.derby;
2,229,105
private double loadAmountResource(String loader, double amountLoading, Integer resource, Map<Integer, Number> manifest, boolean mandatory) { String resourceName = ResourceUtil.findAmountResourceName(resource); // Determine amount to load. boolean usedSupply = false; double amountNeeded = manifes...
double function(String loader, double amountLoading, Integer resource, Map<Integer, Number> manifest, boolean mandatory) { String resourceName = ResourceUtil.findAmountResourceName(resource); boolean usedSupply = false; double amountNeeded = manifest.get(resource).doubleValue(); double amountToLoad = Math.min(amountNee...
/** * Loads the vehicle with an amount resource from the settlement. * * @param loader Entity doing the loading * @param amountLoading the amount (kg) the person can load in this time period. * @param resource the amount resource to be loaded. * @param manifest The Resources being loaded * @param m...
Loads the vehicle with an amount resource from the settlement
loadAmountResource
{ "repo_name": "mars-sim/mars-sim", "path": "mars-sim-core/src/main/java/org/mars_sim/msp/core/person/ai/task/LoadingController.java", "license": "gpl-3.0", "size": 19086 }
[ "java.util.Map", "org.mars_sim.msp.core.resource.ResourceUtil" ]
import java.util.Map; import org.mars_sim.msp.core.resource.ResourceUtil;
import java.util.*; import org.mars_sim.msp.core.resource.*;
[ "java.util", "org.mars_sim.msp" ]
java.util; org.mars_sim.msp;
948,628
public Class<?> findClass(String className, ObjectName aLoader) throws ReflectionException, InstanceNotFoundException { if (aLoader == null) throw new RuntimeOperationsException(new IllegalArgumentException(), "Null loader passed in parameter"); // Retrieve the...
Class<?> function(String className, ObjectName aLoader) throws ReflectionException, InstanceNotFoundException { if (aLoader == null) throw new RuntimeOperationsException(new IllegalArgumentException(), STR); ClassLoader loader = null; synchronized(this) { if (clr!=null) loader = clr.getClassLoader(aLoader); } if (loade...
/** * Gets the class for the specified class name using the specified * class loader */
Gets the class for the specified class name using the specified class loader
findClass
{ "repo_name": "haikuowuya/android_system_code", "path": "src/com/sun/jmx/mbeanserver/MBeanInstantiator.java", "license": "apache-2.0", "size": 27711 }
[ "javax.management.InstanceNotFoundException", "javax.management.ObjectName", "javax.management.ReflectionException", "javax.management.RuntimeOperationsException" ]
import javax.management.InstanceNotFoundException; import javax.management.ObjectName; import javax.management.ReflectionException; import javax.management.RuntimeOperationsException;
import javax.management.*;
[ "javax.management" ]
javax.management;
1,051,314
@NotNull ModuleFixtureBuilder<T> addSourceRoot(@NotNull String sourceRootPath);
ModuleFixtureBuilder<T> addSourceRoot(@NotNull String sourceRootPath);
/** * Add source root to the module configuration. * {@link #addContentRoot(String)} should be called first * * @param sourceRootPath path to your source folder (relative to the first content root) * @return current builder */
Add source root to the module configuration. <code>#addContentRoot(String)</code> should be called first
addSourceRoot
{ "repo_name": "siosio/intellij-community", "path": "platform/testFramework/src/com/intellij/testFramework/builders/ModuleFixtureBuilder.java", "license": "apache-2.0", "size": 1203 }
[ "org.jetbrains.annotations.NotNull" ]
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
2,260,897
public Timestamp getValidTo();
Timestamp function();
/** Get Valid to. * Valid to including this date (last day) */
Get Valid to. Valid to including this date (last day)
getValidTo
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/I_C_JobAssignment.java", "license": "gpl-2.0", "size": 5643 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,075,613
public static String[] parseCallData(String call) { ArrayList<String> data = new ArrayList<String>(); data.add(""); // check for empty argument list if (call.indexOf(")") == call.indexOf("(") + 1) return (new String[0]); // X(a,b) => a,b call = call.substring(call.indexOf("(") + 1, call...
static String[] function(String call) { ArrayList<String> data = new ArrayList<String>(); data.add(STR)STR(STR(STRstripped=\STR\STRSTR,STR') (current == '\'') ) counter = 1; lastSeen = current; } } } String tmp = data.get(data.size() - 1); tmp = tmp.trim(); data.set(data.size() - 1, tmp); return (data.toArray(new Strin...
/** * Parses the data given by the call of this function or stored * procedure * @param call The call itself, this is the name, followed * by the arguments in brackets. Variables (for OUT parameters) * start with "@". Examples: <br> * CalcLength("HelloWorld", @strlength), <br> * PlusEins(15) <- Th...
Parses the data given by the call of this function or stored procedure
parseCallData
{ "repo_name": "mxhdev/SQLChecker", "path": "src/sqlchecker/core/SQLCallable.java", "license": "gpl-3.0", "size": 11930 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,900,365
public Object format(Object value) { Object formatted = value; if (value instanceof String) { String statusCode = (String) value; if (StringUtils.equals(statusCode, CLOSED_CD)) { formatted = CLOSED_MSG; } else if (StringUtils.equals(s...
Object function(Object value) { Object formatted = value; if (value instanceof String) { String statusCode = (String) value; if (StringUtils.equals(statusCode, CLOSED_CD)) { formatted = CLOSED_MSG; } else if (StringUtils.equals(statusCode, OPEN_CD)) { formatted = OPEN_MSG; } else if (StringUtils.equals(statusCode, LOCK...
/** * Converts the given status message into a status code. */
Converts the given status message into a status code
format
{ "repo_name": "bhutchinson/kfs", "path": "kfs-core/src/main/java/org/kuali/kfs/fp/businessobject/format/CashDrawerStatusCodeFormatter.java", "license": "agpl-3.0", "size": 3413 }
[ "org.apache.commons.lang.StringUtils" ]
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.*;
[ "org.apache.commons" ]
org.apache.commons;
2,804,993
private void openSolutionViewer(EObject model, IFile featureModelFile) { IEditorDescriptor[] descriptors = PlatformUI.getWorkbench(). getEditorRegistry().getEditors("model."+featureModelFile.getFileExtension()); for(int i=0; i<descriptors.length; i++) { try { if(model instanceof HyConfiguration...
void function(EObject model, IFile featureModelFile) { IEditorDescriptor[] descriptors = PlatformUI.getWorkbench(). getEditorRegistry().getEditors(STR+featureModelFile.getFileExtension()); for(int i=0; i<descriptors.length; i++) { try { if(model instanceof HyConfiguration && descriptors[i].getId().equals(STR)) { EvoCon...
/** * Finds the registered viewer and shows it. The viewer gives the user the ability to select a * suggested solution for a found anomaly * * @param featureModelFile */
Finds the registered viewer and shows it. The viewer gives the user the ability to select a suggested solution for a found anomaly
openSolutionViewer
{ "repo_name": "DarwinSPL/EvoRepair", "path": "plugins/de.evorepair.analysis.solver/src/de/evorepair/analysis/toolbar/EvoToolbarButtonHandler.java", "license": "apache-2.0", "size": 20337 }
[ "de.evorepair.analysis.mapping.viewer.viewer.EvoMappingRepairSuggestionViewer", "de.evorepair.analysis.viewer.viewer.EvoConfigurationRepairSuggestionViewer", "de.evorepair.eclipse.util.EvoEclipseUtil", "eu.hyvar.feature.configuration.HyConfiguration", "eu.hyvar.feature.mapping.HyMappingModel", "org.eclips...
import de.evorepair.analysis.mapping.viewer.viewer.EvoMappingRepairSuggestionViewer; import de.evorepair.analysis.viewer.viewer.EvoConfigurationRepairSuggestionViewer; import de.evorepair.eclipse.util.EvoEclipseUtil; import eu.hyvar.feature.configuration.HyConfiguration; import eu.hyvar.feature.mapping.HyMappingModel; ...
import de.evorepair.analysis.mapping.viewer.viewer.*; import de.evorepair.analysis.viewer.viewer.*; import de.evorepair.eclipse.util.*; import eu.hyvar.feature.configuration.*; import eu.hyvar.feature.mapping.*; import org.eclipse.core.resources.*; import org.eclipse.emf.ecore.*; import org.eclipse.ui.*; import org.ecl...
[ "de.evorepair.analysis", "de.evorepair.eclipse", "eu.hyvar.feature", "org.eclipse.core", "org.eclipse.emf", "org.eclipse.ui" ]
de.evorepair.analysis; de.evorepair.eclipse; eu.hyvar.feature; org.eclipse.core; org.eclipse.emf; org.eclipse.ui;
1,468,586
public void _getBoolean() { boolean result = true ; int col = findColumnOfType(Boolean.class) ; if (col < 0) log.println("Type not found in relation: not tested"); else { try { oObj.getBoolean(col); } catch (SQLException e) { lo...
void function() { boolean result = true ; int col = findColumnOfType(Boolean.class) ; if (col < 0) log.println(STR); else { try { oObj.getBoolean(col); } catch (SQLException e) { log.println(STR) ; log.println(e) ; result = false ; } } tRes.tested(STR, result) ; }
/** * Has <b>OK</b> status if no exceptions occurred in method call. */
Has OK status if no exceptions occurred in method call
_getBoolean
{ "repo_name": "qt-haiku/LibreOffice", "path": "qadevOOo/tests/java/ifc/sdbc/_XRow.java", "license": "gpl-3.0", "size": 15909 }
[ "com.sun.star.sdbc.SQLException" ]
import com.sun.star.sdbc.SQLException;
import com.sun.star.sdbc.*;
[ "com.sun.star" ]
com.sun.star;
1,235,986