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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
private int countLargeFiles(int size, TableName tableName, String familyName) throws IOException {
Path mobDirPath = MobUtils.getMobFamilyPath(conf, tableName, familyName);
int count = 0;
if (fs.exists(mobDirPath)) {
FileStatus[] files = fs.listStatus(mobDirPath);
for (FileStatus file : files)... | int function(int size, TableName tableName, String familyName) throws IOException { Path mobDirPath = MobUtils.getMobFamilyPath(conf, tableName, familyName); int count = 0; if (fs.exists(mobDirPath)) { FileStatus[] files = fs.listStatus(mobDirPath); for (FileStatus file : files) { if ((!StoreFileInfo.isDelFile(file.get... | /**
* Gets the number of files.
* @param size the size of the file
* @param tableName the current table name
* @param familyName the family name
* @return the number of files large than the size
*/ | Gets the number of files | countLargeFiles | {
"repo_name": "HubSpot/hbase",
"path": "hbase-server/src/test/java/org/apache/hadoop/hbase/mob/compactions/TestMobCompactor.java",
"license": "apache-2.0",
"size": 49830
} | [
"java.io.IOException",
"org.apache.hadoop.fs.FileStatus",
"org.apache.hadoop.fs.Path",
"org.apache.hadoop.hbase.TableName",
"org.apache.hadoop.hbase.mob.MobUtils",
"org.apache.hadoop.hbase.regionserver.StoreFileInfo"
] | import java.io.IOException; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.mob.MobUtils; import org.apache.hadoop.hbase.regionserver.StoreFileInfo; | import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.mob.*; import org.apache.hadoop.hbase.regionserver.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 51,514 |
public BlockFace getFirstUnknown();
| BlockFace function(); | /**
* Get a direction that has not been configured, or null if all directions are configured
*
* @return the direction
*/ | Get a direction that has not been configured, or null if all directions are configured | getFirstUnknown | {
"repo_name": "catageek/ByteCartAPI",
"path": "src/com/github/catageek/ByteCartAPI/Wanderer/RoutingTable.java",
"license": "gpl-3.0",
"size": 2957
} | [
"org.bukkit.block.BlockFace"
] | import org.bukkit.block.BlockFace; | import org.bukkit.block.*; | [
"org.bukkit.block"
] | org.bukkit.block; | 2,675,201 |
public E next(long timeout, TimeUnit unit) {
return next();
}
}
| E function(long timeout, TimeUnit unit) { return next(); } } | /**
* Delegates to {@link #next()} since all data are local and timeouts
* can not occur.
*/ | Delegates to <code>#next()</code> since all data are local and timeouts can not occur | next | {
"repo_name": "smalyshev/blazegraph",
"path": "bigdata/src/test/com/bigdata/relation/accesspath/TestMultiSourceSequentialCloseableIterator.java",
"license": "gpl-2.0",
"size": 11478
} | [
"java.util.concurrent.TimeUnit"
] | import java.util.concurrent.TimeUnit; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 2,894,630 |
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new BorderLayout());
jContentPane.add(getJPanel(), java.awt.BorderLayout.CENTER);
jContentPane.add(getJPanelBottom(), java.awt.BorderLayout.SOUTH);
}
return jContentPane;
}
| JPanel function() { if (jContentPane == null) { jContentPane = new JPanel(); jContentPane.setLayout(new BorderLayout()); jContentPane.add(getJPanel(), java.awt.BorderLayout.CENTER); jContentPane.add(getJPanelBottom(), java.awt.BorderLayout.SOUTH); } return jContentPane; } | /**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/ | This method initializes jContentPane | getJContentPane | {
"repo_name": "0xkasun/zaproxy",
"path": "src/org/parosproxy/paros/extension/history/BrowserDialog.java",
"license": "apache-2.0",
"size": 10082
} | [
"java.awt.BorderLayout",
"javax.swing.JPanel"
] | import java.awt.BorderLayout; import javax.swing.JPanel; | import java.awt.*; import javax.swing.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 1,118,887 |
@Override
public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ)
{
return false;
} | boolean function(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) { return false; } | /**
* This is called when the item is used, before the block is activated.
* @param stack The Item Stack
* @param player The Player that used the item
* @param world The Current World
* @param pos Target position
* @param side The side of the target hit
* @return Return true to preven... | This is called when the item is used, before the block is activated | onItemUseFirst | {
"repo_name": "trayer3/DeathCube",
"path": "src/main/java/com/projectreddog/deathcube/item/ItemLifeSkull.java",
"license": "gpl-3.0",
"size": 4203
} | [
"net.minecraft.entity.player.EntityPlayer",
"net.minecraft.item.ItemStack",
"net.minecraft.util.BlockPos",
"net.minecraft.util.EnumFacing",
"net.minecraft.world.World"
] | import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.world.World; | import net.minecraft.entity.player.*; import net.minecraft.item.*; import net.minecraft.util.*; import net.minecraft.world.*; | [
"net.minecraft.entity",
"net.minecraft.item",
"net.minecraft.util",
"net.minecraft.world"
] | net.minecraft.entity; net.minecraft.item; net.minecraft.util; net.minecraft.world; | 236,763 |
public DcmElement putUT(int tag) {
return put(StringElement.createUT(tag));
} | DcmElement function(int tag) { return put(StringElement.createUT(tag)); } | /**
* Description of the Method
*
* @param tag
* Description of the Parameter
* @return Description of the Return Value
*/ | Description of the Method | putUT | {
"repo_name": "medicayun/medicayundicom",
"path": "dcm4che14/branches/DCM4CHE_2_14_22_BRANCHA/src/java/org/dcm4cheri/data/DcmObjectImpl.java",
"license": "apache-2.0",
"size": 86392
} | [
"org.dcm4che.data.DcmElement"
] | import org.dcm4che.data.DcmElement; | import org.dcm4che.data.*; | [
"org.dcm4che.data"
] | org.dcm4che.data; | 2,695,370 |
EAttribute getCurveData_Xvalue(); | EAttribute getCurveData_Xvalue(); | /**
* Returns the meta object for the attribute '{@link CIM.IEC61970.Core.CurveData#getXvalue <em>Xvalue</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Xvalue</em>'.
* @see CIM.IEC61970.Core.CurveData#getXvalue()
* @see #getCurveData()
* @generat... | Returns the meta object for the attribute '<code>CIM.IEC61970.Core.CurveData#getXvalue Xvalue</code>'. | getCurveData_Xvalue | {
"repo_name": "georghinkel/ttc2017smartGrids",
"path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Core/CorePackage.java",
"license": "mit",
"size": 253784
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,481,169 |
@Test
public void testConfModificationFederationOnly() {
final HdfsConfiguration conf = new HdfsConfiguration();
String nsId = "ns1";
conf.set(DFS_NAMESERVICES, nsId);
conf.set(DFS_NAMESERVICE_ID, nsId);
// Set the nameservice specific keys with nameserviceId in the config key
for (Str... | void function() { final HdfsConfiguration conf = new HdfsConfiguration(); String nsId = "ns1"; conf.set(DFS_NAMESERVICES, nsId); conf.set(DFS_NAMESERVICE_ID, nsId); for (String key : NameNode.NAMENODE_SPECIFIC_KEYS) { conf.set(DFSUtil.addKeySuffixes(key, nsId), key); } NameNode.initializeGenericKeys(conf, nsId, null); ... | /**
* Test to ensure nameservice specific keys in the configuration are
* copied to generic keys when the namenode starts.
*/ | Test to ensure nameservice specific keys in the configuration are copied to generic keys when the namenode starts | testConfModificationFederationOnly | {
"repo_name": "jonathangizmo/HadoopDistJ",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUtil.java",
"license": "mit",
"size": 34311
} | [
"org.apache.hadoop.hdfs.server.namenode.NameNode",
"org.junit.Assert"
] | import org.apache.hadoop.hdfs.server.namenode.NameNode; import org.junit.Assert; | import org.apache.hadoop.hdfs.server.namenode.*; import org.junit.*; | [
"org.apache.hadoop",
"org.junit"
] | org.apache.hadoop; org.junit; | 508,326 |
public @Nonnull Path export(@Nonnull OpenAPI openAPI, @Nonnull Format format) throws IOException {
Path output;
if (openAPI instanceof OpenAPIExt) {
String source = ((OpenAPIExt) openAPI).getSource();
String[] names = source.split("\\.");
output = Stream.of(names).limit(names.length - 1)
... | @Nonnull Path function(@Nonnull OpenAPI openAPI, @Nonnull Format format) throws IOException { Path output; if (openAPI instanceof OpenAPIExt) { String source = ((OpenAPIExt) openAPI).getSource(); String[] names = source.split("\\."); output = Stream.of(names).limit(names.length - 1) .reduce(outputDir, Path::resolve, Pa... | /**
* Export an {@link OpenAPI} model to the given format.
*
* @param openAPI Model.
* @param format Format.
* @throws IOException
* @return Output file.
*/ | Export an <code>OpenAPI</code> model to the given format | export | {
"repo_name": "jooby-project/jooby",
"path": "modules/jooby-openapi/src/main/java/io/jooby/openapi/OpenAPIGenerator.java",
"license": "apache-2.0",
"size": 13528
} | [
"io.jooby.internal.openapi.OpenAPIExt",
"io.swagger.v3.oas.models.OpenAPI",
"java.io.IOException",
"java.nio.file.Files",
"java.nio.file.Path",
"java.util.Collections",
"java.util.stream.Stream",
"javax.annotation.Nonnull"
] | import io.jooby.internal.openapi.OpenAPIExt; import io.swagger.v3.oas.models.OpenAPI; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.Collections; import java.util.stream.Stream; import javax.annotation.Nonnull; | import io.jooby.internal.openapi.*; import io.swagger.v3.oas.models.*; import java.io.*; import java.nio.file.*; import java.util.*; import java.util.stream.*; import javax.annotation.*; | [
"io.jooby.internal",
"io.swagger.v3",
"java.io",
"java.nio",
"java.util",
"javax.annotation"
] | io.jooby.internal; io.swagger.v3; java.io; java.nio; java.util; javax.annotation; | 988,691 |
public Sequence openSequence(Transaction txn,
DatabaseEntry key,
SequenceConfig config)
throws DatabaseException {
checkEnv();
DatabaseUtil.checkForNullDbt(key, "key", true);
checkRequiredDbState(OPEN, "Can't c... | Sequence function(Transaction txn, DatabaseEntry key, SequenceConfig config) throws DatabaseException { checkEnv(); DatabaseUtil.checkForNullDbt(key, "key", true); checkRequiredDbState(OPEN, STR); checkWritable(STR); trace(Level.FINEST, STR, txn, key, null, null); return new Sequence(this, txn, key, config); } | /**
* Javadoc for this public method is generated via
* the doc templates in the doc_src directory.
*/ | Javadoc for this public method is generated via the doc templates in the doc_src directory | openSequence | {
"repo_name": "ckaestne/LEADT",
"path": "CIDE_Samples/cide_samples/Berkeley DB JE/src/com/sleepycat/je/Database.java",
"license": "gpl-3.0",
"size": 38995
} | [
"java.util.logging.Level"
] | import java.util.logging.Level; | import java.util.logging.*; | [
"java.util"
] | java.util; | 1,508,144 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
} | void function(ObjectInput in) throws IOException, ClassNotFoundException { } | /**
* The object implements the readExternal method to restore its
* contents by calling the methods of DataInput for primitive
* types and readObject for objects, strings and arrays. The
* readExternal method must read the values in the same sequence
* and with the same types as were written ... | The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal | readExternal | {
"repo_name": "jomarko/drools",
"path": "drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CompiledNetwork.java",
"license": "apache-2.0",
"size": 7555
} | [
"java.io.IOException",
"java.io.ObjectInput"
] | import java.io.IOException; import java.io.ObjectInput; | import java.io.*; | [
"java.io"
] | java.io; | 959,492 |
Collection<Application> getApplications(); | Collection<Application> getApplications(); | /**
* All applications under control of this management plane
*/ | All applications under control of this management plane | getApplications | {
"repo_name": "bmwshop/brooklyn",
"path": "api/src/main/java/brooklyn/management/ManagementContext.java",
"license": "apache-2.0",
"size": 7557
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 684,046 |
Connection connection = localConnection.get();
if(connection == null){
if (logger.isDebugEnabled()) {
logger.debug("open connection.");
}
connection = connectionFactory.openConnection();
if(defaultIsolationLevel == -999) {//init default
defaultIsolationLevel = connection.getTransactionIsolation(... | Connection connection = localConnection.get(); if(connection == null){ if (logger.isDebugEnabled()) { logger.debug(STR); } connection = connectionFactory.openConnection(); if(defaultIsolationLevel == -999) { defaultIsolationLevel = connection.getTransactionIsolation(); return connection; } } if(defaultIsolationLevel !=... | /**
* get connection
* @param connectionFactory
* @return
* @throws SQLException
*/ | get connection | getConnection | {
"repo_name": "xunchangguo/u-orm",
"path": "src/org/uorm/dao/transation/TransactionManager.java",
"license": "apache-2.0",
"size": 4633
} | [
"java.sql.Connection"
] | import java.sql.Connection; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,744,226 |
public static void checkState(
final String cookieSessionState,
final String providerSuppliedState)
throws MissingParameterException, AuthenticationException {
if (nullOrEmpty(cookieSessionState)) {
throw new MissingParameterException("Couldn't retrieve state value from cookie");
}
if (!cookieSessi... | static void function( final String cookieSessionState, final String providerSuppliedState) throws MissingParameterException, AuthenticationException { if (nullOrEmpty(cookieSessionState)) { throw new MissingParameterException(STR); } if (!cookieSessionState.equals(providerSuppliedState)) { throw new AuthenticationExcep... | /** Check that the OAuth2 state returned from an identity provider matches the expected state.
* @param cookieSessionState the state as stored in a cookie.
* @param providerSuppliedState the state returned from the provider.
* @throws MissingParameterException if the state from the cookie is missing.
* @throws ... | Check that the OAuth2 state returned from an identity provider matches the expected state | checkState | {
"repo_name": "MrCreosote/auth2",
"path": "src/us/kbase/auth2/service/ui/UIUtils.java",
"license": "mit",
"size": 14871
} | [
"us.kbase.auth2.lib.exceptions.AuthenticationException",
"us.kbase.auth2.lib.exceptions.ErrorType",
"us.kbase.auth2.lib.exceptions.MissingParameterException"
] | import us.kbase.auth2.lib.exceptions.AuthenticationException; import us.kbase.auth2.lib.exceptions.ErrorType; import us.kbase.auth2.lib.exceptions.MissingParameterException; | import us.kbase.auth2.lib.exceptions.*; | [
"us.kbase.auth2"
] | us.kbase.auth2; | 2,043,933 |
RowMetaInterface testSumPreconditions( String agg ) {
// create rmi for one string and 2 integers
RowMetaInterface rmi = new RowMeta();
List<ValueMetaInterface> list = new ArrayList<ValueMetaInterface>();
list.add( new ValueMetaString( "a" ) );
list.add( new ValueMetaInteger( "b" ) );
list.ad... | RowMetaInterface testSumPreconditions( String agg ) { RowMetaInterface rmi = new RowMeta(); List<ValueMetaInterface> list = new ArrayList<ValueMetaInterface>(); list.add( new ValueMetaString( "a" ) ); list.add( new ValueMetaInteger( "b" ) ); list.add( new ValueMetaInteger( "d" ) ); rmi.setValueMetaList( list ); data.ke... | /**
* This is extracted common part for sum tests
*
* @return
*/ | This is extracted common part for sum tests | testSumPreconditions | {
"repo_name": "YuryBY/pentaho-kettle",
"path": "engine/test-src/org/pentaho/di/trans/steps/denormaliser/DenormaliserAggregationsTest.java",
"license": "apache-2.0",
"size": 5851
} | [
"java.util.ArrayList",
"java.util.HashMap",
"java.util.List",
"org.pentaho.di.core.row.RowMeta",
"org.pentaho.di.core.row.RowMetaInterface",
"org.pentaho.di.core.row.ValueMetaInterface",
"org.pentaho.di.core.row.value.ValueMetaInteger",
"org.pentaho.di.core.row.value.ValueMetaString"
] | import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.pentaho.di.core.row.RowMeta; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.core.row.ValueMetaInterface; import org.pentaho.di.core.row.value.ValueMetaInteger; import org.pentaho.di.core.row.value.ValueMetaSt... | import java.util.*; import org.pentaho.di.core.row.*; import org.pentaho.di.core.row.value.*; | [
"java.util",
"org.pentaho.di"
] | java.util; org.pentaho.di; | 376,289 |
List rc = getResourceCollections();
int size = rc.size();
if (size < 2) {
throw new BuildException("The difference of " + size
+ " resource collection" + ((size == 1) ? "" : "s")
+ " is undefined.");
}
HashSet hs = new HashSet();
ArrayL... | List rc = getResourceCollections(); int size = rc.size(); if (size < 2) { throw new BuildException(STR + size + STR + ((size == 1) ? STRsSTR is undefined."); } HashSet hs = new HashSet(); ArrayList al = new ArrayList(); for (Iterator rcIter = rc.iterator(); rcIter.hasNext();) { for (Iterator r = nextRC(rcIter).iterator... | /**
* Calculate the difference of the nested ResourceCollections.
* @return a Collection of Resources.
*/ | Calculate the difference of the nested ResourceCollections | getCollection | {
"repo_name": "BIORIMP/biorimp",
"path": "BIO-RIMP/test_data/code/antapache/src/main/org/apache/tools/ant/types/resources/Difference.java",
"license": "gpl-2.0",
"size": 2307
} | [
"java.util.ArrayList",
"java.util.HashSet",
"java.util.Iterator",
"java.util.List",
"org.apache.tools.ant.BuildException"
] | import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; import org.apache.tools.ant.BuildException; | import java.util.*; import org.apache.tools.ant.*; | [
"java.util",
"org.apache.tools"
] | java.util; org.apache.tools; | 900,227 |
public void setDeny(String deny) {
if (deny == null || deny.length() == 0) {
this.deny = null;
denyValue = null;
denyValid = true;
} else {
boolean success = false;
try {
denyValue = deny;
this.deny ... | void function(String deny) { if (deny == null deny.length() == 0) { this.deny = null; denyValue = null; denyValid = true; } else { boolean success = false; try { denyValue = deny; this.deny = Pattern.compile(deny); success = true; } finally { denyValid = success; } } } | /**
* Set the regular expression used to test for denied requests for this
* Valve, if any.
*
* @param deny The new deny expression
*/ | Set the regular expression used to test for denied requests for this Valve, if any | setDeny | {
"repo_name": "IAMTJW/Tomcat-8.5.20",
"path": "tomcat-8.5.20/java/org/apache/catalina/valves/RequestFilterValve.java",
"license": "apache-2.0",
"size": 14479
} | [
"java.util.regex.Pattern"
] | import java.util.regex.Pattern; | import java.util.regex.*; | [
"java.util"
] | java.util; | 1,323,640 |
public static Matcher<View> withChildText(@IdRes final int parentId, final String text) {
return new TypeSafeMatcher<View>() { | static Matcher<View> function(@IdRes final int parentId, final String text) { return new TypeSafeMatcher<View>() { | /**
* Returns a matcher that matches a child of the specified view that has a {@link
* android.widget.TextView} with the specified text property value.
*/ | Returns a matcher that matches a child of the specified view that has a <code>android.widget.TextView</code> with the specified text property value | withChildText | {
"repo_name": "mkjensen/danish-media-license",
"path": "app/src/androidTest/java/com/github/mkjensen/dml/test/CustomViewMatchers.java",
"license": "apache-2.0",
"size": 2380
} | [
"android.support.annotation.IdRes",
"android.view.View",
"org.hamcrest.Matcher",
"org.hamcrest.TypeSafeMatcher"
] | import android.support.annotation.IdRes; import android.view.View; import org.hamcrest.Matcher; import org.hamcrest.TypeSafeMatcher; | import android.support.annotation.*; import android.view.*; import org.hamcrest.*; | [
"android.support",
"android.view",
"org.hamcrest"
] | android.support; android.view; org.hamcrest; | 1,978,835 |
public void close() throws IOException {
if (!closed) {
// Complete the uncompressed output
try {
finish();
} finally {
out.close();
closed = true;
}
}
} | void function() throws IOException { if (!closed) { try { finish(); } finally { out.close(); closed = true; } } } | /**
* Writes any remaining uncompressed data to the output stream and closes
* the underlying output stream.
*
* @throws IOException if an I/O error occurs
*/ | Writes any remaining uncompressed data to the output stream and closes the underlying output stream | close | {
"repo_name": "evanman/Java-Source",
"path": "util/zip/InflaterOutputStream.java",
"license": "lgpl-2.1",
"size": 9125
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 878,500 |
@Override
public void receivedNegotiation(int negotiation_code, int option_code)
{
String command = null;
switch (negotiation_code) {
case TelnetNotificationHandler.RECEIVED_DO:
command = "DO";
break;
case TelnetNotificationHandler.RECE... | void function(int negotiation_code, int option_code) { String command = null; switch (negotiation_code) { case TelnetNotificationHandler.RECEIVED_DO: command = "DO"; break; case TelnetNotificationHandler.RECEIVED_DONT: command = "DONT"; break; case TelnetNotificationHandler.RECEIVED_WILL: command = "WILL"; break; case ... | /***
* Callback method called when TelnetClient receives an option
* negotiation command.
*
* @param negotiation_code - type of negotiation command received
* (RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT, RECEIVED_COMMAND)
* @param option_code - code of the option negotiated
... | Callback method called when TelnetClient receives an option negotiation command | receivedNegotiation | {
"repo_name": "ghomsi/gestab",
"path": "telnet/Telnet.java",
"license": "mit",
"size": 23713
} | [
"org.apache.commons.net.telnet.TelnetNotificationHandler"
] | import org.apache.commons.net.telnet.TelnetNotificationHandler; | import org.apache.commons.net.telnet.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,337,705 |
public static String getResponseString(Context appContext,int responseCode)
{
String errorString = null;
switch (responseCode) {
case SUCCESS:
{
if(MerchantData.eventchargeStatusMsg != null)
{
errorString = MerchantData.eventchargeStatusMsg;
}
}
break;
case AUTHENTICATION_FA... | static String function(Context appContext,int responseCode) { String errorString = null; switch (responseCode) { case SUCCESS: { if(MerchantData.eventchargeStatusMsg != null) { errorString = MerchantData.eventchargeStatusMsg; } } break; case AUTHENTICATION_FALIURE: { errorString = eventcharge_authentication_faliure; } ... | /**
* This method is used to return the server error strings as per given error code.
* @param appContext
* @param responseCode
* @return
*/ | This method is used to return the server error strings as per given error code | getResponseString | {
"repo_name": "qubecellindia/android_sdk",
"path": "QubecellSDK/src/com/qubecell/constants/EventChargeServerRespCode.java",
"license": "lgpl-3.0",
"size": 3329
} | [
"android.content.Context"
] | import android.content.Context; | import android.content.*; | [
"android.content"
] | android.content; | 857,004 |
public Dimension minimumLayoutSize(Container target)
{
Dimension tarsiz = new Dimension(0, 0);
for (int i = 0; i < target.getComponentCount(); i++)
{
Component m = target.getComponent(i);
if (m.isVisible())
{
... | Dimension function(Container target) { Dimension tarsiz = new Dimension(0, 0); for (int i = 0; i < target.getComponentCount(); i++) { Component m = target.getComponent(i); if (m.isVisible()) { Dimension d = m.getMinimumSize(); tarsiz.width = Math.max(tarsiz.width, d.width); if (i > 0) { tarsiz.height += vgap; } tarsiz.... | /**
* Returns the minimum size needed to layout the target container.
*
* @param target
* the component to lay out.
* @return the minimum layout dimension.
*/ | Returns the minimum size needed to layout the target container | minimumLayoutSize | {
"repo_name": "RuntianZ/NetworkTool",
"path": "src/VFlowLayout.java",
"license": "mit",
"size": 9275
} | [
"java.awt.Component",
"java.awt.Container",
"java.awt.Dimension",
"java.awt.Insets"
] | import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Insets; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,349,164 |
interface WithStorageAccounts {
WithCreate withStorageAccounts(List<StorageAccount> storageAccounts);
}
interface WithCreate extends Creatable<MediaService>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithStorageAccounts {
}
}
... | interface WithStorageAccounts { WithCreate withStorageAccounts(List<StorageAccount> storageAccounts); } interface WithCreate extends Creatable<MediaService>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithStorageAccounts { } } interface Update extends Appliable<MediaService>, Resource.UpdateWithTags<Upda... | /**
* Specifies storageAccounts.
* @param storageAccounts The storage accounts for this resource
* @return the next definition stage
*/ | Specifies storageAccounts | withStorageAccounts | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/mediaservices/mgmt-v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/MediaService.java",
"license": "mit",
"size": 3874
} | [
"com.microsoft.azure.arm.model.Appliable",
"com.microsoft.azure.arm.model.Creatable",
"com.microsoft.azure.arm.resources.models.Resource",
"java.util.List"
] | import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.Resource; import java.util.List; | import com.microsoft.azure.arm.model.*; import com.microsoft.azure.arm.resources.models.*; import java.util.*; | [
"com.microsoft.azure",
"java.util"
] | com.microsoft.azure; java.util; | 2,524,188 |
public void delete(boolean recursive) {
URL url = DELETE_FOLDER_URL.buildAlpha(this.getAPI().getBaseURL(), this.getID(), recursive);
BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, "DELETE");
BoxAPIResponse response = request.send();
response.disconnect();
} | void function(boolean recursive) { URL url = DELETE_FOLDER_URL.buildAlpha(this.getAPI().getBaseURL(), this.getID(), recursive); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, STR); BoxAPIResponse response = request.send(); response.disconnect(); } | /**
* Deletes this folder, optionally recursively deleting all of its contents.
*
* @param recursive true to recursively delete this folder's contents; otherwise false.
*/ | Deletes this folder, optionally recursively deleting all of its contents | delete | {
"repo_name": "box/box-java-sdk",
"path": "src/main/java/com/box/sdk/BoxFolder.java",
"license": "apache-2.0",
"size": 69918
} | [
"java.net.URL"
] | import java.net.URL; | import java.net.*; | [
"java.net"
] | java.net; | 309,669 |
HashMap<Character, Integer> allLetters = new HashMap<>();
HashSet<Character> duplicates = new HashSet<>();
for (char ch : str.toCharArray()) {
allLetters.computeIfPresent(ch, (k, v) -> { duplicates.add(ch); v = 2; return v; });
allLetters.putIfAbsent(ch, 1);
}
r... | HashMap<Character, Integer> allLetters = new HashMap<>(); HashSet<Character> duplicates = new HashSet<>(); for (char ch : str.toCharArray()) { allLetters.computeIfPresent(ch, (k, v) -> { duplicates.add(ch); v = 2; return v; }); allLetters.putIfAbsent(ch, 1); } return duplicates; } | /**
* The method searches for all duplicate characters in the string.
* @param str - the string.
* @return repeated characters in string.
*/ | The method searches for all duplicate characters in the string | findDuplicates | {
"repo_name": "IvanBelyaev/ibelyaev",
"path": "chapter_004/src/main/java/ru/job4j/task/StringUtil.java",
"license": "apache-2.0",
"size": 783
} | [
"java.util.HashMap",
"java.util.HashSet"
] | import java.util.HashMap; import java.util.HashSet; | import java.util.*; | [
"java.util"
] | java.util; | 870,990 |
public HubRouteTableInner withLabels(List<String> labels) {
this.labels = labels;
return this;
} | HubRouteTableInner function(List<String> labels) { this.labels = labels; return this; } | /**
* Set the labels property: List of labels associated with this route table.
*
* @param labels the labels value to set.
* @return the HubRouteTableInner object itself.
*/ | Set the labels property: List of labels associated with this route table | withLabels | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubRouteTableInner.java",
"license": "mit",
"size": 5467
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 663,199 |
ConfigurationSchemaDto putConfigurationSchema(AppVersionKey key, ConfigurationSchemaDto value); | ConfigurationSchemaDto putConfigurationSchema(AppVersionKey key, ConfigurationSchemaDto value); | /**
* Put configuration schema.
*
* @param key the key
* @param value the value
* @return the configuration schema dto
*/ | Put configuration schema | putConfigurationSchema | {
"repo_name": "vzhukovskyi/kaa",
"path": "server/operations/src/main/java/org/kaaproject/kaa/server/operations/service/cache/CacheService.java",
"license": "apache-2.0",
"size": 9860
} | [
"org.kaaproject.kaa.common.dto.ConfigurationSchemaDto"
] | import org.kaaproject.kaa.common.dto.ConfigurationSchemaDto; | import org.kaaproject.kaa.common.dto.*; | [
"org.kaaproject.kaa"
] | org.kaaproject.kaa; | 2,343,130 |
public List<DatabaseRemoteFile> getKnownDatabases() {
List<DatabaseRemoteFile> knownDatabases = new ArrayList<DatabaseRemoteFile>();
try (PreparedStatement preparedStatement = getStatement("application.select.all.getKnownDatabases.sql")) {
try (ResultSet resultSet = preparedStatement.executeQuery()) {
wh... | List<DatabaseRemoteFile> function() { List<DatabaseRemoteFile> knownDatabases = new ArrayList<DatabaseRemoteFile>(); try (PreparedStatement preparedStatement = getStatement(STR)) { try (ResultSet resultSet = preparedStatement.executeQuery()) { while (resultSet.next()) { String clientName = resultSet.getString(STR); int... | /**
* Queries the database for already known {@link DatabaseRemoteFile}s and returns a
* list of all of them.
*
* @return Returns a list of all known/processed remote databases
*/ | Queries the database for already known <code>DatabaseRemoteFile</code>s and returns a list of all of them | getKnownDatabases | {
"repo_name": "syncany/syncany-plugin-raid0",
"path": "core/syncany-lib/src/main/java/org/syncany/database/dao/ApplicationSqlDao.java",
"license": "gpl-3.0",
"size": 6636
} | [
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.util.ArrayList",
"java.util.List",
"org.syncany.plugins.transfer.files.DatabaseRemoteFile"
] | import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import org.syncany.plugins.transfer.files.DatabaseRemoteFile; | import java.sql.*; import java.util.*; import org.syncany.plugins.transfer.files.*; | [
"java.sql",
"java.util",
"org.syncany.plugins"
] | java.sql; java.util; org.syncany.plugins; | 1,180,472 |
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), String.valueOf(getAD_Reference_ID()));
} | KeyNamePair function() { return new KeyNamePair(get_ID(), String.valueOf(getAD_Reference_ID())); } | /** Get Record ID/ColumnName
@return ID/ColumnName pair
*/ | Get Record ID/ColumnName | getKeyNamePair | {
"repo_name": "pplatek/adempiere",
"path": "base/src/org/compiere/model/X_AD_Ref_Table.java",
"license": "gpl-2.0",
"size": 9765
} | [
"org.compiere.util.KeyNamePair"
] | import org.compiere.util.KeyNamePair; | import org.compiere.util.*; | [
"org.compiere.util"
] | org.compiere.util; | 2,857,916 |
@Test
public void testAddFlow() {
FlowEntry flowEntry = new DefaultFlowEntry(flowRule);
FlowRuleOperation op = new FlowRuleOperation(flowRule, FlowRuleOperation.Type.ADD);
Multimap<DeviceId, FlowRuleBatchEntry> perDeviceBatches = ArrayListMultimap.create();
perDeviceBatches.put(o... | void function() { FlowEntry flowEntry = new DefaultFlowEntry(flowRule); FlowRuleOperation op = new FlowRuleOperation(flowRule, FlowRuleOperation.Type.ADD); Multimap<DeviceId, FlowRuleBatchEntry> perDeviceBatches = ArrayListMultimap.create(); perDeviceBatches.put(op.rule().deviceId(), new FlowRuleBatchEntry(FlowRuleBatc... | /**
* Tests adding a flowrule.
*/ | Tests adding a flowrule | testAddFlow | {
"repo_name": "osinstom/onos",
"path": "core/store/dist/src/test/java/org/onosproject/store/flow/impl/ECFlowRuleStoreTest.java",
"license": "apache-2.0",
"size": 9405
} | [
"com.google.common.collect.ArrayListMultimap",
"com.google.common.collect.Multimap",
"java.util.Iterator",
"org.hamcrest.MatcherAssert",
"org.hamcrest.Matchers",
"org.junit.Assert",
"org.onosproject.net.DeviceId",
"org.onosproject.net.flow.DefaultFlowEntry",
"org.onosproject.net.flow.FlowEntry",
"... | import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.Multimap; import java.util.Iterator; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Assert; import org.onosproject.net.DeviceId; import org.onosproject.net.flow.DefaultFlowEntry; import org.onosprojec... | import com.google.common.collect.*; import java.util.*; import org.hamcrest.*; import org.junit.*; import org.onosproject.net.*; import org.onosproject.net.flow.*; import org.onosproject.net.flow.oldbatch.*; | [
"com.google.common",
"java.util",
"org.hamcrest",
"org.junit",
"org.onosproject.net"
] | com.google.common; java.util; org.hamcrest; org.junit; org.onosproject.net; | 2,188,304 |
public COSBase getAttributeValue(String attrName) {
return this.getCOSObject().getDictionaryObject(attrName);
} | COSBase function(String attrName) { return this.getCOSObject().getDictionaryObject(attrName); } | /**
* Gets the attribute value for a given name.
*
* @param attrName the given attribute name
* @return the attribute value for a given name
*/ | Gets the attribute value for a given name | getAttributeValue | {
"repo_name": "gavanx/pdflearn",
"path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDDefaultAttributeObject.java",
"license": "apache-2.0",
"size": 3462
} | [
"org.apache.pdfbox.cos.COSBase"
] | import org.apache.pdfbox.cos.COSBase; | import org.apache.pdfbox.cos.*; | [
"org.apache.pdfbox"
] | org.apache.pdfbox; | 2,297,221 |
Observable<ServiceResponseWithHeaders<Void, LRORetrysPost202Retry200Headers>> beginPost202Retry200WithServiceResponseAsync(Product product); | Observable<ServiceResponseWithHeaders<Void, LRORetrysPost202Retry200Headers>> beginPost202Retry200WithServiceResponseAsync(Product product); | /**
* Long running post request, service returns a 500, then a 202 to the initial request, with 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success.
*
* @param product Product to put
* @return the {@link ServiceResponseWithHeaders} object if successful.
*... | Long running post request, service returns a 500, then a 202 to the initial request, with 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success | beginPost202Retry200WithServiceResponseAsync | {
"repo_name": "tbombach/autorest",
"path": "src/generator/AutoRest.Java.Azure.Tests/src/main/java/fixtures/lro/LRORetrys.java",
"license": "mit",
"size": 44450
} | [
"com.microsoft.rest.ServiceResponseWithHeaders"
] | import com.microsoft.rest.ServiceResponseWithHeaders; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 395,170 |
public static ImmutableByteSequence copyFrom(short original) {
return new ImmutableByteSequence(
ByteBuffer.allocate(Short.BYTES).putShort(original));
} | static ImmutableByteSequence function(short original) { return new ImmutableByteSequence( ByteBuffer.allocate(Short.BYTES).putShort(original)); } | /**
* Creates a new byte sequence of 2 bytes containing the given short value.
*
* @param original a short value
* @return a new immutable byte sequence
*/ | Creates a new byte sequence of 2 bytes containing the given short value | copyFrom | {
"repo_name": "Shashikanth-Huawei/bmp",
"path": "utils/misc/src/main/java/org/onlab/util/ImmutableByteSequence.java",
"license": "apache-2.0",
"size": 8053
} | [
"java.nio.ByteBuffer"
] | import java.nio.ByteBuffer; | import java.nio.*; | [
"java.nio"
] | java.nio; | 1,577,779 |
@Override
public boolean isInGroup(Group group) {
synchronized (groups) {
return (groups.contains(group));
}
} | boolean function(Group group) { synchronized (groups) { return (groups.contains(group)); } } | /**
* Is this user in the specified group?
*
* @param group The group to check
*/ | Is this user in the specified group | isInGroup | {
"repo_name": "plumer/codana",
"path": "tomcat_files/8.0.0/MemoryUser.java",
"license": "mit",
"size": 8876
} | [
"org.apache.catalina.Group"
] | import org.apache.catalina.Group; | import org.apache.catalina.*; | [
"org.apache.catalina"
] | org.apache.catalina; | 1,019,722 |
List<AbstractOperation> getLeafOperations(); | List<AbstractOperation> getLeafOperations(); | /**
* Get all operations that are a leaf operation. In case this operation is
* not containing any other operations it will return itself.
*
* @return a list of leaf operations
*/ | Get all operations that are a leaf operation. In case this operation is not containing any other operations it will return itself | getLeafOperations | {
"repo_name": "edgarmueller/emfstore-rest",
"path": "bundles/org.eclipse.emf.emfstore.server.model/src/org/eclipse/emf/emfstore/internal/server/model/versioning/operations/AbstractOperation.java",
"license": "epl-1.0",
"size": 6604
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,967,978 |
public static interface PeerConnectionEvents {
public void onLocalDescription(final SessionDescription sdp); | static interface PeerConnectionEvents { public void function(final SessionDescription sdp); | /**
* Callback fired once local SDP is created and set.
*/ | Callback fired once local SDP is created and set | onLocalDescription | {
"repo_name": "JiYou/webrtctalk",
"path": "examples/android/src/org/appspot/apprtc/PeerConnectionClient.java",
"license": "bsd-3-clause",
"size": 35637
} | [
"org.webrtc.SessionDescription"
] | import org.webrtc.SessionDescription; | import org.webrtc.*; | [
"org.webrtc"
] | org.webrtc; | 1,131,072 |
@Override
public void runIfCallRefused(String username, Connection connection,
String ipAddress, String methodName, List<Object> params)
throws IOException, SQLException {
// Log method
super.runIfCallRefused(username, connection, ipAddress, methodName, params);
// Create a file with th... | void function(String username, Connection connection, String ipAddress, String methodName, List<Object> params) throws IOException, SQLException { super.runIfCallRefused(username, connection, ipAddress, methodName, params); File logEvent = new File(System.getProperty(STR) + File.separator + STR); FileUtils.writeStringT... | /**
*
* The event will be logged as <code>Level.SEVERE</code> in the
* <code>user.home/.awake/AwakeFile.log</code> file
*/ | The event will be logged as <code>Level.SEVERE</code> in the <code>user.home/.awake/AwakeFile.log</code> file | runIfCallRefused | {
"repo_name": "abecquereau/awake-file",
"path": "src-test-server/org/kawanfw/file/test/api/server/config/TestFileConfiguratorNoRoot.java",
"license": "lgpl-2.1",
"size": 4598
} | [
"java.io.File",
"java.io.IOException",
"java.sql.Connection",
"java.sql.SQLException",
"java.util.Date",
"java.util.List",
"org.apache.commons.io.FileUtils"
] | import java.io.File; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import java.util.Date; import java.util.List; import org.apache.commons.io.FileUtils; | import java.io.*; import java.sql.*; import java.util.*; import org.apache.commons.io.*; | [
"java.io",
"java.sql",
"java.util",
"org.apache.commons"
] | java.io; java.sql; java.util; org.apache.commons; | 1,929,094 |
CompletableFuture<ClientConnection> getClientConnection(Flow flow, PravegaNodeUri uri, ReplyProcessor rp); | CompletableFuture<ClientConnection> getClientConnection(Flow flow, PravegaNodeUri uri, ReplyProcessor rp); | /**
* This is used to create a {@link ClientConnection} on an existing Connection pool. The Connection pool implementation
* decides if a new connection needs to be established to the PravegaNode or an existing connection can be reused to establish
* the connection.
* @param flow Flow
* @param ... | This is used to create a <code>ClientConnection</code> on an existing Connection pool. The Connection pool implementation decides if a new connection needs to be established to the PravegaNode or an existing connection can be reused to establish the connection | getClientConnection | {
"repo_name": "pravega/pravega",
"path": "client/src/main/java/io/pravega/client/connection/impl/ConnectionPool.java",
"license": "apache-2.0",
"size": 2772
} | [
"io.pravega.shared.protocol.netty.PravegaNodeUri",
"io.pravega.shared.protocol.netty.ReplyProcessor",
"java.util.concurrent.CompletableFuture"
] | import io.pravega.shared.protocol.netty.PravegaNodeUri; import io.pravega.shared.protocol.netty.ReplyProcessor; import java.util.concurrent.CompletableFuture; | import io.pravega.shared.protocol.netty.*; import java.util.concurrent.*; | [
"io.pravega.shared",
"java.util"
] | io.pravega.shared; java.util; | 2,901,202 |
public boolean hasData () {
return !Utils.isNoE(data);
}
| boolean function () { return !Utils.isNoE(data); } | /**
* Indicates if this code's tag has some content for its original data.
* @return true if the original data is neither null nor empty.
*/ | Indicates if this code's tag has some content for its original data | hasData | {
"repo_name": "ysavourel/liom",
"path": "src/main/java/net/sf/okapi/liom/api/core/CTag.java",
"license": "apache-2.0",
"size": 13805
} | [
"net.sf.okapi.liom.api.Utils"
] | import net.sf.okapi.liom.api.Utils; | import net.sf.okapi.liom.api.*; | [
"net.sf.okapi"
] | net.sf.okapi; | 2,079,018 |
public List<OfficeVisitBean> getAllOfficeVisits() throws iTrustException {
transDAO.logTransaction(TransactionType.VIEW_OFFICE_VISIT, loggedInMID, pid, "EditPHR - view patient office visits ");
return ovDAO.getAllOfficeVisits(pid);
} | List<OfficeVisitBean> function() throws iTrustException { transDAO.logTransaction(TransactionType.VIEW_OFFICE_VISIT, loggedInMID, pid, STR); return ovDAO.getAllOfficeVisits(pid); } | /**
* Returns a list of OfficeVisitBeans
*
* @return
* @throws iTrustException
*/ | Returns a list of OfficeVisitBeans | getAllOfficeVisits | {
"repo_name": "ModelWriter/Demonstrations",
"path": "eu.modelwriter.datasets.traceability/CoEST Datasets/iTrust-NASA (!)/itrust_v10_code/iTrust/src/edu/ncsu/csc/itrust/action/EditPHRAction.java",
"license": "epl-1.0",
"size": 12306
} | [
"edu.ncsu.csc.itrust.beans.OfficeVisitBean",
"edu.ncsu.csc.itrust.enums.TransactionType",
"java.util.List"
] | import edu.ncsu.csc.itrust.beans.OfficeVisitBean; import edu.ncsu.csc.itrust.enums.TransactionType; import java.util.List; | import edu.ncsu.csc.itrust.beans.*; import edu.ncsu.csc.itrust.enums.*; import java.util.*; | [
"edu.ncsu.csc",
"java.util"
] | edu.ncsu.csc; java.util; | 651,420 |
public EndpointBuilder<T> using(TypeConverter typeConverter) {
this.typeConverter = typeConverter;
return this;
}
private Class<T> clazz;
private URI uri;
private Object server;
private List<Class<?>> additionalInterfaces = new ArrayList<Class<?>>();
private ClassLoader classLoader;
private FaultMapper f... | EndpointBuilder<T> function(TypeConverter typeConverter) { this.typeConverter = typeConverter; return this; } private Class<T> clazz; private URI uri; private Object server; private List<Class<?>> additionalInterfaces = new ArrayList<Class<?>>(); private ClassLoader classLoader; private FaultMapper faultMapper = Defaul... | /**
* Use typeConverter for parameter conversions between Java and XML-RPC
* values.
*
* @param typeConverter
* to convert method parameter and result value conversions
* @return this for method chaining
*/ | Use typeConverter for parameter conversions between Java and XML-RPC values | using | {
"repo_name": "vnesek/nmote-xr",
"path": "src/main/java/com/nmote/xr/EndpointBuilder.java",
"license": "bsd-3-clause",
"size": 6819
} | [
"com.nmote.xr.log.LoggerAdapter",
"java.util.ArrayList",
"java.util.List"
] | import com.nmote.xr.log.LoggerAdapter; import java.util.ArrayList; import java.util.List; | import com.nmote.xr.log.*; import java.util.*; | [
"com.nmote.xr",
"java.util"
] | com.nmote.xr; java.util; | 265,030 |
public static String getHostName() {
return ServerConfiguration.getInstance().getFirstProperty(IdentityCoreConstants.HOST_NAME);
} | static String function() { return ServerConfiguration.getInstance().getFirstProperty(IdentityCoreConstants.HOST_NAME); } | /**
* Get the host name of the server.
* @return Hostname
*/ | Get the host name of the server | getHostName | {
"repo_name": "IsuraD/carbon-identity",
"path": "components/identity-core/org.wso2.carbon.identity.core/src/main/java/org/wso2/carbon/identity/core/util/IdentityUtil.java",
"license": "apache-2.0",
"size": 30047
} | [
"org.wso2.carbon.base.ServerConfiguration"
] | import org.wso2.carbon.base.ServerConfiguration; | import org.wso2.carbon.base.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 2,830,688 |
private void showFieldError(EditText target, String message) {
if (message == null) {
target.setError("");
} else {
target.setError(message);
}
} | void function(EditText target, String message) { if (message == null) { target.setError(""); } else { target.setError(message); } } | /**
* Adds a message to the given field. Cleared when the user changes the field.
*
* @param target
* @param message
*/ | Adds a message to the given field. Cleared when the user changes the field | showFieldError | {
"repo_name": "teamfieldtrip/spirithunt",
"path": "app/src/main/java/win/spirithunt/android/controller/RegisterController.java",
"license": "gpl-3.0",
"size": 9021
} | [
"android.widget.EditText"
] | import android.widget.EditText; | import android.widget.*; | [
"android.widget"
] | android.widget; | 2,664,103 |
public Settlement getSettlement() {
if(sagaChunk == null || !(sagaChunk.getBundle() instanceof Settlement)){
return null;
}
return (Settlement) sagaChunk.getBundle();
}
| Settlement function() { if(sagaChunk == null !(sagaChunk.getBundle() instanceof Settlement)){ return null; } return (Settlement) sagaChunk.getBundle(); } | /**
* Gets settlement the Saga chunk belongs to.
*
* @return settlement teh Saga chunk belongs to
*/ | Gets settlement the Saga chunk belongs to | getSettlement | {
"repo_name": "andfRa/Saga",
"path": "src/org/saga/buildings/Building.java",
"license": "gpl-3.0",
"size": 23979
} | [
"org.saga.settlements.Settlement"
] | import org.saga.settlements.Settlement; | import org.saga.settlements.*; | [
"org.saga.settlements"
] | org.saga.settlements; | 1,978,421 |
public int avio_feof(Pointer<AVIOContext > s) {
return avio_feof(Pointer.getPeer(s));
} | int function(Pointer<AVIOContext > s) { return avio_feof(Pointer.getPeer(s)); } | /**
* feof() equivalent for AVIOContext.<br>
* @return non zero if and only if end of file<br>
* Original signature : <code>int avio_feof(AVIOContext*)</code><br>
* <i>native declaration : ffmpeg_build/include/libavformat/avio.h:271</i>
*/ | feof() equivalent for AVIOContext | avio_feof | {
"repo_name": "mutars/java_libav",
"path": "wrapper/src/main/java/com/mutar/libav/bridge/avformat/AvformatLibrary.java",
"license": "gpl-2.0",
"size": 136321
} | [
"org.bridj.Pointer"
] | import org.bridj.Pointer; | import org.bridj.*; | [
"org.bridj"
] | org.bridj; | 1,917,254 |
EReference getETimeline_Contents(); | EReference getETimeline_Contents(); | /**
* Returns the meta object for the containment reference list '{@link gov.nasa.arc.spife.timeline.model.ETimeline#getContents <em>Contents</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Contents</em>'.
* @see gov.nasa.arc.spife.ti... | Returns the meta object for the containment reference list '<code>gov.nasa.arc.spife.timeline.model.ETimeline#getContents Contents</code>'. | getETimeline_Contents | {
"repo_name": "nasa/OpenSPIFe",
"path": "gov.nasa.arc.spife/src/gov/nasa/arc/spife/timeline/TimelinePackage.java",
"license": "apache-2.0",
"size": 36126
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,500,926 |
public static void monitorRemoteTransformation( LogChannelInterface log, String carteObjectId, String transName,
SlaveServer remoteSlaveServer, int sleepTimeSeconds ) {
long errors = 0;
boolean allFinished = false;
while ( !allFinished && errors == 0 ) {
allFinished = true;
errors = 0L;
... | static void function( LogChannelInterface log, String carteObjectId, String transName, SlaveServer remoteSlaveServer, int sleepTimeSeconds ) { long errors = 0; boolean allFinished = false; while ( !allFinished && errors == 0 ) { allFinished = true; errors = 0L; if ( allFinished && errors == 0 ) { try { SlaveServerTrans... | /**
* Monitors a remote transformation at the specified interval.
*
* @param log
* the log channel interface
* @param carteObjectId
* the Carte object ID
* @param transName
* the transformation name
* @param remoteSlaveServer
* the remote slave server
... | Monitors a remote transformation at the specified interval | monitorRemoteTransformation | {
"repo_name": "ViswesvarSekar/pentaho-kettle",
"path": "engine/src/org/pentaho/di/trans/Trans.java",
"license": "apache-2.0",
"size": 197991
} | [
"org.pentaho.di.cluster.SlaveServer",
"org.pentaho.di.core.Result",
"org.pentaho.di.core.logging.LogChannelInterface",
"org.pentaho.di.www.SlaveServerTransStatus",
"org.pentaho.di.www.WebResult"
] | import org.pentaho.di.cluster.SlaveServer; import org.pentaho.di.core.Result; import org.pentaho.di.core.logging.LogChannelInterface; import org.pentaho.di.www.SlaveServerTransStatus; import org.pentaho.di.www.WebResult; | import org.pentaho.di.cluster.*; import org.pentaho.di.core.*; import org.pentaho.di.core.logging.*; import org.pentaho.di.www.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 1,526,017 |
public static String[] getNames(JSONObject jo) {
int length = jo.length();
if (length == 0) {
return null;
}
Iterator<String> i = jo.keys();
String[] names = new String[length];
int j = 0;
while (i.hasNext()) {
names[j] = (String) i.next();
j += 1;
}
return names;
} | static String[] function(JSONObject jo) { int length = jo.length(); if (length == 0) { return null; } Iterator<String> i = jo.keys(); String[] names = new String[length]; int j = 0; while (i.hasNext()) { names[j] = (String) i.next(); j += 1; } return names; } | /**
* Get an array of field names from a JSONObject.
*
* @return An array of field names, or null if there are no names.
*/ | Get an array of field names from a JSONObject | getNames | {
"repo_name": "PATRIC3/patric3_website",
"path": "portal/patric-jbrowse/src/org/theseed/json/JSONObject.java",
"license": "mit",
"size": 45082
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 1,861,837 |
private void injectDynamically() {
injectionRequestProcessor.injectMembers();
stopwatch.resetAndLog("Static member injection");
initializer.injectAll(errors);
stopwatch.resetAndLog("Instance injection");
errors.throwCreationExceptionIfErrorsExist();
if (shellBuilder.getStage() != Stage.TOOL)... | void function() { injectionRequestProcessor.injectMembers(); stopwatch.resetAndLog(STR); initializer.injectAll(errors); stopwatch.resetAndLog(STR); errors.throwCreationExceptionIfErrorsExist(); if (shellBuilder.getStage() != Stage.TOOL) { for (InjectorShell shell : shells) { loadEagerSingletons(shell.getInjector(), she... | /**
* Inject everything that can be injected. This method is intentionally not synchronized. If we
* locked while injecting members (ie. running user code), things would deadlock should the user
* code build a just-in-time binding from another thread.
*/ | Inject everything that can be injected. This method is intentionally not synchronized. If we locked while injecting members (ie. running user code), things would deadlock should the user code build a just-in-time binding from another thread | injectDynamically | {
"repo_name": "sonatype/sisu-guice",
"path": "core/src/com/google/inject/internal/InternalInjectorCreator.java",
"license": "apache-2.0",
"size": 12569
} | [
"com.google.inject.Stage"
] | import com.google.inject.Stage; | import com.google.inject.*; | [
"com.google.inject"
] | com.google.inject; | 1,890,673 |
public Map<Object, Object> getAttributes(); | Map<Object, Object> function(); | /**
* Retrieves attributes of this switch
* @return
*/ | Retrieves attributes of this switch | getAttributes | {
"repo_name": "alsmadi/CSCI-6617",
"path": "src/main/java/net/floodlightcontroller/core/IOFSwitch.java",
"license": "apache-2.0",
"size": 22216
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,383,172 |
public IFD getFirstIFD() throws IOException {
if (firstIFD != null) return firstIFD;
long offset = getFirstOffset();
IFD ifd = getIFD(offset);
if (doCaching) firstIFD = ifd;
return ifd;
} | IFD function() throws IOException { if (firstIFD != null) return firstIFD; long offset = getFirstOffset(); IFD ifd = getIFD(offset); if (doCaching) firstIFD = ifd; return ifd; } | /**
* Gets the first IFD within the TIFF file, or null
* if the input source is not a valid TIFF file.
*/ | Gets the first IFD within the TIFF file, or null if the input source is not a valid TIFF file | getFirstIFD | {
"repo_name": "carandraug/bioformats",
"path": "components/formats-bsd/src/loci/formats/tiff/TiffParser.java",
"license": "gpl-2.0",
"size": 46555
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,211,939 |
@BeforeClass
public static void startHttpd() throws Exception {
logDir = createTempDir();
httpServer = MockHttpServer.createHttp(new InetSocketAddress(InetAddress.getLoopbackAddress().getHostAddress(), 0), 0);
httpServer.createContext("/", (s) -> {
Headers headers = s.getRes... | static void function() throws Exception { logDir = createTempDir(); httpServer = MockHttpServer.createHttp(new InetSocketAddress(InetAddress.getLoopbackAddress().getHostAddress(), 0), 0); httpServer.createContext("/", (s) -> { Headers headers = s.getResponseHeaders(); headers.add(STR, STR); String action = null; for (N... | /**
* Creates mock EC2 endpoint providing the list of started nodes to the DescribeInstances API call
*/ | Creates mock EC2 endpoint providing the list of started nodes to the DescribeInstances API call | startHttpd | {
"repo_name": "nazarewk/elasticsearch",
"path": "plugins/discovery-ec2/src/test/java/org/elasticsearch/discovery/ec2/Ec2DiscoveryClusterFormationTests.java",
"license": "apache-2.0",
"size": 11356
} | [
"com.amazonaws.util.IOUtils",
"com.sun.net.httpserver.Headers",
"java.io.StringWriter",
"java.net.InetAddress",
"java.net.InetSocketAddress",
"java.nio.charset.StandardCharsets",
"javax.xml.stream.XMLOutputFactory",
"javax.xml.stream.XMLStreamWriter",
"org.apache.http.NameValuePair",
"org.apache.h... | import com.amazonaws.util.IOUtils; import com.sun.net.httpserver.Headers; import java.io.StringWriter; import java.net.InetAddress; import java.net.InetSocketAddress; import java.nio.charset.StandardCharsets; import javax.xml.stream.XMLOutputFactory; import javax.xml.stream.XMLStreamWriter; import org.apache.http.NameV... | import com.amazonaws.util.*; import com.sun.net.httpserver.*; import java.io.*; import java.net.*; import java.nio.charset.*; import javax.xml.stream.*; import org.apache.http.*; import org.apache.http.client.utils.*; import org.elasticsearch.mocksocket.*; import org.hamcrest.*; | [
"com.amazonaws.util",
"com.sun.net",
"java.io",
"java.net",
"java.nio",
"javax.xml",
"org.apache.http",
"org.elasticsearch.mocksocket",
"org.hamcrest"
] | com.amazonaws.util; com.sun.net; java.io; java.net; java.nio; javax.xml; org.apache.http; org.elasticsearch.mocksocket; org.hamcrest; | 1,647,995 |
private int calculateSnapDistance() {
LinearLayoutManager linearLayoutManager = (LinearLayoutManager) getLayoutManager();
int parentAnchor = getParentAnchor(orientation, anchor);
int lastVisibleItemPosition = linearLayoutManager.findLastVisibleItemPosition();
int firstVisibleItemPo... | int function() { LinearLayoutManager linearLayoutManager = (LinearLayoutManager) getLayoutManager(); int parentAnchor = getParentAnchor(orientation, anchor); int lastVisibleItemPosition = linearLayoutManager.findLastVisibleItemPosition(); int firstVisibleItemPosition = linearLayoutManager.findFirstVisibleItemPosition()... | /**
* Calculates the distance between the RecyclerView's anchor, either the start, center or end,
* and the View which is closest to the anchor.
*
* @return The distance between RecyclerView anchor and View closest to anchor
*/ | Calculates the distance between the RecyclerView's anchor, either the start, center or end, and the View which is closest to the anchor | calculateSnapDistance | {
"repo_name": "Dan-TD/SnappyRecyclerView",
"path": "snappy-recyclerview/src/main/java/com/dant/centersnapreyclerview/SnappingRecyclerView.java",
"license": "mit",
"size": 10746
} | [
"android.support.v7.widget.LinearLayoutManager",
"android.view.View"
] | import android.support.v7.widget.LinearLayoutManager; import android.view.View; | import android.support.v7.widget.*; import android.view.*; | [
"android.support",
"android.view"
] | android.support; android.view; | 1,508,794 |
@Override
protected void scavenge() {
// don't attempt to scavenge if we are shutting down
if (isStopping() || isStopped()) {
return;
}
final Thread thread = Thread.currentThread();
final ClassLoader oldClazzLoader = thread.getContextClassLoader();
try {
if (_loader != null) {
thread.setConte... | void function() { if (isStopping() isStopped()) { return; } final Thread thread = Thread.currentThread(); final ClassLoader oldClazzLoader = thread.getContextClassLoader(); try { if (_loader != null) { thread.setContextClassLoader(_loader); } synchronized (LateInvalidatingHashSessionManager.class) { final long now = Sy... | /**
* This is a hack that sets the accessed and lastAccessed fields in
* HashedSession for all sessions with the same id when not all sessions are
* ready to expire.
*/ | This is a hack that sets the accessed and lastAccessed fields in HashedSession for all sessions with the same id when not all sessions are ready to expire | scavenge | {
"repo_name": "lostiniceland/org.ops4j.pax.web",
"path": "pax-web-jetty/src/main/java/org/ops4j/pax/web/service/jetty/internal/LateInvalidatingHashSessionManager.java",
"license": "apache-2.0",
"size": 8479
} | [
"java.util.Collection",
"org.eclipse.jetty.server.session.AbstractSession",
"org.eclipse.jetty.server.session.HashSessionIdManager",
"org.eclipse.jetty.server.session.HashedSession"
] | import java.util.Collection; import org.eclipse.jetty.server.session.AbstractSession; import org.eclipse.jetty.server.session.HashSessionIdManager; import org.eclipse.jetty.server.session.HashedSession; | import java.util.*; import org.eclipse.jetty.server.session.*; | [
"java.util",
"org.eclipse.jetty"
] | java.util; org.eclipse.jetty; | 1,407,108 |
private void save(ITNode node) throws IOException {
// increase the itemset count
itemsetCount++;
// if the result should be saved to memory
if(writer == null){
// add it to the set of frequent itemsets
Itemset itemset = node.getItemset();
itemset.setTidset(node.getTidset());
frequentItemsets.add... | void function(ITNode node) throws IOException { itemsetCount++; if(writer == null){ Itemset itemset = node.getItemset(); itemset.setTidset(node.getTidset()); frequentItemsets.addItemset(itemset, itemset.size()); }else{ writer.write(node.getItemset().toString() + STR + node.getTidset().size()); writer.newLine(); } } | /**
* Save a node (as described in the paper).
* @param node the node
* @throws IOException
*/ | Save a node (as described in the paper) | save | {
"repo_name": "Quanhua-Guan/spmf",
"path": "ca/pfv/spmf/algorithms/frequentpatterns/eclat_and_charm/AlgoEclat.java",
"license": "gpl-3.0",
"size": 14763
} | [
"ca.pfv.spmf.patterns.itemset_set_integers_with_tids.Itemset",
"java.io.IOException"
] | import ca.pfv.spmf.patterns.itemset_set_integers_with_tids.Itemset; import java.io.IOException; | import ca.pfv.spmf.patterns.itemset_set_integers_with_tids.*; import java.io.*; | [
"ca.pfv.spmf",
"java.io"
] | ca.pfv.spmf; java.io; | 1,622,923 |
@Override
public SkypeGroup findByUserIdAndGroupName(long userId, String groupName)
throws NoSuchSkypeGroupException {
SkypeGroup skypeGroup = fetchByUserIdAndGroupName(userId, groupName);
if (skypeGroup == null) {
StringBundler msg = new StringBundler(6);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg... | SkypeGroup function(long userId, String groupName) throws NoSuchSkypeGroupException { SkypeGroup skypeGroup = fetchByUserIdAndGroupName(userId, groupName); if (skypeGroup == null) { StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append(STR); msg.append(userId); msg.append(STR); msg.... | /**
* Returns the skype group where userId = ? and groupName = ? or throws a {@link NoSuchSkypeGroupException} if it could not be found.
*
* @param userId the user ID
* @param groupName the group name
* @return the matching skype group
* @throws NoSuchSkypeGroupException if a matching skype group co... | Returns the skype group where userId = ? and groupName = ? or throws a <code>NoSuchSkypeGroupException</code> if it could not be found | findByUserIdAndGroupName | {
"repo_name": "rivetlogic/liferay-skype",
"path": "modules/skype/skype-service/src/main/java/com/rivetlogic/skype/service/persistence/impl/SkypeGroupPersistenceImpl.java",
"license": "gpl-3.0",
"size": 50768
} | [
"com.liferay.portal.kernel.util.StringBundler",
"com.liferay.portal.kernel.util.StringPool",
"com.rivetlogic.skype.exception.NoSuchSkypeGroupException",
"com.rivetlogic.skype.model.SkypeGroup"
] | import com.liferay.portal.kernel.util.StringBundler; import com.liferay.portal.kernel.util.StringPool; import com.rivetlogic.skype.exception.NoSuchSkypeGroupException; import com.rivetlogic.skype.model.SkypeGroup; | import com.liferay.portal.kernel.util.*; import com.rivetlogic.skype.exception.*; import com.rivetlogic.skype.model.*; | [
"com.liferay.portal",
"com.rivetlogic.skype"
] | com.liferay.portal; com.rivetlogic.skype; | 1,836,884 |
public static @Nullable DataType fromClass(Class<? extends LamiData> cls) {
for (DataType type : DataType.values()) {
if (cls.equals(type.fClass)) {
return type;
}
}
return null;
}
} | static @Nullable DataType function(Class<? extends LamiData> cls) { for (DataType type : DataType.values()) { if (cls.equals(type.fClass)) { return type; } } return null; } } | /**
* Get the date type enum element from its implementation Class.
*
* @param cls
* The data type class
* @return The data type
*/ | Get the date type enum element from its implementation Class | fromClass | {
"repo_name": "alexmonthy/lttng-scope",
"path": "lttng-scope/src/main/java/org/lttng/scope/lami/types/LamiData.java",
"license": "epl-1.0",
"size": 21038
} | [
"org.jetbrains.annotations.Nullable"
] | import org.jetbrains.annotations.Nullable; | import org.jetbrains.annotations.*; | [
"org.jetbrains.annotations"
] | org.jetbrains.annotations; | 1,525,664 |
protected CommitResult commit(Commit<? extends TransactionCommit> commit) {
TransactionId transactionId = commit.value().transactionId();
TransactionScope transactionScope = activeTransactions.remove(transactionId);
if (transactionScope == null) {
return CommitResult.UNKNOWN_TRAN... | CommitResult function(Commit<? extends TransactionCommit> commit) { TransactionId transactionId = commit.value().transactionId(); TransactionScope transactionScope = activeTransactions.remove(transactionId); if (transactionScope == null) { return CommitResult.UNKNOWN_TRANSACTION_ID; } try { this.currentVersion = commit... | /**
* Handles an commit commit (ha!).
*
* @param commit transaction commit commit
* @return commit result
*/ | Handles an commit commit (ha!) | commit | {
"repo_name": "LorenzReinhart/ONOSnew",
"path": "core/store/primitives/src/main/java/org/onosproject/store/primitives/resources/impl/AtomixConsistentMapService.java",
"license": "apache-2.0",
"size": 42404
} | [
"com.google.common.base.Throwables",
"io.atomix.protocols.raft.service.Commit",
"org.onosproject.store.primitives.TransactionId",
"org.onosproject.store.primitives.resources.impl.AtomixConsistentMapOperations"
] | import com.google.common.base.Throwables; import io.atomix.protocols.raft.service.Commit; import org.onosproject.store.primitives.TransactionId; import org.onosproject.store.primitives.resources.impl.AtomixConsistentMapOperations; | import com.google.common.base.*; import io.atomix.protocols.raft.service.*; import org.onosproject.store.primitives.*; import org.onosproject.store.primitives.resources.impl.*; | [
"com.google.common",
"io.atomix.protocols",
"org.onosproject.store"
] | com.google.common; io.atomix.protocols; org.onosproject.store; | 2,673,707 |
public void shutdown_container(int id, String container_name, int action)
throws NoPermissionEx
{
pendingRequests.incrementAndGet();
try
{
// simply shutdown the container
manager.shutdownContainer(id, container_name, action);
}
catch (BadParametersException bpe)
{
BadParametersException hbpe... | void function(int id, String container_name, int action) throws NoPermissionEx { pendingRequests.incrementAndGet(); try { manager.shutdownContainer(id, container_name, action); } catch (BadParametersException bpe) { BadParametersException hbpe = new BadParametersException(bpe.getMessage(), bpe); reportException(hbpe); ... | /**
* Shutdown a container.
*
* @param id identification of the caller. Called has to be an owner of the component.
* @param container_name name of the container to shutdown.
* @param action The code to send to shutdown method of the container. If <code>0</code>, the Container's disconnect methods is called... | Shutdown a container | shutdown_container | {
"repo_name": "csrg-utfsm/acscb",
"path": "LGPL/CommonSoftware/jmanager/src/com/cosylab/acs/maci/plug/ManagerProxyImpl.java",
"license": "mit",
"size": 63719
} | [
"com.cosylab.acs.maci.BadParametersException",
"com.cosylab.acs.maci.CoreException",
"com.cosylab.acs.maci.NoResourcesException"
] | import com.cosylab.acs.maci.BadParametersException; import com.cosylab.acs.maci.CoreException; import com.cosylab.acs.maci.NoResourcesException; | import com.cosylab.acs.maci.*; | [
"com.cosylab.acs"
] | com.cosylab.acs; | 1,107,588 |
@Test
public void testRedirectToBufferStatelessPageAndRedirectIsDisabled()
{
final AtomicBoolean stored = new AtomicBoolean(false); | void function() { final AtomicBoolean stored = new AtomicBoolean(false); | /**
* Tests that when the page is stateless and redirect for stateless pages is disabled then the
* page should be written without redirect
*/ | Tests that when the page is stateless and redirect for stateless pages is disabled then the page should be written without redirect | testRedirectToBufferStatelessPageAndRedirectIsDisabled | {
"repo_name": "topicusonderwijs/wicket",
"path": "wicket-core/src/test/java/org/apache/wicket/request/handler/render/WebPageRendererTest.java",
"license": "apache-2.0",
"size": 29371
} | [
"java.util.concurrent.atomic.AtomicBoolean"
] | import java.util.concurrent.atomic.AtomicBoolean; | import java.util.concurrent.atomic.*; | [
"java.util"
] | java.util; | 2,554,439 |
public final void setEventBroadcaster(
final EventBroadcaster eventBroadcaster) {
mEventBroadcaster = eventBroadcaster;
}
| final void function( final EventBroadcaster eventBroadcaster) { mEventBroadcaster = eventBroadcaster; } | /**
* Sets the event broadcaster.
* @param eventBroadcaster the event broadcaster
*/ | Sets the event broadcaster | setEventBroadcaster | {
"repo_name": "cliffano/bloojm",
"path": "trackbackkeywordplugin/src/main/java/com/mbledug/blojsom/plugin/trackback/TrackbackKeywordPlugin.java",
"license": "bsd-3-clause",
"size": 13815
} | [
"org.blojsom.event.EventBroadcaster"
] | import org.blojsom.event.EventBroadcaster; | import org.blojsom.event.*; | [
"org.blojsom.event"
] | org.blojsom.event; | 2,307,242 |
protected RelOptPlanner createPlanner(CalcitePrepare.Context prepareContext) {
return createPlanner(prepareContext, null, null);
} | RelOptPlanner function(CalcitePrepare.Context prepareContext) { return createPlanner(prepareContext, null, null); } | /** Creates a query planner and initializes it with a default set of
* rules. */ | Creates a query planner and initializes it with a default set of | createPlanner | {
"repo_name": "minji-kim/calcite",
"path": "core/src/main/java/org/apache/calcite/prepare/CalcitePrepareImpl.java",
"license": "apache-2.0",
"size": 56192
} | [
"org.apache.calcite.jdbc.CalcitePrepare",
"org.apache.calcite.plan.RelOptPlanner"
] | import org.apache.calcite.jdbc.CalcitePrepare; import org.apache.calcite.plan.RelOptPlanner; | import org.apache.calcite.jdbc.*; import org.apache.calcite.plan.*; | [
"org.apache.calcite"
] | org.apache.calcite; | 590,552 |
public void testFailingTaskAndAutoPurge(HttpServletRequest request, PrintWriter out) throws Exception {
SharedFailingTask.clear();
SharedFailingTask.execProps.put(AutoPurge.PROPERTY_NAME, AutoPurge.ALWAYS.toString());
SharedFailingTask.failOn.add(1l);
SharedFailingTask.failOn.add(2l)... | void function(HttpServletRequest request, PrintWriter out) throws Exception { SharedFailingTask.clear(); SharedFailingTask.execProps.put(AutoPurge.PROPERTY_NAME, AutoPurge.ALWAYS.toString()); SharedFailingTask.failOn.add(1l); SharedFailingTask.failOn.add(2l); SharedFailingTask.failOn.add(3l); try { Callable<Long> task ... | /**
* Schedule a task that fails all execution attempts, exceeding the task failure limit, then and auto purges.
*/ | Schedule a task that fails all execution attempts, exceeding the task failure limit, then and auto purges | testFailingTaskAndAutoPurge | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.concurrent.persistent_fat_errorpaths/test-applications/persistenterrtest/src/web/PersistentErrorTestServlet.java",
"license": "epl-1.0",
"size": 67702
} | [
"com.ibm.websphere.concurrent.persistent.AutoPurge",
"com.ibm.websphere.concurrent.persistent.TaskStatus",
"java.io.PrintWriter",
"java.util.concurrent.Callable",
"java.util.concurrent.TimeUnit",
"javax.servlet.http.HttpServletRequest"
] | import com.ibm.websphere.concurrent.persistent.AutoPurge; import com.ibm.websphere.concurrent.persistent.TaskStatus; import java.io.PrintWriter; import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; import javax.servlet.http.HttpServletRequest; | import com.ibm.websphere.concurrent.persistent.*; import java.io.*; import java.util.concurrent.*; import javax.servlet.http.*; | [
"com.ibm.websphere",
"java.io",
"java.util",
"javax.servlet"
] | com.ibm.websphere; java.io; java.util; javax.servlet; | 2,838,138 |
private Class<?> getDocumentType(FulltextDocument document) throws ClientException {
for (FulltextField field : document.getFieldList()) {
if (field.getFieldName() == null && field.getFieldName().getValue() == null) {
continue;
}
if (field.getFieldName()... | Class<?> function(FulltextDocument document) throws ClientException { for (FulltextField field : document.getFieldList()) { if (field.getFieldName() == null && field.getFieldName().getValue() == null) { continue; } if (field.getFieldName().getValue().equalsIgnoreCase(FIELD_TYPE)) { try { Class<?> datatypeClass = Class.... | /**
* Resolve the document type.
*
* @param document
* the document holding the type
*
* @return the document class
*
* @throws ClientException
* when the datatype class cannot be loaded
*/ | Resolve the document type | getDocumentType | {
"repo_name": "NABUCCO/org.nabucco.framework.base",
"path": "org.nabucco.framework.base.ui.web/src/main/man/org/nabucco/framework/base/ui/web/action/handler/search/OpenSearchResultEditorAction.java",
"license": "epl-1.0",
"size": 6708
} | [
"org.nabucco.framework.base.facade.datatype.search.fulltext.FulltextDocument",
"org.nabucco.framework.base.facade.datatype.search.fulltext.FulltextField",
"org.nabucco.framework.base.facade.exception.client.ClientException"
] | import org.nabucco.framework.base.facade.datatype.search.fulltext.FulltextDocument; import org.nabucco.framework.base.facade.datatype.search.fulltext.FulltextField; import org.nabucco.framework.base.facade.exception.client.ClientException; | import org.nabucco.framework.base.facade.datatype.search.fulltext.*; import org.nabucco.framework.base.facade.exception.client.*; | [
"org.nabucco.framework"
] | org.nabucco.framework; | 1,710,751 |
public Adapter createConstraintBlockAdapter() {
return null;
} | Adapter function() { return null; } | /**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.sysml.constraints.ConstraintBlock <em>Constraint Block</em>}'.
* <!-- begin-user-doc --> This default
* implementation returns null so that we can easily ignore cases; it's
* useful to ignore a case when inheritance will catch all th... | Creates a new adapter for an object of class '<code>org.eclipse.papyrus.sysml.constraints.ConstraintBlock Constraint Block</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. | createConstraintBlockAdapter | {
"repo_name": "bmaggi/Papyrus-SysML11",
"path": "plugins/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/util/ConstraintsAdapterFactory.java",
"license": "epl-1.0",
"size": 5322
} | [
"org.eclipse.emf.common.notify.Adapter"
] | import org.eclipse.emf.common.notify.Adapter; | import org.eclipse.emf.common.notify.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 522,039 |
public static Optional<Integer> getPropertyType(final Node node, final String propertyName)
throws RepositoryException {
LOGGER.debug("Getting type of property: {} from node: {}", propertyName, node);
return getDefinitionForPropertyName(node, propertyName).map(PropertyDefinition::getRequ... | static Optional<Integer> function(final Node node, final String propertyName) throws RepositoryException { LOGGER.debug(STR, propertyName, node); return getDefinitionForPropertyName(node, propertyName).map(PropertyDefinition::getRequiredType); } | /**
* Get the JCR property type ID for a given property name. If unsure, mark
* it as UNDEFINED.
*
* @param node the JCR node to add the property on
* @param propertyName the property name
* @return a PropertyType value
* @throws RepositoryException if repository exception occurred
... | Get the JCR property type ID for a given property name. If unsure, mark it as UNDEFINED | getPropertyType | {
"repo_name": "mohideen/fcrepo4",
"path": "fcrepo-kernel-modeshape/src/main/java/org/fcrepo/kernel/modeshape/utils/FedoraTypesUtils.java",
"license": "apache-2.0",
"size": 10766
} | [
"java.util.Optional",
"javax.jcr.Node",
"javax.jcr.RepositoryException",
"javax.jcr.nodetype.PropertyDefinition"
] | import java.util.Optional; import javax.jcr.Node; import javax.jcr.RepositoryException; import javax.jcr.nodetype.PropertyDefinition; | import java.util.*; import javax.jcr.*; import javax.jcr.nodetype.*; | [
"java.util",
"javax.jcr"
] | java.util; javax.jcr; | 2,402,248 |
private void changeGrantsOfAnonymousGroup(JtalksPermission permission, Entity entity, boolean granted) {
List<Permission> jtalksPermissions = new ArrayList<>();
jtalksPermissions.add(permission);
List<Sid> sids = new ArrayList<>();
sids.add(UserSid.createAnonymous());
if (gra... | void function(JtalksPermission permission, Entity entity, boolean granted) { List<Permission> jtalksPermissions = new ArrayList<>(); jtalksPermissions.add(permission); List<Sid> sids = new ArrayList<>(); sids.add(UserSid.createAnonymous()); if (granted) { aclManager.grant(sids, jtalksPermissions, entity); } else { aclM... | /**
* Changes permissions for Anonymous Sid.
*
* @param permission permission
* @param entity the entity to change permissions to
* @param granted permission is granted or restricted
*/ | Changes permissions for Anonymous Sid | changeGrantsOfAnonymousGroup | {
"repo_name": "Noctrunal/jcommune",
"path": "jcommune-service/src/main/java/org/jtalks/jcommune/service/security/PermissionManager.java",
"license": "lgpl-2.1",
"size": 14371
} | [
"java.util.ArrayList",
"java.util.List",
"org.jtalks.common.model.entity.Entity",
"org.jtalks.common.model.permissions.JtalksPermission",
"org.jtalks.jcommune.service.security.acl.sids.UserSid",
"org.springframework.security.acls.model.Permission",
"org.springframework.security.acls.model.Sid"
] | import java.util.ArrayList; import java.util.List; import org.jtalks.common.model.entity.Entity; import org.jtalks.common.model.permissions.JtalksPermission; import org.jtalks.jcommune.service.security.acl.sids.UserSid; import org.springframework.security.acls.model.Permission; import org.springframework.security.acls.... | import java.util.*; import org.jtalks.common.model.entity.*; import org.jtalks.common.model.permissions.*; import org.jtalks.jcommune.service.security.acl.sids.*; import org.springframework.security.acls.model.*; | [
"java.util",
"org.jtalks.common",
"org.jtalks.jcommune",
"org.springframework.security"
] | java.util; org.jtalks.common; org.jtalks.jcommune; org.springframework.security; | 2,899,744 |
public static Reader getUrlAsReader(String urlString) throws IOException {
return new InputStreamReader(getUrlAsStream(urlString));
}
| static Reader function(String urlString) throws IOException { return new InputStreamReader(getUrlAsStream(urlString)); } | /**
* Gets a URL as a Reader
*
* @param urlString
* - the URL to get
* @return A Reader with the data from the URL
* @throws IOException
* If the resource cannot be found or read
*/ | Gets a URL as a Reader | getUrlAsReader | {
"repo_name": "jreadstone/zsyproject",
"path": "src/org/g4studio/core/util/ResourcesUtil.java",
"license": "gpl-2.0",
"size": 9261
} | [
"java.io.IOException",
"java.io.InputStreamReader",
"java.io.Reader"
] | import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; | import java.io.*; | [
"java.io"
] | java.io; | 2,250,630 |
@Test
public void pullUnreceived()
{
InstrumentedCoordinator coordinator = new InstrumentedCoordinator();
coordinator.shouldPullFromEndpoint = false;
assertNoContact(coordinator, false);
coordinator.shouldPullFromEndpoint = true;
Assert.assertEquals(0, coordinator.r... | void function() { InstrumentedCoordinator coordinator = new InstrumentedCoordinator(); coordinator.shouldPullFromEndpoint = false; assertNoContact(coordinator, false); coordinator.shouldPullFromEndpoint = true; Assert.assertEquals(0, coordinator.requests.size()); List<Future<Void>> futures = coordinator.pullUnreceivedS... | /**
* Pull unreceived schemas should detect and send requests out for any
* schemas that are marked unreceived and have no outstanding requests
*/ | Pull unreceived schemas should detect and send requests out for any schemas that are marked unreceived and have no outstanding requests | pullUnreceived | {
"repo_name": "michaelsembwever/cassandra",
"path": "test/unit/org/apache/cassandra/schema/MigrationCoordinatorTest.java",
"license": "apache-2.0",
"size": 12020
} | [
"com.google.common.util.concurrent.Futures",
"java.util.List",
"java.util.concurrent.Future",
"org.junit.Assert"
] | import com.google.common.util.concurrent.Futures; import java.util.List; import java.util.concurrent.Future; import org.junit.Assert; | import com.google.common.util.concurrent.*; import java.util.*; import java.util.concurrent.*; import org.junit.*; | [
"com.google.common",
"java.util",
"org.junit"
] | com.google.common; java.util; org.junit; | 2,430,626 |
public final void output(Text text, OutputStream out) throws IOException {
output(text, makeWriter(out, myFormat)); // output() flushes
} | final void function(Text text, OutputStream out) throws IOException { output(text, makeWriter(out, myFormat)); } | /**
* Print out a <code>{@link Text}</code> node. Perfoms the necessary entity
* escaping and whitespace stripping.
*
* @param text
* <code>Text</code> to output.
* @param out
* <code>OutputStream</code> to use.
* @throws IOException
* if there's any problem writing.
* @throws... | Print out a <code><code>Text</code></code> node. Perfoms the necessary entity escaping and whitespace stripping | output | {
"repo_name": "djcraft/Algotica",
"path": "compilateurAlgotica/src/org/jdom2/output/XMLOutputter.java",
"license": "gpl-3.0",
"size": 35699
} | [
"java.io.IOException",
"java.io.OutputStream",
"org.jdom2.Text"
] | import java.io.IOException; import java.io.OutputStream; import org.jdom2.Text; | import java.io.*; import org.jdom2.*; | [
"java.io",
"org.jdom2"
] | java.io; org.jdom2; | 475,932 |
public Set<MetricName> getNames() {
return Collections.unmodifiableSet(new HashSet<MetricName>(metrics.keySet()));
} | Set<MetricName> function() { return Collections.unmodifiableSet(new HashSet<MetricName>(metrics.keySet())); } | /**
* Returns a set of the names of all the metrics in the registry.
*
* @return the names of all the metrics
*/ | Returns a set of the names of all the metrics in the registry | getNames | {
"repo_name": "trampi/stagemonitor",
"path": "stagemonitor-core/src/main/java/org/stagemonitor/core/metrics/metrics2/Metric2Registry.java",
"license": "apache-2.0",
"size": 12082
} | [
"java.util.Collections",
"java.util.HashSet",
"java.util.Set"
] | import java.util.Collections; import java.util.HashSet; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,653,553 |
@Deprecated
public void moveTextPositionByAmount(float tx, float ty) throws IOException
{
newLineAtOffset(tx, ty);
} | void function(float tx, float ty) throws IOException { newLineAtOffset(tx, ty); } | /**
* The Td operator.
* A current text matrix will be replaced with a new one (1 0 0 1 x y).
* @param tx The x translation.
* @param ty The y translation.
* @throws IOException If there is an error writing to the stream.
* @deprecated Use {@link #newLineAtOffset} instead.
*/ | The Td operator. A current text matrix will be replaced with a new one (1 0 0 1 x y) | moveTextPositionByAmount | {
"repo_name": "mdamt/pdfbox",
"path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java",
"license": "apache-2.0",
"size": 73880
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 97,382 |
Artifact getProtoCompiler() {
return ruleContext.getPrerequisiteArtifact(ObjcRuleClasses.PROTO_COMPILER_ATTR, Mode.HOST);
} | Artifact getProtoCompiler() { return ruleContext.getPrerequisiteArtifact(ObjcRuleClasses.PROTO_COMPILER_ATTR, Mode.HOST); } | /**
* Returns the proto compiler to be used.
*/ | Returns the proto compiler to be used | getProtoCompiler | {
"repo_name": "mikelalcon/bazel",
"path": "src/main/java/com/google/devtools/build/lib/rules/objc/ProtoSupport.java",
"license": "apache-2.0",
"size": 31687
} | [
"com.google.devtools.build.lib.actions.Artifact",
"com.google.devtools.build.lib.analysis.RuleConfiguredTarget"
] | import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.RuleConfiguredTarget; | import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.*; | [
"com.google.devtools"
] | com.google.devtools; | 1,792,958 |
public void setContainerHLMarkingHLAPI(
HLMarkingHLAPI elem) {
if (elem != null)
item.setContainerHLMarking((HLMarking) elem.getContainedItem());
} | void function( HLMarkingHLAPI elem) { if (elem != null) item.setContainerHLMarking((HLMarking) elem.getContainedItem()); } | /**
* set ContainerHLMarking
*/ | set ContainerHLMarking | setContainerHLMarkingHLAPI | {
"repo_name": "lhillah/pnmlframework",
"path": "pnmlFw-PT-HLPNG/src/fr/lip6/move/pnml/pthlpng/integers/hlapi/SubtractionHLAPI.java",
"license": "epl-1.0",
"size": 69869
} | [
"fr.lip6.move.pnml.pthlpng.hlcorestructure.HLMarking",
"fr.lip6.move.pnml.pthlpng.hlcorestructure.hlapi.HLMarkingHLAPI"
] | import fr.lip6.move.pnml.pthlpng.hlcorestructure.HLMarking; import fr.lip6.move.pnml.pthlpng.hlcorestructure.hlapi.HLMarkingHLAPI; | import fr.lip6.move.pnml.pthlpng.hlcorestructure.*; import fr.lip6.move.pnml.pthlpng.hlcorestructure.hlapi.*; | [
"fr.lip6.move"
] | fr.lip6.move; | 2,054,536 |
@Test
public void checkLoadingFromXML() throws NullPointerException, JAXBException, IOException {
// Local Declarations
ICEJAXBHandler xmlHandler = new ICEJAXBHandler();
ArrayList<Class> classList = new ArrayList<Class>();
classList.add(BoundaryCondition.class);
BoundaryCondition condition = new Boundary... | void function() throws NullPointerException, JAXBException, IOException { ICEJAXBHandler xmlHandler = new ICEJAXBHandler(); ArrayList<Class> classList = new ArrayList<Class>(); classList.add(BoundaryCondition.class); BoundaryCondition condition = new BoundaryCondition(); ByteArrayOutputStream outputStream = new ByteArr... | /**
* <p>
* This operation checks the ability of the BoundaryCondition to persist
* itself to XML and to load itself from an XML input stream.
* </p>
* @throws IOException
* @throws JAXBException
* @throws NullPointerException
*
*/ | This operation checks the ability of the BoundaryCondition to persist itself to XML and to load itself from an XML input stream. | checkLoadingFromXML | {
"repo_name": "SmithRWORNL/ice",
"path": "tests/org.eclipse.ice.datastructures.test/src/org/eclipse/ice/datastructures/test/BoundaryConditionTester.java",
"license": "epl-1.0",
"size": 11720
} | [
"java.io.ByteArrayInputStream",
"java.io.ByteArrayOutputStream",
"java.io.IOException",
"java.util.ArrayList",
"javax.xml.bind.JAXBException",
"org.eclipse.ice.datastructures.ICEObject",
"org.eclipse.ice.datastructures.form.mesh.BoundaryCondition",
"org.junit.Assert"
] | import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.ArrayList; import javax.xml.bind.JAXBException; import org.eclipse.ice.datastructures.ICEObject; import org.eclipse.ice.datastructures.form.mesh.BoundaryCondition; import org.junit.Assert; | import java.io.*; import java.util.*; import javax.xml.bind.*; import org.eclipse.ice.datastructures.*; import org.eclipse.ice.datastructures.form.mesh.*; import org.junit.*; | [
"java.io",
"java.util",
"javax.xml",
"org.eclipse.ice",
"org.junit"
] | java.io; java.util; javax.xml; org.eclipse.ice; org.junit; | 2,851,695 |
public Callbacks setAfterLabel(JavaScriptFunction afterLabel) {
this.afterLabel = afterLabel;
return this;
} | Callbacks function(JavaScriptFunction afterLabel) { this.afterLabel = afterLabel; return this; } | /**
* <p>
* Returns text to render after an individual label.
* </p>
*/ | Returns text to render after an individual label. | setAfterLabel | {
"repo_name": "mdewilde/chart",
"path": "src/main/java/be/ceau/chart/options/Callbacks.java",
"license": "apache-2.0",
"size": 6464
} | [
"be.ceau.chart.javascript.JavaScriptFunction"
] | import be.ceau.chart.javascript.JavaScriptFunction; | import be.ceau.chart.javascript.*; | [
"be.ceau.chart"
] | be.ceau.chart; | 2,741,236 |
protected boolean evaluate(final ComponentAdapter adapter) {
return adapter != null; // use parameter, prevent compiler warning
} | boolean function(final ComponentAdapter adapter) { return adapter != null; } | /**
* Evaluate whether the given component adapter will be part of the collective type.
*
* @param adapter a <code>ComponentAdapter</code> value
* @return <code>true</code> if the adapter takes part
*/ | Evaluate whether the given component adapter will be part of the collective type | evaluate | {
"repo_name": "picocontainer/PicoContainer1",
"path": "container/src/java/org/picocontainer/defaults/CollectionComponentParameter.java",
"license": "bsd-3-clause",
"size": 15569
} | [
"org.picocontainer.ComponentAdapter"
] | import org.picocontainer.ComponentAdapter; | import org.picocontainer.*; | [
"org.picocontainer"
] | org.picocontainer; | 442,365 |
public void addListener (Telegraph listener, int msg) {
Array<Telegraph> listeners = msgListeners.get(msg);
if (listeners == null) {
// Associate an empty unordered array with the message code
listeners = new Array<Telegraph>(false, 16);
msgListeners.put(msg, listeners);
}
listeners.add(listener);
... | void function (Telegraph listener, int msg) { Array<Telegraph> listeners = msgListeners.get(msg); if (listeners == null) { listeners = new Array<Telegraph>(false, 16); msgListeners.put(msg, listeners); } listeners.add(listener); Array<TelegramProvider> providers = msgProviders.get(msg); if (providers != null) { for (in... | /** Registers a listener for the specified message code. Messages without an explicit receiver are broadcasted to all its
* registered listeners.
* @param listener the listener to add
* @param msg the message code */ | Registers a listener for the specified message code. Messages without an explicit receiver are broadcasted to all its registered listeners | addListener | {
"repo_name": "libgdx/gdx-ai",
"path": "gdx-ai/src/com/badlogic/gdx/ai/msg/MessageDispatcher.java",
"license": "apache-2.0",
"size": 27017
} | [
"com.badlogic.gdx.utils.Array",
"com.badlogic.gdx.utils.reflect.ClassReflection"
] | import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.reflect.ClassReflection; | import com.badlogic.gdx.utils.*; import com.badlogic.gdx.utils.reflect.*; | [
"com.badlogic.gdx"
] | com.badlogic.gdx; | 144,865 |
private void cbUseLocalTrustStoreActionPerformed(
ActionEvent evt) {
final boolean selected = cbUseLocalTrustStore.isSelected();
tfTrustStoreToUse.setEditable(selected); // must follow the checkbox setting
if (selected) {
cbTrustAllCerts.setSelected(false); // not com... | void function( ActionEvent evt) { final boolean selected = cbUseLocalTrustStore.isSelected(); tfTrustStoreToUse.setEditable(selected); if (selected) { cbTrustAllCerts.setSelected(false); } } | /**
* ActionPerformed-method for checkbox "useLocalTrustStore"
*
* @param evt
* ActionEvent to be handled
*/ | ActionPerformed-method for checkbox "useLocalTrustStore" | cbUseLocalTrustStoreActionPerformed | {
"repo_name": "ubikfsabbe/jmeter",
"path": "src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/gui/SecuritySettingsPanel.java",
"license": "apache-2.0",
"size": 15570
} | [
"java.awt.event.ActionEvent"
] | import java.awt.event.ActionEvent; | import java.awt.event.*; | [
"java.awt"
] | java.awt; | 540,959 |
public static SetSplitOrMergeEnabledRequest buildSetSplitOrMergeEnabledRequest(boolean enabled,
boolean synchronous, MasterSwitchType... switchTypes) {
SetSplitOrMergeEnabledRequest.Builder builder = SetSplitOrMergeEnabledRequest.newBuilder();
builder.setEnabled(enabled);
builder.setSynchronous(synchr... | static SetSplitOrMergeEnabledRequest function(boolean enabled, boolean synchronous, MasterSwitchType... switchTypes) { SetSplitOrMergeEnabledRequest.Builder builder = SetSplitOrMergeEnabledRequest.newBuilder(); builder.setEnabled(enabled); builder.setSynchronous(synchronous); for (MasterSwitchType switchType : switchTy... | /**
* Creates a protocol buffer SetSplitOrMergeEnabledRequest
*
* @param enabled switch is enabled or not
* @param synchronous set switch sync?
* @param switchTypes see {@link org.apache.hadoop.hbase.client.MasterSwitchType}, it is
* a list.
* @return a SetSplitOrMergeEnabledRequ... | Creates a protocol buffer SetSplitOrMergeEnabledRequest | buildSetSplitOrMergeEnabledRequest | {
"repo_name": "apurtell/hbase",
"path": "hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/RequestConverter.java",
"license": "apache-2.0",
"size": 79432
} | [
"org.apache.hadoop.hbase.client.MasterSwitchType",
"org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos"
] | import org.apache.hadoop.hbase.client.MasterSwitchType; import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos; | import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.shaded.protobuf.generated.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,914,009 |
@Override
public void releaseLockEntry(LockEntry lockEntry) {
String asset = lockEntry.getKey();
Identity releaseRequestor = lockEntry.getOwner();
// cluster:: change to useage with syncer, but we don't have the olatresourceable yet
PessimisticLockManager.getInstance().findOrPersistPLock(asset);
Lo... | void function(LockEntry lockEntry) { String asset = lockEntry.getKey(); Identity releaseRequestor = lockEntry.getOwner(); PessimisticLockManager.getInstance().findOrPersistPLock(asset); LockImpl li = clusterLockManager.findLock(asset); if (li == null) { } else { Identity ownwer = li.getOwner(); if (releaseRequestor.get... | /**
* for admin purposes only. Release a lockentry directly.
* Use 'releaseLock' as method to release a lock.
* @param lock release this lockentry
*/ | for admin purposes only. Release a lockentry directly. Use 'releaseLock' as method to release a lock | releaseLockEntry | {
"repo_name": "stevenhva/InfoLearn_OpenOLAT",
"path": "src/main/java/org/olat/commons/coordinate/cluster/lock/ClusterLocker.java",
"license": "apache-2.0",
"size": 9406
} | [
"org.olat.core.id.Identity",
"org.olat.core.logging.AssertException",
"org.olat.core.util.coordinate.LockEntry",
"org.olat.resource.lock.pessimistic.PessimisticLockManager"
] | import org.olat.core.id.Identity; import org.olat.core.logging.AssertException; import org.olat.core.util.coordinate.LockEntry; import org.olat.resource.lock.pessimistic.PessimisticLockManager; | import org.olat.core.id.*; import org.olat.core.logging.*; import org.olat.core.util.coordinate.*; import org.olat.resource.lock.pessimistic.*; | [
"org.olat.core",
"org.olat.resource"
] | org.olat.core; org.olat.resource; | 53,890 |
public static @NonNull QName readFrom(final DataInput in) throws IOException {
if (in instanceof QNameAwareDataInput) {
return ((QNameAwareDataInput) in).readQName();
}
final QNameModule module = QNameModule.readFrom(in);
return new QName(module, checkLocalName(in.readUT... | static @NonNull QName function(final DataInput in) throws IOException { if (in instanceof QNameAwareDataInput) { return ((QNameAwareDataInput) in).readQName(); } final QNameModule module = QNameModule.readFrom(in); return new QName(module, checkLocalName(in.readUTF())); } | /**
* Read a QName from a DataInput. The format is expected to match the output format of {@link #writeTo(DataOutput)}.
*
* @param in DataInput to read
* @return A QName instance
* @throws IOException if I/O error occurs
*/ | Read a QName from a DataInput. The format is expected to match the output format of <code>#writeTo(DataOutput)</code> | readFrom | {
"repo_name": "opendaylight/yangtools",
"path": "common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QName.java",
"license": "epl-1.0",
"size": 15163
} | [
"java.io.DataInput",
"java.io.IOException",
"org.eclipse.jdt.annotation.NonNull"
] | import java.io.DataInput; import java.io.IOException; import org.eclipse.jdt.annotation.NonNull; | import java.io.*; import org.eclipse.jdt.annotation.*; | [
"java.io",
"org.eclipse.jdt"
] | java.io; org.eclipse.jdt; | 1,528,769 |
public static List<DbChunk> convertToChunks(Serializable serializable, int chunkSize)
throws IOException {
if (serializable == null || chunkSize <= 0) {
Log.w(TAG, "convertToChunks: Invalid input. Empty chunk list returned");
return null;
}
// Convert to bytes
ByteArrayOutputStream... | static List<DbChunk> function(Serializable serializable, int chunkSize) throws IOException { if (serializable == null chunkSize <= 0) { Log.w(TAG, STR); return null; } ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutput out = new ObjectOutputStream(bos); out.writeObject(serializable); byte[] bytes = b... | /**
* Convert a serializable object into an ordered list of OdkDbChunks of a specified size.
*
* @param serializable The object to be serialized
* @param chunkSize The size of the chunks
* @return Ordered list of serialized chunks
*/ | Convert a serializable object into an ordered list of OdkDbChunks of a specified size | convertToChunks | {
"repo_name": "opendatakit/androidlibrary",
"path": "androidlibrary_lib/src/main/java/org/opendatakit/database/utilities/DbChunkUtil.java",
"license": "apache-2.0",
"size": 7392
} | [
"android.util.Log",
"java.io.ByteArrayOutputStream",
"java.io.IOException",
"java.io.ObjectOutput",
"java.io.ObjectOutputStream",
"java.io.Serializable",
"java.util.List",
"org.opendatakit.database.service.DbChunk"
] | import android.util.Log; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectOutput; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.List; import org.opendatakit.database.service.DbChunk; | import android.util.*; import java.io.*; import java.util.*; import org.opendatakit.database.service.*; | [
"android.util",
"java.io",
"java.util",
"org.opendatakit.database"
] | android.util; java.io; java.util; org.opendatakit.database; | 1,668,943 |
public void close()
{
try {
WriteStream os = _os;
_os = null;
if (os != null)
os.close();
} catch (IOException e) {
log.log(Level.FINE, e.toString(), e);
}
} | void function() { try { WriteStream os = _os; _os = null; if (os != null) os.close(); } catch (IOException e) { log.log(Level.FINE, e.toString(), e); } } | /**
* Closes the file.
*/ | Closes the file | close | {
"repo_name": "christianchristensen/resin",
"path": "modules/quercus/src/com/caucho/quercus/lib/file/FileWriteValue.java",
"license": "gpl-2.0",
"size": 2873
} | [
"com.caucho.vfs.WriteStream",
"java.io.IOException",
"java.util.logging.Level"
] | import com.caucho.vfs.WriteStream; import java.io.IOException; import java.util.logging.Level; | import com.caucho.vfs.*; import java.io.*; import java.util.logging.*; | [
"com.caucho.vfs",
"java.io",
"java.util"
] | com.caucho.vfs; java.io; java.util; | 1,724,105 |
public boolean isPlayerConnected() {
try {
output1.writeObject(null);
return true;
} catch (IOException ex) {
server.output("First player is no longer connected");
return false;
}
} | boolean function() { try { output1.writeObject(null); return true; } catch (IOException ex) { server.output(STR); return false; } } | /**
* Checks whether is first player connected
* @return
*/ | Checks whether is first player connected | isPlayerConnected | {
"repo_name": "Jircus/GameServer",
"path": "src/server/GameThread.java",
"license": "gpl-3.0",
"size": 5552
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 910,257 |
public MapColor getMapColor(IBlockState state)
{
return state.getValue(COLOR).getMapColor();
} | MapColor function(IBlockState state) { return state.getValue(COLOR).getMapColor(); } | /**
* Get the MapColor for this Block and the given BlockState
*/ | Get the MapColor for this Block and the given BlockState | getMapColor | {
"repo_name": "ironcraft/nowel",
"path": "src/main/java/fr/ironcraft/nowel/blocks/BlockPresent.java",
"license": "mit",
"size": 3788
} | [
"net.minecraft.block.material.MapColor",
"net.minecraft.block.state.IBlockState"
] | import net.minecraft.block.material.MapColor; import net.minecraft.block.state.IBlockState; | import net.minecraft.block.material.*; import net.minecraft.block.state.*; | [
"net.minecraft.block"
] | net.minecraft.block; | 2,339,658 |
public FeatureName getFeatureName() {
return featureName;
} | FeatureName function() { return featureName; } | /**
* Getter for the feature name.
*
* @return featureName {@link FeatureName} represents the Feature name for which lock is being acquired.
*/ | Getter for the feature name | getFeatureName | {
"repo_name": "ungerik/ephesoft",
"path": "Ephesoft_Community_Release_4.0.2.0/source/dcma-data-access/src/main/java/com/ephesoft/dcma/da/domain/LockStatus.java",
"license": "agpl-3.0",
"size": 5313
} | [
"com.ephesoft.dcma.core.common.FeatureName"
] | import com.ephesoft.dcma.core.common.FeatureName; | import com.ephesoft.dcma.core.common.*; | [
"com.ephesoft.dcma"
] | com.ephesoft.dcma; | 2,296,695 |
public void setDLFileEntryPersistence(
DLFileEntryPersistence dlFileEntryPersistence) {
this.dlFileEntryPersistence = dlFileEntryPersistence;
} | void function( DLFileEntryPersistence dlFileEntryPersistence) { this.dlFileEntryPersistence = dlFileEntryPersistence; } | /**
* Sets the document library file entry persistence.
*
* @param dlFileEntryPersistence the document library file entry persistence
*/ | Sets the document library file entry persistence | setDLFileEntryPersistence | {
"repo_name": "openegovplatform/OEPv2",
"path": "oep-core-dossiermgt-portlet/docroot/WEB-INF/src/org/oep/core/dossiermgt/service/base/DocTemplateServiceBaseImpl.java",
"license": "apache-2.0",
"size": 52581
} | [
"com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence"
] | import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence; | import com.liferay.portlet.documentlibrary.service.persistence.*; | [
"com.liferay.portlet"
] | com.liferay.portlet; | 1,742,244 |
void addUniqueConstraint(String tableName, String constraintName, String... columnNames)
throws SQLException; | void addUniqueConstraint(String tableName, String constraintName, String... columnNames) throws SQLException; | /**
* Add unique table constraint
* @param constraintName name of the constraint
* @param tableName name of the table
* @param columnNames list of columns
* @throws SQLException
*/ | Add unique table constraint | addUniqueConstraint | {
"repo_name": "zouzhberk/ambaridemo",
"path": "demo-server/src/main/java/org/apache/ambari/server/orm/DBAccessor.java",
"license": "apache-2.0",
"size": 19455
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 55,967 |
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public V1ScopeSelector getScopeSelector() {
return scopeSelector;
} | @javax.annotation.Nullable @ApiModelProperty(value = "") V1ScopeSelector function() { return scopeSelector; } | /**
* Get scopeSelector
*
* @return scopeSelector
*/ | Get scopeSelector | getScopeSelector | {
"repo_name": "kubernetes-client/java",
"path": "kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java",
"license": "apache-2.0",
"size": 5110
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 1,974,133 |
@Override
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {
try {
if (isDebugEnabled()) {
debugCode("execute("+quote(sql)+", "+autoGeneratedKeys+");");
}
return executeInternal(sql);
} catch (Exception e) {
... | boolean function(String sql, int autoGeneratedKeys) throws SQLException { try { if (isDebugEnabled()) { debugCode(STR+quote(sql)+STR+autoGeneratedKeys+");"); } return executeInternal(sql); } catch (Exception e) { throw logAndConvert(e); } } | /**
* Executes a statement and returns the update count.
* This method just calls execute(String sql) internally.
* The method getGeneratedKeys supports at most one columns and row.
*
* @param sql the SQL statement
* @param autoGeneratedKeys ignored
* @return the update count (number ... | Executes a statement and returns the update count. This method just calls execute(String sql) internally. The method getGeneratedKeys supports at most one columns and row | execute | {
"repo_name": "ferquies/2dam",
"path": "AD/Tema 2/h2/src/main/org/h2/jdbc/JdbcStatement.java",
"license": "gpl-3.0",
"size": 34682
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,900,244 |
byte[] decryptDeterministically(final byte[] ciphertext, final byte[] associatedData)
throws GeneralSecurityException; | byte[] decryptDeterministically(final byte[] ciphertext, final byte[] associatedData) throws GeneralSecurityException; | /**
* Deterministically decrypts {@code ciphertext} with {@code associatedData} as associated
* authenticated data.
*
* <p>The decryption verifies the authenticity and integrity of the associated data, but there are
* no guarantees wrt. secrecy of that data.
*
* @return resulting plaintext
*/ | Deterministically decrypts ciphertext with associatedData as associated authenticated data. The decryption verifies the authenticity and integrity of the associated data, but there are no guarantees wrt. secrecy of that data | decryptDeterministically | {
"repo_name": "google/tink",
"path": "java_src/src/main/java/com/google/crypto/tink/DeterministicAead.java",
"license": "apache-2.0",
"size": 3026
} | [
"java.security.GeneralSecurityException"
] | import java.security.GeneralSecurityException; | import java.security.*; | [
"java.security"
] | java.security; | 2,651,370 |
public static String getLongName(byte[] longEntry)
{
String result = "";
//calculate the checksum of the basis-name. If there is one member of the
// the set of long directory entries that has not this checksum set. The
// long name is no longer valid.
byte[] basisName = new byte[11];
System.arraycop... | static String function(byte[] longEntry) { String result = STRChecksum doesn't match: "+Arrays.printHexArrayString(longEntry)); } for (int j=i+1; j < i+11; j += 2) if (longEntry[j] == 0 && longEntry[j+1] == 0) return result + ByteArrayConversionsLittleEndian.unicodeByteToString(longEntry, i+1, j); result += ByteArrayCo... | /**
* Returns the name of the file of a set of long name directory entries.
* the longEntry must be the whole set of long name directory entries
* (inclusive the short directory entry).
* @param longEntry a set of directory entries that together are a long
* name entry.
* @return the name of the long direct... | Returns the name of the file of a set of long name directory entries. the longEntry must be the whole set of long name directory entries (inclusive the short directory entry) | getLongName | {
"repo_name": "hannoman/xxl",
"path": "src/xxl/core/io/fat/DIR.java",
"license": "lgpl-3.0",
"size": 132958
} | [
"xxl.core.io.fat.util.ByteArrayConversionsLittleEndian",
"xxl.core.util.Arrays"
] | import xxl.core.io.fat.util.ByteArrayConversionsLittleEndian; import xxl.core.util.Arrays; | import xxl.core.io.fat.util.*; import xxl.core.util.*; | [
"xxl.core.io",
"xxl.core.util"
] | xxl.core.io; xxl.core.util; | 2,545,926 |
public static PcepValueType read(ChannelBuffer c) {
short temp = c.readShort();
boolean bMFlag;
boolean bCFlag;
boolean bSFlag;
boolean bFFlag;
byte st;
PcepNai nai = null;
bMFlag = (temp & MFLAG_SET) == MFLAG_SET;
bCFlag = (temp & CFLAG_SET) ... | static PcepValueType function(ChannelBuffer c) { short temp = c.readShort(); boolean bMFlag; boolean bCFlag; boolean bSFlag; boolean bFFlag; byte st; PcepNai nai = null; bMFlag = (temp & MFLAG_SET) == MFLAG_SET; bCFlag = (temp & CFLAG_SET) == CFLAG_SET; bSFlag = (temp & SFLAG_SET) == SFLAG_SET; bFFlag = (temp & FFLAG_S... | /**
* Reads the channel buffer and returns object of SrEroSubObject.
* @param c of type channel buffer
* @return object of SrEroSubObject
*/ | Reads the channel buffer and returns object of SrEroSubObject | read | {
"repo_name": "donNewtonAlpha/onos",
"path": "protocols/pcep/pcepio/src/main/java/org/onosproject/pcepio/types/SrEroSubObject.java",
"license": "apache-2.0",
"size": 10558
} | [
"org.jboss.netty.buffer.ChannelBuffer",
"org.onosproject.pcepio.protocol.PcepNai"
] | import org.jboss.netty.buffer.ChannelBuffer; import org.onosproject.pcepio.protocol.PcepNai; | import org.jboss.netty.buffer.*; import org.onosproject.pcepio.protocol.*; | [
"org.jboss.netty",
"org.onosproject.pcepio"
] | org.jboss.netty; org.onosproject.pcepio; | 1,989,357 |
public void retrieveCollections(Object newObj, ClassDescriptor cld, boolean forced) throws PersistenceBrokerException
{
doRetrieveCollections(newObj, cld, forced, false);
}
| void function(Object newObj, ClassDescriptor cld, boolean forced) throws PersistenceBrokerException { doRetrieveCollections(newObj, cld, forced, false); } | /**
* Retrieve all Collection attributes of a given instance
*
* @param newObj the instance to be loaded or refreshed
* @param cld the ClassDescriptor of the instance
* @param forced if set to true, loading is forced even if cld differs
*
*/ | Retrieve all Collection attributes of a given instance | retrieveCollections | {
"repo_name": "kuali/ojb-1.0.4",
"path": "src/java/org/apache/ojb/broker/core/QueryReferenceBroker.java",
"license": "apache-2.0",
"size": 44353
} | [
"org.apache.ojb.broker.PersistenceBrokerException",
"org.apache.ojb.broker.metadata.ClassDescriptor"
] | import org.apache.ojb.broker.PersistenceBrokerException; import org.apache.ojb.broker.metadata.ClassDescriptor; | import org.apache.ojb.broker.*; import org.apache.ojb.broker.metadata.*; | [
"org.apache.ojb"
] | org.apache.ojb; | 714,616 |
private void setDispenserDefaultDirection(World par1World, int par2, int par3, int par4)
{
if (!par1World.isRemote)
{
int l = par1World.getBlockId(par2, par3, par4 - 1);
int i1 = par1World.getBlockId(par2, par3, par4 + 1);
int j1 = par1World.getBlockId(par2 - ... | void function(World par1World, int par2, int par3, int par4) { if (!par1World.isRemote) { int l = par1World.getBlockId(par2, par3, par4 - 1); int i1 = par1World.getBlockId(par2, par3, par4 + 1); int j1 = par1World.getBlockId(par2 - 1, par3, par4); int k1 = par1World.getBlockId(par2 + 1, par3, par4); byte b0 = 3; if (Bl... | /**
* sets Dispenser block direction so that the front faces an non-opaque block; chooses west to be direction if all
* surrounding blocks are opaque.
*/ | sets Dispenser block direction so that the front faces an non-opaque block; chooses west to be direction if all surrounding blocks are opaque | setDispenserDefaultDirection | {
"repo_name": "HATB0T/RuneCraftery",
"path": "forge/mcp/src/minecraft/net/minecraft/block/BlockDispenser.java",
"license": "lgpl-3.0",
"size": 12172
} | [
"net.minecraft.world.World"
] | import net.minecraft.world.World; | import net.minecraft.world.*; | [
"net.minecraft.world"
] | net.minecraft.world; | 229,090 |
private Callable<Void> loadCacheFull(EntryMapping m, IgniteBiInClosure<K, V> clo) {
return loadCacheRange(m, clo, null, null);
} | Callable<Void> function(EntryMapping m, IgniteBiInClosure<K, V> clo) { return loadCacheRange(m, clo, null, null); } | /**
* Construct load cache in one select.
*
* @param m Type mapping description.
* @param clo Closure for loaded values.
* @return Callable for pool submit.
*/ | Construct load cache in one select | loadCacheFull | {
"repo_name": "tkpanther/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheAbstractJdbcStore.java",
"license": "apache-2.0",
"size": 67455
} | [
"java.util.concurrent.Callable",
"org.apache.ignite.lang.IgniteBiInClosure"
] | import java.util.concurrent.Callable; import org.apache.ignite.lang.IgniteBiInClosure; | import java.util.concurrent.*; import org.apache.ignite.lang.*; | [
"java.util",
"org.apache.ignite"
] | java.util; org.apache.ignite; | 2,463,103 |
public void onScrollUp(View view) {
if (!checkReady()) {
return;
}
changeCamera(CameraUpdateFactory.scrollBy(0, -SCROLL_BY_PX));
} | void function(View view) { if (!checkReady()) { return; } changeCamera(CameraUpdateFactory.scrollBy(0, -SCROLL_BY_PX)); } | /**
* Called when the up arrow button is clicked. The causes the camera to move up.
*/ | Called when the up arrow button is clicked. The causes the camera to move up | onScrollUp | {
"repo_name": "miikkajs/Greminder",
"path": "externals/google_play_services/samples/maps/src/com/example/mapdemo/CameraDemoActivity.java",
"license": "gpl-3.0",
"size": 7612
} | [
"android.view.View",
"com.google.android.gms.maps.CameraUpdateFactory"
] | import android.view.View; import com.google.android.gms.maps.CameraUpdateFactory; | import android.view.*; import com.google.android.gms.maps.*; | [
"android.view",
"com.google.android"
] | android.view; com.google.android; | 451,688 |
public void reset(ActionMapping mapping, HttpServletRequest request) {
name=""; description="";
op=null; uniqueId=null;
params = new Hashtable();
useDefaults = new Hashtable();
for (Iterator i=(new SolverParameterDefDAO()).findAll().iterator();i.hasNext();) {
SolverParameterDef def = (SolverParameterDef... | void function(ActionMapping mapping, HttpServletRequest request) { name=STRSTRbooleanSTRfalseSTR"); useDefaults.put(def.getUniqueId(),Boolean.FALSE); } } | /**
* Method reset
* @param mapping
* @param request
*/ | Method reset | reset | {
"repo_name": "UniTime/unitime",
"path": "JavaSource/org/unitime/timetable/form/SolverSettingsForm.java",
"license": "apache-2.0",
"size": 6666
} | [
"javax.servlet.http.HttpServletRequest",
"org.apache.struts.action.ActionMapping"
] | import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionMapping; | import javax.servlet.http.*; import org.apache.struts.action.*; | [
"javax.servlet",
"org.apache.struts"
] | javax.servlet; org.apache.struts; | 2,231,649 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<Void>> deleteLinkedResourcesWithResponseAsync(
String userId,
String todoTaskListId,
String todoTaskId,
String linkedResourceId,
String ifMatch,
Context context) {
if (this.client.getEndpoin... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Void>> function( String userId, String todoTaskListId, String todoTaskId, String linkedResourceId, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (userId == null) { return... | /**
* Delete navigation property linkedResources for users.
*
* @param userId key: id of user.
* @param todoTaskListId key: id of todoTaskList.
* @param todoTaskId key: id of todoTask.
* @param linkedResourceId key: id of linkedResource.
* @param ifMatch ETag.
* @param context Th... | Delete navigation property linkedResources for users | deleteLinkedResourcesWithResponseAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/implementation/UsersTodoListsTasksClientImpl.java",
"license": "mit",
"size": 117318
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.Context"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 252,153 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.