method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public void setOnMouseOver(String onMouseOver) {
_theadTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEOVER, onMouseOver);
} | void function(String onMouseOver) { _theadTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEOVER, onMouseOver); } | /**
* Sets the onMouseOver JavaScript event for the HTML thead tag.
*
* @param onMouseOver the onMouseOver event.
* @jsptagref.attributedescription The onMouseOver JavaScript event for the HTML thead tag.
* @jsptagref.attributesyntaxvalue <i>string_onMouseOver</i>
* @netui:attribute requir... | Sets the onMouseOver JavaScript event for the HTML thead tag | setOnMouseOver | {
"repo_name": "moparisthebest/beehive",
"path": "beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Header.java",
"license": "apache-2.0",
"size": 21884
} | [
"org.apache.beehive.netui.tags.html.HtmlConstants",
"org.apache.beehive.netui.tags.rendering.AbstractHtmlState"
] | import org.apache.beehive.netui.tags.html.HtmlConstants; import org.apache.beehive.netui.tags.rendering.AbstractHtmlState; | import org.apache.beehive.netui.tags.html.*; import org.apache.beehive.netui.tags.rendering.*; | [
"org.apache.beehive"
] | org.apache.beehive; | 831,549 |
public static boolean isRowVectorShape(IntBuffer shapeInfo) {
int rank = Shape.rank(shapeInfo);
IntBuffer shape = Shape.shapeOf(shapeInfo);
return (rank == 2 && shape.get(0) == 1) || rank == 1;
} | static boolean function(IntBuffer shapeInfo) { int rank = Shape.rank(shapeInfo); IntBuffer shape = Shape.shapeOf(shapeInfo); return (rank == 2 && shape.get(0) == 1) rank == 1; } | /**
* Returns true if the given shape is of length 1
* or provided the shape length is 2:
* element 0 is 1
* @param shapeInfo the shape info to check
* @return true if the above conditions hold,false otherwise
*/ | Returns true if the given shape is of length 1 or provided the shape length is 2: element 0 is 1 | isRowVectorShape | {
"repo_name": "huitseeker/nd4j",
"path": "nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/shape/Shape.java",
"license": "apache-2.0",
"size": 76141
} | [
"java.nio.IntBuffer"
] | import java.nio.IntBuffer; | import java.nio.*; | [
"java.nio"
] | java.nio; | 1,722,796 |
public UpdateRequestBuilder setDoc(XContentType xContentType, Object... source) {
request.doc(xContentType, source);
return this;
} | UpdateRequestBuilder function(XContentType xContentType, Object... source) { request.doc(xContentType, source); return this; } | /**
* Sets the doc to use for updates when a script is not specified, the doc provided
* is a field and value pairs.
*/ | Sets the doc to use for updates when a script is not specified, the doc provided is a field and value pairs | setDoc | {
"repo_name": "ern/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java",
"license": "apache-2.0",
"size": 12164
} | [
"org.elasticsearch.common.xcontent.XContentType"
] | import org.elasticsearch.common.xcontent.XContentType; | import org.elasticsearch.common.xcontent.*; | [
"org.elasticsearch.common"
] | org.elasticsearch.common; | 2,365,676 |
public void ungrabMouseCursor()
{
Mouse.setCursorPosition(Display.getWidth() / 2, Display.getHeight() / 2);
Mouse.setGrabbed(false);
} | void function() { Mouse.setCursorPosition(Display.getWidth() / 2, Display.getHeight() / 2); Mouse.setGrabbed(false); } | /**
* Ungrabs the mouse cursor so it can be moved and set it to the center of the screen
*/ | Ungrabs the mouse cursor so it can be moved and set it to the center of the screen | ungrabMouseCursor | {
"repo_name": "Hexeption/Youtube-Hacked-Client-1.8",
"path": "minecraft/net/minecraft/util/MouseHelper.java",
"license": "mit",
"size": 894
} | [
"org.lwjgl.input.Mouse",
"org.lwjgl.opengl.Display"
] | import org.lwjgl.input.Mouse; import org.lwjgl.opengl.Display; | import org.lwjgl.input.*; import org.lwjgl.opengl.*; | [
"org.lwjgl.input",
"org.lwjgl.opengl"
] | org.lwjgl.input; org.lwjgl.opengl; | 1,913,288 |
public static void addKeyName(KeyInfo keyInfo, String keyNameValue) {
KeyName keyName = (KeyName) Configuration.getBuilderFactory()
.getBuilder(KeyName.DEFAULT_ELEMENT_NAME)
.buildObject(KeyName.DEFAULT_ELEMENT_NAME);
keyName.setValue(keyNameValue);
keyInfo.getKe... | static void function(KeyInfo keyInfo, String keyNameValue) { KeyName keyName = (KeyName) Configuration.getBuilderFactory() .getBuilder(KeyName.DEFAULT_ELEMENT_NAME) .buildObject(KeyName.DEFAULT_ELEMENT_NAME); keyName.setValue(keyNameValue); keyInfo.getKeyNames().add(keyName); } | /**
* Add a new {@link KeyName} value to a KeyInfo.
*
* @param keyInfo the KeyInfo to which to add the new value
* @param keyNameValue the new key name value to add
*/ | Add a new <code>KeyName</code> value to a KeyInfo | addKeyName | {
"repo_name": "duck1123/java-xmltooling",
"path": "src/main/java/org/opensaml/xml/security/keyinfo/KeyInfoHelper.java",
"license": "apache-2.0",
"size": 29397
} | [
"org.opensaml.xml.Configuration",
"org.opensaml.xml.signature.KeyInfo",
"org.opensaml.xml.signature.KeyName"
] | import org.opensaml.xml.Configuration; import org.opensaml.xml.signature.KeyInfo; import org.opensaml.xml.signature.KeyName; | import org.opensaml.xml.*; import org.opensaml.xml.signature.*; | [
"org.opensaml.xml"
] | org.opensaml.xml; | 2,419,547 |
GeodesyMLType mobs = marshaller.unmarshal(TestResources.customGeodesyMLSiteLogReader("IRKJ_RadioInterference_NoToDate"),
GeodesyMLType.class).getValue();
SiteLogType logItem = GeodesyMLUtils.getElementFromJAXBElements(mobs.getElements(), SiteLogType.class).findFirst().get();
RadioI... | GeodesyMLType mobs = marshaller.unmarshal(TestResources.customGeodesyMLSiteLogReader(STR), GeodesyMLType.class).getValue(); SiteLogType logItem = GeodesyMLUtils.getElementFromJAXBElements(mobs.getElements(), SiteLogType.class).findFirst().get(); RadioInterferencesType radioInterferencesDTO = logItem.getRadioInterferenc... | /**
* Test when the RadioInterference.effectiveDates has a from AND to date
*
* @throws Exception
*/ | Test when the RadioInterference.effectiveDates has a from AND to date | testMappingWithoutToDate | {
"repo_name": "lbodor/geodesy-domain-model",
"path": "src/test/java/au/gov/ga/geodesy/support/mapper/orika/geodesyml/RadioInterferenceMapperTest.java",
"license": "bsd-3-clause",
"size": 7225
} | [
"au.gov.ga.geodesy.domain.model.sitelog.RadioInterference",
"au.gov.ga.geodesy.port.adapter.geodesyml.GeodesyMLUtils",
"au.gov.ga.geodesy.support.TestResources",
"au.gov.ga.geodesy.support.utils.MappingDirection",
"au.gov.xml.icsm.geodesyml.v_0_3.GeodesyMLType",
"au.gov.xml.icsm.geodesyml.v_0_3.RadioInter... | import au.gov.ga.geodesy.domain.model.sitelog.RadioInterference; import au.gov.ga.geodesy.port.adapter.geodesyml.GeodesyMLUtils; import au.gov.ga.geodesy.support.TestResources; import au.gov.ga.geodesy.support.utils.MappingDirection; import au.gov.xml.icsm.geodesyml.v_0_3.GeodesyMLType; import au.gov.xml.icsm.geodesyml... | import au.gov.ga.geodesy.domain.model.sitelog.*; import au.gov.ga.geodesy.port.adapter.geodesyml.*; import au.gov.ga.geodesy.support.*; import au.gov.ga.geodesy.support.utils.*; import au.gov.xml.icsm.geodesyml.v_0_3.*; import net.opengis.gml.v_3_2_1.*; import org.hamcrest.*; import org.hamcrest.core.*; | [
"au.gov.ga",
"au.gov.xml",
"net.opengis.gml",
"org.hamcrest",
"org.hamcrest.core"
] | au.gov.ga; au.gov.xml; net.opengis.gml; org.hamcrest; org.hamcrest.core; | 2,605,705 |
public Vector getValues()
{
Vector v = new Vector();
for (int i = 0; i != values.size(); i++)
{
v.addElement(values.elementAt(i));
}
return v;
} | Vector function() { Vector v = new Vector(); for (int i = 0; i != values.size(); i++) { v.addElement(values.elementAt(i)); } return v; } | /**
* return a vector of the values found in the name, in the order they
* were found.
*/ | return a vector of the values found in the name, in the order they were found | getValues | {
"repo_name": "alphallc/connectbot",
"path": "src/org/bouncycastle/asn1/x509/X509Name.java",
"license": "apache-2.0",
"size": 42097
} | [
"java.util.Vector"
] | import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 2,474,904 |
public void loginWithPhoneNumber(final String phoneNumber,
final String countryCode,
final String password,
final String deviceName,
@Nullable final String deviceId,
... | void function(final String phoneNumber, final String countryCode, final String password, final String deviceName, @Nullable final String deviceId, final ApiCallback<Credentials> callback) { final String description = STR + phoneNumber; PasswordLoginParams params = new PasswordLoginParams(); params.setPhoneIdentifier(ph... | /**
* Attempt to login with phone number/password
*
* @param phoneNumber the phone number
* @param countryCode the ISO country code
* @param password the password
* @param deviceName the device name
* @param deviceId the device id, used for e2e encryption
* @param callback... | Attempt to login with phone number/password | loginWithPhoneNumber | {
"repo_name": "matrix-org/matrix-android-sdk",
"path": "matrix-sdk/src/main/java/org/matrix/androidsdk/rest/client/LoginRestClient.java",
"license": "apache-2.0",
"size": 16397
} | [
"androidx.annotation.Nullable",
"org.matrix.androidsdk.core.callback.ApiCallback",
"org.matrix.androidsdk.rest.model.login.Credentials",
"org.matrix.androidsdk.rest.model.login.PasswordLoginParams"
] | import androidx.annotation.Nullable; import org.matrix.androidsdk.core.callback.ApiCallback; import org.matrix.androidsdk.rest.model.login.Credentials; import org.matrix.androidsdk.rest.model.login.PasswordLoginParams; | import androidx.annotation.*; import org.matrix.androidsdk.core.callback.*; import org.matrix.androidsdk.rest.model.login.*; | [
"androidx.annotation",
"org.matrix.androidsdk"
] | androidx.annotation; org.matrix.androidsdk; | 2,441,856 |
private List<FileHashMapEntry<K>> getSortedEntries() {
// Get the set of values in the hash index. Each value is a
// FileHashMapEntry object.
List<FileHashMapEntry<K>> vals = new ArrayList<FileHashMapEntry<K>>();
vals.addAll(indexMap.values());
// Sort the list.
Collections.sort(vals, new FileHashMap... | List<FileHashMapEntry<K>> function() { List<FileHashMapEntry<K>> vals = new ArrayList<FileHashMapEntry<K>>(); vals.addAll(indexMap.values()); Collections.sort(vals, new FileHashMapEntryComparator()); return vals; } | /**
* Get the list of FileHashMapEntry pointers for the values, sorted in
* ascending file position order.
*
* @return A sorted list of FileHashMapEntry objects.
*/ | Get the list of FileHashMapEntry pointers for the values, sorted in ascending file position order | getSortedEntries | {
"repo_name": "jbgi/replics",
"path": "src/replics/utils/FilesHashMap.java",
"license": "gpl-3.0",
"size": 45652
} | [
"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; | 910,266 |
public NamenodeProtocols getNameNodeRpc() {
checkSingleNameNode();
return getNameNodeRpc(0);
} | NamenodeProtocols function() { checkSingleNameNode(); return getNameNodeRpc(0); } | /**
* Get an instance of the NameNode's RPC handler.
*/ | Get an instance of the NameNode's RPC handler | getNameNodeRpc | {
"repo_name": "ZhangXFeng/hadoop",
"path": "src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java",
"license": "apache-2.0",
"size": 100357
} | [
"org.apache.hadoop.hdfs.server.protocol.NamenodeProtocols"
] | import org.apache.hadoop.hdfs.server.protocol.NamenodeProtocols; | import org.apache.hadoop.hdfs.server.protocol.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,029,195 |
Cluster getCluster(ClusterInformation clusterInformation);
| Cluster getCluster(ClusterInformation clusterInformation); | /**
* Returns a connector for a Cassandra cluster. Hector API can be used for further operations
*
* @param clusterInformation Information about the cluster to be accessed
* @return <code>Cluster</code> for accessing the required Cassandra cluster
*/ | Returns a connector for a Cassandra cluster. Hector API can be used for further operations | getCluster | {
"repo_name": "lankavitharana/carbon-storage-management",
"path": "components/cassandra/org.wso2.carbon.cassandra.dataaccess/src/main/java/org/wso2/carbon/cassandra/dataaccess/DataAccessService.java",
"license": "apache-2.0",
"size": 2997
} | [
"me.prettyprint.hector.api.Cluster"
] | import me.prettyprint.hector.api.Cluster; | import me.prettyprint.hector.api.*; | [
"me.prettyprint.hector"
] | me.prettyprint.hector; | 2,431,068 |
@Override
public BigDecimal getQtyOnHand(final Properties ctx, final int M_Warehouse_ID, final int M_Product_ID, final String trxName)
{
final int adClientId = Env.getAD_Client_ID(ctx);
final String sql = "SELECT COALESCE(bomQtyOnHand (M_Product_ID,?,0),0) FROM M_Product"
+ " WHERE AD_Client_ID=? AND M_Pr... | BigDecimal function(final Properties ctx, final int M_Warehouse_ID, final int M_Product_ID, final String trxName) { final int adClientId = Env.getAD_Client_ID(ctx); final String sql = STR + STR; final BigDecimal qtyOnHand = DB.getSQLValueBDEx(trxName, sql, new Object[] { M_Warehouse_ID, adClientId, M_Product_ID }); if ... | /**
* Get Qty On Hand
*
* @param AD_Client_ID
* @param M_Warehouse_ID
* @param M_Product_ID
* @return
*/ | Get Qty On Hand | getQtyOnHand | {
"repo_name": "klst-com/metasfresh",
"path": "de.metas.adempiere.libero.libero/src/main/java/org/eevolution/mrp/api/impl/MRPDAO.java",
"license": "gpl-2.0",
"size": 15326
} | [
"java.math.BigDecimal",
"java.util.Properties",
"org.compiere.util.DB",
"org.compiere.util.Env"
] | import java.math.BigDecimal; import java.util.Properties; import org.compiere.util.DB; import org.compiere.util.Env; | import java.math.*; import java.util.*; import org.compiere.util.*; | [
"java.math",
"java.util",
"org.compiere.util"
] | java.math; java.util; org.compiere.util; | 71,832 |
protected IBoxRequestAuth createAuthorization(IAuthDataController controller) {
return new OAuthAuthorization((OAuthDataController) authController);
} | IBoxRequestAuth function(IAuthDataController controller) { return new OAuthAuthorization((OAuthDataController) authController); } | /**
* From auth data controller, generate IBoxRequestAuth, which can be applied to api requests.
*/ | From auth data controller, generate IBoxRequestAuth, which can be applied to api requests | createAuthorization | {
"repo_name": "shelsonjava/box-java-sdk-v2",
"path": "BoxJavaLibraryV2/src/com/box/boxjavalibv2/BoxClient.java",
"license": "apache-2.0",
"size": 24646
} | [
"com.box.boxjavalibv2.authorization.IAuthDataController",
"com.box.boxjavalibv2.authorization.OAuthAuthorization",
"com.box.boxjavalibv2.authorization.OAuthDataController",
"com.box.restclientv2.authorization.IBoxRequestAuth"
] | import com.box.boxjavalibv2.authorization.IAuthDataController; import com.box.boxjavalibv2.authorization.OAuthAuthorization; import com.box.boxjavalibv2.authorization.OAuthDataController; import com.box.restclientv2.authorization.IBoxRequestAuth; | import com.box.boxjavalibv2.authorization.*; import com.box.restclientv2.authorization.*; | [
"com.box.boxjavalibv2",
"com.box.restclientv2"
] | com.box.boxjavalibv2; com.box.restclientv2; | 70,126 |
public void readLineStringTypeElements(XMLStreamReader reader, LineString bean) throws XMLStreamException
{
this.readAbstractGeometryTypeElements(reader, bean);
bean.setPosList(readPositionElements(reader));
}
| void function(XMLStreamReader reader, LineString bean) throws XMLStreamException { this.readAbstractGeometryTypeElements(reader, bean); bean.setPosList(readPositionElements(reader)); } | /**
* Reads elements of LineStringType complex type
*/ | Reads elements of LineStringType complex type | readLineStringTypeElements | {
"repo_name": "sensiasoft/lib-swe-common",
"path": "swe-common-om/src/main/java/net/opengis/gml/v32/bind/XMLStreamBindings.java",
"license": "mpl-2.0",
"size": 77403
} | [
"javax.xml.stream.XMLStreamException",
"javax.xml.stream.XMLStreamReader",
"net.opengis.gml.v32.LineString"
] | import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import net.opengis.gml.v32.LineString; | import javax.xml.stream.*; import net.opengis.gml.v32.*; | [
"javax.xml",
"net.opengis.gml"
] | javax.xml; net.opengis.gml; | 563,935 |
private List<Object> getPassThroughFields(final Tuple input, ApisTopologyCommand command) {
// if the tuple is from the API stream, emit the predefined topology input if it exists
if (this.apisConfiguration.getApiSpout().equals(input.getSourceComponent()) && command.getInput() != null) {
... | List<Object> function(final Tuple input, ApisTopologyCommand command) { if (this.apisConfiguration.getApiSpout().equals(input.getSourceComponent()) && command.getInput() != null) { List<Object> list = command.getInput(); for (String field : input.getFields()) { if (field.startsWith("_")) { list.add(input.getStringByFie... | /**
* Extract the values that need to be proxied into the default stream from an API stream input tuple
*/ | Extract the values that need to be proxied into the default stream from an API stream input tuple | getPassThroughFields | {
"repo_name": "forter/storm-topology-api",
"path": "src/main/java/com/forter/storm/apis/wrappers/ApisBoltWrapper.java",
"license": "apache-2.0",
"size": 8884
} | [
"com.forter.storm.apis.ApisTopologyCommand",
"java.util.List"
] | import com.forter.storm.apis.ApisTopologyCommand; import java.util.List; | import com.forter.storm.apis.*; import java.util.*; | [
"com.forter.storm",
"java.util"
] | com.forter.storm; java.util; | 2,896,005 |
public Collection<eu.hyvar.feature.expression.resource.hyexpression.IHyexpressionCommand<eu.hyvar.feature.expression.resource.hyexpression.IHyexpressionTextResource>> getPostParseCommands();
| Collection<eu.hyvar.feature.expression.resource.hyexpression.IHyexpressionCommand<eu.hyvar.feature.expression.resource.hyexpression.IHyexpressionTextResource>> function(); | /**
* Returns a list of commands that must be executed after parsing the document.
*/ | Returns a list of commands that must be executed after parsing the document | getPostParseCommands | {
"repo_name": "DarwinSPL/DarwinSPL",
"path": "plugins/eu.hyvar.feature.expression.resource.hyexpression/src-gen/eu/hyvar/feature/expression/resource/hyexpression/IHyexpressionParseResult.java",
"license": "apache-2.0",
"size": 872
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 2,174,810 |
public VariableDeclaration getVariableDeclaration(int index) {
if (null == declarations) {
throw new IndexOutOfBoundsException();
}
return declarations.get(index);
} | VariableDeclaration function(int index) { if (null == declarations) { throw new IndexOutOfBoundsException(); } return declarations.get(index); } | /**
* Returns the specified variable declaration.
*
* @param index the 0-based index of the variable declaration to be returned
* @return the specified variable declaration
* @throws IndexOutOfBoundsException if <code>index < 0 || index >= {@link #getVariableDeclarationCount()}</code>
... | Returns the specified variable declaration | getVariableDeclaration | {
"repo_name": "SSEHUB/EASyProducer",
"path": "Plugins/Instantiation/de.uni-hildesheim.sse.easy.instantiatorCore.rt/src/net/ssehub/easy/instantiation/rt/core/model/rtVil/Strategy.java",
"license": "apache-2.0",
"size": 8695
} | [
"net.ssehub.easy.instantiation.core.model.buildlangModel.VariableDeclaration"
] | import net.ssehub.easy.instantiation.core.model.buildlangModel.VariableDeclaration; | import net.ssehub.easy.instantiation.core.model.*; | [
"net.ssehub.easy"
] | net.ssehub.easy; | 90,557 |
private void changeReferenceDataValuesInComponents(final ReferenceData oldReferenceData,
final ReferenceData newReferenceData, final Class<?> referenceDataClass) {
final Collection<ComponentBuilder> componentBuilders = _analysisJobBuilder.getComponentBuilders();
for (final ComponentBuild... | void function(final ReferenceData oldReferenceData, final ReferenceData newReferenceData, final Class<?> referenceDataClass) { final Collection<ComponentBuilder> componentBuilders = _analysisJobBuilder.getComponentBuilders(); for (final ComponentBuilder componentBuilder : componentBuilders) { final Map<ConfiguredProper... | /**
* Method used to change the reference data(String Patterns, Dictionaries,
* Synonyms) components' values in components
*
* @param oldReferenceData
* @param newReferenceData
* @param referenceDataClass
*/ | Method used to change the reference data(String Patterns, Dictionaries, Synonyms) components' values in components | changeReferenceDataValuesInComponents | {
"repo_name": "datacleaner/DataCleaner",
"path": "desktop/ui/src/main/java/org/datacleaner/windows/ReferenceDataAnalysisJobWindowImplListeners.java",
"license": "lgpl-3.0",
"size": 8318
} | [
"java.util.Collection",
"java.util.Map",
"org.datacleaner.descriptors.ConfiguredPropertyDescriptor",
"org.datacleaner.job.builder.ComponentBuilder",
"org.datacleaner.reference.ReferenceData"
] | import java.util.Collection; import java.util.Map; import org.datacleaner.descriptors.ConfiguredPropertyDescriptor; import org.datacleaner.job.builder.ComponentBuilder; import org.datacleaner.reference.ReferenceData; | import java.util.*; import org.datacleaner.descriptors.*; import org.datacleaner.job.builder.*; import org.datacleaner.reference.*; | [
"java.util",
"org.datacleaner.descriptors",
"org.datacleaner.job",
"org.datacleaner.reference"
] | java.util; org.datacleaner.descriptors; org.datacleaner.job; org.datacleaner.reference; | 523,742 |
static void loadProjectFile(final ActionEvent e, final File f, final boolean merging) {
loadProjectFile(e, f, merging, true);
} | static void loadProjectFile(final ActionEvent e, final File f, final boolean merging) { loadProjectFile(e, f, merging, true); } | /**
* Loads or merges a file into the current GUI, reporting any errors to the user.
* If the file is a complete test plan, sets the GUI test plan file name
*
* @param e the event that triggered the action
* @param f the file to load
* @param merging if true, then try to merge the file int... | Loads or merges a file into the current GUI, reporting any errors to the user. If the file is a complete test plan, sets the GUI test plan file name | loadProjectFile | {
"repo_name": "max3163/jmeter",
"path": "src/core/org/apache/jmeter/gui/action/Load.java",
"license": "apache-2.0",
"size": 10602
} | [
"java.awt.event.ActionEvent",
"java.io.File"
] | import java.awt.event.ActionEvent; import java.io.File; | import java.awt.event.*; import java.io.*; | [
"java.awt",
"java.io"
] | java.awt; java.io; | 2,132,596 |
void printStatus(final Context context) {
SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
Logger.d(getDialogTag(), "*** RateThisApp Status ***");
Logger.d(getDialogTag(), "Install Date: " + new Date(pref.getLong(getKeyInstallDate(), 0)));
Logge... | void printStatus(final Context context) { SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); Logger.d(getDialogTag(), STR); Logger.d(getDialogTag(), STR + new Date(pref.getLong(getKeyInstallDate(), 0))); Logger.d(getDialogTag(), STR + pref.getInt(getKeyLaunchTimes(), 0)); Logger.d(g... | /**
* Print values in SharedPreferences (used for debug)
*
* @param context to get the shared preferences
*/ | Print values in SharedPreferences (used for debug) | printStatus | {
"repo_name": "djsquiddy/phoenix-lib",
"path": "src/main/java/com/phoenix/lib/dialogs/BaseRequestFromUserDialog.java",
"license": "mit",
"size": 7349
} | [
"android.content.Context",
"android.content.SharedPreferences",
"com.phoenix.lib.log.Logger",
"java.util.Date"
] | import android.content.Context; import android.content.SharedPreferences; import com.phoenix.lib.log.Logger; import java.util.Date; | import android.content.*; import com.phoenix.lib.log.*; import java.util.*; | [
"android.content",
"com.phoenix.lib",
"java.util"
] | android.content; com.phoenix.lib; java.util; | 1,610,748 |
private void moveWidget(ListenerIdentifier lid,
String presentationLabel,
IWidget w,
double widgetMoveByX,
double widgetMoveByY,
IUndoableEditSequence editSequence)
... | void function(ListenerIdentifier lid, String presentationLabel, IWidget w, double widgetMoveByX, double widgetMoveByY, IUndoableEditSequence editSequence) { DoublePoint oldLocation = w.getShape().getOrigin(); double oldX = oldLocation.x; double oldY = oldLocation.y; double newX = Math.max(oldX + widgetMoveByX, 0.0); do... | /**
* Move a single widget.
* Add the move to the list of undoable edits using compound edit passed in
*
* Enforce that the move does not move the origin past 0,0
*
* @param w
* @param e
*/ | Move a single widget. Add the move to the list of undoable edits using compound edit passed in Enforce that the move does not move the origin past 0,0 | moveWidget | {
"repo_name": "cogtool/cogtool",
"path": "java/edu/cmu/cs/hcii/cogtool/controller/FrameEditorController.java",
"license": "lgpl-2.1",
"size": 251902
} | [
"edu.cmu.cs.hcii.cogtool.model.DoublePoint",
"edu.cmu.cs.hcii.cogtool.model.IWidget",
"edu.cmu.cs.hcii.cogtool.util.IUndoableEditSequence",
"edu.cmu.cs.hcii.cogtool.util.ListenerIdentifier"
] | import edu.cmu.cs.hcii.cogtool.model.DoublePoint; import edu.cmu.cs.hcii.cogtool.model.IWidget; import edu.cmu.cs.hcii.cogtool.util.IUndoableEditSequence; import edu.cmu.cs.hcii.cogtool.util.ListenerIdentifier; | import edu.cmu.cs.hcii.cogtool.model.*; import edu.cmu.cs.hcii.cogtool.util.*; | [
"edu.cmu.cs"
] | edu.cmu.cs; | 2,909,894 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Void> publishAsync(String resourceGroupName, String labName, Context context) {
return beginPublishAsync(resourceGroupName, labName, context)
.last()
.flatMap(this.client::getLroFinalResultOrError);
} | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Void> function(String resourceGroupName, String labName, Context context) { return beginPublishAsync(resourceGroupName, labName, context) .last() .flatMap(this.client::getLroFinalResultOrError); } | /**
* Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used i... | Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines | publishAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsClientImpl.java",
"license": "mit",
"size": 103945
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.util.Context"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; | import com.azure.core.annotation.*; import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 1,882,423 |
private boolean testAsciiNumbers() {
// TODO: test all postgres supported encoding to see if there are
// any which do _not_ have ascii numbers in same location
// at least all the encoding listed in the encodings hashmap have
// working ascii numbers
try {
String test = "-0123... | boolean function() { try { String test = STR; byte[] bytes = encode(test); String res = new String(bytes, STR); return test.equals(res); } catch (java.io.UnsupportedEncodingException e) { return false; } catch (IOException e) { return false; } } | /**
* Checks weather this encoding is compatible with ASCII for the number
* characters '-' and '0'..'9'. Where compatible means that they are encoded
* with exactly same values.
*
* @return If faster ASCII number parsing can be used with this encoding.
*/ | Checks weather this encoding is compatible with ASCII for the number characters '-' and '0'..'9'. Where compatible means that they are encoded with exactly same values | testAsciiNumbers | {
"repo_name": "tivv/davepgjdbc",
"path": "org/postgresql/core/Encoding.java",
"license": "bsd-3-clause",
"size": 10189
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,292,956 |
public RowMetaInterface getPrevInfoFields( StepMeta stepMeta ) throws KettleStepException {
RowMetaInterface row = new RowMeta();
for ( int i = 0; i < nrTransHops(); i++ ) { // Look at all the hops;
TransHopMeta hi = getTransHop( i );
if ( hi.isEnabled() && hi.getToStep().equals( stepMeta ) ) {
... | RowMetaInterface function( StepMeta stepMeta ) throws KettleStepException { RowMetaInterface row = new RowMeta(); for ( int i = 0; i < nrTransHops(); i++ ) { TransHopMeta hi = getTransHop( i ); if ( hi.isEnabled() && hi.getToStep().equals( stepMeta ) ) { StepMeta infoStep = hi.getFromStep(); if ( isStepInformative( ste... | /**
* Find the informational fields coming from an informational step into the step specified.
*
* @param stepMeta
* The receiving step
* @return A row containing fields with origin.
* @throws KettleStepException
* the kettle step exception
*/ | Find the informational fields coming from an informational step into the step specified | getPrevInfoFields | {
"repo_name": "eayoungs/pentaho-kettle",
"path": "engine/src/org/pentaho/di/trans/TransMeta.java",
"license": "apache-2.0",
"size": 221441
} | [
"org.pentaho.di.core.exception.KettleStepException",
"org.pentaho.di.core.row.RowMeta",
"org.pentaho.di.core.row.RowMetaInterface",
"org.pentaho.di.trans.step.StepMeta"
] | import org.pentaho.di.core.exception.KettleStepException; import org.pentaho.di.core.row.RowMeta; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.trans.step.StepMeta; | import org.pentaho.di.core.exception.*; import org.pentaho.di.core.row.*; import org.pentaho.di.trans.step.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 2,316,536 |
Object getTypedValue( ModelNode node ) throws OperationFailedException; | Object getTypedValue( ModelNode node ) throws OperationFailedException; | /**
* Obtain from the supplied model node value the value that can be used in the RepositoryConfiguration field.
*
* @param node the model node value
* @return the field value
* @throws OperationFailedException if there was an error obtaining the value from the model node
*/ | Obtain from the supplied model node value the value that can be used in the RepositoryConfiguration field | getTypedValue | {
"repo_name": "pleacu/modeshape",
"path": "deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/subsystem/MappedAttributeDefinition.java",
"license": "apache-2.0",
"size": 2105
} | [
"org.jboss.as.controller.OperationFailedException",
"org.jboss.dmr.ModelNode"
] | import org.jboss.as.controller.OperationFailedException; import org.jboss.dmr.ModelNode; | import org.jboss.as.controller.*; import org.jboss.dmr.*; | [
"org.jboss.as",
"org.jboss.dmr"
] | org.jboss.as; org.jboss.dmr; | 328,584 |
protected String implode(Collection<String> c) {
return StringUtils.join(c, PREFIX_SEPARATOR);
}
| String function(Collection<String> c) { return StringUtils.join(c, PREFIX_SEPARATOR); } | /**
* Concatenate fragments in the context of a prefix index.
*
* @param c
* collection of fragments
* @return concatenation
*/ | Concatenate fragments in the context of a prefix index | implode | {
"repo_name": "ag-csw/ExpertFinder",
"path": "src-framework/de/csw/expertfinder/ontology/OntologyIndex.java",
"license": "lgpl-3.0",
"size": 29170
} | [
"java.util.Collection",
"org.apache.commons.lang.StringUtils"
] | import java.util.Collection; import org.apache.commons.lang.StringUtils; | import java.util.*; import org.apache.commons.lang.*; | [
"java.util",
"org.apache.commons"
] | java.util; org.apache.commons; | 94,872 |
public boolean setSafeMode(SafeModeAction action, boolean isChecked)
throws IOException{
try (TraceScope ignored = tracer.newScope("setSafeMode")) {
return namenode.setSafeMode(action, isChecked);
}
} | boolean function(SafeModeAction action, boolean isChecked) throws IOException{ try (TraceScope ignored = tracer.newScope(STR)) { return namenode.setSafeMode(action, isChecked); } } | /**
* Enter, leave or get safe mode.
*
* @param action
* One of SafeModeAction.GET, SafeModeAction.ENTER and
* SafeModeActiob.LEAVE
* @param isChecked
* If true, then check only active namenode's safemode status, else
* check first namenode's status.
* @see... | Enter, leave or get safe mode | setSafeMode | {
"repo_name": "legend-hua/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java",
"license": "apache-2.0",
"size": 109420
} | [
"java.io.IOException",
"org.apache.hadoop.hdfs.protocol.HdfsConstants",
"org.apache.htrace.core.TraceScope"
] | import java.io.IOException; import org.apache.hadoop.hdfs.protocol.HdfsConstants; import org.apache.htrace.core.TraceScope; | import java.io.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.htrace.core.*; | [
"java.io",
"org.apache.hadoop",
"org.apache.htrace"
] | java.io; org.apache.hadoop; org.apache.htrace; | 550,099 |
public final List<String> getRequiredArguments() {
return this.requiredArguments;
}
| final List<String> function() { return this.requiredArguments; } | /**
* Fetches the required arguments for this command.
*
* @return a list of arguments
*/ | Fetches the required arguments for this command | getRequiredArguments | {
"repo_name": "MarkehMe/FactionsFramework",
"path": "framework/src/main/java/me/markeh/factionsframework/command/FactionsCommand.java",
"license": "gpl-3.0",
"size": 5852
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 566,557 |
public void deleteAllItems() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException
{
PubSub request = createPubsubPacket(Type.set, new NodeExtension(PubSubElementType.PURGE_OWNER, getId()), PubSubElementType.PURGE_OWNER.getNamespace());
con.createPacketCollectorAndSend(req... | void function() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { PubSub request = createPubsubPacket(Type.set, new NodeExtension(PubSubElementType.PURGE_OWNER, getId()), PubSubElementType.PURGE_OWNER.getNamespace()); con.createPacketCollectorAndSend(request).nextResultOrThro... | /**
* Purges the node of all items.
*
* <p>Note: Some implementations may keep the last item
* sent.
* @throws XMPPErrorException
* @throws NoResponseException if there was no response from the server.
* @throws NotConnectedException
* @throws InterruptedException
*/ | Purges the node of all items. Note: Some implementations may keep the last item sent | deleteAllItems | {
"repo_name": "ayne/Smack",
"path": "smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/LeafNode.java",
"license": "apache-2.0",
"size": 15261
} | [
"org.jivesoftware.smack.SmackException",
"org.jivesoftware.smack.XMPPException",
"org.jivesoftware.smack.packet.IQ",
"org.jivesoftware.smackx.pubsub.packet.PubSub"
] | import org.jivesoftware.smack.SmackException; import org.jivesoftware.smack.XMPPException; import org.jivesoftware.smack.packet.IQ; import org.jivesoftware.smackx.pubsub.packet.PubSub; | import org.jivesoftware.smack.*; import org.jivesoftware.smack.packet.*; import org.jivesoftware.smackx.pubsub.packet.*; | [
"org.jivesoftware.smack",
"org.jivesoftware.smackx"
] | org.jivesoftware.smack; org.jivesoftware.smackx; | 1,328,627 |
public ProjectServiceAsync getProjectService() {
return projectService;
} | ProjectServiceAsync function() { return projectService; } | /**
* Get an instance of the project information web service.
*
* @return project web service instance
*/ | Get an instance of the project information web service | getProjectService | {
"repo_name": "farxinu/appinventor-sources",
"path": "appinventor/appengine/src/com/google/appinventor/client/Ode.java",
"license": "apache-2.0",
"size": 89453
} | [
"com.google.appinventor.shared.rpc.project.ProjectServiceAsync"
] | import com.google.appinventor.shared.rpc.project.ProjectServiceAsync; | import com.google.appinventor.shared.rpc.project.*; | [
"com.google.appinventor"
] | com.google.appinventor; | 2,585,407 |
@MatchStatement
public T assertNotInvoked() {
MatchingInvocationHandler matchingInvocationHandler = createAssertNotInvokedVerifyingMatchingInvocationHandler();
return startMatchingInvocation(matchingInvocationHandler);
}
| T function() { MatchingInvocationHandler matchingInvocationHandler = createAssertNotInvokedVerifyingMatchingInvocationHandler(); return startMatchingInvocation(matchingInvocationHandler); } | /**
* Asserts that no invocation that matches the invocation following this call has been observed
* on this mock object during this test.
*
* @return The proxy instance that will record the method call, not null
*/ | Asserts that no invocation that matches the invocation following this call has been observed on this mock object during this test | assertNotInvoked | {
"repo_name": "arteam/unitils",
"path": "unitils-mock/src/main/java/org/unitils/mock/core/MockObject.java",
"license": "apache-2.0",
"size": 22156
} | [
"org.unitils.mock.core.matching.MatchingInvocationHandler"
] | import org.unitils.mock.core.matching.MatchingInvocationHandler; | import org.unitils.mock.core.matching.*; | [
"org.unitils.mock"
] | org.unitils.mock; | 138,473 |
String write(DependencyMetadata metadata); | String write(DependencyMetadata metadata); | /**
* Write a json representation of the specified metadata.
*/ | Write a json representation of the specified metadata | write | {
"repo_name": "rvillars/edoras-one-initializr",
"path": "src/main/java/com/edorasware/one/initializr/web/mapper/DependencyMetadataJsonMapper.java",
"license": "apache-2.0",
"size": 996
} | [
"com.edorasware.one.initializr.metadata.DependencyMetadata"
] | import com.edorasware.one.initializr.metadata.DependencyMetadata; | import com.edorasware.one.initializr.metadata.*; | [
"com.edorasware.one"
] | com.edorasware.one; | 1,141,580 |
private IgfsFileWorkerBatch newBatch(final IgfsPath path, OutputStream out) throws IgniteCheckedException {
assert path != null;
assert out != null; | IgfsFileWorkerBatch function(final IgfsPath path, OutputStream out) throws IgniteCheckedException { assert path != null; assert out != null; | /**
* Create batch for the file.
*
* @param path File path in the secondary file system.
* @param out Output stream to that file.
* @return Created batch.
* @throws IgniteCheckedException In case new batch cannot be created.
*/ | Create batch for the file | newBatch | {
"repo_name": "agura/incubator-ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java",
"license": "apache-2.0",
"size": 71432
} | [
"java.io.OutputStream",
"org.apache.ignite.IgniteCheckedException",
"org.apache.ignite.igfs.IgfsPath"
] | import java.io.OutputStream; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.igfs.IgfsPath; | import java.io.*; import org.apache.ignite.*; import org.apache.ignite.igfs.*; | [
"java.io",
"org.apache.ignite"
] | java.io; org.apache.ignite; | 945,733 |
FieldTranslator getTranslator(Field field); | FieldTranslator getTranslator(Field field); | /**
* Returns the translator appropriate for the field (this is based on the property type).
*
* @param field
* @see org.apache.tapestry5.services.TranslatorSource
*/ | Returns the translator appropriate for the field (this is based on the property type) | getTranslator | {
"repo_name": "agileowl/tapestry-5",
"path": "tapestry-core/src/main/java/org/apache/tapestry5/services/PropertyEditContext.java",
"license": "apache-2.0",
"size": 2906
} | [
"org.apache.tapestry5.Field",
"org.apache.tapestry5.FieldTranslator"
] | import org.apache.tapestry5.Field; import org.apache.tapestry5.FieldTranslator; | import org.apache.tapestry5.*; | [
"org.apache.tapestry5"
] | org.apache.tapestry5; | 1,165,907 |
public void setCurrentPage(int currentPage) throws CmsIllegalArgumentException {
if (getSize() != 0) {
if ((currentPage < 1) || (currentPage > getNumberOfPages())) {
throw new CmsIllegalArgumentException(
Messages.get().container(Messages.ERR_LIST_INVALID_PAG... | void function(int currentPage) throws CmsIllegalArgumentException { if (getSize() != 0) { if ((currentPage < 1) (currentPage > getNumberOfPages())) { throw new CmsIllegalArgumentException( Messages.get().container(Messages.ERR_LIST_INVALID_PAGE_1, new Integer(currentPage))); } } m_currentPage = currentPage; } | /**
* Sets the current page.<p>
*
* @param currentPage the current page to set
*
* @throws CmsIllegalArgumentException if the argument is invalid
*/ | Sets the current page | setCurrentPage | {
"repo_name": "ggiudetti/opencms-core",
"path": "src-modules/org/opencms/workplace/list/CmsHtmlList.java",
"license": "lgpl-2.1",
"size": 37966
} | [
"org.opencms.main.CmsIllegalArgumentException"
] | import org.opencms.main.CmsIllegalArgumentException; | import org.opencms.main.*; | [
"org.opencms.main"
] | org.opencms.main; | 2,248,748 |
SchemaVisitorAction afterVisitNonTerminal(Schema nonTerminal); | SchemaVisitorAction afterVisitNonTerminal(Schema nonTerminal); | /**
* Invoked for schemas with children after its children have been visited.
*
* @param nonTerminal
* @return
*/ | Invoked for schemas with children after its children have been visited | afterVisitNonTerminal | {
"repo_name": "zolyfarkas/avro",
"path": "lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java",
"license": "apache-2.0",
"size": 1747
} | [
"org.apache.avro.Schema"
] | import org.apache.avro.Schema; | import org.apache.avro.*; | [
"org.apache.avro"
] | org.apache.avro; | 1,316,380 |
public Map<Attribute, List<String>> readRows(int num) throws IOException, SQLException; | Map<Attribute, List<String>> function(int num) throws IOException, SQLException; | /**
* Reads the actual source and returns the values along with each
* attribute's info
*
* @param num
* @return
* @throws IOException
* @throws SQLException
*/ | Reads the actual source and returns the values along with each attribute's info | readRows | {
"repo_name": "mitdbg/aurum-datadiscovery",
"path": "ddprofiler/src/main/java/sources/Source.java",
"license": "mit",
"size": 1812
} | [
"java.io.IOException",
"java.sql.SQLException",
"java.util.List",
"java.util.Map"
] | import java.io.IOException; import java.sql.SQLException; import java.util.List; import java.util.Map; | import java.io.*; import java.sql.*; import java.util.*; | [
"java.io",
"java.sql",
"java.util"
] | java.io; java.sql; java.util; | 2,260,962 |
@Override
public List<EventObject> retrieveHeadlessEvents() {
return m_headlessEvents;
} | List<EventObject> function() { return m_headlessEvents; } | /**
* Get the list of events processed in headless mode. May return null or an
* empty list if not running in headless mode or no events were processed
*
* @return a list of EventObjects or null.
*/ | Get the list of events processed in headless mode. May return null or an empty list if not running in headless mode or no events were processed | retrieveHeadlessEvents | {
"repo_name": "ModelWriter/Deliverables",
"path": "WP2/D2.5.2_Generation/Jeni/lib/weka-src/src/main/java/weka/gui/beans/DataVisualizer.java",
"license": "epl-1.0",
"size": 26969
} | [
"java.util.EventObject",
"java.util.List"
] | import java.util.EventObject; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 3,147 |
public void testToString2() {
assertNotNull(new IdentityStub("testToString2").toString());
} | void function() { assertNotNull(new IdentityStub(STR).toString()); } | /**
* verify Identity.toString()
*/ | verify Identity.toString() | testToString2 | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "external/apache-harmony/security/src/test/api/java.injected/java/security/IdentityTest.java",
"license": "gpl-2.0",
"size": 12014
} | [
"org.apache.harmony.security.tests.support.IdentityStub"
] | import org.apache.harmony.security.tests.support.IdentityStub; | import org.apache.harmony.security.tests.support.*; | [
"org.apache.harmony"
] | org.apache.harmony; | 2,881,960 |
public ProcessGroupStatus getGroupStatus(final String groupId, final NiFiUser user, final int recursiveStatusDepth) {
final RepositoryStatusReport repoStatusReport = generateRepositoryStatusReport();
return getGroupStatus(groupId, repoStatusReport, user, recursiveStatusDepth);
} | ProcessGroupStatus function(final String groupId, final NiFiUser user, final int recursiveStatusDepth) { final RepositoryStatusReport repoStatusReport = generateRepositoryStatusReport(); return getGroupStatus(groupId, repoStatusReport, user, recursiveStatusDepth); } | /**
* Returns the status for components in the specified group. This request is
* made by the specified user so the results will be filtered accordingly.
*
* @param groupId group id
* @param user user making request
* @return the component status
*/ | Returns the status for components in the specified group. This request is made by the specified user so the results will be filtered accordingly | getGroupStatus | {
"repo_name": "YolandaMDavis/nifi",
"path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/reporting/StandardEventAccess.java",
"license": "apache-2.0",
"size": 35794
} | [
"org.apache.nifi.authorization.user.NiFiUser",
"org.apache.nifi.controller.repository.RepositoryStatusReport",
"org.apache.nifi.controller.status.ProcessGroupStatus"
] | import org.apache.nifi.authorization.user.NiFiUser; import org.apache.nifi.controller.repository.RepositoryStatusReport; import org.apache.nifi.controller.status.ProcessGroupStatus; | import org.apache.nifi.authorization.user.*; import org.apache.nifi.controller.repository.*; import org.apache.nifi.controller.status.*; | [
"org.apache.nifi"
] | org.apache.nifi; | 1,783,438 |
public Builder setPermissions(List<String> permissions) {
mScopes = permissions;
return this;
} | Builder function(List<String> permissions) { mScopes = permissions; return this; } | /**
* Specifies the additional permissions that the application will request for this
* identity provider.
* <p>
* For Facebook permissions see:
* https://developers.facebook.com/docs/facebook-login/android
* https://developers.facebook.com/d... | Specifies the additional permissions that the application will request for this identity provider. For Facebook permissions see: HREF HREF For Google permissions see: HREF Twitter permissions are only configurable through the Twitter developer console | setPermissions | {
"repo_name": "diyaren/CPEN391Motivator",
"path": "auth/src/main/java/com/firebase/ui/auth/AuthUI.java",
"license": "apache-2.0",
"size": 20932
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 517,389 |
@Override
public void flush() throws IOException
{
String record;
synchronized (this)
{
super.flush();
record = this.toString();
super.reset();
if (record.length() == 0 || record.equals(lineSeparator))
{
// avoid empty records
return;
}
logger.logp(level, "", ... | void function() throws IOException { String record; synchronized (this) { super.flush(); record = this.toString(); super.reset(); if (record.length() == 0 record.equals(lineSeparator)) { return; } logger.logp(level, STR", record); } } | /**
* upon flush() write the existing contents of the OutputStream to the
* logger as a log record.
*
* @throws java.io.IOException
* in case of error
*/ | upon flush() write the existing contents of the OutputStream to the logger as a log record | flush | {
"repo_name": "TOMIGalway/cmoct-sourcecode",
"path": "src/com/joey/software/DivertSystemOut/LoggingOutputStream.java",
"license": "gpl-2.0",
"size": 1817
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,812,147 |
static <E> ImmutableList<E> asImmutableList(Object[] elements, int length) {
switch (length) {
case 0:
return of();
case 1:
@SuppressWarnings("unchecked") // collection had only Es in it
ImmutableList<E> list = new SingletonImmutableList<E>((E) elements[0]);
retu... | static <E> ImmutableList<E> asImmutableList(Object[] elements, int length) { switch (length) { case 0: return of(); case 1: @SuppressWarnings(STR) ImmutableList<E> list = new SingletonImmutableList<E>((E) elements[0]); return list; default: if (length < elements.length) { elements = arraysCopyOf(elements, length); } re... | /**
* Views the array as an immutable list. Copies if the specified range does not cover the complete
* array. Does not check for nulls.
*/ | Views the array as an immutable list. Copies if the specified range does not cover the complete array. Does not check for nulls | asImmutableList | {
"repo_name": "mariusj/org.openntf.domino",
"path": "domino/externals/guava/src/main/java/com/google/common/collect/ImmutableList.java",
"license": "apache-2.0",
"size": 22507
} | [
"com.google.common.collect.ObjectArrays"
] | import com.google.common.collect.ObjectArrays; | import com.google.common.collect.*; | [
"com.google.common"
] | com.google.common; | 442,199 |
public ArrayList<OvhGenericOptionDefinition> cart_cartId_sslGateway_options_GET(String cartId, String planCode) throws IOException {
String qPath = "/order/cart/{cartId}/sslGateway/options";
StringBuilder sb = path(qPath, cartId);
query(sb, "planCode", planCode);
String resp = execN(qPath, "GET", sb.toString... | ArrayList<OvhGenericOptionDefinition> function(String cartId, String planCode) throws IOException { String qPath = STR; StringBuilder sb = path(qPath, cartId); query(sb, STR, planCode); String resp = execN(qPath, "GET", sb.toString(), null); return convertTo(resp, t2); } | /**
* Get informations about SSL Gateway options
*
* REST: GET /order/cart/{cartId}/sslGateway/options
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the SSL Gateway you want to consult options
*/ | Get informations about SSL Gateway options | cart_cartId_sslGateway_options_GET | {
"repo_name": "UrielCh/ovh-java-sdk",
"path": "ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java",
"license": "bsd-3-clause",
"size": 511080
} | [
"java.io.IOException",
"java.util.ArrayList",
"net.minidev.ovh.api.order.cart.OvhGenericOptionDefinition"
] | import java.io.IOException; import java.util.ArrayList; import net.minidev.ovh.api.order.cart.OvhGenericOptionDefinition; | import java.io.*; import java.util.*; import net.minidev.ovh.api.order.cart.*; | [
"java.io",
"java.util",
"net.minidev.ovh"
] | java.io; java.util; net.minidev.ovh; | 1,423,336 |
public static Node createAnonForBag(String uri, String propertyUri) {
return Node.createAnon(new AnonId(uri + "#bag-" + propertyUri.hashCode()));
} | static Node function(String uri, String propertyUri) { return Node.createAnon(new AnonId(uri + "#bag-" + propertyUri.hashCode())); } | /**
* Creates an anonymous node (blank node) for the use with RDF bags in
* {@link GabotoEntity}s.
*
* @param uri
* The URI of the corresponding entity.
* @param propertyUri
* The URI of the corresponding property.
*
* @return A new blank node with a reconstructible URI.
... | Creates an anonymous node (blank node) for the use with RDF bags in <code>GabotoEntity</code>s | createAnonForBag | {
"repo_name": "ox-it/gaboto",
"path": "src/main/java/net/sf/gaboto/node/GabotoEntityUtils.java",
"license": "bsd-3-clause",
"size": 21606
} | [
"com.hp.hpl.jena.graph.Node",
"com.hp.hpl.jena.rdf.model.AnonId"
] | import com.hp.hpl.jena.graph.Node; import com.hp.hpl.jena.rdf.model.AnonId; | import com.hp.hpl.jena.graph.*; import com.hp.hpl.jena.rdf.model.*; | [
"com.hp.hpl"
] | com.hp.hpl; | 857,682 |
public IheAuditTrail getAuditTrail() {
return auditTrail;
}
| IheAuditTrail function() { return auditTrail; } | /**
* Gets the Audit Trail of this actor.
*
* @return the auditTrail
*/ | Gets the Audit Trail of this actor | getAuditTrail | {
"repo_name": "jembi/openxds",
"path": "openxds-core/src/main/java/org/openhealthtools/openxds/BaseIheActor.java",
"license": "apache-2.0",
"size": 5038
} | [
"org.openhealthtools.openexchange.audit.IheAuditTrail"
] | import org.openhealthtools.openexchange.audit.IheAuditTrail; | import org.openhealthtools.openexchange.audit.*; | [
"org.openhealthtools.openexchange"
] | org.openhealthtools.openexchange; | 230,450 |
void setProgress(Integer progress);
/**
* Gets the detailed message related to the {@link OperationStatus}
*
* @return The detailed message related to the {@link OperationStatus} | void setProgress(Integer progress); /** * Gets the detailed message related to the {@link OperationStatus} * * @return The detailed message related to the {@link OperationStatus} | /**
* Sets the progress percentage of the processing.
*
* @param progress The progress percentage of the processing.
* @since 1.0.0
*/ | Sets the progress percentage of the processing | setProgress | {
"repo_name": "LeoNerdoG/kapua",
"path": "service/device/management/registry/api/src/main/java/org/eclipse/kapua/service/device/management/registry/operation/notification/ManagementOperationNotification.java",
"license": "epl-1.0",
"size": 4608
} | [
"org.eclipse.kapua.service.device.management.message.notification.OperationStatus"
] | import org.eclipse.kapua.service.device.management.message.notification.OperationStatus; | import org.eclipse.kapua.service.device.management.message.notification.*; | [
"org.eclipse.kapua"
] | org.eclipse.kapua; | 2,059,185 |
protected static Info getInfo() {
Info entity = new Info();
entity.setDate(new Date());
entity.setDetails("details1");
return entity;
} | static Info function() { Info entity = new Info(); entity.setDate(new Date()); entity.setDetails(STR); return entity; } | /**
* Creates an instance of Info.
*
* @return the Info instance.
*/ | Creates an instance of Info | getInfo | {
"repo_name": "NASA-Tournament-Lab/CoECI-OPM-Service-Credit-Redeposit-Deposit-Application",
"path": "Code/Batch_Processing/src/java/tests/gov/opm/scrd/BasePersistenceTests.java",
"license": "apache-2.0",
"size": 55754
} | [
"gov.opm.scrd.entities.application.Info",
"java.util.Date"
] | import gov.opm.scrd.entities.application.Info; import java.util.Date; | import gov.opm.scrd.entities.application.*; import java.util.*; | [
"gov.opm.scrd",
"java.util"
] | gov.opm.scrd; java.util; | 2,466,503 |
final SimpleDateFormat dateFormatter = new SimpleDateFormat(pattern, Locale.US);
try {
dateFormatter.parse(date);
return true;
} catch (final ParseException e) {
Log.d("ValidationUtils", "Date validation error", e);
return false;
}
} | final SimpleDateFormat dateFormatter = new SimpleDateFormat(pattern, Locale.US); try { dateFormatter.parse(date); return true; } catch (final ParseException e) { Log.d(STR, STR, e); return false; } } | /**
* Validates a date
* @param pattern The pattern to validate the date
* @param date The date to validate
* @return true if the date matched the pattern
*/ | Validates a date | validDate | {
"repo_name": "Monits/AgilefantAndroid",
"path": "agilefantAndroid/src/main/java/com/monits/agilefant/util/ValidationUtils.java",
"license": "bsd-2-clause",
"size": 1392
} | [
"android.util.Log",
"java.text.ParseException",
"java.text.SimpleDateFormat",
"java.util.Locale"
] | import android.util.Log; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Locale; | import android.util.*; import java.text.*; import java.util.*; | [
"android.util",
"java.text",
"java.util"
] | android.util; java.text; java.util; | 655,156 |
public void findSubviewIn(int reactTag, float targetX, float targetY, Callback callback) {
mOperationsQueue.enqueueFindTargetForTouch(reactTag, targetX, targetY, callback);
} | void function(int reactTag, float targetX, float targetY, Callback callback) { mOperationsQueue.enqueueFindTargetForTouch(reactTag, targetX, targetY, callback); } | /**
* Find the touch target child native view in the supplied root view hierarchy, given a react
* target location.
*
* This method is currently used only by Element Inspector DevTool.
*
* @param reactTag the tag of the root view to traverse
* @param targetX target X location
* @param targetY t... | Find the touch target child native view in the supplied root view hierarchy, given a react target location. This method is currently used only by Element Inspector DevTool | findSubviewIn | {
"repo_name": "htc2u/react-native",
"path": "ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java",
"license": "bsd-3-clause",
"size": 31555
} | [
"com.facebook.react.bridge.Callback"
] | import com.facebook.react.bridge.Callback; | import com.facebook.react.bridge.*; | [
"com.facebook.react"
] | com.facebook.react; | 1,974,920 |
public static String getRmPrincipal(String rmPrincipal, Configuration conf)
throws IOException {
if (rmPrincipal == null) {
throw new IllegalArgumentException("RM principal string is null");
}
if (HAUtil.isHAEnabled(conf)) {
conf = getYarnConfWithRmHaId(conf);
}
String hostname... | static String function(String rmPrincipal, Configuration conf) throws IOException { if (rmPrincipal == null) { throw new IllegalArgumentException(STR); } if (HAUtil.isHAEnabled(conf)) { conf = getYarnConfWithRmHaId(conf); } String hostname = conf.getSocketAddr( YarnConfiguration.RM_ADDRESS, YarnConfiguration.DEFAULT_RM... | /**
* Perform the <code>_HOST</code> replacement in the {@code principal},
* Returning the result. Correctly handles HA resource manager configurations.
*
* @param rmPrincipal the principal string to prepare
* @param conf the configuration
* @return the prepared principal string
* @throws IOExcepti... | Perform the <code>_HOST</code> replacement in the principal, Returning the result. Correctly handles HA resource manager configurations | getRmPrincipal | {
"repo_name": "xiao-chen/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/util/YarnClientUtils.java",
"license": "apache-2.0",
"size": 6976
} | [
"java.io.IOException",
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.security.SecurityUtil",
"org.apache.hadoop.yarn.conf.HAUtil",
"org.apache.hadoop.yarn.conf.YarnConfiguration"
] | import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.security.SecurityUtil; import org.apache.hadoop.yarn.conf.HAUtil; import org.apache.hadoop.yarn.conf.YarnConfiguration; | import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.security.*; import org.apache.hadoop.yarn.conf.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 1,467,088 |
UpdateResult updateMany(ClientSession clientSession, Bson filter, List<? extends Bson> update, UpdateOptions updateOptions); | UpdateResult updateMany(ClientSession clientSession, Bson filter, List<? extends Bson> update, UpdateOptions updateOptions); | /**
* Update all documents in the collection according to the specified arguments.
*
* @param clientSession the client session with which to associate this operation
* @param filter a document describing the query filter, which may not be null.
* @param update a pipeline describin... | Update all documents in the collection according to the specified arguments | updateMany | {
"repo_name": "rozza/mongo-java-driver",
"path": "driver-sync/src/main/com/mongodb/client/MongoCollection.java",
"license": "apache-2.0",
"size": 102106
} | [
"com.mongodb.client.model.UpdateOptions",
"com.mongodb.client.result.UpdateResult",
"java.util.List",
"org.bson.conversions.Bson"
] | import com.mongodb.client.model.UpdateOptions; import com.mongodb.client.result.UpdateResult; import java.util.List; import org.bson.conversions.Bson; | import com.mongodb.client.model.*; import com.mongodb.client.result.*; import java.util.*; import org.bson.conversions.*; | [
"com.mongodb.client",
"java.util",
"org.bson.conversions"
] | com.mongodb.client; java.util; org.bson.conversions; | 1,841,030 |
public float readFloat() throws IOException
{
return Float.intBitsToFloat(readInt());
} | float function() throws IOException { return Float.intBitsToFloat(readInt()); } | /**
* Reads a float.
*
* @return The read value
* @throws IOException
* When read fails
*/ | Reads a float | readFloat | {
"repo_name": "kayahr/threedee",
"path": "threedee-core/src/main/java/de/ailis/threedee/io/StreamReader.java",
"license": "mit",
"size": 12264
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,681,317 |
@Override
public void addAttachment( Attachment attachment ) {
addPayload( attachment );
} | void function( Attachment attachment ) { addPayload( attachment ); } | /**
* Add any variety of attachments to the Communication Payload.
* This attachment will be CONTAINED inside the Communication.Payload attribute.
*/ | Add any variety of attachments to the Communication Payload. This attachment will be CONTAINED inside the Communication.Payload attribute | addAttachment | {
"repo_name": "scoophealth/oscar",
"path": "src/main/java/org/oscarehr/integration/fhir/builder/FhirCommunicationBuilder.java",
"license": "gpl-2.0",
"size": 10253
} | [
"org.hl7.fhir.dstu3.model.Attachment"
] | import org.hl7.fhir.dstu3.model.Attachment; | import org.hl7.fhir.dstu3.model.*; | [
"org.hl7.fhir"
] | org.hl7.fhir; | 2,030,267 |
protected void registerCasPoolMBean(String aRequestorContextName, CasPool pool) {
if (mMBeanNamePrefix != null) {
String mbeanName = mMBeanNamePrefix + "casPoolContextName=" + aRequestorContextName;
CasPoolManagementImpl mbean = new CasPoolManagementImpl(pool, mbeanName);
JmxMBeanAgent.registerM... | void function(String aRequestorContextName, CasPool pool) { if (mMBeanNamePrefix != null) { String mbeanName = mMBeanNamePrefix + STR + aRequestorContextName; CasPoolManagementImpl mbean = new CasPoolManagementImpl(pool, mbeanName); JmxMBeanAgent.registerMBean(mbean, mMBeanServer); casPoolMBeans.add(mbean); } } | /**
* Registers an MBean for the given CasPool.
*
* Never called unless pool is new
*
* @param aRequestorContextName
* context name that identifies this CasPool
* @param pool
* the CasPool
*/ | Registers an MBean for the given CasPool. Never called unless pool is new | registerCasPoolMBean | {
"repo_name": "apache/uima-uimaj",
"path": "uimaj-core/src/main/java/org/apache/uima/resource/impl/CasManager_impl.java",
"license": "apache-2.0",
"size": 15445
} | [
"org.apache.uima.internal.util.JmxMBeanAgent",
"org.apache.uima.util.CasPool",
"org.apache.uima.util.impl.CasPoolManagementImpl"
] | import org.apache.uima.internal.util.JmxMBeanAgent; import org.apache.uima.util.CasPool; import org.apache.uima.util.impl.CasPoolManagementImpl; | import org.apache.uima.internal.util.*; import org.apache.uima.util.*; import org.apache.uima.util.impl.*; | [
"org.apache.uima"
] | org.apache.uima; | 1,461,672 |
public void addEventListenerNS(String namespaceURI,
String type,
EventListener listener,
boolean useCapture,
Object group) {
HashTable listeners;
if (useCapture... | void function(String namespaceURI, String type, EventListener listener, boolean useCapture, Object group) { HashTable listeners; if (useCapture) { if (capturingListeners == null) { capturingListeners = new HashTable(); } listeners = capturingListeners; } else { if (bubblingListeners == null) { bubblingListeners = new H... | /**
* Registers an event listener for the given namespaced event type
* in the specified group.
*/ | Registers an event listener for the given namespaced event type in the specified group | addEventListenerNS | {
"repo_name": "shyamalschandra/flex-sdk",
"path": "modules/thirdparty/batik/sources/org/apache/flex/forks/batik/dom/events/EventSupport.java",
"license": "apache-2.0",
"size": 18902
} | [
"org.apache.flex.forks.batik.dom.util.HashTable",
"org.w3c.dom.events.EventListener"
] | import org.apache.flex.forks.batik.dom.util.HashTable; import org.w3c.dom.events.EventListener; | import org.apache.flex.forks.batik.dom.util.*; import org.w3c.dom.events.*; | [
"org.apache.flex",
"org.w3c.dom"
] | org.apache.flex; org.w3c.dom; | 1,582,466 |
public static <T> Set<T> unmodifiableSetNullSafe(Set<? extends T> set) {
if (set == null) {
return Collections.emptySet();
}
return Collections.unmodifiableSet(set);
}
| static <T> Set<T> function(Set<? extends T> set) { if (set == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(set); } | /**
* Functions as per {@link Collections#unmodifiableSet(Set)} with the exception that if the
* given set is null, this method will return an unmodifiable empty set as per
* {@link Collections#emptySet()}.
*
* @param set the set for which an unmodifiable view is to be returned
* @r... | Functions as per <code>Collections#unmodifiableSet(Set)</code> with the exception that if the given set is null, this method will return an unmodifiable empty set as per <code>Collections#emptySet()</code> | unmodifiableSetNullSafe | {
"repo_name": "sbower/kuali-rice-1",
"path": "core/api/src/main/java/org/kuali/rice/core/api/util/collect/CollectionUtils.java",
"license": "apache-2.0",
"size": 10844
} | [
"java.util.Collections",
"java.util.Set"
] | import java.util.Collections; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 49,526 |
@SuppressWarnings("WeakerAccess")
public static CarbonWorker buildKafkaWorker(
final Copy copyConfiguration,
final CarbonCopyConfiguration carbonCopyConfiguration,
final CarbonProducer producer
) {
if (log.isDebugEnabled()) {
log.debug("Creating a new Kafka worker...");
}
fin... | @SuppressWarnings(STR) static CarbonWorker function( final Copy copyConfiguration, final CarbonCopyConfiguration carbonCopyConfiguration, final CarbonProducer producer ) { if (log.isDebugEnabled()) { log.debug(STR); } final KafkaWorker<String, String> worker = new KafkaWorker<>(copyConfiguration.getSource()); worker.se... | /**
* Builds a Kafka worker from configuration.
*
* @param copyConfiguration Configuration of the copy instance.
* @param carbonCopyConfiguration CarbonCopy configuration applied.
* @param producer Producer where to send the messages to.
* @return CarbonWorker.
*/ | Builds a Kafka worker from configuration | buildKafkaWorker | {
"repo_name": "unravellingtechnologies/carboncopy",
"path": "src/main/java/io/unravelling/carboncopy/factories/workers/KafkaWorkerFactory.java",
"license": "mit",
"size": 1979
} | [
"io.unravelling.carboncopy.config.CarbonCopyConfiguration",
"io.unravelling.carboncopy.factories.connections.KafkaConnectionFactory",
"io.unravelling.carboncopy.producers.CarbonProducer",
"io.unravelling.carboncopy.workers.CarbonWorker",
"io.unravelling.carboncopy.workers.KafkaWorker",
"org.springframewor... | import io.unravelling.carboncopy.config.CarbonCopyConfiguration; import io.unravelling.carboncopy.factories.connections.KafkaConnectionFactory; import io.unravelling.carboncopy.producers.CarbonProducer; import io.unravelling.carboncopy.workers.CarbonWorker; import io.unravelling.carboncopy.workers.KafkaWorker; import o... | import io.unravelling.carboncopy.config.*; import io.unravelling.carboncopy.factories.connections.*; import io.unravelling.carboncopy.producers.*; import io.unravelling.carboncopy.workers.*; import org.springframework.kafka.listener.*; | [
"io.unravelling.carboncopy",
"org.springframework.kafka"
] | io.unravelling.carboncopy; org.springframework.kafka; | 667,946 |
protected String getCSSStyles() {
if (fgCSSStyles == null) {
Bundle bundle= Platform.getBundle(JavaPlugin.getPluginId());
URL url= bundle.getEntry("/JavadocHoverStyleSheet.css"); //$NON-NLS-1$
if (url != null) {
BufferedReader reader= null;
try {
url= FileLocator.toFileURL(url);
reader= ... | String function() { if (fgCSSStyles == null) { Bundle bundle= Platform.getBundle(JavaPlugin.getPluginId()); URL url= bundle.getEntry(STR); if (url != null) { BufferedReader reader= null; try { url= FileLocator.toFileURL(url); reader= new BufferedReader(new InputStreamReader(url.openStream())); StringBuffer buffer= new ... | /**
* Returns the style information for displaying HTML (Javadoc) content.
*
* @return the CSS styles
* @since 3.3
*/ | Returns the style information for displaying HTML (Javadoc) content | getCSSStyles | {
"repo_name": "kumattau/JDTPatch",
"path": "org.eclipse.jdt.ui/src/org/eclipse/jdt/internal/ui/text/java/AbstractJavaCompletionProposal.java",
"license": "epl-1.0",
"size": 41028
} | [
"java.io.BufferedReader",
"java.io.IOException",
"java.io.InputStreamReader",
"org.eclipse.core.runtime.FileLocator",
"org.eclipse.core.runtime.Platform",
"org.eclipse.jdt.internal.ui.JavaPlugin",
"org.eclipse.jdt.ui.PreferenceConstants",
"org.eclipse.jface.internal.text.html.HTMLPrinter",
"org.ecli... | import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.Platform; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.ui.PreferenceConstants; import org.eclipse.jface.internal.text.html.HT... | import java.io.*; import org.eclipse.core.runtime.*; import org.eclipse.jdt.internal.ui.*; import org.eclipse.jdt.ui.*; import org.eclipse.jface.internal.text.html.*; import org.eclipse.jface.resource.*; import org.eclipse.swt.graphics.*; import org.osgi.framework.*; | [
"java.io",
"org.eclipse.core",
"org.eclipse.jdt",
"org.eclipse.jface",
"org.eclipse.swt",
"org.osgi.framework"
] | java.io; org.eclipse.core; org.eclipse.jdt; org.eclipse.jface; org.eclipse.swt; org.osgi.framework; | 876,374 |
public void unsubscribeResourceForAll(CmsDbContext dbc, String poolName, CmsResource resource) throws CmsException {
getSubscriptionDriver().unsubscribeResourceForAll(dbc, poolName, resource);
} | void function(CmsDbContext dbc, String poolName, CmsResource resource) throws CmsException { getSubscriptionDriver().unsubscribeResourceForAll(dbc, poolName, resource); } | /**
* Unsubscribes all groups and users from the resource.<p>
*
* @param dbc the database context
* @param poolName the name of the database pool to use
* @param resource the resource to unsubscribe all groups and users from
*
* @throws CmsException if something goes wrong
*/ | Unsubscribes all groups and users from the resource | unsubscribeResourceForAll | {
"repo_name": "ggiudetti/opencms-core",
"path": "src/org/opencms/db/CmsDriverManager.java",
"license": "lgpl-2.1",
"size": 494693
} | [
"org.opencms.file.CmsResource",
"org.opencms.main.CmsException"
] | import org.opencms.file.CmsResource; import org.opencms.main.CmsException; | import org.opencms.file.*; import org.opencms.main.*; | [
"org.opencms.file",
"org.opencms.main"
] | org.opencms.file; org.opencms.main; | 2,877,503 |
public void setListRealms(List<Realm> listRealms) {
this.listRealms = listRealms;
} | void function(List<Realm> listRealms) { this.listRealms = listRealms; } | /**
* Set the list of realms known by this packet.
*
* @param listRealms The list of realms to be set.
*/ | Set the list of realms known by this packet | setListRealms | {
"repo_name": "Warkdev/JaNGOSAuth",
"path": "src/main/java/eu/jangos/auth/network/packet/server/SAuthRealmList.java",
"license": "apache-2.0",
"size": 8733
} | [
"eu.jangos.auth.model.Realm",
"java.util.List"
] | import eu.jangos.auth.model.Realm; import java.util.List; | import eu.jangos.auth.model.*; import java.util.*; | [
"eu.jangos.auth",
"java.util"
] | eu.jangos.auth; java.util; | 1,682,445 |
public void testToDataFromHigherVersionToLower() throws Exception {
DataOutputStream dos = new VersionedDataOutputStream(new DataOutputStream(
baos), Version.GFE_56);
InternalDataSerializer.writeDSFID(msg, dos);
assertTrue(toDataPre66Called);
assertFalse(toDataCalled);
} | void function() throws Exception { DataOutputStream dos = new VersionedDataOutputStream(new DataOutputStream( baos), Version.GFE_56); InternalDataSerializer.writeDSFID(msg, dos); assertTrue(toDataPre66Called); assertFalse(toDataCalled); } | /**
* Test if correct toData/toDataPreXXX is called when changes are made to the
* TestMessage in 66 and 70 and version of peer is 56
*
* @throws Exception
*/ | Test if correct toData/toDataPreXXX is called when changes are made to the TestMessage in 66 and 70 and version of peer is 56 | testToDataFromHigherVersionToLower | {
"repo_name": "SnappyDataInc/snappy-store",
"path": "gemfire-junit/src/main/java/com/gemstone/gemfire/internal/BackwardCompatibilitySerializationJUnitTest.java",
"license": "apache-2.0",
"size": 10379
} | [
"com.gemstone.gemfire.internal.shared.Version",
"java.io.DataOutputStream"
] | import com.gemstone.gemfire.internal.shared.Version; import java.io.DataOutputStream; | import com.gemstone.gemfire.internal.shared.*; import java.io.*; | [
"com.gemstone.gemfire",
"java.io"
] | com.gemstone.gemfire; java.io; | 2,439,543 |
public void setAwardTemplateReportTermRecipients(List<AwardTemplateReportTermRecipient> awardTemplateReportTermRecipients) {
this.awardTemplateReportTermRecipients = awardTemplateReportTermRecipients;
} | void function(List<AwardTemplateReportTermRecipient> awardTemplateReportTermRecipients) { this.awardTemplateReportTermRecipients = awardTemplateReportTermRecipients; } | /**
* Sets the awardTemplateReportTermRecipients attribute value.
* @param awardTemplateReportTermRecipients The awardTemplateReportTermRecipients to set.
*/ | Sets the awardTemplateReportTermRecipients attribute value | setAwardTemplateReportTermRecipients | {
"repo_name": "blackcathacker/kc.preclean",
"path": "coeus-code/src/main/java/org/kuali/kra/award/home/AwardTemplateReportTerm.java",
"license": "apache-2.0",
"size": 13730
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,252,667 |
public static synchronized ElementRenderMapping getDefault() {
if (defaultMapping == null) {
defaultMapping = new ElementRenderMapping();
defaultMapping.register(TableOfContents.class, RenderTableOfContents.class);
defaultMapping.register(PageNumber.class, RenderPageNumber.class);
defaultMapping.regist... | static synchronized ElementRenderMapping function() { if (defaultMapping == null) { defaultMapping = new ElementRenderMapping(); defaultMapping.register(TableOfContents.class, RenderTableOfContents.class); defaultMapping.register(PageNumber.class, RenderPageNumber.class); defaultMapping.register(ChapterElement.class, R... | /**
* Returns the default render mapping.
* @return The default render mapping.
*/ | Returns the default render mapping | getDefault | {
"repo_name": "RandomCodeOrg/SimplePDF",
"path": "src/main/java/com/github/randomcodeorg/simplepdf/creation/ElementRenderMapping.java",
"license": "apache-2.0",
"size": 5119
} | [
"com.github.randomcodeorg.simplepdf.ChapterElement",
"com.github.randomcodeorg.simplepdf.DocumentImage",
"com.github.randomcodeorg.simplepdf.Line",
"com.github.randomcodeorg.simplepdf.PageNumber",
"com.github.randomcodeorg.simplepdf.Rectangle",
"com.github.randomcodeorg.simplepdf.Table",
"com.github.ran... | import com.github.randomcodeorg.simplepdf.ChapterElement; import com.github.randomcodeorg.simplepdf.DocumentImage; import com.github.randomcodeorg.simplepdf.Line; import com.github.randomcodeorg.simplepdf.PageNumber; import com.github.randomcodeorg.simplepdf.Rectangle; import com.github.randomcodeorg.simplepdf.Table; i... | import com.github.randomcodeorg.simplepdf.*; | [
"com.github.randomcodeorg"
] | com.github.randomcodeorg; | 638,413 |
private static Object getCsvValue(Object apiValue) {
if (apiValue == null) {
return null;
} else if (apiValue instanceof DateTime) {
return DateTimes.toStringWithTimeZone((DateTime) apiValue);
} else if (apiValue instanceof Date) {
return DateTimes.toString((Date) apiValue);
} else i... | static Object function(Object apiValue) { if (apiValue == null) { return null; } else if (apiValue instanceof DateTime) { return DateTimes.toStringWithTimeZone((DateTime) apiValue); } else if (apiValue instanceof Date) { return DateTimes.toString((Date) apiValue); } else if (apiValue instanceof Set<?>) { Set<Object> cs... | /**
* Gets the underlying value of the {@code Value} object that should be used
* for CSV conversion (i.e. DateTimeValue will return a String representation,
* but NumberValue will return a Long or Double).
*
* @param apiValue the api value to convert
* @returns the CSV conversion value of the api... | Gets the underlying value of the Value object that should be used for CSV conversion (i.e. DateTimeValue will return a String representation, but NumberValue will return a Long or Double) | getCsvValue | {
"repo_name": "shyTNT/googleads-java-lib",
"path": "modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/utils/v201411/Pql.java",
"license": "apache-2.0",
"size": 18457
} | [
"com.google.api.ads.dfp.jaxws.v201411.Date",
"com.google.api.ads.dfp.jaxws.v201411.DateTime",
"com.google.api.ads.dfp.jaxws.v201411.Targeting",
"com.google.common.base.Joiner",
"java.util.LinkedHashSet",
"java.util.Set",
"org.apache.commons.lang.StringEscapeUtils"
] | import com.google.api.ads.dfp.jaxws.v201411.Date; import com.google.api.ads.dfp.jaxws.v201411.DateTime; import com.google.api.ads.dfp.jaxws.v201411.Targeting; import com.google.common.base.Joiner; import java.util.LinkedHashSet; import java.util.Set; import org.apache.commons.lang.StringEscapeUtils; | import com.google.api.ads.dfp.jaxws.v201411.*; import com.google.common.base.*; import java.util.*; import org.apache.commons.lang.*; | [
"com.google.api",
"com.google.common",
"java.util",
"org.apache.commons"
] | com.google.api; com.google.common; java.util; org.apache.commons; | 205,311 |
protected void setupObjectList()
{
objectList.add(new NumberHashMap(DataTypes.OBJ_TEXT_ENCODING, this, TextEncoding.TEXT_ENCODING_FIELD_SIZE));
objectList.add(new PairedTextEncodedStringNullTerminated(DataTypes.OBJ_TEXT, this));
} | void function() { objectList.add(new NumberHashMap(DataTypes.OBJ_TEXT_ENCODING, this, TextEncoding.TEXT_ENCODING_FIELD_SIZE)); objectList.add(new PairedTextEncodedStringNullTerminated(DataTypes.OBJ_TEXT, this)); } | /**
* Consists of a text encoding , and then a series of null terminated Strings, there should be an even number
* of Strings as they are paired as involvement/involvee
*/ | Consists of a text encoding , and then a series of null terminated Strings, there should be an even number of Strings as they are paired as involvement/involvee | setupObjectList | {
"repo_name": "Talckrer/BlocksForUse",
"path": "org/jaudiotagger/tag/id3/framebody/FrameBodyIPLS.java",
"license": "gpl-2.0",
"size": 7332
} | [
"org.jaudiotagger.tag.datatype.DataTypes",
"org.jaudiotagger.tag.datatype.NumberHashMap",
"org.jaudiotagger.tag.datatype.PairedTextEncodedStringNullTerminated",
"org.jaudiotagger.tag.id3.valuepair.TextEncoding"
] | import org.jaudiotagger.tag.datatype.DataTypes; import org.jaudiotagger.tag.datatype.NumberHashMap; import org.jaudiotagger.tag.datatype.PairedTextEncodedStringNullTerminated; import org.jaudiotagger.tag.id3.valuepair.TextEncoding; | import org.jaudiotagger.tag.datatype.*; import org.jaudiotagger.tag.id3.valuepair.*; | [
"org.jaudiotagger.tag"
] | org.jaudiotagger.tag; | 212,696 |
private boolean isFilenameAvailable(String path) {
for (String key : downloads.keySet()) {
DownloadRequest r = downloads.get(key);
if (TextUtils.equals(r.getDestination(), path)) {
if (BuildConfig.DEBUG)
Log.d(TAG, path
... | boolean function(String path) { for (String key : downloads.keySet()) { DownloadRequest r = downloads.get(key); if (TextUtils.equals(r.getDestination(), path)) { if (BuildConfig.DEBUG) Log.d(TAG, path + STR); return false; } } if (BuildConfig.DEBUG) Log.d(TAG, path + STR); return true; } | /**
* Returns true if a filename is available and false if it has already been
* taken by another requested download.
*/ | Returns true if a filename is available and false if it has already been taken by another requested download | isFilenameAvailable | {
"repo_name": "Woogis/SisatongPodcast",
"path": "core/src/main/java/net/sisatong/podcast/core/storage/DownloadRequester.java",
"license": "mit",
"size": 14361
} | [
"android.text.TextUtils",
"android.util.Log",
"net.sisatong.podcast.core.BuildConfig",
"net.sisatong.podcast.core.service.download.DownloadRequest"
] | import android.text.TextUtils; import android.util.Log; import net.sisatong.podcast.core.BuildConfig; import net.sisatong.podcast.core.service.download.DownloadRequest; | import android.text.*; import android.util.*; import net.sisatong.podcast.core.*; import net.sisatong.podcast.core.service.download.*; | [
"android.text",
"android.util",
"net.sisatong.podcast"
] | android.text; android.util; net.sisatong.podcast; | 55,322 |
public boolean tryAcquire() {
return tryAcquire(defaultTimeout, TimeUnit.SECONDS);
} | boolean function() { return tryAcquire(defaultTimeout, TimeUnit.SECONDS); } | /**
* Acquires the compile lock. If the compile lock wait timeout is configured,
* it will acquire the lock if it is not held by another thread within the given
* waiting time.
*
* @return {@code true} if the lock was successfully acquired,
* or {@code false} if compile lock wait timeout is configured... | Acquires the compile lock. If the compile lock wait timeout is configured, it will acquire the lock if it is not held by another thread within the given waiting time | tryAcquire | {
"repo_name": "sankarh/hive",
"path": "ql/src/java/org/apache/hadoop/hive/ql/lock/CompileLock.java",
"license": "apache-2.0",
"size": 3988
} | [
"java.util.concurrent.TimeUnit"
] | import java.util.concurrent.TimeUnit; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 869,291 |
void run() throws Exception;
};
private static final Logger _log = Logger.getLogger(JobManager.class);
private final List<JobRunner> runnersList;
private class JobRunner implements Runnable {
private boolean isRunning = true; | void run() throws Exception; }; static final Logger _log = Logger.getLogger(JobManager.class); private final List<JobRunner> functionnersList; private class JobRunner implements Runnable { private boolean isRunning = true; | /**
* Runs the job.
*/ | Runs the job | run | {
"repo_name": "pellcorp/jailer",
"path": "src/main/net/sf/jailer/util/JobManager.java",
"license": "apache-2.0",
"size": 6658
} | [
"java.util.List",
"org.apache.log4j.Logger"
] | import java.util.List; import org.apache.log4j.Logger; | import java.util.*; import org.apache.log4j.*; | [
"java.util",
"org.apache.log4j"
] | java.util; org.apache.log4j; | 2,537,015 |
private @Nullable AppInfo findAppInfo(@NonNull ComponentName componentName,
@NonNull UserHandle user) {
for (AppInfo info: data) {
if (componentName.equals(info.componentName) && user.equals(info.user)) {
return info;
}
... | @Nullable AppInfo function(@NonNull ComponentName componentName, @NonNull UserHandle user) { for (AppInfo info: data) { if (componentName.equals(info.componentName) && user.equals(info.user)) { return info; } } return null; } | /**
* Find an AppInfo object for the given componentName
*
* @return the corresponding AppInfo or null
*/ | Find an AppInfo object for the given componentName | findAppInfo | {
"repo_name": "Deletescape-Media/Lawnchair",
"path": "src/com/android/launcher3/model/AllAppsList.java",
"license": "gpl-3.0",
"size": 11692
} | [
"android.content.ComponentName",
"android.os.UserHandle",
"androidx.annotation.NonNull",
"androidx.annotation.Nullable",
"com.android.launcher3.model.data.AppInfo"
] | import android.content.ComponentName; import android.os.UserHandle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.android.launcher3.model.data.AppInfo; | import android.content.*; import android.os.*; import androidx.annotation.*; import com.android.launcher3.model.data.*; | [
"android.content",
"android.os",
"androidx.annotation",
"com.android.launcher3"
] | android.content; android.os; androidx.annotation; com.android.launcher3; | 1,311,090 |
public static ParserChainTextReader parse(InputStream in) {
return parse(new InputStreamReader(in));
} | static ParserChainTextReader function(InputStream in) { return parse(new InputStreamReader(in)); } | /**
* <p>
* Parses plain text vCards.
* </p>
* <p>
* Use {@link VCardReader} for more control over the parsing.
* </p>
* @param in the input stream
* @return chainer object for completing the parse operation
* @see VCardReader
* @see <a href="http://www.imc.org/pdi/vcard-21.rtf">vCard 2.1</a>
* @s... | Parses plain text vCards. Use <code>VCardReader</code> for more control over the parsing. | parse | {
"repo_name": "hongnguyenpro/ez-vcard",
"path": "src/main/java/ezvcard/Ezvcard.java",
"license": "bsd-2-clause",
"size": 48906
} | [
"java.io.InputStream",
"java.io.InputStreamReader"
] | import java.io.InputStream; import java.io.InputStreamReader; | import java.io.*; | [
"java.io"
] | java.io; | 2,741,643 |
public void completeCodeAttributeForClinit(
int codeAttributeOffset,
int problemLine) {
// reinitialize the contents with the byte modified by the code stream
this.contents = this.codeStream.bCodeStream;
int localContentsOffset = this.codeStream.classFileOffset;
// codeAttributeOffset is the position i... | void function( int codeAttributeOffset, int problemLine) { this.contents = this.codeStream.bCodeStream; int localContentsOffset = this.codeStream.classFileOffset; int code_length = this.codeStream.position; if (code_length > 65535) { this.codeStream.methodDeclaration.scope.problemReporter().bytecodeExceeds64KLimit( thi... | /**
* INTERNAL USE-ONLY
* That method completes the creation of the code attribute by setting
* - the attribute_length
* - max_stack
* - max_locals
* - code_length
* - exception table
* - and debug attributes if necessary.
*/ | INTERNAL USE-ONLY That method completes the creation of the code attribute by setting - the attribute_length - max_stack - max_locals - code_length - exception table - and debug attributes if necessary | completeCodeAttributeForClinit | {
"repo_name": "trylimits/Eclipse-Postfix-Code-Completion",
"path": "luna/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java",
"license": "epl-1.0",
"size": 278846
} | [
"org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants",
"org.eclipse.jdt.internal.compiler.codegen.AttributeNamesConstants"
] | import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.eclipse.jdt.internal.compiler.codegen.AttributeNamesConstants; | import org.eclipse.jdt.internal.compiler.classfmt.*; import org.eclipse.jdt.internal.compiler.codegen.*; | [
"org.eclipse.jdt"
] | org.eclipse.jdt; | 39,387 |
public void testSimpleF2() throws IOException {
Tree tree = new Tree(db);
tree.addFile("a");
tree.addFile("x");
TreeIterator i = makeIterator(tree);
assertTrue(i.hasNext());
assertEquals("a", i.next().getName());
assertEquals("x", i.next().getName());
} | void function() throws IOException { Tree tree = new Tree(db); tree.addFile("a"); tree.addFile("x"); TreeIterator i = makeIterator(tree); assertTrue(i.hasNext()); assertEquals("a", i.next().getName()); assertEquals("x", i.next().getName()); } | /**
* two files
*
* @throws IOException
*/ | two files | testSimpleF2 | {
"repo_name": "imyousuf/jgit",
"path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/TreeIteratorLeafOnlyTest.java",
"license": "bsd-3-clause",
"size": 3700
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,093,914 |
public void trace(String msg) {
logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, msg, null);
} | void function(String msg) { logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, msg, null); } | /**
* Log a message object at level TRACE.
*
* @param msg
* - the message object to be logged
*/ | Log a message object at level TRACE | trace | {
"repo_name": "kbzod/slf4j",
"path": "slf4j-log4j12/src/main/java/org/slf4j/impl/Log4jLoggerAdapter.java",
"license": "mit",
"size": 18364
} | [
"org.apache.log4j.Level"
] | import org.apache.log4j.Level; | import org.apache.log4j.*; | [
"org.apache.log4j"
] | org.apache.log4j; | 1,446,510 |
private int getKeyword(QName qname)
{
return _keywords.get(qname);
} | int function(QName qname) { return _keywords.get(qname); } | /**
* Returns the keyword for the name.
*/ | Returns the keyword for the name | getKeyword | {
"repo_name": "WelcomeHUME/svn-caucho-com-resin",
"path": "modules/extra/src/com/caucho/soap/wsdl/WSDLContentHandler.java",
"license": "gpl-2.0",
"size": 8709
} | [
"javax.xml.namespace.QName"
] | import javax.xml.namespace.QName; | import javax.xml.namespace.*; | [
"javax.xml"
] | javax.xml; | 160,991 |
public static synchronized boolean enableDefaultMetrics() {
if (mc == null || !mc.isEnabled()) {
if (dirtyEnabling) {
throw new IllegalStateException("Reentrancy is not allowed");
}
dirtyEnabling = true;
try {
Class<?> c = Class... | static synchronized boolean function() { if (mc == null !mc.isEnabled()) { if (dirtyEnabling) { throw new IllegalStateException(STR); } dirtyEnabling = true; try { Class<?> c = Class.forName(DEFAULT_METRIC_COLLECTOR_FACTORY); MetricCollector.Factory f = (MetricCollector.Factory)c.newInstance(); MetricCollector instance... | /**
* Starts the default AWS SDK metric collector, but
* only if no metric collector is currently in use at the AWS SDK
* level.
*
* @return true if the default AWS SDK metric collector has been
* successfully started by this call; false otherwise.
*/ | Starts the default AWS SDK metric collector, but only if no metric collector is currently in use at the AWS SDK level | enableDefaultMetrics | {
"repo_name": "jentfoo/aws-sdk-java",
"path": "aws-java-sdk-core/src/main/java/com/amazonaws/metrics/AwsSdkMetrics.java",
"license": "apache-2.0",
"size": 36892
} | [
"org.apache.commons.logging.LogFactory"
] | import org.apache.commons.logging.LogFactory; | import org.apache.commons.logging.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,190,312 |
@RequestMapping(value = "/load1", method = RequestMethod.POST)
public String processIndex(Model model, RedirectAttributes ra,
@RequestParam("input-file") MultipartFile file) throws IllegalStateException, InvalidStateChangeException {
// State Change
if(ControllerHelper.stateHelper(kms, "load")) {
if(f... | @RequestMapping(value = STR, method = RequestMethod.POST) String function(Model model, RedirectAttributes ra, @RequestParam(STR) MultipartFile file) throws IllegalStateException, InvalidStateChangeException { if(ControllerHelper.stateHelper(kms, "load")) { if(file.getContentType().equals(STR)) { try { kms.getState().lo... | /**
* For loading an existing Config.txt File
* @param model Model injection for displaying page
* @param ra RedirectAttributes injection for redirecting page
* @param file config file to load
* @throws IllegalStateException
* @throws InvalidStateChangeException
*/ | For loading an existing Config.txt File | processIndex | {
"repo_name": "freeDom-/jKMS",
"path": "src/main/java/jKMS/controller/LoadController.java",
"license": "gpl-2.0",
"size": 8812
} | [
"java.io.IOException",
"org.springframework.ui.Model",
"org.springframework.web.bind.annotation.RequestMapping",
"org.springframework.web.bind.annotation.RequestMethod",
"org.springframework.web.bind.annotation.RequestParam",
"org.springframework.web.multipart.MultipartFile",
"org.springframework.web.se... | import java.io.IOException; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.multipart.MultipartFile; import org.sp... | import java.io.*; import org.springframework.ui.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.*; import org.springframework.web.servlet.mvc.support.*; | [
"java.io",
"org.springframework.ui",
"org.springframework.web"
] | java.io; org.springframework.ui; org.springframework.web; | 285,993 |
public boolean isUrlExcluded( HttpServletRequest request, List<Pattern> excludedPatterns ) {
if (excludedPatterns != null) {
String uri = RequestUtils.getUri(request);
for ( Pattern pattern : excludedPatterns ) {
if (pattern.matcher(uri).matches()) {
... | boolean function( HttpServletRequest request, List<Pattern> excludedPatterns ) { if (excludedPatterns != null) { String uri = RequestUtils.getUri(request); for ( Pattern pattern : excludedPatterns ) { if (pattern.matcher(uri).matches()) { return true; } } } return false; } | /**
* Check whether the request matches a list of exclude patterns.
*
* @param request The request to check patterns against
* @param excludedPatterns list of patterns for exclusion
*
* @return <tt>true</tt> if the request URI matches one of the given patterns
*/ | Check whether the request matches a list of exclude patterns | isUrlExcluded | {
"repo_name": "shuliangtao/struts-2.3.24",
"path": "src/core/src/main/java/org/apache/struts2/dispatcher/ng/PrepareOperations.java",
"license": "apache-2.0",
"size": 8487
} | [
"java.util.List",
"java.util.regex.Pattern",
"javax.servlet.http.HttpServletRequest",
"org.apache.struts2.RequestUtils"
] | import java.util.List; import java.util.regex.Pattern; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.RequestUtils; | import java.util.*; import java.util.regex.*; import javax.servlet.http.*; import org.apache.struts2.*; | [
"java.util",
"javax.servlet",
"org.apache.struts2"
] | java.util; javax.servlet; org.apache.struts2; | 1,028,071 |
private void verifyPrefaceReceived() throws Http2Exception {
if (!prefaceReceived) {
throw protocolError("Received non-SETTINGS as first frame.");
}
} | void function() throws Http2Exception { if (!prefaceReceived) { throw protocolError(STR); } } | /**
* Verifies that the HTTP/2 connection preface has been received from the remote endpoint.
*/ | Verifies that the HTTP/2 connection preface has been received from the remote endpoint | verifyPrefaceReceived | {
"repo_name": "JungMinu/netty",
"path": "codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java",
"license": "apache-2.0",
"size": 18291
} | [
"io.netty.handler.codec.http2.Http2Exception"
] | import io.netty.handler.codec.http2.Http2Exception; | import io.netty.handler.codec.http2.*; | [
"io.netty.handler"
] | io.netty.handler; | 2,013,551 |
public void setFinancialDocumentReversalDate(Date financialDocumentReversalDate) {
this.financialDocumentReversalDate = financialDocumentReversalDate;
}
| void function(Date financialDocumentReversalDate) { this.financialDocumentReversalDate = financialDocumentReversalDate; } | /**
* Sets the financialDocumentReversalDate attribute.
*
* @param financialDocumentReversalDate The financialDocumentReversalDate to set.
*/ | Sets the financialDocumentReversalDate attribute | setFinancialDocumentReversalDate | {
"repo_name": "ua-eas/ua-kfs-5.3",
"path": "work/src/org/kuali/kfs/gl/businessobject/Reversal.java",
"license": "agpl-3.0",
"size": 25141
} | [
"java.sql.Date"
] | import java.sql.Date; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,060,045 |
static boolean ancestorsHaveExecutePermissions(FileSystem fs, Path path) throws IOException {
Path current = path;
while (current != null) {
//the subdirs in the path should have execute permissions for others
if (!checkPermissionOfOther(fs, current, FsAction.EXECUTE)) {
... | static boolean ancestorsHaveExecutePermissions(FileSystem fs, Path path) throws IOException { Path current = path; while (current != null) { if (!checkPermissionOfOther(fs, current, FsAction.EXECUTE)) { return false; } current = current.getParent(); } return true; } | /**
* Returns true if all ancestors of the specified path have the 'execute'
* permission set for all users (i.e. that other users can traverse
* the directory hierarchy to the given path)
*/ | Returns true if all ancestors of the specified path have the 'execute' permission set for all users (i.e. that other users can traverse the directory hierarchy to the given path) | ancestorsHaveExecutePermissions | {
"repo_name": "easyfmxu/storm-yarn",
"path": "src/main/java/com/yahoo/storm/yarn/Util.java",
"license": "apache-2.0",
"size": 13994
} | [
"java.io.IOException",
"org.apache.hadoop.fs.FileSystem",
"org.apache.hadoop.fs.Path",
"org.apache.hadoop.fs.permission.FsAction"
] | import java.io.IOException; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.permission.FsAction; | import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.fs.permission.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 2,558,730 |
@Override
public void onMapTouchEnd(TouchEvent<?> event) {
onUp(event);
event.stopPropagation();
event.preventDefault();
} | void function(TouchEvent<?> event) { onUp(event); event.stopPropagation(); event.preventDefault(); } | /**
* Forward as mouse up and stop the event.
* @since 2.4.0
*/ | Forward as mouse up and stop the event | onMapTouchEnd | {
"repo_name": "geomajas/geomajas-project-client-gwt2",
"path": "common-gwt/common-gwt/src/main/java/org/geomajas/gwt/client/controller/AbstractController.java",
"license": "agpl-3.0",
"size": 9694
} | [
"com.google.gwt.event.dom.client.TouchEvent"
] | import com.google.gwt.event.dom.client.TouchEvent; | import com.google.gwt.event.dom.client.*; | [
"com.google.gwt"
] | com.google.gwt; | 451,876 |
private void writeQNameAttribute(final java.lang.String namespace, final java.lang.String attName, final javax.xml.namespace.QName qname, final javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
final java.lang.String attributeNamespace = qname.getNamespaceURI(... | void function(final java.lang.String namespace, final java.lang.String attName, final javax.xml.namespace.QName qname, final javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { final java.lang.String attributeNamespace = qname.getNamespaceURI(); java.lang.String attributePrefix = xm... | /**
* Util method to write an attribute without the ns prefix
*/ | Util method to write an attribute without the ns prefix | writeQNameAttribute | {
"repo_name": "jefperito/nfe",
"path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/statusservico/CteStatusServicoStub.java",
"license": "apache-2.0",
"size": 94232
} | [
"javax.xml.namespace.QName"
] | import javax.xml.namespace.QName; | import javax.xml.namespace.*; | [
"javax.xml"
] | javax.xml; | 814,585 |
private void registerMessageNotification(final long accountId) {
ContentResolver resolver = mContext.getContentResolver();
if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) {
Cursor c = resolver.query(
Account.CONTENT_URI, EmailContent.ID_PROJECTION,
... | void function(final long accountId) { ContentResolver resolver = mContext.getContentResolver(); if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) { Cursor c = resolver.query( Account.CONTENT_URI, EmailContent.ID_PROJECTION, null, null, null); try { while (c.moveToNext()) { long id = c.getLong(EmailContent.ID_PROJECTIO... | /**
* Registers an observer for changes to mailboxes in the given account.
* NOTE: This must be called on the notification handler thread.
* @param accountId The ID of the account to register the observer for. May be
* {@link Account#ACCOUNT_ID_COMBINED_VIEW} to register observers f... | Registers an observer for changes to mailboxes in the given account | registerMessageNotification | {
"repo_name": "s20121035/rk3288_android5.1_repo",
"path": "packages/apps/Email/src/com/android/email/EmailNotificationController.java",
"license": "gpl-3.0",
"size": 37998
} | [
"android.content.ContentResolver",
"android.database.ContentObserver",
"android.database.Cursor",
"com.android.emailcommon.provider.Account",
"com.android.emailcommon.provider.EmailContent",
"com.android.mail.utils.LogUtils"
] | import android.content.ContentResolver; import android.database.ContentObserver; import android.database.Cursor; import com.android.emailcommon.provider.Account; import com.android.emailcommon.provider.EmailContent; import com.android.mail.utils.LogUtils; | import android.content.*; import android.database.*; import com.android.emailcommon.provider.*; import com.android.mail.utils.*; | [
"android.content",
"android.database",
"com.android.emailcommon",
"com.android.mail"
] | android.content; android.database; com.android.emailcommon; com.android.mail; | 1,434,055 |
private ISimilarArtistsInfo getSimilarArtists(final IAudioObject audioObject) {
if (!unknownObjectChecker.isUnknownArtist(audioObject
.getArtist(unknownObjectChecker))) {
ISimilarArtistsInfo artists = webServicesHandler
.getSimilarArtists(audioObject
.getArtist(unknownObjectChecker));
if (art... | ISimilarArtistsInfo function(final IAudioObject audioObject) { if (!unknownObjectChecker.isUnknownArtist(audioObject .getArtist(unknownObjectChecker))) { ISimilarArtistsInfo artists = webServicesHandler .getSimilarArtists(audioObject .getArtist(unknownObjectChecker)); if (artists != null) { Set<String> artistNamesSet =... | /**
* Returns similar artists
*
* @param audioObject
*/ | Returns similar artists | getSimilarArtists | {
"repo_name": "PDavid/aTunes",
"path": "aTunes/src/main/java/net/sourceforge/atunes/kernel/modules/context/similar/SimilarArtistsDataSource.java",
"license": "gpl-2.0",
"size": 3769
} | [
"java.util.HashSet",
"java.util.Set",
"javax.swing.ImageIcon",
"net.sourceforge.atunes.Constants",
"net.sourceforge.atunes.model.IArtist",
"net.sourceforge.atunes.model.IArtistInfo",
"net.sourceforge.atunes.model.IAudioObject",
"net.sourceforge.atunes.model.ISimilarArtistsInfo",
"net.sourceforge.atu... | import java.util.HashSet; import java.util.Set; import javax.swing.ImageIcon; import net.sourceforge.atunes.Constants; import net.sourceforge.atunes.model.IArtist; import net.sourceforge.atunes.model.IArtistInfo; import net.sourceforge.atunes.model.IAudioObject; import net.sourceforge.atunes.model.ISimilarArtistsInfo; ... | import java.util.*; import javax.swing.*; import net.sourceforge.atunes.*; import net.sourceforge.atunes.model.*; import net.sourceforge.atunes.utils.*; | [
"java.util",
"javax.swing",
"net.sourceforge.atunes"
] | java.util; javax.swing; net.sourceforge.atunes; | 637,749 |
void set_search_tree_entries(Leaf [] p_entries, ShapeTree p_tree);
}
public static class TreeEntry
{
public TreeEntry(ShapeTree.Storable p_object, int p_shape_index_in_object)
{
object = p_object;
shape_index_in_object = p_shape_index_in_object;
... | void set_search_tree_entries(Leaf [] p_entries, ShapeTree p_tree); } public static class TreeEntry { public TreeEntry(ShapeTree.Storable p_object, int p_shape_index_in_object) { object = p_object; shape_index_in_object = p_shape_index_in_object; } public final ShapeTree.Storable object; public final int shape_index_in_... | /**
* Stores the entries in the ShapeTrees of this object for
* better performance while for example deleting tree entries.
* Called only by insert methods of class ShapeTree.
*/ | Stores the entries in the ShapeTrees of this object for better performance while for example deleting tree entries. Called only by insert methods of class ShapeTree | set_search_tree_entries | {
"repo_name": "andrasfuchs/BioBalanceDetector",
"path": "Tools/KiCad_FreeRouting/FreeRouting-miho-master/freerouting-master/src/main/java/eu/mihosoft/freerouting/datastructures/ShapeTree.java",
"license": "gpl-3.0",
"size": 9579
} | [
"eu.mihosoft.freerouting.geometry.planar.RegularTileShape"
] | import eu.mihosoft.freerouting.geometry.planar.RegularTileShape; | import eu.mihosoft.freerouting.geometry.planar.*; | [
"eu.mihosoft.freerouting"
] | eu.mihosoft.freerouting; | 2,878,864 |
public void set(String name, int index, Object value)
{
Object prop = values.get(name);
if (prop == null)
{
throw new NullPointerException
("No indexed value for '" + name + "[" + index + "]'");
}
else if (prop.getClass().isArray())
{
Array.set(prop, index, value);
}
else if (prop instanc... | void function(String name, int index, Object value) { Object prop = values.get(name); if (prop == null) { throw new NullPointerException (STR + name + "[" + index + "]'"); } else if (prop.getClass().isArray()) { Array.set(prop, index, value); } else if (prop instanceof List) { try { ((List)prop).set(index, value); } ca... | /**
* Set the value of an indexed property with the specified name.
*
* @param name Name of the property whose value is to be set
* @param index Index of the property to be set
* @param value Value to which this property is to be set
* @throws ConversionException if the specified value cannot be
* ... | Set the value of an indexed property with the specified name | set | {
"repo_name": "yurtup/osscan-test",
"path": "src/src/java/com/outscale/osscan/BasicDynaBeanTest.java",
"license": "apache-2.0",
"size": 12651
} | [
"java.lang.reflect.Array",
"java.util.List",
"org.apache.commons.configuration.ConversionException"
] | import java.lang.reflect.Array; import java.util.List; import org.apache.commons.configuration.ConversionException; | import java.lang.reflect.*; import java.util.*; import org.apache.commons.configuration.*; | [
"java.lang",
"java.util",
"org.apache.commons"
] | java.lang; java.util; org.apache.commons; | 2,512,422 |
boolean writeWindowUpdateIfNeeded(ChannelHandlerContext ctx) throws Http2Exception; | boolean writeWindowUpdateIfNeeded(ChannelHandlerContext ctx) throws Http2Exception; | /**
* Updates the flow control window for this stream if it is appropriate.
*
* @return true if {@code WINDOW_UPDATE} was written, false otherwise.
*/ | Updates the flow control window for this stream if it is appropriate | writeWindowUpdateIfNeeded | {
"repo_name": "nayato/netty",
"path": "codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java",
"license": "apache-2.0",
"size": 23585
} | [
"io.netty.channel.ChannelHandlerContext"
] | import io.netty.channel.ChannelHandlerContext; | import io.netty.channel.*; | [
"io.netty.channel"
] | io.netty.channel; | 222,471 |
public ThreadBindingListener getThreadBindingListener() {
return threadBindingListener;
} | ThreadBindingListener function() { return threadBindingListener; } | /**
* Get the associated ThreadBindingListener.
*/ | Get the associated ThreadBindingListener | getThreadBindingListener | {
"repo_name": "benothman/jboss-web-nio2",
"path": "java/org/apache/catalina/core/StandardContext.java",
"license": "lgpl-3.0",
"size": 153634
} | [
"org.apache.catalina.ThreadBindingListener"
] | import org.apache.catalina.ThreadBindingListener; | import org.apache.catalina.*; | [
"org.apache.catalina"
] | org.apache.catalina; | 1,956,131 |
public final Time getTime(String parameterName) throws SQLException {
throw Util.notImplemented();
} | final Time function(String parameterName) throws SQLException { throw Util.notImplemented(); } | /**
* JDBC 3.0
*
* Retrieves the value of a JDBC TIME parameter as ajava.sql.Time object
*
* @param parameterName - the name of the parameter
* @return the parameter value. If the value is SQL NULL, the result is
* null.
* @exception SQLException Feature not implemented for now.
... | JDBC 3.0 Retrieves the value of a JDBC TIME parameter as ajava.sql.Time object | getTime | {
"repo_name": "apache/derby",
"path": "java/org.apache.derby.engine/org/apache/derby/impl/jdbc/EmbedCallableStatement.java",
"license": "apache-2.0",
"size": 62201
} | [
"java.sql.SQLException",
"java.sql.Time"
] | import java.sql.SQLException; import java.sql.Time; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,352,745 |
public void activate(final Remoting r) throws IOException {
remoting = r;
thread = new TCPAcceptorThread();
thread.start();
} | void function(final Remoting r) throws IOException { remoting = r; thread = new TCPAcceptorThread(); thread.start(); } | /**
* Activate the factory. Is called by R-OSGi when the factory is discovered.
*
* @see ch.ethz.iks.r_osgi.channels.NetworkChannelFactory#activate(ch.ethz.iks.r_osgi.Remoting)
*/ | Activate the factory. Is called by R-OSGi when the factory is discovered | activate | {
"repo_name": "bdaum/zoraPD",
"path": "ch.ethz.iks.r_osgi.remote/src/ch/ethz/iks/r_osgi/impl/TCPChannelFactory.java",
"license": "gpl-2.0",
"size": 10600
} | [
"ch.ethz.iks.r_osgi.Remoting",
"java.io.IOException"
] | import ch.ethz.iks.r_osgi.Remoting; import java.io.IOException; | import ch.ethz.iks.r_osgi.*; import java.io.*; | [
"ch.ethz.iks",
"java.io"
] | ch.ethz.iks; java.io; | 695,825 |
public static ResolvedSymlink resolveSymlink(PathMatcher matcher, Path symlink)
throws IOException {
// Normalize since matcher glob:foo/bar/file* doesn't match foo/bar/../bar/file*
Path path = symlink.normalize();
checkArgument(matcher.matches(path), "%s doesn't match %s", path, matcher);
Set<... | static ResolvedSymlink function(PathMatcher matcher, Path symlink) throws IOException { Path path = symlink.normalize(); checkArgument(matcher.matches(path), STR, path, matcher); Set<Path> visited = new LinkedHashSet<>(); while (Files.isSymbolicLink(path)) { visited.add(path); if (visited.size() > 50) { throw new IOExc... | /**
* Resolves {@code symlink} recursively until it finds a regular file or directory. It also
* checks that all its intermediate paths jumps are under {@code matcher}.
*/ | Resolves symlink recursively until it finds a regular file or directory. It also checks that all its intermediate paths jumps are under matcher | resolveSymlink | {
"repo_name": "google/copybara",
"path": "java/com/google/copybara/util/FileUtil.java",
"license": "apache-2.0",
"size": 18631
} | [
"com.google.common.base.Joiner",
"com.google.common.base.Preconditions",
"com.google.common.collect.ImmutableList",
"com.google.common.collect.Iterables",
"java.io.IOException",
"java.nio.file.Files",
"java.nio.file.Path",
"java.nio.file.PathMatcher",
"java.util.LinkedHashSet",
"java.util.Set"
] | import com.google.common.base.Joiner; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.PathMatcher; import java.util.LinkedHashS... | import com.google.common.base.*; import com.google.common.collect.*; import java.io.*; import java.nio.file.*; import java.util.*; | [
"com.google.common",
"java.io",
"java.nio",
"java.util"
] | com.google.common; java.io; java.nio; java.util; | 1,363,860 |
public void addName(int i, String name, String fieldName, String desc, int display) {
this.label[i].setText(name);
if (desc != null) row[i].setToolTipText(desc + " | click for graph | right-click for EarthPlot");
this.label[i].setFont(new Font("SansSerif", Font.PLAIN, Config.displayModuleFontSize));
this.fie... | void function(int i, String name, String fieldName, String desc, int display) { this.label[i].setText(name); if (desc != null) row[i].setToolTipText(desc + STR); this.label[i].setFont(new Font(STR, Font.PLAIN, Config.displayModuleFontSize)); this.fieldName[i] = fieldName; this.display[i] = display; int w = SINGLE_VAL_W... | /**
* Add a row to the module with "name" as the text to display on the screen. This is linked to "fieldName" which
* is the string used to lookup new values in the telemetry record
* @param i - the row
* @param name
* @param fieldName
* @param display - value that determines how the row is written
*/ | Add a row to the module with "name" as the text to display on the screen. This is linked to "fieldName" which is the string used to lookup new values in the telemetry record | addName | {
"repo_name": "ac2cz/FoxTelem",
"path": "src/gui/DisplayModule.java",
"license": "gpl-3.0",
"size": 32775
} | [
"java.awt.Dimension",
"java.awt.Font"
] | import java.awt.Dimension; import java.awt.Font; | import java.awt.*; | [
"java.awt"
] | java.awt; | 220,661 |
public void write(DataOutputStreamPlus output) throws IOException
{
long totalSize = totalSize();
logger.debug("[Stream #{}] Start streaming file {} to {}, repairedAt = {}, totalSize = {}", session.planId(),
sstable.getFilename(), session.peer, sstable.getSSTableMetadata().r... | void function(DataOutputStreamPlus output) throws IOException { long totalSize = totalSize(); logger.debug(STR, session.planId(), sstable.getFilename(), session.peer, sstable.getSSTableMetadata().repairedAt, totalSize); try(RandomAccessReader file = sstable.openDataReader(); ChecksumValidator validator = new File(sstab... | /**
* Stream file of specified sections to given channel.
*
* StreamWriter uses LZF compression on wire to decrease size to transfer.
*
* @param output where this writes data to
* @throws IOException on any I/O error
*/ | Stream file of specified sections to given channel. StreamWriter uses LZF compression on wire to decrease size to transfer | write | {
"repo_name": "newrelic-forks/cassandra",
"path": "src/java/org/apache/cassandra/streaming/StreamWriter.java",
"license": "apache-2.0",
"size": 6503
} | [
"com.ning.compress.lzf.LZFOutputStream",
"java.io.File",
"java.io.IOException",
"org.apache.cassandra.io.sstable.Component",
"org.apache.cassandra.io.util.DataIntegrityMetadata",
"org.apache.cassandra.io.util.DataOutputStreamPlus",
"org.apache.cassandra.io.util.RandomAccessReader",
"org.apache.cassand... | import com.ning.compress.lzf.LZFOutputStream; import java.io.File; import java.io.IOException; import org.apache.cassandra.io.sstable.Component; import org.apache.cassandra.io.util.DataIntegrityMetadata; import org.apache.cassandra.io.util.DataOutputStreamPlus; import org.apache.cassandra.io.util.RandomAccessReader; im... | import com.ning.compress.lzf.*; import java.io.*; import org.apache.cassandra.io.sstable.*; import org.apache.cassandra.io.util.*; import org.apache.cassandra.utils.*; | [
"com.ning.compress",
"java.io",
"org.apache.cassandra"
] | com.ning.compress; java.io; org.apache.cassandra; | 889,663 |
public static String getHdfsKeytab(Map<String, Object> conf) {
String ret;
String blobstoreKeyTab = (String) conf.get(Config.BLOBSTORE_HDFS_KEYTAB);
String hdfsKeyTab = (String) conf.get(Config.STORM_HDFS_LOGIN_KEYTAB);
if (blobstoreKeyTab == null && hdfsKeyTab == null) {
... | static String function(Map<String, Object> conf) { String ret; String blobstoreKeyTab = (String) conf.get(Config.BLOBSTORE_HDFS_KEYTAB); String hdfsKeyTab = (String) conf.get(Config.STORM_HDFS_LOGIN_KEYTAB); if (blobstoreKeyTab == null && hdfsKeyTab == null) { return null; } else if (blobstoreKeyTab == null) { ret = hd... | /**
* Get the hdfs keytab.
* @param conf the storm Configuration
* @return the keytab
*/ | Get the hdfs keytab | getHdfsKeytab | {
"repo_name": "kishorvpatil/incubator-storm",
"path": "storm-client/src/jvm/org/apache/storm/Config.java",
"license": "apache-2.0",
"size": 101797
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,981,305 |
public EntryType getType() {
return type.getValue();
} | EntryType function() { return type.getValue(); } | /**
* Returns this entry's type.
*/ | Returns this entry's type | getType | {
"repo_name": "JabRef/jabref",
"path": "src/main/java/org/jabref/model/entry/BibEntry.java",
"license": "mit",
"size": 38993
} | [
"org.jabref.model.entry.types.EntryType"
] | import org.jabref.model.entry.types.EntryType; | import org.jabref.model.entry.types.*; | [
"org.jabref.model"
] | org.jabref.model; | 336,078 |
public StatusCode getErrorCode() {
return errorCode;
}
// end getters
//add methods
// end add | StatusCode function() { return errorCode; } | /**
* get errorCode of type StatusCode.
* @return StatusCode
*/ | get errorCode of type StatusCode | getErrorCode | {
"repo_name": "kyle0311/oliot-fc",
"path": "fc-server/src/main/java/kr/ac/kaist/resl/ltk/generated/parameters/FieldError.java",
"license": "lgpl-2.1",
"size": 8141
} | [
"kr.ac.kaist.resl.ltk.generated.enumerations.StatusCode"
] | import kr.ac.kaist.resl.ltk.generated.enumerations.StatusCode; | import kr.ac.kaist.resl.ltk.generated.enumerations.*; | [
"kr.ac.kaist"
] | kr.ac.kaist; | 955,040 |
public MessageWriter writer(UUID rmtNodeId) throws IgniteCheckedException; | MessageWriter function(UUID rmtNodeId) throws IgniteCheckedException; | /**
* Creates new message writer instance.
*
* @param rmtNodeId Remote node ID.
* @return Message writer.
* @throws IgniteCheckedException In case of error.
*/ | Creates new message writer instance | writer | {
"repo_name": "vldpyatkov/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/plugin/extensions/communication/MessageFormatter.java",
"license": "apache-2.0",
"size": 1994
} | [
"org.apache.ignite.IgniteCheckedException"
] | import org.apache.ignite.IgniteCheckedException; | import org.apache.ignite.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 87,220 |
static private byte[] getDummyHeaderForVersion(boolean usesHBaseChecksum) {
return usesHBaseChecksum? HConstants.HFILEBLOCK_DUMMY_HEADER: DUMMY_HEADER_NO_CHECKSUM;
} | static byte[] function(boolean usesHBaseChecksum) { return usesHBaseChecksum? HConstants.HFILEBLOCK_DUMMY_HEADER: DUMMY_HEADER_NO_CHECKSUM; } | /**
* Return the appropriate DUMMY_HEADER for the minor version
*/ | Return the appropriate DUMMY_HEADER for the minor version | getDummyHeaderForVersion | {
"repo_name": "ChinmaySKulkarni/hbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java",
"license": "apache-2.0",
"size": 89101
} | [
"org.apache.hadoop.hbase.HConstants"
] | import org.apache.hadoop.hbase.HConstants; | import org.apache.hadoop.hbase.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 181,856 |
public Iterator<Integer> getOrderedRouteNumbers();
| Iterator<Integer> function(); | /**
* Return an iterator of Route in incrementing order
*
*
* @return the set
*/ | Return an iterator of Route in incrementing order | getOrderedRouteNumbers | {
"repo_name": "catageek/ByteCartAPI",
"path": "src/com/github/catageek/ByteCartAPI/Wanderer/RoutingTable.java",
"license": "gpl-3.0",
"size": 2957
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 2,675,203 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.