method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public EventThread getControlPointEventThread()
{
return controlPointEventThread;
} | EventThread function() { return controlPointEventThread; } | /**
* Retrieves the controlPointEventThread.
*
* @return The controlPointEventThread
*/ | Retrieves the controlPointEventThread | getControlPointEventThread | {
"repo_name": "fraunhoferfokus/fokus-upnp",
"path": "upnp-core/src/main/java/de/fraunhofer/fokus/upnp/core/control_point/ControlPoint.java",
"license": "gpl-3.0",
"size": 43538
} | [
"de.fraunhofer.fokus.upnp.util.threads.EventThread"
] | import de.fraunhofer.fokus.upnp.util.threads.EventThread; | import de.fraunhofer.fokus.upnp.util.threads.*; | [
"de.fraunhofer.fokus"
] | de.fraunhofer.fokus; | 2,591,743 |
private ConnectableSegment getUnprocessed(final List<ConnectableSegment> segments) {
for (final ConnectableSegment segment : segments) {
if (!segment.isProcessed()) {
return segment;
}
}
return null;
} | ConnectableSegment function(final List<ConnectableSegment> segments) { for (final ConnectableSegment segment : segments) { if (!segment.isProcessed()) { return segment; } } return null; } | /** Get first unprocessed segment from a list.
* @param segments segments list
* @return first segment that has not been processed yet
* or null if all segments have been processed
*/ | Get first unprocessed segment from a list | getUnprocessed | {
"repo_name": "najibghadri/NeuralNetworkSimulator",
"path": "src/org/apache/commons/math3/geometry/euclidean/twod/PolygonsSet.java",
"license": "mit",
"size": 48264
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,709,704 |
public Cursor getAllAlbumsOrderByName() {
String selectQuery = "SELECT DISTINCT(" + SONG_ALBUM + "), " +
_ID + ", " + SONG_ARTIST + ", " + SONG_FILE_PATH + ", " +
SONG_ALBUM_ART_PATH + ", " + SONG_SOURCE + ", " + SONG_ALBUM_ARTIST +
" FROM " + MUSIC_LIBRARY_TABLE + " WHERE " +
... | Cursor function() { String selectQuery = STR + SONG_ALBUM + STR + _ID + STR + SONG_ARTIST + STR + SONG_FILE_PATH + STR + SONG_ALBUM_ART_PATH + STR + SONG_SOURCE + STR + SONG_ALBUM_ARTIST + STR + MUSIC_LIBRARY_TABLE + STR + BLACKLIST_STATUS + "=" + "'" + "0" + "'" + STR + SONG_ALBUM + STR + SONG_ALBUM + STR; return getD... | /**
* Returns a list of all the albums sorted by name.
*/ | Returns a list of all the albums sorted by name | getAllAlbumsOrderByName | {
"repo_name": "yongjiliu/MusicPlayer",
"path": "ACEMusicPlayer/src/main/java/com/aniruddhc/acemusic/player/DBHelpers/DBAccessHelper.java",
"license": "gpl-2.0",
"size": 72380
} | [
"android.database.Cursor"
] | import android.database.Cursor; | import android.database.*; | [
"android.database"
] | android.database; | 1,181,019 |
public TldExtensionType<T> removeId()
{
childNode.removeAttribute("id");
return this;
} | TldExtensionType<T> function() { childNode.removeAttribute("id"); return this; } | /**
* Removes the <code>id</code> attribute
* @return the current instance of <code>TldExtensionType<T></code>
*/ | Removes the <code>id</code> attribute | removeId | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/jsptaglibrary21/TldExtensionTypeImpl.java",
"license": "epl-1.0",
"size": 6210
} | [
"org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.TldExtensionType"
] | import org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.TldExtensionType; | import org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.*; | [
"org.jboss.shrinkwrap"
] | org.jboss.shrinkwrap; | 2,144,983 |
public void endTransaction(ObjectConnection con) {
try {
if (con.isOpen()) {
con.rollback();
con.close();
}
} catch (RepositoryException e) {
logger.error(e.toString(), e);
}
} | void function(ObjectConnection con) { try { if (con.isOpen()) { con.rollback(); con.close(); } } catch (RepositoryException e) { logger.error(e.toString(), e); } } | /**
* Request has been fully read and response has been fully written.
*/ | Request has been fully read and response has been fully written | endTransaction | {
"repo_name": "edwardsph/callimachus",
"path": "src/org/callimachusproject/server/chain/TransactionHandler.java",
"license": "apache-2.0",
"size": 9727
} | [
"org.openrdf.repository.RepositoryException",
"org.openrdf.repository.object.ObjectConnection"
] | import org.openrdf.repository.RepositoryException; import org.openrdf.repository.object.ObjectConnection; | import org.openrdf.repository.*; import org.openrdf.repository.object.*; | [
"org.openrdf.repository"
] | org.openrdf.repository; | 327,779 |
protected String getArrayBracketsToken(EObject semanticObject, RuleCall ruleCall, INode node) {
if (node != null)
return getTokenText(node);
return "[]";
}
| String function(EObject semanticObject, RuleCall ruleCall, INode node) { if (node != null) return getTokenText(node); return "[]"; } | /**
* ArrayBrackets :
* '[' ']'
* ;
*/ | ArrayBrackets : '[' ']' | getArrayBracketsToken | {
"repo_name": "LorenzoBettini/packtpub-xtext-book-examples",
"path": "org.example.xbase.expressions/src-gen/org/example/xbase/expressions/serializer/ExpressionsSyntacticSequencer.java",
"license": "epl-1.0",
"size": 13211
} | [
"org.eclipse.emf.ecore.EObject",
"org.eclipse.xtext.RuleCall",
"org.eclipse.xtext.nodemodel.INode"
] | import org.eclipse.emf.ecore.EObject; import org.eclipse.xtext.RuleCall; import org.eclipse.xtext.nodemodel.INode; | import org.eclipse.emf.ecore.*; import org.eclipse.xtext.*; import org.eclipse.xtext.nodemodel.*; | [
"org.eclipse.emf",
"org.eclipse.xtext"
] | org.eclipse.emf; org.eclipse.xtext; | 1,421,989 |
public Map<Integer, Field> asMap() {
getFieldBuilder(0); // Force lastField to be built.
return Collections.unmodifiableMap(fields);
} | Map<Integer, Field> function() { getFieldBuilder(0); return Collections.unmodifiableMap(fields); } | /**
* Get all present {@code Field}s as an immutable {@code Map}. If more
* fields are added, the changes may or may not be reflected in this map.
*/ | Get all present Fields as an immutable Map. If more fields are added, the changes may or may not be reflected in this map | asMap | {
"repo_name": "spotify/ffwd-java",
"path": "protobuf250/src/main/java/com/spotify/ffwd/protobuf250/UnknownFieldSet.java",
"license": "apache-2.0",
"size": 32633
} | [
"java.util.Collections",
"java.util.Map"
] | import java.util.Collections; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,784,308 |
public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
{
for (int var4 = 0; var4 < 4; ++var4)
{
par3List.add(new ItemStack(par1, 1, var4));
}
} | void function(int par1, CreativeTabs par2CreativeTabs, List par3List) { for (int var4 = 0; var4 < 4; ++var4) { par3List.add(new ItemStack(par1, 1, var4)); } } | /**
* returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
*/ | returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks) | getSubBlocks | {
"repo_name": "LolololTrololol/InsertNameHere",
"path": "minecraft/net/minecraft/src/BlockStoneBrick.java",
"license": "gpl-2.0",
"size": 1967
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 64,665 |
@Override
public List<Integer> call()
{
// initial value for shortestTour and its distance.
List<Integer> shortestTour = addPrefix( new LinkedList<>( partialCityList ) );
double shortestTourDistance = tourDistance( shortestTour );
// Use my permutation enumerator
... | List<Integer> function() { List<Integer> shortestTour = addPrefix( new LinkedList<>( partialCityList ) ); double shortestTourDistance = tourDistance( shortestTour ); Permutation<Integer> permutationEnumerator = new Permutation<>( partialCityList ); for ( List<Integer> subtour = permutationEnumerator.next(); subtour != ... | /**
* Compute a tour of minimum cost.
* @return a tour of minimum cost.
*/ | Compute a tour of minimum cost | call | {
"repo_name": "PeterCappello/cs290bHw2",
"path": "Cs290bHw2/src/applications/euclideantsp/TaskTspEuclidean.java",
"license": "mit",
"size": 5214
} | [
"java.util.ArrayList",
"java.util.LinkedList",
"java.util.List"
] | import java.util.ArrayList; import java.util.LinkedList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 46,027 |
public BrokeredMessage setDate(Date date) {
this.date = date;
return this;
} | BrokeredMessage function(Date date) { this.date = date; return this; } | /**
* Sets the date/time of the message.
*
* @param date
* A <code>Date</code> object that represents the date/time of
* the object.
*
* @return A <code>Message</code> object that represents the updated
* message.
*/ | Sets the date/time of the message | setDate | {
"repo_name": "manikandan-palaniappan/azure-sdk-for-java",
"path": "serviceBus/src/main/java/com/microsoft/windowsazure/services/servicebus/models/BrokeredMessage.java",
"license": "apache-2.0",
"size": 13946
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 920,667 |
public String convert(Object object, int max_depth) {
if (object == null) {
return null;
}
try {
Object converted = convertObject(object, max_depth);
if (converted instanceof JSONObject || converted instanceof JSONArray || converted instanceof String
... | String function(Object object, int max_depth) { if (object == null) { return null; } try { Object converted = convertObject(object, max_depth); if (converted instanceof JSONObject converted instanceof JSONArray converted instanceof String converted instanceof Number) { return converted.toString(); } return String.value... | /**
* Convert an object that may or may not be a JSONArray or JSONObject into
* its JSON string representation, handling the case where it is neither in
* a graceful way.
*
* @param object
* which needs conversion
* @return the JSON string representation of object
*/ | Convert an object that may or may not be a JSONArray or JSONObject into its JSON string representation, handling the case where it is neither in a graceful way | convert | {
"repo_name": "jalian-systems/marathonv5",
"path": "marathon-javafx/marathon-javafx-recorder/src/main/java/net/sourceforge/marathon/javafxrecorder/util/BeanToJsonConverter.java",
"license": "apache-2.0",
"size": 8293
} | [
"net.sourceforge.marathon.json.JSONArray",
"net.sourceforge.marathon.json.JSONObject"
] | import net.sourceforge.marathon.json.JSONArray; import net.sourceforge.marathon.json.JSONObject; | import net.sourceforge.marathon.json.*; | [
"net.sourceforge.marathon"
] | net.sourceforge.marathon; | 915,347 |
protected Dimension getDisplaySize()
{
Dimension dim = new Dimension();
ListCellRenderer renderer = comboBox.getRenderer();
if (renderer == null)
{
renderer = DEFAULT_RENDERER;
}
Object prototype = comboBox.getPrototypeDisplayValue();
if (prototype != null)
{
... | Dimension function() { Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); if (renderer == null) { renderer = DEFAULT_RENDERER; } Object prototype = comboBox.getPrototypeDisplayValue(); if (prototype != null) { Component comp = renderer.getListCellRendererComponent(listBox, prototype, -... | /**
* Returns the size of the display area for the combo box. This size will be
* the size of the combo box, not including the arrowButton.
*
* @return The size of the display area for the combo box.
*/ | Returns the size of the display area for the combo box. This size will be the size of the combo box, not including the arrowButton | getDisplaySize | {
"repo_name": "taciano-perez/JamVM-PH",
"path": "src/classpath/javax/swing/plaf/basic/BasicComboBoxUI.java",
"license": "gpl-2.0",
"size": 40740
} | [
"java.awt.Component",
"java.awt.Dimension",
"javax.swing.ComboBoxModel",
"javax.swing.ListCellRenderer"
] | import java.awt.Component; import java.awt.Dimension; import javax.swing.ComboBoxModel; import javax.swing.ListCellRenderer; | import java.awt.*; import javax.swing.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 1,670,215 |
private static DhisHttpResponse processResponse( String requestURL, String username, HttpResponse response )
throws Exception
{
DhisHttpResponse dhisHttpResponse;
String output;
int statusCode;
if ( response != null )
{
HttpEntity responseEntity = resp... | static DhisHttpResponse function( String requestURL, String username, HttpResponse response ) throws Exception { DhisHttpResponse dhisHttpResponse; String output; int statusCode; if ( response != null ) { HttpEntity responseEntity = response.getEntity(); if ( responseEntity != null && responseEntity.getContent() != nul... | /**
* Processes the HttpResponse to create a DHisHttpResponse object.
*
* @throws IOException
* </pre>
*/ | Processes the HttpResponse to create a DHisHttpResponse object | processResponse | {
"repo_name": "dhis2/dhis2-core",
"path": "dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/HttpUtils.java",
"license": "bsd-3-clause",
"size": 10905
} | [
"java.io.InputStream",
"java.nio.charset.StandardCharsets",
"org.apache.commons.io.IOUtils",
"org.apache.http.Header",
"org.apache.http.HttpEntity",
"org.apache.http.HttpResponse",
"org.apache.http.client.entity.GzipDecompressingEntity",
"org.apache.http.util.EntityUtils"
] | import java.io.InputStream; import java.nio.charset.StandardCharsets; import org.apache.commons.io.IOUtils; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.entity.GzipDecompressingEntity; import org.apache.http.util.EntityUtils; | import java.io.*; import java.nio.charset.*; import org.apache.commons.io.*; import org.apache.http.*; import org.apache.http.client.entity.*; import org.apache.http.util.*; | [
"java.io",
"java.nio",
"org.apache.commons",
"org.apache.http"
] | java.io; java.nio; org.apache.commons; org.apache.http; | 2,096,135 |
Lock getUpdateLock() {
return updateLock;
}
private final int lowerBound;
private final int upperBound;
private final PriorityQueue<Channel> orderedChannels;
private final HashSet<Channel> set;
public ChannelPrioritySet(
final int initialCapacity,
final int lowerBound,
... | Lock getUpdateLock() { return updateLock; } private final int lowerBound; private final int upperBound; private final PriorityQueue<Channel> orderedChannels; private final HashSet<Channel> set; public ChannelPrioritySet( final int initialCapacity, final int lowerBound, final int upperBound, final Comparator<? super Cha... | /**
* Expose update lock for deadlock removing.
*
* @return update lock
* */ | Expose update lock for deadlock removing | getUpdateLock | {
"repo_name": "uwescience/myria",
"path": "src/edu/washington/escience/myria/parallel/ipc/ChannelPrioritySet.java",
"license": "bsd-3-clause",
"size": 9665
} | [
"java.util.Comparator",
"java.util.HashSet",
"java.util.PriorityQueue",
"java.util.concurrent.locks.Lock",
"org.jboss.netty.channel.Channel"
] | import java.util.Comparator; import java.util.HashSet; import java.util.PriorityQueue; import java.util.concurrent.locks.Lock; import org.jboss.netty.channel.Channel; | import java.util.*; import java.util.concurrent.locks.*; import org.jboss.netty.channel.*; | [
"java.util",
"org.jboss.netty"
] | java.util; org.jboss.netty; | 1,457,384 |
public com.mozu.api.contracts.customer.B2BUserCollection getUsers(Integer accountId, Integer startIndex, Integer pageSize, String sortBy, String filter, String q, Integer qLimit, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.B2BUserCollection> client = com.mozu.api.clients.c... | com.mozu.api.contracts.customer.B2BUserCollection function(Integer accountId, Integer startIndex, Integer pageSize, String sortBy, String filter, String q, Integer qLimit, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.customer.B2BUserCollection> client = com.mozu.api.clients.commerce.custo... | /**
*
* <p><pre><code>
* B2BAccount b2baccount = new B2BAccount();
* B2BUserCollection b2BUserCollection = b2baccount.getUsers( accountId, startIndex, pageSize, sortBy, filter, q, qLimit, responseFields);
* </code></pre></p>
* @param accountId Unique identifier of the customer account.
* @param fi... | <code><code> B2BAccount b2baccount = new B2BAccount(); B2BUserCollection b2BUserCollection = b2baccount.getUsers( accountId, startIndex, pageSize, sortBy, filter, q, qLimit, responseFields); </code></code> | getUsers | {
"repo_name": "Mozu/mozu-java",
"path": "mozu-java-core/src/main/java/com/mozu/api/resources/commerce/customer/B2BAccountResource.java",
"license": "mit",
"size": 29834
} | [
"com.mozu.api.MozuClient"
] | import com.mozu.api.MozuClient; | import com.mozu.api.*; | [
"com.mozu.api"
] | com.mozu.api; | 2,089,986 |
EReference getDocumentRoot_Length(); | EReference getDocumentRoot_Length(); | /**
* Returns the meta object for the containment reference '{@link org.w3._2001.schema.DocumentRoot#getLength <em>Length</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Length</em>'.
* @see org.w3._2001.schema.DocumentRoot#getLength()
*... | Returns the meta object for the containment reference '<code>org.w3._2001.schema.DocumentRoot#getLength Length</code>'. | getDocumentRoot_Length | {
"repo_name": "geotools/geotools",
"path": "modules/ogc/net.opengis.wps/src/org/w3/_2001/schema/SchemaPackage.java",
"license": "lgpl-2.1",
"size": 433240
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,878,445 |
public Integer getDay() {
return getFieldValue(Calendar.DAY_OF_MONTH);
} | Integer function() { return getFieldValue(Calendar.DAY_OF_MONTH); } | /**
* Returns the month with 1-index, e.g. 1=the first day of the month
*/ | Returns the month with 1-index, e.g. 1=the first day of the month | getDay | {
"repo_name": "eug48/hapi-fhir",
"path": "hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseDateTimeType.java",
"license": "apache-2.0",
"size": 25323
} | [
"java.util.Calendar"
] | import java.util.Calendar; | import java.util.*; | [
"java.util"
] | java.util; | 1,757,971 |
public IIcon getIcon(int p_149691_1_, int p_149691_2_)
{
return field_149998_a[p_149691_2_ % field_149998_a.length];
} | IIcon function(int p_149691_1_, int p_149691_2_) { return field_149998_a[p_149691_2_ % field_149998_a.length]; } | /**
* Gets the block's texture. Args: side, meta
*/ | Gets the block's texture. Args: side, meta | getIcon | {
"repo_name": "mviitanen/marsmod",
"path": "mcp/src/minecraft/net/minecraft/block/BlockStainedGlass.java",
"license": "gpl-2.0",
"size": 2237
} | [
"net.minecraft.util.IIcon"
] | import net.minecraft.util.IIcon; | import net.minecraft.util.*; | [
"net.minecraft.util"
] | net.minecraft.util; | 434,517 |
EOperation getBoard__SetRamCapacity__int(); | EOperation getBoard__SetRamCapacity__int(); | /**
* Returns the meta object for the '{@link ch.hilbri.assist.model.Board#setRamCapacity(int) <em>Set Ram Capacity</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the '<em>Set Ram Capacity</em>' operation.
* @see ch.hilbri.assist.model.Board#se... | Returns the meta object for the '<code>ch.hilbri.assist.model.Board#setRamCapacity(int) Set Ram Capacity</code>' operation. | getBoard__SetRamCapacity__int | {
"repo_name": "RobertHilbrich/assist",
"path": "ch.hilbri.assist.model/src-gen/ch/hilbri/assist/model/ModelPackage.java",
"license": "gpl-2.0",
"size": 419306
} | [
"org.eclipse.emf.ecore.EOperation"
] | import org.eclipse.emf.ecore.EOperation; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 304,151 |
void setOutput (Writer writer)
throws IOException, IllegalArgumentException, IllegalStateException; | void setOutput (Writer writer) throws IOException, IllegalArgumentException, IllegalStateException; | /**
* Set the output to the given writer.
* <p><b>WARNING</b> no information about encoding is available!
*/ | Set the output to the given writer. WARNING no information about encoding is available | setOutput | {
"repo_name": "ryfx/maps-lib-nutiteq",
"path": "thirdparty/src/org/xmlpull/v1/XmlSerializer.java",
"license": "gpl-2.0",
"size": 14890
} | [
"java.io.IOException",
"java.io.Writer"
] | import java.io.IOException; import java.io.Writer; | import java.io.*; | [
"java.io"
] | java.io; | 2,816,531 |
public static ConcurrentHashMap<String, Long> getLastlogintime() {
return lastLoginTime;
}
| static ConcurrentHashMap<String, Long> function() { return lastLoginTime; } | /**
* Returns the last logged in time.
*
* @return the lastlogintime
*/ | Returns the last logged in time | getLastlogintime | {
"repo_name": "ctsidev/SecureWise",
"path": "wise/src/edu/ucla/wise/admin/AdminUserSession.java",
"license": "bsd-3-clause",
"size": 23138
} | [
"java.util.concurrent.ConcurrentHashMap"
] | import java.util.concurrent.ConcurrentHashMap; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 1,128,932 |
MutablePropertyAccessStrategy newPropertyAccessStrategy(ValueModel domainObjectHolder); | MutablePropertyAccessStrategy newPropertyAccessStrategy(ValueModel domainObjectHolder); | /**
* Return a new <code>MutablePropertyAccessStrategy</code> for the given
* valueModel.
*
* TODO check why this exists and where this is used.
*
* @param domainObjectHolder a <code>ValueModel</code> containing the
* domainObject.
* @return a newly created <code>MutablePropertyAccessStrategy</code>.
... | Return a new <code>MutablePropertyAccessStrategy</code> for the given valueModel. TODO check why this exists and where this is used | newPropertyAccessStrategy | {
"repo_name": "lievendoclo/Valkyrie-RCP",
"path": "valkyrie-rcp-core/src/main/java/org/valkyriercp/binding/MutablePropertyAccessStrategy.java",
"license": "apache-2.0",
"size": 2683
} | [
"org.valkyriercp.binding.value.ValueModel"
] | import org.valkyriercp.binding.value.ValueModel; | import org.valkyriercp.binding.value.*; | [
"org.valkyriercp.binding"
] | org.valkyriercp.binding; | 1,264,992 |
public static boolean isProtected(int mod) {
return Modifier.isProtected(mod);
} | static boolean function(int mod) { return Modifier.isProtected(mod); } | /**
* Returns if modifier is protected. Note that in our case modifier can be mix (public and
* private for example).
*
* @param mod
* Modifier.
* @return If modifier is protected. Note that in our case modifier can be mix (public and
* private for example).
*/ | Returns if modifier is protected. Note that in our case modifier can be mix (public and private for example) | isProtected | {
"repo_name": "ivansenic/inspectIT",
"path": "inspectit.shared.all/src/main/java/rocks/inspectit/shared/all/instrumentation/classcache/Modifiers.java",
"license": "agpl-3.0",
"size": 5210
} | [
"java.lang.reflect.Modifier"
] | import java.lang.reflect.Modifier; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 2,760,860 |
private void initSchedulerFactory(StdSchedulerFactory schedulerFactory) throws SchedulerException, IOException {
Properties mergedProps = new Properties();
if (this.resourceLoader != null) {
mergedProps.setProperty(StdSchedulerFactory.PROP_SCHED_CLASS_LOAD_HELPER_CLASS,
ResourceLoaderClassLoadHelper.clas... | void function(StdSchedulerFactory schedulerFactory) throws SchedulerException, IOException { Properties mergedProps = new Properties(); if (this.resourceLoader != null) { mergedProps.setProperty(StdSchedulerFactory.PROP_SCHED_CLASS_LOAD_HELPER_CLASS, ResourceLoaderClassLoadHelper.class.getName()); } if (this.taskExecut... | /**
* Initialize the given SchedulerFactory, applying locally defined Quartz properties to it.
* @param schedulerFactory the SchedulerFactory to initialize
*/ | Initialize the given SchedulerFactory, applying locally defined Quartz properties to it | initSchedulerFactory | {
"repo_name": "spring-projects/spring-framework",
"path": "spring-context-support/src/main/java/org/springframework/scheduling/quartz/SchedulerFactoryBean.java",
"license": "apache-2.0",
"size": 32162
} | [
"java.io.IOException",
"java.util.Properties",
"org.quartz.SchedulerException",
"org.quartz.impl.StdSchedulerFactory",
"org.quartz.simpl.SimpleThreadPool",
"org.springframework.core.io.support.PropertiesLoaderUtils",
"org.springframework.util.CollectionUtils"
] | import java.io.IOException; import java.util.Properties; import org.quartz.SchedulerException; import org.quartz.impl.StdSchedulerFactory; import org.quartz.simpl.SimpleThreadPool; import org.springframework.core.io.support.PropertiesLoaderUtils; import org.springframework.util.CollectionUtils; | import java.io.*; import java.util.*; import org.quartz.*; import org.quartz.impl.*; import org.quartz.simpl.*; import org.springframework.core.io.support.*; import org.springframework.util.*; | [
"java.io",
"java.util",
"org.quartz",
"org.quartz.impl",
"org.quartz.simpl",
"org.springframework.core",
"org.springframework.util"
] | java.io; java.util; org.quartz; org.quartz.impl; org.quartz.simpl; org.springframework.core; org.springframework.util; | 779,620 |
@Deprecated
public int findNrPrevSteps( StepMeta stepMeta, boolean info ) {
int count = 0;
int i;
for ( i = 0; i < nrTransHops(); i++ ) { // Look at all the hops;
TransHopMeta hi = getTransHop( i );
if ( hi.getToStep() != null && hi.isEnabled() && hi.getToStep().equals( stepMeta ) ) {
... | int function( StepMeta stepMeta, boolean info ) { int count = 0; int i; for ( i = 0; i < nrTransHops(); i++ ) { TransHopMeta hi = getTransHop( i ); if ( hi.getToStep() != null && hi.isEnabled() && hi.getToStep().equals( stepMeta ) ) { if ( info !isStepInformative( stepMeta, hi.getFromStep() ) ) { count++; } } } return ... | /**
* Count the number of previous steps on a certain location taking into account the steps being informational or not.
*
* @param stepMeta
* The name of the step
* @param info
* true if only the informational steps are desired, false otherwise
* @return The number of preceding s... | Count the number of previous steps on a certain location taking into account the steps being informational or not | findNrPrevSteps | {
"repo_name": "dkincade/pentaho-kettle",
"path": "engine/src/main/java/org/pentaho/di/trans/TransMeta.java",
"license": "apache-2.0",
"size": 227503
} | [
"org.pentaho.di.trans.step.StepMeta"
] | import org.pentaho.di.trans.step.StepMeta; | import org.pentaho.di.trans.step.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 634,915 |
private void loadLemmaCacheFile(String cpLocation)
throws FileNotFoundException, IOException {
InputStream inStream = getClass().getResourceAsStream(cpLocation);
if (inStream == null) {
throw new FileNotFoundException("Unable to find: " + cpLocation);
}
BufferedReader br = new BufferedReader(new InputS... | void function(String cpLocation) throws FileNotFoundException, IOException { InputStream inStream = getClass().getResourceAsStream(cpLocation); if (inStream == null) { throw new FileNotFoundException(STR + cpLocation); } BufferedReader br = new BufferedReader(new InputStreamReader(inStream)); lemmaCacheMap = new HashMa... | /**
* Helper method that loads a Lemma cache file.
*
* @param location
*/ | Helper method that loads a Lemma cache file | loadLemmaCacheFile | {
"repo_name": "TCU-MI/ctakes",
"path": "ctakes-lvg/src/main/java/org/apache/ctakes/lvg/ae/LvgBaseTokenAnnotator.java",
"license": "apache-2.0",
"size": 16679
} | [
"gov.nih.nlm.nls.lvg.Lib",
"java.io.BufferedReader",
"java.io.FileNotFoundException",
"java.io.IOException",
"java.io.InputStream",
"java.io.InputStreamReader",
"java.util.HashMap",
"java.util.HashSet",
"java.util.Set",
"java.util.StringTokenizer"
] | import gov.nih.nlm.nls.lvg.Lib; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.HashMap; import java.util.HashSet; import java.util.Set; import java.util.StringTokenizer; | import gov.nih.nlm.nls.lvg.*; import java.io.*; import java.util.*; | [
"gov.nih.nlm",
"java.io",
"java.util"
] | gov.nih.nlm; java.io; java.util; | 2,646,048 |
public Shader loadShader(ShaderKey key); | Shader function(ShaderKey key); | /**
* Loads shader file(s), shouldn't be used by end-user in most cases.
*
* @see AssetManager#loadAsset(com.jme3.asset.AssetKey)
*/ | Loads shader file(s), shouldn't be used by end-user in most cases | loadShader | {
"repo_name": "chototsu/MikuMikuStudio",
"path": "engine/src/core/com/jme3/asset/AssetManager.java",
"license": "bsd-2-clause",
"size": 9150
} | [
"com.jme3.shader.Shader",
"com.jme3.shader.ShaderKey"
] | import com.jme3.shader.Shader; import com.jme3.shader.ShaderKey; | import com.jme3.shader.*; | [
"com.jme3.shader"
] | com.jme3.shader; | 777,124 |
public static List<Integer> randomBinaryRepresentation(int length) {
// random binary list
List<Integer> rList= new ArrayList<Integer> (length);
for (int j=0; j<length; j++) {
rList.add(GeneticAlgorithm.getRandomGenerator().nextInt(2));
}
return rList;
} | static List<Integer> function(int length) { List<Integer> rList= new ArrayList<Integer> (length); for (int j=0; j<length; j++) { rList.add(GeneticAlgorithm.getRandomGenerator().nextInt(2)); } return rList; } | /**
* Returns a representation of a random binary array of length <code>length</code>.
* @param length length of the array
* @return a random binary array of length <code>length</code>
*/ | Returns a representation of a random binary array of length <code>length</code> | randomBinaryRepresentation | {
"repo_name": "happyjack27/autoredistrict",
"path": "src/org/apache/commons/math3/genetics/BinaryChromosome.java",
"license": "gpl-3.0",
"size": 3458
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,184,125 |
private InetAddress getPrimaryIPWindows(String prefix) throws SocketException {
InetAddress ip = null;
Enumeration<NetworkInterface> networks = NetworkInterface.getNetworkInterfaces();
while (networks.hasMoreElements()) {
NetworkInterface network = networks.nextElement();
... | InetAddress function(String prefix) throws SocketException { InetAddress ip = null; Enumeration<NetworkInterface> networks = NetworkInterface.getNetworkInterfaces(); while (networks.hasMoreElements()) { NetworkInterface network = networks.nextElement(); if (network.getName().startsWith(prefix)) { Enumeration<InetAddres... | /**
* Returns ip of the first interface name of which begins with <code>prefix</code>.
*
* @param prefix
* network interface name prefix e.g. eth, wlan
* @return ip of the first interface name of which begins with prefix; null if none found with ip
* @throws SocketException
... | Returns ip of the first interface name of which begins with <code>prefix</code> | getPrimaryIPWindows | {
"repo_name": "MMaiero/kura",
"path": "kura/org.eclipse.kura.core/src/main/java/org/eclipse/kura/core/system/SystemServiceImpl.java",
"license": "epl-1.0",
"size": 48175
} | [
"java.net.InetAddress",
"java.net.NetworkInterface",
"java.net.SocketException",
"java.util.Enumeration"
] | import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.util.Enumeration; | import java.net.*; import java.util.*; | [
"java.net",
"java.util"
] | java.net; java.util; | 904,149 |
protected void addRebalanceBackoffMsPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_InboundEndpoint_rebalanceBackoffMs_feature"),
getString(... | void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EsbPackage.Literals.INBOUND_ENDPOINT__REBALANCE_BACKOFF_MS, true, false, false, ItemPropertyDescr... | /**
* This adds a property descriptor for the Rebalance Backoff Ms feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/ | This adds a property descriptor for the Rebalance Backoff Ms feature. | addRebalanceBackoffMsPropertyDescriptor | {
"repo_name": "nwnpallewela/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/InboundEndpointItemProvider.java",
"license": "apache-2.0",
"size": 165854
} | [
"org.eclipse.emf.edit.provider.ComposeableAdapterFactory",
"org.eclipse.emf.edit.provider.ItemPropertyDescriptor",
"org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage"
] | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage; | import org.eclipse.emf.edit.provider.*; import org.wso2.developerstudio.eclipse.gmf.esb.*; | [
"org.eclipse.emf",
"org.wso2.developerstudio"
] | org.eclipse.emf; org.wso2.developerstudio; | 2,530,661 |
public Map<String,? extends MIBAttributeEntry> addEntries (final Collection<? extends MIBAttributeEntry> entries, final boolean unique) throws IllegalStateException
{
if ((entries != null) && (entries.size() > 0))
{
for (final MIBAttributeEntry e : entries)
{
... | Map<String,? extends MIBAttributeEntry> function (final Collection<? extends MIBAttributeEntry> entries, final boolean unique) throws IllegalStateException { if ((entries != null) && (entries.size() > 0)) { for (final MIBAttributeEntry e : entries) { if (e != null) { final MIBAttributeEntry prev=addEntry(e); if ((prev ... | /**
* Adds all entries to the MIB group
* @param entries entries to be added - may be null/empty
* @param unique if TRUE then throws (@link IllegalStateException) if
* an added entry already exists
* @return updated entries map
* @throws IllegalStateException if an added entry already exis... | Adds all entries to the MIB group | addEntries | {
"repo_name": "lgoldstein/communitychest",
"path": "chest/net/snmp/src/main/java/net/community/chest/net/snmp/MIBGroup.java",
"license": "apache-2.0",
"size": 13332
} | [
"java.util.Collection",
"java.util.Map"
] | import java.util.Collection; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,741,575 |
public void addTxsToBlockMap(Collection<Map.Entry<Sha256Hash, Sha256Hash> > lst)
{
for(Map.Entry<Sha256Hash, Sha256Hash> me : lst)
{
addTxToBlockMap(me.getKey(), me.getValue());
}
} | void function(Collection<Map.Entry<Sha256Hash, Sha256Hash> > lst) { for(Map.Entry<Sha256Hash, Sha256Hash> me : lst) { addTxToBlockMap(me.getKey(), me.getValue()); } } | /**
* If the store has a bulk insert it is best to override this with that
*/ | If the store has a bulk insert it is best to override this with that | addTxsToBlockMap | {
"repo_name": "fireduck64/jelectrum",
"path": "attic/JelectrumDB.java",
"license": "mit",
"size": 3580
} | [
"com.google.bitcoin.core.Sha256Hash",
"java.util.Collection",
"java.util.Map"
] | import com.google.bitcoin.core.Sha256Hash; import java.util.Collection; import java.util.Map; | import com.google.bitcoin.core.*; import java.util.*; | [
"com.google.bitcoin",
"java.util"
] | com.google.bitcoin; java.util; | 1,299,207 |
void addProgressListener(IProgressMonitorWithBlocking monitor) {
listener = monitor;
JobInfo info = getJobInfo(job);
TaskInfo currentTask = info.getTaskInfo();
if (currentTask != null) {
listener.beginTask(currentTaskName, currentTask.totalWork);
listener.internalWorked(currentTask.preWork);
... | void addProgressListener(IProgressMonitorWithBlocking monitor) { listener = monitor; JobInfo info = getJobInfo(job); TaskInfo currentTask = info.getTaskInfo(); if (currentTask != null) { listener.beginTask(currentTaskName, currentTask.totalWork); listener.internalWorked(currentTask.preWork); } } | /**
* Add monitor as another monitor that
*
* @param monitor
*/ | Add monitor as another monitor that | addProgressListener | {
"repo_name": "CohesionForce/eclipse4-parts",
"path": "org.eclipse.e4.ui.part/src/org/eclipse/e4/ui/internal/progress/ProgressManager.java",
"license": "epl-1.0",
"size": 32895
} | [
"org.eclipse.core.runtime.IProgressMonitorWithBlocking"
] | import org.eclipse.core.runtime.IProgressMonitorWithBlocking; | import org.eclipse.core.runtime.*; | [
"org.eclipse.core"
] | org.eclipse.core; | 2,891,231 |
void execute() {
String sCmd = null;
if (4096 <= ifHuge.length()) {
sCmd = ifHuge;
} else {
sCmd = txtCommand.getText();
}
if (sCmd.startsWith("-->>>TEST<<<--")) {
testPerformance();
return;
}
String[] g = n... | void execute() { String sCmd = null; if (4096 <= ifHuge.length()) { sCmd = ifHuge; } else { sCmd = txtCommand.getText(); } if (sCmd.startsWith(STR)) { testPerformance(); return; } String[] g = new String[1]; lTime = System.currentTimeMillis(); try { if (sStatement == null) { return; } sStatement.execute(sCmd); lTime = ... | /**
* Adjust this method for large strings...ie multi megabtypes.
*/ | Adjust this method for large strings...ie multi megabtypes | execute | {
"repo_name": "apavlo/h-store",
"path": "src/hsqldb19b3/org/hsqldb/util/DatabaseManager.java",
"license": "gpl-3.0",
"size": 40060
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 937,231 |
private void generateReferences(EObject eObject, Map<EClass, List<EObject>> allObjectsByEClass) {
for(EReference reference : modelGeneratorHelper.getValidReferences(eObject)) {
for(EClass nextReferenceClass : modelGeneratorHelper.modelGeneratorUtil.getReferenceClasses(reference, allObjectsByEClass.keySet())) {... | void function(EObject eObject, Map<EClass, List<EObject>> allObjectsByEClass) { for(EReference reference : modelGeneratorHelper.getValidReferences(eObject)) { for(EClass nextReferenceClass : modelGeneratorHelper.modelGeneratorUtil.getReferenceClasses(reference, allObjectsByEClass.keySet())) { modelGeneratorHelper.setRe... | /**
* Generates references (no containment references) for an EObject.
* All valid references are set with EObjects generated during the generation process.
*
* @param eObject the EObject to set references for
* @param allObjectsByEClass all possible EObjects that can be referenced, mapped to their EClass
... | Generates references (no containment references) for an EObject. All valid references are set with EObjects generated during the generation process | generateReferences | {
"repo_name": "diverse-project/k3",
"path": "k3-sample/benchVM/fr.inria.diverse.k3.benchVM/src/main/java/fr/inria/diverse/k3/benchVM/synthesis/generic/ModelGenerator.java",
"license": "epl-1.0",
"size": 9059
} | [
"java.util.List",
"java.util.Map",
"org.eclipse.emf.ecore.EClass",
"org.eclipse.emf.ecore.EObject",
"org.eclipse.emf.ecore.EReference"
] | import java.util.List; import java.util.Map; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EReference; | import java.util.*; import org.eclipse.emf.ecore.*; | [
"java.util",
"org.eclipse.emf"
] | java.util; org.eclipse.emf; | 651,404 |
static byte[] toByteArray(InputStream in, int expectedSize) throws IOException {
byte[] bytes = new byte[expectedSize];
int remaining = expectedSize;
while (remaining > 0) {
int off = expectedSize - remaining;
int read = in.read(bytes, off, remaining);
if (read == -1) {
// end o... | static byte[] toByteArray(InputStream in, int expectedSize) throws IOException { byte[] bytes = new byte[expectedSize]; int remaining = expectedSize; while (remaining > 0) { int off = expectedSize - remaining; int read = in.read(bytes, off, remaining); if (read == -1) { return Arrays.copyOf(bytes, off); } remaining -= ... | /**
* Reads all bytes from an input stream into a byte array. The given expected size is used to
* create an initial byte array, but if the actual number of bytes read from the stream differs,
* the correct result will be returned anyway.
*/ | Reads all bytes from an input stream into a byte array. The given expected size is used to create an initial byte array, but if the actual number of bytes read from the stream differs, the correct result will be returned anyway | toByteArray | {
"repo_name": "migue/voltdb",
"path": "third_party/java/src/com/google_voltpatches/common/io/ByteStreams.java",
"license": "agpl-3.0",
"size": 26879
} | [
"java.io.IOException",
"java.io.InputStream",
"java.util.Arrays"
] | import java.io.IOException; import java.io.InputStream; import java.util.Arrays; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 2,239,925 |
protected String lookupNamespacePrefix(String namespaceURI,
Element originalElement) {
String ns = originalElement.getNamespaceURI();
String prefix = originalElement.getPrefix();
if (ns != null
&& ns.equals(namespaceURI)
... | String function(String namespaceURI, Element originalElement) { String ns = originalElement.getNamespaceURI(); String prefix = originalElement.getPrefix(); if (ns != null && ns.equals(namespaceURI) && prefix != null) { String pns = ((AbstractNode) originalElement).lookupNamespaceURI(prefix); if (pns != null && pns.equa... | /**
* Helper function for {@link #lookupPrefix}.
*/ | Helper function for <code>#lookupPrefix</code> | lookupNamespacePrefix | {
"repo_name": "Groostav/CMPT880-term-project",
"path": "intruder/benchs/batik/batik-1.7/sources/org/apache/batik/dom/AbstractNode.java",
"license": "apache-2.0",
"size": 44954
} | [
"org.apache.batik.util.XMLConstants",
"org.w3c.dom.Element",
"org.w3c.dom.NamedNodeMap",
"org.w3c.dom.Node"
] | import org.apache.batik.util.XMLConstants; import org.w3c.dom.Element; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; | import org.apache.batik.util.*; import org.w3c.dom.*; | [
"org.apache.batik",
"org.w3c.dom"
] | org.apache.batik; org.w3c.dom; | 343,516 |
public void loadPresentations()
{
Logger.debug(this + ": Loading presentation extensions", Level.GUI,
this);
IExtensionRegistry registry = Platform.getExtensionRegistry();
IExtensionPoint ep = registry
.getExtensionPoint(IProcedurePresentation.EXTENSION_ID);
IExtension[] extensions = ep.... | void function() { Logger.debug(this + STR, Level.GUI, this); IExtensionRegistry registry = Platform.getExtensionRegistry(); IExtensionPoint ep = registry .getExtensionPoint(IProcedurePresentation.EXTENSION_ID); IExtension[] extensions = ep.getExtensions(); Logger.debug(this + STR + extensions.length, Level.GUI, this); ... | /***************************************************************************
* Load all defined procedure presentations
**************************************************************************/ | Load all defined procedure presentations | loadPresentations | {
"repo_name": "Spacecraft-Code/SPELL",
"path": "src/spel-gui/com.astra.ses.spell.gui/src/com/astra/ses/spell/gui/views/presentations/PresentationManager.java",
"license": "lgpl-3.0",
"size": 10906
} | [
"com.astra.ses.spell.gui.core.model.types.Level",
"com.astra.ses.spell.gui.core.utils.Logger",
"com.astra.ses.spell.gui.interfaces.IProcedurePresentation",
"java.util.Vector",
"org.eclipse.core.runtime.IConfigurationElement",
"org.eclipse.core.runtime.IExtension",
"org.eclipse.core.runtime.IExtensionPoi... | import com.astra.ses.spell.gui.core.model.types.Level; import com.astra.ses.spell.gui.core.utils.Logger; import com.astra.ses.spell.gui.interfaces.IProcedurePresentation; import java.util.Vector; import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.IExtension; import org.eclipse.core.r... | import com.astra.ses.spell.gui.core.model.types.*; import com.astra.ses.spell.gui.core.utils.*; import com.astra.ses.spell.gui.interfaces.*; import java.util.*; import org.eclipse.core.runtime.*; | [
"com.astra.ses",
"java.util",
"org.eclipse.core"
] | com.astra.ses; java.util; org.eclipse.core; | 1,074,562 |
public void setDay(int day) {
// validate day
if (day < 1 || day > 31) {
throw new NumberFormatException(
Messages.getMessage("badMonthDay00"));
}
// 30 days has September... All the rest have 31 (except Feb!)
// NOTE: if month isn't set, we do... | void function(int day) { if (day < 1 day > 31) { throw new NumberFormatException( Messages.getMessage(STR)); } if ((month == 2 && day > 29) ((month == 9 month == 4 month == 6 month == 11) && day > 30)) { throw new NumberFormatException( Messages.getMessage(STR)); } this.day = day; } | /**
* Set the day
* NOTE: if the month isn't set yet, the day isn't validated
*/ | Set the day | setDay | {
"repo_name": "hugosato/apache-axis",
"path": "src/org/apache/axis/types/MonthDay.java",
"license": "apache-2.0",
"size": 5873
} | [
"org.apache.axis.utils.Messages"
] | import org.apache.axis.utils.Messages; | import org.apache.axis.utils.*; | [
"org.apache.axis"
] | org.apache.axis; | 2,700,396 |
@Deprecated
public static void write(final String data, final OutputStream output)
throws IOException {
write(data, output, Charset.defaultCharset());
} | static void function(final String data, final OutputStream output) throws IOException { write(data, output, Charset.defaultCharset()); } | /**
* Writes chars from a <code>String</code> to bytes on an
* <code>OutputStream</code> using the default character encoding of the
* platform.
* <p>
* This method uses {@link String#getBytes()}.
*
* @param data the <code>String</code> to write, null ignored
* @param output the ... | Writes chars from a <code>String</code> to bytes on an <code>OutputStream</code> using the default character encoding of the platform. This method uses <code>String#getBytes()</code> | write | {
"repo_name": "krosenvold/commons-io",
"path": "src/main/java/org/apache/commons/io/IOUtils.java",
"license": "apache-2.0",
"size": 125142
} | [
"java.io.IOException",
"java.io.OutputStream",
"java.nio.charset.Charset"
] | import java.io.IOException; import java.io.OutputStream; import java.nio.charset.Charset; | import java.io.*; import java.nio.charset.*; | [
"java.io",
"java.nio"
] | java.io; java.nio; | 2,548,593 |
public void setCreateDate(Date createDate) {
this.createDate = createDate;
} | void function(Date createDate) { this.createDate = createDate; } | /**
* Setter of createDate.
*
* @param createDate createDate
*/ | Setter of createDate | setCreateDate | {
"repo_name": "sismics/music",
"path": "music-core/src/main/java/com/sismics/music/core/model/dbi/Directory.java",
"license": "gpl-2.0",
"size": 3003
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 245,370 |
public static YarnClient createYarnClient(Configuration conf) {
YarnClient client = YarnClient.createYarnClient();
client.init(conf);
client.start();
return client;
} | static YarnClient function(Configuration conf) { YarnClient client = YarnClient.createYarnClient(); client.init(conf); client.start(); return client; } | /**
* Creates a YarnClient for test purposes.
*/ | Creates a YarnClient for test purposes | createYarnClient | {
"repo_name": "apurtell/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/test/java/org/apache/hadoop/yarn/service/ServiceTestUtils.java",
"license": "apache-2.0",
"size": 21047
} | [
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.yarn.client.api.YarnClient"
] | import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.client.api.YarnClient; | import org.apache.hadoop.conf.*; import org.apache.hadoop.yarn.client.api.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 997,286 |
public void setSentenceIter(@NonNull SentenceIterator iterator) {
//if (tokenizerFactory == null) throw new IllegalStateException("Please call setTokenizerFactory() prior to setSentenceIter() call.");
if (tokenizerFactory != null) {
SentenceTransformer transformer = new SentenceTransfor... | void function(@NonNull SentenceIterator iterator) { if (tokenizerFactory != null) { SentenceTransformer transformer = new SentenceTransformer.Builder() .iterator(iterator) .tokenizerFactory(tokenizerFactory) .allowMultithreading(configuration == null configuration.isAllowParallelTokenization()) .build(); this.iterator ... | /**
* This method defines SentenceIterator instance, that will be used as training corpus source
*
* @param iterator SentenceIterator instance
*/ | This method defines SentenceIterator instance, that will be used as training corpus source | setSentenceIter | {
"repo_name": "xuzhongxing/deeplearning4j",
"path": "deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/word2vec/Word2Vec.java",
"license": "apache-2.0",
"size": 18711
} | [
"org.deeplearning4j.models.sequencevectors.SequenceVectors",
"org.deeplearning4j.models.sequencevectors.iterators.AbstractSequenceIterator",
"org.deeplearning4j.models.sequencevectors.transformers.impl.SentenceTransformer",
"org.deeplearning4j.text.sentenceiterator.SentenceIterator",
"org.deeplearning4j.tex... | import org.deeplearning4j.models.sequencevectors.SequenceVectors; import org.deeplearning4j.models.sequencevectors.iterators.AbstractSequenceIterator; import org.deeplearning4j.models.sequencevectors.transformers.impl.SentenceTransformer; import org.deeplearning4j.text.sentenceiterator.SentenceIterator; import org.deep... | import org.deeplearning4j.models.sequencevectors.*; import org.deeplearning4j.models.sequencevectors.iterators.*; import org.deeplearning4j.models.sequencevectors.transformers.impl.*; import org.deeplearning4j.text.sentenceiterator.*; import org.deeplearning4j.text.tokenization.tokenizerfactory.*; | [
"org.deeplearning4j.models",
"org.deeplearning4j.text"
] | org.deeplearning4j.models; org.deeplearning4j.text; | 862,202 |
public void setGlobalNamingContext
(javax.naming.Context globalNamingContext) {
this.globalNamingContext = globalNamingContext;
} | void function (javax.naming.Context globalNamingContext) { this.globalNamingContext = globalNamingContext; } | /**
* Set the global naming resources context.
*
* @param globalNamingContext The new global naming resource context
*/ | Set the global naming resources context | setGlobalNamingContext | {
"repo_name": "plumer/codana",
"path": "tomcat_files/7.0.61/StandardServer.java",
"license": "mit",
"size": 26389
} | [
"org.apache.catalina.Context"
] | import org.apache.catalina.Context; | import org.apache.catalina.*; | [
"org.apache.catalina"
] | org.apache.catalina; | 1,021,980 |
public boolean canBeImplemented(Page page) {
Integer implementedVersion = getImplementedVersion(page);
return implementedVersion == null || page.getVersion() != implementedVersion;
} | boolean function(Page page) { Integer implementedVersion = getImplementedVersion(page); return implementedVersion == null page.getVersion() != implementedVersion; } | /**
* Verifies if the specification can be Implemented.
*
* @param page
* @return true if the specification can be Implemented.
*/ | Verifies if the specification can be Implemented | canBeImplemented | {
"repo_name": "benhamidene/livingdoc-confluence",
"path": "livingdoc-confluence-plugin/src/main/java/info/novatec/testit/livingdoc/confluence/velocity/ConfluenceLivingDoc.java",
"license": "gpl-3.0",
"size": 31707
} | [
"com.atlassian.confluence.pages.Page"
] | import com.atlassian.confluence.pages.Page; | import com.atlassian.confluence.pages.*; | [
"com.atlassian.confluence"
] | com.atlassian.confluence; | 2,699,355 |
int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset,
int cursorOpt, Paint p); | int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, int cursorOpt, Paint p); | /**
* Just like {@link Paint#getTextRunCursor}.
* @hide
*/ | Just like <code>Paint#getTextRunCursor</code> | getTextRunCursor | {
"repo_name": "syslover33/ctank",
"path": "java/android-sdk-linux_r24.4.1_src/sources/android-23/android/text/GraphicsOperations.java",
"license": "gpl-3.0",
"size": 1981
} | [
"android.graphics.Paint"
] | import android.graphics.Paint; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 1,078,832 |
public void removeListener(JingleListener li) {
synchronized (listeners) {
listeners.remove(li);
}
} | void function(JingleListener li) { synchronized (listeners) { listeners.remove(li); } } | /**
* Removes a Jingle session listener.
*
* @param li The jingle session listener to be removed
* @see org.jivesoftware.smackx.jingleold.listeners.JingleListener
*/ | Removes a Jingle session listener | removeListener | {
"repo_name": "esl/Smack",
"path": "smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/JingleNegotiator.java",
"license": "apache-2.0",
"size": 6776
} | [
"org.jivesoftware.smackx.jingleold.listeners.JingleListener"
] | import org.jivesoftware.smackx.jingleold.listeners.JingleListener; | import org.jivesoftware.smackx.jingleold.listeners.*; | [
"org.jivesoftware.smackx"
] | org.jivesoftware.smackx; | 823,136 |
public void writePacketData(PacketBuffer buf) throws IOException
{
buf.writeString(this.soundName);
buf.writeInt(this.posX);
buf.writeInt(this.posY);
buf.writeInt(this.posZ);
buf.writeFloat(this.soundVolume);
buf.writeByte(this.soundPitch);
} | void function(PacketBuffer buf) throws IOException { buf.writeString(this.soundName); buf.writeInt(this.posX); buf.writeInt(this.posY); buf.writeInt(this.posZ); buf.writeFloat(this.soundVolume); buf.writeByte(this.soundPitch); } | /**
* Writes the raw packet data to the data stream.
*/ | Writes the raw packet data to the data stream | writePacketData | {
"repo_name": "TorchPowered/CraftBloom",
"path": "src/net/minecraft/network/play/server/S29PacketSoundEffect.java",
"license": "mit",
"size": 2073
} | [
"java.io.IOException",
"net.minecraft.network.PacketBuffer"
] | import java.io.IOException; import net.minecraft.network.PacketBuffer; | import java.io.*; import net.minecraft.network.*; | [
"java.io",
"net.minecraft.network"
] | java.io; net.minecraft.network; | 1,797,466 |
@javax.annotation.Nullable
@ApiModelProperty(value = "The number of times this event has occurred.")
public Integer getCount() {
return count;
} | @javax.annotation.Nullable @ApiModelProperty(value = STR) Integer function() { return count; } | /**
* The number of times this event has occurred.
*
* @return count
*/ | The number of times this event has occurred | getCount | {
"repo_name": "kubernetes-client/java",
"path": "kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java",
"license": "apache-2.0",
"size": 17069
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 2,008,607 |
Connection getConnection(String database, boolean autocommit); | Connection getConnection(String database, boolean autocommit); | /**
* Gets the connection on the given database.
* The auto-commit is enabled.
* @param database the data source name
* @param autocommit enables or disables the auto-commit.
* @return the connection, {@literal null} if the data source with the given name is not configured,
* or if the con... | Gets the connection on the given database. The auto-commit is enabled | getConnection | {
"repo_name": "hboumedane/wisdom-jdbc",
"path": "wisdom-jdbc-datasources/src/main/java/org/wisdom/database/jdbc/service/DataSources.java",
"license": "apache-2.0",
"size": 3250
} | [
"java.sql.Connection"
] | import java.sql.Connection; | import java.sql.*; | [
"java.sql"
] | java.sql; | 459,954 |
public CtClass[] mayThrow() {
ClassPool pool = thisClass.getClassPool();
ConstPool cp = thisMethod.getConstPool();
LinkedList list = new LinkedList();
try {
CodeAttribute ca = thisMethod.getCodeAttribute();
ExceptionTable et = ca.getExceptionTable();
... | CtClass[] function() { ClassPool pool = thisClass.getClassPool(); ConstPool cp = thisMethod.getConstPool(); LinkedList list = new LinkedList(); try { CodeAttribute ca = thisMethod.getCodeAttribute(); ExceptionTable et = ca.getExceptionTable(); int pos = currentPos; int n = et.size(); for (int i = 0; i < n; ++i) if (et.... | /**
* Returns the list of exceptions that the expression may throw. This list
* includes both the exceptions that the try-catch statements including the
* expression can catch and the exceptions that the throws declaration
* allows the method to throw.
*/ | Returns the list of exceptions that the expression may throw. This list includes both the exceptions that the try-catch statements including the expression can catch and the exceptions that the throws declaration allows the method to throw | mayThrow | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "external/javassist/src/main/javassist/expr/Expr.java",
"license": "gpl-2.0",
"size": 10749
} | [
"java.util.LinkedList",
"javassist.bytecode.CodeAttribute",
"javassist.bytecode.ConstPool",
"javassist.bytecode.ExceptionTable",
"javassist.bytecode.ExceptionsAttribute"
] | import java.util.LinkedList; import javassist.bytecode.CodeAttribute; import javassist.bytecode.ConstPool; import javassist.bytecode.ExceptionTable; import javassist.bytecode.ExceptionsAttribute; | import java.util.*; import javassist.bytecode.*; | [
"java.util",
"javassist.bytecode"
] | java.util; javassist.bytecode; | 1,003,783 |
EAttribute getTableProperty_Label(); | EAttribute getTableProperty_Label(); | /**
* Returns the meta object for the attribute '{@link fr.obeo.dsl.sPrototyper.TableProperty#getLabel <em>Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Label</em>'.
* @see fr.obeo.dsl.sPrototyper.TableProperty#getLabel()
* @see #getTa... | Returns the meta object for the attribute '<code>fr.obeo.dsl.sPrototyper.TableProperty#getLabel Label</code>'. | getTableProperty_Label | {
"repo_name": "glefur/s-prototyper",
"path": "plugins/fr.obeo.dsl.sprototyper/src-gen/fr/obeo/dsl/sPrototyper/SPrototyperPackage.java",
"license": "apache-2.0",
"size": 98928
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,402,542 |
public void setAssetDepreciationDate (Timestamp AssetDepreciationDate)
{
set_Value (COLUMNNAME_AssetDepreciationDate, AssetDepreciationDate);
} | void function (Timestamp AssetDepreciationDate) { set_Value (COLUMNNAME_AssetDepreciationDate, AssetDepreciationDate); } | /** Set Asset Depreciation Date.
@param AssetDepreciationDate
Date of last depreciation
*/ | Set Asset Depreciation Date | setAssetDepreciationDate | {
"repo_name": "klst-com/metasfresh",
"path": "de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_A_Asset.java",
"license": "gpl-2.0",
"size": 26835
} | [
"java.sql.Timestamp"
] | import java.sql.Timestamp; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,918,323 |
private void getResponse() throws IOException {
// Check to see if enough data has been received.
if (mOutputStream != null) {
mOutputStream.checkReceivedEnoughContent();
if (isChunkedUpload()) {
// Write last chunk.
mOutputStream.close();
... | void function() throws IOException { if (mOutputStream != null) { mOutputStream.checkReceivedEnoughContent(); if (isChunkedUpload()) { mOutputStream.close(); } } if (!mHasResponse) { startRequest(); mMessageLoop.loop(); mHasResponse = true; } checkHasResponse(); } | /**
* Blocks until the respone headers are received.
*/ | Blocks until the respone headers are received | getResponse | {
"repo_name": "CapOM/ChromiumGStreamerBackend",
"path": "components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java",
"license": "bsd-3-clause",
"size": 18934
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,293,313 |
public void paramGet(String xMsClientRequestId) throws ErrorException, IOException, IllegalArgumentException {
paramGetWithServiceResponseAsync(xMsClientRequestId).toBlocking().single().getBody();
} | void function(String xMsClientRequestId) throws ErrorException, IOException, IllegalArgumentException { paramGetWithServiceResponseAsync(xMsClientRequestId).toBlocking().single().getBody(); } | /**
* Get method that overwrites x-ms-client-request header with value 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
*
* @param xMsClientRequestId This should appear as a method parameter, use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0'
* @throws ErrorException exception thrown from REST call
* @throw... | Get method that overwrites x-ms-client-request header with value 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 | paramGet | {
"repo_name": "tbombach/autorest",
"path": "src/generator/AutoRest.Java.Azure.Tests/src/main/java/fixtures/azurespecials/implementation/XMsClientRequestIdsImpl.java",
"license": "mit",
"size": 8951
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 815,802 |
public void setFixedLegendItems(LegendItemCollection items) {
this.fixedLegendItems = items;
fireChangeEvent();
} | void function(LegendItemCollection items) { this.fixedLegendItems = items; fireChangeEvent(); } | /**
* Sets the fixed legend items for the plot. Leave this set to
* <code>null</code> if you prefer the legend items to be created
* automatically.
*
* @param items the legend items (<code>null</code> permitted).
*
* @see #getFixedLegendItems()
*
* @since 1.0.14
*/ | Sets the fixed legend items for the plot. Leave this set to <code>null</code> if you prefer the legend items to be created automatically | setFixedLegendItems | {
"repo_name": "hongliangpan/manydesigns.cn",
"path": "trunk/portofino-chart/jfreechat.src/org/jfree/chart/plot/PolarPlot.java",
"license": "lgpl-3.0",
"size": 71134
} | [
"org.jfree.chart.LegendItemCollection"
] | import org.jfree.chart.LegendItemCollection; | import org.jfree.chart.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 800,544 |
public MultiMatchQueryBuilder.Type getType() {
return type;
}
public MultiMatchQueryBuilder(Object value, String... fields) {
if (value == null) {
throw new IllegalArgumentException("[" + NAME + "] requires query value");
}
if (fields == null) {
... | MultiMatchQueryBuilder.Type function() { return type; } public MultiMatchQueryBuilder(Object value, String... fields) { if (value == null) { throw new IllegalArgumentException("[" + NAME + STR); } if (fields == null) { throw new IllegalArgumentException("[" + NAME + STR); } this.value = value; this.fieldsBoosts = new T... | /**
* Returns the type (for testing)
*/ | Returns the type (for testing) | getType | {
"repo_name": "nomoa/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/index/query/MultiMatchQueryBuilder.java",
"license": "apache-2.0",
"size": 32137
} | [
"java.io.IOException",
"java.util.TreeMap",
"org.elasticsearch.common.io.stream.StreamInput",
"org.elasticsearch.common.unit.Fuzziness",
"org.elasticsearch.index.search.MatchQuery"
] | import java.io.IOException; import java.util.TreeMap; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.unit.Fuzziness; import org.elasticsearch.index.search.MatchQuery; | import java.io.*; import java.util.*; import org.elasticsearch.common.io.stream.*; import org.elasticsearch.common.unit.*; import org.elasticsearch.index.search.*; | [
"java.io",
"java.util",
"org.elasticsearch.common",
"org.elasticsearch.index"
] | java.io; java.util; org.elasticsearch.common; org.elasticsearch.index; | 954,004 |
@Test
public void testRequestNonHeadOrGet() {
final String methodName = "testRequestNonHeadOrGet";
try {
mock.checking(new Expectations() {
{
allowing(request).getMethod();
will(returnValue(AbstractOidcEndpointServices.HTTP_MET... | void function() { final String methodName = STR; try { mock.checking(new Expectations() { { allowing(request).getMethod(); will(returnValue(AbstractOidcEndpointServices.HTTP_METHOD_DELETE)); } }); CoverageMapEndpointServices coverageMapServices = new CoverageMapEndpointServices(); coverageMapServices.handleEndpointRequ... | /**
* Test that a non GET or HEAD
* request will fail with an OIDCException
*/ | Test that a non GET or HEAD request will fail with an OIDCException | testRequestNonHeadOrGet | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.security.oauth/test/com/ibm/ws/security/oauth20/web/CoverageMapEndpointServicesTest.java",
"license": "epl-1.0",
"size": 20794
} | [
"com.ibm.oauth.core.api.error.OidcServerException",
"com.ibm.ws.security.oauth20.util.OIDCConstants",
"javax.servlet.http.HttpServletResponse",
"org.jmock.Expectations",
"org.junit.Assert"
] | import com.ibm.oauth.core.api.error.OidcServerException; import com.ibm.ws.security.oauth20.util.OIDCConstants; import javax.servlet.http.HttpServletResponse; import org.jmock.Expectations; import org.junit.Assert; | import com.ibm.oauth.core.api.error.*; import com.ibm.ws.security.oauth20.util.*; import javax.servlet.http.*; import org.jmock.*; import org.junit.*; | [
"com.ibm.oauth",
"com.ibm.ws",
"javax.servlet",
"org.jmock",
"org.junit"
] | com.ibm.oauth; com.ibm.ws; javax.servlet; org.jmock; org.junit; | 1,466,364 |
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<MetadataEntityInner> list(Context context) {
return new PagedIterable<>(listAsync(context));
} | @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<MetadataEntityInner> function(Context context) { return new PagedIterable<>(listAsync(context)); } | /**
* Gets the list of metadata entities.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all ... | Gets the list of metadata entities | list | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/advisor/azure-resourcemanager-advisor/src/main/java/com/azure/resourcemanager/advisor/implementation/RecommendationMetadatasClientImpl.java",
"license": "mit",
"size": 17190
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedIterable",
"com.azure.core.util.Context",
"com.azure.resourcemanager.advisor.fluent.models.MetadataEntityInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; import com.azure.resourcemanager.advisor.fluent.models.MetadataEntityInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.advisor.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,485,372 |
public Set<ReferenceOntologyAnnotation> getReferenceOntologyAnnotations(SemSimRelation.KBRelations relation);
| Set<ReferenceOntologyAnnotation> function(SemSimRelation.KBRelations relation); | /**
* Get all SemSim {@link ReferenceOntologyAnnotation}s applied to an object
* that have a specific {@link SemSimRelation}.
*
* @param relation The {@link SemSimRelation} that filters the annotations
* to return
*/ | Get all SemSim <code>ReferenceOntologyAnnotation</code>s applied to an object that have a specific <code>SemSimRelation</code> | getReferenceOntologyAnnotations | {
"repo_name": "thompsct/VPRKB",
"path": "src/semsimKB/Annotatable.java",
"license": "apache-2.0",
"size": 2770
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,857,353 |
protected void setFunctions(PDFFunction[] functions) {
this.functions = functions;
}
class Type3Paint implements Paint {
public Type3Paint() {
} | void function(PDFFunction[] functions) { this.functions = functions; } class Type3Paint implements Paint { public Type3Paint() { } | /**
* Set the functions associated with this shader
*/ | Set the functions associated with this shader | setFunctions | {
"repo_name": "Pixplicity/PDFrenderer",
"path": "src/com/sun/pdfview/pattern/ShaderType3.java",
"license": "lgpl-2.1",
"size": 12944
} | [
"com.sun.pdfview.function.PDFFunction",
"java.awt.Paint"
] | import com.sun.pdfview.function.PDFFunction; import java.awt.Paint; | import com.sun.pdfview.function.*; import java.awt.*; | [
"com.sun.pdfview",
"java.awt"
] | com.sun.pdfview; java.awt; | 1,924,602 |
RecordHandle insert(
Object[] row,
FormatableBitSet validColumns,
byte insertFlag,
int overflowThreshold)
throws StandardException; | RecordHandle insert( Object[] row, FormatableBitSet validColumns, byte insertFlag, int overflowThreshold) throws StandardException; | /**
* Insert a record anywhere on the page.
* <P>
*
* <B>Locking Policy</B>
* <BR>
* Calls the lockRecordForWrite() method of the LockingPolicy object
* passed to the openContainer() call before the record is inserted.
* <BR>
* MT - latched
*
* @param row ... | Insert a record anywhere on the page. Locking Policy Calls the lockRecordForWrite() method of the LockingPolicy object passed to the openContainer() call before the record is inserted. MT - latched | insert | {
"repo_name": "papicella/snappy-store",
"path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/iapi/store/raw/Page.java",
"license": "apache-2.0",
"size": 43611
} | [
"com.pivotal.gemfirexd.internal.iapi.error.StandardException",
"com.pivotal.gemfirexd.internal.iapi.services.io.FormatableBitSet"
] | import com.pivotal.gemfirexd.internal.iapi.error.StandardException; import com.pivotal.gemfirexd.internal.iapi.services.io.FormatableBitSet; | import com.pivotal.gemfirexd.internal.iapi.error.*; import com.pivotal.gemfirexd.internal.iapi.services.io.*; | [
"com.pivotal.gemfirexd"
] | com.pivotal.gemfirexd; | 80,344 |
public void playOnFailure(Integer callNumber, Throwable caught) throws Exception {
MethodCall call = getcallNumber(callNumber);
Object[] asynchArgs = call.getArgs();
// Now pass the results to the callback.
Object callback = asynchArgs[asynchArgs.length - 1];
Class callbackClass = callback.getClass();... | void function(Integer callNumber, Throwable caught) throws Exception { MethodCall call = getcallNumber(callNumber); Object[] asynchArgs = call.getArgs(); Object callback = asynchArgs[asynchArgs.length - 1]; Class callbackClass = callback.getClass(); Method onFailMethod = findAccessableMethod(callbackClass, STR, Throwab... | /**
* Play back a failure passing the given exception.
*
* @param callNumber
* @param caught
* @throws Exception
*/ | Play back a failure passing the given exception | playOnFailure | {
"repo_name": "Sage-Bionetworks/SynapseWebClient",
"path": "src/test/java/org/sagebionetworks/web/test/helper/AsyncServiceRecorder.java",
"license": "apache-2.0",
"size": 10992
} | [
"java.lang.reflect.Method"
] | import java.lang.reflect.Method; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 2,295,395 |
public MessageBytes authorization() {
return authorization;
} | MessageBytes function() { return authorization; } | /**
* Get the authorization credentials
* @return the authorization credentials
*/ | Get the authorization credentials | authorization | {
"repo_name": "johnaoahra80/JBOSSWEB_7_5_0_FINAL",
"path": "src/main/java/org/apache/tomcat/util/http/BaseRequest.java",
"license": "apache-2.0",
"size": 9229
} | [
"org.apache.tomcat.util.buf.MessageBytes"
] | import org.apache.tomcat.util.buf.MessageBytes; | import org.apache.tomcat.util.buf.*; | [
"org.apache.tomcat"
] | org.apache.tomcat; | 1,321,798 |
private Method getSetBetweenOrNotBetweenMethod(
IntrospectedColumn introspectedColumn, boolean betweenMethod) {
Method method = new Method();
method.setVisibility(JavaVisibility.PUBLIC);
FullyQualifiedJavaType type = introspectedColumn
.getFullyQualifiedJavaType()... | Method function( IntrospectedColumn introspectedColumn, boolean betweenMethod) { Method method = new Method(); method.setVisibility(JavaVisibility.PUBLIC); FullyQualifiedJavaType type = introspectedColumn .getFullyQualifiedJavaType(); method.addParameter(new Parameter(type, STR)); method.addParameter(new Parameter(type... | /**
* Generates methods that set between and not between conditions
*
* @param introspectedColumn
* @param betweenMethod
* @return a generated method for the between or not between method
*/ | Generates methods that set between and not between conditions | getSetBetweenOrNotBetweenMethod | {
"repo_name": "NanYoMy/mybatis-generator",
"path": "src/main/java/org/mybatis/generator/codegen/mybatis3/model/ExampleGenerator.java",
"license": "mit",
"size": 49422
} | [
"org.mybatis.generator.api.IntrospectedColumn",
"org.mybatis.generator.api.dom.java.FullyQualifiedJavaType",
"org.mybatis.generator.api.dom.java.JavaVisibility",
"org.mybatis.generator.api.dom.java.Method",
"org.mybatis.generator.api.dom.java.Parameter"
] | import org.mybatis.generator.api.IntrospectedColumn; import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType; import org.mybatis.generator.api.dom.java.JavaVisibility; import org.mybatis.generator.api.dom.java.Method; import org.mybatis.generator.api.dom.java.Parameter; | import org.mybatis.generator.api.*; import org.mybatis.generator.api.dom.java.*; | [
"org.mybatis.generator"
] | org.mybatis.generator; | 2,305,809 |
return now(Clock.systemDefaultZone());
} | return now(Clock.systemDefaultZone()); } | /**
* Obtains the current {@code JulianDate} from the system clock in the default time-zone.
* <p>
* This will query the {@link Clock#systemDefaultZone() system clock} in the default
* time-zone to obtain the current date.
* <p>
* Using this method will prevent the ability to use an altern... | Obtains the current JulianDate from the system clock in the default time-zone. This will query the <code>Clock#systemDefaultZone() system clock</code> in the default time-zone to obtain the current date. Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded | now | {
"repo_name": "catull/threeten-extra",
"path": "src/main/java/org/threeten/extra/chrono/JulianDate.java",
"license": "bsd-3-clause",
"size": 17561
} | [
"java.time.Clock"
] | import java.time.Clock; | import java.time.*; | [
"java.time"
] | java.time; | 2,082,401 |
public SlotSwapStatus slotSwapStatus() {
return this.slotSwapStatus;
} | SlotSwapStatus function() { return this.slotSwapStatus; } | /**
* Get the slotSwapStatus property: Status of the last deployment slot swap operation.
*
* @return the slotSwapStatus value.
*/ | Get the slotSwapStatus property: Status of the last deployment slot swap operation | slotSwapStatus | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePatchResourcePropertiesInner.java",
"license": "mit",
"size": 34395
} | [
"com.azure.resourcemanager.appservice.models.SlotSwapStatus"
] | import com.azure.resourcemanager.appservice.models.SlotSwapStatus; | import com.azure.resourcemanager.appservice.models.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 1,469,719 |
public IInvocationContext getContext() {
return context;
}
| IInvocationContext function() { return context; } | /**
* Get the current context.
*
* @return the current context.
*/ | Get the current context | getContext | {
"repo_name": "SonOfFlyingPig/JTAF-XCore",
"path": "src/main/java/org/finra/jtaf/core/model/invocationtarget/ContextKeyHandler.java",
"license": "apache-2.0",
"size": 4798
} | [
"org.finra.jtaf.core.model.execution.IInvocationContext"
] | import org.finra.jtaf.core.model.execution.IInvocationContext; | import org.finra.jtaf.core.model.execution.*; | [
"org.finra.jtaf"
] | org.finra.jtaf; | 1,671,113 |
@TLAPlusOperator(identifier = "ndJsonDeserialize", module = "Json", warn = false)
public static IValue ndDeserialize(final StringValue path) throws IOException {
List<Value> values = new ArrayList<>();
try (BufferedReader reader = new BufferedReader(new FileReader(new File(path.val.toString())))) {
St... | @TLAPlusOperator(identifier = STR, module = "Json", warn = false) static IValue function(final StringValue path) throws IOException { List<Value> values = new ArrayList<>(); try (BufferedReader reader = new BufferedReader(new FileReader(new File(path.val.toString())))) { String line = reader.readLine(); while (line != ... | /**
* Deserializes a tuple of newline delimited JSON values from the given path.
*
* @param path the JSON file path
* @return a tuple of JSON values
*/ | Deserializes a tuple of newline delimited JSON values from the given path | ndDeserialize | {
"repo_name": "lemmy/tlaplus",
"path": "tlatools/org.lamport.tlatools/src/tlc2/module/Json.java",
"license": "mit",
"size": 17018
} | [
"com.google.gson.JsonElement",
"com.google.gson.JsonParser",
"java.io.BufferedReader",
"java.io.File",
"java.io.FileReader",
"java.io.IOException",
"java.util.ArrayList",
"java.util.List"
] | import com.google.gson.JsonElement; import com.google.gson.JsonParser; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; | import com.google.gson.*; import java.io.*; import java.util.*; | [
"com.google.gson",
"java.io",
"java.util"
] | com.google.gson; java.io; java.util; | 1,970,576 |
public AggregateDefinition aggregationStrategy(AggregationStrategy aggregationStrategy) {
setAggregationStrategy(aggregationStrategy);
return this;
} | AggregateDefinition function(AggregationStrategy aggregationStrategy) { setAggregationStrategy(aggregationStrategy); return this; } | /**
* Sets the aggregate strategy to use
*
* @param aggregationStrategy the aggregate strategy to use
* @return the builder
*/ | Sets the aggregate strategy to use | aggregationStrategy | {
"repo_name": "kingargyle/turmeric-bot",
"path": "camel-core/src/main/java/org/apache/camel/model/AggregateDefinition.java",
"license": "apache-2.0",
"size": 24550
} | [
"org.apache.camel.processor.aggregate.AggregationStrategy"
] | import org.apache.camel.processor.aggregate.AggregationStrategy; | import org.apache.camel.processor.aggregate.*; | [
"org.apache.camel"
] | org.apache.camel; | 2,483,488 |
@CacheEvict(value = CORE_SETTINGS_CACHE_NAME, allEntries = true)
Properties loadDatanucleusConfig(); | @CacheEvict(value = CORE_SETTINGS_CACHE_NAME, allEntries = true) Properties loadDatanucleusConfig(); | /**
* Loads the datanucleus configuration
*
* @return datanucleus configuration
*/ | Loads the datanucleus configuration | loadDatanucleusConfig | {
"repo_name": "frankhuster/motech",
"path": "platform/config-core/src/main/java/org/motechproject/config/core/service/CoreConfigurationService.java",
"license": "bsd-3-clause",
"size": 1884
} | [
"java.util.Properties",
"org.springframework.cache.annotation.CacheEvict"
] | import java.util.Properties; import org.springframework.cache.annotation.CacheEvict; | import java.util.*; import org.springframework.cache.annotation.*; | [
"java.util",
"org.springframework.cache"
] | java.util; org.springframework.cache; | 240,445 |
@SuppressWarnings("null")
public static MBeanServerConnection accessJMXConnection(Project project,
String url, String host, String port, String username,
String password, String refId) throws MalformedURLException,
IOException {
MBeanServerConnection jmxServerConnecti... | @SuppressWarnings("null") static MBeanServerConnection function(Project project, String url, String host, String port, String username, String password, String refId) throws MalformedURLException, IOException { MBeanServerConnection jmxServerConnection = null; boolean isRef = project != null && refId != null && refId.l... | /**
* Get Current Connection from <em>ref</em> parameter or create a new one!
*
* @param project The Ant project
* @param url URL to be used for the JMX connection
* (if specified, it is a complete URL so host and port will not
* be used)
* @param host Host name of the J... | Get Current Connection from ref parameter or create a new one | accessJMXConnection | {
"repo_name": "Nickname0806/Test_Q4",
"path": "java/org/apache/catalina/ant/jmx/JMXAccessorTask.java",
"license": "apache-2.0",
"size": 23712
} | [
"java.io.IOException",
"java.net.MalformedURLException",
"javax.management.MBeanServerConnection",
"org.apache.tools.ant.Project"
] | import java.io.IOException; import java.net.MalformedURLException; import javax.management.MBeanServerConnection; import org.apache.tools.ant.Project; | import java.io.*; import java.net.*; import javax.management.*; import org.apache.tools.ant.*; | [
"java.io",
"java.net",
"javax.management",
"org.apache.tools"
] | java.io; java.net; javax.management; org.apache.tools; | 1,443,559 |
@ServiceMethod(returns = ReturnType.SINGLE)
public SyncPoller<PollResult<ApplicationGatewayBackendHealthInner>, ApplicationGatewayBackendHealthInner>
beginBackendHealth(String resourceGroupName, String applicationGatewayName, String expand, Context context) {
return beginBackendHealthAsync(resou... | @ServiceMethod(returns = ReturnType.SINGLE) SyncPoller<PollResult<ApplicationGatewayBackendHealthInner>, ApplicationGatewayBackendHealthInner> function(String resourceGroupName, String applicationGatewayName, String expand, Context context) { return beginBackendHealthAsync(resourceGroupName, applicationGatewayName, exp... | /**
* Gets the backend health of the specified application gateway in a resource group.
*
* @param resourceGroupName The name of the resource group.
* @param applicationGatewayName The name of the application gateway.
* @param expand Expands BackendAddressPool and BackendHttpSettings referenced... | Gets the backend health of the specified application gateway in a resource group | beginBackendHealth | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java",
"license": "mit",
"size": 166717
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.Context",
"com.azure.core.util.polling.SyncPoller",
"com.azure.resourcemanager.network.fluent.models.ApplicationGatewayBackendHealthInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayBackendHealthInner... | import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.network.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 778,477 |
@NonNull
private static OnCommitContentListener createOnCommitContentListenerUsingPerformReceiveContent(
@NonNull View view) {
Preconditions.checkNotNull(view);
return (inputContentInfo, flags, opts) -> {
Bundle extras = opts;
if (Build.VERSION.SDK_INT >= 25
... | static OnCommitContentListener function( @NonNull View view) { Preconditions.checkNotNull(view); return (inputContentInfo, flags, opts) -> { Bundle extras = opts; if (Build.VERSION.SDK_INT >= 25 && (flags & INPUT_CONTENT_GRANT_READ_URI_PERMISSION) != 0) { try { inputContentInfo.requestPermission(); } catch (Exception e... | /**
* Creates an {@link OnCommitContentListener} that uses
* {@link ViewCompat#performReceiveContent} to insert content. This is useful for widgets
* that support content insertion using an {@link OnReceiveContentListener}.
*/ | Creates an <code>OnCommitContentListener</code> that uses <code>ViewCompat#performReceiveContent</code> to insert content. This is useful for widgets that support content insertion using an <code>OnReceiveContentListener</code> | createOnCommitContentListenerUsingPerformReceiveContent | {
"repo_name": "AndroidX/androidx",
"path": "core/core/src/main/java/androidx/core/view/inputmethod/InputConnectionCompat.java",
"license": "apache-2.0",
"size": 20293
} | [
"android.content.ClipData",
"android.os.Build",
"android.os.Bundle",
"android.util.Log",
"android.view.View",
"android.view.inputmethod.InputContentInfo",
"androidx.annotation.NonNull",
"androidx.annotation.RequiresApi",
"androidx.core.util.Preconditions",
"androidx.core.view.ContentInfoCompat",
... | import android.content.ClipData; import android.os.Build; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.inputmethod.InputContentInfo; import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import androidx.core.util.Preconditions; import androidx.co... | import android.content.*; import android.os.*; import android.util.*; import android.view.*; import android.view.inputmethod.*; import androidx.annotation.*; import androidx.core.util.*; import androidx.core.view.*; | [
"android.content",
"android.os",
"android.util",
"android.view",
"androidx.annotation",
"androidx.core"
] | android.content; android.os; android.util; android.view; androidx.annotation; androidx.core; | 2,075,155 |
protected Connection getConnection() {
return connection;
} | Connection function() { return connection; } | /**
* This function returns the connection object of the database object.
* @return the connection object
*/ | This function returns the connection object of the database object | getConnection | {
"repo_name": "jagodki/extractum",
"path": "Extractum/src/database/Database.java",
"license": "apache-2.0",
"size": 5561
} | [
"java.sql.Connection"
] | import java.sql.Connection; | import java.sql.*; | [
"java.sql"
] | java.sql; | 803,212 |
public Report getReport() {
return report;
} | Report function() { return report; } | /**
* Returns the current report.
*
* @return the report
*/ | Returns the current report | getReport | {
"repo_name": "dattack/dbtools",
"path": "src/main/java/com/dattack/dbtools/drules/engine/FlightRecorder.java",
"license": "apache-2.0",
"size": 4080
} | [
"com.dattack.dbtools.drules.engine.report.Report"
] | import com.dattack.dbtools.drules.engine.report.Report; | import com.dattack.dbtools.drules.engine.report.*; | [
"com.dattack.dbtools"
] | com.dattack.dbtools; | 1,031,016 |
@Test()
public void testGetStackTraceMonitorEntry()
throws Exception
{
if (! isDirectoryInstanceAvailable())
{
return;
}
LDAPConnection conn = getAdminConnection();
StackTraceMonitorEntry e = MonitorManager.getStackTraceMonitorEntry(conn);
assertNotNull(e);
assertNotN... | @Test() void function() throws Exception { if (! isDirectoryInstanceAvailable()) { return; } LDAPConnection conn = getAdminConnection(); StackTraceMonitorEntry e = MonitorManager.getStackTraceMonitorEntry(conn); assertNotNull(e); assertNotNull(e.getEntry()); assertNotNull(e.getMonitorClass()); assertNotNull(e.getMonito... | /**
* Tests the {@code getStackTraceMonitorEntry} method.
* <BR><BR>
* Access to a Directory Server instance is required for complete processing.
*
* @throws Exception If an unexpected problem occurs.
*/ | Tests the getStackTraceMonitorEntry method. Access to a Directory Server instance is required for complete processing | testGetStackTraceMonitorEntry | {
"repo_name": "UnboundID/ldapsdk",
"path": "tests/unit/src/com/unboundid/ldap/sdk/unboundidds/monitors/MonitorManagerTestCase.java",
"license": "gpl-2.0",
"size": 39343
} | [
"com.unboundid.ldap.sdk.LDAPConnection",
"org.testng.annotations.Test"
] | import com.unboundid.ldap.sdk.LDAPConnection; import org.testng.annotations.Test; | import com.unboundid.ldap.sdk.*; import org.testng.annotations.*; | [
"com.unboundid.ldap",
"org.testng.annotations"
] | com.unboundid.ldap; org.testng.annotations; | 2,829,069 |
@SuppressWarnings("unchecked")
public void setFlow(Vector<Vector<?>> v) throws Exception {
// Vector beansCopy = null, connectionsCopy = null;
// clearLayout();
if (getAllowMultipleTabs()) {
throw new Exception("[KnowledgeFlow] setFlow() - can only set a flow in "
+ "singe tab only mode");... | @SuppressWarnings(STR) void function(Vector<Vector<?>> v) throws Exception { if (getAllowMultipleTabs()) { throw new Exception(STR + STR); } m_beanLayout.removeAll(); BeanInstance.init(); BeanConnection.init(); SerializedObject so = new SerializedObject(v); Vector<Vector<?>> copy = (Vector<Vector<?>>) so.getObject(); V... | /**
* Set the flow for the KnowledgeFlow to edit. Assumes that client has loaded
* a Vector of beans and a Vector of connections. the supplied beans and
* connections are deep-copied via serialization before being set in the
* layout. The beans get added to the flow at position 0.
*
* @param v a Vect... | Set the flow for the KnowledgeFlow to edit. Assumes that client has loaded a Vector of beans and a Vector of connections. the supplied beans and connections are deep-copied via serialization before being set in the layout. The beans get added to the flow at position 0 | setFlow | {
"repo_name": "ModelWriter/Deliverables",
"path": "WP2/D2.5.2_Generation/Jeni/lib/weka-src/src/main/java/weka/gui/beans/KnowledgeFlowApp.java",
"license": "epl-1.0",
"size": 246379
} | [
"java.util.Vector"
] | import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 1,903,454 |
@Metadata(defaultValue = "1000", label = "advanced",
description = "The timeout for receiving messages (in milliseconds).")
public void setReceiveTimeout(long receiveTimeout) {
getConfiguration().setReceiveTimeout(receiveTimeout);
} | @Metadata(defaultValue = "1000", label = STR, description = STR) void function(long receiveTimeout) { getConfiguration().setReceiveTimeout(receiveTimeout); } | /**
* The timeout for receiving messages (in milliseconds).
*/ | The timeout for receiving messages (in milliseconds) | setReceiveTimeout | {
"repo_name": "lburgazzoli/apache-camel",
"path": "components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java",
"license": "apache-2.0",
"size": 74918
} | [
"org.apache.camel.spi.Metadata"
] | import org.apache.camel.spi.Metadata; | import org.apache.camel.spi.*; | [
"org.apache.camel"
] | org.apache.camel; | 267,792 |
@Test
public void testViewPortOnFling() {
// Initial view port setup.
mMediator.updateViewportSize(100, 200, 1f);
Rect expectedViewPort = new Rect(0, 0, 100, 200);
mScrollController.onFling(100, 0);
expectedViewPort.offsetTo(mScroller.getFinalX(), mScroller.getFinalY());... | void function() { mMediator.updateViewportSize(100, 200, 1f); Rect expectedViewPort = new Rect(0, 0, 100, 200); mScrollController.onFling(100, 0); expectedViewPort.offsetTo(mScroller.getFinalX(), mScroller.getFinalY()); ShadowLooper.runUiThreadTasks(); Assert.assertTrue(mScroller.isFinished()); Assert.assertEquals(expe... | /**
* View port should be updated on fling events. There are more extensive tests for this in
* {@link PlayerFrameScrollControllerTest}.
*/ | View port should be updated on fling events. There are more extensive tests for this in <code>PlayerFrameScrollControllerTest</code> | testViewPortOnFling | {
"repo_name": "ric2b/Vivaldi-browser",
"path": "chromium/components/paint_preview/player/android/junit/src/org/chromium/components/paintpreview/player/frame/PlayerFrameMediatorTest.java",
"license": "bsd-3-clause",
"size": 68666
} | [
"android.graphics.Rect",
"org.junit.Assert",
"org.robolectric.shadows.ShadowLooper"
] | import android.graphics.Rect; import org.junit.Assert; import org.robolectric.shadows.ShadowLooper; | import android.graphics.*; import org.junit.*; import org.robolectric.shadows.*; | [
"android.graphics",
"org.junit",
"org.robolectric.shadows"
] | android.graphics; org.junit; org.robolectric.shadows; | 2,048,994 |
public boolean isApiNameExist(String apiName, String tenantDomain) throws APIManagementException {
Connection connection = null;
PreparedStatement prepStmt = null;
ResultSet resultSet = null;
String contextParam = "/t/";
String query = SQLConstants.GET_API_NAME_NOT_MATCHING_... | boolean function(String apiName, String tenantDomain) throws APIManagementException { Connection connection = null; PreparedStatement prepStmt = null; ResultSet resultSet = null; String contextParam = "/t/"; String query = SQLConstants.GET_API_NAME_NOT_MATCHING_CONTEXT_SQL; if (!MultitenantConstants.SUPER_TENANT_DOMAIN... | /**
* Check the given api name is already available in the api table under given tenant domain
*
* @param apiName candidate api name
* @param tenantDomain tenant domain name
* @return true if the name is already available
* @throws APIManagementException
*/ | Check the given api name is already available in the api table under given tenant domain | isApiNameExist | {
"repo_name": "Rajith90/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java",
"license": "apache-2.0",
"size": 811404
} | [
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.sql.SQLException",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.impl.dao.constants.SQLConstants",
"org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil",
"org.wso2.carbon.utils.multitenancy.Multi... | import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.impl.dao.constants.SQLConstants; import org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil; import org.wso2.carbon.u... | import java.sql.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.impl.dao.constants.*; import org.wso2.carbon.apimgt.impl.utils.*; import org.wso2.carbon.utils.multitenancy.*; | [
"java.sql",
"org.wso2.carbon"
] | java.sql; org.wso2.carbon; | 1,773,011 |
public ServiceFuture<OutputInner> updateAsync(String resourceGroupName, String jobName, String outputName, OutputInner output, final ServiceCallback<OutputInner> serviceCallback) {
return ServiceFuture.fromHeaderResponse(updateWithServiceResponseAsync(resourceGroupName, jobName, outputName, output), service... | ServiceFuture<OutputInner> function(String resourceGroupName, String jobName, String outputName, OutputInner output, final ServiceCallback<OutputInner> serviceCallback) { return ServiceFuture.fromHeaderResponse(updateWithServiceResponseAsync(resourceGroupName, jobName, outputName, output), serviceCallback); } | /**
* Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obta... | Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition | updateAsync | {
"repo_name": "martinsawicki/azure-sdk-for-java",
"path": "azure-mgmt-streamanalytics/src/main/java/com/microsoft/azure/management/streamanalytics/implementation/OutputsInner.java",
"license": "mit",
"size": 94568
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 469,763 |
private IStatus internalDoAnalyzeWithReferences(final SubMonitor monitor) {
if (!checkConfigurationRequirements(project, GeneralConstants.ONTHEFLY_SEMANTIC_MARKER)) {
return Status.OK_STATUS;
}
if (OutOfMemoryCheck.isOutOfMemoryAlreadyReported()) {
return Status.CANCEL_STATUS;
}
List<IProject> to... | IStatus function(final SubMonitor monitor) { if (!checkConfigurationRequirements(project, GeneralConstants.ONTHEFLY_SEMANTIC_MARKER)) { return Status.OK_STATUS; } if (OutOfMemoryCheck.isOutOfMemoryAlreadyReported()) { return Status.CANCEL_STATUS; } List<IProject> tobeAnalyzed = ProjectBasedBuilder.getProjectBasedBuilde... | /**
* Internal function.
* <p>
* Builds the walking order of the projects from their referencing
* graph, and analyzes all found to be related to the actual.
*
* @param monitor
* the progress monitor to provide feedback to the user
* about the progress.
*
* @return st... | Internal function. Builds the walking order of the projects from their referencing graph, and analyzes all found to be related to the actual | internalDoAnalyzeWithReferences | {
"repo_name": "eroslevi/titan.EclipsePlug-ins",
"path": "org.eclipse.titan.designer/src/org/eclipse/titan/designer/parsers/ProjectSourceParser.java",
"license": "epl-1.0",
"size": 41558
} | [
"java.text.MessageFormat",
"java.util.ArrayList",
"java.util.Deque",
"java.util.LinkedList",
"java.util.List",
"org.eclipse.core.resources.IMarker",
"org.eclipse.core.resources.IProject",
"org.eclipse.core.runtime.IStatus",
"org.eclipse.core.runtime.Platform",
"org.eclipse.core.runtime.Status",
... | import java.text.MessageFormat; import java.util.ArrayList; import java.util.Deque; import java.util.LinkedList; import java.util.List; import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Platform; import org.ecl... | import java.text.*; import java.util.*; import org.eclipse.core.resources.*; import org.eclipse.core.runtime.*; import org.eclipse.core.runtime.preferences.*; import org.eclipse.titan.designer.*; import org.eclipse.titan.designer.consoles.*; import org.eclipse.titan.designer.core.*; import org.eclipse.titan.designer.pr... | [
"java.text",
"java.util",
"org.eclipse.core",
"org.eclipse.titan"
] | java.text; java.util; org.eclipse.core; org.eclipse.titan; | 2,401,803 |
public static StylesheetsDao getStylesheetsDao(GeoPackageCore geoPackage) {
return StylesheetsDao.create(geoPackage);
} | static StylesheetsDao function(GeoPackageCore geoPackage) { return StylesheetsDao.create(geoPackage); } | /**
* Get the Stylesheets DAO
*
* @param geoPackage
* GeoPackage
* @return stylesheets dao
*/ | Get the Stylesheets DAO | getStylesheetsDao | {
"repo_name": "ngageoint/geopackage-core-java",
"path": "src/main/java/mil/nga/geopackage/extension/im/portrayal/PortrayalExtension.java",
"license": "mit",
"size": 8694
} | [
"mil.nga.geopackage.GeoPackageCore"
] | import mil.nga.geopackage.GeoPackageCore; | import mil.nga.geopackage.*; | [
"mil.nga.geopackage"
] | mil.nga.geopackage; | 2,235,309 |
public static <ItemType, CollectionType extends IIterableCollection<IItemCallback<ItemType>>> void iterate(
final CollectionType collection, final ICollectionFilter<ItemType> filter,
final IItemCallback<ItemType> callback) {
Preconditions.checkNotNull(collection, "Error: Graph argument can't be null")... | static <ItemType, CollectionType extends IIterableCollection<IItemCallback<ItemType>>> void function( final CollectionType collection, final ICollectionFilter<ItemType> filter, final IItemCallback<ItemType> callback) { Preconditions.checkNotNull(collection, STR); Preconditions.checkNotNull(callback, STR); Preconditions... | /**
* Performs an operation on all items that pass a filter check.
*
* @param <ItemType> The type of the items in the collection.
* @param <CollectionType> The type of the collection.
*
* @param collection The collection that provides the items.
* @param filter The filter that selects the items t... | Performs an operation on all items that pass a filter check | iterate | {
"repo_name": "chubbymaggie/binnavi",
"path": "src/main/java/com/google/security/zynamics/zylib/types/common/CollectionHelpers.java",
"license": "apache-2.0",
"size": 6070
} | [
"com.google.common.base.Preconditions"
] | import com.google.common.base.Preconditions; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 1,331,482 |
protected void setHeader(String[] header) {
this.header = header;
this.headerMap = new ObjectIntOpenHashMap<String>();
for (int i = 0; i < header.length; i++) {
headerMap.put(header[i], i);
}
}
| void function(String[] header) { this.header = header; this.headerMap = new ObjectIntOpenHashMap<String>(); for (int i = 0; i < header.length; i++) { headerMap.put(header[i], i); } } | /**
* Sets the current header
* @param header
*/ | Sets the current header | setHeader | {
"repo_name": "RaffaelBild/arx",
"path": "src/main/org/deidentifier/arx/DataHandle.java",
"license": "apache-2.0",
"size": 36032
} | [
"com.carrotsearch.hppc.ObjectIntOpenHashMap"
] | import com.carrotsearch.hppc.ObjectIntOpenHashMap; | import com.carrotsearch.hppc.*; | [
"com.carrotsearch.hppc"
] | com.carrotsearch.hppc; | 2,255,116 |
protected double getHostUtilizationMad(PowerHostUtilizationHistory host) throws IllegalArgumentException {
double[] data = host.getUtilizationHistory();
if (MathUtil.countNonZeroBeginning(data) >= 12) { // 12 has been suggested as a safe value
return MathUtil.mad(data);
}
throw new IllegalArgumentExc... | double function(PowerHostUtilizationHistory host) throws IllegalArgumentException { double[] data = host.getUtilizationHistory(); if (MathUtil.countNonZeroBeginning(data) >= 12) { return MathUtil.mad(data); } throw new IllegalArgumentException(); } | /**
* Gets the host utilization MAD.
*
* @param host the host
* @return the host utilization MAD
*/ | Gets the host utilization MAD | getHostUtilizationMad | {
"repo_name": "thejotta/CloudSimPlusModificado",
"path": "cloudsim-plus/src/main/java/org/cloudbus/cloudsim/power/PowerVmAllocationPolicyMigrationMedianAbsoluteDeviation.java",
"license": "gpl-3.0",
"size": 7154
} | [
"org.cloudbus.cloudsim.util.MathUtil"
] | import org.cloudbus.cloudsim.util.MathUtil; | import org.cloudbus.cloudsim.util.*; | [
"org.cloudbus.cloudsim"
] | org.cloudbus.cloudsim; | 301,800 |
public void insertUpdate(DocumentEvent e) {
if (!dirty) {
setDirty(true);
}
}
| void function(DocumentEvent e) { if (!dirty) { setDirty(true); } } | /**
* Callback for when text is inserted into the document.
*
* @param e Information on the insertion.
*/ | Callback for when text is inserted into the document | insertUpdate | {
"repo_name": "fanruan/finereport-design",
"path": "designer_base/src/com/fr/design/gui/syntax/ui/rsyntaxtextarea/TextEditorPane.java",
"license": "gpl-3.0",
"size": 22037
} | [
"javax.swing.event.DocumentEvent"
] | import javax.swing.event.DocumentEvent; | import javax.swing.event.*; | [
"javax.swing"
] | javax.swing; | 1,147,952 |
File inputDir = new File(_options.getInputDir());
if (!inputDir.exists()) {
throw new IllegalArgumentException(String.format("The input directory '%s' doesn't exist", inputDir.toString()));
}
if (!inputDir.isDirectory()) {
throw new IllegalArgumentException(Strin... | File inputDir = new File(_options.getInputDir()); if (!inputDir.exists()) { throw new IllegalArgumentException(String.format(STR, inputDir.toString())); } if (!inputDir.isDirectory()) { throw new IllegalArgumentException(String.format(STR, inputDir.toString())); } File outputDir = new File(_options.getOutputDir()); out... | /**
* Given a directory of EU parliamentary sample text, for each file we find we want to extract the actual
* text snippets and write to separate output files, one for each language.
*
* @throws IOException
*/ | Given a directory of EU parliamentary sample text, for each file we find we want to extract the actual text snippets and write to separate output files, one for each language | run | {
"repo_name": "kkrugler/yalder",
"path": "tools/src/main/java/org/krugler/yalder/tools/EuroParlTool.java",
"license": "apache-2.0",
"size": 8410
} | [
"java.io.File",
"java.io.FileOutputStream",
"java.io.OutputStreamWriter",
"java.util.regex.Matcher",
"java.util.regex.Pattern",
"org.apache.commons.io.FileUtils",
"org.apache.commons.io.IOUtils",
"org.krugler.yalder.LanguageLocale"
] | import java.io.File; import java.io.FileOutputStream; import java.io.OutputStreamWriter; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.krugler.yalder.LanguageLocale; | import java.io.*; import java.util.regex.*; import org.apache.commons.io.*; import org.krugler.yalder.*; | [
"java.io",
"java.util",
"org.apache.commons",
"org.krugler.yalder"
] | java.io; java.util; org.apache.commons; org.krugler.yalder; | 284,496 |
public AttributedStyle getCommandStyle() {
return commandStyle;
}
} | AttributedStyle function() { return commandStyle; } } | /** Returns the style for SQLLine commands.
*
* @return Command style
*/ | Returns the style for SQLLine commands | getCommandStyle | {
"repo_name": "julianhyde/sqlline",
"path": "src/main/java/sqlline/HighlightStyle.java",
"license": "bsd-3-clause",
"size": 3331
} | [
"org.jline.utils.AttributedStyle"
] | import org.jline.utils.AttributedStyle; | import org.jline.utils.*; | [
"org.jline.utils"
] | org.jline.utils; | 1,793,018 |
@Test(expectedExceptions = IllegalArgumentException.class)
public void testGetSingleNullType() {
new RemoteConventionSource(_baseUri).getSingle(ExternalIdBundle.of("conv", "1"), VersionCorrection.LATEST, null);
} | @Test(expectedExceptions = IllegalArgumentException.class) void function() { new RemoteConventionSource(_baseUri).getSingle(ExternalIdBundle.of("conv", "1"), VersionCorrection.LATEST, null); } | /**
* Tests that the type cannot be null.
*/ | Tests that the type cannot be null | testGetSingleNullType | {
"repo_name": "McLeodMoores/starling",
"path": "projects/core-rest-client/src/test/java/com/opengamma/core/convention/impl/RemoteConventionSourceTest.java",
"license": "apache-2.0",
"size": 21252
} | [
"com.opengamma.id.ExternalIdBundle",
"com.opengamma.id.VersionCorrection",
"org.testng.annotations.Test"
] | import com.opengamma.id.ExternalIdBundle; import com.opengamma.id.VersionCorrection; import org.testng.annotations.Test; | import com.opengamma.id.*; import org.testng.annotations.*; | [
"com.opengamma.id",
"org.testng.annotations"
] | com.opengamma.id; org.testng.annotations; | 2,149,965 |
public List<PoolArenaMetric> heapArenas() {
return heapArenaMetrics;
} | List<PoolArenaMetric> function() { return heapArenaMetrics; } | /**
* Return a {@link List} of all heap {@link PoolArenaMetric}s that are provided by this pool.
*/ | Return a <code>List</code> of all heap <code>PoolArenaMetric</code>s that are provided by this pool | heapArenas | {
"repo_name": "satishsaley/netty",
"path": "buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java",
"license": "apache-2.0",
"size": 15934
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 94,082 |
void onDeleteClicked(@NotNull SshPairDto pair); | void onDeleteClicked(@NotNull SshPairDto pair); | /**
* Performs any actions appropriate in response to the user having pressed the Delete button.
*
* @param pair
* pair what need to delete
*/ | Performs any actions appropriate in response to the user having pressed the Delete button | onDeleteClicked | {
"repo_name": "dhuebner/che",
"path": "plugins/plugin-git/che-plugin-git-ssh-client/src/main/java/org/eclipse/che/ide/ext/git/ssh/client/manage/SshKeyManagerView.java",
"license": "epl-1.0",
"size": 2068
} | [
"javax.validation.constraints.NotNull",
"org.eclipse.che.api.ssh.shared.dto.SshPairDto"
] | import javax.validation.constraints.NotNull; import org.eclipse.che.api.ssh.shared.dto.SshPairDto; | import javax.validation.constraints.*; import org.eclipse.che.api.ssh.shared.dto.*; | [
"javax.validation",
"org.eclipse.che"
] | javax.validation; org.eclipse.che; | 1,637,550 |
public Map<IdentityWrapper<S>, PooledObject<S>> getAllObjects() {
return allObjects;
}
}
//--- configuration attributes ---------------------------------------------
private volatile int maxIdlePerKey =
GenericKeyedObjectPoolConfig.DEFAULT_MAX_IDLE_PER_KEY;
... | Map<IdentityWrapper<S>, PooledObject<S>> function() { return allObjects; } } private volatile int maxIdlePerKey = GenericKeyedObjectPoolConfig.DEFAULT_MAX_IDLE_PER_KEY; private volatile int minIdlePerKey = GenericKeyedObjectPoolConfig.DEFAULT_MIN_IDLE_PER_KEY; private volatile int maxTotalPerKey = GenericKeyedObjectPoo... | /**
* Obtain all the objects for the current key.
*
* @return All the objects
*/ | Obtain all the objects for the current key | getAllObjects | {
"repo_name": "angelowolf/SEW",
"path": "SistemaElecciones/lib/commons-pool/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java",
"license": "apache-2.0",
"size": 59150
} | [
"java.util.ArrayList",
"java.util.Iterator",
"java.util.List",
"java.util.Map",
"java.util.concurrent.ConcurrentHashMap",
"java.util.concurrent.atomic.AtomicInteger",
"java.util.concurrent.locks.ReadWriteLock",
"java.util.concurrent.locks.ReentrantReadWriteLock",
"org.apache.commons.pool2.KeyedPoole... | import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import org.apach... | import java.util.*; import java.util.concurrent.*; import java.util.concurrent.atomic.*; import java.util.concurrent.locks.*; import org.apache.commons.pool2.*; | [
"java.util",
"org.apache.commons"
] | java.util; org.apache.commons; | 2,059,734 |
@SuppressWarnings("unchecked")
public Type transform(Expression expression) {
TransformDefinition answer = new TransformDefinition(expression);
addOutput(answer);
return (Type) this;
} | @SuppressWarnings(STR) Type function(Expression expression) { TransformDefinition answer = new TransformDefinition(expression); addOutput(answer); return (Type) this; } | /**
* <a href="http://camel.apache.org/message-translator.html">Message Translator EIP:</a>
* Adds a processor which sets the body on the OUT message
*
* @param expression the expression used to set the body
* @return the builder
*/ | Adds a processor which sets the body on the OUT message | transform | {
"repo_name": "grange74/camel",
"path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java",
"license": "apache-2.0",
"size": 152533
} | [
"org.apache.camel.Expression"
] | import org.apache.camel.Expression; | import org.apache.camel.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,797,754 |
private void unregisterListeners(Module module)
{
if(module instanceof IdentifierUpdateListener)
{
mIdentifierUpdateNotificationBroadcaster.removeListener(((IdentifierUpdateListener)module).getIdentifierUpdateListener());
}
if(module instanceof IAudioPacketListener)
... | void function(Module module) { if(module instanceof IdentifierUpdateListener) { mIdentifierUpdateNotificationBroadcaster.removeListener(((IdentifierUpdateListener)module).getIdentifierUpdateListener()); } if(module instanceof IAudioPacketListener) { mAudioPacketBroadcaster.removeListener(((IAudioPacketListener)module).... | /**
* Registers the module as a listener to each of the broadcasters that
* provide the data interface(s) supported by the module.
*/ | Registers the module as a listener to each of the broadcasters that provide the data interface(s) supported by the module | unregisterListeners | {
"repo_name": "ImagoTrigger/sdrtrunk",
"path": "src/main/java/io/github/dsheirer/module/ProcessingChain.java",
"license": "gpl-3.0",
"size": 31033
} | [
"io.github.dsheirer.audio.IAudioPacketListener",
"io.github.dsheirer.audio.squelch.ISquelchStateListener",
"io.github.dsheirer.channel.state.IDecoderStateEventListener",
"io.github.dsheirer.controller.channel.IChannelEventListener",
"io.github.dsheirer.identifier.IdentifierUpdateListener",
"io.github.dshe... | import io.github.dsheirer.audio.IAudioPacketListener; import io.github.dsheirer.audio.squelch.ISquelchStateListener; import io.github.dsheirer.channel.state.IDecoderStateEventListener; import io.github.dsheirer.controller.channel.IChannelEventListener; import io.github.dsheirer.identifier.IdentifierUpdateListener; impo... | import io.github.dsheirer.audio.*; import io.github.dsheirer.audio.squelch.*; import io.github.dsheirer.channel.state.*; import io.github.dsheirer.controller.channel.*; import io.github.dsheirer.identifier.*; import io.github.dsheirer.message.*; import io.github.dsheirer.module.decode.event.*; import io.github.dsheirer... | [
"io.github.dsheirer"
] | io.github.dsheirer; | 2,909,755 |
public void addBitmapToCache(String data, BitmapDrawable value) {
// BEGIN_INCLUDE(add_bitmap_to_cache)
if (data == null || value == null) {
return;
}
// Add to memory cache
if (mMemoryCache != null) {
if (RecyclingBitmapDrawable.class.isInstance(value)) {
// The removed entry... | void function(String data, BitmapDrawable value) { if (data == null value == null) { return; } if (mMemoryCache != null) { if (RecyclingBitmapDrawable.class.isInstance(value)) { ((RecyclingBitmapDrawable) value).setIsCached(true); } mMemoryCache.put(data, value); } synchronized (mDiskCacheLock) { if (mDiskLruCache != n... | /**
* Adds a bitmap to both memory and disk cache.
*
* @param data Unique identifier for the bitmap to store
* @param value The bitmap drawable to store
*/ | Adds a bitmap to both memory and disk cache | addBitmapToCache | {
"repo_name": "snailee/QGallery",
"path": "src/com/example/android/displayingbitmaps/util/ImageCache.java",
"license": "apache-2.0",
"size": 25839
} | [
"android.graphics.drawable.BitmapDrawable",
"com.example.android.common.logger.Log",
"java.io.IOException",
"java.io.OutputStream"
] | import android.graphics.drawable.BitmapDrawable; import com.example.android.common.logger.Log; import java.io.IOException; import java.io.OutputStream; | import android.graphics.drawable.*; import com.example.android.common.logger.*; import java.io.*; | [
"android.graphics",
"com.example.android",
"java.io"
] | android.graphics; com.example.android; java.io; | 2,807,981 |
public void updateThrottleTierPermissions(String tierName, String permissionType, String roles) throws
APIManagementException {
apiMgtDAO.updateThrottleTierPermissions(tierName, permissionType, roles, tenantId);
} | void function(String tierName, String permissionType, String roles) throws APIManagementException { apiMgtDAO.updateThrottleTierPermissions(tierName, permissionType, roles, tenantId); } | /**
* Update the Tier Permissions
*
* @param tierName Tier Name
* @param permissionType Permission Type
* @param roles Roles
* @throws org.wso2.carbon.apimgt.api.APIManagementException If failed to update subscription status
*/ | Update the Tier Permissions | updateThrottleTierPermissions | {
"repo_name": "Rajith90/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java",
"license": "apache-2.0",
"size": 520854
} | [
"org.wso2.carbon.apimgt.api.APIManagementException"
] | import org.wso2.carbon.apimgt.api.APIManagementException; | import org.wso2.carbon.apimgt.api.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 707,895 |
@Nonnull
ISchematronXSLTBasedResource setEntityResolver (@Nullable EntityResolver aEntityResolver); | ISchematronXSLTBasedResource setEntityResolver (@Nullable EntityResolver aEntityResolver); | /**
* Set the XML entity resolver to be used when reading the Schematron or the
* XML to be validated. This can only be set before the Schematron is bound.
* If it is already bound an exception is thrown to indicate the unnecessity
* of the call.
*
* @param aEntityResolver
* The entity resol... | Set the XML entity resolver to be used when reading the Schematron or the XML to be validated. This can only be set before the Schematron is bound. If it is already bound an exception is thrown to indicate the unnecessity of the call | setEntityResolver | {
"repo_name": "phax/ph-schematron",
"path": "ph-schematron-api/src/main/java/com/helger/schematron/api/xslt/ISchematronXSLTBasedResource.java",
"license": "apache-2.0",
"size": 3824
} | [
"javax.annotation.Nullable",
"org.xml.sax.EntityResolver"
] | import javax.annotation.Nullable; import org.xml.sax.EntityResolver; | import javax.annotation.*; import org.xml.sax.*; | [
"javax.annotation",
"org.xml.sax"
] | javax.annotation; org.xml.sax; | 992,477 |
private Component createRightContentSideNote() {
VerticalLayout sideNoteLayout = new VerticalLayout();
setSizeFull();
sideNoteLayout.setStyleName(ValoTheme.LAYOUT_CARD);
sideNoteLayout.addStyleName("student-submit-coursework-side-note-wrapper");
// Create He... | Component function() { VerticalLayout sideNoteLayout = new VerticalLayout(); setSizeFull(); sideNoteLayout.setStyleName(ValoTheme.LAYOUT_CARD); sideNoteLayout.addStyleName(STR); final HorizontalLayout layoutHeader = new HorizontalLayout(); layoutHeader.addStyleName(STR); layoutHeader.addStyleName(STR); layoutHeader.set... | /**
* Builds a side note panel on the right for information about the chosen
* file extension and how to convert their non-pdf files to pdf.
*
* @return Component object
*/ | Builds a side note panel on the right for information about the chosen file extension and how to convert their non-pdf files to pdf | createRightContentSideNote | {
"repo_name": "Daytron/revworks",
"path": "src/main/java/com/github/daytron/revworks/view/main/student/StudentSubmitCourseworkView.java",
"license": "apache-2.0",
"size": 12919
} | [
"com.github.daytron.revworks.data.FontAwesomeIcon",
"com.vaadin.shared.ui.label.ContentMode",
"com.vaadin.ui.Component",
"com.vaadin.ui.HorizontalLayout",
"com.vaadin.ui.Label",
"com.vaadin.ui.VerticalLayout",
"com.vaadin.ui.themes.ValoTheme"
] | import com.github.daytron.revworks.data.FontAwesomeIcon; import com.vaadin.shared.ui.label.ContentMode; import com.vaadin.ui.Component; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.themes.ValoTheme; | import com.github.daytron.revworks.data.*; import com.vaadin.shared.ui.label.*; import com.vaadin.ui.*; import com.vaadin.ui.themes.*; | [
"com.github.daytron",
"com.vaadin.shared",
"com.vaadin.ui"
] | com.github.daytron; com.vaadin.shared; com.vaadin.ui; | 576,529 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.