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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
@Test
public void testGetLoop_1()
throws Exception {
HDScript fixture = new HDScript();
fixture.setName("");
fixture.setParent(new HDScriptGroup());
fixture.setLoop(1);
int result = fixture.getLoop();
assertEquals(1, result);
} | void function() throws Exception { HDScript fixture = new HDScript(); fixture.setName(""); fixture.setParent(new HDScriptGroup()); fixture.setLoop(1); int result = fixture.getLoop(); assertEquals(1, result); } | /**
* Run the int getLoop() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/10/14 9:36 AM
*/ | Run the int getLoop() method test | testGetLoop_1 | {
"repo_name": "kevinmcgoldrick/Tank",
"path": "harness_data/src/test/java/com/intuit/tank/harness/data/HDScriptTest.java",
"license": "epl-1.0",
"size": 4622
} | [
"com.intuit.tank.harness.data.HDScript",
"com.intuit.tank.harness.data.HDScriptGroup",
"org.junit.Assert"
] | import com.intuit.tank.harness.data.HDScript; import com.intuit.tank.harness.data.HDScriptGroup; import org.junit.Assert; | import com.intuit.tank.harness.data.*; import org.junit.*; | [
"com.intuit.tank",
"org.junit"
] | com.intuit.tank; org.junit; | 2,405,563 |
public static NodeXML getFirstNode(File xmlFile) throws Exception {
InputStream stream = null;
try {
stream = new FileInputStream(xmlFile);
return getFirstNode(stream);
} catch (ParserConfigurationException e) {
throw new Exception("cannot get DocumentBuilder : " + e.getMessage());
} catch (S... | static NodeXML function(File xmlFile) throws Exception { InputStream stream = null; try { stream = new FileInputStream(xmlFile); return getFirstNode(stream); } catch (ParserConfigurationException e) { throw new Exception(STR + e.getMessage()); } catch (SAXException e) { throw new Exception(STR + e.getMessage()); } catc... | /**
* get the root node from a file (grh)
*/ | get the root node from a file (grh) | getFirstNode | {
"repo_name": "Javlo/javlo",
"path": "src/main/java/org/javlo/xml/XMLFactory.java",
"license": "lgpl-3.0",
"size": 5021
} | [
"java.io.File",
"java.io.FileInputStream",
"java.io.InputStream",
"javax.xml.parsers.ParserConfigurationException",
"org.javlo.helper.ResourceHelper",
"org.xml.sax.SAXException"
] | import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import javax.xml.parsers.ParserConfigurationException; import org.javlo.helper.ResourceHelper; import org.xml.sax.SAXException; | import java.io.*; import javax.xml.parsers.*; import org.javlo.helper.*; import org.xml.sax.*; | [
"java.io",
"javax.xml",
"org.javlo.helper",
"org.xml.sax"
] | java.io; javax.xml; org.javlo.helper; org.xml.sax; | 1,917,646 |
protected void registerLoggerHandler(boolean logToFile) {
BindingProvider bindingProvider = (BindingProvider) this.port;
Binding binding = bindingProvider.getBinding();
List<Handler> handlerChain = binding.getHandlerChain();
handlerChain.add(new LoggingSoapHandler(logToFile));
binding.setHandlerChain(han... | void function(boolean logToFile) { BindingProvider bindingProvider = (BindingProvider) this.port; Binding binding = bindingProvider.getBinding(); List<Handler> handlerChain = binding.getHandlerChain(); handlerChain.add(new LoggingSoapHandler(logToFile)); binding.setHandlerChain(handlerChain); } | /**
* Registers the logging SOAP handler on the given JAX-WS port component.
*
* @param logToFile
* log to file or not
*/ | Registers the logging SOAP handler on the given JAX-WS port component | registerLoggerHandler | {
"repo_name": "nabero/eid-dss",
"path": "eid-dss-client/src/main/java/be/fedict/eid/dss/client/DigitalSignatureServiceClient.java",
"license": "gpl-3.0",
"size": 27838
} | [
"java.util.List",
"javax.xml.ws.Binding",
"javax.xml.ws.BindingProvider",
"javax.xml.ws.handler.Handler"
] | import java.util.List; import javax.xml.ws.Binding; import javax.xml.ws.BindingProvider; import javax.xml.ws.handler.Handler; | import java.util.*; import javax.xml.ws.*; import javax.xml.ws.handler.*; | [
"java.util",
"javax.xml"
] | java.util; javax.xml; | 2,089,641 |
public List<LanguageDto> getLanguageList(); | List<LanguageDto> function(); | /**
* Get all languageDto entity
* @return
*/ | Get all languageDto entity | getLanguageList | {
"repo_name": "chunInsane/Teaching-Assistance",
"path": "src/main/java/cn/edu/nuc/acmicpc/service/LanguageService.java",
"license": "apache-2.0",
"size": 806
} | [
"cn.edu.nuc.acmicpc.dto.LanguageDto",
"java.util.List"
] | import cn.edu.nuc.acmicpc.dto.LanguageDto; import java.util.List; | import cn.edu.nuc.acmicpc.dto.*; import java.util.*; | [
"cn.edu.nuc",
"java.util"
] | cn.edu.nuc; java.util; | 3,655 |
private boolean classifyMethod(ExecutableElement method) {
switch (method.getParameters().size()) {
case 0:
return classifyMethodNoArgs(method);
case 1:
return classifyMethodOneArg(method);
default:
errorReporter.reportError("Builder methods must have 0 or 1 parameters", ... | boolean function(ExecutableElement method) { switch (method.getParameters().size()) { case 0: return classifyMethodNoArgs(method); case 1: return classifyMethodOneArg(method); default: errorReporter.reportError(STR, method); return false; } } | /**
* Classify a method and update the state of this object based on what is found.
*
* @return true if the method was successfully classified, false if an error has been reported.
*/ | Classify a method and update the state of this object based on what is found | classifyMethod | {
"repo_name": "adriancole/auto",
"path": "value/src/main/java/com/google/auto/value/processor/BuilderMethodClassifier.java",
"license": "apache-2.0",
"size": 15506
} | [
"javax.lang.model.element.ExecutableElement"
] | import javax.lang.model.element.ExecutableElement; | import javax.lang.model.element.*; | [
"javax.lang"
] | javax.lang; | 1,068,577 |
@Override
public boolean display()
{
numberOfRows = 0;
consoleFields = new HashMap<Integer, List<ConsoleField>>();
addInitialRows();
int value = REDISPLAY;
do
{
int userValue;
showInitialRows();
if (isReadonly())
... | boolean function() { numberOfRows = 0; consoleFields = new HashMap<Integer, List<ConsoleField>>(); addInitialRows(); int value = REDISPLAY; do { int userValue; showInitialRows(); if (isReadonly()) { userValue = getConsole().prompt(STR, 1, 2, 2, -1); switch (userValue) { case 1: value = CONTINUE; break; default: value =... | /**
* Display the custom field.
*
* @return
*/ | Display the custom field | display | {
"repo_name": "mtjandra/izpack",
"path": "izpack-panel/src/main/java/com/izforge/izpack/panels/userinput/console/custom/ConsoleCustomField.java",
"license": "apache-2.0",
"size": 9540
} | [
"com.izforge.izpack.panels.userinput.console.ConsoleField",
"java.util.HashMap",
"java.util.List"
] | import com.izforge.izpack.panels.userinput.console.ConsoleField; import java.util.HashMap; import java.util.List; | import com.izforge.izpack.panels.userinput.console.*; import java.util.*; | [
"com.izforge.izpack",
"java.util"
] | com.izforge.izpack; java.util; | 2,831,100 |
public ShapelessRecipe addIngredient(int count, Material ingredient) {
if (ingredients.size() + count > 9) {
throw new IllegalArgumentException("Shapeless recipes cannot have more than 9 ingredients");
}
while (count-- > 0) {
ingredients.add(ingredient);
}
return this;
} | ShapelessRecipe function(int count, Material ingredient) { if (ingredients.size() + count > 9) { throw new IllegalArgumentException(STR); } while (count-- > 0) { ingredients.add(ingredient); } return this; } | /**
* Adds multiples of the specified ingredient.
* @param count How many to add (can't be more than 9!)
* @param ingredient The ingredient to add.
* @return The changed recipe, so you can chain calls.
*/ | Adds multiples of the specified ingredient | addIngredient | {
"repo_name": "raws/spout-commons",
"path": "src/main/java/org/getspout/commons/inventory/ShapelessRecipe.java",
"license": "lgpl-3.0",
"size": 2826
} | [
"org.getspout.commons.material.Material"
] | import org.getspout.commons.material.Material; | import org.getspout.commons.material.*; | [
"org.getspout.commons"
] | org.getspout.commons; | 1,233,304 |
public static ServerPlatform getServerPlatform() {
if (serverPlatform == null) {
serverPlatform = new JEEPlatform();
}
return serverPlatform;
}
| static ServerPlatform function() { if (serverPlatform == null) { serverPlatform = new JEEPlatform(); } return serverPlatform; } | /**
* Return the server platform if running in JEE.
*/ | Return the server platform if running in JEE | getServerPlatform | {
"repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs",
"path": "jpa/eclipselink.jpa.wdf.test/src/org/eclipse/persistence/testing/framework/junit/JUnitTestCase.java",
"license": "epl-1.0",
"size": 8916
} | [
"org.eclipse.persistence.testing.framework.server.JEEPlatform",
"org.eclipse.persistence.testing.framework.server.ServerPlatform"
] | import org.eclipse.persistence.testing.framework.server.JEEPlatform; import org.eclipse.persistence.testing.framework.server.ServerPlatform; | import org.eclipse.persistence.testing.framework.server.*; | [
"org.eclipse.persistence"
] | org.eclipse.persistence; | 809,496 |
public Observable<ServiceResponse<LinkResourceFormatInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String hubName, String linkName, LinkResourceFormatInner parameters) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is ... | Observable<ServiceResponse<LinkResourceFormatInner>> function(String resourceGroupName, String hubName, String linkName, LinkResourceFormatInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (hubName == null) { throw new IllegalArgumentException(STR); } if (linkName == nul... | /**
* Creates a link or updates an existing link in the hub.
*
* @param resourceGroupName The name of the resource group.
* @param hubName The name of the hub.
* @param linkName The name of the link.
* @param parameters Parameters supplied to the CreateOrUpdate Link operation.
* @thro... | Creates a link or updates an existing link in the hub | createOrUpdateWithServiceResponseAsync | {
"repo_name": "martinsawicki/azure-sdk-for-java",
"path": "azure-mgmt-customerinsights/src/main/java/com/microsoft/azure/management/customerinsights/implementation/LinksInner.java",
"license": "mit",
"size": 39620
} | [
"com.google.common.reflect.TypeToken",
"com.microsoft.rest.ServiceResponse",
"com.microsoft.rest.Validator"
] | import com.google.common.reflect.TypeToken; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; | import com.google.common.reflect.*; import com.microsoft.rest.*; | [
"com.google.common",
"com.microsoft.rest"
] | com.google.common; com.microsoft.rest; | 2,130,572 |
private static boolean hasLun(@Nonnull String output, int tid, int lun) {
Matcher targetMatcher = null;
Matcher lunMatcher = null;
String target = null;
for(String line : LINE_SPLITTER.split(output)) {
targetMatcher = TARGET_PATTERN.matcher(line);
if(targetMatcher.matches()) {
target = targetMatc... | static boolean function(@Nonnull String output, int tid, int lun) { Matcher targetMatcher = null; Matcher lunMatcher = null; String target = null; for(String line : LINE_SPLITTER.split(output)) { targetMatcher = TARGET_PATTERN.matcher(line); if(targetMatcher.matches()) { target = targetMatcher.group(1); if(Integer.pars... | /**
* Check the output for the given lun
* @param output
* @param lun
* @param tid the target to look in
* @return
*/ | Check the output for the given lun | hasLun | {
"repo_name": "davenpcj5542009/eucalyptus",
"path": "clc/modules/block-storage/src/main/java/com/eucalyptus/blockstorage/TGTWrapper.java",
"license": "gpl-3.0",
"size": 27457
} | [
"java.util.regex.Matcher",
"javax.annotation.Nonnull"
] | import java.util.regex.Matcher; import javax.annotation.Nonnull; | import java.util.regex.*; import javax.annotation.*; | [
"java.util",
"javax.annotation"
] | java.util; javax.annotation; | 2,284,979 |
// need to override to redirect call to BoltBatchCollector.emitDirect(int taskId, String streamId, Collection<Tuple>
// anchors, List<Object> tuple)
@Override
public void emitDirect(int taskId, Collection<Tuple> anchors, List<Object> tuple) {
this.emitDirect(taskId, Utils.DEFAULT_STREAM_ID, anchors, tuple);
}
... | void function(int taskId, Collection<Tuple> anchors, List<Object> tuple) { this.emitDirect(taskId, Utils.DEFAULT_STREAM_ID, anchors, tuple); } | /**
* The tuple is not emitted directly, but is added to an output batch. Output batches are emitted if they are full.
* The given anchors are ignored right now because anchoring is not yet supported.
*/ | The tuple is not emitted directly, but is added to an output batch. Output batches are emitted if they are full. The given anchors are ignored right now because anchoring is not yet supported | emitDirect | {
"repo_name": "krichter722/aeolus",
"path": "batching/src/main/java/de/hub/cs/dbis/aeolus/batching/BatchOutputCollector.java",
"license": "apache-2.0",
"size": 9839
} | [
"java.util.Collection",
"java.util.List"
] | import java.util.Collection; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,709,460 |
private InputStream openResponseEntity(State state, HttpURLConnection response)
throws StopRequest {
try {
return response.getInputStream();
} catch (IOException ex) {
logNetworkState();
throw new StopRequest(getFinalStatusForHttpError(state),
"while getting entity: " + ex.toString(), ex);
}
... | InputStream function(State state, HttpURLConnection response) throws StopRequest { try { return response.getInputStream(); } catch (IOException ex) { logNetworkState(); throw new StopRequest(getFinalStatusForHttpError(state), STR + ex.toString(), ex); } } | /**
* Open a stream for the HTTP response entity, handling I/O errors.
*
* @return an InputStream to read the response entity
*/ | Open a stream for the HTTP response entity, handling I/O errors | openResponseEntity | {
"repo_name": "okamstudio/godot",
"path": "platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadThread.java",
"license": "mit",
"size": 28625
} | [
"java.io.IOException",
"java.io.InputStream",
"java.net.HttpURLConnection"
] | import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; | import java.io.*; import java.net.*; | [
"java.io",
"java.net"
] | java.io; java.net; | 580,058 |
public void removePropertyChangeListener(PropertyChangeListener pcl) {
m_pcSupport.removePropertyChangeListener(pcl);
} | void function(PropertyChangeListener pcl) { m_pcSupport.removePropertyChangeListener(pcl); } | /**
* Remove a property change listener
*
* @param pcl a <code>PropertyChangeListener</code> value
*/ | Remove a property change listener | removePropertyChangeListener | {
"repo_name": "goddesss/DataModeling",
"path": "src/weka/gui/beans/FilterCustomizer.java",
"license": "gpl-2.0",
"size": 4331
} | [
"java.beans.PropertyChangeListener"
] | import java.beans.PropertyChangeListener; | import java.beans.*; | [
"java.beans"
] | java.beans; | 2,770,316 |
@Test
@SmallTest
@DisableIf.
Build(sdk_is_less_than = Build.VERSION_CODES.N, message = "https://crbug.com/1176658")
public void testExternalIntentWithFallbackUrlAfterRedirectLaunched() throws Throwable {
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl(ABOUT_BLANK_URL)... | @DisableIf. Build(sdk_is_less_than = Build.VERSION_CODES.N, message = STR/server-redirect?" + mIntentToSelfWithFallbackUrl); Tab tab = mActivityTestRule.getActivity().getTab(); TestThreadUtils.runOnUiThreadBlocking( () -> { tab.getNavigationController().navigate(Uri.parse(url)); }); intentInterceptor.waitForIntent(); A... | /**
* Tests that a navigation that redirects to an external intent with a fallback URL results in
* the external intent being launched.
*/ | Tests that a navigation that redirects to an external intent with a fallback URL results in the external intent being launched | testExternalIntentWithFallbackUrlAfterRedirectLaunched | {
"repo_name": "chromium/chromium",
"path": "weblayer/browser/android/javatests/src/org/chromium/weblayer/test/ExternalNavigationTest.java",
"license": "bsd-3-clause",
"size": 76069
} | [
"android.content.Intent",
"android.net.Uri",
"android.os.Build",
"org.chromium.base.test.util.DisableIf",
"org.chromium.content_public.browser.test.util.TestThreadUtils",
"org.chromium.weblayer.Tab",
"org.junit.Assert"
] | import android.content.Intent; import android.net.Uri; import android.os.Build; import org.chromium.base.test.util.DisableIf; import org.chromium.content_public.browser.test.util.TestThreadUtils; import org.chromium.weblayer.Tab; import org.junit.Assert; | import android.content.*; import android.net.*; import android.os.*; import org.chromium.base.test.util.*; import org.chromium.content_public.browser.test.util.*; import org.chromium.weblayer.*; import org.junit.*; | [
"android.content",
"android.net",
"android.os",
"org.chromium.base",
"org.chromium.content_public",
"org.chromium.weblayer",
"org.junit"
] | android.content; android.net; android.os; org.chromium.base; org.chromium.content_public; org.chromium.weblayer; org.junit; | 1,489,574 |
public static File getResource(URL url, boolean install) throws Exception {
ResourceLocate resourceLocate = new ResourceLocate();
ResourceInstall resourceInstall = new ResourceInstall();
return getResource(url, resourceLocate, resourceInstall, install);
} | static File function(URL url, boolean install) throws Exception { ResourceLocate resourceLocate = new ResourceLocate(); ResourceInstall resourceInstall = new ResourceInstall(); return getResource(url, resourceLocate, resourceInstall, install); } | /**
* Get a local mirror of the remote resource or null
* if does not exist.
* If the flag install is set to true, returns a local copy
* of the resource if it already exists or create it otherwise.
*
* @param url the remote {@link URL} of the resource to be retrieved.
* @param install specify if the ... | Get a local mirror of the remote resource or null if does not exist. If the flag install is set to true, returns a local copy of the resource if it already exists or create it otherwise | getResource | {
"repo_name": "AKSW/KBox",
"path": "kbox.core/src/main/java/org/aksw/kbox/KBox.java",
"license": "apache-2.0",
"size": 16072
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 1,014,530 |
public void excludedValues(Integer... excluded) {
this.setOperator(new DBPermittedValuesOperator((Object[]) excluded));
negateOperator();
}
| void function(Integer... excluded) { this.setOperator(new DBPermittedValuesOperator((Object[]) excluded)); negateOperator(); } | /**
*
* excludes the object, Set, List, Array, or vararg of objects
*
*
* @param excluded excluded
*/ | excludes the object, Set, List, Array, or vararg of objects | excludedValues | {
"repo_name": "gregorydgraham/DBvolution",
"path": "src/main/java/nz/co/gregs/dbvolution/datatypes/DBInteger.java",
"license": "apache-2.0",
"size": 21778
} | [
"nz.co.gregs.dbvolution.operators.DBPermittedValuesOperator"
] | import nz.co.gregs.dbvolution.operators.DBPermittedValuesOperator; | import nz.co.gregs.dbvolution.operators.*; | [
"nz.co.gregs"
] | nz.co.gregs; | 398,735 |
public final T createEmptyInstance() throws Exception {
final Constructor<T> constr = (Constructor<T>) this.type.getConstructors()[0];
boolean a = constr.isAccessible();
if (!a) {
constr.setAccessible(true);
}
final List<Object> params = new ArrayList();
f... | final T function() throws Exception { final Constructor<T> constr = (Constructor<T>) this.type.getConstructors()[0]; boolean a = constr.isAccessible(); if (!a) { constr.setAccessible(true); } final List<Object> params = new ArrayList(); for (Class<?> pType : constr.getParameterTypes()) { params.add((pType.isPrimitive()... | /**
* Create new instance of the model, as empty/null'ed as possible
*
* @return new nulled instance (all values in the model will be null)
* @throws Exception things can go wrong
*/ | Create new instance of the model, as empty/null'ed as possible | createEmptyInstance | {
"repo_name": "WouterG/ModelSyncPostgreSQL",
"path": "src/main/java/net/wouto/modelsync/postgresql/persistence/SQLModelManager.java",
"license": "mit",
"size": 19916
} | [
"java.lang.reflect.Constructor",
"java.util.ArrayList",
"java.util.List",
"org.apache.commons.lang.ClassUtils"
] | import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang.ClassUtils; | import java.lang.reflect.*; import java.util.*; import org.apache.commons.lang.*; | [
"java.lang",
"java.util",
"org.apache.commons"
] | java.lang; java.util; org.apache.commons; | 432,345 |
private static int wifiApStateToFiveState(int wifiState) {
switch (wifiState) {
case WifiManager.WIFI_AP_STATE_DISABLED:
return STATE_DISABLED;
case WifiManager.WIFI_AP_STATE_ENABLED:
return STATE_ENABLED;
case W... | static int function(int wifiState) { switch (wifiState) { case WifiManager.WIFI_AP_STATE_DISABLED: return STATE_DISABLED; case WifiManager.WIFI_AP_STATE_ENABLED: return STATE_ENABLED; case WifiManager.WIFI_AP_STATE_DISABLING: return STATE_TURNING_OFF; case WifiManager.WIFI_AP_STATE_ENABLING: return STATE_TURNING_ON; de... | /**
* Converts WifiManager's state values into our Wifi/WifiAP/Bluetooth-common
* state values.
*/ | Converts WifiManager's state values into our Wifi/WifiAP/Bluetooth-common state values | wifiApStateToFiveState | {
"repo_name": "bpbwan/myCode",
"path": "Global_Launcher2/src/com/android/flyaudio/powerwidget/WifiApButton.java",
"license": "gpl-2.0",
"size": 5796
} | [
"android.net.wifi.WifiManager"
] | import android.net.wifi.WifiManager; | import android.net.wifi.*; | [
"android.net"
] | android.net; | 2,909,607 |
public Collection<GoogleSearchResult> searchDocuments(String query) {
final Set<GoogleSearchResult> set = new HashSet<GoogleSearchResult>();
if (query == null || "".equals(query)) {
return null;
}
Document doc = null;
try {
URL url = new URL... | Collection<GoogleSearchResult> function(String query) { final Set<GoogleSearchResult> set = new HashSet<GoogleSearchResult>(); if (query == null STRUTF-8STR&format=xml&num=50STRcountSTRresultSTR.class")) { boolean exists = false; for (GoogleSearchResult r : set) { if (r.getSubject().equals(result.getSubject())) { exist... | /**
* Executed when a search has been started.
*
* @param query the query to search on.
* @return Collection of search documents retreived.
*/ | Executed when a search has been started | searchDocuments | {
"repo_name": "joshuairl/toothchat-client",
"path": "src/plugins/google/src/java/org/jivesoftware/spark/plugin/GoogleSearch.java",
"license": "apache-2.0",
"size": 10240
} | [
"java.util.Collection",
"java.util.HashSet",
"java.util.Set",
"org.jivesoftware.spark.util.log.Log"
] | import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.jivesoftware.spark.util.log.Log; | import java.util.*; import org.jivesoftware.spark.util.log.*; | [
"java.util",
"org.jivesoftware.spark"
] | java.util; org.jivesoftware.spark; | 351,784 |
public void exportToText(PrintWriter writer)
{ writer.print(opponentId);
writer.print(";"+score);
writer.println();
} | void function(PrintWriter writer) { writer.print(opponentId); writer.print(";"+score); writer.println(); } | /**
* export stats data to a text file, in make stat classes changes easier
* @author
* Vincent
*/ | export stats data to a text file, in make stat classes changes easier | exportToText | {
"repo_name": "vlabatut/totalboumboum",
"path": "src/org/totalboumboum/statistics/glicko2/jrs/PairWiseGameResult.java",
"license": "gpl-2.0",
"size": 3582
} | [
"java.io.PrintWriter"
] | import java.io.PrintWriter; | import java.io.*; | [
"java.io"
] | java.io; | 617,278 |
@GET
@Path("mappers")
@Produces(MediaType.APPLICATION_JSON)
@NoCache
public List<IdentityProviderMapperRepresentation> getMappers() {
this.auth.realm().requireViewIdentityProviders();
if (identityProviderModel == null) {
throw new javax.ws.rs.NotFoundException();
... | @Path(STR) @Produces(MediaType.APPLICATION_JSON) List<IdentityProviderMapperRepresentation> function() { this.auth.realm().requireViewIdentityProviders(); if (identityProviderModel == null) { throw new javax.ws.rs.NotFoundException(); } List<IdentityProviderMapperRepresentation> mappers = new LinkedList<>(); for (Ident... | /**
* Get mappers for identity provider
*/ | Get mappers for identity provider | getMappers | {
"repo_name": "agolPL/keycloak",
"path": "services/src/main/java/org/keycloak/services/resources/admin/IdentityProviderResource.java",
"license": "apache-2.0",
"size": 18065
} | [
"java.util.LinkedList",
"java.util.List",
"javax.ws.rs.Path",
"javax.ws.rs.Produces",
"javax.ws.rs.core.MediaType",
"org.jboss.resteasy.spi.NotFoundException",
"org.keycloak.models.IdentityProviderMapperModel",
"org.keycloak.models.utils.ModelToRepresentation",
"org.keycloak.representations.idm.Iden... | import java.util.LinkedList; import java.util.List; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.jboss.resteasy.spi.NotFoundException; import org.keycloak.models.IdentityProviderMapperModel; import org.keycloak.models.utils.ModelToRepresentation; import org.keycloa... | import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.jboss.resteasy.spi.*; import org.keycloak.models.*; import org.keycloak.models.utils.*; import org.keycloak.representations.idm.*; | [
"java.util",
"javax.ws",
"org.jboss.resteasy",
"org.keycloak.models",
"org.keycloak.representations"
] | java.util; javax.ws; org.jboss.resteasy; org.keycloak.models; org.keycloak.representations; | 1,149,823 |
public int smnt(final String dir) throws IOException
{
return sendCommand(FTPCmd.SMNT, dir);
} | int function(final String dir) throws IOException { return sendCommand(FTPCmd.SMNT, dir); } | /**
* A convenience method to send the FTP SMNT command to the server,
* receive the reply, and return the reply code.
*
* @param dir The directory name.
* @return The reply code received from the server.
* @throws FTPConnectionClosedException
* If the FTP server prematurely clo... | A convenience method to send the FTP SMNT command to the server, receive the reply, and return the reply code | smnt | {
"repo_name": "apache/commons-net",
"path": "src/main/java/org/apache/commons/net/ftp/FTP.java",
"license": "apache-2.0",
"size": 80585
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,111,592 |
public void setGlobalNamingResources
(NamingResources globalNamingResources); | void function (NamingResources globalNamingResources); | /**
* Set the global naming resources.
*
* @param globalNamingResources The new global naming resources
*/ | Set the global naming resources | setGlobalNamingResources | {
"repo_name": "plumer/codana",
"path": "tomcat_files/7.0.61/Server.java",
"license": "mit",
"size": 5336
} | [
"org.apache.catalina.deploy.NamingResources"
] | import org.apache.catalina.deploy.NamingResources; | import org.apache.catalina.deploy.*; | [
"org.apache.catalina"
] | org.apache.catalina; | 701,305 |
public void testTempFileAboveThreshold() {
String prefix = "commons-io-test";
String suffix = ".out";
File tempDir = new File(".");
DeferredFileOutputStream dfos =
new DeferredFileOutputStream(testBytes.length - 5, prefix, suffix, tempDir);
assertNull("Check... | void function() { String prefix = STR; String suffix = ".out"; File tempDir = new File("."); DeferredFileOutputStream dfos = new DeferredFileOutputStream(testBytes.length - 5, prefix, suffix, tempDir); assertNull(STR, dfos.getFile()); try { dfos.write(testBytes, 0, testBytes.length); dfos.close(); } catch (IOException ... | /**
* Test specifying a temporary file and the threshold is reached.
*/ | Test specifying a temporary file and the threshold is reached | testTempFileAboveThreshold | {
"repo_name": "tringuyen1401/Stock-analyzing",
"path": "jdbc/lib/commons-io-2.4-src/src/test/java/org/apache/commons/io/output/DeferredFileOutputStreamTest.java",
"license": "mit",
"size": 12116
} | [
"java.io.File",
"java.io.IOException"
] | import java.io.File; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,689,931 |
public static ViewDeviceResponse viewDevice(String appAuthKey, String appId, String deviceId) {
return oneSignal().viewDevice(appAuthKey, appId, deviceId);
} | static ViewDeviceResponse function(String appAuthKey, String appId, String deviceId) { return oneSignal().viewDevice(appAuthKey, appId, deviceId); } | /**
* View the details of an existing device in one of your OneSignal apps
* @param appAuthKey OneSignal App Auth Key, available in Keys & IDs.
* @param appId Your app_id for this device
* @param deviceId Player's OneSignal ID
* @return details of the given device
*/ | View the details of an existing device in one of your OneSignal apps | viewDevice | {
"repo_name": "CurrencyFair/OneSignal-Java-SDK",
"path": "src/main/java/com/currencyfair/onesignal/OneSignal.java",
"license": "apache-2.0",
"size": 15565
} | [
"com.currencyfair.onesignal.model.player.ViewDeviceResponse"
] | import com.currencyfair.onesignal.model.player.ViewDeviceResponse; | import com.currencyfair.onesignal.model.player.*; | [
"com.currencyfair.onesignal"
] | com.currencyfair.onesignal; | 1,016,639 |
interface Transformation<T, R>
{
TransformationState<R> process(Optional<T> elementOptional);
} | interface Transformation<T, R> { TransformationState<R> process(Optional<T> elementOptional); } | /**
* Processes input elements and returns current transformation state.
*
* @param elementOptional an element to be transformed. Will be empty
* when there are no more elements. In such case transformation should
* finish processing and flush any remaining data.
* ... | Processes input elements and returns current transformation state | process | {
"repo_name": "facebook/presto",
"path": "presto-main/src/main/java/com/facebook/presto/operator/WorkProcessor.java",
"license": "apache-2.0",
"size": 12931
} | [
"java.util.Optional"
] | import java.util.Optional; | import java.util.*; | [
"java.util"
] | java.util; | 2,011,751 |
public MethodHelper addInstructions(IComplexInstruction... instructions) {
Block block = this.buildMethod.getBody();
if (block == null) {
block = BlockBuilder.builder().build();
this.buildMethod.setBody(block);
}
for (IComplexInstruction instruction : instructions) {
block.getStatements().add(instru... | MethodHelper function(IComplexInstruction... instructions) { Block block = this.buildMethod.getBody(); if (block == null) { block = BlockBuilder.builder().build(); this.buildMethod.setBody(block); } for (IComplexInstruction instruction : instructions) { block.getStatements().add(instruction.getStatement()); } return th... | /**
* Add an instructions list to the method under construction
*
* @param instructions
* the instructions list to add to the method under construction.
* @return the helper.
*/ | Add an instructions list to the method under construction | addInstructions | {
"repo_name": "awltech/eclipse-optimus",
"path": "net.atos.optimus.m2m.javaxmi.parent/net.atos.optimus.m2m.javaxmi.operation/src/main/java/net/atos/optimus/m2m/javaxmi/operation/methods/MethodHelper.java",
"license": "lgpl-3.0",
"size": 8690
} | [
"net.atos.optimus.m2m.javaxmi.operation.instructions.builders.complex.BlockBuilder",
"net.atos.optimus.m2m.javaxmi.operation.instructions.complex.IComplexInstruction",
"org.eclipse.gmt.modisco.java.Block"
] | import net.atos.optimus.m2m.javaxmi.operation.instructions.builders.complex.BlockBuilder; import net.atos.optimus.m2m.javaxmi.operation.instructions.complex.IComplexInstruction; import org.eclipse.gmt.modisco.java.Block; | import net.atos.optimus.m2m.javaxmi.operation.instructions.builders.complex.*; import net.atos.optimus.m2m.javaxmi.operation.instructions.complex.*; import org.eclipse.gmt.modisco.java.*; | [
"net.atos.optimus",
"org.eclipse.gmt"
] | net.atos.optimus; org.eclipse.gmt; | 2,589,056 |
public String[] getGroupsAuthorized() {
if (noGroupSelectedError || groupsAuthorized != null) {
return groupsAuthorized;
}
AuthzQueriesFacadeAPI authz = PersistenceService.getInstance().getAuthzQueriesFacade();
if (authz!=null){
List authorizations = authz.getAuthorizationByFunctionAndQualifier("TAKE_AS... | String[] function() { if (noGroupSelectedError groupsAuthorized != null) { return groupsAuthorized; } AuthzQueriesFacadeAPI authz = PersistenceService.getInstance().getAuthzQueriesFacade(); if (authz!=null){ List authorizations = authz.getAuthorizationByFunctionAndQualifier(STR, getAssessmentId().toString()); if (autho... | /**
* Returns the groups to which this assessment is released
* @return
*/ | Returns the groups to which this assessment is released | getGroupsAuthorized | {
"repo_name": "harfalm/Sakai-10.1",
"path": "samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/author/AssessmentSettingsBean.java",
"license": "apache-2.0",
"size": 55473
} | [
"java.util.Iterator",
"java.util.List",
"org.sakaiproject.tool.assessment.data.dao.authz.AuthorizationData",
"org.sakaiproject.tool.assessment.facade.AuthzQueriesFacadeAPI",
"org.sakaiproject.tool.assessment.services.PersistenceService"
] | import java.util.Iterator; import java.util.List; import org.sakaiproject.tool.assessment.data.dao.authz.AuthorizationData; import org.sakaiproject.tool.assessment.facade.AuthzQueriesFacadeAPI; import org.sakaiproject.tool.assessment.services.PersistenceService; | import java.util.*; import org.sakaiproject.tool.assessment.data.dao.authz.*; import org.sakaiproject.tool.assessment.facade.*; import org.sakaiproject.tool.assessment.services.*; | [
"java.util",
"org.sakaiproject.tool"
] | java.util; org.sakaiproject.tool; | 1,151,051 |
public void updateAllowImplicidQueryCall(Boolean allow) throws SecurityException {
checkWriteAccess();
boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
if(!hasAccess) throw new SecurityException("no access to update scope setting");
Eleme... | void function(Boolean allow) throws SecurityException { checkWriteAccess(); boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING); if(!hasAccess) throw new SecurityException(STR); Element scope=_getRootElement("scope"); scope.setAttribute(STR,Caster.toString(allow,"")); } | /**
* sets if allowed implicid query call
* @param allow
* @throws SecurityException
*/ | sets if allowed implicid query call | updateAllowImplicidQueryCall | {
"repo_name": "lucee/unoffical-Lucee-no-jre",
"path": "source/java/core/src/lucee/runtime/config/XMLConfigAdmin.java",
"license": "lgpl-2.1",
"size": 224955
} | [
"org.w3c.dom.Element"
] | import org.w3c.dom.Element; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 1,361,038 |
if (message == null && exception == null) {
this.message = StringUtils.EMPTY;
} else if (message == null) {
this.message = exception.getLocalizedMessage();
} else if (exception == null) {
this.message = message;
} else {
this.message = message + " caused by " + exception.getClass().g... | if (message == null && exception == null) { this.message = StringUtils.EMPTY; } else if (message == null) { this.message = exception.getLocalizedMessage(); } else if (exception == null) { this.message = message; } else { this.message = message + STR + exception.getClass().getCanonicalName() + " " + exception.getLocaliz... | /**
* Determines the final structure of log entry message
*
* @param message provided message
*/ | Determines the final structure of log entry message | buildMessage | {
"repo_name": "waveaccess/msbotframework4j",
"path": "msbotframework4j-logging/src/main/java/org/msbotframework4j/logging/BotLogEntry.java",
"license": "apache-2.0",
"size": 2309
} | [
"org.apache.commons.lang3.StringUtils"
] | import org.apache.commons.lang3.StringUtils; | import org.apache.commons.lang3.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,219,029 |
protected AccountManagement getAccountManagement(Product product, Company company) {
return this.getAccountManagement(product.getAccountManagementList(), company);
} | AccountManagement function(Product product, Company company) { return this.getAccountManagement(product.getAccountManagementList(), company); } | /**
* Get the right Account management line according to the product and company
*
* @param productFamily
* @param company
* @return
* @throws AxelorException
*/ | Get the right Account management line according to the product and company | getAccountManagement | {
"repo_name": "ama-axelor/axelor-business-suite",
"path": "axelor-base/src/main/java/com/axelor/apps/base/service/tax/AccountManagementServiceImpl.java",
"license": "agpl-3.0",
"size": 6991
} | [
"com.axelor.apps.account.db.AccountManagement",
"com.axelor.apps.base.db.Company",
"com.axelor.apps.base.db.Product"
] | import com.axelor.apps.account.db.AccountManagement; import com.axelor.apps.base.db.Company; import com.axelor.apps.base.db.Product; | import com.axelor.apps.account.db.*; import com.axelor.apps.base.db.*; | [
"com.axelor.apps"
] | com.axelor.apps; | 1,280,311 |
protected final CascadingStyleSheet createParser(
final HTMLDOMParser htmlParser, final URL currentURL) {
StringBuilder cssCode = new StringBuilder();
List<HTMLDOMElement> elements = htmlParser.find("style,"
+ "link[rel=stylesheet]").listResults();
for (HTMLDOMEl... | final CascadingStyleSheet function( final HTMLDOMParser htmlParser, final URL currentURL) { StringBuilder cssCode = new StringBuilder(); List<HTMLDOMElement> elements = htmlParser.find(STR + STR).listResults(); for (HTMLDOMElement element : elements) { if (element.getTagName().equals("STYLE")) { cssCode.append(element.... | /**
* Create the ph-css stylesheet.
* @param htmlParser The HTML parser.
* @param currentURL The current URL of page.
* @return The ph-css stylesheet.
*/ | Create the ph-css stylesheet | createParser | {
"repo_name": "carlsonsantana/HaTeMiLe-for-Java",
"path": "src/main/java/org/hatemile/util/css/phcss/PHCSSParser.java",
"license": "apache-2.0",
"size": 7682
} | [
"com.helger.css.decl.CascadingStyleSheet",
"java.util.List",
"org.hatemile.util.html.HTMLDOMElement",
"org.hatemile.util.html.HTMLDOMParser"
] | import com.helger.css.decl.CascadingStyleSheet; import java.util.List; import org.hatemile.util.html.HTMLDOMElement; import org.hatemile.util.html.HTMLDOMParser; | import com.helger.css.decl.*; import java.util.*; import org.hatemile.util.html.*; | [
"com.helger.css",
"java.util",
"org.hatemile.util"
] | com.helger.css; java.util; org.hatemile.util; | 1,468,428 |
public KeyspaceInformation[] listKeyspacesOfCurrentUSer(String envName) throws AxisFault {
try {
return cassandraAdminStub.listKeyspacesOfCurrentUser(envName);
} catch (Exception e) {
throw new AxisFault("Error retrieving keyspace names !", e);
}
} | KeyspaceInformation[] function(String envName) throws AxisFault { try { return cassandraAdminStub.listKeyspacesOfCurrentUser(envName); } catch (Exception e) { throw new AxisFault(STR, e); } } | /**
* Get all the keyspaces belong to the currently singed up user
*
* @return A <code>String</code> array representing the names of keyspaces
* @throws AxisFault For errors during locating kepspaces
*/ | Get all the keyspaces belong to the currently singed up user | listKeyspacesOfCurrentUSer | {
"repo_name": "maheshika/product-ss",
"path": "modules/integration/tests-common/admin-clients/src/main/java/org/wso2/ss/integration/common/clients/CassandraKeyspaceAdminClient.java",
"license": "apache-2.0",
"size": 14920
} | [
"org.apache.axis2.AxisFault",
"org.wso2.carbon.cassandra.mgt.stub.ks.xsd.KeyspaceInformation"
] | import org.apache.axis2.AxisFault; import org.wso2.carbon.cassandra.mgt.stub.ks.xsd.KeyspaceInformation; | import org.apache.axis2.*; import org.wso2.carbon.cassandra.mgt.stub.ks.xsd.*; | [
"org.apache.axis2",
"org.wso2.carbon"
] | org.apache.axis2; org.wso2.carbon; | 1,614,429 |
private JSONWriter append(String string) throws JSONException {
if (string == null) {
throw new JSONException("Null pointer");
}
if (this.mode == 'o' || this.mode == 'a') {
try {
if (this.comma && this.mode == 'a') {
this.wri... | JSONWriter function(String string) throws JSONException { if (string == null) { throw new JSONException(STR); } if (this.mode == 'o' this.mode == 'a') { try { if (this.comma && this.mode == 'a') { this.writer.write(','); } this.writer.write(string); } catch (IOException e) { throw new JSONException(e); } if (this.mode ... | /**
* Append a value.
* @param string A string value.
* @return this
* @throws JSONException If the value is out of sequence.
*/ | Append a value | append | {
"repo_name": "enivri/riotapichallenge",
"path": "src/gg/riotapichallenge/json/JSONWriter.java",
"license": "mit",
"size": 10694
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,265,563 |
@Override
int invoke(List<String> arguments, File inputDirectory) throws ClassNotFoundException {
final Object backedAntlrTool = loadTool("antlr.Tool", null);
JavaReflectionUtil.method(backedAntlrTool, Integer.class, "doEverything", String[].class).invoke(backedAntlrTool, new Obj... | int invoke(List<String> arguments, File inputDirectory) throws ClassNotFoundException { final Object backedAntlrTool = loadTool(STR, null); JavaReflectionUtil.method(backedAntlrTool, Integer.class, STR, String[].class).invoke(backedAntlrTool, new Object[]{toArray(arguments)}); return 0; } | /**
* inputDirectory is not used in antlr2
* */ | inputDirectory is not used in antlr2 | invoke | {
"repo_name": "gstevey/gradle",
"path": "subprojects/antlr/src/main/java/org/gradle/api/plugins/antlr/internal/AntlrExecuter.java",
"license": "apache-2.0",
"size": 9593
} | [
"java.io.File",
"java.util.List",
"org.gradle.internal.reflect.JavaReflectionUtil"
] | import java.io.File; import java.util.List; import org.gradle.internal.reflect.JavaReflectionUtil; | import java.io.*; import java.util.*; import org.gradle.internal.reflect.*; | [
"java.io",
"java.util",
"org.gradle.internal"
] | java.io; java.util; org.gradle.internal; | 1,638,998 |
Issue getIssue(String key) throws JiraException; | Issue getIssue(String key) throws JiraException; | /**
* Get a Jira Issue by its Key (i.e. JIRA-1)
*/ | Get a Jira Issue by its Key (i.e. JIRA-1) | getIssue | {
"repo_name": "rashidaligee/kylo",
"path": "integrations/jira/jira-rest-client/src/main/java/com/thinkbiganalytics/jira/JiraClient.java",
"license": "apache-2.0",
"size": 1916
} | [
"com.thinkbiganalytics.jira.domain.Issue"
] | import com.thinkbiganalytics.jira.domain.Issue; | import com.thinkbiganalytics.jira.domain.*; | [
"com.thinkbiganalytics.jira"
] | com.thinkbiganalytics.jira; | 269,827 |
public String getAlbumArtist() {
return Dispatch.get(this, "AlbumArtist").toString();
} | String function() { return Dispatch.get(this, STR).toString(); } | /**
* Wrapper for calling the ActiveX-Method with input-parameter(s).
*
* @return the result is of type String
*/ | Wrapper for calling the ActiveX-Method with input-parameter(s) | getAlbumArtist | {
"repo_name": "cpesch/MetaMusic",
"path": "itunes-com-library/src/main/java/slash/metamusic/itunes/com/binding/IITFileOrCDTrack.java",
"license": "gpl-2.0",
"size": 32709
} | [
"com.jacob.com.Dispatch"
] | import com.jacob.com.Dispatch; | import com.jacob.com.*; | [
"com.jacob.com"
] | com.jacob.com; | 1,587,990 |
public List getValues() {
return m_values;
}
| List function() { return m_values; } | /**
* Returns the list of XML content values for the selected schema type and locale in the XML content.<p>
*
* @return the list of XML content values for the selected schema type and locale in the XML content
*
* @see CmsXmlContentValueSequence#getValue(int)
*/ | Returns the list of XML content values for the selected schema type and locale in the XML content | getValues | {
"repo_name": "comundus/opencms-comundus",
"path": "src/main/java/org/opencms/xml/content/CmsXmlContentValueSequence.java",
"license": "lgpl-2.1",
"size": 8680
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,443,190 |
public List<AsnIndexReference> values() {
return this.indexReferences;
}
| List<AsnIndexReference> function() { return this.indexReferences; } | /**
* Returns the list of index references.
* <br/>(should not contain the admin index reference)
* @return the list of index references
*/ | Returns the list of index references. (should not contain the admin index reference) | values | {
"repo_name": "usgin/usgin-geoportal",
"path": "src/com/esri/gpt/server/assertion/index/AsnIndexReferences.java",
"license": "apache-2.0",
"size": 2505
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 569,467 |
public Jerry css(String propertyName, String value) {
propertyName = StringUtil.fromCamelCase(propertyName, '-');
if (nodes.length == 0) {
return this;
}
for (Node node : nodes) {
String styleAttrValue = node.getAttribute("style");
Map<String, String> styles = createPropertiesMap(styleAttrV... | Jerry function(String propertyName, String value) { propertyName = StringUtil.fromCamelCase(propertyName, '-'); if (nodes.length == 0) { return this; } for (Node node : nodes) { String styleAttrValue = node.getAttribute("style"); Map<String, String> styles = createPropertiesMap(styleAttrValue, ';', ':'); if (value.leng... | /**
* Sets one or more CSS properties for the set of matched elements.
* By passing an empty value, that property will be removed.
* Note that this is different from jQuery, where this means
* that property will be reset to previous value if existed.
*/ | Sets one or more CSS properties for the set of matched elements. By passing an empty value, that property will be removed. Note that this is different from jQuery, where this means that property will be reset to previous value if existed | css | {
"repo_name": "vilmospapp/jodd",
"path": "jodd-lagarto/src/main/java/jodd/jerry/Jerry.java",
"license": "bsd-2-clause",
"size": 34951
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,810,983 |
public synchronized Set<Object> getCoreKeysForIndex(String index) {
final Set<IndexReader.CacheKey> objects = indexToCoreKey.get(index);
if (objects == null) {
return Collections.emptySet();
}
// we have to copy otherwise we risk ConcurrentModificationException
re... | synchronized Set<Object> function(String index) { final Set<IndexReader.CacheKey> objects = indexToCoreKey.get(index); if (objects == null) { return Collections.emptySet(); } return Set.copyOf(objects); } | /**
* Get the set of core cache keys associated with the given index.
*/ | Get the set of core cache keys associated with the given index | getCoreKeysForIndex | {
"repo_name": "EvilMcJerkface/crate",
"path": "server/src/main/java/org/elasticsearch/common/lucene/ShardCoreKeyMap.java",
"license": "apache-2.0",
"size": 6689
} | [
"java.util.Collections",
"java.util.Set",
"org.apache.lucene.index.IndexReader"
] | import java.util.Collections; import java.util.Set; import org.apache.lucene.index.IndexReader; | import java.util.*; import org.apache.lucene.index.*; | [
"java.util",
"org.apache.lucene"
] | java.util; org.apache.lucene; | 1,481,011 |
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux<PremiumMessagingRegionInner> listAsync() {
return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
} | @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux<PremiumMessagingRegionInner> function() { return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } | /**
* Gets the available premium messaging regions for servicebus.
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the available premium messaging regions for ... | Gets the available premium messaging regions for servicebus | listAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/implementation/PremiumMessagingRegionsClientImpl.java",
"license": "mit",
"size": 13570
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedFlux",
"com.azure.resourcemanager.servicebus.fluent.models.PremiumMessagingRegionInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; import com.azure.resourcemanager.servicebus.fluent.models.PremiumMessagingRegionInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.servicebus.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,308,239 |
public Map getFactoryMap() {
return factoryMap;
}
| Map function() { return factoryMap; } | /**
* This method exposes all the ConfigurationFactories and its Extensions
*
* @return Map of factories
*/ | This method exposes all the ConfigurationFactories and its Extensions | getFactoryMap | {
"repo_name": "maheshika/wso2-synapse",
"path": "modules/core/src/main/java/org/apache/synapse/config/xml/ConfigurationFactoryAndSerializerFinder.java",
"license": "apache-2.0",
"size": 8976
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 200,998 |
public void printVariableTable() {
StringWriter sWriter = new StringWriter(4096);
PrintWriter out = new PrintWriter(sWriter);
out.println("");
out.println("----------------------------------- Variable Table --------------------------------------------");
out.println(""... | void function() { StringWriter sWriter = new StringWriter(4096); PrintWriter out = new PrintWriter(sWriter); out.println(STR----------------------------------- Variable Table --------------------------------------------"); out.println(STR value orig dest name chg bySTRIndex Name Type index index index index altSTRSTR%5... | /**
* Prints a variable table to an internal string and the debug logger.
*/ | Prints a variable table to an internal string and the debug logger | printVariableTable | {
"repo_name": "moeckel/silo",
"path": "third-party/common-base/src/java/com/pb/common/calculator/UtilityExpressionCalculator.java",
"license": "gpl-2.0",
"size": 65403
} | [
"java.io.PrintWriter",
"java.io.StringWriter"
] | import java.io.PrintWriter; import java.io.StringWriter; | import java.io.*; | [
"java.io"
] | java.io; | 1,810,041 |
Set<Thing> getAllThingsRegistred(); | Set<Thing> getAllThingsRegistred(); | /**
* Returns all the {@link Thing} registered.
*
* @returns all the {@link Thing}.
*/ | Returns all the <code>Thing</code> registered | getAllThingsRegistred | {
"repo_name": "basriram/openhab2-addons",
"path": "addons/binding/org.openhab.binding.wizlighting/src/main/java/org/openhab/binding/wizlighting/handler/WizLightingMediator.java",
"license": "epl-1.0",
"size": 2207
} | [
"java.util.Set",
"org.eclipse.smarthome.core.thing.Thing"
] | import java.util.Set; import org.eclipse.smarthome.core.thing.Thing; | import java.util.*; import org.eclipse.smarthome.core.thing.*; | [
"java.util",
"org.eclipse.smarthome"
] | java.util; org.eclipse.smarthome; | 2,637,888 |
public void changeWidthAndHeight(float w, float h) {
setContentSize(CGSize.make(w, h));
} | void function(float w, float h) { setContentSize(CGSize.make(w, h)); } | /** change width and height
* @since v0.8 */ | change width and height | changeWidthAndHeight | {
"repo_name": "ouyangwenyuan/androidapp",
"path": "tofuflee/src/org/cocos2d/layers/CCColorLayer.java",
"license": "apache-2.0",
"size": 6226
} | [
"org.cocos2d.types.CGSize"
] | import org.cocos2d.types.CGSize; | import org.cocos2d.types.*; | [
"org.cocos2d.types"
] | org.cocos2d.types; | 1,391,478 |
public Response getResponse() {
return ObjectModelHelper.getResponse(currentCall.getObjectModel());
} | Response function() { return ObjectModelHelper.getResponse(currentCall.getObjectModel()); } | /**
* Get the current response
* @return The response
*/ | Get the current response | getResponse | {
"repo_name": "apache/cocoon",
"path": "blocks/cocoon-flowscript/cocoon-flowscript-impl/src/main/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java",
"license": "apache-2.0",
"size": 29761
} | [
"org.apache.cocoon.environment.ObjectModelHelper",
"org.apache.cocoon.environment.Response"
] | import org.apache.cocoon.environment.ObjectModelHelper; import org.apache.cocoon.environment.Response; | import org.apache.cocoon.environment.*; | [
"org.apache.cocoon"
] | org.apache.cocoon; | 305,601 |
public static int writeUnsignedITF8(final int value, final OutputStream outputStream) throws IOException {
if ((value >>> 7) == 0) {
outputStream.write(value);
return 8;
}
if ((value >>> 14) == 0) {
outputStream.write(((value >> 8) | 128));
ou... | static int function(final int value, final OutputStream outputStream) throws IOException { if ((value >>> 7) == 0) { outputStream.write(value); return 8; } if ((value >>> 14) == 0) { outputStream.write(((value >> 8) 128)); outputStream.write((value & 0xFF)); return 16; } if ((value >>> 21) == 0) { outputStream.write(((... | /**
* Writes an unsigned (32 bit) integer to an {@link OutputStream} encoded as ITF8. The sign bit is interpreted as a value bit.
*
* @param value the value to be written out
* @param outputStream the stream to write to
* @return number of bits written
* @throws IOException as per java ... | Writes an unsigned (32 bit) integer to an <code>OutputStream</code> encoded as ITF8. The sign bit is interpreted as a value bit | writeUnsignedITF8 | {
"repo_name": "xubo245/CloudSW",
"path": "src/main/java/htsjdk/samtools/cram/io/ITF8.java",
"license": "gpl-2.0",
"size": 6276
} | [
"java.io.IOException",
"java.io.OutputStream"
] | import java.io.IOException; import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 1,278,785 |
@Override
protected TextView getHeaderText(Context context, TypedArray attrs) {
return (TextView) findViewById(R.id.pull_to_refresh_text);
} | TextView function(Context context, TypedArray attrs) { return (TextView) findViewById(R.id.pull_to_refresh_text); } | /**
* Bind HeaderText layout Component to some field
*/ | Bind HeaderText layout Component to some field | getHeaderText | {
"repo_name": "hkh412/pulltorefresh",
"path": "src/com/handmark/pulltorefresh/library/internal/DefaultGoogleStyleViewLayout.java",
"license": "apache-2.0",
"size": 3104
} | [
"android.content.Context",
"android.content.res.TypedArray",
"android.widget.TextView"
] | import android.content.Context; import android.content.res.TypedArray; import android.widget.TextView; | import android.content.*; import android.content.res.*; import android.widget.*; | [
"android.content",
"android.widget"
] | android.content; android.widget; | 98,601 |
public MessageTypeEnum getMessageType(){
checkShell();
Image messageImage = getMessageImage();
if(messageImage == null){
return MessageTypeEnum.NONE;
} else if(messageImage.equals(JFaceResources.getImage(DLG_IMG_MESSAGE_ERROR))){
return MessageTypeEnum.ERROR;
} else if (messageImage.equals(JFaceResou... | MessageTypeEnum function(){ checkShell(); Image messageImage = getMessageImage(); if(messageImage == null){ return MessageTypeEnum.NONE; } else if(messageImage.equals(JFaceResources.getImage(DLG_IMG_MESSAGE_ERROR))){ return MessageTypeEnum.ERROR; } else if (messageImage.equals(JFaceResources.getImage(DLG_IMG_MESSAGE_IN... | /**
* Return current dialog page message.
* @return message type
*/ | Return current dialog page message | getMessageType | {
"repo_name": "jboss-reddeer/reddeer",
"path": "plugins/org.eclipse.reddeer.jface/src/org/eclipse/reddeer/jface/dialogs/TitleAreaDialog.java",
"license": "epl-1.0",
"size": 4978
} | [
"org.eclipse.jface.resource.JFaceResources",
"org.eclipse.swt.graphics.Image"
] | import org.eclipse.jface.resource.JFaceResources; import org.eclipse.swt.graphics.Image; | import org.eclipse.jface.resource.*; import org.eclipse.swt.graphics.*; | [
"org.eclipse.jface",
"org.eclipse.swt"
] | org.eclipse.jface; org.eclipse.swt; | 127,487 |
Composite container = new Composite(parent, SWT.NONE);
setControl(container);
container.setLayout(new GridLayout(1, false));
_btnAddTheSource = new Button(container, SWT.CHECK);
_btnAddTheSource.setSelection(true);
_btnAddTheSource.setText("Add the source file as 'script' to an Asset Pack file.");
_tre... | Composite container = new Composite(parent, SWT.NONE); setControl(container); container.setLayout(new GridLayout(1, false)); _btnAddTheSource = new Button(container, SWT.CHECK); _btnAddTheSource.setSelection(true); _btnAddTheSource.setText(STR); _treeViewer = new TreeViewer(container); Tree tree = _treeViewer.getTree()... | /**
* Create contents of the wizard.
*
* @param parent
*/ | Create contents of the wizard | createControl | {
"repo_name": "boniatillo-com/PhaserEditor",
"path": "source/phasereditor/phasereditor.canvas.ui/src/phasereditor/canvas/ui/wizards/NewPage_AssetPackSection.java",
"license": "epl-1.0",
"size": 4946
} | [
"org.eclipse.jface.viewers.TreeViewer",
"org.eclipse.swt.layout.GridData",
"org.eclipse.swt.layout.GridLayout",
"org.eclipse.swt.widgets.Button",
"org.eclipse.swt.widgets.Composite",
"org.eclipse.swt.widgets.Tree"
] | import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Tree; | import org.eclipse.jface.viewers.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; | [
"org.eclipse.jface",
"org.eclipse.swt"
] | org.eclipse.jface; org.eclipse.swt; | 740,139 |
public static Server forRouter(Mode mode, int port, Function<BuiltInComponents, Router> block) {
return new Builder()
.mode(mode)
.http(port)
.build(block);
}
public enum Protocol {
HTTP,
HTTPS
}
private static class Conf... | static Server function(Mode mode, int port, Function<BuiltInComponents, Router> block) { return new Builder() .mode(mode) .http(port) .build(block); } public enum Protocol { HTTP, HTTPS } private static class Config { private final Map<Protocol, Integer> _ports; private final Mode _mode; Config(Map<Protocol, Integer> _... | /**
* Create a server for the router returned by the given block.
*
* @param block The block which creates a router.
* @param mode The mode the server will run on.
* @param port The port the server will run on.
*
* @return The running server.
*/ | Create a server for the router returned by the given block | forRouter | {
"repo_name": "hagl/playframework",
"path": "framework/src/play-server/src/main/java/play/server/Server.java",
"license": "apache-2.0",
"size": 10263
} | [
"java.util.Map",
"java.util.function.Function"
] | import java.util.Map; import java.util.function.Function; | import java.util.*; import java.util.function.*; | [
"java.util"
] | java.util; | 2,018,259 |
protected ModelAndView list(HttpSession session, ListForm listForm, int page) {
PagedResults result = null;
boolean ascending = !WebViewUtils.ZERO.equals(listForm.getOrderBy());
result = dao.listPaged(listForm.getField(), listForm.getStartWith(),
page, ascending);
log.debug("Viewing page: " + pa... | ModelAndView function(HttpSession session, ListForm listForm, int page) { PagedResults result = null; boolean ascending = !WebViewUtils.ZERO.equals(listForm.getOrderBy()); result = dao.listPaged(listForm.getField(), listForm.getStartWith(), page, ascending); log.debug(STR + page); cacheUtil.setListPageNumber(session, p... | /**
* Retrieve the data from database.
*
* @param session
* @param listForm
* @param page
* @return
*/ | Retrieve the data from database | list | {
"repo_name": "Joe23/capelin-opac",
"path": "capelin-mvc/src/org/capelin/mvc/controller/CatalogRecordController.java",
"license": "agpl-3.0",
"size": 34371
} | [
"javax.servlet.http.HttpSession",
"org.capelin.mvc.utils.WebViewUtils",
"org.capelin.mvc.web.form.ListForm",
"org.capelin.transaction.dao.PagedResults",
"org.springframework.web.servlet.ModelAndView"
] | import javax.servlet.http.HttpSession; import org.capelin.mvc.utils.WebViewUtils; import org.capelin.mvc.web.form.ListForm; import org.capelin.transaction.dao.PagedResults; import org.springframework.web.servlet.ModelAndView; | import javax.servlet.http.*; import org.capelin.mvc.utils.*; import org.capelin.mvc.web.form.*; import org.capelin.transaction.dao.*; import org.springframework.web.servlet.*; | [
"javax.servlet",
"org.capelin.mvc",
"org.capelin.transaction",
"org.springframework.web"
] | javax.servlet; org.capelin.mvc; org.capelin.transaction; org.springframework.web; | 1,792,167 |
@Test
public void testCorruptedIndexPartitionShouldFailValidationWithoutCrc() throws Exception {
Ignite ignite = prepareGridForTest();
forceCheckpoint();
stopAllGrids();
File idxPath = indexPartition(ignite, GROUP_NAME);
corruptIndexPartition(idxPath, 6, 47746);
... | void function() throws Exception { Ignite ignite = prepareGridForTest(); forceCheckpoint(); stopAllGrids(); File idxPath = indexPartition(ignite, GROUP_NAME); corruptIndexPartition(idxPath, 6, 47746); startGrids(GRID_CNT); awaitPartitionMapExchange(); forceCheckpoint(); enableCheckpoints(G.allGrids(), false); injectTes... | /**
* Tests with that corrupted pages in the index partition are detected.
*/ | Tests with that corrupted pages in the index partition are detected | testCorruptedIndexPartitionShouldFailValidationWithoutCrc | {
"repo_name": "samaitra/ignite",
"path": "modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerIndexingTest.java",
"license": "apache-2.0",
"size": 10837
} | [
"java.io.File",
"org.apache.ignite.Ignite",
"org.apache.ignite.internal.util.typedef.G",
"org.apache.ignite.testframework.GridTestUtils"
] | import java.io.File; import org.apache.ignite.Ignite; import org.apache.ignite.internal.util.typedef.G; import org.apache.ignite.testframework.GridTestUtils; | import java.io.*; import org.apache.ignite.*; import org.apache.ignite.internal.util.typedef.*; import org.apache.ignite.testframework.*; | [
"java.io",
"org.apache.ignite"
] | java.io; org.apache.ignite; | 2,461,203 |
public ExpressionClause<RecipientListDefinition<Type>> recipientList() {
RecipientListDefinition<Type> answer = new RecipientListDefinition<Type>();
addOutput(answer);
return ExpressionClause.createAndSetExpression(answer);
}
/**
* <a href="http://camel.apache.org/routing-slip.... | ExpressionClause<RecipientListDefinition<Type>> function() { RecipientListDefinition<Type> answer = new RecipientListDefinition<Type>(); addOutput(answer); return ExpressionClause.createAndSetExpression(answer); } /** * <a href="http: * Creates a routing slip allowing you to route a message consecutively through a seri... | /**
* <a href="http://camel.apache.org/recipient-list.html">Recipient List EIP:</a>
* Creates a dynamic recipient list allowing you to route messages to a number of dynamically specified recipients
*
* @return the expression clause to configure the expression to decide the destinations
*/ | Creates a dynamic recipient list allowing you to route messages to a number of dynamically specified recipients | recipientList | {
"repo_name": "kingargyle/turmeric-bot",
"path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java",
"license": "apache-2.0",
"size": 115380
} | [
"org.apache.camel.builder.ExpressionClause"
] | import org.apache.camel.builder.ExpressionClause; | import org.apache.camel.builder.*; | [
"org.apache.camel"
] | org.apache.camel; | 2,811,519 |
public float getTotalRating(ScriptNode node, String ratingSchemeName)
{
return ratingService.getTotalRating(node.getNodeRef(), ratingSchemeName);
}
| float function(ScriptNode node, String ratingSchemeName) { return ratingService.getTotalRating(node.getNodeRef(), ratingSchemeName); } | /**
* Gets the total (sum) rating by all users on the specified node in the specified scheme.
* @param node
* @param ratingSchemeName
* @return
*/ | Gets the total (sum) rating by all users on the specified node in the specified scheme | getTotalRating | {
"repo_name": "loftuxab/community-edition-old",
"path": "projects/repository/source/java/org/alfresco/repo/rating/script/ScriptRatingService.java",
"license": "lgpl-3.0",
"size": 7010
} | [
"org.alfresco.repo.jscript.ScriptNode"
] | import org.alfresco.repo.jscript.ScriptNode; | import org.alfresco.repo.jscript.*; | [
"org.alfresco.repo"
] | org.alfresco.repo; | 926,729 |
public Builder addMenuItem(@NonNull String label, @NonNull PendingIntent pendingIntent) {
if (mMenuItems == null) mMenuItems = new ArrayList<>();
Bundle bundle = new Bundle();
bundle.putString(KEY_MENU_ITEM_TITLE, label);
bundle.putParcelable(KEY_PENDING_INTENT, p... | Builder function(@NonNull String label, @NonNull PendingIntent pendingIntent) { if (mMenuItems == null) mMenuItems = new ArrayList<>(); Bundle bundle = new Bundle(); bundle.putString(KEY_MENU_ITEM_TITLE, label); bundle.putParcelable(KEY_PENDING_INTENT, pendingIntent); mMenuItems.add(bundle); return this; } | /**
* Adds a menu item.
*
* @param label Menu label.
* @param pendingIntent Pending intent delivered when the menu item is clicked.
*/ | Adds a menu item | addMenuItem | {
"repo_name": "andrewlu1/CustomTabNew",
"path": "customtabs/src/android/support/customtabs/CustomTabsIntent.java",
"license": "apache-2.0",
"size": 17506
} | [
"android.app.PendingIntent",
"android.os.Bundle",
"android.support.annotation.NonNull",
"java.util.ArrayList"
] | import android.app.PendingIntent; import android.os.Bundle; import android.support.annotation.NonNull; import java.util.ArrayList; | import android.app.*; import android.os.*; import android.support.annotation.*; import java.util.*; | [
"android.app",
"android.os",
"android.support",
"java.util"
] | android.app; android.os; android.support; java.util; | 1,984,168 |
public void setBaseShape(Shape shape);
// FIXME: add setBaseShape(Shape, boolean) ?
// ITEM LABELS VISIBLE | void function(Shape shape); | /**
* Sets the base shape and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param shape the shape (<code>null</code> not permitted).
*
* @see #getBaseShape()
*/ | Sets the base shape and sends a <code>RendererChangeEvent</code> to all registered listeners | setBaseShape | {
"repo_name": "ibestvina/multithread-centiscape",
"path": "CentiScaPe2.1/src/main/java/org/jfree/chart/renderer/category/CategoryItemRenderer.java",
"license": "mit",
"size": 66885
} | [
"java.awt.Shape"
] | import java.awt.Shape; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,517,017 |
public void pushToQueue(String queueName, Object anObject, Date expirationDate) {
// If no memcached client don't bother trying to put something in the queue
if (!isValidQueue()) {
logger.warn("The queue ["+queueName+"] is NOT valid. ");
return;
}
memcacheClient.set(queueNameFrom(queueName), anObject, ... | void function(String queueName, Object anObject, Date expirationDate) { if (!isValidQueue()) { logger.warn(STR+queueName+STR); return; } memcacheClient.set(queueNameFrom(queueName), anObject, expirationDate, queueNameFrom(queueName).hashCode()); logger.debug(STR + anObject + STR+queueName+"]"); } | /**
* Push an object to the Queue.
* @param queueName the name of the queue where the object should be added
* @param anObject the object to push in the queue
* @param expirationDate when the object can be expired in the queue
*/ | Push an object to the Queue | pushToQueue | {
"repo_name": "jackstraw66/web",
"path": "livescribe/lsmailservice/src/main/java/com/livescribe/framework/lsmail/QueueManager.java",
"license": "bsd-2-clause",
"size": 6610
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,293,498 |
public Chunk handleChunk(Chunk request) {
if (Config.LOGV)
Log.v("ddm-heap", "Handling " + name(request.type) + " chunk");
int type = request.type;
if (type == CHUNK_HPIF) {
return handleHPIF(request);
} else if (type == CHUNK_HPSG) {
return handl... | Chunk function(Chunk request) { if (Config.LOGV) Log.v(STR, STR + name(request.type) + STR); int type = request.type; if (type == CHUNK_HPIF) { return handleHPIF(request); } else if (type == CHUNK_HPSG) { return handleHPSGNHSG(request, false); } else if (type == CHUNK_HPDU) { return handleHPDU(request); } else if (type... | /**
* Handle a chunk of data.
*/ | Handle a chunk of data | handleChunk | {
"repo_name": "mateor/PDroidHistory",
"path": "frameworks/base/core/java/android/ddm/DdmHandleHeap.java",
"license": "gpl-3.0",
"size": 8667
} | [
"android.util.Config",
"android.util.Log",
"org.apache.harmony.dalvik.ddmc.Chunk",
"org.apache.harmony.dalvik.ddmc.ChunkHandler"
] | import android.util.Config; import android.util.Log; import org.apache.harmony.dalvik.ddmc.Chunk; import org.apache.harmony.dalvik.ddmc.ChunkHandler; | import android.util.*; import org.apache.harmony.dalvik.ddmc.*; | [
"android.util",
"org.apache.harmony"
] | android.util; org.apache.harmony; | 267,713 |
public WindowDeclarationDescr windowDeclaration(DeclareDescrBuilder ddb) throws RecognitionException {
WindowDeclarationDescrBuilder declare = null;
try {
declare = helper.start(ddb,
WindowDeclarationDescrBuilder.class,
null);
String w... | WindowDeclarationDescr function(DeclareDescrBuilder ddb) throws RecognitionException { WindowDeclarationDescrBuilder declare = null; try { declare = helper.start(ddb, WindowDeclarationDescrBuilder.class, null); String window = ""; match(input, DRL6Lexer.ID, DroolsSoftKeywords.WINDOW, null, DroolsEditorType.KEYWORD); if... | /**
* windowDeclaration := WINDOW ID annotation* lhsPatternBind END
*
* @return
* @throws org.antlr.runtime.RecognitionException
*/ | windowDeclaration := WINDOW ID annotation* lhsPatternBind END | windowDeclaration | {
"repo_name": "reynoldsm88/drools",
"path": "drools-compiler/src/main/java/org/drools/compiler/lang/DRL6Parser.java",
"license": "apache-2.0",
"size": 174758
} | [
"org.antlr.runtime.RecognitionException",
"org.antlr.runtime.Token",
"org.drools.compiler.lang.api.DeclareDescrBuilder",
"org.drools.compiler.lang.api.WindowDeclarationDescrBuilder",
"org.drools.compiler.lang.descr.WindowDeclarationDescr"
] | import org.antlr.runtime.RecognitionException; import org.antlr.runtime.Token; import org.drools.compiler.lang.api.DeclareDescrBuilder; import org.drools.compiler.lang.api.WindowDeclarationDescrBuilder; import org.drools.compiler.lang.descr.WindowDeclarationDescr; | import org.antlr.runtime.*; import org.drools.compiler.lang.api.*; import org.drools.compiler.lang.descr.*; | [
"org.antlr.runtime",
"org.drools.compiler"
] | org.antlr.runtime; org.drools.compiler; | 1,943,515 |
public void writeStaticExportPublishedResource(
CmsDbContext dbc,
String resourceName,
int linkType,
String linkParameter,
long timestamp)
throws CmsException {
getProjectDriver(dbc).writeStaticExportPublishedResource(dbc, resourceName, linkType, linkParameter, t... | void function( CmsDbContext dbc, String resourceName, int linkType, String linkParameter, long timestamp) throws CmsException { getProjectDriver(dbc).writeStaticExportPublishedResource(dbc, resourceName, linkType, linkParameter, timestamp); } | /**
* Inserts an entry in the published resource table.<p>
*
* This is done during static export.<p>
*
* @param dbc the current database context
* @param resourceName The name of the resource to be added to the static export
* @param linkType the type of resource exported (0= non-para... | Inserts an entry in the published resource table. This is done during static export | writeStaticExportPublishedResource | {
"repo_name": "ggiudetti/opencms-core",
"path": "src/org/opencms/db/CmsDriverManager.java",
"license": "lgpl-2.1",
"size": 494693
} | [
"org.opencms.main.CmsException"
] | import org.opencms.main.CmsException; | import org.opencms.main.*; | [
"org.opencms.main"
] | org.opencms.main; | 2,877,524 |
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(MediatorsPackage.Literals.LOG_MEDIATOR__PROPERTIES);
}
return childrenFeatures;
}
| Collection<? extends EStructuralFeature> function(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(MediatorsPackage.Literals.LOG_MEDIATOR__PROPERTIES); } return childrenFeatures; } | /**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-... | This specifies how to implement <code>#getChildren</code> and is used to deduce an appropriate feature for an <code>org.eclipse.emf.edit.command.AddCommand</code>, <code>org.eclipse.emf.edit.command.RemoveCommand</code> or <code>org.eclipse.emf.edit.command.MoveCommand</code> in <code>#createCommand</code>. | getChildrenFeatures | {
"repo_name": "harsha1979/developer-studio",
"path": "esb/org.wso2.developerstudio.eclipse.esb.edit/src/org/wso2/developerstudio/eclipse/esb/mediators/provider/LogMediatorItemProvider.java",
"license": "apache-2.0",
"size": 8402
} | [
"java.util.Collection",
"org.eclipse.emf.ecore.EStructuralFeature",
"org.wso2.developerstudio.eclipse.esb.mediators.MediatorsPackage"
] | import java.util.Collection; import org.eclipse.emf.ecore.EStructuralFeature; import org.wso2.developerstudio.eclipse.esb.mediators.MediatorsPackage; | import java.util.*; import org.eclipse.emf.ecore.*; import org.wso2.developerstudio.eclipse.esb.mediators.*; | [
"java.util",
"org.eclipse.emf",
"org.wso2.developerstudio"
] | java.util; org.eclipse.emf; org.wso2.developerstudio; | 2,681,099 |
public void delete() {
try {
close();
Files.delete(file.toPath());
} catch (IOException e) {
throw new RuntimeException(e);
}
} | void function() { try { close(); Files.delete(file.toPath()); } catch (IOException e) { throw new RuntimeException(e); } } | /**
* Deletes the underlying file.
*/ | Deletes the underlying file | delete | {
"repo_name": "atomix/atomix",
"path": "storage/src/main/java/io/atomix/storage/buffer/FileBytes.java",
"license": "apache-2.0",
"size": 14349
} | [
"java.io.IOException",
"java.nio.file.Files"
] | import java.io.IOException; import java.nio.file.Files; | import java.io.*; import java.nio.file.*; | [
"java.io",
"java.nio"
] | java.io; java.nio; | 2,676,323 |
protected void beforeProcess(final Exchange exchange, final ChannelHandlerContext ctx, final Object message) {
// noop
} | void function(final Exchange exchange, final ChannelHandlerContext ctx, final Object message) { } | /**
* Allows any custom logic before the {@link Exchange} is processed by the routing engine.
*
* @param exchange the exchange
* @param ctx the channel handler context
* @param message the message which needs to be sent
*/ | Allows any custom logic before the <code>Exchange</code> is processed by the routing engine | beforeProcess | {
"repo_name": "nikhilvibhav/camel",
"path": "components/camel-netty/src/main/java/org/apache/camel/component/netty/handlers/ServerChannelHandler.java",
"license": "apache-2.0",
"size": 9779
} | [
"io.netty.channel.ChannelHandlerContext",
"org.apache.camel.Exchange"
] | import io.netty.channel.ChannelHandlerContext; import org.apache.camel.Exchange; | import io.netty.channel.*; import org.apache.camel.*; | [
"io.netty.channel",
"org.apache.camel"
] | io.netty.channel; org.apache.camel; | 2,315,017 |
public void suspend() {
// don't participate in safepoints while being suspended
ObjectTransitionSafepoint.INSTANCE.unregister();
boolean continueWaiting = true;
while (continueWaiting) {
try {
continueWaiting = tasks.take().execute();
if (!continueWaiting) {
if (acti... | void function() { ObjectTransitionSafepoint.INSTANCE.unregister(); boolean continueWaiting = true; while (continueWaiting) { try { continueWaiting = tasks.take().execute(); if (!continueWaiting) { if (activityThread.isStepping(SteppingType.RETURN_FROM_ACTIVITY)) { activity.setStepToJoin(true); } else if (activityThread... | /**
* Suspend the current thread, and process tasks from the front-end.
*/ | Suspend the current thread, and process tasks from the front-end | suspend | {
"repo_name": "MetaConc/SOMns",
"path": "src/tools/debugger/frontend/Suspension.java",
"license": "mit",
"size": 6211
} | [
"tools.debugger.entities.SteppingType"
] | import tools.debugger.entities.SteppingType; | import tools.debugger.entities.*; | [
"tools.debugger.entities"
] | tools.debugger.entities; | 1,446,790 |
public void forceFlush() throws IgniteCheckedException {
for (Flusher f : flushThreads) {
if (!f.isEmpty())
f.wakeUp();
}
} | void function() throws IgniteCheckedException { for (Flusher f : flushThreads) { if (!f.isEmpty()) f.wakeUp(); } } | /**
* Forces all entries collected to be flushed to the underlying store.
* @throws IgniteCheckedException If failed.
*/ | Forces all entries collected to be flushed to the underlying store | forceFlush | {
"repo_name": "mcherkasov/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/store/GridCacheWriteBehindStore.java",
"license": "apache-2.0",
"size": 48157
} | [
"org.apache.ignite.IgniteCheckedException"
] | import org.apache.ignite.IgniteCheckedException; | import org.apache.ignite.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 1,797,180 |
@Programming
public void setDoc(XWikiDocument doc)
{
if (hasProgrammingRights()) {
getXWikiContext().setDoc(doc);
}
} | void function(XWikiDocument doc) { if (hasProgrammingRights()) { getXWikiContext().setDoc(doc); } } | /**
* Sets the current document. Programming rights are needed in order to call this method.
*
* @param doc XWiki document to set as the context document.
*/ | Sets the current document. Programming rights are needed in order to call this method | setDoc | {
"repo_name": "xwiki/xwiki-platform",
"path": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Context.java",
"license": "lgpl-2.1",
"size": 23913
} | [
"com.xpn.xwiki.doc.XWikiDocument"
] | import com.xpn.xwiki.doc.XWikiDocument; | import com.xpn.xwiki.doc.*; | [
"com.xpn.xwiki"
] | com.xpn.xwiki; | 2,198,806 |
@Reference(cardinality = ReferenceCardinality.OPTIONAL,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY)
protected void setWSJobOperator(WSJobOperator ref) {
this.wsJobOperator = ref;
} | @Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY) void function(WSJobOperator ref) { this.wsJobOperator = ref; } | /**
* Sets the job manager reference.
*
* @param ref The job manager to associate.
*
* Note: The dependency is required; however we mark it OPTIONAL to ensure that
* the REST handler is started even if the batch container didn't, so we
* can respond wi... | Sets the job manager reference | setWSJobOperator | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.jbatch.rest/src/com/ibm/ws/jbatch/rest/internal/resources/JobInstances.java",
"license": "epl-1.0",
"size": 64328
} | [
"com.ibm.jbatch.container.ws.WSJobOperator",
"org.osgi.service.component.annotations.Reference",
"org.osgi.service.component.annotations.ReferenceCardinality",
"org.osgi.service.component.annotations.ReferencePolicy",
"org.osgi.service.component.annotations.ReferencePolicyOption"
] | import com.ibm.jbatch.container.ws.WSJobOperator; import org.osgi.service.component.annotations.Reference; import org.osgi.service.component.annotations.ReferenceCardinality; import org.osgi.service.component.annotations.ReferencePolicy; import org.osgi.service.component.annotations.ReferencePolicyOption; | import com.ibm.jbatch.container.ws.*; import org.osgi.service.component.annotations.*; | [
"com.ibm.jbatch",
"org.osgi.service"
] | com.ibm.jbatch; org.osgi.service; | 1,326,470 |
private static <T> Object [ ] formatConstraintViolations( HttpServletRequest request, Set<ConstraintViolation<T>> constraintViolations )
{
Map<String, Object> model = new HashMap<>( );
model.put( MARK_ERRORS_LIST, constraintViolations );
HtmlTemplate template = AppTemplateService.getTem... | static <T> Object [ ] function( HttpServletRequest request, Set<ConstraintViolation<T>> constraintViolations ) { Map<String, Object> model = new HashMap<>( ); model.put( MARK_ERRORS_LIST, constraintViolations ); HtmlTemplate template = AppTemplateService.getTemplate( TEMPLATE_ERRORS_LIST, request.getLocale( ), model );... | /**
* Format a set of constraints violations as en error list.
*
* @param <T>
* The type of the object
* @param request
* The HTTP request
* @param constraintViolations
* The set of violations
* @return The formatted errors list as an object... | Format a set of constraints violations as en error list | formatConstraintViolations | {
"repo_name": "lutece-platform/lutece-core",
"path": "src/java/fr/paris/lutece/portal/service/message/AdminMessageService.java",
"license": "bsd-3-clause",
"size": 18463
} | [
"fr.paris.lutece.portal.service.template.AppTemplateService",
"fr.paris.lutece.util.html.HtmlTemplate",
"java.util.HashMap",
"java.util.Map",
"java.util.Set",
"javax.servlet.http.HttpServletRequest",
"javax.validation.ConstraintViolation"
] | import fr.paris.lutece.portal.service.template.AppTemplateService; import fr.paris.lutece.util.html.HtmlTemplate; import java.util.HashMap; import java.util.Map; import java.util.Set; import javax.servlet.http.HttpServletRequest; import javax.validation.ConstraintViolation; | import fr.paris.lutece.portal.service.template.*; import fr.paris.lutece.util.html.*; import java.util.*; import javax.servlet.http.*; import javax.validation.*; | [
"fr.paris.lutece",
"java.util",
"javax.servlet",
"javax.validation"
] | fr.paris.lutece; java.util; javax.servlet; javax.validation; | 1,966,408 |
public Collection<Service> getServices(Class interfaceType,
String pathExpression, String... protocols);
| Collection<Service> function(Class interfaceType, String pathExpression, String... protocols); | /**
* Access all published services of a certain type, provided by the given
* protocol.
*
* @param interfaceType
* the required type, not {@code null}.
* @param pathExpression
* regular expression to evaluate the services to be selected,
* compared to the locat... | Access all published services of a certain type, provided by the given protocol | getServices | {
"repo_name": "atsticks/JServices",
"path": "jservices-api/src/main/java/org/jservice/catalog/ServiceCatalog.java",
"license": "apache-2.0",
"size": 7309
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 1,828,031 |
static void sync(@NonNull final FileOutputStream stream) {
FileUtil.sync(stream);
} | static void sync(@NonNull final FileOutputStream stream) { FileUtil.sync(stream); } | /**
* Ensure file creation from stream.
*
* @param stream - OutputStream
*/ | Ensure file creation from stream | sync | {
"repo_name": "AVnetWS/Hentoid",
"path": "app/src/main/java/me/devsaki/hentoid/util/FileHelper.java",
"license": "apache-2.0",
"size": 53994
} | [
"androidx.annotation.NonNull",
"java.io.FileOutputStream"
] | import androidx.annotation.NonNull; import java.io.FileOutputStream; | import androidx.annotation.*; import java.io.*; | [
"androidx.annotation",
"java.io"
] | androidx.annotation; java.io; | 1,808,993 |
public static void login(@NonNull Fragment fragment, String... scope) {
VKServiceActivity.startLoginActivity(fragment, requestedPermissions = preparingScopeList(scope));
} | static void function(@NonNull Fragment fragment, String... scope) { VKServiceActivity.startLoginActivity(fragment, requestedPermissions = preparingScopeList(scope)); } | /**
* Starts authorization process. If VK app is available in the system, it will be opened
* to request access from user. Otherwise, UIWebView with standard UINavigationBar will be used.
*
* @param fragment current running fragment
* @param scope array of permissions for your applicationss
... | Starts authorization process. If VK app is available in the system, it will be opened to request access from user. Otherwise, UIWebView with standard UINavigationBar will be used | login | {
"repo_name": "DrMoriarty/cordova-social-vk",
"path": "src/android/vksdk_library/src/com/vk/sdk/VKSdk.java",
"license": "apache-2.0",
"size": 21043
} | [
"android.app.Fragment",
"com.android.annotations.NonNull"
] | import android.app.Fragment; import com.android.annotations.NonNull; | import android.app.*; import com.android.annotations.*; | [
"android.app",
"com.android.annotations"
] | android.app; com.android.annotations; | 1,133,007 |
protected synchronized void startEditActivity(Topic topic, int postId, String actualContent) {
if (canLaunchReplyActivity) {
setCanLaunchReplyActivity(false);
Intent intent = new Intent(this, EditPostActivity.class);
intent.putExtra(ARG_TOPIC, topic);
intent... | synchronized void function(Topic topic, int postId, String actualContent) { if (canLaunchReplyActivity) { setCanLaunchReplyActivity(false); Intent intent = new Intent(this, EditPostActivity.class); intent.putExtra(ARG_TOPIC, topic); intent.putExtra(UIConstants.ARG_EDITED_POST_ID, postId); intent.putExtra(UIConstants.AR... | /**
* Starts the edit activity
*/ | Starts the edit activity | startEditActivity | {
"repo_name": "Ayuget/Redface",
"path": "app/src/main/java/com/ayuget/redface/ui/activity/MultiPaneActivity.java",
"license": "apache-2.0",
"size": 7642
} | [
"android.content.Intent",
"com.ayuget.redface.data.api.model.Topic",
"com.ayuget.redface.ui.UIConstants"
] | import android.content.Intent; import com.ayuget.redface.data.api.model.Topic; import com.ayuget.redface.ui.UIConstants; | import android.content.*; import com.ayuget.redface.data.api.model.*; import com.ayuget.redface.ui.*; | [
"android.content",
"com.ayuget.redface"
] | android.content; com.ayuget.redface; | 1,306,835 |
@Test
public void testSerialization() {
ArcDialFrame f1 = new ArcDialFrame();
ArcDialFrame f2 = (ArcDialFrame) TestUtilities.serialised(f1);
assertEquals(f1, f2);
} | void function() { ArcDialFrame f1 = new ArcDialFrame(); ArcDialFrame f2 = (ArcDialFrame) TestUtilities.serialised(f1); assertEquals(f1, f2); } | /**
* Serialize an instance, restore it, and check for equality.
*/ | Serialize an instance, restore it, and check for equality | testSerialization | {
"repo_name": "raincs13/phd",
"path": "tests/org/jfree/chart/plot/dial/ArcDialFrameTest.java",
"license": "lgpl-2.1",
"size": 5109
} | [
"org.jfree.chart.TestUtilities",
"org.junit.Assert"
] | import org.jfree.chart.TestUtilities; import org.junit.Assert; | import org.jfree.chart.*; import org.junit.*; | [
"org.jfree.chart",
"org.junit"
] | org.jfree.chart; org.junit; | 603,137 |
public static HashCode hash(File file, HashFunction hashFunction)
throws IOException {
return asByteSource(file).hash(hashFunction);
}
// public static MappedByteBuffer map(File file) throws IOException {
// checkNotNull(file);
// return map(file, MapMode.READ_ONLY);
// }
// public static... | static HashCode function(File file, HashFunction hashFunction) throws IOException { return asByteSource(file).hash(hashFunction); } /** * Returns the lexically cleaned form of the path name, <i>usually</i> (but * not always) equivalent to the original. The following heuristics are used: * * <ul> * <li>empty string beco... | /**
* Computes the hash code of the {@code file} using {@code hashFunction}.
*
* @param file the file to read
* @param hashFunction the hash function to use to hash the data
* @return the {@link HashCode} of all of the bytes in the file
* @throws IOException if an I/O error occurs
* @since 12.0
... | Computes the hash code of the file using hashFunction | hash | {
"repo_name": "mike10004/appengine-imaging",
"path": "gaecompat-awt-imaging/src/common/com/gaecompat/repackaged/com/google/common/io/Files.java",
"license": "apache-2.0",
"size": 35475
} | [
"com.gaecompat.repackaged.com.google.common.hash.HashCode",
"com.gaecompat.repackaged.com.google.common.hash.HashFunction",
"java.io.File",
"java.io.IOException"
] | import com.gaecompat.repackaged.com.google.common.hash.HashCode; import com.gaecompat.repackaged.com.google.common.hash.HashFunction; import java.io.File; import java.io.IOException; | import com.gaecompat.repackaged.com.google.common.hash.*; import java.io.*; | [
"com.gaecompat.repackaged",
"java.io"
] | com.gaecompat.repackaged; java.io; | 691,947 |
@Test
public void testResolve() {
ThreadLocalServiceContext.init(CONTEXT);
assertEquals(RESOLVER.resolve(), CONFIG_1.getValue());
assertEquals(ConfigLink.resolvable("DS 1", DateSet.class).resolve(), CONFIG_1.getValue());
assertEquals(ConfigLink.resolvable("DS 2", DateSet.class).resolve(), CONFIG_2.g... | void function() { ThreadLocalServiceContext.init(CONTEXT); assertEquals(RESOLVER.resolve(), CONFIG_1.getValue()); assertEquals(ConfigLink.resolvable(STR, DateSet.class).resolve(), CONFIG_1.getValue()); assertEquals(ConfigLink.resolvable(STR, DateSet.class).resolve(), CONFIG_2.getValue()); assertEquals(ConfigLink.resolv... | /**
* Tests the resolution of the config.
*/ | Tests the resolution of the config | testResolve | {
"repo_name": "McLeodMoores/starling",
"path": "projects/core/src/test/java/com/opengamma/core/link/ResolvableConfigLinkTest.java",
"license": "apache-2.0",
"size": 5931
} | [
"com.opengamma.core.DateSet",
"com.opengamma.service.ThreadLocalServiceContext",
"org.testng.Assert"
] | import com.opengamma.core.DateSet; import com.opengamma.service.ThreadLocalServiceContext; import org.testng.Assert; | import com.opengamma.core.*; import com.opengamma.service.*; import org.testng.*; | [
"com.opengamma.core",
"com.opengamma.service",
"org.testng"
] | com.opengamma.core; com.opengamma.service; org.testng; | 893,674 |
protected void installSVGDocument(SVGDocument doc) {
svgDocument = doc;
if (bridgeContext != null) {
bridgeContext.dispose();
bridgeContext = null;
}
releaseRenderingReferences();
if (doc == null) {
isDynamicDocument = false;
... | void function(SVGDocument doc) { svgDocument = doc; if (bridgeContext != null) { bridgeContext.dispose(); bridgeContext = null; } releaseRenderingReferences(); if (doc == null) { isDynamicDocument = false; isInteractiveDocument = false; disableInteractions = true; initialTransform = new AffineTransform(); setRenderingT... | /**
* This does the real work of installing the SVG Document after
* the update manager from the previous document (if any) has been
* properly 'shut down'.
*/ | This does the real work of installing the SVG Document after the update manager from the previous document (if any) has been properly 'shut down' | installSVGDocument | {
"repo_name": "apache/batik",
"path": "batik-swing/src/main/java/org/apache/batik/swing/svg/JSVGComponent.java",
"license": "apache-2.0",
"size": 126403
} | [
"java.awt.Rectangle",
"java.awt.geom.AffineTransform",
"org.apache.batik.anim.dom.SVGOMDocument",
"org.apache.batik.bridge.BridgeContext",
"org.w3c.dom.svg.SVGDocument"
] | import java.awt.Rectangle; import java.awt.geom.AffineTransform; import org.apache.batik.anim.dom.SVGOMDocument; import org.apache.batik.bridge.BridgeContext; import org.w3c.dom.svg.SVGDocument; | import java.awt.*; import java.awt.geom.*; import org.apache.batik.anim.dom.*; import org.apache.batik.bridge.*; import org.w3c.dom.svg.*; | [
"java.awt",
"org.apache.batik",
"org.w3c.dom"
] | java.awt; org.apache.batik; org.w3c.dom; | 1,158,794 |
public void clear() {
Arrays.fill(data, 0);
} | void function() { Arrays.fill(data, 0); } | /**
* Clear the bit set.
*/ | Clear the bit set | clear | {
"repo_name": "pudidic/orc",
"path": "java/core/src/java/org/apache/orc/util/BloomFilter.java",
"license": "apache-2.0",
"size": 10311
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 620,840 |
public static RelDataType makeNullableIfOperandsAre(
final SqlValidator validator,
final SqlValidatorScope scope,
final SqlCall call,
RelDataType type) {
for (SqlNode operand : call.getOperandList()) {
RelDataType operandType = validator.deriveType(scope, operand);
if (contain... | static RelDataType function( final SqlValidator validator, final SqlValidatorScope scope, final SqlCall call, RelDataType type) { for (SqlNode operand : call.getOperandList()) { RelDataType operandType = validator.deriveType(scope, operand); if (containsNullable(operandType)) { RelDataTypeFactory typeFactory = validato... | /**
* Recreates a given RelDataType with nullability iff any of the operands
* of a call are nullable.
*/ | Recreates a given RelDataType with nullability iff any of the operands of a call are nullable | makeNullableIfOperandsAre | {
"repo_name": "googleinterns/calcite",
"path": "core/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java",
"license": "apache-2.0",
"size": 50603
} | [
"org.apache.calcite.rel.type.RelDataType",
"org.apache.calcite.rel.type.RelDataTypeFactory",
"org.apache.calcite.sql.SqlCall",
"org.apache.calcite.sql.SqlNode",
"org.apache.calcite.sql.validate.SqlValidator",
"org.apache.calcite.sql.validate.SqlValidatorScope"
] | import org.apache.calcite.rel.type.RelDataType; import org.apache.calcite.rel.type.RelDataTypeFactory; import org.apache.calcite.sql.SqlCall; import org.apache.calcite.sql.SqlNode; import org.apache.calcite.sql.validate.SqlValidator; import org.apache.calcite.sql.validate.SqlValidatorScope; | import org.apache.calcite.rel.type.*; import org.apache.calcite.sql.*; import org.apache.calcite.sql.validate.*; | [
"org.apache.calcite"
] | org.apache.calcite; | 2,872,376 |
@NotNull
protected String getFilenameRule(@NotNull final TemplateDef<String> templateDef)
{
return templateDef.getFilenameRule();
} | String function(@NotNull final TemplateDef<String> templateDef) { return templateDef.getFilenameRule(); } | /**
* Retrieves the filename rule.
* @param templateDef the wrapped {@link TemplateDef}.
* @return such rule.
*/ | Retrieves the filename rule | getFilenameRule | {
"repo_name": "rydnr/queryj-rt",
"path": "queryj-template-packaging/src/main/java/org/acmsl/queryj/templates/packaging/placeholders/DecoratedTemplateDefWrapper.java",
"license": "gpl-2.0",
"size": 10367
} | [
"org.acmsl.queryj.templates.packaging.TemplateDef",
"org.jetbrains.annotations.NotNull"
] | import org.acmsl.queryj.templates.packaging.TemplateDef; import org.jetbrains.annotations.NotNull; | import org.acmsl.queryj.templates.packaging.*; import org.jetbrains.annotations.*; | [
"org.acmsl.queryj",
"org.jetbrains.annotations"
] | org.acmsl.queryj; org.jetbrains.annotations; | 2,330,896 |
public void startDatafeedAsync(StartDatafeedRequest request, RequestOptions options, ActionListener<StartDatafeedResponse> listener) {
restHighLevelClient.performRequestAsyncAndParseEntity(request,
MLRequestConverters::startDatafeed,
options,
StartDatafeedResponse::fromXC... | void function(StartDatafeedRequest request, RequestOptions options, ActionListener<StartDatafeedResponse> listener) { restHighLevelClient.performRequestAsyncAndParseEntity(request, MLRequestConverters::startDatafeed, options, StartDatafeedResponse::fromXContent, listener, Collections.emptySet()); } | /**
* Starts the given Machine Learning Datafeed asynchronously and notifies the listener on completion
* <p>
* For additional info
* see <a href="http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html">
* ML Start Datafeed documentation</a>
*
* ... | Starts the given Machine Learning Datafeed asynchronously and notifies the listener on completion For additional info see ML Start Datafeed documentation | startDatafeedAsync | {
"repo_name": "strapdata/elassandra",
"path": "client/rest-high-level/src/main/java/org/elasticsearch/client/MachineLearningClient.java",
"license": "apache-2.0",
"size": 95880
} | [
"java.util.Collections",
"org.elasticsearch.action.ActionListener",
"org.elasticsearch.client.ml.StartDatafeedRequest",
"org.elasticsearch.client.ml.StartDatafeedResponse"
] | import java.util.Collections; import org.elasticsearch.action.ActionListener; import org.elasticsearch.client.ml.StartDatafeedRequest; import org.elasticsearch.client.ml.StartDatafeedResponse; | import java.util.*; import org.elasticsearch.action.*; import org.elasticsearch.client.ml.*; | [
"java.util",
"org.elasticsearch.action",
"org.elasticsearch.client"
] | java.util; org.elasticsearch.action; org.elasticsearch.client; | 1,506,430 |
int coordX, coordY;
String line;
File[] saveFiles = SaveManager.getSaveList();
int tempTime;
for (int i = 0; i < saveFiles.length; i++) {
try {
String[] args = new String[3];
BufferedReader reader = new BufferedReader(new FileReader(saveFiles[i]));
reader.readLine()... | int coordX, coordY; String line; File[] saveFiles = SaveManager.getSaveList(); int tempTime; for (int i = 0; i < saveFiles.length; i++) { try { String[] args = new String[3]; BufferedReader reader = new BufferedReader(new FileReader(saveFiles[i])); reader.readLine(); while ((line = reader.readLine()) != null) { args = ... | /**
* makes a map with general amount of towers in each cell
*/ | makes a map with general amount of towers in each cell | getStatisticNumbers | {
"repo_name": "badabum007/hell_guardians",
"path": "src/com/badabum007/hell_guardians/Statistic.java",
"license": "gpl-3.0",
"size": 4419
} | [
"java.io.BufferedReader",
"java.io.File",
"java.io.FileReader",
"java.io.IOException"
] | import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,189,572 |
public void testSerialization() throws Exception {
int size = 20;
Set x = populatedSet(size);
Set y = serialClone(x);
assertNotSame(x, y);
assertEquals(x.size(), y.size());
assertEquals(x, y);
assertEquals(y, x);
}
static final int SIZE = 10000;
... | void function() throws Exception { int size = 20; Set x = populatedSet(size); Set y = serialClone(x); assertNotSame(x, y); assertEquals(x.size(), y.size()); assertEquals(x, y); assertEquals(y, x); } static final int SIZE = 10000; static ConcurrentHashMap<Long, Long> longMap; | /**
* A deserialized/reserialized set equals original
*/ | A deserialized/reserialized set equals original | testSerialization | {
"repo_name": "md-5/jdk10",
"path": "test/jdk/java/util/concurrent/tck/ConcurrentHashMap8Test.java",
"license": "gpl-2.0",
"size": 40028
} | [
"java.util.Set",
"java.util.concurrent.ConcurrentHashMap"
] | import java.util.Set; import java.util.concurrent.ConcurrentHashMap; | import java.util.*; import java.util.concurrent.*; | [
"java.util"
] | java.util; | 714,877 |
public EndpointHealthDataInner withLastSuccessfulSendAttemptTime(OffsetDateTime lastSuccessfulSendAttemptTime) {
if (lastSuccessfulSendAttemptTime == null) {
this.lastSuccessfulSendAttemptTime = null;
} else {
this.lastSuccessfulSendAttemptTime = new DateTimeRfc1123(lastSucce... | EndpointHealthDataInner function(OffsetDateTime lastSuccessfulSendAttemptTime) { if (lastSuccessfulSendAttemptTime == null) { this.lastSuccessfulSendAttemptTime = null; } else { this.lastSuccessfulSendAttemptTime = new DateTimeRfc1123(lastSuccessfulSendAttemptTime); } return this; } | /**
* Set the lastSuccessfulSendAttemptTime property: Last time iot hub successfully sent a message to the endpoint.
*
* @param lastSuccessfulSendAttemptTime the lastSuccessfulSendAttemptTime value to set.
* @return the EndpointHealthDataInner object itself.
*/ | Set the lastSuccessfulSendAttemptTime property: Last time iot hub successfully sent a message to the endpoint | withLastSuccessfulSendAttemptTime | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java",
"license": "mit",
"size": 8966
} | [
"com.azure.core.util.DateTimeRfc1123",
"java.time.OffsetDateTime"
] | import com.azure.core.util.DateTimeRfc1123; import java.time.OffsetDateTime; | import com.azure.core.util.*; import java.time.*; | [
"com.azure.core",
"java.time"
] | com.azure.core; java.time; | 1,542,294 |
public Set<Entry<K,V>> entrySet() {
return view.entrySet();
} | Set<Entry<K,V>> function() { return view.entrySet(); } | /**
* This method will return a read-only {@link Set}.
*/ | This method will return a read-only <code>Set</code> | entrySet | {
"repo_name": "lindzh/jenkins",
"path": "core/src/main/java/hudson/util/CopyOnWriteMap.java",
"license": "mit",
"size": 7223
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 621,233 |
int insert(ProjectCustomizeView record); | int insert(ProjectCustomizeView record); | /**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table m_prj_customize_view
*
* @mbggenerated Mon Sep 21 13:52:03 ICT 2015
*/ | This method was generated by MyBatis Generator. This method corresponds to the database table m_prj_customize_view | insert | {
"repo_name": "maduhu/mycollab",
"path": "mycollab-services/src/main/java/com/esofthead/mycollab/module/project/dao/ProjectCustomizeViewMapper.java",
"license": "agpl-3.0",
"size": 5023
} | [
"com.esofthead.mycollab.module.project.domain.ProjectCustomizeView"
] | import com.esofthead.mycollab.module.project.domain.ProjectCustomizeView; | import com.esofthead.mycollab.module.project.domain.*; | [
"com.esofthead.mycollab"
] | com.esofthead.mycollab; | 1,363,094 |
void addJoin(Join join) {
if (joins == null) {
joins = new LinkedList<Join>();
}
joins.add(join);
}
/**
* {@inheritDoc} | void addJoin(Join join) { if (joins == null) { joins = new LinkedList<Join>(); } joins.add(join); } /** * {@inheritDoc} | /**
* Adds the given {@link Join}.
*
* @param join The {@link Join} that is declared in the range variable declaration
*/ | Adds the given <code>Join</code> | addJoin | {
"repo_name": "gameduell/eclipselink.runtime",
"path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/jpa/jpql/AbstractRangeDeclaration.java",
"license": "epl-1.0",
"size": 2861
} | [
"java.util.LinkedList",
"org.eclipse.persistence.jpa.jpql.parser.Join"
] | import java.util.LinkedList; import org.eclipse.persistence.jpa.jpql.parser.Join; | import java.util.*; import org.eclipse.persistence.jpa.jpql.parser.*; | [
"java.util",
"org.eclipse.persistence"
] | java.util; org.eclipse.persistence; | 2,197,675 |
public void assertRelation(CmsRelation expected, CmsRelation actual) {
assertEquals(expected.getSourceId(), actual.getSourceId());
assertEquals(expected.getSourcePath(), actual.getSourcePath());
assertEquals(expected.getTargetId(), actual.getTargetId());
assertEquals(expected.getTar... | void function(CmsRelation expected, CmsRelation actual) { assertEquals(expected.getSourceId(), actual.getSourceId()); assertEquals(expected.getSourcePath(), actual.getSourcePath()); assertEquals(expected.getTargetId(), actual.getTargetId()); assertEquals(expected.getTargetPath(), actual.getTargetPath()); assertEquals(e... | /**
* Asserts the equality of the two given relations.<p>
*
* @param expected the expected relation
* @param actual the actual result
*/ | Asserts the equality of the two given relations | assertRelation | {
"repo_name": "serrapos/opencms-core",
"path": "test/org/opencms/test/OpenCmsTestCase.java",
"license": "lgpl-2.1",
"size": 144807
} | [
"org.opencms.relations.CmsRelation"
] | import org.opencms.relations.CmsRelation; | import org.opencms.relations.*; | [
"org.opencms.relations"
] | org.opencms.relations; | 1,070,232 |
public void insertImage(String fileName, int row, int col) throws Exception {
// HSSFPatriarch patriarch = getActiveSheet().createDrawingPatriarch();
// HSSFClientAnchor anchor = new
// HSSFClientAnchor(0,0,0,255,(short)2,2,(short)4,7);
int idx = workBook.addPicture(FileUtils.getStreamFile(fileNam... | void function(String fileName, int row, int col) throws Exception { int idx = workBook.addPicture(FileUtils.getStreamFile(fileName), getTypeImage(fileName)); Picture picture = getPatriach().createPicture(helper.createClientAnchor(), idx); new PictureResizer(getActiveSheet(), picture, row, col, helper).resize(); } | /**
* Incluir una imagen en la hoja activa.
*
* @param fileName
*/ | Incluir una imagen en la hoja activa | insertImage | {
"repo_name": "rranz/meccano4j_vaadin",
"path": "javalego/javalego_office/src/main/java/com/javalego/poi/report/ExcelWorkbookXSSF.java",
"license": "gpl-3.0",
"size": 58313
} | [
"com.javalego.util.FileUtils",
"org.apache.poi.ss.usermodel.Picture"
] | import com.javalego.util.FileUtils; import org.apache.poi.ss.usermodel.Picture; | import com.javalego.util.*; import org.apache.poi.ss.usermodel.*; | [
"com.javalego.util",
"org.apache.poi"
] | com.javalego.util; org.apache.poi; | 1,876,959 |
public static java.util.List extractBladderManagementList(ims.domain.ILightweightDomainFactory domainFactory, ims.nursing.vo.BladderManagementCollection voCollection)
{
return extractBladderManagementList(domainFactory, voCollection, null, new HashMap());
}
| static java.util.List function(ims.domain.ILightweightDomainFactory domainFactory, ims.nursing.vo.BladderManagementCollection voCollection) { return extractBladderManagementList(domainFactory, voCollection, null, new HashMap()); } | /**
* Create the ims.nursing.assessment.domain.objects.BladderManagement list from the value object collection.
* @param domainFactory - used to create existing (persistent) domain objects.
* @param voCollection - the collection of value objects
*/ | Create the ims.nursing.assessment.domain.objects.BladderManagement list from the value object collection | extractBladderManagementList | {
"repo_name": "FreudianNM/openMAXIMS",
"path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/nursing/vo/domain/BladderManagementAssembler.java",
"license": "agpl-3.0",
"size": 21399
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 209,668 |
@Exclude
public boolean canBeMade(List<StockItem> stock){
for (Map.Entry<String, Object> r : this.resources.entrySet())
{
for (StockItem s : stock) {
if (r.getKey().equals(s.getName())){
int amountMissing = Integer.parseInt(r.getValue().toString())... | boolean function(List<StockItem> stock){ for (Map.Entry<String, Object> r : this.resources.entrySet()) { for (StockItem s : stock) { if (r.getKey().equals(s.getName())){ int amountMissing = Integer.parseInt(r.getValue().toString())-s.getAmount(); if (amountMissing > 0){ missingItems.put(s.getName(),amountMissing); } if... | /**
* Item cam be made if the user has all of the items
* needed for the recipe, not considering the amount
*/ | Item cam be made if the user has all of the items needed for the recipe, not considering the amount | canBeMade | {
"repo_name": "WilderPereira/Reciclo",
"path": "app/src/main/java/com/wilderpereira/reciclo/models/Recipe.java",
"license": "gpl-3.0",
"size": 4493
} | [
"java.util.List",
"java.util.Map"
] | import java.util.List; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,561,498 |
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("TableFTFEditDemo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
TableFTFEditDemo newContentPane = new TableFTFEditDemo();
... | static void function() { JFrame frame = new JFrame(STR); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); TableFTFEditDemo newContentPane = new TableFTFEditDemo(); newContentPane.setOpaque(true); frame.setContentPane(newContentPane); frame.pack(); frame.setVisible(true); } | /**
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
*/ | Create the GUI and show it. For thread safety, this method should be invoked from the event-dispatching thread | createAndShowGUI | {
"repo_name": "plum-umd/pasket",
"path": "example/gui/src/tutorial/table_ftf_demo/TableFTFEditDemo.java",
"license": "mit",
"size": 6784
} | [
"javax.swing.JFrame"
] | import javax.swing.JFrame; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 2,777,822 |
EventQueue.invokeLater(new Runnable() {
| EventQueue.invokeLater(new Runnable() { | /**
* Launch the application.
*/ | Launch the application | main | {
"repo_name": "starqiu/TestJava8",
"path": "src/week10/layouts/TestGridBagLayout.java",
"license": "gpl-3.0",
"size": 3181
} | [
"java.awt.EventQueue"
] | import java.awt.EventQueue; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,864,707 |
public FieldInstruction createFieldAccess( String class_name, String name, Type type, short kind ) {
int index;
String signature = type.getSignature();
index = cp.addFieldref(class_name, name, signature);
switch (kind) {
case Constants.GETFIELD:
return new... | FieldInstruction function( String class_name, String name, Type type, short kind ) { int index; String signature = type.getSignature(); index = cp.addFieldref(class_name, name, signature); switch (kind) { case Constants.GETFIELD: return new GETFIELD(index); case Constants.PUTFIELD: return new PUTFIELD(index); case Cons... | /** Create a field instruction.
*
* @param class_name name of the accessed class
* @param name name of the referenced field
* @param type type of field
* @param kind how to access, i.e., GETFIELD, PUTFIELD, GETSTATIC, PUTSTATIC
* @see Constants
*/ | Create a field instruction | createFieldAccess | {
"repo_name": "Maccimo/commons-bcel",
"path": "src/main/java/org/apache/bcel/generic/InstructionFactory.java",
"license": "apache-2.0",
"size": 25413
} | [
"org.apache.bcel.Constants"
] | import org.apache.bcel.Constants; | import org.apache.bcel.*; | [
"org.apache.bcel"
] | org.apache.bcel; | 505,328 |
public InstrumentedFilesInfo getInstrumentedFilesProvider(ImmutableList<Artifact> objectFiles) {
return InstrumentedFilesCollector.collect(
ruleContext,
INSTRUMENTATION_SPEC,
new ObjcCoverageMetadataCollector(),
objectFiles,
NestedSetBuilder.<Artifact>emptySet(Order.STABLE_... | InstrumentedFilesInfo function(ImmutableList<Artifact> objectFiles) { return InstrumentedFilesCollector.collect( ruleContext, INSTRUMENTATION_SPEC, new ObjcCoverageMetadataCollector(), objectFiles, NestedSetBuilder.<Artifact>emptySet(Order.STABLE_ORDER), NestedSetBuilder.<Pair<String, String>>emptySet(Order.COMPILE_ORD... | /**
* Returns a provider that collects this target's instrumented sources as well as those of its
* dependencies.
*
* @param objectFiles the object files generated by this target
* @return an instrumented files provider
*/ | Returns a provider that collects this target's instrumented sources as well as those of its dependencies | getInstrumentedFilesProvider | {
"repo_name": "aehlig/bazel",
"path": "src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java",
"license": "apache-2.0",
"size": 87315
} | [
"com.google.common.collect.ImmutableList",
"com.google.devtools.build.lib.actions.Artifact",
"com.google.devtools.build.lib.analysis.test.InstrumentedFilesCollector",
"com.google.devtools.build.lib.analysis.test.InstrumentedFilesInfo",
"com.google.devtools.build.lib.collect.nestedset.NestedSetBuilder",
"c... | import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.test.InstrumentedFilesCollector; import com.google.devtools.build.lib.analysis.test.InstrumentedFilesInfo; import com.google.devtools.build.lib.collect.nestedset.NestedSet... | import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.test.*; import com.google.devtools.build.lib.collect.nestedset.*; import com.google.devtools.build.lib.util.*; | [
"com.google.common",
"com.google.devtools"
] | com.google.common; com.google.devtools; | 550,247 |
protected static List<String> detectClassPathResourcesToStage(ClassLoader classLoader) {
if (!(classLoader instanceof URLClassLoader)) {
String message = String.format("Unable to use ClassLoader to detect classpath elements. "
+ "Current ClassLoader is %s, only URLClassLoaders are supported.", cla... | static List<String> function(ClassLoader classLoader) { if (!(classLoader instanceof URLClassLoader)) { String message = String.format(STR + STR, classLoader); LOG.error(message); throw new IllegalArgumentException(message); } List<String> files = new ArrayList<>(); for (URL url : ((URLClassLoader) classLoader).getURLs... | /**
* Attempts to detect all the resources the class loader has access to. This does not recurse
* to class loader parents stopping it from pulling in resources from the system class loader.
*
* @param classLoader The URLClassLoader to use to detect resources to stage.
* @throws IllegalArgumentException ... | Attempts to detect all the resources the class loader has access to. This does not recurse to class loader parents stopping it from pulling in resources from the system class loader | detectClassPathResourcesToStage | {
"repo_name": "dhalperi/incubator-beam",
"path": "runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowRunner.java",
"license": "apache-2.0",
"size": 55768
} | [
"java.io.File",
"java.net.URISyntaxException",
"java.net.URLClassLoader",
"java.util.ArrayList",
"java.util.List"
] | import java.io.File; import java.net.URISyntaxException; import java.net.URLClassLoader; import java.util.ArrayList; import java.util.List; | import java.io.*; import java.net.*; import java.util.*; | [
"java.io",
"java.net",
"java.util"
] | java.io; java.net; java.util; | 2,728,303 |
try {
// First step: Initialize the WorkflowSim package.
int vmNum = 10;//number of vms;
String daxPath = "/Users/chenweiwei/Work/WorkflowSim-1.0/config/dax/Montage_100.xml";
File daxFile = new File(daxPath);
if... | try { int vmNum = 10; String daxPath = STR; File daxFile = new File(daxPath); if(!daxFile.exists()){ Log.printLine(STR); return; } Parameters.SchedulingAlgorithm sch_method = Parameters.SchedulingAlgorithm.ROUNDROBIN; Parameters.PlanningAlgorithm pln_method = Parameters.PlanningAlgorithm.INVALID; ReplicaCatalog.FileSys... | /**
* Creates main() to run this example This example has only one datacenter
* and one storage
*/ | Creates main() to run this example This example has only one datacenter and one storage | main | {
"repo_name": "Farisllwaah/WorkflowSim-1.0",
"path": "examples/org/workflowsim/examples/scheduling/RoundRobinSchedulingAlgorithmExample.java",
"license": "lgpl-3.0",
"size": 5263
} | [
"java.io.File",
"java.util.Calendar",
"java.util.List",
"org.cloudbus.cloudsim.Log",
"org.cloudbus.cloudsim.core.CloudSim",
"org.workflowsim.CondorVM",
"org.workflowsim.Job",
"org.workflowsim.WorkflowDatacenter",
"org.workflowsim.WorkflowEngine",
"org.workflowsim.WorkflowPlanner",
"org.workflows... | import java.io.File; import java.util.Calendar; import java.util.List; import org.cloudbus.cloudsim.Log; import org.cloudbus.cloudsim.core.CloudSim; import org.workflowsim.CondorVM; import org.workflowsim.Job; import org.workflowsim.WorkflowDatacenter; import org.workflowsim.WorkflowEngine; import org.workflowsim.Workf... | import java.io.*; import java.util.*; import org.cloudbus.cloudsim.*; import org.cloudbus.cloudsim.core.*; import org.workflowsim.*; import org.workflowsim.utils.*; | [
"java.io",
"java.util",
"org.cloudbus.cloudsim",
"org.workflowsim",
"org.workflowsim.utils"
] | java.io; java.util; org.cloudbus.cloudsim; org.workflowsim; org.workflowsim.utils; | 472,293 |
public GeneralizedSemPm getSemPm() {
return semPm;
} | GeneralizedSemPm function() { return semPm; } | /**
* The wrapped SemPm.
*/ | The wrapped SemPm | getSemPm | {
"repo_name": "ekummerfeld/GdistanceP",
"path": "tetrad-gui/src/main/java/edu/cmu/tetradapp/model/GeneralizedSemEstimatorWrapper.java",
"license": "gpl-2.0",
"size": 5572
} | [
"edu.cmu.tetrad.sem.GeneralizedSemPm"
] | import edu.cmu.tetrad.sem.GeneralizedSemPm; | import edu.cmu.tetrad.sem.*; | [
"edu.cmu.tetrad"
] | edu.cmu.tetrad; | 1,669,781 |
public ResourceRefType<T> id(String id)
{
childNode.attribute("id", id);
return this;
} | ResourceRefType<T> function(String id) { childNode.attribute("id", id); return this; } | /**
* Sets the <code>id</code> attribute
* @param id the value for the attribute <code>id</code>
* @return the current instance of <code>ResourceRefType<T></code>
*/ | Sets the <code>id</code> attribute | id | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/javaee7/ResourceRefTypeImpl.java",
"license": "epl-1.0",
"size": 15687
} | [
"org.jboss.shrinkwrap.descriptor.api.javaee7.ResourceRefType"
] | import org.jboss.shrinkwrap.descriptor.api.javaee7.ResourceRefType; | import org.jboss.shrinkwrap.descriptor.api.javaee7.*; | [
"org.jboss.shrinkwrap"
] | org.jboss.shrinkwrap; | 2,228,219 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.