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
protected View makeControllerView() { return ((LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE)) .inflate(getResources().getIdentifier("mediacontroller", "layout", mContext .getPackageName()), this); }
View function() { return ((LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE)) .inflate(getResources().getIdentifier(STR, STR, mContext .getPackageName()), this); }
/** * Create the view that holds the widgets that control playback. Derived * classes can override this to create their own. * * @return The controller view. */
Create the view that holds the widgets that control playback. Derived classes can override this to create their own
makeControllerView
{ "repo_name": "Apeplan/SPlayer", "path": "vitamio/src/io/vov/vitamio/widget/MediaController.java", "license": "apache-2.0", "size": 19407 }
[ "android.content.Context", "android.view.LayoutInflater", "android.view.View" ]
import android.content.Context; import android.view.LayoutInflater; import android.view.View;
import android.content.*; import android.view.*;
[ "android.content", "android.view" ]
android.content; android.view;
1,391,043
public void translatePredicates(ClassGenerator classGen, MethodGenerator methodGen, int predicateIndex) { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); ...
void function(ClassGenerator classGen, MethodGenerator methodGen, int predicateIndex) { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); int idx = 0; if (predicateIndex < 0) { translateStep(classGen, methodGen, predicateIndex); } else { final Predicate p...
/** * Translate a sequence of predicates. Each predicate is translated * by constructing an instance of <code>CurrentNodeListIterator</code> * which is initialized from another iterator (recursive call), * a filter and a closure (call to translate on the predicate) and "this". */
Translate a sequence of predicates. Each predicate is translated by constructing an instance of <code>CurrentNodeListIterator</code> which is initialized from another iterator (recursive call), a filter and a closure (call to translate on the predicate) and "this"
translatePredicates
{ "repo_name": "YouDiSN/OpenJDK-Research", "path": "jdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Step.java", "license": "gpl-2.0", "size": 22345 }
[ "com.sun.org.apache.bcel.internal.generic.ConstantPoolGen", "com.sun.org.apache.bcel.internal.generic.InstructionList", "com.sun.org.apache.bcel.internal.generic.LocalVariableGen", "com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator", "com.sun.org.apache.xalan.internal.xsltc.compiler.util....
import com.sun.org.apache.bcel.internal.generic.ConstantPoolGen; import com.sun.org.apache.bcel.internal.generic.InstructionList; import com.sun.org.apache.bcel.internal.generic.LocalVariableGen; import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator; import com.sun.org.apache.xalan.internal.xsltc....
import com.sun.org.apache.bcel.internal.generic.*; import com.sun.org.apache.xalan.internal.xsltc.compiler.util.*;
[ "com.sun.org" ]
com.sun.org;
1,798,138
public MetricRegistry getMetricRegistry() { return metricRegistry; }
MetricRegistry function() { return metricRegistry; }
/** * Returns the application's metrics. */
Returns the application's metrics
getMetricRegistry
{ "repo_name": "edgarvonk/dropwizard", "path": "dropwizard-core/src/main/java/io/dropwizard/setup/Bootstrap.java", "license": "apache-2.0", "size": 7313 }
[ "com.codahale.metrics.MetricRegistry" ]
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.*;
[ "com.codahale.metrics" ]
com.codahale.metrics;
182,720
@BeanTagAttribute(name = "mdSize") public int getMdSize() { return mdSize; }
@BeanTagAttribute(name = STR) int function() { return mdSize; }
/** * The size this Component's "cell" div will take up at a medium screen size (desktop). * * <p> * If 0 this setting will be ignored (default). This setting CANNOT exceed 12. * </p> * * @return the medium size */
The size this Component's "cell" div will take up at a medium screen size (desktop). If 0 this setting will be ignored (default). This setting CANNOT exceed 12.
getMdSize
{ "repo_name": "ricepanda/rice-git2", "path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/uif/layout/CssGridSizes.java", "license": "apache-2.0", "size": 12819 }
[ "org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute" ]
import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
import org.kuali.rice.krad.datadictionary.parse.*;
[ "org.kuali.rice" ]
org.kuali.rice;
2,637,498
public Collection<KatasterGewObj> getAbschnitte() { return objList; }
Collection<KatasterGewObj> function() { return objList; }
/** * DOCUMENT ME! * * @return DOCUMENT ME! */
DOCUMENT ME
getAbschnitte
{ "repo_name": "cismet/watergis-client", "path": "src/main/java/de/cismet/watergis/reports/GerOffenHelper.java", "license": "lgpl-3.0", "size": 14873 }
[ "de.cismet.watergis.reports.types.KatasterGewObj", "java.util.Collection" ]
import de.cismet.watergis.reports.types.KatasterGewObj; import java.util.Collection;
import de.cismet.watergis.reports.types.*; import java.util.*;
[ "de.cismet.watergis", "java.util" ]
de.cismet.watergis; java.util;
2,783,193
protected void addCacheTimeoutPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CacheMediator_cacheTimeout_feature"), getString("_UI_PropertyD...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), MediatorsPackage.Literals.CACHE_MEDIATOR__CACHE_TIMEOUT, true, false, false, ItemPropertyDescript...
/** * This adds a property descriptor for the Cache Timeout feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Cache Timeout feature.
addCacheTimeoutPropertyDescriptor
{ "repo_name": "thiliniish/developer-studio", "path": "esb/org.wso2.developerstudio.eclipse.esb.edit/src/org/wso2/developerstudio/eclipse/esb/mediators/provider/CacheMediatorItemProvider.java", "license": "apache-2.0", "size": 13859 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor", "org.wso2.developerstudio.eclipse.esb.mediators.MediatorsPackage" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.wso2.developerstudio.eclipse.esb.mediators.MediatorsPackage;
import org.eclipse.emf.edit.provider.*; import org.wso2.developerstudio.eclipse.esb.mediators.*;
[ "org.eclipse.emf", "org.wso2.developerstudio" ]
org.eclipse.emf; org.wso2.developerstudio;
1,873,185
protected void attach() throws IOException { if(!connected.get()) { if(connecting.compareAndSet(false, true)) { try { if(attachType==AttachType.PID) { vm = VirtualMachine.attach(jvmId); connected.set(true); return; } final List<VirtualMachineDescriptor> machines = V...
void function() throws IOException { if(!connected.get()) { if(connecting.compareAndSet(false, true)) { try { if(attachType==AttachType.PID) { vm = VirtualMachine.attach(jvmId); connected.set(true); return; } final List<VirtualMachineDescriptor> machines = VirtualMachine.list(); for(final VirtualMachineDescriptor vmd: ...
/** * Connects to the target virtual machine * @throws IOException thrown on connection failure */
Connects to the target virtual machine
attach
{ "repo_name": "nickman/heliosutils", "path": "src/main/java/com/heliosapm/utils/jmx/protocol/attach/AttachJMXConnector.java", "license": "apache-2.0", "size": 16537 }
[ "com.heliosapm.shorthand.attach.vm.VirtualMachine", "com.heliosapm.shorthand.attach.vm.VirtualMachineDescriptor", "java.io.IOException", "java.util.List", "java.util.Map", "java.util.Properties" ]
import com.heliosapm.shorthand.attach.vm.VirtualMachine; import com.heliosapm.shorthand.attach.vm.VirtualMachineDescriptor; import java.io.IOException; import java.util.List; import java.util.Map; import java.util.Properties;
import com.heliosapm.shorthand.attach.vm.*; import java.io.*; import java.util.*;
[ "com.heliosapm.shorthand", "java.io", "java.util" ]
com.heliosapm.shorthand; java.io; java.util;
824,864
// // CursorResultSet interface // public RowLocation getRowLocation() throws StandardException { return baseRowLocation; }
RowLocation function() throws StandardException { return baseRowLocation; }
/** * Return the RowLocation of the base row. * * @see CursorResultSet * * @return the row location of the current cursor row. * @exception StandardException thrown on failure. */
Return the RowLocation of the base row
getRowLocation
{ "repo_name": "kavin256/Derby", "path": "java/engine/org/apache/derby/impl/sql/execute/IndexRowToBaseRowResultSet.java", "license": "apache-2.0", "size": 16604 }
[ "org.apache.derby.iapi.error.StandardException", "org.apache.derby.iapi.types.RowLocation" ]
import org.apache.derby.iapi.error.StandardException; import org.apache.derby.iapi.types.RowLocation;
import org.apache.derby.iapi.error.*; import org.apache.derby.iapi.types.*;
[ "org.apache.derby" ]
org.apache.derby;
1,165,720
public Paint getAdvanceLinePaint() { return this.advanceLinePaint; }
Paint function() { return this.advanceLinePaint; }
/** * The advance line is the line drawn at the limit of the current cycle, * when erasing the previous cycle. * * @return The paint (never <code>null</code>). */
The advance line is the line drawn at the limit of the current cycle, when erasing the previous cycle
getAdvanceLinePaint
{ "repo_name": "sternze/CurrentTopics_JFreeChart", "path": "source/org/jfree/chart/axis/CyclicNumberAxis.java", "license": "lgpl-2.1", "size": 42129 }
[ "java.awt.Paint" ]
import java.awt.Paint;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,056,157
void handleBoundsChange() { final int childCount = getChildCount(); if (childCount > 0) { mDataChanged = true; rememberSyncState(); for (int i = 0; i < childCount; i++) { final View child = getChildAt(i); final ViewGroup.LayoutParam...
void handleBoundsChange() { final int childCount = getChildCount(); if (childCount > 0) { mDataChanged = true; rememberSyncState(); for (int i = 0; i < childCount; i++) { final View child = getChildAt(i); final ViewGroup.LayoutParams lp = child.getLayoutParams(); if (lp == null lp.width < 1 lp.height < 1) { child.force...
/** * Called when bounds of the AbsListView are changed. AbsListView marks data set as changed * and force layouts all children that don't have exact measure specs. * <p> * This invalidation is necessary, otherwise, AbsListView may think the children are valid and * fail to relayout them proper...
Called when bounds of the AbsListView are changed. AbsListView marks data set as changed and force layouts all children that don't have exact measure specs. This invalidation is necessary, otherwise, AbsListView may think the children are valid and fail to relayout them properly to accommodate for new bounds
handleBoundsChange
{ "repo_name": "xorware/android_frameworks_base", "path": "core/java/android/widget/AbsListView.java", "license": "apache-2.0", "size": 278926 }
[ "android.view.View", "android.view.ViewGroup" ]
import android.view.View; import android.view.ViewGroup;
import android.view.*;
[ "android.view" ]
android.view;
2,392,853
protected ChangeListener createChangeListener(JComponent c) { return new ChangeHandler((JMenu) c, this); }
ChangeListener function(JComponent c) { return new ChangeHandler((JMenu) c, this); }
/** * This method creates a new ChangeListener. * * @return A new ChangeListener. */
This method creates a new ChangeListener
createChangeListener
{ "repo_name": "shaotuanchen/sunflower_exp", "path": "tools/source/gcc-4.2.4/libjava/classpath/javax/swing/plaf/basic/BasicMenuUI.java", "license": "bsd-3-clause", "size": 15898 }
[ "javax.swing.JComponent", "javax.swing.JMenu", "javax.swing.event.ChangeListener" ]
import javax.swing.JComponent; import javax.swing.JMenu; import javax.swing.event.ChangeListener;
import javax.swing.*; import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
2,520,511
public CuentaTitular getCuentaTitularByContribuyente(Contribuyente contribuyente) throws Exception { return PadDAOFactory.getCuentaTitularDAO().getByCuentaYContribuyente(this, contribuyente); }
CuentaTitular function(Contribuyente contribuyente) throws Exception { return PadDAOFactory.getCuentaTitularDAO().getByCuentaYContribuyente(this, contribuyente); }
/** * Obtiene la relacion Cuenta Titular de esta cuenta para el contribuyente del parametro. * @param contibuyente Debe contener el id de contribuyente (igual que el id de persona) * <p>Si el id contribuyente no corresponde a ningun titular de la cuenta el metodo devuelve null. * @throws Exception */
Obtiene la relacion Cuenta Titular de esta cuenta para el contribuyente del parametro
getCuentaTitularByContribuyente
{ "repo_name": "avdata99/SIAT", "path": "siat-1.0-SOURCE/src/buss/src/ar/gov/rosario/siat/pad/buss/bean/Cuenta.java", "license": "gpl-3.0", "size": 164803 }
[ "ar.gov.rosario.siat.pad.buss.dao.PadDAOFactory" ]
import ar.gov.rosario.siat.pad.buss.dao.PadDAOFactory;
import ar.gov.rosario.siat.pad.buss.dao.*;
[ "ar.gov.rosario" ]
ar.gov.rosario;
654,196
public void setUnitSize(@IntRange(from = 0) int unitSize) { mUnitTextSize = unitSize; mUnitTextPaint.setTextSize(unitSize); }
void function(@IntRange(from = 0) int unitSize) { mUnitTextSize = unitSize; mUnitTextPaint.setTextSize(unitSize); }
/** * Text size of the unit string. Only used if text size is also set. (So automatic text size * calculation is off. see {@link #setTextSize(int)}). * If auto text size is on, use {@link #setUnitScale(float)} to scale unit size. * * @param unitSize The text size of the unit. */
Text size of the unit string. Only used if text size is also set. (So automatic text size calculation is off. see <code>#setTextSize(int)</code>). If auto text size is on, use <code>#setUnitScale(float)</code> to scale unit size
setUnitSize
{ "repo_name": "jakob-grabner/Circle-Progress-View", "path": "CircleProgressView/src/main/java/at/grabner/circleprogress/CircleProgressView.java", "license": "mit", "size": 70532 }
[ "androidx.annotation.IntRange" ]
import androidx.annotation.IntRange;
import androidx.annotation.*;
[ "androidx.annotation" ]
androidx.annotation;
710,647
protected void writeRowToken(OutputStream os) throws IOException { UVIntTool.writeBytes(tokenWidth, os); int tokenStartIndex = tokenizerNode.isRoot() ? 0 : 1; ByteRangeUtils.write(os, tokenizerNode.getToken(), tokenStartIndex); }
void function(OutputStream os) throws IOException { UVIntTool.writeBytes(tokenWidth, os); int tokenStartIndex = tokenizerNode.isRoot() ? 0 : 1; ByteRangeUtils.write(os, tokenizerNode.getToken(), tokenStartIndex); }
/** * UVInt: tokenWidth * bytes: token */
UVInt: tokenWidth bytes: token
writeRowToken
{ "repo_name": "gustavoanatoly/hbase", "path": "hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/encode/row/RowNodeWriter.java", "license": "apache-2.0", "size": 10903 }
[ "java.io.IOException", "java.io.OutputStream", "org.apache.hadoop.hbase.util.ByteRangeUtils", "org.apache.hadoop.hbase.util.vint.UVIntTool" ]
import java.io.IOException; import java.io.OutputStream; import org.apache.hadoop.hbase.util.ByteRangeUtils; import org.apache.hadoop.hbase.util.vint.UVIntTool;
import java.io.*; import org.apache.hadoop.hbase.util.*; import org.apache.hadoop.hbase.util.vint.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,739,248
public void reduce() { final List<LocationPathPattern> newPatterns = new ArrayList<>(); for (LocationPathPattern pattern : _patterns) { // Reduce this pattern pattern.reduceKernelPattern(); // Is this pattern fully reduced? if (pattern.isWildcard()) ...
void function() { final List<LocationPathPattern> newPatterns = new ArrayList<>(); for (LocationPathPattern pattern : _patterns) { pattern.reduceKernelPattern(); if (pattern.isWildcard()) { _default = pattern.getTemplate(); break; } else { newPatterns.add(pattern); } } _patterns = newPatterns; }
/** * Reduce the patterns in this test sequence. Creates a new * vector of patterns and sets the default pattern if it * finds a patterns that is fully reduced. */
Reduce the patterns in this test sequence. Creates a new vector of patterns and sets the default pattern if it finds a patterns that is fully reduced
reduce
{ "repo_name": "md-5/jdk10", "path": "src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/TestSeq.java", "license": "gpl-2.0", "size": 9580 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
486,696
private String fetchRemote() throws IOException { String json = new GetOrCreateFIleDriveTask(getDriveService()).execute(); Log.v(TAG, "Got this content from remote myschedule: ["+json+"]"); return json; }
String function() throws IOException { String json = new GetOrCreateFIleDriveTask(getDriveService()).execute(); Log.v(TAG, STR+json+"]"); return json; }
/** * Fetches the remote file. * @throws IOException */
Fetches the remote file
fetchRemote
{ "repo_name": "paug/iosched", "path": "android/src/main/java/fr/paug/droidcon/sync/userdata/http/HTTPUserDataSyncHelper.java", "license": "apache-2.0", "size": 8274 }
[ "android.util.Log", "java.io.IOException" ]
import android.util.Log; import java.io.IOException;
import android.util.*; import java.io.*;
[ "android.util", "java.io" ]
android.util; java.io;
35,592
void generateConstructorStatements(final Tree.Declaration cnstr, List<? extends Tree.Statement> stmts) { final List<String> oldRetainedVars = retainedVars.reset(null); final List<? extends Statement> prevStatements = currentStatements; currentStatements = stmts; ReturnCon...
void generateConstructorStatements(final Tree.Declaration cnstr, List<? extends Tree.Statement> stmts) { final List<String> oldRetainedVars = retainedVars.reset(null); final List<? extends Statement> prevStatements = currentStatements; currentStatements = stmts; ReturnConstructorVisitor rcv = new ReturnConstructorVisit...
/** Like visitStatements but for constructors, because we need to check if a statement is * a specifier expression and generate it regardless of lexical/prototype mode. */
Like visitStatements but for constructors, because we need to check if a statement is
generateConstructorStatements
{ "repo_name": "gijsleussink/ceylon", "path": "compiler-js/src/main/java/com/redhat/ceylon/compiler/js/GenerateJsVisitor.java", "license": "apache-2.0", "size": 148667 }
[ "com.redhat.ceylon.compiler.typechecker.tree.Tree", "com.redhat.ceylon.model.typechecker.model.Constructor", "com.redhat.ceylon.model.typechecker.model.Declaration", "java.util.List" ]
import com.redhat.ceylon.compiler.typechecker.tree.Tree; import com.redhat.ceylon.model.typechecker.model.Constructor; import com.redhat.ceylon.model.typechecker.model.Declaration; import java.util.List;
import com.redhat.ceylon.compiler.typechecker.tree.*; import com.redhat.ceylon.model.typechecker.model.*; import java.util.*;
[ "com.redhat.ceylon", "java.util" ]
com.redhat.ceylon; java.util;
2,695,440
public Set<String> getRuleClassNames() { return ruleFactory.getRuleClassNames(); }
Set<String> function() { return ruleFactory.getRuleClassNames(); }
/** * Returns the immutable, unordered set of names of all the known rule * classes. */
Returns the immutable, unordered set of names of all the known rule classes
getRuleClassNames
{ "repo_name": "hermione521/bazel", "path": "src/main/java/com/google/devtools/build/lib/packages/PackageFactory.java", "license": "apache-2.0", "size": 72120 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,309,980
interface WithRemoteVirtualNetwork { WithCreate withRemoteVirtualNetwork(SubResource remoteVirtualNetwork); }
interface WithRemoteVirtualNetwork { WithCreate withRemoteVirtualNetwork(SubResource remoteVirtualNetwork); }
/** * Specifies remoteVirtualNetwork. * @param remoteVirtualNetwork The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-netw...
Specifies remoteVirtualNetwork
withRemoteVirtualNetwork
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/VirtualNetworkPeering.java", "license": "mit", "size": 14136 }
[ "com.microsoft.azure.SubResource" ]
import com.microsoft.azure.SubResource;
import com.microsoft.azure.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
256,666
public ConstraintSyntaxTree getMapping(AbstractVariable var) { ConstraintSyntaxTree result; Context iter = currentContext; do { result = iter.varMap.get(var); if (TypeCache.ENABLED) { // method is needed, just disable additional functionality if ...
ConstraintSyntaxTree function(AbstractVariable var) { ConstraintSyntaxTree result; Context iter = currentContext; do { result = iter.varMap.get(var); if (TypeCache.ENABLED) { if (null == result && null != iter.fallback) { result = iter.fallback.getMapping(var, currentContext.self); } } iter = iter.predecessor; } while ...
/** * Returns the mapped access expression for <code>var</code> taking into account all current * contexts of the stack starting with the current top-most one. * * @param var the variable to return the mapping for * @return the mapped access expression or <b>null</b> if there is no regist...
Returns the mapped access expression for <code>var</code> taking into account all current contexts of the stack starting with the current top-most one
getMapping
{ "repo_name": "SSEHUB/EASyProducer", "path": "Plugins/Reasoner/EASy-Original-Reasoner/de.uni_hildesheim.sse.reasoning.reasoner/src/net/ssehub/easy/reasoning/sseReasoner/model/ContextStack.java", "license": "apache-2.0", "size": 31795 }
[ "net.ssehub.easy.varModel.cst.ConstraintSyntaxTree", "net.ssehub.easy.varModel.model.AbstractVariable" ]
import net.ssehub.easy.varModel.cst.ConstraintSyntaxTree; import net.ssehub.easy.varModel.model.AbstractVariable;
import net.ssehub.easy.*;
[ "net.ssehub.easy" ]
net.ssehub.easy;
1,545,317
public void uninstallUI(JComponent a) { for (int i = 0; i < uis.size(); i++) { ((ComponentUI) (uis.elementAt(i))).uninstallUI(a); } }
void function(JComponent a) { for (int i = 0; i < uis.size(); i++) { ((ComponentUI) (uis.elementAt(i))).uninstallUI(a); } }
/** * Invokes the <code>uninstallUI</code> method on each UI handled by this object. */
Invokes the <code>uninstallUI</code> method on each UI handled by this object
uninstallUI
{ "repo_name": "TheTypoMaster/Scaper", "path": "openjdk/jdk/src/share/classes/javax/swing/plaf/multi/MultiTableHeaderUI.java", "license": "gpl-2.0", "size": 7443 }
[ "javax.swing.JComponent", "javax.swing.plaf.ComponentUI" ]
import javax.swing.JComponent; import javax.swing.plaf.ComponentUI;
import javax.swing.*; import javax.swing.plaf.*;
[ "javax.swing" ]
javax.swing;
2,457,344
public File getProfileDir() { File baseDir; if (usesZk) { baseDir = new File(config.getString(ZookeeperPersistentStoreProvider.DRILL_EXEC_SYS_STORE_PROVIDER_ZK_BLOBROOT)); } else { baseDir = getDrillTempDir(); } return new File(baseDir, "profiles"); }
File function() { File baseDir; if (usesZk) { baseDir = new File(config.getString(ZookeeperPersistentStoreProvider.DRILL_EXEC_SYS_STORE_PROVIDER_ZK_BLOBROOT)); } else { baseDir = getDrillTempDir(); } return new File(baseDir, STR); }
/** * Returns the directory that holds query profiles. Valid only for an * embedded Drillbit with local cluster coordinator &ndash; the normal * case for unit tests. * * @return query profile directory */
Returns the directory that holds query profiles. Valid only for an embedded Drillbit with local cluster coordinator &ndash; the normal case for unit tests
getProfileDir
{ "repo_name": "johnnywale/drill", "path": "exec/java-exec/src/test/java/org/apache/drill/test/ClusterFixture.java", "license": "apache-2.0", "size": 27395 }
[ "java.io.File", "org.apache.drill.exec.store.sys.store.provider.ZookeeperPersistentStoreProvider" ]
import java.io.File; import org.apache.drill.exec.store.sys.store.provider.ZookeeperPersistentStoreProvider;
import java.io.*; import org.apache.drill.exec.store.sys.store.provider.*;
[ "java.io", "org.apache.drill" ]
java.io; org.apache.drill;
2,691,575
private void checkHelp(String output, String resourceName) throws Exception { String correctOutput = new String(readResource(getClass().getClassLoader(), resourceName)); try { // Split by lines. List<String> correctOutputLines = U.sealList(correctOutput.split("\\r?\\n")); ...
void function(String output, String resourceName) throws Exception { String correctOutput = new String(readResource(getClass().getClassLoader(), resourceName)); try { List<String> correctOutputLines = U.sealList(correctOutput.split(STR)); List<String> outputLines = U.sealList(output.split(STR)); assertEquals(STR + reso...
/** * Checks that golden copy of output and current output are same. * * @param output Current output. * @param resourceName Name of resource with golden copy on output. * @throws Exception If something goes wrong. */
Checks that golden copy of output and current output are same
checkHelp
{ "repo_name": "ascherbakoff/ignite", "path": "modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerClusterByClassTest.java", "license": "apache-2.0", "size": 62940 }
[ "java.util.List", "org.apache.ignite.internal.util.typedef.internal.U" ]
import java.util.List; import org.apache.ignite.internal.util.typedef.internal.U;
import java.util.*; import org.apache.ignite.internal.util.typedef.internal.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
998,532
if (dir!=null) { WatchKey key=dir.register(watcher, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE, StandardWatchEventKinds.ENTRY_MODIFY); keys.put(dir, key); } }
if (dir!=null) { WatchKey key=dir.register(watcher, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE, StandardWatchEventKinds.ENTRY_MODIFY); keys.put(dir, key); } }
/** * Register the specified Path-object for watching through the WatchService * @param dir the Path-object to watch * @throws IOException thrown if something goes wrong */
Register the specified Path-object for watching through the WatchService
register
{ "repo_name": "spielc/modula-player", "path": "org.bragi.collection.lucene.provider/src/org/bragi/LuceneCollection/internal/CollectionChangeHandlerThread.java", "license": "lgpl-3.0", "size": 5443 }
[ "java.nio.file.StandardWatchEventKinds", "java.nio.file.WatchKey" ]
import java.nio.file.StandardWatchEventKinds; import java.nio.file.WatchKey;
import java.nio.file.*;
[ "java.nio" ]
java.nio;
2,681,835
private void deleteEmptyFileOnException(OutputStream outputStream, String path) { try { outputStream.close(); File fileToDelete = new File(path); fileToDelete.delete(); } catch (Exception e) { // Best effort delete. } }
void function(OutputStream outputStream, String path) { try { outputStream.close(); File fileToDelete = new File(path); fileToDelete.delete(); } catch (Exception e) { } }
/** * Helper to delete an empty file in the case of an exception * * @param outputStream * @param path * @throws IOException */
Helper to delete an empty file in the case of an exception
deleteEmptyFileOnException
{ "repo_name": "emgerner-msft/azure-storage-java", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/blob/CloudBlob.java", "license": "apache-2.0", "size": 133550 }
[ "java.io.File", "java.io.OutputStream" ]
import java.io.File; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,124,319
public Date getFinalFireTime() { // TODO: implement QUARTZ-423 return null; }
Date function() { return null; }
/** * NOT YET IMPLEMENTED: Returns the final time that the * <code>CronExpression</code> will match. */
<code>CronExpression</code> will match
getFinalFireTime
{ "repo_name": "amckee23/drools", "path": "drools-core/src/main/java/org/drools/core/time/impl/CronExpression.java", "license": "apache-2.0", "size": 59008 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,626,734
public void testArriveAndAwaitAdvanceAfterInterrupt() { final Phaser phaser = new Phaser(); assertEquals(0, phaser.register()); final CountDownLatch pleaseArrive = new CountDownLatch(1);
void function() { final Phaser phaser = new Phaser(); assertEquals(0, phaser.register()); final CountDownLatch pleaseArrive = new CountDownLatch(1);
/** * arriveAndAwaitAdvance continues waiting if interrupted before waiting */
arriveAndAwaitAdvance continues waiting if interrupted before waiting
testArriveAndAwaitAdvanceAfterInterrupt
{ "repo_name": "mirego/j2objc", "path": "jre_emul/android/platform/libcore/jsr166-tests/src/test/java/jsr166/PhaserTest.java", "license": "apache-2.0", "size": 28802 }
[ "java.util.concurrent.CountDownLatch", "java.util.concurrent.Phaser" ]
import java.util.concurrent.CountDownLatch; import java.util.concurrent.Phaser;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
442,921
public static MozuClient<com.mozu.api.contracts.productadmin.Facet> addFacetClient(com.mozu.api.contracts.productadmin.Facet facet) throws Exception { return addFacetClient( facet, null); }
static MozuClient<com.mozu.api.contracts.productadmin.Facet> function(com.mozu.api.contracts.productadmin.Facet facet) throws Exception { return addFacetClient( facet, null); }
/** * * <p><pre><code> * MozuClient<com.mozu.api.contracts.productadmin.Facet> mozuClient=AddFacetClient( facet); * client.setBaseAddress(url); * client.executeRequest(); * Facet facet = client.Result(); * </code></pre></p> * @param facet Properties of the facet used to retrieve documents. *...
<code><code> MozuClient mozuClient=AddFacetClient( facet); client.setBaseAddress(url); client.executeRequest(); Facet facet = client.Result(); </code></code>
addFacetClient
{ "repo_name": "Mozu/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/clients/commerce/catalog/admin/FacetClient.java", "license": "mit", "size": 10714 }
[ "com.mozu.api.MozuClient" ]
import com.mozu.api.MozuClient;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
1,778,061
protected void openConnection() throws PatientLookupException { try { // Class.forName(empiDBdriver); // connection = DriverManager.getConnection(empiDBUrl, empiDBUser, empiDBPassword); } catch (Exception e) { Logger.out.info(e.getMessage(), e); Logger.out.info("--------------- ERROR...
void function() throws PatientLookupException { try { } catch (Exception e) { Logger.out.info(e.getMessage(), e); Logger.out.info(STR); Logger.out.info(STR); throw new PatientLookupException(e.getMessage(), e); } }
/** * This method will provide the implementation for opening the database connection. * @throws PatientLookupException : PatientLookupException */
This method will provide the implementation for opening the database connection
openConnection
{ "repo_name": "NCIP/catissue-participant-manager", "path": "software/ParticipantManager/src/main/java/edu/wustl/patientLookUp/queryExecutor/AbstractQueryExecutor.java", "license": "bsd-3-clause", "size": 3285 }
[ "edu.wustl.patientLookUp.util.Logger", "edu.wustl.patientLookUp.util.PatientLookupException" ]
import edu.wustl.patientLookUp.util.Logger; import edu.wustl.patientLookUp.util.PatientLookupException;
import edu.wustl.*;
[ "edu.wustl" ]
edu.wustl;
2,727,516
public String getSelectClause (boolean withSum) { String at = getPAAmountType().substring(0,1); // first letter StringBuffer sb = new StringBuffer(); if (withSum) sb.append("SUM("); if (PAAMOUNTTYPE_BalanceExpectedSign.equals(at)) // sb.append("AmtAcctDr-AmtAcctCr"); sb.append("acctBalance(A...
String function (boolean withSum) { String at = getPAAmountType().substring(0,1); StringBuffer sb = new StringBuffer(); if (withSum) sb.append("SUM("); if (PAAMOUNTTYPE_BalanceExpectedSign.equals(at)) sb.append(STR); else if (PAAMOUNTTYPE_BalanceAccountedSign.equals(at)) sb.append(STR); else if (PAAMOUNTTYPE_CreditOnly...
/** * Get SQL Select Clause. * @param withSum with SUM() function * @return select clause - AmtAcctCR+AmtAcctDR/etc or "null" if not defined */
Get SQL Select Clause
getSelectClause
{ "repo_name": "braully/adempiere", "path": "base/src/org/compiere/report/MReportLine.java", "license": "gpl-2.0", "size": 11825 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
1,826,762
public Builder attachTo(View actionView) { this.actionView = actionView; return this; }
Builder function(View actionView) { this.actionView = actionView; return this; }
/** * Attaches the whole menu around a main action view, usually a button. * All the calculations are made according to this action view. * * @param actionView * @return the builder object itself */
Attaches the whole menu around a main action view, usually a button. All the calculations are made according to this action view
attachTo
{ "repo_name": "HitRoxxx/FloatingNew", "path": "app/src/main/java/com/theLoneWarrior/floating/circular_menu/FloatingActionMenu.java", "license": "gpl-3.0", "size": 29405 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
377,159
public void accept(final AnnotationVisitor annotationVisitor) { if (annotationVisitor != null) { if (values != null) { for (int i = 0, n = values.size(); i < n; i += 2) { String name = (String) values.get(i); Object value = values.get(i + 1); accept(annotationVisitor, n...
void function(final AnnotationVisitor annotationVisitor) { if (annotationVisitor != null) { if (values != null) { for (int i = 0, n = values.size(); i < n; i += 2) { String name = (String) values.get(i); Object value = values.get(i + 1); accept(annotationVisitor, name, value); } } annotationVisitor.visitEnd(); } }
/** * Makes the given visitor visit this annotation. * * @param annotationVisitor an annotation visitor. Maybe {@literal null}. */
Makes the given visitor visit this annotation
accept
{ "repo_name": "apache/tapestry-5", "path": "plastic/src/external/java/org/apache/tapestry5/internal/plastic/asm/tree/AnnotationNode.java", "license": "apache-2.0", "size": 8866 }
[ "org.apache.tapestry5.internal.plastic.asm.AnnotationVisitor" ]
import org.apache.tapestry5.internal.plastic.asm.AnnotationVisitor;
import org.apache.tapestry5.internal.plastic.asm.*;
[ "org.apache.tapestry5" ]
org.apache.tapestry5;
98,123
private void storeItemStack( ItemStack item ) { final IAEItemStack itemToStore = AEItemStack.create( item ); try { final IStorageGrid storage = this.proxy.getStorage(); final IEnergyGrid energy = this.proxy.getEnergy(); final IAEItemStack overflow = Platform.poweredInsert( energy, storage.getItemInve...
void function( ItemStack item ) { final IAEItemStack itemToStore = AEItemStack.create( item ); try { final IStorageGrid storage = this.proxy.getStorage(); final IEnergyGrid energy = this.proxy.getEnergy(); final IAEItemStack overflow = Platform.poweredInsert( energy, storage.getItemInventory(), itemToStore, this.mySrc ...
/** * Stores an {@link ItemStack} inside the network. * * @param item {@link ItemStack} to store */
Stores an <code>ItemStack</code> inside the network
storeItemStack
{ "repo_name": "GlidingShadow/Applied-Energistics-2", "path": "src/main/java/appeng/parts/automation/PartAnnihilationPlane.java", "license": "gpl-3.0", "size": 15343 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
2,349,611
public static String decryptPassword( String licCred ) throws LdapException { try { Matcher matcher = ENCRYPTED_PATTERN.matcher( licCred ); if ( matcher.matches( ) ) { return getCrypto( ).decryptOpenssl( matcher.group( 1 ), matcher.group( 2 ) ); } else { // Not encrypted ...
static String function( String licCred ) throws LdapException { try { Matcher matcher = ENCRYPTED_PATTERN.matcher( licCred ); if ( matcher.matches( ) ) { return getCrypto( ).decryptOpenssl( matcher.group( 1 ), matcher.group( 2 ) ); } else { return licCred; } } catch ( GeneralSecurityException e ) { LOG.error( e, e ); t...
/** * Decrypt password in LIC. * * @param licCred * @return * @throws LdapException */
Decrypt password in LIC
decryptPassword
{ "repo_name": "sosilent/euca", "path": "clc/modules/authentication/src/main/java/com/eucalyptus/auth/ldap/authentication/AuthenticationUtil.java", "license": "gpl-3.0", "size": 1474 }
[ "com.eucalyptus.auth.LdapException", "java.security.GeneralSecurityException", "java.util.regex.Matcher" ]
import com.eucalyptus.auth.LdapException; import java.security.GeneralSecurityException; import java.util.regex.Matcher;
import com.eucalyptus.auth.*; import java.security.*; import java.util.regex.*;
[ "com.eucalyptus.auth", "java.security", "java.util" ]
com.eucalyptus.auth; java.security; java.util;
944,552
@FIXVersion(introduced="4.4") @TagNumRef(tagNum=TagNum.AvgPx, required=true) public void setAvgPx(Double avgPx) { this.avgPx = avgPx; }
@FIXVersion(introduced="4.4") @TagNumRef(tagNum=TagNum.AvgPx, required=true) void function(Double avgPx) { this.avgPx = avgPx; }
/** * Message field setter. * @param avgPx field value */
Message field setter
setAvgPx
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/ConfirmationMsg.java", "license": "gpl-3.0", "size": 94557 }
[ "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.TagNum" ]
import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum;
import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "net.hades.fix" ]
net.hades.fix;
502,534
@Override public String format(LogRecord log) { if (_timestamp == null) { return log.getMessage(); } long now; if (CauchoSystem.isTesting()) now = Alarm.getCurrentTime(); else now = System.currentTimeMillis(); StringBuilder sb = new StringBuilder(); QDate loca...
String function(LogRecord log) { if (_timestamp == null) { return log.getMessage(); } long now; if (CauchoSystem.isTesting()) now = Alarm.getCurrentTime(); else now = System.currentTimeMillis(); StringBuilder sb = new StringBuilder(); QDate localDate = QDate.allocateLocalDate(); localDate.setGMTTime(now); int len = _ti...
/** * Formats the record */
Formats the record
format
{ "repo_name": "CleverCloud/Quercus", "path": "resin/src/main/java/com/caucho/log/TimestampFormatter.java", "license": "gpl-2.0", "size": 9408 }
[ "com.caucho.server.util.CauchoSystem", "com.caucho.util.Alarm", "com.caucho.util.QDate", "java.util.logging.LogRecord" ]
import com.caucho.server.util.CauchoSystem; import com.caucho.util.Alarm; import com.caucho.util.QDate; import java.util.logging.LogRecord;
import com.caucho.server.util.*; import com.caucho.util.*; import java.util.logging.*;
[ "com.caucho.server", "com.caucho.util", "java.util" ]
com.caucho.server; com.caucho.util; java.util;
400,570
private static Coder<?> inferCoderFromObjects( CoderRegistry coderRegistry, SchemaRegistry schemaRegistry, Iterable<?> elems) throws CannotProvideCoderException { Optional<Coder<?>> coder = Optional.absent(); for (Object elem : elems) { Coder<?> c = inferCoderFromObject(coderRegistry, schema...
static Coder<?> function( CoderRegistry coderRegistry, SchemaRegistry schemaRegistry, Iterable<?> elems) throws CannotProvideCoderException { Optional<Coder<?>> coder = Optional.absent(); for (Object elem : elems) { Coder<?> c = inferCoderFromObject(coderRegistry, schemaRegistry, elem); if (!coder.isPresent()) { coder ...
/** * Attempts to infer the {@link Coder} of the elements ensuring that the returned coder is * equivalent for all elements. */
Attempts to infer the <code>Coder</code> of the elements ensuring that the returned coder is equivalent for all elements
inferCoderFromObjects
{ "repo_name": "mxm/incubator-beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Create.java", "license": "apache-2.0", "size": 32970 }
[ "com.google.common.base.Optional", "java.util.Objects", "org.apache.beam.sdk.coders.CannotProvideCoderException", "org.apache.beam.sdk.coders.Coder", "org.apache.beam.sdk.coders.CoderRegistry", "org.apache.beam.sdk.schemas.SchemaRegistry" ]
import com.google.common.base.Optional; import java.util.Objects; import org.apache.beam.sdk.coders.CannotProvideCoderException; import org.apache.beam.sdk.coders.Coder; import org.apache.beam.sdk.coders.CoderRegistry; import org.apache.beam.sdk.schemas.SchemaRegistry;
import com.google.common.base.*; import java.util.*; import org.apache.beam.sdk.coders.*; import org.apache.beam.sdk.schemas.*;
[ "com.google.common", "java.util", "org.apache.beam" ]
com.google.common; java.util; org.apache.beam;
204,711
@Test public void testLongQualifier() throws Exception { String method = name.getMethodName(); TableName tableName = TableName.valueOf(method); byte[] family = Bytes.toBytes("family"); this.region = initHRegion(tableName, method, CONF, family); byte[] q = new byte[Short.MAX_VALUE+2]; Arrays....
void function() throws Exception { String method = name.getMethodName(); TableName tableName = TableName.valueOf(method); byte[] family = Bytes.toBytes(STR); this.region = initHRegion(tableName, method, CONF, family); byte[] q = new byte[Short.MAX_VALUE+2]; Arrays.fill(q, 0, q.length-1, (byte)42); for (byte i=0; i<10; ...
/** * Write an HFile block full with Cells whose qualifier that are identical between * 0 and Short.MAX_VALUE. See HBASE-13329. * @throws Exception */
Write an HFile block full with Cells whose qualifier that are identical between 0 and Short.MAX_VALUE. See HBASE-13329
testLongQualifier
{ "repo_name": "juwi/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java", "license": "apache-2.0", "size": 231780 }
[ "java.util.Arrays", "org.apache.hadoop.hbase.HBaseTestingUtility", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.client.Put", "org.apache.hadoop.hbase.util.Bytes" ]
import java.util.Arrays; import org.apache.hadoop.hbase.HBaseTestingUtility; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.util.Bytes;
import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,317,325
BrewingStand getBrewingStand();
BrewingStand getBrewingStand();
/** * Gets the {@link BrewingStand} data that will be represented * after this event. * * @return The brewing stand */
Gets the <code>BrewingStand</code> data that will be represented after this event
getBrewingStand
{ "repo_name": "frogocomics/SpongeAPI", "path": "src/main/java/org/spongepowered/api/event/block/tile/BrewingStandEvent.java", "license": "mit", "size": 1875 }
[ "org.spongepowered.api.block.tile.carrier.BrewingStand" ]
import org.spongepowered.api.block.tile.carrier.BrewingStand;
import org.spongepowered.api.block.tile.carrier.*;
[ "org.spongepowered.api" ]
org.spongepowered.api;
1,934,872
public IgfsOutputStream create(IgfsPath path, int bufSize, boolean overwrite, @Nullable IgniteUuid affKey, int replication, long blockSize, @Nullable Map<String, String> props) throws IgniteException;
IgfsOutputStream function(IgfsPath path, int bufSize, boolean overwrite, @Nullable IgniteUuid affKey, int replication, long blockSize, @Nullable Map<String, String> props) throws IgniteException;
/** * Creates a file and opens it for writing. * * @param path File path to create. * @param bufSize Write buffer size (bytes) or {@code zero} to use default value. * @param overwrite Overwrite file if it already exists. Note: you cannot overwrite an existent directory. * @param affKey Aff...
Creates a file and opens it for writing
create
{ "repo_name": "SomeFire/ignite", "path": "modules/core/src/main/java/org/apache/ignite/IgniteFileSystem.java", "license": "apache-2.0", "size": 24031 }
[ "java.util.Map", "org.apache.ignite.igfs.IgfsOutputStream", "org.apache.ignite.igfs.IgfsPath", "org.apache.ignite.lang.IgniteUuid", "org.jetbrains.annotations.Nullable" ]
import java.util.Map; import org.apache.ignite.igfs.IgfsOutputStream; import org.apache.ignite.igfs.IgfsPath; import org.apache.ignite.lang.IgniteUuid; import org.jetbrains.annotations.Nullable;
import java.util.*; import org.apache.ignite.igfs.*; import org.apache.ignite.lang.*; import org.jetbrains.annotations.*;
[ "java.util", "org.apache.ignite", "org.jetbrains.annotations" ]
java.util; org.apache.ignite; org.jetbrains.annotations;
74,783
public ConfigEntry getConfigEntry(String key) throws DAOException;
ConfigEntry function(String key) throws DAOException;
/** * Get a configEntry by its key * @param key * @return a blank config entry if cannot find * @throws DAOException */
Get a configEntry by its key
getConfigEntry
{ "repo_name": "dakside/shacc", "path": "HaccCore/src/dakside/hacc/core/config/ConfigDAO.java", "license": "gpl-3.0", "size": 1333 }
[ "org.dakside.dao.DAOException" ]
import org.dakside.dao.DAOException;
import org.dakside.dao.*;
[ "org.dakside.dao" ]
org.dakside.dao;
2,189,683
@Override public String getText(Object object) { String label = ((ItemProcessor)object).getRef(); return label == null || label.length() == 0 ? getString("_UI_ItemProcessor_type") : getString("_UI_ItemProcessor_type") + " " + label; }
String function(Object object) { String label = ((ItemProcessor)object).getRef(); return label == null label.length() == 0 ? getString(STR) : getString(STR) + " " + label; }
/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This returns the label text for the adapted class.
getText
{ "repo_name": "awltech/eclipse-jbatch-designer", "path": "com.worldline.jbatch.designer/com.worldline.jbatch.designer.model.edit/src/main/java/com/worldline/jbatch/designer/model/jbatch/provider/ItemProcessorItemProvider.java", "license": "lgpl-3.0", "size": 6124 }
[ "com.worldline.jbatch.designer.model.jbatch.ItemProcessor" ]
import com.worldline.jbatch.designer.model.jbatch.ItemProcessor;
import com.worldline.jbatch.designer.model.jbatch.*;
[ "com.worldline.jbatch" ]
com.worldline.jbatch;
370,177
@GET @Path("/hierarchy") public List<ModelHierarchyClass> getHierarchy() { return managementService.getModelHierarchy(); }
@Path(STR) List<ModelHierarchyClass> function() { return managementService.getModelHierarchy(); }
/** * Retrieves the models hierarchy between semantic class models and definition models. * * @return the models hierarchy */
Retrieves the models hierarchy between semantic class models and definition models
getHierarchy
{ "repo_name": "SirmaITT/conservation-space-1.7.0", "path": "docker/sirma-platform/platform/seip-parent/model-management/model-management-impl/src/main/java/com/sirma/sep/model/management/rest/ModelManagementRestService.java", "license": "lgpl-3.0", "size": 3928 }
[ "com.sirma.sep.model.management.hierarchy.ModelHierarchyClass", "java.util.List", "javax.ws.rs.Path" ]
import com.sirma.sep.model.management.hierarchy.ModelHierarchyClass; import java.util.List; import javax.ws.rs.Path;
import com.sirma.sep.model.management.hierarchy.*; import java.util.*; import javax.ws.rs.*;
[ "com.sirma.sep", "java.util", "javax.ws" ]
com.sirma.sep; java.util; javax.ws;
16,607
private void deleteRules(String address) { IPredicate[] predicates = { new OperatorPredicate(COLUMN_R_SRC, Operator.EQ, address), new OperatorPredicate(COLUMN_R_DST, Operator.EQ, address)}; CompoundPredicate predicate = new CompoundPredicate(CompoundPredicate.Operator.OR, false, predicates); IResultSe...
void function(String address) { IPredicate[] predicates = { new OperatorPredicate(COLUMN_R_SRC, Operator.EQ, address), new OperatorPredicate(COLUMN_R_DST, Operator.EQ, address)}; CompoundPredicate predicate = new CompoundPredicate(CompoundPredicate.Operator.OR, false, predicates); IResultSet resultSet = storageSourceSe...
/** * removes all the rules relative to the specified address * @param address is the address that has been removed from the pool * */
removes all the rules relative to the specified address
deleteRules
{ "repo_name": "m1k3lin0/SDNProject", "path": "src/main/java/net/floodlightcontroller/sdnproject/SDNProject.java", "license": "apache-2.0", "size": 23496 }
[ "java.util.Iterator", "java.util.Map", "net.floodlightcontroller.storage.CompoundPredicate", "net.floodlightcontroller.storage.IPredicate", "net.floodlightcontroller.storage.IResultSet", "net.floodlightcontroller.storage.OperatorPredicate" ]
import java.util.Iterator; import java.util.Map; import net.floodlightcontroller.storage.CompoundPredicate; import net.floodlightcontroller.storage.IPredicate; import net.floodlightcontroller.storage.IResultSet; import net.floodlightcontroller.storage.OperatorPredicate;
import java.util.*; import net.floodlightcontroller.storage.*;
[ "java.util", "net.floodlightcontroller.storage" ]
java.util; net.floodlightcontroller.storage;
2,914,704
public ComposablePointcut intersection(MethodMatcher other) { this.methodMatcher = MethodMatchers.intersection(this.methodMatcher, other); return this; }
ComposablePointcut function(MethodMatcher other) { this.methodMatcher = MethodMatchers.intersection(this.methodMatcher, other); return this; }
/** * Apply an intersection with the given MethodMatcher. * @param other the MethodMatcher to apply an intersection with * @return this composable pointcut (for call chaining) */
Apply an intersection with the given MethodMatcher
intersection
{ "repo_name": "lamsfoundation/lams", "path": "3rdParty_sources/spring/org/springframework/aop/support/ComposablePointcut.java", "license": "gpl-2.0", "size": 6492 }
[ "org.springframework.aop.MethodMatcher" ]
import org.springframework.aop.MethodMatcher;
import org.springframework.aop.*;
[ "org.springframework.aop" ]
org.springframework.aop;
2,598,083
public final boolean notifyMessageChannelReady(Bundle extras) { if (mService == null) return false; synchronized (mLock) { try { mService.onMessageChannelReady(mSessionBinder, extras); } catch (RemoteException e) { return false; } ...
final boolean function(Bundle extras) { if (mService == null) return false; synchronized (mLock) { try { mService.onMessageChannelReady(mSessionBinder, extras); } catch (RemoteException e) { return false; } } return true; }
/** * Notifies the client that the postMessage channel requested with * {@link CustomTabsService#requestPostMessageChannel( * CustomTabsSessionToken, android.net.Uri)} is ready. This method should be * called when the browser binds to the client side {@link PostMessageService} and also readies ...
Notifies the client that the postMessage channel requested with <code>CustomTabsService#requestPostMessageChannel( CustomTabsSessionToken, android.net.Uri)</code> is ready. This method should be called when the browser binds to the client side <code>PostMessageService</code> and also readies a connection to the web fra...
notifyMessageChannelReady
{ "repo_name": "aosp-mirror/platform_frameworks_support", "path": "browser/src/main/java/androidx/browser/customtabs/PostMessageServiceConnection.java", "license": "apache-2.0", "size": 4808 }
[ "android.os.Bundle", "android.os.RemoteException" ]
import android.os.Bundle; import android.os.RemoteException;
import android.os.*;
[ "android.os" ]
android.os;
2,883,750
private List<COSObject> getObjectsByType(String inType) { return getObjectsByType(COSName.getPDFName(inType)); }
List<COSObject> function(String inType) { return getObjectsByType(COSName.getPDFName(inType)); }
/** * This will get all dictionary objects by type. * * @param type The type of the object. * @return This will return an object with the specified type. * @throws IOException If there is an error getting the object */
This will get all dictionary objects by type
getObjectsByType
{ "repo_name": "aktion-hip/relations", "path": "org.elbe.relations.biblio.meta/src/org/elbe/relations/biblio/meta/internal/pdf/cos/COSDocument.java", "license": "gpl-3.0", "size": 9953 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,046,865
public void setMessageValidators( List<MessageValidator<? extends ValidationContext>> messageValidators) { this.messageValidators = messageValidators; }
void function( List<MessageValidator<? extends ValidationContext>> messageValidators) { this.messageValidators = messageValidators; }
/** * Sets available message validator implementations. * @param messageValidators the messageValidators to set */
Sets available message validator implementations
setMessageValidators
{ "repo_name": "hmmlopez/citrus", "path": "modules/citrus-core/src/main/java/com/consol/citrus/validation/MessageValidatorRegistry.java", "license": "apache-2.0", "size": 4017 }
[ "com.consol.citrus.validation.context.ValidationContext", "java.util.List" ]
import com.consol.citrus.validation.context.ValidationContext; import java.util.List;
import com.consol.citrus.validation.context.*; import java.util.*;
[ "com.consol.citrus", "java.util" ]
com.consol.citrus; java.util;
917,622
public void comment(XMLString text, Augmentations augs) throws XNIException { try { // SAX2 extension if (fLexicalHandler != null) { fLexicalHandler.comment(text.ch, 0, text.length); } } catch (SAXException e) { throw new XNIEx...
void function(XMLString text, Augmentations augs) throws XNIException { try { if (fLexicalHandler != null) { fLexicalHandler.comment(text.ch, 0, text.length); } } catch (SAXException e) { throw new XNIException(e); } }
/** * A comment. * * @param text The text in the comment. * @param augs Additional information that may include infoset augmentations * * @throws XNIException Thrown by application to signal an error. */
A comment
comment
{ "repo_name": "openjdk/jdk8u", "path": "jaxp/src/com/sun/org/apache/xerces/internal/parsers/AbstractSAXParser.java", "license": "gpl-2.0", "size": 91913 }
[ "com.sun.org.apache.xerces.internal.xni.Augmentations", "com.sun.org.apache.xerces.internal.xni.XMLString", "com.sun.org.apache.xerces.internal.xni.XNIException", "org.xml.sax.SAXException" ]
import com.sun.org.apache.xerces.internal.xni.Augmentations; import com.sun.org.apache.xerces.internal.xni.XMLString; import com.sun.org.apache.xerces.internal.xni.XNIException; import org.xml.sax.SAXException;
import com.sun.org.apache.xerces.internal.xni.*; import org.xml.sax.*;
[ "com.sun.org", "org.xml.sax" ]
com.sun.org; org.xml.sax;
1,551,466
public ServerAction getServerAction(Object id) { Action a = getAction(id); if (a instanceof ServerAction) { return (ServerAction)a; } return null; }
ServerAction function(Object id) { Action a = getAction(id); if (a instanceof ServerAction) { return (ServerAction)a; } return null; }
/** * Convenience method for returning the ServerAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */
Convenience method for returning the ServerAction
getServerAction
{ "repo_name": "syncer/swingx", "path": "swingx-action/src/main/java/org/jdesktop/swingx/action/ActionManager.java", "license": "lgpl-2.1", "size": 12416 }
[ "javax.swing.Action" ]
import javax.swing.Action;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,711,232
static private void setLocationStatus(Context c, @LocationStatus int locationStatus){ SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(c); SharedPreferences.Editor spe = sp.edit(); spe.putInt(c.getString(R.string.pref_location_status_key), locationStatus); spe.com...
static void function(Context c, @LocationStatus int locationStatus){ SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(c); SharedPreferences.Editor spe = sp.edit(); spe.putInt(c.getString(R.string.pref_location_status_key), locationStatus); spe.commit(); }
/** * Sets the location status into shared preference. This function should not be called from * the UI thread because it uses commit to write to the shared preferences. * @param c Context to get the PreferenceManager from. * @param locationStatus The IntDef value to set */
Sets the location status into shared preference. This function should not be called from the UI thread because it uses commit to write to the shared preferences
setLocationStatus
{ "repo_name": "udacity/Advanced_Android_Development", "path": "app/src/main/java/com/example/android/sunshine/app/sync/SunshineSyncAdapter.java", "license": "apache-2.0", "size": 30738 }
[ "android.content.Context", "android.content.SharedPreferences", "android.preference.PreferenceManager" ]
import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager;
import android.content.*; import android.preference.*;
[ "android.content", "android.preference" ]
android.content; android.preference;
1,836,204
public int getTimeout() { try { return mTag.getTagService().getTimeout(TagTechnology.ISO_DEP); } catch (RemoteException e) { Log.e(TAG, "NFC service dead", e); return 0; } }
int function() { try { return mTag.getTagService().getTimeout(TagTechnology.ISO_DEP); } catch (RemoteException e) { Log.e(TAG, STR, e); return 0; } }
/** * Get the current timeout for {@link #transceive} in milliseconds. * * <p class="note">Requires the {@link android.Manifest.permission#NFC} permission. * * @return timeout value in milliseconds */
Get the current timeout for <code>#transceive</code> in milliseconds. Requires the <code>android.Manifest.permission#NFC</code> permission
getTimeout
{ "repo_name": "JuudeDemos/android-sdk-20", "path": "src/android/nfc/tech/IsoDep.java", "license": "apache-2.0", "size": 7913 }
[ "android.os.RemoteException", "android.util.Log" ]
import android.os.RemoteException; import android.util.Log;
import android.os.*; import android.util.*;
[ "android.os", "android.util" ]
android.os; android.util;
793,387
public static String getPathForJob(JobID jobId) { checkNotNull(jobId, "Job ID"); return String.format("/%s", jobId); }
static String function(JobID jobId) { checkNotNull(jobId, STR); return String.format("/%s", jobId); }
/** * Returns the JobID as a String (with leading slash). */
Returns the JobID as a String (with leading slash)
getPathForJob
{ "repo_name": "fanyon/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/jobmanager/ZooKeeperSubmittedJobGraphStore.java", "license": "apache-2.0", "size": 12332 }
[ "org.apache.flink.api.common.JobID", "org.apache.flink.util.Preconditions" ]
import org.apache.flink.api.common.JobID; import org.apache.flink.util.Preconditions;
import org.apache.flink.api.common.*; import org.apache.flink.util.*;
[ "org.apache.flink" ]
org.apache.flink;
2,240,824
public void deleteBagValues(List<String> values) { if (values == null) { throw new IllegalArgumentException("values cannot be null"); } deleteSomeBagValues(values); }
void function(List<String> values) { if (values == null) { throw new IllegalArgumentException(STR); } deleteSomeBagValues(values); }
/** * Delete a given set of bag values from the bag value table. If an empty list is passed in, * no values will be deleted. If null is passed in, that is an error, and an * IllegalArgumentException will be raised. * @param values The values to delete. May not be <code>null</code>. */
Delete a given set of bag values from the bag value table. If an empty list is passed in, no values will be deleted. If null is passed in, that is an error, and an IllegalArgumentException will be raised
deleteBagValues
{ "repo_name": "elsiklab/intermine", "path": "intermine/api/main/src/org/intermine/api/profile/InterMineBag.java", "license": "lgpl-2.1", "size": 32953 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
952,634
public Jerry prevAll() { List<Node> result = new NodeList(nodes.length); if (nodes.length > 0) { for (Node node : nodes) { Node currentSiblingElement = node.getPreviousSiblingElement(); while (currentSiblingElement != null) { result.add(currentSiblingElement); currentSiblingElement ...
Jerry function() { List<Node> result = new NodeList(nodes.length); if (nodes.length > 0) { for (Node node : nodes) { Node currentSiblingElement = node.getPreviousSiblingElement(); while (currentSiblingElement != null) { result.add(currentSiblingElement); currentSiblingElement = currentSiblingElement.getPreviousSiblingE...
/** * Get all preceding siblings of each element in the set of matched * elements, optionally filtered by a selector. */
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector
prevAll
{ "repo_name": "vilmospapp/jodd", "path": "jodd-lagarto/src/main/java/jodd/jerry/Jerry.java", "license": "bsd-2-clause", "size": 34951 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,810,970
public ObjectData createCMISObject(CMISNodeInfo info, String filter, boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, boolean includePolicyIds, boolean includeAcl) { if (info.getType() == null) { throw new Cmi...
ObjectData function(CMISNodeInfo info, String filter, boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, boolean includePolicyIds, boolean includeAcl) { if (info.getType() == null) { throw new CmisObjectNotFoundException(STR); } Properties nodeProps = (info.isRelationshi...
/** * Creates the CMIS object for a node. */
Creates the CMIS object for a node
createCMISObject
{ "repo_name": "Kast0rTr0y/community-edition", "path": "projects/repository/source/java/org/alfresco/opencmis/CMISConnector.java", "license": "lgpl-3.0", "size": 147090 }
[ "org.alfresco.opencmis.dictionary.CMISNodeInfo", "org.apache.chemistry.opencmis.commons.data.ObjectData", "org.apache.chemistry.opencmis.commons.data.Properties", "org.apache.chemistry.opencmis.commons.enums.IncludeRelationships", "org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException...
import org.alfresco.opencmis.dictionary.CMISNodeInfo; import org.apache.chemistry.opencmis.commons.data.ObjectData; import org.apache.chemistry.opencmis.commons.data.Properties; import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships; import org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNot...
import org.alfresco.opencmis.dictionary.*; import org.apache.chemistry.opencmis.commons.data.*; import org.apache.chemistry.opencmis.commons.enums.*; import org.apache.chemistry.opencmis.commons.exceptions.*;
[ "org.alfresco.opencmis", "org.apache.chemistry" ]
org.alfresco.opencmis; org.apache.chemistry;
905,861
public void testDeletingApplicationProperty() throws PersistenceException { String key = "test"; pm.setApplicationProperty(key, "value"); pm.setApplicationProperty(key, null); assertNull(pm.getApplicationProperty(key)); }
void function() throws PersistenceException { String key = "test"; pm.setApplicationProperty(key, "value"); pm.setApplicationProperty(key, null); assertNull(pm.getApplicationProperty(key)); }
/** * Removing an application property. * * @throws PersistenceException if database fails. */
Removing an application property
testDeletingApplicationProperty
{ "repo_name": "pitosalas/blogbridge", "path": "test/com/salas/bb/persistence/backend/TestHsqlPersistenceManagerProperties.java", "license": "gpl-2.0", "size": 3306 }
[ "com.salas.bb.persistence.PersistenceException" ]
import com.salas.bb.persistence.PersistenceException;
import com.salas.bb.persistence.*;
[ "com.salas.bb" ]
com.salas.bb;
689,137
@Test public void testGetLocatorsByLabel() { try { List<ExtendedLink> fragments = store.<ExtendedLink>getXMLResources("ExtendedLink"); ExtendedLink link = fragments.get(0); List<Locator> locators = link.getLocatorsWithLabel("summationItem"); AssertJUnit.assertEquals(1, locators.size()); locators...
void function() { try { List<ExtendedLink> fragments = store.<ExtendedLink>getXMLResources(STR); ExtendedLink link = fragments.get(0); List<Locator> locators = link.getLocatorsWithLabel(STR); AssertJUnit.assertEquals(1, locators.size()); locators = link.getLocatorsWithLabel(STR); AssertJUnit.assertEquals(2, locators.si...
/** * Test getting the locators with a given label. */
Test getting the locators with a given label
testGetLocatorsByLabel
{ "repo_name": "martinggww/Programming", "path": "XBRL/xbrl-api/module-api/src/test/java/org/xbrlapi/fragment/tests/ExtendedLinkTestCase.java", "license": "gpl-2.0", "size": 7992 }
[ "java.util.List", "org.testng.Assert", "org.testng.AssertJUnit", "org.xbrlapi.ExtendedLink", "org.xbrlapi.Locator" ]
import java.util.List; import org.testng.Assert; import org.testng.AssertJUnit; import org.xbrlapi.ExtendedLink; import org.xbrlapi.Locator;
import java.util.*; import org.testng.*; import org.xbrlapi.*;
[ "java.util", "org.testng", "org.xbrlapi" ]
java.util; org.testng; org.xbrlapi;
710,788
@Test public void globalPartitionAggregationTest() throws Exception { JobSpecification spec = new JobSpecification(); FileScanOperatorDescriptor csvScanner = new FileScanOperatorDescriptor(spec, splitProvider, tupleParserFactory, desc); PartitionConstraintHelper.addAbs...
void function() throws Exception { JobSpecification spec = new JobSpecification(); FileScanOperatorDescriptor csvScanner = new FileScanOperatorDescriptor(spec, splitProvider, tupleParserFactory, desc); PartitionConstraintHelper.addAbsoluteLocationConstraint(spec, csvScanner, STR, STR, STR, STR); RecordDescriptor output...
/** * Test for locality aware connector, using the global hashing node mapper. This should have * the exactly the same result as using {@link MToNPartitioningConnectorDescriptor}. * * @throws Exception */
Test for locality aware connector, using the global hashing node mapper. This should have the exactly the same result as using <code>MToNPartitioningConnectorDescriptor</code>
globalPartitionAggregationTest
{ "repo_name": "apache/incubator-asterixdb-hyracks", "path": "hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/integration/LocalityAwareConnectorTest.java", "license": "apache-2.0", "size": 13332 }
[ "org.apache.hyracks.api.constraints.PartitionConstraintHelper", "org.apache.hyracks.api.dataflow.IConnectorDescriptor", "org.apache.hyracks.api.dataflow.value.IBinaryComparatorFactory", "org.apache.hyracks.api.dataflow.value.IBinaryHashFunctionFactory", "org.apache.hyracks.api.dataflow.value.IBinaryHashFunc...
import org.apache.hyracks.api.constraints.PartitionConstraintHelper; import org.apache.hyracks.api.dataflow.IConnectorDescriptor; import org.apache.hyracks.api.dataflow.value.IBinaryComparatorFactory; import org.apache.hyracks.api.dataflow.value.IBinaryHashFunctionFactory; import org.apache.hyracks.api.dataflow.value.I...
import org.apache.hyracks.api.constraints.*; import org.apache.hyracks.api.dataflow.*; import org.apache.hyracks.api.dataflow.value.*; import org.apache.hyracks.api.job.*; import org.apache.hyracks.data.std.accessors.*; import org.apache.hyracks.data.std.primitive.*; import org.apache.hyracks.dataflow.common.data.marsh...
[ "org.apache.hyracks" ]
org.apache.hyracks;
1,660,636
@Test public void testSearchBaseWithReferralThrowAfterMove() throws Exception { DirContext ctx = getWiredContextThrowOnRefferal( getLdapServer() ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.OBJECT_SCOPE ); try { ...
void function() throws Exception { DirContext ctx = getWiredContextThrowOnRefferal( getLdapServer() ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.OBJECT_SCOPE ); try { ctx.search( STR, STR, controls ); fail( STR ); } catch ( ReferralException re ) { String referral = ( Strin...
/** * Test of an search operation with a referral after the entry * has been moved. * * search for "cn=alex karasulu" on "c=america, ou=system" * we should get a referral URL thrown, which point to * "c=usa, ou=system", and ask for a subtree search */
Test of an search operation with a referral after the entry has been moved. search for "cn=alex karasulu" on "c=america, ou=system" we should get a referral URL thrown, which point to "c=usa, ou=system", and ask for a subtree search
testSearchBaseWithReferralThrowAfterMove
{ "repo_name": "apache/directory-server", "path": "server-integ/src/test/java/org/apache/directory/server/operations/search/ReferralSearchNoRevertIT.java", "license": "apache-2.0", "size": 8098 }
[ "javax.naming.ReferralException", "javax.naming.directory.DirContext", "javax.naming.directory.SearchControls", "javax.naming.ldap.LdapContext", "javax.naming.ldap.ManageReferralControl", "org.apache.directory.server.integ.ServerIntegrationUtils", "org.junit.jupiter.api.Assertions" ]
import javax.naming.ReferralException; import javax.naming.directory.DirContext; import javax.naming.directory.SearchControls; import javax.naming.ldap.LdapContext; import javax.naming.ldap.ManageReferralControl; import org.apache.directory.server.integ.ServerIntegrationUtils; import org.junit.jupiter.api.Assertions;
import javax.naming.*; import javax.naming.directory.*; import javax.naming.ldap.*; import org.apache.directory.server.integ.*; import org.junit.jupiter.api.*;
[ "javax.naming", "org.apache.directory", "org.junit.jupiter" ]
javax.naming; org.apache.directory; org.junit.jupiter;
867,245
Publisher<Void> putAll(Map<? extends K, ? extends V> map);
Publisher<Void> putAll(Map<? extends K, ? extends V> map);
/** * Associates the specified <code>value</code> with the specified <code>key</code> * in batch. * <p> * If {@link MapWriter} is defined then new map entries are stored in write-through mode. * * @param map mappings to be stored in this map * @return void */
Associates the specified <code>value</code> with the specified <code>key</code> in batch. If <code>MapWriter</code> is defined then new map entries are stored in write-through mode
putAll
{ "repo_name": "qq1588518/JRediClients", "path": "src/main/java/redis/clients/redisson/api/RMapReactive.java", "license": "apache-2.0", "size": 9163 }
[ "java.util.Map", "org.reactivestreams.Publisher" ]
import java.util.Map; import org.reactivestreams.Publisher;
import java.util.*; import org.reactivestreams.*;
[ "java.util", "org.reactivestreams" ]
java.util; org.reactivestreams;
1,395,862
SqlOperatorTable getOperatorTable();
SqlOperatorTable getOperatorTable();
/** * Returns the operator table used by this validator. * * @return operator table */
Returns the operator table used by this validator
getOperatorTable
{ "repo_name": "wanglan/calcite", "path": "core/src/main/java/org/apache/calcite/sql/validate/SqlValidator.java", "license": "apache-2.0", "size": 24553 }
[ "org.apache.calcite.sql.SqlOperatorTable" ]
import org.apache.calcite.sql.SqlOperatorTable;
import org.apache.calcite.sql.*;
[ "org.apache.calcite" ]
org.apache.calcite;
1,626,292
List<UserContactType> getAvailableContactTypes();
List<UserContactType> getAvailableContactTypes();
/** * Returns a list of contact types permitted in the current configuration. * These types are to be configured from Poulpe. * * @return valid contact type list, e.g (skype, icq, jabber, mail, cell) */
Returns a list of contact types permitted in the current configuration. These types are to be configured from Poulpe
getAvailableContactTypes
{ "repo_name": "NCNecros/jcommune", "path": "jcommune-model/src/main/java/org/jtalks/jcommune/model/dao/UserContactsDao.java", "license": "lgpl-2.1", "size": 1827 }
[ "java.util.List", "org.jtalks.jcommune.model.entity.UserContactType" ]
import java.util.List; import org.jtalks.jcommune.model.entity.UserContactType;
import java.util.*; import org.jtalks.jcommune.model.entity.*;
[ "java.util", "org.jtalks.jcommune" ]
java.util; org.jtalks.jcommune;
1,086,353
@Test public void testBug1498805() { Locale saved = Locale.getDefault(); Locale.setDefault(Locale.UK); try { TimeZone zone = TimeZone.getTimeZone("GMT"); GregorianCalendar gc = new GregorianCalendar(zone); gc.set(2005, Calendar.JANUARY, 1, 12, 0...
void function() { Locale saved = Locale.getDefault(); Locale.setDefault(Locale.UK); try { TimeZone zone = TimeZone.getTimeZone("GMT"); GregorianCalendar gc = new GregorianCalendar(zone); gc.set(2005, Calendar.JANUARY, 1, 12, 0, 0); Week w = new Week(gc.getTime(), zone, Locale.UK); assertEquals(53, w.getWeek()); assertE...
/** * A test case for bug 1498805. */
A test case for bug 1498805
testBug1498805
{ "repo_name": "oskopek/jfreechart-fse", "path": "src/test/java/org/jfree/data/time/WeekTest.java", "license": "lgpl-2.1", "size": 18439 }
[ "java.util.Calendar", "java.util.GregorianCalendar", "java.util.Locale", "java.util.TimeZone", "org.junit.Assert" ]
import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Locale; import java.util.TimeZone; import org.junit.Assert;
import java.util.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
139,554
public void removeAllRegistrations(String username, int tenantID, String userStoreDomain) throws FIDOAuthenticatorServerException { if (log.isDebugEnabled()) { log.debug("removeRegistration inputs {username:" + username + "}"); } Connection connection = getDBConnecti...
void function(String username, int tenantID, String userStoreDomain) throws FIDOAuthenticatorServerException { if (log.isDebugEnabled()) { log.debug(STR + username + "}"); } Connection connection = getDBConnection(); PreparedStatement preparedStatement = null; try { preparedStatement = connection.prepareStatement(FIDOA...
/** * Remove all registered device from store. * * @param username * @param tenantID * @param userStoreDomain * @throws FIDOAuthenticatorServerException */
Remove all registered device from store
removeAllRegistrations
{ "repo_name": "isharak/carbon-identity", "path": "components/application-authenticators/org.wso2.carbon.identity.application.authenticator.fido/src/main/java/org/wso2/carbon/identity/application/authenticator/fido/dao/DeviceStoreDAO.java", "license": "apache-2.0", "size": 15733 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.SQLException", "org.wso2.carbon.identity.application.authenticator.fido.exception.FIDOAuthenticatorServerException", "org.wso2.carbon.identity.application.authenticator.fido.util.FIDOAuthenticatorConstants", "org.wso2.carbon.identity.core.util...
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import org.wso2.carbon.identity.application.authenticator.fido.exception.FIDOAuthenticatorServerException; import org.wso2.carbon.identity.application.authenticator.fido.util.FIDOAuthenticatorConstants; import org.wso2.carbon.i...
import java.sql.*; import org.wso2.carbon.identity.application.authenticator.fido.exception.*; import org.wso2.carbon.identity.application.authenticator.fido.util.*; import org.wso2.carbon.identity.core.util.*;
[ "java.sql", "org.wso2.carbon" ]
java.sql; org.wso2.carbon;
954,847
public void appendTo(final Appendable appendable) throws IOException { if (appendable instanceof Writer) { ((Writer) appendable).write(buffer, 0, size); } else if (appendable instanceof StringBuilder) { ((StringBuilder) appendable).append(buffer, 0, size); } else if (...
void function(final Appendable appendable) throws IOException { if (appendable instanceof Writer) { ((Writer) appendable).write(buffer, 0, size); } else if (appendable instanceof StringBuilder) { ((StringBuilder) appendable).append(buffer, 0, size); } else if (appendable instanceof StringBuffer) { ((StringBuffer) appen...
/** * Appends current contents of this {@code StrBuilder} to the * provided {@link Appendable}. * <p> * This method tries to avoid doing any extra copies of contents. * </p> * * @param appendable the appendable to append data to * @throws IOException if an I/O error occurs ...
Appends current contents of this StrBuilder to the provided <code>Appendable</code>. This method tries to avoid doing any extra copies of contents.
appendTo
{ "repo_name": "apache/commons-text", "path": "src/main/java/org/apache/commons/text/StrBuilder.java", "license": "apache-2.0", "size": 103273 }
[ "java.io.IOException", "java.io.Writer", "java.nio.CharBuffer" ]
import java.io.IOException; import java.io.Writer; import java.nio.CharBuffer;
import java.io.*; import java.nio.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
341,793
public void setKeepAlivePeriod(int keepAlivePeriod, int times, boolean report, boolean throwException) throws RemoteException;
void function(int keepAlivePeriod, int times, boolean report, boolean throwException) throws RemoteException;
/** * sets the connection timeout period for the reader. if the times * keepAlivePeriod has * passed by without a notification from the reader the reader gets disconnected. * @param keepAlivePeriod the reader must send in this period a keepalive message. time in ms. * @param times how many missed keepalive mes...
sets the connection timeout period for the reader. if the times * keepAlivePeriod has passed by without a notification from the reader the reader gets disconnected
setKeepAlivePeriod
{ "repo_name": "yalewkidane/Oliot-FC", "path": "fc-server/src/main/java/kr/ac/kaist/resl/fosstrak/ale/Reader.java", "license": "lgpl-2.1", "size": 6919 }
[ "java.rmi.RemoteException" ]
import java.rmi.RemoteException;
import java.rmi.*;
[ "java.rmi" ]
java.rmi;
1,012,769
public static JenaSKOS createInferencingSKOSThesaurus(OntModelSpec ontModelSpec) { InfModel infModel = ModelFactory.createOntologyModel(ontModelSpec); Model skosModel = createSKOSModel(); if (skosModel != null) { infModel.add(skosModel); } re...
static JenaSKOS function(OntModelSpec ontModelSpec) { InfModel infModel = ModelFactory.createOntologyModel(ontModelSpec); Model skosModel = createSKOSModel(); if (skosModel != null) { infModel.add(skosModel); } return new JenaSKOS(infModel); } /** * Uses the provided {@link ie.cmrc.skos.core.SKOS} to compute inferences...
/** * Builds an empty SKOS thesaurus that supports inferences using the provided * {@code com.hp.hpl.jena.ontology.OntModelSpec}. This method loads the SKOS model from * http://www.w3.org/2004/02/skos/core# and uses it to initialise the thesaurus<br/> * You may need to improve this by storing SKOS l...
Builds an empty SKOS thesaurus that supports inferences using the provided com.hp.hpl.jena.ontology.OntModelSpec. This method loads the SKOS model from HREF and uses it to initialise the thesaurus You may need to improve this by storing SKOS locally..
createInferencingSKOSThesaurus
{ "repo_name": "beaufort/semantix", "path": "semantix-skos-jena/src/main/java/ie/cmrc/smtx/skos/jena/SKOSFactory.java", "license": "apache-2.0", "size": 9664 }
[ "com.hp.hpl.jena.ontology.OntModelSpec", "com.hp.hpl.jena.rdf.model.InfModel", "com.hp.hpl.jena.rdf.model.Model", "com.hp.hpl.jena.rdf.model.ModelFactory" ]
import com.hp.hpl.jena.ontology.OntModelSpec; import com.hp.hpl.jena.rdf.model.InfModel; import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.ontology.*; import com.hp.hpl.jena.rdf.model.*;
[ "com.hp.hpl" ]
com.hp.hpl;
1,961,093
public void testReplaceValuesRandomAccess() { Multimap<String, Integer> multimap = create(); multimap.put("foo", 1); multimap.put("foo", 3); assertTrue(multimap.replaceValues("foo", Arrays.asList(2, 4)) instanceof RandomAccess); assertTrue(multimap.replaceValues("bar", Arrays.asList(2, 4)) instanc...
void function() { Multimap<String, Integer> multimap = create(); multimap.put("foo", 1); multimap.put("foo", 3); assertTrue(multimap.replaceValues("foo", Arrays.asList(2, 4)) instanceof RandomAccess); assertTrue(multimap.replaceValues("bar", Arrays.asList(2, 4)) instanceof RandomAccess); }
/** * Confirm that replaceValues() returns a List that implements RandomAccess, even though get() * doesn't. */
Confirm that replaceValues() returns a List that implements RandomAccess, even though get() doesn't
testReplaceValuesRandomAccess
{ "repo_name": "rgoldberg/guava", "path": "guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java", "license": "apache-2.0", "size": 17752 }
[ "java.util.Arrays", "java.util.RandomAccess" ]
import java.util.Arrays; import java.util.RandomAccess;
import java.util.*;
[ "java.util" ]
java.util;
1,891,569
Preconditions.checkNotNull(root); Preconditions.checkArgument(root.getType() == Token.BLOCK); JsonML rootElement = new JsonML(TagType.BlockStmt); Node child = root.getFirstChild(); while (child != null) { processNode(child, rootElement); child = child.getNext(); } return rootElemen...
Preconditions.checkNotNull(root); Preconditions.checkArgument(root.getType() == Token.BLOCK); JsonML rootElement = new JsonML(TagType.BlockStmt); Node child = root.getFirstChild(); while (child != null) { processNode(child, rootElement); child = child.getNext(); } return rootElement.getChild(0); }
/** * Creates JsonML tree based on a specified AST. * @param root AST node * @return root of a created JsonML tree */
Creates JsonML tree based on a specified AST
processAst
{ "repo_name": "olegshnitko/closure-compiler", "path": "src/com/google/javascript/jscomp/jsonml/Writer.java", "license": "apache-2.0", "size": 26470 }
[ "com.google.common.base.Preconditions", "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token" ]
import com.google.common.base.Preconditions; import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token;
import com.google.common.base.*; import com.google.javascript.rhino.*;
[ "com.google.common", "com.google.javascript" ]
com.google.common; com.google.javascript;
992,827
@Test void withAssertions_assertThat_iterable_Test() { assertThat((Iterable<TestItem>) Arrays.asList(ITEMS)).contains(ITEMS[0]); }
void withAssertions_assertThat_iterable_Test() { assertThat((Iterable<TestItem>) Arrays.asList(ITEMS)).contains(ITEMS[0]); }
/** * Test that the delegate method is called. */
Test that the delegate method is called
withAssertions_assertThat_iterable_Test
{ "repo_name": "hazendaz/assertj-core", "path": "src/test/java/org/assertj/core/api/WithAssertions_delegation_Test.java", "license": "apache-2.0", "size": 25178 }
[ "java.util.Arrays", "org.junit.jupiter.api.Test" ]
import java.util.Arrays; import org.junit.jupiter.api.Test;
import java.util.*; import org.junit.jupiter.api.*;
[ "java.util", "org.junit.jupiter" ]
java.util; org.junit.jupiter;
1,576,406
public void stopQueue(String queueName) { MessageQueue queue = queues.get(queueName); if (queue != null) { queue.stop(); } }
void function(String queueName) { MessageQueue queue = queues.get(queueName); if (queue != null) { queue.stop(); } }
/** * Stop queue. * * @param queueName the queue name */
Stop queue
stopQueue
{ "repo_name": "solemichael/omni", "path": "src/main/java/org/omni/service/message/MessageBus.java", "license": "apache-2.0", "size": 9739 }
[ "org.omni.service.message.queue.MessageQueue" ]
import org.omni.service.message.queue.MessageQueue;
import org.omni.service.message.queue.*;
[ "org.omni.service" ]
org.omni.service;
179,915
@Test(timeout=100000) public void testBalancerCliWithExcludeListInAFile() throws Exception { final Configuration conf = new HdfsConfiguration(); initConf(conf); Set<String> excludeHosts = new HashSet<String>(); excludeHosts.add( "datanodeY"); excludeHosts.add( "datanodeZ"); doTest(conf, new ...
@Test(timeout=100000) void function() throws Exception { final Configuration conf = new HdfsConfiguration(); initConf(conf); Set<String> excludeHosts = new HashSet<String>(); excludeHosts.add( STR); excludeHosts.add( STR); doTest(conf, new long[]{CAPACITY, CAPACITY}, new String[]{RACK0, RACK1}, CAPACITY, RACK2, new Hos...
/** * Test a cluster with even distribution, * then three nodes are added to the cluster, * runs balancer with two of the nodes in the exclude list in a file */
Test a cluster with even distribution, then three nodes are added to the cluster, runs balancer with two of the nodes in the exclude list in a file
testBalancerCliWithExcludeListInAFile
{ "repo_name": "WIgor/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java", "license": "apache-2.0", "size": 78958 }
[ "java.util.HashSet", "java.util.Set", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.StorageType", "org.apache.hadoop.hdfs.HdfsConfiguration", "org.junit.Test" ]
import java.util.HashSet; import java.util.Set; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.StorageType; import org.apache.hadoop.hdfs.HdfsConfiguration; import org.junit.Test;
import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.junit.*;
[ "java.util", "org.apache.hadoop", "org.junit" ]
java.util; org.apache.hadoop; org.junit;
613,789
public static UDF getUDF(Collection<UDF> udfs, String name, boolean fail) { return getUDF(udfs, name, fail, null); }
static UDF function(Collection<UDF> udfs, String name, boolean fail) { return getUDF(udfs, name, fail, null); }
/** * Finds a UDF by name in a collection of UDF objects. * * @param udfs The collection to search. * @param name The name of the UDF to find. * @param fail Whether to fail with a {@code MissingUDFException} if the field * is not found. * * @return The UDF object with the same na...
Finds a UDF by name in a collection of UDF objects
getUDF
{ "repo_name": "espre05/clarityclient", "path": "src/main/java/com/genologics/ri/userdefined/UDF.java", "license": "gpl-3.0", "size": 18778 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,622,858
public String[] getAttributeNames(String className) { UMLClass namedClass = classDictionary.get(className); if (namedClass == null) { return new String[0]; } Set<String> attributeNameSet = new HashSet<String>(); while (true) { UMLClassUmlAttribu...
String[] function(String className) { UMLClass namedClass = classDictionary.get(className); if (namedClass == null) { return new String[0]; } Set<String> attributeNameSet = new HashSet<String>(); while (true) { UMLClassUmlAttributeCollection attributeCollection = namedClass.getUmlAttributeCollection(); if (attributeCol...
/** * Return the names of the attributes of the named class. * * @param className * The name of the UML class. * @return The names of the attributes of the named UML class. The names are * sorted in ascending order. If there is no class with the * sp...
Return the names of the attributes of the named class
getAttributeNames
{ "repo_name": "NCIP/cagrid-grid-incubation", "path": "grid-incubation/incubator/projects/CQL_CSM/src/edu/emory/cci/domainModel/DomainModelAccessor.java", "license": "bsd-3-clause", "size": 18242 }
[ "gov.nih.nci.cagrid.metadata.common.UMLAttribute", "gov.nih.nci.cagrid.metadata.common.UMLClassUmlAttributeCollection", "gov.nih.nci.cagrid.metadata.dataservice.UMLClass", "java.util.Arrays", "java.util.HashSet", "java.util.Set" ]
import gov.nih.nci.cagrid.metadata.common.UMLAttribute; import gov.nih.nci.cagrid.metadata.common.UMLClassUmlAttributeCollection; import gov.nih.nci.cagrid.metadata.dataservice.UMLClass; import java.util.Arrays; import java.util.HashSet; import java.util.Set;
import gov.nih.nci.cagrid.metadata.common.*; import gov.nih.nci.cagrid.metadata.dataservice.*; import java.util.*;
[ "gov.nih.nci", "java.util" ]
gov.nih.nci; java.util;
825,436
public void setNames( Map<String, ? extends COSObjectable> names ) { if( names == null ) { node.setItem( COSName.NAMES, (COSObjectable)null ); node.setItem( COSName.LIMITS, (COSObjectable)null); } else { COSArray array = new CO...
void function( Map<String, ? extends COSObjectable> names ) { if( names == null ) { node.setItem( COSName.NAMES, (COSObjectable)null ); node.setItem( COSName.LIMITS, (COSObjectable)null); } else { COSArray array = new COSArray(); List<String> keys = new ArrayList<String>(names.keySet()); Collections.sort(keys); for (St...
/** * Set the names of for this node. The keys should be java.lang.String and the * values must be a COSObjectable. This method will set the appropriate upper and lower * limits based on the keys in the map. * * @param names map of names to objects, or <code>null</code> */
Set the names of for this node. The keys should be java.lang.String and the values must be a COSObjectable. This method will set the appropriate upper and lower limits based on the keys in the map
setNames
{ "repo_name": "mdamt/PdfBox-Android", "path": "library/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java", "license": "apache-2.0", "size": 11825 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List", "java.util.Map", "org.apache.pdfbox.cos.COSArray", "org.apache.pdfbox.cos.COSName", "org.apache.pdfbox.cos.COSString" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import org.apache.pdfbox.cos.COSArray; import org.apache.pdfbox.cos.COSName; import org.apache.pdfbox.cos.COSString;
import java.util.*; import org.apache.pdfbox.cos.*;
[ "java.util", "org.apache.pdfbox" ]
java.util; org.apache.pdfbox;
1,154,533
@Deprecated public void saveDetails(HttpMethod method, HTTPSampleResult res) throws URIException{ if (isCacheable(res) && !hasVaryHeader(method)){ String lastModified = getHeader(method ,HTTPConstants.LAST_MODIFIED); String expires = getHeader(method ,HTTPConstants.EXPIRES); ...
void function(HttpMethod method, HTTPSampleResult res) throws URIException{ if (isCacheable(res) && !hasVaryHeader(method)){ String lastModified = getHeader(method ,HTTPConstants.LAST_MODIFIED); String expires = getHeader(method ,HTTPConstants.EXPIRES); String etag = getHeader(method ,HTTPConstants.ETAG); String url = ...
/** * Save the Last-Modified, Etag, and Expires headers if the result is * cacheable. Version for Commons HttpClient implementation. * * @param method * {@link HttpMethod} to get header information from * @param res * result to decide if result is cacheable ...
Save the Last-Modified, Etag, and Expires headers if the result is cacheable. Version for Commons HttpClient implementation
saveDetails
{ "repo_name": "d0k1/jmeter", "path": "src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java", "license": "apache-2.0", "size": 19675 }
[ "org.apache.commons.httpclient.HttpMethod", "org.apache.commons.httpclient.URIException", "org.apache.jmeter.protocol.http.sampler.HTTPSampleResult", "org.apache.jmeter.protocol.http.util.HTTPConstants" ]
import org.apache.commons.httpclient.HttpMethod; import org.apache.commons.httpclient.URIException; import org.apache.jmeter.protocol.http.sampler.HTTPSampleResult; import org.apache.jmeter.protocol.http.util.HTTPConstants;
import org.apache.commons.httpclient.*; import org.apache.jmeter.protocol.http.sampler.*; import org.apache.jmeter.protocol.http.util.*;
[ "org.apache.commons", "org.apache.jmeter" ]
org.apache.commons; org.apache.jmeter;
2,806,662
protected void dispatchBindingChangedEvent(Element bindableElement, Element shadowTree) { Object[] ls = bindingListenerList.getListenerList(); for (int i = ls.length - 2; i >= 0; i -= 2) { BindingListener l = (BindingListener) ls[i + 1]; ...
void function(Element bindableElement, Element shadowTree) { Object[] ls = bindingListenerList.getListenerList(); for (int i = ls.length - 2; i >= 0; i -= 2) { BindingListener l = (BindingListener) ls[i + 1]; l.bindingChanged(bindableElement, shadowTree); } }
/** * Dispatches a BindingEvent the registered listeners. * @param bindableElement the bindable element whose binding has changed * @param shadowTree the new shadow tree of the bindable element */
Dispatches a BindingEvent the registered listeners
dispatchBindingChangedEvent
{ "repo_name": "apache/batik", "path": "batik-bridge/src/main/java/org/apache/batik/bridge/svg12/DefaultXBLManager.java", "license": "apache-2.0", "size": 70234 }
[ "org.w3c.dom.Element" ]
import org.w3c.dom.Element;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
365,599
@Test(timeout=60000) public void testQuotasTrackedOnStandby() throws Exception { fs.mkdirs(TEST_DIR); DistributedFileSystem dfs = (DistributedFileSystem)fs; dfs.setQuota(TEST_DIR, NS_QUOTA, DS_QUOTA); long expectedSize = 3 * BLOCK_SIZE + BLOCK_SIZE/2; DFSTestUtil.createFile(fs, TEST_FILE, expect...
@Test(timeout=60000) void function() throws Exception { fs.mkdirs(TEST_DIR); DistributedFileSystem dfs = (DistributedFileSystem)fs; dfs.setQuota(TEST_DIR, NS_QUOTA, DS_QUOTA); long expectedSize = 3 * BLOCK_SIZE + BLOCK_SIZE/2; DFSTestUtil.createFile(fs, TEST_FILE, expectedSize, (short)1, 1L); HATestUtil.waitForStandbyT...
/** * Test that quotas are properly tracked by the standby through * create, append, delete. */
Test that quotas are properly tracked by the standby through create, append, delete
testQuotasTrackedOnStandby
{ "repo_name": "tseen/Federated-HDFS", "path": "tseenliu/FedHDFS-hadoop-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestQuotasWithHA.java", "license": "apache-2.0", "size": 4786 }
[ "org.apache.hadoop.fs.ContentSummary", "org.apache.hadoop.fs.FSDataOutputStream", "org.apache.hadoop.hdfs.DFSTestUtil", "org.apache.hadoop.hdfs.DistributedFileSystem", "org.apache.hadoop.io.IOUtils", "org.junit.Assert", "org.junit.Test" ]
import org.apache.hadoop.fs.ContentSummary; import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.hdfs.DFSTestUtil; import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.io.IOUtils; import org.junit.Assert; import org.junit.Test;
import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.io.*; import org.junit.*;
[ "org.apache.hadoop", "org.junit" ]
org.apache.hadoop; org.junit;
2,802,062
private void generateAndCheckPermutations(int minLength, int maxLength, int nPermutations, int nRandomEditOperations, int distance) throws DictionaryBuilderException { String str = randomString(minLength + (maxLength - minLength + 1)); TreeSet<String> a...
void function(int minLength, int maxLength, int nPermutations, int nRandomEditOperations, int distance) throws DictionaryBuilderException { String str = randomString(minLength + (maxLength - minLength + 1)); TreeSet<String> all = new TreeSet<>(); Set<String> shouldHave = new HashSet<>(); for (int i = 0; i < nPermutatio...
/** * Generate a word, create a dictionary of permutations permutations that are created using random edit operations, * and check that Levenshtein automaton for that word finds permutations within its edit distance. * * @param minLength The minimum lenth of the generated word. * @p...
Generate a word, create a dictionary of permutations permutations that are created using random edit operations, and check that Levenshtein automaton for that word finds permutations within its edit distance
generateAndCheckPermutations
{ "repo_name": "danieldk/dictomaton", "path": "src/test/java/eu/danieldk/dictomaton/levenshtein/LevenshteinAutomatonTest.java", "license": "apache-2.0", "size": 4453 }
[ "eu.danieldk.dictomaton.Dictionary", "eu.danieldk.dictomaton.DictionaryBuilder", "eu.danieldk.dictomaton.DictionaryBuilderException", "java.util.HashSet", "java.util.Set", "java.util.TreeSet", "org.apache.commons.lang3.StringUtils", "org.junit.Assert" ]
import eu.danieldk.dictomaton.Dictionary; import eu.danieldk.dictomaton.DictionaryBuilder; import eu.danieldk.dictomaton.DictionaryBuilderException; import java.util.HashSet; import java.util.Set; import java.util.TreeSet; import org.apache.commons.lang3.StringUtils; import org.junit.Assert;
import eu.danieldk.dictomaton.*; import java.util.*; import org.apache.commons.lang3.*; import org.junit.*;
[ "eu.danieldk.dictomaton", "java.util", "org.apache.commons", "org.junit" ]
eu.danieldk.dictomaton; java.util; org.apache.commons; org.junit;
2,125,799
public static void copy(File source, File target) throws IOException { if (!source.exists()) { throw new FileNotFoundException("Source file not found:" + source.getAbsolutePath()); } if (!target.exists() && !target.getParentFile().exists() && !target.getParentFile().mkdirs()) { ...
static void function(File source, File target) throws IOException { if (!source.exists()) { throw new FileNotFoundException(STR + source.getAbsolutePath()); } if (!target.exists() && !target.getParentFile().exists() && !target.getParentFile().mkdirs()) { throw new IOException(STR + target.getParentFile().getAbsolutePat...
/** * Copy the source {@link File} to the target {@link File}. */
Copy the source <code>File</code> to the target <code>File</code>
copy
{ "repo_name": "rajdavies/fabric8", "path": "components/fabric8-utils/src/main/java/io/fabric8/utils/Files.java", "license": "apache-2.0", "size": 19018 }
[ "java.io.File", "java.io.FileInputStream", "java.io.FileNotFoundException", "java.io.FileOutputStream", "java.io.IOException" ]
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,522,560
private ModelInfo findModelInfo(ModelInfo modelinfo, List<ModelInfo> modelInfoList) { for (ModelInfo existing : modelInfoList) { if (modelinfo.getResource().equals(existing.getResource())) { return existing; } } return null; }
ModelInfo function(ModelInfo modelinfo, List<ModelInfo> modelInfoList) { for (ModelInfo existing : modelInfoList) { if (modelinfo.getResource().equals(existing.getResource())) { return existing; } } return null; }
/** * Find the existing ModelInfo that has the same resource as modelinfo * * @param modelinfo * @param modelInfoList * @return */
Find the existing ModelInfo that has the same resource as modelinfo
findModelInfo
{ "repo_name": "mendix/Mendix-Core", "path": "ServiceDsl/org.mod4j.dsl.service.mm/oaw/org/mod4j/org.mod4j.crossx.broker/src/main/java/org/mod4j/crossx/broker/CrossxLocation.java", "license": "epl-1.0", "size": 6959 }
[ "java.util.List", "org.mendix.crossx.mm.crossx.ModelInfo" ]
import java.util.List; import org.mendix.crossx.mm.crossx.ModelInfo;
import java.util.*; import org.mendix.crossx.mm.crossx.*;
[ "java.util", "org.mendix.crossx" ]
java.util; org.mendix.crossx;
1,693,564
public Accessor getAccessor() { return accessor; }
Accessor function() { return accessor; }
/** * If this instance has published then get the accessor of this. * * @return null or accessor. */
If this instance has published then get the accessor of this
getAccessor
{ "repo_name": "ZheYuan/Zookeeper-Accessor", "path": "src/main/java/com/renren/zookeeper/accessor/Publish.java", "license": "gpl-3.0", "size": 6276 }
[ "com.renren.zookeeper.Accessor" ]
import com.renren.zookeeper.Accessor;
import com.renren.zookeeper.*;
[ "com.renren.zookeeper" ]
com.renren.zookeeper;
537,225
private ScriptCallback runScript(SecurityContext ctx, long scriptID, Map<String, RType> parameters) throws ProcessException { ScriptCallback cb = null; try { ProcessCallbackI pcb = gw.runScript(ctx, scriptID, parameters); cb = new ScriptCallback(scriptID, pcb); } catch (Exception e...
ScriptCallback function(SecurityContext ctx, long scriptID, Map<String, RType> parameters) throws ProcessException { ScriptCallback cb = null; try { ProcessCallbackI pcb = gw.runScript(ctx, scriptID, parameters); cb = new ScriptCallback(scriptID, pcb); } catch (Exception e) { handleConnectionException(e); throw new Pro...
/** * Returns the specified script. * * @param ctx The security context. * @param scriptID The identifier of the script to run. * @param parameters The parameters to pass to the script. * @return See above. * @throws ProcessException If an error occurred while running the script. */
Returns the specified script
runScript
{ "repo_name": "dominikl/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java", "license": "gpl-2.0", "size": 262766 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
165,017
public String toString() { return getClass().getName() + ": basenames=[" + StringUtils.arrayToCommaDelimitedString(this.basenames) + "]"; }
String function() { return getClass().getName() + STR + StringUtils.arrayToCommaDelimitedString(this.basenames) + "]"; }
/** * Show the configuration of this MessageSource. */
Show the configuration of this MessageSource
toString
{ "repo_name": "dachengxi/spring1.1.1_source", "path": "src/org/springframework/context/support/ResourceBundleMessageSource.java", "license": "mit", "size": 6256 }
[ "org.springframework.util.StringUtils" ]
import org.springframework.util.StringUtils;
import org.springframework.util.*;
[ "org.springframework.util" ]
org.springframework.util;
1,561,015
CharSet result = null; // if "s" is in the expression cache, pull the result out // of the expresison cache if (expressionCache != null) { result = (CharSet)expressionCache.get(s); } // otherwise, use doParseString() to actually parse the string, // and then...
CharSet result = null; if (expressionCache != null) { result = (CharSet)expressionCache.get(s); } if (result == null) { result = doParseString(s); if (expressionCache == null) { expressionCache = new Hashtable(); } expressionCache.put(s, result); } result = (CharSet)(result.clone()); return result; }
/** * Builds a CharSet based on a textual description. For the syntax of * the description, see the documentation of RuleBasedBreakIterator. * @see java.text.RuleBasedBreakIterator */
Builds a CharSet based on a textual description. For the syntax of the description, see the documentation of RuleBasedBreakIterator
parseString
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk/jdk/make/tools/src/build/tools/generatebreakiteratordata/CharSet.java", "license": "mit", "size": 28716 }
[ "java.util.Hashtable" ]
import java.util.Hashtable;
import java.util.*;
[ "java.util" ]
java.util;
1,513,335
public void setAutoCommit(boolean autoCommit) throws SQLException { checkClosed(); if (autoCommit && isInGlobalTx()) { throw SQLError.createSQLException( "Can't set autocommit to 'true' on an XAConnection", SQLError.SQL_STATE_INVALID_TRANSACTION_TERMINATION, MysqlErrorNumbers.ER_XA_RMERR, this...
void function(boolean autoCommit) throws SQLException { checkClosed(); if (autoCommit && isInGlobalTx()) { throw SQLError.createSQLException( STR, SQLError.SQL_STATE_INVALID_TRANSACTION_TERMINATION, MysqlErrorNumbers.ER_XA_RMERR, this.exceptionInterceptor); } try { this.mc.setAutoCommit(autoCommit); } catch (SQLExcepti...
/** * Passes call to method on physical connection instance. Notifies listeners * of any caught exceptions before re-throwing to client. * * @see java.sql.Connection#setAutoCommit */
Passes call to method on physical connection instance. Notifies listeners of any caught exceptions before re-throwing to client
setAutoCommit
{ "repo_name": "spullara/mysql-connector-java", "path": "src/main/java/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java", "license": "gpl-2.0", "size": 73716 }
[ "com.mysql.jdbc.MysqlErrorNumbers", "com.mysql.jdbc.SQLError", "java.sql.SQLException" ]
import com.mysql.jdbc.MysqlErrorNumbers; import com.mysql.jdbc.SQLError; import java.sql.SQLException;
import com.mysql.jdbc.*; import java.sql.*;
[ "com.mysql.jdbc", "java.sql" ]
com.mysql.jdbc; java.sql;
874,363
protected List<FrameworkMethod> computeTestMethods() { return getTestClass().getAnnotatedMethods(Test.class); }
List<FrameworkMethod> function() { return getTestClass().getAnnotatedMethods(Test.class); }
/** * Returns the methods that run tests. Default implementation returns all * methods annotated with {@code @Test} on this class and superclasses that * are not overridden. */
Returns the methods that run tests. Default implementation returns all methods annotated with @Test on this class and superclasses that are not overridden
computeTestMethods
{ "repo_name": "berlinbrown/SourceCodeAnalysisDatabase", "path": "test-coverage-example/src/main/java/org/junit/runners/BlockJUnit4ClassRunner.java", "license": "bsd-3-clause", "size": 15837 }
[ "java.util.List", "org.junit.Test", "org.junit.runners.model.FrameworkMethod" ]
import java.util.List; import org.junit.Test; import org.junit.runners.model.FrameworkMethod;
import java.util.*; import org.junit.*; import org.junit.runners.model.*;
[ "java.util", "org.junit", "org.junit.runners" ]
java.util; org.junit; org.junit.runners;
1,846,068
public static java.sql.Timestamp toTimestamp(int month, int day, int year, int hour, int minute, int second) { java.util.Date newDate = toDate(month, day, year, hour, minute, second); if (newDate != null) return new java.sql.Timestamp(newDate.getTime()); else return null; }
static java.sql.Timestamp function(int month, int day, int year, int hour, int minute, int second) { java.util.Date newDate = toDate(month, day, year, hour, minute, second); if (newDate != null) return new java.sql.Timestamp(newDate.getTime()); else return null; }
/** * Makes a Timestamp from separate ints for month, day, year, hour, minute, * and second. * * @param month * The month int * @param day * The day int * @param year * The year int * @param hour * The hour int * @param minute * The minut...
Makes a Timestamp from separate ints for month, day, year, hour, minute, and second
toTimestamp
{ "repo_name": "qiumingkui/sample", "path": "sample-common/src/main/java/com/qiumingkui/sample/imedia/common/ext/util/DateTimeUtil.java", "license": "apache-2.0", "size": 16759 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,275,989
public RecordReader<MatrixRange, NullWritable> getRecordReader(InputSplit splitter, JobConf conf, Reporter report) throws IOException { SeqInputSplit split = (SeqInputSplit)splitter; return new SeqRecordReader(split); } public static class SeqInputSplit implements InputSplit, Writable...
RecordReader<MatrixRange, NullWritable> function(InputSplit splitter, JobConf conf, Reporter report) throws IOException { SeqInputSplit split = (SeqInputSplit)splitter; return new SeqRecordReader(split); } public static class SeqInputSplit implements InputSplit, Writable { public List<MatrixRange> ranges; public SeqInp...
/** * Breaks an InputSplit up into individual key,values to feed to a mapper. * * @param splitter SeqInputSplit to be used. * @param conf ignored * @param report ignored * @return * @throws IOException */
Breaks an InputSplit up into individual key,values to feed to a mapper
getRecordReader
{ "repo_name": "rdpstaff/Clustering", "path": "src/edu/msu/cme/rdp/hadoop/distance/mapred/ByteSeqInputFormat.java", "license": "gpl-3.0", "size": 7877 }
[ "edu.msu.cme.rdp.hadoop.distance.mapred.keys.MatrixRange", "java.io.IOException", "java.util.List", "org.apache.hadoop.io.NullWritable", "org.apache.hadoop.io.Writable", "org.apache.hadoop.mapred.InputSplit", "org.apache.hadoop.mapred.JobConf", "org.apache.hadoop.mapred.RecordReader", "org.apache.ha...
import edu.msu.cme.rdp.hadoop.distance.mapred.keys.MatrixRange; import java.io.IOException; import java.util.List; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.io.Writable; import org.apache.hadoop.mapred.InputSplit; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapred.RecordRe...
import edu.msu.cme.rdp.hadoop.distance.mapred.keys.*; import java.io.*; import java.util.*; import org.apache.hadoop.io.*; import org.apache.hadoop.mapred.*;
[ "edu.msu.cme", "java.io", "java.util", "org.apache.hadoop" ]
edu.msu.cme; java.io; java.util; org.apache.hadoop;
2,897,924
private Node tryMinimizeNot(Node n) { Node parent = n.getParent(); Node notChild = n.getFirstChild(); // negative operator of the current one : == -> != for instance. int complementOperator; switch (notChild.getType()) { case Token.EQ: complementOperator = Token.NE; break; ...
Node function(Node n) { Node parent = n.getParent(); Node notChild = n.getFirstChild(); int complementOperator; switch (notChild.getType()) { case Token.EQ: complementOperator = Token.NE; break; case Token.NE: complementOperator = Token.EQ; break; case Token.SHEQ: complementOperator = Token.SHNE; break; case Token.SHNE...
/** * Try to minimize NOT nodes such as !(x==y). * * Returns the replacement for n or the original if no change was made */
Try to minimize NOT nodes such as !(x==y). Returns the replacement for n or the original if no change was made
tryMinimizeNot
{ "repo_name": "h4ck3rm1k3/javascript-closure-compiler-git", "path": "src/com/google/javascript/jscomp/PeepholeSubstituteAlternateSyntax.java", "license": "apache-2.0", "size": 55924 }
[ "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token" ]
import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
2,485,936
public boolean isQueryPageArchived(QueryPage queryPage) { if (queryPage.getArchived()) { return true; } QuerySection querySection = queryPage.getQuerySection(); if (querySection.getArchived()) { return true; } return isQueryArchived(querySection.getQuery()); }
boolean function(QueryPage queryPage) { if (queryPage.getArchived()) { return true; } QuerySection querySection = queryPage.getQuerySection(); if (querySection.getArchived()) { return true; } return isQueryArchived(querySection.getQuery()); }
/** * Returns whether query page is archived or not * * @param queryPage query page * @return whether query page is archived or not */
Returns whether query page is archived or not
isQueryPageArchived
{ "repo_name": "Metatavu/edelphi", "path": "common-cdi/src/main/java/fi/metatavu/edelphi/queries/QueryController.java", "license": "gpl-3.0", "size": 5741 }
[ "fi.metatavu.edelphi.domainmodel.querylayout.QueryPage", "fi.metatavu.edelphi.domainmodel.querylayout.QuerySection" ]
import fi.metatavu.edelphi.domainmodel.querylayout.QueryPage; import fi.metatavu.edelphi.domainmodel.querylayout.QuerySection;
import fi.metatavu.edelphi.domainmodel.querylayout.*;
[ "fi.metatavu.edelphi" ]
fi.metatavu.edelphi;
726,669
@Test public void testWriteSnapshot_NoSystemPropertySet() throws Exception { assertNull(Files.writeSnapshot("doesntmatter", 3, "doesntmatter")); }
void function() throws Exception { assertNull(Files.writeSnapshot(STR, 3, STR)); }
/** * If the system property that specifies the snapshot directory is not set, writeSnapshot() * should return null and warn. */
If the system property that specifies the snapshot directory is not set, writeSnapshot() should return null and warn
testWriteSnapshot_NoSystemPropertySet
{ "repo_name": "NovaOrdis/novaordis-utilities", "path": "src/test/java/io/novaordis/utilities/FilesTest.java", "license": "apache-2.0", "size": 55913 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
105,234
public void setRequestProperty(String name, String value) { Assertions.checkNotNull(name); Assertions.checkNotNull(value); synchronized (requestProperties) { requestProperties.put(name, value); } }
void function(String name, String value) { Assertions.checkNotNull(name); Assertions.checkNotNull(value); synchronized (requestProperties) { requestProperties.put(name, value); } }
/** * Sets the value of a request header field. The value will be used for subsequent connections * established by the source. * * @param name The name of the header field. * @param value The value of the field. */
Sets the value of a request header field. The value will be used for subsequent connections established by the source
setRequestProperty
{ "repo_name": "ajrulez/ExoPlayer", "path": "library/src/main/java/com/google/android/exoplayer/upstream/HttpDataSource.java", "license": "apache-2.0", "size": 15717 }
[ "com.google.android.exoplayer.util.Assertions" ]
import com.google.android.exoplayer.util.Assertions;
import com.google.android.exoplayer.util.*;
[ "com.google.android" ]
com.google.android;
184,943
public ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception { User user = (User) command; User realUser = mUserManager.getUserByNickname(user.getNickname()); HttpSession sess = request.getSession(); sess.setA...
ModelAndView function(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception { User user = (User) command; User realUser = mUserManager.getUserByNickname(user.getNickname()); HttpSession sess = request.getSession(); sess.setAttribute(USER_ID_ATTRIBUTE, new Integ...
/** * Process a submitted form by placing the user name in the session. * <p> * @param request The servlet request object. * @param response The servlet response object. * @param command The form backing store object (a User object). * @param errors The Spring errors object. * @return The model and view. ...
Process a submitted form by placing the user name in the session.
onSubmit
{ "repo_name": "iwethey/iwethey", "path": "src/org/iwethey/forums/web/user/LoginController.java", "license": "apache-2.0", "size": 4145 }
[ "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "javax.servlet.http.HttpSession", "org.iwethey.forums.domain.User", "org.springframework.validation.BindException", "org.springframework.web.servlet.ModelAndView", "org.springframework.web.servlet.view.RedirectView" ]
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.iwethey.forums.domain.User; import org.springframework.validation.BindException; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.view...
import javax.servlet.http.*; import org.iwethey.forums.domain.*; import org.springframework.validation.*; import org.springframework.web.servlet.*; import org.springframework.web.servlet.view.*;
[ "javax.servlet", "org.iwethey.forums", "org.springframework.validation", "org.springframework.web" ]
javax.servlet; org.iwethey.forums; org.springframework.validation; org.springframework.web;
958,362
public void installUI(JComponent c) { if (c instanceof JSplitPane) { splitPane = (JSplitPane) c; installDefaults(); installListeners(); installKeyboardActions(); } }
void function(JComponent c) { if (c instanceof JSplitPane) { splitPane = (JSplitPane) c; installDefaults(); installListeners(); installKeyboardActions(); } }
/** * This method installs the BasicSplitPaneUI for the given JComponent. * * @param c The JComponent to install the UI for. */
This method installs the BasicSplitPaneUI for the given JComponent
installUI
{ "repo_name": "aosm/gcc_40", "path": "libjava/javax/swing/plaf/basic/BasicSplitPaneUI.java", "license": "gpl-2.0", "size": 41958 }
[ "javax.swing.JComponent", "javax.swing.JSplitPane" ]
import javax.swing.JComponent; import javax.swing.JSplitPane;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,754,487
@Override protected int getBucketedSizeForValue(byte[] value) { Preconditions.checkNotNull(value); return value.length; }
int function(byte[] value) { Preconditions.checkNotNull(value); return value.length; }
/** * Gets the bucketed size of the value * @param value the value * @return just the length of the value */
Gets the bucketed size of the value
getBucketedSizeForValue
{ "repo_name": "MaTriXy/fresco", "path": "imagepipeline/src/main/java/com/facebook/imagepipeline/memory/GenericByteArrayPool.java", "license": "bsd-3-clause", "size": 4272 }
[ "com.facebook.common.internal.Preconditions" ]
import com.facebook.common.internal.Preconditions;
import com.facebook.common.internal.*;
[ "com.facebook.common" ]
com.facebook.common;
2,229,642
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) public static int deleteCalendar(Context c) { Uri uri = CalendarContract.Calendars.CONTENT_URI; return c.getContentResolver().delete(uri, " account_name = '" + ACCOUNT_NAME + "'", null); }
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) static int function(Context c) { Uri uri = CalendarContract.Calendars.CONTENT_URI; return c.getContentResolver().delete(uri, STR + ACCOUNT_NAME + "'", null); }
/** * Deletes the calendar TUM_Campus_APP from google calendar * @param c Context * @return Number of rows deleted */
Deletes the calendar TUM_Campus_APP from google calendar
deleteCalendar
{ "repo_name": "brdvlps/TumCampusApp", "path": "app/src/main/java/de/tum/in/tumcampusapp/auxiliary/calendar/CalendarHelper.java", "license": "gpl-2.0", "size": 2356 }
[ "android.annotation.TargetApi", "android.content.Context", "android.net.Uri", "android.os.Build", "android.provider.CalendarContract" ]
import android.annotation.TargetApi; import android.content.Context; import android.net.Uri; import android.os.Build; import android.provider.CalendarContract;
import android.annotation.*; import android.content.*; import android.net.*; import android.os.*; import android.provider.*;
[ "android.annotation", "android.content", "android.net", "android.os", "android.provider" ]
android.annotation; android.content; android.net; android.os; android.provider;
2,135,856
public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException { } // xmlDecl(String,String,String)
void function(String version, String encoding, String standalone, Augmentations augs) throws XNIException { }
/** * Notifies of the presence of an XMLDecl line in the document. If * present, this method will be called immediately following the * startDocument call. * * @param version The XML version. * @param encoding The IANA encoding name of the document, or null if * ...
Notifies of the presence of an XMLDecl line in the document. If present, this method will be called immediately following the startDocument call
xmlDecl
{ "repo_name": "AaronZhangL/SplitCharater", "path": "xerces-2_11_0/src/org/apache/xerces/parsers/AbstractXMLDocumentParser.java", "license": "gpl-2.0", "size": 31977 }
[ "org.apache.xerces.xni.Augmentations", "org.apache.xerces.xni.XNIException" ]
import org.apache.xerces.xni.Augmentations; import org.apache.xerces.xni.XNIException;
import org.apache.xerces.xni.*;
[ "org.apache.xerces" ]
org.apache.xerces;
1,225,597
public void onDrawerClosed(View view) { super.onDrawerClosed(view); invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu() }
void function(View view) { super.onDrawerClosed(view); invalidateOptionsMenu(); }
/** * Called when a drawer has settled in a completely closed state. */
Called when a drawer has settled in a completely closed state
onDrawerClosed
{ "repo_name": "HSR-Challenge-Projekt-2014/AndroidApp", "path": "app/src/main/java/ch/hsr/challp/museum/HomeActivity.java", "license": "mit", "size": 10088 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
312,886