method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public void attributeDecl(String elementName, String attributeName,
String type, String[] enumeration,
String defaultType, XMLString defaultValue,
XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException {
if (type != XMLSymbols.fCDATASymbol && defaultValue != null) {
... | void function(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException { if (type != XMLSymbols.fCDATASymbol && defaultValue != null) { normalizeDefaultAttrValue(defaultValue); } ... | /**
* An attribute declaration.
*
* @param elementName The name of the element that this attribute
* is associated with.
* @param attributeName The name of the attribute.
* @param type The attribute type. This value will be one of
* ... | An attribute declaration | attributeDecl | {
"repo_name": "JetBrains/jdk8u_jaxp",
"path": "src/com/sun/xml/internal/stream/dtd/nonvalidating/DTDGrammar.java",
"license": "gpl-2.0",
"size": 32798
} | [
"com.sun.org.apache.xerces.internal.util.XMLSymbols",
"com.sun.org.apache.xerces.internal.xni.Augmentations",
"com.sun.org.apache.xerces.internal.xni.XMLString",
"com.sun.org.apache.xerces.internal.xni.XNIException"
] | import com.sun.org.apache.xerces.internal.util.XMLSymbols; import com.sun.org.apache.xerces.internal.xni.Augmentations; import com.sun.org.apache.xerces.internal.xni.XMLString; import com.sun.org.apache.xerces.internal.xni.XNIException; | import com.sun.org.apache.xerces.internal.util.*; import com.sun.org.apache.xerces.internal.xni.*; | [
"com.sun.org"
] | com.sun.org; | 1,909,830 |
public ArrayList<DHCPBinding> cleanExpiredLeases() {
ArrayList<DHCPBinding> newAvailableLeases = new ArrayList<DHCPBinding>();
for (DHCPBinding binding : DHCP_POOL) {
// isLeaseExpired() automatically excludes configured static leases
if (binding.isLeaseExpired() && binding.isActiveLease()) {
this.canc... | ArrayList<DHCPBinding> function() { ArrayList<DHCPBinding> newAvailableLeases = new ArrayList<DHCPBinding>(); for (DHCPBinding binding : DHCP_POOL) { if (binding.isLeaseExpired() && binding.isActiveLease()) { this.cancelLeaseOfIPv4(binding.getIPv4Address()); this.setPoolAvailability(this.getPoolAvailability() + 1); thi... | /**
* Make the addresses of expired leases available and reset the lease times.
* @return {@code ArrayList<DHCPBinding>}: A list of the bindings that are now available
*/ | Make the addresses of expired leases available and reset the lease times | cleanExpiredLeases | {
"repo_name": "telestack/Floodlight",
"path": "src/main/java/net/floodlightcontroller/dhcpserver/DHCPPool.java",
"license": "apache-2.0",
"size": 13738
} | [
"java.util.ArrayList",
"net.floodlightcontroller.dhcpserver.DHCPBinding"
] | import java.util.ArrayList; import net.floodlightcontroller.dhcpserver.DHCPBinding; | import java.util.*; import net.floodlightcontroller.dhcpserver.*; | [
"java.util",
"net.floodlightcontroller.dhcpserver"
] | java.util; net.floodlightcontroller.dhcpserver; | 1,137,446 |
/////////////////////////////////////////////////////////////////
// LANGUAGES /////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
public boolean canLinkLanguage(ArticleLanguage language);
| boolean function(ArticleLanguage language); | /**
* Checks whether the specified language is supported by this
* linker, given its current settings (parameters, model...).
*
* @param language
* The language to be checked.
* @return
* {@code true} iff this linker supports the specified
* language, with its current parameters (model, etc.).
... | Checks whether the specified language is supported by this linker, given its current settings (parameters, model...) | canLinkLanguage | {
"repo_name": "CompNet/TranspoloSearch",
"path": "src/fr/univavignon/transpolosearch/processing/InterfaceLinker.java",
"license": "gpl-2.0",
"size": 4279
} | [
"fr.univavignon.transpolosearch.data.article.ArticleLanguage"
] | import fr.univavignon.transpolosearch.data.article.ArticleLanguage; | import fr.univavignon.transpolosearch.data.article.*; | [
"fr.univavignon.transpolosearch"
] | fr.univavignon.transpolosearch; | 101,931 |
public List<Address> getFromLocation(double latitude, double longitude, int maxResults)
throws IOException {
String url = mServiceUrl
+ "reverse?"
+ "format=json"
+ "&accept-language=" + mLocale.getLanguage()
//+ "&addressdetails=1"
+ "&lat=" + latitude
+ "&lon=" + longitude;
Log.d(... | List<Address> function(double latitude, double longitude, int maxResults) throws IOException { String url = mServiceUrl + STR + STR + STR + mLocale.getLanguage() + "&lat=" + latitude + "&lon=" + longitude; Log.d(BonusPackHelper.LOG_TAG, STR+url); String result = BonusPackHelper.requestStringFromUrl(url); if (result == ... | /**
* Equivalent to Geocoder::getFromLocation(double latitude, double longitude, int maxResults).
*/ | Equivalent to Geocoder::getFromLocation(double latitude, double longitude, int maxResults) | getFromLocation | {
"repo_name": "dimy93/sports-cubed-android",
"path": "OSMBonusPack/src/org/osmdroid/bonuspack/location/GeocoderNominatim.java",
"license": "mpl-2.0",
"size": 9092
} | [
"android.location.Address",
"android.util.Log",
"java.io.IOException",
"java.util.ArrayList",
"java.util.List",
"org.json.JSONException",
"org.json.JSONObject",
"org.osmdroid.bonuspack.utils.BonusPackHelper"
] | import android.location.Address; import android.util.Log; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.json.JSONException; import org.json.JSONObject; import org.osmdroid.bonuspack.utils.BonusPackHelper; | import android.location.*; import android.util.*; import java.io.*; import java.util.*; import org.json.*; import org.osmdroid.bonuspack.utils.*; | [
"android.location",
"android.util",
"java.io",
"java.util",
"org.json",
"org.osmdroid.bonuspack"
] | android.location; android.util; java.io; java.util; org.json; org.osmdroid.bonuspack; | 1,044,502 |
public static void main(String[] args) {
try {
Conecsion dialog = new Conecsion();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
public Conecsion() {
setModal(true);
setBounds(100, 100, 315, 223);
... | static void function(String[] args) { try { Conecsion dialog = new Conecsion(); dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); dialog.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } public Conecsion() { setModal(true); setBounds(100, 100, 315, 223); getContentPane().setLayout(new BorderLa... | /**
* Launch the application.
*/ | Launch the application | main | {
"repo_name": "gilmh/PracticaMySQL",
"path": "PracticaBaseDatosHector2/src/org/hectordam/practicahector/gui/Conecsion.java",
"license": "gpl-2.0",
"size": 3711
} | [
"java.awt.BorderLayout",
"javax.swing.JDialog",
"javax.swing.JLabel",
"javax.swing.JTextField",
"javax.swing.border.EmptyBorder"
] | import java.awt.BorderLayout; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.border.EmptyBorder; | import java.awt.*; import javax.swing.*; import javax.swing.border.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 2,423,311 |
private void beginEntity(long id, OSMEntity osmEntity) throws IOException {
long idDelta = id - prevId;
if (idDelta == 0) {
LOG.error("The same entity ID is being written twice in a row. This will prematurely terminate a block.");
}
vout.writeSInt64(idDelta);
prev... | void function(long id, OSMEntity osmEntity) throws IOException { long idDelta = id - prevId; if (idDelta == 0) { LOG.error(STR); } vout.writeSInt64(idDelta); prevId = id; writeTags(osmEntity); } | /**
* Called at the beginning of each node, way, or relation.
* Writes the fields common to all OSM entities (ID and tags) and increments the entity counter.
*/ | Called at the beginning of each node, way, or relation. Writes the fields common to all OSM entities (ID and tags) and increments the entity counter | beginEntity | {
"repo_name": "conveyal/r5",
"path": "src/main/java/com/conveyal/osmlib/VexOutput.java",
"license": "mit",
"size": 6704
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,689,955 |
public OutputHandler choosePtoPOutputHandler(SIBUuid12 linkUuid)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "choosePtoPOutputHandler", linkUuid);
OutputHandler result = null;
LinkSelection s = null;
if (... | OutputHandler function(SIBUuid12 linkUuid) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, STR, linkUuid); OutputHandler result = null; LinkSelection s = null; if (isLocalMsgsItemStream()) { result = (OutputHandler) getLocalPtoPConsumerManager(); result.setW... | /**
* Method choosePtoPOutputHandler
*
* <p> Choose OutputHandler for Link.
*
* @param linkUuid
* @return
* @throws SIResourceException
*/ | Method choosePtoPOutputHandler Choose OutputHandler for Link | choosePtoPOutputHandler | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/LinkState.java",
"license": "epl-1.0",
"size": 22596
} | [
"com.ibm.websphere.ras.TraceComponent",
"com.ibm.websphere.sib.exception.SIResourceException",
"com.ibm.ws.sib.processor.SIMPConstants",
"com.ibm.ws.sib.processor.impl.PtoPOutputHandler",
"com.ibm.ws.sib.processor.impl.interfaces.OutputHandler",
"com.ibm.ws.sib.trm.links.LinkSelection",
"com.ibm.ws.sib.... | import com.ibm.websphere.ras.TraceComponent; import com.ibm.websphere.sib.exception.SIResourceException; import com.ibm.ws.sib.processor.SIMPConstants; import com.ibm.ws.sib.processor.impl.PtoPOutputHandler; import com.ibm.ws.sib.processor.impl.interfaces.OutputHandler; import com.ibm.ws.sib.trm.links.LinkSelection; im... | import com.ibm.websphere.ras.*; import com.ibm.websphere.sib.exception.*; import com.ibm.ws.sib.processor.*; import com.ibm.ws.sib.processor.impl.*; import com.ibm.ws.sib.processor.impl.interfaces.*; import com.ibm.ws.sib.trm.links.*; import com.ibm.ws.sib.utils.*; import com.ibm.ws.sib.utils.ras.*; | [
"com.ibm.websphere",
"com.ibm.ws"
] | com.ibm.websphere; com.ibm.ws; | 523,707 |
public Shape getGlyphOutline(int glyphIndex)
{
AffineTransform tx, glyphTx;
GeneralPath path;
validate();
if ((transforms != null)
&& ((glyphTx = transforms[glyphIndex]) != null))
{
tx = new AffineTransform(transform);
tx.concatenate(glyphTx);
}
else
tx = tra... | Shape function(int glyphIndex) { AffineTransform tx, glyphTx; GeneralPath path; validate(); if ((transforms != null) && ((glyphTx = transforms[glyphIndex]) != null)) { tx = new AffineTransform(transform); tx.concatenate(glyphTx); } else tx = transform; path = fontDelegate.getGlyphOutline(glyphs[glyphIndex], fontSize, t... | /**
* Determines the shape of the specified glyph.
*
* @throws IndexOutOfBoundsException if <code>glyphIndex</code> is
* not in the range <code[0 .. getNumGlyphs()]</code>.
*/ | Determines the shape of the specified glyph | getGlyphOutline | {
"repo_name": "shaotuanchen/sunflower_exp",
"path": "tools/source/gcc-4.2.4/libjava/classpath/gnu/java/awt/font/GNUGlyphVector.java",
"license": "bsd-3-clause",
"size": 17498
} | [
"java.awt.Shape",
"java.awt.geom.AffineTransform",
"java.awt.geom.GeneralPath"
] | import java.awt.Shape; import java.awt.geom.AffineTransform; import java.awt.geom.GeneralPath; | import java.awt.*; import java.awt.geom.*; | [
"java.awt"
] | java.awt; | 1,949,031 |
public void writeTo(DataOutput out) throws Exception {
if (log.isDebugEnabled()) {
log.debug("SimpleToken writeTo()");
}
Util.writeString(this.token, out);
} | void function(DataOutput out) throws Exception { if (log.isDebugEnabled()) { log.debug(STR); } Util.writeString(this.token, out); } | /**
* Required to serialize the object to pass across the wire
*
*
*
* @param out
* @throws java.io.IOException
*/ | Required to serialize the object to pass across the wire | writeTo | {
"repo_name": "tristantarrant/JGroups",
"path": "src/org/jgroups/auth/FixedMembershipToken.java",
"license": "lgpl-2.1",
"size": 4899
} | [
"java.io.DataOutput",
"org.jgroups.util.Util"
] | import java.io.DataOutput; import org.jgroups.util.Util; | import java.io.*; import org.jgroups.util.*; | [
"java.io",
"org.jgroups.util"
] | java.io; org.jgroups.util; | 2,894,651 |
public static void showToast(Context context, String text) {
Toast.makeText(context, text, Toast.LENGTH_SHORT).show();
} | static void function(Context context, String text) { Toast.makeText(context, text, Toast.LENGTH_SHORT).show(); } | /**
* shows a toast
*
* @param context context of calling activity
* @param text text to be displayed
*/ | shows a toast | showToast | {
"repo_name": "ir2pid/MarvelCharacterLibrary",
"path": "app/src/main/java/noisyninja/com/marvelcharacterlibrary/utils/NoisyUtils.java",
"license": "apache-2.0",
"size": 16508
} | [
"android.content.Context",
"android.widget.Toast"
] | import android.content.Context; import android.widget.Toast; | import android.content.*; import android.widget.*; | [
"android.content",
"android.widget"
] | android.content; android.widget; | 2,386,331 |
@Override
void transcribeActionPerformed()
{
// Get input text.
final String inputString = inputUI.getText();
final LanguageLetterList inputList = new LanguageLetterList(inputString);
System.out.println("inputList = " + inputList);
// Transcribe to phonemes.
... | void transcribeActionPerformed() { final String inputString = inputUI.getText(); final LanguageLetterList inputList = new LanguageLetterList(inputString); System.out.println(STR + inputList); final PhonemeList phonemes = getPhoneticTranscriber().transcribeForward(inputList); phonemeOutputUI.setText(phonemes.toString())... | /**
* Perform the transcribe action.
*/ | Perform the transcribe action | transcribeActionPerformed | {
"repo_name": "jmthompson2015/runetranscriber",
"path": "swingui/src/main/java/org/runetranscriber/swingui/LanguageToRuneTranscriberUI.java",
"license": "mit",
"size": 11196
} | [
"org.runetranscriber.core.FontLetterList",
"org.runetranscriber.core.LanguageLetterList",
"org.runetranscriber.core.PhonemeList",
"org.runetranscriber.core.RuneList"
] | import org.runetranscriber.core.FontLetterList; import org.runetranscriber.core.LanguageLetterList; import org.runetranscriber.core.PhonemeList; import org.runetranscriber.core.RuneList; | import org.runetranscriber.core.*; | [
"org.runetranscriber.core"
] | org.runetranscriber.core; | 2,482,374 |
public void setLabelColor(@ColorRes int colorResource)
{
int color = this.getResources().getColor(colorResource);
this.color.setBackgroundColor(color);
} | void function(@ColorRes int colorResource) { int color = this.getResources().getColor(colorResource); this.color.setBackgroundColor(color); } | /**
* Set the highlight color for the panel used to indicate the category/type.
*
* @param colorResource The color resource ID to display.
*/ | Set the highlight color for the panel used to indicate the category/type | setLabelColor | {
"repo_name": "MaxVandervelde/anime-detour-android",
"path": "src/main/java/com/animedetour/android/schedule/PanelView.java",
"license": "apache-2.0",
"size": 5060
} | [
"android.support.annotation.ColorRes"
] | import android.support.annotation.ColorRes; | import android.support.annotation.*; | [
"android.support"
] | android.support; | 1,490,766 |
ECReports getPollReports();
| ECReports getPollReports(); | /**
* This method delivers the ec reports which have been generated because
* of a poll.
* @return ec reports
*/ | This method delivers the ec reports which have been generated because of a poll | getPollReports | {
"repo_name": "Auto-ID-Lab-Japan/fosstrak-fc",
"path": "fc-server/src/main/java/org/fosstrak/ale/server/ReportsGenerator.java",
"license": "lgpl-2.1",
"size": 3864
} | [
"org.fosstrak.ale.xsd.ale.epcglobal.ECReports"
] | import org.fosstrak.ale.xsd.ale.epcglobal.ECReports; | import org.fosstrak.ale.xsd.ale.epcglobal.*; | [
"org.fosstrak.ale"
] | org.fosstrak.ale; | 2,305,358 |
VirtualFile[] getSourceFolderFiles(); | VirtualFile[] getSourceFolderFiles(); | /**
* Returns the list of directories for valid source roots under this content root.
*
* @return list of all valid source roots.
*/ | Returns the list of directories for valid source roots under this content root | getSourceFolderFiles | {
"repo_name": "jexp/idea2",
"path": "platform/lang-api/src/com/intellij/openapi/roots/ContentEntry.java",
"license": "apache-2.0",
"size": 4442
} | [
"com.intellij.openapi.vfs.VirtualFile"
] | import com.intellij.openapi.vfs.VirtualFile; | import com.intellij.openapi.vfs.*; | [
"com.intellij.openapi"
] | com.intellij.openapi; | 2,814,593 |
protected static void constraintToString(State state, StringBuffer buffer, Constraint c,
Query q, DatabaseSchema schema, int safeness,
boolean loseBrackets) throws ObjectStoreException {
if ((safeness != SAFENESS_SAFE) && (safeness != SAFENESS_ANTISAFE)
&& (safeness !... | static void function(State state, StringBuffer buffer, Constraint c, Query q, DatabaseSchema schema, int safeness, boolean loseBrackets) throws ObjectStoreException { if ((safeness != SAFENESS_SAFE) && (safeness != SAFENESS_ANTISAFE) && (safeness != SAFENESS_UNSAFE)) { throw new ObjectStoreException(STR + safeness); } ... | /**
* Converts a Constraint object into a String suitable for putting in an SQL query.
*
* @param state the current SqlGenerator state
* @param buffer the StringBuffer to place text into
* @param c the Constraint object
* @param q the Query
* @param schema the DatabaseSchema in which ... | Converts a Constraint object into a String suitable for putting in an SQL query | constraintToString | {
"repo_name": "drhee/toxoMine",
"path": "intermine/objectstore/main/src/org/intermine/objectstore/intermine/SqlGenerator.java",
"license": "lgpl-2.1",
"size": 134620
} | [
"org.intermine.objectstore.ObjectStoreException",
"org.intermine.objectstore.query.BagConstraint",
"org.intermine.objectstore.query.ClassConstraint",
"org.intermine.objectstore.query.Constraint",
"org.intermine.objectstore.query.ConstraintSet",
"org.intermine.objectstore.query.ContainsConstraint",
"org.... | import org.intermine.objectstore.ObjectStoreException; import org.intermine.objectstore.query.BagConstraint; import org.intermine.objectstore.query.ClassConstraint; import org.intermine.objectstore.query.Constraint; import org.intermine.objectstore.query.ConstraintSet; import org.intermine.objectstore.query.ContainsCon... | import org.intermine.objectstore.*; import org.intermine.objectstore.query.*; | [
"org.intermine.objectstore"
] | org.intermine.objectstore; | 166,137 |
public static void visit(
@NonNull ManifestMerger2.MergeType mergeType,
@NonNull XmlDocument xmlDocument,
@NonNull KeyBasedValueResolver<String> valueProvider,
@NonNull MergingReport.Builder mergingReportBuilder) {
visit(mergeType, xmlDocument.getRootNode(), ... | static void function( @NonNull ManifestMerger2.MergeType mergeType, @NonNull XmlDocument xmlDocument, @NonNull KeyBasedValueResolver<String> valueProvider, @NonNull MergingReport.Builder mergingReportBuilder) { visit(mergeType, xmlDocument.getRootNode(), valueProvider, mergingReportBuilder); } | /**
* Visits a document's entire tree and check each attribute for a placeholder existence.
* If one is found, delegate to the provided {@link KeyBasedValueResolver} to provide a value
* for the placeholder.
* <p>
* If no value is provided, an error will be generated.
*
* @param xmlDo... | Visits a document's entire tree and check each attribute for a placeholder existence. If one is found, delegate to the provided <code>KeyBasedValueResolver</code> to provide a value for the placeholder. If no value is provided, an error will be generated | visit | {
"repo_name": "clonetwin26/buck",
"path": "third-party/java/aosp/src/com/android/manifmerger/PlaceholderHandler.java",
"license": "apache-2.0",
"size": 6647
} | [
"com.android.annotations.NonNull"
] | import com.android.annotations.NonNull; | import com.android.annotations.*; | [
"com.android.annotations"
] | com.android.annotations; | 2,637,662 |
private Set<DependencyManager> getDependencyManagers() {
return scriptEngines.entrySet().stream()
.map(Map.Entry::getValue)
.filter(se -> se instanceof DependencyManager)
.map(se -> (DependencyManager) se)
.collect(Collectors.<DependencyManager... | Set<DependencyManager> function() { return scriptEngines.entrySet().stream() .map(Map.Entry::getValue) .filter(se -> se instanceof DependencyManager) .map(se -> (DependencyManager) se) .collect(Collectors.<DependencyManager>toSet()); } | /**
* Get the set of {@code ScriptEngine} that implement {@link DependencyManager} interface.
*/ | Get the set of ScriptEngine that implement <code>DependencyManager</code> interface | getDependencyManagers | {
"repo_name": "Lab41/tinkerpop3",
"path": "gremlin-groovy/src/main/java/com/tinkerpop/gremlin/groovy/engine/ScriptEngines.java",
"license": "apache-2.0",
"size": 11319
} | [
"com.tinkerpop.gremlin.groovy.jsr223.DependencyManager",
"java.util.Map",
"java.util.Set",
"java.util.stream.Collectors"
] | import com.tinkerpop.gremlin.groovy.jsr223.DependencyManager; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; | import com.tinkerpop.gremlin.groovy.jsr223.*; import java.util.*; import java.util.stream.*; | [
"com.tinkerpop.gremlin",
"java.util"
] | com.tinkerpop.gremlin; java.util; | 2,241,065 |
public void deleteAllROIs(int level)
{
if (!canDelete()) return;
List<ROIData> list;
if (model.isMember()) level = MeasurementViewer.ME;
list = model.getROIData(level);
if (list.size() == 0) return;
List<DeletableObject> l = new ArrayList<DeletableObject>();
Iterator<ROIData> i = list.iterator();
RO... | void function(int level) { if (!canDelete()) return; List<ROIData> list; if (model.isMember()) level = MeasurementViewer.ME; list = model.getROIData(level); if (list.size() == 0) return; List<DeletableObject> l = new ArrayList<DeletableObject>(); Iterator<ROIData> i = list.iterator(); ROIData roi; SecurityContext ctx =... | /**
* Implemented as specified by the {@link MeasurementViewer} interface.
* @see MeasurementViewer#deleteAllROIs()
*/ | Implemented as specified by the <code>MeasurementViewer</code> interface | deleteAllROIs | {
"repo_name": "jballanc/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/agents/measurement/view/MeasurementViewerComponent.java",
"license": "gpl-2.0",
"size": 32914
} | [
"java.util.ArrayList",
"java.util.Iterator",
"java.util.List",
"org.openmicroscopy.shoola.agents.measurement.MeasurementAgent",
"org.openmicroscopy.shoola.env.data.model.DeletableObject",
"org.openmicroscopy.shoola.env.data.util.SecurityContext",
"org.openmicroscopy.shoola.env.log.LogMessage",
"org.op... | import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.openmicroscopy.shoola.agents.measurement.MeasurementAgent; import org.openmicroscopy.shoola.env.data.model.DeletableObject; import org.openmicroscopy.shoola.env.data.util.SecurityContext; import org.openmicroscopy.shoola.env.log.Lo... | import java.util.*; import org.openmicroscopy.shoola.agents.measurement.*; import org.openmicroscopy.shoola.env.data.model.*; import org.openmicroscopy.shoola.env.data.util.*; import org.openmicroscopy.shoola.env.log.*; import org.openmicroscopy.shoola.util.roi.figures.*; | [
"java.util",
"org.openmicroscopy.shoola"
] | java.util; org.openmicroscopy.shoola; | 1,876,938 |
public void setFeature(String name, boolean value)
throws SAXNotRecognizedException, SAXNotSupportedException {
if (name.equals(Namespaces.SAX_NAMESPACES)
|| name.equals(Namespaces.SAX_NAMESPACES_PREFIXES))
{throw new SAXNotSupportedException(name);}
throw new SAXNotRecognizedException(name);
} | void function(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name.equals(Namespaces.SAX_NAMESPACES) name.equals(Namespaces.SAX_NAMESPACES_PREFIXES)) {throw new SAXNotSupportedException(name);} throw new SAXNotRecognizedException(name); } | /**
* Sets the feature attribute of the Serializer object
*
*@param name The new feature value
*@param value The new feature value
*@exception SAXNotRecognizedException Description of the Exception
*@exception SAXNotSupportedException Description of... | Sets the feature attribute of the Serializer object | setFeature | {
"repo_name": "MjAbuz/exist",
"path": "src/org/exist/storage/serializers/Serializer.java",
"license": "lgpl-2.1",
"size": 47108
} | [
"org.exist.Namespaces",
"org.xml.sax.SAXNotRecognizedException",
"org.xml.sax.SAXNotSupportedException"
] | import org.exist.Namespaces; import org.xml.sax.SAXNotRecognizedException; import org.xml.sax.SAXNotSupportedException; | import org.exist.*; import org.xml.sax.*; | [
"org.exist",
"org.xml.sax"
] | org.exist; org.xml.sax; | 1,205,670 |
public static void startHouseKeepingThreads() throws AndesException {
//reload exchanges/queues/bindings and subscriptions
AndesRecoveryTask andesRecoveryTask = new AndesRecoveryTask();
Integer scheduledPeriod = AndesConfigurationManager.readValue
(AndesConfiguration.PERFORMA... | static void function() throws AndesException { AndesRecoveryTask andesRecoveryTask = new AndesRecoveryTask(); Integer scheduledPeriod = AndesConfigurationManager.readValue (AndesConfiguration.PERFORMANCE_TUNING_FAILOVER_VHOST_SYNC_TASK_INTERVAL); andesRecoveryTaskScheduler.scheduleAtFixedRate(andesRecoveryTask, schedul... | /**
* start andes house keeping threads for the broker
*
* @throws AndesException
*/ | start andes house keeping threads for the broker | startHouseKeepingThreads | {
"repo_name": "IndunilRathnayake/andes",
"path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/AndesKernelBoot.java",
"license": "apache-2.0",
"size": 18406
} | [
"java.util.concurrent.TimeUnit",
"org.wso2.andes.configuration.AndesConfigurationManager",
"org.wso2.andes.configuration.enums.AndesConfiguration",
"org.wso2.andes.server.ClusterResourceHolder"
] | import java.util.concurrent.TimeUnit; import org.wso2.andes.configuration.AndesConfigurationManager; import org.wso2.andes.configuration.enums.AndesConfiguration; import org.wso2.andes.server.ClusterResourceHolder; | import java.util.concurrent.*; import org.wso2.andes.configuration.*; import org.wso2.andes.configuration.enums.*; import org.wso2.andes.server.*; | [
"java.util",
"org.wso2.andes"
] | java.util; org.wso2.andes; | 2,326,304 |
void checkAttributeSemantics(PerunSession sess, Vo vo, Attribute attribute) throws PrivilegeException, VoNotExistsException, WrongAttributeAssignmentException, AttributeNotExistsException, WrongReferenceAttributeValueException; | void checkAttributeSemantics(PerunSession sess, Vo vo, Attribute attribute) throws PrivilegeException, VoNotExistsException, WrongAttributeAssignmentException, AttributeNotExistsException, WrongReferenceAttributeValueException; | /**
* Check if value of this vo attribute has valid semantics.
* <p>
* PRIVILEGE: Check attribute only when principal has access to write on it.
*
* @param sess perun session
* @param vo vo for which you want to check validity of attribute
* @param attribute attribute to check
* @throws Inte... | Check if value of this vo attribute has valid semantics. | checkAttributeSemantics | {
"repo_name": "zoraseb/perun",
"path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/AttributesManager.java",
"license": "bsd-2-clause",
"size": 265364
} | [
"cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException",
"cz.metacentrum.perun.core.api.exceptions.PrivilegeException",
"cz.metacentrum.perun.core.api.exceptions.VoNotExistsException",
"cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException",
"cz.metacentrum.perun.core.api... | import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException; import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import cz.metacentrum.perun.core.api.exceptions.VoNotExistsException; import cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException; import cz.metacentrum.... | import cz.metacentrum.perun.core.api.exceptions.*; | [
"cz.metacentrum.perun"
] | cz.metacentrum.perun; | 1,122,867 |
public static double computeSemiJoinSelectivity(RelMetadataQuery mq,
RelNode factRel, RelNode dimRel, List<Integer> factKeyList,
List<Integer> dimKeyList) {
ImmutableBitSet.Builder factKeys = ImmutableBitSet.builder();
for (int factCol : factKeyList) {
factKeys.set(factCol);
}
Immuta... | static double function(RelMetadataQuery mq, RelNode factRel, RelNode dimRel, List<Integer> factKeyList, List<Integer> dimKeyList) { ImmutableBitSet.Builder factKeys = ImmutableBitSet.builder(); for (int factCol : factKeyList) { factKeys.set(factCol); } ImmutableBitSet.Builder dimKeyBuilder = ImmutableBitSet.builder(); ... | /**
* Computes the selectivity of a semijoin filter if it is applied on a fact
* table. The computation is based on the selectivity of the dimension
* table/columns and the number of distinct values in the fact table
* columns.
*
* @param factRel fact table participating in the semijoin
* @para... | Computes the selectivity of a semijoin filter if it is applied on a fact table. The computation is based on the selectivity of the dimension table/columns and the number of distinct values in the fact table columns | computeSemiJoinSelectivity | {
"repo_name": "xhoong/incubator-calcite",
"path": "core/src/main/java/org/apache/calcite/rel/metadata/RelMdUtil.java",
"license": "apache-2.0",
"size": 33064
} | [
"java.util.List",
"org.apache.calcite.rel.RelNode",
"org.apache.calcite.util.ImmutableBitSet"
] | import java.util.List; import org.apache.calcite.rel.RelNode; import org.apache.calcite.util.ImmutableBitSet; | import java.util.*; import org.apache.calcite.rel.*; import org.apache.calcite.util.*; | [
"java.util",
"org.apache.calcite"
] | java.util; org.apache.calcite; | 288,858 |
public static int streamId(final UnsafeBuffer termBuffer, final int frameOffset)
{
return termBuffer.getInt(frameOffset + STREAM_ID_FIELD_OFFSET, LITTLE_ENDIAN);
} | static int function(final UnsafeBuffer termBuffer, final int frameOffset) { return termBuffer.getInt(frameOffset + STREAM_ID_FIELD_OFFSET, LITTLE_ENDIAN); } | /**
* Get the stream-id field from the header.
*
* @param termBuffer containing the header.
* @param frameOffset in the buffer where the header starts.
* @return the stream-id field from the header.
*/ | Get the stream-id field from the header | streamId | {
"repo_name": "real-logic/Aeron",
"path": "aeron-client/src/main/java/io/aeron/protocol/DataHeaderFlyweight.java",
"license": "apache-2.0",
"size": 10197
} | [
"org.agrona.concurrent.UnsafeBuffer"
] | import org.agrona.concurrent.UnsafeBuffer; | import org.agrona.concurrent.*; | [
"org.agrona.concurrent"
] | org.agrona.concurrent; | 958,696 |
@Test
public void testDayTimeDuration_Equal_V1() {
XPathDayTimeDuration dur1 = new XPathDayTimeDuration(1, 3, 5, 12, 38);
XPathDayTimeDuration dur2 = new XPathDayTimeDuration(1, 3, 5, 12, 38);
XPathDayTimeDuration differentDur = new XPathDayTimeDuration(-1, 4, 7, 5, 33);
... | void function() { XPathDayTimeDuration dur1 = new XPathDayTimeDuration(1, 3, 5, 12, 38); XPathDayTimeDuration dur2 = new XPathDayTimeDuration(1, 3, 5, 12, 38); XPathDayTimeDuration differentDur = new XPathDayTimeDuration(-1, 4, 7, 5, 33); FunctionArgumentAttributeValue attrDur1 = null; FunctionArgumentAttributeValue at... | /**
* dayTimeDuration - Version1
*/ | dayTimeDuration - Version1 | testDayTimeDuration_Equal_V1 | {
"repo_name": "dash-/apache-openaz",
"path": "openaz-xacml-test/src/test/java/org/apache/openaz/xacml/pdp/std/functions/FunctionDefinitionEqualityTest.java",
"license": "apache-2.0",
"size": 52170
} | [
"org.apache.openaz.xacml.pdp.policy.ExpressionResult",
"org.apache.openaz.xacml.pdp.policy.FunctionArgumentAttributeValue",
"org.apache.openaz.xacml.pdp.std.StdFunctions",
"org.apache.openaz.xacml.pdp.std.functions.FunctionDefinitionEquality",
"org.apache.openaz.xacml.std.datatypes.DataTypes",
"org.apache... | import org.apache.openaz.xacml.pdp.policy.ExpressionResult; import org.apache.openaz.xacml.pdp.policy.FunctionArgumentAttributeValue; import org.apache.openaz.xacml.pdp.std.StdFunctions; import org.apache.openaz.xacml.pdp.std.functions.FunctionDefinitionEquality; import org.apache.openaz.xacml.std.datatypes.DataTypes; ... | import org.apache.openaz.xacml.pdp.policy.*; import org.apache.openaz.xacml.pdp.std.*; import org.apache.openaz.xacml.pdp.std.functions.*; import org.apache.openaz.xacml.std.datatypes.*; import org.junit.*; | [
"org.apache.openaz",
"org.junit"
] | org.apache.openaz; org.junit; | 805,243 |
public int getDecoratedMeasuredHeight(@NonNull View child) {
final Rect insets = ((LayoutParams) child.getLayoutParams()).mDecorInsets;
return child.getMeasuredHeight() + insets.top + insets.bottom;
} | int function(@NonNull View child) { final Rect insets = ((LayoutParams) child.getLayoutParams()).mDecorInsets; return child.getMeasuredHeight() + insets.top + insets.bottom; } | /**
* Returns the measured height of the given child, plus the additional size of
* any insets applied by {@link ItemDecoration ItemDecorations}.
*
* @param child Child view to query
* @return child's measured height plus <code>ItemDecoration</code> insets
*
... | Returns the measured height of the given child, plus the additional size of any insets applied by <code>ItemDecoration ItemDecorations</code> | getDecoratedMeasuredHeight | {
"repo_name": "aosp-mirror/platform_frameworks_support",
"path": "v7/recyclerview/src/main/java/androidx/recyclerview/widget/RecyclerView.java",
"license": "apache-2.0",
"size": 582575
} | [
"android.graphics.Rect",
"android.view.View",
"androidx.annotation.NonNull"
] | import android.graphics.Rect; import android.view.View; import androidx.annotation.NonNull; | import android.graphics.*; import android.view.*; import androidx.annotation.*; | [
"android.graphics",
"android.view",
"androidx.annotation"
] | android.graphics; android.view; androidx.annotation; | 1,943,008 |
@SuppressWarnings("PMD.CloseResource")
public AwsPolicyBuilder withKms(String kmsKeyId, KmsActions... actions)
{
Statement statement = new Statement(Effect.Allow);
statement.setActions(Arrays.asList(actions));
statement.setResources(Arrays.asList(new Resource(kmsKeyId)));
pol... | @SuppressWarnings(STR) AwsPolicyBuilder function(String kmsKeyId, KmsActions... actions) { Statement statement = new Statement(Effect.Allow); statement.setActions(Arrays.asList(actions)); statement.setResources(Arrays.asList(new Resource(kmsKeyId))); policy.getStatements().add(statement); return this; } | /**
* Adds a permission to allow the specified actions to the given KMS key id.
*
* @param kmsKeyId Full ARN to the kms key
* @param actions List of actions
*
* @return This builder
*/ | Adds a permission to allow the specified actions to the given KMS key id | withKms | {
"repo_name": "FINRAOS/herd",
"path": "herd-code/herd-service/src/main/java/org/finra/herd/service/helper/AwsPolicyBuilder.java",
"license": "apache-2.0",
"size": 3394
} | [
"com.amazonaws.auth.policy.Resource",
"com.amazonaws.auth.policy.Statement",
"java.util.Arrays"
] | import com.amazonaws.auth.policy.Resource; import com.amazonaws.auth.policy.Statement; import java.util.Arrays; | import com.amazonaws.auth.policy.*; import java.util.*; | [
"com.amazonaws.auth",
"java.util"
] | com.amazonaws.auth; java.util; | 2,079,647 |
@ServiceMethod(returns = ReturnType.SINGLE)
public void delete(String resourceGroupName, String applicationSecurityGroupName) {
deleteAsync(resourceGroupName, applicationSecurityGroupName).block();
} | @ServiceMethod(returns = ReturnType.SINGLE) void function(String resourceGroupName, String applicationSecurityGroupName) { deleteAsync(resourceGroupName, applicationSecurityGroupName).block(); } | /**
* Deletes the specified application security group.
*
* @param resourceGroupName The name of the resource group.
* @param applicationSecurityGroupName The name of the application security group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws Mana... | Deletes the specified application security group | delete | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java",
"license": "mit",
"size": 79677
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; | import com.azure.core.annotation.*; | [
"com.azure.core"
] | com.azure.core; | 2,739,908 |
public static String readFile(final File file)
throws IOException
{
return readFile(file, DEFAULT_CHARSET);
} | static String function(final File file) throws IOException { return readFile(file, DEFAULT_CHARSET); } | /**
* Shorthand method for method {@link #readFile(File, Charset)} that uses {@link #DEFAULT_CHARSET}.
*/ | Shorthand method for method <code>#readFile(File, Charset)</code> that uses <code>#DEFAULT_CHARSET</code> | readFile | {
"repo_name": "scmod/nexus-public",
"path": "components/nexus-core/src/main/java/org/sonatype/nexus/util/file/FileSupport.java",
"license": "epl-1.0",
"size": 5521
} | [
"java.io.File",
"java.io.IOException"
] | import java.io.File; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 5,511 |
the_Desk = UnoRuntime.queryInterface(XDesktop.class,
DesktopTools.createDesktop(
Param.getMSF()));
} | the_Desk = UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); } | /**
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/ | Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>) | initialize | {
"repo_name": "Distrotech/libreoffice",
"path": "qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java",
"license": "gpl-3.0",
"size": 10143
} | [
"com.sun.star.frame.XDesktop",
"com.sun.star.uno.UnoRuntime"
] | import com.sun.star.frame.XDesktop; import com.sun.star.uno.UnoRuntime; | import com.sun.star.frame.*; import com.sun.star.uno.*; | [
"com.sun.star"
] | com.sun.star; | 2,834,898 |
public void addPendingDelete(Index index, @IndexSettings Settings settings) {
PendingDelete pendingDelete = new PendingDelete(index, settings);
addPendingDelete(index, pendingDelete);
} | void function(Index index, @IndexSettings Settings settings) { PendingDelete pendingDelete = new PendingDelete(index, settings); addPendingDelete(index, pendingDelete); } | /**
* Adds a pending delete for the given index.
*/ | Adds a pending delete for the given index | addPendingDelete | {
"repo_name": "hydro2k/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/indices/IndicesService.java",
"license": "apache-2.0",
"size": 38445
} | [
"org.elasticsearch.common.settings.Settings",
"org.elasticsearch.index.Index",
"org.elasticsearch.index.settings.IndexSettings"
] | import org.elasticsearch.common.settings.Settings; import org.elasticsearch.index.Index; import org.elasticsearch.index.settings.IndexSettings; | import org.elasticsearch.common.settings.*; import org.elasticsearch.index.*; import org.elasticsearch.index.settings.*; | [
"org.elasticsearch.common",
"org.elasticsearch.index"
] | org.elasticsearch.common; org.elasticsearch.index; | 109,327 |
@Override
public DataOutput getDataOutput() {
return fieldData.getDataOutput();
} | DataOutput function() { return fieldData.getDataOutput(); } | /**
* Get the {@link DataOutput} interface to write into the tuple builder.
*/ | Get the <code>DataOutput</code> interface to write into the tuple builder | getDataOutput | {
"repo_name": "apache/incubator-asterixdb",
"path": "hyracks-fullstack/hyracks/hyracks-dataflow-common/src/main/java/org/apache/hyracks/dataflow/common/comm/io/ArrayTupleBuilder.java",
"license": "apache-2.0",
"size": 6554
} | [
"java.io.DataOutput"
] | import java.io.DataOutput; | import java.io.*; | [
"java.io"
] | java.io; | 1,925,448 |
public void destroyPresenter() {
if (presenter != null) {
PresenterManager.getInstance().destroy(presenter);
presenter = null;
}
} | void function() { if (presenter != null) { PresenterManager.getInstance().destroy(presenter); presenter = null; } } | /**
* Destroys a presenter that is currently attached to the View.
*/ | Destroys a presenter that is currently attached to the View | destroyPresenter | {
"repo_name": "jackmiras/nucleolus",
"path": "nucleolus/src/main/java/io/github/jackmiras/nucleolus/helpers/NucleolusPresenterHelper.java",
"license": "apache-2.0",
"size": 2130
} | [
"io.github.jackmiras.nucleolus.managers.PresenterManager"
] | import io.github.jackmiras.nucleolus.managers.PresenterManager; | import io.github.jackmiras.nucleolus.managers.*; | [
"io.github.jackmiras"
] | io.github.jackmiras; | 1,299,883 |
private synchronized void evictItem(ItemState itemState) {
if (log.isDebugEnabled()) {
log.debug("removing item " + itemState + " from cache");
}
cache.remove(itemState);
}
//--------------------------------------------------------==---< Object >--- | synchronized void function(ItemState itemState) { if (log.isDebugEnabled()) { log.debug(STR + itemState + STR); } cache.remove(itemState); } | /**
* Removes a cache entry for a specific item.
*
* @param itemState state of the item to remove from the cache
*/ | Removes a cache entry for a specific item | evictItem | {
"repo_name": "Kast0rTr0y/jackrabbit",
"path": "jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemCacheImpl.java",
"license": "apache-2.0",
"size": 5596
} | [
"org.apache.jackrabbit.jcr2spi.state.ItemState"
] | import org.apache.jackrabbit.jcr2spi.state.ItemState; | import org.apache.jackrabbit.jcr2spi.state.*; | [
"org.apache.jackrabbit"
] | org.apache.jackrabbit; | 2,300,957 |
public List<LocationData> getLocationData(String apiKey) {
verifyUserLogin(apiKey);
return locationDataBuffer.getLocationData(getAppDetails(apiKey));
}
| List<LocationData> function(String apiKey) { verifyUserLogin(apiKey); return locationDataBuffer.getLocationData(getAppDetails(apiKey)); } | /**
* Gets any stored location data for the calling app.
*
* @param apiKey
*/ | Gets any stored location data for the calling app | getLocationData | {
"repo_name": "dmascenik/cloudlbs",
"path": "device/android/sls-app/src/main/java/com/cloudlbs/sls/SLSService.java",
"license": "mit",
"size": 18112
} | [
"com.cloudlbs.sls.core.LocationData",
"java.util.List"
] | import com.cloudlbs.sls.core.LocationData; import java.util.List; | import com.cloudlbs.sls.core.*; import java.util.*; | [
"com.cloudlbs.sls",
"java.util"
] | com.cloudlbs.sls; java.util; | 1,385,618 |
private void indexRESTFolder(List<Document> list, Folder folder, RESTRepository repository, boolean fullIndex, ProgressThread pg) {
// relative path
String path = folder.getLocation().getPath();
if (path == null || Character.toString(RepositoryLocation.SEPARATOR).equals(path)) {
path = "";
}
try {
S... | void function(List<Document> list, Folder folder, RESTRepository repository, boolean fullIndex, ProgressThread pg) { String path = folder.getLocation().getPath(); if (path == null Character.toString(RepositoryLocation.SEPARATOR).equals(path)) { path = STRGETSTRContent-TypeSTRapplication/jsonSTR STRcom.rapidminer.reposi... | /**
* Read all contents of the given REST repository/subfolder and store them as {@link Document}s. If that fails, logs it.
* If the repository can not use the global search REST service,
* normal indexing ({@link #indexFolder(List, Folder, boolean, ProgressThread) indexFolder}) will be used!
*
* @param list
... | Read all contents of the given REST repository/subfolder and store them as <code>Document</code>s. If that fails, logs it. If the repository can not use the global search REST service, normal indexing (<code>#indexFolder(List, Folder, boolean, ProgressThread) indexFolder</code>) will be used | indexRESTFolder | {
"repo_name": "rapidminer/rapidminer-studio",
"path": "src/main/java/com/rapidminer/repository/search/RepositoryGlobalSearchManager.java",
"license": "agpl-3.0",
"size": 28865
} | [
"com.rapidminer.gui.tools.ProgressThread",
"com.rapidminer.repository.Folder",
"com.rapidminer.repository.RepositoryLocation",
"com.rapidminer.repository.internal.remote.RESTRepository",
"java.util.List",
"org.apache.lucene.document.Document"
] | import com.rapidminer.gui.tools.ProgressThread; import com.rapidminer.repository.Folder; import com.rapidminer.repository.RepositoryLocation; import com.rapidminer.repository.internal.remote.RESTRepository; import java.util.List; import org.apache.lucene.document.Document; | import com.rapidminer.gui.tools.*; import com.rapidminer.repository.*; import com.rapidminer.repository.internal.remote.*; import java.util.*; import org.apache.lucene.document.*; | [
"com.rapidminer.gui",
"com.rapidminer.repository",
"java.util",
"org.apache.lucene"
] | com.rapidminer.gui; com.rapidminer.repository; java.util; org.apache.lucene; | 1,048,718 |
public boolean validatePerson_validateClassCode(Person person, DiagnosticChain diagnostics,
Map<Object, Object> context) {
return person.validateClassCode(diagnostics, context);
}
| boolean function(Person person, DiagnosticChain diagnostics, Map<Object, Object> context) { return person.validateClassCode(diagnostics, context); } | /**
* Validates the validateClassCode constraint of '<em>Person</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | Validates the validateClassCode constraint of 'Person'. | validatePerson_validateClassCode | {
"repo_name": "drbgfc/mdht",
"path": "cda/plugins/org.openhealthtools.mdht.uml.cda/src/org/openhealthtools/mdht/uml/cda/util/CDAValidator.java",
"license": "epl-1.0",
"size": 206993
} | [
"java.util.Map",
"org.eclipse.emf.common.util.DiagnosticChain",
"org.openhealthtools.mdht.uml.cda.Person"
] | import java.util.Map; import org.eclipse.emf.common.util.DiagnosticChain; import org.openhealthtools.mdht.uml.cda.Person; | import java.util.*; import org.eclipse.emf.common.util.*; import org.openhealthtools.mdht.uml.cda.*; | [
"java.util",
"org.eclipse.emf",
"org.openhealthtools.mdht"
] | java.util; org.eclipse.emf; org.openhealthtools.mdht; | 1,728,511 |
public TypeElement typeElement(String qualifiedType) {
return asTypeElement(typeMirror(qualifiedType));
} | TypeElement function(String qualifiedType) { return asTypeElement(typeMirror(qualifiedType)); } | /**
* Returns the {@link TypeElement} of {@code qualifiedType}.
*/ | Returns the <code>TypeElement</code> of qualifiedType | typeElement | {
"repo_name": "inferred/source",
"path": "src/testing/java/org/inferred/internal/testing/integration/Model.java",
"license": "apache-2.0",
"size": 17930
} | [
"javax.lang.model.element.TypeElement"
] | import javax.lang.model.element.TypeElement; | import javax.lang.model.element.*; | [
"javax.lang"
] | javax.lang; | 747,137 |
protected void stopProcessIfNeeded() {
if (ThreadLocalJawrContext.isInterruptingProcessingBundle()) {
throw new InterruptBundlingProcessException();
}
} | void function() { if (ThreadLocalJawrContext.isInterruptingProcessingBundle()) { throw new InterruptBundlingProcessException(); } } | /**
* Stop the bundling process if needed
*/ | Stop the bundling process if needed | stopProcessIfNeeded | {
"repo_name": "davidwebster48/jawr-main-repo",
"path": "jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/handler/ResourceBundlesHandlerImpl.java",
"license": "apache-2.0",
"size": 51197
} | [
"net.jawr.web.context.ThreadLocalJawrContext",
"net.jawr.web.exception.InterruptBundlingProcessException"
] | import net.jawr.web.context.ThreadLocalJawrContext; import net.jawr.web.exception.InterruptBundlingProcessException; | import net.jawr.web.context.*; import net.jawr.web.exception.*; | [
"net.jawr.web"
] | net.jawr.web; | 1,444,223 |
PluginException.reportDeprecatedDefault(
getClass(), "getId",
"The default implementation delegates to 'getDescription' which may be localized," +
" but return value of this method must not depend on current localization.");
return getDescription();
} | PluginException.reportDeprecatedDefault( getClass(), "getId", STR + STR); return getDescription(); } | /**
* Returns unique ID, which can be used in project configuration files.
*/ | Returns unique ID, which can be used in project configuration files | getId | {
"repo_name": "jwren/intellij-community",
"path": "java/compiler/openapi/src/com/intellij/openapi/compiler/Validator.java",
"license": "apache-2.0",
"size": 1528
} | [
"com.intellij.diagnostic.PluginException"
] | import com.intellij.diagnostic.PluginException; | import com.intellij.diagnostic.*; | [
"com.intellij.diagnostic"
] | com.intellij.diagnostic; | 1,658,210 |
public byte[] getCacheContent(String rfsName, long dateLastModified) {
dateLastModified = simplifyDateLastModified(dateLastModified);
try {
File f = new File(rfsName);
if (f.exists()) {
if (f.lastModified() != dateLastModified) {
//... | byte[] function(String rfsName, long dateLastModified) { dateLastModified = simplifyDateLastModified(dateLastModified); try { File f = new File(rfsName); if (f.exists()) { if (f.lastModified() != dateLastModified) { f.delete(); } else { return CmsFileUtil.readFile(f); } } } catch (IOException e) { } return null; } | /**
* Returns the content of the requested file in the disk cache, or <code>null</code> if the
* file is not found in the cache, or is found but outdated.<p>
*
* @param rfsName the file RFS name to look up in the cache
* @param dateLastModified the date of last modification for the cache... | Returns the content of the requested file in the disk cache, or <code>null</code> if the file is not found in the cache, or is found but outdated | getCacheContent | {
"repo_name": "comundus/opencms-comundus",
"path": "src/main/java/org/opencms/cache/CmsVfsDiskCache.java",
"license": "lgpl-2.1",
"size": 6706
} | [
"java.io.File",
"java.io.IOException",
"org.opencms.util.CmsFileUtil"
] | import java.io.File; import java.io.IOException; import org.opencms.util.CmsFileUtil; | import java.io.*; import org.opencms.util.*; | [
"java.io",
"org.opencms.util"
] | java.io; org.opencms.util; | 1,288,507 |
EReference getparameterSimple_InitExp(); | EReference getparameterSimple_InitExp(); | /**
* Returns the meta object for the containment reference '{@link org.xtext.example.delphi.delphi.parameterSimple#getInitExp <em>Init Exp</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Init Exp</em>'.
* @see org.xtext.example.delphi.de... | Returns the meta object for the containment reference '<code>org.xtext.example.delphi.delphi.parameterSimple#getInitExp Init Exp</code>'. | getparameterSimple_InitExp | {
"repo_name": "adolfosbh/cs2as",
"path": "org.xtext.example.delphi/src-gen/org/xtext/example/delphi/delphi/DelphiPackage.java",
"license": "epl-1.0",
"size": 434880
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 416,426 |
@After
public void tearDown() throws IOException {
if (!tearDownDone && dn != null) {
try {
dn.shutdown();
} catch(Exception e) {
LOG.error("Cannot close: ", e);
} finally {
File dir = new File(DATA_DIR);
if (dir.exists())
Assert.assertTrue(
... | void function() throws IOException { if (!tearDownDone && dn != null) { try { dn.shutdown(); } catch(Exception e) { LOG.error(STR, e); } finally { File dir = new File(DATA_DIR); if (dir.exists()) Assert.assertTrue( STR, FileUtil.fullyDelete(dir)); } tearDownDone = true; } } | /**
* Cleans the resources and closes the instance of datanode
* @throws IOException if an error occurred
*/ | Cleans the resources and closes the instance of datanode | tearDown | {
"repo_name": "zhe-thoughts/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockRecovery.java",
"license": "apache-2.0",
"size": 25187
} | [
"java.io.File",
"java.io.IOException",
"org.apache.hadoop.fs.FileUtil",
"org.junit.Assert"
] | import java.io.File; import java.io.IOException; import org.apache.hadoop.fs.FileUtil; import org.junit.Assert; | import java.io.*; import org.apache.hadoop.fs.*; import org.junit.*; | [
"java.io",
"org.apache.hadoop",
"org.junit"
] | java.io; org.apache.hadoop; org.junit; | 716,736 |
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
} | String function() { return ToStringBuilder.reflectionToString(this); } | /**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/ | Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin | toString | {
"repo_name": "PetrGasparik/midpoint",
"path": "infra/prism/src/main/java/com/evolveum/prism/xml/ns/_public/query_3/FilterClauseType.java",
"license": "apache-2.0",
"size": 5870
} | [
"org.apache.commons.lang.builder.ToStringBuilder"
] | import org.apache.commons.lang.builder.ToStringBuilder; | import org.apache.commons.lang.builder.*; | [
"org.apache.commons"
] | org.apache.commons; | 453,360 |
String displayName = publicRoom.name;
if (TextUtils.isEmpty(displayName)) {
if (publicRoom.aliases != null && !publicRoom.aliases.isEmpty()) {
displayName = publicRoom.aliases.get(0);
} else {
displayName = publicRoom.roomId;
}
} else ... | String displayName = publicRoom.name; if (TextUtils.isEmpty(displayName)) { if (publicRoom.aliases != null && !publicRoom.aliases.isEmpty()) { displayName = publicRoom.aliases.get(0); } else { displayName = publicRoom.roomId; } } else if (!displayName.startsWith("#") && publicRoom.aliases != null && !publicRoom.aliases... | /**
* Returns the public room display name..
*
* @param publicRoom the public room.
* @return the room display name.
*/ | Returns the public room display name. | getPublicRoomDisplayName | {
"repo_name": "vector-im/vector-android",
"path": "vector/src/main/java/im/vector/util/VectorUtils.java",
"license": "apache-2.0",
"size": 38234
} | [
"android.text.TextUtils"
] | import android.text.TextUtils; | import android.text.*; | [
"android.text"
] | android.text; | 1,007,701 |
DecimalFormat number_format = new java.text.DecimalFormat("#.####");
return number_format.format(value);
} | DecimalFormat number_format = new java.text.DecimalFormat(STR); return number_format.format(value); } | /**
* Cuts down uneccesery decimal points from the given Double value
* <br> i.e. 12.102342 -> 12.1023
*/ | Cuts down uneccesery decimal points from the given Double value i.e. 12.102342 -> 12.1023 | getPrettyDecimal | {
"repo_name": "alexstyl/Currency-Converter",
"path": "app/src/main/java/com/alexstyl/currency/CurrencyHelper.java",
"license": "mit",
"size": 1240
} | [
"java.text.DecimalFormat"
] | import java.text.DecimalFormat; | import java.text.*; | [
"java.text"
] | java.text; | 1,642,325 |
static ErasureCodingPolicy getErasureCodingPolicyByName(
final FSNamesystem fsn, final String ecPolicyName) throws IOException {
assert fsn.hasReadLock();
ErasureCodingPolicy ecPolicy = fsn.getErasureCodingPolicyManager()
.getErasureCodingPolicyByName(ecPolicyName);
if (ecPolicy == null) {
... | static ErasureCodingPolicy getErasureCodingPolicyByName( final FSNamesystem fsn, final String ecPolicyName) throws IOException { assert fsn.hasReadLock(); ErasureCodingPolicy ecPolicy = fsn.getErasureCodingPolicyManager() .getErasureCodingPolicyByName(ecPolicyName); if (ecPolicy == null) { throw new HadoopIllegalArgume... | /**
* Check if the ecPolicyName is valid, return the corresponding
* EC policy if is, including the REPLICATION EC policy.
* @param fsn namespace
* @param ecPolicyName name of EC policy to be checked
* @return an erasure coding policy if ecPolicyName is valid
* @throws IOException
*/ | Check if the ecPolicyName is valid, return the corresponding EC policy if is, including the REPLICATION EC policy | getErasureCodingPolicyByName | {
"repo_name": "nandakumar131/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirErasureCodingOp.java",
"license": "apache-2.0",
"size": 18578
} | [
"java.io.IOException",
"org.apache.hadoop.HadoopIllegalArgumentException",
"org.apache.hadoop.fs.FileStatus",
"org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy"
] | import java.io.IOException; import org.apache.hadoop.HadoopIllegalArgumentException; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy; | import java.io.*; import org.apache.hadoop.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.protocol.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 2,250,727 |
@Generated
@CVariable()
@MappedReturn(ObjCStringMapper.class)
public static native String NSURLUbiquitousSharedItemCurrentUserPermissionsKey(); | @CVariable() @MappedReturn(ObjCStringMapper.class) static native String function(); | /**
* returns the permissions for the current user, or nil if not shared. (Read-only, value type NSString). Possible values below.
*/ | returns the permissions for the current user, or nil if not shared. (Read-only, value type NSString). Possible values below | NSURLUbiquitousSharedItemCurrentUserPermissionsKey | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/foundation/c/Foundation.java",
"license": "apache-2.0",
"size": 156135
} | [
"org.moe.natj.c.ann.CVariable",
"org.moe.natj.general.ann.MappedReturn",
"org.moe.natj.objc.map.ObjCStringMapper"
] | import org.moe.natj.c.ann.CVariable; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.objc.map.ObjCStringMapper; | import org.moe.natj.c.ann.*; import org.moe.natj.general.ann.*; import org.moe.natj.objc.map.*; | [
"org.moe.natj"
] | org.moe.natj; | 2,658,161 |
public void objectToKey(Object object, TupleOutput output) {
MarshalledEnt entity = (MarshalledEnt) object;
entity.marshalPrimaryKey(output);
} | void function(Object object, TupleOutput output) { MarshalledEnt entity = (MarshalledEnt) object; entity.marshalPrimaryKey(output); } | /**
* Create the stored key from the entity.
*/ | Create the stored key from the entity | objectToKey | {
"repo_name": "djsedulous/namecoind",
"path": "libs/db-4.7.25.NC/examples_java/src/collections/ship/marshal/SampleViews.java",
"license": "mit",
"size": 9341
} | [
"com.sleepycat.bind.tuple.TupleOutput"
] | import com.sleepycat.bind.tuple.TupleOutput; | import com.sleepycat.bind.tuple.*; | [
"com.sleepycat.bind"
] | com.sleepycat.bind; | 2,141,978 |
public static Graphics getGraphics (Container container)
{
Container element = container;
while (element != null)
{
Graphics g = element.getGraphics();
if (g != null)
return g;
element = element.getParent();
}
return null;
} // getFrame
| static Graphics function (Container container) { Container element = container; while (element != null) { Graphics g = element.getGraphics(); if (g != null) return g; element = element.getParent(); } return null; } | /**
* Get Graphics of container or its parent.
* The element may not have a Graphic if not displayed yet,
* but the parent might have.
* @param container Container
* @return Graphics of container or null
*/ | Get Graphics of container or its parent. The element may not have a Graphic if not displayed yet, but the parent might have | getGraphics | {
"repo_name": "arthurmelo88/palmetalADP",
"path": "adempiereTrunk/base/src/org/compiere/util/Env.java",
"license": "gpl-2.0",
"size": 50099
} | [
"java.awt.Container",
"java.awt.Graphics"
] | import java.awt.Container; import java.awt.Graphics; | import java.awt.*; | [
"java.awt"
] | java.awt; | 770,736 |
@SuppressWarnings("unchecked")
private static <K> void merge(
Object[] sourceArray,
int beginIndex,
int middleIndex,
int endIndex,
Object[] targetArray,
Comparator<K> keyComparator) {
int leftKeyIndex = beginIndex;
int rightKeyIndex = middleIndex;
// While there are ... | @SuppressWarnings(STR) static <K> void function( Object[] sourceArray, int beginIndex, int middleIndex, int endIndex, Object[] targetArray, Comparator<K> keyComparator) { int leftKeyIndex = beginIndex; int rightKeyIndex = middleIndex; for (int k = beginIndex; k < endIndex; k += 2) { if (leftKeyIndex < middleIndex - 1 &... | /**
* Left source half is sourceArray[ beginIndex:middleIndex-1]. Right source half is sourceArray[
* middleIndex:endIndex-1]. Result is targetArray[ beginIndex:endIndex-1].
*/ | Left source half is sourceArray[ beginIndex:middleIndex-1]. Right source half is sourceArray[ middleIndex:endIndex-1]. Result is targetArray[ beginIndex:endIndex-1] | merge | {
"repo_name": "open-telemetry/opentelemetry-java",
"path": "api/all/src/main/java/io/opentelemetry/api/internal/ImmutableKeyValuePairs.java",
"license": "apache-2.0",
"size": 8609
} | [
"java.util.Comparator"
] | import java.util.Comparator; | import java.util.*; | [
"java.util"
] | java.util; | 24,204 |
//-----------------------------------------------------------------------
public MetaProperty<SecurityInfo> info() {
return info;
} | MetaProperty<SecurityInfo> function() { return info; } | /**
* The meta-property for the {@code info} property.
* @return the meta-property, not null
*/ | The meta-property for the info property | info | {
"repo_name": "OpenGamma/Strata",
"path": "modules/product/src/main/java/com/opengamma/strata/product/index/OvernightFutureSecurity.java",
"license": "apache-2.0",
"size": 33771
} | [
"com.opengamma.strata.product.SecurityInfo",
"org.joda.beans.MetaProperty"
] | import com.opengamma.strata.product.SecurityInfo; import org.joda.beans.MetaProperty; | import com.opengamma.strata.product.*; import org.joda.beans.*; | [
"com.opengamma.strata",
"org.joda.beans"
] | com.opengamma.strata; org.joda.beans; | 2,765,257 |
public ServiceFuture<OperationStatusResponseInner> beginPowerOffAsync(String resourceGroupName, String vmName, final ServiceCallback<OperationStatusResponseInner> serviceCallback) {
return ServiceFuture.fromResponse(beginPowerOffWithServiceResponseAsync(resourceGroupName, vmName), serviceCallback);
} | ServiceFuture<OperationStatusResponseInner> function(String resourceGroupName, String vmName, final ServiceCallback<OperationStatusResponseInner> serviceCallback) { return ServiceFuture.fromResponse(beginPowerOffWithServiceResponseAsync(resourceGroupName, vmName), serviceCallback); } | /**
* The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
*
* @param resourceGroupName The name of the resource group.
* @param vmName The name of the virtual machine.
* @p... | The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine | beginPowerOffAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/compute/mgmt-v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesInner.java",
"license": "mit",
"size": 186385
} | [
"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; | 1,307,583 |
boolean any(FunctionExpression<Predicate1<TSource>> predicate); | boolean any(FunctionExpression<Predicate1<TSource>> predicate); | /**
* Determines whether any element of a sequence
* satisfies a condition.
*/ | Determines whether any element of a sequence satisfies a condition | any | {
"repo_name": "julianhyde/calcite",
"path": "linq4j/src/main/java/org/apache/calcite/linq4j/ExtendedQueryable.java",
"license": "apache-2.0",
"size": 26708
} | [
"org.apache.calcite.linq4j.function.Predicate1",
"org.apache.calcite.linq4j.tree.FunctionExpression"
] | import org.apache.calcite.linq4j.function.Predicate1; import org.apache.calcite.linq4j.tree.FunctionExpression; | import org.apache.calcite.linq4j.function.*; import org.apache.calcite.linq4j.tree.*; | [
"org.apache.calcite"
] | org.apache.calcite; | 1,938,358 |
public String getCanonicalName() throws IOException; | String function() throws IOException; | /**
* Get the canonical name of the database. This is a name that uniquely identifies it. It is system dependent.
*
* The normal, disk based implementation uses method java.io.File.getCanonicalPath on the directory holding the
* database to construct the canonical name.
*
* @return the can... | Get the canonical name of the database. This is a name that uniquely identifies it. It is system dependent. The normal, disk based implementation uses method java.io.File.getCanonicalPath on the directory holding the database to construct the canonical name | getCanonicalName | {
"repo_name": "lpxz/grail-derby104",
"path": "java/engine/org/apache/derby/io/StorageFactory.java",
"license": "apache-2.0",
"size": 11708
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,843,128 |
public PortTypeAnalyzerLinkFinder getPortTypeAnalyzerLinkFinder() {
return portTypeAnalyzerLinkFinder;
} | PortTypeAnalyzerLinkFinder function() { return portTypeAnalyzerLinkFinder; } | /**
* Returns the port type analyzer link finder.
*
* @return the port type analyzer link finder
*/ | Returns the port type analyzer link finder | getPortTypeAnalyzerLinkFinder | {
"repo_name": "queza85/edison",
"path": "edison-portal-framework/edison-appstore-2016-portlet/docroot/WEB-INF/src/org/kisti/edison/science/service/base/DeveloperIpServiceBaseImpl.java",
"license": "gpl-3.0",
"size": 52463
} | [
"org.kisti.edison.science.service.persistence.PortTypeAnalyzerLinkFinder"
] | import org.kisti.edison.science.service.persistence.PortTypeAnalyzerLinkFinder; | import org.kisti.edison.science.service.persistence.*; | [
"org.kisti.edison"
] | org.kisti.edison; | 1,679,735 |
@RequestMapping("/requestFeature.do")
public ModelAndView requestFeature(@RequestParam("serviceUrl") final String serviceUrl,
@RequestParam("typeName") final String featureType,
@RequestParam("featureId") final String featureId) throws Exception {
WFSResponse response = null;
... | @RequestMapping(STR) ModelAndView function(@RequestParam(STR) final String serviceUrl, @RequestParam(STR) final String featureType, @RequestParam(STR) final String featureId) throws Exception { WFSResponse response = null; try { response = wfsService.getWfsResponse(serviceUrl, featureType, featureId); } catch (Exceptio... | /**
* Given a service Url, a feature type and a specific feature ID, this function will fetch the specific feature and then convert it into KML to be
* displayed, assuming that the response will be complex feature GeoSciML
*
* @param serviceUrl
* @param featureType
* @param featureId
... | Given a service Url, a feature type and a specific feature ID, this function will fetch the specific feature and then convert it into KML to be displayed, assuming that the response will be complex feature GeoSciML | requestFeature | {
"repo_name": "jia020/portal-core",
"path": "src/main/java/org/auscope/portal/core/server/controllers/WFSController.java",
"license": "lgpl-3.0",
"size": 17064
} | [
"org.auscope.portal.core.services.responses.wfs.WFSResponse",
"org.springframework.web.bind.annotation.RequestMapping",
"org.springframework.web.bind.annotation.RequestParam",
"org.springframework.web.servlet.ModelAndView"
] | import org.auscope.portal.core.services.responses.wfs.WFSResponse; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.ModelAndView; | import org.auscope.portal.core.services.responses.wfs.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.*; | [
"org.auscope.portal",
"org.springframework.web"
] | org.auscope.portal; org.springframework.web; | 941,203 |
public JenkinsServer createView(String viewName, String viewXml) throws IOException {
return createView(null, viewName, viewXml, false);
} | JenkinsServer function(String viewName, String viewXml) throws IOException { return createView(null, viewName, viewXml, false); } | /**
* Create a view on the server using the provided xml
*
* @param viewName name of the view to be created.
* @param viewXml The configuration for the view.
* @throws IOException in case of an error.
*/ | Create a view on the server using the provided xml | createView | {
"repo_name": "RisingOak/jenkins-client",
"path": "jenkins-client/src/main/java/com/offbytwo/jenkins/JenkinsServer.java",
"license": "mit",
"size": 35164
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,597,060 |
private Response doRequest(HttpGet req, boolean storeRespCookie) throws IOException {
addCookieHeader(req);
CloseableHttpResponse resp = httpclient.execute(req, context);
boolean isNew = true;
String reqCookie = getCookieHeader(resp);
if (reqCookie == null) {
isNew = false;
reqCookie... | Response function(HttpGet req, boolean storeRespCookie) throws IOException { addCookieHeader(req); CloseableHttpResponse resp = httpclient.execute(req, context); boolean isNew = true; String reqCookie = getCookieHeader(resp); if (reqCookie == null) { isNew = false; reqCookie = this.cookie; } else if (storeRespCookie) {... | /**
* Sends a request to the server and returns a custom response object with the result
*
* @param storeRespCookie if true, retain the value of a "Set-Cookie" header returned in the
* response.
*/ | Sends a request to the server and returns a custom response object with the result | doRequest | {
"repo_name": "smanvi-pivotal/geode",
"path": "geode-assembly/src/test/java/org/apache/geode/session/tests/Client.java",
"license": "apache-2.0",
"size": 9844
} | [
"java.io.IOException",
"org.apache.http.StatusLine",
"org.apache.http.client.methods.CloseableHttpResponse",
"org.apache.http.client.methods.HttpGet",
"org.apache.http.util.EntityUtils"
] | import java.io.IOException; import org.apache.http.StatusLine; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.util.EntityUtils; | import java.io.*; import org.apache.http.*; import org.apache.http.client.methods.*; import org.apache.http.util.*; | [
"java.io",
"org.apache.http"
] | java.io; org.apache.http; | 2,331,476 |
@VisibleForTesting
public static DelegationTokenProvider create(Controller controller, String scopeName, String streamName,
AccessOperation accessOperation) {
return create(null, controller, scopeName, streamName, accessOperation);
} | static DelegationTokenProvider function(Controller controller, String scopeName, String streamName, AccessOperation accessOperation) { return create(null, controller, scopeName, streamName, accessOperation); } | /**
* Creates a {@link DelegationTokenProvider} instance with null delegation token.
*
* @param controller the {@link Controller} client used for obtaining a delegation token from the Controller
* @param scopeName the name of the scope tied to the segment, for which a delegation token is to be obtai... | Creates a <code>DelegationTokenProvider</code> instance with null delegation token | create | {
"repo_name": "pravega/pravega",
"path": "client/src/main/java/io/pravega/client/security/auth/DelegationTokenProviderFactory.java",
"license": "apache-2.0",
"size": 5798
} | [
"io.pravega.client.control.impl.Controller",
"io.pravega.shared.security.auth.AccessOperation"
] | import io.pravega.client.control.impl.Controller; import io.pravega.shared.security.auth.AccessOperation; | import io.pravega.client.control.impl.*; import io.pravega.shared.security.auth.*; | [
"io.pravega.client",
"io.pravega.shared"
] | io.pravega.client; io.pravega.shared; | 1,170,054 |
IndicesOptions indicesOptions(); | IndicesOptions indicesOptions(); | /**
* Returns the indices options used to resolve indices. They tell for instance whether a single index is
* accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.
*/ | Returns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed | indicesOptions | {
"repo_name": "xuzha/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/action/IndicesRequest.java",
"license": "apache-2.0",
"size": 1866
} | [
"org.elasticsearch.action.support.IndicesOptions"
] | import org.elasticsearch.action.support.IndicesOptions; | import org.elasticsearch.action.support.*; | [
"org.elasticsearch.action"
] | org.elasticsearch.action; | 2,531,224 |
@ApiModelProperty(example = "false", value = "Whether the user has disabled messages from the topic")
public Boolean isDisabled() {
return disabled;
} | @ApiModelProperty(example = "false", value = STR) Boolean function() { return disabled; } | /**
* Whether the user has disabled messages from the topic
* @return disabled
**/ | Whether the user has disabled messages from the topic | isDisabled | {
"repo_name": "knetikmedia/knetikcloud-java-client",
"path": "src/main/java/com/knetikcloud/model/TopicSubscriberResource.java",
"license": "apache-2.0",
"size": 4222
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 12,611 |
Observable<Response> replyToTopic(User user, Topic topic, String message, boolean includeSignature); | Observable<Response> replyToTopic(User user, Topic topic, String message, boolean includeSignature); | /**
* Reply to a topic
*/ | Reply to a topic | replyToTopic | {
"repo_name": "Ayuget/Redface",
"path": "app/src/main/java/com/ayuget/redface/data/api/MDService.java",
"license": "apache-2.0",
"size": 5380
} | [
"com.ayuget.redface.data.api.model.Response",
"com.ayuget.redface.data.api.model.Topic",
"com.ayuget.redface.data.api.model.User"
] | import com.ayuget.redface.data.api.model.Response; import com.ayuget.redface.data.api.model.Topic; import com.ayuget.redface.data.api.model.User; | import com.ayuget.redface.data.api.model.*; | [
"com.ayuget.redface"
] | com.ayuget.redface; | 1,432,518 |
private void setSizes(int parentWidth) {
// create dropdown menu
Dimension menuDim = curUser.getPreferredSize();
menuDim.width = parentWidth / 5;
curUser.setMinimumSize(menuDim);
curUser.setMaximumSize(menuDim);
// get button dimensions
Dimension buttDim = showPSPanel.getPreferredSize();
buttDim.wid... | void function(int parentWidth) { Dimension menuDim = curUser.getPreferredSize(); menuDim.width = parentWidth / 5; curUser.setMinimumSize(menuDim); curUser.setMaximumSize(menuDim); Dimension buttDim = showPSPanel.getPreferredSize(); buttDim.width = parentWidth / 5 * 4 / 2; List<JButton> buttons = java.util.Arrays.asList... | /**
* Set the size of the components:
* 1/5 for the Context Menu
* 2/5 for each button
*
* @param parentWidth
* the width of the parent component
*/ | Set the size of the components: 1/5 for the Context Menu 2/5 for each button | setSizes | {
"repo_name": "benwaffle/GradeTool",
"path": "src/gradetool/gui/Toolbar.java",
"license": "mit",
"size": 2112
} | [
"java.awt.Dimension",
"java.awt.Font",
"java.util.List",
"javax.swing.JButton"
] | import java.awt.Dimension; import java.awt.Font; import java.util.List; import javax.swing.JButton; | import java.awt.*; import java.util.*; import javax.swing.*; | [
"java.awt",
"java.util",
"javax.swing"
] | java.awt; java.util; javax.swing; | 828,668 |
private void addAvailable(Document doc, Element oaiDc, GenericItem item)
{
if( item.getReleaseDate() != null )
{
Date d = item.getReleaseDate();
Element availableElement = doc.createElement("dcterms:available");
DateFormat dateFormat = new SimpleDateFormat("EEE, d MMM yyyy");
Text da... | void function(Document doc, Element oaiDc, GenericItem item) { if( item.getReleaseDate() != null ) { Date d = item.getReleaseDate(); Element availableElement = doc.createElement(STR); DateFormat dateFormat = new SimpleDateFormat(STR); Text data = doc.createTextNode(dateFormat.format(d)); availableElement.appendChild(da... | /**
* Add the date this publication was made available.
*
* @param doc
* @param oaiDc
* @param item
*/ | Add the date this publication was made available | addAvailable | {
"repo_name": "nate-rcl/irplus",
"path": "ir_service/src/edu/ur/ir/oai/metadata/provider/service/DefaultQualifiedDublinCoreMetadataProvider.java",
"license": "apache-2.0",
"size": 23750
} | [
"edu.ur.ir.item.GenericItem",
"java.text.DateFormat",
"java.text.SimpleDateFormat",
"java.util.Date",
"org.w3c.dom.Document",
"org.w3c.dom.Element",
"org.w3c.dom.Text"
] | import edu.ur.ir.item.GenericItem; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Text; | import edu.ur.ir.item.*; import java.text.*; import java.util.*; import org.w3c.dom.*; | [
"edu.ur.ir",
"java.text",
"java.util",
"org.w3c.dom"
] | edu.ur.ir; java.text; java.util; org.w3c.dom; | 47,061 |
protected void setNodeTypeFilter(NodeType nodeTypeFilter) {
this.nodeTypeFilter = nodeTypeFilter;
} | void function(NodeType nodeTypeFilter) { this.nodeTypeFilter = nodeTypeFilter; } | /**
* Sets the NodeType filter.
*
* <p>If null, all NodeType's are visited.
*
* @param nodeTypeFilter See descrption.
*/ | Sets the NodeType filter. If null, all NodeType's are visited | setNodeTypeFilter | {
"repo_name": "azyva/dragom-core",
"path": "src/main/java/org/azyva/dragom/job/ModelVisitorJobAbstractImpl.java",
"license": "agpl-3.0",
"size": 16033
} | [
"org.azyva.dragom.model.config.NodeType"
] | import org.azyva.dragom.model.config.NodeType; | import org.azyva.dragom.model.config.*; | [
"org.azyva.dragom"
] | org.azyva.dragom; | 2,409,218 |
protected JMenuItem createMenuItem(String cmd, SessionActionAdapter saa) {
// Create menu item and set image and text.
JMenuItem mi = new JMenuItem(
Bundle.getString(cmd + LABEL_SUFFIX));
URL url = Bundle.getResource(cmd + MENU_IMAGE_SUFFIX);
if (url != null) {
... | JMenuItem function(String cmd, SessionActionAdapter saa) { JMenuItem mi = new JMenuItem( Bundle.getString(cmd + LABEL_SUFFIX)); URL url = Bundle.getResource(cmd + MENU_IMAGE_SUFFIX); if (url != null) { mi.setHorizontalTextPosition(JButton.RIGHT); mi.setIcon(new ImageIcon(url)); } String mnemonic = Bundle.getString(cmd ... | /**
* This is the hook through which all menu items are
* created. Using the <code>cmd</code> string it finds
* the menu item label and image (if any) in the resource
* bundle.
*
* @param cmd action command string for this menu item;
* used to get the label and image.
... | This is the hook through which all menu items are created. Using the <code>cmd</code> string it finds the menu item label and image (if any) in the resource bundle | createMenuItem | {
"repo_name": "mbertacca/JSwat2",
"path": "classes/com/bluemarsh/jswat/ui/graphical/MainWindow.java",
"license": "gpl-2.0",
"size": 26127
} | [
"com.bluemarsh.jswat.action.ActionTable",
"com.bluemarsh.jswat.action.SessionAction",
"com.bluemarsh.jswat.ui.Bundle",
"com.bluemarsh.jswat.ui.SessionActionAdapter",
"javax.swing.Action",
"javax.swing.ImageIcon",
"javax.swing.JButton",
"javax.swing.JMenuItem"
] | import com.bluemarsh.jswat.action.ActionTable; import com.bluemarsh.jswat.action.SessionAction; import com.bluemarsh.jswat.ui.Bundle; import com.bluemarsh.jswat.ui.SessionActionAdapter; import javax.swing.Action; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JMenuItem; | import com.bluemarsh.jswat.action.*; import com.bluemarsh.jswat.ui.*; import javax.swing.*; | [
"com.bluemarsh.jswat",
"javax.swing"
] | com.bluemarsh.jswat; javax.swing; | 1,261,846 |
public void triangulate( List<Point2D_F64> observations ,
List<Se3_F64> worldToView ,
Point3D_F64 found ) {
if( observations.size() != worldToView.size() )
throw new IllegalArgumentException("Number of observations must match the number of motions");
final int N = worldToView.size();
A... | void function( List<Point2D_F64> observations , List<Se3_F64> worldToView , Point3D_F64 found ) { if( observations.size() != worldToView.size() ) throw new IllegalArgumentException(STR); final int N = worldToView.size(); A.reshape(2*N,4,false); int index = 0; for( int i = 0; i < N; i++ ) { index = addView(worldToView.g... | /**
* <p>
* Given N observations of the same point from two views and a known motion between the
* two views, triangulate the point's position in camera 'b' reference frame.
* </p>
* <p>
* Modification of [1] to be less generic and use calibrated cameras.
* </p>
*
* @param observations Observation in ... | Given N observations of the same point from two views and a known motion between the two views, triangulate the point's position in camera 'b' reference frame. Modification of [1] to be less generic and use calibrated cameras. | triangulate | {
"repo_name": "intrack/BoofCV-master",
"path": "main/geo/src/boofcv/alg/geo/triangulate/TriangulateLinearDLT.java",
"license": "apache-2.0",
"size": 4802
} | [
"java.util.List",
"org.ejml.ops.SingularOps"
] | import java.util.List; import org.ejml.ops.SingularOps; | import java.util.*; import org.ejml.ops.*; | [
"java.util",
"org.ejml.ops"
] | java.util; org.ejml.ops; | 2,208,352 |
public static void assertIterableNotEmpty(String iterableName, Iterable<?> iterable)
{
try
{
Verify.assertObjectNotNull(iterableName, iterable);
Assert.assertFalse(iterableName + " should be non-empty, but was empty", Iterate.isEmpty(iterable));
Assert.assertT... | static void function(String iterableName, Iterable<?> iterable) { try { Verify.assertObjectNotNull(iterableName, iterable); Assert.assertFalse(iterableName + STR, Iterate.isEmpty(iterable)); Assert.assertTrue(iterableName + STR, Iterate.notEmpty(iterable)); Assert.assertNotEquals(iterableName + STR, 0, Iterate.sizeOf(i... | /**
* Assert that the given {@link Iterable} is <em>not</em> empty.
*/ | Assert that the given <code>Iterable</code> is not empty | assertIterableNotEmpty | {
"repo_name": "bhav0904/eclipse-collections",
"path": "eclipse-collections-testutils/src/main/java/org/eclipse/collections/impl/test/Verify.java",
"license": "bsd-3-clause",
"size": 138680
} | [
"org.eclipse.collections.impl.utility.Iterate",
"org.junit.Assert"
] | import org.eclipse.collections.impl.utility.Iterate; import org.junit.Assert; | import org.eclipse.collections.impl.utility.*; import org.junit.*; | [
"org.eclipse.collections",
"org.junit"
] | org.eclipse.collections; org.junit; | 2,592,598 |
protected void extraPersistentBeanValidation(final _PersistentBean_ pb) {
// NOP
}
// private void validateTypeInvariants(final Object instance) {
// assert instance != null;
// LOG.debug("getClassContract(): " + getClassContract());
// Set invars = getClassContract().getTypeInvariantConditions();
//... | void function(final _PersistentBean_ pb) { } | /**
* Some extra validation to be performed on the given persistent bean.
* Should be overridden by subclasses.
*/ | Some extra validation to be performed on the given persistent bean. Should be overridden by subclasses | extraPersistentBeanValidation | {
"repo_name": "jandppw/ppwcode-recovered-from-google-code",
"path": "java/vernacular/persistence/trunk/src/main/java/org/ppwcode/vernacular/persistence_III/junit/jpa/AbstractJpaPersistentBeanTest.java",
"license": "apache-2.0",
"size": 7135
} | [
"org.ppwcode.vernacular.persistence_III.PersistentBean"
] | import org.ppwcode.vernacular.persistence_III.PersistentBean; | import org.ppwcode.vernacular.*; | [
"org.ppwcode.vernacular"
] | org.ppwcode.vernacular; | 1,502,094 |
//------------------------- AUTOGENERATED START -------------------------
///CLOVER:OFF
public static EHCachingExchangeMasterComponentFactory.Meta meta() {
return EHCachingExchangeMasterComponentFactory.Meta.INSTANCE;
}
static {
JodaBeanUtils.registerMetaBean(EHCachingExchangeMasterComponentFactory.... | static EHCachingExchangeMasterComponentFactory.Meta function() { return EHCachingExchangeMasterComponentFactory.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(EHCachingExchangeMasterComponentFactory.Meta.INSTANCE); } | /**
* The meta-bean for {@code EHCachingExchangeMasterComponentFactory}.
* @return the meta-bean, not null
*/ | The meta-bean for EHCachingExchangeMasterComponentFactory | meta | {
"repo_name": "McLeodMoores/starling",
"path": "projects/component/src/main/java/com/opengamma/component/factory/master/EHCachingExchangeMasterComponentFactory.java",
"license": "apache-2.0",
"size": 14087
} | [
"org.joda.beans.JodaBeanUtils"
] | import org.joda.beans.JodaBeanUtils; | import org.joda.beans.*; | [
"org.joda.beans"
] | org.joda.beans; | 1,353,968 |
long countByExample(TSysUserExample example); | long countByExample(TSysUserExample example); | /**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_sys_user
*
* @mbg.generated
*/ | This method was generated by MyBatis Generator. This method corresponds to the database table t_sys_user | countByExample | {
"repo_name": "tkdiooo/sfsctech",
"path": "demo-parent/demo-dubbox/demo-dubbox-dao/src/main/java/com/sfsctech/framework/mapper/TSysUserMapper.java",
"license": "gpl-2.0",
"size": 2755
} | [
"com.sfsctech.framework.model.domain.TSysUserExample"
] | import com.sfsctech.framework.model.domain.TSysUserExample; | import com.sfsctech.framework.model.domain.*; | [
"com.sfsctech.framework"
] | com.sfsctech.framework; | 2,891,320 |
public static Enumeration<RegisterOperand> defs(Register reg) {
return new RegOpListWalker(reg.defList);
} | static Enumeration<RegisterOperand> function(Register reg) { return new RegOpListWalker(reg.defList); } | /**
* Enumerate all operands that def a given register.
*/ | Enumerate all operands that def a given register | defs | {
"repo_name": "CodeOffloading/JikesRVM-CCO",
"path": "jikesrvm-3.1.3/rvm/src/org/jikesrvm/compilers/opt/DefUse.java",
"license": "epl-1.0",
"size": 15478
} | [
"java.util.Enumeration",
"org.jikesrvm.compilers.opt.ir.Register",
"org.jikesrvm.compilers.opt.ir.operand.RegisterOperand"
] | import java.util.Enumeration; import org.jikesrvm.compilers.opt.ir.Register; import org.jikesrvm.compilers.opt.ir.operand.RegisterOperand; | import java.util.*; import org.jikesrvm.compilers.opt.ir.*; import org.jikesrvm.compilers.opt.ir.operand.*; | [
"java.util",
"org.jikesrvm.compilers"
] | java.util; org.jikesrvm.compilers; | 971,690 |
protected Button createToggleButton( Composite parent, String buttonId,
String popupName, ITaskPopupSheet popupSheet, boolean bEnabled )
{
Button button = new Button( parent, SWT.TOGGLE );
button.setText( popupName );
// Use GC to calculate the button width
GC gc = new GC( parent );
int width = Math.m... | Button function( Composite parent, String buttonId, String popupName, ITaskPopupSheet popupSheet, boolean bEnabled ) { Button button = new Button( parent, SWT.TOGGLE ); button.setText( popupName ); GC gc = new GC( parent ); int width = Math.max( 80, gc.textExtent( popupName ).x + 17 ); gc.dispose( ); GridData gd = new ... | /**
* Creates a toggle button to popup and registers it. Note that all toggle
* buttons are registered, each button enable should call
* setToggleButtonEnabled().
*
* @param parent
* control parent
* @param buttonId
* button id without node path
* @param popupName
* ... | Creates a toggle button to popup and registers it. Note that all toggle buttons are registered, each button enable should call setToggleButtonEnabled() | createToggleButton | {
"repo_name": "Charling-Huang/birt",
"path": "chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/SubtaskSheetImpl.java",
"license": "epl-1.0",
"size": 11579
} | [
"org.eclipse.birt.chart.ui.swt.interfaces.ITaskPopupSheet",
"org.eclipse.swt.layout.GridData",
"org.eclipse.swt.widgets.Button",
"org.eclipse.swt.widgets.Composite"
] | import org.eclipse.birt.chart.ui.swt.interfaces.ITaskPopupSheet; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; | import org.eclipse.birt.chart.ui.swt.interfaces.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; | [
"org.eclipse.birt",
"org.eclipse.swt"
] | org.eclipse.birt; org.eclipse.swt; | 643,610 |
@Test
public void getProductTest() {
ProductEntity entity = data.get(0);
ProductEntity newEntity = productPersistence.find(entity.getId());
Assert.assertNotNull(newEntity);
Assert.assertEquals(entity.getName(), newEntity.getName());
Assert.assertEquals(entity.getPrice(), ... | void function() { ProductEntity entity = data.get(0); ProductEntity newEntity = productPersistence.find(entity.getId()); Assert.assertNotNull(newEntity); Assert.assertEquals(entity.getName(), newEntity.getName()); Assert.assertEquals(entity.getPrice(), newEntity.getPrice()); } | /**
* Prueba para consultar un Product.
*
* @generated
*/ | Prueba para consultar un Product | getProductTest | {
"repo_name": "Uniandes-MISO4203/turism-201620-2",
"path": "turism-logic/src/test/java/co/edu/uniandes/csw/turism/test/persistence/ProductPersistenceTest.java",
"license": "mit",
"size": 6489
} | [
"co.edu.uniandes.csw.turism.entities.ProductEntity",
"org.junit.Assert"
] | import co.edu.uniandes.csw.turism.entities.ProductEntity; import org.junit.Assert; | import co.edu.uniandes.csw.turism.entities.*; import org.junit.*; | [
"co.edu.uniandes",
"org.junit"
] | co.edu.uniandes; org.junit; | 48,238 |
void splitIdentities(FlowGraph graph) {
assert graph != null;
LOG.debug("normalizing identity operators: {}", graph); //$NON-NLS-1$
boolean changed;
do {
changed = false;
for (FlowElement element : FlowGraphUtil.collectElements(graph)) {
if (Fl... | void splitIdentities(FlowGraph graph) { assert graph != null; LOG.debug(STR, graph); boolean changed; do { changed = false; for (FlowElement element : FlowGraphUtil.collectElements(graph)) { if (FlowGraphUtil.isIdentity(element)) { changed = FlowGraphUtil.splitIdentity(element); } } } while (changed); } | /**
* Normalizes identity operators: they must have only one upstream and downstream operators.
* @param graph the target flow graph
*/ | Normalizes identity operators: they must have only one upstream and downstream operators | splitIdentities | {
"repo_name": "cocoatomo/asakusafw",
"path": "mapreduce/compiler/core/src/main/java/com/asakusafw/compiler/flow/plan/StagePlanner.java",
"license": "apache-2.0",
"size": 49872
} | [
"com.asakusafw.vocabulary.flow.graph.FlowElement",
"com.asakusafw.vocabulary.flow.graph.FlowGraph"
] | import com.asakusafw.vocabulary.flow.graph.FlowElement; import com.asakusafw.vocabulary.flow.graph.FlowGraph; | import com.asakusafw.vocabulary.flow.graph.*; | [
"com.asakusafw.vocabulary"
] | com.asakusafw.vocabulary; | 958,390 |
public static JSONArray getClusterInfoFromAPIMConfig() {
//Read the configuration from api-manager.xml
APIManagerConfiguration apimConfig = ServiceReferenceHolder.getInstance()
.getAPIManagerConfigurationService().getAPIManagerConfiguration();
return apimConfig.getContainerM... | static JSONArray function() { APIManagerConfiguration apimConfig = ServiceReferenceHolder.getInstance() .getAPIManagerConfigurationService().getAPIManagerConfiguration(); return apimConfig.getContainerMgtAttributes(); } | /**
* This method is used to get deployment clusters' configurations from the api manager configurations
*
* @return The configuration read from api-manager.xml or else null
*/ | This method is used to get deployment clusters' configurations from the api manager configurations | getClusterInfoFromAPIMConfig | {
"repo_name": "tharikaGitHub/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java",
"license": "apache-2.0",
"size": 563590
} | [
"org.json.simple.JSONArray",
"org.wso2.carbon.apimgt.impl.APIManagerConfiguration",
"org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder"
] | import org.json.simple.JSONArray; import org.wso2.carbon.apimgt.impl.APIManagerConfiguration; import org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder; | import org.json.simple.*; import org.wso2.carbon.apimgt.impl.*; import org.wso2.carbon.apimgt.impl.internal.*; | [
"org.json.simple",
"org.wso2.carbon"
] | org.json.simple; org.wso2.carbon; | 1,323,886 |
public Actions pause(long pause) {
if (isBuildingActions()) {
action.addAction(new PauseAction(pause));
}
return tick(new Pause(defaultMouse, Duration.ofMillis(pause)));
} | Actions function(long pause) { if (isBuildingActions()) { action.addAction(new PauseAction(pause)); } return tick(new Pause(defaultMouse, Duration.ofMillis(pause))); } | /**
* Performs a pause.
*
* @param pause pause duration, in milliseconds.
* @return A self reference.
*/ | Performs a pause | pause | {
"repo_name": "joshbruning/selenium",
"path": "java/client/src/org/openqa/selenium/interactions/Actions.java",
"license": "apache-2.0",
"size": 20762
} | [
"java.time.Duration"
] | import java.time.Duration; | import java.time.*; | [
"java.time"
] | java.time; | 705,166 |
public void sendError(DavException error) throws IOException; | void function(DavException error) throws IOException; | /**
* Send a response body given more detailed information about the error
* occurred.
*
* @param error
* @throws IOException
*/ | Send a response body given more detailed information about the error occurred | sendError | {
"repo_name": "apache/jackrabbit",
"path": "jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/DavServletResponse.java",
"license": "apache-2.0",
"size": 5825
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,377,934 |
@NotNull
PsiType createTypeFromText(@NotNull @NonNls String text, PsiElement context) throws IncorrectOperationException; | PsiType createTypeFromText(@NotNull @NonNls String text, PsiElement context) throws IncorrectOperationException; | /**
* Creates a Java type from the specified text.
*
* @param text the text of the type to create (for example, a primitive type keyword, an array
* declaration or the name of a class).
* @param context the PSI element used as context for resolving the reference.
* @return the create... | Creates a Java type from the specified text | createTypeFromText | {
"repo_name": "joewalnes/idea-community",
"path": "java/openapi/src/com/intellij/psi/PsiJavaParserFacade.java",
"license": "apache-2.0",
"size": 10988
} | [
"com.intellij.util.IncorrectOperationException",
"org.jetbrains.annotations.NonNls",
"org.jetbrains.annotations.NotNull"
] | import com.intellij.util.IncorrectOperationException; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; | import com.intellij.util.*; import org.jetbrains.annotations.*; | [
"com.intellij.util",
"org.jetbrains.annotations"
] | com.intellij.util; org.jetbrains.annotations; | 228,585 |
public static String installJava(Integer version) {
Preconditions.checkArgument(version == 6 || version == 7 || version == 8, "Supported Java versions are 6, 7, or 8");
return installPackageOr(MutableMap.of("apt", "openjdk-" + version + "-jdk","yum", "java-1." + version + ".0-openjdk-devel"), null,
... | static String function(Integer version) { Preconditions.checkArgument(version == 6 version == 7 version == 8, STR); return installPackageOr(MutableMap.of("apt", STR + version + "-jdk","yum", STR + version + STR), null, ifExecutableElse1(STR, chainGroup( ok(sudo(STRzypper --non-interactive addrepo http: ok(sudo(STRzyppe... | /**
* Install a particular Java runtime, fails if not possible.
* <p>
* <em><strong>Note</strong> Java 8 is not yet supported on SUSE</em>
*
* @return The command to install the given Java runtime.
* @see #installJava6OrFail()
* @see #installJava7Or6OrFail()
* @see #installJavaLa... | Install a particular Java runtime, fails if not possible. Note Java 8 is not yet supported on SUSE | installJava | {
"repo_name": "neykov/incubator-brooklyn",
"path": "utils/common/src/main/java/brooklyn/util/ssh/BashCommands.java",
"license": "apache-2.0",
"size": 28917
} | [
"com.google.common.base.Preconditions"
] | import com.google.common.base.Preconditions; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 1,059,041 |
public static QDataSet findgen(int len0, int len1, int len2) {
int size = len0 * len1 * len2;
float[] back = new float[size];
for (int i = 0; i < size; i++) {
back[i] = i;
}
return FDataSet.wrap(back, 3, len0, len1, len2);
} | static QDataSet function(int len0, int len1, int len2) { int size = len0 * len1 * len2; float[] back = new float[size]; for (int i = 0; i < size; i++) { back[i] = i; } return FDataSet.wrap(back, 3, len0, len1, len2); } | /**
* returns rank 3 dataset with values increasing
* @param len0
* @param len1
* @param len2
* @return
*/ | returns rank 3 dataset with values increasing | findgen | {
"repo_name": "autoplot/app",
"path": "QDataSet/src/org/das2/qds/ops/Ops.java",
"license": "gpl-2.0",
"size": 492716
} | [
"org.das2.qds.FDataSet",
"org.das2.qds.QDataSet"
] | import org.das2.qds.FDataSet; import org.das2.qds.QDataSet; | import org.das2.qds.*; | [
"org.das2.qds"
] | org.das2.qds; | 524,897 |
public void LogWarning(String message) {
Log.w(LOG_TAG, message);
}
| void function(String message) { Log.w(LOG_TAG, message); } | /**
* Log a warning message.
*
* @param message the warning message
*/ | Log a warning message | LogWarning | {
"repo_name": "roadlabs/alternate-java-bridge-library",
"path": "src/com/xiledsystems/AlternateJavaBridgelib/components/altbridge/Notifier.java",
"license": "apache-2.0",
"size": 12968
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 2,779,412 |
void onDirectoryChange(final FileChangeObserver observer,final File directory); | void onDirectoryChange(final FileChangeObserver observer,final File directory); | /**
* Directory changed Event.
*
* @param directory The directory changed
*/ | Directory changed Event | onDirectoryChange | {
"repo_name": "leapframework/framework",
"path": "base/lang/src/main/java/leap/lang/io/FileChangeListener.java",
"license": "apache-2.0",
"size": 2608
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 2,245,382 |
Set<Class<? extends DataSerializable>> dataSerializableClasses = REFLECTIONS.getSubTypesOf(DataSerializable.class);
Set<Class<? extends IdentifiedDataSerializable>> allIdDataSerializableClasses
= REFLECTIONS.getSubTypesOf(IdentifiedDataSerializable.class);
dataSerializableClasses.remove... | Set<Class<? extends DataSerializable>> dataSerializableClasses = REFLECTIONS.getSubTypesOf(DataSerializable.class); Set<Class<? extends IdentifiedDataSerializable>> allIdDataSerializableClasses = REFLECTIONS.getSubTypesOf(IdentifiedDataSerializable.class); dataSerializableClasses.removeAll(allIdDataSerializableClasses)... | /**
* Verifies that any class which is {@link DataSerializable} and is not annotated with {@link BinaryInterface}
* is also an {@link IdentifiedDataSerializable}.
*/ | Verifies that any class which is <code>DataSerializable</code> and is not annotated with <code>BinaryInterface</code> is also an <code>IdentifiedDataSerializable</code> | test_dataSerializableClasses_areIdentifiedDataSerializable | {
"repo_name": "dbrimley/hazelcast",
"path": "hazelcast/src/test/java/com/hazelcast/internal/serialization/impl/DataSerializableConventionsTest.java",
"license": "apache-2.0",
"size": 17479
} | [
"com.hazelcast.nio.serialization.BinaryInterface",
"com.hazelcast.nio.serialization.DataSerializable",
"com.hazelcast.nio.serialization.IdentifiedDataSerializable",
"com.hazelcast.nio.serialization.SerializableByConvention",
"com.hazelcast.test.ReflectionsHelper",
"java.io.Serializable",
"java.util.Set"... | import com.hazelcast.nio.serialization.BinaryInterface; import com.hazelcast.nio.serialization.DataSerializable; import com.hazelcast.nio.serialization.IdentifiedDataSerializable; import com.hazelcast.nio.serialization.SerializableByConvention; import com.hazelcast.test.ReflectionsHelper; import java.io.Serializable; i... | import com.hazelcast.nio.serialization.*; import com.hazelcast.test.*; import java.io.*; import java.util.*; import org.junit.*; | [
"com.hazelcast.nio",
"com.hazelcast.test",
"java.io",
"java.util",
"org.junit"
] | com.hazelcast.nio; com.hazelcast.test; java.io; java.util; org.junit; | 2,265,172 |
public ArrayList<Double> getListDouble(String key) {
String[] myList = TextUtils.split(preferences.getString(key, ""), "‚‗‚");
ArrayList<String> arrayToList = new ArrayList<String>(Arrays.asList(myList));
ArrayList<Double> newList = new ArrayList<Double>();
for (String item : ... | ArrayList<Double> function(String key) { String[] myList = TextUtils.split(preferences.getString(key, STR‚‗‚"); ArrayList<String> arrayToList = new ArrayList<String>(Arrays.asList(myList)); ArrayList<Double> newList = new ArrayList<Double>(); for (String item : arrayToList) newList.add(Double.parseDouble(item)); ... | /**
* Get parsed ArrayList of Double from SharedPreferences at 'key'
* @param key SharedPreferences key
* @return ArrayList of Double
*/ | Get parsed ArrayList of Double from SharedPreferences at 'key' | getListDouble | {
"repo_name": "vector-solutions/MatzoMatch",
"path": "app/src/main/java/com/algorepublic/matzomatch/Utils/TinyDB.java",
"license": "apache-2.0",
"size": 16343
} | [
"android.text.TextUtils",
"java.util.ArrayList",
"java.util.Arrays"
] | import android.text.TextUtils; import java.util.ArrayList; import java.util.Arrays; | import android.text.*; import java.util.*; | [
"android.text",
"java.util"
] | android.text; java.util; | 2,134,215 |
public ServiceFuture<Void> deleteAsync(String resourceGroupName, String serviceName, String opid, String ifMatch, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, serviceName, opid, ifMatch), serviceCallback);
} | ServiceFuture<Void> function(String resourceGroupName, String serviceName, String opid, String ifMatch, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, serviceName, opid, ifMatch), serviceCallback); } | /**
* Deletes specific OpenID Connect Provider of the API Management service instance.
*
* @param resourceGroupName The name of the resource group.
* @param serviceName The name of the API Management service.
* @param opid Identifier of the OpenID Connect Provider.
* @param ifMatch ETag of... | Deletes specific OpenID Connect Provider of the API Management service instance | deleteAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/apimanagement/mgmt-v2019_12_01/src/main/java/com/microsoft/azure/management/apimanagement/v2019_12_01/implementation/OpenIdConnectProvidersInner.java",
"license": "mit",
"size": 75179
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 2,434,378 |
IHashVector computeFeatures(LexicalEntry<MR> lexicalEntry,
IHashVector features);
| IHashVector computeFeatures(LexicalEntry<MR> lexicalEntry, IHashVector features); | /**
* Compute feature for a lexical item.
*
* @param lexicalEntry
* Lexical entry to compute features for
* @param features
* Feature vector to load with features. The features will be
* added to the given vector.
* @return the 'features' vector
*/ | Compute feature for a lexical item | computeFeatures | {
"repo_name": "PriyankaKhante/nlp_spf",
"path": "parser.ccg/src/edu/uw/cs/lil/tiny/parser/ccg/model/IModelImmutable.java",
"license": "gpl-2.0",
"size": 3378
} | [
"edu.uw.cs.lil.tiny.base.hashvector.IHashVector",
"edu.uw.cs.lil.tiny.ccg.lexicon.LexicalEntry"
] | import edu.uw.cs.lil.tiny.base.hashvector.IHashVector; import edu.uw.cs.lil.tiny.ccg.lexicon.LexicalEntry; | import edu.uw.cs.lil.tiny.base.hashvector.*; import edu.uw.cs.lil.tiny.ccg.lexicon.*; | [
"edu.uw.cs"
] | edu.uw.cs; | 1,631,455 |
public void setUrlPathHelper(UrlPathHelper urlPathHelper) {
this.urlPathHelper = urlPathHelper;
} | void function(UrlPathHelper urlPathHelper) { this.urlPathHelper = urlPathHelper; } | /**
* Set the UrlPathHelper to use for resolution of lookup paths.
* <p>Use this to override the default UrlPathHelper with a custom subclass,
* or to share common UrlPathHelper settings across multiple MethodNameResolvers
* and HandlerMappings.
* @see org.springframework.web.servlet.handler.AbstractUrlHandle... | Set the UrlPathHelper to use for resolution of lookup paths. Use this to override the default UrlPathHelper with a custom subclass, or to share common UrlPathHelper settings across multiple MethodNameResolvers and HandlerMappings | setUrlPathHelper | {
"repo_name": "raedle/univis",
"path": "lib/springframework-1.2.8/src/org/springframework/web/servlet/mvc/multiaction/AbstractUrlMethodNameResolver.java",
"license": "lgpl-2.1",
"size": 4299
} | [
"org.springframework.web.util.UrlPathHelper"
] | import org.springframework.web.util.UrlPathHelper; | import org.springframework.web.util.*; | [
"org.springframework.web"
] | org.springframework.web; | 1,924,620 |
public final AlertDialog initiateScan(Collection<String> desiredBarcodeFormats) {
return initiateScan(desiredBarcodeFormats, -1);
} | final AlertDialog function(Collection<String> desiredBarcodeFormats) { return initiateScan(desiredBarcodeFormats, -1); } | /**
* Initiates a scan, using the default camera, only for a certain set of barcode types, given as strings corresponding
* to their names in ZXing's {@code BarcodeFormat} class like "UPC_A". You can supply constants
* like {@link #PRODUCT_CODE_TYPES} for example.
*
* @param desiredBarcodeForma... | Initiates a scan, using the default camera, only for a certain set of barcode types, given as strings corresponding to their names in ZXing's BarcodeFormat class like "UPC_A". You can supply constants like <code>#PRODUCT_CODE_TYPES</code> for example | initiateScan | {
"repo_name": "JimSeker/AudioVideo",
"path": "qrDemo/app/src/main/java/edu/cs4730/qrDemo/IntentIntegrator.java",
"license": "apache-2.0",
"size": 20372
} | [
"android.app.AlertDialog",
"java.util.Collection"
] | import android.app.AlertDialog; import java.util.Collection; | import android.app.*; import java.util.*; | [
"android.app",
"java.util"
] | android.app; java.util; | 2,566,858 |
void removeGroupMembers(long groupId, List<Long> userIds, List<String> usernames)
throws ServiceLayerException, UserNotFoundException, GroupNotFoundException, AuthenticationException; | void removeGroupMembers(long groupId, List<Long> userIds, List<String> usernames) throws ServiceLayerException, UserNotFoundException, GroupNotFoundException, AuthenticationException; | /**
* Remove users from the group
*
* @param groupId Group identifier
* @param userIds List of user identifiers
* @param usernames List of usernames
*/ | Remove users from the group | removeGroupMembers | {
"repo_name": "craftercms/studio2",
"path": "src/main/java/org/craftercms/studio/api/v2/service/security/GroupService.java",
"license": "gpl-3.0",
"size": 4450
} | [
"java.util.List",
"org.craftercms.studio.api.v1.exception.ServiceLayerException",
"org.craftercms.studio.api.v1.exception.security.AuthenticationException",
"org.craftercms.studio.api.v1.exception.security.GroupNotFoundException",
"org.craftercms.studio.api.v1.exception.security.UserNotFoundException"
] | import java.util.List; import org.craftercms.studio.api.v1.exception.ServiceLayerException; import org.craftercms.studio.api.v1.exception.security.AuthenticationException; import org.craftercms.studio.api.v1.exception.security.GroupNotFoundException; import org.craftercms.studio.api.v1.exception.security.UserNotFoundEx... | import java.util.*; import org.craftercms.studio.api.v1.exception.*; import org.craftercms.studio.api.v1.exception.security.*; | [
"java.util",
"org.craftercms.studio"
] | java.util; org.craftercms.studio; | 1,537,944 |
public void testAdvisoryPrefetchSize() throws Exception {
ActiveMQTopic advisoryTopic = new ActiveMQTopic("ActiveMQ.Advisory.Consumer.Topic.A.>");
ActiveMQTopic topic1 = new ActiveMQTopic("A.FOO");
createBroker("A");
BrokerService brokerB = createBroker("B");
NetworkConnecto... | void function() throws Exception { ActiveMQTopic advisoryTopic = new ActiveMQTopic(STR); ActiveMQTopic topic1 = new ActiveMQTopic("A.FOO"); createBroker("A"); BrokerService brokerB = createBroker("B"); NetworkConnector networkBridge = bridgeBrokers("A", "B"); networkBridge.addStaticallyIncludedDestination(advisoryTopic... | /**
* Test that explicitly setting advisoryPrefetchSize works for advisory topics
* on a network connector
*
* @throws Exception
*/ | Test that explicitly setting advisoryPrefetchSize works for advisory topics on a network connector | testAdvisoryPrefetchSize | {
"repo_name": "chirino/activemq",
"path": "activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AdvisoryViaNetworkTest.java",
"license": "apache-2.0",
"size": 16142
} | [
"org.apache.activemq.broker.BrokerService",
"org.apache.activemq.command.ActiveMQTopic",
"org.apache.activemq.network.NetworkConnector"
] | import org.apache.activemq.broker.BrokerService; import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.network.NetworkConnector; | import org.apache.activemq.broker.*; import org.apache.activemq.command.*; import org.apache.activemq.network.*; | [
"org.apache.activemq"
] | org.apache.activemq; | 810,878 |
public static boolean isClusteringEnabled() {
return JiveGlobals.getXMLProperty(CLUSTER_PROPERTY_NAME, false);
} | static boolean function() { return JiveGlobals.getXMLProperty(CLUSTER_PROPERTY_NAME, false); } | /**
* Returns true if clustering support is enabled. This does not mean
* that clustering has started or that clustering will be able to start.
*
* @return true if clustering support is enabled.
*/ | Returns true if clustering support is enabled. This does not mean that clustering has started or that clustering will be able to start | isClusteringEnabled | {
"repo_name": "akrherz/Openfire",
"path": "xmppserver/src/main/java/org/jivesoftware/openfire/cluster/ClusterManager.java",
"license": "apache-2.0",
"size": 29759
} | [
"org.jivesoftware.util.JiveGlobals"
] | import org.jivesoftware.util.JiveGlobals; | import org.jivesoftware.util.*; | [
"org.jivesoftware.util"
] | org.jivesoftware.util; | 1,251,275 |
private boolean advanceCursorToNextBatch() {
long trackPointId = lastTrackPointId == -1L ? -1L
: lastTrackPointId + (descending ? -1 : 1);
Log.d(TAG, "Advancing track point id: " + trackPointId);
cursor.close();
cursor = getCursor(trackPointId);
return cursor !=... | boolean function() { long trackPointId = lastTrackPointId == -1L ? -1L : lastTrackPointId + (descending ? -1 : 1); Log.d(TAG, STR + trackPointId); cursor.close(); cursor = getCursor(trackPointId); return cursor != null; } | /**
* Advances the cursor to the next batch. Returns true if successful.
*/ | Advances the cursor to the next batch. Returns true if successful | advanceCursorToNextBatch | {
"repo_name": "AdaDeb/septracks",
"path": "MyTracksLib/src/com/google/android/apps/mytracks/content/MyTracksProviderUtilsImpl.java",
"license": "gpl-2.0",
"size": 41273
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 353,053 |
public void optimize() {
final List<BaseVertex> sorted = new ArrayList<BaseVertex>( this.vertices ); | void function() { final List<BaseVertex> sorted = new ArrayList<BaseVertex>( this.vertices ); | /**
* Optimizing vertices for optimal presentation
*/ | Optimizing vertices for optimal presentation | optimize | {
"repo_name": "etirelli/droolsjbpm-tools",
"path": "drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/rete/Row.java",
"license": "apache-2.0",
"size": 3370
} | [
"java.util.ArrayList",
"java.util.List",
"org.drools.eclipse.reteoo.BaseVertex"
] | import java.util.ArrayList; import java.util.List; import org.drools.eclipse.reteoo.BaseVertex; | import java.util.*; import org.drools.eclipse.reteoo.*; | [
"java.util",
"org.drools.eclipse"
] | java.util; org.drools.eclipse; | 1,439,921 |
private static boolean isExtraHtml(String token, Deque<HtmlTag> htmlStack) {
boolean isExtra = true;
for (final HtmlTag td : htmlStack) {
// Loop, looking for tags that are closed.
// The loop is needed in case there are unclosed
// tags on the stack. In that case... | static boolean function(String token, Deque<HtmlTag> htmlStack) { boolean isExtra = true; for (final HtmlTag td : htmlStack) { if (token.equalsIgnoreCase(td.getId())) { isExtra = false; break; } } return isExtra; } | /**
* Determines if the given token is an extra HTML tag. This indicates that
* a close tag was found that does not have a corresponding open tag.
*
* @param token an HTML tag id for which a close was found.
* @param htmlStack a Stack of previous open HTML tags.
* @return {@code false} if ... | Determines if the given token is an extra HTML tag. This indicates that a close tag was found that does not have a corresponding open tag | isExtraHtml | {
"repo_name": "gallandarakhneorg/checkstyle",
"path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java",
"license": "lgpl-2.1",
"size": 19724
} | [
"java.util.Deque"
] | import java.util.Deque; | import java.util.*; | [
"java.util"
] | java.util; | 2,152,011 |
private void registerCheck(int aTokenID, Check aCheck)
{
registerCheck(TokenTypes.getTokenName(aTokenID), aCheck);
} | void function(int aTokenID, Check aCheck) { registerCheck(TokenTypes.getTokenName(aTokenID), aCheck); } | /**
* Register a check for a specified token id.
* @param aTokenID the id of the token
* @param aCheck the check to register
*/ | Register a check for a specified token id | registerCheck | {
"repo_name": "Andrew0701/checkstyle",
"path": "src/checkstyle/com/puppycrawl/tools/checkstyle/TreeWalker.java",
"license": "lgpl-2.1",
"size": 16284
} | [
"com.puppycrawl.tools.checkstyle.api.Check",
"com.puppycrawl.tools.checkstyle.api.TokenTypes"
] | import com.puppycrawl.tools.checkstyle.api.Check; import com.puppycrawl.tools.checkstyle.api.TokenTypes; | import com.puppycrawl.tools.checkstyle.api.*; | [
"com.puppycrawl.tools"
] | com.puppycrawl.tools; | 2,583,397 |
public String getA8() {
return getUnsignedDecimal(5 + 43, 4);
} // getA8
//----------------
protected static final Field A9 = new Field(5 + 47, 6, "A9");
| String function() { return getUnsignedDecimal(5 + 43, 4); } protected static final Field A9 = new Field(5 + 47, 6, "A9"); | /** Gets A8 - Intern 1
* @return Intern 1
*/ | Gets A8 - Intern 1 | getA8 | {
"repo_name": "gfis/xtrans",
"path": "src/main/java/org/teherba/xtrans/finance/DTA2RecordBase.java",
"license": "apache-2.0",
"size": 30931
} | [
"org.teherba.xtrans.Field"
] | import org.teherba.xtrans.Field; | import org.teherba.xtrans.*; | [
"org.teherba.xtrans"
] | org.teherba.xtrans; | 2,078,844 |
@Override
public void abortTask(TaskAttemptContext context) throws IOException {
abortTask(context, null);
} | void function(TaskAttemptContext context) throws IOException { abortTask(context, null); } | /**
* Delete the work directory
* @throws IOException
*/ | Delete the work directory | abortTask | {
"repo_name": "cnfire/hadoop",
"path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java",
"license": "apache-2.0",
"size": 23132
} | [
"java.io.IOException",
"org.apache.hadoop.mapreduce.TaskAttemptContext"
] | import java.io.IOException; import org.apache.hadoop.mapreduce.TaskAttemptContext; | import java.io.*; import org.apache.hadoop.mapreduce.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 760,783 |
public NodeTableStatistics readNodeTable(String container,
NodeTable nodeTable, boolean cached); | NodeTableStatistics function(String container, NodeTable nodeTable, boolean cached); | /**
* Returns the table statistics of the node as specified by the given container
* @param node
* @param cached
* @return
*/ | Returns the table statistics of the node as specified by the given container | readNodeTable | {
"repo_name": "lbchen/ODL",
"path": "opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/IReadServiceFilter.java",
"license": "epl-1.0",
"size": 3448
} | [
"org.opendaylight.controller.sal.core.NodeTable",
"org.opendaylight.controller.sal.reader.NodeTableStatistics"
] | import org.opendaylight.controller.sal.core.NodeTable; import org.opendaylight.controller.sal.reader.NodeTableStatistics; | import org.opendaylight.controller.sal.core.*; import org.opendaylight.controller.sal.reader.*; | [
"org.opendaylight.controller"
] | org.opendaylight.controller; | 1,266,448 |
public void addPosition(ClassifyPosition position) {
position.setPositionId(positions.size());
positions.add(position);
refreshPositions();
} | void function(ClassifyPosition position) { position.setPositionId(positions.size()); positions.add(position); refreshPositions(); } | /**
* Add the position to the positions list.
* @param position The new position to add.
*/ | Add the position to the positions list | addPosition | {
"repo_name": "CecileBONIN/Silverpeas-Core",
"path": "war-core/src/main/java/com/stratelia/silverpeas/pdcPeas/control/PdcFieldPositionsManager.java",
"license": "agpl-3.0",
"size": 6062
} | [
"com.stratelia.silverpeas.pdc.model.ClassifyPosition"
] | import com.stratelia.silverpeas.pdc.model.ClassifyPosition; | import com.stratelia.silverpeas.pdc.model.*; | [
"com.stratelia.silverpeas"
] | com.stratelia.silverpeas; | 1,860,133 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.