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
@Test public void testNormalCompareMissingAttribute() throws Exception { LDAPConnection conn = getNsdkWiredConnection( getLdapServer() ); // comparison success LDAPAttribute attribute = new LDAPAttribute( "sn", "karasulu" ); assertTrue( conn.compare( "uid=akarasulu,ou=users,...
void function() throws Exception { LDAPConnection conn = getNsdkWiredConnection( getLdapServer() ); LDAPAttribute attribute = new LDAPAttribute( "sn", STR ); assertTrue( conn.compare( STR, attribute ) ); attribute = new LDAPAttribute( "mail", STR ); try { conn.compare( STR, attribute ); fail( STR ); } catch ( LDAPExcep...
/** * Tests normal compare operation on normal non-referral entries without * the ManageDsaIT control using an attribute that does not exist in the * entry. */
Tests normal compare operation on normal non-referral entries without the ManageDsaIT control using an attribute that does not exist in the entry
testNormalCompareMissingAttribute
{ "repo_name": "apache/directory-server", "path": "server-integ/src/test/java/org/apache/directory/server/operations/ldapsdk/CompareIT.java", "license": "apache-2.0", "size": 11535 }
[ "org.apache.directory.api.ldap.model.message.ResultCodeEnum", "org.apache.directory.server.integ.ServerIntegrationUtils", "org.junit.jupiter.api.Assertions" ]
import org.apache.directory.api.ldap.model.message.ResultCodeEnum; import org.apache.directory.server.integ.ServerIntegrationUtils; import org.junit.jupiter.api.Assertions;
import org.apache.directory.api.ldap.model.message.*; import org.apache.directory.server.integ.*; import org.junit.jupiter.api.*;
[ "org.apache.directory", "org.junit.jupiter" ]
org.apache.directory; org.junit.jupiter;
913,938
public void endElement(String namespaceURI, String localName, String qname) throws SAXException { super.endElement(namespaceURI, localName, qname); handleTextEscaping(); // Revert to strip/preserve-space setting from before this element if (m_wsfilter != null) { ...
void function(String namespaceURI, String localName, String qname) throws SAXException { super.endElement(namespaceURI, localName, qname); handleTextEscaping(); if (m_wsfilter != null) { xmlSpaceRevert(m_previous); } }
/** * SAX2: Receive notification of the end of an element. */
SAX2: Receive notification of the end of an element
endElement
{ "repo_name": "FauxFaux/jdk9-jaxp", "path": "src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl.java", "license": "gpl-2.0", "size": 61188 }
[ "org.xml.sax.SAXException" ]
import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
2,023,155
public Artifact resolveArtifact(final MavenProject project, final Dependency dependency) throws MojoExecutionException { // Manage version ranges String version = dependency.getVersion(); try{ if(!version.matches("[0-9.]*")){ final VersionRange range = VersionRang...
Artifact function(final MavenProject project, final Dependency dependency) throws MojoExecutionException { String version = dependency.getVersion(); try{ if(!version.matches(STR)){ final VersionRange range = VersionRange.createFromVersionSpec(version); version = getArtifactVersion(range); } } catch (InvalidVersionSpeci...
/** * Resolve a dependency artifact * * @param project MavenProject * @param dependency dependency * @return Artifact */
Resolve a dependency artifact
resolveArtifact
{ "repo_name": "Axway/grapes-maven-plugin", "path": "src/main/java/org/axway/grapes/maven/resolver/ArtifactResolver.java", "license": "apache-2.0", "size": 4312 }
[ "org.apache.maven.artifact.Artifact", "org.apache.maven.artifact.DefaultArtifact", "org.apache.maven.artifact.handler.DefaultArtifactHandler", "org.apache.maven.artifact.versioning.InvalidVersionSpecificationException", "org.apache.maven.artifact.versioning.VersionRange", "org.apache.maven.model.Dependenc...
import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.DefaultArtifact; import org.apache.maven.artifact.handler.DefaultArtifactHandler; import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.artifact.versioning.VersionRange; import org.apache.mave...
import org.apache.maven.artifact.*; import org.apache.maven.artifact.handler.*; import org.apache.maven.artifact.versioning.*; import org.apache.maven.model.*; import org.apache.maven.plugin.*; import org.apache.maven.project.*;
[ "org.apache.maven" ]
org.apache.maven;
253,813
private void startExport() { // OK pressed, so check selections if (!_pointTypeSelector.getAnythingSelected()) { JOptionPane.showMessageDialog(_parentFrame, I18nManager.getText("dialog.save.notypesselected"), I18nManager.getText("dialog.saveoptions.title"), JOptionPane.WARNING_MESSAGE); return; } ...
void function() { if (!_pointTypeSelector.getAnythingSelected()) { JOptionPane.showMessageDialog(_parentFrame, I18nManager.getText(STR), I18nManager.getText(STR), JOptionPane.WARNING_MESSAGE); return; } File saveFile = chooseGpxFile(_parentFrame); if (saveFile != null) { _exportFile = saveFile; new Thread(this).start()...
/** * Start the export process based on the input parameters */
Start the export process based on the input parameters
startExport
{ "repo_name": "activityworkshop/GpsPrune", "path": "src/tim/prune/save/GpxExporter.java", "license": "gpl-2.0", "size": 31815 }
[ "java.io.File", "javax.swing.JOptionPane" ]
import java.io.File; import javax.swing.JOptionPane;
import java.io.*; import javax.swing.*;
[ "java.io", "javax.swing" ]
java.io; javax.swing;
2,640,418
@Test public void testModelNotNullField() throws Exception { NullableFieldTester tester = new NullableFieldTester(object); tester.include("timestamp"); tester.include("lastModified"); tester.include("lastModifiedBy"); tester.include("mutuallyExclusive"); tester.include("adminConfig"); te...
void function() throws Exception { NullableFieldTester tester = new NullableFieldTester(object); tester.include(STR); tester.include(STR); tester.include(STR); tester.include(STR); tester.include(STR); tester.include(STR); tester.include("type"); assertTrue(tester.testNotNullFields()); }
/** * Test not null fields. * * @throws Exception the exception */
Test not null fields
testModelNotNullField
{ "repo_name": "WestCoastInformatics/UMLS-Terminology-Server", "path": "jpa-model/src/test/java/com/wci/umls/server/jpa/test/workflow/WorkflowConfigJpaUnitTest.java", "license": "apache-2.0", "size": 6468 }
[ "com.wci.umls.server.jpa.helpers.NullableFieldTester", "org.junit.Assert" ]
import com.wci.umls.server.jpa.helpers.NullableFieldTester; import org.junit.Assert;
import com.wci.umls.server.jpa.helpers.*; import org.junit.*;
[ "com.wci.umls", "org.junit" ]
com.wci.umls; org.junit;
2,883,626
private int reduceRemapLeaves(int id, HashMap<Double, Integer> oldValueToPrime, LinkedHashMap<Integer, Boolean> primeMapping, boolean remapZeros) { Integer Fr = (Integer) reduceRemapLeavesCache.get(id); if (Fr == null) { ADDNode nodeKey = _context.getNode(id); if (nodeKey instanceof ADDINode) { I...
int function(int id, HashMap<Double, Integer> oldValueToPrime, LinkedHashMap<Integer, Boolean> primeMapping, boolean remapZeros) { Integer Fr = (Integer) reduceRemapLeavesCache.get(id); if (Fr == null) { ADDNode nodeKey = _context.getNode(id); if (nodeKey instanceof ADDINode) { Integer Fh = reduceRemapLeaves(((ADDINode...
/** * Remap leaves of an ADD by using unique prime numbers. * @param id * @param oldValueToPrime * @param primeMapping * @param remapZeros * @return */
Remap leaves of an ADD by using unique prime numbers
reduceRemapLeaves
{ "repo_name": "felipemartinsss/repository", "path": "AIPlannersForRDDLSim/src/util/StochasticBisimulationCommons.java", "license": "gpl-3.0", "size": 68760 }
[ "java.util.HashMap", "java.util.LinkedHashMap" ]
import java.util.HashMap; import java.util.LinkedHashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,937,481
public @CheckForNull Plugin getPlugin() { PluginInstanceStore pis = Jenkins.lookup(PluginInstanceStore.class); return pis != null ? pis.store.get(this) : null; }
@CheckForNull Plugin function() { PluginInstanceStore pis = Jenkins.lookup(PluginInstanceStore.class); return pis != null ? pis.store.get(this) : null; }
/** * Gets the instance of {@link Plugin} contributed by this plugin. */
Gets the instance of <code>Plugin</code> contributed by this plugin
getPlugin
{ "repo_name": "ajshastri/jenkins", "path": "core/src/main/java/hudson/PluginWrapper.java", "license": "mit", "size": 28242 }
[ "javax.annotation.CheckForNull" ]
import javax.annotation.CheckForNull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
937,555
public static <T> List<T> newJavaList(ReadableStringMap<T> source) { return copyValuesToJavaCollection(source, new ArrayList<T>()); }
static <T> List<T> function(ReadableStringMap<T> source) { return copyValuesToJavaCollection(source, new ArrayList<T>()); }
/** * Creates a new java list with the same contents as the values of the source * StringMap. */
Creates a new java list with the same contents as the values of the source StringMap
newJavaList
{ "repo_name": "vega113/incubator-wave", "path": "wave/src/main/java/org/waveprotocol/wave/model/util/CollectionUtils.java", "license": "apache-2.0", "size": 37875 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,344,276
public static void init(Object m) { if(!INSTANCE.codenameOneRunning) { INSTANCE.codenameOneRunning = true; INSTANCE.displayInitTime = System.currentTimeMillis(); //restore menu state from previous run if exists int commandBehaviour = COMMAND_BEHAV...
static void function(Object m) { if(!INSTANCE.codenameOneRunning) { INSTANCE.codenameOneRunning = true; INSTANCE.displayInitTime = System.currentTimeMillis(); int commandBehaviour = COMMAND_BEHAVIOR_DEFAULT; if(INSTANCE.impl != null){ commandBehaviour = INSTANCE.impl.getCommandBehavior(); } INSTANCE.impl = (CodenameOne...
/** * This is the INTERNAL Display initialization method, it will be removed in future versions of the API. * This method must be called before any Form is shown * * @param m platform specific object used by the implementation * @deprecated this method is invoked internally do not invoke it! ...
This is the INTERNAL Display initialization method, it will be removed in future versions of the API. This method must be called before any Form is shown
init
{ "repo_name": "codenameone/CodenameOne", "path": "CodenameOne/src/com/codename1/ui/Display.java", "license": "gpl-2.0", "size": 192339 }
[ "com.codename1.impl.CodenameOneImplementation", "com.codename1.impl.CodenameOneThread", "com.codename1.impl.ImplementationFactory" ]
import com.codename1.impl.CodenameOneImplementation; import com.codename1.impl.CodenameOneThread; import com.codename1.impl.ImplementationFactory;
import com.codename1.impl.*;
[ "com.codename1.impl" ]
com.codename1.impl;
508,912
public static KeyPair createKeyPair() throws IOException { try { KeyFactory keyFactory = KeyFactory.getInstance(KTY); X509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec( getResourceAsByteArray("/public.key")); PublicKey publicKey = keyFactory.g...
static KeyPair function() throws IOException { try { KeyFactory keyFactory = KeyFactory.getInstance(KTY); X509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec( getResourceAsByteArray(STR)); PublicKey publicKey = keyFactory.generatePublic(publicKeySpec); PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(...
/** * Creates a standard account {@link KeyPair} for testing. The key pair is read from a * test resource and is guaranteed not to change between test runs. * <p> * The constants {@link #N}, {@link #E}, {@link #KTY} and {@link #THUMBPRINT} are * related to the returned key pair and can be used ...
Creates a standard account <code>KeyPair</code> for testing. The key pair is read from a test resource and is guaranteed not to change between test runs. The constants <code>#N</code>, <code>#E</code>, <code>#KTY</code> and <code>#THUMBPRINT</code> are related to the returned key pair and can be used for asserting resu...
createKeyPair
{ "repo_name": "shred/acme4j", "path": "acme4j-client/src/test/java/org/shredzone/acme4j/toolbox/TestUtils.java", "license": "apache-2.0", "size": 12623 }
[ "java.io.IOException", "java.security.KeyFactory", "java.security.KeyPair", "java.security.NoSuchAlgorithmException", "java.security.PrivateKey", "java.security.PublicKey", "java.security.spec.InvalidKeySpecException", "java.security.spec.PKCS8EncodedKeySpec", "java.security.spec.X509EncodedKeySpec"...
import java.io.IOException; import java.security.KeyFactory; import java.security.KeyPair; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import java.security.PublicKey; import java.security.spec.InvalidKeySpecException; import java.security.spec.PKCS8EncodedKeySpec; import java.securit...
import java.io.*; import java.security.*; import java.security.spec.*;
[ "java.io", "java.security" ]
java.io; java.security;
2,432,789
HTableInterface getTable(byte[] tableName, HConnection connection, ExecutorService pool) throws IOException;
HTableInterface getTable(byte[] tableName, HConnection connection, ExecutorService pool) throws IOException;
/** * Creates an HBase client using an externally managed HConnection and Thread pool. * * @param tableName Name of the table. * @param connection HConnection to use. * @param pool ExecutorService to use. * @return An client to access an HBase table. * @throws IOException if a server ...
Creates an HBase client using an externally managed HConnection and Thread pool
getTable
{ "repo_name": "jffnothing/phoenix-4.0.0-incubating", "path": "phoenix-core/src/main/java/org/apache/phoenix/query/HTableFactory.java", "license": "apache-2.0", "size": 2044 }
[ "java.io.IOException", "java.util.concurrent.ExecutorService", "org.apache.hadoop.hbase.client.HConnection", "org.apache.hadoop.hbase.client.HTableInterface" ]
import java.io.IOException; import java.util.concurrent.ExecutorService; import org.apache.hadoop.hbase.client.HConnection; import org.apache.hadoop.hbase.client.HTableInterface;
import java.io.*; import java.util.concurrent.*; import org.apache.hadoop.hbase.client.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
239,065
@Test public void reparseNoReplacement() { final String oldText = " NOP\n BLOCK0\n MOVE #0,D0\n ENDBLOCK0\n NOP"; final int replaceOffset = 20; final int lengthToRemove = 0; final String textToInsert = ""; final Document oldDocument = new Document(oldText); final...
void function() { final String oldText = STR; final int replaceOffset = 20; final int lengthToRemove = 0; final String textToInsert = ""; final Document oldDocument = new Document(oldText); final SourceNode oldNode = TestParser.TEST_PARSER.parse(oldDocument); final Document newDocument = oldDocument.replace(replaceOffs...
/** * Asserts that {@link Parser#reparse(Document, SourceNode, int, int, int)} returns the old root source node when the arguments * describe no replacement. */
Asserts that <code>Parser#reparse(Document, SourceNode, int, int, int)</code> returns the old root source node when the arguments describe no replacement
reparseNoReplacement
{ "repo_name": "reasm/reasm-commons", "path": "src/test/java/org/reasm/commons/source/ParserTest.java", "license": "mit", "size": 12821 }
[ "ca.fragag.text.Document", "org.hamcrest.Matchers", "org.junit.Assert", "org.reasm.source.SourceNode" ]
import ca.fragag.text.Document; import org.hamcrest.Matchers; import org.junit.Assert; import org.reasm.source.SourceNode;
import ca.fragag.text.*; import org.hamcrest.*; import org.junit.*; import org.reasm.source.*;
[ "ca.fragag.text", "org.hamcrest", "org.junit", "org.reasm.source" ]
ca.fragag.text; org.hamcrest; org.junit; org.reasm.source;
1,651,688
static <K, V> void populateMultimap( Multimap<K, V> multimap, ObjectInputStream stream, int distinctKeys) throws IOException, ClassNotFoundException { for (int i = 0; i < distinctKeys; i++) { @SuppressWarnings("unchecked") // reading data stored by writeMultimap K key = (K) stream.rea...
static <K, V> void populateMultimap( Multimap<K, V> multimap, ObjectInputStream stream, int distinctKeys) throws IOException, ClassNotFoundException { for (int i = 0; i < distinctKeys; i++) { @SuppressWarnings(STR) K key = (K) stream.readObject(); Collection<V> values = multimap.get(key); int valueCount = stream.readIn...
/** * Populates a multimap by reading an input stream, as part of * deserialization. See {@link #writeMultimap} for the data format. The number * of distinct keys is determined by a prior call to {@link #readCount}. */
Populates a multimap by reading an input stream, as part of deserialization. See <code>#writeMultimap</code> for the data format. The number of distinct keys is determined by a prior call to <code>#readCount</code>
populateMultimap
{ "repo_name": "mariusj/org.openntf.domino", "path": "domino/externals/guava/src/main/java/com/google/common/collect/Serialization.java", "license": "apache-2.0", "size": 8569 }
[ "java.io.IOException", "java.io.ObjectInputStream", "java.util.Collection" ]
import java.io.IOException; import java.io.ObjectInputStream; import java.util.Collection;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,184,635
void setPrefix(CharSequence prefix, CharSequence uri) throws XMLStreamException;
void setPrefix(CharSequence prefix, CharSequence uri) throws XMLStreamException;
/** * Sets the prefix the uri is bound to. This prefix is bound in the scope of * the current START_ELEMENT / END_ELEMENT pair. If this method is called * before a START_ELEMENT has been written the prefix is bound in the root * scope. * * @param prefix the prefix to bind to the uri. ...
Sets the prefix the uri is bound to. This prefix is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. If this method is called before a START_ELEMENT has been written the prefix is bound in the root scope
setPrefix
{ "repo_name": "mariusj/org.openntf.domino", "path": "domino/externals/javolution/src/main/java/javolution/xml/stream/XMLStreamWriter.java", "license": "apache-2.0", "size": 13645 }
[ "java.lang.CharSequence" ]
import java.lang.CharSequence;
import java.lang.*;
[ "java.lang" ]
java.lang;
1,621,826
private void startCountDownToExecution() { try { countDownSemaphore.acquire(); if (countDownThread == null || countDownThread.getState() == State.TERMINATED) { countDownThread = new Thread(countDownRunnable); countDownThread.start(); } else { timeToExecution = BTN_PRESS_IN...
void function() { try { countDownSemaphore.acquire(); if (countDownThread == null countDownThread.getState() == State.TERMINATED) { countDownThread = new Thread(countDownRunnable); countDownThread.start(); } else { timeToExecution = BTN_PRESS_INTERVAL; } } catch (Exception e) { Log.e(TAG, e.toString()); } finally { cou...
/** * Call to start or reset a count down to execution of the current state's * command. */
Call to start or reset a count down to execution of the current state's command
startCountDownToExecution
{ "repo_name": "mbabic/HeadphoneController", "path": "src/ca/mbabic/headphonecontroller/statemachine/HCStateMachine.java", "license": "gpl-2.0", "size": 4900 }
[ "android.util.Log", "java.lang.Thread" ]
import android.util.Log; import java.lang.Thread;
import android.util.*; import java.lang.*;
[ "android.util", "java.lang" ]
android.util; java.lang;
1,286,269
public List findGPWLEntries(Dataset ds) { List resp = null; try { Object o = server.invoke(gpwlScuServiceName, "findGPWLEntries", new Object[] { ds }, new String[] { Dataset.class.getName() }); return (List) o; } catch (Exceptio...
List function(Dataset ds) { List resp = null; try { Object o = server.invoke(gpwlScuServiceName, STR, new Object[] { ds }, new String[] { Dataset.class.getName() }); return (List) o; } catch (Exception x) { log.error(STR + x.getMessage(), x); } return new ArrayList(); }
/** * Makes the MBean call to get the list of worklist entries for given filter * (ds). * * @param ds * @return The list of worklist entries ( Each item in the list is a Dataset * of one scheduled procedure step). */
Makes the MBean call to get the list of worklist entries for given filter (ds)
findGPWLEntries
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4jboss-all/trunk/dcm4jboss-web/src/java/org/dcm4chex/archive/web/maverick/gpwl/GPWLScuDelegate.java", "license": "apache-2.0", "size": 5474 }
[ "java.util.ArrayList", "java.util.List", "org.dcm4che.data.Dataset" ]
import java.util.ArrayList; import java.util.List; import org.dcm4che.data.Dataset;
import java.util.*; import org.dcm4che.data.*;
[ "java.util", "org.dcm4che.data" ]
java.util; org.dcm4che.data;
1,578,003
private void addComponentsToDialog(Value value) { this.add(labelType, cc.xy(2, 2)); this.add(comboboxValueTypes, cc.xyw(4, 2, 3)); if (value != null) { if (value instanceof SingleValue) { this.add(singlePanel, cc.xyw(2, 4, 5)); comboboxValueTypes.s...
void function(Value value) { this.add(labelType, cc.xy(2, 2)); this.add(comboboxValueTypes, cc.xyw(4, 2, 3)); if (value != null) { if (value instanceof SingleValue) { this.add(singlePanel, cc.xyw(2, 4, 5)); comboboxValueTypes.setSelectedIndex(0); textfieldValue.setText(value.getValue() + STRSTR"); activeType = 1; } } e...
/** * Adds the components to the dialog. * * @param value The value that has to be used. */
Adds the components to the dialog
addComponentsToDialog
{ "repo_name": "LogisticsImpactModel/LIMO", "path": "view/src/main/java/nl/fontys/sofa/limo/view/custom/procedure/EditValueDialog.java", "license": "apache-2.0", "size": 8843 }
[ "nl.fontys.sofa.limo.domain.component.procedure.value.SingleValue", "nl.fontys.sofa.limo.domain.component.procedure.value.Value" ]
import nl.fontys.sofa.limo.domain.component.procedure.value.SingleValue; import nl.fontys.sofa.limo.domain.component.procedure.value.Value;
import nl.fontys.sofa.limo.domain.component.procedure.value.*;
[ "nl.fontys.sofa" ]
nl.fontys.sofa;
1,666,218
protected void enterBooleanValue(Production node) throws ParseException { }
void function(Production node) throws ParseException { }
/** * Called when entering a parse tree node. * * @param node the node being entered * * @throws ParseException if the node analysis discovered errors */
Called when entering a parse tree node
enterBooleanValue
{ "repo_name": "richb-hanover/mibble-2.9.2", "path": "src/java/net/percederberg/mibble/asn1/Asn1Analyzer.java", "license": "gpl-2.0", "size": 275483 }
[ "net.percederberg.grammatica.parser.ParseException", "net.percederberg.grammatica.parser.Production" ]
import net.percederberg.grammatica.parser.ParseException; import net.percederberg.grammatica.parser.Production;
import net.percederberg.grammatica.parser.*;
[ "net.percederberg.grammatica" ]
net.percederberg.grammatica;
447,720
public static DataInputStream createDataInputStream(byte buffer[]) { if (buffer==null) throw new NullPointerException("Backing array can not be NULL"); // use java.io ! return new DataInputStream(new ByteArrayInputStream(buffer)); }
static DataInputStream function(byte buffer[]) { if (buffer==null) throw new NullPointerException(STR); return new DataInputStream(new ByteArrayInputStream(buffer)); }
/** * Wrap DataInputStream object around backing byte array. * Uses java.nio.* classes for optimized performance. */
Wrap DataInputStream object around backing byte array. Uses java.nio.* classes for optimized performance
createDataInputStream
{ "repo_name": "skoulouzis/vlet", "path": "source/core/nl.uva.vlet.glite.lfc/src/nl/uva/vlet/glite/lfc/IOUtil.java", "license": "apache-2.0", "size": 5009 }
[ "java.io.ByteArrayInputStream", "java.io.DataInputStream" ]
import java.io.ByteArrayInputStream; import java.io.DataInputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,104,672
protected Method getActionMethod(Class actionClass, String methodName) throws NoSuchMethodException { Method method; try { method = actionClass.getMethod(methodName, new Class[0]); } catch (NoSuchMethodException e) { // hmm -- OK, try doXxx instead ...
Method function(Class actionClass, String methodName) throws NoSuchMethodException { Method method; try { method = actionClass.getMethod(methodName, new Class[0]); } catch (NoSuchMethodException e) { try { String altMethodName = "do" + methodName.substring(0, 1).toUpperCase() + methodName.substring(1); method = actionC...
/** * This is copied from DefaultActionInvocation */
This is copied from DefaultActionInvocation
getActionMethod
{ "repo_name": "umeshawasthi/jsr303-validator-plugin", "path": "src/main/java/com/github/umeshawasthi/struts2/jsr303/validation/interceptor/JSR303ValidationInterceptor.java", "license": "apache-2.0", "size": 9678 }
[ "java.lang.reflect.Method" ]
import java.lang.reflect.Method;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
565,209
public List<FacesConfigLocaleConfigType<FacesConfigApplicationType<T>>> getAllLocaleConfig() { List<FacesConfigLocaleConfigType<FacesConfigApplicationType<T>>> list = new ArrayList<FacesConfigLocaleConfigType<FacesConfigApplicationType<T>>>(); List<Node> nodeList = childNode.get("locale-config"); ...
List<FacesConfigLocaleConfigType<FacesConfigApplicationType<T>>> function() { List<FacesConfigLocaleConfigType<FacesConfigApplicationType<T>>> list = new ArrayList<FacesConfigLocaleConfigType<FacesConfigApplicationType<T>>>(); List<Node> nodeList = childNode.get(STR); for(Node node: nodeList) { FacesConfigLocaleConfigT...
/** * Returns all <code>locale-config</code> elements * @return list of <code>locale-config</code> */
Returns all <code>locale-config</code> elements
getAllLocaleConfig
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/facesconfig20/FacesConfigApplicationTypeImpl.java", "license": "epl-1.0", "size": 32125 }
[ "java.util.ArrayList", "java.util.List", "org.jboss.shrinkwrap.descriptor.api.facesconfig20.FacesConfigApplicationType", "org.jboss.shrinkwrap.descriptor.api.facesconfig20.FacesConfigLocaleConfigType", "org.jboss.shrinkwrap.descriptor.spi.node.Node" ]
import java.util.ArrayList; import java.util.List; import org.jboss.shrinkwrap.descriptor.api.facesconfig20.FacesConfigApplicationType; import org.jboss.shrinkwrap.descriptor.api.facesconfig20.FacesConfigLocaleConfigType; import org.jboss.shrinkwrap.descriptor.spi.node.Node;
import java.util.*; import org.jboss.shrinkwrap.descriptor.api.facesconfig20.*; import org.jboss.shrinkwrap.descriptor.spi.node.*;
[ "java.util", "org.jboss.shrinkwrap" ]
java.util; org.jboss.shrinkwrap;
498,051
@ApiModelProperty(value = "Specifies the user ID for the new user.") public String getUserId() { return userId; }
@ApiModelProperty(value = STR) String function() { return userId; }
/** * Specifies the user ID for the new user.. * @return userId **/
Specifies the user ID for the new user.
getUserId
{ "repo_name": "docusign/docusign-java-client", "path": "src/main/java/com/docusign/esign/model/NewUser.java", "license": "mit", "size": 9170 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
1,960,234
public boolean isActive(Player player) { return isActive(); }
boolean function(Player player) { return isActive(); }
/** * Returns if the sign is activated for the given player. * <p> * <b>Note that the default implementation of this method assumes that the sign does not need player specific behavior and simply calls {@link #isActive()}. * An implementation that needs player specific behavior should check if the {...
Returns if the sign is activated for the given player. Note that the default implementation of this method assumes that the sign does not need player specific behavior and simply calls <code>#isActive()</code>. An implementation that needs player specific behavior should check if the <code>#playersActivated</code> coll...
isActive
{ "repo_name": "DRE2N/DungeonsXL", "path": "api/src/main/java/de/erethon/dungeonsxl/api/sign/Deactivatable.java", "license": "gpl-3.0", "size": 5966 }
[ "org.bukkit.entity.Player" ]
import org.bukkit.entity.Player;
import org.bukkit.entity.*;
[ "org.bukkit.entity" ]
org.bukkit.entity;
2,059,353
private SkyValue getExternalPackage(Environment env) throws PackageFunctionException, InterruptedException { StarlarkSemantics starlarkSemantics = PrecomputedValue.STARLARK_SEMANTICS.get(env); RootedPath workspacePath = externalPackageHelper.findWorkspaceFile(env); if (env.valuesMissing()) { r...
SkyValue function(Environment env) throws PackageFunctionException, InterruptedException { StarlarkSemantics starlarkSemantics = PrecomputedValue.STARLARK_SEMANTICS.get(env); RootedPath workspacePath = externalPackageHelper.findWorkspaceFile(env); if (env.valuesMissing()) { return null; } SkyKey workspaceKey = External...
/** * Adds a dependency on the WORKSPACE file, representing it as a special type of package. * * @throws PackageFunctionException if there is an error computing the workspace file or adding * its rules to the //external package. */
Adds a dependency on the WORKSPACE file, representing it as a special type of package
getExternalPackage
{ "repo_name": "ulfjack/bazel", "path": "src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java", "license": "apache-2.0", "size": 64573 }
[ "com.google.devtools.build.lib.cmdline.LabelConstants", "com.google.devtools.build.lib.events.Event", "com.google.devtools.build.lib.events.ExtendedEventHandler", "com.google.devtools.build.lib.packages.Package", "com.google.devtools.build.lib.packages.PackageValidator", "com.google.devtools.build.lib.ser...
import com.google.devtools.build.lib.cmdline.LabelConstants; import com.google.devtools.build.lib.events.Event; import com.google.devtools.build.lib.events.ExtendedEventHandler; import com.google.devtools.build.lib.packages.Package; import com.google.devtools.build.lib.packages.PackageValidator; import com.google.devto...
import com.google.devtools.build.lib.cmdline.*; import com.google.devtools.build.lib.events.*; import com.google.devtools.build.lib.packages.*; import com.google.devtools.build.lib.server.*; import com.google.devtools.build.lib.skyframe.*; import com.google.devtools.build.lib.syntax.*; import com.google.devtools.build....
[ "com.google.devtools", "java.io" ]
com.google.devtools; java.io;
1,995,056
@Test public void whenUpdateOldRoleThenOldRoleReplacNewRole() { AbstractStore rs = new RoleStore(new SimpleArray(5)); rs.add(new Role("1")); rs.add(new Role("2")); Role role = new Role("2"); rs.update(role); Role result = (Role) rs.getArray().get(1); asser...
void function() { AbstractStore rs = new RoleStore(new SimpleArray(5)); rs.add(new Role("1")); rs.add(new Role("2")); Role role = new Role("2"); rs.update(role); Role result = (Role) rs.getArray().get(1); assertThat(result, is(role)); }
/** * Test update Role. */
Test update Role
whenUpdateOldRoleThenOldRoleReplacNewRole
{ "repo_name": "fr3anthe/ifedorenko", "path": "2.1-Collections-Pro/src/test/java/ru/job4j/generic/RoleStoreTest.java", "license": "apache-2.0", "size": 1371 }
[ "org.hamcrest.core.Is", "org.junit.Assert" ]
import org.hamcrest.core.Is; import org.junit.Assert;
import org.hamcrest.core.*; import org.junit.*;
[ "org.hamcrest.core", "org.junit" ]
org.hamcrest.core; org.junit;
2,002,297
@CheckReturnValue public long writeRawLogTo(long start, OutputStream out) throws IOException { return super.writeLogTo(start, out); }
long function(long start, OutputStream out) throws IOException { return super.writeLogTo(start, out); }
/** * Calls {@link LargeText#writeLogTo(long, OutputStream)} without stripping annotations as {@link #writeLogTo(long, OutputStream)} would. * @since 1.577 */
Calls <code>LargeText#writeLogTo(long, OutputStream)</code> without stripping annotations as <code>#writeLogTo(long, OutputStream)</code> would
writeRawLogTo
{ "repo_name": "rsandell/jenkins", "path": "core/src/main/java/hudson/console/AnnotatedLargeText.java", "license": "mit", "size": 8026 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,367,993
void setAction(PdfAction action, float llx, float lly, float urx, float ury) { addAnnotation(new PdfAnnotation(writer, llx, lly, urx, ury, action)); } protected TreeMap localDestinations = new TreeMap();
void setAction(PdfAction action, float llx, float lly, float urx, float ury) { addAnnotation(new PdfAnnotation(writer, llx, lly, urx, ury, action)); } protected TreeMap localDestinations = new TreeMap();
/** * Implements an action in an area. * * @param action the <CODE>PdfAction</CODE> * @param llx the lower left x corner of the activation area * @param lly the lower left y corner of the activation area * @param urx the upper right x corner of the activation area * @param ury the upper right ...
Implements an action in an area
setAction
{ "repo_name": "SafetyCulture/DroidText", "path": "app/src/main/java/com/lowagie/text/pdf/PdfDocument.java", "license": "lgpl-3.0", "size": 98178 }
[ "java.util.TreeMap" ]
import java.util.TreeMap;
import java.util.*;
[ "java.util" ]
java.util;
434,954
protected final void resetXML11() throws XNIException { // Reset XML 1.1 components fXML11NSDocScanner.reset(this); fXML11DTDScanner.reset(this); } // resetXML11() // // other methods //
final void function() throws XNIException { fXML11NSDocScanner.reset(this); fXML11DTDScanner.reset(this); } //
/** * Reset all XML 1.1 components before parsing */
Reset all XML 1.1 components before parsing
resetXML11
{ "repo_name": "haikuowuya/android_system_code", "path": "src/com/sun/org/apache/xerces/internal/impl/xs/opti/SchemaParsingConfig.java", "license": "apache-2.0", "size": 37701 }
[ "com.sun.org.apache.xerces.internal.xni.XNIException" ]
import com.sun.org.apache.xerces.internal.xni.XNIException;
import com.sun.org.apache.xerces.internal.xni.*;
[ "com.sun.org" ]
com.sun.org;
1,856,064
public static String getShortNameAsProperty(Class<?> clazz) { String shortName = ClassUtils.getShortName(clazz); int dotIndex = shortName.lastIndexOf('.'); shortName = (dotIndex != -1 ? shortName.substring(dotIndex + 1) : shortName); return Introspector.decapitalize(shortName); }
static String function(Class<?> clazz) { String shortName = ClassUtils.getShortName(clazz); int dotIndex = shortName.lastIndexOf('.'); shortName = (dotIndex != -1 ? shortName.substring(dotIndex + 1) : shortName); return Introspector.decapitalize(shortName); }
/** * Return the short string name of a Java class in uncapitalized JavaBeans * property format. Strips the outer class name in case of an inner class. * @param clazz the class * @return the short name rendered in a standard JavaBeans property format * @see java.beans.Introspector#decapitalize(...
Return the short string name of a Java class in uncapitalized JavaBeans property format. Strips the outer class name in case of an inner class
getShortNameAsProperty
{ "repo_name": "zollty-org/zollty-util", "path": "jretty-util-basic/src/main/java/org/jretty/util/ClassUtils.java", "license": "gpl-2.0", "size": 36293 }
[ "java.beans.Introspector" ]
import java.beans.Introspector;
import java.beans.*;
[ "java.beans" ]
java.beans;
2,449,411
@RequirePOST public HttpResponse doUploadPlugin(StaplerRequest req) throws IOException, ServletException { try { Jenkins.get().checkPermission(Jenkins.ADMINISTER); String fileName = ""; PluginCopier copier; ServletFileUpload upload = new ServletFileUpload...
HttpResponse function(StaplerRequest req) throws IOException, ServletException { try { Jenkins.get().checkPermission(Jenkins.ADMINISTER); String fileName = STRSTRadvancedSTR.jpiSTR.hpiSTRuploadedSTR.jpiSTRPlugin-DependenciesSTR,STR[:;]STRnameSTRversionSTRoptionalSTRresolution:=optionalSTRUnable to setup dependency list...
/** * Uploads a plugin. */
Uploads a plugin
doUploadPlugin
{ "repo_name": "v1v/jenkins", "path": "core/src/main/java/hudson/PluginManager.java", "license": "mit", "size": 110682 }
[ "java.io.IOException", "javax.servlet.ServletException", "org.apache.commons.fileupload.FileUploadException", "org.kohsuke.stapler.HttpResponse", "org.kohsuke.stapler.StaplerRequest" ]
import java.io.IOException; import javax.servlet.ServletException; import org.apache.commons.fileupload.FileUploadException; import org.kohsuke.stapler.HttpResponse; import org.kohsuke.stapler.StaplerRequest;
import java.io.*; import javax.servlet.*; import org.apache.commons.fileupload.*; import org.kohsuke.stapler.*;
[ "java.io", "javax.servlet", "org.apache.commons", "org.kohsuke.stapler" ]
java.io; javax.servlet; org.apache.commons; org.kohsuke.stapler;
242,396
public static MetaBuildLoader makeLoader(final AppProvider appProvider) throws IOException { final String jlineJars = "jline-?[0-9.]+-sbt-.*|jline-terminal(-(jna|jansi))?-[0-9.]+"; final String testInterfaceJars = "test-interface(-.*)?"; final String compilerInterfaceJars = "compiler-interface(-.*)?"; ...
static MetaBuildLoader function(final AppProvider appProvider) throws IOException { final String jlineJars = STR; final String testInterfaceJars = STR; final String compilerInterfaceJars = STR; final String utilInterfaceJars = STR; final String jansiJars = STR; final String jnaJars = STR; final String fullPattern = Str...
/** * Rearrange the classloaders so that test-interface is above the scala library. Implemented * without using the scala standard library to minimize classloading. * * @param appProvider the appProvider that needs to be modified * @return a ClassLoader with a URLClassLoader for the test-interface-1.0.ja...
Rearrange the classloaders so that test-interface is above the scala library. Implemented without using the scala standard library to minimize classloading
makeLoader
{ "repo_name": "sbt/sbt", "path": "main/src/main/java/sbt/internal/MetaBuildLoader.java", "license": "apache-2.0", "size": 6327 }
[ "java.io.File", "java.io.IOException", "java.net.URLClassLoader", "java.util.LinkedHashSet", "java.util.Set", "java.util.regex.Pattern" ]
import java.io.File; import java.io.IOException; import java.net.URLClassLoader; import java.util.LinkedHashSet; import java.util.Set; import java.util.regex.Pattern;
import java.io.*; import java.net.*; import java.util.*; import java.util.regex.*;
[ "java.io", "java.net", "java.util" ]
java.io; java.net; java.util;
1,435,290
public static String getPath(final Context context, final Uri uri) { if (DEBUG) Log.d(TAG + " File -", "Authority: " + uri.getAuthority() + ", Fragment: " + uri.getFragment() + ", Port: " + uri.getPort() + ...
static String function(final Context context, final Uri uri) { if (DEBUG) Log.d(TAG + STR, STR + uri.getAuthority() + STR + uri.getFragment() + STR + uri.getPort() + STR + uri.getQuery() + STR + uri.getScheme() + STR + uri.getHost() + STR + uri.getPathSegments().toString() ); final boolean isKitKat = Build.VERSION.SDK_...
/** * Get a file path from a Uri. This will get the the path for Storage Access * Framework Documents, as well as the _data field for the MediaStore and * other file-based ContentProviders.<br> * <br> * Callers should check whether the path is local before assuming it * represents a local ...
Get a file path from a Uri. This will get the the path for Storage Access Framework Documents, as well as the _data field for the MediaStore and other file-based ContentProviders. Callers should check whether the path is local before assuming it represents a local file
getPath
{ "repo_name": "nolram/CadernoAndroid", "path": "app/src/main/java/com/lab11/nolram/helper/FileUtils.java", "license": "apache-2.0", "size": 16941 }
[ "android.content.ContentUris", "android.content.Context", "android.net.Uri", "android.os.Build", "android.os.Environment", "android.provider.DocumentsContract", "android.util.Log" ]
import android.content.ContentUris; import android.content.Context; import android.net.Uri; import android.os.Build; import android.os.Environment; import android.provider.DocumentsContract; import android.util.Log;
import android.content.*; import android.net.*; import android.os.*; import android.provider.*; import android.util.*;
[ "android.content", "android.net", "android.os", "android.provider", "android.util" ]
android.content; android.net; android.os; android.provider; android.util;
324,563
// Do the check only for put operations. if (row.indexSearchRow()) return; long invokeCnt = inlineSizeCalculationCntr.get(); if (!inlineSizeCalculationCntr.compareAndSet(invokeCnt, invokeCnt + 1)) return; boolean throttle = invokeCnt + 1 % inlineSizeThrottleThr...
if (row.indexSearchRow()) return; long invokeCnt = inlineSizeCalculationCntr.get(); if (!inlineSizeCalculationCntr.compareAndSet(invokeCnt, invokeCnt + 1)) return; boolean throttle = invokeCnt + 1 % inlineSizeThrottleThreshold != 0; if (throttle) return; int newSize = 0; for (int i = 0; i < row.rowHandler().inlineIndex...
/** * Calculate aggregate inline size for given indexes and log recommendation in case calculated size more than * current inline size. */
Calculate aggregate inline size for given indexes and log recommendation in case calculated size more than current inline size
recommend
{ "repo_name": "ascherbakoff/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/InlineRecommender.java", "license": "apache-2.0", "size": 5829 }
[ "java.util.stream.Collectors", "org.apache.ignite.IgniteSystemProperties", "org.apache.ignite.internal.cache.query.index.sorted.IndexKeyDefinition", "org.apache.ignite.internal.util.typedef.internal.U" ]
import java.util.stream.Collectors; import org.apache.ignite.IgniteSystemProperties; import org.apache.ignite.internal.cache.query.index.sorted.IndexKeyDefinition; import org.apache.ignite.internal.util.typedef.internal.U;
import java.util.stream.*; import org.apache.ignite.*; import org.apache.ignite.internal.cache.query.index.sorted.*; import org.apache.ignite.internal.util.typedef.internal.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
1,541,530
public Ip4Address networkMask() { return networkMask; }
Ip4Address function() { return networkMask; }
/** * Gets network mask. * * @return networkMask network mask */
Gets network mask
networkMask
{ "repo_name": "sonu283304/onos", "path": "protocols/ospf/protocol/src/main/java/org/onosproject/ospf/protocol/lsa/types/AsbrSummaryLsa.java", "license": "apache-2.0", "size": 6643 }
[ "org.onlab.packet.Ip4Address" ]
import org.onlab.packet.Ip4Address;
import org.onlab.packet.*;
[ "org.onlab.packet" ]
org.onlab.packet;
1,578,996
protected void introspectName(Annotated annotated) { if (_name != null) return; Annotation ann = annotated.getAnnotation(Named.class); if (ann != null) { String value = getNamedValue(ann); if (value == null) value = ""; _name = value; } }
void function(Annotated annotated) { if (_name != null) return; Annotation ann = annotated.getAnnotation(Named.class); if (ann != null) { String value = getNamedValue(ann); if (value == null) value = ""; _name = value; } }
/** * Introspects the qualifier annotations */
Introspects the qualifier annotations
introspectName
{ "repo_name": "dwango/quercus", "path": "src/main/java/com/caucho/config/inject/AbstractIntrospectedBean.java", "license": "gpl-2.0", "size": 17702 }
[ "java.lang.annotation.Annotation", "javax.enterprise.inject.spi.Annotated", "javax.inject.Named" ]
import java.lang.annotation.Annotation; import javax.enterprise.inject.spi.Annotated; import javax.inject.Named;
import java.lang.annotation.*; import javax.enterprise.inject.spi.*; import javax.inject.*;
[ "java.lang", "javax.enterprise", "javax.inject" ]
java.lang; javax.enterprise; javax.inject;
387,305
public ServiceCall<Void> deleteUserAsync(String username, final ServiceCallback<Void> serviceCallback) { return ServiceCall.create(deleteUserWithServiceResponseAsync(username), serviceCallback); }
ServiceCall<Void> function(String username, final ServiceCallback<Void> serviceCallback) { return ServiceCall.create(deleteUserWithServiceResponseAsync(username), serviceCallback); }
/** * Delete user. * This can only be done by the logged in user. * * @param username The name that needs to be deleted * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @return the {@link ServiceCall} object */
Delete user. This can only be done by the logged in user
deleteUserAsync
{ "repo_name": "yugangw-msft/autorest", "path": "Samples/petstore/Java/implementation/SwaggerPetstoreImpl.java", "license": "mit", "size": 99949 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
2,094,116
public void onViewReleased(View releasedChild, float xvel, float yvel) {}
public void onViewReleased(View releasedChild, float xvel, float yvel) {}
/** * Called when a child view is captured for dragging or settling. The ID of the pointer * currently dragging the captured view is supplied. If activePointerId is * identified as {@link #INVALID_POINTER} the capture is programmatic instead of * pointer-initiated. * ...
Called when a child view is captured for dragging or settling. The ID of the pointer currently dragging the captured view is supplied. If activePointerId is identified as <code>#INVALID_POINTER</code> the capture is programmatic instead of pointer-initiated
onViewCaptured
{ "repo_name": "axmadjon/AndroidLib", "path": "app/src/main/java/uz/support/v14/lib/slidingpanel/ViewDragHelper.java", "license": "apache-2.0", "size": 60196 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,995,349
public void upsertCollectionCi(CollectionNode ciNode) { CmsCI ci = cmProcessor.upsertCmsCI(ciNode); for(CollectionLink link: ciNode.getRelations()) { link.setFromCiId(ci.getCiId()); cmProcessor.upsertRelation(link); upsertCollectionCi(link.getLinkedNode()); ...
void function(CollectionNode ciNode) { CmsCI ci = cmProcessor.upsertCmsCI(ciNode); for(CollectionLink link: ciNode.getRelations()) { link.setFromCiId(ci.getCiId()); cmProcessor.upsertRelation(link); upsertCollectionCi(link.getLinkedNode()); } }
/** * Upsert collection ci. * * @param ciNode the ci node */
Upsert collection ci
upsertCollectionCi
{ "repo_name": "oneops/OneOps", "path": "cmsdal/src/main/java/com/oneops/cms/collections/CollectionProcessor.java", "license": "apache-2.0", "size": 9785 }
[ "com.oneops.cms.cm.domain.CmsCI" ]
import com.oneops.cms.cm.domain.CmsCI;
import com.oneops.cms.cm.domain.*;
[ "com.oneops.cms" ]
com.oneops.cms;
1,577,691
public Field getField(String fieldName) { if (fieldName == null) throw new IllegalArgumentException(); for (Field field : definedFields) { if (field.getName().equals(fieldName)) { return field; } ...
Field function(String fieldName) { if (fieldName == null) throw new IllegalArgumentException(); for (Field field : definedFields) { if (field.getName().equals(fieldName)) { return field; } } return null; }
/** * Returns a field with the specified name. * * @param fieldName the field name. * * @return the field object or {@code null} if no field with this name was found. */
Returns a field with the specified name
getField
{ "repo_name": "EastWestFM/logit", "path": "src/main/java/io/github/lucaseasedup/logit/profile/ProfileManager.java", "license": "gpl-3.0", "size": 14011 }
[ "io.github.lucaseasedup.logit.profile.field.Field" ]
import io.github.lucaseasedup.logit.profile.field.Field;
import io.github.lucaseasedup.logit.profile.field.*;
[ "io.github.lucaseasedup" ]
io.github.lucaseasedup;
2,394,367
public synchronized Peer get(DatanodeID dnId, boolean isDomain) { if (capacity <= 0) { // disabled return null; } List<Value> sockStreamList = multimap.get(new Key(dnId, isDomain)); if (sockStreamList == null) { return null; } Iterator<Value> iter = sockStreamList.iterator(); ...
synchronized Peer function(DatanodeID dnId, boolean isDomain) { if (capacity <= 0) { return null; } List<Value> sockStreamList = multimap.get(new Key(dnId, isDomain)); if (sockStreamList == null) { return null; } Iterator<Value> iter = sockStreamList.iterator(); while (iter.hasNext()) { Value candidate = iter.next(); i...
/** * Get a cached peer connected to the given DataNode. * @param dnId The DataNode to get a Peer for. * @param isDomain Whether to retrieve a DomainPeer or not. * * @return An open Peer connected to the DN, or null if none * was found. */
Get a cached peer connected to the given DataNode
get
{ "repo_name": "ict-carch/hadoop-plus", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/PeerCache.java", "license": "apache-2.0", "size": 7825 }
[ "java.util.Iterator", "java.util.List", "org.apache.hadoop.hdfs.net.Peer", "org.apache.hadoop.hdfs.protocol.DatanodeID" ]
import java.util.Iterator; import java.util.List; import org.apache.hadoop.hdfs.net.Peer; import org.apache.hadoop.hdfs.protocol.DatanodeID;
import java.util.*; import org.apache.hadoop.hdfs.net.*; import org.apache.hadoop.hdfs.protocol.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,598,984
@Deprecated public void createTribe(Tribe tribe) throws APIException { throw new APIException("Tribe.object.not.supported", (Object[]) null); }
void function(Tribe tribe) throws APIException { throw new APIException(STR, (Object[]) null); }
/** * Create a new Tribe * * @param tribe Tribe to create * @throws APIException * @deprecated */
Create a new Tribe
createTribe
{ "repo_name": "milankarunarathne/openmrs-core", "path": "api/src/main/java/org/openmrs/api/impl/AdministrationServiceImpl.java", "license": "mpl-2.0", "size": 41300 }
[ "org.openmrs.Tribe", "org.openmrs.api.APIException" ]
import org.openmrs.Tribe; import org.openmrs.api.APIException;
import org.openmrs.*; import org.openmrs.api.*;
[ "org.openmrs", "org.openmrs.api" ]
org.openmrs; org.openmrs.api;
834,879
public SSLContext getSSLContext() throws GeneralSecurityException { init(); return ctx; }
SSLContext function() throws GeneralSecurityException { init(); return ctx; }
/** * Gets the sSLContext attribute of the SSLContextAdapterImpl object * * @return The sSLContext value * @exception GeneralSecurityException Description of the Exception */
Gets the sSLContext attribute of the SSLContextAdapterImpl object
getSSLContext
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4che14/trunk/src/java/org/dcm4cheri/util/SSLContextAdapterImpl.java", "license": "apache-2.0", "size": 26389 }
[ "java.security.GeneralSecurityException", "javax.net.ssl.SSLContext" ]
import java.security.GeneralSecurityException; import javax.net.ssl.SSLContext;
import java.security.*; import javax.net.ssl.*;
[ "java.security", "javax.net" ]
java.security; javax.net;
1,010,882
public long length () { throw new GdxRuntimeException("Stub"); }
long function () { throw new GdxRuntimeException("Stub"); }
/** Returns the length in bytes of this file, or 0 if this file is a directory, does not exist, or the size cannot otherwise be * determined. */
Returns the length in bytes of this file, or 0 if this file is a directory, does not exist, or the size cannot otherwise be
length
{ "repo_name": "srpepperoni/libGDX", "path": "backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/files/FileHandle.java", "license": "apache-2.0", "size": 15200 }
[ "com.badlogic.gdx.utils.GdxRuntimeException" ]
import com.badlogic.gdx.utils.GdxRuntimeException;
import com.badlogic.gdx.utils.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
1,002,601
@SuppressWarnings({ "unchecked" }) public Collection<R> readCollectionElement(Element collectionRoot) { List<Element> children = collectionRoot.elements(rootElement().xmlName()); List<R> items = new ArrayList<R>(children.size()); for (Element child : children) { items.add(rea...
@SuppressWarnings({ STR }) Collection<R> function(Element collectionRoot) { List<Element> children = collectionRoot.elements(rootElement().xmlName()); List<R> items = new ArrayList<R>(children.size()); for (Element child : children) { items.add(readElement(child)); } return items; }
/** * This default implementation discards the collection element and passes every * subelement matching {@link #rootElement} to {@link #readElement}. */
This default implementation discards the collection element and passes every subelement matching <code>#rootElement</code> to <code>#readElement</code>
readCollectionElement
{ "repo_name": "NCIP/psc", "path": "core/src/main/java/edu/northwestern/bioinformatics/studycalendar/xml/AbstractStudyCalendarXmlCollectionSerializer.java", "license": "bsd-3-clause", "size": 3300 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.List", "org.dom4j.Element" ]
import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.dom4j.Element;
import java.util.*; import org.dom4j.*;
[ "java.util", "org.dom4j" ]
java.util; org.dom4j;
198,186
protected void copyFileToRaw() { if (selectedDevice == null) { JOptionPane.showMessageDialog(this, "No device selected."); return; } JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); int result = fileChooser.showOpenDialog(this); ...
void function() { if (selectedDevice == null) { JOptionPane.showMessageDialog(this, STR); return; } JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); int result = fileChooser.showOpenDialog(this); if (result == JFileChooser.APPROVE_OPTION) { File file =...
/** * Copy a file from the 'original' file system to this implementated file * system. */
Copy a file from the 'original' file system to this implementated file system
copyFileToRaw
{ "repo_name": "umr-dbs/xxl-usecases", "path": "src/xxl/core/io/RawExplorer.java", "license": "lgpl-3.0", "size": 82149 }
[ "java.io.File", "java.io.FileNotFoundException", "java.io.IOException", "javax.swing.JFileChooser", "javax.swing.JOptionPane", "xxl.core.io.fat.errors.DirectoryException" ]
import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import xxl.core.io.fat.errors.DirectoryException;
import java.io.*; import javax.swing.*; import xxl.core.io.fat.errors.*;
[ "java.io", "javax.swing", "xxl.core.io" ]
java.io; javax.swing; xxl.core.io;
173,394
@Override public TownyAccountHolder getTownAccountHolder(Player player) { try { Resident resident = TownyUniverse.getInstance().getResident(player.getUniqueId()); Town town = resident.getTown(); return new TownyAccountHolder(town.getAccount(), TAG_TOWN); } ca...
TownyAccountHolder function(Player player) { try { Resident resident = TownyUniverse.getInstance().getResident(player.getUniqueId()); Town town = resident.getTown(); return new TownyAccountHolder(town.getAccount(), TAG_TOWN); } catch (NotRegisteredException ignored) { } return null; }
/** * Get a TownyAccountHolder for the town of which player is a resident, if any. * * @param player player to get town for * @return TownyAccountHolder for the town of which player is a resident, if any. null otherwise. */
Get a TownyAccountHolder for the town of which player is a resident, if any
getTownAccountHolder
{ "repo_name": "MinecraftWars/Gringotts", "path": "src/main/java/org/gestern/gringotts/dependency/TownyHandler.java", "license": "bsd-2-clause", "size": 9178 }
[ "com.palmergames.bukkit.towny.TownyUniverse", "com.palmergames.bukkit.towny.exceptions.NotRegisteredException", "com.palmergames.bukkit.towny.object.Resident", "com.palmergames.bukkit.towny.object.Town", "org.bukkit.entity.Player" ]
import com.palmergames.bukkit.towny.TownyUniverse; import com.palmergames.bukkit.towny.exceptions.NotRegisteredException; import com.palmergames.bukkit.towny.object.Resident; import com.palmergames.bukkit.towny.object.Town; import org.bukkit.entity.Player;
import com.palmergames.bukkit.towny.*; import com.palmergames.bukkit.towny.exceptions.*; import com.palmergames.bukkit.towny.object.*; import org.bukkit.entity.*;
[ "com.palmergames.bukkit", "org.bukkit.entity" ]
com.palmergames.bukkit; org.bukkit.entity;
2,560,208
private void generateDataConsReference(HTMLBuilder builder, ModuleName moduleName, String unqualifiedName, String moduleNameInSource) { generateDataConsReference(builder, null, moduleName, unqualifiedName, moduleNameInSource); }
void function(HTMLBuilder builder, ModuleName moduleName, String unqualifiedName, String moduleNameInSource) { generateDataConsReference(builder, null, moduleName, unqualifiedName, moduleNameInSource); }
/** * Generates a reference to a data constructor, appropriately hyperlinked. * @param builder the HTMLBuilder for generating the reference. * @param moduleName the name of the data constructor's module. Can be null. * @param unqualifiedName the unqualified name of the data constructor. * ...
Generates a reference to a data constructor, appropriately hyperlinked
generateDataConsReference
{ "repo_name": "levans/Open-Quark", "path": "src/CAL_Platform/src/org/openquark/cal/caldoc/HTMLDocumentationGenerator.java", "license": "bsd-3-clause", "size": 414134 }
[ "org.openquark.cal.compiler.ModuleName" ]
import org.openquark.cal.compiler.ModuleName;
import org.openquark.cal.compiler.*;
[ "org.openquark.cal" ]
org.openquark.cal;
669,365
public void setHTable(Table htable) { Configuration conf = htable.getConfiguration(); logScannerActivity = conf.getBoolean( ScannerCallable.LOG_SCANNER_ACTIVITY, false); logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100); this.htable = htable; }
void function(Table htable) { Configuration conf = htable.getConfiguration(); logScannerActivity = conf.getBoolean( ScannerCallable.LOG_SCANNER_ACTIVITY, false); logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100); this.htable = htable; }
/** * Sets the HBase table. * * @param htable The {@link org.apache.hadoop.hbase.HTableDescriptor} to scan. */
Sets the HBase table
setHTable
{ "repo_name": "JingchengDu/hbase", "path": "hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableRecordReaderImpl.java", "license": "apache-2.0", "size": 10428 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.client.ScannerCallable", "org.apache.hadoop.hbase.client.Table" ]
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.client.ScannerCallable; import org.apache.hadoop.hbase.client.Table;
import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.client.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
965,690
public EClass getPEEnumNode() { return peEnumNodeEClass; }
EClass function() { return peEnumNodeEClass; }
/** * Returns the meta object for class '{@link org.mar9000.pe.ecore.PEEnumNode <em>PE Enum Node</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>PE Enum Node</em>'. * @see org.mar9000.pe.ecore.PEEnumNode * @generated */
Returns the meta object for class '<code>org.mar9000.pe.ecore.PEEnumNode PE Enum Node</code>'.
getPEEnumNode
{ "repo_name": "mar9000/pe", "path": "src-gen/org/mar9000/pe/ecore/impl/EcorePackageImpl.java", "license": "apache-2.0", "size": 100111 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
251,392
FilterNode filterExistsWithVars( final String anonymousVar, final String... varNames) { final StatementPatternNode[] statementPatterns = stmtPatternsWithVars(varNames); final VarNode askVar = new VarNode(anonymousVar); askVar.setAnonymous(true); final FilterNode fn...
FilterNode filterExistsWithVars( final String anonymousVar, final String... varNames) { final StatementPatternNode[] statementPatterns = stmtPatternsWithVars(varNames); final VarNode askVar = new VarNode(anonymousVar); askVar.setAnonymous(true); final FilterNode fn = (FilterNode) new Helper(){{ tmp = filter( notExists(...
/** * Returns a fresh FILTER NOT EXISTS node with the specified variables * in their body. */
Returns a fresh FILTER NOT EXISTS node with the specified variables in their body
filterExistsWithVars
{ "repo_name": "blazegraph/database", "path": "bigdata-rdf-test/src/test/java/com/bigdata/rdf/sparql/ast/optimizers/AbstractOptimizerTestCaseWithUtilityMethods.java", "license": "gpl-2.0", "size": 21535 }
[ "com.bigdata.rdf.sparql.ast.FilterNode", "com.bigdata.rdf.sparql.ast.StatementPatternNode", "com.bigdata.rdf.sparql.ast.VarNode" ]
import com.bigdata.rdf.sparql.ast.FilterNode; import com.bigdata.rdf.sparql.ast.StatementPatternNode; import com.bigdata.rdf.sparql.ast.VarNode;
import com.bigdata.rdf.sparql.ast.*;
[ "com.bigdata.rdf" ]
com.bigdata.rdf;
2,879,914
@Bean public AutoPivotGenerator generator() { return new AutoPivotGenerator(); }
AutoPivotGenerator function() { return new AutoPivotGenerator(); }
/** * * Generator of store and cube descriptions. * * @return ActivePivot generator */
Generator of store and cube descriptions
generator
{ "repo_name": "activeviam/autopivot", "path": "src/main/java/com/av/autopivot/spring/ActivePivotManagerDescriptionConfig.java", "license": "apache-2.0", "size": 2889 }
[ "com.av.autopivot.AutoPivotGenerator" ]
import com.av.autopivot.AutoPivotGenerator;
import com.av.autopivot.*;
[ "com.av.autopivot" ]
com.av.autopivot;
736,404
public ServiceResponse<DateWrapper> getDate() throws ErrorException, IOException { Call<ResponseBody> call = service.getDate(); return getDateDelegate(call.execute()); }
ServiceResponse<DateWrapper> function() throws ErrorException, IOException { Call<ResponseBody> call = service.getDate(); return getDateDelegate(call.execute()); }
/** * Get complex types with date properties. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the DateWrapper object wrapped in {@link ServiceResponse} if successful. */
Get complex types with date properties
getDate
{ "repo_name": "yaqiyang/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodycomplex/implementation/PrimitivesImpl.java", "license": "mit", "size": 62063 }
[ "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,539,180
public OneResponse info() { OneResponse response = info(client, id); super.processInfo(response); return response; }
OneResponse function() { OneResponse response = info(client, id); super.processInfo(response); return response; }
/** * Loads the xml representation of the zone. * The info is also stored internally. * * @see Zone#info(Client, int) */
Loads the xml representation of the zone. The info is also stored internally
info
{ "repo_name": "baby-gnu/one", "path": "src/oca/java/src/org/opennebula/client/zone/Zone.java", "license": "apache-2.0", "size": 6051 }
[ "org.opennebula.client.OneResponse" ]
import org.opennebula.client.OneResponse;
import org.opennebula.client.*;
[ "org.opennebula.client" ]
org.opennebula.client;
1,576,979
static Socket createSocketForPipeline(final DatanodeInfo first, final int length, final DFSClient client) throws IOException { final String dnAddr = first.getXferAddr( client.getConf().connectToDnViaHostname); if (DFSClient.LOG.isDebugEnabled()) { DFSClient.LOG.debug("Connecting to datanod...
static Socket createSocketForPipeline(final DatanodeInfo first, final int length, final DFSClient client) throws IOException { final String dnAddr = first.getXferAddr( client.getConf().connectToDnViaHostname); if (DFSClient.LOG.isDebugEnabled()) { DFSClient.LOG.debug(STR + dnAddr); } final InetSocketAddress isa = NetUt...
/** * Create a socket for a write pipeline * @param first the first datanode * @param length the pipeline length * @param client client * @return the socket connected to the first datanode */
Create a socket for a write pipeline
createSocketForPipeline
{ "repo_name": "jsrudani/HadoopHDFSProject", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java", "license": "apache-2.0", "size": 75029 }
[ "java.io.IOException", "java.net.InetSocketAddress", "java.net.Socket", "org.apache.hadoop.hdfs.protocol.DatanodeInfo", "org.apache.hadoop.hdfs.protocol.HdfsConstants", "org.apache.hadoop.net.NetUtils" ]
import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; import org.apache.hadoop.hdfs.protocol.DatanodeInfo; import org.apache.hadoop.hdfs.protocol.HdfsConstants; import org.apache.hadoop.net.NetUtils;
import java.io.*; import java.net.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.net.*;
[ "java.io", "java.net", "org.apache.hadoop" ]
java.io; java.net; org.apache.hadoop;
922,653
public Builder<U, T> appendUnit( U unit, UnitRule<T> rule, double length ) { Set<U> none = Collections.emptySet(); return this.appendUnit(unit, rule, length, none); } /*[deutsch] * <p>Registriert ei...
Builder<U, T> function( U unit, UnitRule<T> rule, double length ) { Set<U> none = Collections.emptySet(); return this.appendUnit(unit, rule, length, none); } /*[deutsch] * <p>Registriert eine neue Zeiteinheit mitsamt Einheitsregel. </p> * * <p>Die Regel zur Zeiteinheit definiert die Zeitarithmetik in der * Addition und...
/** * <p>Registers a non-convertible time unit with an associated * unit rule. </p> * * <p>Is equivalent to {@link #appendUnit(Object,UnitRule,double,Set) * appendUnit(U, rule, length, Collections.emptySet())}. </p> * * @param unit time uni...
Registers a non-convertible time unit with an associated unit rule. Is equivalent to <code>#appendUnit(Object,UnitRule,double,Set) appendUnit(U, rule, length, Collections.emptySet())</code>.
appendUnit
{ "repo_name": "MenoData/Time4J", "path": "base/src/main/java/net/time4j/engine/TimeAxis.java", "license": "lgpl-2.1", "size": 43801 }
[ "java.util.Collections", "java.util.Set" ]
import java.util.Collections; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,684,389
public void setSerializerFactory(SerializerFactory serializerFactory) { this.proxyFactory.setSerializerFactory(serializerFactory); }
void function(SerializerFactory serializerFactory) { this.proxyFactory.setSerializerFactory(serializerFactory); }
/** * Specify the Hessian SerializerFactory to use. * <p>This will typically be passed in as an inner bean definition * of type <code>com.caucho.hessian.io.SerializerFactory</code>, * with custom bean property values applied. */
Specify the Hessian SerializerFactory to use. This will typically be passed in as an inner bean definition of type <code>com.caucho.hessian.io.SerializerFactory</code>, with custom bean property values applied
setSerializerFactory
{ "repo_name": "codeApeFromChina/resource", "path": "frame_packages/java_libs/spring-2.5.6-src/src/org/springframework/remoting/caucho/HessianClientInterceptor.java", "license": "unlicense", "size": 9600 }
[ "com.caucho.hessian.io.SerializerFactory" ]
import com.caucho.hessian.io.SerializerFactory;
import com.caucho.hessian.io.*;
[ "com.caucho.hessian" ]
com.caucho.hessian;
248,098
public static <T1, T2, T3, T4, T5, T6, R> Function<T6, R> partial6(final T1 t1, final T2 t2, final T3 t3, final T4 t4, final T5 t5, final Function6<T1, T2, T3, T4, T5, T6, R> hexFunc) { return (t6) -> hexFunc.apply(t1, t2, t3, t4, t5, t6); }
static <T1, T2, T3, T4, T5, T6, R> Function<T6, R> function(final T1 t1, final T2 t2, final T3 t3, final T4 t4, final T5 t5, final Function6<T1, T2, T3, T4, T5, T6, R> hexFunc) { return (t6) -> hexFunc.apply(t1, t2, t3, t4, t5, t6); }
/** * Returns a Function with 5 arguments applied to the supplied HexFunction * @param t1 Generic argument * @param t2 Generic argument * @param t3 Generic argument * @param t4 Generic argument * @param t5 Generic argument * @param hexFunc Function that accepts 6 parameters * @pa...
Returns a Function with 5 arguments applied to the supplied HexFunction
partial6
{ "repo_name": "aol/cyclops-react", "path": "cyclops/src/main/java/cyclops/function/PartialApplicator.java", "license": "apache-2.0", "size": 34207 }
[ "java.util.function.Function" ]
import java.util.function.Function;
import java.util.function.*;
[ "java.util" ]
java.util;
1,298,595
public void putFrame(Scalar color, int thickness) { if (currImage != null) { super.putFrame(currImage, objectRects, color, thickness); } } //putFrame
void function(Scalar color, int thickness) { if (currImage != null) { super.putFrame(currImage, objectRects, color, thickness); } }
/** * This method update the video stream with the detected targets overlay on the image as rectangles. * * @param color specifies the color of the rectangle outline overlay onto the detected targets. * @param thickness specifies the thickness of the rectangle outline. */
This method update the video stream with the detected targets overlay on the image as rectangles
putFrame
{ "repo_name": "trc492/Frc2017FirstSteamWorks", "path": "src/frclib/FrcVisionTarget.java", "license": "mit", "size": 6100 }
[ "org.opencv.core.Scalar" ]
import org.opencv.core.Scalar;
import org.opencv.core.*;
[ "org.opencv.core" ]
org.opencv.core;
2,085,613
public SlotConfigNamesResourceInner withConnectionStringNames(List<String> connectionStringNames) { if (this.innerProperties() == null) { this.innerProperties = new SlotConfigNames(); } this.innerProperties().withConnectionStringNames(connectionStringNames); return this; ...
SlotConfigNamesResourceInner function(List<String> connectionStringNames) { if (this.innerProperties() == null) { this.innerProperties = new SlotConfigNames(); } this.innerProperties().withConnectionStringNames(connectionStringNames); return this; }
/** * Set the connectionStringNames property: List of connection string names. * * @param connectionStringNames the connectionStringNames value to set. * @return the SlotConfigNamesResourceInner object itself. */
Set the connectionStringNames property: List of connection string names
withConnectionStringNames
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SlotConfigNamesResourceInner.java", "license": "mit", "size": 4199 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,341,010
public final Property<ExternalIdBean> underlying() { return metaBean().underlying().createProperty(this); }
final Property<ExternalIdBean> function() { return metaBean().underlying().createProperty(this); }
/** * Gets the the {@code underlying} property. * @return the property, not null */
Gets the the underlying property
underlying
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-MasterDB/src/main/java/com/opengamma/masterdb/security/hibernate/option/CreditDefaultSwapOptionSecurityBean.java", "license": "apache-2.0", "size": 25678 }
[ "com.opengamma.masterdb.security.hibernate.ExternalIdBean", "org.joda.beans.Property" ]
import com.opengamma.masterdb.security.hibernate.ExternalIdBean; import org.joda.beans.Property;
import com.opengamma.masterdb.security.hibernate.*; import org.joda.beans.*;
[ "com.opengamma.masterdb", "org.joda.beans" ]
com.opengamma.masterdb; org.joda.beans;
939,523
public void warning(final Object... objs) { log(Level.WARNING, objs); }
void function(final Object... objs) { log(Level.WARNING, objs); }
/** * Shorthand for outputting a log string as log level * {@link java.util.logging.Level#FINE} on this logger * @param objs object array to log - use this to perform lazy concatenation to avoid unconditional toString overhead */
Shorthand for outputting a log string as log level <code>java.util.logging.Level#FINE</code> on this logger
warning
{ "repo_name": "exstar/nashorn", "path": "src/main/java/jdk/nashorn/internal/runtime/DebugLogger.java", "license": "gpl-2.0", "size": 9521 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
1,833,802
public void test_equals() { String name1 = "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US"; String name2 = "cn=duke,ou=javasoft,o=sun microsystems,c=us"; String name3 = "CN=Alex Astapchuk, OU=SSG, O=Intel ZAO, C=RU"; X500Principal xpr1 = new X500Principal(name1); X500Princip...
void function() { String name1 = STR; String name2 = STR; String name3 = STR; X500Principal xpr1 = new X500Principal(name1); X500Principal xpr2 = new X500Principal(name2); X500Principal xpr3 = new X500Principal(name3); try { assertTrue(STR, xpr1.equals(xpr2)); assertFalse(STR, xpr1.equals(xpr3)); } catch (Exception e) ...
/** * javax.security.auth.x500.X500Principal#equals(Object o) */
javax.security.auth.x500.X500Principal#equals(Object o)
test_equals
{ "repo_name": "AdmireTheDistance/android_libcore", "path": "harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/X500PrincipalTest.java", "license": "gpl-2.0", "size": 127872 }
[ "javax.security.auth.x500.X500Principal" ]
import javax.security.auth.x500.X500Principal;
import javax.security.auth.x500.*;
[ "javax.security" ]
javax.security;
1,320,076
public void onDimensionsFetched(List<ReportingMetadataEntry> items) { dimensions = items; }
void function(List<ReportingMetadataEntry> items) { dimensions = items; }
/** * Called when the dimensions are fetched. * @param items the list of dimensions */
Called when the dimensions are fetched
onDimensionsFetched
{ "repo_name": "zaret-rocket/googleads-adsense-examples", "path": "android/src/com/google/adsensequickstart/api/ApiController.java", "license": "apache-2.0", "size": 5557 }
[ "com.google.api.services.adsense.model.ReportingMetadataEntry", "java.util.List" ]
import com.google.api.services.adsense.model.ReportingMetadataEntry; import java.util.List;
import com.google.api.services.adsense.model.*; import java.util.*;
[ "com.google.api", "java.util" ]
com.google.api; java.util;
2,628,504
@Generated @Selector("shouldAddStoreAsynchronously") public native boolean shouldAddStoreAsynchronously();
@Selector(STR) native boolean function();
/** * addPersistentStore-time behaviours */
addPersistentStore-time behaviours
shouldAddStoreAsynchronously
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/coredata/NSPersistentStoreDescription.java", "license": "apache-2.0", "size": 8790 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
1,030,460
public static StackTraceElement[] getScriptFrames(final Throwable exception) { final StackTraceElement[] frames = exception.getStackTrace(); final List<StackTraceElement> filtered = new ArrayList<>(); for (final StackTraceElement st : frames) { if (ECMAErrors.isScriptFrame(st)) {...
static StackTraceElement[] function(final Throwable exception) { final StackTraceElement[] frames = exception.getStackTrace(); final List<StackTraceElement> filtered = new ArrayList<>(); for (final StackTraceElement st : frames) { if (ECMAErrors.isScriptFrame(st)) { final String className = "<" + st.getFileName() + ">"...
/** * Returns array javascript stack frames from the given exception object. * * @param exception exception from which stack frames are retrieved and filtered * @return array of javascript stack frames */
Returns array javascript stack frames from the given exception object
getScriptFrames
{ "repo_name": "FauxFaux/jdk9-nashorn", "path": "src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/scripting/NashornException.java", "license": "gpl-2.0", "size": 10172 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
41,667
private Map<String, String> getValidReportNameFormats( ArrayAttributeValue<?> arrayVal) { HashMap<String, String> validReportNameFormats = new HashMap<String, String>(); StringAttributeValue sAttrValue = null; String[] reportNameFormat; for (Object o : arrayVal.getValue()...
Map<String, String> function( ArrayAttributeValue<?> arrayVal) { HashMap<String, String> validReportNameFormats = new HashMap<String, String>(); StringAttributeValue sAttrValue = null; String[] reportNameFormat; for (Object o : arrayVal.getValue()) { if (!(o instanceof StringAttributeValue)) { return null; } sAttrValue...
/** * Returns a HashMap<String, String>. Key is reportName; Value is the csv of * formats. * * @param arrayVal * @return */
Returns a HashMap. Key is reportName; Value is the csv of formats
getValidReportNameFormats
{ "repo_name": "osroca/gvnix", "path": "addon-web-mvc-report/addon/src/main/java/org/gvnix/web/report/roo/addon/addon/ReportMetadataProvider.java", "license": "gpl-3.0", "size": 16693 }
[ "java.util.HashMap", "java.util.Map", "org.springframework.roo.classpath.details.annotations.ArrayAttributeValue", "org.springframework.roo.classpath.details.annotations.StringAttributeValue" ]
import java.util.HashMap; import java.util.Map; import org.springframework.roo.classpath.details.annotations.ArrayAttributeValue; import org.springframework.roo.classpath.details.annotations.StringAttributeValue;
import java.util.*; import org.springframework.roo.classpath.details.annotations.*;
[ "java.util", "org.springframework.roo" ]
java.util; org.springframework.roo;
1,129,061
@Override public void prepareStreams(InputStream in, OutputStream out) throws IOException { m_InputStream = new DataInputStream(new ASCIIInputStream(in)); m_OutputStream = new ASCIIOutputStream(out); m_ByteOut = new BytesOutputStream(Modbus.MAX_MESSAGE_LENGTH); m_InBuffer = new b...
void function(InputStream in, OutputStream out) throws IOException { m_InputStream = new DataInputStream(new ASCIIInputStream(in)); m_OutputStream = new ASCIIOutputStream(out); m_ByteOut = new BytesOutputStream(Modbus.MAX_MESSAGE_LENGTH); m_InBuffer = new byte[Modbus.MAX_MESSAGE_LENGTH]; m_ByteIn = new BytesInputStream...
/** * Prepares the input and output streams of this * <tt>ModbusASCIITransport</tt> instance. * The raw input stream will be wrapped into a * filtered <tt>DataInputStream</tt>. * * @param in the input stream to be used for reading. * @param out the output stream to be used for writing...
Prepares the input and output streams of this ModbusASCIITransport instance. The raw input stream will be wrapped into a filtered DataInputStream
prepareStreams
{ "repo_name": "jowiho/openhab", "path": "bundles/binding/org.openhab.binding.modbus/src/main/java/net/wimpi/modbus/io/ModbusASCIITransport.java", "license": "epl-1.0", "size": 9641 }
[ "java.io.DataInputStream", "java.io.IOException", "java.io.InputStream", "java.io.OutputStream", "net.wimpi.modbus.Modbus" ]
import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import net.wimpi.modbus.Modbus;
import java.io.*; import net.wimpi.modbus.*;
[ "java.io", "net.wimpi.modbus" ]
java.io; net.wimpi.modbus;
491,330
private OfficeConnection.Document runIntented() { String scheme = this.toRun.getScheme(); TextView txtMessage = (TextView) this.findViewById(R.id.message); OfficeConnection.Document doc = null; // A remote presentation document. if ( "http".equals(scheme) || "http...
OfficeConnection.Document function() { String scheme = this.toRun.getScheme(); TextView txtMessage = (TextView) this.findViewById(R.id.message); OfficeConnection.Document doc = null; if ( "http".equals(scheme) "https".equals(scheme) "ftp".equals(scheme)) { try { doc = this.conn.open(this.toRun.toString()); } catch (jav...
/** * Runs the intented local presentation document. * * @return the loaded presentation document */
Runs the intented local presentation document
runIntented
{ "repo_name": "imacat/mpresent-android", "path": "src/tw/idv/imacat/android/mpresent/RemoteControllerActivity.java", "license": "gpl-3.0", "size": 42701 }
[ "android.widget.TextView", "java.io.FileInputStream", "tw.idv.imacat.android.mpresent.uno.FileAccess", "tw.idv.imacat.android.mpresent.uno.OfficeConnection" ]
import android.widget.TextView; import java.io.FileInputStream; import tw.idv.imacat.android.mpresent.uno.FileAccess; import tw.idv.imacat.android.mpresent.uno.OfficeConnection;
import android.widget.*; import java.io.*; import tw.idv.imacat.android.mpresent.uno.*;
[ "android.widget", "java.io", "tw.idv.imacat" ]
android.widget; java.io; tw.idv.imacat;
1,252,179
azure .networks() .manager() .serviceClient() .getAzureFirewalls() .updateTags( "azfwtest", "fw1", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), Context.NONE); }
azure .networks() .manager() .serviceClient() .getAzureFirewalls() .updateTags( STR, "fw1", new TagsObject().withTags(mapOf("tag1", STR, "tag2", STR)), Context.NONE); }
/** * Sample code: Update Azure Firewall Tags. * * @param azure The entry point for accessing resource management APIs in Azure. */
Sample code: Update Azure Firewall Tags
updateAzureFirewallTags
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsUpdateTagsSamples.java", "license": "mit", "size": 1499 }
[ "com.azure.core.util.Context", "com.azure.resourcemanager.network.models.TagsObject" ]
import com.azure.core.util.Context; import com.azure.resourcemanager.network.models.TagsObject;
import com.azure.core.util.*; import com.azure.resourcemanager.network.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,334,225
protected void displayToast(String text) { Log.e(TAG, text); Toast.makeText(this, text, Toast.LENGTH_LONG).show(); }
void function(String text) { Log.e(TAG, text); Toast.makeText(this, text, Toast.LENGTH_LONG).show(); }
/** * Display toast * @param text Message */
Display toast
displayToast
{ "repo_name": "andrew-bowley/classy_android", "path": "app/src/main/java/au/com/cybersearch2/classyfy/MainActivity.java", "license": "gpl-3.0", "size": 9940 }
[ "android.util.Log", "android.widget.Toast" ]
import android.util.Log; import android.widget.Toast;
import android.util.*; import android.widget.*;
[ "android.util", "android.widget" ]
android.util; android.widget;
2,366,517
public void removeNetwork(RemoveNetworkParams params) throws IOException { try (DockerConnection connection = connectionFactory.openConnection(dockerDaemonUri) .method("DELETE") .path(apiV...
void function(RemoveNetworkParams params) throws IOException { try (DockerConnection connection = connectionFactory.openConnection(dockerDaemonUri) .method(STR) .path(apiVersionPathPrefix + STR + params.getNetworkId())) { final DockerResponse response = connection.request(); if (response.getStatus() / 100 != 2) { throw...
/** * Removes network matching provided params * * @throws IOException * when a problem occurs with docker api calls */
Removes network matching provided params
removeNetwork
{ "repo_name": "slemeur/che", "path": "plugins/plugin-docker/che-plugin-docker-client/src/main/java/org/eclipse/che/plugin/docker/client/DockerConnector.java", "license": "epl-1.0", "size": 67150 }
[ "java.io.IOException", "org.eclipse.che.plugin.docker.client.connection.DockerConnection", "org.eclipse.che.plugin.docker.client.connection.DockerResponse", "org.eclipse.che.plugin.docker.client.params.RemoveNetworkParams" ]
import java.io.IOException; import org.eclipse.che.plugin.docker.client.connection.DockerConnection; import org.eclipse.che.plugin.docker.client.connection.DockerResponse; import org.eclipse.che.plugin.docker.client.params.RemoveNetworkParams;
import java.io.*; import org.eclipse.che.plugin.docker.client.connection.*; import org.eclipse.che.plugin.docker.client.params.*;
[ "java.io", "org.eclipse.che" ]
java.io; org.eclipse.che;
2,693,315
public String getStartPointEndingStyle() { String retval = LE_NONE; COSArray array = (COSArray) getDictionary().getDictionaryObject("LE"); if (array != null) { retval = array.getName(0); } return retval; }
String function() { String retval = LE_NONE; COSArray array = (COSArray) getDictionary().getDictionaryObject("LE"); if (array != null) { retval = array.getName(0); } return retval; }
/** * This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section. * * @return The ending style for the start point. */
This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section
getStartPointEndingStyle
{ "repo_name": "sencko/NALB", "path": "nalb2013/src/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java", "license": "gpl-2.0", "size": 11826 }
[ "org.apache.pdfbox.cos.COSArray" ]
import org.apache.pdfbox.cos.COSArray;
import org.apache.pdfbox.cos.*;
[ "org.apache.pdfbox" ]
org.apache.pdfbox;
1,610,924
public void createYangFileInfoSet(List<String> yangFileList) { for (String yangFile : yangFileList) { YangFileInfo yangFileInfo = new YangFileInfo(); yangFileInfo.setYangFileName(yangFile); getYangFileInfoSet().add(yangFileInfo); } }
void function(List<String> yangFileList) { for (String yangFile : yangFileList) { YangFileInfo yangFileInfo = new YangFileInfo(); yangFileInfo.setYangFileName(yangFile); getYangFileInfoSet().add(yangFileInfo); } }
/** * Creates a YANG file info set. * * @param yangFileList YANG files list */
Creates a YANG file info set
createYangFileInfoSet
{ "repo_name": "VinodKumarS-Huawei/ietf96yang", "path": "utils/yangutils/plugin/src/main/java/org/onosproject/yangutils/plugin/manager/YangUtilManager.java", "license": "apache-2.0", "size": 15130 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
124,010
private boolean isNotPresentInRoots(File f) { boolean isNotPresent = true; for (File r : roots) { if (r.equals(f)) { isNotPresent = false; break; } } return isNotPresent; }
boolean function(File f) { boolean isNotPresent = true; for (File r : roots) { if (r.equals(f)) { isNotPresent = false; break; } } return isNotPresent; }
/** * Checks if is not present in roots. * * @param f * the f * @return true, if is not present in roots */
Checks if is not present in roots
isNotPresentInRoots
{ "repo_name": "synergynet/synergynet3.1", "path": "synergynet3.1-parent/synergynet3-appsystem-core/src/main/java/synergynet3/mediadetection/mediasearch/threads/SearchDirectoryThread.java", "license": "bsd-3-clause", "size": 3756 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,151,410
public synchronized int writeTo(OutputStream output) throws IOException { if (written == 0 && closed) return -1; int result = written; output.write(bytes, 0, written); written = 0; notify(); return result; }
synchronized int function(OutputStream output) throws IOException { if (written == 0 && closed) return -1; int result = written; output.write(bytes, 0, written); written = 0; notify(); return result; }
/** * Writes the bytes from the internal buffer into the given * {@link OutputStream}. The internal buffer will be empty after * the operation. * * @param output a stream to write the bytes from the internal buffer * @return the amount of bytes written */
Writes the bytes from the internal buffer into the given <code>OutputStream</code>. The internal buffer will be empty after the operation
writeTo
{ "repo_name": "hhedberg/ohap", "path": "src/java/com/henrikhedberg/util/BufferOutputStream.java", "license": "gpl-2.0", "size": 4875 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,303,627
public List<Autoaction> getAutoactionCollection( ) { return this.m_autoactionList; }
List<Autoaction> function( ) { return this.m_autoactionList; }
/** * Method getAutoactionCollection.Returns a reference to * '_autoactionList'. No type checking is performed on any * modifications to the Vector. * * @return a reference to the Vector backing this class */
Method getAutoactionCollection.Returns a reference to '_autoactionList'. No type checking is performed on any modifications to the Vector
getAutoactionCollection
{ "repo_name": "vishwaAbhinav/OpenNMS", "path": "opennms-config/src/main/java/org/opennms/netmgt/xml/eventconf/Event.java", "license": "gpl-2.0", "size": 56737 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,362,831
int getRedstoneInput(ItemStack stack, IUpgradableBlock parent, int externalInput);
int getRedstoneInput(ItemStack stack, IUpgradableBlock parent, int externalInput);
/** * Change the redstone input given the {@link IUpgradableBlock}'s initial input value * * @param stack The upgrade stack * @param parent The block receiving the redstone signal * @param externalInput The initial redstone signal * * @return The new redstone signal */
Change the redstone input given the <code>IUpgradableBlock</code>'s initial input value
getRedstoneInput
{ "repo_name": "XFireEyeZ/Magical-Tech", "path": "src/main/java/ic2/api/upgrade/IRedstoneSensitiveUpgrade.java", "license": "lgpl-2.1", "size": 1032 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
2,026,068
LOG.info("Fetching lineage outputs graph for datasetName={}", datasetName); ParamChecker.notEmpty(datasetName, "dataset name"); ReferenceableInstance datasetInstance = validateDatasetNameExists(datasetName); return getOutputsGraphForId(datasetInstance.getId()._getId()); }
LOG.info(STR, datasetName); ParamChecker.notEmpty(datasetName, STR); ReferenceableInstance datasetInstance = validateDatasetNameExists(datasetName); return getOutputsGraphForId(datasetInstance.getId()._getId()); }
/** * Return the lineage outputs graph for the given datasetName. * * @param datasetName datasetName * @return Outputs Graph as JSON */
Return the lineage outputs graph for the given datasetName
getOutputsGraph
{ "repo_name": "jnhagelberg/incubator-atlas", "path": "repository/src/main/java/org/apache/atlas/discovery/DataSetLineageService.java", "license": "apache-2.0", "size": 9156 }
[ "org.apache.atlas.typesystem.persistence.ReferenceableInstance", "org.apache.atlas.utils.ParamChecker" ]
import org.apache.atlas.typesystem.persistence.ReferenceableInstance; import org.apache.atlas.utils.ParamChecker;
import org.apache.atlas.typesystem.persistence.*; import org.apache.atlas.utils.*;
[ "org.apache.atlas" ]
org.apache.atlas;
2,453,148
protected boolean isMatch(String beanName, String mappedName) { return PatternMatchUtils.simpleMatch(mappedName, beanName); }
boolean function(String beanName, String mappedName) { return PatternMatchUtils.simpleMatch(mappedName, beanName); }
/** * Return if the given bean name matches the mapped name. * <p>The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, * as well as direct equality. Can be overridden in subclasses. * @param beanName the bean name to check * @param mappedName the name in the configured list of names * @...
Return if the given bean name matches the mapped name. The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality. Can be overridden in subclasses
isMatch
{ "repo_name": "boggad/jdk9-sample", "path": "sample-catalog/spring-jdk9/src/spring.aop/org/springframework/aop/framework/autoproxy/BeanNameAutoProxyCreator.java", "license": "mit", "size": 4235 }
[ "org.springframework.util.PatternMatchUtils" ]
import org.springframework.util.PatternMatchUtils;
import org.springframework.util.*;
[ "org.springframework.util" ]
org.springframework.util;
1,288,122
public ConstraintBuilder isVariable( Operator operator, String variableName ) { CheckArg.isNotNull(operator, "operator"); return this.constraintBuilder.setConstraint(new Comparison(left, operator, new BindVariableName(variableName))); ...
ConstraintBuilder function( Operator operator, String variableName ) { CheckArg.isNotNull(operator, STR); return this.constraintBuilder.setConstraint(new Comparison(left, operator, new BindVariableName(variableName))); }
/** * Define the right-hand-side of the constraint using the supplied operator. * * @param operator the operator; may not be null * @param variableName the name of the variable * @return the builder used to create the constraint clause, ready to be used to create other cons...
Define the right-hand-side of the constraint using the supplied operator
isVariable
{ "repo_name": "vhalbert/modeshape", "path": "modeshape-jcr/src/main/java/org/modeshape/jcr/query/QueryBuilder.java", "license": "apache-2.0", "size": 126740 }
[ "org.modeshape.common.util.CheckArg", "org.modeshape.jcr.api.query.qom.Operator", "org.modeshape.jcr.query.model.BindVariableName", "org.modeshape.jcr.query.model.Comparison" ]
import org.modeshape.common.util.CheckArg; import org.modeshape.jcr.api.query.qom.Operator; import org.modeshape.jcr.query.model.BindVariableName; import org.modeshape.jcr.query.model.Comparison;
import org.modeshape.common.util.*; import org.modeshape.jcr.api.query.qom.*; import org.modeshape.jcr.query.model.*;
[ "org.modeshape.common", "org.modeshape.jcr" ]
org.modeshape.common; org.modeshape.jcr;
1,939,252
public QueryMetrics queryMetrics();
QueryMetrics function();
/** * Gets query metrics. * * @return Metrics. */
Gets query metrics
queryMetrics
{ "repo_name": "andrey-kuznetsov/ignite", "path": "modules/core/src/main/java/org/apache/ignite/IgniteCache.java", "license": "apache-2.0", "size": 77739 }
[ "org.apache.ignite.cache.query.QueryMetrics" ]
import org.apache.ignite.cache.query.QueryMetrics;
import org.apache.ignite.cache.query.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,790,962
public static Boolean parseBoolean(CamelContext camelContext, String text) throws Exception { // ensure we support property placeholders String s = camelContext.resolvePropertyPlaceholders(text); if (s != null) { s = s.trim().toLowerCase(Locale.ENGLISH); if (s.equals(...
static Boolean function(CamelContext camelContext, String text) throws Exception { String s = camelContext.resolvePropertyPlaceholders(text); if (s != null) { s = s.trim().toLowerCase(Locale.ENGLISH); if (s.equals("true") s.equals("false")) { return "true".equals(s) ? Boolean.TRUE : Boolean.FALSE; } else { if (s.equals...
/** * Parses the given text and converts it to an Boolean and handling property placeholders as well * * @param camelContext the camel context * @param text the text * @return the boolean vale, or <tt>null</tt> if the text was <tt>null</tt> * @throws Exception is thrown if illegal argumen...
Parses the given text and converts it to an Boolean and handling property placeholders as well
parseBoolean
{ "repo_name": "punkhorn/camel-upstream", "path": "core/camel-support/src/main/java/org/apache/camel/support/CamelContextHelper.java", "license": "apache-2.0", "size": 30027 }
[ "java.util.Locale", "org.apache.camel.CamelContext" ]
import java.util.Locale; import org.apache.camel.CamelContext;
import java.util.*; import org.apache.camel.*;
[ "java.util", "org.apache.camel" ]
java.util; org.apache.camel;
1,477,847
public Builder removeCast(Node n, AbstractCompiler compiler) { checkArgument(n.isCast()); JSDocInfo jsDoc = n.getJSDocInfo(); replacements.put( n.getSourceFileName(), CodeReplacement.create( jsDoc.getOriginalCommentPosition(), n.getFirstChild().getSo...
Builder function(Node n, AbstractCompiler compiler) { checkArgument(n.isCast()); JSDocInfo jsDoc = n.getJSDocInfo(); replacements.put( n.getSourceFileName(), CodeReplacement.create( jsDoc.getOriginalCommentPosition(), n.getFirstChild().getSourceOffset() - jsDoc.getOriginalCommentPosition(), STR")); return this; }
/** * Removes a cast from the given node. */
Removes a cast from the given node
removeCast
{ "repo_name": "GoogleChromeLabs/chromeos_smart_card_connector", "path": "third_party/closure-compiler/src/src/com/google/javascript/refactoring/SuggestedFix.java", "license": "apache-2.0", "size": 35397 }
[ "com.google.common.base.Preconditions", "com.google.javascript.jscomp.AbstractCompiler", "com.google.javascript.rhino.JSDocInfo", "com.google.javascript.rhino.Node" ]
import com.google.common.base.Preconditions; import com.google.javascript.jscomp.AbstractCompiler; import com.google.javascript.rhino.JSDocInfo; import com.google.javascript.rhino.Node;
import com.google.common.base.*; import com.google.javascript.jscomp.*; import com.google.javascript.rhino.*;
[ "com.google.common", "com.google.javascript" ]
com.google.common; com.google.javascript;
1,251,491
public List<String> notScopes() { return this.notScopes; }
List<String> function() { return this.notScopes; }
/** * Get the policy's excluded scopes. * * @return the notScopes value */
Get the policy's excluded scopes
notScopes
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/policy/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/policy/v2019_09_01/implementation/PolicyAssignmentInner.java", "license": "mit", "size": 9284 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
296,039
@Test public void testSignatureForDataV3() throws Exception { System.out.println("# PowerAuth Signature"); System.out.println(); // Prepare data KeyGenerator keyGenerator = new KeyGenerator(); KeyPair serverKeyPair = keyGenerator.generateKeyPair(); PrivateKey se...
void function() throws Exception { System.out.println(STR); System.out.println(); KeyGenerator keyGenerator = new KeyGenerator(); KeyPair serverKeyPair = keyGenerator.generateKeyPair(); PrivateKey serverPrivateKey = serverKeyPair.getPrivate(); PublicKey serverPublicKey = serverKeyPair.getPublic(); System.out.println(ST...
/** * Test of signature generation and validation. * * <p><b>PowerAuth protocol versions:</b> * <ul> * <li>3.0</li> * </ul> * * @throws java.lang.Exception If the test fails. */
Test of signature generation and validation. PowerAuth protocol versions: 3.0
testSignatureForDataV3
{ "repo_name": "lime-company/lime-security-powerauth", "path": "powerauth-java-crypto/src/test/java/io/getlime/security/powerauth/crypto/signature/PowerAuthSignatureTest.java", "license": "apache-2.0", "size": 26908 }
[ "com.google.common.io.BaseEncoding", "io.getlime.security.powerauth.crypto.client.keyfactory.PowerAuthClientKeyFactory", "io.getlime.security.powerauth.crypto.client.signature.PowerAuthClientSignature", "io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureFormat", "io.getlime.security.powerauth...
import com.google.common.io.BaseEncoding; import io.getlime.security.powerauth.crypto.client.keyfactory.PowerAuthClientKeyFactory; import io.getlime.security.powerauth.crypto.client.signature.PowerAuthClientSignature; import io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureFormat; import io.getlime.secu...
import com.google.common.io.*; import io.getlime.security.powerauth.crypto.client.keyfactory.*; import io.getlime.security.powerauth.crypto.client.signature.*; import io.getlime.security.powerauth.crypto.lib.enums.*; import io.getlime.security.powerauth.crypto.lib.generator.*; import io.getlime.security.powerauth.crypt...
[ "com.google.common", "io.getlime.security", "java.security", "java.util", "javax.crypto", "org.junit.jupiter" ]
com.google.common; io.getlime.security; java.security; java.util; javax.crypto; org.junit.jupiter;
107,966
void reportMetrics() { if (requestLatencies.size() > 5) { Collections.sort(requestLatencies); int index99 = (int) (requestLatencies.size() * 0.99) - 1; int index95 = (int) (requestLatencies.size() * 0.95) - 1; StringBuilder message = new StringBuilder(); message.append(...
void reportMetrics() { if (requestLatencies.size() > 5) { Collections.sort(requestLatencies); int index99 = (int) (requestLatencies.size() * 0.99) - 1; int index95 = (int) (requestLatencies.size() * 0.95) - 1; StringBuilder message = new StringBuilder(); message.append( STR); message.append( operation + STR + numberOfO...
/** * Reports the stats for latencies like avg, 95th, 99th, min and max */
Reports the stats for latencies like avg, 95th, 99th, min and max
reportMetrics
{ "repo_name": "linkedin/ambry", "path": "ambry-tools/src/main/java/com/github/ambry/tools/admin/ConcurrencyTestTool.java", "license": "apache-2.0", "size": 54233 }
[ "java.util.Collections" ]
import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
2,481,352
public Date getStart() { return m_Start; }
Date function() { return m_Start; }
/** * Returns the optional start date. * * @return the start date */
Returns the optional start date
getStart
{ "repo_name": "automenta/adams-core", "path": "src/main/java/adams/core/base/BaseDate.java", "license": "gpl-3.0", "size": 7551 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,540,451
public ResourceChainRegistration addResolver(ResourceResolver resolver) { Assert.notNull(resolver, "The provided ResourceResolver should not be null"); this.resolvers.add(resolver); if (resolver instanceof VersionResourceResolver) { this.hasVersionResolver = true; } else if (resolver instanceof PathReso...
ResourceChainRegistration function(ResourceResolver resolver) { Assert.notNull(resolver, STR); this.resolvers.add(resolver); if (resolver instanceof VersionResourceResolver) { this.hasVersionResolver = true; } else if (resolver instanceof PathResourceResolver) { this.hasPathResolver = true; } else if (resolver instance...
/** * Add a resource resolver to the chain. * @param resolver the resolver to add * @return the current instance for chained method invocation */
Add a resource resolver to the chain
addResolver
{ "repo_name": "boggad/jdk9-sample", "path": "sample-catalog/spring-jdk9/src/spring.web.reactive/org/springframework/web/reactive/config/ResourceChainRegistration.java", "license": "mit", "size": 4705 }
[ "org.springframework.util.Assert", "org.springframework.web.reactive.resource.PathResourceResolver", "org.springframework.web.reactive.resource.ResourceResolver", "org.springframework.web.reactive.resource.VersionResourceResolver", "org.springframework.web.reactive.resource.WebJarsResourceResolver" ]
import org.springframework.util.Assert; import org.springframework.web.reactive.resource.PathResourceResolver; import org.springframework.web.reactive.resource.ResourceResolver; import org.springframework.web.reactive.resource.VersionResourceResolver; import org.springframework.web.reactive.resource.WebJarsResourceReso...
import org.springframework.util.*; import org.springframework.web.reactive.resource.*;
[ "org.springframework.util", "org.springframework.web" ]
org.springframework.util; org.springframework.web;
2,835,855
public void testBlendingType() throws IOException { BytesRef pl = new BytesRef("lake"); long w = 20; Input keys[] = new Input[]{ new Input("top of the lake", w, pl) }; Path tempDir = createTempDir("BlendedInfixSuggesterTest"); Analyzer a = new StandardAnalyzer(CharArraySet.EMPTY_SET...
void function() throws IOException { BytesRef pl = new BytesRef("lake"); long w = 20; Input keys[] = new Input[]{ new Input(STR, w, pl) }; Path tempDir = createTempDir(STR); Analyzer a = new StandardAnalyzer(CharArraySet.EMPTY_SET); BlendedInfixSuggester suggester = new BlendedInfixSuggester(newFSDirectory(tempDir), a)...
/** * Verify the different flavours of the blender types */
Verify the different flavours of the blender types
testBlendingType
{ "repo_name": "visouza/solr-5.0.0", "path": "lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/BlendedInfixSuggesterTest.java", "license": "apache-2.0", "size": 9336 }
[ "java.io.IOException", "java.nio.file.Path", "org.apache.lucene.analysis.Analyzer", "org.apache.lucene.analysis.standard.StandardAnalyzer", "org.apache.lucene.analysis.util.CharArraySet", "org.apache.lucene.search.suggest.Input", "org.apache.lucene.search.suggest.InputArrayIterator", "org.apache.lucen...
import java.io.IOException; import java.nio.file.Path; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.search.suggest.Input; import org.apache.lucene.search.suggest.InputArrayIterator; ...
import java.io.*; import java.nio.file.*; import org.apache.lucene.analysis.*; import org.apache.lucene.analysis.standard.*; import org.apache.lucene.analysis.util.*; import org.apache.lucene.search.suggest.*; import org.apache.lucene.util.*;
[ "java.io", "java.nio", "org.apache.lucene" ]
java.io; java.nio; org.apache.lucene;
2,796,561
void saveRecentSearches(Context context, BoxUser user, ArrayList<String> searches);
void saveRecentSearches(Context context, BoxUser user, ArrayList<String> searches);
/** * Save recent searches. * * @param context the context * @param user the user * @param searches the searches */
Save recent searches
saveRecentSearches
{ "repo_name": "box/box-android-browse-sdk", "path": "box-browse-sdk/src/main/java/com/box/androidsdk/browse/service/BrowseController.java", "license": "apache-2.0", "size": 5075 }
[ "android.content.Context", "com.box.androidsdk.content.models.BoxUser", "java.util.ArrayList" ]
import android.content.Context; import com.box.androidsdk.content.models.BoxUser; import java.util.ArrayList;
import android.content.*; import com.box.androidsdk.content.models.*; import java.util.*;
[ "android.content", "com.box.androidsdk", "java.util" ]
android.content; com.box.androidsdk; java.util;
51,868
public static Object sum(Iterator<Object> self, Object initialValue) { return sum(toList(self), initialValue, false); }
static Object function(Iterator<Object> self, Object initialValue) { return sum(toList(self), initialValue, false); }
/** * Sums the items from an Iterator, adding the result to some initial value. This is * equivalent to invoking the "plus" method on all items from the Iterator. The iterator * will become exhausted of elements after determining the sum value. * * @param self an Iterator for the value...
Sums the items from an Iterator, adding the result to some initial value. This is equivalent to invoking the "plus" method on all items from the Iterator. The iterator will become exhausted of elements after determining the sum value
sum
{ "repo_name": "armsargis/groovy", "path": "src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "apache-2.0", "size": 698233 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,497,042
void synchronize() { try { setChanged(); notifyObservers(SynchronizeState.RUNNING); log.info(UserMessage.get().MSG_SYNC_STARTED()); final ICalendarEventFilter typeFilter = new EventTypeFilter(settings.getSyncAppointmentTypes()); final ICalendarEventObfuscator typeObfuscator = new DefaultCalendarE...
void synchronize() { try { setChanged(); notifyObservers(SynchronizeState.RUNNING); log.info(UserMessage.get().MSG_SYNC_STARTED()); final ICalendarEventFilter typeFilter = new EventTypeFilter(settings.getSyncAppointmentTypes()); final ICalendarEventObfuscator typeObfuscator = new DefaultCalendarEventObfuscator(settings...
/** * Starts synchronisation. */
Starts synchronisation
synchronize
{ "repo_name": "fjakop/ngcalsync", "path": "src/main/java/de/jakop/ngcalsync/application/Application.java", "license": "bsd-2-clause", "size": 5402 }
[ "de.jakop.ngcalsync.filter.EventTypeFilter", "de.jakop.ngcalsync.filter.ICalendarEventFilter", "de.jakop.ngcalsync.google.IGoogleCalendarDAO", "de.jakop.ngcalsync.i18n.LocalizedUserStrings", "de.jakop.ngcalsync.notes.INotesCalendarDAO", "de.jakop.ngcalsync.obfuscator.DefaultCalendarEventObfuscator", "de...
import de.jakop.ngcalsync.filter.EventTypeFilter; import de.jakop.ngcalsync.filter.ICalendarEventFilter; import de.jakop.ngcalsync.google.IGoogleCalendarDAO; import de.jakop.ngcalsync.i18n.LocalizedUserStrings; import de.jakop.ngcalsync.notes.INotesCalendarDAO; import de.jakop.ngcalsync.obfuscator.DefaultCalendarEventO...
import de.jakop.ngcalsync.filter.*; import de.jakop.ngcalsync.google.*; import de.jakop.ngcalsync.i18n.*; import de.jakop.ngcalsync.notes.*; import de.jakop.ngcalsync.obfuscator.*; import de.jakop.ngcalsync.tray.*; import java.util.*;
[ "de.jakop.ngcalsync", "java.util" ]
de.jakop.ngcalsync; java.util;
975,379
public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) { boolean hasErrors = !resource.getErrors().isEmpty(); if (hasErrors || !resource.getWarnings().isEmpty()) { BasicDiagnostic basicDiagnostic = new BasicDiagnostic (hasErrors ? Diagnostic.ERROR : Diagnostic.WARNING, ...
Diagnostic function(Resource resource, Exception exception) { boolean hasErrors = !resource.getErrors().isEmpty(); if (hasErrors !resource.getWarnings().isEmpty()) { BasicDiagnostic basicDiagnostic = new BasicDiagnostic (hasErrors ? Diagnostic.ERROR : Diagnostic.WARNING, STR, 0, getString(STR, resource.getURI()), new O...
/** * Returns a diagnostic describing the errors and warnings listed in the resource * and the specified exception (if any). * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Returns a diagnostic describing the errors and warnings listed in the resource and the specified exception (if any).
analyzeResourceProblems
{ "repo_name": "florianpirchner/nndesigner", "path": "org.eclipse.athene.nn.model.editor/src/org/eclipse/athene/nn/model/tensorflow/presentation/TensorflowEditor.java", "license": "epl-1.0", "size": 54430 }
[ "org.eclipse.emf.common.util.BasicDiagnostic", "org.eclipse.emf.common.util.Diagnostic", "org.eclipse.emf.ecore.resource.Resource", "org.eclipse.emf.ecore.util.EcoreUtil" ]
import org.eclipse.emf.common.util.BasicDiagnostic; import org.eclipse.emf.common.util.Diagnostic; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.common.util.*; import org.eclipse.emf.ecore.resource.*; import org.eclipse.emf.ecore.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,032,430
public Stroke getRangeGridlineStroke() { return this.rangeGridlineStroke; }
Stroke function() { return this.rangeGridlineStroke; }
/** * Returns the stroke for the grid lines (if any) plotted against the * range axis. * * @return The stroke (never <code>null</code>). */
Returns the stroke for the grid lines (if any) plotted against the range axis
getRangeGridlineStroke
{ "repo_name": "raedle/univis", "path": "lib/jfreechart-1.0.1/src/org/jfree/chart/plot/XYPlot.java", "license": "lgpl-2.1", "size": 137931 }
[ "java.awt.Stroke" ]
import java.awt.Stroke;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,480,570
public default CurrencyParameterSensitivity createParameterSensitivity(Currency currency, DoubleArray sensitivities) { List<ParameterMetadata> paramMeta = IntStream.range(0, getParameterCount()) .mapToObj(i -> getParameterMetadata(i)) .collect(toImmutableList()); return CurrencyParameterSensit...
default CurrencyParameterSensitivity function(Currency currency, DoubleArray sensitivities) { List<ParameterMetadata> paramMeta = IntStream.range(0, getParameterCount()) .mapToObj(i -> getParameterMetadata(i)) .collect(toImmutableList()); return CurrencyParameterSensitivity.of(getName(), paramMeta, currency, sensitivit...
/** * Creates a parameter sensitivity instance for this curve when the sensitivity values are known. * <p> * In most cases, {@link #yValueParameterSensitivity(double)} should be used and manipulated. * However, it can be useful to create a {@link CurrencyParameterSensitivity} from pre-computed sensitivity v...
Creates a parameter sensitivity instance for this curve when the sensitivity values are known. In most cases, <code>#yValueParameterSensitivity(double)</code> should be used and manipulated. However, it can be useful to create a <code>CurrencyParameterSensitivity</code> from pre-computed sensitivity values
createParameterSensitivity
{ "repo_name": "OpenGamma/Strata", "path": "modules/market/src/main/java/com/opengamma/strata/market/curve/Curve.java", "license": "apache-2.0", "size": 7027 }
[ "com.opengamma.strata.basics.currency.Currency", "com.opengamma.strata.collect.array.DoubleArray", "com.opengamma.strata.market.param.CurrencyParameterSensitivity", "com.opengamma.strata.market.param.ParameterMetadata", "java.util.List", "java.util.stream.IntStream" ]
import com.opengamma.strata.basics.currency.Currency; import com.opengamma.strata.collect.array.DoubleArray; import com.opengamma.strata.market.param.CurrencyParameterSensitivity; import com.opengamma.strata.market.param.ParameterMetadata; import java.util.List; import java.util.stream.IntStream;
import com.opengamma.strata.basics.currency.*; import com.opengamma.strata.collect.array.*; import com.opengamma.strata.market.param.*; import java.util.*; import java.util.stream.*;
[ "com.opengamma.strata", "java.util" ]
com.opengamma.strata; java.util;
136,167
public static BigInteger probablePrime(int bitLength, Random rnd) { if (bitLength < 2) throw new ArithmeticException("bitLength < 2"); return (bitLength < SMALL_PRIME_THRESHOLD ? smallPrime(bitLength, DEFAULT_PRIME_CERTAINTY, rnd) : largePrime(bitLength, ...
static BigInteger function(int bitLength, Random rnd) { if (bitLength < 2) throw new ArithmeticException(STR); return (bitLength < SMALL_PRIME_THRESHOLD ? smallPrime(bitLength, DEFAULT_PRIME_CERTAINTY, rnd) : largePrime(bitLength, DEFAULT_PRIME_CERTAINTY, rnd)); }
/** * Returns a positive BigInteger that is probably prime, with the * specified bitLength. The probability that a BigInteger returned * by this method is composite does not exceed 2<sup>-100</sup>. * * @param bitLength bitLength of the returned BigInteger. * @param rnd source of random ...
Returns a positive BigInteger that is probably prime, with the specified bitLength. The probability that a BigInteger returned by this method is composite does not exceed 2-100
probablePrime
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jdk/src/share/classes/java/math/BigInteger.java", "license": "mit", "size": 162457 }
[ "java.util.Random" ]
import java.util.Random;
import java.util.*;
[ "java.util" ]
java.util;
41,106
public void setTypeface(final Typeface typeface) { if (typeface == null || !typeface.isAvailable()) { Log.d("Ignoring Canvas.setTypeface() with null or unavailable typeface."); } else if (!typeface.equals(this.typeface)) { this.typeface = typeface; imp.set...
void function(final Typeface typeface) { if (typeface == null !typeface.isAvailable()) { Log.d(STR); } else if (!typeface.equals(this.typeface)) { this.typeface = typeface; imp.setTypeface(typeface.imp); } }
/** * Sets the typeface to be used to draw text. Has no effect if <code>typeface</code> is <code>null</code> or * unavailable. * * @param typeface the typeface to be used to draw text * * @since 1.3 */
Sets the typeface to be used to draw text. Has no effect if <code>typeface</code> is <code>null</code> or unavailable
setTypeface
{ "repo_name": "r0the/jeda", "path": "core/src/ch/jeda/ui/Canvas.java", "license": "lgpl-3.0", "size": 43076 }
[ "ch.jeda.Log" ]
import ch.jeda.Log;
import ch.jeda.*;
[ "ch.jeda" ]
ch.jeda;
476,266
public static RdsSnapshot getSnapshot(final Session sess, final long userID, final String snapshotID) { final List<RdsSnapshot> result = selectSnapshot(sess, userID, snapshotID, null, null, 0); if (result == null) { logger.debug("getSnapshot: No record found for user " + userID + " snapshot ...
static RdsSnapshot function(final Session sess, final long userID, final String snapshotID) { final List<RdsSnapshot> result = selectSnapshot(sess, userID, snapshotID, null, null, 0); if (result == null) { logger.debug(STR + userID + STR + snapshotID); return null; } return result.get(0); }
/*************************************************************************** * This returns the single named Snapshot record but uses the same * implementation as selectSnapshot that returns an array of records. * * @param userID * @param snapshotID * @return DBSnapshot record * @throws BaseExcepti...
This returns the single named Snapshot record but uses the same implementation as selectSnapshot that returns an array of records
getSnapshot
{ "repo_name": "huxoll/TopStackCore", "path": "src/com/msi/tough/utils/RDSUtil.java", "license": "apache-2.0", "size": 8276 }
[ "com.msi.tough.model.rds.RdsSnapshot", "java.util.List", "org.hibernate.Session" ]
import com.msi.tough.model.rds.RdsSnapshot; import java.util.List; import org.hibernate.Session;
import com.msi.tough.model.rds.*; import java.util.*; import org.hibernate.*;
[ "com.msi.tough", "java.util", "org.hibernate" ]
com.msi.tough; java.util; org.hibernate;
638,998
// Future (API19+)... if (Build.VERSION.SDK_INT >= 19) { return view.isLaidOut(); } // Legacy... return view.getWidth() > 0 && view.getHeight() > 0; }
if (Build.VERSION.SDK_INT >= 19) { return view.isLaidOut(); } return view.getWidth() > 0 && view.getHeight() > 0; }
/** * Returns true if {@code view} has been through at least one layout since it * was last attached to or detached from a window. * * See http://developer.android.com/reference/android/support/v4/view/ViewCompat.html#isLaidOut%28android.view.View%29 * * @param view the view * @return...
Returns true if view has been through at least one layout since it was last attached to or detached from a window. See HREF
isLaidOut
{ "repo_name": "a0af/drawing---android", "path": "signature-pad/src/main/java/com/github/gcacace/signaturepad/view/ViewCompat.java", "license": "apache-2.0", "size": 827 }
[ "android.os.Build" ]
import android.os.Build;
import android.os.*;
[ "android.os" ]
android.os;
29,196
public void getNext(CAS aCAS) throws java.io.IOException, CollectionException { File next = mFileCollection.get(mFileIndex++); InputStream file = null; try { file = new FileInputStream(next); XmiCasDeserializer.deserialize(file, aCAS); } catch (SAXException e...
void function(CAS aCAS) throws java.io.IOException, CollectionException { File next = mFileCollection.get(mFileIndex++); InputStream file = null; try { file = new FileInputStream(next); XmiCasDeserializer.deserialize(file, aCAS); } catch (SAXException e) { if(next != null) LOG.error(STR + next.getAbsolutePath()); throw...
/** * De-serialize the next XMI file in the collection. * * @see gov.va.vinci.leo.cr.BaseFileCollectionReader#getNext(org.apache.uima.cas.CAS) * * @param aCAS the CAS to populate with the next element of the collection. * @throws java.io.IOException if there is an error reading from the f...
De-serialize the next XMI file in the collection
getNext
{ "repo_name": "department-of-veterans-affairs/Leo", "path": "client/src/main/java/gov/va/vinci/leo/cr/XmiFileCollectionReader.java", "license": "apache-2.0", "size": 3912 }
[ "java.io.File", "java.io.FileInputStream", "java.io.InputStream", "org.apache.uima.cas.impl.XmiCasDeserializer", "org.apache.uima.collection.CollectionException", "org.xml.sax.SAXException" ]
import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import org.apache.uima.cas.impl.XmiCasDeserializer; import org.apache.uima.collection.CollectionException; import org.xml.sax.SAXException;
import java.io.*; import org.apache.uima.cas.impl.*; import org.apache.uima.collection.*; import org.xml.sax.*;
[ "java.io", "org.apache.uima", "org.xml.sax" ]
java.io; org.apache.uima; org.xml.sax;
389,067