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
private static Collection syncGetInstances(Collection coll, Class cl) { synchronized (coll) { Collection c = new ArrayList(coll.size()); for (Iterator i = coll.iterator(); i.hasNext(); ) { Object obj = i.next(); if (cl.isInstance(obj)) { c.add(obj); } } return c; } }
static Collection function(Collection coll, Class cl) { synchronized (coll) { Collection c = new ArrayList(coll.size()); for (Iterator i = coll.iterator(); i.hasNext(); ) { Object obj = i.next(); if (cl.isInstance(obj)) { c.add(obj); } } return c; } }
/** * Returns a new collection containing all instances of the specified class * contained in the given collection. All operations on the given * collection are performed while synchronized on the collection. */
Returns a new collection containing all instances of the specified class contained in the given collection. All operations on the given collection are performed while synchronized on the collection
syncGetInstances
{ "repo_name": "apache/river", "path": "src/com/sun/jini/discovery/internal/X500Provider.java", "license": "apache-2.0", "size": 18667 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Iterator" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,577,764
public Listener getListener() { return listener; }
Listener function() { return listener; }
/** * Returns the event listener. */
Returns the event listener
getListener
{ "repo_name": "sakim/snownote", "path": "org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichTextListener.java", "license": "epl-1.0", "size": 1275 }
[ "org.eclipse.swt.widgets.Listener" ]
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,062,523
@Override public void getRandomPoint(Vector3f store) { int meshIndex = FastMath.nextRandomInt(0, vertices.size() - 1); int vertIndex = FastMath.nextRandomInt(0, vertices.get(meshIndex).size() - 1); store.set(vertices.get(meshIndex).get(vertIndex)); }
void function(Vector3f store) { int meshIndex = FastMath.nextRandomInt(0, vertices.size() - 1); int vertIndex = FastMath.nextRandomInt(0, vertices.get(meshIndex).size() - 1); store.set(vertices.get(meshIndex).get(vertIndex)); }
/** * This method fills the point with coordinates of randomly selected mesh vertex. * @param store * the variable to store with coordinates of randomly selected mesh vertex */
This method fills the point with coordinates of randomly selected mesh vertex
getRandomPoint
{ "repo_name": "PlanetWaves/clockworkengine", "path": "trunk/jme3-core/src/main/java/com/jme3/effect/shapes/EmitterMeshVertexShape.java", "license": "apache-2.0", "size": 8389 }
[ "com.jme3.math.FastMath", "com.jme3.math.Vector3f" ]
import com.jme3.math.FastMath; import com.jme3.math.Vector3f;
import com.jme3.math.*;
[ "com.jme3.math" ]
com.jme3.math;
610,172
public Set<TriggerKey> getTriggerKeys(GroupMatcher<TriggerKey> matcher) { Set<TriggerKey> outList = null; synchronized (lock) { StringMatcher.StringOperatorName operator = matcher.getCompareWithOperator(); String compareToValue = matcher.getCompareToValue(); swi...
Set<TriggerKey> function(GroupMatcher<TriggerKey> matcher) { Set<TriggerKey> outList = null; synchronized (lock) { StringMatcher.StringOperatorName operator = matcher.getCompareWithOperator(); String compareToValue = matcher.getCompareToValue(); switch(operator) { case EQUALS: HashMap<TriggerKey, TriggerWrapper> grpMap...
/** * <p> * Get the names of all of the <code>{@link org.quartz.Trigger}</code> s * that match the given groupMatcher. * </p> */
Get the names of all of the <code><code>org.quartz.Trigger</code></code> s that match the given groupMatcher.
getTriggerKeys
{ "repo_name": "dumptruckman/MC-Server-GUI--multi-", "path": "lib/quartz-2.0.1/quartz/src/main/java/org/quartz/simpl/RAMJobStore.java", "license": "gpl-2.0", "size": 58913 }
[ "java.util.Collections", "java.util.HashMap", "java.util.HashSet", "java.util.Map", "java.util.Set", "org.quartz.TriggerKey", "org.quartz.impl.matchers.GroupMatcher", "org.quartz.impl.matchers.StringMatcher" ]
import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.quartz.TriggerKey; import org.quartz.impl.matchers.GroupMatcher; import org.quartz.impl.matchers.StringMatcher;
import java.util.*; import org.quartz.*; import org.quartz.impl.matchers.*;
[ "java.util", "org.quartz", "org.quartz.impl" ]
java.util; org.quartz; org.quartz.impl;
2,599,281
Long getCounter(final String cacheKey) throws TimeoutException, CacheException;
Long getCounter(final String cacheKey) throws TimeoutException, CacheException;
/** * Gets counter from cache without incrementing. * * @param cacheKey * @return the value of counter * @throws CacheException * @throws TimeoutException */
Gets counter from cache without incrementing
getCounter
{ "repo_name": "rajagopalvreghunath/simple-spring-memcached", "path": "simple-spring-memcached/src/main/java/com/google/code/ssm/Cache.java", "license": "mit", "size": 5358 }
[ "com.google.code.ssm.providers.CacheException", "java.util.concurrent.TimeoutException" ]
import com.google.code.ssm.providers.CacheException; import java.util.concurrent.TimeoutException;
import com.google.code.ssm.providers.*; import java.util.concurrent.*;
[ "com.google.code", "java.util" ]
com.google.code; java.util;
1,596,791
public final MetaProperty<ConventionMaster> conventionMaster() { return _conventionMaster; }
final MetaProperty<ConventionMaster> function() { return _conventionMaster; }
/** * The meta-property for the {@code conventionMaster} property. * @return the meta-property, not null */
The meta-property for the conventionMaster property
conventionMaster
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Component/src/main/java/com/opengamma/component/factory/source/ConventionSourceComponentFactory.java", "license": "apache-2.0", "size": 15778 }
[ "com.opengamma.master.convention.ConventionMaster", "org.joda.beans.MetaProperty" ]
import com.opengamma.master.convention.ConventionMaster; import org.joda.beans.MetaProperty;
import com.opengamma.master.convention.*; import org.joda.beans.*;
[ "com.opengamma.master", "org.joda.beans" ]
com.opengamma.master; org.joda.beans;
2,579,194
public DateTime timestamp() { return this.timestamp; }
DateTime function() { return this.timestamp; }
/** * Get the timestamp when the status was changed to the current value. * * @return the timestamp value */
Get the timestamp when the status was changed to the current value
timestamp
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/containerregistry/mgmt-v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Status.java", "license": "mit", "size": 1682 }
[ "org.joda.time.DateTime" ]
import org.joda.time.DateTime;
import org.joda.time.*;
[ "org.joda.time" ]
org.joda.time;
597,964
public final void testCommentModelStringStringAddressBitmapContext() { String comment_content = "This is a ContentTest2"; String comment_title = "This is a TitleTest2"; Bitmap picture = HelperFunctions.generateBitmap(50,50); GPSLocation gpsLocation = new GPSLocation(getInstrumentation().getTargetContext()...
final void function() { String comment_content = STR; String comment_title = STR; Bitmap picture = HelperFunctions.generateBitmap(50,50); GPSLocation gpsLocation = new GPSLocation(getInstrumentation().getTargetContext()); Address address = gpsLocation.getAddress(); model = new RootCommentModel(comment_content, comment_...
/** * Test whether we can instantiate a CommentModel with content, title, location, * picture and context as arguments. */
Test whether we can instantiate a CommentModel with content, title, location, picture and context as arguments
testCommentModelStringStringAddressBitmapContext
{ "repo_name": "CMPUT301W14T01/localpost", "path": "LocalpostTestingTest/src/ca/cs/ualberta/localpost/test/CommentModelTest.java", "license": "mit", "size": 11673 }
[ "android.graphics.Bitmap", "android.location.Address", "ca.cs.ualberta.localpost.model.RootCommentModel", "ca.cs.ualberta.localpost.view.GPSLocation" ]
import android.graphics.Bitmap; import android.location.Address; import ca.cs.ualberta.localpost.model.RootCommentModel; import ca.cs.ualberta.localpost.view.GPSLocation;
import android.graphics.*; import android.location.*; import ca.cs.ualberta.localpost.model.*; import ca.cs.ualberta.localpost.view.*;
[ "android.graphics", "android.location", "ca.cs.ualberta" ]
android.graphics; android.location; ca.cs.ualberta;
2,862,224
@Override public boolean equals(Object o) { if (!(o instanceof MethodSignature)) { return false; } MethodSignature s = (MethodSignature) o; return name.equals(s.name) && rval.equals(s.rval) && Arrays.equals(param, s.param); }
boolean function(Object o) { if (!(o instanceof MethodSignature)) { return false; } MethodSignature s = (MethodSignature) o; return name.equals(s.name) && rval.equals(s.rval) && Arrays.equals(param, s.param); }
/** * Methods are equal iff they have the same name, return type, and params * (non-generic). */
Methods are equal iff they have the same name, return type, and params (non-generic)
equals
{ "repo_name": "dennishuo/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/test/java/org/apache/hadoop/hdfs/protocol/TestHdfsFileStatusMethods.java", "license": "apache-2.0", "size": 3516 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,377,892
public void setInstancesFromDBQ(String url, String user, String pw, String query, boolean sparse) { if (m_IOThread == null) { try { InstanceQuery InstQ = new InstanceQuery(); InstQ.setDatabaseURL(url); InstQ.setUsername(us...
void function(String url, String user, String pw, String query, boolean sparse) { if (m_IOThread == null) { try { InstanceQuery InstQ = new InstanceQuery(); InstQ.setDatabaseURL(url); InstQ.setUsername(user); InstQ.setPassword(pw); InstQ.setQuery(query); InstQ.setSparseData(sparse); if (InstQ.isConnected()) InstQ.disco...
/** * Loads instances from an SQL query the user provided with the * SqlViewerDialog, then loads the instances in a background process. This is * done in the IO thread, and an error message is popped up if the IO thread * is busy. * * @param url the database URL * @param user the user to connect ...
Loads instances from an SQL query the user provided with the SqlViewerDialog, then loads the instances in a background process. This is done in the IO thread, and an error message is popped up if the IO thread is busy
setInstancesFromDBQ
{ "repo_name": "mydzigear/weka.kmeanspp.silhouette_score", "path": "src/weka/gui/explorer/PreprocessPanel.java", "license": "gpl-3.0", "size": 48449 }
[ "javax.swing.JOptionPane" ]
import javax.swing.JOptionPane;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,494,699
@Ignore @Test public void testRetrieveSongActionSuccess() throws Exception { // Success. Get list of songs this.mockMvc.perform( get( "/music/songs/{id}", 1 ) ) .andExpect( status().isOk() ) .andExpect( jsonPath( "$", notNullValue() ) ) ...
void function() throws Exception { this.mockMvc.perform( get( STR, 1 ) ) .andExpect( status().isOk() ) .andExpect( jsonPath( "$", notNullValue() ) ) .andExpect( jsonPath( "$id", notNullValue() ) ) .andExpect( jsonPath( "$id" ).value( 1 ) ) .andExpect( jsonPath( STR, notNullValue() ) ) .andExpect( jsonPath( STR, notNull...
/** * Test of retrieving song by id. * Success. * * @throws Exception Exception General application exception. */
Test of retrieving song by id. Success
testRetrieveSongActionSuccess
{ "repo_name": "coffeine-009/Virtuoso", "path": "src/test/java/com/thecoffeine/virtuoso/music/controller/FunctionalSongControllerTest.java", "license": "mit", "size": 10313 }
[ "org.hamcrest.CoreMatchers", "org.springframework.restdocs.mockmvc.MockMvcRestDocumentation", "org.springframework.restdocs.payload.PayloadDocumentation", "org.springframework.test.web.servlet.request.MockMvcRequestBuilders", "org.springframework.test.web.servlet.result.MockMvcResultMatchers" ]
import org.hamcrest.CoreMatchers; import org.springframework.restdocs.mockmvc.MockMvcRestDocumentation; import org.springframework.restdocs.payload.PayloadDocumentation; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
import org.hamcrest.*; import org.springframework.restdocs.mockmvc.*; import org.springframework.restdocs.payload.*; import org.springframework.test.web.servlet.request.*; import org.springframework.test.web.servlet.result.*;
[ "org.hamcrest", "org.springframework.restdocs", "org.springframework.test" ]
org.hamcrest; org.springframework.restdocs; org.springframework.test;
1,889,558
@RequestMapping(method = RequestMethod.POST, value = SHORT_PATIENT_FORM_URL) public String saveShortPatient(WebRequest request, @ModelAttribute("personNameCache") PersonName personNameCache, @ModelAttribute("personAddressCache") PersonAddress personAddressCache, @ModelAttribute("relationshipsMap")...
@RequestMapping(method = RequestMethod.POST, value = SHORT_PATIENT_FORM_URL) String function(WebRequest request, @ModelAttribute(STR) PersonName personNameCache, @ModelAttribute(STR) PersonAddress personAddressCache, @ModelAttribute(STR) Map<String, Relationship> relationshipsMap, @ModelAttribute(STR) ShortPatientModel...
/** * Handles the form submission by validating the form fields and saving it to the DB * * @param request the webRequest object * @param relationshipsMap * @param patientModel the modelObject containing the patient info collected from the form * fields * @param result * @return the view to ...
Handles the form submission by validating the form fields and saving it to the DB
saveShortPatient
{ "repo_name": "shiangree/openmrs-core", "path": "web/src/main/java/org/openmrs/web/controller/patient/ShortPatientFormController.java", "license": "mpl-2.0", "size": 26706 }
[ "java.util.Map", "org.openmrs.Patient", "org.openmrs.PersonAddress", "org.openmrs.PersonName", "org.openmrs.Relationship", "org.openmrs.api.APIException", "org.openmrs.api.context.Context", "org.openmrs.web.WebConstants", "org.springframework.validation.BindException", "org.springframework.validat...
import java.util.Map; import org.openmrs.Patient; import org.openmrs.PersonAddress; import org.openmrs.PersonName; import org.openmrs.Relationship; import org.openmrs.api.APIException; import org.openmrs.api.context.Context; import org.openmrs.web.WebConstants; import org.springframework.validation.BindException; impor...
import java.util.*; import org.openmrs.*; import org.openmrs.api.*; import org.openmrs.api.context.*; import org.openmrs.web.*; import org.springframework.validation.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.context.request.*;
[ "java.util", "org.openmrs", "org.openmrs.api", "org.openmrs.web", "org.springframework.validation", "org.springframework.web" ]
java.util; org.openmrs; org.openmrs.api; org.openmrs.web; org.springframework.validation; org.springframework.web;
1,429,195
public void scheduleAt(final long executionTimeMillis, final Runnable task) { final long extraDelayMillis = RandomNumbers.randomLongBetween(random, 0, executionDelayVariabilityMillis); final long actualExecutionTimeMillis = executionTimeMillis + extraDelayMillis; if (actualExecutionTimeMilli...
void function(final long executionTimeMillis, final Runnable task) { final long extraDelayMillis = RandomNumbers.randomLongBetween(random, 0, executionDelayVariabilityMillis); final long actualExecutionTimeMillis = executionTimeMillis + extraDelayMillis; if (actualExecutionTimeMillis <= currentTimeMillis) { logger.trac...
/** * Schedule a task for future execution. */
Schedule a task for future execution
scheduleAt
{ "repo_name": "robin13/elasticsearch", "path": "test/framework/src/main/java/org/elasticsearch/cluster/coordination/DeterministicTaskQueue.java", "license": "apache-2.0", "size": 18483 }
[ "com.carrotsearch.randomizedtesting.generators.RandomNumbers" ]
import com.carrotsearch.randomizedtesting.generators.RandomNumbers;
import com.carrotsearch.randomizedtesting.generators.*;
[ "com.carrotsearch.randomizedtesting" ]
com.carrotsearch.randomizedtesting;
1,533,120
SharedPreferences mainPref = context.getSharedPreferences(context.getResources() .getString(R.string.shared_pref_package), Context.MODE_PRIVATE ); Editor editor = mainPref.edit(); editor.putString(key, value); editor.commit(); }
SharedPreferences mainPref = context.getSharedPreferences(context.getResources() .getString(R.string.shared_pref_package), Context.MODE_PRIVATE ); Editor editor = mainPref.edit(); editor.putString(key, value); editor.commit(); }
/** * Put data to shared preferences in private mode. * @param context - The context of activity which is requesting to put data. * @param key - Used to identify the value. * @param value - The actual value to be saved. */
Put data to shared preferences in private mode
putString
{ "repo_name": "ayyoob/product-iot-server", "path": "modules/tools/mdm-android-agent-archetype/src/main/resources/archetype-resources/src/main/java/org/wso2/mdm/agent/utils/Preference.java", "license": "apache-2.0", "size": 3383 }
[ "android.content.Context", "android.content.SharedPreferences" ]
import android.content.Context; import android.content.SharedPreferences;
import android.content.*;
[ "android.content" ]
android.content;
1,339,415
public void registerTransformer(final PathAddress address, final ModelVersion version, String operationName, OperationTransformer transformer) { registerTransformer(address.iterator(), version, operationName, new OperationTransformerRegistry.OperationTransformerEntry(transformer, false)); }
void function(final PathAddress address, final ModelVersion version, String operationName, OperationTransformer transformer) { registerTransformer(address.iterator(), version, operationName, new OperationTransformerRegistry.OperationTransformerEntry(transformer, false)); }
/** * Register an operation transformer. * * @param address the operation handler address * @param version the model version * @param operationName the operation name * @param transformer the operation transformer */
Register an operation transformer
registerTransformer
{ "repo_name": "aloubyansky/wildfly-core", "path": "controller/src/main/java/org/jboss/as/controller/registry/GlobalTransformerRegistry.java", "license": "lgpl-2.1", "size": 18691 }
[ "org.jboss.as.controller.ModelVersion", "org.jboss.as.controller.PathAddress", "org.jboss.as.controller.transform.OperationTransformer" ]
import org.jboss.as.controller.ModelVersion; import org.jboss.as.controller.PathAddress; import org.jboss.as.controller.transform.OperationTransformer;
import org.jboss.as.controller.*; import org.jboss.as.controller.transform.*;
[ "org.jboss.as" ]
org.jboss.as;
212,611
@Override public ClusterSearchBuilder search() { return new ClusterSearchBuilder(this); }
ClusterSearchBuilder function() { return new ClusterSearchBuilder(this); }
/** * Creates a search builder specifically for creating cluster search queries. * * @return a cluster search builder. */
Creates a search builder specifically for creating cluster search queries
search
{ "repo_name": "emcvipr/controller-client-java", "path": "client/src/main/java/com/emc/vipr/client/core/Clusters.java", "license": "apache-2.0", "size": 8979 }
[ "com.emc.vipr.client.core.search.ClusterSearchBuilder" ]
import com.emc.vipr.client.core.search.ClusterSearchBuilder;
import com.emc.vipr.client.core.search.*;
[ "com.emc.vipr" ]
com.emc.vipr;
2,680,010
@SimpleProperty(category = PropertyCategory.BEHAVIOR, description = "If true, then SendMessage will attempt to send messages over Wifi " + "using Google Voice. This requires that the Google Voice app must be installed " + "and set up on the phone or tablet, with a Google Voice account. If GoogleVoic...
@SimpleProperty(category = PropertyCategory.BEHAVIOR, description = STR + STR + STR + STR + STR) boolean function() { return googleVoiceEnabled; }
/** * If this property is true, then SendMessage will attempt to send messages using * Google voice. * * @return 'true' or 'false' depending on whether you want to * use Google Voice for sending/receiving messages. */
If this property is true, then SendMessage will attempt to send messages using Google voice
GoogleVoiceEnabled
{ "repo_name": "shilpamagrawal15/appinventor-sources", "path": "appinventor/components/src/com/google/appinventor/components/runtime/Texting.java", "license": "mit", "size": 35748 }
[ "com.google.appinventor.components.annotations.PropertyCategory", "com.google.appinventor.components.annotations.SimpleProperty" ]
import com.google.appinventor.components.annotations.PropertyCategory; import com.google.appinventor.components.annotations.SimpleProperty;
import com.google.appinventor.components.annotations.*;
[ "com.google.appinventor" ]
com.google.appinventor;
226,325
public void report(GameProgressListener report);
void function(GameProgressListener report);
/** * Report the state change to a listener. * * @param report * The listener. */
Report the state change to a listener
report
{ "repo_name": "tomason/drooms", "path": "drooms-game-impl/src/main/java/org/drooms/impl/logic/commands/Command.java", "license": "apache-2.0", "size": 764 }
[ "org.drooms.api.GameProgressListener" ]
import org.drooms.api.GameProgressListener;
import org.drooms.api.*;
[ "org.drooms.api" ]
org.drooms.api;
766,800
public void setRunLoggingLevel(LoggingLevel runLoggingLevel) { this.runLoggingLevel = runLoggingLevel; }
void function(LoggingLevel runLoggingLevel) { this.runLoggingLevel = runLoggingLevel; }
/** * The consumer logs a start/complete log line when it polls. This option allows you to configure the logging level for that. */
The consumer logs a start/complete log line when it polls. This option allows you to configure the logging level for that
setRunLoggingLevel
{ "repo_name": "Fabryprog/camel", "path": "core/camel-support/src/main/java/org/apache/camel/support/ScheduledPollEndpoint.java", "license": "apache-2.0", "size": 19899 }
[ "org.apache.camel.LoggingLevel" ]
import org.apache.camel.LoggingLevel;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
2,811,968
public MongoDriver project(Map<String, String> fields) { Document projectFields = new Document(); for (Map.Entry<String, String> entry : fields.entrySet()) { String field = entry.getKey(); String value = "$" + entry.getValue(); projectFields.append(field, value); } Bson project = new Document...
MongoDriver function(Map<String, String> fields) { Document projectFields = new Document(); for (Map.Entry<String, String> entry : fields.entrySet()) { String field = entry.getKey(); String value = "$" + entry.getValue(); projectFields.append(field, value); } Bson project = new Document(STR, projectFields); this.aggreg...
/** * Add a project aggregate to the pipeline. * CURRENTLY DOES NOT WORK. * * @param fields A Map that maps the fields to be kept to their respective mongo fields where the * values can be found. * @return MongoDriver */
Add a project aggregate to the pipeline. CURRENTLY DOES NOT WORK
project
{ "repo_name": "mohammadmoustafa/MongoDB-Driver-for-Java", "path": "MongoDriver.java", "license": "mit", "size": 19721 }
[ "java.util.Map", "org.bson.Document", "org.bson.conversions.Bson" ]
import java.util.Map; import org.bson.Document; import org.bson.conversions.Bson;
import java.util.*; import org.bson.*; import org.bson.conversions.*;
[ "java.util", "org.bson", "org.bson.conversions" ]
java.util; org.bson; org.bson.conversions;
835,375
public void setServiceGroup(String serviceGroup) { this.serviceGroup = serviceGroup; } @XStreamAlias("ServiceVersion") private String serviceVersion;
void function(String serviceGroup) { this.serviceGroup = serviceGroup; } @XStreamAlias(STR) private String serviceVersion;
/** * Service group setter * * @param serviceGroup */
Service group setter
setServiceGroup
{ "repo_name": "bbijelic/shopfoundry", "path": "shopfoundry-core/shopfoundry-core-service/src/main/java/org/shopfoundry/core/service/registry/dto/Request.java", "license": "gpl-2.0", "size": 1735 }
[ "com.thoughtworks.xstream.annotations.XStreamAlias" ]
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.*;
[ "com.thoughtworks.xstream" ]
com.thoughtworks.xstream;
1,968,139
private static void verifyAndSetRMHAIdsList(Configuration conf) { Collection<String> ids = conf.getTrimmedStringCollection(YarnConfiguration.RM_HA_IDS); if (ids.size() < 2) { throwBadConfigurationException( getInvalidValueMessage(YarnConfiguration.RM_HA_IDS, conf.get(YarnConfigur...
static void function(Configuration conf) { Collection<String> ids = conf.getTrimmedStringCollection(YarnConfiguration.RM_HA_IDS); if (ids.size() < 2) { throwBadConfigurationException( getInvalidValueMessage(YarnConfiguration.RM_HA_IDS, conf.get(YarnConfiguration.RM_HA_IDS) + STR)); } StringBuilder setValue = new String...
/** * Verify configuration that there are at least two RM-ids * and RPC addresses are specified for each RM-id. * Then set the RM-ids. */
Verify configuration that there are at least two RM-ids and RPC addresses are specified for each RM-id. Then set the RM-ids
verifyAndSetRMHAIdsList
{ "repo_name": "gigaroby/hops", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/HAUtil.java", "license": "apache-2.0", "size": 12154 }
[ "java.util.Collection", "org.apache.hadoop.conf.Configuration" ]
import java.util.Collection; import org.apache.hadoop.conf.Configuration;
import java.util.*; import org.apache.hadoop.conf.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,317,215
public OffsetDateTime getCreatedAt() { return createdAt; }
OffsetDateTime function() { return createdAt; }
/** * The datetime when the sweep occurred, in RFC 3339 format. * @return createdAt **/
The datetime when the sweep occurred, in RFC 3339 format
getCreatedAt
{ "repo_name": "plaid/plaid-java", "path": "src/main/java/com/plaid/client/model/BankTransferSweep.java", "license": "mit", "size": 4758 }
[ "java.time.OffsetDateTime" ]
import java.time.OffsetDateTime;
import java.time.*;
[ "java.time" ]
java.time;
2,754,306
void addSessionChannel(Channel channel) { allChannels.add(channel); }
void addSessionChannel(Channel channel) { allChannels.add(channel); }
/** * Adds the channel for a BGP session. * * @param channel the channel to add */
Adds the channel for a BGP session
addSessionChannel
{ "repo_name": "maxkondr/onos-porta", "path": "apps/routing/src/main/java/org/onosproject/routing/bgp/BgpSessionManager.java", "license": "apache-2.0", "size": 11539 }
[ "org.jboss.netty.channel.Channel" ]
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.*;
[ "org.jboss.netty" ]
org.jboss.netty;
2,622,001
@Override public void update(Choice newChoice) { SQLiteDatabase db = helper.getReadableDatabase(); setContentValues(newChoice); // Setting search criteria selection = ChoiceTable.COLUMN_NAME_CHOICE_ID + " LIKE ?"; sArgs = new String[]{ newChoice.getId().toString()}; db.update(ChoiceTable.TABLE_NAME...
void function(Choice newChoice) { SQLiteDatabase db = helper.getReadableDatabase(); setContentValues(newChoice); selection = ChoiceTable.COLUMN_NAME_CHOICE_ID + STR; sArgs = new String[]{ newChoice.getId().toString()}; db.update(ChoiceTable.TABLE_NAME, values, selection, sArgs); } /** * Retrieves a choice from the data...
/** * Updates a choice already in the database. * * Example Call.</br> * Choice c = new choice("123ad4", "123de", * "d342a", "text");</br> * ChoiceManager chm = ChoiceManager.getInstance(someActivity.this);</br> * chm.insert(c);</br> * c.setTitle("new");</br> * chm.update(c);</br> * * @par...
Updates a choice already in the database. Example Call. Choice c = new choice("123ad4", "123de", "d342a", "text"); ChoiceManager chm = ChoiceManager.getInstance(someActivity.this); chm.insert(c); c.setTitle("new"); chm.update(c)
update
{ "repo_name": "CMPUT301F13T13/StoryHoard", "path": "src/ca/ualberta/cmput301f13t13/storyhoard/local/ChoiceManager.java", "license": "apache-2.0", "size": 10568 }
[ "android.database.sqlite.SQLiteDatabase", "ca.ualberta.cmput301f13t13.storyhoard.dataClasses.Choice", "ca.ualberta.cmput301f13t13.storyhoard.local.DBContract" ]
import android.database.sqlite.SQLiteDatabase; import ca.ualberta.cmput301f13t13.storyhoard.dataClasses.Choice; import ca.ualberta.cmput301f13t13.storyhoard.local.DBContract;
import android.database.sqlite.*; import ca.ualberta.cmput301f13t13.storyhoard.*; import ca.ualberta.cmput301f13t13.storyhoard.local.*;
[ "android.database", "ca.ualberta.cmput301f13t13" ]
android.database; ca.ualberta.cmput301f13t13;
777,054
public void addPago(Pago pago) throws SQLException, Exception { String sql2 = "INSERT INTO PAGO VALUES ("+pago.getId()+", "+pago.getPse()+")"; PreparedStatement prepStmt = conn.prepareStatement(sql2); System.out.println("SQL 2:"+sql2); recursos.add(prepStmt); prepStmt.executeQuery(); }
void function(Pago pago) throws SQLException, Exception { String sql2 = STR+pago.getId()+STR+pago.getPse()+")"; PreparedStatement prepStmt = conn.prepareStatement(sql2); System.out.println(STR+sql2); recursos.add(prepStmt); prepStmt.executeQuery(); }
/** * Metodo que agrega el video que entra como parametro a la base de datos. * @param usuario - el video a agregar. video != null * <b> post: </b> se ha agregado el video a la base de datos en la transaction actual. pendiente que el video master * haga commit para que el video baje a la base de datos. * @t...
Metodo que agrega el video que entra como parametro a la base de datos
addPago
{ "repo_name": "El-Kabs/Sistrans", "path": "src/dao/DAOPagoRotond.java", "license": "mit", "size": 4793 }
[ "java.sql.PreparedStatement", "java.sql.SQLException" ]
import java.sql.PreparedStatement; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
154,739
void sendBufferSync(ByteBuffer bb) { try { sock.configureBlocking(true); if (bb != closeConn) { if (sock != null) { sock.write(bb); } packetSent(); } } catch (IOException ie) { LOG....
void sendBufferSync(ByteBuffer bb) { try { sock.configureBlocking(true); if (bb != closeConn) { if (sock != null) { sock.write(bb); } packetSent(); } } catch (IOException ie) { LOG.error(STR, ie); } }
/** * send buffer without using the asynchronous * calls to selector and then close the socket * @param bb */
send buffer without using the asynchronous calls to selector and then close the socket
sendBufferSync
{ "repo_name": "woggle/mesos-old", "path": "third_party/zookeeper-3.3.1/src/java/main/org/apache/zookeeper/server/NIOServerCnxn.java", "license": "apache-2.0", "size": 64995 }
[ "java.io.IOException", "java.nio.ByteBuffer" ]
import java.io.IOException; import java.nio.ByteBuffer;
import java.io.*; import java.nio.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
1,693,042
public void startUpBase(FloodlightModuleContext context) throws FloodlightModuleException { // Initial Role role = floodlightProvider.getRole().getOFRole(); // IRoleListener floodlightProvider.addHAListener(this); loadLogicalCategories(); registerDebugEvents(); }
void function(FloodlightModuleContext context) throws FloodlightModuleException { role = floodlightProvider.getRole().getOFRole(); floodlightProvider.addHAListener(this); loadLogicalCategories(); registerDebugEvents(); }
/** * Startup method that includes everything besides the netty boostrap. * This has been isolated for testing. * @param context floodlight module context * @throws FloodlightModuleException */
Startup method that includes everything besides the netty boostrap. This has been isolated for testing
startUpBase
{ "repo_name": "chinmaymhatre91/floodlight", "path": "src/main/java/net/floodlightcontroller/core/internal/OFSwitchManager.java", "license": "apache-2.0", "size": 42203 }
[ "net.floodlightcontroller.core.module.FloodlightModuleContext", "net.floodlightcontroller.core.module.FloodlightModuleException" ]
import net.floodlightcontroller.core.module.FloodlightModuleContext; import net.floodlightcontroller.core.module.FloodlightModuleException;
import net.floodlightcontroller.core.module.*;
[ "net.floodlightcontroller.core" ]
net.floodlightcontroller.core;
2,777,118
JaninoConnection c = new JaninoConnection(new ConnectionParameters(new MockConnectionEl(), MockDriverContext.INSTANCE)); field = 0; c.executeScript(new StringResource(JaninoConnectionTest.class.getName() + ".field=1;"), null); try { c.executeScript(new StringResource(JaninoConnec...
JaninoConnection c = new JaninoConnection(new ConnectionParameters(new MockConnectionEl(), MockDriverContext.INSTANCE)); field = 0; c.executeScript(new StringResource(JaninoConnectionTest.class.getName() + STR), null); try { c.executeScript(new StringResource(JaninoConnectionTest.class.getName() + STR), null); fail(STR...
/** * This test creates a Janino connection that executes simple valid and invalid scripts. */
This test creates a Janino connection that executes simple valid and invalid scripts
testScript
{ "repo_name": "scriptella/scriptella-etl", "path": "drivers/src/test/scriptella/driver/janino/JaninoConnectionTest.java", "license": "apache-2.0", "size": 4940 }
[ "org.codehaus.commons.compiler.CompileException" ]
import org.codehaus.commons.compiler.CompileException;
import org.codehaus.commons.compiler.*;
[ "org.codehaus.commons" ]
org.codehaus.commons;
652,418
public static final String toString(BytesRef termText) { // the term might not be text, but usually is. so we make a best effort CharsetDecoder decoder = IOUtils.CHARSET_UTF_8.newDecoder() .onMalformedInput(CodingErrorAction.REPORT) .onUnmappableCharacter(CodingErrorAction.REPORT); try { ...
static final String function(BytesRef termText) { CharsetDecoder decoder = IOUtils.CHARSET_UTF_8.newDecoder() .onMalformedInput(CodingErrorAction.REPORT) .onUnmappableCharacter(CodingErrorAction.REPORT); try { return decoder.decode(ByteBuffer.wrap(termText.bytes, termText.offset, termText.length)).toString(); } catch (...
/** Returns human-readable form of the term text. If the term is not unicode, * the raw bytes will be printed instead. */
Returns human-readable form of the term text. If the term is not unicode
toString
{ "repo_name": "yintaoxue/read-open-source-code", "path": "solr-4.7.2/src/org/apache/lucene/index/Term.java", "license": "apache-2.0", "size": 5474 }
[ "java.nio.ByteBuffer", "java.nio.charset.CharacterCodingException", "java.nio.charset.CharsetDecoder", "java.nio.charset.CodingErrorAction", "org.apache.lucene.util.BytesRef", "org.apache.lucene.util.IOUtils" ]
import java.nio.ByteBuffer; import java.nio.charset.CharacterCodingException; import java.nio.charset.CharsetDecoder; import java.nio.charset.CodingErrorAction; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.IOUtils;
import java.nio.*; import java.nio.charset.*; import org.apache.lucene.util.*;
[ "java.nio", "org.apache.lucene" ]
java.nio; org.apache.lucene;
477,656
public static String makeDirectory(String dirPath) { File dir = new File(dirPath); if (!dir.exists()) dir.mkdirs(); return makeDirPath(dir.getPath()); }
static String function(String dirPath) { File dir = new File(dirPath); if (!dir.exists()) dir.mkdirs(); return makeDirPath(dir.getPath()); }
/** * Make directory if it does not exist * * @param dirPath * @return Directory path with file separator in the end */
Make directory if it does not exist
makeDirectory
{ "repo_name": "mys3lf/recalot.com", "path": "com.recalot.model.rec.recommender.librec/src/librec/util/FileIO.java", "license": "gpl-3.0", "size": 19193 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,478,048
public Node getSourceNode(int addressType) { if (addressType == AMQDestination.QUEUE_TYPE && nodeProps != null) { return createQueueNode((Map) address.getOptions().get(NODE)); } if (addressType == AMQDestination.TOPIC_TYPE && linkProps != null) { r...
Node function(int addressType) { if (addressType == AMQDestination.QUEUE_TYPE && nodeProps != null) { return createQueueNode((Map) address.getOptions().get(NODE)); } if (addressType == AMQDestination.TOPIC_TYPE && linkProps != null) { return createQueueNode((Map) address.getOptions().get(LINK)); } else { return new Que...
/** * if the type == queue x-declare args from the node props is used. if the * type == exchange x-declare args from the link props is used else just * create a default temp queue. */
if the type == queue x-declare args from the node props is used. if the type == exchange x-declare args from the link props is used else just create a default temp queue
getSourceNode
{ "repo_name": "wso2/andes", "path": "modules/andes-core/client/src/main/java/org/wso2/andes/client/messaging/address/AddressHelper.java", "license": "apache-2.0", "size": 11844 }
[ "java.util.Map", "org.wso2.andes.client.AMQDestination", "org.wso2.andes.client.messaging.address.Node" ]
import java.util.Map; import org.wso2.andes.client.AMQDestination; import org.wso2.andes.client.messaging.address.Node;
import java.util.*; import org.wso2.andes.client.*; import org.wso2.andes.client.messaging.address.*;
[ "java.util", "org.wso2.andes" ]
java.util; org.wso2.andes;
754,882
private Object getNext(String txt, String originalText) { if (invertible) { String str = prevWordAfter.toString(); prevWordAfter.setLength(0); CoreLabel word = (CoreLabel) tokenFactory.makeToken(txt, yychar, yylength()); word.set(OriginalTextAnnotation.class, originalText); wor...
Object function(String txt, String originalText) { if (invertible) { String str = prevWordAfter.toString(); prevWordAfter.setLength(0); CoreLabel word = (CoreLabel) tokenFactory.makeToken(txt, yychar, yylength()); word.set(OriginalTextAnnotation.class, originalText); word.set(BeforeAnnotation.class, str); prevWord.set(...
/** Make the next token. * @param txt What the token should be * @param originalText The original String that got transformed into txt */
Make the next token
getNext
{ "repo_name": "PeterisP/LVTagger", "path": "src/main/java/edu/stanford/nlp/process/PTBLexer.java", "license": "gpl-2.0", "size": 637439 }
[ "edu.stanford.nlp.ling.CoreAnnotations", "edu.stanford.nlp.ling.CoreLabel" ]
import edu.stanford.nlp.ling.CoreAnnotations; import edu.stanford.nlp.ling.CoreLabel;
import edu.stanford.nlp.ling.*;
[ "edu.stanford.nlp" ]
edu.stanford.nlp;
1,688,869
public void mouseMoved(Vector2i position) {}
public void mouseMoved(Vector2i position) {}
/** * Called when the mouse wheel is scrolled - no default implementation * @param amount The mouse that the scroll wheel was moved by */
Called when the mouse wheel is scrolled - no default implementation
mouseWheelMoved
{ "repo_name": "Bulmanator/ClusterEngine", "path": "src/com/cluster/engine/Input/InputHandler.java", "license": "mit", "size": 4372 }
[ "org.jsfml.system.Vector2i" ]
import org.jsfml.system.Vector2i;
import org.jsfml.system.*;
[ "org.jsfml.system" ]
org.jsfml.system;
1,939,376
public int ejbHomeGetNumberOfPrintedPasswordLetters() { try { SelectQuery sql = idoSelectQueryGetCountPasswordLettersWithStatus(getCaseStatusReview()); return super.idoGetNumberOfRecords(sql); } catch (IDOException sqle) { throw new EJBException(sqle.getMessage()); } }
int function() { try { SelectQuery sql = idoSelectQueryGetCountPasswordLettersWithStatus(getCaseStatusReview()); return super.idoGetNumberOfRecords(sql); } catch (IDOException sqle) { throw new EJBException(sqle.getMessage()); } }
/** * Counts the number of letters that are of type password and printed */
Counts the number of letters that are of type password and printed
ejbHomeGetNumberOfPrintedPasswordLetters
{ "repo_name": "idega/platform2", "path": "src/se/idega/idegaweb/commune/message/data/PrintedLetterMessageBMPBean.java", "license": "gpl-3.0", "size": 22210 }
[ "com.idega.data.IDOException", "com.idega.data.query.SelectQuery", "javax.ejb.EJBException" ]
import com.idega.data.IDOException; import com.idega.data.query.SelectQuery; import javax.ejb.EJBException;
import com.idega.data.*; import com.idega.data.query.*; import javax.ejb.*;
[ "com.idega.data", "javax.ejb" ]
com.idega.data; javax.ejb;
1,290,596
public static void setup(View view) {
static void function(View view) {
/** * Sets up a cheat sheet (tooltip) for the given view by setting its {@link * View.OnLongClickListener}. When the view is long-pressed, a {@link Toast} with * the view's {@link View#getContentDescription() content description} will be * shown either above (default) or below the view (if there isn...
Sets up a cheat sheet (tooltip) for the given view by setting its <code>View.OnLongClickListener</code>. When the view is long-pressed, a <code>Toast</code> with the view's <code>View#getContentDescription() content description</code> will be shown either above (default) or below the view (if there isn't room above it)
setup
{ "repo_name": "HanyeeWang/GeekZone", "path": "BaseLib/src/main/java/com/hanyee/androidlib/utils/CheatSheetUtils.java", "license": "apache-2.0", "size": 4953 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,483,522
public ItemStack getStack() { return stack; }
ItemStack function() { return stack; }
/** * Retrieve the modified item stack. * @return The modified item stack. */
Retrieve the modified item stack
getStack
{ "repo_name": "Tommsy64/Satchels", "path": "src/main/java/io/github/tommsy64/satchels/item/storage/Attributes.java", "license": "gpl-3.0", "size": 11745 }
[ "org.bukkit.inventory.ItemStack" ]
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.*;
[ "org.bukkit.inventory" ]
org.bukkit.inventory;
1,294,740
private void processAlterStatus(MasterAlterStatus alterStatus, String tableName, List<String> servers) throws KeeperException { if (alterStatus.getNumberOfRegionsToProcess() == alterStatus.getNumberOfRegionsProcessed()) { // schema change completed. String m...
void function(MasterAlterStatus alterStatus, String tableName, List<String> servers) throws KeeperException { if (alterStatus.getNumberOfRegionsToProcess() == alterStatus.getNumberOfRegionsProcessed()) { String msg = STR + STR + tableName + STR + tableName + STR + STR + alterStatus.getProcessedHosts() + STR + alterStat...
/** * Evaluate the master alter status and determine the current status. * @param alterStatus * @param tableName * @param servers * @param status */
Evaluate the master alter status and determine the current status
processAlterStatus
{ "repo_name": "Shmuma/hbase-trunk", "path": "src/main/java/org/apache/hadoop/hbase/zookeeper/MasterSchemaChangeTracker.java", "license": "apache-2.0", "size": 32005 }
[ "java.util.List", "org.apache.hadoop.hbase.monitoring.MonitoredTask", "org.apache.hadoop.hbase.monitoring.TaskMonitor", "org.apache.zookeeper.KeeperException" ]
import java.util.List; import org.apache.hadoop.hbase.monitoring.MonitoredTask; import org.apache.hadoop.hbase.monitoring.TaskMonitor; import org.apache.zookeeper.KeeperException;
import java.util.*; import org.apache.hadoop.hbase.monitoring.*; import org.apache.zookeeper.*;
[ "java.util", "org.apache.hadoop", "org.apache.zookeeper" ]
java.util; org.apache.hadoop; org.apache.zookeeper;
2,680,139
public static Object lookup(Name name, Class<?> clazz) throws Exception { InitialContext ctx = new InitialContext(); try { return lookup(ctx, name, clazz); } finally { ctx.close(); } }
static Object function(Name name, Class<?> clazz) throws Exception { InitialContext ctx = new InitialContext(); try { return lookup(ctx, name, clazz); } finally { ctx.close(); } }
/** * Lookup an object in the default initial context * * @param name the name to lookup * @param clazz the expected type * @return the object * @throws Exception for any error */
Lookup an object in the default initial context
lookup
{ "repo_name": "jboss/jboss-common-core", "path": "src/main/java/org/jboss/util/naming/Util.java", "license": "apache-2.0", "size": 11305 }
[ "javax.naming.InitialContext", "javax.naming.Name" ]
import javax.naming.InitialContext; import javax.naming.Name;
import javax.naming.*;
[ "javax.naming" ]
javax.naming;
678,934
private void setup(BufferedWriter bw) throws IOException { bw.write(XML_VERSION_1_0_ENCODING_UTF_8); bw.write("\n<OMOBJ>\n"); writer = new OMXMLWriter(bw, true, false); }
void function(BufferedWriter bw) throws IOException { bw.write(XML_VERSION_1_0_ENCODING_UTF_8); bw.write(STR); writer = new OMXMLWriter(bw, true, false); }
/** * Helper method that sets up the initial code fragments of the file and * creates the OpenMath Object Writer. * * @param bw * The stream used to write the results. * @throws java.io.IOException * If there are problems writing to the stream. */
Helper method that sets up the initial code fragments of the file and creates the OpenMath Object Writer
setup
{ "repo_name": "jfdm/perma-search", "path": "src/uk/ac/stand/cs/jfdm/cs4099/io/ResultsExporter.java", "license": "gpl-3.0", "size": 7407 }
[ "java.io.BufferedWriter", "java.io.IOException", "nl.tue.win.riaca.openmath.io.OMXMLWriter" ]
import java.io.BufferedWriter; import java.io.IOException; import nl.tue.win.riaca.openmath.io.OMXMLWriter;
import java.io.*; import nl.tue.win.riaca.openmath.io.*;
[ "java.io", "nl.tue.win" ]
java.io; nl.tue.win;
2,577,476
@Test public void setSplitTrue() { final QueryModifier expected = new QueryModifier(TermModifier.NONE, true, false, false, null); final QueryModifier actual = QueryModifier.start().setSplit(true).end(); Assert.assertEquals(expected, actual); }
void function() { final QueryModifier expected = new QueryModifier(TermModifier.NONE, true, false, false, null); final QueryModifier actual = QueryModifier.start().setSplit(true).end(); Assert.assertEquals(expected, actual); }
/** * Tests {@link ModifierBuilder#setSplit(boolean)} with true. */
Tests <code>ModifierBuilder#setSplit(boolean)</code> with true
setSplitTrue
{ "repo_name": "cosmocode/cosmocode-lucene", "path": "src/test/java/de/cosmocode/lucene/QueryModifierTest.java", "license": "apache-2.0", "size": 11555 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,028,989
public void setPaint(Paint paint) { this.paint = paint; }
void function(Paint paint) { this.paint = paint; }
/** * Sets the <code>Paint</code> (usually a <code>java.awt.Color</code>) used to paint this highlight. * * @param paint * The new <code>Paint</code>. * @see #getPaint */
Sets the <code>Paint</code> (usually a <code>java.awt.Color</code>) used to paint this highlight
setPaint
{ "repo_name": "kevinmcgoldrick/Tank", "path": "tools/script_filter/src/main/java/org/fife/ui/rtextarea/ChangeableHighlightPainter.java", "license": "epl-1.0", "size": 13661 }
[ "java.awt.Paint" ]
import java.awt.Paint;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,166,617
@Test public void testSetValueWithMultipleValuesOverridesDefault() throws Exception { InvocationPolicy.Builder invocationPolicyBuilder = InvocationPolicy.newBuilder(); invocationPolicyBuilder .addFlagPoliciesBuilder() .setFlagName("test_multiple_string") .getSetValueBuilder() ...
void function() throws Exception { InvocationPolicy.Builder invocationPolicyBuilder = InvocationPolicy.newBuilder(); invocationPolicyBuilder .addFlagPoliciesBuilder() .setFlagName(STR) .getSetValueBuilder() .addFlagValue(TEST_STRING_POLICY_VALUE) .addFlagValue(TEST_STRING_POLICY_VALUE_2); InvocationPolicyEnforcer enfor...
/** * Tests that policy overrides the default value when the flag allows multiple values and the user * doesn't provide a value. */
Tests that policy overrides the default value when the flag allows multiple values and the user doesn't provide a value
testSetValueWithMultipleValuesOverridesDefault
{ "repo_name": "aehlig/bazel", "path": "src/test/java/com/google/devtools/common/options/InvocationPolicySetValueTest.java", "license": "apache-2.0", "size": 22081 }
[ "com.google.common.truth.Truth", "com.google.devtools.build.lib.runtime.proto.InvocationPolicyOuterClass" ]
import com.google.common.truth.Truth; import com.google.devtools.build.lib.runtime.proto.InvocationPolicyOuterClass;
import com.google.common.truth.*; import com.google.devtools.build.lib.runtime.proto.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
1,432,066
public void addMarker(Marker marker) { if (markers == null) { markers = new HashSet<>(); } markers.add(marker); marker.setMap(this); }
void function(Marker marker) { if (markers == null) { markers = new HashSet<>(); } markers.add(marker); marker.setMap(this); }
/** * Adds the supplied marker to the map. * * @param marker */
Adds the supplied marker to the map
addMarker
{ "repo_name": "rterp/GMapsFX", "path": "GMapsFX/src/main/java/com/dlsc/gmapsfx/javascript/object/GoogleMap.java", "license": "apache-2.0", "size": 13751 }
[ "java.util.HashSet" ]
import java.util.HashSet;
import java.util.*;
[ "java.util" ]
java.util;
2,359,284
@Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (OCCIPackage.Literals.ENTITY__PARTS, VmwareFactory.eINSTANCE.createOs_tpl_vmware(...
void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (OCCIPackage.Literals.ENTITY__PARTS, VmwareFactory.eINSTANCE.createOs_tpl_vmware())); newChildDescriptors.add (createChildParameter (OCCIPac...
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object.
collectNewChildDescriptors
{ "repo_name": "occiware/Multi-Cloud-Studio", "path": "plugins/org.eclipse.cmf.occi.multicloud.vmware.edit/src-gen/org/eclipse/cmf/occi/multicloud/vmware/provider/VswitchItemProvider.java", "license": "epl-1.0", "size": 7713 }
[ "java.util.Collection", "org.eclipse.cmf.occi.core.OCCIPackage", "org.eclipse.cmf.occi.crtp.CrtpFactory", "org.eclipse.cmf.occi.multicloud.accounts.AccountsFactory", "org.eclipse.cmf.occi.multicloud.vmware.VmwareFactory" ]
import java.util.Collection; import org.eclipse.cmf.occi.core.OCCIPackage; import org.eclipse.cmf.occi.crtp.CrtpFactory; import org.eclipse.cmf.occi.multicloud.accounts.AccountsFactory; import org.eclipse.cmf.occi.multicloud.vmware.VmwareFactory;
import java.util.*; import org.eclipse.cmf.occi.core.*; import org.eclipse.cmf.occi.crtp.*; import org.eclipse.cmf.occi.multicloud.accounts.*; import org.eclipse.cmf.occi.multicloud.vmware.*;
[ "java.util", "org.eclipse.cmf" ]
java.util; org.eclipse.cmf;
456,127
public void setRecordId(ULong value) { set(0, value); }
void function(ULong value) { set(0, value); }
/** * Setter for <code>killbill.email_notifications_configuration.record_id</code>. */
Setter for <code>killbill.email_notifications_configuration.record_id</code>
setRecordId
{ "repo_name": "killbill/killbill-email-notifications-plugin", "path": "src/main/java/org/killbill/billing/plugin/notification/dao/gen/tables/records/EmailNotificationsConfigurationRecord.java", "license": "apache-2.0", "size": 7834 }
[ "org.jooq.types.ULong" ]
import org.jooq.types.ULong;
import org.jooq.types.*;
[ "org.jooq.types" ]
org.jooq.types;
2,116,257
final Button sendButton = new Button(messages.sendButton()); final TextBox nameField = new TextBox(); nameField.setText(messages.nameField()); final Label errorLabel = new Label(); // We can add style names to widgets sendButton.addStyleName("sendButton"); // Add the na...
final Button sendButton = new Button(messages.sendButton()); final TextBox nameField = new TextBox(); nameField.setText(messages.nameField()); final Label errorLabel = new Label(); sendButton.addStyleName(STR); RootPanel.get(STR).add(nameField); RootPanel.get(STR).add(sendButton); RootPanel.get(STR).add(errorLabel); na...
/** * This is the entry point method. */
This is the entry point method
onModuleLoad
{ "repo_name": "alessandro-aglietti/parallax-newapplication-codenvy", "path": "src/main/java/com/codenvy/example/gwt/client/GWTEntryPoint.java", "license": "agpl-3.0", "size": 8257 }
[ "com.google.gwt.user.client.ui.Button", "com.google.gwt.user.client.ui.DialogBox", "com.google.gwt.user.client.ui.Label", "com.google.gwt.user.client.ui.RootPanel", "com.google.gwt.user.client.ui.TextBox", "com.google.gwt.user.client.ui.VerticalPanel" ]
import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.*;
[ "com.google.gwt" ]
com.google.gwt;
1,191,412
int getBlockLightLevel(BlockVector3 position);
int getBlockLightLevel(BlockVector3 position);
/** * Get the light level at the given block. * * @param position the position * @return the light level (0-15) */
Get the light level at the given block
getBlockLightLevel
{ "repo_name": "HolodeckOne-Minecraft/WorldEdit", "path": "worldedit-core/src/main/java/com/sk89q/worldedit/world/World.java", "license": "gpl-3.0", "size": 12175 }
[ "com.sk89q.worldedit.math.BlockVector3" ]
import com.sk89q.worldedit.math.BlockVector3;
import com.sk89q.worldedit.math.*;
[ "com.sk89q.worldedit" ]
com.sk89q.worldedit;
2,449,470
public void mkdir(String dirName, int posixPermissions) throws IOException { int req_id = generateNextRequestID(); TypesWriter tw = new TypesWriter(); tw.writeString(dirName, charsetName); tw.writeUINT32(AttribFlags.SSH_FILEXFER_ATTR_PERMISSIONS); tw.writeUINT32(posixPermissions); sendMessage(Packet.S...
void function(String dirName, int posixPermissions) throws IOException { int req_id = generateNextRequestID(); TypesWriter tw = new TypesWriter(); tw.writeString(dirName, charsetName); tw.writeUINT32(AttribFlags.SSH_FILEXFER_ATTR_PERMISSIONS); tw.writeUINT32(posixPermissions); sendMessage(Packet.SSH_FXP_MKDIR, req_id, ...
/** * Create a new directory. * * @param dirName See the {@link SFTPv3Client comment} for the class for more details. * @param posixPermissions the permissions for this directory, e.g., "0700" (remember that * this is octal noation). The server will likely apply a umask. * * @throw...
Create a new directory
mkdir
{ "repo_name": "alphallc/connectbot", "path": "src/com/trilead/ssh2/SFTPv3Client.java", "license": "apache-2.0", "size": 37850 }
[ "com.trilead.ssh2.packets.TypesWriter", "com.trilead.ssh2.sftp.AttribFlags", "com.trilead.ssh2.sftp.Packet", "java.io.IOException" ]
import com.trilead.ssh2.packets.TypesWriter; import com.trilead.ssh2.sftp.AttribFlags; import com.trilead.ssh2.sftp.Packet; import java.io.IOException;
import com.trilead.ssh2.packets.*; import com.trilead.ssh2.sftp.*; import java.io.*;
[ "com.trilead.ssh2", "java.io" ]
com.trilead.ssh2; java.io;
49,512
public static InputStream doGet(String url, Map<String, String[]> parameterMap) throws MalformedURLException, IOException { return doGet(url, parameterMap, "UTF-8"); }
static InputStream function(String url, Map<String, String[]> parameterMap) throws MalformedURLException, IOException { return doGet(url, parameterMap, "UTF-8"); }
/** * Invoke a GET request on the given URL with the given parameter map which will be encoded as * UTF-8. It is highly recommended to close the obtained inputstream after processing! * @param url The URL to be invoked. * @param parameterMap The parameter map to be processed as query parameters. ...
Invoke a GET request on the given URL with the given parameter map which will be encoded as UTF-8. It is highly recommended to close the obtained inputstream after processing
doGet
{ "repo_name": "tranSMART-N/tranSMART-N_app", "path": "src/java/net/balusc/util/HttpServletUtil.java", "license": "gpl-3.0", "size": 16319 }
[ "java.io.IOException", "java.io.InputStream", "java.net.MalformedURLException", "java.util.Map" ]
import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.util.Map;
import java.io.*; import java.net.*; import java.util.*;
[ "java.io", "java.net", "java.util" ]
java.io; java.net; java.util;
945,795
void restartConnector(String connName, Callback<Void> cb);
void restartConnector(String connName, Callback<Void> cb);
/** * Restart the connector. * @param connName name of the connector * @param cb callback to invoke upon completion */
Restart the connector
restartConnector
{ "repo_name": "TiVo/kafka", "path": "connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Herder.java", "license": "apache-2.0", "size": 12231 }
[ "org.apache.kafka.connect.util.Callback" ]
import org.apache.kafka.connect.util.Callback;
import org.apache.kafka.connect.util.*;
[ "org.apache.kafka" ]
org.apache.kafka;
1,723,162
void cleanup(File preprocessedTextFile);
void cleanup(File preprocessedTextFile);
/** * Cleans up the preprocessed text file after sending it. */
Cleans up the preprocessed text file after sending it
cleanup
{ "repo_name": "caot/intellij-community", "path": "plugins/cvs/javacvs-src/org/netbeans/lib/cvsclient/file/ISendTextFilePreprocessor.java", "license": "apache-2.0", "size": 1186 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,007,492
private Object getBeanInternal(String name, Map newlyCreatedBeans) { if (name == null) throw new NoSuchBeanDefinitionException(null, "Cannot get bean with null name"); try { AbstractBeanDefinition bd = getBeanDefinition(transformedBeanName(name)); if (bd.isSingleton()) { // check for bean inst...
Object function(String name, Map newlyCreatedBeans) { if (name == null) throw new NoSuchBeanDefinitionException(null, STR); try { AbstractBeanDefinition bd = getBeanDefinition(transformedBeanName(name)); if (bd.isSingleton()) { if (newlyCreatedBeans != null && newlyCreatedBeans.containsKey(name)) { return newlyCreatedB...
/** * Return the bean with the given name, * checking the parent bean factory if not found. * @param name name of the bean to retrieve * @param newlyCreatedBeans cache with newly created beans (name, instance) * if triggered by the creation of another bean, or null else * (necessary to resolve circula...
Return the bean with the given name, checking the parent bean factory if not found
getBeanInternal
{ "repo_name": "Will1229/LearnSpring", "path": "spring-framework-0.9.1/src/com/interface21/beans/factory/support/AbstractBeanFactory.java", "license": "apache-2.0", "size": 22876 }
[ "com.interface21.beans.factory.NoSuchBeanDefinitionException", "java.util.Map" ]
import com.interface21.beans.factory.NoSuchBeanDefinitionException; import java.util.Map;
import com.interface21.beans.factory.*; import java.util.*;
[ "com.interface21.beans", "java.util" ]
com.interface21.beans; java.util;
1,699,319
public static OutputOperatorSpec of(String name, ClassInfo descriptionClass) { return new OutputOperatorSpec(name, descriptionClass); }
static OutputOperatorSpec function(String name, ClassInfo descriptionClass) { return new OutputOperatorSpec(name, descriptionClass); }
/** * Returns an instance. * @param name the port name * @param descriptionClass the output description (nullable) * @return the instance */
Returns an instance
of
{ "repo_name": "asakusafw/asakusafw", "path": "info/model/src/main/java/com/asakusafw/info/operator/OutputOperatorSpec.java", "license": "apache-2.0", "size": 3542 }
[ "com.asakusafw.info.value.ClassInfo" ]
import com.asakusafw.info.value.ClassInfo;
import com.asakusafw.info.value.*;
[ "com.asakusafw.info" ]
com.asakusafw.info;
2,168,001
public Color get(String symbolicName) { Assert.isNotNull(symbolicName); Object result = stringToColor.get(symbolicName); if (result != null) { return (Color) result; } Color color = null; result = stringToRGB.get(symbolicName); if (result == null) { return ...
Color function(String symbolicName) { Assert.isNotNull(symbolicName); Object result = stringToColor.get(symbolicName); if (result != null) { return (Color) result; } Color color = null; result = stringToRGB.get(symbolicName); if (result == null) { return null; } color = createColor((RGB) result); stringToColor.put(symb...
/** * Returns the <code>color</code> associated with the given symbolic color * name, or <code>null</code> if no such definition exists. * * @param symbolicName symbolic color name * @return the <code>Color</code> or <code>null</code> */
Returns the <code>color</code> associated with the given symbolic color name, or <code>null</code> if no such definition exists
get
{ "repo_name": "AntoineDelacroix/NewSuperProject-", "path": "org.eclipse.jface/src/org/eclipse/jface/resource/ColorRegistry.java", "license": "gpl-2.0", "size": 9701 }
[ "org.eclipse.core.runtime.Assert", "org.eclipse.swt.graphics.Color" ]
import org.eclipse.core.runtime.Assert; import org.eclipse.swt.graphics.Color;
import org.eclipse.core.runtime.*; import org.eclipse.swt.graphics.*;
[ "org.eclipse.core", "org.eclipse.swt" ]
org.eclipse.core; org.eclipse.swt;
1,220,556
private static List<Entry<String, String>> formGet(Bootstrap bootstrap, String host, int port, String get, URI uriSimple) throws Exception { // Start the connection attempt. // No use of HttpPostRequestEncoder since not a POST Channel channel = bootstrap.connect(host, port).sync(...
static List<Entry<String, String>> function(Bootstrap bootstrap, String host, int port, String get, URI uriSimple) throws Exception { Channel channel = bootstrap.connect(host, port).sync().channel(); QueryStringEncoder encoder = new QueryStringEncoder(get); encoder.addParam(STR, "GET"); encoder.addParam("info", STR); e...
/** * Standard usage of HTTP API in Netty without file Upload (get is not able to achieve File upload due to limitation * on request size). * * @return the list of headers that will be used in every example after **/
Standard usage of HTTP API in Netty without file Upload (get is not able to achieve File upload due to limitation on request size)
formGet
{ "repo_name": "nathanchen/netty-netty-5.0.0.Alpha1", "path": "example/src/main/java/io/netty/example/http/upload/HttpUploadClient.java", "license": "apache-2.0", "size": 78346 }
[ "io.netty.bootstrap.Bootstrap", "io.netty.channel.Channel", "io.netty.handler.codec.http.ClientCookieEncoder", "io.netty.handler.codec.http.DefaultCookie", "io.netty.handler.codec.http.DefaultFullHttpRequest", "io.netty.handler.codec.http.FullHttpRequest", "io.netty.handler.codec.http.HttpHeaders", "i...
import io.netty.bootstrap.Bootstrap; import io.netty.channel.Channel; import io.netty.handler.codec.http.ClientCookieEncoder; import io.netty.handler.codec.http.DefaultCookie; import io.netty.handler.codec.http.DefaultFullHttpRequest; import io.netty.handler.codec.http.FullHttpRequest; import io.netty.handler.codec.htt...
import io.netty.bootstrap.*; import io.netty.channel.*; import io.netty.handler.codec.http.*; import java.net.*; import java.util.*; import java.util.logging.*;
[ "io.netty.bootstrap", "io.netty.channel", "io.netty.handler", "java.net", "java.util" ]
io.netty.bootstrap; io.netty.channel; io.netty.handler; java.net; java.util;
38,549
public static Module create() { return new Module( ImmutableMap.of()); }
static Module function() { return new Module( ImmutableMap.of()); }
/** * Creates a module with no predeclared bindings other than the standard environment, {@link * Starlark#UNIVERSE}. */
Creates a module with no predeclared bindings other than the standard environment, <code>Starlark#UNIVERSE</code>
create
{ "repo_name": "ulfjack/bazel", "path": "src/main/java/com/google/devtools/build/lib/syntax/Module.java", "license": "apache-2.0", "size": 9907 }
[ "com.google.common.collect.ImmutableMap" ]
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
2,292,839
public static java.sql.Timestamp getTimestamp(long time) { return new java.sql.Timestamp(time); }
static java.sql.Timestamp function(long time) { return new java.sql.Timestamp(time); }
/** * Convert a millisecond value to a Timestamp. * @param time millsecond value * @return Timestamp */
Convert a millisecond value to a Timestamp
getTimestamp
{ "repo_name": "mfadili/ajiel3", "path": "src/main/java/com/google/ajiel/service/util/UtilDateTime.java", "license": "apache-2.0", "size": 44106 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,697,143
public ExpressionClause<RecipientListDefinition<Type>> recipientList(String delimiter) { RecipientListDefinition<Type> answer = new RecipientListDefinition<Type>(); answer.setDelimiter(delimiter); addOutput(answer); return ExpressionClause.createAndSetExpression(answer); }
ExpressionClause<RecipientListDefinition<Type>> function(String delimiter) { RecipientListDefinition<Type> answer = new RecipientListDefinition<Type>(); answer.setDelimiter(delimiter); addOutput(answer); return ExpressionClause.createAndSetExpression(answer); }
/** * <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 * * @param delimiter a custom delimiter to use * @return the builder */
Creates a dynamic recipient list allowing you to route messages to a number of dynamically specified recipients
recipientList
{ "repo_name": "dsimansk/camel", "path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java", "license": "apache-2.0", "size": 153469 }
[ "org.apache.camel.builder.ExpressionClause" ]
import org.apache.camel.builder.ExpressionClause;
import org.apache.camel.builder.*;
[ "org.apache.camel" ]
org.apache.camel;
2,276,206
public void setApprovedDate(Date value) { setAttributeInternal(APPROVEDDATE, value); }
void function(Date value) { setAttributeInternal(APPROVEDDATE, value); }
/** * * Sets <code>value</code> as the attribute value for ApprovedDate */
Sets <code>value</code> as the attribute value for ApprovedDate
setApprovedDate
{ "repo_name": "CBIIT/cadsr-util", "path": "cadsrutil/src/java/gov/nih/nci/ncicb/cadsr/common/persistence/bc4j/ProtocolImpl.java", "license": "bsd-3-clause", "size": 17748 }
[ "oracle.jbo.domain.Date" ]
import oracle.jbo.domain.Date;
import oracle.jbo.domain.*;
[ "oracle.jbo.domain" ]
oracle.jbo.domain;
1,331,396
@Beta public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { this.valueComparator = checkNotNull(valueComparator); return this; }
Builder<K, V> function(Comparator<? super V> valueComparator) { this.valueComparator = checkNotNull(valueComparator); return this; }
/** * Specifies the ordering of the generated multimap's values for each key. * * @since 8.0 */
Specifies the ordering of the generated multimap's values for each key
orderValuesBy
{ "repo_name": "mkeesey/guava-for-small-classpaths", "path": "guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMultimap.java", "license": "apache-2.0", "size": 18826 }
[ "com.google.common.base.Preconditions", "java.util.Comparator" ]
import com.google.common.base.Preconditions; import java.util.Comparator;
import com.google.common.base.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,566,247
EClass getinterfaceHeritage();
EClass getinterfaceHeritage();
/** * Returns the meta object for class '{@link org.xtext.example.delphi.delphi.interfaceHeritage <em>interface Heritage</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>interface Heritage</em>'. * @see org.xtext.example.delphi.delphi.interfaceHeritage * @g...
Returns the meta object for class '<code>org.xtext.example.delphi.delphi.interfaceHeritage interface Heritage</code>'.
getinterfaceHeritage
{ "repo_name": "adolfosbh/cs2as", "path": "org.xtext.example.delphi/src-gen/org/xtext/example/delphi/delphi/DelphiPackage.java", "license": "epl-1.0", "size": 434880 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
416,373
public boolean remove(PlanarImage pi) { if (pi != null) { Iterator iter = iterator(); while (iter.hasNext()) { SequentialImage si = (SequentialImage)iter.next(); if (si.image.equals(pi)) { return super.remove(si); ...
boolean function(PlanarImage pi) { if (pi != null) { Iterator iter = iterator(); while (iter.hasNext()) { SequentialImage si = (SequentialImage)iter.next(); if (si.image.equals(pi)) { return super.remove(si); } } } return false; }
/** * Removes the <code>SequentialImage</code> that contains the * specified image from this collection. * * @return <code>true</code> if and only if a * <code>SequentialImage</code> with the * specified image is removed from the collection. */
Removes the <code>SequentialImage</code> that contains the specified image from this collection
remove
{ "repo_name": "RoProducts/rastertheque", "path": "JAILibrary/src/javax/media/jai/ImageSequence.java", "license": "gpl-2.0", "size": 6243 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,803,248
final protected void sendFullOutgoing(WsByteBuffer[] wsbb, HttpBaseMessageImpl msg) throws IOException { this.isFinalWrite = true; prepareOutgoing(wsbb, msg); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "sendFullOutgoing : " + isOutgoingBodyVal...
final void function(WsByteBuffer[] wsbb, HttpBaseMessageImpl msg) throws IOException { this.isFinalWrite = true; prepareOutgoing(wsbb, msg); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, STR + isOutgoingBodyValid() + STR + wsbb + STR + this); } if (isOutgoingBodyValid()) { HttpInboundS...
/** * Send a full message out. If headers have not already been sent, they will * be queued in front of the given body buffers, plus the "zero chunk" will * be tacked on the end if this is chunked encoding. * * @param wsbb * @param msg * @throws IOException */
Send a full message out. If headers have not already been sent, they will be queued in front of the given body buffers, plus the "zero chunk" will be tacked on the end if this is chunked encoding
sendFullOutgoing
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpServiceContextImpl.java", "license": "epl-1.0", "size": 221447 }
[ "com.ibm.websphere.ras.Tr", "com.ibm.websphere.ras.TraceComponent", "com.ibm.ws.http.channel.h2internal.H2HttpInboundLinkWrap", "com.ibm.ws.http.channel.h2internal.frames.Frame", "com.ibm.ws.http.channel.internal.inbound.HttpInboundLink", "com.ibm.ws.http.channel.internal.inbound.HttpInboundServiceContext...
import com.ibm.websphere.ras.Tr; import com.ibm.websphere.ras.TraceComponent; import com.ibm.ws.http.channel.h2internal.H2HttpInboundLinkWrap; import com.ibm.ws.http.channel.h2internal.frames.Frame; import com.ibm.ws.http.channel.internal.inbound.HttpInboundLink; import com.ibm.ws.http.channel.internal.inbound.HttpInbo...
import com.ibm.websphere.ras.*; import com.ibm.ws.http.channel.h2internal.*; import com.ibm.ws.http.channel.h2internal.frames.*; import com.ibm.ws.http.channel.internal.inbound.*; import com.ibm.wsspi.bytebuffer.*; import java.io.*;
[ "com.ibm.websphere", "com.ibm.ws", "com.ibm.wsspi", "java.io" ]
com.ibm.websphere; com.ibm.ws; com.ibm.wsspi; java.io;
2,795,029
private static Marshaller assertionFailed( String message ) throws JAXBException { throw new JAXBException( message ); }
static Marshaller function( String message ) throws JAXBException { throw new JAXBException( message ); }
/** * Hook to throw exception from the middle of a contructor chained call * to this */
Hook to throw exception from the middle of a contructor chained call to this
assertionFailed
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxws/src/share/jaxws_classes/javax/xml/bind/util/JAXBSource.java", "license": "mit", "size": 10231 }
[ "javax.xml.bind.JAXBException", "javax.xml.bind.Marshaller" ]
import javax.xml.bind.JAXBException; import javax.xml.bind.Marshaller;
import javax.xml.bind.*;
[ "javax.xml" ]
javax.xml;
670,184
private void scanFile(final OsmonautSink sink) { try { // Process file InputStream input = new FileInputStream(file); OsmonautBinaryParser parser = new OsmonautBinaryParser(sink); new BlockInputStream(input, parser).process(); } catch (FileNotFoundException e) { System.out.println("E: Input file d...
void function(final OsmonautSink sink) { try { InputStream input = new FileInputStream(file); OsmonautBinaryParser parser = new OsmonautBinaryParser(sink); new BlockInputStream(input, parser).process(); } catch (FileNotFoundException e) { System.out.println(STR); } catch (IOException e) { System.out.println(STR); } }
/** * Starts a single scan run. * @param sink The sink to use */
Starts a single scan run
scanFile
{ "repo_name": "tobias74/bikevote-importer", "path": "src/main/java/net/morbz/osmonaut/Osmonaut.java", "license": "mit", "size": 9040 }
[ "java.io.FileInputStream", "java.io.FileNotFoundException", "java.io.IOException", "java.io.InputStream", "net.morbz.osmonaut.binary.OsmonautBinaryParser", "net.morbz.osmonaut.binary.OsmonautSink", "org.openstreetmap.osmosis.osmbinary.file.BlockInputStream" ]
import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import net.morbz.osmonaut.binary.OsmonautBinaryParser; import net.morbz.osmonaut.binary.OsmonautSink; import org.openstreetmap.osmosis.osmbinary.file.BlockInputStream;
import java.io.*; import net.morbz.osmonaut.binary.*; import org.openstreetmap.osmosis.osmbinary.file.*;
[ "java.io", "net.morbz.osmonaut", "org.openstreetmap.osmosis" ]
java.io; net.morbz.osmonaut; org.openstreetmap.osmosis;
229,799
protected void pushPacket(IOFSwitch sw, OFMatch match, OFPacketIn pi, short outport, FloodlightContext cntx) { if (pi == null) { return; } else if (pi.getInPort() == outport){ log.warn("Packet out not sent as the outport matches inport. {}", ...
void function(IOFSwitch sw, OFMatch match, OFPacketIn pi, short outport, FloodlightContext cntx) { if (pi == null) { return; } else if (pi.getInPort() == outport){ log.warn(STR, pi); return; } if (pi.getInPort() == outport) { if (log.isDebugEnabled()) { log.debug(STR + STR + STR, new Object[]{sw, match, pi}); return; }...
/** * Pushes a packet-out to a switch. The assumption here is that * the packet-in was also generated from the same switch. Thus, if the input * port of the packet-in and the outport are the same, the function will not * push the packet-out. * @param sw switch that generated the packe...
Pushes a packet-out to a switch. The assumption here is that the packet-in was also generated from the same switch. Thus, if the input port of the packet-in and the outport are the same, the function will not push the packet-out
pushPacket
{ "repo_name": "chris19891128/FloodlightSec", "path": "src/main/java/net/floodlightcontroller/routing/ForwardingBase.java", "license": "apache-2.0", "size": 27284 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "net.floodlightcontroller.core.FloodlightContext", "net.floodlightcontroller.core.IOFSwitch", "org.openflow.protocol.OFMatch", "org.openflow.protocol.OFPacketIn", "org.openflow.protocol.OFPacketOut", "org.openflow.protocol.OFType", "o...
import java.io.IOException; import java.util.ArrayList; import java.util.List; import net.floodlightcontroller.core.FloodlightContext; import net.floodlightcontroller.core.IOFSwitch; import org.openflow.protocol.OFMatch; import org.openflow.protocol.OFPacketIn; import org.openflow.protocol.OFPacketOut; import org.openf...
import java.io.*; import java.util.*; import net.floodlightcontroller.core.*; import org.openflow.protocol.*; import org.openflow.protocol.action.*;
[ "java.io", "java.util", "net.floodlightcontroller.core", "org.openflow.protocol" ]
java.io; java.util; net.floodlightcontroller.core; org.openflow.protocol;
2,093,832
private MetaModel createEntity(Class<?> klass){ log.trace("Create entities : {}", klass.getName()); MetaModel metaModel = new MetaModel(); metaModel.setName(klass.getSimpleName()); metaModel.setFullName(klass.getName()); metaModel.setPackageName(klass.getPackage().getName()); if (klass.getAnnotati...
MetaModel function(Class<?> klass){ log.trace(STR, klass.getName()); MetaModel metaModel = new MetaModel(); metaModel.setName(klass.getSimpleName()); metaModel.setFullName(klass.getName()); metaModel.setPackageName(klass.getPackage().getName()); if (klass.getAnnotation(Table.class) != null) { metaModel.setTableName(kla...
/** * Create MetaModel from Class. * * @param klass * Class to load. * * @return * @see MetaModel */
Create MetaModel from Class
createEntity
{ "repo_name": "marioestradarosa/axelor-development-kit", "path": "axelor-core/src/main/java/com/axelor/meta/service/MetaModelService.java", "license": "agpl-3.0", "size": 7814 }
[ "com.axelor.meta.db.MetaField", "com.axelor.meta.db.MetaModel", "java.util.ArrayList", "javax.persistence.Table" ]
import com.axelor.meta.db.MetaField; import com.axelor.meta.db.MetaModel; import java.util.ArrayList; import javax.persistence.Table;
import com.axelor.meta.db.*; import java.util.*; import javax.persistence.*;
[ "com.axelor.meta", "java.util", "javax.persistence" ]
com.axelor.meta; java.util; javax.persistence;
680,139
final JobContextHolderImpl jobContextHolderImpl = new JobContextHolderImpl(Mockito.mock(DataAgentApi.class),null,null,null); assertNotNull(jobContextHolderImpl.getDataAgentApi()); }
final JobContextHolderImpl jobContextHolderImpl = new JobContextHolderImpl(Mockito.mock(DataAgentApi.class),null,null,null); assertNotNull(jobContextHolderImpl.getDataAgentApi()); }
/** * Gets the data agent api test. * * @return the data agent api test * @throws Exception the exception */
Gets the data agent api test
getDataAgentApiTest
{ "repo_name": "Hack23/cia", "path": "service.impl/src/test/java/com/hack23/cia/service/impl/task/JobContextHolderImplTest.java", "license": "apache-2.0", "size": 2806 }
[ "com.hack23.cia.service.component.agent.api.DataAgentApi", "org.mockito.Mockito" ]
import com.hack23.cia.service.component.agent.api.DataAgentApi; import org.mockito.Mockito;
import com.hack23.cia.service.component.agent.api.*; import org.mockito.*;
[ "com.hack23.cia", "org.mockito" ]
com.hack23.cia; org.mockito;
2,386,317
private final boolean isValidValue(final BigInteger value) { logger.warn("AccessReportTriggerType must convert BigInteger " + value + " to Integer value " + value.intValue()); return isValidValue(value.intValue()); }
final boolean function(final BigInteger value) { logger.warn(STR + value + STR + value.intValue()); return isValidValue(value.intValue()); }
/** * wrapper method for UnsignedIntegers that use BigIntegers to store value * */
wrapper method for UnsignedIntegers that use BigIntegers to store value
isValidValue
{ "repo_name": "mksmbrtsh/LLRPexplorer", "path": "src/org/llrp/ltk/generated/enumerations/AccessReportTriggerType.java", "license": "apache-2.0", "size": 6998 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
1,547,423
// docs start create style private Style createStyle(File file, FeatureSource featureSource) { File sld = toSLDFile(file); if (sld != null) { return createFromSLD(sld); } SimpleFeatureType schema = (SimpleFeatureType)featureSource.getSchema(); return JSimple...
Style function(File file, FeatureSource featureSource) { File sld = toSLDFile(file); if (sld != null) { return createFromSLD(sld); } SimpleFeatureType schema = (SimpleFeatureType)featureSource.getSchema(); return JSimpleStyleDialog.showDialog(null, schema); }
/** * Create a Style to display the features. If an SLD file is in the same * directory as the shapefile then we will create the Style by processing * this. Otherwise we display a JSimpleStyleDialog to prompt the user for * preferences. */
Create a Style to display the features. If an SLD file is in the same directory as the shapefile then we will create the Style by processing this. Otherwise we display a JSimpleStyleDialog to prompt the user for preferences
createStyle
{ "repo_name": "carlosrodlop/geotools-tutorial", "path": "tutorial/src/main/java/org/geotools/tutorial/styles/StyleLab.java", "license": "apache-2.0", "size": 8315 }
[ "java.io.File", "org.geotools.data.FeatureSource", "org.geotools.styling.Style", "org.geotools.swing.styling.JSimpleStyleDialog", "org.opengis.feature.simple.SimpleFeatureType" ]
import java.io.File; import org.geotools.data.FeatureSource; import org.geotools.styling.Style; import org.geotools.swing.styling.JSimpleStyleDialog; import org.opengis.feature.simple.SimpleFeatureType;
import java.io.*; import org.geotools.data.*; import org.geotools.styling.*; import org.geotools.swing.styling.*; import org.opengis.feature.simple.*;
[ "java.io", "org.geotools.data", "org.geotools.styling", "org.geotools.swing", "org.opengis.feature" ]
java.io; org.geotools.data; org.geotools.styling; org.geotools.swing; org.opengis.feature;
2,412,287
private static String generateArchiveAutoNamePath(String originalUrl, String baseName) { String name = null; if (originalUrl != null && !originalUrl.isEmpty()) { try { String path = new URL(originalUrl).getPath(); int lastSlash = path.lastIndexOf('/'); ...
static String function(String originalUrl, String baseName) { String name = null; if (originalUrl != null && !originalUrl.isEmpty()) { try { String path = new URL(originalUrl).getPath(); int lastSlash = path.lastIndexOf('/'); if (lastSlash > 0) { name = path.substring(lastSlash + 1); } else { name = path; } } catch (Ma...
/** * Try to generate a pathname for saving an MHTML archive. This roughly follows WebView's * autoname logic. */
Try to generate a pathname for saving an MHTML archive. This roughly follows WebView's autoname logic
generateArchiveAutoNamePath
{ "repo_name": "ZhanJohn/AG_Modules", "path": "ag_webview/src/main/java/org/chromium/android_webview/AwContents.java", "license": "gpl-2.0", "size": 57292 }
[ "android.text.TextUtils", "android.util.Log", "java.io.File", "java.net.MalformedURLException" ]
import android.text.TextUtils; import android.util.Log; import java.io.File; import java.net.MalformedURLException;
import android.text.*; import android.util.*; import java.io.*; import java.net.*;
[ "android.text", "android.util", "java.io", "java.net" ]
android.text; android.util; java.io; java.net;
2,315,544
@Override public Number ping(final InetAddress host, final long timeout, final int retries) throws Exception { return ping(host, timeout, retries, DEFAULT_PACKET_SIZE); }
Number function(final InetAddress host, final long timeout, final int retries) throws Exception { return ping(host, timeout, retries, DEFAULT_PACKET_SIZE); }
/** * This method is used to ping a remote host to test for ICMP support. If * the remote host responds within the specified period, defined by retries * and timeouts, then the response time is returned. * * @param host * The address to poll. * @param timeout * ...
This method is used to ping a remote host to test for ICMP support. If the remote host responds within the specified period, defined by retries and timeouts, then the response time is returned
ping
{ "repo_name": "tdefilip/opennms", "path": "opennms-icmp/opennms-icmp-jni6/src/main/java/org/opennms/netmgt/icmp/jni6/Jni6Pinger.java", "license": "agpl-3.0", "size": 12643 }
[ "java.net.InetAddress" ]
import java.net.InetAddress;
import java.net.*;
[ "java.net" ]
java.net;
2,060,814
return ScCompanycontractsRecord.class; } public final TableField<ScCompanycontractsRecord, String> ID = createField("id", org.jooq.impl.SQLDataType.CHAR.length(36).nullable(false), this, ""); public final TableField<ScCompanycontractsRecord, String> NAME = createField("name", org.jooq.impl.SQLDa...
return ScCompanycontractsRecord.class; } public final TableField<ScCompanycontractsRecord, String> ID = createField("id", org.jooq.impl.SQLDataType.CHAR.length(36).nullable(false), this, STRnameSTRSTRdate_enteredSTRSTRdate_modifiedSTRSTRmodified_user_idSTRSTRcreated_bySTRSTRdescriptionSTRSTRdeletedSTR0STRSTRassigned_us...
/** * The class holding records for this type */
The class holding records for this type
getRecordType
{ "repo_name": "SmartMedicalServices/SpringJOOQ", "path": "src/main/java/com/sms/sis/db/tables/ScCompanycontracts.java", "license": "gpl-3.0", "size": 27227 }
[ "com.sms.sis.db.tables.records.ScCompanycontractsRecord", "org.jooq.TableField" ]
import com.sms.sis.db.tables.records.ScCompanycontractsRecord; import org.jooq.TableField;
import com.sms.sis.db.tables.records.*; import org.jooq.*;
[ "com.sms.sis", "org.jooq" ]
com.sms.sis; org.jooq;
1,079,636
public void close() throws IOException { if (cOut != null) { if (digestCalc != null) { // // hand code a mod detection packet // BCPGOutputStream bOut = new BCPGOutputStream(genOut, PacketTags.MOD_DET...
void function() throws IOException { if (cOut != null) { if (digestCalc != null) { bOut.flush(); byte[] dig = digestCalc.getDigest(); cOut.write(dig); } cOut.close(); cOut = null; pOut = null; } } private class ClosableBCPGOutputStream extends BCPGOutputStream { public ClosableBCPGOutputStream(OutputStream out, int sym...
/** * Close off the encrypted object - this is equivalent to calling close on the stream returned * by the <code>open()</code> methods. * <p> * <b>Note</b>: This does not close the underlying output stream, only the stream on top of it * created by the <code>open()</code> method. * * ...
Close off the encrypted object - this is equivalent to calling close on the stream returned by the <code>open()</code> methods. Note: This does not close the underlying output stream, only the stream on top of it created by the <code>open()</code> method
close
{ "repo_name": "GaloisInc/hacrypto", "path": "src/Java/BouncyCastle/BouncyCastle-1.54/bcpg-jdk15on-154/src/org/bouncycastle/openpgp/PGPEncryptedDataGenerator.java", "license": "bsd-3-clause", "size": 14875 }
[ "java.io.IOException", "java.io.OutputStream", "org.bouncycastle.bcpg.BCPGOutputStream" ]
import java.io.IOException; import java.io.OutputStream; import org.bouncycastle.bcpg.BCPGOutputStream;
import java.io.*; import org.bouncycastle.bcpg.*;
[ "java.io", "org.bouncycastle.bcpg" ]
java.io; org.bouncycastle.bcpg;
1,459,798
EClass getSimpleInPatternElement();
EClass getSimpleInPatternElement();
/** * Returns the meta object for class '{@link anatlyzer.atlext.ATL.SimpleInPatternElement <em>Simple In Pattern Element</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Simple In Pattern Element</em>'. * @see anatlyzer.atlext.ATL.SimpleInPatternElement * @...
Returns the meta object for class '<code>anatlyzer.atlext.ATL.SimpleInPatternElement Simple In Pattern Element</code>'.
getSimpleInPatternElement
{ "repo_name": "jesusc/anatlyzer", "path": "plugins/anatlyzer.atl.typing/src-gen/anatlyzer/atlext/ATL/ATLPackage.java", "license": "epl-1.0", "size": 222096 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
570,066
private void getWeatherDataFromJson(String forecastJsonStr, String locationSetting) throws JSONException { // Now we have a String representing the complete forecast in JSON Format. // Fortunately parsing is easy: constructor takes the JSON strin...
void function(String forecastJsonStr, String locationSetting) throws JSONException { final String OWM_CITY = "city"; final String OWM_CITY_NAME = "name"; final String OWM_COORD = "coord"; final String OWM_LATITUDE = "lat"; final String OWM_LONGITUDE = "lon"; final String OWM_LIST = "list"; final String OWM_PRESSURE = S...
/** * Take the String representing the complete forecast in JSON Format and * pull out the data we need to construct the Strings needed for the wireframes. * * Fortunately parsing is easy: constructor takes the JSON string and converts it * into an Object hierarchy for us. */
Take the String representing the complete forecast in JSON Format and pull out the data we need to construct the Strings needed for the wireframes. Fortunately parsing is easy: constructor takes the JSON string and converts it into an Object hierarchy for us
getWeatherDataFromJson
{ "repo_name": "Arthurisme/Advanced_Android_Development", "path": "notes/20150424/SunshineService.java", "license": "apache-2.0", "size": 14157 }
[ "android.content.ContentValues", "android.text.format.Time", "android.util.Log", "com.example.android.sunshine.app.data.WeatherContract", "java.util.Vector", "org.json.JSONArray", "org.json.JSONException", "org.json.JSONObject" ]
import android.content.ContentValues; import android.text.format.Time; import android.util.Log; import com.example.android.sunshine.app.data.WeatherContract; import java.util.Vector; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject;
import android.content.*; import android.text.format.*; import android.util.*; import com.example.android.sunshine.app.data.*; import java.util.*; import org.json.*;
[ "android.content", "android.text", "android.util", "com.example.android", "java.util", "org.json" ]
android.content; android.text; android.util; com.example.android; java.util; org.json;
2,631,736
protected Map<String, String> getBuildParameters() { Map<String, String> answer = new HashMap<>(); if (projectConfig != null) { String flow = projectConfig.getPipeline(); if (flow != null && Strings.isNotBlank(gitUrl)) { answer.put("GIT_URL", gitUrl); ...
Map<String, String> function() { Map<String, String> answer = new HashMap<>(); if (projectConfig != null) { String flow = projectConfig.getPipeline(); if (flow != null && Strings.isNotBlank(gitUrl)) { answer.put(STR, gitUrl); } Map<String, String> parameters = projectConfig.getBuildParameters(); if (parameters != null)...
/** * If the build is parameterised lets return the build parameters */
If the build is parameterised lets return the build parameters
getBuildParameters
{ "repo_name": "zmhassan/fabric8", "path": "components/fabric8-devops-connector/src/main/java/io/fabric8/devops/connector/DevOpsConnector.java", "license": "apache-2.0", "size": 58301 }
[ "io.fabric8.utils.Strings", "java.util.HashMap", "java.util.Map" ]
import io.fabric8.utils.Strings; import java.util.HashMap; import java.util.Map;
import io.fabric8.utils.*; import java.util.*;
[ "io.fabric8.utils", "java.util" ]
io.fabric8.utils; java.util;
2,311,469
public static Boolean convertBoolean(Object target) { if (target instanceof JsonNode) { return convertBoolean((JsonNode) target); } return target instanceof Boolean ? (Boolean) target : target instanceof String ? Boolean.parseBoolean(target.toString()) ...
static Boolean function(Object target) { if (target instanceof JsonNode) { return convertBoolean((JsonNode) target); } return target instanceof Boolean ? (Boolean) target : target instanceof String ? Boolean.parseBoolean(target.toString()) : Boolean.FALSE; }
/** * Convert a target object to {@link Boolean}. * * <p> * Nullable: this method does not return {@code null}. If {@code target} can not be converted to * {@Link Boolean}, {@code false} is returned. * </p> * * @param target * @return */
Convert a target object to <code>Boolean</code>. Nullable: this method does not return null. If target can not be converted to Boolean, false is returned.
convertBoolean
{ "repo_name": "DDTH/ddth-commons", "path": "ddth-commons-core/src/main/java/com/github/ddth/commons/utils/ValueUtils.java", "license": "mit", "size": 18232 }
[ "com.fasterxml.jackson.databind.JsonNode" ]
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
1,973,153
public void deleteLocationInventory(String productCode, String locationCode) throws Exception { MozuClient client = com.mozu.api.clients.commerce.catalog.admin.products.LocationInventoryClient.deleteLocationInventoryClient(_dataViewMode, productCode, locationCode); client.setContext(_apiContext); client...
void function(String productCode, String locationCode) throws Exception { MozuClient client = com.mozu.api.clients.commerce.catalog.admin.products.LocationInventoryClient.deleteLocationInventoryClient(_dataViewMode, productCode, locationCode); client.setContext(_apiContext); client.executeRequest(); client.cleanupHttpC...
/** * * <p><pre><code> * LocationInventory locationinventory = new LocationInventory(); * locationinventory.deleteLocationInventory( productCode, locationCode); * </code></pre></p> * @param locationCode The unique, user-defined code that identifies a location. * @param productCode The unique, us...
<code><code> LocationInventory locationinventory = new LocationInventory(); locationinventory.deleteLocationInventory( productCode, locationCode); </code></code>
deleteLocationInventory
{ "repo_name": "Mozu/mozu-java", "path": "mozu-java-core/src/main/java/com/mozu/api/resources/commerce/catalog/admin/products/LocationInventoryResource.java", "license": "mit", "size": 11437 }
[ "com.mozu.api.MozuClient" ]
import com.mozu.api.MozuClient;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
623,459
public Entity<T> removeAllAttributeOverride() { childNode.removeChildren("attribute-override"); return this; } // --------------------------------------------------------------------------------------------------------|| // ClassName: Entity ElementName: orm:association-override ElementTyp...
Entity<T> function() { childNode.removeChildren(STR); return this; }
/** * Removes all <code>attribute-override</code> elements * @return the current instance of <code>AttributeOverride<Entity<T>></code> */
Removes all <code>attribute-override</code> elements
removeAllAttributeOverride
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/orm10/EntityImpl.java", "license": "epl-1.0", "size": 47108 }
[ "org.jboss.shrinkwrap.descriptor.api.orm10.Entity" ]
import org.jboss.shrinkwrap.descriptor.api.orm10.Entity;
import org.jboss.shrinkwrap.descriptor.api.orm10.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
1,769,134
public void testConnectionFlowCommitAlt() throws IOException, SQLException { Object[] dataSources = new Object[] { JDBCDataSource.getDataSource(), J2EEDataSource.getConnectionPoolDataSource(), J2EEDataSource.getXADataSource() }; for (int i=0; i...
void function() throws IOException, SQLException { Object[] dataSources = new Object[] { JDBCDataSource.getDataSource(), J2EEDataSource.getConnectionPoolDataSource(), J2EEDataSource.getXADataSource() }; for (int i=0; i < dataSources.length; i++) { Object ds = dataSources[i]; int flowsBase = testConnectionFlowCommitRoll...
/** * Alternative test for making sure "redundant" commits, i.e. commits * invoked when no transaction is in progress, don't result in a commit * command being flowed to the server. * * @throws IOException if reading/parsing the trace file fails * @throws SQLException if something goes wro...
Alternative test for making sure "redundant" commits, i.e. commits invoked when no transaction is in progress, don't result in a commit command being flowed to the server
testConnectionFlowCommitAlt
{ "repo_name": "viaper/DBPlus", "path": "DerbyHodgepodge/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java", "license": "apache-2.0", "size": 186489 }
[ "java.io.IOException", "java.sql.SQLException", "org.apache.derbyTesting.junit.J2EEDataSource", "org.apache.derbyTesting.junit.JDBCDataSource" ]
import java.io.IOException; import java.sql.SQLException; import org.apache.derbyTesting.junit.J2EEDataSource; import org.apache.derbyTesting.junit.JDBCDataSource;
import java.io.*; import java.sql.*; import org.apache.*;
[ "java.io", "java.sql", "org.apache" ]
java.io; java.sql; org.apache;
661,653
protected void gatherDependencies() throws MojoExecutionException { Set<Artifact> dependencies = null; // Whether transitive deps should be gathered or not dependencies = project.getArtifacts(); ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME ); ...
void function() throws MojoExecutionException { Set<Artifact> dependencies = null; dependencies = project.getArtifacts(); ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME ); for (Artifact artifact : dependencies) { if ( !artifact.isOptional() && filter.include( artifact ) ) { String type = a...
/** * Copies all runtime dependencies to AMP lib. By default transitive runtime dependencies are retrieved. * This behavior can be configured via the transitive parameter * @throws MojoExecutionException */
Copies all runtime dependencies to AMP lib. By default transitive runtime dependencies are retrieved. This behavior can be configured via the transitive parameter
gatherDependencies
{ "repo_name": "loftuxab/alfresco-sdk", "path": "plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/AmpMojo.java", "license": "apache-2.0", "size": 12350 }
[ "java.io.File", "java.io.IOException", "java.util.Set", "org.apache.commons.io.FileUtils", "org.apache.maven.artifact.Artifact", "org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter", "org.apache.maven.plugin.MojoExecutionException" ]
import java.io.File; import java.io.IOException; import java.util.Set; import org.apache.commons.io.FileUtils; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter; import org.apache.maven.plugin.MojoExecutionException;
import java.io.*; import java.util.*; import org.apache.commons.io.*; import org.apache.maven.artifact.*; import org.apache.maven.artifact.resolver.filter.*; import org.apache.maven.plugin.*;
[ "java.io", "java.util", "org.apache.commons", "org.apache.maven" ]
java.io; java.util; org.apache.commons; org.apache.maven;
759,533
GradleExecuter inDirectory(File directory);
GradleExecuter inDirectory(File directory);
/** * Sets the working directory to use. Defaults to the test's temporary directory. */
Sets the working directory to use. Defaults to the test's temporary directory
inDirectory
{ "repo_name": "gradle/gradle", "path": "subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleExecuter.java", "license": "apache-2.0", "size": 17560 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,036,357
@Override protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); mc.getTextureManager().bindTexture(GrinderGuiTextures); int marginHorizontal = (widt...
void function(float partialTicks, int mouseX, int mouseY) { GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); mc.getTextureManager().bindTexture(GrinderGuiTextures); int marginHorizontal = (width - xSize) / 2; int marginVertical = (height - ySize) / 2; drawTexturedModalRect(marginHorizontal, marginVertical, 0, 0, xSize, yS...
/** * Args : renderPartialTicks, mouseX, mouseY */
Args : renderPartialTicks, mouseX, mouseY
drawGuiContainerBackgroundLayer
{ "repo_name": "Deax-Ent/EriCraft2", "path": "src/main/java/com/deaxent/ec2/blocks/Grinder/GuiGrinder.java", "license": "gpl-3.0", "size": 3485 }
[ "java.util.ArrayList", "java.util.List", "net.minecraft.client.renderer.GlStateManager" ]
import java.util.ArrayList; import java.util.List; import net.minecraft.client.renderer.GlStateManager;
import java.util.*; import net.minecraft.client.renderer.*;
[ "java.util", "net.minecraft.client" ]
java.util; net.minecraft.client;
1,726,759
public List getBasicInfoOfAllPublishedAssessments(String agentId, String orderBy, boolean ascending, String siteId) { try { PublishedAssessmentService service = new PublishedAssessmentService(); return service.getBasicInfoOfAllPublishedAssessments( agentId, orderBy, ascending, siteId)...
List function(String agentId, String orderBy, boolean ascending, String siteId) { try { PublishedAssessmentService service = new PublishedAssessmentService(); return service.getBasicInfoOfAllPublishedAssessments( agentId, orderBy, ascending, siteId); } catch (Exception ex) { throw new AssessmentServiceException(ex); } ...
/** * Get list of all active published assessments with basic info populated. * @param agentId the agent takign the assessments * @param orderBy sort order field. * @return the list. */
Get list of all active published assessments with basic info populated
getBasicInfoOfAllPublishedAssessments
{ "repo_name": "bzhouduke123/sakai", "path": "samigo/samigo-services/src/java/org/sakaiproject/tool/assessment/shared/impl/assessment/PublishedAssessmentServiceImpl.java", "license": "apache-2.0", "size": 16234 }
[ "java.util.List", "org.sakaiproject.tool.assessment.services.assessment.AssessmentServiceException", "org.sakaiproject.tool.assessment.services.assessment.PublishedAssessmentService" ]
import java.util.List; import org.sakaiproject.tool.assessment.services.assessment.AssessmentServiceException; import org.sakaiproject.tool.assessment.services.assessment.PublishedAssessmentService;
import java.util.*; import org.sakaiproject.tool.assessment.services.assessment.*;
[ "java.util", "org.sakaiproject.tool" ]
java.util; org.sakaiproject.tool;
2,217,139
public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.put(key, value); return this; }
Builder function(String key, Object value) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.put(key, value); return this; }
/** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original * map. See {@link CardCreateParams.Shipping.Address#extraParams} for the field * documentation. */
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See <code>CardCreateParams.Shipping.Address#extraParams</code> for the field documentation
putExtraParam
{ "repo_name": "stripe/stripe-java", "path": "src/main/java/com/stripe/param/issuing/CardCreateParams.java", "license": "mit", "size": 132744 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
263,703
@Override public QuotaListResponse list(String serverName) throws IOException, ServiceException, ParserConfigurationException, SAXException { // Validate if (serverName == null) { throw new NullPointerException("serverName"); } // Tracing boolean shou...
QuotaListResponse function(String serverName) throws IOException, ServiceException, ParserConfigurationException, SAXException { if (serverName == null) { throw new NullPointerException(STR); } boolean shouldTrace = CloudTracing.getIsEnabled(); String invocationId = null; if (shouldTrace) { invocationId = Long.toString...
/** * Returns a list of quotas from the server. * * @param serverName Required. The name of the Azure SQL Database Server * from which to get the quotas. * @throws IOException Signals that an I/O exception of some sort has * occurred. This class is the general class of exceptions produced by ...
Returns a list of quotas from the server
list
{ "repo_name": "flydream2046/azure-sdk-for-java", "path": "service-management/azure-svc-mgmt-sql/src/main/java/com/microsoft/windowsazure/management/sql/QuotaOperationsImpl.java", "license": "apache-2.0", "size": 18875 }
[ "com.microsoft.windowsazure.core.utils.XmlUtility", "com.microsoft.windowsazure.exception.ServiceException", "com.microsoft.windowsazure.management.sql.models.Quota", "com.microsoft.windowsazure.management.sql.models.QuotaListResponse", "com.microsoft.windowsazure.tracing.CloudTracing", "java.io.IOExcepti...
import com.microsoft.windowsazure.core.utils.XmlUtility; import com.microsoft.windowsazure.exception.ServiceException; import com.microsoft.windowsazure.management.sql.models.Quota; import com.microsoft.windowsazure.management.sql.models.QuotaListResponse; import com.microsoft.windowsazure.tracing.CloudTracing; import ...
import com.microsoft.windowsazure.core.utils.*; import com.microsoft.windowsazure.exception.*; import com.microsoft.windowsazure.management.sql.models.*; import com.microsoft.windowsazure.tracing.*; import java.io.*; import java.util.*; import javax.xml.parsers.*; import org.w3c.dom.*; import org.xml.sax.*;
[ "com.microsoft.windowsazure", "java.io", "java.util", "javax.xml", "org.w3c.dom", "org.xml.sax" ]
com.microsoft.windowsazure; java.io; java.util; javax.xml; org.w3c.dom; org.xml.sax;
1,907,580
void validateExpr(SqlNode expr);
void validateExpr(SqlNode expr);
/** * Performs any scope-specific validation of an expression. For example, an * aggregating scope requires that expressions are valid aggregations. The * expression has already been validated. */
Performs any scope-specific validation of an expression. For example, an aggregating scope requires that expressions are valid aggregations. The expression has already been validated
validateExpr
{ "repo_name": "vlsi/calcite", "path": "core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorScope.java", "license": "apache-2.0", "size": 11906 }
[ "org.apache.calcite.sql.SqlNode" ]
import org.apache.calcite.sql.SqlNode;
import org.apache.calcite.sql.*;
[ "org.apache.calcite" ]
org.apache.calcite;
1,154,550
@Override public boolean shouldRetryWithErrorAndTries(int tries, GitHubErrorResponse error, HttpResponse httpResponse) { return false; }
@Override boolean function(int tries, GitHubErrorResponse error, HttpResponse httpResponse) { return false; }
/** * The aim of this method is implement the desired policy and implement a switch case strategy * that depending on the error Type (Http / Business or whatever) could allow us to decide if * we want to retry the request or not * * @param tries time the request has been already retried * @param error...
The aim of this method is implement the desired policy and implement a switch case strategy that depending on the error Type (Http / Business or whatever) could allow us to decide if we want to retry the request or not
shouldRetryWithErrorAndTries
{ "repo_name": "Gigigo-Android-Devs/gigigo-utils-suite", "path": "ggglib/src/test/java/com/gigigo/ggglib/network/context/collaborators/GithubRetryOnErrorPolicyImpl.java", "license": "apache-2.0", "size": 1092 }
[ "com.gigigo.ggglib.network.context.responses.GitHubErrorResponse", "com.gigigo.ggglib.network.responses.HttpResponse" ]
import com.gigigo.ggglib.network.context.responses.GitHubErrorResponse; import com.gigigo.ggglib.network.responses.HttpResponse;
import com.gigigo.ggglib.network.context.responses.*; import com.gigigo.ggglib.network.responses.*;
[ "com.gigigo.ggglib" ]
com.gigigo.ggglib;
68,092
@Override public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException { checkArguments(baseName, locale, format); log.debug("Creating bundle for '" + baseName + "', " + loc...
ResourceBundle function(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException { checkArguments(baseName, locale, format); log.debug(STR + baseName + STR + locale + STR + format + STR + reload); String bundleName = toBundleNa...
/** * Don't look in the class path, look in the current servlet context, in * the bundle directory under the theme directory and in the bundle * directory under the application directory. */
Don't look in the class path, look in the current servlet context, in the bundle directory under the theme directory and in the bundle directory under the application directory
newBundle
{ "repo_name": "tetherless-world/dco-vivo", "path": "src/edu/cornell/mannlib/vitro/webapp/i18n/I18n.java", "license": "lgpl-3.0", "size": 10042 }
[ "java.io.IOException", "java.util.Locale", "java.util.ResourceBundle" ]
import java.io.IOException; import java.util.Locale; import java.util.ResourceBundle;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
138,251
@Nullable public static List<DruidExpression> toDruidExpressions( final PlannerContext plannerContext, final RowSignature rowSignature, final List<RexNode> rexNodes ) { final List<DruidExpression> retVal = new ArrayList<>(rexNodes.size()); for (RexNode rexNode : rexNodes) { final...
static List<DruidExpression> function( final PlannerContext plannerContext, final RowSignature rowSignature, final List<RexNode> rexNodes ) { final List<DruidExpression> retVal = new ArrayList<>(rexNodes.size()); for (RexNode rexNode : rexNodes) { final DruidExpression druidExpression = toDruidExpression(plannerContext...
/** * Translate a list of Calcite {@code RexNode} to Druid expressions. * * @param plannerContext SQL planner context * @param rowSignature signature of the rows to be extracted from * @param rexNodes list of Calcite expressions meant to be applied on top of the rows * * @return list of Dru...
Translate a list of Calcite RexNode to Druid expressions
toDruidExpressions
{ "repo_name": "andy256/druid", "path": "sql/src/main/java/io/druid/sql/calcite/expression/Expressions.java", "license": "apache-2.0", "size": 19762 }
[ "io.druid.sql.calcite.planner.PlannerContext", "io.druid.sql.calcite.table.RowSignature", "java.util.ArrayList", "java.util.List", "org.apache.calcite.rex.RexNode" ]
import io.druid.sql.calcite.planner.PlannerContext; import io.druid.sql.calcite.table.RowSignature; import java.util.ArrayList; import java.util.List; import org.apache.calcite.rex.RexNode;
import io.druid.sql.calcite.planner.*; import io.druid.sql.calcite.table.*; import java.util.*; import org.apache.calcite.rex.*;
[ "io.druid.sql", "java.util", "org.apache.calcite" ]
io.druid.sql; java.util; org.apache.calcite;
343,348
@Override public void setContainerDataSource(Container newDataSource) { if (newDataSource == null) { newDataSource = new IndexedContainer(); } getCaptionChangeListener().clear(); if (items != newDataSource) { // Removes listeners from the old datas...
void function(Container newDataSource) { if (newDataSource == null) { newDataSource = new IndexedContainer(); } getCaptionChangeListener().clear(); if (items != newDataSource) { if (items != null) { if (items instanceof Container.ItemSetChangeNotifier) { ((Container.ItemSetChangeNotifier) items) .removeItemSetChangeLis...
/** * Sets the Container that serves as the data source of the viewer. * * As a side-effect the fields value (selection) is set to null due old * selection not necessary exists in new Container. * * @see com.vaadin.data.Container.Viewer#setContainerDataSource(Container) * * @p...
Sets the Container that serves as the data source of the viewer. As a side-effect the fields value (selection) is set to null due old selection not necessary exists in new Container
setContainerDataSource
{ "repo_name": "jdahlstrom/vaadin.react", "path": "server/src/main/java/com/vaadin/ui/AbstractSelect.java", "license": "apache-2.0", "size": 76957 }
[ "com.vaadin.data.Container", "com.vaadin.data.util.IndexedContainer" ]
import com.vaadin.data.Container; import com.vaadin.data.util.IndexedContainer;
import com.vaadin.data.*; import com.vaadin.data.util.*;
[ "com.vaadin.data" ]
com.vaadin.data;
295,528
azure.privateDnsZones().manager().serviceClient().getPrivateZones().list(null, Context.NONE); }
azure.privateDnsZones().manager().serviceClient().getPrivateZones().list(null, Context.NONE); }
/** * Sample code: GET Private DNS Zone by Subscription. * * @param azure The entry point for accessing resource management APIs in Azure. */
Sample code: GET Private DNS Zone by Subscription
gETPrivateDNSZoneBySubscription
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/privatedns/generated/PrivateZonesListSamples.java", "license": "mit", "size": 885 }
[ "com.azure.core.util.Context" ]
import com.azure.core.util.Context;
import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
1,700,768
private void check203UpgradeFailure(int logVersion, Throwable e) throws IOException { // 0.20.203 version version has conflicting opcodes with the later releases. // The editlog must be emptied by restarting the namenode, before proceeding // with the upgrade. if (Storage.is203LayoutVersion(logV...
void function(int logVersion, Throwable e) throws IOException { if (Storage.is203LayoutVersion(logVersion) && logVersion != HdfsServerConstants.NAMENODE_LAYOUT_VERSION) { String msg = STR + logVersion + STR + STR + STR; throw new IOException(msg, e); } }
/** * Throw appropriate exception during upgrade from 203, when editlog loading * could fail due to opcode conflicts. */
Throw appropriate exception during upgrade from 203, when editlog loading could fail due to opcode conflicts
check203UpgradeFailure
{ "repo_name": "steveloughran/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java", "license": "apache-2.0", "size": 59503 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.server.common.HdfsServerConstants", "org.apache.hadoop.hdfs.server.common.Storage" ]
import java.io.IOException; import org.apache.hadoop.hdfs.server.common.HdfsServerConstants; import org.apache.hadoop.hdfs.server.common.Storage;
import java.io.*; import org.apache.hadoop.hdfs.server.common.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
854,740
private State2 handleParam (final String ns, final String lnam , final String qnam, final Attributes atts) throws SAXException { State2 ret = null; final boolean inObject = fObjectParent.size() >= 2 && fObjectParent.get(fObjectParent.size() - 2).booleanValue(); ...
State2 function (final String ns, final String lnam , final String qnam, final Attributes atts) throws SAXException { State2 ret = null; final boolean inObject = fObjectParent.size() >= 2 && fObjectParent.get(fObjectParent.size() - 2).booleanValue(); done : if (inObject && "param".equals(lnam)) { final String nameAttri...
/** * Handle xhtml:param */
Handle xhtml:param
handleParam
{ "repo_name": "joansmith/orbeon-forms", "path": "src/main/java/org/orbeon/oxf/processor/converter/AbstractRewrite.java", "license": "lgpl-2.1", "size": 39658 }
[ "org.orbeon.oxf.pipeline.api.ExternalContext", "org.orbeon.oxf.util.ScalaUtils", "org.xml.sax.Attributes", "org.xml.sax.SAXException" ]
import org.orbeon.oxf.pipeline.api.ExternalContext; import org.orbeon.oxf.util.ScalaUtils; import org.xml.sax.Attributes; import org.xml.sax.SAXException;
import org.orbeon.oxf.pipeline.api.*; import org.orbeon.oxf.util.*; import org.xml.sax.*;
[ "org.orbeon.oxf", "org.xml.sax" ]
org.orbeon.oxf; org.xml.sax;
1,483,711
public IndexBuilder getBuilderForTesting() { return this.builder.getBuilderForTesting(); }
IndexBuilder function() { return this.builder.getBuilderForTesting(); }
/** * Exposed for testing! * @return the currently instantiated index builder */
Exposed for testing
getBuilderForTesting
{ "repo_name": "jffnothing/phoenix-4.0.0-incubating", "path": "phoenix-core/src/main/java/org/apache/phoenix/hbase/index/Indexer.java", "license": "apache-2.0", "size": 26572 }
[ "org.apache.phoenix.hbase.index.builder.IndexBuilder" ]
import org.apache.phoenix.hbase.index.builder.IndexBuilder;
import org.apache.phoenix.hbase.index.builder.*;
[ "org.apache.phoenix" ]
org.apache.phoenix;
2,086,489
public static void insertGroupRecord(Context context, Uri uri, String key, String value) { ContentValues values = new ContentValues(); values.put(key, value); context.getContentResolver().insert(DatabaseConstants.CONTENT_URI, values); }
static void function(Context context, Uri uri, String key, String value) { ContentValues values = new ContentValues(); values.put(key, value); context.getContentResolver().insert(DatabaseConstants.CONTENT_URI, values); }
/** * * method to insert Group Name in the table "tableGroup" * * @param context * @param uri * @param key * @param value */
method to insert Group Name in the table "tableGroup"
insertGroupRecord
{ "repo_name": "gscreativelab/BTE_Android", "path": "app/src/main/java/com/cts/jnjbridgetoemploymentpoc/database/DataBaseManager.java", "license": "mit", "size": 13649 }
[ "android.content.ContentValues", "android.content.Context", "android.net.Uri", "com.cts.jnjbridgetoemploymentpoc.utils.DatabaseConstants" ]
import android.content.ContentValues; import android.content.Context; import android.net.Uri; import com.cts.jnjbridgetoemploymentpoc.utils.DatabaseConstants;
import android.content.*; import android.net.*; import com.cts.jnjbridgetoemploymentpoc.utils.*;
[ "android.content", "android.net", "com.cts.jnjbridgetoemploymentpoc" ]
android.content; android.net; com.cts.jnjbridgetoemploymentpoc;
2,645,265
public static <T extends IHTMLElement> T findElementById(Class<T> type, IHTMLContext context, String elementID) { IHTMLElement element = findElementAndIdentify(type, context, createUnqualifiedElementByID(context, elementID), true); if( element == null ) { return null; } else if( type.isInstanc...
static <T extends IHTMLElement> T function(Class<T> type, IHTMLContext context, String elementID) { IHTMLElement element = findElementAndIdentify(type, context, createUnqualifiedElementByID(context, elementID), true); if( element == null ) { return null; } else if( type.isInstance(element) ) { return type.cast(element)...
/** * Find an element by ID in the given context of a specific type. * * @param type * @param context * @param id * @return specific HTMLElement object */
Find an element by ID in the given context of a specific type
findElementById
{ "repo_name": "noushadali/uiunit-core", "path": "src/java/com/cordys/cm/uiunit/elements/finder/ElementFinder.java", "license": "apache-2.0", "size": 14519 }
[ "com.cordys.cm.uiunit.elements.html.IHTMLElement", "com.cordys.cm.uiunit.exceptions.UIUnitException", "com.cordys.cm.uiunit.framework.IHTMLContext", "com.cordys.cm.uiunit.message.Messages" ]
import com.cordys.cm.uiunit.elements.html.IHTMLElement; import com.cordys.cm.uiunit.exceptions.UIUnitException; import com.cordys.cm.uiunit.framework.IHTMLContext; import com.cordys.cm.uiunit.message.Messages;
import com.cordys.cm.uiunit.elements.html.*; import com.cordys.cm.uiunit.exceptions.*; import com.cordys.cm.uiunit.framework.*; import com.cordys.cm.uiunit.message.*;
[ "com.cordys.cm" ]
com.cordys.cm;
1,730,002
@Override public DataTable generateDataTable(Query query, HttpServletRequest request) throws DataSourceException { String url = request.getParameter(URL_PARAM_NAME); if (StringUtils.isEmpty(url)) { log.error("url parameter not provided."); throw new DataSourceException(ReasonType.INVALID_R...
DataTable function(Query query, HttpServletRequest request) throws DataSourceException { String url = request.getParameter(URL_PARAM_NAME); if (StringUtils.isEmpty(url)) { log.error(STR); throw new DataSourceException(ReasonType.INVALID_REQUEST, STR); } Reader reader; try { reader = new BufferedReader(new InputStreamRe...
/** * Generates the data table. * This servlet assumes a special parameter that contains the CSV URL from which to load * the data. */
Generates the data table. This servlet assumes a special parameter that contains the CSV URL from which to load the data
generateDataTable
{ "repo_name": "dzxdzx1987/GoogleCharts", "path": "examples/src/java/CsvDataSourceServlet.java", "license": "apache-2.0", "size": 4375 }
[ "com.google.visualization.datasource.DataSourceHelper", "com.google.visualization.datasource.base.DataSourceException", "com.google.visualization.datasource.base.ReasonType", "com.google.visualization.datasource.datatable.DataTable", "com.google.visualization.datasource.query.Query", "com.google.visualiza...
import com.google.visualization.datasource.DataSourceHelper; import com.google.visualization.datasource.base.DataSourceException; import com.google.visualization.datasource.base.ReasonType; import com.google.visualization.datasource.datatable.DataTable; import com.google.visualization.datasource.query.Query; import com...
import com.google.visualization.datasource.*; import com.google.visualization.datasource.base.*; import com.google.visualization.datasource.datatable.*; import com.google.visualization.datasource.query.*; import com.google.visualization.datasource.util.*; import com.ibm.icu.util.*; import java.io.*; import java.net.*; ...
[ "com.google.visualization", "com.ibm.icu", "java.io", "java.net", "javax.servlet", "org.apache.commons" ]
com.google.visualization; com.ibm.icu; java.io; java.net; javax.servlet; org.apache.commons;
410,989