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
@Override public Uri insert(Uri uri, ContentValues initialValues) { if (database == null || !database.isOpen()) database = databaseHelper.getWritableDatabase(); ContentValues values = (initialValues != null) ? new ContentValues( initialValues) : new ContentValues(); switch (sUriMatcher.match(uri)) { ...
Uri function(Uri uri, ContentValues initialValues) { if (database == null !database.isOpen()) database = databaseHelper.getWritableDatabase(); ContentValues values = (initialValues != null) ? new ContentValues( initialValues) : new ContentValues(); switch (sUriMatcher.match(uri)) { case BT_DEV: long rowId = database.in...
/** * Insert bluetooth entry to the database */
Insert bluetooth entry to the database
insert
{ "repo_name": "EEXCESS/android-app", "path": "Frameworks/aware_framework_v2/src/com/aware/providers/Bluetooth_Provider.java", "license": "mit", "size": 10558 }
[ "android.content.ContentUris", "android.content.ContentValues", "android.database.SQLException", "android.net.Uri" ]
import android.content.ContentUris; import android.content.ContentValues; import android.database.SQLException; import android.net.Uri;
import android.content.*; import android.database.*; import android.net.*;
[ "android.content", "android.database", "android.net" ]
android.content; android.database; android.net;
2,712,267
public static void main( String[] args ) { try { showPleaseWait( ); new FreeGuide( args ); } catch( Exception ex ) { log.log( Level.SEVERE, "Error in main class", ex ); System.exit( 2 ); } }
static void function( String[] args ) { try { showPleaseWait( ); new FreeGuide( args ); } catch( Exception ex ) { log.log( Level.SEVERE, STR, ex ); System.exit( 2 ); } }
/** * The method called when FreeGuide is run by startup. * * @param args the command line arguments */
The method called when FreeGuide is run by startup
main
{ "repo_name": "andybalaam/freeguide", "path": "src/freeguide/plugins/program/freeguide/FreeGuide.java", "license": "gpl-2.0", "size": 16296 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
1,138,916
void doNext() { LOGD(TAG, "Proceeding to next activity"); Intent intent = new Intent(mActivity, ExploreIOActivity.class); startActivity(intent); mActivity.finish(); }
void doNext() { LOGD(TAG, STR); Intent intent = new Intent(mActivity, ExploreIOActivity.class); startActivity(intent); mActivity.finish(); }
/** * Proceed to the next activity. */
Proceed to the next activity
doNext
{ "repo_name": "xunboo/JJCamera", "path": "android/src/main/java/com/jjcamera/apps/iosched/welcome/WelcomeFragment.java", "license": "apache-2.0", "size": 6837 }
[ "android.content.Intent", "com.jjcamera.apps.iosched.explore.ExploreIOActivity" ]
import android.content.Intent; import com.jjcamera.apps.iosched.explore.ExploreIOActivity;
import android.content.*; import com.jjcamera.apps.iosched.explore.*;
[ "android.content", "com.jjcamera.apps" ]
android.content; com.jjcamera.apps;
138,799
@Test public void testBadOverrideFromObjectJ5Compat() throws Exception { DefaultConfiguration checkConfig = createCheckConfig(MissingOverrideCheck.class); checkConfig.addAttribute("javaFiveCompatibility", "true"); final String[] expected = { "8: Must include @java.lang.O...
void function() throws Exception { DefaultConfiguration checkConfig = createCheckConfig(MissingOverrideCheck.class); checkConfig.addAttribute(STR, "true"); final String[] expected = { STR, STR, STR, STR, }; verify(checkConfig, getPath(STR + File.separator + STR), expected); }
/** * This tests that classes not extending anything explicitly will be correctly * flagged for only including the inheritDoc tag even in Java 5 compatibility mode. * @throws Exception */
This tests that classes not extending anything explicitly will be correctly flagged for only including the inheritDoc tag even in Java 5 compatibility mode
testBadOverrideFromObjectJ5Compat
{ "repo_name": "lhanson/checkstyle", "path": "src/tests/com/puppycrawl/tools/checkstyle/checks/annotation/MissingOverrideCheckTest.java", "license": "lgpl-2.1", "size": 10750 }
[ "com.puppycrawl.tools.checkstyle.DefaultConfiguration", "java.io.File" ]
import com.puppycrawl.tools.checkstyle.DefaultConfiguration; import java.io.File;
import com.puppycrawl.tools.checkstyle.*; import java.io.*;
[ "com.puppycrawl.tools", "java.io" ]
com.puppycrawl.tools; java.io;
908,207
public int showCancelableIntent(Intent intent, IntentCallback callback, Integer errorId) { Log.d(TAG, "Can't show intent as context is not an Activity: " + intent); return START_INTENT_FAILURE; }
int function(Intent intent, IntentCallback callback, Integer errorId) { Log.d(TAG, STR + intent); return START_INTENT_FAILURE; }
/** * Shows an intent that could be canceled and returns the results to the callback object. * @param intent The intent that needs to be shown. * @param callback The object that will receive the results for the intent. * @param errorId The ID of error string to be shown if activity is paused b...
Shows an intent that could be canceled and returns the results to the callback object
showCancelableIntent
{ "repo_name": "endlessm/chromium-browser", "path": "ui/android/java/src/org/chromium/ui/base/WindowAndroid.java", "license": "bsd-3-clause", "size": 40520 }
[ "android.content.Intent", "org.chromium.base.Log" ]
import android.content.Intent; import org.chromium.base.Log;
import android.content.*; import org.chromium.base.*;
[ "android.content", "org.chromium.base" ]
android.content; org.chromium.base;
1,630,085
private void processBgpNotification(ChannelHandlerContext ctx, ChannelBuffer message) { byte[] data; message.readByte(); //read error code message.readByte(); // read error sub code if (message.readableBytes() > 0) { data = new byte[me...
void function(ChannelHandlerContext ctx, ChannelBuffer message) { byte[] data; message.readByte(); message.readByte(); if (message.readableBytes() > 0) { data = new byte[message.readableBytes()]; message.readBytes(data, 0, message.readableBytes()); } receivedNotificationMessageLatch.countDown(); }
/** * Processes BGP notification message. * * @param ctx Channel handler context * @param message notification message */
Processes BGP notification message
processBgpNotification
{ "repo_name": "sdnwiselab/onos", "path": "protocols/bgp/ctl/src/test/java/org/onosproject/bgp/BgpPeerFrameDecoderTest.java", "license": "apache-2.0", "size": 5676 }
[ "org.jboss.netty.buffer.ChannelBuffer", "org.jboss.netty.channel.ChannelHandlerContext" ]
import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.buffer.*; import org.jboss.netty.channel.*;
[ "org.jboss.netty" ]
org.jboss.netty;
1,146,983
public void fillLegacyFieldsIfRequired(DataChunk2 dataChunk, byte[] result) { if (null != indexStorage) { SortState sort = (indexStorage.getRowIdPageLengthInBytes() > 0) ? SortState.SORT_EXPLICIT : SortState.SORT_NATIVE; dataChunk.setSort_state(sort); if (indexStorage.getRowI...
void function(DataChunk2 dataChunk, byte[] result) { if (null != indexStorage) { SortState sort = (indexStorage.getRowIdPageLengthInBytes() > 0) ? SortState.SORT_EXPLICIT : SortState.SORT_NATIVE; dataChunk.setSort_state(sort); if (indexStorage.getRowIdPageLengthInBytes() > 0) { int rowIdPageLength = CarbonCommonConstan...
/** * Fill legacy fields if required * * @param dataChunk * @param result */
Fill legacy fields if required
fillLegacyFieldsIfRequired
{ "repo_name": "jackylk/incubator-carbondata", "path": "core/src/main/java/org/apache/carbondata/core/datastore/page/encoding/adaptive/AdaptiveCodec.java", "license": "apache-2.0", "size": 9252 }
[ "org.apache.carbondata.core.constants.CarbonCommonConstants", "org.apache.carbondata.format.DataChunk2", "org.apache.carbondata.format.SortState" ]
import org.apache.carbondata.core.constants.CarbonCommonConstants; import org.apache.carbondata.format.DataChunk2; import org.apache.carbondata.format.SortState;
import org.apache.carbondata.core.constants.*; import org.apache.carbondata.format.*;
[ "org.apache.carbondata" ]
org.apache.carbondata;
2,679,853
List<Long> teLinkIds();
List<Long> teLinkIds();
/** * Returns a list of TE link identifiers originating from the node. * * @return a list of TE link ids */
Returns a list of TE link identifiers originating from the node
teLinkIds
{ "repo_name": "kuujo/onos", "path": "apps/tetopology/api/src/main/java/org/onosproject/tetopology/management/api/node/TeNode.java", "license": "apache-2.0", "size": 3508 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,993,802
@NotAuditable String getSiteShortName(NodeRef nodeRef);
String getSiteShortName(NodeRef nodeRef);
/** * This method gets the shortName for the Share Site which contains the given NodeRef. * If the given NodeRef is not contained within a Share Site, then <code>null</code> is returned. * * @param nodeRef the node whose containing site's info is to be found. * @return String site sho...
This method gets the shortName for the Share Site which contains the given NodeRef. If the given NodeRef is not contained within a Share Site, then <code>null</code> is returned
getSiteShortName
{ "repo_name": "Kast0rTr0y/community-edition", "path": "projects/repository/source/java/org/alfresco/service/cmr/site/SiteService.java", "license": "lgpl-3.0", "size": 23601 }
[ "org.alfresco.service.cmr.repository.NodeRef" ]
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.*;
[ "org.alfresco.service" ]
org.alfresco.service;
2,235,879
public static ConfigOption<Integer> fileSystemConnectionLimitOut(String scheme) { return ConfigOptions.key("fs." + scheme + ".limit.output").defaultValue(-1); }
static ConfigOption<Integer> function(String scheme) { return ConfigOptions.key("fs." + scheme + STR).defaultValue(-1); }
/** * The total number of output connections that a file system for the given scheme may open. * Unlimited be default. */
The total number of output connections that a file system for the given scheme may open. Unlimited be default
fileSystemConnectionLimitOut
{ "repo_name": "ueshin/apache-flink", "path": "flink-core/src/main/java/org/apache/flink/configuration/CoreOptions.java", "license": "apache-2.0", "size": 14875 }
[ "org.apache.flink.configuration.ConfigOptions" ]
import org.apache.flink.configuration.ConfigOptions;
import org.apache.flink.configuration.*;
[ "org.apache.flink" ]
org.apache.flink;
1,864,967
private static StatusRuntimeException toStatusRuntimeException(Throwable t) { Throwable cause = checkNotNull(t, "t"); while (cause != null) { // If we have an embedded status, use it and replace the cause if (cause instanceof StatusException) { StatusException se = (StatusException) cause;...
static StatusRuntimeException function(Throwable t) { Throwable cause = checkNotNull(t, "t"); while (cause != null) { if (cause instanceof StatusException) { StatusException se = (StatusException) cause; return new StatusRuntimeException(se.getStatus(), se.getTrailers()); } else if (cause instanceof StatusRuntimeExcept...
/** * Wraps the given {@link Throwable} in a {@link StatusRuntimeException}. If it contains an * embedded {@link StatusException} or {@link StatusRuntimeException}, the returned exception will * contain the embedded trailers and status, with the given exception as the cause. Otherwise, an * exception will b...
Wraps the given <code>Throwable</code> in a <code>StatusRuntimeException</code>. If it contains an embedded <code>StatusException</code> or <code>StatusRuntimeException</code>, the returned exception will contain the embedded trailers and status, with the given exception as the cause. Otherwise, an exception will be ge...
toStatusRuntimeException
{ "repo_name": "nmittler/grpc-java", "path": "stub/src/main/java/io/grpc/stub/ClientCalls.java", "license": "bsd-3-clause", "size": 20362 }
[ "com.google.common.base.Preconditions", "io.grpc.Status", "io.grpc.StatusException", "io.grpc.StatusRuntimeException" ]
import com.google.common.base.Preconditions; import io.grpc.Status; import io.grpc.StatusException; import io.grpc.StatusRuntimeException;
import com.google.common.base.*; import io.grpc.*;
[ "com.google.common", "io.grpc" ]
com.google.common; io.grpc;
2,137,441
public Object getAdapter(Class required) { if (IContentOutlinePage.class.equals(required)) { if (this.outlinePage == null) { this.outlinePage = new TexOutlinePage(this); this.documentModel.updateOutline(); } return outlinePage; } el...
Object function(Class required) { if (IContentOutlinePage.class.equals(required)) { if (this.outlinePage == null) { this.outlinePage = new TexOutlinePage(this); this.documentModel.updateOutline(); } return outlinePage; } else if (fProjectionSupport != null) { Object adapter = fProjectionSupport.getAdapter(getSourceView...
/** * Used by platform to get the OutlinePage and ProjectionSupport * adapter. * * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) */
Used by platform to get the OutlinePage and ProjectionSupport adapter
getAdapter
{ "repo_name": "rondiplomatico/texlipse", "path": "source/net/sourceforge/texlipse/editor/TexEditor.java", "license": "epl-1.0", "size": 12485 }
[ "net.sourceforge.texlipse.outline.TexOutlinePage", "org.eclipse.ui.views.contentoutline.IContentOutlinePage" ]
import net.sourceforge.texlipse.outline.TexOutlinePage; import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
import net.sourceforge.texlipse.outline.*; import org.eclipse.ui.views.contentoutline.*;
[ "net.sourceforge.texlipse", "org.eclipse.ui" ]
net.sourceforge.texlipse; org.eclipse.ui;
206,208
Logger getLogger( );
Logger getLogger( );
/** * Gets the logger * * @return The logger */
Gets the logger
getLogger
{ "repo_name": "rzara/lutece-core", "path": "src/java/fr/paris/lutece/util/pool/service/ConnectionService.java", "license": "bsd-3-clause", "size": 3409 }
[ "org.apache.log4j.Logger" ]
import org.apache.log4j.Logger;
import org.apache.log4j.*;
[ "org.apache.log4j" ]
org.apache.log4j;
1,781,699
public BigDecimal calculatePerception(final Parameter _parameter, final Calculator_Base _calculator) throws EFapsException { final BigDecimal ret; final BigDecimal cross = _calculator.getCrossPrice(); final PerceptionInfo info = getPercep...
BigDecimal function(final Parameter _parameter, final Calculator_Base _calculator) throws EFapsException { final BigDecimal ret; final BigDecimal cross = _calculator.getCrossPrice(); final PerceptionInfo info = getPerceptionInfo(_parameter, Instance.get(_calculator.getOid())); if (info.isApply()) { Instance currenctCur...
/** * Calculate perception. * * @param _parameter parameter as passed by the eFaps API * @param _calculator Claculator to be used for calculation * @return Perception calculated * @throws EFapsException on error */
Calculate perception
calculatePerception
{ "repo_name": "eFaps/eFapsApp-Sales", "path": "src/main/efaps/ESJP/org/efaps/esjp/sales/Perception_Base.java", "license": "apache-2.0", "size": 12174 }
[ "java.math.BigDecimal", "org.efaps.admin.event.Parameter", "org.efaps.db.Instance", "org.efaps.esjp.erp.Currency", "org.efaps.util.EFapsException" ]
import java.math.BigDecimal; import org.efaps.admin.event.Parameter; import org.efaps.db.Instance; import org.efaps.esjp.erp.Currency; import org.efaps.util.EFapsException;
import java.math.*; import org.efaps.admin.event.*; import org.efaps.db.*; import org.efaps.esjp.erp.*; import org.efaps.util.*;
[ "java.math", "org.efaps.admin", "org.efaps.db", "org.efaps.esjp", "org.efaps.util" ]
java.math; org.efaps.admin; org.efaps.db; org.efaps.esjp; org.efaps.util;
1,595,429
Preconditions.checkNotNull(configuration); return new StringBuilder(baseName).append('-') .append(major) .append('.') .append(minor) .append('.') ...
Preconditions.checkNotNull(configuration); return new StringBuilder(baseName).append('-') .append(major) .append('.') .append(minor) .append('.') .append(revision) .append('-') .append(getDeviceOrientationString(configuration)) .toString(); }
/** * Get formatted keyboard name based on given parameters. * * The main purpose of the formatted name is collecting usage stats. */
Get formatted keyboard name based on given parameters. The main purpose of the formatted name is collecting usage stats
formattedKeyboardName
{ "repo_name": "kbc-developers/android_packages_inputmethods_Mozc", "path": "src/com/google/android/inputmethod/japanese/KeyboardSpecificationName.java", "license": "bsd-3-clause", "size": 3685 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
681,575
public final Iterator<Condition> iterator() { return this.elements.iterator(); }
final Iterator<Condition> function() { return this.elements.iterator(); }
/** * Iterator over the collection of conditions. * * @return the iterator. */
Iterator over the collection of conditions
iterator
{ "repo_name": "asciiCerebrum/neocortexEngine", "path": "src/main/java/org/asciicerebrum/neocortexengine/domain/ruleentities/composition/Conditions.java", "license": "mit", "size": 1944 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,126,893
public void testEnvironment() throws NamingException { DNSContext context = null; Hashtable<String, String> env = new Hashtable<String, String>(); Hashtable<?, ?> env2 = null; // no side effect env.put(DNSContext.TIMEOUT_INITIAL, "2000"); context = (DNSContext)new DN...
void function() throws NamingException { DNSContext context = null; Hashtable<String, String> env = new Hashtable<String, String>(); Hashtable<?, ?> env2 = null; env.put(DNSContext.TIMEOUT_INITIAL, "2000"); context = (DNSContext)new DNSContextFactory().getInitialContext(env); env.put(DNSContext.TIMEOUT_INITIAL, "2001")...
/** * Tests <code>addToEnvironment(), getEnvironment()</code> and * <code>removeFromEnvironment()</code> methods. */
Tests <code>addToEnvironment(), getEnvironment()</code> and <code>removeFromEnvironment()</code> methods
testEnvironment
{ "repo_name": "freeVM/freeVM", "path": "enhanced/java/classlib/modules/jndi/src/test/java/org/apache/harmony/jndi/provider/dns/DNSContextTest.java", "license": "apache-2.0", "size": 10696 }
[ "java.util.Hashtable", "javax.naming.NamingException" ]
import java.util.Hashtable; import javax.naming.NamingException;
import java.util.*; import javax.naming.*;
[ "java.util", "javax.naming" ]
java.util; javax.naming;
2,055,949
public synchronized ViewBlock getBlock(Long id) { ViewBlock b = allBlocks.get(id); if (b == null) { b = new ViewBlock(id); allBlocks.put(id, b); } return b; }
synchronized ViewBlock function(Long id) { ViewBlock b = allBlocks.get(id); if (b == null) { b = new ViewBlock(id); allBlocks.put(id, b); } return b; }
/** * get block with given ID, or create it if it does not yet exist. * * @param id * block id * @return {@link ViewBlock} that has given id. */
get block with given ID, or create it if it does not yet exist
getBlock
{ "repo_name": "eishub/BW4T", "path": "bw4t-client/src/main/java/nl/tudelft/bw4t/client/controller/ClientMapController.java", "license": "gpl-3.0", "size": 14581 }
[ "nl.tudelft.bw4t.map.view.ViewBlock" ]
import nl.tudelft.bw4t.map.view.ViewBlock;
import nl.tudelft.bw4t.map.view.*;
[ "nl.tudelft.bw4t" ]
nl.tudelft.bw4t;
2,240,540
return new JUnit4TestAdapter(SCMFirstInsertUnitTests.class); }
return new JUnit4TestAdapter(SCMFirstInsertUnitTests.class); }
/** * <p> * Adapter for earlier versions of JUnit. * </p> * * @return a test suite. */
Adapter for earlier versions of JUnit.
suite
{ "repo_name": "NASA-Tournament-Lab/CoECI-OPM-Service-Credit-Redeposit-Deposit-Application", "path": "Code/SCRD_BRE/src/java/tests/gov/opm/scrd/entities/application/SCMFirstInsertUnitTests.java", "license": "apache-2.0", "size": 3855 }
[ "junit.framework.JUnit4TestAdapter" ]
import junit.framework.JUnit4TestAdapter;
import junit.framework.*;
[ "junit.framework" ]
junit.framework;
2,733,016
void authenticate() throws UnsupportedEncodingException, WWException;
void authenticate() throws UnsupportedEncodingException, WWException;
/** * Attempt authentication of the WWClient * * @throws UnsupportedEncodingException * Authorization header could not be constructed * @throws WWException * Some other error occurred during authentication * * @since 0.5.0 */
Attempt authentication of the WWClient
authenticate
{ "repo_name": "OpenCode4Workspace/Watson-Work-Services-Java-SDK", "path": "wws-api/src/main/java/org/opencode4workspace/IWWClient.java", "license": "apache-2.0", "size": 3220 }
[ "java.io.UnsupportedEncodingException" ]
import java.io.UnsupportedEncodingException;
import java.io.*;
[ "java.io" ]
java.io;
903,608
protected boolean confirmNotToExceedOverride(PurchaseOrderDocument purchaseOrderDocument) { // If the total exceeds the limit, ask for confirmation. if (!validateTotalDollarAmountIsLessThanPurchaseOrderTotalLimit(purchaseOrderDocument)) { String questionText = SpringContext.getBean(Conf...
boolean function(PurchaseOrderDocument purchaseOrderDocument) { if (!validateTotalDollarAmountIsLessThanPurchaseOrderTotalLimit(purchaseOrderDocument)) { String questionText = SpringContext.getBean(ConfigurationService.class).getPropertyValueAsString(PurapKeyConstants.PURCHASE_ORDER_QUESTION_OVERRIDE_NOT_TO_EXCEED); bo...
/** * Checks whether the 'Not-to-exceed' amount has been exceeded by the purchase order total dollar limit. If so, it * prompts the user for confirmation. * * @param purchaseOrderDocument The current PurchaseOrderDocument * @return True if the 'Not-to-exceed' amount is to be overridden or if th...
Checks whether the 'Not-to-exceed' amount has been exceeded by the purchase order total dollar limit. If so, it prompts the user for confirmation
confirmNotToExceedOverride
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-purap/src/main/java/org/kuali/kfs/module/purap/document/validation/impl/PurchaseOrderDocumentPreRules.java", "license": "agpl-3.0", "size": 8166 }
[ "org.apache.commons.lang.StringUtils", "org.kuali.kfs.module.purap.PurapConstants", "org.kuali.kfs.module.purap.PurapKeyConstants", "org.kuali.kfs.module.purap.document.PurchaseOrderDocument", "org.kuali.kfs.sys.KFSConstants", "org.kuali.kfs.sys.context.SpringContext", "org.kuali.rice.core.api.config.pr...
import org.apache.commons.lang.StringUtils; import org.kuali.kfs.module.purap.PurapConstants; import org.kuali.kfs.module.purap.PurapKeyConstants; import org.kuali.kfs.module.purap.document.PurchaseOrderDocument; import org.kuali.kfs.sys.KFSConstants; import org.kuali.kfs.sys.context.SpringContext; import org.kuali.ric...
import org.apache.commons.lang.*; import org.kuali.kfs.module.purap.*; import org.kuali.kfs.module.purap.document.*; import org.kuali.kfs.sys.*; import org.kuali.kfs.sys.context.*; import org.kuali.rice.core.api.config.property.*;
[ "org.apache.commons", "org.kuali.kfs", "org.kuali.rice" ]
org.apache.commons; org.kuali.kfs; org.kuali.rice;
2,475,586
private Set<IResource> getLinkedResourcesOfContainer(final IContainer container, final String workingCopyRoot) { final Set<IResource> linkedResources = new HashSet<IResource>(); try { for (IResource member : container.members()) { final String memberWorkingCopyRoot = this.getWorkingC...
Set<IResource> function(final IContainer container, final String workingCopyRoot) { final Set<IResource> linkedResources = new HashSet<IResource>(); try { for (IResource member : container.members()) { final String memberWorkingCopyRoot = this.getWorkingCopyRoot(member.getLocation()); if (member.isLinked() && (workingC...
/** * Gets all linked resources in the specified container which have the same * working copy root. * * @param container * The container which is used for searching for linked resources. * @param workingCopyRoot * The root path to the working copy folder of the container. * @r...
Gets all linked resources in the specified container which have the same working copy root
getLinkedResourcesOfContainer
{ "repo_name": "ContextQuickie/ContextQuickie", "path": "Plugin/src/contextquickie/tortoise/AbstractTortoiseMenuEntry.java", "license": "gpl-3.0", "size": 16984 }
[ "java.util.HashSet", "java.util.Set", "org.eclipse.core.resources.IContainer", "org.eclipse.core.resources.IResource", "org.eclipse.core.runtime.CoreException", "org.eclipse.core.runtime.IAdaptable" ]
import java.util.HashSet; import java.util.Set; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IAdaptable;
import java.util.*; import org.eclipse.core.resources.*; import org.eclipse.core.runtime.*;
[ "java.util", "org.eclipse.core" ]
java.util; org.eclipse.core;
960,024
public Collection<Variable> getVariables() { return variables; }
Collection<Variable> function() { return variables; }
/** * Returns all used variables * * @return used variables */
Returns all used variables
getVariables
{ "repo_name": "hneemann/Digital", "path": "src/main/java/de/neemann/digital/analyse/expression/VariableVisitor.java", "license": "gpl-3.0", "size": 915 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,717,403
@Test public void testSearchJsonInvalidNoValidatorsSpecified() throws Exception { Patient patient = new Patient(); patient.addIdentifier().setValue("002"); patient.setGender(AdministrativeGender.MALE); patient.addContact().addRelationship().setText("FOO"); myReturnResource = patient; HttpGet httpPost =...
void function() throws Exception { Patient patient = new Patient(); patient.addIdentifier().setValue("002"); patient.setGender(AdministrativeGender.MALE); patient.addContact().addRelationship().setText("FOO"); myReturnResource = patient; HttpGet httpPost = new HttpGet(STRResponse was:\n{}STRResponse was:\n{}STR<severit...
/** * Ignored until #264 is fixed */
Ignored until #264 is fixed
testSearchJsonInvalidNoValidatorsSpecified
{ "repo_name": "jamesagnew/hapi-fhir", "path": "hapi-fhir-validation/src/test/java/ca/uhn/fhir/rest/server/ResponseValidatingInterceptorDstu3Test.java", "license": "apache-2.0", "size": 20193 }
[ "org.apache.http.client.methods.HttpGet", "org.hl7.fhir.dstu3.model.Enumerations", "org.hl7.fhir.dstu3.model.Patient" ]
import org.apache.http.client.methods.HttpGet; import org.hl7.fhir.dstu3.model.Enumerations; import org.hl7.fhir.dstu3.model.Patient;
import org.apache.http.client.methods.*; import org.hl7.fhir.dstu3.model.*;
[ "org.apache.http", "org.hl7.fhir" ]
org.apache.http; org.hl7.fhir;
2,888,424
public void accept(ExpressionNodeVisitor visitor) { visitor.visit(this); for (Term t : terms) t.expression.accept(visitor); }
void function(ExpressionNodeVisitor visitor) { visitor.visit(this); for (Term t : terms) t.expression.accept(visitor); }
/** * Implementation of the visitor design pattern. * * Calls visit on the visitor and then passes the visitor on to the accept method of all the terms in the product. * * @param visitor * the visitor */
Implementation of the visitor design pattern. Calls visit on the visitor and then passes the visitor on to the accept method of all the terms in the product
accept
{ "repo_name": "syncrase/mavenTest", "path": "src/main/app/cogpar/expressionnodes/implementations/MultiplicationExpressionNode.java", "license": "cc0-1.0", "size": 3092 }
[ "app.cogpar.expressionnodes.AbsSequenceExpressionNode", "app.cogpar.expressionnodes.visitor.ExpressionNodeVisitor" ]
import app.cogpar.expressionnodes.AbsSequenceExpressionNode; import app.cogpar.expressionnodes.visitor.ExpressionNodeVisitor;
import app.cogpar.expressionnodes.*; import app.cogpar.expressionnodes.visitor.*;
[ "app.cogpar.expressionnodes" ]
app.cogpar.expressionnodes;
1,378,854
protected void waitForBackup(ClientSessionFactoryInternal sessionFactory, int seconds) throws Exception { final ActiveMQServerImpl actualServer = (ActiveMQServerImpl) backupServer.getServer(); if (actualServer.getHAPolicy().isSharedStore()) { waitForServerToStart(actualServer); } else { ...
void function(ClientSessionFactoryInternal sessionFactory, int seconds) throws Exception { final ActiveMQServerImpl actualServer = (ActiveMQServerImpl) backupServer.getServer(); if (actualServer.getHAPolicy().isSharedStore()) { waitForServerToStart(actualServer); } else { waitForRemoteBackup(sessionFactory, seconds, tr...
/** * Waits for backup to be in the "started" state and to finish synchronization with its live. * * @param sessionFactory * @param seconds * @throws Exception */
Waits for backup to be in the "started" state and to finish synchronization with its live
waitForBackup
{ "repo_name": "kjniemi/activemq-artemis", "path": "tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTestBase.java", "license": "apache-2.0", "size": 14935 }
[ "org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryInternal", "org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl" ]
import org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryInternal; import org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl;
import org.apache.activemq.artemis.core.client.impl.*; import org.apache.activemq.artemis.core.server.impl.*;
[ "org.apache.activemq" ]
org.apache.activemq;
2,041,440
public List<String> getDefaultPermissions() { return super.getStringList("defaultPermissions"); }
List<String> function() { return super.getStringList(STR); }
/** * Return default permission list. These permissions will be true for all * players, regardless of what permission system is in use (even if none at * all). Note this only applies to HSP permission checks. * * @return */
Return default permission list. These permissions will be true for all players, regardless of what permission system is in use (even if none at all). Note this only applies to HSP permission checks
getDefaultPermissions
{ "repo_name": "andune/HomeSpawnPlus", "path": "core/src/main/java/com/andune/minecraft/hsp/config/ConfigCore.java", "license": "gpl-3.0", "size": 13841 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,810,134
@Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object.
collectNewChildDescriptors
{ "repo_name": "ObeoNetwork/EAST-ADL-Designer", "path": "plugins/org.obeonetwork.dsl.eastadl.edit/src/org/obeonetwork/dsl/east_adl/structure/platform_model/provider/MWElementarySoftwareFunctionItemProvider.java", "license": "epl-1.0", "size": 5308 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,875,876
protected void addOrientationPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_OrientableCurveType_orientation_feature"), getString("_UI_Prope...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), GmlPackage.eINSTANCE.getOrientableCurveType_Orientation(), true, false, false, ItemPropertyDescri...
/** * This adds a property descriptor for the Orientation feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Orientation feature.
addOrientationPropertyDescriptor
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/OrientableCurveTypeItemProvider.java", "license": "apache-2.0", "size": 7548 }
[ "net.opengis.gml.GmlPackage", "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor" ]
import net.opengis.gml.GmlPackage; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import net.opengis.gml.*; import org.eclipse.emf.edit.provider.*;
[ "net.opengis.gml", "org.eclipse.emf" ]
net.opengis.gml; org.eclipse.emf;
2,861,084
@Override @Transactional public void updateDelegationRole() { final RoleService roleManagementService = KimApiServiceLocator.getRoleService(); final String roleId = roleManagementService.getRoleIdByNamespaceCodeAndName(KFSConstants.ParameterNamespaces.KFS, KFSConstants.SysKimApiConstants.FIS...
void function() { final RoleService roleManagementService = KimApiServiceLocator.getRoleService(); final String roleId = roleManagementService.getRoleIdByNamespaceCodeAndName(KFSConstants.ParameterNamespaces.KFS, KFSConstants.SysKimApiConstants.FISCAL_OFFICER_KIM_ROLE_NAME); if (!StringUtils.isBlank(roleId)) { List<Rol...
/** * Updates the role that this delegate is part of, to account for the changes in this delegate */
Updates the role that this delegate is part of, to account for the changes in this delegate
updateDelegationRole
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/coa/service/impl/AccountDelegateServiceImpl.java", "license": "apache-2.0", "size": 10198 }
[ "java.util.List", "org.apache.commons.lang.StringUtils", "org.kuali.kfs.sys.KFSConstants", "org.kuali.rice.kew.service.KEWServiceLocator", "org.kuali.rice.kim.api.role.RoleResponsibility", "org.kuali.rice.kim.api.role.RoleService", "org.kuali.rice.kim.api.services.KimApiServiceLocator" ]
import java.util.List; import org.apache.commons.lang.StringUtils; import org.kuali.kfs.sys.KFSConstants; import org.kuali.rice.kew.service.KEWServiceLocator; import org.kuali.rice.kim.api.role.RoleResponsibility; import org.kuali.rice.kim.api.role.RoleService; import org.kuali.rice.kim.api.services.KimApiServiceLocato...
import java.util.*; import org.apache.commons.lang.*; import org.kuali.kfs.sys.*; import org.kuali.rice.kew.service.*; import org.kuali.rice.kim.api.role.*; import org.kuali.rice.kim.api.services.*;
[ "java.util", "org.apache.commons", "org.kuali.kfs", "org.kuali.rice" ]
java.util; org.apache.commons; org.kuali.kfs; org.kuali.rice;
1,094,101
public XSObjectList getParticles() { return new XSObjectListImpl(fParticles, fParticleCount); }
XSObjectList function() { return new XSObjectListImpl(fParticles, fParticleCount); }
/** * {particles} A list of particles */
{particles} A list of particles
getParticles
{ "repo_name": "jimma/xerces", "path": "src/org/apache/xerces/impl/xs/XSModelGroupImpl.java", "license": "apache-2.0", "size": 7920 }
[ "org.apache.xerces.impl.xs.util.XSObjectListImpl", "org.apache.xerces.xs.XSObjectList" ]
import org.apache.xerces.impl.xs.util.XSObjectListImpl; import org.apache.xerces.xs.XSObjectList;
import org.apache.xerces.impl.xs.util.*; import org.apache.xerces.xs.*;
[ "org.apache.xerces" ]
org.apache.xerces;
1,824,254
public Stream<ConfigKey> allKeysRecursively() { Stream<ConfigKey> str = Stream.empty(); if (this.value != null) { str = Stream.of(ConfigKey.EMPTY); } str = Stream.concat(str, this.children.entrySet() .stream() ...
Stream<ConfigKey> function() { Stream<ConfigKey> str = Stream.empty(); if (this.value != null) { str = Stream.of(ConfigKey.EMPTY); } str = Stream.concat(str, this.children.entrySet() .stream() .flatMap((kv) -> { ConfigKey key = kv.getKey(); Object value = kv.getValue(); if (value instanceof ConfigNode) { return ((Confi...
/** * Retrieve all descendent keys. * * @return A stream of all descendent keys. */
Retrieve all descendent keys
allKeysRecursively
{ "repo_name": "nelsongraca/wildfly-swarm", "path": "core/container/src/main/java/org/wildfly/swarm/container/config/ConfigNode.java", "license": "apache-2.0", "size": 7075 }
[ "java.util.stream.Stream", "org.wildfly.swarm.spi.api.config.ConfigKey" ]
import java.util.stream.Stream; import org.wildfly.swarm.spi.api.config.ConfigKey;
import java.util.stream.*; import org.wildfly.swarm.spi.api.config.*;
[ "java.util", "org.wildfly.swarm" ]
java.util; org.wildfly.swarm;
902,012
public List<PurchaseOrderViewGroup> getGroupedRelatedPurchaseOrderViews() { if (groupedRelatedPurchaseOrderViews != null) { return groupedRelatedPurchaseOrderViews; } groupedRelatedPurchaseOrderViews = new ArrayList<PurchaseOrderViewGroup>(); PurchaseOrderViewGr...
List<PurchaseOrderViewGroup> function() { if (groupedRelatedPurchaseOrderViews != null) { return groupedRelatedPurchaseOrderViews; } groupedRelatedPurchaseOrderViews = new ArrayList<PurchaseOrderViewGroup>(); PurchaseOrderViewGroup group = new PurchaseOrderViewGroup(); int previousPOID = 0; relatedPurchaseOrderViews = ...
/** * Groups related PurchaseOrderViews by POIDs descending, and within each group order POs by document numbers descending; * thus groups of newer POIDs will be in the front, and within each group, more current POs will be in the front. * * @return A list of <PurchaseOrderViewGroup> with newer POs ...
Groups related PurchaseOrderViews by POIDs descending, and within each group order POs by document numbers descending; thus groups of newer POIDs will be in the front, and within each group, more current POs will be in the front
getGroupedRelatedPurchaseOrderViews
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-purap/src/main/java/org/kuali/kfs/module/purap/util/PurApRelatedViews.java", "license": "agpl-3.0", "size": 19096 }
[ "java.util.ArrayList", "java.util.List", "org.kuali.kfs.module.purap.businessobject.PurchaseOrderView" ]
import java.util.ArrayList; import java.util.List; import org.kuali.kfs.module.purap.businessobject.PurchaseOrderView;
import java.util.*; import org.kuali.kfs.module.purap.businessobject.*;
[ "java.util", "org.kuali.kfs" ]
java.util; org.kuali.kfs;
1,148,140
RouteTableListResponse list(String resourceGroupName) throws IOException, ServiceException;
RouteTableListResponse list(String resourceGroupName) throws IOException, ServiceException;
/** * The list RouteTables returns all route tables in a resource group * * @param resourceGroupName Required. The name of the resource group. * @throws IOException Signals that an I/O exception of some sort has * occurred. This class is the general class of exceptions produced by * failed or in...
The list RouteTables returns all route tables in a resource group
list
{ "repo_name": "flydream2046/azure-sdk-for-java", "path": "resource-management/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/RouteTableOperations.java", "license": "apache-2.0", "size": 11989 }
[ "com.microsoft.azure.management.network.models.RouteTableListResponse", "com.microsoft.windowsazure.exception.ServiceException", "java.io.IOException" ]
import com.microsoft.azure.management.network.models.RouteTableListResponse; import com.microsoft.windowsazure.exception.ServiceException; import java.io.IOException;
import com.microsoft.azure.management.network.models.*; import com.microsoft.windowsazure.exception.*; import java.io.*;
[ "com.microsoft.azure", "com.microsoft.windowsazure", "java.io" ]
com.microsoft.azure; com.microsoft.windowsazure; java.io;
445,368
@Test public void setPermissionsForRoleTest() throws ApiException { String role = null; List<String> permissionsList = null; RoleResource response = api.setPermissionsForRole(role, permissionsList); // TODO: test validations }
void function() throws ApiException { String role = null; List<String> permissionsList = null; RoleResource response = api.setPermissionsForRole(role, permissionsList); }
/** * Set permissions for a role * * &lt;b&gt;Permissions Needed:&lt;/b&gt; ROLES_ADMIN * * @throws ApiException * if the Api call fails */
Set permissions for a role &lt;b&gt;Permissions Needed:&lt;/b&gt; ROLES_ADMIN
setPermissionsForRoleTest
{ "repo_name": "knetikmedia/knetikcloud-java-client", "path": "src/test/java/com/knetikcloud/api/AuthRolesApiTest.java", "license": "apache-2.0", "size": 5252 }
[ "com.knetikcloud.client.ApiException", "com.knetikcloud.model.RoleResource", "java.util.List" ]
import com.knetikcloud.client.ApiException; import com.knetikcloud.model.RoleResource; import java.util.List;
import com.knetikcloud.client.*; import com.knetikcloud.model.*; import java.util.*;
[ "com.knetikcloud.client", "com.knetikcloud.model", "java.util" ]
com.knetikcloud.client; com.knetikcloud.model; java.util;
1,908,909
@Before public void tearUp() throws ServiceStartException { cacheService.start(); }
void function() throws ServiceStartException { cacheService.start(); }
/** * Prepation for tests * * @throws ServiceStartException */
Prepation for tests
tearUp
{ "repo_name": "l2jserver2/l2jserver2", "path": "l2jserver2-common/src/test/java/com/l2jserver/service/cache/SimpleCacheServiceTest.java", "license": "gpl-3.0", "size": 3533 }
[ "com.l2jserver.service.ServiceStartException" ]
import com.l2jserver.service.ServiceStartException;
import com.l2jserver.service.*;
[ "com.l2jserver.service" ]
com.l2jserver.service;
458,790
public void getStaffToRun(WorkerManagerStatus status, boolean recovery) throws IOException { this.wms = status; LOG.info("Recovery: getStaffToRun" + " " + recovery); activeStaffs.put(sid, status.getWorkerManagerName()); }
void function(WorkerManagerStatus status, boolean recovery) throws IOException { this.wms = status; LOG.info(STR + " " + recovery); activeStaffs.put(sid, status.getWorkerManagerName()); }
/** * Get a staff to run BSP job. * @param status worker manager status * @param recovery if the staff is a recovery staff * @throws IOException */
Get a staff to run BSP job
getStaffToRun
{ "repo_name": "LiuJianan/Graduate-Graph", "path": "src/java/com/chinamobile/bcbsp/bspstaff/StaffInProgress.java", "license": "apache-2.0", "size": 11989 }
[ "com.chinamobile.bcbsp.workermanager.WorkerManagerStatus", "java.io.IOException" ]
import com.chinamobile.bcbsp.workermanager.WorkerManagerStatus; import java.io.IOException;
import com.chinamobile.bcbsp.workermanager.*; import java.io.*;
[ "com.chinamobile.bcbsp", "java.io" ]
com.chinamobile.bcbsp; java.io;
230,306
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Boolean> checkExistenceAsync(String resourceGroupName);
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Boolean> checkExistenceAsync(String resourceGroupName);
/** * Checks whether a resource group exists. * * @param resourceGroupName The name of the resource group to check. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown...
Checks whether a resource group exists
checkExistenceAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/ResourceGroupsClient.java", "license": "mit", "size": 32350 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.*;
[ "com.azure.core" ]
com.azure.core;
477,894
private void addBlock(Block block) { blocks.add(block); // block.setTile(this); // level.addSprite(block); }
void function(Block block) { blocks.add(block); }
/** * Adds a new block to this tile. * * @param block * Sprite to be added. */
Adds a new block to this tile
addBlock
{ "repo_name": "vlabatut/totalboumboum", "path": "src/org/totalboumboum/engine/container/tile/Tile.java", "license": "gpl-2.0", "size": 25465 }
[ "org.totalboumboum.engine.content.sprite.block.Block" ]
import org.totalboumboum.engine.content.sprite.block.Block;
import org.totalboumboum.engine.content.sprite.block.*;
[ "org.totalboumboum.engine" ]
org.totalboumboum.engine;
369,913
public static String getOverlayResource(InputStream overlay) { byte[] byteArray; try { byteArray = IOUtils.toByteArray(overlay); } catch (IOException e) { Log.e(SUBSTRATUM_LOG, "Unable to clone InputStream"); return null; } String hex = nu...
static String function(InputStream overlay) { byte[] byteArray; try { byteArray = IOUtils.toByteArray(overlay); } catch (IOException e) { Log.e(SUBSTRATUM_LOG, STR); return null; } String hex = null; try (InputStream clone1 = new ByteArrayInputStream(byteArray); InputStream clone2 = new ByteArrayInputStream(byteArray))...
/** * Parse a specific overlay resource file (.xml) and return the specified value * * @param overlay File to check * @return String of overlay's resource */
Parse a specific overlay resource file (.xml) and return the specified value
getOverlayResource
{ "repo_name": "iskandar1023/substratum", "path": "app/src/main/java/projekt/substratum/common/Packages.java", "license": "gpl-3.0", "size": 35407 }
[ "android.util.Log", "java.io.BufferedReader", "java.io.ByteArrayInputStream", "java.io.IOException", "java.io.InputStream", "java.io.InputStreamReader", "org.apache.commons.io.IOUtils" ]
import android.util.Log; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.commons.io.IOUtils;
import android.util.*; import java.io.*; import org.apache.commons.io.*;
[ "android.util", "java.io", "org.apache.commons" ]
android.util; java.io; org.apache.commons;
1,195,865
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<GeoBackupPolicyInner>> getWithResponseAsync( String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { if (this.client.getEndpoint() == null) { return Mono ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<GeoBackupPolicyInner>> function( String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.ge...
/** * Get the specified SQL pool geo backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param geoBackupPolicyName The name of the geo backup polic...
Get the specified SQL pool geo backup policy
getWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java", "license": "mit", "size": 34949 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyInner", "com.azure.resourcemanager.synapse.models.GeoBackupPolicyName" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyInner; import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.synapse.fluent.models.*; import com.azure.resourcemanager.synapse.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
723,979
public static JSONArtifact parse(InputStream is, boolean order, boolean strict) throws JSONException, NullPointerException { if (is != null) { BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(is, "UTF-8")); } catch (Exc...
static JSONArtifact function(InputStream is, boolean order, boolean strict) throws JSONException, NullPointerException { if (is != null) { BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(is, "UTF-8")); } catch (Exception ex) { JSONException iox = new JSONException(STR); iox.initCau...
/** * Parse a InputStream of JSON text into a JSONArtifact. * Note that the provided InputStream is not closed on completion of read; that is left to the caller. * @param is The input stream to read from. The content is assumed to be UTF-8 encoded and handled as such. * @param order Boolean flag i...
Parse a InputStream of JSON text into a JSONArtifact. Note that the provided InputStream is not closed on completion of read; that is left to the caller
parse
{ "repo_name": "jyeary/Granule", "path": "tag-main/src/main/java/com/granule/json/JSON.java", "license": "apache-2.0", "size": 12717 }
[ "java.io.BufferedReader", "java.io.InputStream", "java.io.InputStreamReader" ]
import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader;
import java.io.*;
[ "java.io" ]
java.io;
612,125
public Properties getConfig() { return this.manager.getConfig(); }
Properties function() { return this.manager.getConfig(); }
/** * Return a <code>Properties</code> object with a representation of the * current config. Depending on how this <code>ReflectionBasedAutoSerializer</code> * was configured, the returned property value will have the correct semantics * but may differ from the the original configuration string. * * ...
Return a <code>Properties</code> object with a representation of the current config. Depending on how this <code>ReflectionBasedAutoSerializer</code> was configured, the returned property value will have the correct semantics but may differ from the the original configuration string
getConfig
{ "repo_name": "sshcherbakov/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/pdx/ReflectionBasedAutoSerializer.java", "license": "apache-2.0", "size": 24506 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
1,523,856
public List<ExperimenterData> activateExperimenters(SecurityContext ctx, AdminObject object) throws DSOutOfServiceException, DSAccessException;
List<ExperimenterData> function(SecurityContext ctx, AdminObject object) throws DSOutOfServiceException, DSAccessException;
/** * Activates or not the specified experimenters. * * @param ctx The security context. * @param object The object to handle. * @return See above * @throws DSOutOfServiceException If the connection is broken, or not logged in * @throws DSAccessException If an error occurred while tr...
Activates or not the specified experimenters
activateExperimenters
{ "repo_name": "knabar/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/AdminService.java", "license": "gpl-2.0", "size": 20920 }
[ "java.util.List", "org.openmicroscopy.shoola.env.data.model.AdminObject" ]
import java.util.List; import org.openmicroscopy.shoola.env.data.model.AdminObject;
import java.util.*; import org.openmicroscopy.shoola.env.data.model.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
2,845,933
protected void serializeElement( Element elem ) throws IOException { Attr attr; NamedNodeMap attrMap; int i; Node child; ElementState state; boolean preserveSpace; String name; String value; ...
void function( Element elem ) throws IOException { Attr attr; NamedNodeMap attrMap; int i; Node child; ElementState state; boolean preserveSpace; String name; String value; String tagName; tagName = elem.getTagName(); state = getElementState(); if ( isDocumentState() ) { if ( ! _started ) startDocument( tagName ); } el...
/** * Called to serialize a DOM element. Equivalent to calling {@link * #startElement}, {@link #endElement} and serializing everything * inbetween, but better optimized. */
Called to serialize a DOM element. Equivalent to calling <code>#startElement</code>, <code>#endElement</code> and serializing everything inbetween, but better optimized
serializeElement
{ "repo_name": "jimma/xerces", "path": "src/org/apache/xml/serialize/HTMLSerializer.java", "license": "apache-2.0", "size": 34659 }
[ "java.io.IOException", "java.util.Locale", "org.w3c.dom.Attr", "org.w3c.dom.Element", "org.w3c.dom.NamedNodeMap", "org.w3c.dom.Node" ]
import java.io.IOException; import java.util.Locale; import org.w3c.dom.Attr; import org.w3c.dom.Element; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node;
import java.io.*; import java.util.*; import org.w3c.dom.*;
[ "java.io", "java.util", "org.w3c.dom" ]
java.io; java.util; org.w3c.dom;
2,804,926
public Split buildModelInstance(@NonNull final Cursor cursor){ long valueNum = cursor.getLong(cursor.getColumnIndexOrThrow(SplitEntry.COLUMN_VALUE_NUM)); long valueDenom = cursor.getLong(cursor.getColumnIndexOrThrow(SplitEntry.COLUMN_VALUE_DENOM)); long quantityNum = cursor.getL...
Split function(@NonNull final Cursor cursor){ long valueNum = cursor.getLong(cursor.getColumnIndexOrThrow(SplitEntry.COLUMN_VALUE_NUM)); long valueDenom = cursor.getLong(cursor.getColumnIndexOrThrow(SplitEntry.COLUMN_VALUE_DENOM)); long quantityNum = cursor.getLong(cursor.getColumnIndexOrThrow(SplitEntry.COLUMN_QUANTIT...
/** * Builds a split instance from the data pointed to by the cursor provided * <p>This method will not move the cursor in any way. So the cursor should already by pointing to the correct entry</p> * @param cursor Cursor pointing to transaction record in database * @return {@link org.gnucash.android...
Builds a split instance from the data pointed to by the cursor provided This method will not move the cursor in any way. So the cursor should already by pointing to the correct entry
buildModelInstance
{ "repo_name": "codinguser/gnucash-android", "path": "app/src/main/java/org/gnucash/android/db/adapter/SplitsDbAdapter.java", "license": "apache-2.0", "size": 21438 }
[ "android.database.Cursor", "android.support.annotation.NonNull", "org.gnucash.android.db.DatabaseSchema", "org.gnucash.android.model.Money", "org.gnucash.android.model.Split", "org.gnucash.android.model.TransactionType", "org.gnucash.android.util.TimestampHelper" ]
import android.database.Cursor; import android.support.annotation.NonNull; import org.gnucash.android.db.DatabaseSchema; import org.gnucash.android.model.Money; import org.gnucash.android.model.Split; import org.gnucash.android.model.TransactionType; import org.gnucash.android.util.TimestampHelper;
import android.database.*; import android.support.annotation.*; import org.gnucash.android.db.*; import org.gnucash.android.model.*; import org.gnucash.android.util.*;
[ "android.database", "android.support", "org.gnucash.android" ]
android.database; android.support; org.gnucash.android;
837,377
public static Authentication create(String authPluginClassName, Map<String, String> authParams) throws UnsupportedAuthenticationException { try { return DefaultImplementation.getDefaultImplementation() .createAuthentication(authPluginClassName, authParams); ...
static Authentication function(String authPluginClassName, Map<String, String> authParams) throws UnsupportedAuthenticationException { try { return DefaultImplementation.getDefaultImplementation() .createAuthentication(authPluginClassName, authParams); } catch (Throwable t) { throw new UnsupportedAuthenticationExceptio...
/** * Create an instance of the Authentication-Plugin. * * @param authPluginClassName name of the Authentication-Plugin you want to use * @param authParams map which represents parameters for the Authentication-Plugin * @return instance of the Authentication-Plugin * @throws Unsup...
Create an instance of the Authentication-Plugin
create
{ "repo_name": "massakam/pulsar", "path": "pulsar-client-api/src/main/java/org/apache/pulsar/client/api/AuthenticationFactory.java", "license": "apache-2.0", "size": 4556 }
[ "java.util.Map", "org.apache.pulsar.client.api.PulsarClientException", "org.apache.pulsar.client.internal.DefaultImplementation" ]
import java.util.Map; import org.apache.pulsar.client.api.PulsarClientException; import org.apache.pulsar.client.internal.DefaultImplementation;
import java.util.*; import org.apache.pulsar.client.api.*; import org.apache.pulsar.client.internal.*;
[ "java.util", "org.apache.pulsar" ]
java.util; org.apache.pulsar;
510,557
ManagedBean addDynamicAttributes(ManagedBean managed) throws com.gemstone.gemfire.admin.AdminException { if (managed == null) { throw new IllegalArgumentException(LocalizedStrings.SystemMemberCacheJmxImpl_MANAGEDBEAN_IS_NULL.toLocalizedString()); } refresh(); // to get the stats... /...
ManagedBean addDynamicAttributes(ManagedBean managed) throws com.gemstone.gemfire.admin.AdminException { if (managed == null) { throw new IllegalArgumentException(LocalizedStrings.SystemMemberCacheJmxImpl_MANAGEDBEAN_IS_NULL.toLocalizedString()); } refresh(); ManagedBean newManagedBean = new DynamicManagedBean(managed)...
/** * Add MBean attribute definitions for each Statistic. * * @param managed the mbean definition to add attributes to * @return a new instance of ManagedBean copied from <code>managed</code> but * with the new attributes added */
Add MBean attribute definitions for each Statistic
addDynamicAttributes
{ "repo_name": "papicella/snappy-store", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/admin/jmx/internal/SystemMemberCacheJmxImpl.java", "license": "apache-2.0", "size": 17366 }
[ "com.gemstone.gemfire.admin.AdminException", "com.gemstone.gemfire.internal.i18n.LocalizedStrings", "org.apache.commons.modeler.ManagedBean" ]
import com.gemstone.gemfire.admin.AdminException; import com.gemstone.gemfire.internal.i18n.LocalizedStrings; import org.apache.commons.modeler.ManagedBean;
import com.gemstone.gemfire.admin.*; import com.gemstone.gemfire.internal.i18n.*; import org.apache.commons.modeler.*;
[ "com.gemstone.gemfire", "org.apache.commons" ]
com.gemstone.gemfire; org.apache.commons;
1,982,271
logger.log(Level.INFO, "Downloading and extracting multichunks ..."); int multiChunkNumber = 0; for (MultiChunkId multiChunkId : unknownMultiChunkIds) { File localEncryptedMultiChunkFile = config.getCache().getEncryptedMultiChunkFile(multiChunkId); File localDecryptedMultiChunkFile = config.getCache().get...
logger.log(Level.INFO, STR); int multiChunkNumber = 0; for (MultiChunkId multiChunkId : unknownMultiChunkIds) { File localEncryptedMultiChunkFile = config.getCache().getEncryptedMultiChunkFile(multiChunkId); File localDecryptedMultiChunkFile = config.getCache().getDecryptedMultiChunkFile(multiChunkId); MultichunkRemote...
/** * Downloads the given multichunks from the remote storage and decrypts them * to the local cache folder. */
Downloads the given multichunks from the remote storage and decrypts them to the local cache folder
downloadAndDecryptMultiChunks
{ "repo_name": "aviau/syncany-gbp", "path": "syncany-lib/src/main/java/org/syncany/operations/Downloader.java", "license": "gpl-3.0", "size": 4848 }
[ "java.io.File", "java.io.FileInputStream", "java.io.FileOutputStream", "java.io.IOException", "java.io.InputStream", "java.io.OutputStream", "java.util.logging.Level", "org.apache.commons.io.IOUtils", "org.syncany.database.MultiChunkEntry", "org.syncany.operations.daemon.messages.DownDownloadFileS...
import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.logging.Level; import org.apache.commons.io.IOUtils; import org.syncany.database.MultiChunkEntry; import org.syncany.operations.daem...
import java.io.*; import java.util.logging.*; import org.apache.commons.io.*; import org.syncany.database.*; import org.syncany.operations.daemon.messages.*; import org.syncany.plugins.transfer.files.*;
[ "java.io", "java.util", "org.apache.commons", "org.syncany.database", "org.syncany.operations", "org.syncany.plugins" ]
java.io; java.util; org.apache.commons; org.syncany.database; org.syncany.operations; org.syncany.plugins;
2,819,974
public ServerIdentifiers getServerIdentifiers() { if (this.serverId == null) { try (CoreJBossASClient client = new CoreJBossASClient(getModelControllerClientFactory().createClient())) { Address rootResource = Address.root(); boolean isDomainMode = client.getString...
ServerIdentifiers function() { if (this.serverId == null) { try (CoreJBossASClient client = new CoreJBossASClient(getModelControllerClientFactory().createClient())) { Address rootResource = Address.root(); boolean isDomainMode = client.getStringAttribute(STR, rootResource) .equalsIgnoreCase(STR); String hostName = (isD...
/** * Returns the server identification, connecting to the endpoint if it * has not been obtained yet. This will be null if the endpoint could not * be connected to or the identification could not be obtained for some reason. * * @return the endpoint's identification, or null if unable to deter...
Returns the server identification, connecting to the endpoint if it has not been obtained yet. This will be null if the endpoint could not be connected to or the identification could not be obtained for some reason
getServerIdentifiers
{ "repo_name": "pavolloffay/hawkular-agent", "path": "hawkular-wildfly-monitor/src/main/java/org/hawkular/agent/monitor/scheduler/config/DMREndpoint.java", "license": "apache-2.0", "size": 4026 }
[ "java.util.Properties", "org.hawkular.agent.monitor.log.MsgLogger", "org.hawkular.agent.monitor.service.ServerIdentifiers", "org.hawkular.dmrclient.Address", "org.hawkular.dmrclient.CoreJBossASClient" ]
import java.util.Properties; import org.hawkular.agent.monitor.log.MsgLogger; import org.hawkular.agent.monitor.service.ServerIdentifiers; import org.hawkular.dmrclient.Address; import org.hawkular.dmrclient.CoreJBossASClient;
import java.util.*; import org.hawkular.agent.monitor.log.*; import org.hawkular.agent.monitor.service.*; import org.hawkular.dmrclient.*;
[ "java.util", "org.hawkular.agent", "org.hawkular.dmrclient" ]
java.util; org.hawkular.agent; org.hawkular.dmrclient;
2,312,331
if (id != null) { checkArgument(id.length() <= ID_MAX_LENGTH, "id exceeds maximum length " + ID_MAX_LENGTH); } return new DeviceKeyId(id); }
if (id != null) { checkArgument(id.length() <= ID_MAX_LENGTH, STR + ID_MAX_LENGTH); } return new DeviceKeyId(id); }
/** * Creates a new device key identifier. * * @param id backing identifier value * @return device key identifier */
Creates a new device key identifier
deviceKeyId
{ "repo_name": "gkatsikas/onos", "path": "core/api/src/main/java/org/onosproject/net/key/DeviceKeyId.java", "license": "apache-2.0", "size": 1626 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
2,461,284
public void toXML(XmlOutput kmlWriter) { kmlWriter.openTag ("labelStyle"); kmlWriter.writeTag("color", ColorHelper.getColorHexStandard(fillColor)); kmlWriter.writeTag("outlineColor", ColorHelper.getColorHexStandard(outlineColor)); kmlWriter.openTag ("font"); k...
void function(XmlOutput kmlWriter) { kmlWriter.openTag (STR); kmlWriter.writeTag("color", ColorHelper.getColorHexStandard(fillColor)); kmlWriter.writeTag(STR, ColorHelper.getColorHexStandard(outlineColor)); kmlWriter.openTag ("font"); kmlWriter.writeTag(STR, labelFont.getFamily()); if (labelFont.isBold()) kmlWriter.wri...
/** * Writes out KML for this LabelStyle. * * @param kmlWriter */
Writes out KML for this LabelStyle
toXML
{ "repo_name": "alecdhuse/Folding-Map", "path": "FoldingMap/src/co/foldingmap/map/themes/LabelStyle.java", "license": "gpl-3.0", "size": 5303 }
[ "co.foldingmap.xml.XmlOutput" ]
import co.foldingmap.xml.XmlOutput;
import co.foldingmap.xml.*;
[ "co.foldingmap.xml" ]
co.foldingmap.xml;
232,224
private ScheduledFuture scheduleAt(Runnable runnable, ScheduledExecutorService service) { Date now = extractTime(new Date()); long delay = getAt().getTime() - now.getTime(); if (delay < 0) { delay += 86400000L; } return service.scheduleAtFixedRate( runnable, delay, ...
ScheduledFuture function(Runnable runnable, ScheduledExecutorService service) { Date now = extractTime(new Date()); long delay = getAt().getTime() - now.getTime(); if (delay < 0) { delay += 86400000L; } return service.scheduleAtFixedRate( runnable, delay, 86400000L, TimeUnit.MILLISECONDS); }
/** * Schedule thread at fixed rate. * @param runnable runnable to schedule * @param service service used to schedule * @return scheduled future */
Schedule thread at fixed rate
scheduleAt
{ "repo_name": "GeoinformationSystems/GeoprocessingAppstore", "path": "src/com/esri/gpt/framework/scheduler/ThreadDefinition.java", "license": "apache-2.0", "size": 7682 }
[ "java.util.Date", "java.util.concurrent.ScheduledExecutorService", "java.util.concurrent.ScheduledFuture", "java.util.concurrent.TimeUnit" ]
import java.util.Date; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
991,222
NodeList<AnnotationExpr> annotations();
NodeList<AnnotationExpr> annotations();
/** * Returns the annotations of this wildcard type. * * @return the annotations of this wildcard type. */
Returns the annotations of this wildcard type
annotations
{ "repo_name": "ptitjes/jlato", "path": "src/main/java/org/jlato/tree/type/WildcardType.java", "license": "lgpl-3.0", "size": 3831 }
[ "org.jlato.tree.NodeList", "org.jlato.tree.expr.AnnotationExpr" ]
import org.jlato.tree.NodeList; import org.jlato.tree.expr.AnnotationExpr;
import org.jlato.tree.*; import org.jlato.tree.expr.*;
[ "org.jlato.tree" ]
org.jlato.tree;
2,266,172
public boolean onUpdate(Session s) throws CallbackException;
boolean function(Session s) throws CallbackException;
/** * Called when an entity is passed to <tt>Session.update()</tt>. * This method is <em>not</em> called every time the object's * state is persisted during a flush. * @param s the session * @return true to veto update * @throws CallbackException */
Called when an entity is passed to Session.update(). This method is not called every time the object's state is persisted during a flush
onUpdate
{ "repo_name": "raedle/univis", "path": "lib/hibernate-3.1.3/src/org/hibernate/classic/Lifecycle.java", "license": "lgpl-2.1", "size": 2853 }
[ "org.hibernate.CallbackException", "org.hibernate.Session" ]
import org.hibernate.CallbackException; import org.hibernate.Session;
import org.hibernate.*;
[ "org.hibernate" ]
org.hibernate;
2,763,714
public static Object invokeJdbcMethod(Method method, Object target, Object[] args) throws SQLException { try { return method.invoke(target, args); } catch (IllegalAccessException ex) { handleReflectionException(ex); } catch (InvocationTargetException ex) { if (ex.getTargetException() instanceof SQ...
static Object function(Method method, Object target, Object[] args) throws SQLException { try { return method.invoke(target, args); } catch (IllegalAccessException ex) { handleReflectionException(ex); } catch (InvocationTargetException ex) { if (ex.getTargetException() instanceof SQLException) { throw (SQLException) ex...
/** * Invoke the specified JDBC API {@link Method} against the supplied * target object with the supplied arguments. * @param method the method to invoke * @param target the target object to invoke the method on * @param args the invocation arguments (may be <code>null</code>) * @return the invocation resul...
Invoke the specified JDBC API <code>Method</code> against the supplied target object with the supplied arguments
invokeJdbcMethod
{ "repo_name": "qiuhd2015/Hpgsc-RPC", "path": "hpgsc-rpc/src/main/java/org/hdl/hggsc/rpc/utils/ReflectionUtils.java", "license": "mit", "size": 22350 }
[ "java.lang.reflect.InvocationTargetException", "java.lang.reflect.Method", "java.sql.SQLException" ]
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.sql.SQLException;
import java.lang.reflect.*; import java.sql.*;
[ "java.lang", "java.sql" ]
java.lang; java.sql;
106,990
@SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) { Block block = p_149646_1_.getBlock(p_149646_2_, p_149646_3_, p_149646_4_); if (this == ModBlocks.blockForceField || this == ModB...
@SideOnly(Side.CLIENT) boolean function(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) { Block block = p_149646_1_.getBlock(p_149646_2_, p_149646_3_, p_149646_4_); if (this == ModBlocks.blockForceField this == ModBlocks.blockSlime) { if (p_149646_1_.getBlockMetadata(p_1496...
/** * Returns true if the given side of this block type should be rendered, if the adjacent block is at the given * coordinates. Args: blockAccess, x, y, z, side */
Returns true if the given side of this block type should be rendered, if the adjacent block is at the given coordinates. Args: blockAccess, x, y, z, side
shouldSideBeRendered
{ "repo_name": "Virtuoel/Unreal-1.7.10", "path": "src/Main/java/com/virtuoel/unreal/block/BlockUnrealTransparent.java", "license": "lgpl-3.0", "size": 2164 }
[ "com.virtuoel.unreal.init.ModBlocks", "net.minecraft.block.Block", "net.minecraft.util.Facing", "net.minecraft.world.IBlockAccess" ]
import com.virtuoel.unreal.init.ModBlocks; import net.minecraft.block.Block; import net.minecraft.util.Facing; import net.minecraft.world.IBlockAccess;
import com.virtuoel.unreal.init.*; import net.minecraft.block.*; import net.minecraft.util.*; import net.minecraft.world.*;
[ "com.virtuoel.unreal", "net.minecraft.block", "net.minecraft.util", "net.minecraft.world" ]
com.virtuoel.unreal; net.minecraft.block; net.minecraft.util; net.minecraft.world;
2,015,167
//~ Methods ---------------------------------------------------------------- //------------------// // createFromGlyphs // //------------------// public static SectionSets createFromGlyphs (Collection<Glyph> glyphs) { SectionSets sectionSets = new SectionSets(); sectionSe...
static SectionSets function (Collection<Glyph> glyphs) { SectionSets sectionSets = new SectionSets(); sectionSets.sets = new ArrayList<>(); for (Glyph glyph : glyphs) { sectionSets.sets.add(new ArrayList<>(glyph.getMembers())); } return sectionSets; }
/** * Convenient method to create the proper SectionSets out of a provided * collection of glyphs * * @param glyphs the provided glyphs * @return a newly built SectionSets instance */
Convenient method to create the proper SectionSets out of a provided collection of glyphs
createFromGlyphs
{ "repo_name": "jlpoolen/libreveris", "path": "src/main/omr/glyph/SectionSets.java", "license": "lgpl-3.0", "size": 9017 }
[ "java.util.ArrayList", "java.util.Collection" ]
import java.util.ArrayList; import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
362,105
public Set<String> getLocalResources(boolean test) { Set<String> resources = new LinkedHashSet<>(); File classes = getClassesDirectory(); if (test) { classes = new File(basedir, "target/test-classes"); } if (classes.isDirectory()) { DirectoryScanner sc...
Set<String> function(boolean test) { Set<String> resources = new LinkedHashSet<>(); File classes = getClassesDirectory(); if (test) { classes = new File(basedir, STR); } if (classes.isDirectory()) { DirectoryScanner scanner = new DirectoryScanner(); scanner.setBasedir(classes); scanner.setExcludes(new String[]{STR}); s...
/** * Gets the list of resource files from {@literal src/main/resources} or {@literal src/test/resources}. * This method scans for all files that are not classes from {@literal target/classes} or {@literal * target/test-classes}. The distinction is made according to the value of {@code test}. * ...
Gets the list of resource files from src/main/resources or src/test/resources. This method scans for all files that are not classes from target/classes or target/test-classes. The distinction is made according to the value of test
getLocalResources
{ "repo_name": "wisdom-framework/wisdom", "path": "core/wisdom-maven-plugin/src/main/java/org/wisdom/maven/osgi/ProjectScanner.java", "license": "apache-2.0", "size": 4445 }
[ "java.io.File", "java.util.Collections", "java.util.LinkedHashSet", "java.util.Set", "org.codehaus.plexus.util.DirectoryScanner" ]
import java.io.File; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; import org.codehaus.plexus.util.DirectoryScanner;
import java.io.*; import java.util.*; import org.codehaus.plexus.util.*;
[ "java.io", "java.util", "org.codehaus.plexus" ]
java.io; java.util; org.codehaus.plexus;
2,422,617
@Override public void transform(final float[] srcPts, int srcOff, final float[] dstPts, int dstOff, int numPts) throws TransformException { if (numPts <= 0) return; final int srcInc = global.getSourceDimensions(); ...
void function(final float[] srcPts, int srcOff, final float[] dstPts, int dstOff, int numPts) throws TransformException { if (numPts <= 0) return; final int srcInc = global.getSourceDimensions(); final int dstInc = global.getTargetDimensions(); final double[] buffer = new double[numPts * dstInc]; transform((tr, src, ds...
/** * Inverse transforms a list of coordinate points. This method uses an temporary {@code double[]} buffer * for testing {@code SubArea} inclusion with full precision before to cast to {@code float} values. */
Inverse transforms a list of coordinate points. This method uses an temporary double[] buffer for testing SubArea inclusion with full precision before to cast to float values
transform
{ "repo_name": "apache/sis", "path": "core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/transform/SpecializableTransform.java", "license": "apache-2.0", "size": 31926 }
[ "org.opengis.referencing.operation.TransformException" ]
import org.opengis.referencing.operation.TransformException;
import org.opengis.referencing.operation.*;
[ "org.opengis.referencing" ]
org.opengis.referencing;
1,135,733
public AccessRequirementStats getAccessRequirementStats(List<Long> subjectIds, RestrictableObjectType type);
AccessRequirementStats function(List<Long> subjectIds, RestrictableObjectType type);
/** * Retrieve the statistic of access requirements for list of given subjectIds * * @param subjectIds * @param type - if type is ENTITY, subjectIds should contain the entityID and its ancestor IDs; * if type is TEAM, subjectIds should contain the teamID * @return */
Retrieve the statistic of access requirements for list of given subjectIds
getAccessRequirementStats
{ "repo_name": "xschildw/Synapse-Repository-Services", "path": "lib/models/src/main/java/org/sagebionetworks/repo/model/AccessRequirementDAO.java", "license": "apache-2.0", "size": 3559 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,923,392
public LoremGenerator sentences(int min, int max) { this.noSentences = Range.from(min, max); return this; }
LoremGenerator function(int min, int max) { this.noSentences = Range.from(min, max); return this; }
/** * Set the number of sentences in a paragraph * * @param min Minimum number of sentences (Inclusive) * @param max Maximum number of sentences (Inclusive) * @return The same generator */
Set the number of sentences in a paragraph
sentences
{ "repo_name": "xdrop/jRand", "path": "jrand-core/src/main/java/me/xdrop/jrand/generators/text/LoremGenerator.java", "license": "apache-2.0", "size": 6733 }
[ "me.xdrop.jrand.model.Range" ]
import me.xdrop.jrand.model.Range;
import me.xdrop.jrand.model.*;
[ "me.xdrop.jrand" ]
me.xdrop.jrand;
1,711,494
@Override public boolean isAutoAttackable(L2Character attacker) { // Attackable during siege by all except defenders return ((attacker != null) && (attacker instanceof L2PcInstance) && (getCastle() != null) && (getCastle().getCastleId() > 0) && getCastle().getSiege().getIsInProgress() && !getCastle().getSi...
boolean function(L2Character attacker) { return ((attacker != null) && (attacker instanceof L2PcInstance) && (getCastle() != null) && (getCastle().getCastleId() > 0) && getCastle().getSiege().getIsInProgress() && !getCastle().getSiege().checkIsDefender(((L2PcInstance) attacker).getClan())); }
/** * Return True if a siege is in progress and the L2Character attacker isn't a Defender.<BR> * <BR> * @param attacker The L2Character that the L2SiegeGuardInstance try to attack */
Return True if a siege is in progress and the L2Character attacker isn't a Defender.
isAutoAttackable
{ "repo_name": "oonym/l2InterludeServer", "path": "L2J_Server/java/net/sf/l2j/gameserver/model/actor/instance/L2SiegeGuardInstance.java", "license": "gpl-2.0", "size": 6671 }
[ "net.sf.l2j.gameserver.model.L2Character" ]
import net.sf.l2j.gameserver.model.L2Character;
import net.sf.l2j.gameserver.model.*;
[ "net.sf.l2j" ]
net.sf.l2j;
1,824,827
public static NbtCompound fromFile(String file) throws IOException { Preconditions.checkNotNull(file, "file cannot be NULL"); FileInputStream stream = null; DataInputStream input = null; boolean swallow = true; try { stream = new FileInputStream(file); NbtCompound result...
static NbtCompound function(String file) throws IOException { Preconditions.checkNotNull(file, STR); FileInputStream stream = null; DataInputStream input = null; boolean swallow = true; try { stream = new FileInputStream(file); NbtCompound result = NbtBinarySerializer.DEFAULT. deserializeCompound(input = new DataInputS...
/** * Load a NBT compound from a GZIP compressed file. * @param file - the source file. * @return The compound. * @throws IOException Unable to load file. */
Load a NBT compound from a GZIP compressed file
fromFile
{ "repo_name": "LinEvil/ProtocolLib", "path": "ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/nbt/NbtFactory.java", "license": "gpl-2.0", "size": 19110 }
[ "com.comphenix.protocol.wrappers.nbt.io.NbtBinarySerializer", "com.google.common.base.Preconditions", "com.google.common.io.Closeables", "java.io.DataInputStream", "java.io.FileInputStream", "java.io.IOException", "java.util.zip.GZIPInputStream" ]
import com.comphenix.protocol.wrappers.nbt.io.NbtBinarySerializer; import com.google.common.base.Preconditions; import com.google.common.io.Closeables; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; import java.util.zip.GZIPInputStream;
import com.comphenix.protocol.wrappers.nbt.io.*; import com.google.common.base.*; import com.google.common.io.*; import java.io.*; import java.util.zip.*;
[ "com.comphenix.protocol", "com.google.common", "java.io", "java.util" ]
com.comphenix.protocol; com.google.common; java.io; java.util;
2,787,639
private static boolean selectFromBQDatasetIsUnauthorized(BigQuery bigQueryClient, String query) throws Exception { boolean caughtAccessException = false; try { TableResult queryResult = BigQueryUtils.queryBigQuery(bigQueryClient, query); logger.info( "Successfully selected from Big...
static boolean function(BigQuery bigQueryClient, String query) throws Exception { boolean caughtAccessException = false; try { TableResult queryResult = BigQueryUtils.queryBigQuery(bigQueryClient, query); logger.info( STR, query, queryResult.getValues().iterator().next().get(STR)); } catch (BigQueryException bqEx) { lo...
/** * Check if executing a BigQuery query returns an unauthorized error. * * @param bigQueryClient the BigQuery client object to use * @return true if the endpoint returns an unauthorized error, false if it does not */
Check if executing a BigQuery query returns an unauthorized error
selectFromBQDatasetIsUnauthorized
{ "repo_name": "DataBiosphere/jade-data-repo", "path": "datarepo-clienttests/src/main/java/scripts/testscripts/DatasetCustodianPermissions.java", "license": "bsd-3-clause", "size": 7052 }
[ "com.google.api.client.http.HttpStatusCodes", "com.google.cloud.bigquery.BigQuery", "com.google.cloud.bigquery.BigQueryException", "com.google.cloud.bigquery.TableResult" ]
import com.google.api.client.http.HttpStatusCodes; import com.google.cloud.bigquery.BigQuery; import com.google.cloud.bigquery.BigQueryException; import com.google.cloud.bigquery.TableResult;
import com.google.api.client.http.*; import com.google.cloud.bigquery.*;
[ "com.google.api", "com.google.cloud" ]
com.google.api; com.google.cloud;
864,948
EList<PackageRef> getSendingApplication();
EList<PackageRef> getSendingApplication();
/** * Returns the value of the '<em><b>Sending Application</b></em>' containment reference list. * The list contents are of type {@link org.openhealthtools.mdht.emf.hl7.mif2.PackageRef}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * A type of system which is capable of...
Returns the value of the 'Sending Application' containment reference list. The list contents are of type <code>org.openhealthtools.mdht.emf.hl7.mif2.PackageRef</code>. A type of system which is capable of sending the interaction Derive: Todo - All ApplicationRoles which identify this interaction as a 'sends' interactio...
getSendingApplication
{ "repo_name": "drbgfc/mdht", "path": "hl7/plugins/org.openhealthtools.mdht.emf.hl7.mif2/src/org/openhealthtools/mdht/emf/hl7/mif2/Interaction.java", "license": "epl-1.0", "size": 11158 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
853,768
private List<TileItem> getTileItems() { return (tileItems == null) ? Collections.<TileItem>emptyList() : tileItems; }
List<TileItem> function() { return (tileItems == null) ? Collections.<TileItem>emptyList() : tileItems; }
/** * Get the tile items in this pet. * * @return A list of <code>TileItems</code>. */
Get the tile items in this pet
getTileItems
{ "repo_name": "edijman/SOEN_6431_Colonization_Game", "path": "src/net/sf/freecol/common/model/PlayerExploredTile.java", "license": "gpl-2.0", "size": 12074 }
[ "java.util.Collections", "java.util.List" ]
import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
213,269
public void finish(CompilationResult result) { if (id != null) { final long stop = System.nanoTime(); final long duration = (stop - start) / 1000; final int targetCodeSize = result != null ? result.getTargetCodeSize() : -1; final int bytecodeSize = result != n...
void function(CompilationResult result) { if (id != null) { final long stop = System.nanoTime(); final long duration = (stop - start) / 1000; final int targetCodeSize = result != null ? result.getTargetCodeSize() : -1; final int bytecodeSize = result != null ? result.getBytecodeSize() : 0; if (allocatedBytesBefore == -...
/** * Notifies this object that the compilation finished and the informational line should be * printed to {@link TTY}. */
Notifies this object that the compilation finished and the informational line should be printed to <code>TTY</code>
finish
{ "repo_name": "md-5/jdk10", "path": "src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilationPrinter.java", "license": "gpl-2.0", "size": 5098 }
[ "org.graalvm.compiler.code.CompilationResult", "org.graalvm.compiler.debug.TTY", "org.graalvm.compiler.serviceprovider.GraalServices" ]
import org.graalvm.compiler.code.CompilationResult; import org.graalvm.compiler.debug.TTY; import org.graalvm.compiler.serviceprovider.GraalServices;
import org.graalvm.compiler.code.*; import org.graalvm.compiler.debug.*; import org.graalvm.compiler.serviceprovider.*;
[ "org.graalvm.compiler" ]
org.graalvm.compiler;
679,053
@Override public Object visit(final SuperMethodCall node) { final ClassInfo c = ClassInfoCompiler.this.classInfo.getSuperclass(); final List args = node.getArguments(); ClassInfo[] pt = new ClassInfo[0]; if (args != null) { checkLis...
Object function(final SuperMethodCall node) { final ClassInfo c = ClassInfoCompiler.this.classInfo.getSuperclass(); final List args = node.getArguments(); ClassInfo[] pt = new ClassInfo[0]; if (args != null) { checkList(args, STR, node); pt = new ClassInfo[args.size()]; final ListIterator it = args.listIterator(); int ...
/** * Visits a SuperMethodCall * * @param node the node to visit */
Visits a SuperMethodCall
visit
{ "repo_name": "mbshopM/openconcerto", "path": "OpenConcerto/src/koala/dynamicjava/interpreter/ClassInfoCompiler.java", "license": "gpl-3.0", "size": 77727 }
[ "java.util.List", "java.util.ListIterator" ]
import java.util.List; import java.util.ListIterator;
import java.util.*;
[ "java.util" ]
java.util;
1,163,633
public void testRpcValues() { // Test Values int frequencyInteger = msg.getFrequencyInteger(); int frequencyFraction = msg.getFrequencyFraction(); RadioBand band = msg.getBand(); RdsData rdsData = msg.getRdsData(); int availableHDs = msg.getAvailableHDs(); int...
void function() { int frequencyInteger = msg.getFrequencyInteger(); int frequencyFraction = msg.getFrequencyFraction(); RadioBand band = msg.getBand(); RdsData rdsData = msg.getRdsData(); int availableHDs = msg.getAvailableHDs(); int hdChannel = msg.getHdChannel(); int signalStrength = msg.getSignalStrength(); int sign...
/** * Tests the expected values of the RPC message. */
Tests the expected values of the RPC message
testRpcValues
{ "repo_name": "smartdevicelink/sdl_android", "path": "android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/datatypes/RadioControlDataTests.java", "license": "bsd-3-clause", "size": 8218 }
[ "com.smartdevicelink.proxy.rpc.RadioControlData", "com.smartdevicelink.proxy.rpc.RdsData", "com.smartdevicelink.proxy.rpc.SisData", "com.smartdevicelink.proxy.rpc.enums.RadioBand", "com.smartdevicelink.proxy.rpc.enums.RadioState", "com.smartdevicelink.test.TestValues", "com.smartdevicelink.test.Validato...
import com.smartdevicelink.proxy.rpc.RadioControlData; import com.smartdevicelink.proxy.rpc.RdsData; import com.smartdevicelink.proxy.rpc.SisData; import com.smartdevicelink.proxy.rpc.enums.RadioBand; import com.smartdevicelink.proxy.rpc.enums.RadioState; import com.smartdevicelink.test.TestValues; import com.smartdevi...
import com.smartdevicelink.proxy.rpc.*; import com.smartdevicelink.proxy.rpc.enums.*; import com.smartdevicelink.test.*; import java.util.*;
[ "com.smartdevicelink.proxy", "com.smartdevicelink.test", "java.util" ]
com.smartdevicelink.proxy; com.smartdevicelink.test; java.util;
2,767,625
@Override public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { if (IS_HONEYCOMB) { //This can only work if we can call the super-class impl. :/ //ActivityCompatHoneycomb.dump(this, prefix, fd, writer, args); } writer.print(...
void function(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { if (IS_HONEYCOMB) { } writer.print(prefix); writer.print(STR); writer.print(Integer.toHexString(System.identityHashCode(this))); writer.println(STR); String innerPrefix = prefix + " "; writer.print(innerPrefix); writer.print(STR); writ...
/** * Print the Activity's state into the given stream. This gets invoked if * you run "adb shell dumpsys activity <activity_component_name>". * * @param prefix Desired prefix to prepend at each line of output. * @param fd The raw file descriptor that the dump is being sent to. * @p...
Print the Activity's state into the given stream. This gets invoked if you run "adb shell dumpsys activity "
dump
{ "repo_name": "beshkenadze/ActionBarSherlock", "path": "plugins/maps/src/android/support/v4/app/FragmentMapActivity.java", "license": "apache-2.0", "size": 48877 }
[ "java.io.FileDescriptor", "java.io.PrintWriter" ]
import java.io.FileDescriptor; import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
246,888
EAttribute getNode_Type();
EAttribute getNode_Type();
/** * Returns the meta object for the attribute '{@link org.dawnsci.marketplace.Node#getType <em>Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Type</em>'. * @see org.dawnsci.marketplace.Node#getType() * @see #getNode() * @generated */
Returns the meta object for the attribute '<code>org.dawnsci.marketplace.Node#getType Type</code>'.
getNode_Type
{ "repo_name": "Itema-as/dawn-marketplace-server", "path": "org.dawnsci.marketplace.core/src-gen/org/dawnsci/marketplace/MarketplacePackage.java", "license": "epl-1.0", "size": 104026 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,373,432
void addInterval(Node<?> pre, Node<?> post) { Preconditions.checkState(pre.precedes(post), "Pre node does not precede post node"); int preIndex = Arrays.binarySearch(array, 0, size, pre, NodeComparator.INSTANCE); int postIndex = Arrays.binarySearch(ar...
void addInterval(Node<?> pre, Node<?> post) { Preconditions.checkState(pre.precedes(post), STR); int preIndex = Arrays.binarySearch(array, 0, size, pre, NodeComparator.INSTANCE); int postIndex = Arrays.binarySearch(array, 0, size, post, NodeComparator.INSTANCE); if (preIndex < 0) preIndex = -preIndex - 1; if (postIndex...
/** * Adds an interval to this interval set. The internal representation always * remains minimal and sorted, thus has a O(logn) query time. */
Adds an interval to this interval set. The internal representation always remains minimal and sorted, thus has a O(logn) query time
addInterval
{ "repo_name": "choeger/jdae", "path": "src/main/java/de/tuberlin/uebb/jdae/thirdparty/transitivityutils/MergingIntervalSet.java", "license": "lgpl-3.0", "size": 7689 }
[ "com.google.common.base.Preconditions", "de.tuberlin.uebb.jdae.thirdparty.transitivityutils.OrderList", "java.util.Arrays" ]
import com.google.common.base.Preconditions; import de.tuberlin.uebb.jdae.thirdparty.transitivityutils.OrderList; import java.util.Arrays;
import com.google.common.base.*; import de.tuberlin.uebb.jdae.thirdparty.transitivityutils.*; import java.util.*;
[ "com.google.common", "de.tuberlin.uebb", "java.util" ]
com.google.common; de.tuberlin.uebb; java.util;
133,464
private void writeDeployment(Definition def, Writer out, int indent) throws IOException { writeWithIndent(out, indent, "\n"); writeWithIndent(out, indent, "@Deployment(order = 1)\n"); writeWithIndent(out, indent, "public static ResourceAdapterArchive createDeployment()"); writeLeftCurlyBr...
void function(Definition def, Writer out, int indent) throws IOException { writeWithIndent(out, indent, "\n"); writeWithIndent(out, indent, STR); writeWithIndent(out, indent, STR); writeLeftCurlyBracket(out, indent); writeWithIndent(out, indent + 1, STR + def.getVersionNoDot() + STR); writeWithIndent(out, indent + 2, S...
/** * Output create deployment method * * @param def definition * @param out Writer * @param indent space number * @throws IOException ioException */
Output create deployment method
writeDeployment
{ "repo_name": "jandsu/ironjacamar", "path": "codegenerator/src/main/java/org/ironjacamar/codegenerator/code/TestCodeGen.java", "license": "epl-1.0", "size": 17138 }
[ "java.io.IOException", "java.io.Writer", "org.ironjacamar.codegenerator.Definition", "org.ironjacamar.codegenerator.McfDef" ]
import java.io.IOException; import java.io.Writer; import org.ironjacamar.codegenerator.Definition; import org.ironjacamar.codegenerator.McfDef;
import java.io.*; import org.ironjacamar.codegenerator.*;
[ "java.io", "org.ironjacamar.codegenerator" ]
java.io; org.ironjacamar.codegenerator;
2,765,891
@SuppressWarnings("unchecked") public void testSuccessfulAsList_logging_exception() throws Exception { assertEquals(newArrayList((Object) null), getDone(successfulAsList( immediateFailedFuture(new MyException())))); assertWithMessage("Nothing should be logged") .that(aggregateFut...
@SuppressWarnings(STR) void function() throws Exception { assertEquals(newArrayList((Object) null), getDone(successfulAsList( immediateFailedFuture(new MyException())))); assertWithMessage(STR) .that(aggregateFutureLogHandler.getStoredLogRecords()).isEmpty(); assertEquals(newArrayList(null, null, null), getDone(success...
/** * Non-Error exceptions are never logged. */
Non-Error exceptions are never logged
testSuccessfulAsList_logging_exception
{ "repo_name": "DavesMan/guava", "path": "guava-tests/test/com/google/common/util/concurrent/FuturesTest.java", "license": "apache-2.0", "size": 126439 }
[ "com.google.common.truth.Truth", "com.google.common.util.concurrent.Futures" ]
import com.google.common.truth.Truth; import com.google.common.util.concurrent.Futures;
import com.google.common.truth.*; import com.google.common.util.concurrent.*;
[ "com.google.common" ]
com.google.common;
832,342
public List<NotificationListEntry> getNotifyList() throws UdpConnectionException, AniDbException { return this.notificationFactory.getNotifyList(); }
List<NotificationListEntry> function() throws UdpConnectionException, AniDbException { return this.notificationFactory.getNotifyList(); }
/** * <p>Returns a list of entries of all pending (not acknowledged) new * private message and new file notifications.</p> * <p>Buddy events cannot be acknowledged.</p> * @return The list. * @throws UdpConnectionException If a connection problem occured. * @throws AniDbException If a problem with AniDB occ...
Returns a list of entries of all pending (not acknowledged) new private message and new file notifications. Buddy events cannot be acknowledged
getNotifyList
{ "repo_name": "derBeukatt/AniDBTool", "path": "src/net/anidb/udp/UdpConnection.java", "license": "gpl-3.0", "size": 45351 }
[ "java.util.List", "net.anidb.NotificationListEntry" ]
import java.util.List; import net.anidb.NotificationListEntry;
import java.util.*; import net.anidb.*;
[ "java.util", "net.anidb" ]
java.util; net.anidb;
454,142
EList<Asset> getPropertyAssets();
EList<Asset> getPropertyAssets();
/** * Returns the value of the '<em><b>Property Assets</b></em>' reference list. * The list contents are of type {@link gluemodel.CIM.IEC61968.Assets.Asset}. * It is bidirectional and its opposite is '{@link gluemodel.CIM.IEC61968.Assets.Asset#getProperties <em>Properties</em>}'. * <!-- begin-user-doc --> * <...
Returns the value of the 'Property Assets' reference list. The list contents are of type <code>gluemodel.CIM.IEC61968.Assets.Asset</code>. It is bidirectional and its opposite is '<code>gluemodel.CIM.IEC61968.Assets.Asset#getProperties Properties</code>'. If the meaning of the 'Property Assets' reference list isn't cle...
getPropertyAssets
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61968/Common/UserAttribute.java", "license": "mit", "size": 19355 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
938,871
public SafeHtml toSafeHtml() { Preconditions.checkState( getContentKind() == ContentKind.HTML, "toSafeHtml() only valid for SanitizedContent of kind HTML, is: %s", getContentKind()); return UncheckedConversions.safeHtmlFromStringKnownToSatisfyTypeContract(getContent()); }
SafeHtml function() { Preconditions.checkState( getContentKind() == ContentKind.HTML, STR, getContentKind()); return UncheckedConversions.safeHtmlFromStringKnownToSatisfyTypeContract(getContent()); }
/** * Converts a Soy {@link SanitizedContent} of kind HTML into a {@link SafeHtml}. * * @throws IllegalStateException if this SanitizedContent's content kind is not {@link * ContentKind#HTML}. */
Converts a Soy <code>SanitizedContent</code> of kind HTML into a <code>SafeHtml</code>
toSafeHtml
{ "repo_name": "Medium/closure-templates", "path": "java/src/com/google/template/soy/data/SanitizedContent.java", "license": "apache-2.0", "size": 15658 }
[ "com.google.common.base.Preconditions", "com.google.common.html.types.SafeHtml", "com.google.common.html.types.UncheckedConversions" ]
import com.google.common.base.Preconditions; import com.google.common.html.types.SafeHtml; import com.google.common.html.types.UncheckedConversions;
import com.google.common.base.*; import com.google.common.html.types.*;
[ "com.google.common" ]
com.google.common;
291,548
public void loadBeatmap(Beatmap beatmap) { this.beatmap = beatmap; Display.setTitle(String.format("%s - %s", game.getTitle(), beatmap.toString())); if (beatmap.timingPoints == null) BeatmapDB.load(beatmap, BeatmapDB.LOAD_ARRAY); BeatmapParser.parseHitObjects(beatmap); HitSound.setDefaultSampleSet(beatma...
void function(Beatmap beatmap) { this.beatmap = beatmap; Display.setTitle(String.format(STR, game.getTitle(), beatmap.toString())); if (beatmap.timingPoints == null) BeatmapDB.load(beatmap, BeatmapDB.LOAD_ARRAY); BeatmapParser.parseHitObjects(beatmap); HitSound.setDefaultSampleSet(beatmap.sampleSet); }
/** * Loads all required data from a beatmap. * @param beatmap the beatmap to load */
Loads all required data from a beatmap
loadBeatmap
{ "repo_name": "Bigpet/opsu", "path": "src/itdelatrisu/opsu/states/Game.java", "license": "gpl-3.0", "size": 58812 }
[ "org.lwjgl.opengl.Display" ]
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.*;
[ "org.lwjgl.opengl" ]
org.lwjgl.opengl;
2,328,558
public void build( Map<String, String> options, Map<String, String> optionsFinal, CarbonLoadModel carbonLoadModel, Configuration hadoopConf) throws InvalidLoadOptionException, IOException { build(options, optionsFinal, carbonLoadModel, hadoopConf, new HashMap<String, String>(), false); }
void function( Map<String, String> options, Map<String, String> optionsFinal, CarbonLoadModel carbonLoadModel, Configuration hadoopConf) throws InvalidLoadOptionException, IOException { build(options, optionsFinal, carbonLoadModel, hadoopConf, new HashMap<String, String>(), false); }
/** * build CarbonLoadModel for data loading * @param options Load options from user input * @param optionsFinal Load options that populated with default values for optional options * @param carbonLoadModel The output load model * @param hadoopConf hadoopConf is needed to read CSV header if there 'filehe...
build CarbonLoadModel for data loading
build
{ "repo_name": "jatin9896/incubator-carbondata", "path": "processing/src/main/java/org/apache/carbondata/processing/loading/model/CarbonLoadModelBuilder.java", "license": "apache-2.0", "size": 16915 }
[ "java.io.IOException", "java.util.HashMap", "java.util.Map", "org.apache.carbondata.common.exceptions.sql.InvalidLoadOptionException", "org.apache.hadoop.conf.Configuration" ]
import java.io.IOException; import java.util.HashMap; import java.util.Map; import org.apache.carbondata.common.exceptions.sql.InvalidLoadOptionException; import org.apache.hadoop.conf.Configuration;
import java.io.*; import java.util.*; import org.apache.carbondata.common.exceptions.sql.*; import org.apache.hadoop.conf.*;
[ "java.io", "java.util", "org.apache.carbondata", "org.apache.hadoop" ]
java.io; java.util; org.apache.carbondata; org.apache.hadoop;
396,372
public int getTcpKeepCnt() { try { return channel.socket.getTcpKeepCnt(); } catch (IOException e) { throw new ChannelException(e); } }
int function() { try { return channel.socket.getTcpKeepCnt(); } catch (IOException e) { throw new ChannelException(e); } }
/** * Get the {@code TCP_KEEPCNT} option on the socket. See {@code man 7 tcp} for more details. */
Get the TCP_KEEPCNT option on the socket. See man 7 tcp for more details
getTcpKeepCnt
{ "repo_name": "Apache9/netty", "path": "transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollSocketChannelConfig.java", "license": "apache-2.0", "size": 19201 }
[ "io.netty.channel.ChannelException", "java.io.IOException" ]
import io.netty.channel.ChannelException; import java.io.IOException;
import io.netty.channel.*; import java.io.*;
[ "io.netty.channel", "java.io" ]
io.netty.channel; java.io;
752,497
@PUT @Path("{subscription:\\d+}/tag") @Consumes(MediaType.APPLICATION_JSON) public void update(@PathParam("subscription") final int subscription, final TagEditionVo vo) { saveOrUpdate(subscription, resource.findConfigured(repository, vo.getId(), subscription), vo); }
@Path(STR) @Consumes(MediaType.APPLICATION_JSON) void function(@PathParam(STR) final int subscription, final TagEditionVo vo) { saveOrUpdate(subscription, resource.findConfigured(repository, vo.getId(), subscription), vo); }
/** * Update the tag inside a quote. * * @param subscription The subscription identifier, will be used to filter the tags from the associated provider. * @param vo The new quote tag data. */
Update the tag inside a quote
update
{ "repo_name": "ligoj/plugin-prov", "path": "src/main/java/org/ligoj/app/plugin/prov/ProvTagResource.java", "license": "mit", "size": 5761 }
[ "javax.ws.rs.Consumes", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.core.MediaType" ]
import javax.ws.rs.Consumes; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.core.MediaType;
import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "javax.ws" ]
javax.ws;
1,209,045
private boolean placeCall(Cursor c) { OutgoingCallChooser superActivity = ((OutgoingCallChooser)getActivity()); ISipService service = superActivity.getConnectedService(); long accountId = c.getLong(c.getColumnIndex(SipProfile.FIELD_ID)); if(accountId > SipProfile.INVALID_ID) { ...
boolean function(Cursor c) { OutgoingCallChooser superActivity = ((OutgoingCallChooser)getActivity()); ISipService service = superActivity.getConnectedService(); long accountId = c.getLong(c.getColumnIndex(SipProfile.FIELD_ID)); if(accountId > SipProfile.INVALID_ID) { if(service == null) { return false; } boolean canCa...
/** * Place the call for a given cursor positionned at right index in list * @param c The cursor pointing the entry we'd like to call * @return true if call performed, false else */
Place the call for a given cursor positionned at right index in list
placeCall
{ "repo_name": "ther12k/android-client", "path": "phone/src/com/voiceblue/phone/ui/outgoingcall/OutgoingCallListFragment.java", "license": "gpl-3.0", "size": 8665 }
[ "android.app.PendingIntent", "android.database.Cursor", "android.os.RemoteException", "com.voiceblue.phone.api.ISipService", "com.voiceblue.phone.api.SipProfile", "com.voiceblue.phone.ui.account.AccountsLoader", "com.voiceblue.phone.utils.CallHandlerPlugin", "com.voiceblue.phone.utils.Log" ]
import android.app.PendingIntent; import android.database.Cursor; import android.os.RemoteException; import com.voiceblue.phone.api.ISipService; import com.voiceblue.phone.api.SipProfile; import com.voiceblue.phone.ui.account.AccountsLoader; import com.voiceblue.phone.utils.CallHandlerPlugin; import com.voiceblue.phone...
import android.app.*; import android.database.*; import android.os.*; import com.voiceblue.phone.api.*; import com.voiceblue.phone.ui.account.*; import com.voiceblue.phone.utils.*;
[ "android.app", "android.database", "android.os", "com.voiceblue.phone" ]
android.app; android.database; android.os; com.voiceblue.phone;
2,863,711
public static CameraManager get() { return cameraManager; } private CameraManager(Context context) { this.context = context; this.configManager = new CameraConfigurationManager(context); // Camera.setOneShotPreviewCallback() has a race condition in Cupcake, so we use the older // Camera.set...
static CameraManager function() { return cameraManager; } private CameraManager(Context context) { this.context = context; this.configManager = new CameraConfigurationManager(context); useOneShotPreviewCallback = Integer.parseInt(Build.VERSION.SDK) > 3; previewCallback = new PreviewCallback(configManager, useOneShotPre...
/** * Gets the CameraManager singleton instance. * * @return A reference to the CameraManager singleton. */
Gets the CameraManager singleton instance
get
{ "repo_name": "p2plab/Nxt-Client-For-Android", "path": "src/org/Zxing/camera/CameraManager.java", "license": "mit", "size": 11479 }
[ "android.content.Context", "android.os.Build" ]
import android.content.Context; import android.os.Build;
import android.content.*; import android.os.*;
[ "android.content", "android.os" ]
android.content; android.os;
2,855,560
public String getOwner() { return (String) super.get(ViewColumnComment.PROPERTY.owner.name()); }
String function() { return (String) super.get(ViewColumnComment.PROPERTY.owner.name()); }
/** * Returns the value of the <b>owner</b> property. * <p> * </p> * <b>Property Definition: </b> The owner schema name * * @return the value of the <b>owner</b> property. */
Returns the value of the owner property. Property Definition: The owner schema name
getOwner
{ "repo_name": "plasma-framework/plasma", "path": "plasma-provisioning/src/main/java/org/plasma/provisioning/rdb/oracle/g11/sys/impl/ViewColumnCommentImpl.java", "license": "apache-2.0", "size": 7134 }
[ "org.plasma.provisioning.rdb.oracle.g11.sys.ViewColumnComment" ]
import org.plasma.provisioning.rdb.oracle.g11.sys.ViewColumnComment;
import org.plasma.provisioning.rdb.oracle.g11.sys.*;
[ "org.plasma.provisioning" ]
org.plasma.provisioning;
1,900,322
public final Cursor getAllFeedsCursor() { Cursor c = db.query(TABLE_NAME_FEEDS, FEED_SEL_STD, null, null, null, null, KEY_TITLE + " COLLATE NOCASE ASC"); return c; }
final Cursor function() { Cursor c = db.query(TABLE_NAME_FEEDS, FEED_SEL_STD, null, null, null, null, KEY_TITLE + STR); return c; }
/** * Get all Feeds from the Feed Table. * * @return The cursor of the query */
Get all Feeds from the Feed Table
getAllFeedsCursor
{ "repo_name": "corecode/AntennaPod", "path": "core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java", "license": "mit", "size": 72353 }
[ "android.database.Cursor" ]
import android.database.Cursor;
import android.database.*;
[ "android.database" ]
android.database;
590,766
public boolean addValueToField(String fieldName, String value) { if (fieldNames.contains(fieldName) && values.get(fieldName) == null) { List<String> vec = new Vector<String>(); vec.add(value); values.put(fieldName, vec); return true; } else if ...
boolean function(String fieldName, String value) { if (fieldNames.contains(fieldName) && values.get(fieldName) == null) { List<String> vec = new Vector<String>(); vec.add(value); values.put(fieldName, vec); return true; } else if (fieldNames.contains(fieldName) && values.get(fieldName) != null && !values.get(fieldName)...
/** * addValueToField added a new value to one existing field * @param fieldName name of the field * @param value the value * @return true if the adding step was successful */
addValueToField added a new value to one existing field
addValueToField
{ "repo_name": "tomck/intermine", "path": "intermine/web/main/src/org/intermine/web/autocompletion/LuceneObjectClass.java", "license": "lgpl-2.1", "size": 4086 }
[ "java.util.List", "java.util.Vector" ]
import java.util.List; import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
2,060,930
protected List<PdfDocDssRevision> getDssRevisions() { List<PdfDocDssRevision> dssRevisions = new ArrayList<>(); for (PdfRevision pdfRevision : getRevisions()) { if (pdfRevision instanceof PdfDocDssRevision) { dssRevisions.add((PdfDocDssRevision) pdfRevision); ...
List<PdfDocDssRevision> function() { List<PdfDocDssRevision> dssRevisions = new ArrayList<>(); for (PdfRevision pdfRevision : getRevisions()) { if (pdfRevision instanceof PdfDocDssRevision) { dssRevisions.add((PdfDocDssRevision) pdfRevision); } } return Utils.reverseList(dssRevisions); }
/** * This method returns a list of DSS revisions * * @return a list of {@link PdfDocDssRevision}s */
This method returns a list of DSS revisions
getDssRevisions
{ "repo_name": "esig/dss", "path": "dss-pades/src/main/java/eu/europa/esig/dss/pades/validation/PDFDocumentValidator.java", "license": "lgpl-2.1", "size": 15022 }
[ "eu.europa.esig.dss.pdf.PdfDocDssRevision", "eu.europa.esig.dss.utils.Utils", "java.util.ArrayList", "java.util.List" ]
import eu.europa.esig.dss.pdf.PdfDocDssRevision; import eu.europa.esig.dss.utils.Utils; import java.util.ArrayList; import java.util.List;
import eu.europa.esig.dss.pdf.*; import eu.europa.esig.dss.utils.*; import java.util.*;
[ "eu.europa.esig", "java.util" ]
eu.europa.esig; java.util;
23,814
@Override protected boolean ignoreField(Field field) { Serialized serialized = field.getAnnotation(Serialized.class); // if we have a @Serialized annotation that is relevant to serializationContext, let it determine serializability if (serialized != null && SerializationContext.MAI...
boolean function(Field field) { Serialized serialized = field.getAnnotation(Serialized.class); if (serialized != null && SerializationContext.MAINTENANCE.matches(serialized.forContexts())) { return !serialized.enabled(); } if (field.getAnnotation(Transient.class) != null) { return true; } return false; }
/** * Examines {@link Serialized} and {@link Transient} annotations to determine if the field should not be serialized. * * <p>{@inheritDoc}</p> */
Examines <code>Serialized</code> and <code>Transient</code> annotations to determine if the field should not be serialized.
ignoreField
{ "repo_name": "ricepanda/rice-git3", "path": "rice-framework/krad-service-impl/src/main/java/org/kuali/rice/krad/service/impl/DataObjectSerializerServiceImpl.java", "license": "apache-2.0", "size": 3117 }
[ "java.lang.reflect.Field", "javax.persistence.Transient", "org.kuali.rice.krad.data.provider.annotation.SerializationContext", "org.kuali.rice.krad.data.provider.annotation.Serialized" ]
import java.lang.reflect.Field; import javax.persistence.Transient; import org.kuali.rice.krad.data.provider.annotation.SerializationContext; import org.kuali.rice.krad.data.provider.annotation.Serialized;
import java.lang.reflect.*; import javax.persistence.*; import org.kuali.rice.krad.data.provider.annotation.*;
[ "java.lang", "javax.persistence", "org.kuali.rice" ]
java.lang; javax.persistence; org.kuali.rice;
189,897
int completeAdvanced(String buffer, int cursor, List<Completion> candidates);
int completeAdvanced(String buffer, int cursor, List<Completion> candidates);
/** * Populates a list of completion candidates. * * @param buffer * @param cursor * @param candidates * @return */
Populates a list of completion candidates
completeAdvanced
{ "repo_name": "danimaniarqsoft/asterix-gen", "path": "asterix-modules/asterix-shell-core/src/main/java/org/springframework/shell/core/Parser.java", "license": "mit", "size": 1407 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,474,625
public static almanacEType fromPerUnaligned(byte[] encodedBytes) { almanacEType result = new almanacEType(); result.decodePerUnaligned(new BitStreamReader(encodedBytes)); return result; }
static almanacEType function(byte[] encodedBytes) { almanacEType result = new almanacEType(); result.decodePerUnaligned(new BitStreamReader(encodedBytes)); return result; }
/** * Creates a new almanacEType from encoded stream. */
Creates a new almanacEType from encoded stream
fromPerUnaligned
{ "repo_name": "google/supl-client", "path": "src/main/java/com/google/location/suplclient/asn1/supl2/rrlp_components/AlmanacElement.java", "license": "apache-2.0", "size": 47411 }
[ "com.google.location.suplclient.asn1.base.BitStreamReader" ]
import com.google.location.suplclient.asn1.base.BitStreamReader;
import com.google.location.suplclient.asn1.base.*;
[ "com.google.location" ]
com.google.location;
2,352,238
@Test public void testDeserialize() throws DeserializationException { NeighborSolicitation ns = deserializer.deserialize(bytePacket, 0, bytePacket.length); assertArrayEquals(ns.getTargetAddress(), TARGET_ADDRESS); // Check the option(s) assertThat(ns.getOptions().size(), is(1))...
void function() throws DeserializationException { NeighborSolicitation ns = deserializer.deserialize(bytePacket, 0, bytePacket.length); assertArrayEquals(ns.getTargetAddress(), TARGET_ADDRESS); assertThat(ns.getOptions().size(), is(1)); NeighborDiscoveryOptions.Option option = ns.getOptions().get(0); assertThat(option....
/** * Tests deserialize and getters. */
Tests deserialize and getters
testDeserialize
{ "repo_name": "packet-tracker/onos", "path": "utils/misc/src/test/java/org/onlab/packet/ndp/NeighborSolicitationTest.java", "license": "apache-2.0", "size": 4923 }
[ "org.hamcrest.Matchers", "org.junit.Assert", "org.onlab.packet.DeserializationException" ]
import org.hamcrest.Matchers; import org.junit.Assert; import org.onlab.packet.DeserializationException;
import org.hamcrest.*; import org.junit.*; import org.onlab.packet.*;
[ "org.hamcrest", "org.junit", "org.onlab.packet" ]
org.hamcrest; org.junit; org.onlab.packet;
1,731,036
public static byte[] generateSalt() throws GeneralSecurityException { return randomBytes(PBE_SALT_LENGTH_BITS); }
static byte[] function() throws GeneralSecurityException { return randomBytes(PBE_SALT_LENGTH_BITS); }
/** * Generates a random salt. * @return The random salt suitable for generateKeyFromPassword. */
Generates a random salt
generateSalt
{ "repo_name": "orhanobut/java-aes-crypto", "path": "AesCbcWithIntegrity.java", "license": "mit", "size": 35974 }
[ "java.security.GeneralSecurityException" ]
import java.security.GeneralSecurityException;
import java.security.*;
[ "java.security" ]
java.security;
376,697
@Message(id=16847, value = "'bean' or 'class' must be specified for Java transformer definition") SwitchYardException beanOrClassMustBeSpecified();
@Message(id=16847, value = STR) SwitchYardException beanOrClassMustBeSpecified();
/** * beanNotFoundInCDIRegistry method definition. * @return SwitchYardException */
beanNotFoundInCDIRegistry method definition
beanOrClassMustBeSpecified
{ "repo_name": "cunningt/switchyard", "path": "core/transform/src/main/java/org/switchyard/transform/internal/TransformMessages.java", "license": "apache-2.0", "size": 22568 }
[ "org.jboss.logging.annotations.Message", "org.switchyard.SwitchYardException" ]
import org.jboss.logging.annotations.Message; import org.switchyard.SwitchYardException;
import org.jboss.logging.annotations.*; import org.switchyard.*;
[ "org.jboss.logging", "org.switchyard" ]
org.jboss.logging; org.switchyard;
2,377,681
SecurityTeamsManager getSecurityTeamsManager();
SecurityTeamsManager getSecurityTeamsManager();
/** * Gets a Security Teams manager. * @return Security Teams manager */
Gets a Security Teams manager
getSecurityTeamsManager
{ "repo_name": "licehammer/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/PerunBl.java", "license": "bsd-2-clause", "size": 5201 }
[ "cz.metacentrum.perun.core.api.SecurityTeamsManager" ]
import cz.metacentrum.perun.core.api.SecurityTeamsManager;
import cz.metacentrum.perun.core.api.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
2,040,952
protected boolean assumePersistedDataIsEscaped() { return JiveGlobals.getBooleanProperty( "jdbcGroupProvider.isEscaped", true ); }
boolean function() { return JiveGlobals.getBooleanProperty( STR, true ); }
/** * XMPP disallows some characters in identifiers, requiring them to be escaped. * * This implementation assumes that the database returns properly escaped identifiers, * but can apply escaping by setting the value of the 'jdbcGroupProvider.isEscaped' * property to 'false'. * * @ret...
XMPP disallows some characters in identifiers, requiring them to be escaped. This implementation assumes that the database returns properly escaped identifiers, but can apply escaping by setting the value of the 'jdbcGroupProvider.isEscaped' property to 'false'
assumePersistedDataIsEscaped
{ "repo_name": "akrherz/Openfire", "path": "xmppserver/src/main/java/org/jivesoftware/openfire/group/JDBCGroupProvider.java", "license": "apache-2.0", "size": 12689 }
[ "org.jivesoftware.util.JiveGlobals" ]
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.*;
[ "org.jivesoftware.util" ]
org.jivesoftware.util;
1,821,378
Collection<MRDEntry> getElements(); Sense getSense(); Collection<Sense> getElementSenses();
Collection<MRDEntry> getElements(); Sense getSense(); Collection<Sense> getElementSenses();
/** * The senses of the elements in the synset. It is assumed that each element * at least one of its senses is in this list. e.g., * <code>elementSenses[i] = elements[j].senses[k]</code> for unique i,j,k * @return The collection of senses */
The senses of the elements in the synset. It is assumed that each element at least one of its senses is in this list. e.g., <code>elementSenses[i] = elements[j].senses[k]</code> for unique i,j,k
getElementSenses
{ "repo_name": "monnetproject/coal", "path": "nlp.core/src/main/java/eu/monnetproject/mrd/Synset.java", "license": "bsd-3-clause", "size": 773 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,602,597
public static void invokeCallbackWithResponse(ModbusReadRequestBlueprint message, ModbusReadCallback callback, ModbusResponse response) { try { getLogger().trace("Calling read response callback {} for request {}. Response was {}", callback, message, response); ...
static void function(ModbusReadRequestBlueprint message, ModbusReadCallback callback, ModbusResponse response) { try { getLogger().trace(STR, callback, message, response); if (message.getFunctionCode() == ModbusReadFunctionCode.READ_COILS) { BitVector bits = ((ReadCoilsResponse) response).getCoils(); callback.onBits(me...
/** * Invoke callback with the data received * * @param message original request * @param callback callback for read * @param response Modbus library response object */
Invoke callback with the data received
invokeCallbackWithResponse
{ "repo_name": "lewie/openhab2", "path": "addons/io/org.openhab.io.transport.modbus/src/main/java/org/openhab/io/transport/modbus/internal/ModbusLibraryWrapper.java", "license": "epl-1.0", "size": 14099 }
[ "net.wimpi.modbus.msg.ModbusResponse", "net.wimpi.modbus.msg.ReadCoilsResponse", "net.wimpi.modbus.msg.ReadInputDiscretesResponse", "net.wimpi.modbus.msg.ReadInputRegistersResponse", "net.wimpi.modbus.msg.ReadMultipleRegistersResponse", "net.wimpi.modbus.util.BitVector", "org.openhab.io.transport.modbus...
import net.wimpi.modbus.msg.ModbusResponse; import net.wimpi.modbus.msg.ReadCoilsResponse; import net.wimpi.modbus.msg.ReadInputDiscretesResponse; import net.wimpi.modbus.msg.ReadInputRegistersResponse; import net.wimpi.modbus.msg.ReadMultipleRegistersResponse; import net.wimpi.modbus.util.BitVector; import org.openhab...
import net.wimpi.modbus.msg.*; import net.wimpi.modbus.util.*; import org.openhab.io.transport.modbus.*;
[ "net.wimpi.modbus", "org.openhab.io" ]
net.wimpi.modbus; org.openhab.io;
1,134,152
public static BufferedImage niceImage(BufferedImage im, int width, int height, boolean exact) { int ts = Math.max(width, height); double aspect = (double) im.getWidth() / (double) im.getHeight(); int sw = ts; int sh = ts; if (aspect < 1) { sw *= aspect; }...
static BufferedImage function(BufferedImage im, int width, int height, boolean exact) { int ts = Math.max(width, height); double aspect = (double) im.getWidth() / (double) im.getHeight(); int sw = ts; int sh = ts; if (aspect < 1) { sw *= aspect; } else if (aspect > 1) { sh /= aspect; } double scale = (double) Math.max(...
/** * Scale an image to a specified width/height. * @param im The image to scale * @param width The expected width * @param height The expected height * @param exact If true, ensure the output matches, otherwise use an aspect * @return scaled image */
Scale an image to a specified width/height
niceImage
{ "repo_name": "smithkm/geoserver-exts", "path": "printng/src/main/java/org/geoserver/printng/PrintSupport.java", "license": "gpl-2.0", "size": 3414 }
[ "java.awt.Graphics2D", "java.awt.RenderingHints", "java.awt.geom.AffineTransform", "java.awt.image.BufferedImage" ]
import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage;
import java.awt.*; import java.awt.geom.*; import java.awt.image.*;
[ "java.awt" ]
java.awt;
918,799
Publisher<Boolean> expire(long timeToLive, TimeUnit timeUnit);
Publisher<Boolean> expire(long timeToLive, TimeUnit timeUnit);
/** * Set a timeout for object in mode. After the timeout has expired, * the key will automatically be deleted. * * @param timeToLive - timeout before object will be deleted * @param timeUnit - timeout time unit * @return <code>true</code> if the timeout was set and <code>false</code> if ...
Set a timeout for object in mode. After the timeout has expired, the key will automatically be deleted
expire
{ "repo_name": "ContaAzul/redisson", "path": "redisson/src/main/java/org/redisson/api/RExpirableReactive.java", "license": "apache-2.0", "size": 2505 }
[ "java.util.concurrent.TimeUnit", "org.reactivestreams.Publisher" ]
import java.util.concurrent.TimeUnit; import org.reactivestreams.Publisher;
import java.util.concurrent.*; import org.reactivestreams.*;
[ "java.util", "org.reactivestreams" ]
java.util; org.reactivestreams;
2,573,927