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 delete(String... pathElements) throws CreateSendException { delete(null, pathElements); }
void function(String... pathElements) throws CreateSendException { delete(null, pathElements); }
/** * Makes a HTTP DELETE request to the specified path * @param pathElements The path of the resource to delete * @throws CreateSendException Raised when the API responds with a HTTP Status >= 400 */
Makes a HTTP DELETE request to the specified path
delete
{ "repo_name": "campaignmonitor/createsend-java", "path": "src/com/createsend/util/JerseyClientImpl.java", "license": "mit", "size": 21901 }
[ "com.createsend.util.exceptions.CreateSendException" ]
import com.createsend.util.exceptions.CreateSendException;
import com.createsend.util.exceptions.*;
[ "com.createsend.util" ]
com.createsend.util;
7,649
public static Element paragraph( final SParagraph s) { NullCheck.notNull(s, "Paragraph"); final Element e = new Element("s:paragraph", SXML.XML_URI.toString()); s.getType().map(new TypeAdder(e)); s.getID().map(new IDAdder(e)); for (final SParagraphContent c : s.getContent().getElements()) {...
static Element function( final SParagraph s) { NullCheck.notNull(s, STR); final Element e = new Element(STR, SXML.XML_URI.toString()); s.getType().map(new TypeAdder(e)); s.getID().map(new IDAdder(e)); for (final SParagraphContent c : s.getContent().getElements()) { e.appendChild(SDocumentSerializer.paragraphContent(c))...
/** * Serialize the given element to XML. * * @param s * The element * @return An XML element */
Serialize the given element to XML
paragraph
{ "repo_name": "io7m/jstructural", "path": "io7m-jstructural-xom/src/main/java/com/io7m/jstructural/xom/SDocumentSerializer.java", "license": "isc", "size": 36816 }
[ "com.io7m.jnull.NullCheck", "com.io7m.jstructural.core.SParagraph", "com.io7m.jstructural.core.SParagraphContent", "nu.xom.Element" ]
import com.io7m.jnull.NullCheck; import com.io7m.jstructural.core.SParagraph; import com.io7m.jstructural.core.SParagraphContent; import nu.xom.Element;
import com.io7m.jnull.*; import com.io7m.jstructural.core.*; import nu.xom.*;
[ "com.io7m.jnull", "com.io7m.jstructural", "nu.xom" ]
com.io7m.jnull; com.io7m.jstructural; nu.xom;
710,540
void setupMaintenanceObject(MaintenanceDocument document, String maintenanceAction, Map<String, String[]> requestParameters);
void setupMaintenanceObject(MaintenanceDocument document, String maintenanceAction, Map<String, String[]> requestParameters);
/** * Called to setup the object being maintained. * * <p>For edit and copy actions, the old record is retrieved and prepared for * editing (in the case of a copy some fields are cleared). In addition some * authorization checks are performed and hooks for custom * <code>Maintainble</code>...
Called to setup the object being maintained. For edit and copy actions, the old record is retrieved and prepared for editing (in the case of a copy some fields are cleared). In addition some authorization checks are performed and hooks for custom <code>Maintainble</code> implementations are invoked
setupMaintenanceObject
{ "repo_name": "ricepanda/rice-git3", "path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/service/MaintenanceDocumentService.java", "license": "apache-2.0", "size": 4552 }
[ "java.util.Map", "org.kuali.rice.krad.maintenance.MaintenanceDocument" ]
import java.util.Map; import org.kuali.rice.krad.maintenance.MaintenanceDocument;
import java.util.*; import org.kuali.rice.krad.maintenance.*;
[ "java.util", "org.kuali.rice" ]
java.util; org.kuali.rice;
1,993,893
public AsciiString toUpperCase() { boolean uppercased = true; int i, j; final int len = length() + arrayOffset(); for (i = arrayOffset(); i < len; ++i) { byte b = value[i]; if (b >= 'a' && b <= 'z') { uppercased = false; break; ...
AsciiString function() { boolean uppercased = true; int i, j; final int len = length() + arrayOffset(); for (i = arrayOffset(); i < len; ++i) { byte b = value[i]; if (b >= 'a' && b <= 'z') { uppercased = false; break; } } if (uppercased) { return this; } final byte[] newValue = PlatformDependent.allocateUninitializedAr...
/** * Converts the characters in this string to uppercase, using the default Locale. * * @return a new string containing the uppercase characters equivalent to the characters in this string. */
Converts the characters in this string to uppercase, using the default Locale
toUpperCase
{ "repo_name": "gerdriesselmann/netty", "path": "common/src/main/java/io/netty/util/AsciiString.java", "license": "apache-2.0", "size": 69830 }
[ "io.netty.util.internal.PlatformDependent" ]
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.*;
[ "io.netty.util" ]
io.netty.util;
1,347,095
public void setResourceExtensionParameterValues(final ArrayList<ResourceExtensionParameterValue> resourceExtensionParameterValuesValue) { this.resourceExtensionParameterValues = resourceExtensionParameterValuesValue; } private String state;
void function(final ArrayList<ResourceExtensionParameterValue> resourceExtensionParameterValuesValue) { this.resourceExtensionParameterValues = resourceExtensionParameterValuesValue; } private String state;
/** * Optional. Contains a collection of parameters that are passed to the * resource extension when it is installed. * @param resourceExtensionParameterValuesValue The * ResourceExtensionParameterValues value. */
Optional. Contains a collection of parameters that are passed to the resource extension when it is installed
setResourceExtensionParameterValues
{ "repo_name": "southworkscom/azure-sdk-for-java", "path": "service-management/azure-svc-mgmt-compute/src/main/java/com/microsoft/windowsazure/management/compute/models/ResourceExtensionReference.java", "license": "apache-2.0", "size": 6073 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,471,397
@Override public Adapter createLogMessageAdapter() { if (logMessageItemProvider == null) { logMessageItemProvider = new LogMessageItemProvider(this); } return logMessageItemProvider; } protected ChangePackageItemProvider changePackageItemProvider;
Adapter function() { if (logMessageItemProvider == null) { logMessageItemProvider = new LogMessageItemProvider(this); } return logMessageItemProvider; } protected ChangePackageItemProvider changePackageItemProvider;
/** * This creates an adapter for a {@link org.eclipse.emf.emfstore.internal.server.model.versioning.LogMessage}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */
This creates an adapter for a <code>org.eclipse.emf.emfstore.internal.server.model.versioning.LogMessage</code>.
createLogMessageAdapter
{ "repo_name": "edgarmueller/emfstore-rest", "path": "bundles/org.eclipse.emf.emfstore.server.model.edit/src/org/eclipse/emf/emfstore/internal/server/model/versioning/provider/VersioningItemProviderAdapterFactory.java", "license": "epl-1.0", "size": 18587 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,904,559
public Properties getJavaMailProperties() { return this.javaMailProperties; }
Properties function() { return this.javaMailProperties; }
/** * Allow Map access to the JavaMail properties of this sender, * with the option to add or override specific entries. * <p>Useful for specifying entries directly, for example via * "javaMailProperties[mail.smtp.auth]". */
Allow Map access to the JavaMail properties of this sender, with the option to add or override specific entries. Useful for specifying entries directly, for example via "javaMailProperties[mail.smtp.auth]"
getJavaMailProperties
{ "repo_name": "deathspeeder/class-guard", "path": "spring-framework-3.2.x/spring-context-support/src/main/java/org/springframework/mail/javamail/JavaMailSenderImpl.java", "license": "gpl-2.0", "size": 14736 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
2,419,963
public static String toString(List<CssSelector> selectors) { StringBuilder out = new StringBuilder(); for (CssSelector s : selectors) { out.append(s.toString()); } return out.toString(); }
static String function(List<CssSelector> selectors) { StringBuilder out = new StringBuilder(); for (CssSelector s : selectors) { out.append(s.toString()); } return out.toString(); }
/** * Returns string representation of given list of selectors. */
Returns string representation of given list of selectors
toString
{ "repo_name": "nithril/stax-css-matcher", "path": "src/main/java/jodd/csselly/CSSelly.java", "license": "apache-2.0", "size": 2501 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,072,905
private static DLNAResource createResourceWithAudioSubtitlePlayer( DLNAResource original, DLNAMediaAudio audio, DLNAMediaSubtitle subtitle, Player player) { // FIXME clone is broken. should be e.g. original.newInstance() DLNAResource copy = original.clone(); copy.setMedia(original.getMedia()); copy.s...
static DLNAResource function( DLNAResource original, DLNAMediaAudio audio, DLNAMediaSubtitle subtitle, Player player) { DLNAResource copy = original.clone(); copy.setMedia(original.getMedia()); copy.setNoName(true); copy.setMediaAudio(audio); copy.setMediaSubtitle(subtitle); copy.setPlayer(player); return copy; } priva...
/** * Create a copy of the provided original resource and optionally set * the copy's audio track, subtitle track and player. * * @param original The original {@link DLNAResource} to create a copy of. * @param audio The audio track to use. * @param subtitle The subtitle track to use. * @param player The p...
Create a copy of the provided original resource and optionally set the copy's audio track, subtitle track and player
createResourceWithAudioSubtitlePlayer
{ "repo_name": "DigitalMediaServer/DigitalMediaServer", "path": "src/main/java/net/pms/dlna/FileTranscodeVirtualFolder.java", "license": "gpl-2.0", "size": 10328 }
[ "java.util.ArrayList", "java.util.Comparator", "net.pms.encoders.Player" ]
import java.util.ArrayList; import java.util.Comparator; import net.pms.encoders.Player;
import java.util.*; import net.pms.encoders.*;
[ "java.util", "net.pms.encoders" ]
java.util; net.pms.encoders;
2,833,866
@FIXVersion(introduced="4.2") @TagNumRef(tagNum=TagNum.TradSesEndTime) public Date getTradSesEndTime() { return tradSesEndTime; }
@FIXVersion(introduced="4.2") @TagNumRef(tagNum=TagNum.TradSesEndTime) Date function() { return tradSesEndTime; }
/** * Message field getter. * @return field value */
Message field getter
getTradSesEndTime
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/TradingSessionStatusMsg.java", "license": "gpl-3.0", "size": 30000 }
[ "java.util.Date", "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.TagNum" ]
import java.util.Date; import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum;
import java.util.*; import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "java.util", "net.hades.fix" ]
java.util; net.hades.fix;
1,701,181
public static boolean isURL(final CharSequence input) { return isMatch(RegexConstants.REGEX_URL, input); }
static boolean function(final CharSequence input) { return isMatch(RegexConstants.REGEX_URL, input); }
/** * Return whether input matches regex of url. * * @param input The input. * @return {@code true}: yes<br>{@code false}: no */
Return whether input matches regex of url
isURL
{ "repo_name": "didi/DoraemonKit", "path": "Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/RegexUtils.java", "license": "apache-2.0", "size": 10780 }
[ "com.didichuxing.doraemonkit.constant.RegexConstants" ]
import com.didichuxing.doraemonkit.constant.RegexConstants;
import com.didichuxing.doraemonkit.constant.*;
[ "com.didichuxing.doraemonkit" ]
com.didichuxing.doraemonkit;
1,529,914
public static CategoryLabelPositions createUpRotationLabelPositions( double angle) { return new CategoryLabelPositions( new CategoryLabelPosition( RectangleAnchor.BOTTOM, TextBlockAnchor.BOTTOM_LEFT, TextAnchor.BOTTOM_LEFT, -angle, ...
static CategoryLabelPositions function( double angle) { return new CategoryLabelPositions( new CategoryLabelPosition( RectangleAnchor.BOTTOM, TextBlockAnchor.BOTTOM_LEFT, TextAnchor.BOTTOM_LEFT, -angle, CategoryLabelWidthType.RANGE, 0.50f), new CategoryLabelPosition( RectangleAnchor.TOP, TextBlockAnchor.TOP_RIGHT, Text...
/** * Creates a new instance where the category labels angled upwards by the * specified amount. * * @param angle the rotation angle (should be &lt; Math.PI / 2.0). * * @return A category label position specification. */
Creates a new instance where the category labels angled upwards by the specified amount
createUpRotationLabelPositions
{ "repo_name": "simon04/jfreechart", "path": "src/main/java/org/jfree/chart/axis/CategoryLabelPositions.java", "license": "lgpl-2.1", "size": 15900 }
[ "org.jfree.text.TextBlockAnchor", "org.jfree.ui.RectangleAnchor", "org.jfree.ui.TextAnchor" ]
import org.jfree.text.TextBlockAnchor; import org.jfree.ui.RectangleAnchor; import org.jfree.ui.TextAnchor;
import org.jfree.text.*; import org.jfree.ui.*;
[ "org.jfree.text", "org.jfree.ui" ]
org.jfree.text; org.jfree.ui;
836,951
public void enableExternalAuth(Connection c, Map<String, String> config, String serviceName, String authType) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = "host.enable_external_auth"; String session = c.getSessionReference(); Object[]...
void function(Connection c, Map<String, String> config, String serviceName, String authType) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalli...
/** * This call enables external authentication on a host * * @param config A list of key-values containing the configuration data * @param serviceName The name of the service * @param authType The type of authentication (e.g. AD for Active Directory) */
This call enables external authentication on a host
enableExternalAuth
{ "repo_name": "cinderella/incubator-cloudstack", "path": "deps/XenServerJava/com/xensource/xenapi/Host.java", "license": "apache-2.0", "size": 105838 }
[ "com.xensource.xenapi.Types", "java.util.Map", "org.apache.xmlrpc.XmlRpcException" ]
import com.xensource.xenapi.Types; import java.util.Map; import org.apache.xmlrpc.XmlRpcException;
import com.xensource.xenapi.*; import java.util.*; import org.apache.xmlrpc.*;
[ "com.xensource.xenapi", "java.util", "org.apache.xmlrpc" ]
com.xensource.xenapi; java.util; org.apache.xmlrpc;
625,288
List<ImportableFile> getFilesToImport() { List<ImportableFile> files = new ArrayList<ImportableFile>(); int n = table.getRowCount(); DefaultTableModel dtm = (DefaultTableModel) table.getModel(); FileElement element; FileObject file; ImportableFile importable; boolean isFolderDatas...
List<ImportableFile> getFilesToImport() { List<ImportableFile> files = new ArrayList<ImportableFile>(); int n = table.getRowCount(); DefaultTableModel dtm = (DefaultTableModel) table.getModel(); FileElement element; FileObject file; ImportableFile importable; boolean isFolderDataset; DataNodeElement dne; DatasetData da...
/** * Returns the collection of files to import. * * @return See above. */
Returns the collection of files to import
getFilesToImport
{ "repo_name": "stelfrich/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/fsimporter/chooser/FileSelectionTable.java", "license": "gpl-2.0", "size": 24159 }
[ "java.util.ArrayList", "java.util.List", "javax.swing.table.DefaultTableModel", "org.openmicroscopy.shoola.env.data.model.FileObject", "org.openmicroscopy.shoola.env.data.model.ImportableFile" ]
import java.util.ArrayList; import java.util.List; import javax.swing.table.DefaultTableModel; import org.openmicroscopy.shoola.env.data.model.FileObject; import org.openmicroscopy.shoola.env.data.model.ImportableFile;
import java.util.*; import javax.swing.table.*; import org.openmicroscopy.shoola.env.data.model.*;
[ "java.util", "javax.swing", "org.openmicroscopy.shoola" ]
java.util; javax.swing; org.openmicroscopy.shoola;
279,477
public void setJTable(JTable table) {this.table=table;}
public void setJTable(JTable table) {this.table=table;}
/** * Public Accessor methods for the Table on which this adapter acts. */
Public Accessor methods for the Table on which this adapter acts
getJTable
{ "repo_name": "BayCEER/goat", "path": "src/main/java/de/unibayreuth/bayeos/utils/ExcelAdapter.java", "license": "gpl-2.0", "size": 3678 }
[ "javax.swing.JTable" ]
import javax.swing.JTable;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,885,073
private static int trimLockdown(BufferedImage img, int y1) { for (int j = y1 + 1; j < img.getHeight(); j++) { int counterWhite = 0; for (int i = 0; i < img.getWidth(); i++) { if (img.getRGB(i, j) == -1) { counterWhite++; } ...
static int function(BufferedImage img, int y1) { for (int j = y1 + 1; j < img.getHeight(); j++) { int counterWhite = 0; for (int i = 0; i < img.getWidth(); i++) { if (img.getRGB(i, j) == -1) { counterWhite++; } } if (counterWhite == img.getWidth()) { if (j > (img.getHeight() / 2)) { return j; } } if (j == img.getHeight...
/** * This method reads the input image from the input from start pixel height * (y1) until it reads the first next row where all pixel are white by * height and return that value * * @param Img - input image that will be read * @param y1 - input start height pixel of image * @return ...
This method reads the input image from the input from start pixel height (y1) until it reads the first next row where all pixel are white by height and return that value
trimLockdown
{ "repo_name": "mhl787156/MinecraftAI", "path": "libraries/neuroph-2.92/sources/neuroph-2.92/ImageRec/src/main/java/org/neuroph/imgrec/ImageUtilities.java", "license": "lgpl-2.1", "size": 12233 }
[ "java.awt.image.BufferedImage" ]
import java.awt.image.BufferedImage;
import java.awt.image.*;
[ "java.awt" ]
java.awt;
2,892,341
void writeTo(OutputStream os) throws IOException;
void writeTo(OutputStream os) throws IOException;
/** * Writes the stream to the given output * * @param os the destination to write to * @throws java.io.IOException is thrown if write fails */
Writes the stream to the given output
writeTo
{ "repo_name": "ullgren/camel", "path": "core/camel-api/src/main/java/org/apache/camel/StreamCache.java", "license": "apache-2.0", "size": 3114 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
701,258
// untested function byte [] getNV21(int inputWidth, int inputHeight, Bitmap scaled, boolean needRecycle) { int [] argb = new int[inputWidth * inputHeight]; scaled.getPixels(argb, 0, inputWidth, 0, 0, inputWidth, inputHeight); byte [] yuv = new byte[inputWidth*inputHeight*3/2]; ...
byte [] getNV21(int inputWidth, int inputHeight, Bitmap scaled, boolean needRecycle) { int [] argb = new int[inputWidth * inputHeight]; scaled.getPixels(argb, 0, inputWidth, 0, 0, inputWidth, inputHeight); byte [] yuv = new byte[inputWidth*inputHeight*3/2]; encodeYUV420SP(yuv, argb, inputWidth, inputHeight); if (needRe...
/** * Conversion tool */
Conversion tool
getNV21
{ "repo_name": "quanhua92/AudioVideoRecorder", "path": "recorduvccamera/src/main/java/com/quan404/recorduvccamera/MainActivity.java", "license": "mit", "size": 30517 }
[ "android.graphics.Bitmap" ]
import android.graphics.Bitmap;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
1,768,898
@Override public void addSessionListener(SessionListener listener) { listeners.add(listener); }
void function(SessionListener listener) { listeners.add(listener); }
/** * Add a session event listener to this component. */
Add a session event listener to this component
addSessionListener
{ "repo_name": "WhiteBearSolutions/WBSAirback", "path": "packages/wbsairback-tomcat/wbsairback-tomcat-7.0.22/java/org/apache/catalina/session/StandardSession.java", "license": "apache-2.0", "size": 60548 }
[ "org.apache.catalina.SessionListener" ]
import org.apache.catalina.SessionListener;
import org.apache.catalina.*;
[ "org.apache.catalina" ]
org.apache.catalina;
1,363,558
public void addAttribute(Attribute attribute) { if (attributes == null) { attributes = new ArrayList<Attribute>(); } attributes.add(attribute); }
void function(Attribute attribute) { if (attributes == null) { attributes = new ArrayList<Attribute>(); } attributes.add(attribute); }
/** * Add a new attribute. * * @param attribute * the attribute */
Add a new attribute
addAttribute
{ "repo_name": "telefonicaid/fiware-sdc", "path": "model/src/main/java/com/telefonica/euro_iaas/sdc/model/Product.java", "license": "apache-2.0", "size": 9661 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,114,115
@GET @Path("/{template}/{service:.*}/{key}/exact") @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_JAVAARGS, MediaType.APPLICATION_JAVAPROPS}) @RolesAllowed({"VIEW_CONFIGVALUES", "EDIT_CONFIGVALUES", "USE_AGENT_API"}) String getExact(@PathParam("template") String template, @PathParam("service") Stri...
@Path(STR) @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_JAVAARGS, MediaType.APPLICATION_JAVAPROPS}) @RolesAllowed({STR, STR, STR}) String getExact(@PathParam(STR) String template, @PathParam(STR) String service, @PathParam("key") String key);
/** * Returns the value for a key of the given service within the template as Key-Value Pair, but does no parent matching * * @param template the template name * @param service the name of the service * @param key the name of the key * @return the value of the key of the service within the template ...
Returns the value for a key of the given service within the template as Key-Value Pair, but does no parent matching
getExact
{ "repo_name": "cinovo/cloudconductor-api", "path": "src/main/java/de/cinovo/cloudconductor/api/interfaces/IConfigValue.java", "license": "apache-2.0", "size": 8323 }
[ "de.cinovo.cloudconductor.api.MediaType", "javax.annotation.security.RolesAllowed", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces" ]
import de.cinovo.cloudconductor.api.MediaType; import javax.annotation.security.RolesAllowed; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces;
import de.cinovo.cloudconductor.api.*; import javax.annotation.security.*; import javax.ws.rs.*;
[ "de.cinovo.cloudconductor", "javax.annotation", "javax.ws" ]
de.cinovo.cloudconductor; javax.annotation; javax.ws;
577,000
List<TOptionSettingsBean> loadByConfigList(List<Integer> configIDs);
List<TOptionSettingsBean> loadByConfigList(List<Integer> configIDs);
/** * Loads all option settings for a list of configIDs * - Key: a combination of configID and parameterCode * - Value TOptionSettingsBean * @param configIDs * @return */
Loads all option settings for a list of configIDs - Key: a combination of configID and parameterCode - Value TOptionSettingsBean
loadByConfigList
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/dao/OptionSettingsDAO.java", "license": "gpl-3.0", "size": 2201 }
[ "com.aurel.track.beans.TOptionSettingsBean", "java.util.List" ]
import com.aurel.track.beans.TOptionSettingsBean; import java.util.List;
import com.aurel.track.beans.*; import java.util.*;
[ "com.aurel.track", "java.util" ]
com.aurel.track; java.util;
1,105,405
protected Exchange createExchangeWithBody(Object body) { return createExchangeWithBody(context, body); }
Exchange function(Object body) { return createExchangeWithBody(context, body); }
/** * Creates an exchange with the given body */
Creates an exchange with the given body
createExchangeWithBody
{ "repo_name": "sverkera/camel", "path": "components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java", "license": "apache-2.0", "size": 40566 }
[ "org.apache.camel.Exchange" ]
import org.apache.camel.Exchange;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
11,164
public static Splitter on(final CharMatcher separatorMatcher) { checkNotNull(separatorMatcher);
static Splitter function(final CharMatcher separatorMatcher) { checkNotNull(separatorMatcher);
/** * Returns a splitter that considers any single character matched by the * given {@code CharMatcher} to be a separator. For example, {@code * Splitter.on(CharMatcher.anyOf(";,")).split("foo,;bar,quux")} returns an * iterable containing {@code ["foo", "", "bar", "quux"]}. * * @param separatorMatcher...
Returns a splitter that considers any single character matched by the given CharMatcher to be a separator. For example, Splitter.on(CharMatcher.anyOf(";,")).split("foo,;bar,quux") returns an iterable containing ["foo", "", "bar", "quux"]
on
{ "repo_name": "jgaltidor/VarJ", "path": "analyzed_libs/guava-libraries-read-only/src/com/google/common/base/Splitter.java", "license": "mit", "size": 16670 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
2,593,388
void exportImageAsOMEObject(SecurityContext ctx, int index, File f, long imageID) throws DSAccessException, DSOutOfServiceException { FileOutputStream stream = null; DSAccessException exception = null; try { ExporterPrx store = gw.getExporterService(ctx); stream = new FileOutputStream(f); ...
void exportImageAsOMEObject(SecurityContext ctx, int index, File f, long imageID) throws DSAccessException, DSOutOfServiceException { FileOutputStream stream = null; DSAccessException exception = null; try { ExporterPrx store = gw.getExporterService(ctx); stream = new FileOutputStream(f); try { store.addImage(imageID);...
/** * Returns the file * * @param index Either OME-XML or OME-TIFF. * @param file The file to write the bytes. * @param imageID The id of the image. * @param ctx The security context. * @param file The file to write the bytes. * @param imageID The id of the image. * @return See above. * @throws DSO...
Returns the file
exportImageAsOMEObject
{ "repo_name": "dominikl/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java", "license": "gpl-2.0", "size": 262766 }
[ "java.io.File", "java.io.FileOutputStream" ]
import java.io.File; import java.io.FileOutputStream;
import java.io.*;
[ "java.io" ]
java.io;
165,115
@Test(description = "Demo", enabled = false) public void fitSabrSmilePut() { BitSet fixed = new BitSet(); fixed.set(1); // beta is fixed double atmVol = 0.19; double beta = 0.5; double rho = -0.9; double nu = 1.8; double alpha = atmVol * Math.pow(FORWARD, 1 - beta); DoubleMatrix1D st...
@Test(description = "Demo", enabled = false) void function() { BitSet fixed = new BitSet(); fixed.set(1); double atmVol = 0.19; double beta = 0.5; double rho = -0.9; double nu = 1.8; double alpha = atmVol * Math.pow(FORWARD, 1 - beta); DoubleMatrix1D start = new DoubleMatrix1D(alpha, beta, rho, nu); SmileModelFitter<SA...
/** * Put options, global SABR. */
Put options, global SABR
fitSabrSmilePut
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Analytics/src/test/java/com/opengamma/analytics/financial/model/volatility/smile/fitting/demo/EquityIndexOptionSmileAndPriceGreeksE2ETest.java", "license": "apache-2.0", "size": 15865 }
[ "com.opengamma.analytics.financial.model.volatility.smile.fitting.SABRModelFitter", "com.opengamma.analytics.financial.model.volatility.smile.fitting.SmileModelFitter", "com.opengamma.analytics.financial.model.volatility.smile.function.SABRFormulaData", "com.opengamma.analytics.math.function.Function1D", "c...
import com.opengamma.analytics.financial.model.volatility.smile.fitting.SABRModelFitter; import com.opengamma.analytics.financial.model.volatility.smile.fitting.SmileModelFitter; import com.opengamma.analytics.financial.model.volatility.smile.function.SABRFormulaData; import com.opengamma.analytics.math.function.Functi...
import com.opengamma.analytics.financial.model.volatility.smile.fitting.*; import com.opengamma.analytics.financial.model.volatility.smile.function.*; import com.opengamma.analytics.math.function.*; import com.opengamma.analytics.math.matrix.*; import java.util.*; import org.testng.annotations.*;
[ "com.opengamma.analytics", "java.util", "org.testng.annotations" ]
com.opengamma.analytics; java.util; org.testng.annotations;
2,197,691
@SuppressWarnings("deprecation") private void setupSimplePreferencesScreen() { if (!isSimplePreferences(this)) { return; } // In the simplified UI, fragments are not used at all and we instead // use the older PreferenceActivity APIs. // A...
@SuppressWarnings(STR) void function() { if (!isSimplePreferences(this)) { return; } addPreferencesFromResource(R.xml.pref_general); PreferenceDialog deleteAccount = (PreferenceDialog) this.findPreference(STR); DatabaseInterface dbi = new DatabaseInterface(getBaseContext()); if (dbi.getUser() == null) { deleteAccount.s...
/** * setupSimplePreferencesScreen Shows the simplified settings UI if the device configuration if * the device configuration dictates that a simplified, single-pane UI should be shown. */
setupSimplePreferencesScreen Shows the simplified settings UI if the device configuration if the device configuration dictates that a simplified, single-pane UI should be shown
setupSimplePreferencesScreen
{ "repo_name": "gnu-user/free-room-finder", "path": "MobileApp/src/com/uoit/freeroomfinder/SettingsActivity.java", "license": "agpl-3.0", "size": 11897 }
[ "com.uoit.freeroomfinder.preferences.PreferenceDialog" ]
import com.uoit.freeroomfinder.preferences.PreferenceDialog;
import com.uoit.freeroomfinder.preferences.*;
[ "com.uoit.freeroomfinder" ]
com.uoit.freeroomfinder;
2,648,180
@Test public void testT1RV4D2_T1LV4D6() { test_id = getTestId("T1RV4D2", "T1LV4D6", "103"); String src = selectTRVD("T1RV4D2"); String dest = selectTLVD("T1LV4D6"); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace()...
void function() { test_id = getTestId(STR, STR, "103"); String src = selectTRVD(STR); String dest = selectTLVD(STR); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace(); } catch (TokenStreamException e) { e.printStackTrace(); } assertTrue(ParamFailure2...
/** * Perform the test for the given matrix column (T1RV4D2) and row (T1LV4D6). * */
Perform the test for the given matrix column (T1RV4D2) and row (T1LV4D6)
testT1RV4D2_T1LV4D6
{ "repo_name": "rmulvey/bptest", "path": "src/org.xtuml.bp.als.oal.test/src/org/xtuml/bp/als/oal/test/SingleDimensionFixedArrayAssigmentTest_8_Generics.java", "license": "apache-2.0", "size": 153074 }
[ "org.xtuml.bp.ui.graphics.editor.GraphicalEditor" ]
import org.xtuml.bp.ui.graphics.editor.GraphicalEditor;
import org.xtuml.bp.ui.graphics.editor.*;
[ "org.xtuml.bp" ]
org.xtuml.bp;
2,761,067
byte[] bytes = null; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { ImageIO.write(image, format, baos); bytes = baos.toByteArray(); } catch (IOException e) { throw new WebcamException(e); } finally { try { baos.close(); } catch (IOException e) { throw new...
byte[] bytes = null; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { ImageIO.write(image, format, baos); bytes = baos.toByteArray(); } catch (IOException e) { throw new WebcamException(e); } finally { try { baos.close(); } catch (IOException e) { throw new WebcamException(e); } } return bytes; }
/** * Convert {@link BufferedImage} to byte array. * * @param image the image to be converted * @param format the output image format * @return New array of bytes */
Convert <code>BufferedImage</code> to byte array
toByteArray
{ "repo_name": "altonchancy11/webcam-capture", "path": "webcam-capture/src/main/java/com/github/sarxos/webcam/util/ImageUtils.java", "license": "mit", "size": 1422 }
[ "com.github.sarxos.webcam.WebcamException", "java.io.ByteArrayOutputStream", "java.io.IOException", "javax.imageio.ImageIO" ]
import com.github.sarxos.webcam.WebcamException; import java.io.ByteArrayOutputStream; import java.io.IOException; import javax.imageio.ImageIO;
import com.github.sarxos.webcam.*; import java.io.*; import javax.imageio.*;
[ "com.github.sarxos", "java.io", "javax.imageio" ]
com.github.sarxos; java.io; javax.imageio;
2,420,663
public void deleteDBTableAndAllData(SQLiteDatabase db, final String appName, final String tableId) { SyncETagsUtils seu = new SyncETagsUtils(); boolean dbWithinTransaction = db.inTransaction(); try { String whereClause = TableDefinitionsColumns.TABLE_ID + " = ?"; String[] whereArgs = { ta...
void function(SQLiteDatabase db, final String appName, final String tableId) { SyncETagsUtils seu = new SyncETagsUtils(); boolean dbWithinTransaction = db.inTransaction(); try { String whereClause = TableDefinitionsColumns.TABLE_ID + STR; String[] whereArgs = { tableId }; if (!dbWithinTransaction) { db.beginTransaction...
/** * Drop the given tableId and remove all the files (both configuration and * data attachments) associated with that table. * * @param db * @param appName * @param tableId */
Drop the given tableId and remove all the files (both configuration and data attachments) associated with that table
deleteDBTableAndAllData
{ "repo_name": "MACEPA/EpiSample", "path": "androidCommon/src/main/java/org/path/common/android/utilities/ODKDatabaseUtils.java", "license": "apache-2.0", "size": 84011 }
[ "android.database.sqlite.SQLiteDatabase", "java.io.File", "java.io.IOException", "java.util.Collection", "org.apache.commons.io.FileUtils", "org.apache.commons.io.filefilter.IOFileFilter", "org.path.common.android.database.DatabaseConstants", "org.path.common.android.provider.InstanceColumns", "org....
import android.database.sqlite.SQLiteDatabase; import java.io.File; import java.io.IOException; import java.util.Collection; import org.apache.commons.io.FileUtils; import org.apache.commons.io.filefilter.IOFileFilter; import org.path.common.android.database.DatabaseConstants; import org.path.common.android.provider.In...
import android.database.sqlite.*; import java.io.*; import java.util.*; import org.apache.commons.io.*; import org.apache.commons.io.filefilter.*; import org.path.common.android.database.*; import org.path.common.android.provider.*;
[ "android.database", "java.io", "java.util", "org.apache.commons", "org.path.common" ]
android.database; java.io; java.util; org.apache.commons; org.path.common;
2,163,369
public void verify_ejbCreate() throws RemoteException { if (!ivEJBCreate) { throw new IllegalStateException("ejbCreate never called"); } if (ivEJBCreateTID == null) { svLogger.info("ejbCreate ran without a transaction context"); throw new IllegalStateExce...
void function() throws RemoteException { if (!ivEJBCreate) { throw new IllegalStateException(STR); } if (ivEJBCreateTID == null) { svLogger.info(STR); throw new IllegalStateException(STR); } else if (FATTransactionHelper.isSameTransactionId(ivEJBCreateTID)) { svLogger.info(STR); } }
/** * Verifies that ejbCreate was called on the instance constructor with the * proper transaction context. */
Verifies that ejbCreate was called on the instance constructor with the proper transaction context
verify_ejbCreate
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.legacy_fat/test-applications/EJB2XSLRemoteSpecEJB.jar/src/com/ibm/ejb2x/base/spec/slr/ejb/SLRaBean.java", "license": "epl-1.0", "size": 20584 }
[ "com.ibm.websphere.ejbcontainer.test.tools.FATTransactionHelper", "java.rmi.RemoteException" ]
import com.ibm.websphere.ejbcontainer.test.tools.FATTransactionHelper; import java.rmi.RemoteException;
import com.ibm.websphere.ejbcontainer.test.tools.*; import java.rmi.*;
[ "com.ibm.websphere", "java.rmi" ]
com.ibm.websphere; java.rmi;
2,386,902
RecoverableFsDataOutputStream open(Path path) throws IOException;
RecoverableFsDataOutputStream open(Path path) throws IOException;
/** * Opens a new recoverable stream to write to the given path. * Whether existing files will be overwritten is implementation specific and should * not be relied upon. * * @param path The path of the file/object to write to. * @return A new RecoverableFsDataOutputStream writing a new file/object. * * ...
Opens a new recoverable stream to write to the given path. Whether existing files will be overwritten is implementation specific and should not be relied upon
open
{ "repo_name": "jinglining/flink", "path": "flink-core/src/main/java/org/apache/flink/core/fs/RecoverableWriter.java", "license": "apache-2.0", "size": 9235 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,714,573
public static BlockPos getPosFromTag(NBTTagCompound tag) { return new BlockPos(tag.getInteger("X"), tag.getInteger("Y"), tag.getInteger("Z")); }
static BlockPos function(NBTTagCompound tag) { return new BlockPos(tag.getInteger("X"), tag.getInteger("Y"), tag.getInteger("Z")); }
/** * Creates a BlockPos object from the data stored in the passed NBTTagCompound. */
Creates a BlockPos object from the data stored in the passed NBTTagCompound
getPosFromTag
{ "repo_name": "MartyParty21/AwakenDreamsClient", "path": "mcp/src/minecraft/net/minecraft/nbt/NBTUtil.java", "license": "gpl-3.0", "size": 9622 }
[ "net.minecraft.util.math.BlockPos" ]
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.*;
[ "net.minecraft.util" ]
net.minecraft.util;
892,171
public Builder addDepCcLinkProviders(RuleContext ruleContext) { for (TransitiveInfoCollection dep : ruleContext.getPrerequisites("deps", Mode.TARGET)) { // Hack to determine if dep is a cc target. Required so objc_library archives packed in // CcLinkParamsProvider do not get consumed as cc tar...
Builder function(RuleContext ruleContext) { for (TransitiveInfoCollection dep : ruleContext.getPrerequisites("deps", Mode.TARGET)) { if (dep.getProvider(CppRunfilesProvider.class) != null) { CcLinkParamsProvider ccLinkParamsProvider = dep.getProvider(CcLinkParamsProvider.class); this.depCcLinkProviders = Iterables.conc...
/** * Sets information from {@code cc_library} dependencies to be used during linking. */
Sets information from cc_library dependencies to be used during linking
addDepCcLinkProviders
{ "repo_name": "dinowernli/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/objc/ObjcCommon.java", "license": "apache-2.0", "size": 32983 }
[ "com.google.common.collect.ImmutableList", "com.google.common.collect.Iterables", "com.google.devtools.build.lib.analysis.RuleConfiguredTarget", "com.google.devtools.build.lib.analysis.RuleContext", "com.google.devtools.build.lib.analysis.TransitiveInfoCollection", "com.google.devtools.build.lib.rules.cpp...
import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; import com.google.devtools.build.lib.analysis.RuleConfiguredTarget; import com.google.devtools.build.lib.analysis.RuleContext; import com.google.devtools.build.lib.analysis.TransitiveInfoCollection; import com.google.devtools.bu...
import com.google.common.collect.*; import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.rules.cpp.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
1,854,609
public static JobExecutionResult awaitJobResult(JobListeningContext listeningContext) throws JobExecutionException { final JobID jobID = listeningContext.getJobID(); final ActorRef jobClientActor = listeningContext.getJobClientActor(); final Future<Object> jobSubmissionFuture = listeningContext.getJobResultFu...
static JobExecutionResult function(JobListeningContext listeningContext) throws JobExecutionException { final JobID jobID = listeningContext.getJobID(); final ActorRef jobClientActor = listeningContext.getJobClientActor(); final Future<Object> jobSubmissionFuture = listeningContext.getJobResultFuture(); final FiniteDur...
/** * Given a JobListeningContext, awaits the result of the job execution that this context is bound to * @param listeningContext The listening context of the job execution * @return The result of the execution * @throws JobExecutionException if anything goes wrong while monitoring the job */
Given a JobListeningContext, awaits the result of the job execution that this context is bound to
awaitJobResult
{ "repo_name": "yew1eb/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/client/JobClient.java", "license": "apache-2.0", "size": 17676 }
[ "java.util.concurrent.TimeoutException", "org.apache.flink.api.common.JobExecutionResult", "org.apache.flink.api.common.JobID", "org.apache.flink.runtime.messages.JobManagerMessages", "org.apache.flink.util.SerializedThrowable" ]
import java.util.concurrent.TimeoutException; import org.apache.flink.api.common.JobExecutionResult; import org.apache.flink.api.common.JobID; import org.apache.flink.runtime.messages.JobManagerMessages; import org.apache.flink.util.SerializedThrowable;
import java.util.concurrent.*; import org.apache.flink.api.common.*; import org.apache.flink.runtime.messages.*; import org.apache.flink.util.*;
[ "java.util", "org.apache.flink" ]
java.util; org.apache.flink;
2,642,298
public Map<String, Declaration> getInnerDeclarations() { return Collections.EMPTY_MAP; }
Map<String, Declaration> function() { return Collections.EMPTY_MAP; }
/** * It is not possible to declare any new variables, so always * return an Empty Map */
It is not possible to declare any new variables, so always return an Empty Map
getInnerDeclarations
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/drools-master/drools-core/src/main/java/org/drools/core/rule/EntryPointId.java", "license": "mit", "size": 4179 }
[ "java.util.Collections", "java.util.Map" ]
import java.util.Collections; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,036,739
private void doRetrieveMatchingBundleEntries(Bundle bundle, String fullPattern, String dir, Set<Resource> result, int searchType) throws IOException { Enumeration<?> candidates; switch (searchType) { case OsgiResourceUtils.PREFIX_TYPE_NOT_SPECIFIED: case OsgiResourceUtils.PREFIX_TYPE_BUNDLE_SPACE...
void function(Bundle bundle, String fullPattern, String dir, Set<Resource> result, int searchType) throws IOException { Enumeration<?> candidates; switch (searchType) { case OsgiResourceUtils.PREFIX_TYPE_NOT_SPECIFIED: case OsgiResourceUtils.PREFIX_TYPE_BUNDLE_SPACE: candidates = bundle.findEntries(dir, null, false); b...
/** * Searches each level inside the bundle for entries based on the search strategy chosen. * * @param bundle the bundle to do the lookup * @param fullPattern matching pattern * @param dir directory inside the bundle * @param result set of results (used to concatenate matching sub dirs) * @param ...
Searches each level inside the bundle for entries based on the search strategy chosen
doRetrieveMatchingBundleEntries
{ "repo_name": "glyn/Gemini-Blueprint", "path": "io/src/main/java/org/eclipse/gemini/blueprint/io/OsgiBundleResourcePatternResolver.java", "license": "apache-2.0", "size": 26846 }
[ "java.io.IOException", "java.util.Enumeration", "java.util.Set", "org.eclipse.gemini.blueprint.io.internal.OsgiResourceUtils", "org.osgi.framework.Bundle", "org.springframework.core.io.Resource", "org.springframework.util.StringUtils" ]
import java.io.IOException; import java.util.Enumeration; import java.util.Set; import org.eclipse.gemini.blueprint.io.internal.OsgiResourceUtils; import org.osgi.framework.Bundle; import org.springframework.core.io.Resource; import org.springframework.util.StringUtils;
import java.io.*; import java.util.*; import org.eclipse.gemini.blueprint.io.internal.*; import org.osgi.framework.*; import org.springframework.core.io.*; import org.springframework.util.*;
[ "java.io", "java.util", "org.eclipse.gemini", "org.osgi.framework", "org.springframework.core", "org.springframework.util" ]
java.io; java.util; org.eclipse.gemini; org.osgi.framework; org.springframework.core; org.springframework.util;
794,048
private static String getReadableTokenName(Node node) { return Token.name(node.getType()); }
static String function(Node node) { return Token.name(node.getType()); }
/** * Returns human-readable name of the given node's type. */
Returns human-readable name of the given node's type
getReadableTokenName
{ "repo_name": "maio/closure-compiler", "path": "src/com/google/javascript/jscomp/JsMessageVisitor.java", "license": "apache-2.0", "size": 32750 }
[ "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token" ]
import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
414,555
void shutdown(boolean waitForJobsToComplete) throws SchedulerException;
void shutdown(boolean waitForJobsToComplete) throws SchedulerException;
/** * Halts the <code>Scheduler</code>'s firing of <code>{@link Trigger}s</code>, and cleans up all resources associated with the Scheduler. * <p> * The scheduler cannot be re-started. * </p> * * @param waitForJobsToComplete if <code>true</code> the scheduler will not allow this method to return until...
Halts the <code>Scheduler</code>'s firing of <code><code>Trigger</code>s</code>, and cleans up all resources associated with the Scheduler. The scheduler cannot be re-started.
shutdown
{ "repo_name": "micke-a/Sundial", "path": "src/main/java/org/quartz/core/Scheduler.java", "license": "apache-2.0", "size": 14322 }
[ "org.quartz.exceptions.SchedulerException" ]
import org.quartz.exceptions.SchedulerException;
import org.quartz.exceptions.*;
[ "org.quartz.exceptions" ]
org.quartz.exceptions;
131,577
public void syncColor(ItemStack itemStack, Entity entity) { NBTTagCompound nbtTagCompound = itemStack.getTagCompound(); if (nbtTagCompound != null) { if (nbtTagCompound.getBoolean("colorChanged")) { InventoryBackpackMagic tempInv = new InventoryBackpackMagic(itemStack, (EntityPlayer) entity, ...
void function(ItemStack itemStack, Entity entity) { NBTTagCompound nbtTagCompound = itemStack.getTagCompound(); if (nbtTagCompound != null) { if (nbtTagCompound.getBoolean(STR)) { InventoryBackpackMagic tempInv = new InventoryBackpackMagic(itemStack, (EntityPlayer) entity, ((ItemBackpackMagic)itemStack.getItem()).getCo...
/** * Syncs the internal inventory size with the "invSize" * in the nbt of the itemStack * * @param itemStack * @param entity */
Syncs the internal inventory size with the "invSize" in the nbt of the itemStack
syncColor
{ "repo_name": "Mr-J/AdvancedBackpackMod", "path": "common/mrj/abm/ItemBackpackMagic.java", "license": "gpl-3.0", "size": 9529 }
[ "net.minecraft.entity.Entity", "net.minecraft.entity.player.EntityPlayer", "net.minecraft.item.ItemStack", "net.minecraft.nbt.NBTTagCompound" ]
import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.entity.*; import net.minecraft.entity.player.*; import net.minecraft.item.*; import net.minecraft.nbt.*;
[ "net.minecraft.entity", "net.minecraft.item", "net.minecraft.nbt" ]
net.minecraft.entity; net.minecraft.item; net.minecraft.nbt;
2,829,162
public static String convertPowerPointDocumentToOtherFileFormatsWithAdditionalSettings(String fileName, ValidFormatsEnum designatedFormat, HashMap<String, String> exportOptions) throws InvalidKeyException, NoSuchAlgorithmException, IOException { String localFilePath = null; if(fileName == null || fileName...
static String function(String fileName, ValidFormatsEnum designatedFormat, HashMap<String, String> exportOptions) throws InvalidKeyException, NoSuchAlgorithmException, IOException { String localFilePath = null; if(fileName == null fileName.length() <= 3) { throw new IllegalArgumentException(STR); } if(designatedFormat ...
/** * Convert PowerPoint document to other file formats with additional settings * @param fileName Name of the file stored on cloud * @param designatedFormat Valid formats are tiff, pdf, xps, odp, ppsx, pptm, ppsm, potx, potm and html * @param exportOptions Depends of parameter "format" service can receive expo...
Convert PowerPoint document to other file formats with additional settings
convertPowerPointDocumentToOtherFileFormatsWithAdditionalSettings
{ "repo_name": "asposeforcloud/Aspose_Cloud_SDK_For_Android", "path": "asposecloudsdk/src/main/java/com/aspose/cloud/sdk/slides/api/Document.java", "license": "mit", "size": 17711 }
[ "android.net.Uri", "com.aspose.cloud.sdk.common.Utils", "com.aspose.cloud.sdk.slides.model.ValidFormatsEnum", "java.io.IOException", "java.io.InputStream", "java.security.InvalidKeyException", "java.security.NoSuchAlgorithmException", "java.util.HashMap" ]
import android.net.Uri; import com.aspose.cloud.sdk.common.Utils; import com.aspose.cloud.sdk.slides.model.ValidFormatsEnum; import java.io.IOException; import java.io.InputStream; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.util.HashMap;
import android.net.*; import com.aspose.cloud.sdk.common.*; import com.aspose.cloud.sdk.slides.model.*; import java.io.*; import java.security.*; import java.util.*;
[ "android.net", "com.aspose.cloud", "java.io", "java.security", "java.util" ]
android.net; com.aspose.cloud; java.io; java.security; java.util;
71,598
public static Byte readByte(DataInput in) throws IOException { InternalDataSerializer.checkIn(in); Byte value = Byte.valueOf(in.readByte()); if (logger.isTraceEnabled(LogMarker.SERIALIZER)) { logger.trace(LogMarker.SERIALIZER, "Read Byte {}", value); } return value; }
static Byte function(DataInput in) throws IOException { InternalDataSerializer.checkIn(in); Byte value = Byte.valueOf(in.readByte()); if (logger.isTraceEnabled(LogMarker.SERIALIZER)) { logger.trace(LogMarker.SERIALIZER, STR, value); } return value; }
/** * Reads an instance of <code>Byte</code> from a <code>DataInput</code>. * * @throws IOException A problem occurs while reading from <code>in</code> */
Reads an instance of <code>Byte</code> from a <code>DataInput</code>
readByte
{ "repo_name": "pivotal-amurmann/geode", "path": "geode-core/src/main/java/org/apache/geode/DataSerializer.java", "license": "apache-2.0", "size": 106880 }
[ "java.io.DataInput", "java.io.IOException", "org.apache.geode.internal.InternalDataSerializer", "org.apache.geode.internal.logging.log4j.LogMarker" ]
import java.io.DataInput; import java.io.IOException; import org.apache.geode.internal.InternalDataSerializer; import org.apache.geode.internal.logging.log4j.LogMarker;
import java.io.*; import org.apache.geode.internal.*; import org.apache.geode.internal.logging.log4j.*;
[ "java.io", "org.apache.geode" ]
java.io; org.apache.geode;
1,171,298
public static <T extends Number> Offset<T> strictOffset(T value) { checkNotNull(value); checkArgument(value.doubleValue() > 0d, "A strict offset value should be greater than zero"); return new Offset<>(value, true); } private Offset(T value, boolean strict) { this.value = value; this.strict =...
static <T extends Number> Offset<T> function(T value) { checkNotNull(value); checkArgument(value.doubleValue() > 0d, STR); return new Offset<>(value, true); } private Offset(T value, boolean strict) { this.value = value; this.strict = strict; }
/** * Creates a new strict {@link Offset} that let {@code isCloseTo} assertion pass when {@code |actual-expected| < offset value}. * <p> * Examples: * <pre><code class='java'> // assertion succeeds * assertThat(8.1).isCloseTo(8.0, offset(0.2)); * * // assertions fail * assertThat(8.1).isCloseTo(...
Creates a new strict <code>Offset</code> that let isCloseTo assertion pass when |actual-expected| Examples: <code> // assertion succeeds assertThat(8.1).isCloseTo(8.0, offset(0.2)); assertions fail assertThat(8.1).isCloseTo(8.0, offset(0.1)); assertThat(8.1).isCloseTo(8.0, offset(0.01));</code></code>
strictOffset
{ "repo_name": "xasx/assertj-core", "path": "src/main/java/org/assertj/core/data/Offset.java", "license": "apache-2.0", "size": 3652 }
[ "org.assertj.core.util.Preconditions" ]
import org.assertj.core.util.Preconditions;
import org.assertj.core.util.*;
[ "org.assertj.core" ]
org.assertj.core;
242,216
// Make sure the API key is configured if (apiKey.getValue() == null) { logger.error("API key not set for WorkwaveAvlModule. Needs to be " + "set via Java property {} .", apiKey.getID()); return; } String fullUrl = null; try { // Create the connection fullUrl = GET_SESSION_URL + ...
if (apiKey.getValue() == null) { logger.error(STR + STR, apiKey.getID()); return; } String fullUrl = null; try { fullUrl = GET_SESSION_URL + apiKey.getValue(); URL url = new URL(fullUrl); URLConnection con = url.openConnection(); int timeoutMsec = AvlConfig.getAvlFeedTimeoutInMSecs(); con.setConnectTimeout(timeoutMsec)...
/** * Access the page GET_SESSION_URL to get the cookie PHPSESSID and stores * the resulting cookie in sessionId member. Then when getting AVL data * can send the PHPSESSID cookie as authentication. */
Access the page GET_SESSION_URL to get the cookie PHPSESSID and stores the resulting cookie in sessionId member. Then when getting AVL data can send the PHPSESSID cookie as authentication
setSessionId
{ "repo_name": "sheldonabrown/core", "path": "transitime/src/main/java/org/transitime/avl/WorkwaveAvlModule.java", "license": "gpl-3.0", "size": 6773 }
[ "java.net.URLConnection", "java.util.List", "java.util.Map", "org.transitime.configData.AvlConfig" ]
import java.net.URLConnection; import java.util.List; import java.util.Map; import org.transitime.configData.AvlConfig;
import java.net.*; import java.util.*; import org.transitime.*;
[ "java.net", "java.util", "org.transitime" ]
java.net; java.util; org.transitime;
107,713
@Override UnmodifiableIterator<TransitiveInfoProvider> iterator();
UnmodifiableIterator<TransitiveInfoProvider> iterator();
/** * Returns an unmodifiable iterator over the transitive info providers in the collections. */
Returns an unmodifiable iterator over the transitive info providers in the collections
iterator
{ "repo_name": "manashmndl/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/TransitiveInfoCollection.java", "license": "apache-2.0", "size": 6401 }
[ "com.google.common.collect.UnmodifiableIterator" ]
import com.google.common.collect.UnmodifiableIterator;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
314,997
private Rule addRule0(Rule rule, boolean isEnabled, String identity) { List<Module> modules = rule.getModules(null); validateModules(modules); RuntimeRule r1; Rule ruleWithUID; String rUID = rule.getUID(); if (rUID == null) { rUID = getRuleUID(rUID); ...
Rule function(Rule rule, boolean isEnabled, String identity) { List<Module> modules = rule.getModules(null); validateModules(modules); RuntimeRule r1; Rule ruleWithUID; String rUID = rule.getUID(); if (rUID == null) { rUID = getRuleUID(rUID); ruleWithUID = new Rule(rUID, rule.getTriggers(), rule.getConditions(), rule.g...
/** * Utility method that adds rule into rule engine. It creates internal RuleImpl object which is deep copy of the * passed {@link Rule} object and adds this copy into RuleEngine * * @param rule a rule which has to be added * @param isEnabled * @param identity identity of the scope where ...
Utility method that adds rule into rule engine. It creates internal RuleImpl object which is deep copy of the passed <code>Rule</code> object and adds this copy into RuleEngine
addRule0
{ "repo_name": "digitaldan/smarthome", "path": "bundles/automation/org.eclipse.smarthome.automation.core/src/main/java/org/eclipse/smarthome/automation/core/internal/RuleEngine.java", "license": "epl-1.0", "size": 54749 }
[ "java.util.List", "org.eclipse.smarthome.automation.Module", "org.eclipse.smarthome.automation.Rule" ]
import java.util.List; import org.eclipse.smarthome.automation.Module; import org.eclipse.smarthome.automation.Rule;
import java.util.*; import org.eclipse.smarthome.automation.*;
[ "java.util", "org.eclipse.smarthome" ]
java.util; org.eclipse.smarthome;
942,090
public RepositoryDirectoryInterface getRepositoryDirectory() { return new RepositoryDirectory(); }
RepositoryDirectoryInterface function() { return new RepositoryDirectory(); }
/** * Not used in this case, simply return root / */
Not used in this case, simply return root
getRepositoryDirectory
{ "repo_name": "wseyler/pentaho-kettle", "path": "engine/src/main/java/org/pentaho/di/cluster/SlaveServer.java", "license": "apache-2.0", "size": 46377 }
[ "org.pentaho.di.repository.RepositoryDirectory", "org.pentaho.di.repository.RepositoryDirectoryInterface" ]
import org.pentaho.di.repository.RepositoryDirectory; import org.pentaho.di.repository.RepositoryDirectoryInterface;
import org.pentaho.di.repository.*;
[ "org.pentaho.di" ]
org.pentaho.di;
912,168
public void setModifierListGrammarName(String name) { if (!Strings.isEmpty(name)) { this.modifierListGrammarName = name; } }
void function(String name) { if (!Strings.isEmpty(name)) { this.modifierListGrammarName = name; } }
/** Set the name that is used for representing modifiers in the grammar's assignments. * * @param name the name of the assignment for modifiers. */
Set the name that is used for representing modifiers in the grammar's assignments
setModifierListGrammarName
{ "repo_name": "sarl/sarl", "path": "main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/config/CodeBuilderConfig.java", "license": "apache-2.0", "size": 28723 }
[ "org.eclipse.xtext.util.Strings" ]
import org.eclipse.xtext.util.Strings;
import org.eclipse.xtext.util.*;
[ "org.eclipse.xtext" ]
org.eclipse.xtext;
571,964
public QuestioningCommandable getCurrentStep() { SLog.v(this, "Next step request."); if (getQuestionsLeft() < 1) return null; return mQuestioningAlgorithm.getNextCommand(); }
QuestioningCommandable function() { SLog.v(this, STR); if (getQuestionsLeft() < 1) return null; return mQuestioningAlgorithm.getNextCommand(); }
/** * Use to obtain next step of the questioning. * * @return next step of the algorithm in the form of command */
Use to obtain next step of the questioning
getCurrentStep
{ "repo_name": "kboom/setphrase", "path": "src/com/gdroid/setphrase/questioningsystem/QuestioningSystem.java", "license": "gpl-2.0", "size": 3574 }
[ "com.gdroid.utils.SLog" ]
import com.gdroid.utils.SLog;
import com.gdroid.utils.*;
[ "com.gdroid.utils" ]
com.gdroid.utils;
223,019
@ApiModelProperty(example = "null", value = "") public List<String> getElectronicServiceChannelIds() { return electronicServiceChannelIds; }
@ApiModelProperty(example = "null", value = "") List<String> function() { return electronicServiceChannelIds; }
/** * Get electronicServiceChannelIds * @return electronicServiceChannelIds **/
Get electronicServiceChannelIds
getElectronicServiceChannelIds
{ "repo_name": "Metatavu/kunta-api-spec", "path": "java-client-generated/src/main/java/fi/metatavu/kuntaapi/client/model/Service.java", "license": "agpl-3.0", "size": 24169 }
[ "io.swagger.annotations.ApiModelProperty", "java.util.List" ]
import io.swagger.annotations.ApiModelProperty; import java.util.List;
import io.swagger.annotations.*; import java.util.*;
[ "io.swagger.annotations", "java.util" ]
io.swagger.annotations; java.util;
1,937,691
public void write(Writer w) throws IOException { SimpleFieldSet fs = exportFieldSet(); SimpleFieldSet meta = exportMetadataFieldSet(System.currentTimeMillis()); if(!meta.isEmpty()) fs.put("metadata", meta); fs.writeTo(w); }
void function(Writer w) throws IOException { SimpleFieldSet fs = exportFieldSet(); SimpleFieldSet meta = exportMetadataFieldSet(System.currentTimeMillis()); if(!meta.isEmpty()) fs.put(STR, meta); fs.writeTo(w); }
/** * Write the peer's noderef to disk */
Write the peer's noderef to disk
write
{ "repo_name": "freenet/fred", "path": "src/freenet/node/PeerNode.java", "license": "gpl-2.0", "size": 213679 }
[ "java.io.IOException", "java.io.Writer" ]
import java.io.IOException; import java.io.Writer;
import java.io.*;
[ "java.io" ]
java.io;
2,225,605
@Test public void testOnDeleteLecturerDialogCalled() { User user = DataHelper.createBasicUser(); Lecturer lecturer = DataHelper.createLecturerWith(course, user); assertNotSame(lecturer.getUser(), participantsController.getSelectedUser()); participantsController.onDeleteLecturerDi...
void function() { User user = DataHelper.createBasicUser(); Lecturer lecturer = DataHelper.createLecturerWith(course, user); assertNotSame(lecturer.getUser(), participantsController.getSelectedUser()); participantsController.onDeleteLecturerDialogCalled(lecturer); assertSame(lecturer.getUser(), participantsController.g...
/** * Tests if the user of the to be deleted lecturer gets * set as selected user and all other selected values of the class get updated. */
Tests if the user of the to be deleted lecturer gets set as selected user and all other selected values of the class get updated
testOnDeleteLecturerDialogCalled
{ "repo_name": "stefanoberdoerfer/exmatrikulator", "path": "src/test/java/de/unibremen/opensores/controller/ParticipantsControllerTest.java", "license": "agpl-3.0", "size": 32777 }
[ "de.unibremen.opensores.model.Lecturer", "de.unibremen.opensores.model.User", "de.unibremen.opensores.testutil.DataHelper", "org.junit.Assert" ]
import de.unibremen.opensores.model.Lecturer; import de.unibremen.opensores.model.User; import de.unibremen.opensores.testutil.DataHelper; import org.junit.Assert;
import de.unibremen.opensores.model.*; import de.unibremen.opensores.testutil.*; import org.junit.*;
[ "de.unibremen.opensores", "org.junit" ]
de.unibremen.opensores; org.junit;
771,252
public static PutRepositoryRequest putRepositoryRequest(String name) { return new PutRepositoryRequest(name); }
static PutRepositoryRequest function(String name) { return new PutRepositoryRequest(name); }
/** * Registers snapshot repository * * @param name repository name * @return repository registration request */
Registers snapshot repository
putRepositoryRequest
{ "repo_name": "qwerty4030/elasticsearch", "path": "server/src/main/java/org/elasticsearch/client/Requests.java", "license": "apache-2.0", "size": 21137 }
[ "org.elasticsearch.action.admin.cluster.repositories.put.PutRepositoryRequest" ]
import org.elasticsearch.action.admin.cluster.repositories.put.PutRepositoryRequest;
import org.elasticsearch.action.admin.cluster.repositories.put.*;
[ "org.elasticsearch.action" ]
org.elasticsearch.action;
25,427
@Override public void paint(Graphics g) { g.translate(0, -visibleRow * getRowHeight()); super.paint(g); }
void function(Graphics g) { g.translate(0, -visibleRow * getRowHeight()); super.paint(g); }
/** * Sublcassed to translate the graphics such that the last visible * row will be drawn at 0,0. */
Sublcassed to translate the graphics such that the last visible row will be drawn at 0,0
paint
{ "repo_name": "Godin/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/gui/JTreeTable.java", "license": "lgpl-2.1", "size": 12186 }
[ "java.awt.Graphics" ]
import java.awt.Graphics;
import java.awt.*;
[ "java.awt" ]
java.awt;
157,323
public static void setClaimInUserStoreManager(String userName, int tenantId, String claim, String value) throws IdentityException { org.wso2.carbon.user.core.UserStoreManager userStoreManager = null; RealmService realmService = IdentityMgtServiceComp...
static void function(String userName, int tenantId, String claim, String value) throws IdentityException { org.wso2.carbon.user.core.UserStoreManager userStoreManager = null; RealmService realmService = IdentityMgtServiceComponent.getRealmService(); try { if (realmService.getTenantUserRealm(tenantId) != null) { userSto...
/** * Set claim to user store manager * * @param userName user name * @param tenantId tenant id * @param claim claim uri * @param value claim value * @throws IdentityException if fails */
Set claim to user store manager
setClaimInUserStoreManager
{ "repo_name": "jacklotusho/carbon-identity", "path": "components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/util/Utils.java", "license": "apache-2.0", "size": 15183 }
[ "java.util.HashMap", "java.util.Map", "org.wso2.carbon.identity.base.IdentityException", "org.wso2.carbon.identity.mgt.internal.IdentityMgtServiceComponent", "org.wso2.carbon.user.api.UserStoreManager", "org.wso2.carbon.user.core.UserCoreConstants", "org.wso2.carbon.user.core.service.RealmService" ]
import java.util.HashMap; import java.util.Map; import org.wso2.carbon.identity.base.IdentityException; import org.wso2.carbon.identity.mgt.internal.IdentityMgtServiceComponent; import org.wso2.carbon.user.api.UserStoreManager; import org.wso2.carbon.user.core.UserCoreConstants; import org.wso2.carbon.user.core.service...
import java.util.*; import org.wso2.carbon.identity.base.*; import org.wso2.carbon.identity.mgt.internal.*; import org.wso2.carbon.user.api.*; import org.wso2.carbon.user.core.*; import org.wso2.carbon.user.core.service.*;
[ "java.util", "org.wso2.carbon" ]
java.util; org.wso2.carbon;
1,149,868
public void setPortTypeAnalyzerLinkPersistence( PortTypeAnalyzerLinkPersistence portTypeAnalyzerLinkPersistence) { this.portTypeAnalyzerLinkPersistence = portTypeAnalyzerLinkPersistence; }
void function( PortTypeAnalyzerLinkPersistence portTypeAnalyzerLinkPersistence) { this.portTypeAnalyzerLinkPersistence = portTypeAnalyzerLinkPersistence; }
/** * Sets the port type analyzer link persistence. * * @param portTypeAnalyzerLinkPersistence the port type analyzer link persistence */
Sets the port type analyzer link persistence
setPortTypeAnalyzerLinkPersistence
{ "repo_name": "queza85/edison", "path": "edison-portal-framework/edison-appstore-2016-portlet/docroot/WEB-INF/src/org/kisti/edison/science/service/base/CommonLibServiceBaseImpl.java", "license": "gpl-3.0", "size": 52433 }
[ "org.kisti.edison.science.service.persistence.PortTypeAnalyzerLinkPersistence" ]
import org.kisti.edison.science.service.persistence.PortTypeAnalyzerLinkPersistence;
import org.kisti.edison.science.service.persistence.*;
[ "org.kisti.edison" ]
org.kisti.edison;
2,345,144
private void setEnableMap(ViewCommand c) { if( c.getArgs().length > 0 && c.getArgs()[0] instanceof Point && c.getArgs()[1] instanceof Integer) { Set<Point> enabledCells = mController.getMap().getCellsWithMaxDistance( (Point)c.getArgs()[0], (int)c.getArgs()[1], gameInfo.isHuman());...
void function(ViewCommand c) { if( c.getArgs().length > 0 && c.getArgs()[0] instanceof Point && c.getArgs()[1] instanceof Integer) { Set<Point> enabledCells = mController.getMap().getCellsWithMaxDistance( (Point)c.getArgs()[0], (int)c.getArgs()[1], gameInfo.isHuman()); mMainFrame.enableMapCells(enabledCells); } else mM...
/** Enable some (or all) the sectors in the main map * * @param c The main command received from the server */
Enable some (or all) the sectors in the main map
setEnableMap
{ "repo_name": "carpikes/ingsw1-eftaios", "path": "ingsw/src/main/java/it/polimi/ingsw/client/gui/GUIView.java", "license": "mit", "size": 12339 }
[ "it.polimi.ingsw.common.ViewCommand", "java.awt.Point", "java.util.Set" ]
import it.polimi.ingsw.common.ViewCommand; import java.awt.Point; import java.util.Set;
import it.polimi.ingsw.common.*; import java.awt.*; import java.util.*;
[ "it.polimi.ingsw", "java.awt", "java.util" ]
it.polimi.ingsw; java.awt; java.util;
849,460
public static String nodeToString(Node node) { return DOM2Writer.nodeToString(node); }
static String function(Node node) { return DOM2Writer.nodeToString(node); }
/** * Serialize the given node to a String. * * @param node Node to be serialized. * @return The serialized node as a java.lang.String instance. */
Serialize the given node to a String
nodeToString
{ "repo_name": "wso2/carbon-identity-framework", "path": "components/identity-core/org.wso2.carbon.identity.core/src/main/java/org/wso2/carbon/identity/core/util/IdentityUtil.java", "license": "apache-2.0", "size": 73793 }
[ "com.ibm.wsdl.util.xml.DOM2Writer", "org.w3c.dom.Node" ]
import com.ibm.wsdl.util.xml.DOM2Writer; import org.w3c.dom.Node;
import com.ibm.wsdl.util.xml.*; import org.w3c.dom.*;
[ "com.ibm.wsdl", "org.w3c.dom" ]
com.ibm.wsdl; org.w3c.dom;
90,458
private void importAdf(String uuid) { try { mTango.importAreaDescriptionFile(mAppSpaceAdfFolder + File.separator + uuid); } catch (TangoErrorException e) { Toast.makeText(this, R.string.adf_exists_api_space, Toast.LENGTH_SHORT).show(); } }
void function(String uuid) { try { mTango.importAreaDescriptionFile(mAppSpaceAdfFolder + File.separator + uuid); } catch (TangoErrorException e) { Toast.makeText(this, R.string.adf_exists_api_space, Toast.LENGTH_SHORT).show(); } }
/** * Import an ADF from app space to Tango space. */
Import an ADF from app space to Tango space
importAdf
{ "repo_name": "CCNYSmartCane/SmartCane-Tango", "path": "java_basic_examples/hello_area_description/src/main/java/com/projecttango/examples/java/helloareadescription/AdfUuidListViewActivity.java", "license": "mit", "size": 14925 }
[ "android.widget.Toast", "com.google.atap.tangoservice.TangoErrorException", "java.io.File" ]
import android.widget.Toast; import com.google.atap.tangoservice.TangoErrorException; import java.io.File;
import android.widget.*; import com.google.atap.tangoservice.*; import java.io.*;
[ "android.widget", "com.google.atap", "java.io" ]
android.widget; com.google.atap; java.io;
605,828
private void obtainTabPreviewFadeDuration(@NonNull final TypedArray typedArray) { int duration = typedArray.getInteger(R.styleable.TabSwitcher_tabPreviewFadeDuration, -1); if (duration == -1) { duration = themeHelper .getInteger(getLayout(), R.attr.tabSwitcherTabTool...
void function(@NonNull final TypedArray typedArray) { int duration = typedArray.getInteger(R.styleable.TabSwitcher_tabPreviewFadeDuration, -1); if (duration == -1) { duration = themeHelper .getInteger(getLayout(), R.attr.tabSwitcherTabToolbarPreviewFadeDuration, -1); } if (duration != -1) { setTabPreviewFadeDuration(du...
/** * Sets the duration of the fade animation, which is used to show the previews of tabs. * * @param typedArray * The typed array, the duration should be obtained from, as an instance of the class * {@link TypedArray}. The typed array may not be null */
Sets the duration of the fade animation, which is used to show the previews of tabs
obtainTabPreviewFadeDuration
{ "repo_name": "michael-rapp/ChromeLikeTabSwitcher", "path": "library/src/main/java/de/mrapp/android/tabswitcher/TabSwitcher.java", "license": "apache-2.0", "size": 72979 }
[ "android.content.res.TypedArray", "androidx.annotation.NonNull" ]
import android.content.res.TypedArray; import androidx.annotation.NonNull;
import android.content.res.*; import androidx.annotation.*;
[ "android.content", "androidx.annotation" ]
android.content; androidx.annotation;
2,487,669
public static boolean containsNumbers(@NonNull final String text) { return containsCharLike(text, Character::isDigit); }
static boolean function(@NonNull final String text) { return containsCharLike(text, Character::isDigit); }
/** * Returns if text contains any number. * * @param text Text to check; * @return True if there are any number in text. */
Returns if text contains any number
containsNumbers
{ "repo_name": "TouchInstinct/RoboSwag-core", "path": "src/main/java/ru/touchin/roboswag/core/utils/StringUtils.java", "license": "apache-2.0", "size": 3466 }
[ "android.support.annotation.NonNull" ]
import android.support.annotation.NonNull;
import android.support.annotation.*;
[ "android.support" ]
android.support;
2,532,812
public ColumnDefinition getLastColumn();
ColumnDefinition function();
/** * Returns the definition of the last column. * @return the definition of the last column. */
Returns the definition of the last column
getLastColumn
{ "repo_name": "fengshao0907/cassandra-1", "path": "src/java/org/apache/cassandra/cql3/restrictions/Restriction.java", "license": "apache-2.0", "size": 5322 }
[ "org.apache.cassandra.config.ColumnDefinition" ]
import org.apache.cassandra.config.ColumnDefinition;
import org.apache.cassandra.config.*;
[ "org.apache.cassandra" ]
org.apache.cassandra;
2,770,612
@Test public void testThatIfMETAMovesWeAreNotified() throws IOException, InterruptedException, KeeperException { HConnection connection = Mockito.mock(HConnection.class); final CatalogTracker ct = constructAndStartCatalogTracker(connection); try { RootLocationEditor.setRootLocation(this.watcher, ...
@Test void function() throws IOException, InterruptedException, KeeperException { HConnection connection = Mockito.mock(HConnection.class); final CatalogTracker ct = constructAndStartCatalogTracker(connection); try { RootLocationEditor.setRootLocation(this.watcher, new HServerAddress(STR)); } finally { RootLocationEdit...
/** * Test that we get notification if .META. moves. * @throws IOException * @throws InterruptedException * @throws KeeperException */
Test that we get notification if .META. moves
testThatIfMETAMovesWeAreNotified
{ "repo_name": "simplegeo/hadoop-hbase", "path": "src/test/java/org/apache/hadoop/hbase/catalog/TestCatalogTracker.java", "license": "apache-2.0", "size": 12687 }
[ "java.io.IOException", "org.apache.hadoop.hbase.HServerAddress", "org.apache.hadoop.hbase.client.HConnection", "org.apache.zookeeper.KeeperException", "org.junit.Test", "org.mockito.Mockito" ]
import java.io.IOException; import org.apache.hadoop.hbase.HServerAddress; import org.apache.hadoop.hbase.client.HConnection; import org.apache.zookeeper.KeeperException; import org.junit.Test; import org.mockito.Mockito;
import java.io.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.zookeeper.*; import org.junit.*; import org.mockito.*;
[ "java.io", "org.apache.hadoop", "org.apache.zookeeper", "org.junit", "org.mockito" ]
java.io; org.apache.hadoop; org.apache.zookeeper; org.junit; org.mockito;
513,465
void setViewPager(ViewPager view, int initialPosition);
void setViewPager(ViewPager view, int initialPosition);
/** * Bind the indicator to a ViewPager. * * @param view * @param initialPosition */
Bind the indicator to a ViewPager
setViewPager
{ "repo_name": "avipul49/Dot-to-dot", "path": "GamePlay/src/com/vm/gameplay/custom_view/PageIndicator.java", "license": "mit", "size": 1836 }
[ "android.support.v4.view.ViewPager" ]
import android.support.v4.view.ViewPager;
import android.support.v4.view.*;
[ "android.support" ]
android.support;
465,470
public Client findClient(final String name) { init(); for (final Client client : this.clients) { if (CommonHelper.areEquals(name, client.getName())) { return client; } } final String message = "No client found for name: " + name; logger...
Client function(final String name) { init(); for (final Client client : this.clients) { if (CommonHelper.areEquals(name, client.getName())) { return client; } } final String message = STR + name; logger.error(message); throw new TechnicalException(message); }
/** * Return the right client according to the specific name. * * @param name * @return the right client */
Return the right client according to the specific name
findClient
{ "repo_name": "leleuj/pac4j", "path": "pac4j-core/src/main/java/org/pac4j/core/client/Clients.java", "license": "apache-2.0", "size": 6223 }
[ "org.pac4j.core.exception.TechnicalException", "org.pac4j.core.util.CommonHelper" ]
import org.pac4j.core.exception.TechnicalException; import org.pac4j.core.util.CommonHelper;
import org.pac4j.core.exception.*; import org.pac4j.core.util.*;
[ "org.pac4j.core" ]
org.pac4j.core;
1,529,830
public VolumeInfo createVolume(String size, String snapshotId, String zoneName) throws EC2Exception { Map<String, String> params = new HashMap<String, String>(); if (size != null && !size.equals("")) { params.put("Size", size); } if (snapshotId != null && !snapshotId.equals("")) { params.put("SnapshotI...
VolumeInfo function(String size, String snapshotId, String zoneName) throws EC2Exception { Map<String, String> params = new HashMap<String, String>(); if (size != null && !size.equals(STRSize", size); } if (snapshotId != null && !snapshotId.equals(STRSnapshotIdSTRAvailabilityZoneSTRCreateVolume", params, CreateVolumeRe...
/** * Creates an EBS volume either by size, or from a snapshot. The zone must be the same as * that of the instance you wish to attach it to. * * @param size the size of the volume in gigabytes * @param snapshotId the snapshot from which to create the new volume * @param zoneName the availability zone for t...
Creates an EBS volume either by size, or from a snapshot. The zone must be the same as that of the instance you wish to attach it to
createVolume
{ "repo_name": "canwe/typica", "path": "java/com/xerox/amazonws/ec2/Jec2.java", "license": "apache-2.0", "size": 117983 }
[ "com.xerox.amazonws.typica.jaxb.CreateVolumeResponse", "java.util.HashMap", "java.util.Map" ]
import com.xerox.amazonws.typica.jaxb.CreateVolumeResponse; import java.util.HashMap; import java.util.Map;
import com.xerox.amazonws.typica.jaxb.*; import java.util.*;
[ "com.xerox.amazonws", "java.util" ]
com.xerox.amazonws; java.util;
1,090,700
@Override @Deprecated @RetrySemantics.ReadOnly public Materialization getMaterializationInvalidationInfo( CreationMetadata creationMetadata, String validTxnListStr) throws MetaException { if (creationMetadata.getTablesUsed().isEmpty()) { // Bail out LOG.warn("Materialization creation m...
@RetrySemantics.ReadOnly Materialization function( CreationMetadata creationMetadata, String validTxnListStr) throws MetaException { if (creationMetadata.getTablesUsed().isEmpty()) { LOG.warn(STR); return null; } final ValidTxnWriteIdList validReaderWriteIdList = new ValidTxnWriteIdList(creationMetadata.getValidTxnList...
/** * Use {@link TxnHandler#getMaterializationInvalidationInfo(CreationMetadata)} instead. */
Use <code>TxnHandler#getMaterializationInvalidationInfo(CreationMetadata)</code> instead
getMaterializationInvalidationInfo
{ "repo_name": "sankarh/hive", "path": "standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java", "license": "apache-2.0", "size": 278625 }
[ "java.sql.Connection", "java.sql.SQLException", "java.util.ArrayList", "java.util.Arrays", "java.util.List", "java.util.Objects", "org.apache.commons.lang3.ArrayUtils", "org.apache.hadoop.hive.common.ValidReadTxnList", "org.apache.hadoop.hive.common.ValidTxnWriteIdList", "org.apache.hadoop.hive.co...
import java.sql.Connection; import java.sql.SQLException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; import org.apache.commons.lang3.ArrayUtils; import org.apache.hadoop.hive.common.ValidReadTxnList; import org.apache.hadoop.hive.common.ValidTxnWriteIdList; imp...
import java.sql.*; import java.util.*; import org.apache.commons.lang3.*; import org.apache.hadoop.hive.common.*; import org.apache.hadoop.hive.common.classification.*; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.util.*;
[ "java.sql", "java.util", "org.apache.commons", "org.apache.hadoop" ]
java.sql; java.util; org.apache.commons; org.apache.hadoop;
1,765,994
public List<String> getAxisDataFieldsForPrimaryDataField(String primaryDataFieldName) { PrimaryDataFieldModel primaryDataFieldModel = getPrimaryDataFieldModel(primaryDataFieldName, false); if (primaryDataFieldModel == null) { return Collections.emptyList(); } return primaryDataFieldModel.getAxisFieldNa...
List<String> function(String primaryDataFieldName) { PrimaryDataFieldModel primaryDataFieldModel = getPrimaryDataFieldModel(primaryDataFieldName, false); if (primaryDataFieldModel == null) { return Collections.emptyList(); } return primaryDataFieldModel.getAxisFieldNames(); }
/** * Returns the names of the data fields that are axes for the given primary data field * within this device. * @param primaryDataFieldName primary data field name * @return names of data fields */
Returns the names of the data fields that are axes for the given primary data field within this device
getAxisDataFieldsForPrimaryDataField
{ "repo_name": "xen-0/dawnsci", "path": "org.eclipse.dawnsci.nexus/src/org/eclipse/dawnsci/nexus/builder/AbstractNexusObjectProvider.java", "license": "epl-1.0", "size": 18361 }
[ "java.util.Collections", "java.util.List", "org.eclipse.dawnsci.nexus.builder.data.impl.PrimaryDataFieldModel" ]
import java.util.Collections; import java.util.List; import org.eclipse.dawnsci.nexus.builder.data.impl.PrimaryDataFieldModel;
import java.util.*; import org.eclipse.dawnsci.nexus.builder.data.impl.*;
[ "java.util", "org.eclipse.dawnsci" ]
java.util; org.eclipse.dawnsci;
1,681,259
// <editor-fold defaultstate="collapsed" desc="get String"> public String getString(String PropertyKey, String DefaultValue) { // get the property from the user/default properties // I could also use getProperty(key, default) but then I cannot display the warning msg String dummy = m_U...
String function(String PropertyKey, String DefaultValue) { String dummy = m_UserProperties.getProperty(PropertyKey); if (dummy == null) { String str = STR + PropertyKey + STR; IcontrolView.DisplayStatusMessage(str, false); m_Logger.warning(str); return DefaultValue; } return dummy; }
/** * Returns the property value of the specified Property-Key as a String. When the * retrieved property cannot be found, the specified default value is used, * and a message is shown to the user. * * @param PropertyKey The Property-Key identifying the property that should be returned. * ...
Returns the property value of the specified Property-Key as a String. When the retrieved property cannot be found, the specified default value is used, and a message is shown to the user
getString
{ "repo_name": "amadeobellotti/Microwave-Analyzer", "path": "Microwave Analyzer/icontrol~subversion/Icontrol_PrologixEthernetBranch/Icontrol/src/icontrol/iC_Properties.java", "license": "gpl-2.0", "size": 19621 }
[ "java.util.logging.Logger" ]
import java.util.logging.Logger;
import java.util.logging.*;
[ "java.util" ]
java.util;
502,292
public Object flipEdge(Object edge) { if (edge != null && alternateEdgeStyle != null) { model.beginUpdate(); try { String style = model.getStyle(edge); if (style == null || style.length() == 0) { model.setStyle(edge, alternateEdgeStyle); } else { model.setStyle(edge, ...
Object function(Object edge) { if (edge != null && alternateEdgeStyle != null) { model.beginUpdate(); try { String style = model.getStyle(edge); if (style == null style.length() == 0) { model.setStyle(edge, alternateEdgeStyle); } else { model.setStyle(edge, null); } resetEdge(edge); fireEvent(new mxEventObject(mxEvent....
/** * Called when the main control point of the edge is double-clicked. This * implementation switches between null (default) and alternateEdgeStyle * and resets the edges control points. Finally, a flip event is fired * before endUpdate is called on the model. * * @param edge Cell that represents the edge...
Called when the main control point of the edge is double-clicked. This implementation switches between null (default) and alternateEdgeStyle and resets the edges control points. Finally, a flip event is fired before endUpdate is called on the model
flipEdge
{ "repo_name": "JasonEX/scxmlgui", "path": "jgraphx/src/com/mxgraph/view/mxGraph.java", "license": "apache-2.0", "size": 196835 }
[ "com.mxgraph.util.mxEventObject" ]
import com.mxgraph.util.mxEventObject;
import com.mxgraph.util.*;
[ "com.mxgraph.util" ]
com.mxgraph.util;
2,635,930
public static SSLSocketFactory getSystemSocketFactory() throws SSLInitializationException { return new SSLSocketFactory( (javax.net.ssl.SSLSocketFactory) javax.net.ssl.SSLSocketFactory.getDefault(), BROWSER_COMPATIBLE_HOSTNAME_VERIFIER); } private final javax.net.ssl.SSLSock...
static SSLSocketFactory function() throws SSLInitializationException { return new SSLSocketFactory( (javax.net.ssl.SSLSocketFactory) javax.net.ssl.SSLSocketFactory.getDefault(), BROWSER_COMPATIBLE_HOSTNAME_VERIFIER); } private final javax.net.ssl.SSLSocketFactory socketfactory; private final HostNameResolver nameResolv...
/** * Obtains default SSL socket factory with an SSL context based on system properties * as described in * <a href="http://docs.oracle.com/javase/1.5.0/docs/guide/security/jsse/JSSERefGuide.html"> * "JavaTM Secure Socket Extension (JSSE) Reference Guide for the JavaTM 2 Platform * Standard Edi...
Obtains default SSL socket factory with an SSL context based on system properties as described in "JavaTM Secure Socket Extension (JSSE) Reference Guide for the JavaTM 2 Platform Standard Edition 5
getSystemSocketFactory
{ "repo_name": "llohellohe/httpclient", "path": "httpclient/src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java", "license": "apache-2.0", "size": 22512 }
[ "org.apache.http.conn.scheme.HostNameResolver" ]
import org.apache.http.conn.scheme.HostNameResolver;
import org.apache.http.conn.scheme.*;
[ "org.apache.http" ]
org.apache.http;
988,712
private boolean startElementChildPathStep(String uri, String localName) throws SAXException { if (subElement != null && depth <= subElement.length) { // Check path step if it exists. subElement[depth - 1] = true; if (uri != null) { if (childUri[depth - 1] ...
boolean function(String uri, String localName) throws SAXException { if (subElement != null && depth <= subElement.length) { subElement[depth - 1] = true; if (uri != null) { if (childUri[depth - 1] != null && uri.compareTo(childUri[depth - 1]) != 0) { subElement[depth - 1] = false; } } if (localName != null) { if (chil...
/** * The filter settings here are similar to one in the class linked below. * * @throws SAXException * @see org.apache.vxquery.runtime.functions.step.NodeTestFilter.java */
The filter settings here are similar to one in the class linked below
startElementChildPathStep
{ "repo_name": "prestoncarman/vxquery", "path": "vxquery-core/src/main/java/org/apache/vxquery/xmlparser/SAXContentHandler.java", "license": "apache-2.0", "size": 21276 }
[ "org.xml.sax.SAXException" ]
import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
1,733,392
private void refreshEditors() { try { editorReferenceList = DataProvider.getInstance().getEditorReferences(); if (EditorsManager.getInstance().isEditorOpen()) { selectedEditor = EditorsManager.getInstance().getActiveEditorReference(); } if (!Arrays.asList(editorReferenceList).contains(selectedEdit...
void function() { try { editorReferenceList = DataProvider.getInstance().getEditorReferences(); if (EditorsManager.getInstance().isEditorOpen()) { selectedEditor = EditorsManager.getInstance().getActiveEditorReference(); } if (!Arrays.asList(editorReferenceList).contains(selectedEditor)) setSelectedEditor(null); if (!A...
/** * Request editorReferenceList of all open editors from plug-in interface and * sets content of this combo box accordingly. */
Request editorReferenceList of all open editors from plug-in interface and sets content of this combo box accordingly
refreshEditors
{ "repo_name": "jcryptool/crypto", "path": "org.jcryptool.analysis.vigenere/src/org/jcryptool/analysis/vigenere/ui/SummaryGui.java", "license": "epl-1.0", "size": 11194 }
[ "java.util.Arrays", "org.jcryptool.analysis.vigenere.interfaces.DataProvider", "org.jcryptool.core.operations.editors.EditorNotFoundException", "org.jcryptool.core.operations.editors.EditorsManager" ]
import java.util.Arrays; import org.jcryptool.analysis.vigenere.interfaces.DataProvider; import org.jcryptool.core.operations.editors.EditorNotFoundException; import org.jcryptool.core.operations.editors.EditorsManager;
import java.util.*; import org.jcryptool.analysis.vigenere.interfaces.*; import org.jcryptool.core.operations.editors.*;
[ "java.util", "org.jcryptool.analysis", "org.jcryptool.core" ]
java.util; org.jcryptool.analysis; org.jcryptool.core;
1,234,048
public void addGatewayReceiverToSystem(ObjectName objectName, GatewayReceiverMXBean proxy, FederationComponent newState) { if (mapOfGatewayReceivers != null) { mapOfGatewayReceivers.put(objectName, proxy); gatewayReceiverSetSize = mapOfGatewayReceivers.values().size(); } updateGatewayRec...
void function(ObjectName objectName, GatewayReceiverMXBean proxy, FederationComponent newState) { if (mapOfGatewayReceivers != null) { mapOfGatewayReceivers.put(objectName, proxy); gatewayReceiverSetSize = mapOfGatewayReceivers.values().size(); } updateGatewayReceiver(objectName, newState, null); }
/** * Add a proxy to the map to be used by bridge. * * @param objectName object name of the proxy * @param proxy actual proxy instance */
Add a proxy to the map to be used by bridge
addGatewayReceiverToSystem
{ "repo_name": "masaki-yamakawa/geode", "path": "geode-core/src/main/java/org/apache/geode/management/internal/beans/DistributedSystemBridge.java", "license": "apache-2.0", "size": 53962 }
[ "javax.management.ObjectName", "org.apache.geode.management.GatewayReceiverMXBean", "org.apache.geode.management.internal.FederationComponent" ]
import javax.management.ObjectName; import org.apache.geode.management.GatewayReceiverMXBean; import org.apache.geode.management.internal.FederationComponent;
import javax.management.*; import org.apache.geode.management.*; import org.apache.geode.management.internal.*;
[ "javax.management", "org.apache.geode" ]
javax.management; org.apache.geode;
657,593
public Query reqB(Query q) throws Exception { BooleanQuery bq = new BooleanQuery(true); bq.add(q, BooleanClause.Occur.MUST); bq.add(new TermQuery(new Term(FIELD,"w1")), BooleanClause.Occur.SHOULD); return bq; }
Query function(Query q) throws Exception { BooleanQuery bq = new BooleanQuery(true); bq.add(q, BooleanClause.Occur.MUST); bq.add(new TermQuery(new Term(FIELD,"w1")), BooleanClause.Occur.SHOULD); return bq; }
/** * MACRO: Wraps a Query in a BooleanQuery so that it is required, along * with a second optional clause which will match everything */
with a second optional clause which will match everything
reqB
{ "repo_name": "smartan/lucene", "path": "src/main/java/org/apache/lucene/search/BaseExplanationTestCase.java", "license": "apache-2.0", "size": 7622 }
[ "org.apache.lucene.index.Term" ]
import org.apache.lucene.index.Term;
import org.apache.lucene.index.*;
[ "org.apache.lucene" ]
org.apache.lucene;
2,644,331
@TargetApi(Build.VERSION_CODES.GINGERBREAD) static void setStrictMode(final boolean state) { if (state) { StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll()....
@TargetApi(Build.VERSION_CODES.GINGERBREAD) static void setStrictMode(final boolean state) { if (state) { StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog().build()); } else { StrictMode.se...
/** * Sets StrictMode on/off. * * @param state true to enable strict mode, false to disable strict mode */
Sets StrictMode on/off
setStrictMode
{ "repo_name": "inloop/easylog", "path": "easylog/src/main/java/eu/inloop/easylog/EasyLog.java", "license": "apache-2.0", "size": 9238 }
[ "android.annotation.TargetApi", "android.os.Build", "android.os.StrictMode" ]
import android.annotation.TargetApi; import android.os.Build; import android.os.StrictMode;
import android.annotation.*; import android.os.*;
[ "android.annotation", "android.os" ]
android.annotation; android.os;
1,990,326
protected NodeFigure createNodeFigure() { NodeFigure figure = createNodePlate(); figure.setLayoutManager(new StackLayout()); IFigure shape = createNodeShape(); figure.add(shape); contentPane = setupContentPane(shape); return figure; }
NodeFigure function() { NodeFigure figure = createNodePlate(); figure.setLayoutManager(new StackLayout()); IFigure shape = createNodeShape(); figure.add(shape); contentPane = setupContentPane(shape); return figure; }
/** * Creates figure for this edit part. * * Body of this method does not depend on settings in generation model * so you may safely remove <i>generated</i> tag and modify it. * * @generated */
Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may safely remove generated tag and modify it
createNodeFigure
{ "repo_name": "LeonoraG/storyboard-creator", "path": "eu.scasefp7.eclipse.storyboards.diagram/src/eu/scasefp7/eclipse/storyboards/diagram/edit/parts/PropertyEditPart.java", "license": "apache-2.0", "size": 8963 }
[ "org.eclipse.draw2d.IFigure", "org.eclipse.draw2d.StackLayout", "org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure" ]
import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.StackLayout; import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
import org.eclipse.draw2d.*; import org.eclipse.gmf.runtime.gef.ui.figures.*;
[ "org.eclipse.draw2d", "org.eclipse.gmf" ]
org.eclipse.draw2d; org.eclipse.gmf;
344,369
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1975") public static Status statusFromCancelled(Context context) { Preconditions.checkNotNull(context, "context must not be null"); if (!context.isCancelled()) { return null; } Throwable cancellationCause = context.cancellationCause()...
@ExperimentalApi(STRcontext must not be null"); if (!context.isCancelled()) { return null; } Throwable cancellationCause = context.cancellationCause(); if (cancellationCause == null) { return Status.CANCELLED; } if (cancellationCause instanceof TimeoutException) { return Status.DEADLINE_EXCEEDED .withDescription(cancel...
/** * Returns the {@link Status} of a cancelled context or {@code null} if the context * is not cancelled. */
Returns the <code>Status</code> of a cancelled context or null if the context is not cancelled
statusFromCancelled
{ "repo_name": "anuraaga/grpc-java", "path": "core/src/main/java/io/grpc/Contexts.java", "license": "bsd-3-clause", "size": 5556 }
[ "java.util.concurrent.TimeoutException" ]
import java.util.concurrent.TimeoutException;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,298,475
public void stopRunning() { if (isRunning.getAndSet(false)) { // only wait if stopRunning didn't get called as part of processing a message // (which would happen if we are processing an exception that forced a session close) final Thread processingThr...
void function() { if (isRunning.getAndSet(false)) { final Thread processingThread = this.processingThread.get(); if (processingThread != null && Thread.currentThread() != processingThread) { try { if (!running.await(5, TimeUnit.SECONDS)) { logger.warn(STR); } } catch (InterruptedException e) { } } } }
/** * Stops the reader. Will wait 5 seconds for the runnable to stop (should stop within 1 second based on the poll * timeout below) */
Stops the reader. Will wait 5 seconds for the runnable to stop (should stop within 1 second based on the poll timeout below)
stopRunning
{ "repo_name": "MikeJMajor/openhab2-addons-dlinksmarthome", "path": "bundles/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/net/SocketChannelSession.java", "license": "epl-1.0", "size": 14324 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
964,440
private static void deleteDirectory(final String dir, final Provider provider){ File[] files = new File(dir).listFiles(); if(files != null) { for (File f : files) { if (f.isFile()) { Path path = Paths.get(dir + "/" + f.getName()); t...
static void function(final String dir, final Provider provider){ File[] files = new File(dir).listFiles(); if(files != null) { for (File f : files) { if (f.isFile()) { Path path = Paths.get(dir + "/" + f.getName()); try { Files.delete(path); saveToHistoryFile(provider, path, Operation.DELETE); } catch (IOException e) {...
/** * Removes temporary directory and renames to original name */
Removes temporary directory and renames to original name
deleteDirectory
{ "repo_name": "TheLanguageArchive/oai-harvest-manager", "path": "src/main/java/nl/mpi/oai/harvester/control/FileSynchronization.java", "license": "gpl-3.0", "size": 11533 }
[ "java.io.File", "java.io.IOException", "java.nio.file.Files", "java.nio.file.Path", "java.nio.file.Paths", "nl.mpi.oai.harvester.Provider" ]
import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import nl.mpi.oai.harvester.Provider;
import java.io.*; import java.nio.file.*; import nl.mpi.oai.harvester.*;
[ "java.io", "java.nio", "nl.mpi.oai" ]
java.io; java.nio; nl.mpi.oai;
1,997,572
private PatternGraph getCorrectEmptyTranportRule() { PatternGraph pattern = new PatternGraph("correctEmptyTranportRule"); PatternNode ferry = new PatternNode(), bankHere = new PatternNode(), bankThere = new PatternNode(), eater = new PatternNode(), getsEaten = new PatternNode(); pattern.addPatternNode(ferry...
PatternGraph function() { PatternGraph pattern = new PatternGraph(STR); PatternNode ferry = new PatternNode(), bankHere = new PatternNode(), bankThere = new PatternNode(), eater = new PatternNode(), getsEaten = new PatternNode(); pattern.addPatternNode(ferry).addPatternNode(bankHere).addPatternNode(bankThere).addPatter...
/** * Method to obtain the (corrected) 'empty transport rule' of the ferryman's problem graph. * Note: This rule doesn't allow the ferryman to leave two species alone, that eat each other! * @return the (corrected) 'empty transport rule' of the ferryman's problem graph */
Method to obtain the (corrected) 'empty transport rule' of the ferryman's problem graph. Note: This rule doesn't allow the ferryman to leave two species alone, that eat each other
getCorrectEmptyTranportRule
{ "repo_name": "fujaba/org.fujaba.graphengine", "path": "src/test/java/org/fujaba/graphengine/unitTests/PatternTest.java", "license": "bsd-3-clause", "size": 24936 }
[ "org.fujaba.graphengine.pattern.PatternEdge", "org.fujaba.graphengine.pattern.PatternGraph", "org.fujaba.graphengine.pattern.PatternNode" ]
import org.fujaba.graphengine.pattern.PatternEdge; import org.fujaba.graphengine.pattern.PatternGraph; import org.fujaba.graphengine.pattern.PatternNode;
import org.fujaba.graphengine.pattern.*;
[ "org.fujaba.graphengine" ]
org.fujaba.graphengine;
943,199
public void updateObject(String columnName, Object x, int scale) throws SQLException { updateObject(findColumn(columnName), x); }
void function(String columnName, Object x, int scale) throws SQLException { updateObject(findColumn(columnName), x); }
/** * JDBC 2.0 Update a column with an Object value. The updateXXX() methods * are used to update column values in the current row, or the insert row. * The updateXXX() methods do not update the underlying database, instead * the updateRow() or insertRow() methods are called to update the database. * * @pa...
JDBC 2.0 Update a column with an Object value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database
updateObject
{ "repo_name": "shubhanshu-gupta/Apache-Solr", "path": "example/solr/collection1/lib/mysql-connector-java-5.1.32/src/com/mysql/jdbc/ResultSetImpl.java", "license": "apache-2.0", "size": 247329 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
545,808
void setNetworkFlick(PerformActionMessage message, String[] deviceToSendTo, AsyncCallback<Void> asyncCallback);
void setNetworkFlick(PerformActionMessage message, String[] deviceToSendTo, AsyncCallback<Void> asyncCallback);
/** * Sets the network flick. * * @param message * the message * @param deviceToSendTo * the device to send to * @param asyncCallback * the async callback */
Sets the network flick
setNetworkFlick
{ "repo_name": "synergynet/synergynet3.1", "path": "synergynet3.1-parent/synergynet3-appsystem-web/src/main/java/synergynet3/web/appsystem/client/service/SynergyNetAppSystemServiceAsync.java", "license": "bsd-3-clause", "size": 7604 }
[ "com.google.gwt.user.client.rpc.AsyncCallback" ]
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.*;
[ "com.google.gwt" ]
com.google.gwt;
214,153
public Color adjustShade(float percent) { float multiplier = (100.0f - percent) / 100.0f; float l = Math.max(0.0f, hsl[2] * multiplier); return toRGB(hsl[0], hsl[1], l, alpha); }
Color function(float percent) { float multiplier = (100.0f - percent) / 100.0f; float l = Math.max(0.0f, hsl[2] * multiplier); return toRGB(hsl[0], hsl[1], l, alpha); }
/** * Create a RGB Color object based on this HSLColor with a different * Shade. Changing the shade will return a darker color. The percent * specified is a relative value. * * @param percent - the value between 0 - 100 * @return the RGB Color object */
Create a RGB Color object based on this HSLColor with a different Shade. Changing the shade will return a darker color. The percent specified is a relative value
adjustShade
{ "repo_name": "dmhacker/Fractals", "path": "src/io/github/dmhacker/fractal/util/HSLColor.java", "license": "gpl-2.0", "size": 9978 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
621,526
static void writeOutput(Appendable out, Compiler compiler, String code, String wrapper, String codePlaceholder, @Nullable Function<String, String> escaper) throws IOException { int pos = wrapper.indexOf(codePlaceholder); if (pos != -1) { String prefix = ""; if (pos > 0) { ...
static void writeOutput(Appendable out, Compiler compiler, String code, String wrapper, String codePlaceholder, @Nullable Function<String, String> escaper) throws IOException { int pos = wrapper.indexOf(codePlaceholder); if (pos != -1) { String prefix = ""; if (pos > 0) { prefix = wrapper.substring(0, pos); out.append(...
/** * Writes code to an output stream, optionally wrapping it in an arbitrary * wrapper that contains a placeholder where the code should be inserted. */
Writes code to an output stream, optionally wrapping it in an arbitrary wrapper that contains a placeholder where the code should be inserted
writeOutput
{ "repo_name": "rintaro/closure-compiler", "path": "src/com/google/javascript/jscomp/AbstractCommandLineRunner.java", "license": "apache-2.0", "size": 74845 }
[ "com.google.common.base.Function", "java.io.IOException", "javax.annotation.Nullable" ]
import com.google.common.base.Function; import java.io.IOException; import javax.annotation.Nullable;
import com.google.common.base.*; import java.io.*; import javax.annotation.*;
[ "com.google.common", "java.io", "javax.annotation" ]
com.google.common; java.io; javax.annotation;
1,465,968
@Override @XmlElement(name = "evaluationMethodDescription") public InternationalString getEvaluationMethodDescription() { return evaluationMethodDescription; }
@XmlElement(name = STR) InternationalString function() { return evaluationMethodDescription; }
/** * Returns the description of the evaluation method. * * @return description of the evaluation method, or {@code null}. */
Returns the description of the evaluation method
getEvaluationMethodDescription
{ "repo_name": "Geomatys/sis", "path": "core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/quality/AbstractElement.java", "license": "apache-2.0", "size": 21085 }
[ "javax.xml.bind.annotation.XmlElement", "org.opengis.util.InternationalString" ]
import javax.xml.bind.annotation.XmlElement; import org.opengis.util.InternationalString;
import javax.xml.bind.annotation.*; import org.opengis.util.*;
[ "javax.xml", "org.opengis.util" ]
javax.xml; org.opengis.util;
1,384,185
private void handleNodeLostService(long nodeid, InetAddress ip, String svcName, long eventTime) { if (nodeid == -1 || ip == null || svcName == null || eventTime == -1) { LOG.warn("{} ignored - info incomplete - nodeid/ip/svc/eventtime: {}/{}/{}/{}", m_event.getUei(), nodeid, InetAddressUtils.st...
void function(long nodeid, InetAddress ip, String svcName, long eventTime) { if (nodeid == -1 ip == null svcName == null eventTime == -1) { LOG.warn(STR, m_event.getUei(), nodeid, InetAddressUtils.str(ip), svcName, eventTime); return; } DataManager dataMgr = RTCManager.getDataManager(); dataMgr.nodeLostService(nodeid, ...
/** * If it is a nodeLostService, update downtime on the rtcnode */
If it is a nodeLostService, update downtime on the rtcnode
handleNodeLostService
{ "repo_name": "tdefilip/opennms", "path": "opennms-services/src/main/java/org/opennms/netmgt/rtc/DataUpdater.java", "license": "agpl-3.0", "size": 17791 }
[ "java.net.InetAddress", "org.opennms.core.utils.InetAddressUtils" ]
import java.net.InetAddress; import org.opennms.core.utils.InetAddressUtils;
import java.net.*; import org.opennms.core.utils.*;
[ "java.net", "org.opennms.core" ]
java.net; org.opennms.core;
1,004,731
@Override public List<String> alarmTriggers() { return TRIGGER_LIST; }
List<String> function() { return TRIGGER_LIST; }
/** * Returns all the supported AlarmPoint triggers. * * @return The AlarmPoint triggers that this AlarmModel supports. */
Returns all the supported AlarmPoint triggers
alarmTriggers
{ "repo_name": "joobn72/qi4j-sdk", "path": "libraries/alarm/src/main/java/org/qi4j/library/alarm/ExtendedAlarmModelService.java", "license": "apache-2.0", "size": 17690 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,493,527
private Contributor getInstance(Element element, String message) { boolean expectFailure = !Util.isEmpty(message); Contributor component = null; try { SecurityAttributesTest.getFixture().addTo(element); component = new Contributor(element); checkConstructorSuccess(expectFailure); } catch (...
Contributor function(Element element, String message) { boolean expectFailure = !Util.isEmpty(message); Contributor component = null; try { SecurityAttributesTest.getFixture().addTo(element); component = new Contributor(element); checkConstructorSuccess(expectFailure); } catch (InvalidDDMSException e) { checkConstructo...
/** * Attempts to build a component from a XOM element. * @param element the element to build from * @param message an expected error message. If empty, the constructor is expected to succeed. * * @return a valid object */
Attempts to build a component from a XOM element
getInstance
{ "repo_name": "imintel/ddmsence", "path": "src/test/java/buri/ddmsence/ddms/resource/ContributorTest.java", "license": "lgpl-3.0", "size": 9400 }
[ "nu.xom.Element" ]
import nu.xom.Element;
import nu.xom.*;
[ "nu.xom" ]
nu.xom;
641,003
public ContentHandler getContentHandler() { return this.contentHandler; }
ContentHandler function() { return this.contentHandler; }
/** * <p> * Returns the content handler. * </p> * * @return SAX2 content handler that receives the data */
Returns the content handler.
getContentHandler
{ "repo_name": "mmohan01/ReFactory", "path": "data/xom/xom-1.1/nu/xom/converters/SAXConverter.java", "license": "mit", "size": 11418 }
[ "org.xml.sax.ContentHandler" ]
import org.xml.sax.ContentHandler;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
655,207
public String[] getStrings(String name) { String valueString = get(name); return StringUtils.getStrings(valueString); }
String[] function(String name) { String valueString = get(name); return StringUtils.getStrings(valueString); }
/** * Get the comma delimited values of the <code>name</code> property as * an array of <code>String</code>s. * If no such property is specified then <code>null</code> is returned. * * @param name property name. * @return property value as an array of <code>String</code>s, * or <code>...
Get the comma delimited values of the <code>name</code> property as an array of <code>String</code>s. If no such property is specified then <code>null</code> is returned
getStrings
{ "repo_name": "szegedim/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java", "license": "apache-2.0", "size": 128054 }
[ "org.apache.hadoop.util.StringUtils" ]
import org.apache.hadoop.util.StringUtils;
import org.apache.hadoop.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,996,866
public GroovyClassLoader getGroovyClassLoader() { synchronized (this.scriptClassMonitor) { if (this.groovyClassLoader == null) { this.groovyClassLoader = new GroovyClassLoader(ClassUtils.getDefaultClassLoader()); } return this.groovyClassLoader; } }
GroovyClassLoader function() { synchronized (this.scriptClassMonitor) { if (this.groovyClassLoader == null) { this.groovyClassLoader = new GroovyClassLoader(ClassUtils.getDefaultClassLoader()); } return this.groovyClassLoader; } }
/** * Return the GroovyClassLoader used by this script factory. */
Return the GroovyClassLoader used by this script factory
getGroovyClassLoader
{ "repo_name": "deathspeeder/class-guard", "path": "spring-framework-3.2.x/spring-context/src/main/java/org/springframework/scripting/groovy/GroovyScriptFactory.java", "license": "gpl-2.0", "size": 9348 }
[ "groovy.lang.GroovyClassLoader", "org.springframework.util.ClassUtils" ]
import groovy.lang.GroovyClassLoader; import org.springframework.util.ClassUtils;
import groovy.lang.*; import org.springframework.util.*;
[ "groovy.lang", "org.springframework.util" ]
groovy.lang; org.springframework.util;
2,443,572
protected MessageListener createMessageHandler(Session session) { TransactionCommitStrategy commitStrategy; if (getTransactionCommitStrategy() != null) { commitStrategy = getTransactionCommitStrategy(); } else if (getTransactionBatchCount() > 0) { commitStrategy = ne...
MessageListener function(Session session) { TransactionCommitStrategy commitStrategy; if (getTransactionCommitStrategy() != null) { commitStrategy = getTransactionCommitStrategy(); } else if (getTransactionBatchCount() > 0) { commitStrategy = new BatchTransactionCommitStrategy(getTransactionBatchCount()); } else { comm...
/** * Helper factory method used to create a MessageListener based on the MEP * * @param session a session is only required if we are a transacted consumer * @return the listener */
Helper factory method used to create a MessageListener based on the MEP
createMessageHandler
{ "repo_name": "YMartsynkevych/camel", "path": "components/camel-sjms/src/main/java/org/apache/camel/component/sjms/SjmsConsumer.java", "license": "apache-2.0", "size": 12831 }
[ "javax.jms.MessageListener", "javax.jms.Session", "org.apache.camel.ExchangePattern", "org.apache.camel.component.sjms.consumer.AbstractMessageHandler", "org.apache.camel.component.sjms.consumer.InOnlyMessageHandler", "org.apache.camel.component.sjms.consumer.InOutMessageHandler", "org.apache.camel.comp...
import javax.jms.MessageListener; import javax.jms.Session; import org.apache.camel.ExchangePattern; import org.apache.camel.component.sjms.consumer.AbstractMessageHandler; import org.apache.camel.component.sjms.consumer.InOnlyMessageHandler; import org.apache.camel.component.sjms.consumer.InOutMessageHandler; import o...
import javax.jms.*; import org.apache.camel.*; import org.apache.camel.component.sjms.consumer.*; import org.apache.camel.component.sjms.taskmanager.*; import org.apache.camel.component.sjms.tx.*; import org.apache.camel.spi.*;
[ "javax.jms", "org.apache.camel" ]
javax.jms; org.apache.camel;
596,324
List<OtraActividad> OtraActividad = null; try { OtraActividad = session.createQuery("from OtraActividad where nombre_usuario_prof = '"+username+"'").list(); } catch (Exception e) { e.printStackTrace(); } return OtraActividad; }
List<OtraActividad> OtraActividad = null; try { OtraActividad = session.createQuery(STR+username+"'").list(); } catch (Exception e) { e.printStackTrace(); } return OtraActividad; }
/** * Used to list all the users. */
Used to list all the users
listOtraActividad
{ "repo_name": "gres147679/SistemasDeInformacion", "path": "myProject/src/net/excelsior/dao/OtraActividadDAOImpl.java", "license": "gpl-2.0", "size": 1196 }
[ "java.util.List", "net.excelsior.domain.OtraActividad" ]
import java.util.List; import net.excelsior.domain.OtraActividad;
import java.util.*; import net.excelsior.domain.*;
[ "java.util", "net.excelsior.domain" ]
java.util; net.excelsior.domain;
2,242,685
@Test public void testMaxSlotLimitRegisterResource() throws Exception { final int numberSlots = 1; final int maxSlotNum = 1; final ResourceManagerId resourceManagerId = ResourceManagerId.generate(); final CompletableFuture<InstanceID> releasedResourceFuture = new CompletableFuture<>(); ResourceActions re...
void function() throws Exception { final int numberSlots = 1; final int maxSlotNum = 1; final ResourceManagerId resourceManagerId = ResourceManagerId.generate(); final CompletableFuture<InstanceID> releasedResourceFuture = new CompletableFuture<>(); ResourceActions resourceManagerActions = new TestingResourceActionsBui...
/** * Test that the slot manager release resource when the number of slots exceed max limit when new TaskExecutor registered. */
Test that the slot manager release resource when the number of slots exceed max limit when new TaskExecutor registered
testMaxSlotLimitRegisterResource
{ "repo_name": "jinglining/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/resourcemanager/slotmanager/SlotManagerImplTest.java", "license": "apache-2.0", "size": 72682 }
[ "java.util.Collections", "java.util.concurrent.CompletableFuture", "org.apache.flink.runtime.clusterframework.types.ResourceID", "org.apache.flink.runtime.clusterframework.types.ResourceProfile", "org.apache.flink.runtime.clusterframework.types.SlotID", "org.apache.flink.runtime.instance.InstanceID", "o...
import java.util.Collections; import java.util.concurrent.CompletableFuture; import org.apache.flink.runtime.clusterframework.types.ResourceID; import org.apache.flink.runtime.clusterframework.types.ResourceProfile; import org.apache.flink.runtime.clusterframework.types.SlotID; import org.apache.flink.runtime.instance....
import java.util.*; import java.util.concurrent.*; import org.apache.flink.runtime.clusterframework.types.*; import org.apache.flink.runtime.instance.*; import org.apache.flink.runtime.resourcemanager.*; import org.apache.flink.runtime.resourcemanager.registration.*; import org.apache.flink.runtime.taskexecutor.*; impo...
[ "java.util", "org.apache.flink", "org.hamcrest", "org.junit" ]
java.util; org.apache.flink; org.hamcrest; org.junit;
845,707
private static boolean findActivity(List<ResolveInfo> apps, ComponentName component) { final String className = component.getClassName(); for (ResolveInfo info : apps) { final ActivityInfo activityInfo = info.activityInfo; if (activityInfo.name.equals(className)) { ...
static boolean function(List<ResolveInfo> apps, ComponentName component) { final String className = component.getClassName(); for (ResolveInfo info : apps) { final ActivityInfo activityInfo = info.activityInfo; if (activityInfo.name.equals(className)) { return true; } } return false; }
/** * Returns whether <em>apps</em> contains <em>component</em>. */
Returns whether apps contains component
findActivity
{ "repo_name": "Phonemetra/TurboLauncher", "path": "app/src/main/java/com/phonemetra/turbo/launcher/AllAppsList.java", "license": "apache-2.0", "size": 7937 }
[ "android.content.ComponentName", "android.content.pm.ActivityInfo", "android.content.pm.ResolveInfo", "java.util.List" ]
import android.content.ComponentName; import android.content.pm.ActivityInfo; import android.content.pm.ResolveInfo; import java.util.List;
import android.content.*; import android.content.pm.*; import java.util.*;
[ "android.content", "java.util" ]
android.content; java.util;
602,108
private static ThreadStatus threadStatus(ThreadInfo threadInfo) { switch (threadInfo.getState()) { case BLOCKED: return ThreadStatus.MONITOR; case TIMEOUT_WAITING: case NOTIFIED: case INTERRUPTED: case TIMEDOUT: case WAITING: return ThreadStatus.WAIT; case TERMINATED: ...
static ThreadStatus function(ThreadInfo threadInfo) { switch (threadInfo.getState()) { case BLOCKED: return ThreadStatus.MONITOR; case TIMEOUT_WAITING: case NOTIFIED: case INTERRUPTED: case TIMEDOUT: case WAITING: return ThreadStatus.WAIT; case TERMINATED: return ThreadStatus.ZOMBIE; case SLEEPING: return ThreadStatus....
/** * JPF Thread statuses to JDWP Thread statuses mapping * * @param threadInfo * The thread * @return The JDWP status of the thread */
JPF Thread statuses to JDWP Thread statuses mapping
threadStatus
{ "repo_name": "stepanv/jpf-jdwp", "path": "src/main/gov/nasa/jpf/jdwp/command/ThreadReferenceCommand.java", "license": "gpl-3.0", "size": 20523 }
[ "gov.nasa.jpf.jdwp.id.object.ThreadId", "gov.nasa.jpf.vm.ThreadInfo" ]
import gov.nasa.jpf.jdwp.id.object.ThreadId; import gov.nasa.jpf.vm.ThreadInfo;
import gov.nasa.jpf.jdwp.id.object.*; import gov.nasa.jpf.vm.*;
[ "gov.nasa.jpf" ]
gov.nasa.jpf;
1,682,203
public void setModiDate(Date modiDate) { this.modiDate = modiDate; }
void function(Date modiDate) { this.modiDate = modiDate; }
/** * set the modiDate */
set the modiDate
setModiDate
{ "repo_name": "stserp/erp1", "path": "source/src/com/baosight/sts/st/rp/domain/STRP0702.java", "license": "apache-2.0", "size": 15747 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
564,183
ImmutableSortedSet<Service> getServices () { return services; }
ImmutableSortedSet<Service> getServices () { return services; }
/** * Returns the services for this provider. * * @return the services for this provider. Never {@code null}. */
Returns the services for this provider
getServices
{ "repo_name": "calebrichardson/spiff", "path": "src/main/java/com/outerspacecat/openid/rp/Provider.java", "license": "apache-2.0", "size": 10719 }
[ "com.google.common.collect.ImmutableSortedSet" ]
import com.google.common.collect.ImmutableSortedSet;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
2,608,269
private void hideAdditionalHeaders() { mAdditionalHeadersView.setVisibility(View.GONE); mAdditionalHeadersView.setText(""); } /** * Set up and then show the additional headers view. Called by * {@link #onShowAdditionalHeaders()}
void function() { mAdditionalHeadersView.setVisibility(View.GONE); mAdditionalHeadersView.setText(""); } /** * Set up and then show the additional headers view. Called by * {@link #onShowAdditionalHeaders()}
/** * Clear the text field for the additional headers display if they are * not shown, to save UI resources. */
Clear the text field for the additional headers display if they are not shown, to save UI resources
hideAdditionalHeaders
{ "repo_name": "439teamwork/k-9", "path": "k9mail/src/main/java/com/fsck/k9/view/MessageHeader.java", "license": "bsd-3-clause", "size": 16006 }
[ "android.view.View", "java.util.Set" ]
import android.view.View; import java.util.Set;
import android.view.*; import java.util.*;
[ "android.view", "java.util" ]
android.view; java.util;
997,013