method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public static Uri chatsAttentionSound() { return getSound(R.string.chats_attention_sound_key, Settings.System.DEFAULT_RINGTONE_URI, R.string.chats_attention_sound_default); }
static Uri function() { return getSound(R.string.chats_attention_sound_key, Settings.System.DEFAULT_RINGTONE_URI, R.string.chats_attention_sound_default); }
/** * Gets event sound. It will save DEFAULT_NOTIFICATION_URI if value is * default. * * @return {@link Uri} or <code>null</code>. */
Gets event sound. It will save DEFAULT_NOTIFICATION_URI if value is default
chatsAttentionSound
{ "repo_name": "bigbugbb/iTracker", "path": "app/src/main/java/com/itracker/android/data/SettingsManager.java", "license": "apache-2.0", "size": 28234 }
[ "android.net.Uri", "android.provider.Settings" ]
import android.net.Uri; import android.provider.Settings;
import android.net.*; import android.provider.*;
[ "android.net", "android.provider" ]
android.net; android.provider;
2,781,515
public static byte[] base64Encode(byte[] data) throws IllegalArgumentException { return Base64.getEncoder().encode(data); }
static byte[] function(byte[] data) throws IllegalArgumentException { return Base64.getEncoder().encode(data); }
/** * Base64 encoding using {@link Base64#getEncoder() } encoder * * @param data Data to encode * @return The Base64 encoded String * @throws IllegalArgumentException In case of error while encoding the given bytes */
Base64 encoding using <code>Base64#getEncoder() </code> encoder
base64Encode
{ "repo_name": "icecp/icecp", "path": "icecp-node/src/main/java/com/intel/icecp/node/security/crypto/utils/CryptoUtils.java", "license": "apache-2.0", "size": 5374 }
[ "java.util.Base64" ]
import java.util.Base64;
import java.util.*;
[ "java.util" ]
java.util;
1,287,122
String[] scanForWetatorTestFiles(String pTestFileDir, String[] pIncludePattern, String[] pExcludePattern) { final DirectoryScanner directoryScanner = new DirectoryScanner(); directoryScanner.setBasedir(pTestFileDir); directoryScanner.setIncludes(pIncludePattern); directoryScanner.set...
String[] scanForWetatorTestFiles(String pTestFileDir, String[] pIncludePattern, String[] pExcludePattern) { final DirectoryScanner directoryScanner = new DirectoryScanner(); directoryScanner.setBasedir(pTestFileDir); directoryScanner.setIncludes(pIncludePattern); directoryScanner.setExcludes(pExcludePattern); directory...
/** * Scans the given directory and finds all files that match the given include * and exclude patterns. * * @param pTestFileDir * directory of the test files * @param pIncludePattern * pattern of files that shall be included * @param pExcludePattern * ...
Scans the given directory and finds all files that match the given include and exclude patterns
scanForWetatorTestFiles
{ "repo_name": "fred4jupiter/wetator-maven-plugin", "path": "src/main/java/org/wetator/WetatorMojo.java", "license": "apache-2.0", "size": 6327 }
[ "org.codehaus.plexus.util.DirectoryScanner" ]
import org.codehaus.plexus.util.DirectoryScanner;
import org.codehaus.plexus.util.*;
[ "org.codehaus.plexus" ]
org.codehaus.plexus;
1,098,754
public int getMaxWait() { return JiveGlobals.getIntProperty("xmpp.httpbind.client.requests.wait", Integer.MAX_VALUE); }
int function() { return JiveGlobals.getIntProperty(STR, Integer.MAX_VALUE); }
/** * Returns the longest time (in seconds) that Openfire is allowed to wait before responding to * any request during the session. This enables the client to prevent its TCP connection from * expiring due to inactivity, as well as to limit the delay before it discovers any network * failure. ...
Returns the longest time (in seconds) that Openfire is allowed to wait before responding to any request during the session. This enables the client to prevent its TCP connection from expiring due to inactivity, as well as to limit the delay before it discovers any network failure
getMaxWait
{ "repo_name": "eraserx99/OF", "path": "src/java/org/jivesoftware/openfire/http/HttpSessionManager.java", "license": "apache-2.0", "size": 16930 }
[ "org.jivesoftware.util.JiveGlobals" ]
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.*;
[ "org.jivesoftware.util" ]
org.jivesoftware.util;
2,899,255
void ReceivePacket ( DatagramSocket sock) throws IOException;
void ReceivePacket ( DatagramSocket sock) throws IOException;
/** * Receive packets on the specified datagram socket. * * @param sock java.net.DatagramSocket * @exception java.io.IOException The exception description. */
Receive packets on the specified datagram socket
ReceivePacket
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/alfresco-jlan/source/java/org/alfresco/jlan/netbios/server/PacketReceiver.java", "license": "lgpl-3.0", "size": 1219 }
[ "java.io.IOException", "java.net.DatagramSocket" ]
import java.io.IOException; import java.net.DatagramSocket;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
1,313,590
public void checkForPrimaryKey(Table subject, boolean forDeletion) throws NoPrimaryKeyException { Set<Table> toCheck = new HashSet<Table>(subject.closure(true)); if (forDeletion) { Set<Table> border = new HashSet<Table>(); for (Table table: toCheck) { for (Association a: table.associati...
void function(Table subject, boolean forDeletion) throws NoPrimaryKeyException { Set<Table> toCheck = new HashSet<Table>(subject.closure(true)); if (forDeletion) { Set<Table> border = new HashSet<Table>(); for (Table table: toCheck) { for (Association a: table.associations) { if (!a.reversalAssociation.isIgnored()) { b...
/** * Checks whether all tables in the closure of a given subject have primary keys. * * @param subject the subject * @throws NoPrimaryKeyException if a table has no primary key */
Checks whether all tables in the closure of a given subject have primary keys
checkForPrimaryKey
{ "repo_name": "pellcorp/jailer", "path": "src/main/net/sf/jailer/datamodel/DataModel.java", "license": "apache-2.0", "size": 31429 }
[ "java.util.HashSet", "java.util.Set" ]
import java.util.HashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
552,358
@Override public void notifyChanged(Notification notification) { updateChildren(notification); super.notifyChanged(notification); }
void function(Notification notification) { updateChildren(notification); super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>.
notifyChanged
{ "repo_name": "smadelenat/CapellaModeAutomata", "path": "Language/ExpressionLanguage/com.thalesgroup.trt.mde.vp.expression.model.edit/src/com/thalesgroup/trt/mde/vp/expression/expression/provider/AbstractGuardItemProvider.java", "license": "epl-1.0", "size": 3420 }
[ "org.eclipse.emf.common.notify.Notification" ]
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,115,039
public void setValidator(Validator validator) { this.validator = validator; }
void function(Validator validator) { this.validator = validator; }
/** * Set the validator. * @param validator the validator */
Set the validator
setValidator
{ "repo_name": "javyzheng/spring-boot", "path": "spring-boot/src/main/java/org/springframework/boot/bind/PropertiesConfigurationFactory.java", "license": "apache-2.0", "size": 11005 }
[ "org.springframework.validation.Validator" ]
import org.springframework.validation.Validator;
import org.springframework.validation.*;
[ "org.springframework.validation" ]
org.springframework.validation;
871,675
@Override public Map<String, Object> getKeyMapOfSalarySettingItem() { return ObjectUtil.buildPropertyMap(this, SalarySettingExpansion.getPrimaryKeyFields()); }
Map<String, Object> function() { return ObjectUtil.buildPropertyMap(this, SalarySettingExpansion.getPrimaryKeyFields()); }
/** * get the key map for the salary setting expension * * @return the key map for the salary setting expension */
get the key map for the salary setting expension
getKeyMapOfSalarySettingItem
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/module/bc/document/web/struts/QuickSalarySettingForm.java", "license": "agpl-3.0", "size": 5700 }
[ "java.util.Map", "org.kuali.kfs.module.bc.businessobject.SalarySettingExpansion", "org.kuali.kfs.sys.ObjectUtil" ]
import java.util.Map; import org.kuali.kfs.module.bc.businessobject.SalarySettingExpansion; import org.kuali.kfs.sys.ObjectUtil;
import java.util.*; import org.kuali.kfs.module.bc.businessobject.*; import org.kuali.kfs.sys.*;
[ "java.util", "org.kuali.kfs" ]
java.util; org.kuali.kfs;
416,782
public Map<String, Settings> getAsGroups() throws SettingsException { return getAsGroups(false); }
Map<String, Settings> function() throws SettingsException { return getAsGroups(false); }
/** * Returns group settings for the given setting prefix. */
Returns group settings for the given setting prefix
getAsGroups
{ "repo_name": "strahanjen/strahanjen.github.io", "path": "elasticsearch-master/core/src/main/java/org/elasticsearch/common/settings/Settings.java", "license": "bsd-3-clause", "size": 39113 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,408,681
public void addDescriptorArray(TupleDescriptor[] td, TupleDescriptor parent, int catalogNumber, boolean allowDuplicates, TransactionController tc) throws StandardException { TabInfoImpl ti = (catalogNumber < NUM_CORE) ? coreInfo[catalogNumber] : getNonCoreTI(cat...
void function(TupleDescriptor[] td, TupleDescriptor parent, int catalogNumber, boolean allowDuplicates, TransactionController tc) throws StandardException { TabInfoImpl ti = (catalogNumber < NUM_CORE) ? coreInfo[catalogNumber] : getNonCoreTI(catalogNumber); CatalogRowFactory crf = ti.getCatalogRowFactory(); ExecRow[] r...
/** array version of addDescriptor. * @see DataDictionary#addDescriptor */
array version of addDescriptor
addDescriptorArray
{ "repo_name": "papicella/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/sql/catalog/DataDictionaryImpl.java", "license": "apache-2.0", "size": 403048 }
[ "com.pivotal.gemfirexd.internal.iapi.error.StandardException", "com.pivotal.gemfirexd.internal.iapi.sql.dictionary.CatalogRowFactory", "com.pivotal.gemfirexd.internal.iapi.sql.dictionary.TupleDescriptor", "com.pivotal.gemfirexd.internal.iapi.sql.execute.ExecRow", "com.pivotal.gemfirexd.internal.iapi.store.a...
import com.pivotal.gemfirexd.internal.iapi.error.StandardException; import com.pivotal.gemfirexd.internal.iapi.sql.dictionary.CatalogRowFactory; import com.pivotal.gemfirexd.internal.iapi.sql.dictionary.TupleDescriptor; import com.pivotal.gemfirexd.internal.iapi.sql.execute.ExecRow; import com.pivotal.gemfirexd.interna...
import com.pivotal.gemfirexd.internal.iapi.error.*; import com.pivotal.gemfirexd.internal.iapi.sql.dictionary.*; import com.pivotal.gemfirexd.internal.iapi.sql.execute.*; import com.pivotal.gemfirexd.internal.iapi.store.access.*;
[ "com.pivotal.gemfirexd" ]
com.pivotal.gemfirexd;
1,057,312
@Override public ProjectsDAO doCreateProjectsDAO(Context context) { return new ProjectsDAOImpl(context); }
ProjectsDAO function(Context context) { return new ProjectsDAOImpl(context); }
/** * This method specifies the concrete DAO object which should be used. * * @param context The application context under which the database object will be created * @return The concrete ProjectsDAO will be returned * methodtype initialization method */
This method specifies the concrete DAO object which should be used
doCreateProjectsDAO
{ "repo_name": "corchwll/amos-ss15-proj5_android", "path": "app/src/main/java/dess15proj5/fau/cs/osr_amos/mobiletimerecording/persistence/SQLiteDataAccessObjectFactory.java", "license": "agpl-3.0", "size": 2581 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
2,552,534
private static void shutdownService(Optional<? extends ManagedService> service, ShutdownEvent.ShutdownType shutdownType) { if (service.isPresent()) { service.get().shutdownNow(shutdownType); } }
static void function(Optional<? extends ManagedService> service, ShutdownEvent.ShutdownType shutdownType) { if (service.isPresent()) { service.get().shutdownNow(shutdownType); } }
/** * <p>Shutdown a managed service</p> * * @param service The service * @param shutdownType The shutdown type providing context */
Shutdown a managed service
shutdownService
{ "repo_name": "oscarguindzberg/multibit-hd", "path": "mbhd-core/src/main/java/org/multibit/hd/core/services/CoreServices.java", "license": "mit", "size": 20718 }
[ "com.google.common.base.Optional", "org.multibit.hd.core.events.ShutdownEvent" ]
import com.google.common.base.Optional; import org.multibit.hd.core.events.ShutdownEvent;
import com.google.common.base.*; import org.multibit.hd.core.events.*;
[ "com.google.common", "org.multibit.hd" ]
com.google.common; org.multibit.hd;
2,140,330
@Test public void testT1RV9D1_T1LV5D9() { test_id = getTestId("T1RV9D1", "T1LV5D9", "176"); String src = selectTRVD("T1RV9D1"); String dest = selectTLVD("T1LV5D9"); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace()...
void function() { test_id = getTestId(STR, STR, "176"); String src = selectTRVD(STR); String dest = selectTLVD(STR); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace(); } catch (TokenStreamException e) { e.printStackTrace(); } assertTrue(ParamFailure2...
/** * Perform the test for the given matrix column (T1RV9D1) and row (T1LV5D9). * */
Perform the test for the given matrix column (T1RV9D1) and row (T1LV5D9)
testT1RV9D1_T1LV5D9
{ "repo_name": "jason-rhodes/bridgepoint", "path": "src/org.xtuml.bp.als.oal.test/src/org/xtuml/bp/als/oal/test/SingleDimensionFixedArrayAssigmentTest_16_Generics.java", "license": "apache-2.0", "size": 186177 }
[ "org.xtuml.bp.ui.graphics.editor.GraphicalEditor" ]
import org.xtuml.bp.ui.graphics.editor.GraphicalEditor;
import org.xtuml.bp.ui.graphics.editor.*;
[ "org.xtuml.bp" ]
org.xtuml.bp;
572,998
protected void processBootstrap(ChannelFuture future) { // Important: Must be addFirst() future.channel().pipeline().addFirst(handler); }
void function(ChannelFuture future) { future.channel().pipeline().addFirst(handler); }
/** * Process a single channel future. * @param future - the future. */
Process a single channel future
processBootstrap
{ "repo_name": "hexosse/ProtocolLib", "path": "modules/v1_7_R4/src/main/java/com/comphenix/protocol/compat/netty/shaded/ShadedBootstrapList.java", "license": "gpl-2.0", "size": 5726 }
[ "net.minecraft.util.io.netty.channel.ChannelFuture" ]
import net.minecraft.util.io.netty.channel.ChannelFuture;
import net.minecraft.util.io.netty.channel.*;
[ "net.minecraft.util" ]
net.minecraft.util;
177,122
public Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String privateEndpointName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (privateEndpoin...
Observable<ServiceResponse<Void>> function(String resourceGroupName, String privateEndpointName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (privateEndpointName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { throw new IllegalArgume...
/** * Deletes the specified private endpoint. * * @param resourceGroupName The name of the resource group. * @param privateEndpointName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request ...
Deletes the specified private endpoint
deleteWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/network/v2020_03_01/implementation/PrivateEndpointsInner.java", "license": "mit", "size": 59878 }
[ "com.google.common.reflect.TypeToken", "com.microsoft.rest.ServiceResponse" ]
import com.google.common.reflect.TypeToken; import com.microsoft.rest.ServiceResponse;
import com.google.common.reflect.*; import com.microsoft.rest.*;
[ "com.google.common", "com.microsoft.rest" ]
com.google.common; com.microsoft.rest;
679,578
public void deleteSystemProperty(String propertyKey) throws ServiceException { if(JiveGlobals.getProperty(propertyKey) != null) { JiveGlobals.deleteProperty(propertyKey); } else { throw new ServiceException("Could not find property", propertyKey, ExceptionType.PROPERTY_NOT_FO...
void function(String propertyKey) throws ServiceException { if(JiveGlobals.getProperty(propertyKey) != null) { JiveGlobals.deleteProperty(propertyKey); } else { throw new ServiceException(STR, propertyKey, ExceptionType.PROPERTY_NOT_FOUND, Response.Status.NOT_FOUND); } }
/** * Delete system property. * * @param propertyKey the property key * @throws ServiceException the service exception */
Delete system property
deleteSystemProperty
{ "repo_name": "Gugli/Openfire", "path": "src/plugins/restAPI/src/java/org/jivesoftware/openfire/plugin/rest/RESTServicePlugin.java", "license": "apache-2.0", "size": 12497 }
[ "javax.ws.rs.core.Response", "org.jivesoftware.openfire.plugin.rest.exceptions.ExceptionType", "org.jivesoftware.openfire.plugin.rest.exceptions.ServiceException", "org.jivesoftware.util.JiveGlobals" ]
import javax.ws.rs.core.Response; import org.jivesoftware.openfire.plugin.rest.exceptions.ExceptionType; import org.jivesoftware.openfire.plugin.rest.exceptions.ServiceException; import org.jivesoftware.util.JiveGlobals;
import javax.ws.rs.core.*; import org.jivesoftware.openfire.plugin.rest.exceptions.*; import org.jivesoftware.util.*;
[ "javax.ws", "org.jivesoftware.openfire", "org.jivesoftware.util" ]
javax.ws; org.jivesoftware.openfire; org.jivesoftware.util;
1,369,829
protected void validateJobTracker(String jobTrackerUri) throws HadoopAccessorException { validate(jobTrackerUri, jobTrackerWhitelist, ErrorCode.E0900); }
void function(String jobTrackerUri) throws HadoopAccessorException { validate(jobTrackerUri, jobTrackerWhitelist, ErrorCode.E0900); }
/** * Validate Job tracker * @param jobTrackerUri * @throws HadoopAccessorException */
Validate Job tracker
validateJobTracker
{ "repo_name": "terrancesnyder/oozie-hadoop2", "path": "core/src/main/java/org/apache/oozie/service/HadoopAccessorService.java", "license": "apache-2.0", "size": 23683 }
[ "org.apache.oozie.ErrorCode" ]
import org.apache.oozie.ErrorCode;
import org.apache.oozie.*;
[ "org.apache.oozie" ]
org.apache.oozie;
286,842
private void testCfg(String input, String expected, boolean shouldTraverseFunctions) { Compiler compiler = new Compiler(); ControlFlowAnalysis cfa = new ControlFlowAnalysis(compiler, shouldTraverseFunctions, true); Node root = compiler.parseSyntheticCode("cfgtest", input); cfa.process(n...
void function(String input, String expected, boolean shouldTraverseFunctions) { Compiler compiler = new Compiler(); ControlFlowAnalysis cfa = new ControlFlowAnalysis(compiler, shouldTraverseFunctions, true); Node root = compiler.parseSyntheticCode(STR, input); cfa.process(null, root); ControlFlowGraph<Node> cfg = cfa.g...
/** * Given an input in JavaScript, test if the control flow analysis * creates the proper control flow graph by comparing the expected * Dot file output. * * @param input Input JavaScript. * @param expected Expected Graphviz Dot file. * @param shouldTraverseFunctions Whether to traverse functions ...
Given an input in JavaScript, test if the control flow analysis creates the proper control flow graph by comparing the expected Dot file output
testCfg
{ "repo_name": "GerHobbelt/closure-compiler", "path": "test/com/google/javascript/jscomp/ControlFlowAnalysisTest.java", "license": "apache-2.0", "size": 65633 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
711,352
@Override public ImageIcon getModelIcon() { return XMLIconLibrary.XML_FILE_ICON; }
ImageIcon function() { return XMLIconLibrary.XML_FILE_ICON; }
/** * Return icon representing a model of underlying technology * * @return */
Return icon representing a model of underlying technology
getModelIcon
{ "repo_name": "openflexo-team/openflexo-technology-adapters", "path": "openflexo-technology-adapters-ui/xmlconnector-ui/src/main/java/org/openflexo/technologyadapter/xml/controller/XMLAdapterController.java", "license": "gpl-3.0", "size": 7194 }
[ "javax.swing.ImageIcon", "org.openflexo.technologyadapter.xml.gui.XMLIconLibrary" ]
import javax.swing.ImageIcon; import org.openflexo.technologyadapter.xml.gui.XMLIconLibrary;
import javax.swing.*; import org.openflexo.technologyadapter.xml.gui.*;
[ "javax.swing", "org.openflexo.technologyadapter" ]
javax.swing; org.openflexo.technologyadapter;
691,413
@Override public Jingle parse(XmlPullParser parser, int intialDepth) throws XmlPullParserException, IOException, SmackException { Jingle jingle = new Jingle(); String sid = ""; JingleActionEnum action; String initiator = ""; String responder = ""; ...
Jingle function(XmlPullParser parser, int intialDepth) throws XmlPullParserException, IOException, SmackException { Jingle jingle = new Jingle(); String sid = STRSTRSTRSTRsidSTRSTRactionSTRSTRinitiatorSTRSTRresponderSTRUnknown transport namespace \STR\STR); } } else if (namespace.equals(JingleContentInfo.Audio.NAMESPAC...
/** * Parse a iq/jingle element. * @throws IOException * @throws XmlPullParserException * @throws SmackException */
Parse a iq/jingle element
parse
{ "repo_name": "TTalkIM/Smack", "path": "smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/provider/JingleProvider.java", "license": "apache-2.0", "size": 5297 }
[ "java.io.IOException", "org.jivesoftware.smack.SmackException", "org.jivesoftware.smackx.jingleold.packet.Jingle", "org.jivesoftware.smackx.jingleold.packet.JingleContentInfo", "org.xmlpull.v1.XmlPullParser", "org.xmlpull.v1.XmlPullParserException" ]
import java.io.IOException; import org.jivesoftware.smack.SmackException; import org.jivesoftware.smackx.jingleold.packet.Jingle; import org.jivesoftware.smackx.jingleold.packet.JingleContentInfo; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException;
import java.io.*; import org.jivesoftware.smack.*; import org.jivesoftware.smackx.jingleold.packet.*; import org.xmlpull.v1.*;
[ "java.io", "org.jivesoftware.smack", "org.jivesoftware.smackx", "org.xmlpull.v1" ]
java.io; org.jivesoftware.smack; org.jivesoftware.smackx; org.xmlpull.v1;
100,961
protected String getLabel(String typeName) { try { return GraphixEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); } catch(MissingResourceException mre) { GraphixEditorPlugin.INSTANCE.log(mre); } return typeName; }
String function(String typeName) { try { return GraphixEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); } catch(MissingResourceException mre) { GraphixEditorPlugin.INSTANCE.log(mre); } return typeName; }
/** * Returns the label for the specified type name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Returns the label for the specified type name.
getLabel
{ "repo_name": "xpomul/cdo-xtext", "path": "examples/net.winklerweb.cdoxtext.example.graphix.editor/src/net/winklerweb/cdoxtext/example/graphix/presentation/GraphixModelWizard.java", "license": "epl-1.0", "size": 18176 }
[ "java.util.MissingResourceException", "net.winklerweb.cdoxtext.example.graphix.provider.GraphixEditPlugin" ]
import java.util.MissingResourceException; import net.winklerweb.cdoxtext.example.graphix.provider.GraphixEditPlugin;
import java.util.*; import net.winklerweb.cdoxtext.example.graphix.provider.*;
[ "java.util", "net.winklerweb.cdoxtext" ]
java.util; net.winklerweb.cdoxtext;
2,075,840
public static synchronized <T> void registerGaugeIfAbsent(String name, Gauge<T> metric) { if (!METRIC_REGISTRY.getGauges().containsKey(name)) { METRIC_REGISTRY.register(name, metric); } }
static synchronized <T> void function(String name, Gauge<T> metric) { if (!METRIC_REGISTRY.getGauges().containsKey(name)) { METRIC_REGISTRY.register(name, metric); } }
/** * Registers a gauge if it has not been registered. * * @param name the gauge name * @param metric the gauge * @param <T> the type */
Registers a gauge if it has not been registered
registerGaugeIfAbsent
{ "repo_name": "ShailShah/alluxio", "path": "core/common/src/main/java/alluxio/metrics/MetricsSystem.java", "license": "apache-2.0", "size": 9098 }
[ "com.codahale.metrics.Gauge" ]
import com.codahale.metrics.Gauge;
import com.codahale.metrics.*;
[ "com.codahale.metrics" ]
com.codahale.metrics;
210,094
public static void dropAsEntity(World world, int x, int y, int z, ItemStack itemStack) { if (itemStack == null) { return; } double f = 0.7D; double dx = world.rand.nextFloat() * f + (1.0D - f) * 0.5D; double dy = world.rand.nextFloat() * f + (1.0D - f) * 0.5D; ...
static void function(World world, int x, int y, int z, ItemStack itemStack) { if (itemStack == null) { return; } double f = 0.7D; double dx = world.rand.nextFloat() * f + (1.0D - f) * 0.5D; double dy = world.rand.nextFloat() * f + (1.0D - f) * 0.5D; double dz = world.rand.nextFloat() * f + (1.0D - f) * 0.5D; EntityItem...
/** * Drops the specified itemstack in the worls as an EntityItem */
Drops the specified itemstack in the worls as an EntityItem
dropAsEntity
{ "repo_name": "MyEssentials/MyEssentials-Core", "path": "src/main/java/myessentials/utils/WorldUtils.java", "license": "unlicense", "size": 1930 }
[ "net.minecraft.entity.item.EntityItem", "net.minecraft.item.ItemStack", "net.minecraft.world.World" ]
import net.minecraft.entity.item.EntityItem; import net.minecraft.item.ItemStack; import net.minecraft.world.World;
import net.minecraft.entity.item.*; import net.minecraft.item.*; import net.minecraft.world.*;
[ "net.minecraft.entity", "net.minecraft.item", "net.minecraft.world" ]
net.minecraft.entity; net.minecraft.item; net.minecraft.world;
1,554,730
public void setAuthorityService(AuthorityService authorityService) { this.authorityService = authorityService; }
void function(AuthorityService authorityService) { this.authorityService = authorityService; }
/** * Sets the Authority Service * * @param authorityService */
Sets the Authority Service
setAuthorityService
{ "repo_name": "daniel-he/community-edition", "path": "projects/repository/source/java/org/alfresco/repo/workflow/WorkflowServiceImpl.java", "license": "lgpl-3.0", "size": 52714 }
[ "org.alfresco.service.cmr.security.AuthorityService" ]
import org.alfresco.service.cmr.security.AuthorityService;
import org.alfresco.service.cmr.security.*;
[ "org.alfresco.service" ]
org.alfresco.service;
2,625,033
public final Property<FudgeContext> fudgeContext() { return metaBean().fudgeContext().createProperty(this); }
final Property<FudgeContext> function() { return metaBean().fudgeContext().createProperty(this); }
/** * Gets the the {@code fudgeContext} property. * @return the property, not null */
Gets the the fudgeContext property
fudgeContext
{ "repo_name": "McLeodMoores/starling", "path": "projects/component/src/main/java/com/opengamma/component/factory/engine/EngineConfigurationComponentFactory.java", "license": "apache-2.0", "size": 18939 }
[ "org.fudgemsg.FudgeContext", "org.joda.beans.Property" ]
import org.fudgemsg.FudgeContext; import org.joda.beans.Property;
import org.fudgemsg.*; import org.joda.beans.*;
[ "org.fudgemsg", "org.joda.beans" ]
org.fudgemsg; org.joda.beans;
1,567,621
Publisher<Document> runCommand(ClientSession clientSession, Bson command);
Publisher<Document> runCommand(ClientSession clientSession, Bson command);
/** * Executes command in the context of the current database. * * @param clientSession the client session with which to associate this operation * @param command the command to be run * @return a publisher containing the command result * @mongodb.server.release 3.6 * @since 1.7 ...
Executes command in the context of the current database
runCommand
{ "repo_name": "rozza/mongo-java-driver-reactivestreams", "path": "driver/src/main/com/mongodb/reactivestreams/client/MongoDatabase.java", "license": "apache-2.0", "size": 22823 }
[ "org.bson.Document", "org.bson.conversions.Bson", "org.reactivestreams.Publisher" ]
import org.bson.Document; import org.bson.conversions.Bson; import org.reactivestreams.Publisher;
import org.bson.*; import org.bson.conversions.*; import org.reactivestreams.*;
[ "org.bson", "org.bson.conversions", "org.reactivestreams" ]
org.bson; org.bson.conversions; org.reactivestreams;
2,553,913
public static double calculateQ1(List values) { if (values == null) { throw new IllegalArgumentException("Null 'values' argument."); } double result = Double.NaN; int count = values.size(); if (count > 0) { if (count % 2 == 1) { if (co...
static double function(List values) { if (values == null) { throw new IllegalArgumentException(STR); } double result = Double.NaN; int count = values.size(); if (count > 0) { if (count % 2 == 1) { if (count > 1) { result = Statistics.calculateMedian(values, 0, count / 2); } else { result = Statistics.calculateMedian(va...
/** * Calculates the first quartile for a list of numbers in ascending order. * If the items in the list are not in ascending order, the result is * unspecified. If the list contains items that are <code>null</code>, not * an instance of <code>Number</code>, or equivalent to * <code>Double.NaN...
Calculates the first quartile for a list of numbers in ascending order. If the items in the list are not in ascending order, the result is unspecified. If the list contains items that are <code>null</code>, not an instance of <code>Number</code>, or equivalent to <code>Double.NaN</code>, the result is unspecified
calculateQ1
{ "repo_name": "JSansalone/JFreeChart", "path": "source/org/jfree/data/statistics/BoxAndWhiskerCalculator.java", "license": "lgpl-2.1", "size": 8955 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,519,588
Move createUndoMove(ScoreDirector scoreDirector);
Move createUndoMove(ScoreDirector scoreDirector);
/** * Called before the move is done, so the move can be evaluated and then be undone * without resulting into a permanent change in the solution. * @param scoreDirector the {@link ScoreDirector} not yet modified by the move. * @return an undoMove which does the exact opposite of this move. */
Called before the move is done, so the move can be evaluated and then be undone without resulting into a permanent change in the solution
createUndoMove
{ "repo_name": "cyberdrcarr/optaplanner", "path": "drools-planner-core/src/main/java/org/drools/planner/core/move/Move.java", "license": "apache-2.0", "size": 4478 }
[ "org.drools.planner.core.score.director.ScoreDirector" ]
import org.drools.planner.core.score.director.ScoreDirector;
import org.drools.planner.core.score.director.*;
[ "org.drools.planner" ]
org.drools.planner;
2,899,194
@Test void testCreateImageBuffer() { final ImageBuffer imageBuffer = Graphics.createImageBuffer(16, 32); assertEquals(16, imageBuffer.getWidth()); assertEquals(32, imageBuffer.getHeight()); imageBuffer.dispose(); }
void testCreateImageBuffer() { final ImageBuffer imageBuffer = Graphics.createImageBuffer(16, 32); assertEquals(16, imageBuffer.getWidth()); assertEquals(32, imageBuffer.getHeight()); imageBuffer.dispose(); }
/** * Test create image buffer. */
Test create image buffer
testCreateImageBuffer
{ "repo_name": "b3dgs/lionengine", "path": "lionengine-core/src/test/java/com/b3dgs/lionengine/graphic/GraphicsTest.java", "license": "gpl-3.0", "size": 13898 }
[ "com.b3dgs.lionengine.UtilAssert" ]
import com.b3dgs.lionengine.UtilAssert;
import com.b3dgs.lionengine.*;
[ "com.b3dgs.lionengine" ]
com.b3dgs.lionengine;
1,878,236
private Node trySimplifyUnusedResult(Node n, boolean removeUnused) { Node result = n; // Simplify the results of conditional expressions switch (n.getType()) { case Token.HOOK: Node trueNode = trySimplifyUnusedResult(n.getFirstChild().getNext()); Node falseNode = trySimplifyUnusedRe...
Node function(Node n, boolean removeUnused) { Node result = n; switch (n.getType()) { case Token.HOOK: Node trueNode = trySimplifyUnusedResult(n.getFirstChild().getNext()); Node falseNode = trySimplifyUnusedResult(n.getLastChild()); if (trueNode == null && falseNode != null) { n.setType(Token.OR); Preconditions.checkSt...
/** * General cascading unused operation node removal. * @param n The root of the expression to simplify. * @param removeUnused If true, the node is removed from the AST if * it is not useful, otherwise it replaced with an EMPTY node. * @return The replacement node, or null if the node was is not use...
General cascading unused operation node removal
trySimplifyUnusedResult
{ "repo_name": "jimmytuc/closure-compiler", "path": "src/com/google/javascript/jscomp/PeepholeRemoveDeadCode.java", "license": "apache-2.0", "size": 31825 }
[ "com.google.common.base.Preconditions", "com.google.javascript.rhino.IR", "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token" ]
import com.google.common.base.Preconditions; import com.google.javascript.rhino.IR; import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token;
import com.google.common.base.*; import com.google.javascript.rhino.*;
[ "com.google.common", "com.google.javascript" ]
com.google.common; com.google.javascript;
937,355
public void rereadTheFile() throws NotOwnerException, UnknownHostException { alwaysAuthorized = false; acl.removeAll(owner); trapDestList.clear(); informDestList.clear(); AclEntry ownEntry = new AclEntryImpl(owner); ownEntry.addPermission(READ); ownEntry.addPe...
void function() throws NotOwnerException, UnknownHostException { alwaysAuthorized = false; acl.removeAll(owner); trapDestList.clear(); informDestList.clear(); AclEntry ownEntry = new AclEntryImpl(owner); ownEntry.addPermission(READ); ownEntry.addPermission(WRITE); acl.addEntry(owner,ownEntry); readAuthorizedListFile();...
/** * Resets this ACL to the values contained in the configuration file. * * @exception NotOwnerException If the principal attempting the reset is not an owner of this ACL. * @exception UnknownHostException If IP addresses for hosts contained in the ACL file couldn't be found. */
Resets this ACL to the values contained in the configuration file
rereadTheFile
{ "repo_name": "shun634501730/java_source_cn", "path": "src_en/com/sun/jmx/snmp/IPAcl/SnmpAcl.java", "license": "apache-2.0", "size": 16949 }
[ "java.net.UnknownHostException", "java.security.acl.AclEntry", "java.security.acl.NotOwnerException" ]
import java.net.UnknownHostException; import java.security.acl.AclEntry; import java.security.acl.NotOwnerException;
import java.net.*; import java.security.acl.*;
[ "java.net", "java.security" ]
java.net; java.security;
2,567,360
protected static Filter createEmptyFilter(Element filterElement, Rectangle2D filterRegion, Element filteredElement, GraphicsNode filteredNode, ...
static Filter function(Element filterElement, Rectangle2D filterRegion, Element filteredElement, GraphicsNode filteredNode, BridgeContext ctx) { Rectangle2D primitiveRegion = SVGUtilities.convertFilterPrimitiveRegion(null, filterElement, filteredElement, filteredNode, filterRegion, filterRegion, ctx); return new FloodR...
/** * Creates a new returns a new filter that fills its output with * transparent black. This is used when a &lt;filter&gt; element * has no filter primitive children. */
Creates a new returns a new filter that fills its output with transparent black. This is used when a &lt;filter&gt; element has no filter primitive children
createEmptyFilter
{ "repo_name": "git-moss/Push2Display", "path": "lib/batik-1.8/sources/org/apache/batik/bridge/SVGFilterElementBridge.java", "license": "lgpl-3.0", "size": 10853 }
[ "java.awt.geom.Rectangle2D", "org.apache.batik.ext.awt.image.renderable.Filter", "org.apache.batik.ext.awt.image.renderable.FloodRable8Bit", "org.apache.batik.gvt.GraphicsNode", "org.w3c.dom.Element" ]
import java.awt.geom.Rectangle2D; import org.apache.batik.ext.awt.image.renderable.Filter; import org.apache.batik.ext.awt.image.renderable.FloodRable8Bit; import org.apache.batik.gvt.GraphicsNode; import org.w3c.dom.Element;
import java.awt.geom.*; import org.apache.batik.ext.awt.image.renderable.*; import org.apache.batik.gvt.*; import org.w3c.dom.*;
[ "java.awt", "org.apache.batik", "org.w3c.dom" ]
java.awt; org.apache.batik; org.w3c.dom;
1,838,155
static void ConnectionlessPacket() { String s; String c; MSG.BeginReading(Globals.net_message); MSG.ReadLong(Globals.net_message); // skip the -1 s = MSG.ReadStringLine(Globals.net_message); Cmd.TokenizeString(s.toCharArray(), false); c = Cmd.Argv(0); Com.Println(Globals.net_from....
static void ConnectionlessPacket() { String s; String c; MSG.BeginReading(Globals.net_message); MSG.ReadLong(Globals.net_message); s = MSG.ReadStringLine(Globals.net_message); Cmd.TokenizeString(s.toCharArray(), false); c = Cmd.Argv(0); Com.Println(Globals.net_from.toString() + STR + c); if (c.equals(STR)) { if (Global...
/** * ConnectionlessPacket * * Responses to broadcasts, etc */
ConnectionlessPacket Responses to broadcasts, etc
ConnectionlessPacket
{ "repo_name": "osmanpub/java-games", "path": "doom/jake2/src/main/java/org/free/jake2/client/CL.java", "license": "apache-2.0", "size": 48383 }
[ "org.free.jake2.Defines", "org.free.jake2.Globals", "org.free.jake2.game.Cmd", "org.free.jake2.qcommon.Cbuf", "org.free.jake2.qcommon.Com", "org.free.jake2.qcommon.MSG", "org.free.jake2.qcommon.Netchan", "org.free.jake2.sys.NET", "org.free.jake2.util.Lib" ]
import org.free.jake2.Defines; import org.free.jake2.Globals; import org.free.jake2.game.Cmd; import org.free.jake2.qcommon.Cbuf; import org.free.jake2.qcommon.Com; import org.free.jake2.qcommon.MSG; import org.free.jake2.qcommon.Netchan; import org.free.jake2.sys.NET; import org.free.jake2.util.Lib;
import org.free.jake2.*; import org.free.jake2.game.*; import org.free.jake2.qcommon.*; import org.free.jake2.sys.*; import org.free.jake2.util.*;
[ "org.free.jake2" ]
org.free.jake2;
2,194,177
void repeat(String text, Handler<AsyncResult<String>> handler);
void repeat(String text, Handler<AsyncResult<String>> handler);
/** * Repeats the text passed by the caller * @param text The text to repeat * @param handler This handler will be called with a copy of the text passed */
Repeats the text passed by the caller
repeat
{ "repo_name": "diabolicallabs/vertx-examples", "path": "vertx-example-mockito/src/main/java/com/diabolicallabs/example/Service.java", "license": "apache-2.0", "size": 1291 }
[ "io.vertx.core.AsyncResult", "io.vertx.core.Handler" ]
import io.vertx.core.AsyncResult; import io.vertx.core.Handler;
import io.vertx.core.*;
[ "io.vertx.core" ]
io.vertx.core;
1,902,149
public static boolean hasGLContext() { EGL10 egl = (EGL10)EGLContext.getEGL(); EGLContext eglContext = egl.eglGetCurrentContext(); return eglContext != EGL10.EGL_NO_CONTEXT; }
static boolean function() { EGL10 egl = (EGL10)EGLContext.getEGL(); EGLContext eglContext = egl.eglGetCurrentContext(); return eglContext != EGL10.EGL_NO_CONTEXT; }
/** * Indicates whether the OpenGL context is still alive or not. * * @return */
Indicates whether the OpenGL context is still alive or not
hasGLContext
{ "repo_name": "drdaemos/LifeLiveWP", "path": "rajawali/src/main/java/rajawali/renderer/RajawaliRenderer.java", "license": "mit", "size": 38957 }
[ "javax.microedition.khronos.egl.EGLContext" ]
import javax.microedition.khronos.egl.EGLContext;
import javax.microedition.khronos.egl.*;
[ "javax.microedition" ]
javax.microedition;
573,709
private CacheConfiguration<KeyClass, ValueClass> cacheConfiguration(CacheMode mode, CacheAtomicityMode atomicityMode, boolean near) { CacheConfiguration<KeyClass, ValueClass> ccfg = cacheConfiguration(); ccfg.setCacheMode(mode); ccfg.setAtomicityMode(atomicityMode); if (nea...
CacheConfiguration<KeyClass, ValueClass> function(CacheMode mode, CacheAtomicityMode atomicityMode, boolean near) { CacheConfiguration<KeyClass, ValueClass> ccfg = cacheConfiguration(); ccfg.setCacheMode(mode); ccfg.setAtomicityMode(atomicityMode); if (near) ccfg.setNearConfiguration(new NearCacheConfiguration<KeyClass...
/** * Create cache with the given cache mode and atomicity mode. * * @param mode Mode. * @param atomicityMode Atomicity mode. * @param near Whether near cache should be initialized. * @return Cache configuration. */
Create cache with the given cache mode and atomicity mode
cacheConfiguration
{ "repo_name": "dream-x/ignite", "path": "modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/index/DynamicIndexAbstractBasicSelfTest.java", "license": "apache-2.0", "size": 44137 }
[ "org.apache.ignite.cache.CacheAtomicityMode", "org.apache.ignite.cache.CacheMode", "org.apache.ignite.configuration.CacheConfiguration", "org.apache.ignite.configuration.NearCacheConfiguration" ]
import org.apache.ignite.cache.CacheAtomicityMode; import org.apache.ignite.cache.CacheMode; import org.apache.ignite.configuration.CacheConfiguration; import org.apache.ignite.configuration.NearCacheConfiguration;
import org.apache.ignite.cache.*; import org.apache.ignite.configuration.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,900,910
public Collection<ConceptName> getIndexTermsForLocale(Locale locale) { Vector<ConceptName> indexTermsForLocale = new Vector<ConceptName>(); if (!getIndexTerms().isEmpty()) { for (ConceptName name : getIndexTerms()) { if (name.getLocale().equals(locale)) { indexTermsForLocale.add(name); } } ...
Collection<ConceptName> function(Locale locale) { Vector<ConceptName> indexTermsForLocale = new Vector<ConceptName>(); if (!getIndexTerms().isEmpty()) { for (ConceptName name : getIndexTerms()) { if (name.getLocale().equals(locale)) { indexTermsForLocale.add(name); } } } return indexTermsForLocale; }
/** * Gets the list of all non-retired concept names which are index terms in a given locale * * @param locale the locale for the index terms to return * @return a collection of concept names which are index terms in the given locale * @since 1.7 */
Gets the list of all non-retired concept names which are index terms in a given locale
getIndexTermsForLocale
{ "repo_name": "koskedk/openmrs-core", "path": "api/src/main/java/org/openmrs/Concept.java", "license": "mpl-2.0", "size": 52924 }
[ "java.util.Collection", "java.util.Locale", "java.util.Vector" ]
import java.util.Collection; import java.util.Locale; import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
21,474
public LinkedHashMap<String, Integer> topKStudentsSortByDuration(HashMap<String, Integer> map, int topKValue) { LinkedHashMap<String, Integer> linkedDurationMap = new LinkedHashMap<>(); Collection<Integer> durationValues = map.values(); ArrayList<Integer> list = new ArrayList<>(durationValu...
LinkedHashMap<String, Integer> function(HashMap<String, Integer> map, int topKValue) { LinkedHashMap<String, Integer> linkedDurationMap = new LinkedHashMap<>(); Collection<Integer> durationValues = map.values(); ArrayList<Integer> list = new ArrayList<>(durationValues); Collections.sort(list); Collections.reverse(list)...
/** * Sorts the students by their app usage duration up to the top K value * * @param map HashMap of App id as key and duration as the respective value * @param topKValue top K value chosen by user, where k can range from 1 to 10 (both inclusive, in integer increments) * * @return Linked...
Sorts the students by their app usage duration up to the top K value
topKStudentsSortByDuration
{ "repo_name": "ceocookie/SMU", "path": "SMUA APP/app/src/main/java/smua/controllers/TopKController.java", "license": "gpl-3.0", "size": 32587 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Collections", "java.util.HashMap", "java.util.Iterator", "java.util.LinkedHashMap" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,812,279
public List<RawType> getAllRawTypes() { List<RawType> list = new ArrayList<RawType>(); for (RawType type : formatList) { if (type != null) { list.add(type); } } return Collections.unmodifiableList(list); }
List<RawType> function() { List<RawType> list = new ArrayList<RawType>(); for (RawType type : formatList) { if (type != null) { list.add(type); } } return Collections.unmodifiableList(list); }
/** * Returns all formats as RawTypes. */
Returns all formats as RawTypes
getAllRawTypes
{ "repo_name": "hyc/BerkeleyDB", "path": "lang/java/src/com/sleepycat/persist/impl/PersistCatalog.java", "license": "agpl-3.0", "size": 53344 }
[ "com.sleepycat.persist.raw.RawType", "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import com.sleepycat.persist.raw.RawType; import java.util.ArrayList; import java.util.Collections; import java.util.List;
import com.sleepycat.persist.raw.*; import java.util.*;
[ "com.sleepycat.persist", "java.util" ]
com.sleepycat.persist; java.util;
1,359,428
Identifier[] extractFromNotify(NotifyType value, Binder<Node> binder) throws InvalidIdentifierException, UnmarshalException { NullCheck.check(value, "value null"); List<Object> list = value.getAccessRequestOrIdentityOrIpAddress(); return extractIdentifierArray(list, 2, binder); }
Identifier[] extractFromNotify(NotifyType value, Binder<Node> binder) throws InvalidIdentifierException, UnmarshalException { NullCheck.check(value, STR); List<Object> list = value.getAccessRequestOrIdentityOrIpAddress(); return extractIdentifierArray(list, 2, binder); }
/** * Return an array of datamodel Identifiers given a NotifyTYpe * * @param value * @return * @throws InvalidIdentifierException * @throws UnmarshalException */
Return an array of datamodel Identifiers given a NotifyTYpe
extractFromNotify
{ "repo_name": "trustathsh/irond", "path": "src/main/java/de/hshannover/f4/trust/iron/mapserver/binding/JaxbIdentifierHelper.java", "license": "apache-2.0", "size": 15473 }
[ "de.hshannover.f4.trust.iron.mapserver.datamodel.identifiers.Identifier", "de.hshannover.f4.trust.iron.mapserver.exceptions.InvalidIdentifierException", "de.hshannover.f4.trust.iron.mapserver.exceptions.UnmarshalException", "de.hshannover.f4.trust.iron.mapserver.utils.NullCheck", "java.util.List", "javax....
import de.hshannover.f4.trust.iron.mapserver.datamodel.identifiers.Identifier; import de.hshannover.f4.trust.iron.mapserver.exceptions.InvalidIdentifierException; import de.hshannover.f4.trust.iron.mapserver.exceptions.UnmarshalException; import de.hshannover.f4.trust.iron.mapserver.utils.NullCheck; import java.util.Li...
import de.hshannover.f4.trust.iron.mapserver.datamodel.identifiers.*; import de.hshannover.f4.trust.iron.mapserver.exceptions.*; import de.hshannover.f4.trust.iron.mapserver.utils.*; import java.util.*; import javax.xml.bind.*; import org.trustedcomputinggroup.*; import org.w3c.dom.*;
[ "de.hshannover.f4", "java.util", "javax.xml", "org.trustedcomputinggroup", "org.w3c.dom" ]
de.hshannover.f4; java.util; javax.xml; org.trustedcomputinggroup; org.w3c.dom;
1,588,523
public static Resource geneDuplication() { return _namespace_CDAO("CDAO_0000077"); }
static Resource function() { return _namespace_CDAO(STR); }
/** * -- No comment or description provided. -- * (http://purl.obolibrary.org/obo/CDAO_0000077) */
-- No comment or description provided. -- (HREF)
geneDuplication
{ "repo_name": "BioInterchange/BioInterchange", "path": "supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/CDAO.java", "license": "mit", "size": 85675 }
[ "com.hp.hpl.jena.rdf.model.Resource" ]
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.*;
[ "com.hp.hpl" ]
com.hp.hpl;
1,656,203
@Deprecated public static double cur(Element elem, String prop, boolean force) { return GQuery.$(elem).cur(prop, force); }
static double function(Element elem, String prop, boolean force) { return GQuery.$(elem).cur(prop, force); }
/** * Use the method in the gquery class. * $(elem).cur(prop, force); */
Use the method in the gquery class. $(elem).cur(prop, force)
cur
{ "repo_name": "ArcBees/gwtquery", "path": "gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java", "license": "mit", "size": 20852 }
[ "com.google.gwt.dom.client.Element", "com.google.gwt.query.client.GQuery" ]
import com.google.gwt.dom.client.Element; import com.google.gwt.query.client.GQuery;
import com.google.gwt.dom.client.*; import com.google.gwt.query.client.*;
[ "com.google.gwt" ]
com.google.gwt;
404,418
public static AztecCode encode(byte[] data, int minECCPercent, int userSpecifiedLayers) { // High-level activity_encode BitArray bits = new HighLevelEncoder(data).encode(); // stuff bits and choose symbol size int eccBits = bits.getSize() * minECCPercent / 100 + 11; int totalSizeBits = bits.g...
static AztecCode function(byte[] data, int minECCPercent, int userSpecifiedLayers) { BitArray bits = new HighLevelEncoder(data).encode(); int eccBits = bits.getSize() * minECCPercent / 100 + 11; int totalSizeBits = bits.getSize() + eccBits; boolean compact; int layers; int totalBitsInLayer; int wordSize; BitArray stuff...
/** * Encodes the given binary content as an Aztec symbol * * @param data input data string * @param minECCPercent minimal percentage of error check words (According to ISO/IEC 24778:2008, * a minimum of 23% + 3 words is recommended) * @param userSpecifiedLayers if non-zero, a us...
Encodes the given binary content as an Aztec symbol
encode
{ "repo_name": "WangZzzz/Selection", "path": "zxinglib/src/main/java/com/google/zxing/aztec/encoder/Encoder.java", "license": "apache-2.0", "size": 12416 }
[ "com.google.zxing.common.BitArray", "com.google.zxing.common.BitMatrix" ]
import com.google.zxing.common.BitArray; import com.google.zxing.common.BitMatrix;
import com.google.zxing.common.*;
[ "com.google.zxing" ]
com.google.zxing;
1,949,636
protected WebMarkupContainer newSortableHeader(final String headerId, final S property, final ISortStateLocator<S> locator) { return new OrderByBorder<S>(headerId, property, locator) { private static final long serialVersionUID = 1L;
WebMarkupContainer function(final String headerId, final S property, final ISortStateLocator<S> locator) { return new OrderByBorder<S>(headerId, property, locator) { private static final long serialVersionUID = 1L;
/** * Factory method for sortable header components. A sortable header component must have id of * <code>headerId</code> and conform to markup specified in <code>HeadersToolbar.html</code> * * @param headerId * header component id * @param property * property this header represents ...
Factory method for sortable header components. A sortable header component must have id of <code>headerId</code> and conform to markup specified in <code>HeadersToolbar.html</code>
newSortableHeader
{ "repo_name": "topicusonderwijs/wicket", "path": "wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/HeadersToolbar.java", "license": "apache-2.0", "size": 4281 }
[ "org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator", "org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder", "org.apache.wicket.markup.html.WebMarkupContainer" ]
import org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator; import org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder; import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.extensions.markup.html.repeater.data.sort.*; import org.apache.wicket.markup.html.*;
[ "org.apache.wicket" ]
org.apache.wicket;
1,558,568
final short opcode = (short) bytes.readUnsignedByte(); String name; String signature; int default_offset = 0; int low; int high; int index; int class_index; int vindex; int constant; int[] jump_table; int no_pad_bytes = 0; i...
final short opcode = (short) bytes.readUnsignedByte(); String name; String signature; int default_offset = 0; int low; int high; int index; int class_index; int vindex; int constant; int[] jump_table; int no_pad_bytes = 0; int offset; final StringBuilder buf = new StringBuilder(256); buf.append("<TT>").append(Const.get...
/** * Disassemble a stream of byte codes and return the * string representation. * * @param stream data input stream * @return String representation of byte code */
Disassemble a stream of byte codes and return the string representation
codeToHTML
{ "repo_name": "apache/commons-bcel", "path": "src/main/java/org/apache/bcel/util/CodeHTML.java", "license": "apache-2.0", "size": 27069 }
[ "org.apache.bcel.Const", "org.apache.bcel.classfile.ConstantFieldref", "org.apache.bcel.classfile.ConstantInterfaceMethodref", "org.apache.bcel.classfile.ConstantInvokeDynamic", "org.apache.bcel.classfile.ConstantMethodref", "org.apache.bcel.classfile.ConstantNameAndType", "org.apache.bcel.classfile.Uti...
import org.apache.bcel.Const; import org.apache.bcel.classfile.ConstantFieldref; import org.apache.bcel.classfile.ConstantInterfaceMethodref; import org.apache.bcel.classfile.ConstantInvokeDynamic; import org.apache.bcel.classfile.ConstantMethodref; import org.apache.bcel.classfile.ConstantNameAndType; import org.apach...
import org.apache.bcel.*; import org.apache.bcel.classfile.*;
[ "org.apache.bcel" ]
org.apache.bcel;
2,440,401
public Type getType(){ return this.type; }
Type function(){ return this.type; }
/** * Returns the type. * * @return */
Returns the type
getType
{ "repo_name": "kbabioch/arx", "path": "src/gui/org/deidentifier/arx/gui/view/impl/wizard/HierarchyWizardModel.java", "license": "apache-2.0", "size": 8390 }
[ "org.deidentifier.arx.aggregates.HierarchyBuilder" ]
import org.deidentifier.arx.aggregates.HierarchyBuilder;
import org.deidentifier.arx.aggregates.*;
[ "org.deidentifier.arx" ]
org.deidentifier.arx;
981,282
protected static boolean match(String pattern, String str, boolean isCaseSensitive) { return SelectorUtils.match(pattern, str, isCaseSensitive); } // public static String[] getDefaultExcludes() { // return (String[]) defaultExcludes.toArray(new String[...
static boolean function(String pattern, String str, boolean isCaseSensitive) { return SelectorUtils.match(pattern, str, isCaseSensitive); }
/** * Tests whether or not a string matches against a pattern. * The pattern may contain two special characters:<br> * '*' means zero or more characters<br> * '?' means one and only one character * * @param pattern The pattern to match against. * Must not be <code>null<...
Tests whether or not a string matches against a pattern. The pattern may contain two special characters: '*' means zero or more characters '?' means one and only one character
match
{ "repo_name": "zer0c0nf/DrFTPD", "path": "src/org/drftpd/org/apache/tools/ant/DirectoryScanner.java", "license": "gpl-2.0", "size": 45370 }
[ "org.drftpd.org.apache.tools.ant.types.selectors.SelectorUtils" ]
import org.drftpd.org.apache.tools.ant.types.selectors.SelectorUtils;
import org.drftpd.org.apache.tools.ant.types.selectors.*;
[ "org.drftpd.org" ]
org.drftpd.org;
2,362,406
public SpillInfo[] closeAndGetSpills() throws IOException { if (inMemSorter != null) { // Do not count the final file towards the spill count. writeSortedFile(true); freeMemory(); inMemSorter.free(); inMemSorter = null; } return spills.toArray(new SpillInfo[spills.size()]); ...
SpillInfo[] function() throws IOException { if (inMemSorter != null) { writeSortedFile(true); freeMemory(); inMemSorter.free(); inMemSorter = null; } return spills.toArray(new SpillInfo[spills.size()]); }
/** * Close the sorter, causing any buffered data to be sorted and written out to disk. * * @return metadata for the spill files written by this sorter. If no records were ever inserted * into this sorter, then this will return an empty array. * @throws IOException */
Close the sorter, causing any buffered data to be sorted and written out to disk
closeAndGetSpills
{ "repo_name": "michalsenkyr/spark", "path": "core/src/main/java/org/apache/spark/shuffle/sort/ShuffleExternalSorter.java", "license": "apache-2.0", "size": 17926 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,373,735
private Type resolveType(Type beanType, Type beanType2, Type type) { if (type instanceof ParameterizedType) { if (beanType instanceof ParameterizedType) { return resolveParameterizedType((ParameterizedType) beanType, (ParameterizedType) type); ...
Type function(Type beanType, Type beanType2, Type type) { if (type instanceof ParameterizedType) { if (beanType instanceof ParameterizedType) { return resolveParameterizedType((ParameterizedType) beanType, (ParameterizedType) type); } if (beanType instanceof Class<?>) { return resolveType(((Class<?>) beanType).getGener...
/** * Gets the actual types by resolving TypeParameters. * * @param beanType * @param type * @return actual type */
Gets the actual types by resolving TypeParameters
resolveType
{ "repo_name": "os890/DS_Discuss_old", "path": "deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/HierarchyDiscovery.java", "license": "apache-2.0", "size": 7408 }
[ "java.lang.reflect.ParameterizedType", "java.lang.reflect.Type", "java.lang.reflect.TypeVariable" ]
import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,830,278
public static Path getStagingJobHistoryFile(Path dir, JobId jobId, int attempt) { return getStagingJobHistoryFile(dir, TypeConverter.fromYarn(jobId).toString(), attempt); }
static Path function(Path dir, JobId jobId, int attempt) { return getStagingJobHistoryFile(dir, TypeConverter.fromYarn(jobId).toString(), attempt); }
/** * Get the job history file path for non Done history files. */
Get the job history file path for non Done history files
getStagingJobHistoryFile
{ "repo_name": "soumabrata-chakraborty/hadoop", "path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapreduce/v2/jobhistory/JobHistoryUtils.java", "license": "apache-2.0", "size": 22860 }
[ "org.apache.hadoop.fs.Path", "org.apache.hadoop.mapreduce.TypeConverter", "org.apache.hadoop.mapreduce.v2.api.records.JobId" ]
import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapreduce.TypeConverter; import org.apache.hadoop.mapreduce.v2.api.records.JobId;
import org.apache.hadoop.fs.*; import org.apache.hadoop.mapreduce.*; import org.apache.hadoop.mapreduce.v2.api.records.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,486,409
@Override public Optional<Collection<E>> remove(T owner, Collection<Integer> elementIndexList) { if (!historyDataMap.containsKey(owner)) { return Optional.empty(); } List<E> removedElementsList = new ArrayList<>(); List<E> mapElementList = historyDataMap.get(owner);...
Optional<Collection<E>> function(T owner, Collection<Integer> elementIndexList) { if (!historyDataMap.containsKey(owner)) { return Optional.empty(); } List<E> removedElementsList = new ArrayList<>(); List<E> mapElementList = historyDataMap.get(owner); for (int currentElementIndex : elementIndexList) { if (currentElemen...
/** * Remove elements from the history based on index list * * @param owner Owner of the History * @param elementIndexList Indexes to remove from history * @return A list containing all removed elements * @throws IndexOutOfBoundsException if informed range out of bound */
Remove elements from the history based on index list
remove
{ "repo_name": "JonathanxD/wReport", "path": "src/main/java/io/github/jonathanxd/wreport/history/BaseHistoryData.java", "license": "mit", "size": 7276 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.List", "java.util.Optional" ]
import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
1,819,838
public Report createReport(final String methodName, final InputStream template, final String... arguments) { return new Report(new FunctionBasedReportSource(this.connection, methodName, arguments), this.createCustomFunctions(), template); }
Report function(final String methodName, final InputStream template, final String... arguments) { return new Report(new FunctionBasedReportSource(this.connection, methodName, arguments), this.createCustomFunctions(), template); }
/** * Creates a report based on a pipelined function and a template will be used. * @param methodName * @param template Input stream for a template. It will automatically be buffered. * @param arguments * @return */
Creates a report based on a pipelined function and a template will be used
createReport
{ "repo_name": "michael-simons/enerko-reports2", "path": "src/main/java/de/enerko/reports2/engine/ReportEngine.java", "license": "apache-2.0", "size": 6132 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,499,785
private void initVerticalPanel() { vp = new VerticalPanel(); vp.setSpacing(10); createStore(); initGrid(); }
void function() { vp = new VerticalPanel(); vp.setSpacing(10); createStore(); initGrid(); }
/** * Inits the vertical panel. */
Inits the vertical panel
initVerticalPanel
{ "repo_name": "geosolutions-it/geofence", "path": "src/gui/core/resources/src/main/java/it/geosolutions/geofence/gui/client/widget/GeofenceSearchWidget.java", "license": "gpl-3.0", "size": 9678 }
[ "com.extjs.gxt.ui.client.widget.VerticalPanel" ]
import com.extjs.gxt.ui.client.widget.VerticalPanel;
import com.extjs.gxt.ui.client.widget.*;
[ "com.extjs.gxt" ]
com.extjs.gxt;
2,242,820
void stateChanged(ChangeEvent e);
void stateChanged(ChangeEvent e);
/** * In response to changes from the model, repaint the * view, then fire an event to any listeners. * Examples of listeners are the GraphZoomScrollPane and * the BirdsEyeVisualizationViewer * @param e the change event */
In response to changes from the model, repaint the view, then fire an event to any listeners. Examples of listeners are the GraphZoomScrollPane and the BirdsEyeVisualizationViewer
stateChanged
{ "repo_name": "drzhonghao/grapa", "path": "jung-visualization/src/main/java/edu/uci/ics/jung/visualization/VisualizationServer.java", "license": "lgpl-3.0", "size": 5252 }
[ "javax.swing.event.ChangeEvent" ]
import javax.swing.event.ChangeEvent;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
2,332,142
public Collection<ProxyFolderBean> getProxyFoldersAsCollection () { return proxyFoldersByURLEncodedName.values(); }
Collection<ProxyFolderBean> function () { return proxyFoldersByURLEncodedName.values(); }
/** * Get a collection of all the proxy folders into the context * @return a Collection of ProxyFolders */
Get a collection of all the proxy folders into the context
getProxyFoldersAsCollection
{ "repo_name": "marcolinuz/proxyma", "path": "proxyma-core/src/main/java/m/c/m/proxyma/context/ProxymaContext.java", "license": "lgpl-2.1", "size": 17202 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,710,501
public void setPolicy(String absPath, AccessControlPolicy policy) throws PathNotFoundException, AccessControlException, AccessDeniedException, RepositoryException { checkInitialized(); checkPermission(absPath, Permission.MODIFY_AC); throw new AccessControlException("AccessControlPolicy " + ...
void function(String absPath, AccessControlPolicy policy) throws PathNotFoundException, AccessControlException, AccessDeniedException, RepositoryException { checkInitialized(); checkPermission(absPath, Permission.MODIFY_AC); throw new AccessControlException(STR + policy + STR); }
/** * Always throws <code>AccessControlException</code> * * @see javax.jcr.security.AccessControlManager#setPolicy(String, AccessControlPolicy) */
Always throws <code>AccessControlException</code>
setPolicy
{ "repo_name": "tripodsan/jackrabbit", "path": "jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/AbstractAccessControlManager.java", "license": "apache-2.0", "size": 8056 }
[ "javax.jcr.AccessDeniedException", "javax.jcr.PathNotFoundException", "javax.jcr.RepositoryException", "javax.jcr.security.AccessControlException", "javax.jcr.security.AccessControlPolicy", "org.apache.jackrabbit.core.security.authorization.Permission" ]
import javax.jcr.AccessDeniedException; import javax.jcr.PathNotFoundException; import javax.jcr.RepositoryException; import javax.jcr.security.AccessControlException; import javax.jcr.security.AccessControlPolicy; import org.apache.jackrabbit.core.security.authorization.Permission;
import javax.jcr.*; import javax.jcr.security.*; import org.apache.jackrabbit.core.security.authorization.*;
[ "javax.jcr", "org.apache.jackrabbit" ]
javax.jcr; org.apache.jackrabbit;
196,865
private void promptMultiSelect() { Intent intent = new Intent(FileManagerIntents.ACTION_MULTI_SELECT); intent.setData(FileUtils.getUri(currentDirectory)); intent.putExtra(FileManagerIntents.EXTRA_TITLE, getString(R.string.multiselect_title)); //intent.putExtra(FileManagerIntents.EXTRA_BUTTON_TEXT, ge...
void function() { Intent intent = new Intent(FileManagerIntents.ACTION_MULTI_SELECT); intent.setData(FileUtils.getUri(currentDirectory)); intent.putExtra(FileManagerIntents.EXTRA_TITLE, getString(R.string.multiselect_title)); startActivityForResult(intent, REQUEST_CODE_MULTI_SELECT); }
/** * Starts activity for multi select. */
Starts activity for multi select
promptMultiSelect
{ "repo_name": "nfsclient-speedops/NfsClient", "path": "src/com/app/nfsclient/filemanager/FileManagerActivity.java", "license": "mit", "size": 58872 }
[ "android.content.Intent", "com.app.nfsclient.filemanager.intents.FileManagerIntents", "com.app.nfsclient.filemanager.util.FileUtils" ]
import android.content.Intent; import com.app.nfsclient.filemanager.intents.FileManagerIntents; import com.app.nfsclient.filemanager.util.FileUtils;
import android.content.*; import com.app.nfsclient.filemanager.intents.*; import com.app.nfsclient.filemanager.util.*;
[ "android.content", "com.app.nfsclient" ]
android.content; com.app.nfsclient;
1,027,093
public static MarkupModel forDocument(@NotNull Document document, @Nullable Project project, boolean create) { if (document instanceof DocumentWindow) { final Document delegate = ((DocumentWindow)document).getDelegate(); final MarkupModelEx baseMarkupModel = (MarkupModelEx)forDocument(delegate, projec...
static MarkupModel function(@NotNull Document document, @Nullable Project project, boolean create) { if (document instanceof DocumentWindow) { final Document delegate = ((DocumentWindow)document).getDelegate(); final MarkupModelEx baseMarkupModel = (MarkupModelEx)forDocument(delegate, project, true); return new MarkupM...
/** * Returns the markup model for the specified project. A document can have multiple markup * models for different projects if the file to which it corresponds belongs to multiple projects * opened in different IDEA frames at the same time. * * @param document the document for which the markup model is...
Returns the markup model for the specified project. A document can have multiple markup models for different projects if the file to which it corresponds belongs to multiple projects opened in different IDEA frames at the same time
forDocument
{ "repo_name": "clumsy/intellij-community", "path": "platform/editor-ui-ex/src/com/intellij/openapi/editor/impl/DocumentMarkupModel.java", "license": "apache-2.0", "size": 4660 }
[ "com.intellij.injected.editor.DocumentWindow", "com.intellij.injected.editor.MarkupModelWindow", "com.intellij.openapi.editor.Document", "com.intellij.openapi.editor.ex.DocumentEx", "com.intellij.openapi.editor.ex.MarkupModelEx", "com.intellij.openapi.editor.markup.MarkupModel", "com.intellij.openapi.pr...
import com.intellij.injected.editor.DocumentWindow; import com.intellij.injected.editor.MarkupModelWindow; import com.intellij.openapi.editor.Document; import com.intellij.openapi.editor.ex.DocumentEx; import com.intellij.openapi.editor.ex.MarkupModelEx; import com.intellij.openapi.editor.markup.MarkupModel; import com...
import com.intellij.injected.editor.*; import com.intellij.openapi.editor.*; import com.intellij.openapi.editor.ex.*; import com.intellij.openapi.editor.markup.*; import com.intellij.openapi.project.*; import com.intellij.openapi.util.*; import com.intellij.util.*; import java.util.concurrent.*; import org.jetbrains.an...
[ "com.intellij.injected", "com.intellij.openapi", "com.intellij.util", "java.util", "org.jetbrains.annotations" ]
com.intellij.injected; com.intellij.openapi; com.intellij.util; java.util; org.jetbrains.annotations;
2,628,663
@Nonnull public byte[] ssid() { final byte[] dst = new byte[8]; ByteBuffer.wrap(h2(SSID_START)).get(dst); return dst; }
byte[] function() { final byte[] dst = new byte[8]; ByteBuffer.wrap(h2(SSID_START)).get(dst); return dst; }
/** * 64-bit (8-byte) secure session ID (ssid). * * @return Returns 8-byte ssid. */
64-bit (8-byte) secure session ID (ssid)
ssid
{ "repo_name": "cobratbq/otr4j", "path": "src/main/java/net/java/otr4j/crypto/SharedSecret.java", "license": "lgpl-3.0", "size": 5009 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
1,001,075
default AdvancedDockerEndpointConsumerBuilder parameters( Map<String, Object> parameters) { doSetProperty("parameters", parameters); return this; }
default AdvancedDockerEndpointConsumerBuilder parameters( Map<String, Object> parameters) { doSetProperty(STR, parameters); return this; }
/** * Additional configuration parameters as key/value pairs. * * The option is a: <code>java.util.Map&lt;java.lang.String, * java.lang.Object&gt;</code> type. * * Group: advanced */
Additional configuration parameters as key/value pairs. The option is a: <code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</code> type. Group: advanced
parameters
{ "repo_name": "adessaigne/camel", "path": "core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DockerEndpointBuilderFactory.java", "license": "apache-2.0", "size": 50745 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
828,317
public static <T> T convertToType(Exchange exchange, Class<T> type, Object value) { CamelContext camelContext = exchange.getContext(); ObjectHelper.notNull(camelContext, "CamelContext of Exchange"); TypeConverter converter = camelContext.getTypeConverter(); if (converter != null) { ...
static <T> T function(Exchange exchange, Class<T> type, Object value) { CamelContext camelContext = exchange.getContext(); ObjectHelper.notNull(camelContext, STR); TypeConverter converter = camelContext.getTypeConverter(); if (converter != null) { return converter.convertTo(type, exchange, value); } return null; }
/** * Converts the value to the given expected type returning null if it could * not be converted */
Converts the value to the given expected type returning null if it could not be converted
convertToType
{ "repo_name": "cexbrayat/camel", "path": "camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java", "license": "apache-2.0", "size": 26462 }
[ "org.apache.camel.CamelContext", "org.apache.camel.Exchange", "org.apache.camel.TypeConverter" ]
import org.apache.camel.CamelContext; import org.apache.camel.Exchange; import org.apache.camel.TypeConverter;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
1,325,893
public void get(Context context, String url, AsyncHttpResponseHandler responseHandler) { get(context, url, null, responseHandler); }
void function(Context context, String url, AsyncHttpResponseHandler responseHandler) { get(context, url, null, responseHandler); }
/** * Perform a HTTP GET request without any parameters and track the Android Context which initiated the request. * @param context the Android Context which initiated the request. * @param url the URL to send the request to. * @param responseHandler the response handler instance that should handle ...
Perform a HTTP GET request without any parameters and track the Android Context which initiated the request
get
{ "repo_name": "zoozooll/MyExercise", "path": "meep/MeepOTA/src/com/loopj/android/http/AsyncHttpClient.java", "license": "apache-2.0", "size": 27035 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
1,177,233
@Test(expected=InvalidConfigurationException.class) public void testNoAuthenticationRestriction() throws Exception { // perpare the hive and auth configs hiveConf.setVar(ConfVars.HIVE_SERVER2_AUTHENTICATION, "None"); authzConf.set(AuthzConfVars.SENTRY_TESTING_MODE.getVar(), "false"); testAuth = new ...
@Test(expected=InvalidConfigurationException.class) void function() throws Exception { hiveConf.setVar(ConfVars.HIVE_SERVER2_AUTHENTICATION, "None"); authzConf.set(AuthzConfVars.SENTRY_TESTING_MODE.getVar(), "false"); testAuth = new HiveAuthzBinding(hiveConf, authzConf); }
/** * Turn off authentication and verify exception is raised in non-testing mode * @throws Exception */
Turn off authentication and verify exception is raised in non-testing mode
testNoAuthenticationRestriction
{ "repo_name": "joshuayao/incubator-sentry", "path": "sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java", "license": "apache-2.0", "size": 19360 }
[ "org.apache.hadoop.hive.conf.HiveConf", "org.apache.sentry.binding.hive.authz.HiveAuthzBinding", "org.apache.sentry.binding.hive.conf.HiveAuthzConf", "org.apache.sentry.binding.hive.conf.InvalidConfigurationException", "org.junit.Test" ]
import org.apache.hadoop.hive.conf.HiveConf; import org.apache.sentry.binding.hive.authz.HiveAuthzBinding; import org.apache.sentry.binding.hive.conf.HiveAuthzConf; import org.apache.sentry.binding.hive.conf.InvalidConfigurationException; import org.junit.Test;
import org.apache.hadoop.hive.conf.*; import org.apache.sentry.binding.hive.authz.*; import org.apache.sentry.binding.hive.conf.*; import org.junit.*;
[ "org.apache.hadoop", "org.apache.sentry", "org.junit" ]
org.apache.hadoop; org.apache.sentry; org.junit;
977,775
public void getScale(String finalPath, double angle) { double xMax = 0, xMin =0, yMin=0, yMax=0; Cursor cursor = new Cursor(); Stack<Cursor> cursorStack = new Stack<Cursor>(); int c; StringReader pathReader = new StringReader(finalPath); try { ...
void function(String finalPath, double angle) { double xMax = 0, xMin =0, yMin=0, yMax=0; Cursor cursor = new Cursor(); Stack<Cursor> cursorStack = new Stack<Cursor>(); int c; StringReader pathReader = new StringReader(finalPath); try { for(int i=0; i<finalPath.length(); i++) { c = pathReader.read(); switch(c) { case('...
/** sets the scale so that the applet shows the whole Lsystem graphic * @param finalPath the final string that the cursor will move through * @param angle the angle the cursor turns for "+" and "-" symbols */
sets the scale so that the applet shows the whole Lsystem graphic
getScale
{ "repo_name": "geronimo-iia/geva", "path": "GEVA/src/Fractal/LSystem.java", "license": "gpl-3.0", "size": 12684 }
[ "java.io.IOException", "java.io.StringReader", "java.util.Stack" ]
import java.io.IOException; import java.io.StringReader; import java.util.Stack;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,588,058
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jButtonSeleccionar = new javax.swing.JButton(); ...
@SuppressWarnings(STR) void function() { jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jButtonSeleccionar = new javax.swing.JButton(); jButtonVolver = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle(STR); jTable1.setModel(ne...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "grupoProyecto1/gestionTienda", "path": "src/Vista/JDTablaFactura.java", "license": "agpl-3.0", "size": 7664 }
[ "javax.swing.JTable" ]
import javax.swing.JTable;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,569,613
List<String> listLabels(String language);
List<String> listLabels(String language);
/** * List labels for given <code>language</code> * @param language * @return */
List labels for given <code>language</code>
listLabels
{ "repo_name": "SolrSherlock/OpenSherlockCoreAPI", "path": "src/java/org/topicquests/model/api/node/INode.java", "license": "apache-2.0", "size": 18503 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,296,867
public void snapshot(MetricsRecordBuilder builder) { snapshot(builder, false); }
void function(MetricsRecordBuilder builder) { snapshot(builder, false); }
/** * Get a sampe/snapshot of metric if changed * * @param builder the metrics record builder */
Get a sampe/snapshot of metric if changed
snapshot
{ "repo_name": "zavakid/mushroom", "path": "src/main/java/com/zavakid/mushroom/lib/MetricMutable.java", "license": "apache-2.0", "size": 2289 }
[ "com.zavakid.mushroom.MetricsRecordBuilder" ]
import com.zavakid.mushroom.MetricsRecordBuilder;
import com.zavakid.mushroom.*;
[ "com.zavakid.mushroom" ]
com.zavakid.mushroom;
414,748
public boolean unsubscribe(String mailboxName) throws IOException { return doCommand (IMAPCommand.UNSUBSCRIBE, mailboxName); }
boolean function(String mailboxName) throws IOException { return doCommand (IMAPCommand.UNSUBSCRIBE, mailboxName); }
/** * Send a UNSUBSCRIBE command to the server. * @param mailboxName The mailbox name to unsubscribe from. * @return {@code true} if the command was successful,{@code false} if not. * @exception IOException If a network I/O error occurs. */
Send a UNSUBSCRIBE command to the server
unsubscribe
{ "repo_name": "mohanaraosv/commons-net", "path": "src/main/java/org/apache/commons/net/imap/IMAPClient.java", "license": "apache-2.0", "size": 21900 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
984,263
@Override public void onCompletion(Long result, Exception exception) { callbackWrapper.updateBytesRead(result); if (exception != null || isLast) { callbackWrapper.invokeCallback(exception); } } } private class ReadIntoCallbackWrapper { public final FutureResult<Lon...
void function(Long result, Exception exception) { callbackWrapper.updateBytesRead(result); if (exception != null isLast) { callbackWrapper.invokeCallback(exception); } } } private class ReadIntoCallbackWrapper { public final FutureResult<Long> futureResult = new FutureResult<Long>(); private final Callback<Long> callba...
/** * Updates the number of bytes read and invokes {@link ReadIntoCallbackWrapper#invokeCallback(Exception)} if * {@code exception} is not {@code null} or if this is the last piece of content in the request. * @param result The result of the request. This would be non null when the request executed succe...
Updates the number of bytes read and invokes <code>ReadIntoCallbackWrapper#invokeCallback(Exception)</code> if exception is not null or if this is the last piece of content in the request
onCompletion
{ "repo_name": "xiahome/ambry", "path": "ambry-api/src/test/java/com.github.ambry/rest/MockRestRequest.java", "license": "apache-2.0", "size": 18252 }
[ "com.github.ambry.router.Callback", "com.github.ambry.router.FutureResult", "java.util.concurrent.atomic.AtomicBoolean", "java.util.concurrent.atomic.AtomicLong" ]
import com.github.ambry.router.Callback; import com.github.ambry.router.FutureResult; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicLong;
import com.github.ambry.router.*; import java.util.concurrent.atomic.*;
[ "com.github.ambry", "java.util" ]
com.github.ambry; java.util;
711,825
public static Collection<Answer> getAnswersByQuestionPK(Connection con, ForeignPK questionPK) throws SQLException { SilverTrace.info("answer", "AnswerDAO.getAnswersByQuestionPK()", "root.MSG_GEN_ENTER_METHOD", "questionPK =" + questionPK); ResultSet rs = null; Answer answer = null; Answe...
static Collection<Answer> function(Connection con, ForeignPK questionPK) throws SQLException { SilverTrace.info(STR, STR, STR, STR + questionPK); ResultSet rs = null; Answer answer = null; AnswerPK answerPK = new AnswerPK(null, questionPK); String selectStatement = STR + ANSWERCOLUMNNAMES + STR; List<Answer> result = n...
/** * Get answers which composed the question * @param con the Connection * @param questionPK the QuestionPK (question id) * @return a Collection of Answer * @throws SQLException */
Get answers which composed the question
getAnswersByQuestionPK
{ "repo_name": "NicolasEYSSERIC/Silverpeas-Core", "path": "ejb-core/questioncontainer/src/main/java/com/stratelia/webactiv/util/answer/ejb/AnswerDAO.java", "license": "agpl-3.0", "size": 11225 }
[ "com.silverpeas.util.ForeignPK", "com.stratelia.silverpeas.silvertrace.SilverTrace", "com.stratelia.webactiv.util.DBUtil", "com.stratelia.webactiv.util.answer.model.Answer", "com.stratelia.webactiv.util.answer.model.AnswerPK", "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", ...
import com.silverpeas.util.ForeignPK; import com.stratelia.silverpeas.silvertrace.SilverTrace; import com.stratelia.webactiv.util.DBUtil; import com.stratelia.webactiv.util.answer.model.Answer; import com.stratelia.webactiv.util.answer.model.AnswerPK; import java.sql.Connection; import java.sql.PreparedStatement; impor...
import com.silverpeas.util.*; import com.stratelia.silverpeas.silvertrace.*; import com.stratelia.webactiv.util.*; import com.stratelia.webactiv.util.answer.model.*; import java.sql.*; import java.util.*;
[ "com.silverpeas.util", "com.stratelia.silverpeas", "com.stratelia.webactiv", "java.sql", "java.util" ]
com.silverpeas.util; com.stratelia.silverpeas; com.stratelia.webactiv; java.sql; java.util;
451,888
@Test public void testConversionChaining(){ try { InstanceFactory factory = new CoreInstanceFactory(); try { factory.addUnitAndScaleSet(OM.class); } catch (UnitOrScaleCreationException e) { e.printStackTrace(); } ...
void function(){ try { InstanceFactory factory = new CoreInstanceFactory(); try { factory.addUnitAndScaleSet(OM.class); } catch (UnitOrScaleCreationException e) { e.printStackTrace(); } Unit cubicmetre = OM.CubicMetre; SingularUnit teaspoon = factory.createSingularUnit(STR,"htsp",cubicmetre,4.928922e-6); SingularUnit d...
/** * Tests conversion chaining as suggested by Hajo. */
Tests conversion chaining as suggested by Hajo
testConversionChaining
{ "repo_name": "dieudonne-willems/om-java-libs", "path": "OM-java-om-1.8-set/src/test/java/nl/wur/fbr/om/OMUnitConversionTest.java", "license": "lgpl-3.0", "size": 9873 }
[ "nl.wur.fbr.om.conversion.CoreInstanceFactory", "nl.wur.fbr.om.exceptions.ConversionException", "nl.wur.fbr.om.exceptions.UnitOrScaleCreationException", "nl.wur.fbr.om.factory.InstanceFactory", "nl.wur.fbr.om.model.measures.Measure", "nl.wur.fbr.om.model.units.SingularUnit", "nl.wur.fbr.om.model.units.U...
import nl.wur.fbr.om.conversion.CoreInstanceFactory; import nl.wur.fbr.om.exceptions.ConversionException; import nl.wur.fbr.om.exceptions.UnitOrScaleCreationException; import nl.wur.fbr.om.factory.InstanceFactory; import nl.wur.fbr.om.model.measures.Measure; import nl.wur.fbr.om.model.units.SingularUnit; import nl.wur....
import nl.wur.fbr.om.conversion.*; import nl.wur.fbr.om.exceptions.*; import nl.wur.fbr.om.factory.*; import nl.wur.fbr.om.model.measures.*; import nl.wur.fbr.om.model.units.*; import org.junit.*;
[ "nl.wur.fbr", "org.junit" ]
nl.wur.fbr; org.junit;
2,285,142
protected ServiceRegistration registerService(BundleContext bundleContext, String capabilityName, String resourceType, String resourceName, String ifaceName) throws CapabilityException { Dictionary<String, String> props = new Hashtable<String, String>(); return registration = registerService(bundleContext, ca...
ServiceRegistration function(BundleContext bundleContext, String capabilityName, String resourceType, String resourceName, String ifaceName) throws CapabilityException { Dictionary<String, String> props = new Hashtable<String, String>(); return registration = registerService(bundleContext, capabilityName, resourceType,...
/** * Register the capability like a web service through DOSGi * * @param name * @param resourceId * @return * @throws CapabilityException */
Register the capability like a web service through DOSGi
registerService
{ "repo_name": "dana-i2cat/opennaas-routing-nfv", "path": "core/resources/src/main/java/org/opennaas/core/resources/capability/AbstractCapability.java", "license": "lgpl-3.0", "size": 12030 }
[ "java.util.Dictionary", "java.util.Hashtable", "org.osgi.framework.BundleContext", "org.osgi.framework.ServiceRegistration" ]
import java.util.Dictionary; import java.util.Hashtable; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceRegistration;
import java.util.*; import org.osgi.framework.*;
[ "java.util", "org.osgi.framework" ]
java.util; org.osgi.framework;
39,847
public Future<Channel> renegotiate() { ChannelHandlerContext ctx = this.ctx; if ( ctx == null ) { throw new IllegalStateException(); } return renegotiate( ctx.executor().<Channel> newPromise() ); }
Future<Channel> function() { ChannelHandlerContext ctx = this.ctx; if ( ctx == null ) { throw new IllegalStateException(); } return renegotiate( ctx.executor().<Channel> newPromise() ); }
/** * Performs TLS renegotiation. */
Performs TLS renegotiation
renegotiate
{ "repo_name": "ChioriGreene/GreenetreeESM", "path": "API/src/main/java/com/chiorichan/ssl/TestSslHandler.java", "license": "mit", "size": 42271 }
[ "io.netty.channel.Channel", "io.netty.channel.ChannelHandlerContext", "io.netty.util.concurrent.Future" ]
import io.netty.channel.Channel; import io.netty.channel.ChannelHandlerContext; import io.netty.util.concurrent.Future;
import io.netty.channel.*; import io.netty.util.concurrent.*;
[ "io.netty.channel", "io.netty.util" ]
io.netty.channel; io.netty.util;
321,697
protected IFigure setupContentPane(IFigure nodeShape) { if (nodeShape.getLayoutManager() == null) { nodeShape.setLayoutManager(new FreeformLayout() {
IFigure function(IFigure nodeShape) { if (nodeShape.getLayoutManager() == null) { nodeShape.setLayoutManager(new FreeformLayout() {
/** * Default implementation treats passed figure as content pane. * Respects layout one may have set for generated figure. * @param nodeShape instance of generated figure class * @generated */
Default implementation treats passed figure as content pane. Respects layout one may have set for generated figure
setupContentPane
{ "repo_name": "mikesligo/visGrid", "path": "ie.tcd.gmf.visGrid.diagram/src/visGrid/diagram/edit/parts/LightsEditPart.java", "license": "gpl-3.0", "size": 61154 }
[ "org.eclipse.draw2d.FreeformLayout", "org.eclipse.draw2d.IFigure" ]
import org.eclipse.draw2d.FreeformLayout; import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.*;
[ "org.eclipse.draw2d" ]
org.eclipse.draw2d;
2,005,794
public void setPrice(final double[] prices) { ArgumentChecker.isTrue(prices.length == _instruments.length, "Incorrect number of prices."); _prices = prices; }
void function(final double[] prices) { ArgumentChecker.isTrue(prices.length == _instruments.length, STR); _prices = prices; }
/** * Sets the prices of the instruments to calibrate. The instruments should be set first. * @param prices The prices. */
Sets the prices of the instruments to calibrate. The instruments should be set first
setPrice
{ "repo_name": "McLeodMoores/starling", "path": "projects/analytics/src/main/java/com/opengamma/analytics/financial/provider/method/SuccessiveLeastSquareCalibrationObjective.java", "license": "apache-2.0", "size": 2598 }
[ "com.opengamma.util.ArgumentChecker" ]
import com.opengamma.util.ArgumentChecker;
import com.opengamma.util.*;
[ "com.opengamma.util" ]
com.opengamma.util;
1,019,100
public List<MediaType> getAccept() { String value = getFirst(ACCEPT); List<MediaType> result = (value != null ? MediaType.parseMediaTypes(value) : Collections.<MediaType>emptyList()); // Some containers parse 'Accept' into multiple values if (result.size() == 1) { List<String> acceptHeader = get(ACCEPT);...
List<MediaType> function() { String value = getFirst(ACCEPT); List<MediaType> result = (value != null ? MediaType.parseMediaTypes(value) : Collections.<MediaType>emptyList()); if (result.size() == 1) { List<String> acceptHeader = get(ACCEPT); if (acceptHeader.size() > 1) { value = StringUtils.collectionToCommaDelimited...
/** * Return the list of acceptable {@linkplain MediaType media types}, * as specified by the {@code Accept} header. * <p>Returns an empty list when the acceptable media types are unspecified. */
Return the list of acceptable MediaType media types, as specified by the Accept header. Returns an empty list when the acceptable media types are unspecified
getAccept
{ "repo_name": "leogoing/spring_jeesite", "path": "spring-web-4.0/org/springframework/http/HttpHeaders.java", "license": "apache-2.0", "size": 20561 }
[ "java.util.Collections", "java.util.List", "org.springframework.util.StringUtils" ]
import java.util.Collections; import java.util.List; import org.springframework.util.StringUtils;
import java.util.*; import org.springframework.util.*;
[ "java.util", "org.springframework.util" ]
java.util; org.springframework.util;
1,167,922
@Override public List<IDocument> getNewDocuments() throws RepositoryException { try { List<IDocument> documents = new LinkedList<>(); if (lastChangeId == null) { logger.logMessage("Downloading list of all changes."); } else { logger.logMessage("Downloading list of all changes since change #%d.", ...
List<IDocument> function() throws RepositoryException { try { List<IDocument> documents = new LinkedList<>(); if (lastChangeId == null) { logger.logMessage(STR); } else { logger.logMessage(STR, lastChangeId.longValue()); } ChangeList changes = drive.listChanges(lastChangeId); for (Change change : changes.getItems()) { ...
/** * Fetches the list of new documents stored in Google Drive. * * Changes are fetched from all folders and documents shared with the service account. * @return List of new documents. * @throws RepositoryException when the documents cannot be fetched. */
Fetches the list of new documents stored in Google Drive. Changes are fetched from all folders and documents shared with the service account
getNewDocuments
{ "repo_name": "NEUROINFORMATICS-GROUP-FAV-KIV-ZCU/KIMBridge", "path": "src/cz/zcu/kiv/eeg/KIMBridge/repository/google/DriveRepository.java", "license": "mit", "size": 5133 }
[ "com.google.api.services.drive.model.Change", "com.google.api.services.drive.model.ChangeList", "cz.zcu.kiv.eeg.KIMBridge", "java.io.IOException", "java.util.LinkedList", "java.util.List" ]
import com.google.api.services.drive.model.Change; import com.google.api.services.drive.model.ChangeList; import cz.zcu.kiv.eeg.KIMBridge; import java.io.IOException; import java.util.LinkedList; import java.util.List;
import com.google.api.services.drive.model.*; import cz.zcu.kiv.eeg.*; import java.io.*; import java.util.*;
[ "com.google.api", "cz.zcu.kiv", "java.io", "java.util" ]
com.google.api; cz.zcu.kiv; java.io; java.util;
1,946,950
public String putImage(String theFolder, String theImageName, Bitmap theBitmap) { if (theFolder == null || theImageName == null || theBitmap == null) return null; this.DEFAULT_APP_IMAGEDATA_DIRECTORY = theFolder; String mFullPath = setupFullPath(theImageName); if (!mFul...
String function(String theFolder, String theImageName, Bitmap theBitmap) { if (theFolder == null theImageName == null theBitmap == null) return null; this.DEFAULT_APP_IMAGEDATA_DIRECTORY = theFolder; String mFullPath = setupFullPath(theImageName); if (!mFullPath.equals("")) { lastImagePath = mFullPath; saveBitmap(mFull...
/** * Saves 'theBitmap' into folder 'theFolder' with the name 'theImageName' * * @param theFolder the folder path dir you want to save it to e.g "DropBox/WorkImages" * @param theImageName the name you want to assign to the image file e.g "MeAtLunch.png" * @param theBitmap the image you wa...
Saves 'theBitmap' into folder 'theFolder' with the name 'theImageName'
putImage
{ "repo_name": "computationalcore/smartcoins-wallet", "path": "app/src/main/java/de/bitshares_munich/utils/TinyDB.java", "license": "mit", "size": 23158 }
[ "android.graphics.Bitmap" ]
import android.graphics.Bitmap;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
739,219
public static final Date parseToDate(final String timeString) throws ParseException { if (timeString == null) { throw new ParseException("time was null!", -1); } try { return FORMATTER_LONG.get().parse(timeString); } catch (final ParseException parseException)...
static final Date function(final String timeString) throws ParseException { if (timeString == null) { throw new ParseException(STR, -1); } try { return FORMATTER_LONG.get().parse(timeString); } catch (final ParseException parseException) { try { return FORMATTER_CUSTOM.get().parse(timeString); } catch (final ParseExcep...
/** * An utility method to parse a string into a 'Date' instance. Note that the * string should be in the locale-specific DateFormat.LONG style for both * the date and time, althought DateFormat.FULL will be accepted as well. * * @see java.text.DateFormat * @param timeString a {@link java....
An utility method to parse a string into a 'Date' instance. Note that the string should be in the locale-specific DateFormat.LONG style for both the date and time, althought DateFormat.FULL will be accepted as well
parseToDate
{ "repo_name": "vishwaAbhinav/OpenNMS", "path": "opennms-model/src/main/java/org/opennms/netmgt/EventConstants.java", "license": "gpl-2.0", "size": 49240 }
[ "java.text.ParseException", "java.util.Date" ]
import java.text.ParseException; import java.util.Date;
import java.text.*; import java.util.*;
[ "java.text", "java.util" ]
java.text; java.util;
1,729,414
protected final void STORE_LONG_FOR_CONV(Operand op) { int offset = -burs.ir.stackManager.allocateSpaceForConversion(); if (op instanceof RegisterOperand) { RegisterOperand hval = (RegisterOperand) op; RegisterOperand lval = new RegisterOperand(regpool.getSecondReg(hval.getRegister()), T...
final void function(Operand op) { int offset = -burs.ir.stackManager.allocateSpaceForConversion(); if (op instanceof RegisterOperand) { RegisterOperand hval = (RegisterOperand) op; RegisterOperand lval = new RegisterOperand(regpool.getSecondReg(hval.getRegister()), TypeReference.Int); EMIT(MIR_Move.create(IA32_MOV, new...
/** * Create a 64bit slot on the stack in memory for a conversion and store the * given long */
Create a 64bit slot on the stack in memory for a conversion and store the given long
STORE_LONG_FOR_CONV
{ "repo_name": "CodeOffloading/JikesRVM-CCO", "path": "jikesrvm-3.1.3/rvm/src/org/jikesrvm/compilers/opt/lir2mir/ia32/BURS_Helpers.java", "license": "epl-1.0", "size": 156281 }
[ "org.jikesrvm.classloader.TypeReference", "org.jikesrvm.compilers.opt.ir.Move", "org.jikesrvm.compilers.opt.ir.operand.LongConstantOperand", "org.jikesrvm.compilers.opt.ir.operand.Operand", "org.jikesrvm.compilers.opt.ir.operand.RegisterOperand", "org.jikesrvm.compilers.opt.ir.operand.StackLocationOperand...
import org.jikesrvm.classloader.TypeReference; import org.jikesrvm.compilers.opt.ir.Move; import org.jikesrvm.compilers.opt.ir.operand.LongConstantOperand; import org.jikesrvm.compilers.opt.ir.operand.Operand; import org.jikesrvm.compilers.opt.ir.operand.RegisterOperand; import org.jikesrvm.compilers.opt.ir.operand.Sta...
import org.jikesrvm.classloader.*; import org.jikesrvm.compilers.opt.ir.*; import org.jikesrvm.compilers.opt.ir.operand.*;
[ "org.jikesrvm.classloader", "org.jikesrvm.compilers" ]
org.jikesrvm.classloader; org.jikesrvm.compilers;
783,759
void foreach(XmlNodeVisitor visitor);
void foreach(XmlNodeVisitor visitor);
/** * Foreach-iterator calling a {@link org.sirix.api.visitor.NodeVisitor} for each iteration. * * @param visitor {@link XmlNodeVisitor} implementation */
Foreach-iterator calling a <code>org.sirix.api.visitor.NodeVisitor</code> for each iteration
foreach
{ "repo_name": "sirixdb/sirix", "path": "bundles/sirix-core/src/main/java/org/sirix/api/Axis.java", "license": "bsd-3-clause", "size": 2218 }
[ "org.sirix.api.visitor.XmlNodeVisitor" ]
import org.sirix.api.visitor.XmlNodeVisitor;
import org.sirix.api.visitor.*;
[ "org.sirix.api" ]
org.sirix.api;
1,913,272
protected void shutdownNodeSourceServices(Client initiator) { logger.info("[" + this.name + "] Shutdown finalization"); this.activePolicy.shutdown(initiator); this.infrastructureManager.internalShutDown(); this.finishNodeSourceShutdown(initiator); }
void function(Client initiator) { logger.info("[" + this.name + STR); this.activePolicy.shutdown(initiator); this.infrastructureManager.internalShutDown(); this.finishNodeSourceShutdown(initiator); }
/** * Initiates node source services shutdown, such as pinger, policy, thread pool. */
Initiates node source services shutdown, such as pinger, policy, thread pool
shutdownNodeSourceServices
{ "repo_name": "tobwiens/scheduling", "path": "rm/rm-server/src/main/java/org/ow2/proactive/resourcemanager/nodesource/NodeSource.java", "license": "agpl-3.0", "size": 37652 }
[ "org.ow2.proactive.resourcemanager.authentication.Client" ]
import org.ow2.proactive.resourcemanager.authentication.Client;
import org.ow2.proactive.resourcemanager.authentication.*;
[ "org.ow2.proactive" ]
org.ow2.proactive;
1,901,533
Collection<BasicGene> findGenesExtendingIntoRange(String organismCommonName, String chromosomeUniqueName, int strand, long locMin, long locMax);
Collection<BasicGene> findGenesExtendingIntoRange(String organismCommonName, String chromosomeUniqueName, int strand, long locMin, long locMax);
/** * Find all genes whose 3' end is contained in the range [<code>locMin</code>, <code>locMax</code>). * I.e. includes genes that stop precisely at <code>locMin</code>, but not those that stop * precisely at <code>locMax</code>. * * @param organismCommonName * @param chromosomeUniqueName ...
Find all genes whose 3' end is contained in the range [<code>locMin</code>, <code>locMax</code>). I.e. includes genes that stop precisely at <code>locMin</code>, but not those that stop precisely at <code>locMax</code>
findGenesExtendingIntoRange
{ "repo_name": "sanger-pathogens/GeneDB", "path": "ng/src/org/genedb/db/domain/services/BasicGeneService.java", "license": "gpl-3.0", "size": 2782 }
[ "java.util.Collection", "org.genedb.db.domain.objects.BasicGene" ]
import java.util.Collection; import org.genedb.db.domain.objects.BasicGene;
import java.util.*; import org.genedb.db.domain.objects.*;
[ "java.util", "org.genedb.db" ]
java.util; org.genedb.db;
1,140,088
@Override public void disconnect(int id) { SelectionKey key = this.keys.get(id); if (key != null) key.cancel(); }
void function(int id) { SelectionKey key = this.keys.get(id); if (key != null) key.cancel(); }
/** * Disconnect any connections for the given id (if there are any). The disconnection is asynchronous and will not be * processed until the next {@link #poll(long, List) poll()} call. */
Disconnect any connections for the given id (if there are any). The disconnection is asynchronous and will not be processed until the next <code>#poll(long, List) poll()</code> call
disconnect
{ "repo_name": "stealthly/kafka", "path": "clients/src/main/java/org/apache/kafka/common/network/Selector.java", "license": "apache-2.0", "size": 20981 }
[ "java.nio.channels.SelectionKey" ]
import java.nio.channels.SelectionKey;
import java.nio.channels.*;
[ "java.nio" ]
java.nio;
33,556
public Set<gov.nih.nci.calims2.domain.administration.customerservice.ServiceItem> getServiceItemCollection() { return serviceItemCollection; }
Set<gov.nih.nci.calims2.domain.administration.customerservice.ServiceItem> function() { return serviceItemCollection; }
/** * Retrieves the value of the serviceItemCollection attribute. * @return serviceItemCollection **/
Retrieves the value of the serviceItemCollection attribute
getServiceItemCollection
{ "repo_name": "NCIP/calims", "path": "calims2-model/src/java/gov/nih/nci/calims2/domain/administration/customerservice/Service.java", "license": "bsd-3-clause", "size": 8507 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
718,720
public Set<Origin> activeOrigins() { return activeOrigins; }
Set<Origin> function() { return activeOrigins; }
/** * Set of active origins. * * @return active origins */
Set of active origins
activeOrigins
{ "repo_name": "mikkokar/styx", "path": "components/api/src/main/java/com/hotels/styx/api/extension/OriginsSnapshot.java", "license": "apache-2.0", "size": 5133 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,778,916
protected Collection<InetSocketAddress> resolvedAddresses() throws IgniteSpiException { // Time when resolution process started. long resolutionStartNanos = System.nanoTime(); List<InetSocketAddress> res = new ArrayList<>(); Collection<InetSocketAddress> addrs; long timeout...
Collection<InetSocketAddress> function() throws IgniteSpiException { long resolutionStartNanos = System.nanoTime(); List<InetSocketAddress> res = new ArrayList<>(); Collection<InetSocketAddress> addrs; long timeout = isClientMode() && impl.getSpiState().equalsIgnoreCase(STR) ? netTimeout : joinTimeout; while (true) { t...
/** * Resolves addresses registered in the IP finder, removes duplicates and local host * address and returns the collection of. * * @return Resolved addresses without duplicates and local address (potentially * empty but never null). * @throws org.apache.ignite.spi.IgniteSpiException...
Resolves addresses registered in the IP finder, removes duplicates and local host address and returns the collection of
resolvedAddresses
{ "repo_name": "NSAmelchev/ignite", "path": "modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpi.java", "license": "apache-2.0", "size": 94998 }
[ "java.net.InetAddress", "java.net.InetSocketAddress", "java.net.UnknownHostException", "java.util.ArrayList", "java.util.Collection", "java.util.Collections", "java.util.List", "org.apache.ignite.internal.IgniteInterruptedCheckedException", "org.apache.ignite.internal.util.typedef.internal.LT", "o...
import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import org.apache.ignite.internal.IgniteInterruptedCheckedException; import org.apache.ignite.internal.util....
import java.net.*; import java.util.*; import org.apache.ignite.internal.*; import org.apache.ignite.internal.util.typedef.internal.*; import org.apache.ignite.spi.*;
[ "java.net", "java.util", "org.apache.ignite" ]
java.net; java.util; org.apache.ignite;
558,335
static public IFile proceduresFile(MappedStructure mappedStructure) throws MapperException { String resourceLocation = mappedStructure.eResource().getURI().toString(); // deal with an initial '//' which occurs on macs if (resourceLocation.startsWith("file://")) resourceLocation = "file:/" + resourceLocati...
static IFile function(MappedStructure mappedStructure) throws MapperException { String resourceLocation = mappedStructure.eResource().getURI().toString(); if (resourceLocation.startsWith(STRplatform:/resource")) resourceLocation = FileUtil.resourceLocation(resourceLocation); IFolder wProcFolder = EclipseFileUtil.makeWP...
/** * get the procedures file for the current Mapping file * from the standard location in this project. * This is the same sub-folder of the Translators folder as the sub-folder of * the MappingSets folder holding the mapping set; make the folder if necessary * @return */
get the procedures file for the current Mapping file from the standard location in this project. This is the same sub-folder of the Translators folder as the sub-folder of the MappingSets folder holding the mapping set; make the folder if necessary
proceduresFile
{ "repo_name": "openmapsoftware/mappingtools", "path": "openmap-mapper-lib/src/main/java/com/openMap1/mapper/util/EclipseFileUtil.java", "license": "epl-1.0", "size": 20223 }
[ "org.eclipse.core.resources.IFile", "org.eclipse.core.resources.IFolder" ]
import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.*;
[ "org.eclipse.core" ]
org.eclipse.core;
1,002,052
public Vertex getTargetVertex() { return f2; }
Vertex function() { return f2; }
/** * Returns the target vertex * @return target vertex */
Returns the target vertex
getTargetVertex
{ "repo_name": "Venom590/gradoop", "path": "gradoop-flink/src/main/java/org/gradoop/flink/model/impl/operators/matching/single/cypher/pojos/Triple.java", "license": "gpl-3.0", "size": 2869 }
[ "org.gradoop.common.model.impl.pojo.Vertex" ]
import org.gradoop.common.model.impl.pojo.Vertex;
import org.gradoop.common.model.impl.pojo.*;
[ "org.gradoop.common" ]
org.gradoop.common;
2,627,340
public Set<String> getCookieNames();
Set<String> function();
/** * Gets the key cookie names * * @return The cookie names */
Gets the key cookie names
getCookieNames
{ "repo_name": "vjanmey/EpicMudfia", "path": "com/planet_ink/miniweb/interfaces/HTTPRequest.java", "license": "apache-2.0", "size": 5676 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,055,550
double res = 0.; final MNSKey key = new MNSKey(m, n, s); if (map.containsKey(key)) { res = map.get(key); } else { if (s <= -m) { res = FastMath.pow(-1, m - s) * FastMath.pow(2, s) * FastMath.pow(opIg, -I * m); } else if (s >= m) { ...
double res = 0.; final MNSKey key = new MNSKey(m, n, s); if (map.containsKey(key)) { res = map.get(key); } else { if (s <= -m) { res = FastMath.pow(-1, m - s) * FastMath.pow(2, s) * FastMath.pow(opIg, -I * m); } else if (s >= m) { res = FastMath.pow(2, -s) * FastMath.pow(opIg, I * m); } else { res = FastMath.pow(-1, m ...
/** Get &Gamma; function value. * @param m m * @param n n * @param s s * @return &Gamma;<sup>m</sup><sub>n, s</sub>(γ) */
Get &Gamma; function value
getValue
{ "repo_name": "wardev/orekit", "path": "src/main/java/org/orekit/propagation/semianalytical/dsst/utilities/GammaMnsFunction.java", "license": "apache-2.0", "size": 3309 }
[ "org.apache.commons.math3.util.FastMath", "org.orekit.propagation.semianalytical.dsst.utilities.CoefficientsFactory" ]
import org.apache.commons.math3.util.FastMath; import org.orekit.propagation.semianalytical.dsst.utilities.CoefficientsFactory;
import org.apache.commons.math3.util.*; import org.orekit.propagation.semianalytical.dsst.utilities.*;
[ "org.apache.commons", "org.orekit.propagation" ]
org.apache.commons; org.orekit.propagation;
1,718,226
public List<DataType> getParameterTypes() { return this.updatedParameterTypes; }
List<DataType> function() { return this.updatedParameterTypes; }
/** * Returns all the parameters' types. * * @return List of Parameters' Data types */
Returns all the parameters' types
getParameterTypes
{ "repo_name": "mF2C/COMPSs", "path": "compss/runtime/adaptors/execution/src/main/java/es/bsc/compss/invokers/types/ExternalTaskStatus.java", "license": "apache-2.0", "size": 5767 }
[ "es.bsc.compss.types.annotations.parameter.DataType", "java.util.List" ]
import es.bsc.compss.types.annotations.parameter.DataType; import java.util.List;
import es.bsc.compss.types.annotations.parameter.*; import java.util.*;
[ "es.bsc.compss", "java.util" ]
es.bsc.compss; java.util;
444,054
private boolean matchObstacleConstraint(ObstacleConstraint obstacleConstraint, JsonNode constraintJson) { final JsonNode obstaclesJson = constraintJson.get("obstacles"); if (obstaclesJson.size() != obstacleConstraint.obstacles().size()) { retu...
boolean function(ObstacleConstraint obstacleConstraint, JsonNode constraintJson) { final JsonNode obstaclesJson = constraintJson.get(STR); if (obstaclesJson.size() != obstacleConstraint.obstacles().size()) { return false; } for (int obstaclesIndex = 0; obstaclesIndex < obstaclesJson.size(); obstaclesIndex++) { boolean ...
/** * Matches an obstacle constraint against a JSON representation of the * constraint. * * @param obstacleConstraint constraint object to match * @param constraintJson JSON representation of the constraint * @return true if the constraint and JSON match, false otherwise. */
Matches an obstacle constraint against a JSON representation of the constraint
matchObstacleConstraint
{ "repo_name": "sonu283304/onos", "path": "core/common/src/test/java/org/onosproject/codec/impl/IntentJsonMatcher.java", "license": "apache-2.0", "size": 21051 }
[ "com.fasterxml.jackson.databind.JsonNode", "org.onosproject.net.DeviceId", "org.onosproject.net.intent.constraint.ObstacleConstraint" ]
import com.fasterxml.jackson.databind.JsonNode; import org.onosproject.net.DeviceId; import org.onosproject.net.intent.constraint.ObstacleConstraint;
import com.fasterxml.jackson.databind.*; import org.onosproject.net.*; import org.onosproject.net.intent.constraint.*;
[ "com.fasterxml.jackson", "org.onosproject.net" ]
com.fasterxml.jackson; org.onosproject.net;
1,120,397
final InitData initData = replay.initData = new InitData(); setWrapper( data, ByteOrder.LITTLE_ENDIAN ); // Clients init data final int maxClientsCount = wrapper.get() & 0xff; final List< Client > clientList = new ArrayList< Client >(); // From version 2.0 structure changed if ( versionC...
final InitData initData = replay.initData = new InitData(); setWrapper( data, ByteOrder.LITTLE_ENDIAN ); final int maxClientsCount = wrapper.get() & 0xff; final List< Client > clientList = new ArrayList< Client >(); if ( versionCompatibility.compareTo( VersionCompatibility.V_2_0 ) <= 0 ) { final BitInputStream bitin = ...
/** * Parses replay init data from the given data. * @param data data of the replay init data */
Parses replay init data from the given data
parseInitData
{ "repo_name": "icza/sc2gears", "path": "src/hu/belicza/andras/sc2gears/sc2replay/ReplayParser.java", "license": "apache-2.0", "size": 48290 }
[ "hu.belicza.andras.sc2gears.sc2replay.ReplayFactory", "hu.belicza.andras.sc2gears.sc2replay.model.InitData", "hu.belicza.andras.sc2gears.util.GeneralUtils", "hu.belicza.andras.sc2gearspluginapi.api.enums.League", "hu.belicza.andras.sc2gearspluginapi.api.sc2replay.ReplayConsts", "java.nio.ByteOrder", "ja...
import hu.belicza.andras.sc2gears.sc2replay.ReplayFactory; import hu.belicza.andras.sc2gears.sc2replay.model.InitData; import hu.belicza.andras.sc2gears.util.GeneralUtils; import hu.belicza.andras.sc2gearspluginapi.api.enums.League; import hu.belicza.andras.sc2gearspluginapi.api.sc2replay.ReplayConsts; import java.nio....
import hu.belicza.andras.sc2gears.sc2replay.*; import hu.belicza.andras.sc2gears.sc2replay.model.*; import hu.belicza.andras.sc2gears.util.*; import hu.belicza.andras.sc2gearspluginapi.api.enums.*; import hu.belicza.andras.sc2gearspluginapi.api.sc2replay.*; import java.nio.*; import java.util.*;
[ "hu.belicza.andras", "java.nio", "java.util" ]
hu.belicza.andras; java.nio; java.util;
873,077
private void setSharedPreferences(String key, String value){ _sharedPreferences.edit().putString(key, value).apply(); Log.d(TAG, "prefs: " + key + ", " + _sharedPreferences.getString(key,"")); }
void function(String key, String value){ _sharedPreferences.edit().putString(key, value).apply(); Log.d(TAG, STR + key + STR + _sharedPreferences.getString(key,"")); }
/** * Stores shared preferences so they can be retrieved after the app * is minimized then resumed. * @param value String * @param key String */
Stores shared preferences so they can be retrieved after the app is minimized then resumed
setSharedPreferences
{ "repo_name": "geostarters/cordova-plugin-advanced-geolocation", "path": "src/com/esri/cordova/geolocation/AdvancedGeolocation.java", "license": "apache-2.0", "size": 23700 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
1,530,084
public void start() { frameworkListener = new FrameworkListener() {
void function() { frameworkListener = new FrameworkListener() {
/** * Starting the blocker instance. */
Starting the blocker instance
start
{ "repo_name": "everit-org/osgi-testrunner", "path": "src/main/java/org/everit/osgi/dev/testrunner/internal/blocking/FrameworkStartingShutdownBlockerImpl.java", "license": "lgpl-3.0", "size": 2577 }
[ "org.osgi.framework.FrameworkListener" ]
import org.osgi.framework.FrameworkListener;
import org.osgi.framework.*;
[ "org.osgi.framework" ]
org.osgi.framework;
2,534,266
private boolean pathResolvesToId(final long zoneId, final String zonePath) throws UnresolvedLinkException, AccessControlException, ParentNotDirectoryException { assert dir.hasReadLock(); INode inode = dir.getInode(zoneId); if (inode == null) { return false; } INode lastINode = nu...
boolean function(final long zoneId, final String zonePath) throws UnresolvedLinkException, AccessControlException, ParentNotDirectoryException { assert dir.hasReadLock(); INode inode = dir.getInode(zoneId); if (inode == null) { return false; } INode lastINode = null; if (INode.isValidAbsolutePath(zonePath)) { INodesInP...
/** * Resolves the path to inode id, then check if it's the same as the inode id * passed in. This is necessary to filter out zones in snapshots. * @param zoneId * @param zonePath * @return true if path resolve to the id, false if not. * @throws UnresolvedLinkException */
Resolves the path to inode id, then check if it's the same as the inode id passed in. This is necessary to filter out zones in snapshots
pathResolvesToId
{ "repo_name": "GeLiXin/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EncryptionZoneManager.java", "license": "apache-2.0", "size": 27131 }
[ "org.apache.hadoop.fs.ParentNotDirectoryException", "org.apache.hadoop.fs.UnresolvedLinkException", "org.apache.hadoop.hdfs.server.namenode.FSDirectory", "org.apache.hadoop.security.AccessControlException" ]
import org.apache.hadoop.fs.ParentNotDirectoryException; import org.apache.hadoop.fs.UnresolvedLinkException; import org.apache.hadoop.hdfs.server.namenode.FSDirectory; import org.apache.hadoop.security.AccessControlException;
import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.server.namenode.*; import org.apache.hadoop.security.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
746,089
public static BigDecimal decimalPart(final BigDecimal val) { return BigDecimalUtil.subtract(val, val.setScale(0, BigDecimal.ROUND_DOWN)); }
static BigDecimal function(final BigDecimal val) { return BigDecimalUtil.subtract(val, val.setScale(0, BigDecimal.ROUND_DOWN)); }
/** * Return the decimal part of the value. * * @param val */
Return the decimal part of the value
decimalPart
{ "repo_name": "mattxia/unique-web", "path": "src/main/java/org/unique/plugin/image/util/BigDecimalUtil.java", "license": "apache-2.0", "size": 23659 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
1,981,010
private Optional<BuildConfigStrategy> dockerfileFromRemoteGitRepoBuildConfig( OpenShiftMavenDeploymentRequest openShiftRequest, Resource mavenResource, AppDeploymentRequest request, Map<String, String> labels) { Optional<BuildConfigStrategy> buildConfigFactory = Optional.empty(); GitReference gitReference...
Optional<BuildConfigStrategy> function( OpenShiftMavenDeploymentRequest openShiftRequest, Resource mavenResource, AppDeploymentRequest request, Map<String, String> labels) { Optional<BuildConfigStrategy> buildConfigFactory = Optional.empty(); GitReference gitReference = openShiftRequest.getGitReference(); try { if (ope...
/** * check the Maven artifact Jar for the presence of `src/main/docker/Dockerfile`, if * it exists, it is an indication/assumption that the Dockerfile is present in a * remote Git repository. OpenShift will use the actual remote repository as a Git * Repository source. */
check the Maven artifact Jar for the presence of `src/main/docker/Dockerfile`, if it exists, it is an indication/assumption that the Dockerfile is present in a remote Git repository. OpenShift will use the actual remote repository as a Git Repository source
dockerfileFromRemoteGitRepoBuildConfig
{ "repo_name": "donovanmuller/spring-cloud-deployer-openshift", "path": "src/main/java/org/springframework/cloud/deployer/spi/openshift/resources/buildConfig/BuildStrategies.java", "license": "apache-2.0", "size": 6379 }
[ "java.io.IOException", "java.util.Map", "java.util.Optional", "org.springframework.cloud.deployer.spi.core.AppDeploymentRequest", "org.springframework.cloud.deployer.spi.openshift.OpenShiftMavenDeploymentRequest", "org.springframework.cloud.deployer.spi.openshift.maven.GitReference", "org.springframewor...
import java.io.IOException; import java.util.Map; import java.util.Optional; import org.springframework.cloud.deployer.spi.core.AppDeploymentRequest; import org.springframework.cloud.deployer.spi.openshift.OpenShiftMavenDeploymentRequest; import org.springframework.cloud.deployer.spi.openshift.maven.GitReference; impor...
import java.io.*; import java.util.*; import org.springframework.cloud.deployer.spi.core.*; import org.springframework.cloud.deployer.spi.openshift.*; import org.springframework.cloud.deployer.spi.openshift.maven.*; import org.springframework.core.io.*;
[ "java.io", "java.util", "org.springframework.cloud", "org.springframework.core" ]
java.io; java.util; org.springframework.cloud; org.springframework.core;
487,892