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 IBlockState getStateFromMeta(int meta) { return this.getDefaultState().withProperty(TYPE, BlockRedSandstone.EnumType.byMetadata(meta)); }
IBlockState function(int meta) { return this.getDefaultState().withProperty(TYPE, BlockRedSandstone.EnumType.byMetadata(meta)); }
/** * Convert the given metadata into a BlockState for this Block */
Convert the given metadata into a BlockState for this Block
getStateFromMeta
{ "repo_name": "SuperUnitato/UnLonely", "path": "build/tmp/recompileMc/sources/net/minecraft/block/BlockRedSandstone.java", "license": "lgpl-2.1", "size": 4027 }
[ "net.minecraft.block.state.IBlockState" ]
import net.minecraft.block.state.IBlockState;
import net.minecraft.block.state.*;
[ "net.minecraft.block" ]
net.minecraft.block;
2,651,802
public CompressionInputStream createInputStream(InputStream in, Decompressor decompressor) throws IOException { return createInputStream(in); }
CompressionInputStream function(InputStream in, Decompressor decompressor) throws IOException { return createInputStream(in); }
/** * This functionality is currently not supported. * * @return CompressionInputStream */
This functionality is currently not supported
createInputStream
{ "repo_name": "Shmuma/hadoop", "path": "src/core/org/apache/hadoop/io/compress/BZip2Codec.java", "license": "apache-2.0", "size": 16292 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
7,496
public void checkCreation2() throws Exception { // // set up the keys // AsymmetricKeyParameter privKey; AsymmetricKeyParameter pubKey; AsymmetricCipherKeyPairGenerator kpg = new DSAKeyPairGenerator(); BigInteger r =...
void function() throws Exception { AsymmetricKeyParameter pubKey; AsymmetricCipherKeyPairGenerator kpg = new DSAKeyPairGenerator(); BigInteger r = new BigInteger(STR); BigInteger s = new BigInteger(STR); DSAParametersGenerator pGen = new DSAParametersGenerator(); pGen.init(512, 80, new SecureRandom()); DSAParameters pa...
/** * we generate a self signed certificate for the sake of testing - DSA */
we generate a self signed certificate for the sake of testing - DSA
checkCreation2
{ "repo_name": "GaloisInc/hacrypto", "path": "src/Java/BouncyCastle/BouncyCastle-1.50/pkix/src/test/java/org/bouncycastle/cert/test/BcCertTest.java", "license": "bsd-3-clause", "size": 66044 }
[ "java.io.ByteArrayInputStream", "java.math.BigInteger", "java.security.SecureRandom", "java.security.cert.CertificateFactory", "java.security.cert.X509Certificate", "java.util.Date", "org.bouncycastle.asn1.x509.AlgorithmIdentifier", "org.bouncycastle.cert.X509CertificateHolder", "org.bouncycastle.ce...
import java.io.ByteArrayInputStream; import java.math.BigInteger; import java.security.SecureRandom; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.util.Date; import org.bouncycastle.asn1.x509.AlgorithmIdentifier; import org.bouncycastle.cert.X509CertificateHolder; ...
import java.io.*; import java.math.*; import java.security.*; import java.security.cert.*; import java.util.*; import org.bouncycastle.asn1.x509.*; import org.bouncycastle.cert.*; import org.bouncycastle.cert.bc.*; import org.bouncycastle.crypto.*; import org.bouncycastle.crypto.generators.*; import org.bouncycastle.cr...
[ "java.io", "java.math", "java.security", "java.util", "org.bouncycastle.asn1", "org.bouncycastle.cert", "org.bouncycastle.crypto", "org.bouncycastle.operator" ]
java.io; java.math; java.security; java.util; org.bouncycastle.asn1; org.bouncycastle.cert; org.bouncycastle.crypto; org.bouncycastle.operator;
538,002
public void notifyCacheChanged(String cacheName) { if (!mListenersMap.containsKey(cacheName)) return; for (CacheListener cl : mListenersMap.get(cacheName)) { cl.onCacheChanged(cacheName); } } private class DataCache<T> { private T data; private Date expi...
void function(String cacheName) { if (!mListenersMap.containsKey(cacheName)) return; for (CacheListener cl : mListenersMap.get(cacheName)) { cl.onCacheChanged(cacheName); } } private class DataCache<T> { private T data; private Date expirationTime; private Date creationTime; public DataCache() { data = null; expiration...
/** * Notify all attached listeners that the cache has been updated via onCacheChanged method. * Note: this is not called when a cache object is deleted. * * @param cacheName name of the updated cache. */
Notify all attached listeners that the cache has been updated via onCacheChanged method. Note: this is not called when a cache object is deleted
notifyCacheChanged
{ "repo_name": "klinster/School-Work", "path": "490/smartmirror/app/src/main/java/org/main/smartmirror/smartmirror/CacheManager.java", "license": "mit", "size": 8616 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,305,959
public static boolean writeFile(String filePath, List<String> contentList, boolean append) { if (contentList == null || contentList.isEmpty()) { return false; } FileWriter fileWriter = null; try { makeDirs(filePath); ...
static boolean function(String filePath, List<String> contentList, boolean append) { if (contentList == null contentList.isEmpty()) { return false; } FileWriter fileWriter = null; try { makeDirs(filePath); fileWriter = new FileWriter(filePath, append); int i = 0; for (String line : contentList) { if (i++ > 0) { fileWri...
/** * write file * * @param filePath * @param contentList * @param append is append, if true, write to the end of file, else clear content of file and write into it * @return return false if contentList is empty, true otherwise * @throws RuntimeExcepti...
write file
writeFile
{ "repo_name": "weiwenqiang/GitHub", "path": "MVP/XDroidMvp-master/mvp/src/main/java/cn/droidlover/xdroidmvp/kit/Kits.java", "license": "apache-2.0", "size": 40095 }
[ "java.io.FileWriter", "java.io.IOException", "java.util.List" ]
import java.io.FileWriter; import java.io.IOException; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
320,386
public void start() { boolean changed = !ranLast; ranLast = true; compressor.set(Relay.Value.kOn); if (changed) { this.outputStatus(); } }
void function() { boolean changed = !ranLast; ranLast = true; compressor.set(Relay.Value.kOn); if (changed) { this.outputStatus(); } }
/** * This function starts the Compressor. This DOES auto-push this class. */
This function starts the Compressor. This DOES auto-push this class
start
{ "repo_name": "FIRST-4030/2013", "path": "src/org/ingrahamrobotics/robot2013/subsystems/Compressor.java", "license": "bsd-3-clause", "size": 1606 }
[ "edu.wpi.first.wpilibj.Relay" ]
import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.*;
[ "edu.wpi.first" ]
edu.wpi.first;
1,969,275
public Point getDimension () { return dimension; }
Point function () { return dimension; }
/** * Get the point that carries the matrix dimension with x = lines and y = columns * @return */
Get the point that carries the matrix dimension with x = lines and y = columns
getDimension
{ "repo_name": "LInE-IME-USP/ivp2java", "path": "usp/ime/line/ivprog/model/components/datafactory/dataobjetcs/IVPMatrix.java", "license": "mit", "size": 3386 }
[ "java.awt.Point" ]
import java.awt.Point;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,209,713
public Set<EnrollmentSet> getEnrollmentSets(String courseOfferingEid) throws IdNotFoundException;
Set<EnrollmentSet> function(String courseOfferingEid) throws IdNotFoundException;
/** * Gets the EnrollmentSets associated with a CourseOffering * * @param courseOfferingEid * @return The Set of EnrollmentSets * @throws IdNotFoundException If the eid is not associated with any CourseOffering */
Gets the EnrollmentSets associated with a CourseOffering
getEnrollmentSets
{ "repo_name": "marktriggs/nyu-sakai-10.4", "path": "edu-services/cm-service/cm-api/api/src/java/org/sakaiproject/coursemanagement/api/CourseManagementService.java", "license": "apache-2.0", "size": 15144 }
[ "java.util.Set", "org.sakaiproject.coursemanagement.api.exception.IdNotFoundException" ]
import java.util.Set; import org.sakaiproject.coursemanagement.api.exception.IdNotFoundException;
import java.util.*; import org.sakaiproject.coursemanagement.api.exception.*;
[ "java.util", "org.sakaiproject.coursemanagement" ]
java.util; org.sakaiproject.coursemanagement;
835,262
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jScrollPane2 = new javax.swing.JScrollPane(); ...
@SuppressWarnings(STR) void function() { jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jScrollPane2 = new javax.swing.JScrollPane(); jTable2 = new javax.swing.JTable(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); btAlter...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "ifes-ci/Trabalhos2016-POO1", "path": "SystemKikiBijus-Luisa-Max/Kiki Bijus -Luisa/src/views/FrmAlterarProduto.java", "license": "gpl-3.0", "size": 14479 }
[ "javax.swing.table.DefaultTableModel" ]
import javax.swing.table.DefaultTableModel;
import javax.swing.table.*;
[ "javax.swing" ]
javax.swing;
2,080,910
public void setLogger(String logger) { this.logger = Logger.getLogger(logger); }
void function(String logger) { this.logger = Logger.getLogger(logger); }
/** * Sets the logger by the name of the logger - used by the configure facility to configure the callback. * * @param logger name of the logger */
Sets the logger by the name of the logger - used by the configure facility to configure the callback
setLogger
{ "repo_name": "virgo47/javasimon", "path": "core/src/main/java/org/javasimon/utils/LoggingCallback.java", "license": "bsd-3-clause", "size": 2496 }
[ "java.util.logging.Logger" ]
import java.util.logging.Logger;
import java.util.logging.*;
[ "java.util" ]
java.util;
463,124
public String getEncoding() { if (reader == null) return null; if (reader instanceof XmlReader) return ((XmlReader) reader).getEncoding(); // XXX prefer a java2std() call to normalize names... if (reader instanceof InputStreamReader) return ((In...
String function() { if (reader == null) return null; if (reader instanceof XmlReader) return ((XmlReader) reader).getEncoding(); if (reader instanceof InputStreamReader) return ((InputStreamReader) reader).getEncoding(); return null; }
/** * Returns the name of the encoding in use, else null; the name * returned is in as standard a form as we can get. */
Returns the name of the encoding in use, else null; the name returned is in as standard a form as we can get
getEncoding
{ "repo_name": "samskivert/ikvm-openjdk", "path": "build/linux-amd64/impsrc/com/sun/xml/internal/dtdparser/InputEntity.java", "license": "gpl-2.0", "size": 31393 }
[ "java.io.InputStreamReader" ]
import java.io.InputStreamReader;
import java.io.*;
[ "java.io" ]
java.io;
2,186,079
public void stop(BundleContext bc) throws Exception { context = null; }
void function(BundleContext bc) throws Exception { context = null; }
/** * Called whenever the OSGi framework stops our bundle */
Called whenever the OSGi framework stops our bundle
stop
{ "repo_name": "noushadali/openhab", "path": "bundles/ui/org.openhab.ui/src/main/java/org/openhab/ui/internal/UIActivator.java", "license": "gpl-3.0", "size": 1933 }
[ "org.osgi.framework.BundleContext" ]
import org.osgi.framework.BundleContext;
import org.osgi.framework.*;
[ "org.osgi.framework" ]
org.osgi.framework;
1,655,929
public static void main(String[] args) { // make sure we have exactly one command line argument if (args.length != 2) { usage(); System.exit(1); } String whichPicture = args[0]; // first command line arg is 1, 2, 3 String outputfileName = args[1]; // sec...
static void function(String[] args) { if (args.length != 2) { usage(); System.exit(1); } String whichPicture = args[0]; String outputfileName = args[1]; final int WIDTH = 640; final int HEIGHT = 480; BufferedImage bi = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_ARGB); Graphics2D g2 = bi.createGraphics(); i...
/** Write the drawFourCoffeeCups picture to a file. * * @param args The first command line argument is the file to write to. We leave off the extension * because that gets put on automatically. */
Write the drawFourCoffeeCups picture to a file
main
{ "repo_name": "UCSB-CS56-W14/CS56-W14-lab06", "path": "src/edu/ucsb/cs56/W14/drawings/kjih/advanced/WritePictureToFile.java", "license": "mit", "size": 3180 }
[ "java.awt.Graphics2D", "java.awt.image.BufferedImage" ]
import java.awt.Graphics2D; import java.awt.image.BufferedImage;
import java.awt.*; import java.awt.image.*;
[ "java.awt" ]
java.awt;
249,696
@Test public void testCreateComponentPrototype_ConfigurationElement_Legal_NoCategory() { final IMocksControl mocksControl = getMocksControl(); final String expectedCategoryId = null; final String encodedExpectedMnemonic = "1"; //$NON-NLS-1$ final int expectedMnemonic = ...
void function() { final IMocksControl mocksControl = getMocksControl(); final String expectedCategoryId = null; final String encodedExpectedMnemonic = "1"; final int expectedMnemonic = KeyStroke.getKeyStroke( encodedExpectedMnemonic ).getKeyCode(); final String expectedName = "name"; final String expectedFactoryClass =...
/** * Ensures the * {@link ComponentPrototypesExtensionPoint#createComponentPrototype} method * creates a component prototype from a legal configuration element that has * no category. */
Ensures the <code>ComponentPrototypesExtensionPoint#createComponentPrototype</code> method creates a component prototype from a legal configuration element that has no category
testCreateComponentPrototype_ConfigurationElement_Legal_NoCategory
{ "repo_name": "gamegineer/dev", "path": "main/table/org.gamegineer.table.ui.impl.tests/src/org/gamegineer/table/internal/ui/impl/prototype/ComponentPrototypesExtensionPointTest.java", "license": "gpl-3.0", "size": 19111 }
[ "javax.swing.KeyStroke", "org.easymock.IMocksControl", "org.eclipse.core.runtime.IConfigurationElement", "org.junit.Assert" ]
import javax.swing.KeyStroke; import org.easymock.IMocksControl; import org.eclipse.core.runtime.IConfigurationElement; import org.junit.Assert;
import javax.swing.*; import org.easymock.*; import org.eclipse.core.runtime.*; import org.junit.*;
[ "javax.swing", "org.easymock", "org.eclipse.core", "org.junit" ]
javax.swing; org.easymock; org.eclipse.core; org.junit;
861,621
public static final byte[] getAsByteArray(Object object, ExternalContext ctx) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); // get the Factory that was instantiated @ startup SerialFactory serialFactory = (SerialFactory) ctx.getApplicationMap().get(SERIAL_FACTO...
static final byte[] function(Object object, ExternalContext ctx) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); SerialFactory serialFactory = (SerialFactory) ctx.getApplicationMap().get(SERIAL_FACTORY); if(serialFactory == null) { throw new NullPointerException(STR); } try { ObjectOutputStream writ...
/** * Performs serialization with the serialization provider created by the * SerialFactory. * * @param object * @param ctx * @return */
Performs serialization with the serialization provider created by the SerialFactory
getAsByteArray
{ "repo_name": "kulinski/myfaces", "path": "shared/src/main/java/org/apache/myfaces/shared/util/StateUtils.java", "license": "apache-2.0", "size": 35195 }
[ "java.io.ByteArrayOutputStream", "java.io.IOException", "java.io.ObjectOutputStream", "javax.faces.FacesException", "javax.faces.context.ExternalContext", "org.apache.myfaces.shared.util.serial.SerialFactory" ]
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import javax.faces.FacesException; import javax.faces.context.ExternalContext; import org.apache.myfaces.shared.util.serial.SerialFactory;
import java.io.*; import javax.faces.*; import javax.faces.context.*; import org.apache.myfaces.shared.util.serial.*;
[ "java.io", "javax.faces", "org.apache.myfaces" ]
java.io; javax.faces; org.apache.myfaces;
117,778
private void fixTrans() { matrix.getValues(m); float transX = m[Matrix.MTRANS_X]; float transY = m[Matrix.MTRANS_Y]; float fixTransX = getFixTrans(transX, viewWidth, getImageWidth()); float fixTransY = getFixTrans(transY, viewHeight, getImageHeight()); if (fixTransX...
void function() { matrix.getValues(m); float transX = m[Matrix.MTRANS_X]; float transY = m[Matrix.MTRANS_Y]; float fixTransX = getFixTrans(transX, viewWidth, getImageWidth()); float fixTransY = getFixTrans(transY, viewHeight, getImageHeight()); if (fixTransX != 0 fixTransY != 0) { matrix.postTranslate(fixTransX, fixTra...
/** * Performs boundary checking and fixes the image matrix if it * is out of bounds. */
Performs boundary checking and fixes the image matrix if it is out of bounds
fixTrans
{ "repo_name": "tcking/ImageCroppingView", "path": "app/src/main/java/com/github/tcking/imagecroppingview/ImageCroppingView.java", "license": "mit", "size": 33430 }
[ "android.graphics.Matrix" ]
import android.graphics.Matrix;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
819,386
BanOnFacility setBan(PerunSession sess, BanOnFacility banOnFacility) throws InternalErrorException, BanAlreadyExistsException;
BanOnFacility setBan(PerunSession sess, BanOnFacility banOnFacility) throws InternalErrorException, BanAlreadyExistsException;
/** * Set ban for user on facility * * @param sess * @param banOnFacility the ban * @return ban on facility * @throws InternalErrorException * @throws BanAlreadyExistsException * */
Set ban for user on facility
setBan
{ "repo_name": "Simcsa/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/FacilitiesManagerBl.java", "license": "bsd-2-clause", "size": 39157 }
[ "cz.metacentrum.perun.core.api.BanOnFacility", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.exceptions.BanAlreadyExistsException", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException" ]
import cz.metacentrum.perun.core.api.BanOnFacility; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.exceptions.BanAlreadyExistsException; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
2,848,476
private void showFragments(final ArrayList<Glyph> allFragments) { this.frags = allFragments; this.fragmentsShowing = true; this.clearFragments(); Collections.sort(allFragments); if (allFragments.size() == Integer.valueOf(this.fragsNeeded.getValue())) { this.disab...
void function(final ArrayList<Glyph> allFragments) { this.frags = allFragments; this.fragmentsShowing = true; this.clearFragments(); Collections.sort(allFragments); if (allFragments.size() == Integer.valueOf(this.fragsNeeded.getValue())) { this.disableApply.set(false); } else { this.disableApply.set(true); } this.frags...
/** * This method is used to show glyphs. * * @param allFragments * arraylist contains all glyphs */
This method is used to show glyphs
showFragments
{ "repo_name": "Diptychon/Diptychon", "path": "src/Diptychon/src/de/diptychon/ui/views/panels/DocumentPanel.java", "license": "gpl-3.0", "size": 191090 }
[ "de.diptychon.models.data.Glyph", "java.util.ArrayList", "java.util.Collections" ]
import de.diptychon.models.data.Glyph; import java.util.ArrayList; import java.util.Collections;
import de.diptychon.models.data.*; import java.util.*;
[ "de.diptychon.models", "java.util" ]
de.diptychon.models; java.util;
981,046
protected static void initializeViewport(BridgeContext ctx, Element e, GraphicsNode node, float[] vb, Rectangle2D bounds) { flo...
static void function(BridgeContext ctx, Element e, GraphicsNode node, float[] vb, Rectangle2D bounds) { float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); try { SVGImageElement ie = (SVGImageElement) e; SVGAnimatedPreserveAspectRatio ...
/** * Initializes according to the specified element, the specified graphics * node with the specified bounds. This method takes into account the * 'viewBox', 'preserveAspectRatio', and 'clip' properties. According to * those properties, a AffineTransform and a clip is set. * * @param ctx ...
Initializes according to the specified element, the specified graphics node with the specified bounds. This method takes into account the 'viewBox', 'preserveAspectRatio', and 'clip' properties. According to those properties, a AffineTransform and a clip is set
initializeViewport
{ "repo_name": "Groostav/CMPT880-term-project", "path": "intruder/benchs/batik/batik-1.7/sources/org/apache/batik/bridge/SVGImageElementBridge.java", "license": "apache-2.0", "size": 37644 }
[ "java.awt.Shape", "java.awt.geom.AffineTransform", "java.awt.geom.Rectangle2D", "org.apache.batik.dom.svg.LiveAttributeException", "org.apache.batik.ext.awt.image.renderable.ClipRable8Bit", "org.apache.batik.ext.awt.image.renderable.Filter", "org.apache.batik.gvt.GraphicsNode", "org.w3c.dom.Element", ...
import java.awt.Shape; import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; import org.apache.batik.dom.svg.LiveAttributeException; import org.apache.batik.ext.awt.image.renderable.ClipRable8Bit; import org.apache.batik.ext.awt.image.renderable.Filter; import org.apache.batik.gvt.GraphicsNode; import...
import java.awt.*; import java.awt.geom.*; import org.apache.batik.dom.svg.*; import org.apache.batik.ext.awt.image.renderable.*; import org.apache.batik.gvt.*; import org.w3c.dom.*; import org.w3c.dom.svg.*;
[ "java.awt", "org.apache.batik", "org.w3c.dom" ]
java.awt; org.apache.batik; org.w3c.dom;
2,092,890
public Set<Arc> getAllNeighbourEdges(Integer n) { Set<Arc> col = new HashSet<Arc>(); if (!fillWithInputArcs(n, col)) return null; if (!fillWithOutputArcs(n, col)) return null; if (!fillWithUndirectedNeighbourArcs(n, col)) return null; return col; }
Set<Arc> function(Integer n) { Set<Arc> col = new HashSet<Arc>(); if (!fillWithInputArcs(n, col)) return null; if (!fillWithOutputArcs(n, col)) return null; if (!fillWithUndirectedNeighbourArcs(n, col)) return null; return col; }
/** * O(|number of n neighbours (directed and undirected)|) * * @param n * @return An HashSet of directed and undirected arcs linked to the node n * in this, null if n does not belong to this graph, or is virtually * removed. */
O(|number of n neighbours (directed and undirected)|)
getAllNeighbourEdges
{ "repo_name": "noormoha/DCCast", "path": "dccast/graphTheory/graph/Graph.java", "license": "mit", "size": 64339 }
[ "java.util.HashSet", "java.util.Set" ]
import java.util.HashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,258,655
@Override @SuppressWarnings("rawtypes") protected Object newArray(Object old, int size, Schema schema) { if (old instanceof ListGenericArray) { ((GenericArray) old).clear(); return old; } else return new ListGenericArray(size, schema); }
@SuppressWarnings(STR) Object function(Object old, int size, Schema schema) { if (old instanceof ListGenericArray) { ((GenericArray) old).clear(); return old; } else return new ListGenericArray(size, schema); }
/** Called to create new array instances. Subclasses may override to use a * different array implementation. By default, this returns a * GenericData.Array instance.*/
Called to create new array instances. Subclasses may override to use a different array implementation. By default, this returns a
newArray
{ "repo_name": "lewismc/gora-maven-archetype", "path": "gora-core/src/main/java/org/apache/gora/avro/PersistentDatumReader.java", "license": "apache-2.0", "size": 8460 }
[ "org.apache.avro.Schema", "org.apache.avro.generic.GenericArray", "org.apache.gora.persistency.ListGenericArray" ]
import org.apache.avro.Schema; import org.apache.avro.generic.GenericArray; import org.apache.gora.persistency.ListGenericArray;
import org.apache.avro.*; import org.apache.avro.generic.*; import org.apache.gora.persistency.*;
[ "org.apache.avro", "org.apache.gora" ]
org.apache.avro; org.apache.gora;
2,403,691
public List<WMSImagery.LayerDetails> getSelectedLayers() { return selectedLayers; } public WMSLayerTree() { layerTree.setCellRenderer(new LayerTreeCellRenderer()); layerTree.addTreeSelectionListener(new WMSTreeSelectionListener()); }
List<WMSImagery.LayerDetails> function() { return selectedLayers; } public WMSLayerTree() { layerTree.setCellRenderer(new LayerTreeCellRenderer()); layerTree.addTreeSelectionListener(new WMSTreeSelectionListener()); }
/** * Returns the list of selected layers. * @return the list of selected layers */
Returns the list of selected layers
getSelectedLayers
{ "repo_name": "CURocketry/Ground_Station_GUI", "path": "src/org/openstreetmap/josm/gui/preferences/imagery/WMSLayerTree.java", "license": "gpl-3.0", "size": 5246 }
[ "java.util.List", "org.openstreetmap.josm.io.imagery.WMSImagery" ]
import java.util.List; import org.openstreetmap.josm.io.imagery.WMSImagery;
import java.util.*; import org.openstreetmap.josm.io.imagery.*;
[ "java.util", "org.openstreetmap.josm" ]
java.util; org.openstreetmap.josm;
2,427,144
public SLStatementNode createWhile(Token whileToken, SLExpressionNode conditionNode, SLStatementNode bodyNode) { conditionNode.addStatementTag(); final int start = whileToken.charPos; final int end = bodyNode.getSourceSection().getCharEndIndex(); final SLWhileNode whileNode = new SLW...
SLStatementNode function(Token whileToken, SLExpressionNode conditionNode, SLStatementNode bodyNode) { conditionNode.addStatementTag(); final int start = whileToken.charPos; final int end = bodyNode.getSourceSection().getCharEndIndex(); final SLWhileNode whileNode = new SLWhileNode(conditionNode, bodyNode); whileNode.s...
/** * Returns an {@link SLWhileNode} for the given parameters. * * @param whileToken The token containing the while node's info * @param conditionNode The conditional node for this while loop * @param bodyNode The body of the while loop * @return A SLWhileNode built using the given paramet...
Returns an <code>SLWhileNode</code> for the given parameters
createWhile
{ "repo_name": "azadmanesh/sl-tracer", "path": "truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java", "license": "gpl-2.0", "size": 24522 }
[ "com.oracle.truffle.sl.nodes.SLExpressionNode", "com.oracle.truffle.sl.nodes.SLStatementNode", "com.oracle.truffle.sl.nodes.controlflow.SLWhileNode" ]
import com.oracle.truffle.sl.nodes.SLExpressionNode; import com.oracle.truffle.sl.nodes.SLStatementNode; import com.oracle.truffle.sl.nodes.controlflow.SLWhileNode;
import com.oracle.truffle.sl.nodes.*; import com.oracle.truffle.sl.nodes.controlflow.*;
[ "com.oracle.truffle" ]
com.oracle.truffle;
1,273,412
Uri uri = createUri(imageId); Picasso.with(mContext).load(uri).into(view); }
Uri uri = createUri(imageId); Picasso.with(mContext).load(uri).into(view); }
/** * Execute the loading process. * @param view ImageView to load the image resource. * @param imageId the Id of the image resource. */
Execute the loading process
setImage
{ "repo_name": "ironbit-android/popular-movies", "path": "app/src/main/java/pe/ironbit/android/popularmovies/images/ImageAdapter.java", "license": "agpl-3.0", "size": 1635 }
[ "android.net.Uri", "com.squareup.picasso.Picasso" ]
import android.net.Uri; import com.squareup.picasso.Picasso;
import android.net.*; import com.squareup.picasso.*;
[ "android.net", "com.squareup.picasso" ]
android.net; com.squareup.picasso;
1,576,026
@Override public void addStackFrame(CFunctionDeclaration pFunctionDeclaration) { CLangStackFrame newFrame = new CLangStackFrame(pFunctionDeclaration, getMachineModel()); // Return object is NULL for void functions SMGObject returnObject = newFrame.getReturnObject(); if (returnObject != null) { ...
void function(CFunctionDeclaration pFunctionDeclaration) { CLangStackFrame newFrame = new CLangStackFrame(pFunctionDeclaration, getMachineModel()); SMGObject returnObject = newFrame.getReturnObject(); if (returnObject != null) { super.addObject(newFrame.getReturnObject()); } stack_objects.push(newFrame); }
/** * Add a new stack frame for the passed function. * * Keeps consistency: yes * * @param pFunctionDeclaration A function for which to create a new stack frame */
Add a new stack frame for the passed function. Keeps consistency: yes
addStackFrame
{ "repo_name": "nishanttotla/predator", "path": "cpachecker/src/org/sosy_lab/cpachecker/cpa/smgfork/graphs/CLangSMG.java", "license": "gpl-3.0", "size": 14122 }
[ "org.sosy_lab.cpachecker.cfa.ast.c.CFunctionDeclaration", "org.sosy_lab.cpachecker.cpa.smgfork.CLangStackFrame", "org.sosy_lab.cpachecker.cpa.smgfork.objects.SMGObject" ]
import org.sosy_lab.cpachecker.cfa.ast.c.CFunctionDeclaration; import org.sosy_lab.cpachecker.cpa.smgfork.CLangStackFrame; import org.sosy_lab.cpachecker.cpa.smgfork.objects.SMGObject;
import org.sosy_lab.cpachecker.cfa.ast.c.*; import org.sosy_lab.cpachecker.cpa.smgfork.*; import org.sosy_lab.cpachecker.cpa.smgfork.objects.*;
[ "org.sosy_lab.cpachecker" ]
org.sosy_lab.cpachecker;
1,293,618
private static String[] tokenizeExpression(String expression) { String[] startTokens = expression.split("\\s"); List<String> endTokens = Lists.newArrayList(); for (String token : startTokens) { processPreToken(token, endTokens); } return endTokens.toArray(new String[endTokens.size()]); }
static String[] function(String expression) { String[] startTokens = expression.split("\\s"); List<String> endTokens = Lists.newArrayList(); for (String token : startTokens) { processPreToken(token, endTokens); } return endTokens.toArray(new String[endTokens.size()]); }
/** * A custom tokenizer since there is not white space between parents and pluses * @param expression * @return */
A custom tokenizer since there is not white space between parents and pluses
tokenizeExpression
{ "repo_name": "spdx/tools", "path": "src/org/spdx/rdfparser/license/LicenseExpressionParser.java", "license": "apache-2.0", "size": 11307 }
[ "com.google.common.collect.Lists", "java.util.List" ]
import com.google.common.collect.Lists; import java.util.List;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,697,432
public InputStream getInputStream() throws IOException { return this.resource.getInputStream(); }
InputStream function() throws IOException { return this.resource.getInputStream(); }
/** * Open an {@code java.io.InputStream} for the specified resource, * typically assuming that there is no specific encoding to use. * @throws IOException if opening the InputStream failed * @see #requiresReader() */
Open an java.io.InputStream for the specified resource, typically assuming that there is no specific encoding to use
getInputStream
{ "repo_name": "hanyosh/gagu", "path": "gagu-core/src/main/java/com/github/gagu/core/io/support/EncodedResource.java", "license": "apache-2.0", "size": 4634 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
696,453
public List<EtatVersion> getAll();
List<EtatVersion> function();
/** * Renvoie une liste de tous les <code>EtatVersion</code> possibles pour une version * d'un service web * @return liste de tous les <code>EtatVersion</code> */
Renvoie une liste de tous les <code>EtatVersion</code> possibles pour une version d'un service web
getAll
{ "repo_name": "elrhourha/pfe", "path": "src/main/java/com/pfe/dao/interfaces/DaoEtatVersion.java", "license": "mit", "size": 1133 }
[ "com.pfe.entity.EtatVersion", "java.util.List" ]
import com.pfe.entity.EtatVersion; import java.util.List;
import com.pfe.entity.*; import java.util.*;
[ "com.pfe.entity", "java.util" ]
com.pfe.entity; java.util;
1,551,278
@Test public void testGetDescription() { final FlowerGrower fl = new FlowerGrower(); fl.setRipeness(0); assertThat(fl.describe(), is("You see something which has just been planted.")); fl.setRipeness(1); assertThat(fl.describe(), is("Something is sprouting from the ground.")); fl.setRipeness(2); a...
void function() { final FlowerGrower fl = new FlowerGrower(); fl.setRipeness(0); assertThat(fl.describe(), is(STR)); fl.setRipeness(1); assertThat(fl.describe(), is(STR)); fl.setRipeness(2); assertThat(fl.describe(), is(STR)); fl.setRipeness(3); assertThat( fl.describe(), is(STR)); fl.setRipeness(4); assertThat( fl.des...
/** * Tests for getDescription. */
Tests for getDescription
testGetDescription
{ "repo_name": "acsid/stendhal", "path": "tests/games/stendhal/server/entity/mapstuff/spawner/FlowerGrowerTest.java", "license": "gpl-2.0", "size": 6314 }
[ "org.hamcrest.Matchers", "org.junit.Assert" ]
import org.hamcrest.Matchers; import org.junit.Assert;
import org.hamcrest.*; import org.junit.*;
[ "org.hamcrest", "org.junit" ]
org.hamcrest; org.junit;
1,496,362
static ConnectionProfile resolveConnectionProfile(@Nullable ConnectionProfile connectionProfile, ConnectionProfile defaultConnectionProfile) { Objects.requireNonNull(defaultConnectionProfile); if (connectionProfile == null) { return d...
static ConnectionProfile resolveConnectionProfile(@Nullable ConnectionProfile connectionProfile, ConnectionProfile defaultConnectionProfile) { Objects.requireNonNull(defaultConnectionProfile); if (connectionProfile == null) { return defaultConnectionProfile; } else if (connectionProfile.getConnectTimeout() != null && c...
/** * takes a {@link ConnectionProfile} that have been passed as a parameter to the public methods * and resolves it to a fully specified (i.e., no nulls) profile */
takes a <code>ConnectionProfile</code> that have been passed as a parameter to the public methods and resolves it to a fully specified (i.e., no nulls) profile
resolveConnectionProfile
{ "repo_name": "masaruh/elasticsearch", "path": "core/src/main/java/org/elasticsearch/transport/TcpTransport.java", "license": "apache-2.0", "size": 90100 }
[ "java.util.Objects", "org.elasticsearch.common.Nullable" ]
import java.util.Objects; import org.elasticsearch.common.Nullable;
import java.util.*; import org.elasticsearch.common.*;
[ "java.util", "org.elasticsearch.common" ]
java.util; org.elasticsearch.common;
1,712,227
@POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) @Path("porZona") public Response addCondicionesZonaPorZona( List<CondicionTecnica> condiciones, @HeaderParam("zona") String zona,@HeaderParam("usuarioId")Long usuarioId) { zona=zona.replaceAll(RotondAndesTM.SPACE, " "); R...
@Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) @Path(STR) Response function( List<CondicionTecnica> condiciones, @HeaderParam("zona") String zona,@HeaderParam(STR)Long usuarioId) { zona=zona.replaceAll(RotondAndesTM.SPACE, " "); RotondAndesTM tm = new RotondAndesTM(getPath()); try { Usuario...
/** * Metodo que expone servicio REST usando POST que agrega la zona que recibe en Json * <b>URL: </b> http://"ip o nombre de host":8080/CondicionesZonaAndes/rest/zonas/zona * @param zona - zona a agregar * @param condiciones- Listado de condiciones a agregar * @param usuarioId Id del usua...
Metodo que expone servicio REST usando POST que agrega la zona que recibe en Json
addCondicionesZonaPorZona
{ "repo_name": "js-diaz/sistrans", "path": "src/rest/CondicionZonaServices.java", "license": "mit", "size": 11093 }
[ "java.util.List", "javax.ws.rs.Consumes", "javax.ws.rs.HeaderParam", "javax.ws.rs.Path", "javax.ws.rs.Produces", "javax.ws.rs.core.MediaType", "javax.ws.rs.core.Response" ]
import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.HeaderParam; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response;
import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "java.util", "javax.ws" ]
java.util; javax.ws;
835,510
private static void authorizePermissionsToLoggedInUser(String username, String destinationName, String destinationId, UserRealm userRealm) throws ...
static void function(String username, String destinationName, String destinationId, UserRealm userRealm) throws UserStoreException { String newDestinationName = destinationName.replace("@", AT_REPLACE_CHAR); String roleName = UserCoreUtil.addInternalDomainName(TOPIC_ROLE_PREFIX + newDestinationName.replace("/", "-")); ...
/** * Create a new role which has the same name as the destinationName and assign the logged in * user to the newly created role. Then, authorize the newly created role to subscribe and * publish to the destination. * * @param username name of the logged in user * @param destination...
Create a new role which has the same name as the destinationName and assign the logged in user to the newly created role. Then, authorize the newly created role to subscribe and publish to the destination
authorizePermissionsToLoggedInUser
{ "repo_name": "wattale/carbon-commons", "path": "components/event/org.wso2.carbon.event.core/src/main/java/org/wso2/carbon/event/core/internal/topic/registry/RegistryTopicManager.java", "license": "apache-2.0", "size": 26421 }
[ "org.wso2.carbon.context.CarbonContext", "org.wso2.carbon.event.core.util.EventBrokerConstants", "org.wso2.carbon.user.api.UserRealm", "org.wso2.carbon.user.api.UserStoreException", "org.wso2.carbon.user.api.UserStoreManager", "org.wso2.carbon.user.core.util.UserCoreUtil", "org.wso2.carbon.utils.multite...
import org.wso2.carbon.context.CarbonContext; import org.wso2.carbon.event.core.util.EventBrokerConstants; import org.wso2.carbon.user.api.UserRealm; import org.wso2.carbon.user.api.UserStoreException; import org.wso2.carbon.user.api.UserStoreManager; import org.wso2.carbon.user.core.util.UserCoreUtil; import org.wso2....
import org.wso2.carbon.context.*; import org.wso2.carbon.event.core.util.*; import org.wso2.carbon.user.api.*; import org.wso2.carbon.user.core.util.*; import org.wso2.carbon.utils.multitenancy.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
2,610,605
EClass getServiceReference();
EClass getServiceReference();
/** * Returns the meta object for class '{@link org.asup.fw.core.QServiceReference <em>Service Reference</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Service Reference</em>'. * @see org.asup.fw.core.QServiceReference * @generated */
Returns the meta object for class '<code>org.asup.fw.core.QServiceReference Service Reference</code>'.
getServiceReference
{ "repo_name": "asupdev/asup", "path": "org.asup.fw.core/src/org/asup/fw/core/QFrameworkCorePackage.java", "license": "epl-1.0", "size": 58226 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
840,592
public int realReadChars(char cbuf[], int off, int len) throws IOException; }
int function(char cbuf[], int off, int len) throws IOException; }
/** * Read new bytes ( usually the internal conversion buffer ). * The implementation is allowed to ignore the parameters, * and mutate the chunk if it wishes to implement its own buffering. */
Read new bytes ( usually the internal conversion buffer ). The implementation is allowed to ignore the parameters, and mutate the chunk if it wishes to implement its own buffering
realReadChars
{ "repo_name": "mayonghui2112/helloWorld", "path": "sourceCode/apache-tomcat-7.0.82-src/java/org/apache/tomcat/util/buf/CharChunk.java", "license": "apache-2.0", "size": 21302 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,199,007
boolean inject(Object target, Class<? extends Annotation> annCls, GridResourceInjector injector, @Nullable GridDeployment dep, @Nullable Class<?> depCls) throws IgniteCheckedException { return injectInternal(target, annCls, injector, dep, depCls, null); }
boolean inject(Object target, Class<? extends Annotation> annCls, GridResourceInjector injector, @Nullable GridDeployment dep, @Nullable Class<?> depCls) throws IgniteCheckedException { return injectInternal(target, annCls, injector, dep, depCls, null); }
/** * Injects given resource via field or setter with specified annotations on provided target object. * * @param target Target object. * @param annCls Setter annotation. * @param injector Resource to inject. * @param dep Deployment. * @param depCls Deployment class. * @return {@...
Injects given resource via field or setter with specified annotations on provided target object
inject
{ "repo_name": "andrey-kuznetsov/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/resource/GridResourceIoc.java", "license": "apache-2.0", "size": 21425 }
[ "java.lang.annotation.Annotation", "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.internal.managers.deployment.GridDeployment", "org.jetbrains.annotations.Nullable" ]
import java.lang.annotation.Annotation; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.internal.managers.deployment.GridDeployment; import org.jetbrains.annotations.Nullable;
import java.lang.annotation.*; import org.apache.ignite.*; import org.apache.ignite.internal.managers.deployment.*; import org.jetbrains.annotations.*;
[ "java.lang", "org.apache.ignite", "org.jetbrains.annotations" ]
java.lang; org.apache.ignite; org.jetbrains.annotations;
2,774,409
public boolean containsSync(CacheKey key) { return mStagingArea.containsKey(key) || mFileCache.hasKeySync(key); }
boolean function(CacheKey key) { return mStagingArea.containsKey(key) mFileCache.hasKeySync(key); }
/** * Returns true if the key is in the in-memory key index. * * <p>Not guaranteed to be correct. The cache may yet have this key even if this returns false. * But if it returns true, it definitely has it. * * <p>Avoids a disk read. */
Returns true if the key is in the in-memory key index. Not guaranteed to be correct. The cache may yet have this key even if this returns false. But if it returns true, it definitely has it. Avoids a disk read
containsSync
{ "repo_name": "facebook/fresco", "path": "imagepipeline/src/main/java/com/facebook/imagepipeline/cache/BufferedDiskCache.java", "license": "mit", "size": 17019 }
[ "com.facebook.cache.common.CacheKey" ]
import com.facebook.cache.common.CacheKey;
import com.facebook.cache.common.*;
[ "com.facebook.cache" ]
com.facebook.cache;
2,144,757
public final Class<? extends Attribute> getCategory() { return JobStateReason.class; }
final Class<? extends Attribute> function() { return JobStateReason.class; }
/** * Get the printing attribute class which is to be used as the "category" * for this printing attribute value. * <P> * For class JobStateReason and any vendor-defined subclasses, the * category is class JobStateReason itself. * * @return Printing attribute class (category), an in...
Get the printing attribute class which is to be used as the "category" for this printing attribute value. For class JobStateReason and any vendor-defined subclasses, the category is class JobStateReason itself
getCategory
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jdk/src/share/classes/javax/print/attribute/standard/JobStateReason.java", "license": "mit", "size": 19349 }
[ "javax.print.attribute.Attribute" ]
import javax.print.attribute.Attribute;
import javax.print.attribute.*;
[ "javax.print" ]
javax.print;
1,367,182
Set<Method> methods = new TreeSet<Method>(); methods.add(Method.OPTIONS); return methods; }
Set<Method> methods = new TreeSet<Method>(); methods.add(Method.OPTIONS); return methods; }
/** * Permite metodo OPTIONS. * @return False. */
Permite metodo OPTIONS
getAllowedMethods
{ "repo_name": "robsonsmartins/acaas", "path": "source/acaas.jboss7/AcaaS/src/com/robsonmartins/acaas/AbstractResource.java", "license": "gpl-3.0", "size": 2717 }
[ "java.util.Set", "java.util.TreeSet", "org.restlet.data.Method" ]
import java.util.Set; import java.util.TreeSet; import org.restlet.data.Method;
import java.util.*; import org.restlet.data.*;
[ "java.util", "org.restlet.data" ]
java.util; org.restlet.data;
833,516
void setRange(IDocument document, int offset, int length);
void setRange(IDocument document, int offset, int length);
/** * Configures the scanner by providing access to the document range that should be scanned. * * @param document the document to scan * @param offset the offset of the document range to scan * @param length the length of the document range to scan */
Configures the scanner by providing access to the document range that should be scanned
setRange
{ "repo_name": "sleshchenko/che", "path": "plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/ITokenScanner.java", "license": "epl-1.0", "size": 1692 }
[ "org.eclipse.jface.text.IDocument" ]
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
1,112,297
public EbMessagePersistence getEbMessagePersistence() { return ebMessagePersistence; }
EbMessagePersistence function() { return ebMessagePersistence; }
/** * Returns the eb message persistence. * * @return the eb message persistence */
Returns the eb message persistence
getEbMessagePersistence
{ "repo_name": "openegovplatform/OEPv2", "path": "oep-dossier-portlet/docroot/WEB-INF/src/org/oep/dossiermgt/service/base/DossierTagServiceBaseImpl.java", "license": "apache-2.0", "size": 49313 }
[ "org.oep.dossiermgt.service.persistence.EbMessagePersistence" ]
import org.oep.dossiermgt.service.persistence.EbMessagePersistence;
import org.oep.dossiermgt.service.persistence.*;
[ "org.oep.dossiermgt" ]
org.oep.dossiermgt;
112,490
val map = new LinkedMultiValueMap<String, String>(1); map.add(OAuth20Constants.ERROR, code); val value = OAuth20Utils.toJson(map); return new ResponseEntity<>(value, HttpStatus.UNAUTHORIZED); }
val map = new LinkedMultiValueMap<String, String>(1); map.add(OAuth20Constants.ERROR, code); val value = OAuth20Utils.toJson(map); return new ResponseEntity<>(value, HttpStatus.UNAUTHORIZED); }
/** * Build unauthorized response entity. * * @param code the code * @return the response entity */
Build unauthorized response entity
buildUnauthorizedResponseEntity
{ "repo_name": "pdrados/cas", "path": "support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/endpoints/OAuth20UserProfileEndpointController.java", "license": "apache-2.0", "size": 6051 }
[ "org.apereo.cas.support.oauth.OAuth20Constants", "org.apereo.cas.support.oauth.util.OAuth20Utils", "org.springframework.http.HttpStatus", "org.springframework.http.ResponseEntity", "org.springframework.util.LinkedMultiValueMap" ]
import org.apereo.cas.support.oauth.OAuth20Constants; import org.apereo.cas.support.oauth.util.OAuth20Utils; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.util.LinkedMultiValueMap;
import org.apereo.cas.support.oauth.*; import org.apereo.cas.support.oauth.util.*; import org.springframework.http.*; import org.springframework.util.*;
[ "org.apereo.cas", "org.springframework.http", "org.springframework.util" ]
org.apereo.cas; org.springframework.http; org.springframework.util;
2,280,613
public void componentResized(ComponentEvent arg0) { repaint(); }
void function(ComponentEvent arg0) { repaint(); }
/************************************************************ * ComponentListener methods for when the RB moves or resizes ************************************************************/
ComponentListener methods for when the RB moves or resizes
componentResized
{ "repo_name": "ajhalbleib/aicg", "path": "appinventor/blockslib/src/openblocks/renderable/RBHighlightHandler.java", "license": "mit", "size": 6585 }
[ "java.awt.event.ComponentEvent" ]
import java.awt.event.ComponentEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
923,451
public void setDomainAxisLocation(int index, AxisLocation location, boolean notify) { if (index == 0 && location == null) { throw new IllegalArgumentException( "Null 'location' for index 0 not permitted."); } this.domainAxisLocations.put(index, loc...
void function(int index, AxisLocation location, boolean notify) { if (index == 0 && location == null) { throw new IllegalArgumentException( STR); } this.domainAxisLocations.put(index, location); if (notify) { fireChangeEvent(); } }
/** * Sets the axis location for a domain axis and, if requested, sends a * {@link PlotChangeEvent} to all registered listeners. * * @param index the axis index (must be &gt;= 0). * @param location the location ({@code null} not permitted for * index 0). * @param notify notify ...
Sets the axis location for a domain axis and, if requested, sends a <code>PlotChangeEvent</code> to all registered listeners
setDomainAxisLocation
{ "repo_name": "GitoMat/jfreechart", "path": "src/main/java/org/jfree/chart/plot/XYPlot.java", "license": "lgpl-2.1", "size": 197216 }
[ "org.jfree.chart.axis.AxisLocation" ]
import org.jfree.chart.axis.AxisLocation;
import org.jfree.chart.axis.*;
[ "org.jfree.chart" ]
org.jfree.chart;
1,415,338
public static byte[] buildProfileWriteValue(String filename, byte[] pass, String[] key, byte[][] data) { int data_len = 0; for(int i = 0; i < data.length; i++) { data_len += 16; data_len += 2; data_len += data[i].length; } PacketBuilde...
static byte[] function(String filename, byte[] pass, String[] key, byte[][] data) { int data_len = 0; for(int i = 0; i < data.length; i++) { data_len += 16; data_len += 2; data_len += data[i].length; } PacketBuilder sendbyte = new PacketBuilder( 8+1+8+1+ data_len); sendbyte.setCommand( CMD20.REQ_PenProfile ); sendbyte....
/** * Build profile write value byte [ ]. * * @param filename the filename * @param pass the pass * @param key the key * @param data the data * @return the byte [ ] */
Build profile write value byte [ ]
buildProfileWriteValue
{ "repo_name": "NeoSmartpen/AndroidSDK2.0", "path": "NASDK2.0_Studio/app/src/main/java/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser20.java", "license": "gpl-3.0", "size": 53433 }
[ "kr.neolab.sdk.util.NLog" ]
import kr.neolab.sdk.util.NLog;
import kr.neolab.sdk.util.*;
[ "kr.neolab.sdk" ]
kr.neolab.sdk;
2,900,302
@C.Encoding public static int getEncoding(String mimeType, @Nullable String codec) { switch (mimeType) { case MimeTypes.AUDIO_MPEG: return C.ENCODING_MP3; case MimeTypes.AUDIO_AAC: if (codec == null) { return C.ENCODING_INVALID; } @Nullable Mp4aObjectType ob...
@C.Encoding static int function(String mimeType, @Nullable String codec) { switch (mimeType) { case MimeTypes.AUDIO_MPEG: return C.ENCODING_MP3; case MimeTypes.AUDIO_AAC: if (codec == null) { return C.ENCODING_INVALID; } @Nullable Mp4aObjectType objectType = getObjectTypeFromMp4aRFC6381CodecString(codec); if (objectTyp...
/** * Returns the {@link C.Encoding} constant corresponding to the specified audio MIME type and RFC * 6381 codec string, or {@link C#ENCODING_INVALID} if the corresponding {@link C.Encoding} cannot * be determined. * * @param mimeType A MIME type. * @param codec An RFC 6381 codec string, or {@code nu...
Returns the <code>C.Encoding</code> constant corresponding to the specified audio MIME type and RFC 6381 codec string, or <code>C#ENCODING_INVALID</code> if the corresponding <code>C.Encoding</code> cannot be determined
getEncoding
{ "repo_name": "ened/ExoPlayer", "path": "library/common/src/main/java/com/google/android/exoplayer2/util/MimeTypes.java", "license": "apache-2.0", "size": 29595 }
[ "androidx.annotation.Nullable" ]
import androidx.annotation.Nullable;
import androidx.annotation.*;
[ "androidx.annotation" ]
androidx.annotation;
79,911
public void deleteObjectsError(Index index, List<JSONObject> objects, AlgoliaException e);
void function(Index index, List<JSONObject> objects, AlgoliaException e);
/** * Asynchronously receive error of Index.deleteObjectsASync method. */
Asynchronously receive error of Index.deleteObjectsASync method
deleteObjectsError
{ "repo_name": "Acidburn0zzz/algoliasearch-client-android", "path": "src/main/java/com/algolia/search/saas/IndexListener.java", "license": "mit", "size": 7800 }
[ "java.util.List", "org.json.JSONObject" ]
import java.util.List; import org.json.JSONObject;
import java.util.*; import org.json.*;
[ "java.util", "org.json" ]
java.util; org.json;
2,067,450
public void createAndPersistNewDiagramsIfNeeded(ParsedDeployment parsedDeployment, DecisionRequirementsDiagramHelper decisionRequirementsDiagramHelper) { for (DecisionEntity decision : parsedDeployment.getAllDecisions()) { if (decisionRequirementsDiagramHelper.shouldCreateDiagram(decision, parse...
void function(ParsedDeployment parsedDeployment, DecisionRequirementsDiagramHelper decisionRequirementsDiagramHelper) { for (DecisionEntity decision : parsedDeployment.getAllDecisions()) { if (decisionRequirementsDiagramHelper.shouldCreateDiagram(decision, parsedDeployment.getDeployment())) { DmnResourceEntity resource...
/** * Creates new diagrams for decisions if the deployment is new, the decision in question supports it, and the engine is configured to make new diagrams. * * When this method creates a new diagram, it also persists it via the ResourceEntityManager and adds it to the resources of the deployment. */
Creates new diagrams for decisions if the deployment is new, the decision in question supports it, and the engine is configured to make new diagrams. When this method creates a new diagram, it also persists it via the ResourceEntityManager and adds it to the resources of the deployment
createAndPersistNewDiagramsIfNeeded
{ "repo_name": "dbmalkovsky/flowable-engine", "path": "modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/deployer/DmnDeploymentHelper.java", "license": "apache-2.0", "size": 7615 }
[ "org.flowable.dmn.engine.impl.persistence.entity.DecisionEntity", "org.flowable.dmn.engine.impl.persistence.entity.DmnResourceEntity", "org.flowable.dmn.engine.impl.util.CommandContextUtil" ]
import org.flowable.dmn.engine.impl.persistence.entity.DecisionEntity; import org.flowable.dmn.engine.impl.persistence.entity.DmnResourceEntity; import org.flowable.dmn.engine.impl.util.CommandContextUtil;
import org.flowable.dmn.engine.impl.persistence.entity.*; import org.flowable.dmn.engine.impl.util.*;
[ "org.flowable.dmn" ]
org.flowable.dmn;
2,483,837
@Deprecated public Future<CommandResult> getLastMessage(Integer messageId, Integer messageControl, Calendar startTime, Integer durationInMinutes, String message, Integer optionalExtendedMessageControl) { GetLastMessage command = new GetLastMessage(); // Set the fields command.setMessage...
Future<CommandResult> function(Integer messageId, Integer messageControl, Calendar startTime, Integer durationInMinutes, String message, Integer optionalExtendedMessageControl) { GetLastMessage command = new GetLastMessage(); command.setMessageId(messageId); command.setMessageControl(messageControl); command.setStartTi...
/** * The Get Last Message * <p> * On receipt of this command, the device shall send a Display Message or Display Protected * Message command as appropriate. A ZCL Default Response with status NOT_FOUND shall be * returned if no message is available. * * @param messageId {@link Intege...
The Get Last Message On receipt of this command, the device shall send a Display Message or Display Protected Message command as appropriate. A ZCL Default Response with status NOT_FOUND shall be returned if no message is available
getLastMessage
{ "repo_name": "zsmartsystems/com.zsmartsystems.zigbee", "path": "com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclMessagingCluster.java", "license": "epl-1.0", "size": 17606 }
[ "com.zsmartsystems.zigbee.CommandResult", "com.zsmartsystems.zigbee.zcl.clusters.messaging.GetLastMessage", "java.util.Calendar", "java.util.concurrent.Future" ]
import com.zsmartsystems.zigbee.CommandResult; import com.zsmartsystems.zigbee.zcl.clusters.messaging.GetLastMessage; import java.util.Calendar; import java.util.concurrent.Future;
import com.zsmartsystems.zigbee.*; import com.zsmartsystems.zigbee.zcl.clusters.messaging.*; import java.util.*; import java.util.concurrent.*;
[ "com.zsmartsystems.zigbee", "java.util" ]
com.zsmartsystems.zigbee; java.util;
2,138,473
public JsonObject updateJudge(Integer id, String source) throws ClientException, ConnectionException { return updateJudge(id, source, null, null); }
JsonObject function(Integer id, String source) throws ClientException, ConnectionException { return updateJudge(id, source, null, null); }
/** * Update judge (without: compiler, name) * * @param {integer} id - Judge ID * @param {string} source - source code (optional, put null if you don't want to update) * @throws NotAuthorizedException for invalid access token * @throws NotFoundException for non existing judge * @throws BadRequestEx...
Update judge (without: compiler, name)
updateJudge
{ "repo_name": "sphere-engine/java-client", "path": "src/com/SphereEngine/Api/ProblemsClientV3.java", "license": "apache-2.0", "size": 46337 }
[ "com.google.gson.JsonObject" ]
import com.google.gson.JsonObject;
import com.google.gson.*;
[ "com.google.gson" ]
com.google.gson;
2,243,616
public static String toExternalForm(URL url) { return (url == null) ? null : JavaURLConnection.toExternalForm(url); }
static String function(URL url) { return (url == null) ? null : JavaURLConnection.toExternalForm(url); }
/** * Returns the string representation of the specified url * * @param url * the URL * * @return the string representation of the specified url */
Returns the string representation of the specified url
toExternalForm
{ "repo_name": "appnativa/rare", "path": "source/rare/core/com/appnativa/rare/scripting/Functions.java", "license": "gpl-3.0", "size": 107843 }
[ "com.appnativa.rare.net.JavaURLConnection" ]
import com.appnativa.rare.net.JavaURLConnection;
import com.appnativa.rare.net.*;
[ "com.appnativa.rare" ]
com.appnativa.rare;
2,073,850
public Map<Constructor,List<String>> getAllConstructorParameters(Class clazz) { // Determine the constructors? List<Constructor> constructors = new ArrayList<Constructor>(Arrays.asList(clazz.getConstructors())); constructors.addAll(Arrays.asList(clazz.getDeclaredConstructors())); if ...
Map<Constructor,List<String>> function(Class clazz) { List<Constructor> constructors = new ArrayList<Constructor>(Arrays.asList(clazz.getConstructors())); constructors.addAll(Arrays.asList(clazz.getDeclaredConstructors())); if (constructors.isEmpty()) { return Collections.emptyMap(); } if (constructorCache.containsKey(...
/** * Gets the parameter names of all constructor or null if the class was compiled without debug symbols on. * @param clazz the class for which the constructor parameter names should be retrieved * @return a map from Constructor object to the parameter names or null if the class was compiled without deb...
Gets the parameter names of all constructor or null if the class was compiled without debug symbols on
getAllConstructorParameters
{ "repo_name": "apache/geronimo-xbean", "path": "xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java", "license": "apache-2.0", "size": 13850 }
[ "java.io.IOException", "java.lang.reflect.Constructor", "java.util.ArrayList", "java.util.Arrays", "java.util.Collections", "java.util.HashMap", "java.util.List", "java.util.Map", "org.apache.xbean.asm9.ClassReader" ]
import java.io.IOException; import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.xbean.asm9.ClassReader;
import java.io.*; import java.lang.reflect.*; import java.util.*; import org.apache.xbean.asm9.*;
[ "java.io", "java.lang", "java.util", "org.apache.xbean" ]
java.io; java.lang; java.util; org.apache.xbean;
2,422,174
public void setMaxNumber(Integer v) { if (!ObjectUtils.equals(this.maxNumber, v)) { this.maxNumber = v; setModified(true); } }
void function(Integer v) { if (!ObjectUtils.equals(this.maxNumber, v)) { this.maxNumber = v; setModified(true); } }
/** * Set the value of MaxNumber * * @param v new value */
Set the value of MaxNumber
setMaxNumber
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/BaseTCardFieldOption.java", "license": "gpl-3.0", "size": 30548 }
[ "org.apache.commons.lang.ObjectUtils" ]
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.*;
[ "org.apache.commons" ]
org.apache.commons;
731,201
@ApiModelProperty(example = "null", value = "City Name") public String getCityName() { return cityName; }
@ApiModelProperty(example = "null", value = STR) String function() { return cityName; }
/** * City Name * @return cityName **/
City Name
getCityName
{ "repo_name": "Avalara/avataxbr-clients", "path": "java-client/src/main/java/io/swagger/client/model/Location.java", "license": "gpl-3.0", "size": 17327 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
933,474
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { if (isInEditMode()) super.onLayout(changed, left, top, right, bottom); else if (isDragViewAtTop()) { dragView.layout(left, top, right, transformer.getOriginalHeight()); secondView.layout(left, tran...
@Override void function(boolean changed, int left, int top, int right, int bottom) { if (isInEditMode()) super.onLayout(changed, left, top, right, bottom); else if (isDragViewAtTop()) { dragView.layout(left, top, right, transformer.getOriginalHeight()); secondView.layout(left, transformer.getOriginalHeight(), right, bo...
/** * Override method to configure the dragged view and secondView layout properly. */
Override method to configure the dragged view and secondView layout properly
onLayout
{ "repo_name": "MKA-Nigeria/MKAN-Report-Android", "path": "draggablepanel/src/main/java/com/github/pedrovgs/DraggableView.java", "license": "mit", "size": 25261 }
[ "com.nineoldandroids.view.ViewHelper" ]
import com.nineoldandroids.view.ViewHelper;
import com.nineoldandroids.view.*;
[ "com.nineoldandroids.view" ]
com.nineoldandroids.view;
292,192
public void print(Doc doc, PrintRequestAttributeSet has) throws PrintException;
void function(Doc doc, PrintRequestAttributeSet has) throws PrintException;
/** * Prints document. * @param doc - document to print * @param set - set of printing request attributes. */
Prints document
print
{ "repo_name": "freeVM/freeVM", "path": "enhanced/java/classlib/modules/print/src/main/java/common/org/apache/harmony/x/print/PrintClient.java", "license": "apache-2.0", "size": 3502 }
[ "javax.print.Doc", "javax.print.PrintException", "javax.print.attribute.PrintRequestAttributeSet" ]
import javax.print.Doc; import javax.print.PrintException; import javax.print.attribute.PrintRequestAttributeSet;
import javax.print.*; import javax.print.attribute.*;
[ "javax.print" ]
javax.print;
2,426,896
String getSqlForBatch(ParseInfo batchInfo) throws UnsupportedEncodingException { int size = 0; final byte[][] sqlStrings = batchInfo.staticSql; final int sqlStringsLength = sqlStrings.length; for (int i = 0; i < sqlStringsLength; i++) { size += sqlStrings[i].length; size++; // for the '?' ...
String getSqlForBatch(ParseInfo batchInfo) throws UnsupportedEncodingException { int size = 0; final byte[][] sqlStrings = batchInfo.staticSql; final int sqlStringsLength = sqlStrings.length; for (int i = 0; i < sqlStringsLength; i++) { size += sqlStrings[i].length; size++; } StringBuffer buf = new StringBuffer(size); ...
/** * Used for filling in the SQL for getPreparedSql() - for debugging */
Used for filling in the SQL for getPreparedSql() - for debugging
getSqlForBatch
{ "repo_name": "AbstractedSheep/Shuttle-Tracker", "path": "server/java/mysql-connector-java-5.1.14/src/com/mysql/jdbc/PreparedStatement.java", "license": "gpl-3.0", "size": 163728 }
[ "java.io.UnsupportedEncodingException" ]
import java.io.UnsupportedEncodingException;
import java.io.*;
[ "java.io" ]
java.io;
2,787,767
private void parseCreateTag(XmlPullParser parser, Element parent) { Element createElement = new Element(parser.getName(), parent.getNamespace()); parent.addContent(createElement); for (int i = 0; i < parser.getAttributeCount(); i++) { createElement.setAttribute(parser.getAttributeName(i), parser.getAttribut...
void function(XmlPullParser parser, Element parent) { Element createElement = new Element(parser.getName(), parent.getNamespace()); parent.addContent(createElement); for (int i = 0; i < parser.getAttributeCount(); i++) { createElement.setAttribute(parser.getAttributeName(i), parser.getAttributeValue(i)); } }
/** * Parses a createtag. * @param parser The used XmlPullParser. * @param parent The parent of this tag. */
Parses a createtag
parseCreateTag
{ "repo_name": "MirrorIP/msf-spaces-sdk-android", "path": "src/de/imc/mirror/sdk/android/SpacesProvider.java", "license": "apache-2.0", "size": 6952 }
[ "org.jdom2.Element", "org.xmlpull.v1.XmlPullParser" ]
import org.jdom2.Element; import org.xmlpull.v1.XmlPullParser;
import org.jdom2.*; import org.xmlpull.v1.*;
[ "org.jdom2", "org.xmlpull.v1" ]
org.jdom2; org.xmlpull.v1;
521,117
////////////////////////////////////////////// // // FORMATABLE // ////////////////////////////////////////////// public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(theLong); }
void function(ObjectOutput out) throws IOException { out.writeLong(theLong); }
/** * Write this formatable out * * @param out write bytes here * * @exception IOException thrown on error */
Write this formatable out
writeExternal
{ "repo_name": "apache/derby", "path": "java/org.apache.derby.engine/org/apache/derby/iapi/services/io/FormatableLongHolder.java", "license": "apache-2.0", "size": 3018 }
[ "java.io.IOException", "java.io.ObjectOutput" ]
import java.io.IOException; import java.io.ObjectOutput;
import java.io.*;
[ "java.io" ]
java.io;
314,845
public int getLastValueTotal() { int totalRevenue = 0; int totalExpense = 0; for (CashFlow cf : getCashFlows()) { if (cf.getCashFlowType() == "revenue") totalRevenue += cf.getValueTotalPayment(); if (cf.getCashFlowType() == "expense") totalExpense += cf.getValueTotalPayment(); } return (to...
int function() { int totalRevenue = 0; int totalExpense = 0; for (CashFlow cf : getCashFlows()) { if (cf.getCashFlowType() == STR) totalRevenue += cf.getValueTotalPayment(); if (cf.getCashFlowType() == STR) totalExpense += cf.getValueTotalPayment(); } return (totalRevenue - totalExpense); }
/** * Gets the last value total. * * @return the last value total */
Gets the last value total
getLastValueTotal
{ "repo_name": "uaijug/chronos", "path": "src/main/java/br/com/uaijug/chronos/institution/cashFlow/controller/CashFlowController.java", "license": "gpl-3.0", "size": 10488 }
[ "br.com.uaijug.chronos.institution.cashFlow.model.CashFlow" ]
import br.com.uaijug.chronos.institution.cashFlow.model.CashFlow;
import br.com.uaijug.chronos.institution.*;
[ "br.com.uaijug" ]
br.com.uaijug;
1,691,445
public void setResultsSeenExperiments(ContextualSearchHeuristics resultsSeenExperiments) { mResultsSeenExperiments = resultsSeenExperiments; }
void function(ContextualSearchHeuristics resultsSeenExperiments) { mResultsSeenExperiments = resultsSeenExperiments; }
/** * Sets the experiments to log with results seen. * @param resultsSeenExperiments The experiments to log when the panel results are known. */
Sets the experiments to log with results seen
setResultsSeenExperiments
{ "repo_name": "axinging/chromium-crosswalk", "path": "chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelMetrics.java", "license": "bsd-3-clause", "size": 14736 }
[ "org.chromium.chrome.browser.contextualsearch.ContextualSearchHeuristics" ]
import org.chromium.chrome.browser.contextualsearch.ContextualSearchHeuristics;
import org.chromium.chrome.browser.contextualsearch.*;
[ "org.chromium.chrome" ]
org.chromium.chrome;
1,102,429
@ServiceMethod(returns = ReturnType.SINGLE) public VirtualMachineAssessPatchesResultInner assessPatches(String resourceGroupName, String vmName) { return assessPatchesAsync(resourceGroupName, vmName).block(); }
@ServiceMethod(returns = ReturnType.SINGLE) VirtualMachineAssessPatchesResultInner function(String resourceGroupName, String vmName) { return assessPatchesAsync(resourceGroupName, vmName).block(); }
/** * Assess patches on the VM. * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ApiErrorException thrown if the request is rejected by server...
Assess patches on the VM
assessPatches
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java", "license": "mit", "size": 333925 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.compute.fluent.models.VirtualMachineAssessPatchesResultInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.compute.fluent.models.VirtualMachineAssessPatchesResultInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.compute.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
902,749
// begin F173152, D179183 protected byte getNextRequestNumber() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getNextRequestNumber"); byte retValue; synchronized(requestNumberLock) // D179183 { ...
byte function() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, STR); byte retValue; synchronized(requestNumberLock) { retValue = nextRequestNumber++; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, STR, ""+retValue); return retValue; }
/** * Returns the next request numbet to use as part of the next transmission * flowed outbound on this connection. */
Returns the next request numbet to use as part of the next transmission flowed outbound on this connection
getNextRequestNumber
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/Connection.java", "license": "epl-1.0", "size": 71000 }
[ "com.ibm.websphere.ras.TraceComponent", "com.ibm.ws.sib.utils.ras.SibTr" ]
import com.ibm.websphere.ras.TraceComponent; import com.ibm.ws.sib.utils.ras.SibTr;
import com.ibm.websphere.ras.*; import com.ibm.ws.sib.utils.ras.*;
[ "com.ibm.websphere", "com.ibm.ws" ]
com.ibm.websphere; com.ibm.ws;
2,728,119
public JsonNode createEvaluationMessage(Evaluation evaluation) { return mapper.valueToTree(evaluation); }
JsonNode function(Evaluation evaluation) { return mapper.valueToTree(evaluation); }
/** * Message about result of evaluation. */
Message about result of evaluation
createEvaluationMessage
{ "repo_name": "FauDroids/FlippyPairs", "path": "app/src/main/java/org/faudroids/distributedmemory/core/MessageWriter.java", "license": "apache-2.0", "size": 1365 }
[ "com.fasterxml.jackson.databind.JsonNode" ]
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
2,374,002
public static Connection getTestDBInstance() throws MetaStoreException { // TODO remove today String srcdir = System.getProperty("srcdir", System.getProperty("user.dir") + "/src/main/resources"); String srcPath = srcdir + "/data-schema.db"; String destPath = getUniqueDBFilePath(); co...
static Connection function() throws MetaStoreException { String srcdir = System.getProperty(STR, System.getProperty(STR) + STR); String srcPath = srcdir + STR; String destPath = getUniqueDBFilePath(); copyFile(srcPath, destPath); Connection conn = MetaStoreUtils.createSqliteConnection(destPath); return conn; }
/** * Get a connect to the testing database. A new physical database * file for each call. * * @return */
Get a connect to the testing database. A new physical database file for each call
getTestDBInstance
{ "repo_name": "AlienYvonne/SSM", "path": "smart-metastore/src/main/java/org/smartdata/metastore/utils/TestDBUtil.java", "license": "apache-2.0", "size": 4464 }
[ "java.sql.Connection", "org.smartdata.metastore.MetaStoreException" ]
import java.sql.Connection; import org.smartdata.metastore.MetaStoreException;
import java.sql.*; import org.smartdata.metastore.*;
[ "java.sql", "org.smartdata.metastore" ]
java.sql; org.smartdata.metastore;
2,697,643
public Timestamp getCreated(); public static final String COLUMNNAME_CreatedBy = "CreatedBy";
Timestamp function(); public static final String COLUMNNAME_CreatedBy = STR;
/** Get Created. * Date this record was created */
Get Created. Date this record was created
getCreated
{ "repo_name": "geneos/adempiere", "path": "base/src/org/compiere/model/I_S_ResourceUnAvailable.java", "license": "gpl-2.0", "size": 5157 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,993,641
public int fill(ByteBuffer bb, long genTime) { int apid=bb.getShort(0)&0x07FF; int seqCount=getSeqCount(apid); int seqFlags=bb.getShort(2)>>>14; bb.putShort(2,(short)((seqFlags<<14)|seqCount)); GpsCcsdsTime gpsTime = TimeEncoding.toGpsTime(genTime); bb.putInt(6, gpsTime.coarseTime); bb.put(10, gpsTi...
int function(ByteBuffer bb, long genTime) { int apid=bb.getShort(0)&0x07FF; int seqCount=getSeqCount(apid); int seqFlags=bb.getShort(2)>>>14; bb.putShort(2,(short)((seqFlags<<14) seqCount)); GpsCcsdsTime gpsTime = TimeEncoding.toGpsTime(genTime); bb.putInt(6, gpsTime.coarseTime); bb.put(10, gpsTime.fineTime); int check...
/** * generates a sequence count and fills it in plus the checksum and the generation time * returns the generated sequence count * @param bb * @param genTime */
generates a sequence count and fills it in plus the checksum and the generation time returns the generated sequence count
fill
{ "repo_name": "bitblit11/yamcs", "path": "yamcs-core/src/main/java/org/yamcs/tctm/CcsdsSeqAndChecksumFiller.java", "license": "agpl-3.0", "size": 1385 }
[ "java.nio.ByteBuffer", "org.yamcs.utils.GpsCcsdsTime", "org.yamcs.utils.TimeEncoding" ]
import java.nio.ByteBuffer; import org.yamcs.utils.GpsCcsdsTime; import org.yamcs.utils.TimeEncoding;
import java.nio.*; import org.yamcs.utils.*;
[ "java.nio", "org.yamcs.utils" ]
java.nio; org.yamcs.utils;
447,945
public static TagNameAndComment doDialog(Window owner) { GetTagNameAndCommentDialog dialog = new GetTagNameAndCommentDialog(owner); dialog.display(); return dialog.getTagNameAndComment(); }
static TagNameAndComment function(Window owner) { GetTagNameAndCommentDialog dialog = new GetTagNameAndCommentDialog(owner); dialog.display(); return dialog.getTagNameAndComment(); }
/** * Show the Tag Name and Comment Dialog and return the TagNameAndContent * chosen by the user. * * @param owner the window that will be the owner of the dialog. The dialog * will be centered over this window and will block the rest of * the application. * ...
Show the Tag Name and Comment Dialog and return the TagNameAndContent chosen by the user
doDialog
{ "repo_name": "millmanorama/autopsy", "path": "Core/src/org/sleuthkit/autopsy/actions/GetTagNameAndCommentDialog.java", "license": "apache-2.0", "size": 15254 }
[ "java.awt.Window" ]
import java.awt.Window;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,526,058
public WindowsParameters withMaxPatchPublishDate(OffsetDateTime maxPatchPublishDate) { this.maxPatchPublishDate = maxPatchPublishDate; return this; }
WindowsParameters function(OffsetDateTime maxPatchPublishDate) { this.maxPatchPublishDate = maxPatchPublishDate; return this; }
/** * Set the maxPatchPublishDate property: This is used to install patches that were published on or before this given * max published date. * * @param maxPatchPublishDate the maxPatchPublishDate value to set. * @return the WindowsParameters object itself. */
Set the maxPatchPublishDate property: This is used to install patches that were published on or before this given max published date
withMaxPatchPublishDate
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/WindowsParameters.java", "license": "mit", "size": 5443 }
[ "java.time.OffsetDateTime" ]
import java.time.OffsetDateTime;
import java.time.*;
[ "java.time" ]
java.time;
296,935
public int code() throws HttpRequestException { try { closeOutput(); return getConnection().getResponseCode(); } catch (IOException e) { throw new HttpRequestException(e); } }
int function() throws HttpRequestException { try { closeOutput(); return getConnection().getResponseCode(); } catch (IOException e) { throw new HttpRequestException(e); } }
/** * Get the status code of the response * * @return the response code * @throws HttpRequestException */
Get the status code of the response
code
{ "repo_name": "manuelblanch/imatge", "path": "src/com/iesebre/DAM2/imatge/HttpRequest.java", "license": "apache-2.0", "size": 86543 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,094,302
private int getStructureLineNo( StructureHandle structHandle ) { IStructure struct = structHandle.getStructure( ); if ( struct instanceof EmbeddedImage ) { return intValue( embeddedImageStructMap.get( ( (EmbeddedImage) struct ).getName( ) ) ); } else if ( struct instanceof IncludedCssStyleSheet ) { ...
int function( StructureHandle structHandle ) { IStructure struct = structHandle.getStructure( ); if ( struct instanceof EmbeddedImage ) { return intValue( embeddedImageStructMap.get( ( (EmbeddedImage) struct ).getName( ) ) ); } else if ( struct instanceof IncludedCssStyleSheet ) { return intValue( includedCssStyleSheet...
/** * Gets the line number for the given structure. * * @param structHandle * the handle of the structure * @return the line number */
Gets the line number for the given structure
getStructureLineNo
{ "repo_name": "rrimmana/birt-1", "path": "model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/LineNumberInfo.java", "license": "epl-1.0", "size": 10473 }
[ "org.eclipse.birt.report.model.api.StructureHandle", "org.eclipse.birt.report.model.api.core.IStructure", "org.eclipse.birt.report.model.api.elements.structures.EmbeddedImage", "org.eclipse.birt.report.model.api.elements.structures.IncludedCssStyleSheet", "org.eclipse.birt.report.model.api.elements.structur...
import org.eclipse.birt.report.model.api.StructureHandle; import org.eclipse.birt.report.model.api.core.IStructure; import org.eclipse.birt.report.model.api.elements.structures.EmbeddedImage; import org.eclipse.birt.report.model.api.elements.structures.IncludedCssStyleSheet; import org.eclipse.birt.report.model.api.ele...
import org.eclipse.birt.report.model.api.*; import org.eclipse.birt.report.model.api.core.*; import org.eclipse.birt.report.model.api.elements.structures.*;
[ "org.eclipse.birt" ]
org.eclipse.birt;
1,364,317
public LogRecord getLogRecord() { JsonObject obj = (JsonObject) json.get("logRecord"); if (obj == null) return null; final String type = json.get("type").getAsString(); if ("Instance".equals(type) || "@Instance".equals(type)) { final String kind = json.get("kind").getAsString(); if ("Null"...
LogRecord function() { JsonObject obj = (JsonObject) json.get(STR); if (obj == null) return null; final String type = json.get("type").getAsString(); if (STR.equals(type) STR.equals(type)) { final String kind = json.get("kind").getAsString(); if ("Null".equals(kind)) return null; } return new LogRecord(obj); }
/** * LogRecord data. * * This is provided for the Logging event. * * Can return <code>null</code>. */
LogRecord data. This is provided for the Logging event. Can return <code>null</code>
getLogRecord
{ "repo_name": "dart-archive/vm_service_drivers", "path": "java/src/org/dartlang/vm/service/element/Event.java", "license": "bsd-3-clause", "size": 9926 }
[ "com.google.gson.JsonObject" ]
import com.google.gson.JsonObject;
import com.google.gson.*;
[ "com.google.gson" ]
com.google.gson;
1,602,588
private void postCallback(final Command fCommand, final int fExitCode, final List<String> fOutput) { if (fCommand.onCommandResultListener == null && fCommand.onCommandLineListener == null) { return; } if (handler == null) { if (...
void function(final Command fCommand, final int fExitCode, final List<String> fOutput) { if (fCommand.onCommandResultListener == null && fCommand.onCommandLineListener == null) { return; } if (handler == null) { if ((fCommand.onCommandResultListener != null) && (fOutput != null)) fCommand.onCommandResultListener.onComm...
/** * Schedule a callback to run on the appropriate thread */
Schedule a callback to run on the appropriate thread
postCallback
{ "repo_name": "aravindsagar/EasyLock", "path": "libsuperuser/src/eu/chainfire/libsuperuser/Shell.java", "license": "apache-2.0", "size": 66888 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,862,043
protected boolean doSafePollSubDirectory(String absolutePath, String dirName, List<GenericFile<T>> fileList, int depth) { try { log.trace("Polling sub directory: {} from: {}", absolutePath, endpoint); //Try to poll the directory return doPollDirectory(absolutePath, dirNam...
boolean function(String absolutePath, String dirName, List<GenericFile<T>> fileList, int depth) { try { log.trace(STR, absolutePath, endpoint); return doPollDirectory(absolutePath, dirName, fileList, depth); } catch (Exception e) { log.debug(STR, e.getMessage()); if (ignoreCannotRetrieveFile(absolutePath, null, e)) { l...
/** * Executes doPollDirectory and on exception checks if it can be ignored by calling ignoreCannotRetrieveFile. * * @param absolutePath the path of the directory to poll * @param dirName the name of the directory to poll * @param fileList current list of files gathered * @para...
Executes doPollDirectory and on exception checks if it can be ignored by calling ignoreCannotRetrieveFile
doSafePollSubDirectory
{ "repo_name": "rmarting/camel", "path": "components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConsumer.java", "license": "apache-2.0", "size": 11652 }
[ "java.util.List", "org.apache.camel.component.file.GenericFile", "org.apache.camel.component.file.GenericFileOperationFailedException" ]
import java.util.List; import org.apache.camel.component.file.GenericFile; import org.apache.camel.component.file.GenericFileOperationFailedException;
import java.util.*; import org.apache.camel.component.file.*;
[ "java.util", "org.apache.camel" ]
java.util; org.apache.camel;
1,222,023
public boolean hasDate() { int[] innards = getInnardsNoClone(); boolean hasDate=(innards[1]!=0 && innards[1]!=NotesConstants.ANYDAY); return hasDate; }
boolean function() { int[] innards = getInnardsNoClone(); boolean hasDate=(innards[1]!=0 && innards[1]!=NotesConstants.ANYDAY); return hasDate; }
/** * Checks whether the timedate has a date portion * * @return true if date part exists */
Checks whether the timedate has a date portion
hasDate
{ "repo_name": "klehmann/domino-jna", "path": "domino-jna/src/main/java/com/mindoo/domino/jna/NotesTimeDate.java", "license": "apache-2.0", "size": 30999 }
[ "com.mindoo.domino.jna.internal.NotesConstants" ]
import com.mindoo.domino.jna.internal.NotesConstants;
import com.mindoo.domino.jna.internal.*;
[ "com.mindoo.domino" ]
com.mindoo.domino;
629,161
public void setSecondaryButtonHoverColor(String color) throws HelloSignException { setColor(WHITE_LABELING_OPTIONS_SECONDARY_BUTTON_COLOR_HOVER, color); }
void function(String color) throws HelloSignException { setColor(WHITE_LABELING_OPTIONS_SECONDARY_BUTTON_COLOR_HOVER, color); }
/** * Set the signer page secondary button hover color. * * @param color String hex color code * @throws HelloSignException thrown if the color string is an invalid hex string */
Set the signer page secondary button hover color
setSecondaryButtonHoverColor
{ "repo_name": "HelloFax/hellosign-java-sdk", "path": "src/main/java/com/hellosign/sdk/resource/support/WhiteLabelingOptions.java", "license": "mit", "size": 11265 }
[ "com.hellosign.sdk.HelloSignException" ]
import com.hellosign.sdk.HelloSignException;
import com.hellosign.sdk.*;
[ "com.hellosign.sdk" ]
com.hellosign.sdk;
2,898,971
@Override public void enterAnnotations(@NotNull Java7Parser.AnnotationsContext ctx) { }
@Override public void enterAnnotations(@NotNull Java7Parser.AnnotationsContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitLambdaBody
{ "repo_name": "jsteenbeeke/antlr-java-parser", "path": "src/main/java/com/github/antlrjavaparser/Java7ParserBaseListener.java", "license": "lgpl-3.0", "size": 53492 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,899,333
public String getIssuer() throws GuacamoleException { return environment.getProperty(TOTP_ISSUER, "Apache Guacamole"); }
String function() throws GuacamoleException { return environment.getProperty(TOTP_ISSUER, STR); }
/** * Returns the human-readable name of the entity issuing user accounts. If * not specified, "Apache Guacamole" will be used by default. * * @return * The human-readable name of the entity issuing user accounts. * * @throws GuacamoleException * If the "totp-issuer" prop...
Returns the human-readable name of the entity issuing user accounts. If not specified, "Apache Guacamole" will be used by default
getIssuer
{ "repo_name": "mike-jumper/incubator-guacamole-client", "path": "extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/conf/ConfigurationService.java", "license": "apache-2.0", "size": 5319 }
[ "org.apache.guacamole.GuacamoleException" ]
import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.*;
[ "org.apache.guacamole" ]
org.apache.guacamole;
550,754
private void doConnectionSetupLocked() { TraceEvent.begin(); assert mServiceConnectComplete && mService != null; assert mConnectionParams != null; Bundle bundle = new Bundle(); bundle.putStringArray(EXTRA_COMMAND_LINE, mConnectionParams.mCommandLine); FileDescriptor...
void function() { TraceEvent.begin(); assert mServiceConnectComplete && mService != null; assert mConnectionParams != null; Bundle bundle = new Bundle(); bundle.putStringArray(EXTRA_COMMAND_LINE, mConnectionParams.mCommandLine); FileDescriptorInfo[] fileInfos = mConnectionParams.mFilesToBeMapped; ParcelFileDescriptor[]...
/** * Called after the connection parameters have been set (in setupConnection()) *and* a * connection has been established (as signaled by onServiceConnected()). These two events can * happen in any order. Has to be called with mLock. */
Called after the connection parameters have been set (in setupConnection()) *and* a connection has been established (as signaled by onServiceConnected()). These two events can happen in any order. Has to be called with mLock
doConnectionSetupLocked
{ "repo_name": "boundarydevices/android_external_chromium_org", "path": "content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java", "license": "bsd-3-clause", "size": 16925 }
[ "android.os.Bundle", "android.os.ParcelFileDescriptor", "android.os.RemoteException", "android.util.Log", "java.io.IOException", "org.chromium.base.CpuFeatures", "org.chromium.base.TraceEvent", "org.chromium.base.library_loader.Linker" ]
import android.os.Bundle; import android.os.ParcelFileDescriptor; import android.os.RemoteException; import android.util.Log; import java.io.IOException; import org.chromium.base.CpuFeatures; import org.chromium.base.TraceEvent; import org.chromium.base.library_loader.Linker;
import android.os.*; import android.util.*; import java.io.*; import org.chromium.base.*; import org.chromium.base.library_loader.*;
[ "android.os", "android.util", "java.io", "org.chromium.base" ]
android.os; android.util; java.io; org.chromium.base;
1,506,538
public void resize(int width, int height) { mWidth = width; mHeight = height; updateCamera(); // Resize the viewport to match the screen size. for (RenderBlock block : mRenderBlocks) { block.setViewport(0, 0, mWidth, mHeight); } }
void function(int width, int height) { mWidth = width; mHeight = height; updateCamera(); for (RenderBlock block : mRenderBlocks) { block.setViewport(0, 0, mWidth, mHeight); } }
/** * Sets the object size with new value. * Typically part of the response to an onSurfaceChanged() * * @param width in pixels * @param height in pixels */
Sets the object size with new value. Typically part of the response to an onSurfaceChanged()
resize
{ "repo_name": "rex-xxx/mt6572_x201", "path": "mediatek/frameworks/opt/ngin3d/java/com/mediatek/ngin3d/j3m/J3mPresentationEngine.java", "license": "gpl-2.0", "size": 35187 }
[ "com.mediatek.j3m.RenderBlock" ]
import com.mediatek.j3m.RenderBlock;
import com.mediatek.j3m.*;
[ "com.mediatek.j3m" ]
com.mediatek.j3m;
1,394,804
private javax.swing.JPanel getPanelCommand() { if (panelCommand == null) { panelCommand = new javax.swing.JPanel(); panelCommand.setLayout(new java.awt.GridBagLayout()); panelCommand.setName(prefix + ".panel"); GridBagConstraints gridBagConstraints1 = new GridBagConstraints(); GridBagCo...
javax.swing.JPanel function() { if (panelCommand == null) { panelCommand = new javax.swing.JPanel(); panelCommand.setLayout(new java.awt.GridBagLayout()); panelCommand.setName(prefix + STR); GridBagConstraints gridBagConstraints1 = new GridBagConstraints(); GridBagConstraints gridBagConstraints2 = new GridBagConstraint...
/** * This method initializes panelCommand * * @return javax.swing.JPanel */
This method initializes panelCommand
getPanelCommand
{ "repo_name": "gsavastano/zaproxy", "path": "src/org/zaproxy/zap/view/ScanPanel2.java", "license": "apache-2.0", "size": 22831 }
[ "java.awt.GridBagConstraints", "java.awt.GridBagLayout", "java.awt.Insets", "javax.swing.JPanel" ]
import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.JPanel;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
462,277
@Override public Object deserialize(Writable result) throws SerDeException { if (!(result instanceof ResultWritable)) { throw new SerDeException(getClass().getName() + ": expects ResultWritable!"); } cachedHBaseRow.init(((ResultWritable) result).getResult()); return cachedHBaseRow; }
Object function(Writable result) throws SerDeException { if (!(result instanceof ResultWritable)) { throw new SerDeException(getClass().getName() + STR); } cachedHBaseRow.init(((ResultWritable) result).getResult()); return cachedHBaseRow; }
/** * Deserialize a row from the HBase Result writable to a LazyObject * @param result the HBase Result Writable containing the row * @return the deserialized object * @see AbstractSerDe#deserialize(Writable) */
Deserialize a row from the HBase Result writable to a LazyObject
deserialize
{ "repo_name": "sankarh/hive", "path": "hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java", "license": "apache-2.0", "size": 12580 }
[ "org.apache.hadoop.hive.serde2.SerDeException", "org.apache.hadoop.io.Writable" ]
import org.apache.hadoop.hive.serde2.SerDeException; import org.apache.hadoop.io.Writable;
import org.apache.hadoop.hive.serde2.*; import org.apache.hadoop.io.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,581,574
Document createDocument(String ns, String root, String uri, Reader r) throws IOException;
Document createDocument(String ns, String root, String uri, Reader r) throws IOException;
/** * Creates a Document instance. * @param ns The namespace URI of the root element of the document. * @param root The name of the root element of the document. * @param uri The document URI. * @param r The document reader. * @exception IOException if an error occured while reading the do...
Creates a Document instance
createDocument
{ "repo_name": "Squeegee/batik", "path": "sources/org/apache/batik/dom/util/DocumentFactory.java", "license": "apache-2.0", "size": 3515 }
[ "java.io.IOException", "java.io.Reader", "org.w3c.dom.Document" ]
import java.io.IOException; import java.io.Reader; import org.w3c.dom.Document;
import java.io.*; import org.w3c.dom.*;
[ "java.io", "org.w3c.dom" ]
java.io; org.w3c.dom;
763,178
public void evictDetailMetrics() { if (detailMetricsSz > 0) { int sz = detailMetrics.size(); if (sz > detailMetricsSz) { // Limit number of metrics to evict in order make eviction time predictable. int evictCnt = Math.min(QRY_DETAIL_METRICS_EVICTION_L...
void function() { if (detailMetricsSz > 0) { int sz = detailMetrics.size(); if (sz > detailMetricsSz) { int evictCnt = Math.min(QRY_DETAIL_METRICS_EVICTION_LIMIT, sz - detailMetricsSz); Queue<GridCacheQueryDetailMetricsAdapter> metricsToEvict = new GridBoundedPriorityQueue<>(evictCnt, QRY_DETAIL_METRICS_PRIORITY_OLD_CM...
/** * Evict detail metrics. */
Evict detail metrics
evictDetailMetrics
{ "repo_name": "chandresh-pancholi/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryManager.java", "license": "apache-2.0", "size": 113417 }
[ "java.util.Queue", "org.apache.ignite.internal.util.GridBoundedPriorityQueue" ]
import java.util.Queue; import org.apache.ignite.internal.util.GridBoundedPriorityQueue;
import java.util.*; import org.apache.ignite.internal.util.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
1,187,722
public void saveCoverage(List<File> resultPaths) { if(resultPaths.size() == coverageCreators.size()) for(int i = 0; i < coverageCreators.size(); i++) { CoverageCreator coverageCreator = coverageCreators.get(i); coverageCreator.save(resultPaths.get(i)); } else { throw new IllegalArgumentExceptio...
void function(List<File> resultPaths) { if(resultPaths.size() == coverageCreators.size()) for(int i = 0; i < coverageCreators.size(); i++) { CoverageCreator coverageCreator = coverageCreators.get(i); coverageCreator.save(resultPaths.get(i)); } else { throw new IllegalArgumentException(STR); } }
/** * Saves the coverage information * * @param resultPath The path where the converage information will be saved */
Saves the coverage information
saveCoverage
{ "repo_name": "MDDLingo/xis-bigdata", "path": "fr.inria.atlanmod.json.discoverer/src/fr/inria/atlanmod/discoverer/JsonMultiDiscoverer.java", "license": "mit", "size": 21058 }
[ "fr.inria.atlanmod.json.discoverer.coverage.util.CoverageCreator", "java.io.File", "java.util.List" ]
import fr.inria.atlanmod.json.discoverer.coverage.util.CoverageCreator; import java.io.File; import java.util.List;
import fr.inria.atlanmod.json.discoverer.coverage.util.*; import java.io.*; import java.util.*;
[ "fr.inria.atlanmod", "java.io", "java.util" ]
fr.inria.atlanmod; java.io; java.util;
2,014,350
@Override public String getText(Object object) { final SlicedProperty slicedProperty = (SlicedProperty)object; final EStructuralFeature domain = slicedProperty.getDomain(); return getString("_UI_SlicedProperty_type") + (domain==null ? "" : " " + (domain.getEContainingClass()==null ? "?":domain.getECo...
String function(Object object) { final SlicedProperty slicedProperty = (SlicedProperty)object; final EStructuralFeature domain = slicedProperty.getDomain(); return getString(STR) + (domain==null ? STR STR?STR -> " + domain.getName()); }
/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> */
This returns the label text for the adapted class.
getText
{ "repo_name": "arnobl/kompren", "path": "kompren-editor/fr.inria.diverse.kompren.model.edit/src/kompren/provider/SlicedPropertyItemProvider.java", "license": "epl-1.0", "size": 5698 }
[ "org.eclipse.emf.ecore.EStructuralFeature" ]
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,568,095
@WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201508") @RequestWrapper(localName = "updatePremiumRates", targetNamespace = "https://www.google.com/apis/ads/publisher/v201508", className = "com.google.api.ads.dfp.jaxws.v201508.PremiumRateServiceInterfaceup...
@WebResult(name = "rval", targetNamespace = STRupdatePremiumRatesSTRhttps: @ResponseWrapper(localName = "updatePremiumRatesResponseSTRhttps: List<PremiumRate> function( @WebParam(name = "premiumRatesSTRhttps: List<PremiumRate> premiumRates) throws ApiException_Exception ;
/** * * Updates the specified {@link PremiumRate} objects. * * @param premiumRates the premium rates to be updated * @return the updated premium rates * * * @param premiumRates * @return * returns java.util.List<com.google.a...
Updates the specified <code>PremiumRate</code> objects
updatePremiumRates
{ "repo_name": "shyTNT/googleads-java-lib", "path": "modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201508/PremiumRateServiceInterface.java", "license": "apache-2.0", "size": 5572 }
[ "java.util.List", "javax.jws.WebParam", "javax.jws.WebResult", "javax.xml.ws.ResponseWrapper" ]
import java.util.List; import javax.jws.WebParam; import javax.jws.WebResult; import javax.xml.ws.ResponseWrapper;
import java.util.*; import javax.jws.*; import javax.xml.ws.*;
[ "java.util", "javax.jws", "javax.xml" ]
java.util; javax.jws; javax.xml;
1,081,027
@Override public boolean getScrollableTracksViewportHeight() { Component parent = getParent(); return parent instanceof JViewport ? parent.getHeight()>getPreferredSize().height : false; }
boolean function() { Component parent = getParent(); return parent instanceof JViewport ? parent.getHeight()>getPreferredSize().height : false; }
/** * Overridden to ensure the table completely fills the JViewport it * is sitting in. Note in Java 6 this could be taken care of by the * method JTable#setFillsViewportHeight(boolean). * 1.6: Remove this and replace it with the method call. */
Overridden to ensure the table completely fills the JViewport it is sitting in. Note in Java 6 this could be taken care of by the method JTable#setFillsViewportHeight(boolean). 1.6: Remove this and replace it with the method call
getScrollableTracksViewportHeight
{ "repo_name": "bobbylight/ZScriptLanguageSupport", "path": "zscript-lang-support-demo/src/main/java/org/fife/rsta/zscript/demo/ErrorTable.java", "license": "bsd-3-clause", "size": 4502 }
[ "java.awt.Component", "javax.swing.JViewport" ]
import java.awt.Component; import javax.swing.JViewport;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
674,209
public void removePublicKey(Object principal, PublicKey publicKey) { accountsLock.writeLock().lock(); // start with a write lock, because we cannot upgrade the lock (only // down-grade) try { if (hasAccount(principal)) { accounts.get(principal).remove(publicKey); } else { ...
void function(Object principal, PublicKey publicKey) { accountsLock.writeLock().lock(); try { if (hasAccount(principal)) { accounts.get(principal).remove(publicKey); } else { } } finally { accountsLock.writeLock().unlock(); } }
/** * Removes a {@code PublicKey} from the specified account. * * @param principal which account to remove the publicKey from * @param publicKey the ssh public key */
Removes a PublicKey from the specified account
removePublicKey
{ "repo_name": "scmod/nexus-public", "path": "components/nexus-security-realms/src/main/java/org/sonatype/security/realms/publickey/SimplePublicKeyRepository.java", "license": "epl-1.0", "size": 3899 }
[ "java.security.PublicKey" ]
import java.security.PublicKey;
import java.security.*;
[ "java.security" ]
java.security;
675,315
public void testAnonymousInnerClassInsideMethodCallees() throws Exception { //regression test for bug 56732 call hierarchy: Call Hierarchy doesn't show callees of method from anonymous type helper.createAnonymousInnerClassInsideMethod(); IMethod methodM= helper.getType1().getMethod("m", EMP...
void function() throws Exception { helper.createAnonymousInnerClassInsideMethod(); IMethod methodM= helper.getType1().getMethod("m", EMPTY); MethodWrapper wrapper= getSingleCalleeRoot(methodM); MethodWrapper[] callers= wrapper.getCalls(new NullProgressMonitor()); assertRecursive(callers, false); assertEquals(STR, 3, ca...
/** * Tests calls that origin from an inner class * @throws Exception */
Tests calls that origin from an inner class
testAnonymousInnerClassInsideMethodCallees
{ "repo_name": "maxeler/eclipse", "path": "eclipse.jdt.ui/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/CallHierarchyTest.java", "license": "epl-1.0", "size": 18650 }
[ "org.eclipse.core.runtime.NullProgressMonitor", "org.eclipse.jdt.core.IMethod", "org.eclipse.jdt.internal.corext.callhierarchy.MethodWrapper" ]
import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.internal.corext.callhierarchy.MethodWrapper;
import org.eclipse.core.runtime.*; import org.eclipse.jdt.core.*; import org.eclipse.jdt.internal.corext.callhierarchy.*;
[ "org.eclipse.core", "org.eclipse.jdt" ]
org.eclipse.core; org.eclipse.jdt;
1,060,457
@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class) public DraftItemValuesEntity insert(Integer user, DraftItemValuesEntity entity) { entity.setInsertUser(user); entity.setInsertDatetime(new Timestamp(DateUtils.now().getTime())); entity.setUpdateUser(user); ...
@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class) DraftItemValuesEntity function(Integer user, DraftItemValuesEntity entity) { entity.setInsertUser(user); entity.setInsertDatetime(new Timestamp(DateUtils.now().getTime())); entity.setUpdateUser(user); entity.setUpdateDatetime(new Timestamp(Da...
/** * Insert. * set saved user id. * @param user saved userid * @param entity entity * @return saved entity */
Insert. set saved user id
insert
{ "repo_name": "support-project/knowledge", "path": "src/main/java/org/support/project/knowledge/dao/gen/GenDraftItemValuesDao.java", "license": "apache-2.0", "size": 20888 }
[ "java.sql.Timestamp", "org.support.project.aop.Aspect", "org.support.project.common.util.DateUtils", "org.support.project.knowledge.entity.DraftItemValuesEntity" ]
import java.sql.Timestamp; import org.support.project.aop.Aspect; import org.support.project.common.util.DateUtils; import org.support.project.knowledge.entity.DraftItemValuesEntity;
import java.sql.*; import org.support.project.aop.*; import org.support.project.common.util.*; import org.support.project.knowledge.entity.*;
[ "java.sql", "org.support.project" ]
java.sql; org.support.project;
1,947,931
public Collection<String> getUsersSharingBag(String bagName) { HttpSession session = WebContextFactory.get().getSession(); final InterMineAPI im = SessionMethods.getInterMineAPI(session); Profile profile = SessionMethods.getProfile(session); BagManager bagManager = im.getBagManager()...
Collection<String> function(String bagName) { HttpSession session = WebContextFactory.get().getSession(); final InterMineAPI im = SessionMethods.getInterMineAPI(session); Profile profile = SessionMethods.getProfile(session); BagManager bagManager = im.getBagManager(); return bagManager.getUsersSharingBag(bagName, profi...
/** * Return the list of users who have access to this bag because it has been * shared with them. * * @param bagName the bag name that the users share * @return the list of users */
Return the list of users who have access to this bag because it has been shared with them
getUsersSharingBag
{ "repo_name": "julie-sullivan/phytomine", "path": "intermine/web/main/src/org/intermine/dwr/AjaxServices.java", "license": "lgpl-2.1", "size": 63770 }
[ "java.util.Collection", "javax.servlet.http.HttpSession", "org.directwebremoting.WebContextFactory", "org.intermine.api.InterMineAPI", "org.intermine.api.bag.BagManager", "org.intermine.api.profile.Profile", "org.intermine.web.logic.session.SessionMethods" ]
import java.util.Collection; import javax.servlet.http.HttpSession; import org.directwebremoting.WebContextFactory; import org.intermine.api.InterMineAPI; import org.intermine.api.bag.BagManager; import org.intermine.api.profile.Profile; import org.intermine.web.logic.session.SessionMethods;
import java.util.*; import javax.servlet.http.*; import org.directwebremoting.*; import org.intermine.api.*; import org.intermine.api.bag.*; import org.intermine.api.profile.*; import org.intermine.web.logic.session.*;
[ "java.util", "javax.servlet", "org.directwebremoting", "org.intermine.api", "org.intermine.web" ]
java.util; javax.servlet; org.directwebremoting; org.intermine.api; org.intermine.web;
2,101,311
Logger logger = LoggerFactory.getLogger(RuleContextHelper.class); RuleModel ruleModel = (RuleModel) rule.eContainer(); // check if a context already exists on the resource for (Adapter adapter : ruleModel.eAdapters()) { if (adapter instanceof RuleContextAdapter) { re...
Logger logger = LoggerFactory.getLogger(RuleContextHelper.class); RuleModel ruleModel = (RuleModel) rule.eContainer(); for (Adapter adapter : ruleModel.eAdapters()) { if (adapter instanceof RuleContextAdapter) { return ((RuleContextAdapter) adapter).getContext(); } } Provider<IEvaluationContext> contextProvider = injec...
/** * Retrieves the evaluation context (= set of variables) for a rule. The context is shared with all rules in the * same model (= rule file). * * @param rule the rule to get the context for * @return the evaluation context */
Retrieves the evaluation context (= set of variables) for a rule. The context is shared with all rules in the same model (= rule file)
getContext
{ "repo_name": "WetwareLabs/smarthome", "path": "bundles/model/org.eclipse.smarthome.model.rule.runtime/src/org/eclipse/smarthome/model/rule/runtime/internal/engine/RuleContextHelper.java", "license": "epl-1.0", "size": 3942 }
[ "com.google.inject.Provider", "org.eclipse.emf.common.notify.Adapter", "org.eclipse.emf.ecore.util.EContentAdapter", "org.eclipse.smarthome.core.scriptengine.ScriptEngine", "org.eclipse.smarthome.core.scriptengine.ScriptExecutionException", "org.eclipse.smarthome.model.rule.rules.RuleModel", "org.eclips...
import com.google.inject.Provider; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.ecore.util.EContentAdapter; import org.eclipse.smarthome.core.scriptengine.ScriptEngine; import org.eclipse.smarthome.core.scriptengine.ScriptExecutionException; import org.eclipse.smarthome.model.rule.rules.RuleMode...
import com.google.inject.*; import org.eclipse.emf.common.notify.*; import org.eclipse.emf.ecore.util.*; import org.eclipse.smarthome.core.scriptengine.*; import org.eclipse.smarthome.model.rule.rules.*; import org.eclipse.smarthome.model.rule.runtime.internal.*; import org.eclipse.xtext.naming.*; import org.eclipse.xt...
[ "com.google.inject", "org.eclipse.emf", "org.eclipse.smarthome", "org.eclipse.xtext", "org.slf4j" ]
com.google.inject; org.eclipse.emf; org.eclipse.smarthome; org.eclipse.xtext; org.slf4j;
1,553,828
public void layoutContainer(Container parent) { //debug ("layoutContainer ()"); checkLayout(getModel()); Insets insets = parent.getInsets(); Dimension size = parent.getSize(); int width = size.width - (insets.left + insets.right); int height = size.height - (insets.top...
void function(Container parent) { checkLayout(getModel()); Insets insets = parent.getInsets(); Dimension size = parent.getSize(); int width = size.width - (insets.left + insets.right); int height = size.height - (insets.top + insets.bottom); Rectangle bounds = new Rectangle(insets.left, insets.top, width, height); layo...
/** * Compute the bounds of all of the Split/Divider/Leaf HoopMultiSplitNodes in * the layout model, and then set the bounds of each child component * with a matching Leaf HoopMultiSplitNode. */
Compute the bounds of all of the Split/Divider/Leaf HoopMultiSplitNodes in the layout model, and then set the bounds of each child component with a matching Leaf HoopMultiSplitNode
layoutContainer
{ "repo_name": "Mindtoeye/Hoop", "path": "src/edu/cmu/cs/in/controls/splitpanel/HoopMultiSplitLayout.java", "license": "lgpl-3.0", "size": 41437 }
[ "java.awt.Container", "java.awt.Dimension", "java.awt.Insets", "java.awt.Rectangle" ]
import java.awt.Container; import java.awt.Dimension; import java.awt.Insets; import java.awt.Rectangle;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,543,525
public List handleStringAndDateConditions(Collection simpleConditionNodeCollection, List fromTables) throws DAOException { //Adding single quotes to strings and date values. Iterator iterator = simpleConditionNodeCollection.iterator(); while (iterator.hasNext()) { SimpleConditionsNode simpleCon...
List function(Collection simpleConditionNodeCollection, List fromTables) throws DAOException { Iterator iterator = simpleConditionNodeCollection.iterator(); while (iterator.hasNext()) { SimpleConditionsNode simpleConditionsNode = (SimpleConditionsNode) iterator.next(); addInListIfNotPresent(fromTables, simpleConditions...
/** * Adds single quotes (') for string and date type attributes in the condition collecion * and the returns the Set of objects to which the condition attributes belong. * @param simpleConditionNodeCollection The condition collection. * @return the Set of objects to which the condition attributes belong. ...
Adds single quotes (') for string and date type attributes in the condition collecion and the returns the Set of objects to which the condition attributes belong
handleStringAndDateConditions
{ "repo_name": "NCIP/wustl-common-package", "path": "src/edu/wustl/common/bizlogic/SimpleQueryBizLogic.java", "license": "bsd-3-clause", "size": 31268 }
[ "edu.wustl.common.query.SimpleConditionsNode", "edu.wustl.common.util.dbManager.DAOException", "java.util.Collection", "java.util.Iterator", "java.util.List" ]
import edu.wustl.common.query.SimpleConditionsNode; import edu.wustl.common.util.dbManager.DAOException; import java.util.Collection; import java.util.Iterator; import java.util.List;
import edu.wustl.common.query.*; import edu.wustl.common.util.*; import java.util.*;
[ "edu.wustl.common", "java.util" ]
edu.wustl.common; java.util;
394,407
public ResultSet extract( Statement statement, String sql );
ResultSet function( Statement statement, String sql );
/** * Extract the ResultSet from the statement. * * @param statement * @param sql * * @return the ResultSet */
Extract the ResultSet from the statement
extract
{ "repo_name": "HerrB92/obp", "path": "OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/main/java/org/hibernate/engine/jdbc/spi/ResultSetReturn.java", "license": "mit", "size": 2992 }
[ "java.sql.ResultSet", "java.sql.Statement" ]
import java.sql.ResultSet; import java.sql.Statement;
import java.sql.*;
[ "java.sql" ]
java.sql;
563,469
public ServiceResponse<Void> paramEnum(String scenario, GreyscaleColors value) throws ErrorException, IOException, IllegalArgumentException { if (scenario == null) { throw new IllegalArgumentException("Parameter scenario is required and cannot be null."); } Call<ResponseBody> cal...
ServiceResponse<Void> function(String scenario, GreyscaleColors value) throws ErrorException, IOException, IllegalArgumentException { if (scenario == null) { throw new IllegalArgumentException(STR); } Call<ResponseBody> call = service.paramEnum(scenario, value); return paramEnumDelegate(call.execute()); }
/** * Send a post request with header values "scenario": "valid", "value": "GREY" or "scenario": "null", "value": null. * * @param scenario Send a post request with header values "scenario": "valid" or "null" or "empty" * @param value Send a post request with header values 'GREY' . Possible values i...
Send a post request with header values "scenario": "valid", "value": "GREY" or "scenario": "null", "value": null
paramEnum
{ "repo_name": "yaqiyang/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/header/implementation/HeadersImpl.java", "license": "mit", "size": 106421 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException;
import com.microsoft.rest.*; import java.io.*;
[ "com.microsoft.rest", "java.io" ]
com.microsoft.rest; java.io;
1,340,077
private static void subtractUnsigned(Slice left, Slice right, Slice result, boolean resultNegative) { long l0 = getLong(left, 0); long l1 = getLong(left, 1); long r0 = getLong(right, 0); long r1 = getLong(right, 1); long z0 = l0 - r0; int underflow = unsignedIsS...
static void function(Slice left, Slice right, Slice result, boolean resultNegative) { long l0 = getLong(left, 0); long l1 = getLong(left, 1); long r0 = getLong(right, 0); long r1 = getLong(right, 1); long z0 = l0 - r0; int underflow = unsignedIsSmaller(l0, z0) ? 1 : 0; long z1 = l1 - r1 - underflow; pack(result, z0, z1...
/** * This method ignores signs of the left and right and assumes that left is greater then right */
This method ignores signs of the left and right and assumes that left is greater then right
subtractUnsigned
{ "repo_name": "dain/presto", "path": "core/trino-spi/src/main/java/io/trino/spi/type/UnscaledDecimal128Arithmetic.java", "license": "apache-2.0", "size": 62411 }
[ "io.airlift.slice.Slice" ]
import io.airlift.slice.Slice;
import io.airlift.slice.*;
[ "io.airlift.slice" ]
io.airlift.slice;
2,187,815
public void testURIInfoGetMatchedURIs() throws HttpException, IOException { ClientResponse response = client.resource(getBaseURI() + "/context/uriinfo/detailed?reqInfo=getMatchedURIs") .get(); assertEquals(200, response.getStatusCode()); assertEquals("context/urii...
void function() throws HttpException, IOException { ClientResponse response = client.resource(getBaseURI() + STR) .get(); assertEquals(200, response.getStatusCode()); assertEquals(STR + ":", response.getEntity(String.class)); }
/** * Tests the {@link UriInfo#getMatchedURIs()}. * * @throws HttpException * @throws IOException */
Tests the <code>UriInfo#getMatchedURIs()</code>
testURIInfoGetMatchedURIs
{ "repo_name": "os890/wink_patches", "path": "wink-itests/wink-itest/wink-itest-context/src/test/java/org/apache/wink/itest/uriinfo/WinkURIInfoDetailedMethodTest.java", "license": "apache-2.0", "size": 26486 }
[ "java.io.IOException", "org.apache.commons.httpclient.HttpException", "org.apache.wink.client.ClientResponse" ]
import java.io.IOException; import org.apache.commons.httpclient.HttpException; import org.apache.wink.client.ClientResponse;
import java.io.*; import org.apache.commons.httpclient.*; import org.apache.wink.client.*;
[ "java.io", "org.apache.commons", "org.apache.wink" ]
java.io; org.apache.commons; org.apache.wink;
2,784,595
void setRootPageId(int rootPage) throws HyracksDataException;
void setRootPageId(int rootPage) throws HyracksDataException;
/** * Set the root page id and finalize the bulk load operation * * @param rootPage * @throws HyracksDataException */
Set the root page id and finalize the bulk load operation
setRootPageId
{ "repo_name": "ecarm002/incubator-asterixdb", "path": "hyracks-fullstack/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/IPageManager.java", "license": "apache-2.0", "size": 5864 }
[ "org.apache.hyracks.api.exceptions.HyracksDataException" ]
import org.apache.hyracks.api.exceptions.HyracksDataException;
import org.apache.hyracks.api.exceptions.*;
[ "org.apache.hyracks" ]
org.apache.hyracks;
876,984
protected SpanRange getRespanRangeForChangedClosingSymbol(Editable content, String closingSymbol) { // For simplicity, re-parse the document if text was replaced if (mLastOperation == Operation.REPLACE) { return new SpanRange(0, content.length()); } String openingSymbol ...
SpanRange function(Editable content, String closingSymbol) { if (mLastOperation == Operation.REPLACE) { return new SpanRange(0, content.length()); } String openingSymbol = getMatchingSymbol(closingSymbol); int firstClosingTagInModLoc = mOffset + mModifiedText.toString().indexOf(closingSymbol); int firstClosingTagAfterM...
/** * For changes made which contain at least one closing symbol (e.g. '>' or ';') and no opening symbols, whether * added or deleted, returns the range of text which should have its style reapplied. * @param content the content after modification * @param closingSymbol the closing symbol recognized...
For changes made which contain at least one closing symbol (e.g. '>' or ';') and no opening symbols, whether added or deleted, returns the range of text which should have its style reapplied
getRespanRangeForChangedClosingSymbol
{ "repo_name": "mzorz/WordPress-Android", "path": "libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/HtmlStyleTextWatcher.java", "license": "gpl-2.0", "size": 9534 }
[ "android.text.Editable" ]
import android.text.Editable;
import android.text.*;
[ "android.text" ]
android.text;
2,819,421