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 void sendTo(Location center, List<Player> players) throws IllegalArgumentException { if (players.isEmpty()) { throw new IllegalArgumentException("The player list is empty"); } for (Player player : players) { sendTo(center, player); } }
void function(Location center, List<Player> players) throws IllegalArgumentException { if (players.isEmpty()) { throw new IllegalArgumentException(STR); } for (Player player : players) { sendTo(center, player); } }
/** * Sends the packet to all players in the list * * @param center Center location of the effect * @param players Receivers of the packet * @throws IllegalArgumentException If the player list is empty * @see #sendTo(Location center, Player player) */
Sends the packet to all players in the list
sendTo
{ "repo_name": "fahlur/MonsterSnatcher", "path": "src/me.Fahlur.MonsterSnatcher/ParticleEffect.java", "license": "gpl-3.0", "size": 59984 }
[ "java.util.List", "org.bukkit.Location", "org.bukkit.entity.Player" ]
import java.util.List; import org.bukkit.Location; import org.bukkit.entity.Player;
import java.util.*; import org.bukkit.*; import org.bukkit.entity.*;
[ "java.util", "org.bukkit", "org.bukkit.entity" ]
java.util; org.bukkit; org.bukkit.entity;
789,435
public void updateEncryptLayout() { if (!isCryptoProviderEnabled()) { return; } if (!mPgpData.hasSignatureKey()) { mCryptoSignatureCheckbox.setText(R.string.btn_crypto_sign); mCryptoSignatureCheckbox.setChecked(false); mCryptoSignatureUserId.setVisibility(View.INVISIBLE); mCryptoSignatureUserIdRest.setVisibility(View.INVISIBLE); } else { // if a signature key is selected, then the checkbox itself has no text mCryptoSignatureCheckbox.setText(""); mCryptoSignatureCheckbox.setChecked(true); mCryptoSignatureUserId.setVisibility(View.VISIBLE); mCryptoSignatureUserIdRest.setVisibility(View.VISIBLE); mCryptoSignatureUserId.setText(R.string.unknown_crypto_signature_user_id); mCryptoSignatureUserIdRest.setText(""); String userId = mPgpData.getSignatureUserId(); if (userId != null) { String chunks[] = mPgpData.getSignatureUserId().split(" <", 2); mCryptoSignatureUserId.setText(chunks[0]); if (chunks.length > 1) { mCryptoSignatureUserIdRest.setText("<" + chunks[1]); } } } updateMessageFormat(); }
void function() { if (!isCryptoProviderEnabled()) { return; } if (!mPgpData.hasSignatureKey()) { mCryptoSignatureCheckbox.setText(R.string.btn_crypto_sign); mCryptoSignatureCheckbox.setChecked(false); mCryptoSignatureUserId.setVisibility(View.INVISIBLE); mCryptoSignatureUserIdRest.setVisibility(View.INVISIBLE); } else { mCryptoSignatureCheckbox.setText(STRSTR <STR<" + chunks[1]); } } } updateMessageFormat(); }
/** * Fill the encrypt layout with the latest data about signature key and encryption keys. */
Fill the encrypt layout with the latest data about signature key and encryption keys
updateEncryptLayout
{ "repo_name": "cooperpellaton/k-9", "path": "k9mail/src/main/java/com/fsck/k9/activity/MessageCompose.java", "license": "bsd-3-clause", "size": 146279 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
194,467
private synchronized static void loadOpenfireProperties() { if (openfireProperties == null) { // If home is null then log that the application will not work correctly if (home == null && !failedLoading) { failedLoading = true; StringBuilder msg = new StringBuilder(); msg.append("Critical Error! The home directory has not been configured, \n"); msg.append("which will prevent the application from working correctly.\n\n"); System.err.println(msg.toString()); } // Create a manager with the full path to the Openfire config file. else { try { openfireProperties = new XMLProperties(home + File.separator + getConfigName()); } catch (IOException ioe) { Log.error(ioe.getMessage()); failedLoading = true; } } // create a default/empty XML properties set (helpful for unit testing) if (openfireProperties == null) { try { openfireProperties = new XMLProperties(); } catch (IOException e) { Log.error("Failed to setup default openfire properties", e); } } } }
synchronized static void function() { if (openfireProperties == null) { if (home == null && !failedLoading) { failedLoading = true; StringBuilder msg = new StringBuilder(); msg.append(STR); msg.append(STR); System.err.println(msg.toString()); } else { try { openfireProperties = new XMLProperties(home + File.separator + getConfigName()); } catch (IOException ioe) { Log.error(ioe.getMessage()); failedLoading = true; } } if (openfireProperties == null) { try { openfireProperties = new XMLProperties(); } catch (IOException e) { Log.error(STR, e); } } } }
/** * Loads Openfire properties if necessary. Property loading must be done lazily so * that we give outside classes a chance to set <tt>home</tt>. */
Loads Openfire properties if necessary. Property loading must be done lazily so that we give outside classes a chance to set home
loadOpenfireProperties
{ "repo_name": "trimnguye/JavaChatServer", "path": "src/java/org/jivesoftware/util/JiveGlobals.java", "license": "apache-2.0", "size": 42411 }
[ "java.io.File", "java.io.IOException" ]
import java.io.File; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
193,700
private String getFieldName(String pContentDisposition) { String fieldName = null; if (pContentDisposition != null && pContentDisposition.toLowerCase(Locale.ENGLISH).startsWith(FORM_DATA)) { ParameterParser parser = new ParameterParser(); parser.setLowerCaseNames(true); // Parameter parser can handle null input Map<String,String> params = parser.parse(pContentDisposition, ';'); fieldName = params.get("name"); if (fieldName != null) { fieldName = fieldName.trim(); } } return fieldName; }
String function(String pContentDisposition) { String fieldName = null; if (pContentDisposition != null && pContentDisposition.toLowerCase(Locale.ENGLISH).startsWith(FORM_DATA)) { ParameterParser parser = new ParameterParser(); parser.setLowerCaseNames(true); Map<String,String> params = parser.parse(pContentDisposition, ';'); fieldName = params.get("name"); if (fieldName != null) { fieldName = fieldName.trim(); } } return fieldName; }
/** * Returns the field name, which is given by the content-disposition * header. * @param pContentDisposition The content-dispositions header value. * @return The field jake */
Returns the field name, which is given by the content-disposition header
getFieldName
{ "repo_name": "plumer/codana", "path": "tomcat_files/8.0.22/FileUploadBase.java", "license": "mit", "size": 43475 }
[ "java.util.Locale", "java.util.Map" ]
import java.util.Locale; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,891,449
public Set<ResolvedModule> modules() { return modules; }
Set<ResolvedModule> function() { return modules; }
/** * Returns an unmodifiable set of the resolved modules in this configuration. * * @return A possibly-empty unmodifiable set of the resolved modules * in this configuration */
Returns an unmodifiable set of the resolved modules in this configuration
modules
{ "repo_name": "mirkosertic/Bytecoder", "path": "classlib/java.base/src/main/resources/META-INF/modules/java.base/classes/java/lang/module/Configuration.java", "license": "apache-2.0", "size": 25873 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,038,686
protected void parseComparator(Element element, ParserContext context, BeanDefinitionBuilder builder) { boolean hasComparatorRef = element.hasAttribute(INLINE_COMPARATOR_REF); // check nested comparator Element comparatorElement = DomUtils.getChildElementByTagName(element, NESTED_COMPARATOR); Object nestedComparator = null; // comparator definition present if (comparatorElement != null) { // check duplicate nested and inline bean definition if (hasComparatorRef) context.getReaderContext().error( "nested comparator declaration is not allowed if " + INLINE_COMPARATOR_REF + " attribute has been specified", comparatorElement); NodeList nl = comparatorElement.getChildNodes(); // take only elements for (int i = 0; i < nl.getLength(); i++) { Node nd = nl.item(i); if (nd instanceof Element) { Element beanDef = (Element) nd; String name = beanDef.getLocalName(); // check if we have a 'natural' tag (known comparator // definitions) if (NATURAL.equals(name)) nestedComparator = parseNaturalComparator(beanDef); else // we have a nested definition nestedComparator = parsePropertySubElement(context, beanDef, builder.getBeanDefinition()); } } // set the reference to the nested comparator reference if (nestedComparator != null) builder.addPropertyValue(COMPARATOR_PROPERTY, nestedComparator); } // set collection type // based on the existence of the comparator // we treat the case where the comparator is natural which means the // comparator // instance is null however, we have to force a sorted collection to be // used // so that the object natural ordering is used. if (comparatorElement != null || hasComparatorRef) { if (CollectionType.LIST.equals(collectionType())) { builder.addPropertyValue(COLLECTION_TYPE_PROP, CollectionType.SORTED_LIST); } if (CollectionType.SET.equals(collectionType())) { builder.addPropertyValue(COLLECTION_TYPE_PROP, CollectionType.SORTED_SET); } } else { builder.addPropertyValue(COLLECTION_TYPE_PROP, collectionType()); } }
void function(Element element, ParserContext context, BeanDefinitionBuilder builder) { boolean hasComparatorRef = element.hasAttribute(INLINE_COMPARATOR_REF); Element comparatorElement = DomUtils.getChildElementByTagName(element, NESTED_COMPARATOR); Object nestedComparator = null; if (comparatorElement != null) { if (hasComparatorRef) context.getReaderContext().error( STR + INLINE_COMPARATOR_REF + STR, comparatorElement); NodeList nl = comparatorElement.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node nd = nl.item(i); if (nd instanceof Element) { Element beanDef = (Element) nd; String name = beanDef.getLocalName(); if (NATURAL.equals(name)) nestedComparator = parseNaturalComparator(beanDef); else nestedComparator = parsePropertySubElement(context, beanDef, builder.getBeanDefinition()); } } if (nestedComparator != null) builder.addPropertyValue(COMPARATOR_PROPERTY, nestedComparator); } if (comparatorElement != null hasComparatorRef) { if (CollectionType.LIST.equals(collectionType())) { builder.addPropertyValue(COLLECTION_TYPE_PROP, CollectionType.SORTED_LIST); } if (CollectionType.SET.equals(collectionType())) { builder.addPropertyValue(COLLECTION_TYPE_PROP, CollectionType.SORTED_SET); } } else { builder.addPropertyValue(COLLECTION_TYPE_PROP, collectionType()); } }
/** * Parse &lt;comparator&gt; element. * * @param element * @param context * @param builder */
Parse &lt;comparator&gt; element
parseComparator
{ "repo_name": "eclipse/gemini.blueprint", "path": "core/src/main/java/org/eclipse/gemini/blueprint/config/internal/CollectionBeanDefinitionParser.java", "license": "apache-2.0", "size": 7269 }
[ "org.eclipse.gemini.blueprint.service.importer.support.CollectionType", "org.springframework.beans.factory.support.BeanDefinitionBuilder", "org.springframework.beans.factory.xml.ParserContext", "org.springframework.util.xml.DomUtils", "org.w3c.dom.Element", "org.w3c.dom.Node", "org.w3c.dom.NodeList" ]
import org.eclipse.gemini.blueprint.service.importer.support.CollectionType; import org.springframework.beans.factory.support.BeanDefinitionBuilder; import org.springframework.beans.factory.xml.ParserContext; import org.springframework.util.xml.DomUtils; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList;
import org.eclipse.gemini.blueprint.service.importer.support.*; import org.springframework.beans.factory.support.*; import org.springframework.beans.factory.xml.*; import org.springframework.util.xml.*; import org.w3c.dom.*;
[ "org.eclipse.gemini", "org.springframework.beans", "org.springframework.util", "org.w3c.dom" ]
org.eclipse.gemini; org.springframework.beans; org.springframework.util; org.w3c.dom;
2,445,140
@RequestMapping(value = "/contact/{id}", method = RequestMethod.DELETE) public ResponseEntity<Void> deleteContact(@PathVariable("id") Integer contactId) { Contact existentContact = phonebookService.findContactById(contactId); if (existentContact == null) { return new ResponseEntity<>(HttpStatus.NOT_FOUND); } phonebookService.deleteContact(contactId); return new ResponseEntity<>(HttpStatus.OK); }
@RequestMapping(value = STR, method = RequestMethod.DELETE) ResponseEntity<Void> function(@PathVariable("id") Integer contactId) { Contact existentContact = phonebookService.findContactById(contactId); if (existentContact == null) { return new ResponseEntity<>(HttpStatus.NOT_FOUND); } phonebookService.deleteContact(contactId); return new ResponseEntity<>(HttpStatus.OK); }
/** * Remove Contact entity by id * * @param contactId to remove an entity * @return ResponseEntity object */
Remove Contact entity by id
deleteContact
{ "repo_name": "vsyso/phonebook", "path": "spring/src/java/org/syso/phonebook/controller/ContactController.java", "license": "mit", "size": 8996 }
[ "org.springframework.http.HttpStatus", "org.springframework.http.ResponseEntity", "org.springframework.web.bind.annotation.PathVariable", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.RequestMethod", "org.syso.phonebook.domain.Contact" ]
import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.syso.phonebook.domain.Contact;
import org.springframework.http.*; import org.springframework.web.bind.annotation.*; import org.syso.phonebook.domain.*;
[ "org.springframework.http", "org.springframework.web", "org.syso.phonebook" ]
org.springframework.http; org.springframework.web; org.syso.phonebook;
2,363,241
protected final void enableAllocation(String... indices) { client().admin().indices().prepareUpdateSettings(indices).setSettings(Settings.builder().put( EnableAllocationDecider.INDEX_ROUTING_ALLOCATION_ENABLE_SETTING.getKey(), "all" )).get(); }
final void function(String... indices) { client().admin().indices().prepareUpdateSettings(indices).setSettings(Settings.builder().put( EnableAllocationDecider.INDEX_ROUTING_ALLOCATION_ENABLE_SETTING.getKey(), "all" )).get(); }
/** * Syntactic sugar for enabling allocation for <code>indices</code> */
Syntactic sugar for enabling allocation for <code>indices</code>
enableAllocation
{ "repo_name": "Stacey-Gammon/elasticsearch", "path": "test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java", "license": "apache-2.0", "size": 103107 }
[ "org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider", "org.elasticsearch.common.settings.Settings" ]
import org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider; import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.cluster.routing.allocation.decider.*; import org.elasticsearch.common.settings.*;
[ "org.elasticsearch.cluster", "org.elasticsearch.common" ]
org.elasticsearch.cluster; org.elasticsearch.common;
1,406,965
public void finishLoadingAsset (String fileName) { log.debug("Waiting for asset to be loaded: " + fileName); while (!isLoaded(fileName)) { update(); ThreadUtils.yield(); } log.debug("Asset loaded: " + fileName); }
void function (String fileName) { log.debug(STR + fileName); while (!isLoaded(fileName)) { update(); ThreadUtils.yield(); } log.debug(STR + fileName); }
/** Blocks until the specified asset is loaded. * @param fileName the file name (interpretation depends on {@link AssetLoader}) */
Blocks until the specified asset is loaded
finishLoadingAsset
{ "repo_name": "bsmr-java/libgdx", "path": "gdx/src/com/badlogic/gdx/assets/AssetManager.java", "license": "apache-2.0", "size": 28384 }
[ "com.badlogic.gdx.utils.async.ThreadUtils" ]
import com.badlogic.gdx.utils.async.ThreadUtils;
import com.badlogic.gdx.utils.async.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
2,595,206
public SVCList getPvSvcList() throws PAModelException { SVCList[] l = _svcpart.get(); if (l == null) { l = partitionSVCs(); _svcpart = new WeakReference<>(l); } return l[0]; }
SVCList function() throws PAModelException { SVCList[] l = _svcpart.get(); if (l == null) { l = partitionSVCs(); _svcpart = new WeakReference<>(l); } return l[0]; }
/** * Get the set of SVC's with no slope defined. * @return SVC's with no slope (droop) * @throws PAModelException */
Get the set of SVC's with no slope defined
getPvSvcList
{ "repo_name": "powerdata/com.powerdata.openpa", "path": "pwrflow/ACPowerCalc.java", "license": "bsd-3-clause", "size": 11039 }
[ "com.powerdata.openpa.PAModelException", "com.powerdata.openpa.SVCList", "java.lang.ref.WeakReference" ]
import com.powerdata.openpa.PAModelException; import com.powerdata.openpa.SVCList; import java.lang.ref.WeakReference;
import com.powerdata.openpa.*; import java.lang.ref.*;
[ "com.powerdata.openpa", "java.lang" ]
com.powerdata.openpa; java.lang;
537,992
public void linkReset(int primaryAddress) throws IOException, TimeoutException { sendShortMessage(primaryAddress, 0x40); MBusMessage mBusMessage = receiveMessage(); if (mBusMessage.getMessageType() != MessageType.SINGLE_CHARACTER) { throw new IOException("unable to reset link"); } frameCountBits[primaryAddress] = true; }
void function(int primaryAddress) throws IOException, TimeoutException { sendShortMessage(primaryAddress, 0x40); MBusMessage mBusMessage = receiveMessage(); if (mBusMessage.getMessageType() != MessageType.SINGLE_CHARACTER) { throw new IOException(STR); } frameCountBits[primaryAddress] = true; }
/** * Sends a SND_NKE message to reset the FCB (frame counter bit). * * @param primaryAddress * the primary address of the meter to reset. * @throws IOException * if an error occurs during the reset process. * @throws TimeoutException * if the slave does not answer with an 0xe5 message within the configured timeout span. */
Sends a SND_NKE message to reset the FCB (frame counter bit)
linkReset
{ "repo_name": "pokerazor/jmbus", "path": "src/main/java/org/openmuc/jmbus/MBusSap.java", "license": "gpl-3.0", "size": 14941 }
[ "java.io.IOException", "java.util.concurrent.TimeoutException", "org.openmuc.jmbus.MBusMessage" ]
import java.io.IOException; import java.util.concurrent.TimeoutException; import org.openmuc.jmbus.MBusMessage;
import java.io.*; import java.util.concurrent.*; import org.openmuc.jmbus.*;
[ "java.io", "java.util", "org.openmuc.jmbus" ]
java.io; java.util; org.openmuc.jmbus;
261,793
Collection<ISzeibernaetickCapability> getSzeibernaeticks();
Collection<ISzeibernaetickCapability> getSzeibernaeticks();
/** * Returns an Array containing all installed * {@code ISzeibernaetickCapabilities}. * * @return A Collection of all installed {@code ISzeibernaeticks}. */
Returns an Array containing all installed ISzeibernaetickCapabilities
getSzeibernaeticks
{ "repo_name": "Yurifag/szeibernaeticks", "path": "src/main/de/grzb/szeibernaeticks/szeibernaeticks/capability/armoury/IArmouryCapability.java", "license": "gpl-3.0", "size": 2501 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,548,936
public List<K> completed() { synchronized (lock) { return forksCopy; } }
List<K> function() { synchronized (lock) { return forksCopy; } }
/** * Returns a list of evaluated futures. The last completed future is the same as retrieved with {@link #last()}. * * @return A list of evaluated futures. */
Returns a list of evaluated futures. The last completed future is the same as retrieved with <code>#last()</code>
completed
{ "repo_name": "thirdy/TomP2P", "path": "core/src/main/java/net/tomp2p/futures/FutureForkJoin.java", "license": "apache-2.0", "size": 8896 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,082,533
public static void crashVoltDB(String reason, String traces[], String filename, int lineno) { VoltLogger hostLog = new VoltLogger("HOST"); String fn = (filename == null) ? "unknown" : filename; String re = (reason == null) ? "Fatal EE error." : reason; hostLog.fatal(re + " In " + fn + ":" + lineno); if (traces != null) { for ( String trace : traces) { hostLog.fatal(trace); } } VoltDB.crashLocalVoltDB(re + " In " + fn + ":" + lineno, true, null); }
static void function(String reason, String traces[], String filename, int lineno) { VoltLogger hostLog = new VoltLogger("HOST"); String fn = (filename == null) ? STR : filename; String re = (reason == null) ? STR : reason; hostLog.fatal(re + STR + fn + ":" + lineno); if (traces != null) { for ( String trace : traces) { hostLog.fatal(trace); } } VoltDB.crashLocalVoltDB(re + STR + fn + ":" + lineno, true, null); }
/** * Call VoltDB.crashVoltDB on behalf of the EE * @param reason Reason the EE crashed */
Call VoltDB.crashVoltDB on behalf of the EE
crashVoltDB
{ "repo_name": "paulmartel/voltdb", "path": "src/frontend/org/voltdb/jni/ExecutionEngine.java", "license": "agpl-3.0", "size": 44624 }
[ "org.voltcore.logging.VoltLogger", "org.voltdb.VoltDB" ]
import org.voltcore.logging.VoltLogger; import org.voltdb.VoltDB;
import org.voltcore.logging.*; import org.voltdb.*;
[ "org.voltcore.logging", "org.voltdb" ]
org.voltcore.logging; org.voltdb;
2,088,187
@Test public void testPullAggregateThroughUnionAndAddProjects() { HepProgram program = new HepProgramBuilder() .addRuleInstance(AggregateProjectMergeRule.INSTANCE) .addRuleInstance(AggregateUnionAggregateRule.INSTANCE) .build(); final String sql = "select job, deptno from" + " (select job, deptno from emp as e1" + " group by job, deptno" + " union all" + " select job, deptno from emp as e2" + " group by job, deptno)" + " group by job, deptno"; sql(sql).with(program).check(); }
@Test void function() { HepProgram program = new HepProgramBuilder() .addRuleInstance(AggregateProjectMergeRule.INSTANCE) .addRuleInstance(AggregateUnionAggregateRule.INSTANCE) .build(); final String sql = STR + STR + STR + STR + STR + STR + STR; sql(sql).with(program).check(); }
/** * Once the bottom aggregate pulled through union, we need to add a Project * if the new input contains a different type from the union. */
Once the bottom aggregate pulled through union, we need to add a Project if the new input contains a different type from the union
testPullAggregateThroughUnionAndAddProjects
{ "repo_name": "xhoong/incubator-calcite", "path": "core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java", "license": "apache-2.0", "size": 255036 }
[ "org.apache.calcite.plan.hep.HepProgram", "org.apache.calcite.plan.hep.HepProgramBuilder", "org.apache.calcite.rel.rules.AggregateProjectMergeRule", "org.apache.calcite.rel.rules.AggregateUnionAggregateRule", "org.junit.Test" ]
import org.apache.calcite.plan.hep.HepProgram; import org.apache.calcite.plan.hep.HepProgramBuilder; import org.apache.calcite.rel.rules.AggregateProjectMergeRule; import org.apache.calcite.rel.rules.AggregateUnionAggregateRule; import org.junit.Test;
import org.apache.calcite.plan.hep.*; import org.apache.calcite.rel.rules.*; import org.junit.*;
[ "org.apache.calcite", "org.junit" ]
org.apache.calcite; org.junit;
2,617,422
@Override public DatabaseMap getDatabaseMap() { return this.dbMap; }
DatabaseMap function() { return this.dbMap; }
/** * Gets the databasemap this map builder built. * * @return the databasemap */
Gets the databasemap this map builder built
getDatabaseMap
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/map/TPstateMapBuilder.java", "license": "gpl-3.0", "size": 5380 }
[ "org.apache.torque.map.DatabaseMap" ]
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.*;
[ "org.apache.torque" ]
org.apache.torque;
2,629,201
public ActionForward deleteAttachmentPersonnel(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return confirmDeleteAttachment(mapping, (ProtocolForm) form, request, response, ProtocolAttachmentPersonnel.class); }
ActionForward function(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return confirmDeleteAttachment(mapping, (ProtocolForm) form, request, response, ProtocolAttachmentPersonnel.class); }
/** * Method called when deleting an attachment personnel. * * @param mapping the action mapping * @param form the form. * @param request the request. * @param response the response. * @return an action forward. * @throws Exception if there is a problem executing the request. */
Method called when deleting an attachment personnel
deleteAttachmentPersonnel
{ "repo_name": "kuali/kc", "path": "coeus-impl/src/main/java/org/kuali/kra/irb/noteattachment/ProtocolNoteAndAttachmentAction.java", "license": "agpl-3.0", "size": 22345 }
[ "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.apache.struts.action.ActionForm", "org.apache.struts.action.ActionForward", "org.apache.struts.action.ActionMapping", "org.kuali.kra.irb.ProtocolForm" ]
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.kuali.kra.irb.ProtocolForm;
import javax.servlet.http.*; import org.apache.struts.action.*; import org.kuali.kra.irb.*;
[ "javax.servlet", "org.apache.struts", "org.kuali.kra" ]
javax.servlet; org.apache.struts; org.kuali.kra;
2,018,507
public final UriComponents expand(UriTemplateVariables uriVariables) { Assert.notNull(uriVariables, "'uriVariables' must not be null"); return expandInternal(uriVariables); }
final UriComponents function(UriTemplateVariables uriVariables) { Assert.notNull(uriVariables, STR); return expandInternal(uriVariables); }
/** * Replace all URI template variables with the values from the given * {@link UriTemplateVariables}. * @param uriVariables the URI template values * @return the expanded URI components */
Replace all URI template variables with the values from the given <code>UriTemplateVariables</code>
expand
{ "repo_name": "spring-projects/spring-framework", "path": "spring-web/src/main/java/org/springframework/web/util/UriComponents.java", "license": "apache-2.0", "size": 11055 }
[ "org.springframework.util.Assert" ]
import org.springframework.util.Assert;
import org.springframework.util.*;
[ "org.springframework.util" ]
org.springframework.util;
1,486,519
private void showDialog(Dialog dialog){ if(activityContext == null) return ; try { dialog.show() ; } catch (Exception e) {} }
void function(Dialog dialog){ if(activityContext == null) return ; try { dialog.show() ; } catch (Exception e) {} }
/** * this method will be used to veryfy if we can show the dialog with the current context * and to prevent app crashing if any thing goes wrong while showing the Dialog * @param dialog */
this method will be used to veryfy if we can show the dialog with the current context and to prevent app crashing if any thing goes wrong while showing the Dialog
showDialog
{ "repo_name": "molhamstein/projectR", "path": "src/com/brainSocket/socialrosary/data/PromptManager.java", "license": "gpl-3.0", "size": 2875 }
[ "android.app.Dialog" ]
import android.app.Dialog;
import android.app.*;
[ "android.app" ]
android.app;
2,643,459
ParsingContext createParsingContext(Cells cells, ListeningExecutorService executor);
ParsingContext createParsingContext(Cells cells, ListeningExecutorService executor);
/** * Creates a basic {@link ParsingContext} with some options populated from command's arguments. */
Creates a basic <code>ParsingContext</code> with some options populated from command's arguments
createParsingContext
{ "repo_name": "JoelMarcey/buck", "path": "src/com/facebook/buck/cli/Command.java", "license": "apache-2.0", "size": 3452 }
[ "com.facebook.buck.core.cell.Cells", "com.facebook.buck.parser.ParsingContext", "com.google.common.util.concurrent.ListeningExecutorService" ]
import com.facebook.buck.core.cell.Cells; import com.facebook.buck.parser.ParsingContext; import com.google.common.util.concurrent.ListeningExecutorService;
import com.facebook.buck.core.cell.*; import com.facebook.buck.parser.*; import com.google.common.util.concurrent.*;
[ "com.facebook.buck", "com.google.common" ]
com.facebook.buck; com.google.common;
2,287,360
@Nonnull public WindowsInformationProtectionAppLockerFileCollectionRequest expand(@Nonnull final String value) { addExpandOption(value); return this; }
WindowsInformationProtectionAppLockerFileCollectionRequest function(@Nonnull final String value) { addExpandOption(value); return this; }
/** * Sets the expand clause for the request * * @param value the expand clause * @return the updated request */
Sets the expand clause for the request
expand
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/WindowsInformationProtectionAppLockerFileCollectionRequest.java", "license": "mit", "size": 6906 }
[ "com.microsoft.graph.requests.WindowsInformationProtectionAppLockerFileCollectionRequest", "javax.annotation.Nonnull" ]
import com.microsoft.graph.requests.WindowsInformationProtectionAppLockerFileCollectionRequest; import javax.annotation.Nonnull;
import com.microsoft.graph.requests.*; import javax.annotation.*;
[ "com.microsoft.graph", "javax.annotation" ]
com.microsoft.graph; javax.annotation;
1,766,829
public void sendMessage(Object obj) { if (!this.allowedToSendMessage) { return; } if (comms != null) { try { comms.sendMessage(obj); } catch (IOException e) { log.warning(e.toString()); } } }
void function(Object obj) { if (!this.allowedToSendMessage) { return; } if (comms != null) { try { comms.sendMessage(obj); } catch (IOException e) { log.warning(e.toString()); } } }
/** * Send message. * * @param obj * the obj */
Send message
sendMessage
{ "repo_name": "synergynet/synergynet2.5", "path": "synergynet2.5/src/main/java/synergynetframework/appsystem/services/net/networkedcontentmanager/NetworkedContentManager.java", "license": "bsd-3-clause", "size": 25768 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,793,813
@Test public void verifyMinistryAnnualSummaryTest() { final Map<Integer, List<GovernmentBodyAnnualSummary>> map = esvApi .getDataPerMinistry("Landsbygdsdepartementet"); assertNotNull(map); for (final Entry<Integer, List<GovernmentBodyAnnualSummary>> entry : map.entrySet()) { final List<GovernmentBodyAnnualSummary> item = entry.getValue(); final Integer totalHeadcount = item.stream().collect(Collectors.summingInt(GovernmentBodyAnnualSummary::getHeadCount)); if (entry.getKey() != null && item != null) { assertNotNull(totalHeadcount); } } }
void function() { final Map<Integer, List<GovernmentBodyAnnualSummary>> map = esvApi .getDataPerMinistry(STR); assertNotNull(map); for (final Entry<Integer, List<GovernmentBodyAnnualSummary>> entry : map.entrySet()) { final List<GovernmentBodyAnnualSummary> item = entry.getValue(); final Integer totalHeadcount = item.stream().collect(Collectors.summingInt(GovernmentBodyAnnualSummary::getHeadCount)); if (entry.getKey() != null && item != null) { assertNotNull(totalHeadcount); } } }
/** * Verify ministry annual summary test. */
Verify ministry annual summary test
verifyMinistryAnnualSummaryTest
{ "repo_name": "Hack23/cia", "path": "service.external.esv/src/test/java/com/hack23/cia/service/external/esv/impl/EsvApiITest.java", "license": "apache-2.0", "size": 13308 }
[ "com.hack23.cia.service.external.esv.api.GovernmentBodyAnnualSummary", "java.util.List", "java.util.Map", "java.util.stream.Collectors" ]
import com.hack23.cia.service.external.esv.api.GovernmentBodyAnnualSummary; import java.util.List; import java.util.Map; import java.util.stream.Collectors;
import com.hack23.cia.service.external.esv.api.*; import java.util.*; import java.util.stream.*;
[ "com.hack23.cia", "java.util" ]
com.hack23.cia; java.util;
866,541
public static List<String> getdbField(List<Head> head){ List<String> fields = new ArrayList<String>(); for( Head cell : head ){ if( !StringUtils.isBlank( cell.getText()) ){ fields.add(cell.getText()); } } return fields; }
static List<String> function(List<Head> head){ List<String> fields = new ArrayList<String>(); for( Head cell : head ){ if( !StringUtils.isBlank( cell.getText()) ){ fields.add(cell.getText()); } } return fields; }
/** * Getdb field list. * * @param head head * @return list * @author jerry * @date 2017 -06-16 18:51:29 */
Getdb field list
getdbField
{ "repo_name": "JerryDai90/common", "path": "common-excel/src/main/java/com/wordty/common/excel/usermodel/AnalysisUtil.java", "license": "apache-2.0", "size": 7239 }
[ "com.wordty.common.excel.usermodel.row.Head", "java.util.ArrayList", "java.util.List", "org.apache.commons.lang.StringUtils" ]
import com.wordty.common.excel.usermodel.row.Head; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang.StringUtils;
import com.wordty.common.excel.usermodel.row.*; import java.util.*; import org.apache.commons.lang.*;
[ "com.wordty.common", "java.util", "org.apache.commons" ]
com.wordty.common; java.util; org.apache.commons;
358,151
public WorldTile getBase() { return base; }
WorldTile function() { return base; }
/** * Gets the base world tile. * @return The base. */
Gets the base world tile
getBase
{ "repo_name": "calvinlotsberg/OurScape", "path": "src/com/rs/game/player/controlers/QueenBlackDragonController.java", "license": "apache-2.0", "size": 12246 }
[ "com.rs.game.WorldTile" ]
import com.rs.game.WorldTile;
import com.rs.game.*;
[ "com.rs.game" ]
com.rs.game;
2,613,542
@Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object.
collectNewChildDescriptors
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/AbstractGeneralParameterValueTypeItemProvider.java", "license": "apache-2.0", "size": 3141 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,397,908
PrintWriter writer();
PrintWriter writer();
/** * Returns the writer ({@code stdout}) bound to this console object. * * @return the console writer */
Returns the writer (stdout) bound to this console object
writer
{ "repo_name": "anba/es6draft", "path": "src/main/java/com/github/anba/es6draft/runtime/internal/Console.java", "license": "mit", "size": 1581 }
[ "java.io.PrintWriter" ]
import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
390,213
void setUnnestField(RepeatedValueVector repeatedColumn);
void setUnnestField(RepeatedValueVector repeatedColumn);
/** * Set the field to be unnested * @param repeatedColumn */
Set the field to be unnested
setUnnestField
{ "repo_name": "cchang738/drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/unnest/Unnest.java", "license": "apache-2.0", "size": 2410 }
[ "org.apache.drill.exec.vector.complex.RepeatedValueVector" ]
import org.apache.drill.exec.vector.complex.RepeatedValueVector;
import org.apache.drill.exec.vector.complex.*;
[ "org.apache.drill" ]
org.apache.drill;
2,799,665
public OvhTask serviceName_changeOs_POST(String serviceName, OvhDirectAdminOsEnum os) throws IOException { String qPath = "/license/directadmin/{serviceName}/changeOs"; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(); addBody(o, "os", os); String resp = exec(qPath, "POST", sb.toString(), o); return convertTo(resp, OvhTask.class); }
OvhTask function(String serviceName, OvhDirectAdminOsEnum os) throws IOException { String qPath = STR; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(); addBody(o, "os", os); String resp = exec(qPath, "POST", sb.toString(), o); return convertTo(resp, OvhTask.class); }
/** * Change the Operating System for a license * * REST: POST /license/directadmin/{serviceName}/changeOs * @param os [required] The operating system you want for this license * @param serviceName [required] The name of your DirectAdmin license */
Change the Operating System for a license
serviceName_changeOs_POST
{ "repo_name": "UrielCh/ovh-java-sdk", "path": "ovh-java-sdk-licensedirectadmin/src/main/java/net/minidev/ovh/api/ApiOvhLicensedirectadmin.java", "license": "bsd-3-clause", "size": 9430 }
[ "java.io.IOException", "java.util.HashMap", "net.minidev.ovh.api.license.OvhDirectAdminOsEnum", "net.minidev.ovh.api.license.OvhTask" ]
import java.io.IOException; import java.util.HashMap; import net.minidev.ovh.api.license.OvhDirectAdminOsEnum; import net.minidev.ovh.api.license.OvhTask;
import java.io.*; import java.util.*; import net.minidev.ovh.api.license.*;
[ "java.io", "java.util", "net.minidev.ovh" ]
java.io; java.util; net.minidev.ovh;
1,231,780
private void fireExperimenterPhotoLoading() { if (refObject instanceof ExperimenterData) { ExperimenterData exp = (ExperimenterData) refObject; if (usersPhoto == null || !usersPhoto.containsKey(exp.getId())) { UserPhotoLoader loader = new UserPhotoLoader(component, parent.getSecurityContext(), exp); loader.load(); } } }
void function() { if (refObject instanceof ExperimenterData) { ExperimenterData exp = (ExperimenterData) refObject; if (usersPhoto == null !usersPhoto.containsKey(exp.getId())) { UserPhotoLoader loader = new UserPhotoLoader(component, parent.getSecurityContext(), exp); loader.load(); } } }
/** * Starts an asynchronous call to load the photo of the currently * selected user. */
Starts an asynchronous call to load the photo of the currently selected user
fireExperimenterPhotoLoading
{ "repo_name": "dpwrussell/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/editor/EditorModel.java", "license": "gpl-2.0", "size": 130987 }
[ "org.openmicroscopy.shoola.agents.metadata.UserPhotoLoader" ]
import org.openmicroscopy.shoola.agents.metadata.UserPhotoLoader;
import org.openmicroscopy.shoola.agents.metadata.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
2,735,683
int insertSelective(RolePermission record);
int insertSelective(RolePermission record);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table s_role_permission * * @mbggenerated Mon Sep 21 13:52:02 ICT 2015 */
This method was generated by MyBatis Generator. This method corresponds to the database table s_role_permission
insertSelective
{ "repo_name": "maduhu/mycollab", "path": "mycollab-services/src/main/java/com/esofthead/mycollab/module/user/dao/RolePermissionMapper.java", "license": "agpl-3.0", "size": 5729 }
[ "com.esofthead.mycollab.module.user.domain.RolePermission" ]
import com.esofthead.mycollab.module.user.domain.RolePermission;
import com.esofthead.mycollab.module.user.domain.*;
[ "com.esofthead.mycollab" ]
com.esofthead.mycollab;
1,547,229
private static void setAnalyticsEnabled(boolean enableAnalytics) { GoogleAnalytics instance = GoogleAnalytics.getInstance(sAppContext); if (instance != null) { instance.setAppOptOut(!enableAnalytics); LOGD(TAG, "Analytics enabled: " + enableAnalytics); } }
static void function(boolean enableAnalytics) { GoogleAnalytics instance = GoogleAnalytics.getInstance(sAppContext); if (instance != null) { instance.setAppOptOut(!enableAnalytics); LOGD(TAG, STR + enableAnalytics); } }
/** * Enables or disables Analytics. * @param enableAnalytics Whether analytics should be enabled. */
Enables or disables Analytics
setAnalyticsEnabled
{ "repo_name": "lokling/AndroiditoJZ", "path": "android/src/main/java/com/google/samples/apps/iosched/util/AnalyticsHelper.java", "license": "apache-2.0", "size": 14367 }
[ "com.google.android.gms.analytics.GoogleAnalytics" ]
import com.google.android.gms.analytics.GoogleAnalytics;
import com.google.android.gms.analytics.*;
[ "com.google.android" ]
com.google.android;
1,890,712
@Override public void visitErrorNode(@NotNull ErrorNode node) { }
@Override public void visitErrorNode(@NotNull ErrorNode node) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
visitTerminal
{ "repo_name": "syslover33/ctank", "path": "java/android-sdk-linux_r24.4.1_src/sources/android-23/android/databinding/parser/BindingExpressionBaseListener.java", "license": "gpl-3.0", "size": 14237 }
[ "org.antlr.v4.runtime.misc.NotNull", "org.antlr.v4.runtime.tree.ErrorNode" ]
import org.antlr.v4.runtime.misc.NotNull; import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.misc.*; import org.antlr.v4.runtime.tree.*;
[ "org.antlr.v4" ]
org.antlr.v4;
486,137
public Dimension getPreferredSize() { return size_; }
Dimension function() { return size_; }
/** * Returns the size of the images used. */
Returns the size of the images used
getPreferredSize
{ "repo_name": "openlecturnity/os45", "path": "imc/epresenter/filesdk/util/CustomButton.java", "license": "lgpl-3.0", "size": 6728 }
[ "java.awt.Dimension" ]
import java.awt.Dimension;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,894,544
default Matcher<File> fileContains(String atLeastThisName) { return fileContains(org.hamcrest.Matchers .hasItemInArray(atLeastThisName)); }
default Matcher<File> fileContains(String atLeastThisName) { return fileContains(org.hamcrest.Matchers .hasItemInArray(atLeastThisName)); }
/** * Validate that a file contains some other file name. * * @param atLeastThisName * the file name. * @return the matcher on the file. */
Validate that a file contains some other file name
fileContains
{ "repo_name": "powerunit/powerunit", "path": "powerunit/src/main/java/ch/powerunit/FileMatchers.java", "license": "gpl-3.0", "size": 8565 }
[ "java.io.File", "org.hamcrest.Matcher" ]
import java.io.File; import org.hamcrest.Matcher;
import java.io.*; import org.hamcrest.*;
[ "java.io", "org.hamcrest" ]
java.io; org.hamcrest;
1,875,839
EOperation getModeledTask__GetAllMeasument();
EOperation getModeledTask__GetAllMeasument();
/** * Returns the meta object for the '{@link br.ufpe.ines.decode.decode.taskDescription.ModeledTask#getAllMeasument() <em>Get All Measument</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the '<em>Get All Measument</em>' operation. * @see br.ufpe.ines.decode.decode.taskDescription.ModeledTask#getAllMeasument() * @generated */
Returns the meta object for the '<code>br.ufpe.ines.decode.decode.taskDescription.ModeledTask#getAllMeasument() Get All Measument</code>' operation.
getModeledTask__GetAllMeasument
{ "repo_name": "netuh/DecodePlatformPlugin", "path": "br.ufpe.ines.decode/bundles/br.ufpe.ines.decode.model/src/br/ufpe/ines/decode/decode/taskDescription/TaskDescriptionPackage.java", "license": "gpl-3.0", "size": 58869 }
[ "org.eclipse.emf.ecore.EOperation" ]
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,423,412
public WanPublisherConfig setAwsConfig(final AwsConfig awsConfig) { this.awsConfig = isNotNull(awsConfig, "awsConfig"); return this; }
WanPublisherConfig function(final AwsConfig awsConfig) { this.awsConfig = isNotNull(awsConfig, STR); return this; }
/** * Sets the {@link AwsConfig} used by the discovery mechanism for this * WAN publisher. * * @param awsConfig the AWS discovery configuration * @return this config * @throws IllegalArgumentException if awsConfig is null */
Sets the <code>AwsConfig</code> used by the discovery mechanism for this WAN publisher
setAwsConfig
{ "repo_name": "tkountis/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/config/WanPublisherConfig.java", "license": "apache-2.0", "size": 13243 }
[ "com.hazelcast.util.Preconditions" ]
import com.hazelcast.util.Preconditions;
import com.hazelcast.util.*;
[ "com.hazelcast.util" ]
com.hazelcast.util;
2,243,014
public static BasicNode copySubtree(BasicNode rootNode, List<BasicNode> nodeList, List<BasicLink> linkList, List<BasicNode> newNodeList, List<BasicLink> newLinkList) { HashMap<BasicNode, BasicNode> matchMap = new HashMap<BasicNode, BasicNode>(); BasicNode ret = null; // copy nodes. for (BasicNode node : nodeList) { BasicNode newNode = EcoreUtil.copy(node); newNodeList.add(newNode); matchMap.put(node, newNode); if (node == rootNode) { ret = newNode; } } // copy links. for (BasicLink link : linkList) { BasicLink newLink = EcoreUtil.copy(link); BasicNode srcNode = matchMap.get(link.getSource()); BasicNode tgtNode = matchMap.get(link.getTarget()); newLink.setSource(srcNode); newLink.setTarget(tgtNode); newLinkList.add(newLink); } return ret; }
static BasicNode function(BasicNode rootNode, List<BasicNode> nodeList, List<BasicLink> linkList, List<BasicNode> newNodeList, List<BasicLink> newLinkList) { HashMap<BasicNode, BasicNode> matchMap = new HashMap<BasicNode, BasicNode>(); BasicNode ret = null; for (BasicNode node : nodeList) { BasicNode newNode = EcoreUtil.copy(node); newNodeList.add(newNode); matchMap.put(node, newNode); if (node == rootNode) { ret = newNode; } } for (BasicLink link : linkList) { BasicLink newLink = EcoreUtil.copy(link); BasicNode srcNode = matchMap.get(link.getSource()); BasicNode tgtNode = matchMap.get(link.getTarget()); newLink.setSource(srcNode); newLink.setTarget(tgtNode); newLinkList.add(newLink); } return ret; }
/** * Copy subtree. * @param rootNode the original root node. * @param nodeList the original node list. * @param linkList the original link list. * @param newNodeList the copied node list. * @param newLinkList the copied link list. * @return the new root node. */
Copy subtree
copySubtree
{ "repo_name": "kuriking/testdc2", "path": "net.dependableos.dcase.diagram/src/net/dependableos/dcase/diagram/part/PatternUtil.java", "license": "epl-1.0", "size": 34627 }
[ "java.util.HashMap", "java.util.List", "net.dependableos.dcase.BasicLink", "net.dependableos.dcase.BasicNode", "org.eclipse.emf.ecore.util.EcoreUtil" ]
import java.util.HashMap; import java.util.List; import net.dependableos.dcase.BasicLink; import net.dependableos.dcase.BasicNode; import org.eclipse.emf.ecore.util.EcoreUtil;
import java.util.*; import net.dependableos.dcase.*; import org.eclipse.emf.ecore.util.*;
[ "java.util", "net.dependableos.dcase", "org.eclipse.emf" ]
java.util; net.dependableos.dcase; org.eclipse.emf;
1,141,054
@Override public void updateSyntax(final TTCN3ReparseUpdater reparser, final boolean isDamaged) throws ReParseException { if (isDamaged) { throw new ReParseException(); } if (index != null) { index.updateSyntax(reparser, false); reparser.updateLocation(index.getLocation()); } if (value != null) { ((Value)value).updateSyntax(reparser, false); reparser.updateLocation(value.getLocation()); } }
void function(final TTCN3ReparseUpdater reparser, final boolean isDamaged) throws ReParseException { if (isDamaged) { throw new ReParseException(); } if (index != null) { index.updateSyntax(reparser, false); reparser.updateLocation(index.getLocation()); } if (value != null) { ((Value)value).updateSyntax(reparser, false); reparser.updateLocation(value.getLocation()); } }
/** * Handles the incremental parsing of this indexed value. * * @param reparser the parser doing the incremental parsing. * @param isDamaged true if the location contains the damaged area, false if only its' location needs to be updated. * */
Handles the incremental parsing of this indexed value
updateSyntax
{ "repo_name": "eroslevi/titan.EclipsePlug-ins", "path": "org.eclipse.titan.designer/src/org/eclipse/titan/designer/AST/TTCN3/values/IndexedValue.java", "license": "epl-1.0", "size": 4192 }
[ "org.eclipse.titan.designer.AST", "org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException", "org.eclipse.titan.designer.parsers.ttcn3parser.TTCN3ReparseUpdater" ]
import org.eclipse.titan.designer.AST; import org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException; import org.eclipse.titan.designer.parsers.ttcn3parser.TTCN3ReparseUpdater;
import org.eclipse.titan.designer.*; import org.eclipse.titan.designer.parsers.ttcn3parser.*;
[ "org.eclipse.titan" ]
org.eclipse.titan;
2,508,301
private void writeTagPayload(Tag tag) throws IOException { int type = NBTUtils.getTypeCode(tag.getClass()); switch (type) { case NBTConstants.TYPE_END: writeEndTagPayload((EndTag) tag); break; case NBTConstants.TYPE_BYTE: writeByteTagPayload((ByteTag) tag); break; case NBTConstants.TYPE_SHORT: writeShortTagPayload((ShortTag) tag); break; case NBTConstants.TYPE_INT: writeIntTagPayload((IntTag) tag); break; case NBTConstants.TYPE_LONG: writeLongTagPayload((LongTag) tag); break; case NBTConstants.TYPE_FLOAT: writeFloatTagPayload((FloatTag) tag); break; case NBTConstants.TYPE_DOUBLE: writeDoubleTagPayload((DoubleTag) tag); break; case NBTConstants.TYPE_BYTE_ARRAY: writeByteArrayTagPayload((ByteArrayTag) tag); break; case NBTConstants.TYPE_STRING: writeStringTagPayload((StringTag) tag); break; case NBTConstants.TYPE_LIST: writeListTagPayload((ListTag) tag); break; case NBTConstants.TYPE_COMPOUND: writeCompoundTagPayload((CompoundTag) tag); break; case NBTConstants.TYPE_INT_ARRAY: writeIntArrayTagPayload((IntArrayTag) tag); break; default: throw new IOException("Invalid tag type: " + type + "."); } }
void function(Tag tag) throws IOException { int type = NBTUtils.getTypeCode(tag.getClass()); switch (type) { case NBTConstants.TYPE_END: writeEndTagPayload((EndTag) tag); break; case NBTConstants.TYPE_BYTE: writeByteTagPayload((ByteTag) tag); break; case NBTConstants.TYPE_SHORT: writeShortTagPayload((ShortTag) tag); break; case NBTConstants.TYPE_INT: writeIntTagPayload((IntTag) tag); break; case NBTConstants.TYPE_LONG: writeLongTagPayload((LongTag) tag); break; case NBTConstants.TYPE_FLOAT: writeFloatTagPayload((FloatTag) tag); break; case NBTConstants.TYPE_DOUBLE: writeDoubleTagPayload((DoubleTag) tag); break; case NBTConstants.TYPE_BYTE_ARRAY: writeByteArrayTagPayload((ByteArrayTag) tag); break; case NBTConstants.TYPE_STRING: writeStringTagPayload((StringTag) tag); break; case NBTConstants.TYPE_LIST: writeListTagPayload((ListTag) tag); break; case NBTConstants.TYPE_COMPOUND: writeCompoundTagPayload((CompoundTag) tag); break; case NBTConstants.TYPE_INT_ARRAY: writeIntArrayTagPayload((IntArrayTag) tag); break; default: throw new IOException(STR + type + "."); } }
/** * Writes tag payload. * * @param tag * The tag. * @throws IOException * if an I/O error occurs. */
Writes tag payload
writeTagPayload
{ "repo_name": "UnlimitedFreedom/UF-WorldEdit", "path": "worldedit-core/src/main/java/com/sk89q/jnbt/NBTOutputStream.java", "license": "gpl-3.0", "size": 8662 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
851,339
public Container save(Container container, List<ContainerStructure> containerStructureList, Host host, User user, boolean respectFrontendRoles) throws DotDataException, DotSecurityException;
Container function(Container container, List<ContainerStructure> containerStructureList, Host host, User user, boolean respectFrontendRoles) throws DotDataException, DotSecurityException;
/** * Save container * * @param container * @param structure * @param host * @param user * @param respectFrontendRoles * @return Container * @throws DotDataException * @throws DotSecurityException */
Save container
save
{ "repo_name": "zhiqinghuang/core", "path": "src/com/dotmarketing/portlets/containers/business/ContainerAPI.java", "license": "gpl-3.0", "size": 6356 }
[ "com.dotmarketing.beans.ContainerStructure", "com.dotmarketing.beans.Host", "com.dotmarketing.exception.DotDataException", "com.dotmarketing.exception.DotSecurityException", "com.dotmarketing.portlets.containers.model.Container", "com.liferay.portal.model.User", "java.util.List" ]
import com.dotmarketing.beans.ContainerStructure; import com.dotmarketing.beans.Host; import com.dotmarketing.exception.DotDataException; import com.dotmarketing.exception.DotSecurityException; import com.dotmarketing.portlets.containers.model.Container; import com.liferay.portal.model.User; import java.util.List;
import com.dotmarketing.beans.*; import com.dotmarketing.exception.*; import com.dotmarketing.portlets.containers.model.*; import com.liferay.portal.model.*; import java.util.*;
[ "com.dotmarketing.beans", "com.dotmarketing.exception", "com.dotmarketing.portlets", "com.liferay.portal", "java.util" ]
com.dotmarketing.beans; com.dotmarketing.exception; com.dotmarketing.portlets; com.liferay.portal; java.util;
163,018
public HTableDescriptor[] listTableDescs() throws KeeperException, IOException { return listTableDescs((Pattern) null); }
HTableDescriptor[] function() throws KeeperException, IOException { return listTableDescs((Pattern) null); }
/** * Lists the descriptors of all the cross site tables. * * @return * @throws KeeperException * @throws IOException */
Lists the descriptors of all the cross site tables
listTableDescs
{ "repo_name": "intel-hadoop/CSBT", "path": "csbt-client/src/main/java/org/apache/hadoop/hbase/crosssite/CrossSiteZNodes.java", "license": "apache-2.0", "size": 33331 }
[ "java.io.IOException", "java.util.regex.Pattern", "org.apache.hadoop.hbase.HTableDescriptor", "org.apache.zookeeper.KeeperException" ]
import java.io.IOException; import java.util.regex.Pattern; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.zookeeper.KeeperException;
import java.io.*; import java.util.regex.*; import org.apache.hadoop.hbase.*; import org.apache.zookeeper.*;
[ "java.io", "java.util", "org.apache.hadoop", "org.apache.zookeeper" ]
java.io; java.util; org.apache.hadoop; org.apache.zookeeper;
144,308
public int callInteger( String method, Object... params ) throws IOException, InterruptedException{ return call(method, Integer.class, transformParametersArrayIntoCollection(params) ); }
int function( String method, Object... params ) throws IOException, InterruptedException{ return call(method, Integer.class, transformParametersArrayIntoCollection(params) ); }
/** * Calls the remote procedure with int as the result. * @param method The remote procedure name to be invoked. * @param params The arguments to get into the remote procedure serialized as an ordered list. * @return The procedure return value as integer. */
Calls the remote procedure with int as the result
callInteger
{ "repo_name": "ececilla/WorizonJsonRpc", "path": "src/com/worizon/jsonrpc/Rpc.java", "license": "mit", "size": 18515 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,088,843
public String getPropertyName() { return CSSConstants.CSS_COLOR_PROFILE_PROPERTY; }
String function() { return CSSConstants.CSS_COLOR_PROFILE_PROPERTY; }
/** * Implements {@link ValueManager#getPropertyName()}. */
Implements <code>ValueManager#getPropertyName()</code>
getPropertyName
{ "repo_name": "adufilie/flex-sdk", "path": "modules/thirdparty/batik/sources/org/apache/flex/forks/batik/css/engine/value/svg/ColorProfileManager.java", "license": "apache-2.0", "size": 4639 }
[ "org.apache.flex.forks.batik.util.CSSConstants" ]
import org.apache.flex.forks.batik.util.CSSConstants;
import org.apache.flex.forks.batik.util.*;
[ "org.apache.flex" ]
org.apache.flex;
2,184,286
void update(VirtualFile virtualFile) throws ServerException;
void update(VirtualFile virtualFile) throws ServerException;
/** * Updated indexed VirtualFile. * * @param virtualFile * VirtualFile to add * @throws ServerException * if an error occurs */
Updated indexed VirtualFile
update
{ "repo_name": "dhuebner/che", "path": "wsagent/che-core-api-project/src/main/java/org/eclipse/che/api/vfs/search/Searcher.java", "license": "epl-1.0", "size": 2528 }
[ "org.eclipse.che.api.core.ServerException", "org.eclipse.che.api.vfs.VirtualFile" ]
import org.eclipse.che.api.core.ServerException; import org.eclipse.che.api.vfs.VirtualFile;
import org.eclipse.che.api.core.*; import org.eclipse.che.api.vfs.*;
[ "org.eclipse.che" ]
org.eclipse.che;
2,072,989
// might lead into long waiting time when accidently selecting an upper directory, e.g. drives @SuppressWarnings("unused") private boolean containsDirEmlFiles(File dir) { if (!dir.isDirectory()) { return false; } for (File fileInDir : dir.listFiles()) { if (fileInDir.getName().endsWith(FileManager.EML_FILE_EXTENSION)) { return true; } else if (containsDirEmlFiles(fileInDir)) { return true; } } return false; }
@SuppressWarnings(STR) boolean function(File dir) { if (!dir.isDirectory()) { return false; } for (File fileInDir : dir.listFiles()) { if (fileInDir.getName().endsWith(FileManager.EML_FILE_EXTENSION)) { return true; } else if (containsDirEmlFiles(fileInDir)) { return true; } } return false; }
/** * Contains dir eml files. * * @param dir the dir * @return true, if successful */
Contains dir eml files
containsDirEmlFiles
{ "repo_name": "kluckow/netspy", "path": "src/netspy/components/gui/components/listeners/NetSpyActionListener.java", "license": "mit", "size": 13997 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,782,613
@Test public void test02ReadDir() throws LibrecException { conf.set(Configured.CONF_DATA_INPUT_PATH, "test/arfftest"); ArffDataModel dataModel = new ArffDataModel(conf); dataModel.buildDataModel(); assertEquals(6, dataModel.getItemMappingData().size()); assertEquals(5, dataModel.getUserMappingData().size()); }
void function() throws LibrecException { conf.set(Configured.CONF_DATA_INPUT_PATH, STR); ArffDataModel dataModel = new ArffDataModel(conf); dataModel.buildDataModel(); assertEquals(6, dataModel.getItemMappingData().size()); assertEquals(5, dataModel.getUserMappingData().size()); }
/** * Test the function of reading files from directory and its sub-directories. * * @throws LibrecException */
Test the function of reading files from directory and its sub-directories
test02ReadDir
{ "repo_name": "SunYatong/librec", "path": "core/src/test/java/net/librec/data/model/ArffDataModelTestCase.java", "license": "gpl-3.0", "size": 12469 }
[ "net.librec.common.LibrecException", "net.librec.conf.Configured", "org.junit.Assert" ]
import net.librec.common.LibrecException; import net.librec.conf.Configured; import org.junit.Assert;
import net.librec.common.*; import net.librec.conf.*; import org.junit.*;
[ "net.librec.common", "net.librec.conf", "org.junit" ]
net.librec.common; net.librec.conf; org.junit;
2,573,873
public void setMedicationStatusChange(MedicationStatusChange v) { if (MedicationEventMention_Type.featOkTst && ((MedicationEventMention_Type)jcasType).casFeat_medicationStatusChange == null) jcasType.jcas.throwFeatMissing("medicationStatusChange", "org.apache.ctakes.typesystem.type.textsem.MedicationEventMention"); jcasType.ll_cas.ll_setRefValue(addr, ((MedicationEventMention_Type)jcasType).casFeatCode_medicationStatusChange, jcasType.ll_cas.ll_getFSRef(v));} //*--------------* //* Feature: medicationDosage
void function(MedicationStatusChange v) { if (MedicationEventMention_Type.featOkTst && ((MedicationEventMention_Type)jcasType).casFeat_medicationStatusChange == null) jcasType.jcas.throwFeatMissing(STR, STR); jcasType.ll_cas.ll_setRefValue(addr, ((MedicationEventMention_Type)jcasType).casFeatCode_medicationStatusChange, jcasType.ll_cas.ll_getFSRef(v));}
/** setter for medicationStatusChange - sets * @generated * @param v value to set into the feature */
setter for medicationStatusChange - sets
setMedicationStatusChange
{ "repo_name": "harryhoch/DeepPhe", "path": "src/org/apache/ctakes/typesystem/type/textsem/MedicationEventMention.java", "license": "apache-2.0", "size": 13388 }
[ "org.apache.ctakes.typesystem.type.refsem.MedicationStatusChange" ]
import org.apache.ctakes.typesystem.type.refsem.MedicationStatusChange;
import org.apache.ctakes.typesystem.type.refsem.*;
[ "org.apache.ctakes" ]
org.apache.ctakes;
645,442
public Duration getDuplicateDetectionHistoryTimeWindow() { return this.duplicateDetectionHistoryTimeWindow; }
Duration function() { return this.duplicateDetectionHistoryTimeWindow; }
/** * Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of * the duplicate detection history. The default value is 10 minutes. * * @return the duplicateDetectionHistoryTimeWindow value. */
Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes
getDuplicateDetectionHistoryTimeWindow
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/administration/models/CreateTopicOptions.java", "license": "mit", "size": 16725 }
[ "java.time.Duration" ]
import java.time.Duration;
import java.time.*;
[ "java.time" ]
java.time;
338,188
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<WebApplicationFirewallPolicyInner> createOrUpdateAsync( String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, policyName, parameters, context) .last() .flatMap(this.client::getLroFinalResultOrError); }
@ServiceMethod(returns = ReturnType.SINGLE) Mono<WebApplicationFirewallPolicyInner> function( String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, policyName, parameters, context) .last() .flatMap(this.client::getLroFinalResultOrError); }
/** * Create or update policy with specified rule set name within a resource group. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param policyName The name of the Web Application Firewall Policy. * @param parameters Policy to be created. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return defines web application firewall policy. */
Create or update policy with specified rule set name within a resource group
createOrUpdateAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/PoliciesClientImpl.java", "license": "mit", "size": 50976 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.util.Context", "com.azure.resourcemanager.frontdoor.fluent.models.WebApplicationFirewallPolicyInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; import com.azure.resourcemanager.frontdoor.fluent.models.WebApplicationFirewallPolicyInner;
import com.azure.core.annotation.*; import com.azure.core.util.*; import com.azure.resourcemanager.frontdoor.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,700,877
private void assertFailedLogin() { final Cluster cluster = TestClientFactory.build(kdcServer.gremlinHostname).jaasEntry(TESTCONSOLE) .protocol(kdcServer.serverPrincipalName).create(); final Client client = cluster.connect(); try { client.submit("1+1").all().get(); fail("The kerberos config is a bust so this request should fail"); } catch (Exception ex) { final ResponseException re = (ResponseException) ex.getCause(); assertEquals(ResponseStatusCode.SERVER_ERROR, re.getResponseStatusCode()); assertEquals("Authenticator is not ready to handle requests", re.getMessage()); } finally { cluster.close(); } }
void function() { final Cluster cluster = TestClientFactory.build(kdcServer.gremlinHostname).jaasEntry(TESTCONSOLE) .protocol(kdcServer.serverPrincipalName).create(); final Client client = cluster.connect(); try { client.submit("1+1").all().get(); fail(STR); } catch (Exception ex) { final ResponseException re = (ResponseException) ex.getCause(); assertEquals(ResponseStatusCode.SERVER_ERROR, re.getResponseStatusCode()); assertEquals(STR, re.getMessage()); } finally { cluster.close(); } }
/** * Tries to force the logger to flush fully or at least wait until it does. */
Tries to force the logger to flush fully or at least wait until it does
assertFailedLogin
{ "repo_name": "apache/tinkerpop", "path": "gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerAuthKrb5IntegrateTest.java", "license": "apache-2.0", "size": 10507 }
[ "org.apache.tinkerpop.gremlin.driver.Client", "org.apache.tinkerpop.gremlin.driver.Cluster", "org.apache.tinkerpop.gremlin.driver.exception.ResponseException", "org.apache.tinkerpop.gremlin.driver.message.ResponseStatusCode", "org.junit.Assert" ]
import org.apache.tinkerpop.gremlin.driver.Client; import org.apache.tinkerpop.gremlin.driver.Cluster; import org.apache.tinkerpop.gremlin.driver.exception.ResponseException; import org.apache.tinkerpop.gremlin.driver.message.ResponseStatusCode; import org.junit.Assert;
import org.apache.tinkerpop.gremlin.driver.*; import org.apache.tinkerpop.gremlin.driver.exception.*; import org.apache.tinkerpop.gremlin.driver.message.*; import org.junit.*;
[ "org.apache.tinkerpop", "org.junit" ]
org.apache.tinkerpop; org.junit;
1,158,749
public static int createPreSplitLoadTestTable(Configuration conf, TableName tableName, byte[] columnFamily, Algorithm compression, DataBlockEncoding dataBlockEncoding) throws IOException { return createPreSplitLoadTestTable(conf, tableName, columnFamily, compression, dataBlockEncoding, DEFAULT_REGIONS_PER_SERVER, 1, Durability.USE_DEFAULT); }
static int function(Configuration conf, TableName tableName, byte[] columnFamily, Algorithm compression, DataBlockEncoding dataBlockEncoding) throws IOException { return createPreSplitLoadTestTable(conf, tableName, columnFamily, compression, dataBlockEncoding, DEFAULT_REGIONS_PER_SERVER, 1, Durability.USE_DEFAULT); }
/** * Creates a pre-split table for load testing. If the table already exists, * logs a warning and continues. * @return the number of regions the table was split into */
Creates a pre-split table for load testing. If the table already exists, logs a warning and continues
createPreSplitLoadTestTable
{ "repo_name": "apurtell/hbase", "path": "hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java", "license": "apache-2.0", "size": 169342 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.client.Durability", "org.apache.hadoop.hbase.io.compress.Compression", "org.apache.hadoop.hbase.io.encoding.DataBlockEncoding" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.client.Durability; import org.apache.hadoop.hbase.io.compress.Compression; import org.apache.hadoop.hbase.io.encoding.DataBlockEncoding;
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.io.compress.*; import org.apache.hadoop.hbase.io.encoding.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,074,929
public LinkedList<XmlElement> get(String name) { LinkedList<XmlElement> list = new LinkedList<XmlElement>(); for (XmlElement element : this) { if (element.getName().equals(name)) { list.add(element); } } return list; }
LinkedList<XmlElement> function(String name) { LinkedList<XmlElement> list = new LinkedList<XmlElement>(); for (XmlElement element : this) { if (element.getName().equals(name)) { list.add(element); } } return list; }
/** * Get all elements matching the given key. * * @param name the key to match. * @return a linked list of matching xml elements */
Get all elements matching the given key
get
{ "repo_name": "lightglitch/ps3mediaserver", "path": "src/main/java/net/pms/xmlwise/XmlElement.java", "license": "gpl-2.0", "size": 9501 }
[ "java.util.LinkedList" ]
import java.util.LinkedList;
import java.util.*;
[ "java.util" ]
java.util;
2,277,379
private static int blendColors(int color1, int color2, float ratio) { final float inverseRatio = 1f - ratio; float a = (Color.alpha(color1) * inverseRatio) + (Color.alpha(color2) * ratio); float r = (Color.red(color1) * inverseRatio) + (Color.red(color2) * ratio); float g = (Color.green(color1) * inverseRatio) + (Color.green(color2) * ratio); float b = (Color.blue(color1) * inverseRatio) + (Color.blue(color2) * ratio); return Color.argb((int) a, (int) r, (int) g, (int) b); }
static int function(int color1, int color2, float ratio) { final float inverseRatio = 1f - ratio; float a = (Color.alpha(color1) * inverseRatio) + (Color.alpha(color2) * ratio); float r = (Color.red(color1) * inverseRatio) + (Color.red(color2) * ratio); float g = (Color.green(color1) * inverseRatio) + (Color.green(color2) * ratio); float b = (Color.blue(color1) * inverseRatio) + (Color.blue(color2) * ratio); return Color.argb((int) a, (int) r, (int) g, (int) b); }
/** * Blend {@code color1} and {@code color2} using the given ratio. * * @param ratio of which to blend. 0.0 will return {@code color1}, 0.5 will give an even blend, * 1.0 will return {@code color2}. */
Blend color1 and color2 using the given ratio
blendColors
{ "repo_name": "bufferapp/BufferTextInputLayout", "path": "buffertextinputlayout/src/main/java/org/buffer/android/buffertextinputlayout/util/CollapsingTextHelper.java", "license": "apache-2.0", "size": 26458 }
[ "android.graphics.Color" ]
import android.graphics.Color;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
2,734,898
public static final SourceModel.Expr showStringNoCase(SourceModel.Expr x) { return SourceModel.Expr.Application.make( new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showStringNoCase), x}); }
static final SourceModel.Expr function(SourceModel.Expr x) { return SourceModel.Expr.Application.make( new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showStringNoCase), x}); }
/** * Helper binding method for function: showStringNoCase. * @param x * @return the SourceModule.expr representing an application of showStringNoCase */
Helper binding method for function: showStringNoCase
showStringNoCase
{ "repo_name": "levans/Open-Quark", "path": "src/CAL_Platform/src/org/openquark/cal/internal/module/Cal/Utilities/CAL_StringNoCase_internal.java", "license": "bsd-3-clause", "size": 21979 }
[ "org.openquark.cal.compiler.SourceModel" ]
import org.openquark.cal.compiler.SourceModel;
import org.openquark.cal.compiler.*;
[ "org.openquark.cal" ]
org.openquark.cal;
2,639,154
@Deprecated List<FieldViolation> getFieldViolations(String fieldName);
List<FieldViolation> getFieldViolations(String fieldName);
/** * Get a complete list of field violations for a specified field. This list DOES NOT contain * general violations * (use getGeneralViolations() instead). * * @return A List of FieldViolation-objects */
Get a complete list of field violations for a specified field. This list DOES NOT contain general violations (use getGeneralViolations() instead)
getFieldViolations
{ "repo_name": "fizzed/ninja", "path": "ninja-core/src/main/java/ninja/validation/Validation.java", "license": "apache-2.0", "size": 5960 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
320,949
public void addPathway(Point[] points, int pathWidth, String terrainGroup, Seed middleTerrainSeed) { generatePathway(this.map, new MapLayer(MapLayer.TERRAIN), points, pathWidth, terrainGroup, middleTerrainSeed); }
void function(Point[] points, int pathWidth, String terrainGroup, Seed middleTerrainSeed) { generatePathway(this.map, new MapLayer(MapLayer.TERRAIN), points, pathWidth, terrainGroup, middleTerrainSeed); }
/** * A helper method used to disguise some of the parameters needed by the map editor * * Makes a call to generate a pathway given the provided parameters * * @param points A list of points along the pathway * @param pathWidth The width of the center of the pathway * @param terrainGroup The name of the texture group to find path textures * @param middleTerrainSeed A seed for randomness in the textures in the center area of a path */
A helper method used to disguise some of the parameters needed by the map editor Makes a call to generate a pathway given the provided parameters
addPathway
{ "repo_name": "jordanywhite/SquaresInteractive", "path": "src/guiMap/MapEditor.java", "license": "mit", "size": 13199 }
[ "java.awt.Point" ]
import java.awt.Point;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,159,720
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { spinner33 = new javax.swing.JSpinner(); spinner11 = new javax.swing.JSpinner(); spinner31 = new javax.swing.JSpinner(); spinner12 = new javax.swing.JSpinner(); spinner32 = new javax.swing.JSpinner(); spinner13 = new javax.swing.JSpinner(); spinner21 = new javax.swing.JSpinner(); spinner22 = new javax.swing.JSpinner(); spinner23 = new javax.swing.JSpinner(); spinner14 = new javax.swing.JSpinner(); spinner24 = new javax.swing.JSpinner(); spinner34 = new javax.swing.JSpinner(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("P Matrix");
@SuppressWarnings(STR) void function() { spinner33 = new javax.swing.JSpinner(); spinner11 = new javax.swing.JSpinner(); spinner31 = new javax.swing.JSpinner(); spinner12 = new javax.swing.JSpinner(); spinner32 = new javax.swing.JSpinner(); spinner13 = new javax.swing.JSpinner(); spinner21 = new javax.swing.JSpinner(); spinner22 = new javax.swing.JSpinner(); spinner23 = new javax.swing.JSpinner(); spinner14 = new javax.swing.JSpinner(); spinner24 = new javax.swing.JSpinner(); spinner34 = new javax.swing.JSpinner(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle(STR);
/** * 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": "sdghrmz/jvircam", "path": "src/ir/srn/ipl/jvircam/PMatrix.java", "license": "gpl-2.0", "size": 14493 }
[ "javax.swing.JSpinner" ]
import javax.swing.JSpinner;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
887,914
EAttribute getActivityExtension_Y();
EAttribute getActivityExtension_Y();
/** * Returns the meta object for the attribute '{@link org.eclipse.bpel.ui.uiextensionmodel.ActivityExtension#getY <em>Y</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Y</em>'. * @see org.eclipse.bpel.ui.uiextensionmodel.ActivityExtension#getY() * @see #getActivityExtension() * @generated */
Returns the meta object for the attribute '<code>org.eclipse.bpel.ui.uiextensionmodel.ActivityExtension#getY Y</code>'.
getActivityExtension_Y
{ "repo_name": "chanakaudaya/developer-studio", "path": "bps/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/uiextensionmodel/UiextensionmodelPackage.java", "license": "apache-2.0", "size": 35939 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,826,124
if (basetype == null) { throw new IllegalArgumentException("Cannot set value for basetype [null]."); } // Return empty Basetype. if (value == null) { return; } try { switch (basetype.getType()) { case BOOLEAN: { NBoolean nBoolean = (NBoolean) basetype; nBoolean.setValue(Boolean.parseBoolean(value)); break; } case BYTE: { NByte nByte = (NByte) basetype; nByte.setValue(Byte.parseByte(value)); break; } case BYTE_ARRAY: { NByteArray nByteArray = (NByteArray) basetype; nByteArray.setValue(value.getBytes()); break; } case CHAR: { NChar nChar = (NChar) basetype; nChar.setValue(value.charAt(0)); break; } case DATE: { NDate nDate = (NDate) basetype; nDate.setValue(NabuccoConverter.getInstance().getDateConverter().convertDate(value)); break; } case DECIMAL: { NDecimal nDecimal = (NDecimal) basetype; nDecimal.setValue(new BigDecimal(value)); break; } case DOUBLE: { NDouble nDouble = (NDouble) basetype; nDouble.setValue(Double.parseDouble(value)); break; } case FLOAT: { NFloat nFloat = (NFloat) basetype; nFloat.setValue(Float.parseFloat(value)); break; } case INTEGER: { NInteger nInteger = (NInteger) basetype; nInteger.setValue(Integer.parseInt(value)); break; } case LONG: { NLong nLong = (NLong) basetype; nLong.setValue(Long.parseLong(value)); break; } case STRING: { NString nString = (NString) basetype; nString.setValue(value); break; } case TEXT: { NText nText = (NText) basetype; nText.setValue(value); break; } case TIME: { NTime nTime = (NTime) basetype; nTime.setValue(NabuccoConverter.getInstance().getDateConverter().convertTime(value)); break; } case TIMESTAMP: { NTimestamp nTimestamp = (NTimestamp) basetype; nTimestamp.setValue(Long.parseLong(value)); break; } } } catch (NumberFormatException e) { throw new ConverterException("Error parsing number " + value + " for " + basetype.getType() + ".", e); } catch (Exception e) { throw new ConverterException("Error parsing value " + value + " for " + basetype.getType() + ".", e); } }
if (basetype == null) { throw new IllegalArgumentException(STR); } if (value == null) { return; } try { switch (basetype.getType()) { case BOOLEAN: { NBoolean nBoolean = (NBoolean) basetype; nBoolean.setValue(Boolean.parseBoolean(value)); break; } case BYTE: { NByte nByte = (NByte) basetype; nByte.setValue(Byte.parseByte(value)); break; } case BYTE_ARRAY: { NByteArray nByteArray = (NByteArray) basetype; nByteArray.setValue(value.getBytes()); break; } case CHAR: { NChar nChar = (NChar) basetype; nChar.setValue(value.charAt(0)); break; } case DATE: { NDate nDate = (NDate) basetype; nDate.setValue(NabuccoConverter.getInstance().getDateConverter().convertDate(value)); break; } case DECIMAL: { NDecimal nDecimal = (NDecimal) basetype; nDecimal.setValue(new BigDecimal(value)); break; } case DOUBLE: { NDouble nDouble = (NDouble) basetype; nDouble.setValue(Double.parseDouble(value)); break; } case FLOAT: { NFloat nFloat = (NFloat) basetype; nFloat.setValue(Float.parseFloat(value)); break; } case INTEGER: { NInteger nInteger = (NInteger) basetype; nInteger.setValue(Integer.parseInt(value)); break; } case LONG: { NLong nLong = (NLong) basetype; nLong.setValue(Long.parseLong(value)); break; } case STRING: { NString nString = (NString) basetype; nString.setValue(value); break; } case TEXT: { NText nText = (NText) basetype; nText.setValue(value); break; } case TIME: { NTime nTime = (NTime) basetype; nTime.setValue(NabuccoConverter.getInstance().getDateConverter().convertTime(value)); break; } case TIMESTAMP: { NTimestamp nTimestamp = (NTimestamp) basetype; nTimestamp.setValue(Long.parseLong(value)); break; } } } catch (NumberFormatException e) { throw new ConverterException(STR + value + STR + basetype.getType() + ".", e); } catch (Exception e) { throw new ConverterException(STR + value + STR + basetype.getType() + ".", e); } }
/** * Parses a string value and set it into the given basetype. Depending on the * {@link BasetypeType} different parsing strategies are used. * * @param basetype * the basetype to change * @param value * the value to parse * * @throws ConverterException * when the value cannot be parsed to the specified type */
Parses a string value and set it into the given basetype. Depending on the <code>BasetypeType</code> different parsing strategies are used
setValueAsString
{ "repo_name": "NABUCCO/org.nabucco.framework.base", "path": "org.nabucco.framework.base.facade.datatype/src/main/man/org/nabucco/framework/base/facade/datatype/converter/BasetypeConverter.java", "license": "epl-1.0", "size": 5554 }
[ "java.math.BigDecimal", "org.nabucco.framework.base.facade.datatype.NBoolean", "org.nabucco.framework.base.facade.datatype.NByte", "org.nabucco.framework.base.facade.datatype.NByteArray", "org.nabucco.framework.base.facade.datatype.NChar", "org.nabucco.framework.base.facade.datatype.NDate", "org.nabucco...
import java.math.BigDecimal; import org.nabucco.framework.base.facade.datatype.NBoolean; import org.nabucco.framework.base.facade.datatype.NByte; import org.nabucco.framework.base.facade.datatype.NByteArray; import org.nabucco.framework.base.facade.datatype.NChar; import org.nabucco.framework.base.facade.datatype.NDate; import org.nabucco.framework.base.facade.datatype.NDecimal; import org.nabucco.framework.base.facade.datatype.NDouble; import org.nabucco.framework.base.facade.datatype.NFloat; import org.nabucco.framework.base.facade.datatype.NInteger; import org.nabucco.framework.base.facade.datatype.NLong; import org.nabucco.framework.base.facade.datatype.NString; import org.nabucco.framework.base.facade.datatype.NText; import org.nabucco.framework.base.facade.datatype.NTime; import org.nabucco.framework.base.facade.datatype.NTimestamp;
import java.math.*; import org.nabucco.framework.base.facade.datatype.*;
[ "java.math", "org.nabucco.framework" ]
java.math; org.nabucco.framework;
966,788
SimpleString getManagementAddress();
SimpleString getManagementAddress();
/** * Returns the management address of this server. <br> * Clients can send management messages to this address to manage this server. <br> * Default value is {@link org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration#DEFAULT_MANAGEMENT_ADDRESS}. */
Returns the management address of this server. Clients can send management messages to this address to manage this server. Default value is <code>org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration#DEFAULT_MANAGEMENT_ADDRESS</code>
getManagementAddress
{ "repo_name": "gtully/activemq-artemis", "path": "artemis-server/src/main/java/org/apache/activemq/artemis/core/config/Configuration.java", "license": "apache-2.0", "size": 38585 }
[ "org.apache.activemq.artemis.api.core.SimpleString" ]
import org.apache.activemq.artemis.api.core.SimpleString;
import org.apache.activemq.artemis.api.core.*;
[ "org.apache.activemq" ]
org.apache.activemq;
2,559,750
@Test public static void testHashCode() { final Point p1 = new Point(0.0242515242412, 0, 0); final Point p2 = new Point(0.0242515244450, 0, 0); Assert.assertTrue(p1.hashCode() == p2.hashCode()); }
static void function() { final Point p1 = new Point(0.0242515242412, 0, 0); final Point p2 = new Point(0.0242515244450, 0, 0); Assert.assertTrue(p1.hashCode() == p2.hashCode()); }
/** * Test method for {@link fr.nantes1900.models.basis.Point#hashCode()}. */
Test method for <code>fr.nantes1900.models.basis.Point#hashCode()</code>
testHashCode
{ "repo_name": "DanielLefevre/Nantes-1900-Maven", "path": "src/test/java/fr/nantes1900/models/PointTest.java", "license": "gpl-3.0", "size": 4914 }
[ "fr.nantes1900.models.basis.Point", "junit.framework.Assert" ]
import fr.nantes1900.models.basis.Point; import junit.framework.Assert;
import fr.nantes1900.models.basis.*; import junit.framework.*;
[ "fr.nantes1900.models", "junit.framework" ]
fr.nantes1900.models; junit.framework;
2,834,030
@Override public Future<String> putBlob(BlobProperties blobProperties, byte[] userMetadata, ReadableStreamChannel channel) { return putBlob(blobProperties, userMetadata, channel, null); }
Future<String> function(BlobProperties blobProperties, byte[] userMetadata, ReadableStreamChannel channel) { return putBlob(blobProperties, userMetadata, channel, null); }
/** * Requests for a new blob to be put asynchronously and returns a future that will eventually contain the BlobId of * the new blob on a successful response. * @param blobProperties The properties of the blob. Note that the size specified in the properties is ignored. The * channel is consumed fully, and the size of the blob is the number of bytes read from it. * @param userMetadata Optional user metadata about the blob. This can be null. * @param channel The {@link ReadableStreamChannel} that contains the content of the blob. * @return A future that would contain the BlobId eventually. */
Requests for a new blob to be put asynchronously and returns a future that will eventually contain the BlobId of the new blob on a successful response
putBlob
{ "repo_name": "daniellitoc/ambry-Research", "path": "ambry-router/src/main/java/com.github.ambry.router/NonBlockingRouter.java", "license": "apache-2.0", "size": 30129 }
[ "com.github.ambry.messageformat.BlobProperties", "java.util.concurrent.Future" ]
import com.github.ambry.messageformat.BlobProperties; import java.util.concurrent.Future;
import com.github.ambry.messageformat.*; import java.util.concurrent.*;
[ "com.github.ambry", "java.util" ]
com.github.ambry; java.util;
2,006,192
EReference getDataInput_InputSetWithOptional();
EReference getDataInput_InputSetWithOptional();
/** * Returns the meta object for the reference list '{@link org.eclipse.bpmn2.DataInput#getInputSetWithOptional <em>Input Set With Optional</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference list '<em>Input Set With Optional</em>'. * @see org.eclipse.bpmn2.DataInput#getInputSetWithOptional() * @see #getDataInput() * @generated */
Returns the meta object for the reference list '<code>org.eclipse.bpmn2.DataInput#getInputSetWithOptional Input Set With Optional</code>'.
getDataInput_InputSetWithOptional
{ "repo_name": "Rikkola/kie-wb-common", "path": "kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-emf/src/main/java/org/eclipse/bpmn2/Bpmn2Package.java", "license": "apache-2.0", "size": 929298 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,124,194
public void removeSegmentAccount(Integer id, Integer accountId) throws Exception { MozuClient client = com.mozu.api.clients.commerce.customer.CustomerSegmentClient.removeSegmentAccountClient( id, accountId); client.setContext(_apiContext); client.executeRequest(); client.cleanupHttpConnection(); }
void function(Integer id, Integer accountId) throws Exception { MozuClient client = com.mozu.api.clients.commerce.customer.CustomerSegmentClient.removeSegmentAccountClient( id, accountId); client.setContext(_apiContext); client.executeRequest(); client.cleanupHttpConnection(); }
/** * Removes single account from a segment. * <p><pre><code> * CustomerSegment customersegment = new CustomerSegment(); * customersegment.removeSegmentAccount( id, accountId); * </code></pre></p> * @param accountId Unique identifier of the customer account. * @param id Unique identifier of the customer segment to retrieve. * @return */
Removes single account from a segment. <code><code> CustomerSegment customersegment = new CustomerSegment(); customersegment.removeSegmentAccount( id, accountId); </code></code>
removeSegmentAccount
{ "repo_name": "lakshmi-nair/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/commerce/customer/CustomerSegmentResource.java", "license": "mit", "size": 21174 }
[ "com.mozu.api.MozuClient" ]
import com.mozu.api.MozuClient;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
679,684
void writeExternalEntry(@NotNull Bytes entry, @NotNull Bytes destination, int chronicleId, long bootstrapTime); /** * The map implements this method to restore its contents. This method must read the values * in the same sequence and with the same types as were written by {@code * writeExternalEntry()}. This method is typically called when we receive a remote * replication event, this event could originate from either a remote {@code put(K key, V *value)} or {@code remove(Object key)}
void writeExternalEntry(@NotNull Bytes entry, @NotNull Bytes destination, int chronicleId, long bootstrapTime); /** * The map implements this method to restore its contents. This method must read the values * in the same sequence and with the same types as were written by { * writeExternalEntry()}. This method is typically called when we receive a remote * replication event, this event could originate from either a remote {@code put(K key, V *value)} or {@code remove(Object key)}
/** * The map implements this method to save its contents. * * @param entry the byte location of the entry to be stored * @param destination a buffer the entry will be written to, the segment may reject this * operation and add zeroBytes, if the identifier in the entry did not * match the maps local * @param chronicleId is the channel id used to identify the canonical map or queue */
The map implements this method to save its contents
writeExternalEntry
{ "repo_name": "marksantos/Chronicle-Map", "path": "src/main/java/net/openhft/chronicle/map/Replica.java", "license": "lgpl-3.0", "size": 9504 }
[ "net.openhft.lang.io.Bytes", "org.jetbrains.annotations.NotNull" ]
import net.openhft.lang.io.Bytes; import org.jetbrains.annotations.NotNull;
import net.openhft.lang.io.*; import org.jetbrains.annotations.*;
[ "net.openhft.lang", "org.jetbrains.annotations" ]
net.openhft.lang; org.jetbrains.annotations;
808,875
public static <T> Operator<T, Optional<T>> reduce( BiFunction<? super T, ? super T, T> reducer) { return to -> new Sub<T, Optional<T>>(to) { private Optional<T> accum = Optional.empty();
static <T> Operator<T, Optional<T>> function( BiFunction<? super T, ? super T, T> reducer) { return to -> new Sub<T, Optional<T>>(to) { private Optional<T> accum = Optional.empty();
/** * Returns an operator that transforms a subscriber into one that reduces * the values it receives into a single {@code Optional} that either * contains the result or is empty if no values were received. * * @param <T> * the value type * @param reducer * the reducing function * @return a reduction operator */
Returns an operator that transforms a subscriber into one that reduces the values it receives into a single Optional that either contains the result or is empty if no values were received
reduce
{ "repo_name": "jdahlstrom/vaadin.react", "path": "server/src/main/java/com/vaadin/server/react/impl/Operator.java", "license": "apache-2.0", "size": 16262 }
[ "java.util.Optional", "java.util.function.BiFunction" ]
import java.util.Optional; import java.util.function.BiFunction;
import java.util.*; import java.util.function.*;
[ "java.util" ]
java.util;
716,083
protected void setMatrix(MapPosition curPos, Matrices m) { setMatrix(curPos, m, true); }
void function(MapPosition curPos, Matrices m) { setMatrix(curPos, m, true); }
/** * Utility: set m.mvp matrix relative to the difference of current MapPosition * and the last updated Overlay MapPosition and add m.viewproj * * @param curPos ... * @param m ... */
Utility: set m.mvp matrix relative to the difference of current MapPosition and the last updated Overlay MapPosition and add m.viewproj
setMatrix
{ "repo_name": "opensciencemap/VectorTileMap", "path": "VectorTileMap/src/org/oscim/renderer/overlays/RenderOverlay.java", "license": "gpl-3.0", "size": 3899 }
[ "org.oscim.core.MapPosition", "org.oscim.renderer.GLRenderer" ]
import org.oscim.core.MapPosition; import org.oscim.renderer.GLRenderer;
import org.oscim.core.*; import org.oscim.renderer.*;
[ "org.oscim.core", "org.oscim.renderer" ]
org.oscim.core; org.oscim.renderer;
1,998,941
if (this.qe != null) { try { // Close the query execution this.qe.close(); } catch (Exception e) { LOGGER.error("Unexpected error closing underlying Jena query execution", e); throw new SQLException("Unexpected error closing the query execution", e); } finally { this.qe = null; // Commit if necessary if (this.commit) { LOGGER.info("Result Set associated with an auto-committing transaction, performing a commit now"); this.getStatement().getConnection().commit(); } } } this.closeInternal(); }
if (this.qe != null) { try { this.qe.close(); } catch (Exception e) { LOGGER.error(STR, e); throw new SQLException(STR, e); } finally { this.qe = null; if (this.commit) { LOGGER.info(STR); this.getStatement().getConnection().commit(); } } } this.closeInternal(); }
/** * Closes the results which also closes the underlying {@link QueryExecution} */
Closes the results which also closes the underlying <code>QueryExecution</code>
close
{ "repo_name": "hdadler/sensetrace-src", "path": "com.ipv.sensetrace.RDFDatamanager/jena-2.11.0/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/results/QueryExecutionResults.java", "license": "gpl-2.0", "size": 3226 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
473,528
public FixedIp jsonNodeToFixedIps(JsonNode fixedIpNode) { SubnetId subnetId = SubnetId.subnetId(fixedIpNode.get("subnet_id") .asText()); IpAddress ipAddress = IpAddress.valueOf(fixedIpNode.get("ip_address") .asText()); FixedIp fixedIps = FixedIp.fixedIp(subnetId, ipAddress); return fixedIps; }
FixedIp function(JsonNode fixedIpNode) { SubnetId subnetId = SubnetId.subnetId(fixedIpNode.get(STR) .asText()); IpAddress ipAddress = IpAddress.valueOf(fixedIpNode.get(STR) .asText()); FixedIp fixedIps = FixedIp.fixedIp(subnetId, ipAddress); return fixedIps; }
/** * Returns a collection of fixedIps. * * @param fixedIpNode the fixedIp jsonnode * @return a collection of SecurityGroup */
Returns a collection of fixedIps
jsonNodeToFixedIps
{ "repo_name": "oeeagle/onos", "path": "apps/vtnweb/src/main/java/org/onosproject/vtnweb/resources/VirtualPortWebResource.java", "license": "apache-2.0", "size": 18205 }
[ "com.fasterxml.jackson.databind.JsonNode", "org.onlab.packet.IpAddress", "org.onosproject.vtnrsc.FixedIp", "org.onosproject.vtnrsc.SubnetId" ]
import com.fasterxml.jackson.databind.JsonNode; import org.onlab.packet.IpAddress; import org.onosproject.vtnrsc.FixedIp; import org.onosproject.vtnrsc.SubnetId;
import com.fasterxml.jackson.databind.*; import org.onlab.packet.*; import org.onosproject.vtnrsc.*;
[ "com.fasterxml.jackson", "org.onlab.packet", "org.onosproject.vtnrsc" ]
com.fasterxml.jackson; org.onlab.packet; org.onosproject.vtnrsc;
1,606,908
private boolean isCmisConfigDuplicate(List<CmisConfigurationDTO> cmisConfigList, CmisConfigurationDTO model) { boolean duplicateUsrFlg = false; if (!CollectionUtil.isEmpty(cmisConfigList)) { CmisConfigurationDTO cmisConfigDTO = null; if (model != null) { for (int i = 0; i < cmisConfigList.size(); i++) { cmisConfigDTO = cmisConfigList.get(i); if (model != cmisConfigDTO && ((model.getUserName() == null && cmisConfigDTO.getUserName() == null) || (model.getUserName() != null && model.getUserName().trim().equals( cmisConfigDTO.getUserName()))) && ((model.getServerURL() == null && cmisConfigDTO.getServerURL() == null) || (model.getServerURL() != null && model.getServerURL().trim().equals( cmisConfigDTO.getServerURL()))) && ((model.getRepositoryID() == null && cmisConfigDTO.getRepositoryID() == null) || (model .getRepositoryID() != null && cmisConfigDTO.getRepositoryID() != null && model.getRepositoryID().trim() .equals(cmisConfigDTO.getRepositoryID()))) && ((model.getFolderName() == null && cmisConfigDTO.getFolderName() == null) || (model.getFolderName() != null && model.getFolderName().trim() .equals(cmisConfigDTO.getFolderName()))) && ((model.getCmisProperty() == null && cmisConfigDTO.getCmisProperty() == null) || (model.getCmisProperty() != null && model .getCmisProperty().trim().equals(cmisConfigDTO.getCmisProperty()))) && ((model.getValue() == null && cmisConfigDTO.getValue() == null) || (model.getValue() != null && model.getValue().trim().equals( cmisConfigDTO.getValue()))) && ((model.getValueToUpdate() == null && cmisConfigDTO.getValueToUpdate() == null) || (model.getValueToUpdate() != null && model .getValueToUpdate().trim().equals(cmisConfigDTO.getValueToUpdate())))) { duplicateUsrFlg = true; break; } } } } return duplicateUsrFlg; }
boolean function(List<CmisConfigurationDTO> cmisConfigList, CmisConfigurationDTO model) { boolean duplicateUsrFlg = false; if (!CollectionUtil.isEmpty(cmisConfigList)) { CmisConfigurationDTO cmisConfigDTO = null; if (model != null) { for (int i = 0; i < cmisConfigList.size(); i++) { cmisConfigDTO = cmisConfigList.get(i); if (model != cmisConfigDTO && ((model.getUserName() == null && cmisConfigDTO.getUserName() == null) (model.getUserName() != null && model.getUserName().trim().equals( cmisConfigDTO.getUserName()))) && ((model.getServerURL() == null && cmisConfigDTO.getServerURL() == null) (model.getServerURL() != null && model.getServerURL().trim().equals( cmisConfigDTO.getServerURL()))) && ((model.getRepositoryID() == null && cmisConfigDTO.getRepositoryID() == null) (model .getRepositoryID() != null && cmisConfigDTO.getRepositoryID() != null && model.getRepositoryID().trim() .equals(cmisConfigDTO.getRepositoryID()))) && ((model.getFolderName() == null && cmisConfigDTO.getFolderName() == null) (model.getFolderName() != null && model.getFolderName().trim() .equals(cmisConfigDTO.getFolderName()))) && ((model.getCmisProperty() == null && cmisConfigDTO.getCmisProperty() == null) (model.getCmisProperty() != null && model .getCmisProperty().trim().equals(cmisConfigDTO.getCmisProperty()))) && ((model.getValue() == null && cmisConfigDTO.getValue() == null) (model.getValue() != null && model.getValue().trim().equals( cmisConfigDTO.getValue()))) && ((model.getValueToUpdate() == null && cmisConfigDTO.getValueToUpdate() == null) (model.getValueToUpdate() != null && model .getValueToUpdate().trim().equals(cmisConfigDTO.getValueToUpdate())))) { duplicateUsrFlg = true; break; } } } } return duplicateUsrFlg; }
/** * Checks if is cmis config duplicate. * * @param cmisConfigList the cmis config list * @param model the model * @return true, if is cmis config duplicate */
Checks if is cmis config duplicate
isCmisConfigDuplicate
{ "repo_name": "ungerik/ephesoft", "path": "Ephesoft_Community_Release_4.0.2.0/source/gxt/gxt-core/src/main/java/com/ephesoft/gxt/core/client/validator/UniqueCmisConfigValidator.java", "license": "agpl-3.0", "size": 5833 }
[ "com.ephesoft.gxt.core.shared.dto.CmisConfigurationDTO", "com.ephesoft.gxt.core.shared.util.CollectionUtil", "java.util.List" ]
import com.ephesoft.gxt.core.shared.dto.CmisConfigurationDTO; import com.ephesoft.gxt.core.shared.util.CollectionUtil; import java.util.List;
import com.ephesoft.gxt.core.shared.dto.*; import com.ephesoft.gxt.core.shared.util.*; import java.util.*;
[ "com.ephesoft.gxt", "java.util" ]
com.ephesoft.gxt; java.util;
2,876,332
private void populateTable(String table, int value) throws Exception { // create HFiles for different column families LoadIncrementalHFiles lih = new LoadIncrementalHFiles( util.getConfiguration()); Path bulk1 = buildBulkFiles(table, value); HTable t = new HTable(util.getConfiguration(), Bytes.toBytes(table)); lih.doBulkLoad(bulk1, t); }
void function(String table, int value) throws Exception { LoadIncrementalHFiles lih = new LoadIncrementalHFiles( util.getConfiguration()); Path bulk1 = buildBulkFiles(table, value); HTable t = new HTable(util.getConfiguration(), Bytes.toBytes(table)); lih.doBulkLoad(bulk1, t); }
/** * Populate table with known values. */
Populate table with known values
populateTable
{ "repo_name": "matteobertozzi/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFilesSplitRecovery.java", "license": "apache-2.0", "size": 14064 }
[ "org.apache.hadoop.fs.Path", "org.apache.hadoop.hbase.client.HTable", "org.apache.hadoop.hbase.util.Bytes" ]
import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.client.HTable; import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,352,076
List<UUID> getUserTrusts(TrustType type);
List<UUID> getUserTrusts(TrustType type);
/** * Gets an immutable list of trusted users for {@link TrustType}. * * @return An immutable list of trusted users */
Gets an immutable list of trusted users for <code>TrustType</code>
getUserTrusts
{ "repo_name": "MinecraftPortCentral/GriefPrevention", "path": "src/api/java/me/ryanhamshire/griefprevention/api/claim/Claim.java", "license": "mit", "size": 32388 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,982,766
ResourceSet estimateResourceConsumption(AbstractFileWriteAction action);
ResourceSet estimateResourceConsumption(AbstractFileWriteAction action);
/** * Returns the estimated resource consumption of the action. */
Returns the estimated resource consumption of the action
estimateResourceConsumption
{ "repo_name": "vt09/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/actions/FileWriteActionContext.java", "license": "apache-2.0", "size": 1761 }
[ "com.google.devtools.build.lib.actions.ResourceSet" ]
import com.google.devtools.build.lib.actions.ResourceSet;
import com.google.devtools.build.lib.actions.*;
[ "com.google.devtools" ]
com.google.devtools;
443,161
void updateInferredMethodParameterTypes( MethodTree methodTree, ExecutableElement methodElt, AnnotatedExecutableType overriddenMethod, AnnotatedTypeFactory atf);
void updateInferredMethodParameterTypes( MethodTree methodTree, ExecutableElement methodElt, AnnotatedExecutableType overriddenMethod, AnnotatedTypeFactory atf);
/** * Updates the parameter types of the method {@code methodTree} based on the * parameter types of the overridden method {@code overriddenMethod}. * @param methodTree the tree of the method that contains the parameter(s). * @param methodElt the element of the method. * @param overriddenMethod the AnnotatedExecutableType of the overridden * method. * @param atf the annotated type factory of a given type system, whose * type hierarchy will be used to update the parameter type. */
Updates the parameter types of the method methodTree based on the parameter types of the overridden method overriddenMethod
updateInferredMethodParameterTypes
{ "repo_name": "Jianchu/checker-framework", "path": "framework/src/org/checkerframework/common/wholeprograminference/WholeProgramInference.java", "license": "gpl-2.0", "size": 6409 }
[ "com.sun.source.tree.MethodTree", "javax.lang.model.element.ExecutableElement", "org.checkerframework.framework.type.AnnotatedTypeFactory", "org.checkerframework.framework.type.AnnotatedTypeMirror" ]
import com.sun.source.tree.MethodTree; import javax.lang.model.element.ExecutableElement; import org.checkerframework.framework.type.AnnotatedTypeFactory; import org.checkerframework.framework.type.AnnotatedTypeMirror;
import com.sun.source.tree.*; import javax.lang.model.element.*; import org.checkerframework.framework.type.*;
[ "com.sun.source", "javax.lang", "org.checkerframework.framework" ]
com.sun.source; javax.lang; org.checkerframework.framework;
585,154
public ButtonPanel withParent(JFrame parent) { this.parent = parent; return this; }
ButtonPanel function(JFrame parent) { this.parent = parent; return this; }
/** * Provide the parent window. * @param parent The containing parent window * @return Itself for fluency. */
Provide the parent window
withParent
{ "repo_name": "tuneribaba/JPacmanVerified", "path": "src/main/java/org/jpacman/framework/ui/ButtonPanel.java", "license": "apache-2.0", "size": 4870 }
[ "javax.swing.JFrame" ]
import javax.swing.JFrame;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,683,064
public static void postFailureRecord(FailureRecord record) { if (record.workflowId < 0 || record.jobId < 0 || record.vmId < 0) { Log.printLine("Error in receiving failure record"); return; } switch (FailureParameters.getMonitorMode()) { case MONITOR_VM: if (!vm2record.containsKey(record.vmId)) { vm2record.put(record.vmId, new ArrayList<FailureRecord>()); } vm2record.get(record.vmId).add(record); break; case MONITOR_JOB: if (!type2record.containsKey(record.depth)) { type2record.put(record.depth, new ArrayList<FailureRecord>()); } type2record.get(record.depth).add(record); break; case MONITOR_NONE: break; } recordList.add(record); }
static void function(FailureRecord record) { if (record.workflowId < 0 record.jobId < 0 record.vmId < 0) { Log.printLine(STR); return; } switch (FailureParameters.getMonitorMode()) { case MONITOR_VM: if (!vm2record.containsKey(record.vmId)) { vm2record.put(record.vmId, new ArrayList<FailureRecord>()); } vm2record.get(record.vmId).add(record); break; case MONITOR_JOB: if (!type2record.containsKey(record.depth)) { type2record.put(record.depth, new ArrayList<FailureRecord>()); } type2record.get(record.depth).add(record); break; case MONITOR_NONE: break; } recordList.add(record); }
/** * A post from a broker so that we can update record list * * @param record a failure record */
A post from a broker so that we can update record list
postFailureRecord
{ "repo_name": "Farisllwaah/WorkflowSim-1.0", "path": "sources/org/workflowsim/failure/FailureMonitor.java", "license": "lgpl-3.0", "size": 5778 }
[ "java.util.ArrayList", "org.cloudbus.cloudsim.Log" ]
import java.util.ArrayList; import org.cloudbus.cloudsim.Log;
import java.util.*; import org.cloudbus.cloudsim.*;
[ "java.util", "org.cloudbus.cloudsim" ]
java.util; org.cloudbus.cloudsim;
802,896
public CmsProperty getCachedProperty(String key) { return m_cacheProperty.get(key); }
CmsProperty function(String key) { return m_cacheProperty.get(key); }
/** * Returns the property cached with the given cache key or <code>null</code> if not found.<p> * * @param key the cache key to look for * * @return the property cached with the given cache key */
Returns the property cached with the given cache key or <code>null</code> if not found
getCachedProperty
{ "repo_name": "serrapos/opencms-core", "path": "src/org/opencms/monitor/CmsMemoryMonitor.java", "license": "lgpl-2.1", "size": 86746 }
[ "org.opencms.file.CmsProperty" ]
import org.opencms.file.CmsProperty;
import org.opencms.file.*;
[ "org.opencms.file" ]
org.opencms.file;
1,035,185
public boolean isConfigurationProcessing(Integer configurationId) { Query query = getSession().createQuery(IS_CONFIGURATION_RUNNING_HQL); query.setParameter("cfgId", configurationId); return !query.list().isEmpty(); } private static final String LATEST_MEDIATION_PROCESS_FOR_ENTITY_HQL = "select process " + " from MediationProcess process " + " where process.configuration.entityId = :entityId " + " order by process.startDatetime desc";
boolean function(Integer configurationId) { Query query = getSession().createQuery(IS_CONFIGURATION_RUNNING_HQL); query.setParameter("cfgId", configurationId); return !query.list().isEmpty(); } private static final String LATEST_MEDIATION_PROCESS_FOR_ENTITY_HQL = STR + STR + STR + STR;
/** * Returns true if there is a current MediationProcess running for specified configuration, * false if no running MediationProcess found. * * @param configurationId configuration id of mediation process * @return true if process running, false if not */
Returns true if there is a current MediationProcess running for specified configuration, false if no running MediationProcess found
isConfigurationProcessing
{ "repo_name": "maxdelo77/replyit-master-3.2-final", "path": "src/java/com/sapienter/jbilling/server/mediation/db/MediationProcessDAS.java", "license": "agpl-3.0", "size": 5221 }
[ "org.hibernate.Query" ]
import org.hibernate.Query;
import org.hibernate.*;
[ "org.hibernate" ]
org.hibernate;
107,761
@Test public void testWaterMarkUnordered() throws Exception { testEventTime(AsyncDataStream.OutputMode.UNORDERED); }
void function() throws Exception { testEventTime(AsyncDataStream.OutputMode.UNORDERED); }
/** * Test the AsyncWaitOperator with unordered mode and event time. */
Test the AsyncWaitOperator with unordered mode and event time
testWaterMarkUnordered
{ "repo_name": "shaoxuan-wang/flink", "path": "flink-streaming-java/src/test/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperatorTest.java", "license": "apache-2.0", "size": 38289 }
[ "org.apache.flink.streaming.api.datastream.AsyncDataStream" ]
import org.apache.flink.streaming.api.datastream.AsyncDataStream;
import org.apache.flink.streaming.api.datastream.*;
[ "org.apache.flink" ]
org.apache.flink;
2,529,730
public List<Software> getAllSoftware() { return mSoftware; }
List<Software> function() { return mSoftware; }
/** * Returns all of the {@link Software} configurations of the {@link Device}. * * @return A list of all the {@link Software} configurations. */
Returns all of the <code>Software</code> configurations of the <code>Device</code>
getAllSoftware
{ "repo_name": "rex-xxx/mt6572_x201", "path": "sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/devices/Device.java", "license": "gpl-2.0", "size": 8999 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,599,524
public static String getFilePath(File f) { try { return getFilePath(f.getCanonicalPath()); } catch (IOException ex) { return ""; } } /** * This method returns the file name of a given file-path which is passed as * parameter. * * @param f the filepath of the file which file name should be retrieved * @return the name of the given file, excluding extension, or {@code null}
static String function(File f) { try { return getFilePath(f.getCanonicalPath()); } catch (IOException ex) { return ""; } } /** * This method returns the file name of a given file-path which is passed as * parameter. * * @param f the filepath of the file which file name should be retrieved * @return the name of the given file, excluding extension, or {@code null}
/** * This method returns the file path only of a given file which is passed as * parameter, <em>excluding the file name</em>. * * @param f the filepath of the file which should be cleaned from file name * @return the path of the given file, excluding file name, or an empty * string if an error occured. */
This method returns the file path only of a given file which is passed as parameter, excluding the file name
getFilePath
{ "repo_name": "sjPlot/Zettelkasten", "path": "src/main/java/de/danielluedecke/zettelkasten/util/FileOperationsUtil.java", "license": "gpl-3.0", "size": 40330 }
[ "java.io.File", "java.io.IOException" ]
import java.io.File; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
544,263
public List<IpAddress> getInitialHosts() { return initial_hosts; }
List<IpAddress> function() { return initial_hosts; }
/** * Returns the list of initial hosts as configured by the user via XML. Note that the returned list is mutable, so * careful with changes ! * @return List<Address> list of initial hosts. This variable is only set after the channel has been created and * set Properties() has been called */
Returns the list of initial hosts as configured by the user via XML. Note that the returned list is mutable, so careful with changes
getInitialHosts
{ "repo_name": "fengshao0907/bbossgroups-3.5", "path": "bboss-rpc/src-jgroups/bboss/org/jgroups/protocols/TCPPING.java", "license": "apache-2.0", "size": 6194 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,322,319
public void update () { switch (direction) { case left: SmartDashboard.putBoolean("Left", true); SmartDashboard.putBoolean("Right", false); SmartDashboard.putBoolean("Straight", false); SmartDashboard.putBoolean("Stop", false); break; case right: SmartDashboard.putBoolean("Right", true); SmartDashboard.putBoolean("Left", false); SmartDashboard.putBoolean("Straight", false); SmartDashboard.putBoolean("Stop", false); break; case neutral: SmartDashboard.putBoolean("Right", false); SmartDashboard.putBoolean("Left", false); SmartDashboard.putBoolean("Straight", false); SmartDashboard.putBoolean("Stop", false); break; case linedUp: SmartDashboard.putBoolean("Straight", false); SmartDashboard.putBoolean("Right", false); SmartDashboard.putBoolean("Left", false); SmartDashboard.putBoolean("Stop", false); break; } }
void function () { switch (direction) { case left: SmartDashboard.putBoolean("Left", true); SmartDashboard.putBoolean("Right", false); SmartDashboard.putBoolean(STR, false); SmartDashboard.putBoolean("Stop", false); break; case right: SmartDashboard.putBoolean("Right", true); SmartDashboard.putBoolean("Left", false); SmartDashboard.putBoolean(STR, false); SmartDashboard.putBoolean("Stop", false); break; case neutral: SmartDashboard.putBoolean("Right", false); SmartDashboard.putBoolean("Left", false); SmartDashboard.putBoolean(STR, false); SmartDashboard.putBoolean("Stop", false); break; case linedUp: SmartDashboard.putBoolean(STR, false); SmartDashboard.putBoolean("Right", false); SmartDashboard.putBoolean("Left", false); SmartDashboard.putBoolean("Stop", false); break; } }
/** * Changes value of arrows on Smart Dashboard based on the set direction. */
Changes value of arrows on Smart Dashboard based on the set direction
update
{ "repo_name": "FIRST-Team-339/2017", "path": "src/org/usfirst/frc/team339/Utils/Guidance.java", "license": "mit", "size": 5499 }
[ "edu.wpi.first.wpilibj.smartdashboard.SmartDashboard" ]
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj.smartdashboard.*;
[ "edu.wpi.first" ]
edu.wpi.first;
305,356
public static boolean containsAny(Collection<?> source, Collection<?> candidates) { if (isEmpty(source) || isEmpty(candidates)) { return false; } for (Object candidate : candidates) { if (source.contains(candidate)) { return true; } } return false; }
static boolean function(Collection<?> source, Collection<?> candidates) { if (isEmpty(source) isEmpty(candidates)) { return false; } for (Object candidate : candidates) { if (source.contains(candidate)) { return true; } } return false; }
/** * Return <code>true</code> if any element in '<code>candidates</code>' is contained in '<code>source</code>'; * otherwise returns <code>false</code>. * @param source the source Collection * @param candidates the candidates to search for * @return whether any of the candidates has been found */
Return <code>true</code> if any element in '<code>candidates</code>' is contained in '<code>source</code>'; otherwise returns <code>false</code>
containsAny
{ "repo_name": "PiXeL16/Sea-Nec-IO", "path": "app/src/main/java/com/greenpixels/seanecio/utils/CollectionUtils.java", "license": "mit", "size": 12273 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
217,385
T get(Long id) throws NotFoundException;
T get(Long id) throws NotFoundException;
/** * Get persistent object by id. Method is trying to find persistent object with current primary id and return it. * * @param id primary id of persistent object to find, id could not be negative. * If negative id value will be put IllegalAgrumentEception will be thrown. * @return persistent object T or null if row with primary id = id is absent. * @throws org.jtalks.jcommune.plugin.api.exceptions.NotFoundException * when entity not found */
Get persistent object by id. Method is trying to find persistent object with current primary id and return it
get
{ "repo_name": "illerax/jcommune", "path": "jcommune-service/src/main/java/org/jtalks/jcommune/service/EntityService.java", "license": "lgpl-2.1", "size": 1817 }
[ "org.jtalks.jcommune.plugin.api.exceptions.NotFoundException" ]
import org.jtalks.jcommune.plugin.api.exceptions.NotFoundException;
import org.jtalks.jcommune.plugin.api.exceptions.*;
[ "org.jtalks.jcommune" ]
org.jtalks.jcommune;
2,882,696
protected void checkConnectionProvider() { Connection connection = connectionProvider.getConnection(); try { DatabaseMetaData databaseMetaData = connection.getMetaData(); String name = databaseMetaData.getDatabaseProductName(); String version = databaseMetaData.getDatabaseProductVersion(); if (log.isInfoEnabled()) { log.info("Connected to database: " + name + " v" + version); } } catch (SQLException sex) { log.error("DB connection failed: ", sex); } finally { connectionProvider.closeConnection(connection); } }
void function() { Connection connection = connectionProvider.getConnection(); try { DatabaseMetaData databaseMetaData = connection.getMetaData(); String name = databaseMetaData.getDatabaseProductName(); String version = databaseMetaData.getDatabaseProductVersion(); if (log.isInfoEnabled()) { log.info(STR + name + STR + version); } } catch (SQLException sex) { log.error(STR, sex); } finally { connectionProvider.closeConnection(connection); } }
/** * Checks if connection provider can return a connection. */
Checks if connection provider can return a connection
checkConnectionProvider
{ "repo_name": "wjw465150/jodd", "path": "jodd-joy/src/main/java/jodd/joy/core/DefaultAppCore.java", "license": "bsd-2-clause", "size": 18416 }
[ "java.sql.Connection", "java.sql.DatabaseMetaData", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,938,444
@Override public void run() { DatagramSocket datagramSocket = null; try { datagramSocket = new DatagramSocket(port); datagramSocket.setBroadcast(true); datagramSocket.setSoTimeout(Parameters.BEACON_MILLISECONDS_UNTIL_DATAGRAM_SOCKET_TIMEOUT); } catch (SocketException socketException) { notifyAllObservers(new SoutilsMessage(MessageType.ERROR, SoutilsMessage.INTERNAL, socketException)); datagramSocket.close(); return; } while (!done) { try { byte[] datagramBuffer = new byte[Parameters.BEACON_DATAGRAM_BUFFER_SIZE]; DatagramPacket datagramPacket = new DatagramPacket(datagramBuffer, datagramBuffer.length); datagramSocket.receive(datagramPacket); notifyAllObservers(new SoutilsMessage( MessageType.BEACON, datagramPacket.getAddress().getHostAddress(), new String(datagramPacket.getData(), "UTF-8").trim())); } catch (InterruptedIOException iie) { // The socket timed-out, re-enter the loop and listen again continue; } catch(Exception exception) { notifyAllObservers(new SoutilsMessage(MessageType.ERROR, SoutilsMessage.INTERNAL, exception)); datagramSocket.close(); return; } } datagramSocket.close(); }
void function() { DatagramSocket datagramSocket = null; try { datagramSocket = new DatagramSocket(port); datagramSocket.setBroadcast(true); datagramSocket.setSoTimeout(Parameters.BEACON_MILLISECONDS_UNTIL_DATAGRAM_SOCKET_TIMEOUT); } catch (SocketException socketException) { notifyAllObservers(new SoutilsMessage(MessageType.ERROR, SoutilsMessage.INTERNAL, socketException)); datagramSocket.close(); return; } while (!done) { try { byte[] datagramBuffer = new byte[Parameters.BEACON_DATAGRAM_BUFFER_SIZE]; DatagramPacket datagramPacket = new DatagramPacket(datagramBuffer, datagramBuffer.length); datagramSocket.receive(datagramPacket); notifyAllObservers(new SoutilsMessage( MessageType.BEACON, datagramPacket.getAddress().getHostAddress(), new String(datagramPacket.getData(), "UTF-8").trim())); } catch (InterruptedIOException iie) { continue; } catch(Exception exception) { notifyAllObservers(new SoutilsMessage(MessageType.ERROR, SoutilsMessage.INTERNAL, exception)); datagramSocket.close(); return; } } datagramSocket.close(); }
/** Start listening for UDP beacons which will then be forwarded to all registered observers. * @see #done() */
Start listening for UDP beacons which will then be forwarded to all registered observers
run
{ "repo_name": "jeromewagener/Soutils", "path": "Soutils/src/com/jeromewagener/soutils/beaconing/BeaconReceiver.java", "license": "mit", "size": 4088 }
[ "com.jeromewagener.soutils.Parameters", "com.jeromewagener.soutils.messaging.MessageType", "com.jeromewagener.soutils.messaging.SoutilsMessage", "java.io.InterruptedIOException", "java.net.DatagramPacket", "java.net.DatagramSocket", "java.net.SocketException" ]
import com.jeromewagener.soutils.Parameters; import com.jeromewagener.soutils.messaging.MessageType; import com.jeromewagener.soutils.messaging.SoutilsMessage; import java.io.InterruptedIOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.SocketException;
import com.jeromewagener.soutils.*; import com.jeromewagener.soutils.messaging.*; import java.io.*; import java.net.*;
[ "com.jeromewagener.soutils", "java.io", "java.net" ]
com.jeromewagener.soutils; java.io; java.net;
1,409,065
public @Nullable(Nullable.Prevalence.NEVER) EpochTime from() { return m_from; }
@Nullable(Nullable.Prevalence.NEVER) EpochTime function() { return m_from; }
/** * Returns the "from" date passed into the constructor, * or {@link com.idevicesinc.sweetblue.utils.EpochTime#NULL} if <code>null</code> * was originally passed in. */
Returns the "from" date passed into the constructor, or <code>com.idevicesinc.sweetblue.utils.EpochTime#NULL</code> if <code>null</code> was originally passed in
from
{ "repo_name": "TheTypoMaster/SweetBlue", "path": "src/com/idevicesinc/sweetblue/utils/EpochTimeRange.java", "license": "gpl-3.0", "size": 5709 }
[ "com.idevicesinc.sweetblue.annotations.Nullable" ]
import com.idevicesinc.sweetblue.annotations.Nullable;
import com.idevicesinc.sweetblue.annotations.*;
[ "com.idevicesinc.sweetblue" ]
com.idevicesinc.sweetblue;
1,500,260
public SocketChannel getChannel() { return null; }
SocketChannel function() { return null; }
/** * Gets the SocketChannel of this socket, if one is available. The current * implementation of this method returns always {@code null}. * * @return the related SocketChannel or {@code null} if no channel exists. */
Gets the SocketChannel of this socket, if one is available. The current implementation of this method returns always null
getChannel
{ "repo_name": "freeVM/freeVM", "path": "enhanced/java/classlib/modules/luni/src/main/java/java/net/Socket.java", "license": "apache-2.0", "size": 41378 }
[ "java.nio.channels.SocketChannel" ]
import java.nio.channels.SocketChannel;
import java.nio.channels.*;
[ "java.nio" ]
java.nio;
1,086,011
public static ResourceProvider getResourceProvider(Resource.Type type, ClusterDefinition clusterDefinition) { switch (type.getInternalType()) { case Cluster: return new GSInstallerClusterProvider(clusterDefinition); case Service: return new GSInstallerServiceProvider(clusterDefinition); case Component: return new GSInstallerComponentProvider(clusterDefinition); case Host: return new GSInstallerHostProvider(clusterDefinition); case HostComponent: return new GSInstallerHostComponentProvider(clusterDefinition); default: return new GSInstallerNoOpProvider(type, clusterDefinition); } }
static ResourceProvider function(Resource.Type type, ClusterDefinition clusterDefinition) { switch (type.getInternalType()) { case Cluster: return new GSInstallerClusterProvider(clusterDefinition); case Service: return new GSInstallerServiceProvider(clusterDefinition); case Component: return new GSInstallerComponentProvider(clusterDefinition); case Host: return new GSInstallerHostProvider(clusterDefinition); case HostComponent: return new GSInstallerHostComponentProvider(clusterDefinition); default: return new GSInstallerNoOpProvider(type, clusterDefinition); } }
/** * Factory method for obtaining a resource provider based on a given type. * * @param type the resource type * @param clusterDefinition the cluster definition * * @return a new resource provider */
Factory method for obtaining a resource provider based on a given type
getResourceProvider
{ "repo_name": "arenadata/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/controller/gsinstaller/GSInstallerResourceProvider.java", "license": "apache-2.0", "size": 8192 }
[ "org.apache.ambari.server.controller.spi.Resource", "org.apache.ambari.server.controller.spi.ResourceProvider" ]
import org.apache.ambari.server.controller.spi.Resource; import org.apache.ambari.server.controller.spi.ResourceProvider;
import org.apache.ambari.server.controller.spi.*;
[ "org.apache.ambari" ]
org.apache.ambari;
1,626,007
@SuppressWarnings("unused") private void layoutLabelAndInputFieldOwner(Composite parent) { Label label = widgetFactory.createLabelOwnerText(parent); AuthorizationLayouterUtility.layoutDefault(label); Text text = widgetFactory.createInputFieldOwnerText(parent); AuthorizationLayouterUtility.layoutDefault(text); }
@SuppressWarnings(STR) void function(Composite parent) { Label label = widgetFactory.createLabelOwnerText(parent); AuthorizationLayouterUtility.layoutDefault(label); Text text = widgetFactory.createInputFieldOwnerText(parent); AuthorizationLayouterUtility.layoutDefault(text); }
/** * Layout the search parameter owner. * * @param parent * the parent composite */
Layout the search parameter owner
layoutLabelAndInputFieldOwner
{ "repo_name": "NABUCCO/org.nabucco.framework.common.authorization", "path": "org.nabucco.framework.common.authorization.ui.rcp/src/main/man/org/nabucco/framework/common/authorization/ui/rcp/search/group/view/AuthorizationGroupSearchViewLayouter.java", "license": "epl-1.0", "size": 5199 }
[ "org.eclipse.swt.widgets.Composite", "org.eclipse.swt.widgets.Label", "org.eclipse.swt.widgets.Text", "org.nabucco.framework.common.authorization.ui.rcp.util.AuthorizationLayouterUtility" ]
import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Text; import org.nabucco.framework.common.authorization.ui.rcp.util.AuthorizationLayouterUtility;
import org.eclipse.swt.widgets.*; import org.nabucco.framework.common.authorization.ui.rcp.util.*;
[ "org.eclipse.swt", "org.nabucco.framework" ]
org.eclipse.swt; org.nabucco.framework;
393,286
private void stroke1InputKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_stroke1InputKeyPressed if (!KeyBindingManager.validKeyEvent(evt)) return; key1 = KeyStroke.getKeyStrokeForEvent(evt); stroke1Input.setText(KeyStrokePair.keyStrokeToString(key1)); addButton.setEnabled(updateConflicts()); evt.consume(); }//GEN-LAST:event_stroke1InputKeyPressed
void function(java.awt.event.KeyEvent evt) { if (!KeyBindingManager.validKeyEvent(evt)) return; key1 = KeyStroke.getKeyStrokeForEvent(evt); stroke1Input.setText(KeyStrokePair.keyStrokeToString(key1)); addButton.setEnabled(updateConflicts()); evt.consume(); }
/** * Respond to key input to text box. Show string in the text box * representing that KeyStroke. * @param evt the KeyEvent */
Respond to key input to text box. Show string in the text box representing that KeyStroke
stroke1InputKeyPressed
{ "repo_name": "imr/Electric8", "path": "com/sun/electric/tool/user/dialogs/EditKeyBinding.java", "license": "gpl-3.0", "size": 20698 }
[ "com.sun.electric.tool.user.KeyBindingManager", "com.sun.electric.tool.user.ui.KeyStrokePair", "javax.swing.KeyStroke" ]
import com.sun.electric.tool.user.KeyBindingManager; import com.sun.electric.tool.user.ui.KeyStrokePair; import javax.swing.KeyStroke;
import com.sun.electric.tool.user.*; import com.sun.electric.tool.user.ui.*; import javax.swing.*;
[ "com.sun.electric", "javax.swing" ]
com.sun.electric; javax.swing;
1,624,751
public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllLastReplyDate_asNode() { return Base .getAll_asNode(this.model, this.getResource(), LASTREPLYDATE); }
ClosableIterator<org.ontoware.rdf2go.model.node.Node> function() { return Base .getAll_asNode(this.model, this.getResource(), LASTREPLYDATE); }
/** * Get all values of property LastReplyDate as an Iterator over RDF2Go nodes * * @return a ClosableIterator of RDF2Go Nodes * * [Generated from RDFReactor template rule #get8dynamic] */
Get all values of property LastReplyDate as an Iterator over RDF2Go nodes
getAllLastReplyDate_asNode
{ "repo_name": "m0ep/master-thesis", "path": "source/apis/rdf2go/rdf2go-sioc/src/main/java/org/rdfs/sioc/Thing.java", "license": "mit", "size": 317844 }
[ "org.ontoware.aifbcommons.collection.ClosableIterator", "org.ontoware.rdfreactor.runtime.Base" ]
import org.ontoware.aifbcommons.collection.ClosableIterator; import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.aifbcommons.collection.*; import org.ontoware.rdfreactor.runtime.*;
[ "org.ontoware.aifbcommons", "org.ontoware.rdfreactor" ]
org.ontoware.aifbcommons; org.ontoware.rdfreactor;
1,083,764
Map<String, VariableInstance> getVariableInstancesLocal();
Map<String, VariableInstance> getVariableInstancesLocal();
/** * Returns the variables local to this scope as instances of the {@link VariableInstance} interface, * which provided additional information about the variable. */
Returns the variables local to this scope as instances of the <code>VariableInstance</code> interface, which provided additional information about the variable
getVariableInstancesLocal
{ "repo_name": "Activiti/Activiti", "path": "activiti-core/activiti-engine/src/main/java/org/activiti/engine/delegate/VariableScope.java", "license": "apache-2.0", "size": 15439 }
[ "java.util.Map", "org.activiti.engine.impl.persistence.entity.VariableInstance" ]
import java.util.Map; import org.activiti.engine.impl.persistence.entity.VariableInstance;
import java.util.*; import org.activiti.engine.impl.persistence.entity.*;
[ "java.util", "org.activiti.engine" ]
java.util; org.activiti.engine;
136,125
RowReferenceSet addRowToTable(List<ColumnModel> columns, List<String> values) throws DatastoreException, NotFoundException, IOException{ Row row = new Row(); row.setValues(values); RowSet rowSet = new RowSet(); rowSet.setRows(Lists.newArrayList(row)); rowSet.setHeaders(TableModelUtils.getSelectColumns(columns)); rowSet.setTableId(tableId); return appendRows(adminUserInfo, tableId, rowSet, mockProgressCallback); }
RowReferenceSet addRowToTable(List<ColumnModel> columns, List<String> values) throws DatastoreException, NotFoundException, IOException{ Row row = new Row(); row.setValues(values); RowSet rowSet = new RowSet(); rowSet.setRows(Lists.newArrayList(row)); rowSet.setHeaders(TableModelUtils.getSelectColumns(columns)); rowSet.setTableId(tableId); return appendRows(adminUserInfo, tableId, rowSet, mockProgressCallback); }
/** * Add a row to the table with the given columns and values. * * @param columns * @param values * @return * @throws DatastoreException * @throws NotFoundException * @throws IOException */
Add a row to the table with the given columns and values
addRowToTable
{ "repo_name": "zimingd/Synapse-Repository-Services", "path": "services/workers/src/test/java/org/sagebionetworks/table/worker/TableWorkerIntegrationTest.java", "license": "apache-2.0", "size": 147213 }
[ "com.google.common.collect.Lists", "java.io.IOException", "java.util.List", "org.sagebionetworks.repo.model.DatastoreException", "org.sagebionetworks.repo.model.table.ColumnModel", "org.sagebionetworks.repo.model.table.Row", "org.sagebionetworks.repo.model.table.RowReferenceSet", "org.sagebionetworks....
import com.google.common.collect.Lists; import java.io.IOException; import java.util.List; import org.sagebionetworks.repo.model.DatastoreException; import org.sagebionetworks.repo.model.table.ColumnModel; import org.sagebionetworks.repo.model.table.Row; import org.sagebionetworks.repo.model.table.RowReferenceSet; import org.sagebionetworks.repo.model.table.RowSet; import org.sagebionetworks.repo.web.NotFoundException; import org.sagebionetworks.table.cluster.utils.TableModelUtils;
import com.google.common.collect.*; import java.io.*; import java.util.*; import org.sagebionetworks.repo.model.*; import org.sagebionetworks.repo.model.table.*; import org.sagebionetworks.repo.web.*; import org.sagebionetworks.table.cluster.utils.*;
[ "com.google.common", "java.io", "java.util", "org.sagebionetworks.repo", "org.sagebionetworks.table" ]
com.google.common; java.io; java.util; org.sagebionetworks.repo; org.sagebionetworks.table;
1,500,682
public static int getAxisFromStep( Compiler compiler, int stepOpCodePos) throws javax.xml.transform.TransformerException { int stepType = compiler.getOp(stepOpCodePos); switch (stepType) { case OpCodes.FROM_FOLLOWING : return Axis.FOLLOWING; case OpCodes.FROM_FOLLOWING_SIBLINGS : return Axis.FOLLOWINGSIBLING; case OpCodes.FROM_PRECEDING : return Axis.PRECEDING; case OpCodes.FROM_PRECEDING_SIBLINGS : return Axis.PRECEDINGSIBLING; case OpCodes.FROM_PARENT : return Axis.PARENT; case OpCodes.FROM_NAMESPACE : return Axis.NAMESPACE; case OpCodes.FROM_ANCESTORS : return Axis.ANCESTOR; case OpCodes.FROM_ANCESTORS_OR_SELF : return Axis.ANCESTORORSELF; case OpCodes.FROM_ATTRIBUTES : return Axis.ATTRIBUTE; case OpCodes.FROM_ROOT : return Axis.ROOT; case OpCodes.FROM_CHILDREN : return Axis.CHILD; case OpCodes.FROM_DESCENDANTS_OR_SELF : return Axis.DESCENDANTORSELF; case OpCodes.FROM_DESCENDANTS : return Axis.DESCENDANT; case OpCodes.FROM_SELF : return Axis.SELF; case OpCodes.OP_EXTFUNCTION : case OpCodes.OP_FUNCTION : case OpCodes.OP_GROUP : case OpCodes.OP_VARIABLE : return Axis.FILTEREDLIST; } throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NULL_ERROR_HANDLER, new Object[]{Integer.toString(stepType)})); //"Programmer's assertion: unknown opcode: " //+ stepType); }
static int function( Compiler compiler, int stepOpCodePos) throws javax.xml.transform.TransformerException { int stepType = compiler.getOp(stepOpCodePos); switch (stepType) { case OpCodes.FROM_FOLLOWING : return Axis.FOLLOWING; case OpCodes.FROM_FOLLOWING_SIBLINGS : return Axis.FOLLOWINGSIBLING; case OpCodes.FROM_PRECEDING : return Axis.PRECEDING; case OpCodes.FROM_PRECEDING_SIBLINGS : return Axis.PRECEDINGSIBLING; case OpCodes.FROM_PARENT : return Axis.PARENT; case OpCodes.FROM_NAMESPACE : return Axis.NAMESPACE; case OpCodes.FROM_ANCESTORS : return Axis.ANCESTOR; case OpCodes.FROM_ANCESTORS_OR_SELF : return Axis.ANCESTORORSELF; case OpCodes.FROM_ATTRIBUTES : return Axis.ATTRIBUTE; case OpCodes.FROM_ROOT : return Axis.ROOT; case OpCodes.FROM_CHILDREN : return Axis.CHILD; case OpCodes.FROM_DESCENDANTS_OR_SELF : return Axis.DESCENDANTORSELF; case OpCodes.FROM_DESCENDANTS : return Axis.DESCENDANT; case OpCodes.FROM_SELF : return Axis.SELF; case OpCodes.OP_EXTFUNCTION : case OpCodes.OP_FUNCTION : case OpCodes.OP_GROUP : case OpCodes.OP_VARIABLE : return Axis.FILTEREDLIST; } throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NULL_ERROR_HANDLER, new Object[]{Integer.toString(stepType)})); }
/** * Special purpose function to see if we can optimize the pattern for * a DescendantIterator. * * @param compiler non-null reference to compiler object that has processed * the XPath operations into an opcode map. * @param stepOpCodePos The opcode position for the step. * * @return 32 bits as an integer that give information about the location * path as a whole. * * @throws javax.xml.transform.TransformerException */
Special purpose function to see if we can optimize the pattern for a DescendantIterator
getAxisFromStep
{ "repo_name": "YouDiSN/OpenJDK-Research", "path": "jdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/WalkerFactory.java", "license": "gpl-2.0", "size": 60051 }
[ "com.sun.org.apache.xalan.internal.res.XSLMessages", "com.sun.org.apache.xml.internal.dtm.Axis", "com.sun.org.apache.xpath.internal.compiler.Compiler", "com.sun.org.apache.xpath.internal.compiler.OpCodes", "com.sun.org.apache.xpath.internal.res.XPATHErrorResources" ]
import com.sun.org.apache.xalan.internal.res.XSLMessages; import com.sun.org.apache.xml.internal.dtm.Axis; import com.sun.org.apache.xpath.internal.compiler.Compiler; import com.sun.org.apache.xpath.internal.compiler.OpCodes; import com.sun.org.apache.xpath.internal.res.XPATHErrorResources;
import com.sun.org.apache.xalan.internal.res.*; import com.sun.org.apache.xml.internal.dtm.*; import com.sun.org.apache.xpath.internal.compiler.*; import com.sun.org.apache.xpath.internal.res.*;
[ "com.sun.org" ]
com.sun.org;
616,924
public void setPosition(Position position) { // resets callback setPosition((PositionCallback) null); // stores the value setValueAndAddToParent(Property.POSITION, position); }
void function(Position position) { setPosition((PositionCallback) null); setValueAndAddToParent(Property.POSITION, position); }
/** * Sets the text vertical alignment used when drawing the label. * * @param position the text vertical alignment used when drawing the label */
Sets the text vertical alignment used when drawing the label
setPosition
{ "repo_name": "pepstock-org/Charba", "path": "src/org/pepstock/charba/client/treemap/Labels.java", "license": "apache-2.0", "size": 5708 }
[ "org.pepstock.charba.client.treemap.callbacks.PositionCallback", "org.pepstock.charba.client.treemap.enums.Position" ]
import org.pepstock.charba.client.treemap.callbacks.PositionCallback; import org.pepstock.charba.client.treemap.enums.Position;
import org.pepstock.charba.client.treemap.callbacks.*; import org.pepstock.charba.client.treemap.enums.*;
[ "org.pepstock.charba" ]
org.pepstock.charba;
262,325
public static <T> boolean postCompleteRequest(long n, Subscriber<? super T> actual, Queue<T> queue, AtomicLong state, BooleanSupplier isCancelled) { for (; ; ) { long r = state.get(); // extract the current request amount long r0 = r & REQUESTED_MASK; // preserve COMPLETED_MASK and calculate new requested amount long u = (r & COMPLETED_MASK) | BackpressureHelper.addCap(r0, n); if (state.compareAndSet(r, u)) { // (complete, 0) -> (complete, n) transition then replay if (r == COMPLETED_MASK) { postCompleteDrain(n | COMPLETED_MASK, actual, queue, state, isCancelled); return true; } // (active, r) -> (active, r + n) transition then continue with requesting from upstream return false; } } }
static <T> boolean function(long n, Subscriber<? super T> actual, Queue<T> queue, AtomicLong state, BooleanSupplier isCancelled) { for (; ; ) { long r = state.get(); long r0 = r & REQUESTED_MASK; long u = (r & COMPLETED_MASK) BackpressureHelper.addCap(r0, n); if (state.compareAndSet(r, u)) { if (r == COMPLETED_MASK) { postCompleteDrain(n COMPLETED_MASK, actual, queue, state, isCancelled); return true; } return false; } } }
/** * Perform a potential post-completion request accounting. * * @param <T> the value type emitted * @param n * @param actual * @param queue * @param state * @param isCancelled * @return true if the state indicates a completion state. */
Perform a potential post-completion request accounting
postCompleteRequest
{ "repo_name": "reactor/reactive-streams-commons", "path": "src/main/java/rsc/util/DrainHelper.java", "license": "apache-2.0", "size": 10291 }
[ "java.util.Queue", "java.util.concurrent.atomic.AtomicLong", "java.util.function.BooleanSupplier", "org.reactivestreams.Subscriber" ]
import java.util.Queue; import java.util.concurrent.atomic.AtomicLong; import java.util.function.BooleanSupplier; import org.reactivestreams.Subscriber;
import java.util.*; import java.util.concurrent.atomic.*; import java.util.function.*; import org.reactivestreams.*;
[ "java.util", "org.reactivestreams" ]
java.util; org.reactivestreams;
387,081
private void addToContainmentIndex(final String txId, final FedoraId parentId, final FedoraId id) { containmentIndex.addContainedBy(txId, parentId, id); }
void function(final String txId, final FedoraId parentId, final FedoraId id) { containmentIndex.addContainedBy(txId, parentId, id); }
/** * Add this pairing to the containment index. * @param txId The transaction ID or null if no transaction. * @param parentId The parent ID. * @param id The child ID. */
Add this pairing to the containment index
addToContainmentIndex
{ "repo_name": "whikloj/fcrepo4", "path": "fcrepo-kernel-impl/src/main/java/org/fcrepo/kernel/impl/services/CreateResourceServiceImpl.java", "license": "apache-2.0", "size": 12007 }
[ "org.fcrepo.kernel.api.identifiers.FedoraId" ]
import org.fcrepo.kernel.api.identifiers.FedoraId;
import org.fcrepo.kernel.api.identifiers.*;
[ "org.fcrepo.kernel" ]
org.fcrepo.kernel;
474,226